opencode-swarm 7.148.5 → 7.149.1

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 (82) hide show
  1. package/dist/background/candidate-contract.d.ts +1 -1
  2. package/dist/background/pending-delegations.d.ts +6 -0
  3. package/dist/background/pr-review-contract.d.ts +20 -0
  4. package/dist/cli/{config-doctor-6z7x0jnz.js → config-doctor-d3nsq1nz.js} +3 -3
  5. package/dist/cli/{core-0ph6pb2y.js → core-y9d858n6.js} +3 -3
  6. package/dist/cli/{curation-policy-fbvctttr.js → curation-policy-nck9g765.js} +6 -6
  7. package/dist/cli/{curator-pffqw3br.js → curator-f5m0hh2p.js} +32 -31
  8. package/dist/cli/{curator-llm-factory-mbsn281q.js → curator-llm-factory-mzh9ns5s.js} +32 -31
  9. package/dist/cli/{evidence-summary-service-9ajw5tpc.js → evidence-summary-service-601x7ne7.js} +15 -14
  10. package/dist/cli/{gate-evidence-wc8wzwaw.js → gate-evidence-kjs9vsx9.js} +9 -9
  11. package/dist/cli/{guardrail-explain-a8706sq1.js → guardrail-explain-j291sss5.js} +33 -32
  12. package/dist/cli/{guardrail-log-wx43bj32.js → guardrail-log-1jykfrqc.js} +6 -4
  13. package/dist/cli/{guardrail-reset-sy0vztrd.js → guardrail-reset-tr07m077.js} +32 -31
  14. package/dist/cli/{hive-promoter-jvyzykgx.js → hive-promoter-162ws6xp.js} +32 -31
  15. package/dist/cli/{index-x3d9asnz.js → index-1aztaa2s.js} +3 -3
  16. package/dist/cli/{index-c6jqkx9d.js → index-38ema5k2.js} +2 -2
  17. package/dist/cli/{index-nq4tkfpc.js → index-4sdhbxgq.js} +1 -1
  18. package/dist/cli/{index-vyg5b8ee.js → index-5gntxwxt.js} +5 -5
  19. package/dist/cli/{index-0yzt06r5.js → index-64d17yd0.js} +2 -2
  20. package/dist/cli/{index-3aev3a0c.js → index-7m8rk72d.js} +491 -369
  21. package/dist/cli/{index-vhefvcta.js → index-apwcvfjt.js} +2 -2
  22. package/dist/cli/{index-arjq717j.js → index-cna8m7my.js} +1 -1
  23. package/dist/cli/{index-59wqcatm.js → index-cqhf7fkw.js} +1 -1
  24. package/dist/cli/{index-jzz52as5.js → index-dkrz1vv5.js} +4 -4
  25. package/dist/cli/{index-kg4knw6r.js → index-dtmgt2xn.js} +11 -10
  26. package/dist/cli/{index-579qg534.js → index-eaq9b0qm.js} +1 -1
  27. package/dist/cli/{index-zhn0q7nf.js → index-ekvs3ade.js} +18 -17
  28. package/dist/cli/index-exn0ztsv.js +881 -0
  29. package/dist/cli/{index-ag9bv589.js → index-f53yyerg.js} +34 -33
  30. package/dist/cli/{index-q7ke7kwd.js → index-fc4x86sy.js} +9 -12
  31. package/dist/cli/{index-zf2vwa7y.js → index-hxbrsb40.js} +2 -2
  32. package/dist/cli/{index-k1s8gxjh.js → index-jb9tb1sd.js} +1 -1
  33. package/dist/cli/{index-haf092ak.js → index-jg2gwzvq.js} +11 -11
  34. package/dist/cli/{index-qwmrt51t.js → index-k2sm9677.js} +1 -1
  35. package/dist/cli/{index-5r2mcgpa.js → index-kgk65rde.js} +1 -1
  36. package/dist/cli/{index-vrp2zva8.js → index-m8dn0qnm.js} +1 -1
  37. package/dist/cli/{index-1w5nnyew.js → index-mdwtj4xm.js} +6 -6
  38. package/dist/cli/{index-j382eh60.js → index-n99s022c.js} +1 -1
  39. package/dist/cli/{index-yezd5ks6.js → index-pf22x0dr.js} +3 -1
  40. package/dist/cli/{index-8djgxw2w.js → index-prxrmc3b.js} +2 -2
  41. package/dist/cli/{index-kj6m9ry3.js → index-srwp8fs7.js} +4 -4
  42. package/dist/cli/{index-5zq3892p.js → index-t994f8fp.js} +4 -4
  43. package/dist/cli/{index-t25evmna.js → index-vy6q9d8j.js} +3 -2
  44. package/dist/cli/{index-ne45ew6z.js → index-xe83cwvn.js} +10 -10
  45. package/dist/cli/{index-ghbkknjz.js → index-xggpmtfx.js} +73 -42
  46. package/dist/cli/{index-qbsc2btq.js → index-yjj3s8af.js} +3 -3
  47. package/dist/cli/index.js +32 -31
  48. package/dist/cli/{knowledge-escalator-bvrtfdyb.js → knowledge-escalator-whkxxgxj.js} +14 -14
  49. package/dist/cli/{knowledge-events-rpvkevbm.js → knowledge-events-rnqzt87h.js} +12 -12
  50. package/dist/cli/{knowledge-link-spw879rs.js → knowledge-link-mzn8x0qd.js} +5 -5
  51. package/dist/cli/{knowledge-store-wjy2kshh.js → knowledge-store-7de59rnz.js} +6 -6
  52. package/dist/cli/{knowledge-validator-cq2cgfcx.js → knowledge-validator-bpk17jf4.js} +8 -8
  53. package/dist/cli/{pending-delegations-f4wvyzbf.js → pending-delegations-qzy6rnvw.js} +3 -3
  54. package/dist/cli/{pr-subscriptions-f4xw1rxy.js → pr-subscriptions-q862pvz1.js} +3 -3
  55. package/dist/cli/{runner-rk26nk58.js → runner-1aygs98c.js} +6 -6
  56. package/dist/cli/{scan-cursor-7n0zs72g.js → scan-cursor-0p51fh61.js} +7 -7
  57. package/dist/cli/{schema-e59spg93.js → schema-8g2nxhjf.js} +1 -1
  58. package/dist/cli/{scope-persistence-d75p900m.js → scope-persistence-hhkr0c46.js} +8 -10
  59. package/dist/cli/{skill-generator-c65y1h6a.js → skill-generator-pk9gcz7r.js} +16 -16
  60. package/dist/cli/{telemetry-1pnsftp0.js → telemetry-5deacb7w.js} +1 -1
  61. package/dist/cli/{workspace-snapshot-nq25j94x.js → workspace-snapshot-8269e1p9.js} +2 -2
  62. package/dist/cli/{worktree-collision-ownership-wqy7mgb3.js → worktree-collision-ownership-9v8e0dz7.js} +8 -8
  63. package/dist/cli/{worktree-isolation-ay9d58w4.js → worktree-isolation-1hwwfbdw.js} +32 -31
  64. package/dist/commands/close.d.ts +1 -0
  65. package/dist/events/core-events.d.ts +250 -0
  66. package/dist/failures/invocation-failure.d.ts +7 -0
  67. package/dist/full-auto/oversight.d.ts +5 -3
  68. package/dist/hooks/full-auto-delegation.d.ts +24 -0
  69. package/dist/hooks/full-auto-input-probe.d.ts +11 -0
  70. package/dist/hooks/pr-workflow-gate.d.ts +37 -6
  71. package/dist/hooks/steering-consumed.d.ts +12 -4
  72. package/dist/index.js +598 -613
  73. package/dist/observability/catalog.d.ts +9 -7
  74. package/dist/services/session-reflection.d.ts +7 -0
  75. package/dist/services/spec-drift-recovery.d.ts +9 -2
  76. package/dist/state.d.ts +10 -0
  77. package/dist/telemetry.d.ts +24 -1
  78. package/dist/tools/dispatch-lanes.d.ts +50 -1
  79. package/dist/tools/write-pr-review-artifact.d.ts +2 -0
  80. package/package.json +3 -1
  81. package/dist/cli/{curator-drift-fv4rttf4.js → curator-drift-2h1d2fnq.js} +1 -1
  82. package/dist/cli/{index-g8wwj0sz.js → index-vnn7qq8c.js} +3 -3
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  atomicWriteFileAnyRoot
4
- } from "./index-kg4knw6r.js";
4
+ } from "./index-dtmgt2xn.js";
5
5
  import {
6
6
  withEvidenceLock
7
- } from "./index-vrp2zva8.js";
7
+ } from "./index-m8dn0qnm.js";
8
8
 
9
9
  // src/evidence/task-file.ts
10
10
  import * as path from "path";
@@ -11,7 +11,7 @@ import {
11
11
  import {
12
12
  init_schema,
13
13
  stripKnownSwarmPrefix
14
- } from "./index-yezd5ks6.js";
14
+ } from "./index-pf22x0dr.js";
15
15
  import {
16
16
  init_constants
17
17
  } from "./index-cpg98bh1.js";
@@ -6,7 +6,7 @@ import {
6
6
  PluginConfigSchema,
7
7
  init_schema,
8
8
  resolveExternalSkillsConfig
9
- } from "./index-yezd5ks6.js";
9
+ } from "./index-pf22x0dr.js";
10
10
  import {
11
11
  GIT_BINARY_ENV_VAR,
12
12
  init_git_executable
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  ALLOWED_SKILL_PATH_PREFIXES,
4
4
  validateSkillPath
5
- } from "./index-kj6m9ry3.js";
5
+ } from "./index-srwp8fs7.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-1w5nnyew.js";
15
+ } from "./index-mdwtj4xm.js";
16
16
  import {
17
17
  effectiveRetrievalOutcomes,
18
18
  readAuthoritativeKnowledgeCounterRollups
19
- } from "./index-ne45ew6z.js";
19
+ } from "./index-xe83cwvn.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-dtmgt2xn.js";
32
32
  import {
33
33
  init_logger,
34
34
  log,
@@ -42,8 +42,8 @@ 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"],
46
- note: "pre/post-rename file-identity verification (assertOpened/ClosedSwarmFileIdentity, pr-workflow-gate.ts:14083-14130) is writer-specific and load-bearing"
45
+ producers: ["src/hooks/pr-workflow-gate.ts:14566"],
46
+ note: "pre/post-rename file-identity verification (assertOpened/ClosedSwarmFileIdentity, pr-workflow-gate.ts:14531-14579) is writer-specific and load-bearing"
47
47
  },
