Files
anomalyco_opencode/packages
Dax Raad 03b7c2d3fb core: add message shape design options for v2 prompt hooks
Document two approaches for handling synthetic messages in prompt hooks:
- Option 1: Separate PromptMessage type for lightweight prompt surgery
- Option 2: PromptEditor API with append/prepend/insert mutators

This enables plugin developers to inject instructions or context into prompts without manually fabricating message IDs and timestamps. The design supports resumable sessions while keeping the API simple for common prompt manipulation use cases.
2026-04-05 19:12:27 -04:00
..
2026-04-02 12:59:04 -04:00
2026-04-01 00:44:06 +00:00
2026-04-01 00:44:06 +00:00
2026-04-01 00:44:06 +00:00
2026-04-01 00:44:06 +00:00
2026-04-05 17:56:01 -04:00
2026-04-01 00:44:06 +00:00
2026-04-01 00:44:06 +00:00
2026-04-02 17:54:07 +00:00