opencode-swarm 7.157.1 → 7.158.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 (79) hide show
  1. package/.opencode/skills/swarm-pr-review/SKILL.md +24 -26
  2. package/.opencode/skills/swarm-pr-review/references/findings-persistence-contract.md +11 -3
  3. package/.opencode/skills/swarm-pr-review/references/parser-dry-run.md +1 -1
  4. package/.opencode/skills/swarm-pr-review/references/prompt-templates.md +3 -3
  5. package/dist/background/candidate-contract.d.ts +20 -3
  6. package/dist/background/candidate-parser.d.ts +8 -1
  7. package/dist/background/pr-review-contract.d.ts +93 -5
  8. package/dist/cli/{coder-settlement-tqh28pr3.js → coder-settlement-5sexsmqz.js} +9 -9
  9. package/dist/cli/{config-doctor-9rsk8ags.js → config-doctor-ewn2kw6d.js} +3 -3
  10. package/dist/cli/{core-7zwdc0sk.js → core-72wdmzps.js} +3 -3
  11. package/dist/cli/{curation-policy-72qx868r.js → curation-policy-vn3m5nq2.js} +4 -4
  12. package/dist/cli/curator-drift-g6w4ga1q.js +1 -1
  13. package/dist/cli/{curator-fdj5ftfz.js → curator-g06sa98p.js} +31 -31
  14. package/dist/cli/{curator-llm-factory-rtkeb1y1.js → curator-llm-factory-r8q84m4g.js} +31 -31
  15. package/dist/cli/{evidence-summary-service-bhqvx9qe.js → evidence-summary-service-ttd0ntm0.js} +12 -12
  16. package/dist/cli/{gate-evidence-rp0r5phx.js → gate-evidence-agnxf7md.js} +6 -6
  17. package/dist/cli/{guardrail-explain-17me709w.js → guardrail-explain-qf4k176t.js} +32 -32
  18. package/dist/cli/{guardrail-log-te4a5fmn.js → guardrail-log-g4qc595v.js} +4 -4
  19. package/dist/cli/{guardrail-reset-5n76tj7e.js → guardrail-reset-zpxk0p1j.js} +31 -31
  20. package/dist/cli/{hive-promoter-e0zrkgns.js → hive-promoter-zxy07gjg.js} +31 -31
  21. package/dist/cli/{index-rgkwg6d7.js → index-1vxmqvpt.js} +1 -1
  22. package/dist/cli/{index-hq3m47kh.js → index-5tchehv7.js} +2 -2
  23. package/dist/cli/{index-b5xm177r.js → index-5zgf140g.js} +1 -1
  24. package/dist/cli/{index-gg70afs7.js → index-663wnh64.js} +6 -6
  25. package/dist/cli/{index-pr6a7669.js → index-6xxpwk5x.js} +1 -1
  26. package/dist/cli/{index-w7s5vgb6.js → index-745dh1z1.js} +34 -34
  27. package/dist/cli/{index-ngn6jmad.js → index-7s1hmrfh.js} +1 -1
  28. package/dist/cli/{index-dwkrdpz2.js → index-8fqb0ynp.js} +1 -1
  29. package/dist/cli/{index-e7m7g2f9.js → index-a1884hh4.js} +5 -5
  30. package/dist/cli/{index-pbh1rmb9.js → index-bv24pbaj.js} +4 -4
  31. package/dist/cli/{index-r4qxngnx.js → index-c57cyrwn.js} +8 -8
  32. package/dist/cli/{index-1vjjh2gp.js → index-dmfbmnp7.js} +4 -4
  33. package/dist/cli/{index-sdde1nvx.js → index-f036tggv.js} +5 -5
  34. package/dist/cli/{index-14awxpgt.js → index-f776m4r5.js} +2 -2
  35. package/dist/cli/{index-ybvtfthv.js → index-fwe1wh6r.js} +2 -2
  36. package/dist/cli/{index-n3362zjr.js → index-gm10kvne.js} +3 -3
  37. package/dist/cli/{index-xe6zbfps.js → index-h52hs4e9.js} +1 -1
  38. package/dist/cli/{index-80qxscrc.js → index-nvta6kcv.js} +3 -3
  39. package/dist/cli/{index-gpf3cjre.js → index-pfnj5pvs.js} +1 -1
  40. package/dist/cli/{index-1gk7ctgp.js → index-pvs2zw1y.js} +2 -2
  41. package/dist/cli/{index-tt350s4g.js → index-rac2gkvr.js} +859 -459
  42. package/dist/cli/{index-r98wqjw4.js → index-rc93mm6e.js} +3 -5
  43. package/dist/cli/{index-b3cwazk2.js → index-rd324153.js} +2 -2
  44. package/dist/cli/{index-xttdbb6d.js → index-vwx0by4y.js} +5 -5
  45. package/dist/cli/{index-91ybfvy2.js → index-x4ftmdha.js} +1 -1
  46. package/dist/cli/{index-q24ffxx6.js → index-x71shq8j.js} +6 -6
  47. package/dist/cli/{index-n9hecanw.js → index-y3hdwh66.js} +4 -4
  48. package/dist/cli/{index-az2sga91.js → index-yfbp4q09.js} +1 -1
  49. package/dist/cli/{index-9r7gp6cp.js → index-yt75r1er.js} +4 -0
  50. package/dist/cli/{index-t0kxka8n.js → index-z54qw70y.js} +1 -1
  51. package/dist/cli/{index-qy6rcnjg.js → index-zawd71cg.js} +6 -6
  52. package/dist/cli/{index-6sbx96v6.js → index-zcmwwp1x.js} +5 -4
  53. package/dist/cli/index.js +32 -32
  54. package/dist/cli/{knowledge-escalator-wrpk82b9.js → knowledge-escalator-22zaj224.js} +11 -11
  55. package/dist/cli/{knowledge-events-4z6yzntf.js → knowledge-events-xbx1k408.js} +9 -9
  56. package/dist/cli/{knowledge-link-z9cchqdj.js → knowledge-link-cj2abbae.js} +3 -3
  57. package/dist/cli/{knowledge-store-z9686tpv.js → knowledge-store-fnm8xh9c.js} +4 -4
  58. package/dist/cli/{knowledge-validator-rqb0b436.js → knowledge-validator-t2jztjy1.js} +6 -6
  59. package/dist/cli/{model-preflight-cv9kvw8h.js → model-preflight-w85ecyxh.js} +1 -1
  60. package/dist/cli/{pending-delegations-g10v5k22.js → pending-delegations-29rtv1gb.js} +1 -1
  61. package/dist/cli/pr-review-reentry-authorization-25dep81m.js +299 -0
  62. package/dist/cli/{pr-subscriptions-76vg2xya.js → pr-subscriptions-cgac3ydd.js} +2 -2
  63. package/dist/cli/{runner-eagt6gf8.js → runner-sj5sf36c.js} +4 -4
  64. package/dist/cli/{scan-cursor-7s1bz7ew.js → scan-cursor-8acs9kwe.js} +5 -5
  65. package/dist/cli/{schema-78pdxc8f.js → schema-rjhassd0.js} +2 -2
  66. package/dist/cli/{scope-persistence-7ad69qmq.js → scope-persistence-jb1a5dzh.js} +7 -7
  67. package/dist/cli/{skill-generator-7cxf53ye.js → skill-generator-frgppk1w.js} +13 -13
  68. package/dist/cli/{worktree-collision-ownership-ry7xnaae.js → worktree-collision-ownership-f5sj6ffa.js} +4 -4
  69. package/dist/cli/{worktree-isolation-1jcc8ynj.js → worktree-isolation-5b0w6bha.js} +31 -31
  70. package/dist/hooks/pr-review-reentry-authorization.d.ts +97 -0
  71. package/dist/hooks/pr-workflow-gate.d.ts +211 -8
  72. package/dist/index.js +467 -460
  73. package/dist/tools/authorize-pr-review-reentry.d.ts +16 -0
  74. package/dist/tools/complete-pr-workflow.d.ts +2 -1
  75. package/dist/tools/index.d.ts +1 -0
  76. package/dist/tools/manifest.d.ts +1 -0
  77. package/dist/tools/tool-metadata.d.ts +4 -0
  78. package/dist/tools/write-pr-review-artifact.d.ts +18 -0
  79. package/package.json +1 -1
