Skip to content

OpenClaw installation: missing hooks in package.json #838

@PinkZanny

Description

@PinkZanny

Bug Description

When trying to install the plugin, the installation fails due to openclaw.hooks not being configured in package.json file.

Note that the installation security block can be bypassed by:
openclaw plugins install @vectorize-io/hindsight-openclaw --dangerously-force-unsafe-install

Steps to Reproduce

  1. Install OpenClaw
  2. Attempt installation of hindsight plugin: openclaw plugins install @vectorize-io/hindsight-openclaw
  3. Failure.
  4. Attempt forced installation of hindsight: openclaw plugins install @vectorize-io/hindsight-openclaw --dangerously-force-unsafe-install

Expected Behavior

The plugin should install.

Actual Behavior

Plugin doesn't install:

OpenClaw 2026.3.31 (213a704) — I can't fix your code taste, but I can fix your build and your backlog. Resolving clawhub:@vectorize-io/hindsight-openclaw… Downloading @vectorize-io/hindsight-openclaw… Extracting /tmp/openclaw-npm-pack-dM7IZc/vectorize-io-hindsight-openclaw-0.5.1.tgz… WARNING: Plugin "hindsight-openclaw" contains dangerous code patterns: Environment variable access combined with network send — possible credential harvesting (/tmp/openclaw-plugin-JjJINk/extract/package/dist/index.js:77); Shell command execution detected (child_process) (/tmp/openclaw-plugin-JjJINk/extract/package/dist/client.js:11); Shell command execution detected (child_process) (/tmp/openclaw-plugin-JjJINk/extract/package/dist/embed-manager.js:72); Environment variable access combined with network send — possible credential harvesting (/tmp/openclaw-plugin-JjJINk/extract/package/dist/embed-manager.js:50) Downloading @vectorize-io/hindsight-openclaw… Extracting /tmp/openclaw-hook-pack-RNPuIi/vectorize-io-hindsight-openclaw-0.5.1.tgz… Plugin "hindsight-openclaw" installation blocked: dangerous code patterns detected: Environment variable access combined with network send — possible credential harvesting (/tmp/openclaw-plugin-JjJINk/extract/package/dist/index.js:77); Shell command execution detected (child_process) (/tmp/openclaw-plugin-JjJINk/extract/package/dist/client.js:11); Shell command execution detected (child_process) (/tmp/openclaw-plugin-JjJINk/extract/package/dist/embed-manager.js:72); Environment variable access combined with network send — possible credential harvesting (/tmp/openclaw-plugin-JjJINk/extract/package/dist/embed-manager.js:50) Also not a valid hook pack: Error: package.json missing openclaw.hooks

Version

No response

LLM Provider

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions