@relayfx/test 0.3.1 → 0.3.2

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.
Files changed (89) hide show
  1. package/README.md +2 -2
  2. package/dist/index.js +29 -20481
  3. package/dist/types/test/index.d.ts +0 -2
  4. package/dist/types/test/test-runtime.d.ts +6 -7
  5. package/dist/types/test/test-tools.d.ts +2 -2
  6. package/dist/types/test/wait-test-kit.d.ts +1 -1
  7. package/package.json +7 -6
  8. package/dist/types/runtime/address/address-book-service.d.ts +0 -74
  9. package/dist/types/runtime/address/address-resolution-service.d.ts +0 -172
  10. package/dist/types/runtime/agent/agent-loop-service.d.ts +0 -92
  11. package/dist/types/runtime/agent/agent-registry-service.d.ts +0 -31
  12. package/dist/types/runtime/agent/prompt-assembler-service.d.ts +0 -64
  13. package/dist/types/runtime/agent/relay-approvals.d.ts +0 -2
  14. package/dist/types/runtime/agent/relay-compaction.d.ts +0 -24
  15. package/dist/types/runtime/agent/relay-instructions.d.ts +0 -7
  16. package/dist/types/runtime/agent/relay-permissions.d.ts +0 -25
  17. package/dist/types/runtime/agent/relay-steering.d.ts +0 -17
  18. package/dist/types/runtime/agent/relay-tool-executor.d.ts +0 -22
  19. package/dist/types/runtime/agent/relay-tool-output.d.ts +0 -10
  20. package/dist/types/runtime/agent/sequence-allocator.d.ts +0 -8
  21. package/dist/types/runtime/child/child-fan-out-admission-service.d.ts +0 -30
  22. package/dist/types/runtime/child/child-fan-out-runtime.d.ts +0 -40
  23. package/dist/types/runtime/child/child-fan-out-transition-service.d.ts +0 -25
  24. package/dist/types/runtime/child/child-run-service.d.ts +0 -96
  25. package/dist/types/runtime/child/parent-notifier-service.d.ts +0 -42
  26. package/dist/types/runtime/child/spawn-child-run-tool.d.ts +0 -225
  27. package/dist/types/runtime/cluster/execution-entity.d.ts +0 -39
  28. package/dist/types/runtime/content/artifact-store-service.d.ts +0 -26
  29. package/dist/types/runtime/content/blob-store-service.d.ts +0 -54
  30. package/dist/types/runtime/entity/entity-instance-service.d.ts +0 -76
  31. package/dist/types/runtime/entity/entity-registry-service.d.ts +0 -35
  32. package/dist/types/runtime/envelope/envelope-service.d.ts +0 -56
  33. package/dist/types/runtime/execution/active-execution-registry.d.ts +0 -12
  34. package/dist/types/runtime/execution/event-log-service.d.ts +0 -93
  35. package/dist/types/runtime/execution/execution-service.d.ts +0 -66
  36. package/dist/types/runtime/execution/execution-watch-service.d.ts +0 -32
  37. package/dist/types/runtime/execution/session-stream-service.d.ts +0 -33
  38. package/dist/types/runtime/inbox/inbox-service.d.ts +0 -76
  39. package/dist/types/runtime/inbox/send-message-tool.d.ts +0 -27
  40. package/dist/types/runtime/inbox/wait-for-messages-tool.d.ts +0 -34
  41. package/dist/types/runtime/index.d.ts +0 -56
  42. package/dist/types/runtime/memory/memory-service.d.ts +0 -22
  43. package/dist/types/runtime/model/embedding-model-service.d.ts +0 -81
  44. package/dist/types/runtime/model/language-model-service.d.ts +0 -48
  45. package/dist/types/runtime/model/model-call-policy.d.ts +0 -14
  46. package/dist/types/runtime/observability/runtime-metrics.d.ts +0 -28
  47. package/dist/types/runtime/presence/presence-service.d.ts +0 -30
  48. package/dist/types/runtime/presence/presence-tool.d.ts +0 -20
  49. package/dist/types/runtime/runner/runner-runtime-service.d.ts +0 -149
  50. package/dist/types/runtime/schedule/scheduler-service.d.ts +0 -34
  51. package/dist/types/runtime/schema-registry/schema-registry-service.d.ts +0 -27
  52. package/dist/types/runtime/session/session-store-service.d.ts +0 -23
  53. package/dist/types/runtime/skill/skill-registry-service.d.ts +0 -44
  54. package/dist/types/runtime/state/execution-state-service.d.ts +0 -60
  55. package/dist/types/runtime/state/state-tools.d.ts +0 -5
  56. package/dist/types/runtime/tool/tool-input-schema-digest.d.ts +0 -6
  57. package/dist/types/runtime/tool/tool-runtime-service.d.ts +0 -162
  58. package/dist/types/runtime/tool/tool-transition-coordinator.d.ts +0 -13
  59. package/dist/types/runtime/topic/publish-to-topic-tool.d.ts +0 -24
  60. package/dist/types/runtime/topic/topic-service.d.ts +0 -50
  61. package/dist/types/runtime/wait/wait-service.d.ts +0 -81
  62. package/dist/types/runtime/wait/wait-signal.d.ts +0 -25
  63. package/dist/types/runtime/workflow/activity-version-registry.d.ts +0 -93
  64. package/dist/types/runtime/workflow/definition-runtime.d.ts +0 -95
  65. package/dist/types/runtime/workflow/execution-workflow.d.ts +0 -534
  66. package/dist/types/runtime/workspace/workspace-planner-service.d.ts +0 -64
  67. package/dist/types/runtime/workspace/workspace-provider-service.d.ts +0 -112
  68. package/dist/types/runtime/workspace/workspace-runtime-service.d.ts +0 -21
  69. package/dist/types/schema/address-schema.d.ts +0 -77
  70. package/dist/types/schema/agent-schema.d.ts +0 -901
  71. package/dist/types/schema/child-orchestration-schema.d.ts +0 -429
  72. package/dist/types/schema/content-schema.d.ts +0 -118
  73. package/dist/types/schema/entity-schema.d.ts +0 -40
  74. package/dist/types/schema/envelope-schema.d.ts +0 -180
  75. package/dist/types/schema/execution-schema.d.ts +0 -453
  76. package/dist/types/schema/ids-schema.d.ts +0 -106
  77. package/dist/types/schema/inbox-schema.d.ts +0 -81
  78. package/dist/types/schema/index.d.ts +0 -19
  79. package/dist/types/schema/presence-schema.d.ts +0 -28
  80. package/dist/types/schema/schedule-schema.d.ts +0 -79
  81. package/dist/types/schema/shared-schema.d.ts +0 -13
  82. package/dist/types/schema/skill-schema.d.ts +0 -260
  83. package/dist/types/schema/state-schema.d.ts +0 -35
  84. package/dist/types/schema/tool-schema.d.ts +0 -84
  85. package/dist/types/schema/wait-schema.d.ts +0 -98
  86. package/dist/types/schema/workflow-schema.d.ts +0 -2062
  87. package/dist/types/schema/workspace-schema.d.ts +0 -78
  88. package/dist/types/test/captured-model.d.ts +0 -19
  89. package/dist/types/test/scripted-model.d.ts +0 -49
