opencode-swarm 7.185.1 → 7.186.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 (98) hide show
  1. package/.opencode/skills/swarm-pr-review/SKILL.md +3 -3
  2. package/.opencode/skills/swarm-pr-review/references/lane-output-recoverability.md +19 -1
  3. package/binaries/win32-arm64/swarm-sandbox-runner.exe +0 -0
  4. package/binaries/win32-x64/swarm-sandbox-runner.exe +0 -0
  5. package/dist/background/pr-feedback-event-queue.d.ts +3 -2
  6. package/dist/background/pr-feedback-loop-runtime.d.ts +4 -1
  7. package/dist/background/pr-feedback-loop.d.ts +2 -1
  8. package/dist/background/pr-monitor-worker.d.ts +9 -1
  9. package/dist/background/pr-review-trigger-contract.d.ts +8 -0
  10. package/dist/background/pr-subscriptions.d.ts +23 -0
  11. package/dist/cli/{auto-checkpoint-2jecngee.js → auto-checkpoint-fsd4a9q9.js} +7 -7
  12. package/dist/cli/{checkpoint-qm05wdbh.js → checkpoint-rc61fd93.js} +14 -14
  13. package/dist/cli/{coder-settlement-56prayae.js → coder-settlement-x198191a.js} +10 -10
  14. package/dist/cli/{config-doctor-3b99vx74.js → config-doctor-mj4ae4jn.js} +2 -2
  15. package/dist/cli/{core-cxnqsrxp.js → core-fvsjr20m.js} +3 -3
  16. package/dist/cli/{curation-policy-ytzwb080.js → curation-policy-pxwagyh7.js} +4 -4
  17. package/dist/cli/{curator-drift-dt4g79a4.js → curator-drift-t150w08d.js} +8 -8
  18. package/dist/cli/{curator-5k3mktpe.js → curator-h7j1xse4.js} +39 -39
  19. package/dist/cli/curator-llm-factory-29cswvhr.js +81 -0
  20. package/dist/cli/{evidence-summary-service-8e2fghz0.js → evidence-summary-service-h42y6hwq.js} +17 -17
  21. package/dist/cli/{gate-evidence-vk8rebsx.js → gate-evidence-c7caa5x2.js} +5 -5
  22. package/dist/cli/guardrail-explain-yfd11za1.js +82 -0
  23. package/dist/cli/{guardrail-log-m6mydjet.js → guardrail-log-hcr5rptq.js} +6 -6
  24. package/dist/cli/{guardrail-reset-w41yndke.js → guardrail-reset-fqgf5sdb.js} +39 -39
  25. package/dist/cli/{hive-promoter-400xzdds.js → hive-promoter-632ewk29.js} +39 -39
  26. package/dist/cli/{index-9g61bfj9.js → index-010en5sq.js} +1 -1
  27. package/dist/cli/{index-r9zc92pb.js → index-03d68zxw.js} +41 -41
  28. package/dist/cli/{index-s7va6n84.js → index-0t61279z.js} +3 -3
  29. package/dist/cli/{index-zt3taseq.js → index-3rd7gqfg.js} +2 -2
  30. package/dist/cli/{index-ek5gvpvm.js → index-4h6e73bx.js} +7 -7
  31. package/dist/cli/{index-2c6e1p7j.js → index-4z0zdcd7.js} +3 -3
  32. package/dist/cli/{index-afmyp3kt.js → index-5v1sqv3m.js} +1 -1
  33. package/dist/cli/{index-6wqv8f7d.js → index-8fnayk3x.js} +5 -5
  34. package/dist/cli/{index-2b3bgm20.js → index-8jq3jsas.js} +1 -1
  35. package/dist/cli/{index-xgdypzch.js → index-92bbwjek.js} +1 -1
  36. package/dist/cli/{index-62akgg9d.js → index-92y6cpqn.js} +1 -1
  37. package/dist/cli/{index-cnbpht7m.js → index-98j268bh.js} +3 -3
  38. package/dist/cli/{index-s68z4a39.js → index-9z9g1897.js} +2 -2
  39. package/dist/cli/{index-dryhmaft.js → index-ay508kfq.js} +3 -3
  40. package/dist/cli/{index-8nsjefpc.js → index-bpqw4n2f.js} +1 -1
  41. package/dist/cli/{index-6sffjy74.js → index-c5e1wr7h.js} +1 -1
  42. package/dist/cli/{index-pa6fzbms.js → index-chaa1v0b.js} +4 -4
  43. package/dist/cli/{index-cp2nerjd.js → index-dbcwvc1v.js} +43 -20
  44. package/dist/cli/{index-hgfkcb1q.js → index-ef3pecd4.js} +813 -583
  45. package/dist/cli/{index-nw16apxs.js → index-ezttvjcf.js} +5 -5
  46. package/dist/cli/{index-m1bhg85z.js → index-gbmsvfp2.js} +2 -2
  47. package/dist/cli/{index-zxck9sr7.js → index-gjrs1epm.js} +1 -1
  48. package/dist/cli/{index-9h93zjm3.js → index-hmwnegkz.js} +1 -1
  49. package/dist/cli/{index-7jt24hpz.js → index-hq9f7fwf.js} +2 -2
  50. package/dist/cli/{index-rtznwf0g.js → index-hw8w4mkh.js} +39 -39
  51. package/dist/cli/{index-07bk0zm9.js → index-j42256hj.js} +1 -1
  52. package/dist/cli/{index-ycqsnfd1.js → index-jwkybwv0.js} +4 -4
  53. package/dist/cli/{index-yj7etak0.js → index-m8dry0a6.js} +1 -1
  54. package/dist/cli/{index-dz5cbkrm.js → index-mnb1pg1n.js} +4 -4
  55. package/dist/cli/{index-rr1dggfe.js → index-nnmgg6z6.js} +1 -1
  56. package/dist/cli/{index-7n3h39h9.js → index-pe1wgpvg.js} +7 -7
  57. package/dist/cli/{index-pppjg0ct.js → index-ptp6d5mm.js} +18 -20
  58. package/dist/cli/{index-nen885g8.js → index-q9wnbz9q.js} +1 -1
  59. package/dist/cli/{index-5n08z6qj.js → index-qg0nhcke.js} +5 -5
  60. package/dist/cli/{index-ppj5bjaq.js → index-qj7ewgrf.js} +7 -7
  61. package/dist/cli/{index-nhw5rt5x.js → index-syt8wykh.js} +4 -4
  62. package/dist/cli/{index-74yxwf8y.js → index-t46swpqf.js} +1 -1
  63. package/dist/cli/{index-ekyg4p8b.js → index-teyvb5tr.js} +1 -1
  64. package/dist/cli/{index-ss6b8jpz.js → index-vvajq163.js} +2 -2
  65. package/dist/cli/{index-1fc5aj26.js → index-w12y73z5.js} +1 -1
  66. package/dist/cli/{index-vqz0avr4.js → index-wrhf5apg.js} +2 -2
  67. package/dist/cli/{index-smwybqka.js → index-xe34ymp8.js} +2 -2
  68. package/dist/cli/{index-fa014mra.js → index-xkxt1b08.js} +3 -3
  69. package/dist/cli/{index-373880cv.js → index-y7s92gte.js} +1 -1
  70. package/dist/cli/index.js +40 -40
  71. package/dist/cli/{knowledge-escalator-30bb9fyg.js → knowledge-escalator-gajaew60.js} +11 -11
  72. package/dist/cli/{knowledge-events-gfbx97x0.js → knowledge-events-fsbgfz4z.js} +9 -9
  73. package/dist/cli/{knowledge-link-dv78fb9g.js → knowledge-link-jnnk0nmk.js} +3 -3
  74. package/dist/cli/{knowledge-store-2ssd489f.js → knowledge-store-vaq1g1dx.js} +4 -4
  75. package/dist/cli/{knowledge-validator-7bxvezgv.js → knowledge-validator-pdr6m77a.js} +6 -6
  76. package/dist/cli/{mcp-apr65eya.js → mcp-5sn4e5t2.js} +1 -1
  77. package/dist/cli/{model-preflight-g7b12yn2.js → model-preflight-z9p55ssn.js} +39 -39
  78. package/dist/cli/{pending-delegations-x8q7cxr7.js → pending-delegations-asyc469v.js} +10 -10
  79. package/dist/cli/{pr-subscriptions-qwr6ybcb.js → pr-subscriptions-nacx8r6a.js} +12 -10
  80. package/dist/cli/{pr-workflow-gate-qd5tfkak.js → pr-workflow-gate-j3r636zg.js} +41 -39
  81. package/dist/cli/{runner-tb3eppeg.js → runner-fns4esbf.js} +4 -4
  82. package/dist/cli/{scan-cursor-1m6dj2s2.js → scan-cursor-y9rchz83.js} +5 -5
  83. package/dist/cli/{schema-yvhamv41.js → schema-g377jsvv.js} +1 -1
  84. package/dist/cli/{scope-persistence-xdedbzdg.js → scope-persistence-dtympt37.js} +13 -13
  85. package/dist/cli/{server-nhdkvdt2.js → server-n51pvxds.js} +39 -39
  86. package/dist/cli/{skill-generator-fzvp9m8z.js → skill-generator-k3hnf8xx.js} +13 -13
  87. package/dist/cli/{snapshot-coordination-init-xqxek8kn.js → snapshot-coordination-init-k1f93806.js} +39 -39
  88. package/dist/cli/{speckit-checkoff-57tf4079.js → speckit-checkoff-w7qbrzph.js} +4 -4
  89. package/dist/cli/{workspace-snapshot-kcfkk3a2.js → workspace-snapshot-1sa8m2ea.js} +3 -3
  90. package/dist/cli/{worktree-collision-ownership-80n814a8.js → worktree-collision-ownership-4yxah5wy.js} +11 -11
  91. package/dist/cli/{worktree-isolation-kaxkr61t.js → worktree-isolation-p0pz81a1.js} +39 -39
  92. package/dist/git/pr.d.ts +73 -0
  93. package/dist/hooks/pr-workflow-gate.d.ts +69 -0
  94. package/dist/index.js +39 -39
  95. package/dist/tools/write-pr-review-trigger-eval.d.ts +2 -1
  96. package/package.json +1 -1
  97. package/dist/cli/curator-llm-factory-hkk29g2y.js +0 -81
  98. package/dist/cli/guardrail-explain-ma658hkw.js +0 -82
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  validateSwarmPath
4
- } from "./index-afmyp3kt.js";
4
+ } from "./index-5v1sqv3m.js";
5
5
  import {
6
6
  bunWrite
7
7
  } from "./index-2s7dvzff.js";
