opencode-swarm 7.198.2 → 7.199.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 (105) hide show
  1. package/.opencode/skills/swarm-pr-feedback/SKILL.md +6 -6
  2. package/.opencode/skills/swarm-pr-feedback/references/followup-dispositions.md +74 -0
  3. package/.opencode/skills/swarm-pr-review/references/lane-output-recoverability.md +25 -0
  4. package/binaries/win32-arm64/swarm-sandbox-runner.exe +0 -0
  5. package/binaries/win32-x64/swarm-sandbox-runner.exe +0 -0
  6. package/dist/background/pending-delegations.d.ts +1 -1
  7. package/dist/background/pr-review-contract.d.ts +10 -0
  8. package/dist/cli/{auto-checkpoint-ekp5j5v5.js → auto-checkpoint-x13d1g1t.js} +8 -8
  9. package/dist/cli/{checkpoint-30yrbqee.js → checkpoint-68nb8k3t.js} +16 -16
  10. package/dist/cli/{coder-settlement-t3zcgsd6.js → coder-settlement-kmdmdpyy.js} +12 -12
  11. package/dist/cli/{config-doctor-6w105xpy.js → config-doctor-4b0jb15n.js} +15 -15
  12. package/dist/cli/{core-6hyt1hg6.js → core-6kkm2vrz.js} +3 -3
  13. package/dist/cli/{curation-policy-m8ng2vm5.js → curation-policy-0smbd33w.js} +6 -6
  14. package/dist/cli/{curator-drift-z83e3a60.js → curator-drift-axcgdjy4.js} +8 -8
  15. package/dist/cli/curator-llm-factory-58ec737y.js +82 -0
  16. package/dist/cli/{curator-bzy7cess.js → curator-z8xzxh9f.js} +42 -42
  17. package/dist/cli/{doctor-knowledge-receipt-phase-id-8av1860z.js → doctor-knowledge-receipt-phase-id-hkjt6hv4.js} +8 -8
  18. package/dist/cli/{evidence-summary-service-ym7y7w5k.js → evidence-summary-service-981cx8wa.js} +19 -19
  19. package/dist/cli/{gate-evidence-vvhtzwry.js → gate-evidence-zyvwsp7a.js} +7 -7
  20. package/dist/cli/guardrail-explain-23b0amne.js +83 -0
  21. package/dist/cli/{guardrail-log-4f0jxq61.js → guardrail-log-s2gxszvm.js} +8 -7
  22. package/dist/cli/{guardrail-reset-cqq3yk9s.js → guardrail-reset-kt18vr45.js} +42 -42
  23. package/dist/cli/{hive-promoter-vvgdsx8s.js → hive-promoter-fz7ep8h4.js} +42 -42
  24. package/dist/cli/{index-rnjtf5kn.js → index-14vhp87b.js} +2 -2
  25. package/dist/cli/{index-yk1vnpzx.js → index-2bc7zfw3.js} +1 -1
  26. package/dist/cli/{index-d31b2zvf.js → index-2mx2gn97.js} +1 -1
  27. package/dist/cli/{index-5hbb3088.js → index-3zzxrwaf.js} +4 -4
  28. package/dist/cli/{index-bj916p5e.js → index-408tpd21.js} +261 -21
  29. package/dist/cli/{index-gc9dvmy7.js → index-4rrff8k6.js} +2 -2
  30. package/dist/cli/{index-89j5h1j9.js → index-4s6kdsfr.js} +1 -1
  31. package/dist/cli/{index-v85gn9jm.js → index-61fa8hg7.js} +5 -5
  32. package/dist/cli/{index-7e9mqse6.js → index-61m1jw7p.js} +3 -3
  33. package/dist/cli/{index-4s3770gs.js → index-6dtt0brw.js} +4 -4
  34. package/dist/cli/{index-whmby20t.js → index-795vmpe6.js} +42 -42
  35. package/dist/cli/{index-t7qgt5yk.js → index-7c432abn.js} +2 -2
  36. package/dist/cli/{index-xez06sc1.js → index-820pzqd6.js} +1 -1
  37. package/dist/cli/{index-mx74665q.js → index-8pyg2qnw.js} +4 -4
  38. package/dist/cli/{index-v30zmakk.js → index-9ztsfved.js} +2 -2
  39. package/dist/cli/{index-tnnxvq2f.js → index-bb2rx8k2.js} +6 -6
  40. package/dist/cli/{index-qg6qn99c.js → index-bkscmz4z.js} +7 -7
  41. package/dist/cli/{index-vjwmcxz4.js → index-f900029m.js} +7 -7
  42. package/dist/cli/{index-drf91t9h.js → index-fmbqyqqw.js} +5 -5
  43. package/dist/cli/{index-cfs1k1eh.js → index-ge7vn1vz.js} +5 -5
  44. package/dist/cli/{index-e4hj8r57.js → index-h349p91m.js} +34 -3
  45. package/dist/cli/{index-tdpfecs3.js → index-hc6wa3yg.js} +2 -2
  46. package/dist/cli/{index-76mg98ac.js → index-jccs3fgn.js} +1 -1
  47. package/dist/cli/{index-wg1mt92h.js → index-jhk4000q.js} +9 -8
  48. package/dist/cli/{index-xxb2depv.js → index-m4s5a2sp.js} +7 -7
  49. package/dist/cli/{index-y81sw9vt.js → index-mzx33w6e.js} +11 -11
  50. package/dist/cli/{index-9keabj7d.js → index-n9ry04hw.js} +4 -4
  51. package/dist/cli/{index-bczx8jcg.js → index-nacmcvc4.js} +5 -12
  52. package/dist/cli/{index-d9jrzepr.js → index-npy15m50.js} +3 -3
  53. package/dist/cli/{index-rqxwv4q5.js → index-nr1pj3hy.js} +1 -1
  54. package/dist/cli/{index-6pc5j9rb.js → index-nreezgrd.js} +3 -3
  55. package/dist/cli/{index-ehw0s6xa.js → index-p35gw2x7.js} +1 -1
  56. package/dist/cli/{index-xt4q610f.js → index-p5pgjp7n.js} +1 -1
  57. package/dist/cli/{index-166xny29.js → index-pf0xrx9w.js} +605 -172
  58. package/dist/cli/{index-59w9zfc5.js → index-px1dnna2.js} +5 -5
  59. package/dist/cli/{index-84r9rydf.js → index-pxdc0qn1.js} +2 -2
  60. package/dist/cli/{index-5h5tj8wc.js → index-qqv9rr8k.js} +44 -44
  61. package/dist/cli/{index-hd3d7rcw.js → index-r7ayh42s.js} +3 -3
  62. package/dist/cli/{index-rfcb9f54.js → index-t1t93qm0.js} +3 -2
  63. package/dist/cli/{index-xrghsqg3.js → index-vj0zede7.js} +4 -4
  64. package/dist/cli/{index-wrn4khfb.js → index-w00dj8p5.js} +1 -1
  65. package/dist/cli/{index-0ap067j7.js → index-w4624tpw.js} +2 -2
  66. package/dist/cli/{index-mjmsq8t7.js → index-w7d8gcj0.js} +2 -2
  67. package/dist/cli/{index-h86e4jp9.js → index-w9f2jbwe.js} +2 -2
  68. package/dist/cli/{index-bd4szzja.js → index-weewx5nx.js} +1 -1
  69. package/dist/cli/{index-0y5yvag6.js → index-xj9260dh.js} +6 -6
  70. package/dist/cli/{index-p4xmq6aa.js → index-ywb5er8g.js} +1 -1
  71. package/dist/cli/index.js +43 -43
  72. package/dist/cli/{knowledge-escalator-8hrnc4bd.js → knowledge-escalator-cf6m9y0s.js} +14 -14
  73. package/dist/cli/{knowledge-events-v2abqt9z.js → knowledge-events-hn5hymam.js} +12 -12
  74. package/dist/cli/{knowledge-link-5qt3pe5v.js → knowledge-link-1f91bzcc.js} +5 -5
  75. package/dist/cli/{knowledge-store-9y17zzce.js → knowledge-store-mgqk4hvy.js} +6 -6
  76. package/dist/cli/{knowledge-validator-7red2zwb.js → knowledge-validator-x9yrte9q.js} +8 -8
  77. package/dist/cli/{mcp-gbyndb15.js → mcp-hpmh4d6d.js} +1 -1
  78. package/dist/cli/{model-preflight-1tsaksc7.js → model-preflight-ry5jjnx4.js} +42 -42
  79. package/dist/cli/{pending-delegations-yg769m4y.js → pending-delegations-j850kj5p.js} +12 -12
  80. package/dist/cli/{pr-subscriptions-mc2mvjkj.js → pr-subscriptions-mme9gb5e.js} +12 -12
  81. package/dist/cli/{pr-workflow-gate-0fb280b2.js → pr-workflow-gate-n6bj3dnn.js} +46 -42
  82. package/dist/cli/{runner-rwya5yhg.js → runner-qe3fkzx5.js} +6 -6
  83. package/dist/cli/{scan-cursor-g74j6gcr.js → scan-cursor-fdpxbx4f.js} +7 -7
  84. package/dist/cli/{schema-q2v7px9y.js → schema-amcjvk8a.js} +1 -1
  85. package/dist/cli/{scope-persistence-g88f0163.js → scope-persistence-mp4kqpk2.js} +15 -15
  86. package/dist/cli/{server-j3a7q7gg.js → server-ptdvpwyd.js} +42 -42
  87. package/dist/cli/{skill-generator-30bjrvcc.js → skill-generator-v59hhybn.js} +16 -16
  88. package/dist/cli/{snapshot-coordination-init-9ekvft16.js → snapshot-coordination-init-nv6e4svp.js} +42 -42
  89. package/dist/cli/{speckit-checkoff-sx24fz29.js → speckit-checkoff-me8kd3wd.js} +4 -4
  90. package/dist/cli/{telemetry-t3425cht.js → telemetry-6yv06xyz.js} +1 -1
  91. package/dist/cli/{workspace-snapshot-bst64vey.js → workspace-snapshot-vhvrkbbb.js} +3 -3
  92. package/dist/cli/{worktree-collision-ownership-shtk6dsk.js → worktree-collision-ownership-84qyqars.js} +13 -13
  93. package/dist/cli/{worktree-isolation-x41cgd9n.js → worktree-isolation-99qvz8ap.js} +42 -42
  94. package/dist/config/schema.d.ts +2 -0
  95. package/dist/config/skill-contract-digest.d.ts +29 -4
  96. package/dist/hooks/guardrails/file-authority.d.ts +17 -0
  97. package/dist/hooks/pr-workflow-gate.d.ts +17 -0
  98. package/dist/hooks/skill-scoring.d.ts +40 -0
  99. package/dist/index.js +129 -120
  100. package/dist/pr-review/verdict-settlement.d.ts +40 -4
  101. package/dist/state.d.ts +49 -0
  102. package/opencode-swarm.schema.json +4 -0
  103. package/package.json +1 -1
  104. package/dist/cli/curator-llm-factory-ykpty14a.js +0 -82
  105. package/dist/cli/guardrail-explain-1ethgkvp.js +0 -83
