opencode-swarm 7.160.1 → 7.161.0

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 (94) hide show
  1. package/.opencode/skills/critic-gate/SKILL.md +8 -1
  2. package/.opencode/skills/execute/SKILL.md +4 -3
  3. package/.opencode/skills/phase-wrap/SKILL.md +2 -0
  4. package/.opencode/skills/running-tests/SKILL.md +6 -0
  5. package/.opencode/skills/swarm-implement/SKILL.md +2 -0
  6. package/.opencode/skills/swarm-pr-review/SKILL.md +1 -0
  7. package/dist/agents/architect.d.ts +1 -1
  8. package/dist/background/delegation-lifecycle.d.ts +374 -0
  9. package/dist/background/pending-delegations.d.ts +6 -0
  10. package/dist/build/command-resolution.d.ts +13 -0
  11. package/dist/build/discovery.d.ts +11 -4
  12. package/dist/cli/{coder-settlement-678ccmnf.js → coder-settlement-nayk1bbf.js} +8 -8
  13. package/dist/cli/{config-doctor-fr8dfrt2.js → config-doctor-b1w7yvcs.js} +2 -2
  14. package/dist/cli/{core-4j1hbhey.js → core-whesnhpf.js} +1 -1
  15. package/dist/cli/{curation-policy-47przjwg.js → curation-policy-ej9xc0cd.js} +5 -5
  16. package/dist/cli/{curator-85d97240.js → curator-1rzb285s.js} +31 -31
  17. package/dist/cli/{curator-llm-factory-s9s4s0q3.js → curator-llm-factory-bqfkaq6y.js} +31 -31
  18. package/dist/cli/{dispatch-7r46tfr9.js → dispatch-q4v8x2pk.js} +1 -1
  19. package/dist/cli/{evidence-summary-service-9dyt2kzh.js → evidence-summary-service-ma8drpv5.js} +13 -13
  20. package/dist/cli/{gate-evidence-a6paafg8.js → gate-evidence-7eh82zs0.js} +5 -5
  21. package/dist/cli/{guardrail-explain-4a2xdtew.js → guardrail-explain-em2mqz9a.js} +32 -32
  22. package/dist/cli/{guardrail-log-27nkntrx.js → guardrail-log-845tfrwb.js} +6 -6
  23. package/dist/cli/{guardrail-reset-xn7k3hn8.js → guardrail-reset-091xw53a.js} +31 -31
  24. package/dist/cli/{hive-promoter-k57j3kp6.js → hive-promoter-kx8t5em3.js} +31 -31
  25. package/dist/cli/{index-zpzvpybn.js → index-14dgnwmh.js} +2 -2
  26. package/dist/cli/{index-nj6rmyeh.js → index-3146wmgv.js} +352 -149
  27. package/dist/cli/{index-wccdm7jv.js → index-3cxfqdpv.js} +4 -4
  28. package/dist/cli/{index-e1ygmd4q.js → index-52f67bbh.js} +33 -33
  29. package/dist/cli/{index-gjx53y3c.js → index-54jznpq7.js} +1 -1
  30. package/dist/cli/{index-7h2armwf.js → index-7619tk9a.js} +2 -2
  31. package/dist/cli/{index-7v0ex0jt.js → index-7qera0f6.js} +2 -2
  32. package/dist/cli/{index-v8dsmee1.js → index-93pf824c.js} +3 -3
  33. package/dist/cli/{index-drqvph47.js → index-ambz0ryy.js} +4 -4
  34. package/dist/cli/{index-prv20xq6.js → index-c6zyqgpq.js} +1 -1
  35. package/dist/cli/{index-nnzdayvk.js → index-d1h4sf8f.js} +6 -6
  36. package/dist/cli/{index-7ezv5j23.js → index-d8st72j7.js} +1 -1
  37. package/dist/cli/{index-nk498mx6.js → index-dq41vsf9.js} +2 -2
  38. package/dist/cli/{index-m84z3aa8.js → index-et1jpj6z.js} +3 -3
  39. package/dist/cli/{index-bqxffayb.js → index-etdtfhhv.js} +1 -1
  40. package/dist/cli/{index-m1cw9fsh.js → index-f4dmccpd.js} +8 -8
  41. package/dist/cli/{index-znf683sm.js → index-f5axf6vq.js} +1 -1
  42. package/dist/cli/{index-dke4wzkn.js → index-fx3em0dr.js} +17 -1
  43. package/dist/cli/{index-98jmggma.js → index-gkv7s4xy.js} +8 -8
  44. package/dist/cli/{index-f72612zc.js → index-h6wtxzvm.js} +1 -1
  45. package/dist/cli/{index-mmr96pwr.js → index-k55td019.js} +1 -1
  46. package/dist/cli/{index-61c3d769.js → index-mbktm1ah.js} +7 -4
  47. package/dist/cli/{index-jszabr0r.js → index-mj6ndvee.js} +4 -4
  48. package/dist/cli/{index-b5adxpy6.js → index-nqbqkx4c.js} +1 -1
  49. package/dist/cli/{index-8c9qzpy7.js → index-q8hm27yj.js} +7 -1
  50. package/dist/cli/{index-zdv914xa.js → index-qjge2m9r.js} +81 -74
  51. package/dist/cli/{index-j3ss86kf.js → index-s33ee2w3.js} +1 -1
  52. package/dist/cli/{index-z0bxbb9g.js → index-t81fmfjj.js} +4 -4
  53. package/dist/cli/{index-pkz91fwm.js → index-trmqq4wm.js} +2 -2
  54. package/dist/cli/{index-dq93ar40.js → index-w9g58t3j.js} +5 -5
  55. package/dist/cli/{index-ny0g8fdg.js → index-wrtgyvre.js} +5 -5
  56. package/dist/cli/{index-qc53dfzh.js → index-xy0e0r5f.js} +1 -1
  57. package/dist/cli/{index-pqjcyj0p.js → index-y0ra2v4w.js} +3 -3
  58. package/dist/cli/{index-497a3hhj.js → index-y14mwbk8.js} +3 -3
  59. package/dist/cli/{index-7npz9n4s.js → index-zkgrayya.js} +1 -1
  60. package/dist/cli/index.js +31 -31
  61. package/dist/cli/{knowledge-escalator-3q2x34cg.js → knowledge-escalator-9eqpsbw5.js} +12 -12
  62. package/dist/cli/{knowledge-events-5y34w84b.js → knowledge-events-a8r4ej12.js} +10 -10
  63. package/dist/cli/{knowledge-link-xezm8hr3.js → knowledge-link-8knefv8x.js} +4 -4
  64. package/dist/cli/{knowledge-store-fqv89q5k.js → knowledge-store-ydzeppv7.js} +5 -5
  65. package/dist/cli/{knowledge-validator-fsdx14tk.js → knowledge-validator-mnv58he9.js} +7 -7
  66. package/dist/cli/{pending-delegations-6ae7wy5q.js → pending-delegations-9mwmrwwm.js} +6 -4
  67. package/dist/cli/{pr-review-reentry-authorization-986tk381.js → pr-review-reentry-authorization-h1ssfq37.js} +31 -31
  68. package/dist/cli/{pr-subscriptions-asjevc5p.js → pr-subscriptions-3zwthnan.js} +4 -4
  69. package/dist/cli/{runner-wsdcy2d6.js → runner-fzgkd6m1.js} +5 -5
  70. package/dist/cli/{scan-cursor-shn926r6.js → scan-cursor-5rmaqw2t.js} +6 -6
  71. package/dist/cli/{schema-98tdb9h0.js → schema-72vpr9xy.js} +1 -1
  72. package/dist/cli/{scope-persistence-cn34xnwr.js → scope-persistence-39mwns79.js} +8 -8
  73. package/dist/cli/{skill-generator-kck7087c.js → skill-generator-9aay0t53.js} +14 -14
  74. package/dist/cli/{telemetry-gpr9s3sm.js → telemetry-cmbjv240.js} +1 -1
  75. package/dist/cli/{worktree-collision-ownership-6b3kshcv.js → worktree-collision-ownership-ybhktnq4.js} +4 -4
  76. package/dist/cli/{worktree-isolation-he01qhss.js → worktree-isolation-w8ett6bs.js} +31 -31
  77. package/dist/config/evidence-schema.d.ts +20 -2
  78. package/dist/config/schema.d.ts +7 -7
  79. package/dist/hooks/delegate-ack-collector.d.ts +74 -0
  80. package/dist/hooks/knowledge-injector.d.ts +12 -1
  81. package/dist/index.js +280 -279
  82. package/dist/lang/default-backend.d.ts +1 -13
  83. package/dist/learning/admission.d.ts +2 -2
  84. package/dist/memory/schema.d.ts +3 -3
  85. package/dist/observability/catalog.d.ts +2 -2
  86. package/dist/prm/types.d.ts +9 -0
  87. package/dist/telemetry.d.ts +9 -1
  88. package/dist/tools/build-check.d.ts +4 -0
  89. package/dist/tools/repo-graph/retrieval-router.d.ts +57 -0
  90. package/dist/tools/repo-graph.d.ts +2 -0
  91. package/dist/tools/repo-map.d.ts +202 -0
  92. package/dist/tools/search.d.ts +2 -2
  93. package/dist/tools/test-runner.d.ts +2 -0
  94. package/package.json +1 -1
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  _internals,
4
4
  resolveWorktreeIsolationConfig