@@ -18,14 +18,14 @@ import {
18
18
  releaseCoordinationLease,
19
19
  transitionCoordinationState,
20
20
  withCoordinationTransaction
21
- } from "./index-nen885g8.js";
21
+ } from "./index-q9wnbz9q.js";
22
22
  import {
23
23
  getProjectDb,
24
24
  projectDbExists
25
- } from "./index-74yxwf8y.js";
25
+ } from "./index-t46swpqf.js";
26
26
  import {
27
27
  observeDelegationLedgerPressure
28
- } from "./index-xgdypzch.js";
28
+ } from "./index-92bbwjek.js";
29
29
  import {
30
30
  EvidenceLockTimeoutError,
31
31
  withEvidenceLock
@@ -4724,7 +4724,7 @@ async function reconcileLegacyCoderSettlements(directory, maxRecords, onReconcil
4724
4724
  const candidates = readDelegations(directory).filter((record) => record.normalizedAgent === "coder" && Boolean(record.legacyCoderSettlementTransfer) && Boolean(record.terminalResult)).slice(0, maxRecords);
4725
4725
  if (candidates.length === 0)
4726
4726
  return 0;
4727
- const { transferCoderSettlementToBackground } = await import("./coder-settlement-56prayae.js");
4727
+ const { transferCoderSettlementToBackground } = await import("./coder-settlement-x198191a.js");
4728
4728
  let transferred = 0;
4729
4729
  for (const record of candidates) {
4730
4730
  try {
@@ -14,14 +14,14 @@ import {
14
14
  detectWindowsWrites,
15
15
  getSharedClassifierGuardrailBlock,
16
16
  resolveWriteTargets
17
- } from "./index-hgfkcb1q.js";
17
+ } from "./index-ef3pecd4.js";
18
18
  import {
19
19
  checkFileAuthority,
20
20
  classifyFile,
21
21
  isInDeclaredScope,
22
22
  redactPath,
23
23
  redactShellCommand
24
- } from "./index-ss6b8jpz.js";
24
+ } from "./index-vvajq163.js";
25
25
 
26
26
  // src/services/guardrail-explain-service.ts
27
27
  import path from "path";
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  atomicWriteFile
4
- } from "./index-6sffjy74.js";
4
+ } from "./index-c5e1wr7h.js";
5
5
  import {
6
6
  canonicalRootKeyFresh
7
7
  } from "./index-mc72pk74.js";
