opencode-swarm 7.148.4 → 7.149.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-ycf9ws4p.js → config-doctor-fx8d6pma.js} +3 -3
  2. package/dist/cli/{core-a1bhs3xa.js → core-0v762txd.js} +3 -3
  3. package/dist/cli/{curation-policy-fbvctttr.js → curation-policy-4jxx3ey4.js} +6 -6
  4. package/dist/cli/{curator-8y57gq1g.js → curator-6w4frzdz.js} +32 -31
  5. package/dist/cli/{curator-llm-factory-rj4vw5fd.js → curator-llm-factory-8fstpeqh.js} +32 -31
  6. package/dist/cli/{evidence-summary-service-wkp0gfpd.js → evidence-summary-service-x00z38n2.js} +15 -14
  7. package/dist/cli/{gate-evidence-qty15skw.js → gate-evidence-ejdek2td.js} +9 -9
  8. package/dist/cli/{guardrail-explain-2n3ahs0m.js → guardrail-explain-nynjhbzk.js} +33 -32
  9. package/dist/cli/{guardrail-log-bmxrb3r2.js → guardrail-log-6bktj08e.js} +6 -4
  10. package/dist/cli/{guardrail-reset-be3sx0am.js → guardrail-reset-hsfd5ykq.js} +32 -31
  11. package/dist/cli/{hive-promoter-te5d78yt.js → hive-promoter-32artf8c.js} +32 -31
  12. package/dist/cli/{index-sxtz2d26.js → index-01q7mb83.js} +6 -6
  13. package/dist/cli/{index-yq89bgnz.js → index-41n0thtd.js} +2 -1
  14. package/dist/cli/{index-bccfz7br.js → index-42habrdv.js} +4 -4
  15. package/dist/cli/{index-622phhp5.js → index-5q5ws00e.js} +11 -11
  16. package/dist/cli/{index-9m8jy3av.js → index-6thxr1q7.js} +3 -3
  17. package/dist/cli/{index-6kw1a3bk.js → index-79pwr8hc.js} +9 -12
  18. package/dist/cli/{index-gswx08pr.js → index-8hkxm9mh.js} +4 -4
  19. package/dist/cli/{index-qpewzk0q.js → index-8yan955h.js} +2 -2
  20. package/dist/cli/{index-vrp2zva8.js → index-a90c1gtn.js} +1 -1
  21. package/dist/cli/{index-kg4knw6r.js → index-ame8ek9g.js} +7 -6
  22. package/dist/cli/{index-hj1xd3pg.js → index-bcfcekx9.js} +1314 -371
  23. package/dist/cli/{index-nq4tkfpc.js → index-bmaz2yy4.js} +1 -1
  24. package/dist/cli/{index-k1s8gxjh.js → index-c1h0rdkr.js} +1 -1
  25. package/dist/cli/index-c83bztkp.js +881 -0
  26. package/dist/cli/{index-1vbmra32.js → index-ccyve4pb.js} +1 -1
  27. package/dist/cli/{index-vhefvcta.js → index-cfvbd3dg.js} +2 -2
  28. package/dist/cli/{index-ye7kpzrk.js → index-ef0wracg.js} +5 -5
  29. package/dist/cli/{index-9qzkcmry.js → index-hbhw2qd7.js} +3 -3
  30. package/dist/cli/{index-rzzwem6x.js → index-ka2vav7t.js} +34 -33
  31. package/dist/cli/{index-b1c83zf9.js → index-kb1p6dpx.js} +18 -17
  32. package/dist/cli/{index-8kzrgjt6.js → index-mza55jmc.js} +4 -4
  33. package/dist/cli/{index-t25evmna.js → index-n6jykega.js} +1 -1
  34. package/dist/cli/{index-skgeytf6.js → index-pgfn8h50.js} +10 -10
  35. package/dist/cli/{index-7rerkeg8.js → index-q8e2yd98.js} +1 -1
  36. package/dist/cli/{index-w00hn0dd.js → index-s7t2c9jd.js} +2 -2
  37. package/dist/cli/{index-j382eh60.js → index-vfv4vnnc.js} +1 -1
  38. package/dist/cli/{index-qwmrt51t.js → index-wbz365gn.js} +1 -1
  39. package/dist/cli/{index-ghbkknjz.js → index-wj0gnab0.js} +72 -41
  40. package/dist/cli/{index-b94487xm.js → index-wsar7d91.js} +1 -1
  41. package/dist/cli/{index-0045n7qe.js → index-xdp0bx28.js} +2 -2
  42. package/dist/cli/{index-8djgxw2w.js → index-z6471b7r.js} +2 -2
  43. package/dist/cli/{index-qbvq3xt2.js → index-zkcwan96.js} +1 -1
  44. package/dist/cli/index.js +32 -31
  45. package/dist/cli/{knowledge-escalator-9w53tx55.js → knowledge-escalator-ty2kesdj.js} +14 -14
  46. package/dist/cli/{knowledge-events-my31zepa.js → knowledge-events-x3rd7r3j.js} +12 -12
  47. package/dist/cli/{knowledge-link-spw879rs.js → knowledge-link-a5f89833.js} +5 -5
  48. package/dist/cli/{knowledge-store-yf59mxp5.js → knowledge-store-zsz4dxjq.js} +6 -6
  49. package/dist/cli/{knowledge-validator-8n569fp4.js → knowledge-validator-bdhgkw9f.js} +8 -8
  50. package/dist/cli/{pending-delegations-f4wvyzbf.js → pending-delegations-aez8ebdr.js} +3 -3
  51. package/dist/cli/{pr-subscriptions-f4xw1rxy.js → pr-subscriptions-cpnwvc6y.js} +3 -3
  52. package/dist/cli/{runner-rk26nk58.js → runner-9mnkfjw7.js} +6 -6
  53. package/dist/cli/{scan-cursor-www6dbn8.js → scan-cursor-3ba1spad.js} +7 -7
  54. package/dist/cli/{schema-vyg0k7rh.js → schema-h251vmd1.js} +1 -1
  55. package/dist/cli/{scope-persistence-3qbr019s.js → scope-persistence-h1b31ba2.js} +8 -10
  56. package/dist/cli/{skill-generator-fh8emssb.js → skill-generator-esrn40th.js} +16 -16
  57. package/dist/cli/{telemetry-1pnsftp0.js → telemetry-jtq6px7k.js} +1 -1
  58. package/dist/cli/{workspace-snapshot-nq25j94x.js → workspace-snapshot-8269e1p9.js} +2 -2
  59. package/dist/cli/{worktree-collision-ownership-wqy7mgb3.js → worktree-collision-ownership-r8j31h06.js} +8 -8
  60. package/dist/cli/{worktree-isolation-sbsdx1yj.js → worktree-isolation-pbr4d5m9.js} +32 -31
  61. package/dist/commands/close.d.ts +1 -0
  62. package/dist/events/core-events.d.ts +250 -0
  63. package/dist/full-auto/oversight.d.ts +5 -3
  64. package/dist/hooks/full-auto-delegation.d.ts +24 -0
  65. package/dist/hooks/full-auto-input-probe.d.ts +11 -0
  66. package/dist/hooks/steering-consumed.d.ts +12 -4
  67. package/dist/index.js +588 -603
  68. package/dist/observability/catalog.d.ts +9 -7
  69. package/dist/sast/rules/javascript-call-classifier.d.ts +4 -0
  70. package/dist/services/spec-drift-recovery.d.ts +9 -2
  71. package/dist/telemetry.d.ts +24 -1
  72. package/package.json +2 -1
  73. package/dist/cli/{curator-drift-fv4rttf4.js → curator-drift-2h1d2fnq.js} +1 -1
  74. package/dist/cli/{index-g8wwj0sz.js → index-vnn7qq8c.js} +3 -3
