opencode-swarm 7.148.0 → 7.148.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 (71) hide show
  1. package/dist/background/pr-review-collection-receipt.d.ts +2 -2
  2. package/dist/cli/{config-doctor-z2wam5wn.js → config-doctor-w6zphy4w.js} +2 -2
  3. package/dist/cli/{core-k7m76ce0.js → core-65qyqw2f.js} +1 -1
  4. package/dist/cli/{curation-policy-kd8j8cne.js → curation-policy-166wdjs4.js} +6 -6
  5. package/dist/cli/{curator-jwpm52kg.js → curator-2jhdfjqg.js} +27 -27
  6. package/dist/cli/{curator-llm-factory-4qt8b15s.js → curator-llm-factory-y43mx297.js} +27 -27
  7. package/dist/cli/{evidence-summary-service-90z295j3.js → evidence-summary-service-7qpganmn.js} +11 -11
  8. package/dist/cli/{gate-evidence-3q6q71fw.js → gate-evidence-p79xv25a.js} +6 -6
  9. package/dist/cli/{guardrail-explain-44xt373y.js → guardrail-explain-76sy950j.js} +28 -28
  10. package/dist/cli/{guardrail-log-kbp5jztb.js → guardrail-log-pm0w6ney.js} +3 -3
  11. package/dist/cli/{guardrail-reset-vpazhh8k.js → guardrail-reset-tkkg0bfz.js} +27 -27
  12. package/dist/cli/{hive-promoter-tdrkz9nh.js → hive-promoter-w4batwr6.js} +27 -27
  13. package/dist/cli/{index-jpa03jcc.js → index-2bsnwcmp.js} +1 -1
  14. package/dist/cli/{index-pgvx3rkq.js → index-2n9rwvcc.js} +1 -1
  15. package/dist/cli/{index-2y14mjfn.js → index-3yh2e5ca.js} +4 -2
  16. package/dist/cli/{index-9pmmexsd.js → index-5wypz451.js} +1 -1
  17. package/dist/cli/{index-x4rxh8j9.js → index-627mz27c.js} +3 -3
  18. package/dist/cli/{index-016708th.js → index-81n4ky69.js} +2 -2
  19. package/dist/cli/{index-52gnz782.js → index-c23yxr1s.js} +4 -4
  20. package/dist/cli/{index-d3bdr78h.js → index-ch6sjm8q.js} +1 -1
  21. package/dist/cli/{index-n96wwf56.js → index-dwg0z10h.js} +4 -4
  22. package/dist/cli/{index-sycndcwd.js → index-e9d2829t.js} +1 -1
  23. package/dist/cli/{index-h879g4r4.js → index-f115c8y6.js} +3 -3
  24. package/dist/cli/{index-y586zet4.js → index-fv5cc1rd.js} +2 -2
  25. package/dist/cli/{index-q81s0m8k.js → index-ghbkknjz.js} +79 -38
  26. package/dist/cli/{index-dmbaaz6d.js → index-hxqjf4me.js} +4 -4
  27. package/dist/cli/{index-zwpttdgn.js → index-jtnk7k6w.js} +1 -1
  28. package/dist/cli/{index-ffevkn7k.js → index-k5ze5v89.js} +1 -1
  29. package/dist/cli/{index-p62we2ar.js → index-kpgj4ha6.js} +1 -1
  30. package/dist/cli/{index-crpb0qke.js → index-kztxn1ww.js} +4034 -2834
  31. package/dist/cli/{index-qwj7qjjp.js → index-m97qwwrk.js} +2 -2
  32. package/dist/cli/{index-7ac5z627.js → index-mfhpk4c6.js} +1 -1
  33. package/dist/cli/{index-n0fpefqx.js → index-py2rsw1a.js} +4 -4
  34. package/dist/cli/{index-k6h5yc1j.js → index-q0gfmyzx.js} +5 -5
  35. package/dist/cli/{index-702zx3rk.js → index-qwzpsh3w.js} +1 -1
  36. package/dist/cli/{index-qcm97jfh.js → index-qzstn430.js} +1 -1
  37. package/dist/cli/{index-6q35swn2.js → index-rsn4jm90.js} +1 -1
  38. package/dist/cli/{index-dfvh1r8g.js → index-s3s2egzn.js} +29 -29
  39. package/dist/cli/{index-7hctrdk8.js → index-shazb5b6.js} +2 -2
  40. package/dist/cli/{index-rcjq8dm4.js → index-shm69en5.js} +2 -2
  41. package/dist/cli/{index-ykjjqg79.js → index-t6ys1386.js} +6 -6
  42. package/dist/cli/{index-gwrv6c56.js → index-w49v4xd6.js} +7 -7
  43. package/dist/cli/{index-07zgs6y0.js → index-x46mmaep.js} +14 -10
  44. package/dist/cli/index.js +27 -27
  45. package/dist/cli/{knowledge-escalator-0qnm48g8.js → knowledge-escalator-21n4ztqx.js} +11 -11
  46. package/dist/cli/{knowledge-events-3zv81nzp.js → knowledge-events-h5d5eayv.js} +9 -9
  47. package/dist/cli/{knowledge-link-w91bcyx2.js → knowledge-link-vgxe7gz9.js} +5 -5
  48. package/dist/cli/{knowledge-store-njtx6wj1.js → knowledge-store-y10m7x4f.js} +8 -6
  49. package/dist/cli/{knowledge-validator-7eqj5afv.js → knowledge-validator-dzm9sg0f.js} +8 -8
  50. package/dist/cli/{pending-delegations-k4x00mqc.js → pending-delegations-78zaaxz4.js} +3 -3
  51. package/dist/cli/{pr-subscriptions-x2mqc3f1.js → pr-subscriptions-9mg6mwc0.js} +3 -3
  52. package/dist/cli/{runner-gfzkp9nv.js → runner-rarzeth8.js} +6 -6
  53. package/dist/cli/{scan-cursor-a6dhyf55.js → scan-cursor-zn2qf06a.js} +7 -7
  54. package/dist/cli/{schema-p0vn1zgh.js → schema-ynwy7abm.js} +1 -1
  55. package/dist/cli/{scope-persistence-zs97zkt7.js → scope-persistence-sh30937s.js} +7 -7
  56. package/dist/cli/{skill-generator-5qg15q1j.js → skill-generator-r3knfwrp.js} +13 -13
  57. package/dist/cli/{telemetry-xzy0qeap.js → telemetry-1pnsftp0.js} +1 -1
  58. package/dist/cli/{worktree-collision-ownership-q2gswg16.js → worktree-collision-ownership-29md3k1n.js} +3 -3
  59. package/dist/cli/{worktree-isolation-ndb5fwys.js → worktree-isolation-yj7ssh24.js} +27 -27
  60. package/dist/consensus/contracts.d.ts +5 -1
  61. package/dist/consensus/corpus.d.ts +26 -3
  62. package/dist/consensus/miner.d.ts +5 -1
  63. package/dist/hooks/curator.d.ts +41 -1
  64. package/dist/hooks/knowledge-store.d.ts +26 -2
  65. package/dist/hooks/skill-scoring.d.ts +13 -3
  66. package/dist/hooks/skill-usage-log.d.ts +140 -17
  67. package/dist/hooks/skill-usage-pending.d.ts +392 -0
  68. package/dist/index.js +500 -499
  69. package/dist/observability/catalog.d.ts +6 -4
  70. package/dist/telemetry.d.ts +35 -1
  71. package/package.json +1 -1
