opencode-swarm 7.141.2 → 7.142.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.
Files changed (78) hide show
  1. package/dist/cli/{config-doctor-weqs97sa.js → config-doctor-2a3qmp5p.js} +2 -2
  2. package/dist/cli/{core-zg7fqfsm.js → core-h9z49ant.js} +1 -1
  3. package/dist/cli/{curation-policy-j1fbc3ry.js → curation-policy-pkb2eeb1.js} +6 -6
  4. package/dist/cli/curator-drift-49p3jnte.js +1 -1
  5. package/dist/cli/{curator-llm-factory-8p86mgye.js → curator-llm-factory-9fr243kj.js} +29 -29
  6. package/dist/cli/{curator-v1tnrt93.js → curator-mtz194wy.js} +29 -29
  7. package/dist/cli/{evidence-summary-service-a4w0yc8h.js → evidence-summary-service-fgckng0a.js} +13 -11
  8. package/dist/cli/{gate-evidence-rt9034ft.js → gate-evidence-ppna7em4.js} +9 -5
  9. package/dist/cli/{guardrail-explain-8yrznk98.js → guardrail-explain-ejdvvnjz.js} +30 -30
  10. package/dist/cli/{guardrail-log-7hj4x9yt.js → guardrail-log-adjs25ye.js} +4 -4
  11. package/dist/cli/{hive-promoter-6zcnyh1j.js → hive-promoter-jejme31e.js} +29 -29
  12. package/dist/cli/{index-vts5e84g.js → index-0r4qs243.js} +31 -31
  13. package/dist/cli/index-2mb5y2w1.js +1372 -0
  14. package/dist/cli/{index-nse60anv.js → index-7c4bxgdh.js} +1 -1
  15. package/dist/cli/{index-qskz8j2z.js → index-82m5kwtd.js} +1 -1
  16. package/dist/cli/{index-6bp1jecx.js → index-9kf3mj08.js} +4 -4
  17. package/dist/cli/{index-szrcxvr7.js → index-9wmx9ca8.js} +6 -6
  18. package/dist/cli/{index-76651erq.js → index-ajfa2wmj.js} +9 -9
  19. package/dist/cli/{index-jpt07f2k.js → index-bb4pcn58.js} +2 -2
  20. package/dist/cli/{index-qa50yyeh.js → index-bkkxxwcd.js} +1 -1
  21. package/dist/cli/{index-c2hczjhp.js → index-erfnw81g.js} +3 -3
  22. package/dist/cli/{index-why8n7cr.js → index-gtkk5rx7.js} +137 -36
  23. package/dist/cli/{index-73sxchez.js → index-h7ye3bzp.js} +4127 -2558
  24. package/dist/cli/{index-hwxcdrv9.js → index-j02ez59y.js} +9 -9
  25. package/dist/cli/{index-h3vk67wp.js → index-k1xsjzm3.js} +3 -3
  26. package/dist/cli/{index-zbj3yrrd.js → index-k31en0ja.js} +3 -3
  27. package/dist/cli/{index-q4vaar2b.js → index-k92cagmt.js} +2 -2
  28. package/dist/cli/{index-p5y72gtj.js → index-kbshtwha.js} +3 -3
  29. package/dist/cli/{index-r6pdts5c.js → index-ktazgjqw.js} +2 -2
  30. package/dist/cli/{index-mxtt4x8r.js → index-myav90y6.js} +212 -10
  31. package/dist/cli/{index-kkn2jxda.js → index-rthq1a6w.js} +1 -1
  32. package/dist/cli/{index-9d4gck4e.js → index-s2rcz51a.js} +59 -35
  33. package/dist/cli/{index-y6k6x197.js → index-sdqtecsd.js} +1 -1
  34. package/dist/cli/{index-v250345n.js → index-tq5s07ta.js} +1 -1
  35. package/dist/cli/{index-zf5nkkdd.js → index-vefjxxmb.js} +1 -1
  36. package/dist/cli/{index-bxjhn3t3.js → index-vy11zjvh.js} +2 -2
  37. package/dist/cli/{index-kq5p3nm3.js → index-w7x7qxz2.js} +1 -1
  38. package/dist/cli/{index-mqqmant3.js → index-we279je2.js} +1 -1
  39. package/dist/cli/{index-xx0q37xb.js → index-xah70t2t.js} +1 -1
  40. package/dist/cli/{index-aqzvjhb7.js → index-xfhe29z3.js} +5 -5
  41. package/dist/cli/{index-f1hsrgw1.js → index-y9h2vqf6.js} +1 -1
  42. package/dist/cli/index.js +42 -29
  43. package/dist/cli/{knowledge-escalator-xjkbek46.js → knowledge-escalator-0b80ryka.js} +12 -12
  44. package/dist/cli/{knowledge-events-hsdx5prn.js → knowledge-events-8x2wt562.js} +10 -10
  45. package/dist/cli/{knowledge-link-x86ebng8.js → knowledge-link-fn5j3r4q.js} +5 -5
  46. package/dist/cli/{knowledge-store-vt059r81.js → knowledge-store-d0xj6wht.js} +6 -6
  47. package/dist/cli/{knowledge-validator-jr5694jb.js → knowledge-validator-ewfj679a.js} +8 -8
  48. package/dist/cli/{pending-delegations-7xsagjy5.js → pending-delegations-0hb97ps1.js} +4 -4
  49. package/dist/cli/{pr-subscriptions-r6cdsa3t.js → pr-subscriptions-b63t252j.js} +4 -4
  50. package/dist/cli/{runner-nm3baddf.js → runner-hrg7h2h4.js} +6 -6
  51. package/dist/cli/{scan-cursor-6nrkcfbr.js → scan-cursor-hfyz7zpw.js} +7 -7
  52. package/dist/cli/{schema-f6pt0zjy.js → schema-ney3c685.js} +1 -1
  53. package/dist/cli/{scope-persistence-jc0mtp7g.js → scope-persistence-dbfgs7gh.js} +6 -6
  54. package/dist/cli/{skill-generator-4vp33gjb.js → skill-generator-p651jex5.js} +14 -14
  55. package/dist/cli/{telemetry-zex3zv3v.js → telemetry-xyfb5vm8.js} +1 -1
  56. package/dist/cli/{worktree-collision-ownership-n41qw3n8.js → worktree-collision-ownership-ymdxetnn.js} +4 -4
  57. package/dist/cli/{worktree-isolation-a3hkz665.js → worktree-isolation-513vx61s.js} +29 -29
  58. package/dist/commands/close.d.ts +20 -2
  59. package/dist/commands/hive-quarantine.d.ts +23 -0
  60. package/dist/commands/registry.d.ts +9 -0
  61. package/dist/gate-evidence.d.ts +24 -1
  62. package/dist/hooks/hive-transaction.d.ts +41 -0
  63. package/dist/index.js +491 -478
  64. package/dist/knowledge/hive-quarantine.d.ts +156 -0
  65. package/dist/observability/catalog.d.ts +2 -2
  66. package/dist/plan/ledger.d.ts +31 -1
  67. package/dist/plan/manager.d.ts +1 -0
  68. package/dist/state.d.ts +1 -1
  69. package/dist/telemetry.d.ts +1 -1
  70. package/dist/workflow/close-terminal.d.ts +22 -0
  71. package/dist/workflow/coder-settlement.d.ts +0 -23
  72. package/dist/workflow/task-repair.d.ts +1 -0
  73. package/dist/workflow/task-terminal.d.ts +18 -23
  74. package/dist/workflow/workflow-wal-file.d.ts +20 -0
  75. package/dist/workflow/workflow-wal-schema.d.ts +67 -0
  76. package/dist/worktree/merge.d.ts +17 -0
  77. package/package.json +1 -1
  78. package/dist/cli/index-3d13jkzq.js +0 -623
