opencode-swarm 7.144.2 → 7.144.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/.opencode/skills/swarm-pr-review/references/lane-output-recoverability.md +96 -0
  2. package/dist/background/pending-delegations.d.ts +20 -0
  3. package/dist/cli/{config-doctor-7dfvxwjb.js → config-doctor-pkr9w2nv.js} +3 -3
  4. package/dist/cli/{core-dwmwdc4y.js → core-7pymdx0b.js} +2 -2
  5. package/dist/cli/{curation-policy-pkb2eeb1.js → curation-policy-y1pqpztb.js} +5 -5
  6. package/dist/cli/curator-drift-2jbjv03a.js +1 -1
  7. package/dist/cli/{curator-llm-factory-rrs1q4hg.js → curator-llm-factory-7are9wjh.js} +32 -32
  8. package/dist/cli/{curator-w213v33y.js → curator-wbzcjd0q.js} +32 -32
  9. package/dist/cli/{evidence-summary-service-t7n2h1he.js → evidence-summary-service-rcgrdm52.js} +13 -13
  10. package/dist/cli/{gate-evidence-xvxn603y.js → gate-evidence-jmzctnhg.js} +6 -6
  11. package/dist/cli/{guardrail-explain-v1mwsnkq.js → guardrail-explain-brgw4sve.js} +33 -33
  12. package/dist/cli/{guardrail-log-dn03dpz2.js → guardrail-log-k1s9xf3h.js} +4 -4
  13. package/dist/cli/{hive-promoter-asjtj7ga.js → hive-promoter-vcj5h0e3.js} +34 -34
  14. package/dist/cli/{index-jsfghpy2.js → index-06cn7haa.js} +2 -2
  15. package/dist/cli/{index-tq5s07ta.js → index-0fgwdtvp.js} +1 -1
  16. package/dist/cli/{index-h3z64mhz.js → index-1brb14xc.js} +1 -1
  17. package/dist/cli/{index-nretd4qn.js → index-247wf23m.js} +363 -182
  18. package/dist/cli/{index-jb4tchvy.js → index-2en8s72h.js} +1 -1
  19. package/dist/cli/{index-gdd4jt6b.js → index-584grrwn.js} +1 -1
  20. package/dist/cli/{index-dhh2j2nd.js → index-6s2q144w.js} +1 -1
  21. package/dist/cli/{index-g2ajae1z.js → index-7554tecy.js} +1 -1
  22. package/dist/cli/{index-k92cagmt.js → index-8214dd7j.js} +2 -2
  23. package/dist/cli/{index-y95nwsge.js → index-8hkjk37c.js} +1 -1
  24. package/dist/cli/{index-ne8cfgw5.js → index-b227mpnk.js} +4 -4
  25. package/dist/cli/{index-w7x7qxz2.js → index-dpfphnmy.js} +1 -1
  26. package/dist/cli/{index-333kvewd.js → index-ep14xc5z.js} +3 -3
  27. package/dist/cli/{index-av0f6mm0.js → index-eya357bk.js} +9 -9
  28. package/dist/cli/{index-tg9fn2dy.js → index-ghzvxj3g.js} +35 -35
  29. package/dist/cli/{index-g1c5fgaw.js → index-j6mfyy0a.js} +3 -3
  30. package/dist/cli/{index-4fda8kkw.js → index-krxcxkdq.js} +13 -3
  31. package/dist/cli/{index-zr370283.js → index-p7hbphaq.js} +3 -3
  32. package/dist/cli/{index-hqvt3mhk.js → index-p863y7xx.js} +1 -1
  33. package/dist/cli/{index-7ca3a6gj.js → index-pag8nsb1.js} +10 -10
  34. package/dist/cli/{index-p3tnmkvc.js → index-pr8vhj6j.js} +12 -12
  35. package/dist/cli/{index-dg2w0wr4.js → index-qj22wyw2.js} +2 -2
  36. package/dist/cli/{index-qpt8ahph.js → index-satc0vs6.js} +11 -11
  37. package/dist/cli/{index-m6wv2qdr.js → index-wck434f8.js} +2 -2
  38. package/dist/cli/{index-d55crzd4.js → index-x68tw7v3.js} +5 -5
  39. package/dist/cli/{index-ckrasab9.js → index-xwpmxpb7.js} +9 -9
  40. package/dist/cli/{index-erfnw81g.js → index-zswmbm15.js} +1 -1
  41. package/dist/cli/{index-4q9vfav6.js → index-zwrqe065.js} +1 -1
  42. package/dist/cli/index.js +33 -33
  43. package/dist/cli/{knowledge-escalator-cg19dhe5.js → knowledge-escalator-x6jrcrwj.js} +12 -12
  44. package/dist/cli/{knowledge-events-yzvysaqd.js → knowledge-events-aw22r72m.js} +10 -10
  45. package/dist/cli/{knowledge-link-fn5j3r4q.js → knowledge-link-bntppte4.js} +4 -4
  46. package/dist/cli/{knowledge-store-6f77xpmm.js → knowledge-store-19xg1rw1.js} +6 -6
  47. package/dist/cli/{knowledge-validator-4b28zdxa.js → knowledge-validator-8wh82z0a.js} +8 -8
  48. package/dist/cli/{pending-delegations-thy8g30k.js → pending-delegations-1y303j3k.js} +3 -3
  49. package/dist/cli/{pr-subscriptions-jyav582d.js → pr-subscriptions-wvd041rp.js} +3 -3
  50. package/dist/cli/{runner-pde6b5sx.js → runner-jn55k8xb.js} +5 -5
  51. package/dist/cli/{scan-cursor-nqbb1xt6.js → scan-cursor-429r5db9.js} +7 -7
  52. package/dist/cli/{schema-jj2pb6zp.js → schema-jdwjcby0.js} +1 -1
  53. package/dist/cli/{scope-persistence-63nasq0z.js → scope-persistence-s0s1bz15.js} +6 -6
  54. package/dist/cli/{skill-generator-nsymtdqm.js → skill-generator-ffbj0ye5.js} +15 -15
  55. package/dist/cli/{worktree-collision-ownership-j6d33p49.js → worktree-collision-ownership-z5ftwjz3.js} +6 -6
  56. package/dist/cli/{worktree-isolation-g54kxw6x.js → worktree-isolation-y2p93438.js} +32 -32
  57. package/dist/commands/registry.d.ts +1 -1
  58. package/dist/hooks/pr-workflow-gate.d.ts +132 -3
  59. package/dist/index.js +289 -289
  60. package/package.json +1 -1
  61. package/dist/cli/{index-k31en0ja.js → index-wd24zn2e.js} +3 -3
@@ -6,7 +6,7 @@ import {
6
6
  PluginConfigSchema,
7
7
  init_schema,
8
8
  stripKnownSwarmPrefix
9
- } from "./index-h3z64mhz.js";
9
+ } from "./index-1brb14xc.js";
10
10
  import {
11
11
  ALL_AGENT_NAMES,
12
12
  init_constants
@@ -4,7 +4,7 @@ import {
4
4
  } from "./index-rn0eq85g.js";
5
5
  import {
6
6
  withEvidenceLock
7
- } from "./index-k31en0ja.js";
7
+ } from "./index-wd24zn2e.js";
8
8
  import {
9
9
  exports_external,
10
10
  init_zod
@@ -86,7 +86,7 @@ var _internals = {
86
86
  symlinkSync: fs.symlinkSync
87
87
  },
88
88
  writeScopeToDisk: async (directory, taskId, files) => {
89
- const { writeScopeToDisk: realWrite } = await import("./scope-persistence-63nasq0z.js");
89
+ const { writeScopeToDisk: realWrite } = await import("./scope-persistence-s0s1bz15.js");
90
90
  return realWrite(directory, taskId, files);
91
91
  },
92
92
  writeLaneProfileToDisk: async (_worktreePath, _laneIndex, _envOverrides) => {
@@ -11,7 +11,7 @@ import {
11
11
  import {
12
12
  init_schema,
13
13
  stripKnownSwarmPrefix
14
- } from "./index-h3z64mhz.js";
14
+ } from "./index-1brb14xc.js";
15
15
  import {
16
16
  init_constants
17
17
  } from "./index-whezv7vc.js";
@@ -9,11 +9,11 @@ import {
9
9
  } from "./index-y8552snf.js";
10
10
  import {
11
11
  atomicWriteFile
12
- } from "./index-erfnw81g.js";
12
+ } from "./index-zswmbm15.js";
13
13
  import {
14
14
  assertProjectRoot,
15
15
  withEvidenceLock
16
- } from "./index-k31en0ja.js";
16
+ } from "./index-wd24zn2e.js";
17
17
  import {
18
18
  exports_external,
19
19
  init_zod
@@ -6,7 +6,7 @@ import {
6
6
  PluginConfigSchema,
7
7
  init_schema,
8
8
  resolveExternalSkillsConfig
9
- } from "./index-h3z64mhz.js";
9
+ } from "./index-1brb14xc.js";
10
10
  import {
11
11
  advisoryWarn,
12
12
  init_warning_buffer
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  authorizeCuration
4
- } from "./index-tq5s07ta.js";
4
+ } from "./index-0fgwdtvp.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-ckrasab9.js";
12
+ } from "./index-xwpmxpb7.js";
13
13
  import {
14
14
  resolveKnowledgeStoreDir
15
- } from "./index-w7x7qxz2.js";
15
+ } from "./index-dpfphnmy.js";
16
16
  import {
17
17
  atomicWriteFile
18
- } from "./index-erfnw81g.js";
18
+ } from "./index-zswmbm15.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
  atomicWriteFile
