opencode-swarm 7.137.0 → 7.137.2

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 (69) 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/background/candidate-contract.d.ts +14 -0
  4. package/dist/cli/{config-doctor-vyx82nx2.js → config-doctor-xrbzq4r0.js} +2 -2
  5. package/dist/cli/{curation-policy-8tvs4pa0.js → curation-policy-xyradeax.js} +2 -2
  6. package/dist/cli/{curator-43xqs75k.js → curator-h1ea9skz.js} +13 -13
  7. package/dist/cli/{curator-llm-factory-8nywfdsh.js → curator-llm-factory-rk7pccwc.js} +13 -13
  8. package/dist/cli/{guardrail-explain-8kkqz8tx.js → guardrail-explain-sq1kcah3.js} +14 -14
  9. package/dist/cli/{guardrail-log-e2v9qw71.js → guardrail-log-7anp1z1n.js} +3 -3
  10. package/dist/cli/{hive-promoter-jt9ky0hn.js → hive-promoter-qsymj94z.js} +13 -13
  11. package/dist/cli/{index-d00q9kpq.js → index-02jqxmh8.js} +5 -5
  12. package/dist/cli/{index-pcwjz5de.js → index-1da1tvtn.js} +1 -1
  13. package/dist/cli/{index-72wzb81c.js → index-4t39wzzg.js} +1 -1
  14. package/dist/cli/{index-aze9n64z.js → index-5k0csd2m.js} +2 -2
  15. package/dist/cli/{index-fgkhpdc6.js → index-9casmxdt.js} +4 -4
  16. package/dist/cli/{index-j6ewv2pe.js → index-aygnzd04.js} +1 -1
  17. package/dist/cli/{index-k3mezk96.js → index-b2s3t517.js} +4 -2
  18. package/dist/cli/{index-92v63zzr.js → index-d735dzm7.js} +617 -192
  19. package/dist/cli/{index-y25nsyaq.js → index-gey6qegb.js} +1 -1
  20. package/dist/cli/{index-p124rnwb.js → index-jdqayy7h.js} +2 -2
  21. package/dist/cli/{index-wg98bsxz.js → index-kakb2jm0.js} +1 -1
  22. package/dist/cli/{index-j2ghsdzz.js → index-p0kez6cn.js} +15 -15
  23. package/dist/cli/{index-f24r6yqk.js → index-pwx989sa.js} +3 -3
  24. package/dist/cli/{index-91kk2e9j.js → index-rfrkt29c.js} +1 -1
  25. package/dist/cli/{index-mg26zd8x.js → index-s9at02fn.js} +1 -1
  26. package/dist/cli/{index-mwdzkr6k.js → index-vyh2prxv.js} +1 -1
  27. package/dist/cli/{index-d0nhz96c.js → index-ysh3a2nb.js} +2 -2
  28. package/dist/cli/index.js +13 -13
  29. package/dist/cli/{knowledge-escalator-9k0kbx6b.js → knowledge-escalator-e9zk371p.js} +3 -3
  30. package/dist/cli/{knowledge-events-8nz3sa2d.js → knowledge-events-dnyc1k78.js} +1 -1
  31. package/dist/cli/{knowledge-store-esghe3f9.js → knowledge-store-x4vqyhbz.js} +1 -1
  32. package/dist/cli/{knowledge-validator-bjxag1jp.js → knowledge-validator-72jdx5ze.js} +4 -4
  33. package/dist/cli/{runner-d820ws7y.js → runner-9rqc8y3m.js} +1 -1
  34. package/dist/cli/{scan-cursor-t212v00f.js → scan-cursor-z4xpes5f.js} +2 -2
  35. package/dist/cli/{schema-11gyrec3.js → schema-2dkw18zz.js} +1 -1
  36. package/dist/cli/{skill-generator-a07hpmw6.js → skill-generator-0q1jk6xd.js} +5 -5
  37. package/dist/council/council-evidence-writer.d.ts +2 -1
  38. package/dist/council/council-round-state.d.ts +110 -0
  39. package/dist/council/types.d.ts +0 -2
  40. package/dist/evaluation/index.d.ts +1 -0
  41. package/dist/evaluation/model-dispatcher.d.ts +19 -1
  42. package/dist/evaluation/pr-review-recovery.d.ts +41 -0
  43. package/dist/evaluation/public-api.d.ts +2 -0
  44. package/dist/evaluation/runner.d.ts +9 -0
  45. package/dist/hooks/pr-workflow-gate.d.ts +69 -0
  46. package/dist/index.d.ts +2 -0
  47. package/dist/index.js +187 -183
  48. package/dist/tools/convene-council.d.ts +2 -17
  49. package/dist/tools/dispatch-lanes.d.ts +1 -0
  50. package/dist/tools/submit-phase-council-verdicts.d.ts +0 -1
  51. package/dist/tools/write-final-council-evidence.d.ts +4 -18
  52. package/evaluation-fixtures/pr-review-recovery/baseline/SKILL.md +1823 -0
  53. package/evaluation-fixtures/pr-review-recovery/baseline-manifest.json +1 -0
  54. package/evaluation-fixtures/pr-review-recovery/environment/score-recovery.cjs +135 -0
  55. package/evaluation-fixtures/pr-review-recovery/instruction.md +40 -0
  56. package/evaluation-fixtures/pr-review-recovery/scorer-fixtures/blind-full-wave-retry/model-output.json +1 -0
  57. package/evaluation-fixtures/pr-review-recovery/scorer-fixtures/contradictory/model-output.json +1 -0
  58. package/evaluation-fixtures/pr-review-recovery/scorer-fixtures/copied-contract/model-output.json +1 -0
  59. package/evaluation-fixtures/pr-review-recovery/scorer-fixtures/critical-without-harm/model-output.json +1 -0
  60. package/evaluation-fixtures/pr-review-recovery/scorer-fixtures/invented-harm/model-output.json +1 -0
  61. package/evaluation-fixtures/pr-review-recovery/scorer-fixtures/malformed/model-output.json +1 -0
  62. package/evaluation-fixtures/pr-review-recovery/scorer-fixtures/missing-reproduction/model-output.json +1 -0
  63. package/evaluation-fixtures/pr-review-recovery/scorer-fixtures/parser-only/model-output.json +1 -0
  64. package/evaluation-fixtures/pr-review-recovery/scorer-fixtures/passing/model-output.json +1 -0
  65. package/evaluation-fixtures/pr-review-recovery/scorer-fixtures/premature-systemic-claim/model-output.json +1 -0
  66. package/evaluation-fixtures/pr-review-recovery/scorer-fixtures/profile-b-fallback/model-output.json +1 -0
  67. package/evaluation-fixtures/pr-review-recovery/scorer-fixtures/underclaimed-harm/model-output.json +1 -0
  68. package/evaluation-fixtures/pr-review-recovery/scorer-fixtures/unsupported-severity/model-output.json +1 -0
  69. package/package.json +1 -1