@@ -12,7 +12,7 @@ import {
12
12
  PluginConfigSchema,
13
13
  init_schema,
14
14
  stripKnownSwarmPrefix
15
- } from "./index-rr1dggfe.js";
15
+ } from "./index-nnmgg6z6.js";
16
16
  import {
17
17
  ALL_AGENT_NAMES,
18
18
  TOOL_NAME_SET,
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  init_loader,
4
4
  loadPluginConfigWithMeta
5
- } from "./index-ekyg4p8b.js";
5
+ } from "./index-teyvb5tr.js";
6
6
  import {
7
7
  init_schema
8
- } from "./index-rr1dggfe.js";
8
+ } from "./index-nnmgg6z6.js";
9
9
  import {
10
10
  DEFAULT_WORKTREE_ISOLATION_CONFIG,
11
11
  init_constants
@@ -23,63 +23,63 @@ import {
23
23
  resolveFallbackModel,
24
24
  resolvePrimaryAgentNames,
25
25
  stripSwarmPrefix
26
- } from "./index-hgfkcb1q.js";
27
- import"./index-ss6b8jpz.js";
28
- import"./index-9h93zjm3.js";
29
- import"./index-pa6fzbms.js";
26
+ } from "./index-ef3pecd4.js";
27
+ import"./index-vvajq163.js";
28
+ import"./index-hmwnegkz.js";
29
+ import"./index-chaa1v0b.js";
30
30
  import"./index-7bxssqaf.js";
