opencode-swarm 7.119.0 → 7.120.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/dist/cli/{config-doctor-p73yfdz0.js → config-doctor-404c8mf8.js} +3 -3
  2. package/dist/cli/config-fingerprint-v22xh5a2.js +10 -0
  3. package/dist/cli/{core-gf1t2jmn.js → core-xnwasfpc.js} +1 -1
  4. package/dist/cli/curation-policy-re2kaysb.js +25 -0
  5. package/dist/cli/{curator-5xfkejsq.js → curator-852s9p0s.js} +30 -23
  6. package/dist/cli/{curator-drift-nn71xfz6.js → curator-drift-6b2fjsgr.js} +3 -2
  7. package/dist/cli/curator-llm-factory-5gnvggd7.js +50 -0
  8. package/dist/cli/{evidence-summary-service-cy3k37je.js → evidence-summary-service-jtx5q3r6.js} +9 -7
  9. package/dist/cli/{gate-evidence-j2m4cd85.js → gate-evidence-tbpezk28.js} +5 -5
  10. package/dist/cli/guardrail-explain-wadbhh06.js +51 -0
  11. package/dist/cli/{guardrail-log-qjqgg7pz.js → guardrail-log-dhpp0kmn.js} +4 -4
  12. package/dist/cli/{hive-promoter-03m8pwg6.js → hive-promoter-7fn55bgw.js} +30 -23
  13. package/dist/cli/index-0e1v02hq.js +343 -0
  14. package/dist/cli/{index-jbdgpqpj.js → index-0k4r8111.js} +28 -10
  15. package/dist/cli/index-0mbmfmt0.js +349 -0
  16. package/dist/cli/{index-7pspktns.js → index-1smvzr78.js} +2 -2
  17. package/dist/cli/{index-5bcrp3bc.js → index-22e127jw.js} +3 -3
  18. package/dist/cli/{index-pjhfe7c3.js → index-3366gs26.js} +43 -7
  19. package/dist/cli/{index-wpgv6hht.js → index-3jvqw5hy.js} +13 -26
  20. package/dist/cli/{index-bfwt3abw.js → index-4rhcth7a.js} +1 -1
  21. package/dist/cli/{index-n6fa2hhk.js → index-51gg9947.js} +1 -1
  22. package/dist/cli/index-69ms9ny1.js +261 -0
  23. package/dist/cli/{index-42cx6g2h.js → index-76kvm9z5.js} +1 -1
  24. package/dist/cli/{index-r2ysfdet.js → index-78b192v7.js} +7 -7
  25. package/dist/cli/{index-vwvkpg0d.js → index-816rkp4y.js} +3 -92
  26. package/dist/cli/index-89s4mhmw.js +6 -0
  27. package/dist/cli/index-9xpgytj9.js +386 -0
  28. package/dist/cli/index-ae75rja9.js +26 -0
  29. package/dist/cli/{index-mr3pnc4h.js → index-bndd885n.js} +1926 -2005
  30. package/dist/cli/index-fndvr7fr.js +135 -0
  31. package/dist/cli/index-gnp9x6se.js +93 -0
  32. package/dist/cli/{index-0pfqcjp6.js → index-h07wn84h.js} +1 -1
  33. package/dist/cli/{index-p45sshb5.js → index-j5xv8zbp.js} +17 -352
  34. package/dist/cli/{index-g2wrs7jy.js → index-kyvg2cmp.js} +1 -1
  35. package/dist/cli/{index-5hze8ztj.js → index-nhgw7de8.js} +7 -5
  36. package/dist/cli/{index-abjjn4yh.js → index-qg11yf8q.js} +4 -4
  37. package/dist/cli/index-rtry5xyf.js +27 -0
  38. package/dist/cli/{index-qx5z58a7.js → index-rywkdacj.js} +93 -11
  39. package/dist/cli/{index-pdk1n8yh.js → index-tftv9xh9.js} +44 -2
  40. package/dist/cli/{index-11q1t6g0.js → index-vqcgmy4y.js} +1 -1
  41. package/dist/cli/{index-05ee8pws.js → index-w64n2y0f.js} +32 -25
  42. package/dist/cli/{index-q4kgsvdd.js → index-wtn8wf7h.js} +1 -1
  43. package/dist/cli/{index-bcg89pt8.js → index-zvae4m8g.js} +1 -1
  44. package/dist/cli/index.js +30 -23
  45. package/dist/cli/{knowledge-escalator-gt1q632m.js → knowledge-escalator-0ejqs8c9.js} +9 -8
  46. package/dist/cli/{knowledge-events-0bjdtdsb.js → knowledge-events-wx9e37ba.js} +6 -5
  47. package/dist/cli/knowledge-link-sy85fw3w.js +37 -0
  48. package/dist/cli/{knowledge-store-fm2300xf.js → knowledge-store-rnajx33a.js} +17 -6
  49. package/dist/cli/{knowledge-validator-91kx3eqv.js → knowledge-validator-1f4mkzmc.js} +11 -7
  50. package/dist/cli/{pending-delegations-9cn17983.js → pending-delegations-0z3znsec.js} +5 -5
  51. package/dist/cli/{pr-subscriptions-8a6jwek2.js → pr-subscriptions-x653151h.js} +4 -4
  52. package/dist/cli/scan-cursor-qapm0sxj.js +25 -0
  53. package/dist/cli/{schema-7c484wjz.js → schema-vwxpsk6j.js} +2 -2
  54. package/dist/cli/{scope-persistence-fm0gzhnk.js → scope-persistence-mfr36yc9.js} +2 -2
  55. package/dist/cli/{skill-generator-3f8dqjj2.js → skill-generator-tkv7s12g.js} +12 -9
  56. package/dist/config/schema.d.ts +8 -8
  57. package/dist/hooks/curator-postmortem.d.ts +6 -4
  58. package/dist/hooks/curator.d.ts +5 -1
  59. package/dist/hooks/hive-promoter.d.ts +3 -1
  60. package/dist/hooks/knowledge-store.d.ts +54 -1
  61. package/dist/hooks/knowledge-types.d.ts +107 -2
  62. package/dist/hooks/knowledge-validator.d.ts +25 -4
  63. package/dist/index.js +387 -384
  64. package/dist/knowledge/curation-policy.d.ts +125 -0
  65. package/dist/knowledge/family-manifest.d.ts +30 -2
  66. package/dist/knowledge/family-migration.d.ts +16 -4
  67. package/dist/knowledge/scan-cursor.d.ts +107 -0
  68. package/dist/knowledge/worktree-identity.d.ts +39 -0
  69. package/dist/memory/schema.d.ts +1 -1
  70. package/dist/services/knowledge-diagnostics.d.ts +29 -0
  71. package/package.json +1 -1
  72. package/dist/cli/curator-llm-factory-rwwnmdvk.js +0 -43
  73. package/dist/cli/guardrail-explain-kacpc2zm.js +0 -44
  74. /package/dist/cli/{index-vvk2g744.js → index-7g4c7s5r.js} +0 -0
