opencode-swarm 7.143.0 → 7.143.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/.opencode/skills/loop/SKILL.md +4 -2
  2. package/dist/cli/ast-diff-ypptrcan.js +422 -0
  3. package/dist/cli/{config-doctor-t1r5qwxk.js → config-doctor-xadt4kv5.js} +4 -4
  4. package/dist/cli/{core-e30p4vz9.js → core-vpefadja.js} +4 -4
  5. package/dist/cli/curation-policy-pkb2eeb1.js +1 -1
  6. package/dist/cli/{curator-drift-49p3jnte.js → curator-drift-2jbjv03a.js} +6 -6
  7. package/dist/cli/{curator-llm-factory-y9xg7k6k.js → curator-llm-factory-xjw5j2jj.js} +36 -35
  8. package/dist/cli/{curator-ctasdmmq.js → curator-wahbxxw9.js} +36 -35
  9. package/dist/cli/{dispatch-rd10kdk1.js → dispatch-1y1rnv1h.js} +3 -3
  10. package/dist/cli/{evidence-summary-service-7bmg5r8y.js → evidence-summary-service-m0jes2yb.js} +16 -16
  11. package/dist/cli/{gate-evidence-1v0cj4c6.js → gate-evidence-sf9hbhm0.js} +9 -9
  12. package/dist/cli/{guardrail-explain-6x9psbwz.js → guardrail-explain-9vdjkz5x.js} +37 -36
  13. package/dist/cli/{guardrail-log-pma4m8vr.js → guardrail-log-xr0cv07v.js} +6 -6
  14. package/dist/cli/{hive-promoter-g16grej1.js → hive-promoter-ften3m3h.js} +36 -35
  15. package/dist/cli/{index-6texwk9p.js → index-2pxq133w.js} +5 -5
  16. package/dist/cli/{index-9v53ez3a.js → index-4g1bnzma.js} +4 -4
  17. package/dist/cli/{runtime-ykafcwc6.js → index-5n69863d.js} +2 -10
  18. package/dist/cli/{index-m4v9kab1.js → index-6f80e8r5.js} +355 -357
  19. package/dist/cli/{index-x6qq39e9.js → index-6hwedxn7.js} +10 -10
  20. package/dist/cli/{index-q8st0mtw.js → index-6q3wx600.js} +1 -1
  21. package/dist/cli/{index-fhxh447f.js → index-700yppfy.js} +15 -15
  22. package/dist/cli/{index-htmsm37t.js → index-7e91cs99.js} +5 -5
  23. package/dist/cli/index-7sy3aa9m.js +115 -0
  24. package/dist/cli/{index-7c4bxgdh.js → index-8aabbfhv.js} +5 -5
  25. package/dist/cli/{index-n96ay8w4.js → index-8hxbjgyk.js} +5 -5
  26. package/dist/cli/{index-ebwznsfy.js → index-b6e016tv.js} +1 -1
  27. package/dist/cli/{index-keskta0w.js → index-fq0b44vq.js} +8 -8
  28. package/dist/cli/{index-82m5kwtd.js → index-gdd4jt6b.js} +4 -4
  29. package/dist/cli/{index-1g473508.js → index-h5fmwg5b.js} +43 -42
  30. package/dist/cli/{index-28jr28fg.js → index-je3jmcc1.js} +9 -9
  31. package/dist/cli/{index-fprxtq3q.js → index-jvbqryky.js} +32 -32
  32. package/dist/cli/{index-qwm6vdyv.js → index-k3cxyk66.js} +1 -1
  33. package/dist/cli/{index-15h4dpsn.js → index-kc9tfc7e.js} +5 -5
  34. package/dist/cli/{index-sb16w4wj.js → index-kjgma6hg.js} +6 -6
  35. package/dist/cli/{index-g0pbvfhw.js → index-nvt1152n.js} +56 -21
  36. package/dist/cli/{index-336ra397.js → index-qswsp6s3.js} +5 -5
  37. package/dist/cli/{index-96h1v2jw.js → index-r0j1sh38.js} +1 -1
  38. package/dist/cli/{index-k46me75h.js → index-rn0eq85g.js} +1 -1
  39. package/dist/cli/{index-2n8y67b4.js → index-x0ja3n3g.js} +2 -2
  40. package/dist/cli/{index-s89y08tk.js → index-xacfcpyn.js} +2 -2
  41. package/dist/cli/{index-r0tn9kpa.js → index-yr997mhn.js} +4 -4
  42. package/dist/cli/{index-kxpz3ncd.js → index-yw4atzww.js} +1 -1
  43. package/dist/cli/index.js +45 -41
  44. package/dist/cli/{knowledge-escalator-1b2hmcgn.js → knowledge-escalator-9xesv2xx.js} +15 -15
  45. package/dist/cli/{knowledge-events-vx4fqjzb.js → knowledge-events-s8nvbdyk.js} +13 -13
  46. package/dist/cli/knowledge-link-fn5j3r4q.js +1 -1
  47. package/dist/cli/{knowledge-store-t2qyr4yr.js → knowledge-store-2zt0b10b.js} +3 -3
  48. package/dist/cli/{knowledge-validator-c7871bjc.js → knowledge-validator-nt955tw0.js} +4 -4
  49. package/dist/cli/{pending-delegations-0hb97ps1.js → pending-delegations-b3pt3w5w.js} +5 -5
  50. package/dist/cli/{pr-subscriptions-b63t252j.js → pr-subscriptions-jyav582d.js} +5 -5
  51. package/dist/cli/{runner-hrg7h2h4.js → runner-pde6b5sx.js} +2 -2
  52. package/dist/cli/runtime-te94z1zb.js +23 -0
  53. package/dist/cli/{scan-cursor-pnbpfjjc.js → scan-cursor-emrg35t0.js} +4 -4
  54. package/dist/cli/{schema-47xpcghn.js → schema-tpbz8f0x.js} +1 -1
  55. package/dist/cli/{scope-persistence-wxx1jpfw.js → scope-persistence-1hf839ys.js} +9 -9
  56. package/dist/cli/semantic-classifier-ygqk0me1.js +147 -0
  57. package/dist/cli/{skill-generator-s456hfta.js → skill-generator-fja22m4q.js} +16 -16
  58. package/dist/cli/{worktree-collision-ownership-ymdxetnn.js → worktree-collision-ownership-bfz3drxm.js} +6 -6
  59. package/dist/cli/{worktree-isolation-d0xgp705.js → worktree-isolation-gnqvy10j.js} +38 -37
  60. package/dist/cli/{worktree-provisioning-owner-sjh7te1h.js → worktree-provisioning-owner-g24xd417.js} +4 -4
  61. package/dist/commands/registry.d.ts +1 -1
  62. package/dist/config/constants.d.ts +2 -2
  63. package/dist/hooks/delegation-gate.d.ts +19 -2
  64. package/dist/index.js +379 -370
  65. package/dist/parallel/review-router.d.ts +16 -0
  66. package/dist/parallel/tier3-classifier.d.ts +11 -0
  67. package/dist/utils/patch-dedent.d.ts +33 -0
  68. package/dist/workflow/coder-settlement.d.ts +30 -0
  69. package/dist/workflow/workflow-wal-schema.d.ts +2 -0
  70. package/package.json +1 -1
  71. package/dist/cli/{index-y9h2vqf6.js → index-4q9vfav6.js} +3 -3
  72. package/dist/cli/{index-ee3x66a5.js → index-z6xqpmqg.js} +3 -3
