opencode-swarm 7.143.1 → 7.143.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.
Files changed (43) hide show
  1. package/dist/cli/{config-doctor-ajq3sts3.js → config-doctor-ddbwxt14.js} +2 -2
  2. package/dist/cli/{core-0jn7sk7t.js → core-gfk2tsre.js} +1 -1
  3. package/dist/cli/{curator-ff53rwz5.js → curator-hkcd03bx.js} +17 -17
  4. package/dist/cli/{curator-llm-factory-2mz7fgd1.js → curator-llm-factory-z23scnwb.js} +17 -17
  5. package/dist/cli/{evidence-summary-service-08zcq836.js → evidence-summary-service-cbhsye6e.js} +6 -6
  6. package/dist/cli/{gate-evidence-2r7n4qjv.js → gate-evidence-5xd9j34y.js} +2 -2
  7. package/dist/cli/{guardrail-explain-cm5je07b.js → guardrail-explain-49vn7rv6.js} +18 -18
  8. package/dist/cli/{guardrail-log-jf4430p5.js → guardrail-log-ghymef5s.js} +3 -3
  9. package/dist/cli/{hive-promoter-738bf1fj.js → hive-promoter-akf3x240.js} +17 -17
  10. package/dist/cli/{index-mpw32szm.js → index-1et48zgf.js} +1 -1
  11. package/dist/cli/{index-zgq25ze6.js → index-1y0rggw0.js} +1 -1
  12. package/dist/cli/{index-awzwmx8p.js → index-30yyh3m0.js} +3 -3
  13. package/dist/cli/{index-n48cwf1a.js → index-3qw0bsgr.js} +50 -15
  14. package/dist/cli/{index-cfwdm1dx.js → index-4mr3ga48.js} +1 -1
  15. package/dist/cli/{index-crt7xw29.js → index-64pk7525.js} +1 -1
  16. package/dist/cli/{index-254xf5y6.js → index-6cgp4ska.js} +2 -2
  17. package/dist/cli/{index-0kqs2fbm.js → index-86tn52b3.js} +1 -1
  18. package/dist/cli/{index-91dz0zct.js → index-9py8e0dk.js} +3 -3
  19. package/dist/cli/{index-3fg8kx7n.js → index-a6rnw33a.js} +2 -2
  20. package/dist/cli/{index-qmfzfh7m.js → index-ds7j4hth.js} +3 -3
  21. package/dist/cli/{index-q68a8h37.js → index-e1feasna.js} +1 -1
  22. package/dist/cli/{index-zky3vt90.js → index-e3g0t29w.js} +1 -1
  23. package/dist/cli/{index-srd87kxc.js → index-etxy4vz9.js} +4 -4
  24. package/dist/cli/{index-q7jv0c8e.js → index-m7gss7zy.js} +181 -120
  25. package/dist/cli/{index-cz9tc0h8.js → index-qykq6vge.js} +3 -3
  26. package/dist/cli/{index-wnj1d1es.js → index-tj18fe58.js} +19 -19
  27. package/dist/cli/{index-x10a9cz6.js → index-vatqcjnd.js} +5 -5
  28. package/dist/cli/{index-7317fvce.js → index-vdkywste.js} +1 -1
  29. package/dist/cli/{index-n2jk8ajv.js → index-x90gktjx.js} +1 -1
  30. package/dist/cli/{index-a5rky7fv.js → index-xq2effek.js} +2 -2
  31. package/dist/cli/index.js +17 -17
  32. package/dist/cli/{knowledge-escalator-9mdajq4s.js → knowledge-escalator-mgg6kvva.js} +6 -6
  33. package/dist/cli/{knowledge-events-pz58s2r1.js → knowledge-events-yjmkrrv2.js} +4 -4
  34. package/dist/cli/{knowledge-store-sz8vat89.js → knowledge-store-647twyjp.js} +1 -1
  35. package/dist/cli/{knowledge-validator-w5vmvf0a.js → knowledge-validator-0nsax3n6.js} +2 -2
  36. package/dist/cli/{scan-cursor-p54xsx41.js → scan-cursor-vgmzg5ys.js} +2 -2
  37. package/dist/cli/{schema-p74hnrfz.js → schema-mzh2tam4.js} +1 -1
  38. package/dist/cli/{scope-persistence-1fc2ncsk.js → scope-persistence-m4ah4fay.js} +4 -4
  39. package/dist/cli/{skill-generator-yv46bt1a.js → skill-generator-eyf32w7h.js} +7 -7
  40. package/dist/cli/{worktree-isolation-qfgc3vma.js → worktree-isolation-grxn94v9.js} +17 -17
  41. package/dist/index.js +72 -64
  42. package/dist/session/snapshot-writer.d.ts +12 -0
  43. package/package.json +1 -1
