opencode-swarm 7.145.2 → 7.146.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 (73) hide show
  1. package/.opencode/skills/swarm-pr-review/SKILL.md +67 -33
  2. package/dist/cli/{config-doctor-j1r33f4q.js → config-doctor-sd7x5bts.js} +2 -2
  3. package/dist/cli/{core-c2zrd384.js → core-17febkvw.js} +1 -1
  4. package/dist/cli/{curation-policy-xv0j8zyt.js → curation-policy-x19e8bqc.js} +4 -4
  5. package/dist/cli/{curator-llm-factory-sat3mn5n.js → curator-llm-factory-zxbgkjm5.js} +23 -23
  6. package/dist/cli/{curator-gk2kmrk1.js → curator-vghf320v.js} +23 -23
  7. package/dist/cli/{evidence-summary-service-0mhx0t0v.js → evidence-summary-service-xma4aagr.js} +9 -9
  8. package/dist/cli/{gate-evidence-a5adh55x.js → gate-evidence-2bznvee8.js} +4 -4
  9. package/dist/cli/{guardrail-explain-r50fery8.js → guardrail-explain-ppzg0xz9.js} +24 -24
  10. package/dist/cli/{guardrail-log-p69eys6d.js → guardrail-log-xexwz93q.js} +3 -3
  11. package/dist/cli/{hive-promoter-ay8a7sct.js → hive-promoter-j3vw2hj4.js} +23 -23
  12. package/dist/cli/{index-czde45km.js → index-19f0zycs.js} +2 -2
  13. package/dist/cli/{index-2vefr1f8.js → index-1c9mfnj0.js} +1 -1
  14. package/dist/cli/{index-917z76qr.js → index-4qvsh3m5.js} +8 -5
  15. package/dist/cli/{index-cb2qtetk.js → index-7x00nx8m.js} +1765 -1095
  16. package/dist/cli/{index-np4ytvvv.js → index-9qbr27bw.js} +2 -2
  17. package/dist/cli/{index-7y5akvc9.js → index-bd4g9fvb.js} +1 -1
  18. package/dist/cli/{index-jpppcckq.js → index-cw96tpy6.js} +4 -4
  19. package/dist/cli/{index-4p3qfb05.js → index-e1hjd15c.js} +1 -1
  20. package/dist/cli/{index-9080b3de.js → index-e3caa7ng.js} +25 -25
  21. package/dist/cli/{index-ncfjxz9n.js → index-fksfxhmx.js} +5 -5
  22. package/dist/cli/{index-673axbjx.js → index-g8qbjqqz.js} +1 -1
  23. package/dist/cli/{index-gpnv14kq.js → index-h8qed3pr.js} +41 -6
  24. package/dist/cli/{index-cxn95n7q.js → index-k46kg4t6.js} +5 -5
  25. package/dist/cli/{index-612rr70a.js → index-n7trn9wz.js} +5 -1
  26. package/dist/cli/{index-j20fzn0w.js → index-qbpxrw95.js} +1 -1
  27. package/dist/cli/{index-n55a28zr.js → index-t7sfrv3v.js} +3 -3
  28. package/dist/cli/{index-9gt8g2qj.js → index-twwb61bh.js} +3 -3
  29. package/dist/cli/{index-jgb7mq2y.js → index-txh3h83v.js} +4 -4
  30. package/dist/cli/{index-rk80jhef.js → index-tzyvmkd1.js} +1 -1
  31. package/dist/cli/{index-b9kxxd6k.js → index-va8a2zrq.js} +2 -2
  32. package/dist/cli/{index-6wf75rcm.js → index-vacrzesw.js} +6 -6
  33. package/dist/cli/{index-x8pm918t.js → index-w0cj7zyd.js} +1 -1
  34. package/dist/cli/{index-0a0asz2s.js → index-w5r84rd1.js} +1 -1
  35. package/dist/cli/{index-1g87esfp.js → index-xz0ccakc.js} +1 -1
  36. package/dist/cli/{index-kggqpefz.js → index-ycgm9pzg.js} +1 -1
  37. package/dist/cli/{index-nsr5b69r.js → index-zkaz3fhw.js} +1 -1
  38. package/dist/cli/{index-vav705md.js → index-zwn2e2pe.js} +3 -3
  39. package/dist/cli/index.js +23 -23
  40. package/dist/cli/{knowledge-escalator-22apj3dj.js → knowledge-escalator-wj85ppdt.js} +9 -9
  41. package/dist/cli/{knowledge-events-bx8xba9z.js → knowledge-events-4y9kk2xe.js} +7 -7
  42. package/dist/cli/{knowledge-link-82ew2yc4.js → knowledge-link-8pr02pza.js} +3 -3
  43. package/dist/cli/{knowledge-store-nc71kfsg.js → knowledge-store-kc8dwc14.js} +4 -4
  44. package/dist/cli/{knowledge-validator-g8ne80v6.js → knowledge-validator-584ga9fb.js} +6 -6
  45. package/dist/cli/{runner-pqsf809k.js → runner-e7z9cf5y.js} +4 -4
  46. package/dist/cli/{scan-cursor-6ksgv514.js → scan-cursor-rhjym1pn.js} +5 -5
  47. package/dist/cli/{schema-mpcm7nje.js → schema-yb3pvhcs.js} +5 -1
  48. package/dist/cli/{scope-persistence-mj1w3hqw.js → scope-persistence-bxwjk9rc.js} +5 -5
  49. package/dist/cli/{skill-generator-gsa6qwwt.js → skill-generator-3w8w7htr.js} +11 -11
  50. package/dist/cli/{worktree-isolation-ajzyp2gm.js → worktree-isolation-av1rshr3.js} +23 -23
  51. package/dist/commands/memory.d.ts +8 -0
  52. package/dist/commands/registry.d.ts +9 -1
  53. package/dist/config/schema.d.ts +36 -0
  54. package/dist/hooks/guardrails/index.d.ts +35 -0
  55. package/dist/hooks/pr-workflow-gate.d.ts +48 -2
  56. package/dist/hooks/pr-workflow-response-gate.d.ts +24 -0
  57. package/dist/index.js +431 -383
  58. package/dist/memory/config.d.ts +20 -0
  59. package/dist/memory/errors.d.ts +14 -0
  60. package/dist/memory/gateway.d.ts +32 -0
  61. package/dist/memory/index.d.ts +3 -2
  62. package/dist/memory/pii.d.ts +66 -0
  63. package/dist/memory/prompt-block.d.ts +1 -1
  64. package/dist/memory/provider.d.ts +15 -0
  65. package/dist/memory/redaction.d.ts +31 -8
  66. package/dist/memory/schema.d.ts +18 -0
  67. package/dist/memory/sentinel.d.ts +12 -0
  68. package/dist/memory/sqlite-provider.d.ts +93 -0
  69. package/dist/memory/types.d.ts +9 -0
  70. package/dist/tools/dispatch-lanes.d.ts +13 -1
  71. package/dist/workflow/coder-settlement.d.ts +13 -0
  72. package/dist/workflow/stage-a-repair.d.ts +41 -0
  73. package/package.json +12 -2