@@ -2,31 +2,31 @@
2
2
  import {
3
3
  effectiveRetrievalOutcomes,
4
4
  readAuthoritativeKnowledgeCounterRollups
5
- } from "./index-28jr28fg.js";
5
+ } from "./index-je3jmcc1.js";
6
+ import {
7
+ advisoryWarn,
8
+ init_warning_buffer
9
+ } from "./index-4rhhvd1a.js";
6
10
  import {
7
11
  ALLOWED_SKILL_PATH_PREFIXES,
8
12
  validateSkillPath
9
- } from "./index-kxpz3ncd.js";
13
+ } from "./index-yw4atzww.js";
10
14
  import {
11
15
  computeOutcomeSignal,
12
16
  readKnowledge,
13
17
  resolveHiveKnowledgePath,
14
18
  resolveSwarmKnowledgePath,
15
19
  transactKnowledge
16
- } from "./index-keskta0w.js";
20
+ } from "./index-fq0b44vq.js";
17
21
  import {
18
- advisoryWarn,
19
- init_warning_buffer
20
- } from "./index-4rhhvd1a.js";
22
+ init_knowledge_types,
23
+ isActiveStatus
24
+ } from "./index-bk5tah7q.js";
21
25
  import {
22
26
  init_logger,
23
27
  log,
24
28
  warn
25
29
  } from "./index-zgwm4ryv.js";
26
- import {
27
- init_knowledge_types,
28
- isActiveStatus
29
- } from "./index-bk5tah7q.js";
30
30
  import {
31
31
  __require
32
32
  } from "./index-a76rekgs.js";
@@ -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.143.0",
24
+ version: "7.143.2",
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,37 +1,37 @@
1
1
  // @bun
2
+ import {
3
+ isPathWithinDeclaredScope,
4
+ unsafePathTextReason
5
+ } from "./index-556ja8an.js";
2
6
  import {
3
7
  autoCommitDirty,
4
8
  cleanUntrackedFiles
5
- } from "./index-g0pbvfhw.js";
9
+ } from "./index-nvt1152n.js";
6
10
  import {
7
11
  validateSwarmPath
8
- } from "./index-k46me75h.js";
12
+ } from "./index-rn0eq85g.js";
13
+ import {
14
+ advisoryWarn,
15
+ init_warning_buffer
16
+ } from "./index-4rhhvd1a.js";
9
17
  import {
10
18
  atomicWriteFile,
11
19
  taskEvidencePath,
12
20
  withTaskEvidenceLock
13
21
  } from "./index-erfnw81g.js";
14
- import {
15
- isPathWithinDeclaredScope,
16
- unsafePathTextReason
17
- } from "./index-556ja8an.js";
18
22
  import {
19
23
  telemetry
20
24
  } from "./index-s2rcz51a.js";
25
+ import {
26
+ exports_external,
27
+ init_zod
28
+ } from "./index-bpmtbmy9.js";
21
29
  import {
22
30
  bunSpawn
23
31
  } from "./index-4nt52yr9.js";
24
- import {
25
- advisoryWarn,
26
- init_warning_buffer
27
- } from "./index-4rhhvd1a.js";
28
32
  import {
29
33
  log
30
34
  } from "./index-zgwm4ryv.js";
31
- import {
32
- exports_external,
33
- init_zod
34
- } from "./index-bpmtbmy9.js";
35
35
 
36
36
  // src/gate-evidence.ts
37
37
  init_zod();
@@ -586,7 +586,7 @@ function parseCoderSettlementWal(raw, filePath, expectedTaskId) {
586
586
  const baseline = context?.baseline;
587
587
  const worktree = parsed.worktree;
588
588
  const provenance = parsed.mergeProvenance;
589
- if (parsed.version !== 1 || !["ABORTED", "COMMITTED", "DISPATCHED", "PREPARED"].includes(String(parsed.state)) || typeof parsed.taskId !== "string" || !TASK_ID_PATTERN.test(parsed.taskId) || typeof parsed.transitionId !== "string" || parsed.transitionId.length === 0 || parsed.transitionId.length > 512 || typeof parsed.actor !== "string" || parsed.actor.length === 0 || parsed.actor.length > 512 || !Number.isInteger(parsed.processId) || (parsed.processId ?? 0) <= 0 || typeof parsed.runtimeId !== "string" || parsed.runtimeId.length === 0 || !Number.isInteger(parsed.expectedGeneration) || (parsed.expectedGeneration ?? -1) < 0 || !context || !baseline || typeof baseline.directory !== "string" || baseline.directory.length === 0 || baseline.directory.length > 4096 || typeof baseline.gitHead !== "string" && baseline.gitHead !== null || typeof baseline.dirtyHash !== "string" && baseline.dirtyHash !== null || typeof baseline.prHeadSha !== "string" && baseline.prHeadSha !== null || typeof baseline.scope !== "string" && baseline.scope !== null || !Array.isArray(baseline.changedFiles) && baseline.changedFiles !== null && baseline.changedFiles !== undefined || Array.isArray(baseline.changedFiles) && (baseline.changedFiles.length > 50000 || baseline.changedFiles.some((candidatePath) => typeof candidatePath !== "string" || candidatePath.length > 4096)) || !Array.isArray(context.declaredFiles) && context.declaredFiles !== null || Array.isArray(context.declaredFiles) && (context.declaredFiles.length > 50000 || context.declaredFiles.some((candidatePath) => typeof candidatePath !== "string" || candidatePath.length > 4096)) || parsed.observedFiles !== undefined && (!Array.isArray(parsed.observedFiles) || parsed.observedFiles.length > 50000 || parsed.observedFiles.some((candidatePath) => typeof candidatePath !== "string" || candidatePath.length > 4096 || !isPathWithinDeclaredScope(candidatePath, context.declaredFiles ?? [], baseline.directory))) || worktree !== undefined && (typeof worktree.callID !== "string" || typeof worktree.parentSessionId !== "string" || typeof worktree.taskId !== "string" || worktree.taskId !== parsed.taskId || !isSafeWorktreePath(worktree.worktreePath) || !isSafeGitBranchName(worktree.branchName) || typeof worktree.worktreeId !== "string" || typeof worktree.worktreeSessionId !== "string" || !["merge", "rebase", "cherry-pick"].includes(String(worktree.mergeStrategy)) || !Number.isInteger(worktree.laneIndex)) || provenance !== undefined && (typeof provenance.operationId !== "string" || provenance.operationId !== parsed.transitionId || typeof provenance.sourceHead !== "string" || !GIT_OBJECT_ID_PATTERN.test(provenance.sourceHead) || typeof provenance.targetHeadBefore !== "string" || !GIT_OBJECT_ID_PATTERN.test(provenance.targetHeadBefore) || !isSafeGitBranchName(provenance.branchName) || worktree !== undefined && (provenance.branchName !== worktree.branchName || provenance.strategy !== worktree.mergeStrategy) || !["merge", "rebase", "cherry-pick"].includes(String(provenance.strategy))) || typeof parsed.recordedAt !== "string" || parsed.state === "PREPARED" && typeof parsed.accepted !== "boolean" || parsed.cleanupComplete !== undefined && typeof parsed.cleanupComplete !== "boolean" || parsed.settlementFailed !== undefined && typeof parsed.settlementFailed !== "boolean") {
589
+ if (parsed.version !== 1 || !["ABORTED", "COMMITTED", "DISPATCHED", "PREPARED"].includes(String(parsed.state)) || typeof parsed.taskId !== "string" || !TASK_ID_PATTERN.test(parsed.taskId) || typeof parsed.transitionId !== "string" || parsed.transitionId.length === 0 || parsed.transitionId.length > 512 || typeof parsed.actor !== "string" || parsed.actor.length === 0 || parsed.actor.length > 512 || !Number.isInteger(parsed.processId) || (parsed.processId ?? 0) <= 0 || typeof parsed.runtimeId !== "string" || parsed.runtimeId.length === 0 || !Number.isInteger(parsed.expectedGeneration) || (parsed.expectedGeneration ?? -1) < 0 || !context || !baseline || typeof baseline.directory !== "string" || baseline.directory.length === 0 || baseline.directory.length > 4096 || typeof baseline.gitHead !== "string" && baseline.gitHead !== null || typeof baseline.dirtyHash !== "string" && baseline.dirtyHash !== null || typeof baseline.prHeadSha !== "string" && baseline.prHeadSha !== null || typeof baseline.scope !== "string" && baseline.scope !== null || !Array.isArray(baseline.changedFiles) && baseline.changedFiles !== null && baseline.changedFiles !== undefined || Array.isArray(baseline.changedFiles) && (baseline.changedFiles.length > 50000 || baseline.changedFiles.some((candidatePath) => typeof candidatePath !== "string" || candidatePath.length > 4096)) || !Array.isArray(context.declaredFiles) && context.declaredFiles !== null || Array.isArray(context.declaredFiles) && (context.declaredFiles.length > 50000 || context.declaredFiles.some((candidatePath) => typeof candidatePath !== "string" || candidatePath.length > 4096)) || parsed.observedFiles !== undefined && (!Array.isArray(parsed.observedFiles) || parsed.observedFiles.length > 50000 || parsed.observedFiles.some((candidatePath) => typeof candidatePath !== "string" || candidatePath.length > 4096 || !isPathWithinDeclaredScope(candidatePath, context.declaredFiles ?? [], baseline.directory))) || worktree !== undefined && (typeof worktree.callID !== "string" || typeof worktree.parentSessionId !== "string" || typeof worktree.taskId !== "string" || worktree.taskId !== parsed.taskId || !isSafeWorktreePath(worktree.worktreePath) || !isSafeGitBranchName(worktree.branchName) || typeof worktree.worktreeId !== "string" || typeof worktree.worktreeSessionId !== "string" || !["merge", "rebase", "cherry-pick"].includes(String(worktree.mergeStrategy)) || !Number.isInteger(worktree.laneIndex)) || provenance !== undefined && (typeof provenance.operationId !== "string" || provenance.operationId !== parsed.transitionId || typeof provenance.sourceHead !== "string" || !GIT_OBJECT_ID_PATTERN.test(provenance.sourceHead) || typeof provenance.targetHeadBefore !== "string" || !GIT_OBJECT_ID_PATTERN.test(provenance.targetHeadBefore) || !isSafeGitBranchName(provenance.branchName) || worktree !== undefined && (provenance.branchName !== worktree.branchName || provenance.strategy !== worktree.mergeStrategy) || !["merge", "rebase", "cherry-pick"].includes(String(provenance.strategy))) || typeof parsed.recordedAt !== "string" || parsed.state === "PREPARED" && typeof parsed.accepted !== "boolean" || parsed.cleanupComplete !== undefined && typeof parsed.cleanupComplete !== "boolean" || parsed.settlementFailed !== undefined && typeof parsed.settlementFailed !== "boolean" || parsed.abortReason !== undefined && (typeof parsed.abortReason !== "string" || parsed.abortReason.length === 0 || parsed.abortReason.length > 512)) {
590
590
  formatUnreadableMessage("CODER_SETTLEMENT_WAL_UNREADABLE", filePath, "is not a valid v1 coder-settlement WAL", "Preserve this file, reconcile the task lane, and only then move it aside.");
591
591
  }
592
592
  if (expectedTaskId && parsed.taskId !== expectedTaskId) {
@@ -3,7 +3,7 @@ import {
3
3
  queryHistoricalOutcomes,
4
4
  readKnowledgeEvents,
5
5
  recordKnowledgeEvent
6
- } from "./index-28jr28fg.js";
6
+ } from "./index-je3jmcc1.js";
7
7
  import {
8
8
  jaccardBigram,
9
9
  readKnowledge,
@@ -11,7 +11,7 @@ import {
11
11
  resolveSwarmKnowledgePath,
12
12
  transactKnowledge,
13
13
  wordBigrams
14
- } from "./index-keskta0w.js";
14
+ } from "./index-fq0b44vq.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-c7871bjc.js");
227
+ const { quarantineEntry } = await import("./knowledge-validator-nt955tw0.js");
228
228
  let policyConfig;
229
229
  try {
230
- const { KnowledgeConfigSchema } = await import("./schema-47xpcghn.js");
231
- const { loadPluginConfigWithMeta } = await import("./index-15h4dpsn.js");
230
+ const { KnowledgeConfigSchema } = await import("./schema-tpbz8f0x.js");
231
+ const { loadPluginConfigWithMeta } = await import("./index-kc9tfc7e.js");
232
232
  const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
233
233
  policyConfig = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
234
234
  } catch {
@@ -0,0 +1,115 @@
1
+ // @bun
2
+ // src/lang/registry.ts
3
+ var languageDefinitions = [
4
+ {
5
+ id: "javascript",
6
+ extensions: [".js", ".jsx", ".mjs", ".cjs"],
7
+ commentNodes: ["comment", "line_comment", "block_comment"]
8
+ },
9
+ {
10
+ id: "typescript",
11
+ extensions: [".ts"],
12
+ commentNodes: ["comment", "line_comment", "block_comment"]
13
+ },
14
+ {
15
+ id: "python",
16
+ extensions: [".py"],
17
+ commentNodes: ["comment"]
18
+ },
19
+ {
20
+ id: "go",
21
+ extensions: [".go"],
22
+ commentNodes: ["comment"]
23
+ },
24
+ {
25
+ id: "rust",
26
+ extensions: [".rs"],
27
+ commentNodes: ["line_comment", "block_comment"]
28
+ },
29
+ {
30
+ id: "php",
31
+ extensions: [".php", ".phtml"],
32
+ commentNodes: ["comment"]
33
+ },
34
+ {
35
+ id: "java",
36
+ extensions: [".java"],
37
+ commentNodes: ["line_comment", "block_comment"]
38
+ },
39
+ {
40
+ id: "c",
41
+ extensions: [".c", ".h"],
42
+ commentNodes: ["comment"]
43
+ },
44
+ {
45
+ id: "cpp",
46
+ extensions: [".cpp", ".cxx", ".cc", ".hpp", ".hxx", ".hh"],
47
+ commentNodes: ["comment"]
48
+ },
49
+ {
50
+ id: "csharp",
51
+ extensions: [".cs"],
52
+ commentNodes: ["comment"]
53
+ },
54
+ {
55
+ id: "ruby",
56
+ extensions: [".rb"],
57
+ commentNodes: ["comment"]
58
+ },
59
+ {
60
+ id: "swift",
61
+ extensions: [".swift"],
62
+ commentNodes: ["comment", "multiline_comment"]
63
+ },
64
+ {
65
+ id: "kotlin",
66
+ extensions: [".kt", ".kts"],
67
+ commentNodes: ["line_comment", "multiline_comment"]
68
+ },
69
+ {
70
+ id: "dart",
71
+ extensions: [".dart"],
72
+ commentNodes: ["comment", "documentation_comment"]
73
+ },
74
+ {
75
+ id: "css",
76
+ extensions: [".css"],
77
+ commentNodes: ["comment"]
78
+ },
79
+ {
80
+ id: "bash",
81
+ extensions: [".sh", ".bash"],
82
+ commentNodes: ["comment"]
83
+ },
84
+ {
85
+ id: "powershell",
86
+ extensions: [".ps1", ".psm1"],
87
+ commentNodes: ["comment"]
88
+ },
89
+ {
90
+ id: "ini",
91
+ extensions: [".ini", ".cfg", ".conf"],
92
+ commentNodes: ["comment"]
93
+ },
94
+ {
95
+ id: "regex",
96
+ extensions: [".regex"],
97
+ commentNodes: []
98
+ },
99
+ {
100
+ id: "tsx",
101
+ extensions: [".tsx"],
102
+ commentNodes: ["comment"]
103
+ }
104
+ ];
105
+ var extensionMap = new Map;
106
+ for (const definition of languageDefinitions) {
107
+ for (const extension of definition.extensions) {
108
+ extensionMap.set(extension, definition);
109
+ }
110
+ }
111
+ function getLanguageForExtension(extension) {
112
+ return extensionMap.get(extension.toLowerCase());
113
+ }
114
+
115
+ export { getLanguageForExtension };
@@ -1,10 +1,14 @@
1
1
  // @bun
2
2
  import {
3
3
  validateSwarmPath
4
- } from "./index-k46me75h.js";
4
+ } from "./index-rn0eq85g.js";
5
5
  import {
6
6
  withEvidenceLock
7
7
  } from "./index-k31en0ja.js";
8
+ import {
9
+ exports_external,
10
+ init_zod
11
+ } from "./index-bpmtbmy9.js";
8
12
  import {
9
13
  bunWrite
10
14
  } from "./index-4nt52yr9.js";
@@ -12,10 +16,6 @@ import {
12
16
  init_logger,
13
17
  warn
14
18
  } from "./index-zgwm4ryv.js";
15
- import {
16
- exports_external,
17
- init_zod
18
- } from "./index-bpmtbmy9.js";
19
19
 
20
20
  // src/background/pending-delegations.ts
21
21
  init_zod();
@@ -8,17 +8,17 @@ import {
8
8
  sanitizeDiagnosticText,
9
9
  unsafePathTextReason
10
10
  } from "./index-556ja8an.js";
11
- import {
12
- init_logger,
13
- warn
14
- } from "./index-zgwm4ryv.js";
15
11
  import {
16
12
  init_schema,
17
13
  stripKnownSwarmPrefix
18
- } from "./index-q8st0mtw.js";
14
+ } from "./index-6q3wx600.js";
19
15
  import {
20
16
  init_constants
21
17
  } from "./index-jqsfsqbx.js";