@@ -12,8 +12,8 @@ import {
12
12
  shouldRunOnStartup,
13
13
  writeBackupArtifact,
14
14
  writeDoctorArtifact
15
- } from "./index-zky3vt90.js";
16
- import"./index-mpw32szm.js";
15
+ } from "./index-e3g0t29w.js";
16
+ import"./index-1et48zgf.js";
17
17
  import"./index-jqsfsqbx.js";
18
18
  import"./index-z6xqpmqg.js";
19
19
  import"./index-zjygnfay.js";
@@ -14,7 +14,7 @@ import {
14
14
  resolveWorktreeBaseDir,
15
15
  shortenWorktreePath,
16
16
  writeLaneProfileToDiskReal
17
- } from "./index-n48cwf1a.js";
17
+ } from "./index-3qw0bsgr.js";
18
18
  import"./index-4rhhvd1a.js";
19
19
  import"./index-jqsfsqbx.js";
20
20
  import"./index-z6xqpmqg.js";
@@ -14,50 +14,50 @@ import {
14
14
  runCuratorInit,
15
15
  runCuratorPhase,
16
16
  writeCuratorSummary
17
- } from "./index-q7jv0c8e.js";
18
- import"./index-7317fvce.js";
19
- import"./index-zky3vt90.js";
20
- import"./index-awzwmx8p.js";
17
+ } from "./index-m7gss7zy.js";
18
+ import"./index-vdkywste.js";
19
+ import"./index-e3g0t29w.js";
20
+ import"./index-30yyh3m0.js";
21
21
  import"./index-134d35c1.js";
22
22
  import"./index-b6e016tv.js";
23
23
  import"./index-4q9vfav6.js";
24
24
  import"./index-k92cagmt.js";
25
25
  import"./index-y8552snf.js";
26
- import"./index-crt7xw29.js";
26
+ import"./index-64pk7525.js";
27
27
  import"./index-xmzmeknp.js";
28
28
  import"./index-c8s9a3zh.js";
29
29
  import"./index-9ss2m4rs.js";
30
- import"./index-0kqs2fbm.js";
30
+ import"./index-86tn52b3.js";
31
31
  import"./index-74hpm6sh.js";
32
- import"./index-91dz0zct.js";
33
- import"./index-x10a9cz6.js";
34
- import"./index-3fg8kx7n.js";
35
- import"./index-q68a8h37.js";
32
+ import"./index-9py8e0dk.js";
33
+ import"./index-vatqcjnd.js";
34
+ import"./index-a6rnw33a.js";
35
+ import"./index-e1feasna.js";
36
36
  import"./index-556ja8an.js";
37
37
  import"./index-gdd4jt6b.js";
38
38
  import"./index-zsrtt42s.js";
39
39
  import"./index-k3cxyk66.js";
40
40
  import"./index-8aabbfhv.js";
41
- import"./index-n48cwf1a.js";
41
+ import"./index-3qw0bsgr.js";
42
42
  import"./index-8fwhhayc.js";
43
43
  import"./index-q1exe2b3.js";
44
44
  import"./index-7sy3aa9m.js";
45
45
  import"./index-4905hd2m.js";
46
- import"./index-qmfzfh7m.js";
47
- import"./index-254xf5y6.js";
46
+ import"./index-ds7j4hth.js";
47
+ import"./index-6cgp4ska.js";
48
48
  import"./index-gprxjmm7.js";
49
49
  import"./index-n832052r.js";
50
- import"./index-zgq25ze6.js";
51
- import"./index-mpw32szm.js";
50
+ import"./index-1y0rggw0.js";
51
+ import"./index-1et48zgf.js";
52
52
  import"./index-rn0eq85g.js";
53
53
  import"./index-4rhhvd1a.js";