31
- import"./index-1fc5aj26.js";
32
- import"./index-62akgg9d.js";
31
+ import"./index-w12y73z5.js";
32
+ import"./index-92y6cpqn.js";
33
33
  import"./index-txdagbh7.js";
34
- import"./index-smwybqka.js";
34
+ import"./index-xe34ymp8.js";
35
35
  import {
36
36
  createExplorerAgent
37
37
  } from "./index-rdec0y3z.js";
38
- import"./index-s7va6n84.js";
39
- import"./index-ek5gvpvm.js";
40
- import"./index-dz5cbkrm.js";
41
- import"./index-5n08z6qj.js";
42
- import"./index-s68z4a39.js";
43
- import"./index-cp2nerjd.js";
38
+ import"./index-0t61279z.js";
39
+ import"./index-4h6e73bx.js";
40
+ import"./index-mnb1pg1n.js";
41
+ import"./index-qg0nhcke.js";
42
+ import"./index-9z9g1897.js";
43
+ import"./index-dbcwvc1v.js";
44
44
  import"./index-cjapb4hy.js";
45
- import"./index-vqz0avr4.js";
45
+ import"./index-wrhf5apg.js";
46
46
  import"./index-pt7h91zc.js";
47
47
  import"./index-q7sjgr1y.js";
48
- import"./index-nhw5rt5x.js";
49
- import"./index-pppjg0ct.js";
48
+ import"./index-syt8wykh.js";
49
+ import"./index-ptp6d5mm.js";
50
50
  import"./index-6b295cas.js";
51
51
  import"./index-9nyqt3kb.js";
52
- import"./index-2b3bgm20.js";
52
+ import"./index-8jq3jsas.js";
53
53
  import"./index-zsrtt42s.js";
54
- import"./index-zt3taseq.js";
55
- import"./index-cnbpht7m.js";
56
- import"./index-2c6e1p7j.js";
54
+ import"./index-3rd7gqfg.js";
55
+ import"./index-98j268bh.js";
56
+ import"./index-4z0zdcd7.js";
57
57
  import"./index-g4fs6z4e.js";
58
- import"./index-nw16apxs.js";
59
- import"./index-ppj5bjaq.js";
60
- import"./index-afmyp3kt.js";
58
+ import"./index-ezttvjcf.js";
59
+ import"./index-qj7ewgrf.js";
60
+ import"./index-5v1sqv3m.js";
61
61
  import"./index-2s7dvzff.js";
62
- import"./index-ycqsnfd1.js";
63
- import"./index-8nsjefpc.js";
62
+ import"./index-jwkybwv0.js";
63
+ import"./index-bpqw4n2f.js";
64
64
  import"./index-rtry5xyf.js";
65
- import"./index-7jt24hpz.js";
65
+ import"./index-hq9f7fwf.js";
66
66
  import"./index-frcemc0b.js";
67
67
  import"./index-0725jpp7.js";
68
- import"./index-6wqv8f7d.js";
69
- import"./index-dryhmaft.js";
70
- import"./index-373880cv.js";
71
- import"./index-9g61bfj9.js";
72
- import"./index-nen885g8.js";
73
- import"./index-74yxwf8y.js";
68
+ import"./index-8fnayk3x.js";
69
+ import"./index-ay508kfq.js";
70
+ import"./index-y7s92gte.js";
71
+ import"./index-010en5sq.js";
72
+ import"./index-q9wnbz9q.js";
73
+ import"./index-t46swpqf.js";
74
74
  import"./index-ry16d01s.js";
75
75
  import"./index-rdm3px0g.js";
76
76
  import"./index-7pmbnjvj.js";
77
- import"./index-xgdypzch.js";
78
- import"./index-7n3h39h9.js";
77
+ import"./index-92bbwjek.js";
78
+ import"./index-pe1wgpvg.js";
79
79
  import"./index-vzm6zre7.js";
80
80
  import"./index-ae75rja9.js";
