opencode-swarm 7.184.0 → 7.184.2

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 (112) 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/background/delegation-health.d.ts +1 -1
  4. package/dist/background/index.d.ts +1 -0
  5. package/dist/background/pr-event-delivery.d.ts +29 -14
  6. package/dist/background/pr-event-subscribers.d.ts +6 -5
  7. package/dist/background/pr-feedback-event-queue.d.ts +19 -2
  8. package/dist/background/pr-feedback-loop-runtime.d.ts +75 -0
  9. package/dist/background/pr-feedback-loop.d.ts +47 -12
  10. package/dist/cli/{coder-settlement-vrc5zxvv.js → coder-settlement-vqh4b7fb.js} +15 -12
  11. package/dist/cli/{config-doctor-y0bpap07.js → config-doctor-8fp6s15v.js} +2 -2
  12. package/dist/cli/{core-7f955h2f.js → core-75bsfgse.js} +4 -4
  13. package/dist/cli/{curation-policy-fa2h82c4.js → curation-policy-49f8jx48.js} +7 -6
  14. package/dist/cli/{curator-drift-48x02n2m.js → curator-drift-pmcpywr0.js} +9 -9
  15. package/dist/cli/{curator-m7enwwz2.js → curator-gwqs85sp.js} +40 -39
  16. package/dist/cli/curator-llm-factory-g6hb1vvw.js +75 -0
  17. package/dist/cli/{dispatch-p5zjg5e6.js → dispatch-cv89p2y1.js} +1 -1
  18. package/dist/cli/{evidence-summary-service-k8a5vkfk.js → evidence-summary-service-rm0tp8d1.js} +21 -20
  19. package/dist/cli/{gate-evidence-nktrs0w2.js → gate-evidence-ra0trg97.js} +14 -7
  20. package/dist/cli/guardrail-explain-kghhhjky.js +76 -0
  21. package/dist/cli/{guardrail-log-dppv6tgn.js → guardrail-log-r72971jr.js} +8 -8
  22. package/dist/cli/{guardrail-reset-btzq4ses.js → guardrail-reset-1kq1m70y.js} +40 -39
  23. package/dist/cli/{hive-promoter-yp1baj9z.js → hive-promoter-82ygdw79.js} +40 -39
  24. package/dist/cli/{index-6h81yvyc.js → index-131ay7x1.js} +3 -3
  25. package/dist/cli/{index-rwfmx7vn.js → index-1v13c6r0.js} +2 -2
  26. package/dist/cli/{index-ad3yskxy.js → index-279xp2be.js} +158 -27
  27. package/dist/cli/{index-9yvjwfay.js → index-2wn8ww1e.js} +3156 -1887
  28. package/dist/cli/{index-0bpr8vag.js → index-3n5zsp31.js} +2 -2
  29. package/dist/cli/{index-w81jmdkt.js → index-456awy1p.js} +2 -2
  30. package/dist/cli/{index-74x26wyj.js → index-475bkab8.js} +2 -2
  31. package/dist/cli/{index-nvm6mxep.js → index-5r5s0dbb.js} +271 -80
  32. package/dist/cli/{index-r30xs0wp.js → index-6ayk7a3q.js} +1 -1
  33. package/dist/cli/{index-4t0wd9sv.js → index-6g664sy8.js} +1 -1
  34. package/dist/cli/{index-me39468k.js → index-8chh1c96.js} +38 -18
  35. package/dist/cli/{index-079xzcxb.js → index-ahe4mn8t.js} +40 -39
  36. package/dist/cli/{index-3fhg7pqf.js → index-amhr3swp.js} +2 -2
  37. package/dist/cli/{index-e90m050y.js → index-ar2gsn6b.js} +8 -8
  38. package/dist/cli/{index-51xtrf7g.js → index-b0qyb790.js} +39 -15
  39. package/dist/cli/{index-edrgc139.js → index-bga7w4rt.js} +2 -2
  40. package/dist/cli/{index-t1swv35d.js → index-dm2ydm2b.js} +1 -1
  41. package/dist/cli/{index-v3hpsxvd.js → index-earq3mda.js} +1 -1
  42. package/dist/cli/{index-3rb5gs4w.js → index-f0nj3d8z.js} +1 -1
  43. package/dist/cli/{index-152b9c6m.js → index-hkqd9jz6.js} +5 -5
  44. package/dist/cli/{index-ysr6n4ca.js → index-j2xcdbfd.js} +1 -1
  45. package/dist/cli/{index-t26gj2fh.js → index-jct9kb50.js} +2 -2
  46. package/dist/cli/{index-mn5zzmqx.js → index-jvk95e6y.js} +2 -2
  47. package/dist/cli/{index-b5mkznms.js → index-k1cxfede.js} +1 -1
  48. package/dist/cli/{index-5cve9g2b.js → index-k53a69vb.js} +6 -6
  49. package/dist/cli/{index-1xnse449.js → index-mc72pk74.js} +1 -1
  50. package/dist/cli/{index-nm8ma9xb.js → index-peg6sftq.js} +8 -8
  51. package/dist/cli/{index-fs9y88h1.js → index-q5115jpe.js} +3 -3
  52. package/dist/cli/{index-4gr9pj67.js → index-rp6sfpwp.js} +4 -4
  53. package/dist/cli/{index-pq6vr26z.js → index-rpsmx4ke.js} +3 -3
  54. package/dist/cli/{index-z3b157ew.js → index-rr1m7cc6.js} +12 -10
  55. package/dist/cli/{index-bf1726rj.js → index-stcacf0k.js} +42 -41
  56. package/dist/cli/{index-01wt209s.js → index-t7hmqgjy.js} +90 -141
  57. package/dist/cli/{index-5wk0etp8.js → index-w6agyrzs.js} +4 -4
  58. package/dist/cli/{index-08x7gsnf.js → index-w9hxzcz4.js} +2 -2
  59. package/dist/cli/{index-nmh0s6dg.js → index-wy3zpwjy.js} +1 -1
  60. package/dist/cli/{index-fbhtb6f5.js → index-x1gyqgze.js} +7 -7
  61. package/dist/cli/{index-6b4vkz6q.js → index-x9wpvhpk.js} +1 -1
  62. package/dist/cli/index-xf69xty9.js +105 -0
  63. package/dist/cli/{index-46z4c89b.js → index-xka1cq9k.js} +4 -4
  64. package/dist/cli/{index-z8smhv7k.js → index-ya32wfkp.js} +4 -2
  65. package/dist/cli/{index-njf5pbkm.js → index-zmgs43tw.js} +6 -6
  66. package/dist/cli/{index-qyx53xrz.js → index-zq40mkha.js} +7 -7
  67. package/dist/cli/{index-j40czc9v.js → index-zvbn85q0.js} +5 -5
  68. package/dist/cli/{index-1d6ssjcj.js → index-zzvxj02e.js} +3 -3
  69. package/dist/cli/index.js +41 -40
  70. package/dist/cli/{knowledge-escalator-4296y1h2.js → knowledge-escalator-x0159cv7.js} +14 -13
  71. package/dist/cli/{knowledge-events-31nga9yt.js → knowledge-events-4879bjbz.js} +12 -11
  72. package/dist/cli/{knowledge-link-ydpvzam8.js → knowledge-link-ap2274vm.js} +6 -5
  73. package/dist/cli/{knowledge-store-0qz3zmq3.js → knowledge-store-zvstn7dy.js} +7 -6
  74. package/dist/cli/{knowledge-validator-vndnwdj6.js → knowledge-validator-k0q00zsj.js} +9 -8
  75. package/dist/cli/{mcp-taace90a.js → mcp-tmr9kgrr.js} +15 -1
  76. package/dist/cli/mcp.d.ts +1 -0
  77. package/dist/cli/{model-preflight-bv8nvjjx.js → model-preflight-17y17gys.js} +40 -39
  78. package/dist/cli/{pending-delegations-kwdk8j9d.js → pending-delegations-jzr2w62w.js} +13 -12
  79. package/dist/cli/{pr-subscriptions-w2fwdpkk.js → pr-subscriptions-t867sq1q.js} +13 -12
  80. package/dist/cli/{pr-workflow-gate-sqjc6jmd.js → pr-workflow-gate-npgdhk7j.js} +40 -39
  81. package/dist/cli/{runner-r6gxq7m1.js → runner-yz3ysehf.js} +7 -6
  82. package/dist/cli/{scan-cursor-f74b9b4k.js → scan-cursor-5zy5h556.js} +8 -7
  83. package/dist/cli/{schema-cyet68tw.js → schema-80nb4z6k.js} +1 -1
  84. package/dist/cli/{scope-persistence-rg8v0r8q.js → scope-persistence-t2888gjf.js} +16 -15
  85. package/dist/cli/{server-765s4stz.js → server-41f41q15.js} +40 -39
  86. package/dist/cli/{skill-generator-qg5m18k7.js → skill-generator-6kj1xzk8.js} +16 -15
  87. package/dist/cli/{snapshot-coordination-init-zzs4bkmj.js → snapshot-coordination-init-pbdzjv20.js} +40 -39
  88. package/dist/cli/{speckit-checkoff-2bsm6p0c.js → speckit-checkoff-4ppx68ks.js} +4 -4
  89. package/dist/cli/{telemetry-rzvcp2n9.js → telemetry-39zmx4fp.js} +2 -2
  90. package/dist/cli/{workspace-snapshot-t22m6gbd.js → workspace-snapshot-0q1n1xq5.js} +4 -4
  91. package/dist/cli/{worktree-collision-ownership-qf2shp2n.js → worktree-collision-ownership-hn1mgtta.js} +14 -13
  92. package/dist/cli/{worktree-isolation-0b0jy6dt.js → worktree-isolation-w4nq6yzp.js} +40 -39
  93. package/dist/db/qa-gate-session-override.d.ts +12 -12
  94. package/dist/gate-evidence.d.ts +43 -1
  95. package/dist/hooks/guardrails/index.d.ts +13 -7
  96. package/dist/index.js +507 -503
  97. package/dist/plan/ledger.d.ts +20 -4
  98. package/dist/plan/manager.d.ts +20 -2
  99. package/dist/session/hydration-ownership.d.ts +39 -12
  100. package/dist/session/snapshot-coordination-init.d.ts +11 -4
  101. package/dist/session/snapshot-reader.d.ts +9 -4
  102. package/dist/session/snapshot-writer.d.ts +2 -3
  103. package/dist/state.d.ts +35 -5
  104. package/dist/tools/phase-complete.d.ts +1 -0
  105. package/dist/tools/update-task-status.d.ts +1 -1
  106. package/dist/utils/project-boundary.d.ts +32 -1
  107. package/dist/workflow/coder-settlement.d.ts +8 -0
  108. package/dist/workflow/task-terminal.d.ts +2 -1
  109. package/dist/workflow/workflow-wal-schema.d.ts +2 -0
  110. package/package.json +1 -1
  111. package/dist/cli/curator-llm-factory-g6at4hn6.js +0 -74
  112. package/dist/cli/guardrail-explain-1ccchxdr.js +0 -75
