fix(security): resolve CodeQL alert 164 ReDoS in extraction and preserve release branch workflow
CI / Lint (push) Failing after 2m58s
CI / Build language matrix (push) Failing after 32s
CI / PR Test Policy (push) Has been skipped
CI / i18n Validation (push) Has been skipped
CI / Advanced Security Scans (push) Failing after 1m13s
CI / Build (push) Failing after 39s
CI / Package Artifact (push) Has been skipped
CI / Unit Tests (1/2) (push) Has been skipped
CI / Unit Tests (2/2) (push) Has been skipped
CI / Node 24 Compatibility (1/2) (push) Has been skipped
CI / Node 24 Compatibility (2/2) (push) Has been skipped
CI / Coverage (push) Has been skipped
CI / E2E Tests (1/6) (push) Has been skipped
CI / E2E Tests (2/6) (push) Has been skipped
CI / E2E Tests (3/6) (push) Has been skipped
CI / E2E Tests (4/6) (push) Has been skipped
CI / E2E Tests (5/6) (push) Has been skipped
CI / E2E Tests (6/6) (push) Has been skipped
CI / Integration Tests (1/2) (push) Has been skipped
CI / Integration Tests (2/2) (push) Has been skipped
CI / Security Tests (push) Has been skipped
Publish to Docker Hub / Build and Push Docker (multi-arch) (push) Failing after 3m36s
CI / SonarQube (push) Has been skipped
CI / PR Coverage Comment (push) Has been skipped
CI / CI Dashboard (push) Successful in 16s
CI / Lint (push) Failing after 2m58s
CI / Build language matrix (push) Failing after 32s
CI / PR Test Policy (push) Has been skipped
CI / i18n Validation (push) Has been skipped
CI / Advanced Security Scans (push) Failing after 1m13s
CI / Build (push) Failing after 39s
CI / Package Artifact (push) Has been skipped
CI / Unit Tests (1/2) (push) Has been skipped
CI / Unit Tests (2/2) (push) Has been skipped
CI / Node 24 Compatibility (1/2) (push) Has been skipped
CI / Node 24 Compatibility (2/2) (push) Has been skipped
CI / Coverage (push) Has been skipped
CI / E2E Tests (1/6) (push) Has been skipped
CI / E2E Tests (2/6) (push) Has been skipped
CI / E2E Tests (3/6) (push) Has been skipped
CI / E2E Tests (4/6) (push) Has been skipped
CI / E2E Tests (5/6) (push) Has been skipped
CI / E2E Tests (6/6) (push) Has been skipped
CI / Integration Tests (1/2) (push) Has been skipped
CI / Integration Tests (2/2) (push) Has been skipped
CI / Security Tests (push) Has been skipped
Publish to Docker Hub / Build and Push Docker (multi-arch) (push) Failing after 3m36s
CI / SonarQube (push) Has been skipped
CI / PR Coverage Comment (push) Has been skipped
CI / CI Dashboard (push) Successful in 16s
This commit is contained in:
@@ -266,10 +266,10 @@ curl -s -o /dev/null -w "LOCAL: HTTP %{http_code}\n" http://192.168.0.15:20128/
|
||||
curl -s -o /dev/null -w "AKAMAI: HTTP %{http_code}\n" http://69.164.221.35:20128/
|
||||
```
|
||||
|
||||
### 16. Clean up release branch
|
||||
### 16. Preserve release branch
|
||||
|
||||
```bash
|
||||
git branch -d release/v2.x.y
|
||||
# Branch is kept for historical purposes. Do not delete.
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
@@ -14,34 +14,34 @@ const log = logger("MEMORY_EXTRACTION");
|
||||
|
||||
/** Patterns indicating user preferences */
|
||||
const PREFERENCE_PATTERNS: RegExp[] = [
|
||||
/\bI\s+(?:really\s+)?prefer\s+(.+?)(?:\.|,|$)/gi,
|
||||
/\bI\s+(?:really\s+)?like\s+(.+?)(?:\.|,|$)/gi,
|
||||
/\bmy\s+(?:favorite|favourite)\s+(?:is|are)\s+(.+?)(?:\.|,|$)/gi,
|
||||
/\bI\s+(?:don'?t|do\s+not)\s+like\s+(.+?)(?:\.|,|$)/gi,
|
||||
/\bI\s+(?:hate|dislike|avoid)\s+(.+?)(?:\.|,|$)/gi,
|
||||
/\bI\s+enjoy\s+(.+?)(?:\.|,|$)/gi,
|
||||
/\bI\s+love\s+(.+?)(?:\.|,|$)/gi,
|
||||
/\bI\s+(?:really\s+)?prefer\s+([^.,\n]+)/gi,
|
||||
/\bI\s+(?:really\s+)?like\s+([^.,\n]+)/gi,
|
||||
/\bmy\s+(?:favorite|favourite)\s+(?:is|are)\s+([^.,\n]+)/gi,
|
||||
/\bI\s+(?:don'?t|do\s+not)\s+like\s+([^.,\n]+)/gi,
|
||||
/\bI\s+(?:hate|dislike|avoid)\s+([^.,\n]+)/gi,
|
||||
/\bI\s+enjoy\s+([^.,\n]+)/gi,
|
||||
/\bI\s+love\s+([^.,\n]+)/gi,
|
||||
];
|
||||
|
||||
/** Patterns indicating user decisions */
|
||||
const DECISION_PATTERNS: RegExp[] = [
|
||||
/\bI'?(?:ll|will)\s+use\s+(.+?)(?:\.|,|$)/gi,
|
||||
/\bI\s+chose\s+(.+?)(?:\.|,|$)/gi,
|
||||
/\bI\s+(?:have\s+)?decided\s+(?:to\s+)?(.+?)(?:\.|,|$)/gi,
|
||||
/\bI'?m\s+going\s+(?:to\s+)?(?:use|with|adopt)\s+(.+?)(?:\.|,|$)/gi,
|
||||
/\bI\s+selected\s+(.+?)(?:\.|,|$)/gi,
|
||||
/\bI\s+picked\s+(.+?)(?:\.|,|$)/gi,
|
||||
/\bI\s+went\s+with\s+(.+?)(?:\.|,|$)/gi,
|
||||
/\bI'?(?:ll|will)\s+use\s+([^.,\n]+)/gi,
|
||||
/\bI\s+chose\s+([^.,\n]+)/gi,
|
||||
/\bI\s+(?:have\s+)?decided\s+(?:to\s+)?([^.,\n]+)/gi,
|
||||
/\bI'?m\s+going\s+(?:to\s+)?(?:use|with|adopt)\s+([^.,\n]+)/gi,
|
||||
/\bI\s+selected\s+([^.,\n]+)/gi,
|
||||
/\bI\s+picked\s+([^.,\n]+)/gi,
|
||||
/\bI\s+went\s+with\s+([^.,\n]+)/gi,
|
||||
];
|
||||
|
||||
/** Patterns indicating user behavioral patterns */
|
||||
const PATTERN_PATTERNS: RegExp[] = [
|
||||
/\bI\s+usually\s+(.+?)(?:\.|,|$)/gi,
|
||||
/\bI\s+always\s+(.+?)(?:\.|,|$)/gi,
|
||||
/\bI\s+never\s+(.+?)(?:\.|,|$)/gi,
|
||||
/\bI\s+typically\s+(.+?)(?:\.|,|$)/gi,
|
||||
/\bI\s+tend\s+to\s+(.+?)(?:\.|,|$)/gi,
|
||||
/\bI\s+(?:often|frequently|regularly)\s+(.+?)(?:\.|,|$)/gi,
|
||||
/\bI\s+usually\s+([^.,\n]+)/gi,
|
||||
/\bI\s+always\s+([^.,\n]+)/gi,
|
||||
/\bI\s+never\s+([^.,\n]+)/gi,
|
||||
/\bI\s+typically\s+([^.,\n]+)/gi,
|
||||
/\bI\s+tend\s+to\s+([^.,\n]+)/gi,
|
||||
/\bI\s+(?:often|frequently|regularly)\s+([^.,\n]+)/gi,
|
||||
];
|
||||
|
||||
// Maximum length for extracted content
|
||||
|
||||
Reference in New Issue
Block a user