opencode-swarm 7.139.2 → 7.139.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 (91) hide show
  1. package/.opencode/skills/phase-wrap/SKILL.md +2 -2
  2. package/dist/background/stage-b-gates.d.ts +5 -1
  3. package/dist/background/task-envelope.d.ts +4 -4
  4. package/dist/cli/{config-doctor-hrb61yqe.js → config-doctor-75qky762.js} +3 -3
  5. package/dist/cli/{core-g2dfh9fq.js → core-nn8ffy5h.js} +3 -3
  6. package/dist/cli/{curation-policy-4tp0mbcb.js → curation-policy-f46tf3dw.js} +5 -5
  7. package/dist/cli/{curator-drift-vfh07mqy.js → curator-drift-r52hjskk.js} +2 -2
  8. package/dist/cli/{curator-llm-factory-hvw13hmr.js → curator-llm-factory-1r9vz0g2.js} +28 -28
  9. package/dist/cli/{curator-vpcs1p1v.js → curator-m6mk2v1n.js} +28 -28
  10. package/dist/cli/{dispatch-b1fge4xk.js → dispatch-nbv0hezh.js} +2 -2
  11. package/dist/cli/{evidence-summary-service-kzxr71yd.js → evidence-summary-service-sxcq5nrt.js} +6 -6
  12. package/dist/cli/{gate-evidence-z2b1ymnw.js → gate-evidence-1982qswy.js} +3 -3
  13. package/dist/cli/{guardrail-explain-k62h3c92.js → guardrail-explain-y2wg00dp.js} +29 -29
  14. package/dist/cli/{guardrail-log-2ftew0p3.js → guardrail-log-320grggj.js} +5 -5
  15. package/dist/cli/{hive-promoter-mpf0cfkk.js → hive-promoter-v4w7cjvk.js} +28 -28
  16. package/dist/cli/{index-3eddtgxt.js → index-05mms0va.js} +1 -1
  17. package/dist/cli/{index-y64jv2pe.js → index-0mzz46we.js} +2 -2
  18. package/dist/cli/{index-ffpmqx30.js → index-1jbj7vzv.js} +4 -4
  19. package/dist/cli/{index-y47dwge1.js → index-1yd38ajy.js} +2 -2
  20. package/dist/cli/{index-gvhvz176.js → index-2eet124q.js} +1 -1
  21. package/dist/cli/{index-0wp67gqj.js → index-4fr94329.js} +11 -6
  22. package/dist/cli/{index-y111zefa.js → index-4nt52yr9.js} +80 -31
  23. package/dist/cli/{index-3jcyn8g6.js → index-4wjk296r.js} +1 -1
  24. package/dist/cli/{index-se8xc78k.js → index-5hyq2mw6.js} +30 -30
  25. package/dist/cli/{index-5zyk8qgv.js → index-5syvwd8g.js} +1 -1
  26. package/dist/cli/{index-ktagrqxw.js → index-6axm8q3s.js} +3 -3
  27. package/dist/cli/{index-668dpw5e.js → index-6mvbjqbt.js} +1 -1
  28. package/dist/cli/{index-wsdnttf4.js → index-74hpm6sh.js} +1 -1
  29. package/dist/cli/{index-wrt6m5ze.js → index-ajwmn8gp.js} +289 -73
  30. package/dist/cli/{index-6w1re1qn.js → index-ba5e5e3n.js} +2 -2
  31. package/dist/cli/{index-8gftfvpp.js → index-bcwx1335.js} +1 -1
  32. package/dist/cli/{index-a12906mj.js → index-gen82t10.js} +3 -3
  33. package/dist/cli/{index-s608d3hw.js → index-hckq2r5m.js} +1 -1
  34. package/dist/cli/{index-e9tx99ds.js → index-hwnpd4tw.js} +3 -3
  35. package/dist/cli/{index-3radty3f.js → index-jqn332jx.js} +2 -2
  36. package/dist/cli/{index-x9q4bbhd.js → index-k87hs2ff.js} +1 -1
  37. package/dist/cli/{index-8p9pasnp.js → index-kyz7259r.js} +2 -2
  38. package/dist/cli/{index-prmb5qfp.js → index-mv0czd9c.js} +2 -2
  39. package/dist/cli/{index-6c5f309q.js → index-mzck763x.js} +2 -2
  40. package/dist/cli/{index-a7nh382r.js → index-tkg6rapy.js} +1344 -682
  41. package/dist/cli/{index-yr6x707c.js → index-v7g8dnyh.js} +3 -3
  42. package/dist/cli/{index-w71cq27a.js → index-xeyr62x0.js} +5 -5
  43. package/dist/cli/{index-vm4xw9z3.js → index-xsxrhakg.js} +1 -1
  44. package/dist/cli/{index-5w7ekpy3.js → index-xzzcfwwm.js} +1 -1
  45. package/dist/cli/{index-q11t5erh.js → index-yawwwhmc.js} +2 -2
  46. package/dist/cli/{index-q7ezzgwq.js → index-yh0q21nj.js} +1 -1
  47. package/dist/cli/{index-cyw81ngh.js → index-z6qe8wft.js} +6 -6
  48. package/dist/cli/index.js +28 -28
  49. package/dist/cli/{knowledge-escalator-n9pmx4qr.js → knowledge-escalator-kkjsjtza.js} +6 -6
  50. package/dist/cli/{knowledge-events-raevm18w.js → knowledge-events-jbw9j94n.js} +4 -4
  51. package/dist/cli/{knowledge-link-3tq8w6gs.js → knowledge-link-f6akgbdn.js} +3 -3
  52. package/dist/cli/{knowledge-store-bcfqz8fr.js → knowledge-store-m7vnz62z.js} +4 -4
  53. package/dist/cli/{knowledge-validator-jxqj96cx.js → knowledge-validator-rqj7kech.js} +7 -7
  54. package/dist/cli/{pending-delegations-tmyf18p4.js → pending-delegations-14544jpr.js} +3 -3
  55. package/dist/cli/{pr-subscriptions-hhx6yk24.js → pr-subscriptions-qdwfm1a8.js} +3 -3
  56. package/dist/cli/{runner-w30gazew.js → runner-mzb3e2s6.js} +4 -4
  57. package/dist/cli/{scan-cursor-ah5swtyh.js → scan-cursor-8e6ryhjq.js} +5 -5
  58. package/dist/cli/{schema-f7jgrtxj.js → schema-g7rs20c6.js} +2 -2
  59. package/dist/cli/{scope-persistence-3f0d4fwv.js → scope-persistence-wy65zyha.js} +2 -2
  60. package/dist/cli/{skill-generator-hp7as46c.js → skill-generator-2rv6ftre.js} +8 -8
  61. package/dist/cli/{task-envelope-qn0qtnh0.js → task-envelope-jp2fdsvn.js} +11 -8
  62. package/dist/cli/{workspace-snapshot-h5rzw37b.js → workspace-snapshot-w3tg4ne5.js} +2 -2
  63. package/dist/cli/{worktree-collision-ownership-vexb0b6r.js → worktree-collision-ownership-24s0t62z.js} +4 -4
  64. package/dist/commands/approve-plan-critic.d.ts +2 -2
  65. package/dist/commands/registry.d.ts +1 -1
  66. package/dist/config/agent-model.d.ts +35 -0
  67. package/dist/db/qa-gate-profile.d.ts +11 -3
  68. package/dist/evidence/manager.d.ts +1 -1
  69. package/dist/evidence/phase-participation.d.ts +44 -0
  70. package/dist/hooks/compaction-customizer.d.ts +30 -2
  71. package/dist/hooks/context-budget.d.ts +1 -1
  72. package/dist/hooks/delegation-gate.d.ts +3 -3
  73. package/dist/hooks/guardrails/index.d.ts +5 -1
  74. package/dist/hooks/guardrails/messages-transform.d.ts +2 -0
  75. package/dist/hooks/guardrails/pre-check-result.d.ts +20 -0
  76. package/dist/index.js +420 -415
  77. package/dist/sast/semgrep.d.ts +15 -32
  78. package/dist/services/compaction-service.d.ts +3 -1
  79. package/dist/session/snapshot-writer.d.ts +1 -0
  80. package/dist/state.d.ts +70 -19
  81. package/dist/tools/context-status.d.ts +4 -1
  82. package/dist/tools/lint.d.ts +48 -22
  83. package/dist/tools/pre-check-batch.d.ts +37 -13
  84. package/dist/tools/quality-budget.d.ts +3 -2
  85. package/dist/tools/sast-baseline.d.ts +1 -0
  86. package/dist/tools/sast-scan.d.ts +4 -1
  87. package/dist/tools/secretscan.d.ts +2 -2
  88. package/dist/tools/set-qa-gates.d.ts +5 -4
  89. package/dist/utils/bun-compat.d.ts +20 -0
  90. package/dist/utils/external-tool-runner.d.ts +10 -0
  91. package/package.json +1 -1
