Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .changeset/move-pi-deps-to-dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@martian-engineering/lossless-claw": patch
---

Move `@mariozechner/pi-agent-core`, `@mariozechner/pi-ai`, and `@mariozechner/pi-coding-agent` from `peerDependencies` (with `peerDependenciesMeta.optional: true`) to runtime `dependencies`. The plugin's bundled `dist/index.js` imports these unconditionally (build externalizes `@mariozechner/*`), so absence becomes a hard `ERR_MODULE_NOT_FOUND` at module load — `optional: true` was not honored at runtime. Treating them as runtime dependencies makes the plugin self-contained on `npm install` and removes the host-symlink workaround currently required on fresh OpenClaw installs.

Fixes #636.
53 changes: 6 additions & 47 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 3 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,35 +31,21 @@
"LICENSE"
],
"dependencies": {
"@mariozechner/pi-agent-core": ">=0.66 <1",
"@mariozechner/pi-ai": ">=0.66 <1",
"@mariozechner/pi-coding-agent": ">=0.66 <1",
"@sinclair/typebox": "0.34.48"
},
"devDependencies": {
"@changesets/changelog-github": "^0.6.0",
"@changesets/cli": "^2.30.0",
"@mariozechner/pi-agent-core": "0.66.1",
"@mariozechner/pi-ai": "0.66.1",
"@mariozechner/pi-coding-agent": "0.66.1",
"esbuild": "^0.28.0",
"typescript": "^5.7.0",
"vitest": "^3.0.0"
},
"peerDependencies": {
"@mariozechner/pi-agent-core": ">=0.66 <1",
"@mariozechner/pi-ai": ">=0.66 <1",
"@mariozechner/pi-coding-agent": ">=0.66 <1",
"openclaw": ">=2026.2.17 <2026.6.0"
},
"peerDependenciesMeta": {
"@mariozechner/pi-agent-core": {
"optional": true
},
"@mariozechner/pi-ai": {
"optional": true
},
"@mariozechner/pi-coding-agent": {
"optional": true
}
},
"publishConfig": {
"access": "public"
},
Expand Down
Loading