@relayfx/test 0.3.1 → 0.3.2
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/README.md +2 -2
- package/dist/index.js +29 -20481
- package/dist/types/test/index.d.ts +0 -2
- package/dist/types/test/test-runtime.d.ts +6 -7
- package/dist/types/test/test-tools.d.ts +2 -2
- package/dist/types/test/wait-test-kit.d.ts +1 -1
- package/package.json +7 -6
- package/dist/types/runtime/address/address-book-service.d.ts +0 -74
- package/dist/types/runtime/address/address-resolution-service.d.ts +0 -172
- package/dist/types/runtime/agent/agent-loop-service.d.ts +0 -92
- package/dist/types/runtime/agent/agent-registry-service.d.ts +0 -31
- package/dist/types/runtime/agent/prompt-assembler-service.d.ts +0 -64
- package/dist/types/runtime/agent/relay-approvals.d.ts +0 -2
- package/dist/types/runtime/agent/relay-compaction.d.ts +0 -24
- package/dist/types/runtime/agent/relay-instructions.d.ts +0 -7
- package/dist/types/runtime/agent/relay-permissions.d.ts +0 -25
- package/dist/types/runtime/agent/relay-steering.d.ts +0 -17
- package/dist/types/runtime/agent/relay-tool-executor.d.ts +0 -22
- package/dist/types/runtime/agent/relay-tool-output.d.ts +0 -10
- package/dist/types/runtime/agent/sequence-allocator.d.ts +0 -8
- package/dist/types/runtime/child/child-fan-out-admission-service.d.ts +0 -30
- package/dist/types/runtime/child/child-fan-out-runtime.d.ts +0 -40
- package/dist/types/runtime/child/child-fan-out-transition-service.d.ts +0 -25
- package/dist/types/runtime/child/child-run-service.d.ts +0 -96
- package/dist/types/runtime/child/parent-notifier-service.d.ts +0 -42
- package/dist/types/runtime/child/spawn-child-run-tool.d.ts +0 -225
- package/dist/types/runtime/cluster/execution-entity.d.ts +0 -39
- package/dist/types/runtime/content/artifact-store-service.d.ts +0 -26
- package/dist/types/runtime/content/blob-store-service.d.ts +0 -54
- package/dist/types/runtime/entity/entity-instance-service.d.ts +0 -76
- package/dist/types/runtime/entity/entity-registry-service.d.ts +0 -35
- package/dist/types/runtime/envelope/envelope-service.d.ts +0 -56
- package/dist/types/runtime/execution/active-execution-registry.d.ts +0 -12
- package/dist/types/runtime/execution/event-log-service.d.ts +0 -93
- package/dist/types/runtime/execution/execution-service.d.ts +0 -66
- package/dist/types/runtime/execution/execution-watch-service.d.ts +0 -32
- package/dist/types/runtime/execution/session-stream-service.d.ts +0 -33
- package/dist/types/runtime/inbox/inbox-service.d.ts +0 -76
- package/dist/types/runtime/inbox/send-message-tool.d.ts +0 -27
- package/dist/types/runtime/inbox/wait-for-messages-tool.d.ts +0 -34
- package/dist/types/runtime/index.d.ts +0 -56
- package/dist/types/runtime/memory/memory-service.d.ts +0 -22
- package/dist/types/runtime/model/embedding-model-service.d.ts +0 -81
- package/dist/types/runtime/model/language-model-service.d.ts +0 -48
- package/dist/types/runtime/model/model-call-policy.d.ts +0 -14
- package/dist/types/runtime/observability/runtime-metrics.d.ts +0 -28
- package/dist/types/runtime/presence/presence-service.d.ts +0 -30
- package/dist/types/runtime/presence/presence-tool.d.ts +0 -20
- package/dist/types/runtime/runner/runner-runtime-service.d.ts +0 -149
- package/dist/types/runtime/schedule/scheduler-service.d.ts +0 -34
- package/dist/types/runtime/schema-registry/schema-registry-service.d.ts +0 -27
- package/dist/types/runtime/session/session-store-service.d.ts +0 -23
- package/dist/types/runtime/skill/skill-registry-service.d.ts +0 -44
- package/dist/types/runtime/state/execution-state-service.d.ts +0 -60
- package/dist/types/runtime/state/state-tools.d.ts +0 -5
- package/dist/types/runtime/tool/tool-input-schema-digest.d.ts +0 -6
- package/dist/types/runtime/tool/tool-runtime-service.d.ts +0 -162
- package/dist/types/runtime/tool/tool-transition-coordinator.d.ts +0 -13
- package/dist/types/runtime/topic/publish-to-topic-tool.d.ts +0 -24
- package/dist/types/runtime/topic/topic-service.d.ts +0 -50
- package/dist/types/runtime/wait/wait-service.d.ts +0 -81
- package/dist/types/runtime/wait/wait-signal.d.ts +0 -25
- package/dist/types/runtime/workflow/activity-version-registry.d.ts +0 -93
- package/dist/types/runtime/workflow/definition-runtime.d.ts +0 -95
- package/dist/types/runtime/workflow/execution-workflow.d.ts +0 -534
- package/dist/types/runtime/workspace/workspace-planner-service.d.ts +0 -64
- package/dist/types/runtime/workspace/workspace-provider-service.d.ts +0 -112
- package/dist/types/runtime/workspace/workspace-runtime-service.d.ts +0 -21
- package/dist/types/schema/address-schema.d.ts +0 -77
- package/dist/types/schema/agent-schema.d.ts +0 -901
- package/dist/types/schema/child-orchestration-schema.d.ts +0 -429
- package/dist/types/schema/content-schema.d.ts +0 -118
- package/dist/types/schema/entity-schema.d.ts +0 -40
- package/dist/types/schema/envelope-schema.d.ts +0 -180
- package/dist/types/schema/execution-schema.d.ts +0 -453
- package/dist/types/schema/ids-schema.d.ts +0 -106
- package/dist/types/schema/inbox-schema.d.ts +0 -81
- package/dist/types/schema/index.d.ts +0 -19
- package/dist/types/schema/presence-schema.d.ts +0 -28
- package/dist/types/schema/schedule-schema.d.ts +0 -79
- package/dist/types/schema/shared-schema.d.ts +0 -13
- package/dist/types/schema/skill-schema.d.ts +0 -260
- package/dist/types/schema/state-schema.d.ts +0 -35
- package/dist/types/schema/tool-schema.d.ts +0 -84
- package/dist/types/schema/wait-schema.d.ts +0 -98
- package/dist/types/schema/workflow-schema.d.ts +0 -2062
- package/dist/types/schema/workspace-schema.d.ts +0 -78
- package/dist/types/test/captured-model.d.ts +0 -19
- package/dist/types/test/scripted-model.d.ts +0 -49
|
@@ -1,534 +0,0 @@
|
|
|
1
|
-
import { Agent, Ids } from "../../schema/index";
|
|
2
|
-
import { ChildExecutionRepository, EnvelopeRepository, ExecutionRepository, ToolCallRepository } from "@relayfx/store-sql/portable";
|
|
3
|
-
import { Workflow, WorkflowEngine } from "effect/unstable/workflow";
|
|
4
|
-
import { Effect, Layer, Option, Schema } from "effect";
|
|
5
|
-
import { Service as AgentLoopService } from "../agent/agent-loop-service";
|
|
6
|
-
import { ChildTerminalStatus } from "../child/parent-notifier-service";
|
|
7
|
-
import { Service as EventLogService } from "../execution/event-log-service";
|
|
8
|
-
import { Service as ToolRuntimeService } from "../tool/tool-runtime-service";
|
|
9
|
-
import { Service as ToolTransitionCoordinatorService } from "../tool/tool-transition-coordinator";
|
|
10
|
-
declare const ExecutionWorkflowFailed_base: Schema.Class<ExecutionWorkflowFailed, Schema.TaggedStruct<"ExecutionWorkflowFailed", {
|
|
11
|
-
readonly message: Schema.String;
|
|
12
|
-
}>, import("effect/Cause").YieldableError>;
|
|
13
|
-
export declare class ExecutionWorkflowFailed extends ExecutionWorkflowFailed_base {
|
|
14
|
-
}
|
|
15
|
-
export declare const StartInput: Schema.Struct<{
|
|
16
|
-
readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
17
|
-
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
18
|
-
};
|
|
19
|
-
readonly root_address_id: Schema.brand<Schema.String, "Relay.AddressId"> & {
|
|
20
|
-
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
|
|
21
|
-
};
|
|
22
|
-
readonly session_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.SessionId"> & {
|
|
23
|
-
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SessionId">;
|
|
24
|
-
}>;
|
|
25
|
-
readonly input: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
26
|
-
readonly type: Schema.Literal<"text">;
|
|
27
|
-
readonly text: Schema.String;
|
|
28
|
-
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
29
|
-
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
30
|
-
}>, Schema.Struct<{
|
|
31
|
-
readonly type: Schema.Literal<"structured">;
|
|
32
|
-
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
33
|
-
readonly schema_ref: Schema.optionalKey<Schema.String>;
|
|
34
|
-
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
35
|
-
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
36
|
-
}>, Schema.Struct<{
|
|
37
|
-
readonly type: Schema.Literal<"blob-reference">;
|
|
38
|
-
readonly uri: Schema.String;
|
|
39
|
-
readonly media_type: Schema.String;
|
|
40
|
-
readonly filename: Schema.optionalKey<Schema.String>;
|
|
41
|
-
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
42
|
-
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
43
|
-
}>, Schema.Struct<{
|
|
44
|
-
readonly type: Schema.Literal<"artifact-reference">;
|
|
45
|
-
readonly artifact_id: Schema.String;
|
|
46
|
-
readonly media_type: Schema.optionalKey<Schema.String>;
|
|
47
|
-
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
48
|
-
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
49
|
-
}>, Schema.Struct<{
|
|
50
|
-
readonly type: Schema.Literal<"tool-call">;
|
|
51
|
-
readonly call: Schema.Struct<{
|
|
52
|
-
readonly id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
|
|
53
|
-
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
|
|
54
|
-
};
|
|
55
|
-
readonly name: Schema.String;
|
|
56
|
-
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
57
|
-
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
58
|
-
}>;
|
|
59
|
-
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
60
|
-
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
61
|
-
}>, Schema.Struct<{
|
|
62
|
-
readonly type: Schema.Literal<"tool-result">;
|
|
63
|
-
readonly result: Schema.Struct<{
|
|
64
|
-
readonly call_id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
|
|
65
|
-
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
|
|
66
|
-
};
|
|
67
|
-
readonly output: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
68
|
-
readonly error: Schema.optionalKey<Schema.String>;
|
|
69
|
-
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
70
|
-
}>;
|
|
71
|
-
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
72
|
-
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
73
|
-
}>]>>>;
|
|
74
|
-
readonly event_sequence: Schema.Int;
|
|
75
|
-
readonly started_at: Schema.Int;
|
|
76
|
-
readonly completed_at: Schema.Int;
|
|
77
|
-
readonly agent_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.AgentId"> & {
|
|
78
|
-
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AgentId">;
|
|
79
|
-
}>;
|
|
80
|
-
readonly agent_revision: Schema.optionalKey<Schema.Int>;
|
|
81
|
-
readonly agent_snapshot: Schema.optionalKey<Schema.Codec<Agent.Definition, {
|
|
82
|
-
readonly name: string;
|
|
83
|
-
readonly instructions?: string;
|
|
84
|
-
readonly model: {
|
|
85
|
-
readonly provider: string;
|
|
86
|
-
readonly model: string;
|
|
87
|
-
readonly registration_key?: string;
|
|
88
|
-
readonly request_options?: {
|
|
89
|
-
readonly [x: string]: Schema.Json;
|
|
90
|
-
};
|
|
91
|
-
readonly metadata?: {
|
|
92
|
-
readonly [x: string]: Schema.Json;
|
|
93
|
-
};
|
|
94
|
-
};
|
|
95
|
-
readonly tool_names: readonly 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
|
-
}[];
|
|
103
|
-
readonly skill_definition_ids?: readonly string[];
|
|
104
|
-
readonly permission_rules?: {
|
|
105
|
-
readonly rules: readonly {
|
|
106
|
-
readonly pattern: string;
|
|
107
|
-
readonly level: "allow" | "ask" | "deny";
|
|
108
|
-
readonly reason?: string;
|
|
109
|
-
}[];
|
|
110
|
-
readonly fallback?: "allow" | "ask" | "deny";
|
|
111
|
-
};
|
|
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
|
-
};
|
|
129
|
-
readonly max_tool_turns?: number;
|
|
130
|
-
readonly max_wait_turns?: number;
|
|
131
|
-
readonly token_budget?: number;
|
|
132
|
-
readonly child_run_presets?: {
|
|
133
|
-
readonly [x: string]: {
|
|
134
|
-
readonly instructions?: string;
|
|
135
|
-
readonly model?: {
|
|
136
|
-
readonly provider: string;
|
|
137
|
-
readonly model: string;
|
|
138
|
-
readonly registration_key?: string;
|
|
139
|
-
readonly request_options?: {
|
|
140
|
-
readonly [x: string]: Schema.Json;
|
|
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
|
-
};
|
|
161
|
-
};
|
|
162
|
-
readonly tool_names?: readonly string[];
|
|
163
|
-
readonly permissions?: readonly string[];
|
|
164
|
-
readonly workspace_policy?: {
|
|
165
|
-
readonly mode: "fork" | "share";
|
|
166
|
-
readonly fallback?: "fail" | "fresh";
|
|
167
|
-
};
|
|
168
|
-
readonly output_schema_ref?: string;
|
|
169
|
-
readonly metadata?: {
|
|
170
|
-
readonly [x: string]: Schema.Json;
|
|
171
|
-
};
|
|
172
|
-
};
|
|
173
|
-
};
|
|
174
|
-
readonly handoff_targets?: readonly Schema.Struct.ReadonlySide<{
|
|
175
|
-
readonly name: Schema.String;
|
|
176
|
-
readonly preset_name: Schema.String;
|
|
177
|
-
}, "Encoded">[];
|
|
178
|
-
readonly output_schema_ref?: string;
|
|
179
|
-
readonly metadata?: {
|
|
180
|
-
readonly [x: string]: Schema.Json;
|
|
181
|
-
};
|
|
182
|
-
}, never, never>>;
|
|
183
|
-
readonly agent_tool_input_schema_digests: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
184
|
-
readonly wait_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.WaitId"> & {
|
|
185
|
-
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WaitId">;
|
|
186
|
-
}>;
|
|
187
|
-
readonly resume_tool_call: Schema.optionalKey<Schema.Struct<{
|
|
188
|
-
readonly id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
|
|
189
|
-
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
|
|
190
|
-
};
|
|
191
|
-
readonly name: Schema.String;
|
|
192
|
-
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
193
|
-
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
194
|
-
}>>;
|
|
195
|
-
readonly workflow_generation: Schema.optionalKey<Schema.Int>;
|
|
196
|
-
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
197
|
-
}>;
|
|
198
|
-
export interface StartInput extends Schema.Schema.Type<typeof StartInput> {
|
|
199
|
-
}
|
|
200
|
-
export declare const WaitSignalState: Schema.Literals<readonly ["resolved", "timed_out", "cancelled"]>;
|
|
201
|
-
export type WaitSignalState = typeof WaitSignalState.Type;
|
|
202
|
-
export declare const WaitSignal: Schema.Struct<{
|
|
203
|
-
readonly wait_id: Schema.brand<Schema.String, "Relay.WaitId"> & {
|
|
204
|
-
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WaitId">;
|
|
205
|
-
};
|
|
206
|
-
readonly state: Schema.Literals<readonly ["resolved", "timed_out", "cancelled"]>;
|
|
207
|
-
readonly signaled_at: Schema.Int;
|
|
208
|
-
}>;
|
|
209
|
-
export interface WaitSignal extends Schema.Schema.Type<typeof WaitSignal> {
|
|
210
|
-
}
|
|
211
|
-
export declare const SignalWaitInput: Schema.Struct<{
|
|
212
|
-
readonly workflow_execution_id: Schema.String;
|
|
213
|
-
readonly wait_id: Schema.brand<Schema.String, "Relay.WaitId"> & {
|
|
214
|
-
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WaitId">;
|
|
215
|
-
};
|
|
216
|
-
readonly state: Schema.Literals<readonly ["resolved", "timed_out", "cancelled"]>;
|
|
217
|
-
readonly signaled_at: Schema.Int;
|
|
218
|
-
}>;
|
|
219
|
-
export interface SignalWaitInput extends Schema.Schema.Type<typeof SignalWaitInput> {
|
|
220
|
-
}
|
|
221
|
-
export declare const CancelExecutionInput: Schema.Struct<{
|
|
222
|
-
readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
223
|
-
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
224
|
-
};
|
|
225
|
-
readonly cancelled_at: Schema.Int;
|
|
226
|
-
readonly reason: Schema.optionalKey<Schema.String>;
|
|
227
|
-
}>;
|
|
228
|
-
export interface CancelExecutionInput extends Schema.Schema.Type<typeof CancelExecutionInput> {
|
|
229
|
-
}
|
|
230
|
-
export declare const CancelExecutionResult: Schema.Struct<{
|
|
231
|
-
readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
232
|
-
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
233
|
-
};
|
|
234
|
-
readonly status: Schema.Literals<readonly ["queued", "running", "waiting", "completed", "failed", "cancelled"]>;
|
|
235
|
-
}>;
|
|
236
|
-
export interface CancelExecutionResult extends Schema.Schema.Type<typeof CancelExecutionResult> {
|
|
237
|
-
}
|
|
238
|
-
export declare const WaitSnapshot: Schema.Struct<{
|
|
239
|
-
readonly id: Schema.brand<Schema.String, "Relay.WaitId"> & {
|
|
240
|
-
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WaitId">;
|
|
241
|
-
};
|
|
242
|
-
readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
243
|
-
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
244
|
-
};
|
|
245
|
-
readonly envelope_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.EnvelopeId"> & {
|
|
246
|
-
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EnvelopeId">;
|
|
247
|
-
}>;
|
|
248
|
-
readonly mode: Schema.Literals<readonly ["reply", "event", "until", "child"]>;
|
|
249
|
-
readonly correlation_key: Schema.optionalKey<Schema.String>;
|
|
250
|
-
readonly state: Schema.Literals<readonly ["open", "resolved", "timed_out", "cancelled"]>;
|
|
251
|
-
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
252
|
-
readonly created_at: Schema.Int;
|
|
253
|
-
readonly resolved_at: Schema.optionalKey<Schema.Int>;
|
|
254
|
-
}>;
|
|
255
|
-
export interface WaitSnapshot extends Schema.Schema.Type<typeof WaitSnapshot> {
|
|
256
|
-
}
|
|
257
|
-
export declare const StartResult: Schema.Struct<{
|
|
258
|
-
readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
259
|
-
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
260
|
-
};
|
|
261
|
-
readonly status: Schema.Literals<readonly ["queued", "running", "waiting", "completed", "failed", "cancelled"]>;
|
|
262
|
-
readonly wait_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.WaitId"> & {
|
|
263
|
-
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WaitId">;
|
|
264
|
-
}>;
|
|
265
|
-
readonly wait_state: Schema.optionalKey<Schema.Literals<readonly ["resolved", "timed_out", "cancelled"]>>;
|
|
266
|
-
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
267
|
-
}>;
|
|
268
|
-
export interface StartResult extends Schema.Schema.Type<typeof StartResult> {
|
|
269
|
-
}
|
|
270
|
-
export declare const StartExecutionWorkflowName = "Relay/Execution/Start";
|
|
271
|
-
export declare const ActivityNames: {
|
|
272
|
-
readonly resolveLocalAgent: "Relay/Execution/Start/ResolveLocalAgent";
|
|
273
|
-
readonly accept: "Relay/Execution/Start/Accept";
|
|
274
|
-
readonly cancel: (turn: number) => string;
|
|
275
|
-
readonly checkCancel: (turn: number) => string;
|
|
276
|
-
readonly loadWaitBeforeSleep: (waitId: Ids.WaitId) => string;
|
|
277
|
-
readonly loadWaitAfterWake: (waitId: Ids.WaitId) => string;
|
|
278
|
-
readonly markWaiting: (waitId: Ids.WaitId) => string;
|
|
279
|
-
readonly ensureWorkspace: "Relay/Execution/Start/EnsureWorkspace";
|
|
280
|
-
readonly suspendWorkspace: (key: string) => string;
|
|
281
|
-
readonly resumeWorkspace: (key: string) => string;
|
|
282
|
-
readonly releaseWorkspace: "Relay/Execution/Start/ReleaseWorkspace";
|
|
283
|
-
readonly complete: (turn: number) => string;
|
|
284
|
-
readonly checkQueuedChildCancellation: "Relay/Execution/Start/CheckQueuedChildCancellation";
|
|
285
|
-
readonly notifyParent: (status: ChildTerminalStatus) => string;
|
|
286
|
-
readonly continueAsNew: (turn: number) => string;
|
|
287
|
-
};
|
|
288
|
-
export declare const ActivityNameTemplates: {
|
|
289
|
-
readonly resolveLocalAgent: "Relay/Execution/Start/ResolveLocalAgent";
|
|
290
|
-
readonly accept: "Relay/Execution/Start/Accept";
|
|
291
|
-
readonly cancel: "Relay/Execution/Start/Cancel/:turn";
|
|
292
|
-
readonly checkCancel: "Relay/Execution/Start/CheckCancel/:turn";
|
|
293
|
-
readonly loadWaitBeforeSleep: "Relay/Execution/Start/LoadWaitBeforeSleep/:wait_id";
|
|
294
|
-
readonly loadWaitAfterWake: "Relay/Execution/Start/LoadWaitAfterWake/:wait_id";
|
|
295
|
-
readonly markWaiting: "Relay/Execution/Start/MarkWaiting/:wait_id";
|
|
296
|
-
readonly ensureWorkspace: "Relay/Execution/Start/EnsureWorkspace";
|
|
297
|
-
readonly suspendWorkspace: "Relay/Execution/Start/SuspendWorkspace/:key";
|
|
298
|
-
readonly resumeWorkspace: "Relay/Execution/Start/ResumeWorkspace/:key";
|
|
299
|
-
readonly releaseWorkspace: "Relay/Execution/Start/ReleaseWorkspace";
|
|
300
|
-
readonly complete: "Relay/Execution/Start/Complete/:turn";
|
|
301
|
-
readonly checkQueuedChildCancellation: "Relay/Execution/Start/CheckQueuedChildCancellation";
|
|
302
|
-
readonly notifyParent: "Relay/Execution/Start/NotifyParent/:status";
|
|
303
|
-
readonly continueAsNew: "Relay/Execution/Start/ContinueAsNew/:turn";
|
|
304
|
-
};
|
|
305
|
-
export declare const StartExecutionWorkflow: Workflow.Workflow<"Relay/Execution/Start", Schema.Struct<{
|
|
306
|
-
readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
307
|
-
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
308
|
-
};
|
|
309
|
-
readonly root_address_id: Schema.brand<Schema.String, "Relay.AddressId"> & {
|
|
310
|
-
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
|
|
311
|
-
};
|
|
312
|
-
readonly session_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.SessionId"> & {
|
|
313
|
-
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SessionId">;
|
|
314
|
-
}>;
|
|
315
|
-
readonly input: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
316
|
-
readonly type: Schema.Literal<"text">;
|
|
317
|
-
readonly text: Schema.String;
|
|
318
|
-
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
319
|
-
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
320
|
-
}>, Schema.Struct<{
|
|
321
|
-
readonly type: Schema.Literal<"structured">;
|
|
322
|
-
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
323
|
-
readonly schema_ref: Schema.optionalKey<Schema.String>;
|
|
324
|
-
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
325
|
-
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
326
|
-
}>, Schema.Struct<{
|
|
327
|
-
readonly type: Schema.Literal<"blob-reference">;
|
|
328
|
-
readonly uri: Schema.String;
|
|
329
|
-
readonly media_type: Schema.String;
|
|
330
|
-
readonly filename: Schema.optionalKey<Schema.String>;
|
|
331
|
-
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
332
|
-
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
333
|
-
}>, Schema.Struct<{
|
|
334
|
-
readonly type: Schema.Literal<"artifact-reference">;
|
|
335
|
-
readonly artifact_id: Schema.String;
|
|
336
|
-
readonly media_type: Schema.optionalKey<Schema.String>;
|
|
337
|
-
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
338
|
-
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
339
|
-
}>, Schema.Struct<{
|
|
340
|
-
readonly type: Schema.Literal<"tool-call">;
|
|
341
|
-
readonly call: Schema.Struct<{
|
|
342
|
-
readonly id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
|
|
343
|
-
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
|
|
344
|
-
};
|
|
345
|
-
readonly name: Schema.String;
|
|
346
|
-
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
347
|
-
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
348
|
-
}>;
|
|
349
|
-
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
350
|
-
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
351
|
-
}>, Schema.Struct<{
|
|
352
|
-
readonly type: Schema.Literal<"tool-result">;
|
|
353
|
-
readonly result: Schema.Struct<{
|
|
354
|
-
readonly call_id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
|
|
355
|
-
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
|
|
356
|
-
};
|
|
357
|
-
readonly output: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
358
|
-
readonly error: Schema.optionalKey<Schema.String>;
|
|
359
|
-
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
360
|
-
}>;
|
|
361
|
-
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
362
|
-
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
363
|
-
}>]>>>;
|
|
364
|
-
readonly event_sequence: Schema.Int;
|
|
365
|
-
readonly started_at: Schema.Int;
|
|
366
|
-
readonly completed_at: Schema.Int;
|
|
367
|
-
readonly agent_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.AgentId"> & {
|
|
368
|
-
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AgentId">;
|
|
369
|
-
}>;
|
|
370
|
-
readonly agent_revision: Schema.optionalKey<Schema.Int>;
|
|
371
|
-
readonly agent_snapshot: Schema.optionalKey<Schema.Codec<Agent.Definition, {
|
|
372
|
-
readonly name: string;
|
|
373
|
-
readonly instructions?: string;
|
|
374
|
-
readonly model: {
|
|
375
|
-
readonly provider: string;
|
|
376
|
-
readonly model: string;
|
|
377
|
-
readonly registration_key?: string;
|
|
378
|
-
readonly request_options?: {
|
|
379
|
-
readonly [x: string]: Schema.Json;
|
|
380
|
-
};
|
|
381
|
-
readonly metadata?: {
|
|
382
|
-
readonly [x: string]: Schema.Json;
|
|
383
|
-
};
|
|
384
|
-
};
|
|
385
|
-
readonly tool_names: readonly 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
|
-
}[];
|
|
393
|
-
readonly skill_definition_ids?: readonly string[];
|
|
394
|
-
readonly permission_rules?: {
|
|
395
|
-
readonly rules: readonly {
|
|
396
|
-
readonly pattern: string;
|
|
397
|
-
readonly level: "allow" | "ask" | "deny";
|
|
398
|
-
readonly reason?: string;
|
|
399
|
-
}[];
|
|
400
|
-
readonly fallback?: "allow" | "ask" | "deny";
|
|
401
|
-
};
|
|
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
|
-
};
|
|
419
|
-
readonly max_tool_turns?: number;
|
|
420
|
-
readonly max_wait_turns?: number;
|
|
421
|
-
readonly token_budget?: number;
|
|
422
|
-
readonly child_run_presets?: {
|
|
423
|
-
readonly [x: string]: {
|
|
424
|
-
readonly instructions?: string;
|
|
425
|
-
readonly model?: {
|
|
426
|
-
readonly provider: string;
|
|
427
|
-
readonly model: string;
|
|
428
|
-
readonly registration_key?: string;
|
|
429
|
-
readonly request_options?: {
|
|
430
|
-
readonly [x: string]: Schema.Json;
|
|
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
|
-
};
|
|
451
|
-
};
|
|
452
|
-
readonly tool_names?: readonly string[];
|
|
453
|
-
readonly permissions?: readonly string[];
|
|
454
|
-
readonly workspace_policy?: {
|
|
455
|
-
readonly mode: "fork" | "share";
|
|
456
|
-
readonly fallback?: "fail" | "fresh";
|
|
457
|
-
};
|
|
458
|
-
readonly output_schema_ref?: string;
|
|
459
|
-
readonly metadata?: {
|
|
460
|
-
readonly [x: string]: Schema.Json;
|
|
461
|
-
};
|
|
462
|
-
};
|
|
463
|
-
};
|
|
464
|
-
readonly handoff_targets?: readonly Schema.Struct.ReadonlySide<{
|
|
465
|
-
readonly name: Schema.String;
|
|
466
|
-
readonly preset_name: Schema.String;
|
|
467
|
-
}, "Encoded">[];
|
|
468
|
-
readonly output_schema_ref?: string;
|
|
469
|
-
readonly metadata?: {
|
|
470
|
-
readonly [x: string]: Schema.Json;
|
|
471
|
-
};
|
|
472
|
-
}, never, never>>;
|
|
473
|
-
readonly agent_tool_input_schema_digests: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
474
|
-
readonly wait_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.WaitId"> & {
|
|
475
|
-
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WaitId">;
|
|
476
|
-
}>;
|
|
477
|
-
readonly resume_tool_call: Schema.optionalKey<Schema.Struct<{
|
|
478
|
-
readonly id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
|
|
479
|
-
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
|
|
480
|
-
};
|
|
481
|
-
readonly name: Schema.String;
|
|
482
|
-
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
483
|
-
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
484
|
-
}>>;
|
|
485
|
-
readonly workflow_generation: Schema.optionalKey<Schema.Int>;
|
|
486
|
-
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
487
|
-
}>, Schema.Struct<{
|
|
488
|
-
readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
489
|
-
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
490
|
-
};
|
|
491
|
-
readonly status: Schema.Literals<readonly ["queued", "running", "waiting", "completed", "failed", "cancelled"]>;
|
|
492
|
-
readonly wait_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.WaitId"> & {
|
|
493
|
-
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WaitId">;
|
|
494
|
-
}>;
|
|
495
|
-
readonly wait_state: Schema.optionalKey<Schema.Literals<readonly ["resolved", "timed_out", "cancelled"]>>;
|
|
496
|
-
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
497
|
-
}>, typeof ExecutionWorkflowFailed>;
|
|
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> {
|
|
504
|
-
readonly discard?: Discard;
|
|
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>;
|
|
512
|
-
export declare const cancelRequest: (input: CancelExecutionInput) => Effect.Effect<{
|
|
513
|
-
execution_id: string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
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>;
|
|
516
|
-
export declare const poll: (executionId: string) => Effect.Effect<Option.Option<Workflow.Result<{
|
|
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";
|
|
521
|
-
readonly metadata?: {
|
|
522
|
-
readonly [x: string]: Schema.Json;
|
|
523
|
-
};
|
|
524
|
-
}, ExecutionWorkflowFailed>>, never, WorkflowEngine.WorkflowEngine>;
|
|
525
|
-
export declare const resume: (executionId: string) => Effect.Effect<void, never, WorkflowEngine.WorkflowEngine>;
|
|
526
|
-
export declare const workflowExecutionId: (input: StartInput) => 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
|
-
};
|
|
532
|
-
export declare const activeWorkflowExecutionIdForExecution: (executionId: string & import("effect/Brand").Brand<"Relay.ExecutionId">) => Effect.Effect<string, ExecutionWorkflowFailed, ExecutionRepository.Service>;
|
|
533
|
-
export declare const signalWait: (input: SignalWaitInput) => Effect.Effect<void, never, WorkflowEngine.WorkflowEngine>;
|
|
534
|
-
export {};
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { Agent, Ids, Shared, Tool, Workspace } from "../../schema/index";
|
|
2
|
-
import { WorkspaceLeaseRepository } from "@relayfx/store-sql/portable";
|
|
3
|
-
import { Context, Effect, Layer, Schema } from "effect";
|
|
4
|
-
import { Service as EventLogService } from "../execution/event-log-service";
|
|
5
|
-
import { WorkspaceCapabilityUnsupported } from "./workspace-provider-service";
|
|
6
|
-
import type { WorkspaceNotFound, WorkspaceProviderError, WorkspaceUnavailable } from "./workspace-provider-service";
|
|
7
|
-
import { Service as WorkspaceRuntimeService } from "./workspace-runtime-service";
|
|
8
|
-
declare const WorkspaceRuntimeMissing_base: Schema.Class<WorkspaceRuntimeMissing, Schema.TaggedStruct<"WorkspaceRuntimeMissing", {
|
|
9
|
-
readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
10
|
-
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
11
|
-
};
|
|
12
|
-
}>, import("effect/Cause").YieldableError>;
|
|
13
|
-
export declare class WorkspaceRuntimeMissing extends WorkspaceRuntimeMissing_base {
|
|
14
|
-
}
|
|
15
|
-
declare const WorkspaceLeaseMissingRef_base: Schema.Class<WorkspaceLeaseMissingRef, Schema.TaggedStruct<"WorkspaceLeaseMissingRef", {
|
|
16
|
-
readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
17
|
-
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
18
|
-
};
|
|
19
|
-
}>, import("effect/Cause").YieldableError>;
|
|
20
|
-
export declare class WorkspaceLeaseMissingRef extends WorkspaceLeaseMissingRef_base {
|
|
21
|
-
}
|
|
22
|
-
declare const WorkspacePlannerError_base: Schema.Class<WorkspacePlannerError, Schema.TaggedStruct<"WorkspacePlannerError", {
|
|
23
|
-
readonly message: Schema.String;
|
|
24
|
-
}>, import("effect/Cause").YieldableError>;
|
|
25
|
-
export declare class WorkspacePlannerError extends WorkspacePlannerError_base {
|
|
26
|
-
}
|
|
27
|
-
export interface EnsureInput {
|
|
28
|
-
readonly executionId: Ids.ExecutionId;
|
|
29
|
-
readonly agent: Agent.Definition;
|
|
30
|
-
readonly toolDefinitions: ReadonlyArray<Tool.Definition>;
|
|
31
|
-
readonly request?: Workspace.WorkspaceRequest;
|
|
32
|
-
readonly now: number;
|
|
33
|
-
}
|
|
34
|
-
export interface WorkspacePlan {
|
|
35
|
-
readonly lease: Workspace.WorkspaceLeaseRecord;
|
|
36
|
-
readonly runtimeLayer: Layer.Layer<WorkspaceRuntimeService>;
|
|
37
|
-
}
|
|
38
|
-
export interface LifecycleInput {
|
|
39
|
-
readonly executionId: Ids.ExecutionId;
|
|
40
|
-
readonly now: number;
|
|
41
|
-
}
|
|
42
|
-
export interface FailureInput extends LifecycleInput {
|
|
43
|
-
readonly metadata?: Shared.Metadata;
|
|
44
|
-
}
|
|
45
|
-
export interface Interface {
|
|
46
|
-
readonly ensure: (input: EnsureInput) => Effect.Effect<WorkspacePlan | undefined, WorkspaceRuntimeMissing | WorkspaceLeaseMissingRef | WorkspacePlannerError | WorkspaceNotFound | WorkspaceUnavailable | WorkspaceProviderError>;
|
|
47
|
-
readonly suspend: (input: LifecycleInput) => Effect.Effect<Workspace.WorkspaceLeaseRecord | undefined, WorkspaceRuntimeMissing | WorkspaceLeaseMissingRef | WorkspacePlannerError | WorkspaceNotFound | WorkspaceCapabilityUnsupported | WorkspaceProviderError>;
|
|
48
|
-
readonly resume: (input: LifecycleInput) => Effect.Effect<WorkspacePlan | undefined, WorkspaceRuntimeMissing | WorkspaceLeaseMissingRef | WorkspacePlannerError | WorkspaceNotFound | WorkspaceUnavailable | WorkspaceProviderError>;
|
|
49
|
-
readonly attach: (input: LifecycleInput) => Effect.Effect<WorkspacePlan | undefined, WorkspaceRuntimeMissing | WorkspaceLeaseMissingRef | WorkspacePlannerError | WorkspaceNotFound | WorkspaceUnavailable | WorkspaceProviderError>;
|
|
50
|
-
readonly release: (input: LifecycleInput) => Effect.Effect<Workspace.WorkspaceLeaseRecord | undefined, WorkspaceRuntimeMissing | WorkspaceLeaseMissingRef | WorkspacePlannerError | WorkspaceProviderError>;
|
|
51
|
-
readonly fail: (input: FailureInput) => Effect.Effect<Workspace.WorkspaceLeaseRecord | undefined, WorkspacePlannerError>;
|
|
52
|
-
}
|
|
53
|
-
declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/workspace/workspace-planner-service/Service", Interface>;
|
|
54
|
-
export declare class Service extends Service_base {
|
|
55
|
-
}
|
|
56
|
-
export declare const layer: Layer.Layer<Service, never, WorkspaceLeaseRepository.Service | EventLogService>;
|
|
57
|
-
export declare const testLayer: (implementation: Interface) => Layer.Layer<Service, never, never>;
|
|
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
|
-
export declare const fail: (input: FailureInput) => Effect.Effect<Workspace.WorkspaceLeaseRecord | undefined, WorkspacePlannerError, Service>;
|
|
64
|
-
export {};
|