@@ -7,7 +7,7 @@ import {
7
7
  loadPluginConfigWithMeta,
8
8
  loadPluginConfigWithMetaAsync,
9
9
  resolveWorktreeIsolationConfig
10
- } from "./index-q11t5erh.js";
10
+ } from "./index-yawwwhmc.js";
11
11
  import {
12
12
  ApprovalEvidenceSchema,
13
13
  BaseEvidenceSchema,
@@ -54,7 +54,7 @@ import {
54
54
  TurboConfigSchema,
55
55
  WorktreeIsolationConfigSchema,
56
56
  resolveAutoReviewConfig
57
- } from "./index-8p9pasnp.js";
57
+ } from "./index-kyz7259r.js";
58
58
  import"./index-bk5tah7q.js";
59
59
  import {
60
60
  MigrationStatusSchema,
@@ -75,7 +75,7 @@ import {
75
75
  QA_AGENTS,
76
76
  isQAAgent,
77
77
  isSubagent
78
- } from "./index-3jcyn8g6.js";
78
+ } from "./index-4wjk296r.js";
79
79
  import"./index-bpmtbmy9.js";
80
80
  import"./index-zjygnfay.js";
81
81
  import"./index-zgwm4ryv.js";
@@ -6,13 +6,13 @@ import {
6
6
  resolveSwarmKnowledgePath,
7
7
  transactKnowledge,
8
8
  wordBigrams
9
- } from "./index-cyw81ngh.js";
9
+ } from "./index-z6qe8wft.js";
10
10
  import {
11
11
  countEntryContradictionsInWindow,
12
12
  countEntryViolationsInWindow,
13
13
  readKnowledgeEvents,
14
14
  recordKnowledgeEvent
15
- } from "./index-e9tx99ds.js";
15
+ } from "./index-hwnpd4tw.js";
16
16
  import {
17
17
  init_knowledge_types,
18
18
  isActiveStatus
@@ -190,11 +190,11 @@ async function maybeQuarantineOnContradiction(directory, entryId, threshold, win
190
190
  alreadyInactive: true
191
191
  };
192
192
  }
193
- const { quarantineEntry } = await import("./knowledge-validator-jxqj96cx.js");
193
+ const { quarantineEntry } = await import("./knowledge-validator-rqj7kech.js");
194
194
  let policyConfig;
195
195
  try {
196
- const { KnowledgeConfigSchema } = await import("./schema-f7jgrtxj.js");
197
- const { loadPluginConfigWithMeta } = await import("./index-yr6x707c.js");
196
+ const { KnowledgeConfigSchema } = await import("./schema-g7rs20c6.js");
197
+ const { loadPluginConfigWithMeta } = await import("./index-v7g8dnyh.js");
198
198
  const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
199
199
  policyConfig = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
200
200
  } catch {
@@ -4,7 +4,7 @@ import {
4
4
  } from "./index-z6xqpmqg.js";
5
5
  import {
6
6
  bunSpawnSync
7
- } from "./index-y111zefa.js";
7
+ } from "./index-4nt52yr9.js";
8
8
  import {
9
9
  warn
10
10
  } from "./index-zgwm4ryv.js";
@@ -3,7 +3,7 @@ import {
3
3
  atomicWriteFile,
4
4
  taskEvidencePath,
5
5
  withTaskEvidenceLock
6
- } from "./index-gvhvz176.js";
6
+ } from "./index-2eet124q.js";
7
7
  import {
8
8
  telemetry
9
9
  } from "./index-a5eba0t8.js";
@@ -6,7 +6,7 @@ import {
6
6
  PluginConfigSchema,
7
7
  init_schema,
8
8
  resolveExternalSkillsConfig
9
- } from "./index-8p9pasnp.js";
9
+ } from "./index-kyz7259r.js";
10
10
  import {
11
11
  advisoryWarn,
12
12
  init_warning_buffer
@@ -14,7 +14,7 @@ import {
14
14
  import {
15
15
  DEFAULT_WORKTREE_ISOLATION_CONFIG,
16
16
  init_constants
17
- } from "./index-3jcyn8g6.js";
17
+ } from "./index-4wjk296r.js";
18
18
  import {
19
19
  MAX_MERGE_DEPTH,
20
20
  deepMerge,
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  validateSwarmPath
4
- } from "./index-x9q4bbhd.js";
4
+ } from "./index-k87hs2ff.js";
5
5
 
6
6
  // src/hooks/delegation-gate/worktree-provisioning-owner.ts
7
7
  import { createHash, randomBytes } from "crypto";
@@ -6,10 +6,10 @@ import {
6
6
  } from "./index-ae75rja9.js";
