opencode-swarm 7.186.8 → 7.187.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 (121) hide show
  1. package/binaries/win32-arm64/swarm-sandbox-runner.exe +0 -0
  2. package/binaries/win32-x64/swarm-sandbox-runner.exe +0 -0
  3. package/dist/agents/architect.d.ts +1 -1
  4. package/dist/background/pr-review-contract.d.ts +2 -2
  5. package/dist/cli/{auto-checkpoint-hw4rttv4.js → auto-checkpoint-fcp7srhd.js} +10 -11
  6. package/dist/cli/{checkpoint-fdkh943k.js → checkpoint-69m1xg5q.js} +19 -19
  7. package/dist/cli/{coder-settlement-91r5s8ar.js → coder-settlement-adx7vsa9.js} +14 -15
  8. package/dist/cli/{config-doctor-nzds5xzf.js → config-doctor-eaqk3erw.js} +35 -4
  9. package/dist/cli/{core-w0gq7vwa.js → core-fb33hf6w.js} +5 -6
  10. package/dist/cli/{curation-policy-kw6x1cba.js → curation-policy-sr29thf5.js} +7 -8
  11. package/dist/cli/{curator-gkrn8wz3.js → curator-5xcy10z7.js} +46 -45
  12. package/dist/cli/{curator-drift-svnc70x4.js → curator-drift-kz0s2dk3.js} +10 -11
  13. package/dist/cli/curator-llm-factory-pc17p6kq.js +82 -0
  14. package/dist/cli/{dispatch-0ejzwb45.js → dispatch-qvcztbpf.js} +222 -48
  15. package/dist/cli/doctor-knowledge-receipt-phase-id-dwtppe04.js +83 -0
  16. package/dist/cli/{evidence-summary-service-a2tx8tbn.js → evidence-summary-service-1k2syb6b.js} +22 -22
  17. package/dist/cli/{gate-evidence-28bys0r0.js → gate-evidence-4vvj9bhj.js} +9 -10
  18. package/dist/cli/guardrail-explain-rxsda43z.js +83 -0
  19. package/dist/cli/guardrail-log-1619tcny.js +22 -0
  20. package/dist/cli/{guardrail-reset-w5kpwfxb.js → guardrail-reset-72zryht1.js} +46 -45
  21. package/dist/cli/hive-promoter-yc3xvvq8.js +97 -0
  22. package/dist/cli/{index-qc1x5vvb.js → index-0cpa8rnc.js} +2726 -2700
  23. package/dist/cli/{index-c5x4yzt6.js → index-1hg62y01.js} +8 -6
  24. package/dist/cli/{index-k55ep5se.js → index-26zs9wsj.js} +2 -2
  25. package/dist/cli/{index-whk4027k.js → index-2jxyzerw.js} +4 -4
  26. package/dist/cli/{index-t6na8zpb.js → index-319qcbg7.js} +4 -4
  27. package/dist/cli/{index-ha4r51k4.js → index-36y60mjx.js} +28 -11
  28. package/dist/cli/{index-0qpa53jg.js → index-3y0nr248.js} +8 -8
  29. package/dist/cli/{index-b9zqye89.js → index-4pbp654j.js} +46 -45
  30. package/dist/cli/{index-227te5a7.js → index-6t7ygevg.js} +2 -2
  31. package/dist/cli/{index-tw513bvn.js → index-868tmqy5.js} +8 -8
  32. package/dist/cli/{index-0k283qtq.js → index-9hag235h.js} +2 -2
  33. package/dist/cli/{index-sjwpvte3.js → index-a8gvszr2.js} +2 -2
  34. package/dist/cli/{index-znc71e1c.js → index-bejxkee0.js} +2 -2
  35. package/dist/cli/{index-03z05sbb.js → index-bstjg81q.js} +3 -3
  36. package/dist/cli/{index-agm6hegf.js → index-c44vm8tc.js} +4 -4
  37. package/dist/cli/{index-n1szkmbz.js → index-cc1vzq4m.js} +1 -1
  38. package/dist/cli/{index-xdjwefa5.js → index-dx6bhbd6.js} +2 -2
  39. package/dist/cli/{index-zcpd36zm.js → index-e9ry78z5.js} +2 -2
  40. package/dist/cli/index-f1dxxa1n.js +748 -0
  41. package/dist/cli/{index-0ghn241n.js → index-fgbm0x7d.js} +1 -1
  42. package/dist/cli/{index-mc72pk74.js → index-fzpt2djt.js} +32 -1
  43. package/dist/cli/{index-d21545hp.js → index-gathbynn.js} +48 -47
  44. package/dist/cli/{index-q8dj8b88.js → index-hjdeawyp.js} +2 -2
  45. package/dist/cli/{index-mr86ywsj.js → index-jyxgkp4a.js} +1 -1
  46. package/dist/cli/{index-e6tjg7t9.js → index-kaf9mtpc.js} +319 -768
  47. package/dist/cli/{index-extgtmxm.js → index-m1qy7f1e.js} +1 -1
  48. package/dist/cli/{index-n5ekzhad.js → index-m2xfxk4e.js} +5 -5
  49. package/dist/cli/index-m9zzj4ee.js +10 -0
  50. package/dist/cli/{index-84wt7q5y.js → index-mf19yqss.js} +3 -3
  51. package/dist/cli/{index-7ae4sgp4.js → index-my8wgyqg.js} +5 -5
  52. package/dist/cli/{index-gsqmefdg.js → index-n45kz69m.js} +2 -2
  53. package/dist/cli/{index-x5mkva6s.js → index-n55exns2.js} +1 -1
  54. package/dist/cli/{index-7pstt3w2.js → index-n8kqhxay.js} +1 -1
  55. package/dist/cli/{index-c12cz80m.js → index-p9xke6h7.js} +2 -2
  56. package/dist/cli/{index-4y6pndcf.js → index-prqjveey.js} +4 -4
  57. package/dist/cli/{index-2nbws8bd.js → index-qmmzyymt.js} +5 -5
  58. package/dist/cli/{index-cvwkjnr5.js → index-r37b4crx.js} +1 -1
  59. package/dist/cli/{index-e4hy4des.js → index-r6e8syr3.js} +1 -1
  60. package/dist/cli/{index-mtb763x4.js → index-r7d49haj.js} +1 -1
  61. package/dist/cli/{index-prksynjw.js → index-rcmgbtxf.js} +3 -3
  62. package/dist/cli/{index-xgsy3hzf.js → index-rs23yv3h.js} +16 -21
  63. package/dist/cli/{index-dbwpcjhw.js → index-t0xcsrsf.js} +8 -8
  64. package/dist/cli/{index-e47fhj4k.js → index-thx02zpn.js} +5 -5
  65. package/dist/cli/{index-gapyat7s.js → index-tv84mkce.js} +2 -2
  66. package/dist/cli/{index-5dgg9vhz.js → index-v51qveq8.js} +565 -76
  67. package/dist/cli/{index-06pcq86m.js → index-v9y0230d.js} +3 -3
  68. package/dist/cli/{index-7bxssqaf.js → index-vx8a8w3b.js} +142 -2
  69. package/dist/cli/{index-kg4yp11g.js → index-wy6wzwb3.js} +4 -4
  70. package/dist/cli/{index-pntrhnj8.js → index-ywwreanf.js} +7 -7
  71. package/dist/cli/{index-144jx1jn.js → index-z4c6bfd5.js} +5 -5
  72. package/dist/cli/{index-616pp1nq.js → index-zftyb94k.js} +3 -3
  73. package/dist/cli/index.js +47 -46
  74. package/dist/cli/{knowledge-escalator-0dj3bvh2.js → knowledge-escalator-q60ghp3z.js} +17 -16
  75. package/dist/cli/{knowledge-events-zwhb8jnb.js → knowledge-events-hadasxqm.js} +15 -14
  76. package/dist/cli/{knowledge-link-pmbyqe3b.js → knowledge-link-93nzznwd.js} +6 -7
  77. package/dist/cli/{knowledge-store-67n0qbhg.js → knowledge-store-y7vvwa7p.js} +7 -8
  78. package/dist/cli/{knowledge-validator-b58w129y.js → knowledge-validator-3tqat3wm.js} +9 -10
  79. package/dist/cli/{mcp-ayc74bm2.js → mcp-ek3wf04s.js} +1 -1
  80. package/dist/cli/{model-preflight-nvjb3bv5.js → model-preflight-gzcmdvs7.js} +46 -45
  81. package/dist/cli/{pending-delegations-yvh7b951.js → pending-delegations-54k1mysp.js} +13 -14
  82. package/dist/cli/{pr-subscriptions-pkj5mmra.js → pr-subscriptions-sx9ch5ra.js} +13 -14
  83. package/dist/cli/{pr-workflow-gate-zg6tg3c0.js → pr-workflow-gate-yehzpb9x.js} +46 -45
  84. package/dist/cli/{runner-jev9vea3.js → runner-verr6er5.js} +7 -8
  85. package/dist/cli/{scan-cursor-8nkt0n1b.js → scan-cursor-0ws87fe6.js} +8 -9
  86. package/dist/cli/{schema-ahy4ps8z.js → schema-hns0x91t.js} +2 -2
  87. package/dist/cli/{scope-persistence-h8b2hcy9.js → scope-persistence-ct6etvdy.js} +17 -18
  88. package/dist/cli/{server-14wr2fz2.js → server-hh4vy28k.js} +47 -47
  89. package/dist/cli/{skill-generator-2pk8fvfz.js → skill-generator-9fy1nmhb.js} +19 -18
  90. package/dist/cli/{snapshot-coordination-init-keeqdwph.js → snapshot-coordination-init-xjdy80bq.js} +46 -45
  91. package/dist/cli/{speckit-checkoff-yf09ctgv.js → speckit-checkoff-06104jte.js} +5 -5
  92. package/dist/cli/{telemetry-rb8hrvbx.js → telemetry-xwj899pd.js} +2 -3
  93. package/dist/cli/{workspace-snapshot-28p0ekng.js → workspace-snapshot-y60ay5eq.js} +4 -5
  94. package/dist/cli/{worktree-collision-ownership-7ctmpqx6.js → worktree-collision-ownership-3jefgmkc.js} +14 -15
  95. package/dist/cli/{worktree-isolation-2c1hvct4.js → worktree-isolation-76wbgtpk.js} +46 -45
  96. package/dist/commands/doctor-knowledge-receipt-phase-id.d.ts +16 -0
  97. package/dist/commands/registry.d.ts +4 -4
  98. package/dist/commands/reset-backup.d.ts +20 -5
  99. package/dist/commands/rollback-gate.d.ts +73 -0
  100. package/dist/hooks/extractors.d.ts +15 -0
  101. package/dist/hooks/knowledge-injector.d.ts +5 -0
  102. package/dist/hooks/knowledge-receipt-ledger.d.ts +50 -4
  103. package/dist/hooks/knowledge-receipt-observability.d.ts +1 -1
  104. package/dist/hooks/phase-complete-directive-gate.d.ts +18 -1
  105. package/dist/hooks/phase-directives.d.ts +7 -3
  106. package/dist/index.js +655 -631
  107. package/dist/lang/backends/java.d.ts +76 -0
  108. package/dist/lang/java-extraction.d.ts +88 -0
  109. package/dist/services/config-doctor.d.ts +19 -1
  110. package/dist/services/preflight-integration.d.ts +8 -1
  111. package/dist/state.d.ts +13 -0
  112. package/dist/tools/phase-complete.d.ts +2 -2
  113. package/dist/tools/repair-knowledge-receipt-ledger.d.ts +26 -0
  114. package/dist/tools/symbols.d.ts +18 -0
  115. package/opencode-swarm.schema.json +1 -1
  116. package/package.json +1 -1
  117. package/dist/cli/curator-llm-factory-j51cttb2.js +0 -81
  118. package/dist/cli/guardrail-explain-qjyz300y.js +0 -82
  119. package/dist/cli/guardrail-log-rw25bt8g.js +0 -23
  120. package/dist/cli/hive-promoter-qzz0veev.js +0 -96
  121. package/dist/cli/index-c1ggtmpm.js +0 -33
