opencode-swarm 7.164.5 → 7.164.6
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 +12 -12
- package/dist/background/pending-delegations.d.ts +9 -2
- package/dist/background/pr-review-contract.d.ts +9 -0
- package/dist/cli/{coder-settlement-x9wbqx46.js → coder-settlement-6qgvzx40.js} +9 -9
- package/dist/cli/{config-doctor-axd9d6hs.js → config-doctor-d1cbh67h.js} +2 -2
- package/dist/cli/{core-f1a1fk13.js → core-g0cvvj3b.js} +1 -1
- package/dist/cli/{curation-policy-2cy7wejw.js → curation-policy-7f8x9yg6.js} +4 -4
- package/dist/cli/{curator-drift-3s3q4wsy.js → curator-drift-0r0scc8r.js} +4 -4
- package/dist/cli/curator-llm-factory-dw7md4nr.js +66 -0
- package/dist/cli/{curator-b104f7a7.js → curator-q3qn89wn.js} +32 -32
- package/dist/cli/{evidence-summary-service-5xsjs3x3.js → evidence-summary-service-3meyb8rc.js} +13 -13
- package/dist/cli/{gate-evidence-ypja4156.js → gate-evidence-mhc0w7vp.js} +5 -5
- package/dist/cli/guardrail-explain-6cbszhw1.js +67 -0
- package/dist/cli/{guardrail-log-6t4e2j5f.js → guardrail-log-0nd1eqvz.js} +6 -6
- package/dist/cli/{guardrail-reset-es0bg976.js → guardrail-reset-mzeyd6jh.js} +32 -32
- package/dist/cli/{hive-promoter-yzv5g7jy.js → hive-promoter-w7g879cm.js} +32 -32
- package/dist/cli/{index-ea7sehgy.js → index-12xzj0hm.js} +2 -2
- package/dist/cli/{index-rz87mx1c.js → index-2c3np82d.js} +1 -1
- package/dist/cli/{index-fwebva1m.js → index-4k16cz8r.js} +6 -6
- package/dist/cli/{index-7rat6nyh.js → index-59hvr3f4.js} +4 -4
- package/dist/cli/{index-yrsag0vs.js → index-5p1tzpwh.js} +1 -1
- package/dist/cli/{index-aaqbhn9h.js → index-6f9yvd67.js} +2 -2
- package/dist/cli/{index-25jze7sf.js → index-7v3bb0h3.js} +1 -1
- package/dist/cli/{index-3gb7bw7h.js → index-935ww10s.js} +165 -93
- package/dist/cli/{index-4krjn1gn.js → index-9qvmsyab.js} +1 -1
- package/dist/cli/{index-aper29nf.js → index-ay9cr8tr.js} +1 -1
- package/dist/cli/{index-xj4kbtdw.js → index-b0m3efpf.js} +2 -2
- package/dist/cli/{index-tfa2p4y4.js → index-cyhw0der.js} +1 -1
- package/dist/cli/{index-553veay1.js → index-ew99d4y6.js} +1 -1
- package/dist/cli/{index-wbnyc50b.js → index-g5714mpv.js} +3 -3
- package/dist/cli/{index-3rrc5x4v.js → index-g94qqwnz.js} +2 -2
- package/dist/cli/{index-0trtcm9n.js → index-gwg7a00b.js} +7 -7
- package/dist/cli/{index-4jmtdtm9.js → index-hdapetg1.js} +2 -2
- package/dist/cli/{index-8h9nng7f.js → index-j3hsjynw.js} +4 -4
- package/dist/cli/{index-xm7dc14y.js → index-j645xpsm.js} +1 -1
- package/dist/cli/{index-rc6hec4j.js → index-jzvrvdmr.js} +4 -4
- package/dist/cli/{index-1q2dwv69.js → index-kvb4dwgf.js} +1 -1
- package/dist/cli/{index-164m995b.js → index-p56xc59p.js} +1 -1
- package/dist/cli/{index-50s9q4c1.js → index-pvp5tnn2.js} +1 -1
- package/dist/cli/{index-er8ba9be.js → index-qdbgc16x.js} +39 -6
- package/dist/cli/{index-q0gtgwyr.js → index-rysxqae0.js} +7 -7
- package/dist/cli/{index-j9a4fsxg.js → index-t1nkr7cz.js} +1 -1
- package/dist/cli/{index-25z5qwkk.js → index-tegp2mny.js} +1 -1
- package/dist/cli/{index-ywtcznk2.js → index-ty3vtqe2.js} +3 -3
- package/dist/cli/{index-hnjkpk57.js → index-x6zyc38w.js} +1 -1
- package/dist/cli/{index-maxz22c1.js → index-x76mprg2.js} +8 -8
- package/dist/cli/{index-ssb67ff6.js → index-y4z0rhsa.js} +34 -34
- package/dist/cli/{index-1f4nandk.js → index-yh8wxegw.js} +1 -1
- package/dist/cli/{index-4emx8hhh.js → index-ze5zyv28.js} +1 -1
- package/dist/cli/{index-y42pra05.js → index-zfwd65c2.js} +3 -3
- package/dist/cli/{index-0zbze3n6.js → index-zjg5ajf5.js} +1 -1
- package/dist/cli/{index-s09b63xg.js → index-zypacgjc.js} +5 -5
- package/dist/cli/index.js +32 -32
- package/dist/cli/{knowledge-escalator-evjd8g7y.js → knowledge-escalator-aca0nhqg.js} +11 -11
- package/dist/cli/{knowledge-events-q46z1wy6.js → knowledge-events-n5t313ht.js} +9 -9
- package/dist/cli/{knowledge-link-ffmzf72f.js → knowledge-link-8ea4ksda.js} +3 -3
- package/dist/cli/{knowledge-store-z82f5x9k.js → knowledge-store-j97ejf6a.js} +4 -4
- package/dist/cli/{knowledge-validator-19gbnxx2.js → knowledge-validator-01evhydg.js} +6 -6
- package/dist/cli/{pending-delegations-t4cqk5ha.js → pending-delegations-w73abdk3.js} +4 -4
- package/dist/cli/{pr-subscriptions-3enjtq0k.js → pr-subscriptions-05dzvavk.js} +4 -4
- package/dist/cli/{pr-workflow-gate-3ecgfsge.js → pr-workflow-gate-t0tnkx5f.js} +34 -32
- package/dist/cli/{runner-wqy2hbxn.js → runner-fh7t0mn9.js} +4 -4
- package/dist/cli/{scan-cursor-8wcy0dvf.js → scan-cursor-63zx2qd8.js} +5 -5
- package/dist/cli/{schema-hsw9r2tm.js → schema-t1scx08g.js} +1 -1
- package/dist/cli/{scope-persistence-mbwt4grd.js → scope-persistence-1a5qmchf.js} +7 -7
- package/dist/cli/{skill-generator-kg32a5jy.js → skill-generator-7werbwgv.js} +13 -13
- package/dist/cli/{worktree-collision-ownership-0rfw6kp3.js → worktree-collision-ownership-wzdzky33.js} +5 -5
- package/dist/cli/{worktree-isolation-qcwt09ve.js → worktree-isolation-m02ay3kg.js} +32 -32
- package/dist/hooks/delegation-gate.d.ts +3 -1
- package/dist/hooks/pr-workflow-gate.d.ts +10 -2
- package/dist/index.js +27 -24
- package/dist/pr-review/authorization.d.ts +13 -3
- package/dist/tools/authorize-pr-review-reentry.d.ts +5 -4
- package/dist/tools/dispatch-lanes.d.ts +1 -0
- package/dist/tools/pr-workflow-status.d.ts +2 -0
- package/package.json +1 -1
- package/dist/cli/curator-llm-factory-cv7ft0mb.js +0 -66
- package/dist/cli/guardrail-explain-cvha7b9p.js +0 -67
|
@@ -82,9 +82,9 @@ declare function reentryAuthorizationFilePath(directory: string, sessionID: stri
|
|
|
82
82
|
declare function renameWithRetryAsync(tempPath: string, targetPath: string): Promise<void>;
|
|
83
83
|
declare function writeAuthorizationFile(filePath: string, file: AuthorizationFile): Promise<void>;
|
|
84
84
|
/**
|
|
85
|
-
* Drop expired records past the retention bound
|
|
86
|
-
*
|
|
87
|
-
*
|
|
85
|
+
* Drop expired records past the retention bound while preserving every live
|
|
86
|
+
* authorization. Consumed records are retained only as same-call replay
|
|
87
|
+
* evidence, so they fill the remaining bounded capacity after live records.
|
|
88
88
|
*/
|
|
89
89
|
declare function pruneAuthorizations(records: readonly PrReviewReentryAuthorizationRecord[], nowMs: number): PrReviewReentryAuthorizationRecord[];
|
|
90
90
|
/**
|
|
@@ -99,6 +99,15 @@ export declare function issuePrReviewReentryAuthorization(directory: string, ses
|
|
|
99
99
|
role: PrReviewReentryRole;
|
|
100
100
|
}): Promise<PrReviewReentryAuthorizationRecord>;
|
|
101
101
|
declare function authorizationMatchesBinding(record: PrReviewReentryAuthorizationRecord, binding: PrReviewReentryBindingContext): boolean;
|
|
102
|
+
/**
|
|
103
|
+
* Read-only admission check for the PR workflow hook. The workflow-session
|
|
104
|
+
* lock is held by the caller while this authorization-store lock is acquired,
|
|
105
|
+
* so the binding used for the check cannot change underneath the read. The
|
|
106
|
+
* token remains unconsumed until the delegation gate has accepted the Task.
|
|
107
|
+
*/
|
|
108
|
+
export declare function hasPrReviewReentryAuthorizationAgainstBinding(directory: string, sessionID: string, request: {
|
|
109
|
+
role: PrReviewReentryRole;
|
|
110
|
+
}, binding: PrReviewReentryBindingContext): Promise<boolean>;
|
|
102
111
|
/**
|
|
103
112
|
* Reserve or verify one authorization against a binding whose owning workflow
|
|
104
113
|
* lock is held by the caller. The authorization-file lock is always acquired
|
|
@@ -115,6 +124,7 @@ export declare const _internals: {
|
|
|
115
124
|
reentryAuthorizationFilePath: typeof reentryAuthorizationFilePath;
|
|
116
125
|
pruneAuthorizations: typeof pruneAuthorizations;
|
|
117
126
|
authorizationMatchesBinding: typeof authorizationMatchesBinding;
|
|
127
|
+
hasPrReviewReentryAuthorizationAgainstBinding: typeof hasPrReviewReentryAuthorizationAgainstBinding;
|
|
118
128
|
/** DI seam: the rename implementation (tests inject failure modes). */
|
|
119
129
|
renameImpl: (from: string, to: string) => Promise<void>;
|
|
120
130
|
/** DI seam: retry backoff schedule (tests shrink to avoid real sleeps). */
|
|
@@ -9,10 +9,11 @@ import { createSwarmTool } from './create-tool.js';
|
|
|
9
9
|
* requirement; every other delegation gate stays authoritative. Bindings are
|
|
10
10
|
* exact (session, workflow, run, head SHA, worktree revision digest, role,
|
|
11
11
|
* gate generation): replay, cross-session use, wrong role, expiry, or any
|
|
12
|
-
* workflow progress since issuance fails closed.
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
12
|
+
* workflow progress since issuance fails closed. If a plan or task workflow
|
|
13
|
+
* state exists, the dispatch must identify the exact task; taskless dispatches
|
|
14
|
+
* are limited to plan-free standalone review. A later unrelated gate rejection
|
|
15
|
+
* still burns the authorization — issue a fresh one before retrying. Issue
|
|
16
|
+
* immediately before the Task dispatch — authorizations are not stockpilable.
|
|
16
17
|
*/
|
|
17
18
|
export declare function executeAuthorizePrReviewReentry(args: unknown, directory: string, context?: {
|
|
18
19
|
sessionID?: string;
|
|
@@ -676,6 +676,7 @@ declare function applyExplorerFormatSuffix(lanes: DispatchLaneSpec[], options?:
|
|
|
676
676
|
declare function prReviewLaneResponseBudgetChars(mode: string, lane: DispatchLaneSpec): number | undefined;
|
|
677
677
|
declare function applyPrWorkflowPromptContract(lanes: DispatchLaneSpec[], options: {
|
|
678
678
|
mode?: string;
|
|
679
|
+
batchId?: string;
|
|
679
680
|
prHeadSha?: string;
|
|
680
681
|
revisionDigest?: string;
|
|
681
682
|
scope?: string;
|
|
@@ -17,6 +17,7 @@ declare function truncateToByteBudget(value: string, maxBytes: number): string;
|
|
|
17
17
|
* finally. Never runs a PR-controlled script — only fixed read verbs are passed.
|
|
18
18
|
*/
|
|
19
19
|
declare function runGitCapture(directory: string, args: string[]): Promise<string | null>;
|
|
20
|
+
declare function resolveWorkflowGateSession(directory: string, sessionID: string): Promise<string | null>;
|
|
20
21
|
export declare const pr_workflow_status: ReturnType<typeof createSwarmTool>;
|
|
21
22
|
/** Test seam mirroring gh-evidence's `_internals` (issue #507 DI convention). */
|
|
22
23
|
export declare const _internals: {
|
|
@@ -26,5 +27,6 @@ export declare const _internals: {
|
|
|
26
27
|
runGitCapture: typeof runGitCapture;
|
|
27
28
|
classifyGitState: typeof classifyPrWorkflowGitState;
|
|
28
29
|
truncateToByteBudget: typeof truncateToByteBudget;
|
|
30
|
+
resolveWorkflowGateSession: typeof resolveWorkflowGateSession;
|
|
29
31
|
};
|
|
30
32
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-swarm",
|
|
3
|
-
"version": "7.164.
|
|
3
|
+
"version": "7.164.6",
|
|
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",
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
createCuratorLLMDelegate
|
|
4
|
-
} from "./index-3gb7bw7h.js";
|
|
5
|
-
import"./index-25jze7sf.js";
|
|
6
|
-
import"./index-ea7sehgy.js";
|
|
7
|
-
import"./index-1q2dwv69.js";
|
|
8
|
-
import"./index-maxz22c1.js";
|
|
9
|
-
import"./index-4krjn1gn.js";
|
|
10
|
-
import"./index-txdagbh7.js";
|
|
11
|
-
import"./index-3146wmgv.js";
|
|
12
|
-
import"./index-7rat6nyh.js";
|
|
13
|
-
import"./index-s09b63xg.js";
|
|
14
|
-
import"./index-aaqbhn9h.js";
|
|
15
|
-
import"./index-70ha9e09.js";
|
|
16
|
-
import"./index-1f4nandk.js";
|
|
17
|
-
import"./index-0zbze3n6.js";
|
|
18
|
-
import"./index-zaab1wz9.js";
|
|
19
|
-
import"./index-y42pra05.js";
|
|
20
|
-
import"./index-zsrtt42s.js";
|
|
21
|
-
import"./index-fwebva1m.js";
|
|
22
|
-
import"./index-3f7hqtgg.js";
|
|
23
|
-
import"./index-xj4kbtdw.js";
|
|
24
|
-
import"./index-rc6hec4j.js";
|
|
25
|
-
import"./index-hnjkpk57.js";
|
|
26
|
-
import"./index-rtry5xyf.js";
|
|
27
|
-
import"./index-wbnyc50b.js";
|
|
28
|
-
import"./index-j9a4fsxg.js";
|
|
29
|
-
import"./index-er8ba9be.js";
|
|
30
|
-
import"./index-ddszzne4.js";
|
|
31
|
-
import"./index-8h9nng7f.js";
|
|
32
|
-
import"./index-xm7dc14y.js";
|
|
33
|
-
import"./index-50s9q4c1.js";
|
|
34
|
-
import"./index-556ja8an.js";
|
|
35
|
-
import"./index-4fwbbad3.js";
|
|
36
|
-
import"./index-b43rt5ph.js";
|
|
37
|
-
import"./index-q7sjgr1y.js";
|
|
38
|
-
import"./index-q0gtgwyr.js";
|
|
39
|
-
import"./index-0trtcm9n.js";
|
|
40
|
-
import"./index-4jmtdtm9.js";
|
|
41
|
-
import"./index-zg9d392c.js";
|
|
42
|
-
import"./index-n832052r.js";
|
|
43
|
-
import"./index-rz87mx1c.js";
|
|
44
|
-
import"./index-z6xqpmqg.js";
|
|
45
|
-
import"./index-r3mvsbtq.js";
|
|
46
|
-
import"./index-553veay1.js";
|
|
47
|
-
import"./index-yrsag0vs.js";
|
|
48
|
-
import"./index-9e6fdz2h.js";
|
|
49
|
-
import"./index-4rhhvd1a.js";
|
|
50
|
-
import"./index-164m995b.js";
|
|
51
|
-
import"./index-m1nrd3yd.js";
|
|
52
|
-
import"./index-zjygnfay.js";
|
|
53
|
-
import"./index-ae75rja9.js";
|
|
54
|
-
import"./index-25z5qwkk.js";
|
|
55
|
-
import"./index-4emx8hhh.js";
|
|
56
|
-
import"./index-bk5tah7q.js";
|
|
57
|
-
import"./index-fxxja498.js";
|
|
58
|
-
import"./index-tfa2p4y4.js";
|
|
59
|
-
import"./index-1dz8hv7p.js";
|
|
60
|
-
import"./index-7g4c7s5r.js";
|
|
61
|
-
import"./index-bpmtbmy9.js";
|
|
62
|
-
import"./index-zgwm4ryv.js";
|
|
63
|
-
import"./index-a76rekgs.js";
|
|
64
|
-
export {
|
|
65
|
-
createCuratorLLMDelegate
|
|
66
|
-
};
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
handleGuardrailExplain
|
|
4
|
-
} from "./index-3rrc5x4v.js";
|
|
5
|
-
import"./index-3gb7bw7h.js";
|
|
6
|
-
import"./index-25jze7sf.js";
|
|
7
|
-
import"./index-ea7sehgy.js";
|
|
8
|
-
import"./index-1q2dwv69.js";
|
|
9
|
-
import"./index-maxz22c1.js";
|
|
10
|
-
import"./index-4krjn1gn.js";
|
|
11
|
-
import"./index-txdagbh7.js";
|
|
12
|
-
import"./index-3146wmgv.js";
|
|
13
|
-
import"./index-7rat6nyh.js";
|
|
14
|
-
import"./index-s09b63xg.js";
|
|
15
|
-
import"./index-aaqbhn9h.js";
|
|
16
|
-
import"./index-70ha9e09.js";
|
|
17
|
-
import"./index-1f4nandk.js";
|
|
18
|
-
import"./index-0zbze3n6.js";
|
|
19
|
-
import"./index-zaab1wz9.js";
|
|
20
|
-
import"./index-y42pra05.js";
|
|
21
|
-
import"./index-zsrtt42s.js";
|
|
22
|
-
import"./index-fwebva1m.js";
|
|
23
|
-
import"./index-3f7hqtgg.js";
|
|
24
|
-
import"./index-xj4kbtdw.js";
|
|
25
|
-
import"./index-rc6hec4j.js";
|
|
26
|
-
import"./index-hnjkpk57.js";
|
|
27
|
-
import"./index-rtry5xyf.js";
|
|
28
|
-
import"./index-wbnyc50b.js";
|
|
29
|
-
import"./index-j9a4fsxg.js";
|
|
30
|
-
import"./index-er8ba9be.js";
|
|
31
|
-
import"./index-ddszzne4.js";
|
|
32
|
-
import"./index-8h9nng7f.js";
|
|
33
|
-
import"./index-xm7dc14y.js";
|
|
34
|
-
import"./index-50s9q4c1.js";
|
|
35
|
-
import"./index-556ja8an.js";
|
|
36
|
-
import"./index-4fwbbad3.js";
|
|
37
|
-
import"./index-b43rt5ph.js";
|
|
38
|
-
import"./index-q7sjgr1y.js";
|
|
39
|
-
import"./index-q0gtgwyr.js";
|
|
40
|
-
import"./index-0trtcm9n.js";
|
|
41
|
-
import"./index-4jmtdtm9.js";
|
|
42
|
-
import"./index-zg9d392c.js";
|
|
43
|
-
import"./index-n832052r.js";
|
|
44
|
-
import"./index-rz87mx1c.js";
|
|
45
|
-
import"./index-z6xqpmqg.js";
|
|
46
|
-
import"./index-r3mvsbtq.js";
|
|
47
|
-
import"./index-553veay1.js";
|
|
48
|
-
import"./index-yrsag0vs.js";
|
|
49
|
-
import"./index-9e6fdz2h.js";
|
|
50
|
-
import"./index-4rhhvd1a.js";
|
|
51
|
-
import"./index-164m995b.js";
|
|
52
|
-
import"./index-m1nrd3yd.js";
|
|
53
|
-
import"./index-zjygnfay.js";
|
|
54
|
-
import"./index-ae75rja9.js";
|
|
55
|
-
import"./index-25z5qwkk.js";
|
|
56
|
-
import"./index-4emx8hhh.js";
|
|
57
|
-
import"./index-bk5tah7q.js";
|
|
58
|
-
import"./index-fxxja498.js";
|
|
59
|
-
import"./index-tfa2p4y4.js";
|
|
60
|
-
import"./index-1dz8hv7p.js";
|
|
61
|
-
import"./index-7g4c7s5r.js";
|
|
62
|
-
import"./index-bpmtbmy9.js";
|
|
63
|
-
import"./index-zgwm4ryv.js";
|
|
64
|
-
import"./index-a76rekgs.js";
|
|
65
|
-
export {
|
|
66
|
-
handleGuardrailExplain
|
|
67
|
-
};
|