Files
anomalyco_opencode/packages
Kit Langton 1a77519a23 refactor(llm): tighten transport, redaction, and protocol parsers
Mostly cleanup spread across the package:

- Extract a generic `WebSocketTransport.json` from the inline OpenAI Responses
  WebSocket transport so the same shape can be reused for other providers.
  WebSocket open path now also responds to scope abort.
- Drop the `RouteContext` / `TransportContext` wrappers; the only field was
  `request`, so transports and routes now take `LLMRequest` directly.
- Tighten registry semantics: registering a duplicate route id throws instead
  of silently keeping the first.
- Bedrock media: dispatch by MIME table so unknown formats fail with a clear
  error instead of degrading into a malformed document block.
- Anthropic Messages: refactor `step` from one long if-chain into named
  per-event handlers (`onMessageStart`, `onContentBlockStart`, etc.) dispatched
  from a small top-level switch. Also rename the one-off `anthropicString`
  accessor to `signatureFromMetadata`.
- Executor: consolidate the duplicated sensitive-name regexes into a single
  `SENSITIVE_NAME_SOURCE` plus named JSON/query field patterns.
2026-05-07 00:05:02 -04:00
..
2026-05-02 19:53:06 +00:00
2026-01-21 14:36:21 -06:00
2026-05-02 19:53:06 +00:00
2026-05-03 02:10:52 +00:00
2026-05-02 19:53:06 +00:00
2026-05-02 19:53:06 +00:00
2026-05-03 00:10:53 +00:00