@@ -4,7 +4,7 @@ import {
4
4
  getProjectDb,
5
5
  projectDbExists,
6
6
  withImmediateTransaction
7
- } from "./index-0k283qtq.js";
7
+ } from "./index-9hag235h.js";
8
8
  import {
9
9
  derivePlanId,
10
10
  derivePlanIdentityHash
@@ -3,7 +3,7 @@ import {
3
3
  EvaluationRunV1Schema,
4
4
  GateAuditResultV1Schema,
5
5
  getProtectedEvaluationRunIds
6
- } from "./index-k55ep5se.js";
6
+ } from "./index-26zs9wsj.js";
7
7
  import {
8
8
  TASK_WORKFLOW_SCHEMA_MARKER,
9
9
  deriveApplicableGateSet,
@@ -12,11 +12,11 @@ import {
12
12
  readTaskEvidence,
13
13
  readTaskEvidenceRaw,
14
14
  sanitizeTaskId
15
- } from "./index-4y6pndcf.js";
15
+ } from "./index-prqjveey.js";
16
16
  import {
17
17
  readSwarmFileAsync,
18
18
  validateSwarmPath
19
- } from "./index-znc71e1c.js";
19
+ } from "./index-bejxkee0.js";
20
20
  import {
21
21
  bunWrite
22
22
  } from "./index-2s7dvzff.js";