81
- import"./index-zxck9sr7.js";
82
- import"./index-6sffjy74.js";
81
+ import"./index-gjrs1epm.js";
82
+ import"./index-c5e1wr7h.js";
83
83
  import"./index-6cjpmvpa.js";
84
84
  import"./index-t7hmqgjy.js";
85
85
  import"./index-w6w6ny06.js";
@@ -87,11 +87,11 @@ import"./index-mc72pk74.js";
87
87
  import"./index-c1ggtmpm.js";
88
88
  import"./index-ejhxgyvm.js";
89
89
  import"./index-7g4c7s5r.js";
90
- import"./index-yj7etak0.js";
90
+ import"./index-m8dry0a6.js";
91
91
  import"./index-gx2vp8gx.js";
92
- import"./index-ekyg4p8b.js";
92
+ import"./index-teyvb5tr.js";
93
93
  import"./index-zxdawwc7.js";
94
- import"./index-rr1dggfe.js";
94
+ import"./index-nnmgg6z6.js";
95
95
  import"./index-48jvqqfa.js";
96
96
  import"./index-bk5tah7q.js";
97
97
  import"./index-gknz3bv1.js";
@@ -4,7 +4,7 @@ import {
4
4
  readShellAuditTail,
5
5
  redactPath,
6
6
  redactShellCommand
7
- } from "./index-ss6b8jpz.js";
7
+ } from "./index-vvajq163.js";
8
8
 
9
9
  // src/services/guardrail-log-service.ts
10
10
  var BLOCK_TYPES = new Set([
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  authorizeCuration
4
- } from "./index-8nsjefpc.js";
4
+ } from "./index-bpqw4n2f.js";
5
5
  import {
6
6
  findNearDuplicate,
7
7
  inferTags,
@@ -9,13 +9,13 @@ import {
9
9
  resolveSwarmKnowledgePath,
10
10
  resolveSwarmRejectedPath,
11
11
  transactKnowledge
12
- } from "./index-7n3h39h9.js";
12
+ } from "./index-pe1wgpvg.js";
13
13
  import {
14
14
  resolveKnowledgeStoreDir
15
- } from "./index-zxck9sr7.js";
15
+ } from "./index-gjrs1epm.js";
16
16
  import {
17
17
  atomicWriteFile
18
- } from "./index-6sffjy74.js";
18
+ } from "./index-c5e1wr7h.js";
19
19
  import {
20
20
  require_proper_lockfile
21
21
  } from "./index-7g4c7s5r.js";
@@ -338,7 +338,7 @@ var SWARM_TEMP_GRAMMARS = [
338
338
  producers: [
339
339
  "src/tools/write-pr-review-artifact.ts:154",
340
340
  "src/tools/write-pr-review-artifact.ts:174",
341
- "src/tools/write-pr-review-trigger-eval.ts:100"
341
+ "src/tools/write-pr-review-trigger-eval.ts:105"
342
342
  ],
343
343
  note: "bundled-skills writes outside .swarm (project skill roots) and keeps its own contained-directory logic (invariant 4 bundled-skill ownership)"
344
344
  },
@@ -5,18 +5,18 @@ import {
5
5
  import {
6
6
  effectiveRetrievalOutcomes,
7
7
  readAuthoritativeKnowledgeCounterRollups
8
- } from "./index-ppj5bjaq.js";
8
+ } from "./index-qj7ewgrf.js";
9
9
  import {
10
10
  ALLOWED_SKILL_PATH_PREFIXES,
11
11
  validateSkillPath
12
- } from "./index-ycqsnfd1.js";
12
+ } from "./index-jwkybwv0.js";
13
13
  import {
14
14
  computeOutcomeSignal,
15
15
  readKnowledge,
16
16
  resolveHiveKnowledgePath,
17
17
  resolveSwarmKnowledgePath,
18
18
  transactKnowledge
19
- } from "./index-7n3h39h9.js";
19
+ } from "./index-pe1wgpvg.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-yj7etak0.js";
30
+ } from "./index-m8dry0a6.js";
31
31
  import {
32
32
  advisoryWarn,
33
33
  init_warning_buffer
@@ -21,7 +21,7 @@ var package_default;
21
21
  var init_package = __esm(() => {
22
22
  package_default = {
23
23
  name: "opencode-swarm",
24
- version: "7.185.1",
24
+ version: "7.186.1",
25
25
  description: "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
26
26
  main: "dist/index.js",
27
27
  types: "dist/index.d.ts",
@@ -11,16 +11,16 @@ import {
11
11
  } from "./index-ae75rja9.js";
12
12
  import {
13
13
  resolveKnowledgeStoreDir
14
- } from "./index-zxck9sr7.js";
14
+ } from "./index-gjrs1epm.js";
15
15
  import {
16
16
  atomicWriteFile
17
- } from "./index-6sffjy74.js";
17
+ } from "./index-c5e1wr7h.js";
18
18
  import {
19
19
  require_proper_lockfile
20
20
  } from "./index-7g4c7s5r.js";
21
21
  import {
22
22
  readCachedParsedFile
23
- } from "./index-yj7etak0.js";
23
+ } from "./index-m8dry0a6.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-gfbx97x0.js");
742
+ } = await import("./knowledge-events-fsbgfz4z.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-7bxvezgv.js");
810
- const { KnowledgeConfigSchema } = await import("./schema-yvhamv41.js");
809
+ const { quarantineEntry } = await import("./knowledge-validator-pdr6m77a.js");
810
+ const { KnowledgeConfigSchema } = await import("./schema-g377jsvv.js");
811
811
  let config;
