@shenlee/devcrew 0.1.0 → 0.1.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.
Files changed (39) hide show
  1. package/README.md +20 -7
  2. package/README.zh-CN.md +20 -7
  3. package/dist/packages/adapters/src/index.js +3 -2
  4. package/dist/packages/core/src/paths.js +3 -0
  5. package/dist/packages/core/src/store.js +6 -0
  6. package/dist/packages/core/src/types.js +1 -0
  7. package/dist/packages/core/src/version.js +1 -1
  8. package/dist/packages/core/src/workflow.js +51 -20
  9. package/dist/packages/orchestrator/src/index.js +118 -154
  10. package/dist/packages/orchestrator/src/worktree.js +198 -0
  11. package/dist/packages/plugins/src/index.js +32 -10
  12. package/dist/packages/service/src/stdio.js +19 -3
  13. package/dist/packages/service/src/tools.js +3 -3
  14. package/docs/claude-code.md +1 -1
  15. package/docs/codex.md +6 -2
  16. package/docs/quickstart.md +1 -1
  17. package/docs/superpowers/plans/2026-07-10-p0-foundation-repair.md +939 -0
  18. package/docs/superpowers/specs/2026-07-10-p0-foundation-repair-design.md +182 -0
  19. package/docs/workflow.md +21 -4
  20. package/package.json +1 -1
  21. package/packages/adapters/src/index.ts +4 -3
  22. package/packages/core/src/paths.ts +4 -0
  23. package/packages/core/src/store.ts +7 -0
  24. package/packages/core/src/types.ts +7 -0
  25. package/packages/core/src/version.ts +1 -1
  26. package/packages/core/src/workflow.ts +55 -20
  27. package/packages/orchestrator/src/index.ts +136 -179
  28. package/packages/orchestrator/src/worktree.ts +269 -0
  29. package/packages/plugins/src/index.ts +34 -10
  30. package/packages/service/src/stdio.ts +27 -6
  31. package/packages/service/src/tools.ts +2 -2
  32. package/plugins/devcrew-codex/.codex-plugin/plugin.json +1 -1
  33. package/plugins/devcrew-codex/.mcp.json +10 -3
  34. package/plugins/devcrew-codex/agents/architect.toml +6 -0
  35. package/plugins/devcrew-codex/agents/implementer.toml +6 -0
  36. package/plugins/devcrew-codex/agents/pm.toml +7 -0
  37. package/plugins/devcrew-codex/agents/tester.toml +6 -0
  38. package/plugins/devcrew-codex/assets/logo.png +0 -0
  39. package/scripts/smoke-codex-plugin.mjs +1 -1
@@ -1,5 +1,5 @@
1
- import { approveWorkflow, getArtifact, getActiveRunId, getWorkflowStatus, setActiveRun, } from "../../core/src/index.js";
2
- import { answerOrchestratedWorkflow, continueOrchestratedWorkflow, rejectOrchestratedWorkflow, startOrchestratedWorkflow, } from "../../orchestrator/src/index.js";
1
+ import { getArtifact, getActiveRunId, getWorkflowStatus, setActiveRun, } from "../../core/src/index.js";
2
+ import { answerOrchestratedWorkflow, approveOrchestratedWorkflow, continueOrchestratedWorkflow, rejectOrchestratedWorkflow, startOrchestratedWorkflow, } from "../../orchestrator/src/index.js";
3
3
  const cwdProperty = { type: "string", description: "Repository working directory." };
4
4
  const runIdProperty = { type: "string", description: "DevCrew run id." };
5
5
  const hostValues = ["codex", "claude"];
@@ -154,7 +154,7 @@ export async function callDevCrewTool(name, args) {
154
154
  return success(`${summarizeState(state)}. Answer recorded.`, { state });
155
155
  }
156
156
  if (name === "devcrew_approve") {
157
- const state = await approveWorkflow((await withActiveRun(args)));
157
+ const state = await approveOrchestratedWorkflow((await withActiveRun(args)));
158
158
  return success(`${summarizeState(state)}. Gate approved.`, { state });
159
159
  }
160
160
  if (name === "devcrew_reject") {
@@ -26,7 +26,7 @@ For local plugin testing:
26
26
  claude --plugin-dir plugins/devcrew-claude
27
27
  ```
28
28
 
29
- Then ask Claude Code to use DevCrew for a feature or product workflow. The generated `.mcp.json` starts the version-locked npm package with `npx -y @shenlee/devcrew@0.1.0 serve --stdio`.
29
+ Then ask Claude Code to use DevCrew for a feature or product workflow. The generated `.mcp.json` starts the version-locked npm package with an `npm exec --package=@shenlee/devcrew@0.1.2` wrapper.
30
30
 
31
31
  Claude Code permissions, hooks, and approval settings remain authoritative. DevCrew inherits the host boundary.
32
32
 
package/docs/codex.md CHANGED
@@ -13,7 +13,7 @@ Restart Codex, open the plugin directory, select the DevCrew marketplace, and in
13
13
  The plugin launches the MCP server with:
14
14
 
15
15
  ```bash
16
- npx -y @shenlee/devcrew@0.1.0 serve --stdio
16
+ npm exec --silent --yes --package=@shenlee/devcrew@0.1.2 -- node -e "<DevCrew CLI wrapper>" -- serve --stdio
17
17
  ```
18
18
 
19
19
  Use this path when you want to use DevCrew without cloning the repository first. The version is locked to the published npm package that matches the plugin manifest.
@@ -54,6 +54,10 @@ The DevCrew skill tells Codex to use these MCP tools:
54
54
 
55
55
  Codex sandbox and approval settings remain authoritative. DevCrew does not bypass them.
56
56
 
57
+ Apply mode keeps implementation planning read-only. After the implementation gate is approved, call `devcrew_continue` once to run the implementer in `.devcrew/worktrees/<run-id>`, then call it again to run the tester and verification commands in that worktree. Testing approval promotes the exact reviewed patch to the requester repository. Rejecting testing and answering the feedback returns the isolated run to execution without touching the requester repository.
58
+
59
+ Apply mode requires a Git repository, a clean requester worktree at execution and promotion, and a real Codex SDK backend.
60
+
57
61
  For apply mode, `@openai/codex-sdk` must be resolvable from the installed DevCrew package. Published DevCrew packages declare it as an optional dependency, which npm installs by default. If `devcrew doctor` reports it as missing, reinstall DevCrew with optional dependencies enabled:
58
62
 
59
63
  ```bash
@@ -62,7 +66,7 @@ npm install -g @shenlee/devcrew --include=optional
62
66
 
63
67
  ## Marketplace smoke test
64
68
 
65
- After publishing the npm package version referenced by the plugin, run the real marketplace smoke test:
69
+ After publishing `@shenlee/devcrew@0.1.2`, run the real marketplace smoke test. Do not treat this as a pre-publication check because the plugin is locked to that npm version:
66
70
 
67
71
  ```bash
68
72
  npm run smoke:codex-plugin
@@ -37,7 +37,7 @@ devcrew serve --stdio
37
37
  ```
38
38
 
39
39
  Normally the generated plugin starts this command for the host agent.
40
- Codex and Claude plugin bundles use `npx -y @shenlee/devcrew@0.1.0 serve --stdio` so the MCP service is locked to the published package version.
40
+ Codex and Claude plugin bundles use a version-locked `npm exec --package=@shenlee/devcrew@0.1.2` wrapper so the MCP service is locked to the published package version.
41
41
 
42
42
  ## 4. Run A Workflow
43
43