@@ -4,7 +4,7 @@ import {
4
4
  ensureTaskCheckpointReceipt,
5
5
  loadPlan,
6
6
  updateTaskCheckpointReceipt
7
- } from "./index-y81sw9vt.js";
7
+ } from "./index-mzx33w6e.js";
8
8
  import {
9
9
  tool
10
10
  } from "./index-9nyqt3kb.js";
@@ -17,13 +17,13 @@ import {
17
17
  } from "./index-g4fs6z4e.js";
18
18
  import {
19
19
  validateSwarmPath
20
- } from "./index-xez06sc1.js";
20
+ } from "./index-820pzqd6.js";
21
21
  import {
22
22
  readLedgerEvents
23
- } from "./index-drf91t9h.js";
23
+ } from "./index-fmbqyqqw.js";
24
24
  import {
25
25
  appendCoreEventSync
26
- } from "./index-e4hj8r57.js";
26
+ } from "./index-h349p91m.js";
27
27
  import {
28
28
  derivePlanId,
29
29
  derivePlanIdentityHash
@@ -38,10 +38,10 @@ import {
38
38
  } from "./index-ejhxgyvm.js";
39
39
  import {
40
40
  atomicWriteSwarmFileSync
41
- } from "./index-p4xmq6aa.js";
41
+ } from "./index-ywb5er8g.js";
42
42
  import {
43
43
  loadPluginConfigWithMeta
44
- } from "./index-bd4szzja.js";
44
+ } from "./index-weewx5nx.js";
45
45
  import {
46
46
  init_git_executable,
47
47
  resolveGitExecutable
@@ -1,27 +1,27 @@
1
1
  // @bun
2
2
  import {
3
3
  validateSwarmPath
4
- } from "./index-xez06sc1.js";
4
+ } from "./index-820pzqd6.js";
5
5
  import {
6
6
  deleteCoordinationState,
7
7
  importCoordinationOnce,
8
8
  listCoordinationStates,
9
9
  transitionCoordinationState,
10
10
  withCoordinationTransaction
11
- } from "./index-rqxwv4q5.js";
11
+ } from "./index-nr1pj3hy.js";
12
12
  import {
13
13
  getProjectDb,
14
14
  projectDbExists
15
- } from "./index-wrn4khfb.js";
15
+ } from "./index-w00dj8p5.js";
16
16
  import {
17
17
  observeStoreHealth
18
- } from "./index-tdpfecs3.js";
18
+ } from "./index-hc6wa3yg.js";
19
19
  import {
20
20
  withEvidenceLock
21
- } from "./index-89j5h1j9.js";
21
+ } from "./index-4s6kdsfr.js";
22
22
  import {
23
23
  telemetry
24
- } from "./index-4s3770gs.js";
24
+ } from "./index-6dtt0brw.js";
25
25
  import {
26
26
  canonicalRootKey,
27
27
  canonicalRootKeyFresh,
@@ -29,7 +29,7 @@ import {
29
29
  } from "./index-fzpt2djt.js";
30
30
  import {
31
31
  atomicWriteSwarmFileSync
32
- } from "./index-p4xmq6aa.js";
32
+ } from "./index-ywb5er8g.js";
33
33
  import {
34
34
  exports_external,
35
35
  init_zod
@@ -11,16 +11,16 @@ import {
11
11
  } from "./index-ae75rja9.js";
12
12
  import {
13
13
  resolveKnowledgeStoreDir
14
- } from "./index-yk1vnpzx.js";
14
+ } from "./index-2bc7zfw3.js";
15
15
  import {
16
16
  atomicWriteFile
17
- } from "./index-mjmsq8t7.js";
17
+ } from "./index-w7d8gcj0.js";
18
18
  import {
19
19
  require_proper_lockfile
20
20
  } from "./index-7g4c7s5r.js";
