opencode-swarm 7.132.0 → 7.132.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.
- package/.opencode/skills/swarm-pr-feedback/SKILL.md +8 -0
- package/.opencode/skills/swarm-pr-review/SKILL.md +17 -5
- package/README.md +11 -2
- package/dist/cli/{config-doctor-3rssa871.js → config-doctor-bp5spb79.js} +2 -2
- package/dist/cli/{curation-policy-3914h3g9.js → curation-policy-7zp2m9gv.js} +2 -2
- package/dist/cli/{curator-1e77dq6x.js → curator-h067mrcc.js} +12 -12
- package/dist/cli/{curator-llm-factory-41c17ybs.js → curator-llm-factory-605d08hf.js} +12 -12
- package/dist/cli/{guardrail-explain-624brj1y.js → guardrail-explain-s7vzm6z7.js} +13 -13
- package/dist/cli/{guardrail-log-vfka4tcn.js → guardrail-log-aa112fxv.js} +3 -3
- package/dist/cli/{hive-promoter-mw5prfy2.js → hive-promoter-nv0m5rzk.js} +12 -12
- package/dist/cli/{index-6mcx76j9.js → index-3s9rfnqq.js} +4 -4
- package/dist/cli/{index-q0ysv66x.js → index-630badhp.js} +1 -1
- package/dist/cli/{index-zah4qws8.js → index-6ccynjv3.js} +2 -2
- package/dist/cli/{index-qg1cj1ev.js → index-8d3m0ge3.js} +14 -14
- package/dist/cli/{index-e630fw43.js → index-9cf1yr67.js} +3 -3
- package/dist/cli/{index-5x3g1q91.js → index-bvp2v7k1.js} +18 -4
- package/dist/cli/{index-sbq3gbjs.js → index-djwemsjn.js} +1 -1
- package/dist/cli/{index-8w3sp149.js → index-f6480ee6.js} +48 -39
- package/dist/cli/{index-64z5dvam.js → index-fgcmxjp7.js} +1 -1
- package/dist/cli/{index-nsxchdx0.js → index-jgfcp9bh.js} +1 -1
- package/dist/cli/{index-exs5bt14.js → index-jj4earrh.js} +1 -1
- package/dist/cli/{index-99tq1zd5.js → index-k4tmx21m.js} +2 -2
- package/dist/cli/{index-ppkp20fp.js → index-mwkwyej1.js} +5 -5
- package/dist/cli/{index-2dtwjx39.js → index-rt5jgktq.js} +1 -1
- package/dist/cli/{index-zrh07ykv.js → index-y5qp59rc.js} +2 -2
- package/dist/cli/{index-fegng5pv.js → index-yvv1wt2h.js} +1 -1
- package/dist/cli/index.js +12 -12
- package/dist/cli/{knowledge-escalator-5hv2dwhz.js → knowledge-escalator-j0nceas7.js} +3 -3
- package/dist/cli/{knowledge-events-434663dp.js → knowledge-events-gpqc62jr.js} +1 -1
- package/dist/cli/{knowledge-store-73ykq5j3.js → knowledge-store-ggxr3ww5.js} +1 -1
- package/dist/cli/{knowledge-validator-tnadtt1h.js → knowledge-validator-007smap6.js} +4 -4
- package/dist/cli/{scan-cursor-e33n9pej.js → scan-cursor-wz4bff7a.js} +2 -2
- package/dist/cli/{schema-1kwmcayk.js → schema-023gwne7.js} +1 -1
- package/dist/cli/{skill-generator-k111qfdw.js → skill-generator-rtsg1m7x.js} +5 -5
- package/dist/config/constants.d.ts +22 -0
- package/dist/hooks/guardrails/index.d.ts +32 -0
- package/dist/hooks/guardrails/messages-transform.d.ts +7 -0
- package/dist/hooks/guardrails.d.ts +1 -1
- package/dist/hooks/pr-workflow-gate.d.ts +2 -0
- package/dist/hooks/pr-workflow-response-gate.d.ts +44 -26
- package/dist/index.d.ts +13 -0
- package/dist/index.js +30 -30
- package/dist/tools/dispatch-lanes.d.ts +18 -0
- package/dist/tools/run-pr-feedback-stage-a.d.ts +2 -0
- package/dist/tools/tool-metadata.d.ts +4 -0
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { type BackgroundDelegationRecord } from '../background/pending-delegations.js';
|
|
2
3
|
import { resolveExactMergeBaseAsync, resolvePrWorkflowRevisionDigestAsync } from '../background/workspace-snapshot.js';
|
|
3
4
|
import { type PrReviewDepthTier } from '../hooks/pr-workflow-gate.js';
|
|
4
5
|
import { createParallelDispatcher } from '../parallel/dispatcher/parallel-dispatcher.js';
|
|
@@ -87,6 +88,15 @@ export interface DispatchLaneResult {
|
|
|
87
88
|
output_artifact_error?: string;
|
|
88
89
|
transcript_incomplete?: boolean;
|
|
89
90
|
message_count?: number;
|
|
91
|
+
/**
|
|
92
|
+
* Set to true when this lane's `output` preview was withheld because an
|
|
93
|
+
* identical preview (same batch, lane, and result digest) was already
|
|
94
|
+
* delivered on an earlier `collect_lane_results` poll. All other result
|
|
95
|
+
* metadata (`output_ref`, `output_digest`, `output_chars`, etc.) is still
|
|
96
|
+
* present, so callers who need the full text again should retrieve it via
|
|
97
|
+
* `retrieve_lane_output` using `output_ref` rather than re-polling for it.
|
|
98
|
+
*/
|
|
99
|
+
output_omitted_repeat?: boolean;
|
|
90
100
|
error?: string;
|
|
91
101
|
}
|
|
92
102
|
export interface DispatchLanesResult {
|
|
@@ -297,6 +307,13 @@ export declare const _test_exports: {
|
|
|
297
307
|
DEFAULT_ASYNC_LAUNCH_TIMEOUT_MS: number;
|
|
298
308
|
DEFAULT_ASYNC_STALE_TIMEOUT_MS: number;
|
|
299
309
|
DEFAULT_COLLECT_TIMEOUT_MS: number;
|
|
310
|
+
/**
|
|
311
|
+
* Clears the module-level `deliveredLaneOutputs` de-dupe set (see
|
|
312
|
+
* S1.1) so tests can assert first-poll vs. repeat-poll behavior without
|
|
313
|
+
* cross-test bleed-through.
|
|
314
|
+
*/
|
|
315
|
+
resetDeliveredLaneOutputs: () => void;
|
|
316
|
+
recordToLaneResult: typeof recordToLaneResult;
|
|
300
317
|
};
|
|
301
318
|
type ReadOnlyToolPermissions = Record<string, false> & {
|
|
302
319
|
write: false;
|
|
@@ -324,6 +341,7 @@ declare function extractAssistantTranscript(messages: Array<{
|
|
|
324
341
|
transcriptIncomplete: boolean;
|
|
325
342
|
};
|
|
326
343
|
declare function nextCollectPollInterval(currentMs: number): number;
|
|
344
|
+
declare function recordToLaneResult(record: BackgroundDelegationRecord, batchId: string): DispatchLaneResult;
|
|
327
345
|
declare function buildReadOnlyTools(): ReadOnlyToolPermissions;
|
|
328
346
|
type ApplyCommonPromptResult = {
|
|
329
347
|
ok: true;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { readGitTextAtRevision, resolveCurrentGitHead, resolveCurrentGitHeadAsync, resolveExactMergeBase, resolveExactMergeBaseAsync, resolveGitControlStateDigest, resolveGitControlStateDigestAsync, resolvePrWorkflowRevisionDigest, resolvePrWorkflowRevisionDigestAsync } from '../background/workspace-snapshot.js';
|
|
3
|
+
import { storeSummary } from '../summaries/manager.js';
|
|
3
4
|
import { runExternalTool } from '../utils/external-tool-runner.js';
|
|
4
5
|
import { createSwarmTool } from './create-tool.js';
|
|
5
6
|
declare const STAGE_A_CATEGORIES: readonly ["build", "typecheck", "lint", "diff-check", "reproduction"];
|
|
@@ -55,6 +56,7 @@ export declare function executeRunPrFeedbackStageA(args: unknown, directory: str
|
|
|
55
56
|
}): Promise<string>;
|
|
56
57
|
export declare const _internals: {
|
|
57
58
|
runExternalTool: typeof runExternalTool;
|
|
59
|
+
storeSummary: typeof storeSummary;
|
|
58
60
|
readGitTextAtRevision: typeof readGitTextAtRevision;
|
|
59
61
|
resolveExactMergeBase: typeof resolveExactMergeBase;
|
|
60
62
|
resolveExactMergeBaseAsync: typeof resolveExactMergeBaseAsync;
|
|
@@ -259,6 +259,10 @@ export declare const TOOL_METADATA: {
|
|
|
259
259
|
retrieve_summary: {
|
|
260
260
|
description: string;
|
|
261
261
|
agents: ("reviewer" | "test_engineer" | "coder" | "docs" | "designer" | "sme" | "critic" | "critic_sounding_board" | "critic_drift_verifier" | "critic_hallucination_verifier" | "critic_architecture_supervisor" | "architect" | "docs_design" | "spec_writer")[];
|
|
262
|
+
prWorkflow: {
|
|
263
|
+
modes: ("PR_REVIEW" | "PR_FEEDBACK")[];
|
|
264
|
+
capability: "observe";
|
|
265
|
+
};
|
|
262
266
|
};
|
|
263
267
|
retrieve_lane_output: {
|
|
264
268
|
description: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-swarm",
|
|
3
|
-
"version": "7.132.
|
|
3
|
+
"version": "7.132.2",
|
|
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",
|