@@ -12,14 +12,14 @@ import {
12
12
  detectPosixWrites,
13
13
  detectWindowsWrites,
14
14
  resolveWriteTargets
15
- } from "./index-crpb0qke.js";
15
+ } from "./index-kztxn1ww.js";
16
16
  import {
17
17
  checkFileAuthority,
18
18
  classifyFile,
19
19
  isInDeclaredScope,
20
20
  redactPath,
21
21
  redactShellCommand
22
- } from "./index-jpa03jcc.js";
22
+ } from "./index-2bsnwcmp.js";
23
23
 
24
24
  // src/services/guardrail-explain-service.ts
25
25
  import path from "path";
@@ -92,7 +92,7 @@ var _internals = {
92
92
  symlinkSync: fs.symlinkSync
93
93
  },
94
94
  writeScopeToDisk: async (directory, taskId, files) => {
95
- const { writeScopeToDisk: realWrite } = await import("./scope-persistence-zs97zkt7.js");
95
+ const { writeScopeToDisk: realWrite } = await import("./scope-persistence-sh30937s.js");
96
96
  return realWrite(directory, taskId, files);
97
97
  },
98
98
  writeLaneProfileToDisk: async (_worktreePath, _laneIndex, _envOverrides) => {
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  autoCommitDirty,
4
4
  cleanUntrackedFiles
5
- } from "./index-7ac5z627.js";
5
+ } from "./index-mfhpk4c6.js";
6
6
  import {
7
7
  isPathWithinDeclaredScope,
8
8
  unsafePathTextReason
@@ -26,13 +26,13 @@ import {
26
26
  atomicWriteFile,
27
27
  taskEvidencePath,
28
28
  withTaskEvidenceLock
29
- } from "./index-7hctrdk8.js";
29
+ } from "./index-shazb5b6.js";
30
30
  import {
31
31
  assertProjectRoot
32
- } from "./index-6q35swn2.js";
32
+ } from "./index-rsn4jm90.js";
33
33
  import {
34
34
  telemetry
35
- } from "./index-q81s0m8k.js";
35
+ } from "./index-ghbkknjz.js";
36
36
  import {
37
37
  exports_external,
38
38
  init_zod
@@ -6,12 +6,12 @@ import {
6
6
  resolveSwarmKnowledgePath,
7
7
  transactKnowledge,
8
8
  wordBigrams
9
- } from "./index-07zgs6y0.js";
9
+ } from "./index-x46mmaep.js";
10
10
  import {
11
11
  queryHistoricalOutcomes,
12
12
  readKnowledgeEvents,
13
13
  recordKnowledgeEvent
14
- } from "./index-gwrv6c56.js";
14
+ } from "./index-w49v4xd6.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-7eqj5afv.js");
227
+ const { quarantineEntry } = await import("./knowledge-validator-dzm9sg0f.js");
228
228
  let policyConfig;
