Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

omnara-webhooks

БесплатноЗапускает вложенные скриптыНе проверен

Receive and verify Omnara webhooks (hosted AI agents, Standard Webhooks signing). Use when setting up an Omnara event webhook subscription handler, debugging…

hookdeckот hookdeck★ 104 звезды на GitHub

Об этом скилле

Omnara Webhooks

An Omnara event webhook is a project-owned subscription that sends agents' timeline events and tool-call updates to a public HTTPS endpoint as JSON POST requests. It receives events from the whole project, from agents using one profile, or from one agent. (Until 2026-10-29 it was an event_webhook block in each agent config; that block no longer applies.) The body is { "event": "<type>", "data": {...} }: the event type is the top-level event, and timeline events repeat it in data.event_kind. Every request carries Webhook-Id (stable across retries) and Webhook-Timestamp; signed requests also carry Webhook-Signature, per Standard Webhooks.

Signing is opt-in

Deliveries are signed only when the subscription has a signing secret (signing_secret_id). Without it they still carry Webhook-Id and Webhook-Timestamp but cannot be verified. The secret is bare base64; when you add it to a Hookdeck Omnara source, enter it as whsec_ followed by the value.

See references/setup.md.

When to Use This Skill

  • How do I receive Omnara event webhooks?
  • How do I verify Omnara webhook signatures (webhook-signature)?
  • How do I handle tool_call_update, tool_result or model_output events?
  • Why is my Omnara webhook signature verification failing, or rejecting Hookdeck retries?

Verification (core)

Signed content is {webhook-id}.{webhook-timestamp}.{raw body}, signed with HMAC-SHA256 and base64-encoded. webhook-signature holds one or more space-separated v1,<base64> entries. The secret is bare base64 (from openssl rand -base64 32); the HMAC key is its base64-decoding. The official standardwebhooks library (npm and pip) checks every v1 entry in constant time, strips a whsec_ prefix if present, and otherwise base64-decodes the whole secret, so the bare value and the whsec_-prefixed form give the same key. Read the webhook-* headers and, when webhook-id is absent, fall back to the svix-* headers (svix-id, svix-timestamp, svix-signature).

const { Webhook } = require('standardwebhooks');

const prefix = req.headers['webhook-id'] ? 'webhook' : 'svix';
// rawBody: the raw Buffer/string, never re-serialized JSON
const payload = new Webhook(process.env.OMNARA_WEBHOOK_SECRET).verify(rawBody, {
  'webhook-id': req.headers[`${prefix}-id`],
  'webhook-timestamp': req.headers[`${prefix}-timestamp`],
  'webhook-signature': req.headers[`${prefix}-signature`],
}); // throws on a bad signature or a timestamp outside the window; returns the parsed JSON
from standardwebhooks.webhooks import Webhook

prefix = "webhook" if headers.get("webhook-id") else "svix"
payload = Webhook(os.environ["OMNARA_WEBHOOK_SECRET"]).verify(raw_body, {
    "webhook-id": headers.get(f"{prefix}-id"),
    "webhook-timestamp": headers.get(f"{prefix}-timestamp"),
    "webhook-signature": headers.get(f"{prefix}-signature"),
})

For complete handlers with tests, see examples/express/, examples/nextjs/, examples/fastapi/.

Keep the secret exactly as Omnara shows it in OMNARA_WEBHOOK_SECRET. Handlers fail closed: with the variable unset they return 500. A missing header or bad signature gets 400. With Express, read the body with express.raw({ type: '*/*' }) so any content type reaches the verifier as the exact bytes Omnara signed, and parse JSON only after the check.

Hookdeck retries and replays hit the 5-minute window

The standardwebhooks library always enforces a fixed 5-minute timestamp window that can't be configured. Hookdeck retries and replays resend the original webhook-timestamp, so the library rejects any retry or replay more than 5 minutes after the original delivery. If you verify behind Hookdeck (or replay old events), use the manual verifier in references/verification.md, where the window can be dropped or widened. Deduplicate on webhook-id instead of relying on the timestamp.

Common Event Types

5 event types are documented (the API's event_types enum lists exactly these). The name is event in the body, and each subscription's event_types is a required, nonempty allowlist of them. The examples handle all five:

Event Triggered When
agent_input Input (user content, etc.) is added to an agent's timeline
model_output The model produces output (stop_reason, content_blocks)
tool_result A tool call finishes (tool_call_id, outcome)
context_checkpoint The context is summarized (summary, summarized_through_event_sequence)
tool_call_update A tool call or interaction changes state (a notification to fetch the details)

Delivery is at-least-once and unordered; see references/overview.md for payload shapes, r

Полный SKILL.md на GitHub

Установить omnara-webhooks в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

examples/express/.env.exampleexamples/express/README.mdexamples/express/package.jsonexamples/express/src/index.jsexamples/fastapi/.env.exampleexamples/fastapi/README.mdexamples/fastapi/main.pyexamples/fastapi/requirements.txtexamples/fastapi/test_webhook.pyexamples/nextjs/.env.exampleexamples/nextjs/README.mdexamples/nextjs/app/webhooks/omnara/route.tsexamples/nextjs/package.jsonexamples/nextjs/vitest.config.tsreferences/overview.mdreferences/setup.mdreferences/verification.md

FAQ

Что делает скилл omnara-webhooks?

Receive and verify Omnara webhooks (hosted AI agents, Standard Webhooks signing). Use when setting up an Omnara event webhook subscription handler, debugging webhook-signature verification, or handling agent_input, model_output, tool_result, context_checkpoint and tool_call_update events.

Как установить скилл omnara-webhooks?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл omnara-webhooks запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить omnara-webhooks с