18
+ import {
19
+ init_logger,
20
+ warn
21
+ } from "./index-zgwm4ryv.js";
22
22
  import {
23
23
  __commonJS,
24
24
  __toESM
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  simpleGlobToRegex
4
- } from "./index-ee3x66a5.js";
4
+ } from "./index-z6xqpmqg.js";
5
5
  import {
6
6
  bunSpawnSync
7
7
  } from "./index-4nt52yr9.js";
@@ -10,6 +10,10 @@ import {
10
10
  import {
11
11
  atomicWriteFile
12
12
  } from "./index-erfnw81g.js";
13
+ import {
14
+ init_knowledge_types,
15
+ isActiveStatus
16
+ } from "./index-bk5tah7q.js";
13
17
  import {
14
18
  readCachedParsedFile
15
19
  } from "./index-ed5ykebp.js";
@@ -20,10 +24,6 @@ import {
20
24
  init_logger,
21
25
  log
22
26
  } from "./index-zgwm4ryv.js";
23
- import {
24
- init_knowledge_types,
25
- isActiveStatus
26
- } from "./index-bk5tah7q.js";
27
27
  import {
28
28
  __require,
29
29
  __toESM
@@ -709,7 +709,7 @@ async function applyConfidenceFloorAction(directory, touched, options) {
709
709
  const {
710
710
  readAuthoritativeKnowledgeCounterRollups,
711
711
  effectiveRetrievalOutcomes
712
- } = await import("./knowledge-events-vx4fqjzb.js");
712
+ } = await import("./knowledge-events-s8nvbdyk.js");
713
713
  const rollups = await readAuthoritativeKnowledgeCounterRollups(directory);
714
714
  const flagIds = new Set;
715
715
  for (const e of atFloor) {
@@ -776,11 +776,11 @@ async function applyConfidenceFloorAction(directory, touched, options) {
776
776
  });
777
777
  }
778
778
  if (action === "quarantine" && toQuarantine.length > 0) {
779
- const { quarantineEntry } = await import("./knowledge-validator-c7871bjc.js");
780
- const { KnowledgeConfigSchema } = await import("./schema-47xpcghn.js");
779
+ const { quarantineEntry } = await import("./knowledge-validator-nt955tw0.js");
780
+ const { KnowledgeConfigSchema } = await import("./schema-tpbz8f0x.js");
781
781
  let config;
782
782
  try {
783
- const { loadPluginConfigWithMeta } = await import("./index-15h4dpsn.js");
783
+ const { loadPluginConfigWithMeta } = await import("./index-kc9tfc7e.js");
784
784
  const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
785
785
  config = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
786
786
  } catch {
@@ -1,17 +1,17 @@
1
1
  // @bun
2
2
  import {
3
3
  validateSwarmPath
4
- } from "./index-k46me75h.js";
4
+ } from "./index-rn0eq85g.js";
5
5
  import {
6
6
  withEvidenceLock
7
7
  } from "./index-k31en0ja.js";
8
- import {
9
- log
10
- } from "./index-zgwm4ryv.js";
11
8
  import {
12
9
  exports_external,
13
10
  init_zod
14
11
  } from "./index-bpmtbmy9.js";
12
+ import {
13
+ log
14
+ } from "./index-zgwm4ryv.js";
15
15
 
16
16
  // src/background/pr-subscriptions.ts
17
17
  init_zod();
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailExplain
4
- } from "./index-s89y08tk.js";
4
+ } from "./index-xacfcpyn.js";
5
5
  import {
6
6
  handleGuardrailLog
7
- } from "./index-96h1v2jw.js";
7
+ } from "./index-r0j1sh38.js";
8
8
  import {
9
9
  COMMAND_REGISTRY,
10
10
  SWARM_COMMAND_TOOL_ALLOWLIST,
@@ -84,67 +84,68 @@ import {
84
84
  handleWriteRetroCommand,
85
85
  normalizeSwarmCommandInput,
86
86
  resolveCommand
87
- } from "./index-m4v9kab1.js";
88
- import"./index-4905hd2m.js";
89
- import"./index-ebwznsfy.js";
90
- import"./index-y9h2vqf6.js";
91
- import"./index-n96ay8w4.js";
92
- import"./index-c8s9a3zh.js";
93
- import"./index-r0tn9kpa.js";
94
- import"./index-fprxtq3q.js";
87
+ } from "./index-6f80e8r5.js";
88
+ import"./index-8hxbjgyk.js";
89
+ import"./index-yr997mhn.js";
90
+ import"./index-jvbqryky.js";
95
91
  import"./index-134d35c1.js";