4
- } from "./index-erfnw81g.js";
4
+ } from "./index-zswmbm15.js";
5
5
  import {
6
6
  init_logger,
7
7
  warn
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  _internals,
4
4
  resolveWorktreeIsolationConfig
5
- } from "./index-dg2w0wr4.js";
5
+ } from "./index-qj22wyw2.js";
6
6
  import {
7
7
  ApprovalEvidenceSchema,
8
8
  BaseEvidenceSchema,
@@ -42,7 +42,7 @@ import {
42
42
  loadPluginConfig,
43
43
  loadPluginConfigWithMeta,
44
44
  loadPluginConfigWithMetaAsync
45
- } from "./index-y95nwsge.js";
45
+ } from "./index-8hkjk37c.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-h3z64mhz.js";
67
+ } from "./index-1brb14xc.js";
68
68
  import"./index-4rhhvd1a.js";
69
69
  import {
70
70
  ALL_AGENT_NAMES,
@@ -1,9 +1,4 @@
1
1
  // @bun
2
- import {
3
- queryHistoricalOutcomes,
4
- readKnowledgeEvents,
5
- recordKnowledgeEvent
6
- } from "./index-p3tnmkvc.js";
7
2
  import {
8
3
  jaccardBigram,
9
4
  readKnowledge,
@@ -11,7 +6,12 @@ import {
11
6
  resolveSwarmKnowledgePath,
12
7
  transactKnowledge,
13
8
  wordBigrams
14
- } from "./index-ckrasab9.js";
9
+ } from "./index-xwpmxpb7.js";
10
+ import {
11
+ queryHistoricalOutcomes,
12
+ readKnowledgeEvents,
13
+ recordKnowledgeEvent
14
+ } from "./index-pr8vhj6j.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-4b28zdxa.js");
227
+ const { quarantineEntry } = await import("./knowledge-validator-8wh82z0a.js");
228
228
  let policyConfig;
229
229
  try {
230
- const { KnowledgeConfigSchema } = await import("./schema-jj2pb6zp.js");
231
- const { loadPluginConfigWithMeta } = await import("./index-333kvewd.js");
230
+ const { KnowledgeConfigSchema } = await import("./schema-jdwjcby0.js");
231
+ const { loadPluginConfigWithMeta } = await import("./index-ep14xc5z.js");
232
232
  const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
233
233
  policyConfig = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
234
234
  } catch {
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailExplain
4
- } from "./index-jsfghpy2.js";
4
+ } from "./index-06cn7haa.js";
5
5
  import {
6
6
  handleGuardrailLog
7
- } from "./index-hqvt3mhk.js";
7
+ } from "./index-p863y7xx.js";
8
8
  import {
9
9
  COMMAND_REGISTRY,
10
10
  SWARM_COMMAND_TOOL_ALLOWLIST,
@@ -84,65 +84,65 @@ import {
84
84
  handleWriteRetroCommand,
85
85
  normalizeSwarmCommandInput,
86
86
  resolveCommand
87
- } from "./index-nretd4qn.js";
88
- import"./index-g2ajae1z.js";
89
- import"./index-jb4tchvy.js";
90
- import"./index-qpt8ahph.js";
87
+ } from "./index-247wf23m.js";
88
+ import"./index-7554tecy.js";
89
+ import"./index-2en8s72h.js";
90
+ import"./index-satc0vs6.js";
91
91
  import"./index-134d35c1.js";
92
92
  import"./index-b6e016tv.js";
93
- import"./index-4q9vfav6.js";
94
- import"./index-k92cagmt.js";
93
+ import"./index-zwrqe065.js";
94
+ import"./index-8214dd7j.js";
95
95
  import"./index-y8552snf.js";
96
- import"./index-m6wv2qdr.js";
96
+ import"./index-wck434f8.js";
97
97
  import"./index-70ha9e09.js";
98
98
  import"./index-c8s9a3zh.js";
99
99
  import"./index-9ss2m4rs.js";
100
- import"./index-d55crzd4.js";
101
100
  import"./index-74hpm6sh.js";
