opencode-swarm 7.164.13 → 7.166.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 (112) hide show
  1. package/.opencode/skills/durable-session-state/SKILL.md +1 -1
  2. package/.opencode/skills/issue-tracer/SKILL.md +140 -286
  3. package/.opencode/skills/issue-tracer/assets/pr-template.md +13 -7
  4. package/.opencode/skills/issue-tracer/references/acceptance-checks.md +66 -0
  5. package/.opencode/skills/issue-tracer/references/critic-gate.md +53 -11
  6. package/.opencode/skills/issue-tracer/references/evidence-artifacts.md +128 -23
  7. package/.opencode/skills/issue-tracer/references/full-resolution-contract.md +69 -0
  8. package/.opencode/skills/issue-tracer/references/install.md +31 -9
  9. package/.opencode/skills/issue-tracer/references/localization-playbook.md +26 -14
  10. package/.opencode/skills/issue-tracer/references/method-provenance.md +19 -3
  11. package/.opencode/skills/issue-tracer/references/phase-0-setup.md +90 -0
  12. package/.opencode/skills/issue-tracer/references/phase-1-intake.md +43 -0
  13. package/.opencode/skills/issue-tracer/references/untrusted-content.md +13 -5
  14. package/.opencode/skills/issue-tracer/scripts/repro-check.sh +416 -0
  15. package/.opencode/skills/issue-tracer/scripts/trace-check.sh +479 -0
  16. package/.opencode/skills/issue-tracer/scripts/trace-init.sh +96 -6
  17. package/binaries/win32-arm64/swarm-sandbox-runner.exe +0 -0
  18. package/binaries/win32-x64/swarm-sandbox-runner.exe +0 -0
  19. package/dist/background/delegation-cost-identity.d.ts +41 -0
  20. package/dist/background/delegation-lifecycle.d.ts +24 -5
  21. package/dist/background/pending-delegations.d.ts +2 -0
  22. package/dist/background/pr-monitor-worker.d.ts +60 -6
  23. package/dist/background/pr-subscriptions.d.ts +13 -0
  24. package/dist/cli/{capability-probe-5wa7mcp6.js → capability-probe-faqefhah.js} +2 -1
  25. package/dist/cli/{coder-settlement-em2fgg4p.js → coder-settlement-ydg2jfrk.js} +8 -8
  26. package/dist/cli/{config-doctor-1m4mrybp.js → config-doctor-drqx6tzc.js} +2 -2
  27. package/dist/cli/{core-zbzdffha.js → core-x6sftfwt.js} +1 -1
  28. package/dist/cli/{curation-policy-bqpmry2n.js → curation-policy-jtzwz6bc.js} +4 -4
  29. package/dist/cli/{curator-drift-hbc3w5zj.js → curator-drift-2vwtkegg.js} +2 -2
  30. package/dist/cli/{curator-tn3x5j02.js → curator-kg2h8jjf.js} +34 -34
  31. package/dist/cli/curator-llm-factory-7znajprp.js +70 -0
  32. package/dist/cli/{evidence-summary-service-7cn9z4sn.js → evidence-summary-service-ry5ebnmq.js} +15 -15
  33. package/dist/cli/{gate-evidence-deyzt3hz.js → gate-evidence-qgeceqy8.js} +5 -5
  34. package/dist/cli/guardrail-explain-jdv4n2j3.js +71 -0
  35. package/dist/cli/{guardrail-log-cnbv6vry.js → guardrail-log-s7c3rpde.js} +7 -7
  36. package/dist/cli/{guardrail-reset-xhh61cax.js → guardrail-reset-4nmy7xas.js} +34 -34
  37. package/dist/cli/{hive-promoter-1m8zpz4d.js → hive-promoter-w5tsgttc.js} +34 -34
  38. package/dist/cli/{index-tqw8w2n5.js → index-17yszqs5.js} +1 -1
  39. package/dist/cli/{index-3c0z1jnc.js → index-289epdpc.js} +36 -36
  40. package/dist/cli/{index-fnyw5rzg.js → index-2dvk153d.js} +14 -12
  41. package/dist/cli/{index-5h60rtaa.js → index-2rm5x9ps.js} +1 -1
  42. package/dist/cli/{index-xwbn7c8m.js → index-2v17wb75.js} +2 -2
  43. package/dist/cli/{index-ndjjvxzz.js → index-30f4fe30.js} +4 -4
  44. package/dist/cli/{index-g11h1qpk.js → index-359djbj1.js} +5 -5
  45. package/dist/cli/{index-bvkd7at6.js → index-4mpdy32j.js} +1 -1
  46. package/dist/cli/{index-hhzzyjm3.js → index-52jfm5s0.js} +13 -6
  47. package/dist/cli/{index-6m24v15v.js → index-79sr3fd1.js} +2 -2
  48. package/dist/cli/{index-dh5th4jn.js → index-8hqkrd2j.js} +1 -1
  49. package/dist/cli/{index-s3k7xbqd.js → index-8m12y79g.js} +11 -9
  50. package/dist/cli/{index-74514zkh.js → index-8n62bphd.js} +11 -7
  51. package/dist/cli/{index-4fhcbe14.js → index-9hy5q7gp.js} +15 -12
  52. package/dist/cli/{index-7z9zqxqt.js → index-a5w71m8f.js} +4 -4
  53. package/dist/cli/{index-6rx1rdaq.js → index-a7rw4g4s.js} +1 -1
  54. package/dist/cli/{index-w6988bbc.js → index-aftapk6j.js} +75 -1
  55. package/dist/cli/{index-c98rjgjq.js → index-an89qzd9.js} +2074 -545
  56. package/dist/cli/{index-d224mhr9.js → index-apxaa755.js} +2 -2
  57. package/dist/cli/{index-j2svfhzk.js → index-axf65x87.js} +1 -1
  58. package/dist/cli/{index-g9weyhq6.js → index-bw7r2b2m.js} +2 -2
  59. package/dist/cli/{index-ajknebrc.js → index-c20gf089.js} +1 -1
  60. package/dist/cli/{index-ptsqnxwd.js → index-czr3jcg6.js} +20 -10
  61. package/dist/cli/{index-jre6tm3v.js → index-edm41q4j.js} +1 -1
  62. package/dist/cli/{index-f8jdar6q.js → index-ejf6w8vw.js} +2 -2
  63. package/dist/cli/{index-grn6tkbt.js → index-fywshabz.js} +6 -6
  64. package/dist/cli/{index-7f2r3ysr.js → index-hrkamw9q.js} +3 -3
  65. package/dist/cli/{index-f36hy1x4.js → index-hvk3zs62.js} +1 -1
  66. package/dist/cli/{index-5ebgzb5a.js → index-hwj25q9r.js} +78 -53
  67. package/dist/cli/{index-qtxevgdx.js → index-jc9cxh90.js} +7 -7
  68. package/dist/cli/{index-e45htt92.js → index-jx9f4ke1.js} +1 -1
  69. package/dist/cli/{index-0mwjamha.js → index-mg43w8p2.js} +1 -1
  70. package/dist/cli/{index-asey3tb3.js → index-nb924ar6.js} +2 -2
  71. package/dist/cli/{index-zb6gdym8.js → index-p04pa9c9.js} +1 -1
  72. package/dist/cli/{index-4fwbbad3.js → index-q1r1cfww.js} +46 -17
  73. package/dist/cli/{index-mpf1tvwf.js → index-qkq56zyr.js} +11 -11
  74. package/dist/cli/{index-y5hfk7ya.js → index-rkn17q5e.js} +3 -3
  75. package/dist/cli/{index-556ja8an.js → index-yzjaj53h.js} +9 -2
  76. package/dist/cli/index.js +34 -34
  77. package/dist/cli/{knowledge-escalator-3fax9y3s.js → knowledge-escalator-xdzmr31d.js} +10 -10
  78. package/dist/cli/{knowledge-events-9cpdyhmb.js → knowledge-events-1t1t0bv7.js} +8 -8
  79. package/dist/cli/{knowledge-link-dgvbqjqg.js → knowledge-link-1zykfk1p.js} +3 -3
  80. package/dist/cli/{knowledge-store-y35rka0p.js → knowledge-store-m2snb0xg.js} +4 -4
  81. package/dist/cli/{knowledge-validator-fd761gpx.js → knowledge-validator-tf7yq2pd.js} +6 -6
  82. package/dist/cli/{pending-delegations-t3y19j3n.js → pending-delegations-jr8hwxrz.js} +11 -9
  83. package/dist/cli/{pr-subscriptions-00zp69mt.js → pr-subscriptions-ca1xmf9r.js} +13 -9
  84. package/dist/cli/{pr-workflow-gate-2h0j8c92.js → pr-workflow-gate-fb1dj0zx.js} +34 -34
  85. package/dist/cli/{runner-0e3bjeev.js → runner-j3acybhs.js} +4 -4
  86. package/dist/cli/{scan-cursor-wppe2gxw.js → scan-cursor-3gdvy0ym.js} +5 -5
  87. package/dist/cli/{schema-sec49ppy.js → schema-mzb1354k.js} +1 -1
  88. package/dist/cli/{scope-persistence-59eyqaz4.js → scope-persistence-c4n21b5n.js} +14 -14
  89. package/dist/cli/{skill-generator-56rbmpj7.js → skill-generator-dvpvwt8k.js} +12 -12
  90. package/dist/cli/{snapshot-coordination-init-dnkdc7gx.js → snapshot-coordination-init-g7v63zcm.js} +34 -34
  91. package/dist/cli/{telemetry-a1yvjerj.js → telemetry-9h1z2w9d.js} +1 -1
  92. package/dist/cli/{worktree-collision-ownership-fj9n4mhk.js → worktree-collision-ownership-k15qrpy9.js} +9 -9
  93. package/dist/cli/{worktree-isolation-vd1s86ya.js → worktree-isolation-y7ec1pm5.js} +34 -34
  94. package/dist/commands/pr-monitor-status.d.ts +2 -0
  95. package/dist/commands/registry.d.ts +8 -0
  96. package/dist/commands/report.d.ts +36 -0
  97. package/dist/config/skill-mirrors.d.ts +3 -3
  98. package/dist/db/observability-event-store.d.ts +162 -0
  99. package/dist/git/pr.d.ts +23 -25
  100. package/dist/hooks/context-capsule-inject.d.ts +3 -0
  101. package/dist/index.d.ts +6 -1
  102. package/dist/index.js +522 -429
  103. package/dist/observability/catalog.d.ts +8 -4
  104. package/dist/sandbox/executor.d.ts +10 -0
  105. package/dist/sandbox/win32/runner-client.d.ts +7 -0
  106. package/dist/services/context-attribution.d.ts +69 -0
  107. package/dist/services/cost-accounting.d.ts +2 -0
  108. package/dist/telemetry.d.ts +10 -2
  109. package/opencode-swarm.schema.json +1 -1
  110. package/package.json +1 -1
  111. package/dist/cli/curator-llm-factory-j76c96t7.js +0 -70
  112. package/dist/cli/guardrail-explain-4k2pqj46.js +0 -71
@@ -5,7 +5,7 @@ import {
5
5
  batchDurabilityClass,
6
6
  classifyDbWriteError,
7
7
  getProjectDb
8
- } from "./index-w6988bbc.js";
8
+ } from "./index-aftapk6j.js";
9
9
  import {
10
10
  _internals,
11
11
  canonicalRootKeyFresh
@@ -1,13 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  computePlanStructureHash
4
- } from "./index-ndjjvxzz.js";
4
+ } from "./index-30f4fe30.js";
5
5
  import {
6
6
  appendCoreEventSync
7
- } from "./index-xwbn7c8m.js";
8
- import {
9
- unsafePathTextReason
10
- } from "./index-556ja8an.js";
7
+ } from "./index-2v17wb75.js";
11
8
  import {
12
9
  deleteCoordinationState,
13
10
  derivePlanId,
@@ -16,17 +13,17 @@ import {
16
13
  transitionCoordinationState,
17
14
  transitionCoordinationStateWithinTransaction,
18
15
  withCoordinationTransaction
19
- } from "./index-e45htt92.js";
16
+ } from "./index-jx9f4ke1.js";
20
17
  import {
21
18
  getProjectDb
22
- } from "./index-w6988bbc.js";
19
+ } from "./index-aftapk6j.js";
23
20
  import {
24
21
  canonicalExistingFilesystemPath,
25
22
  legacyCanonicalExistingFilesystemPath
26
23
  } from "./index-ry16d01s.js";
