opencode-swarm 7.110.2 → 7.112.0
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/ci-failure-batching/SKILL.md +6 -9
- package/.opencode/skills/gate-attribution/SKILL.md +24 -7
- package/.opencode/skills/merge-queue-readiness/SKILL.md +21 -7
- package/.opencode/skills/skill-edit-validation/SKILL.md +10 -3
- package/.opencode/skills/swarm-pr-feedback/SKILL.md +24 -0
- package/.opencode/skills/worktree-retry-cleanup/SKILL.md +7 -11
- package/dist/background/pr-event-subscribers.d.ts +28 -0
- package/dist/background/pr-monitor-worker.d.ts +8 -1
- package/dist/background/pr-subscriptions.d.ts +6 -0
- package/dist/cli/{config-doctor-q5e9yzn6.js → config-doctor-mmw4c50z.js} +2 -2
- package/dist/cli/{core-gjac7vd9.js → core-f4cbabe7.js} +2 -2
- package/dist/cli/{curator-drift-169wgaxn.js → curator-drift-jvs1v6em.js} +2 -2
- package/dist/cli/{curator-qpgdv0fp.js → curator-j7ty8k6t.js} +19 -19
- package/dist/cli/curator-llm-factory-8rnk2083.js +40 -0
- package/dist/cli/{dispatch-zr1xja4t.js → dispatch-wst7bypk.js} +2 -2
- package/dist/cli/{evidence-summary-service-8tasw2tt.js → evidence-summary-service-j6fnsfeq.js} +5 -5
- package/dist/cli/{gate-evidence-v6ds8rcp.js → gate-evidence-mk0ss1re.js} +3 -3
- package/dist/cli/guardrail-explain-2j0gw8f0.js +41 -0
- package/dist/cli/{guardrail-log-973nan7m.js → guardrail-log-xjgr00eq.js} +4 -4
- package/dist/cli/{hive-promoter-rs5dr4pf.js → hive-promoter-y179n7wx.js} +19 -19
- package/dist/cli/{index-1cn967sa.js → index-0dab9w37.js} +1 -1
- package/dist/cli/{index-r3j3458j.js → index-1rga1vvb.js} +1 -1
- package/dist/cli/{index-mvg66d9n.js → index-2aqs6daa.js} +3 -3
- package/dist/cli/{index-yw8qpf51.js → index-9fxs0rm1.js} +1 -1
- package/dist/cli/{index-cmjq1kg7.js → index-b83y9a7r.js} +3 -3
- package/dist/cli/{index-rm8b4959.js → index-c3h3d8kh.js} +23 -21
- package/dist/cli/{index-0g5xsrp4.js → index-cq2hgvd2.js} +13 -5
- package/dist/cli/{index-yhmt3dw3.js → index-cye4g7zj.js} +3 -3
- package/dist/cli/{index-j2v3w1ds.js → index-d0w40jm3.js} +4 -4
- package/dist/cli/{index-40h0yp9e.js → index-db1fh1fv.js} +1 -1
- package/dist/cli/{index-dm35e55e.js → index-fhmw7evd.js} +36 -15
- package/dist/cli/{index-vzzt3ygr.js → index-g55nzpwn.js} +1 -1
- package/dist/cli/{index-c483hnn4.js → index-hg0pamsa.js} +3 -3
- package/dist/cli/{index-smk3st51.js → index-j5c98bd9.js} +1799 -1249
- package/dist/cli/{index-53z1afgh.js → index-npxmfj48.js} +1 -1
- package/dist/cli/{index-6jng9c8t.js → index-pm992z24.js} +1 -1
- package/dist/cli/{index-85bacexr.js → index-q1jaeynn.js} +4 -1
- package/dist/cli/{index-v8pk35h7.js → index-t7efm8vz.js} +4 -4
- package/dist/cli/{index-5rfxzgmt.js → index-w84stmkx.js} +1 -1
- package/dist/cli/{index-4k3gh2nz.js → index-x4bghdyv.js} +2 -2
- package/dist/cli/{index-xddysq89.js → index-xehrmy76.js} +1 -1
- package/dist/cli/index.js +19 -19
- package/dist/cli/{knowledge-escalator-0dkkenp2.js → knowledge-escalator-t1e2211j.js} +6 -6
- package/dist/cli/{knowledge-events-bckbj6ah.js → knowledge-events-2h3gvtfa.js} +4 -4
- package/dist/cli/{knowledge-store-dvjbdn00.js → knowledge-store-gpta9gzh.js} +4 -4
- package/dist/cli/{knowledge-validator-bqr936sg.js → knowledge-validator-03f0hm0p.js} +5 -5
- package/dist/cli/{pending-delegations-yyz3fcfn.js → pending-delegations-gc3a2hfx.js} +2 -2
- package/dist/cli/{pr-subscriptions-vv8byxe6.js → pr-subscriptions-p8g2rzxd.js} +3 -3
- package/dist/cli/{schema-s48je8zt.js → schema-2p15yrvn.js} +1 -1
- package/dist/cli/{scope-persistence-tgp00wtd.js → scope-persistence-5ccgtebg.js} +2 -2
- package/dist/cli/{skill-generator-5rsjmmfq.js → skill-generator-2tsqqaa2.js} +7 -7
- package/dist/commands/ci-simulate.d.ts +40 -0
- package/dist/commands/index.d.ts +1 -0
- package/dist/commands/pr-monitor-status.d.ts +24 -0
- package/dist/commands/registry.d.ts +8 -0
- package/dist/config/bundled-skills.d.ts +1 -1
- package/dist/config/schema.d.ts +5 -0
- package/dist/full-auto/oversight.d.ts +4 -0
- package/dist/full-auto/state.d.ts +12 -0
- package/dist/git/pr.d.ts +23 -0
- package/dist/hooks/delegation-gate/worktree-isolation.d.ts +110 -0
- package/dist/hooks/delegation-gate.d.ts +17 -0
- package/dist/hooks/full-auto-intercept.d.ts +1 -1
- package/dist/index.js +399 -364
- package/dist/tools/placeholder-scan.d.ts +15 -0
- package/dist/utils/bun-compat.d.ts +6 -0
- package/dist/worktree/merge.d.ts +12 -0
- package/package.json +9 -5
- package/dist/cli/curator-llm-factory-3x89ddtd.js +0 -40
- package/dist/cli/guardrail-explain-jdwp6h9c.js +0 -41
- /package/dist/cli/{index-7xgqky26.js → index-h91bv3hy.js} +0 -0
|
@@ -4,6 +4,21 @@ export interface PlaceholderScanInput {
|
|
|
4
4
|
changed_files: string[];
|
|
5
5
|
allow_globs?: string[];
|
|
6
6
|
deny_patterns?: string[];
|
|
7
|
+
/**
|
|
8
|
+
* When provided, the scanner filters findings to only report patterns
|
|
9
|
+
* on lines that were added in this PR. The direct API accepts Sets and the
|
|
10
|
+
* JSON tool boundary accepts arrays, which are normalized before scanning.
|
|
11
|
+
* Lines not in the set are treated as pre-existing and silently ignored.
|
|
12
|
+
*/
|
|
13
|
+
added_lines?: Record<string, Set<number> | number[]>;
|
|
14
|
+
/**
|
|
15
|
+
* Values that suppress findings when found as substrings in the excerpt.
|
|
16
|
+
* Unlike FILE_ALLOWLIST (which skips entire files), this filters individual
|
|
17
|
+
* findings by matching against the excerpt text.
|
|
18
|
+
*/
|
|
19
|
+
sentinel_allowlist?: string[];
|
|
20
|
+
/** @deprecated Use sentinel_allowlist. Kept for existing callers. */
|
|
21
|
+
allow_sentinels?: string[];
|
|
7
22
|
}
|
|
8
23
|
export interface PlaceholderFinding {
|
|
9
24
|
path: string;
|
|
@@ -50,6 +50,12 @@ export declare function bunFile(filePath: string): BunCompatFile;
|
|
|
50
50
|
* semantics every existing call site already expects via Bun.write.
|
|
51
51
|
*/
|
|
52
52
|
export declare function bunWrite(filePath: string, data: string | Uint8Array | ArrayBuffer | ArrayBufferView): Promise<number>;
|
|
53
|
+
/**
|
|
54
|
+
* Cross-runtime sleep. Uses `Bun.sleep` when available (Bun), falls back to
|
|
55
|
+
* a `setTimeout`-based Promise on Node. This is the only correct way to
|
|
56
|
+
* introduce delays in plugin code that must run under both runtimes.
|
|
57
|
+
*/
|
|
58
|
+
export declare function sleep(ms: number): Promise<void>;
|
|
53
59
|
/**
|
|
54
60
|
* Stable 32-bit hash. Bun's `Bun.hash` uses xxHash64 by default; on Node we
|
|
55
61
|
* fall back to a 32-bit djb2 hash — identical hashes are NOT guaranteed
|
package/dist/worktree/merge.d.ts
CHANGED
|
@@ -29,6 +29,8 @@ export declare const _internals: {
|
|
|
29
29
|
cleanupOrphanedBranches: typeof cleanupOrphanedBranches;
|
|
30
30
|
/** Test seam for startupOrphanRecovery — allows tests to intercept the recovery call. */
|
|
31
31
|
startupOrphanRecovery: typeof startupOrphanRecovery;
|
|
32
|
+
/** FR-001b: exposes extractSessionId for lane ownership validation. */
|
|
33
|
+
extractSessionId: typeof extractSessionId;
|
|
32
34
|
};
|
|
33
35
|
export interface MergeSuccess {
|
|
34
36
|
merged: true;
|
|
@@ -162,6 +164,15 @@ export declare function handleMergeConflict(primaryDir: string, _branchName: str
|
|
|
162
164
|
* @returns Discriminated union: success, partial, or failure.
|
|
163
165
|
*/
|
|
164
166
|
export declare function attemptMergeBackFromDirty(worktreePath: string, branchName: string, primaryDir: string, strategy: MergeStrategy): Promise<DirtyMergeSuccess | DirtyMergePartial | DirtyMergeFailure>;
|
|
167
|
+
/**
|
|
168
|
+
* Extracts the session ID from a swarm-lane branch name.
|
|
169
|
+
*
|
|
170
|
+
* Branch format: `swarm-lane/<sessionId>/<laneId>` or
|
|
171
|
+
* `swarm/lane/<sessionId>/<laneId>`.
|
|
172
|
+
* Returns the sessionId (second segment), or `null` if the name does not
|
|
173
|
+
* match the expected pattern.
|
|
174
|
+
*/
|
|
175
|
+
declare function extractSessionId(branchName: string): string | null;
|
|
165
176
|
/**
|
|
166
177
|
* Cleans up orphaned swarm-lane branches that do not belong to any active session.
|
|
167
178
|
*
|
|
@@ -186,3 +197,4 @@ export declare function cleanupOrphanedBranches(directory: string, activeSession
|
|
|
186
197
|
* @returns Result indicating whether pruning happened, orphaned branches, and warnings.
|
|
187
198
|
*/
|
|
188
199
|
export declare function startupOrphanRecovery(directory: string, activeSessionIds?: string[]): Promise<StartupRecoveryResult>;
|
|
200
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-swarm",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.112.0",
|
|
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",
|
|
@@ -69,11 +69,13 @@
|
|
|
69
69
|
".opencode/skills/running-tests",
|
|
70
70
|
".opencode/skills/engineering-conventions",
|
|
71
71
|
".opencode/skills/commit-pr",
|
|
72
|
-
".opencode/skills/worktree-retry-cleanup",
|
|
73
|
-
".opencode/skills/skill-edit-validation",
|
|
74
|
-
".opencode/skills/merge-queue-readiness",
|
|
75
|
-
".opencode/skills/gate-attribution",
|
|
76
72
|
".opencode/skills/ci-failure-batching",
|
|
73
|
+
".opencode/skills/gate-attribution",
|
|
74
|
+
".opencode/skills/merge-queue-readiness",
|
|
75
|
+
".opencode/skills/skill-edit-validation",
|
|
76
|
+
".opencode/skills/swarm",
|
|
77
|
+
".opencode/skills/swarm-ci-monitor",
|
|
78
|
+
".opencode/skills/worktree-retry-cleanup",
|
|
77
79
|
"tests/fixtures/memory-recall",
|
|
78
80
|
"README.md",
|
|
79
81
|
"LICENSE"
|
|
@@ -84,6 +86,8 @@
|
|
|
84
86
|
"typecheck": "tsc --noEmit",
|
|
85
87
|
"test": "bun test",
|
|
86
88
|
"lint": "biome lint .",
|
|
89
|
+
"lint:ci": "biome ci .",
|
|
90
|
+
"test:unit:ci": "bun scripts/ci/run-unit-tests-local.ts",
|
|
87
91
|
"drift:check": "bun run scripts/drift-check.ts",
|
|
88
92
|
"format": "biome format . --write",
|
|
89
93
|
"check": "biome check --write .",
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
createCuratorLLMDelegate
|
|
4
|
-
} from "./index-smk3st51.js";
|
|
5
|
-
import"./index-53z1afgh.js";
|
|
6
|
-
import"./index-c8s9a3zh.js";
|
|
7
|
-
import"./index-xddysq89.js";
|
|
8
|
-
import"./index-0g5xsrp4.js";
|
|
9
|
-
import"./index-j2v3w1ds.js";
|
|
10
|
-
import"./index-scww5b77.js";
|
|
11
|
-
import"./index-yw8qpf51.js";
|
|
12
|
-
import"./index-85bacexr.js";
|
|
13
|
-
import"./index-cmjq1kg7.js";
|
|
14
|
-
import"./index-c483hnn4.js";
|
|
15
|
-
import"./index-mvg66d9n.js";
|
|
16
|
-
import"./index-yhmt3dw3.js";
|
|
17
|
-
import"./index-v8pk35h7.js";
|
|
18
|
-
import"./index-bfwt3abw.js";
|
|
19
|
-
import"./index-40h0yp9e.js";
|
|
20
|
-
import"./index-jt58s751.js";
|
|
21
|
-
import"./index-wvrj16f0.js";
|
|
22
|
-
import"./index-q1exe2b3.js";
|
|
23
|
-
import"./index-vzzt3ygr.js";
|
|
24
|
-
import"./index-dm35e55e.js";
|
|
25
|
-
import"./index-r3j3458j.js";
|
|
26
|
-
import"./index-jtqkh8jf.js";
|
|
27
|
-
import"./index-5e4e2hvv.js";
|
|
28
|
-
import"./index-p0arc26j.js";
|
|
29
|
-
import"./index-zgwm4ryv.js";
|
|
30
|
-
import"./index-6jng9c8t.js";
|
|
31
|
-
import"./index-1cn967sa.js";
|
|
32
|
-
import"./index-293f68mj.js";
|
|
33
|
-
import"./index-5mkc2f9z.js";
|
|
34
|
-
import"./index-vn263hqt.js";
|
|
35
|
-
import"./index-vvk2g744.js";
|
|
36
|
-
import"./index-7xgqky26.js";
|
|
37
|
-
import"./index-a76rekgs.js";
|
|
38
|
-
export {
|
|
39
|
-
createCuratorLLMDelegate
|
|
40
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
handleGuardrailExplain
|
|
4
|
-
} from "./index-4k3gh2nz.js";
|
|
5
|
-
import"./index-smk3st51.js";
|
|
6
|
-
import"./index-53z1afgh.js";
|
|
7
|
-
import"./index-c8s9a3zh.js";
|
|
8
|
-
import"./index-xddysq89.js";
|
|
9
|
-
import"./index-0g5xsrp4.js";
|
|
10
|
-
import"./index-j2v3w1ds.js";
|
|
11
|
-
import"./index-scww5b77.js";
|
|
12
|
-
import"./index-yw8qpf51.js";
|
|
13
|
-
import"./index-85bacexr.js";
|
|
14
|
-
import"./index-cmjq1kg7.js";
|
|
15
|
-
import"./index-c483hnn4.js";
|
|
16
|
-
import"./index-mvg66d9n.js";
|
|
17
|
-
import"./index-yhmt3dw3.js";
|
|
18
|
-
import"./index-v8pk35h7.js";
|
|
19
|
-
import"./index-bfwt3abw.js";
|
|
20
|
-
import"./index-40h0yp9e.js";
|
|
21
|
-
import"./index-jt58s751.js";
|
|
22
|
-
import"./index-wvrj16f0.js";
|
|
23
|
-
import"./index-q1exe2b3.js";
|
|
24
|
-
import"./index-vzzt3ygr.js";
|
|
25
|
-
import"./index-dm35e55e.js";
|
|
26
|
-
import"./index-r3j3458j.js";
|
|
27
|
-
import"./index-jtqkh8jf.js";
|
|
28
|
-
import"./index-5e4e2hvv.js";
|
|
29
|
-
import"./index-p0arc26j.js";
|
|
30
|
-
import"./index-zgwm4ryv.js";
|
|
31
|
-
import"./index-6jng9c8t.js";
|
|
32
|
-
import"./index-1cn967sa.js";
|
|
33
|
-
import"./index-293f68mj.js";
|
|
34
|
-
import"./index-5mkc2f9z.js";
|
|
35
|
-
import"./index-vn263hqt.js";
|
|
36
|
-
import"./index-vvk2g744.js";
|
|
37
|
-
import"./index-7xgqky26.js";
|
|
38
|
-
import"./index-a76rekgs.js";
|
|
39
|
-
export {
|
|
40
|
-
handleGuardrailExplain
|
|
41
|
-
};
|
|
File without changes
|