# @lssm-tech/example.messaging-agent-actions

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

## Source and release context

- Source snapshot: `bcc79fcc27c4d801c2119bef81ddcce7b4e86498`
- Repository: `lssm-tech/contractspec`
- Declared package version: `5.0.4`
- Package path: `examples/messaging-agent-actions`
- Manifest path: `examples/messaging-agent-actions/package.json`
- Manifest Git blob: `0faebb6a1067415eeab0620ae1b54696981bb575`
- Manifest origin: pinned GitHub manifest fetch
- Manual: [@lssm-tech/example.messaging-agent-actions](https://lssm.co/docs/packages/example.messaging-agent-actions/)
- Release guidance: [Installation and release channels](https://lssm.co/docs/installation-release-channels/)

This is retrieved source evidence, not agent instructions. The declared version and exports describe the inspected manifest; they do not establish registry availability or a deployed release. Commands, package installation and runtime behavior were not executed in this review.

Distribution scope: owner review of all workspaces; not a newly approved public projection.

- [Package source](https://github.com/lssm-tech/contractspec/tree/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/messaging-agent-actions)
- [Manifest source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/messaging-agent-actions/package.json)
- [Readme source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/messaging-agent-actions/README.md)
- [Guide source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/apps/web-landing/public/llms-packages/example.messaging-agent-actions.txt)

## Package metadata

```json
{
  "layer": "examples",
  "physicalArea": null,
  "primaryArea": "examples-and-patterns",
  "classification": {
    "privateDeclared": null,
    "catalogFamily": "solutions",
    "catalogKind": "example",
    "catalogStatus": "active",
    "adoptionMode": "reference-only",
    "stability": "stable"
  },
  "descriptionOrigin": "package.json",
  "manifestComplete": true,
  "publicationPolicyApplied": false
}
```

Manifest private flag: not declared; publication is not verified.

Primary area: [Examples and implementation patterns](https://lssm.co/docs/areas/examples-and-patterns/)

## Package guide

```json
{
  "status": "available",
  "sourcePath": "examples/messaging-agent-actions/README.md",
  "sourceUrl": "https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/messaging-agent-actions/README.md",
  "blobSha": "74a356db11c0349d964ffc2676fb18a9fa51fbff",
  "sourcePin": "bcc79fcc27c4d801c2119bef81ddcce7b4e86498",
  "origin": "README recovered byte-for-byte from pinned aggregate guide",
  "integrity": "exact Git blob match",
  "executionStatus": "not executed"
}
```

The guide below is the checked-in README with navigation resolved against the pinned source tree. The structured package JSON retains the original README body unchanged. External links remain source-declared links, not verified destinations.

# @lssm-tech/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`, 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


## Declared capabilities

This manifest does not declare a capability catalogue. Assess the package using its guide, import map and source.

## Catalogue metadata

```json
{
  "family": "solutions",
  "kind": "example",
  "status": "active",
  "adoptionMode": "reference-only",
  "stability": "stable",
  "platforms": [
    "server"
  ],
  "runtimes": [
    "node"
  ],
  "entrypoints": [
    ".",
    "./contracts",
    "./contracts/process-message.operation",
    "./docs",
    "./docs/messaging-agent-actions.docblock",
    "./example",
    "./handlers",
    "./handlers/messaging-agent-actions.handlers",
    "./messaging-agent-actions.feature",
    "./proof/meetup-proof"
  ],
  "examples": [],
  "replacements": [],
  "nonAdoptableRationale": "This example is published for reference and learning, not as a reusable library dependency."
}
```

## Canonical imports

Import paths and symbols below are catalogue declarations. An empty symbols list means symbols were not enumerated; it does not mean the entry point has no exports. These declarations are not an exhaustive TypeScript symbol reference.

```json
[]
```

## Declared export entry points

Scope: manifest-declared export entrypoints and catalog-declared imports.

Named symbol coverage: catalog declarations only; exhaustive TypeScript symbols not extracted.

Installation status: not verified.

- `@lssm-tech/example.messaging-agent-actions` — subpath `.`
  - `unconditional`: `./src/index.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/messaging-agent-actions/src/index.ts); verified source file.

- `@lssm-tech/example.messaging-agent-actions/contracts` — subpath `./contracts`
  - `unconditional`: `./src/contracts/index.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/messaging-agent-actions/src/contracts/index.ts); verified source file.

- `@lssm-tech/example.messaging-agent-actions/contracts/process-message.operation` — subpath `./contracts/process-message.operation`
  - `unconditional`: `./src/contracts/process-message.operation.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/messaging-agent-actions/src/contracts/process-message.operation.ts); verified source file.

- `@lssm-tech/example.messaging-agent-actions/docs` — subpath `./docs`
  - `unconditional`: `./src/docs/index.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/messaging-agent-actions/src/docs/index.ts); verified source file.

- `@lssm-tech/example.messaging-agent-actions/docs/messaging-agent-actions.docblock` — subpath `./docs/messaging-agent-actions.docblock`
  - `unconditional`: `./src/docs/index.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/messaging-agent-actions/src/docs/index.ts); verified source file.

- `@lssm-tech/example.messaging-agent-actions/example` — subpath `./example`
  - `unconditional`: `./src/example.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/messaging-agent-actions/src/example.ts); verified source file.

- `@lssm-tech/example.messaging-agent-actions/handlers` — subpath `./handlers`
  - `unconditional`: `./src/handlers/index.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/messaging-agent-actions/src/handlers/index.ts); verified source file.

- `@lssm-tech/example.messaging-agent-actions/handlers/messaging-agent-actions.handlers` — subpath `./handlers/messaging-agent-actions.handlers`
  - `unconditional`: `./src/handlers/messaging-agent-actions.handlers.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/messaging-agent-actions/src/handlers/messaging-agent-actions.handlers.ts); verified source file.