21
21
  import {
22
22
  readCachedParsedFile
23
- } from "./index-p4xmq6aa.js";
23
+ } from "./index-ywb5er8g.js";
24
24
  import {
25
25
  init_knowledge_types,
26
26
  isActiveStatus
@@ -739,7 +739,7 @@ async function applyConfidenceFloorAction(directory, touched, options) {
739
739
  const {
740
740
  readAuthoritativeKnowledgeCounterRollups,
741
741
  effectiveRetrievalOutcomes
742
- } = await import("./knowledge-events-v2abqt9z.js");
742
+ } = await import("./knowledge-events-hn5hymam.js");
743
743
  const rollups = await readAuthoritativeKnowledgeCounterRollups(directory);
744
744
  const flagIds = new Set;
745
745
  for (const e of atFloor) {
@@ -806,11 +806,11 @@ async function applyConfidenceFloorAction(directory, touched, options) {
806
806
  });
807
807
  }
808
808
  if (action === "quarantine" && toQuarantine.length > 0) {
809
- const { quarantineEntry } = await import("./knowledge-validator-7red2zwb.js");
810
- const { KnowledgeConfigSchema } = await import("./schema-q2v7px9y.js");
809
+ const { quarantineEntry } = await import("./knowledge-validator-x9yrte9q.js");
810
+ const { KnowledgeConfigSchema } = await import("./schema-amcjvk8a.js");
811
811
  let config;
812
812
  try {
813
- const { loadPluginConfigWithMeta } = await import("./index-hd3d7rcw.js");
813
+ const { loadPluginConfigWithMeta } = await import("./index-r7ayh42s.js");
814
814
  const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
815
815
  config = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
816
816
  } catch {
@@ -4,20 +4,20 @@ import {
4
4
  projectDbExists,
5
5
  withImmediateTransaction,
6
6
  withProjectDbReadOnly
7
- } from "./index-wrn4khfb.js";
7
+ } from "./index-w00dj8p5.js";
8
8
  import {
9
9
  derivePlanId,
10
10
  derivePlanIdentityHash
11
11
  } from "./index-7pmbnjvj.js";
12
12
  import {
13
13
  withEvidenceLock
14
- } from "./index-89j5h1j9.js";
14
+ } from "./index-4s6kdsfr.js";
15
15
  import {
16
16
  assertProjectRoot
17
17
  } from "./index-t7hmqgjy.js";