812
812
  try {
813
- const { loadPluginConfigWithMeta } = await import("./index-fa014mra.js");
813
+ const { loadPluginConfigWithMeta } = await import("./index-xkxt1b08.js");
814
814
  const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
815
815
  config = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
816
816
  } catch {
@@ -4,7 +4,7 @@ import {
4
4
  } from "./index-6b295cas.js";
5
5
  import {
6
6
  readEffectiveSpecSync
7
- } from "./index-2b3bgm20.js";
7
+ } from "./index-8jq3jsas.js";
8
8
  import {
9
9
  getWorktreeMergeFailure
10
10
  } from "./index-zsrtt42s.js";
@@ -20,7 +20,7 @@ import {
20
20
  estimateTokens,
21
21
  readSwarmFileAsync,
22
22
  validateSwarmPath
23
- } from "./index-afmyp3kt.js";
23
+ } from "./index-5v1sqv3m.js";
24
24
  import {
25
25
  bunHash,
26
26
  bunWrite,
@@ -44,22 +44,22 @@ import {
44
44
  replayFromLedgerWithStatus,
45
45
  takeSnapshotEvent,
46
46
  takeSnapshotWithRetry
47
- } from "./index-dryhmaft.js";
47
+ } from "./index-ay508kfq.js";
48
48
  import {
49
49
  appendCoreEventSync
50
- } from "./index-373880cv.js";
50
+ } from "./index-y7s92gte.js";
51
51
  import {
52
52
  getCoordinationState,
53
53
  importCoordinationOnce,
54
54
  listCoordinationStates,
55
55
  transitionCoordinationState
56
- } from "./index-nen885g8.js";
56
+ } from "./index-q9wnbz9q.js";
57
57
  import {
58
58
  DURABILITY_CLASSES,
59
59
  getProjectDb,
60
60
  projectDbExists,
61
61
  withDurabilityClass
62
- } from "./index-74yxwf8y.js";
62
+ } from "./index-t46swpqf.js";
63
63
  import {
64
64
  derivePlanId,
65
65
  derivePlanIdentityHash
@@ -80,7 +80,7 @@ import {
80
80
  atomicWriteSwarmFileSync,
81
81
  invalidateCachedArtifact,
82
82
  readCachedParsedFile
83
- } from "./index-yj7etak0.js";
83
+ } from "./index-m8dry0a6.js";
84
84
  import {
85
85
  PlanSchema,
86
86
  normalizeCurrentPhaseInPlace,
@@ -283,6 +283,14 @@ function transientBackoff(attempt) {
283
283
  }
284
284
  }
285
285
 
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
+
286
294
  // src/plan/manager.ts