@@ -3,13 +3,13 @@ import {
3
3
  atomicWriteFile,
4
4
  taskEvidencePath,
5
5
  withTaskEvidenceLock
6
- } from "./index-0pfqcjp6.js";
7
- import {
8
- exports_external
9
- } from "./index-293f68mj.js";
6
+ } from "./index-h07wn84h.js";
10
7
  import {
11
8
  telemetry
12
9
  } from "./index-q2rrv0cy.js";
10
+ import {
11
+ exports_external
12
+ } from "./index-293f68mj.js";
13
13
 
14
14
  // src/gate-evidence.ts
15
15
  import { mkdirSync, readFileSync, realpathSync } from "fs";
@@ -0,0 +1,27 @@
1
+ // @bun
2
+ // src/knowledge/config-fingerprint.ts
3
+ import { createHash } from "crypto";
4
+ function cohortConfigFingerprint(input) {
5
+ const canonical = JSON.stringify(sortKeys(input));
6
+ return createHash("sha256").update(canonical).digest("hex").slice(0, 12);
7
+ }
8
+ function sortKeys(value) {
9
+ if (Array.isArray(value)) {
10
+ return value.map(sortKeys);
11
+ }
12
+ if (value && typeof value === "object") {
13
+ const obj = value;
14
+ const out = {};
15
+ for (const key of Object.keys(obj).sort()) {
16
+ out[key] = sortKeys(obj[key]);
17
+ }
18
+ return out;
19
+ }
20
+ return value;
21
+ }
22
+ var _internals = {
23
+ cohortConfigFingerprint,
24
+ sortKeys
25
+ };
26
+
27
+ export { cohortConfigFingerprint, _internals };
@@ -1,26 +1,28 @@
1
1
  // @bun
2
- import {
3
- isActiveStatus
4
- } from "./index-bfwt3abw.js";
5
2
  import {
6
3
  resolveHiveEventsPath,
7
4
  resolveHiveKnowledgePath,
8
- resolveHiveRejectedPath,
5
+ resolveHiveRejectedPath
6
+ } from "./index-ae75rja9.js";
7
+ import {
9
8
  resolveKnowledgeStoreDir
10
- } from "./index-wpgv6hht.js";
9
+ } from "./index-3jvqw5hy.js";
10
+ import {
11
+ isActiveStatus
12
+ } from "./index-4rhcth7a.js";
11
13
  import {
12
14
  init_logger,
13
15
  log
14
16
  } from "./index-zgwm4ryv.js";
15
17
  import {
16
18
  atomicWriteFile
17
- } from "./index-0pfqcjp6.js";
19
+ } from "./index-h07wn84h.js";
18
20
  import {
19
21
  readCachedParsedFile
20
22
  } from "./index-fsrp8wp3.js";