package/dist/cli/index.js CHANGED
@@ -11,48 +11,48 @@ import {
11
11
  readCachePackageVersion,
12
12
  resolveCommand,
13
13
  safeRealpathSync
14
- } from "./index-cb2qtetk.js";
15
- import"./index-0a0asz2s.js";
16
- import"./index-1g87esfp.js";
17
- import"./index-612rr70a.js";
18
- import"./index-917z76qr.js";
19
- import"./index-nsr5b69r.js";
14
+ } from "./index-7x00nx8m.js";
15
+ import"./index-w5r84rd1.js";
16
+ import"./index-xz0ccakc.js";
17
+ import"./index-n7trn9wz.js";
18
+ import"./index-4qvsh3m5.js";
19
+ import"./index-zkaz3fhw.js";
20
20
  import"./index-134d35c1.js";
21
21
  import"./index-abtrcs16.js";
22
22
  import"./index-y8552snf.js";
23
- import"./index-ncfjxz9n.js";
24
- import"./index-np4ytvvv.js";
23
+ import"./index-fksfxhmx.js";
24
+ import"./index-9qbr27bw.js";
25
25
  import"./index-70ha9e09.js";
26
26
  import"./index-c8s9a3zh.js";
27
27
  import"./index-9ss2m4rs.js";
28
28
  import"./index-z9yhhk6q.js";
29
29
  import"./index-5e5a1y2r.js";
30
- import"./index-jgb7mq2y.js";
31
- import"./index-jpppcckq.js";
32
- import"./index-4p3qfb05.js";
30
+ import"./index-txh3h83v.js";
31
+ import"./index-cw96tpy6.js";
32
+ import"./index-e1hjd15c.js";
33
33
  import"./index-rtry5xyf.js";
34
34
  import"./index-zsrtt42s.js";
35
35
  import"./index-97psh79d.js";
36
36
  import"./index-e1pxav9g.js";
37
- import"./index-n55a28zr.js";
38
- import"./index-rk80jhef.js";
39
- import"./index-vav705md.js";
40
- import"./index-673axbjx.js";
37
+ import"./index-t7sfrv3v.js";
38
+ import"./index-tzyvmkd1.js";
39
+ import"./index-zwn2e2pe.js";
40
+ import"./index-g8qbjqqz.js";
41
41
  import"./index-556ja8an.js";
42
42
  import"./index-7sy3aa9m.js";
43
43
  import"./index-wx8zdh4a.js";
44
44
  import"./index-3g0xk6tk.js";
45
45
  import"./index-85gkedsf.js";
46
- import"./index-6wf75rcm.js";
47
- import"./index-cxn95n7q.js";
48
- import"./index-czde45km.js";
46
+ import"./index-vacrzesw.js";
47
+ import"./index-k46kg4t6.js";
48
+ import"./index-19f0zycs.js";
49
49
  import"./index-gprxjmm7.js";
50
50
  import"./index-n832052r.js";
51
- import"./index-2vefr1f8.js";
51
+ import"./index-1c9mfnj0.js";
52
52
  import {
53
53
  init_package,
54
54
  package_default
55
- } from "./index-gpnv14kq.js";
55
+ } from "./index-h8qed3pr.js";
56
56
  import {
57
57
  DEFAULT_AGENT_CONFIGS,
58
58
  init_constants
@@ -64,10 +64,10 @@ import"./index-z6xqpmqg.js";
64
64
  import"./index-zj6t9zgx.js";
65
65
  import"./index-zjygnfay.js";
66
66
  import"./index-ae75rja9.js";
67
- import"./index-x8pm918t.js";
68
- import"./index-j20fzn0w.js";
67
+ import"./index-w0cj7zyd.js";
68
+ import"./index-qbpxrw95.js";
69
69
  import"./index-bk5tah7q.js";
70
- import"./index-kggqpefz.js";
70
+ import"./index-ycgm9pzg.js";
71
71
  import"./index-bghwrr59.js";
72
72
  import"./index-qyvjp0bq.js";
73
73
  import"./index-7g4c7s5r.js";
@@ -9,14 +9,14 @@ import {
9
9
  maybeEscalateOnViolation,
10
10
  maybeQuarantineOnContradiction,
11
11
  readRecentEscalations
12
- } from "./index-ncfjxz9n.js";
13
- import"./index-6wf75rcm.js";
14
- import"./index-cxn95n7q.js";
15
- import"./index-czde45km.js";
12
+ } from "./index-fksfxhmx.js";
13
+ import"./index-vacrzesw.js";
14
+ import"./index-k46kg4t6.js";
15
+ import"./index-19f0zycs.js";
16
16
  import"./index-gprxjmm7.js";
17
17
  import"./index-n832052r.js";
18
- import"./index-2vefr1f8.js";
19
- import"./index-gpnv14kq.js";
18
+ import"./index-1c9mfnj0.js";
19
+ import"./index-h8qed3pr.js";
20
20
  import"./index-cpg98bh1.js";
21
21
  import"./index-9e6fdz2h.js";
22
22
  import"./index-4rhhvd1a.js";
@@ -25,10 +25,10 @@ import"./index-z6xqpmqg.js";
25
25
  import"./index-zj6t9zgx.js";
26
26
  import"./index-zjygnfay.js";
27
27
  import"./index-ae75rja9.js";
28
- import"./index-x8pm918t.js";
29
- import"./index-j20fzn0w.js";
28
+ import"./index-w0cj7zyd.js";
29
+ import"./index-qbpxrw95.js";
30
30
  import"./index-bk5tah7q.js";
31
- import"./index-kggqpefz.js";
31
+ import"./index-ycgm9pzg.js";
32
32
  import"./index-bghwrr59.js";
33
33
  import"./index-qyvjp0bq.js";
34
34
  import"./index-7g4c7s5r.js";
@@ -29,12 +29,12 @@ import {
29
29
  resolveKnowledgeCounterBaselinePath,
30
30
  resolveKnowledgeEventsPath,
31
31
  resolveLegacyApplicationLogPath
32
- } from "./index-cxn95n7q.js";
33
- import"./index-czde45km.js";
32
+ } from "./index-k46kg4t6.js";
33
+ import"./index-19f0zycs.js";
34
34
  import"./index-gprxjmm7.js";
35
35
  import"./index-n832052r.js";
36
- import"./index-2vefr1f8.js";
37
- import"./index-gpnv14kq.js";
36
+ import"./index-1c9mfnj0.js";
37
+ import"./index-h8qed3pr.js";
38
38
  import"./index-cpg98bh1.js";
39
39
  import"./index-9e6fdz2h.js";
40
40
  import"./index-4rhhvd1a.js";
@@ -43,10 +43,10 @@ import"./index-z6xqpmqg.js";
43
43
  import"./index-zj6t9zgx.js";
44
44
  import"./index-zjygnfay.js";
45
45
  import"./index-ae75rja9.js";
46
- import"./index-x8pm918t.js";
47
- import"./index-j20fzn0w.js";
46
+ import"./index-w0cj7zyd.js";
47
+ import"./index-qbpxrw95.js";
48
48
  import"./index-bk5tah7q.js";
49
- import"./index-kggqpefz.js";
49
+ import"./index-ycgm9pzg.js";
50
50
  import"./index-bghwrr59.js";
51
51
  import"./index-qyvjp0bq.js";
52
52
  import"./index-7g4c7s5r.js";