54
54
  import"./index-jqsfsqbx.js";
55
55
  import"./index-z6xqpmqg.js";
56
56
  import"./index-zjygnfay.js";
57
- import"./index-cfwdm1dx.js";
57
+ import"./index-4mr3ga48.js";
58
58
  import"./index-tq5s07ta.js";
59
59
  import"./index-rtry5xyf.js";
60
- import"./index-srd87kxc.js";
60
+ import"./index-etxy4vz9.js";
61
61
  import"./index-ae75rja9.js";
62
62
  import"./index-w7x7qxz2.js";
63
63
  import"./index-erfnw81g.js";
@@ -1,50 +1,50 @@
1
1
  // @bun
2
2
  import {
3
3
  createCuratorLLMDelegate
4
- } from "./index-q7jv0c8e.js";
5
- import"./index-7317fvce.js";
6
- import"./index-zky3vt90.js";
7
- import"./index-awzwmx8p.js";
4
+ } from "./index-m7gss7zy.js";
5
+ import"./index-vdkywste.js";
6
+ import"./index-e3g0t29w.js";
7
+ import"./index-30yyh3m0.js";
8
8
  import"./index-134d35c1.js";
9
9
  import"./index-b6e016tv.js";
10
10
  import"./index-4q9vfav6.js";
11
11
  import"./index-k92cagmt.js";
12
12
  import"./index-y8552snf.js";
13
- import"./index-crt7xw29.js";
13
+ import"./index-64pk7525.js";
14
14
  import"./index-xmzmeknp.js";
15
15
  import"./index-c8s9a3zh.js";
16
16
  import"./index-9ss2m4rs.js";
17
- import"./index-0kqs2fbm.js";
17
+ import"./index-86tn52b3.js";
18
18
  import"./index-74hpm6sh.js";
19
- import"./index-91dz0zct.js";
20
- import"./index-x10a9cz6.js";
21
- import"./index-3fg8kx7n.js";
22
- import"./index-q68a8h37.js";
19
+ import"./index-9py8e0dk.js";
20
+ import"./index-vatqcjnd.js";
21
+ import"./index-a6rnw33a.js";
22
+ import"./index-e1feasna.js";
23
23
  import"./index-556ja8an.js";
24
24
  import"./index-gdd4jt6b.js";
25
25
  import"./index-zsrtt42s.js";
26
26
  import"./index-k3cxyk66.js";
27
27
  import"./index-8aabbfhv.js";
28
- import"./index-n48cwf1a.js";
28
+ import"./index-3qw0bsgr.js";
29
29
  import"./index-8fwhhayc.js";
30
30
  import"./index-q1exe2b3.js";
31
31
  import"./index-7sy3aa9m.js";
32
32
  import"./index-4905hd2m.js";
33
- import"./index-qmfzfh7m.js";
34
- import"./index-254xf5y6.js";
33
+ import"./index-ds7j4hth.js";
34
+ import"./index-6cgp4ska.js";
35
35
  import"./index-gprxjmm7.js";
36
36
  import"./index-n832052r.js";
37
- import"./index-zgq25ze6.js";
38
- import"./index-mpw32szm.js";
37
+ import"./index-1y0rggw0.js";
38
+ import"./index-1et48zgf.js";
39
39
  import"./index-rn0eq85g.js";
40
40
  import"./index-4rhhvd1a.js";
41
41
  import"./index-jqsfsqbx.js";
42
42
  import"./index-z6xqpmqg.js";
43
43
  import"./index-zjygnfay.js";
44
- import"./index-cfwdm1dx.js";
44
+ import"./index-4mr3ga48.js";
45
45
  import"./index-tq5s07ta.js";
46
46
  import"./index-rtry5xyf.js";
47
- import"./index-srd87kxc.js";
47
+ import"./index-etxy4vz9.js";
48
48
  import"./index-ae75rja9.js";
49
49
  import"./index-w7x7qxz2.js";
50
50
  import"./index-erfnw81g.js";
@@ -6,21 +6,21 @@ import {
6
6
  loadPlanJsonOnly,
7
7
  mergeDurableGateEntriesFromEvidence,
8
8
  readDurableGateEvidence
9
- } from "./index-awzwmx8p.js";
9
+ } from "./index-30yyh3m0.js";
10
10
  import"./index-134d35c1.js";
11
11
  import"./index-k92cagmt.js";
12
12
  import"./index-y8552snf.js";
13
13
  import"./index-9ss2m4rs.js";
14
- import"./index-0kqs2fbm.js";
15
- import"./index-q68a8h37.js";
14
+ import"./index-86tn52b3.js";
15
+ import"./index-e1feasna.js";
16
16
  import"./index-556ja8an.js";
17
17
  import"./index-zsrtt42s.js";
18
- import"./index-n48cwf1a.js";
18
+ import"./index-3qw0bsgr.js";
19
19
  import"./index-q1exe2b3.js";
20
20
  import"./index-gprxjmm7.js";
21
21
  import"./index-n832052r.js";
22
- import"./index-zgq25ze6.js";
23
- import"./index-mpw32szm.js";
22
+ import"./index-1y0rggw0.js";
23
+ import"./index-1et48zgf.js";
24
24
  import"./index-rn0eq85g.js";
25
25
  import"./index-4rhhvd1a.js";
26
26
  import"./index-jqsfsqbx.js";
@@ -17,9 +17,9 @@ import {
17
17
  reduceTaskWorkflowSnapshot,
18
18
  transitionTaskWorkflowEvidence,
19
19
  withTaskEvidenceTransaction
20
- } from "./index-0kqs2fbm.js";
20
+ } from "./index-86tn52b3.js";
21
21
  import"./index-556ja8an.js";
22
- import"./index-n48cwf1a.js";
22
+ import"./index-3qw0bsgr.js";
23
23
  import"./index-rn0eq85g.js";
24
24
  import"./index-4rhhvd1a.js";
25
25
  import"./index-jqsfsqbx.js";
@@ -1,51 +1,51 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailExplain
4
- } from "./index-a5rky7fv.js";
5
- import"./index-q7jv0c8e.js";
6
- import"./index-7317fvce.js";
7
- import"./index-zky3vt90.js";
8
- import"./index-awzwmx8p.js";
4
+ } from "./index-xq2effek.js";
5
+ import"./index-m7gss7zy.js";
6
+ import"./index-vdkywste.js";
7
+ import"./index-e3g0t29w.js";
8
+ import"./index-30yyh3m0.js";
9
9
  import"./index-134d35c1.js";
10
10
  import"./index-b6e016tv.js";
11
11
  import"./index-4q9vfav6.js";
12
12
  import"./index-k92cagmt.js";
13
13
  import"./index-y8552snf.js";
14
- import"./index-crt7xw29.js";
14
+ import"./index-64pk7525.js";
15
15
  import"./index-xmzmeknp.js";
16
16
  import"./index-c8s9a3zh.js";
17
17
  import"./index-9ss2m4rs.js";
18
- import"./index-0kqs2fbm.js";
18
+ import"./index-86tn52b3.js";
19
19
  import"./index-74hpm6sh.js";
20
- import"./index-91dz0zct.js";
21
- import"./index-x10a9cz6.js";
22
- import"./index-3fg8kx7n.js";
23
- import"./index-q68a8h37.js";
20
+ import"./index-9py8e0dk.js";
21
+ import"./index-vatqcjnd.js";
22
+ import"./index-a6rnw33a.js";
23
+ import"./index-e1feasna.js";
24
24
  import"./index-556ja8an.js";
25
25
  import"./index-gdd4jt6b.js";
26
26
  import"./index-zsrtt42s.js";
27
27
  import"./index-k3cxyk66.js";
28
28
  import"./index-8aabbfhv.js";
29
- import"./index-n48cwf1a.js";
29
+ import"./index-3qw0bsgr.js";
30
30
  import"./index-8fwhhayc.js";
31
31
  import"./index-q1exe2b3.js";
32
32
  import"./index-7sy3aa9m.js";
33
33
  import"./index-4905hd2m.js";
34
- import"./index-qmfzfh7m.js";
35
- import"./index-254xf5y6.js";
34
+ import"./index-ds7j4hth.js";
35
+ import"./index-6cgp4ska.js";
36
36
  import"./index-gprxjmm7.js";
37
37
  import"./index-n832052r.js";
