opencode-swarm 7.135.0 → 7.135.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/{config-doctor-j1x63x87.js → config-doctor-6398t3a6.js} +2 -2
- package/dist/cli/{core-fvqp2gnn.js → core-9876t6cs.js} +1 -1
- package/dist/cli/{curation-policy-xg9zw0ep.js → curation-policy-f7qz4tez.js} +2 -2
- package/dist/cli/{curator-yc06cmnz.js → curator-fjhyezyx.js} +14 -14
- package/dist/cli/{curator-llm-factory-4mat6cq5.js → curator-llm-factory-wr3zmy2c.js} +14 -14
- package/dist/cli/{guardrail-explain-zmbxwh3s.js → guardrail-explain-g1s89b3e.js} +15 -15
- package/dist/cli/{guardrail-log-7egxrxap.js → guardrail-log-bd45kw0x.js} +3 -3
- package/dist/cli/{hive-promoter-7s3gzajy.js → hive-promoter-f2yh22m1.js} +14 -14
- package/dist/cli/{index-a4972t0f.js → index-247b1c1m.js} +3 -3
- package/dist/cli/{index-997d6p42.js → index-2nqsr1dx.js} +2 -2
- package/dist/cli/{index-6kmmdtdp.js → index-4pdrmemy.js} +2 -2
- package/dist/cli/{index-ctvnb76s.js → index-5vp9gka3.js} +1 -1
- package/dist/cli/{index-86wdrskb.js → index-5wx8wdxg.js} +5 -5
- package/dist/cli/{index-crw4n55v.js → index-aky90eqz.js} +36 -36
- package/dist/cli/{index-vf6e8ame.js → index-bjrkg4tc.js} +1 -1
- package/dist/cli/{index-337r9pkr.js → index-dzaarxhg.js} +1 -1
- package/dist/cli/{index-44zgqvqh.js → index-fwkqq9mq.js} +1 -1
- package/dist/cli/{index-x88w0cp5.js → index-g1drmgxe.js} +1 -1
- package/dist/cli/{index-nrvs08pr.js → index-j89zmcpx.js} +4 -4
- package/dist/cli/{index-grxkbbc5.js → index-jtshf1pd.js} +1 -1
- package/dist/cli/{index-e8w62fgs.js → index-jxchddjk.js} +1 -1
- package/dist/cli/{index-4yv2rn8q.js → index-nbnqf4fj.js} +1 -1
- package/dist/cli/{index-96b78s7p.js → index-w80r3axq.js} +16 -16
- package/dist/cli/{index-q9mq5tv3.js → index-wdkkf3xg.js} +2 -2
- package/dist/cli/{index-g0raqavt.js → index-xhpmagdm.js} +1 -1
- package/dist/cli/index.js +14 -14
- package/dist/cli/{knowledge-escalator-d76a090n.js → knowledge-escalator-4tp3yy7e.js} +3 -3
- package/dist/cli/{knowledge-events-3mcg1a0e.js → knowledge-events-7854gb3p.js} +1 -1
- package/dist/cli/{knowledge-store-xtt4sede.js → knowledge-store-cxnr6v01.js} +1 -1
- package/dist/cli/{knowledge-validator-h1k7ymtd.js → knowledge-validator-3n5t55qy.js} +4 -4
- package/dist/cli/{scan-cursor-stztfv7d.js → scan-cursor-0cexjh3b.js} +2 -2
- package/dist/cli/{schema-tbq2srrh.js → schema-rs5a7ywx.js} +1 -1
- package/dist/cli/{scope-persistence-7wydjzx8.js → scope-persistence-1vsnkmm4.js} +1 -1
- package/dist/cli/{skill-generator-02q1qdf0.js → skill-generator-n0h9n0zd.js} +5 -5
- package/dist/hooks/scope-guard.d.ts +11 -4
- package/dist/index.js +10 -10
- package/dist/scope/scope-binding.d.ts +68 -0
- package/dist/session/snapshot-reader.d.ts +6 -0
- package/dist/state.d.ts +118 -0
- package/dist/turbo/lean/lane-scope.d.ts +120 -0
- package/dist/turbo/lean/runner.d.ts +66 -4
- package/package.json +1 -1
- /package/dist/cli/{index-ny93srnd.js → index-fpkb3mw1.js} +0 -0
|
@@ -19,7 +19,7 @@ var package_default;
|
|
|
19
19
|
var init_package = __esm(() => {
|
|
20
20
|
package_default = {
|
|
21
21
|
name: "opencode-swarm",
|
|
22
|
-
version: "7.135.
|
|
22
|
+
version: "7.135.1",
|
|
23
23
|
description: "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
|
|
24
24
|
main: "dist/index.js",
|
|
25
25
|
types: "dist/index.d.ts",
|
|
@@ -39,7 +39,7 @@ var _internals = {
|
|
|
39
39
|
symlinkSync: fs.symlinkSync
|
|
40
40
|
},
|
|
41
41
|
writeScopeToDisk: async (directory, taskId, files) => {
|
|
42
|
-
const { writeScopeToDisk: realWrite } = await import("./scope-persistence-
|
|
42
|
+
const { writeScopeToDisk: realWrite } = await import("./scope-persistence-1vsnkmm4.js");
|
|
43
43
|
return realWrite(directory, taskId, files);
|
|
44
44
|
},
|
|
45
45
|
writeLaneProfileToDisk: async (_worktreePath, _laneIndex, _envOverrides) => {
|
|
@@ -608,7 +608,7 @@ async function applyKnowledgeVerdictFeedback(directory, options) {
|
|
|
608
608
|
deltas.push({ id, delta });
|
|
609
609
|
}
|
|
610
610
|
if (deltas.length > 0) {
|
|
611
|
-
const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-
|
|
611
|
+
const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-cxnr6v01.js");
|
|
612
612
|
await bumpKnowledgeConfidenceBatch(directory, deltas, options?.floorOptions);
|
|
613
613
|
}
|
|
614
614
|
return {
|
|
@@ -702,7 +702,7 @@ async function applyConfidenceFloorAction(directory, touched, options) {
|
|
|
702
702
|
const recovered = touched.filter((e) => e.confidence > CONFIDENCE_FLOOR + FLOOR_EPSILON && e.confidence_floor_demoted);
|
|
703
703
|
if (atFloor.length === 0 && recovered.length === 0)
|
|
704
704
|
return;
|
|
705
|
-
const { readKnowledgeCounterRollups, effectiveRetrievalOutcomes } = await import("./knowledge-events-
|
|
705
|
+
const { readKnowledgeCounterRollups, effectiveRetrievalOutcomes } = await import("./knowledge-events-7854gb3p.js");
|
|
706
706
|
const rollups = await readKnowledgeCounterRollups(directory);
|
|
707
707
|
const flagIds = new Set;
|
|
708
708
|
for (const e of atFloor) {
|
|
@@ -769,11 +769,11 @@ async function applyConfidenceFloorAction(directory, touched, options) {
|
|
|
769
769
|
});
|
|
770
770
|
}
|
|
771
771
|
if (action === "quarantine" && toQuarantine.length > 0) {
|
|
772
|
-
const { quarantineEntry } = await import("./knowledge-validator-
|
|
773
|
-
const { KnowledgeConfigSchema } = await import("./schema-
|
|
772
|
+
const { quarantineEntry } = await import("./knowledge-validator-3n5t55qy.js");
|
|
773
|
+
const { KnowledgeConfigSchema } = await import("./schema-rs5a7ywx.js");
|
|
774
774
|
let config;
|
|
775
775
|
try {
|
|
776
|
-
const { loadPluginConfigWithMeta } = await import("./index-
|
|
776
|
+
const { loadPluginConfigWithMeta } = await import("./index-wdkkf3xg.js");
|
|
777
777
|
const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
|
|
778
778
|
config = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
|
|
779
779
|
} catch {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
handleGuardrailExplain
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-4pdrmemy.js";
|
|
5
5
|
import {
|
|
6
6
|
handleGuardrailLog
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-nbnqf4fj.js";
|
|
8
8
|
import {
|
|
9
9
|
COMMAND_REGISTRY,
|
|
10
10
|
SWARM_COMMAND_TOOL_ALLOWLIST,
|
|
@@ -84,30 +84,30 @@ import {
|
|
|
84
84
|
handleWriteRetroCommand,
|
|
85
85
|
normalizeSwarmCommandInput,
|
|
86
86
|
resolveCommand
|
|
87
|
-
} from "./index-
|
|
87
|
+
} from "./index-aky90eqz.js";
|
|
88
88
|
import"./index-13xxjfhn.js";
|
|
89
|
-
import"./index-
|
|
90
|
-
import"./index-
|
|
89
|
+
import"./index-jtshf1pd.js";
|
|
90
|
+
import"./index-5vp9gka3.js";
|
|
91
91
|
import"./index-ens0gt38.js";
|
|
92
92
|
import"./index-4905hd2m.js";
|
|
93
93
|
import"./index-134d35c1.js";
|
|
94
|
-
import"./index-
|
|
95
|
-
import"./index-
|
|
96
|
-
import"./index-
|
|
94
|
+
import"./index-247b1c1m.js";
|
|
95
|
+
import"./index-5wx8wdxg.js";
|
|
96
|
+
import"./index-bjrkg4tc.js";
|
|
97
97
|
import"./index-vxv732ex.js";
|
|
98
98
|
import"./index-c8s9a3zh.js";
|
|
99
99
|
import"./index-9ss2m4rs.js";
|
|
100
100
|
import"./index-b7p0mp2q.js";
|
|
101
101
|
import"./index-z085b4ka.js";
|
|
102
|
-
import"./index-
|
|
103
|
-
import"./index-
|
|
102
|
+
import"./index-2nqsr1dx.js";
|
|
103
|
+
import"./index-xhpmagdm.js";
|
|
104
104
|
import"./index-rtry5xyf.js";
|
|
105
|
-
import"./index-
|
|
106
|
-
import"./index-
|
|
105
|
+
import"./index-j89zmcpx.js";
|
|
106
|
+
import"./index-g1drmgxe.js";
|
|
107
107
|
import"./index-ae75rja9.js";
|
|
108
108
|
import"./index-yhba8swx.js";
|
|
109
109
|
import"./index-xg9repnx.js";
|
|
110
|
-
import"./index-
|
|
110
|
+
import"./index-jxchddjk.js";
|
|
111
111
|
import"./index-k5jrywpr.js";
|
|
112
112
|
import"./index-n832052r.js";
|
|
113
113
|
import {
|
|
@@ -116,16 +116,16 @@ import {
|
|
|
116
116
|
init_constants,
|
|
117
117
|
init_schema,
|
|
118
118
|
stripKnownSwarmPrefix
|
|
119
|
-
} from "./index-
|
|
119
|
+
} from "./index-dzaarxhg.js";
|
|
120
120
|
import"./index-bk5tah7q.js";
|
|
121
121
|
import"./index-8fwhhayc.js";
|
|
122
122
|
import"./index-q1exe2b3.js";
|
|
123
|
-
import"./index-
|
|
123
|
+
import"./index-fpkb3mw1.js";
|
|
124
124
|
import"./index-wxyxf0bd.js";
|
|
125
125
|
import"./index-1kz6da87.js";
|
|
126
126
|
import"./index-b4z7s917.js";
|
|
127
127
|
import"./index-b8zgtz81.js";
|
|
128
|
-
import"./index-
|
|
128
|
+
import"./index-fwkqq9mq.js";
|
|
129
129
|
import"./index-4rhhvd1a.js";
|
|
130
130
|
import"./index-7an2qn0s.js";
|
|
131
131
|
import"./index-2ghkk9ve.js";
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
loadPluginConfigWithMeta,
|
|
8
8
|
loadPluginConfigWithMetaAsync,
|
|
9
9
|
resolveWorktreeIsolationConfig
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-jxchddjk.js";
|
|
11
11
|
import {
|
|
12
12
|
ApprovalEvidenceSchema,
|
|
13
13
|
BaseEvidenceSchema,
|
|
@@ -62,7 +62,7 @@ import {
|
|
|
62
62
|
isQAAgent,
|
|
63
63
|
isSubagent,
|
|
64
64
|
resolveAutoReviewConfig
|
|
65
|
-
} from "./index-
|
|
65
|
+
} from "./index-dzaarxhg.js";
|
|
66
66
|
import"./index-bk5tah7q.js";
|
|
67
67
|
import {
|
|
68
68
|
MigrationStatusSchema,
|
package/dist/cli/index.js
CHANGED
|
@@ -6,30 +6,30 @@ import {
|
|
|
6
6
|
getPluginConfigDir,
|
|
7
7
|
getPluginLockFilePaths,
|
|
8
8
|
resolveCommand
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-aky90eqz.js";
|
|
10
10
|
import"./index-13xxjfhn.js";
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
11
|
+
import"./index-jtshf1pd.js";
|
|
12
|
+
import"./index-5vp9gka3.js";
|
|
13
13
|
import"./index-ens0gt38.js";
|
|
14
14
|
import"./index-4905hd2m.js";
|
|
15
15
|
import"./index-134d35c1.js";
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
18
|
-
import"./index-
|
|
16
|
+
import"./index-247b1c1m.js";
|
|
17
|
+
import"./index-5wx8wdxg.js";
|
|
18
|
+
import"./index-bjrkg4tc.js";
|
|
19
19
|
import"./index-vxv732ex.js";
|
|
20
20
|
import"./index-c8s9a3zh.js";
|
|
21
21
|
import"./index-9ss2m4rs.js";
|
|
22
22
|
import"./index-b7p0mp2q.js";
|
|
23
23
|
import"./index-z085b4ka.js";
|
|
24
|
-
import"./index-
|
|
25
|
-
import"./index-
|
|
24
|
+
import"./index-2nqsr1dx.js";
|
|
25
|
+
import"./index-xhpmagdm.js";
|
|
26
26
|
import"./index-rtry5xyf.js";
|
|
27
|
-
import"./index-
|
|
28
|
-
import"./index-
|
|
27
|
+
import"./index-j89zmcpx.js";
|
|
28
|
+
import"./index-g1drmgxe.js";
|
|
29
29
|
import"./index-ae75rja9.js";
|
|
30
30
|
import"./index-yhba8swx.js";
|
|
31
31
|
import"./index-xg9repnx.js";
|
|
32
|
-
import"./index-
|
|
32
|
+
import"./index-jxchddjk.js";
|
|
33
33
|
import"./index-k5jrywpr.js";
|
|
34
34
|
import"./index-n832052r.js";
|
|
35
35
|
import {
|
|
@@ -37,16 +37,16 @@ import {
|
|
|
37
37
|
init_constants,
|
|
38
38
|
init_package,
|
|
39
39
|
package_default
|
|
40
|
-
} from "./index-
|
|
40
|
+
} from "./index-dzaarxhg.js";
|
|
41
41
|
import"./index-bk5tah7q.js";
|
|
42
42
|
import"./index-8fwhhayc.js";
|
|
43
43
|
import"./index-q1exe2b3.js";
|
|
44
|
-
import"./index-
|
|
44
|
+
import"./index-fpkb3mw1.js";
|
|
45
45
|
import"./index-wxyxf0bd.js";
|
|
46
46
|
import"./index-1kz6da87.js";
|
|
47
47
|
import"./index-b4z7s917.js";
|
|
48
48
|
import"./index-b8zgtz81.js";
|
|
49
|
-
import"./index-
|
|
49
|
+
import"./index-fwkqq9mq.js";
|
|
50
50
|
import"./index-4rhhvd1a.js";
|
|
51
51
|
import"./index-7an2qn0s.js";
|
|
52
52
|
import"./index-2ghkk9ve.js";
|
|
@@ -8,9 +8,9 @@ import {
|
|
|
8
8
|
maybeEscalateOnViolation,
|
|
9
9
|
maybeQuarantineOnContradiction,
|
|
10
10
|
readRecentEscalations
|
|
11
|
-
} from "./index-
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
11
|
+
} from "./index-5wx8wdxg.js";
|
|
12
|
+
import"./index-j89zmcpx.js";
|
|
13
|
+
import"./index-g1drmgxe.js";
|
|
14
14
|
import"./index-ae75rja9.js";
|
|
15
15
|
import"./index-yhba8swx.js";
|
|
16
16
|
import"./index-xg9repnx.js";
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
resolveKnowledgeCounterBaselinePath,
|
|
27
27
|
resolveKnowledgeEventsPath,
|
|
28
28
|
resolveLegacyApplicationLogPath
|
|
29
|
-
} from "./index-
|
|
29
|
+
} from "./index-g1drmgxe.js";
|
|
30
30
|
import"./index-ae75rja9.js";
|
|
31
31
|
import"./index-yhba8swx.js";
|
|
32
32
|
import"./index-xg9repnx.js";
|
|
@@ -23,11 +23,11 @@ import {
|
|
|
23
23
|
validateLesson,
|
|
24
24
|
validateSkillCandidatePath,
|
|
25
25
|
validateSkillPath
|
|
26
|
-
} from "./index-
|
|
27
|
-
import"./index-
|
|
26
|
+
} from "./index-2nqsr1dx.js";
|
|
27
|
+
import"./index-xhpmagdm.js";
|
|
28
28
|
import"./index-rtry5xyf.js";
|
|
29
|
-
import"./index-
|
|
30
|
-
import"./index-
|
|
29
|
+
import"./index-j89zmcpx.js";
|
|
30
|
+
import"./index-g1drmgxe.js";
|
|
31
31
|
import"./index-ae75rja9.js";
|
|
32
32
|
import"./index-yhba8swx.js";
|
|
33
33
|
import"./index-xg9repnx.js";
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
alreadyCuratedThisGeneration,
|
|
5
5
|
claimNextScanBatch,
|
|
6
6
|
getScanStatus
|
|
7
|
-
} from "./index-
|
|
8
|
-
import"./index-
|
|
7
|
+
} from "./index-bjrkg4tc.js";
|
|
8
|
+
import"./index-j89zmcpx.js";
|
|
9
9
|
import"./index-ae75rja9.js";
|
|
10
10
|
import"./index-yhba8swx.js";
|
|
11
11
|
import"./index-xg9repnx.js";
|
|
@@ -33,12 +33,12 @@ import {
|
|
|
33
33
|
sanitizeSlug,
|
|
34
34
|
selectCandidateEntries,
|
|
35
35
|
writeEvalStub
|
|
36
|
-
} from "./index-
|
|
37
|
-
import"./index-
|
|
38
|
-
import"./index-
|
|
36
|
+
} from "./index-247b1c1m.js";
|
|
37
|
+
import"./index-2nqsr1dx.js";
|
|
38
|
+
import"./index-xhpmagdm.js";
|
|
39
39
|
import"./index-rtry5xyf.js";
|
|
40
|
-
import"./index-
|
|
41
|
-
import"./index-
|
|
40
|
+
import"./index-j89zmcpx.js";
|
|
41
|
+
import"./index-g1drmgxe.js";
|
|
42
42
|
import"./index-ae75rja9.js";
|
|
43
43
|
import"./index-yhba8swx.js";
|
|
44
44
|
import"./index-xg9repnx.js";
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
* Fires BEFORE write/edit tools execute. When a coder attempts to modify a file
|
|
9
9
|
* outside its Task-correlated scope, blocks the call and injects an advisory.
|
|
10
10
|
*/
|
|
11
|
-
import { getAuthorizedPrFeedbackScopeBinding } from '../scope/scope-binding';
|
|
11
|
+
import { describeScopeWorkspaceMismatch, getAuthorizedPrFeedbackScopeBinding } from '../scope/scope-binding';
|
|
12
12
|
import { resolveAuthorizedPrFeedbackScopeBindingFromDisk, resolveAuthorizedScopeBinding, resolveAuthorizedScopeBindingForSession } from '../scope/scope-persistence';
|
|
13
|
-
import { type AgentSessionState } from '../state';
|
|
13
|
+
import { type AgentSessionState, resolveSessionWorkspaceDirectory } from '../state';
|
|
14
14
|
import { validatePrFeedbackScopeBinding } from './pr-workflow-gate';
|
|
15
15
|
import { resolveWriteTargets } from './write-target-resolver';
|
|
16
16
|
/**
|
|
@@ -25,10 +25,15 @@ export interface ScopeGuardConfig {
|
|
|
25
25
|
/**
|
|
26
26
|
* Creates the scope-guard hook that blocks out-of-scope writes.
|
|
27
27
|
* @param config - ScopeGuardConfig (enabled, skip_in_turbo)
|
|
28
|
-
* @param
|
|
28
|
+
* @param fallbackDirectory - The plugin-root directory (`ctx.directory`). Used
|
|
29
|
+
* ONLY as the fallback for sessions with no recorded workspace root. Issue
|
|
30
|
+
* #2002: this hook is constructed once per plugin instance and serves every
|
|
31
|
+
* session, including worktree-isolated coder children that execute in a
|
|
32
|
+
* different root — so this value must never be used directly as "the
|
|
33
|
+
* directory" inside the handler. Resolve per session instead.
|
|
29
34
|
* @param injectAdvisory - Optional callback to push advisory to architect session
|
|
30
35
|
*/
|
|
31
|
-
export declare function createScopeGuardHook(config: Partial<ScopeGuardConfig>,
|
|
36
|
+
export declare function createScopeGuardHook(config: Partial<ScopeGuardConfig>, fallbackDirectory: string, injectAdvisory?: (sessionId: string, message: string) => void): {
|
|
32
37
|
toolBefore: (input: {
|
|
33
38
|
tool: string;
|
|
34
39
|
sessionID: string;
|
|
@@ -74,6 +79,8 @@ export declare const _internals: {
|
|
|
74
79
|
getAuthorizedPrFeedbackScopeBinding: typeof getAuthorizedPrFeedbackScopeBinding;
|
|
75
80
|
resolveAuthorizedPrFeedbackScopeBindingFromDisk: typeof resolveAuthorizedPrFeedbackScopeBindingFromDisk;
|
|
76
81
|
validatePrFeedbackScopeBinding: typeof validatePrFeedbackScopeBinding;
|
|
82
|
+
resolveSessionWorkspaceDirectory: typeof resolveSessionWorkspaceDirectory;
|
|
83
|
+
describeScopeWorkspaceMismatch: typeof describeScopeWorkspaceMismatch;
|
|
77
84
|
resolveTaskId: (session: AgentSessionState | undefined) => string | null;
|
|
78
85
|
};
|
|
79
86
|
export {};
|