effect-durable-agent-cloudflare 0.1.0-alpha.26 → 0.1.0-alpha.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rpc-spec-BRNFIsY1.js","names":["#storage","#options","#log","#limits","#prepare","#transact","#recordSliceFailure"],"sources":["../src/rpc-codec.ts","../src/durable-object-transcript.ts","../src/rpc-spec.ts"],"sourcesContent":["import * as Effect from \"effect/Effect\";\nimport * as Exit from \"effect/Exit\";\nimport * as Schema from \"effect/Schema\";\n\nimport { EDACommand } from \"effect-durable-agent/types/commands\";\nimport type { EDASubmittable } from \"effect-durable-agent/services/session-state\";\nimport {\n DurableEventEnvelope,\n EDADurableEvent,\n effectDurableAgentNamespace,\n} from \"effect-durable-agent/types/events\";\n\n/** Encode one durable event into a structured-clone-safe Durable Object RPC value. */\nexport const encodeEdaRpcDurableEvent = (event: DurableEventEnvelope): DurableEventEnvelope => {\n const encoded =\n event.namespace === effectDurableAgentNamespace\n ? Schema.encodeSync(EDADurableEvent)(Schema.decodeUnknownSync(EDADurableEvent)(event))\n : Schema.encodeSync(DurableEventEnvelope)(event);\n return Schema.decodeUnknownSync(DurableEventEnvelope)(encoded);\n};\n\n/** Command/application-event RPC admission union; controller validation owns admission authorization. */\nexport const EDARpcSubmittable = Schema.Union([EDACommand, DurableEventEnvelope]);\n\nexport const encodeEdaRpcCommand = (input: EDACommand): typeof EDACommand.Encoded =>\n Schema.encodeSync(EDACommand)(input);\n\nexport const encodeEdaRpcSubmittables = (\n input: ReadonlyArray<EDASubmittable>,\n): ReadonlyArray<typeof EDARpcSubmittable.Encoded> =>\n input.map((item) => Schema.encodeSync(EDARpcSubmittable)(item));\n\nexport const decodeEdaRpcCommand = (\n input: unknown,\n): Effect.Effect<EDACommand, Schema.SchemaError> =>\n Schema.decodeUnknownExit(EDACommand)(input).pipe(\n Exit.match({ onFailure: Effect.failCause, onSuccess: Effect.succeed }),\n );\n\nexport const decodeEdaRpcSubmittables = (\n input: ReadonlyArray<unknown>,\n): Effect.Effect<ReadonlyArray<EDASubmittable>, Schema.SchemaError> =>\n Effect.forEach(input, (item) =>\n Schema.decodeUnknownExit(EDARpcSubmittable)(item).pipe(\n Exit.match({ onFailure: Effect.failCause, onSuccess: Effect.succeed }),\n ),\n );\n","import * as Effect from \"effect/Effect\";\nimport * as Layer from \"effect/Layer\";\nimport * as Result from \"effect/Result\";\nimport * as Schema from \"effect/Schema\";\n\nimport { EDASessionStoreError } from \"effect-durable-agent/services/session-store\";\nimport { SequenceNumber, type SessionId } from \"effect-durable-agent/types/core\";\nimport {\n EDATranscriptStore,\n TranscriptLogIncarnation,\n TranscriptVersion,\n TranscriptVersionMeta,\n inactiveTranscriptWindow,\n readTranscriptWindowFrom,\n type EDATranscriptStoreShape,\n type TranscriptCursorMismatch,\n type TranscriptVersionMeta as TranscriptVersionMetaType,\n type TranscriptWindow,\n type TranscriptWindowLimits,\n type TranscriptWindowSelector,\n} from \"effect-durable-agent/transcript\";\nimport type { DurableObjectSessionStorage } from \"./durable-object-storage\";\nimport { makeDurableObjectEventLog } from \"./durable-object-store\";\nimport {\n carriedDefinition,\n resolveTranscriptSliceLimits,\n emptyTranscriptEffects,\n hasPendingTranscriptWork,\n missedSessionAlert,\n publishTranscriptEffects,\n reconcileTranscriptSlots,\n recordTranscriptSliceFailure,\n TranscriptBuildSliceError,\n runTranscriptSlice,\n type DurableObjectTranscriptOptions,\n type DurableObjectTranscriptSliceLimits,\n type TranscriptAlert,\n type TranscriptEffects,\n type TranscriptEventLog,\n} from \"./durable-object-transcript-maintenance\";\nimport {\n makeTranscriptWindowSource,\n readLogIncarnation,\n readOrMintLogIncarnation,\n readTranscriptSlots,\n transcriptVersionMetaOf,\n TranscriptRowDecodeError,\n type TranscriptSlot,\n} from \"./durable-object-transcript-tables\";\n\n/**\n * Maintenance state of one session's transcript, as a host backfill records it (§7).\n *\n * - `Enabled`: the host maintains this session's transcript. `converged` is the backfill's proof\n * condition: the active version is `currentVersion`, healthy and at the head, and no builder or\n * cleanup work remains.\n * - `Disabled`: the host has not enabled this session (a rollout ring). It is reported read-only:\n * any stored versions are listed as they are, nothing is maintained, and no incarnation is\n * minted, so `incarnation` is present only when one already exists or can be adopted.\n */\nexport const TranscriptStorageStatus = Schema.Union([\n Schema.TaggedStruct(\"Enabled\", {\n incarnation: TranscriptLogIncarnation,\n headSeq: SequenceNumber,\n currentVersion: TranscriptVersion,\n versions: Schema.Array(TranscriptVersionMeta),\n pending: Schema.Boolean,\n converged: Schema.Boolean,\n }),\n Schema.TaggedStruct(\"Disabled\", {\n incarnation: Schema.optionalKey(TranscriptLogIncarnation),\n headSeq: SequenceNumber,\n currentVersion: TranscriptVersion,\n versions: Schema.Array(TranscriptVersionMeta),\n }),\n]);\nexport type TranscriptStorageStatus = typeof TranscriptStorageStatus.Type;\n\n/** Construction options for the runtime-free transcript store of one session. */\nexport interface DurableObjectTranscriptStoreOptions {\n readonly sessionId: SessionId;\n readonly storage: DurableObjectSessionStorage;\n readonly transcript: DurableObjectTranscriptOptions;\n}\n\n/**\n * Storage-level transcript service of one session Durable Object: reads, status and builder\n * slices over the same SQLite tables the session store maintains in its appends.\n *\n * It never constructs the model runtime, reducers or sinks, so a cold object can serve SSR and\n * CLI reads and advance a backfill without starting an agent. It holds no cache: every call\n * reads storage, so a storage wipe or another writer is always observed. Every method is\n * synchronous, which makes each window a single cut. Callers must have run the store migration.\n */\nexport class DurableObjectTranscriptStore {\n readonly #storage: DurableObjectSessionStorage;\n readonly #options: DurableObjectTranscriptOptions;\n readonly #log: TranscriptEventLog;\n readonly #limits: DurableObjectTranscriptSliceLimits;\n\n constructor(options: DurableObjectTranscriptStoreOptions) {\n this.#storage = options.storage;\n this.#options = options.transcript;\n this.#log = makeDurableObjectEventLog(options.storage.sql, options.sessionId);\n this.#limits = resolveTranscriptSliceLimits(options.transcript.sliceLimits);\n }\n\n /** The `EDATranscriptStore` port over this store. */\n static readonly layer = (options: DurableObjectTranscriptStoreOptions) =>\n Layer.sync(EDATranscriptStore, () => new DurableObjectTranscriptStore(options).port);\n\n /** Read one complete window of the served version at a single cut. */\n readWindow(\n selector: TranscriptWindowSelector,\n limits: TranscriptWindowLimits,\n ): Result.Result<TranscriptWindow, TranscriptCursorMismatch> {\n const { incarnation, slots } = this.#prepare();\n const active = slots.find((slot) => slot.role === \"active\");\n if (active === undefined) {\n // Nothing is servable yet: building, or unreadable if the build of `current` froze (§7).\n return Result.succeed(\n inactiveTranscriptWindow(\n incarnation,\n this.#options.definitions.current.version,\n slots.find((slot) => slot.role === \"building\"),\n ),\n );\n }\n const carried = carriedDefinition(this.#options.definitions, active.version) !== undefined;\n try {\n const window = readTranscriptWindowFrom(\n makeTranscriptWindowSource(this.#storage.sql, incarnation, active, carried),\n selector,\n limits,\n );\n // An active version behind the head (re-enabled after its session was disabled, or caught\n // up by the builder for any other reason) serves its consistent last cut, but never as\n // current: it reads as updating history until the builder brings it to the head.\n return Result.isSuccess(window) &&\n window.success.readiness._tag === \"Ready\" &&\n active.cursor < this.#log.head()\n ? Result.succeed({ ...window.success, readiness: { _tag: \"UpdatingHistory\" } })\n : window;\n } catch (error) {\n // Only a stored row this release cannot decode serves nothing rather than a wrong view (§7);\n // a storage failure is an error.\n if (!(error instanceof TranscriptRowDecodeError)) throw error;\n return Result.succeed({\n incarnation,\n version: active.version,\n throughSeq: active.cursor,\n records: [],\n dependencies: [],\n hasOlder: false,\n hasNewer: false,\n readiness: {\n _tag: \"Unreadable\",\n error: error instanceof Error ? error.message : String(error),\n },\n });\n }\n }\n\n /** Maintenance state of every version present. */\n readMeta(): ReadonlyArray<TranscriptVersionMetaType> {\n return this.#prepare().slots.flatMap((slot) => transcriptVersionMetaOf(slot) ?? []);\n }\n\n /** Status for builders, backfill proofs and alerts. */\n status(): Extract<TranscriptStorageStatus, { readonly _tag: \"Enabled\" }> {\n const { incarnation, slots } = this.#prepare();\n const headSeq = this.#log.head();\n const config = this.#options.definitions;\n const pending = hasPendingTranscriptWork(this.#storage, config, headSeq);\n const active = slots.find((slot) => slot.role === \"active\");\n return {\n _tag: \"Enabled\",\n incarnation,\n headSeq,\n currentVersion: config.current.version,\n versions: slots.flatMap((slot) => transcriptVersionMetaOf(slot) ?? []),\n pending,\n converged:\n !pending && active?.version === config.current.version && active.status._tag === \"Ok\",\n };\n }\n\n /**\n * Status of a session the host has not enabled, read without writing anything: no version is\n * initialized or reconciled and no incarnation is minted.\n */\n disabledStatus(): Extract<TranscriptStorageStatus, { readonly _tag: \"Disabled\" }> {\n const incarnation = readLogIncarnation(this.#storage.sql, this.#options.adoptIncarnation);\n return {\n _tag: \"Disabled\",\n ...(incarnation === undefined ? {} : { incarnation }),\n headSeq: this.#log.head(),\n currentVersion: this.#options.definitions.current.version,\n versions: readTranscriptSlots(this.#storage.sql).flatMap(\n (slot) => transcriptVersionMetaOf(slot) ?? [],\n ),\n };\n }\n\n /**\n * This log's incarnation, minted (or adopted from the host's key) inside a transaction the\n * same way window reads mint it. Body and summary reads check a reference against it.\n */\n incarnation(): TranscriptLogIncarnation {\n return this.#transact(() =>\n readOrMintLogIncarnation(this.#storage.sql, this.#options.adoptIncarnation),\n );\n }\n\n /** Raise the missed-session alert if the active version is no longer carried. */\n auditMissedSession(): void {\n const alert = missedSessionAlert(this.#storage, this.#options.definitions);\n if (alert !== undefined)\n publishTranscriptEffects(this.#options.observer, { alerts: [alert], pendingWork: false });\n }\n\n /** Whether a builder or cleanup slice has work to do. */\n hasPendingWork(): boolean {\n return hasPendingTranscriptWork(this.#storage, this.#options.definitions, this.#log.head());\n }\n\n /** Run one bounded builder slice in its own transaction; returns whether work remains. */\n runSlice(): boolean {\n try {\n return this.#transact((effects) =>\n runTranscriptSlice(\n this.#storage,\n this.#options.definitions,\n this.#log,\n this.#limits,\n effects,\n ),\n );\n } catch (error) {\n // The slice rolled back. A failure while advancing its build target counts against that\n // target, which freezes at the limit; any other failure is bounded by the builder alarm.\n if (!(error instanceof TranscriptBuildSliceError)) throw error;\n if (this.#recordSliceFailure(error.cause)) return this.hasPendingWork();\n throw error.cause;\n }\n }\n\n /** Record a thrown slice in its own transaction; returns whether a version was frozen. */\n #recordSliceFailure(cause: unknown): boolean {\n try {\n return this.#transact((effects) =>\n recordTranscriptSliceFailure(\n this.#storage,\n this.#options.definitions,\n this.#log,\n this.#limits,\n cause,\n effects,\n ),\n );\n } catch (error) {\n // Storage refuses even the failure record; the caller still sees the original failure,\n // and the builder alarm's own failure count bounds its retries.\n console.error(\"EDA transcript could not record a failed builder slice\", error);\n return false;\n }\n }\n\n /** Raise an alert through the host observer. */\n alert(alert: TranscriptAlert): void {\n publishTranscriptEffects(this.#options.observer, { alerts: [alert], pendingWork: false });\n }\n\n /** The `EDATranscriptStore` port: the same reads as Effects. */\n get port(): EDATranscriptStoreShape {\n return {\n readTranscriptWindow: (selector, limits) =>\n Effect.try({\n try: () => this.readWindow(selector, limits),\n catch: (error) => storeError(\"reading transcript window\", error),\n }).pipe(\n Effect.flatMap((window) =>\n Result.isSuccess(window) ? Effect.succeed(window.success) : Effect.fail(window.failure),\n ),\n ),\n readTranscriptMeta: Effect.try({\n try: () => this.readMeta(),\n catch: (error) => storeError(\"reading transcript meta\", error),\n }),\n };\n }\n\n /**\n * Reconcile versions (a brand-new log initializes `current` at seq 0 before its first read)\n * and read the incarnation and slots, all in one transaction.\n */\n #prepare(): {\n readonly incarnation: TranscriptLogIncarnation;\n readonly slots: ReadonlyArray<TranscriptSlot>;\n } {\n return this.#transact((effects) => {\n reconcileTranscriptSlots(this.#storage, this.#options.definitions, this.#log.head(), effects);\n return {\n incarnation: readOrMintLogIncarnation(this.#storage.sql, this.#options.adoptIncarnation),\n slots: readTranscriptSlots(this.#storage.sql),\n };\n });\n }\n\n #transact<A>(body: (effects: TranscriptEffects) => A): A {\n const effects = emptyTranscriptEffects();\n const result = this.#storage.transactionSync(() => body(effects));\n publishTranscriptEffects(this.#options.observer, effects);\n return result;\n }\n}\n\nconst storeError = (operation: string, cause: unknown) =>\n new EDASessionStoreError({\n message: `${operation}: ${cause instanceof Error ? cause.message : String(cause)}`,\n });\n\n/**\n * Drives builder and cleanup slices for one session object (§7 \"The builder\").\n *\n * Builder state lives entirely in `_eda_transcript_meta`, so whichever entry point notices\n * pending work — the constructor, an alarm, a status request — runs or schedules the next slice;\n * nothing depends on in-memory state surviving eviction. Slices run through the storage service\n * only and never construct the model runtime.\n */\nexport class DurableObjectTranscriptBuilder {\n constructor(\n private readonly store: DurableObjectTranscriptStore,\n /** Durably request a builder wakeup as soon as possible. */\n private readonly wake: () => Promise<void>,\n ) {}\n\n /** At object start: raise standing alerts and schedule a slice if any work is pending. */\n async start(): Promise<void> {\n this.store.auditMissedSession();\n await this.kick();\n }\n\n /** Schedule a slice if any work is pending. */\n async kick(): Promise<void> {\n if (this.store.hasPendingWork()) await this.wake();\n }\n\n /**\n * Run up to `maxSlices` slices, letting other requests in between them, and schedule a\n * continuation if work remains. Returns whether work remains.\n */\n async run(maxSlices: number): Promise<boolean> {\n const more = await this.runSlices(maxSlices);\n if (more) await this.wake();\n return more;\n }\n\n /** Run up to `maxSlices` slices without scheduling a continuation; returns whether work remains. */\n async runSlices(maxSlices: number): Promise<boolean> {\n for (let slice = 0; slice < maxSlices; slice += 1) {\n if (slice > 0) await new Promise((resolve) => setTimeout(resolve, 0));\n if (!this.store.runSlice()) return false;\n }\n return true;\n }\n}\n","import * as Schema from \"effect/Schema\";\nimport { EDACommand, GrantRunCommand } from \"effect-durable-agent/types/commands\";\nimport {\n CommandId,\n CompactionId,\n RunRequestId,\n SequenceNumber,\n SessionId,\n SummaryId,\n} from \"effect-durable-agent/types/core\";\nimport { EDATraceMetadata } from \"effect-durable-agent/types/tracing\";\nimport { CommittedDurableEvent } from \"effect-durable-agent/services/session-store\";\nimport { CommittedCommandTerminalEvent } from \"effect-durable-agent/services/runtime\";\nimport { EDASessionSnapshot } from \"effect-durable-agent/services/session-query\";\nimport { RunGrantResult, RunRequestOutcome } from \"effect-durable-agent/domain/run-scheduling\";\nimport {\n TranscriptBodySource,\n TranscriptLogIncarnation,\n TranscriptWindow,\n TranscriptWindowLimits,\n TranscriptWindowSelector,\n} from \"effect-durable-agent/transcript\";\nimport { TranscriptStorageStatus } from \"./durable-object-transcript\";\nimport { EDARpcSubmittable } from \"./rpc-codec\";\n\n/** Names the session isolation boundary and carries caller trace metadata. */\nexport const SessionScopedInput = Schema.Struct({ sessionId: SessionId, trace: EDATraceMetadata });\n/** Ordinary command admission; controller validation excludes trusted scheduler grants. */\nexport const SessionCommandInput = Schema.Struct({\n ...SessionScopedInput.fields,\n command: EDACommand,\n});\n/** Trusted scheduler permission for a reserved run; ordinary command ingress cannot grant it. */\nexport const SessionGrantRunInput = Schema.Struct({\n ...SessionScopedInput.fields,\n command: GrantRunCommand,\n});\n/** Atomic ordered admission of ordinary commands and application events for one session. */\nexport const SessionBatchInput = Schema.Struct({\n ...SessionScopedInput.fields,\n items: Schema.Array(EDARpcSubmittable),\n});\n/** Waits for one command terminal after an optional durable replay position. */\nexport const SessionBlockInput = Schema.Struct({\n ...SessionScopedInput.fields,\n afterSeq: Schema.optionalKey(SequenceNumber),\n commandId: CommandId,\n});\n/** Reconciles a scheduler request against the named session’s authoritative state. */\nexport const SessionOutcomeInput = Schema.Struct({\n ...SessionScopedInput.fields,\n requestId: RunRequestId,\n});\n/** A runtime-free transcript window read; `limits` defaults to the transcript window defaults. */\nexport const SessionTranscriptWindowInput = Schema.Struct({\n ...SessionScopedInput.fields,\n selector: TranscriptWindowSelector,\n limits: Schema.optionalKey(TranscriptWindowLimits),\n});\n/**\n * A window; a cursor minted for another incarnation or version (the client takes `Latest`); or a\n * session the host has not enabled for transcripts.\n */\nexport const SessionTranscriptWindowResult = Schema.Union([\n Schema.TaggedStruct(\"Window\", { window: TranscriptWindow }),\n Schema.TaggedStruct(\"CursorMismatch\", { message: Schema.String }),\n /** The host has not enabled transcript maintenance for this session. */\n Schema.TaggedStruct(\"Disabled\", {}),\n]);\n/** A runtime-free read of the body a transcript `Ref` names, by its immutable log source. */\nexport const SessionTranscriptBodyInput = Schema.Struct({\n ...SessionScopedInput.fields,\n source: TranscriptBodySource,\n /**\n * The log incarnation the reference was minted in (the window's `incarnation`). Required: a\n * wiped log invalidates every reference, so a reference never resolves against another log.\n */\n incarnation: TranscriptLogIncarnation,\n});\n/** The body as the JSON the interpreter would have inlined, or why the log has none there. */\nexport const SessionTranscriptBodyResult = Schema.Union([\n Schema.TaggedStruct(\"Body\", { value: Schema.Json }),\n Schema.TaggedStruct(\"NotFound\", { message: Schema.String }),\n /** The reference names another log: the client takes a new window. */\n Schema.TaggedStruct(\"IncarnationMismatch\", { incarnation: TranscriptLogIncarnation }),\n /** The session is outside the host's transcript rollout. */\n Schema.TaggedStruct(\"Disabled\", {}),\n]);\n/** A runtime-free read of the summary a transcript `compaction` record references. */\nexport const SessionTranscriptSummaryInput = Schema.Struct({\n ...SessionScopedInput.fields,\n summaryId: SummaryId,\n /** The log incarnation the compaction record was read from (the window's `incarnation`). */\n incarnation: TranscriptLogIncarnation,\n});\n/** The user-visible part of one compaction summary: its text and the log span it summarizes. */\nexport const TranscriptCompactionSummary = Schema.Struct({\n compactionId: CompactionId,\n summaryId: SummaryId,\n text: Schema.String,\n sourceFromSeq: SequenceNumber,\n sourceToSeq: SequenceNumber,\n});\nexport type TranscriptCompactionSummary = typeof TranscriptCompactionSummary.Type;\n/** The summary, or `NotFound` when this log has no summary with that id. */\nexport const SessionTranscriptSummaryResult = Schema.Union([\n Schema.TaggedStruct(\"Summary\", { summary: TranscriptCompactionSummary }),\n Schema.TaggedStruct(\"NotFound\", { message: Schema.String }),\n Schema.TaggedStruct(\"IncarnationMismatch\", { incarnation: TranscriptLogIncarnation }),\n Schema.TaggedStruct(\"Disabled\", {}),\n]);\n/** Private session RPC contracts retain the deployed structured-clone shapes, including snapshot Maps. */\nexport const edaSessionRpc = {\n submit: { input: SessionCommandInput, output: CommittedDurableEvent },\n submitBatch: { input: SessionBatchInput, output: Schema.Array(CommittedDurableEvent) },\n submitAndBlock: { input: SessionCommandInput, output: CommittedCommandTerminalEvent },\n blockOnCommand: { input: SessionBlockInput, output: CommittedCommandTerminalEvent },\n grantRun: { input: SessionGrantRunInput, output: RunGrantResult },\n runRequestOutcome: { input: SessionOutcomeInput, output: RunRequestOutcome },\n snapshot: { input: SessionScopedInput, output: EDASessionSnapshot },\n destroySession: { input: SessionScopedInput, output: Schema.Void },\n transcriptStatus: { input: SessionScopedInput, output: TranscriptStorageStatus },\n readTranscriptWindow: {\n input: SessionTranscriptWindowInput,\n output: SessionTranscriptWindowResult,\n },\n readTranscriptBody: { input: SessionTranscriptBodyInput, output: SessionTranscriptBodyResult },\n readTranscriptSummary: {\n input: SessionTranscriptSummaryInput,\n output: SessionTranscriptSummaryResult,\n },\n};\n"],"mappings":";;;;;;;;;;;;;;;;;AAaA,MAAa,4BAA4B,UAAsD;CAC7F,MAAM,UACJ,MAAM,cAAc,8BAChB,OAAO,WAAW,eAAe,CAAC,CAAC,OAAO,kBAAkB,eAAe,CAAC,CAAC,KAAK,CAAC,IACnF,OAAO,WAAW,oBAAoB,CAAC,CAAC,KAAK;CACnD,OAAO,OAAO,kBAAkB,oBAAoB,CAAC,CAAC,OAAO;AAC/D;;AAGA,MAAa,oBAAoB,OAAO,MAAM,CAAC,YAAY,oBAAoB,CAAC;AAEhF,MAAa,uBAAuB,UAClC,OAAO,WAAW,UAAU,CAAC,CAAC,KAAK;AAErC,MAAa,4BACX,UAEA,MAAM,KAAK,SAAS,OAAO,WAAW,iBAAiB,CAAC,CAAC,IAAI,CAAC;AAEhE,MAAa,uBACX,UAEA,OAAO,kBAAkB,UAAU,CAAC,CAAC,KAAK,CAAC,CAAC,KAC1C,KAAK,MAAM;CAAE,WAAW,OAAO;CAAW,WAAW,OAAO;AAAQ,CAAC,CACvE;AAEF,MAAa,4BACX,UAEA,OAAO,QAAQ,QAAQ,SACrB,OAAO,kBAAkB,iBAAiB,CAAC,CAAC,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SessionRpc: {
7454
7454
  }>;
