Skip to content
ContractSpec
Start here

Package manual · examples

·Examples and implementation patterns

example.messaging-agent-actions

Safe messaging agent actions example with fixed intents, allowlisted actions, workflow dispatch, and deterministic replies.

examplesexamplev5.0.4stableservernode
@lssm-tech/example.messaging-agent-actions
bun add @lssm-tech/example.messaging-agent-actions
Package source ↗Manifest ↗

Manifest declarations describe the current workspace; they do not verify registry publication or runtime execution.

Package guide

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, and dispatch workflow.
  • Allowlisted action and workflow routing instead of arbitrary tool execution.
  • Replayable meetup proof for the canonical status -> action -> workflow walkthrough.

Running Locally

From examples/messaging-agent-actions:

  • bun run build
  • bun run test
  • bun run typecheck
  • bun run proof
  • bun 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 ./contracts resolves through ./src/contracts/index.ts.
  • Export ./docs resolves through ./src/docs/index.ts.
  • Export ./example resolves through ./src/example.ts.
  • Export ./handlers resolves through ./src/handlers/index.ts.
  • Export ./messaging-agent-actions.feature resolves through ./src/messaging-agent-actions.feature.ts.
  • Export ./proof/* resolves through ./src/proof/*.ts.

Local Commands

  • bun run build — contractspec-bun-build build
  • bun run test — bun test
  • bun run typecheck — tsgo --noEmit
  • bun run proof — bun ../../scripts/generate-messaging-agent-actions-meetup-proof.ts
  • bun run preflight — bun run build && bun run typecheck && bun run test && bun run proof

Relationships

THIS PACKAGEexample.messaging-agent-actions10 import paths

Arrows point from a package to its direct dependency. Counts are derived from captured workspace manifests.

3 declarations

Declared capabilities

This manifest does not declare a capability catalogue. Use the guide, import map and source to assess the package.

Scripts

  • publish:pkgbun publish --tolerate-republish --ignore-scripts --verbose
  • publish:pkg:canarybun publish:pkg --tag canary
  • buildcontractspec-bun-build build
  • build:bundlecontractspec-bun-build transpile
  • build:typescontractspec-bun-build types
  • devcontractspec-bun-build dev
  • cleanrimraf dist .turbo
  • lintbun lint:fix
  • lint:fixnode ../../scripts/biome.cjs check --write --unsafe --only=nursery/useSortedClasses . && node ../../scripts/biome.cjs check --write .
  • lint:checknode ../../scripts/biome.cjs check .
  • testbun test
  • proofbun ../../scripts/generate-messaging-agent-actions-meetup-proof.ts
  • preflightbun run build && bun run typecheck && bun run test && bun run proof
  • prebuildcontractspec-bun-build prebuild
  • typechecktsgo --noEmit