@@ -4,7 +4,7 @@ import {
4
4
  } from "./index-dtn0pne5.js";
5
5
  import {
6
6
  atomicWriteSwarmFileSync
7
- } from "./index-6sbx96v6.js";
7
+ } from "./index-zcmwwp1x.js";
8
8
 
9
9
  // src/hooks/delegation-gate/worktree-provisioning-owner.ts
10
10
  import { createHash } from "crypto";
@@ -2,10 +2,6 @@
2
2
  import {
3
3
  bunSpawn
4
4
  } from "./index-r3mvsbtq.js";
5
- import {
6
- SWARM_WORKTREE_DIR_NAME,
7
- init_constants
8
- } from "./index-9r7gp6cp.js";
9
5
  import {
10
6
  init_git_executable,
11
7
  resolveGitExecutable
@@ -14,6 +10,10 @@ import {
14
10
  advisoryWarn,
15
11
  init_warning_buffer
16
12
  } from "./index-4rhhvd1a.js";
13
+ import {
14
+ SWARM_WORKTREE_DIR_NAME,
15
+ init_constants
16
+ } from "./index-yt75r1er.js";
17
17
  import {
18
18
  log
19
19
  } from "./index-zgwm4ryv.js";
@@ -92,7 +92,7 @@ var _internals = {
92
92
  symlinkSync: fs.symlinkSync
93
93
  },
94
94
  writeScopeToDisk: async (directory, taskId, files) => {
95
- const { writeScopeToDisk: realWrite } = await import("./scope-persistence-7ad69qmq.js");
95
+ const { writeScopeToDisk: realWrite } = await import("./scope-persistence-jb1a5dzh.js");
96
96
  return realWrite(directory, taskId, files);
97
97
  },
98
98
  writeLaneProfileToDisk: async (_worktreePath, _laneIndex, _envOverrides) => {
@@ -3,7 +3,7 @@ import {
3
3
  EvaluationRunV1Schema,
4
4
  GateAuditResultV1Schema,
5
5
  getProtectedEvaluationRunIds
6
- } from "./index-ngn6jmad.js";
6
+ } from "./index-7s1hmrfh.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-ybvtfthv.js";
26
+ } from "./index-fwe1wh6r.js";
27
27
  import {
28
28
  LedgerStaleWriterError,
29
29
  appendLedgerEvent,
@@ -43,7 +43,7 @@ import {
43
43
  replayFromLedgerWithStatus,
44
44
  takeSnapshotEvent,
45
45
  takeSnapshotWithRetry
46
- } from "./index-pr6a7669.js";
46
+ } from "./index-6xxpwk5x.js";
47
47
  import {
48
48
  appendCoreEventSync
49
49
  } from "./index-nwkr6tvv.js";