@@ -1,24 +1,10 @@
1
- /**
2
- * Submit Council Verdicts — architect-only tool.
3
- *
4
- * Accepts pre-collected parallel verdicts from critic, reviewer, sme,
5
- * test_engineer, and explorer, then synthesizes them into a veto-aware
6
- * overall verdict with required fixes and a single unified feedback document.
7
- *
8
- * PREREQUISITE: The architect must dispatch each council member as a separate
9
- * Agent task and collect the resulting CouncilMemberVerdict objects BEFORE
10
- * calling this tool. This tool performs synthesis only — it does NOT dispatch,
11
- * invoke, or contact council members.
12
- *
13
- * Config-gated (council.enabled must be true) and architect-only via
14
- * AGENT_TOOL_MAP. Follows the check-gate-status.ts pattern.
15
- */
1
+ /** Submit pre-collected task council verdicts with durable server-owned rounds. */
16
2
  import type { tool } from '@opencode-ai/plugin';
17
3
  import { z } from 'zod';
18
4
  export declare const ArgsSchema: z.ZodObject<{
19
5
  taskId: z.ZodString;
20
6
  swarmId: z.ZodString;
21
- roundNumber: z.ZodDefault<z.ZodNumber>;
7
+ roundNumber: z.ZodOptional<z.ZodNumber>;
22
8
  verdicts: z.ZodArray<z.ZodObject<{
23
9
  agent: z.ZodEnum<{
24
10
  reviewer: "reviewer";
@@ -32,7 +18,6 @@ export declare const ArgsSchema: z.ZodObject<{
32
18
  CONCERNS: "CONCERNS";
33
19
  REJECT: "REJECT";
34
20
  }>;
35
- verdictRound: z.ZodOptional<z.ZodNumber>;
36
21
  confidence: z.ZodNumber;
37
22
  findings: z.ZodArray<z.ZodObject<{
38
23
  severity: z.ZodEnum<{
@@ -421,6 +421,7 @@ type ApplyCommonPromptResult = {
421
421
  declare function applyCommonPrompt(lanes: DispatchLaneSpec[], commonPrompt: string | undefined): ApplyCommonPromptResult;
422
422
  declare function applyExplorerFormatSuffix(lanes: DispatchLaneSpec[], options?: {
423
423
  failClosed?: boolean;
424
+ mode?: string;
424
425
  }): ApplyCommonPromptResult;
425
426
  declare function applyPrWorkflowPromptContract(lanes: DispatchLaneSpec[], options: {
426
427
  mode?: string;
@@ -18,7 +18,6 @@ export declare const ArgsSchema: z.ZodObject<{
18
18
  CONCERNS: "CONCERNS";
19
19
  REJECT: "REJECT";
20
20
  }>;
21
- verdictRound: z.ZodOptional<z.ZodNumber>;
22
21
  confidence: z.ZodNumber;
23
22
  findings: z.ZodArray<z.ZodObject<{
24
23
  severity: z.ZodEnum<{
@@ -1,13 +1,7 @@
1
- /**
2
- * Write final council evidence for the project-scoped final council gate.
3
- *
4
- * The final council is not General Council mode. It accepts the same
5
- * five-member CouncilMemberVerdict objects used by phase council, synthesized
6
- * at completed-project scope.
7
- */
8
1
  import type { ToolContext, ToolDefinition } from '@opencode-ai/plugin/tool';
9
2
  import { z } from 'zod';
10
3
  import type { CouncilMemberVerdict } from '../council/types';
4
+ import { validateSwarmPath } from '../hooks/utils';
11
5
  export declare const ArgsSchema: z.ZodObject<{
12
6
  phase: z.ZodNumber;
13
7
  projectSummary: z.ZodString;
@@ -43,25 +37,17 @@ export declare const ArgsSchema: z.ZodObject<{
43
37
  durationMs: z.ZodNumber;
44
38
  }, z.core.$strip>>;
45
39
  }, z.core.$strip>;
46
- /**
47
- * Arguments for the write_final_council_evidence tool.
48
- */
49
40
  export interface WriteFinalCouncilEvidenceArgs {
50
- /** The phase number for the final council verdict */
51
41
  phase: number;
52
- /** Summary of the completed project being reviewed */
53
42
  projectSummary: string;
54
- /** 1-indexed final council round number */
55
43
  roundNumber?: number;
56
- /** Collected verdicts from critic, reviewer, sme, test_engineer, explorer */
57
44
  verdicts: CouncilMemberVerdict[];
58
45
  }
59
- /**
60
- * Execute the write_final_council_evidence tool.
61
- * Validates input, synthesizes project-scoped council evidence, and writes it.
62
- */
63
46
  export declare function executeWriteFinalCouncilEvidence(args: unknown, directory: string, ctx?: ToolContext): Promise<string>;
64
47
  /**
65
48
  * Tool definition for write_final_council_evidence.
66
49
  */
67
50
  export declare const write_final_council_evidence: ToolDefinition;
51
+ export declare const _internals: {
52
+ validateSwarmPath: typeof validateSwarmPath;
53
+ };