@relayfx/sdk 0.7.3 → 0.7.5

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.
package/dist/index.js CHANGED
@@ -14,11 +14,11 @@ import {
14
14
  exports_tool_runtime,
15
15
  exports_workflow_definition_host,
16
16
  makeDatabaseIdentity
17
- } from "./index-5y7758mg.js";
17
+ } from "./index-6rpm95kc.js";
18
18
  import {
19
19
  exports_context_overflow,
20
20
  exports_model_registry
21
- } from "./index-qa93yf6j.js";
21
+ } from "./index-etc2cnk2.js";
22
22
  import {
23
23
  ClientError,
24
24
  EventLogCursorNotFound,
@@ -47,7 +47,7 @@ import {
47
47
  exports_wait_schema,
48
48
  exports_workflow_schema,
49
49
  followExecutionFrom
50
- } from "./index-syx9q5v3.js";
50
+ } from "./index-nb078xsy.js";
51
51
  import {
52
52
  __export
53
53
  } from "./index-nb39b5ae.js";
@@ -179,11 +179,11 @@ import { OpenAiLanguageModel as OpenAiLanguageModel3 } from "@effect/ai-openai";
179
179
  import { OpenAiLanguageModel as OpenAiCompatibleLanguageModel } from "@effect/ai-openai-compat";
180
180
  import { OpenRouterLanguageModel as OpenRouterLanguageModel2 } from "@effect/ai-openrouter";
181
181
 
182
- // ../../node_modules/.bun/@batonfx+providers@0.11.3+74997d64abff4185/node_modules/@batonfx/providers/dist/anthropic.js
182
+ // ../../node_modules/.bun/@batonfx+providers@0.11.4+74997d64abff4185/node_modules/@batonfx/providers/dist/anthropic.js
183
183
  import { AnthropicClient, AnthropicLanguageModel } from "@effect/ai-anthropic";
184
184
  import { Config, Layer as Layer3, Redacted } from "effect";
185
185
 
186
- // ../../node_modules/.bun/@batonfx+providers@0.11.3+74997d64abff4185/node_modules/@batonfx/providers/dist/image-source.js
186
+ // ../../node_modules/.bun/@batonfx+providers@0.11.4+74997d64abff4185/node_modules/@batonfx/providers/dist/image-source.js
187
187
  import { Effect as Effect3, Encoding, Layer as Layer2, Result, Stream } from "effect";
188
188
  import { AiError, LanguageModel, Prompt } from "effect/unstable/ai";
189
189
  var imageMediaTypes = new Set(["image/gif", "image/jpeg", "image/png", "image/webp"]);
@@ -252,7 +252,7 @@ var conformImageSourceModel = (model) => {
252
252
  };
253
253
  var layerImageSources = (layer2) => Layer2.effect(LanguageModel.LanguageModel, Effect3.map(LanguageModel.LanguageModel, conformImageSourceModel)).pipe(Layer2.provide(layer2));
254
254
 
255
- // ../../node_modules/.bun/@batonfx+providers@0.11.3+74997d64abff4185/node_modules/@batonfx/providers/dist/anthropic.js
255
+ // ../../node_modules/.bun/@batonfx+providers@0.11.4+74997d64abff4185/node_modules/@batonfx/providers/dist/anthropic.js
256
256
  var classifyFailure = exports_context_overflow.classify;