27
24
  import {
28
25
  assertProjectRoot
29
- } from "./index-jre6tm3v.js";
26
+ } from "./index-edm41q4j.js";
30
27
  import {
31
28
  atomicWriteSwarmFile,
32
29
  atomicWriteSwarmFileSync
@@ -36,7 +33,11 @@ import {
36
33
  } from "./index-7g4c7s5r.js";
37
34
  import {
38
35
  PlanSchema
39
- } from "./index-0mwjamha.js";
36
+ } from "./index-mg43w8p2.js";
37
+ import {
38
+ init_path_identity,
39
+ unsafePathTextReason
40
+ } from "./index-yzjaj53h.js";
40
41
  import {
41
42
  __toESM
42
43
  } from "./index-a76rekgs.js";
@@ -50,6 +51,7 @@ import * as path2 from "path";
50
51
  // src/scope/scope-binding.ts
51
52
  import { randomUUID } from "crypto";
52
53
  import * as path from "path";
54
+ init_path_identity();
53
55
  var MAX_PENDING_SCOPE_BINDINGS = 256;
54
56
  var DEFAULT_SCOPE_BINDING_TTL_MS = 60 * 60 * 1000;
55
57
  var MAX_SCOPE_BINDING_TOMBSTONES = 256;
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  autoCommitDirty,
4
4
  cleanUntrackedFiles
