opencode-swarm 7.157.1 → 7.158.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 +24 -26
- package/.opencode/skills/swarm-pr-review/references/findings-persistence-contract.md +11 -3
- package/.opencode/skills/swarm-pr-review/references/parser-dry-run.md +1 -1
- package/.opencode/skills/swarm-pr-review/references/prompt-templates.md +3 -3
- package/dist/background/candidate-contract.d.ts +20 -3
- package/dist/background/candidate-parser.d.ts +8 -1
- package/dist/background/pr-review-contract.d.ts +93 -5
- package/dist/background/pr-subscriptions.d.ts +31 -15
- package/dist/cli/{coder-settlement-tqh28pr3.js → coder-settlement-nrtcjr0h.js} +9 -9
- package/dist/cli/{config-doctor-9rsk8ags.js → config-doctor-hs0x10ty.js} +3 -3
- package/dist/cli/{core-7zwdc0sk.js → core-a42bexs1.js} +3 -3
- package/dist/cli/{curation-policy-72qx868r.js → curation-policy-vn3m5nq2.js} +4 -4
- package/dist/cli/curator-drift-g6w4ga1q.js +1 -1
- package/dist/cli/{curator-llm-factory-rtkeb1y1.js → curator-llm-factory-21vqqvn3.js} +31 -31
- package/dist/cli/{curator-fdj5ftfz.js → curator-yawrnk3t.js} +31 -31
- package/dist/cli/{evidence-summary-service-bhqvx9qe.js → evidence-summary-service-kmc92b95.js} +12 -12
- package/dist/cli/{gate-evidence-rp0r5phx.js → gate-evidence-6tzhdxb2.js} +6 -6
- package/dist/cli/{guardrail-explain-17me709w.js → guardrail-explain-7xrdp18c.js} +32 -32
- package/dist/cli/{guardrail-log-te4a5fmn.js → guardrail-log-f16sdc3p.js} +4 -4
- package/dist/cli/{guardrail-reset-5n76tj7e.js → guardrail-reset-0ks08s0t.js} +31 -31
- package/dist/cli/{hive-promoter-e0zrkgns.js → hive-promoter-d661k3qq.js} +31 -31
- package/dist/cli/{index-pr6a7669.js → index-203fqkqk.js} +1 -1
- package/dist/cli/{index-ybvtfthv.js → index-2j07670d.js} +2 -2
- package/dist/cli/{index-w7s5vgb6.js → index-4wy9kzjg.js} +34 -34
- package/dist/cli/{index-sdde1nvx.js → index-5erwyk1b.js} +5 -5
- package/dist/cli/{index-b5xm177r.js → index-5zgf140g.js} +1 -1
- package/dist/cli/{index-n3362zjr.js → index-6x9jq0cd.js} +3 -3
- package/dist/cli/{index-pbh1rmb9.js → index-7qvfkgyk.js} +4 -4
- package/dist/cli/{index-ngn6jmad.js → index-7s1hmrfh.js} +1 -1
- package/dist/cli/{index-b3cwazk2.js → index-86vvhe8m.js} +2 -2
- package/dist/cli/{index-dwkrdpz2.js → index-8fqb0ynp.js} +1 -1
- package/dist/cli/{index-tt350s4g.js → index-ac8rwjsg.js} +859 -459
- package/dist/cli/{index-xttdbb6d.js → index-azx50qge.js} +5 -5
- package/dist/cli/{index-80qxscrc.js → index-dr2tfawg.js} +3 -3
- package/dist/cli/{index-r98wqjw4.js → index-ff8xjr1c.js} +3 -5
- package/dist/cli/{index-xe6zbfps.js → index-h52hs4e9.js} +1 -1
- package/dist/cli/{index-r4qxngnx.js → index-hrrzxz3q.js} +8 -8
- package/dist/cli/{index-gg70afs7.js → index-jz216dhj.js} +6 -6
- package/dist/cli/{index-91ybfvy2.js → index-mc9qgkwd.js} +532 -101
- package/dist/cli/{index-hq3m47kh.js → index-mfv7mfgg.js} +2 -2
- package/dist/cli/{index-14awxpgt.js → index-mt6qjp4c.js} +2 -2
- package/dist/cli/{index-1gk7ctgp.js → index-nphnjeh8.js} +2 -2
- package/dist/cli/{index-gpf3cjre.js → index-pfnj5pvs.js} +1 -1
- package/dist/cli/{index-e7m7g2f9.js → index-t8g88esk.js} +5 -5
- package/dist/cli/{index-n9hecanw.js → index-tc14d2zy.js} +4 -4
- package/dist/cli/{index-1vjjh2gp.js → index-tppnfxkm.js} +4 -4
- package/dist/cli/{index-q24ffxx6.js → index-xscjecyq.js} +6 -6
- package/dist/cli/{index-rgkwg6d7.js → index-xzhk2hav.js} +1 -1
- package/dist/cli/{index-qy6rcnjg.js → index-ygxb3jw4.js} +6 -6
- package/dist/cli/{index-9r7gp6cp.js → index-yt75r1er.js} +4 -0
- package/dist/cli/{index-t0kxka8n.js → index-z54qw70y.js} +1 -1
- package/dist/cli/{index-6sbx96v6.js → index-zcmwwp1x.js} +5 -4
- package/dist/cli/{index-az2sga91.js → index-zy60xd05.js} +1 -1
- package/dist/cli/index.js +32 -32
- package/dist/cli/{knowledge-escalator-wrpk82b9.js → knowledge-escalator-9py5r6c9.js} +11 -11
- package/dist/cli/{knowledge-events-4z6yzntf.js → knowledge-events-vcbece74.js} +9 -9
- package/dist/cli/{knowledge-link-z9cchqdj.js → knowledge-link-cj2abbae.js} +3 -3
- package/dist/cli/{knowledge-store-z9686tpv.js → knowledge-store-0rdfjv20.js} +4 -4
- package/dist/cli/{knowledge-validator-rqb0b436.js → knowledge-validator-nwjnjgf5.js} +6 -6
- package/dist/cli/{model-preflight-cv9kvw8h.js → model-preflight-w85ecyxh.js} +1 -1
- package/dist/cli/{pending-delegations-g10v5k22.js → pending-delegations-ht1vgaze.js} +1 -1
- package/dist/cli/pr-review-reentry-authorization-857b9rvv.js +299 -0
- package/dist/cli/{pr-subscriptions-76vg2xya.js → pr-subscriptions-j9j70bmd.js} +2 -2
- package/dist/cli/{runner-eagt6gf8.js → runner-sj5sf36c.js} +4 -4
- package/dist/cli/{scan-cursor-7s1bz7ew.js → scan-cursor-59yj7tp9.js} +5 -5
- package/dist/cli/{schema-78pdxc8f.js → schema-8a7fyp87.js} +2 -2
- package/dist/cli/{scope-persistence-7ad69qmq.js → scope-persistence-prdxtcr3.js} +7 -7
- package/dist/cli/{skill-generator-7cxf53ye.js → skill-generator-v2jkgp63.js} +13 -13
- package/dist/cli/{worktree-collision-ownership-ry7xnaae.js → worktree-collision-ownership-6x03w8h7.js} +4 -4
- package/dist/cli/{worktree-isolation-1jcc8ynj.js → worktree-isolation-s0setq2a.js} +31 -31
- package/dist/hooks/pr-review-reentry-authorization.d.ts +97 -0
- package/dist/hooks/pr-workflow-gate.d.ts +211 -8
- package/dist/index.js +479 -471
- package/dist/tools/authorize-pr-review-reentry.d.ts +16 -0
- package/dist/tools/complete-pr-workflow.d.ts +2 -1
- package/dist/tools/index.d.ts +1 -0
- package/dist/tools/manifest.d.ts +1 -0
- package/dist/tools/tool-metadata.d.ts +4 -0
- package/dist/tools/write-pr-review-artifact.d.ts +18 -0
- package/package.json +1 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { createSwarmTool } from './create-tool.js';
|
|
2
|
+
/**
|
|
3
|
+
* Issue a ONE-USE reviewer re-entry authorization (issue #2383) for the
|
|
4
|
+
* CURRENT active PR_REVIEW workflow. The very next direct Task dispatch of
|
|
5
|
+
* the declared role consumes it atomically and bypasses ONLY the generic
|
|
6
|
+
* Stage-A task-workflow requirement; every other delegation gate stays
|
|
7
|
+
* authoritative. Bindings are exact (session, workflow, run, head SHA,
|
|
8
|
+
* worktree revision digest, role, gate generation): replay, cross-session
|
|
9
|
+
* use, wrong role, expiry, or any workflow progress since issuance fails
|
|
10
|
+
* closed. Issue immediately before the Task dispatch — authorizations are
|
|
11
|
+
* not stockpilable.
|
|
12
|
+
*/
|
|
13
|
+
export declare function executeAuthorizePrReviewReentry(args: unknown, directory: string, context?: {
|
|
14
|
+
sessionID?: string;
|
|
15
|
+
}): Promise<string>;
|
|
16
|
+
export declare const authorize_pr_review_reentry: ReturnType<typeof createSwarmTool>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { completePrWorkflow, readPrWorkflowGateState, settlePresumedStalePrWorkflowLanes } from '../hooks/pr-workflow-gate.js';
|
|
1
|
+
import { completePrWorkflow, readPrReviewTerminalCoverageForReport, readPrWorkflowGateState, settlePresumedStalePrWorkflowLanes } from '../hooks/pr-workflow-gate.js';
|
|
2
2
|
import { createSwarmTool } from './create-tool.js';
|
|
3
3
|
import { listPendingPrWorkflowCheckoutRestores } from './prepare-pr-workflow-checkout.js';
|
|
4
4
|
export declare function executeCompletePrWorkflow(args: unknown, directory: string, context?: {
|
|
@@ -9,5 +9,6 @@ export declare const _internals: {
|
|
|
9
9
|
completePrWorkflow: typeof completePrWorkflow;
|
|
10
10
|
listPendingPrWorkflowCheckoutRestores: typeof listPendingPrWorkflowCheckoutRestores;
|
|
11
11
|
readPrWorkflowGateState: typeof readPrWorkflowGateState;
|
|
12
|
+
readPrReviewTerminalCoverageForReport: typeof readPrReviewTerminalCoverageForReport;
|
|
12
13
|
settlePresumedStalePrWorkflowLanes: typeof settlePresumedStalePrWorkflowLanes;
|
|
13
14
|
};
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -97,6 +97,7 @@ export type { FlakyTestEntry } from '../test-impact/flaky-detector.js';
|
|
|
97
97
|
export { computeFlakyScore, detectFlakyTests, isTestQuarantined, } from '../test-impact/flaky-detector.js';
|
|
98
98
|
export { abort_pr_workflow, executeAbortPrWorkflow, } from './abort-pr-workflow';
|
|
99
99
|
export { approve_plan_critic, executeApprovePlanCritic, } from './approve-plan-critic';
|
|
100
|
+
export { authorize_pr_review_reentry } from './authorize-pr-review-reentry';
|
|
100
101
|
export { complete_pr_workflow, executeCompletePrWorkflow, } from './complete-pr-workflow';
|
|
101
102
|
export { epic_plan_waves } from './epic-plan-waves';
|
|
102
103
|
export { epic_record_divergence } from './epic-record-divergence';
|
package/dist/tools/manifest.d.ts
CHANGED
|
@@ -44,6 +44,7 @@ export declare const TOOL_MANIFEST: {
|
|
|
44
44
|
completion_verify: () => ToolDefinition;
|
|
45
45
|
complete_pr_workflow: () => ToolDefinition;
|
|
46
46
|
abort_pr_workflow: () => ToolDefinition;
|
|
47
|
+
authorize_pr_review_reentry: () => ToolDefinition;
|
|
47
48
|
approve_plan_critic: () => ToolDefinition;
|
|
48
49
|
prepare_pr_workflow_checkout: () => ToolDefinition;
|
|
49
50
|
record_implementation_review: () => ToolDefinition;
|
|
@@ -156,6 +156,10 @@ export declare const TOOL_METADATA: {
|
|
|
156
156
|
description: string;
|
|
157
157
|
agents: "architect"[];
|
|
158
158
|
};
|
|
159
|
+
authorize_pr_review_reentry: {
|
|
160
|
+
description: string;
|
|
161
|
+
agents: "architect"[];
|
|
162
|
+
};
|
|
159
163
|
approve_plan_critic: {
|
|
160
164
|
description: string;
|
|
161
165
|
agents: "architect"[];
|
|
@@ -1,11 +1,29 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { FindingsSeverity } from '../background/candidate-contract.js';
|
|
3
|
+
import { PrReviewFindingSchema } from '../background/pr-review-contract.js';
|
|
1
4
|
import { assertPrReviewArtifactBoundary } from '../hooks/pr-workflow-gate.js';
|
|
2
5
|
import { createSwarmTool } from './create-tool.js';
|
|
6
|
+
/**
|
|
7
|
+
* READ shape. Deliberately tolerant of a missing `severity`: `readFindings`
|
|
8
|
+
* JSON-parses persisted lines without re-validating them, so rows written before
|
|
9
|
+
* severity became mandatory must still load (issue #2279 durable readability).
|
|
10
|
+
* The WRITE boundary is what enforces presence.
|
|
11
|
+
*/
|
|
12
|
+
type PersistedFinding = Omit<z.infer<typeof PrReviewFindingSchema>, 'severity'> & {
|
|
13
|
+
severity?: FindingsSeverity;
|
|
14
|
+
boundary: 'post_explorer' | 'post_reviewer' | 'post_critic';
|
|
15
|
+
pr_head_sha: string;
|
|
16
|
+
recorded_at: string;
|
|
17
|
+
};
|
|
18
|
+
declare function readFindings(filePath: string): Promise<PersistedFinding[]>;
|
|
3
19
|
declare function atomicWrite(filePath: string, content: string): Promise<void>;
|
|
4
20
|
declare function atomicCreate(filePath: string, content: string): Promise<boolean>;
|
|
5
21
|
export declare const _internals: {
|
|
6
22
|
atomicWrite: typeof atomicWrite;
|
|
7
23
|
atomicCreate: typeof atomicCreate;
|
|
8
24
|
assertBoundary: typeof assertPrReviewArtifactBoundary;
|
|
25
|
+
/** Exposed so the #2383 read/migration boundary is testable directly. */
|
|
26
|
+
readFindings: typeof readFindings;
|
|
9
27
|
};
|
|
10
28
|
export declare function executeWritePrReviewArtifact(args: unknown, directory: string, context?: {
|
|
11
29
|
sessionID?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-swarm",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.158.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",
|