38
- import"./index-zgq25ze6.js";
39
- import"./index-mpw32szm.js";
38
+ import"./index-1y0rggw0.js";
39
+ import"./index-1et48zgf.js";
40
40
  import"./index-rn0eq85g.js";
41
41
  import"./index-4rhhvd1a.js";
42
42
  import"./index-jqsfsqbx.js";
43
43
  import"./index-z6xqpmqg.js";
44
44
  import"./index-zjygnfay.js";
45
- import"./index-cfwdm1dx.js";
45
+ import"./index-4mr3ga48.js";
46
46
  import"./index-tq5s07ta.js";
47
47
  import"./index-rtry5xyf.js";
48
- import"./index-srd87kxc.js";
48
+ import"./index-etxy4vz9.js";
49
49
  import"./index-ae75rja9.js";
50
50
  import"./index-w7x7qxz2.js";
51
51
  import"./index-erfnw81g.js";
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailLog
4
- } from "./index-n2jk8ajv.js";
5
- import"./index-7317fvce.js";
4
+ } from "./index-x90gktjx.js";
5
+ import"./index-vdkywste.js";
6
6
  import"./index-556ja8an.js";
7
- import"./index-mpw32szm.js";
7
+ import"./index-1et48zgf.js";
8
8
  import"./index-jqsfsqbx.js";
9
9
  import"./index-z6xqpmqg.js";
10
10
  import"./index-zjygnfay.js";
@@ -7,52 +7,52 @@ import {
7
7
  isHiveEligible,
8
8
  promoteFromSwarm,
9
9
  promoteToHive
10
- } from "./index-q7jv0c8e.js";
11
- import"./index-7317fvce.js";
12
- import"./index-zky3vt90.js";
13
- import"./index-awzwmx8p.js";
10
+ } from "./index-m7gss7zy.js";
11
+ import"./index-vdkywste.js";
12
+ import"./index-e3g0t29w.js";
13
+ import"./index-30yyh3m0.js";
14
14
  import"./index-134d35c1.js";
15
15
  import"./index-b6e016tv.js";
16
16
  import"./index-4q9vfav6.js";
17
17
  import"./index-k92cagmt.js";
18
18
  import"./index-y8552snf.js";
19
- import"./index-crt7xw29.js";
19
+ import"./index-64pk7525.js";
20
20
  import"./index-xmzmeknp.js";
21
21
  import"./index-c8s9a3zh.js";
22
22
  import"./index-9ss2m4rs.js";
23
- import"./index-0kqs2fbm.js";
23
+ import"./index-86tn52b3.js";
24
24
  import"./index-74hpm6sh.js";
25
- import"./index-91dz0zct.js";
26
- import"./index-x10a9cz6.js";
27
- import"./index-3fg8kx7n.js";
28
- import"./index-q68a8h37.js";
25
+ import"./index-9py8e0dk.js";
26
+ import"./index-vatqcjnd.js";
27
+ import"./index-a6rnw33a.js";
28
+ import"./index-e1feasna.js";
29
29
  import"./index-556ja8an.js";
30
30
  import"./index-gdd4jt6b.js";
31
31
  import"./index-zsrtt42s.js";
32
32
  import"./index-k3cxyk66.js";
33
33
  import"./index-8aabbfhv.js";
34
- import"./index-n48cwf1a.js";
34
+ import"./index-3qw0bsgr.js";
35
35
  import"./index-8fwhhayc.js";
36
36
  import"./index-q1exe2b3.js";
37
37
  import"./index-7sy3aa9m.js";
38
38
  import"./index-4905hd2m.js";
39
- import"./index-qmfzfh7m.js";
40
- import"./index-254xf5y6.js";
39
+ import"./index-ds7j4hth.js";
40
+ import"./index-6cgp4ska.js";
41
41
  import"./index-gprxjmm7.js";
42
42
  import"./index-n832052r.js";
43
- import"./index-zgq25ze6.js";
44
- import"./index-mpw32szm.js";
43
+ import"./index-1y0rggw0.js";
44
+ import"./index-1et48zgf.js";
45
45
  import"./index-rn0eq85g.js";
46
46
  import"./index-4rhhvd1a.js";
47
47
  import"./index-jqsfsqbx.js";
48
48
  import"./index-z6xqpmqg.js";
49
49
  import"./index-zjygnfay.js";
