@relayfx/test 0.2.15 → 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/index.js +1759 -1496
- package/dist/types/runtime/address/address-book-service.d.ts +3 -3
- package/dist/types/runtime/address/address-resolution-service.d.ts +41 -41
- 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-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 +5 -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 +19 -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 +105 -110
- 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 +246 -246
- package/dist/types/schema/child-orchestration-schema.d.ts +64 -64
- package/dist/types/schema/execution-schema.d.ts +57 -57
- package/dist/types/schema/workflow-schema.d.ts +243 -243
- package/dist/types/schema/workspace-schema.d.ts +1 -1
- package/dist/types/test/captured-model.d.ts +10 -4
- package/dist/types/test/scripted-model.d.ts +16 -6
- package/dist/types/test/wait-test-kit.d.ts +4 -4
- package/package.json +2 -2
|
@@ -59,15 +59,15 @@ export interface Interface {
|
|
|
59
59
|
readonly resolve: (addressId: Ids.AddressId) => Effect.Effect<Route, AddressNotFound | AddressUnavailable | AddressDeferred | AddressBookServiceError>;
|
|
60
60
|
readonly register: (addressId: Ids.AddressId, route: Route) => Effect.Effect<Address.RouteRegistered, AddressBookServiceError>;
|
|
61
61
|
readonly get: (addressId: Ids.AddressId) => Effect.Effect<RouteRecord | undefined, AddressBookServiceError>;
|
|
62
|
-
readonly list:
|
|
62
|
+
readonly list: Effect.Effect<Address.RouteList, AddressBookServiceError>;
|
|
63
63
|
}
|
|
64
|
-
declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/
|
|
64
|
+
declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/address/address-book-service/Service", Interface>;
|
|
65
65
|
export declare class Service extends Service_base {
|
|
66
66
|
}
|
|
67
67
|
export declare const layerFromRepository: Layer.Layer<Service, never, AddressBookRepository.Service>;
|
|
68
68
|
export declare const memoryLayer: (entries?: Iterable<readonly [Ids.AddressId, Route]>) => Layer.Layer<Service, never, never>;
|
|
69
69
|
export declare const testLayer: (implementation: Interface) => Layer.Layer<Service, never, never>;
|
|
70
|
-
export declare const resolve: (addressId: string & import("effect/Brand").Brand<"Relay.AddressId">) => Effect.Effect<Route,
|
|
70
|
+
export declare const resolve: (addressId: string & import("effect/Brand").Brand<"Relay.AddressId">) => Effect.Effect<Route, AddressBookServiceError | AddressDeferred | AddressNotFound | AddressUnavailable, Service>;
|
|
71
71
|
export declare const register: (addressId: string & import("effect/Brand").Brand<"Relay.AddressId">, route: Route) => Effect.Effect<Address.RouteRegistered, AddressBookServiceError, Service>;
|
|
72
72
|
export declare const get: (addressId: string & import("effect/Brand").Brand<"Relay.AddressId">) => Effect.Effect<RouteRecord | undefined, AddressBookServiceError, Service>;
|
|
73
73
|
export declare const list: () => Effect.Effect<Address.RouteList, AddressBookServiceError, Service>;
|
|
@@ -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
|
|
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
|
|
79
|
-
readonly
|
|
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
|
|
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
|
|
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: "
|
|
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/
|
|
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,
|
|
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,
|
|
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/
|
|
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.
|
|
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:
|
|
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,
|
|
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:
|
|
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/
|
|
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/
|
|
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:
|
|
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/
|
|
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,
|
|
13
|
-
|
|
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/
|
|
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/
|
|
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
|
|
33
|
-
export declare const layer: Layer.Layer<Service, ChildFanOutRuntimeError, ChildFanOutRepository.Service | TransitionService
|
|
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:
|
|
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/
|
|
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/
|
|
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,
|
|
90
|
-
export declare const childDefinition:
|
|
91
|
-
|
|
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/
|
|
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,
|
|
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.
|
|
21
|
-
readonly reserve_tokens: Schema.
|
|
22
|
-
readonly keep_recent_tokens: Schema.
|
|
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,
|
|
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 |
|
|
38
|
-
export declare const client: Effect.Effect<(entityId: string) => import("effect/unstable/rpc/RpcClient").RpcClient.From<ExecutionRpc, import("effect/unstable/cluster/ClusterError").
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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:
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
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:
|
|
28
|
+
readonly listKinds: Effect.Effect<ReadonlyArray<Entity.KindDefinition>, EntityRegistryError>;
|
|
29
29
|
}
|
|
30
|
-
declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/
|
|
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/
|
|
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 |
|
|
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/
|
|
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>;
|
|
@@ -48,13 +48,16 @@ export interface Interface {
|
|
|
48
48
|
readonly maxSequence: (executionId: Ids.ExecutionId) => Effect.Effect<Execution.ExecutionEventSequence | undefined, EventLogError>;
|
|
49
49
|
readonly sumUsage: (executionId: Ids.ExecutionId) => Effect.Effect<number, EventLogError>;
|
|
50
50
|
}
|
|
51
|
-
declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/
|
|
51
|
+
declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/execution/event-log-service/Service", Interface>;
|
|
52
52
|
export declare class Service extends Service_base {
|
|
53
53
|
}
|
|
54
54
|
export declare const layerFromRepository: Layer.Layer<Service, never, ExecutionEventRepository.Service>;
|
|
55
55
|
export declare const memoryLayer: Layer.Layer<Service, never, never>;
|
|
56
56
|
export declare const testLayer: (implementation: Interface) => Layer.Layer<Service, never, never>;
|
|
57
|
-
export declare const appendIdempotentTo:
|
|
57
|
+
export declare const appendIdempotentTo: {
|
|
58
|
+
(eventLog: Interface, input: Execution.ExecutionEvent): Effect.Effect<Execution.ExecutionEvent, EventLogError>;
|
|
59
|
+
(input: Execution.ExecutionEvent): (eventLog: Interface) => Effect.Effect<Execution.ExecutionEvent, EventLogError>;
|
|
60
|
+
};
|
|
58
61
|
export declare const append: (input: Execution.ExecutionEvent) => Effect.Effect<Execution.ExecutionEvent, EventLogError, Service>;
|
|
59
62
|
export declare const appendIdempotent: (input: Execution.ExecutionEvent) => Effect.Effect<Execution.ExecutionEvent, EventLogError, Service>;
|
|
60
63
|
export declare const replay: (input: ReplayInput) => Effect.Effect<readonly Execution.ExecutionEvent[], EventLogCursorNotFound | 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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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>;
|