102
- import"./index-7ca3a6gj.js";
103
- import"./index-av0f6mm0.js";
104
- import"./index-zr370283.js";
105
- import"./index-g1c5fgaw.js";
106
- import"./index-556ja8an.js";
107
- import"./index-gdd4jt6b.js";
101
+ import"./index-584grrwn.js";
102
+ import"./index-pag8nsb1.js";
103
+ import"./index-eya357bk.js";
104
+ import"./index-b227mpnk.js";
105
+ import"./index-0fgwdtvp.js";
106
+ import"./index-rtry5xyf.js";
108
107
  import"./index-zsrtt42s.js";
108
+ import"./index-krxcxkdq.js";
109
109
  import"./index-k3cxyk66.js";
110
- import"./index-4fda8kkw.js";
111
- import"./index-dhh2j2nd.js";
112
- import"./index-8fwhhayc.js";
113
- import"./index-q1exe2b3.js";
110
+ import"./index-x68tw7v3.js";
111
+ import"./index-6s2q144w.js";
112
+ import"./index-p7hbphaq.js";
113
+ import"./index-j6mfyy0a.js";
114
+ import"./index-556ja8an.js";
114
115
  import"./index-7sy3aa9m.js";
115
116
  import"./index-wx8zdh4a.js";
116
- import"./index-p3tnmkvc.js";
117
- import"./index-dg2w0wr4.js";
117
+ import"./index-8fwhhayc.js";
118
+ import"./index-q1exe2b3.js";
119
+ import"./index-xwpmxpb7.js";
120
+ import"./index-pr8vhj6j.js";
121
+ import"./index-qj22wyw2.js";
118
122
  import"./index-gprxjmm7.js";
119
123
  import"./index-n832052r.js";
120
- import"./index-y95nwsge.js";
124
+ import"./index-rn0eq85g.js";
125
+ import"./index-z6xqpmqg.js";
126
+ import"./index-8hkjk37c.js";
121
127
  import {
122
128
  init_schema,
123
129
  stripKnownSwarmPrefix
124
- } from "./index-h3z64mhz.js";
125
- import"./index-rn0eq85g.js";
130
+ } from "./index-1brb14xc.js";
126
131
  import"./index-4rhhvd1a.js";
127
132
  import {
128
133
  AGENT_TOOL_MAP,
129
134
  ORCHESTRATOR_NAME,
130
135
  init_constants
131
136
  } from "./index-whezv7vc.js";
132
- import"./index-z6xqpmqg.js";
133
137
  import"./index-zjygnfay.js";
134
- import"./index-ne8cfgw5.js";
135
- import"./index-tq5s07ta.js";
136
- import"./index-rtry5xyf.js";
137
- import"./index-ckrasab9.js";
138
138
  import"./index-ae75rja9.js";
139
- import"./index-w7x7qxz2.js";
140
- import"./index-erfnw81g.js";
141
- import"./index-bk5tah7q.js";
139
+ import"./index-dpfphnmy.js";
140
+ import"./index-zswmbm15.js";
142
141
  import"./index-ed5ykebp.js";
143
- import"./index-k31en0ja.js";
144
- import"./index-7g4c7s5r.js";
142
+ import"./index-bk5tah7q.js";
143
+ import"./index-wd24zn2e.js";
145
144
  import"./index-s2rcz51a.js";
145
+ import"./index-7g4c7s5r.js";
146
146
  import"./index-bpmtbmy9.js";
147
147
  import"./index-4nt52yr9.js";
148
148
  import"./index-zgwm4ryv.js";
@@ -4,11 +4,11 @@ import {
4
4
  PlanSchema,
5
5
  TaskStatusSchema,
6
6
  init_loader
7
- } from "./index-y95nwsge.js";
7
+ } from "./index-8hkjk37c.js";
8
8
  import {
9
9
  assertProjectRoot,
10
10
  withEvidenceLock
11
- } from "./index-k31en0ja.js";
11
+ } from "./index-wd24zn2e.js";
12
12
  import {
13
13
  emit
14
14
  } from "./index-s2rcz51a.js";
@@ -962,4 +962,4 @@ var _internals = {
962
962
  randomUUID: () => crypto.randomUUID()
963
963
  };
964
964
 
