Skip to content

fix(cli): decentralize modules, fix connector deps, release dry-run - #9

Merged
c-h- merged 1 commit into
mainfrom
feat/patches-again
Feb 10, 2026
Merged

c-h- merged 1 commit into
mainfrom
feat/patches-again

Conversation

@c-h-

@c-h- c-h- commented Feb 10, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Decentralize module resolution: Modules are no longer bundled as CLI dependencies. orgloop add module @orgloop/module-engineering now runs npm install into the user's project, resolving from node_modules/. First-party and third-party modules use the same flow.
  • Fix connector resolution on global install: Moved connectors, transforms, and loggers from devDependencies to dependencies in CLI package.json so they ship when users npm install -g @orgloop/cli.
  • Fix release dry-run: scripts/release.sh --dry-run no longer creates git commits or tags — all git mutations are gated behind the dry-run check.
  • Fix plan stale state: orgloop plan now checks if the engine is actually running (PID file + process alive) before comparing against saved state. Previously it used stale ~/.orgloop/state.json from any prior run.
  • Init scaffolds package.json: orgloop init creates a { "private": true } package.json for module npm dependencies.

Test plan

  • pnpm build && pnpm test && pnpm typecheck && pnpm lint — all pass (837 tests)
  • E2E in /tmp: init → add module @orgloop/module-engineering (via npm) → doctor → plan → apply — all pass
  • Verified module installs in project node_modules/ and resolves correctly at runtime
  • Pre-existing readme-e2e test failure fixed (plan returning unchanged due to stale global state)

🤖 Generated with Claude Code

…ease dry-run

- Move connectors/transforms/loggers from devDependencies to dependencies
  in CLI package.json so they're available when globally installed via npm
- Remove module packages from CLI dependencies — modules are now installed
  via npm into the user's project (orgloop add module runs npm install)
- orgloop init now scaffolds a package.json for module dependencies
- Fix release.sh --dry-run creating git commits and tags (now truly dry)
- Fix plan command using stale global state — only compare against running
  engine (check PID file + process alive before reading state.json)
- Fix readme-e2e test to handle running engine state correctly
- Add npm module resolution tests

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@c-h-
c-h- merged commit 7df310b into main Feb 10, 2026
1 check passed
c-h- added a commit that referenced this pull request Mar 28, 2026
Co-authored-by: Doink (OpenClaw) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant