opencode-swarm 7.114.5 → 7.114.7

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.
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  createCuratorLLMDelegate
4
- } from "./index-fc35yaah.js";
4
+ } from "./index-6ctejje2.js";
5
5
  import"./index-yfedche9.js";
6
6
  import"./index-c8s9a3zh.js";
7
7
  import"./index-9bsmzfk3.js";
@@ -10,11 +10,11 @@ import"./index-f6y341yk.js";
10
10
  import"./index-scww5b77.js";
11
11
  import"./index-ga4ta3cr.js";
12
12
  import"./index-80jkseqw.js";
13
- import"./index-mr4whary.js";
14
- import"./index-43khae15.js";
15
- import"./index-h7q1bvzm.js";
16
- import"./index-qzqx2qky.js";
17
- import"./index-0q7rrh59.js";
13
+ import"./index-vjvdvjd3.js";
14
+ import"./index-qrnhvhmg.js";
15
+ import"./index-7stsmndb.js";
16
+ import"./index-kjbfry6m.js";
17
+ import"./index-91qesget.js";
18
18
  import"./index-bfwt3abw.js";
19
19
  import"./index-g40r5d08.js";
20
20
  import"./index-vxv732ex.js";
@@ -14,7 +14,7 @@ import {
14
14
  runCuratorInit,
15
15
  runCuratorPhase,
16
16
  writeCuratorSummary
17
- } from "./index-fc35yaah.js";
17
+ } from "./index-6ctejje2.js";
18
18
  import"./index-yfedche9.js";
19
19
  import"./index-c8s9a3zh.js";
20
20
  import"./index-9bsmzfk3.js";
@@ -23,11 +23,11 @@ import"./index-f6y341yk.js";
23
23
  import"./index-scww5b77.js";
24
24
  import"./index-ga4ta3cr.js";
25
25
  import"./index-80jkseqw.js";
26
- import"./index-mr4whary.js";
27
- import"./index-43khae15.js";
28
- import"./index-h7q1bvzm.js";
29
- import"./index-qzqx2qky.js";
30
- import"./index-0q7rrh59.js";
26
+ import"./index-vjvdvjd3.js";
27
+ import"./index-qrnhvhmg.js";
28
+ import"./index-7stsmndb.js";
29
+ import"./index-kjbfry6m.js";
30
+ import"./index-91qesget.js";
31
31
  import"./index-bfwt3abw.js";
32
32
  import"./index-g40r5d08.js";
33
33
  import"./index-vxv732ex.js";
@@ -1,8 +1,8 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailExplain
4
- } from "./index-s8se9nt5.js";
5
- import"./index-fc35yaah.js";
4
+ } from "./index-gmjrwz34.js";
5
+ import"./index-6ctejje2.js";
6
6
  import"./index-yfedche9.js";
7
7
  import"./index-c8s9a3zh.js";
8
8
  import"./index-9bsmzfk3.js";
@@ -11,11 +11,11 @@ import"./index-f6y341yk.js";
11
11
  import"./index-scww5b77.js";
12
12
  import"./index-ga4ta3cr.js";
13
13
  import"./index-80jkseqw.js";
14
- import"./index-mr4whary.js";
15
- import"./index-43khae15.js";
16
- import"./index-h7q1bvzm.js";
17
- import"./index-qzqx2qky.js";
18
- import"./index-0q7rrh59.js";
14
+ import"./index-vjvdvjd3.js";
15
+ import"./index-qrnhvhmg.js";
16
+ import"./index-7stsmndb.js";
17
+ import"./index-kjbfry6m.js";
18
+ import"./index-91qesget.js";
19
19
  import"./index-bfwt3abw.js";
20
20
  import"./index-g40r5d08.js";
21
21
  import"./index-vxv732ex.js";
@@ -6,7 +6,7 @@ import {
6
6
  isHiveEligible,
7
7
  promoteFromSwarm,
8
8
  promoteToHive
9
- } from "./index-fc35yaah.js";
9
+ } from "./index-6ctejje2.js";
10
10
  import"./index-yfedche9.js";
11
11
  import"./index-c8s9a3zh.js";
12
12
  import"./index-9bsmzfk3.js";
@@ -15,11 +15,11 @@ import"./index-f6y341yk.js";
15
15
  import"./index-scww5b77.js";