48
48
  {
49
49
  id: "target-suffix-tmp-num-num-json",
@@ -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",
@@ -123,7 +123,7 @@ var SWARM_TEMP_GRAMMARS = [
123
123
  "src/tools/spec-write.ts:98",
124
124
  "src/sdd/effective-spec.ts:1149",
125
125
  "src/background/lane-output-store.ts:353",
126
- "src/background/pending-delegations.ts:982",
126
+ "src/background/pending-delegations.ts:995",
127
127
  "src/background/delegation-health.ts:390",
128
128
  "src/hooks/delegation-gate/worktree-provisioning-owner.ts:100",
129
129
  "src/tools/submit-phase-council-verdicts.ts:458",
@@ -171,8 +171,8 @@ var SWARM_TEMP_GRAMMARS = [
171
171
  quarantineEligible: true,
172
172
  parsesTarget: true,
173
173
  producers: [
174
- "src/tools/write-pr-review-artifact.ts:121",
175
- "src/tools/write-pr-review-artifact.ts:141",
174
+ "src/tools/write-pr-review-artifact.ts:124",
175
+ "src/tools/write-pr-review-artifact.ts:144",
176
176
  "src/tools/write-pr-review-trigger-eval.ts:96"
177
177
  ],
178
178
  note: "bundled-skills writes outside .swarm (project skill roots) and keeps its own contained-directory logic (invariant 4 bundled-skill ownership)"
@@ -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",
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  redactPath,
4
4
  redactShellCommand
5
- } from "./index-arjq717j.js";
5
+ } from "./index-cna8m7my.js";
6
6
 
7
7
  // src/services/guardrail-log-service.ts
8
8
  import * as fs from "fs/promises";
@@ -3,7 +3,7 @@ import {
3
3
  EvaluationRunV1Schema,
4
4
  GateAuditResultV1Schema,
5
5
  getProtectedEvaluationRunIds
6
- } from "./index-8djgxw2w.js";
6
+ } from "./index-prxrmc3b.js";
7
7
  import {
8
8
  loadDatabaseCtor
9
9
  } from "./index-134d35c1.js";
