@siftline/actions
v0.2.0
Published
Siftline adapters for the places labels land: issue trackers, inboxes and queues.
Maintainers
Readme
@siftline/actions
Siftline adapters that carry a Decision to a webhook or to Slack.
npm install @siftline/actionsimport { defineActions, dispatch } from "@siftline/actions";
const actions = defineActions({
"linear-tickets": { kind: "webhook", config: { url, secret } },
escalations: { kind: "slack_incoming_webhook", config: { url: slackUrl } },
});
const sent = await dispatch(decision, actions, recipe);defineActions checks every config when you call it. dispatch sends the Action the Decision
selected, once, through the global fetch (or the one you pass as { fetch }), and returns
{ action, request, response }. It returns null for a Decision that went to Review or
selected no Action. A preview is an Adapter's build without sending. The webhook body is the
Decision line, signed with HMAC-SHA256 when a secret is set; slackIncomingWebhook posts one
message.
The guide and the full reference live at docs.siftline.dev.
ESM only. Node 22.14 or newer.
Licence
MIT. See LICENSE.