18
18
  import {
19
19
  emit
20
- } from "./index-4s3770gs.js";
20
+ } from "./index-6dtt0brw.js";
21
21
  import {
22
22
  ExecutionProfileSchema,
23
23
  PlanSchema,
@@ -27,11 +27,11 @@ import {
27
27
  import {
28
28
  init_loader,
29
29
  loadPluginConfig
30
- } from "./index-bd4szzja.js";
30
+ } from "./index-weewx5nx.js";
31
31
  import {
32
32
  init_package,
33
33
  package_default
34
- } from "./index-rfcb9f54.js";
34
+ } from "./index-t1t93qm0.js";
35
35
  import {
36
36
  criticalWarn,
37
37
  init_logger,
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  computePlanStructureHash
4
- } from "./index-drf91t9h.js";
4
+ } from "./index-fmbqyqqw.js";
5
5
  import {
6
6
  appendCoreEventSync
7
- } from "./index-e4hj8r57.js";
7
+ } from "./index-h349p91m.js";
8
8
  import {
9
9
  deleteCoordinationState,
10
10
  importCoordinationOnce,
@@ -12,10 +12,10 @@ import {
12
12
  transitionCoordinationState,
13
13
  transitionCoordinationStateWithinTransaction,
14
14
  withCoordinationTransaction
15
- } from "./index-rqxwv4q5.js";
15
+ } from "./index-nr1pj3hy.js";
16
16
  import {
17
17
  getProjectDb
18
- } from "./index-wrn4khfb.js";
18
+ } from "./index-w00dj8p5.js";
19
19
  import {
20
20
  canonicalExistingFilesystemPath,
21
21
  legacyCanonicalExistingFilesystemPath
@@ -32,7 +32,7 @@ import {
32
32
  import {
33
33
  atomicWriteSwarmFile,
34
34
  atomicWriteSwarmFileSync
35
- } from "./index-p4xmq6aa.js";
35
+ } from "./index-ywb5er8g.js";
36
36
  import {
37
37
  PlanSchema
38
38
  } from "./index-gx2vp8gx.js";
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  observeStoreHealth
4
- } from "./index-tdpfecs3.js";
4
+ } from "./index-hc6wa3yg.js";
5
5
  import {
6
6
  telemetry
7
- } from "./index-4s3770gs.js";
7
+ } from "./index-6dtt0brw.js";
8
8
  import {
9
9
  init_logger,
10
10
  warn
@@ -685,6 +685,37 @@ function selfHealAuthorityKeys(directory, keys) {
685
685
  mergeAuthorityKeys(directory, state, keys);
686
686
  } catch {}
687
687
  }