21
23
  import {
22
24
  require_proper_lockfile
23
- } from "./index-vvk2g744.js";
25
+ } from "./index-7g4c7s5r.js";
24
26
  import {
25
27
  __require,
26
28
  __toESM
@@ -28,6 +30,7 @@ import {
28
30
 
29
31
  // src/hooks/knowledge-store.ts
30
32
  var import_proper_lockfile = __toESM(require_proper_lockfile(), 1);
33
+ import { createHash } from "crypto";
31
34
  import { existsSync } from "fs";
32
35
  import { appendFile, mkdir, readFile } from "fs/promises";
33
36
  import * as os from "os";
@@ -90,6 +93,9 @@ function resolveSwarmRejectedPath(directory) {
90
93
  function resolveSwarmRetractionsPath(directory) {
91
94
  return path.join(resolveKnowledgeStoreDir(directory), "knowledge-retractions.jsonl");
92
95
  }
96
+ function resolveRewriteHistoryPath(directory) {
97
+ return path.join(resolveKnowledgeStoreDir(directory), "knowledge-rewrites.jsonl");
98
+ }
93
99
  var resolveHiveKnowledgePath2 = resolveHiveKnowledgePath;
94
100
  var resolveHiveRejectedPath2 = resolveHiveRejectedPath;
95
101
  var resolveHiveEventsPath2 = resolveHiveEventsPath;
@@ -196,8 +202,14 @@ function normalizeEntry(raw) {
196
202
  if (!Array.isArray(obj.tags)) {
197
203
  obj.tags = [];
198
204
  }
205
+ if (typeof obj.revision !== "number" || Number.isNaN(obj.revision)) {
206
+ obj.revision = 0;
207
+ }
199
208
  return raw;
200
209
  }
210
+ function computeContentHash(lesson) {
211
+ return createHash("sha256").update(lesson, "utf8").digest("hex").slice(0, 12);
212
+ }
201
213
  async function readRejectedLessons(directory) {
202
214
  return readKnowledge(resolveSwarmRejectedPath(directory));
203
215
  }
@@ -207,6 +219,19 @@ async function readRetractionRecords(directory) {
207
219
  async function appendRetractionRecord(directory, record) {
208
220
  await appendKnowledge(resolveSwarmRetractionsPath(directory), record);
209
221
  }
222
+ async function appendRewriteHistory(directory, record) {
223
+ const filePath = resolveRewriteHistoryPath(directory);
224
+ const MAX_REWRITE_HISTORY = 2000;
225
+ await transactKnowledge(filePath, (entries) => {
226
+ const next = [...entries, record];
227
+ return next.length > MAX_REWRITE_HISTORY ? next.slice(next.length - MAX_REWRITE_HISTORY) : next;
228
+ }).catch((err) => {
229
+ log(`[knowledge-store] appendRewriteHistory failed (non-blocking): ${String(err)}`);
230
+ });
231
+ }
232
+ async function readRewriteHistory(directory) {
233
+ return readKnowledge(resolveRewriteHistoryPath(directory));
234
+ }
210
235
  async function appendKnowledge(filePath, entry) {
211
236
  const dir = path.dirname(filePath);
212
237
  await mkdir(dir, { recursive: true });
@@ -282,6 +307,45 @@ async function transactKnowledge(filePath, mutate) {
282
307
  await atomicWriteFile(fp, content);
283
308
  }, mutate);
284
309
  }
310
+ async function transactKnowledgeWithCas(directory, filePath, entryId, expectedRevision, expectedContentHash, apply) {
311
+ let committed = false;
312
+ let casFailed = false;
313
+ const rewrote = await transactKnowledge(filePath, (entries) => {
314
+ const idx = entries.findIndex((e) => e?.id === entryId);
315
+ if (idx === -1)
316
+ return null;
317
+ const entry = entries[idx];
318
+ if (expectedRevision !== undefined && (entry.revision ?? 0) !== expectedRevision) {
319
+ casFailed = true;
320
+ return null;
321
+ }
322
+ if (expectedContentHash !== undefined && (entry.content_hash ?? "") !== expectedContentHash) {
323
+ casFailed = true;
324
+ return null;
325
+ }
326
+ const result = apply(entry);
327
+ if (result === null)
328
+ return null;
329
+ const stamped = {
330
+ ...result.mutated,
331
+ revision: (entry.revision ?? 0) + 1,
332
+ updated_at: new Date().toISOString()
333
+ };
334
+ if (typeof stamped.lesson === "string") {
335
+ stamped.content_hash = computeContentHash(stamped.lesson);
336
+ }
337
+ if (result.rewriteHistory) {
338
+ queueMicrotask(() => {
339
+ appendRewriteHistory(directory, result.rewriteHistory).catch(() => {});
340
+ });
341
+ }
342
+ const next = entries.slice();
343
+ next[idx] = stamped;
344
+ committed = true;
345
+ return next;
346
+ });
347
+ return { committed: committed && rewrote, casFailed };
348
+ }
285
349
  async function getArchivedKnowledgeIds(directory) {
286
350
  const archived = new Set;
287
351
  const swarmPath = resolveSwarmKnowledgePath(directory);
@@ -583,7 +647,7 @@ async function applyConfidenceFloorAction(directory, touched, options) {
583
647
  const recovered = touched.filter((e) => e.confidence > CONFIDENCE_FLOOR + FLOOR_EPSILON && e.confidence_floor_demoted);
584
648
  if (atFloor.length === 0 && recovered.length === 0)
585
649
  return;
586
- const { readKnowledgeCounterRollups, effectiveRetrievalOutcomes } = await import("./knowledge-events-0bjdtdsb.js");
650
+ const { readKnowledgeCounterRollups, effectiveRetrievalOutcomes } = await import("./knowledge-events-wx9e37ba.js");
587
651
  const rollups = await readKnowledgeCounterRollups(directory);
588
652
  const flagIds = new Set;
589
653
  for (const e of atFloor) {
@@ -650,9 +714,27 @@ async function applyConfidenceFloorAction(directory, touched, options) {
650
714
  });
651
715
  }
652
716
  if (action === "quarantine" && toQuarantine.length > 0) {
653
- const { quarantineEntry } = await import("./knowledge-validator-91kx3eqv.js");
717
+ const { quarantineEntry } = await import("./knowledge-validator-1f4mkzmc.js");
718
+ const { KnowledgeConfigSchema } = await import("./schema-vwxpsk6j.js");
719
+ let config;
720
+ try {
721
+ const { loadPluginConfigWithMeta } = await import("./index-fndvr7fr.js");
722
+ const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
723
+ config = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
724
+ } catch {
725
+ config = KnowledgeConfigSchema.parse({});
726
+ }
654
727
  for (const { id } of toQuarantine) {
655
- await quarantineEntry(directory, id, "confidence_floor_negative_outcome", "auto").catch((err) => {
728
+ await quarantineEntry(directory, id, "confidence_floor_negative_outcome", "auto", {
729
+ input: {
730
+ directory,
731
+ action: "quarantine",
732
+ entryId: id,
733
+ reason: "confidence_floor_negative_outcome",
734
+ evidenceScope: "cohort-wide"
735
+ },
736
+ context: { config, entry: null }
737
+ }).catch((err) => {
656
738
  log("[knowledge-store] confidence-floor quarantine failed (best-effort):", err instanceof Error ? err.message : String(err));
657
739
  });
658
740
  }
@@ -733,4 +815,4 @@ var _internals = {
733
815
  getArchivedKnowledgeIds
734
816
  };
735
817
 
736
- export { findActiveSwarmNearDuplicate, reinforceSwarmKnowledgeEntry, getPlatformConfigDir, resolveSwarmKnowledgePath, resolveSwarmRejectedPath, resolveSwarmRetractionsPath, resolveHiveKnowledgePath2 as resolveHiveKnowledgePath, resolveHiveRejectedPath2 as resolveHiveRejectedPath, resolveHiveEventsPath2 as resolveHiveEventsPath, readKnowledge, normalizeEntry, readRejectedLessons, readRetractionRecords, appendRetractionRecord, appendKnowledge, rewriteKnowledge, transactFile, transactKnowledge, getArchivedKnowledgeIds, appendKnowledgeWithCapEnforcement, enforceKnowledgeCap, selectKnowledgeCapSurvivors, sweepAgedEntries, sweepStaleTodos, appendRejectedLesson, normalize, wordBigrams, jaccardBigram, findNearDuplicate, computeConfidence, MAX_CONFIRMED_BY, confirmEntriesPhase, OUTCOME_SIGNAL_SMOOTHING, computeOutcomeSignal, inferTags, bumpKnowledgeConfidenceBatch, _internals };
818
+ export { findActiveSwarmNearDuplicate, reinforceSwarmKnowledgeEntry, getPlatformConfigDir, resolveSwarmKnowledgePath, resolveSwarmRejectedPath, resolveSwarmRetractionsPath, resolveRewriteHistoryPath, resolveHiveKnowledgePath2 as resolveHiveKnowledgePath, resolveHiveRejectedPath2 as resolveHiveRejectedPath, resolveHiveEventsPath2 as resolveHiveEventsPath, readKnowledge, normalizeEntry, computeContentHash, readRejectedLessons, readRetractionRecords, appendRetractionRecord, appendRewriteHistory, readRewriteHistory, 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 };
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  OUTCOME_BLOCK_THRESHOLD
4
- } from "./index-bfwt3abw.js";
4
+ } from "./index-4rhcth7a.js";
5
5
  import {
6
6
  exports_external
7
7
  } from "./index-293f68mj.js";
@@ -882,6 +882,30 @@ var SKILL_TOOL_NAMES = [
882
882
  var SKILL_AGENT_TOOL_MAP = {
883
883
  architect: [...SKILL_TOOL_NAMES]
884
884
  };
885
+ var DEFAULT_MODELS = {
886
+ explorer: "opencode/big-pickle",
887
+ coder: "opencode/minimax-m2.5-free",
888
+ reviewer: "opencode/big-pickle",
889
+ test_engineer: "opencode/gpt-5-nano",
890
+ sme: "opencode/big-pickle",
891
+ researcher: "opencode/big-pickle",
892
+ critic: "opencode/big-pickle",
893
+ critic_sounding_board: "opencode/gpt-5-nano",
894
+ critic_drift_verifier: "opencode/gpt-5-nano",
895
+ critic_hallucination_verifier: "opencode/gpt-5-nano",
896
+ critic_oversight: "opencode/gpt-5-nano",
897
+ critic_architecture_supervisor: "opencode/big-pickle",
898
+ docs: "opencode/big-pickle",
899
+ docs_design: "opencode/big-pickle",
900
+ designer: "opencode/big-pickle",
901
+ curator_init: "opencode/gpt-5-nano",
902
+ curator_phase: "opencode/gpt-5-nano",
903
+ curator_postmortem: "opencode/gpt-5-nano",
904
+ curator_consolidation: "opencode/gpt-5-nano",
905
+ skill_improver: "opencode/big-pickle",
906
+ spec_writer: "opencode/big-pickle",
907
+ default: "opencode/big-pickle"
908
+ };
885
909
  var DEFAULT_AGENT_CONFIGS = {
886
910
  coder: {
887
911
  model: "opencode/minimax-m2.5-free",
@@ -968,6 +992,24 @@ var DEFAULT_AGENT_CONFIGS = {
968
992
  fallback_models: ["opencode/gpt-5-nano"]
969
993
  }
970
994
  };
995
+ function isQAAgent(name) {
996
+ return QA_AGENTS.includes(name);
997
+ }
998
+ function isSubagent(name) {
999
+ return ALL_SUBAGENT_NAMES.includes(name);
1000
+ }
1001
+ var DEFAULT_WORKTREE_ISOLATION_CONFIG = {
1002
+ policy: "auto",
1003
+ merge_strategy: "merge",
1004
+ worktree_dir: undefined,
1005
+ deps_strategy: "skip",
1006
+ serialization_release_after_dispatches: 5,
1007
+ serialization_release_after_ms: 60000,
1008
+ runtime_isolation: {
1009
+ enabled: false,
1010
+ port_stride: 1
1011
+ }
1012
+ };
971
1013
 
972
1014
  // src/config/schema.ts
973
1015
  var _internals = {
@@ -2418,4 +2460,4 @@ var PluginConfigSchema = exports_external.object({
2418
2460
  skills: SkillsConfigSchema.optional()
2419
2461
  });
2420
2462
 
2421
- export { ORCHESTRATOR_NAME, ALL_SUBAGENT_NAMES, ALL_AGENT_NAMES, TOOL_NAMES, TOOL_NAME_SET, AGENT_TOOL_MAP, DEFAULT_AGENT_CONFIGS, _internals, isKnownCanonicalRole, getCanonicalAgentRole, resolveGeneratedAgentRole, stripKnownSwarmPrefix, AgentReasoningConfigSchema, AgentThinkingConfigSchema, AgentOverrideConfigSchema, SwarmConfigSchema, ModelPricingConfigSchema, PricingConfigSchema, HooksConfigSchema, ScoringWeightsSchema, DecisionDecaySchema, TokenRatiosSchema, ScoringConfigSchema, ContextBudgetConfigSchema, EvidenceConfigSchema, GateFeatureSchema, PlaceholderScanConfigSchema, QualityBudgetConfigSchema, GATE_CONFIG_KNOWN_SECTION_KEYS, GateConfigSchema, PipelineConfigSchema, PhaseCompleteConfigSchema, SummaryConfigSchema, ReviewPassesConfigSchema, AutoReviewConfigSchema, AdversarialDetectionConfigSchema, AdversarialTestingConfigSchema, IntegrationAnalysisConfigSchema, DocsConfigSchema, DesignDocsConfigSchema, UIReviewConfigSchema, CompactionAdvisoryConfigSchema, LintConfigSchema, SecretscanConfigSchema, GuardrailsProfileSchema, DEFAULT_AGENT_PROFILES, DEFAULT_ARCHITECT_PROFILE, GuardrailsConfigSchema, WatchdogConfigSchema, SelfReviewConfigSchema, resolveGuardrailsConfig, ToolFilterConfigSchema, PlanCursorConfigSchema, ContextMapConfigSchema, RepoGraphConfigSchema, CheckpointConfigSchema, ApplyPatchConfigSchema, AutomationModeSchema, AutomationCapabilitiesSchema, AutomationConfigSchema, KnowledgeConfigSchema, MemoryConfigSchema, CuratorConfigSchema, ArchitecturalSupervisionConfigSchema, KnowledgeApplicationConfigSchema, SkillPropagationConfigSchema, SkillImproverConfigSchema, SkillsConfigSchema, SpecWriterConfigSchema, SlopDetectorConfigSchema, IncrementalVerifyConfigSchema, CompactionConfigSchema, PrmConfigSchema, AgentAuthorityRuleSchema, AuthorityConfigSchema, GeneralCouncilConfigSchema, CouncilConfigSchema, PrMonitorConfigSchema, ParallelizationConfigSchema, WorktreeIsolationConfigSchema, LeanTurboConfigSchema, EpicConfigSchema, StandardTurboConfigSchema, LeanTurboStrategyConfigSchema, TurboConfigSchema, ExternalSkillCandidateSourceTypeSchema, ExternalSkillCandidateEvaluationVerdictSchema, DiscoverySourceSchema, ExternalSkillCandidateSchema, ExternalSkillsConfigSchema, DEFAULT_EXTERNAL_SKILLS_CONFIG, DEFAULT_SKILLS_CONFIG, resolveExternalSkillsConfig, PluginConfigSchema };
2463
+ export { QA_AGENTS, PIPELINE_AGENTS, ORCHESTRATOR_NAME, ALL_SUBAGENT_NAMES, ALL_AGENT_NAMES, TOOL_NAMES, TOOL_NAME_SET, AGENT_TOOL_MAP, DEFAULT_MODELS, DEFAULT_AGENT_CONFIGS, isQAAgent, isSubagent, DEFAULT_WORKTREE_ISOLATION_CONFIG, _internals, isKnownCanonicalRole, getCanonicalAgentRole, resolveGeneratedAgentRole, stripKnownSwarmPrefix, AgentReasoningConfigSchema, AgentThinkingConfigSchema, AgentOverrideConfigSchema, SwarmConfigSchema, ModelPricingConfigSchema, PricingConfigSchema, HooksConfigSchema, ScoringWeightsSchema, DecisionDecaySchema, TokenRatiosSchema, ScoringConfigSchema, ContextBudgetConfigSchema, EvidenceConfigSchema, GateFeatureSchema, PlaceholderScanConfigSchema, QualityBudgetConfigSchema, GATE_CONFIG_KNOWN_SECTION_KEYS, GateConfigSchema, PipelineConfigSchema, PhaseCompleteConfigSchema, SummaryConfigSchema, ReviewPassesConfigSchema, AutoReviewConfigSchema, AdversarialDetectionConfigSchema, AdversarialTestingConfigSchema, IntegrationAnalysisConfigSchema, DocsConfigSchema, DesignDocsConfigSchema, UIReviewConfigSchema, CompactionAdvisoryConfigSchema, LintConfigSchema, SecretscanConfigSchema, GuardrailsProfileSchema, DEFAULT_AGENT_PROFILES, DEFAULT_ARCHITECT_PROFILE, GuardrailsConfigSchema, WatchdogConfigSchema, SelfReviewConfigSchema, resolveGuardrailsConfig, ToolFilterConfigSchema, PlanCursorConfigSchema, ContextMapConfigSchema, RepoGraphConfigSchema, CheckpointConfigSchema, ApplyPatchConfigSchema, AutomationModeSchema, AutomationCapabilitiesSchema, AutomationConfigSchema, KnowledgeConfigSchema, MemoryConfigSchema, CuratorConfigSchema, ArchitecturalSupervisionConfigSchema, KnowledgeApplicationConfigSchema, SkillPropagationConfigSchema, SkillImproverConfigSchema, SkillsConfigSchema, SpecWriterConfigSchema, SlopDetectorConfigSchema, IncrementalVerifyConfigSchema, CompactionConfigSchema, PrmConfigSchema, AgentAuthorityRuleSchema, AuthorityConfigSchema, GeneralCouncilConfigSchema, CouncilConfigSchema, PrMonitorConfigSchema, ParallelizationConfigSchema, WorktreeIsolationConfigSchema, LeanTurboConfigSchema, EpicConfigSchema, StandardTurboConfigSchema, LeanTurboStrategyConfigSchema, TurboConfigSchema, ExternalSkillCandidateSourceTypeSchema, ExternalSkillCandidateEvaluationVerdictSchema, DiscoverySourceSchema, ExternalSkillCandidateSchema, ExternalSkillsConfigSchema, DEFAULT_EXTERNAL_SKILLS_CONFIG, DEFAULT_SKILLS_CONFIG, resolveExternalSkillsConfig, PluginConfigSchema };
@@ -5,7 +5,7 @@ import {
5
5
  GateConfigSchema,
6
6
  PluginConfigSchema,
7
7
  stripKnownSwarmPrefix
8
- } from "./index-pdk1n8yh.js";
8
+ } from "./index-tftv9xh9.js";
9
9
  import {
10
10
  log
11
11
  } from "./index-zgwm4ryv.js";
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailExplain
4
- } from "./index-7pspktns.js";
4
+ } from "./index-1smvzr78.js";
5
5
  import {
6
6
  handleGuardrailLog
7
- } from "./index-bcg89pt8.js";
7
+ } from "./index-zvae4m8g.js";
8
8
  import {
9
9
  COMMAND_REGISTRY,
10
10
  SWARM_COMMAND_TOOL_ALLOWLIST,
@@ -83,45 +83,52 @@ import {
83
83
  handleWriteRetroCommand,
84
84
  normalizeSwarmCommandInput,
85
85
  resolveCommand
86
- } from "./index-mr3pnc4h.js";
86
+ } from "./index-bndd885n.js";
87
+ import"./index-kyvg2cmp.js";
88
+ import"./index-vqcgmy4y.js";
89
+ import"./index-j5xv8zbp.js";
90
+ import"./index-4905hd2m.js";
87
91
  import"./index-nprawcc0.js";
88
- import"./index-g2wrs7jy.js";
92
+ import"./index-78b192v7.js";
93
+ import"./index-0k4r8111.js";
94
+ import"./index-0e1v02hq.js";
95
+ import"./index-vxv732ex.js";
89
96
  import"./index-c8s9a3zh.js";
90
- import"./index-11q1t6g0.js";
97
+ import"./index-816rkp4y.js";
98
+ import"./index-22e127jw.js";
99
+ import"./index-3366gs26.js";
100
+ import"./index-69ms9ny1.js";
101
+ import"./index-rtry5xyf.js";
102
+ import"./index-rywkdacj.js";
103
+ import"./index-nhgw7de8.js";
104
+ import"./index-ae75rja9.js";
105
+ import"./index-3jvqw5hy.js";
106
+ import"./index-9xpgytj9.js";
107
+ import"./index-0mbmfmt0.js";
108
+ import"./index-gnp9x6se.js";
91
109
  import {
92
110
  AGENT_TOOL_MAP,
93
111
  ORCHESTRATOR_NAME,
94
112
  stripKnownSwarmPrefix
95
- } from "./index-pdk1n8yh.js";
96
- import"./index-p45sshb5.js";
97
- import"./index-vwvkpg0d.js";
98
- import"./index-4905hd2m.js";
99
- import"./index-5bcrp3bc.js";
100
- import"./index-r2ysfdet.js";
101
- import"./index-pjhfe7c3.js";
102
- import"./index-jbdgpqpj.js";
103
- import"./index-5hze8ztj.js";
104
- import"./index-qx5z58a7.js";
105
- import"./index-bfwt3abw.js";
106
- import"./index-wpgv6hht.js";
107
- import"./index-vxv732ex.js";
113
+ } from "./index-tftv9xh9.js";
114
+ import"./index-4rhcth7a.js";
108
115
  import"./index-8fwhhayc.js";
109
116
  import"./index-q1exe2b3.js";
110
- import"./index-n6fa2hhk.js";
111
- import"./index-q4kgsvdd.js";
117
+ import"./index-51gg9947.js";
118
+ import"./index-wtn8wf7h.js";
112
119
  import"./index-ye3fndsw.js";
113
120
  import"./index-kzj3fp7c.js";
114
121
  import"./index-5e4e2hvv.js";
115
122
  import"./index-p0arc26j.js";
116
123
  import"./index-zgwm4ryv.js";
117
124
  import"./index-dqh3zhhc.js";
118
- import"./index-abjjn4yh.js";
119
- import"./index-0pfqcjp6.js";
120
- import"./index-293f68mj.js";
121
- import"./index-42cx6g2h.js";
125
+ import"./index-qg11yf8q.js";
126
+ import"./index-h07wn84h.js";
127
+ import"./index-76kvm9z5.js";
122
128
  import"./index-fsrp8wp3.js";
123
129
  import"./index-q2rrv0cy.js";
124
- import"./index-vvk2g744.js";
130
+ import"./index-293f68mj.js";
131
+ import"./index-7g4c7s5r.js";
125
132
  import"./index-qe3v54nb.js";
126
133
  import"./index-a76rekgs.js";
127
134
  // src/commands/command-names.ts
@@ -37,7 +37,7 @@ var _internals = {
37
37
  symlinkSync: fs.symlinkSync
38
38
  },
39
39
  writeScopeToDisk: async (directory, taskId, files) => {
40
- const { writeScopeToDisk: realWrite } = await import("./scope-persistence-fm0gzhnk.js");
40
+ const { writeScopeToDisk: realWrite } = await import("./scope-persistence-mfr36yc9.js");
41
41
  return realWrite(directory, taskId, files);
42
42
  },
43
43
  writeLaneProfileToDisk: async (_worktreePath, _laneIndex, _envOverrides) => {
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  redactPath,
4
4
  redactShellCommand
5
- } from "./index-g2wrs7jy.js";
5
+ } from "./index-kyvg2cmp.js";
6
6
 
7
7
  // src/services/guardrail-log-service.ts
8
8
  import * as fs from "fs/promises";
package/dist/cli/index.js CHANGED
@@ -7,43 +7,50 @@ import {
7
7
  getPluginLockFilePaths,
8
8
  package_default,
9
9
  resolveCommand
10
- } from "./index-mr3pnc4h.js";
10
+ } from "./index-bndd885n.js";
11
+ import"./index-kyvg2cmp.js";
12
+ import"./index-vqcgmy4y.js";
13
+ import"./index-j5xv8zbp.js";
14
+ import"./index-4905hd2m.js";
11
15
  import"./index-nprawcc0.js";
12
- import"./index-g2wrs7jy.js";
16
+ import"./index-78b192v7.js";
17
+ import"./index-0k4r8111.js";
18
+ import"./index-0e1v02hq.js";
19
+ import"./index-vxv732ex.js";
13
20
  import"./index-c8s9a3zh.js";
14
- import"./index-11q1t6g0.js";
21
+ import"./index-816rkp4y.js";
22
+ import"./index-22e127jw.js";
23
+ import"./index-3366gs26.js";
24
+ import"./index-69ms9ny1.js";
25
+ import"./index-rtry5xyf.js";
26
+ import"./index-rywkdacj.js";
27
+ import"./index-nhgw7de8.js";
28
+ import"./index-ae75rja9.js";
29
+ import"./index-3jvqw5hy.js";
30
+ import"./index-9xpgytj9.js";
31
+ import"./index-0mbmfmt0.js";
32
+ import"./index-gnp9x6se.js";
15
33
  import {
16
34
  DEFAULT_AGENT_CONFIGS
17
- } from "./index-pdk1n8yh.js";
18
- import"./index-p45sshb5.js";
19
- import"./index-vwvkpg0d.js";
20
- import"./index-4905hd2m.js";
21
- import"./index-5bcrp3bc.js";
22
- import"./index-r2ysfdet.js";
23
- import"./index-pjhfe7c3.js";
24
- import"./index-jbdgpqpj.js";
25
- import"./index-5hze8ztj.js";
26
- import"./index-qx5z58a7.js";
27
- import"./index-bfwt3abw.js";
28
- import"./index-wpgv6hht.js";
29
- import"./index-vxv732ex.js";
35
+ } from "./index-tftv9xh9.js";
36
+ import"./index-4rhcth7a.js";
30
37
  import"./index-8fwhhayc.js";