7455
7455
  }>;
7456
7456
  readonly reducerStates: Schema.$ReadonlyMap<Schema.String, Schema.Unknown>;
7457
- readonly messages: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
7458
- readonly createdAtMs: Schema.optionalKey<Schema.Int>;
7459
- readonly messageId: Schema.brand<Schema.String, "MessageId">;
7460
- readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
7461
- readonly cancellationReason: Schema.optionalKey<Schema.String>;
7462
- readonly cancelledByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
7463
- readonly cancelledSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
7464
- readonly consumedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
7465
- readonly consumedTurnId: Schema.optionalKey<Schema.brand<Schema.String, "TurnId">>;
7466
- readonly pausedByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
7467
- readonly pausedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
7468
- readonly promotedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
7469
- readonly _tag: Schema.Literal<"User">;
7470
- readonly commandId: Schema.brand<Schema.String, "CommandId">;
7471
- readonly content: Schema.toType<Schema.Union<readonly [Schema.decodeTo<Schema.NonEmptyArray<Schema.toType<Schema.Struct<{
7472
- readonly type: Schema.Literal<"text">;
7473
- readonly text: Schema.String;
7474
- readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
7475
- readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
7476
- }>>>, Schema.String, never, never>, Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
7477
- readonly type: Schema.Literal<"text">;
7478
- readonly text: Schema.String;
7479
- readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
7480
- readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
7481
- }>, Schema.Struct<{
7482
- readonly type: Schema.Literal<"file">;
7483
- readonly mediaType: Schema.String;
7484
- readonly fileName: Schema.optional<Schema.String>;
7485
- readonly data: Schema.Union<readonly [Schema.String, Schema.Uint8Array, Schema.URL]>;
7486
- readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
7487
- readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
7488
- }>]>>]>>;
7489
- readonly disposition: Schema.optionalKey<Schema.Literals<readonly ["queue", "steer"]>>;
7490
- readonly requestedDisposition: Schema.optionalKey<Schema.Literals<readonly ["queue", "steer"]>>;
7491
- }>, Schema.Struct<{
7492
- readonly createdAtMs: Schema.optionalKey<Schema.Int>;
7493
- readonly messageId: Schema.brand<Schema.String, "MessageId">;
7494
- readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
7495
- readonly _tag: Schema.Literal<"Assistant">;
7496
- readonly content: Schema.Struct<{
7497
- readonly text: Schema.String;
7498
- readonly reasoning: Schema.optionalKey<Schema.String>;
7499
- }>;
7500
- readonly imported: Schema.optionalKey<Schema.Literal<true>>;
7501
- readonly inferenceId: Schema.brand<Schema.String, "InferenceId">;
7502
- readonly promptParts: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.toType<Schema.Struct<{
7503
- readonly type: Schema.Literal<"text">;
7504
- readonly text: Schema.String;
7505
- readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
7506
- readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
7507
- }>>, Schema.toType<Schema.Struct<{
7508
- readonly type: Schema.Literal<"file">;
7509
- readonly mediaType: Schema.String;
7510
- readonly fileName: Schema.optional<Schema.String>;
7511
- readonly data: Schema.Union<readonly [Schema.String, Schema.Uint8Array, Schema.URL]>;
7512
- readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
7513
- readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
7514
- }>>, Schema.toType<Schema.Struct<{
7515
- readonly type: Schema.Literal<"reasoning">;
7516
- readonly text: Schema.String;
7517
- readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
7518
- readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
7519
- }>>, Schema.toType<Schema.Struct<{
7520
- readonly type: Schema.Literal<"tool-call">;
7521
- readonly id: Schema.String;
7522
- readonly name: Schema.String;
7523
- readonly params: Schema.Unknown;
7524
- readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
7525
- readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
7526
- readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
7527
- }>>, Schema.toType<Schema.Struct<{
7528
- readonly type: Schema.Literal<"tool-result">;
7529
- readonly id: Schema.String;
7530
- readonly name: Schema.String;
7531
- readonly isFailure: Schema.Boolean;
7532
- readonly result: Schema.Unknown;
7533
- readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
7534
- readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
7535
- readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
7536
- }>>, Schema.toType<Schema.Struct<{
7537
- readonly type: Schema.Literal<"tool-approval-request">;
7538
- readonly approvalId: Schema.String;
7539
- readonly toolCallId: Schema.String;
7540
- readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
7541
- readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
7542
- }>>]>>>;
7543
- readonly runId: Schema.brand<Schema.String, "RunId">;
7544
- readonly turnId: Schema.brand<Schema.String, "TurnId">;
7545
- }>, Schema.Struct<{
7546
- readonly createdAtMs: Schema.optionalKey<Schema.Int>;
7547
- readonly messageId: Schema.brand<Schema.String, "MessageId">;
7548
- readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
7549
- readonly _tag: Schema.Literal<"AssistantPartial">;
7550
- readonly content: Schema.Struct<{
7551
- readonly text: Schema.String;
7552
- readonly reasoning: Schema.optionalKey<Schema.String>;
7553
- }>;
7554
- readonly inferenceId: Schema.brand<Schema.String, "InferenceId">;
7555
- readonly promptParts: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.toType<Schema.Struct<{
7556
- readonly type: Schema.Literal<"text">;
7557
- readonly text: Schema.String;
7558
- readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
7559
- readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
7560
- }>>, Schema.toType<Schema.Struct<{
7561
- readonly type: Schema.Literal<"file">;
7562
- readonly mediaType: Schema.String;
7563
- readonly fileName: Schema.optional<Schema.String>;
7564
- readonly data: Schema.Union<readonly [Schema.String, Schema.Uint8Array, Schema.URL]>;
7565
- readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
7566
- readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
7567
- }>>, Schema.toType<Schema.Struct<{
7568
- readonly type: Schema.Literal<"reasoning">;
7569
- readonly text: Schema.String;
7570
- readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
7571
- readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
7572
- }>>, Schema.toType<Schema.Struct<{
7573
- readonly type: Schema.Literal<"tool-call">;
7574
- readonly id: Schema.String;
7575
- readonly name: Schema.String;
7576
- readonly params: Schema.Unknown;
7577
- readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
7578
- readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
7579
- readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
7580
- }>>, Schema.toType<Schema.Struct<{
7581
- readonly type: Schema.Literal<"tool-result">;
7582
- readonly id: Schema.String;
7583
- readonly name: Schema.String;
7584
- readonly isFailure: Schema.Boolean;
7585
- readonly result: Schema.Unknown;
7586
- readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
7587
- readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
7588
- readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
7589
- }>>, Schema.toType<Schema.Struct<{
7590
- readonly type: Schema.Literal<"tool-approval-request">;
7591
- readonly approvalId: Schema.String;
7592
- readonly toolCallId: Schema.String;
7593
- readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
7594
- readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
7595
- }>>]>>>;
7596
- readonly reason: Schema.String;
7597
- readonly runId: Schema.brand<Schema.String, "RunId">;
7598
- readonly turnId: Schema.brand<Schema.String, "TurnId">;
7599
- }>, Schema.Struct<{
7600
- readonly createdAtMs: Schema.optionalKey<Schema.Int>;
7601
- readonly messageId: Schema.brand<Schema.String, "MessageId">;
7602
- readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
7603
- readonly cancellationReason: Schema.optionalKey<Schema.String>;
7604
- readonly cancelledByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
7605
- readonly cancelledSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
7606
- readonly consumedTurnId: Schema.optionalKey<Schema.brand<Schema.String, "TurnId">>;
7607
- readonly pausedByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
7608
- readonly pausedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
7609
- readonly promotedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
7610
- readonly _tag: Schema.Literal<"Steering">;
7611
- readonly commandId: Schema.brand<Schema.String, "CommandId">;
7612
- readonly content: Schema.toType<Schema.Union<readonly [Schema.decodeTo<Schema.NonEmptyArray<Schema.toType<Schema.Struct<{
7613
- readonly type: Schema.Literal<"text">;
7614
- readonly text: Schema.String;
7615
- readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
7616
- readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
7617
- }>>>, Schema.String, never, never>, Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
7618
- readonly type: Schema.Literal<"text">;
7619
- readonly text: Schema.String;
7620
- readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
7621
- readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
7622
- }>, Schema.Struct<{
7623
- readonly type: Schema.Literal<"file">;
7624
- readonly mediaType: Schema.String;
7625
- readonly fileName: Schema.optional<Schema.String>;
7626
- readonly data: Schema.Union<readonly [Schema.String, Schema.Uint8Array, Schema.URL]>;
7627
- readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
7628
- readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
7629
- }>]>>]>>;
7630
- readonly runId: Schema.brand<Schema.String, "RunId">;
7631
- readonly consumedSeq: Schema.brand<Schema.Int, "SequenceNumber">;
7632
- }>]>>;
7633
- }>;
7634
- };
7635
- messages: {
7636
- input: Schema.Struct<{
7637
- readonly sessionId: Schema.brand<Schema.String, "SessionId">;
7638
- readonly trace: Schema.Struct<{
7639
- readonly parent: Schema.NullOr<Schema.Struct<{
7640
- readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
7641
- readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
7642
- readonly sampled: Schema.Boolean;
7643
- readonly tracestate: Schema.NullOr<Schema.String>;
7644
- }>>;
7645
- readonly links: Schema.$Array<Schema.Struct<{
7646
- readonly context: Schema.Struct<{
7647
- readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
7648
- readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
7649
- readonly sampled: Schema.Boolean;
7650
- readonly tracestate: Schema.NullOr<Schema.String>;
7651
- }>;
7652
- readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
7653
- }>>;
7654
- readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
7655
- }>;
7656
7457
  }>;
7657
- output: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
7658
- readonly createdAtMs: Schema.optionalKey<Schema.Int>;
7659
- readonly messageId: Schema.brand<Schema.String, "MessageId">;
7660
- readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
7661
- readonly cancellationReason: Schema.optionalKey<Schema.String>;
7662
- readonly cancelledByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
7663
- readonly cancelledSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
7664
- readonly consumedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
7665
- readonly consumedTurnId: Schema.optionalKey<Schema.brand<Schema.String, "TurnId">>;
7666
- readonly pausedByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
7667
- readonly pausedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
7668
- readonly promotedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
7669
- readonly _tag: Schema.Literal<"User">;
7670
- readonly commandId: Schema.brand<Schema.String, "CommandId">;
7671
- readonly content: Schema.toType<Schema.Union<readonly [Schema.decodeTo<Schema.NonEmptyArray<Schema.toType<Schema.Struct<{
7672
- readonly type: Schema.Literal<"text">;
7673
- readonly text: Schema.String;
7674
- readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
7675
- readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
7676
- }>>>, Schema.String, never, never>, Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
7677
- readonly type: Schema.Literal<"text">;
7678
- readonly text: Schema.String;
7679
- readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
7680
- readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
7681
- }>, Schema.Struct<{
7682
- readonly type: Schema.Literal<"file">;
7683
- readonly mediaType: Schema.String;
7684
- readonly fileName: Schema.optional<Schema.String>;
7685
- readonly data: Schema.Union<readonly [Schema.String, Schema.Uint8Array, Schema.URL]>;
7686
- readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
7687
- readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
7688
- }>]>>]>>;
7689
- readonly disposition: Schema.optionalKey<Schema.Literals<readonly ["queue", "steer"]>>;
7690
- readonly requestedDisposition: Schema.optionalKey<Schema.Literals<readonly ["queue", "steer"]>>;
7691
- }>, Schema.Struct<{
7692
- readonly createdAtMs: Schema.optionalKey<Schema.Int>;
7693
- readonly messageId: Schema.brand<Schema.String, "MessageId">;
7694
- readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
7695
- readonly _tag: Schema.Literal<"Assistant">;
7696
- readonly content: Schema.Struct<{
7697
- readonly text: Schema.String;
7698
- readonly reasoning: Schema.optionalKey<Schema.String>;
7699
- }>;
7700
- readonly imported: Schema.optionalKey<Schema.Literal<true>>;
7701
- readonly inferenceId: Schema.brand<Schema.String, "InferenceId">;
7702
- readonly promptParts: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.toType<Schema.Struct<{
7703
- readonly type: Schema.Literal<"text">;
7704
- readonly text: Schema.String;
7705
- readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
7706
- readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
7707
- }>>, Schema.toType<Schema.Struct<{
7708
- readonly type: Schema.Literal<"file">;
7709
- readonly mediaType: Schema.String;
7710
- readonly fileName: Schema.optional<Schema.String>;
7711
- readonly data: Schema.Union<readonly [Schema.String, Schema.Uint8Array, Schema.URL]>;
7712
- readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
7713
- readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
7714
- }>>, Schema.toType<Schema.Struct<{
7715
- readonly type: Schema.Literal<"reasoning">;
7716
- readonly text: Schema.String;
7717
- readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
7718
- readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
7719
- }>>, Schema.toType<Schema.Struct<{
7720
- readonly type: Schema.Literal<"tool-call">;
7721
- readonly id: Schema.String;
7722
- readonly name: Schema.String;
7723
- readonly params: Schema.Unknown;
7724
- readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
7725
- readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
7726
- readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
7727
- }>>, Schema.toType<Schema.Struct<{
7728
- readonly type: Schema.Literal<"tool-result">;
7729
- readonly id: Schema.String;
7730
- readonly name: Schema.String;
7731
- readonly isFailure: Schema.Boolean;
7732
- readonly result: Schema.Unknown;
7733
- readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
7734
- readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
7735
- readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
7736
- }>>, Schema.toType<Schema.Struct<{
7737
- readonly type: Schema.Literal<"tool-approval-request">;
7738
- readonly approvalId: Schema.String;
7739
- readonly toolCallId: Schema.String;
7740
- readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
7741
- readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
7742
- }>>]>>>;
7743
- readonly runId: Schema.brand<Schema.String, "RunId">;
7744
- readonly turnId: Schema.brand<Schema.String, "TurnId">;
7745
- }>, Schema.Struct<{
7746
- readonly createdAtMs: Schema.optionalKey<Schema.Int>;
7747
- readonly messageId: Schema.brand<Schema.String, "MessageId">;
7748
- readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
7749
- readonly _tag: Schema.Literal<"AssistantPartial">;
7750
- readonly content: Schema.Struct<{
7751
- readonly text: Schema.String;
7752
- readonly reasoning: Schema.optionalKey<Schema.String>;
7753
- }>;
7754
- readonly inferenceId: Schema.brand<Schema.String, "InferenceId">;
7755
- readonly promptParts: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.toType<Schema.Struct<{
7756
- readonly type: Schema.Literal<"text">;
7757
- readonly text: Schema.String;
7758
- readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
7759
- readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
7760
- }>>, Schema.toType<Schema.Struct<{
7761
- readonly type: Schema.Literal<"file">;
7762
- readonly mediaType: Schema.String;
7763
- readonly fileName: Schema.optional<Schema.String>;
7764
- readonly data: Schema.Union<readonly [Schema.String, Schema.Uint8Array, Schema.URL]>;
7765
- readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
7766
- readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
7767
- }>>, Schema.toType<Schema.Struct<{
7768
- readonly type: Schema.Literal<"reasoning">;
7769
- readonly text: Schema.String;
7770
- readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
7771
- readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
7772
- }>>, Schema.toType<Schema.Struct<{
7773
- readonly type: Schema.Literal<"tool-call">;
7774
- readonly id: Schema.String;
7775
- readonly name: Schema.String;
7776
- readonly params: Schema.Unknown;
7777
- readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
7778
- readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
7779
- readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
7780
- }>>, Schema.toType<Schema.Struct<{
7781
- readonly type: Schema.Literal<"tool-result">;
7782
- readonly id: Schema.String;
7783
- readonly name: Schema.String;
7784
- readonly isFailure: Schema.Boolean;
7785
- readonly result: Schema.Unknown;
7786
- readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
7787
- readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
7788
- readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
7789
- }>>, Schema.toType<Schema.Struct<{
7790
- readonly type: Schema.Literal<"tool-approval-request">;
7791
- readonly approvalId: Schema.String;
7792
- readonly toolCallId: Schema.String;
7793
- readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
7794
- readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
7795
- }>>]>>>;
7796
- readonly reason: Schema.String;
7797
- readonly runId: Schema.brand<Schema.String, "RunId">;
7798
- readonly turnId: Schema.brand<Schema.String, "TurnId">;
7799
- }>, Schema.Struct<{
7800
- readonly createdAtMs: Schema.optionalKey<Schema.Int>;
7801
- readonly messageId: Schema.brand<Schema.String, "MessageId">;
7802
- readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
7803
- readonly cancellationReason: Schema.optionalKey<Schema.String>;
7804
- readonly cancelledByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
7805
- readonly cancelledSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
7806
- readonly consumedTurnId: Schema.optionalKey<Schema.brand<Schema.String, "TurnId">>;
7807
- readonly pausedByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
7808
- readonly pausedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
7809
- readonly promotedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
7810
- readonly _tag: Schema.Literal<"Steering">;
7811
- readonly commandId: Schema.brand<Schema.String, "CommandId">;
7812
- readonly content: Schema.toType<Schema.Union<readonly [Schema.decodeTo<Schema.NonEmptyArray<Schema.toType<Schema.Struct<{
7813
- readonly type: Schema.Literal<"text">;
7814
- readonly text: Schema.String;
7815
- readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
7816
- readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
7817
- }>>>, Schema.String, never, never>, Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
7818
- readonly type: Schema.Literal<"text">;
7819
- readonly text: Schema.String;
7820
- readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
7821
- readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
7822
- }>, Schema.Struct<{
7823
- readonly type: Schema.Literal<"file">;
7824
- readonly mediaType: Schema.String;
7825
- readonly fileName: Schema.optional<Schema.String>;
7826
- readonly data: Schema.Union<readonly [Schema.String, Schema.Uint8Array, Schema.URL]>;
7827
- readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
7828
- readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
7829
- }>]>>]>>;
7830
- readonly runId: Schema.brand<Schema.String, "RunId">;
7831
- readonly consumedSeq: Schema.brand<Schema.Int, "SequenceNumber">;
7832
- }>]>>;
7833
7458
  };