@@ -6,10 +6,10 @@ import {
6
6
  } from "./index-ae75rja9.js";
7
7
  import {
8
8
  resolveKnowledgeStoreDir
9
- } from "./index-k1s8gxjh.js";
9
+ } from "./index-c1h0rdkr.js";
10
10
  import {
11
11
  atomicWriteFile
12
- } from "./index-vhefvcta.js";
12
+ } from "./index-cfvbd3dg.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-my31zepa.js");
716
+ } = await import("./knowledge-events-x3rd7r3j.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-8n569fp4.js");
784
- const { KnowledgeConfigSchema } = await import("./schema-vyg0k7rh.js");
783
+ const { quarantineEntry } = await import("./knowledge-validator-bdhgkw9f.js");
784
+ const { KnowledgeConfigSchema } = await import("./schema-h251vmd1.js");
785
785
  let config;
786
786
  try {
787
- const { loadPluginConfigWithMeta } = await import("./index-9qzkcmry.js");
787
+ const { loadPluginConfigWithMeta } = await import("./index-hbhw2qd7.js");
788
788
  const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
789
789
  config = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
790
790
  } catch {
@@ -21,7 +21,7 @@ var package_default;
21
21
  var init_package = __esm(() => {
22
22
  package_default = {
23
23
  name: "opencode-swarm",
24
- version: "7.148.4",
24
+ version: "7.149.0",
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",
@@ -130,6 +130,7 @@ var init_package = __esm(() => {
130
130
  "repro:1873": "bun build scripts/repro-1873-entry.ts --outdir dist-build-test/repro-1873 --target node --format esm && node scripts/repro-1873.mjs",
131
131
  "check:events": "bun run scripts/check-event-contract.ts",
132
132
  "check:retention": "bun run scripts/check-retention-registry.ts",
133
+ "check:core-events": "bun run scripts/check-core-events-usage.ts",
133
134
  "check:test-file-cap": "bun run scripts/check-test-file-cap.ts",
134
135
  "check:pending-fragment": "bun run scripts/check-pending-fragment.ts",
135
136
  "check:gate-portability": "bun run scripts/check-gate-portability.ts",
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  ALLOWED_SKILL_PATH_PREFIXES,
4
4
  validateSkillPath
5
- } from "./index-gswx08pr.js";
5
+ } from "./index-8hkxm9mh.js";
6
6
  import {
7
7
  withTimeoutSignal
8
8
  } from "./index-q7sjgr1y.js";
@@ -12,11 +12,11 @@ import {
12
12
  resolveHiveKnowledgePath,
13
13
  resolveSwarmKnowledgePath,
14
14
  transactKnowledge
15
- } from "./index-sxtz2d26.js";
15
+ } from "./index-01q7mb83.js";
16
16
  import {
17
17
  effectiveRetrievalOutcomes,
18
18
  readAuthoritativeKnowledgeCounterRollups
19
- } from "./index-skgeytf6.js";
19
+ } from "./index-pgfn8h50.js";
20
20
  import {
21
21
  advisoryWarn,
22
22
  init_warning_buffer
@@ -28,7 +28,7 @@ import {
28
28
  import {
29
29
  atomicWriteFileAnyRoot,
30
30
  atomicWriteSwarmFile
31
- } from "./index-kg4knw6r.js";
31
+ } from "./index-ame8ek9g.js";
32
32
  import {
33
33
  init_logger,
34
34
  log,
@@ -2,11 +2,18 @@
2
2
  import {
3
3
  autoCommitDirty,
4
4
  cleanUntrackedFiles
5
- } from "./index-8kzrgjt6.js";
5
+ } from "./index-mza55jmc.js";
6
6
  import {
7
7
  isPathWithinDeclaredScope,
8
8
  unsafePathTextReason
9
9
  } from "./index-556ja8an.js";
10
+ import {
11
+ validateSwarmPath
12
+ } from "./index-4cgee5vh.js";
13
+ import {
14
+ bunSpawn,
15
+ classifySpawnFailure
16
+ } from "./index-r3mvsbtq.js";
10
17
  import {
11
18
  init_git_executable,
12
19
  resolveGitExecutable
@@ -15,24 +22,17 @@ import {
15
22
  advisoryWarn,
16
23
  init_warning_buffer
17
24
  } from "./index-4rhhvd1a.js";
18
- import {
19
- validateSwarmPath
20
- } from "./index-4cgee5vh.js";
21
- import {
22
- bunSpawn,
23
- classifySpawnFailure
24
- } from "./index-r3mvsbtq.js";
25
25
  import {
26
26
  atomicWriteFile,
27
27
  taskEvidencePath,
28
28
  withTaskEvidenceLock
29
- } from "./index-vhefvcta.js";
29
+ } from "./index-cfvbd3dg.js";
30
30
  import {
31
31
  assertProjectRoot
32
- } from "./index-vrp2zva8.js";
32
+ } from "./index-a90c1gtn.js";
33
33
  import {
34
34
  telemetry
35
- } from "./index-ghbkknjz.js";
35
+ } from "./index-wj0gnab0.js";
36
36
  import {
37
37
  exports_external,
38
38
  init_zod
@@ -4,14 +4,14 @@ import {
4
4
  PlanSchema,
5
5
  TaskStatusSchema,
6
6
  init_loader
7
- } from "./index-7rerkeg8.js";
7
+ } from "./index-q8e2yd98.js";
8
8
  import {
9
9
  assertProjectRoot,
10
10
  withEvidenceLock
11
- } from "./index-vrp2zva8.js";
11
+ } from "./index-a90c1gtn.js";
12
12
  import {
13
13
  emit
14
- } from "./index-ghbkknjz.js";
14
+ } from "./index-wj0gnab0.js";
15
15
  import {
16
16
  criticalWarn,
17
17
  init_logger,
@@ -2,23 +2,23 @@
2
2
  import {
3
3
  computePlanStructureHash,
4
4
  derivePlanId
5
- } from "./index-9m8jy3av.js";
5
+ } from "./index-6thxr1q7.js";
6
+ import {
7
+ appendCoreEventSync
8
+ } from "./index-c83bztkp.js";
6
9
  import {
7
10
  unsafePathTextReason
8
11
  } from "./index-556ja8an.js";
9
12
  import {
10
13
  PlanSchema
11
- } from "./index-7rerkeg8.js";
12
- import {
13
- validateSwarmPath
14
- } from "./index-4cgee5vh.js";
14
+ } from "./index-q8e2yd98.js";
15
15
  import {
16
16
  atomicWriteSwarmFile,
17
17
  atomicWriteSwarmFileSync
18
- } from "./index-kg4knw6r.js";
18
+ } from "./index-ame8ek9g.js";
19
19
  import {
20
20
  assertProjectRoot
21
- } from "./index-vrp2zva8.js";
21
+ } from "./index-a90c1gtn.js";
22
22
  import {
23
23
  require_proper_lockfile
24
24
  } from "./index-7g4c7s5r.js";
@@ -1444,9 +1444,7 @@ function readCurrentPlan(directory) {
1444
1444
  var SCOPE_BINDING_AUTO_REVIVE_WINDOW_MS = 24 * 60 * 60 * 1000;
1445
1445
  function appendScopeBindingRevivalEvent(workspace, revived) {
1446
1446
  try {
1447
- const eventsPath = validateSwarmPath(workspace, "events.jsonl");
1448
- fs2.mkdirSync(path2.dirname(eventsPath), { recursive: true });
1449
- fs2.appendFileSync(eventsPath, `${JSON.stringify({
1447
+ appendCoreEventSync(workspace, {
1450
1448
  type: "scope_binding_auto_recovered",
1451
1449
  timestamp: new Date().toISOString(),
1452
1450
  taskId: revived.taskId,
@@ -1454,8 +1452,7 @@ function appendScopeBindingRevivalEvent(workspace, revived) {
1454
1452
  generationId: revived.generationId,
1455
1453
  revision: revived.revision,
1456
1454
  expiresAt: new Date(revived.expiresAt).toISOString()
1457
- })}
1458
- `, "utf-8");
1455
+ });
1459
1456
  } catch {}
1460
1457
  }
1461
1458
  function attemptIdleScopeBindingRevival(directory, resolution) {
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  authorizeCuration
4
- } from "./index-nq4tkfpc.js";
4
+ } from "./index-bmaz2yy4.js";
5
5
  import {
6
6
  findNearDuplicate,
7
7
  inferTags,
@@ -9,13 +9,13 @@ import {
9
9
  resolveSwarmKnowledgePath,
10
10
  resolveSwarmRejectedPath,
11
11
  transactKnowledge
12
- } from "./index-sxtz2d26.js";
12
+ } from "./index-01q7mb83.js";
13
13
  import {
14
14
  resolveKnowledgeStoreDir
15
- } from "./index-k1s8gxjh.js";
15
+ } from "./index-c1h0rdkr.js";
16
16
  import {
17
17
  atomicWriteFile
18
- } from "./index-vhefvcta.js";
18
+ } from "./index-cfvbd3dg.js";
19
19
  import {
20
20
  require_proper_lockfile
21
21
  } from "./index-7g4c7s5r.js";
@@ -12,14 +12,14 @@ import {
12
12
  detectPosixWrites,
13
13
  detectWindowsWrites,
14
14
  resolveWriteTargets
15
- } from "./index-hj1xd3pg.js";
15
+ } from "./index-bcfcekx9.js";
16
16
  import {
17
17
  checkFileAuthority,
18
18
  classifyFile,
19
19
  isInDeclaredScope,
20
20
  redactPath,
21
21
  redactShellCommand
22
- } from "./index-b94487xm.js";
22
+ } from "./index-wsar7d91.js";
23
23
 
