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.
- package/.opencode/skills/swarm-pr-review/SKILL.md +28 -29
- package/.opencode/skills/swarm-pr-review/references/prompt-templates.md +21 -5
- package/dist/background/pending-delegations.d.ts +46 -1
- package/dist/background/pr-review-contract.d.ts +245 -2
- package/dist/cli/{coder-settlement-zn552sp9.js → coder-settlement-678ccmnf.js} +9 -9
- package/dist/cli/{config-doctor-ddtdz2g0.js → config-doctor-fr8dfrt2.js} +3 -3
- package/dist/cli/{core-embasn2j.js → core-4j1hbhey.js} +2 -2
- package/dist/cli/{curation-policy-agr6ga1s.js → curation-policy-47przjwg.js} +4 -4
- package/dist/cli/{curator-dgp6dxxn.js → curator-85d97240.js} +31 -31
- package/dist/cli/{curator-llm-factory-7cwvmc46.js → curator-llm-factory-s9s4s0q3.js} +31 -31
- package/dist/cli/{evidence-summary-service-sbnyann4.js → evidence-summary-service-9dyt2kzh.js} +13 -13
- package/dist/cli/{gate-evidence-5v67a1dz.js → gate-evidence-a6paafg8.js} +5 -5
- package/dist/cli/{guardrail-explain-2gwarnca.js → guardrail-explain-4a2xdtew.js} +32 -32
- package/dist/cli/{guardrail-log-zbnbff1y.js → guardrail-log-27nkntrx.js} +7 -7
- package/dist/cli/{guardrail-reset-3cnz54hx.js → guardrail-reset-xn7k3hn8.js} +31 -31
- package/dist/cli/{hive-promoter-7cr7t2kg.js → hive-promoter-k57j3kp6.js} +31 -31
- package/dist/cli/{index-q6gjwy7m.js → index-497a3hhj.js} +2 -2
- package/dist/cli/{index-sy5aeegg.js → index-61c3d769.js} +866 -37
- package/dist/cli/{index-rq7k03rk.js → index-7ezv5j23.js} +1 -1
- package/dist/cli/{index-4mm22fzj.js → index-7h2armwf.js} +1 -1
- package/dist/cli/{index-1f4n43yz.js → index-7npz9n4s.js} +5 -4
- package/dist/cli/{index-gt8cxfbp.js → index-7v0ex0jt.js} +2 -2
- package/dist/cli/{index-ebz97mks.js → index-8c9qzpy7.js} +1 -0
- package/dist/cli/{index-5m7qjj29.js → index-98jmggma.js} +6 -6
- package/dist/cli/{index-cn233hsy.js → index-awjx0wgk.js} +1 -1
- package/dist/cli/{index-962jgzdq.js → index-bqxffayb.js} +1 -1
- package/dist/cli/{index-h3re5c78.js → index-c9zp4xwc.js} +12 -1
- package/dist/cli/{index-p39xem8b.js → index-dh5q6z7y.js} +3 -3
- package/dist/cli/{index-7qv869f0.js → index-dq93ar40.js} +5 -5
- package/dist/cli/{index-3055dgzp.js → index-drqvph47.js} +4 -4
- package/dist/cli/{index-jmths6jj.js → index-e1ygmd4q.js} +33 -33
- package/dist/cli/{index-py6bqwnb.js → index-f72612zc.js} +16 -2
- package/dist/cli/{index-9q6w7kke.js → index-gjx53y3c.js} +1 -1
- package/dist/cli/{index-xs15netk.js → index-j3ss86kf.js} +1 -1
- package/dist/cli/{index-kkfgygvn.js → index-jszabr0r.js} +4 -4
- package/dist/cli/{index-9k3zc2t8.js → index-m1cw9fsh.js} +6 -6
- package/dist/cli/{index-wzx6atbv.js → index-m84z3aa8.js} +3 -3
- package/dist/cli/{index-e75bzfgd.js → index-mmr96pwr.js} +1 -1
- package/dist/cli/{index-85qjc7b2.js → index-nk498mx6.js} +1 -1
- package/dist/cli/{index-3yh737hc.js → index-nnzdayvk.js} +6 -6
- package/dist/cli/{index-va1edd2n.js → index-ny0g8fdg.js} +5 -5
- package/dist/cli/{index-yrar1ask.js → index-pkz91fwm.js} +3 -3
- package/dist/cli/{index-zjvf7edj.js → index-pqjcyj0p.js} +1 -1
- package/dist/cli/{index-9fspg1xw.js → index-prv20xq6.js} +1 -1
- package/dist/cli/{index-fzkx24q5.js → index-qc53dfzh.js} +2 -2
- package/dist/cli/{index-8bjv01t8.js → index-v8dsmee1.js} +4 -4
- package/dist/cli/{index-d9s5hb0m.js → index-wccdm7jv.js} +5 -5
- package/dist/cli/{index-w699ekk9.js → index-z0bxbb9g.js} +2 -2
- package/dist/cli/{index-rnyt2z5r.js → index-zdv914xa.js} +304 -438
- package/dist/cli/{index-s7w428r3.js → index-znf683sm.js} +1 -1
- package/dist/cli/{index-rhc8jve7.js → index-zpzvpybn.js} +2 -2
- package/dist/cli/index.js +31 -31
- package/dist/cli/{knowledge-escalator-zksm9833.js → knowledge-escalator-3q2x34cg.js} +12 -12
- package/dist/cli/{knowledge-events-ayta750w.js → knowledge-events-5y34w84b.js} +10 -10
- package/dist/cli/{knowledge-link-7c7fjnzc.js → knowledge-link-xezm8hr3.js} +3 -3
- package/dist/cli/{knowledge-store-q5axge8b.js → knowledge-store-fqv89q5k.js} +4 -4
- package/dist/cli/{knowledge-validator-3rrbva2p.js → knowledge-validator-fsdx14tk.js} +6 -6
- package/dist/cli/{model-preflight-x9szw1v4.js → model-preflight-yqqchzjn.js} +1 -1
- package/dist/cli/{pending-delegations-kc7tzxg9.js → pending-delegations-6ae7wy5q.js} +5 -3
- package/dist/cli/{pr-review-reentry-authorization-vag5gh50.js → pr-review-reentry-authorization-986tk381.js} +33 -32
- package/dist/cli/{pr-subscriptions-wbdw9a82.js → pr-subscriptions-asjevc5p.js} +3 -3
- package/dist/cli/{runner-p9wg6z34.js → runner-wsdcy2d6.js} +4 -4
- package/dist/cli/{scan-cursor-4fjwtt1k.js → scan-cursor-shn926r6.js} +5 -5
- package/dist/cli/{schema-d0nbzj5k.js → schema-98tdb9h0.js} +4 -2
- package/dist/cli/{scope-persistence-bckcbc8h.js → scope-persistence-cn34xnwr.js} +8 -8
- package/dist/cli/{skill-generator-kebhevet.js → skill-generator-kck7087c.js} +14 -14
- package/dist/cli/{worktree-collision-ownership-h8qswnrp.js → worktree-collision-ownership-6b3kshcv.js} +4 -4
- package/dist/cli/{worktree-isolation-q0kbmadz.js → worktree-isolation-he01qhss.js} +31 -31
- package/dist/config/constants.d.ts +8 -0
- package/dist/config/evidence-schema.d.ts +3 -0
- package/dist/config/schema.d.ts +8 -0
- package/dist/hooks/pr-workflow-gate.d.ts +25 -1
- package/dist/index.js +124 -111
- package/dist/tools/dispatch-lanes.d.ts +27 -3
- package/dist/tools/index.d.ts +1 -0
- package/dist/tools/manifest.d.ts +1 -0
- package/dist/tools/sast-baseline.d.ts +2 -0
- package/dist/tools/sast-scan.d.ts +2 -2
- package/dist/tools/submit-pr-review-result.d.ts +5 -0
- package/dist/tools/tool-metadata.d.ts +8 -0
- package/opencode-swarm.schema.json +4 -0
- 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,
|
|
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[];
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -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';
|
package/dist/tools/manifest.d.ts
CHANGED
|
@@ -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
|
|
102
|
-
* truncated_pre_existing and
|
|
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.
|
|
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",
|