50
- import"./index-cfwdm1dx.js";
50
+ import"./index-4mr3ga48.js";
51
51
  import"./index-tq5s07ta.js";
52
52
  import"./index-rtry5xyf.js";
53
53
  import {
54
54
  resolveHiveKnowledgePath
55
- } from "./index-srd87kxc.js";
55
+ } from "./index-etxy4vz9.js";
56
56
  import"./index-ae75rja9.js";
57
57
  import"./index-w7x7qxz2.js";
58
58
  import"./index-erfnw81g.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.143.1",
24
+ version: "7.143.3",
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",
@@ -6,7 +6,7 @@ import {
6
6
  PluginConfigSchema,
7
7
  init_schema,
8
8
  resolveExternalSkillsConfig
9
- } from "./index-mpw32szm.js";
9
+ } from "./index-1et48zgf.js";
10
10
  import {
11
11
  advisoryWarn,
12
12
  init_warning_buffer
@@ -15,7 +15,7 @@ import {
15
15
  readTaskEvidence,
16
16
  readTaskEvidenceRaw,
17
17
  sanitizeTaskId
18
- } from "./index-0kqs2fbm.js";
18
+ } from "./index-86tn52b3.js";
19
19
  import {
20
20
  LedgerStaleWriterError,
21
21
  appendLedgerEvent,
@@ -35,7 +35,7 @@ import {
35
35
  replayFromLedgerWithStatus,
36
36
  takeSnapshotEvent,
37
37
  takeSnapshotWithRetry
38
- } from "./index-q68a8h37.js";
38
+ } from "./index-e1feasna.js";
39
39
  import {
40
40
  getWorktreeMergeFailure
41
41
  } from "./index-zsrtt42s.js";
@@ -53,7 +53,7 @@ import {
53
53
  } from "./index-gprxjmm7.js";
