Open
Conversation
Adds an HTTP API to the queue processor so external services can submit messages without needing a dedicated channel client. The webhook writes to the same file-based incoming queue, keeping the existing processing pipeline unchanged. Endpoints: - POST /webhook/message — accept and queue a new message - GET /webhook/health — health check with queue depth counts - GET /webhook/status/:messageId — track message through the pipeline Uses Node.js built-in http module (no new dependencies). Port defaults to 3077 and is configurable via webhook_port in settings.json. https://claude.ai/code/session_01Dcg3mDHsjpH6vzsqce15GU
5dcce2a to
5d21952
Compare
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
This PR adds a webhook HTTP server to the queue processor, enabling external systems to submit messages via HTTP requests instead of only through file-based queue operations.
Key Changes
httpmodulePOST /webhook/message— Accept JSON payloads to queue new messages with validationGET /webhook/health— Health check endpoint returning queue statistics and uptimeGET /webhook/status/:messageId— Query the status of a queued message (queued, processing, completed, or not found).tinyclaw/settings.jsonwith a sensible defaulthttpandcryptoimports for server implementation and message ID generationImplementation Details
https://claude.ai/code/session_01Dcg3mDHsjpH6vzsqce15GU