92
+ import"./index-b6e016tv.js";
93
+ import"./index-4q9vfav6.js";
96
94
  import"./index-k92cagmt.js";
97
95
  import"./index-y8552snf.js";
96
+ import"./index-2pxq133w.js";
97
+ import"./index-xmzmeknp.js";
98
+ import"./index-c8s9a3zh.js";
98
99
  import"./index-9ss2m4rs.js";
100
+ import"./index-700yppfy.js";
99
101
  import"./index-74hpm6sh.js";
100
- import"./index-x6qq39e9.js";
101
- import"./index-htmsm37t.js";
102
- import"./index-6texwk9p.js";
103
- import"./index-xmzmeknp.js";
104
- import"./index-82m5kwtd.js";
102
+ import"./index-6hwedxn7.js";
103
+ import"./index-7e91cs99.js";
104
+ import"./index-4g1bnzma.js";
105
+ import"./index-kjgma6hg.js";
106
+ import"./index-556ja8an.js";
107
+ import"./index-gdd4jt6b.js";
105
108
  import"./index-zsrtt42s.js";
106
- import"./index-qwm6vdyv.js";
107
- import"./index-fhxh447f.js";
108
- import"./index-g0pbvfhw.js";
109
- import"./index-7c4bxgdh.js";
109
+ import"./index-k3cxyk66.js";
110
+ import"./index-8aabbfhv.js";
111
+ import"./index-nvt1152n.js";
110
112
  import"./index-8fwhhayc.js";