5
- } from "./index-5h60rtaa.js";
5
+ } from "./index-2rm5x9ps.js";
6
6
  import {
7
7
  validateSwarmPath
8
8
  } from "./index-anxs69ad.js";
@@ -10,19 +10,15 @@ import {
10
10
  bunSpawn,
11
11
  classifySpawnFailure
12
12
  } from "./index-p612v1mv.js";
13
- import {
14
- isPathWithinDeclaredScope,
15
- unsafePathTextReason
16
- } from "./index-556ja8an.js";
17
13
  import {
18
14
  assertProjectRoot,
19
15
  atomicWriteFile,
20
16
  taskEvidencePath,
21
17
  withTaskEvidenceLock
22
- } from "./index-jre6tm3v.js";
18
+ } from "./index-edm41q4j.js";
23
19
  import {
24
20
  telemetry
25
- } from "./index-5ebgzb5a.js";
21
+ } from "./index-hwj25q9r.js";
26
22
  import {
27
23
  init_git_executable,
28
24
  resolveGitExecutable
@@ -35,6 +31,11 @@ import {
35
31
  exports_external,
36
32
  init_zod
37
33
  } from "./index-bpmtbmy9.js";
34
+ import {
35
+ init_path_identity,
36
+ isPathWithinDeclaredScope,
37
+ unsafePathTextReason
38
+ } from "./index-yzjaj53h.js";
38
39
  import {
39
40
  log
40
41
  } from "./index-zgwm4ryv.js";
@@ -301,6 +302,9 @@ import * as fs4 from "fs";
301
302
  import { mkdir, open } from "fs/promises";
302
303
  import { dirname } from "path";
303
304
 
305
+ // src/workflow/workflow-wal-schema.ts
306
+ init_path_identity();
307
+
304
308
  // src/worktree/merge.ts
305
309
  init_warning_buffer();
306
310
  import * as fs3 from "fs";
@@ -1,26 +1,27 @@
1
1
  // @bun
2
- import {
3
- getPathFlavor,
4
- isOnDifferentPathRoot,
5
- isPathIdentityWithin,
6
- isPathWithinDeclaredScope,
7
- pathIdentitiesEqual,
8
- sanitizeDiagnosticText,
9
- unsafePathTextReason
10
- } from "./index-556ja8an.js";
11
2
  import {
12
3
  observeStoreHealth
13
- } from "./index-j2svfhzk.js";
4
+ } from "./index-axf65x87.js";
14
5
  import {
15
6
  telemetry
16
- } from "./index-5ebgzb5a.js";
7
+ } from "./index-hwj25q9r.js";
17
8
  import {
18
9
  init_schema,
19
10
  stripKnownSwarmPrefix
20
- } from "./index-asey3tb3.js";
11
+ } from "./index-nb924ar6.js";
21
12
  import {
22
13
  init_constants
23
14
  } from "./index-a0d4fp6r.js";
