opencode-swarm 7.146.0 → 7.146.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-review/SKILL.md +67 -33
- package/dist/cli/{config-doctor-vs6hvbew.js → config-doctor-vstrprja.js} +2 -2
- package/dist/cli/{core-jvvm935f.js → core-3wzpwe5z.js} +1 -1
- package/dist/cli/{curation-policy-xv0j8zyt.js → curation-policy-x19e8bqc.js} +4 -4
- package/dist/cli/{curator-5bxh1djq.js → curator-cvy1s7wd.js} +23 -23
- package/dist/cli/{curator-llm-factory-pe6skby4.js → curator-llm-factory-6bra0bfd.js} +23 -23
- package/dist/cli/{evidence-summary-service-6m9jmzk8.js → evidence-summary-service-yhap2xph.js} +9 -9
- package/dist/cli/{gate-evidence-84sfx6g8.js → gate-evidence-vxbyq5sb.js} +4 -4
- package/dist/cli/{guardrail-explain-jhbxq8yb.js → guardrail-explain-h8cnwa02.js} +24 -24
- package/dist/cli/{guardrail-log-vpbp3rm4.js → guardrail-log-syb7tz2w.js} +3 -3
- package/dist/cli/{hive-promoter-mmmfszv8.js → hive-promoter-3tex870c.js} +23 -23
- package/dist/cli/{index-5qwmpamg.js → index-01ybcsa5.js} +1 -1
- package/dist/cli/{index-kfmee1cr.js → index-42nq97rb.js} +6 -6
- package/dist/cli/{index-kwxp0z0n.js → index-46cypnz3.js} +3 -3
- package/dist/cli/{index-n6ke10ck.js → index-4vwn66wk.js} +3 -3
- package/dist/cli/{index-fyr2wbvz.js → index-a1febb2k.js} +2 -2
- package/dist/cli/{index-vk15nbh4.js → index-c9jr4j2q.js} +1 -1
- package/dist/cli/{index-zd1mfygt.js → index-cr90rcg3.js} +5 -5
- package/dist/cli/{index-zsmsy1dh.js → index-cx67qa9g.js} +1 -1
- package/dist/cli/{index-4p3qfb05.js → index-e1hjd15c.js} +1 -1
- package/dist/cli/{index-s8qyaqs2.js → index-f3x2gsby.js} +1 -1
- package/dist/cli/{index-gxbhp7sx.js → index-jv9xs6mb.js} +2 -2
- package/dist/cli/{index-q2mvacjr.js → index-n4k0pt5f.js} +4 -4
- package/dist/cli/{index-fzqhn96z.js → index-p0m03xa6.js} +1 -1
- package/dist/cli/{index-j20fzn0w.js → index-qbpxrw95.js} +1 -1
- package/dist/cli/{index-j43qndgc.js → index-r46q6996.js} +25 -25
- package/dist/cli/{index-pz2py5v7.js → index-rfph0nhf.js} +321 -99
- package/dist/cli/{index-92cxd0r1.js → index-tj861zhd.js} +3 -3
- package/dist/cli/{index-g3xt1d16.js → index-vj9bba5k.js} +4 -4
- package/dist/cli/{index-f17j50dx.js → index-vmfaafte.js} +5 -5
- package/dist/cli/{index-x8pm918t.js → index-w0cj7zyd.js} +1 -1
- package/dist/cli/{index-0a0asz2s.js → index-w5r84rd1.js} +1 -1
- package/dist/cli/{index-jfcgnvg6.js → index-y3hmyvt6.js} +2 -2
- package/dist/cli/{index-kggqpefz.js → index-ycgm9pzg.js} +1 -1
- package/dist/cli/{index-bma2wrqx.js → index-yxhcy5cm.js} +5 -1
- package/dist/cli/{index-d4e6wpkg.js → index-z5ppkn8y.js} +8 -5
- package/dist/cli/{index-fay8h6v8.js → index-z9ed68jt.js} +18 -3
- package/dist/cli/{index-nsr5b69r.js → index-zkaz3fhw.js} +1 -1
- package/dist/cli/index.js +23 -23
- package/dist/cli/{knowledge-escalator-c9p3w12b.js → knowledge-escalator-mn4sx4qd.js} +9 -9
- package/dist/cli/{knowledge-events-d201414m.js → knowledge-events-x975ngy4.js} +7 -7
- package/dist/cli/{knowledge-link-82ew2yc4.js → knowledge-link-8pr02pza.js} +3 -3
- package/dist/cli/{knowledge-store-ds45k9th.js → knowledge-store-33p762ey.js} +4 -4
- package/dist/cli/{knowledge-validator-707vsncy.js → knowledge-validator-q5jc0scs.js} +6 -6
- package/dist/cli/{runner-pqsf809k.js → runner-e7z9cf5y.js} +4 -4
- package/dist/cli/{scan-cursor-znhqb8xa.js → scan-cursor-p7t5mb4x.js} +5 -5
- package/dist/cli/{schema-dnnm0p40.js → schema-t8bmshhj.js} +5 -1
- package/dist/cli/{scope-persistence-4n24a1e2.js → scope-persistence-2kyrgsca.js} +5 -5
- package/dist/cli/{skill-generator-5s0p3y8k.js → skill-generator-fwvmcv8m.js} +11 -11
- package/dist/cli/{worktree-isolation-1v2mythh.js → worktree-isolation-87j70zg1.js} +23 -23
- package/dist/commands/registry.d.ts +1 -1
- package/dist/config/schema.d.ts +22 -0
- package/dist/hooks/guardrails/index.d.ts +35 -0
- package/dist/hooks/knowledge-application-gate.d.ts +23 -0
- package/dist/hooks/pr-workflow-gate.d.ts +48 -2
- package/dist/hooks/pr-workflow-response-gate.d.ts +24 -0
- package/dist/index.js +71 -72
- package/dist/tools/dispatch-lanes.d.ts +13 -1
- package/dist/workflow/coder-settlement.d.ts +13 -0
- package/dist/workflow/stage-a-repair.d.ts +41 -0
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { type BackgroundDelegationRecord, type BackgroundDelegationWorkflowLaneRecovery } from '../background/pending-delegations.js';
|
|
3
3
|
import { resolveExactMergeBaseAsync, resolvePrWorkflowRevisionDigestAsync } from '../background/workspace-snapshot.js';
|
|
4
|
+
import { loadPluginConfig } from '../config/loader.js';
|
|
4
5
|
import { type PrReviewDepthTier, validatePrWorkflowTransportRecovery } from '../hooks/pr-workflow-gate.js';
|
|
5
6
|
import { buildLaneOrientationBlock } from '../hooks/repo-graph-injection.js';
|
|
6
7
|
import { createParallelDispatcher } from '../parallel/dispatcher/parallel-dispatcher.js';
|
|
@@ -90,6 +91,11 @@ declare const DispatchLanesAsyncArgsSchema: z.ZodObject<{
|
|
|
90
91
|
evidence: z.ZodString;
|
|
91
92
|
}, z.core.$strict>], "result">>>;
|
|
92
93
|
feedback_inventory: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
94
|
+
pr_review_wave_stage: z.ZodOptional<z.ZodEnum<{
|
|
95
|
+
canary: "canary";
|
|
96
|
+
fanout: "fanout";
|
|
97
|
+
}>>;
|
|
98
|
+
pr_review_wave_attempt: z.ZodOptional<z.ZodNumber>;
|
|
93
99
|
}, z.core.$strip>;
|
|
94
100
|
declare const CollectLaneResultsArgsSchema: z.ZodObject<{
|
|
95
101
|
batch_id: z.ZodString;
|
|
@@ -158,7 +164,7 @@ export interface DispatchLanesResult {
|
|
|
158
164
|
}
|
|
159
165
|
export interface DispatchLanesAsyncResult {
|
|
160
166
|
success: boolean;
|
|
161
|
-
failure_class?: 'invalid_args' | 'no_client';
|
|
167
|
+
failure_class?: 'invalid_args' | 'no_client' | 'circuit_open' | 'retry_exhausted';
|
|
162
168
|
message?: string;
|
|
163
169
|
batch_id: string | null;
|
|
164
170
|
dispatched: number;
|
|
@@ -295,6 +301,7 @@ export declare const _internals: {
|
|
|
295
301
|
getSessionOps: () => SessionOps | null;
|
|
296
302
|
getGeneratedAgentNames: () => readonly string[];
|
|
297
303
|
createParallelDispatcher: typeof createParallelDispatcher;
|
|
304
|
+
loadPluginConfig: typeof loadPluginConfig;
|
|
298
305
|
resolvePrWorkflowRevisionDigestAsync: typeof resolvePrWorkflowRevisionDigestAsync;
|
|
299
306
|
resolveExactMergeBaseAsync: typeof resolveExactMergeBaseAsync;
|
|
300
307
|
validatePrWorkflowTransportRecovery: typeof validatePrWorkflowTransportRecovery;
|
|
@@ -386,6 +393,11 @@ export declare const _test_exports: {
|
|
|
386
393
|
evidence: z.ZodString;
|
|
387
394
|
}, z.core.$strict>], "result">>>;
|
|
388
395
|
feedback_inventory: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
396
|
+
pr_review_wave_stage: z.ZodOptional<z.ZodEnum<{
|
|
397
|
+
canary: "canary";
|
|
398
|
+
fanout: "fanout";
|
|
399
|
+
}>>;
|
|
400
|
+
pr_review_wave_attempt: z.ZodOptional<z.ZodNumber>;
|
|
389
401
|
}, z.core.$strip>;
|
|
390
402
|
DEFAULT_TIMEOUT_MS: number;
|
|
391
403
|
DEFAULT_ASYNC_LAUNCH_TIMEOUT_MS: number;
|
|
@@ -80,6 +80,19 @@ export interface CoderSettlementWalState {
|
|
|
80
80
|
transitionId?: string;
|
|
81
81
|
processId?: number;
|
|
82
82
|
recordedAt?: string;
|
|
83
|
+
/**
|
|
84
|
+
* Whether the settlement attributed an accepted mutation. Only meaningful
|
|
85
|
+
* on COMMITTED WALs — the parser enforces the boolean only for PREPARED
|
|
86
|
+
* state (workflow-wal-schema.ts), so consumers must compare `=== true`.
|
|
87
|
+
*/
|
|
88
|
+
accepted?: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* The file paths the dispatch declared it would change, as recorded on the
|
|
91
|
+
* WAL at dispatch time. `null`/absent means no scope was declared. Used to
|
|
92
|
+
* bind durable Stage-A attribution to the files a gate-tool call actually
|
|
93
|
+
* scanned, rather than attributing on task-state cardinality alone.
|
|
94
|
+
*/
|
|
95
|
+
declaredFiles?: string[] | null;
|
|
83
96
|
/** The in-process ownership registry still holds this dispatch (toolAfter never drained it). */
|
|
84
97
|
ownedInProcess: boolean;
|
|
85
98
|
/** A different, still-alive host process owns the dispatch. Never force-releasable from here. */
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export type StageARepairOutcome = {
|
|
2
|
+
taskId: string;
|
|
3
|
+
outcome: 'repaired';
|
|
4
|
+
generation: number;
|
|
5
|
+
transitionId: string;
|
|
6
|
+
} | {
|
|
7
|
+
taskId: string;
|
|
8
|
+
outcome: 'skipped_not_wedged';
|
|
9
|
+
state: string;
|
|
10
|
+
} | {
|
|
11
|
+
taskId: string;
|
|
12
|
+
outcome: 'skipped_not_green';
|
|
13
|
+
reason: 'no_pre_check_bundles' | 'pre_check_failed_or_stale';
|
|
14
|
+
} | {
|
|
15
|
+
taskId: string;
|
|
16
|
+
outcome: 'error';
|
|
17
|
+
message: string;
|
|
18
|
+
};
|
|
19
|
+
export interface StageARepairResult {
|
|
20
|
+
results: StageARepairOutcome[];
|
|
21
|
+
truncated: boolean;
|
|
22
|
+
}
|
|
23
|
+
export type PreCheckGreennessResult = {
|
|
24
|
+
green: true;
|
|
25
|
+
} | {
|
|
26
|
+
green: false;
|
|
27
|
+
reason: 'no_pre_check_bundles' | 'pre_check_failed_or_stale';
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Repair path for tasks already wedged at `coder_delegated`
|
|
31
|
+
* (TASK_WORKFLOW_STAGE_A_REQUIRED post-reset wedge). For each flat task
|
|
32
|
+
* evidence file whose workflow store sits at `coder_delegated` with no
|
|
33
|
+
* pre_check gate proof AND a green post-settlement pre-check bundle, emits
|
|
34
|
+
* the missing `stage_a_passed` transition directly and appends an audit
|
|
35
|
+
* event. Never re-runs the coder; live DISPATCHED/PREPARED settlement WALs
|
|
36
|
+
* refuse the transition loudly (CODER_SETTLEMENT_IN_PROGRESS) and surface as
|
|
37
|
+
* per-task errors without blocking siblings.
|
|
38
|
+
*/
|
|
39
|
+
export declare function repairWedgedStageA(directory: string, options?: {
|
|
40
|
+
taskIds?: string[];
|
|
41
|
+
}): Promise<StageARepairResult>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-swarm",
|
|
3
|
-
"version": "7.146.
|
|
3
|
+
"version": "7.146.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",
|