257
257
  var layer2 = (input) => exports_model_registry.layer([
258
258
  exports_model_registry.registration({
@@ -269,13 +269,13 @@ var layer2 = (input) => exports_model_registry.layer([
269
269
  ]).pipe(Layer3.provide(AnthropicClient.layerConfig({ ...input.clientConfig, apiKey: input.apiKey })));
270
270
  var layerConfig = AnthropicClient.layerConfig;
271
271
 
272
- // ../../node_modules/.bun/@batonfx+providers@0.11.3+74997d64abff4185/node_modules/@batonfx/providers/dist/deterministic.js
272
+ // ../../node_modules/.bun/@batonfx+providers@0.11.4+74997d64abff4185/node_modules/@batonfx/providers/dist/deterministic.js
273
273
  import { OpenAiClient as OpenAiClient2 } from "@effect/ai-openai";
274
274
  import { Config as Config3, Effect as Effect5, Layer as Layer5, Option as Option2, Stream as Stream3 } from "effect";
275
275
  import { LanguageModel as LanguageModel2, Response as Response2 } from "effect/unstable/ai";
276
276
  import { HttpClient as HttpClient2 } from "effect/unstable/http";
277
277
 
278
- // ../../node_modules/.bun/@batonfx+providers@0.11.3+74997d64abff4185/node_modules/@batonfx/providers/dist/openai.js
278
+ // ../../node_modules/.bun/@batonfx+providers@0.11.4+74997d64abff4185/node_modules/@batonfx/providers/dist/openai.js
279
279
  import { OpenAiClient, OpenAiLanguageModel } from "@effect/ai-openai";
280
280
  import { Config as Config2, Effect as Effect4, Function, Layer as Layer4, Option, Redacted as Redacted2, Schema, Stream as Stream2 } from "effect";
281
281
  import { FetchHttpClient, Headers, HttpClient, HttpClientError, HttpClientRequest, HttpClientResponse } from "effect/unstable/http";
@@ -445,7 +445,7 @@ var registrationAccount = (input) => exports_model_registry.registration({
445
445
  });
446
446
  var layerAccount = (input) => exports_model_registry.layer([registrationAccount(input)]);
447
447
 
448
- // ../../node_modules/.bun/@batonfx+providers@0.11.3+74997d64abff4185/node_modules/@batonfx/providers/dist/deterministic.js
448
+ // ../../node_modules/.bun/@batonfx+providers@0.11.4+74997d64abff4185/node_modules/@batonfx/providers/dist/deterministic.js
449
449
  var deterministicModelLayer = Layer5.effect(LanguageModel2.LanguageModel, LanguageModel2.make({
450
450
  generateText: () => Effect5.succeed([{ type: "text", text: "deterministic response" }]),
451
451
  streamText: () => Stream3.make(Response2.makePart("text-delta", { id: "text", delta: "deterministic response" }))
@@ -482,7 +482,7 @@ var layerOpenAi = (options) => Layer5.unwrap(Effect5.gen(function* () {
482
482
  ]);
483
483
  }));
484
484
 
485
- // ../../node_modules/.bun/@batonfx+providers@0.11.3+74997d64abff4185/node_modules/@batonfx/providers/dist/openai-compat.js
485
+ // ../../node_modules/.bun/@batonfx+providers@0.11.4+74997d64abff4185/node_modules/@batonfx/providers/dist/openai-compat.js
486
486
  import { OpenAiClient as OpenAiClient3, OpenAiLanguageModel as OpenAiLanguageModel2 } from "@effect/ai-openai-compat";
487
487
  import { Config as Config4, Layer as Layer6, Redacted as Redacted3 } from "effect";
488
488
  var layer5 = (input) => exports_model_registry.layer([
@@ -504,7 +504,7 @@ var layer5 = (input) => exports_model_registry.layer([
504
504
  })));
505
505
  var layerConfig3 = OpenAiClient3.layerConfig;
506
506
 
507
- // ../../node_modules/.bun/@batonfx+providers@0.11.3+74997d64abff4185/node_modules/@batonfx/providers/dist/openrouter.js
507
+ // ../../node_modules/.bun/@batonfx+providers@0.11.4+74997d64abff4185/node_modules/@batonfx/providers/dist/openrouter.js
508
508
  import { OpenRouterClient, OpenRouterLanguageModel } from "@effect/ai-openrouter";
509
509
  import { Config as Config5, Layer as Layer7, Redacted as Redacted4 } from "effect";
510
510
  var classifyFailure3 = exports_context_overflow.classify;
package/dist/mysql.js CHANGED
@@ -2,14 +2,14 @@
2
2
  import {
3
3
  database,
4
4
  normalizeMigrationCause
5
- } from "./index-pa991hq0.js";
5
+ } from "./index-m8bs31hg.js";
6
6
  import {
7
7
  MigratorError,
8
8
  RuntimeMigrationError,
9
9
  SqlFailure
10
- } from "./index-5y7758mg.js";
11
- import"./index-qa93yf6j.js";
12
- import"./index-syx9q5v3.js";
10
+ } from "./index-6rpm95kc.js";
11
+ import"./index-etc2cnk2.js";
12
+ import"./index-nb078xsy.js";
13
13
  import"./index-nb39b5ae.js";
14
14
 
15
15
  // src/mysql.ts
package/dist/postgres.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  database,
4
4
  normalizeMigrationCause
5
- } from "./index-pa991hq0.js";
5
+ } from "./index-m8bs31hg.js";
6
6
  import {
7
7
  Dialect,
8
8
  RuntimeMigrationError,
@@ -14,11 +14,11 @@ import {
14
14
  fromDbTimestamp,
15
15
  fromNullableDbTimestamp,
16
16
  timestampParam
17
- } from "./index-5y7758mg.js";
18
- import"./index-qa93yf6j.js";
17
+ } from "./index-6rpm95kc.js";
18
+ import"./index-etc2cnk2.js";
19
19
  import {
20
20
  exports_ids_schema
21
- } from "./index-syx9q5v3.js";
21
+ } from "./index-nb078xsy.js";
22
22
  import {
23
23
  __export
24
24
  } from "./index-nb39b5ae.js";
package/dist/sqlite.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  database,
4
4
  normalizeMigrationCause
5
- } from "./index-pa991hq0.js";
5
+ } from "./index-m8bs31hg.js";
6
6
  import {
7
7
  DatabaseAlreadyOwned,
8
8
  RuntimeConfigurationError,
@@ -12,9 +12,9 @@ import {
12
12
  make,
13
13
  makeDatabaseIdentity,
14
14
  runtimeLayer
15
- } from "./index-5y7758mg.js";
16
- import"./index-qa93yf6j.js";
17
- import"./index-syx9q5v3.js";
15
+ } from "./index-6rpm95kc.js";
16
+ import"./index-etc2cnk2.js";
17
+ import"./index-nb078xsy.js";
18
18
  import"./index-nb39b5ae.js";
19
19
 
20
20
  // src/sqlite-runtime.ts
@@ -10,6 +10,7 @@ export interface ParentDefinitionPin {
10
10
  readonly agentRevision: Agent.DefinitionRevision;
11
11
  readonly agentSnapshot: Agent.Definition;
12
12
  readonly agentToolInputSchemaDigests?: Agent.ToolInputSchemaDigests;
13
+ readonly origin?: Execution.ExecutionOrigin;
13
14
  }
14
15
  declare const internalSpawnChildRunInput: (input: SpawnChildRunInput, pin: ParentDefinitionPin, createdAt: number) => Execution.SpawnChildRunInput;
15
16
  export declare const createChildJoinWait: (waits: WaitServiceInterface, eventLog: EventLogInterface, input: Execution.SpawnChildRunInput, accepted: Execution.ChildRunAccepted, createdAt: number) => Effect.Effect<string & import("effect/Brand").Brand<"Relay.WaitId">, ClientError, never>;
@@ -26,6 +27,16 @@ export declare const parentDefinitionPin: (executionRepository: ExecutionReposit
26
27
  agentRevision: number;
27
28
  agentSnapshot: Agent.Definition;
28
29
  agentToolInputSchemaDigests?: Agent.ToolInputSchemaDigests;
30
+ origin?: {
31
+ readonly owner_kind: "service" | "system" | "user" | "workflow";
32
+ readonly owner: string;
33
+ readonly purpose: string;
34
+ readonly build?: {
35
+ readonly name: string;
36
+ readonly version?: string;
37
+ readonly commit?: string;
38
+ };
39
+ };
29
40
  }, ClientError, never>;
30
41
  declare const childStartInput: (input: Execution.SpawnChildRunInput, accepted: Execution.ChildRunAccepted, pin: ParentDefinitionPin, definition: Agent.Definition, createdAt: number, parentWaitId: Ids.WaitId | undefined) => StartExecutionInput;