965
- export { normalizeExecutionProfileForHash, derivePlanId, derivePlanIdentityHash, LedgerStaleWriterError, computePlanHash, computePlanStructureHash, computeCurrentPlanHash, ledgerExists, getLatestLedgerSeq, readLedgerEvents, initLedger, readPlanEpochIdentity, getOrAdoptPlanEpochUnderLock, appendLedgerEvent, takeSnapshotWithRetry, takeSnapshotEvent, replaceTruncatedLedgerWithRecoveryRoot, replayFromLedger, replayFromLedgerWithStatus, readLedgerEventsWithIntegrity, loadLastApprovedPlan };
965
+ export { derivePlanId, derivePlanIdentityHash, normalizeExecutionProfileForHash, LedgerStaleWriterError, computePlanHash, computePlanStructureHash, computeCurrentPlanHash, ledgerExists, getLatestLedgerSeq, readLedgerEvents, initLedger, readPlanEpochIdentity, getOrAdoptPlanEpochUnderLock, appendLedgerEvent, takeSnapshotWithRetry, takeSnapshotEvent, replaceTruncatedLedgerWithRecoveryRoot, replayFromLedger, replayFromLedgerWithStatus, readLedgerEventsWithIntegrity, loadLastApprovedPlan };
@@ -4,7 +4,7 @@ import {
4
4
  } from "./index-rn0eq85g.js";
5
5
  import {
6
6
  withEvidenceLock
7
- } from "./index-k31en0ja.js";
7
+ } from "./index-wd24zn2e.js";
8
8
  import {
9
9
  exports_external,
10
10
  init_zod
@@ -2020,12 +2020,18 @@ function findOpenAsyncLaneBatches(directory) {
2020
2020
  function isTerminal(status) {
2021
2021
  return status === "completed" || status === "error" || status === "cancelled" || status === "stale" || status === "consumed";
2022
2022
  }
2023
- function sweepStaleLocked(directory, timeoutMs, now, statuses = DEFAULT_SWEEPABLE_DELEGATION_STATUSES) {
2023
+ function sweepStaleLocked(directory, timeoutMs, now, statuses = DEFAULT_SWEEPABLE_DELEGATION_STATUSES, filters = {}) {
2024
2024
  let swept = 0;
2025
+ const { excludeCorrelationIds, includeCorrelationIds } = filters;
2025
2026
  const records = loadRecordsForWrite(directory);
2026
2027
  if (records === null)
2027
2028
  return 0;
2028
2029
  for (const record of records) {
2030
+ if (includeCorrelationIds !== undefined && !includeCorrelationIds.has(record.correlationId)) {
2031
+ continue;
2032
+ }
2033
+ if (excludeCorrelationIds?.has(record.correlationId))
2034
+ continue;
2029
2035
  if (!statuses.has(record.status))
2030
2036
  continue;
2031
2037
  if (now - record.updatedAt <= timeoutMs)
@@ -2045,8 +2051,12 @@ async function sweepStaleDelegations(directory, timeoutMs, options = {}) {
2045
2051
  if (!timeoutMs || timeoutMs <= 0)
2046
2052
  return 0;
2047
2053
  const statuses = options.statuses ?? DEFAULT_SWEEPABLE_DELEGATION_STATUSES;
2054
+ const filters = {
2055
+ excludeCorrelationIds: options.excludeCorrelationIds,
2056
+ includeCorrelationIds: options.includeCorrelationIds
2057
+ };
2048
2058
  try {
2049
- return await withEvidenceLock(directory, BACKGROUND_DELEGATIONS_FILE, STORE_LOCK_AGENT, STORE_LOCK_TASK, async () => sweepStaleLocked(directory, timeoutMs, Date.now(), statuses));
2059
+ return await withEvidenceLock(directory, BACKGROUND_DELEGATIONS_FILE, STORE_LOCK_AGENT, STORE_LOCK_TASK, async () => sweepStaleLocked(directory, timeoutMs, Date.now(), statuses, filters));
2050
2060
  } catch (err) {
2051
2061
  warn(`[background] sweepStaleDelegations failed: ${err instanceof Error ? err.message : String(err)}`);
2052
2062
  return 0;
@@ -2,16 +2,16 @@
2
2
  import {
3
3
  computePlanStructureHash,
4
4
  derivePlanId
5
- } from "./index-g1c5fgaw.js";
5
+ } from "./index-j6mfyy0a.js";
6
6
  import {
7
7
  unsafePathTextReason
8
8
  } from "./index-556ja8an.js";
9
9
  import {
10
10
  PlanSchema
11
- } from "./index-y95nwsge.js";
11
+ } from "./index-8hkjk37c.js";
12
12
  import {
13
13
  assertProjectRoot
14
- } from "./index-k31en0ja.js";
14
+ } from "./index-wd24zn2e.js";
15
15
  import {
16
16
  require_proper_lockfile
17
17
  } from "./index-7g4c7s5r.js";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  redactPath,
4
4
  redactShellCommand
5
- } from "./index-g2ajae1z.js";
5
+ } from "./index-7554tecy.js";
6
6
 
7
7
  // src/services/guardrail-log-service.ts
8
8
  import * as fs from "fs/promises";
@@ -1,23 +1,23 @@
1
1
  // @bun
2
- import {
3
- effectiveRetrievalOutcomes,
4
- readAuthoritativeKnowledgeCounterRollups
5
- } from "./index-p3tnmkvc.js";
6
- import {
7
- advisoryWarn,
8
- init_warning_buffer
9
- } from "./index-4rhhvd1a.js";
10
2
  import {
11
3
  ALLOWED_SKILL_PATH_PREFIXES,
12
4
  validateSkillPath
13
- } from "./index-ne8cfgw5.js";
5
+ } from "./index-b227mpnk.js";
14
6
  import {
15
7
  computeOutcomeSignal,
16
8
  readKnowledge,
17
9
  resolveHiveKnowledgePath,
18
10
  resolveSwarmKnowledgePath,
19
11
  transactKnowledge
20
- } from "./index-ckrasab9.js";
12
+ } from "./index-xwpmxpb7.js";
13
+ import {
14
+ effectiveRetrievalOutcomes,
15
+ readAuthoritativeKnowledgeCounterRollups
16
+ } from "./index-pr8vhj6j.js";
17
+ import {
18
+ advisoryWarn,
19
+ init_warning_buffer
20
+ } from "./index-4rhhvd1a.js";
21
21
  import {
22
22
  init_knowledge_types,
23
23
  isActiveStatus
@@ -1,32 +1,32 @@
1
1
  // @bun
2
+ import {
3
+ validateSwarmPath
4
+ } from "./index-rn0eq85g.js";
2
5
  import {
3
6
  loadPluginConfigWithMeta
4
- } from "./index-y95nwsge.js";
7
+ } from "./index-8hkjk37c.js";
5
8
  import {
6
9
  KnowledgeConfigSchema,
7
10
  init_schema
8
- } from "./index-h3z64mhz.js";
9
- import {
10
- validateSwarmPath
11
- } from "./index-rn0eq85g.js";
11
+ } from "./index-1brb14xc.js";
12
12
  import {
13
13
  resolveHiveEventsPath
14
14
  } from "./index-ae75rja9.js";