229
229
  try {
230
- const { KnowledgeConfigSchema } = await import("./schema-p0vn1zgh.js");
231
- const { loadPluginConfigWithMeta } = await import("./index-x4rxh8j9.js");
230
+ const { KnowledgeConfigSchema } = await import("./schema-ynwy7abm.js");
231
+ const { loadPluginConfigWithMeta } = await import("./index-627mz27c.js");
232
232
  const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
233
233
  policyConfig = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
234
234
  } catch {
@@ -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.148.0",
24
+ version: "7.148.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",
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  atomicWriteFile
4
- } from "./index-7hctrdk8.js";
4
+ } from "./index-shazb5b6.js";
5
5
  import {
6
6
  init_logger,
7
7
  warn
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  emit
4
- } from "./index-q81s0m8k.js";
4
+ } from "./index-ghbkknjz.js";
5
5
  import {
6
6
  require_proper_lockfile
7
7
  } from "./index-7g4c7s5r.js";
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailExplain
4
- } from "./index-qwj7qjjp.js";
4
+ } from "./index-m97qwwrk.js";
5
5
  import {
6
6
  handleGuardrailLog
7
- } from "./index-sycndcwd.js";
7
+ } from "./index-e9d2829t.js";
8
8
  import {
9
9
  COMMAND_REGISTRY,
10
10
  SWARM_COMMAND_TOOL_ALLOWLIST,
@@ -85,48 +85,48 @@ import {
85
85
  handleWriteRetroCommand,
86
86
  normalizeSwarmCommandInput,
87
87
  resolveCommand
88
- } from "./index-crpb0qke.js";
89
- import"./index-p62we2ar.js";
90
- import"./index-jpa03jcc.js";
91
- import"./index-9pmmexsd.js";
92
- import"./index-ykjjqg79.js";
93
- import"./index-y586zet4.js";
88
+ } from "./index-kztxn1ww.js";
89
+ import"./index-kpgj4ha6.js";
90
+ import"./index-2bsnwcmp.js";
91
+ import"./index-5wypz451.js";
92
+ import"./index-t6ys1386.js";
93
+ import"./index-fv5cc1rd.js";
94
94
  import"./index-134d35c1.js";
95
95
  import"./index-nj6rmyeh.js";
96
96
  import"./index-y8552snf.js";
97
- import"./index-k6h5yc1j.js";
98
- import"./index-016708th.js";
97
+ import"./index-q0gfmyzx.js";
98
+ import"./index-81n4ky69.js";
99
99
  import"./index-70ha9e09.js";
100
100
  import"./index-c8s9a3zh.js";
101
101
  import"./index-9ss2m4rs.js";
102
102
  import"./index-g8wwj0sz.js";
103
- import"./index-pgvx3rkq.js";
104
- import"./index-dmbaaz6d.js";
105
- import"./index-n96wwf56.js";
106
- import"./index-zwpttdgn.js";
103
+ import"./index-2n9rwvcc.js";
104
+ import"./index-hxqjf4me.js";
105
+ import"./index-dwg0z10h.js";
106
+ import"./index-jtnk7k6w.js";
107
107
  import"./index-rtry5xyf.js";
108
108
  import"./index-zsrtt42s.js";
109
- import"./index-d3bdr78h.js";
109
+ import"./index-ch6sjm8q.js";
110
110
  import"./index-fxvgaeq4.js";
111
- import"./index-n0fpefqx.js";
112
- import"./index-7ac5z627.js";
113
- import"./index-52gnz782.js";
114
- import"./index-h879g4r4.js";
111
+ import"./index-py2rsw1a.js";
112
+ import"./index-mfhpk4c6.js";
113
+ import"./index-c23yxr1s.js";
114
+ import"./index-f115c8y6.js";
115
115
  import"./index-556ja8an.js";
116
116
  import"./index-b43rt5ph.js";
117
117
  import"./index-q7sjgr1y.js";
118
118
  import"./index-3g0xk6tk.js";
119
119
  import"./index-85gkedsf.js";
120
- import"./index-07zgs6y0.js";
121
- import"./index-gwrv6c56.js";
122
- import"./index-rcjq8dm4.js";
120
+ import"./index-x46mmaep.js";
121
+ import"./index-w49v4xd6.js";
122
+ import"./index-shm69en5.js";
123
123
  import"./index-gprxjmm7.js";
