opencode-swarm 7.136.5 → 7.137.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 (103) hide show
  1. package/.opencode/skills/swarm-pr-review/SKILL.md +35 -3
  2. package/.opencode/skills/swarm-pr-review/references/prompt-templates.md +7 -3
  3. package/dist/agents/agent-output-schema.d.ts +2 -2
  4. package/dist/background/candidate-contract.d.ts +14 -0
  5. package/dist/cli/{config-doctor-n3hatm9d.js → config-doctor-b9r9rt2c.js} +2 -2
  6. package/dist/cli/{core-jpjk2qvt.js → core-6w5sd5bc.js} +1 -1
  7. package/dist/cli/{curation-policy-c4g08bg1.js → curation-policy-ftx2emfw.js} +7 -6
  8. package/dist/cli/{curator-jc5cc980.js → curator-1sxxtbq7.js} +25 -25
  9. package/dist/cli/{curator-llm-factory-atfnhbn6.js → curator-llm-factory-yhqbkc5w.js} +25 -25
  10. package/dist/cli/{evidence-summary-service-nse06dqr.js → evidence-summary-service-85gw9p2m.js} +7 -7
  11. package/dist/cli/{gate-evidence-kdygjr56.js → gate-evidence-s2kytsrj.js} +4 -4
  12. package/dist/cli/{guardrail-explain-v6f8efve.js → guardrail-explain-qh1y8jsz.js} +26 -26
  13. package/dist/cli/{guardrail-log-0mrq14g9.js → guardrail-log-84zffdv3.js} +3 -3
  14. package/dist/cli/{hive-promoter-wyejhz8b.js → hive-promoter-hpe29xrz.js} +25 -25
  15. package/dist/cli/{index-eeb35dnx.js → index-1qn2gchc.js} +3 -2
  16. package/dist/cli/{index-45y0y3xh.js → index-1zrb3vt2.js} +7 -7
  17. package/dist/cli/{index-d2sf9an1.js → index-5r6kkhd7.js} +4 -4
  18. package/dist/cli/{index-ne28wyyc.js → index-5wjw05dy.js} +2 -2
  19. package/dist/cli/{index-xvcctb2t.js → index-7e60c7ay.js} +27 -27
  20. package/dist/cli/{index-7t3vjw5e.js → index-877ah4kx.js} +1 -1
  21. package/dist/cli/{index-tncy55bp.js → index-8ehyt3rx.js} +1 -1
  22. package/dist/cli/{index-hbzh7yyz.js → index-9vqxf9pd.js} +633 -209
  23. package/dist/cli/{index-6kd0ezgd.js → index-a3gpeb4f.js} +2 -2
  24. package/dist/cli/{index-nfm9f10v.js → index-b2s3t517.js} +5 -3
  25. package/dist/cli/{index-8f4346kf.js → index-bxk0a1r9.js} +2 -2
  26. package/dist/cli/{index-pyz1p8qv.js → index-d67810xe.js} +1 -1
  27. package/dist/cli/{index-akc6rp3x.js → index-d8rc8c9y.js} +2 -2
  28. package/dist/cli/{index-hh34tyv7.js → index-dxatvs3f.js} +1 -1
  29. package/dist/cli/{index-bqan4y2y.js → index-e0nvge1c.js} +2 -2
  30. package/dist/cli/{index-f5qs217h.js → index-em10pmph.js} +1 -1
  31. package/dist/cli/{index-j7ja83v5.js → index-gd47gp2q.js} +1 -1
  32. package/dist/cli/{index-w6j1n5az.js → index-gv00q5gc.js} +1 -1
  33. package/dist/cli/index-h5sbn1zr.js +1670 -0
  34. package/dist/cli/{index-vm05set2.js → index-k8y41t4y.js} +4 -4
  35. package/dist/cli/{index-tr0ctbhq.js → index-m4s91910.js} +5 -5
  36. package/dist/cli/{index-b3jfcptk.js → index-n3h6rmbe.js} +1 -1
  37. package/dist/cli/{index-xp2pfbpq.js → index-pbe51g7h.js} +1 -1
  38. package/dist/cli/{index-kym0cctr.js → index-qy3rgmkc.js} +1 -1
  39. package/dist/cli/{index-d61h3f3h.js → index-s3j9fsab.js} +2 -2
  40. package/dist/cli/{index-qhbr4h5n.js → index-t2mv25yf.js} +6 -6
  41. package/dist/cli/{index-84se71v1.js → index-t5099rx9.js} +3 -3
  42. package/dist/cli/{index-zzhyws9g.js → index-vft1pg34.js} +1 -1
  43. package/dist/cli/{index-yj61bped.js → index-zxf5w0jj.js} +3 -3
  44. package/dist/cli/index.js +25 -25
  45. package/dist/cli/{knowledge-escalator-2xe8z24p.js → knowledge-escalator-3ds615yq.js} +8 -7
  46. package/dist/cli/{knowledge-events-wecrshsx.js → knowledge-events-3c0g2xbm.js} +6 -5
  47. package/dist/cli/{knowledge-link-zr40rnwr.js → knowledge-link-t94b79qe.js} +5 -4
  48. package/dist/cli/{knowledge-store-9f74whxw.js → knowledge-store-pq43990j.js} +6 -5
  49. package/dist/cli/{knowledge-validator-4ng7x9dr.js → knowledge-validator-gepda374.js} +9 -8
  50. package/dist/cli/{pending-delegations-0h5b18p7.js → pending-delegations-kshh66s2.js} +3 -3
  51. package/dist/cli/{pr-subscriptions-jn0h047q.js → pr-subscriptions-5fpzz4f3.js} +3 -3
  52. package/dist/cli/{runner-deeswadt.js → runner-9rqc8y3m.js} +5 -5
  53. package/dist/cli/{scan-cursor-yzj9n225.js → scan-cursor-5hq37qdg.js} +7 -6
  54. package/dist/cli/{schema-cr1nr1w0.js → schema-mrbyt7dg.js} +1 -1
  55. package/dist/cli/{scope-persistence-5xc9ntdh.js → scope-persistence-sjz200dt.js} +4 -4
  56. package/dist/cli/{skill-generator-ybncj9et.js → skill-generator-3gt8em6v.js} +10 -9
  57. package/dist/cli/{telemetry-6678gya0.js → telemetry-h7h7f0ez.js} +2 -1
  58. package/dist/cli/{worktree-collision-ownership-wt7cc850.js → worktree-collision-ownership-xzwab4xt.js} +3 -3
  59. package/dist/config/constants.d.ts +1 -1
  60. package/dist/config/evidence-schema.d.ts +103 -103
  61. package/dist/config/plan-schema.d.ts +10 -10
  62. package/dist/config/schema.d.ts +8 -8
  63. package/dist/consensus/contracts.d.ts +3 -3
  64. package/dist/evaluation/index.d.ts +1 -0
  65. package/dist/evaluation/model-dispatcher.d.ts +19 -1
  66. package/dist/evaluation/pr-review-recovery.d.ts +41 -0
  67. package/dist/evaluation/public-api.d.ts +2 -0
  68. package/dist/evaluation/runner.d.ts +9 -0
  69. package/dist/hooks/hive-promoter.d.ts +1 -1
  70. package/dist/hooks/pr-workflow-gate.d.ts +69 -0
  71. package/dist/index.d.ts +2 -0
  72. package/dist/index.js +225 -225
  73. package/dist/observability/catalog.d.ts +84 -0
  74. package/dist/observability/envelope.d.ts +401 -0
  75. package/dist/observability/ids.d.ts +97 -0
  76. package/dist/observability/index.d.ts +58 -0
  77. package/dist/observability/legacy.d.ts +68 -0
  78. package/dist/observability/observe.d.ts +112 -0
  79. package/dist/observability/otel-mapping.d.ts +48 -0
  80. package/dist/observability/relationships.d.ts +44 -0
  81. package/dist/observability/sampling.d.ts +77 -0
  82. package/dist/summaries/schema.d.ts +2 -2
  83. package/dist/telemetry.d.ts +4 -1
  84. package/dist/tools/dispatch-lanes.d.ts +1 -0
  85. package/evaluation-fixtures/pr-review-recovery/baseline/SKILL.md +1823 -0
  86. package/evaluation-fixtures/pr-review-recovery/baseline-manifest.json +1 -0
  87. package/evaluation-fixtures/pr-review-recovery/environment/score-recovery.cjs +135 -0
  88. package/evaluation-fixtures/pr-review-recovery/instruction.md +40 -0
  89. package/evaluation-fixtures/pr-review-recovery/scorer-fixtures/blind-full-wave-retry/model-output.json +1 -0
  90. package/evaluation-fixtures/pr-review-recovery/scorer-fixtures/contradictory/model-output.json +1 -0
  91. package/evaluation-fixtures/pr-review-recovery/scorer-fixtures/copied-contract/model-output.json +1 -0
  92. package/evaluation-fixtures/pr-review-recovery/scorer-fixtures/critical-without-harm/model-output.json +1 -0
  93. package/evaluation-fixtures/pr-review-recovery/scorer-fixtures/invented-harm/model-output.json +1 -0
  94. package/evaluation-fixtures/pr-review-recovery/scorer-fixtures/malformed/model-output.json +1 -0
  95. package/evaluation-fixtures/pr-review-recovery/scorer-fixtures/missing-reproduction/model-output.json +1 -0
  96. package/evaluation-fixtures/pr-review-recovery/scorer-fixtures/parser-only/model-output.json +1 -0
  97. package/evaluation-fixtures/pr-review-recovery/scorer-fixtures/passing/model-output.json +1 -0
  98. package/evaluation-fixtures/pr-review-recovery/scorer-fixtures/premature-systemic-claim/model-output.json +1 -0
  99. package/evaluation-fixtures/pr-review-recovery/scorer-fixtures/profile-b-fallback/model-output.json +1 -0
  100. package/evaluation-fixtures/pr-review-recovery/scorer-fixtures/underclaimed-harm/model-output.json +1 -0
  101. package/evaluation-fixtures/pr-review-recovery/scorer-fixtures/unsupported-severity/model-output.json +1 -0
  102. package/package.json +3 -2
  103. package/dist/cli/index-cze4bq1x.js +0 -358