16
16
  import"./index-ga4ta3cr.js";
17
17
  import"./index-80jkseqw.js";
18
- import"./index-mr4whary.js";
19
- import"./index-43khae15.js";
20
- import"./index-h7q1bvzm.js";
21
- import"./index-qzqx2qky.js";
22
- import"./index-0q7rrh59.js";
18
+ import"./index-vjvdvjd3.js";
19
+ import"./index-qrnhvhmg.js";
20
+ import"./index-7stsmndb.js";
21
+ import"./index-kjbfry6m.js";
22
+ import"./index-91qesget.js";
23
23
  import"./index-bfwt3abw.js";
24
24
  import"./index-g40r5d08.js";
25
25
  import"./index-vxv732ex.js";
@@ -111,7 +111,7 @@ import {
111
111
  retireSkill,
112
112
  selectCandidateEntries,
113
113
  syncBundledProjectSkillsIfMissingAsync
114
- } from "./index-mr4whary.js";
114
+ } from "./index-vjvdvjd3.js";
115
115
  import {
116
116
  appendUnactionable,
117
117
  quarantineEntry,
@@ -121,10 +121,10 @@ import {
121
121
  validateActionability,
122
122
  validateActionableFields,
123
123
  validateLesson
124
- } from "./index-43khae15.js";
124
+ } from "./index-qrnhvhmg.js";
125
125
  import {
126
126
  readRecentEscalations
127
- } from "./index-h7q1bvzm.js";
127
+ } from "./index-7stsmndb.js";
128
128
  import {
129
129
  effectiveRetrievalOutcomes,
130
130
  readKnowledgeCounterRollups,
@@ -132,7 +132,7 @@ import {
132
132
  recordHiveKnowledgeEvent,
133
133
  recordKnowledgeEvent,
134
134
  resolveKnowledgeEventsPath
135
- } from "./index-qzqx2qky.js";
135
+ } from "./index-kjbfry6m.js";
136
136
  import {
137
137
  appendKnowledge,
138
138
  appendRejectedLesson,
@@ -156,7 +156,7 @@ import {
156
156
  rewriteKnowledge,
157
157
  transactFile,
158
158
  transactKnowledge
159
- } from "./index-0q7rrh59.js";
159
+ } from "./index-91qesget.js";
160
160
  import {
161
161
  KNOWLEDGE_SCHEMA_VERSION,
162
162
  OUTCOME_BLOCK_THRESHOLD,
@@ -474,6 +474,7 @@ init_logger();
474
474
 
475
475
  // src/hooks/delegation-gate/worktree-isolation.ts
476
476
  init_executor();
477
+ init_logger();
477
478
  // src/worktree/merge.ts
478
479
  var _internals4 = {
479
480
  bunSpawn,
@@ -7718,6 +7719,7 @@ async function writeArchiveTombstoneAndInvalidateSkills(ctx) {
7718
7719
  }
7719
7720
 
7720
7721
  // src/hooks/skill-usage-log.ts
7722
+ init_logger();
7721
7723
  import * as crypto2 from "crypto";
7722
7724
  import * as fs5 from "fs";
7723
7725
  import * as path15 from "path";
@@ -8125,7 +8127,7 @@ async function resolveSourceKnowledgeIds(directory, skillPath) {
8125
8127
  const content = _internals10.readFileSync(absolute, "utf-8");
8126
8128
  return parseGeneratedFromKnowledge(content);
8127
8129
  } catch (err) {
8128
- console.warn("[skill-usage-log] resolveSourceKnowledgeIds failed (fail-open):", err instanceof Error ? err.message : String(err));
8130
+ log("[skill-usage-log] resolveSourceKnowledgeIds failed (fail-open):", err instanceof Error ? err.message : String(err));
8129
8131
  return [];
8130
8132
  }
8131
8133
  }
@@ -8220,7 +8222,7 @@ async function applySkillUsageFeedback(directory, options) {
8220
8222
  appendFeedbackAppliedMarker(directory, processedEntryIds);
8221
8223
  }
8222
8224
  } catch (err) {
8223
- console.warn("[skill-usage-log] applySkillUsageFeedback failed (fail-open):", err instanceof Error ? err.message : String(err));
8225
+ log("[skill-usage-log] applySkillUsageFeedback failed (fail-open):", err instanceof Error ? err.message : String(err));
8224
8226
  }