7
7
  import {
8
8
  resolveKnowledgeStoreDir
9
- } from "./index-668dpw5e.js";
9
+ } from "./index-6mvbjqbt.js";
10
10
  import {
11
11
  atomicWriteFile
12
- } from "./index-gvhvz176.js";
12
+ } from "./index-2eet124q.js";
13
13
  import {
14
14
  init_knowledge_types,
15
15
  isActiveStatus
@@ -702,7 +702,7 @@ async function applyConfidenceFloorAction(directory, touched, options) {
702
702
  const recovered = touched.filter((e) => e.confidence > CONFIDENCE_FLOOR + FLOOR_EPSILON && e.confidence_floor_demoted);
703
703
  if (atFloor.length === 0 && recovered.length === 0)
704
704
  return;
705
- const { readKnowledgeCounterRollups, effectiveRetrievalOutcomes } = await import("./knowledge-events-raevm18w.js");
705
+ const { readKnowledgeCounterRollups, effectiveRetrievalOutcomes } = await import("./knowledge-events-jbw9j94n.js");
706
706
  const rollups = await readKnowledgeCounterRollups(directory);
707
707
  const flagIds = new Set;
708
708
  for (const e of atFloor) {
@@ -769,11 +769,11 @@ async function applyConfidenceFloorAction(directory, touched, options) {
769
769
  });
770
770
  }
771
771
  if (action === "quarantine" && toQuarantine.length > 0) {
772
- const { quarantineEntry } = await import("./knowledge-validator-jxqj96cx.js");
773
- const { KnowledgeConfigSchema } = await import("./schema-f7jgrtxj.js");
772
+ const { quarantineEntry } = await import("./knowledge-validator-rqj7kech.js");
773
+ const { KnowledgeConfigSchema } = await import("./schema-g7rs20c6.js");
774
774
  let config;
775
775
  try {
776
- const { loadPluginConfigWithMeta } = await import("./index-yr6x707c.js");
776
+ const { loadPluginConfigWithMeta } = await import("./index-v7g8dnyh.js");
777
777
  const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
778
778
  config = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
779
779
  } catch {
package/dist/cli/index.js CHANGED
@@ -6,57 +6,57 @@ import {
6
6
  getPluginConfigDir,
7
7
  getPluginLockFilePaths,
8
8
  resolveCommand
9
- } from "./index-a7nh382r.js";
10
- import"./index-vm4xw9z3.js";
11
- import"./index-wrt6m5ze.js";
12
- import"./index-y64jv2pe.js";
13
- import"./index-y47dwge1.js";
14
- import"./index-0wp67gqj.js";
15
- import"./index-s608d3hw.js";
9
+ } from "./index-tkg6rapy.js";
10
+ import"./index-xsxrhakg.js";
11
+ import"./index-ajwmn8gp.js";
12
+ import"./index-0mzz46we.js";
13
+ import"./index-1yd38ajy.js";
14
+ import"./index-4fr94329.js";
15
+ import"./index-hckq2r5m.js";
16
16
  import"./index-y8552snf.js";
17
17
  import"./index-4905hd2m.js";
18
18
  import"./index-134d35c1.js";
19
- import"./index-ktagrqxw.js";
20
- import"./index-w71cq27a.js";
21
- import"./index-6w1re1qn.js";
19
+ import"./index-6axm8q3s.js";
20
+ import"./index-xeyr62x0.js";
21
+ import"./index-ba5e5e3n.js";
22
22
  import"./index-6mjf4vr1.js";
23
23
  import"./index-c8s9a3zh.js";
24
24
  import"./index-9ss2m4rs.js";
25
- import"./index-wsdnttf4.js";
26
- import"./index-5w7ekpy3.js";
27
- import"./index-ffpmqx30.js";
28
- import"./index-3radty3f.js";
25
+ import"./index-74hpm6sh.js";
26
+ import"./index-xzzcfwwm.js";
27
+ import"./index-1jbj7vzv.js";
28
+ import"./index-jqn332jx.js";
29
29
  import"./index-rtry5xyf.js";
30
- import"./index-cyw81ngh.js";
31
- import"./index-e9tx99ds.js";
30
+ import"./index-z6qe8wft.js";
31
+ import"./index-hwnpd4tw.js";
32
32
  import"./index-ae75rja9.js";
33
- import"./index-668dpw5e.js";
34
- import"./index-gvhvz176.js";
35
- import"./index-q11t5erh.js";
33
+ import"./index-6mvbjqbt.js";
34
+ import"./index-2eet124q.js";
35
+ import"./index-yawwwhmc.js";
36
36
  import"./index-gprxjmm7.js";
37
37
  import"./index-n832052r.js";
38
38
  import {
39
39
  init_package,
40
40
  package_default
41
- } from "./index-8p9pasnp.js";
41
+ } from "./index-kyz7259r.js";
42
42
  import"./index-bk5tah7q.js";
43
43
  import"./index-8fwhhayc.js";
44
44
  import"./index-q1exe2b3.js";
45
- import"./index-5zyk8qgv.js";
46
- import"./index-3eddtgxt.js";
45
+ import"./index-5syvwd8g.js";
46
+ import"./index-05mms0va.js";
47
47
  import"./index-556ja8an.js";
48
48
  import"./index-4xbyy6aw.js";
49
49
  import"./index-1kz6da87.js";
50
- import"./index-q7ezzgwq.js";
50
+ import"./index-yh0q21nj.js";
51
51
  import"./index-b8zgtz81.js";
52
- import"./index-a12906mj.js";
52
+ import"./index-gen82t10.js";
53
53
  import"./index-4rhhvd1a.js";
54
54
  import {
55
55
  DEFAULT_AGENT_CONFIGS,
56
56
  init_constants
57
- } from "./index-3jcyn8g6.js";
58
- import"./index-prmb5qfp.js";
59
- import"./index-x9q4bbhd.js";
57
+ } from "./index-4wjk296r.js";
58
+ import"./index-mv0czd9c.js";
59
+ import"./index-k87hs2ff.js";
60
60
  import"./index-ed5ykebp.js";
61
61
  import"./index-5j6chvj8.js";