124
124
  import"./index-n832052r.js";
125
- import"./index-ffevkn7k.js";
125
+ import"./index-k5ze5v89.js";
126
126
  import {
127
127
  init_schema,
128
128
  stripKnownSwarmPrefix
129
- } from "./index-702zx3rk.js";
129
+ } from "./index-qwzpsh3w.js";
130
130
  import {
131
131
  AGENT_TOOL_MAP,
132
132
  ORCHESTRATOR_NAME,
@@ -139,12 +139,12 @@ import"./index-z6xqpmqg.js";
139
139
  import"./index-r3mvsbtq.js";
140
140
  import"./index-zjygnfay.js";
141
141
  import"./index-ae75rja9.js";
142
- import"./index-qcm97jfh.js";
143
- import"./index-7hctrdk8.js";
142
+ import"./index-qzstn430.js";
143
+ import"./index-shazb5b6.js";
144
144
  import"./index-bk5tah7q.js";
145
- import"./index-2y14mjfn.js";
146
- import"./index-6q35swn2.js";
147
- import"./index-q81s0m8k.js";
145
+ import"./index-3yh2e5ca.js";
146
+ import"./index-rsn4jm90.js";
147
+ import"./index-ghbkknjz.js";
148
148
  import"./index-7g4c7s5r.js";
149
149
  import"./index-bpmtbmy9.js";
150
150
  import"./index-ed5ykebp.js";
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  atomicWriteFileAnyRoot
4
- } from "./index-2y14mjfn.js";
4
+ } from "./index-3yh2e5ca.js";
5
5
  import {
6
6
  withEvidenceLock
7
- } from "./index-6q35swn2.js";
7
+ } from "./index-rsn4jm90.js";
8
8
 
9
9
  // src/evidence/task-file.ts
10
10
  import * as path from "path";
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  init_loader,
4
4
  loadPluginConfigWithMeta
5
- } from "./index-ffevkn7k.js";
5
+ } from "./index-k5ze5v89.js";
6
6
  import {
7
7
  init_schema
8
- } from "./index-702zx3rk.js";
8
+ } from "./index-qwzpsh3w.js";
9
9
  import {
10
10
  DEFAULT_WORKTREE_ISOLATION_CONFIG,
11
11
  init_constants
@@ -3,7 +3,7 @@ import {
3
3
  EvaluationRunV1Schema,
4
4
  GateAuditResultV1Schema,
5
5
  getProtectedEvaluationRunIds
6
- } from "./index-y586zet4.js";
6
+ } from "./index-fv5cc1rd.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-n0fpefqx.js";
26
+ } from "./index-py2rsw1a.js";
27
27
  import {
28
28
  LedgerStaleWriterError,
29
29
  appendLedgerEvent,
@@ -43,7 +43,7 @@ import {
43
43
  replayFromLedgerWithStatus,
44
44
  takeSnapshotEvent,
45
45
  takeSnapshotWithRetry
46
- } from "./index-h879g4r4.js";
46
+ } from "./index-f115c8y6.js";
47
47
  import {
48
48
  init_executor,
49
49
  isUntrustedEnvKey,
@@ -56,7 +56,7 @@ import {
56
56
  } from "./index-gprxjmm7.js";
57
57
  import {
58
58
  PlanSchema
59
- } from "./index-ffevkn7k.js";
59
+ } from "./index-k5ze5v89.js";
60
60
  import {
61
61
  GIT_BINARY_ENV_VAR,
62
62
  describeGitResolution,
@@ -76,10 +76,10 @@ import {
76
76
  assertProjectRoot,
77
77
  tryAcquireLock,
78
78
  withEvidenceLock
79
- } from "./index-6q35swn2.js";
79
+ } from "./index-rsn4jm90.js";
80
80
  import {
81
81
  emit
82
- } from "./index-q81s0m8k.js";
82
+ } from "./index-ghbkknjz.js";
83
83
  import {
84
84
  ZodError,
85
85
  init_zod
@@ -1,11 +1,11 @@
1
1
  // @bun
2
2
  import {
3
3
  loadPluginConfigWithMeta
4
- } from "./index-ffevkn7k.js";
4
+ } from "./index-k5ze5v89.js";
5
5
  import {
6
6
  KnowledgeConfigSchema,
7
7
  init_schema
8
- } from "./index-702zx3rk.js";
8
+ } from "./index-qwzpsh3w.js";
9
9
  import {
10
10
  validateSwarmPath
11
11
  } from "./index-4cgee5vh.js";
@@ -14,16 +14,16 @@ import {
14
14
  } from "./index-ae75rja9.js";