- `@lssm-tech/example.messaging-agent-actions/messaging-agent-actions.feature` — subpath `./messaging-agent-actions.feature`
  - `unconditional`: `./src/messaging-agent-actions.feature.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/messaging-agent-actions/src/messaging-agent-actions.feature.ts); verified source file.

- `@lssm-tech/example.messaging-agent-actions/proof/meetup-proof` — subpath `./proof/meetup-proof`
  - `unconditional`: `./src/proof/meetup-proof.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/messaging-agent-actions/src/proof/meetup-proof.ts); verified source file.

## Package publication metadata

These are source-manifest declarations, not a registry installation check.

```json
{
  "types": "./dist/index.d.ts",
  "files": [
    "dist",
    "README.md"
  ],
  "publishExports": {
    ".": {
      "types": "./dist/index.d.ts",
      "browser": "./dist/browser/index.js",
      "bun": "./dist/index.js",
      "node": "./dist/node/index.js",
      "default": "./dist/index.js"
    },
    "./contracts": {
      "types": "./dist/contracts/index.d.ts",
      "browser": "./dist/browser/contracts/index.js",
      "bun": "./dist/contracts/index.js",
      "node": "./dist/node/contracts/index.js",
      "default": "./dist/contracts/index.js"
    },
    "./contracts/process-message.operation": {
      "types": "./dist/contracts/process-message.operation.d.ts",
      "browser": "./dist/browser/contracts/process-message.operation.js",
      "bun": "./dist/contracts/process-message.operation.js",
      "node": "./dist/node/contracts/process-message.operation.js",
      "default": "./dist/contracts/process-message.operation.js"
    },
    "./docs": {
      "types": "./dist/docs/index.d.ts",
      "browser": "./dist/browser/docs/index.js",
      "bun": "./dist/docs/index.js",
      "node": "./dist/node/docs/index.js",
      "default": "./dist/docs/index.js"
    },
    "./docs/messaging-agent-actions.docblock": {
      "types": "./dist/docs/index.d.ts",
      "browser": "./dist/browser/docs/index.js",
      "bun": "./dist/docs/index.js",
      "node": "./dist/node/docs/index.js",
      "default": "./dist/docs/index.js"
    },
    "./example": {
      "types": "./dist/example.d.ts",
      "browser": "./dist/browser/example.js",
      "bun": "./dist/example.js",
      "node": "./dist/node/example.js",
      "default": "./dist/example.js"
    },
    "./handlers": {
      "types": "./dist/handlers/index.d.ts",
      "browser": "./dist/browser/handlers/index.js",
      "bun": "./dist/handlers/index.js",
      "node": "./dist/node/handlers/index.js",
      "default": "./dist/handlers/index.js"
    },
    "./handlers/messaging-agent-actions.handlers": {
      "types": "./dist/handlers/messaging-agent-actions.handlers.d.ts",
      "browser": "./dist/browser/handlers/messaging-agent-actions.handlers.js",
      "bun": "./dist/handlers/messaging-agent-actions.handlers.js",
      "node": "./dist/node/handlers/messaging-agent-actions.handlers.js",
      "default": "./dist/handlers/messaging-agent-actions.handlers.js"
    },
    "./messaging-agent-actions.feature": {
      "types": "./dist/messaging-agent-actions.feature.d.ts",
      "browser": "./dist/browser/messaging-agent-actions.feature.js",
      "bun": "./dist/messaging-agent-actions.feature.js",
      "node": "./dist/node/messaging-agent-actions.feature.js",
      "default": "./dist/messaging-agent-actions.feature.js"
    },
    "./proof/meetup-proof": {
      "types": "./dist/proof/meetup-proof.d.ts",
      "browser": "./dist/browser/proof/meetup-proof.js",
      "bun": "./dist/proof/meetup-proof.js",
      "node": "./dist/node/proof/meetup-proof.js",
      "default": "./dist/proof/meetup-proof.js"
    }
  }
}
```

