opencode-swarm 7.154.1 → 7.154.3

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 (79) hide show
  1. package/dist/background/completion-observer.d.ts +10 -1
  2. package/dist/background/pending-delegations.d.ts +47 -0
  3. package/dist/cli/coder-settlement-7c9h07f5.js +54 -0
  4. package/dist/cli/{config-doctor-keasv3r8.js → config-doctor-8zjz6dej.js} +2 -2
  5. package/dist/cli/{core-7aj5g3f4.js → core-dn8bn81g.js} +2 -2
  6. package/dist/cli/{curation-policy-a6tve11y.js → curation-policy-2jkbybw7.js} +4 -4
  7. package/dist/cli/{curator-drift-h57z6tm3.js → curator-drift-g6w4ga1q.js} +2 -2
  8. package/dist/cli/{curator-llm-factory-cr5ckwbd.js → curator-llm-factory-mxdjw6kz.js} +33 -31
  9. package/dist/cli/{curator-anz136hr.js → curator-v12rhct2.js} +33 -31
  10. package/dist/cli/{evidence-summary-service-6tgme7p3.js → evidence-summary-service-zzvvcaa9.js} +11 -11
  11. package/dist/cli/{gate-evidence-36nfx4vb.js → gate-evidence-16jkjre9.js} +6 -6
  12. package/dist/cli/{guardrail-explain-frb5xd5h.js → guardrail-explain-11fx66cx.js} +34 -32
  13. package/dist/cli/{guardrail-log-fvma65xm.js → guardrail-log-ahvfn58c.js} +3 -3
  14. package/dist/cli/{guardrail-reset-3qk6k334.js → guardrail-reset-zp5xe0n5.js} +33 -31
  15. package/dist/cli/{hive-promoter-v3dhtzfa.js → hive-promoter-k6y06jj8.js} +33 -31
  16. package/dist/cli/{index-c809a69b.js → index-0f4b9ywa.js} +2 -2
  17. package/dist/cli/{index-akm1dbr9.js → index-2rgm3hgq.js} +4 -4
  18. package/dist/cli/{index-1sjnqsc8.js → index-4dt91x6e.js} +1 -1
  19. package/dist/cli/{index-qm8b3aaj.js → index-4n557t8w.js} +3 -3
  20. package/dist/cli/{index-h7pamys0.js → index-6vcrkz80.js} +4 -4
  21. package/dist/cli/{index-wqp8kk0w.js → index-7fyv62b2.js} +11 -12
  22. package/dist/cli/{index-zak84bqr.js → index-7qky94rr.js} +1 -1
  23. package/dist/cli/{index-bmkxc6sa.js → index-94e20w95.js} +2 -2
  24. package/dist/cli/{index-wxpemcdj.js → index-9nw6z98k.js} +35 -33
  25. package/dist/cli/{index-4r46q7tk.js → index-a6xjn2zt.js} +5 -5
  26. package/dist/cli/{index-107cv0dr.js → index-bhjkxasn.js} +1 -1
  27. package/dist/cli/{index-97q41ds3.js → index-ckp0z9d4.js} +2 -2
  28. package/dist/cli/{index-sx5f2fq9.js → index-d7r6y724.js} +4 -4
  29. package/dist/cli/index-ddszzne4.js +42 -0
  30. package/dist/cli/{index-4cgee5vh.js → index-dtn0pne5.js} +20 -1
  31. package/dist/cli/{index-9wzgztj9.js → index-ed13peqr.js} +1 -1
  32. package/dist/cli/{index-tmgbwgsm.js → index-env8fk17.js} +1 -1
  33. package/dist/cli/{index-9znypky4.js → index-g1bh7980.js} +3 -3
  34. package/dist/cli/{index-p17hs70t.js → index-gbkdj7ay.js} +2 -2
  35. package/dist/cli/{index-9xev69y4.js → index-kck2gtxk.js} +228 -2
  36. package/dist/cli/{index-r0yavfvm.js → index-m0fy8jra.js} +2309 -2920
  37. package/dist/cli/{index-wmxke5se.js → index-n7nnz0jp.js} +6 -6
  38. package/dist/cli/{index-xsbf2mmf.js → index-q0prhdds.js} +7 -7
  39. package/dist/cli/{index-3md256qr.js → index-qdnmnq65.js} +1 -1
  40. package/dist/cli/{index-y7gyhe13.js → index-qxj63890.js} +1 -1
  41. package/dist/cli/{index-50cy1a3p.js → index-s23q9v6t.js} +6 -6
  42. package/dist/cli/{index-0vss7vdg.js → index-s5p8ryar.js} +1 -1
  43. package/dist/cli/{index-yy4yps8w.js → index-v6xkgxts.js} +2 -2
  44. package/dist/cli/{index-garsang6.js → index-vntggpez.js} +2 -2
  45. package/dist/cli/{index-155pbsan.js → index-wkagbmpt.js} +1 -1
  46. package/dist/cli/{index-fz9xcq6z.js → index-y3kw1zpm.js} +2 -1
  47. package/dist/cli/index-ymgsmjba.js +875 -0
  48. package/dist/cli/{index-2ppbt5cf.js → index-zak50rve.js} +1 -1
  49. package/dist/cli/index.js +33 -31
  50. package/dist/cli/{knowledge-escalator-1gjv97hj.js → knowledge-escalator-yew2fbxb.js} +11 -11
  51. package/dist/cli/{knowledge-events-94hfvp85.js → knowledge-events-zfg423hp.js} +9 -9
  52. package/dist/cli/{knowledge-link-fs8hgh4h.js → knowledge-link-ydv6shg2.js} +3 -3
  53. package/dist/cli/{knowledge-store-g7grbt7h.js → knowledge-store-zcv9stzz.js} +4 -4
  54. package/dist/cli/{knowledge-validator-ep0ym1e4.js → knowledge-validator-q68wx2bf.js} +6 -6
  55. package/dist/cli/{pending-delegations-0pf2dtwx.js → pending-delegations-yet1rza6.js} +15 -2
  56. package/dist/cli/{pr-subscriptions-e70phj71.js → pr-subscriptions-mp7fyh1r.js} +3 -3
  57. package/dist/cli/{runner-b7pskcxb.js → runner-s89ja08q.js} +4 -4
  58. package/dist/cli/{scan-cursor-8zps8v46.js → scan-cursor-38bzfhwf.js} +5 -5
  59. package/dist/cli/{schema-8sx9jp7v.js → schema-9hqyt4t6.js} +1 -1
  60. package/dist/cli/{scope-persistence-zacyjnx9.js → scope-persistence-dd9s9q2b.js} +6 -6
  61. package/dist/cli/{skill-generator-xs5n5j4k.js → skill-generator-b28ezazm.js} +13 -13
  62. package/dist/cli/{worktree-collision-ownership-yjk5ya71.js → worktree-collision-ownership-zw65t2p9.js} +9 -8
  63. package/dist/cli/{worktree-isolation-cpf6b8ns.js → worktree-isolation-0ag393t0.js} +33 -31
  64. package/dist/evaluation/contracts.d.ts +4 -4
  65. package/dist/evaluation/gate-ground-truth.d.ts +1 -1
  66. package/dist/hooks/final-context-accounting.d.ts +60 -0
  67. package/dist/hooks/index.d.ts +1 -0
  68. package/dist/hooks/knowledge-injector.d.ts +1 -1
  69. package/dist/hooks/system-enhancer.d.ts +13 -0
  70. package/dist/hooks/utils.d.ts +11 -0
  71. package/dist/index.js +561 -556
  72. package/dist/services/compaction-service.d.ts +9 -3
  73. package/dist/services/context-budget-service.d.ts +7 -3
  74. package/dist/services/injection-budget.d.ts +103 -26
  75. package/dist/state.d.ts +69 -0
  76. package/dist/summaries/summarizer.d.ts +34 -3
  77. package/dist/utils/canonical-root.d.ts +2 -0
  78. package/dist/workflow/coder-settlement.d.ts +14 -0
  79. package/package.json +2 -1