@@ -8,10 +8,10 @@ import {
8
8
  import {
9
9
  canonicalRootKeyFresh,
10
10
  lexicalRootAliasKey
11
- } from "./index-1xnse449.js";
11
+ } from "./index-mc72pk74.js";
12
12
  import {
13
13
  atomicWriteSwarmFileSync
14
- } from "./index-5cve9g2b.js";
14
+ } from "./index-k53a69vb.js";
15
15
 
16
16
  // src/db/project-db.ts
17
17
  import { existsSync, mkdirSync, unlinkSync } from "fs";
@@ -10,7 +10,7 @@ import {
10
10
  readCachedTextFile,
11
11
  wasObservedToExist,
12
12
  wasRecentlyWrittenByThisProcess
13
- } from "./index-5cve9g2b.js";
13
+ } from "./index-k53a69vb.js";
14
14
  import {
15
15
  warn
16
16
  } from "./index-zgwm4ryv.js";
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  sameProjectRoot
4
- } from "./index-1xnse449.js";
4
+ } from "./index-mc72pk74.js";
5
5
  import {
6
6
  exports_external,
7
7
  init_zod
@@ -236,7 +236,7 @@ var CATALOG_SOURCE = [
236
236
  category: "delegation",
237
237
  severity: "info",
238
238
  privacyClass: "pseudonymous",
239
- producer: "src/index.ts:935",
239
+ producer: "src/index.ts:940",
240
240
  consumers: CONSUMER_COST_CORRECTION,
241
241
  retentionOwnerIssue: ISSUE_COST_RETENTION,
242
242
  requiredWorkflowIds: REQUIRE_SESSION_AND_TASK,
@@ -249,7 +249,7 @@ var CATALOG_SOURCE = [
249
249
  category: "delegation",
250
250
  severity: "info",
251
251
  privacyClass: "pseudonymous",
252
- producer: "src/index.ts:1973",
252
+ producer: "src/index.ts:2060",
253
253
  consumers: NO_CONSUMERS,
254
254
  futureOwnerIssue: ISSUE_SINK,
255
255
  retentionOwnerIssue: ISSUE_COST_RETENTION,
@@ -263,7 +263,7 @@ var CATALOG_SOURCE = [
263
263
  category: "delegation",
264
264
  severity: "notice",
265
265
  privacyClass: "pseudonymous",
266
- producer: "src/index.ts:1993",
266
+ producer: "src/index.ts:2080",
267
267
  consumers: CONSUMER_COST_JOIN,
268
268
  retentionOwnerIssue: ISSUE_COST_RETENTION,
269
269
  requiredWorkflowIds: REQUIRE_SESSION,
@@ -735,7 +735,7 @@ var CATALOG_SOURCE = [
735
735
  category: "plan",
736
736
  severity: "notice",
737
737
  privacyClass: "operational",
738
- producer: "src/plan/manager.ts:359",
738
+ producer: "src/plan/manager.ts:376",
739
739
  consumers: NO_CONSUMERS,
740
740
  futureOwnerIssue: ISSUE_SINK,
741
741
  retentionOwnerIssue: ISSUE_PLAN_EVIDENCE_RETENTION,
@@ -748,7 +748,7 @@ var CATALOG_SOURCE = [
748
748
  category: "plan",
749
749
  severity: "warning",
750
750
  privacyClass: "sensitive",
751
- producer: "src/plan/manager.ts:2065",
751
+ producer: "src/plan/manager.ts:2195",
752
752
  consumers: NO_CONSUMERS,
753
753
  futureOwnerIssue: ISSUE_SINK,
754
754
  retentionOwnerIssue: ISSUE_PLAN_EVIDENCE_RETENTION,
@@ -761,7 +761,7 @@ var CATALOG_SOURCE = [
761
761
  category: "plan",
762
762
  severity: "error",
763
763
  privacyClass: "sensitive",
764
- producer: "src/plan/ledger.ts:1609",
764
+ producer: "src/plan/ledger.ts:1620",
765
765
  consumers: NO_CONSUMERS,
766
766
  futureOwnerIssue: ISSUE_SINK,
767
767
  retentionOwnerIssue: ISSUE_PLAN_EVIDENCE_RETENTION,
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  writeSpeckitCheckoffLedger
4
- } from "./index-t26gj2fh.js";
4
+ } from "./index-jct9kb50.js";
5
5
  import {
6
6
  validateSpecContent
7
7
  } from "./index-0725jpp7.js";
@@ -0,0 +1,105 @@
1
+ // @bun
2
+ import {
3
+ assertProjectRoot
4
+ } from "./index-t7hmqgjy.js";
5
+ import {
6
+ emit
7
+ } from "./index-x1gyqgze.js";
8
+ import {
9
+ tryAcquireLock
10
+ } from "./index-ejhxgyvm.js";
11
+ import {
12
+ atomicWriteFileAnyRoot
13
+ } from "./index-k53a69vb.js";
14
+
15
+ // src/evidence/lock.ts
16
+ class EvidenceLockTimeoutError extends Error {
17
+ directory;
18
+ evidencePath;
19
+ agent;
20
+ taskId;
21
+ constructor(directory, evidencePath, agent, taskId, timeoutMs) {
22
+ super(`Evidence lock timeout after ${timeoutMs}ms for ${evidencePath} (agent=${agent}, task=${taskId})`);
23
+ this.name = "EvidenceLockTimeoutError";
24
+ this.directory = directory;
25
+ this.evidencePath = evidencePath;
26
+ this.agent = agent;
27
+ this.taskId = taskId;
28
+ }
29
+ }
30
+ var BACKOFF_START_MS = 50;
31
+ var BACKOFF_MAX_MS = 2000;
32
+ var BACKOFF_JITTER_RATIO = 0.25;
33
+ function backoffMs(attempt) {
34
+ const base = Math.min(BACKOFF_START_MS * 2 ** attempt, BACKOFF_MAX_MS);
35
+ const jitter = base * BACKOFF_JITTER_RATIO * (Math.random() * 2 - 1);
36
+ return Math.max(1, Math.round(base + jitter));
37
+ }
38
+ async function withEvidenceLock(directory, evidencePath, agent, taskId, fn, timeoutMs = 60000) {
39
+ assertProjectRoot(directory);
40
+ const deadline = Date.now() + timeoutMs;
41
+ let attempt = 0;
42
+ while (true) {
43
+ const result = await tryAcquireLock(directory, evidencePath, agent, taskId);
44
+ if (result.acquired) {
45
+ const lock = result.lock;
46
+ if (attempt > 0) {
47
+ emit("evidence_lock_stale_recovered", {
48
+ directory,
49
+ evidencePath,
50
+ agent,
51
+ taskId,
52
+ attempt
53
+ });
54
+ }
55
+ emit("evidence_lock_acquired", {
56
+ directory,
57
+ evidencePath,
58
+ agent,
59
+ taskId,
60
+ attempt
61
+ });
62
+ try {
63
+ return await fn();
64
+ } finally {
65
+ if (lock._release) {
66
+ try {
67
+ await lock._release();
68
+ } catch {}
69
+ }
70
+ }
71
+ }
72
+ if (Date.now() >= deadline) {
73
+ throw new EvidenceLockTimeoutError(directory, evidencePath, agent, taskId, timeoutMs);
74
+ }
75
+ emit("evidence_lock_contended", {
76
+ directory,
77
+ evidencePath,
78
+ agent,
79
+ taskId,
80
+ attempt
81
+ });
82
+ const delay = Math.min(backoffMs(attempt), deadline - Date.now());
83
+ if (delay > 0) {
84
+ await new Promise((resolve) => setTimeout(resolve, delay));
85
+ }
86
+ attempt++;
87
+ }
88
+ }
89
+
90
+ // src/evidence/task-file.ts
91
+ import * as path from "path";
92
+ function taskEvidenceRelPath(taskId) {
93
+ return path.join("evidence", `${taskId}.json`);
94
+ }
95
+ function taskEvidencePath(directory, taskId) {
96
+ return path.join(directory, ".swarm", taskEvidenceRelPath(taskId));
97
+ }
98
+ async function atomicWriteFile(targetPath, content) {
99
+ await atomicWriteFileAnyRoot(targetPath, content);
100
+ }
101
+ function withTaskEvidenceLock(directory, taskId, agent, fn) {
102
+ return withEvidenceLock(directory, taskEvidenceRelPath(taskId), agent, taskId, fn);
103
+ }
104
+
105
+ export { EvidenceLockTimeoutError, withEvidenceLock, taskEvidencePath, atomicWriteFile, withTaskEvidenceLock };
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  readEffectiveSpecSync
4
- } from "./index-6b4vkz6q.js";
4
+ } from "./index-x9wpvhpk.js";
5
5
  import {
6
6
  readSwarmFileAsync
7
- } from "./index-nmh0s6dg.js";
7
+ } from "./index-wy3zpwjy.js";
8
8
  import {
9
9
  DURABILITY_CLASSES,
10
10
  DbWriteError,
@@ -13,11 +13,11 @@ import {
13
13
  classifyDbWriteError,
14
14
  getProjectDb,
15
15
  projectDbExists
16
- } from "./index-08x7gsnf.js";
16
+ } from "./index-w9hxzcz4.js";
17
17
  import {
18
18
  _internals,
19
19
  canonicalRootKeyFresh
20
- } from "./index-1xnse449.js";
20
+ } from "./index-mc72pk74.js";
21
21
  import {
22
22
  init_logger,
23
23
  log,
@@ -8,10 +8,12 @@ import {
8
8
  resolveContainedExistingPath
9
9
  } from "./index-txdagbh7.js";
10
10
  import {
11
- assertProjectRoot,
12
11
  atomicWriteFile,
13
12
  withEvidenceLock
14
- } from "./index-01wt209s.js";
13
+ } from "./index-xf69xty9.js";
14
+ import {
15
+ assertProjectRoot
16
+ } from "./index-t7hmqgjy.js";
15
17
  import {
16
18
  exports_external,
17
19
  init_zod
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  computePlanStructureHash
4
- } from "./index-51xtrf7g.js";
4
+ } from "./index-b0qyb790.js";
5
5
  import {
6
6
  appendCoreEventSync
7
- } from "./index-mn5zzmqx.js";
7
+ } from "./index-jvk95e6y.js";
8
8
  import {
9
9
  deleteCoordinationState,
10
10
  derivePlanId,
@@ -13,24 +13,24 @@ import {
13
13
  transitionCoordinationState,
14
14
  transitionCoordinationStateWithinTransaction,
15
15
  withCoordinationTransaction
16
- } from "./index-3rb5gs4w.js";
16
+ } from "./index-f0nj3d8z.js";
17
17
  import {
18
18
  getProjectDb
19
- } from "./index-08x7gsnf.js";
19
+ } from "./index-w9hxzcz4.js";
20
20
  import {
21
21
  canonicalExistingFilesystemPath,
22
22
  legacyCanonicalExistingFilesystemPath
23
23
  } from "./index-ry16d01s.js";
