opencode-swarm 7.160.0 → 7.160.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 (82) hide show
  1. package/.opencode/skills/swarm-pr-review/SKILL.md +28 -29
  2. package/.opencode/skills/swarm-pr-review/references/prompt-templates.md +21 -5
  3. package/dist/background/pending-delegations.d.ts +46 -1
  4. package/dist/background/pr-review-contract.d.ts +245 -2
  5. package/dist/cli/{coder-settlement-zn552sp9.js → coder-settlement-678ccmnf.js} +9 -9
  6. package/dist/cli/{config-doctor-ddtdz2g0.js → config-doctor-fr8dfrt2.js} +3 -3
  7. package/dist/cli/{core-embasn2j.js → core-4j1hbhey.js} +2 -2
  8. package/dist/cli/{curation-policy-agr6ga1s.js → curation-policy-47przjwg.js} +4 -4
  9. package/dist/cli/{curator-dgp6dxxn.js → curator-85d97240.js} +31 -31
  10. package/dist/cli/{curator-llm-factory-7cwvmc46.js → curator-llm-factory-s9s4s0q3.js} +31 -31
  11. package/dist/cli/{evidence-summary-service-sbnyann4.js → evidence-summary-service-9dyt2kzh.js} +13 -13
  12. package/dist/cli/{gate-evidence-5v67a1dz.js → gate-evidence-a6paafg8.js} +5 -5
  13. package/dist/cli/{guardrail-explain-2gwarnca.js → guardrail-explain-4a2xdtew.js} +32 -32
  14. package/dist/cli/{guardrail-log-zbnbff1y.js → guardrail-log-27nkntrx.js} +7 -7
  15. package/dist/cli/{guardrail-reset-3cnz54hx.js → guardrail-reset-xn7k3hn8.js} +31 -31
  16. package/dist/cli/{hive-promoter-7cr7t2kg.js → hive-promoter-k57j3kp6.js} +31 -31
  17. package/dist/cli/{index-q6gjwy7m.js → index-497a3hhj.js} +2 -2
  18. package/dist/cli/{index-sy5aeegg.js → index-61c3d769.js} +866 -37
  19. package/dist/cli/{index-rq7k03rk.js → index-7ezv5j23.js} +1 -1
  20. package/dist/cli/{index-4mm22fzj.js → index-7h2armwf.js} +1 -1
  21. package/dist/cli/{index-1f4n43yz.js → index-7npz9n4s.js} +5 -4
  22. package/dist/cli/{index-gt8cxfbp.js → index-7v0ex0jt.js} +2 -2
  23. package/dist/cli/{index-ebz97mks.js → index-8c9qzpy7.js} +1 -0
  24. package/dist/cli/{index-5m7qjj29.js → index-98jmggma.js} +6 -6
  25. package/dist/cli/{index-cn233hsy.js → index-awjx0wgk.js} +1 -1
  26. package/dist/cli/{index-962jgzdq.js → index-bqxffayb.js} +1 -1
  27. package/dist/cli/{index-h3re5c78.js → index-c9zp4xwc.js} +12 -1
  28. package/dist/cli/{index-p39xem8b.js → index-dh5q6z7y.js} +3 -3
  29. package/dist/cli/{index-7qv869f0.js → index-dq93ar40.js} +5 -5
  30. package/dist/cli/{index-3055dgzp.js → index-drqvph47.js} +4 -4
  31. package/dist/cli/{index-jmths6jj.js → index-e1ygmd4q.js} +33 -33
  32. package/dist/cli/{index-py6bqwnb.js → index-f72612zc.js} +16 -2
  33. package/dist/cli/{index-9q6w7kke.js → index-gjx53y3c.js} +1 -1
  34. package/dist/cli/{index-xs15netk.js → index-j3ss86kf.js} +1 -1
  35. package/dist/cli/{index-kkfgygvn.js → index-jszabr0r.js} +4 -4
  36. package/dist/cli/{index-9k3zc2t8.js → index-m1cw9fsh.js} +6 -6
  37. package/dist/cli/{index-wzx6atbv.js → index-m84z3aa8.js} +3 -3
  38. package/dist/cli/{index-e75bzfgd.js → index-mmr96pwr.js} +1 -1
  39. package/dist/cli/{index-85qjc7b2.js → index-nk498mx6.js} +1 -1
  40. package/dist/cli/{index-3yh737hc.js → index-nnzdayvk.js} +6 -6
  41. package/dist/cli/{index-va1edd2n.js → index-ny0g8fdg.js} +5 -5
  42. package/dist/cli/{index-yrar1ask.js → index-pkz91fwm.js} +3 -3
  43. package/dist/cli/{index-zjvf7edj.js → index-pqjcyj0p.js} +1 -1
  44. package/dist/cli/{index-9fspg1xw.js → index-prv20xq6.js} +1 -1
  45. package/dist/cli/{index-fzkx24q5.js → index-qc53dfzh.js} +2 -2
  46. package/dist/cli/{index-8bjv01t8.js → index-v8dsmee1.js} +4 -4
  47. package/dist/cli/{index-d9s5hb0m.js → index-wccdm7jv.js} +5 -5
  48. package/dist/cli/{index-w699ekk9.js → index-z0bxbb9g.js} +2 -2
  49. package/dist/cli/{index-rnyt2z5r.js → index-zdv914xa.js} +304 -438
  50. package/dist/cli/{index-s7w428r3.js → index-znf683sm.js} +1 -1
  51. package/dist/cli/{index-rhc8jve7.js → index-zpzvpybn.js} +2 -2
  52. package/dist/cli/index.js +31 -31
  53. package/dist/cli/{knowledge-escalator-zksm9833.js → knowledge-escalator-3q2x34cg.js} +12 -12
  54. package/dist/cli/{knowledge-events-ayta750w.js → knowledge-events-5y34w84b.js} +10 -10
  55. package/dist/cli/{knowledge-link-7c7fjnzc.js → knowledge-link-xezm8hr3.js} +3 -3
  56. package/dist/cli/{knowledge-store-q5axge8b.js → knowledge-store-fqv89q5k.js} +4 -4
  57. package/dist/cli/{knowledge-validator-3rrbva2p.js → knowledge-validator-fsdx14tk.js} +6 -6
  58. package/dist/cli/{model-preflight-x9szw1v4.js → model-preflight-yqqchzjn.js} +1 -1
  59. package/dist/cli/{pending-delegations-kc7tzxg9.js → pending-delegations-6ae7wy5q.js} +5 -3
  60. package/dist/cli/{pr-review-reentry-authorization-vag5gh50.js → pr-review-reentry-authorization-986tk381.js} +33 -32
  61. package/dist/cli/{pr-subscriptions-wbdw9a82.js → pr-subscriptions-asjevc5p.js} +3 -3
  62. package/dist/cli/{runner-p9wg6z34.js → runner-wsdcy2d6.js} +4 -4
  63. package/dist/cli/{scan-cursor-4fjwtt1k.js → scan-cursor-shn926r6.js} +5 -5
  64. package/dist/cli/{schema-d0nbzj5k.js → schema-98tdb9h0.js} +4 -2
  65. package/dist/cli/{scope-persistence-bckcbc8h.js → scope-persistence-cn34xnwr.js} +8 -8
  66. package/dist/cli/{skill-generator-kebhevet.js → skill-generator-kck7087c.js} +14 -14
  67. package/dist/cli/{worktree-collision-ownership-h8qswnrp.js → worktree-collision-ownership-6b3kshcv.js} +4 -4
  68. package/dist/cli/{worktree-isolation-q0kbmadz.js → worktree-isolation-he01qhss.js} +31 -31
  69. package/dist/config/constants.d.ts +8 -0
  70. package/dist/config/evidence-schema.d.ts +3 -0
  71. package/dist/config/schema.d.ts +8 -0
  72. package/dist/hooks/pr-workflow-gate.d.ts +25 -1
  73. package/dist/index.js +124 -111
  74. package/dist/tools/dispatch-lanes.d.ts +27 -3
  75. package/dist/tools/index.d.ts +1 -0
  76. package/dist/tools/manifest.d.ts +1 -0
  77. package/dist/tools/sast-baseline.d.ts +2 -0
  78. package/dist/tools/sast-scan.d.ts +2 -2
  79. package/dist/tools/submit-pr-review-result.d.ts +5 -0
  80. package/dist/tools/tool-metadata.d.ts +8 -0
  81. package/opencode-swarm.schema.json +4 -0
  82. package/package.json +1 -1