31
42
  export declare const childRunInternals: {
@@ -31,7 +31,7 @@ export declare const followExecution: (input: FollowExecutionInput) => Stream.St
31
31
  readonly child_execution_id: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Relay.ChildExecutionId"> & {
32
32
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ChildExecutionId">;
33
33
  }>;
34
- readonly type: import("effect/Schema").Literals<readonly ["execution.accepted", "execution.started", "execution.completed", "execution.failed", "execution.cancelled", "model.input.prepared", "model.output.delta", "model.reasoning.delta", "model.toolcall.delta", "model.output.completed", "model.usage.reported", "agent.compaction.started", "agent.compaction.committed", "budget.exceeded", "tool.call.requested", "tool.result.received", "tool.approval.requested", "tool.approval.resolved", "permission.ask.requested", "permission.ask.resolved", "steering.delivered", "state.updated", "state.deleted", "inbox.enqueued", "inbox.drained", "resident.created", "resident.destroyed", "envelope.accepted", "envelope.routed", "envelope.ready", "delivery.attempt", "wait.created", "wait.woken", "wait.timed_out", "wait.cancelled", "child_run.spawned", "child_run.event", "child_fan_out.created", "child_fan_out.member.admitted", "child_fan_out.member.terminal", "child_fan_out.terminal", "workspace.lease.planned", "workspace.lease.acquired", "workspace.suspended", "workspace.resumed", "workspace.snapshot.created", "workspace.lease.released", "workspace.lease.failed"]>;
34
+ readonly type: import("effect/Schema").Literals<readonly ["execution.accepted", "execution.started", "execution.completed", "execution.failed", "execution.cancelled", "model.input.prepared", "model.output.delta", "model.reasoning.delta", "model.toolcall.delta", "model.output.completed", "model.usage.reported", "model.call.started", "model.attempt.started", "model.attempt.first_output", "model.attempt.completed", "model.attempt.failed", "model.retry.scheduled", "model.call.completed", "model.call.failed", "agent.compaction.started", "agent.compaction.completed", "agent.compaction.failed", "agent.compaction.committed", "budget.exceeded", "tool.call.requested", "tool.result.received", "tool.approval.requested", "tool.approval.resolved", "permission.ask.requested", "permission.ask.resolved", "steering.delivered", "state.updated", "state.deleted", "inbox.enqueued", "inbox.drained", "resident.created", "resident.destroyed", "envelope.accepted", "envelope.routed", "envelope.ready", "delivery.attempt", "wait.created", "wait.woken", "wait.timed_out", "wait.cancelled", "child_run.spawned", "child_run.event", "child_fan_out.created", "child_fan_out.member.admitted", "child_fan_out.member.terminal", "child_fan_out.terminal", "workspace.lease.planned", "workspace.lease.acquired", "workspace.suspended", "workspace.resumed", "workspace.snapshot.created", "workspace.lease.released", "workspace.lease.failed"]>;
35
35
  readonly sequence: import("effect/Schema").Int;
36
36
  readonly cursor: import("effect/Schema").String;
37
37
  readonly content: import("effect/Schema").optionalKey<import("effect/Schema").$Array<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
@@ -151,7 +151,7 @@ export declare const streamSession: (input: StreamSessionInput) => Stream.Stream
151
151
  readonly child_execution_id: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Relay.ChildExecutionId"> & {
152
152
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ChildExecutionId">;
153
153
  }>;
154
- readonly type: import("effect/Schema").Literals<readonly ["execution.accepted", "execution.started", "execution.completed", "execution.failed", "execution.cancelled", "model.input.prepared", "model.output.delta", "model.reasoning.delta", "model.toolcall.delta", "model.output.completed", "model.usage.reported", "agent.compaction.started", "agent.compaction.committed", "budget.exceeded", "tool.call.requested", "tool.result.received", "tool.approval.requested", "tool.approval.resolved", "permission.ask.requested", "permission.ask.resolved", "steering.delivered", "state.updated", "state.deleted", "inbox.enqueued", "inbox.drained", "resident.created", "resident.destroyed", "envelope.accepted", "envelope.routed", "envelope.ready", "delivery.attempt", "wait.created", "wait.woken", "wait.timed_out", "wait.cancelled", "child_run.spawned", "child_run.event", "child_fan_out.created", "child_fan_out.member.admitted", "child_fan_out.member.terminal", "child_fan_out.terminal", "workspace.lease.planned", "workspace.lease.acquired", "workspace.suspended", "workspace.resumed", "workspace.snapshot.created", "workspace.lease.released", "workspace.lease.failed"]>;
154
+ readonly type: import("effect/Schema").Literals<readonly ["execution.accepted", "execution.started", "execution.completed", "execution.failed", "execution.cancelled", "model.input.prepared", "model.output.delta", "model.reasoning.delta", "model.toolcall.delta", "model.output.completed", "model.usage.reported", "model.call.started", "model.attempt.started", "model.attempt.first_output", "model.attempt.completed", "model.attempt.failed", "model.retry.scheduled", "model.call.completed", "model.call.failed", "agent.compaction.started", "agent.compaction.completed", "agent.compaction.failed", "agent.compaction.committed", "budget.exceeded", "tool.call.requested", "tool.result.received", "tool.approval.requested", "tool.approval.resolved", "permission.ask.requested", "permission.ask.resolved", "steering.delivered", "state.updated", "state.deleted", "inbox.enqueued", "inbox.drained", "resident.created", "resident.destroyed", "envelope.accepted", "envelope.routed", "envelope.ready", "delivery.attempt", "wait.created", "wait.woken", "wait.timed_out", "wait.cancelled", "child_run.spawned", "child_run.event", "child_fan_out.created", "child_fan_out.member.admitted", "child_fan_out.member.terminal", "child_fan_out.terminal", "workspace.lease.planned", "workspace.lease.acquired", "workspace.suspended", "workspace.resumed", "workspace.snapshot.created", "workspace.lease.released", "workspace.lease.failed"]>;
155
155
  readonly sequence: import("effect/Schema").Int;