24
24
  import {
25
25
  assertProjectRoot
26
- } from "./index-01wt209s.js";
26
+ } from "./index-t7hmqgjy.js";
27
27
  import {
28
28
  require_proper_lockfile
29
29
  } from "./index-7g4c7s5r.js";
30
30
  import {
31
31
  atomicWriteSwarmFile,
32
32
  atomicWriteSwarmFileSync
33
- } from "./index-5cve9g2b.js";
33
+ } from "./index-k53a69vb.js";
34
34
  import {
35
35
  PlanSchema
36
36
  } from "./index-gx2vp8gx.js";
@@ -11,16 +11,16 @@ import {
11
11
  } from "./index-ae75rja9.js";
12
12
  import {
13
13
  resolveKnowledgeStoreDir
14
- } from "./index-74x26wyj.js";
14
+ } from "./index-475bkab8.js";
15
15
  import {
16
16
  atomicWriteFile
17
- } from "./index-01wt209s.js";
17
+ } from "./index-xf69xty9.js";
18
18
  import {
19
19
  require_proper_lockfile
20
20
  } from "./index-7g4c7s5r.js";
21
21
  import {
22
22
  readCachedParsedFile
23
- } from "./index-5cve9g2b.js";
23
+ } from "./index-k53a69vb.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-31nga9yt.js");
742
+ } = await import("./knowledge-events-4879bjbz.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-vndnwdj6.js");
810
- const { KnowledgeConfigSchema } = await import("./schema-cyet68tw.js");
809
+ const { quarantineEntry } = await import("./knowledge-validator-k0q00zsj.js");
810
+ const { KnowledgeConfigSchema } = await import("./schema-80nb4z6k.js");
811
811
  let config;