5
- } from "./index-pkz91fwm.js";
5
+ } from "./index-trmqq4wm.js";
6
6
  import {
7
7
  ApprovalEvidenceSchema,
8
8
  BaseEvidenceSchema,
@@ -17,7 +17,7 @@ import {
17
17
  NoteEvidenceSchema,
18
18
  ReviewEvidenceSchema,
19
19
  TestEvidenceSchema
20
- } from "./index-8c9qzpy7.js";
20
+ } from "./index-q8hm27yj.js";
21
21
  import {
22
22
  DeltaSpecSchema,
23
23
  ObligationSchema,
@@ -42,7 +42,7 @@ import {
42
42
  loadPluginConfig,
43
43
  loadPluginConfigWithMeta,
44
44
  loadPluginConfigWithMetaAsync
45
- } from "./index-bqxffayb.js";
45
+ } from "./index-etdtfhhv.js";
46
46
  import {
47
47
  AUTO_REVIEW_V8_BURN_IN_DECISION,
48
48
  AgentOverrideConfigSchema,
@@ -64,7 +64,7 @@ import {
64
64
  TurboConfigSchema,
65
65
  WorktreeIsolationConfigSchema,
66
66
  resolveAutoReviewConfig
67
- } from "./index-7npz9n4s.js";
67
+ } from "./index-zkgrayya.js";
68
68
  import"./index-9e6fdz2h.js";