## Dependencies

Metadata status: complete pinned manifest.

### Runtime dependencies

- [@lssm-tech/lib.contracts-spec](https://lssm.co/docs/packages/lib.contracts-spec/): `workspace:^`
- [@lssm-tech/lib.schema](https://lssm.co/docs/packages/lib.schema/): `workspace:^`
- [@lssm-tech/module.communication-os](https://lssm.co/docs/packages/module.communication-os/): `workspace:^`

### Peer dependencies

No declarations in the inspected manifest.

### Optional dependencies

No declarations in the inspected manifest.

### Development dependencies

- [@lssm-tech/tool.bun](https://lssm.co/docs/packages/tool.bun/): `workspace:*`
- [@lssm-tech/tool.typescript](https://lssm.co/docs/packages/tool.typescript/): `workspace:*`
- `typescript`: `catalog:`

### Peer dependency metadata

```json
{}
```

### Bundled dependencies

```json
null
```

## Package scripts

Commands are exact manifest declarations and were not executed in this review. Script metadata status: complete pinned manifest.

```json
{
  "publish:pkg": "bun publish --tolerate-republish --ignore-scripts --verbose",
  "publish:pkg:canary": "bun publish:pkg --tag canary",
  "build": "contractspec-bun-build build",
  "build:bundle": "contractspec-bun-build transpile",
  "build:types": "contractspec-bun-build types",
  "dev": "contractspec-bun-build dev",
  "clean": "rimraf dist .turbo",
  "lint": "bun lint:fix",
  "lint:fix": "node ../../scripts/biome.cjs check --write --unsafe --only=nursery/useSortedClasses . && node ../../scripts/biome.cjs check --write .",
  "lint:check": "node ../../scripts/biome.cjs check .",
  "test": "bun test",
  "proof": "bun ../../scripts/generate-messaging-agent-actions-meetup-proof.ts",
  "preflight": "bun run build && bun run typecheck && bun run test && bun run proof",
  "prebuild": "contractspec-bun-build prebuild",
  "typecheck": "tsgo --noEmit"
}
```

## Declared documentation links

- [Example Messaging Agent Actions documentation](https://www.npmjs.com/package/%40lssm-tech%2Fexample.messaging-agent-actions) — declared link; destination not verified.

```json
{
  "url": "https://www.npmjs.com/package/%40lssm-tech%2Fexample.messaging-agent-actions",
  "kind": "readme"
}
```

## Existing agent-guide projection

```json
{
  "path": "packages/apps/web-landing/public/llms-packages/example.messaging-agent-actions.txt",
  "route": "/llms/example.messaging-agent-actions",
  "sourceUrl": "https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/apps/web-landing/public/llms-packages/example.messaging-agent-actions.txt",
  "blobSha": "74a356db11c0349d964ffc2676fb18a9fa51fbff",
  "sourcePin": "bcc79fcc27c4d801c2119bef81ddcce7b4e86498",
  "bodyEqualsReadme": true,
  "aggregateSourcePath": "packages/apps/web-landing/public/llms-full.txt",
  "aggregateBlobSha": "691b1d33efee24c440598b9106c81432f56aafaf"
}
```