31
38
  import"./index-q1exe2b3.js";
32
- import"./index-n6fa2hhk.js";
33
- import"./index-q4kgsvdd.js";
39
+ import"./index-51gg9947.js";
40
+ import"./index-wtn8wf7h.js";
34
41
  import"./index-ye3fndsw.js";
35
42
  import"./index-kzj3fp7c.js";
36
43
  import"./index-5e4e2hvv.js";
37
44
  import"./index-p0arc26j.js";
38
45
  import"./index-zgwm4ryv.js";
39
46
  import"./index-dqh3zhhc.js";
40
- import"./index-abjjn4yh.js";
41
- import"./index-0pfqcjp6.js";
42
- import"./index-293f68mj.js";
43
- import"./index-42cx6g2h.js";
47
+ import"./index-qg11yf8q.js";
48
+ import"./index-h07wn84h.js";
49
+ import"./index-76kvm9z5.js";
44
50
  import"./index-fsrp8wp3.js";
45
51
  import"./index-q2rrv0cy.js";
46
- import"./index-vvk2g744.js";
52
+ import"./index-293f68mj.js";
53
+ import"./index-7g4c7s5r.js";
47
54
  import"./index-qe3v54nb.js";
48
55
  import"./index-a76rekgs.js";
49
56
 
@@ -8,17 +8,18 @@ import {
8
8
  maybeEscalateOnViolation,
9
9
  maybeQuarantineOnContradiction,
10
10
  readRecentEscalations
11
- } from "./index-jbdgpqpj.js";
12
- import"./index-5hze8ztj.js";
13
- import"./index-qx5z58a7.js";
14
- import"./index-bfwt3abw.js";
15
- import"./index-wpgv6hht.js";
11
+ } from "./index-0k4r8111.js";
12
+ import"./index-rywkdacj.js";
13
+ import"./index-nhgw7de8.js";
14
+ import"./index-ae75rja9.js";
15
+ import"./index-3jvqw5hy.js";
16
+ import"./index-4rhcth7a.js";
16
17
  import"./index-zgwm4ryv.js";
17
- import"./index-0pfqcjp6.js";
18
- import"./index-42cx6g2h.js";
18
+ import"./index-h07wn84h.js";
19
+ import"./index-76kvm9z5.js";
19
20
  import"./index-fsrp8wp3.js";
20
21
  import"./index-q2rrv0cy.js";
21
- import"./index-vvk2g744.js";
22
+ import"./index-7g4c7s5r.js";
22
23
  import"./index-qe3v54nb.js";
23
24
  import"./index-a76rekgs.js";
24
25
  export {
@@ -25,14 +25,15 @@ import {
25
25
  resolveKnowledgeCounterBaselinePath,
26
26
  resolveKnowledgeEventsPath,
27
27
  resolveLegacyApplicationLogPath
28
- } from "./index-5hze8ztj.js";
29
- import"./index-wpgv6hht.js";
28
+ } from "./index-nhgw7de8.js";
29
+ import"./index-ae75rja9.js";
30
+ import"./index-3jvqw5hy.js";
30
31
  import"./index-zgwm4ryv.js";
31
- import"./index-0pfqcjp6.js";
32
- import"./index-42cx6g2h.js";
32
+ import"./index-h07wn84h.js";
33
+ import"./index-76kvm9z5.js";
33
34
  import"./index-fsrp8wp3.js";