15
15
  import {
16
16
  resolveKnowledgeStoreDir
17
- } from "./index-qcm97jfh.js";
17
+ } from "./index-qzstn430.js";
18
18
  import {
19
19
  atomicWriteFile
20
- } from "./index-7hctrdk8.js";
20
+ } from "./index-shazb5b6.js";
21
21
  import {
22
22
  assertProjectRoot
23
- } from "./index-6q35swn2.js";
23
+ } from "./index-rsn4jm90.js";
24
24
  import {
25
25
  emit
26
- } from "./index-q81s0m8k.js";
26
+ } from "./index-ghbkknjz.js";
27
27
  import {
28
28
  require_proper_lockfile
29
29
  } from "./index-7g4c7s5r.js";
@@ -2693,7 +2693,7 @@ async function applyKnowledgeVerdictFeedback(directory, options) {
2693
2693
  }
2694
2694
  let bumps = 0;
2695
2695
  if (deltas.length > 0) {
2696
- const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-njtx6wj1.js");
2696
+ const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-y10m7x4f.js");
2697
2697
  bumps = await bumpKnowledgeConfidenceBatch(directory, deltas, options?.floorOptions);
2698
2698
  }
2699
2699
  return {
@@ -6,10 +6,10 @@ import {
6
6
  } from "./index-ae75rja9.js";
7
7
  import {
8
8
  resolveKnowledgeStoreDir
9
- } from "./index-qcm97jfh.js";
9
+ } from "./index-qzstn430.js";
10
10
  import {
11
11
  atomicWriteFile
12
- } from "./index-7hctrdk8.js";
12
+ } from "./index-shazb5b6.js";
13
13
  import {
14
14
  init_knowledge_types,
15
15
  isActiveStatus
@@ -671,8 +671,12 @@ function inferTags(lesson) {
671
671
  var CONFIDENCE_FLOOR = 0.1;
672
672
  var CONFIDENCE_CEILING = 1;
673
673
  async function bumpKnowledgeConfidenceBatch(directory, deltas, options) {
674
+ const { applied } = await bumpKnowledgeConfidenceBatchResult(directory, deltas, options);
675
+ return applied;
676
+ }
677
+ async function bumpKnowledgeConfidenceBatchResult(directory, deltas, options) {
674
678
  if (deltas.length === 0)
675
- return 0;
679
+ return { applied: 0, failed: false };
676
680
  const swarmPath = resolveSwarmKnowledgePath(directory);
677
681
  const hivePath = resolveHiveKnowledgePath2();
678
682
  const touchedSwarm = [];
@@ -689,10 +693,10 @@ async function bumpKnowledgeConfidenceBatch(directory, deltas, options) {
689
693
  await applyConfidenceFloorAction(directory, [...touchedSwarm, ...touchedHive], options).catch((err) => {
690
694
  log("[knowledge-store] confidence-floor action sweep failed (best-effort):", err instanceof Error ? err.message : String(err));
691
695
  });
692
- return touchedSwarm.length + touchedHive.length;
696
+ return { applied: touchedSwarm.length + touchedHive.length, failed: false };
693
697
  } catch (err) {
694
698
  log("[knowledge-store] bumpKnowledgeConfidenceBatch failed (fail-open):", err instanceof Error ? err.message : String(err));
695
- return 0;
699
+ return { applied: 0, failed: true };
696
700
  }
697
701
  }
698
702
  async function applyConfidenceFloorAction(directory, touched, options) {
@@ -709,7 +713,7 @@ async function applyConfidenceFloorAction(directory, touched, options) {
709
713
  const {
710
714
  readAuthoritativeKnowledgeCounterRollups,
711
715
  effectiveRetrievalOutcomes
712
- } = await import("./knowledge-events-3zv81nzp.js");
716
+ } = await import("./knowledge-events-h5d5eayv.js");
713
717
  const rollups = await readAuthoritativeKnowledgeCounterRollups(directory);
714
718
  const flagIds = new Set;
715
719
  for (const e of atFloor) {
@@ -776,11 +780,11 @@ async function applyConfidenceFloorAction(directory, touched, options) {
776
780
  });
777
781
  }
778
782
  if (action === "quarantine" && toQuarantine.length > 0) {
779
- const { quarantineEntry } = await import("./knowledge-validator-7eqj5afv.js");
780
- const { KnowledgeConfigSchema } = await import("./schema-p0vn1zgh.js");
783
+ const { quarantineEntry } = await import("./knowledge-validator-dzm9sg0f.js");
784
+ const { KnowledgeConfigSchema } = await import("./schema-ynwy7abm.js");
781
785
  let config;
782
786
  try {
783
- const { loadPluginConfigWithMeta } = await import("./index-x4rxh8j9.js");
787
+ const { loadPluginConfigWithMeta } = await import("./index-627mz27c.js");
784
788
  const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
785
789
  config = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
786
790
  } catch {
@@ -901,4 +905,4 @@ var _internals = {
901
905
  getArchivedKnowledgeIds
902
906
  };
903
907
 
904
- export { isActiveSwarmKnowledgeEntry, findActiveSwarmNearDuplicate, reinforceSwarmKnowledgeEntry, getPlatformConfigDir, resolveSwarmKnowledgePath, resolveSwarmRejectedPath, resolveSwarmRetractionsPath, resolveRewriteHistoryPath, resolveHiveKnowledgePath2 as resolveHiveKnowledgePath, resolveHiveRejectedPath2 as resolveHiveRejectedPath, resolveHiveEventsPath2 as resolveHiveEventsPath, readKnowledge, normalizeEntry, computeContentHash, readRejectedLessons, readRetractionRecords, appendRetractionRecord, appendRewriteHistory, readRewriteHistory, dedupeCapped, appendKnowledge, rewriteKnowledge, transactFile, transactKnowledge, transactKnowledgeWithCas, getArchivedKnowledgeIds, appendKnowledgeWithCapEnforcement, enforceKnowledgeCap, selectKnowledgeCapSurvivors, sweepAgedEntries, sweepStaleTodos, appendRejectedLesson, normalize, wordBigrams, jaccardBigram, findNearDuplicate, computeConfidence, MAX_CONFIRMED_BY, confirmEntriesPhase, OUTCOME_SIGNAL_SMOOTHING, computeOutcomeSignal, inferTags, bumpKnowledgeConfidenceBatch, _internals };
908
+ export { isActiveSwarmKnowledgeEntry, findActiveSwarmNearDuplicate, reinforceSwarmKnowledgeEntry, getPlatformConfigDir, resolveSwarmKnowledgePath, resolveSwarmRejectedPath, resolveSwarmRetractionsPath, resolveRewriteHistoryPath, resolveHiveKnowledgePath2 as resolveHiveKnowledgePath, resolveHiveRejectedPath2 as resolveHiveRejectedPath, resolveHiveEventsPath2 as resolveHiveEventsPath, readKnowledge, normalizeEntry, computeContentHash, readRejectedLessons, readRetractionRecords, appendRetractionRecord, appendRewriteHistory, readRewriteHistory, dedupeCapped, appendKnowledge, rewriteKnowledge, transactFile, transactKnowledge, transactKnowledgeWithCas, getArchivedKnowledgeIds, appendKnowledgeWithCapEnforcement, enforceKnowledgeCap, selectKnowledgeCapSurvivors, sweepAgedEntries, sweepStaleTodos, appendRejectedLesson, normalize, wordBigrams, jaccardBigram, findNearDuplicate, computeConfidence, MAX_CONFIRMED_BY, confirmEntriesPhase, OUTCOME_SIGNAL_SMOOTHING, computeOutcomeSignal, inferTags, bumpKnowledgeConfidenceBatch, bumpKnowledgeConfidenceBatchResult, _internals };
package/dist/cli/index.js CHANGED
@@ -11,48 +11,48 @@ import {
11
11
  readCachePackageVersion,
12
12
  resolveCommand,
13
13
  safeRealpathSync
14
- } from "./index-crpb0qke.js";
15
- import"./index-p62we2ar.js";
16
- import"./index-jpa03jcc.js";
17
- import"./index-9pmmexsd.js";
18
- import"./index-ykjjqg79.js";
19
- import"./index-y586zet4.js";
14
+ } from "./index-kztxn1ww.js";
15
+ import"./index-kpgj4ha6.js";
16
+ import"./index-2bsnwcmp.js";
17
+ import"./index-5wypz451.js";
18
+ import"./index-t6ys1386.js";
19
+ import"./index-fv5cc1rd.js";
20
20
  import"./index-134d35c1.js";
21
21
  import"./index-nj6rmyeh.js";
22
22
  import"./index-y8552snf.js";
23
- import"./index-k6h5yc1j.js";
24
- import"./index-016708th.js";
23
+ import"./index-q0gfmyzx.js";
24
+ import"./index-81n4ky69.js";
25
25
  import"./index-70ha9e09.js";
26
26
  import"./index-c8s9a3zh.js";
27
27
  import"./index-9ss2m4rs.js";
28
28
  import"./index-g8wwj0sz.js";
29
- import"./index-pgvx3rkq.js";
30
- import"./index-dmbaaz6d.js";
31
- import"./index-n96wwf56.js";
32
- import"./index-zwpttdgn.js";
29
+ import"./index-2n9rwvcc.js";
30
+ import"./index-hxqjf4me.js";
31
+ import"./index-dwg0z10h.js";
32
+ import"./index-jtnk7k6w.js";
33
33
  import"./index-rtry5xyf.js";
34
34
  import"./index-zsrtt42s.js";
35
- import"./index-d3bdr78h.js";
35
+ import"./index-ch6sjm8q.js";
36
36
  import"./index-fxvgaeq4.js";
37
- import"./index-n0fpefqx.js";
38
- import"./index-7ac5z627.js";
39
- import"./index-52gnz782.js";
40
- import"./index-h879g4r4.js";
37
+ import"./index-py2rsw1a.js";
38
+ import"./index-mfhpk4c6.js";
39
+ import"./index-c23yxr1s.js";
40
+ import"./index-f115c8y6.js";
41
41
  import"./index-556ja8an.js";
42
42
  import"./index-b43rt5ph.js";
43
43
  import"./index-q7sjgr1y.js";
44
44
  import"./index-3g0xk6tk.js";
45
45
  import"./index-85gkedsf.js";
46
- import"./index-07zgs6y0.js";
47
- import"./index-gwrv6c56.js";
48
- import"./index-rcjq8dm4.js";
46
+ import"./index-x46mmaep.js";
47
+ import"./index-w49v4xd6.js";
48
+ import"./index-shm69en5.js";
49
49
  import"./index-gprxjmm7.js";
50
50
  import"./index-n832052r.js";
51
- import"./index-ffevkn7k.js";
51
+ import"./index-k5ze5v89.js";
52
52
  import {
53
53
  init_package,
54
54
  package_default
55
- } from "./index-702zx3rk.js";
55
+ } from "./index-qwzpsh3w.js";
56
56
  import {
57
57
  DEFAULT_AGENT_CONFIGS,
58
58
  init_constants
@@ -64,12 +64,12 @@ import"./index-z6xqpmqg.js";
64
64
  import"./index-r3mvsbtq.js";
65
65
  import"./index-zjygnfay.js";
66
66
  import"./index-ae75rja9.js";
67
- import"./index-qcm97jfh.js";
68
- import"./index-7hctrdk8.js";
67
+ import"./index-qzstn430.js";
68
+ import"./index-shazb5b6.js";
69
69
  import"./index-bk5tah7q.js";
70
- import"./index-2y14mjfn.js";
71
- import"./index-6q35swn2.js";
72
- import"./index-q81s0m8k.js";
70
+ import"./index-3yh2e5ca.js";
71
+ import"./index-rsn4jm90.js";
72
+ import"./index-ghbkknjz.js";
73
73
  import"./index-7g4c7s5r.js";
74
74
  import"./index-bpmtbmy9.js";
75
75
  import"./index-ed5ykebp.js";
@@ -9,14 +9,14 @@ import {
9
9
  maybeEscalateOnViolation,
10
10
  maybeQuarantineOnContradiction,
11
11
  readRecentEscalations
12
- } from "./index-k6h5yc1j.js";
13
- import"./index-07zgs6y0.js";
14
- import"./index-gwrv6c56.js";
15
- import"./index-rcjq8dm4.js";
12
+ } from "./index-q0gfmyzx.js";
13
+ import"./index-x46mmaep.js";
14
+ import"./index-w49v4xd6.js";
15
+ import"./index-shm69en5.js";
16
16
  import"./index-gprxjmm7.js";
17
17
  import"./index-n832052r.js";
18
- import"./index-ffevkn7k.js";
19
- import"./index-702zx3rk.js";
18
+ import"./index-k5ze5v89.js";
19
+ import"./index-qwzpsh3w.js";
20
20
  import"./index-cpg98bh1.js";
21
21
  import"./index-9e6fdz2h.js";
22
22
  import"./index-4rhhvd1a.js";
@@ -25,12 +25,12 @@ import"./index-z6xqpmqg.js";
25
25
  import"./index-r3mvsbtq.js";
26
26
  import"./index-zjygnfay.js";
27
27
  import"./index-ae75rja9.js";
28
- import"./index-qcm97jfh.js";
29
- import"./index-7hctrdk8.js";
28
+ import"./index-qzstn430.js";
29
+ import"./index-shazb5b6.js";
30
30
  import"./index-bk5tah7q.js";
31
- import"./index-2y14mjfn.js";
32
- import"./index-6q35swn2.js";
33
- import"./index-q81s0m8k.js";
31
+ import"./index-3yh2e5ca.js";
32
+ import"./index-rsn4jm90.js";
33
+ import"./index-ghbkknjz.js";
34
34
  import"./index-7g4c7s5r.js";
35
35
  import"./index-bpmtbmy9.js";
36
36
  import"./index-ed5ykebp.js";
@@ -29,12 +29,12 @@ import {
29
29
  resolveKnowledgeCounterBaselinePath,
30
30
  resolveKnowledgeEventsPath,
31
31
  resolveLegacyApplicationLogPath
32
- } from "./index-gwrv6c56.js";
33
- import"./index-rcjq8dm4.js";
32
+ } from "./index-w49v4xd6.js";
33
+ import"./index-shm69en5.js";
34
34
  import"./index-gprxjmm7.js";
35
35
  import"./index-n832052r.js";
36
- import"./index-ffevkn7k.js";
37
- import"./index-702zx3rk.js";
36
+ import"./index-k5ze5v89.js";
37
+ import"./index-qwzpsh3w.js";
38
38
  import"./index-cpg98bh1.js";
39
39
  import"./index-9e6fdz2h.js";
40
40
  import"./index-4rhhvd1a.js";
@@ -43,12 +43,12 @@ import"./index-z6xqpmqg.js";
43
43
  import"./index-r3mvsbtq.js";
44
44
  import"./index-zjygnfay.js";
45
45
  import"./index-ae75rja9.js";
46
- import"./index-qcm97jfh.js";
47
- import"./index-7hctrdk8.js";
46
+ import"./index-qzstn430.js";
47
+ import"./index-shazb5b6.js";
48
48
  import"./index-bk5tah7q.js";
49
- import"./index-2y14mjfn.js";
50
- import"./index-6q35swn2.js";
51
- import"./index-q81s0m8k.js";
49
+ import"./index-3yh2e5ca.js";
50
+ import"./index-rsn4jm90.js";
51
+ import"./index-ghbkknjz.js";
52
52
  import"./index-7g4c7s5r.js";
53
53
  import"./index-bpmtbmy9.js";
54
54
  import"./index-ed5ykebp.js";
@@ -12,11 +12,11 @@ import {
12
12
  resolveLinkDir,
13
13
  sanitizeLinkId,
14
14
  writeLinkPointer
15
- } from "./index-qcm97jfh.js";
16
- import"./index-7hctrdk8.js";
17
- import"./index-2y14mjfn.js";
18
- import"./index-6q35swn2.js";
19
- import"./index-q81s0m8k.js";
15
+ } from "./index-qzstn430.js";
16
+ import"./index-shazb5b6.js";
17
+ import"./index-3yh2e5ca.js";
18
+ import"./index-rsn4jm90.js";
19
+ import"./index-ghbkknjz.js";
20
20
  import"./index-7g4c7s5r.js";