812
812
  try {
813
- const { loadPluginConfigWithMeta } = await import("./index-fs9y88h1.js");
813
+ const { loadPluginConfigWithMeta } = await import("./index-q5115jpe.js");
814
814
  const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
815
815
  config = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
816
816
  } catch {
@@ -5,29 +5,29 @@ import {
5
5
  import {
6
6
  effectiveRetrievalOutcomes,
7
7
  readAuthoritativeKnowledgeCounterRollups
8
- } from "./index-z3b157ew.js";
8
+ } from "./index-rr1m7cc6.js";
9
9
  import {
10
10
  ALLOWED_SKILL_PATH_PREFIXES,
11
11
  validateSkillPath
12
- } from "./index-5wk0etp8.js";
12
+ } from "./index-w6agyrzs.js";
13
13
  import {
14
14
  computeOutcomeSignal,
15
15
  readKnowledge,
16
16
  resolveHiveKnowledgePath,
17
17
  resolveSwarmKnowledgePath,
18
18
  transactKnowledge
19
- } from "./index-qyx53xrz.js";
19
+ } from "./index-zq40mkha.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-1xnse449.js";
26
+ } from "./index-mc72pk74.js";
27
27
  import {
28
28
  atomicWriteFileAnyRoot,
29
29
  atomicWriteSwarmFile
30
- } from "./index-5cve9g2b.js";
30
+ } from "./index-k53a69vb.js";
31
31
  import {
32
32
  advisoryWarn,
33
33
  init_warning_buffer
@@ -3,13 +3,13 @@ import {
3
3
  pseudonymousRef,
4
4
  resolveLineageSalt,
5
5
  telemetry
6
- } from "./index-fbhtb6f5.js";
6
+ } from "./index-x1gyqgze.js";
7
7
  import {
8
8
  canonicalRootKeyFresh
9
- } from "./index-1xnse449.js";
9
+ } from "./index-mc72pk74.js";
10
10
  import {
11
11
  atomicWriteSwarmFile
12
- } from "./index-5cve9g2b.js";
12
+ } from "./index-k53a69vb.js";
13
13
 
14
14
  // src/health/learning-health.ts
15
15
  import { promises as fs } from "fs";
package/dist/cli/index.js CHANGED
@@ -14,69 +14,70 @@ import {
14
14
  readCachePackageVersion,
15
15
  resolveCommand,
16
16
  safeRealpathSync
17
- } from "./index-9yvjwfay.js";
18
- import"./index-pq6vr26z.js";
17
+ } from "./index-2wn8ww1e.js";
18
+ import"./index-rpsmx4ke.js";
19
19
  import"./index-hamqvzqn.js";
20
- import"./index-4t0wd9sv.js";
21
- import"./index-46z4c89b.js";
22
- import"./index-r30xs0wp.js";
23
- import"./index-nvm6mxep.js";
24
- import"./index-z8smhv7k.js";
20
+ import"./index-6g664sy8.js";
21
+ import"./index-xka1cq9k.js";
22
+ import"./index-6ayk7a3q.js";
23
+ import"./index-5r5s0dbb.js";
24
+ import"./index-ya32wfkp.js";
25
25
  import"./index-txdagbh7.js";
26
- import"./index-6b4vkz6q.js";
26
+ import"./index-x9wpvhpk.js";
27
27
  import"./index-6b295cas.js";
28
- import"./index-j40czc9v.js";
29
- import"./index-152b9c6m.js";
30
- import"./index-3fhg7pqf.js";
28
+ import"./index-zvbn85q0.js";
29
+ import"./index-hkqd9jz6.js";
30
+ import"./index-amhr3swp.js";
31
31
  import"./index-rdec0y3z.js";
