@contractspec/example.messaging-agent-actions
v3.8.9
Published
Safe messaging agent actions example with fixed intents, allowlisted actions, workflow dispatch, and deterministic replies.
Readme
@contractspec/example.messaging-agent-actions
Safe messaging agent actions example with fixed intents, allowlisted action execution, workflow dispatch, and deterministic confirmation replies.
What This Demonstrates
- Inbound message normalization for Slack, WhatsApp, Telegram, or any messaging bridge.
- Fixed intent parsing:
status,run action, anddispatch workflow. - Allowlisted action and workflow routing instead of arbitrary tool execution.
- Replayable meetup proof for the canonical status -> action -> workflow walkthrough.
Running Locally
From packages/examples/messaging-agent-actions:
bun run buildbun run testbun run typecheckbun run proofbun run preflight
Usage
Use this package when you need a conservative messaging demo that proves agent actions can stay safe, typed, and reviewable even when messages come from live provider webhooks.
Public Entry Points
- Export
.resolves through./src/index.ts. - Export
./contractsresolves through./src/contracts/index.ts. - Export
./docsresolves through./src/docs/index.ts. - Export
./exampleresolves through./src/example.ts. - Export
./handlersresolves through./src/handlers/index.ts. - Export
./messaging-agent-actions.featureresolves through./src/messaging-agent-actions.feature.ts. - Export
./proof/*resolves through./src/proof/*.ts.
Local Commands
bun run build— bun run prebuild && bun run build:bundle && bun run build:typesbun run test— bun testbun run typecheck— tsc --noEmitbun run proof— bun ../../../scripts/generate-messaging-agent-actions-meetup-proof.tsbun run preflight— bun run build && bun run typecheck && bun run test && bun run proof