21
21
  import"./index-bpmtbmy9.js";
22
22
  import"./index-ed5ykebp.js";
@@ -9,6 +9,7 @@ import {
9
9
  appendRetractionRecord,
10
10
  appendRewriteHistory,
11
11
  bumpKnowledgeConfidenceBatch,
12
+ bumpKnowledgeConfidenceBatchResult,
12
13
  computeConfidence,
13
14
  computeContentHash,
14
15
  computeOutcomeSignal,
@@ -41,16 +42,16 @@ import {
41
42
  transactKnowledge,
42
43
  transactKnowledgeWithCas,
43
44
  wordBigrams
44
- } from "./index-07zgs6y0.js";
45
+ } from "./index-x46mmaep.js";
45
46
  import {
46
47
  resolveHiveDataDir
47
48
  } from "./index-ae75rja9.js";
48
- import"./index-qcm97jfh.js";
49
- import"./index-7hctrdk8.js";
49
+ import"./index-qzstn430.js";
50
+ import"./index-shazb5b6.js";
50
51
  import"./index-bk5tah7q.js";
51
- import"./index-2y14mjfn.js";
52
- import"./index-6q35swn2.js";
53
- import"./index-q81s0m8k.js";
52
+ import"./index-3yh2e5ca.js";
53
+ import"./index-rsn4jm90.js";
54
+ import"./index-ghbkknjz.js";
54
55
  import"./index-7g4c7s5r.js";
