@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
|
@@ -25,22 +25,26 @@ export declare const Envelope: Schema.Struct<{
|
|
|
25
25
|
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
26
26
|
readonly type: Schema.Literal<"text">;
|
|
27
27
|
readonly text: Schema.String;
|
|
28
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
28
29
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
29
30
|
}>, Schema.Struct<{
|
|
30
31
|
readonly type: Schema.Literal<"structured">;
|
|
31
32
|
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
32
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>>>;
|
|
33
35
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
34
36
|
}>, Schema.Struct<{
|
|
35
37
|
readonly type: Schema.Literal<"blob-reference">;
|
|
36
38
|
readonly uri: Schema.String;
|
|
37
39
|
readonly media_type: Schema.String;
|
|
38
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>>>;
|
|
39
42
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
40
43
|
}>, Schema.Struct<{
|
|
41
44
|
readonly type: Schema.Literal<"artifact-reference">;
|
|
42
45
|
readonly artifact_id: Schema.String;
|
|
43
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>>>;
|
|
44
48
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
45
49
|
}>, Schema.Struct<{
|
|
46
50
|
readonly type: Schema.Literal<"tool-call">;
|
|
@@ -52,6 +56,7 @@ export declare const Envelope: Schema.Struct<{
|
|
|
52
56
|
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
53
57
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
54
58
|
}>;
|
|
59
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
55
60
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
56
61
|
}>, Schema.Struct<{
|
|
57
62
|
readonly type: Schema.Literal<"tool-result">;
|
|
@@ -63,6 +68,7 @@ export declare const Envelope: Schema.Struct<{
|
|
|
63
68
|
readonly error: Schema.optionalKey<Schema.String>;
|
|
64
69
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
65
70
|
}>;
|
|
71
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
66
72
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
67
73
|
}>]>>;
|
|
68
74
|
readonly wait: Schema.optionalKey<Schema.Struct<{
|
|
@@ -87,22 +93,26 @@ export declare const SendInput: Schema.Struct<{
|
|
|
87
93
|
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
88
94
|
readonly type: Schema.Literal<"text">;
|
|
89
95
|
readonly text: Schema.String;
|
|
96
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
90
97
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
91
98
|
}>, Schema.Struct<{
|
|
92
99
|
readonly type: Schema.Literal<"structured">;
|
|
93
100
|
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
94
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>>>;
|
|
95
103
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
96
104
|
}>, Schema.Struct<{
|
|
97
105
|
readonly type: Schema.Literal<"blob-reference">;
|
|
98
106
|
readonly uri: Schema.String;
|
|
99
107
|
readonly media_type: Schema.String;
|
|
100
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>>>;
|
|
101
110
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
102
111
|
}>, Schema.Struct<{
|
|
103
112
|
readonly type: Schema.Literal<"artifact-reference">;
|
|
104
113
|
readonly artifact_id: Schema.String;
|
|
105
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>>>;
|
|
106
116
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
107
117
|
}>, Schema.Struct<{
|
|
108
118
|
readonly type: Schema.Literal<"tool-call">;
|
|
@@ -114,6 +124,7 @@ export declare const SendInput: Schema.Struct<{
|
|
|
114
124
|
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
115
125
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
116
126
|
}>;
|
|
127
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
117
128
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
118
129
|
}>, Schema.Struct<{
|
|
119
130
|
readonly type: Schema.Literal<"tool-result">;
|
|
@@ -125,6 +136,7 @@ export declare const SendInput: Schema.Struct<{
|
|
|
125
136
|
readonly error: Schema.optionalKey<Schema.String>;
|
|
126
137
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
127
138
|
}>;
|
|
139
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
128
140
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
129
141
|
}>]>>;
|
|
130
142
|
readonly wait: Schema.optionalKey<Schema.Struct<{
|
|
@@ -8,6 +8,9 @@ export declare const Execution: Schema.Struct<{
|
|
|
8
8
|
readonly root_address_id: Schema.brand<Schema.String, "Relay.AddressId"> & {
|
|
9
9
|
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
|
|
10
10
|
};
|
|
11
|
+
readonly session_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.SessionId"> & {
|
|
12
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SessionId">;
|
|
13
|
+
}>;
|
|
11
14
|
readonly status: Schema.Literals<readonly ["queued", "running", "waiting", "completed", "failed", "cancelled"]>;
|
|
12
15
|
readonly agent_definition_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.AgentDefinitionId"> & {
|
|
13
16
|
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AgentDefinitionId">;
|
|
@@ -29,6 +32,17 @@ export declare const Execution: Schema.Struct<{
|
|
|
29
32
|
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
30
33
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
31
34
|
}>>;
|
|
35
|
+
readonly skill_definition_ids: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "Relay.SkillDefinitionId"> & {
|
|
36
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SkillDefinitionId">;
|
|
37
|
+
}>>;
|
|
38
|
+
readonly permission_rules: Schema.optionalKey<Schema.Struct<{
|
|
39
|
+
readonly rules: Schema.$Array<Schema.Struct<{
|
|
40
|
+
readonly pattern: Schema.String;
|
|
41
|
+
readonly level: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
42
|
+
readonly reason: Schema.optionalKey<Schema.String>;
|
|
43
|
+
}>>;
|
|
44
|
+
readonly fallback: Schema.optionalKey<Schema.Literals<readonly ["allow", "deny", "ask"]>>;
|
|
45
|
+
}>>;
|
|
32
46
|
readonly max_tool_turns: Schema.optionalKey<Schema.Int>;
|
|
33
47
|
readonly max_wait_turns: Schema.optionalKey<Schema.Int>;
|
|
34
48
|
readonly token_budget: Schema.optionalKey<Schema.Int>;
|
|
@@ -50,6 +64,10 @@ export declare const Execution: Schema.Struct<{
|
|
|
50
64
|
readonly output_schema_ref: Schema.optionalKey<Schema.String>;
|
|
51
65
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
52
66
|
}>>>;
|
|
67
|
+
readonly handoff_targets: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
68
|
+
readonly name: Schema.String;
|
|
69
|
+
readonly preset_name: Schema.String;
|
|
70
|
+
}>>>;
|
|
53
71
|
readonly output_schema_ref: Schema.optionalKey<Schema.String>;
|
|
54
72
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
55
73
|
}>>;
|
|
@@ -179,22 +197,26 @@ export declare const SpawnChildRunInput: Schema.Struct<{
|
|
|
179
197
|
readonly input: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
180
198
|
readonly type: Schema.Literal<"text">;
|
|
181
199
|
readonly text: Schema.String;
|
|
200
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
182
201
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
183
202
|
}>, Schema.Struct<{
|
|
184
203
|
readonly type: Schema.Literal<"structured">;
|
|
185
204
|
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
186
205
|
readonly schema_ref: Schema.optionalKey<Schema.String>;
|
|
206
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
187
207
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
188
208
|
}>, Schema.Struct<{
|
|
189
209
|
readonly type: Schema.Literal<"blob-reference">;
|
|
190
210
|
readonly uri: Schema.String;
|
|
191
211
|
readonly media_type: Schema.String;
|
|
192
212
|
readonly filename: Schema.optionalKey<Schema.String>;
|
|
213
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
193
214
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
194
215
|
}>, Schema.Struct<{
|
|
195
216
|
readonly type: Schema.Literal<"artifact-reference">;
|
|
196
217
|
readonly artifact_id: Schema.String;
|
|
197
218
|
readonly media_type: Schema.optionalKey<Schema.String>;
|
|
219
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
198
220
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
199
221
|
}>, Schema.Struct<{
|
|
200
222
|
readonly type: Schema.Literal<"tool-call">;
|
|
@@ -206,6 +228,7 @@ export declare const SpawnChildRunInput: Schema.Struct<{
|
|
|
206
228
|
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
207
229
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
208
230
|
}>;
|
|
231
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
209
232
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
210
233
|
}>, Schema.Struct<{
|
|
211
234
|
readonly type: Schema.Literal<"tool-result">;
|
|
@@ -217,6 +240,7 @@ export declare const SpawnChildRunInput: Schema.Struct<{
|
|
|
217
240
|
readonly error: Schema.optionalKey<Schema.String>;
|
|
218
241
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
219
242
|
}>;
|
|
243
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
220
244
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
221
245
|
}>]>>>;
|
|
222
246
|
readonly wait: Schema.optionalKey<Schema.Boolean>;
|
|
@@ -235,7 +259,7 @@ export declare const ChildRunAccepted: Schema.Struct<{
|
|
|
235
259
|
}>;
|
|
236
260
|
export interface ChildRunAccepted extends Schema.Schema.Type<typeof ChildRunAccepted> {
|
|
237
261
|
}
|
|
238
|
-
export declare const ExecutionEventType: Schema.Literals<readonly ["execution.accepted", "execution.started", "execution.completed", "execution.failed", "execution.cancelled", "model.input.prepared", "model.output.delta", "model.output.completed", "model.usage.reported", "tool.call.requested", "tool.result.received", "tool.approval.requested", "tool.approval.resolved", "envelope.accepted", "envelope.routed", "envelope.ready", "delivery.attempt", "wait.created", "wait.woken", "wait.timed_out", "wait.cancelled", "child_run.spawned", "child_run.event", "workspace.lease.planned", "workspace.lease.acquired", "workspace.suspended", "workspace.resumed", "workspace.snapshot.created", "workspace.lease.released", "workspace.lease.failed"]>;
|
|
262
|
+
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.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", "envelope.accepted", "envelope.routed", "envelope.ready", "delivery.attempt", "wait.created", "wait.woken", "wait.timed_out", "wait.cancelled", "child_run.spawned", "child_run.event", "workspace.lease.planned", "workspace.lease.acquired", "workspace.suspended", "workspace.resumed", "workspace.snapshot.created", "workspace.lease.released", "workspace.lease.failed"]>;
|
|
239
263
|
export type ExecutionEventType = typeof ExecutionEventType.Type;
|
|
240
264
|
export declare const ExecutionEvent: Schema.Struct<{
|
|
241
265
|
readonly id: Schema.brand<Schema.String, "Relay.EventId"> & {
|
|
@@ -247,28 +271,32 @@ export declare const ExecutionEvent: Schema.Struct<{
|
|
|
247
271
|
readonly child_execution_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.ChildExecutionId"> & {
|
|
248
272
|
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ChildExecutionId">;
|
|
249
273
|
}>;
|
|
250
|
-
readonly type: Schema.Literals<readonly ["execution.accepted", "execution.started", "execution.completed", "execution.failed", "execution.cancelled", "model.input.prepared", "model.output.delta", "model.output.completed", "model.usage.reported", "tool.call.requested", "tool.result.received", "tool.approval.requested", "tool.approval.resolved", "envelope.accepted", "envelope.routed", "envelope.ready", "delivery.attempt", "wait.created", "wait.woken", "wait.timed_out", "wait.cancelled", "child_run.spawned", "child_run.event", "workspace.lease.planned", "workspace.lease.acquired", "workspace.suspended", "workspace.resumed", "workspace.snapshot.created", "workspace.lease.released", "workspace.lease.failed"]>;
|
|
274
|
+
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.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", "envelope.accepted", "envelope.routed", "envelope.ready", "delivery.attempt", "wait.created", "wait.woken", "wait.timed_out", "wait.cancelled", "child_run.spawned", "child_run.event", "workspace.lease.planned", "workspace.lease.acquired", "workspace.suspended", "workspace.resumed", "workspace.snapshot.created", "workspace.lease.released", "workspace.lease.failed"]>;
|
|
251
275
|
readonly sequence: Schema.Int;
|
|
252
276
|
readonly cursor: Schema.String;
|
|
253
277
|
readonly content: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
254
278
|
readonly type: Schema.Literal<"text">;
|
|
255
279
|
readonly text: Schema.String;
|
|
280
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
256
281
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
257
282
|
}>, Schema.Struct<{
|
|
258
283
|
readonly type: Schema.Literal<"structured">;
|
|
259
284
|
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
260
285
|
readonly schema_ref: Schema.optionalKey<Schema.String>;
|
|
286
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
261
287
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
262
288
|
}>, Schema.Struct<{
|
|
263
289
|
readonly type: Schema.Literal<"blob-reference">;
|
|
264
290
|
readonly uri: Schema.String;
|
|
265
291
|
readonly media_type: Schema.String;
|
|
266
292
|
readonly filename: Schema.optionalKey<Schema.String>;
|
|
293
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
267
294
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
268
295
|
}>, Schema.Struct<{
|
|
269
296
|
readonly type: Schema.Literal<"artifact-reference">;
|
|
270
297
|
readonly artifact_id: Schema.String;
|
|
271
298
|
readonly media_type: Schema.optionalKey<Schema.String>;
|
|
299
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
272
300
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
273
301
|
}>, Schema.Struct<{
|
|
274
302
|
readonly type: Schema.Literal<"tool-call">;
|
|
@@ -280,6 +308,7 @@ export declare const ExecutionEvent: Schema.Struct<{
|
|
|
280
308
|
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
281
309
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
282
310
|
}>;
|
|
311
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
283
312
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
284
313
|
}>, Schema.Struct<{
|
|
285
314
|
readonly type: Schema.Literal<"tool-result">;
|
|
@@ -291,6 +320,7 @@ export declare const ExecutionEvent: Schema.Struct<{
|
|
|
291
320
|
readonly error: Schema.optionalKey<Schema.String>;
|
|
292
321
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
293
322
|
}>;
|
|
323
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
294
324
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
295
325
|
}>]>>>;
|
|
296
326
|
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
@@ -3,6 +3,11 @@ export declare const AddressId: Schema.brand<Schema.String, "Relay.AddressId"> &
|
|
|
3
3
|
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
|
|
4
4
|
};
|
|
5
5
|
export type AddressId = typeof AddressId.Type;
|
|
6
|
+
export declare const TenantId: Schema.brand<Schema.String, "Relay.TenantId"> & {
|
|
7
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.TenantId">;
|
|
8
|
+
};
|
|
9
|
+
export type TenantId = typeof TenantId.Type;
|
|
10
|
+
export declare const SystemTenantId: string & import("effect/Brand").Brand<"Relay.TenantId">;
|
|
6
11
|
export declare const AddressBookEntryId: Schema.brand<Schema.String, "Relay.AddressBookEntryId"> & {
|
|
7
12
|
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressBookEntryId">;
|
|
8
13
|
};
|
|
@@ -11,6 +16,10 @@ export declare const AgentDefinitionId: Schema.brand<Schema.String, "Relay.Agent
|
|
|
11
16
|
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AgentDefinitionId">;
|
|
12
17
|
};
|
|
13
18
|
export type AgentDefinitionId = typeof AgentDefinitionId.Type;
|
|
19
|
+
export declare const SkillDefinitionId: Schema.brand<Schema.String, "Relay.SkillDefinitionId"> & {
|
|
20
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SkillDefinitionId">;
|
|
21
|
+
};
|
|
22
|
+
export type SkillDefinitionId = typeof SkillDefinitionId.Type;
|
|
14
23
|
export declare const EnvelopeId: Schema.brand<Schema.String, "Relay.EnvelopeId"> & {
|
|
15
24
|
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EnvelopeId">;
|
|
16
25
|
};
|
|
@@ -27,6 +36,18 @@ export declare const ChildExecutionId: Schema.brand<Schema.String, "Relay.ChildE
|
|
|
27
36
|
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ChildExecutionId">;
|
|
28
37
|
};
|
|
29
38
|
export type ChildExecutionId = typeof ChildExecutionId.Type;
|
|
39
|
+
export declare const MemorySubjectId: Schema.brand<Schema.String, "Relay.MemorySubjectId"> & {
|
|
40
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.MemorySubjectId">;
|
|
41
|
+
};
|
|
42
|
+
export type MemorySubjectId = typeof MemorySubjectId.Type;
|
|
43
|
+
export declare const SessionId: Schema.brand<Schema.String, "Relay.SessionId"> & {
|
|
44
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SessionId">;
|
|
45
|
+
};
|
|
46
|
+
export type SessionId = typeof SessionId.Type;
|
|
47
|
+
export declare const SessionEntryId: Schema.brand<Schema.String, "Relay.SessionEntryId"> & {
|
|
48
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SessionEntryId">;
|
|
49
|
+
};
|
|
50
|
+
export type SessionEntryId = typeof SessionEntryId.Type;
|
|
30
51
|
export declare const WorkspaceLeaseId: Schema.brand<Schema.String, "Relay.WorkspaceLeaseId"> & {
|
|
31
52
|
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkspaceLeaseId">;
|
|
32
53
|
};
|
|
@@ -6,6 +6,7 @@ export * as Execution from "./execution-schema";
|
|
|
6
6
|
export * as Ids from "./ids-schema";
|
|
7
7
|
export * as Schedule from "./schedule-schema";
|
|
8
8
|
export * as Shared from "./shared-schema";
|
|
9
|
+
export * as Skill from "./skill-schema";
|
|
9
10
|
export * as Tool from "./tool-schema";
|
|
10
11
|
export * as Workspace from "./workspace-schema";
|
|
11
12
|
export declare const schemaPackage = "./index";
|
|
@@ -21,22 +21,26 @@ export declare const ScheduleRecord: Schema.Struct<{
|
|
|
21
21
|
readonly input: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
22
22
|
readonly type: Schema.Literal<"text">;
|
|
23
23
|
readonly text: Schema.String;
|
|
24
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
24
25
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
25
26
|
}>, Schema.Struct<{
|
|
26
27
|
readonly type: Schema.Literal<"structured">;
|
|
27
28
|
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
28
29
|
readonly schema_ref: Schema.optionalKey<Schema.String>;
|
|
30
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
29
31
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
30
32
|
}>, Schema.Struct<{
|
|
31
33
|
readonly type: Schema.Literal<"blob-reference">;
|
|
32
34
|
readonly uri: Schema.String;
|
|
33
35
|
readonly media_type: Schema.String;
|
|
34
36
|
readonly filename: Schema.optionalKey<Schema.String>;
|
|
37
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
35
38
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
36
39
|
}>, Schema.Struct<{
|
|
37
40
|
readonly type: Schema.Literal<"artifact-reference">;
|
|
38
41
|
readonly artifact_id: Schema.String;
|
|
39
42
|
readonly media_type: Schema.optionalKey<Schema.String>;
|
|
43
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
40
44
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
41
45
|
}>, Schema.Struct<{
|
|
42
46
|
readonly type: Schema.Literal<"tool-call">;
|
|
@@ -48,6 +52,7 @@ export declare const ScheduleRecord: Schema.Struct<{
|
|
|
48
52
|
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
49
53
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
50
54
|
}>;
|
|
55
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
51
56
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
52
57
|
}>, Schema.Struct<{
|
|
53
58
|
readonly type: Schema.Literal<"tool-result">;
|
|
@@ -59,6 +64,7 @@ export declare const ScheduleRecord: Schema.Struct<{
|
|
|
59
64
|
readonly error: Schema.optionalKey<Schema.String>;
|
|
60
65
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
61
66
|
}>;
|
|
67
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
62
68
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
63
69
|
}>]>>>;
|
|
64
70
|
readonly state: Schema.Literals<readonly ["active", "claimed", "completed", "cancelled", "failed"]>;
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
export declare const DefinitionRevision: Schema.Int;
|
|
3
|
+
export type DefinitionRevision = typeof DefinitionRevision.Type;
|
|
4
|
+
export declare const Frontmatter: Schema.Struct<{
|
|
5
|
+
readonly name: Schema.String;
|
|
6
|
+
readonly description: Schema.String;
|
|
7
|
+
readonly when_to_use: Schema.optionalKey<Schema.String>;
|
|
8
|
+
readonly allowed_tools: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
9
|
+
readonly disable_model_invocation: Schema.optionalKey<Schema.Boolean>;
|
|
10
|
+
readonly user_invocable: Schema.optionalKey<Schema.Boolean>;
|
|
11
|
+
readonly context_fork: Schema.optionalKey<Schema.Boolean>;
|
|
12
|
+
readonly agent: Schema.optionalKey<Schema.String>;
|
|
13
|
+
readonly model: Schema.optionalKey<Schema.String>;
|
|
14
|
+
readonly paths: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
15
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
16
|
+
}>;
|
|
17
|
+
export interface Frontmatter extends Schema.Schema.Type<typeof Frontmatter> {
|
|
18
|
+
}
|
|
19
|
+
export declare const Definition: Schema.Struct<{
|
|
20
|
+
readonly frontmatter: Schema.Struct<{
|
|
21
|
+
readonly name: Schema.String;
|
|
22
|
+
readonly description: Schema.String;
|
|
23
|
+
readonly when_to_use: Schema.optionalKey<Schema.String>;
|
|
24
|
+
readonly allowed_tools: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
25
|
+
readonly disable_model_invocation: Schema.optionalKey<Schema.Boolean>;
|
|
26
|
+
readonly user_invocable: Schema.optionalKey<Schema.Boolean>;
|
|
27
|
+
readonly context_fork: Schema.optionalKey<Schema.Boolean>;
|
|
28
|
+
readonly agent: Schema.optionalKey<Schema.String>;
|
|
29
|
+
readonly model: Schema.optionalKey<Schema.String>;
|
|
30
|
+
readonly paths: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
31
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
32
|
+
}>;
|
|
33
|
+
readonly body: Schema.String;
|
|
34
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
35
|
+
}>;
|
|
36
|
+
export interface Definition extends Schema.Schema.Type<typeof Definition> {
|
|
37
|
+
}
|
|
38
|
+
export declare const DefinitionRecord: Schema.Struct<{
|
|
39
|
+
readonly id: Schema.brand<Schema.String, "Relay.SkillDefinitionId"> & {
|
|
40
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SkillDefinitionId">;
|
|
41
|
+
};
|
|
42
|
+
readonly current_revision: Schema.Int;
|
|
43
|
+
readonly definition: Schema.Struct<{
|
|
44
|
+
readonly frontmatter: Schema.Struct<{
|
|
45
|
+
readonly name: Schema.String;
|
|
46
|
+
readonly description: Schema.String;
|
|
47
|
+
readonly when_to_use: Schema.optionalKey<Schema.String>;
|
|
48
|
+
readonly allowed_tools: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
49
|
+
readonly disable_model_invocation: Schema.optionalKey<Schema.Boolean>;
|
|
50
|
+
readonly user_invocable: Schema.optionalKey<Schema.Boolean>;
|
|
51
|
+
readonly context_fork: Schema.optionalKey<Schema.Boolean>;
|
|
52
|
+
readonly agent: Schema.optionalKey<Schema.String>;
|
|
53
|
+
readonly model: Schema.optionalKey<Schema.String>;
|
|
54
|
+
readonly paths: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
55
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
56
|
+
}>;
|
|
57
|
+
readonly body: Schema.String;
|
|
58
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
59
|
+
}>;
|
|
60
|
+
readonly created_at: Schema.Int;
|
|
61
|
+
readonly updated_at: Schema.Int;
|
|
62
|
+
}>;
|
|
63
|
+
export interface DefinitionRecord extends Schema.Schema.Type<typeof DefinitionRecord> {
|
|
64
|
+
}
|
|
65
|
+
export declare const DefinitionRevisionRecord: Schema.Struct<{
|
|
66
|
+
readonly id: Schema.brand<Schema.String, "Relay.SkillDefinitionId"> & {
|
|
67
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SkillDefinitionId">;
|
|
68
|
+
};
|
|
69
|
+
readonly revision: Schema.Int;
|
|
70
|
+
readonly definition: Schema.Struct<{
|
|
71
|
+
readonly frontmatter: Schema.Struct<{
|
|
72
|
+
readonly name: Schema.String;
|
|
73
|
+
readonly description: Schema.String;
|
|
74
|
+
readonly when_to_use: Schema.optionalKey<Schema.String>;
|
|
75
|
+
readonly allowed_tools: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
76
|
+
readonly disable_model_invocation: Schema.optionalKey<Schema.Boolean>;
|
|
77
|
+
readonly user_invocable: Schema.optionalKey<Schema.Boolean>;
|
|
78
|
+
readonly context_fork: Schema.optionalKey<Schema.Boolean>;
|
|
79
|
+
readonly agent: Schema.optionalKey<Schema.String>;
|
|
80
|
+
readonly model: Schema.optionalKey<Schema.String>;
|
|
81
|
+
readonly paths: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
82
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
83
|
+
}>;
|
|
84
|
+
readonly body: Schema.String;
|
|
85
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
86
|
+
}>;
|
|
87
|
+
readonly created_at: Schema.Int;
|
|
88
|
+
}>;
|
|
89
|
+
export interface DefinitionRevisionRecord extends Schema.Schema.Type<typeof DefinitionRevisionRecord> {
|
|
90
|
+
}
|
|
91
|
+
export declare const ExecutionPinRecord: Schema.Struct<{
|
|
92
|
+
readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
93
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
94
|
+
};
|
|
95
|
+
readonly skill_definition_id: Schema.brand<Schema.String, "Relay.SkillDefinitionId"> & {
|
|
96
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SkillDefinitionId">;
|
|
97
|
+
};
|
|
98
|
+
readonly skill_definition_revision: Schema.Int;
|
|
99
|
+
readonly skill_definition_snapshot: Schema.Struct<{
|
|
100
|
+
readonly frontmatter: Schema.Struct<{
|
|
101
|
+
readonly name: Schema.String;
|
|
102
|
+
readonly description: Schema.String;
|
|
103
|
+
readonly when_to_use: Schema.optionalKey<Schema.String>;
|
|
104
|
+
readonly allowed_tools: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
105
|
+
readonly disable_model_invocation: Schema.optionalKey<Schema.Boolean>;
|
|
106
|
+
readonly user_invocable: Schema.optionalKey<Schema.Boolean>;
|
|
107
|
+
readonly context_fork: Schema.optionalKey<Schema.Boolean>;
|
|
108
|
+
readonly agent: Schema.optionalKey<Schema.String>;
|
|
109
|
+
readonly model: Schema.optionalKey<Schema.String>;
|
|
110
|
+
readonly paths: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
111
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
112
|
+
}>;
|
|
113
|
+
readonly body: Schema.String;
|
|
114
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
115
|
+
}>;
|
|
116
|
+
readonly created_at: Schema.Int;
|
|
117
|
+
}>;
|
|
118
|
+
export interface ExecutionPinRecord extends Schema.Schema.Type<typeof ExecutionPinRecord> {
|
|
119
|
+
}
|
|
120
|
+
export declare const RegisterDefinitionPayload: Schema.Struct<{
|
|
121
|
+
readonly id: Schema.brand<Schema.String, "Relay.SkillDefinitionId"> & {
|
|
122
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SkillDefinitionId">;
|
|
123
|
+
};
|
|
124
|
+
readonly definition: Schema.Struct<{
|
|
125
|
+
readonly frontmatter: Schema.Struct<{
|
|
126
|
+
readonly name: Schema.String;
|
|
127
|
+
readonly description: Schema.String;
|
|
128
|
+
readonly when_to_use: Schema.optionalKey<Schema.String>;
|
|
129
|
+
readonly allowed_tools: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
130
|
+
readonly disable_model_invocation: Schema.optionalKey<Schema.Boolean>;
|
|
131
|
+
readonly user_invocable: Schema.optionalKey<Schema.Boolean>;
|
|
132
|
+
readonly context_fork: Schema.optionalKey<Schema.Boolean>;
|
|
133
|
+
readonly agent: Schema.optionalKey<Schema.String>;
|
|
134
|
+
readonly model: Schema.optionalKey<Schema.String>;
|
|
135
|
+
readonly paths: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
136
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
137
|
+
}>;
|
|
138
|
+
readonly body: Schema.String;
|
|
139
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
140
|
+
}>;
|
|
141
|
+
}>;
|
|
142
|
+
export interface RegisterDefinitionPayload extends Schema.Schema.Type<typeof RegisterDefinitionPayload> {
|
|
143
|
+
}
|
|
144
|
+
export declare const DefinitionRegistered: Schema.Struct<{
|
|
145
|
+
readonly record: Schema.Struct<{
|
|
146
|
+
readonly id: Schema.brand<Schema.String, "Relay.SkillDefinitionId"> & {
|
|
147
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SkillDefinitionId">;
|
|
148
|
+
};
|
|
149
|
+
readonly current_revision: Schema.Int;
|
|
150
|
+
readonly definition: Schema.Struct<{
|
|
151
|
+
readonly frontmatter: Schema.Struct<{
|
|
152
|
+
readonly name: Schema.String;
|
|
153
|
+
readonly description: Schema.String;
|
|
154
|
+
readonly when_to_use: Schema.optionalKey<Schema.String>;
|
|
155
|
+
readonly allowed_tools: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
156
|
+
readonly disable_model_invocation: Schema.optionalKey<Schema.Boolean>;
|
|
157
|
+
readonly user_invocable: Schema.optionalKey<Schema.Boolean>;
|
|
158
|
+
readonly context_fork: Schema.optionalKey<Schema.Boolean>;
|
|
159
|
+
readonly agent: Schema.optionalKey<Schema.String>;
|
|
160
|
+
readonly model: Schema.optionalKey<Schema.String>;
|
|
161
|
+
readonly paths: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
162
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
163
|
+
}>;
|
|
164
|
+
readonly body: Schema.String;
|
|
165
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
166
|
+
}>;
|
|
167
|
+
readonly created_at: Schema.Int;
|
|
168
|
+
readonly updated_at: Schema.Int;
|
|
169
|
+
}>;
|
|
170
|
+
}>;
|
|
171
|
+
export interface DefinitionRegistered extends Schema.Schema.Type<typeof DefinitionRegistered> {
|
|
172
|
+
}
|
|
173
|
+
export declare const DefinitionList: Schema.Struct<{
|
|
174
|
+
readonly records: Schema.$Array<Schema.Struct<{
|
|
175
|
+
readonly id: Schema.brand<Schema.String, "Relay.SkillDefinitionId"> & {
|
|
176
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SkillDefinitionId">;
|
|
177
|
+
};
|
|
178
|
+
readonly current_revision: Schema.Int;
|
|
179
|
+
readonly definition: Schema.Struct<{
|
|
180
|
+
readonly frontmatter: Schema.Struct<{
|
|
181
|
+
readonly name: Schema.String;
|
|
182
|
+
readonly description: Schema.String;
|
|
183
|
+
readonly when_to_use: Schema.optionalKey<Schema.String>;
|
|
184
|
+
readonly allowed_tools: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
185
|
+
readonly disable_model_invocation: Schema.optionalKey<Schema.Boolean>;
|
|
186
|
+
readonly user_invocable: Schema.optionalKey<Schema.Boolean>;
|
|
187
|
+
readonly context_fork: Schema.optionalKey<Schema.Boolean>;
|
|
188
|
+
readonly agent: Schema.optionalKey<Schema.String>;
|
|
189
|
+
readonly model: Schema.optionalKey<Schema.String>;
|
|
190
|
+
readonly paths: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
191
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
192
|
+
}>;
|
|
193
|
+
readonly body: Schema.String;
|
|
194
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
195
|
+
}>;
|
|
196
|
+
readonly created_at: Schema.Int;
|
|
197
|
+
readonly updated_at: Schema.Int;
|
|
198
|
+
}>>;
|
|
199
|
+
}>;
|
|
200
|
+
export interface DefinitionList extends Schema.Schema.Type<typeof DefinitionList> {
|
|
201
|
+
}
|
|
202
|
+
export declare const DefinitionRevisionList: Schema.Struct<{
|
|
203
|
+
readonly records: Schema.$Array<Schema.Struct<{
|
|
204
|
+
readonly id: Schema.brand<Schema.String, "Relay.SkillDefinitionId"> & {
|
|
205
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SkillDefinitionId">;
|
|
206
|
+
};
|
|
207
|
+
readonly revision: Schema.Int;
|
|
208
|
+
readonly definition: Schema.Struct<{
|
|
209
|
+
readonly frontmatter: Schema.Struct<{
|
|
210
|
+
readonly name: Schema.String;
|
|
211
|
+
readonly description: Schema.String;
|
|
212
|
+
readonly when_to_use: Schema.optionalKey<Schema.String>;
|
|
213
|
+
readonly allowed_tools: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
214
|
+
readonly disable_model_invocation: Schema.optionalKey<Schema.Boolean>;
|
|
215
|
+
readonly user_invocable: Schema.optionalKey<Schema.Boolean>;
|
|
216
|
+
readonly context_fork: Schema.optionalKey<Schema.Boolean>;
|
|
217
|
+
readonly agent: Schema.optionalKey<Schema.String>;
|
|
218
|
+
readonly model: Schema.optionalKey<Schema.String>;
|
|
219
|
+
readonly paths: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
220
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
221
|
+
}>;
|
|
222
|
+
readonly body: Schema.String;
|
|
223
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
224
|
+
}>;
|
|
225
|
+
readonly created_at: Schema.Int;
|
|
226
|
+
}>>;
|
|
227
|
+
}>;
|
|
228
|
+
export interface DefinitionRevisionList extends Schema.Schema.Type<typeof DefinitionRevisionList> {
|
|
229
|
+
}
|
|
230
|
+
export declare const ExecutionPinList: Schema.Struct<{
|
|
231
|
+
readonly records: Schema.$Array<Schema.Struct<{
|
|
232
|
+
readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
233
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
234
|
+
};
|
|
235
|
+
readonly skill_definition_id: Schema.brand<Schema.String, "Relay.SkillDefinitionId"> & {
|
|
236
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SkillDefinitionId">;
|
|
237
|
+
};
|
|
238
|
+
readonly skill_definition_revision: Schema.Int;
|
|
239
|
+
readonly skill_definition_snapshot: Schema.Struct<{
|
|
240
|
+
readonly frontmatter: Schema.Struct<{
|
|
241
|
+
readonly name: Schema.String;
|
|
242
|
+
readonly description: Schema.String;
|
|
243
|
+
readonly when_to_use: Schema.optionalKey<Schema.String>;
|
|
244
|
+
readonly allowed_tools: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
245
|
+
readonly disable_model_invocation: Schema.optionalKey<Schema.Boolean>;
|
|
246
|
+
readonly user_invocable: Schema.optionalKey<Schema.Boolean>;
|
|
247
|
+
readonly context_fork: Schema.optionalKey<Schema.Boolean>;
|
|
248
|
+
readonly agent: Schema.optionalKey<Schema.String>;
|
|
249
|
+
readonly model: Schema.optionalKey<Schema.String>;
|
|
250
|
+
readonly paths: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
251
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
252
|
+
}>;
|
|
253
|
+
readonly body: Schema.String;
|
|
254
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
255
|
+
}>;
|
|
256
|
+
readonly created_at: Schema.Int;
|
|
257
|
+
}>>;
|
|
258
|
+
}>;
|
|
259
|
+
export interface ExecutionPinList extends Schema.Schema.Type<typeof ExecutionPinList> {
|
|
260
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
|
+
import { JsonValue } from "./shared-schema";
|
|
2
3
|
export declare const Permission: Schema.Struct<{
|
|
3
4
|
readonly name: Schema.String;
|
|
4
5
|
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
@@ -51,3 +52,4 @@ export declare const Result: Schema.Struct<{
|
|
|
51
52
|
}>;
|
|
52
53
|
export interface Result extends Schema.Schema.Type<typeof Result> {
|
|
53
54
|
}
|
|
55
|
+
export declare const parametersSchema: (inputSchema: JsonValue) => Schema.Top;
|
|
@@ -41,6 +41,7 @@ export interface UpdateChildExecutionStatusInput {
|
|
|
41
41
|
readonly id: Ids.ChildExecutionId;
|
|
42
42
|
readonly status: Execution.ExecutionStatus;
|
|
43
43
|
readonly updatedAt: number;
|
|
44
|
+
readonly metadata?: Shared.Metadata;
|
|
44
45
|
}
|
|
45
46
|
export interface Interface {
|
|
46
47
|
readonly create: (input: CreateChildExecutionInput) => Effect.Effect<ChildExecutionRecord, DuplicateChildExecution | ChildExecutionRepositoryError>;
|