7834
7459
  destroySession: {
7835
7460
  input: Schema.Struct<{
@@ -8830,4 +8455,4 @@ declare const edaSessionRpc: {
8830
8455
  };
8831
8456
  //#endregion
8832
8457
  export { SessionOutcomeInput as a, SessionTranscriptBodyResult as c, SessionTranscriptWindowInput as d, SessionTranscriptWindowResult as f, SessionGrantRunInput as i, SessionTranscriptSummaryInput as l, edaSessionRpc as m, SessionBlockInput as n, SessionScopedInput as o, TranscriptCompactionSummary as p, SessionCommandInput as r, SessionTranscriptBodyInput as s, SessionBatchInput as t, SessionTranscriptSummaryResult as u };
8833
- //# sourceMappingURL=rpc-spec-CwehaLCd.d.ts.map
8458
+ //# sourceMappingURL=rpc-spec-DC1H-YCH.d.ts.map
package/dist/rpc.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { a as SessionOutcomeInput, c as SessionTranscriptBodyResult, d as SessionTranscriptWindowInput, f as SessionTranscriptWindowResult, i as SessionGrantRunInput, l as SessionTranscriptSummaryInput, m as edaSessionRpc, n as SessionBlockInput, o as SessionScopedInput, p as TranscriptCompactionSummary, r as SessionCommandInput, s as SessionTranscriptBodyInput, t as SessionBatchInput, u as SessionTranscriptSummaryResult } from "./rpc-spec-CwehaLCd.js";
1
+ import { a as SessionOutcomeInput, c as SessionTranscriptBodyResult, d as SessionTranscriptWindowInput, f as SessionTranscriptWindowResult, i as SessionGrantRunInput, l as SessionTranscriptSummaryInput, m as edaSessionRpc, n as SessionBlockInput, o as SessionScopedInput, p as TranscriptCompactionSummary, r as SessionCommandInput, s as SessionTranscriptBodyInput, t as SessionBatchInput, u as SessionTranscriptSummaryResult } from "./rpc-spec-DC1H-YCH.js";
2
2
  import { a as encodeEdaRpcDurableEvent, i as encodeEdaRpcCommand, n as decodeEdaRpcCommand, o as encodeEdaRpcSubmittables, r as decodeEdaRpcSubmittables, t as EDARpcSubmittable } from "./rpc-codec-B2aLiNqt.js";
3
3
  export { EDARpcSubmittable, SessionBatchInput, SessionBlockInput, SessionCommandInput, SessionGrantRunInput, SessionOutcomeInput, SessionScopedInput, SessionTranscriptBodyInput, SessionTranscriptBodyResult, SessionTranscriptSummaryInput, SessionTranscriptSummaryResult, SessionTranscriptWindowInput, SessionTranscriptWindowResult, TranscriptCompactionSummary, decodeEdaRpcCommand, decodeEdaRpcSubmittables, edaSessionRpc, encodeEdaRpcCommand, encodeEdaRpcDurableEvent, encodeEdaRpcSubmittables };
package/dist/rpc.js CHANGED
@@ -1,2 +1,2 @@
1
- import { C as encodeEdaRpcSubmittables, S as encodeEdaRpcDurableEvent, a as SessionOutcomeInput, b as decodeEdaRpcSubmittables, c as SessionTranscriptBodyResult, d as SessionTranscriptWindowInput, f as SessionTranscriptWindowResult, i as SessionGrantRunInput, l as SessionTranscriptSummaryInput, m as edaSessionRpc, n as SessionBlockInput, o as SessionScopedInput, p as TranscriptCompactionSummary, r as SessionCommandInput, s as SessionTranscriptBodyInput, t as SessionBatchInput, u as SessionTranscriptSummaryResult, v as EDARpcSubmittable, x as encodeEdaRpcCommand, y as decodeEdaRpcCommand } from "./rpc-spec-BupIkBhI.js";
1
+ import { C as encodeEdaRpcSubmittables, S as encodeEdaRpcDurableEvent, a as SessionOutcomeInput, b as decodeEdaRpcSubmittables, c as SessionTranscriptBodyResult, d as SessionTranscriptWindowInput, f as SessionTranscriptWindowResult, i as SessionGrantRunInput, l as SessionTranscriptSummaryInput, m as edaSessionRpc, n as SessionBlockInput, o as SessionScopedInput, p as TranscriptCompactionSummary, r as SessionCommandInput, s as SessionTranscriptBodyInput, t as SessionBatchInput, u as SessionTranscriptSummaryResult, v as EDARpcSubmittable, x as encodeEdaRpcCommand, y as decodeEdaRpcCommand } from "./rpc-spec-BRNFIsY1.js";
2
2
  export { EDARpcSubmittable, SessionBatchInput, SessionBlockInput, SessionCommandInput, SessionGrantRunInput, SessionOutcomeInput, SessionScopedInput, SessionTranscriptBodyInput, SessionTranscriptBodyResult, SessionTranscriptSummaryInput, SessionTranscriptSummaryResult, SessionTranscriptWindowInput, SessionTranscriptWindowResult, TranscriptCompactionSummary, decodeEdaRpcCommand, decodeEdaRpcSubmittables, edaSessionRpc, encodeEdaRpcCommand, encodeEdaRpcDurableEvent, encodeEdaRpcSubmittables };
@@ -1,4 +1,4 @@
1
- import { t as DurableObjectSessionStore } from "./durable-object-store-Ca0pvpa_.js";
1
+ import { t as DurableObjectSessionStore } from "./durable-object-store-yY_KaFtw.js";
2
2
  import "effect-durable-agent/services/prompt-projector";
3
3
  import * as Layer from "effect/Layer";
4
4
  import * as Effect from "effect/Effect";
@@ -1357,9 +1357,6 @@ var EDASessionController = class {
1357
1357
  snapshot(input) {
1358
1358
  return this.query(input, (eda) => eda.snapshot(), "agent.session.snapshot");
1359
1359
  }
1360
- messages(input) {
1361
- return this.query(input, (eda) => eda.messages(), "agent.messages.list");
1362
- }
1363
1360
  acceptEventWebSocket(input) {
1364
1361
  return this.acceptEventWebSocketUnhosted(input);
1365
1362
  }
@@ -1457,4 +1454,4 @@ const hostSpanOptions = (trace, attributes) => ({
1457
1454
  //#endregion
1458
1455
  export { makeEDADurableObjectRuntimeLayer as i, defaultActiveContentCadenceMs as n, EDAWebSocketProjectionId as r, EDASessionController as t };
1459
1456
 
1460
- //# sourceMappingURL=session-controller-KWMuKhlX.js.map
1457
+ //# sourceMappingURL=session-controller-CK5jY_Xp.js.map