Retain the existing event-sourced application data plane for projects and shell state while making orchestration v2 the sole agent runtime. Adapt v2 events and receipts to the shared infrastructure and remove the v1 provider reactors.
13 lines
454 B
TypeScript
13 lines
454 B
TypeScript
import type { OrchestrationEvent } from "./orchestration.ts";
|
|
import type { OrchestrationV2StoredEvent } from "./orchestrationV2.ts";
|
|
|
|
export type ApplicationProjectEvent = Extract<
|
|
OrchestrationEvent,
|
|
{
|
|
readonly type: "project.created" | "project.meta-updated" | "project.deleted";
|
|
}
|
|
>;
|
|
|
|
/** Events exposed by the retained application event source. */
|
|
export type ApplicationStoredEvent = ApplicationProjectEvent | OrchestrationV2StoredEvent;
|