opencode-plugin-flow 3.0.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/package.json ADDED
@@ -0,0 +1,88 @@
1
+ {
2
+ "name": "opencode-plugin-flow",
3
+ "version": "3.0.0",
4
+ "description": "Stateful planning and execution workflow plugin for OpenCode",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "exports": {
8
+ ".": "./dist/index.js"
9
+ },
10
+ "bin": {
11
+ "opencode-plugin-flow": "./dist/cli.js"
12
+ },
13
+ "files": [
14
+ "dist",
15
+ "LICENSE",
16
+ "README.md",
17
+ "CHANGELOG.md"
18
+ ],
19
+ "scripts": {
20
+ "build": "bun run build:plugin && bun run build:cli",
21
+ "build:plugin": "bun build --target=node --outdir=./dist --entry-naming=index.js --external=@opencode-ai/plugin --external=zod --minify --drop=console --sourcemap=external ./src/index.ts",
22
+ "build:cli": "bun build --target=node --outdir=./dist --entry-naming=cli.js --banner='#!/usr/bin/env node' --minify ./src/cli.ts",
23
+ "bench": "bun run ./bench/index.ts",
24
+ "bench:smoke": "bun run ./bench/index.ts -- --filter transitions --warmup 0 --iterations 3",
25
+ "evals:golden": "bun run evals/golden/runner.ts",
26
+ "check:dependency-contract": "node ./scripts/cross-area/dependency-contract.mjs",
27
+ "check:architecture-seams": "node ./scripts/cross-area/architecture-seams.mjs",
28
+ "check:architecture-seams:enforce": "FLOW_ARCH_SEAMS_MODE=enforce node ./scripts/cross-area/architecture-seams.mjs",
29
+ "check:release-hygiene": "node ./scripts/cross-area/release-hygiene.mjs",
30
+ "check:pack-invariants": "node ./scripts/cross-area/pack-invariants.mjs",
31
+ "check:bundle-sanity": "node ./scripts/cross-area/bundle-sanity.mjs",
32
+ "smoke:opencode": "node ./scripts/cross-area/opencode-smoke.mjs",
33
+ "smoke:release": "node ./scripts/cross-area/release-smoke.mjs",
34
+ "deadcode": "knip --include files,dependencies,unlisted,unresolved,binaries,catalog",
35
+ "report:deadcode-exports": "knip --exports --no-exit-code --reporter compact",
36
+ "lint": "bunx biome check src tests bench --files-ignore-unknown=true --vcs-use-ignore-file=true",
37
+ "test": "bun test",
38
+ "test:fast": "bun test tests/runtime/semantic-invariants.test.ts tests/runtime/final-completion-gates.test.ts",
39
+ "test:deep": "bun run test && bun run test:replay && bun run test:randomized",
40
+ "test:replay": "bun test tests/runtime/semantic-invariants.test.ts tests/runtime/final-completion-gates.test.ts",
41
+ "test:ci": "bun run build && bun run test:randomized",
42
+ "test:randomized": "bun test --randomize --timeout 30000",
43
+ "test:randomized:regression": "bun run build && bun test --randomize --timeout 30000 && bun test --randomize --timeout 30000 --seed=1 && bun test --randomize --timeout 30000 --seed=42",
44
+ "typecheck": "tsc --noEmit",
45
+ "uninstall:opencode": "bun run ./src/cli.ts uninstall",
46
+ "check": "bun run typecheck && bun run lint && bun run build && bun run test && bun run smoke:opencode && bun run check:bundle-sanity"
47
+ },
48
+ "keywords": [
49
+ "opencode",
50
+ "plugin",
51
+ "workflow",
52
+ "planning",
53
+ "execution"
54
+ ],
55
+ "author": "Douwe de Vries",
56
+ "license": "MIT",
57
+ "peerDependencies": {
58
+ "@opencode-ai/plugin": "1.17.3"
59
+ },
60
+ "dependencies": {
61
+ "zod": "4.1.8"
62
+ },
63
+ "devDependencies": {
64
+ "@biomejs/biome": "^2.2.6",
65
+ "@opencode-ai/plugin": "1.17.3",
66
+ "bun-types": "latest",
67
+ "knip": "^5.63.1",
68
+ "mitata": "^1.0.34",
69
+ "typescript": "^6.0.2"
70
+ },
71
+ "knip": {
72
+ "entry": [
73
+ "src/index.ts",
74
+ "tests/**/*.test.ts",
75
+ "tests/**/*.test-d.ts",
76
+ "bench/**/*.ts",
77
+ "scripts/**/*.mjs",
78
+ "scripts/**/*.ts"
79
+ ],
80
+ "project": [
81
+ "src/**/*.ts",
82
+ "tests/**/*.ts",
83
+ "bench/**/*.ts",
84
+ "scripts/**/*.mjs",
85
+ "scripts/**/*.ts"
86
+ ]
87
+ }
88
+ }