@relayfx/test 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.
Files changed (59) hide show
  1. package/dist/index.js +1789 -1494
  2. package/dist/types/runtime/address/address-book-service.d.ts +3 -3
  3. package/dist/types/runtime/address/address-resolution-service.d.ts +60 -38
  4. package/dist/types/runtime/agent/agent-loop-service.d.ts +14 -5
  5. package/dist/types/runtime/agent/agent-registry-service.d.ts +2 -2
  6. package/dist/types/runtime/agent/prompt-assembler-service.d.ts +1 -1
  7. package/dist/types/runtime/agent/relay-compaction.d.ts +3 -2
  8. package/dist/types/runtime/agent/relay-tool-output.d.ts +4 -1
  9. package/dist/types/runtime/child/child-fan-out-admission-service.d.ts +1 -1
  10. package/dist/types/runtime/child/child-fan-out-runtime.d.ts +12 -8
  11. package/dist/types/runtime/child/child-fan-out-transition-service.d.ts +1 -1
  12. package/dist/types/runtime/child/child-run-service.d.ts +7 -4
  13. package/dist/types/runtime/child/parent-notifier-service.d.ts +4 -2
  14. package/dist/types/runtime/child/spawn-child-run-tool.d.ts +12 -4
  15. package/dist/types/runtime/cluster/execution-entity.d.ts +2 -2
  16. package/dist/types/runtime/content/artifact-store-service.d.ts +2 -2
  17. package/dist/types/runtime/content/blob-store-service.d.ts +1 -1
  18. package/dist/types/runtime/entity/entity-instance-service.d.ts +14 -5
  19. package/dist/types/runtime/entity/entity-registry-service.d.ts +2 -2
  20. package/dist/types/runtime/envelope/envelope-service.d.ts +2 -2
  21. package/dist/types/runtime/execution/active-execution-registry.d.ts +1 -1
  22. package/dist/types/runtime/execution/event-log-service.d.ts +5 -2
  23. package/dist/types/runtime/execution/execution-service.d.ts +1 -1
  24. package/dist/types/runtime/execution/execution-watch-service.d.ts +1 -1
  25. package/dist/types/runtime/execution/session-stream-service.d.ts +1 -1
  26. package/dist/types/runtime/inbox/inbox-service.d.ts +1 -1
  27. package/dist/types/runtime/memory/memory-service.d.ts +1 -1
  28. package/dist/types/runtime/model/embedding-model-service.d.ts +23 -10
  29. package/dist/types/runtime/model/language-model-service.d.ts +20 -6
  30. package/dist/types/runtime/model/model-call-policy.d.ts +1 -1
  31. package/dist/types/runtime/observability/runtime-metrics.d.ts +12 -3
  32. package/dist/types/runtime/presence/presence-service.d.ts +1 -1
  33. package/dist/types/runtime/presence/presence-tool.d.ts +1 -1
  34. package/dist/types/runtime/runner/runner-runtime-service.d.ts +19 -19
  35. package/dist/types/runtime/schedule/scheduler-service.d.ts +3 -3
  36. package/dist/types/runtime/schema-registry/schema-registry-service.d.ts +2 -2
  37. package/dist/types/runtime/session/session-store-service.d.ts +13 -4
  38. package/dist/types/runtime/skill/skill-registry-service.d.ts +2 -2
  39. package/dist/types/runtime/state/execution-state-service.d.ts +5 -2
  40. package/dist/types/runtime/tool/tool-runtime-service.d.ts +42 -19
  41. package/dist/types/runtime/tool/tool-transition-coordinator.d.ts +2 -2
  42. package/dist/types/runtime/topic/topic-service.d.ts +1 -1
  43. package/dist/types/runtime/wait/wait-service.d.ts +1 -1
  44. package/dist/types/runtime/wait/wait-signal.d.ts +12 -3
  45. package/dist/types/runtime/workflow/activity-version-registry.d.ts +7 -3
  46. package/dist/types/runtime/workflow/definition-runtime.d.ts +37 -22
  47. package/dist/types/runtime/workflow/execution-workflow.d.ts +143 -104
  48. package/dist/types/runtime/workspace/workspace-planner-service.d.ts +6 -6
  49. package/dist/types/runtime/workspace/workspace-provider-service.d.ts +11 -7
  50. package/dist/types/runtime/workspace/workspace-runtime-service.d.ts +1 -1
  51. package/dist/types/schema/agent-schema.d.ts +388 -228
  52. package/dist/types/schema/child-orchestration-schema.d.ts +78 -57
  53. package/dist/types/schema/execution-schema.d.ts +118 -54
  54. package/dist/types/schema/workflow-schema.d.ts +243 -243
  55. package/dist/types/schema/workspace-schema.d.ts +1 -1
  56. package/dist/types/test/captured-model.d.ts +10 -4
  57. package/dist/types/test/scripted-model.d.ts +16 -6
  58. package/dist/types/test/wait-test-kit.d.ts +4 -4
  59. package/package.json +2 -2
