AGENTS.md@packages/chat-gateway/src/shared · git:20260918.2f0b7e4 · 2026-09-18 · sha256 cea06d5392d3c401
AGENTS.md@packages/chat-gateway/src/shared git:20260918.2f0b7e4A
Immutable. This exact content is served forever at /api/v1/blob/cea06d5392d3c401.
# DOX — packages/chat-gateway/src/shared
Files in this directory. One row per source file. See change: add-chat-gateway.
| File | Purpose |
|------|---------|
| `types.ts` | The pure shared contract (no I/O, no host import): `ChatGatewayConfig` (mirrors `../configSchema.json`) + `ResolvedConfig` + `CONFIG_DEFAULTS`, `InboundMessage` (incl. `parentChannelId` — L4 treats an opted-in parent as opting in its threads), `BindingSource` (precedence-ordered), `Binding` + `bindingKey({platform,channelId,threadId})` (canonical, collision-free; thread keyed separately from its parent channel), `AuthAction`/`AuthDecision`. Imported by both the server component and the settings panel. |
| `index.ts` | Barrel re-export of `./types.js` — the `./shared` export subpath. |