15
15
  import {
16
16
  resolveKnowledgeStoreDir
17
- } from "./index-w7x7qxz2.js";
17
+ } from "./index-dpfphnmy.js";
18
18
  import {
19
19
  atomicWriteFile
20
- } from "./index-erfnw81g.js";
20
+ } from "./index-zswmbm15.js";
21
21
  import {
22
22
  assertProjectRoot
23
- } from "./index-k31en0ja.js";
24
- import {
25
- require_proper_lockfile
26
- } from "./index-7g4c7s5r.js";
23
+ } from "./index-wd24zn2e.js";
27
24
  import {
28
25
  emit
29
26
  } from "./index-s2rcz51a.js";
27
+ import {
28
+ require_proper_lockfile
29
+ } from "./index-7g4c7s5r.js";
30
30
  import {
31
31
  init_logger,
32
32
  warn
@@ -2545,7 +2545,7 @@ async function applyKnowledgeVerdictFeedback(directory, options) {
2545
2545
  }
2546
2546
  let bumps = 0;
2547
2547
  if (deltas.length > 0) {
2548
- const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-6f77xpmm.js");
2548
+ const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-19xg1rw1.js");
2549
2549
  bumps = await bumpKnowledgeConfidenceBatch(directory, deltas, options?.floorOptions);
2550
2550
  }
2551
2551
  return {
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  init_loader,
4
4
  loadPluginConfigWithMeta
5
- } from "./index-y95nwsge.js";
5
+ } from "./index-8hkjk37c.js";
6
6
  import {
7
7
  init_schema
8
- } from "./index-h3z64mhz.js";
8
+ } from "./index-1brb14xc.js";
9
9
  import {
10
10
  DEFAULT_WORKTREE_ISOLATION_CONFIG,
11
11
  init_constants
@@ -6,16 +6,19 @@ import {
6
6
  EvaluationRunV1Schema,
7
7
  GateAuditResultV1Schema,
8
8
  getProtectedEvaluationRunIds
9
- } from "./index-k92cagmt.js";
9
+ } from "./index-8214dd7j.js";
10
10
  import {
11
11
  readEffectiveSpecSync
12
12
  } from "./index-9ss2m4rs.js";
