@relayfx/sdk 0.2.15 → 0.3.0

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 (109) hide show
  1. package/dist/ai.js +2 -2
  2. package/dist/{index-z9xk02sv.js → index-c2skef55.js} +1898 -1556
  3. package/dist/{index-d8q4kfjy.js → index-d3dme13d.js} +12 -8
  4. package/dist/{index-xbbfagnb.js → index-pn652eef.js} +166 -105
  5. package/dist/{index-gxskhyra.js → index-vwbatywf.js} +8 -8
  6. package/dist/index.js +5 -5
  7. package/dist/mysql.js +24 -9
  8. package/dist/postgres.js +18 -13
  9. package/dist/sqlite.js +26 -29
  10. package/dist/types/ai/embedding-model/embedding-model-registration.d.ts +2 -2
  11. package/dist/types/relay/adapter-outbox.d.ts +1 -1
  12. package/dist/types/relay/client.d.ts +32 -30
  13. package/dist/types/relay/command.d.ts +10 -4
  14. package/dist/types/relay/database.d.ts +4 -4
  15. package/dist/types/relay/migration-errors.d.ts +8 -2
  16. package/dist/types/relay/mysql.d.ts +2 -2
  17. package/dist/types/relay/operation.d.ts +211 -126
  18. package/dist/types/relay/postgres.d.ts +2 -2
  19. package/dist/types/relay/runtime-capability-policy.d.ts +11 -5
  20. package/dist/types/relay/runtime-database.d.ts +1 -1
  21. package/dist/types/relay/runtime.d.ts +4 -4
  22. package/dist/types/relay/sqlite-migrations.d.ts +1 -1
  23. package/dist/types/relay/sqlite-runtime.d.ts +10 -5
  24. package/dist/types/relay/tool-worker.d.ts +6 -5
  25. package/dist/types/runtime/address/address-book-service.d.ts +3 -3
  26. package/dist/types/runtime/address/address-resolution-service.d.ts +41 -41
  27. package/dist/types/runtime/agent/agent-loop-service.d.ts +14 -5
  28. package/dist/types/runtime/agent/agent-registry-service.d.ts +2 -2
  29. package/dist/types/runtime/agent/prompt-assembler-service.d.ts +1 -1
  30. package/dist/types/runtime/agent/relay-tool-output.d.ts +4 -1
  31. package/dist/types/runtime/child/child-fan-out-admission-service.d.ts +1 -1
  32. package/dist/types/runtime/child/child-fan-out-runtime.d.ts +12 -8
  33. package/dist/types/runtime/child/child-fan-out-transition-service.d.ts +1 -1
  34. package/dist/types/runtime/child/child-run-service.d.ts +7 -4
  35. package/dist/types/runtime/child/parent-notifier-service.d.ts +4 -2
  36. package/dist/types/runtime/child/spawn-child-run-tool.d.ts +5 -4
  37. package/dist/types/runtime/cluster/execution-entity.d.ts +2 -2
  38. package/dist/types/runtime/content/artifact-store-service.d.ts +2 -2
  39. package/dist/types/runtime/content/blob-store-service.d.ts +1 -1
  40. package/dist/types/runtime/entity/entity-instance-service.d.ts +14 -5
  41. package/dist/types/runtime/entity/entity-registry-service.d.ts +2 -2
  42. package/dist/types/runtime/envelope/envelope-service.d.ts +2 -2
  43. package/dist/types/runtime/execution/active-execution-registry.d.ts +1 -1
  44. package/dist/types/runtime/execution/event-log-service.d.ts +28 -3
  45. package/dist/types/runtime/execution/execution-service.d.ts +1 -1
  46. package/dist/types/runtime/execution/execution-watch-service.d.ts +1 -1
  47. package/dist/types/runtime/execution/session-stream-service.d.ts +1 -1
  48. package/dist/types/runtime/inbox/inbox-service.d.ts +1 -1
  49. package/dist/types/runtime/memory/memory-service.d.ts +1 -1
  50. package/dist/types/runtime/model/embedding-model-service.d.ts +23 -10
  51. package/dist/types/runtime/model/language-model-service.d.ts +19 -6
  52. package/dist/types/runtime/model/model-call-policy.d.ts +1 -1
  53. package/dist/types/runtime/observability/runtime-metrics.d.ts +12 -3
  54. package/dist/types/runtime/presence/presence-service.d.ts +1 -1
  55. package/dist/types/runtime/presence/presence-tool.d.ts +1 -1
  56. package/dist/types/runtime/runner/runner-runtime-service.d.ts +19 -19
  57. package/dist/types/runtime/schedule/scheduler-service.d.ts +3 -3
  58. package/dist/types/runtime/schema-registry/schema-registry-service.d.ts +2 -2
  59. package/dist/types/runtime/session/session-store-service.d.ts +13 -4
  60. package/dist/types/runtime/skill/skill-registry-service.d.ts +2 -2
  61. package/dist/types/runtime/state/execution-state-service.d.ts +5 -2
  62. package/dist/types/runtime/tool/tool-runtime-service.d.ts +42 -19
  63. package/dist/types/runtime/tool/tool-transition-coordinator.d.ts +2 -2
  64. package/dist/types/runtime/topic/topic-service.d.ts +1 -1
  65. package/dist/types/runtime/wait/wait-service.d.ts +1 -1
  66. package/dist/types/runtime/wait/wait-signal.d.ts +12 -3
  67. package/dist/types/runtime/workflow/activity-version-registry.d.ts +7 -3
  68. package/dist/types/runtime/workflow/definition-runtime.d.ts +37 -22
  69. package/dist/types/runtime/workflow/execution-workflow.d.ts +105 -110
  70. package/dist/types/runtime/workspace/workspace-planner-service.d.ts +6 -6
  71. package/dist/types/runtime/workspace/workspace-provider-service.d.ts +11 -7
  72. package/dist/types/runtime/workspace/workspace-runtime-service.d.ts +1 -1
  73. package/dist/types/schema/agent-schema.d.ts +246 -246
  74. package/dist/types/schema/child-orchestration-schema.d.ts +64 -64
  75. package/dist/types/schema/execution-schema.d.ts +57 -57
  76. package/dist/types/schema/workflow-schema.d.ts +243 -243
  77. package/dist/types/schema/workspace-schema.d.ts +1 -1
  78. package/dist/types/store-sql/address/address-book-repository.d.ts +5 -5
  79. package/dist/types/store-sql/agent/agent-definition-repository.d.ts +7 -7
  80. package/dist/types/store-sql/chat/agent-chat-repository.d.ts +2 -2
  81. package/dist/types/store-sql/child/child-execution-repository.d.ts +4 -4
  82. package/dist/types/store-sql/child/child-fan-out-repository.d.ts +2 -2
  83. package/dist/types/store-sql/cluster/cluster-registry-repository.d.ts +5 -5
  84. package/dist/types/store-sql/compaction/compaction-repository.d.ts +3 -3
  85. package/dist/types/store-sql/database/database-service.d.ts +3 -3
  86. package/dist/types/store-sql/database/notification-bus.d.ts +1 -1
  87. package/dist/types/store-sql/database/sql-dialect.d.ts +4 -1
  88. package/dist/types/store-sql/entity/entity-repository.d.ts +2 -2
  89. package/dist/types/store-sql/envelope/envelope-repository.d.ts +13 -13
  90. package/dist/types/store-sql/execution/execution-event-repository.d.ts +27 -5
  91. package/dist/types/store-sql/execution/execution-repository.d.ts +8 -8
  92. package/dist/types/store-sql/idempotency/idempotency-repository.d.ts +5 -5
  93. package/dist/types/store-sql/inbox/inbox-repository.d.ts +1 -1
  94. package/dist/types/store-sql/memory/memory-repository.d.ts +3 -3
  95. package/dist/types/store-sql/permission/permission-rule-repository.d.ts +2 -2
  96. package/dist/types/store-sql/presence/presence-repository.d.ts +2 -2
  97. package/dist/types/store-sql/schedule/schedule-repository.d.ts +9 -9
  98. package/dist/types/store-sql/schema/relay-schema.d.ts +257 -257
  99. package/dist/types/store-sql/session/context-epoch-repository.d.ts +2 -2
  100. package/dist/types/store-sql/session/session-repository.d.ts +5 -5
  101. package/dist/types/store-sql/skill/skill-definition-repository.d.ts +9 -9
  102. package/dist/types/store-sql/state/execution-state-repository.d.ts +2 -2
  103. package/dist/types/store-sql/steering/steering-repository.d.ts +5 -5
  104. package/dist/types/store-sql/tenant/tenant-id.d.ts +2 -2
  105. package/dist/types/store-sql/tool/tool-call-repository.d.ts +19 -16
  106. package/dist/types/store-sql/topic/topic-repository.d.ts +1 -1
  107. package/dist/types/store-sql/workflow/workflow-definition-repository.d.ts +16 -14
  108. package/dist/types/store-sql/workspace/workspace-lease-repository.d.ts +11 -11
  109. package/package.json +3 -3