15
+ import {
16
+ getPathFlavor,
17
+ init_path_identity,
18
+ isOnDifferentPathRoot,
19
+ isPathIdentityWithin,
20
+ isPathWithinDeclaredScope,
21
+ pathIdentitiesEqual,
22
+ sanitizeDiagnosticText,
23
+ unsafePathTextReason
24
+ } from "./index-yzjaj53h.js";
24
25
  import {
25
26
  init_logger,
26
27
  warn
@@ -2075,6 +2076,7 @@ class QuickLRU extends Map {
2075
2076
 
2076
2077
  // src/hooks/guardrails/file-authority.ts
2077
2078
  init_schema();
2079
+ init_path_identity();
2078
2080
 
2079
2081
  // src/security/protected-path-policy.ts
2080
2082
  import * as path from "path";
@@ -2652,6 +2654,7 @@ function checkFileAuthority(agentName, filePath, cwd, authorityConfig, options =
2652
2654
 
2653
2655
  // src/hooks/guardrails/helpers.ts
2654
2656
  init_constants();
2657
+ init_path_identity();
2655
2658
  function isInDeclaredScope(filePath, scopeEntries, cwd) {
2656
2659
  return isPathWithinDeclaredScope(filePath, scopeEntries, cwd);
2657
2660
  }
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  authorizeCuration
4
- } from "./index-ajknebrc.js";
4
+ } from "./index-c20gf089.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-grn6tkbt.js";
12
+ } from "./index-fywshabz.js";
13
13
  import {
14
14
  resolveKnowledgeStoreDir
15
- } from "./index-6rx1rdaq.js";
15
+ } from "./index-a7rw4g4s.js";
16
16
  import {
17
17
  atomicWriteFile
18
- } from "./index-jre6tm3v.js";
18
+ } from "./index-edm41q4j.js";
19
19
  import {
20
20
  require_proper_lockfile
21
21
  } from "./index-7g4c7s5r.js";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./index-7qefgq4j.js";