688
+ function getCoderRetryEscalationActions(directory, taskId, retryEpoch) {
689
+ const actions = new Set;
690
+ const prefix = `retry|${taskId}|${retryEpoch}|`;
691
+ const state = loadAuthorityIndex(directory);
692
+ if (state.kind === "corrupt") {
693
+ throw new Error("CORE_EVENT_AUTHORITY_INDEX_UNREADABLE");
694
+ }
695
+ const heal = [];
696
+ if (state.kind === "ok") {
697
+ for (const key of Object.keys(state.index.entries)) {
698
+ if (key.startsWith(prefix)) {
699
+ const action = key.slice(prefix.length);
700
+ if (RETRY_ACTIONS.has(action)) {
701
+ actions.add(action);
702
+ }
703
+ }
704
+ }
705
+ }
706
+ for (const event of scanWindowFor(directory, (e) => e.type === AUTHORITY_RETRY && e.taskId === taskId && e.retryEpoch === retryEpoch && typeof e.action === "string" && RETRY_ACTIONS.has(e.action))) {
707
+ const action = event.action;
708
+ if (!actions.has(action)) {
709
+ actions.add(action);
710
+ const key = authorityKeyFor(event);
711
+ if (key)
712
+ heal.push(key);
713
+ }
714
+ }
715
+ if (heal.length > 0)
716
+ selfHealAuthorityKeys(directory, heal);
717
+ return actions;
718
+ }
688
719
  function hasAuthorityEvent(directory, key, predicate) {
689
720
  const state = loadAuthorityIndex(directory);
690
721
  if (state.kind === "corrupt") {
@@ -904,4 +935,4 @@ function emitHealth(directory, payload, preloadedAuthorityState) {
904
935
  _internals.emitHealth(directory, payload, preloadedAuthorityState);
905
936
  }
906
937
 
907
- export { readCoreEvents, getCoreEventCoverage, CORE_EVENT_LOCKED, appendCoreEventSync, appendCoreEventsSync, hasSpecDriftAuditEvent, hasTaskRepairAuditEvent, finalizeCoreEventsForClose };
938
+ export { readCoreEvents, getCoreEventCoverage, CORE_EVENT_LOCKED, appendCoreEventSync, appendCoreEventsSync, getCoderRetryEscalationActions, hasSpecDriftAuditEvent, hasTaskRepairAuditEvent, finalizeCoreEventsForClose };
@@ -3,13 +3,13 @@ import {
3
3
  pseudonymousRef,
4
4
  resolveLineageSalt,
5
5
  telemetry
6
- } from "./index-4s3770gs.js";
6
+ } from "./index-6dtt0brw.js";
7
7
  import {
8
8
  canonicalRootKeyFresh
9
9
  } from "./index-fzpt2djt.js";
10
10
  import {
11
11
  atomicWriteSwarmFile
12
- } from "./index-p4xmq6aa.js";
12
+ } from "./index-ywb5er8g.js";
13
13
 
14
14
  // src/health/learning-health.ts
15
15
  import { promises as fs } from "fs";
@@ -9,7 +9,7 @@ import {
9
9
  readEvaluationRun,
10
10
  saveEvaluationRun,
11
11
  saveTaskSetSnapshot
12
- } from "./index-t7qgt5yk.js";
12
+ } from "./index-7c432abn.js";
13
13
  import {
14
14
  canonicalHash,
15
15
  computeCandidateInputContentHash,
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  validateSwarmPath
4
- } from "./index-xez06sc1.js";
4
+ } from "./index-820pzqd6.js";
5
5
  import {
6
6
  bunWrite
7
7
  } from "./index-2s7dvzff.js";
