opencode-plugin-flow 4.1.17 → 4.2.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/CHANGELOG.md +86 -22
- package/README.md +102 -163
- package/dist/cli.js +806 -162
- package/dist/cli.js.map +12 -0
- package/dist/config-shared.d.ts +1 -0
- package/dist/distribution/sync.d.ts +3 -1
- package/dist/index.js +2477 -383
- package/dist/index.js.map +11 -11
- package/dist/runtime/workspace.d.ts +11 -1
- package/package.json +8 -4
|
@@ -14,8 +14,18 @@ export declare function sessionPath(worktree: string): string;
|
|
|
14
14
|
export declare function flowInstructionPath(worktree: string): string;
|
|
15
15
|
export declare function historyDir(worktree: string): string;
|
|
16
16
|
export declare function archivedSessionPath(worktree: string, sessionId: string): string;
|
|
17
|
-
export
|
|
17
|
+
export type SessionLockOptions = {
|
|
18
|
+
timeoutMs?: number;
|
|
19
|
+
staleMs?: number;
|
|
20
|
+
};
|
|
21
|
+
export declare function withSessionLock<T>(worktree: string, task: () => Promise<T>, lockOptions?: SessionLockOptions): Promise<T>;
|
|
22
|
+
export declare class UnreadableFlowSessionError extends Error {
|
|
23
|
+
readonly reason: string;
|
|
24
|
+
readonly code = "UNREADABLE_FLOW_SESSION";
|
|
25
|
+
constructor(message: string, reason: string);
|
|
26
|
+
}
|
|
18
27
|
export declare function loadSession(worktree: string): Promise<Session | null>;
|
|
28
|
+
export declare function quarantineUnreadableSession(worktree: string): Promise<string | null>;
|
|
19
29
|
export declare function refreshFlowInstructionFile(worktree: string): Promise<void>;
|
|
20
30
|
export declare function saveSession(worktree: string, session: Session): Promise<Session>;
|
|
21
31
|
export declare function archiveAndClearSession(worktree: string, session: Session): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-plugin-flow",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.2.0",
|
|
4
4
|
"description": "Stateful planning and execution workflow plugin for OpenCode",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -27,11 +27,12 @@
|
|
|
27
27
|
],
|
|
28
28
|
"scripts": {
|
|
29
29
|
"build": "bun run build:plugin && bun run build:cli && bun run build:types",
|
|
30
|
-
"build:plugin": "bun build --target=node --outdir=./dist --entry-naming=index.js --external=@opencode-ai/plugin --external=zod --
|
|
31
|
-
"build:cli": "bun build --target=node --outdir=./dist --entry-naming=cli.js --banner='#!/usr/bin/env node' --
|
|
30
|
+
"build:plugin": "bun build --target=node --outdir=./dist --entry-naming=index.js --external=@opencode-ai/plugin --external=zod --sourcemap=external ./src/index.ts",
|
|
31
|
+
"build:cli": "bun build --target=node --outdir=./dist --entry-naming=cli.js --banner='#!/usr/bin/env node' --sourcemap=external ./src/cli.ts",
|
|
32
32
|
"build:types": "tsc -p tsconfig.types.json",
|
|
33
33
|
"lint": "bunx biome check src tests --files-ignore-unknown=true --vcs-use-ignore-file=true",
|
|
34
34
|
"package:smoke": "bun test tests/package-smoke.test.ts",
|
|
35
|
+
"smoke:live": "FLOW_LIVE_SMOKE=1 bun test tests/live-opencode-smoke.test.ts",
|
|
35
36
|
"test": "bun test tests",
|
|
36
37
|
"typecheck": "tsc --noEmit",
|
|
37
38
|
"uninstall:opencode": "bun run ./src/cli.ts uninstall",
|
|
@@ -46,8 +47,11 @@
|
|
|
46
47
|
],
|
|
47
48
|
"author": "Douwe de Vries",
|
|
48
49
|
"license": "MIT",
|
|
50
|
+
"engines": {
|
|
51
|
+
"node": ">=20"
|
|
52
|
+
},
|
|
49
53
|
"peerDependencies": {
|
|
50
|
-
"@opencode-ai/plugin": "1.17.3"
|
|
54
|
+
"@opencode-ai/plugin": ">=1.17.3 <2"
|
|
51
55
|
},
|
|
52
56
|
"dependencies": {
|
|
53
57
|
"zod": "4.1.8"
|