34
35
  import"./index-q2rrv0cy.js";
35
- import"./index-vvk2g744.js";
36
+ import"./index-7g4c7s5r.js";
36
37
  import"./index-qe3v54nb.js";
37
38
  import"./index-a76rekgs.js";
38
39
  export {
@@ -0,0 +1,37 @@
1
+ // @bun
2
+ import {
3
+ LINK_POINTER_FILENAME,
4
+ _internals,
5
+ getLinkedLocalKnowledgeStatus,
6
+ invalidateKnowledgeStoreDirCache,
7
+ isLinked,
8
+ readLinkPointer,
9
+ removeLinkPointer,
10
+ resolveKnowledgeStoreDir,
11
+ resolveLinkBaseDir,
12
+ resolveLinkDir,
13
+ sanitizeLinkId,
14
+ writeLinkPointer
15
+ } from "./index-3jvqw5hy.js";
16
+ import"./index-zgwm4ryv.js";
17
+ import"./index-h07wn84h.js";
18
+ import"./index-76kvm9z5.js";
19
+ import"./index-fsrp8wp3.js";
20
+ import"./index-q2rrv0cy.js";
21
+ import"./index-7g4c7s5r.js";
22
+ import"./index-qe3v54nb.js";
23
+ import"./index-a76rekgs.js";
24
+ export {
25
+ writeLinkPointer,
26
+ sanitizeLinkId,
27
+ resolveLinkDir,
28
+ resolveLinkBaseDir,
29
+ resolveKnowledgeStoreDir,
30
+ removeLinkPointer,
31
+ readLinkPointer,
32
+ isLinked,
33
+ invalidateKnowledgeStoreDirCache,
34
+ getLinkedLocalKnowledgeStatus,
35
+ _internals,
36
+ LINK_POINTER_FILENAME
37
+ };
@@ -7,8 +7,10 @@ import {
7
7
  appendKnowledgeWithCapEnforcement,
8
8
  appendRejectedLesson,
9
9
  appendRetractionRecord,
10
+ appendRewriteHistory,
10
11
  bumpKnowledgeConfidenceBatch,
11
12
  computeConfidence,
13
+ computeContentHash,
12
14
  computeOutcomeSignal,
13
15
  confirmEntriesPhase,
14
16
  enforceKnowledgeCap,
@@ -22,9 +24,11 @@ import {
22
24
  readKnowledge,
23
25
  readRejectedLessons,
24
26
  readRetractionRecords,
27
+ readRewriteHistory,
25
28
  resolveHiveEventsPath,
26
29
  resolveHiveKnowledgePath,
27
30
  resolveHiveRejectedPath,
31
+ resolveRewriteHistoryPath,
28
32
  resolveSwarmKnowledgePath,
29
33
  resolveSwarmRejectedPath,
30
34
  resolveSwarmRetractionsPath,
@@ -34,22 +38,25 @@ import {
34
38
  sweepStaleTodos,
35
39
  transactFile,
36
40
  transactKnowledge,
41
+ transactKnowledgeWithCas,
37
42
  wordBigrams
38
- } from "./index-qx5z58a7.js";
39
- import"./index-bfwt3abw.js";
43
+ } from "./index-rywkdacj.js";
40
44
  import {
41
45
  resolveHiveDataDir
42
- } from "./index-wpgv6hht.js";
46
+ } from "./index-ae75rja9.js";
47
+ import"./index-3jvqw5hy.js";
48
+ import"./index-4rhcth7a.js";
43
49
  import"./index-zgwm4ryv.js";
44
- import"./index-0pfqcjp6.js";
45
- import"./index-42cx6g2h.js";
50
+ import"./index-h07wn84h.js";
51
+ import"./index-76kvm9z5.js";
46
52
  import"./index-fsrp8wp3.js";
47
53
  import"./index-q2rrv0cy.js";
48
- import"./index-vvk2g744.js";
54
+ import"./index-7g4c7s5r.js";
49
55
  import"./index-qe3v54nb.js";
50
56
  import"./index-a76rekgs.js";
51
57
  export {
52
58
  wordBigrams,
59
+ transactKnowledgeWithCas,
53
60
  transactKnowledge,
54
61
  transactFile,
55
62
  sweepStaleTodos,
@@ -59,10 +66,12 @@ export {
59
66
  resolveSwarmRetractionsPath,
60
67
  resolveSwarmRejectedPath,
61
68
  resolveSwarmKnowledgePath,
69
+ resolveRewriteHistoryPath,
62
70
  resolveHiveRejectedPath,
63
71
  resolveHiveKnowledgePath,
64
72
  resolveHiveEventsPath,
65
73
  resolveHiveDataDir,
74
+ readRewriteHistory,
66
75
  readRetractionRecords,
67
76
  readRejectedLessons,
68
77
  readKnowledge,
@@ -76,8 +85,10 @@ export {
76
85
  enforceKnowledgeCap,
77
86
  confirmEntriesPhase,
78
87
  computeOutcomeSignal,
88
+ computeContentHash,
79
89
  computeConfidence,
80
90
  bumpKnowledgeConfidenceBatch,
91
+ appendRewriteHistory,
81
92
  appendRetractionRecord,
82
93
  appendRejectedLesson,
83
94
  appendKnowledgeWithCapEnforcement,