@@ -70,7 +70,7 @@ import {
70
70
  } from "./index-r3mvsbtq.js";
71
71
  import {
72
72
  PlanSchema
73
- } from "./index-gg70afs7.js";
73
+ } from "./index-663wnh64.js";
74
74
  import {
75
75
  GIT_BINARY_ENV_VAR,
76
76
  describeGitResolution,
@@ -1,7 +1,11 @@
1
1
  // @bun
2
+ import {
3
+ captureWorkspaceSnapshot,
4
+ changedFilesSinceSnapshot
5
+ } from "./index-3f7hqtgg.js";
2
6
  import {
3
7
  removeWorktreeProvisioningOwner
4
- } from "./index-dwkrdpz2.js";
8
+ } from "./index-8fqb0ynp.js";
5
9
  import {
6
10
  SOURCE_WORKTREE_GONE_STAGE,
7
11
  getTaskWorkflowSnapshot,
@@ -9,14 +13,10 @@ import {
9
13
  reconcileLandedMerge,
10
14
  withTaskEvidenceTransaction,
11
15
  writeWorkflowWalFile
12
- } from "./index-ybvtfthv.js";
16
+ } from "./index-fwe1wh6r.js";
13
17
  import {
14
18
  canonicalRootKeyFresh
15
19
  } from "./index-ddszzne4.js";
16
- import {
17
- captureWorkspaceSnapshot,
18
- changedFilesSinceSnapshot
19
- } from "./index-3f7hqtgg.js";
20
20
  import {
21
21
  appendCoreEventSync
22
22
  } from "./index-nwkr6tvv.js";
@@ -478,7 +478,7 @@ async function cleanupRecoveredWorktree(directory, descriptor) {
478
478
  awaitingMergeByCallID,
479
479
  cleanupStandardWorktreeForCallId,
480
480
  standardWorktreeByCallID
481
- } = await import("./worktree-isolation-1jcc8ynj.js");
481
+ } = await import("./worktree-isolation-5b0w6bha.js");
482
482
  standardWorktreeByCallID.delete(descriptor.callID);
483
483
  if (hasResidue)
484
484
  awaitingMergeByCallID.set(descriptor.callID, {
@@ -602,7 +602,7 @@ async function recoverCoderSettlement(directory, taskId) {
602
602
  awaitingMergeByCallID,
603
603
  finishStandardWorktreeDispatch,
604
604
  standardWorktreeByCallID
605
- } = await import("./worktree-isolation-1jcc8ynj.js");
605
+ } = await import("./worktree-isolation-5b0w6bha.js");
606
606
  const descriptor = wal.worktree;
607
607
  const reconstructedDispatch = {
608
608
  callID: descriptor.callID,
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  authorizeCuration
4
- } from "./index-gpf3cjre.js";
4
+ } from "./index-pfnj5pvs.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-q24ffxx6.js";
12
+ } from "./index-x71shq8j.js";
13
13
  import {
14
14
  resolveKnowledgeStoreDir
15
- } from "./index-b5xm177r.js";
15
+ } from "./index-5zgf140g.js";
16
16
  import {
17
17
  atomicWriteFile
18
- } from "./index-xe6zbfps.js";
18
+ } from "./index-h52hs4e9.js";
19
19
  import {
20
20
  require_proper_lockfile
21
21
  } from "./index-7g4c7s5r.js";
@@ -4,20 +4,20 @@ import {
4
4
  } from "./index-dtn0pne5.js";
5
5
  import {
6
6
  loadPluginConfigWithMeta
7
- } from "./index-gg70afs7.js";
7
+ } from "./index-663wnh64.js";
8
8
  import {
9
9
  KnowledgeConfigSchema,
10
10
  init_schema
11
- } from "./index-14awxpgt.js";
11
+ } from "./index-f776m4r5.js";
12
12
  import {
13
13
  resolveHiveEventsPath
14
14
  } from "./index-ae75rja9.js";
15
15
  import {
16
16
  resolveKnowledgeStoreDir
17
- } from "./index-b5xm177r.js";
17
+ } from "./index-5zgf140g.js";
18
18
  import {
19
19
  atomicWriteFile
20
- } from "./index-xe6zbfps.js";
20
+ } from "./index-h52hs4e9.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-z9686tpv.js");
2796
+ const { bumpKnowledgeConfidenceBatch } = await import("./knowledge-store-fnm8xh9c.js");
2797
2797
  bumps = await bumpKnowledgeConfidenceBatch(directory, deltas, options?.floorOptions);
2798
2798
  }