@@ -1,6 +1,6 @@
1
1
  import { Agent, Ids } from "../../schema/index";
2
2
  import { ChildExecutionRepository, EnvelopeRepository, ExecutionRepository, ToolCallRepository } from "@relayfx/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 permissions: 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 metadata?: {
103
- readonly [x: string]: Schema.Json;
104
- };
105
- readonly instructions?: string;
106
- readonly compaction_policy?: Schema.Struct.ReadonlySide<{
107
- readonly context_window: Schema.Number;
108
- readonly reserve_tokens: Schema.Number;
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" | "deny" | "ask";
107
+ readonly level: "allow" | "ask" | "deny";
117
108
  readonly reason?: string;
118
109
  }[];
119
- readonly fallback?: "allow" | "deny" | "ask";
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 metadata?: {
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: "share" | "fork";
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 permissions: 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 metadata?: {
371
- readonly [x: string]: Schema.Json;
372
- };
373
- readonly instructions?: string;
374
- readonly compaction_policy?: Schema.Struct.ReadonlySide<{
375
- readonly context_window: Schema.Number;
376
- readonly reserve_tokens: Schema.Number;
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" | "deny" | "ask";
397
+ readonly level: "allow" | "ask" | "deny";
385
398
  readonly reason?: string;
386
399
  }[];
387
- readonly fallback?: "allow" | "deny" | "ask";
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 metadata?: {
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: "share" | "fork";
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: (input: StartInput, turn: number) => string;
455
- 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 | import("effect/unstable/workflow/WorkflowEngine").WorkflowEngine | AgentLoopService>;
456
- export declare const start: <const Discard extends boolean = false>(input: StartInput, options?: {
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
- }) => Effect.Effect<Discard extends true ? string : {
459
- readonly status: "waiting" | "running" | "completed" | "failed" | "queued" | "cancelled";
460
- readonly execution_id: string & import("effect/Brand").Brand<"Relay.ExecutionId">;
461
- readonly metadata?: {
462
- readonly [x: string]: Schema.Json;
463
- };
464
- readonly wait_id?: string & import("effect/Brand").Brand<"Relay.WaitId">;
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: "waiting" | "running" | "completed" | "failed" | "queued" | "cancelled";
480
- }, ExecutionWorkflowFailed, ChildExecutionRepository.Service | EnvelopeRepository.Service | ExecutionRepository.Service | ToolCallRepository.Service | EventLogService | import("../wait/wait-service").Service | import("../execution/execution-service").Service | ToolTransitionCoordinatorService | import("effect/unstable/workflow/WorkflowEngine").WorkflowEngine>;
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
- readonly wait_id?: string & import("effect/Brand").Brand<"Relay.WaitId">;
488
- readonly wait_state?: "cancelled" | "resolved" | "timed_out";
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: (executionId: Ids.ExecutionId, workflowGeneration?: number) => Effect.Effect<string, never, never>;
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, import("effect/unstable/workflow/WorkflowEngine").WorkflowEngine>;
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/WorkspacePlanner", Interface>;
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 | WorkspaceUnavailable | WorkspaceProviderError | WorkspaceRuntimeMissing | WorkspaceLeaseMissingRef | WorkspacePlannerError, Service>;
59
- export declare const suspend: (input: LifecycleInput) => Effect.Effect<Workspace.WorkspaceLeaseRecord | undefined, WorkspaceNotFound | WorkspaceCapabilityUnsupported | WorkspaceProviderError | WorkspaceRuntimeMissing | WorkspaceLeaseMissingRef | WorkspacePlannerError, Service>;
60
- export declare const resume: (input: LifecycleInput) => Effect.Effect<WorkspacePlan | undefined, WorkspaceNotFound | WorkspaceUnavailable | WorkspaceProviderError | WorkspaceRuntimeMissing | WorkspaceLeaseMissingRef | WorkspacePlannerError, Service>;
61
- export declare const attach: (input: LifecycleInput) => Effect.Effect<WorkspacePlan | undefined, WorkspaceNotFound | WorkspaceUnavailable | WorkspaceProviderError | WorkspaceRuntimeMissing | WorkspaceLeaseMissingRef | WorkspacePlannerError, Service>;
62
- export declare const release: (input: LifecycleInput) => Effect.Effect<Workspace.WorkspaceLeaseRecord | undefined, WorkspaceProviderError | WorkspaceRuntimeMissing | WorkspaceLeaseMissingRef | WorkspacePlannerError, Service>;
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/WorkspaceProvider", Interface>;
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: (ref: Ids.WorkspaceRef, providerKey?: Workspace.WorkspaceProviderKey) => WorkspaceHandle;
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 | WorkspaceUnavailable | WorkspaceProviderError, Service>;
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">, WorkspaceNotFound | WorkspaceCapabilityUnsupported | WorkspaceProviderError, Service>;
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">, WorkspaceNotFound | WorkspaceCapabilityUnsupported | WorkspaceProviderError, Service>;
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/WorkspaceRuntime", Interface>;
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>;