@relayfx/sdk 0.2.10 → 0.2.12
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/ai.js +2 -2
- package/dist/{index-r8975x1z.js → index-236a3f4t.js} +18 -10
- package/dist/{index-fhqr1n44.js → index-33d4k6kk.js} +152 -100
- package/dist/{index-tpwr0wmj.js → index-aph699jp.js} +7 -7
- package/dist/index.js +3 -3
- package/dist/sqlite.js +2 -2
- package/dist/types/relay/client.d.ts +4 -2
- package/dist/types/relay/operation.d.ts +33 -3
- package/dist/types/runtime/address/address-resolution-service.d.ts +10 -0
- package/dist/types/runtime/agent/agent-loop-service.d.ts +4 -6
- package/dist/types/runtime/child/child-run-service.d.ts +3 -0
- package/dist/types/runtime/child/spawn-child-run-tool.d.ts +5 -0
- package/dist/types/runtime/workflow/execution-workflow.d.ts +20 -0
- package/dist/types/schema/agent-schema.d.ts +83 -0
- package/dist/types/schema/child-orchestration-schema.d.ts +15 -0
- package/dist/types/schema/execution-schema.d.ts +42 -2
- package/package.json +3 -3
|
@@ -19,6 +19,11 @@ export declare const FanOutChild: Schema.Struct<{
|
|
|
19
19
|
readonly request_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
20
20
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
21
21
|
}>>;
|
|
22
|
+
readonly compaction_policy: Schema.optionalKey<Schema.Struct<{
|
|
23
|
+
readonly context_window: Schema.Number;
|
|
24
|
+
readonly reserve_tokens: Schema.Number;
|
|
25
|
+
readonly keep_recent_tokens: Schema.Number;
|
|
26
|
+
}>>;
|
|
22
27
|
readonly tool_names: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
23
28
|
readonly permissions: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
24
29
|
readonly workspace_policy: Schema.optionalKey<Schema.Struct<{
|
|
@@ -104,6 +109,11 @@ export declare const FanOutDefinition: Schema.Struct<{
|
|
|
104
109
|
readonly request_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
105
110
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
106
111
|
}>>;
|
|
112
|
+
readonly compaction_policy: Schema.optionalKey<Schema.Struct<{
|
|
113
|
+
readonly context_window: Schema.Number;
|
|
114
|
+
readonly reserve_tokens: Schema.Number;
|
|
115
|
+
readonly keep_recent_tokens: Schema.Number;
|
|
116
|
+
}>>;
|
|
107
117
|
readonly tool_names: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
108
118
|
readonly permissions: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
109
119
|
readonly workspace_policy: Schema.optionalKey<Schema.Struct<{
|
|
@@ -322,6 +332,11 @@ export declare const FanOutState: Schema.Struct<{
|
|
|
322
332
|
readonly request_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
323
333
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
324
334
|
}>>;
|
|
335
|
+
readonly compaction_policy: Schema.optionalKey<Schema.Struct<{
|
|
336
|
+
readonly context_window: Schema.Number;
|
|
337
|
+
readonly reserve_tokens: Schema.Number;
|
|
338
|
+
readonly keep_recent_tokens: Schema.Number;
|
|
339
|
+
}>>;
|
|
325
340
|
readonly tool_names: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
326
341
|
readonly permissions: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
327
342
|
readonly workspace_policy: Schema.optionalKey<Schema.Struct<{
|
|
@@ -42,6 +42,11 @@ export declare const Execution: Schema.Struct<{
|
|
|
42
42
|
readonly [x: string]: Schema.Json;
|
|
43
43
|
};
|
|
44
44
|
readonly instructions?: string;
|
|
45
|
+
readonly compaction_policy?: Schema.Struct.ReadonlySide<{
|
|
46
|
+
readonly context_window: Schema.Number;
|
|
47
|
+
readonly reserve_tokens: Schema.Number;
|
|
48
|
+
readonly keep_recent_tokens: Schema.Number;
|
|
49
|
+
}, "Encoded">;
|
|
45
50
|
readonly output_schema_ref?: string;
|
|
46
51
|
readonly skill_definition_ids?: readonly string[];
|
|
47
52
|
readonly permission_rules?: {
|
|
@@ -74,6 +79,11 @@ export declare const Execution: Schema.Struct<{
|
|
|
74
79
|
};
|
|
75
80
|
};
|
|
76
81
|
readonly instructions?: string;
|
|
82
|
+
readonly compaction_policy?: Schema.Struct.ReadonlySide<{
|
|
83
|
+
readonly context_window: Schema.Number;
|
|
84
|
+
readonly reserve_tokens: Schema.Number;
|
|
85
|
+
readonly keep_recent_tokens: Schema.Number;
|
|
86
|
+
}, "Encoded">;
|
|
77
87
|
readonly tool_names?: readonly string[];
|
|
78
88
|
readonly workspace_policy?: {
|
|
79
89
|
readonly mode: "share" | "fork";
|
|
@@ -105,6 +115,11 @@ export declare const ChildRunContext: Schema.Struct<{
|
|
|
105
115
|
readonly request_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
|
}>>;
|
|
118
|
+
readonly compaction_policy: Schema.optionalKey<Schema.Struct<{
|
|
119
|
+
readonly context_window: Schema.Number;
|
|
120
|
+
readonly reserve_tokens: Schema.Number;
|
|
121
|
+
readonly keep_recent_tokens: Schema.Number;
|
|
122
|
+
}>>;
|
|
108
123
|
readonly tool_names: Schema.$Array<Schema.String>;
|
|
109
124
|
readonly permissions: Schema.$Array<Schema.String>;
|
|
110
125
|
readonly output_schema_ref: Schema.optionalKey<Schema.String>;
|
|
@@ -121,6 +136,11 @@ export declare const ChildRunOverride: Schema.Struct<{
|
|
|
121
136
|
readonly request_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
122
137
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
123
138
|
}>>;
|
|
139
|
+
readonly compaction_policy: Schema.optionalKey<Schema.Struct<{
|
|
140
|
+
readonly context_window: Schema.Number;
|
|
141
|
+
readonly reserve_tokens: Schema.Number;
|
|
142
|
+
readonly keep_recent_tokens: Schema.Number;
|
|
143
|
+
}>>;
|
|
124
144
|
readonly tool_names: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
125
145
|
readonly permissions: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
126
146
|
readonly workspace_policy: Schema.optionalKey<Schema.Struct<{
|
|
@@ -141,6 +161,11 @@ export declare const ChildRunPreset: Schema.Struct<{
|
|
|
141
161
|
readonly request_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
142
162
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
143
163
|
}>>;
|
|
164
|
+
readonly compaction_policy: Schema.optionalKey<Schema.Struct<{
|
|
165
|
+
readonly context_window: Schema.Number;
|
|
166
|
+
readonly reserve_tokens: Schema.Number;
|
|
167
|
+
readonly keep_recent_tokens: Schema.Number;
|
|
168
|
+
}>>;
|
|
144
169
|
readonly tool_names: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
145
170
|
readonly permissions: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
146
171
|
readonly workspace_policy: Schema.optionalKey<Schema.Struct<{
|
|
@@ -171,6 +196,11 @@ export declare const SpawnChildRunInput: Schema.Struct<{
|
|
|
171
196
|
readonly request_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
172
197
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
173
198
|
}>>;
|
|
199
|
+
readonly compaction_policy: Schema.optionalKey<Schema.Struct<{
|
|
200
|
+
readonly context_window: Schema.Number;
|
|
201
|
+
readonly reserve_tokens: Schema.Number;
|
|
202
|
+
readonly keep_recent_tokens: Schema.Number;
|
|
203
|
+
}>>;
|
|
174
204
|
readonly tool_names: Schema.$Array<Schema.String>;
|
|
175
205
|
readonly permissions: Schema.$Array<Schema.String>;
|
|
176
206
|
readonly output_schema_ref: Schema.optionalKey<Schema.String>;
|
|
@@ -185,6 +215,11 @@ export declare const SpawnChildRunInput: Schema.Struct<{
|
|
|
185
215
|
readonly request_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
186
216
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
187
217
|
}>>;
|
|
218
|
+
readonly compaction_policy: Schema.optionalKey<Schema.Struct<{
|
|
219
|
+
readonly context_window: Schema.Number;
|
|
220
|
+
readonly reserve_tokens: Schema.Number;
|
|
221
|
+
readonly keep_recent_tokens: Schema.Number;
|
|
222
|
+
}>>;
|
|
188
223
|
readonly tool_names: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
189
224
|
readonly permissions: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
190
225
|
readonly workspace_policy: Schema.optionalKey<Schema.Struct<{
|
|
@@ -203,6 +238,11 @@ export declare const SpawnChildRunInput: Schema.Struct<{
|
|
|
203
238
|
readonly request_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
204
239
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
205
240
|
}>>;
|
|
241
|
+
readonly compaction_policy: Schema.optionalKey<Schema.Struct<{
|
|
242
|
+
readonly context_window: Schema.Number;
|
|
243
|
+
readonly reserve_tokens: Schema.Number;
|
|
244
|
+
readonly keep_recent_tokens: Schema.Number;
|
|
245
|
+
}>>;
|
|
206
246
|
readonly tool_names: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
207
247
|
readonly permissions: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
208
248
|
readonly workspace_policy: Schema.optionalKey<Schema.Struct<{
|
|
@@ -276,7 +316,7 @@ export declare const ChildRunAccepted: Schema.Struct<{
|
|
|
276
316
|
}>;
|
|
277
317
|
export interface ChildRunAccepted extends Schema.Schema.Type<typeof ChildRunAccepted> {
|
|
278
318
|
}
|
|
279
|
-
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", "state.updated", "state.deleted", "inbox.enqueued", "inbox.drained", "entity.created", "entity.destroyed", "envelope.accepted", "envelope.routed", "envelope.ready", "delivery.attempt", "wait.created", "wait.woken", "wait.timed_out", "wait.cancelled", "child_run.spawned", "child_run.event", "child_fan_out.created", "child_fan_out.member.admitted", "child_fan_out.member.terminal", "child_fan_out.terminal", "workspace.lease.planned", "workspace.lease.acquired", "workspace.suspended", "workspace.resumed", "workspace.snapshot.created", "workspace.lease.released", "workspace.lease.failed"]>;
|
|
319
|
+
export declare const ExecutionEventType: Schema.Literals<readonly ["execution.accepted", "execution.started", "execution.completed", "execution.failed", "execution.cancelled", "model.input.prepared", "model.output.delta", "model.reasoning.delta", "model.toolcall.delta", "model.output.completed", "model.usage.reported", "budget.exceeded", "tool.call.requested", "tool.result.received", "tool.approval.requested", "tool.approval.resolved", "permission.ask.requested", "permission.ask.resolved", "steering.received", "state.updated", "state.deleted", "inbox.enqueued", "inbox.drained", "entity.created", "entity.destroyed", "envelope.accepted", "envelope.routed", "envelope.ready", "delivery.attempt", "wait.created", "wait.woken", "wait.timed_out", "wait.cancelled", "child_run.spawned", "child_run.event", "child_fan_out.created", "child_fan_out.member.admitted", "child_fan_out.member.terminal", "child_fan_out.terminal", "workspace.lease.planned", "workspace.lease.acquired", "workspace.suspended", "workspace.resumed", "workspace.snapshot.created", "workspace.lease.released", "workspace.lease.failed"]>;
|
|
280
320
|
export type ExecutionEventType = typeof ExecutionEventType.Type;
|
|
281
321
|
export declare const ExecutionEvent: Schema.Struct<{
|
|
282
322
|
readonly id: Schema.brand<Schema.String, "Relay.EventId"> & {
|
|
@@ -288,7 +328,7 @@ export declare const ExecutionEvent: Schema.Struct<{
|
|
|
288
328
|
readonly child_execution_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.ChildExecutionId"> & {
|
|
289
329
|
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ChildExecutionId">;
|
|
290
330
|
}>;
|
|
291
|
-
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", "state.updated", "state.deleted", "inbox.enqueued", "inbox.drained", "entity.created", "entity.destroyed", "envelope.accepted", "envelope.routed", "envelope.ready", "delivery.attempt", "wait.created", "wait.woken", "wait.timed_out", "wait.cancelled", "child_run.spawned", "child_run.event", "child_fan_out.created", "child_fan_out.member.admitted", "child_fan_out.member.terminal", "child_fan_out.terminal", "workspace.lease.planned", "workspace.lease.acquired", "workspace.suspended", "workspace.resumed", "workspace.snapshot.created", "workspace.lease.released", "workspace.lease.failed"]>;
|
|
331
|
+
readonly type: Schema.Literals<readonly ["execution.accepted", "execution.started", "execution.completed", "execution.failed", "execution.cancelled", "model.input.prepared", "model.output.delta", "model.reasoning.delta", "model.toolcall.delta", "model.output.completed", "model.usage.reported", "budget.exceeded", "tool.call.requested", "tool.result.received", "tool.approval.requested", "tool.approval.resolved", "permission.ask.requested", "permission.ask.resolved", "steering.received", "state.updated", "state.deleted", "inbox.enqueued", "inbox.drained", "entity.created", "entity.destroyed", "envelope.accepted", "envelope.routed", "envelope.ready", "delivery.attempt", "wait.created", "wait.woken", "wait.timed_out", "wait.cancelled", "child_run.spawned", "child_run.event", "child_fan_out.created", "child_fan_out.member.admitted", "child_fan_out.member.terminal", "child_fan_out.terminal", "workspace.lease.planned", "workspace.lease.acquired", "workspace.suspended", "workspace.resumed", "workspace.snapshot.created", "workspace.lease.released", "workspace.lease.failed"]>;
|
|
292
332
|
readonly sequence: Schema.Int;
|
|
293
333
|
readonly cursor: Schema.String;
|
|
294
334
|
readonly content: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@relayfx/sdk",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.12",
|
|
5
5
|
"description": "Effect-native durable execution SDK for addressable agents and tools",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"typecheck": "bun tsc --noEmit"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@batonfx/core": "0.4.
|
|
50
|
-
"@batonfx/providers": "0.4.
|
|
49
|
+
"@batonfx/core": "0.4.3",
|
|
50
|
+
"@batonfx/providers": "0.4.3",
|
|
51
51
|
"@effect/ai-anthropic": "4.0.0-beta.93",
|
|
52
52
|
"@effect/ai-openai": "4.0.0-beta.93",
|
|
53
53
|
"@effect/ai-openai-compat": "4.0.0-beta.93",
|