62
62
  import"./index-7g4c7s5r.js";
@@ -64,7 +64,7 @@ import"./index-a5eba0t8.js";
64
64
  import"./index-bpmtbmy9.js";
65
65
  import"./index-z6xqpmqg.js";
66
66
  import"./index-zjygnfay.js";
67
- import"./index-y111zefa.js";
67
+ import"./index-4nt52yr9.js";
68
68
  import"./index-zgwm4ryv.js";
69
69
  import"./index-a76rekgs.js";
70
70
 
@@ -8,19 +8,19 @@ import {
8
8
  maybeEscalateOnViolation,
9
9
  maybeQuarantineOnContradiction,
10
10
  readRecentEscalations
11
- } from "./index-w71cq27a.js";
12
- import"./index-cyw81ngh.js";
13
- import"./index-e9tx99ds.js";
11
+ } from "./index-xeyr62x0.js";
12
+ import"./index-z6qe8wft.js";
13
+ import"./index-hwnpd4tw.js";
14
14
  import"./index-ae75rja9.js";
15
- import"./index-668dpw5e.js";
16
- import"./index-gvhvz176.js";
15
+ import"./index-6mvbjqbt.js";
16
+ import"./index-2eet124q.js";
17
17
  import"./index-bk5tah7q.js";
18
18
  import"./index-ed5ykebp.js";
19
19
  import"./index-5j6chvj8.js";
20
20
  import"./index-7g4c7s5r.js";
21
21
  import"./index-a5eba0t8.js";
22
22
  import"./index-bpmtbmy9.js";
23
- import"./index-y111zefa.js";
23
+ import"./index-4nt52yr9.js";
24
24
  import"./index-zgwm4ryv.js";
25
25
  import"./index-a76rekgs.js";
26
26
  export {
@@ -28,16 +28,16 @@ import {
28
28
  resolveKnowledgeCounterBaselinePath,
29
29
  resolveKnowledgeEventsPath,
30
30
  resolveLegacyApplicationLogPath
31
- } from "./index-e9tx99ds.js";
31
+ } from "./index-hwnpd4tw.js";
32
32
  import"./index-ae75rja9.js";
33
- import"./index-668dpw5e.js";
34
- import"./index-gvhvz176.js";
33
+ import"./index-6mvbjqbt.js";
34
+ import"./index-2eet124q.js";
35
35
  import"./index-ed5ykebp.js";
36
36
  import"./index-5j6chvj8.js";
37
37
  import"./index-7g4c7s5r.js";
38
38
  import"./index-a5eba0t8.js";
39
39
  import"./index-bpmtbmy9.js";
40
- import"./index-y111zefa.js";
40
+ import"./index-4nt52yr9.js";
41
41
  import"./index-zgwm4ryv.js";
42
42
  import"./index-a76rekgs.js";
43
43
  export {
@@ -12,14 +12,14 @@ import {
12
12
  resolveLinkDir,
13
13
  sanitizeLinkId,
14
14
  writeLinkPointer
15
- } from "./index-668dpw5e.js";
16
- import"./index-gvhvz176.js";
15
+ } from "./index-6mvbjqbt.js";
16
+ import"./index-2eet124q.js";
17
17
  import"./index-ed5ykebp.js";
18
18
  import"./index-5j6chvj8.js";
19
19
  import"./index-7g4c7s5r.js";
20
20
  import"./index-a5eba0t8.js";
21
21
  import"./index-bpmtbmy9.js";
22
- import"./index-y111zefa.js";
22
+ import"./index-4nt52yr9.js";
23
23
  import"./index-zgwm4ryv.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-cyw81ngh.js";
44
+ } from "./index-z6qe8wft.js";
45
45
  import {
46
46
  resolveHiveDataDir
47
47
  } from "./index-ae75rja9.js";
48
- import"./index-668dpw5e.js";
49
- import"./index-gvhvz176.js";
48
+ import"./index-6mvbjqbt.js";
49
+ import"./index-2eet124q.js";
50
50
  import"./index-bk5tah7q.js";
51
51
  import"./index-ed5ykebp.js";
52
52
  import"./index-5j6chvj8.js";
53
53
  import"./index-7g4c7s5r.js";
54
54
  import"./index-a5eba0t8.js";
55
55
  import"./index-bpmtbmy9.js";
56
- import"./index-y111zefa.js";
56
+ import"./index-4nt52yr9.js";
57
57
  import"./index-zgwm4ryv.js";
58
58
  import"./index-a76rekgs.js";
59
59
  export {
@@ -23,21 +23,21 @@ import {
23
23
  validateLesson,
24
24
  validateSkillCandidatePath,
25
25
  validateSkillPath
26
- } from "./index-ffpmqx30.js";
27
- import"./index-3radty3f.js";
26
+ } from "./index-1jbj7vzv.js";
27
+ import"./index-jqn332jx.js";
28
28
  import"./index-rtry5xyf.js";
29
- import"./index-cyw81ngh.js";
30
- import"./index-e9tx99ds.js";
29
+ import"./index-z6qe8wft.js";
30
+ import"./index-hwnpd4tw.js";
31
31
  import"./index-ae75rja9.js";
32
- import"./index-668dpw5e.js";
33
- import"./index-gvhvz176.js";
32
+ import"./index-6mvbjqbt.js";
33
+ import"./index-2eet124q.js";
34
34
  import"./index-bk5tah7q.js";
35
35
  import"./index-ed5ykebp.js";
36
36
  import"./index-5j6chvj8.js";
37
37
  import"./index-7g4c7s5r.js";
38
38
  import"./index-a5eba0t8.js";
39
39
  import"./index-bpmtbmy9.js";
40
- import"./index-y111zefa.js";
40
+ import"./index-4nt52yr9.js";
41
41
  import"./index-zgwm4ryv.js";
42
42
  import"./index-a76rekgs.js";
43
43
  export {
@@ -41,8 +41,8 @@ import {
41
41
  sweepStaleDelegations,
42
42
  updateCoderSettlement,
43
43
  writeDelegationFallback
44
- } from "./index-prmb5qfp.js";
45
- import"./index-x9q4bbhd.js";
44
+ } from "./index-mv0czd9c.js";
45
+ import"./index-k87hs2ff.js";
46
46
  import"./index-ed5ykebp.js";
47
47
  import"./index-5j6chvj8.js";
48
48
  import"./index-7g4c7s5r.js";
@@ -50,7 +50,7 @@ import"./index-a5eba0t8.js";
50
50
  import"./index-bpmtbmy9.js";
51
51
  import"./index-z6xqpmqg.js";
52
52
  import"./index-zjygnfay.js";
53
- import"./index-y111zefa.js";
53
+ import"./index-4nt52yr9.js";
54
54
  import"./index-zgwm4ryv.js";
55
55
  import"./index-a76rekgs.js";
56
56
  export {
@@ -9,8 +9,8 @@ import {
9
9
  sweepStale,
10
10
  unsubscribe,
11
11
  updateSnapshot
12
- } from "./index-5zyk8qgv.js";
13
- import"./index-x9q4bbhd.js";
12
+ } from "./index-5syvwd8g.js";
13
+ import"./index-k87hs2ff.js";
14
14
  import"./index-ed5ykebp.js";
15
15
  import"./index-5j6chvj8.js";
16
16
  import"./index-7g4c7s5r.js";
@@ -18,7 +18,7 @@ import"./index-a5eba0t8.js";
18
18
  import"./index-bpmtbmy9.js";
19
19
  import"./index-z6xqpmqg.js";
20
20
  import"./index-zjygnfay.js";
21
- import"./index-y111zefa.js";
21
+ import"./index-4nt52yr9.js";
22
22
  import"./index-zgwm4ryv.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-wrt6m5ze.js";
7
- import"./index-s608d3hw.js";
6
+ } from "./index-ajwmn8gp.js";
7
+ import"./index-hckq2r5m.js";
8
8
  import"./index-y8552snf.js";
9
- import"./index-gvhvz176.js";
9
+ import"./index-2eet124q.js";
10
10
  import"./index-ed5ykebp.js";
11
11
  import"./index-5j6chvj8.js";
12
12
  import"./index-7g4c7s5r.js";
13
13
  import"./index-a5eba0t8.js";
14
14
  import"./index-bpmtbmy9.js";
15
- import"./index-y111zefa.js";
15
+ import"./index-4nt52yr9.js";
16
16
  import"./index-a76rekgs.js";
17
17
  export {
18
18
  runEvaluation,
@@ -4,18 +4,18 @@ import {
4
4
  alreadyCuratedThisGeneration,
5
5
  claimNextScanBatch,
6
6
  getScanStatus
7
- } from "./index-6w1re1qn.js";
8
- import"./index-cyw81ngh.js";
7
+ } from "./index-ba5e5e3n.js";
8
+ import"./index-z6qe8wft.js";
9
9
  import"./index-ae75rja9.js";
10
- import"./index-668dpw5e.js";
11
- import"./index-gvhvz176.js";
10
+ import"./index-6mvbjqbt.js";
11
+ import"./index-2eet124q.js";
12
12
  import"./index-bk5tah7q.js";
13
13
  import"./index-ed5ykebp.js";
14
14
  import"./index-5j6chvj8.js";
15
15
  import"./index-7g4c7s5r.js";
16
16
  import"./index-a5eba0t8.js";
17
17
  import"./index-bpmtbmy9.js";
18
- import"./index-y111zefa.js";
18
+ import"./index-4nt52yr9.js";
19
19
  import"./index-zgwm4ryv.js";
20
20
  import"./index-a76rekgs.js";
21
21
  export {
@@ -96,9 +96,9 @@ import {
96
96
  resolveGeneratedAgentRole,
97
97
  resolveGuardrailsConfig,
98
98
  stripKnownSwarmPrefix
99
- } from "./index-8p9pasnp.js";
99
+ } from "./index-kyz7259r.js";
100
100
  import"./index-bk5tah7q.js";