@@ -460,16 +460,31 @@ export declare const _test_exports: {
460
460
  resolvePrReviewReceiptFallbacks: typeof resolvePrReviewReceiptFallbacks;
461
461
  resolvePrReviewReceiptFallbacksFromState: typeof resolvePrReviewReceiptFallbacksFromState;
462
462
  consumePrReviewReceiptAppendFailureLog: typeof consumePrReviewReceiptAppendFailureLog;
463
+ startAsyncLanePrompt: typeof startAsyncLanePrompt;
463
464
  prReviewLaneResponseBudgetChars: typeof prReviewLaneResponseBudgetChars;
464
465
  };
465
- type ReadOnlyToolPermissions = Record<string, false> & {
466
+ type ReadOnlyToolPermissions = Record<string, boolean> & {
466
467
  write: false;
467
468
  edit: false;
468
469
  patch: false;
469
470
  };
470
- interface DispatchLanesExecutionContext {
471
+ export interface DispatchLanesExecutionContext {
471
472
  callerAgent?: string;
472
473
  sessionID?: string;
474
+ /** Optional host-verified structured transport. Absent on current hosts. */
475
+ prReviewStructuredPromptAdapter?: PrReviewStructuredPromptAdapter;
476
+ }
477
+ export interface PrReviewStructuredPromptAdapter {
478
+ promptJsonSchema(args: {
479
+ sessionId: string;
480
+ agent: string;
481
+ schema: unknown;
482
+ parts: unknown[];
483
+ }): Promise<unknown>;
484
+ }
485
+ /** Explicit pre-execution capability miss; the only adapter error that falls back. */
486
+ export declare class PrReviewStructuredPromptUnsupportedError extends Error {
487
+ constructor(message?: string);
473
488
  }
474
489
  export declare function executeDispatchLanes(args: unknown, directory: string, context?: DispatchLanesExecutionContext): Promise<DispatchLanesResult>;
475
490
  export declare function executeDispatchLanesAsync(args: unknown, directory: string, context?: DispatchLanesExecutionContext): Promise<DispatchLanesAsyncResult>;
@@ -499,6 +514,15 @@ type LaneDiagnostics = Map<string, Set<string>>;
499
514
  declare function assembleCollectionDiagnostics(hostTimeouts: ReadonlySet<string>, settleFailureLogs: LaneDiagnostics, collectionResourceFailures: LaneDiagnostics): string[];
500
515
  declare function addLaneDiagnostic(diagnostics: LaneDiagnostics, laneLabel: string, message: string): void;
501
516
  declare function consumePrReviewReceiptAppendFailureLog(loggedFailures: Set<string>, parentSessionId: string, correlationId: string): boolean;
517
+ declare function startAsyncLanePrompt(args: {
518
+ session: SessionOps;
519
+ directory: string;
520
+ sessionId: string;
521
+ lane: DispatchLaneSpec;
522
+ timeoutMs: number;
523
+ mode?: string;
524
+ structuredAdapter?: PrReviewStructuredPromptAdapter;
525
+ }): Promise<void>;
502
526
  /**
503
527
  * Issue #2349: a terminal error read off the last assistant message of a lane
504
528
  * session, classified for settlement.
@@ -593,7 +617,7 @@ declare function resolvePrReviewReceiptFallbacksFromState(records: readonly Back
593
617
  declare function appendPrReviewCollectionReceipt(record: BackgroundDelegationRecord, result: BackgroundDelegationResult, receipt: PrReviewVerdictCollectionReceipt): BackgroundDelegationResult | null;
594
618
  declare function parsePrReviewCollectionReceipt(record: BackgroundDelegationRecord): PrReviewVerdictCollectionReceipt | null;
595
619
  declare function recordToLaneResult(record: BackgroundDelegationRecord, batchId: string, deliveryContext?: LaneResultDeliveryContext): DispatchLaneResult;
596
- declare function buildReadOnlyTools(): ReadOnlyToolPermissions;
620
+ declare function buildReadOnlyTools(mode?: string): ReadOnlyToolPermissions;
597
621
  type ApplyCommonPromptResult = {
598
622
  ok: true;
599
623
  lanes: DispatchLaneSpec[];
@@ -81,6 +81,7 @@ export { skill_retire } from './skill-retire';
81
81
  export { spec_write } from './spec-write';
82
82
  export { run_stale_reconciliation } from './stale-reconciliation';
83
83
  export { submit_phase_council_verdicts } from './submit-phase-council-verdicts';
84
+ export { submit_pr_review_result } from './submit-pr-review-result';
84
85
  export { summarize_work } from './summarize-work';
85
86
  export { createSwarmCommandTool, swarm_command } from './swarm-command';
86
87
  export { swarm_memory_outcome } from './swarm-memory-outcome';
@@ -45,6 +45,7 @@ export declare const TOOL_MANIFEST: {
45
45
  complete_pr_workflow: () => ToolDefinition;
46
46
  abort_pr_workflow: () => ToolDefinition;
47
47
  authorize_pr_review_reentry: () => ToolDefinition;
48
+ submit_pr_review_result: () => ToolDefinition;
48
49
  approve_plan_critic: () => ToolDefinition;
49
50
  prepare_pr_workflow_checkout: () => ToolDefinition;
50
51
  record_implementation_review: () => ToolDefinition;
@@ -138,6 +138,8 @@ export type CaptureResult = {
138
138
  fingerprint_count: number;
139
139
  /** Novel absorptions recorded in triage_log by this capture. */
140
140
  absorbed_finding_count: number;
141
+ /** Prior triage entries whose fingerprints no longer survive this merge. */
142
+ dropped_triage_count: number;
141
143
  } | {
142
144
  status: 'absorption_blocked';
143
145
  path: string;
@@ -98,8 +98,8 @@ export interface SastScanResult {
98
98
  truncated_pre_existing?: boolean;
99
99
  /**
100
100
  * True when moved_findings were truncated to fit result limits. Advisory
101
- * telemetry only (no in-tree consumer) kept for parity with
102
- * truncated_pre_existing and for future audit consumers.
101
+ * telemetry: emitted into the sast_scan evidence payload when set (as is
102
+ * truncated_pre_existing) and mirrored on the result for callers.
103
103
  */
104
104
  truncated_moved_findings?: boolean;
105
105
  }
@@ -0,0 +1,5 @@
1
+ import { createSwarmTool } from './create-tool.js';
2
+ export declare function executeSubmitPrReviewResult(args: unknown, directory: string, context?: {
3
+ sessionID?: string;
4
+ }): Promise<string>;
5
+ export declare const submit_pr_review_result: ReturnType<typeof createSwarmTool>;
@@ -160,6 +160,14 @@ export declare const TOOL_METADATA: {
160
160
  description: string;
161
161
  agents: "architect"[];
162
162
  };
163
+ submit_pr_review_result: {
164
+ description: string;
165
+ agents: never[];
166
+ prWorkflow: {
167
+ modes: "PR_REVIEW"[];
168
+ capability: "validate";
169
+ };
170
+ };
163
171
  approve_plan_critic: {
164
172
  description: string;
165
173
  agents: "architect"[];
@@ -351,6 +351,10 @@
351
351
  },
352
352
  "additionalProperties": false
353
353
  },
354
+ "pr_review_legacy_transcript_compatibility": {
355
+ "description": "Deprecated migration-only opt-in for transcript-row PR-review base and micro discovery lanes.",
356
+ "type": "boolean"
357
+ },
354
358
  "gates": {
355
359
  "description": "Quality gate configuration (v6.9 anti-slop features).",
356
360
  "type": "object",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-swarm",
3
- "version": "7.160.0",
3
+ "version": "7.160.1",
4
4
  "description": "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",