@@ -23,7 +23,7 @@ import {
23
23
  readTaskEvidence,
24
24
  readTaskEvidenceRaw,
25
25
  sanitizeTaskId
26
- } from "./index-haf092ak.js";
26
+ } from "./index-jg2gwzvq.js";
27
27
  import {
28
28
  LedgerStaleWriterError,
29
29
  appendLedgerEvent,
@@ -43,7 +43,10 @@ import {
43
43
  replayFromLedgerWithStatus,
44
44
  takeSnapshotEvent,
45
45
  takeSnapshotWithRetry
46
- } from "./index-x3d9asnz.js";
46
+ } from "./index-1aztaa2s.js";
47
+ import {
48
+ appendCoreEventSync
49
+ } from "./index-exn0ztsv.js";
47
50
  import {
48
51
  init_executor,
49
52
  isUntrustedEnvKey,
@@ -54,15 +57,6 @@ import {
54
57
  EvidenceBundleSchema,
55
58
  EvidenceSchema
56
59
  } from "./index-gprxjmm7.js";
57
- import {
58
- PlanSchema
59
- } from "./index-59wqcatm.js";
60
- import {
61
- GIT_BINARY_ENV_VAR,
62
- describeGitResolution,
63
- init_git_executable,
64
- resolveGitExecutable
65
- } from "./index-9e6fdz2h.js";
66
60
  import {
67
61
  readSwarmFileAsync,
68
62
  validateSwarmPath
@@ -72,14 +66,23 @@ import {
72
66
  bunWrite,
73
67
  mergeEnvForChild
74
68
  } from "./index-r3mvsbtq.js";
69
+ import {
70
+ PlanSchema
71
+ } from "./index-cqhf7fkw.js";
72
+ import {
73
+ GIT_BINARY_ENV_VAR,
74
+ describeGitResolution,
75
+ init_git_executable,
76
+ resolveGitExecutable
77
+ } from "./index-9e6fdz2h.js";
75
78
  import {
76
79
  assertProjectRoot,
77
80
  tryAcquireLock,
78
81
  withEvidenceLock
79
- } from "./index-vrp2zva8.js";
82
+ } from "./index-m8dn0qnm.js";
80
83
  import {
81
84
  emit
82
- } from "./index-ghbkknjz.js";
85
+ } from "./index-xggpmtfx.js";
83
86
  import {
84
87
  ZodError,
85
88
  init_zod
@@ -2361,7 +2364,6 @@ async function loadPlan(directory, cache) {
2361
2364
  } catch {}
2362
2365
  try {
2363
2366
  assertProjectRoot(directory);
2364
- const eventsPath = path5.join(directory, ".swarm", "events.jsonl");
2365
2367
  const event = {
2366
2368
  type: "spec_stale_detected",
2367
2369
  timestamp: new Date().toISOString(),
@@ -2371,8 +2373,7 @@ async function loadPlan(directory, cache) {
2371
2373
  reason: staleResult.reason ?? "unknown",
2372
2374
  planTitle: validated.title
2373
2375
  };
2374
- await fsPromises.appendFile(eventsPath, `${JSON.stringify(event)}
2375
- `, "utf-8");
2376
+ appendCoreEventSync(directory, { ...event });
2376
2377
  } catch {}
2377
2378
  }
2378
2379
  }