32
- import"./index-e90m050y.js";
32
+ import"./index-ar2gsn6b.js";
33
33
  import"./index-cjapb4hy.js";
34
34
  import"./index-zsrtt42s.js";
35
- import"./index-me39468k.js";
36
- import"./index-6h81yvyc.js";
37
- import"./index-0bpr8vag.js";
35
+ import"./index-8chh1c96.js";
36
+ import"./index-131ay7x1.js";
37
+ import"./index-3n5zsp31.js";
38
38
  import"./index-pt7h91zc.js";
39
39
  import"./index-q7sjgr1y.js";
40
- import"./index-t26gj2fh.js";
41
- import"./index-ad3yskxy.js";
42
- import"./index-4gr9pj67.js";
43
- import"./index-nm8ma9xb.js";
44
- import"./index-z3b157ew.js";
45
- import"./index-nmh0s6dg.js";
40
+ import"./index-jct9kb50.js";
41
+ import"./index-279xp2be.js";
42
+ import"./index-rp6sfpwp.js";
43
+ import"./index-peg6sftq.js";
44
+ import"./index-rr1m7cc6.js";
45
+ import"./index-wy3zpwjy.js";
46
46
  import"./index-2s7dvzff.js";
47
- import"./index-5wk0etp8.js";
48
- import"./index-v3hpsxvd.js";
47
+ import"./index-w6agyrzs.js";
48
+ import"./index-earq3mda.js";
49
49
  import"./index-rtry5xyf.js";
50
- import"./index-edrgc139.js";
50
+ import"./index-bga7w4rt.js";
51
51
  import"./index-frcemc0b.js";
52
52
  import"./index-0725jpp7.js";
53
- import"./index-njf5pbkm.js";
54
- import"./index-51xtrf7g.js";
55
- import"./index-mn5zzmqx.js";
56
- import"./index-w81jmdkt.js";
57
- import"./index-3rb5gs4w.js";
58
- import"./index-08x7gsnf.js";
53
+ import"./index-zmgs43tw.js";
54
+ import"./index-b0qyb790.js";
55
+ import"./index-jvk95e6y.js";
56
+ import"./index-456awy1p.js";
57
+ import"./index-f0nj3d8z.js";
58
+ import"./index-w9hxzcz4.js";
59
59
  import"./index-rdm3px0g.js";