@@ -6,10 +6,10 @@ import {
6
6
  } from "./index-ae75rja9.js";
7
7
  import {
8
8
  resolveKnowledgeStoreDir
9
- } from "./index-9wzgztj9.js";
9
+ } from "./index-ed13peqr.js";
10
10
  import {
11
11
  atomicWriteFile
12
- } from "./index-107cv0dr.js";
12
+ } from "./index-bhjkxasn.js";
13
13
  import {
14
14
  init_knowledge_types,
15
15
  isActiveStatus
@@ -713,7 +713,7 @@ async function applyConfidenceFloorAction(directory, touched, options) {
713
713
  const {
714
714
  readAuthoritativeKnowledgeCounterRollups,
715
715
  effectiveRetrievalOutcomes
716
- } = await import("./knowledge-events-94hfvp85.js");
716
+ } = await import("./knowledge-events-zfg423hp.js");
717
717
  const rollups = await readAuthoritativeKnowledgeCounterRollups(directory);
718
718
  const flagIds = new Set;
719
719
  for (const e of atFloor) {
@@ -780,11 +780,11 @@ async function applyConfidenceFloorAction(directory, touched, options) {
780
780
  });
781
781
  }
782
782
  if (action === "quarantine" && toQuarantine.length > 0) {
783
- const { quarantineEntry } = await import("./knowledge-validator-ep0ym1e4.js");
784
- const { KnowledgeConfigSchema } = await import("./schema-8sx9jp7v.js");
783
+ const { quarantineEntry } = await import("./knowledge-validator-q68wx2bf.js");
784
+ const { KnowledgeConfigSchema } = await import("./schema-9hqyt4t6.js");
785
785
  let config;
786
786
  try {
787
- const { loadPluginConfigWithMeta } = await import("./index-sx5f2fq9.js");
787
+ const { loadPluginConfigWithMeta } = await import("./index-d7r6y724.js");
788
788
  const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
789
789
  config = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
790
790
  } catch {
@@ -6,7 +6,12 @@ import {
6
6
  PluginConfigSchema,
7
7
  init_schema,
8
8
  resolveExternalSkillsConfig
9
- } from "./index-fz9xcq6z.js";
9
+ } from "./index-y3kw1zpm.js";
10
+ import {
11
+ MAX_MERGE_DEPTH,
12
+ deepMerge,
13
+ init_merge
14
+ } from "./index-zjygnfay.js";
10
15
  import {
11
16
  GIT_BINARY_ENV_VAR,
12
17
  init_git_executable
@@ -15,11 +20,6 @@ import {
15
20
  advisoryWarn,
16
21
  init_warning_buffer
17
22
  } from "./index-4rhhvd1a.js";
18
- import {
19
- MAX_MERGE_DEPTH,
20
- deepMerge,
21
- init_merge
22
- } from "./index-zjygnfay.js";
23
23
  import {
24
24
  exports_external,
25
25
  init_zod
@@ -788,4 +788,4 @@ var PlanSchema = exports_external.object({
788
788
  execution_profile: ExecutionProfileSchema.optional()
789
789
  });
790
790
 
791
- export { loadPluginConfig, loadPluginConfigWithMeta, getSafeDefaultConfigLoadResult, loadPluginConfigWithMetaAsync, loadAgentPrompt, exports_loader, init_loader, ExecutionProfileSchema, TaskStatusSchema, TaskSizeSchema, PhaseStatusSchema, MigrationStatusSchema, TaskSchema, PhaseSchema, PlanSchema };
791
+ export { ExecutionProfileSchema, TaskStatusSchema, TaskSizeSchema, PhaseStatusSchema, MigrationStatusSchema, TaskSchema, PhaseSchema, PlanSchema, loadPluginConfig, loadPluginConfigWithMeta, getSafeDefaultConfigLoadResult, loadPluginConfigWithMetaAsync, loadAgentPrompt, exports_loader, init_loader };
@@ -9,7 +9,7 @@ import {
9
9
  readEvaluationRun,
10
10
  saveEvaluationRun,
11
11
  saveTaskSetSnapshot
12
- } from "./index-tmgbwgsm.js";
12
+ } from "./index-env8fk17.js";
13
13
  import {
14
14
  canonicalHash,
15
15
  computeCandidateInputContentHash,
@@ -11,7 +11,7 @@ import {
11
11
  import {
12
12
  init_schema,
13
13
  stripKnownSwarmPrefix
14
- } from "./index-fz9xcq6z.js";
14
+ } from "./index-y3kw1zpm.js";
15
15
  import {
16
16
  init_constants
17
17
  } from "./index-myt57pht.js";
@@ -1,23 +1,23 @@
1
1
  // @bun
2
2
  import {
3
3
  validateSwarmPath
4
- } from "./index-4cgee5vh.js";
4
+ } from "./index-dtn0pne5.js";
5
5
  import {
6
6
  loadPluginConfigWithMeta
7
- } from "./index-xsbf2mmf.js";
7
+ } from "./index-q0prhdds.js";
8
8
  import {
9
9
  KnowledgeConfigSchema,
10
10
  init_schema
11
- } from "./index-fz9xcq6z.js";
11
+ } from "./index-y3kw1zpm.js";
12
12
  import {
13
13
  resolveHiveEventsPath
14
14
  } from "./index-ae75rja9.js";