69
69
  import"./index-4rhhvd1a.js";
70
70
  import {
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailExplain
4
- } from "./index-zpzvpybn.js";
4
+ } from "./index-14dgnwmh.js";
5
5
  import {
6
6
  handleGuardrailLog
7
- } from "./index-gjx53y3c.js";
7
+ } from "./index-54jznpq7.js";
8
8
  import {
9
9
  COMMAND_REGISTRY,
10
10
  SWARM_COMMAND_TOOL_ALLOWLIST,
@@ -94,56 +94,56 @@ import {
94
94
  handleWriteRetroCommand,
95
95
  normalizeSwarmCommandInput,
96
96
  resolveCommand
97
- } from "./index-zdv914xa.js";
98
- import"./index-j3ss86kf.js";
99
- import"./index-m84z3aa8.js";
100
- import"./index-f72612zc.js";
101
- import"./index-m1cw9fsh.js";
102
- import"./index-nk498mx6.js";
97
+ } from "./index-qjge2m9r.js";
98
+ import"./index-s33ee2w3.js";
99
+ import"./index-et1jpj6z.js";
100
+ import"./index-h6wtxzvm.js";
101
+ import"./index-f4dmccpd.js";
102
+ import"./index-dq41vsf9.js";
103
103
  import"./index-txdagbh7.js";
104
104
  import"./index-134d35c1.js";
105
- import"./index-nj6rmyeh.js";
106
- import"./index-v8dsmee1.js";
107
- import"./index-ny0g8fdg.js";
108
- import"./index-7v0ex0jt.js";
105
+ import"./index-3146wmgv.js";
106
+ import"./index-93pf824c.js";
107
+ import"./index-wrtgyvre.js";
108
+ import"./index-7qera0f6.js";
109
109
  import"./index-70ha9e09.js";
110
110
  import"./index-c8s9a3zh.js";
111
111
  import"./index-9ss2m4rs.js";
112
- import"./index-497a3hhj.js";
112
+ import"./index-y14mwbk8.js";
113
113
  import"./index-zsrtt42s.js";
114
- import"./index-dq93ar40.js";
114
+ import"./index-w9g58t3j.js";
115
115
  import"./index-3f7hqtgg.js";
116
116
  import"./index-awjx0wgk.js";
117
- import"./index-jszabr0r.js";
118
- import"./index-znf683sm.js";
117
+ import"./index-mj6ndvee.js";
118
+ import"./index-f5axf6vq.js";
119
119
  import"./index-rtry5xyf.js";
120
- import"./index-z0bxbb9g.js";
121
- import"./index-qc53dfzh.js";
122
- import"./index-61c3d769.js";
120
+ import"./index-t81fmfjj.js";
121
+ import"./index-xy0e0r5f.js";
122
+ import"./index-mbktm1ah.js";
123
123
  import"./index-ddszzne4.js";
124
- import"./index-drqvph47.js";
125
- import"./index-pqjcyj0p.js";
126
- import"./index-7h2armwf.js";
124
+ import"./index-ambz0ryy.js";
125
+ import"./index-y0ra2v4w.js";
126
+ import"./index-7619tk9a.js";
127
127
  import"./index-556ja8an.js";
128
128
  import"./index-4fwbbad3.js";
129
129
  import"./index-b43rt5ph.js";
130
130
  import"./index-q7sjgr1y.js";
131
- import"./index-nnzdayvk.js";
132
- import"./index-98jmggma.js";
133
- import"./index-pkz91fwm.js";
134
- import"./index-8c9qzpy7.js";
131
+ import"./index-d1h4sf8f.js";
132
+ import"./index-gkv7s4xy.js";
133
+ import"./index-trmqq4wm.js";
134
+ import"./index-q8hm27yj.js";
135
135
  import"./index-n832052r.js";
136
136
  import"./index-dtn0pne5.js";
137
137
  import"./index-z6xqpmqg.js";
138
138
  import"./index-r3mvsbtq.js";
139
- import"./index-bqxffayb.js";
139
+ import"./index-etdtfhhv.js";
140
140
  import {
141
141
  init_schema,
142
142
  stripKnownSwarmPrefix
143
- } from "./index-7npz9n4s.js";
143
+ } from "./index-zkgrayya.js";
144
144
  import"./index-9e6fdz2h.js";
145
145
  import"./index-4rhhvd1a.js";
146
- import"./index-mmr96pwr.js";
146
+ import"./index-k55td019.js";
147
147
  import {
148
148
  AGENT_TOOL_MAP,
149
149
  ORCHESTRATOR_NAME,
@@ -151,13 +151,13 @@ import {
151
151
  } from "./index-c9zp4xwc.js";
152
152
  import"./index-zjygnfay.js";
153
153
  import"./index-ae75rja9.js";
154
- import"./index-prv20xq6.js";
155
- import"./index-7ezv5j23.js";
154
+ import"./index-c6zyqgpq.js";
155
+ import"./index-d8st72j7.js";
156
156
  import"./index-bk5tah7q.js";
157
- import"./index-b5adxpy6.js";
157
+ import"./index-nqbqkx4c.js";
158
158
  import"./index-dh5q6z7y.js";
159
159
  import"./index-ed5ykebp.js";
160
- import"./index-dke4wzkn.js";
160
+ import"./index-fx3em0dr.js";
161
161
  import"./index-7g4c7s5r.js";
162
162
  import"./index-bpmtbmy9.js";
163
163
  import"./index-zgwm4ryv.js";
@@ -4,7 +4,7 @@ import {
4
4
  readShellAuditTail,
5
5
  redactPath,
6
6
  redactShellCommand
7
- } from "./index-m84z3aa8.js";
7
+ } from "./index-et1jpj6z.js";
8
8
 
