opencode-swarm 7.184.15 → 7.184.17
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/binaries/win32-arm64/swarm-sandbox-runner.exe +0 -0
- package/binaries/win32-x64/swarm-sandbox-runner.exe +0 -0
- package/dist/background/pending-delegations.d.ts +8 -0
- package/dist/cli/{auto-checkpoint-r4r2kr4z.js → auto-checkpoint-8whpytsm.js} +4 -4
- package/dist/cli/{checkpoint-vwhxez4r.js → checkpoint-zjtcn0tx.js} +8 -8
- package/dist/cli/{coder-settlement-8769tw6w.js → coder-settlement-0z8sr1ep.js} +3 -3
- package/dist/cli/{config-doctor-q6s9ady1.js → config-doctor-4zwh0dkn.js} +2 -2
- package/dist/cli/{core-4c59hesb.js → core-fqbga0z4.js} +1 -1
- package/dist/cli/{curator-drift-9nrhkxxw.js → curator-drift-44ba54w1.js} +5 -5
- package/dist/cli/{curator-j6cf1fsv.js → curator-fkebhqnh.js} +24 -24
- package/dist/cli/{curator-llm-factory-v0jt8819.js → curator-llm-factory-65qve6xk.js} +24 -24
- package/dist/cli/{evidence-summary-service-1m2nm513.js → evidence-summary-service-e6wesfq2.js} +9 -9
- package/dist/cli/{gate-evidence-rpdz5gs2.js → gate-evidence-8chc9f8q.js} +2 -2
- package/dist/cli/{guardrail-explain-ssr3ncme.js → guardrail-explain-2prdgvjk.js} +25 -25
- package/dist/cli/{guardrail-log-eka0rn8v.js → guardrail-log-t0ketv64.js} +3 -3
- package/dist/cli/{guardrail-reset-88s9h1hp.js → guardrail-reset-rzva9emn.js} +24 -24
- package/dist/cli/{hive-promoter-nwxx9w9p.js → hive-promoter-h60dddna.js} +24 -24
- package/dist/cli/{index-kyef5s4c.js → index-0pvvktht.js} +1 -1
- package/dist/cli/{index-sk0rezqg.js → index-0zjg4kt5.js} +1 -1
- package/dist/cli/{index-yd6y7r7j.js → index-48we80k1.js} +3 -3
- package/dist/cli/{index-9whef455.js → index-4v60grax.js} +1 -1
- package/dist/cli/{index-07hc23sf.js → index-50q314wd.js} +1 -1
- package/dist/cli/{index-48mh32sj.js → index-7n1pfpnj.js} +1 -1
- package/dist/cli/{index-px6s47ts.js → index-8twhrz1w.js} +24 -24
- package/dist/cli/{index-19brwwba.js → index-a7y29h92.js} +2 -2
- package/dist/cli/{index-prsrnfk6.js → index-bktc2g9n.js} +2 -2
- package/dist/cli/{index-nab1g7xp.js → index-cyn2cb6k.js} +37 -10
- package/dist/cli/{index-6yy4vdcz.js → index-denfahc5.js} +1 -1
- package/dist/cli/{index-148qddzf.js → index-dky6qwrk.js} +1 -1
- package/dist/cli/{index-g54vra87.js → index-drndbj24.js} +2 -2
- package/dist/cli/{index-2vnqer6v.js → index-e708d35g.js} +3 -3
- package/dist/cli/{index-vxry9wvc.js → index-gx03v1y5.js} +5 -5
- package/dist/cli/{index-j8fz5ag3.js → index-hk2cap4d.js} +3 -3
- package/dist/cli/{index-t31jmv18.js → index-hx4jkj05.js} +3 -3
- package/dist/cli/{index-b3hm5456.js → index-kxacpqwf.js} +1 -1
- package/dist/cli/{index-pb1yb6yj.js → index-m8342y3n.js} +1 -1
- package/dist/cli/{index-bv2fmsxx.js → index-naxrpyb0.js} +3 -3
- package/dist/cli/{index-k7tqv8z5.js → index-pak3x772.js} +3710 -3546
- package/dist/cli/{index-m5t6z50p.js → index-pef8ay7c.js} +1 -1
- package/dist/cli/{index-c2sr40yt.js → index-r472pepw.js} +1 -1
- package/dist/cli/{index-xhpqgxa5.js → index-sfsydeh8.js} +1 -1
- package/dist/cli/{index-m2sxww5e.js → index-vs1y869b.js} +26 -26
- package/dist/cli/{index-tqfrj80g.js → index-ww747mdg.js} +1 -1
- package/dist/cli/{index-4gf774pe.js → index-wxr5me67.js} +1 -1
- package/dist/cli/{index-rce6h5t2.js → index-y0534tfs.js} +5 -5
- package/dist/cli/{index-8nw4j5ph.js → index-y8gxcmnj.js} +4 -4
- package/dist/cli/index.js +25 -25
- package/dist/cli/{knowledge-escalator-7a8z30n1.js → knowledge-escalator-kdeqdj0h.js} +6 -6
- package/dist/cli/{knowledge-events-yqf2m1y9.js → knowledge-events-6fs0tz97.js} +4 -4
- package/dist/cli/{knowledge-store-pz47p7pz.js → knowledge-store-z3fee1x1.js} +1 -1
- package/dist/cli/{knowledge-validator-azhzywe2.js → knowledge-validator-sz1bmbvt.js} +2 -2
- package/dist/cli/{mcp-fwry0xx8.js → mcp-e1cnm4k3.js} +1 -1
- package/dist/cli/{model-preflight-x4rtj869.js → model-preflight-936dhs10.js} +24 -24
- package/dist/cli/{pending-delegations-1egznk0k.js → pending-delegations-m0vf63yd.js} +2 -2
- package/dist/cli/{pr-subscriptions-08w3nwe3.js → pr-subscriptions-2gvfff4q.js} +1 -1
- package/dist/cli/{pr-workflow-gate-w83p2tej.js → pr-workflow-gate-68rg74bk.js} +26 -24
- package/dist/cli/{scan-cursor-mehbaf4e.js → scan-cursor-qzsanqx4.js} +2 -2
- package/dist/cli/{schema-010qjq6e.js → schema-jx4v0hg7.js} +1 -1
- package/dist/cli/{scope-persistence-j3qrkcss.js → scope-persistence-qk1h0c13.js} +5 -5
- package/dist/cli/{server-sdk45b8b.js → server-z9az3wc5.js} +24 -24
- package/dist/cli/{skill-generator-scq1qwzj.js → skill-generator-h0veywz6.js} +7 -7
- package/dist/cli/{snapshot-coordination-init-211yqfne.js → snapshot-coordination-init-mwrvch16.js} +24 -24
- package/dist/cli/{speckit-checkoff-pa43b1wv.js → speckit-checkoff-skyray2c.js} +3 -3
- package/dist/cli/{worktree-collision-ownership-fsdmtk62.js → worktree-collision-ownership-wvxm7q1h.js} +2 -2
- package/dist/cli/{worktree-isolation-hgwzq1ag.js → worktree-isolation-bmzkxa64.js} +24 -24
- package/dist/config/skill-contract-digest.d.ts +20 -0
- package/dist/hooks/pr-workflow-gate.d.ts +387 -0
- package/dist/hooks/pr-workflow-response-gate.d.ts +2 -0
- package/dist/index.js +484 -478
- package/dist/services/pr-workflow-skill-contract.d.ts +45 -0
- package/package.json +1 -1
|
@@ -7,48 +7,48 @@ import {
|
|
|
7
7
|
isHiveEligible,
|
|
8
8
|
promoteFromSwarm,
|
|
9
9
|
promoteToHive
|
|
10
|
-
} from "./index-
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
10
|
+
} from "./index-pak3x772.js";
|
|
11
|
+
import"./index-dky6qwrk.js";
|
|
12
|
+
import"./index-wxr5me67.js";
|
|
13
|
+
import"./index-4v60grax.js";
|
|
14
14
|
import"./index-7bxssqaf.js";
|
|
15
15
|
import"./index-mfqge140.js";
|
|
16
16
|
import"./index-jtg0zsnx.js";
|
|
17
17
|
import"./index-txdagbh7.js";
|
|
18
|
-
import"./index-
|
|
18
|
+
import"./index-pef8ay7c.js";
|
|
19
19
|
import"./index-rdec0y3z.js";
|
|
20
|
-
import"./index-
|
|
21
|
-
import"./index-
|
|
22
|
-
import"./index-
|
|
23
|
-
import"./index-
|
|
20
|
+
import"./index-ww747mdg.js";
|
|
21
|
+
import"./index-naxrpyb0.js";
|
|
22
|
+
import"./index-e708d35g.js";
|
|
23
|
+
import"./index-y0534tfs.js";
|
|
24
24
|
import"./index-m1pqenq9.js";
|
|
25
25
|
import"./index-tyzmjw2s.js";
|
|
26
26
|
import"./index-cjapb4hy.js";
|
|
27
27
|
import"./index-yydv4jfy.js";
|
|
28
28
|
import"./index-pt7h91zc.js";
|
|
29
29
|
import"./index-q7sjgr1y.js";
|
|
30
|
-
import"./index-
|
|
31
|
-
import"./index-
|
|
30
|
+
import"./index-hx4jkj05.js";
|
|
31
|
+
import"./index-gx03v1y5.js";
|
|
32
32
|
import"./index-6b295cas.js";
|
|
33
33
|
import"./index-9nyqt3kb.js";
|
|
34
|
-
import"./index-
|
|
34
|
+
import"./index-denfahc5.js";
|
|
35
35
|
import"./index-zsrtt42s.js";
|
|
36
|
-
import"./index-
|
|
37
|
-
import"./index-
|
|
38
|
-
import"./index-
|
|
36
|
+
import"./index-50q314wd.js";
|
|
37
|
+
import"./index-m8342y3n.js";
|
|
38
|
+
import"./index-7n1pfpnj.js";
|
|
39
39
|
import"./index-g4fs6z4e.js";
|
|
40
|
-
import"./index-
|
|
41
|
-
import"./index-
|
|
40
|
+
import"./index-cyn2cb6k.js";
|
|
41
|
+
import"./index-48we80k1.js";
|
|
42
42
|
import"./index-dftztz4y.js";
|
|
43
43
|
import"./index-2s7dvzff.js";
|
|
44
|
-
import"./index-
|
|
44
|
+
import"./index-0zjg4kt5.js";
|
|
45
45
|
import"./index-fxf3zhtq.js";
|
|
46
46
|
import"./index-rtry5xyf.js";
|
|
47
|
-
import"./index-
|
|
47
|
+
import"./index-bktc2g9n.js";
|
|
48
48
|
import"./index-frcemc0b.js";
|
|
49
49
|
import"./index-0725jpp7.js";
|
|
50
|
-
import"./index-
|
|
51
|
-
import"./index-
|
|
50
|
+
import"./index-sfsydeh8.js";
|
|
51
|
+
import"./index-a7y29h92.js";
|
|
52
52
|
import"./index-7rzgdcvc.js";
|
|
53
53
|
import"./index-7r3pkgma.js";
|
|
54
54
|
import"./index-cftva3pa.js";
|
|
@@ -59,7 +59,7 @@ import"./index-7pmbnjvj.js";
|
|
|
59
59
|
import"./index-yx5z4200.js";
|
|
60
60
|
import {
|
|
61
61
|
resolveHiveKnowledgePath
|
|
62
|
-
} from "./index-
|
|
62
|
+
} from "./index-y8gxcmnj.js";
|
|
63
63
|
import"./index-vzm6zre7.js";
|
|
64
64
|
import"./index-ae75rja9.js";
|
|
65
65
|
import"./index-4g4sr4ah.js";
|
|
@@ -73,9 +73,9 @@ import"./index-ejhxgyvm.js";
|
|
|
73
73
|
import"./index-7g4c7s5r.js";
|
|
74
74
|
import"./index-bntwj2tp.js";
|
|
75
75
|
import"./index-gx2vp8gx.js";
|
|
76
|
-
import"./index-
|
|
76
|
+
import"./index-kxacpqwf.js";
|
|
77
77
|
import"./index-zxdawwc7.js";
|
|
78
|
-
import"./index-
|
|
78
|
+
import"./index-0pvvktht.js";
|
|
79
79
|
import"./index-48jvqqfa.js";
|
|
80
80
|
import"./index-bk5tah7q.js";
|
|
81
81
|
import"./index-gknz3bv1.js";
|
|
@@ -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.184.
|
|
24
|
+
version: "7.184.17",
|
|
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",
|
|
@@ -28,11 +28,11 @@ import {
|
|
|
28
28
|
} from "./index-7g4c7s5r.js";
|
|
29
29
|
import {
|
|
30
30
|
loadPluginConfigWithMeta
|
|
31
|
-
} from "./index-
|
|
31
|
+
} from "./index-kxacpqwf.js";
|
|
32
32
|
import {
|
|
33
33
|
KnowledgeConfigSchema,
|
|
34
34
|
init_schema
|
|
35
|
-
} from "./index-
|
|
35
|
+
} from "./index-0pvvktht.js";
|
|
36
36
|
import {
|
|
37
37
|
init_logger,
|
|
38
38
|
warn
|
|
@@ -2946,7 +2946,7 @@ async function applyKnowledgeVerdictFeedback(directory, options) {
|
|
|
2946
2946
|
}
|
|
2947
2947
|
let bumps = 0;
|
|
2948
2948
|
if (deltas.length > 0) {
|
|
2949
|
-
const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-
|
|
2949
|
+
const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-z3fee1x1.js");
|
|
2950
2950
|
bumps = await bumpKnowledgeConfidenceBatch(directory, deltas, options?.floorOptions);
|
|
2951
2951
|
}
|
|
2952
2952
|
return {
|
|
@@ -242,7 +242,7 @@ var _internals2 = {
|
|
|
242
242
|
symlinkSync: fs2.symlinkSync
|
|
243
243
|
},
|
|
244
244
|
writeScopeToDisk: async (directory, taskId, files) => {
|
|
245
|
-
const { writeScopeToDisk: realWrite } = await import("./scope-persistence-
|
|
245
|
+
const { writeScopeToDisk: realWrite } = await import("./scope-persistence-qk1h0c13.js");
|
|
246
246
|
return realWrite(directory, taskId, files);
|
|
247
247
|
},
|
|
248
248
|
writeLaneProfileToDisk: async (_worktreePath, _laneIndex, _envOverrides) => {
|
|
@@ -23,50 +23,50 @@ import {
|
|
|
23
23
|
resolveFallbackModel,
|
|
24
24
|
resolvePrimaryAgentNames,
|
|
25
25
|
stripSwarmPrefix
|
|
26
|
-
} from "./index-
|
|
27
|
-
import"./index-
|
|
28
|
-
import"./index-
|
|
29
|
-
import"./index-
|
|
26
|
+
} from "./index-pak3x772.js";
|
|
27
|
+
import"./index-dky6qwrk.js";
|
|
28
|
+
import"./index-wxr5me67.js";
|
|
29
|
+
import"./index-4v60grax.js";
|
|
30
30
|
import"./index-7bxssqaf.js";
|
|
31
31
|
import"./index-mfqge140.js";
|
|
32
32
|
import"./index-jtg0zsnx.js";
|
|
33
33
|
import"./index-txdagbh7.js";
|
|
34
|
-
import"./index-
|
|
34
|
+
import"./index-pef8ay7c.js";
|
|
35
35
|
import {
|
|
36
36
|
createExplorerAgent
|
|
37
37
|
} from "./index-rdec0y3z.js";
|
|
38
|
-
import"./index-
|
|
39
|
-
import"./index-
|
|
40
|
-
import"./index-
|
|
41
|
-
import"./index-
|
|
38
|
+
import"./index-ww747mdg.js";
|
|
39
|
+
import"./index-naxrpyb0.js";
|
|
40
|
+
import"./index-e708d35g.js";
|
|
41
|
+
import"./index-y0534tfs.js";
|
|
42
42
|
import"./index-m1pqenq9.js";
|
|
43
43
|
import"./index-tyzmjw2s.js";
|
|
44
44
|
import"./index-cjapb4hy.js";
|
|
45
45
|
import"./index-yydv4jfy.js";
|
|
46
46
|
import"./index-pt7h91zc.js";
|
|
47
47
|
import"./index-q7sjgr1y.js";
|
|
48
|
-
import"./index-
|
|
49
|
-
import"./index-
|
|
48
|
+
import"./index-hx4jkj05.js";
|
|
49
|
+
import"./index-gx03v1y5.js";
|
|
50
50
|
import"./index-6b295cas.js";
|
|
51
51
|
import"./index-9nyqt3kb.js";
|
|
52
|
-
import"./index-
|
|
52
|
+
import"./index-denfahc5.js";
|
|
53
53
|
import"./index-zsrtt42s.js";
|
|
54
|
-
import"./index-
|
|
55
|
-
import"./index-
|
|
56
|
-
import"./index-
|
|
54
|
+
import"./index-50q314wd.js";
|
|
55
|
+
import"./index-m8342y3n.js";
|
|
56
|
+
import"./index-7n1pfpnj.js";
|
|
57
57
|
import"./index-g4fs6z4e.js";
|
|
58
|
-
import"./index-
|
|
59
|
-
import"./index-
|
|
58
|
+
import"./index-cyn2cb6k.js";
|
|
59
|
+
import"./index-48we80k1.js";
|
|
60
60
|
import"./index-dftztz4y.js";
|
|
61
61
|
import"./index-2s7dvzff.js";
|
|
62
|
-
import"./index-
|
|
62
|
+
import"./index-0zjg4kt5.js";
|
|
63
63
|
import"./index-fxf3zhtq.js";
|
|
64
64
|
import"./index-rtry5xyf.js";
|
|
65
|
-
import"./index-
|
|
65
|
+
import"./index-bktc2g9n.js";
|
|
66
66
|
import"./index-frcemc0b.js";
|
|
67
67
|
import"./index-0725jpp7.js";
|
|
68
|
-
import"./index-
|
|
69
|
-
import"./index-
|
|
68
|
+
import"./index-sfsydeh8.js";
|
|
69
|
+
import"./index-a7y29h92.js";
|
|
70
70
|
import"./index-7rzgdcvc.js";
|
|
71
71
|
import"./index-7r3pkgma.js";
|
|
72
72
|
import"./index-cftva3pa.js";
|
|
@@ -75,7 +75,7 @@ import"./index-ry16d01s.js";
|
|
|
75
75
|
import"./index-rdm3px0g.js";
|
|
76
76
|
import"./index-7pmbnjvj.js";
|
|
77
77
|
import"./index-yx5z4200.js";
|
|
78
|
-
import"./index-
|
|
78
|
+
import"./index-y8gxcmnj.js";
|
|
79
79
|
import"./index-vzm6zre7.js";
|
|
80
80
|
import"./index-ae75rja9.js";
|
|
81
81
|
import"./index-4g4sr4ah.js";
|
|
@@ -89,9 +89,9 @@ import"./index-ejhxgyvm.js";
|
|
|
89
89
|
import"./index-7g4c7s5r.js";
|
|
90
90
|
import"./index-bntwj2tp.js";
|
|
91
91
|
import"./index-gx2vp8gx.js";
|
|
92
|
-
import"./index-
|
|
92
|
+
import"./index-kxacpqwf.js";
|
|
93
93
|
import"./index-zxdawwc7.js";
|
|
94
|
-
import"./index-
|
|
94
|
+
import"./index-0pvvktht.js";
|
|
95
95
|
import"./index-48jvqqfa.js";
|
|
96
96
|
import"./index-bk5tah7q.js";
|
|
97
97
|
import"./index-gknz3bv1.js";
|
|
@@ -27,11 +27,11 @@ import {
|
|
|
27
27
|
import {
|
|
28
28
|
init_loader,
|
|
29
29
|
loadPluginConfig
|
|
30
|
-
} from "./index-
|
|
30
|
+
} from "./index-kxacpqwf.js";
|
|
31
31
|
import {
|
|
32
32
|
init_package,
|
|
33
33
|
package_default
|
|
34
|
-
} from "./index-
|
|
34
|
+
} from "./index-0pvvktht.js";
|
|
35
35
|
import {
|
|
36
36
|
criticalWarn,
|
|
37
37
|
init_logger,
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
init_loader,
|
|
4
4
|
loadPluginConfigWithMeta
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-kxacpqwf.js";
|
|
6
6
|
import {
|
|
7
7
|
init_schema
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-0pvvktht.js";
|
|
9
9
|
import {
|
|
10
10
|
DEFAULT_WORKTREE_ISOLATION_CONFIG,
|
|
11
11
|
init_constants
|
|
@@ -2948,9 +2948,11 @@ async function publishPrReviewResultReceipt(directory, input) {
|
|
|
2948
2948
|
}
|
|
2949
2949
|
return;
|
|
2950
2950
|
}
|
|
2951
|
+
const staleContractResult = current.terminalResult?.result.workflowLaneFailureClass === "contract" ? current.terminalResult?.result : current.result?.workflowLaneFailureClass === "contract" ? current.result : undefined;
|
|
2952
|
+
const staleContractTerminalForReceipt = current.status === "error" && !current.result?.prReviewResultReceipt && !current.terminalResult?.result.prReviewResultReceipt && staleContractResult !== undefined && staleContractResult.outputDegraded !== true && (staleContractResult.chars ?? 0) > 0 && !!staleContractResult.digest;
|
|
2951
2953
|
if (current.status !== "pending" && current.status !== "running") {
|
|
2952
2954
|
const livenessTerminalForParentRepair = input.parentRepair === true && (current.status === "cancelled" || current.status === "stale" || current.status === "error") && (current.terminalResult?.result.workflowLaneFailureClass === "liveness" || current.result?.workflowLaneFailureClass === "liveness");
|
|
2953
|
-
if (!livenessTerminalForParentRepair) {
|
|
2955
|
+
if (!livenessTerminalForParentRepair && !staleContractTerminalForReceipt) {
|
|
2954
2956
|
outcome = {
|
|
2955
2957
|
status: "terminal",
|
|
2956
2958
|
reason: `delegation is already ${current.status}`
|
|
@@ -2969,21 +2971,41 @@ async function publishPrReviewResultReceipt(directory, input) {
|
|
|
2969
2971
|
};
|
|
2970
2972
|
return;
|
|
2971
2973
|
}
|
|
2974
|
+
const staleContractAdmissionResult = {
|
|
2975
|
+
...current.result ?? {
|
|
2976
|
+
chars: 0,
|
|
2977
|
+
truncated: false,
|
|
2978
|
+
digest: createHash3("sha256").update("").digest("hex")
|
|
2979
|
+
},
|
|
2980
|
+
prReviewResultReceipt: parsed.data
|
|
2981
|
+
};
|
|
2982
|
+
delete staleContractAdmissionResult.error;
|
|
2983
|
+
delete staleContractAdmissionResult.workflowLaneFailureClass;
|
|
2984
|
+
const staleContractAdmission = staleContractTerminalForReceipt === true ? buildTypedDelegationTerminal(current, "completed", staleContractAdmissionResult, Date.now()) : undefined;
|
|
2985
|
+
if (staleContractAdmission) {
|
|
2986
|
+
warn(`[background] publishPrReviewResultReceipt: admitting receipt onto stale-decision ` + `contract terminal for correlationId=${input.parentSessionId}/${input.childSessionId} ` + `lane=${input.laneId}; record settles completed on the exactly-bound receipt`);
|
|
2987
|
+
}
|
|
2988
|
+
const ordinaryPublishResult = {
|
|
2989
|
+
...current.result ?? {
|
|
2990
|
+
chars: 0,
|
|
2991
|
+
truncated: false,
|
|
2992
|
+
digest: createHash3("sha256").update("").digest("hex")
|
|
2993
|
+
},
|
|
2994
|
+
prReviewResultReceipt: parsed.data
|
|
2995
|
+
};
|
|
2972
2996
|
const next = {
|
|
2973
2997
|
...current,
|
|
2974
2998
|
schemaVersion: 4,
|
|
2975
2999
|
updatedAt: Date.now(),
|
|
2976
|
-
result:
|
|
2977
|
-
...current.result ?? {
|
|
2978
|
-
chars: 0,
|
|
2979
|
-
truncated: false,
|
|
2980
|
-
digest: createHash3("sha256").update("").digest("hex")
|
|
2981
|
-
},
|
|
2982
|
-
prReviewResultReceipt: parsed.data
|
|
2983
|
-
},
|
|
3000
|
+
result: staleContractAdmission ? staleContractAdmissionResult : ordinaryPublishResult,
|
|
2984
3001
|
...parentRepairBackfill ? {
|
|
2985
3002
|
terminalResult: parentRepairBackfill,
|
|
2986
3003
|
completedAt: parentRepairBackfill.recordedAt
|
|
3004
|
+
} : {},
|
|
3005
|
+
...staleContractAdmission ? {
|
|
3006
|
+
status: "completed",
|
|
3007
|
+
terminalResult: staleContractAdmission,
|
|
3008
|
+
completedAt: staleContractAdmission.recordedAt
|
|
2987
3009
|
} : {}
|
|
2988
3010
|
};
|
|
2989
3011
|
appendRecord(directory, next);
|
|
@@ -3126,6 +3148,11 @@ async function claimTerminalResult(directory, correlationId, terminalResult) {
|
|
|
3126
3148
|
if (current.status !== "pending" && current.status !== "running") {
|
|
3127
3149
|
return;
|
|
3128
3150
|
}
|
|
3151
|
+
const staleContractIncoming = parsedTerminal.data.status === "error" && parsedTerminal.data.result.workflowLaneFailureClass === "contract" && parsedTerminal.data.result.outputDegraded !== true && (parsedTerminal.data.result.chars ?? 0) > 0 && !!parsedTerminal.data.result.digest;
|
|
3152
|
+
if (normalizedResult !== parsedTerminal.data.result && staleContractIncoming) {
|
|
3153
|
+
warn(`[background] claimTerminalResult: refusing stale-decision contract terminal for ` + `correlationId=${correlationId}; a structured receipt is already recorded on the open record; ` + `lane left open for the next collection pass`);
|
|
3154
|
+
return;
|
|
3155
|
+
}
|
|
3129
3156
|
let coderSettlement = current.coderSettlement;
|
|
3130
3157
|
if (current.normalizedAgent === "coder" && !coderSettlement) {
|
|
3131
3158
|
const provenance = settlementProvenanceFor(current);
|
|
@@ -4697,7 +4724,7 @@ async function reconcileLegacyCoderSettlements(directory, maxRecords, onReconcil
|
|
|
4697
4724
|
const candidates = readDelegations(directory).filter((record) => record.normalizedAgent === "coder" && Boolean(record.legacyCoderSettlementTransfer) && Boolean(record.terminalResult)).slice(0, maxRecords);
|
|
4698
4725
|
if (candidates.length === 0)
|
|
4699
4726
|
return 0;
|
|
4700
|
-
const { transferCoderSettlementToBackground } = await import("./coder-settlement-
|
|
4727
|
+
const { transferCoderSettlementToBackground } = await import("./coder-settlement-0z8sr1ep.js");
|
|
4701
4728
|
let transferred = 0;
|
|
4702
4729
|
for (const record of candidates) {
|
|
4703
4730
|
try {
|
|
@@ -14,14 +14,14 @@ import {
|
|
|
14
14
|
detectWindowsWrites,
|
|
15
15
|
getSharedClassifierGuardrailBlock,
|
|
16
16
|
resolveWriteTargets
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-pak3x772.js";
|
|
18
18
|
import {
|
|
19
19
|
checkFileAuthority,
|
|
20
20
|
classifyFile,
|
|
21
21
|
isInDeclaredScope,
|
|
22
22
|
redactPath,
|
|
23
23
|
redactShellCommand
|
|
24
|
-
} from "./index-
|
|
24
|
+
} from "./index-dky6qwrk.js";
|
|
25
25
|
|
|
26
26
|
// src/services/guardrail-explain-service.ts
|
|
27
27
|
import path from "path";
|
|
@@ -5,18 +5,18 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
effectiveRetrievalOutcomes,
|
|
7
7
|
readAuthoritativeKnowledgeCounterRollups
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-48we80k1.js";
|
|
9
9
|
import {
|
|
10
10
|
ALLOWED_SKILL_PATH_PREFIXES,
|
|
11
11
|
validateSkillPath
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-0zjg4kt5.js";
|
|
13
13
|
import {
|
|
14
14
|
computeOutcomeSignal,
|
|
15
15
|
readKnowledge,
|
|
16
16
|
resolveHiveKnowledgePath,
|
|
17
17
|
resolveSwarmKnowledgePath,
|
|
18
18
|
transactKnowledge
|
|
19
|
-
} from "./index-
|
|
19
|
+
} from "./index-y8gxcmnj.js";
|
|
20
20
|
import {
|
|
21
21
|
appendCappedJsonl,
|
|
22
22
|
resolveRetentionCap
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./index-6b295cas.js";
|
|
5
5
|
import {
|
|
6
6
|
readEffectiveSpecSync
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-denfahc5.js";
|
|
8
8
|
import {
|
|
9
9
|
getWorktreeMergeFailure
|
|
10
10
|
} from "./index-zsrtt42s.js";
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
replayFromLedgerWithStatus,
|
|
45
45
|
takeSnapshotEvent,
|
|
46
46
|
takeSnapshotWithRetry
|
|
47
|
-
} from "./index-
|
|
47
|
+
} from "./index-a7y29h92.js";
|
|
48
48
|
import {
|
|
49
49
|
appendCoreEventSync
|
|
50
50
|
} from "./index-7rzgdcvc.js";
|
|
@@ -3004,7 +3004,7 @@ ${markdown}`;
|
|
|
3004
3004
|
}
|
|
3005
3005
|
}
|
|
3006
3006
|
async function defaultMaybeSaveAutoCheckpoint(directory, plan) {
|
|
3007
|
-
const { maybeSaveAutoCheckpoint } = await import("./auto-checkpoint-
|
|
3007
|
+
const { maybeSaveAutoCheckpoint } = await import("./auto-checkpoint-8whpytsm.js");
|
|
3008
3008
|
return maybeSaveAutoCheckpoint(directory, plan);
|
|
3009
3009
|
}
|
|
3010
3010
|
async function updateTaskStatus(directory, taskId, status, options) {
|
|
@@ -3080,7 +3080,7 @@ async function updateTaskStatus(directory, taskId, status, options) {
|
|
|
3080
3080
|
if (status === "completed") {
|
|
3081
3081
|
try {
|
|
3082
3082
|
const completedTask = updatedPlan.phases.flatMap((phase) => phase.tasks).find((candidate) => candidate.id === taskId);
|
|
3083
|
-
const { maybePropagateSpeckitCheckoff } = await import("./speckit-checkoff-
|
|
3083
|
+
const { maybePropagateSpeckitCheckoff } = await import("./speckit-checkoff-skyray2c.js");
|
|
3084
3084
|
await maybePropagateSpeckitCheckoff(directory, {
|
|
3085
3085
|
taskId,
|
|
3086
3086
|
frRefs: completedTask?.fr_refs ?? [],
|
|
@@ -3105,7 +3105,7 @@ async function updateTaskStatus(directory, taskId, status, options) {
|
|
|
3105
3105
|
break;
|
|
3106
3106
|
}
|
|
3107
3107
|
}
|
|
3108
|
-
const { readDeclaredScopeFilesFromBindings } = await import("./scope-persistence-
|
|
3108
|
+
const { readDeclaredScopeFilesFromBindings } = await import("./scope-persistence-qk1h0c13.js");
|
|
3109
3109
|
const canonicalScope = readDeclaredScopeFilesFromBindings({
|
|
3110
3110
|
directory,
|
|
3111
3111
|
taskId,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
_internals,
|
|
4
4
|
resolveWorktreeIsolationConfig
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-bktc2g9n.js";
|
|
6
6
|
import {
|
|
7
7
|
ApprovalEvidenceSchema,
|
|
8
8
|
BaseEvidenceSchema,
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
loadPluginConfigWithMeta,
|
|
47
47
|
loadPluginConfigWithMetaAsync,
|
|
48
48
|
resetConfigAdvisoryDedup
|
|
49
|
-
} from "./index-
|
|
49
|
+
} from "./index-kxacpqwf.js";
|
|
50
50
|
import"./index-zxdawwc7.js";
|
|
51
51
|
import {
|
|
52
52
|
AUTO_REVIEW_V8_BURN_IN_DECISION,
|
|
@@ -72,7 +72,7 @@ import {
|
|
|
72
72
|
TurboConfigSchema,
|
|
73
73
|
WorktreeIsolationConfigSchema,
|
|
74
74
|
resolveAutoReviewConfig
|
|
75
|
-
} from "./index-
|
|
75
|
+
} from "./index-0pvvktht.js";
|
|
76
76
|
import {
|
|
77
77
|
ALL_AGENT_NAMES,
|
|
78
78
|
ALL_SUBAGENT_NAMES,
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
loadPlan,
|
|
8
8
|
transientBackoff,
|
|
9
9
|
updateTaskCheckpointReceipt
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-gx03v1y5.js";
|
|
11
11
|
import {
|
|
12
12
|
tool
|
|
13
13
|
} from "./index-9nyqt3kb.js";
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
} from "./index-g4fs6z4e.js";
|
|
21
21
|
import {
|
|
22
22
|
readLedgerEvents
|
|
23
|
-
} from "./index-
|
|
23
|
+
} from "./index-a7y29h92.js";
|
|
24
24
|
import {
|
|
25
25
|
appendCoreEventSync
|
|
26
26
|
} from "./index-7rzgdcvc.js";
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
} from "./index-ejhxgyvm.js";
|
|
39
39
|
import {
|
|
40
40
|
loadPluginConfigWithMeta
|
|
41
|
-
} from "./index-
|
|
41
|
+
} from "./index-kxacpqwf.js";
|
|
42
42
|
import {
|
|
43
43
|
init_git_executable,
|
|
44
44
|
resolveGitExecutable
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
reconcileLandedMerge,
|
|
15
15
|
withTaskEvidenceTransaction,
|
|
16
16
|
writeWorkflowWalFile
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-m8342y3n.js";
|
|
18
18
|
import {
|
|
19
19
|
validateSwarmPath
|
|
20
20
|
} from "./index-dftztz4y.js";
|
|
@@ -512,7 +512,7 @@ async function cleanupRecoveredWorktree(directory, descriptor, options) {
|
|
|
512
512
|
awaitingMergeByCallID,
|
|
513
513
|
cleanupStandardWorktreeForCallId,
|
|
514
514
|
standardWorktreeByCallID
|
|
515
|
-
} = await import("./worktree-isolation-
|
|
515
|
+
} = await import("./worktree-isolation-bmzkxa64.js");
|
|
516
516
|
standardWorktreeByCallID.delete(descriptor.callID);
|
|
517
517
|
if (hasResidue)
|
|
518
518
|
awaitingMergeByCallID.set(descriptor.callID, {
|
|
@@ -648,7 +648,7 @@ async function recoverCoderSettlement(directory, taskId) {
|
|
|
648
648
|
awaitingMergeByCallID,
|
|
649
649
|
finishStandardWorktreeDispatch,
|
|
650
650
|
standardWorktreeByCallID
|
|
651
|
-
} = await import("./worktree-isolation-
|
|
651
|
+
} = await import("./worktree-isolation-bmzkxa64.js");
|
|
652
652
|
const descriptor = wal.worktree;
|
|
653
653
|
const reconstructedDispatch = {
|
|
654
654
|
callID: descriptor.callID,
|