15
15
  import {
16
16
  resolveKnowledgeStoreDir
17
- } from "./index-9wzgztj9.js";
17
+ } from "./index-ed13peqr.js";
18
18
  import {
19
19
  atomicWriteFile
20
- } from "./index-107cv0dr.js";
20
+ } from "./index-bhjkxasn.js";
21
21
  import {
22
22
  assertProjectRoot
23
23
  } from "./index-xagq35tf.js";
@@ -2793,7 +2793,7 @@ async function applyKnowledgeVerdictFeedback(directory, options) {
2793
2793
  }
2794
2794
  let bumps = 0;
2795
2795
  if (deltas.length > 0) {
2796
- const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-g7grbt7h.js");
2796
+ const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-zcv9stzz.js");
2797
2797
  bumps = await bumpKnowledgeConfidenceBatch(directory, deltas, options?.floorOptions);
2798
2798
  }
2799
2799
  return {
@@ -4,7 +4,7 @@ import {
4
4
  PlanSchema,
5
5
  TaskStatusSchema,
6
6
  init_loader
7
- } from "./index-xsbf2mmf.js";
7
+ } from "./index-q0prhdds.js";
8
8
  import {
9
9
  assertProjectRoot,
10
10
  withEvidenceLock
@@ -2,14 +2,14 @@
2
2
  import {
3
3
  readKnowledge,
4
4
  transactKnowledge
5
- } from "./index-wmxke5se.js";
5
+ } from "./index-n7nnz0jp.js";
6
6
  import {
7
7
  init_git_executable,
8
8
  resolveGitExecutableAsync
9
9
  } from "./index-9e6fdz2h.js";