@@ -27,13 +27,13 @@ import {
27
27
  } from "./index-kbkk7vnh.js";
28
28
  import {
29
29
  withEvidenceLock
30
- } from "./index-mr86ywsj.js";
30
+ } from "./index-jyxgkp4a.js";
31
31
  import {
32
32
  assertProjectRoot
33
33
  } from "./index-t7hmqgjy.js";
34
34
  import {
35
35
  invalidateCachedArtifact
36
- } from "./index-e4hy4des.js";
36
+ } from "./index-r6e8syr3.js";
37
37
  import {
38
38
  ZodError,
39
39
  init_zod
@@ -0,0 +1,10 @@
1
+ // @bun
2
+ // src/hooks/context-sanitizer.ts
3
+ function sanitizeContextText(text) {
4
+ return text.split("").filter((char) => {
5
+ const code = char.charCodeAt(0);
6
+ return code === 9 || code === 10 || code === 13 || code > 31 && code !== 127;
7
+ }).join("").replace(/[\u00AD\u200B-\u200F\u2060-\u2064\uFEFF]/g, "").replace(/[\u202A-\u202E\u2066-\u2069]/g, "").replace(/```/g, "` ` `").replace(/^system\s*:/gim, "[BLOCKED]:").replace(/<system\b[^>]*>/gi, "[BLOCKED-TAG]").replace(/<\/system>/gi, "[/BLOCKED-TAG]").replace(/<tool_call\b[^>]*>/gi, "[BLOCKED-TOOL]").replace(/<\/tool_call>/gi, "[/BLOCKED-TOOL]").replace(/<\/\w+>/g, "[/BLOCKED-TAG]");
8
+ }
9
+
10
+ export { sanitizeContextText };
@@ -1,17 +1,17 @@
1
1
  // @bun
2
2
  import {
3
3
  validateSwarmPath
4
- } from "./index-znc71e1c.js";
4
+ } from "./index-bejxkee0.js";
5
5
  import {
6
6
  bunSpawn
7
7
  } from "./index-2s7dvzff.js";
8
8
  import {
9
9
  canonicalRootKey,
10
10
  sameProjectRoot
11
- } from "./index-mc72pk74.js";
11
+ } from "./index-fzpt2djt.js";
12
12
  import {
13
13
  atomicWriteSwarmFile
14
- } from "./index-e4hy4des.js";
14
+ } from "./index-r6e8syr3.js";
15
15
  import {
16
16
  init_git_executable,
17
17
  resolveGitExecutable
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  computePlanStructureHash
4
- } from "./index-2nbws8bd.js";
4
+ } from "./index-qmmzyymt.js";
5
5
  import {
6
6
  appendCoreEventSync
7
- } from "./index-zcpd36zm.js";
7
+ } from "./index-e9ry78z5.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-n1szkmbz.js";
15
+ } from "./index-cc1vzq4m.js";
16
16
  import {
17
17
  getProjectDb
18
- } from "./index-0k283qtq.js";
18
+ } from "./index-9hag235h.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-e4hy4des.js";
35
+ } from "./index-r6e8syr3.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
  atomicWriteFile