@@ -1,180 +0,0 @@
1
- import { Schema } from "effect";
2
- export declare const WaitMode: Schema.Literals<readonly ["reply", "event", "until", "child"]>;
3
- export type WaitMode = typeof WaitMode.Type;
4
- export declare const Wait: Schema.Struct<{
5
- readonly mode: Schema.Literals<readonly ["reply", "event", "until", "child"]>;
6
- readonly timeout: Schema.optionalKey<Schema.String>;
7
- readonly correlation_key: Schema.optionalKey<Schema.String>;
8
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
9
- }>;
10
- export interface Wait extends Schema.Schema.Type<typeof Wait> {
11
- }
12
- export declare const Envelope: Schema.Struct<{
13
- readonly id: Schema.brand<Schema.String, "Relay.EnvelopeId"> & {
14
- make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EnvelopeId">;
15
- };
16
- readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
17
- make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
18
- };
19
- readonly from: Schema.brand<Schema.String, "Relay.AddressId"> & {
20
- make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
21
- };
22
- readonly to: Schema.brand<Schema.String, "Relay.AddressId"> & {
23
- make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
24
- };
25
- readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
26
- readonly type: Schema.Literal<"text">;
27
- readonly text: Schema.String;
28
- readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
29
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
30
- }>, Schema.Struct<{
31
- readonly type: Schema.Literal<"structured">;
32
- readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
33
- readonly schema_ref: Schema.optionalKey<Schema.String>;
34
- readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
35
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
36
- }>, Schema.Struct<{
37
- readonly type: Schema.Literal<"blob-reference">;
38
- readonly uri: Schema.String;
39
- readonly media_type: Schema.String;
40
- readonly filename: Schema.optionalKey<Schema.String>;
41
- readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
42
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
43
- }>, Schema.Struct<{
44
- readonly type: Schema.Literal<"artifact-reference">;
45
- readonly artifact_id: Schema.String;
46
- readonly media_type: Schema.optionalKey<Schema.String>;
47
- readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
48
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
49
- }>, Schema.Struct<{
50
- readonly type: Schema.Literal<"tool-call">;
51
- readonly call: Schema.Struct<{
52
- readonly id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
53
- make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
54
- };
55
- readonly name: Schema.String;
56
- readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
57
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
58
- }>;
59
- readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
60
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
61
- }>, Schema.Struct<{
62
- readonly type: Schema.Literal<"tool-result">;
63
- readonly result: Schema.Struct<{
64
- readonly call_id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
65
- make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
66
- };
67
- readonly output: Schema.Codec<Schema.Json, Schema.Json, never, never>;
68
- readonly error: Schema.optionalKey<Schema.String>;
69
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
70
- }>;
71
- readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
72
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
73
- }>]>>;
74
- readonly wait: Schema.optionalKey<Schema.Struct<{
75
- readonly mode: Schema.Literals<readonly ["reply", "event", "until", "child"]>;
76
- readonly timeout: Schema.optionalKey<Schema.String>;
77
- readonly correlation_key: Schema.optionalKey<Schema.String>;
78
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
79
- }>>;
80
- readonly correlation_key: Schema.optionalKey<Schema.String>;
81
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
82
- readonly created_at: Schema.Int;
83
- }>;
84
- export interface Envelope extends Schema.Schema.Type<typeof Envelope> {
85
- }
86
- export declare const SendInput: Schema.Struct<{
87
- readonly from: Schema.brand<Schema.String, "Relay.AddressId"> & {
88
- make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
89
- };
90
- readonly to: Schema.brand<Schema.String, "Relay.AddressId"> & {
91
- make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
92
- };
93
- readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
94
- readonly type: Schema.Literal<"text">;
95
- readonly text: Schema.String;
96
- readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
97
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
98
- }>, Schema.Struct<{
99
- readonly type: Schema.Literal<"structured">;
100
- readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
101
- readonly schema_ref: Schema.optionalKey<Schema.String>;
102
- readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
103
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
104
- }>, Schema.Struct<{
105
- readonly type: Schema.Literal<"blob-reference">;
106
- readonly uri: Schema.String;
107
- readonly media_type: Schema.String;
108
- readonly filename: Schema.optionalKey<Schema.String>;
109
- readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
110
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
111
- }>, Schema.Struct<{
112
- readonly type: Schema.Literal<"artifact-reference">;
113
- readonly artifact_id: Schema.String;
114
- readonly media_type: Schema.optionalKey<Schema.String>;
115
- readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
116
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
117
- }>, Schema.Struct<{
118
- readonly type: Schema.Literal<"tool-call">;
119
- readonly call: Schema.Struct<{
120
- readonly id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
121
- make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
122
- };
123
- readonly name: Schema.String;
124
- readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
125
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
126
- }>;
127
- readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
128
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
129
- }>, Schema.Struct<{
130
- readonly type: Schema.Literal<"tool-result">;
131
- readonly result: Schema.Struct<{
132
- readonly call_id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
133
- make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
134
- };
135
- readonly output: Schema.Codec<Schema.Json, Schema.Json, never, never>;
136
- readonly error: Schema.optionalKey<Schema.String>;
137
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
138
- }>;
139
- readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
140
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
141
- }>]>>;
142
- readonly idempotency_key: Schema.optionalKey<Schema.String>;
143
- readonly wait: Schema.optionalKey<Schema.Struct<{
144
- readonly mode: Schema.Literals<readonly ["reply", "event", "until", "child"]>;
145
- readonly timeout: Schema.optionalKey<Schema.String>;
146
- readonly correlation_key: Schema.optionalKey<Schema.String>;
147
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
148
- }>>;
149
- readonly correlation_key: Schema.optionalKey<Schema.String>;
150
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
151
- }>;
152
- export interface SendInput extends Schema.Schema.Type<typeof SendInput> {
153
- }
154
- export declare const EnvelopeAccepted: Schema.Struct<{
155
- readonly envelope_id: Schema.brand<Schema.String, "Relay.EnvelopeId"> & {
156
- make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EnvelopeId">;
157
- };
158
- readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
159
- make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
160
- };
161
- readonly wait_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.WaitId"> & {
162
- make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WaitId">;
163
- }>;
164
- }>;
165
- export interface EnvelopeAccepted extends Schema.Schema.Type<typeof EnvelopeAccepted> {
166
- }
167
- export declare const EnvelopeReady: Schema.Struct<{
168
- readonly id: Schema.brand<Schema.String, "Relay.EnvelopeReadyId"> & {
169
- make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EnvelopeReadyId">;
170
- };
171
- readonly envelope_id: Schema.brand<Schema.String, "Relay.EnvelopeId"> & {
172
- make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EnvelopeId">;
173
- };
174
- readonly route_key: Schema.String;
175
- readonly available_at: Schema.Int;
176
- readonly attempt: Schema.Int;
177
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
178
- }>;
179
- export interface EnvelopeReady extends Schema.Schema.Type<typeof EnvelopeReady> {
180
- }
@@ -1,453 +0,0 @@
1
- import { Schema } from "effect";
2
- import { Definition } from "./agent-schema";
3
- import { ChildExecutionId } from "./ids-schema";
4
- export declare const ExecutionStatus: Schema.Literals<readonly ["queued", "running", "waiting", "completed", "failed", "cancelled"]>;
5
- export type ExecutionStatus = typeof ExecutionStatus.Type;
6
- export declare const Execution: Schema.Struct<{
7
- readonly id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
8
- make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
9
- };
10
- readonly root_address_id: Schema.brand<Schema.String, "Relay.AddressId"> & {
11
- make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
12
- };
13
- readonly session_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.SessionId"> & {
14
- make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SessionId">;
15
- }>;
16
- readonly status: Schema.Literals<readonly ["queued", "running", "waiting", "completed", "failed", "cancelled"]>;
17
- readonly agent_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.AgentId"> & {
18
- make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AgentId">;
19
- }>;
20
- readonly agent_revision: Schema.optionalKey<Schema.Int>;
21
- readonly agent_snapshot: Schema.optionalKey<Schema.Codec<Definition, {
22
- readonly name: string;
23
- readonly instructions?: string;
24
- readonly model: {
25
- readonly provider: string;
26
- readonly model: string;
27
- readonly registration_key?: string;
28
- readonly request_options?: {
29
- readonly [x: string]: Schema.Json;
30
- };
31
- readonly metadata?: {
32
- readonly [x: string]: Schema.Json;
33
- };
34
- };
35
- readonly tool_names: readonly string[];
36
- readonly permissions: readonly {
37
- readonly name: string;
38
- readonly value: Schema.Json;
39
- readonly metadata?: {
40
- readonly [x: string]: Schema.Json;
41
- };
42
- }[];
43
- readonly skill_definition_ids?: readonly string[];
44
- readonly permission_rules?: {
45
- readonly rules: readonly {
46
- readonly pattern: string;
47
- readonly level: "allow" | "ask" | "deny";
48
- readonly reason?: string;
49
- }[];
50
- readonly fallback?: "allow" | "ask" | "deny";
51
- };
52
- readonly turn_policy?: import("./agent-schema").TurnPolicySnapshot;
53
- readonly compaction_policy?: {
54
- readonly context_window: number;
55
- readonly reserve_tokens: number;
56
- readonly keep_recent_tokens: number;
57
- readonly summary_model?: {
58
- readonly provider: string;
59
- readonly model: string;
60
- readonly registration_key?: string;
61
- readonly request_options?: {
62
- readonly [x: string]: Schema.Json;
63
- };
64
- readonly metadata?: {
65
- readonly [x: string]: Schema.Json;
66
- };
67
- };
68
- };
69
- readonly max_tool_turns?: number;
70
- readonly max_wait_turns?: number;
71
- readonly token_budget?: number;
72
- readonly child_run_presets?: {
73
- readonly [x: string]: {
74
- readonly instructions?: string;
75
- readonly model?: {
76
- readonly provider: string;
77
- readonly model: string;
78
- readonly registration_key?: string;
79
- readonly request_options?: {
80
- readonly [x: string]: Schema.Json;
81
- };
82
- readonly metadata?: {
83
- readonly [x: string]: Schema.Json;
84
- };
85
- };
86
- readonly compaction_policy?: {
87
- readonly context_window: number;
88
- readonly reserve_tokens: number;
89
- readonly keep_recent_tokens: number;
90
- readonly summary_model?: {
91
- readonly provider: string;
92
- readonly model: string;
93
- readonly registration_key?: string;
94
- readonly request_options?: {
95
- readonly [x: string]: Schema.Json;
96
- };
97
- readonly metadata?: {
98
- readonly [x: string]: Schema.Json;
99
- };
100
- };
101
- };
102
- readonly tool_names?: readonly string[];
103
- readonly permissions?: readonly string[];
104
- readonly workspace_policy?: {
105
- readonly mode: "fork" | "share";
106
- readonly fallback?: "fail" | "fresh";
107
- };
108
- readonly output_schema_ref?: string;
109
- readonly metadata?: {
110
- readonly [x: string]: Schema.Json;
111
- };
112
- };
113
- };
114
- readonly handoff_targets?: readonly Schema.Struct.ReadonlySide<{
115
- readonly name: Schema.String;
116
- readonly preset_name: Schema.String;
117
- }, "Encoded">[];
118
- readonly output_schema_ref?: string;
119
- readonly metadata?: {
120
- readonly [x: string]: Schema.Json;
121
- };
122
- }, never, never>>;
123
- readonly agent_tool_input_schema_digests: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
124
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
125
- readonly created_at: Schema.Int;
126
- readonly updated_at: Schema.Int;
127
- }>;
128
- export interface Execution extends Schema.Schema.Type<typeof Execution> {
129
- }
130
- export declare const ExecutionEventSequence: Schema.Int;
131
- export type ExecutionEventSequence = typeof ExecutionEventSequence.Type;
132
- export declare const ChildRunContext: Schema.Struct<{
133
- readonly instructions: Schema.optionalKey<Schema.String>;
134
- readonly model: Schema.optionalKey<Schema.Struct<{
135
- readonly provider: Schema.String;
136
- readonly model: Schema.String;
137
- readonly registration_key: Schema.optionalKey<Schema.String>;
138
- readonly request_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
139
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
140
- }>>;
141
- readonly compaction_policy: Schema.optionalKey<Schema.Struct<{
142
- readonly context_window: Schema.Finite;
143
- readonly reserve_tokens: Schema.Finite;
144
- readonly keep_recent_tokens: Schema.Finite;
145
- readonly summary_model: Schema.optionalKey<Schema.Struct<{
146
- readonly provider: Schema.String;
147
- readonly model: Schema.String;
148
- readonly registration_key: Schema.optionalKey<Schema.String>;
149
- readonly request_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
150
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
151
- }>>;
152
- }>>;
153
- readonly tool_names: Schema.$Array<Schema.String>;
154
- readonly permissions: Schema.$Array<Schema.String>;
155
- readonly output_schema_ref: Schema.optionalKey<Schema.String>;
156
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
157
- }>;
158
- export interface ChildRunContext extends Schema.Schema.Type<typeof ChildRunContext> {
159
- }
160
- export declare const ChildRunOverride: Schema.Struct<{
161
- readonly instructions: Schema.optionalKey<Schema.String>;
162
- readonly model: Schema.optionalKey<Schema.Struct<{
163
- readonly provider: Schema.String;
164
- readonly model: Schema.String;
165
- readonly registration_key: Schema.optionalKey<Schema.String>;
166
- readonly request_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
167
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
168
- }>>;
169
- readonly compaction_policy: Schema.optionalKey<Schema.Struct<{
170
- readonly context_window: Schema.Finite;
171
- readonly reserve_tokens: Schema.Finite;
172
- readonly keep_recent_tokens: Schema.Finite;
173
- readonly summary_model: Schema.optionalKey<Schema.Struct<{
174
- readonly provider: Schema.String;
175
- readonly model: Schema.String;
176
- readonly registration_key: Schema.optionalKey<Schema.String>;
177
- readonly request_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
178
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
179
- }>>;
180
- }>>;
181
- readonly tool_names: Schema.optionalKey<Schema.$Array<Schema.String>>;
182
- readonly permissions: Schema.optionalKey<Schema.$Array<Schema.String>>;
183
- readonly workspace_policy: Schema.optionalKey<Schema.Struct<{
184
- readonly mode: Schema.Literals<readonly ["share", "fork"]>;
185
- readonly fallback: Schema.optionalKey<Schema.Literals<readonly ["fail", "fresh"]>>;
186
- }>>;
187
- readonly output_schema_ref: Schema.optionalKey<Schema.String>;
188
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
189
- }>;
190
- export interface ChildRunOverride extends Schema.Schema.Type<typeof ChildRunOverride> {
191
- }
192
- export declare const ChildRunPreset: Schema.Struct<{
193
- readonly instructions: Schema.optionalKey<Schema.String>;
194
- readonly model: Schema.optionalKey<Schema.Struct<{
195
- readonly provider: Schema.String;
196
- readonly model: Schema.String;
197
- readonly registration_key: Schema.optionalKey<Schema.String>;
198
- readonly request_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
199
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
200
- }>>;
201
- readonly compaction_policy: Schema.optionalKey<Schema.Struct<{
202
- readonly context_window: Schema.Finite;
203
- readonly reserve_tokens: Schema.Finite;
204
- readonly keep_recent_tokens: Schema.Finite;
205
- readonly summary_model: Schema.optionalKey<Schema.Struct<{
206
- readonly provider: Schema.String;
207
- readonly model: Schema.String;
208
- readonly registration_key: Schema.optionalKey<Schema.String>;
209
- readonly request_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
210
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
211
- }>>;
212
- }>>;
213
- readonly tool_names: Schema.optionalKey<Schema.$Array<Schema.String>>;
214
- readonly permissions: Schema.optionalKey<Schema.$Array<Schema.String>>;
215
- readonly workspace_policy: Schema.optionalKey<Schema.Struct<{
216
- readonly mode: Schema.Literals<readonly ["share", "fork"]>;
217
- readonly fallback: Schema.optionalKey<Schema.Literals<readonly ["fail", "fresh"]>>;
218
- }>>;
219
- readonly output_schema_ref: Schema.optionalKey<Schema.String>;
220
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
221
- }>;
222
- export interface ChildRunPreset extends Schema.Schema.Type<typeof ChildRunPreset> {
223
- }
224
- export declare const SpawnChildRunInput: Schema.Struct<{
225
- readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
226
- make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
227
- };
228
- readonly child_execution_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.ChildExecutionId"> & {
229
- make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ChildExecutionId">;
230
- }>;
231
- readonly address_id: Schema.brand<Schema.String, "Relay.AddressId"> & {
232
- make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
233
- };
234
- readonly parent_context: Schema.Struct<{
235
- readonly instructions: Schema.optionalKey<Schema.String>;
236
- readonly model: Schema.optionalKey<Schema.Struct<{
237
- readonly provider: Schema.String;
238
- readonly model: Schema.String;
239
- readonly registration_key: Schema.optionalKey<Schema.String>;
240
- readonly request_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
241
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
242
- }>>;
243
- readonly compaction_policy: Schema.optionalKey<Schema.Struct<{
244
- readonly context_window: Schema.Finite;
245
- readonly reserve_tokens: Schema.Finite;
246
- readonly keep_recent_tokens: Schema.Finite;
247
- readonly summary_model: Schema.optionalKey<Schema.Struct<{
248
- readonly provider: Schema.String;
249
- readonly model: Schema.String;
250
- readonly registration_key: Schema.optionalKey<Schema.String>;
251
- readonly request_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
252
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
253
- }>>;
254
- }>>;
255
- readonly tool_names: Schema.$Array<Schema.String>;
256
- readonly permissions: Schema.$Array<Schema.String>;
257
- readonly output_schema_ref: Schema.optionalKey<Schema.String>;
258
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
259
- }>;
260
- readonly presets: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
261
- readonly instructions: Schema.optionalKey<Schema.String>;
262
- readonly model: Schema.optionalKey<Schema.Struct<{
263
- readonly provider: Schema.String;
264
- readonly model: Schema.String;
265
- readonly registration_key: Schema.optionalKey<Schema.String>;
266
- readonly request_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
267
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
268
- }>>;
269
- readonly compaction_policy: Schema.optionalKey<Schema.Struct<{
270
- readonly context_window: Schema.Finite;
271
- readonly reserve_tokens: Schema.Finite;
272
- readonly keep_recent_tokens: Schema.Finite;
273
- readonly summary_model: Schema.optionalKey<Schema.Struct<{
274
- readonly provider: Schema.String;
275
- readonly model: Schema.String;
276
- readonly registration_key: Schema.optionalKey<Schema.String>;
277
- readonly request_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
278
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
279
- }>>;
280
- }>>;
281
- readonly tool_names: Schema.optionalKey<Schema.$Array<Schema.String>>;
282
- readonly permissions: Schema.optionalKey<Schema.$Array<Schema.String>>;
283
- readonly workspace_policy: Schema.optionalKey<Schema.Struct<{
284
- readonly mode: Schema.Literals<readonly ["share", "fork"]>;
285
- readonly fallback: Schema.optionalKey<Schema.Literals<readonly ["fail", "fresh"]>>;
286
- }>>;
287
- readonly output_schema_ref: Schema.optionalKey<Schema.String>;
288
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
289
- }>>>;
290
- readonly preset_name: Schema.optionalKey<Schema.String>;
291
- readonly instructions: Schema.optionalKey<Schema.String>;
292
- readonly model: Schema.optionalKey<Schema.Struct<{
293
- readonly provider: Schema.String;
294
- readonly model: Schema.String;
295
- readonly registration_key: Schema.optionalKey<Schema.String>;
296
- readonly request_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
297
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
298
- }>>;
299
- readonly compaction_policy: Schema.optionalKey<Schema.Struct<{
300
- readonly context_window: Schema.Finite;
301
- readonly reserve_tokens: Schema.Finite;
302
- readonly keep_recent_tokens: Schema.Finite;
303
- readonly summary_model: Schema.optionalKey<Schema.Struct<{
304
- readonly provider: Schema.String;
305
- readonly model: Schema.String;
306
- readonly registration_key: Schema.optionalKey<Schema.String>;
307
- readonly request_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
308
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
309
- }>>;
310
- }>>;
311
- readonly tool_names: Schema.optionalKey<Schema.$Array<Schema.String>>;
312
- readonly permissions: Schema.optionalKey<Schema.$Array<Schema.String>>;
313
- readonly workspace_policy: Schema.optionalKey<Schema.Struct<{
314
- readonly mode: Schema.Literals<readonly ["share", "fork"]>;
315
- readonly fallback: Schema.optionalKey<Schema.Literals<readonly ["fail", "fresh"]>>;
316
- }>>;
317
- readonly output_schema_ref: Schema.optionalKey<Schema.String>;
318
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
319
- readonly input: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
320
- readonly type: Schema.Literal<"text">;
321
- readonly text: Schema.String;
322
- readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
323
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
324
- }>, Schema.Struct<{
325
- readonly type: Schema.Literal<"structured">;
326
- readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
327
- readonly schema_ref: Schema.optionalKey<Schema.String>;
328
- readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
329
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
330
- }>, Schema.Struct<{
331
- readonly type: Schema.Literal<"blob-reference">;
332
- readonly uri: Schema.String;
333
- readonly media_type: Schema.String;
334
- readonly filename: Schema.optionalKey<Schema.String>;
335
- readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
336
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
337
- }>, Schema.Struct<{
338
- readonly type: Schema.Literal<"artifact-reference">;
339
- readonly artifact_id: Schema.String;
340
- readonly media_type: Schema.optionalKey<Schema.String>;
341
- readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
342
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
343
- }>, Schema.Struct<{
344
- readonly type: Schema.Literal<"tool-call">;
345
- readonly call: Schema.Struct<{
346
- readonly id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
347
- make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
348
- };
349
- readonly name: Schema.String;
350
- readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
351
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
352
- }>;
353
- readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
354
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
355
- }>, Schema.Struct<{
356
- readonly type: Schema.Literal<"tool-result">;
357
- readonly result: Schema.Struct<{
358
- readonly call_id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
359
- make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
360
- };
361
- readonly output: Schema.Codec<Schema.Json, Schema.Json, never, never>;
362
- readonly error: Schema.optionalKey<Schema.String>;
363
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
364
- }>;
365
- readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
366
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
367
- }>]>>>;
368
- readonly wait: Schema.optionalKey<Schema.Boolean>;
369
- readonly event_sequence: Schema.optionalKey<Schema.Int>;
370
- readonly created_at: Schema.optionalKey<Schema.Int>;
371
- }>;
372
- export interface SpawnChildRunInput extends Schema.Schema.Type<typeof SpawnChildRunInput> {
373
- }
374
- export declare const ChildRunAccepted: Schema.Struct<{
375
- readonly child_execution_id: Schema.brand<Schema.String, "Relay.ChildExecutionId"> & {
376
- make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ChildExecutionId">;
377
- };
378
- readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
379
- make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
380
- };
381
- }>;
382
- export interface ChildRunAccepted extends Schema.Schema.Type<typeof ChildRunAccepted> {
383
- }
384
- export declare const childSessionId: (childExecutionId: ChildExecutionId) => string & import("effect/Brand").Brand<"Relay.SessionId">;
385
- export declare const ExecutionEventType: 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", "budget.exceeded", "tool.call.requested", "tool.result.received", "tool.approval.requested", "tool.approval.resolved", "permission.ask.requested", "permission.ask.resolved", "steering.received", "state.updated", "state.deleted", "inbox.enqueued", "inbox.drained", "entity.created", "entity.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"]>;
386
- export type ExecutionEventType = typeof ExecutionEventType.Type;
387
- export declare const ExecutionEvent: Schema.Struct<{
388
- readonly id: Schema.brand<Schema.String, "Relay.EventId"> & {
389
- make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EventId">;
390
- };
391
- readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
392
- make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
393
- };
394
- readonly child_execution_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.ChildExecutionId"> & {
395
- make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ChildExecutionId">;
396
- }>;
397
- 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", "budget.exceeded", "tool.call.requested", "tool.result.received", "tool.approval.requested", "tool.approval.resolved", "permission.ask.requested", "permission.ask.resolved", "steering.received", "state.updated", "state.deleted", "inbox.enqueued", "inbox.drained", "entity.created", "entity.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"]>;
398
- readonly sequence: Schema.Int;
399
- readonly cursor: Schema.String;
400
- readonly content: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
401
- readonly type: Schema.Literal<"text">;
402
- readonly text: Schema.String;
403
- readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
404
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
405
- }>, Schema.Struct<{
406
- readonly type: Schema.Literal<"structured">;
407
- readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
408
- readonly schema_ref: Schema.optionalKey<Schema.String>;
409
- readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
410
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
411
- }>, Schema.Struct<{
412
- readonly type: Schema.Literal<"blob-reference">;
413
- readonly uri: Schema.String;
414
- readonly media_type: Schema.String;
415
- readonly filename: Schema.optionalKey<Schema.String>;
416
- readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
417
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
418
- }>, Schema.Struct<{
419
- readonly type: Schema.Literal<"artifact-reference">;
420
- readonly artifact_id: Schema.String;
421
- readonly media_type: Schema.optionalKey<Schema.String>;
422
- readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
423
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
424
- }>, Schema.Struct<{
425
- readonly type: Schema.Literal<"tool-call">;
426
- readonly call: Schema.Struct<{
427
- readonly id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
428
- make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
429
- };
430
- readonly name: Schema.String;
431
- readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
432
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
433
- }>;
434
- readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
435
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
436
- }>, Schema.Struct<{
437
- readonly type: Schema.Literal<"tool-result">;
438
- readonly result: Schema.Struct<{
439
- readonly call_id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
440
- make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
441
- };
442
- readonly output: Schema.Codec<Schema.Json, Schema.Json, never, never>;
443
- readonly error: Schema.optionalKey<Schema.String>;
444
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
445
- }>;
446
- readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
447
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
448
- }>]>>>;
449
- readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
450
- readonly created_at: Schema.Int;
451
- }>;
452
- export interface ExecutionEvent extends Schema.Schema.Type<typeof ExecutionEvent> {
453
- }