101
- import"./index-3jcyn8g6.js";
101
+ import"./index-4wjk296r.js";
102
102
  import"./index-bpmtbmy9.js";
103
103
  import"./index-zjygnfay.js";
104
104
  import"./index-a76rekgs.js";
@@ -23,7 +23,7 @@ import {
23
23
  tombstoneScopeBinding,
24
24
  writeScopeBindingToDisk,
25
25
  writeScopeToDisk
26
- } from "./index-3eddtgxt.js";
26
+ } from "./index-05mms0va.js";
27
27
  import"./index-556ja8an.js";
28
28
  import"./index-4xbyy6aw.js";
29
29
  import"./index-1kz6da87.js";
@@ -31,7 +31,7 @@ import"./index-5j6chvj8.js";
31
31
  import"./index-7g4c7s5r.js";
32
32
  import"./index-a5eba0t8.js";
33
33
  import"./index-bpmtbmy9.js";
34
- import"./index-y111zefa.js";
34
+ import"./index-4nt52yr9.js";
35
35
  import"./index-zgwm4ryv.js";
36
36
  import"./index-a76rekgs.js";
37
37
  export {
@@ -33,15 +33,15 @@ import {
33
33
  sanitizeSlug,
34
34
  selectCandidateEntries,
35
35
  writeEvalStub
36
- } from "./index-ktagrqxw.js";
37
- import"./index-ffpmqx30.js";
38
- import"./index-3radty3f.js";
36
+ } from "./index-6axm8q3s.js";
37
+ import"./index-1jbj7vzv.js";
38
+ import"./index-jqn332jx.js";
39
39
  import"./index-rtry5xyf.js";
40
- import"./index-cyw81ngh.js";
41
- import"./index-e9tx99ds.js";
40
+ import"./index-z6qe8wft.js";
41
+ import"./index-hwnpd4tw.js";
42
42
  import"./index-ae75rja9.js";
43
- import"./index-668dpw5e.js";
44
- import"./index-gvhvz176.js";
43
+ import"./index-6mvbjqbt.js";
44
+ import"./index-2eet124q.js";
45
45
  import"./index-bk5tah7q.js";
46
46
  import"./index-4rhhvd1a.js";
47
47
  import"./index-ed5ykebp.js";
@@ -49,7 +49,7 @@ import"./index-5j6chvj8.js";
49
49
  import"./index-7g4c7s5r.js";
50
50
  import"./index-a5eba0t8.js";
51
51
  import"./index-bpmtbmy9.js";
52
- import"./index-y111zefa.js";
52
+ import"./index-4nt52yr9.js";
53
53
  import"./index-zgwm4ryv.js";
54
54
  import"./index-a76rekgs.js";
55
55
  export {
@@ -2,7 +2,7 @@
2
2
  import"./index-a76rekgs.js";
3
3
 
4
4
  // src/background/task-envelope.ts
5
- var TASK_ENVELOPE_RE = /<task\s+id="([^"]+)"\s+state="(running|completed|error)"\s*>/;
5
+ var TASK_ENVELOPE_RE = /<task\s+id="([^"]+)"\s+state="(running|completed|error|cancelled|canceled)"\s*>/;
6
6
  var MAX_TASK_ENVELOPE_TEXT_CHARS = 20000;
