ワンクリックで
pollhook
// Set up pollhook to poll REST APIs and deliver webhooks to Continue's Mission Control. Helps agents configure polling sources for services without native webhook support.
// Set up pollhook to poll REST APIs and deliver webhooks to Continue's Mission Control. Helps agents configure polling sources for services without native webhook support.
| name | pollhook |
| description | Set up pollhook to poll REST APIs and deliver webhooks to Continue's Mission Control. Helps agents configure polling sources for services without native webhook support. |
| metadata | {"author":"continuedev","version":"1.0.0"} |
You are helping a user set up pollhook to bridge REST APIs into Continue's webhook system.
go install github.com/continuedev/pollhook@latest
Or build from source:
git clone https://github.com/continuedev/pollhook.git
cd pollhook
make build
Create a pollhook.yaml with one or more sources. Each source needs:
sh -c)30s, 5m, 1h)"." for root, "data.incidents" for nested)https://hub.continue.dev/api/webhooks/ingest/<workflow-id>)X-Webhook-Secret headerExample for Sentry:
sources:
- name: sentry-issues
command: |
curl -s -H "Authorization: Bearer $SENTRY_TOKEN" \
https://sentry.io/api/0/projects/my-org/my-project/issues/?query=is:unresolved
interval: 5m
items: "."
id: "id"
webhook:
url: https://hub.continue.dev/api/webhooks/ingest/your-workflow-id
secret: your-webhook-secret
Environment variables ($SENTRY_TOKEN) are expanded in the config file.
Run a dry run to verify everything works:
pollhook test --config pollhook.yaml
This runs each command once, shows extracted items and what the webhook payloads would look like. No webhooks are sent and no state is touched.
pollhook serve --config pollhook.yaml
State is persisted to ~/.pollhook/state.json (customizable with --state-dir). The process handles SIGINT/SIGTERM gracefully.
For long-running deployment, use systemd, Docker, or a process manager:
# systemd example
pollhook serve --config /etc/pollhook/config.yaml --state-dir /var/lib/pollhook
pollhook version prints a version stringpollhook test --config pollhook.yaml shows extracted items without errorspollhook serve startsitems dot path doesn't point to a JSON array. Use pollhook test to inspect the raw output and adjust the path.~/.pollhook/state.json to reset.