8225
8227
  return { processed, bumps };
8226
8228
  }
@@ -9190,7 +9192,7 @@ async function runCuratorPhase(directory, phase, agentsDispatched, config, knowl
9190
9192
  }
9191
9193
  if (config.skill_generation_enabled === true && skillCandidates.length > 0) {
9192
9194
  try {
9193
- const skillModule = await import("./skill-generator-z01sjppf.js");
9195
+ const skillModule = await import("./skill-generator-w6qd9mde.js");
9194
9196
  for (const cand of skillCandidates) {
9195
9197
  if (cand.confidence < (config.min_skill_confidence ?? DEFAULT_SKILL_MIN_CONFIDENCE)) {
9196
9198
  continue;
@@ -9471,7 +9473,7 @@ async function applyCuratorKnowledgeUpdates(directory, recommendations, knowledg
9471
9473
  } catch {}
9472
9474
  }
9473
9475
  if (contradictedEntries.length > 0 && knowledgeConfig.contradiction_threshold_action === "quarantine") {
9474
- const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-0q1p6br7.js");
9476
+ const { maybeQuarantineOnContradiction } = await import("./knowledge-escalator-qn7ew687.js");
9475
9477
  for (const { id } of contradictedEntries) {
9476
9478
  try {
9477
9479
  await maybeQuarantineOnContradiction(directory, id, knowledgeConfig.contradiction_quarantine_threshold, knowledgeConfig.contradiction_quarantine_window_days);
@@ -10432,11 +10434,11 @@ var _internals12 = {
10432
10434
  return KnowledgeConfigSchema2.parse({});
10433
10435
  },
10434
10436
  applyCuratorKnowledgeUpdates: async (directory, recommendations, knowledgeConfig) => {
10435
- const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-2cnthj9n.js");
10437
+ const { applyCuratorKnowledgeUpdates: applyCuratorKnowledgeUpdates2 } = await import("./curator-qshyr2tc.js");
10436
10438
  return applyCuratorKnowledgeUpdates2(directory, recommendations, knowledgeConfig);
10437
10439
  },
10438
10440
  checkHivePromotions: async (entries, knowledgeConfig) => {
10439
- const { checkHivePromotions } = await import("./hive-promoter-n9qt3sth.js");
10441
+ const { checkHivePromotions } = await import("./hive-promoter-5ngbmnrw.js");
10440
10442
  return checkHivePromotions(entries, knowledgeConfig);
10441
10443
  },
10442
10444
  applyProposalTriage: async (directory, triage) => {
@@ -10445,7 +10447,7 @@ var _internals12 = {
10445
10447
  activateProposal,
10446
10448
  listSkills: listSkills2,
10447
10449
  sanitizeSlug
10448
- } = await import("./skill-generator-z01sjppf.js");
10450
+ } = await import("./skill-generator-w6qd9mde.js");
10449
10451
  const result = {
10450
10452
  approved: [],
10451
10453
  rejected: [],
@@ -17597,8 +17599,8 @@ var _internals24 = {
17597
17599
  loadCuratorDeps: async () => {
17598
17600
  const [{ CuratorConfigSchema }, curator, { createCuratorLLMDelegate: createCuratorLLMDelegate2 }] = await Promise.all([
17599
17601
  import("./schema-aymfdrsb.js"),
17600
- import("./curator-2cnthj9n.js"),
17601
- import("./curator-llm-factory-asqhpq08.js")
17602
+ import("./curator-qshyr2tc.js"),
17603
+ import("./curator-llm-factory-2xgznxyw.js")
17602
17604
  ]);
17603
17605
  return { CuratorConfigSchema, curator, createCuratorLLMDelegate: createCuratorLLMDelegate2 };
17604
17606
  }
@@ -18094,7 +18096,7 @@ import { fileURLToPath } from "url";
18094
18096
  // package.json
18095
18097
  var package_default = {
18096
18098
  name: "opencode-swarm",
18097
- version: "7.114.5",
18099
+ version: "7.114.7",
18098
18100
  description: "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
18099
18101
  main: "dist/index.js",
18100
18102
  types: "dist/index.d.ts",
@@ -30405,6 +30407,7 @@ import * as path58 from "path";
30405
30407
  // src/prm/trajectory-store.ts
30406
30408
  import * as fs25 from "fs/promises";
30407
30409
  import * as path56 from "path";
30410
+ init_logger();
30408
30411
  var MAX_TRACKED_TRAJECTORY_SESSIONS = 500;
30409
30412
  function getTrajectoryPath(sessionId, directory) {
30410
30413
  const relativePath = path56.join("trajectories", `${sessionId}.jsonl`);
@@ -30452,7 +30455,7 @@ async function readTrajectory(sessionId, directory) {
30452
30455
  if (err.code === "ENOENT") {
30453
30456
  return [];
30454
30457
  }
30455
- console.warn(`[trajectory-store] Failed to read trajectory: ${err}`);
30458
+ log(`[trajectory-store] Failed to read trajectory: ${err}`);
30456
30459
  return [];
30457
30460
  }
30458
30461
  }
@@ -30891,9 +30894,13 @@ function detectPatterns(trajectory, config, lastProcessedStep = 0) {
30891
30894
  patternsChecked: 5
30892
30895
  };
30893
30896
  }
30897
+ // src/prm/index.ts
30898
+ init_logger();
30899
+
30894
30900
  // src/prm/replay.ts
30895
30901
  import { promises as fs26 } from "fs";
30896
30902
  import path57 from "path";
30903
+ init_logger();
30897
30904
  function isPathSafe(targetPath, basePath) {
30898
30905
  const resolvedTarget = path57.resolve(targetPath);
30899
30906
  const resolvedBase = path57.resolve(basePath);
@@ -30920,20 +30927,20 @@ async function startReplayRecording(sessionID, directory) {
30920
30927
  const filename = `${safeSessionID}-${Date.now()}.jsonl`;
30921
30928
  const filepath = path57.join(replayDir, filename);
30922
30929
  if (!isPathSafe(filepath, replayDir)) {
30923
- console.warn(`[replay] Invalid path detected - path traversal attempt blocked for session ${sessionID}`);
30930
+ advisoryWarn(`[replay] Invalid path detected - path traversal attempt blocked for session ${sessionID}`);
30924
30931
  return null;
30925
30932
  }
30926
30933
  await fs26.mkdir(replayDir, { recursive: true });
30927
30934
  return filepath;
30928
30935
  } catch (err) {
30929
- console.warn(`[replay] Failed to start recording for session ${sessionID}: ${err}`);
30936
+ log(`[replay] Failed to start recording for session ${sessionID}: ${err}`);
30930
30937
  return null;
30931
30938
  }
30932
30939
  }
30933
30940
  async function recordReplayEntry(artifactPath, sessionID, entry) {
30934
30941
  try {
30935
30942
  if (!isWithinReplaysDir(artifactPath)) {
30936
- console.warn(`[replay] Invalid artifact path - not within .swarm/replays/: ${artifactPath}`);
30943
+ log(`[replay] Invalid artifact path - not within .swarm/replays/: ${artifactPath}`);
30937
30944
  return;
30938
30945
  }
30939
30946
  const fullEntry = {
@@ -30945,7 +30952,7 @@ async function recordReplayEntry(artifactPath, sessionID, entry) {
30945
30952
  `;
30946
30953
  await fs26.appendFile(artifactPath, line, "utf-8");
30947
30954
  } catch (err) {
30948
- console.warn(`[replay] Failed to record entry: ${err}`);
30955
+ log(`[replay] Failed to record entry: ${err}`);
30949
30956
  }
30950
30957
  }
30951
30958
 
@@ -32211,6 +32218,7 @@ function getCompactionMetrics(sessionId) {
32211
32218
  }
32212
32219
 
32213
32220
  // src/services/context-budget-service.ts
32221
+ init_logger();
32214
32222
  var DEFAULT_CONTEXT_BUDGET_CONFIG = {
32215
32223
  enabled: true,
32216
32224
  budgetTokens: 40000,
@@ -32984,7 +32992,7 @@ function buildDetailedHelp(commandName, entry) {
32984
32992
  async function handleHelpCommand(ctx) {
32985
32993
  const targetCommand = ctx.args.join(" ");
32986
32994
  if (!targetCommand) {
32987
- const { buildHelpText } = await import("./index-s0h4kf1t.js");
32995
+ const { buildHelpText } = await import("./index-z01r5483.js");
32988
32996
  return buildHelpText();
32989
32997
  }
32990
32998
  const tokens = targetCommand.split(/\s+/);
@@ -32993,7 +33001,7 @@ async function handleHelpCommand(ctx) {
32993
33001
  return _internals49.buildDetailedHelp(resolved.key, resolved.entry);
32994
33002
  }
32995
33003
  const similar = _internals49.findSimilarCommands(targetCommand);
32996
- const { buildHelpText: fullHelp } = await import("./index-s0h4kf1t.js");
33004
+ const { buildHelpText: fullHelp } = await import("./index-z01r5483.js");
32997
33005
  if (similar.length > 0) {
32998
33006
  return `Command '/swarm ${targetCommand}' not found.
32999
33007
 
@@ -33126,7 +33134,7 @@ var COMMAND_REGISTRY = {
33126
33134
  },
33127
33135
  "guardrail explain": {
33128
33136
  handler: async (ctx) => {
33129
- const { handleGuardrailExplain } = await import("./guardrail-explain-xt6skemq.js");
33137
+ const { handleGuardrailExplain } = await import("./guardrail-explain-4t8fnysh.js");
33130
33138
  return handleGuardrailExplain(ctx.directory, ctx.args);
33131
33139
  },
33132
33140
  description: "Dry-run: show what the guardrails would do to a command or write target (executes nothing)",
@@ -33136,7 +33144,7 @@ var COMMAND_REGISTRY = {
33136
33144
  },
33137
33145
  "guardrail-explain": {
33138
33146
  handler: async (ctx) => {
33139
- const { handleGuardrailExplain } = await import("./guardrail-explain-xt6skemq.js");
33147
+ const { handleGuardrailExplain } = await import("./guardrail-explain-4t8fnysh.js");
33140
33148
  return handleGuardrailExplain(ctx.directory, ctx.args);
33141
33149
  },
33142
33150
  description: "Dry-run: show what the guardrails would do to a command or write target (executes nothing)",
@@ -38380,7 +38388,7 @@ async function maybeSuggestWorktreeLink(directory, sessionId) {
38380
38388
  return;
38381
38389
  const worktrees = await countWorktrees(directory);
38382
38390
  if (worktrees > 1) {
38383
- console.warn(`[opencode-swarm] Detected ${worktrees} git worktrees of this repo. ` + "Run `/swarm link` in each to share swarm knowledge across them " + "(or `/swarm link <name>` to share with similar projects).");
38391
+ advisoryWarn(`[opencode-swarm] Detected ${worktrees} git worktrees of this repo. ` + "Run `/swarm link` in each to share swarm knowledge across them " + "(or `/swarm link <name>` to share with similar projects).");
38384
38392
  }
38385
38393
  } catch {}
38386
38394
  }
@@ -4,7 +4,7 @@ import {
4
4
  countEntryViolationsInWindow,
5
5
  readKnowledgeEvents,
6
6
  recordKnowledgeEvent
7
- } from "./index-qzqx2qky.js";
7
+ } from "./index-kjbfry6m.js";
8
8
  import {
9
9
  jaccardBigram,
10
10
  readKnowledge,
@@ -12,7 +12,7 @@ import {
12
12
  resolveSwarmKnowledgePath,
13
13
  transactKnowledge,
14
14
  wordBigrams
15
- } from "./index-0q7rrh59.js";
15
+ } from "./index-91qesget.js";
16
16
  import {
17
17
  isActiveStatus
18
18
  } from "./index-bfwt3abw.js";
@@ -188,7 +188,7 @@ async function maybeQuarantineOnContradiction(directory, entryId, threshold, win
188
188
  alreadyInactive: true
189
189
  };
190
190
  }
191
- const { quarantineEntry } = await import("./knowledge-validator-csay9wqj.js");
191
+ const { quarantineEntry } = await import("./knowledge-validator-2knz0d2t.js");
192
192
  await quarantineEntry(directory, entryId, `repeat_contradiction: ${count} contradicted events in ${windowDays}d`, "auto");
193
193
  return { quarantined: true, entryId, contradictionsInWindow: count };
194
194
  } catch {
@@ -8,6 +8,10 @@ import {
8
8
  import {
9
9
  readCachedParsedFile
10
10
  } from "./index-jtqkh8jf.js";
11
+ import {
12
+ init_logger,
13
+ log
14
+ } from "./index-zgwm4ryv.js";
11
15
  import {
12
16
  atomicWriteFile
13
17
  } from "./index-0p660a87.js";
@@ -25,6 +29,7 @@ import { existsSync } from "fs";
25
29
  import { appendFile, mkdir, readFile } from "fs/promises";
26
30
  import * as os from "os";
27
31
  import * as path from "path";
32
+ init_logger();
28
33
 
29
34
  // src/hooks/knowledge-reinforcement.ts
30
35
  function isActiveSwarmKnowledgeEntry(entry) {
@@ -115,7 +120,7 @@ function parseKnowledgeContent(content, max) {
115
120
  try {
116
121
  results.push(normalizeEntry(JSON.parse(trimmed)));
117
122
  } catch {
118
- console.warn(`[knowledge-store] Skipping corrupted JSONL line: ${trimmed.slice(0, 80)}`);
123
+ log(`[knowledge-store] Skipping corrupted JSONL line: ${trimmed.slice(0, 80)}`);
119
124
  }
120
125
  }
121
126
  return results;
@@ -573,10 +578,10 @@ async function bumpKnowledgeConfidenceBatch(directory, deltas, options) {
573
578
  touchedHive.push(...await applyConfidenceDeltas(hivePath, hiveOnly));
574
579
  }
575
580
  await applyConfidenceFloorAction(directory, [...touchedSwarm, ...touchedHive], options).catch((err) => {
576
- console.warn("[knowledge-store] confidence-floor action sweep failed (best-effort):", err instanceof Error ? err.message : String(err));
581
+ log("[knowledge-store] confidence-floor action sweep failed (best-effort):", err instanceof Error ? err.message : String(err));
577
582
  });
578
583
  } catch (err) {
579
- console.warn("[knowledge-store] bumpKnowledgeConfidenceBatch failed (fail-open):", err instanceof Error ? err.message : String(err));
584
+ log("[knowledge-store] bumpKnowledgeConfidenceBatch failed (fail-open):", err instanceof Error ? err.message : String(err));
580
585
  }
581
586
  }
582
587
  async function applyConfidenceFloorAction(directory, touched, options) {
@@ -590,7 +595,7 @@ async function applyConfidenceFloorAction(directory, touched, options) {
590
595
  const recovered = touched.filter((e) => e.confidence > CONFIDENCE_FLOOR + FLOOR_EPSILON && e.confidence_floor_demoted);
591
596
  if (atFloor.length === 0 && recovered.length === 0)
592
597
  return;
593
- const { readKnowledgeCounterRollups, effectiveRetrievalOutcomes } = await import("./knowledge-events-9518gzsp.js");
598
+ const { readKnowledgeCounterRollups, effectiveRetrievalOutcomes } = await import("./knowledge-events-k2xsz5bh.js");
594
599
  const rollups = await readKnowledgeCounterRollups(directory);
595
600
  const flagIds = new Set;
596
601
  for (const e of atFloor) {
@@ -626,7 +631,7 @@ async function applyConfidenceFloorAction(directory, touched, options) {
626
631
  }
627
632
  return swarmEntries;
628
633
  }).catch((err) => {
629
- console.warn("[knowledge-store] confidence-floor swarm flag transaction failed (best-effort):", err instanceof Error ? err.message : String(err));
634
+ log("[knowledge-store] confidence-floor swarm flag transaction failed (best-effort):", err instanceof Error ? err.message : String(err));
630
635
  });
631
636
  const hiveFlagIds = new Set;
632
637
  for (const e of atFloor) {
@@ -653,14 +658,14 @@ async function applyConfidenceFloorAction(directory, touched, options) {
653
658
  }
654
659
  return hiveEntries;
655
660
  }).catch((err) => {
656
- console.warn("[knowledge-store] confidence-floor hive flag transaction failed (best-effort):", err instanceof Error ? err.message : String(err));
661
+ log("[knowledge-store] confidence-floor hive flag transaction failed (best-effort):", err instanceof Error ? err.message : String(err));
657
662
  });
658
663
  }
659
664
  if (action === "quarantine" && toQuarantine.length > 0) {
660
- const { quarantineEntry } = await import("./knowledge-validator-csay9wqj.js");
665
+ const { quarantineEntry } = await import("./knowledge-validator-2knz0d2t.js");
661
666
  for (const { id } of toQuarantine) {
662
667
  await quarantineEntry(directory, id, "confidence_floor_negative_outcome", "auto").catch((err) => {
663
- console.warn("[knowledge-store] confidence-floor quarantine failed (best-effort):", err instanceof Error ? err.message : String(err));
668
+ log("[knowledge-store] confidence-floor quarantine failed (best-effort):", err instanceof Error ? err.message : String(err));
664
669
  });
665
670
  }
666
671
  }
@@ -701,7 +706,7 @@ async function applyConfidenceDeltas(filePath, deltas) {
701
706
  await atomicWriteFile(filePath, content);
702
707
  }
703
708
  } catch (err) {
704
- console.warn(`[knowledge-store] applyConfidenceDeltas failed on ${filePath} (fail-open):`, err instanceof Error ? err.message : String(err));
709
+ log(`[knowledge-store] applyConfidenceDeltas failed on ${filePath} (fail-open):`, err instanceof Error ? err.message : String(err));
705
710
  } finally {
706
711
  if (release) {
707
712
  try {
@@ -12,7 +12,7 @@ import {
12
12
  detectPosixWrites,
13
13
  detectWindowsWrites,
14
14
  resolveWriteTargets
15
- } from "./index-fc35yaah.js";
15
+ } from "./index-6ctejje2.js";
16
16
  import {
17
17
  checkFileAuthority,
18
18
  classifyFile,
@@ -594,7 +594,7 @@ async function applyKnowledgeVerdictFeedback(directory, options) {
594
594
  deltas.push({ id, delta });
595
595
  }
596
596
  if (deltas.length > 0) {
597
- const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-k5rab79h.js");
597
+ const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-ksa1dr2z.js");
598
598
  await bumpKnowledgeConfidenceBatch(directory, deltas, options?.floorOptions);
599
599
  }
600
600
  return {
@@ -6,7 +6,7 @@ import {
6
6
  resolveSwarmKnowledgePath,
7
7
  resolveSwarmRejectedPath,
8
8
  transactKnowledge
9
- } from "./index-0q7rrh59.js";
9
+ } from "./index-91qesget.js";
10
10
  import {
11
11
  resolveKnowledgeStoreDir
12
12
  } from "./index-g40r5d08.js";
@@ -2,18 +2,18 @@
2
2
  import {
3
3
  ALLOWED_SKILL_PATH_PREFIXES,
4
4
  validateSkillPath
5
- } from "./index-43khae15.js";
5
+ } from "./index-qrnhvhmg.js";
6
6
  import {
7
7
  effectiveRetrievalOutcomes,
8
8
  readKnowledgeCounterRollups
9
- } from "./index-qzqx2qky.js";
9
+ } from "./index-kjbfry6m.js";
10
10
  import {
11
11
  computeOutcomeSignal,
12
12
  readKnowledge,
13
13
  resolveHiveKnowledgePath,
14
14
  resolveSwarmKnowledgePath,
15
15
  transactKnowledge
16
- } from "./index-0q7rrh59.js";
16
+ } from "./index-91qesget.js";
17
17
  import {
18
18
  isActiveStatus
19
19
  } from "./index-bfwt3abw.js";
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailExplain
4
- } from "./index-s8se9nt5.js";
4
+ } from "./index-gmjrwz34.js";
5
5
  import {
6
6
  handleGuardrailLog
7
7
  } from "./index-7jmrbp68.js";
@@ -81,7 +81,7 @@ import {
81
81
  handleWriteRetroCommand,
82
82
  normalizeSwarmCommandInput,
83
83
  resolveCommand
84
- } from "./index-fc35yaah.js";
84
+ } from "./index-6ctejje2.js";
85
85
  import"./index-yfedche9.js";
86
86
  import"./index-c8s9a3zh.js";
87
87
  import"./index-9bsmzfk3.js";
@@ -94,11 +94,11 @@ import"./index-f6y341yk.js";
94
94
  import"./index-scww5b77.js";
95
95
  import"./index-ga4ta3cr.js";
96
96
  import"./index-80jkseqw.js";
97
- import"./index-mr4whary.js";
98
- import"./index-43khae15.js";
99
- import"./index-h7q1bvzm.js";
100
- import"./index-qzqx2qky.js";
101
- import"./index-0q7rrh59.js";
97
+ import"./index-vjvdvjd3.js";
98
+ import"./index-qrnhvhmg.js";
99
+ import"./index-7stsmndb.js";
100
+ import"./index-kjbfry6m.js";
101
+ import"./index-91qesget.js";
102
102
  import"./index-bfwt3abw.js";
103
103
  import"./index-g40r5d08.js";
104
104
  import"./index-vxv732ex.js";
package/dist/cli/index.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  getPluginLockFilePaths,
8
8
  package_default,
9
9
  resolveCommand
10
- } from "./index-fc35yaah.js";
10
+ } from "./index-6ctejje2.js";
11
11
  import"./index-yfedche9.js";
12
12
  import"./index-c8s9a3zh.js";
13
13
  import"./index-9bsmzfk3.js";
@@ -18,11 +18,11 @@ import"./index-f6y341yk.js";
18
18
  import"./index-scww5b77.js";
19
19
  import"./index-ga4ta3cr.js";
20
20
  import"./index-80jkseqw.js";
21
- import"./index-mr4whary.js";
22
- import"./index-43khae15.js";
23
- import"./index-h7q1bvzm.js";
24
- import"./index-qzqx2qky.js";
25
- import"./index-0q7rrh59.js";
21
+ import"./index-vjvdvjd3.js";
22
+ import"./index-qrnhvhmg.js";
23
+ import"./index-7stsmndb.js";
24
+ import"./index-kjbfry6m.js";
25
+ import"./index-91qesget.js";
26
26
  import"./index-bfwt3abw.js";
27
27
  import"./index-g40r5d08.js";
28
28
  import"./index-vxv732ex.js";
@@ -8,9 +8,9 @@ import {
8
8
  maybeEscalateOnViolation,
9
9
  maybeQuarantineOnContradiction,
10
10
  readRecentEscalations
11
- } from "./index-h7q1bvzm.js";
12
- import"./index-qzqx2qky.js";
13
- import"./index-0q7rrh59.js";
11
+ } from "./index-7stsmndb.js";
12
+ import"./index-kjbfry6m.js";
13
+ import"./index-91qesget.js";
14
14
  import"./index-bfwt3abw.js";
15
15
  import"./index-g40r5d08.js";
16
16
  import"./index-jtqkh8jf.js";
@@ -25,7 +25,7 @@ import {
25
25
  resolveKnowledgeCounterBaselinePath,
26
26
  resolveKnowledgeEventsPath,
27
27
  resolveLegacyApplicationLogPath
28
- } from "./index-qzqx2qky.js";
28
+ } from "./index-kjbfry6m.js";
29
29
  import"./index-g40r5d08.js";
30
30
  import"./index-zgwm4ryv.js";
31
31
  import"./index-0p660a87.js";
@@ -34,7 +34,7 @@ import {
34
34
  transactFile,
35
35
  transactKnowledge,
36
36
  wordBigrams
37
- } from "./index-0q7rrh59.js";
37
+ } from "./index-91qesget.js";
38
38
  import"./index-bfwt3abw.js";
39
39
  import"./index-g40r5d08.js";
40
40
  import"./index-jtqkh8jf.js";
@@ -22,8 +22,8 @@ import {
22
22
  validateLesson,
23
23
  validateSkillCandidatePath,
24
24
  validateSkillPath
25
- } from "./index-43khae15.js";
26
- import"./index-0q7rrh59.js";
25
+ } from "./index-qrnhvhmg.js";
26
+ import"./index-91qesget.js";
27
27
  import"./index-bfwt3abw.js";
28
28
  import"./index-g40r5d08.js";
29
29
  import"./index-jtqkh8jf.js";
@@ -33,10 +33,10 @@ import {
33
33
  sanitizeSlug,
34
34
  selectCandidateEntries,
35
35
  writeEvalStub
36
- } from "./index-mr4whary.js";
37
- import"./index-43khae15.js";
38
- import"./index-qzqx2qky.js";
39
- import"./index-0q7rrh59.js";
36
+ } from "./index-vjvdvjd3.js";
37
+ import"./index-qrnhvhmg.js";
38
+ import"./index-kjbfry6m.js";
39
+ import"./index-91qesget.js";
40
40
  import"./index-bfwt3abw.js";
41
41
  import"./index-g40r5d08.js";
42
42
  import"./index-jtqkh8jf.js";