@@ -12,14 +12,14 @@ import {
12
12
  resolveLinkDir,
13
13
  sanitizeLinkId,
14
14
  writeLinkPointer
15
- } from "./index-kq5p3nm3.js";
16
- import"./index-c2hczjhp.js";
17
- import"./index-zbj3yrrd.js";
18
- import"./index-7g4c7s5r.js";
15
+ } from "./index-w7x7qxz2.js";
16
+ import"./index-erfnw81g.js";
19
17
  import"./index-ed5ykebp.js";
18
+ import"./index-k31en0ja.js";
19
+ import"./index-7g4c7s5r.js";
20
+ import"./index-s2rcz51a.js";
20
21
  import"./index-4nt52yr9.js";
21
22
  import"./index-zgwm4ryv.js";
22
- import"./index-9d4gck4e.js";
23
23
  import"./index-bpmtbmy9.js";
24
24
  import"./index-a76rekgs.js";
25
25
  export {
@@ -41,19 +41,19 @@ import {
41
41
  transactKnowledge,
42
42
  transactKnowledgeWithCas,
43
43
  wordBigrams
44
- } from "./index-hwxcdrv9.js";
44
+ } from "./index-j02ez59y.js";
45
45
  import {
46
46
  resolveHiveDataDir
47
47
  } from "./index-ae75rja9.js";
48
- import"./index-kq5p3nm3.js";
49
- import"./index-c2hczjhp.js";
50
- import"./index-zbj3yrrd.js";
51
- import"./index-7g4c7s5r.js";
48
+ import"./index-w7x7qxz2.js";
49
+ import"./index-erfnw81g.js";
52
50
  import"./index-ed5ykebp.js";
51
+ import"./index-k31en0ja.js";
52
+ import"./index-7g4c7s5r.js";
53
+ import"./index-s2rcz51a.js";
53
54
  import"./index-4nt52yr9.js";
54
55
  import"./index-zgwm4ryv.js";
55
56
  import"./index-bk5tah7q.js";
56
- import"./index-9d4gck4e.js";
57
57
  import"./index-bpmtbmy9.js";
58
58
  import"./index-a76rekgs.js";
59
59
  export {
@@ -23,20 +23,20 @@ import {
23
23
  validateLesson,
24
24
  validateSkillCandidatePath,
25
25
  validateSkillPath
26
- } from "./index-6bp1jecx.js";
27
- import"./index-v250345n.js";
26
+ } from "./index-9kf3mj08.js";
27
+ import"./index-tq5s07ta.js";
28
28
  import"./index-rtry5xyf.js";
29
- import"./index-hwxcdrv9.js";
29
+ import"./index-j02ez59y.js";
30
30
  import"./index-ae75rja9.js";
31
- import"./index-kq5p3nm3.js";
32
- import"./index-c2hczjhp.js";
33
- import"./index-zbj3yrrd.js";
34
- import"./index-7g4c7s5r.js";
31
+ import"./index-w7x7qxz2.js";
32
+ import"./index-erfnw81g.js";
35
33
  import"./index-ed5ykebp.js";
34
+ import"./index-k31en0ja.js";
35
+ import"./index-7g4c7s5r.js";
36
+ import"./index-s2rcz51a.js";
36
37
  import"./index-4nt52yr9.js";
37
38
  import"./index-zgwm4ryv.js";
38
39
  import"./index-bk5tah7q.js";
39
- import"./index-9d4gck4e.js";
40
40
  import"./index-bpmtbmy9.js";
41
41
  import"./index-a76rekgs.js";
42
42
  export {
@@ -41,16 +41,16 @@ import {
41
41
  sweepStaleDelegations,
42
42
  updateCoderSettlement,
43
43
  writeDelegationFallback
44
- } from "./index-nse60anv.js";
44
+ } from "./index-7c4bxgdh.js";
45
45
  import"./index-k46me75h.js";
46
46
  import"./index-ee3x66a5.js";
47
- import"./index-zbj3yrrd.js";
48
- import"./index-7g4c7s5r.js";
49
47
  import"./index-ed5ykebp.js";
48
+ import"./index-k31en0ja.js";
49
+ import"./index-7g4c7s5r.js";
50
+ import"./index-s2rcz51a.js";
50
51
  import"./index-4nt52yr9.js";
51
52
  import"./index-zgwm4ryv.js";
52
53
  import"./index-zjygnfay.js";
53
- import"./index-9d4gck4e.js";
54
54
  import"./index-bpmtbmy9.js";
55
55
  import"./index-a76rekgs.js";
56
56
  export {
@@ -9,16 +9,16 @@ import {
9
9
  sweepStale,
10
10
  unsubscribe,
11
11
  updateSnapshot
12
- } from "./index-qskz8j2z.js";
12
+ } from "./index-82m5kwtd.js";
13
13
  import"./index-k46me75h.js";
14
14
  import"./index-ee3x66a5.js";
15
- import"./index-zbj3yrrd.js";
16
- import"./index-7g4c7s5r.js";
17
15
  import"./index-ed5ykebp.js";
16
+ import"./index-k31en0ja.js";
17
+ import"./index-7g4c7s5r.js";
18
+ import"./index-s2rcz51a.js";
18
19
  import"./index-4nt52yr9.js";
19
20
  import"./index-zgwm4ryv.js";
20
21
  import"./index-zjygnfay.js";
21
- import"./index-9d4gck4e.js";
22
22
  import"./index-bpmtbmy9.js";
23
23
  import"./index-a76rekgs.js";
24
24
  export {
@@ -3,16 +3,16 @@ import {
3
3
  _internals,
4
4
  createModelEvaluationExecutor,
5
5
  runEvaluation
6
- } from "./index-f1hsrgw1.js";
7
- import"./index-q4vaar2b.js";
6
+ } from "./index-y9h2vqf6.js";
7
+ import"./index-k92cagmt.js";
8
8
  import"./index-y8552snf.js";
9
- import"./index-c2hczjhp.js";
10
- import"./index-zbj3yrrd.js";
11
- import"./index-7g4c7s5r.js";
9
+ import"./index-erfnw81g.js";
12
10
  import"./index-ed5ykebp.js";
11
+ import"./index-k31en0ja.js";
12
+ import"./index-7g4c7s5r.js";
13
+ import"./index-s2rcz51a.js";
13
14
  import"./index-4nt52yr9.js";
14
15
  import"./index-zgwm4ryv.js";
15
- import"./index-9d4gck4e.js";
16
16
  import"./index-bpmtbmy9.js";
17
17
  import"./index-a76rekgs.js";