@@ -12,9 +12,9 @@ import {
12
12
  resolveLinkDir,
13
13
  sanitizeLinkId,
14
14
  writeLinkPointer
15
- } from "./index-x8pm918t.js";
16
- import"./index-j20fzn0w.js";
17
- import"./index-kggqpefz.js";
15
+ } from "./index-w0cj7zyd.js";
16
+ import"./index-qbpxrw95.js";
17
+ import"./index-ycgm9pzg.js";
18
18
  import"./index-bghwrr59.js";
19
19
  import"./index-qyvjp0bq.js";
20
20
  import"./index-7g4c7s5r.js";
@@ -41,14 +41,14 @@ import {
41
41
  transactKnowledge,
42
42
  transactKnowledgeWithCas,
43
43
  wordBigrams
44
- } from "./index-6wf75rcm.js";
44
+ } from "./index-vacrzesw.js";
45
45
  import {
46
46
  resolveHiveDataDir
47
47
  } from "./index-ae75rja9.js";
48
- import"./index-x8pm918t.js";
49
- import"./index-j20fzn0w.js";
48
+ import"./index-w0cj7zyd.js";
49
+ import"./index-qbpxrw95.js";
50
50
  import"./index-bk5tah7q.js";
51
- import"./index-kggqpefz.js";
51
+ import"./index-ycgm9pzg.js";
52
52
  import"./index-bghwrr59.js";
53
53
  import"./index-qyvjp0bq.js";
54
54
  import"./index-7g4c7s5r.js";
@@ -23,15 +23,15 @@ import {
23
23
  validateLesson,
24
24
  validateSkillCandidatePath,
25
25
  validateSkillPath
26
- } from "./index-jpppcckq.js";
27
- import"./index-4p3qfb05.js";
26
+ } from "./index-cw96tpy6.js";
27
+ import"./index-e1hjd15c.js";
28
28
  import"./index-rtry5xyf.js";
29
- import"./index-6wf75rcm.js";
29
+ import"./index-vacrzesw.js";
30
30
  import"./index-ae75rja9.js";
31
- import"./index-x8pm918t.js";
32
- import"./index-j20fzn0w.js";
31
+ import"./index-w0cj7zyd.js";
32
+ import"./index-qbpxrw95.js";
33
33
  import"./index-bk5tah7q.js";
34
- import"./index-kggqpefz.js";
34
+ import"./index-ycgm9pzg.js";
35
35
  import"./index-bghwrr59.js";
36
36
  import"./index-qyvjp0bq.js";
37
37
  import"./index-7g4c7s5r.js";
@@ -3,12 +3,12 @@ import {
3
3
  _internals,
4
4
  createModelEvaluationExecutor,
5
5
  runEvaluation
6
- } from "./index-0a0asz2s.js";
7
- import"./index-nsr5b69r.js";
6
+ } from "./index-w5r84rd1.js";
7
+ import"./index-zkaz3fhw.js";
8
8
  import"./index-y8552snf.js";
9
9
  import"./index-zj6t9zgx.js";
10
- import"./index-j20fzn0w.js";
11
- import"./index-kggqpefz.js";
10
+ import"./index-qbpxrw95.js";
11
+ import"./index-ycgm9pzg.js";
12
12
  import"./index-bghwrr59.js";
13
13
  import"./index-qyvjp0bq.js";
14
14
  import"./index-7g4c7s5r.js";
@@ -4,15 +4,15 @@ import {
4
4
  alreadyCuratedThisGeneration,
5
5
  claimNextScanBatch,
6
6
  getScanStatus
7
- } from "./index-np4ytvvv.js";
8
- import"./index-6wf75rcm.js";
7
+ } from "./index-9qbr27bw.js";
8
+ import"./index-vacrzesw.js";
9
9
  import"./index-9e6fdz2h.js";
10
10
  import"./index-4rhhvd1a.js";
11
11
  import"./index-ae75rja9.js";
12
- import"./index-x8pm918t.js";
13
- import"./index-j20fzn0w.js";
12
+ import"./index-w0cj7zyd.js";
13
+ import"./index-qbpxrw95.js";
14
14
  import"./index-bk5tah7q.js";
15
- import"./index-kggqpefz.js";
15
+ import"./index-ycgm9pzg.js";
16
16
  import"./index-bghwrr59.js";
17
17
  import"./index-qyvjp0bq.js";
18
18
  import"./index-7g4c7s5r.js";