55
56
  import"./index-bpmtbmy9.js";
56
57
  import"./index-ed5ykebp.js";
@@ -90,6 +91,7 @@ export {
90
91
  computeOutcomeSignal,
91
92
  computeContentHash,
92
93
  computeConfidence,
94
+ bumpKnowledgeConfidenceBatchResult,
93
95
  bumpKnowledgeConfidenceBatch,
94
96
  appendRewriteHistory,
95
97
  appendRetractionRecord,
@@ -23,17 +23,17 @@ import {
23
23
  validateLesson,
24
24
  validateSkillCandidatePath,
25
25
  validateSkillPath
26
- } from "./index-n96wwf56.js";
27
- import"./index-zwpttdgn.js";
26
+ } from "./index-dwg0z10h.js";
27
+ import"./index-jtnk7k6w.js";
28
28
  import"./index-rtry5xyf.js";
29
- import"./index-07zgs6y0.js";
29
+ import"./index-x46mmaep.js";
30
30
  import"./index-ae75rja9.js";
31
- import"./index-qcm97jfh.js";
32
- import"./index-7hctrdk8.js";
31
+ import"./index-qzstn430.js";
32
+ import"./index-shazb5b6.js";
33
33
  import"./index-bk5tah7q.js";
34
- import"./index-2y14mjfn.js";
35
- import"./index-6q35swn2.js";
36
- import"./index-q81s0m8k.js";
34
+ import"./index-3yh2e5ca.js";
35
+ import"./index-rsn4jm90.js";
36
+ import"./index-ghbkknjz.js";
37
37
  import"./index-7g4c7s5r.js";
38
38
  import"./index-bpmtbmy9.js";
39
39
  import"./index-ed5ykebp.js";