18
18
  export {
@@ -4,18 +4,18 @@ import {
4
4
  alreadyCuratedThisGeneration,
5
5
  claimNextScanBatch,
6
6
  getScanStatus
7
- } from "./index-bxjhn3t3.js";
8
- import"./index-hwxcdrv9.js";
7
+ } from "./index-vy11zjvh.js";
8
+ import"./index-j02ez59y.js";
9
9
  import"./index-ae75rja9.js";
10
- import"./index-kq5p3nm3.js";
11
- import"./index-c2hczjhp.js";
12
- import"./index-zbj3yrrd.js";
13
- import"./index-7g4c7s5r.js";
10
+ import"./index-w7x7qxz2.js";
11
+ import"./index-erfnw81g.js";
14
12
  import"./index-ed5ykebp.js";
13
+ import"./index-k31en0ja.js";
14
+ import"./index-7g4c7s5r.js";
15
+ import"./index-s2rcz51a.js";
15
16
  import"./index-4nt52yr9.js";
16
17
  import"./index-zgwm4ryv.js";
17
18
  import"./index-bk5tah7q.js";
18
- import"./index-9d4gck4e.js";
19
19
  import"./index-bpmtbmy9.js";
20
20
  import"./index-a76rekgs.js";
21
21
  export {
@@ -96,7 +96,7 @@ import {
96
96
  resolveGeneratedAgentRole,
97
97
  resolveGuardrailsConfig,
98
98
  stripKnownSwarmPrefix
99
- } from "./index-mqqmant3.js";
99
+ } from "./index-we279je2.js";
100
100
  import"./index-jqsfsqbx.js";
101
101
  import"./index-zjygnfay.js";
102
102
  import"./index-bk5tah7q.js";
@@ -23,20 +23,20 @@ import {
23
23
  tombstoneScopeBinding,
24
24
  writeScopeBindingToDisk,
25
25
  writeScopeToDisk
26
- } from "./index-szrcxvr7.js";
26
+ } from "./index-9wmx9ca8.js";
27
+ import"./index-myav90y6.js";
27
28
  import"./index-556ja8an.js";
28
- import"./index-mxtt4x8r.js";
29
- import"./index-zbj3yrrd.js";
29
+ import"./index-k31en0ja.js";
30
30
  import"./index-7g4c7s5r.js";
31
+ import"./index-s2rcz51a.js";
31
32
  import"./index-4nt52yr9.js";
32
- import"./index-y6k6x197.js";
33
+ import"./index-sdqtecsd.js";
33
34
  import"./index-4rhhvd1a.js";
34
35
  import"./index-zgwm4ryv.js";
35
- import"./index-mqqmant3.js";
36
+ import"./index-we279je2.js";
36
37
  import"./index-jqsfsqbx.js";
37
38
  import"./index-zjygnfay.js";
38
39
  import"./index-bk5tah7q.js";
39
- import"./index-9d4gck4e.js";
40
40
  import"./index-bpmtbmy9.js";
41
41
  import"./index-a76rekgs.js";
42
42
  export {
@@ -33,32 +33,32 @@ import {
33
33
  sanitizeSlug,
34
34
  selectCandidateEntries,
35
35
  writeEvalStub
36
- } from "./index-h3vk67wp.js";
37
- import"./index-76651erq.js";
36
+ } from "./index-k1xsjzm3.js";
37
+ import"./index-ajfa2wmj.js";
38
38
  import"./index-k46me75h.js";
39
39
  import"./index-ee3x66a5.js";
40
- import"./index-6bp1jecx.js";
41
- import"./index-v250345n.js";
40
+ import"./index-9kf3mj08.js";
41
+ import"./index-tq5s07ta.js";
42
42
  import"./index-rtry5xyf.js";
43
- import"./index-hwxcdrv9.js";
43
+ import"./index-j02ez59y.js";
44
44
  import"./index-ae75rja9.js";
45
- import"./index-kq5p3nm3.js";
46
- import"./index-c2hczjhp.js";
47
- import"./index-zbj3yrrd.js";
48
- import"./index-7g4c7s5r.js";
45
+ import"./index-w7x7qxz2.js";
46
+ import"./index-erfnw81g.js";
49
47
  import"./index-ed5ykebp.js";
50
- import"./index-4nt52yr9.js";
51
- import"./index-r6pdts5c.js";
48
+ import"./index-ktazgjqw.js";
52
49
  import"./index-gprxjmm7.js";
53
50
  import"./index-n832052r.js";
54
- import"./index-y6k6x197.js";
51
+ import"./index-k31en0ja.js";
52
+ import"./index-7g4c7s5r.js";
53
+ import"./index-s2rcz51a.js";
54
+ import"./index-4nt52yr9.js";
55
+ import"./index-sdqtecsd.js";
55
56
  import"./index-4rhhvd1a.js";
56
57
  import"./index-zgwm4ryv.js";
57
- import"./index-mqqmant3.js";
58
+ import"./index-we279je2.js";
58
59
  import"./index-jqsfsqbx.js";
59
60
  import"./index-zjygnfay.js";
60
61
  import"./index-bk5tah7q.js";
61
- import"./index-9d4gck4e.js";
62
62
  import"./index-bpmtbmy9.js";
63
63
  import"./index-a76rekgs.js";
64
64
  export {
@@ -13,7 +13,7 @@ import {
13
13
  startHeartbeatTracking,
14
14
  stopHeartbeatTracking,
15
15
  telemetry
16
- } from "./index-9d4gck4e.js";
16
+ } from "./index-s2rcz51a.js";
17
17
  import"./index-bpmtbmy9.js";
18
18
  import"./index-a76rekgs.js";
19
19
  export {
@@ -10,18 +10,18 @@ import {
10
10
  import {
11
11
  scanDelegationFallbacksForRecovery,
12
12
  scanDelegationsForRecovery
13
- } from "./index-nse60anv.js";
13
+ } from "./index-7c4bxgdh.js";
14
14
  import"./index-k46me75h.js";
15
15
  import"./index-ee3x66a5.js";
16
- import"./index-zbj3yrrd.js";
17
- import"./index-7g4c7s5r.js";
18
16
  import"./index-ed5ykebp.js";
17
+ import"./index-k31en0ja.js";
18
+ import"./index-7g4c7s5r.js";
19
+ import"./index-s2rcz51a.js";
19
20
  import {
20
21
  bunSpawn
21
22
  } from "./index-4nt52yr9.js";
22
23
  import"./index-zgwm4ryv.js";
23
24
  import"./index-zjygnfay.js";
24
- import"./index-9d4gck4e.js";
25
25
  import"./index-bpmtbmy9.js";
26
26
  import"./index-a76rekgs.js";
27
27
 
@@ -20,61 +20,61 @@ import {
20
20
  sanitizeWorktreeTaskId,
21
21
  standardWorktreeByCallID,
22
22
  standardWorktreeSerializationSessions
23
- } from "./index-73sxchez.js";
23
+ } from "./index-h7ye3bzp.js";
24
24
  import"./index-4905hd2m.js";
25
25
  import"./index-ebwznsfy.js";
26
- import"./index-f1hsrgw1.js";
27
- import"./index-kkn2jxda.js";
26
+ import"./index-y9h2vqf6.js";
27
+ import"./index-rthq1a6w.js";
28
28
  import"./index-c8s9a3zh.js";
29
- import"./index-xx0q37xb.js";
30
- import"./index-why8n7cr.js";
29
+ import"./index-xah70t2t.js";
30
+ import"./index-gtkk5rx7.js";
31
31
  import"./index-134d35c1.js";
32
- import"./index-q4vaar2b.js";
32
+ import"./index-k92cagmt.js";
33
33
  import"./index-y8552snf.js";
34
34
  import"./index-9ss2m4rs.js";
35
35
  import"./index-74hpm6sh.js";
36
- import"./index-h3vk67wp.js";
37
- import"./index-aqzvjhb7.js";
38
- import"./index-bxjhn3t3.js";
36
+ import"./index-k1xsjzm3.js";
37
+ import"./index-xfhe29z3.js";
38
+ import"./index-vy11zjvh.js";
39
39
  import"./index-xmzmeknp.js";
40
- import"./index-qskz8j2z.js";
41
- import"./index-szrcxvr7.js";
42
- import"./index-556ja8an.js";
43
- import"./index-mxtt4x8r.js";
40
+ import"./index-82m5kwtd.js";
44
41
  import"./index-zsrtt42s.js";
45
- import"./index-qa50yyeh.js";
46
42
  import"./index-qwm6vdyv.js";
47
- import"./index-3d13jkzq.js";
48
- import"./index-nse60anv.js";
43
+ import"./index-2mb5y2w1.js";
44
+ import"./index-bkkxxwcd.js";
45
+ import"./index-7c4bxgdh.js";
49
46
  import"./index-8fwhhayc.js";
50
47
  import"./index-q1exe2b3.js";
51
- import"./index-76651erq.js";
48
+ import"./index-ajfa2wmj.js";
52
49
  import"./index-k46me75h.js";
53
50
  import"./index-ee3x66a5.js";
54
- import"./index-6bp1jecx.js";
55
- import"./index-v250345n.js";
51
+ import"./index-9kf3mj08.js";
52
+ import"./index-tq5s07ta.js";
56
53
  import"./index-rtry5xyf.js";
57
- import"./index-hwxcdrv9.js";
54
+ import"./index-j02ez59y.js";
58
55
  import"./index-ae75rja9.js";
59
- import"./index-kq5p3nm3.js";
60
- import"./index-c2hczjhp.js";
61
- import"./index-zbj3yrrd.js";
62
- import"./index-7g4c7s5r.js";
56
+ import"./index-w7x7qxz2.js";
57
+ import"./index-erfnw81g.js";
63
58
  import"./index-ed5ykebp.js";
