opencode-swarm 7.178.1 → 7.179.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 (96) hide show
  1. package/.opencode/skills/deep-dive/SKILL.md +1 -1
  2. package/.opencode/skills/running-tests/SKILL.md +30 -24
  3. package/.opencode/skills/swarm-plan/SKILL.md +1 -1
  4. package/binaries/win32-arm64/swarm-sandbox-runner.exe +0 -0
  5. package/binaries/win32-x64/swarm-sandbox-runner.exe +0 -0
  6. package/dist/agents/critic.d.ts +6 -6
  7. package/dist/agents/explorer.d.ts +1 -1
  8. package/dist/cli/{coder-settlement-m03dfyec.js → coder-settlement-7pt3a0y0.js} +8 -8
  9. package/dist/cli/{config-doctor-x8b260sh.js → config-doctor-82w4bp4b.js} +3 -3
  10. package/dist/cli/{core-2d0xcyby.js → core-9rqzs794.js} +2 -2
  11. package/dist/cli/{curation-policy-7am15ht9.js → curation-policy-c7mdsf7m.js} +4 -4
  12. package/dist/cli/{curator-llm-factory-rgdb2ee5.js → curator-llm-factory-cbm1ny30.js} +33 -33
  13. package/dist/cli/{curator-5kfkqzc9.js → curator-m8act07j.js} +33 -33
  14. package/dist/cli/{dispatch-9yqqqfr6.js → dispatch-3rwdxpp2.js} +1 -1
  15. package/dist/cli/{evidence-summary-service-959pwbwb.js → evidence-summary-service-a99bgje1.js} +13 -13
  16. package/dist/cli/{explorer-2cv64zfj.js → explorer-z0cf5cz0.js} +1 -1
  17. package/dist/cli/{gate-evidence-66kjx6zj.js → gate-evidence-yssmxba5.js} +5 -5
  18. package/dist/cli/{guardrail-explain-rre9ntq3.js → guardrail-explain-ffwmhf7s.js} +34 -34
  19. package/dist/cli/{guardrail-log-t0ydqz5s.js → guardrail-log-j2wtq7p2.js} +7 -7
  20. package/dist/cli/{guardrail-reset-6gad352a.js → guardrail-reset-07byr7nr.js} +33 -33
  21. package/dist/cli/{hive-promoter-zgnagx67.js → hive-promoter-ewrz7vh1.js} +33 -33
  22. package/dist/cli/{index-ksq6cqg0.js → index-09wm3963.js} +5 -5
  23. package/dist/cli/{index-6e8fpjdg.js → index-0bc8jdnv.js} +2 -2
  24. package/dist/cli/{index-xr9n0vjv.js → index-0h3cr7pn.js} +1 -1
  25. package/dist/cli/{index-fyfbpz4f.js → index-1c1dbwze.js} +1 -0
  26. package/dist/cli/{index-1zrrerev.js → index-1rwyfvq2.js} +2 -2
  27. package/dist/cli/{index-qbs49vge.js → index-1sz02k85.js} +1 -1
  28. package/dist/cli/{index-t8dqe4ns.js → index-34bwqcea.js} +1 -1
  29. package/dist/cli/{index-7kty6f59.js → index-3hne91yd.js} +5 -5
  30. package/dist/cli/{index-yew23624.js → index-6r92fw88.js} +4 -4
  31. package/dist/cli/{index-j7w16s92.js → index-6tnkvqr9.js} +2 -2
  32. package/dist/cli/{index-x1m1nnry.js → index-7zmbtxw1.js} +4 -4
  33. package/dist/cli/{index-kj599831.js → index-80q47hpw.js} +2 -2
  34. package/dist/cli/{index-r78kphsr.js → index-8815e95e.js} +3 -3
  35. package/dist/cli/{index-pyxs697r.js → index-9p1pqykb.js} +5 -5
  36. package/dist/cli/{index-whjrhatw.js → index-a11ztzs5.js} +18 -1
  37. package/dist/cli/{index-eq1n57tg.js → index-amf88k1e.js} +1 -1
  38. package/dist/cli/{index-bb148vht.js → index-cvg402ha.js} +1 -1
  39. package/dist/cli/{index-wajcx84s.js → index-d66zb40k.js} +651 -179
  40. package/dist/cli/{index-1jcy4gc6.js → index-etmwjgre.js} +33 -33
  41. package/dist/cli/{index-kz9pcqn9.js → index-f2v90gfc.js} +1 -1
  42. package/dist/cli/{index-7n4dtzk4.js → index-g6nyk713.js} +1 -1
  43. package/dist/cli/{index-w1b5qqnp.js → index-h59vsbch.js} +2 -2
  44. package/dist/cli/{index-xr3eye3f.js → index-hwcra3y9.js} +7 -7
  45. package/dist/cli/{index-2e6txjp7.js → index-kanxpgf8.js} +3 -3
  46. package/dist/cli/{index-1hgqs8j8.js → index-kmhnkn6t.js} +3 -3
  47. package/dist/cli/{index-2pyba37z.js → index-ndwbb3xm.js} +6 -6
  48. package/dist/cli/{index-nrfjjqm4.js → index-pskba939.js} +1 -1
  49. package/dist/cli/{index-1qnykdaw.js → index-pxtye2ng.js} +35 -35
  50. package/dist/cli/{index-pk97v7b8.js → index-qt0793qm.js} +4 -4
  51. package/dist/cli/{index-x54339yd.js → index-qxk5qkfh.js} +5 -5
  52. package/dist/cli/{index-4e4zsj2g.js → index-sv4y1cma.js} +5 -5
  53. package/dist/cli/{index-byfrearz.js → index-tmy46dtd.js} +4 -4
  54. package/dist/cli/{index-zv3j0v08.js → index-twtez316.js} +2 -2
  55. package/dist/cli/{index-m2n1rhgv.js → index-w872yykk.js} +1 -1
  56. package/dist/cli/{index-h0kyy9rd.js → index-wvpsm8ja.js} +9 -9
  57. package/dist/cli/{index-b50qevsm.js → index-yagqxt2p.js} +4 -4
  58. package/dist/cli/{index-0pmh1kks.js → index-yfpswnjt.js} +1 -1
  59. package/dist/cli/{index-hnvmj9wx.js → index-zgvzbz48.js} +14 -4
  60. package/dist/cli/index.js +34 -34
  61. package/dist/cli/{knowledge-escalator-5r6mww64.js → knowledge-escalator-yx97q9c1.js} +11 -11
  62. package/dist/cli/{knowledge-events-typjw0sd.js → knowledge-events-p269fyvv.js} +9 -9
  63. package/dist/cli/{knowledge-link-mvykydxg.js → knowledge-link-gfz47ves.js} +3 -3
  64. package/dist/cli/{knowledge-store-9qcf3emn.js → knowledge-store-36zemyqa.js} +4 -4
  65. package/dist/cli/{knowledge-validator-k6ydsxzy.js → knowledge-validator-rd20yq41.js} +6 -6
  66. package/dist/cli/{mcp-tedxsgey.js → mcp-sg9zrkz2.js} +1 -1
  67. package/dist/cli/{model-preflight-kh9dwts2.js → model-preflight-61xgqwcs.js} +1 -1
  68. package/dist/cli/{pending-delegations-d20fnrzv.js → pending-delegations-8p2gf4kt.js} +8 -8
  69. package/dist/cli/{pr-subscriptions-awwhg139.js → pr-subscriptions-4dj9r71h.js} +8 -8
  70. package/dist/cli/{pr-workflow-gate-ke79bb9c.js → pr-workflow-gate-8dgz5z1h.js} +35 -33
  71. package/dist/cli/{runner-y3sydwtj.js → runner-16b691ba.js} +4 -4
  72. package/dist/cli/{scan-cursor-16s6dp7f.js → scan-cursor-nx0jv9ya.js} +5 -5
  73. package/dist/cli/{schema-nqjp43vq.js → schema-q6gsrxwz.js} +2 -2
  74. package/dist/cli/{scope-persistence-8z1hwdr2.js → scope-persistence-1k4xsyh7.js} +13 -13
  75. package/dist/cli/{server-x16hp9aq.js → server-shhxq34t.js} +33 -33
  76. package/dist/cli/{skill-generator-xadg43ph.js → skill-generator-6j7tq2tb.js} +13 -13
  77. package/dist/cli/{snapshot-coordination-init-3yyzb2c4.js → snapshot-coordination-init-h8n8w1cm.js} +33 -33
  78. package/dist/cli/{telemetry-c9wv2cfw.js → telemetry-qxav5cdk.js} +1 -1
  79. package/dist/cli/{worktree-collision-ownership-drqhmmtd.js → worktree-collision-ownership-97jzh4ra.js} +8 -8
  80. package/dist/cli/{worktree-isolation-aebdyb1m.js → worktree-isolation-g4w74ccb.js} +33 -33
  81. package/dist/commands/registry.d.ts +3 -3
  82. package/dist/db/coordination-store.d.ts +10 -0
  83. package/dist/hooks/pr-workflow-gate.d.ts +15 -6
  84. package/dist/index.js +77 -64
  85. package/dist/mutation/engine.d.ts +6 -0
  86. package/dist/mutation/equivalence.d.ts +12 -1
  87. package/dist/pr-review/circuit.d.ts +3 -3
  88. package/dist/pr-review/legacy-transcript-adapter.d.ts +7 -10
  89. package/dist/pr-review/persistence.d.ts +36 -0
  90. package/dist/retention/sweep.d.ts +4 -0
  91. package/dist/tools/mutation-test.d.ts +6 -0
  92. package/dist/tools/prepare-pr-workflow-checkout.d.ts +19 -0
  93. package/dist/tools/repo-map-action-dispositions.d.ts +23 -0
  94. package/dist/tools/test-runner.d.ts +17 -2
  95. package/package.json +1 -1
  96. package/dist/pr-review/guardrails.d.ts +0 -67
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  derivePlanId,
4
4
  derivePlanIdentityHash
