opencode-swarm 7.5.0 → 7.5.1
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 +1 -1
- package/dist/index.js +22 -13
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -34,7 +34,7 @@ var package_default;
|
|
|
34
34
|
var init_package = __esm(() => {
|
|
35
35
|
package_default = {
|
|
36
36
|
name: "opencode-swarm",
|
|
37
|
-
version: "7.5.
|
|
37
|
+
version: "7.5.1",
|
|
38
38
|
description: "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
|
|
39
39
|
main: "dist/index.js",
|
|
40
40
|
types: "dist/index.d.ts",
|
package/dist/index.js
CHANGED
|
@@ -33,7 +33,7 @@ var package_default;
|
|
|
33
33
|
var init_package = __esm(() => {
|
|
34
34
|
package_default = {
|
|
35
35
|
name: "opencode-swarm",
|
|
36
|
-
version: "7.5.
|
|
36
|
+
version: "7.5.1",
|
|
37
37
|
description: "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
|
|
38
38
|
main: "dist/index.js",
|
|
39
39
|
types: "dist/index.d.ts",
|
|
@@ -22637,7 +22637,7 @@ var init_quick_lru = __esm(() => {
|
|
|
22637
22637
|
// src/context/zone-classifier.ts
|
|
22638
22638
|
function classifyFile(filePath) {
|
|
22639
22639
|
const normalized = filePath.toLowerCase().replace(/\\/g, "/");
|
|
22640
|
-
if (normalized.endsWith(".wasm") || normalized.includes("/dist/") || normalized.includes("/build/") || normalized.includes(".swarm/checkpoints/")) {
|
|
22640
|
+
if (normalized.endsWith(".wasm") || normalized.startsWith("dist/") || normalized.includes("/dist/") || normalized.startsWith("build/") || normalized.includes("/build/") || normalized.includes(".swarm/checkpoints/")) {
|
|
22641
22641
|
return {
|
|
22642
22642
|
filePath,
|
|
22643
22643
|
zone: "generated",
|
|
@@ -25225,6 +25225,16 @@ function checkFileAuthorityWithRules(agentName, filePath, cwd, effectiveRules, o
|
|
|
25225
25225
|
return { allowed: true };
|
|
25226
25226
|
}
|
|
25227
25227
|
}
|
|
25228
|
+
if (rules.blockedZones && rules.blockedZones.length > 0) {
|
|
25229
|
+
const { zone } = classifyFile(normalizedPath);
|
|
25230
|
+
if (rules.blockedZones.includes(zone)) {
|
|
25231
|
+
return {
|
|
25232
|
+
allowed: false,
|
|
25233
|
+
reason: `Path blocked: ${normalizedPath} is in ${zone} zone`,
|
|
25234
|
+
zone
|
|
25235
|
+
};
|
|
25236
|
+
}
|
|
25237
|
+
}
|
|
25228
25238
|
if (rules.allowedGlobs && rules.allowedGlobs.length > 0) {
|
|
25229
25239
|
const isGlobAllowed = rules.allowedGlobs.some((glob) => {
|
|
25230
25240
|
const matcher = getGlobMatcher(glob);
|
|
@@ -25262,16 +25272,6 @@ function checkFileAuthorityWithRules(agentName, filePath, cwd, effectiveRules, o
|
|
|
25262
25272
|
};
|
|
25263
25273
|
}
|
|
25264
25274
|
}
|
|
25265
|
-
if (rules.blockedZones && rules.blockedZones.length > 0) {
|
|
25266
|
-
const { zone } = classifyFile(normalizedPath);
|
|
25267
|
-
if (rules.blockedZones.includes(zone)) {
|
|
25268
|
-
return {
|
|
25269
|
-
allowed: false,
|
|
25270
|
-
reason: `Path blocked: ${normalizedPath} is in ${zone} zone`,
|
|
25271
|
-
zone
|
|
25272
|
-
};
|
|
25273
|
-
}
|
|
25274
|
-
}
|
|
25275
25275
|
return { allowed: true };
|
|
25276
25276
|
}
|
|
25277
25277
|
var import_picomatch, storedInputArgs, TRANSIENT_MODEL_ERROR_PATTERN, toolCallsSinceLastWrite, noOpWarningIssued, consecutiveNoToolTurns, DC_MAX_UNWRAP_DEPTH = 5, DC_SAFE_TARGETS, DC_BLOCKED_ABSOLUTE_PREFIXES, DC_FS_ROOTS, DC_REMOTE_PREFIXES, pathNormalizationCache, globMatcherCache, DEFAULT_AGENT_AUTHORITY_RULES;
|
|
@@ -25390,15 +25390,24 @@ var init_guardrails = __esm(() => {
|
|
|
25390
25390
|
test_engineer: {
|
|
25391
25391
|
blockedExact: [".swarm/plan.md", ".swarm/plan.json"],
|
|
25392
25392
|
blockedPrefix: ["src/"],
|
|
25393
|
-
allowedPrefix: ["tests/", ".swarm/evidence/"],
|
|
25393
|
+
allowedPrefix: ["tests/", "test/", ".swarm/evidence/"],
|
|
25394
|
+
allowedGlobs: [
|
|
25395
|
+
"**/tests/**",
|
|
25396
|
+
"**/test/**",
|
|
25397
|
+
"**/__tests__/**",
|
|
25398
|
+
"**/*.test.*",
|
|
25399
|
+
"**/*.spec.*"
|
|
25400
|
+
],
|
|
25394
25401
|
blockedZones: ["generated"]
|
|
25395
25402
|
},
|
|
25396
25403
|
docs: {
|
|
25397
25404
|
allowedPrefix: ["docs/", ".swarm/outputs/"],
|
|
25405
|
+
allowedGlobs: ["**/docs/**", "**/*.md", "**/*.mdx", "**/*.rst"],
|
|
25398
25406
|
blockedZones: ["generated"]
|
|
25399
25407
|
},
|
|
25400
25408
|
designer: {
|
|
25401
25409
|
allowedPrefix: ["docs/", ".swarm/outputs/"],
|
|
25410
|
+
allowedGlobs: ["**/docs/**", "**/*.md", "**/*.mdx", "**/*.rst"],
|
|
25402
25411
|
blockedZones: ["generated"]
|
|
25403
25412
|
},
|
|
25404
25413
|
critic: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-swarm",
|
|
3
|
-
"version": "7.5.
|
|
3
|
+
"version": "7.5.1",
|
|
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",
|