Conversation
… to 0.1.0-alpha.1 Make `bootstrap.sh` self-sufficient instead of asking the user to install the package and hand-edit `~/.openclaw/openclaw.json`: - auto-install `@world2agent/openclaw-sensor-bridge` globally via npm when the binaries aren't on PATH (so the SKILL alone is enough to bring up the runtime) - idempotently fix the `hooks` block in `openclaw.json`: enable, generate `token` if absent (existing tokens preserved), set `allowRequestSessionKey`, ensure `"w2a:"` is in `allowedSessionKeyPrefixes`. Backup is written next to the file before any mutation; `gateway_restart_needed` is surfaced in the bootstrap output so the SKILL tells the user to restart their gateway Default delivery now mirrors hermes-sensor-bridge: `install-sensor.sh` auto-fills `--notify-channel` / `--notify-to` from the first `<PLATFORM>_HOME_CHANNEL=<handle>` it finds in `~/.openclaw/.env` (priority feishu, imessage, telegram, slack, discord, signal, whatsapp, wecom, dingtalk). Paired channel users now get pushes to their actual inbox by default instead of having signals sit in a session lane only the dashboard surfaces. Other changes: - rename `world2agent-sensor-runner` → `world2agent-openclaw-runner` to avoid global-bin collision with hermes-sensor-bridge - expose `thinking`, `timeout_seconds`, `fallbacks` on the `_openclaw_bridge` manifest block; thread them and an auto `name: "w2a-<sensor_id>"` into every `/hooks/agent` payload to align with the documented request schema - delete the empty `tools/` leftover Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Three-step onboarding paralleling the Hermes section: install the runtime, drop the skill into OpenClaw, then drive it from chat. Also add openclaw-sensor-bridge to the catalog table, repository tree, and the publishing notes. Co-Authored-By: Claude Opus 4.7 (1M context) <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.
Summary
bootstrap.shnownpm install -gs the bridge package when its binaries aren't on PATH, and idempotently fixes thehooksblock in~/.openclaw/openclaw.json(enables hooks, generatestokenonly if absent, setsallowRequestSessionKey, ensures"w2a:"inallowedSessionKeyPrefixes). A timestamped backup is written next to the file before any mutation;gateway_restart_neededis surfaced in the bootstrap output so the SKILL tells the user to restart their gateway.install-sensor.shnow mirrors hermes-sensor-bridge: when--notify-*flags are omitted, it scans~/.openclaw/.envfor the first<PLATFORM>_HOME_CHANNEL=<handle>(priority feishu, imessage, telegram, slack, discord, signal, whatsapp, wecom, dingtalk) and auto-fills the notify target. Paired-channel users get pushes to their actual inbox by default instead of disappearing into a session lane./hooks/agentpayload alignment. Exposethinking,timeout_seconds,fallbackson the_openclaw_bridgemanifest block (with matching--thinking/--timeout-seconds/--fallbacksCLI flags), and auto-attachname: "w2a-<sensor_id>"to every POST so signals are groupable in the OpenClaw job log.world2agent-sensor-runner→world2agent-openclaw-runnerto avoid global-bin collision with hermes-sensor-bridge.tools/leftover; bump version to0.1.0-alpha.1.Test plan
pnpm run buildcleanpnpm run test—e2e/test-delivery.mjs+e2e/test-config-watcher.mjsboth pass (24 assertions)bash -nsyntax check on every modified scriptensure_openclaw_hookson empty file writes the managed block with random 64-char token; second invocation isnoopTELEGRAM_HOME_CHANNEL+FEISHU_HOME_CHANNELset returnsfeishufirst (priority order)npm install -g @world2agent/openclaw-sensor-bridge@alphaon a fresh machine, runbootstrap.sh, verify auto-install + hooks block written + supervisor up🤖 Generated with Claude Code