Dashboard › opencode › Distillation
711e5014-277a-409e-aa50-d4ca1a26cc64["lore_tm_v1_Ua9P9goWmPuuter54PWfCmnYzuy0v4Cc6n011PZblPQ","lore_tm_v1_1kVL3IbpKYLsp0uWNSeB-ihUb_DRw-9y_1FFtjoQ1HM","lore_tm_v1_Q9ShIJg9OyK5DKRq-9g5Aw8AM68zzVYiEkbILy_uFec","lore_tm_v1_g2kkUOTW7PvnRkn4xkpedJFhSvN1PZ-_UtZpjREKVUQ","lore_tm_v1_0YzIR_hwBspfXcdElrDTtHGdqXfsHE6m5FF0iCjfNw8","lore_tm_v1_60rUsl4If0YLLPiMGSiF9jDWBw6mm9RiGgfPSTOWGEI","lore_tm_v1_5M2WWJ_rZN-Nb8Wzzh9X5nrOvwb69aVOYulBKuC4oPg","lore_tm_v1_lj0Zc3oULoLy0J6lCS_KvZKGDezQbTiUvTmvuw53czs","lore_tm_v1_tf_23Awt79LaHBH0XYheNZmJAm9S42Fo-pewDYPd8WY","lore_tm_v1_myN7bEL6akVvEpivSgNgIyAWNSSK7OMsutfNt4dIsBw","lore_tm_v1_pnV4JWX0-U-NZH4iLzzBccSdTSWmH_WiVozioOvbggI"]
Date: Sep 15, 2026
packages/core/src/event.ts:245-353 showed replay ownership and divergence handling: strictOwner with a conflicting stored ownerID dies with InvalidDurableEventError; replay at input.seq <= latest is accepted only when stored id, versioned event type, and encoded data all match exactly, and may claim a previously null owner; otherwise it dies with Replay diverged at aggregate ${aggregateID} sequence ${input.seq}.packages/core/src/event.ts:291-302 silently returns when an aggregate already has a different owner; otherwise sequence is input.seq or latest + 1, and a noncontiguous supplied sequence dies with Sequence mismatch for aggregate ${aggregateID}: expected ${latest + 1}, got ${seq}.packages/core/src/event.ts:303-315: if event.id already exists, publication dies with Event ${event.id} already exists at aggregate ${stored.aggregateID} sequence ${stored.seq}.packages/core/src/event.ts:316-361 is: construct payload with { aggregateID, seq, version }; run every projector; run optional local commit(seq); upsert EventSequenceTable including owner assignment where applicable; insert the encoded event into EventTable; then, after successful transaction completion, publish to durable aggregate wake subscribers.packages/schema/src/session-event.ts:87-112 defines Prompted as session.next.prompted, PromptAdmitted as session.next.prompt.admitted with optional requestExecution using the package optional(...) helper, and PromptExecutionRequested as session.next.prompt.execution_requested with Base plus messageID: SessionMessage.ID.PromptExecutionRequested is included in both SessionEvent.DurableDefinitions and SessionEvent.Definitions in packages/schema/src/session-event.ts:484-554; therefore it participates in both the durable tagged union SessionDurableEvent and the complete session event union.packages/client/src/generated/types.ts do not duplicate the server event union; they import OpenCodeEventEncoded from @opencode-ai/protocol/groups/event.packages/protocol/src/groups/session.ts use SessionEvent.Durable for both the durable-event array response (:311) and the SSE stream response (:332).packages/protocol/src/groups/event.ts builds the public /api/event SSE schema from EventManifest.ServerDefinitions, adds server.connected when absent, and exports the resulting schema as OpenCodeEvent plus its encoded type as OpenCodeEventEncoded.packages/schema/src/event-manifest.ts showed SessionEvent.Definitions enters coreDefinitions, then foundationDefinitions, and finally ServerDefinitions; consequently PromptExecutionRequested is exposed through the current server event stream and generated client event type. Definitions additionally includes V1 live and compatibility-only event sets, while ServerDefinitions excludes those extra compatibility groups.packages/sdk/js/src/v2/gen/ and packages/sdk/js/src/gen/, including sdk.gen.ts, client.gen.ts, types.gen.ts, generated client helpers, core serializers, auth, and SSE support; current generated client artifacts were also found under packages/client/src/generated/ and packages/client/src/generated-effect/.