7
7
  function parseTaskEnvelope(text) {
8
8
  if (typeof text !== "string" || text.length === 0)
@@ -11,22 +11,25 @@ function parseTaskEnvelope(text) {
11
11
  if (!match)
12
12
  return null;
13
13
  const sessionId = match[1];
14
- const state = match[2];
14
+ const rawState = match[2];
15
+ const state = rawState === "canceled" ? "cancelled" : rawState;
15
16
  if (!sessionId)
16
17
  return null;
17
18
  const summary = extractTagText(text, "summary");
18
- const resultRaw = state === "error" ? extractTagText(text, "task_error") : extractTagText(text, "task_result");
19
+ const resultRaw = state === "error" || state === "cancelled" ? extractTagText(text, "task_error") ?? extractTagText(text, "task_result") : extractTagText(text, "task_result");
19
20
  const bounded = boundEnvelopeText(resultRaw);
20
21
  return {
21
22
  sessionId,
22
23
  state,
23
24
  ...summary !== undefined ? { summary } : {},
24
- ...state === "error" && bounded ? {
25
- errorText: bounded.text,
26
- resultChars: bounded.chars,
27
- resultTruncated: bounded.truncated
25
+ ...state === "error" || state === "cancelled" ? {
26
+ ...bounded ? {
27
+ errorText: bounded.text,
28
+ resultChars: bounded.chars,
29
+ resultTruncated: bounded.truncated
30
+ } : {}
28
31
  } : {},
29
- ...state !== "error" && bounded ? {
32
+ ...state !== "error" && state !== "cancelled" && bounded ? {
30
33
  resultText: bounded.text,
31
34
  resultChars: bounded.chars,
32
35
  resultTruncated: bounded.truncated
@@ -37,8 +37,8 @@ import {
37
37
  resolveRemoteRefsContainingHeadAsync,
38
38
  switchPrFeedbackTrackingCandidateAsync,
39
39
  workspaceSnapshotMatches
40
- } from "./index-wsdnttf4.js";
41
- import"./index-y111zefa.js";
40
+ } from "./index-74hpm6sh.js";
41
+ import"./index-4nt52yr9.js";
42
42
  import"./index-a76rekgs.js";
43
43
  export {
44
44
  workspaceSnapshotMatches,
@@ -3,15 +3,15 @@ import {
3
3
  WORKTREE_PROVISIONING_OWNER_LEASE_MS,
4
4
  removeWorktreeProvisioningOwner,
5
5
  scanWorktreeProvisioningOwnersForRecovery
6
- } from "./index-q7ezzgwq.js";
6
+ } from "./index-yh0q21nj.js";
7
7
  import {
8
8
  scanWorktreeMergeFailuresForRecovery
9
9
  } from "./index-b8zgtz81.js";
10
10
  import {
11
11
  scanDelegationFallbacksForRecovery,
12
12
  scanDelegationsForRecovery
13
- } from "./index-prmb5qfp.js";
14
- import"./index-x9q4bbhd.js";
13
+ } from "./index-mv0czd9c.js";
14
+ import"./index-k87hs2ff.js";
15
15
  import"./index-ed5ykebp.js";
16
16
  import"./index-5j6chvj8.js";
17
17
  import"./index-7g4c7s5r.js";
@@ -21,7 +21,7 @@ import"./index-z6xqpmqg.js";
21
21
  import"./index-zjygnfay.js";
22
22
  import {
23
23
  bunSpawn
24
- } from "./index-y111zefa.js";
24
+ } from "./index-4nt52yr9.js";
25
25
  import"./index-zgwm4ryv.js";
26
26
  import"./index-a76rekgs.js";
27
27
 
@@ -5,8 +5,8 @@
5
5
  * gate (issue #2012). When the critic returns APPROVED but the mechanical
6
6
  * snapshot recorder fails to persist it (verdict-format mismatch, dispatch-
7
7
  * signal miss, or a plan.json read race), the gate permanently blocks ALL
8
- * coder delegations because `critic_pre_plan` defaults to `true` and cannot be
9
- * disabled. This records a manual `plan_critic_gate` approval snapshot so the
8
+ * coder delegations when the effective `critic_pre_plan` gate is enabled. This
9
+ * records a manual `plan_critic_gate` approval snapshot so the
10
10
  * gate unblocks, with a distinct `method: 'manual_override'` audit marker.
11
11
  *
12
12
  * The command is `toolPolicy: 'restricted'` — the agent cannot run it via
@@ -627,7 +627,7 @@ export declare const COMMAND_REGISTRY: {
627
627
  readonly handler: (ctx: CommandContext) => Promise<string>;
628
628
  readonly description: "Record a MANUAL plan-critic approval to unblock the critic_pre_plan execution gate [reason...]";
629
629
  readonly args: "[reason...]";
630
- readonly details: "Human-only escape hatch for the ratchet-tighter critic_pre_plan execution gate (issue #2012). When the critic already returned APPROVED but the mechanical snapshot recorder failed to persist it (verdict-format mismatch, dispatch-signal miss, or a plan.json read race), the gate permanently blocks ALL coder delegations because critic_pre_plan defaults to true and cannot be disabled. Running this records a manual plan_critic_gate approval snapshot so the gate unblocks, with a distinct method: \"manual_override\" audit marker. The agent itself cannot run this command; it must call the approve_plan_critic tool (or ask you to run this command). Both paths funnel into the same forceRecordPlanCriticApproval hook, which requires an active architect session. An audit event is appended to .swarm/events.jsonl. Prefer re-running MODE: CRITIC-GATE first; use this only as an escape hatch when a legitimate APPROVED was lost.";
630
+ readonly details: "Human-only escape hatch for the ratchet-tighter critic_pre_plan execution gate (issue #2012). When the critic already returned APPROVED but the mechanical snapshot recorder failed to persist it (verdict-format mismatch, dispatch-signal miss, or a plan.json read race), an enabled critic_pre_plan gate blocks coder delegation. Running this records a manual plan_critic_gate approval snapshot so the gate unblocks, with a distinct method: \"manual_override\" audit marker. The agent itself cannot run this command; it must call the approve_plan_critic tool (or ask you to run this command). Both paths funnel into the same forceRecordPlanCriticApproval hook, which requires an active architect session. An audit event is appended to .swarm/events.jsonl. Prefer re-running MODE: CRITIC-GATE first; use this only as an escape hatch when a legitimate APPROVED was lost.";
631
631
  readonly category: "utility";
632
632
  readonly toolPolicy: "restricted";
633
633
  };