13
+ import {
14
+ getWorktreeMergeFailure
15
+ } from "./index-zsrtt42s.js";
13
16
  import {
14
17
  isValidTaskId,
15
18
  readTaskEvidence,
16
19
  readTaskEvidenceRaw,
17
20
  sanitizeTaskId
18
- } from "./index-d55crzd4.js";
21
+ } from "./index-x68tw7v3.js";
19
22
  import {
20
23
  LedgerStaleWriterError,
21
24
  appendLedgerEvent,
@@ -35,10 +38,7 @@ import {
35
38
  replayFromLedgerWithStatus,
36
39
  takeSnapshotEvent,
37
40
  takeSnapshotWithRetry
38
- } from "./index-g1c5fgaw.js";
39
- import {
40
- getWorktreeMergeFailure
41
- } from "./index-zsrtt42s.js";
41
+ } from "./index-j6mfyy0a.js";
42
42
  import {
43
43
  _internals,
44
44
  buildDefaultPolicy,
@@ -51,13 +51,13 @@ import {
51
51
  EvidenceBundleSchema,
52
52
  EvidenceSchema
53
53
  } from "./index-gprxjmm7.js";
54
- import {
55
- PlanSchema
56
- } from "./index-y95nwsge.js";
57
54
  import {
58
55
  readSwarmFileAsync,
59
56
  validateSwarmPath
60
57
  } from "./index-rn0eq85g.js";
58
+ import {
59
+ PlanSchema
60
+ } from "./index-8hkjk37c.js";
61
61
  import {
62
62
  invalidateCachedArtifact,
63
63
  readCachedParsedFile
@@ -66,7 +66,7 @@ import {
66
66
  assertProjectRoot,
67
67
  tryAcquireLock,
68
68
  withEvidenceLock
69
- } from "./index-k31en0ja.js";
69
+ } from "./index-wd24zn2e.js";
70
70
  import {
71
71
  emit
72
72
  } from "./index-s2rcz51a.js";
@@ -5212,4 +5212,4 @@ function mergeDurableGateEntriesFromEvidence(taskId, entries, evidence) {
5212
5212
  return merged;
5213
5213
  }
5214
5214
 
5215
- export { projectDbExists, getProjectDb, closeProjectDb, buildTaskCompletionDescriptor, ensureTaskCheckpointReceipt, updateTaskCheckpointReceipt, isValidEnvKey, getExecutor, init_executor, MAX_TRANSIENT_RETRIES, isTransientSpawnError, transientBackoff, getGitRepositoryStatus, isGitRepo, getDefaultBaseBranch, detectDefaultRemoteBranch, resetToRemoteBranch, resetToMainAfterMerge, containsPathTraversal, containsControlChars, validateSymlinkBoundary, isStateUnreadable, loadEpicSessionState, isEpicModeActive, enableEpicMode, disableEpicMode, normalizePath, pathsConflict, isGlobalFile, isProtectedPath, readTaskScopes, loadPlanJsonOnly, loadPlan, savePlan, closePlanTerminalState, updateTaskStatus, derivePlanMarkdown, isValidEvidenceType, sanitizeTaskId2 as sanitizeTaskId, validateProjectRoot, saveEvidence, loadEvidence, listEvidenceTaskIds, checkRequirementCoverage, archiveEvidence, readDurableGateEvidence, getDurableGateEvidenceStatus, getDurableGateEvidenceStatusForTask, mergeDurableGateEntriesFromEvidence };
5215
+ export { projectDbExists, getProjectDb, closeProjectDb, normalizePath, buildTaskCompletionDescriptor, ensureTaskCheckpointReceipt, updateTaskCheckpointReceipt, isValidEnvKey, getExecutor, init_executor, MAX_TRANSIENT_RETRIES, isTransientSpawnError, transientBackoff, getGitRepositoryStatus, isGitRepo, getDefaultBaseBranch, detectDefaultRemoteBranch, resetToRemoteBranch, resetToMainAfterMerge, containsPathTraversal, containsControlChars, validateSymlinkBoundary, isStateUnreadable, loadEpicSessionState, isEpicModeActive, enableEpicMode, disableEpicMode, pathsConflict, isGlobalFile, isProtectedPath, readTaskScopes, loadPlanJsonOnly, loadPlan, savePlan, closePlanTerminalState, updateTaskStatus, derivePlanMarkdown, isValidEvidenceType, sanitizeTaskId2 as sanitizeTaskId, validateProjectRoot, saveEvidence, loadEvidence, listEvidenceTaskIds, checkRequirementCoverage, archiveEvidence, readDurableGateEvidence, getDurableGateEvidenceStatus, getDurableGateEvidenceStatusForTask, mergeDurableGateEntriesFromEvidence };
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  readKnowledge,
4
4
  transactKnowledge
5
- } from "./index-ckrasab9.js";
5
+ } from "./index-xwpmxpb7.js";
6
6
  import {
7
7
  resolveKnowledgeStoreDir
8
- } from "./index-w7x7qxz2.js";
8
+ } from "./index-dpfphnmy.js";
9
9
  import {
10
10
  init_knowledge_types,
11
11
  isActiveStatus
@@ -1,12 +1,12 @@
1
1
  // @bun
2
+ import {
3
+ autoCommitDirty,
4
+ cleanUntrackedFiles
5
+ } from "./index-6s2q144w.js";
2
6
  import {
3
7
  isPathWithinDeclaredScope,
4
8
  unsafePathTextReason
5
9
  } from "./index-556ja8an.js";
6
- import {
7
- autoCommitDirty,
8
- cleanUntrackedFiles
9
- } from "./index-dhh2j2nd.js";
10
10
  import {
11
11
  validateSwarmPath
12
12
  } from "./index-rn0eq85g.js";
@@ -18,7 +18,7 @@ import {
18
18
  atomicWriteFile,
19
19
  taskEvidencePath,
20
20
  withTaskEvidenceLock
21
- } from "./index-erfnw81g.js";
21
+ } from "./index-zswmbm15.js";
22
22
  import {
23
23
  telemetry
24
24
  } from "./index-s2rcz51a.js";
