compound-workflow 1.6.1 → 1.6.3
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/README.md
CHANGED
|
@@ -24,18 +24,37 @@ flowchart LR
|
|
|
24
24
|
|
|
25
25
|
## Get Started
|
|
26
26
|
|
|
27
|
+
**1. Install the package**
|
|
28
|
+
|
|
27
29
|
```bash
|
|
28
30
|
npm install compound-workflow
|
|
29
31
|
```
|
|
30
32
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
+
**2. Automatic setup**
|
|
34
|
+
|
|
35
|
+
The package’s `postinstall` script runs and configures your repo: `AGENTS.md`, standard directories, and OpenCode wiring. No separate npx step is needed.
|
|
36
|
+
|
|
37
|
+
**3. If lifecycle scripts were skipped**
|
|
38
|
+
|
|
39
|
+
If your package manager didn’t run postinstall, run once:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
npx compound-workflow install
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
**4. After updating the package**
|
|
46
|
+
|
|
47
|
+
To get the latest commands and wiring (e.g. after `npm update compound-workflow` or a new release), run install again so your project’s `opencode.json` is refreshed:
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
npx compound-workflow install
|
|
51
|
+
```
|
|
33
52
|
|
|
34
|
-
|
|
53
|
+
**What gets configured**
|
|
35
54
|
|
|
36
|
-
- Workflow template
|
|
37
|
-
- Standard workspace directories
|
|
38
|
-
- `opencode.json` managed entries
|
|
55
|
+
- Workflow template in `AGENTS.md`
|
|
56
|
+
- Standard workspace directories (plans, todos, docs)
|
|
57
|
+
- `opencode.json` managed entries pointing at `node_modules/compound-workflow/src/.agents/*`
|
|
39
58
|
|
|
40
59
|
## Breaking Change (2.0.0)
|
|
41
60
|
|
package/package.json
CHANGED
package/scripts/install-cli.mjs
CHANGED
|
@@ -14,11 +14,11 @@ const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
|
14
14
|
function usage(exitCode = 0) {
|
|
15
15
|
const msg = `
|
|
16
16
|
Usage:
|
|
17
|
-
|
|
17
|
+
(automatic) npm install compound-workflow # runs install via postinstall; no npx needed
|
|
18
|
+
(manual) npx compound-workflow install [--root <projectDir>] [--dry-run] [--no-config]
|
|
18
19
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
(unless --no-config).
|
|
20
|
+
Install writes opencode.json (from package), merges AGENTS.md, creates standard
|
|
21
|
+
docs/todos directories, and prompts for Repo Config Block (unless --no-config).
|
|
22
22
|
|
|
23
23
|
--root <dir> Project directory (default: cwd)
|
|
24
24
|
--dry-run Print planned changes only
|
|
@@ -366,6 +366,7 @@ function main() {
|
|
|
366
366
|
|
|
367
367
|
const genScript = path.join(PACKAGE_ROOT, "scripts", "generate-platform-artifacts.mjs");
|
|
368
368
|
if (fs.existsSync(genScript)) {
|
|
369
|
+
console.log("[compound-workflow] Regenerating manifest from package source...");
|
|
369
370
|
const result = spawnSync(process.execPath, [genScript], {
|
|
370
371
|
cwd: PACKAGE_ROOT,
|
|
371
372
|
stdio: "pipe",
|
package/scripts/postinstall.mjs
CHANGED
|
@@ -57,7 +57,7 @@ function run() {
|
|
|
57
57
|
|
|
58
58
|
if (result.status !== 0) {
|
|
59
59
|
console.warn(
|
|
60
|
-
"[compound-workflow] automatic setup failed; run `npx compound-workflow install` in your project."
|
|
60
|
+
"[compound-workflow] automatic setup failed; re-run `npm install compound-workflow` or run `npx compound-workflow install` in your project."
|
|
61
61
|
);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
@@ -19,10 +19,11 @@ Contract precedence: if this command conflicts with other workflow docs, follow
|
|
|
19
19
|
## Execution
|
|
20
20
|
|
|
21
21
|
1. Resolve the plan document (from argument, context, or discovery).
|
|
22
|
-
2. Load the `technical-review` skill and run it on that plan.
|
|
22
|
+
2. **Run technical review as a subagent (mandatory when supported).** Load the `technical-review` skill and run it on that plan. You **must** attempt the independent pass via a subagent first: run **Task planning-technical-reviewer(plan_path)** (e.g. `mcp_task` with subagent_type and the plan path). Do **not** perform the planning-technical-reviewer pass in-context unless the environment cannot run the Task; if you fall back, you **must** state "planning-technical-reviewer unavailable; running direct technical review (degraded bias resistance)". After the subagent (or fallback) pass, synthesize the verdict and findings queue.
|
|
23
23
|
3. After technical review, if the user agrees to changes, recommend loading `document-review` to update the plan, then proceed to build when ready.
|
|
24
24
|
|
|
25
25
|
## Guardrails
|
|
26
26
|
|
|
27
|
+
- **Subagent mandatory when available.** You must run the planning-technical-reviewer pass as a subagent (Task / mcp_task) when the environment supports it. Do not run in-context unless the environment cannot run the Task; if you do, disclose the degraded mode.
|
|
27
28
|
- Do not modify the plan in this command; technical review is read-only. Apply changes via document-review or user edit.
|
|
28
29
|
- Do not create commits, push branches, or create pull requests.
|