60
60
  import"./index-ry16d01s.js";
61
- import"./index-1d6ssjcj.js";
62
- import"./index-qyx53xrz.js";
61
+ import"./index-zzvxj02e.js";
62
+ import"./index-zq40mkha.js";
63
63
  import"./index-vzm6zre7.js";
64
64
  import"./index-ae75rja9.js";
65
- import"./index-74x26wyj.js";
66
- import"./index-01wt209s.js";
67
- import"./index-fbhtb6f5.js";
68
- import"./index-1xnse449.js";
65
+ import"./index-475bkab8.js";
66
+ import"./index-xf69xty9.js";
67
+ import"./index-t7hmqgjy.js";
68
+ import"./index-x1gyqgze.js";
69
+ import"./index-mc72pk74.js";
69
70
  import"./index-c1ggtmpm.js";
70
71
  import"./index-ejhxgyvm.js";
71
72
  import"./index-7g4c7s5r.js";
72
- import"./index-5cve9g2b.js";
73
+ import"./index-k53a69vb.js";
73
74
  import"./index-gx2vp8gx.js";
74
- import"./index-t1swv35d.js";
75
+ import"./index-dm2ydm2b.js";
75
76
  import"./index-zxdawwc7.js";
76
77
  import {
77
78
  init_package,
78
79
  package_default
79
- } from "./index-ysr6n4ca.js";
80
+ } from "./index-j2xcdbfd.js";
80
81
  import {
81
82
  DEFAULT_AGENT_CONFIGS,
82
83
  init_constants
@@ -644,7 +645,7 @@ async function main() {
644
645
  const exitCode = await run(["ci", ...args.slice(1)]);
645
646
  process.exit(exitCode);
646
647
  } else if (command === "mcp") {
647
- const { handleMcpCommand } = await import("./mcp-taace90a.js");
648
+ const { handleMcpCommand } = await import("./mcp-tmr9kgrr.js");
648
649
  const exitCode = await handleMcpCommand(args.slice(1));
649
650
  process.exit(exitCode);
650
651
  } else {
@@ -9,29 +9,30 @@ import {
9
9
  maybeEscalateOnViolation,
10
10
  maybeQuarantineOnContradiction,
11
11
  readRecentEscalations
12
- } from "./index-152b9c6m.js";
13
- import"./index-z3b157ew.js";
14
- import"./index-nmh0s6dg.js";
12
+ } from "./index-hkqd9jz6.js";
13
+ import"./index-rr1m7cc6.js";
14
+ import"./index-wy3zpwjy.js";
15
15
  import"./index-2s7dvzff.js";
16
- import"./index-edrgc139.js";
16
+ import"./index-bga7w4rt.js";
17
17
  import"./index-frcemc0b.js";
18
18
  import"./index-0725jpp7.js";
19
- import"./index-1d6ssjcj.js";
20
- import"./index-qyx53xrz.js";
19
+ import"./index-zzvxj02e.js";
20
+ import"./index-zq40mkha.js";
21
21
  import"./index-vzm6zre7.js";
22
22
  import"./index-ae75rja9.js";
23
- import"./index-74x26wyj.js";
24
- import"./index-01wt209s.js";
25
- import"./index-fbhtb6f5.js";
26
- import"./index-1xnse449.js";
23
+ import"./index-475bkab8.js";
24
+ import"./index-xf69xty9.js";
25
+ import"./index-t7hmqgjy.js";
26
+ import"./index-x1gyqgze.js";
27
+ import"./index-mc72pk74.js";
27
28
  import"./index-c1ggtmpm.js";
28
29
  import"./index-ejhxgyvm.js";
29
30
  import"./index-7g4c7s5r.js";
30
- import"./index-5cve9g2b.js";
31
+ import"./index-k53a69vb.js";
31
32
  import"./index-gx2vp8gx.js";
32
- import"./index-t1swv35d.js";
33
+ import"./index-dm2ydm2b.js";
33
34
  import"./index-zxdawwc7.js";
34
- import"./index-ysr6n4ca.js";
35
+ import"./index-j2xcdbfd.js";
35
36
  import"./index-wzec3c4g.js";
36
37
  import"./index-bk5tah7q.js";
37
38
  import"./index-gknz3bv1.js";
@@ -29,26 +29,27 @@ import {
29
29
  resolveKnowledgeCounterBaselinePath,
30
30
  resolveKnowledgeEventsPath,
31
31
  resolveLegacyApplicationLogPath
32
- } from "./index-z3b157ew.js";
33
- import"./index-nmh0s6dg.js";
32
+ } from "./index-rr1m7cc6.js";
33
+ import"./index-wy3zpwjy.js";
34
34
  import"./index-2s7dvzff.js";
35
- import"./index-edrgc139.js";
35
+ import"./index-bga7w4rt.js";
36
36
  import"./index-frcemc0b.js";
37
37
  import"./index-0725jpp7.js";