111
113
  import"./index-q1exe2b3.js";
112
- import"./index-28jr28fg.js";
113
- import"./index-k46me75h.js";
114
- import"./index-ee3x66a5.js";
115
- import"./index-kxpz3ncd.js";
116
- import"./index-tq5s07ta.js";
117
- import"./index-rtry5xyf.js";
118
- import"./index-keskta0w.js";
119
- import"./index-ae75rja9.js";
120
- import"./index-w7x7qxz2.js";
121
- import"./index-erfnw81g.js";
122
- import"./index-ed5ykebp.js";
123
- import"./index-2n8y67b4.js";
114
+ import"./index-7sy3aa9m.js";
115
+ import"./index-4905hd2m.js";
116
+ import"./index-je3jmcc1.js";
117
+ import"./index-x0ja3n3g.js";
124
118
  import"./index-gprxjmm7.js";
125
119
  import"./index-n832052r.js";
126
- import"./index-9v53ez3a.js";
127
- import"./index-sb16w4wj.js";
128
- import"./index-556ja8an.js";
129
- import"./index-k31en0ja.js";
130
- import"./index-7g4c7s5r.js";
131
- import"./index-s2rcz51a.js";
132
- import"./index-4nt52yr9.js";
133
- import"./index-336ra397.js";
134
- import"./index-4rhhvd1a.js";
135
- import"./index-zgwm4ryv.js";
120
+ import"./index-qswsp6s3.js";
136
121
  import {
137
122
  init_schema,
138
123
  stripKnownSwarmPrefix
139
- } from "./index-q8st0mtw.js";
124
+ } from "./index-6q3wx600.js";
125
+ import"./index-rn0eq85g.js";
126
+ import"./index-4rhhvd1a.js";
140
127
  import {
141
128
  AGENT_TOOL_MAP,
142
129
  ORCHESTRATOR_NAME,
143
130
  init_constants
144
131
  } from "./index-jqsfsqbx.js";