@@ -4,13 +4,13 @@ import {
4
4
  } from "./index-rtry5xyf.js";
5
5
  import {
6
6
  readKnowledgeEvents
7
- } from "./index-84se71v1.js";
7
+ } from "./index-t5099rx9.js";
8
8
  import {
9
9
  isLinked,
10
10
  readLinkPointer,
11
11
  resolveKnowledgeStoreDir,
12
12
  resolveLinkDir
13
- } from "./index-zzhyws9g.js";
13
+ } from "./index-vft1pg34.js";
14
14
 
15
15
  // src/knowledge/curation-policy.ts
16
16
  import { appendFile, mkdir as mkdir2, readFile as readFile2 } from "fs/promises";
@@ -9,7 +9,7 @@ import {
9
9
  readEvaluationRun,
10
10
  saveEvaluationRun,
11
11
  saveTaskSetSnapshot
12
- } from "./index-ne28wyyc.js";
12
+ } from "./index-5wjw05dy.js";
13
13
  import {
14
14
  canonicalHash,
15
15
  computeCandidateInputContentHash,
@@ -737,7 +737,8 @@ async function runExecutorWithinBudget(args) {
737
737
  instruction: args.instruction,
738
738
  payload: args.payload,
739
739
  seed: args.seed,
740
- abortSignal: controller.signal
740
+ abortSignal: controller.signal,
741
+ projectRoot: args.options.projectRoot
741
742
  }),
