@relayfx/test 0.1.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.
- package/README.md +5 -0
- package/dist/index.js +18190 -0
- package/dist/types/runtime/address/address-book-service.d.ts +74 -0
- package/dist/types/runtime/address/address-resolution-service.d.ts +140 -0
- package/dist/types/runtime/agent/agent-loop-service.d.ts +85 -0
- package/dist/types/runtime/agent/agent-registry-service.d.ts +31 -0
- package/dist/types/runtime/agent/prompt-assembler-service.d.ts +64 -0
- package/dist/types/runtime/agent/relay-approvals.d.ts +2 -0
- package/dist/types/runtime/agent/relay-compaction.d.ts +23 -0
- package/dist/types/runtime/agent/relay-instructions.d.ts +7 -0
- package/dist/types/runtime/agent/relay-permissions.d.ts +25 -0
- package/dist/types/runtime/agent/relay-steering.d.ts +17 -0
- package/dist/types/runtime/agent/relay-tool-executor.d.ts +22 -0
- package/dist/types/runtime/agent/relay-tool-output.d.ts +7 -0
- package/dist/types/runtime/agent/sequence-allocator.d.ts +8 -0
- package/dist/types/runtime/child/child-run-service.d.ts +90 -0
- package/dist/types/runtime/child/parent-notifier-service.d.ts +40 -0
- package/dist/types/runtime/child/spawn-child-run-tool.d.ts +211 -0
- package/dist/types/runtime/cluster/execution-entity.d.ts +37 -0
- package/dist/types/runtime/content/artifact-store-service.d.ts +26 -0
- package/dist/types/runtime/content/blob-store-service.d.ts +54 -0
- package/dist/types/runtime/entity/entity-instance-service.d.ts +67 -0
- package/dist/types/runtime/entity/entity-registry-service.d.ts +35 -0
- package/dist/types/runtime/envelope/envelope-service.d.ts +56 -0
- package/dist/types/runtime/execution/event-log-service.d.ts +68 -0
- package/dist/types/runtime/execution/execution-service.d.ts +65 -0
- package/dist/types/runtime/execution/execution-watch-service.d.ts +32 -0
- package/dist/types/runtime/execution/session-stream-service.d.ts +33 -0
- package/dist/types/runtime/inbox/inbox-service.d.ts +76 -0
- package/dist/types/runtime/inbox/send-message-tool.d.ts +27 -0
- package/dist/types/runtime/inbox/wait-for-messages-tool.d.ts +34 -0
- package/dist/types/runtime/index.d.ts +51 -0
- package/dist/types/runtime/memory/memory-service.d.ts +22 -0
- package/dist/types/runtime/model/embedding-model-service.d.ts +68 -0
- package/dist/types/runtime/model/language-model-service.d.ts +34 -0
- package/dist/types/runtime/model/model-call-policy.d.ts +14 -0
- package/dist/types/runtime/observability/runtime-metrics.d.ts +19 -0
- package/dist/types/runtime/presence/presence-service.d.ts +30 -0
- package/dist/types/runtime/presence/presence-tool.d.ts +20 -0
- package/dist/types/runtime/runner/runner-runtime-service.d.ts +149 -0
- package/dist/types/runtime/schedule/scheduler-service.d.ts +34 -0
- package/dist/types/runtime/schema-registry/schema-registry-service.d.ts +27 -0
- package/dist/types/runtime/session/session-store-service.d.ts +14 -0
- package/dist/types/runtime/skill/skill-registry-service.d.ts +44 -0
- package/dist/types/runtime/state/execution-state-service.d.ts +57 -0
- package/dist/types/runtime/state/state-tools.d.ts +5 -0
- package/dist/types/runtime/tool/tool-input-schema-digest.d.ts +6 -0
- package/dist/types/runtime/tool/tool-runtime-service.d.ts +139 -0
- package/dist/types/runtime/tool/tool-transition-coordinator.d.ts +13 -0
- package/dist/types/runtime/topic/publish-to-topic-tool.d.ts +24 -0
- package/dist/types/runtime/topic/topic-service.d.ts +50 -0
- package/dist/types/runtime/wait/wait-service.d.ts +81 -0
- package/dist/types/runtime/wait/wait-signal.d.ts +16 -0
- package/dist/types/runtime/workflow/activity-version-registry.d.ts +89 -0
- package/dist/types/runtime/workflow/execution-workflow.d.ts +475 -0
- package/dist/types/runtime/workspace/workspace-planner-service.d.ts +64 -0
- package/dist/types/runtime/workspace/workspace-provider-service.d.ts +108 -0
- package/dist/types/runtime/workspace/workspace-runtime-service.d.ts +21 -0
- package/dist/types/schema/address-schema.d.ts +77 -0
- package/dist/types/schema/agent-schema.d.ts +658 -0
- package/dist/types/schema/content-schema.d.ts +118 -0
- package/dist/types/schema/entity-schema.d.ts +40 -0
- package/dist/types/schema/envelope-schema.d.ts +180 -0
- package/dist/types/schema/execution-schema.d.ts +347 -0
- package/dist/types/schema/ids-schema.d.ts +94 -0
- package/dist/types/schema/inbox-schema.d.ts +81 -0
- package/dist/types/schema/index.d.ts +16 -0
- package/dist/types/schema/presence-schema.d.ts +28 -0
- package/dist/types/schema/schedule-schema.d.ts +79 -0
- package/dist/types/schema/shared-schema.d.ts +13 -0
- package/dist/types/schema/skill-schema.d.ts +260 -0
- package/dist/types/schema/state-schema.d.ts +35 -0
- package/dist/types/schema/tool-schema.d.ts +84 -0
- package/dist/types/schema/workspace-schema.d.ts +78 -0
- package/dist/types/test/captured-model.d.ts +13 -0
- package/dist/types/test/index.d.ts +6 -0
- package/dist/types/test/scripted-model.d.ts +39 -0
- package/dist/types/test/test-runtime.d.ts +9 -0
- package/dist/types/test/test-tools.d.ts +18 -0
- package/dist/types/test/wait-test-kit.d.ts +9 -0
- package/package.json +45 -0
|
@@ -0,0 +1,658 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
import { AgentId, SkillDefinitionId } from "./ids-schema";
|
|
3
|
+
import { Metadata, NonEmptyString } from "./shared-schema";
|
|
4
|
+
import { Permission } from "./tool-schema";
|
|
5
|
+
export declare const DefinitionRevision: Schema.Int;
|
|
6
|
+
export type DefinitionRevision = typeof DefinitionRevision.Type;
|
|
7
|
+
export declare const ModelSelection: Schema.Struct<{
|
|
8
|
+
readonly provider: Schema.String;
|
|
9
|
+
readonly model: Schema.String;
|
|
10
|
+
readonly registration_key: Schema.optionalKey<Schema.String>;
|
|
11
|
+
readonly request_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
12
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
13
|
+
}>;
|
|
14
|
+
export interface ModelSelection extends Schema.Schema.Type<typeof ModelSelection> {
|
|
15
|
+
}
|
|
16
|
+
export declare const ChildRunWorkspacePolicy: Schema.Struct<{
|
|
17
|
+
readonly mode: Schema.Literals<readonly ["share", "fork"]>;
|
|
18
|
+
readonly fallback: Schema.optionalKey<Schema.Literals<readonly ["fail", "fresh"]>>;
|
|
19
|
+
}>;
|
|
20
|
+
export interface ChildRunWorkspacePolicy extends Schema.Schema.Type<typeof ChildRunWorkspacePolicy> {
|
|
21
|
+
}
|
|
22
|
+
export declare const ChildRunPreset: Schema.Struct<{
|
|
23
|
+
readonly instructions: Schema.optionalKey<Schema.String>;
|
|
24
|
+
readonly model: Schema.optionalKey<Schema.Struct<{
|
|
25
|
+
readonly provider: Schema.String;
|
|
26
|
+
readonly model: Schema.String;
|
|
27
|
+
readonly registration_key: Schema.optionalKey<Schema.String>;
|
|
28
|
+
readonly request_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
|
+
}>>;
|
|
31
|
+
readonly tool_names: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
32
|
+
readonly permissions: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
33
|
+
readonly workspace_policy: Schema.optionalKey<Schema.Struct<{
|
|
34
|
+
readonly mode: Schema.Literals<readonly ["share", "fork"]>;
|
|
35
|
+
readonly fallback: Schema.optionalKey<Schema.Literals<readonly ["fail", "fresh"]>>;
|
|
36
|
+
}>>;
|
|
37
|
+
readonly output_schema_ref: Schema.optionalKey<Schema.String>;
|
|
38
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
39
|
+
}>;
|
|
40
|
+
export interface ChildRunPreset extends Schema.Schema.Type<typeof ChildRunPreset> {
|
|
41
|
+
}
|
|
42
|
+
export declare const HandoffTarget: Schema.Struct<{
|
|
43
|
+
readonly name: Schema.String;
|
|
44
|
+
readonly preset_name: Schema.String;
|
|
45
|
+
}>;
|
|
46
|
+
export interface HandoffTarget extends Schema.Schema.Type<typeof HandoffTarget> {
|
|
47
|
+
}
|
|
48
|
+
export declare const PermissionLevel: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
49
|
+
export type PermissionLevel = typeof PermissionLevel.Type;
|
|
50
|
+
export declare const PermissionRule: Schema.Struct<{
|
|
51
|
+
readonly pattern: Schema.String;
|
|
52
|
+
readonly level: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
53
|
+
readonly reason: Schema.optionalKey<Schema.String>;
|
|
54
|
+
}>;
|
|
55
|
+
export interface PermissionRule extends Schema.Schema.Type<typeof PermissionRule> {
|
|
56
|
+
}
|
|
57
|
+
export declare const PermissionRuleset: Schema.Struct<{
|
|
58
|
+
readonly rules: Schema.$Array<Schema.Struct<{
|
|
59
|
+
readonly pattern: Schema.String;
|
|
60
|
+
readonly level: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
61
|
+
readonly reason: Schema.optionalKey<Schema.String>;
|
|
62
|
+
}>>;
|
|
63
|
+
readonly fallback: Schema.optionalKey<Schema.Literals<readonly ["allow", "deny", "ask"]>>;
|
|
64
|
+
}>;
|
|
65
|
+
export interface PermissionRuleset extends Schema.Schema.Type<typeof PermissionRuleset> {
|
|
66
|
+
}
|
|
67
|
+
export declare const ToolInputSchemaDigests: Schema.$Record<Schema.String, Schema.String>;
|
|
68
|
+
export interface ToolInputSchemaDigests extends Schema.Schema.Type<typeof ToolInputSchemaDigests> {
|
|
69
|
+
}
|
|
70
|
+
export interface RecursTurnPolicySnapshot {
|
|
71
|
+
readonly kind: "recurs";
|
|
72
|
+
readonly count: number;
|
|
73
|
+
}
|
|
74
|
+
export interface UntilToolCallTurnPolicySnapshot {
|
|
75
|
+
readonly kind: "until-tool-call";
|
|
76
|
+
readonly name: string;
|
|
77
|
+
}
|
|
78
|
+
export interface BothTurnPolicySnapshot {
|
|
79
|
+
readonly kind: "both";
|
|
80
|
+
readonly first: TurnPolicySnapshot;
|
|
81
|
+
readonly second: TurnPolicySnapshot;
|
|
82
|
+
}
|
|
83
|
+
export type TurnPolicySnapshot = RecursTurnPolicySnapshot | UntilToolCallTurnPolicySnapshot | BothTurnPolicySnapshot;
|
|
84
|
+
export declare const maxTurnPolicySnapshotDepth = 16;
|
|
85
|
+
export declare const maxTurnPolicySnapshotNodes = 64;
|
|
86
|
+
export declare const TurnPolicySnapshot: Schema.Codec<TurnPolicySnapshot>;
|
|
87
|
+
export declare const defaultMaxToolTurns = 8;
|
|
88
|
+
export declare const defaultMaxWaitTurns = 8;
|
|
89
|
+
declare const DefinitionSchema: Schema.Struct<{
|
|
90
|
+
readonly name: Schema.String;
|
|
91
|
+
readonly instructions: Schema.optionalKey<Schema.String>;
|
|
92
|
+
readonly model: Schema.Struct<{
|
|
93
|
+
readonly provider: Schema.String;
|
|
94
|
+
readonly model: Schema.String;
|
|
95
|
+
readonly registration_key: Schema.optionalKey<Schema.String>;
|
|
96
|
+
readonly request_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
97
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
98
|
+
}>;
|
|
99
|
+
readonly tool_names: Schema.$Array<Schema.String>;
|
|
100
|
+
readonly permissions: Schema.$Array<Schema.Struct<{
|
|
101
|
+
readonly name: Schema.String;
|
|
102
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
103
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
104
|
+
}>>;
|
|
105
|
+
readonly skill_definition_ids: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "Relay.SkillDefinitionId"> & {
|
|
106
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SkillDefinitionId">;
|
|
107
|
+
}>>;
|
|
108
|
+
readonly permission_rules: Schema.optionalKey<Schema.Struct<{
|
|
109
|
+
readonly rules: Schema.$Array<Schema.Struct<{
|
|
110
|
+
readonly pattern: Schema.String;
|
|
111
|
+
readonly level: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
112
|
+
readonly reason: Schema.optionalKey<Schema.String>;
|
|
113
|
+
}>>;
|
|
114
|
+
readonly fallback: Schema.optionalKey<Schema.Literals<readonly ["allow", "deny", "ask"]>>;
|
|
115
|
+
}>>;
|
|
116
|
+
readonly turn_policy: Schema.optionalKey<Schema.Codec<TurnPolicySnapshot, TurnPolicySnapshot, never, never>>;
|
|
117
|
+
readonly max_tool_turns: Schema.optionalKey<Schema.Int>;
|
|
118
|
+
readonly max_wait_turns: Schema.optionalKey<Schema.Int>;
|
|
119
|
+
readonly token_budget: Schema.optionalKey<Schema.Int>;
|
|
120
|
+
readonly child_run_presets: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
|
|
121
|
+
readonly instructions: Schema.optionalKey<Schema.String>;
|
|
122
|
+
readonly model: Schema.optionalKey<Schema.Struct<{
|
|
123
|
+
readonly provider: Schema.String;
|
|
124
|
+
readonly model: Schema.String;
|
|
125
|
+
readonly registration_key: Schema.optionalKey<Schema.String>;
|
|
126
|
+
readonly request_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
127
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
128
|
+
}>>;
|
|
129
|
+
readonly tool_names: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
130
|
+
readonly permissions: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
131
|
+
readonly workspace_policy: Schema.optionalKey<Schema.Struct<{
|
|
132
|
+
readonly mode: Schema.Literals<readonly ["share", "fork"]>;
|
|
133
|
+
readonly fallback: Schema.optionalKey<Schema.Literals<readonly ["fail", "fresh"]>>;
|
|
134
|
+
}>>;
|
|
135
|
+
readonly output_schema_ref: Schema.optionalKey<Schema.String>;
|
|
136
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
137
|
+
}>>>;
|
|
138
|
+
readonly handoff_targets: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
139
|
+
readonly name: Schema.String;
|
|
140
|
+
readonly preset_name: Schema.String;
|
|
141
|
+
}>>>;
|
|
142
|
+
readonly output_schema_ref: Schema.optionalKey<Schema.String>;
|
|
143
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
144
|
+
}>;
|
|
145
|
+
export interface Definition extends Schema.Schema.Type<typeof DefinitionSchema> {
|
|
146
|
+
}
|
|
147
|
+
export declare const Definition: Schema.Codec<Definition, Schema.Codec.Encoded<typeof DefinitionSchema>>;
|
|
148
|
+
export type ToolRef = {
|
|
149
|
+
readonly name: string;
|
|
150
|
+
} | ({
|
|
151
|
+
readonly name: string;
|
|
152
|
+
} & Readonly<Record<string, unknown>>);
|
|
153
|
+
export interface DefineInput {
|
|
154
|
+
readonly id: AgentId;
|
|
155
|
+
readonly name: NonEmptyString;
|
|
156
|
+
readonly instructions?: string;
|
|
157
|
+
readonly model: ModelSelection;
|
|
158
|
+
readonly tools?: ReadonlyArray<ToolRef>;
|
|
159
|
+
readonly permissions: ReadonlyArray<Permission>;
|
|
160
|
+
readonly skill_definition_ids?: ReadonlyArray<SkillDefinitionId>;
|
|
161
|
+
readonly permission_rules?: PermissionRuleset;
|
|
162
|
+
readonly turn_policy?: TurnPolicySnapshot;
|
|
163
|
+
readonly max_tool_turns?: number;
|
|
164
|
+
readonly max_wait_turns?: number;
|
|
165
|
+
readonly token_budget?: number;
|
|
166
|
+
readonly child_run_presets?: Readonly<Record<string, ChildRunPreset>>;
|
|
167
|
+
readonly handoff_targets?: ReadonlyArray<HandoffTarget>;
|
|
168
|
+
readonly output_schema_ref?: string;
|
|
169
|
+
readonly metadata?: Metadata;
|
|
170
|
+
}
|
|
171
|
+
export declare const define: (input: DefineInput) => RegisterDefinitionPayload;
|
|
172
|
+
export declare const DefinitionRecord: Schema.Struct<{
|
|
173
|
+
readonly id: Schema.brand<Schema.String, "Relay.AgentId"> & {
|
|
174
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AgentId">;
|
|
175
|
+
};
|
|
176
|
+
readonly current_revision: Schema.Int;
|
|
177
|
+
readonly definition: Schema.Codec<Definition, {
|
|
178
|
+
readonly name: string;
|
|
179
|
+
readonly permissions: readonly {
|
|
180
|
+
readonly name: string;
|
|
181
|
+
readonly value: Schema.Json;
|
|
182
|
+
readonly metadata?: {
|
|
183
|
+
readonly [x: string]: Schema.Json;
|
|
184
|
+
};
|
|
185
|
+
}[];
|
|
186
|
+
readonly model: {
|
|
187
|
+
readonly provider: string;
|
|
188
|
+
readonly model: string;
|
|
189
|
+
readonly metadata?: {
|
|
190
|
+
readonly [x: string]: Schema.Json;
|
|
191
|
+
};
|
|
192
|
+
readonly registration_key?: string;
|
|
193
|
+
readonly request_options?: {
|
|
194
|
+
readonly [x: string]: Schema.Json;
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
readonly tool_names: readonly string[];
|
|
198
|
+
readonly metadata?: {
|
|
199
|
+
readonly [x: string]: Schema.Json;
|
|
200
|
+
};
|
|
201
|
+
readonly instructions?: string;
|
|
202
|
+
readonly output_schema_ref?: string;
|
|
203
|
+
readonly skill_definition_ids?: readonly string[];
|
|
204
|
+
readonly permission_rules?: {
|
|
205
|
+
readonly rules: readonly {
|
|
206
|
+
readonly pattern: string;
|
|
207
|
+
readonly level: "allow" | "deny" | "ask";
|
|
208
|
+
readonly reason?: string;
|
|
209
|
+
}[];
|
|
210
|
+
readonly fallback?: "allow" | "deny" | "ask";
|
|
211
|
+
};
|
|
212
|
+
readonly turn_policy?: TurnPolicySnapshot;
|
|
213
|
+
readonly max_tool_turns?: number;
|
|
214
|
+
readonly max_wait_turns?: number;
|
|
215
|
+
readonly token_budget?: number;
|
|
216
|
+
readonly child_run_presets?: {
|
|
217
|
+
readonly [x: string]: {
|
|
218
|
+
readonly metadata?: {
|
|
219
|
+
readonly [x: string]: Schema.Json;
|
|
220
|
+
};
|
|
221
|
+
readonly permissions?: readonly string[];
|
|
222
|
+
readonly model?: {
|
|
223
|
+
readonly provider: string;
|
|
224
|
+
readonly model: string;
|
|
225
|
+
readonly metadata?: {
|
|
226
|
+
readonly [x: string]: Schema.Json;
|
|
227
|
+
};
|
|
228
|
+
readonly registration_key?: string;
|
|
229
|
+
readonly request_options?: {
|
|
230
|
+
readonly [x: string]: Schema.Json;
|
|
231
|
+
};
|
|
232
|
+
};
|
|
233
|
+
readonly instructions?: string;
|
|
234
|
+
readonly tool_names?: readonly string[];
|
|
235
|
+
readonly workspace_policy?: {
|
|
236
|
+
readonly mode: "share" | "fork";
|
|
237
|
+
readonly fallback?: "fail" | "fresh";
|
|
238
|
+
};
|
|
239
|
+
readonly output_schema_ref?: string;
|
|
240
|
+
};
|
|
241
|
+
};
|
|
242
|
+
readonly handoff_targets?: readonly Schema.Struct.ReadonlySide<{
|
|
243
|
+
readonly name: Schema.String;
|
|
244
|
+
readonly preset_name: Schema.String;
|
|
245
|
+
}, "Encoded">[];
|
|
246
|
+
}, never, never>;
|
|
247
|
+
readonly tool_input_schema_digests: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
248
|
+
readonly created_at: Schema.Int;
|
|
249
|
+
readonly updated_at: Schema.Int;
|
|
250
|
+
}>;
|
|
251
|
+
export interface DefinitionRecord extends Schema.Schema.Type<typeof DefinitionRecord> {
|
|
252
|
+
}
|
|
253
|
+
export declare const DefinitionRevisionRecord: Schema.Struct<{
|
|
254
|
+
readonly id: Schema.brand<Schema.String, "Relay.AgentId"> & {
|
|
255
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AgentId">;
|
|
256
|
+
};
|
|
257
|
+
readonly revision: Schema.Int;
|
|
258
|
+
readonly definition: Schema.Codec<Definition, {
|
|
259
|
+
readonly name: string;
|
|
260
|
+
readonly permissions: readonly {
|
|
261
|
+
readonly name: string;
|
|
262
|
+
readonly value: Schema.Json;
|
|
263
|
+
readonly metadata?: {
|
|
264
|
+
readonly [x: string]: Schema.Json;
|
|
265
|
+
};
|
|
266
|
+
}[];
|
|
267
|
+
readonly model: {
|
|
268
|
+
readonly provider: string;
|
|
269
|
+
readonly model: string;
|
|
270
|
+
readonly metadata?: {
|
|
271
|
+
readonly [x: string]: Schema.Json;
|
|
272
|
+
};
|
|
273
|
+
readonly registration_key?: string;
|
|
274
|
+
readonly request_options?: {
|
|
275
|
+
readonly [x: string]: Schema.Json;
|
|
276
|
+
};
|
|
277
|
+
};
|
|
278
|
+
readonly tool_names: readonly string[];
|
|
279
|
+
readonly metadata?: {
|
|
280
|
+
readonly [x: string]: Schema.Json;
|
|
281
|
+
};
|
|
282
|
+
readonly instructions?: string;
|
|
283
|
+
readonly output_schema_ref?: string;
|
|
284
|
+
readonly skill_definition_ids?: readonly string[];
|
|
285
|
+
readonly permission_rules?: {
|
|
286
|
+
readonly rules: readonly {
|
|
287
|
+
readonly pattern: string;
|
|
288
|
+
readonly level: "allow" | "deny" | "ask";
|
|
289
|
+
readonly reason?: string;
|
|
290
|
+
}[];
|
|
291
|
+
readonly fallback?: "allow" | "deny" | "ask";
|
|
292
|
+
};
|
|
293
|
+
readonly turn_policy?: TurnPolicySnapshot;
|
|
294
|
+
readonly max_tool_turns?: number;
|
|
295
|
+
readonly max_wait_turns?: number;
|
|
296
|
+
readonly token_budget?: number;
|
|
297
|
+
readonly child_run_presets?: {
|
|
298
|
+
readonly [x: string]: {
|
|
299
|
+
readonly metadata?: {
|
|
300
|
+
readonly [x: string]: Schema.Json;
|
|
301
|
+
};
|
|
302
|
+
readonly permissions?: readonly string[];
|
|
303
|
+
readonly model?: {
|
|
304
|
+
readonly provider: string;
|
|
305
|
+
readonly model: string;
|
|
306
|
+
readonly metadata?: {
|
|
307
|
+
readonly [x: string]: Schema.Json;
|
|
308
|
+
};
|
|
309
|
+
readonly registration_key?: string;
|
|
310
|
+
readonly request_options?: {
|
|
311
|
+
readonly [x: string]: Schema.Json;
|
|
312
|
+
};
|
|
313
|
+
};
|
|
314
|
+
readonly instructions?: string;
|
|
315
|
+
readonly tool_names?: readonly string[];
|
|
316
|
+
readonly workspace_policy?: {
|
|
317
|
+
readonly mode: "share" | "fork";
|
|
318
|
+
readonly fallback?: "fail" | "fresh";
|
|
319
|
+
};
|
|
320
|
+
readonly output_schema_ref?: string;
|
|
321
|
+
};
|
|
322
|
+
};
|
|
323
|
+
readonly handoff_targets?: readonly Schema.Struct.ReadonlySide<{
|
|
324
|
+
readonly name: Schema.String;
|
|
325
|
+
readonly preset_name: Schema.String;
|
|
326
|
+
}, "Encoded">[];
|
|
327
|
+
}, never, never>;
|
|
328
|
+
readonly tool_input_schema_digests: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
329
|
+
readonly created_at: Schema.Int;
|
|
330
|
+
}>;
|
|
331
|
+
export interface DefinitionRevisionRecord extends Schema.Schema.Type<typeof DefinitionRevisionRecord> {
|
|
332
|
+
}
|
|
333
|
+
export declare const RegisterDefinitionPayload: Schema.Struct<{
|
|
334
|
+
readonly id: Schema.brand<Schema.String, "Relay.AgentId"> & {
|
|
335
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AgentId">;
|
|
336
|
+
};
|
|
337
|
+
readonly definition: Schema.Codec<Definition, {
|
|
338
|
+
readonly name: string;
|
|
339
|
+
readonly permissions: readonly {
|
|
340
|
+
readonly name: string;
|
|
341
|
+
readonly value: Schema.Json;
|
|
342
|
+
readonly metadata?: {
|
|
343
|
+
readonly [x: string]: Schema.Json;
|
|
344
|
+
};
|
|
345
|
+
}[];
|
|
346
|
+
readonly model: {
|
|
347
|
+
readonly provider: string;
|
|
348
|
+
readonly model: string;
|
|
349
|
+
readonly metadata?: {
|
|
350
|
+
readonly [x: string]: Schema.Json;
|
|
351
|
+
};
|
|
352
|
+
readonly registration_key?: string;
|
|
353
|
+
readonly request_options?: {
|
|
354
|
+
readonly [x: string]: Schema.Json;
|
|
355
|
+
};
|
|
356
|
+
};
|
|
357
|
+
readonly tool_names: readonly string[];
|
|
358
|
+
readonly metadata?: {
|
|
359
|
+
readonly [x: string]: Schema.Json;
|
|
360
|
+
};
|
|
361
|
+
readonly instructions?: string;
|
|
362
|
+
readonly output_schema_ref?: string;
|
|
363
|
+
readonly skill_definition_ids?: readonly string[];
|
|
364
|
+
readonly permission_rules?: {
|
|
365
|
+
readonly rules: readonly {
|
|
366
|
+
readonly pattern: string;
|
|
367
|
+
readonly level: "allow" | "deny" | "ask";
|
|
368
|
+
readonly reason?: string;
|
|
369
|
+
}[];
|
|
370
|
+
readonly fallback?: "allow" | "deny" | "ask";
|
|
371
|
+
};
|
|
372
|
+
readonly turn_policy?: TurnPolicySnapshot;
|
|
373
|
+
readonly max_tool_turns?: number;
|
|
374
|
+
readonly max_wait_turns?: number;
|
|
375
|
+
readonly token_budget?: number;
|
|
376
|
+
readonly child_run_presets?: {
|
|
377
|
+
readonly [x: string]: {
|
|
378
|
+
readonly metadata?: {
|
|
379
|
+
readonly [x: string]: Schema.Json;
|
|
380
|
+
};
|
|
381
|
+
readonly permissions?: readonly string[];
|
|
382
|
+
readonly model?: {
|
|
383
|
+
readonly provider: string;
|
|
384
|
+
readonly model: string;
|
|
385
|
+
readonly metadata?: {
|
|
386
|
+
readonly [x: string]: Schema.Json;
|
|
387
|
+
};
|
|
388
|
+
readonly registration_key?: string;
|
|
389
|
+
readonly request_options?: {
|
|
390
|
+
readonly [x: string]: Schema.Json;
|
|
391
|
+
};
|
|
392
|
+
};
|
|
393
|
+
readonly instructions?: string;
|
|
394
|
+
readonly tool_names?: readonly string[];
|
|
395
|
+
readonly workspace_policy?: {
|
|
396
|
+
readonly mode: "share" | "fork";
|
|
397
|
+
readonly fallback?: "fail" | "fresh";
|
|
398
|
+
};
|
|
399
|
+
readonly output_schema_ref?: string;
|
|
400
|
+
};
|
|
401
|
+
};
|
|
402
|
+
readonly handoff_targets?: readonly Schema.Struct.ReadonlySide<{
|
|
403
|
+
readonly name: Schema.String;
|
|
404
|
+
readonly preset_name: Schema.String;
|
|
405
|
+
}, "Encoded">[];
|
|
406
|
+
}, never, never>;
|
|
407
|
+
}>;
|
|
408
|
+
export interface RegisterDefinitionPayload extends Schema.Schema.Type<typeof RegisterDefinitionPayload> {
|
|
409
|
+
}
|
|
410
|
+
export declare const DefinitionRegistered: Schema.Struct<{
|
|
411
|
+
readonly record: Schema.Struct<{
|
|
412
|
+
readonly id: Schema.brand<Schema.String, "Relay.AgentId"> & {
|
|
413
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AgentId">;
|
|
414
|
+
};
|
|
415
|
+
readonly current_revision: Schema.Int;
|
|
416
|
+
readonly definition: Schema.Codec<Definition, {
|
|
417
|
+
readonly name: string;
|
|
418
|
+
readonly permissions: readonly {
|
|
419
|
+
readonly name: string;
|
|
420
|
+
readonly value: Schema.Json;
|
|
421
|
+
readonly metadata?: {
|
|
422
|
+
readonly [x: string]: Schema.Json;
|
|
423
|
+
};
|
|
424
|
+
}[];
|
|
425
|
+
readonly model: {
|
|
426
|
+
readonly provider: string;
|
|
427
|
+
readonly model: string;
|
|
428
|
+
readonly metadata?: {
|
|
429
|
+
readonly [x: string]: Schema.Json;
|
|
430
|
+
};
|
|
431
|
+
readonly registration_key?: string;
|
|
432
|
+
readonly request_options?: {
|
|
433
|
+
readonly [x: string]: Schema.Json;
|
|
434
|
+
};
|
|
435
|
+
};
|
|
436
|
+
readonly tool_names: readonly string[];
|
|
437
|
+
readonly metadata?: {
|
|
438
|
+
readonly [x: string]: Schema.Json;
|
|
439
|
+
};
|
|
440
|
+
readonly instructions?: string;
|
|
441
|
+
readonly output_schema_ref?: string;
|
|
442
|
+
readonly skill_definition_ids?: readonly string[];
|
|
443
|
+
readonly permission_rules?: {
|
|
444
|
+
readonly rules: readonly {
|
|
445
|
+
readonly pattern: string;
|
|
446
|
+
readonly level: "allow" | "deny" | "ask";
|
|
447
|
+
readonly reason?: string;
|
|
448
|
+
}[];
|
|
449
|
+
readonly fallback?: "allow" | "deny" | "ask";
|
|
450
|
+
};
|
|
451
|
+
readonly turn_policy?: TurnPolicySnapshot;
|
|
452
|
+
readonly max_tool_turns?: number;
|
|
453
|
+
readonly max_wait_turns?: number;
|
|
454
|
+
readonly token_budget?: number;
|
|
455
|
+
readonly child_run_presets?: {
|
|
456
|
+
readonly [x: string]: {
|
|
457
|
+
readonly metadata?: {
|
|
458
|
+
readonly [x: string]: Schema.Json;
|
|
459
|
+
};
|
|
460
|
+
readonly permissions?: readonly string[];
|
|
461
|
+
readonly model?: {
|
|
462
|
+
readonly provider: string;
|
|
463
|
+
readonly model: string;
|
|
464
|
+
readonly metadata?: {
|
|
465
|
+
readonly [x: string]: Schema.Json;
|
|
466
|
+
};
|
|
467
|
+
readonly registration_key?: string;
|
|
468
|
+
readonly request_options?: {
|
|
469
|
+
readonly [x: string]: Schema.Json;
|
|
470
|
+
};
|
|
471
|
+
};
|
|
472
|
+
readonly instructions?: string;
|
|
473
|
+
readonly tool_names?: readonly string[];
|
|
474
|
+
readonly workspace_policy?: {
|
|
475
|
+
readonly mode: "share" | "fork";
|
|
476
|
+
readonly fallback?: "fail" | "fresh";
|
|
477
|
+
};
|
|
478
|
+
readonly output_schema_ref?: string;
|
|
479
|
+
};
|
|
480
|
+
};
|
|
481
|
+
readonly handoff_targets?: readonly Schema.Struct.ReadonlySide<{
|
|
482
|
+
readonly name: Schema.String;
|
|
483
|
+
readonly preset_name: Schema.String;
|
|
484
|
+
}, "Encoded">[];
|
|
485
|
+
}, never, never>;
|
|
486
|
+
readonly tool_input_schema_digests: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
487
|
+
readonly created_at: Schema.Int;
|
|
488
|
+
readonly updated_at: Schema.Int;
|
|
489
|
+
}>;
|
|
490
|
+
}>;
|
|
491
|
+
export interface DefinitionRegistered extends Schema.Schema.Type<typeof DefinitionRegistered> {
|
|
492
|
+
}
|
|
493
|
+
export declare const DefinitionList: Schema.Struct<{
|
|
494
|
+
readonly records: Schema.$Array<Schema.Struct<{
|
|
495
|
+
readonly id: Schema.brand<Schema.String, "Relay.AgentId"> & {
|
|
496
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AgentId">;
|
|
497
|
+
};
|
|
498
|
+
readonly current_revision: Schema.Int;
|
|
499
|
+
readonly definition: Schema.Codec<Definition, {
|
|
500
|
+
readonly name: string;
|
|
501
|
+
readonly permissions: readonly {
|
|
502
|
+
readonly name: string;
|
|
503
|
+
readonly value: Schema.Json;
|
|
504
|
+
readonly metadata?: {
|
|
505
|
+
readonly [x: string]: Schema.Json;
|
|
506
|
+
};
|
|
507
|
+
}[];
|
|
508
|
+
readonly model: {
|
|
509
|
+
readonly provider: string;
|
|
510
|
+
readonly model: string;
|
|
511
|
+
readonly metadata?: {
|
|
512
|
+
readonly [x: string]: Schema.Json;
|
|
513
|
+
};
|
|
514
|
+
readonly registration_key?: string;
|
|
515
|
+
readonly request_options?: {
|
|
516
|
+
readonly [x: string]: Schema.Json;
|
|
517
|
+
};
|
|
518
|
+
};
|
|
519
|
+
readonly tool_names: readonly string[];
|
|
520
|
+
readonly metadata?: {
|
|
521
|
+
readonly [x: string]: Schema.Json;
|
|
522
|
+
};
|
|
523
|
+
readonly instructions?: string;
|
|
524
|
+
readonly output_schema_ref?: string;
|
|
525
|
+
readonly skill_definition_ids?: readonly string[];
|
|
526
|
+
readonly permission_rules?: {
|
|
527
|
+
readonly rules: readonly {
|
|
528
|
+
readonly pattern: string;
|
|
529
|
+
readonly level: "allow" | "deny" | "ask";
|
|
530
|
+
readonly reason?: string;
|
|
531
|
+
}[];
|
|
532
|
+
readonly fallback?: "allow" | "deny" | "ask";
|
|
533
|
+
};
|
|
534
|
+
readonly turn_policy?: TurnPolicySnapshot;
|
|
535
|
+
readonly max_tool_turns?: number;
|
|
536
|
+
readonly max_wait_turns?: number;
|
|
537
|
+
readonly token_budget?: number;
|
|
538
|
+
readonly child_run_presets?: {
|
|
539
|
+
readonly [x: string]: {
|
|
540
|
+
readonly metadata?: {
|
|
541
|
+
readonly [x: string]: Schema.Json;
|
|
542
|
+
};
|
|
543
|
+
readonly permissions?: readonly string[];
|
|
544
|
+
readonly model?: {
|
|
545
|
+
readonly provider: string;
|
|
546
|
+
readonly model: string;
|
|
547
|
+
readonly metadata?: {
|
|
548
|
+
readonly [x: string]: Schema.Json;
|
|
549
|
+
};
|
|
550
|
+
readonly registration_key?: string;
|
|
551
|
+
readonly request_options?: {
|
|
552
|
+
readonly [x: string]: Schema.Json;
|
|
553
|
+
};
|
|
554
|
+
};
|
|
555
|
+
readonly instructions?: string;
|
|
556
|
+
readonly tool_names?: readonly string[];
|
|
557
|
+
readonly workspace_policy?: {
|
|
558
|
+
readonly mode: "share" | "fork";
|
|
559
|
+
readonly fallback?: "fail" | "fresh";
|
|
560
|
+
};
|
|
561
|
+
readonly output_schema_ref?: string;
|
|
562
|
+
};
|
|
563
|
+
};
|
|
564
|
+
readonly handoff_targets?: readonly Schema.Struct.ReadonlySide<{
|
|
565
|
+
readonly name: Schema.String;
|
|
566
|
+
readonly preset_name: Schema.String;
|
|
567
|
+
}, "Encoded">[];
|
|
568
|
+
}, never, never>;
|
|
569
|
+
readonly tool_input_schema_digests: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
570
|
+
readonly created_at: Schema.Int;
|
|
571
|
+
readonly updated_at: Schema.Int;
|
|
572
|
+
}>>;
|
|
573
|
+
}>;
|
|
574
|
+
export interface DefinitionList extends Schema.Schema.Type<typeof DefinitionList> {
|
|
575
|
+
}
|
|
576
|
+
export declare const DefinitionRevisionList: Schema.Struct<{
|
|
577
|
+
readonly records: Schema.$Array<Schema.Struct<{
|
|
578
|
+
readonly id: Schema.brand<Schema.String, "Relay.AgentId"> & {
|
|
579
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AgentId">;
|
|
580
|
+
};
|
|
581
|
+
readonly revision: Schema.Int;
|
|
582
|
+
readonly definition: Schema.Codec<Definition, {
|
|
583
|
+
readonly name: string;
|
|
584
|
+
readonly permissions: readonly {
|
|
585
|
+
readonly name: string;
|
|
586
|
+
readonly value: Schema.Json;
|
|
587
|
+
readonly metadata?: {
|
|
588
|
+
readonly [x: string]: Schema.Json;
|
|
589
|
+
};
|
|
590
|
+
}[];
|
|
591
|
+
readonly model: {
|
|
592
|
+
readonly provider: string;
|
|
593
|
+
readonly model: string;
|
|
594
|
+
readonly metadata?: {
|
|
595
|
+
readonly [x: string]: Schema.Json;
|
|
596
|
+
};
|
|
597
|
+
readonly registration_key?: string;
|
|
598
|
+
readonly request_options?: {
|
|
599
|
+
readonly [x: string]: Schema.Json;
|
|
600
|
+
};
|
|
601
|
+
};
|
|
602
|
+
readonly tool_names: readonly string[];
|
|
603
|
+
readonly metadata?: {
|
|
604
|
+
readonly [x: string]: Schema.Json;
|
|
605
|
+
};
|
|
606
|
+
readonly instructions?: string;
|
|
607
|
+
readonly output_schema_ref?: string;
|
|
608
|
+
readonly skill_definition_ids?: readonly string[];
|
|
609
|
+
readonly permission_rules?: {
|
|
610
|
+
readonly rules: readonly {
|
|
611
|
+
readonly pattern: string;
|
|
612
|
+
readonly level: "allow" | "deny" | "ask";
|
|
613
|
+
readonly reason?: string;
|
|
614
|
+
}[];
|
|
615
|
+
readonly fallback?: "allow" | "deny" | "ask";
|
|
616
|
+
};
|
|
617
|
+
readonly turn_policy?: TurnPolicySnapshot;
|
|
618
|
+
readonly max_tool_turns?: number;
|
|
619
|
+
readonly max_wait_turns?: number;
|
|
620
|
+
readonly token_budget?: number;
|
|
621
|
+
readonly child_run_presets?: {
|
|
622
|
+
readonly [x: string]: {
|
|
623
|
+
readonly metadata?: {
|
|
624
|
+
readonly [x: string]: Schema.Json;
|
|
625
|
+
};
|
|
626
|
+
readonly permissions?: readonly string[];
|
|
627
|
+
readonly model?: {
|
|
628
|
+
readonly provider: string;
|
|
629
|
+
readonly model: string;
|
|
630
|
+
readonly metadata?: {
|
|
631
|
+
readonly [x: string]: Schema.Json;
|
|
632
|
+
};
|
|
633
|
+
readonly registration_key?: string;
|
|
634
|
+
readonly request_options?: {
|
|
635
|
+
readonly [x: string]: Schema.Json;
|
|
636
|
+
};
|
|
637
|
+
};
|
|
638
|
+
readonly instructions?: string;
|
|
639
|
+
readonly tool_names?: readonly string[];
|
|
640
|
+
readonly workspace_policy?: {
|
|
641
|
+
readonly mode: "share" | "fork";
|
|
642
|
+
readonly fallback?: "fail" | "fresh";
|
|
643
|
+
};
|
|
644
|
+
readonly output_schema_ref?: string;
|
|
645
|
+
};
|
|
646
|
+
};
|
|
647
|
+
readonly handoff_targets?: readonly Schema.Struct.ReadonlySide<{
|
|
648
|
+
readonly name: Schema.String;
|
|
649
|
+
readonly preset_name: Schema.String;
|
|
650
|
+
}, "Encoded">[];
|
|
651
|
+
}, never, never>;
|
|
652
|
+
readonly tool_input_schema_digests: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
653
|
+
readonly created_at: Schema.Int;
|
|
654
|
+
}>>;
|
|
655
|
+
}>;
|
|
656
|
+
export interface DefinitionRevisionList extends Schema.Schema.Type<typeof DefinitionRevisionList> {
|
|
657
|
+
}
|
|
658
|
+
export {};
|