156
156
  readonly cursor: import("effect/Schema").String;
157
157
  readonly content: import("effect/Schema").optionalKey<import("effect/Schema").$Array<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
@@ -59,6 +59,7 @@ export interface StartExecutionByAddressInput {
59
59
  readonly started_at: Shared.TimestampMillis;
60
60
  readonly completed_at: Shared.TimestampMillis;
61
61
  readonly wait_id?: Ids.WaitId;
62
+ readonly origin?: Execution.ExecutionOrigin;
62
63
  readonly metadata?: Shared.Metadata;
63
64
  }
64
65
  export interface StartExecutionByAgentDefinitionInput {
@@ -73,6 +74,7 @@ export interface StartExecutionByAgentDefinitionInput {
73
74
  readonly started_at: Shared.TimestampMillis;
74
75
  readonly completed_at: Shared.TimestampMillis;
75
76
  readonly wait_id?: Ids.WaitId;
77
+ readonly origin?: Execution.ExecutionOrigin;
76
78
  readonly metadata?: Shared.Metadata;
77
79
  }
78
80
  export interface RegisterDefinedAgentInput extends Agent.DefineInput {
@@ -99,7 +99,7 @@ export declare const StartExecutionInput: Schema.Struct<{
99
99
  };
100
100
  readonly turn_policy?: Agent.TurnPolicySnapshot;
101
101
  readonly tool_execution?: Schema.Struct.ReadonlySide<{
102
- readonly concurrency: Schema.Finite;
102
+ readonly concurrency: Schema.Union<readonly [Schema.Finite, Schema.Literal<"unbounded">]>;
103
103
  }, "Encoded">;
104
104
  readonly compaction_policy?: {
105
105
  readonly context_window: number;
@@ -175,6 +175,16 @@ export declare const StartExecutionInput: Schema.Struct<{
175
175
  readonly wait_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.WaitId"> & {
176
176
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WaitId">;
177
177
  }>;
178
+ readonly origin: Schema.optionalKey<Schema.Struct<{
179
+ readonly owner_kind: Schema.Literals<readonly ["service", "user", "workflow", "system"]>;
180
+ readonly owner: Schema.String;
181
+ readonly purpose: Schema.String;
182
+ readonly build: Schema.optionalKey<Schema.Struct<{
183
+ readonly name: Schema.String;
184
+ readonly version: Schema.optionalKey<Schema.String>;
185
+ readonly commit: Schema.optionalKey<Schema.String>;
186
+ }>>;
187
+ }>>;
178
188
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
179
189
  }>;
180
190
  export interface StartExecutionInput extends Schema.Schema.Type<typeof StartExecutionInput> {
@@ -650,7 +660,7 @@ export declare const FollowExecutionItem: Schema.Union<readonly [Schema.Struct<{
650
660
  readonly child_execution_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.ChildExecutionId"> & {
651
661
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ChildExecutionId">;
652
662
  }>;
653
- readonly type: Schema.Literals<readonly ["execution.accepted", "execution.started", "execution.completed", "execution.failed", "execution.cancelled", "model.input.prepared", "model.output.delta", "model.reasoning.delta", "model.toolcall.delta", "model.output.completed", "model.usage.reported", "agent.compaction.started", "agent.compaction.committed", "budget.exceeded", "tool.call.requested", "tool.result.received", "tool.approval.requested", "tool.approval.resolved", "permission.ask.requested", "permission.ask.resolved", "steering.delivered", "state.updated", "state.deleted", "inbox.enqueued", "inbox.drained", "resident.created", "resident.destroyed", "envelope.accepted", "envelope.routed", "envelope.ready", "delivery.attempt", "wait.created", "wait.woken", "wait.timed_out", "wait.cancelled", "child_run.spawned", "child_run.event", "child_fan_out.created", "child_fan_out.member.admitted", "child_fan_out.member.terminal", "child_fan_out.terminal", "workspace.lease.planned", "workspace.lease.acquired", "workspace.suspended", "workspace.resumed", "workspace.snapshot.created", "workspace.lease.released", "workspace.lease.failed"]>;
663
+ readonly type: Schema.Literals<readonly ["execution.accepted", "execution.started", "execution.completed", "execution.failed", "execution.cancelled", "model.input.prepared", "model.output.delta", "model.reasoning.delta", "model.toolcall.delta", "model.output.completed", "model.usage.reported", "model.call.started", "model.attempt.started", "model.attempt.first_output", "model.attempt.completed", "model.attempt.failed", "model.retry.scheduled", "model.call.completed", "model.call.failed", "agent.compaction.started", "agent.compaction.completed", "agent.compaction.failed", "agent.compaction.committed", "budget.exceeded", "tool.call.requested", "tool.result.received", "tool.approval.requested", "tool.approval.resolved", "permission.ask.requested", "permission.ask.resolved", "steering.delivered", "state.updated", "state.deleted", "inbox.enqueued", "inbox.drained", "resident.created", "resident.destroyed", "envelope.accepted", "envelope.routed", "envelope.ready", "delivery.attempt", "wait.created", "wait.woken", "wait.timed_out", "wait.cancelled", "child_run.spawned", "child_run.event", "child_fan_out.created", "child_fan_out.member.admitted", "child_fan_out.member.terminal", "child_fan_out.terminal", "workspace.lease.planned", "workspace.lease.acquired", "workspace.suspended", "workspace.resumed", "workspace.snapshot.created", "workspace.lease.released", "workspace.lease.failed"]>;
654
664
  readonly sequence: Schema.Int;
655
665
  readonly cursor: Schema.String;
656
666
  readonly content: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
@@ -1008,6 +1018,25 @@ export declare const ToolAttemptList: Schema.Struct<{
1008
1018
  }>;
1009
1019
  export interface ToolAttemptList extends Schema.Schema.Type<typeof ToolAttemptList> {
1010
1020
  }
1021
+ export declare const ToolInvocation: Schema.Struct<{
1022
+ readonly invocation_id: Schema.String;
1023
+ readonly tool_call_id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
1024
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
1025
+ };
1026
+ readonly attempt_id: Schema.brand<Schema.String, "Relay.ToolAttemptId"> & {
1027
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolAttemptId">;
1028
+ };
1029
+ readonly placement: Schema.Literals<readonly ["local", "client", "remote", "mcp"]>;
1030
+ readonly state: Schema.Literals<readonly ["running", "completed", "failed", "released", "expired", "abandoned"]>;
1031
+ readonly outcome: Schema.optionalKey<Schema.Literals<readonly ["success", "failure", "abandoned"]>>;
1032
+ readonly failure_category: Schema.optionalKey<Schema.Literals<readonly ["handler", "worker", "abandoned", "unknown"]>>;
1033
+ readonly started_at: Schema.Int;
1034
+ readonly completed_at: Schema.optionalKey<Schema.Int>;
1035
+ readonly claim_expires_at: Schema.optionalKey<Schema.Int>;
1036
+ readonly worker_id: Schema.optionalKey<Schema.String>;
1037
+ }>;
1038
+ export interface ToolInvocation extends Schema.Schema.Type<typeof ToolInvocation> {
1039
+ }
1011
1040
  export declare const ToolOutcomeAccepted: Schema.Struct<{
1012
1041
  readonly tool_call_id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
1013
1042
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
@@ -2407,7 +2436,7 @@ export declare const SessionStreamItem: Schema.Union<readonly [Schema.TaggedStru
2407
2436
  readonly child_execution_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.ChildExecutionId"> & {
2408
2437
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ChildExecutionId">;
2409
2438
  }>;
2410
- readonly type: Schema.Literals<readonly ["execution.accepted", "execution.started", "execution.completed", "execution.failed", "execution.cancelled", "model.input.prepared", "model.output.delta", "model.reasoning.delta", "model.toolcall.delta", "model.output.completed", "model.usage.reported", "agent.compaction.started", "agent.compaction.committed", "budget.exceeded", "tool.call.requested", "tool.result.received", "tool.approval.requested", "tool.approval.resolved", "permission.ask.requested", "permission.ask.resolved", "steering.delivered", "state.updated", "state.deleted", "inbox.enqueued", "inbox.drained", "resident.created", "resident.destroyed", "envelope.accepted", "envelope.routed", "envelope.ready", "delivery.attempt", "wait.created", "wait.woken", "wait.timed_out", "wait.cancelled", "child_run.spawned", "child_run.event", "child_fan_out.created", "child_fan_out.member.admitted", "child_fan_out.member.terminal", "child_fan_out.terminal", "workspace.lease.planned", "workspace.lease.acquired", "workspace.suspended", "workspace.resumed", "workspace.snapshot.created", "workspace.lease.released", "workspace.lease.failed"]>;
2439
+ readonly type: Schema.Literals<readonly ["execution.accepted", "execution.started", "execution.completed", "execution.failed", "execution.cancelled", "model.input.prepared", "model.output.delta", "model.reasoning.delta", "model.toolcall.delta", "model.output.completed", "model.usage.reported", "model.call.started", "model.attempt.started", "model.attempt.first_output", "model.attempt.completed", "model.attempt.failed", "model.retry.scheduled", "model.call.completed", "model.call.failed", "agent.compaction.started", "agent.compaction.completed", "agent.compaction.failed", "agent.compaction.committed", "budget.exceeded", "tool.call.requested", "tool.result.received", "tool.approval.requested", "tool.approval.resolved", "permission.ask.requested", "permission.ask.resolved", "steering.delivered", "state.updated", "state.deleted", "inbox.enqueued", "inbox.drained", "resident.created", "resident.destroyed", "envelope.accepted", "envelope.routed", "envelope.ready", "delivery.attempt", "wait.created", "wait.woken", "wait.timed_out", "wait.cancelled", "child_run.spawned", "child_run.event", "child_fan_out.created", "child_fan_out.member.admitted", "child_fan_out.member.terminal", "child_fan_out.terminal", "workspace.lease.planned", "workspace.lease.acquired", "workspace.suspended", "workspace.resumed", "workspace.snapshot.created", "workspace.lease.released", "workspace.lease.failed"]>;
2411
2440
  readonly sequence: Schema.Int;
2412
2441
  readonly cursor: Schema.String;
2413
2442
  readonly content: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
@@ -2544,6 +2573,24 @@ export declare const ChildRunSummary: Schema.Struct<{
2544
2573
  }>;
2545
2574
  export interface ChildRunSummary extends Schema.Schema.Type<typeof ChildRunSummary> {
2546
2575
  }
2576
+ export declare const ChildRunEdge: Schema.Struct<{
2577
+ readonly parent_execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
2578
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
2579
+ };
2580
+ readonly child_execution_id: Schema.brand<Schema.String, "Relay.ChildExecutionId"> & {
2581
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ChildExecutionId">;
2582
+ };
2583
+ readonly address_id: Schema.brand<Schema.String, "Relay.AddressId"> & {
2584
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
2585
+ };
2586
+ readonly depth: Schema.Int;
2587
+ readonly status: Schema.Literals<readonly ["queued", "running", "waiting", "completed", "failed", "cancelled"]>;
2588
+ readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
2589
+ readonly created_at: Schema.Int;
2590
+ readonly updated_at: Schema.Int;
2591
+ }>;
2592
+ export interface ChildRunEdge extends Schema.Schema.Type<typeof ChildRunEdge> {
2593
+ }
2547
2594
  export declare const ExecutionInspection: Schema.Struct<{
2548
2595
  readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
2549
2596
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
@@ -2567,6 +2614,24 @@ export declare const ExecutionInspection: Schema.Struct<{
2567
2614
  readonly created_at: Schema.Int;
2568
2615
  readonly resolved_at: Schema.optionalKey<Schema.Int>;
2569
2616
  }>>;
2617
+ readonly waits: Schema.$Array<Schema.Struct<{
2618
+ readonly wait_id: Schema.brand<Schema.String, "Relay.WaitId"> & {
2619
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WaitId">;
2620
+ };
2621
+ readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
2622
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
2623
+ };
2624
+ readonly envelope_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.EnvelopeId"> & {
2625
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EnvelopeId">;
2626
+ }>;
2627
+ readonly kind: Schema.optionalKey<Schema.Literals<readonly ["permission", "tool_approval", "tool_placement", "child_join", "inbox", "reply", "timer", "external"]>>;
2628
+ readonly mode: Schema.Literals<readonly ["reply", "event", "until", "child"]>;
2629
+ readonly correlation_key: Schema.optionalKey<Schema.String>;
2630
+ readonly state: Schema.Literals<readonly ["open", "resolved", "timed_out", "cancelled"]>;
2631
+ readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
2632
+ readonly created_at: Schema.Int;
2633
+ readonly resolved_at: Schema.optionalKey<Schema.Int>;
2634
+ }>>;
2570
2635
  readonly pending_tool_calls: Schema.$Array<Schema.Struct<{
2571
2636
  readonly tool_call_id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
2572
2637
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
@@ -2576,6 +2641,38 @@ export declare const ExecutionInspection: Schema.Struct<{
2576
2641
  readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
2577
2642
  readonly requested_at: Schema.Int;
2578
2643
  }>>;
2644
+ readonly tool_attempts: Schema.$Array<Schema.Struct<{
2645
+ readonly attempt_id: Schema.brand<Schema.String, "Relay.ToolAttemptId"> & {
2646
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolAttemptId">;
2647
+ };
2648
+ readonly tool_call_id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
2649
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
2650
+ };
2651
+ readonly attempt_number: Schema.Int;
2652
+ readonly state: Schema.Literals<readonly ["running", "completed", "failed", "released", "expired", "abandoned"]>;
2653
+ readonly worker_id: Schema.optionalKey<Schema.String>;
2654
+ readonly claim_expires_at: Schema.optionalKey<Schema.Int>;
2655
+ readonly error: Schema.optionalKey<Schema.String>;
2656
+ readonly created_at: Schema.Int;
2657
+ readonly completed_at: Schema.optionalKey<Schema.Int>;
2658
+ }>>;
2659
+ readonly tool_invocations: Schema.$Array<Schema.Struct<{
2660
+ readonly invocation_id: Schema.String;
2661
+ readonly tool_call_id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
2662
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
2663
+ };
2664
+ readonly attempt_id: Schema.brand<Schema.String, "Relay.ToolAttemptId"> & {
2665
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolAttemptId">;
2666
+ };
2667
+ readonly placement: Schema.Literals<readonly ["local", "client", "remote", "mcp"]>;
2668
+ readonly state: Schema.Literals<readonly ["running", "completed", "failed", "released", "expired", "abandoned"]>;
2669
+ readonly outcome: Schema.optionalKey<Schema.Literals<readonly ["success", "failure", "abandoned"]>>;
2670
+ readonly failure_category: Schema.optionalKey<Schema.Literals<readonly ["handler", "worker", "abandoned", "unknown"]>>;
2671
+ readonly started_at: Schema.Int;
2672
+ readonly completed_at: Schema.optionalKey<Schema.Int>;
2673
+ readonly claim_expires_at: Schema.optionalKey<Schema.Int>;
2674
+ readonly worker_id: Schema.optionalKey<Schema.String>;
2675
+ }>>;
2579
2676
  readonly child_runs: Schema.$Array<Schema.Struct<{
2580
2677
  readonly child_execution_id: Schema.brand<Schema.String, "Relay.ChildExecutionId"> & {
2581
2678
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ChildExecutionId">;
@@ -2588,6 +2685,186 @@ export declare const ExecutionInspection: Schema.Struct<{
2588
2685
  readonly created_at: Schema.Int;
2589
2686
  readonly updated_at: Schema.Int;
2590
2687
  }>>;
2688
+ readonly child_tree: Schema.$Array<Schema.Struct<{
2689
+ readonly parent_execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
2690
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
2691
+ };
2692
+ readonly child_execution_id: Schema.brand<Schema.String, "Relay.ChildExecutionId"> & {
2693
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ChildExecutionId">;
2694
+ };
2695
+ readonly address_id: Schema.brand<Schema.String, "Relay.AddressId"> & {
2696
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
2697
+ };
2698
+ readonly depth: Schema.Int;
2699
+ readonly status: Schema.Literals<readonly ["queued", "running", "waiting", "completed", "failed", "cancelled"]>;
2700
+ readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
2701
+ readonly created_at: Schema.Int;
2702
+ readonly updated_at: Schema.Int;
2703
+ }>>;
2704
+ readonly fan_outs: Schema.$Array<Schema.Struct<{
2705
+ readonly fan_out_id: Schema.brand<Schema.String, "Relay.ChildFanOutId"> & {
2706
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ChildFanOutId">;
2707
+ };
2708
+ readonly parent_execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
2709
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
2710
+ };
2711
+ readonly children: Schema.$Array<Schema.Struct<{
2712
+ readonly child_execution_id: Schema.brand<Schema.String, "Relay.ChildExecutionId"> & {
2713
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ChildExecutionId">;
2714
+ };
2715
+ readonly address_id: Schema.brand<Schema.String, "Relay.AddressId"> & {
2716
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
2717
+ };
2718
+ readonly override: Schema.optionalKey<Schema.Struct<{
2719
+ readonly instructions: Schema.optionalKey<Schema.String>;
2720
+ readonly model: Schema.optionalKey<Schema.Struct<{
2721
+ readonly provider: Schema.String;
2722
+ readonly model: Schema.String;
2723
+ readonly registration_key: Schema.optionalKey<Schema.String>;
2724
+ readonly request_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2725
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2726
+ }>>;
2727
+ readonly compaction_policy: Schema.optionalKey<Schema.Struct<{
2728
+ readonly context_window: Schema.Finite;
2729
+ readonly reserve_tokens: Schema.Finite;
2730
+ readonly keep_recent_tokens: Schema.Finite;
2731
+ readonly summary_model: Schema.optionalKey<Schema.Struct<{
2732
+ readonly provider: Schema.String;
2733
+ readonly model: Schema.String;
2734
+ readonly registration_key: Schema.optionalKey<Schema.String>;
2735
+ readonly request_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2736
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2737
+ }>>;
2738
+ }>>;
2739
+ readonly tool_names: Schema.optionalKey<Schema.$Array<Schema.String>>;
2740
+ readonly permissions: Schema.optionalKey<Schema.$Array<Schema.String>>;
2741
+ readonly workspace_policy: Schema.optionalKey<Schema.Struct<{
2742
+ readonly mode: Schema.Literals<readonly ["share", "fork"]>;
2743
+ readonly fallback: Schema.optionalKey<Schema.Literals<readonly ["fail", "fresh"]>>;
2744
+ }>>;
2745
+ readonly output_schema_ref: Schema.optionalKey<Schema.String>;
2746
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2747
+ }>>;
2748
+ readonly input: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
2749
+ readonly type: Schema.Literal<"text">;
2750
+ readonly text: Schema.String;
2751
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2752
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2753
+ }>, Schema.Struct<{
2754
+ readonly type: Schema.Literal<"structured">;
2755
+ readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
2756
+ readonly schema_ref: Schema.optionalKey<Schema.String>;
2757
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2758
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2759
+ }>, Schema.Struct<{
2760
+ readonly type: Schema.Literal<"blob-reference">;
2761
+ readonly uri: Schema.String;
2762
+ readonly media_type: Schema.String;
2763
+ readonly filename: Schema.optionalKey<Schema.String>;
2764
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2765
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2766
+ }>, Schema.Struct<{
2767
+ readonly type: Schema.Literal<"artifact-reference">;
2768
+ readonly artifact_id: Schema.String;
2769
+ readonly media_type: Schema.optionalKey<Schema.String>;
2770
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2771
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2772
+ }>, Schema.Struct<{
2773
+ readonly type: Schema.Literal<"tool-call">;
2774
+ readonly call: Schema.Struct<{
2775
+ readonly id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
2776
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
2777
+ };
2778
+ readonly name: Schema.String;
2779
+ readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
2780
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2781
+ }>;
2782
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2783
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2784
+ }>, Schema.Struct<{
2785
+ readonly type: Schema.Literal<"tool-result">;
2786
+ readonly result: Schema.Struct<{
2787
+ readonly call_id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
2788
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
2789
+ };
2790
+ readonly output: Schema.Codec<Schema.Json, Schema.Json, never, never>;
2791
+ readonly error: Schema.optionalKey<Schema.String>;
2792
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2793
+ }>;
2794
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2795
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2796
+ }>]>>>;
2797
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2798
+ }>>;
2799
+ readonly max_concurrency: Schema.Int;
2800
+ readonly join: Schema.Union<readonly [Schema.TaggedStruct<"all", {}>, Schema.TaggedStruct<"first-success", {}>, Schema.TaggedStruct<"quorum", {
2801
+ readonly count: Schema.Int;
2802
+ }>, Schema.TaggedStruct<"best-effort", {}>]>;
2803
+ readonly created_at: Schema.Int;
2804
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2805
+ readonly state: Schema.Literals<readonly ["joining", "satisfied", "failed", "cancelled"]>;
2806
+ readonly members: Schema.$Array<Schema.Struct<{
2807
+ readonly child_execution_id: Schema.brand<Schema.String, "Relay.ChildExecutionId"> & {
2808
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ChildExecutionId">;
2809
+ };
2810
+ readonly ordinal: Schema.Int;
2811
+ readonly state: Schema.Literals<readonly ["queued", "running", "completed", "failed", "cancelled"]>;
2812
+ readonly output: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
2813
+ readonly type: Schema.Literal<"text">;
2814
+ readonly text: Schema.String;
2815
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2816
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2817
+ }>, Schema.Struct<{
2818
+ readonly type: Schema.Literal<"structured">;
2819
+ readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
2820
+ readonly schema_ref: Schema.optionalKey<Schema.String>;
2821
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2822
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2823
+ }>, Schema.Struct<{
2824
+ readonly type: Schema.Literal<"blob-reference">;
2825
+ readonly uri: Schema.String;
2826
+ readonly media_type: Schema.String;
2827
+ readonly filename: Schema.optionalKey<Schema.String>;
2828
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2829
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2830
+ }>, Schema.Struct<{
2831
+ readonly type: Schema.Literal<"artifact-reference">;
2832
+ readonly artifact_id: Schema.String;
2833
+ readonly media_type: Schema.optionalKey<Schema.String>;
2834
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2835
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2836
+ }>, Schema.Struct<{
2837
+ readonly type: Schema.Literal<"tool-call">;
2838
+ readonly call: Schema.Struct<{
2839
+ readonly id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
2840
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
2841
+ };
2842
+ readonly name: Schema.String;
2843
+ readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
2844
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2845
+ }>;
2846
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2847
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2848
+ }>, Schema.Struct<{
2849
+ readonly type: Schema.Literal<"tool-result">;
2850
+ readonly result: Schema.Struct<{
2851
+ readonly call_id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
2852
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
2853
+ };
2854
+ readonly output: Schema.Codec<Schema.Json, Schema.Json, never, never>;
2855
+ readonly error: Schema.optionalKey<Schema.String>;
2856
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2857
+ }>;
2858
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2859
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
2860
+ }>]>>>;
2861
+ readonly error: Schema.optionalKey<Schema.String>;
2862
+ readonly completed_at: Schema.optionalKey<Schema.Int>;
2863
+ }>>;
2864
+ readonly satisfied_at: Schema.optionalKey<Schema.Int>;
2865
+ readonly failed_at: Schema.optionalKey<Schema.Int>;
2866
+ readonly cancelled_at: Schema.optionalKey<Schema.Int>;
2867
+ }>>;
2591
2868
  readonly last_event_cursor: Schema.optionalKey<Schema.String>;