287
295
  import {
288
296
  closeSync,
@@ -938,16 +946,6 @@ var _internals = {
938
946
  // src/services/run-memory.ts
939
947
  import * as crypto from "crypto";
940
948
  import * as fs from "fs/promises";
941
-
942
- // src/hooks/context-sanitizer.ts
943
- function sanitizeContextText(text) {
944
- return text.split("").filter((char) => {
945
- const code = char.charCodeAt(0);
946
- return code === 9 || code === 10 || code === 13 || code > 31 && code !== 127;
947
- }).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]");
948
- }
949
-
950
- // src/services/run-memory.ts
951
949
  init_logger();
952
950
  var RUN_MEMORY_FILENAME = "run-memory.jsonl";
953
951
  var MAX_SUMMARY_TOKENS = 500;
@@ -3004,7 +3002,7 @@ ${markdown}`;
3004
3002
  }
3005
3003
  }
3006
3004
  async function defaultMaybeSaveAutoCheckpoint(directory, plan) {
3007
- const { maybeSaveAutoCheckpoint } = await import("./auto-checkpoint-2jecngee.js");
3005
+ const { maybeSaveAutoCheckpoint } = await import("./auto-checkpoint-fsd4a9q9.js");
3008
3006
  return maybeSaveAutoCheckpoint(directory, plan);
3009
3007
  }
3010
3008
  async function updateTaskStatus(directory, taskId, status, options) {
@@ -3080,7 +3078,7 @@ async function updateTaskStatus(directory, taskId, status, options) {
3080
3078
  if (status === "completed") {
3081
3079
  try {
3082
3080
  const completedTask = updatedPlan.phases.flatMap((phase) => phase.tasks).find((candidate) => candidate.id === taskId);
3083
- const { maybePropagateSpeckitCheckoff } = await import("./speckit-checkoff-57tf4079.js");
3081
+ const { maybePropagateSpeckitCheckoff } = await import("./speckit-checkoff-w7qbrzph.js");
3084
3082
  await maybePropagateSpeckitCheckoff(directory, {
3085
3083
  taskId,
3086
3084
  frRefs: completedTask?.fr_refs ?? [],
@@ -3105,7 +3103,7 @@ async function updateTaskStatus(directory, taskId, status, options) {
3105
3103
  break;
3106
3104
  }
3107
3105
  }
3108
- const { readDeclaredScopeFilesFromBindings } = await import("./scope-persistence-xdedbzdg.js");
3106
+ const { readDeclaredScopeFilesFromBindings } = await import("./scope-persistence-dtympt37.js");
3109
3107
  const canonicalScope = readDeclaredScopeFilesFromBindings({
3110
3108
  directory,
3111
3109
  taskId,
@@ -4,7 +4,7 @@ import {
4
4
  getProjectDb,
5
5
  projectDbExists,
6
6
  withImmediateTransaction
7
- } from "./index-74yxwf8y.js";
7
+ } from "./index-t46swpqf.js";
8
8
 
9
9
  // src/db/coordination-store.ts
10
10
  import { createHash } from "crypto";
@@ -3,7 +3,7 @@ import {
3
3
  queryHistoricalOutcomes,
4
4
  readKnowledgeEvents,
5
5
  recordKnowledgeEvent
6
- } from "./index-ppj5bjaq.js";
6
+ } from "./index-qj7ewgrf.js";
7
7
  import {
8
8
  jaccardBigram,
9
9
  readKnowledge,
@@ -11,7 +11,7 @@ import {
11
11
  resolveSwarmKnowledgePath,
12
12
  transactKnowledge,
13
13
  wordBigrams
14
- } from "./index-7n3h39h9.js";
14
+ } from "./index-pe1wgpvg.js";
15
15
  import {
16
16
  init_knowledge_types,
17
17
  isActiveStatus
@@ -224,11 +224,11 @@ async function maybeQuarantineOnContradiction(directory, entryId, threshold, win
224
224
  alreadyInactive: true
225
225
  };
226
226
  }
227
- const { quarantineEntry } = await import("./knowledge-validator-7bxvezgv.js");
227
+ const { quarantineEntry } = await import("./knowledge-validator-pdr6m77a.js");
228
228
  let policyConfig;
229
229
  try {
230
- const { KnowledgeConfigSchema } = await import("./schema-yvhamv41.js");
231
- const { loadPluginConfigWithMeta } = await import("./index-fa014mra.js");
230
+ const { KnowledgeConfigSchema } = await import("./schema-g377jsvv.js");
231
+ const { loadPluginConfigWithMeta } = await import("./index-xkxt1b08.js");
232
232
  const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
233
233
  policyConfig = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
234
234
  } catch {
@@ -1,19 +1,19 @@
1
1
  // @bun
2
2
  import {
3
3
  validateSwarmPath
4
- } from "./index-afmyp3kt.js";
4
+ } from "./index-5v1sqv3m.js";
5
5
  import {
6
6
  observeReceiptTransition
7
- } from "./index-xgdypzch.js";
7
+ } from "./index-92bbwjek.js";
8
8
  import {
9
9
  resolveHiveEventsPath
10
10
  } from "./index-ae75rja9.js";
11
11
  import {
12
12
  resolveKnowledgeStoreDir
13
- } from "./index-zxck9sr7.js";
13
+ } from "./index-gjrs1epm.js";
14
14
  import {
15
15
  atomicWriteFile
16
- } from "./index-6sffjy74.js";
16
+ } from "./index-c5e1wr7h.js";
17
17
  import {
18
18
  assertProjectRoot
19
19
  } from "./index-t7hmqgjy.js";
@@ -28,11 +28,11 @@ import {
28
28
  } from "./index-7g4c7s5r.js";
29
29
  import {
30
30
  loadPluginConfigWithMeta
31
- } from "./index-ekyg4p8b.js";
31
+ } from "./index-teyvb5tr.js";
32
32
  import {
33
33
  KnowledgeConfigSchema,
34
34
  init_schema
35
- } from "./index-rr1dggfe.js";
35
+ } from "./index-nnmgg6z6.js";
36
36
  import {
37
37
  init_logger,
38
38
  warn
@@ -2946,7 +2946,7 @@ async function applyKnowledgeVerdictFeedback(directory, options) {
2946
2946
  }
2947
2947
  let bumps = 0;
2948
2948
  if (deltas.length > 0) {
2949
- const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-2ssd489f.js");
2949
+ const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-vaq1g1dx.js");
2950
2950
  bumps = await bumpKnowledgeConfidenceBatch(directory, deltas, options?.floorOptions);
2951
2951
  }
2952
2952
  return {
@@ -7,7 +7,7 @@ import {
7
7
  loadPlan,
8
8
  transientBackoff,
9
9
  updateTaskCheckpointReceipt
10
- } from "./index-pppjg0ct.js";
10
+ } from "./index-ptp6d5mm.js";
11
11
  import {
12
12
  tool
13
13
  } from "./index-9nyqt3kb.js";
@@ -20,10 +20,10 @@ import {
20
20
  } from "./index-g4fs6z4e.js";
21
21
  import {
22
22
  readLedgerEvents
23
- } from "./index-dryhmaft.js";
23
+ } from "./index-ay508kfq.js";
24
24
  import {
25
25
  appendCoreEventSync
26
- } from "./index-373880cv.js";
26
+ } from "./index-y7s92gte.js";
27
27
  import {
28
28
  derivePlanId,
29
29
  derivePlanIdentityHash
@@ -38,7 +38,7 @@ import {
38
38
  } from "./index-ejhxgyvm.js";
39
39
  import {
40
40
  loadPluginConfigWithMeta
41
- } from "./index-ekyg4p8b.js";
41
+ } from "./index-teyvb5tr.js";
42
42
  import {
43
43
  init_git_executable,
44
44
  resolveGitExecutable
@@ -11,7 +11,7 @@ import {
11
11
  } from "./index-mc72pk74.js";
12
12
  import {
13
13
  atomicWriteSwarmFileSync
14
- } from "./index-yj7etak0.js";
14
+ } from "./index-m8dry0a6.js";
15
15
 
16
16
  // src/db/project-db.ts
17
17
  import { existsSync, mkdirSync, unlinkSync } from "fs";
@@ -13,7 +13,7 @@ import {
13
13
  PluginConfigSchema,
14
14
  init_schema,
15
15
  resolveExternalSkillsConfig
16
- } from "./index-rr1dggfe.js";
16
+ } from "./index-nnmgg6z6.js";
17
17
  import {
18
18
  DangerousMergeKeyError,
19
19
  MAX_MERGE_DEPTH,
@@ -1,14 +1,14 @@
1
1
  // @bun
2
2
  import {
3
3
  observeStoreHealth
4
- } from "./index-xgdypzch.js";
4
+ } from "./index-92bbwjek.js";
5
5
  import {
6
6
  telemetry
7
7
  } from "./index-w6w6ny06.js";
8
8
  import {
9
9
  init_schema,
10
10
  stripKnownSwarmPrefix
11
- } from "./index-rr1dggfe.js";
11
+ } from "./index-nnmgg6z6.js";
12
12
  import {
13
13
  init_constants
14
14
  } from "./index-48jvqqfa.js";
@@ -9,7 +9,7 @@ import {
9
9
  readEvaluationRun,
10
10
  saveEvaluationRun,
11
11
  saveTaskSetSnapshot
12
- } from "./index-62akgg9d.js";
12
+ } from "./index-92y6cpqn.js";
13
13
  import {
14
14
  canonicalHash,
15
15
  computeCandidateInputContentHash,
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  validateSwarmPath
4
- } from "./index-afmyp3kt.js";
4
+ } from "./index-5v1sqv3m.js";
5
5
  import {
6
6
  atomicWriteSwarmFileSync
7
- } from "./index-yj7etak0.js";
7
+ } from "./index-m8dry0a6.js";
8
8
 
9
9
  // src/hooks/delegation-gate/worktree-provisioning-owner.ts
10
10
  import { createHash } from "crypto";
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  readKnowledge,
4
4
  transactKnowledge
5
- } from "./index-7n3h39h9.js";
5
+ } from "./index-pe1wgpvg.js";
6
6
  import {
7
7
  resolveKnowledgeStoreDir
8
- } from "./index-zxck9sr7.js";
8
+ } from "./index-gjrs1epm.js";
9
9
  import {
10
10
  init_git_executable,
11
11
  resolveGitExecutableAsync