9
9
  // src/services/guardrail-log-service.ts
10
10
  var BLOCK_TYPES = new Set([
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  observeStoreHealth
4
- } from "./index-mmr96pwr.js";
4
+ } from "./index-k55td019.js";
5
5
  import {
6
6
  telemetry
7
- } from "./index-dke4wzkn.js";
7
+ } from "./index-fx3em0dr.js";
8
8
  import {
9
9
  init_logger,
10
10
  warn
@@ -2,14 +2,14 @@
2
2
  import {
3
3
  readKnowledge,
4
4
  transactKnowledge
5
- } from "./index-nnzdayvk.js";
5
+ } from "./index-d1h4sf8f.js";
6
6
  import {
7
7
  init_git_executable,
8
8
  resolveGitExecutableAsync
9
9
  } from "./index-9e6fdz2h.js";
10
10
  import {
11
11
  resolveKnowledgeStoreDir
12
- } from "./index-prv20xq6.js";
12
+ } from "./index-c6zyqgpq.js";
13
13
  import {
14
14
  init_knowledge_types,
15
15
  isActiveStatus
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  ALLOWED_SKILL_PATH_PREFIXES,
4
4
  validateSkillPath
5
- } from "./index-jszabr0r.js";
5
+ } from "./index-mj6ndvee.js";
6
6
  import {
7
7
  withTimeoutSignal
8
8
  } from "./index-q7sjgr1y.js";
@@ -12,11 +12,11 @@ import {
12
12
  resolveHiveKnowledgePath,
13
13
  resolveSwarmKnowledgePath,
14
14
  transactKnowledge
15
- } from "./index-nnzdayvk.js";
15
+ } from "./index-d1h4sf8f.js";
16
16
  import {
17
17
  effectiveRetrievalOutcomes,
18
18
  readAuthoritativeKnowledgeCounterRollups
19
- } from "./index-98jmggma.js";
19
+ } from "./index-gkv7s4xy.js";
20
20
  import {
21
21
  advisoryWarn,
22
22
  init_warning_buffer
@@ -2,19 +2,19 @@
2
2
  import {
3
3
  computePlanStructureHash,
4
4
  derivePlanId
5
- } from "./index-pqjcyj0p.js";
5
+ } from "./index-y0ra2v4w.js";
6
6
  import {
7
7
  appendCoreEventSync
8
- } from "./index-7h2armwf.js";
8
+ } from "./index-7619tk9a.js";
9
9
  import {
10
10
  unsafePathTextReason
11
11
  } from "./index-556ja8an.js";
12
12
  import {
13
13
  PlanSchema
14
- } from "./index-bqxffayb.js";
14
+ } from "./index-etdtfhhv.js";
15
15
  import {
16
16
  assertProjectRoot
17
- } from "./index-b5adxpy6.js";
17
+ } from "./index-nqbqkx4c.js";
18
18
  import {
19
19
  atomicWriteSwarmFile,
20
20
  atomicWriteSwarmFileSync
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  atomicWriteFile
4
- } from "./index-7ezv5j23.js";
4
+ } from "./index-d8st72j7.js";
5
5
  import {
6
6
  init_logger,
7
7
  warn
@@ -6,10 +6,10 @@ import {
6
6
  } from "./index-ae75rja9.js";
7
7
  import {
8
8
  resolveKnowledgeStoreDir
9
- } from "./index-prv20xq6.js";
9
+ } from "./index-c6zyqgpq.js";
10
10
  import {
11
11
  atomicWriteFile
12
- } from "./index-7ezv5j23.js";
12
+ } from "./index-d8st72j7.js";
13
13
  import {
14
14
  init_knowledge_types,
15
15
  isActiveStatus
@@ -713,7 +713,7 @@ async function applyConfidenceFloorAction(directory, touched, options) {
713
713
  const {
714
714
  readAuthoritativeKnowledgeCounterRollups,
715
715
  effectiveRetrievalOutcomes
716
- } = await import("./knowledge-events-5y34w84b.js");
716
+ } = await import("./knowledge-events-a8r4ej12.js");
717
717
  const rollups = await readAuthoritativeKnowledgeCounterRollups(directory);
718
718
  const flagIds = new Set;
719
719
  for (const e of atFloor) {
@@ -780,11 +780,11 @@ async function applyConfidenceFloorAction(directory, touched, options) {
780
780
  });
781
781
  }
