opencode-swarm 7.99.0 → 7.99.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/brainstorm/SKILL.md +11 -1
- package/.opencode/skills/loop/SKILL.md +13 -4
- package/.opencode/skills/plan/SKILL.md +8 -1
- package/.opencode/skills/specify/SKILL.md +4 -2
- package/README.md +5 -3
- package/dist/agents/_prompt-helpers.d.ts +1 -0
- package/dist/cli/{evidence-summary-service-4hs44n2c.js → evidence-summary-service-wxarfgt8.js} +2 -2
- package/dist/cli/{explorer-jc46negv.js → explorer-rwfvbbx5.js} +1 -1
- package/dist/cli/{guardrail-explain-ktm6szbm.js → guardrail-explain-t3prwa5b.js} +6 -6
- package/dist/cli/{index-hw8r3e5p.js → index-62tmq1kc.js} +212 -109
- package/dist/cli/{index-wwnjw0fb.js → index-6wgwybzj.js} +27 -14
- package/dist/cli/{index-we94wkty.js → index-94qwbx11.js} +48 -0
- package/dist/cli/{index-4pt2py5p.js → index-ryns3fqt.js} +6 -6
- package/dist/cli/{index-5fxjagjt.js → index-s3esnz7m.js} +1 -1
- package/dist/cli/{index-ft4gehk1.js → index-y4stbk2f.js} +1 -1
- package/dist/cli/{index-2a6ppa65.js → index-ydgy7vg5.js} +12 -7
- package/dist/cli/index.js +5 -5
- package/dist/cli/{pending-delegations-c785p5n2.js → pending-delegations-vh2nae3n.js} +1 -1
- package/dist/cli/{pr-subscriptions-fqrzm0tv.js → pr-subscriptions-d57tq0c0.js} +2 -2
- package/dist/commands/loop.d.ts +5 -0
- package/dist/commands/registry.d.ts +5 -2
- package/dist/db/qa-gate-profile.d.ts +10 -0
- package/dist/evidence/manager.d.ts +5 -0
- package/dist/hooks/auto-review.d.ts +1 -1
- package/dist/hooks/knowledge-migrator.d.ts +7 -0
- package/dist/index.js +2265 -2033
- package/dist/plan/utils.d.ts +8 -3
- package/dist/tools/dispatch-lanes.d.ts +14 -0
- package/dist/tools/phase-complete/gates/gate-helpers.d.ts +2 -0
- package/dist/tools/phase-complete/gates/types.d.ts +4 -0
- package/dist/turbo/lean/conflicts.d.ts +2 -13
- package/dist/utils/path.d.ts +1 -0
- package/package.json +1 -1
package/dist/plan/utils.d.ts
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
|
+
export declare function derivePlanId(plan: {
|
|
2
|
+
swarm: string;
|
|
3
|
+
title: string;
|
|
4
|
+
}): string;
|
|
1
5
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
6
|
+
* Collision-resistant binding for security-sensitive evidence that also stores
|
|
7
|
+
* the readable legacy plan_id. This preserves existing plan_id compatibility
|
|
8
|
+
* while giving gates a stable raw swarm/title fingerprint to compare.
|
|
4
9
|
*/
|
|
5
|
-
export declare function
|
|
10
|
+
export declare function derivePlanIdentityHash(plan: {
|
|
6
11
|
swarm: string;
|
|
7
12
|
title: string;
|
|
8
13
|
}): string;
|
|
@@ -113,6 +113,10 @@ export interface CollectLaneResultsResult {
|
|
|
113
113
|
}
|
|
114
114
|
export interface SessionOps {
|
|
115
115
|
create(args: {
|
|
116
|
+
body?: {
|
|
117
|
+
parentID?: string;
|
|
118
|
+
title?: string;
|
|
119
|
+
};
|
|
116
120
|
query: {
|
|
117
121
|
directory: string;
|
|
118
122
|
};
|
|
@@ -215,6 +219,7 @@ export declare const _internals: {
|
|
|
215
219
|
export declare const _test_exports: {
|
|
216
220
|
applyCommonPrompt: typeof applyCommonPrompt;
|
|
217
221
|
applyExplorerFormatSuffix: typeof applyExplorerFormatSuffix;
|
|
222
|
+
buildLaneSessionCreateArgs: typeof buildLaneSessionCreateArgs;
|
|
218
223
|
extractAssistantTranscript: typeof extractAssistantTranscript;
|
|
219
224
|
formatError: typeof formatError;
|
|
220
225
|
nextCollectPollInterval: typeof nextCollectPollInterval;
|
|
@@ -295,6 +300,15 @@ type ApplyCommonPromptResult = {
|
|
|
295
300
|
declare function applyCommonPrompt(lanes: DispatchLaneSpec[], commonPrompt: string | undefined): ApplyCommonPromptResult;
|
|
296
301
|
declare function applyExplorerFormatSuffix(lanes: DispatchLaneSpec[]): DispatchLaneSpec[];
|
|
297
302
|
declare function formatError(error: unknown): string;
|
|
303
|
+
declare function buildLaneSessionCreateArgs(directory: string, lane: DispatchLaneSpec, context: Pick<DispatchLanesExecutionContext, 'sessionID'>): {
|
|
304
|
+
body: {
|
|
305
|
+
parentID?: string;
|
|
306
|
+
title: string;
|
|
307
|
+
};
|
|
308
|
+
query: {
|
|
309
|
+
directory: string;
|
|
310
|
+
};
|
|
311
|
+
};
|
|
298
312
|
declare function promptHash(lane: DispatchLaneSpec, directory: string, batchId: string): string;
|
|
299
313
|
export declare const dispatch_lanes: ReturnType<typeof createSwarmTool>;
|
|
300
314
|
export declare const dispatch_lanes_async: ReturnType<typeof createSwarmTool>;
|
|
@@ -36,4 +36,8 @@ export interface GateContext {
|
|
|
36
36
|
agentsDispatched: string[];
|
|
37
37
|
/** Non-blocking warning helper */
|
|
38
38
|
safeWarn: (message: string, error: unknown) => void;
|
|
39
|
+
/** Retrospective bundle accepted for this phase, if the retro gate loaded one */
|
|
40
|
+
loadedRetroBundle?: import('../../../config/evidence-schema').EvidenceBundle | null;
|
|
41
|
+
/** Task id for the accepted retrospective bundle, if one was loaded */
|
|
42
|
+
loadedRetroTaskId?: string | null;
|
|
39
43
|
}
|
|
@@ -18,6 +18,8 @@
|
|
|
18
18
|
* All paths are normalized to POSIX-style (forward slashes, no trailing slash)
|
|
19
19
|
* before conflict detection. This ensures consistent behavior across platforms.
|
|
20
20
|
*/
|
|
21
|
+
import { normalizePath } from '../../utils/path';
|
|
22
|
+
export { normalizePath };
|
|
21
23
|
/**
|
|
22
24
|
* A scope file persisted by the `declare_scope` tool.
|
|
23
25
|
* Stored at `.swarm/scopes/scope-{taskId}.json`.
|
|
@@ -32,19 +34,6 @@ export interface ScopeFile {
|
|
|
32
34
|
* These are treated as global because other tasks may import from them.
|
|
33
35
|
*/
|
|
34
36
|
export declare const BARREL_FILE_PATTERNS: readonly RegExp[];
|
|
35
|
-
/**
|
|
36
|
-
* Normalize a file path to POSIX-style for consistent cross-platform comparison.
|
|
37
|
-
*
|
|
38
|
-
* - Converts backslashes to forward slashes
|
|
39
|
-
* - Removes trailing slashes
|
|
40
|
-
* - Collapses multiple consecutive slashes
|
|
41
|
-
* - Resolves `.` path segments (current directory references)
|
|
42
|
-
* - Does NOT resolve `..` segments or symlinks
|
|
43
|
-
*
|
|
44
|
-
* @param filePath - The path to normalize
|
|
45
|
-
* @returns POSIX-normalized path
|
|
46
|
-
*/
|
|
47
|
-
export declare function normalizePath(filePath: string): string;
|
|
48
37
|
/**
|
|
49
38
|
* Check if a path contains directory traversal components.
|
|
50
39
|
* Rejects paths with `..` segments that could escape the project root.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function normalizePath(p: string): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-swarm",
|
|
3
|
-
"version": "7.99.
|
|
3
|
+
"version": "7.99.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",
|