5
5
  import {
6
6
  atomicWriteFile
7
- } from "./index-jre6tm3v.js";
7
+ } from "./index-edm41q4j.js";
8
8
  import {
9
9
  init_logger,
10
10
  warn
@@ -334,6 +334,77 @@ var MIGRATIONS = [
334
334
  name: "create_coordination_event_fence_global_age_index",
335
335
  sql: `CREATE INDEX IF NOT EXISTS idx_coordination_event_fence_global_age
336
336
  ON coordination_event_fence(created_at, stream_id)`
337
+ },
338
+ {
339
+ version: 29,
340
+ name: "create_observability_event",
341
+ sql: `CREATE TABLE IF NOT EXISTS observability_event (
342
+ event_id TEXT PRIMARY KEY,
343
+ kind TEXT NOT NULL,
344
+ category TEXT,
345
+ severity TEXT,
346
+ occurred_at TEXT NOT NULL,
347
+ writer_sequence INTEGER,
348
+ trace_id TEXT,
349
+ span_id TEXT,
350
+ host_session_id TEXT,
351
+ task_id TEXT,
352
+ lane_id TEXT,
353
+ batch_id TEXT,
354
+ phase_id TEXT,
355
+ council_round_id TEXT,
356
+ project_ref TEXT,
357
+ outcome_status TEXT,
358
+ retry_index INTEGER,
359
+ privacy_class TEXT,
360
+ sampled INTEGER,
361
+ payload_json TEXT NOT NULL,
362
+ relationship_violations TEXT,
363
+ quarantined INTEGER NOT NULL DEFAULT 0,
364
+ quarantine_reason TEXT,
365
+ ingested_via TEXT NOT NULL
366
+ )`
367
+ },
368
+ {
369
+ version: 30,
370
+ name: "create_observability_event_indexes",
371
+ sql: `CREATE INDEX IF NOT EXISTS idx_obs_event_occurred
372
+ ON observability_event(occurred_at);
373
+ CREATE INDEX IF NOT EXISTS idx_obs_event_kind
374
+ ON observability_event(kind, occurred_at);
375
+ CREATE INDEX IF NOT EXISTS idx_obs_event_session
376
+ ON observability_event(host_session_id, occurred_at);
377
+ CREATE INDEX IF NOT EXISTS idx_obs_event_task
378
+ ON observability_event(task_id, occurred_at);
379
+ CREATE INDEX IF NOT EXISTS idx_obs_event_trace
380
+ ON observability_event(trace_id);
381
+ CREATE INDEX IF NOT EXISTS idx_obs_event_batch
382
+ ON observability_event(batch_id)`
383
+ },
384
+ {
385
+ version: 31,
386
+ name: "create_observability_sink_health",
387
+ sql: `CREATE TABLE IF NOT EXISTS observability_sink_health (
388
+ id INTEGER PRIMARY KEY CHECK(id = 1),
389
+ accepted INTEGER NOT NULL DEFAULT 0,
390
+ quarantined INTEGER NOT NULL DEFAULT 0,
391
+ dropped INTEGER NOT NULL DEFAULT 0,
392
+ last_error_category TEXT,
393
+ last_error_at TEXT,
394
+ last_flush_at TEXT,
395
+ updated_at TEXT NOT NULL
396
+ )`
397
+ },
398
+ {
399
+ version: 32,
400
+ name: "create_observability_import",
401
+ sql: `CREATE TABLE IF NOT EXISTS observability_import (
402
+ source TEXT PRIMARY KEY,
403
+ fingerprint_size INTEGER NOT NULL,
404
+ fingerprint_mtime_ms INTEGER NOT NULL,
405
+ lines_seen INTEGER NOT NULL CHECK(lines_seen >= 0),
406
+ imported_at TEXT NOT NULL
407
+ )`
337
408
  }
338
409
  ];
339
410
  var _projectDbs = new Map;
@@ -610,7 +681,10 @@ var DURABILITY_CLASSES = {
610
681
  phase_report: "normal",
611
682
  project_constraints: "normal",
612
683
  migration_failures: "normal",
613
- schema_migrations: "normal"
684
+ schema_migrations: "normal",
685
+ observability_event: "normal",
686
+ observability_sink_health: "normal",
687
+ observability_import: "normal"
614
688
  };
615
689
  function batchDurabilityClass(classes) {
616
690
  for (const cls of classes) {