742
743
  aborted
743
744
  ]);
@@ -1072,7 +1073,7 @@ var _internals3 = {
1072
1073
  function createModelEvaluationExecutor(dispatcher, parentSessionId) {
1073
1074
  return async (args) => {
1074
1075
  const result = await dispatcher({
1075
- directory: args.isolatedRoot,
1076
+ sessionDirectory: args.projectRoot,
1076
1077
  agentName: args.candidate.agent ?? "reviewer",
1077
1078
  modelId: args.candidate.model,
1078
1079
  system: args.payload,
@@ -1080,6 +1081,7 @@ function createModelEvaluationExecutor(dispatcher, parentSessionId) {
1080
1081
  "EVALUATION TASK:",
1081
1082
  args.instruction,
1082
1083
  "",
1084
+ `Work ONLY in this directory: ${args.isolatedRoot}`,
1083
1085
  "Return the task-required scorer payload exactly."
1084
1086
  ].join(`
1085
1087
  `),
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  readKnowledge,
4
4
  transactKnowledge
5
- } from "./index-qhbr4h5n.js";
5
+ } from "./index-t2mv25yf.js";
6
6
  import {
7
7
  resolveKnowledgeStoreDir
8
- } from "./index-zzhyws9g.js";
8
+ } from "./index-vft1pg34.js";
9
9
  import {
10
10
  init_knowledge_types,
11
11
  isActiveStatus
@@ -6,7 +6,7 @@ import {
6
6
  PluginConfigSchema,
7
7
  init_schema,
8
8
  resolveExternalSkillsConfig
9
- } from "./index-eeb35dnx.js";
9
+ } from "./index-1qn2gchc.js";
10
10
  import {
11
11
  advisoryWarn,
12
12
  init_warning_buffer
@@ -12,14 +12,14 @@ import {
12
12
  detectPosixWrites,
13
13
  detectWindowsWrites,
14
14
  resolveWriteTargets
15
- } from "./index-hbzh7yyz.js";
15
+ } from "./index-9vqxf9pd.js";
16
16
  import {
17
17
  checkFileAuthority,
18
18
  classifyFile,
19
19
  isInDeclaredScope,
20
20
  redactPath,
21
21
  redactShellCommand
22
- } from "./index-f5qs217h.js";
22
+ } from "./index-em10pmph.js";
23
23
 
24
24
  // src/services/guardrail-explain-service.ts
25
25
  import path from "path";
@@ -86,7 +86,7 @@ var _internals = {
86
86
  symlinkSync: fs.symlinkSync
87
87
  },
88
88
  writeScopeToDisk: async (directory, taskId, files) => {
89
- const { writeScopeToDisk: realWrite } = await import("./scope-persistence-5xc9ntdh.js");
89
+ const { writeScopeToDisk: realWrite } = await import("./scope-persistence-sjz200dt.js");
90
90
  return realWrite(directory, taskId, files);
91
91
  },
92
92
  writeLaneProfileToDisk: async (_worktreePath, _laneIndex, _envOverrides) => {
@@ -7,7 +7,7 @@ import {
7
7
  loadPluginConfigWithMeta,
8
8
  loadPluginConfigWithMetaAsync,
9
9
  resolveWorktreeIsolationConfig
10
- } from "./index-pyz1p8qv.js";
10
+ } from "./index-d67810xe.js";
11
11
  import {
12
12
  ApprovalEvidenceSchema,
13
13
  BaseEvidenceSchema,
@@ -54,7 +54,7 @@ import {
54
54
  TurboConfigSchema,
55
55
  WorktreeIsolationConfigSchema,
56
56
  resolveAutoReviewConfig
57
- } from "./index-eeb35dnx.js";
57
+ } from "./index-1qn2gchc.js";
58
58
  import"./index-bk5tah7q.js";
59
59
  import {
60
60
  MigrationStatusSchema,
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  init_schema,
4
4
  stripKnownSwarmPrefix
5
- } from "./index-eeb35dnx.js";
5
+ } from "./index-1qn2gchc.js";
6
6
  import {
7
7
  init_constants
8
8
  } from "./index-3jcyn8g6.js";
@@ -6,7 +6,7 @@ import {
6
6
  PluginConfigSchema,
7
7
  init_schema,
8
8
  stripKnownSwarmPrefix
9
- } from "./index-eeb35dnx.js";
9
+ } from "./index-1qn2gchc.js";
10
10
  import {
11
11
  ALL_AGENT_NAMES,
12
12
  init_constants
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  computePlanStructureHash,
4
4
  derivePlanId
5
- } from "./index-d61h3f3h.js";
5
+ } from "./index-s3j9fsab.js";
6
6
  import {
7
7
  PlanSchema
8
8
  } from "./index-1kz6da87.js";