@relayfx/sdk 0.0.6 → 0.0.8
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 +8850 -4110
- package/dist/migrations/20260705003847_nervous_banshee/migration.sql +11 -0
- package/dist/migrations/20260705003847_nervous_banshee/snapshot.json +2954 -0
- package/dist/migrations/20260705012626_common_stryfe/migration.sql +31 -0
- package/dist/migrations/20260705012626_common_stryfe/snapshot.json +3378 -0
- package/dist/migrations/20260705015420_sweet_captain_marvel/migration.sql +10 -0
- package/dist/migrations/20260705015420_sweet_captain_marvel/snapshot.json +3485 -0
- package/dist/migrations/20260705023041_chunky_scalphunter/migration.sql +22 -0
- package/dist/migrations/20260705023041_chunky_scalphunter/snapshot.json +3753 -0
- package/dist/migrations/20260705030344_short_patriot/migration.sql +11 -0
- package/dist/migrations/20260705030344_short_patriot/snapshot.json +3873 -0
- package/dist/migrations/20260705045546_heavy_ben_grimm/migration.sql +30 -0
- package/dist/migrations/20260705045546_heavy_ben_grimm/snapshot.json +4193 -0
- package/dist/migrations/20260706185931_regular_shadow_king/migration.sql +166 -0
- package/dist/migrations/20260706185931_regular_shadow_king/snapshot.json +4844 -0
- package/dist/types/ai/embedding-model/embedding-model-registration.d.ts +45 -0
- package/dist/types/ai/index.d.ts +1 -0
- package/dist/types/relay/client.d.ts +20 -4
- package/dist/types/relay/index.d.ts +3 -3
- package/dist/types/relay/operation.d.ts +242 -1
- package/dist/types/runtime/address/address-resolution-service.d.ts +15 -0
- package/dist/types/runtime/agent/agent-loop-service.d.ts +39 -10
- package/dist/types/runtime/agent/relay-approvals.d.ts +15 -3
- package/dist/types/runtime/agent/relay-compaction.d.ts +22 -0
- package/dist/types/runtime/agent/relay-instructions.d.ts +22 -0
- package/dist/types/runtime/agent/relay-permissions.d.ts +25 -0
- package/dist/types/runtime/agent/relay-steering.d.ts +17 -0
- package/dist/types/runtime/agent/relay-tool-executor.d.ts +3 -0
- package/dist/types/runtime/agent/relay-tool-output.d.ts +7 -0
- package/dist/types/runtime/child/spawn-child-run-tool.d.ts +209 -0
- package/dist/types/runtime/cluster/execution-entity.d.ts +101 -2
- package/dist/types/runtime/execution/event-log-service.d.ts +6 -0
- package/dist/types/runtime/execution/execution-service.d.ts +1 -0
- package/dist/types/runtime/index.d.ts +10 -0
- package/dist/types/runtime/memory/memory-service.d.ts +20 -0
- package/dist/types/runtime/model/embedding-model-service.d.ts +68 -0
- package/dist/types/runtime/model/model-call-policy.d.ts +30 -11
- package/dist/types/runtime/runner/runner-runtime-service.d.ts +41 -21
- package/dist/types/runtime/schedule/scheduler-service.d.ts +4 -4
- package/dist/types/runtime/session/session-store-service.d.ts +14 -0
- package/dist/types/runtime/skill/skill-registry-service.d.ts +44 -0
- package/dist/types/runtime/tool/tool-runtime-service.d.ts +5 -0
- package/dist/types/runtime/wait/wait-signal.d.ts +2 -1
- package/dist/types/runtime/workflow/activity-version-registry.d.ts +89 -0
- package/dist/types/runtime/workflow/execution-workflow.d.ts +109 -4
- package/dist/types/schema/agent-schema.d.ts +130 -0
- package/dist/types/schema/content-schema.d.ts +12 -0
- package/dist/types/schema/envelope-schema.d.ts +12 -0
- package/dist/types/schema/execution-schema.d.ts +32 -2
- package/dist/types/schema/ids-schema.d.ts +21 -0
- package/dist/types/schema/index.d.ts +1 -0
- package/dist/types/schema/schedule-schema.d.ts +6 -0
- package/dist/types/schema/skill-schema.d.ts +260 -0
- package/dist/types/schema/tool-schema.d.ts +2 -0
- package/dist/types/store-sql/child/child-execution-repository.d.ts +1 -0
- package/dist/types/store-sql/compaction/compaction-repository.d.ts +37 -0
- package/dist/types/store-sql/execution/execution-repository.d.ts +3 -0
- package/dist/types/store-sql/index.d.ts +8 -0
- package/dist/types/store-sql/memory/memory-repository.d.ts +50 -0
- package/dist/types/store-sql/permission/permission-rule-repository.d.ts +37 -0
- package/dist/types/store-sql/schema/relay-schema.d.ts +1542 -91
- package/dist/types/store-sql/session/context-epoch-repository.d.ts +33 -0
- package/dist/types/store-sql/session/session-repository.d.ts +139 -0
- package/dist/types/store-sql/skill/skill-definition-repository.d.ts +71 -0
- package/dist/types/store-sql/steering/steering-repository.d.ts +59 -0
- package/dist/types/store-sql/tenant/tenant-id.d.ts +15 -0
- package/package.json +3 -3
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { Ids } from "../../schema/index";
|
|
2
|
-
import { ExecutionRepository } from "../../store-sql/index";
|
|
2
|
+
import { ChildExecutionRepository, ExecutionRepository } from "../../store-sql/index";
|
|
3
3
|
import { Workflow } from "effect/unstable/workflow";
|
|
4
4
|
import { Effect, Layer, Option, Schema } from "effect";
|
|
5
5
|
import * as AddressResolution from "../address/address-resolution-service";
|
|
6
6
|
import * as AgentLoop from "../agent/agent-loop-service";
|
|
7
|
+
import * as ParentNotifier from "../child/parent-notifier-service";
|
|
8
|
+
import * as SkillRegistry from "../skill/skill-registry-service";
|
|
7
9
|
import * as EventLog from "../execution/event-log-service";
|
|
8
10
|
import * as ExecutionService from "../execution/execution-service";
|
|
9
11
|
import * as ToolRuntime from "../tool/tool-runtime-service";
|
|
@@ -21,25 +23,32 @@ export declare const StartInput: Schema.Struct<{
|
|
|
21
23
|
readonly root_address_id: Schema.brand<Schema.String, "Relay.AddressId"> & {
|
|
22
24
|
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
|
|
23
25
|
};
|
|
26
|
+
readonly session_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.SessionId"> & {
|
|
27
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SessionId">;
|
|
28
|
+
}>;
|
|
24
29
|
readonly input: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
25
30
|
readonly type: Schema.Literal<"text">;
|
|
26
31
|
readonly text: Schema.String;
|
|
32
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
27
33
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
28
34
|
}>, Schema.Struct<{
|
|
29
35
|
readonly type: Schema.Literal<"structured">;
|
|
30
36
|
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
31
37
|
readonly schema_ref: Schema.optionalKey<Schema.String>;
|
|
38
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
32
39
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
33
40
|
}>, Schema.Struct<{
|
|
34
41
|
readonly type: Schema.Literal<"blob-reference">;
|
|
35
42
|
readonly uri: Schema.String;
|
|
36
43
|
readonly media_type: Schema.String;
|
|
37
44
|
readonly filename: Schema.optionalKey<Schema.String>;
|
|
45
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
38
46
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
39
47
|
}>, Schema.Struct<{
|
|
40
48
|
readonly type: Schema.Literal<"artifact-reference">;
|
|
41
49
|
readonly artifact_id: Schema.String;
|
|
42
50
|
readonly media_type: Schema.optionalKey<Schema.String>;
|
|
51
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
43
52
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
44
53
|
}>, Schema.Struct<{
|
|
45
54
|
readonly type: Schema.Literal<"tool-call">;
|
|
@@ -51,6 +60,7 @@ export declare const StartInput: Schema.Struct<{
|
|
|
51
60
|
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
52
61
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
53
62
|
}>;
|
|
63
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
54
64
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
55
65
|
}>, Schema.Struct<{
|
|
56
66
|
readonly type: Schema.Literal<"tool-result">;
|
|
@@ -62,6 +72,7 @@ export declare const StartInput: Schema.Struct<{
|
|
|
62
72
|
readonly error: Schema.optionalKey<Schema.String>;
|
|
63
73
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
64
74
|
}>;
|
|
75
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
65
76
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
66
77
|
}>]>>>;
|
|
67
78
|
readonly event_sequence: Schema.Int;
|
|
@@ -87,6 +98,17 @@ export declare const StartInput: Schema.Struct<{
|
|
|
87
98
|
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
88
99
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
89
100
|
}>>;
|
|
101
|
+
readonly skill_definition_ids: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "Relay.SkillDefinitionId"> & {
|
|
102
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SkillDefinitionId">;
|
|
103
|
+
}>>;
|
|
104
|
+
readonly permission_rules: Schema.optionalKey<Schema.Struct<{
|
|
105
|
+
readonly rules: Schema.$Array<Schema.Struct<{
|
|
106
|
+
readonly pattern: Schema.String;
|
|
107
|
+
readonly level: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
108
|
+
readonly reason: Schema.optionalKey<Schema.String>;
|
|
109
|
+
}>>;
|
|
110
|
+
readonly fallback: Schema.optionalKey<Schema.Literals<readonly ["allow", "deny", "ask"]>>;
|
|
111
|
+
}>>;
|
|
90
112
|
readonly max_tool_turns: Schema.optionalKey<Schema.Int>;
|
|
91
113
|
readonly max_wait_turns: Schema.optionalKey<Schema.Int>;
|
|
92
114
|
readonly token_budget: Schema.optionalKey<Schema.Int>;
|
|
@@ -108,12 +130,25 @@ export declare const StartInput: Schema.Struct<{
|
|
|
108
130
|
readonly output_schema_ref: Schema.optionalKey<Schema.String>;
|
|
109
131
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
110
132
|
}>>>;
|
|
133
|
+
readonly handoff_targets: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
134
|
+
readonly name: Schema.String;
|
|
135
|
+
readonly preset_name: Schema.String;
|
|
136
|
+
}>>>;
|
|
111
137
|
readonly output_schema_ref: Schema.optionalKey<Schema.String>;
|
|
112
138
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
113
139
|
}>>;
|
|
114
140
|
readonly wait_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.WaitId"> & {
|
|
115
141
|
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WaitId">;
|
|
116
142
|
}>;
|
|
143
|
+
readonly resume_tool_call: Schema.optionalKey<Schema.Struct<{
|
|
144
|
+
readonly id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
|
|
145
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
|
|
146
|
+
};
|
|
147
|
+
readonly name: Schema.String;
|
|
148
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
149
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
150
|
+
}>>;
|
|
151
|
+
readonly workflow_generation: Schema.optionalKey<Schema.Int>;
|
|
117
152
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
118
153
|
}>;
|
|
119
154
|
export interface StartInput extends Schema.Schema.Type<typeof StartInput> {
|
|
@@ -188,6 +223,41 @@ export declare const StartResult: Schema.Struct<{
|
|
|
188
223
|
}>;
|
|
189
224
|
export interface StartResult extends Schema.Schema.Type<typeof StartResult> {
|
|
190
225
|
}
|
|
226
|
+
export declare const StartExecutionWorkflowName = "Relay/Execution/Start";
|
|
227
|
+
export declare const ActivityNames: {
|
|
228
|
+
readonly resolveLocalAgent: "Relay/Execution/Start/ResolveLocalAgent";
|
|
229
|
+
readonly accept: "Relay/Execution/Start/Accept";
|
|
230
|
+
readonly cancel: (turn: number) => string;
|
|
231
|
+
readonly checkCancel: (turn: number) => string;
|
|
232
|
+
readonly loadWaitBeforeSleep: (waitId: Ids.WaitId) => string;
|
|
233
|
+
readonly loadWaitAfterWake: (waitId: Ids.WaitId) => string;
|
|
234
|
+
readonly markWaiting: (waitId: Ids.WaitId) => string;
|
|
235
|
+
readonly ensureWorkspace: "Relay/Execution/Start/EnsureWorkspace";
|
|
236
|
+
readonly suspendWorkspace: (key: string) => string;
|
|
237
|
+
readonly resumeWorkspace: (key: string) => string;
|
|
238
|
+
readonly releaseWorkspace: "Relay/Execution/Start/ReleaseWorkspace";
|
|
239
|
+
readonly complete: (turn: number) => string;
|
|
240
|
+
readonly checkQueuedChildCancellation: "Relay/Execution/Start/CheckQueuedChildCancellation";
|
|
241
|
+
readonly notifyParent: (status: ParentNotifier.ChildTerminalStatus) => string;
|
|
242
|
+
readonly continueAsNew: (turn: number) => string;
|
|
243
|
+
};
|
|
244
|
+
export declare const ActivityNameTemplates: {
|
|
245
|
+
readonly resolveLocalAgent: "Relay/Execution/Start/ResolveLocalAgent";
|
|
246
|
+
readonly accept: "Relay/Execution/Start/Accept";
|
|
247
|
+
readonly cancel: "Relay/Execution/Start/Cancel/:turn";
|
|
248
|
+
readonly checkCancel: "Relay/Execution/Start/CheckCancel/:turn";
|
|
249
|
+
readonly loadWaitBeforeSleep: "Relay/Execution/Start/LoadWaitBeforeSleep/:wait_id";
|
|
250
|
+
readonly loadWaitAfterWake: "Relay/Execution/Start/LoadWaitAfterWake/:wait_id";
|
|
251
|
+
readonly markWaiting: "Relay/Execution/Start/MarkWaiting/:wait_id";
|
|
252
|
+
readonly ensureWorkspace: "Relay/Execution/Start/EnsureWorkspace";
|
|
253
|
+
readonly suspendWorkspace: "Relay/Execution/Start/SuspendWorkspace/:key";
|
|
254
|
+
readonly resumeWorkspace: "Relay/Execution/Start/ResumeWorkspace/:key";
|
|
255
|
+
readonly releaseWorkspace: "Relay/Execution/Start/ReleaseWorkspace";
|
|
256
|
+
readonly complete: "Relay/Execution/Start/Complete/:turn";
|
|
257
|
+
readonly checkQueuedChildCancellation: "Relay/Execution/Start/CheckQueuedChildCancellation";
|
|
258
|
+
readonly notifyParent: "Relay/Execution/Start/NotifyParent/:status";
|
|
259
|
+
readonly continueAsNew: "Relay/Execution/Start/ContinueAsNew/:turn";
|
|
260
|
+
};
|
|
191
261
|
export declare const StartExecutionWorkflow: Workflow.Workflow<"Relay/Execution/Start", Schema.Struct<{
|
|
192
262
|
readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
193
263
|
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
@@ -195,25 +265,32 @@ export declare const StartExecutionWorkflow: Workflow.Workflow<"Relay/Execution/
|
|
|
195
265
|
readonly root_address_id: Schema.brand<Schema.String, "Relay.AddressId"> & {
|
|
196
266
|
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
|
|
197
267
|
};
|
|
268
|
+
readonly session_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.SessionId"> & {
|
|
269
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SessionId">;
|
|
270
|
+
}>;
|
|
198
271
|
readonly input: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
199
272
|
readonly type: Schema.Literal<"text">;
|
|
200
273
|
readonly text: Schema.String;
|
|
274
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
201
275
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
202
276
|
}>, Schema.Struct<{
|
|
203
277
|
readonly type: Schema.Literal<"structured">;
|
|
204
278
|
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
205
279
|
readonly schema_ref: Schema.optionalKey<Schema.String>;
|
|
280
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
206
281
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
207
282
|
}>, Schema.Struct<{
|
|
208
283
|
readonly type: Schema.Literal<"blob-reference">;
|
|
209
284
|
readonly uri: Schema.String;
|
|
210
285
|
readonly media_type: Schema.String;
|
|
211
286
|
readonly filename: Schema.optionalKey<Schema.String>;
|
|
287
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
212
288
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
213
289
|
}>, Schema.Struct<{
|
|
214
290
|
readonly type: Schema.Literal<"artifact-reference">;
|
|
215
291
|
readonly artifact_id: Schema.String;
|
|
216
292
|
readonly media_type: Schema.optionalKey<Schema.String>;
|
|
293
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
217
294
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
218
295
|
}>, Schema.Struct<{
|
|
219
296
|
readonly type: Schema.Literal<"tool-call">;
|
|
@@ -225,6 +302,7 @@ export declare const StartExecutionWorkflow: Workflow.Workflow<"Relay/Execution/
|
|
|
225
302
|
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
226
303
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
227
304
|
}>;
|
|
305
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
228
306
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
229
307
|
}>, Schema.Struct<{
|
|
230
308
|
readonly type: Schema.Literal<"tool-result">;
|
|
@@ -236,6 +314,7 @@ export declare const StartExecutionWorkflow: Workflow.Workflow<"Relay/Execution/
|
|
|
236
314
|
readonly error: Schema.optionalKey<Schema.String>;
|
|
237
315
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
238
316
|
}>;
|
|
317
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
239
318
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
240
319
|
}>]>>>;
|
|
241
320
|
readonly event_sequence: Schema.Int;
|
|
@@ -261,6 +340,17 @@ export declare const StartExecutionWorkflow: Workflow.Workflow<"Relay/Execution/
|
|
|
261
340
|
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
262
341
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
263
342
|
}>>;
|
|
343
|
+
readonly skill_definition_ids: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "Relay.SkillDefinitionId"> & {
|
|
344
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SkillDefinitionId">;
|
|
345
|
+
}>>;
|
|
346
|
+
readonly permission_rules: Schema.optionalKey<Schema.Struct<{
|
|
347
|
+
readonly rules: Schema.$Array<Schema.Struct<{
|
|
348
|
+
readonly pattern: Schema.String;
|
|
349
|
+
readonly level: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
350
|
+
readonly reason: Schema.optionalKey<Schema.String>;
|
|
351
|
+
}>>;
|
|
352
|
+
readonly fallback: Schema.optionalKey<Schema.Literals<readonly ["allow", "deny", "ask"]>>;
|
|
353
|
+
}>>;
|
|
264
354
|
readonly max_tool_turns: Schema.optionalKey<Schema.Int>;
|
|
265
355
|
readonly max_wait_turns: Schema.optionalKey<Schema.Int>;
|
|
266
356
|
readonly token_budget: Schema.optionalKey<Schema.Int>;
|
|
@@ -282,12 +372,25 @@ export declare const StartExecutionWorkflow: Workflow.Workflow<"Relay/Execution/
|
|
|
282
372
|
readonly output_schema_ref: Schema.optionalKey<Schema.String>;
|
|
283
373
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
284
374
|
}>>>;
|
|
375
|
+
readonly handoff_targets: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
376
|
+
readonly name: Schema.String;
|
|
377
|
+
readonly preset_name: Schema.String;
|
|
378
|
+
}>>>;
|
|
285
379
|
readonly output_schema_ref: Schema.optionalKey<Schema.String>;
|
|
286
380
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
287
381
|
}>>;
|
|
288
382
|
readonly wait_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.WaitId"> & {
|
|
289
383
|
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WaitId">;
|
|
290
384
|
}>;
|
|
385
|
+
readonly resume_tool_call: Schema.optionalKey<Schema.Struct<{
|
|
386
|
+
readonly id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
|
|
387
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
|
|
388
|
+
};
|
|
389
|
+
readonly name: Schema.String;
|
|
390
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
391
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
392
|
+
}>>;
|
|
393
|
+
readonly workflow_generation: Schema.optionalKey<Schema.Int>;
|
|
291
394
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
292
395
|
}>, Schema.Struct<{
|
|
293
396
|
readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
@@ -300,7 +403,8 @@ export declare const StartExecutionWorkflow: Workflow.Workflow<"Relay/Execution/
|
|
|
300
403
|
readonly wait_state: Schema.optionalKey<Schema.Literals<readonly ["resolved", "timed_out", "cancelled"]>>;
|
|
301
404
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
302
405
|
}>, typeof ExecutionWorkflowFailed>;
|
|
303
|
-
export declare const
|
|
406
|
+
export declare const sessionEntryScope: (input: StartInput, turn: number) => string;
|
|
407
|
+
export declare const layer: Layer.Layer<never, never, ChildExecutionRepository.Service | ExecutionRepository.Service | AddressResolution.Service | EventLog.Service | WaitService.Service | ToolRuntime.Service | AgentLoop.Service | SkillRegistry.Service | ExecutionService.Service | WorkspacePlanner.Service | import("effect/unstable/workflow/WorkflowEngine").WorkflowEngine>;
|
|
304
408
|
export declare const start: <const Discard extends boolean = false>(input: StartInput, options?: {
|
|
305
409
|
readonly discard?: Discard;
|
|
306
410
|
}) => Effect.Effect<Discard extends true ? string : {
|
|
@@ -324,7 +428,7 @@ export declare const startRequest: (input: StartInput) => Effect.Effect<{
|
|
|
324
428
|
export declare const cancelRequest: (input: CancelExecutionInput) => Effect.Effect<{
|
|
325
429
|
execution_id: string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
326
430
|
status: "queued" | "running" | "waiting" | "completed" | "failed" | "cancelled";
|
|
327
|
-
}, ExecutionWorkflowFailed, ExecutionRepository.Service | EventLog.Service | WaitService.Service | import("effect/unstable/workflow/WorkflowEngine").WorkflowEngine>;
|
|
431
|
+
}, ExecutionWorkflowFailed, ChildExecutionRepository.Service | ExecutionRepository.Service | EventLog.Service | WaitService.Service | import("effect/unstable/workflow/WorkflowEngine").WorkflowEngine>;
|
|
328
432
|
export declare const poll: (executionId: string) => Effect.Effect<Option.Option<Workflow.Result<{
|
|
329
433
|
readonly execution_id: string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
330
434
|
readonly status: "queued" | "running" | "waiting" | "completed" | "failed" | "cancelled";
|
|
@@ -336,6 +440,7 @@ export declare const poll: (executionId: string) => Effect.Effect<Option.Option<
|
|
|
336
440
|
}, ExecutionWorkflowFailed>>, never, import("effect/unstable/workflow/WorkflowEngine").WorkflowEngine>;
|
|
337
441
|
export declare const resume: (executionId: string) => Effect.Effect<void, never, import("effect/unstable/workflow/WorkflowEngine").WorkflowEngine>;
|
|
338
442
|
export declare const workflowExecutionId: (input: StartInput) => Effect.Effect<string, never, never>;
|
|
339
|
-
export declare const workflowExecutionIdForExecution: (executionId: Ids.ExecutionId) => Effect.Effect<string, never, never>;
|
|
443
|
+
export declare const workflowExecutionIdForExecution: (executionId: Ids.ExecutionId, workflowGeneration?: number) => Effect.Effect<string, never, never>;
|
|
444
|
+
export declare const activeWorkflowExecutionIdForExecution: (executionId: string & import("effect/Brand").Brand<"Relay.ExecutionId">) => Effect.Effect<string, ExecutionWorkflowFailed, ExecutionRepository.Service>;
|
|
340
445
|
export declare const signalWait: (input: SignalWaitInput) => Effect.Effect<void, never, import("effect/unstable/workflow/WorkflowEngine").WorkflowEngine>;
|
|
341
446
|
export {};
|
|
@@ -36,6 +36,31 @@ export declare const ChildRunPreset: Schema.Struct<{
|
|
|
36
36
|
}>;
|
|
37
37
|
export interface ChildRunPreset extends Schema.Schema.Type<typeof ChildRunPreset> {
|
|
38
38
|
}
|
|
39
|
+
export declare const HandoffTarget: Schema.Struct<{
|
|
40
|
+
readonly name: Schema.String;
|
|
41
|
+
readonly preset_name: Schema.String;
|
|
42
|
+
}>;
|
|
43
|
+
export interface HandoffTarget extends Schema.Schema.Type<typeof HandoffTarget> {
|
|
44
|
+
}
|
|
45
|
+
export declare const PermissionLevel: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
46
|
+
export type PermissionLevel = typeof PermissionLevel.Type;
|
|
47
|
+
export declare const PermissionRule: Schema.Struct<{
|
|
48
|
+
readonly pattern: Schema.String;
|
|
49
|
+
readonly level: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
50
|
+
readonly reason: Schema.optionalKey<Schema.String>;
|
|
51
|
+
}>;
|
|
52
|
+
export interface PermissionRule extends Schema.Schema.Type<typeof PermissionRule> {
|
|
53
|
+
}
|
|
54
|
+
export declare const PermissionRuleset: Schema.Struct<{
|
|
55
|
+
readonly rules: Schema.$Array<Schema.Struct<{
|
|
56
|
+
readonly pattern: Schema.String;
|
|
57
|
+
readonly level: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
58
|
+
readonly reason: Schema.optionalKey<Schema.String>;
|
|
59
|
+
}>>;
|
|
60
|
+
readonly fallback: Schema.optionalKey<Schema.Literals<readonly ["allow", "deny", "ask"]>>;
|
|
61
|
+
}>;
|
|
62
|
+
export interface PermissionRuleset extends Schema.Schema.Type<typeof PermissionRuleset> {
|
|
63
|
+
}
|
|
39
64
|
/**
|
|
40
65
|
* Default per-`AgentLoop.run` tool-turn budget when `max_tool_turns` is absent.
|
|
41
66
|
* Preserves pre-configuration behavior bit-for-bit.
|
|
@@ -62,6 +87,17 @@ export declare const Definition: Schema.Struct<{
|
|
|
62
87
|
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
63
88
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
64
89
|
}>>;
|
|
90
|
+
readonly skill_definition_ids: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "Relay.SkillDefinitionId"> & {
|
|
91
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SkillDefinitionId">;
|
|
92
|
+
}>>;
|
|
93
|
+
readonly permission_rules: Schema.optionalKey<Schema.Struct<{
|
|
94
|
+
readonly rules: Schema.$Array<Schema.Struct<{
|
|
95
|
+
readonly pattern: Schema.String;
|
|
96
|
+
readonly level: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
97
|
+
readonly reason: Schema.optionalKey<Schema.String>;
|
|
98
|
+
}>>;
|
|
99
|
+
readonly fallback: Schema.optionalKey<Schema.Literals<readonly ["allow", "deny", "ask"]>>;
|
|
100
|
+
}>>;
|
|
65
101
|
readonly max_tool_turns: Schema.optionalKey<Schema.Int>;
|
|
66
102
|
readonly max_wait_turns: Schema.optionalKey<Schema.Int>;
|
|
67
103
|
readonly token_budget: Schema.optionalKey<Schema.Int>;
|
|
@@ -83,6 +119,10 @@ export declare const Definition: Schema.Struct<{
|
|
|
83
119
|
readonly output_schema_ref: Schema.optionalKey<Schema.String>;
|
|
84
120
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
85
121
|
}>>>;
|
|
122
|
+
readonly handoff_targets: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
123
|
+
readonly name: Schema.String;
|
|
124
|
+
readonly preset_name: Schema.String;
|
|
125
|
+
}>>>;
|
|
86
126
|
readonly output_schema_ref: Schema.optionalKey<Schema.String>;
|
|
87
127
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
88
128
|
}>;
|
|
@@ -109,6 +149,17 @@ export declare const DefinitionRecord: Schema.Struct<{
|
|
|
109
149
|
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
110
150
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
111
151
|
}>>;
|
|
152
|
+
readonly skill_definition_ids: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "Relay.SkillDefinitionId"> & {
|
|
153
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SkillDefinitionId">;
|
|
154
|
+
}>>;
|
|
155
|
+
readonly permission_rules: Schema.optionalKey<Schema.Struct<{
|
|
156
|
+
readonly rules: Schema.$Array<Schema.Struct<{
|
|
157
|
+
readonly pattern: Schema.String;
|
|
158
|
+
readonly level: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
159
|
+
readonly reason: Schema.optionalKey<Schema.String>;
|
|
160
|
+
}>>;
|
|
161
|
+
readonly fallback: Schema.optionalKey<Schema.Literals<readonly ["allow", "deny", "ask"]>>;
|
|
162
|
+
}>>;
|
|
112
163
|
readonly max_tool_turns: Schema.optionalKey<Schema.Int>;
|
|
113
164
|
readonly max_wait_turns: Schema.optionalKey<Schema.Int>;
|
|
114
165
|
readonly token_budget: Schema.optionalKey<Schema.Int>;
|
|
@@ -130,6 +181,10 @@ export declare const DefinitionRecord: Schema.Struct<{
|
|
|
130
181
|
readonly output_schema_ref: Schema.optionalKey<Schema.String>;
|
|
131
182
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
132
183
|
}>>>;
|
|
184
|
+
readonly handoff_targets: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
185
|
+
readonly name: Schema.String;
|
|
186
|
+
readonly preset_name: Schema.String;
|
|
187
|
+
}>>>;
|
|
133
188
|
readonly output_schema_ref: Schema.optionalKey<Schema.String>;
|
|
134
189
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
135
190
|
}>;
|
|
@@ -159,6 +214,17 @@ export declare const DefinitionRevisionRecord: Schema.Struct<{
|
|
|
159
214
|
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
160
215
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
161
216
|
}>>;
|
|
217
|
+
readonly skill_definition_ids: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "Relay.SkillDefinitionId"> & {
|
|
218
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SkillDefinitionId">;
|
|
219
|
+
}>>;
|
|
220
|
+
readonly permission_rules: Schema.optionalKey<Schema.Struct<{
|
|
221
|
+
readonly rules: Schema.$Array<Schema.Struct<{
|
|
222
|
+
readonly pattern: Schema.String;
|
|
223
|
+
readonly level: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
224
|
+
readonly reason: Schema.optionalKey<Schema.String>;
|
|
225
|
+
}>>;
|
|
226
|
+
readonly fallback: Schema.optionalKey<Schema.Literals<readonly ["allow", "deny", "ask"]>>;
|
|
227
|
+
}>>;
|
|
162
228
|
readonly max_tool_turns: Schema.optionalKey<Schema.Int>;
|
|
163
229
|
readonly max_wait_turns: Schema.optionalKey<Schema.Int>;
|
|
164
230
|
readonly token_budget: Schema.optionalKey<Schema.Int>;
|
|
@@ -180,6 +246,10 @@ export declare const DefinitionRevisionRecord: Schema.Struct<{
|
|
|
180
246
|
readonly output_schema_ref: Schema.optionalKey<Schema.String>;
|
|
181
247
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
182
248
|
}>>>;
|
|
249
|
+
readonly handoff_targets: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
250
|
+
readonly name: Schema.String;
|
|
251
|
+
readonly preset_name: Schema.String;
|
|
252
|
+
}>>>;
|
|
183
253
|
readonly output_schema_ref: Schema.optionalKey<Schema.String>;
|
|
184
254
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
185
255
|
}>;
|
|
@@ -207,6 +277,17 @@ export declare const RegisterDefinitionPayload: Schema.Struct<{
|
|
|
207
277
|
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
208
278
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
209
279
|
}>>;
|
|
280
|
+
readonly skill_definition_ids: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "Relay.SkillDefinitionId"> & {
|
|
281
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SkillDefinitionId">;
|
|
282
|
+
}>>;
|
|
283
|
+
readonly permission_rules: Schema.optionalKey<Schema.Struct<{
|
|
284
|
+
readonly rules: Schema.$Array<Schema.Struct<{
|
|
285
|
+
readonly pattern: Schema.String;
|
|
286
|
+
readonly level: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
287
|
+
readonly reason: Schema.optionalKey<Schema.String>;
|
|
288
|
+
}>>;
|
|
289
|
+
readonly fallback: Schema.optionalKey<Schema.Literals<readonly ["allow", "deny", "ask"]>>;
|
|
290
|
+
}>>;
|
|
210
291
|
readonly max_tool_turns: Schema.optionalKey<Schema.Int>;
|
|
211
292
|
readonly max_wait_turns: Schema.optionalKey<Schema.Int>;
|
|
212
293
|
readonly token_budget: Schema.optionalKey<Schema.Int>;
|
|
@@ -228,6 +309,10 @@ export declare const RegisterDefinitionPayload: Schema.Struct<{
|
|
|
228
309
|
readonly output_schema_ref: Schema.optionalKey<Schema.String>;
|
|
229
310
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
230
311
|
}>>>;
|
|
312
|
+
readonly handoff_targets: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
313
|
+
readonly name: Schema.String;
|
|
314
|
+
readonly preset_name: Schema.String;
|
|
315
|
+
}>>>;
|
|
231
316
|
readonly output_schema_ref: Schema.optionalKey<Schema.String>;
|
|
232
317
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
233
318
|
}>;
|
|
@@ -256,6 +341,17 @@ export declare const DefinitionRegistered: Schema.Struct<{
|
|
|
256
341
|
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
257
342
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
258
343
|
}>>;
|
|
344
|
+
readonly skill_definition_ids: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "Relay.SkillDefinitionId"> & {
|
|
345
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SkillDefinitionId">;
|
|
346
|
+
}>>;
|
|
347
|
+
readonly permission_rules: Schema.optionalKey<Schema.Struct<{
|
|
348
|
+
readonly rules: Schema.$Array<Schema.Struct<{
|
|
349
|
+
readonly pattern: Schema.String;
|
|
350
|
+
readonly level: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
351
|
+
readonly reason: Schema.optionalKey<Schema.String>;
|
|
352
|
+
}>>;
|
|
353
|
+
readonly fallback: Schema.optionalKey<Schema.Literals<readonly ["allow", "deny", "ask"]>>;
|
|
354
|
+
}>>;
|
|
259
355
|
readonly max_tool_turns: Schema.optionalKey<Schema.Int>;
|
|
260
356
|
readonly max_wait_turns: Schema.optionalKey<Schema.Int>;
|
|
261
357
|
readonly token_budget: Schema.optionalKey<Schema.Int>;
|
|
@@ -277,6 +373,10 @@ export declare const DefinitionRegistered: Schema.Struct<{
|
|
|
277
373
|
readonly output_schema_ref: Schema.optionalKey<Schema.String>;
|
|
278
374
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
279
375
|
}>>>;
|
|
376
|
+
readonly handoff_targets: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
377
|
+
readonly name: Schema.String;
|
|
378
|
+
readonly preset_name: Schema.String;
|
|
379
|
+
}>>>;
|
|
280
380
|
readonly output_schema_ref: Schema.optionalKey<Schema.String>;
|
|
281
381
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
282
382
|
}>;
|
|
@@ -308,6 +408,17 @@ export declare const DefinitionList: Schema.Struct<{
|
|
|
308
408
|
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
309
409
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
310
410
|
}>>;
|
|
411
|
+
readonly skill_definition_ids: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "Relay.SkillDefinitionId"> & {
|
|
412
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SkillDefinitionId">;
|
|
413
|
+
}>>;
|
|
414
|
+
readonly permission_rules: Schema.optionalKey<Schema.Struct<{
|
|
415
|
+
readonly rules: Schema.$Array<Schema.Struct<{
|
|
416
|
+
readonly pattern: Schema.String;
|
|
417
|
+
readonly level: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
418
|
+
readonly reason: Schema.optionalKey<Schema.String>;
|
|
419
|
+
}>>;
|
|
420
|
+
readonly fallback: Schema.optionalKey<Schema.Literals<readonly ["allow", "deny", "ask"]>>;
|
|
421
|
+
}>>;
|
|
311
422
|
readonly max_tool_turns: Schema.optionalKey<Schema.Int>;
|
|
312
423
|
readonly max_wait_turns: Schema.optionalKey<Schema.Int>;
|
|
313
424
|
readonly token_budget: Schema.optionalKey<Schema.Int>;
|
|
@@ -329,6 +440,10 @@ export declare const DefinitionList: Schema.Struct<{
|
|
|
329
440
|
readonly output_schema_ref: Schema.optionalKey<Schema.String>;
|
|
330
441
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
331
442
|
}>>>;
|
|
443
|
+
readonly handoff_targets: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
444
|
+
readonly name: Schema.String;
|
|
445
|
+
readonly preset_name: Schema.String;
|
|
446
|
+
}>>>;
|
|
332
447
|
readonly output_schema_ref: Schema.optionalKey<Schema.String>;
|
|
333
448
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
334
449
|
}>;
|
|
@@ -360,6 +475,17 @@ export declare const DefinitionRevisionList: Schema.Struct<{
|
|
|
360
475
|
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
361
476
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
362
477
|
}>>;
|
|
478
|
+
readonly skill_definition_ids: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "Relay.SkillDefinitionId"> & {
|
|
479
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SkillDefinitionId">;
|
|
480
|
+
}>>;
|
|
481
|
+
readonly permission_rules: Schema.optionalKey<Schema.Struct<{
|
|
482
|
+
readonly rules: Schema.$Array<Schema.Struct<{
|
|
483
|
+
readonly pattern: Schema.String;
|
|
484
|
+
readonly level: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
485
|
+
readonly reason: Schema.optionalKey<Schema.String>;
|
|
486
|
+
}>>;
|
|
487
|
+
readonly fallback: Schema.optionalKey<Schema.Literals<readonly ["allow", "deny", "ask"]>>;
|
|
488
|
+
}>>;
|
|
363
489
|
readonly max_tool_turns: Schema.optionalKey<Schema.Int>;
|
|
364
490
|
readonly max_wait_turns: Schema.optionalKey<Schema.Int>;
|
|
365
491
|
readonly token_budget: Schema.optionalKey<Schema.Int>;
|
|
@@ -381,6 +507,10 @@ export declare const DefinitionRevisionList: Schema.Struct<{
|
|
|
381
507
|
readonly output_schema_ref: Schema.optionalKey<Schema.String>;
|
|
382
508
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
383
509
|
}>>>;
|
|
510
|
+
readonly handoff_targets: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
511
|
+
readonly name: Schema.String;
|
|
512
|
+
readonly preset_name: Schema.String;
|
|
513
|
+
}>>>;
|
|
384
514
|
readonly output_schema_ref: Schema.optionalKey<Schema.String>;
|
|
385
515
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
386
516
|
}>;
|
|
@@ -2,6 +2,7 @@ import { Schema } from "effect";
|
|
|
2
2
|
export declare const TextPart: Schema.Struct<{
|
|
3
3
|
readonly type: Schema.Literal<"text">;
|
|
4
4
|
readonly text: Schema.String;
|
|
5
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
5
6
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
6
7
|
}>;
|
|
7
8
|
export interface TextPart extends Schema.Schema.Type<typeof TextPart> {
|
|
@@ -10,6 +11,7 @@ export declare const StructuredPart: Schema.Struct<{
|
|
|
10
11
|
readonly type: Schema.Literal<"structured">;
|
|
11
12
|
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
12
13
|
readonly schema_ref: Schema.optionalKey<Schema.String>;
|
|
14
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
13
15
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
14
16
|
}>;
|
|
15
17
|
export interface StructuredPart extends Schema.Schema.Type<typeof StructuredPart> {
|
|
@@ -19,6 +21,7 @@ export declare const BlobReferencePart: Schema.Struct<{
|
|
|
19
21
|
readonly uri: Schema.String;
|
|
20
22
|
readonly media_type: Schema.String;
|
|
21
23
|
readonly filename: Schema.optionalKey<Schema.String>;
|
|
24
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
22
25
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
23
26
|
}>;
|
|
24
27
|
export interface BlobReferencePart extends Schema.Schema.Type<typeof BlobReferencePart> {
|
|
@@ -27,6 +30,7 @@ export declare const ArtifactReferencePart: Schema.Struct<{
|
|
|
27
30
|
readonly type: Schema.Literal<"artifact-reference">;
|
|
28
31
|
readonly artifact_id: Schema.String;
|
|
29
32
|
readonly media_type: Schema.optionalKey<Schema.String>;
|
|
33
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
30
34
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
31
35
|
}>;
|
|
32
36
|
export interface ArtifactReferencePart extends Schema.Schema.Type<typeof ArtifactReferencePart> {
|
|
@@ -41,6 +45,7 @@ export declare const ToolCallPart: Schema.Struct<{
|
|
|
41
45
|
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
42
46
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
43
47
|
}>;
|
|
48
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
44
49
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
45
50
|
}>;
|
|
46
51
|
export interface ToolCallPart extends Schema.Schema.Type<typeof ToolCallPart> {
|
|
@@ -55,6 +60,7 @@ export declare const ToolResultPart: Schema.Struct<{
|
|
|
55
60
|
readonly error: Schema.optionalKey<Schema.String>;
|
|
56
61
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
57
62
|
}>;
|
|
63
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
58
64
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
59
65
|
}>;
|
|
60
66
|
export interface ToolResultPart extends Schema.Schema.Type<typeof ToolResultPart> {
|
|
@@ -63,22 +69,26 @@ export type Part = TextPart | StructuredPart | BlobReferencePart | ArtifactRefer
|
|
|
63
69
|
export declare const Part: Schema.Union<readonly [Schema.Struct<{
|
|
64
70
|
readonly type: Schema.Literal<"text">;
|
|
65
71
|
readonly text: Schema.String;
|
|
72
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
66
73
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
67
74
|
}>, Schema.Struct<{
|
|
68
75
|
readonly type: Schema.Literal<"structured">;
|
|
69
76
|
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
70
77
|
readonly schema_ref: Schema.optionalKey<Schema.String>;
|
|
78
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
71
79
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
72
80
|
}>, Schema.Struct<{
|
|
73
81
|
readonly type: Schema.Literal<"blob-reference">;
|
|
74
82
|
readonly uri: Schema.String;
|
|
75
83
|
readonly media_type: Schema.String;
|
|
76
84
|
readonly filename: Schema.optionalKey<Schema.String>;
|
|
85
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
77
86
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
78
87
|
}>, Schema.Struct<{
|
|
79
88
|
readonly type: Schema.Literal<"artifact-reference">;
|
|
80
89
|
readonly artifact_id: Schema.String;
|
|
81
90
|
readonly media_type: Schema.optionalKey<Schema.String>;
|
|
91
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
82
92
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
83
93
|
}>, Schema.Struct<{
|
|
84
94
|
readonly type: Schema.Literal<"tool-call">;
|
|
@@ -90,6 +100,7 @@ export declare const Part: Schema.Union<readonly [Schema.Struct<{
|
|
|
90
100
|
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
91
101
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
92
102
|
}>;
|
|
103
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
93
104
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
94
105
|
}>, Schema.Struct<{
|
|
95
106
|
readonly type: Schema.Literal<"tool-result">;
|
|
@@ -101,6 +112,7 @@ export declare const Part: Schema.Union<readonly [Schema.Struct<{
|
|
|
101
112
|
readonly error: Schema.optionalKey<Schema.String>;
|
|
102
113
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
103
114
|
}>;
|
|
115
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
104
116
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
105
117
|
}>]>;
|
|
106
118
|
export declare const text: (value: string) => TextPart;
|