782
782
  if (action === "quarantine" && toQuarantine.length > 0) {
783
- const { quarantineEntry } = await import("./knowledge-validator-fsdx14tk.js");
784
- const { KnowledgeConfigSchema } = await import("./schema-98tdb9h0.js");
783
+ const { quarantineEntry } = await import("./knowledge-validator-mnv58he9.js");
784
+ const { KnowledgeConfigSchema } = await import("./schema-72vpr9xy.js");
785
785
  let config;
786
786
  try {
787
- const { loadPluginConfigWithMeta } = await import("./index-wccdm7jv.js");
787
+ const { loadPluginConfigWithMeta } = await import("./index-3cxfqdpv.js");
788
788
  const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
789
789
  config = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
790
790
  } catch {
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  withEvidenceLock
4
- } from "./index-b5adxpy6.js";
4
+ } from "./index-nqbqkx4c.js";
5
5
  import {
6
6
  atomicWriteFileAnyRoot
7
7
  } from "./index-dh5q6z7y.js";
@@ -9,11 +9,11 @@ import {
9
9
  } from "./index-txdagbh7.js";
10
10
  import {
11
11
  atomicWriteFile
12
- } from "./index-7ezv5j23.js";
12
+ } from "./index-d8st72j7.js";
13
13
  import {
14
14
  assertProjectRoot,
15
15
  withEvidenceLock
16
- } from "./index-b5adxpy6.js";
16
+ } from "./index-nqbqkx4c.js";
17
17
  import {
18
18
  exports_external,
19
19
  init_zod
@@ -11,16 +11,16 @@ import {
11
11
  import {
12
12
  init_schema,
13
13
  stripKnownSwarmPrefix
14
- } from "./index-7npz9n4s.js";
14
+ } from "./index-zkgrayya.js";
15
15
  import {
16
16
  observeStoreHealth
17
- } from "./index-mmr96pwr.js";
17
+ } from "./index-k55td019.js";
18
18
  import {
19
19
  init_constants
20
20
  } from "./index-c9zp4xwc.js";
21
21
  import {
22
22
  telemetry
23
- } from "./index-dke4wzkn.js";
23
+ } from "./index-fx3em0dr.js";
24
24
  import {
25
25
  init_logger,
26
26
  warn
@@ -6,7 +6,7 @@ import {
6
6
  PluginConfigSchema,
7
7
  init_schema,
8
8
  resolveExternalSkillsConfig
9
- } from "./index-7npz9n4s.js";
9
+ } from "./index-zkgrayya.js";
10
10
  import {
11
11
  GIT_BINARY_ENV_VAR,
12
12
  init_git_executable
@@ -3,7 +3,7 @@ import {
3
3
  EvaluationRunV1Schema,
4
4
  GateAuditResultV1Schema,
5
5
  getProtectedEvaluationRunIds
6
- } from "./index-nk498mx6.js";
6
+ } from "./index-dq41vsf9.js";
7
7
  import {
8
8
  loadDatabaseCtor
9
9
  } from "./index-134d35c1.js";
@@ -23,7 +23,7 @@ import {
23
23
  readTaskEvidence,
24
24
  readTaskEvidenceRaw,
25
25
  sanitizeTaskId
26
- } from "./index-z0bxbb9g.js";
26
+ } from "./index-t81fmfjj.js";
27
27
  import {
28
28
  LedgerStaleWriterError,
29
29
  appendLedgerEvent,
@@ -43,10 +43,10 @@ import {
43
43
  replayFromLedgerWithStatus,
44
44
  takeSnapshotEvent,
45
45
  takeSnapshotWithRetry
46
- } from "./index-pqjcyj0p.js";
46
+ } from "./index-y0ra2v4w.js";
47
47
  import {
48
48
  appendCoreEventSync
49
- } from "./index-7h2armwf.js";
49
+ } from "./index-7619tk9a.js";
50
50
  import {
51
51
  init_executor,
52
52
  isUntrustedEnvKey,
@@ -56,7 +56,7 @@ import {
56
56
  EVIDENCE_MAX_JSON_BYTES,
57
57
  EvidenceBundleSchema,
58
58
  EvidenceSchema
59
- } from "./index-8c9qzpy7.js";
59
+ } from "./index-q8hm27yj.js";
60
60
  import {
61
61
  estimateCharsForTokens,
62
62
  estimateTokens,
@@ -70,7 +70,7 @@ import {
70
70
  } from "./index-r3mvsbtq.js";
71
71
  import {
72
72
  PlanSchema
73
- } from "./index-bqxffayb.js";
73
+ } from "./index-etdtfhhv.js";
74
74
  import {
75
75
  GIT_BINARY_ENV_VAR,
76
76
  describeGitResolution,
@@ -81,14 +81,14 @@ import {
81
81
  assertProjectRoot,
82
82
  tryAcquireLock,
83
83
  withEvidenceLock
84
- } from "./index-b5adxpy6.js";
84
+ } from "./index-nqbqkx4c.js";
85
85
  import {
86
86
  invalidateCachedArtifact,
87
87
  readCachedParsedFile
88
88
  } from "./index-ed5ykebp.js";
89
89
  import {
90
90
  emit
91
- } from "./index-dke4wzkn.js";
91
+ } from "./index-fx3em0dr.js";
92
92
  import {
93
93
  ZodError,
94
94
  init_zod
@@ -7,7 +7,7 @@ import {
7
7
  readLinkPointer,
8
8
  resolveKnowledgeStoreDir,
9
9
  resolveLinkDir
10
- } from "./index-prv20xq6.js";
10
+ } from "./index-c6zyqgpq.js";
11
11
 
12
12
  // src/knowledge/curation-policy.ts