4
- } from "./index-227te5a7.js";
4
+ } from "./index-6t7ygevg.js";
5
5
  import {
6
6
  canonicalRootKeyFresh
7
- } from "./index-mc72pk74.js";
7
+ } from "./index-fzpt2djt.js";
8
8
  import {
9
9
  init_logger,
10
10
  warn
@@ -9,7 +9,7 @@ import {
9
9
  readEvaluationRun,
10
10
  saveEvaluationRun,
11
11
  saveTaskSetSnapshot
12
- } from "./index-k55ep5se.js";
12
+ } from "./index-26zs9wsj.js";
13
13
  import {
14
14
  canonicalHash,
15
15
  computeCandidateInputContentHash,
@@ -11,7 +11,7 @@ import {
11
11
  readLinkPointer,
12
12
  resolveKnowledgeStoreDir,
13
13
  resolveLinkDir
14
- } from "./index-gsqmefdg.js";
14
+ } from "./index-n45kz69m.js";
15
15
 
16
16
  // src/knowledge/curation-policy.ts
17
17
  import { readFile as readFile2 } from "fs/promises";
@@ -5,11 +5,11 @@ import {
5
5
  import {
6
6
  atomicWriteFileAnyRoot,
7
7
  atomicWriteSwarmFileSync
8
- } from "./index-e4hy4des.js";
8
+ } from "./index-r6e8syr3.js";
9
9
  import {
10
10
  init_loader,
11
11
  loadPluginConfig
12
- } from "./index-cvwkjnr5.js";
12
+ } from "./index-r37b4crx.js";
13
13
  import {
14
14
  init_logger,
15
15
  log,
@@ -2,14 +2,14 @@
2
2
  import {
3
3
  autoCommitDirty,
4
4
  cleanUntrackedFiles
5
- } from "./index-144jx1jn.js";
5
+ } from "./index-z4c6bfd5.js";
6
6
  import {
7
7
  isSpawnCwdMissing,
8
8
  isSpawnCwdUnreadable
9
9
  } from "./index-g4fs6z4e.js";
10
10
  import {
11
11
  validateSwarmPath
12
- } from "./index-znc71e1c.js";
12
+ } from "./index-bejxkee0.js";
13
13
  import {
14
14
  bunSpawn
15
15
  } from "./index-2s7dvzff.js";
@@ -17,13 +17,13 @@ import {
17
17
  atomicWriteFile,
18
18
  taskEvidencePath,
19
19
  withTaskEvidenceLock
20
- } from "./index-227te5a7.js";
20
+ } from "./index-6t7ygevg.js";
21
21
  import {
22
22
  assertProjectRoot
23
23
  } from "./index-t7hmqgjy.js";
24
24
  import {
25
25
  telemetry
26
- } from "./index-xdjwefa5.js";
26
+ } from "./index-dx6bhbd6.js";
27
27
  import {
28
28
  advisoryWarn,
29
29
  init_git_executable,
@@ -4,20 +4,20 @@ import {
4
4
  projectDbExists,
5
5
  withImmediateTransaction,
6
6
  withProjectDbReadOnly
7
- } from "./index-0k283qtq.js";
7
+ } from "./index-9hag235h.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-mr86ywsj.js";
14
+ } from "./index-jyxgkp4a.js";
15
15
  import {
16
16
  assertProjectRoot
17
17
  } from "./index-t7hmqgjy.js";
18
18
  import {
19
19
  emit
20
- } from "./index-xdjwefa5.js";
20
+ } from "./index-dx6bhbd6.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-cvwkjnr5.js";
30
+ } from "./index-r37b4crx.js";
31
31
  import {
32
32
  init_package,
33
33
  package_default
34
- } from "./index-616pp1nq.js";
34
+ } from "./index-zftyb94k.js";
35
35
  import {
36
36
  criticalWarn,
37
37
  init_logger,
@@ -13,7 +13,7 @@ import {
13
13
  PluginConfigSchema,
14
14
  init_schema,
15
15
  resolveExternalSkillsConfig
16
- } from "./index-616pp1nq.js";
16
+ } from "./index-zftyb94k.js";
17
17
  import {
18
18
  DangerousMergeKeyError,
19
19
  MAX_MERGE_DEPTH,
@@ -410,7 +410,7 @@ var SWARM_TEMP_GRAMMARS = [
410
410
  quarantineEligible: false,
411
411
  parsesTarget: false,
412
412
  producers: [
413
- "src/tools/checkpoint.ts:195",
413
+ "src/tools/checkpoint.ts:205",
414
414
  "src/full-auto/state.ts:636",
415
415
  "src/context-map/persistence.ts:119",
416
416
  "src/context-map/capsule-persistence.ts:111",
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  writeSpeckitCheckoffLedger
4
- } from "./index-c12cz80m.js";
4
+ } from "./index-p9xke6h7.js";
5
5
  import {
6
6
  validateSpecContent
7
7
  } from "./index-0725jpp7.js";
@@ -2,14 +2,14 @@
2
2
  import {
3
3
  init_loader,
4
4
  loadPluginConfigWithMeta
5
- } from "./index-cvwkjnr5.js";
5
+ } from "./index-r37b4crx.js";
6
6
  import {
7
7
  init_schema
8
- } from "./index-616pp1nq.js";
8
+ } from "./index-zftyb94k.js";
9
9
  import {
10
10
  DEFAULT_WORKTREE_ISOLATION_CONFIG,
11
11
  init_constants
12
- } from "./index-03z05sbb.js";
12
+ } from "./index-bstjg81q.js";
13
13
 
