@relayfx/sdk 0.2.14 → 0.2.16
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-9q3yh32k.js → index-5x686v8w.js} +1815 -1543
- package/dist/{index-15f2ewt8.js → index-6dv1dqq1.js} +8 -8
- package/dist/{index-gb7d1wfm.js → index-a6vwwhcp.js} +116 -105
- package/dist/{index-qg0hy7s1.js → index-per7tyzq.js} +12 -8
- package/dist/index.js +5 -5
- package/dist/mysql.js +24 -9
- package/dist/postgres.js +18 -13
- package/dist/sqlite.js +26 -29
- package/dist/types/ai/embedding-model/embedding-model-registration.d.ts +2 -2
- package/dist/types/relay/adapter-outbox.d.ts +1 -1
- package/dist/types/relay/client.d.ts +28 -28
- package/dist/types/relay/command.d.ts +10 -4
- package/dist/types/relay/database.d.ts +4 -4
- package/dist/types/relay/migration-errors.d.ts +8 -2
- package/dist/types/relay/mysql.d.ts +2 -2
- package/dist/types/relay/operation.d.ts +173 -123
- package/dist/types/relay/postgres.d.ts +2 -2
- package/dist/types/relay/runtime-capability-policy.d.ts +11 -5
- package/dist/types/relay/runtime-database.d.ts +1 -1
- package/dist/types/relay/runtime.d.ts +4 -4
- package/dist/types/relay/sqlite-migrations.d.ts +1 -1
- package/dist/types/relay/sqlite-runtime.d.ts +10 -5
- package/dist/types/relay/tool-worker.d.ts +6 -5
- package/dist/types/runtime/address/address-book-service.d.ts +3 -3
- package/dist/types/runtime/address/address-resolution-service.d.ts +60 -38
- package/dist/types/runtime/agent/agent-loop-service.d.ts +14 -5
- package/dist/types/runtime/agent/agent-registry-service.d.ts +2 -2
- package/dist/types/runtime/agent/prompt-assembler-service.d.ts +1 -1
- package/dist/types/runtime/agent/relay-compaction.d.ts +3 -2
- package/dist/types/runtime/agent/relay-tool-output.d.ts +4 -1
- package/dist/types/runtime/child/child-fan-out-admission-service.d.ts +1 -1
- package/dist/types/runtime/child/child-fan-out-runtime.d.ts +12 -8
- package/dist/types/runtime/child/child-fan-out-transition-service.d.ts +1 -1
- package/dist/types/runtime/child/child-run-service.d.ts +7 -4
- package/dist/types/runtime/child/parent-notifier-service.d.ts +4 -2
- package/dist/types/runtime/child/spawn-child-run-tool.d.ts +12 -4
- package/dist/types/runtime/cluster/execution-entity.d.ts +2 -2
- package/dist/types/runtime/content/artifact-store-service.d.ts +2 -2
- package/dist/types/runtime/content/blob-store-service.d.ts +1 -1
- package/dist/types/runtime/entity/entity-instance-service.d.ts +14 -5
- package/dist/types/runtime/entity/entity-registry-service.d.ts +2 -2
- package/dist/types/runtime/envelope/envelope-service.d.ts +2 -2
- package/dist/types/runtime/execution/active-execution-registry.d.ts +1 -1
- package/dist/types/runtime/execution/event-log-service.d.ts +5 -2
- package/dist/types/runtime/execution/execution-service.d.ts +1 -1
- package/dist/types/runtime/execution/execution-watch-service.d.ts +1 -1
- package/dist/types/runtime/execution/session-stream-service.d.ts +1 -1
- package/dist/types/runtime/inbox/inbox-service.d.ts +1 -1
- package/dist/types/runtime/memory/memory-service.d.ts +1 -1
- package/dist/types/runtime/model/embedding-model-service.d.ts +23 -10
- package/dist/types/runtime/model/language-model-service.d.ts +20 -6
- package/dist/types/runtime/model/model-call-policy.d.ts +1 -1
- package/dist/types/runtime/observability/runtime-metrics.d.ts +12 -3
- package/dist/types/runtime/presence/presence-service.d.ts +1 -1
- package/dist/types/runtime/presence/presence-tool.d.ts +1 -1
- package/dist/types/runtime/runner/runner-runtime-service.d.ts +19 -19
- package/dist/types/runtime/schedule/scheduler-service.d.ts +3 -3
- package/dist/types/runtime/schema-registry/schema-registry-service.d.ts +2 -2
- package/dist/types/runtime/session/session-store-service.d.ts +13 -4
- package/dist/types/runtime/skill/skill-registry-service.d.ts +2 -2
- package/dist/types/runtime/state/execution-state-service.d.ts +5 -2
- package/dist/types/runtime/tool/tool-runtime-service.d.ts +42 -19
- package/dist/types/runtime/tool/tool-transition-coordinator.d.ts +2 -2
- package/dist/types/runtime/topic/topic-service.d.ts +1 -1
- package/dist/types/runtime/wait/wait-service.d.ts +1 -1
- package/dist/types/runtime/wait/wait-signal.d.ts +12 -3
- package/dist/types/runtime/workflow/activity-version-registry.d.ts +7 -3
- package/dist/types/runtime/workflow/definition-runtime.d.ts +37 -22
- package/dist/types/runtime/workflow/execution-workflow.d.ts +143 -104
- package/dist/types/runtime/workspace/workspace-planner-service.d.ts +6 -6
- package/dist/types/runtime/workspace/workspace-provider-service.d.ts +11 -7
- package/dist/types/runtime/workspace/workspace-runtime-service.d.ts +1 -1
- package/dist/types/schema/agent-schema.d.ts +388 -228
- package/dist/types/schema/child-orchestration-schema.d.ts +78 -57
- package/dist/types/schema/execution-schema.d.ts +118 -54
- package/dist/types/schema/workflow-schema.d.ts +243 -243
- package/dist/types/schema/workspace-schema.d.ts +1 -1
- package/dist/types/store-sql/address/address-book-repository.d.ts +5 -5
- package/dist/types/store-sql/agent/agent-definition-repository.d.ts +7 -7
- package/dist/types/store-sql/chat/agent-chat-repository.d.ts +2 -2
- package/dist/types/store-sql/child/child-execution-repository.d.ts +4 -4
- package/dist/types/store-sql/child/child-fan-out-repository.d.ts +2 -2
- package/dist/types/store-sql/cluster/cluster-registry-repository.d.ts +5 -5
- package/dist/types/store-sql/compaction/compaction-repository.d.ts +3 -3
- package/dist/types/store-sql/database/database-service.d.ts +3 -3
- package/dist/types/store-sql/database/notification-bus.d.ts +1 -1
- package/dist/types/store-sql/database/sql-dialect.d.ts +4 -1
- package/dist/types/store-sql/entity/entity-repository.d.ts +2 -2
- package/dist/types/store-sql/envelope/envelope-repository.d.ts +13 -13
- package/dist/types/store-sql/execution/execution-event-repository.d.ts +4 -4
- package/dist/types/store-sql/execution/execution-repository.d.ts +8 -8
- package/dist/types/store-sql/idempotency/idempotency-repository.d.ts +5 -5
- package/dist/types/store-sql/inbox/inbox-repository.d.ts +1 -1
- package/dist/types/store-sql/memory/memory-repository.d.ts +3 -3
- package/dist/types/store-sql/permission/permission-rule-repository.d.ts +2 -2
- package/dist/types/store-sql/presence/presence-repository.d.ts +2 -2
- package/dist/types/store-sql/schedule/schedule-repository.d.ts +9 -9
- package/dist/types/store-sql/schema/relay-schema.d.ts +257 -257
- package/dist/types/store-sql/session/context-epoch-repository.d.ts +2 -2
- package/dist/types/store-sql/session/session-repository.d.ts +5 -5
- package/dist/types/store-sql/skill/skill-definition-repository.d.ts +9 -9
- package/dist/types/store-sql/state/execution-state-repository.d.ts +2 -2
- package/dist/types/store-sql/steering/steering-repository.d.ts +5 -5
- package/dist/types/store-sql/tenant/tenant-id.d.ts +2 -2
- package/dist/types/store-sql/tool/tool-call-repository.d.ts +19 -16
- package/dist/types/store-sql/topic/topic-repository.d.ts +1 -1
- package/dist/types/store-sql/workflow/workflow-definition-repository.d.ts +16 -14
- package/dist/types/store-sql/workspace/workspace-lease-repository.d.ts +11 -11
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Agent, Ids } from "../../schema/index";
|
|
2
2
|
import { ChildExecutionRepository, EnvelopeRepository, ExecutionRepository, ToolCallRepository } from "../../store-sql/portable";
|
|
3
|
-
import { Workflow } from "effect/unstable/workflow";
|
|
3
|
+
import { Workflow, WorkflowEngine } from "effect/unstable/workflow";
|
|
4
4
|
import { Effect, Layer, Option, Schema } from "effect";
|
|
5
5
|
import { Service as AgentLoopService } from "../agent/agent-loop-service";
|
|
6
6
|
import { ChildTerminalStatus } from "../child/parent-notifier-service";
|
|
@@ -80,83 +80,105 @@ export declare const StartInput: Schema.Struct<{
|
|
|
80
80
|
readonly agent_revision: Schema.optionalKey<Schema.Int>;
|
|
81
81
|
readonly agent_snapshot: Schema.optionalKey<Schema.Codec<Agent.Definition, {
|
|
82
82
|
readonly name: string;
|
|
83
|
-
readonly
|
|
84
|
-
readonly name: string;
|
|
85
|
-
readonly value: Schema.Json;
|
|
86
|
-
readonly metadata?: {
|
|
87
|
-
readonly [x: string]: Schema.Json;
|
|
88
|
-
};
|
|
89
|
-
}[];
|
|
83
|
+
readonly instructions?: string;
|
|
90
84
|
readonly model: {
|
|
91
85
|
readonly provider: string;
|
|
92
86
|
readonly model: string;
|
|
93
|
-
readonly metadata?: {
|
|
94
|
-
readonly [x: string]: Schema.Json;
|
|
95
|
-
};
|
|
96
87
|
readonly registration_key?: string;
|
|
97
88
|
readonly request_options?: {
|
|
98
89
|
readonly [x: string]: Schema.Json;
|
|
99
90
|
};
|
|
91
|
+
readonly metadata?: {
|
|
92
|
+
readonly [x: string]: Schema.Json;
|
|
93
|
+
};
|
|
100
94
|
};
|
|
101
95
|
readonly tool_names: readonly string[];
|
|
102
|
-
readonly
|
|
103
|
-
readonly
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
readonly keep_recent_tokens: Schema.Number;
|
|
110
|
-
}, "Encoded">;
|
|
111
|
-
readonly output_schema_ref?: string;
|
|
96
|
+
readonly permissions: readonly {
|
|
97
|
+
readonly name: string;
|
|
98
|
+
readonly value: Schema.Json;
|
|
99
|
+
readonly metadata?: {
|
|
100
|
+
readonly [x: string]: Schema.Json;
|
|
101
|
+
};
|
|
102
|
+
}[];
|
|
112
103
|
readonly skill_definition_ids?: readonly string[];
|
|
113
104
|
readonly permission_rules?: {
|
|
114
105
|
readonly rules: readonly {
|
|
115
106
|
readonly pattern: string;
|
|
116
|
-
readonly level: "allow" | "
|
|
107
|
+
readonly level: "allow" | "ask" | "deny";
|
|
117
108
|
readonly reason?: string;
|
|
118
109
|
}[];
|
|
119
|
-
readonly fallback?: "allow" | "
|
|
110
|
+
readonly fallback?: "allow" | "ask" | "deny";
|
|
120
111
|
};
|
|
121
112
|
readonly turn_policy?: Agent.TurnPolicySnapshot;
|
|
113
|
+
readonly compaction_policy?: {
|
|
114
|
+
readonly context_window: number;
|
|
115
|
+
readonly reserve_tokens: number;
|
|
116
|
+
readonly keep_recent_tokens: number;
|
|
117
|
+
readonly summary_model?: {
|
|
118
|
+
readonly provider: string;
|
|
119
|
+
readonly model: string;
|
|
120
|
+
readonly registration_key?: string;
|
|
121
|
+
readonly request_options?: {
|
|
122
|
+
readonly [x: string]: Schema.Json;
|
|
123
|
+
};
|
|
124
|
+
readonly metadata?: {
|
|
125
|
+
readonly [x: string]: Schema.Json;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
};
|
|
122
129
|
readonly max_tool_turns?: number;
|
|
123
130
|
readonly max_wait_turns?: number;
|
|
124
131
|
readonly token_budget?: number;
|
|
125
132
|
readonly child_run_presets?: {
|
|
126
133
|
readonly [x: string]: {
|
|
127
|
-
readonly
|
|
128
|
-
readonly [x: string]: Schema.Json;
|
|
129
|
-
};
|
|
130
|
-
readonly permissions?: readonly string[];
|
|
134
|
+
readonly instructions?: string;
|
|
131
135
|
readonly model?: {
|
|
132
136
|
readonly provider: string;
|
|
133
137
|
readonly model: string;
|
|
134
|
-
readonly metadata?: {
|
|
135
|
-
readonly [x: string]: Schema.Json;
|
|
136
|
-
};
|
|
137
138
|
readonly registration_key?: string;
|
|
138
139
|
readonly request_options?: {
|
|
139
140
|
readonly [x: string]: Schema.Json;
|
|
140
141
|
};
|
|
142
|
+
readonly metadata?: {
|
|
143
|
+
readonly [x: string]: Schema.Json;
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
readonly compaction_policy?: {
|
|
147
|
+
readonly context_window: number;
|
|
148
|
+
readonly reserve_tokens: number;
|
|
149
|
+
readonly keep_recent_tokens: number;
|
|
150
|
+
readonly summary_model?: {
|
|
151
|
+
readonly provider: string;
|
|
152
|
+
readonly model: string;
|
|
153
|
+
readonly registration_key?: string;
|
|
154
|
+
readonly request_options?: {
|
|
155
|
+
readonly [x: string]: Schema.Json;
|
|
156
|
+
};
|
|
157
|
+
readonly metadata?: {
|
|
158
|
+
readonly [x: string]: Schema.Json;
|
|
159
|
+
};
|
|
160
|
+
};
|
|
141
161
|
};
|
|
142
|
-
readonly instructions?: string;
|
|
143
|
-
readonly compaction_policy?: Schema.Struct.ReadonlySide<{
|
|
144
|
-
readonly context_window: Schema.Number;
|
|
145
|
-
readonly reserve_tokens: Schema.Number;
|
|
146
|
-
readonly keep_recent_tokens: Schema.Number;
|
|
147
|
-
}, "Encoded">;
|
|
148
162
|
readonly tool_names?: readonly string[];
|
|
163
|
+
readonly permissions?: readonly string[];
|
|
149
164
|
readonly workspace_policy?: {
|
|
150
|
-
readonly mode: "
|
|
165
|
+
readonly mode: "fork" | "share";
|
|
151
166
|
readonly fallback?: "fail" | "fresh";
|
|
152
167
|
};
|
|
153
168
|
readonly output_schema_ref?: string;
|
|
169
|
+
readonly metadata?: {
|
|
170
|
+
readonly [x: string]: Schema.Json;
|
|
171
|
+
};
|
|
154
172
|
};
|
|
155
173
|
};
|
|
156
174
|
readonly handoff_targets?: readonly Schema.Struct.ReadonlySide<{
|
|
157
175
|
readonly name: Schema.String;
|
|
158
176
|
readonly preset_name: Schema.String;
|
|
159
177
|
}, "Encoded">[];
|
|
178
|
+
readonly output_schema_ref?: string;
|
|
179
|
+
readonly metadata?: {
|
|
180
|
+
readonly [x: string]: Schema.Json;
|
|
181
|
+
};
|
|
160
182
|
}, never, never>>;
|
|
161
183
|
readonly agent_tool_input_schema_digests: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
162
184
|
readonly wait_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.WaitId"> & {
|
|
@@ -348,83 +370,105 @@ export declare const StartExecutionWorkflow: Workflow.Workflow<"Relay/Execution/
|
|
|
348
370
|
readonly agent_revision: Schema.optionalKey<Schema.Int>;
|
|
349
371
|
readonly agent_snapshot: Schema.optionalKey<Schema.Codec<Agent.Definition, {
|
|
350
372
|
readonly name: string;
|
|
351
|
-
readonly
|
|
352
|
-
readonly name: string;
|
|
353
|
-
readonly value: Schema.Json;
|
|
354
|
-
readonly metadata?: {
|
|
355
|
-
readonly [x: string]: Schema.Json;
|
|
356
|
-
};
|
|
357
|
-
}[];
|
|
373
|
+
readonly instructions?: string;
|
|
358
374
|
readonly model: {
|
|
359
375
|
readonly provider: string;
|
|
360
376
|
readonly model: string;
|
|
361
|
-
readonly metadata?: {
|
|
362
|
-
readonly [x: string]: Schema.Json;
|
|
363
|
-
};
|
|
364
377
|
readonly registration_key?: string;
|
|
365
378
|
readonly request_options?: {
|
|
366
379
|
readonly [x: string]: Schema.Json;
|
|
367
380
|
};
|
|
381
|
+
readonly metadata?: {
|
|
382
|
+
readonly [x: string]: Schema.Json;
|
|
383
|
+
};
|
|
368
384
|
};
|
|
369
385
|
readonly tool_names: readonly string[];
|
|
370
|
-
readonly
|
|
371
|
-
readonly
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
readonly keep_recent_tokens: Schema.Number;
|
|
378
|
-
}, "Encoded">;
|
|
379
|
-
readonly output_schema_ref?: string;
|
|
386
|
+
readonly permissions: readonly {
|
|
387
|
+
readonly name: string;
|
|
388
|
+
readonly value: Schema.Json;
|
|
389
|
+
readonly metadata?: {
|
|
390
|
+
readonly [x: string]: Schema.Json;
|
|
391
|
+
};
|
|
392
|
+
}[];
|
|
380
393
|
readonly skill_definition_ids?: readonly string[];
|
|
381
394
|
readonly permission_rules?: {
|
|
382
395
|
readonly rules: readonly {
|
|
383
396
|
readonly pattern: string;
|
|
384
|
-
readonly level: "allow" | "
|
|
397
|
+
readonly level: "allow" | "ask" | "deny";
|
|
385
398
|
readonly reason?: string;
|
|
386
399
|
}[];
|
|
387
|
-
readonly fallback?: "allow" | "
|
|
400
|
+
readonly fallback?: "allow" | "ask" | "deny";
|
|
388
401
|
};
|
|
389
402
|
readonly turn_policy?: Agent.TurnPolicySnapshot;
|
|
403
|
+
readonly compaction_policy?: {
|
|
404
|
+
readonly context_window: number;
|
|
405
|
+
readonly reserve_tokens: number;
|
|
406
|
+
readonly keep_recent_tokens: number;
|
|
407
|
+
readonly summary_model?: {
|
|
408
|
+
readonly provider: string;
|
|
409
|
+
readonly model: string;
|
|
410
|
+
readonly registration_key?: string;
|
|
411
|
+
readonly request_options?: {
|
|
412
|
+
readonly [x: string]: Schema.Json;
|
|
413
|
+
};
|
|
414
|
+
readonly metadata?: {
|
|
415
|
+
readonly [x: string]: Schema.Json;
|
|
416
|
+
};
|
|
417
|
+
};
|
|
418
|
+
};
|
|
390
419
|
readonly max_tool_turns?: number;
|
|
391
420
|
readonly max_wait_turns?: number;
|
|
392
421
|
readonly token_budget?: number;
|
|
393
422
|
readonly child_run_presets?: {
|
|
394
423
|
readonly [x: string]: {
|
|
395
|
-
readonly
|
|
396
|
-
readonly [x: string]: Schema.Json;
|
|
397
|
-
};
|
|
398
|
-
readonly permissions?: readonly string[];
|
|
424
|
+
readonly instructions?: string;
|
|
399
425
|
readonly model?: {
|
|
400
426
|
readonly provider: string;
|
|
401
427
|
readonly model: string;
|
|
402
|
-
readonly metadata?: {
|
|
403
|
-
readonly [x: string]: Schema.Json;
|
|
404
|
-
};
|
|
405
428
|
readonly registration_key?: string;
|
|
406
429
|
readonly request_options?: {
|
|
407
430
|
readonly [x: string]: Schema.Json;
|
|
408
431
|
};
|
|
432
|
+
readonly metadata?: {
|
|
433
|
+
readonly [x: string]: Schema.Json;
|
|
434
|
+
};
|
|
435
|
+
};
|
|
436
|
+
readonly compaction_policy?: {
|
|
437
|
+
readonly context_window: number;
|
|
438
|
+
readonly reserve_tokens: number;
|
|
439
|
+
readonly keep_recent_tokens: number;
|
|
440
|
+
readonly summary_model?: {
|
|
441
|
+
readonly provider: string;
|
|
442
|
+
readonly model: string;
|
|
443
|
+
readonly registration_key?: string;
|
|
444
|
+
readonly request_options?: {
|
|
445
|
+
readonly [x: string]: Schema.Json;
|
|
446
|
+
};
|
|
447
|
+
readonly metadata?: {
|
|
448
|
+
readonly [x: string]: Schema.Json;
|
|
449
|
+
};
|
|
450
|
+
};
|
|
409
451
|
};
|
|
410
|
-
readonly instructions?: string;
|
|
411
|
-
readonly compaction_policy?: Schema.Struct.ReadonlySide<{
|
|
412
|
-
readonly context_window: Schema.Number;
|
|
413
|
-
readonly reserve_tokens: Schema.Number;
|
|
414
|
-
readonly keep_recent_tokens: Schema.Number;
|
|
415
|
-
}, "Encoded">;
|
|
416
452
|
readonly tool_names?: readonly string[];
|
|
453
|
+
readonly permissions?: readonly string[];
|
|
417
454
|
readonly workspace_policy?: {
|
|
418
|
-
readonly mode: "
|
|
455
|
+
readonly mode: "fork" | "share";
|
|
419
456
|
readonly fallback?: "fail" | "fresh";
|
|
420
457
|
};
|
|
421
458
|
readonly output_schema_ref?: string;
|
|
459
|
+
readonly metadata?: {
|
|
460
|
+
readonly [x: string]: Schema.Json;
|
|
461
|
+
};
|
|
422
462
|
};
|
|
423
463
|
};
|
|
424
464
|
readonly handoff_targets?: readonly Schema.Struct.ReadonlySide<{
|
|
425
465
|
readonly name: Schema.String;
|
|
426
466
|
readonly preset_name: Schema.String;
|
|
427
467
|
}, "Encoded">[];
|
|
468
|
+
readonly output_schema_ref?: string;
|
|
469
|
+
readonly metadata?: {
|
|
470
|
+
readonly [x: string]: Schema.Json;
|
|
471
|
+
};
|
|
428
472
|
}, never, never>>;
|
|
429
473
|
readonly agent_tool_input_schema_digests: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
430
474
|
readonly wait_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.WaitId"> & {
|
|
@@ -451,45 +495,40 @@ export declare const StartExecutionWorkflow: Workflow.Workflow<"Relay/Execution/
|
|
|
451
495
|
readonly wait_state: Schema.optionalKey<Schema.Literals<readonly ["resolved", "timed_out", "cancelled"]>>;
|
|
452
496
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
453
497
|
}>, typeof ExecutionWorkflowFailed>;
|
|
454
|
-
export declare const sessionEntryScope:
|
|
455
|
-
|
|
456
|
-
|
|
498
|
+
export declare const sessionEntryScope: {
|
|
499
|
+
(input: StartInput, turn: number): string;
|
|
500
|
+
(turn: number): (input: StartInput) => string;
|
|
501
|
+
};
|
|
502
|
+
export declare const layer: Layer.Layer<never, never, ChildExecutionRepository.Service | EnvelopeRepository.Service | ExecutionRepository.Service | ToolCallRepository.Service | EventLogService | import("../wait/wait-service").Service | ToolRuntimeService | import("../address/address-resolution-service").Service | import("../skill/skill-registry-service").Service | import("../execution/execution-service").Service | ToolTransitionCoordinatorService | import("../workspace/workspace-planner-service").Service | AgentLoopService | WorkflowEngine.WorkflowEngine>;
|
|
503
|
+
interface StartOptions<Discard extends boolean> {
|
|
457
504
|
readonly discard?: Discard;
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
readonly wait_state?: "cancelled" | "resolved" | "timed_out";
|
|
466
|
-
}, Discard extends true ? never : ExecutionWorkflowFailed, import("effect/unstable/workflow/WorkflowEngine").WorkflowEngine>;
|
|
467
|
-
export declare const startRequest: (input: StartInput) => Effect.Effect<{
|
|
468
|
-
readonly status: "waiting" | "running" | "completed" | "failed" | "queued" | "cancelled";
|
|
469
|
-
readonly execution_id: string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
470
|
-
readonly metadata?: {
|
|
471
|
-
readonly [x: string]: Schema.Json;
|
|
472
|
-
};
|
|
473
|
-
readonly wait_id?: string & import("effect/Brand").Brand<"Relay.WaitId">;
|
|
474
|
-
readonly wait_state?: "cancelled" | "resolved" | "timed_out";
|
|
475
|
-
}, ExecutionWorkflowFailed, ExecutionRepository.Service | import("../wait/wait-service").Service | import("effect/unstable/workflow/WorkflowEngine").WorkflowEngine>;
|
|
476
|
-
export declare const dispatchRequest: (input: StartInput) => Effect.Effect<void, never, import("effect/unstable/workflow/WorkflowEngine").WorkflowEngine>;
|
|
505
|
+
}
|
|
506
|
+
export declare const start: {
|
|
507
|
+
<const Discard extends boolean = false>(input: StartInput, options?: StartOptions<Discard>): Effect.Effect<Discard extends true ? string : StartResult, ExecutionWorkflowFailed, WorkflowEngine.WorkflowEngine>;
|
|
508
|
+
<const Discard extends boolean = false>(options?: StartOptions<Discard>): (input: StartInput) => Effect.Effect<Discard extends true ? string : StartResult, ExecutionWorkflowFailed, WorkflowEngine.WorkflowEngine>;
|
|
509
|
+
};
|
|
510
|
+
export declare const startRequest: (input: StartInput) => Effect.Effect<StartResult, ExecutionWorkflowFailed, ExecutionRepository.Service | import("../wait/wait-service").Service | WorkflowEngine.WorkflowEngine>;
|
|
511
|
+
export declare const dispatchRequest: (input: StartInput) => Effect.Effect<void, ExecutionWorkflowFailed, WorkflowEngine.WorkflowEngine>;
|
|
477
512
|
export declare const cancelRequest: (input: CancelExecutionInput) => Effect.Effect<{
|
|
478
513
|
execution_id: string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
479
|
-
status: "
|
|
480
|
-
}, ExecutionWorkflowFailed, ChildExecutionRepository.Service | EnvelopeRepository.Service | ExecutionRepository.Service | ToolCallRepository.Service | EventLogService | import("../wait/wait-service").Service | import("../execution/execution-service").Service | ToolTransitionCoordinatorService |
|
|
514
|
+
status: "cancelled" | "completed" | "failed" | "queued" | "running" | "waiting";
|
|
515
|
+
}, ExecutionWorkflowFailed, ChildExecutionRepository.Service | EnvelopeRepository.Service | ExecutionRepository.Service | ToolCallRepository.Service | EventLogService | import("../wait/wait-service").Service | import("../execution/execution-service").Service | ToolTransitionCoordinatorService | WorkflowEngine.WorkflowEngine>;
|
|
481
516
|
export declare const poll: (executionId: string) => Effect.Effect<Option.Option<Workflow.Result<{
|
|
482
|
-
readonly status: "waiting" | "running" | "completed" | "failed" | "queued" | "cancelled";
|
|
483
517
|
readonly execution_id: string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
518
|
+
readonly status: "cancelled" | "completed" | "failed" | "queued" | "running" | "waiting";
|
|
519
|
+
readonly wait_id?: string & import("effect/Brand").Brand<"Relay.WaitId">;
|
|
520
|
+
readonly wait_state?: "cancelled" | "resolved" | "timed_out";
|
|
484
521
|
readonly metadata?: {
|
|
485
522
|
readonly [x: string]: Schema.Json;
|
|
486
523
|
};
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
}, ExecutionWorkflowFailed>>, never, import("effect/unstable/workflow/WorkflowEngine").WorkflowEngine>;
|
|
490
|
-
export declare const resume: (executionId: string) => Effect.Effect<void, never, import("effect/unstable/workflow/WorkflowEngine").WorkflowEngine>;
|
|
524
|
+
}, ExecutionWorkflowFailed>>, never, WorkflowEngine.WorkflowEngine>;
|
|
525
|
+
export declare const resume: (executionId: string) => Effect.Effect<void, never, WorkflowEngine.WorkflowEngine>;
|
|
491
526
|
export declare const workflowExecutionId: (input: StartInput) => Effect.Effect<string, never, never>;
|
|
492
|
-
export declare const workflowExecutionIdForExecution:
|
|
527
|
+
export declare const workflowExecutionIdForExecution: {
|
|
528
|
+
(executionId: Ids.ExecutionId): Effect.Effect<string>;
|
|
529
|
+
(executionId: Ids.ExecutionId, workflowGeneration: number): Effect.Effect<string>;
|
|
530
|
+
(workflowGeneration: number): (executionId: Ids.ExecutionId) => Effect.Effect<string>;
|
|
531
|
+
};
|
|
493
532
|
export declare const activeWorkflowExecutionIdForExecution: (executionId: string & import("effect/Brand").Brand<"Relay.ExecutionId">) => Effect.Effect<string, ExecutionWorkflowFailed, ExecutionRepository.Service>;
|
|
494
|
-
export declare const signalWait: (input: SignalWaitInput) => Effect.Effect<void, never,
|
|
533
|
+
export declare const signalWait: (input: SignalWaitInput) => Effect.Effect<void, never, WorkflowEngine.WorkflowEngine>;
|
|
495
534
|
export {};
|
|
@@ -50,15 +50,15 @@ export interface Interface {
|
|
|
50
50
|
readonly release: (input: LifecycleInput) => Effect.Effect<Workspace.WorkspaceLeaseRecord | undefined, WorkspaceRuntimeMissing | WorkspaceLeaseMissingRef | WorkspacePlannerError | WorkspaceProviderError>;
|
|
51
51
|
readonly fail: (input: FailureInput) => Effect.Effect<Workspace.WorkspaceLeaseRecord | undefined, WorkspacePlannerError>;
|
|
52
52
|
}
|
|
53
|
-
declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/
|
|
53
|
+
declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/workspace/workspace-planner-service/Service", Interface>;
|
|
54
54
|
export declare class Service extends Service_base {
|
|
55
55
|
}
|
|
56
56
|
export declare const layer: Layer.Layer<Service, never, WorkspaceLeaseRepository.Service | EventLogService>;
|
|
57
57
|
export declare const testLayer: (implementation: Interface) => Layer.Layer<Service, never, never>;
|
|
58
|
-
export declare const ensure: (input: EnsureInput) => Effect.Effect<WorkspacePlan | undefined, WorkspaceNotFound |
|
|
59
|
-
export declare const suspend: (input: LifecycleInput) => Effect.Effect<Workspace.WorkspaceLeaseRecord | undefined,
|
|
60
|
-
export declare const resume: (input: LifecycleInput) => Effect.Effect<WorkspacePlan | undefined, WorkspaceNotFound |
|
|
61
|
-
export declare const attach: (input: LifecycleInput) => Effect.Effect<WorkspacePlan | undefined, WorkspaceNotFound |
|
|
62
|
-
export declare const release: (input: LifecycleInput) => Effect.Effect<Workspace.WorkspaceLeaseRecord | undefined,
|
|
58
|
+
export declare const ensure: (input: EnsureInput) => Effect.Effect<WorkspacePlan | undefined, WorkspaceLeaseMissingRef | WorkspaceNotFound | WorkspacePlannerError | WorkspaceProviderError | WorkspaceRuntimeMissing | WorkspaceUnavailable, Service>;
|
|
59
|
+
export declare const suspend: (input: LifecycleInput) => Effect.Effect<Workspace.WorkspaceLeaseRecord | undefined, WorkspaceCapabilityUnsupported | WorkspaceLeaseMissingRef | WorkspaceNotFound | WorkspacePlannerError | WorkspaceProviderError | WorkspaceRuntimeMissing, Service>;
|
|
60
|
+
export declare const resume: (input: LifecycleInput) => Effect.Effect<WorkspacePlan | undefined, WorkspaceLeaseMissingRef | WorkspaceNotFound | WorkspacePlannerError | WorkspaceProviderError | WorkspaceRuntimeMissing | WorkspaceUnavailable, Service>;
|
|
61
|
+
export declare const attach: (input: LifecycleInput) => Effect.Effect<WorkspacePlan | undefined, WorkspaceLeaseMissingRef | WorkspaceNotFound | WorkspacePlannerError | WorkspaceProviderError | WorkspaceRuntimeMissing | WorkspaceUnavailable, Service>;
|
|
62
|
+
export declare const release: (input: LifecycleInput) => Effect.Effect<Workspace.WorkspaceLeaseRecord | undefined, WorkspaceLeaseMissingRef | WorkspacePlannerError | WorkspaceProviderError | WorkspaceRuntimeMissing, Service>;
|
|
63
63
|
export declare const fail: (input: FailureInput) => Effect.Effect<Workspace.WorkspaceLeaseRecord | undefined, WorkspacePlannerError, Service>;
|
|
64
64
|
export {};
|
|
@@ -60,16 +60,20 @@ export interface Interface {
|
|
|
60
60
|
readonly fork: (ref: Ids.WorkspaceRef, spec?: Partial<WorkspaceSpec>) => Effect.Effect<Ids.WorkspaceRef, WorkspaceNotFound | WorkspaceCapabilityUnsupported | WorkspaceProviderError>;
|
|
61
61
|
readonly destroy: (ref: Ids.WorkspaceRef) => Effect.Effect<void, WorkspaceProviderError>;
|
|
62
62
|
}
|
|
63
|
-
declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/
|
|
63
|
+
declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/workspace/workspace-provider-service/Service", Interface>;
|
|
64
64
|
export declare class Service extends Service_base {
|
|
65
65
|
}
|
|
66
|
-
export declare const memoryHandle:
|
|
66
|
+
export declare const memoryHandle: {
|
|
67
|
+
(ref: Ids.WorkspaceRef, providerKey: Workspace.WorkspaceProviderKey): WorkspaceHandle;
|
|
68
|
+
(ref: Ids.WorkspaceRef): WorkspaceHandle;
|
|
69
|
+
(providerKey: Workspace.WorkspaceProviderKey): (ref: Ids.WorkspaceRef) => WorkspaceHandle;
|
|
70
|
+
};
|
|
67
71
|
export declare const memoryLayer: (providerKey?: Workspace.WorkspaceProviderKey) => Layer.Layer<Service, never, never>;
|
|
68
72
|
export interface DaytonaSandbox {
|
|
69
73
|
readonly id: string;
|
|
70
74
|
state?: string;
|
|
71
|
-
readonly start: () => Effect.Effect<void, WorkspaceProviderError>;
|
|
72
|
-
readonly stop: () => Effect.Effect<void, WorkspaceProviderError>;
|
|
75
|
+
readonly start: (_?: void) => Effect.Effect<void, WorkspaceProviderError>;
|
|
76
|
+
readonly stop: (_?: void) => Effect.Effect<void, WorkspaceProviderError>;
|
|
73
77
|
readonly readFile?: (path: string) => Effect.Effect<string, WorkspaceProviderError>;
|
|
74
78
|
readonly writeFile?: (path: string, content: string) => Effect.Effect<void, WorkspaceProviderError>;
|
|
75
79
|
readonly exec?: (input: WorkspaceCommandInput) => Effect.Effect<WorkspaceCommandResult, WorkspaceProviderError>;
|
|
@@ -100,9 +104,9 @@ export interface LocalDockerLayerConfig {
|
|
|
100
104
|
export declare const localDockerLayer: (config: LocalDockerLayerConfig) => Layer.Layer<Service, never, never>;
|
|
101
105
|
export declare const testLayer: (implementation: Interface) => Layer.Layer<Service, never, never>;
|
|
102
106
|
export declare const acquire: (spec: WorkspaceSpec) => Effect.Effect<WorkspaceHandle, WorkspaceProviderError, Service>;
|
|
103
|
-
export declare const resume: (ref: string & import("effect/Brand").Brand<"Relay.WorkspaceRef">) => Effect.Effect<WorkspaceHandle, WorkspaceNotFound |
|
|
107
|
+
export declare const resume: (ref: string & import("effect/Brand").Brand<"Relay.WorkspaceRef">) => Effect.Effect<WorkspaceHandle, WorkspaceNotFound | WorkspaceProviderError | WorkspaceUnavailable, Service>;
|
|
104
108
|
export declare const suspend: (ref: string & import("effect/Brand").Brand<"Relay.WorkspaceRef">) => Effect.Effect<string & import("effect/Brand").Brand<"Relay.WorkspaceRef">, WorkspaceNotFound | WorkspaceProviderError, Service>;
|
|
105
|
-
export declare const snapshot: (ref: string & import("effect/Brand").Brand<"Relay.WorkspaceRef">, name?: string | undefined) => Effect.Effect<string & import("effect/Brand").Brand<"Relay.SnapshotRef">,
|
|
106
|
-
export declare const fork: (ref: string & import("effect/Brand").Brand<"Relay.WorkspaceRef">, spec?: Partial<WorkspaceSpec> | undefined) => Effect.Effect<string & import("effect/Brand").Brand<"Relay.WorkspaceRef">,
|
|
109
|
+
export declare const snapshot: (ref: string & import("effect/Brand").Brand<"Relay.WorkspaceRef">, name?: string | undefined) => Effect.Effect<string & import("effect/Brand").Brand<"Relay.SnapshotRef">, WorkspaceCapabilityUnsupported | WorkspaceNotFound | WorkspaceProviderError, Service>;
|
|
110
|
+
export declare const fork: (ref: string & import("effect/Brand").Brand<"Relay.WorkspaceRef">, spec?: Partial<WorkspaceSpec> | undefined) => Effect.Effect<string & import("effect/Brand").Brand<"Relay.WorkspaceRef">, WorkspaceCapabilityUnsupported | WorkspaceNotFound | WorkspaceProviderError, Service>;
|
|
107
111
|
export declare const destroy: (ref: string & import("effect/Brand").Brand<"Relay.WorkspaceRef">) => Effect.Effect<void, WorkspaceProviderError, Service>;
|
|
108
112
|
export {};
|
|
@@ -10,7 +10,7 @@ export interface Interface {
|
|
|
10
10
|
readonly writeFile: (path: string, content: string) => Effect.Effect<void, WorkspaceRuntimeError>;
|
|
11
11
|
readonly exec: (input: WorkspaceCommandInput) => Effect.Effect<WorkspaceCommandResult, WorkspaceRuntimeError>;
|
|
12
12
|
}
|
|
13
|
-
declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/
|
|
13
|
+
declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/workspace/workspace-runtime-service/Service", Interface>;
|
|
14
14
|
export declare class Service extends Service_base {
|
|
15
15
|
}
|
|
16
16
|
export declare const layerFromHandle: (handle: WorkspaceHandle) => Layer.Layer<Service, never, never>;
|