13
13
  import { appendFile, mkdir as mkdir2, readFile as readFile2 } from "fs/promises";
@@ -39,7 +39,7 @@ var CONSUMER_COST_JOIN = Object.freeze([
39
39
  "src/services/cost-accounting.ts:413"
40
40
  ]);
41
41
  var CONSUMER_GATE_STATS = Object.freeze(["src/evaluation/gate-stats.ts:99"]);
42
- var CONSUMER_HEARTBEAT_LISTENER = Object.freeze(["src/telemetry.ts:221"]);
42
+ var CONSUMER_HEARTBEAT_LISTENER = Object.freeze(["src/telemetry.ts:222"]);
43
43
  function defineEntry(kind, input) {
44
44
  const entry = {
45
45
  kind,
@@ -349,6 +349,19 @@ var CATALOG_SOURCE = [
349
349
  requiredWorkflowIds: REQUIRE_SESSION
350
350
  }
351
351
  ],
352
+ [
353
+ "retrieval_routed",
354
+ {
355
+ category: "guardrail",
356
+ severity: "info",
357
+ privacyClass: "pseudonymous",
358
+ producer: "src/telemetry.ts:1206",
359
+ consumers: NO_CONSUMERS,
360
+ futureOwnerIssue: ISSUE_SINK,
361
+ retentionOwnerIssue: ISSUE_SINK,
362
+ requiredWorkflowIds: REQUIRE_SESSION
363
+ }
364
+ ],
352
365
  [
353
366
  "hard_limit_hit",
354
367
  {
@@ -2145,6 +2158,9 @@ var telemetry = {
2145
2158
  level,
2146
2159
  occurrenceCount
2147
2160
  });
2161
+ },
2162
+ retrievalRouted(sessionId, data) {
2163
+ _internals.emit("retrieval_routed", { sessionId, ...data });
2148
2164
  }
2149
2165
  };
2150
2166
  var _internals = {
@@ -4,29 +4,29 @@ import {
4
4
  } from "./index-dtn0pne5.js";
5
5
  import {
6
6
  loadPluginConfigWithMeta
7
- } from "./index-bqxffayb.js";
7
+ } from "./index-etdtfhhv.js";
8
8
  import {
9
9
  KnowledgeConfigSchema,
10
10
  init_schema
11
- } from "./index-7npz9n4s.js";
11
+ } from "./index-zkgrayya.js";
12
12
  import {
13
13
  observeReceiptTransition
14
- } from "./index-mmr96pwr.js";
14
+ } from "./index-k55td019.js";
15
15
  import {
16
16
  resolveHiveEventsPath
17
17
  } from "./index-ae75rja9.js";
18
18
  import {
19
19
  resolveKnowledgeStoreDir
20
- } from "./index-prv20xq6.js";
20
+ } from "./index-c6zyqgpq.js";
21
21
  import {
22
22
  atomicWriteFile
23
- } from "./index-7ezv5j23.js";
23
+ } from "./index-d8st72j7.js";
24
24
  import {
25
25
  assertProjectRoot
26
- } from "./index-b5adxpy6.js";
26
+ } from "./index-nqbqkx4c.js";
27
27
  import {
28
28
  emit
29
- } from "./index-dke4wzkn.js";
29
+ } from "./index-fx3em0dr.js";
30
30
  import {
31
31
  require_proper_lockfile
32
32
  } from "./index-7g4c7s5r.js";
@@ -2810,7 +2810,7 @@ async function applyKnowledgeVerdictFeedback(directory, options) {
2810
2810
  }
2811
2811
  let bumps = 0;
2812
2812
  if (deltas.length > 0) {
2813
- const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-fqv89q5k.js");
2813
+ const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-ydzeppv7.js");
2814
2814
  bumps = await bumpKnowledgeConfidenceBatch(directory, deltas, options?.floorOptions);
2815
2815
  }
2816
2816
  return {
@@ -6,7 +6,7 @@ import {
6
6
  PluginConfigSchema,
7
7
  init_schema,
8
8
  stripKnownSwarmPrefix
9
- } from "./index-7npz9n4s.js";
9
+ } from "./index-zkgrayya.js";
10
10
  import {
11
11
  ALL_AGENT_NAMES,
12
12
  init_constants
@@ -6,7 +6,7 @@ import {
6
6
  pseudonymousRef,
7
7
  resolveLineageSalt,
8
8
  telemetry
9
- } from "./index-dke4wzkn.js";
9
+ } from "./index-fx3em0dr.js";
10
10
 
11
11
  // src/health/learning-health.ts
12
12
  import { promises as fs } from "fs";
@@ -10,11 +10,11 @@ import {
10
10
  } from "./index-r3mvsbtq.js";