38
- import"./index-1d6ssjcj.js";
38
+ import"./index-zzvxj02e.js";
39
39
  import"./index-ae75rja9.js";
40
- import"./index-74x26wyj.js";
41
- import"./index-01wt209s.js";
42
- import"./index-fbhtb6f5.js";
43
- import"./index-1xnse449.js";
40
+ import"./index-475bkab8.js";
41
+ import"./index-xf69xty9.js";
42
+ import"./index-t7hmqgjy.js";
43
+ import"./index-x1gyqgze.js";
44
+ import"./index-mc72pk74.js";
44
45
  import"./index-c1ggtmpm.js";
45
46
  import"./index-ejhxgyvm.js";
46
47
  import"./index-7g4c7s5r.js";
47
- import"./index-5cve9g2b.js";
48
+ import"./index-k53a69vb.js";
48
49
  import"./index-gx2vp8gx.js";
49
- import"./index-t1swv35d.js";
50
+ import"./index-dm2ydm2b.js";
50
51
  import"./index-zxdawwc7.js";
51
- import"./index-ysr6n4ca.js";
52
+ import"./index-j2xcdbfd.js";
52
53
  import"./index-wzec3c4g.js";
53
54
  import"./index-bk5tah7q.js";
54
55
  import"./index-gknz3bv1.js";
@@ -12,14 +12,15 @@ import {
12
12
  resolveLinkDir,
13
13
  sanitizeLinkId,
14
14
  writeLinkPointer
15
- } from "./index-74x26wyj.js";
16
- import"./index-01wt209s.js";
17
- import"./index-fbhtb6f5.js";
18
- import"./index-1xnse449.js";
15
+ } from "./index-475bkab8.js";
16
+ import"./index-xf69xty9.js";
17
+ import"./index-t7hmqgjy.js";
18
+ import"./index-x1gyqgze.js";
19
+ import"./index-mc72pk74.js";
19
20
  import"./index-c1ggtmpm.js";
20
21
  import"./index-ejhxgyvm.js";
21
22
  import"./index-7g4c7s5r.js";
22
- import"./index-5cve9g2b.js";
23
+ import"./index-k53a69vb.js";
23
24
  import"./index-gknz3bv1.js";
24
25
  import"./index-zpsr8rpc.js";
25
26
  import"./index-zgwm4ryv.js";
@@ -43,19 +43,20 @@ import {
43
43
  transactKnowledge,
44
44
  transactKnowledgeWithCas,
45
45
  wordBigrams
46
- } from "./index-qyx53xrz.js";
46
+ } from "./index-zq40mkha.js";
47
47
  import"./index-vzm6zre7.js";
48
48
  import {
49
49
  resolveHiveDataDir
50
50
  } from "./index-ae75rja9.js";
51
- import"./index-74x26wyj.js";
52
- import"./index-01wt209s.js";
53
- import"./index-fbhtb6f5.js";
54
- import"./index-1xnse449.js";
51
+ import"./index-475bkab8.js";
52
+ import"./index-xf69xty9.js";
53
+ import"./index-t7hmqgjy.js";
54
+ import"./index-x1gyqgze.js";
55
+ import"./index-mc72pk74.js";
55
56
  import"./index-c1ggtmpm.js";
56
57
  import"./index-ejhxgyvm.js";
57
58
  import"./index-7g4c7s5r.js";
58
- import"./index-5cve9g2b.js";
59
+ import"./index-k53a69vb.js";
59
60
  import"./index-bk5tah7q.js";
60
61
  import"./index-gknz3bv1.js";
61
62
  import"./index-zpsr8rpc.js";
@@ -23,20 +23,21 @@ import {
23
23
  validateLesson,
24
24
  validateSkillCandidatePath,
25
25
  validateSkillPath
26
- } from "./index-5wk0etp8.js";
27
- import"./index-v3hpsxvd.js";
26
+ } from "./index-w6agyrzs.js";
27
+ import"./index-earq3mda.js";
28
28
  import"./index-rtry5xyf.js";
29
- import"./index-qyx53xrz.js";
29
+ import"./index-zq40mkha.js";
30
30
  import"./index-vzm6zre7.js";
31
31
  import"./index-ae75rja9.js";
32
- import"./index-74x26wyj.js";
33
- import"./index-01wt209s.js";
34
- import"./index-fbhtb6f5.js";
35
- import"./index-1xnse449.js";
32
+ import"./index-475bkab8.js";
33
+ import"./index-xf69xty9.js";
34
+ import"./index-t7hmqgjy.js";
35
+ import"./index-x1gyqgze.js";
36
+ import"./index-mc72pk74.js";
36
37
  import"./index-c1ggtmpm.js";
37
38
  import"./index-ejhxgyvm.js";
38
39
  import"./index-7g4c7s5r.js";
39
- import"./index-5cve9g2b.js";
40
+ import"./index-k53a69vb.js";
40
41
  import"./index-bk5tah7q.js";
41
42
  import"./index-gknz3bv1.js";
42
43
  import"./index-zpsr8rpc.js";