5
- } from "./index-whjrhatw.js";
5
+ } from "./index-a11ztzs5.js";
6
6
  import {
7
7
  getProjectDb,
8
8
  projectDbExists,
@@ -12,10 +12,10 @@ import {
12
12
  import {
13
13
  assertProjectRoot,
14
14
  withEvidenceLock
15
- } from "./index-kz9pcqn9.js";
15
+ } from "./index-f2v90gfc.js";
16
16
  import {
17
17
  emit
18
- } from "./index-pk97v7b8.js";
18
+ } from "./index-qt0793qm.js";
19
19
  import {
20
20
  ExecutionProfileSchema,
21
21
  PlanSchema,
@@ -23,11 +23,11 @@ import {
23
23
  init_loader,
24
24
  loadPluginConfig,
25
25
  normalizeCurrentPhaseInPlace
26
- } from "./index-qbs49vge.js";
26
+ } from "./index-1sz02k85.js";
27
27
  import {
28
28
  init_package,
29
29
  package_default
30
- } from "./index-zv3j0v08.js";
30
+ } from "./index-twtez316.js";
31
31
  import {
32
32
  criticalWarn,
33
33
  init_logger,
@@ -12,13 +12,13 @@ import {
12
12
  PluginConfigSchema,
13
13
  init_schema,
14
14
  stripKnownSwarmPrefix
15
- } from "./index-zv3j0v08.js";
15
+ } from "./index-twtez316.js";
16
16
  import {
17
17
  ALL_AGENT_NAMES,
18
18
  TOOL_NAME_SET,
19
19
  init_constants,
20
20
  init_tool_metadata
21
- } from "./index-m2n1rhgv.js";
21
+ } from "./index-w872yykk.js";
22
22
  import {
23
23
  log
24
24
  } from "./index-zgwm4ryv.js";