@@ -18,21 +18,21 @@ import {
18
18
  releaseCoordinationLease,
19
19
  transitionCoordinationState,
20
20
  withCoordinationTransaction
21
- } from "./index-rqxwv4q5.js";
21
+ } from "./index-nr1pj3hy.js";
22
22
  import {
23
23
  getProjectDb,
24
24
  projectDbExists
25
- } from "./index-wrn4khfb.js";
25
+ } from "./index-w00dj8p5.js";
26
26
  import {
27
27
  observeDelegationLedgerPressure
28
- } from "./index-tdpfecs3.js";
28
+ } from "./index-hc6wa3yg.js";
29
29
  import {
30
30
  EvidenceLockTimeoutError,
31
31
  withEvidenceLock
32
- } from "./index-89j5h1j9.js";
32
+ } from "./index-4s6kdsfr.js";
33
33
  import {
34
34
  telemetry
35
- } from "./index-4s3770gs.js";
35
+ } from "./index-6dtt0brw.js";
36
36
  import {
37
37
  canonicalRootKeyFresh,
38
38
  sameProjectRoot
@@ -1175,7 +1175,8 @@ var ResultSchema = exports_external.object({
1175
1175
  "resource",
1176
1176
  "liveness",
1177
1177
  "operator_cancelled",
1178
- "deadline"
1178
+ "deadline",
1179
+ "verdict_contract"
1179
1180
  ]).optional(),
1180
1181
  terminalErrorClass: exports_external.object({
1181
1182
  kind: exports_external.enum(["provider", "aborted", "output_length", "unknown"]),
@@ -4744,7 +4745,7 @@ async function reconcileLegacyCoderSettlements(directory, maxRecords, onReconcil
4744
4745
  const candidates = readDelegations(directory).filter((record) => record.normalizedAgent === "coder" && Boolean(record.legacyCoderSettlementTransfer) && Boolean(record.terminalResult)).slice(0, maxRecords);
4745
4746
  if (candidates.length === 0)
4746
4747
  return 0;
4747
- const { transferCoderSettlementToBackground } = await import("./coder-settlement-t3zcgsd6.js");
4748
+ const { transferCoderSettlementToBackground } = await import("./coder-settlement-kmdmdpyy.js");
4748
4749
  let transferred = 0;
4749
4750
  for (const record of candidates) {
4750
4751
  try {
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  captureWorkspaceSnapshotAsync,
4
4
  changedFilesSinceSnapshotAsync
5
- } from "./index-v30zmakk.js";
5
+ } from "./index-9ztsfved.js";
6
6
  import {
7
7
  removeWorktreeProvisioningOwner
8
- } from "./index-84r9rydf.js";
8
+ } from "./index-pxdc0qn1.js";
9
9
  import {
10
10
  SOURCE_WORKTREE_GONE_STAGE,
11
11
  ensureTaskGateRequirementsReceiptForSettledTransition,
@@ -14,13 +14,13 @@ import {
14
14
  reconcileLandedMerge,
15
15
  withTaskEvidenceTransaction,
16
16
  writeWorkflowWalFile
17
- } from "./index-5hbb3088.js";
17
+ } from "./index-3zzxrwaf.js";
18
18
  import {
19
19
  validateSwarmPath
20
- } from "./index-xez06sc1.js";
20
+ } from "./index-820pzqd6.js";
21
21
  import {
22
22
  appendCoreEventSync
23
- } from "./index-e4hj8r57.js";
23
+ } from "./index-h349p91m.js";
24
24
  import {
25
25
  canonicalRootKeyFresh
26
26
  } from "./index-fzpt2djt.js";
@@ -512,7 +512,7 @@ async function cleanupRecoveredWorktree(directory, descriptor, options) {
512
512
  awaitingMergeByCallID,
513
513
  cleanupStandardWorktreeForCallId,
514
514
  standardWorktreeByCallID
515
- } = await import("./worktree-isolation-x41cgd9n.js");
515
+ } = await import("./worktree-isolation-99qvz8ap.js");
516
516
  standardWorktreeByCallID.delete(descriptor.callID);
517
517
  if (hasResidue)