10
10
  import {
11
11
  resolveKnowledgeStoreDir
12
- } from "./index-9wzgztj9.js";
12
+ } from "./index-ed13peqr.js";
13
13
  import {
14
14
  init_knowledge_types,
15
15
  isActiveStatus
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  validateSwarmPath
4
- } from "./index-4cgee5vh.js";
4
+ } from "./index-dtn0pne5.js";
5
5
  import {
6
6
  atomicWriteSwarmFileSync
7
- } from "./index-c809a69b.js";
7
+ } from "./index-0f4b9ywa.js";
8
8
 
9
9
  // src/hooks/delegation-gate/worktree-provisioning-owner.ts
10
10
  import { createHash } from "crypto";
@@ -6,7 +6,7 @@ import {
6
6
  PluginConfigSchema,
7
7
  init_schema,
8
8
  stripKnownSwarmPrefix
9
- } from "./index-fz9xcq6z.js";
9
+ } from "./index-y3kw1zpm.js";
10
10
  import {
11
11
  ALL_AGENT_NAMES,
12
12
  init_constants
@@ -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.154.1",
24
+ version: "7.154.3",
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",
@@ -135,6 +135,7 @@ var init_package = __esm(() => {
135
135
  "check:trajectory-store": "bun run scripts/check-trajectory-store-usage.ts",
136
136
  "check:mock-cleanup": "bun run scripts/check-mock-cleanup.ts",
137
137
  "check:invariants": "bun run scripts/check-invariants.ts",
138
+ "check:token-formula": "bun run scripts/check-token-formula.ts",
138
139
  "check:cross-contamination": "bun run scripts/check-cross-contamination.ts",
139
140
  "check:test-clock": "bun run scripts/check-test-clock.ts",
140
141
  "check:test-file-cap": "bun run scripts/check-test-file-cap.ts",