14
14
  // src/config/index.ts
15
15
  init_constants();
@@ -4,7 +4,7 @@ import {
4
4
  } from "./index-6b295cas.js";
5
5
  import {
6
6
  readEffectiveSpecSync
7
- } from "./index-mtb763x4.js";
7
+ } from "./index-r7d49haj.js";
8
8
  import {
9
9
  getWorktreeMergeFailure
10
10
  } from "./index-zsrtt42s.js";
@@ -15,12 +15,15 @@ import {
15
15
  isSpawnCwdMissing,
16
16
  isSpawnCwdUnreadable
17
17
  } from "./index-g4fs6z4e.js";
18
+ import {
19
+ sanitizeContextText
20
+ } from "./index-m9zzj4ee.js";
18
21
  import {
19
22
  estimateCharsForTokens,
20
23
  estimateTokens,
21
24
  readSwarmFileAsync,
22
25
  validateSwarmPath
23
- } from "./index-znc71e1c.js";
26
+ } from "./index-bejxkee0.js";
24
27
  import {
25
28
  bunHash,
26
29
  bunWrite,
@@ -44,22 +47,22 @@ import {
44
47
  replayFromLedgerWithStatus,
45
48
  takeSnapshotEvent,
46
49
  takeSnapshotWithRetry
47
- } from "./index-2nbws8bd.js";
50
+ } from "./index-qmmzyymt.js";
48
51
  import {
49
52
  appendCoreEventSync
50
- } from "./index-zcpd36zm.js";
53
+ } from "./index-e9ry78z5.js";
51
54
  import {
52
55
  getCoordinationState,
53
56
  importCoordinationOnce,
54
57
  listCoordinationStates,
55
58
  transitionCoordinationState
56
- } from "./index-n1szkmbz.js";
59
+ } from "./index-cc1vzq4m.js";
57
60
  import {
58
61
  DURABILITY_CLASSES,
59
62
  getProjectDb,
60
63
  projectDbExists,
61
64
  withDurabilityClass
62
- } from "./index-0k283qtq.js";
65
+ } from "./index-9hag235h.js";
63
66
  import {
64
67
  derivePlanId,
65
68
  derivePlanIdentityHash
@@ -69,10 +72,10 @@ import {
69
72
  } from "./index-t7hmqgjy.js";
70
73
  import {
71
74
  emit
72
- } from "./index-xdjwefa5.js";
75
+ } from "./index-dx6bhbd6.js";
73
76
  import {
74
77
  canonicalRootKeyFresh
75
- } from "./index-mc72pk74.js";
78
+ } from "./index-fzpt2djt.js";
76
79
  import {
77
80
  tryAcquireLock
78
81
  } from "./index-ejhxgyvm.js";
@@ -80,7 +83,7 @@ import {
80
83
  atomicWriteSwarmFileSync,
81
84
  invalidateCachedArtifact,
82
85
  readCachedParsedFile
83
- } from "./index-e4hy4des.js";
86
+ } from "./index-r6e8syr3.js";
84
87
  import {
85
88
  PlanSchema,
86
89
  normalizeCurrentPhaseInPlace,
@@ -283,14 +286,6 @@ function transientBackoff(attempt) {
283
286
  }
284
287
  }
285
288
 