@@ -56,29 +56,36 @@ export declare const LocalAgentTarget: Schema.Struct<{
56
56
  readonly agent_revision: Schema.Int;
57
57
  readonly agent_snapshot: Schema.Codec<Agent.Definition, {
58
58
  readonly name: string;
59
- readonly permissions: readonly {
60
- readonly name: string;
61
- readonly value: Schema.Json;
62
- readonly metadata?: {
63
- readonly [x: string]: Schema.Json;
64
- };
65
- }[];
59
+ readonly instructions?: string;
66
60
  readonly model: {
67
61
  readonly provider: string;
68
62
  readonly model: string;
69
- readonly metadata?: {
70
- readonly [x: string]: Schema.Json;
71
- };
72
63
  readonly registration_key?: string;
73
64
  readonly request_options?: {
74
65
  readonly [x: string]: Schema.Json;
75
66
  };
67
+ readonly metadata?: {
68
+ readonly [x: string]: Schema.Json;
69
+ };
76
70
  };
77
71
  readonly tool_names: readonly string[];
78
- readonly metadata?: {
79
- readonly [x: string]: Schema.Json;
72
+ readonly permissions: readonly {
73
+ readonly name: string;
74
+ readonly value: Schema.Json;
75
+ readonly metadata?: {
76
+ readonly [x: string]: Schema.Json;
77
+ };
78
+ }[];
79
+ readonly skill_definition_ids?: readonly string[];
80
+ readonly permission_rules?: {
81
+ readonly rules: readonly {
82
+ readonly pattern: string;
83
+ readonly level: "allow" | "ask" | "deny";
84
+ readonly reason?: string;
85
+ }[];
86
+ readonly fallback?: "allow" | "ask" | "deny";
80
87
  };
81
- readonly instructions?: string;
88
+ readonly turn_policy?: Agent.TurnPolicySnapshot;
82
89
  readonly compaction_policy?: {
83
90
  readonly context_window: number;
84
91
  readonly reserve_tokens: number;
@@ -86,47 +93,32 @@ export declare const LocalAgentTarget: Schema.Struct<{
86
93
  readonly summary_model?: {
87
94
  readonly provider: string;
88
95
  readonly model: string;
89
- readonly metadata?: {
90
- readonly [x: string]: Schema.Json;
91
- };
92
96
  readonly registration_key?: string;
93
97
  readonly request_options?: {
94
98
  readonly [x: string]: Schema.Json;
95
99
  };
100
+ readonly metadata?: {
101
+ readonly [x: string]: Schema.Json;
102
+ };
96
103
  };
97
104
  };
98
- readonly output_schema_ref?: string;
99
- readonly skill_definition_ids?: readonly string[];
100
- readonly permission_rules?: {
101
- readonly rules: readonly {
102
- readonly pattern: string;
103
- readonly level: "allow" | "deny" | "ask";
104
- readonly reason?: string;
105
- }[];
106
- readonly fallback?: "allow" | "deny" | "ask";
107
- };
108
- readonly turn_policy?: Agent.TurnPolicySnapshot;
109
105
  readonly max_tool_turns?: number;
110
106
  readonly max_wait_turns?: number;
111
107
  readonly token_budget?: number;
112
108
  readonly child_run_presets?: {
113
109
  readonly [x: string]: {
114
- readonly metadata?: {
115
- readonly [x: string]: Schema.Json;
116
- };
117
- readonly permissions?: readonly string[];
110
+ readonly instructions?: string;
118
111
  readonly model?: {
119
112
  readonly provider: string;
120
113
  readonly model: string;
121
- readonly metadata?: {
122
- readonly [x: string]: Schema.Json;
123
- };
124
114
  readonly registration_key?: string;
125
115
  readonly request_options?: {
126
116
  readonly [x: string]: Schema.Json;
127
117
  };
118
+ readonly metadata?: {
119
+ readonly [x: string]: Schema.Json;
120
+ };
128
121
  };
129
- readonly instructions?: string;
130
122
  readonly compaction_policy?: {
131
123
  readonly context_window: number;
132
124
  readonly reserve_tokens: number;
@@ -134,27 +126,35 @@ export declare const LocalAgentTarget: Schema.Struct<{
134
126
  readonly summary_model?: {
135
127
  readonly provider: string;
136
128
  readonly model: string;
137
- readonly metadata?: {
138
- readonly [x: string]: Schema.Json;
139
- };
140
129
  readonly registration_key?: string;
141
130
  readonly request_options?: {
142
131
  readonly [x: string]: Schema.Json;
143
132
  };
133
+ readonly metadata?: {
134
+ readonly [x: string]: Schema.Json;
135
+ };
144
136
  };
145
137
  };
146
138
  readonly tool_names?: readonly string[];
139
+ readonly permissions?: readonly string[];
147
140
  readonly workspace_policy?: {
148
- readonly mode: "share" | "fork";
141
+ readonly mode: "fork" | "share";
149
142
  readonly fallback?: "fail" | "fresh";
150
143
  };
151
144
  readonly output_schema_ref?: string;
145
+ readonly metadata?: {
146
+ readonly [x: string]: Schema.Json;
147
+ };
152
148
  };
153
149
  };
154
150
  readonly handoff_targets?: readonly Schema.Struct.ReadonlySide<{
155
151
  readonly name: Schema.String;
156
152
  readonly preset_name: Schema.String;
157
153
  }, "Encoded">[];
154
+ readonly output_schema_ref?: string;
155
+ readonly metadata?: {
156
+ readonly [x: string]: Schema.Json;
157
+ };
158
158
  }, never, never>;
159
159
  readonly tool_input_schema_digests: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
160
160
  }>;
@@ -163,10 +163,10 @@ export interface LocalAgentTarget extends Schema.Schema.Type<typeof LocalAgentTa
163
163
  export interface Interface {
164
164
  readonly resolveLocalAgent: (addressId: Ids.AddressId) => Effect.Effect<LocalAgentTarget, AddressRouteNotFound | AddressRouteKindMismatch | AddressAgentDefinitionNotFound | AddressResolutionError>;
165
165
  }
166
- declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/AddressResolution", Interface>;
166
+ declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/address/address-resolution-service/Service", Interface>;
167
167
  export declare class Service extends Service_base {
168
168
  }
169
169
  export declare const layer: Layer.Layer<Service, never, AddressBookService | AgentRegistryService>;
170
170
  export declare const testLayer: (implementation: Interface) => Layer.Layer<Service, never, never>;
171
- export declare const resolveLocalAgent: (addressId: string & import("effect/Brand").Brand<"Relay.AddressId">) => Effect.Effect<LocalAgentTarget, AddressRouteNotFound | AddressRouteKindMismatch | AddressAgentDefinitionNotFound | AddressResolutionError, Service>;
171
+ export declare const resolveLocalAgent: (addressId: string & import("effect/Brand").Brand<"Relay.AddressId">) => Effect.Effect<LocalAgentTarget, AddressAgentDefinitionNotFound | AddressResolutionError | AddressRouteKindMismatch | AddressRouteNotFound, Service>;
172
172
  export {};
@@ -8,6 +8,7 @@ import { Service as LanguageModelServiceService } from "../model/language-model-
8
8
  import { Service as ModelCallPolicyService } from "../model/model-call-policy";
9
9
  import { Service as SchemaRegistryService } from "../schema-registry/schema-registry-service";
10
10
  import { Service as ToolRuntimeService } from "../tool/tool-runtime-service";
11
+ import type { ToolRuntimeError } from "../tool/tool-runtime-service";
11
12
  import { Service as PromptAssemblerService } from "./prompt-assembler-service";
12
13
  declare const AgentLoopError_base: Schema.Class<AgentLoopError, Schema.TaggedStruct<"AgentLoopError", {
13
14
  readonly message: Schema.String;
@@ -54,7 +55,7 @@ export interface RunInput {
54
55
  readonly steeringEnabled?: boolean;
55
56
  readonly toolOutputMaxBytes?: number | null;
56
57
  readonly sessionEntryScope?: string;
57
- readonly dispatchChildRun?: (input: DispatchInput) => Effect.Effect<void, unknown, any>;
58
+ readonly dispatchChildRun?: (input: DispatchInput) => Effect.Effect<void, ToolRuntimeError>;
58
59
  }
59
60
  export interface RunResult {
60
61
  readonly metadata: Shared.Metadata;
@@ -63,7 +64,7 @@ export interface RunResult {
63
64
  export interface Interface {
64
65
  readonly run: (input: RunInput) => Effect.Effect<RunResult, AgentLoopError | AgentLoopWaitRequested | AgentLoopBudgetExceeded>;
65
66
  }
66
- declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/AgentLoop", Interface>;
67
+ declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/agent/agent-loop-service/Service", Interface>;
67
68
  export declare class Service extends Service_base {
68
69
  }
69
70
  /**
@@ -74,10 +75,18 @@ export declare class Service extends Service_base {
74
75
  * @experimental
75
76
  */
76
77
  export declare const STRUCTURED_TURN_PROMPT = "Return the final structured output for the task above.";
77
- export declare const toolFromDefinition: (definition: Tool.Definition) => AiTool.Any;
78
+ export declare const toolFromDefinition: (definition: Tool.Definition) => AiTool.Dynamic<string, {
79
+ readonly parameters: Schema.Codec<unknown, unknown, never, never>;
80
+ readonly success: Schema.Unknown;
81
+ readonly failure: Schema.Never;
82
+ readonly failureMode: "error";
83
+ }, never>;
78
84
  /** Map a Baton run failure (or an upstream model error) to the public error types. */
79
- export declare const mapBoundaryError: (error: unknown, current: Execution.ExecutionEventSequence) => AgentLoopError | AgentLoopWaitRequested | AgentLoopBudgetExceeded;
85
+ export declare const mapBoundaryError: {
86
+ (current: Execution.ExecutionEventSequence): (error: unknown) => AgentLoopError | AgentLoopWaitRequested | AgentLoopBudgetExceeded;
87
+ (error: unknown, current: Execution.ExecutionEventSequence): AgentLoopError | AgentLoopWaitRequested | AgentLoopBudgetExceeded;
88
+ };
80
89
  export declare const layer: Layer.Layer<Service, never, AgentChatRepository.Service | EventLogService | ToolRuntimeService | LanguageModelServiceService | ModelCallPolicyService | SchemaRegistryService | PromptAssemblerService>;
81
90
  export declare const testLayer: (implementation: Interface) => Layer.Layer<Service, never, never>;
82
- export declare const run: (input: RunInput) => Effect.Effect<RunResult, AgentLoopError | AgentLoopBudgetExceeded | AgentLoopWaitRequested, Service>;
91
+ export declare const run: (input: RunInput) => Effect.Effect<RunResult, AgentLoopBudgetExceeded | AgentLoopError | AgentLoopWaitRequested, Service>;
83
92
  export {};
@@ -15,10 +15,10 @@ export interface Interface {
15
15
  readonly register: (input: Agent.RegisterDefinitionPayload) => Effect.Effect<Agent.DefinitionRegistered, AgentDefinitionInvalid | AgentRegistryError>;
16
16
  readonly get: (id: Ids.AgentId) => Effect.Effect<Agent.DefinitionRecord | undefined, AgentRegistryError>;
17
17
  readonly getRevision: (input: AgentDefinitionRepository.GetAgentDefinitionRevisionInput) => Effect.Effect<Agent.DefinitionRevisionRecord | undefined, AgentRegistryError>;
18
- readonly list: () => Effect.Effect<Agent.DefinitionList, AgentRegistryError>;
18
+ readonly list: Effect.Effect<Agent.DefinitionList, AgentRegistryError>;
19
19
  readonly listRevisions: (id: Ids.AgentId) => Effect.Effect<Agent.DefinitionRevisionList, AgentRegistryError>;
20
20
  }
21
- declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/AgentRegistry", Interface>;
21
+ declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/agent/agent-registry-service/Service", Interface>;
22
22
  export declare class Service extends Service_base {
23
23
  }
24
24
  export declare const layer: Layer.Layer<Service, never, AgentDefinitionRepository.Service>;
@@ -22,7 +22,7 @@ export interface Assembled {
22
22
  export interface Interface {
23
23
  readonly assemble: (input: AssembleInput) => Effect.Effect<Assembled, PromptAssemblerError>;
24
24
  }
25
- declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/PromptAssembler", Interface>;
25
+ declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/agent/prompt-assembler-service/Service", Interface>;
26
26
  export declare class Service extends Service_base {
27
27
  }
28
28
  export type PureContentPart = Content.TextPart | Content.StructuredPart | Content.ToolCallPart | Content.ToolResultPart;
@@ -1,7 +1,10 @@
1
1
  import { ToolOutput } from "@batonfx/core";
2
2
  import { Effect, Layer, Option } from "effect";
3
3
  import type { Interface as BlobStoreInterface, Service as BlobStoreService } from "../content/blob-store-service";
4
- export declare const store: (blobStore: BlobStoreInterface, toolCallId: string, content: unknown) => Effect.Effect<Option.Option<string>, ToolOutput.ToolOutputError>;
4
+ export declare const store: {
5
+ (blobStore: BlobStoreInterface, toolCallId: string, content: unknown): Effect.Effect<Option.Option<string>, ToolOutput.ToolOutputError>;
6
+ (toolCallId: string, content: unknown): (blobStore: BlobStoreInterface) => Effect.Effect<Option.Option<string>, ToolOutput.ToolOutputError>;
7
+ };
5
8
  export declare const make: (blobStore: BlobStoreInterface) => ToolOutput.StoreInterface;
6
9
  export declare const layerFromBlobStore: (blobStore: BlobStoreInterface) => Layer.Layer<ToolOutput.ToolOutputStore>;
7
10
  export declare const layer: Layer.Layer<ToolOutput.ToolOutputStore, never, BlobStoreService>;
@@ -18,7 +18,7 @@ export interface Interface {
18
18
  readonly recover: (input: AdmitInput) => Effect.Effect<ReadonlyArray<Execution.ChildRunAccepted>, ChildFanOutAdmissionError>;
19
19
  readonly recoverAll: (inputFor: (fanOut: ChildOrchestration.FanOutState) => AdmitInput) => Effect.Effect<ReadonlyArray<Execution.ChildRunAccepted>, ChildFanOutAdmissionError>;
20
20
  }
21
- declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/ChildFanOutAdmissionService", Interface>;
21
+ declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/child/child-fan-out-admission-service/Service", Interface>;
22
22
  export declare class Service extends Service_base {
23
23
  }
24
24
  export declare const layer: Layer.Layer<Service, never, ChildFanOutRepository.Service | ChildRunService>;
@@ -9,10 +9,14 @@ export interface ChildResult {
9
9
  readonly completedAt?: number;
10
10
  }
11
11
  export interface Handlers {
12
- readonly execute: (child: ChildOrchestration.FanOutChild, fanOut: ChildOrchestration.FanOutState, idempotencyKey: string) => Effect.Effect<ChildResult, unknown>;
13
- readonly cancel: (childExecutionId: Ids.ChildExecutionId, reason: string) => Effect.Effect<void, unknown>;
12
+ readonly execute: (child: ChildOrchestration.FanOutChild, fanOut: ChildOrchestration.FanOutState, idempotencyKey: string) => Effect.Effect<ChildResult, {
13
+ readonly _tag: string;
14
+ }>;
15
+ readonly cancel: (childExecutionId: Ids.ChildExecutionId, reason: string) => Effect.Effect<void, {
16
+ readonly _tag: string;
17
+ }>;
14
18
  }
15
- declare const HandlerService_base: Context.ServiceClass<HandlerService, "@relayfx/runtime/ChildFanOutRuntimeHandlers", Handlers>;
19
+ declare const HandlerService_base: Context.ServiceClass<HandlerService, "@relayfx/runtime/child/child-fan-out-runtime/HandlerService", Handlers>;
16
20
  export declare class HandlerService extends HandlerService_base {
17
21
  }
18
22
  declare const ChildFanOutRuntimeError_base: Schema.Class<ChildFanOutRuntimeError, Schema.TaggedStruct<"ChildFanOutRuntimeError", {
@@ -22,15 +26,15 @@ export declare class ChildFanOutRuntimeError extends ChildFanOutRuntimeError_bas
22
26
  }
23
27
  export interface Interface {
24
28
  readonly create: (definition: ChildOrchestration.FanOutDefinition) => Effect.Effect<ChildOrchestration.FanOutState, ChildFanOutRuntimeError>;
25
- readonly recover: () => Effect.Effect<ReadonlyArray<Ids.ChildFanOutId>, ChildFanOutRuntimeError>;
29
+ readonly recover: (_?: never) => Effect.Effect<ReadonlyArray<Ids.ChildFanOutId>, ChildFanOutRuntimeError>;
26
30
  readonly cancel: (fanOutId: Ids.ChildFanOutId, cancelledAt: number, reason: string) => Effect.Effect<ChildOrchestration.FanOutState | undefined, ChildFanOutRuntimeError>;
27
31
  readonly inspect: (fanOutId: Ids.ChildFanOutId) => Effect.Effect<ChildOrchestration.FanOutState | undefined, ChildFanOutRuntimeError>;
28
32
  }
29
- declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/ChildFanOutRuntime", Interface>;
33
+ declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/child/child-fan-out-runtime/Service", Interface>;
30
34
  export declare class Service extends Service_base {
31
35
  }
32
- export declare const layerFromRuntime: Layer.Layer<Service, ChildFanOutRuntimeError, ChildFanOutRepository.Service | TransitionService | HandlerService>;
33
- export declare const layer: Layer.Layer<Service, ChildFanOutRuntimeError, ChildFanOutRepository.Service | TransitionService | HandlerService>;
36
+ export declare const layerFromRuntime: Layer.Layer<Service, ChildFanOutRuntimeError, HandlerService | ChildFanOutRepository.Service | TransitionService>;
37
+ export declare const layer: Layer.Layer<Service, ChildFanOutRuntimeError, HandlerService | ChildFanOutRepository.Service | TransitionService>;
34
38
  export declare const handlersLayer: (handlers: Handlers) => Layer.Layer<HandlerService, never, never>;
35
- export declare const testHandlersLayer: (handlers: Handlers) => Layer.Layer<HandlerService, never, never>;
39
+ export declare const testHandlersLayer: typeof handlersLayer;
36
40
  export {};
@@ -17,7 +17,7 @@ export interface TerminalInput {
17
17
  export interface Interface {
18
18
  readonly terminal: (input: TerminalInput) => Effect.Effect<ChildFanOutRepository.RecordTerminalResult | undefined, ChildFanOutTransitionError>;
19
19
  }
20
- declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/ChildFanOutTransitionService", Interface>;
20
+ declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/child/child-fan-out-transition-service/Service", Interface>;
21
21
  export declare class Service extends Service_base {
22
22
  }
23
23
  export declare const layer: Layer.Layer<Service, never, ChildFanOutRepository.Service | EventLogService>;
@@ -70,7 +70,7 @@ export interface Interface {
70
70
  readonly spawnStatic: (input: SpawnStaticInput) => Effect.Effect<Execution.ChildRunAccepted, StaticChildRunPresetNotFound | ChildRunScopeBroadened | ChildRunWorkspaceUnavailable | ChildRunServiceError>;
71
71
  readonly spawnDynamic: (input: SpawnDynamicInput) => Effect.Effect<Execution.ChildRunAccepted, ChildRunScopeBroadened | ChildRunWorkspaceUnavailable | ChildRunServiceError>;
72
72
  }
73
- declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/ChildRunService", Interface>;
73
+ declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/child/child-run-service/Service", Interface>;
74
74
  export declare class Service extends Service_base {
75
75
  }
76
76
  export interface ResolvedChildContext {
@@ -86,8 +86,11 @@ export interface ResolvedChildContext {
86
86
  export declare const layer: Layer.Layer<Service, never, ChildExecutionRepository.Service | EventLogService>;
87
87
  export declare const memoryLayer: Layer.Layer<Service, never, never>;
88
88
  export declare const testLayer: (implementation: Interface) => Layer.Layer<Service, never, never>;
89
- export declare const resolveForDispatch: (input: Execution.SpawnChildRunInput) => Effect.Effect<ResolvedChildContext, StaticChildRunPresetNotFound | ChildRunScopeBroadened, never>;
90
- export declare const childDefinition: (parentDefinition: Agent.Definition, context: ResolvedChildContext) => Effect.Effect<Agent.Definition, ChildRunModelMissing>;
91
- export declare const spawnStatic: (input: SpawnStaticInput) => Effect.Effect<Execution.ChildRunAccepted, StaticChildRunPresetNotFound | ChildRunScopeBroadened | ChildRunServiceError | ChildRunWorkspaceUnavailable, Service>;
89
+ export declare const resolveForDispatch: (input: Execution.SpawnChildRunInput) => Effect.Effect<ResolvedChildContext, ChildRunScopeBroadened | StaticChildRunPresetNotFound, never>;
90
+ export declare const childDefinition: {
91
+ (context: ResolvedChildContext): (parentDefinition: Agent.Definition) => Effect.Effect<Agent.Definition, ChildRunModelMissing>;
92
+ (parentDefinition: Agent.Definition, context: ResolvedChildContext): Effect.Effect<Agent.Definition, ChildRunModelMissing>;
93
+ };
94
+ export declare const spawnStatic: (input: SpawnStaticInput) => Effect.Effect<Execution.ChildRunAccepted, ChildRunScopeBroadened | ChildRunServiceError | ChildRunWorkspaceUnavailable | StaticChildRunPresetNotFound, Service>;
92
95
  export declare const spawnDynamic: (input: SpawnDynamicInput) => Effect.Effect<Execution.ChildRunAccepted, ChildRunScopeBroadened | ChildRunServiceError | ChildRunWorkspaceUnavailable, Service>;
93
96
  export {};
@@ -21,7 +21,7 @@ export interface NotifyInput {
21
21
  export interface Interface {
22
22
  readonly notify: (input: NotifyInput) => Effect.Effect<void, ParentNotifyError>;
23
23
  }
24
- declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/ParentNotifier", Interface>;
24
+ declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/child/parent-notifier-service/Service", Interface>;
25
25
  export declare class Service extends Service_base {
26
26
  }
27
27
  export interface SignalParentWaitInput {
@@ -30,7 +30,9 @@ export interface SignalParentWaitInput {
30
30
  readonly signaledAt: number;
31
31
  }
32
32
  export interface MakeOptions {
33
- readonly signalWait: (input: SignalParentWaitInput) => Effect.Effect<void, unknown>;
33
+ readonly signalWait: (input: SignalParentWaitInput) => Effect.Effect<void, {
34
+ readonly _tag: string;
35
+ }>;
34
36
  }
35
37
  export declare const make: (options: MakeOptions) => Effect.Effect<Interface, never, ChildExecutionRepository.Service | EventLogService | WaitServiceService>;
36
38
  export declare const layerWith: (options: MakeOptions) => Layer.Layer<Service, never, ChildExecutionRepository.Service | EventLogService | WaitServiceService>;
@@ -1,5 +1,6 @@
1
1
  import { Agent, Content, Execution, Ids, Shared } from "../../schema/index";
2
2
  import { Effect, Schema } from "effect";
3
+ import { ToolRuntimeError } from "../tool/tool-runtime-service";
3
4
  import type { RegisteredTool } from "../tool/tool-runtime-service";
4
5
  import type { Interface as EventLogInterface } from "../execution/event-log-service";
5
6
  import type { Interface as WaitServiceInterface } from "../wait/wait-service";
@@ -17,9 +18,9 @@ export declare const Input: Schema.Struct<{
17
18
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
18
19
  }>>;
19
20
  readonly compaction_policy: Schema.optionalKey<Schema.Struct<{
20
- readonly context_window: Schema.Number;
21
- readonly reserve_tokens: Schema.Number;
22
- readonly keep_recent_tokens: Schema.Number;
21
+ readonly context_window: Schema.Finite;
22
+ readonly reserve_tokens: Schema.Finite;
23
+ readonly keep_recent_tokens: Schema.Finite;
23
24
  readonly summary_model: Schema.optionalKey<Schema.Struct<{
24
25
  readonly provider: Schema.String;
25
26
  readonly model: Schema.String;
@@ -216,7 +217,7 @@ export interface Config {
216
217
  readonly childRuns: ChildRunServiceInterface;
217
218
  readonly eventLog: EventLogInterface;
218
219
  readonly waits: WaitServiceInterface;
219
- readonly dispatch: (input: DispatchInput) => Effect.Effect<void, unknown, any>;
220
+ readonly dispatch: (input: DispatchInput) => Effect.Effect<void, ToolRuntimeError>;
220
221
  }
221
222
  export declare const enabled: (agent: Agent.Definition) => boolean;
222
223
  export declare const registeredTool: (config: Config) => RegisteredTool;
@@ -34,6 +34,6 @@ export declare const Cancel: Rpc.Rpc<"cancel", Schema.Struct<{
34
34
  }>, typeof ExecutionWorkflowFailed, never, never>;
35
35
  type ExecutionRpc = typeof Start | typeof Dispatch | typeof SignalWait | typeof Cancel;
36
36
  export declare const entity: Entity.Entity<"Relay/Execution", ExecutionRpc>;
37
- export declare const layer: import("effect/Layer").Layer<never, never, ChildExecutionRepository.Service | EnvelopeRepository.Service | ExecutionRepository.Service | ToolCallRepository.Service | EventLogService | WaitServiceService | ExecutionServiceService | ActiveExecutionRegistryService | ToolTransitionCoordinatorService | WorkflowEngine.WorkflowEngine | import("effect/unstable/cluster/Sharding").Sharding>;
38
- export declare const client: Effect.Effect<(entityId: string) => import("effect/unstable/rpc/RpcClient").RpcClient.From<ExecutionRpc, import("effect/unstable/cluster/ClusterError").MailboxFull | import("effect/unstable/cluster/ClusterError").AlreadyProcessingMessage | import("effect/unstable/cluster/ClusterError").PersistenceError>, never, import("effect/unstable/cluster/Sharding").Sharding>;
37
+ export declare const layer: import("effect/Layer").Layer<never, never, ChildExecutionRepository.Service | EnvelopeRepository.Service | ExecutionRepository.Service | ToolCallRepository.Service | EventLogService | WaitServiceService | ExecutionServiceService | ActiveExecutionRegistryService | ToolTransitionCoordinatorService | import("effect/unstable/cluster/Sharding").Sharding | WorkflowEngine.WorkflowEngine>;
38
+ export declare const client: Effect.Effect<(entityId: string) => import("effect/unstable/rpc/RpcClient").RpcClient.From<ExecutionRpc, import("effect/unstable/cluster/ClusterError").AlreadyProcessingMessage | import("effect/unstable/cluster/ClusterError").MailboxFull | import("effect/unstable/cluster/ClusterError").PersistenceError>, never, import("effect/unstable/cluster/Sharding").Sharding>;
39
39
  export {};
@@ -9,14 +9,14 @@ export declare class ArtifactNotResolvable extends ArtifactNotResolvable_base {
9
9
  export interface Interface {
10
10
  readonly resolve: (part: Content.ArtifactReferencePart) => Effect.Effect<ReadonlyArray<Content.Part>, ArtifactNotResolvable>;
11
11
  }
12
- declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/ArtifactStore", Interface>;
12
+ declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/content/artifact-store-service/Service", Interface>;
13
13
  export declare class Service extends Service_base {
14
14
  }
15
15
  export declare const passthroughLayer: Layer.Layer<Service>;
16
16
  export interface MemoryInterface extends Interface {
17
17
  readonly register: (artifact_id: string, parts: ReadonlyArray<Content.Part>) => Effect.Effect<void>;
18
18
  }
19
- declare const Memory_base: Context.ServiceClass<Memory, "@relayfx/runtime/ArtifactStore/Memory", MemoryInterface>;
19
+ declare const Memory_base: Context.ServiceClass<Memory, "@relayfx/runtime/content/artifact-store-service/Memory", MemoryInterface>;
20
20
  export declare class Memory extends Memory_base {
21
21
  }
22
22
  export declare const memoryLayer: Layer.Layer<Service | Memory>;
@@ -32,7 +32,7 @@ export interface Interface {
32
32
  readonly resolve: (part: Content.BlobReferencePart) => Effect.Effect<ResolvedBlob, BlobNotResolvable | BlobStoreError>;
33
33
  readonly put: (input: PutBlobInput) => Effect.Effect<Content.BlobReferencePart, BlobStoreError>;
34
34
  }
35
- declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/BlobStore", Interface>;
35
+ declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/content/blob-store-service/Service", Interface>;
36
36
  export declare class Service extends Service_base {
37
37
  }
38
38
  export declare const passthroughLayer: Layer.Layer<Service>;
@@ -56,12 +56,21 @@ export interface Interface {
56
56
  readonly limit?: number;
57
57
  }) => Effect.Effect<ReadonlyArray<Entity.Instance>, EntityServiceError>;
58
58
  }
59
- declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/EntityInstanceService", Interface>;
59
+ declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/entity/entity-instance-service/Service", Interface>;
60
60
  export declare class Service extends Service_base {
61
61
  }
62
- export declare const entityExecutionId: (tenant: Ids.TenantId, kind: Ids.EntityKindName, key: Ids.EntityKey, generation: number) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
63
- export declare const entityAddressId: (tenant: Ids.TenantId, kind: Ids.EntityKindName, key: Ids.EntityKey) => string & import("effect/Brand").Brand<"Relay.AddressId">;
64
- export declare const entitySessionId: (tenant: Ids.TenantId, kind: Ids.EntityKindName, key: Ids.EntityKey) => string & import("effect/Brand").Brand<"Relay.SessionId">;
65
- export declare const layer: Layer.Layer<Service, never, EntityRepository.Service | AddressBookService | EventLogService | AgentRegistryService | import("effect/unstable/cluster/Sharding").Sharding | EntityRegistryService>;
62
+ export declare const entityExecutionId: {
63
+ (tenant: Ids.TenantId, kind: Ids.EntityKindName, key: Ids.EntityKey, generation: number): Ids.ExecutionId;
64
+ (kind: Ids.EntityKindName, key: Ids.EntityKey, generation: number): (tenant: Ids.TenantId) => Ids.ExecutionId;
65
+ };
66
+ export declare const entityAddressId: {
67
+ (tenant: Ids.TenantId, kind: Ids.EntityKindName, key: Ids.EntityKey): Ids.AddressId;
68
+ (kind: Ids.EntityKindName, key: Ids.EntityKey): (tenant: Ids.TenantId) => Ids.AddressId;
69
+ };
70
+ export declare const entitySessionId: {
71
+ (tenant: Ids.TenantId, kind: Ids.EntityKindName, key: Ids.EntityKey): Ids.SessionId;
72
+ (kind: Ids.EntityKindName, key: Ids.EntityKey): (tenant: Ids.TenantId) => Ids.SessionId;
73
+ };
74
+ export declare const layer: Layer.Layer<Service, never, EntityRepository.Service | AddressBookService | EventLogService | AgentRegistryService | EntityRegistryService | import("effect/unstable/cluster/Sharding").Sharding>;
66
75
  export declare const testLayer: (implementation: Interface) => Layer.Layer<Service, never, never>;
67
76
  export {};
@@ -25,9 +25,9 @@ export declare class EntityRegistryError extends EntityRegistryError_base {
25
25
  export interface Interface {
26
26
  readonly registerKind: (input: Entity.KindDefinition) => Effect.Effect<Entity.KindDefinition, EntityKindInvalid | EntityRegistryError>;
27
27
  readonly getKind: (kind: Ids.EntityKindName) => Effect.Effect<Entity.KindDefinition | undefined, EntityRegistryError>;
28
- readonly listKinds: () => Effect.Effect<ReadonlyArray<Entity.KindDefinition>, EntityRegistryError>;
28
+ readonly listKinds: Effect.Effect<ReadonlyArray<Entity.KindDefinition>, EntityRegistryError>;
29
29
  }
30
- declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/EntityRegistry", Interface>;
30
+ declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/entity/entity-registry-service/Service", Interface>;
31
31
  export declare class Service extends Service_base {
32
32
  }
33
33
  export declare const layer: Layer.Layer<Service, never, EntityRepository.Service | AgentRegistryService>;
@@ -44,7 +44,7 @@ export interface Interface {
44
44
  readonly route_kind?: Route["kind"];
45
45
  }, EnvelopeAddressNotFound | EnvelopeRouteUnavailable | EnvelopeRouteDeferred | EnvelopeServiceError>;
46
46
  }
47
- declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/EnvelopeService", Interface>;
47
+ declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/envelope/envelope-service/Service", Interface>;
48
48
  export declare class Service extends Service_base {
49
49
  }
50
50
  export declare const layer: Layer.Layer<Service, never, EnvelopeRepository.Service | AddressBookService | EventLogService>;
@@ -52,5 +52,5 @@ export declare const memoryLayer: (routes?: Iterable<readonly [Ids.AddressId, Ro
52
52
  export declare const testLayer: (implementation: Interface) => Layer.Layer<Service, never, never>;
53
53
  export declare const send: (input: SendInput) => Effect.Effect<Envelope.EnvelopeAccepted & {
54
54
  readonly route_kind?: Route["kind"];
55
- }, EnvelopeAddressNotFound | EnvelopeRouteUnavailable | EnvelopeRouteDeferred | EnvelopeServiceError, Service>;
55
+ }, EnvelopeAddressNotFound | EnvelopeRouteDeferred | EnvelopeRouteUnavailable | EnvelopeServiceError, Service>;
56
56
  export {};
@@ -4,7 +4,7 @@ export interface Interface {
4
4
  readonly run: <A, E, R>(executionId: Ids.ExecutionId, effect: Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>;
5
5
  readonly interrupt: (executionId: Ids.ExecutionId) => Effect.Effect<boolean>;
6
6
  }
7
- declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/ActiveExecutionRegistry", Interface>;
7
+ declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/execution/active-execution-registry/Service", Interface>;
8
8
  export declare class Service extends Service_base {
9
9
  }
10
10
  export declare const layer: Layer.Layer<Service, never, never>;
@@ -19,6 +19,25 @@ export interface ReplayInput {
19
19
  readonly afterCursor?: string;
20
20
  readonly limit?: number;
21
21
  }
22
+ export type PageInput = {
23
+ readonly executionId: Ids.ExecutionId;
24
+ readonly direction: "forward";
25
+ readonly afterCursor?: string;
26
+ readonly beforeCursor?: never;
27
+ readonly limit?: number;
28
+ } | {
29
+ readonly executionId: Ids.ExecutionId;
30
+ readonly direction: "backward";
31
+ readonly afterCursor?: never;
32
+ readonly beforeCursor?: string;
33
+ readonly limit?: number;
34
+ };
35
+ export interface PageResult {
36
+ readonly events: ReadonlyArray<Execution.ExecutionEvent>;
37
+ readonly hasMore: boolean;
38
+ readonly oldestCursor?: string;
39
+ readonly newestCursor?: string;
40
+ }
22
41
  export interface FindBySequenceOrCursorInput {
23
42
  readonly executionId: Ids.ExecutionId;
24
43
  readonly sequence: Execution.ExecutionEventSequence;
@@ -41,6 +60,7 @@ export interface Interface {
41
60
  readonly append: (input: Execution.ExecutionEvent) => Effect.Effect<Execution.ExecutionEvent, EventLogError>;
42
61
  readonly replay: (input: ReplayInput) => Effect.Effect<ReadonlyArray<Execution.ExecutionEvent>, EventLogCursorNotFound | EventLogError>;
43
62
  readonly stream: (input: ReplayInput) => Stream.Stream<Execution.ExecutionEvent, EventLogCursorNotFound | EventLogError>;
63
+ readonly page: (input: PageInput) => Effect.Effect<PageResult, EventLogCursorNotFound | EventLogError>;
44
64
  readonly findBySequenceOrCursor: (input: FindBySequenceOrCursorInput) => Effect.Effect<Option.Option<Execution.ExecutionEvent>, EventLogError>;
45
65
  readonly findByCursor: (input: FindByCursorInput) => Effect.Effect<Option.Option<Execution.ExecutionEvent>, EventLogError>;
46
66
  readonly findBySequence: (input: FindBySequenceInput) => Effect.Effect<Option.Option<Execution.ExecutionEvent>, EventLogError>;
@@ -48,16 +68,21 @@ export interface Interface {
48
68
  readonly maxSequence: (executionId: Ids.ExecutionId) => Effect.Effect<Execution.ExecutionEventSequence | undefined, EventLogError>;
49
69
  readonly sumUsage: (executionId: Ids.ExecutionId) => Effect.Effect<number, EventLogError>;
50
70
  }
51
- declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/EventLog", Interface>;
71
+ declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/execution/event-log-service/Service", Interface>;
52
72
  export declare class Service extends Service_base {
53
73
  }
54
74
  export declare const layerFromRepository: Layer.Layer<Service, never, ExecutionEventRepository.Service>;
55
75
  export declare const memoryLayer: Layer.Layer<Service, never, never>;
56
- export declare const testLayer: (implementation: Interface) => Layer.Layer<Service, never, never>;
57
- export declare const appendIdempotentTo: (eventLog: Interface, input: Execution.ExecutionEvent) => Effect.Effect<Execution.ExecutionEvent, EventLogError, never>;
76
+ type TestImplementation = Omit<Interface, "page"> & Partial<Pick<Interface, "page">>;
77
+ export declare const testLayer: (implementation: TestImplementation) => Layer.Layer<Service, never, never>;
78
+ export declare const appendIdempotentTo: {
79
+ (eventLog: Interface, input: Execution.ExecutionEvent): Effect.Effect<Execution.ExecutionEvent, EventLogError>;
80
+ (input: Execution.ExecutionEvent): (eventLog: Interface) => Effect.Effect<Execution.ExecutionEvent, EventLogError>;
81
+ };
58
82
  export declare const append: (input: Execution.ExecutionEvent) => Effect.Effect<Execution.ExecutionEvent, EventLogError, Service>;
59
83
  export declare const appendIdempotent: (input: Execution.ExecutionEvent) => Effect.Effect<Execution.ExecutionEvent, EventLogError, Service>;
60
84
  export declare const replay: (input: ReplayInput) => Effect.Effect<readonly Execution.ExecutionEvent[], EventLogCursorNotFound | EventLogError, Service>;
85
+ export declare const page: (input: PageInput) => Effect.Effect<PageResult, EventLogCursorNotFound | EventLogError, Service>;
61
86
  export declare const findBySequenceOrCursor: (input: FindBySequenceOrCursorInput) => Effect.Effect<Option.Option<Execution.ExecutionEvent>, EventLogError, Service>;
62
87
  export declare const findByCursor: (input: FindByCursorInput) => Effect.Effect<Option.Option<Execution.ExecutionEvent>, EventLogError, Service>;
63
88
  export declare const findBySequence: (input: FindBySequenceInput) => Effect.Effect<Option.Option<Execution.ExecutionEvent>, EventLogError, Service>;
@@ -51,7 +51,7 @@ export interface Interface {
51
51
  readonly spawnChildRun: (input: Execution.SpawnChildRunInput) => Effect.Effect<Execution.ChildRunAccepted, ExecutionServiceError>;
52
52
  readonly stream: (input: ReplayInput) => Stream.Stream<Execution.ExecutionEvent, ExecutionServiceError>;
53
53
  }
54
- declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/ExecutionService", Interface>;
54
+ declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/execution/execution-service/Service", Interface>;
55
55
  export declare class Service extends Service_base {
56
56
  }
57
57
  export declare const layer: Layer.Layer<Service, never, ExecutionRepository.Service | EventLogService | ChildRunServiceService | ShardingConfig.ShardingConfig>;
@@ -23,7 +23,7 @@ export type ExecutionListChange = {
23
23
  export interface Interface {
24
24
  readonly watch: (input: WatchInput) => Stream.Stream<ExecutionListChange, ExecutionWatchError>;
25
25
  }
26
- declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/ExecutionWatch", Interface>;
26
+ declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/execution/execution-watch-service/Service", Interface>;
27
27
  export declare class Service extends Service_base {
28
28
  }
29
29
  export declare const layerFromServices: Layer.Layer<Service, never, ExecutionRepository.Service>;
@@ -24,7 +24,7 @@ export type SessionStreamItem = {
24
24
  export interface Interface {
25
25
  readonly stream: (input: StreamInput) => Stream.Stream<SessionStreamItem, EventLogCursorNotFound | SessionStreamError>;
26
26
  }
27
- declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/SessionStream", Interface>;
27
+ declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/execution/session-stream-service/Service", Interface>;
28
28
  export declare class Service extends Service_base {
29
29
  }
30
30
  export declare const layerFromServices: Layer.Layer<Service, never, ExecutionRepository.Service | EventLogService>;
@@ -57,7 +57,7 @@ export interface Interface {
57
57
  readonly undrainedCount: (executionId: Ids.ExecutionId) => Effect.Effect<number, InboxServiceError>;
58
58
  readonly reply: (input: ReplyInput) => Effect.Effect<Envelope.EnvelopeAccepted, InboxReplyTokenInvalid | InboxDeliveryError>;
59
59
  }
60
- declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/InboxService", Interface>;
60
+ declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/inbox/inbox-service/Service", Interface>;
61
61
  export declare class Service extends Service_base {
62
62
  }
63
63
  export interface SignalDependencies {
@@ -10,7 +10,7 @@ export interface Options {
10
10
  }
11
11
  export interface Interface extends Memory.Interface {
12
12
  }
13
- declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/MemoryService", Interface>;
13
+ declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/memory/memory-service/Service", Interface>;
14
14
  export declare class Service extends Service_base {
15
15
  }
16
16
  export declare const layer: (options?: Options) => Layer.Layer<Service | Memory.Memory, never, MemoryRepository.Service | EmbeddingModelServiceService>;