518
518
  awaitingMergeByCallID.set(descriptor.callID, {
@@ -648,7 +648,7 @@ async function recoverCoderSettlement(directory, taskId) {
648
648
  awaitingMergeByCallID,
649
649
  finishStandardWorktreeDispatch,
650
650
  standardWorktreeByCallID
651
- } = await import("./worktree-isolation-x41cgd9n.js");
651
+ } = await import("./worktree-isolation-99qvz8ap.js");
652
652
  const descriptor = wal.worktree;
653
653
  const reconstructedDispatch = {
654
654
  callID: descriptor.callID,
@@ -4,7 +4,7 @@ import {
4
4
  } from "./index-6b295cas.js";
5
5
  import {
6
6
  readEffectiveSpecSync
7
- } from "./index-6pc5j9rb.js";
7
+ } from "./index-nreezgrd.js";
8
8
  import {
9
9
  _internals,
10
10
  clearWorktreeMergeStatus,
@@ -20,7 +20,7 @@ import {
20
20
  estimateTokens,
21
21
  readSwarmFileAsync,
22
22
  validateSwarmPath
23
- } from "./index-xez06sc1.js";
23
+ } from "./index-820pzqd6.js";
24
24
  import {
25
25
  bunHash,
26
26
  bunWrite
@@ -43,10 +43,10 @@ import {
43
43
  replayFromLedgerWithStatus,
44
44
  takeSnapshotEvent,
45
45
  takeSnapshotWithRetry
46
- } from "./index-drf91t9h.js";
46
+ } from "./index-fmbqyqqw.js";
47
47
  import {
48
48
  appendCoreEventSync
49
- } from "./index-e4hj8r57.js";
49
+ } from "./index-h349p91m.js";
50
50
  import {
51
51
  deleteCoordinationStateWithinTransaction,
52
52
  getCoordinationStateRaw,
@@ -55,13 +55,13 @@ import {
55
55
  transitionCoordinationState,
56
56
  transitionCoordinationStateWithinTransaction,
57
57
  withCoordinationTransaction
58
- } from "./index-rqxwv4q5.js";
58
+ } from "./index-nr1pj3hy.js";
59
59
  import {
60
60
  DURABILITY_CLASSES,
61
61
  getProjectDb,
62
62
  projectDbExists,
63
63
  withDurabilityClass
64
- } from "./index-wrn4khfb.js";
64
+ } from "./index-w00dj8p5.js";
65
65
  import {
66
66
  derivePlanId,
67
67
  derivePlanIdentityHash
@@ -71,7 +71,7 @@ import {
71
71
  } from "./index-t7hmqgjy.js";
72
72
  import {
73
73
  emit
74
- } from "./index-4s3770gs.js";
74
+ } from "./index-6dtt0brw.js";
75
75
  import {
76
76
  canonicalRootKeyFresh
77
77
  } from "./index-fzpt2djt.js";