286
- // src/hooks/context-sanitizer.ts
287
- function sanitizeContextText(text) {
288
- return text.split("").filter((char) => {
289
- const code = char.charCodeAt(0);
290
- return code === 9 || code === 10 || code === 13 || code > 31 && code !== 127;
291
- }).join("").replace(/[\u00AD\u200B-\u200F\u2060-\u2064\uFEFF]/g, "").replace(/[\u202A-\u202E\u2066-\u2069]/g, "").replace(/```/g, "` ` `").replace(/^system\s*:/gim, "[BLOCKED]:").replace(/<system\b[^>]*>/gi, "[BLOCKED-TAG]").replace(/<\/system>/gi, "[/BLOCKED-TAG]").replace(/<tool_call\b[^>]*>/gi, "[BLOCKED-TOOL]").replace(/<\/tool_call>/gi, "[/BLOCKED-TOOL]").replace(/<\/\w+>/g, "[/BLOCKED-TAG]");
292
- }
293
-
294
289
  // src/plan/manager.ts
295
290
  import {
296
291
  closeSync,
@@ -3002,7 +2997,7 @@ ${markdown}`;
3002
2997
  }
3003
2998
  }
3004
2999
  async function defaultMaybeSaveAutoCheckpoint(directory, plan) {
3005
- const { maybeSaveAutoCheckpoint } = await import("./auto-checkpoint-hw4rttv4.js");
3000
+ const { maybeSaveAutoCheckpoint } = await import("./auto-checkpoint-fcp7srhd.js");
3006
3001
  return maybeSaveAutoCheckpoint(directory, plan);
3007
3002
  }
3008
3003
  async function updateTaskStatus(directory, taskId, status, options) {
@@ -3078,7 +3073,7 @@ async function updateTaskStatus(directory, taskId, status, options) {
3078
3073
  if (status === "completed") {
3079
3074
  try {
3080
3075
  const completedTask = updatedPlan.phases.flatMap((phase) => phase.tasks).find((candidate) => candidate.id === taskId);
3081
- const { maybePropagateSpeckitCheckoff } = await import("./speckit-checkoff-yf09ctgv.js");
3076
+ const { maybePropagateSpeckitCheckoff } = await import("./speckit-checkoff-06104jte.js");
3082
3077
  await maybePropagateSpeckitCheckoff(directory, {
3083
3078
  taskId,
3084
3079
  frRefs: completedTask?.fr_refs ?? [],
@@ -3103,7 +3098,7 @@ async function updateTaskStatus(directory, taskId, status, options) {
3103
3098
  break;
3104
3099
  }
3105
3100
  }
3106
- const { readDeclaredScopeFilesFromBindings } = await import("./scope-persistence-h8b2hcy9.js");
3101
+ const { readDeclaredScopeFilesFromBindings } = await import("./scope-persistence-ct6etvdy.js");
3107
3102
  const canonicalScope = readDeclaredScopeFilesFromBindings({
3108
3103
  directory,
3109
3104
  taskId,
@@ -3444,4 +3439,4 @@ function migrateLegacyPlan(planContent, swarmId) {
3444
3439
  return plan;
3445
3440
  }
3446
3441
 
3447
- export { buildTaskCompletionDescriptor, ensureTaskCheckpointReceipt, updateTaskCheckpointReceipt, MAX_TRANSIENT_RETRIES, isTransientSpawnError, transientBackoff, readLaneEnvFileFromDiskSync, getGitRepositoryStatus, isGitRepo, getDefaultBaseBranch, detectDefaultRemoteBranch, resetToRemoteBranch, resetToMainAfterMerge, sanitizeContextText, getRunMemorySummary, isStateUnreadable, loadEpicSessionState, isEpicModeActive, enableEpicMode, disableEpicMode, PlanRecoverySupersededError, loadPlanJsonOnly, loadPlan, withPlanLifecycleLock, savePlan, closePlanTerminalState, updateTaskStatus, derivePlanMarkdown, getCurrentTaskId };
3442
+ export { buildTaskCompletionDescriptor, ensureTaskCheckpointReceipt, updateTaskCheckpointReceipt, MAX_TRANSIENT_RETRIES, isTransientSpawnError, transientBackoff, readLaneEnvFileFromDiskSync, getGitRepositoryStatus, isGitRepo, getDefaultBaseBranch, detectDefaultRemoteBranch, resetToRemoteBranch, resetToMainAfterMerge, getRunMemorySummary, isStateUnreadable, loadEpicSessionState, isEpicModeActive, enableEpicMode, disableEpicMode, PlanRecoverySupersededError, loadPlanJsonOnly, loadPlan, withPlanLifecycleLock, savePlan, closePlanTerminalState, updateTaskStatus, derivePlanMarkdown, getCurrentTaskId };
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  captureWorkspaceSnapshotAsync,
4
4
  changedFilesSinceSnapshotAsync
5
- } from "./index-84wt7q5y.js";
5
+ } from "./index-mf19yqss.js";
6
6
  import {
7
7
  removeWorktreeProvisioningOwner
8
- } from "./index-sjwpvte3.js";
8
+ } from "./index-a8gvszr2.js";
9
9
  import {
10
10
  SOURCE_WORKTREE_GONE_STAGE,
11
11
  ensureTaskGateRequirementsReceiptForSettledTransition,
@@ -14,16 +14,16 @@ import {
14
14
  reconcileLandedMerge,
15
15
  withTaskEvidenceTransaction,
16
16
  writeWorkflowWalFile
17
- } from "./index-4y6pndcf.js";
17
+ } from "./index-prqjveey.js";
18
18
  import {
19
19
  validateSwarmPath
20
- } from "./index-znc71e1c.js";
20
+ } from "./index-bejxkee0.js";
21
21
  import {
22
22
  appendCoreEventSync
23
- } from "./index-zcpd36zm.js";
23
+ } from "./index-e9ry78z5.js";
24
24
  import {
25
25
  canonicalRootKeyFresh
26
- } from "./index-mc72pk74.js";
26
+ } from "./index-fzpt2djt.js";
27
27
  import {
28
28
  tryAcquireLock
29
29
  } from "./index-ejhxgyvm.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-2c1hvct4.js");
515
+ } = await import("./worktree-isolation-76wbgtpk.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-2c1hvct4.js");
651
+ } = await import("./worktree-isolation-76wbgtpk.js");
652
652
  const descriptor = wal.worktree;
653
653
  const reconstructedDispatch = {
654
654
  callID: descriptor.callID,
@@ -5,29 +5,29 @@ import {
5
5
  import {
6
6
  effectiveRetrievalOutcomes,
7
7
  readAuthoritativeKnowledgeCounterRollups
8
- } from "./index-e6tjg7t9.js";
8
+ } from "./index-f1dxxa1n.js";
9
9
  import {
10
10
  ALLOWED_SKILL_PATH_PREFIXES,
11
11
  validateSkillPath
12
- } from "./index-agm6hegf.js";
12
+ } from "./index-c44vm8tc.js";
13
13
  import {
14
14
  computeOutcomeSignal,
15
15
  readKnowledge,
16
16
  resolveHiveKnowledgePath,
17
17
  resolveSwarmKnowledgePath,
18
18
  transactKnowledge
19
- } from "./index-pntrhnj8.js";
19
+ } from "./index-ywwreanf.js";
20
20
  import {
21
21
  appendCappedJsonl,
22
22
  resolveRetentionCap
23
23
  } from "./index-vzm6zre7.js";
24
24
  import {
25
25
  canonicalRootKeyFresh
26
- } from "./index-mc72pk74.js";
26
+ } from "./index-fzpt2djt.js";
27
27
  import {
28
28
  atomicWriteFileAnyRoot,
29
29
  atomicWriteSwarmFile
30
- } from "./index-e4hy4des.js";
30
+ } from "./index-r6e8syr3.js";
31
31
  import {
32
32
  advisoryWarn,
33
33
  init_warning_buffer
@@ -14,14 +14,14 @@ import {
14
14
  detectWindowsWrites,
15
15
  getSharedClassifierGuardrailBlock,
16
16
  resolveWriteTargets
17
- } from "./index-qc1x5vvb.js";
17
+ } from "./index-0cpa8rnc.js";
18
18
  import {
19
19
  checkFileAuthority,
20
20
  classifyFile,
21
21
  isInDeclaredScope,
22
22
  redactPath,
23
23
  redactShellCommand
24
- } from "./index-kg4yp11g.js";
24
+ } from "./index-wy6wzwb3.js";
25
25
 
26
26
  // src/services/guardrail-explain-service.ts
27
27
  import path from "path";