feat: Hermes Agent webhook dispatch mode (PER-81)#132
Merged
Conversation
- createPluginRuntimeStore → openclaw/plugin-sdk/runtime-store - dispatchInboundReplyWithBase → openclaw/plugin-sdk/inbound-reply-dispatch - Update test mocks to match new import paths - Bump peer dependency to ^2026.4.0 Fixes #129
Add alternative dispatch mode that forwards Linear webhooks to a Hermes Agent endpoint instead of OpenClaw's built-in agent. Changes: - src/hermes-adapter.ts: New adapter with validateHermesConfig() and dispatchToHermes() for HMAC-signed webhook forwarding - src/webhook-handler.ts: Hermes dispatch branch in dispatchToAgent() with config-based routing between OpenClaw and Hermes modes - openclaw.plugin.json: Config schema for hermesWebhookUrl, hermesApiKey, hermesDispatchMode - index.ts: Hermes mode startup log - docs/hermes-skill.md: Hermes integration documentation - src/__test__/hermes-adapter.test.ts: 11 unit tests All 290 tests passing.
…er81 # Conflicts: # package-lock.json # src/__test__/index.test.ts # src/webhook-handler.ts
- Add 3 integration tests in webhook-handler.test.ts: - Hermes mode dispatches to webhook correctly - Hermes non-OK response logs error - Non-Hermes mode falls back to OpenClaw - Add non-Error rejection test in hermes-adapter.test.ts - Branch coverage: 89.88% → 90.07% (passes 90% threshold)
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
Add alternative dispatch mode that forwards Linear webhooks to a Hermes Agent endpoint instead of OpenClaw's built-in agent.
Closes PER-81
Changes
validateHermesConfig()checks config validity,dispatchToHermes()forwards webhooks with HMAC signingdispatchToAgent()with config-based routing between OpenClaw and Hermes modeshermesWebhookUrl,hermesApiKey,hermesDispatchModeTesting
All 290 tests passing (13 test files).
Configuration
{ "dispatchMode": "hermes", "hermesWebhookUrl": "http://hermes-host:8644/webhooks", "hermesApiKey": "your-hmac-secret" }Architecture: Linear webhook → this plugin → POST to Hermes webhook → Hermes agent processes → uses linear-workflow skill → posts comment to Linear