132
+ import"./index-z6xqpmqg.js";
145
133
  import"./index-zjygnfay.js";
134
+ import"./index-yw4atzww.js";
135
+ import"./index-tq5s07ta.js";
136
+ import"./index-rtry5xyf.js";
137
+ import"./index-fq0b44vq.js";
138
+ import"./index-ae75rja9.js";
139
+ import"./index-w7x7qxz2.js";
140
+ import"./index-erfnw81g.js";
146
141
  import"./index-bk5tah7q.js";
142
+ import"./index-ed5ykebp.js";
143
+ import"./index-k31en0ja.js";
144
+ import"./index-7g4c7s5r.js";
145
+ import"./index-s2rcz51a.js";
147
146
  import"./index-bpmtbmy9.js";
147
+ import"./index-4nt52yr9.js";
148
+ import"./index-zgwm4ryv.js";
148
149
  import"./index-a76rekgs.js";
149
150
 
150
151
  // src/commands/index.ts
@@ -1,7 +1,14 @@
1
1
  // @bun
2
+ import {
3
+ loadPluginConfigWithMeta
4
+ } from "./index-qswsp6s3.js";
5
+ import {
6
+ KnowledgeConfigSchema,
7
+ init_schema
8
+ } from "./index-6q3wx600.js";
2
9
  import {
3
10
  validateSwarmPath
4
- } from "./index-k46me75h.js";
11
+ } from "./index-rn0eq85g.js";
5
12
  import {
6
13
  resolveHiveEventsPath
7
14
  } from "./index-ae75rja9.js";
@@ -20,17 +27,10 @@ import {
20
27
  import {
21
28
  emit
22
29
  } from "./index-s2rcz51a.js";
23
- import {
24
- loadPluginConfigWithMeta
25
- } from "./index-336ra397.js";
26
30
  import {
27
31
  init_logger,
28
32
  warn
29
33
  } from "./index-zgwm4ryv.js";
30
- import {
31
- KnowledgeConfigSchema,
32
- init_schema
33
- } from "./index-q8st0mtw.js";
34
34
  import {
35
35
  __require,
36
36
  __toESM
@@ -2545,7 +2545,7 @@ async function applyKnowledgeVerdictFeedback(directory, options) {
2545
2545
  }
2546
2546
  let bumps = 0;
2547
2547
  if (deltas.length > 0) {
2548
- const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-t2qyr4yr.js");
2548
+ const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-2zt0b10b.js");
2549
2549
  bumps = await bumpKnowledgeConfidenceBatch(directory, deltas, options?.floorOptions);
2550
2550
  }
2551
2551
  return {
@@ -10,35 +10,12 @@ import {
10
10
  import {
11
11
  readEffectiveSpecSync
12
12
  } from "./index-9ss2m4rs.js";
13
- import {
14
- getWorktreeMergeFailure
15
- } from "./index-zsrtt42s.js";
16
13
  import {
17
14
  isValidTaskId,
18
15
  readTaskEvidence,
19
16
  readTaskEvidenceRaw,
20
17
  sanitizeTaskId
21
- } from "./index-fhxh447f.js";
22
- import {
23
- _internals,
24
- buildDefaultPolicy,
25
- execute,
26
- init_runner_client,
27
- probe
28
- } from "./index-q1exe2b3.js";
29
- import {
30
- readSwarmFileAsync,
31
- validateSwarmPath
32
- } from "./index-k46me75h.js";
33
- import {
34
- invalidateCachedArtifact,
35
- readCachedParsedFile
36
- } from "./index-ed5ykebp.js";
37
- import {
38
- EVIDENCE_MAX_JSON_BYTES,
39
- EvidenceBundleSchema,
40
- EvidenceSchema
41
- } from "./index-gprxjmm7.js";
18
+ } from "./index-700yppfy.js";
42
19
  import {
43
20
  LedgerStaleWriterError,
44
21
  appendLedgerEvent,
@@ -58,7 +35,33 @@ import {
58
35
  replayFromLedgerWithStatus,
59
36
  takeSnapshotEvent,
60
37
  takeSnapshotWithRetry
61
- } from "./index-sb16w4wj.js";
38
+ } from "./index-kjgma6hg.js";
39
+ import {
40
+ getWorktreeMergeFailure
41
+ } from "./index-zsrtt42s.js";
42
+ import {
43
+ _internals,
44
+ buildDefaultPolicy,
45
+ execute,
46
+ init_runner_client,
47
+ probe
48
+ } from "./index-q1exe2b3.js";
49
+ import {
50
+ EVIDENCE_MAX_JSON_BYTES,
51
+ EvidenceBundleSchema,
52
+ EvidenceSchema
53
+ } from "./index-gprxjmm7.js";
54
+ import {
55
+ PlanSchema
56
+ } from "./index-qswsp6s3.js";
57
+ import {
58
+ readSwarmFileAsync,
59
+ validateSwarmPath
60
+ } from "./index-rn0eq85g.js";
61
+ import {
62
+ invalidateCachedArtifact,
63
+ readCachedParsedFile
64
+ } from "./index-ed5ykebp.js";
62
65
  import {
63
66
  assertProjectRoot,
64
67
  tryAcquireLock,
@@ -67,24 +70,21 @@ import {
67
70
  import {
68
71
  emit
69
72
  } from "./index-s2rcz51a.js";
73
+ import {
74
+ ZodError,
75
+ init_zod
76
+ } from "./index-bpmtbmy9.js";
70
77
  import {
71
78
  bunHash,
72
79
  bunWrite,
73
80
  mergeEnvForChild
74
81
  } from "./index-4nt52yr9.js";
75
- import {
76
- PlanSchema
77
- } from "./index-336ra397.js";
78
82
  import {
79
83
  criticalWarn,
80
84
  error,
81
85
  init_logger,
82
86
  warn
83
87
  } from "./index-zgwm4ryv.js";
84
- import {
85
- ZodError,
86
- init_zod
87
- } from "./index-bpmtbmy9.js";
88
88
  import {
89
89
  __esm,
90
90
  __export,
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  validateSwarmPath
4
- } from "./index-k46me75h.js";
4
+ } from "./index-rn0eq85g.js";
5
5
 
6
6
  // src/hooks/delegation-gate/worktree-provisioning-owner.ts
7
7
  import { createHash, randomBytes } from "crypto";