2592
2869
  }>;
2593
2870
  export interface ExecutionInspection extends Schema.Schema.Type<typeof ExecutionInspection> {
@@ -2718,7 +2995,7 @@ export declare const ReplayExecutionResult: Schema.Struct<{
2718
2995
  readonly child_execution_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.ChildExecutionId"> & {
2719
2996
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ChildExecutionId">;
2720
2997
  }>;
2721
- readonly type: Schema.Literals<readonly ["execution.accepted", "execution.started", "execution.completed", "execution.failed", "execution.cancelled", "model.input.prepared", "model.output.delta", "model.reasoning.delta", "model.toolcall.delta", "model.output.completed", "model.usage.reported", "agent.compaction.started", "agent.compaction.committed", "budget.exceeded", "tool.call.requested", "tool.result.received", "tool.approval.requested", "tool.approval.resolved", "permission.ask.requested", "permission.ask.resolved", "steering.delivered", "state.updated", "state.deleted", "inbox.enqueued", "inbox.drained", "resident.created", "resident.destroyed", "envelope.accepted", "envelope.routed", "envelope.ready", "delivery.attempt", "wait.created", "wait.woken", "wait.timed_out", "wait.cancelled", "child_run.spawned", "child_run.event", "child_fan_out.created", "child_fan_out.member.admitted", "child_fan_out.member.terminal", "child_fan_out.terminal", "workspace.lease.planned", "workspace.lease.acquired", "workspace.suspended", "workspace.resumed", "workspace.snapshot.created", "workspace.lease.released", "workspace.lease.failed"]>;
2998
+ readonly type: Schema.Literals<readonly ["execution.accepted", "execution.started", "execution.completed", "execution.failed", "execution.cancelled", "model.input.prepared", "model.output.delta", "model.reasoning.delta", "model.toolcall.delta", "model.output.completed", "model.usage.reported", "model.call.started", "model.attempt.started", "model.attempt.first_output", "model.attempt.completed", "model.attempt.failed", "model.retry.scheduled", "model.call.completed", "model.call.failed", "agent.compaction.started", "agent.compaction.completed", "agent.compaction.failed", "agent.compaction.committed", "budget.exceeded", "tool.call.requested", "tool.result.received", "tool.approval.requested", "tool.approval.resolved", "permission.ask.requested", "permission.ask.resolved", "steering.delivered", "state.updated", "state.deleted", "inbox.enqueued", "inbox.drained", "resident.created", "resident.destroyed", "envelope.accepted", "envelope.routed", "envelope.ready", "delivery.attempt", "wait.created", "wait.woken", "wait.timed_out", "wait.cancelled", "child_run.spawned", "child_run.event", "child_fan_out.created", "child_fan_out.member.admitted", "child_fan_out.member.terminal", "child_fan_out.terminal", "workspace.lease.planned", "workspace.lease.acquired", "workspace.suspended", "workspace.resumed", "workspace.snapshot.created", "workspace.lease.released", "workspace.lease.failed"]>;
2722
2999
  readonly sequence: Schema.Int;
2723
3000
  readonly cursor: Schema.String;
2724
3001
  readonly content: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
@@ -2800,7 +3077,7 @@ export declare const PageExecutionEventsResult: Schema.Struct<{
2800
3077
  readonly child_execution_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.ChildExecutionId"> & {
2801
3078
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ChildExecutionId">;
2802
3079
  }>;
2803
- readonly type: Schema.Literals<readonly ["execution.accepted", "execution.started", "execution.completed", "execution.failed", "execution.cancelled", "model.input.prepared", "model.output.delta", "model.reasoning.delta", "model.toolcall.delta", "model.output.completed", "model.usage.reported", "agent.compaction.started", "agent.compaction.committed", "budget.exceeded", "tool.call.requested", "tool.result.received", "tool.approval.requested", "tool.approval.resolved", "permission.ask.requested", "permission.ask.resolved", "steering.delivered", "state.updated", "state.deleted", "inbox.enqueued", "inbox.drained", "resident.created", "resident.destroyed", "envelope.accepted", "envelope.routed", "envelope.ready", "delivery.attempt", "wait.created", "wait.woken", "wait.timed_out", "wait.cancelled", "child_run.spawned", "child_run.event", "child_fan_out.created", "child_fan_out.member.admitted", "child_fan_out.member.terminal", "child_fan_out.terminal", "workspace.lease.planned", "workspace.lease.acquired", "workspace.suspended", "workspace.resumed", "workspace.snapshot.created", "workspace.lease.released", "workspace.lease.failed"]>;
3080
+ readonly type: Schema.Literals<readonly ["execution.accepted", "execution.started", "execution.completed", "execution.failed", "execution.cancelled", "model.input.prepared", "model.output.delta", "model.reasoning.delta", "model.toolcall.delta", "model.output.completed", "model.usage.reported", "model.call.started", "model.attempt.started", "model.attempt.first_output", "model.attempt.completed", "model.attempt.failed", "model.retry.scheduled", "model.call.completed", "model.call.failed", "agent.compaction.started", "agent.compaction.completed", "agent.compaction.failed", "agent.compaction.committed", "budget.exceeded", "tool.call.requested", "tool.result.received", "tool.approval.requested", "tool.approval.resolved", "permission.ask.requested", "permission.ask.resolved", "steering.delivered", "state.updated", "state.deleted", "inbox.enqueued", "inbox.drained", "resident.created", "resident.destroyed", "envelope.accepted", "envelope.routed", "envelope.ready", "delivery.attempt", "wait.created", "wait.woken", "wait.timed_out", "wait.cancelled", "child_run.spawned", "child_run.event", "child_fan_out.created", "child_fan_out.member.admitted", "child_fan_out.member.terminal", "child_fan_out.terminal", "workspace.lease.planned", "workspace.lease.acquired", "workspace.suspended", "workspace.resumed", "workspace.snapshot.created", "workspace.lease.released", "workspace.lease.failed"]>;
2804
3081
  readonly sequence: Schema.Int;
2805
3082
  readonly cursor: Schema.String;
2806
3083
  readonly content: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{