@@ -26,6 +26,7 @@ import {
26
26
  DEFAULT_ARCHITECT_PROFILE,
27
27
  DEFAULT_EXTERNAL_SKILLS_CONFIG,
28
28
  DEFAULT_MODEL_CONTEXT_TOKENS,
29
+ DEFAULT_PR_REVIEW_RESILIENCE_CONFIG,
29
30
  DEFAULT_SKILLS_CONFIG,
30
31
  DEFAULT_SKILL_OPT_CONFIG,
31
32
  DecisionDecaySchema,
@@ -64,6 +65,7 @@ import {
64
65
  PlanCursorConfigSchema,
65
66
  PluginConfigSchema,
66
67
  PrMonitorConfigSchema,
68
+ PrReviewResilienceConfigSchema,
67
69
  PricingConfigSchema,
68
70
  PrmConfigSchema,
69
71
  QualityBudgetConfigSchema,
@@ -97,7 +99,7 @@ import {
97
99
  resolveGeneratedAgentRole,
98
100
  resolveGuardrailsConfig,
99
101
  stripKnownSwarmPrefix
100
- } from "./index-gpnv14kq.js";
102
+ } from "./index-h8qed3pr.js";
101
103
  import"./index-cpg98bh1.js";
102
104
  import"./index-zjygnfay.js";
103
105
  import"./index-bk5tah7q.js";
@@ -138,6 +140,7 @@ export {
138
140
  QualityBudgetConfigSchema,
139
141
  PrmConfigSchema,
140
142
  PricingConfigSchema,
143
+ PrReviewResilienceConfigSchema,
141
144
  PrMonitorConfigSchema,
142
145
  PluginConfigSchema,
143
146
  PlanCursorConfigSchema,
@@ -176,6 +179,7 @@ export {
176
179
  DecisionDecaySchema,
177
180
  DEFAULT_SKILL_OPT_CONFIG,
178
181
  DEFAULT_SKILLS_CONFIG,
182
+ DEFAULT_PR_REVIEW_RESILIENCE_CONFIG,
179
183
  DEFAULT_MODEL_CONTEXT_TOKENS,
180
184
  DEFAULT_EXTERNAL_SKILLS_CONFIG,
181
185
  DEFAULT_ARCHITECT_PROFILE,
@@ -23,11 +23,11 @@ import {
23
23
  tombstoneScopeBinding,
24
24
  writeScopeBindingToDisk,
25
25
  writeScopeToDisk
26
- } from "./index-vav705md.js";
27
- import"./index-673axbjx.js";
26
+ } from "./index-zwn2e2pe.js";
27
+ import"./index-g8qbjqqz.js";
28
28
  import"./index-556ja8an.js";
29
- import"./index-2vefr1f8.js";
30
- import"./index-gpnv14kq.js";
29
+ import"./index-1c9mfnj0.js";
30
+ import"./index-h8qed3pr.js";
31
31
  import"./index-cpg98bh1.js";
32
32
  import"./index-9e6fdz2h.js";
33
33
  import"./index-4rhhvd1a.js";
@@ -36,7 +36,7 @@ import"./index-z6xqpmqg.js";
36
36
  import"./index-zj6t9zgx.js";
37
37
  import"./index-zjygnfay.js";
38
38
  import"./index-bk5tah7q.js";
39
- import"./index-kggqpefz.js";
39
+ import"./index-ycgm9pzg.js";
40
40
  import"./index-bghwrr59.js";
41
41
  import"./index-qyvjp0bq.js";
42
42
  import"./index-7g4c7s5r.js";
@@ -33,17 +33,17 @@ import {
33
33
  sanitizeSlug,
34
34
  selectCandidateEntries,
35
35
  writeEvalStub
36
- } from "./index-jgb7mq2y.js";
37
- import"./index-jpppcckq.js";
38
- import"./index-4p3qfb05.js";
36
+ } from "./index-txh3h83v.js";
37
+ import"./index-cw96tpy6.js";
38
+ import"./index-e1hjd15c.js";
39
39
  import"./index-rtry5xyf.js";
40
- import"./index-6wf75rcm.js";
41
- import"./index-cxn95n7q.js";
42
- import"./index-czde45km.js";
40
+ import"./index-vacrzesw.js";
41
+ import"./index-k46kg4t6.js";
42
+ import"./index-19f0zycs.js";
43
43
  import"./index-gprxjmm7.js";
44
44
  import"./index-n832052r.js";
45
- import"./index-2vefr1f8.js";
46
- import"./index-gpnv14kq.js";
45
+ import"./index-1c9mfnj0.js";
46
+ import"./index-h8qed3pr.js";
47
47
  import"./index-cpg98bh1.js";
48
48
  import"./index-9e6fdz2h.js";
49
49
  import"./index-4rhhvd1a.js";
@@ -52,10 +52,10 @@ import"./index-z6xqpmqg.js";
52
52
  import"./index-zj6t9zgx.js";
53
53
  import"./index-zjygnfay.js";
54
54
  import"./index-ae75rja9.js";
55
- import"./index-x8pm918t.js";
56
- import"./index-j20fzn0w.js";
55
+ import"./index-w0cj7zyd.js";
56
+ import"./index-qbpxrw95.js";
57
57
  import"./index-bk5tah7q.js";
58
- import"./index-kggqpefz.js";
58
+ import"./index-ycgm9pzg.js";
59
59
  import"./index-bghwrr59.js";
60
60
  import"./index-qyvjp0bq.js";
61
61
  import"./index-7g4c7s5r.js";
@@ -21,47 +21,47 @@ import {
21
21
  sanitizeWorktreeTaskId,
22
22
  standardWorktreeByCallID,
23
23
  standardWorktreeSerializationSessions
24
- } from "./index-cb2qtetk.js";
25
- import"./index-0a0asz2s.js";
26
- import"./index-1g87esfp.js";
27
- import"./index-612rr70a.js";
28
- import"./index-917z76qr.js";
29
- import"./index-nsr5b69r.js";
24
+ } from "./index-7x00nx8m.js";
25
+ import"./index-w5r84rd1.js";
26
+ import"./index-xz0ccakc.js";
27
+ import"./index-n7trn9wz.js";
28
+ import"./index-4qvsh3m5.js";
29
+ import"./index-zkaz3fhw.js";
30
30
  import"./index-134d35c1.js";
