# @lssm-tech/integration.communication-channel-sms

CommunicationOS SMS channel adapter: inbound normalization (Twilio webhook parse), outbound send (provider-sms/Twilio), and documented-retention erasure.

## Source and release context

- Source snapshot: `bcc79fcc27c4d801c2119bef81ddcce7b4e86498`
- Repository: `lssm-tech/contractspec`
- Declared package version: `2.0.5`
- Package path: `packages/integrations/communication-channel-sms`
- Manifest path: `packages/integrations/communication-channel-sms/package.json`
- Manifest Git blob: `3a353817853220144205d827691e9a0591690e87`
- Manifest origin: pinned GitHub manifest fetch
- Manual: [@lssm-tech/integration.communication-channel-sms](https://lssm.co/docs/packages/integration.communication-channel-sms/)
- 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/packages/integrations/communication-channel-sms)
- [Manifest source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/communication-channel-sms/package.json)
- [Readme source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/communication-channel-sms/README.md)
- [Guide source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/apps/web-landing/public/llms-packages/integration.communication-channel-sms.txt)

## Package metadata

```json
{
  "layer": "integrations",
  "physicalArea": null,
  "primaryArea": "communication-and-notifications",
  "classification": {
    "privateDeclared": null,
    "catalogFamily": "integrations",
    "catalogKind": "integration",
    "catalogStatus": "active",
    "adoptionMode": "adoptable",
    "stability": "experimental"
  },
  "descriptionOrigin": "package.json",
  "manifestComplete": true,
  "publicationPolicyApplied": false
}
```

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

Primary area: [Communication and notifications](https://lssm.co/docs/areas/communication-and-notifications/)

## Package guide

```json
{
  "status": "available",
  "sourcePath": "packages/integrations/communication-channel-sms/README.md",
  "sourceUrl": "https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/communication-channel-sms/README.md",
  "blobSha": "c3f433730d3ead6f7c6c1d90b1903cad390b4a00",
  "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.

# CommunicationOS SMS channel

This package owns the canonical Twilio SMS channel adapter for
CommunicationOS. It supports signature-verified inbound form webhooks,
provider-backed outbound delivery, normalized ecosystem events and receipts,
and explicit provider-retention behavior.

The adapter uses an explicit Node-compatible build profile, including Bun server
hosts. Its credential and webhook boundary does not advertise a browser export
condition. Existing package entry points and provider contracts remain unchanged.

## Ecosystem composition

Use `createTwilioSmsEcosystemAdapter` from
`@lssm-tech/integration.communication-channel-sms/ecosystem-adapter` when
composing the current CommunicationOS ecosystem port. The adapter requires an
injected `SmsProvider`, an E.164 sender number, and the Twilio auth token used to
verify inbound signatures.

Managed connections store only an opaque credential reference. The resolved
secret document is expected to contain:

```json
{
  "network": "sms",
  "provider": "twilio",
  "accountSid": "...",
  "authToken": "...",
  "fromNumber": "+..."
}
```


The managed API accepts only `application/x-www-form-urlencoded` payloads with
an `X-Twilio-Signature` that verifies against the exact callback URL. The
managed worker rejects other providers or incomplete credential material.

Local conformance is not live provider qualification. Production activation
still requires consent and opt-out enforcement, credentialed callback/send
tests, delivery-status reconciliation, and an accepted Runtime Node effect
path.


## Declared capabilities

### Integration Communication Channel Sms

Capability ID: `package.lssm.tech.integration.communication.channel.sms`

CommunicationOS SMS channel adapter: inbound normalization (Twilio webhook parse), outbound send (provider-sms/Twilio), and documented-retention erasure.

Use cases:

- Adopt communicationos sms channel adapter: inbound normalization (twilio webhook parse), outbound send (provider-sms/twilio), and documented-retention erasure

Constraints:

```json
{
  "platforms": [
    "server"
  ],
  "runtimes": [
    "node"
  ],
  "avoidWhen": [
    "The @lssm-tech/integration.communication-channel-sms package constraints do not match the target runtime or platform."
  ],
  "requires": [
    "TypeScript"
  ]
}
```

Other capability declarations:

```json
{
  "status": "active",
  "aliases": [
    "integration",
    "communication",
    "channel",
    "sms"
  ],
  "pythonEquivalents": [],
  "alternatives": [],
  "relationships": [],
  "resolutionPriority": 50
}
```

Capability imports:

```json
[
  {
    "from": "@lssm-tech/integration.communication-channel-sms",
    "symbols": []
  },
  {
    "from": "@lssm-tech/integration.communication-channel-sms/adapter",
    "symbols": []
  },
  {
    "from": "@lssm-tech/integration.communication-channel-sms/ecosystem-adapter",
    "symbols": []
  }
]
```

## Catalogue metadata

```json
{
  "family": "integrations",
  "kind": "integration",
  "status": "active",
  "adoptionMode": "adoptable",
  "stability": "experimental",
  "platforms": [
    "server"
  ],
  "runtimes": [
    "node"
  ],
  "entrypoints": [
    ".",
    "./adapter",
    "./ecosystem-adapter"
  ],
  "examples": [],
  "replacements": []
}
```

## 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
[
  {
    "capabilityId": "package.lssm.tech.integration.communication.channel.sms",
    "from": "@lssm-tech/integration.communication-channel-sms",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.integration.communication.channel.sms",
    "from": "@lssm-tech/integration.communication-channel-sms/adapter",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.integration.communication.channel.sms",
    "from": "@lssm-tech/integration.communication-channel-sms/ecosystem-adapter",
    "symbols": []
  }
]
```

## 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/integration.communication-channel-sms` — subpath `.`
  - `unconditional`: `./src/index.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/communication-channel-sms/src/index.ts); verified source file.

- `@lssm-tech/integration.communication-channel-sms/adapter` — subpath `./adapter`
  - `unconditional`: `./src/adapter.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/communication-channel-sms/src/adapter.ts); verified source file.

- `@lssm-tech/integration.communication-channel-sms/ecosystem-adapter` — subpath `./ecosystem-adapter`
  - `unconditional`: `./src/ecosystem-adapter.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/communication-channel-sms/src/ecosystem-adapter.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",
      "bun": "./dist/index.js",
      "node": "./dist/node/index.js",
      "default": "./dist/index.js"
    },
    "./adapter": {
      "types": "./dist/adapter.d.ts",
      "bun": "./dist/adapter.js",
      "node": "./dist/node/adapter.js",
      "default": "./dist/adapter.js"
    },
    "./ecosystem-adapter": {
      "types": "./dist/ecosystem-adapter.d.ts",
      "bun": "./dist/ecosystem-adapter.js",
      "node": "./dist/node/ecosystem-adapter.js",
      "default": "./dist/ecosystem-adapter.js"
    }
  }
}
```

## Dependencies

Metadata status: complete pinned manifest.

### Runtime dependencies

- [@lssm-tech/integration.builder-whatsapp](https://lssm.co/docs/packages/integration.builder-whatsapp/): `workspace:^`
- [@lssm-tech/integration.communication-channel-core](https://lssm.co/docs/packages/integration.communication-channel-core/): `workspace:^`
- [@lssm-tech/integration.provider-sms](https://lssm.co/docs/packages/integration.provider-sms/): `workspace:^`
- [@lssm-tech/lib.builder-runtime](https://lssm.co/docs/packages/lib.builder-runtime/): `workspace:^`
- [@lssm-tech/lib.builder-spec](https://lssm.co/docs/packages/lib.builder-spec/): `workspace:^`
- [@lssm-tech/lib.contracts-integrations](https://lssm.co/docs/packages/lib.contracts-integrations/): `workspace:^`
- [@lssm-tech/lib.contracts-spec-core](https://lssm.co/docs/packages/lib.contracts-spec-core/): `workspace:^`

### Peer dependencies

No declarations in the inspected manifest.

### Optional dependencies

No declarations in the inspected manifest.

### Development dependencies

- [@lssm-tech/lib.crypto-utils](https://lssm.co/docs/packages/lib.crypto-utils/): `workspace:*`
- [@lssm-tech/tool.bun](https://lssm.co/docs/packages/tool.bun/): `workspace:*`
- [@lssm-tech/tool.typescript](https://lssm.co/docs/packages/tool.typescript/): `workspace:*`
- `@types/bun`: `catalog:types`
- `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
{
  "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:check": "node ../../../scripts/biome.cjs check .",
  "lint:fix": "node ../../../scripts/biome.cjs check --write --unsafe --only=nursery/useSortedClasses . && node ../../../scripts/biome.cjs check --write .",
  "test": "bun test",
  "prebuild": "contractspec-bun-build prebuild",
  "typecheck": "tsgo --noEmit"
}
```

## Declared documentation links

- [Integration Communication Channel Sms documentation](https://www.npmjs.com/package/%40lssm-tech%2Fintegration.communication-channel-sms) — declared link; destination not verified.

```json
{
  "url": "https://www.npmjs.com/package/%40lssm-tech%2Fintegration.communication-channel-sms",
  "kind": "readme"
}
```

## Existing agent-guide projection

```json
{
  "path": "packages/apps/web-landing/public/llms-packages/integration.communication-channel-sms.txt",
  "route": "/llms/integration.communication-channel-sms",
  "sourceUrl": "https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/apps/web-landing/public/llms-packages/integration.communication-channel-sms.txt",
  "blobSha": "c3f433730d3ead6f7c6c1d90b1903cad390b4a00",
  "sourcePin": "bcc79fcc27c4d801c2119bef81ddcce7b4e86498",
  "bodyEqualsReadme": true,
  "aggregateSourcePath": "packages/apps/web-landing/public/llms-full.txt",
  "aggregateBlobSha": "691b1d33efee24c440598b9106c81432f56aafaf"
}
```