@@ -11,7 +11,7 @@ import {
11
11
  readLinkPointer,
12
12
  resolveKnowledgeStoreDir,
13
13
  resolveLinkDir
14
- } from "./index-t8dqe4ns.js";
14
+ } from "./index-34bwqcea.js";
15
15
 
16
16
  // src/knowledge/curation-policy.ts
17
17
  import { readFile as readFile2 } from "fs/promises";
@@ -38,6 +38,7 @@ INPUT: [focus areas/paths]
38
38
 
39
39
  ACTIONS:
40
40
  - FIRST call \`repo_map action="ask"\` with your mission question, and \`action="context_pack"\` (with include_source: true) for your target symbols; use the hits to decide what to read
41
+ - Locate symbols by name with \`repo_map action="symbol_search"\` before reading files; treat hits as pointers, not evidence
41
42
  - Graph output is orientation \u2014 read the located files before reporting on them
42
43
  - Fall back to tree/glob/grep only where the graph has no coverage (\`stale: true\`, missing files, or non-code assets)
43
44
  - Read key files (README, configs, entry points)
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  readKnowledge,
4
4
  transactKnowledge
5
- } from "./index-2pyba37z.js";
5
+ } from "./index-ndwbb3xm.js";
6
6
  import {
7
7
  resolveKnowledgeStoreDir
8
- } from "./index-t8dqe4ns.js";
8
+ } from "./index-34bwqcea.js";
9
9
  import {
10
10
  init_git_executable,
11
11
  resolveGitExecutableAsync
@@ -14,7 +14,7 @@ import {
14
14
  PluginConfigSchema,
15
15
  init_schema,
16
16
  resolveExternalSkillsConfig
17
- } from "./index-zv3j0v08.js";
17
+ } from "./index-twtez316.js";
18
18
  import {
19
19
  exports_external,
20
20
  init_zod
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  atomicWriteFile
4
- } from "./index-kz9pcqn9.js";
4
+ } from "./index-f2v90gfc.js";
5
5
  import {
6
6
  canonicalRootKeyFresh
7
7
  } from "./index-1xnse449.js";
@@ -14,16 +14,16 @@ import {
14
14
  reconcileLandedMerge,
15
15
  withTaskEvidenceTransaction,
16
16
  writeWorkflowWalFile
17
- } from "./index-1hgqs8j8.js";
17
+ } from "./index-kmhnkn6t.js";
18
18
  import {
19
19
  validateSwarmPath
20
20
  } from "./index-s4bkey0q.js";
21
21
  import {
22
22
  appendCoreEventSync
23
- } from "./index-w1b5qqnp.js";
23
+ } from "./index-h59vsbch.js";
24
24
  import {
25
25
  tryAcquireLock
26
- } from "./index-kz9pcqn9.js";
26
+ } from "./index-f2v90gfc.js";
27
27
  import {
28
28
  canonicalRootKeyFresh
29
29
  } from "./index-1xnse449.js";
@@ -501,7 +501,7 @@ async function cleanupRecoveredWorktree(directory, descriptor, options) {
501
501
  awaitingMergeByCallID,
502
502
  cleanupStandardWorktreeForCallId,
503
503
  standardWorktreeByCallID
504
- } = await import("./worktree-isolation-aebdyb1m.js");
504
+ } = await import("./worktree-isolation-g4w74ccb.js");
505
505
  standardWorktreeByCallID.delete(descriptor.callID);
506
506
  if (hasResidue)
507
507
  awaitingMergeByCallID.set(descriptor.callID, {
@@ -633,7 +633,7 @@ async function recoverCoderSettlement(directory, taskId) {
633
633
  awaitingMergeByCallID,
634
634
  finishStandardWorktreeDispatch,
635
635
  standardWorktreeByCallID
636
- } = await import("./worktree-isolation-aebdyb1m.js");
636
+ } = await import("./worktree-isolation-g4w74ccb.js");
637
637
  const descriptor = wal.worktree;
638
638
  const reconstructedDispatch = {
639
639
  callID: descriptor.callID,
@@ -8,20 +8,20 @@ import {
8
8
  listCoordinationStates,
9
9
  transitionCoordinationState,
10
10
  withCoordinationTransaction
11
- } from "./index-whjrhatw.js";
11
+ } from "./index-a11ztzs5.js";
12
12
  import {
13
13
  getProjectDb,
14
14
  projectDbExists
15
15
  } from "./index-nzekzzs2.js";
16
16
  import {
17
17
  observeStoreHealth
18
- } from "./index-0pmh1kks.js";
18
+ } from "./index-yfpswnjt.js";
19
19
  import {
20
20
  withEvidenceLock
21
- } from "./index-kz9pcqn9.js";
21
+ } from "./index-f2v90gfc.js";
22
22
  import {
23
23
  telemetry
24
- } from "./index-pk97v7b8.js";
24
+ } from "./index-qt0793qm.js";
25
25
  import {
26
26
  atomicWriteSwarmFileSync
27
27
  } from "./index-ne9zamcs.js";
@@ -22,7 +22,7 @@ import {
22
22
  import {
23
23
  SWARM_WORKTREE_DIR_NAME,
24
24
  init_constants
25
- } from "./index-m2n1rhgv.js";
25
+ } from "./index-w872yykk.js";
26
26
  import {
27
27
  init_logger,
28
28
  log
@@ -244,7 +244,7 @@ var _internals2 = {
244
244
  symlinkSync: fs2.symlinkSync
245
245
  },
246
246
  writeScopeToDisk: async (directory, taskId, files) => {
247
- const { writeScopeToDisk: realWrite } = await import("./scope-persistence-8z1hwdr2.js");
247
+ const { writeScopeToDisk: realWrite } = await import("./scope-persistence-1k4xsyh7.js");
248
248
  return realWrite(directory, taskId, files);
249
249
  },
250
250
  writeLaneProfileToDisk: async (_worktreePath, _laneIndex, _envOverrides) => {
@@ -1,17 +1,17 @@
1
1
  // @bun
2
2
  import {
3
3
  observeStoreHealth
4
- } from "./index-0pmh1kks.js";
4
+ } from "./index-yfpswnjt.js";
5
5
  import {
6
6
  telemetry
7
- } from "./index-pk97v7b8.js";
7
+ } from "./index-qt0793qm.js";
8
8
  import {
9
9
  init_schema,
10
10
  stripKnownSwarmPrefix
11
- } from "./index-zv3j0v08.js";
11
+ } from "./index-twtez316.js";
12
12
  import {
13
13
  init_constants
14
- } from "./index-m2n1rhgv.js";
14
+ } from "./index-w872yykk.js";
15
15
  import {
16
16
  getPathFlavor,
17
17
  init_path_identity,
@@ -14,14 +14,14 @@ import {
14
14
  detectWindowsWrites,
15
15
  getSharedClassifierGuardrailBlock,
16
16
  resolveWriteTargets
17
- } from "./index-wajcx84s.js";
17
+ } from "./index-d66zb40k.js";
18
18
  import {
19
19
  checkFileAuthority,
20
20
  classifyFile,
21
21
  isInDeclaredScope,
22
22
  redactPath,
23
23
  redactShellCommand
24
- } from "./index-x1m1nnry.js";
24
+ } from "./index-7zmbtxw1.js";
25
25
 
26
26
  // src/services/guardrail-explain-service.ts
27
27
  import path from "path";
@@ -5,18 +5,18 @@ import {
5
5
  import {
6
6
  effectiveRetrievalOutcomes,
7
7
  readAuthoritativeKnowledgeCounterRollups
8
- } from "./index-xr3eye3f.js";
8
+ } from "./index-hwcra3y9.js";
9
9
  import {
10
10
  ALLOWED_SKILL_PATH_PREFIXES,
11
11
  validateSkillPath
12
- } from "./index-b50qevsm.js";
12
+ } from "./index-yagqxt2p.js";
13
13
  import {
14
14
  computeOutcomeSignal,
15
15
  readKnowledge,
16
16
  resolveHiveKnowledgePath,
17
17
  resolveSwarmKnowledgePath,
18
18
  transactKnowledge
19
- } from "./index-2pyba37z.js";
19
+ } from "./index-ndwbb3xm.js";
20
20
  import {
21
21
  appendCappedJsonl,
22
22
  resolveRetentionCap
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  computePlanStructureHash
4
- } from "./index-ksq6cqg0.js";
4
+ } from "./index-09wm3963.js";
5
5
  import {
6
6
  appendCoreEventSync
7
- } from "./index-w1b5qqnp.js";
7
+ } from "./index-h59vsbch.js";
8
8
  import {
9
9
  deleteCoordinationState,
10
10
  derivePlanId,
@@ -13,7 +13,7 @@ import {
13
13
  transitionCoordinationState,
14
14
  transitionCoordinationStateWithinTransaction,
15
15
  withCoordinationTransaction
16
- } from "./index-whjrhatw.js";
16
+ } from "./index-a11ztzs5.js";
17
17
  import {
18
18
  getProjectDb
19
19
  } from "./index-nzekzzs2.js";
@@ -23,7 +23,7 @@ import {
23
23
  } from "./index-ry16d01s.js";
24
24
  import {
25
25
  assertProjectRoot
26
- } from "./index-kz9pcqn9.js";
26
+ } from "./index-f2v90gfc.js";
27
27
  import {
28
28
  require_proper_lockfile
29
29
  } from "./index-7g4c7s5r.js";
@@ -33,7 +33,7 @@ import {
33
33
  } from "./index-ne9zamcs.js";
34
34
  import {
35
35
  PlanSchema
36
- } from "./index-qbs49vge.js";
36
+ } from "./index-1sz02k85.js";
37
37
  import {
38
38
  init_path_identity,
39
39
  unsafePathTextReason
@@ -56,6 +56,23 @@ function readState(db, namespace, entityKey) {
56
56
  FROM coordination_state WHERE namespace = ? AND entity_key = ?`).get(namespace, entityKey) ?? null;