@@ -82,7 +82,7 @@ import {
82
82
  atomicWriteSwarmFileSync,
83
83
  invalidateCachedArtifact,
84
84
  readCachedParsedFile
85
- } from "./index-p4xmq6aa.js";
85
+ } from "./index-ywb5er8g.js";
86
86
  import {
87
87
  PlanSchema,
88
88
  normalizeCurrentPhaseInPlace,
@@ -93,7 +93,7 @@ import {
93
93
  init_loader,
94
94
  isEpicModeConfigEnabled,
95
95
  loadPluginConfigWithMeta
96
- } from "./index-bd4szzja.js";
96
+ } from "./index-weewx5nx.js";
97
97
  import {
98
98
  exports_external,
99
99
  init_zod
@@ -2664,7 +2664,7 @@ ${markdown}`;
2664
2664
  }
2665
2665
  }
2666
2666
  async function defaultMaybeSaveAutoCheckpoint(directory, plan) {
2667
- const { maybeSaveAutoCheckpoint } = await import("./auto-checkpoint-ekp5j5v5.js");
2667
+ const { maybeSaveAutoCheckpoint } = await import("./auto-checkpoint-x13d1g1t.js");
2668
2668
  return maybeSaveAutoCheckpoint(directory, plan);
2669
2669
  }
2670
2670
  async function updateTaskStatus(directory, taskId, status, options) {
@@ -2740,7 +2740,7 @@ async function updateTaskStatus(directory, taskId, status, options) {
2740
2740
  if (status === "completed") {
2741
2741
  try {
2742
2742
  const completedTask = updatedPlan.phases.flatMap((phase) => phase.tasks).find((candidate) => candidate.id === taskId);
2743
- const { maybePropagateSpeckitCheckoff } = await import("./speckit-checkoff-sx24fz29.js");
2743
+ const { maybePropagateSpeckitCheckoff } = await import("./speckit-checkoff-me8kd3wd.js");
2744
2744
  await maybePropagateSpeckitCheckoff(directory, {
2745
2745
  taskId,
2746
2746
  frRefs: completedTask?.fr_refs ?? [],
@@ -5,18 +5,18 @@ import {
5
5
  import {
6
6
  effectiveRetrievalOutcomes,
7
7
  readAuthoritativeKnowledgeCounterRollups
8
- } from "./index-mx74665q.js";
8
+ } from "./index-8pyg2qnw.js";
9
9
  import {
10
10
  ALLOWED_SKILL_PATH_PREFIXES,
11
11
  validateSkillPath
12
- } from "./index-xrghsqg3.js";
12
+ } from "./index-vj0zede7.js";
13
13
  import {
14
14
  computeOutcomeSignal,
15
15
  readKnowledge,
16
16
  resolveHiveKnowledgePath,
17
17
  resolveSwarmKnowledgePath,
18
18
  transactKnowledge
19
- } from "./index-vjwmcxz4.js";
19
+ } from "./index-f900029m.js";
20
20
  import {
21
21
  appendCappedJsonl,
22
22
  resolveRetentionCap
@@ -27,7 +27,7 @@ import {
27
27
  import {
28
28
  atomicWriteFileAnyRoot,
29
29
  atomicWriteSwarmFile
30
- } from "./index-p4xmq6aa.js";
30
+ } from "./index-ywb5er8g.js";
31
31
  import {
32
32
  advisoryWarn,
33
33
  init_warning_buffer
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  loadPlanJsonOnly
4
- } from "./index-y81sw9vt.js";
4
+ } from "./index-mzx33w6e.js";
5
5
  import {
6
6
  isCanonicalPathWithinRoot
7
7
  } from "./index-6b295cas.js";
@@ -14,17 +14,18 @@ import {
14
14
  legacyEpicIssuePath,
15
15
  migrateLegacyEpicConfig,
16
16
  resolveEpicConfig
17
- } from "./index-bd4szzja.js";
17
+ } from "./index-weewx5nx.js";
18
18
  import {
19
19
  FALLBACK_MODELS_MAX,
20
20
  GATE_CONFIG_KNOWN_SECTION_KEYS,
21
21
  GateConfigSchema,
22
+ HooksConfigSchema,
22
23
  PluginConfigSchema,
23
24
  findRetiredEpicConfigKeys,
24
25
  init_schema,
25
26
  retiredEpicKeyReplacement,
26
27
  stripKnownSwarmPrefix
27
- } from "./index-rfcb9f54.js";
28
+ } from "./index-t1t93qm0.js";
28
29
  import {
29
30
  ALL_AGENT_NAMES,
30
31
  TOOL_NAME_SET,
@@ -1484,15 +1485,7 @@ function validateConfigKey(path2, value) {
1484
1485
  emitObjectTypeMismatch("hooks", value, findings);
1485
1486
  if (value !== undefined && typeof value === "object" && !Array.isArray(value) && value !== null) {
1486
1487
  const hooks = value;
1487
- const validHooks = [
1488
- "system_enhancer",
1489
- "compaction",
1490
- "agent_activity",
1491
- "delegation_tracker",
1492
- "agent_awareness_max_chars",
1493
- "delegation_gate",
1494
- "delegation_max_chars"
1495
- ];
1488
+ const validHooks = Object.keys(HooksConfigSchema.shape);
1496
1489
  for (const hookName of Object.keys(hooks)) {
1497
1490
  if (!validHooks.includes(hookName)) {
1498
1491
  findings.push({
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  readEffectiveSpecSync
4
- } from "./index-6pc5j9rb.js";
4
+ } from "./index-nreezgrd.js";
5
5
  import {
6
6
  readSwarmFileAsync
7
- } from "./index-xez06sc1.js";
7
+ } from "./index-820pzqd6.js";
8
8
  import {
9
9
  DURABILITY_CLASSES,
10
10
  DbWriteError,
@@ -13,7 +13,7 @@ import {
13
13
  classifyDbWriteError,
14
14
  getProjectDb,
15
15
  projectDbExists
16
- } from "./index-wrn4khfb.js";
16
+ } from "./index-w00dj8p5.js";
17
17
  import {
18
18
  _internals,
19
19
  canonicalRootKeyFresh
@@ -4,7 +4,7 @@ import {
4
4
  getProjectDb,
5
5
  projectDbExists,
6
6
  withImmediateTransaction
7
- } from "./index-wrn4khfb.js";
7
+ } from "./index-w00dj8p5.js";
8
8
 
9
9
  // src/db/coordination-store.ts
10
10
  import { createHash } from "crypto";
@@ -1,14 +1,14 @@
1
1
  // @bun
2
2
  import {
3
3
  writeSpeckitCheckoffLedger
4
- } from "./index-h86e4jp9.js";
4
+ } from "./index-w9f2jbwe.js";
5
5
  import {
6
6
  validateSpecContent
7
7
  } from "./index-0725jpp7.js";
8
8
  import {
9
9
  init_loader,
10
10
  readSddSourceSetting
11
- } from "./index-bd4szzja.js";
11
+ } from "./index-weewx5nx.js";
12
12
  import {
13
13
  advisoryWarn,
14
14
  init_warning_buffer
@@ -16,7 +16,7 @@ import {
16
16
  import {
17
17
  SDD_SOURCES,
18
18
  init_schema
19
- } from "./index-rfcb9f54.js";
19
+ } from "./index-t1t93qm0.js";
20
20
  import {
21
21
  init_logger,
22
22
  log
@@ -4,7 +4,7 @@ import {
4
4
  readShellAuditTail,
5
5
  redactPath,
6
6
  redactShellCommand
7
- } from "./index-bj916p5e.js";
7
+ } from "./index-408tpd21.js";
8
8
 
9
9
  // src/services/guardrail-log-service.ts
10
10
  var BLOCK_TYPES = new Set([
@@ -4,7 +4,7 @@ import {
4
4
  getProjectDb,
5
5
  projectDbExists,
6
6
  withImmediateTransaction
7
- } from "./index-wrn4khfb.js";
7
+ } from "./index-w00dj8p5.js";
8
8
  import {
9
9
  derivePlanId,
10
10
  derivePlanIdentityHash