64
- import"./index-4nt52yr9.js";
65
59
  import {
66
60
  resolveWorktreeIsolationConfig
67
- } from "./index-r6pdts5c.js";
61
+ } from "./index-ktazgjqw.js";
68
62
  import"./index-gprxjmm7.js";
69
63
  import"./index-n832052r.js";
70
- import"./index-y6k6x197.js";
64
+ import"./index-9wmx9ca8.js";
65
+ import"./index-myav90y6.js";
66
+ import"./index-556ja8an.js";
67
+ import"./index-k31en0ja.js";
68
+ import"./index-7g4c7s5r.js";
69
+ import"./index-s2rcz51a.js";
70
+ import"./index-4nt52yr9.js";
71
+ import"./index-sdqtecsd.js";
71
72
  import"./index-4rhhvd1a.js";
72
73
  import"./index-zgwm4ryv.js";
73
- import"./index-mqqmant3.js";
74
+ import"./index-we279je2.js";
74
75
  import"./index-jqsfsqbx.js";
75
76
  import"./index-zjygnfay.js";
76
77
  import"./index-bk5tah7q.js";
77
- import"./index-9d4gck4e.js";
78
78
  import"./index-bpmtbmy9.js";
79
79
  import"./index-a76rekgs.js";
80
80
  export {
@@ -1,4 +1,5 @@
1
1
  import { loadPluginConfigWithMeta } from '../config';
2
+ import type { Plan } from '../config/plan-schema';
2
3
  import { type KnowledgeConfig, type PluginConfig } from '../config/schema';
3
4
  import { archiveEvidence } from '../evidence/manager';
4
5
  import { getGitRepositoryStatus, resetToMainAfterMerge, resetToRemoteBranch } from '../git/branch';
@@ -15,9 +16,9 @@ export declare const closeReceiptLifecycleInternals: {
15
16
  reconcilePhaseClose: typeof reconcilePhaseClose;
16
17
  };
17
18
  import { runFinalizeRewardSweep } from '../memory/finalize-reward-sweep';
18
- import { closePlanTerminalState } from '../plan/manager';
19
19
  import { type SessionReflectionResult } from '../services/session-reflection';
20
20
  import { endAgentSession, resetSwarmStatePreservingSingletons } from '../state';
21
+ import { type CloseTerminalResult } from '../workflow/close-terminal.js';
21
22
  import { type SqliteRowCounts } from './archive-sqlite';
22
23
  interface PlanPhase {
23
24
  id: number;
@@ -33,6 +34,22 @@ interface PlanData {
33
34
  title: string;
34
35
  phases: PlanPhase[];
35
36
  }
37
+ /**
38
+ * Close-command wrapper around the exact-task terminal reconciliation service.
39
+ *
40
+ * Deliberately NOT named `closePlanTerminalState`: `src/plan/manager.ts` exports a
41
+ * distinct function by that name (ledger-first phase/projection persistence), which
42
+ * `reconcileCloseTerminalState` itself calls downstream. Keeping the two identifiers
43
+ * distinct avoids a same-name collision across close.ts / close-terminal.ts /
44
+ * plan/manager.ts. The `_internals` key below stays `closePlanTerminalState` so the
45
+ * existing test seam is unchanged.
46
+ */
47
+ declare function reconcileCloseTerminalStateForPlan(directory: string, targetPlan: Plan, options: {
48
+ actor: string;
49
+ requestedClosedTaskIds: string[];
50
+ closedPhaseIds: number[];
51
+ originalStatuses?: Map<string, string>;
52
+ }): Promise<CloseTerminalResult | undefined>;
36
53
  interface CloseCommandOptions {
37
54
  sessionID?: string;
38
55
  skillReviewTimeoutMs?: number;
@@ -113,6 +130,7 @@ export interface CloseStageContext {
113
130
  closedPhaseIds: number[];
114
131
  closedTaskIds: string[];
115
132
  };
133
+ terminalizationError?: string;
116
134
  archiveResult: string;
117
135
  archivedFileCount: number;
118
136
  archivedActiveStateFiles: Set<string>;
@@ -274,7 +292,7 @@ export declare const _internals: {
274
292
  runAlignStage: typeof runAlignStage;
275
293
  runFinalizeDryRun: typeof runFinalizeDryRun;
276
294
  archiveEvidence: typeof archiveEvidence;
277
- closePlanTerminalState: typeof closePlanTerminalState;
295
+ closePlanTerminalState: typeof reconcileCloseTerminalStateForPlan;
278
296
  endAgentSession: typeof endAgentSession;
279
297
  flushAndDrainTelemetry: () => Promise<void>;
280
298
  };
@@ -0,0 +1,23 @@
1
+ /**
2
+ * `/swarm knowledge hive-quarantine` — human-only knowledge maintenance for the
3
+ * machine-global hive store (issue #2033).
4
+ *
5
+ * Flow (operator-driven; no `--yes`/`--force` flag exists — the only
6
+ * non-interactive escape is the explicit SWARM_ALLOW_HUMAN_ONLY_CLI=1 opt-in):
7
+ * preview <id>[,<id>…] read-only snapshot + confirmation token
8
+ * commit --token <t> [--reason r] validated backup → exact-ID quarantine → verify
9
+ * rollback --token <t12> | --latest idempotent byte-exact restore from the manifest
10
+ * status read-only list of quarantine backups
11
+ *
12
+ * Layered gates (PR #2200 review): `toolPolicy: 'human-only'` refuses agents at
13
+ * `swarm_command` classification and the chat-fallback policy blocks agent-typed
14
+ * usage; the shell guardrail blocks direct, quoted, path-qualified, and
15
+ * shell-variable-indirected CLI invocations from agent shells; the CLI entry
16
+ * itself refuses human-only commands from non-interactive shells (aliases
17
+ * resolved to their canonical policy). The confirmation token is HMAC-bound to
18
+ * a per-install secret, so it cannot be minted from public store contents
19
+ * alone. These layers are defense-in-depth with an honest audit trail — local
20
+ * single-user tooling cannot be tamper-proof against the owning user, and the
21
+ * docs make no absolute claim otherwise.
22
+ */
23
+ export declare function handleKnowledgeHiveQuarantineCommand(_directory: string, args: string[]): Promise<string>;
@@ -910,6 +910,15 @@ export declare const COMMAND_REGISTRY: {
910
910
  readonly args: "<entry-id>";
911
911
  readonly category: "utility";
912
912
  };
913
+ readonly 'knowledge hive-quarantine': {
914
+ readonly handler: (ctx: CommandContext) => Promise<string>;
915
+ readonly description: "Human-only exact-ID quarantine of hive-store entries with backup and rollback";
916
+ readonly subcommandOf: "knowledge";
917
+ readonly details: string;
918
+ readonly args: "<preview|commit|rollback|status> ...";
919
+ readonly category: "utility";
920
+ readonly toolPolicy: "human-only";
921
+ };
913
922
  readonly 'knowledge unactionable': {
914
923
  readonly handler: (ctx: CommandContext) => Promise<string>;
915
924
  readonly description: "List unactionable knowledge entries pending hardening";
@@ -22,7 +22,7 @@ export interface GateEvidence {
22
22
  agent: string;
23
23
  }
24
24
  export declare const TASK_WORKFLOW_SCHEMA_MARKER: "exact-task-v1";
25
- declare const TASK_WORKFLOW_OUTCOMES: readonly ["none", "dispatch_attempted", "dispatch_no_mutation", "accepted_mutation", "accepted_mutation_failed", "stage_a_passed", "stage_a_failed", "stage_b_completed", "stage_b_failed", "gate_recorded", "task_completed", "task_blocked", "repair_idle"];
25
+ declare const TASK_WORKFLOW_OUTCOMES: readonly ["none", "dispatch_attempted", "dispatch_no_mutation", "accepted_mutation", "accepted_mutation_failed", "stage_a_passed", "stage_a_failed", "stage_b_completed", "stage_b_failed", "gate_recorded", "task_completed", "task_blocked", "task_closed", "repair_idle"];
26
26
  export type TaskWorkflowTransitionOutcome = (typeof TASK_WORKFLOW_OUTCOMES)[number];
27
27
  export interface TaskWorkflowMetadata {
28
28
  schema: typeof TASK_WORKFLOW_SCHEMA_MARKER;
@@ -35,6 +35,18 @@ export interface TaskWorkflowMetadata {
35
35
  lastOutcome: TaskWorkflowTransitionOutcome;
36
36
  lastTransitionId: string | null;
37
37
  updatedAt: string;
38
+ /**
39
+ * True when this task reached `complete` via a QA-exempt forced completion
40
+ * (`/swarm close` reconciling a task that plan.json already marked completed but
41
+ * for which no authoritative workflow evidence existed) rather than by passing
42
+ * the normal Stage B gates.
43
+ *
44
+ * Without this the durable evidence file is byte-identical for a genuinely
45
+ * QA'd completion and a forced one, so no consumer can tell them apart. Absent
46
+ * on evidence written before this field existed, which reads as "not forced" —
47
+ * the same answer those files would have given anyway.
48
+ */
49
+ forcedCompletion?: boolean;
38
50
  }
39
51
  export interface TaskWorkflowSnapshot extends TaskWorkflowMetadata {
40
52
  authoritative: boolean;
@@ -113,6 +125,10 @@ export type TaskWorkflowTransitionEvent = {
113
125
  type: 'task_blocked';
114
126
  expectedGeneration: number;
115
127
  transitionId?: string;
128
+ } | {
129
+ type: 'task_closed';
130
+ expectedGeneration: number;
131
+ transitionId?: string;
116
132
  } | {
117
133
  type: 'repair_idle';
118
134
  expectedGeneration: number;
@@ -176,6 +192,13 @@ export declare function recordAgentDispatch(directory: string, taskId: string, a
176
192
  /**
177
193
  * Returns the TaskEvidence for a task, or null if file missing or parse error.
178
194
  * Never throws.
195
+ *
196
+ * Note this collapses "no evidence file" and "evidence file is unreadable" into the
197
+ * same `null`, which degrades two delegation-gate checks when an older build reads
198
+ * evidence carrying a `workflow.state` it does not recognise. Tracked in #2199 — do
199
+ * not "fix" this by rethrowing here: two call sites iterate every task in the plan,
200
+ * so one corrupt file would block dispatch for all of them. The fix is a separate
201
+ * discriminated reader used at the two affected sites.
179
202
  */
180
203
  export declare function readTaskEvidence(directory: string, taskId: string): Promise<TaskEvidence | null>;
181
204
  /**
@@ -34,6 +34,7 @@
34
34
  * This module holds NO module-level mutable state (invariant 8) and is NOT
35
35
  * imported on the plugin-init path (invariant 1).
36
36
  */
37
+ import { appendFile } from 'node:fs/promises';
37
38
  import * as path from 'node:path';
38
39
  import lockfile from 'proper-lockfile';
39
40
  import { atomicWriteFile } from '../evidence/task-file.js';
@@ -53,6 +54,29 @@ export interface HiveTxContext {
53
54
  export interface HiveAuditEntry {
54
55
  line: string;
55
56
  }
57
+ /**
58
+ * A staged raw append to a JSONL file inside the hive data dir, performed under the
59
+ * held directory lock AFTER the atomic store write (issue #2033). Used by the
60
+ * human-only hive-quarantine flow to append quarantine records to the
61
+ * `shared-learnings-quarantined.jsonl` sidecar with the same atomicity guarantees as
62
+ * the audit log — never via `appendKnowledge`, which would re-enter the lock.
63
+ */
64
+ export interface HiveStagedAppend {
65
+ /** Absolute path of an existing-or-new .jsonl file inside the hive data dir. */
66
+ path: string;
67
+ /** Pre-serialized JSONL block (newline-terminated lines). */
68
+ block: string;
69
+ }
70
+ /**
71
+ * Thrown when a staged append fails AFTER the atomic store rewrite (issue #2033). The
72
+ * store mutation already happened, so callers must compensate (the hive-quarantine flow
73
+ * restores from its just-written backup) rather than treating this as a clean abort.
74
+ */
75
+ export declare class HiveStagedAppendError extends Error {
76
+ readonly stagedPath: string;
77
+ readonly cause: unknown;
78
+ constructor(stagedPath: string, cause: unknown);
79
+ }
56
80
  /** The result a mutation closure returns. */
57
81
  export type HiveMutationOutcome<T> = {
58
82
  kind: 'commit';
@@ -63,6 +87,22 @@ export type HiveMutationOutcome<T> = {
63
87
  rejects?: RejectedLesson[];
64
88
  /** Audit lines to append to the hive events log under the lock. */
65
89
  audit?: HiveAuditEntry[];
90
+ /**
91
+ * Additional staged raw JSONL appends under the same lock (issue #2033).
92
+ * Each path is validated (before the atomic write) to resolve inside the
93
+ * hive data dir, end in `.jsonl`, and NOT sit under `quarantine-backups/`
94
+ * (reparse/junction defense). These appends are NEVER FIFO-trimmed.
95
+ */
96
+ extraStagedAppends?: HiveStagedAppend[];
97
+ /**
98
+ * Exact raw line bytes to persist for specific entry ids (issue #2033),
99
+ * overriding the `JSON.stringify(entry)` serialization. Used by the
100
+ * hive-quarantine rollback so restored legacy-shaped entries are written
101
+ * byte-exactly instead of re-serialized through the normalize-on-read
102
+ * pipeline. A Map by contract (PR review CC-9): plain-object maps
103
+ * silently corrupt prototype-key ids like '__proto__'.
104
+ */
105
+ rawLineOverrides?: ReadonlyMap<string, string>;
66
106
  /** Caller return value surfaced back through HiveTransactionResult. */
67
107
  return: T;
68
108
  } | {
@@ -109,5 +149,6 @@ export declare const _internals: {
109
149
  resolveHiveKnowledgePath: typeof resolveHiveKnowledgePath;
110
150
  resolveHiveRejectedPath: typeof resolveHiveRejectedPath;
111
151
  resolveHiveEventsPath: typeof resolveHiveEventsPath;
152
+ appendFile: typeof appendFile;
112
153
  path: typeof path;
113
154
  };