11
11
  import {
12
12
  observeDelegationLedgerPressure
13
- } from "./index-mmr96pwr.js";
13
+ } from "./index-k55td019.js";
14
14
  import {
15
15
  EvidenceLockTimeoutError,
16
16
  withEvidenceLock
17
- } from "./index-b5adxpy6.js";
17
+ } from "./index-nqbqkx4c.js";
18
18
  import {
19
19
  exports_external,
20
20
  init_zod
@@ -3271,6 +3271,9 @@ function findOpenAsyncLaneBatches(directory) {
3271
3271
  function isTerminal(status) {
3272
3272
  return status === "completed" || status === "error" || status === "cancelled" || status === "stale" || status === "consumed";
3273
3273
  }
3274
+ function isTerminalDelegationStatus(status) {
3275
+ return isTerminal(status);
3276
+ }
3274
3277
  function sweepStaleLocked(directory, timeoutMs, now, statuses = DEFAULT_SWEEPABLE_DELEGATION_STATUSES, filters = {}, limits = {}) {
3275
3278
  let swept = 0;
3276
3279
  const { excludeCorrelationIds, includeCorrelationIds } = filters;
@@ -3934,7 +3937,7 @@ async function reconcileLegacyCoderSettlements(directory, maxRecords, onReconcil
3934
3937
  const candidates = readDelegations(directory).filter((record) => record.normalizedAgent === "coder" && Boolean(record.legacyCoderSettlementTransfer) && Boolean(record.terminalResult)).slice(0, maxRecords);
3935
3938
  if (candidates.length === 0)
3936
3939
  return 0;
3937
- const { transferCoderSettlementToBackground } = await import("./coder-settlement-678ccmnf.js");
3940
+ const { transferCoderSettlementToBackground } = await import("./coder-settlement-nayk1bbf.js");
3938
3941
  let transferred = 0;
3939
3942
  for (const record of candidates) {
3940
3943
  try {
@@ -4291,4 +4294,4 @@ async function maintainBackgroundDelegations(directory, options = {}) {
4291
4294
  return emitObservation("ok");
4292
4295
  }
4293
4296
 
4294
- export { PR_REVIEW_BASE_DIMENSION_IDS, PR_REVIEW_RISK_IMPACTS, PR_REVIEW_RISK_TAGS, prReviewLegacyTranscriptCompatibilityEnabled, PrReviewResultReceiptSchema, PR_REVIEW_FINDINGS_MAX_BYTES, PR_REVIEW_HANDOFF_MAX_BYTES, PR_REVIEW_DISCARDED_EXAMPLE_ITEM_ID, PrReviewRunIdSchema, prReviewFindingRequiresCritic, parsePrReviewRiskTagsField, PrReviewReviewerVerdictFieldsSchema, PrReviewCriticVerdictFieldsSchema, parsePrReviewVerdictRow, MAX_RECOVERY_LEDGER_BYTES, readDelegationHealthArtifact, collectDelegationLedgerHealth, MAX_PR_REVIEW_COLLECTION_RECEIPT_ITEM_IDS, BACKGROUND_DELEGATIONS_FILE, BACKGROUND_DELEGATION_FALLBACK_DIR, BACKGROUND_CODER_RESERVATIONS_FILE, BACKGROUND_DELEGATIONS_CHECKPOINT_FILE, BACKGROUND_DELEGATIONS_MANIFEST_FILE, MAX_LIVE_BACKGROUND_FALLBACKS, MAX_LIVE_BACKGROUND_CODER_RESERVATIONS, MAX_BACKGROUND_OBSERVED_FILES, MAX_BACKGROUND_ADVISORY_CHARS, LEGACY_CODER_SETTLEMENT_PENDING_ADVISORY_MARKER, DELEGATION_COMPACTION_LOW_WATER_BYTES, DELEGATION_COMPACTION_HIGH_WATER_BYTES, MAX_CHECKPOINT_BYTES, MAX_CHECKPOINT_RECORDS, TOMBSTONE_MIN_AGE_MS, BACKGROUND_INGESTION_LEASE_MS, BACKGROUND_CODER_RESERVATION_LEASE_MS, BACKGROUND_CODER_RESERVATION_LEASE_MAX_MS, BACKGROUND_CODER_RESERVATION_LEASE_MIN_MS, DEFAULT_STALE_DELEGATION_TIMEOUT_MS, DEFAULT_SWEEPABLE_DELEGATION_STATUSES, _checkpointInternals, isUnsettledWorktreeOwner, compactBackgroundDelegations, readDelegations, scanDelegationsForRecovery, findByCorrelationId, recordPendingDelegationDetailed, recordPendingDelegation, buildPromptSnapshot, appendDelegationTransition, publishPrReviewResultReceipt, buildBackgroundCompletionEventId, claimTerminalResult, claimCoderSettlement, normalizeBackgroundObservedFiles, updateCoderSettlement, registerLegacyCoderSettlementReconciler, _internals, markLegacyCoderSettlementTransferPending, clearLegacyCoderSettlementTransferPending, claimDelegationIngestion, recordDelegationIngestionResult, putPendingBackgroundAdvisory, replacePendingBackgroundAdvisory, preparePendingBackgroundAdvisories, acknowledgeObservedBackgroundAdvisories, releasePreparedBackgroundAdvisories, findByBatchId, findOpenAsyncLaneBatches, sweepStaleDelegations, readDelegationFallback, listDelegationFallbacks, scanDelegationFallbacksForRecovery, writeDelegationFallback, removeDelegationFallback, findDelegationForCompletion, promoteDelegationFallback, buildBackgroundCoderReservationId, scanBackgroundCoderReservationsForAdmission, reserveBackgroundCoderSlot, bindBackgroundCoderReservation, releaseBackgroundCoderReservation, maintainBackgroundDelegations };
4297
+ export { PR_REVIEW_BASE_DIMENSION_IDS, PR_REVIEW_RISK_IMPACTS, PR_REVIEW_RISK_TAGS, prReviewLegacyTranscriptCompatibilityEnabled, PrReviewResultReceiptSchema, PR_REVIEW_FINDINGS_MAX_BYTES, PR_REVIEW_HANDOFF_MAX_BYTES, PR_REVIEW_DISCARDED_EXAMPLE_ITEM_ID, PrReviewRunIdSchema, prReviewFindingRequiresCritic, parsePrReviewRiskTagsField, PrReviewReviewerVerdictFieldsSchema, PrReviewCriticVerdictFieldsSchema, parsePrReviewVerdictRow, MAX_RECOVERY_LEDGER_BYTES, readDelegationHealthArtifact, collectDelegationLedgerHealth, MAX_PR_REVIEW_COLLECTION_RECEIPT_ITEM_IDS, BACKGROUND_DELEGATIONS_FILE, BACKGROUND_DELEGATION_FALLBACK_DIR, BACKGROUND_CODER_RESERVATIONS_FILE, BACKGROUND_DELEGATIONS_CHECKPOINT_FILE, BACKGROUND_DELEGATIONS_MANIFEST_FILE, MAX_LIVE_BACKGROUND_FALLBACKS, MAX_LIVE_BACKGROUND_CODER_RESERVATIONS, MAX_BACKGROUND_OBSERVED_FILES, MAX_BACKGROUND_ADVISORY_CHARS, LEGACY_CODER_SETTLEMENT_PENDING_ADVISORY_MARKER, DELEGATION_COMPACTION_LOW_WATER_BYTES, DELEGATION_COMPACTION_HIGH_WATER_BYTES, MAX_CHECKPOINT_BYTES, MAX_CHECKPOINT_RECORDS, TOMBSTONE_MIN_AGE_MS, BACKGROUND_INGESTION_LEASE_MS, BACKGROUND_CODER_RESERVATION_LEASE_MS, BACKGROUND_CODER_RESERVATION_LEASE_MAX_MS, BACKGROUND_CODER_RESERVATION_LEASE_MIN_MS, DEFAULT_STALE_DELEGATION_TIMEOUT_MS, DEFAULT_SWEEPABLE_DELEGATION_STATUSES, _checkpointInternals, isUnsettledWorktreeOwner, compactBackgroundDelegations, readDelegations, scanDelegationsForRecovery, findByCorrelationId, recordPendingDelegationDetailed, recordPendingDelegation, buildPromptSnapshot, appendDelegationTransition, publishPrReviewResultReceipt, buildBackgroundCompletionEventId, claimTerminalResult, claimCoderSettlement, normalizeBackgroundObservedFiles, updateCoderSettlement, registerLegacyCoderSettlementReconciler, _internals, markLegacyCoderSettlementTransferPending, clearLegacyCoderSettlementTransferPending, claimDelegationIngestion, recordDelegationIngestionResult, putPendingBackgroundAdvisory, replacePendingBackgroundAdvisory, preparePendingBackgroundAdvisories, acknowledgeObservedBackgroundAdvisories, releasePreparedBackgroundAdvisories, findByBatchId, findOpenAsyncLaneBatches, isTerminalDelegationStatus, sweepStaleDelegations, readDelegationFallback, listDelegationFallbacks, scanDelegationFallbacksForRecovery, writeDelegationFallback, removeDelegationFallback, findDelegationForCompletion, promoteDelegationFallback, buildBackgroundCoderReservationId, scanBackgroundCoderReservationsForAdmission, reserveBackgroundCoderSlot, bindBackgroundCoderReservation, releaseBackgroundCoderReservation, maintainBackgroundDelegations };
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  authorizeCuration
4
- } from "./index-znf683sm.js";
4
+ } from "./index-f5axf6vq.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-nnzdayvk.js";
12
+ } from "./index-d1h4sf8f.js";
13
13
  import {
14
14
  resolveKnowledgeStoreDir
15
- } from "./index-prv20xq6.js";
15
+ } from "./index-c6zyqgpq.js";
16
16
  import {
17
17
  atomicWriteFile
18
- } from "./index-7ezv5j23.js";
18
+ } from "./index-d8st72j7.js";
19
19
  import {
20
20
  require_proper_lockfile
21
21
  } from "./index-7g4c7s5r.js";
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  emit
4
- } from "./index-dke4wzkn.js";
4
+ } from "./index-fx3em0dr.js";
5
5
  import {
6
6
  require_proper_lockfile
7
7
  } from "./index-7g4c7s5r.js";
@@ -209,7 +209,13 @@ var BuildEvidenceSchema = BaseEvidenceSchema.extend({
209
209
  files_scanned: exports_external.number().int(),
210
210
  runs_count: exports_external.number().int(),
211
211
  failed_count: exports_external.number().int(),
212
- skipped_reason: exports_external.string().optional()
212
+ skipped_reason: exports_external.string().optional(),
213
+ environment_unavailable: exports_external.array(exports_external.object({
214
+ ecosystem: exports_external.string(),
215
+ reason: exports_external.string(),
216
+ code: exports_external.literal("environment_unavailable"),
217
+ required_commands: exports_external.array(exports_external.string()).optional()
218
+ })).optional()
213
219
  });
214
220
  var QualityBudgetEvidenceSchema = BaseEvidenceSchema.extend({
215
221
  type: exports_external.literal("quality_budget"),