@@ -6,17 +6,17 @@ import {
6
6
  } from "./index-ae75rja9.js";
7
7
  import {
8
8
  resolveKnowledgeStoreDir
9
- } from "./index-w7x7qxz2.js";
9
+ } from "./index-dpfphnmy.js";
10
10
  import {
11
11
  atomicWriteFile
12
- } from "./index-erfnw81g.js";
12
+ } from "./index-zswmbm15.js";
13
+ import {
14
+ readCachedParsedFile
15
+ } from "./index-ed5ykebp.js";
13
16
  import {
14
17
  init_knowledge_types,
15
18
  isActiveStatus
16
19
  } from "./index-bk5tah7q.js";
17
- import {
18
- readCachedParsedFile
19
- } from "./index-ed5ykebp.js";
20
20
  import {
21
21
  require_proper_lockfile
22
22
  } from "./index-7g4c7s5r.js";
@@ -709,7 +709,7 @@ async function applyConfidenceFloorAction(directory, touched, options) {
709
709
  const {
710
710
  readAuthoritativeKnowledgeCounterRollups,
711
711
  effectiveRetrievalOutcomes
712
- } = await import("./knowledge-events-yzvysaqd.js");
712
+ } = await import("./knowledge-events-aw22r72m.js");
713
713
  const rollups = await readAuthoritativeKnowledgeCounterRollups(directory);
714
714
  const flagIds = new Set;
715
715
  for (const e of atFloor) {
@@ -776,11 +776,11 @@ async function applyConfidenceFloorAction(directory, touched, options) {
776
776
  });
777
777
  }
778
778
  if (action === "quarantine" && toQuarantine.length > 0) {
779
- const { quarantineEntry } = await import("./knowledge-validator-4b28zdxa.js");
780
- const { KnowledgeConfigSchema } = await import("./schema-jj2pb6zp.js");
779
+ const { quarantineEntry } = await import("./knowledge-validator-8wh82z0a.js");
780
+ const { KnowledgeConfigSchema } = await import("./schema-jdwjcby0.js");
781
781
  let config;
782
782
  try {
783
- const { loadPluginConfigWithMeta } = await import("./index-333kvewd.js");
783
+ const { loadPluginConfigWithMeta } = await import("./index-ep14xc5z.js");
784
784
  const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
785
785
  config = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
786
786
  } catch {
@@ -4,7 +4,7 @@ import {
4
4
  } from "./index-ed5ykebp.js";
5
5
  import {
6
6
  withEvidenceLock
7
- } from "./index-k31en0ja.js";
7
+ } from "./index-wd24zn2e.js";
8
8
  import {
9
9
  bunWrite
10
10
  } from "./index-4nt52yr9.js";
@@ -9,7 +9,7 @@ import {
9
9
  readEvaluationRun,
10
10
  saveEvaluationRun,
11
11
  saveTaskSetSnapshot
12
- } from "./index-k92cagmt.js";
12
+ } from "./index-8214dd7j.js";
13
13
  import {
14
14
  canonicalHash,
15
15
  computeCandidateInputContentHash,