31
31
  import"./index-abtrcs16.js";
32
32
  import"./index-y8552snf.js";
33
- import"./index-ncfjxz9n.js";
34
- import"./index-np4ytvvv.js";
33
+ import"./index-fksfxhmx.js";
34
+ import"./index-9qbr27bw.js";
35
35
  import"./index-70ha9e09.js";
36
36
  import"./index-c8s9a3zh.js";
37
37
  import"./index-9ss2m4rs.js";
38
38
  import"./index-z9yhhk6q.js";
39
39
  import"./index-5e5a1y2r.js";
40
- import"./index-jgb7mq2y.js";
41
- import"./index-jpppcckq.js";
42
- import"./index-4p3qfb05.js";
40
+ import"./index-txh3h83v.js";
41
+ import"./index-cw96tpy6.js";
42
+ import"./index-e1hjd15c.js";
43
43
  import"./index-rtry5xyf.js";
44
44
  import"./index-zsrtt42s.js";
45
45
  import"./index-97psh79d.js";
46
46
  import"./index-e1pxav9g.js";
47
- import"./index-n55a28zr.js";
48
- import"./index-rk80jhef.js";
49
- import"./index-vav705md.js";
50
- import"./index-673axbjx.js";
47
+ import"./index-t7sfrv3v.js";
48
+ import"./index-tzyvmkd1.js";
49
+ import"./index-zwn2e2pe.js";
50
+ import"./index-g8qbjqqz.js";
51
51
  import"./index-556ja8an.js";
52
52
  import"./index-7sy3aa9m.js";
53
53
  import"./index-wx8zdh4a.js";
54
54
  import"./index-3g0xk6tk.js";
55
55
  import"./index-85gkedsf.js";
56
- import"./index-6wf75rcm.js";
57
- import"./index-cxn95n7q.js";
56
+ import"./index-vacrzesw.js";
57
+ import"./index-k46kg4t6.js";
58
58
  import {
59
59
  resolveWorktreeIsolationConfig
60
- } from "./index-czde45km.js";
60
+ } from "./index-19f0zycs.js";
61
61
  import"./index-gprxjmm7.js";
62
62
  import"./index-n832052r.js";
63
- import"./index-2vefr1f8.js";
64
- import"./index-gpnv14kq.js";
63
+ import"./index-1c9mfnj0.js";
64
+ import"./index-h8qed3pr.js";
65
65
  import"./index-cpg98bh1.js";
66
66
  import"./index-9e6fdz2h.js";
67
67
  import"./index-4rhhvd1a.js";
@@ -70,10 +70,10 @@ import"./index-z6xqpmqg.js";
70
70
  import"./index-zj6t9zgx.js";
71
71
  import"./index-zjygnfay.js";
72
72
  import"./index-ae75rja9.js";
73
- import"./index-x8pm918t.js";
74
- import"./index-j20fzn0w.js";
73
+ import"./index-w0cj7zyd.js";
74
+ import"./index-qbpxrw95.js";
75
75
  import"./index-bk5tah7q.js";
76
- import"./index-kggqpefz.js";
76
+ import"./index-ycgm9pzg.js";
77
77
  import"./index-bghwrr59.js";
78
78
  import"./index-qyvjp0bq.js";
79
79
  import"./index-7g4c7s5r.js";
