opencode-swarm 7.135.2 → 7.135.3
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/.opencode/skills/critic-gate/SKILL.md +10 -0
- package/dist/agents/index.d.ts +12 -0
- package/dist/cli/{config-doctor-pj3yvxdb.js → config-doctor-4nznqeca.js} +3 -2
- package/dist/cli/{core-4va9z2ng.js → core-4z1s2ak1.js} +3 -2
- package/dist/cli/{curation-policy-b2caf3v3.js → curation-policy-81m14519.js} +3 -3
- package/dist/cli/{curator-drift-2ta83hss.js → curator-drift-jpap6hv4.js} +2 -2
- package/dist/cli/{curator-r1s2mwf2.js → curator-e0z5gcww.js} +24 -23
- package/dist/cli/{curator-llm-factory-9983528d.js → curator-llm-factory-fem13y9n.js} +24 -23
- package/dist/cli/{dispatch-wtk6dxky.js → dispatch-b1fge4xk.js} +2 -2
- package/dist/cli/{evidence-summary-service-feby8ny0.js → evidence-summary-service-w006jnpg.js} +5 -5
- package/dist/cli/{gate-evidence-84b03mb4.js → gate-evidence-aenyz6vt.js} +2 -2
- package/dist/cli/{guardrail-explain-pwxvg5n0.js → guardrail-explain-wgaj23hd.js} +25 -24
- package/dist/cli/{guardrail-log-yzpz8b7t.js → guardrail-log-04p1z1vt.js} +5 -4
- package/dist/cli/{hive-promoter-586dhndj.js → hive-promoter-k345z42k.js} +24 -23
- package/dist/cli/{index-g3meqrsg.js → index-168phrs7.js} +12 -10
- package/dist/cli/{index-3m7kpnqf.js → index-30pg2rs3.js} +1 -1
- package/dist/cli/{index-b0eva00y.js → index-36v55ryg.js} +1 -1
- package/dist/cli/index-3jcyn8g6.js +1219 -0
- package/dist/cli/{index-hdy2nd5h.js → index-45t7w06b.js} +4 -4
- package/dist/cli/{index-bs4m85v1.js → index-5436jxnw.js} +2 -2
- package/dist/cli/{index-j92ser8n.js → index-a01r818w.js} +5 -3
- package/dist/cli/{index-hvrrq3f3.js → index-bcmrg4t4.js} +1 -1
- package/dist/cli/{index-d5psymdk.js → index-c9ddxv4k.js} +57 -8
- package/dist/cli/{index-7pnvf04s.js → index-cggqh2dz.js} +10 -10
- package/dist/cli/{index-340chr1e.js → index-dwargd10.js} +10105 -9998
- package/dist/cli/{index-ckdva4rs.js → index-f52jt0am.js} +5 -5
- package/dist/cli/{index-jgkjxpdh.js → index-gxxxmajn.js} +2 -2
- package/dist/cli/{index-2pxk6qg4.js → index-kb7qy7an.js} +4 -2
- package/dist/cli/{index-j0kte6gd.js → index-p5kr35wh.js} +8 -1210
- package/dist/cli/{index-02cqjna3.js → index-p9ngg568.js} +4 -4
- package/dist/cli/{index-8gw8p7yh.js → index-rv7s2k9y.js} +1 -1
- package/dist/cli/{index-3xbx305x.js → index-tcn457d5.js} +1 -1
- package/dist/cli/{index-9c3gf2wd.js → index-wygxzvtf.js} +6 -4
- package/dist/cli/{index-73dfyfhq.js → index-x20cgr2q.js} +1 -1
- package/dist/cli/{index-cwdy5vw9.js → index-y47crdg9.js} +30 -28
- package/dist/cli/{index-qqkw794p.js → index-yf30m841.js} +3 -3
- package/dist/cli/index.js +27 -25
- package/dist/cli/{knowledge-escalator-w7by1m8m.js → knowledge-escalator-42ecv7m3.js} +4 -4
- package/dist/cli/{knowledge-events-n8xxsay3.js → knowledge-events-zhna7v3g.js} +2 -2
- package/dist/cli/knowledge-link-mm1w967j.js +1 -1
- package/dist/cli/{knowledge-store-xzmvfnx3.js → knowledge-store-56jcfc5k.js} +2 -2
- package/dist/cli/{knowledge-validator-5q1amsq6.js → knowledge-validator-8zk0pnb6.js} +5 -5
- package/dist/cli/{pending-delegations-mt5gs1bt.js → pending-delegations-qajsxct0.js} +4 -4
- package/dist/cli/{pr-subscriptions-v5xd3j6d.js → pr-subscriptions-qhr41epq.js} +4 -4
- package/dist/cli/{scan-cursor-1q1zmt4b.js → scan-cursor-h3ndxd41.js} +3 -3
- package/dist/cli/{schema-8mtsfspm.js → schema-r6wmd7zp.js} +2 -1
- package/dist/cli/scope-persistence-h2fpgxww.js +2 -2
- package/dist/cli/{skill-generator-54xbjgak.js → skill-generator-12cftsx4.js} +6 -6
- package/dist/cli/{worktree-collision-ownership-15hymf1y.js → worktree-collision-ownership-13btcj9g.js} +5 -5
- package/dist/commands/approve-plan-critic.d.ts +21 -0
- package/dist/commands/registry.d.ts +8 -0
- package/dist/config/cache-paths.d.ts +48 -0
- package/dist/config/constants.d.ts +18 -0
- package/dist/config/host-path.d.ts +95 -0
- package/dist/config/lane-context.d.ts +117 -0
- package/dist/config/lane-permissions.d.ts +277 -0
- package/dist/config/schema.d.ts +10 -0
- package/dist/config/swarm-branch.d.ts +130 -0
- package/dist/hooks/delegation-gate.d.ts +42 -1
- package/dist/hooks/skill-propagation-gate.d.ts +10 -0
- package/dist/index.js +211 -199
- package/dist/memory/schema.d.ts +4 -4
- package/dist/tools/approve-plan-critic.d.ts +5 -0
- package/dist/tools/index.d.ts +1 -0
- package/dist/tools/manifest.d.ts +1 -0
- package/dist/tools/tool-metadata.d.ts +4 -0
- package/package.json +1 -1
- package/dist/cli/{index-bfd4xfpp.js → index-4qzeef9h.js} +3 -3
- package/dist/cli/{index-ryqnn3nv.js → index-mrtms113.js} +3 -3
- package/dist/cli/{index-m0ynxkaa.js → index-vm4xw9z3.js} +3 -3
|
@@ -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-zhna7v3g.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-8zk0pnb6.js");
|
|
773
|
+
const { KnowledgeConfigSchema } = await import("./schema-r6wmd7zp.js");
|
|
774
774
|
let config;
|
|
775
775
|
try {
|
|
776
|
-
const { loadPluginConfigWithMeta } = await import("./index-
|
|
776
|
+
const { loadPluginConfigWithMeta } = await import("./index-168phrs7.js");
|
|
777
777
|
const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
|
|
778
778
|
config = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
|
|
779
779
|
} catch {
|
|
@@ -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-56jcfc5k.js");
|
|
612
612
|
await bumpKnowledgeConfidenceBatch(directory, deltas, options?.floorOptions);
|
|
613
613
|
}
|
|
614
614
|
return {
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
|
-
DEFAULT_WORKTREE_ISOLATION_CONFIG,
|
|
4
3
|
ExternalSkillsConfigSchema,
|
|
5
4
|
GATE_CONFIG_KNOWN_SECTION_KEYS,
|
|
6
5
|
GateConfigSchema,
|
|
7
6
|
PluginConfigSchema,
|
|
8
|
-
init_constants,
|
|
9
7
|
init_schema,
|
|
10
8
|
resolveExternalSkillsConfig
|
|
11
|
-
} from "./index-
|
|
9
|
+
} from "./index-p5kr35wh.js";
|
|
12
10
|
import {
|
|
13
11
|
advisoryWarn,
|
|
14
12
|
init_warning_buffer
|
|
15
13
|
} from "./index-4rhhvd1a.js";
|
|
14
|
+
import {
|
|
15
|
+
DEFAULT_WORKTREE_ISOLATION_CONFIG,
|
|
16
|
+
init_constants
|
|
17
|
+
} from "./index-3jcyn8g6.js";
|
|
16
18
|
import {
|
|
17
19
|
MAX_MERGE_DEPTH,
|
|
18
20
|
deepMerge,
|
|
@@ -715,4 +717,4 @@ function resolveWorktreeIsolationConfig(config) {
|
|
|
715
717
|
// src/config/index.ts
|
|
716
718
|
var _internals = { loadPluginConfigWithMeta };
|
|
717
719
|
|
|
718
|
-
export { loadPluginConfig, loadPluginConfigWithMeta, getSafeDefaultConfigLoadResult, loadPluginConfigWithMetaAsync, loadAgentPrompt, exports_loader, init_loader,
|
|
720
|
+
export { resolveWorktreeIsolationConfig, loadPluginConfig, loadPluginConfigWithMeta, getSafeDefaultConfigLoadResult, loadPluginConfigWithMetaAsync, loadAgentPrompt, exports_loader, init_loader, _internals };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
handleGuardrailExplain
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-5436jxnw.js";
|
|
5
5
|
import {
|
|
6
6
|
handleGuardrailLog
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-bcmrg4t4.js";
|
|
8
8
|
import {
|
|
9
9
|
COMMAND_REGISTRY,
|
|
10
10
|
SWARM_COMMAND_TOOL_ALLOWLIST,
|
|
@@ -84,61 +84,63 @@ import {
|
|
|
84
84
|
handleWriteRetroCommand,
|
|
85
85
|
normalizeSwarmCommandInput,
|
|
86
86
|
resolveCommand
|
|
87
|
-
} from "./index-
|
|
88
|
-
import"./index-
|
|
89
|
-
import"./index-
|
|
90
|
-
import"./index-
|
|
91
|
-
import"./index-
|
|
87
|
+
} from "./index-dwargd10.js";
|
|
88
|
+
import"./index-vm4xw9z3.js";
|
|
89
|
+
import"./index-kb7qy7an.js";
|
|
90
|
+
import"./index-a01r818w.js";
|
|
91
|
+
import"./index-cggqh2dz.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-yf30m841.js";
|
|
95
|
+
import"./index-f52jt0am.js";
|
|
96
|
+
import"./index-36v55ryg.js";
|
|
97
97
|
import"./index-dg1njnms.js";
|
|
98
98
|
import"./index-c8s9a3zh.js";
|
|
99
99
|
import"./index-9ss2m4rs.js";
|
|
100
|
-
import"./index-
|
|
101
|
-
import"./index-
|
|
102
|
-
import"./index-
|
|
103
|
-
import"./index-
|
|
100
|
+
import"./index-y6a7gjtj.js";
|
|
101
|
+
import"./index-mrtms113.js";
|
|
102
|
+
import"./index-gxxxmajn.js";
|
|
103
|
+
import"./index-30pg2rs3.js";
|
|
104
104
|
import"./index-rtry5xyf.js";
|
|
105
|
-
import"./index-
|
|
106
|
-
import"./index-
|
|
105
|
+
import"./index-p9ngg568.js";
|
|
106
|
+
import"./index-rv7s2k9y.js";
|
|
107
107
|
import"./index-ae75rja9.js";
|
|
108
108
|
import"./index-dzyjb33e.js";
|
|
109
109
|
import"./index-ey29aap6.js";
|
|
110
|
-
import"./index-
|
|
110
|
+
import"./index-wygxzvtf.js";
|
|
111
111
|
import"./index-k5jrywpr.js";
|
|
112
112
|
import"./index-n832052r.js";
|
|
113
113
|
import {
|
|
114
|
-
AGENT_TOOL_MAP,
|
|
115
|
-
ORCHESTRATOR_NAME,
|
|
116
|
-
init_constants,
|
|
117
114
|
init_schema,
|
|
118
115
|
stripKnownSwarmPrefix
|
|
119
|
-
} from "./index-
|
|
116
|
+
} from "./index-p5kr35wh.js";
|
|
120
117
|
import"./index-bk5tah7q.js";
|
|
121
118
|
import"./index-8fwhhayc.js";
|
|
122
119
|
import"./index-q1exe2b3.js";
|
|
120
|
+
import"./index-tcn457d5.js";
|
|
123
121
|
import"./index-vg3yx648.js";
|
|
124
122
|
import"./index-wxyxf0bd.js";
|
|
125
123
|
import"./index-1kz6da87.js";
|
|
126
|
-
import"./index-
|
|
124
|
+
import"./index-x20cgr2q.js";
|
|
127
125
|
import"./index-b8zgtz81.js";
|
|
128
|
-
import"./index-
|
|
126
|
+
import"./index-c9ddxv4k.js";
|
|
129
127
|
import"./index-4rhhvd1a.js";
|
|
130
|
-
import
|
|
131
|
-
|
|
128
|
+
import {
|
|
129
|
+
AGENT_TOOL_MAP,
|
|
130
|
+
ORCHESTRATOR_NAME,
|
|
131
|
+
init_constants
|
|
132
|
+
} from "./index-3jcyn8g6.js";
|
|
133
|
+
import"./index-45t7w06b.js";
|
|
134
|
+
import"./index-4qzeef9h.js";
|
|
132
135
|
import"./index-fsrp8wp3.js";
|
|
133
136
|
import"./index-09b9zncg.js";
|
|
134
137
|
import"./index-7g4c7s5r.js";
|
|
135
|
-
import"./index-7a2hm51h.js";
|
|
136
138
|
import"./index-bpmtbmy9.js";
|
|
139
|
+
import"./index-7a2hm51h.js";
|
|
137
140
|
import"./index-z6xqpmqg.js";
|
|
138
141
|
import"./index-zjygnfay.js";
|
|
139
|
-
import"./index-zgwm4ryv.js";
|
|
140
|
-
import"./index-y6a7gjtj.js";
|
|
141
142
|
import"./index-y111zefa.js";
|
|
143
|
+
import"./index-zgwm4ryv.js";
|
|
142
144
|
import"./index-a76rekgs.js";
|
|
143
145
|
|
|
144
146
|
// src/commands/index.ts
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
import {
|
|
3
3
|
ALLOWED_SKILL_PATH_PREFIXES,
|
|
4
4
|
validateSkillPath
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-gxxxmajn.js";
|
|
6
6
|
import {
|
|
7
7
|
computeOutcomeSignal,
|
|
8
8
|
readKnowledge,
|
|
9
9
|
resolveHiveKnowledgePath,
|
|
10
10
|
resolveSwarmKnowledgePath,
|
|
11
11
|
transactKnowledge
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-p9ngg568.js";
|
|
13
13
|
import {
|
|
14
14
|
effectiveRetrievalOutcomes,
|
|
15
15
|
readKnowledgeCounterRollups
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-rv7s2k9y.js";
|
|
17
17
|
import {
|
|
18
18
|
init_knowledge_types,
|
|
19
19
|
isActiveStatus
|
package/dist/cli/index.js
CHANGED
|
@@ -6,60 +6,62 @@ import {
|
|
|
6
6
|
getPluginConfigDir,
|
|
7
7
|
getPluginLockFilePaths,
|
|
8
8
|
resolveCommand
|
|
9
|
-
} from "./index-
|
|
10
|
-
import"./index-
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
9
|
+
} from "./index-dwargd10.js";
|
|
10
|
+
import"./index-vm4xw9z3.js";
|
|
11
|
+
import"./index-kb7qy7an.js";
|
|
12
|
+
import"./index-a01r818w.js";
|
|
13
|
+
import"./index-cggqh2dz.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-yf30m841.js";
|
|
17
|
+
import"./index-f52jt0am.js";
|
|
18
|
+
import"./index-36v55ryg.js";
|
|
19
19
|
import"./index-dg1njnms.js";
|
|
20
20
|
import"./index-c8s9a3zh.js";
|
|
21
21
|
import"./index-9ss2m4rs.js";
|
|
22
|
-
import"./index-
|
|
23
|
-
import"./index-
|
|
24
|
-
import"./index-
|
|
25
|
-
import"./index-
|
|
22
|
+
import"./index-y6a7gjtj.js";
|
|
23
|
+
import"./index-mrtms113.js";
|
|
24
|
+
import"./index-gxxxmajn.js";
|
|
25
|
+
import"./index-30pg2rs3.js";
|
|
26
26
|
import"./index-rtry5xyf.js";
|
|
27
|
-
import"./index-
|
|
28
|
-
import"./index-
|
|
27
|
+
import"./index-p9ngg568.js";
|
|
28
|
+
import"./index-rv7s2k9y.js";
|
|
29
29
|
import"./index-ae75rja9.js";
|
|
30
30
|
import"./index-dzyjb33e.js";
|
|
31
31
|
import"./index-ey29aap6.js";
|
|
32
|
-
import"./index-
|
|
32
|
+
import"./index-wygxzvtf.js";
|
|
33
33
|
import"./index-k5jrywpr.js";
|
|
34
34
|
import"./index-n832052r.js";
|
|
35
35
|
import {
|
|
36
|
-
DEFAULT_AGENT_CONFIGS,
|
|
37
|
-
init_constants,
|
|
38
36
|
init_package,
|
|
39
37
|
package_default
|
|
40
|
-
} from "./index-
|
|
38
|
+
} from "./index-p5kr35wh.js";
|
|
41
39
|
import"./index-bk5tah7q.js";
|
|
42
40
|
import"./index-8fwhhayc.js";
|
|
43
41
|
import"./index-q1exe2b3.js";
|
|
42
|
+
import"./index-tcn457d5.js";
|
|
44
43
|
import"./index-vg3yx648.js";
|
|
45
44
|
import"./index-wxyxf0bd.js";
|
|
46
45
|
import"./index-1kz6da87.js";
|
|
47
|
-
import"./index-
|
|
46
|
+
import"./index-x20cgr2q.js";
|
|
48
47
|
import"./index-b8zgtz81.js";
|
|
49
|
-
import"./index-
|
|
48
|
+
import"./index-c9ddxv4k.js";
|
|
50
49
|
import"./index-4rhhvd1a.js";
|
|
51
|
-
import
|
|
52
|
-
|
|
50
|
+
import {
|
|
51
|
+
DEFAULT_AGENT_CONFIGS,
|
|
52
|
+
init_constants
|
|
53
|
+
} from "./index-3jcyn8g6.js";
|
|
54
|
+
import"./index-45t7w06b.js";
|
|
55
|
+
import"./index-4qzeef9h.js";
|
|
53
56
|
import"./index-fsrp8wp3.js";
|
|
54
57
|
import"./index-09b9zncg.js";
|
|
55
58
|
import"./index-7g4c7s5r.js";
|
|
56
|
-
import"./index-7a2hm51h.js";
|
|
57
59
|
import"./index-bpmtbmy9.js";
|
|
60
|
+
import"./index-7a2hm51h.js";
|
|
58
61
|
import"./index-z6xqpmqg.js";
|
|
59
62
|
import"./index-zjygnfay.js";
|
|
60
|
-
import"./index-zgwm4ryv.js";
|
|
61
|
-
import"./index-y6a7gjtj.js";
|
|
62
63
|
import"./index-y111zefa.js";
|
|
64
|
+
import"./index-zgwm4ryv.js";
|
|
63
65
|
import"./index-a76rekgs.js";
|
|
64
66
|
|
|
65
67
|
// src/cli/index.ts
|
|
@@ -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-f52jt0am.js";
|
|
12
|
+
import"./index-p9ngg568.js";
|
|
13
|
+
import"./index-rv7s2k9y.js";
|
|
14
14
|
import"./index-ae75rja9.js";
|
|
15
15
|
import"./index-dzyjb33e.js";
|
|
16
16
|
import"./index-ey29aap6.js";
|
|
@@ -19,8 +19,8 @@ import"./index-fsrp8wp3.js";
|
|
|
19
19
|
import"./index-09b9zncg.js";
|
|
20
20
|
import"./index-7g4c7s5r.js";
|
|
21
21
|
import"./index-7a2hm51h.js";
|
|
22
|
-
import"./index-zgwm4ryv.js";
|
|
23
22
|
import"./index-y111zefa.js";
|
|
23
|
+
import"./index-zgwm4ryv.js";
|
|
24
24
|
import"./index-a76rekgs.js";
|
|
25
25
|
export {
|
|
26
26
|
readRecentEscalations,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
resolveKnowledgeCounterBaselinePath,
|
|
27
27
|
resolveKnowledgeEventsPath,
|
|
28
28
|
resolveLegacyApplicationLogPath
|
|
29
|
-
} from "./index-
|
|
29
|
+
} from "./index-rv7s2k9y.js";
|
|
30
30
|
import"./index-ae75rja9.js";
|
|
31
31
|
import"./index-dzyjb33e.js";
|
|
32
32
|
import"./index-ey29aap6.js";
|
|
@@ -34,8 +34,8 @@ import"./index-fsrp8wp3.js";
|
|
|
34
34
|
import"./index-09b9zncg.js";
|
|
35
35
|
import"./index-7g4c7s5r.js";
|
|
36
36
|
import"./index-7a2hm51h.js";
|
|
37
|
-
import"./index-zgwm4ryv.js";
|
|
38
37
|
import"./index-y111zefa.js";
|
|
38
|
+
import"./index-zgwm4ryv.js";
|
|
39
39
|
import"./index-a76rekgs.js";
|
|
40
40
|
export {
|
|
41
41
|
resolveLegacyApplicationLogPath,
|
|
@@ -18,8 +18,8 @@ import"./index-fsrp8wp3.js";
|
|
|
18
18
|
import"./index-09b9zncg.js";
|
|
19
19
|
import"./index-7g4c7s5r.js";
|
|
20
20
|
import"./index-7a2hm51h.js";
|
|
21
|
-
import"./index-zgwm4ryv.js";
|
|
22
21
|
import"./index-y111zefa.js";
|
|
22
|
+
import"./index-zgwm4ryv.js";
|
|
23
23
|
import"./index-a76rekgs.js";
|
|
24
24
|
export {
|
|
25
25
|
writeLinkPointer,
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
transactKnowledge,
|
|
42
42
|
transactKnowledgeWithCas,
|
|
43
43
|
wordBigrams
|
|
44
|
-
} from "./index-
|
|
44
|
+
} from "./index-p9ngg568.js";
|
|
45
45
|
import {
|
|
46
46
|
resolveHiveDataDir
|
|
47
47
|
} from "./index-ae75rja9.js";
|
|
@@ -52,8 +52,8 @@ import"./index-fsrp8wp3.js";
|
|
|
52
52
|
import"./index-09b9zncg.js";
|
|
53
53
|
import"./index-7g4c7s5r.js";
|
|
54
54
|
import"./index-7a2hm51h.js";
|
|
55
|
-
import"./index-zgwm4ryv.js";
|
|
56
55
|
import"./index-y111zefa.js";
|
|
56
|
+
import"./index-zgwm4ryv.js";
|
|
57
57
|
import"./index-a76rekgs.js";
|
|
58
58
|
export {
|
|
59
59
|
wordBigrams,
|
|
@@ -23,11 +23,11 @@ import {
|
|
|
23
23
|
validateLesson,
|
|
24
24
|
validateSkillCandidatePath,
|
|
25
25
|
validateSkillPath
|
|
26
|
-
} from "./index-
|
|
27
|
-
import"./index-
|
|
26
|
+
} from "./index-gxxxmajn.js";
|
|
27
|
+
import"./index-30pg2rs3.js";
|
|
28
28
|
import"./index-rtry5xyf.js";
|
|
29
|
-
import"./index-
|
|
30
|
-
import"./index-
|
|
29
|
+
import"./index-p9ngg568.js";
|
|
30
|
+
import"./index-rv7s2k9y.js";
|
|
31
31
|
import"./index-ae75rja9.js";
|
|
32
32
|
import"./index-dzyjb33e.js";
|
|
33
33
|
import"./index-ey29aap6.js";
|
|
@@ -36,8 +36,8 @@ import"./index-fsrp8wp3.js";
|
|
|
36
36
|
import"./index-09b9zncg.js";
|
|
37
37
|
import"./index-7g4c7s5r.js";
|
|
38
38
|
import"./index-7a2hm51h.js";
|
|
39
|
-
import"./index-zgwm4ryv.js";
|
|
40
39
|
import"./index-y111zefa.js";
|
|
40
|
+
import"./index-zgwm4ryv.js";
|
|
41
41
|
import"./index-a76rekgs.js";
|
|
42
42
|
export {
|
|
43
43
|
validateSkillPath,
|
|
@@ -40,17 +40,17 @@ import {
|
|
|
40
40
|
sweepStaleDelegations,
|
|
41
41
|
updateCoderSettlement,
|
|
42
42
|
writeDelegationFallback
|
|
43
|
-
} from "./index-
|
|
44
|
-
import"./index-
|
|
43
|
+
} from "./index-45t7w06b.js";
|
|
44
|
+
import"./index-4qzeef9h.js";
|
|
45
45
|
import"./index-fsrp8wp3.js";
|
|
46
46
|
import"./index-09b9zncg.js";
|
|
47
47
|
import"./index-7g4c7s5r.js";
|
|
48
|
-
import"./index-7a2hm51h.js";
|
|
49
48
|
import"./index-bpmtbmy9.js";
|
|
49
|
+
import"./index-7a2hm51h.js";
|
|
50
50
|
import"./index-z6xqpmqg.js";
|
|
51
51
|
import"./index-zjygnfay.js";
|
|
52
|
-
import"./index-zgwm4ryv.js";
|
|
53
52
|
import"./index-y111zefa.js";
|
|
53
|
+
import"./index-zgwm4ryv.js";
|
|
54
54
|
import"./index-a76rekgs.js";
|
|
55
55
|
export {
|
|
56
56
|
writeDelegationFallback,
|
|
@@ -9,17 +9,17 @@ import {
|
|
|
9
9
|
sweepStale,
|
|
10
10
|
unsubscribe,
|
|
11
11
|
updateSnapshot
|
|
12
|
-
} from "./index-
|
|
13
|
-
import"./index-
|
|
12
|
+
} from "./index-tcn457d5.js";
|
|
13
|
+
import"./index-4qzeef9h.js";
|
|
14
14
|
import"./index-fsrp8wp3.js";
|
|
15
15
|
import"./index-09b9zncg.js";
|
|
16
16
|
import"./index-7g4c7s5r.js";
|
|
17
|
-
import"./index-7a2hm51h.js";
|
|
18
17
|
import"./index-bpmtbmy9.js";
|
|
18
|
+
import"./index-7a2hm51h.js";
|
|
19
19
|
import"./index-z6xqpmqg.js";
|
|
20
20
|
import"./index-zjygnfay.js";
|
|
21
|
-
import"./index-zgwm4ryv.js";
|
|
22
21
|
import"./index-y111zefa.js";
|
|
22
|
+
import"./index-zgwm4ryv.js";
|
|
23
23
|
import"./index-a76rekgs.js";
|
|
24
24
|
export {
|
|
25
25
|
updateSnapshot,
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
alreadyCuratedThisGeneration,
|
|
5
5
|
claimNextScanBatch,
|
|
6
6
|
getScanStatus
|
|
7
|
-
} from "./index-
|
|
8
|
-
import"./index-
|
|
7
|
+
} from "./index-36v55ryg.js";
|
|
8
|
+
import"./index-p9ngg568.js";
|
|
9
9
|
import"./index-ae75rja9.js";
|
|
10
10
|
import"./index-dzyjb33e.js";
|
|
11
11
|
import"./index-ey29aap6.js";
|
|
@@ -14,8 +14,8 @@ import"./index-fsrp8wp3.js";
|
|
|
14
14
|
import"./index-09b9zncg.js";
|
|
15
15
|
import"./index-7g4c7s5r.js";
|
|
16
16
|
import"./index-7a2hm51h.js";
|
|
17
|
-
import"./index-zgwm4ryv.js";
|
|
18
17
|
import"./index-y111zefa.js";
|
|
18
|
+
import"./index-zgwm4ryv.js";
|
|
19
19
|
import"./index-a76rekgs.js";
|
|
20
20
|
export {
|
|
21
21
|
getScanStatus,
|
|
@@ -93,8 +93,9 @@ import {
|
|
|
93
93
|
resolveGeneratedAgentRole,
|
|
94
94
|
resolveGuardrailsConfig,
|
|
95
95
|
stripKnownSwarmPrefix
|
|
96
|
-
} from "./index-
|
|
96
|
+
} from "./index-p5kr35wh.js";
|
|
97
97
|
import"./index-bk5tah7q.js";
|
|
98
|
+
import"./index-3jcyn8g6.js";
|
|
98
99
|
import"./index-bpmtbmy9.js";
|
|
99
100
|
import"./index-zjygnfay.js";
|
|
100
101
|
import"./index-a76rekgs.js";
|
|
@@ -17,10 +17,10 @@ import"./index-wxyxf0bd.js";
|
|
|
17
17
|
import"./index-1kz6da87.js";
|
|
18
18
|
import"./index-09b9zncg.js";
|
|
19
19
|
import"./index-7g4c7s5r.js";
|
|
20
|
-
import"./index-7a2hm51h.js";
|
|
21
20
|
import"./index-bpmtbmy9.js";
|
|
22
|
-
import"./index-
|
|
21
|
+
import"./index-7a2hm51h.js";
|
|
23
22
|
import"./index-y111zefa.js";
|
|
23
|
+
import"./index-zgwm4ryv.js";
|
|
24
24
|
import"./index-a76rekgs.js";
|
|
25
25
|
export {
|
|
26
26
|
writeScopeToDisk,
|
|
@@ -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-yf30m841.js";
|
|
37
|
+
import"./index-gxxxmajn.js";
|
|
38
|
+
import"./index-30pg2rs3.js";
|
|
39
39
|
import"./index-rtry5xyf.js";
|
|
40
|
-
import"./index-
|
|
41
|
-
import"./index-
|
|
40
|
+
import"./index-p9ngg568.js";
|
|
41
|
+
import"./index-rv7s2k9y.js";
|
|
42
42
|
import"./index-ae75rja9.js";
|
|
43
43
|
import"./index-dzyjb33e.js";
|
|
44
44
|
import"./index-ey29aap6.js";
|
|
@@ -48,8 +48,8 @@ import"./index-fsrp8wp3.js";
|
|
|
48
48
|
import"./index-09b9zncg.js";
|
|
49
49
|
import"./index-7g4c7s5r.js";
|
|
50
50
|
import"./index-7a2hm51h.js";
|
|
51
|
-
import"./index-zgwm4ryv.js";
|
|
52
51
|
import"./index-y111zefa.js";
|
|
52
|
+
import"./index-zgwm4ryv.js";
|
|
53
53
|
import"./index-a76rekgs.js";
|
|
54
54
|
export {
|
|
55
55
|
writeEvalStub,
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
scanWorktreeProvisioningOwnersForRecovery
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-x20cgr2q.js";
|
|
5
5
|
import {
|
|
6
6
|
scanWorktreeMergeFailuresForRecovery
|
|
7
7
|
} from "./index-b8zgtz81.js";
|
|
8
8
|
import {
|
|
9
9
|
scanDelegationFallbacksForRecovery,
|
|
10
10
|
scanDelegationsForRecovery
|
|
11
|
-
} from "./index-
|
|
12
|
-
import"./index-
|
|
11
|
+
} from "./index-45t7w06b.js";
|
|
12
|
+
import"./index-4qzeef9h.js";
|
|
13
13
|
import"./index-fsrp8wp3.js";
|
|
14
14
|
import"./index-09b9zncg.js";
|
|
15
15
|
import"./index-7g4c7s5r.js";
|
|
16
|
-
import"./index-7a2hm51h.js";
|
|
17
16
|
import"./index-bpmtbmy9.js";
|
|
17
|
+
import"./index-7a2hm51h.js";
|
|
18
18
|
import"./index-z6xqpmqg.js";
|
|
19
19
|
import"./index-zjygnfay.js";
|
|
20
|
-
import"./index-zgwm4ryv.js";
|
|
21
20
|
import {
|
|
22
21
|
bunSpawn
|
|
23
22
|
} from "./index-y111zefa.js";
|
|
23
|
+
import"./index-zgwm4ryv.js";
|
|
24
24
|
import"./index-a76rekgs.js";
|
|
25
25
|
|
|
26
26
|
// src/hooks/delegation-gate/worktree-collision-ownership.ts
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Handle /swarm approve-plan-critic command.
|
|
3
|
+
*
|
|
4
|
+
* Human-only escape hatch for the ratchet-tighter `critic_pre_plan` execution
|
|
5
|
+
* gate (issue #2012). When the critic returns APPROVED but the mechanical
|
|
6
|
+
* snapshot recorder fails to persist it (verdict-format mismatch, dispatch-
|
|
7
|
+
* signal miss, or a plan.json read race), the gate permanently blocks ALL
|
|
8
|
+
* coder delegations because `critic_pre_plan` defaults to `true` and cannot be
|
|
9
|
+
* disabled. This records a manual `plan_critic_gate` approval snapshot so the
|
|
10
|
+
* gate unblocks, with a distinct `method: 'manual_override'` audit marker.
|
|
11
|
+
*
|
|
12
|
+
* The command is `toolPolicy: 'restricted'` — the agent cannot run it via
|
|
13
|
+
* `swarm_command`; the agent must instead call the `approve_plan_critic` tool
|
|
14
|
+
* (or ask the user to run this command). Both paths funnel into
|
|
15
|
+
* `forceRecordPlanCriticApproval`. The command path sets `user_confirmed: true`
|
|
16
|
+
* (human-initiated); the tool path sets `user_confirmed: false`
|
|
17
|
+
* (agent-initiated) so a self-approve is visible in the audit trail.
|
|
18
|
+
*
|
|
19
|
+
* Mirrors the PR_REVIEW #1898 escape-hatch pattern (`/swarm abort-pr-workflow`).
|
|
20
|
+
*/
|
|
21
|
+
export declare function handleApprovePlanCriticCommand(directory: string, args: string[], sessionID: string): Promise<string>;
|
|
@@ -551,6 +551,14 @@ export declare const COMMAND_REGISTRY: {
|
|
|
551
551
|
readonly category: "utility";
|
|
552
552
|
readonly toolPolicy: "restricted";
|
|
553
553
|
};
|
|
554
|
+
readonly 'approve-plan-critic': {
|
|
555
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
556
|
+
readonly description: "Record a MANUAL plan-critic approval to unblock the critic_pre_plan execution gate [reason...]";
|
|
557
|
+
readonly args: "[reason...]";
|
|
558
|
+
readonly details: "Human-only escape hatch for the ratchet-tighter critic_pre_plan execution gate (issue #2012). When the critic already returned APPROVED but the mechanical snapshot recorder failed to persist it (verdict-format mismatch, dispatch-signal miss, or a plan.json read race), the gate permanently blocks ALL coder delegations because critic_pre_plan defaults to true and cannot be disabled. Running this records a manual plan_critic_gate approval snapshot so the gate unblocks, with a distinct method: \"manual_override\" audit marker. The agent itself cannot run this command; it must call the approve_plan_critic tool (or ask you to run this command). Both paths funnel into the same forceRecordPlanCriticApproval hook, which requires an active architect session. An audit event is appended to .swarm/events.jsonl. Prefer re-running MODE: CRITIC-GATE first; use this only as an escape hatch when a legitimate APPROVED was lost.";
|
|
559
|
+
readonly category: "utility";
|
|
560
|
+
readonly toolPolicy: "restricted";
|
|
561
|
+
};
|
|
554
562
|
readonly 'pr-review': {
|
|
555
563
|
readonly handler: (ctx: CommandContext) => CommandResult;
|
|
556
564
|
readonly description: "Launch deep PR review with multi-lane analysis [url] [--council]";
|
|
@@ -3,6 +3,54 @@
|
|
|
3
3
|
* Mirrors CONFIG_DIR in src/cli/index.ts.
|
|
4
4
|
*/
|
|
5
5
|
export declare function getPluginConfigDir(): string;
|
|
6
|
+
/**
|
|
7
|
+
* The config directory the OpenCode HOST is actually using, honouring
|
|
8
|
+
* `OPENCODE_CONFIG_DIR`.
|
|
9
|
+
*
|
|
10
|
+
* Verbatim host precedence (`C:\OpenCode\opencode.exe`, opencode 1.18.10,
|
|
11
|
+
* offset 107379448):
|
|
12
|
+
*
|
|
13
|
+
* ```js
|
|
14
|
+
* function y(N={}){return{home:G.home,data:G.data,cache:G.cache,
|
|
15
|
+
* config:e.OPENCODE_CONFIG_DIR??G.config, ...}}
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* This is deliberately SEPARATE from {@link getPluginConfigDir}, which has
|
|
19
|
+
* shared semantics relied on by `src/cli/index.ts` and
|
|
20
|
+
* `src/services/diagnose-service.ts` for locating plugin caches and lock files.
|
|
21
|
+
* Changing that function's meaning would move those consumers too.
|
|
22
|
+
*
|
|
23
|
+
* Only the worktree-lane permission allowlist uses this: under
|
|
24
|
+
* `OPENCODE_CONFIG_DIR` the two directories differ, and allowlisting the wrong
|
|
25
|
+
* one grants a directory the host is not reading while denying the one it is.
|
|
26
|
+
*/
|
|
27
|
+
export declare function getHostConfigDir(): string;
|
|
28
|
+
/**
|
|
29
|
+
* The data directory the OpenCode HOST uses.
|
|
30
|
+
*
|
|
31
|
+
* Verbatim host source (opencode 1.18.10, offset ~107378180):
|
|
32
|
+
* `V = XDG_DATA_HOME || join(homedir(), ".local", "share")`
|
|
33
|
+
* `U = join(V, "opencode")` -> `Global.Path.data`
|
|
34
|
+
*
|
|
35
|
+
* Unlike `config`, the data path has no environment override: the `y()` service
|
|
36
|
+
* factory passes `data: G.data` straight through (offset 107379448).
|
|
37
|
+
*
|
|
38
|
+
* Used by the worktree-lane allowlist to re-grant `<data>/plans`, which the
|
|
39
|
+
* host natively allows to its `plan` agent.
|
|
40
|
+
*/
|
|
41
|
+
export declare function getHostDataDir(): string;
|
|
42
|
+
/**
|
|
43
|
+
* Where OpenCode caches URL-sourced skills (`skills.urls`).
|
|
44
|
+
*
|
|
45
|
+
* Both discovery implementations agree on the root:
|
|
46
|
+
* v1 (offset 102988349): `join(Global.Path.cache, "skills")`
|
|
47
|
+
* v2 (offset 103375250): `resolve(cache, "skills", Bun.hash(url))` — a
|
|
48
|
+
* per-URL subdirectory of the same root.
|
|
49
|
+
*
|
|
50
|
+
* Pure path construction, no I/O and no network: the pull itself is the host's
|
|
51
|
+
* job, and the plugin only needs to know where the result lands.
|
|
52
|
+
*/
|
|
53
|
+
export declare function getHostSkillCacheDir(): string;
|
|
6
54
|
/**
|
|
7
55
|
* All known locations where OpenCode may cache the opencode-swarm plugin.
|
|
8
56
|
* Order: newest/canonical first so status reporting shows the most relevant
|