54
54
  import {
55
55
  PlanSchema
56
- } from "./index-zgq25ze6.js";
56
+ } from "./index-1y0rggw0.js";
57
57
  import {
58
58
  readSwarmFileAsync,
59
59
  validateSwarmPath
@@ -86,7 +86,7 @@ var _internals = {
86
86
  symlinkSync: fs.symlinkSync
87
87
  },
88
88
  writeScopeToDisk: async (directory, taskId, files) => {
89
- const { writeScopeToDisk: realWrite } = await import("./scope-persistence-1fc2ncsk.js");
89
+ const { writeScopeToDisk: realWrite } = await import("./scope-persistence-m4ah4fay.js");
90
90
  return realWrite(directory, taskId, files);
91
91
  },
92
92
  writeLaneProfileToDisk: async (_worktreePath, _laneIndex, _envOverrides) => {
@@ -274,8 +274,12 @@ async function provisionWorktree(directory, id, sessionId, options) {
274
274
  }
275
275
  };
276
276
  const expectedPath = normalizeGitPath(worktreePath);
277
- const entries = [];
278
- let current = { path: "", branch: undefined };
277
+ let entries = [];
278
+ let current = {
279
+ path: "",
280
+ branch: undefined,
281
+ prunable: false
282
+ };
279
283
  if (listResult.exitCode !== 0) {
280
284
  const raw = listResult.stderr.trim() || listResult.stdout.trim();
281
285
  const bounded = raw.length > 500 ? `${raw.slice(0, 500)}... (truncated)` : raw;
@@ -283,22 +287,53 @@ async function provisionWorktree(directory, id, sessionId, options) {
283
287
  error: `worktree enumeration failed: ${bounded}`
284
288
  };
285
289
  }
286
- for (const rawLine of listResult.stdout.split(`
290
+ const parsePorcelain = (stdout) => {
291
+ const parsed = [];
292
+ let cur = {
293
+ path: "",
294
+ branch: undefined,
295
+ prunable: false
296
+ };
297
+ for (const rawLine of stdout.split(`
287
298
  `)) {
288
- const line = rawLine.trim();
289
- if (line.startsWith("worktree ")) {
290
- if (current.path)
291
- entries.push(current);
292
- current = {
293
- path: normalizeGitPath(line.slice("worktree ".length)),
294
- branch: undefined
299
+ const line = rawLine.trim();
300
+ if (line.startsWith("worktree ")) {
301
+ if (cur.path)
302
+ parsed.push(cur);
303
+ cur = {
304
+ path: normalizeGitPath(line.slice("worktree ".length)),
305
+ branch: undefined,
306
+ prunable: false
307
+ };
308
+ } else if (line.startsWith("branch ")) {
309
+ cur.branch = line.slice("branch ".length);
310
+ } else if (line === "prunable" || line.startsWith("prunable ")) {
311
+ cur.prunable = true;
312
+ }
313
+ }
314
+ if (cur.path)
315
+ parsed.push(cur);
316
+ return parsed;
317
+ };
318
+ entries = parsePorcelain(listResult.stdout);
319
+ const hasPrunableCollision = entries.some((e) => e.prunable && (e.path === expectedPath || e.branch === `refs/heads/${branchName}`));
320
+ if (hasPrunableCollision) {
321
+ const pruneResult = await runGit(["worktree", "prune"], directory);
322
+ if (pruneResult.exitCode !== 0) {
323
+ return {
324
+ error: `Failed to prune stale worktree registration: ${pruneResult.stderr.trim() || pruneResult.stdout.trim()}`
325
+ };
326
+ }
327
+ const relistResult = await runGit(["worktree", "list", "--porcelain"], directory);
328
+ if (relistResult.exitCode !== 0) {
329
+ const raw = relistResult.stderr.trim() || relistResult.stdout.trim();
330
+ const bounded = raw.length > 500 ? `${raw.slice(0, 500)}... (truncated)` : raw;
331
+ return {
332
+ error: `worktree enumeration failed after prune: ${bounded}`
295
333
  };
296
- } else if (line.startsWith("branch ")) {
297
- current.branch = line.slice("branch ".length);
298
334
  }
335
+ entries = parsePorcelain(relistResult.stdout);
299
336
  }
300
- if (current.path)
301
- entries.push(current);
302
337
  const expectedPathIsRegistered = entries.some((e) => e.path === expectedPath);
303
338
  const branchIsActiveAtExpectedPath = entries.some((e) => e.branch === `refs/heads/${branchName}` && e.path === expectedPath);
304
339
  const branchIsActiveElsewhere = entries.some((e) => e.branch === `refs/heads/${branchName}` && e.path !== expectedPath);
@@ -9,7 +9,7 @@ import {
9
9
  resolveSwarmKnowledgePath,
10
10
  resolveSwarmRejectedPath,
11
11
  transactKnowledge
12
- } from "./index-srd87kxc.js";
12
+ } from "./index-etxy4vz9.js";
13
13
  import {
14
14
  resolveKnowledgeStoreDir
15
15
  } from "./index-w7x7qxz2.js";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  readKnowledge,
4
4
  transactKnowledge
5
- } from "./index-srd87kxc.js";
5
+ } from "./index-etxy4vz9.js";
6
6
  import {
7
7
  resolveKnowledgeStoreDir
8
8
  } from "./index-w7x7qxz2.js";
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  init_loader,
4
4
  loadPluginConfigWithMeta
5
- } from "./index-zgq25ze6.js";
5
+ } from "./index-1y0rggw0.js";
6
6
  import {
7
7
  init_schema
8
- } from "./index-mpw32szm.js";
8
+ } from "./index-1et48zgf.js";
9
9
  import {
10
10
  DEFAULT_WORKTREE_ISOLATION_CONFIG,
11
11
  init_constants
@@ -6,7 +6,7 @@ import {
6
6
  import {
7
7
  autoCommitDirty,
8
8
  cleanUntrackedFiles
9
- } from "./index-n48cwf1a.js";
9
+ } from "./index-3qw0bsgr.js";
10
10
  import {
11
11
  validateSwarmPath
12
12
  } from "./index-rn0eq85g.js";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  effectiveRetrievalOutcomes,
4
4
  readAuthoritativeKnowledgeCounterRollups
5
- } from "./index-qmfzfh7m.js";
5
+ } from "./index-ds7j4hth.js";
6
6
  import {
7
7
  advisoryWarn,
8
8
  init_warning_buffer
@@ -10,14 +10,14 @@ import {
10
10
  import {
11
11
  ALLOWED_SKILL_PATH_PREFIXES,
12
12
  validateSkillPath
13
- } from "./index-cfwdm1dx.js";
13
+ } from "./index-4mr3ga48.js";
14
14
  import {
15
15
  computeOutcomeSignal,
16
16
  readKnowledge,
17
17
  resolveHiveKnowledgePath,
18
18
  resolveSwarmKnowledgePath,
19
19
  transactKnowledge
20
- } from "./index-srd87kxc.js";
20
+ } from "./index-etxy4vz9.js";
21
21
  import {
22
22
  init_knowledge_types,
23
23
  isActiveStatus
@@ -2,13 +2,13 @@
2
2
  import {
3
3
  computePlanStructureHash,
4
4
  derivePlanId
5
- } from "./index-q68a8h37.js";
5
+ } from "./index-e1feasna.js";
6
6
  import {
7
7
  unsafePathTextReason
8
8
  } from "./index-556ja8an.js";
9
9
  import {
10
10
  PlanSchema
11
- } from "./index-zgq25ze6.js";
11
+ } from "./index-1y0rggw0.js";
12
12
  import {
13
13
  assertProjectRoot
14
14
  } from "./index-k31en0ja.js";
@@ -1,11 +1,11 @@
1
1
  // @bun
2
2
  import {
3
3
  loadPluginConfigWithMeta
4
- } from "./index-zgq25ze6.js";
4
+ } from "./index-1y0rggw0.js";
5
5
  import {
6
6
  KnowledgeConfigSchema,
7
7
  init_schema
8
- } from "./index-mpw32szm.js";
8
+ } from "./index-1et48zgf.js";
9
9
  import {
10
10
  validateSwarmPath
11
11
  } from "./index-rn0eq85g.js";
@@ -2545,7 +2545,7 @@ async function applyKnowledgeVerdictFeedback(directory, options) {
2545
2545
  }
2546
2546
  let bumps = 0;
2547
2547
  if (deltas.length > 0) {
2548
- const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-sz8vat89.js");
2548
+ const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-647twyjp.js");
2549
2549
  bumps = await bumpKnowledgeConfidenceBatch(directory, deltas, options?.floorOptions);
2550
2550
  }
2551
2551
  return {
@@ -4,7 +4,7 @@ import {
4
4
  PlanSchema,
5
5
  TaskStatusSchema,
6
6
  init_loader
7
- } from "./index-zgq25ze6.js";
7
+ } from "./index-1y0rggw0.js";
8
8
  import {
9
9
  assertProjectRoot,
10
10
  withEvidenceLock
@@ -6,7 +6,7 @@ import {
6
6
  PluginConfigSchema,
7
7
  init_schema,
8
8
  stripKnownSwarmPrefix
9
- } from "./index-mpw32szm.js";
9
+ } from "./index-1et48zgf.js";
10
10
  import {
11
11
  ALL_AGENT_NAMES,
12
12
  init_constants
@@ -709,7 +709,7 @@ async function applyConfidenceFloorAction(directory, touched, options) {
709
709
  const {
710
710
  readAuthoritativeKnowledgeCounterRollups,
711
711
  effectiveRetrievalOutcomes
712
- } = await import("./knowledge-events-pz58s2r1.js");
712
+ } = await import("./knowledge-events-yjmkrrv2.js");
713
713
  const rollups = await readAuthoritativeKnowledgeCounterRollups(directory);
714
714
  const flagIds = new Set;
715
715
  for (const e of atFloor) {
@@ -776,11 +776,11 @@ async function applyConfidenceFloorAction(directory, touched, options) {
776
776
  });
777
777
  }
778
778
  if (action === "quarantine" && toQuarantine.length > 0) {
779
- const { quarantineEntry } = await import("./knowledge-validator-w5vmvf0a.js");
780
- const { KnowledgeConfigSchema } = await import("./schema-p74hnrfz.js");
779
+ const { quarantineEntry } = await import("./knowledge-validator-0nsax3n6.js");
780
+ const { KnowledgeConfigSchema } = await import("./schema-mzh2tam4.js");
781
781
  let config;
782
782
  try {
783
- const { loadPluginConfigWithMeta } = await import("./index-cz9tc0h8.js");
783
+ const { loadPluginConfigWithMeta } = await import("./index-qykq6vge.js");
784
784
  const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
785
785
  config = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
786
786
  } catch {