24
24
  // src/services/guardrail-explain-service.ts
25
25
  import path from "path";
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  emit
4
- } from "./index-ghbkknjz.js";
4
+ } from "./index-wj0gnab0.js";
5
5
  import {
6
6
  require_proper_lockfile
7
7
  } from "./index-7g4c7s5r.js";
@@ -42,7 +42,7 @@ var SWARM_TEMP_GRAMMARS = [
42
42
  token: "instance",
43
43
  quarantineEligible: true,
44
44
  parsesTarget: true,
45
- producers: ["src/hooks/pr-workflow-gate.ts:14141"],
45
+ producers: ["src/hooks/pr-workflow-gate.ts:14116"],
46
46
  note: "pre/post-rename file-identity verification (assertOpened/ClosedSwarmFileIdentity, pr-workflow-gate.ts:14083-14130) is writer-specific and load-bearing"
47
47
  },
48
48
  {
@@ -66,9 +66,9 @@ var SWARM_TEMP_GRAMMARS = [
66
66
  "src/evidence/task-file.ts:67 (pre-#2035)",
67
67
  "src/scope/scope-persistence.ts:2304 (pre-#2035)",
68
68
  "src/scope/scope-persistence.ts:2318 (pre-#2035)",
69
- "src/plan/manager.ts:628",
70
- "src/plan/manager.ts:1793",
71
- "src/plan/manager.ts:1839",
69
+ "src/plan/manager.ts:629",
70
+ "src/plan/manager.ts:1785",
71
+ "src/plan/manager.ts:1831",
72
72
  "src/review/evidence.ts:160",
73
73
  "src/turbo/lean/evidence.ts:182",
74
74
  "src/summaries/manager.ts:122",
@@ -194,7 +194,7 @@ var SWARM_TEMP_GRAMMARS = [
194
194
  token: "instance",
195
195
  quarantineEligible: true,
196
196
  parsesTarget: true,
197
- producers: ["src/plan/manager.ts:1979", "src/plan/manager.ts:2168"],
197
+ producers: ["src/plan/manager.ts:1971", "src/plan/manager.ts:2160"],
198
198
  note: "plan-durability (invariant 5) fd-write paths; grammars registered, writers unchanged in this PR"
199
199
  },
200
200
  {
@@ -245,7 +245,7 @@ var SWARM_TEMP_GRAMMARS = [
245
245
  quarantineEligible: false,
246
246
  parsesTarget: false,
247
247
  producers: [
248
- "src/tools/checkpoint.ts:194",
248
+ "src/tools/checkpoint.ts:195",
249
249
  "src/full-auto/state.ts:460",
250
250
  "src/context-map/persistence.ts:119",
251
251
  "src/context-map/capsule-persistence.ts:107",
@@ -297,6 +297,7 @@ var WRITER_CLASSIFICATION = Object.freeze({
297
297
  "src/context-map/capsule-persistence.ts": "registered-bespoke",
298
298
  "src/context-map/persistence.ts": "registered-bespoke",
299
299
  "src/context-map/telemetry.ts": "registered-bespoke",
300
+ "src/events/core-events.ts": "registered-bespoke",
300
301
  "src/evidence/documents-retention.ts": "registered-bespoke",
301
302
  "src/evidence/manager.ts": "registered-bespoke",
302
303
  "src/full-auto/state.ts": "registered-bespoke",