@@ -10,3 +10,11 @@ export declare function handleMemoryMigrateCommand(directory: string, _args: str
10
10
  export declare function handleMemoryImportCommand(directory: string, _args: string[]): Promise<string>;
11
11
  export declare function handleMemoryExportCommand(directory: string, _args: string[]): Promise<string>;
12
12
  export declare function handleMemoryEvaluateCommand(directory: string, args: string[]): Promise<string>;
13
+ /**
14
+ * #1466: `/swarm memory audit-verify` — lazily verify the memory_events
15
+ * hash chain (migration v13) and the _meta chain head. Tampering with any
16
+ * chained row, deleting a middle row, or editing the last row breaks the
17
+ * verification. Non-SQLite providers report the gap explicitly instead of
18
+ * pretending to verify.
19
+ */
20
+ export declare function handleMemoryAuditVerifyCommand(directory: string, args: string[]): Promise<string>;
@@ -833,7 +833,7 @@ export declare const COMMAND_REGISTRY: {
833
833
  readonly recover: {
834
834
  readonly handler: (ctx: CommandContext) => Promise<string>;
835
835
  readonly description: "Recover wedged coder settlements [task_id] [--force]";
836
- readonly details: "Settles stale coder-settlement WALs in .swarm/coder-settlements/ — the CODER_DISPATCH_IN_PROGRESS wedge where a dispatch's completion never fired (issue #2268). Safe mode recovers settlements whose owner process is gone. --force also releases ownership keys held by this process: use only when no dispatch is genuinely running (a late completion then reports CODER_SETTLEMENT_IDEMPOTENCY_CONFLICT, safe to ignore). Never interrupts another live OpenCode process. Human-only.";
836
+ readonly details: "Settles stale coder-settlement WALs in .swarm/coder-settlements/ — the CODER_DISPATCH_IN_PROGRESS wedge where a dispatch's completion never fired (issue #2268). Safe mode recovers settlements whose owner process is gone. --force also releases ownership keys held by this process: use only when no dispatch is genuinely running (a late completion then reports CODER_SETTLEMENT_IDEMPOTENCY_CONFLICT, safe to ignore). Never interrupts another live OpenCode process. Also repairs tasks wedged at coder_delegated with unattributed green pre_check evidence — the post-reset TASK_WORKFLOW_STAGE_A_REQUIRED wedge — by writing the missing stage_a_passed transition directly (audit events land in .swarm/events.jsonl); pass [task_id] to scope both phases to one task. Human-only.";
837
837
  readonly args: "[task_id] [--force]";
838
838
  readonly category: "utility";
839
839
  readonly toolPolicy: "human-only";
@@ -1021,6 +1021,14 @@ export declare const COMMAND_REGISTRY: {
1021
1021
  readonly category: "diagnostics";
1022
1022
  readonly toolPolicy: "agent";
1023
1023
  };
1024
+ readonly 'memory audit-verify': {
1025
+ readonly handler: (ctx: CommandContext) => Promise<string>;
1026
+ readonly description: "Verify the memory audit-log hash chain (tamper detection)";
1027
+ readonly subcommandOf: "memory";
1028
+ readonly args: "--json";
1029
+ readonly category: "diagnostics";
1030
+ readonly toolPolicy: "agent";
1031
+ };
1024
1032
  readonly 'memory import': {
1025
1033
  readonly handler: (ctx: CommandContext) => Promise<string>;
1026
1034
  readonly description: "Import legacy JSONL memory into SQLite";
@@ -841,6 +841,13 @@ export declare const MemoryConfigSchema: z.ZodObject<{
841
841
  }, z.core.$strip>>;
842
842
  redaction: z.ZodDefault<z.ZodObject<{
843
843
  rejectDurableSecrets: z.ZodDefault<z.ZodBoolean>;
844
+ detectPii: z.ZodDefault<z.ZodBoolean>;
845
+ piiDetector: z.ZodDefault<z.ZodEnum<{
846
+ regex: "regex";
847
+ ner: "ner";
848
+ }>>;
849
+ rejectDurablePii: z.ZodDefault<z.ZodBoolean>;
850
+ piiThreshold: z.ZodDefault<z.ZodNumber>;
844
851
  }, z.core.$strip>>;
845
852
  maintenance: z.ZodDefault<z.ZodObject<{
846
853
  lowUtilityMaxConfidence: z.ZodDefault<z.ZodNumber>;
@@ -1720,6 +1727,21 @@ export declare const DEFAULT_SKILLS_CONFIG: SkillsConfig;
1720
1727
  * plugin load (AGENTS.md #1 — fail-open, bounded init).
1721
1728
  */
1722
1729
  export declare function resolveExternalSkillsConfig(input: unknown): ExternalSkillsConfig;
1730
+ export interface PrReviewResilienceConfig {
1731
+ enabled: boolean;
1732
+ canary_probe_ms: number;
1733
+ status_probe_timeout_ms: number;
1734
+ correlated_failure_threshold: number;
1735
+ max_retry_attempts_after_initial: number;
1736
+ }
1737
+ export declare const DEFAULT_PR_REVIEW_RESILIENCE_CONFIG: PrReviewResilienceConfig;
1738
+ export declare const PrReviewResilienceConfigSchema: z.ZodObject<{
1739
+ enabled: z.ZodDefault<z.ZodBoolean>;
1740
+ canary_probe_ms: z.ZodDefault<z.ZodNumber>;
1741
+ status_probe_timeout_ms: z.ZodDefault<z.ZodNumber>;
1742
+ correlated_failure_threshold: z.ZodDefault<z.ZodNumber>;
1743
+ max_retry_attempts_after_initial: z.ZodDefault<z.ZodNumber>;
1744
+ }, z.core.$strict>;
1723
1745
  export declare const PluginConfigSchema: z.ZodObject<{
1724
1746
  config_format_version: z.ZodDefault<z.ZodNumber>;
1725
1747
  agents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -1809,6 +1831,13 @@ export declare const PluginConfigSchema: z.ZodObject<{
1809
1831
  background_subagents: z.ZodDefault<z.ZodBoolean>;
1810
1832
  background_pending_timeout_minutes: z.ZodDefault<z.ZodNumber>;
1811
1833
  }, z.core.$strip>>;
1834
+ pr_review_resilience: z.ZodOptional<z.ZodObject<{
1835
+ enabled: z.ZodDefault<z.ZodBoolean>;
1836
+ canary_probe_ms: z.ZodDefault<z.ZodNumber>;
1837
+ status_probe_timeout_ms: z.ZodDefault<z.ZodNumber>;
1838
+ correlated_failure_threshold: z.ZodDefault<z.ZodNumber>;
1839
+ max_retry_attempts_after_initial: z.ZodDefault<z.ZodNumber>;
1840
+ }, z.core.$strict>>;
1812
1841
  gates: z.ZodOptional<z.ZodObject<{
1813
1842
  syntax_check: z.ZodDefault<z.ZodObject<{
1814
1843
  enabled: z.ZodDefault<z.ZodBoolean>;
@@ -2232,6 +2261,13 @@ export declare const PluginConfigSchema: z.ZodObject<{
2232
2261
  }, z.core.$strip>>;
2233
2262
  redaction: z.ZodDefault<z.ZodObject<{
2234
2263
  rejectDurableSecrets: z.ZodDefault<z.ZodBoolean>;
2264
+ detectPii: z.ZodDefault<z.ZodBoolean>;
2265
+ piiDetector: z.ZodDefault<z.ZodEnum<{
2266
+ regex: "regex";
2267
+ ner: "ner";
2268
+ }>>;
2269
+ rejectDurablePii: z.ZodDefault<z.ZodBoolean>;
2270
+ piiThreshold: z.ZodDefault<z.ZodNumber>;
2235
2271
  }, z.core.$strip>>;
2236
2272
  maintenance: z.ZodDefault<z.ZodObject<{
2237
2273
  lowUtilityMaxConfidence: z.ZodDefault<z.ZodNumber>;
@@ -32,7 +32,42 @@ export declare const _internals: {
32
32
  */
33
33
  noOpStateSize: () => number;
34
34
  hasNoOpState: (sessionID: string) => boolean;
35
+ /**
36
+ * Durable Stage-A attribution fallback seam (TASK_WORKFLOW_STAGE_A_REQUIRED
37
+ * post-reset wedge). This is the production call site (see `toolBefore`
38
+ * below); it is also a substitution point tests may override to simulate
39
+ * reset-flow attribution without real WAL files. See
40
+ * {@link resolveDurableGateTaskId}.
41
+ */
42
+ resolveDurableGateTaskId: (directory: string, callerFiles: string[] | null) => Promise<DurableAttributionResult>;
35
43
  };
44
+ export declare function emitDurableAttributionAdvisory(sessionID: string, key: string, message: string): void;
45
+ /**
46
+ * Stage A workflow-transition write errors that indicate an attribution or
47
+ * correlation miss — the post-reset wedge signature. These escalate beyond a
48
+ * log line because every silent one is exactly how tasks wedge at
49
+ * coder_delegated with no diagnostic. Duplicate transitions never throw
50
+ * (isDuplicateTransition returns the existing evidence), so any throw here is
51
+ * abnormal; TASK_WORKFLOW_TERMINAL and fencing codes stay warn-only because a
52
+ * late gate result after close/settlement is expected churn, not a wedge.
53
+ *
54
+ * `TASK_WORKFLOW_GENERATION_MISMATCH` is deliberately EXCLUDED: it is a CAS
55
+ * fencing code that fires during ordinary concurrent/parallel-lane operation
56
+ * (a sibling transition legitimately bumped the generation between this
57
+ * call's read and write), not only after a reset. Escalating it here would
58
+ * turn a routine race into a false "run /swarm recover" advisory during
59
+ * normal, non-reset operation.
60
+ */
61
+ export declare const STAGE_A_ATTRIBUTION_MISS_CODES: Set<string>;
62
+ export declare function stageAWriteErrorCode(error: unknown): string | null;
63
+ type DurableAttributionResult = {
64
+ taskId: string;
65
+ } | {
66
+ ambiguous: string[];
67
+ } | {
68
+ unbound: string;
69
+ reason: 'files_mismatch' | 'truncated';
70
+ } | null;
36
71
  /**
37
72
  * Issue #853 Layer B: tools that are structurally blocked while
38
73
  * `.swarm/spec-staleness.json` exists.