57
57
  return rowToState(row);
58
58
  }
59
+ function getCoordinationStateRaw(directory, namespace, entityKey) {
60
+ if (!projectDbExists(directory))
61
+ return null;
62
+ const row = getProjectDb(directory).query(`SELECT namespace, entity_key, revision, generation, status, payload, updated_at
63
+ FROM coordination_state WHERE namespace = ? AND entity_key = ?`).get(namespace, entityKey) ?? null;
64
+ if (!row)
65
+ return null;
66
+ return {
67
+ namespace: row.namespace,
68
+ entityKey: row.entity_key,
69
+ revision: row.revision,
70
+ generation: row.generation,
71
+ status: row.status,
72
+ payload: row.payload,
73
+ updatedAt: row.updated_at
74
+ };
75
+ }
59
76
  function transactionHooks() {
60
77
  return {
61
78
  beforeBegin: (db) => _internals.coordinationFaultInjector?.("before_begin", db),
@@ -358,4 +375,4 @@ function derivePlanIdentityHash(plan) {
358
375
  return createHash2("sha256").update(JSON.stringify([plan.swarm, plan.title]), "utf8").digest("hex");
359
376
  }
360
377
 
361
- export { MAX_COORDINATION_STATE_LIST_ROWS, withCoordinationTransaction, getCoordinationState, listCoordinationStates, countCoordinationStates, deleteCoordinationState, deleteCoordinationStateWithinTransaction, transitionCoordinationStateWithinTransaction, transitionCoordinationState, getCoordinationLease, acquireCoordinationLease, releaseCoordinationLease, importCoordinationOnce, deleteCoordinationImports, derivePlanId, derivePlanIdentityHash };
378
+ export { MAX_COORDINATION_STATE_LIST_ROWS, getCoordinationStateRaw, withCoordinationTransaction, getCoordinationState, listCoordinationStates, countCoordinationStates, deleteCoordinationState, deleteCoordinationStateWithinTransaction, transitionCoordinationStateWithinTransaction, transitionCoordinationState, getCoordinationLease, acquireCoordinationLease, releaseCoordinationLease, importCoordinationOnce, deleteCoordinationImports, derivePlanId, derivePlanIdentityHash };
@@ -4,7 +4,7 @@ import {
4
4
  readShellAuditTail,
5
5
  redactPath,
6
6
  redactShellCommand
7
- } from "./index-x1m1nnry.js";
7
+ } from "./index-7zmbtxw1.js";
8
8
 
9
9
  // src/services/guardrail-log-service.ts
10
10
  var BLOCK_TYPES = new Set([
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  derivePlanId,
4
4
  derivePlanIdentityHash
5
- } from "./index-whjrhatw.js";
5
+ } from "./index-a11ztzs5.js";
6
6
  import {
7
7
  DURABILITY_CLASSES,
8
8
  getProjectDb,