fix(openclaw): fix plugin install — add openclaw.extensions, document --dangerously-force-unsafe-install#1236
Open
aldrinleal wants to merge 1 commit intortk-ai:masterfrom
Open
Conversation
… --dangerously-force-unsafe-install Without `openclaw.extensions` in package.json, `openclaw plugins install` fails with: package.json missing openclaw.extensions; update the plugin package to include openclaw.extensions (for example ["./dist/index.js"]) OpenClaw requires this field to locate the plugin entry point. Points to `./index.ts` since OpenClaw handles TypeScript natively. Also, the plugin shells out via `child_process` to call `rtk rewrite`, which triggers OpenClaw's safety check. The README now documents that `--dangerously-force-unsafe-install` is required and explains why it is safe to use here. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Running
openclaw plugins install ./openclaw(from the repo root) fails with two errors:And even after that is fixed, the install is blocked because the plugin uses
child_process:Fix
1. Add
openclaw.extensionstopackage.jsonOpenClaw requires this field to locate the plugin entry point. Since OpenClaw handles TypeScript natively,
./index.tsworks directly — no build step needed.2. Update
README.mdinstall instructionsopenclaw/--dangerously-force-unsafe-installis required (the plugin shells out tortk rewriteviachild_process)Verified
🤖 Generated with Claude Code