opencode-swarm 7.160.2 → 7.161.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/.opencode/skills/critic-gate/SKILL.md +2 -1
- package/.opencode/skills/execute/SKILL.md +1 -1
- package/dist/background/delegation-lifecycle.d.ts +374 -0
- package/dist/background/pending-delegations.d.ts +6 -0
- package/dist/cli/{coder-settlement-gzar5ypz.js → coder-settlement-2jteb5vy.js} +9 -9
- package/dist/cli/{config-doctor-ancn1sj7.js → config-doctor-1yn317qf.js} +3 -3
- package/dist/cli/{core-bhmqtxev.js → core-k687jrr3.js} +2 -2
- package/dist/cli/{curation-policy-47przjwg.js → curation-policy-ej9xc0cd.js} +5 -5
- package/dist/cli/{curator-llm-factory-6mw01jx1.js → curator-llm-factory-m1ke17eq.js} +31 -31
- package/dist/cli/{curator-sgmynbpm.js → curator-q017rjfk.js} +31 -31
- package/dist/cli/{evidence-summary-service-1pcfsqhv.js → evidence-summary-service-6jzfa547.js} +14 -14
- package/dist/cli/{gate-evidence-w0kjqmew.js → gate-evidence-j6nskaka.js} +6 -6
- package/dist/cli/{guardrail-explain-k99eje1y.js → guardrail-explain-xw3ma90f.js} +32 -32
- package/dist/cli/{guardrail-log-md5gcpk7.js → guardrail-log-etmzhbge.js} +7 -7
- package/dist/cli/{guardrail-reset-3385eqmq.js → guardrail-reset-z9fkxksy.js} +31 -31
- package/dist/cli/{hive-promoter-r0ekyn5m.js → hive-promoter-dmwjya83.js} +31 -31
- package/dist/cli/{index-vv760pbg.js → index-1j532307.js} +2 -2
- package/dist/cli/{index-2123hwbj.js → index-29f9te70.js} +4 -4
- package/dist/cli/{index-4dcz9fpn.js → index-32avgbyq.js} +4 -4
- package/dist/cli/{index-xsd7y4hp.js → index-4p6x3xxy.js} +4 -4
- package/dist/cli/{index-7h2armwf.js → index-7619tk9a.js} +2 -2
- package/dist/cli/{index-zbnf26br.js → index-7d79mj06.js} +8 -8
- package/dist/cli/{index-am5bz6mf.js → index-88wb0z9r.js} +2 -2
- package/dist/cli/{index-k0qy284k.js → index-9kp3cp5n.js} +5 -5
- package/dist/cli/{index-c9zp4xwc.js → index-9xd073d4.js} +1 -1
- package/dist/cli/{index-xtwny1ae.js → index-bn78ywnb.js} +2 -2
- package/dist/cli/{index-kqzba6ex.js → index-c1geyan9.js} +2 -2
- package/dist/cli/{index-prv20xq6.js → index-c6zyqgpq.js} +1 -1
- package/dist/cli/{index-war2dt6a.js → index-cbcfpgz9.js} +6 -6
- package/dist/cli/{index-s7w6ntw6.js → index-cs9w1hfs.js} +82 -80
- package/dist/cli/{index-7ezv5j23.js → index-d8st72j7.js} +1 -1
- package/dist/cli/{index-nk498mx6.js → index-dq41vsf9.js} +2 -2
- package/dist/cli/{index-vsy942dt.js → index-e0re84cx.js} +33 -33
- package/dist/cli/{index-717pmdce.js → index-epjvntnm.js} +1 -1
- package/dist/cli/{index-znf683sm.js → index-f5axf6vq.js} +1 -1
- package/dist/cli/{index-dke4wzkn.js → index-fx3em0dr.js} +17 -1
- package/dist/cli/{index-5th50g17.js → index-hq57ytm5.js} +3 -3
- package/dist/cli/{index-3a35tt6a.js → index-hvfsz7e3.js} +8 -8
- package/dist/cli/{index-xkmzsfg5.js → index-jm21vbyp.js} +3 -3
- package/dist/cli/{index-yd6y4qr7.js → index-k4xey4kh.js} +1 -1
- package/dist/cli/{index-mmr96pwr.js → index-k55td019.js} +1 -1
- package/dist/cli/{index-yp81ebrx.js → index-nm0cpfrv.js} +4 -4
- package/dist/cli/{index-b5adxpy6.js → index-nqbqkx4c.js} +1 -1
- package/dist/cli/{index-4d8cq6e1.js → index-qd9mrd7e.js} +5 -5
- package/dist/cli/{index-6scakreq.js → index-rracnf2y.js} +2 -2
- package/dist/cli/{index-j3ss86kf.js → index-s33ee2w3.js} +1 -1
- package/dist/cli/{index-497a3hhj.js → index-y14mwbk8.js} +3 -3
- package/dist/cli/{index-re338hf1.js → index-yhadrxka.js} +3 -3
- package/dist/cli/{index-k50kxd3w.js → index-za42r41w.js} +7 -4
- package/dist/cli/{index-q8hm27yj.js → index-zg9d392c.js} +4 -1
- package/dist/cli/{index-5xfx5sbw.js → index-zhdfqz89.js} +5 -5
- package/dist/cli/index.js +31 -31
- package/dist/cli/{knowledge-escalator-saekqp8t.js → knowledge-escalator-cqyxfjfh.js} +13 -13
- package/dist/cli/{knowledge-events-ej8yz3yq.js → knowledge-events-g707awjf.js} +11 -11
- package/dist/cli/{knowledge-link-xezm8hr3.js → knowledge-link-8knefv8x.js} +4 -4
- package/dist/cli/{knowledge-store-3jamj5n4.js → knowledge-store-byhv66xq.js} +5 -5
- package/dist/cli/{knowledge-validator-26w2mvqv.js → knowledge-validator-qfkr8eje.js} +7 -7
- package/dist/cli/{model-preflight-yqqchzjn.js → model-preflight-c3mc8njg.js} +1 -1
- package/dist/cli/{pending-delegations-7xak7g59.js → pending-delegations-n3baz9m3.js} +6 -4
- package/dist/cli/{pr-review-reentry-authorization-v97q63q4.js → pr-review-reentry-authorization-ttctn8xv.js} +31 -31
- package/dist/cli/{pr-subscriptions-asjevc5p.js → pr-subscriptions-3zwthnan.js} +4 -4
- package/dist/cli/{runner-wsdcy2d6.js → runner-fzgkd6m1.js} +5 -5
- package/dist/cli/{scan-cursor-1agr50f8.js → scan-cursor-fbtgyeft.js} +6 -6
- package/dist/cli/{schema-z0ygrqgy.js → schema-xb7d31wq.js} +2 -2
- package/dist/cli/{scope-persistence-tncg38by.js → scope-persistence-5npzdfjf.js} +9 -9
- package/dist/cli/{skill-generator-jq20a09m.js → skill-generator-k1e7nee3.js} +15 -15
- package/dist/cli/{telemetry-gpr9s3sm.js → telemetry-cmbjv240.js} +1 -1
- package/dist/cli/{worktree-collision-ownership-b9cp9zvw.js → worktree-collision-ownership-jfam09nj.js} +4 -4
- package/dist/cli/{worktree-isolation-dzyxf8hn.js → worktree-isolation-avp3yxcs.js} +31 -31
- package/dist/config/evidence-schema.d.ts +11 -2
- package/dist/config/schema.d.ts +7 -7
- package/dist/hooks/delegate-ack-collector.d.ts +74 -0
- package/dist/hooks/delegation-gate.d.ts +4 -1
- package/dist/hooks/knowledge-injector.d.ts +12 -1
- package/dist/index.js +98 -98
- package/dist/learning/admission.d.ts +2 -2
- package/dist/memory/schema.d.ts +3 -3
- package/dist/observability/catalog.d.ts +2 -2
- package/dist/prm/types.d.ts +9 -0
- package/dist/telemetry.d.ts +9 -1
- package/dist/tools/placeholder-scan.d.ts +5 -3
- package/dist/tools/repo-graph/retrieval-router.d.ts +57 -0
- package/dist/tools/repo-graph.d.ts +2 -0
- package/dist/tools/repo-map.d.ts +202 -0
- package/dist/tools/search.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
handleGuardrailExplain
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-1j532307.js";
|
|
5
5
|
import {
|
|
6
6
|
handleGuardrailLog
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-k4xey4kh.js";
|
|
8
8
|
import {
|
|
9
9
|
COMMAND_REGISTRY,
|
|
10
10
|
SWARM_COMMAND_TOOL_ALLOWLIST,
|
|
@@ -94,70 +94,70 @@ import {
|
|
|
94
94
|
handleWriteRetroCommand,
|
|
95
95
|
normalizeSwarmCommandInput,
|
|
96
96
|
resolveCommand
|
|
97
|
-
} from "./index-
|
|
98
|
-
import"./index-
|
|
99
|
-
import"./index-
|
|
100
|
-
import"./index-
|
|
101
|
-
import"./index-
|
|
102
|
-
import"./index-
|
|
97
|
+
} from "./index-cs9w1hfs.js";
|
|
98
|
+
import"./index-s33ee2w3.js";
|
|
99
|
+
import"./index-29f9te70.js";
|
|
100
|
+
import"./index-bn78ywnb.js";
|
|
101
|
+
import"./index-7d79mj06.js";
|
|
102
|
+
import"./index-dq41vsf9.js";
|
|
103
103
|
import"./index-txdagbh7.js";
|
|
104
104
|
import"./index-134d35c1.js";
|
|
105
105
|
import"./index-3146wmgv.js";
|
|
106
|
-
import"./index-
|
|
107
|
-
import"./index-
|
|
108
|
-
import"./index-
|
|
106
|
+
import"./index-yhadrxka.js";
|
|
107
|
+
import"./index-zhdfqz89.js";
|
|
108
|
+
import"./index-88wb0z9r.js";
|
|
109
109
|
import"./index-70ha9e09.js";
|
|
110
110
|
import"./index-c8s9a3zh.js";
|
|
111
111
|
import"./index-9ss2m4rs.js";
|
|
112
|
-
import"./index-
|
|
112
|
+
import"./index-y14mwbk8.js";
|
|
113
113
|
import"./index-zsrtt42s.js";
|
|
114
|
-
import"./index-
|
|
114
|
+
import"./index-qd9mrd7e.js";
|
|
115
115
|
import"./index-3f7hqtgg.js";
|
|
116
116
|
import"./index-awjx0wgk.js";
|
|
117
|
-
import"./index-
|
|
118
|
-
import"./index-
|
|
117
|
+
import"./index-nm0cpfrv.js";
|
|
118
|
+
import"./index-f5axf6vq.js";
|
|
119
119
|
import"./index-rtry5xyf.js";
|
|
120
|
-
import"./index-
|
|
121
|
-
import"./index-
|
|
122
|
-
import"./index-
|
|
120
|
+
import"./index-32avgbyq.js";
|
|
121
|
+
import"./index-c1geyan9.js";
|
|
122
|
+
import"./index-za42r41w.js";
|
|
123
123
|
import"./index-ddszzne4.js";
|
|
124
|
-
import"./index-
|
|
125
|
-
import"./index-
|
|
126
|
-
import"./index-
|
|
124
|
+
import"./index-4p6x3xxy.js";
|
|
125
|
+
import"./index-hq57ytm5.js";
|
|
126
|
+
import"./index-7619tk9a.js";
|
|
127
127
|
import"./index-556ja8an.js";
|
|
128
128
|
import"./index-4fwbbad3.js";
|
|
129
129
|
import"./index-b43rt5ph.js";
|
|
130
130
|
import"./index-q7sjgr1y.js";
|
|
131
|
-
import"./index-
|
|
132
|
-
import"./index-
|
|
133
|
-
import"./index-
|
|
134
|
-
import"./index-
|
|
131
|
+
import"./index-cbcfpgz9.js";
|
|
132
|
+
import"./index-hvfsz7e3.js";
|
|
133
|
+
import"./index-jm21vbyp.js";
|
|
134
|
+
import"./index-zg9d392c.js";
|
|
135
135
|
import"./index-n832052r.js";
|
|
136
136
|
import"./index-dtn0pne5.js";
|
|
137
137
|
import"./index-z6xqpmqg.js";
|
|
138
138
|
import"./index-r3mvsbtq.js";
|
|
139
|
-
import"./index-
|
|
139
|
+
import"./index-epjvntnm.js";
|
|
140
140
|
import {
|
|
141
141
|
init_schema,
|
|
142
142
|
stripKnownSwarmPrefix
|
|
143
|
-
} from "./index-
|
|
143
|
+
} from "./index-rracnf2y.js";
|
|
144
144
|
import"./index-9e6fdz2h.js";
|
|
145
145
|
import"./index-4rhhvd1a.js";
|
|
146
|
-
import"./index-
|
|
146
|
+
import"./index-k55td019.js";
|
|
147
147
|
import {
|
|
148
148
|
AGENT_TOOL_MAP,
|
|
149
149
|
ORCHESTRATOR_NAME,
|
|
150
150
|
init_constants
|
|
151
|
-
} from "./index-
|
|
151
|
+
} from "./index-9xd073d4.js";
|
|
152
152
|
import"./index-zjygnfay.js";
|
|
153
153
|
import"./index-ae75rja9.js";
|
|
154
|
-
import"./index-
|
|
155
|
-
import"./index-
|
|
154
|
+
import"./index-c6zyqgpq.js";
|
|
155
|
+
import"./index-d8st72j7.js";
|
|
156
156
|
import"./index-bk5tah7q.js";
|
|
157
|
-
import"./index-
|
|
157
|
+
import"./index-nqbqkx4c.js";
|
|
158
158
|
import"./index-dh5q6z7y.js";
|
|
159
159
|
import"./index-ed5ykebp.js";
|
|
160
|
-
import"./index-
|
|
160
|
+
import"./index-fx3em0dr.js";
|
|
161
161
|
import"./index-7g4c7s5r.js";
|
|
162
162
|
import"./index-bpmtbmy9.js";
|
|
163
163
|
import"./index-zgwm4ryv.js";
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
readLinkPointer,
|
|
8
8
|
resolveKnowledgeStoreDir,
|
|
9
9
|
resolveLinkDir
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-c6zyqgpq.js";
|
|
11
11
|
|
|
12
12
|
// src/knowledge/curation-policy.ts
|
|
13
13
|
import { appendFile, mkdir as mkdir2, readFile as readFile2 } from "fs/promises";
|
|
@@ -39,7 +39,7 @@ var CONSUMER_COST_JOIN = Object.freeze([
|
|
|
39
39
|
"src/services/cost-accounting.ts:413"
|
|
40
40
|
]);
|
|
41
41
|
var CONSUMER_GATE_STATS = Object.freeze(["src/evaluation/gate-stats.ts:99"]);
|
|
42
|
-
var CONSUMER_HEARTBEAT_LISTENER = Object.freeze(["src/telemetry.ts:
|
|
42
|
+
var CONSUMER_HEARTBEAT_LISTENER = Object.freeze(["src/telemetry.ts:222"]);
|
|
43
43
|
function defineEntry(kind, input) {
|
|
44
44
|
const entry = {
|
|
45
45
|
kind,
|
|
@@ -349,6 +349,19 @@ var CATALOG_SOURCE = [
|
|
|
349
349
|
requiredWorkflowIds: REQUIRE_SESSION
|
|
350
350
|
}
|
|
351
351
|
],
|
|
352
|
+
[
|
|
353
|
+
"retrieval_routed",
|
|
354
|
+
{
|
|
355
|
+
category: "guardrail",
|
|
356
|
+
severity: "info",
|
|
357
|
+
privacyClass: "pseudonymous",
|
|
358
|
+
producer: "src/telemetry.ts:1206",
|
|
359
|
+
consumers: NO_CONSUMERS,
|
|
360
|
+
futureOwnerIssue: ISSUE_SINK,
|
|
361
|
+
retentionOwnerIssue: ISSUE_SINK,
|
|
362
|
+
requiredWorkflowIds: REQUIRE_SESSION
|
|
363
|
+
}
|
|
364
|
+
],
|
|
352
365
|
[
|
|
353
366
|
"hard_limit_hit",
|
|
354
367
|
{
|
|
@@ -2145,6 +2158,9 @@ var telemetry = {
|
|
|
2145
2158
|
level,
|
|
2146
2159
|
occurrenceCount
|
|
2147
2160
|
});
|
|
2161
|
+
},
|
|
2162
|
+
retrievalRouted(sessionId, data) {
|
|
2163
|
+
_internals.emit("retrieval_routed", { sessionId, ...data });
|
|
2148
2164
|
}
|
|
2149
2165
|
};
|
|
2150
2166
|
var _internals = {
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
PlanSchema,
|
|
5
5
|
TaskStatusSchema,
|
|
6
6
|
init_loader
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-epjvntnm.js";
|
|
8
8
|
import {
|
|
9
9
|
assertProjectRoot,
|
|
10
10
|
withEvidenceLock
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-nqbqkx4c.js";
|
|
12
12
|
import {
|
|
13
13
|
emit
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-fx3em0dr.js";
|
|
15
15
|
import {
|
|
16
16
|
criticalWarn,
|
|
17
17
|
init_logger,
|
|
@@ -4,29 +4,29 @@ import {
|
|
|
4
4
|
} from "./index-dtn0pne5.js";
|
|
5
5
|
import {
|
|
6
6
|
loadPluginConfigWithMeta
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-epjvntnm.js";
|
|
8
8
|
import {
|
|
9
9
|
KnowledgeConfigSchema,
|
|
10
10
|
init_schema
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-rracnf2y.js";
|
|
12
12
|
import {
|
|
13
13
|
observeReceiptTransition
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-k55td019.js";
|
|
15
15
|
import {
|
|
16
16
|
resolveHiveEventsPath
|
|
17
17
|
} from "./index-ae75rja9.js";
|
|
18
18
|
import {
|
|
19
19
|
resolveKnowledgeStoreDir
|
|
20
|
-
} from "./index-
|
|
20
|
+
} from "./index-c6zyqgpq.js";
|
|
21
21
|
import {
|
|
22
22
|
atomicWriteFile
|
|
23
|
-
} from "./index-
|
|
23
|
+
} from "./index-d8st72j7.js";
|
|
24
24
|
import {
|
|
25
25
|
assertProjectRoot
|
|
26
|
-
} from "./index-
|
|
26
|
+
} from "./index-nqbqkx4c.js";
|
|
27
27
|
import {
|
|
28
28
|
emit
|
|
29
|
-
} from "./index-
|
|
29
|
+
} from "./index-fx3em0dr.js";
|
|
30
30
|
import {
|
|
31
31
|
require_proper_lockfile
|
|
32
32
|
} from "./index-7g4c7s5r.js";
|
|
@@ -2810,7 +2810,7 @@ async function applyKnowledgeVerdictFeedback(directory, options) {
|
|
|
2810
2810
|
}
|
|
2811
2811
|
let bumps = 0;
|
|
2812
2812
|
if (deltas.length > 0) {
|
|
2813
|
-
const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-
|
|
2813
|
+
const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-byhv66xq.js");
|
|
2814
2814
|
bumps = await bumpKnowledgeConfidenceBatch(directory, deltas, options?.floorOptions);
|
|
2815
2815
|
}
|
|
2816
2816
|
return {
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
import {
|
|
3
3
|
init_loader,
|
|
4
4
|
loadPluginConfigWithMeta
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-epjvntnm.js";
|
|
6
6
|
import {
|
|
7
7
|
init_schema
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-rracnf2y.js";
|
|
9
9
|
import {
|
|
10
10
|
DEFAULT_WORKTREE_ISOLATION_CONFIG,
|
|
11
11
|
init_constants
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-9xd073d4.js";
|
|
13
13
|
|
|
14
14
|
// src/config/index.ts
|
|
15
15
|
init_constants();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
authorizeCuration
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-f5axf6vq.js";
|
|
5
5
|
import {
|
|
6
6
|
findNearDuplicate,
|
|
7
7
|
inferTags,
|
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
resolveSwarmKnowledgePath,
|
|
10
10
|
resolveSwarmRejectedPath,
|
|
11
11
|
transactKnowledge
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-cbcfpgz9.js";
|
|
13
13
|
import {
|
|
14
14
|
resolveKnowledgeStoreDir
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-c6zyqgpq.js";
|
|
16
16
|
import {
|
|
17
17
|
atomicWriteFile
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-d8st72j7.js";
|
|
19
19
|
import {
|
|
20
20
|
require_proper_lockfile
|
|
21
21
|
} from "./index-7g4c7s5r.js";
|
|
@@ -13,13 +13,13 @@ import {
|
|
|
13
13
|
reconcileLandedMerge,
|
|
14
14
|
withTaskEvidenceTransaction,
|
|
15
15
|
writeWorkflowWalFile
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-32avgbyq.js";
|
|
17
17
|
import {
|
|
18
18
|
canonicalRootKeyFresh
|
|
19
19
|
} from "./index-ddszzne4.js";
|
|
20
20
|
import {
|
|
21
21
|
appendCoreEventSync
|
|
22
|
-
} from "./index-
|
|
22
|
+
} from "./index-7619tk9a.js";
|
|
23
23
|
import {
|
|
24
24
|
isPathWithinDeclaredScope
|
|
25
25
|
} from "./index-556ja8an.js";
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
} from "./index-4rhhvd1a.js";
|
|
37
37
|
import {
|
|
38
38
|
tryAcquireLock
|
|
39
|
-
} from "./index-
|
|
39
|
+
} from "./index-nqbqkx4c.js";
|
|
40
40
|
import {
|
|
41
41
|
criticalWarn,
|
|
42
42
|
init_logger
|
|
@@ -478,7 +478,7 @@ async function cleanupRecoveredWorktree(directory, descriptor) {
|
|
|
478
478
|
awaitingMergeByCallID,
|
|
479
479
|
cleanupStandardWorktreeForCallId,
|
|
480
480
|
standardWorktreeByCallID
|
|
481
|
-
} = await import("./worktree-isolation-
|
|
481
|
+
} = await import("./worktree-isolation-avp3yxcs.js");
|
|
482
482
|
standardWorktreeByCallID.delete(descriptor.callID);
|
|
483
483
|
if (hasResidue)
|
|
484
484
|
awaitingMergeByCallID.set(descriptor.callID, {
|
|
@@ -602,7 +602,7 @@ async function recoverCoderSettlement(directory, taskId) {
|
|
|
602
602
|
awaitingMergeByCallID,
|
|
603
603
|
finishStandardWorktreeDispatch,
|
|
604
604
|
standardWorktreeByCallID
|
|
605
|
-
} = await import("./worktree-isolation-
|
|
605
|
+
} = await import("./worktree-isolation-avp3yxcs.js");
|
|
606
606
|
const descriptor = wal.worktree;
|
|
607
607
|
const reconstructedDispatch = {
|
|
608
608
|
callID: descriptor.callID,
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
ALL_AGENT_NAMES,
|
|
4
4
|
SUMMARIZER_EXEMPT_TOOL_NAMES,
|
|
5
5
|
init_constants
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-9xd073d4.js";
|
|
7
7
|
import {
|
|
8
8
|
OUTCOME_BLOCK_THRESHOLD,
|
|
9
9
|
init_knowledge_types
|
|
@@ -21,7 +21,7 @@ var package_default;
|
|
|
21
21
|
var init_package = __esm(() => {
|
|
22
22
|
package_default = {
|
|
23
23
|
name: "opencode-swarm",
|
|
24
|
-
version: "7.
|
|
24
|
+
version: "7.161.1",
|
|
25
25
|
description: "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
|
|
26
26
|
main: "dist/index.js",
|
|
27
27
|
types: "dist/index.d.ts",
|
|
@@ -4,16 +4,16 @@ import {
|
|
|
4
4
|
} from "./index-dtn0pne5.js";
|
|
5
5
|
import {
|
|
6
6
|
observeStoreHealth
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-k55td019.js";
|
|
8
8
|
import {
|
|
9
9
|
withEvidenceLock
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-nqbqkx4c.js";
|
|
11
11
|
import {
|
|
12
12
|
atomicWriteSwarmFileSync
|
|
13
13
|
} from "./index-dh5q6z7y.js";
|
|
14
14
|
import {
|
|
15
15
|
telemetry
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-fx3em0dr.js";
|
|
17
17
|
import {
|
|
18
18
|
exports_external,
|
|
19
19
|
init_zod
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
ALLOWED_SKILL_PATH_PREFIXES,
|
|
4
4
|
validateSkillPath
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-nm0cpfrv.js";
|
|
6
6
|
import {
|
|
7
7
|
withTimeoutSignal
|
|
8
8
|
} from "./index-q7sjgr1y.js";
|
|
@@ -12,11 +12,11 @@ import {
|
|
|
12
12
|
resolveHiveKnowledgePath,
|
|
13
13
|
resolveSwarmKnowledgePath,
|
|
14
14
|
transactKnowledge
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-cbcfpgz9.js";
|
|
16
16
|
import {
|
|
17
17
|
effectiveRetrievalOutcomes,
|
|
18
18
|
readAuthoritativeKnowledgeCounterRollups
|
|
19
|
-
} from "./index-
|
|
19
|
+
} from "./index-hvfsz7e3.js";
|
|
20
20
|
import {
|
|
21
21
|
advisoryWarn,
|
|
22
22
|
init_warning_buffer
|
|
@@ -10,11 +10,11 @@ import {
|
|
|
10
10
|
} from "./index-r3mvsbtq.js";
|
|
11
11
|
import {
|
|
12
12
|
observeDelegationLedgerPressure
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-k55td019.js";
|
|
14
14
|
import {
|
|
15
15
|
EvidenceLockTimeoutError,
|
|
16
16
|
withEvidenceLock
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-nqbqkx4c.js";
|
|
18
18
|
import {
|
|
19
19
|
exports_external,
|
|
20
20
|
init_zod
|
|
@@ -3271,6 +3271,9 @@ function findOpenAsyncLaneBatches(directory) {
|
|
|
3271
3271
|
function isTerminal(status) {
|
|
3272
3272
|
return status === "completed" || status === "error" || status === "cancelled" || status === "stale" || status === "consumed";
|
|
3273
3273
|
}
|
|
3274
|
+
function isTerminalDelegationStatus(status) {
|
|
3275
|
+
return isTerminal(status);
|
|
3276
|
+
}
|
|
3274
3277
|
function sweepStaleLocked(directory, timeoutMs, now, statuses = DEFAULT_SWEEPABLE_DELEGATION_STATUSES, filters = {}, limits = {}) {
|
|
3275
3278
|
let swept = 0;
|
|
3276
3279
|
const { excludeCorrelationIds, includeCorrelationIds } = filters;
|
|
@@ -3934,7 +3937,7 @@ async function reconcileLegacyCoderSettlements(directory, maxRecords, onReconcil
|
|
|
3934
3937
|
const candidates = readDelegations(directory).filter((record) => record.normalizedAgent === "coder" && Boolean(record.legacyCoderSettlementTransfer) && Boolean(record.terminalResult)).slice(0, maxRecords);
|
|
3935
3938
|
if (candidates.length === 0)
|
|
3936
3939
|
return 0;
|
|
3937
|
-
const { transferCoderSettlementToBackground } = await import("./coder-settlement-
|
|
3940
|
+
const { transferCoderSettlementToBackground } = await import("./coder-settlement-2jteb5vy.js");
|
|
3938
3941
|
let transferred = 0;
|
|
3939
3942
|
for (const record of candidates) {
|
|
3940
3943
|
try {
|
|
@@ -4291,4 +4294,4 @@ async function maintainBackgroundDelegations(directory, options = {}) {
|
|
|
4291
4294
|
return emitObservation("ok");
|
|
4292
4295
|
}
|
|
4293
4296
|
|
|
4294
|
-
export { PR_REVIEW_BASE_DIMENSION_IDS, PR_REVIEW_RISK_IMPACTS, PR_REVIEW_RISK_TAGS, prReviewLegacyTranscriptCompatibilityEnabled, PrReviewResultReceiptSchema, PR_REVIEW_FINDINGS_MAX_BYTES, PR_REVIEW_HANDOFF_MAX_BYTES, PR_REVIEW_DISCARDED_EXAMPLE_ITEM_ID, PrReviewRunIdSchema, prReviewFindingRequiresCritic, parsePrReviewRiskTagsField, PrReviewReviewerVerdictFieldsSchema, PrReviewCriticVerdictFieldsSchema, parsePrReviewVerdictRow, MAX_RECOVERY_LEDGER_BYTES, readDelegationHealthArtifact, collectDelegationLedgerHealth, MAX_PR_REVIEW_COLLECTION_RECEIPT_ITEM_IDS, BACKGROUND_DELEGATIONS_FILE, BACKGROUND_DELEGATION_FALLBACK_DIR, BACKGROUND_CODER_RESERVATIONS_FILE, BACKGROUND_DELEGATIONS_CHECKPOINT_FILE, BACKGROUND_DELEGATIONS_MANIFEST_FILE, MAX_LIVE_BACKGROUND_FALLBACKS, MAX_LIVE_BACKGROUND_CODER_RESERVATIONS, MAX_BACKGROUND_OBSERVED_FILES, MAX_BACKGROUND_ADVISORY_CHARS, LEGACY_CODER_SETTLEMENT_PENDING_ADVISORY_MARKER, DELEGATION_COMPACTION_LOW_WATER_BYTES, DELEGATION_COMPACTION_HIGH_WATER_BYTES, MAX_CHECKPOINT_BYTES, MAX_CHECKPOINT_RECORDS, TOMBSTONE_MIN_AGE_MS, BACKGROUND_INGESTION_LEASE_MS, BACKGROUND_CODER_RESERVATION_LEASE_MS, BACKGROUND_CODER_RESERVATION_LEASE_MAX_MS, BACKGROUND_CODER_RESERVATION_LEASE_MIN_MS, DEFAULT_STALE_DELEGATION_TIMEOUT_MS, DEFAULT_SWEEPABLE_DELEGATION_STATUSES, _checkpointInternals, isUnsettledWorktreeOwner, compactBackgroundDelegations, readDelegations, scanDelegationsForRecovery, findByCorrelationId, recordPendingDelegationDetailed, recordPendingDelegation, buildPromptSnapshot, appendDelegationTransition, publishPrReviewResultReceipt, buildBackgroundCompletionEventId, claimTerminalResult, claimCoderSettlement, normalizeBackgroundObservedFiles, updateCoderSettlement, registerLegacyCoderSettlementReconciler, _internals, markLegacyCoderSettlementTransferPending, clearLegacyCoderSettlementTransferPending, claimDelegationIngestion, recordDelegationIngestionResult, putPendingBackgroundAdvisory, replacePendingBackgroundAdvisory, preparePendingBackgroundAdvisories, acknowledgeObservedBackgroundAdvisories, releasePreparedBackgroundAdvisories, findByBatchId, findOpenAsyncLaneBatches, sweepStaleDelegations, readDelegationFallback, listDelegationFallbacks, scanDelegationFallbacksForRecovery, writeDelegationFallback, removeDelegationFallback, findDelegationForCompletion, promoteDelegationFallback, buildBackgroundCoderReservationId, scanBackgroundCoderReservationsForAdmission, reserveBackgroundCoderSlot, bindBackgroundCoderReservation, releaseBackgroundCoderReservation, maintainBackgroundDelegations };
|
|
4297
|
+
export { PR_REVIEW_BASE_DIMENSION_IDS, PR_REVIEW_RISK_IMPACTS, PR_REVIEW_RISK_TAGS, prReviewLegacyTranscriptCompatibilityEnabled, PrReviewResultReceiptSchema, PR_REVIEW_FINDINGS_MAX_BYTES, PR_REVIEW_HANDOFF_MAX_BYTES, PR_REVIEW_DISCARDED_EXAMPLE_ITEM_ID, PrReviewRunIdSchema, prReviewFindingRequiresCritic, parsePrReviewRiskTagsField, PrReviewReviewerVerdictFieldsSchema, PrReviewCriticVerdictFieldsSchema, parsePrReviewVerdictRow, MAX_RECOVERY_LEDGER_BYTES, readDelegationHealthArtifact, collectDelegationLedgerHealth, MAX_PR_REVIEW_COLLECTION_RECEIPT_ITEM_IDS, BACKGROUND_DELEGATIONS_FILE, BACKGROUND_DELEGATION_FALLBACK_DIR, BACKGROUND_CODER_RESERVATIONS_FILE, BACKGROUND_DELEGATIONS_CHECKPOINT_FILE, BACKGROUND_DELEGATIONS_MANIFEST_FILE, MAX_LIVE_BACKGROUND_FALLBACKS, MAX_LIVE_BACKGROUND_CODER_RESERVATIONS, MAX_BACKGROUND_OBSERVED_FILES, MAX_BACKGROUND_ADVISORY_CHARS, LEGACY_CODER_SETTLEMENT_PENDING_ADVISORY_MARKER, DELEGATION_COMPACTION_LOW_WATER_BYTES, DELEGATION_COMPACTION_HIGH_WATER_BYTES, MAX_CHECKPOINT_BYTES, MAX_CHECKPOINT_RECORDS, TOMBSTONE_MIN_AGE_MS, BACKGROUND_INGESTION_LEASE_MS, BACKGROUND_CODER_RESERVATION_LEASE_MS, BACKGROUND_CODER_RESERVATION_LEASE_MAX_MS, BACKGROUND_CODER_RESERVATION_LEASE_MIN_MS, DEFAULT_STALE_DELEGATION_TIMEOUT_MS, DEFAULT_SWEEPABLE_DELEGATION_STATUSES, _checkpointInternals, isUnsettledWorktreeOwner, compactBackgroundDelegations, readDelegations, scanDelegationsForRecovery, findByCorrelationId, recordPendingDelegationDetailed, recordPendingDelegation, buildPromptSnapshot, appendDelegationTransition, publishPrReviewResultReceipt, buildBackgroundCompletionEventId, claimTerminalResult, claimCoderSettlement, normalizeBackgroundObservedFiles, updateCoderSettlement, registerLegacyCoderSettlementReconciler, _internals, markLegacyCoderSettlementTransferPending, clearLegacyCoderSettlementTransferPending, claimDelegationIngestion, recordDelegationIngestionResult, putPendingBackgroundAdvisory, replacePendingBackgroundAdvisory, preparePendingBackgroundAdvisories, acknowledgeObservedBackgroundAdvisories, releasePreparedBackgroundAdvisories, findByBatchId, findOpenAsyncLaneBatches, isTerminalDelegationStatus, sweepStaleDelegations, readDelegationFallback, listDelegationFallbacks, scanDelegationFallbacksForRecovery, writeDelegationFallback, removeDelegationFallback, findDelegationForCompletion, promoteDelegationFallback, buildBackgroundCoderReservationId, scanBackgroundCoderReservationsForAdmission, reserveBackgroundCoderSlot, bindBackgroundCoderReservation, releaseBackgroundCoderReservation, maintainBackgroundDelegations };
|
|
@@ -145,7 +145,10 @@ var PlaceholderEvidenceSchema = BaseEvidenceSchema.extend({
|
|
|
145
145
|
})).default([]),
|
|
146
146
|
files_scanned: exports_external.number().int(),
|
|
147
147
|
files_with_findings: exports_external.number().int(),
|
|
148
|
-
findings_count: exports_external.number().int()
|
|
148
|
+
findings_count: exports_external.number().int(),
|
|
149
|
+
diff_scoped: exports_external.boolean().optional(),
|
|
150
|
+
added_lines_files: exports_external.number().int().min(0).optional(),
|
|
151
|
+
added_lines_total: exports_external.number().int().min(0).optional()
|
|
149
152
|
});
|
|
150
153
|
var SastFindingSchema = exports_external.object({
|
|
151
154
|
rule_id: exports_external.string(),
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
resolveSwarmKnowledgePath,
|
|
7
7
|
transactKnowledge,
|
|
8
8
|
wordBigrams
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-cbcfpgz9.js";
|
|
10
10
|
import {
|
|
11
11
|
queryHistoricalOutcomes,
|
|
12
12
|
readKnowledgeEvents,
|
|
13
13
|
recordKnowledgeEvent
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-hvfsz7e3.js";
|
|
15
15
|
import {
|
|
16
16
|
init_knowledge_types,
|
|
17
17
|
isActiveStatus
|
|
@@ -224,11 +224,11 @@ async function maybeQuarantineOnContradiction(directory, entryId, threshold, win
|
|
|
224
224
|
alreadyInactive: true
|
|
225
225
|
};
|
|
226
226
|
}
|
|
227
|
-
const { quarantineEntry } = await import("./knowledge-validator-
|
|
227
|
+
const { quarantineEntry } = await import("./knowledge-validator-qfkr8eje.js");
|
|
228
228
|
let policyConfig;
|
|
229
229
|
try {
|
|
230
|
-
const { KnowledgeConfigSchema } = await import("./schema-
|
|
231
|
-
const { loadPluginConfigWithMeta } = await import("./index-
|
|
230
|
+
const { KnowledgeConfigSchema } = await import("./schema-xb7d31wq.js");
|
|
231
|
+
const { loadPluginConfigWithMeta } = await import("./index-9kp3cp5n.js");
|
|
232
232
|
const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
|
|
233
233
|
policyConfig = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
|
|
234
234
|
} catch {
|
package/dist/cli/index.js
CHANGED
|
@@ -11,69 +11,69 @@ import {
|
|
|
11
11
|
readCachePackageVersion,
|
|
12
12
|
resolveCommand,
|
|
13
13
|
safeRealpathSync
|
|
14
|
-
} from "./index-
|
|
15
|
-
import"./index-
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
18
|
-
import"./index-
|
|
19
|
-
import"./index-
|
|
14
|
+
} from "./index-cs9w1hfs.js";
|
|
15
|
+
import"./index-s33ee2w3.js";
|
|
16
|
+
import"./index-29f9te70.js";
|
|
17
|
+
import"./index-bn78ywnb.js";
|
|
18
|
+
import"./index-7d79mj06.js";
|
|
19
|
+
import"./index-dq41vsf9.js";
|
|
20
20
|
import"./index-txdagbh7.js";
|
|
21
21
|
import"./index-134d35c1.js";
|
|
22
22
|
import"./index-3146wmgv.js";
|
|
23
|
-
import"./index-
|
|
24
|
-
import"./index-
|
|
25
|
-
import"./index-
|
|
23
|
+
import"./index-yhadrxka.js";
|
|
24
|
+
import"./index-zhdfqz89.js";
|
|
25
|
+
import"./index-88wb0z9r.js";
|
|
26
26
|
import"./index-70ha9e09.js";
|
|
27
27
|
import"./index-c8s9a3zh.js";
|
|
28
28
|
import"./index-9ss2m4rs.js";
|
|
29
|
-
import"./index-
|
|
29
|
+
import"./index-y14mwbk8.js";
|
|
30
30
|
import"./index-zsrtt42s.js";
|
|
31
|
-
import"./index-
|
|
31
|
+
import"./index-qd9mrd7e.js";
|
|
32
32
|
import"./index-3f7hqtgg.js";
|
|
33
33
|
import"./index-awjx0wgk.js";
|
|
34
|
-
import"./index-
|
|
35
|
-
import"./index-
|
|
34
|
+
import"./index-nm0cpfrv.js";
|
|
35
|
+
import"./index-f5axf6vq.js";
|
|
36
36
|
import"./index-rtry5xyf.js";
|
|
37
|
-
import"./index-
|
|
38
|
-
import"./index-
|
|
39
|
-
import"./index-
|
|
37
|
+
import"./index-32avgbyq.js";
|
|
38
|
+
import"./index-c1geyan9.js";
|
|
39
|
+
import"./index-za42r41w.js";
|
|
40
40
|
import"./index-ddszzne4.js";
|
|
41
|
-
import"./index-
|
|
42
|
-
import"./index-
|
|
43
|
-
import"./index-
|
|
41
|
+
import"./index-4p6x3xxy.js";
|
|
42
|
+
import"./index-hq57ytm5.js";
|
|
43
|
+
import"./index-7619tk9a.js";
|
|
44
44
|
import"./index-556ja8an.js";
|
|
45
45
|
import"./index-4fwbbad3.js";
|
|
46
46
|
import"./index-b43rt5ph.js";
|
|
47
47
|
import"./index-q7sjgr1y.js";
|
|
48
|
-
import"./index-
|
|
49
|
-
import"./index-
|
|
50
|
-
import"./index-
|
|
51
|
-
import"./index-
|
|
48
|
+
import"./index-cbcfpgz9.js";
|
|
49
|
+
import"./index-hvfsz7e3.js";
|
|
50
|
+
import"./index-jm21vbyp.js";
|
|
51
|
+
import"./index-zg9d392c.js";
|
|
52
52
|
import"./index-n832052r.js";
|
|
53
53
|
import"./index-dtn0pne5.js";
|
|
54
54
|
import"./index-z6xqpmqg.js";
|
|
55
55
|
import"./index-r3mvsbtq.js";
|
|
56
|
-
import"./index-
|
|
56
|
+
import"./index-epjvntnm.js";
|
|
57
57
|
import {
|
|
58
58
|
init_package,
|
|
59
59
|
package_default
|
|
60
|
-
} from "./index-
|
|
60
|
+
} from "./index-rracnf2y.js";
|
|
61
61
|
import"./index-9e6fdz2h.js";
|
|
62
62
|
import"./index-4rhhvd1a.js";
|
|
63
|
-
import"./index-
|
|
63
|
+
import"./index-k55td019.js";
|
|
64
64
|
import {
|
|
65
65
|
DEFAULT_AGENT_CONFIGS,
|
|
66
66
|
init_constants
|
|
67
|
-
} from "./index-
|
|
67
|
+
} from "./index-9xd073d4.js";
|
|
68
68
|
import"./index-zjygnfay.js";
|
|
69
69
|
import"./index-ae75rja9.js";
|
|
70
|
-
import"./index-
|
|
71
|
-
import"./index-
|
|
70
|
+
import"./index-c6zyqgpq.js";
|
|
71
|
+
import"./index-d8st72j7.js";
|
|
72
72
|
import"./index-bk5tah7q.js";
|
|
73
|
-
import"./index-
|
|
73
|
+
import"./index-nqbqkx4c.js";
|
|
74
74
|
import"./index-dh5q6z7y.js";
|
|
75
75
|
import"./index-ed5ykebp.js";
|
|
76
|
-
import"./index-
|
|
76
|
+
import"./index-fx3em0dr.js";
|
|
77
77
|
import"./index-7g4c7s5r.js";
|
|
78
78
|
import"./index-bpmtbmy9.js";
|
|
79
79
|
import"./index-zgwm4ryv.js";
|