opencode-swarm 6.53.6 → 6.53.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli/index.js
CHANGED
|
@@ -32389,8 +32389,10 @@ var SECURITY_DEGRADING_PATTERNS = [
|
|
|
32389
32389
|
/disable\s+.{0,50}2fa/i,
|
|
32390
32390
|
/remove\s+.{0,50}password/i
|
|
32391
32391
|
];
|
|
32392
|
+
var INVISIBLE_FORMAT_CHARS = /[\u00AD\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u2069\uFEFF]/g;
|
|
32392
32393
|
var INJECTION_PATTERNS = [
|
|
32393
32394
|
/[\x00-\x08\x0b-\x0c\x0e-\x1f\x7f\x0d]/,
|
|
32395
|
+
/[\u00AD\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u2069\uFEFF]/,
|
|
32394
32396
|
/^system\s*:/i,
|
|
32395
32397
|
/<script/i,
|
|
32396
32398
|
/javascript:/i,
|
|
@@ -32543,7 +32545,7 @@ function validateLesson(candidate, existingLessons, meta3) {
|
|
|
32543
32545
|
severity: "error"
|
|
32544
32546
|
};
|
|
32545
32547
|
}
|
|
32546
|
-
const normalizedCandidate = candidate.normalize("NFKC").toLowerCase();
|
|
32548
|
+
const normalizedCandidate = candidate.normalize("NFKC").replace(INVISIBLE_FORMAT_CHARS, " ").replace(/\s+/g, " ").toLowerCase();
|
|
32547
32549
|
for (const pattern of DANGEROUS_COMMAND_PATTERNS) {
|
|
32548
32550
|
if (pattern.test(normalizedCandidate)) {
|
|
32549
32551
|
return {
|
|
@@ -8,6 +8,7 @@ export interface ValidationResult {
|
|
|
8
8
|
}
|
|
9
9
|
export declare const DANGEROUS_COMMAND_PATTERNS: RegExp[];
|
|
10
10
|
export declare const SECURITY_DEGRADING_PATTERNS: RegExp[];
|
|
11
|
+
export declare const INVISIBLE_FORMAT_CHARS: RegExp;
|
|
11
12
|
export declare const INJECTION_PATTERNS: RegExp[];
|
|
12
13
|
export declare function validateLesson(candidate: string, existingLessons: string[], meta: {
|
|
13
14
|
category: KnowledgeCategory;
|
package/dist/index.js
CHANGED
|
@@ -43634,8 +43634,10 @@ var SECURITY_DEGRADING_PATTERNS = [
|
|
|
43634
43634
|
/disable\s+.{0,50}2fa/i,
|
|
43635
43635
|
/remove\s+.{0,50}password/i
|
|
43636
43636
|
];
|
|
43637
|
+
var INVISIBLE_FORMAT_CHARS = /[\u00AD\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u2069\uFEFF]/g;
|
|
43637
43638
|
var INJECTION_PATTERNS = [
|
|
43638
43639
|
/[\x00-\x08\x0b-\x0c\x0e-\x1f\x7f\x0d]/,
|
|
43640
|
+
/[\u00AD\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u2069\uFEFF]/,
|
|
43639
43641
|
/^system\s*:/i,
|
|
43640
43642
|
/<script/i,
|
|
43641
43643
|
/javascript:/i,
|
|
@@ -43788,7 +43790,7 @@ function validateLesson(candidate, existingLessons, meta3) {
|
|
|
43788
43790
|
severity: "error"
|
|
43789
43791
|
};
|
|
43790
43792
|
}
|
|
43791
|
-
const normalizedCandidate = candidate.normalize("NFKC").toLowerCase();
|
|
43793
|
+
const normalizedCandidate = candidate.normalize("NFKC").replace(INVISIBLE_FORMAT_CHARS, " ").replace(/\s+/g, " ").toLowerCase();
|
|
43792
43794
|
for (const pattern of DANGEROUS_COMMAND_PATTERNS) {
|
|
43793
43795
|
if (pattern.test(normalizedCandidate)) {
|
|
43794
43796
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-swarm",
|
|
3
|
-
"version": "6.53.
|
|
3
|
+
"version": "6.53.7",
|
|
4
4
|
"description": "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|