2799
2799
  return {
@@ -3,7 +3,7 @@ import {
3
3
  ALL_AGENT_NAMES,
4
4
  SUMMARIZER_EXEMPT_TOOL_NAMES,
5
5
  init_constants
6
- } from "./index-9r7gp6cp.js";
6
+ } from "./index-yt75r1er.js";
7
7
  import {
8
8
  OUTCOME_BLOCK_THRESHOLD,
9
9
  init_knowledge_types
@@ -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.157.1",
24
+ version: "7.158.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",
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  autoCommitDirty,
4
4
  cleanUntrackedFiles
5
- } from "./index-e7m7g2f9.js";
5
+ } from "./index-a1884hh4.js";
6
6
  import {
7
7
  isPathWithinDeclaredScope,
8
8
  unsafePathTextReason
@@ -26,7 +26,7 @@ import {
26
26
  atomicWriteFile,
27
27
  taskEvidencePath,
28
28
  withTaskEvidenceLock
29
- } from "./index-xe6zbfps.js";
29
+ } from "./index-h52hs4e9.js";
30
30
  import {
31
31
  assertProjectRoot
32
32
  } from "./index-xagq35tf.js";
@@ -2,14 +2,14 @@
2
2
  import {
3
3
  init_loader,
4
4
  loadPluginConfigWithMeta
5
- } from "./index-gg70afs7.js";
5
+ } from "./index-663wnh64.js";
6
6
  import {
7
7
  init_schema
8
- } from "./index-14awxpgt.js";
8
+ } from "./index-f776m4r5.js";
9
9
  import {
10
10
  DEFAULT_WORKTREE_ISOLATION_CONFIG,
11
11
  init_constants
12
- } from "./index-9r7gp6cp.js";
12
+ } from "./index-yt75r1er.js";
13
13
 
14
14
  // src/config/index.ts
15
15
  init_constants();
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  atomicWriteFileAnyRoot
4
- } from "./index-6sbx96v6.js";
4
+ } from "./index-zcmwwp1x.js";
5
5
  import {
6
6
  withEvidenceLock
7
7
  } from "./index-xagq35tf.js";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  computePlanStructureHash,
4
4
  derivePlanId
5
- } from "./index-pr6a7669.js";
5
+ } from "./index-6xxpwk5x.js";
6
6
  import {
7
7
  appendCoreEventSync
8
8
  } from "./index-nwkr6tvv.js";
@@ -11,11 +11,11 @@ import {
11
11
  } from "./index-556ja8an.js";
12
12
  import {
13
13
  PlanSchema
14
- } from "./index-gg70afs7.js";
14
+ } from "./index-663wnh64.js";
15
15
  import {
16
16
  atomicWriteSwarmFile,
17
17
  atomicWriteSwarmFileSync
18
- } from "./index-6sbx96v6.js";
18
+ } from "./index-zcmwwp1x.js";
19
19
  import {
20
20
  assertProjectRoot
21
21
  } from "./index-xagq35tf.js";
@@ -7,7 +7,7 @@ import {
7
7
  readLinkPointer,
8
8
  resolveKnowledgeStoreDir,
9
9
  resolveLinkDir
10
- } from "./index-b5xm177r.js";
10
+ } from "./index-5zgf140g.js";
11
11
 
12
12
  // src/knowledge/curation-policy.ts
13
13
  import { appendFile, mkdir as mkdir2, readFile as readFile2 } from "fs/promises";
@@ -14,14 +14,14 @@ import {
14
14
  detectWindowsWrites,
15
15
  getSharedClassifierGuardrailBlock,
16
16
  resolveWriteTargets
17
- } from "./index-tt350s4g.js";
17
+ } from "./index-rac2gkvr.js";
18
18
  import {
19
19
  checkFileAuthority,
20
20
  classifyFile,
21
21
  isInDeclaredScope,
22
22
  redactPath,
23
23
  redactShellCommand
24
- } from "./index-r98wqjw4.js";
24
+ } from "./index-rc93mm6e.js";
25
25
 
26
26
  // src/services/guardrail-explain-service.ts
27
27
  import path from "path";