@codeworksh/harness 0.0.1-dev.20260925163524 → 0.1.0-dev.20261007133219
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 +7 -11
- package/effect.d.mts +2213 -826
- package/effect.mjs +1104 -550
- package/effect.mjs.map +1 -1
- package/package.json +5 -5
package/effect.d.mts
CHANGED
|
@@ -1,31 +1,88 @@
|
|
|
1
1
|
import "./index-DjPzwUHF.mjs";
|
|
2
2
|
import "./index-DIP2u0Pr.mjs";
|
|
3
3
|
import { Cause, Config, Context, Duration, Effect, JsonSchema, Layer, Option, Ref, Schema, Stream } from "effect";
|
|
4
|
+
import { Event, Message, Model, Protocol } from "@codeworksh/aikit";
|
|
4
5
|
import { MessageID as ID, SessionID as ID$1 } from "@codeworksh/plugin/ids";
|
|
5
|
-
import { SqlClient, SqlClient as SqlClient$1, SqlSchema as SqlSchema$1 } from "effect/
|
|
6
|
+
import { SqlClient, SqlClient as SqlClient$1, SqlSchema as SqlSchema$1 } from "effect/sql";
|
|
6
7
|
import { SqliteClient } from "@effect/sql-sqlite-node";
|
|
7
|
-
import { Model } from "effect/
|
|
8
|
-
import { Event, Message, Model as Model$1, Protocol } from "@codeworksh/aikit";
|
|
8
|
+
import { Model as Model$1 } from "effect/schema";
|
|
9
9
|
import { SqliteProvider, create } from "@platformatic/vfs";
|
|
10
|
-
import { ChildProcessSpawner } from "effect/
|
|
10
|
+
import { ChildProcessSpawner } from "effect/process";
|
|
11
11
|
import "just-bash";
|
|
12
|
-
import { DirectoryNotFoundError, Error, Error as Error$1, Info as Info$5, Interface as Interface$9, NotDirectoryError,
|
|
12
|
+
import { DirectoryNotFoundError, Error, Error as Error$1, Info as Info$5, Interface as Interface$9, NotDirectoryError, Service, Service as Service$10 } from "@codeworksh/plugin/location";
|
|
13
|
+
import * as Section from "@codeworksh/plugin/plugin/section";
|
|
13
14
|
import { Config as Config$1, Events, PluginOptions, PluginRef, PluginRegistry, PromptResolver, SharedPluginContext } from "@codeworksh/plugin/plugin";
|
|
14
15
|
import * as AikitFailure from "@codeworksh/aikit/failure";
|
|
15
16
|
declare namespace schema_d_exports {
|
|
16
|
-
export { Delivery, Prompt, schema_d_exports as PromptSchema };
|
|
17
|
+
export { Delivery, IMAGE_MAX_BASE64, IMAGE_TYPES, ImagePart, InvalidPromptError, Part, Prompt, schema_d_exports as PromptSchema, TextPart, imageProblem };
|
|
17
18
|
}
|
|
18
|
-
declare const
|
|
19
|
+
declare const IMAGE_TYPES: readonly ["image/png", "image/jpeg", "image/gif", "image/webp"];
|
|
20
|
+
declare const IMAGE_MAX_BASE64: number;
|
|
21
|
+
declare const imageProblem: (image: {
|
|
22
|
+
readonly data: string;
|
|
23
|
+
readonly mimeType: string;
|
|
24
|
+
}) => string | undefined;
|
|
25
|
+
declare const TextPart: Schema.Struct<{
|
|
26
|
+
readonly type: Schema.Literal<"text">;
|
|
19
27
|
readonly text: Schema.String;
|
|
28
|
+
}>;
|
|
29
|
+
type TextPart = typeof TextPart.Type;
|
|
30
|
+
/** aikit's image content: base64 `data` and its `mimeType`. */
|
|
31
|
+
declare const ImagePart: Schema.Struct<{
|
|
32
|
+
readonly type: Schema.Literal<"image">;
|
|
33
|
+
readonly data: Schema.String;
|
|
34
|
+
readonly mimeType: Schema.String;
|
|
35
|
+
}>;
|
|
36
|
+
type ImagePart = typeof ImagePart.Type;
|
|
37
|
+
declare const Part: Schema.Union<readonly [Schema.Struct<{
|
|
38
|
+
readonly type: Schema.Literal<"text">;
|
|
39
|
+
readonly text: Schema.String;
|
|
40
|
+
}>, Schema.Struct<{
|
|
41
|
+
readonly type: Schema.Literal<"image">;
|
|
42
|
+
readonly data: Schema.String;
|
|
43
|
+
readonly mimeType: Schema.String;
|
|
44
|
+
}>]>;
|
|
45
|
+
type Part = typeof Part.Type;
|
|
46
|
+
/** A user prompt: aikit user-message parts, in the order they were written. */
|
|
47
|
+
declare const Prompt: Schema.Struct<{
|
|
48
|
+
readonly parts: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
49
|
+
readonly type: Schema.Literal<"text">;
|
|
50
|
+
readonly text: Schema.String;
|
|
51
|
+
}>, Schema.Struct<{
|
|
52
|
+
readonly type: Schema.Literal<"image">;
|
|
53
|
+
readonly data: Schema.String;
|
|
54
|
+
readonly mimeType: Schema.String;
|
|
55
|
+
}>]>>;
|
|
20
56
|
}> & {
|
|
21
57
|
equivalence: import("effect/Equivalence").Equivalence<{
|
|
22
|
-
readonly
|
|
58
|
+
readonly parts: readonly ({
|
|
59
|
+
readonly type: "text";
|
|
60
|
+
readonly text: string;
|
|
61
|
+
} | {
|
|
62
|
+
readonly type: "image";
|
|
63
|
+
readonly data: string;
|
|
64
|
+
readonly mimeType: string;
|
|
65
|
+
})[];
|
|
23
66
|
}>;
|
|
24
|
-
|
|
25
|
-
readonly
|
|
67
|
+
fromText: (text: string) => {
|
|
68
|
+
readonly parts: readonly ({
|
|
69
|
+
readonly type: "text";
|
|
70
|
+
readonly text: string;
|
|
71
|
+
} | {
|
|
72
|
+
readonly type: "image";
|
|
73
|
+
readonly data: string;
|
|
74
|
+
readonly mimeType: string;
|
|
75
|
+
})[];
|
|
26
76
|
};
|
|
77
|
+
text: (prompt: Prompt) => string;
|
|
27
78
|
};
|
|
28
79
|
type Prompt = typeof Prompt.Type;
|
|
80
|
+
declare const InvalidPromptError_base: Schema.Class<InvalidPromptError, Schema.TaggedStruct<"InvalidPromptError", {
|
|
81
|
+
readonly reason: Schema.String;
|
|
82
|
+
}>, import("effect/Cause").YieldableError>;
|
|
83
|
+
declare class InvalidPromptError extends InvalidPromptError_base {
|
|
84
|
+
get message(): string;
|
|
85
|
+
}
|
|
29
86
|
declare const Delivery: Schema.Literals<readonly ["steer", "followUp"]>;
|
|
30
87
|
type Delivery = typeof Delivery.Type;
|
|
31
88
|
//#endregion
|
|
@@ -40,34 +97,34 @@ declare const partTypes: readonly ["text", "image", "thinking", "toolCall"];
|
|
|
40
97
|
type PartType = (typeof partTypes)[number];
|
|
41
98
|
declare const toolStatuses: readonly ["pending", "running", "completed", "error", "skipped", "aborted"];
|
|
42
99
|
type ToolStatus = (typeof toolStatuses)[number];
|
|
43
|
-
declare const SpaceRow_base: import("effect/
|
|
44
|
-
readonly createdAt: Model.DateTimeInsertFromNumber;
|
|
45
|
-
readonly updatedAt: Model.DateTimeUpdateFromNumber;
|
|
100
|
+
declare const SpaceRow_base: import("effect/schema/VariantSchema").Class<SpaceRow, {
|
|
101
|
+
readonly createdAt: Model$1.DateTimeInsertFromNumber;
|
|
102
|
+
readonly updatedAt: Model$1.DateTimeUpdateFromNumber;
|
|
46
103
|
readonly id: Schema.String;
|
|
47
104
|
readonly projectId: Schema.String;
|
|
48
105
|
readonly location: Schema.brand<Schema.String, "AbsolutePath">;
|
|
49
106
|
readonly kind: Schema.Literals<readonly ["primary", "linked", "copy", "plain"]>;
|
|
50
|
-
readonly env: Model.FieldOption<Schema.brand<Schema.String, "SandboxInstance.ID"> & {
|
|
107
|
+
readonly env: Model$1.FieldOption<Schema.brand<Schema.String, "SandboxInstance.ID"> & {
|
|
51
108
|
local: string & import("effect/Brand").Brand<"SandboxInstance.ID">;
|
|
52
109
|
create: () => string & import("effect/Brand").Brand<"SandboxInstance.ID">;
|
|
53
110
|
}>;
|
|
54
111
|
readonly status: Schema.Literals<readonly ["active", "archived"]>;
|
|
55
|
-
}, Schema.Struct<import("effect/
|
|
56
|
-
readonly createdAt: Model.DateTimeInsertFromNumber;
|
|
57
|
-
readonly updatedAt: Model.DateTimeUpdateFromNumber;
|
|
112
|
+
}, Schema.Struct<import("effect/schema/VariantSchema").ExtractFields<"select", {
|
|
113
|
+
readonly createdAt: Model$1.DateTimeInsertFromNumber;
|
|
114
|
+
readonly updatedAt: Model$1.DateTimeUpdateFromNumber;
|
|
58
115
|
readonly id: Schema.String;
|
|
59
116
|
readonly projectId: Schema.String;
|
|
60
117
|
readonly location: Schema.brand<Schema.String, "AbsolutePath">;
|
|
61
118
|
readonly kind: Schema.Literals<readonly ["primary", "linked", "copy", "plain"]>;
|
|
62
|
-
readonly env: Model.FieldOption<Schema.brand<Schema.String, "SandboxInstance.ID"> & {
|
|
119
|
+
readonly env: Model$1.FieldOption<Schema.brand<Schema.String, "SandboxInstance.ID"> & {
|
|
63
120
|
local: string & import("effect/Brand").Brand<"SandboxInstance.ID">;
|
|
64
121
|
create: () => string & import("effect/Brand").Brand<"SandboxInstance.ID">;
|
|
65
122
|
}>;
|
|
66
123
|
readonly status: Schema.Literals<readonly ["active", "archived"]>;
|
|
67
124
|
}, true>>> & {
|
|
68
125
|
readonly insert: Schema.Struct<{
|
|
69
|
-
readonly createdAt: import("effect/
|
|
70
|
-
readonly updatedAt: import("effect/
|
|
126
|
+
readonly createdAt: import("effect/schema/VariantSchema").Overrideable<Schema.DateTimeUtcFromMillis>;
|
|
127
|
+
readonly updatedAt: import("effect/schema/VariantSchema").Overrideable<Schema.DateTimeUtcFromMillis>;
|
|
71
128
|
readonly id: Schema.String;
|
|
72
129
|
readonly projectId: Schema.String;
|
|
73
130
|
readonly location: Schema.brand<Schema.String, "AbsolutePath">;
|
|
@@ -85,7 +142,7 @@ declare const SpaceRow_base: import("effect/unstable/schema/VariantSchema").Clas
|
|
|
85
142
|
readonly projectId: Schema.String;
|
|
86
143
|
readonly location: Schema.brand<Schema.String, "AbsolutePath">;
|
|
87
144
|
readonly kind: Schema.Literals<readonly ["primary", "linked", "copy", "plain"]>;
|
|
88
|
-
readonly env: Model.optionalOption<Schema.brand<Schema.String, "SandboxInstance.ID"> & {
|
|
145
|
+
readonly env: Model$1.optionalOption<Schema.brand<Schema.String, "SandboxInstance.ID"> & {
|
|
89
146
|
local: string & import("effect/Brand").Brand<"SandboxInstance.ID">;
|
|
90
147
|
create: () => string & import("effect/Brand").Brand<"SandboxInstance.ID">;
|
|
91
148
|
}>;
|
|
@@ -96,7 +153,7 @@ declare const SpaceRow_base: import("effect/unstable/schema/VariantSchema").Clas
|
|
|
96
153
|
readonly projectId: Schema.String;
|
|
97
154
|
readonly location: Schema.brand<Schema.String, "AbsolutePath">;
|
|
98
155
|
readonly kind: Schema.Literals<readonly ["primary", "linked", "copy", "plain"]>;
|
|
99
|
-
readonly env: Model.optionalOption<Schema.brand<Schema.String, "SandboxInstance.ID"> & {
|
|
156
|
+
readonly env: Model$1.optionalOption<Schema.brand<Schema.String, "SandboxInstance.ID"> & {
|
|
100
157
|
local: string & import("effect/Brand").Brand<"SandboxInstance.ID">;
|
|
101
158
|
create: () => string & import("effect/Brand").Brand<"SandboxInstance.ID">;
|
|
102
159
|
}>;
|
|
@@ -107,7 +164,7 @@ declare const SpaceRow_base: import("effect/unstable/schema/VariantSchema").Clas
|
|
|
107
164
|
readonly projectId: Schema.String;
|
|
108
165
|
readonly location: Schema.brand<Schema.String, "AbsolutePath">;
|
|
109
166
|
readonly kind: Schema.Literals<readonly ["primary", "linked", "copy", "plain"]>;
|
|
110
|
-
readonly env: Model.optionalOption<Schema.brand<Schema.String, "SandboxInstance.ID"> & {
|
|
167
|
+
readonly env: Model$1.optionalOption<Schema.brand<Schema.String, "SandboxInstance.ID"> & {
|
|
111
168
|
local: string & import("effect/Brand").Brand<"SandboxInstance.ID">;
|
|
112
169
|
create: () => string & import("effect/Brand").Brand<"SandboxInstance.ID">;
|
|
113
170
|
}>;
|
|
@@ -127,7 +184,7 @@ declare const SpaceRow_base: import("effect/unstable/schema/VariantSchema").Clas
|
|
|
127
184
|
readonly status: Schema.Literals<readonly ["active", "archived"]>;
|
|
128
185
|
}>;
|
|
129
186
|
readonly update: Schema.Struct<{
|
|
130
|
-
readonly updatedAt: import("effect/
|
|
187
|
+
readonly updatedAt: import("effect/schema/VariantSchema").Overrideable<Schema.DateTimeUtcFromMillis>;
|
|
131
188
|
readonly id: Schema.String;
|
|
132
189
|
readonly projectId: Schema.String;
|
|
133
190
|
readonly location: Schema.brand<Schema.String, "AbsolutePath">;
|
|
@@ -140,66 +197,200 @@ declare const SpaceRow_base: import("effect/unstable/schema/VariantSchema").Clas
|
|
|
140
197
|
}>;
|
|
141
198
|
};
|
|
142
199
|
declare class SpaceRow extends SpaceRow_base {}
|
|
143
|
-
declare const SessionRow_base: import("effect/
|
|
144
|
-
readonly createdAt: Model.DateTimeInsertFromNumber;
|
|
145
|
-
readonly updatedAt: Model.DateTimeUpdateFromNumber;
|
|
200
|
+
declare const SessionRow_base: import("effect/schema/VariantSchema").Class<SessionRow, {
|
|
201
|
+
readonly createdAt: Model$1.DateTimeInsertFromNumber;
|
|
202
|
+
readonly updatedAt: Model$1.DateTimeUpdateFromNumber;
|
|
146
203
|
readonly id: Schema.brand<Schema.String, "Session.ID">;
|
|
147
204
|
readonly spaceId: Schema.String;
|
|
148
|
-
readonly parentId: Model.FieldOption<Schema.brand<Schema.String, "Session.ID">>;
|
|
205
|
+
readonly parentId: Model$1.FieldOption<Schema.brand<Schema.String, "Session.ID">>;
|
|
149
206
|
readonly slug: Schema.String;
|
|
150
207
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
151
|
-
readonly hostDir: Model.FieldOption<Schema.brand<Schema.String, "AbsolutePath">>;
|
|
208
|
+
readonly hostDir: Model$1.FieldOption<Schema.brand<Schema.String, "AbsolutePath">>;
|
|
209
|
+
readonly config: import("effect/schema/VariantSchema").Field<{
|
|
210
|
+
readonly select: Schema.OptionFromNullOr<Schema.fromJsonString<Schema.Struct<{
|
|
211
|
+
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
212
|
+
readonly provider: Schema.String;
|
|
213
|
+
readonly id: Schema.String;
|
|
214
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
215
|
+
readonly provider: Schema.String;
|
|
216
|
+
readonly id: Schema.String;
|
|
217
|
+
}>>, never, never>;
|
|
218
|
+
readonly thinkingLevel: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>>, Schema.optionalKey<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>, never, never>;
|
|
219
|
+
}>>>;
|
|
220
|
+
readonly insert: Schema.OptionFromNullOr<Schema.fromJsonString<Schema.Struct<{
|
|
221
|
+
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
222
|
+
readonly provider: Schema.String;
|
|
223
|
+
readonly id: Schema.String;
|
|
224
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
225
|
+
readonly provider: Schema.String;
|
|
226
|
+
readonly id: Schema.String;
|
|
227
|
+
}>>, never, never>;
|
|
228
|
+
readonly thinkingLevel: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>>, Schema.optionalKey<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>, never, never>;
|
|
229
|
+
}>>>;
|
|
230
|
+
readonly update: Schema.OptionFromNullOr<Schema.fromJsonString<Schema.Struct<{
|
|
231
|
+
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
232
|
+
readonly provider: Schema.String;
|
|
233
|
+
readonly id: Schema.String;
|
|
234
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
235
|
+
readonly provider: Schema.String;
|
|
236
|
+
readonly id: Schema.String;
|
|
237
|
+
}>>, never, never>;
|
|
238
|
+
readonly thinkingLevel: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>>, Schema.optionalKey<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>, never, never>;
|
|
239
|
+
}>>>;
|
|
240
|
+
readonly json: Model$1.optionalOption<Schema.Struct<{
|
|
241
|
+
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
242
|
+
readonly provider: Schema.String;
|
|
243
|
+
readonly id: Schema.String;
|
|
244
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
245
|
+
readonly provider: Schema.String;
|
|
246
|
+
readonly id: Schema.String;
|
|
247
|
+
}>>, never, never>;
|
|
248
|
+
readonly thinkingLevel: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>>, Schema.optionalKey<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>, never, never>;
|
|
249
|
+
}>>;
|
|
250
|
+
readonly jsonCreate: Model$1.optionalOption<Schema.Struct<{
|
|
251
|
+
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
252
|
+
readonly provider: Schema.String;
|
|
253
|
+
readonly id: Schema.String;
|
|
254
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
255
|
+
readonly provider: Schema.String;
|
|
256
|
+
readonly id: Schema.String;
|
|
257
|
+
}>>, never, never>;
|
|
258
|
+
readonly thinkingLevel: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>>, Schema.optionalKey<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>, never, never>;
|
|
259
|
+
}>>;
|
|
260
|
+
readonly jsonUpdate: Model$1.optionalOption<Schema.Struct<{
|
|
261
|
+
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
262
|
+
readonly provider: Schema.String;
|
|
263
|
+
readonly id: Schema.String;
|
|
264
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
265
|
+
readonly provider: Schema.String;
|
|
266
|
+
readonly id: Schema.String;
|
|
267
|
+
}>>, never, never>;
|
|
268
|
+
readonly thinkingLevel: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>>, Schema.optionalKey<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>, never, never>;
|
|
269
|
+
}>>;
|
|
270
|
+
}>;
|
|
152
271
|
readonly title: Schema.String;
|
|
153
|
-
readonly tag: Model.FieldOption<Schema.String>;
|
|
154
|
-
readonly metadata: import("effect/
|
|
272
|
+
readonly tag: Model$1.FieldOption<Schema.String>;
|
|
273
|
+
readonly metadata: import("effect/schema/VariantSchema").Field<{
|
|
155
274
|
readonly select: Schema.OptionFromNullOr<Schema.fromJsonString<Schema.$Record<Schema.String, Schema.String>>>;
|
|
156
275
|
readonly insert: Schema.OptionFromNullOr<Schema.fromJsonString<Schema.$Record<Schema.String, Schema.String>>>;
|
|
157
276
|
readonly update: Schema.OptionFromNullOr<Schema.fromJsonString<Schema.$Record<Schema.String, Schema.String>>>;
|
|
158
|
-
readonly json: Model.optionalOption<Schema.$Record<Schema.String, Schema.String>>;
|
|
159
|
-
readonly jsonCreate: Model.optionalOption<Schema.$Record<Schema.String, Schema.String>>;
|
|
160
|
-
readonly jsonUpdate: Model.optionalOption<Schema.$Record<Schema.String, Schema.String>>;
|
|
277
|
+
readonly json: Model$1.optionalOption<Schema.$Record<Schema.String, Schema.String>>;
|
|
278
|
+
readonly jsonCreate: Model$1.optionalOption<Schema.$Record<Schema.String, Schema.String>>;
|
|
279
|
+
readonly jsonUpdate: Model$1.optionalOption<Schema.$Record<Schema.String, Schema.String>>;
|
|
161
280
|
}>;
|
|
162
|
-
readonly leafEntryId: Model.FieldOption<Schema.String>;
|
|
163
|
-
readonly cost: Model.GeneratedByDb<Schema.Finite>;
|
|
164
|
-
readonly tokensInput: Model.GeneratedByDb<Schema.Int>;
|
|
165
|
-
readonly tokensOutput: Model.GeneratedByDb<Schema.Int>;
|
|
166
|
-
readonly tokensCacheRead: Model.GeneratedByDb<Schema.Int>;
|
|
167
|
-
readonly tokensCacheWrite: Model.GeneratedByDb<Schema.Int>;
|
|
168
|
-
}, Schema.Struct<import("effect/
|
|
169
|
-
readonly createdAt: Model.DateTimeInsertFromNumber;
|
|
170
|
-
readonly updatedAt: Model.DateTimeUpdateFromNumber;
|
|
281
|
+
readonly leafEntryId: Model$1.FieldOption<Schema.String>;
|
|
282
|
+
readonly cost: Model$1.GeneratedByDb<Schema.Finite>;
|
|
283
|
+
readonly tokensInput: Model$1.GeneratedByDb<Schema.Int>;
|
|
284
|
+
readonly tokensOutput: Model$1.GeneratedByDb<Schema.Int>;
|
|
285
|
+
readonly tokensCacheRead: Model$1.GeneratedByDb<Schema.Int>;
|
|
286
|
+
readonly tokensCacheWrite: Model$1.GeneratedByDb<Schema.Int>;
|
|
287
|
+
}, Schema.Struct<import("effect/schema/VariantSchema").ExtractFields<"select", {
|
|
288
|
+
readonly createdAt: Model$1.DateTimeInsertFromNumber;
|
|
289
|
+
readonly updatedAt: Model$1.DateTimeUpdateFromNumber;
|
|
171
290
|
readonly id: Schema.brand<Schema.String, "Session.ID">;
|
|
172
291
|
readonly spaceId: Schema.String;
|
|
173
|
-
readonly parentId: Model.FieldOption<Schema.brand<Schema.String, "Session.ID">>;
|
|
292
|
+
readonly parentId: Model$1.FieldOption<Schema.brand<Schema.String, "Session.ID">>;
|
|
174
293
|
readonly slug: Schema.String;
|
|
175
294
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
176
|
-
readonly hostDir: Model.FieldOption<Schema.brand<Schema.String, "AbsolutePath">>;
|
|
295
|
+
readonly hostDir: Model$1.FieldOption<Schema.brand<Schema.String, "AbsolutePath">>;
|
|
296
|
+
readonly config: import("effect/schema/VariantSchema").Field<{
|
|
297
|
+
readonly select: Schema.OptionFromNullOr<Schema.fromJsonString<Schema.Struct<{
|
|
298
|
+
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
299
|
+
readonly provider: Schema.String;
|
|
300
|
+
readonly id: Schema.String;
|
|
301
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
302
|
+
readonly provider: Schema.String;
|
|
303
|
+
readonly id: Schema.String;
|
|
304
|
+
}>>, never, never>;
|
|
305
|
+
readonly thinkingLevel: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>>, Schema.optionalKey<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>, never, never>;
|
|
306
|
+
}>>>;
|
|
307
|
+
readonly insert: Schema.OptionFromNullOr<Schema.fromJsonString<Schema.Struct<{
|
|
308
|
+
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
309
|
+
readonly provider: Schema.String;
|
|
310
|
+
readonly id: Schema.String;
|
|
311
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
312
|
+
readonly provider: Schema.String;
|
|
313
|
+
readonly id: Schema.String;
|
|
314
|
+
}>>, never, never>;
|
|
315
|
+
readonly thinkingLevel: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>>, Schema.optionalKey<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>, never, never>;
|
|
316
|
+
}>>>;
|
|
317
|
+
readonly update: Schema.OptionFromNullOr<Schema.fromJsonString<Schema.Struct<{
|
|
318
|
+
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
319
|
+
readonly provider: Schema.String;
|
|
320
|
+
readonly id: Schema.String;
|
|
321
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
322
|
+
readonly provider: Schema.String;
|
|
323
|
+
readonly id: Schema.String;
|
|
324
|
+
}>>, never, never>;
|
|
325
|
+
readonly thinkingLevel: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>>, Schema.optionalKey<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>, never, never>;
|
|
326
|
+
}>>>;
|
|
327
|
+
readonly json: Model$1.optionalOption<Schema.Struct<{
|
|
328
|
+
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
329
|
+
readonly provider: Schema.String;
|
|
330
|
+
readonly id: Schema.String;
|
|
331
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
332
|
+
readonly provider: Schema.String;
|
|
333
|
+
readonly id: Schema.String;
|
|
334
|
+
}>>, never, never>;
|
|
335
|
+
readonly thinkingLevel: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>>, Schema.optionalKey<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>, never, never>;
|
|
336
|
+
}>>;
|
|
337
|
+
readonly jsonCreate: Model$1.optionalOption<Schema.Struct<{
|
|
338
|
+
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
339
|
+
readonly provider: Schema.String;
|
|
340
|
+
readonly id: Schema.String;
|
|
341
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
342
|
+
readonly provider: Schema.String;
|
|
343
|
+
readonly id: Schema.String;
|
|
344
|
+
}>>, never, never>;
|
|
345
|
+
readonly thinkingLevel: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>>, Schema.optionalKey<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>, never, never>;
|
|
346
|
+
}>>;
|
|
347
|
+
readonly jsonUpdate: Model$1.optionalOption<Schema.Struct<{
|
|
348
|
+
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
349
|
+
readonly provider: Schema.String;
|
|
350
|
+
readonly id: Schema.String;
|
|
351
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
352
|
+
readonly provider: Schema.String;
|
|
353
|
+
readonly id: Schema.String;
|
|
354
|
+
}>>, never, never>;
|
|
355
|
+
readonly thinkingLevel: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>>, Schema.optionalKey<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>, never, never>;
|
|
356
|
+
}>>;
|
|
357
|
+
}>;
|
|
177
358
|
readonly title: Schema.String;
|
|
178
|
-
readonly tag: Model.FieldOption<Schema.String>;
|
|
179
|
-
readonly metadata: import("effect/
|
|
359
|
+
readonly tag: Model$1.FieldOption<Schema.String>;
|
|
360
|
+
readonly metadata: import("effect/schema/VariantSchema").Field<{
|
|
180
361
|
readonly select: Schema.OptionFromNullOr<Schema.fromJsonString<Schema.$Record<Schema.String, Schema.String>>>;
|
|
181
362
|
readonly insert: Schema.OptionFromNullOr<Schema.fromJsonString<Schema.$Record<Schema.String, Schema.String>>>;
|
|
182
363
|
readonly update: Schema.OptionFromNullOr<Schema.fromJsonString<Schema.$Record<Schema.String, Schema.String>>>;
|
|
183
|
-
readonly json: Model.optionalOption<Schema.$Record<Schema.String, Schema.String>>;
|
|
184
|
-
readonly jsonCreate: Model.optionalOption<Schema.$Record<Schema.String, Schema.String>>;
|
|
185
|
-
readonly jsonUpdate: Model.optionalOption<Schema.$Record<Schema.String, Schema.String>>;
|
|
364
|
+
readonly json: Model$1.optionalOption<Schema.$Record<Schema.String, Schema.String>>;
|
|
365
|
+
readonly jsonCreate: Model$1.optionalOption<Schema.$Record<Schema.String, Schema.String>>;
|
|
366
|
+
readonly jsonUpdate: Model$1.optionalOption<Schema.$Record<Schema.String, Schema.String>>;
|
|
186
367
|
}>;
|
|
187
|
-
readonly leafEntryId: Model.FieldOption<Schema.String>;
|
|
188
|
-
readonly cost: Model.GeneratedByDb<Schema.Finite>;
|
|
189
|
-
readonly tokensInput: Model.GeneratedByDb<Schema.Int>;
|
|
190
|
-
readonly tokensOutput: Model.GeneratedByDb<Schema.Int>;
|
|
191
|
-
readonly tokensCacheRead: Model.GeneratedByDb<Schema.Int>;
|
|
192
|
-
readonly tokensCacheWrite: Model.GeneratedByDb<Schema.Int>;
|
|
368
|
+
readonly leafEntryId: Model$1.FieldOption<Schema.String>;
|
|
369
|
+
readonly cost: Model$1.GeneratedByDb<Schema.Finite>;
|
|
370
|
+
readonly tokensInput: Model$1.GeneratedByDb<Schema.Int>;
|
|
371
|
+
readonly tokensOutput: Model$1.GeneratedByDb<Schema.Int>;
|
|
372
|
+
readonly tokensCacheRead: Model$1.GeneratedByDb<Schema.Int>;
|
|
373
|
+
readonly tokensCacheWrite: Model$1.GeneratedByDb<Schema.Int>;
|
|
193
374
|
}, true>>> & {
|
|
194
375
|
readonly insert: Schema.Struct<{
|
|
195
|
-
readonly createdAt: import("effect/
|
|
196
|
-
readonly updatedAt: import("effect/
|
|
376
|
+
readonly createdAt: import("effect/schema/VariantSchema").Overrideable<Schema.DateTimeUtcFromMillis>;
|
|
377
|
+
readonly updatedAt: import("effect/schema/VariantSchema").Overrideable<Schema.DateTimeUtcFromMillis>;
|
|
197
378
|
readonly id: Schema.brand<Schema.String, "Session.ID">;
|
|
198
379
|
readonly spaceId: Schema.String;
|
|
199
380
|
readonly parentId: Schema.OptionFromNullOr<Schema.brand<Schema.String, "Session.ID">>;
|
|
200
381
|
readonly slug: Schema.String;
|
|
201
382
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
202
383
|
readonly hostDir: Schema.OptionFromNullOr<Schema.brand<Schema.String, "AbsolutePath">>;
|
|
384
|
+
readonly config: Schema.OptionFromNullOr<Schema.fromJsonString<Schema.Struct<{
|
|
385
|
+
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
386
|
+
readonly provider: Schema.String;
|
|
387
|
+
readonly id: Schema.String;
|
|
388
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
389
|
+
readonly provider: Schema.String;
|
|
390
|
+
readonly id: Schema.String;
|
|
391
|
+
}>>, never, never>;
|
|
392
|
+
readonly thinkingLevel: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>>, Schema.optionalKey<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>, never, never>;
|
|
393
|
+
}>>>;
|
|
203
394
|
readonly title: Schema.String;
|
|
204
395
|
readonly tag: Schema.OptionFromNullOr<Schema.String>;
|
|
205
396
|
readonly metadata: Schema.OptionFromNullOr<Schema.fromJsonString<Schema.$Record<Schema.String, Schema.String>>>;
|
|
@@ -210,14 +401,24 @@ declare const SessionRow_base: import("effect/unstable/schema/VariantSchema").Cl
|
|
|
210
401
|
readonly updatedAt: Schema.DateTimeUtcFromMillis;
|
|
211
402
|
readonly id: Schema.brand<Schema.String, "Session.ID">;
|
|
212
403
|
readonly spaceId: Schema.String;
|
|
213
|
-
readonly parentId: Model.optionalOption<Schema.brand<Schema.String, "Session.ID">>;
|
|
404
|
+
readonly parentId: Model$1.optionalOption<Schema.brand<Schema.String, "Session.ID">>;
|
|
214
405
|
readonly slug: Schema.String;
|
|
215
406
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
216
|
-
readonly hostDir: Model.optionalOption<Schema.brand<Schema.String, "AbsolutePath">>;
|
|
407
|
+
readonly hostDir: Model$1.optionalOption<Schema.brand<Schema.String, "AbsolutePath">>;
|
|
408
|
+
readonly config: Model$1.optionalOption<Schema.Struct<{
|
|
409
|
+
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
410
|
+
readonly provider: Schema.String;
|
|
411
|
+
readonly id: Schema.String;
|
|
412
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
413
|
+
readonly provider: Schema.String;
|
|
414
|
+
readonly id: Schema.String;
|
|
415
|
+
}>>, never, never>;
|
|
416
|
+
readonly thinkingLevel: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>>, Schema.optionalKey<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>, never, never>;
|
|
417
|
+
}>>;
|
|
217
418
|
readonly title: Schema.String;
|
|
218
|
-
readonly tag: Model.optionalOption<Schema.String>;
|
|
219
|
-
readonly metadata: Model.optionalOption<Schema.$Record<Schema.String, Schema.String>>;
|
|
220
|
-
readonly leafEntryId: Model.optionalOption<Schema.String>;
|
|
419
|
+
readonly tag: Model$1.optionalOption<Schema.String>;
|
|
420
|
+
readonly metadata: Model$1.optionalOption<Schema.$Record<Schema.String, Schema.String>>;
|
|
421
|
+
readonly leafEntryId: Model$1.optionalOption<Schema.String>;
|
|
221
422
|
readonly cost: Schema.Finite;
|
|
222
423
|
readonly tokensInput: Schema.Int;
|
|
223
424
|
readonly tokensOutput: Schema.Int;
|
|
@@ -227,26 +428,46 @@ declare const SessionRow_base: import("effect/unstable/schema/VariantSchema").Cl
|
|
|
227
428
|
readonly jsonCreate: Schema.Struct<{
|
|
228
429
|
readonly id: Schema.brand<Schema.String, "Session.ID">;
|
|
229
430
|
readonly spaceId: Schema.String;
|
|
230
|
-
readonly parentId: Model.optionalOption<Schema.brand<Schema.String, "Session.ID">>;
|
|
431
|
+
readonly parentId: Model$1.optionalOption<Schema.brand<Schema.String, "Session.ID">>;
|
|
231
432
|
readonly slug: Schema.String;
|
|
232
433
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
233
|
-
readonly hostDir: Model.optionalOption<Schema.brand<Schema.String, "AbsolutePath">>;
|
|
434
|
+
readonly hostDir: Model$1.optionalOption<Schema.brand<Schema.String, "AbsolutePath">>;
|
|
435
|
+
readonly config: Model$1.optionalOption<Schema.Struct<{
|
|
436
|
+
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
437
|
+
readonly provider: Schema.String;
|
|
438
|
+
readonly id: Schema.String;
|
|
439
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
440
|
+
readonly provider: Schema.String;
|
|
441
|
+
readonly id: Schema.String;
|
|
442
|
+
}>>, never, never>;
|
|
443
|
+
readonly thinkingLevel: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>>, Schema.optionalKey<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>, never, never>;
|
|
444
|
+
}>>;
|
|
234
445
|
readonly title: Schema.String;
|
|
235
|
-
readonly tag: Model.optionalOption<Schema.String>;
|
|
236
|
-
readonly metadata: Model.optionalOption<Schema.$Record<Schema.String, Schema.String>>;
|
|
237
|
-
readonly leafEntryId: Model.optionalOption<Schema.String>;
|
|
446
|
+
readonly tag: Model$1.optionalOption<Schema.String>;
|
|
447
|
+
readonly metadata: Model$1.optionalOption<Schema.$Record<Schema.String, Schema.String>>;
|
|
448
|
+
readonly leafEntryId: Model$1.optionalOption<Schema.String>;
|
|
238
449
|
}>;
|
|
239
450
|
readonly jsonUpdate: Schema.Struct<{
|
|
240
451
|
readonly id: Schema.brand<Schema.String, "Session.ID">;
|
|
241
452
|
readonly spaceId: Schema.String;
|
|
242
|
-
readonly parentId: Model.optionalOption<Schema.brand<Schema.String, "Session.ID">>;
|
|
453
|
+
readonly parentId: Model$1.optionalOption<Schema.brand<Schema.String, "Session.ID">>;
|
|
243
454
|
readonly slug: Schema.String;
|
|
244
455
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
245
|
-
readonly hostDir: Model.optionalOption<Schema.brand<Schema.String, "AbsolutePath">>;
|
|
456
|
+
readonly hostDir: Model$1.optionalOption<Schema.brand<Schema.String, "AbsolutePath">>;
|
|
457
|
+
readonly config: Model$1.optionalOption<Schema.Struct<{
|
|
458
|
+
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
459
|
+
readonly provider: Schema.String;
|
|
460
|
+
readonly id: Schema.String;
|
|
461
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
462
|
+
readonly provider: Schema.String;
|
|
463
|
+
readonly id: Schema.String;
|
|
464
|
+
}>>, never, never>;
|
|
465
|
+
readonly thinkingLevel: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>>, Schema.optionalKey<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>, never, never>;
|
|
466
|
+
}>>;
|
|
246
467
|
readonly title: Schema.String;
|
|
247
|
-
readonly tag: Model.optionalOption<Schema.String>;
|
|
248
|
-
readonly metadata: Model.optionalOption<Schema.$Record<Schema.String, Schema.String>>;
|
|
249
|
-
readonly leafEntryId: Model.optionalOption<Schema.String>;
|
|
468
|
+
readonly tag: Model$1.optionalOption<Schema.String>;
|
|
469
|
+
readonly metadata: Model$1.optionalOption<Schema.$Record<Schema.String, Schema.String>>;
|
|
470
|
+
readonly leafEntryId: Model$1.optionalOption<Schema.String>;
|
|
250
471
|
}>;
|
|
251
472
|
readonly select: Schema.Struct<{
|
|
252
473
|
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
@@ -257,6 +478,16 @@ declare const SessionRow_base: import("effect/unstable/schema/VariantSchema").Cl
|
|
|
257
478
|
readonly slug: Schema.String;
|
|
258
479
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
259
480
|
readonly hostDir: Schema.OptionFromNullOr<Schema.brand<Schema.String, "AbsolutePath">>;
|
|
481
|
+
readonly config: Schema.OptionFromNullOr<Schema.fromJsonString<Schema.Struct<{
|
|
482
|
+
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
483
|
+
readonly provider: Schema.String;
|
|
484
|
+
readonly id: Schema.String;
|
|
485
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
486
|
+
readonly provider: Schema.String;
|
|
487
|
+
readonly id: Schema.String;
|
|
488
|
+
}>>, never, never>;
|
|
489
|
+
readonly thinkingLevel: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>>, Schema.optionalKey<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>, never, never>;
|
|
490
|
+
}>>>;
|
|
260
491
|
readonly title: Schema.String;
|
|
261
492
|
readonly tag: Schema.OptionFromNullOr<Schema.String>;
|
|
262
493
|
readonly metadata: Schema.OptionFromNullOr<Schema.fromJsonString<Schema.$Record<Schema.String, Schema.String>>>;
|
|
@@ -268,13 +499,23 @@ declare const SessionRow_base: import("effect/unstable/schema/VariantSchema").Cl
|
|
|
268
499
|
readonly tokensCacheWrite: Schema.Int;
|
|
269
500
|
}>;
|
|
270
501
|
readonly update: Schema.Struct<{
|
|
271
|
-
readonly updatedAt: import("effect/
|
|
502
|
+
readonly updatedAt: import("effect/schema/VariantSchema").Overrideable<Schema.DateTimeUtcFromMillis>;
|
|
272
503
|
readonly id: Schema.brand<Schema.String, "Session.ID">;
|
|
273
504
|
readonly spaceId: Schema.String;
|
|
274
505
|
readonly parentId: Schema.OptionFromNullOr<Schema.brand<Schema.String, "Session.ID">>;
|
|
275
506
|
readonly slug: Schema.String;
|
|
276
507
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
277
508
|
readonly hostDir: Schema.OptionFromNullOr<Schema.brand<Schema.String, "AbsolutePath">>;
|
|
509
|
+
readonly config: Schema.OptionFromNullOr<Schema.fromJsonString<Schema.Struct<{
|
|
510
|
+
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
511
|
+
readonly provider: Schema.String;
|
|
512
|
+
readonly id: Schema.String;
|
|
513
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
514
|
+
readonly provider: Schema.String;
|
|
515
|
+
readonly id: Schema.String;
|
|
516
|
+
}>>, never, never>;
|
|
517
|
+
readonly thinkingLevel: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>>, Schema.optionalKey<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>, never, never>;
|
|
518
|
+
}>>>;
|
|
278
519
|
readonly title: Schema.String;
|
|
279
520
|
readonly tag: Schema.OptionFromNullOr<Schema.String>;
|
|
280
521
|
readonly metadata: Schema.OptionFromNullOr<Schema.fromJsonString<Schema.$Record<Schema.String, Schema.String>>>;
|
|
@@ -282,48 +523,48 @@ declare const SessionRow_base: import("effect/unstable/schema/VariantSchema").Cl
|
|
|
282
523
|
}>;
|
|
283
524
|
};
|
|
284
525
|
declare class SessionRow extends SessionRow_base {}
|
|
285
|
-
declare const SessionEntryRow_base: import("effect/
|
|
286
|
-
readonly createdAt: Model.DateTimeInsertFromNumber;
|
|
287
|
-
readonly updatedAt: Model.DateTimeUpdateFromNumber;
|
|
526
|
+
declare const SessionEntryRow_base: import("effect/schema/VariantSchema").Class<SessionEntryRow, {
|
|
527
|
+
readonly createdAt: Model$1.DateTimeInsertFromNumber;
|
|
528
|
+
readonly updatedAt: Model$1.DateTimeUpdateFromNumber;
|
|
288
529
|
readonly id: Schema.String;
|
|
289
530
|
readonly sessionId: Schema.brand<Schema.String, "Session.ID">;
|
|
290
|
-
readonly parentId: Model.FieldOption<Schema.String>;
|
|
531
|
+
readonly parentId: Model$1.FieldOption<Schema.String>;
|
|
291
532
|
readonly seq: Schema.Int;
|
|
292
533
|
readonly type: Schema.Literals<readonly ["user", "assistant", "synthetic", "compaction", "branchSummary", "custom", "configChange"]>;
|
|
293
534
|
readonly state: Schema.Literals<readonly ["draft", "committed", "aborted"]>;
|
|
294
535
|
readonly data: Schema.String;
|
|
295
|
-
readonly label: Model.FieldOption<Schema.String>;
|
|
296
|
-
readonly metadata: import("effect/
|
|
536
|
+
readonly label: Model$1.FieldOption<Schema.String>;
|
|
537
|
+
readonly metadata: import("effect/schema/VariantSchema").Field<{
|
|
297
538
|
readonly select: Schema.OptionFromNullOr<Schema.fromJsonString<Schema.$Record<Schema.String, Schema.String>>>;
|
|
298
539
|
readonly insert: Schema.OptionFromNullOr<Schema.fromJsonString<Schema.$Record<Schema.String, Schema.String>>>;
|
|
299
540
|
readonly update: Schema.OptionFromNullOr<Schema.fromJsonString<Schema.$Record<Schema.String, Schema.String>>>;
|
|
300
|
-
readonly json: Model.optionalOption<Schema.$Record<Schema.String, Schema.String>>;
|
|
301
|
-
readonly jsonCreate: Model.optionalOption<Schema.$Record<Schema.String, Schema.String>>;
|
|
302
|
-
readonly jsonUpdate: Model.optionalOption<Schema.$Record<Schema.String, Schema.String>>;
|
|
541
|
+
readonly json: Model$1.optionalOption<Schema.$Record<Schema.String, Schema.String>>;
|
|
542
|
+
readonly jsonCreate: Model$1.optionalOption<Schema.$Record<Schema.String, Schema.String>>;
|
|
543
|
+
readonly jsonUpdate: Model$1.optionalOption<Schema.$Record<Schema.String, Schema.String>>;
|
|
303
544
|
}>;
|
|
304
|
-
}, Schema.Struct<import("effect/
|
|
305
|
-
readonly createdAt: Model.DateTimeInsertFromNumber;
|
|
306
|
-
readonly updatedAt: Model.DateTimeUpdateFromNumber;
|
|
545
|
+
}, Schema.Struct<import("effect/schema/VariantSchema").ExtractFields<"select", {
|
|
546
|
+
readonly createdAt: Model$1.DateTimeInsertFromNumber;
|
|
547
|
+
readonly updatedAt: Model$1.DateTimeUpdateFromNumber;
|
|
307
548
|
readonly id: Schema.String;
|
|
308
549
|
readonly sessionId: Schema.brand<Schema.String, "Session.ID">;
|
|
309
|
-
readonly parentId: Model.FieldOption<Schema.String>;
|
|
550
|
+
readonly parentId: Model$1.FieldOption<Schema.String>;
|
|
310
551
|
readonly seq: Schema.Int;
|
|
311
552
|
readonly type: Schema.Literals<readonly ["user", "assistant", "synthetic", "compaction", "branchSummary", "custom", "configChange"]>;
|
|
312
553
|
readonly state: Schema.Literals<readonly ["draft", "committed", "aborted"]>;
|
|
313
554
|
readonly data: Schema.String;
|
|
314
|
-
readonly label: Model.FieldOption<Schema.String>;
|
|
315
|
-
readonly metadata: import("effect/
|
|
555
|
+
readonly label: Model$1.FieldOption<Schema.String>;
|
|
556
|
+
readonly metadata: import("effect/schema/VariantSchema").Field<{
|
|
316
557
|
readonly select: Schema.OptionFromNullOr<Schema.fromJsonString<Schema.$Record<Schema.String, Schema.String>>>;
|
|
317
558
|
readonly insert: Schema.OptionFromNullOr<Schema.fromJsonString<Schema.$Record<Schema.String, Schema.String>>>;
|
|
318
559
|
readonly update: Schema.OptionFromNullOr<Schema.fromJsonString<Schema.$Record<Schema.String, Schema.String>>>;
|
|
319
|
-
readonly json: Model.optionalOption<Schema.$Record<Schema.String, Schema.String>>;
|
|
320
|
-
readonly jsonCreate: Model.optionalOption<Schema.$Record<Schema.String, Schema.String>>;
|
|
321
|
-
readonly jsonUpdate: Model.optionalOption<Schema.$Record<Schema.String, Schema.String>>;
|
|
560
|
+
readonly json: Model$1.optionalOption<Schema.$Record<Schema.String, Schema.String>>;
|
|
561
|
+
readonly jsonCreate: Model$1.optionalOption<Schema.$Record<Schema.String, Schema.String>>;
|
|
562
|
+
readonly jsonUpdate: Model$1.optionalOption<Schema.$Record<Schema.String, Schema.String>>;
|
|
322
563
|
}>;
|
|
323
564
|
}, true>>> & {
|
|
324
565
|
readonly insert: Schema.Struct<{
|
|
325
|
-
readonly createdAt: import("effect/
|
|
326
|
-
readonly updatedAt: import("effect/
|
|
566
|
+
readonly createdAt: import("effect/schema/VariantSchema").Overrideable<Schema.DateTimeUtcFromMillis>;
|
|
567
|
+
readonly updatedAt: import("effect/schema/VariantSchema").Overrideable<Schema.DateTimeUtcFromMillis>;
|
|
327
568
|
readonly id: Schema.String;
|
|
328
569
|
readonly sessionId: Schema.brand<Schema.String, "Session.ID">;
|
|
329
570
|
readonly parentId: Schema.OptionFromNullOr<Schema.String>;
|
|
@@ -339,35 +580,35 @@ declare const SessionEntryRow_base: import("effect/unstable/schema/VariantSchema
|
|
|
339
580
|
readonly updatedAt: Schema.DateTimeUtcFromMillis;
|
|
340
581
|
readonly id: Schema.String;
|
|
341
582
|
readonly sessionId: Schema.brand<Schema.String, "Session.ID">;
|
|
342
|
-
readonly parentId: Model.optionalOption<Schema.String>;
|
|
583
|
+
readonly parentId: Model$1.optionalOption<Schema.String>;
|
|
343
584
|
readonly seq: Schema.Int;
|
|
344
585
|
readonly type: Schema.Literals<readonly ["user", "assistant", "synthetic", "compaction", "branchSummary", "custom", "configChange"]>;
|
|
345
586
|
readonly state: Schema.Literals<readonly ["draft", "committed", "aborted"]>;
|
|
346
587
|
readonly data: Schema.String;
|
|
347
|
-
readonly label: Model.optionalOption<Schema.String>;
|
|
348
|
-
readonly metadata: Model.optionalOption<Schema.$Record<Schema.String, Schema.String>>;
|
|
588
|
+
readonly label: Model$1.optionalOption<Schema.String>;
|
|
589
|
+
readonly metadata: Model$1.optionalOption<Schema.$Record<Schema.String, Schema.String>>;
|
|
349
590
|
}>;
|
|
350
591
|
readonly jsonCreate: Schema.Struct<{
|
|
351
592
|
readonly id: Schema.String;
|
|
352
593
|
readonly sessionId: Schema.brand<Schema.String, "Session.ID">;
|
|
353
|
-
readonly parentId: Model.optionalOption<Schema.String>;
|
|
594
|
+
readonly parentId: Model$1.optionalOption<Schema.String>;
|
|
354
595
|
readonly seq: Schema.Int;
|
|
355
596
|
readonly type: Schema.Literals<readonly ["user", "assistant", "synthetic", "compaction", "branchSummary", "custom", "configChange"]>;
|
|
356
597
|
readonly state: Schema.Literals<readonly ["draft", "committed", "aborted"]>;
|
|
357
598
|
readonly data: Schema.String;
|
|
358
|
-
readonly label: Model.optionalOption<Schema.String>;
|
|
359
|
-
readonly metadata: Model.optionalOption<Schema.$Record<Schema.String, Schema.String>>;
|
|
599
|
+
readonly label: Model$1.optionalOption<Schema.String>;
|
|
600
|
+
readonly metadata: Model$1.optionalOption<Schema.$Record<Schema.String, Schema.String>>;
|
|
360
601
|
}>;
|
|
361
602
|
readonly jsonUpdate: Schema.Struct<{
|
|
362
603
|
readonly id: Schema.String;
|
|
363
604
|
readonly sessionId: Schema.brand<Schema.String, "Session.ID">;
|
|
364
|
-
readonly parentId: Model.optionalOption<Schema.String>;
|
|
605
|
+
readonly parentId: Model$1.optionalOption<Schema.String>;
|
|
365
606
|
readonly seq: Schema.Int;
|
|
366
607
|
readonly type: Schema.Literals<readonly ["user", "assistant", "synthetic", "compaction", "branchSummary", "custom", "configChange"]>;
|
|
367
608
|
readonly state: Schema.Literals<readonly ["draft", "committed", "aborted"]>;
|
|
368
609
|
readonly data: Schema.String;
|
|
369
|
-
readonly label: Model.optionalOption<Schema.String>;
|
|
370
|
-
readonly metadata: Model.optionalOption<Schema.$Record<Schema.String, Schema.String>>;
|
|
610
|
+
readonly label: Model$1.optionalOption<Schema.String>;
|
|
611
|
+
readonly metadata: Model$1.optionalOption<Schema.$Record<Schema.String, Schema.String>>;
|
|
371
612
|
}>;
|
|
372
613
|
readonly select: Schema.Struct<{
|
|
373
614
|
readonly createdAt: Schema.DateTimeUtcFromMillis;
|
|
@@ -383,7 +624,7 @@ declare const SessionEntryRow_base: import("effect/unstable/schema/VariantSchema
|
|
|
383
624
|
readonly metadata: Schema.OptionFromNullOr<Schema.fromJsonString<Schema.$Record<Schema.String, Schema.String>>>;
|
|
384
625
|
}>;
|
|
385
626
|
readonly update: Schema.Struct<{
|
|
386
|
-
readonly updatedAt: import("effect/
|
|
627
|
+
readonly updatedAt: import("effect/schema/VariantSchema").Overrideable<Schema.DateTimeUtcFromMillis>;
|
|
387
628
|
readonly id: Schema.String;
|
|
388
629
|
readonly sessionId: Schema.brand<Schema.String, "Session.ID">;
|
|
389
630
|
readonly parentId: Schema.OptionFromNullOr<Schema.String>;
|
|
@@ -396,34 +637,34 @@ declare const SessionEntryRow_base: import("effect/unstable/schema/VariantSchema
|
|
|
396
637
|
}>;
|
|
397
638
|
};
|
|
398
639
|
declare class SessionEntryRow extends SessionEntryRow_base {}
|
|
399
|
-
declare const SessionEntryPartRow_base: import("effect/
|
|
400
|
-
readonly createdAt: Model.DateTimeInsertFromNumber;
|
|
401
|
-
readonly updatedAt: Model.DateTimeUpdateFromNumber;
|
|
640
|
+
declare const SessionEntryPartRow_base: import("effect/schema/VariantSchema").Class<SessionEntryPartRow, {
|
|
641
|
+
readonly createdAt: Model$1.DateTimeInsertFromNumber;
|
|
642
|
+
readonly updatedAt: Model$1.DateTimeUpdateFromNumber;
|
|
402
643
|
readonly id: Schema.String;
|
|
403
644
|
readonly entryId: Schema.String;
|
|
404
645
|
readonly sessionId: Schema.brand<Schema.String, "Session.ID">;
|
|
405
646
|
readonly partIndex: Schema.Int;
|
|
406
647
|
readonly type: Schema.Literals<readonly ["text", "image", "thinking", "toolCall"]>;
|
|
407
|
-
readonly status: Model.FieldOption<Schema.Literals<readonly ["pending", "running", "completed", "error", "skipped", "aborted"]>>;
|
|
408
|
-
readonly callId: Model.FieldOption<Schema.String>;
|
|
409
|
-
readonly toolName: Model.FieldOption<Schema.String>;
|
|
648
|
+
readonly status: Model$1.FieldOption<Schema.Literals<readonly ["pending", "running", "completed", "error", "skipped", "aborted"]>>;
|
|
649
|
+
readonly callId: Model$1.FieldOption<Schema.String>;
|
|
650
|
+
readonly toolName: Model$1.FieldOption<Schema.String>;
|
|
410
651
|
readonly data: Schema.String;
|
|
411
|
-
}, Schema.Struct<import("effect/
|
|
412
|
-
readonly createdAt: Model.DateTimeInsertFromNumber;
|
|
413
|
-
readonly updatedAt: Model.DateTimeUpdateFromNumber;
|
|
652
|
+
}, Schema.Struct<import("effect/schema/VariantSchema").ExtractFields<"select", {
|
|
653
|
+
readonly createdAt: Model$1.DateTimeInsertFromNumber;
|
|
654
|
+
readonly updatedAt: Model$1.DateTimeUpdateFromNumber;
|
|
414
655
|
readonly id: Schema.String;
|
|
415
656
|
readonly entryId: Schema.String;
|
|
416
657
|
readonly sessionId: Schema.brand<Schema.String, "Session.ID">;
|
|
417
658
|
readonly partIndex: Schema.Int;
|
|
418
659
|
readonly type: Schema.Literals<readonly ["text", "image", "thinking", "toolCall"]>;
|
|
419
|
-
readonly status: Model.FieldOption<Schema.Literals<readonly ["pending", "running", "completed", "error", "skipped", "aborted"]>>;
|
|
420
|
-
readonly callId: Model.FieldOption<Schema.String>;
|
|
421
|
-
readonly toolName: Model.FieldOption<Schema.String>;
|
|
660
|
+
readonly status: Model$1.FieldOption<Schema.Literals<readonly ["pending", "running", "completed", "error", "skipped", "aborted"]>>;
|
|
661
|
+
readonly callId: Model$1.FieldOption<Schema.String>;
|
|
662
|
+
readonly toolName: Model$1.FieldOption<Schema.String>;
|
|
422
663
|
readonly data: Schema.String;
|
|
423
664
|
}, true>>> & {
|
|
424
665
|
readonly insert: Schema.Struct<{
|
|
425
|
-
readonly createdAt: import("effect/
|
|
426
|
-
readonly updatedAt: import("effect/
|
|
666
|
+
readonly createdAt: import("effect/schema/VariantSchema").Overrideable<Schema.DateTimeUtcFromMillis>;
|
|
667
|
+
readonly updatedAt: import("effect/schema/VariantSchema").Overrideable<Schema.DateTimeUtcFromMillis>;
|
|
427
668
|
readonly id: Schema.String;
|
|
428
669
|
readonly entryId: Schema.String;
|
|
429
670
|
readonly sessionId: Schema.brand<Schema.String, "Session.ID">;
|
|
@@ -442,9 +683,9 @@ declare const SessionEntryPartRow_base: import("effect/unstable/schema/VariantSc
|
|
|
442
683
|
readonly sessionId: Schema.brand<Schema.String, "Session.ID">;
|
|
443
684
|
readonly partIndex: Schema.Int;
|
|
444
685
|
readonly type: Schema.Literals<readonly ["text", "image", "thinking", "toolCall"]>;
|
|
445
|
-
readonly status: Model.optionalOption<Schema.Literals<readonly ["pending", "running", "completed", "error", "skipped", "aborted"]>>;
|
|
446
|
-
readonly callId: Model.optionalOption<Schema.String>;
|
|
447
|
-
readonly toolName: Model.optionalOption<Schema.String>;
|
|
686
|
+
readonly status: Model$1.optionalOption<Schema.Literals<readonly ["pending", "running", "completed", "error", "skipped", "aborted"]>>;
|
|
687
|
+
readonly callId: Model$1.optionalOption<Schema.String>;
|
|
688
|
+
readonly toolName: Model$1.optionalOption<Schema.String>;
|
|
448
689
|
readonly data: Schema.String;
|
|
449
690
|
}>;
|
|
450
691
|
readonly jsonCreate: Schema.Struct<{
|
|
@@ -453,9 +694,9 @@ declare const SessionEntryPartRow_base: import("effect/unstable/schema/VariantSc
|
|
|
453
694
|
readonly sessionId: Schema.brand<Schema.String, "Session.ID">;
|
|
454
695
|
readonly partIndex: Schema.Int;
|
|
455
696
|
readonly type: Schema.Literals<readonly ["text", "image", "thinking", "toolCall"]>;
|
|
456
|
-
readonly status: Model.optionalOption<Schema.Literals<readonly ["pending", "running", "completed", "error", "skipped", "aborted"]>>;
|
|
457
|
-
readonly callId: Model.optionalOption<Schema.String>;
|
|
458
|
-
readonly toolName: Model.optionalOption<Schema.String>;
|
|
697
|
+
readonly status: Model$1.optionalOption<Schema.Literals<readonly ["pending", "running", "completed", "error", "skipped", "aborted"]>>;
|
|
698
|
+
readonly callId: Model$1.optionalOption<Schema.String>;
|
|
699
|
+
readonly toolName: Model$1.optionalOption<Schema.String>;
|
|
459
700
|
readonly data: Schema.String;
|
|
460
701
|
}>;
|
|
461
702
|
readonly jsonUpdate: Schema.Struct<{
|
|
@@ -464,9 +705,9 @@ declare const SessionEntryPartRow_base: import("effect/unstable/schema/VariantSc
|
|
|
464
705
|
readonly sessionId: Schema.brand<Schema.String, "Session.ID">;
|
|
465
706
|
readonly partIndex: Schema.Int;
|
|
466
707
|
readonly type: Schema.Literals<readonly ["text", "image", "thinking", "toolCall"]>;
|
|
467
|
-
readonly status: Model.optionalOption<Schema.Literals<readonly ["pending", "running", "completed", "error", "skipped", "aborted"]>>;
|
|
468
|
-
readonly callId: Model.optionalOption<Schema.String>;
|
|
469
|
-
readonly toolName: Model.optionalOption<Schema.String>;
|
|
708
|
+
readonly status: Model$1.optionalOption<Schema.Literals<readonly ["pending", "running", "completed", "error", "skipped", "aborted"]>>;
|
|
709
|
+
readonly callId: Model$1.optionalOption<Schema.String>;
|
|
710
|
+
readonly toolName: Model$1.optionalOption<Schema.String>;
|
|
470
711
|
readonly data: Schema.String;
|
|
471
712
|
}>;
|
|
472
713
|
readonly select: Schema.Struct<{
|
|
@@ -483,7 +724,7 @@ declare const SessionEntryPartRow_base: import("effect/unstable/schema/VariantSc
|
|
|
483
724
|
readonly data: Schema.String;
|
|
484
725
|
}>;
|
|
485
726
|
readonly update: Schema.Struct<{
|
|
486
|
-
readonly updatedAt: import("effect/
|
|
727
|
+
readonly updatedAt: import("effect/schema/VariantSchema").Overrideable<Schema.DateTimeUtcFromMillis>;
|
|
487
728
|
readonly id: Schema.String;
|
|
488
729
|
readonly entryId: Schema.String;
|
|
489
730
|
readonly sessionId: Schema.brand<Schema.String, "Session.ID">;
|
|
@@ -659,9 +900,34 @@ import * as import__codeworksh_plugin_project from "@codeworksh/plugin/project";
|
|
|
659
900
|
import * as import__codeworksh_plugin_schema from "@codeworksh/plugin/schema";
|
|
660
901
|
import * as import__codeworksh_plugin_space from "@codeworksh/plugin/space";
|
|
661
902
|
declare namespace schema_d_exports$6 {
|
|
662
|
-
export { AssistantEnvelopeUsage, CompactionData, ID$1 as ID, IDFromDb, InterruptReason, JsonObject, MessageEnvelopeIdentity, schema_d_exports$6 as SessionSchema, Usage };
|
|
903
|
+
export { AssistantEnvelopeUsage, CompactionData, Config$2 as Config, DEFAULT_TITLE, ID$1 as ID, IDFromDb, InterruptReason, JsonObject, MessageEnvelopeIdentity, schema_d_exports$6 as SessionSchema, TITLE_MAX_LENGTH, ThinkingLevel, Usage, titleFrom };
|
|
663
904
|
}
|
|
664
905
|
declare const IDFromDb: Schema.brand<Schema.String, "Session.ID">;
|
|
906
|
+
/** The title of a session created without one; its first prompt replaces it. */
|
|
907
|
+
declare const DEFAULT_TITLE = "Session";
|
|
908
|
+
declare const TITLE_MAX_LENGTH = 48;
|
|
909
|
+
/**
|
|
910
|
+
* A title from a prompt: its first non-empty line, whitespace collapsed, cut on a word boundary
|
|
911
|
+
* to {@link TITLE_MAX_LENGTH} characters including the ellipsis. `undefined` for a blank prompt.
|
|
912
|
+
*/
|
|
913
|
+
declare const titleFrom: (text: string) => string | undefined;
|
|
914
|
+
declare const ThinkingLevel: Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>;
|
|
915
|
+
/**
|
|
916
|
+
* The model and thinking level chosen for a session, over its settings. Every key is optional:
|
|
917
|
+
* an absent one means the session follows its settings. `session.config.changed` carries only the
|
|
918
|
+
* keys it changes, and the `session.config` column holds them merged.
|
|
919
|
+
*/
|
|
920
|
+
declare const Config$2: Schema.Struct<{
|
|
921
|
+
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
922
|
+
readonly provider: Schema.String;
|
|
923
|
+
readonly id: Schema.String;
|
|
924
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
925
|
+
readonly provider: Schema.String;
|
|
926
|
+
readonly id: Schema.String;
|
|
927
|
+
}>>, never, never>;
|
|
928
|
+
readonly thinkingLevel: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>>, Schema.optionalKey<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>, never, never>;
|
|
929
|
+
}>;
|
|
930
|
+
type Config$2 = typeof Config$2.Type;
|
|
665
931
|
/**
|
|
666
932
|
* Why an execution stopped. Supplied by whoever asked for the interruption --
|
|
667
933
|
* a stop the user asked for and a stop the process imposed on shutdown are
|
|
@@ -711,7 +977,7 @@ declare const AssistantEnvelopeUsage: Schema.fromJsonString<Schema.Struct<{
|
|
|
711
977
|
}>;
|
|
712
978
|
}>>;
|
|
713
979
|
declare namespace session_d_exports$1 {
|
|
714
|
-
export { AbortAssistant, AppendEntry, AppendPart, CreateSession, EntryNotFoundError, EntryState, EntryType, ForkInput, HydratedEntry, Interface$16 as Interface, InvalidEntryDataError, ListInput$1 as ListInput, MessageEntryType, PartType, RelinkError, RelinkInput$1 as RelinkInput, RelinkReason, ReplaceAssistant, Service$16 as Service, session_d_exports$1 as Session, SessionEntryPartRow, SessionEntryRow, SessionLinkedSpaceNotFoundError, SessionNotFoundError, SessionNotLinkedError, SessionRow, SetEntryState, SettleToolCall, ToolCallNotFoundError, ToolStatus, defaultLayer$
|
|
980
|
+
export { AbortAssistant, AppendEntry, AppendPart, CreateSession, EntryNotFoundError, EntryState, EntryType, ForkInput, HydratedEntry, Interface$16 as Interface, InvalidEntryDataError, ListInput$1 as ListInput, MessageEntryType, PartType, RelinkError, RelinkInput$1 as RelinkInput, RelinkReason, ReplaceAssistant, Service$16 as Service, session_d_exports$1 as Session, SessionEntryPartRow, SessionEntryRow, SessionLinkedSpaceNotFoundError, SessionNotFoundError, SessionNotLinkedError, SessionRow, SetEntryState, SettleToolCall, ToolCallNotFoundError, ToolStatus, defaultLayer$6 as defaultLayer, entryStates, entryTypes, layer$18 as layer, messageEntryTypes, partTypes, rebaseDirectory, toolStatuses };
|
|
715
981
|
}
|
|
716
982
|
declare const SessionNotFoundError_base: Schema.Class<SessionNotFoundError, Schema.TaggedStruct<"SessionNotFoundError", {
|
|
717
983
|
readonly sessionId: Schema.String;
|
|
@@ -771,7 +1037,6 @@ interface CreateSession {
|
|
|
771
1037
|
/** The space (one directory in one env) this session attaches to; must exist. */
|
|
772
1038
|
readonly spaceId: schema_d_exports$7.SpaceSchema.ID;
|
|
773
1039
|
readonly parentId?: ID$1;
|
|
774
|
-
readonly slug: string;
|
|
775
1040
|
/** Absolute realpath of the cwd; equal to or under `space.location`. */
|
|
776
1041
|
readonly directory: schema_d_exports$8.AbsolutePath;
|
|
777
1042
|
/**
|
|
@@ -847,7 +1112,6 @@ interface ForkInput {
|
|
|
847
1112
|
readonly entryId?: string;
|
|
848
1113
|
readonly mode?: "at" | "before";
|
|
849
1114
|
readonly id?: ID$1;
|
|
850
|
-
readonly slug: string;
|
|
851
1115
|
readonly title?: string;
|
|
852
1116
|
readonly tag?: string;
|
|
853
1117
|
}
|
|
@@ -879,6 +1143,16 @@ interface Interface$16 {
|
|
|
879
1143
|
sessionId: ID$1;
|
|
880
1144
|
hostDir: schema_d_exports$8.AbsolutePath | null;
|
|
881
1145
|
}) => Effect.Effect<SessionRow, SessionNotFoundError>;
|
|
1146
|
+
/**
|
|
1147
|
+
* Replace a session's {@link SessionSchema.DEFAULT_TITLE}. A session with any other title keeps it,
|
|
1148
|
+
* so a title someone chose is never overwritten. Returns whether the title changed.
|
|
1149
|
+
*/
|
|
1150
|
+
readonly retitle: (sessionId: ID$1, title: string) => Effect.Effect<boolean>;
|
|
1151
|
+
/**
|
|
1152
|
+
* Merge chosen keys into a session's {@link SessionSchema.Config}; keys not named keep their
|
|
1153
|
+
* value. The projection of `session.config.changed`, so it runs inside that event's commit.
|
|
1154
|
+
*/
|
|
1155
|
+
readonly configure: (sessionId: ID$1, config: Config$2) => Effect.Effect<void>;
|
|
882
1156
|
readonly get: (sessionId: ID$1) => Effect.Effect<Option.Option<SessionRow>>;
|
|
883
1157
|
/** The space a session attaches to — its env and absolute location. None when the session is unknown. */
|
|
884
1158
|
readonly space: (sessionId: ID$1) => Effect.Effect<Option.Option<schema_d_exports$7.SpaceSchema.Info>>;
|
|
@@ -927,7 +1201,7 @@ interface Interface$16 {
|
|
|
927
1201
|
declare const Service_base$14: Context.ServiceClass<Service$16, "@codeworksh/harness/session/session/Service", Interface$16>;
|
|
928
1202
|
declare class Service$16 extends Service_base$14 {}
|
|
929
1203
|
declare const layer$18: Layer.Layer<Service$16, never, Service$17 | SqlClient.SqlClient>;
|
|
930
|
-
declare const defaultLayer$
|
|
1204
|
+
declare const defaultLayer$6: Layer.Layer<Service$16, import("effect/Config").ConfigError, Service$17>;
|
|
931
1205
|
//#endregion
|
|
932
1206
|
//#region src/context/errors.d.ts
|
|
933
1207
|
declare const ContextDecodeError_base: Schema.Class<ContextDecodeError, Schema.TaggedStruct<"ContextDecodeError", {
|
|
@@ -946,21 +1220,13 @@ declare const ContextInvariantError_base: Schema.Class<ContextInvariantError, Sc
|
|
|
946
1220
|
readonly reason: Schema.String;
|
|
947
1221
|
}>, import("effect/Cause").YieldableError>;
|
|
948
1222
|
declare class ContextInvariantError extends ContextInvariantError_base {}
|
|
949
|
-
declare namespace db_d_exports {
|
|
950
|
-
export { db_d_exports as Database, SqlClient$1 as SqlClient, SqlSchema$1 as SqlSchema, defaultLayer$6 as defaultLayer, layer$17 as layer, locationConfig, path, resolveDatabaseLocation };
|
|
951
|
-
}
|
|
952
|
-
declare function layer$17(location: string): Layer.Layer<SqlClient.SqlClient | SqliteClient.SqliteClient, never, never>;
|
|
953
|
-
declare const locationConfig: Config.Config<string>;
|
|
954
|
-
declare function resolveDatabaseLocation(configured: string, data: string): string;
|
|
955
|
-
declare const path: (data?: string | undefined) => Effect.Effect<string, Config.ConfigError, never>;
|
|
956
|
-
declare const defaultLayer$6: Layer.Layer<SqlClient.SqlClient | SqliteClient.SqliteClient, Config.ConfigError, never>;
|
|
957
1223
|
import * as import__codeworksh_plugin_sandbox_filesystem from "@codeworksh/plugin/sandbox/filesystem";
|
|
958
1224
|
import * as import__codeworksh_plugin_sandbox_instance from "@codeworksh/plugin/sandbox/instance";
|
|
959
1225
|
import * as import__codeworksh_plugin_sandbox_io from "@codeworksh/plugin/sandbox/io";
|
|
960
1226
|
import * as import__codeworksh_plugin_sandbox_driver from "@codeworksh/plugin/sandbox/driver";
|
|
961
1227
|
import * as import__codeworksh_plugin_sandbox_errors from "@codeworksh/plugin/sandbox/errors";
|
|
962
1228
|
declare namespace registry_d_exports$1 {
|
|
963
|
-
export { DriverInfo, Registry, RegistryService, registry_d_exports$1 as SandboxDriverRegistry, layer$
|
|
1229
|
+
export { DriverInfo, Registry, RegistryService, registry_d_exports$1 as SandboxDriverRegistry, layer$17 as layer, make$5 as make };
|
|
964
1230
|
}
|
|
965
1231
|
interface DriverInfo {
|
|
966
1232
|
readonly name: driver_d_exports.SandboxDriver.Name;
|
|
@@ -982,9 +1248,9 @@ interface RegistryService {
|
|
|
982
1248
|
declare const Registry_base: Context.ServiceClass<Registry, "@codeworksh/harness/sandbox/registry", RegistryService>;
|
|
983
1249
|
declare class Registry extends Registry_base {}
|
|
984
1250
|
declare const make$5: (drivers: ReadonlyArray<driver_d_exports.SandboxDriver.Registration>) => Effect.Effect<RegistryService, errors_d_exports.SandboxDriverRegistrationError>;
|
|
985
|
-
declare const layer$
|
|
1251
|
+
declare const layer$17: (...drivers: ReadonlyArray<driver_d_exports.SandboxDriver.Registration>) => Layer.Layer<Registry, errors_d_exports.SandboxDriverRegistrationError, never>;
|
|
986
1252
|
declare namespace control_d_exports$1 {
|
|
987
|
-
export { Controller, CreateInput$2 as CreateInput, DestroyOptions, Interface$15 as Interface, ListInput, MountOptions, Options$5 as Options, RegisterInput$1 as RegisterInput, control_d_exports$1 as SandboxController, layer$
|
|
1253
|
+
export { Controller, CreateInput$2 as CreateInput, DestroyOptions, Interface$15 as Interface, ListInput, MountOptions, Options$5 as Options, RegisterInput$1 as RegisterInput, control_d_exports$1 as SandboxController, layer$16 as layer, make$4 as make };
|
|
988
1254
|
}
|
|
989
1255
|
interface CreateInput$2<CreateConfig, RuntimeConfig extends driver_d_exports.SandboxDriver.RuntimeConfigBase> {
|
|
990
1256
|
readonly driver: driver_d_exports.SandboxDriver.Definition<CreateConfig, RuntimeConfig>;
|
|
@@ -1036,7 +1302,7 @@ interface Options$5 {
|
|
|
1036
1302
|
readonly provisioningTimeoutMs?: number;
|
|
1037
1303
|
}
|
|
1038
1304
|
declare const make$4: (options: Options$5) => Effect.Effect<Interface$15, errors_d_exports.SandboxDriverRegistrationError, Registry | import("effect/Scope").Scope | SqlClient.SqlClient>;
|
|
1039
|
-
declare const layer$
|
|
1305
|
+
declare const layer$16: (options: Options$5) => Layer.Layer<Controller, errors_d_exports.SandboxDriverRegistrationError, Registry | SqlClient.SqlClient>;
|
|
1040
1306
|
//#endregion
|
|
1041
1307
|
//#region src/sandbox/sandbox.d.ts
|
|
1042
1308
|
/**
|
|
@@ -1053,7 +1319,7 @@ type Provides = io_d_exports.SandboxIO.Provides;
|
|
|
1053
1319
|
/** A sandbox is any Layer providing the runtime services above. */
|
|
1054
1320
|
type Sandbox<E = never, RIn = never> = Layer.Layer<Provides, E, RIn>;
|
|
1055
1321
|
declare namespace git_d_exports {
|
|
1056
|
-
export { AppProcessError, git_d_exports as Git, Interface$14 as Interface, Result$1 as Result, RevParse, Service$15 as Service, defaultLayer$5 as defaultLayer, layer$
|
|
1322
|
+
export { AppProcessError, git_d_exports as Git, Interface$14 as Interface, Result$1 as Result, RevParse, Service$15 as Service, defaultLayer$5 as defaultLayer, layer$15 as layer, layerWith$5 as layerWith, resolvePath };
|
|
1057
1323
|
}
|
|
1058
1324
|
declare const AppProcessError_base: Schema.Class<AppProcessError, Schema.TaggedStruct<"AppProcessError", {
|
|
1059
1325
|
readonly command: Schema.String;
|
|
@@ -1098,7 +1364,7 @@ interface Interface$14 {
|
|
|
1098
1364
|
}
|
|
1099
1365
|
declare const Service_base$13: Context.ServiceClass<Service$15, "@codeworksh/harness/git/git/Service", Interface$14>;
|
|
1100
1366
|
declare class Service$15 extends Service_base$13 {}
|
|
1101
|
-
declare const layer$
|
|
1367
|
+
declare const layer$15: Layer.Layer<Service$15, never, import("@codeworksh/plugin/sandbox/shell").Shell>;
|
|
1102
1368
|
/**
|
|
1103
1369
|
* Run git inside the given sandbox — local, remote, or virtual. Every command
|
|
1104
1370
|
* goes through the sandbox shell, so git never executes anywhere other than
|
|
@@ -1108,13 +1374,13 @@ declare const layer$14: Layer.Layer<Service$15, never, import("@codeworksh/plugi
|
|
|
1108
1374
|
* The sandbox must have a real `git` binary. A VFS-backed shell (`EnvBash`) has
|
|
1109
1375
|
* builtins only, so commands there exit 127 and every probe reports nothing.
|
|
1110
1376
|
*/
|
|
1111
|
-
declare const layerWith$
|
|
1377
|
+
declare const layerWith$5: <E, RIn>(sandbox: Sandbox.Sandbox<E, RIn>) => Layer.Layer<Service$15, E, RIn>;
|
|
1112
1378
|
declare const defaultLayer$5: (rootPath: string) => Layer.Layer<Service$15, never, never>;
|
|
1113
1379
|
/** Resolve a (possibly relative) git output path against `cwd`, trimming the trailing newline. */
|
|
1114
1380
|
declare function resolvePath(cwd: string, value: string): string;
|
|
1115
1381
|
import * as import__codeworksh_plugin_repo from "@codeworksh/plugin/repo";
|
|
1116
1382
|
declare namespace repo_d_exports {
|
|
1117
|
-
export { Identity, Interface$13 as Interface, MARKER, repo_d_exports as Repo, Service$14 as Service, defaultLayer$4 as defaultLayer, layer$
|
|
1383
|
+
export { Identity, Interface$13 as Interface, MARKER, repo_d_exports as Repo, Service$14 as Service, defaultLayer$4 as defaultLayer, layer$14 as layer, layerWith$4 as layerWith, normalize };
|
|
1118
1384
|
}
|
|
1119
1385
|
/** Per-clone file under the store that pins the project id (see PROJECT.md §1 "marker"). */
|
|
1120
1386
|
declare const MARKER = "codework";
|
|
@@ -1139,11 +1405,11 @@ declare class Service$14 extends Service_base$12 {}
|
|
|
1139
1405
|
* `file:` urls and empty input yield undefined.
|
|
1140
1406
|
*/
|
|
1141
1407
|
declare function normalize(url: string): string | undefined;
|
|
1142
|
-
declare const layer$
|
|
1143
|
-
declare const layerWith$
|
|
1408
|
+
declare const layer$14: Layer.Layer<Service$14, never, import("@codeworksh/plugin/sandbox/filesystem").Service | Service$15>;
|
|
1409
|
+
declare const layerWith$4: <E, RIn>(sandbox: Sandbox.Sandbox<E, RIn>) => Layer.Layer<Service$14, E, RIn>;
|
|
1144
1410
|
declare const defaultLayer$4: (rootPath: string) => Layer.Layer<Service$14, never, never>;
|
|
1145
1411
|
declare namespace space_d_exports {
|
|
1146
|
-
export { AbsorbInput, Interface$12 as Interface, RehomeInput, Service$13 as Service, space_d_exports as Space, archiveEnv, fromRow, id, layer$
|
|
1412
|
+
export { AbsorbInput, Interface$12 as Interface, RehomeInput, Service$13 as Service, space_d_exports as Space, archiveEnv, fromRow, id, layer$13 as layer, layerWith$3 as layerWith };
|
|
1147
1413
|
}
|
|
1148
1414
|
/** `hash(env, location)` — no project component (D-SPACEID). */
|
|
1149
1415
|
declare const id: (env: instance_d_exports.SandboxInstance.ID, location: string) => schema_d_exports$7.SpaceSchema.ID;
|
|
@@ -1182,10 +1448,10 @@ declare const fromRow: (row: SpaceRow) => schema_d_exports$7.SpaceSchema.Info;
|
|
|
1182
1448
|
* Write-first so a DEFERRED transaction takes the write lock immediately.
|
|
1183
1449
|
*/
|
|
1184
1450
|
declare const archiveEnv: (env: string & import("effect/Brand").Brand<"SandboxInstance.ID">) => Effect.Effect<void, never, SqlClient.SqlClient>;
|
|
1185
|
-
declare const layer$
|
|
1186
|
-
declare const layerWith$
|
|
1451
|
+
declare const layer$13: Layer.Layer<Service$13, never, io_d_exports.SandboxIO.Current | import("@codeworksh/plugin/sandbox/filesystem").Service | SqlClient.SqlClient>;
|
|
1452
|
+
declare const layerWith$3: <E, RIn>(sandbox: Sandbox.Sandbox<E, RIn>) => Layer.Layer<Service$13, E, RIn | SqlClient.SqlClient>;
|
|
1187
1453
|
declare namespace worktree_d_exports {
|
|
1188
|
-
export { Entry$2 as Entry, Input$1 as Input, Interface$11 as Interface, Service$12 as Service, worktree_d_exports as Worktree, WorktreeError, defaultLayer$3 as defaultLayer, layer$
|
|
1454
|
+
export { Entry$2 as Entry, Input$1 as Input, Interface$11 as Interface, Service$12 as Service, worktree_d_exports as Worktree, WorktreeError, defaultLayer$3 as defaultLayer, layer$12 as layer, layerWith$2 as layerWith };
|
|
1189
1455
|
}
|
|
1190
1456
|
declare const WorktreeError_base: Schema.Class<WorktreeError, Schema.TaggedStruct<"Worktree.WorktreeError", {
|
|
1191
1457
|
readonly operation: Schema.Literals<readonly ["add", "remove", "list"]>;
|
|
@@ -1214,11 +1480,11 @@ interface Interface$11 {
|
|
|
1214
1480
|
}
|
|
1215
1481
|
declare const Service_base$10: Context.ServiceClass<Service$12, "@codeworksh/harness/worktree/worktree/Service", Interface$11>;
|
|
1216
1482
|
declare class Service$12 extends Service_base$10 {}
|
|
1217
|
-
declare const layer$
|
|
1218
|
-
declare const layerWith$
|
|
1483
|
+
declare const layer$12: Layer.Layer<Service$12, never, import("@codeworksh/plugin/sandbox/filesystem").Service | Service$15>;
|
|
1484
|
+
declare const layerWith$2: <E, RIn>(sandbox: Sandbox.Sandbox<E, RIn>) => Layer.Layer<Service$12, E, RIn>;
|
|
1219
1485
|
declare const defaultLayer$3: (rootPath: string) => Layer.Layer<Service$12, never, never>;
|
|
1220
1486
|
declare namespace project_d_exports {
|
|
1221
|
-
export { Interface$10 as Interface, project_d_exports as Project, Resolved$2 as Resolved, Service$11 as Service, defaultLayer$2 as defaultLayer, layer$
|
|
1487
|
+
export { Interface$10 as Interface, project_d_exports as Project, Resolved$2 as Resolved, Service$11 as Service, defaultLayer$2 as defaultLayer, layer$11 as layer, layerWith$1 as layerWith, provisional };
|
|
1222
1488
|
}
|
|
1223
1489
|
/** Deterministic, env-local id for a directory without a portable identity. Never written to a marker. */
|
|
1224
1490
|
declare const provisional: (env: instance_d_exports.SandboxInstance.ID, location: string) => schema_d_exports$9.ProjectSchema.ID;
|
|
@@ -1237,24 +1503,22 @@ interface Interface$10 {
|
|
|
1237
1503
|
}
|
|
1238
1504
|
declare const Service_base$9: Context.ServiceClass<Service$11, "@codeworksh/harness/project/project/Service", Interface$10>;
|
|
1239
1505
|
declare class Service$11 extends Service_base$9 {}
|
|
1240
|
-
declare const layer$
|
|
1506
|
+
declare const layer$11: Layer.Layer<Service$11, never, io_d_exports.SandboxIO.Current | import("@codeworksh/plugin/sandbox/filesystem").Service | Service$13 | Service$14 | Service$12 | SqlClient.SqlClient>;
|
|
1241
1507
|
/** Takes an assembled sandbox — local or remote — not a local backend. */
|
|
1242
|
-
declare const layerWith$
|
|
1508
|
+
declare const layerWith$1: <E, RIn>(sandbox: Sandbox.Sandbox<E, RIn>) => Layer.Layer<Service$11, E | import("effect/Config").ConfigError, Exclude<RIn, SqlClient.SqlClient | import("@effect/sql-sqlite-node/SqliteClient").SqliteClient>>;
|
|
1243
1509
|
declare const defaultLayer$2: (path: string) => Layer.Layer<Service$11, import("effect/Config").ConfigError, never>;
|
|
1244
1510
|
declare namespace location_d_exports {
|
|
1245
|
-
export { DirectoryNotFoundError, Error, Info$5 as Info, Interface$9 as Interface, location_d_exports as Location, NotDirectoryError,
|
|
1511
|
+
export { DirectoryNotFoundError, Error, Info$5 as Info, Interface$9 as Interface, location_d_exports as Location, NotDirectoryError, Service$10 as Service, layer$10 as layer, layerMounted };
|
|
1246
1512
|
}
|
|
1247
|
-
declare const layer$
|
|
1513
|
+
declare const layer$10: () => Layer.Layer<Service, import("@codeworksh/plugin/location").Error, io_d_exports.SandboxIO.Current | Service$11>;
|
|
1248
1514
|
/**
|
|
1249
1515
|
* `layer` with the whole resolution stack (Project, Space, Repo, Worktree, Git)
|
|
1250
1516
|
* folded in. What remains is exactly the mount and the database — for callers
|
|
1251
1517
|
* that already hold both, such as the runner and `Session.create`.
|
|
1252
1518
|
*/
|
|
1253
|
-
declare const layerMounted: (
|
|
1254
|
-
declare const layerWith$1: <E, RIn>(ref: Ref$1, sandbox: Sandbox.Sandbox<E, RIn>) => Layer.Layer<Service, E | import("effect/Config").ConfigError | import("@codeworksh/plugin/location").Error, Exclude<RIn, SqlClient$1.SqlClient | import("@effect/sql-sqlite-node/SqliteClient").SqliteClient>>;
|
|
1255
|
-
declare const defaultLayer$1: (ref: Ref$1, path: string) => Layer.Layer<Service, import("effect/Config").ConfigError | import("@codeworksh/plugin/location").Error, never>;
|
|
1519
|
+
declare const layerMounted: () => Layer.Layer<Service, import("@codeworksh/plugin/location").Error, io_d_exports.SandboxIO.Current | import("@codeworksh/plugin/sandbox/filesystem").Service | import("@codeworksh/plugin/sandbox/shell").Shell | import("effect/sql/SqlClient").SqlClient>;
|
|
1256
1520
|
declare namespace global_d_exports {
|
|
1257
|
-
export { global_d_exports as Global, Interface$8 as Interface, Service$9 as Service, app, appConfigDir, authFile, defaultLayer, homeConfig, layer$
|
|
1521
|
+
export { global_d_exports as Global, Interface$8 as Interface, Service$9 as Service, app, appConfigDir, authFile, defaultLayer$1 as defaultLayer, homeConfig, layer$9 as layer, layerWith, make$3 as make, resolve$3 as resolve };
|
|
1258
1522
|
}
|
|
1259
1523
|
declare const appConfigDir = ".codework";
|
|
1260
1524
|
declare const app = "codework";
|
|
@@ -1279,12 +1543,12 @@ declare function make$3(input?: Partial<Interface$8>): Interface$8;
|
|
|
1279
1543
|
*/
|
|
1280
1544
|
declare const authFile: (home: string | undefined) => string | undefined;
|
|
1281
1545
|
declare const resolve$3: (input?: Partial<Interface$8> | undefined) => Effect.Effect<Interface$8, Config.ConfigError, never>;
|
|
1282
|
-
declare const layer$
|
|
1283
|
-
declare const defaultLayer: Layer.Layer<Service$9, Config.ConfigError, never>;
|
|
1546
|
+
declare const layer$9: Layer.Layer<Service$9, Config.ConfigError, never>;
|
|
1547
|
+
declare const defaultLayer$1: Layer.Layer<Service$9, Config.ConfigError, never>;
|
|
1284
1548
|
declare const layerWith: (input: Partial<Interface$8>) => Layer.Layer<Service$9, Config.ConfigError, never>;
|
|
1285
1549
|
import * as import__codeworksh_plugin_settings from "@codeworksh/plugin/settings";
|
|
1286
1550
|
declare namespace settings_d_exports {
|
|
1287
|
-
export { Interface$7 as Interface, Options$4 as Options, Service$8 as Service, settings_d_exports as Settings, SettingsError, schema_d_exports$4.defaults as defaults, layer$
|
|
1551
|
+
export { Interface$7 as Interface, Options$4 as Options, Service$8 as Service, settings_d_exports as Settings, SettingsError, schema_d_exports$4.defaults as defaults, layer$8 as layer, load$1 as load, modules, parse$1 as parse, paths, projectRoot, userConfigDir };
|
|
1288
1552
|
}
|
|
1289
1553
|
interface Options$4 {
|
|
1290
1554
|
/**
|
|
@@ -1412,6 +1676,7 @@ declare const parse$1: (path: string, source: string) => Effect.Effect<{
|
|
|
1412
1676
|
readonly thinkingLevel?: "high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh" | undefined;
|
|
1413
1677
|
readonly toolExecution?: "parallel" | "sequential" | undefined;
|
|
1414
1678
|
readonly contextWindow?: number | undefined;
|
|
1679
|
+
readonly apiKey?: string | undefined;
|
|
1415
1680
|
readonly extras?: {
|
|
1416
1681
|
readonly [x: string]: unknown;
|
|
1417
1682
|
} | undefined;
|
|
@@ -1445,6 +1710,7 @@ declare const parse$1: (path: string, source: string) => Effect.Effect<{
|
|
|
1445
1710
|
readonly thinkingLevel?: "high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh" | undefined;
|
|
1446
1711
|
readonly toolExecution?: "parallel" | "sequential" | undefined;
|
|
1447
1712
|
readonly contextWindow?: number | undefined;
|
|
1713
|
+
readonly apiKey?: string | undefined;
|
|
1448
1714
|
readonly extras?: {
|
|
1449
1715
|
readonly [x: string]: unknown;
|
|
1450
1716
|
} | undefined;
|
|
@@ -1452,6 +1718,92 @@ declare const parse$1: (path: string, source: string) => Effect.Effect<{
|
|
|
1452
1718
|
};
|
|
1453
1719
|
} | undefined;
|
|
1454
1720
|
} | undefined;
|
|
1721
|
+
readonly models?: readonly {
|
|
1722
|
+
api?: {
|
|
1723
|
+
id?: string;
|
|
1724
|
+
url?: string;
|
|
1725
|
+
method?: "chat" | "completion" | "completionModel" | "languageModel" | "messages" | "responses";
|
|
1726
|
+
};
|
|
1727
|
+
baseUrl: string;
|
|
1728
|
+
compat?: {
|
|
1729
|
+
supportsThinkingLevel?: boolean;
|
|
1730
|
+
supportsToolSearch?: boolean;
|
|
1731
|
+
supportsAdditionalTools?: boolean;
|
|
1732
|
+
supportsStrictMode?: boolean;
|
|
1733
|
+
supportsOpenAIGrammarTools?: boolean;
|
|
1734
|
+
supportsThinkingTokenBudget?: boolean;
|
|
1735
|
+
forceAdaptiveThinking?: boolean;
|
|
1736
|
+
thinkingTokenBudgetField?: string;
|
|
1737
|
+
};
|
|
1738
|
+
contextWindow: number;
|
|
1739
|
+
cost: {
|
|
1740
|
+
input: number;
|
|
1741
|
+
output: number;
|
|
1742
|
+
cacheRead: number;
|
|
1743
|
+
cacheWrite: number;
|
|
1744
|
+
tiers?: {
|
|
1745
|
+
input: number;
|
|
1746
|
+
output: number;
|
|
1747
|
+
cacheRead: number;
|
|
1748
|
+
cacheWrite: number;
|
|
1749
|
+
inputTokensAbove: number;
|
|
1750
|
+
}[];
|
|
1751
|
+
serviceTierMultipliers?: Record<string, number>;
|
|
1752
|
+
};
|
|
1753
|
+
headers?: Record<string, string>;
|
|
1754
|
+
id: string;
|
|
1755
|
+
input: ("image" | "text")[];
|
|
1756
|
+
maxTokens: number;
|
|
1757
|
+
name: string;
|
|
1758
|
+
npm?: string;
|
|
1759
|
+
options?: Record<string, unknown>;
|
|
1760
|
+
protocol: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
|
|
1761
|
+
provider: {
|
|
1762
|
+
id: string;
|
|
1763
|
+
name: string;
|
|
1764
|
+
source: "api" | "config" | "custom" | "env" | "unknown";
|
|
1765
|
+
env: string[];
|
|
1766
|
+
key?: string;
|
|
1767
|
+
options?: Record<string, any>;
|
|
1768
|
+
};
|
|
1769
|
+
providerOptions?: Record<string, unknown>;
|
|
1770
|
+
providerOptionsKey?: string;
|
|
1771
|
+
reasoning: boolean;
|
|
1772
|
+
supportedProtocols?: {
|
|
1773
|
+
anthropic?: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
|
|
1774
|
+
google?: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
|
|
1775
|
+
googleVertex?: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
|
|
1776
|
+
googleVertexAnthropic?: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
|
|
1777
|
+
githubCopilot?: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
|
|
1778
|
+
openai?: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
|
|
1779
|
+
openaiCompatible?: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
|
|
1780
|
+
openaiCodex?: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
|
|
1781
|
+
openrouter?: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
|
|
1782
|
+
xai?: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
|
|
1783
|
+
};
|
|
1784
|
+
thinkingBudgets?: {
|
|
1785
|
+
high?: number;
|
|
1786
|
+
low?: number;
|
|
1787
|
+
max?: number;
|
|
1788
|
+
medium?: number;
|
|
1789
|
+
minimal?: number;
|
|
1790
|
+
xhigh?: number;
|
|
1791
|
+
};
|
|
1792
|
+
thinkingLevelMap?: {
|
|
1793
|
+
high?: string | null;
|
|
1794
|
+
low?: string | null;
|
|
1795
|
+
max?: string | null;
|
|
1796
|
+
medium?: string | null;
|
|
1797
|
+
minimal?: string | null;
|
|
1798
|
+
off?: string | null;
|
|
1799
|
+
xhigh?: string | null;
|
|
1800
|
+
};
|
|
1801
|
+
}[] | undefined;
|
|
1802
|
+
readonly retry?: {
|
|
1803
|
+
readonly maxRetries?: number | undefined;
|
|
1804
|
+
readonly baseDelayMs?: number | undefined;
|
|
1805
|
+
readonly maxDelayMs?: number | undefined;
|
|
1806
|
+
} | undefined;
|
|
1455
1807
|
}, SettingsError, never>;
|
|
1456
1808
|
interface Interface$7 {
|
|
1457
1809
|
/**
|
|
@@ -1514,6 +1866,7 @@ declare const load$1: (options: Options$4 & {
|
|
|
1514
1866
|
readonly thinkingLevel?: "high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh" | undefined;
|
|
1515
1867
|
readonly toolExecution?: "parallel" | "sequential" | undefined;
|
|
1516
1868
|
readonly contextWindow?: number | undefined;
|
|
1869
|
+
readonly apiKey?: string | undefined;
|
|
1517
1870
|
readonly extras?: {
|
|
1518
1871
|
readonly [x: string]: unknown;
|
|
1519
1872
|
} | undefined;
|
|
@@ -1547,6 +1900,7 @@ declare const load$1: (options: Options$4 & {
|
|
|
1547
1900
|
readonly thinkingLevel?: "high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh" | undefined;
|
|
1548
1901
|
readonly toolExecution?: "parallel" | "sequential" | undefined;
|
|
1549
1902
|
readonly contextWindow?: number | undefined;
|
|
1903
|
+
readonly apiKey?: string | undefined;
|
|
1550
1904
|
readonly extras?: {
|
|
1551
1905
|
readonly [x: string]: unknown;
|
|
1552
1906
|
} | undefined;
|
|
@@ -1559,6 +1913,7 @@ declare const load$1: (options: Options$4 & {
|
|
|
1559
1913
|
readonly thinkingLevel: "high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh";
|
|
1560
1914
|
readonly toolExecution: import("@codeworksh/plugin/settings").ToolExecution;
|
|
1561
1915
|
};
|
|
1916
|
+
retry: import("@codeworksh/plugin/settings").RetryPolicy;
|
|
1562
1917
|
plugins: (string | {
|
|
1563
1918
|
readonly enabled?: boolean | undefined;
|
|
1564
1919
|
readonly options?: {
|
|
@@ -1573,6 +1928,7 @@ declare const load$1: (options: Options$4 & {
|
|
|
1573
1928
|
readonly package: string;
|
|
1574
1929
|
})[];
|
|
1575
1930
|
declared: readonly schema_d_exports$4.Declared[];
|
|
1931
|
+
models: readonly schema_d_exports$4.DeclaredModel[];
|
|
1576
1932
|
}, SettingsError, never>;
|
|
1577
1933
|
/**
|
|
1578
1934
|
* Each module reference once, owned by the **last** file to declare it (D6).
|
|
@@ -1584,10 +1940,10 @@ declare const load$1: (options: Options$4 & {
|
|
|
1584
1940
|
* A reference keeps the position of its first declaration.
|
|
1585
1941
|
*/
|
|
1586
1942
|
declare const modules: (declared: ReadonlyArray<schema_d_exports$4.Declared>) => ReadonlyMap<string, schema_d_exports$4.Declared>;
|
|
1587
|
-
declare const layer$
|
|
1943
|
+
declare const layer$8: (options?: Omit<Options$4, "hostDir">) => Layer.Layer<Service$8, never, Service$9>;
|
|
1588
1944
|
import * as import__codeworksh_plugin_plugin from "@codeworksh/plugin/plugin";
|
|
1589
1945
|
declare namespace registry_d_exports {
|
|
1590
|
-
export { EventRegistrationError, registry_d_exports as EventRegistry, Interface$6 as Interface, Service$7 as Service, flatten, layer$
|
|
1946
|
+
export { EventRegistrationError, registry_d_exports as EventRegistry, Interface$6 as Interface, Service$7 as Service, flatten, layer$7 as layer };
|
|
1591
1947
|
}
|
|
1592
1948
|
/**
|
|
1593
1949
|
* Every event definition this harness knows: the kernel's, plus whatever the
|
|
@@ -1617,7 +1973,7 @@ declare class EventRegistrationError extends EventRegistrationError_base {}
|
|
|
1617
1973
|
* hide it behind plugin ordering.
|
|
1618
1974
|
*/
|
|
1619
1975
|
declare const flatten: (plugins: readonly plugin_d_exports.Plugin[]) => Effect.Effect<readonly schema_d_exports$10.EventSchema.Definition<string, Schema.Codec<unknown, unknown, never, never>>[], EventRegistrationError, never>;
|
|
1620
|
-
declare const layer$
|
|
1976
|
+
declare const layer$7: (definitions?: ReadonlyArray<schema_d_exports$10.EventSchema.Definition>) => Layer.Layer<Service$7, never, never>;
|
|
1621
1977
|
//#endregion
|
|
1622
1978
|
//#region src/plugin/error.d.ts
|
|
1623
1979
|
declare const SourceError_base: Schema.Class<SourceError, Schema.TaggedStruct<"PluginSourceError", {
|
|
@@ -1831,13 +2187,14 @@ interface Origin {
|
|
|
1831
2187
|
readonly file?: string;
|
|
1832
2188
|
}
|
|
1833
2189
|
declare namespace runtime_d_exports {
|
|
1834
|
-
export { Bindings, Interface$5 as Interface, Service$6 as Service, runtime_d_exports as SessionRuntime, layer$
|
|
2190
|
+
export { Bindings, Interface$5 as Interface, Service$6 as Service, runtime_d_exports as SessionRuntime, layer$6 as layer };
|
|
1835
2191
|
}
|
|
1836
2192
|
/**
|
|
1837
2193
|
* Per-session configuration, held in process.
|
|
1838
2194
|
*
|
|
1839
2195
|
* These bindings override file settings and the caller's `State.layer(options)` -- nothing here is written to the session log, so nothing
|
|
1840
|
-
* survives a restart. `Session.attach` merges into it rather than replacing it.
|
|
2196
|
+
* survives a restart. `Session.attach` merges into it rather than replacing it. The model and
|
|
2197
|
+
* thinking level are not held here: they are the session's durable `SessionSchema.Config`.
|
|
1841
2198
|
*/
|
|
1842
2199
|
type Bindings = Options$2;
|
|
1843
2200
|
interface Interface$5 {
|
|
@@ -1848,7 +2205,7 @@ interface Interface$5 {
|
|
|
1848
2205
|
}
|
|
1849
2206
|
declare const Service_base$5: Context.ServiceClass<Service$6, "@codeworksh/harness/session/runtime/Service", Interface$5>;
|
|
1850
2207
|
declare class Service$6 extends Service_base$5 {}
|
|
1851
|
-
declare const layer$
|
|
2208
|
+
declare const layer$6: Layer.Layer<Service$6, never, never>;
|
|
1852
2209
|
import * as import__codeworksh_plugin_plugin_tool from "@codeworksh/plugin/plugin/tool";
|
|
1853
2210
|
import * as import__codeworksh_plugin_tool_progress from "@codeworksh/plugin/tool/progress";
|
|
1854
2211
|
import * as import__codeworksh_plugin_tool from "@codeworksh/plugin/tool";
|
|
@@ -1950,7 +2307,7 @@ interface Resolved$1 {
|
|
|
1950
2307
|
readonly handle: Executor["handle"];
|
|
1951
2308
|
}
|
|
1952
2309
|
declare namespace state_d_exports {
|
|
1953
|
-
export { Interface$4 as Interface, Options$2 as Options, Reloaded, RequestOptions, Service$5 as Service, Snapshot$1 as Snapshot, SnapshotError, state_d_exports as State, ToolExecutionMode, layer$
|
|
2310
|
+
export { Configuration, Interface$4 as Interface, Options$2 as Options, Reloaded, RequestOptions, Service$5 as Service, Snapshot$1 as Snapshot, SnapshotError, state_d_exports as State, ToolExecutionMode, layer$5 as layer };
|
|
1954
2311
|
}
|
|
1955
2312
|
/**
|
|
1956
2313
|
* How a turn's tool calls are scheduled once the array has been re-read.
|
|
@@ -1978,7 +2335,7 @@ type ToolExecutionMode = "sequential" | "parallel";
|
|
|
1978
2335
|
*/
|
|
1979
2336
|
type RequestOptions = Omit<Protocol.CommonOptions, "signal" | "sessionId" | "reasoning"> & {
|
|
1980
2337
|
readonly baseURL?: string;
|
|
1981
|
-
readonly method?: Model
|
|
2338
|
+
readonly method?: Model.APIMethodEnum;
|
|
1982
2339
|
readonly toolChoice?: unknown;
|
|
1983
2340
|
readonly activeTools?: ReadonlyArray<string>;
|
|
1984
2341
|
readonly factoryOptions?: Record<string, unknown>;
|
|
@@ -1990,7 +2347,7 @@ interface Options$2 extends RequestOptions {
|
|
|
1990
2347
|
readonly promptSystemAppend?: string | PromptResolver;
|
|
1991
2348
|
readonly provider?: string;
|
|
1992
2349
|
readonly model?: string;
|
|
1993
|
-
readonly thinkingLevel?: Model
|
|
2350
|
+
readonly thinkingLevel?: Model.ThinkingLevel;
|
|
1994
2351
|
readonly toolExecution?: ToolExecutionMode;
|
|
1995
2352
|
}
|
|
1996
2353
|
declare const SnapshotError_base: Schema.Class<SnapshotError, Schema.TaggedStruct<"State.SnapshotError", {
|
|
@@ -2027,12 +2384,19 @@ interface Snapshot$1 {
|
|
|
2027
2384
|
readonly tools: Resolved$1;
|
|
2028
2385
|
readonly provider: string;
|
|
2029
2386
|
readonly model: string;
|
|
2030
|
-
readonly resolvedModel: Model
|
|
2031
|
-
readonly thinkingLevel: Model
|
|
2387
|
+
readonly resolvedModel: Model.Info;
|
|
2388
|
+
readonly thinkingLevel: Model.ThinkingLevel;
|
|
2032
2389
|
readonly request: RequestOptions;
|
|
2033
2390
|
/** Matched file attributes used to construct provider requests. */
|
|
2034
2391
|
readonly settings: schema_d_exports$4.Block;
|
|
2035
2392
|
readonly toolExecution: ToolExecutionMode;
|
|
2393
|
+
/** Agent-level retry of a transiently failed provider request. */
|
|
2394
|
+
readonly retry: schema_d_exports$4.RetryPolicy;
|
|
2395
|
+
}
|
|
2396
|
+
interface Configuration {
|
|
2397
|
+
readonly provider: string;
|
|
2398
|
+
readonly model: string;
|
|
2399
|
+
readonly thinkingLevel: Model.ThinkingLevel;
|
|
2036
2400
|
}
|
|
2037
2401
|
interface Reloaded {
|
|
2038
2402
|
/** How many plugins the new set holds, when it swapped. */
|
|
@@ -2061,6 +2425,12 @@ interface Interface$4 {
|
|
|
2061
2425
|
* set once at its top.
|
|
2062
2426
|
*/
|
|
2063
2427
|
readonly reload: Effect.Effect<Reloaded>;
|
|
2428
|
+
/**
|
|
2429
|
+
* The model and thinking level a session's next exchange runs with: its runtime bindings over
|
|
2430
|
+
* its chosen `SessionSchema.Config` over the caller's options over settings, resolved the
|
|
2431
|
+
* way {@link snapshot} resolves them. Nothing is looked up in the catalog.
|
|
2432
|
+
*/
|
|
2433
|
+
readonly configuration: (sessionId: ID$1) => Effect.Effect<Configuration, SettingsError>;
|
|
2064
2434
|
/**
|
|
2065
2435
|
* Capture runtime state for one exchange. Called inside a session drain,
|
|
2066
2436
|
* where the mount it reads is already open.
|
|
@@ -2091,7 +2461,7 @@ declare class Service$5 extends Service_base$4 {}
|
|
|
2091
2461
|
* files -- and so name different registries -- in two views; one shared pool could hold only one of
|
|
2092
2462
|
* those builds, and sessions in different projects would keep evicting each other's.
|
|
2093
2463
|
*/
|
|
2094
|
-
declare const layer$
|
|
2464
|
+
declare const layer$5: (options: Options$2, pool: Ref.Ref<Pool>, references: (settings: schema_d_exports$4.Info) => ReadonlyArray<PluginRef>,
|
|
2095
2465
|
/**
|
|
2096
2466
|
* The exchange-boundary check: the new pool when the store has moved, nothing when it has not.
|
|
2097
2467
|
* State does not know what a store is, so whoever built the pool answers this.
|
|
@@ -2340,6 +2710,21 @@ type AikitPart = Message.AssistantMessage["parts"][number] | Message.UserMessage
|
|
|
2340
2710
|
declare const encodePart: (part: AikitPart) => Effect.Effect<AppendPart, ContextEncodeError, never>;
|
|
2341
2711
|
declare const validateUserMessage: (value: unknown, entryId: string, type: string) => Effect.Effect<Message.UserMessage, ContextDecodeError>;
|
|
2342
2712
|
declare const encodeMessage: (message: {
|
|
2713
|
+
messageId: string;
|
|
2714
|
+
role: "user";
|
|
2715
|
+
time: {
|
|
2716
|
+
created: number;
|
|
2717
|
+
};
|
|
2718
|
+
parts: ({
|
|
2719
|
+
type: "text";
|
|
2720
|
+
text: string;
|
|
2721
|
+
textSignature?: string;
|
|
2722
|
+
} | {
|
|
2723
|
+
type: "image";
|
|
2724
|
+
data: string;
|
|
2725
|
+
mimeType: string;
|
|
2726
|
+
})[];
|
|
2727
|
+
} | {
|
|
2343
2728
|
role: "assistant";
|
|
2344
2729
|
protocol: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
|
|
2345
2730
|
provider: {
|
|
@@ -2480,6 +2865,14 @@ declare const encodeMessage: (message: {
|
|
|
2480
2865
|
completed: number;
|
|
2481
2866
|
};
|
|
2482
2867
|
parts: ({
|
|
2868
|
+
type: "text";
|
|
2869
|
+
text: string;
|
|
2870
|
+
textSignature?: string;
|
|
2871
|
+
} | {
|
|
2872
|
+
type: "image";
|
|
2873
|
+
data: string;
|
|
2874
|
+
mimeType: string;
|
|
2875
|
+
} | {
|
|
2483
2876
|
addedToolNames?: string[];
|
|
2484
2877
|
arguments: Record<string, any>;
|
|
2485
2878
|
callID: string;
|
|
@@ -2583,14 +2976,6 @@ declare const encodeMessage: (message: {
|
|
|
2583
2976
|
end: number;
|
|
2584
2977
|
};
|
|
2585
2978
|
type: "toolCall";
|
|
2586
|
-
} | {
|
|
2587
|
-
type: "text";
|
|
2588
|
-
text: string;
|
|
2589
|
-
textSignature?: string;
|
|
2590
|
-
} | {
|
|
2591
|
-
type: "image";
|
|
2592
|
-
data: string;
|
|
2593
|
-
mimeType: string;
|
|
2594
2979
|
} | {
|
|
2595
2980
|
type: "thinking";
|
|
2596
2981
|
thinking: string;
|
|
@@ -2639,7 +3024,8 @@ declare const encodeMessage: (message: {
|
|
|
2639
3024
|
responseId?: string;
|
|
2640
3025
|
responseModel?: string;
|
|
2641
3026
|
messageId: string;
|
|
2642
|
-
}
|
|
3027
|
+
}) => Effect.Effect<EncodedMessage, ContextEncodeError, never>;
|
|
3028
|
+
declare const decodeSyntheticMessage: (hydrated: HydratedEntry) => Effect.Effect<{
|
|
2643
3029
|
messageId: string;
|
|
2644
3030
|
role: "user";
|
|
2645
3031
|
time: {
|
|
@@ -2654,8 +3040,8 @@ declare const encodeMessage: (message: {
|
|
|
2654
3040
|
data: string;
|
|
2655
3041
|
mimeType: string;
|
|
2656
3042
|
})[];
|
|
2657
|
-
}
|
|
2658
|
-
declare const
|
|
3043
|
+
}, ContextDecodeError, never>;
|
|
3044
|
+
declare const decodeMessage: (hydrated: HydratedEntry) => Effect.Effect<{
|
|
2659
3045
|
messageId: string;
|
|
2660
3046
|
role: "user";
|
|
2661
3047
|
time: {
|
|
@@ -2670,8 +3056,7 @@ declare const decodeSyntheticMessage: (hydrated: HydratedEntry) => Effect.Effect
|
|
|
2670
3056
|
data: string;
|
|
2671
3057
|
mimeType: string;
|
|
2672
3058
|
})[];
|
|
2673
|
-
}
|
|
2674
|
-
declare const decodeMessage: (hydrated: HydratedEntry) => Effect.Effect<{
|
|
3059
|
+
} | {
|
|
2675
3060
|
role: "assistant";
|
|
2676
3061
|
protocol: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
|
|
2677
3062
|
provider: {
|
|
@@ -2812,6 +3197,14 @@ declare const decodeMessage: (hydrated: HydratedEntry) => Effect.Effect<{
|
|
|
2812
3197
|
completed: number;
|
|
2813
3198
|
};
|
|
2814
3199
|
parts: ({
|
|
3200
|
+
type: "text";
|
|
3201
|
+
text: string;
|
|
3202
|
+
textSignature?: string;
|
|
3203
|
+
} | {
|
|
3204
|
+
type: "image";
|
|
3205
|
+
data: string;
|
|
3206
|
+
mimeType: string;
|
|
3207
|
+
} | {
|
|
2815
3208
|
addedToolNames?: string[];
|
|
2816
3209
|
arguments: Record<string, any>;
|
|
2817
3210
|
callID: string;
|
|
@@ -2915,14 +3308,6 @@ declare const decodeMessage: (hydrated: HydratedEntry) => Effect.Effect<{
|
|
|
2915
3308
|
end: number;
|
|
2916
3309
|
};
|
|
2917
3310
|
type: "toolCall";
|
|
2918
|
-
} | {
|
|
2919
|
-
type: "text";
|
|
2920
|
-
text: string;
|
|
2921
|
-
textSignature?: string;
|
|
2922
|
-
} | {
|
|
2923
|
-
type: "image";
|
|
2924
|
-
data: string;
|
|
2925
|
-
mimeType: string;
|
|
2926
3311
|
} | {
|
|
2927
3312
|
type: "thinking";
|
|
2928
3313
|
thinking: string;
|
|
@@ -2971,24 +3356,9 @@ declare const decodeMessage: (hydrated: HydratedEntry) => Effect.Effect<{
|
|
|
2971
3356
|
responseId?: string;
|
|
2972
3357
|
responseModel?: string;
|
|
2973
3358
|
messageId: string;
|
|
2974
|
-
} | {
|
|
2975
|
-
messageId: string;
|
|
2976
|
-
role: "user";
|
|
2977
|
-
time: {
|
|
2978
|
-
created: number;
|
|
2979
|
-
};
|
|
2980
|
-
parts: ({
|
|
2981
|
-
type: "text";
|
|
2982
|
-
text: string;
|
|
2983
|
-
textSignature?: string;
|
|
2984
|
-
} | {
|
|
2985
|
-
type: "image";
|
|
2986
|
-
data: string;
|
|
2987
|
-
mimeType: string;
|
|
2988
|
-
})[];
|
|
2989
3359
|
}, ContextDecodeError, never>;
|
|
2990
3360
|
declare namespace context_d_exports {
|
|
2991
|
-
export { context_d_exports as Context, assemble_d_exports as ContextAssembly, codec_d_exports as ContextCodec, ContextDecodeError, ContextEncodeError, ContextInvariantError, ContextReadError, EncodedMessage, Interface$1 as Interface, Service$2 as Service, Snapshot, assemblePath, decodeMessage, decodeSyntheticMessage, encodeMessage, encodePart, layer$
|
|
3361
|
+
export { context_d_exports as Context, assemble_d_exports as ContextAssembly, codec_d_exports as ContextCodec, ContextDecodeError, ContextEncodeError, ContextInvariantError, ContextReadError, EncodedMessage, Interface$1 as Interface, Service$2 as Service, Snapshot, assemblePath, decodeMessage, decodeSyntheticMessage, encodeMessage, encodePart, layer$4 as layer, validateUserMessage };
|
|
2992
3362
|
}
|
|
2993
3363
|
type ContextReadError = SessionNotFoundError | ContextDecodeError;
|
|
2994
3364
|
interface Interface$1 {
|
|
@@ -2996,7 +3366,7 @@ interface Interface$1 {
|
|
|
2996
3366
|
}
|
|
2997
3367
|
declare const Service_base$1: Context.ServiceClass<Service$2, "@codeworksh/harness/context/context/Service", Interface$1>;
|
|
2998
3368
|
declare class Service$2 extends Service_base$1 {}
|
|
2999
|
-
declare const layer$
|
|
3369
|
+
declare const layer$4: Layer.Layer<Service$2, never, Service$16>;
|
|
3000
3370
|
//#endregion
|
|
3001
3371
|
//#region src/session/input/schema.d.ts
|
|
3002
3372
|
declare const Admitted: Schema.Struct<{
|
|
@@ -3010,14 +3380,36 @@ declare const Admitted: Schema.Struct<{
|
|
|
3010
3380
|
create: () => string & import("effect/Brand").Brand<"Session.ID">;
|
|
3011
3381
|
};
|
|
3012
3382
|
readonly prompt: Schema.Struct<{
|
|
3013
|
-
readonly
|
|
3383
|
+
readonly parts: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
3384
|
+
readonly type: Schema.Literal<"text">;
|
|
3385
|
+
readonly text: Schema.String;
|
|
3386
|
+
}>, Schema.Struct<{
|
|
3387
|
+
readonly type: Schema.Literal<"image">;
|
|
3388
|
+
readonly data: Schema.String;
|
|
3389
|
+
readonly mimeType: Schema.String;
|
|
3390
|
+
}>]>>;
|
|
3014
3391
|
}> & {
|
|
3015
3392
|
equivalence: import("effect/Equivalence").Equivalence<{
|
|
3016
|
-
readonly
|
|
3393
|
+
readonly parts: readonly ({
|
|
3394
|
+
readonly type: "text";
|
|
3395
|
+
readonly text: string;
|
|
3396
|
+
} | {
|
|
3397
|
+
readonly type: "image";
|
|
3398
|
+
readonly data: string;
|
|
3399
|
+
readonly mimeType: string;
|
|
3400
|
+
})[];
|
|
3017
3401
|
}>;
|
|
3018
|
-
|
|
3019
|
-
readonly
|
|
3402
|
+
fromText: (text: string) => {
|
|
3403
|
+
readonly parts: readonly ({
|
|
3404
|
+
readonly type: "text";
|
|
3405
|
+
readonly text: string;
|
|
3406
|
+
} | {
|
|
3407
|
+
readonly type: "image";
|
|
3408
|
+
readonly data: string;
|
|
3409
|
+
readonly mimeType: string;
|
|
3410
|
+
})[];
|
|
3020
3411
|
};
|
|
3412
|
+
text: (prompt: Prompt) => string;
|
|
3021
3413
|
};
|
|
3022
3414
|
readonly delivery: Schema.Literals<readonly ["steer", "followUp"]>;
|
|
3023
3415
|
readonly timeCreated: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
@@ -3028,7 +3420,7 @@ declare namespace schema_d_exports$2 {
|
|
|
3028
3420
|
export { ID, schema_d_exports$2 as SessionMessageSchema };
|
|
3029
3421
|
}
|
|
3030
3422
|
declare namespace control_d_exports {
|
|
3031
|
-
export { control_d_exports as Control, Interface, PromptConflictError, PromptInput$1 as PromptInput, Service$1 as Service, layer$
|
|
3423
|
+
export { control_d_exports as Control, Interface, PromptConflictError, PromptInput$1 as PromptInput, Service$1 as Service, layer$3 as layer };
|
|
3032
3424
|
}
|
|
3033
3425
|
declare const PromptConflictError_base: Schema.Class<PromptConflictError, Schema.TaggedStruct<"PromptConflictError", {
|
|
3034
3426
|
readonly sessionId: Schema.String;
|
|
@@ -3080,7 +3472,272 @@ interface Interface {
|
|
|
3080
3472
|
}
|
|
3081
3473
|
declare const Service_base: Context.ServiceClass<Service$1, "@codeworksh/harness/control/Service", Interface>;
|
|
3082
3474
|
declare class Service$1 extends Service_base {}
|
|
3083
|
-
declare const layer$
|
|
3475
|
+
declare const layer$3: Layer.Layer<Service$1, never, Service$17 | Service$16 | Service$3 | import("effect/sql/SqlClient").SqlClient>;
|
|
3476
|
+
declare namespace db_d_exports {
|
|
3477
|
+
export { db_d_exports as Database, SqlClient$1 as SqlClient, SqlSchema$1 as SqlSchema, defaultLayer, layer$2 as layer, locationConfig, path, resolveDatabaseLocation };
|
|
3478
|
+
}
|
|
3479
|
+
declare function layer$2(location: string): Layer.Layer<SqlClient.SqlClient | SqliteClient.SqliteClient, never, never>;
|
|
3480
|
+
declare const locationConfig: Config.Config<string>;
|
|
3481
|
+
declare function resolveDatabaseLocation(configured: string, data: string): string;
|
|
3482
|
+
declare const path: (data?: string | undefined) => Effect.Effect<string, Config.ConfigError, never>;
|
|
3483
|
+
declare const defaultLayer: Layer.Layer<SqlClient.SqlClient | SqliteClient.SqliteClient, Config.ConfigError, never>;
|
|
3484
|
+
declare namespace catalog_d_exports {
|
|
3485
|
+
export { Credential, Credentials, catalog_d_exports as ModelCatalog, Provider, RefreshError, Status, available, effective, entry, filename, fromSettings, layer$1 as layer, loadError, models, oauthStorage, providers, refresh$1 as refresh, sync, ttlConfig };
|
|
3486
|
+
}
|
|
3487
|
+
declare const filename = "models.gen.json";
|
|
3488
|
+
/** How old the catalog may get before a check downloads a new one. */
|
|
3489
|
+
declare const ttlConfig: Config.Config<Duration.Duration>;
|
|
3490
|
+
declare const RefreshError_base: Schema.Class<RefreshError, Schema.TaggedStruct<"ModelCatalog.RefreshError", {
|
|
3491
|
+
readonly path: Schema.String;
|
|
3492
|
+
readonly detail: Schema.String;
|
|
3493
|
+
}>, import("effect/Cause").YieldableError>;
|
|
3494
|
+
declare class RefreshError extends RefreshError_base {
|
|
3495
|
+
get message(): string;
|
|
3496
|
+
}
|
|
3497
|
+
interface Status {
|
|
3498
|
+
readonly path: string;
|
|
3499
|
+
/** False when the catalog was fresh enough to keep. */
|
|
3500
|
+
readonly refreshed: boolean;
|
|
3501
|
+
}
|
|
3502
|
+
/** Download a new catalog for the home when it is missing, older than the TTL, or `force` asks. */
|
|
3503
|
+
declare const refresh$1: (home: string, options?: {
|
|
3504
|
+
readonly force?: boolean;
|
|
3505
|
+
} | undefined) => Effect.Effect<{
|
|
3506
|
+
path: string;
|
|
3507
|
+
refreshed: false;
|
|
3508
|
+
} | {
|
|
3509
|
+
path: string;
|
|
3510
|
+
refreshed: true;
|
|
3511
|
+
}, Config.ConfigError | RefreshError, never>;
|
|
3512
|
+
/** Check the home's catalog once, for a command that runs and exits; returns the file aikit reads. */
|
|
3513
|
+
declare const sync: (home: string) => Effect.Effect<string, never, never>;
|
|
3514
|
+
/**
|
|
3515
|
+
* Check at boot, and with `watch`, keep checking for the life of the layer. A file whose mtime
|
|
3516
|
+
* moved -- refreshed here, by `codework models refresh`, or by hand -- is reloaded, so the
|
|
3517
|
+
* process never serves a catalog older than what is on disk.
|
|
3518
|
+
*/
|
|
3519
|
+
declare const layer$1: (options: {
|
|
3520
|
+
readonly home: string;
|
|
3521
|
+
readonly watch: boolean;
|
|
3522
|
+
}) => Layer.Layer<never, never, never>;
|
|
3523
|
+
/** Translate aikit's catalog failure, or undefined for anything else. */
|
|
3524
|
+
declare const loadError: (cause: unknown) => ModelCatalogError | undefined;
|
|
3525
|
+
declare const models: Effect.Effect<Partial<Record<string, Record<string, {
|
|
3526
|
+
api?: {
|
|
3527
|
+
id?: string;
|
|
3528
|
+
url?: string;
|
|
3529
|
+
method?: "chat" | "completion" | "completionModel" | "languageModel" | "messages" | "responses";
|
|
3530
|
+
};
|
|
3531
|
+
baseUrl: string;
|
|
3532
|
+
compat?: {
|
|
3533
|
+
supportsThinkingLevel?: boolean;
|
|
3534
|
+
supportsToolSearch?: boolean;
|
|
3535
|
+
supportsAdditionalTools?: boolean;
|
|
3536
|
+
supportsStrictMode?: boolean;
|
|
3537
|
+
supportsOpenAIGrammarTools?: boolean;
|
|
3538
|
+
supportsThinkingTokenBudget?: boolean;
|
|
3539
|
+
forceAdaptiveThinking?: boolean;
|
|
3540
|
+
thinkingTokenBudgetField?: string;
|
|
3541
|
+
};
|
|
3542
|
+
contextWindow: number;
|
|
3543
|
+
cost: {
|
|
3544
|
+
input: number;
|
|
3545
|
+
output: number;
|
|
3546
|
+
cacheRead: number;
|
|
3547
|
+
cacheWrite: number;
|
|
3548
|
+
tiers?: {
|
|
3549
|
+
input: number;
|
|
3550
|
+
output: number;
|
|
3551
|
+
cacheRead: number;
|
|
3552
|
+
cacheWrite: number;
|
|
3553
|
+
inputTokensAbove: number;
|
|
3554
|
+
}[];
|
|
3555
|
+
serviceTierMultipliers?: Record<string, number>;
|
|
3556
|
+
};
|
|
3557
|
+
headers?: Record<string, string>;
|
|
3558
|
+
id: string;
|
|
3559
|
+
input: ("image" | "text")[];
|
|
3560
|
+
maxTokens: number;
|
|
3561
|
+
name: string;
|
|
3562
|
+
npm?: string;
|
|
3563
|
+
options?: Record<string, unknown>;
|
|
3564
|
+
protocol: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
|
|
3565
|
+
provider: {
|
|
3566
|
+
id: string;
|
|
3567
|
+
name: string;
|
|
3568
|
+
source: "api" | "config" | "custom" | "env" | "unknown";
|
|
3569
|
+
env: string[];
|
|
3570
|
+
key?: string;
|
|
3571
|
+
options?: Record<string, any>;
|
|
3572
|
+
};
|
|
3573
|
+
providerOptions?: Record<string, unknown>;
|
|
3574
|
+
providerOptionsKey?: string;
|
|
3575
|
+
reasoning: boolean;
|
|
3576
|
+
supportedProtocols?: {
|
|
3577
|
+
anthropic?: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
|
|
3578
|
+
google?: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
|
|
3579
|
+
googleVertex?: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
|
|
3580
|
+
googleVertexAnthropic?: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
|
|
3581
|
+
githubCopilot?: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
|
|
3582
|
+
openai?: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
|
|
3583
|
+
openaiCompatible?: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
|
|
3584
|
+
openaiCodex?: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
|
|
3585
|
+
openrouter?: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
|
|
3586
|
+
xai?: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
|
|
3587
|
+
};
|
|
3588
|
+
thinkingBudgets?: {
|
|
3589
|
+
high?: number;
|
|
3590
|
+
low?: number;
|
|
3591
|
+
max?: number;
|
|
3592
|
+
medium?: number;
|
|
3593
|
+
minimal?: number;
|
|
3594
|
+
xhigh?: number;
|
|
3595
|
+
};
|
|
3596
|
+
thinkingLevelMap?: {
|
|
3597
|
+
high?: string | null;
|
|
3598
|
+
low?: string | null;
|
|
3599
|
+
max?: string | null;
|
|
3600
|
+
medium?: string | null;
|
|
3601
|
+
minimal?: string | null;
|
|
3602
|
+
off?: string | null;
|
|
3603
|
+
xhigh?: string | null;
|
|
3604
|
+
};
|
|
3605
|
+
}>>>, ModelCatalogError, never>;
|
|
3606
|
+
declare const providers: Effect.Effect<string[], ModelCatalogError, never>;
|
|
3607
|
+
declare const Credentials_base: Context.ServiceClass<Credentials, "@codeworksh/harness/model/catalog/Credentials", {
|
|
3608
|
+
readonly authFile: string | undefined;
|
|
3609
|
+
}>;
|
|
3610
|
+
/**
|
|
3611
|
+
* Where this process reads OAuth logins: `<home>/aikit/auth.json` when a home was chosen,
|
|
3612
|
+
* otherwise `undefined`, which lets aikit resolve it (`CODEWORK_CREDENTIALS`, then the default home).
|
|
3613
|
+
* One value, so the model calls and {@link available} can never read different files.
|
|
3614
|
+
*/
|
|
3615
|
+
declare class Credentials extends Credentials_base {}
|
|
3616
|
+
/** The storage options an aikit OAuth store takes for {@link Credentials.authFile}. */
|
|
3617
|
+
declare const oauthStorage: (authFile: string | undefined) => {} | {
|
|
3618
|
+
path: string;
|
|
3619
|
+
};
|
|
3620
|
+
/**
|
|
3621
|
+
* A settings entry as the catalog reads it. Settings entries are read exactly like generated ones;
|
|
3622
|
+
* the one difference is `provider.key`, written `"${NAME}"`, which becomes the variable name aikit
|
|
3623
|
+
* looks up when it calls the model.
|
|
3624
|
+
*/
|
|
3625
|
+
declare const fromSettings: (entry: Model.Info) => Model.Info;
|
|
3626
|
+
/** The settings entry for a model, if one declares it: the last declaration wins. */
|
|
3627
|
+
declare const entry: (declared: ReadonlyArray<schema_d_exports$4.DeclaredModel>, provider: string, id: string) => Model.Info | undefined;
|
|
3628
|
+
/**
|
|
3629
|
+
* The generated catalog with settings entries appended in layer order: a new provider or model is
|
|
3630
|
+
* added, and an entry for an existing one replaces it, as a later entry in a generated file would.
|
|
3631
|
+
*/
|
|
3632
|
+
declare const effective: (declared: readonly schema_d_exports$4.DeclaredModel[]) => Effect.Effect<Partial<Record<string, Record<string, {
|
|
3633
|
+
api?: {
|
|
3634
|
+
id?: string;
|
|
3635
|
+
url?: string;
|
|
3636
|
+
method?: "chat" | "completion" | "completionModel" | "languageModel" | "messages" | "responses";
|
|
3637
|
+
};
|
|
3638
|
+
baseUrl: string;
|
|
3639
|
+
compat?: {
|
|
3640
|
+
supportsThinkingLevel?: boolean;
|
|
3641
|
+
supportsToolSearch?: boolean;
|
|
3642
|
+
supportsAdditionalTools?: boolean;
|
|
3643
|
+
supportsStrictMode?: boolean;
|
|
3644
|
+
supportsOpenAIGrammarTools?: boolean;
|
|
3645
|
+
supportsThinkingTokenBudget?: boolean;
|
|
3646
|
+
forceAdaptiveThinking?: boolean;
|
|
3647
|
+
thinkingTokenBudgetField?: string;
|
|
3648
|
+
};
|
|
3649
|
+
contextWindow: number;
|
|
3650
|
+
cost: {
|
|
3651
|
+
input: number;
|
|
3652
|
+
output: number;
|
|
3653
|
+
cacheRead: number;
|
|
3654
|
+
cacheWrite: number;
|
|
3655
|
+
tiers?: {
|
|
3656
|
+
input: number;
|
|
3657
|
+
output: number;
|
|
3658
|
+
cacheRead: number;
|
|
3659
|
+
cacheWrite: number;
|
|
3660
|
+
inputTokensAbove: number;
|
|
3661
|
+
}[];
|
|
3662
|
+
serviceTierMultipliers?: Record<string, number>;
|
|
3663
|
+
};
|
|
3664
|
+
headers?: Record<string, string>;
|
|
3665
|
+
id: string;
|
|
3666
|
+
input: ("image" | "text")[];
|
|
3667
|
+
maxTokens: number;
|
|
3668
|
+
name: string;
|
|
3669
|
+
npm?: string;
|
|
3670
|
+
options?: Record<string, unknown>;
|
|
3671
|
+
protocol: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
|
|
3672
|
+
provider: {
|
|
3673
|
+
id: string;
|
|
3674
|
+
name: string;
|
|
3675
|
+
source: "api" | "config" | "custom" | "env" | "unknown";
|
|
3676
|
+
env: string[];
|
|
3677
|
+
key?: string;
|
|
3678
|
+
options?: Record<string, any>;
|
|
3679
|
+
};
|
|
3680
|
+
providerOptions?: Record<string, unknown>;
|
|
3681
|
+
providerOptionsKey?: string;
|
|
3682
|
+
reasoning: boolean;
|
|
3683
|
+
supportedProtocols?: {
|
|
3684
|
+
anthropic?: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
|
|
3685
|
+
google?: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
|
|
3686
|
+
googleVertex?: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
|
|
3687
|
+
googleVertexAnthropic?: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
|
|
3688
|
+
githubCopilot?: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
|
|
3689
|
+
openai?: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
|
|
3690
|
+
openaiCompatible?: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
|
|
3691
|
+
openaiCodex?: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
|
|
3692
|
+
openrouter?: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
|
|
3693
|
+
xai?: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
|
|
3694
|
+
};
|
|
3695
|
+
thinkingBudgets?: {
|
|
3696
|
+
high?: number;
|
|
3697
|
+
low?: number;
|
|
3698
|
+
max?: number;
|
|
3699
|
+
medium?: number;
|
|
3700
|
+
minimal?: number;
|
|
3701
|
+
xhigh?: number;
|
|
3702
|
+
};
|
|
3703
|
+
thinkingLevelMap?: {
|
|
3704
|
+
high?: string | null;
|
|
3705
|
+
low?: string | null;
|
|
3706
|
+
max?: string | null;
|
|
3707
|
+
medium?: string | null;
|
|
3708
|
+
minimal?: string | null;
|
|
3709
|
+
off?: string | null;
|
|
3710
|
+
xhigh?: string | null;
|
|
3711
|
+
};
|
|
3712
|
+
}>>>, ModelCatalogError, never>;
|
|
3713
|
+
/**
|
|
3714
|
+
* How a provider is credentialed: an API key in the host environment, a stored OAuth login, or
|
|
3715
|
+
* nothing to find because it names no key at all (a keyless endpoint defined in settings).
|
|
3716
|
+
*/
|
|
3717
|
+
type Credential = "apiKey" | "oauth" | "none";
|
|
3718
|
+
/** A provider this process can call, and how. */
|
|
3719
|
+
interface Provider {
|
|
3720
|
+
readonly id: string;
|
|
3721
|
+
readonly credential: Credential;
|
|
3722
|
+
readonly models: Readonly<Record<string, Model.Info>>;
|
|
3723
|
+
}
|
|
3724
|
+
/**
|
|
3725
|
+
* The effective catalog's providers this process has credentials for, optionally only those
|
|
3726
|
+
* credentialed one way. `hostDir` selects the project whose settings entries apply; without it,
|
|
3727
|
+
* only the user's.
|
|
3728
|
+
*
|
|
3729
|
+
* `apiKey`: the provider's `key` or `env` names are set in the host environment (they include the
|
|
3730
|
+
* OAuth providers' env tokens). `oauth`: a login is stored in the {@link Credentials} file. `none`:
|
|
3731
|
+
* the provider names no key and isn't an OAuth provider. A provider with a key and a login reports
|
|
3732
|
+
* `apiKey`, the one a model call uses first.
|
|
3733
|
+
*
|
|
3734
|
+
* Presence, not validity: nothing is sent over the network, so a revoked key still counts. A
|
|
3735
|
+
* client showing a model picker should still add the session's current model.
|
|
3736
|
+
*/
|
|
3737
|
+
declare const available: (filter?: {
|
|
3738
|
+
readonly hostDir?: string;
|
|
3739
|
+
readonly credential?: Credential;
|
|
3740
|
+
} | undefined) => Effect.Effect<Provider[], ModelCatalogError | SettingsError, Credentials | Service$8>;
|
|
3084
3741
|
declare namespace event_d_exports$1 {
|
|
3085
3742
|
export { event_d_exports$1 as LLMEventPublisher, Publisher, Terminal, make$1 as make };
|
|
3086
3743
|
}
|
|
@@ -3117,8 +3774,8 @@ interface Input {
|
|
|
3117
3774
|
readonly context: Message.Context;
|
|
3118
3775
|
readonly provider: string;
|
|
3119
3776
|
readonly model: string;
|
|
3120
|
-
readonly resolvedModel: Model
|
|
3121
|
-
readonly thinkingLevel?: Model
|
|
3777
|
+
readonly resolvedModel: Model.Info;
|
|
3778
|
+
readonly thinkingLevel?: Model.ThinkingLevel;
|
|
3122
3779
|
readonly options?: RequestOptions;
|
|
3123
3780
|
readonly settings?: schema_d_exports$4.Block;
|
|
3124
3781
|
}
|
|
@@ -3134,14 +3791,14 @@ interface OpenOptions {
|
|
|
3134
3791
|
readonly authFile?: string;
|
|
3135
3792
|
}
|
|
3136
3793
|
type Request = (input: RequestInput) => Effect.Effect<Terminal, ModelCatalogError | ModelNotFoundError | ProviderError | LLMStreamError>;
|
|
3137
|
-
declare const runtimeOptions: (input: Input, model: Model
|
|
3794
|
+
declare const runtimeOptions: (input: Input, model: Model.Info, signal: AbortSignal) => {
|
|
3138
3795
|
thinkingBudgets?: import("@codeworksh/aikit").ThinkingBudgets;
|
|
3139
3796
|
activeTools?: string[];
|
|
3140
3797
|
reasoning?: "high" | "low" | "max" | "medium" | "minimal" | "xhigh";
|
|
3141
3798
|
sessionId: string & import("effect/Brand").Brand<"Session.ID">;
|
|
3142
3799
|
signal: AbortSignal;
|
|
3143
3800
|
baseURL?: string;
|
|
3144
|
-
method?: Model
|
|
3801
|
+
method?: Model.APIMethodEnum;
|
|
3145
3802
|
toolChoice?: unknown;
|
|
3146
3803
|
factoryOptions?: Record<string, unknown>;
|
|
3147
3804
|
providerOptions?: Record<string, Record<string, unknown>>;
|
|
@@ -3151,7 +3808,7 @@ declare const runtimeOptions: (input: Input, model: Model$1.Info, signal: AbortS
|
|
|
3151
3808
|
maxRetries?: number;
|
|
3152
3809
|
maxTokens?: number;
|
|
3153
3810
|
metadata?: Record<string, unknown>;
|
|
3154
|
-
onPayload?: (payload: unknown, model: Model
|
|
3811
|
+
onPayload?: (payload: unknown, model: Model.TModel<Model.KnownProviderEnum>) => Promise<unknown>;
|
|
3155
3812
|
temperature?: number;
|
|
3156
3813
|
timeoutMs?: number;
|
|
3157
3814
|
};
|
|
@@ -3159,8 +3816,11 @@ declare const runtimeOptions: (input: Input, model: Model$1.Info, signal: AbortS
|
|
|
3159
3816
|
declare const providerError: (input: Pick<Input, "provider" | "model">, failure: AikitFailure.Failure) => ProviderError;
|
|
3160
3817
|
/** Read structured terminal data while remaining compatible with older Aikit messages. */
|
|
3161
3818
|
declare const messageFailure: (message: Message.AssistantMessage) => AikitFailure.Failure;
|
|
3162
|
-
type ResolutionInput = Pick<Input, "provider" | "model" | "settings"
|
|
3163
|
-
|
|
3819
|
+
type ResolutionInput = Pick<Input, "provider" | "model" | "settings"> & {
|
|
3820
|
+
/** Catalog entries from the session's settings, which take precedence over the generated catalog. */
|
|
3821
|
+
readonly models?: ReadonlyArray<schema_d_exports$4.DeclaredModel>;
|
|
3822
|
+
};
|
|
3823
|
+
type Resolve = (input: ResolutionInput) => Effect.Effect<Model.Info, ModelCatalogError | ModelNotFoundError | ProviderError>;
|
|
3164
3824
|
/** Resolve once before exchange setup; execution reuses this exact instance. */
|
|
3165
3825
|
declare const resolve$2: Resolve;
|
|
3166
3826
|
/** Start a provider stream using the model pinned by State. */
|
|
@@ -3205,7 +3865,7 @@ interface Options$1 {
|
|
|
3205
3865
|
declare const load: (entry: Entry$1, options: Options$1) => Effect.Effect<driver_d_exports.SandboxDriver.Registration, errors_d_exports.SandboxDriverLoadError, never>;
|
|
3206
3866
|
declare const loadAll: (entries: ReadonlyArray<Entry$1>, options: Options$1) => Effect.Effect<ReadonlyArray<driver_d_exports.SandboxDriver.Registration>, errors_d_exports.SandboxDriverLoadError>;
|
|
3207
3867
|
declare namespace harness_d_exports {
|
|
3208
|
-
export { harness_d_exports as Harness, Options, layer
|
|
3868
|
+
export { harness_d_exports as Harness, Options, layer };
|
|
3209
3869
|
}
|
|
3210
3870
|
interface Options {
|
|
3211
3871
|
/**
|
|
@@ -3241,9 +3901,9 @@ interface Options {
|
|
|
3241
3901
|
*/
|
|
3242
3902
|
readonly watchModels?: boolean;
|
|
3243
3903
|
}
|
|
3244
|
-
declare const layer
|
|
3904
|
+
declare const layer: (options?: Options) => Layer.Layer<Controller | Credentials | Registry | Service$9 | Service$8 | Service$17 | Service$16 | Service$7 | Service$6 | Service$5 | Service$3 | Service$1 | Service$2 | SqlClient$1.SqlClient | import("@effect/sql-sqlite-node/SqliteClient").SqliteClient, import("effect/Config").ConfigError | EventRegistrationError | InstallError | LoadError | import("@codeworksh/plugin/sandbox/errors").SandboxDriverLoadError | import("@codeworksh/plugin/sandbox/errors").SandboxDriverRegistrationError | SettingsError | SourceError | StoreError, never>;
|
|
3245
3905
|
declare namespace sandbox_d_exports {
|
|
3246
|
-
export { CreateInput$1 as CreateInput, Driver, DriverInfo, Info$2 as Info, RegisterInput, sandbox_d_exports as Sandbox, instance_d_exports.SandboxInstance as SandboxInstance, Selection, create$2 as create, destroy, drivers, get$1 as get, list, refresh
|
|
3906
|
+
export { CreateInput$1 as CreateInput, Driver, DriverInfo, Info$2 as Info, RegisterInput, sandbox_d_exports as Sandbox, instance_d_exports.SandboxInstance as SandboxInstance, Selection, create$2 as create, destroy, drivers, get$1 as get, list, refresh, register, resolve$1 as resolve, stop, wake };
|
|
3247
3907
|
}
|
|
3248
3908
|
type Info$2 = instance_d_exports.SandboxInstance.Info;
|
|
3249
3909
|
type Driver = Entry$1;
|
|
@@ -3287,12 +3947,12 @@ declare const list: (input?: {
|
|
|
3287
3947
|
readonly driver?: string;
|
|
3288
3948
|
readonly status?: instance_d_exports.SandboxInstance.Status;
|
|
3289
3949
|
} | undefined) => Effect.Effect<readonly instance_d_exports.SandboxInstance.Info[], never, Controller>;
|
|
3290
|
-
declare const refresh
|
|
3950
|
+
declare const refresh: (id: string & import("effect/Brand").Brand<"SandboxInstance.ID">) => Effect.Effect<instance_d_exports.SandboxInstance.Info, import("@codeworksh/plugin/sandbox/errors").SandboxRefreshError, Controller>;
|
|
3291
3951
|
declare const wake: (id: string & import("effect/Brand").Brand<"SandboxInstance.ID">) => Effect.Effect<instance_d_exports.SandboxInstance.Info, import("@codeworksh/plugin/sandbox/errors").SandboxWakeError, Controller>;
|
|
3292
3952
|
declare const stop: (id: string & import("effect/Brand").Brand<"SandboxInstance.ID">) => Effect.Effect<instance_d_exports.SandboxInstance.Info, import("@codeworksh/plugin/sandbox/errors").SandboxStopError, Controller>;
|
|
3293
3953
|
declare const destroy: (id: string & import("effect/Brand").Brand<"SandboxInstance.ID">) => Effect.Effect<void, import("@codeworksh/plugin/sandbox/errors").SandboxDestroyError, Controller>;
|
|
3294
3954
|
declare namespace session_d_exports {
|
|
3295
|
-
export { schema_d_exports$8.AbsolutePath as AbsolutePath, AttachInput, CreateInput, Handle, Info$1 as Info, ModelConfig, PromptInput, RelinkInput, RuntimeInput, session_d_exports as Session, schema_d_exports$2 as SessionMessageSchema, schema_d_exports$6 as SessionSchema, SystemPromptConfig, ToolsConfig, attach, create$1 as create, get, link, relink };
|
|
3955
|
+
export { schema_d_exports$8.AbsolutePath as AbsolutePath, AttachInput, CreateInput, Handle, Info$1 as Info, ModelConfig, PromptInput, RelinkInput, RuntimeInput, session_d_exports as Session, schema_d_exports$2 as SessionMessageSchema, schema_d_exports$6 as SessionSchema, SystemPromptConfig, ToolsConfig, attach, configuration, create$1 as create, get, link, relink };
|
|
3296
3956
|
}
|
|
3297
3957
|
interface ModelConfig {
|
|
3298
3958
|
readonly provider: string;
|
|
@@ -3308,7 +3968,7 @@ interface SystemPromptConfig {
|
|
|
3308
3968
|
}
|
|
3309
3969
|
interface RuntimeInput {
|
|
3310
3970
|
readonly model?: ModelConfig;
|
|
3311
|
-
readonly thinkingLevel?: Model
|
|
3971
|
+
readonly thinkingLevel?: Model.ThinkingLevel;
|
|
3312
3972
|
readonly tools?: ToolsConfig;
|
|
3313
3973
|
readonly systemPrompt?: SystemPromptConfig;
|
|
3314
3974
|
}
|
|
@@ -3336,11 +3996,18 @@ interface RelinkInput {
|
|
|
3336
3996
|
readonly sandbox?: Info$2;
|
|
3337
3997
|
readonly directory?: string;
|
|
3338
3998
|
}
|
|
3339
|
-
|
|
3340
|
-
readonly text: string;
|
|
3999
|
+
interface PromptOptions {
|
|
3341
4000
|
readonly delivery?: Delivery;
|
|
3342
4001
|
readonly id?: ID;
|
|
3343
|
-
}
|
|
4002
|
+
}
|
|
4003
|
+
/** Text, or ordered text and image parts. Images are checked before anything is saved. */
|
|
4004
|
+
type PromptInput = string | (PromptOptions & {
|
|
4005
|
+
readonly text: string;
|
|
4006
|
+
}) | (PromptOptions & {
|
|
4007
|
+
readonly parts: ReadonlyArray<Part>;
|
|
4008
|
+
});
|
|
4009
|
+
type Admission = ReturnType<Interface["prompt"]>;
|
|
4010
|
+
type PromptResult = Effect.Effect<Effect.Success<Admission>, Effect.Error<Admission> | InvalidPromptError>;
|
|
3344
4011
|
interface Info$1 {
|
|
3345
4012
|
readonly id: ID$1;
|
|
3346
4013
|
readonly title: string;
|
|
@@ -3357,8 +4024,8 @@ interface Handle {
|
|
|
3357
4024
|
readonly id: ID$1;
|
|
3358
4025
|
readonly active: Effect.Effect<boolean>;
|
|
3359
4026
|
readonly info: Effect.Effect<Info$1, SessionNotFoundError>;
|
|
3360
|
-
readonly prompt: (input: PromptInput) =>
|
|
3361
|
-
readonly run: (input: PromptInput) =>
|
|
4027
|
+
readonly prompt: (input: PromptInput) => PromptResult;
|
|
4028
|
+
readonly run: (input: PromptInput) => PromptResult;
|
|
3362
4029
|
readonly wait: () => ReturnType<Interface["wait"]>;
|
|
3363
4030
|
readonly resume: () => ReturnType<Interface["resume"]>;
|
|
3364
4031
|
/** Stops active work and waits for its cleanup; idle is a no-op returning false. */
|
|
@@ -3378,14 +4045,14 @@ declare const create$1: (input?: CreateInput | undefined) => Effect.Effect<{
|
|
|
3378
4045
|
hasHostLink: boolean;
|
|
3379
4046
|
sandbox?: instance_d_exports.SandboxInstance.Info;
|
|
3380
4047
|
}, SessionNotFoundError, never>;
|
|
3381
|
-
prompt: (input: PromptInput) => Effect.Effect<Admitted, PromptConflictError | SessionNotFoundError, never>;
|
|
3382
|
-
run: (input: PromptInput) => Effect.Effect<Admitted, PromptConflictError | SessionNotFoundError, never>;
|
|
4048
|
+
prompt: (input: PromptInput) => Effect.Effect<Admitted, InvalidPromptError | PromptConflictError | SessionNotFoundError, never>;
|
|
4049
|
+
run: (input: PromptInput) => Effect.Effect<Admitted, InvalidPromptError | PromptConflictError | SessionNotFoundError, never>;
|
|
3383
4050
|
wait: () => Effect.Effect<void, SessionNotFoundError, never>;
|
|
3384
4051
|
resume: () => Effect.Effect<void, RunError, never>;
|
|
3385
4052
|
interrupt: () => Effect.Effect<boolean, never, never>;
|
|
3386
4053
|
events: () => Stream.Stream<schema_d_exports$10.EventSchema.Payload<schema_d_exports$10.EventSchema.Definition<string, import("effect/Schema").Codec<unknown, unknown, never, never>>>, SubscriptionOverflowError, never>;
|
|
3387
4054
|
path: () => Effect.Effect<HydratedEntry[], never, never>;
|
|
3388
|
-
}, Error | import("@codeworksh/plugin/sandbox/errors").SandboxMountError, Controller | Service$17 | Service$16 | Service$6 | Service$1 | import("effect/
|
|
4055
|
+
}, Error | import("@codeworksh/plugin/sandbox/errors").SandboxMountError, Controller | Service$17 | Service$16 | Service$6 | Service$1 | import("effect/sql/SqlClient").SqlClient>;
|
|
3389
4056
|
/**
|
|
3390
4057
|
* Point an existing session at a host directory, or clear it with `null`.
|
|
3391
4058
|
*
|
|
@@ -3406,8 +4073,8 @@ declare const link: (input: {
|
|
|
3406
4073
|
hasHostLink: boolean;
|
|
3407
4074
|
sandbox?: instance_d_exports.SandboxInstance.Info;
|
|
3408
4075
|
}, SessionNotFoundError, never>;
|
|
3409
|
-
prompt: (input: PromptInput) => Effect.Effect<Admitted, PromptConflictError | SessionNotFoundError, never>;
|
|
3410
|
-
run: (input: PromptInput) => Effect.Effect<Admitted, PromptConflictError | SessionNotFoundError, never>;
|
|
4076
|
+
prompt: (input: PromptInput) => Effect.Effect<Admitted, InvalidPromptError | PromptConflictError | SessionNotFoundError, never>;
|
|
4077
|
+
run: (input: PromptInput) => Effect.Effect<Admitted, InvalidPromptError | PromptConflictError | SessionNotFoundError, never>;
|
|
3411
4078
|
wait: () => Effect.Effect<void, SessionNotFoundError, never>;
|
|
3412
4079
|
resume: () => Effect.Effect<void, RunError, never>;
|
|
3413
4080
|
interrupt: () => Effect.Effect<boolean, never, never>;
|
|
@@ -3432,18 +4099,24 @@ declare const relink: (input: RelinkInput) => Effect.Effect<{
|
|
|
3432
4099
|
hasHostLink: boolean;
|
|
3433
4100
|
sandbox?: instance_d_exports.SandboxInstance.Info;
|
|
3434
4101
|
}, SessionNotFoundError, never>;
|
|
3435
|
-
prompt: (input: PromptInput) => Effect.Effect<Admitted, PromptConflictError | SessionNotFoundError, never>;
|
|
3436
|
-
run: (input: PromptInput) => Effect.Effect<Admitted, PromptConflictError | SessionNotFoundError, never>;
|
|
4102
|
+
prompt: (input: PromptInput) => Effect.Effect<Admitted, InvalidPromptError | PromptConflictError | SessionNotFoundError, never>;
|
|
4103
|
+
run: (input: PromptInput) => Effect.Effect<Admitted, InvalidPromptError | PromptConflictError | SessionNotFoundError, never>;
|
|
3437
4104
|
wait: () => Effect.Effect<void, SessionNotFoundError, never>;
|
|
3438
4105
|
resume: () => Effect.Effect<void, RunError, never>;
|
|
3439
4106
|
interrupt: () => Effect.Effect<boolean, never, never>;
|
|
3440
4107
|
events: () => Stream.Stream<schema_d_exports$10.EventSchema.Payload<schema_d_exports$10.EventSchema.Definition<string, import("effect/Schema").Codec<unknown, unknown, never, never>>>, SubscriptionOverflowError, never>;
|
|
3441
4108
|
path: () => Effect.Effect<HydratedEntry[], never, never>;
|
|
3442
|
-
}, RelinkError | SessionNotFoundError | Error | import("@codeworksh/plugin/sandbox/errors").SandboxMountError, Controller | Service$17 | Service$16 | Service$1 | import("effect/
|
|
4109
|
+
}, RelinkError | SessionNotFoundError | Error | import("@codeworksh/plugin/sandbox/errors").SandboxMountError, Controller | Service$17 | Service$16 | Service$1 | import("effect/sql/SqlClient").SqlClient>;
|
|
3443
4110
|
declare const get: (sessionId: string & import("effect/Brand").Brand<"Session.ID">) => Effect.Effect<Option.None<Handle> | Option.Some<Handle>, never, Controller | Service$17 | Service$16 | Service$1>;
|
|
3444
4111
|
declare const attach: (input: AttachInput) => Effect.Effect<Handle, SessionNotFoundError, Controller | Service$17 | Service$16 | Service$6 | Service$1>;
|
|
4112
|
+
/**
|
|
4113
|
+
* The model and thinking level the session's next exchange runs with. A choice made through
|
|
4114
|
+
* {@link create} or {@link attach} is saved with the session and outlives the process; without
|
|
4115
|
+
* one, the session follows its settings.
|
|
4116
|
+
*/
|
|
4117
|
+
declare const configuration: (sessionId: string & import("effect/Brand").Brand<"Session.ID">) => Effect.Effect<Configuration, SessionNotFoundError | SettingsError, Service$16 | Service$5>;
|
|
3445
4118
|
declare namespace list_d_exports {
|
|
3446
|
-
export { Definitions, DurableDefinitions, list_d_exports as EventList, ExecutionFailed, ExecutionInterrupted, ExecutionStarted, ExecutionSucceeded, LLMEnded, LLMFailed, LLMStarted, LLMTextDelta, LLMTextEnd, LLMTextStart, LLMThinkingDelta, LLMThinkingEnd, LLMThinkingStart, PluginUpdated, PromptAdmitted, Prompted, PublicDefinitions, SessionForked, ToolProgress, ToolSettled, ToolStarted, TurnAbortCause, TurnAborted, TurnEnded, TurnStarted };
|
|
4119
|
+
export { ConfigChanged, Definitions, DurableDefinitions, list_d_exports as EventList, ExecutionFailed, ExecutionInterrupted, ExecutionStarted, ExecutionSucceeded, LLMEnded, LLMFailed, LLMStarted, LLMTextDelta, LLMTextEnd, LLMTextStart, LLMThinkingDelta, LLMThinkingEnd, LLMThinkingStart, PluginUpdated, PromptAdmitted, Prompted, PublicDefinitions, RetryFinished, RetryScheduled, SessionForked, ToolProgress, ToolSettled, ToolStarted, TurnAbortCause, TurnAborted, TurnEnded, TurnStarted };
|
|
3447
4120
|
}
|
|
3448
4121
|
declare const PromptAdmitted: Schema.Struct<{
|
|
3449
4122
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
@@ -3471,14 +4144,36 @@ declare const PromptAdmitted: Schema.Struct<{
|
|
|
3471
4144
|
from: (id: string) => string & import("effect/Brand").Brand<"Message.ID">;
|
|
3472
4145
|
};
|
|
3473
4146
|
prompt: Schema.Struct<{
|
|
3474
|
-
readonly
|
|
4147
|
+
readonly parts: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
4148
|
+
readonly type: Schema.Literal<"text">;
|
|
4149
|
+
readonly text: Schema.String;
|
|
4150
|
+
}>, Schema.Struct<{
|
|
4151
|
+
readonly type: Schema.Literal<"image">;
|
|
4152
|
+
readonly data: Schema.String;
|
|
4153
|
+
readonly mimeType: Schema.String;
|
|
4154
|
+
}>]>>;
|
|
3475
4155
|
}> & {
|
|
3476
4156
|
equivalence: import("effect/Equivalence").Equivalence<{
|
|
3477
|
-
readonly
|
|
4157
|
+
readonly parts: readonly ({
|
|
4158
|
+
readonly type: "text";
|
|
4159
|
+
readonly text: string;
|
|
4160
|
+
} | {
|
|
4161
|
+
readonly type: "image";
|
|
4162
|
+
readonly data: string;
|
|
4163
|
+
readonly mimeType: string;
|
|
4164
|
+
})[];
|
|
3478
4165
|
}>;
|
|
3479
|
-
|
|
3480
|
-
readonly
|
|
4166
|
+
fromText: (text: string) => {
|
|
4167
|
+
readonly parts: readonly ({
|
|
4168
|
+
readonly type: "text";
|
|
4169
|
+
readonly text: string;
|
|
4170
|
+
} | {
|
|
4171
|
+
readonly type: "image";
|
|
4172
|
+
readonly data: string;
|
|
4173
|
+
readonly mimeType: string;
|
|
4174
|
+
})[];
|
|
3481
4175
|
};
|
|
4176
|
+
text: (prompt: Prompt) => string;
|
|
3482
4177
|
};
|
|
3483
4178
|
delivery: Schema.Literals<readonly ["steer", "followUp"]>;
|
|
3484
4179
|
}>;
|
|
@@ -3499,14 +4194,36 @@ declare const PromptAdmitted: Schema.Struct<{
|
|
|
3499
4194
|
from: (id: string) => string & import("effect/Brand").Brand<"Message.ID">;
|
|
3500
4195
|
};
|
|
3501
4196
|
prompt: Schema.Struct<{
|
|
3502
|
-
readonly
|
|
4197
|
+
readonly parts: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
4198
|
+
readonly type: Schema.Literal<"text">;
|
|
4199
|
+
readonly text: Schema.String;
|
|
4200
|
+
}>, Schema.Struct<{
|
|
4201
|
+
readonly type: Schema.Literal<"image">;
|
|
4202
|
+
readonly data: Schema.String;
|
|
4203
|
+
readonly mimeType: Schema.String;
|
|
4204
|
+
}>]>>;
|
|
3503
4205
|
}> & {
|
|
3504
4206
|
equivalence: import("effect/Equivalence").Equivalence<{
|
|
3505
|
-
readonly
|
|
4207
|
+
readonly parts: readonly ({
|
|
4208
|
+
readonly type: "text";
|
|
4209
|
+
readonly text: string;
|
|
4210
|
+
} | {
|
|
4211
|
+
readonly type: "image";
|
|
4212
|
+
readonly data: string;
|
|
4213
|
+
readonly mimeType: string;
|
|
4214
|
+
})[];
|
|
3506
4215
|
}>;
|
|
3507
|
-
|
|
3508
|
-
readonly
|
|
4216
|
+
fromText: (text: string) => {
|
|
4217
|
+
readonly parts: readonly ({
|
|
4218
|
+
readonly type: "text";
|
|
4219
|
+
readonly text: string;
|
|
4220
|
+
} | {
|
|
4221
|
+
readonly type: "image";
|
|
4222
|
+
readonly data: string;
|
|
4223
|
+
readonly mimeType: string;
|
|
4224
|
+
})[];
|
|
3509
4225
|
};
|
|
4226
|
+
text: (prompt: Prompt) => string;
|
|
3510
4227
|
};
|
|
3511
4228
|
delivery: Schema.Literals<readonly ["steer", "followUp"]>;
|
|
3512
4229
|
}>;
|
|
@@ -3538,14 +4255,36 @@ declare const Prompted: Schema.Struct<{
|
|
|
3538
4255
|
from: (id: string) => string & import("effect/Brand").Brand<"Message.ID">;
|
|
3539
4256
|
};
|
|
3540
4257
|
prompt: Schema.Struct<{
|
|
3541
|
-
readonly
|
|
4258
|
+
readonly parts: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
4259
|
+
readonly type: Schema.Literal<"text">;
|
|
4260
|
+
readonly text: Schema.String;
|
|
4261
|
+
}>, Schema.Struct<{
|
|
4262
|
+
readonly type: Schema.Literal<"image">;
|
|
4263
|
+
readonly data: Schema.String;
|
|
4264
|
+
readonly mimeType: Schema.String;
|
|
4265
|
+
}>]>>;
|
|
3542
4266
|
}> & {
|
|
3543
4267
|
equivalence: import("effect/Equivalence").Equivalence<{
|
|
3544
|
-
readonly
|
|
4268
|
+
readonly parts: readonly ({
|
|
4269
|
+
readonly type: "text";
|
|
4270
|
+
readonly text: string;
|
|
4271
|
+
} | {
|
|
4272
|
+
readonly type: "image";
|
|
4273
|
+
readonly data: string;
|
|
4274
|
+
readonly mimeType: string;
|
|
4275
|
+
})[];
|
|
3545
4276
|
}>;
|
|
3546
|
-
|
|
3547
|
-
readonly
|
|
4277
|
+
fromText: (text: string) => {
|
|
4278
|
+
readonly parts: readonly ({
|
|
4279
|
+
readonly type: "text";
|
|
4280
|
+
readonly text: string;
|
|
4281
|
+
} | {
|
|
4282
|
+
readonly type: "image";
|
|
4283
|
+
readonly data: string;
|
|
4284
|
+
readonly mimeType: string;
|
|
4285
|
+
})[];
|
|
3548
4286
|
};
|
|
4287
|
+
text: (prompt: Prompt) => string;
|
|
3549
4288
|
};
|
|
3550
4289
|
delivery: Schema.Literals<readonly ["steer", "followUp"]>;
|
|
3551
4290
|
}>;
|
|
@@ -3566,19 +4305,94 @@ declare const Prompted: Schema.Struct<{
|
|
|
3566
4305
|
from: (id: string) => string & import("effect/Brand").Brand<"Message.ID">;
|
|
3567
4306
|
};
|
|
3568
4307
|
prompt: Schema.Struct<{
|
|
3569
|
-
readonly
|
|
4308
|
+
readonly parts: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
4309
|
+
readonly type: Schema.Literal<"text">;
|
|
4310
|
+
readonly text: Schema.String;
|
|
4311
|
+
}>, Schema.Struct<{
|
|
4312
|
+
readonly type: Schema.Literal<"image">;
|
|
4313
|
+
readonly data: Schema.String;
|
|
4314
|
+
readonly mimeType: Schema.String;
|
|
4315
|
+
}>]>>;
|
|
3570
4316
|
}> & {
|
|
3571
4317
|
equivalence: import("effect/Equivalence").Equivalence<{
|
|
3572
|
-
readonly
|
|
4318
|
+
readonly parts: readonly ({
|
|
4319
|
+
readonly type: "text";
|
|
4320
|
+
readonly text: string;
|
|
4321
|
+
} | {
|
|
4322
|
+
readonly type: "image";
|
|
4323
|
+
readonly data: string;
|
|
4324
|
+
readonly mimeType: string;
|
|
4325
|
+
})[];
|
|
3573
4326
|
}>;
|
|
3574
|
-
|
|
3575
|
-
readonly
|
|
4327
|
+
fromText: (text: string) => {
|
|
4328
|
+
readonly parts: readonly ({
|
|
4329
|
+
readonly type: "text";
|
|
4330
|
+
readonly text: string;
|
|
4331
|
+
} | {
|
|
4332
|
+
readonly type: "image";
|
|
4333
|
+
readonly data: string;
|
|
4334
|
+
readonly mimeType: string;
|
|
4335
|
+
})[];
|
|
3576
4336
|
};
|
|
4337
|
+
text: (prompt: Prompt) => string;
|
|
4338
|
+
};
|
|
4339
|
+
delivery: Schema.Literals<readonly ["steer", "followUp"]>;
|
|
4340
|
+
}>;
|
|
4341
|
+
};
|
|
4342
|
+
type Prompted = typeof Prompted.Type;
|
|
4343
|
+
declare const ConfigChanged: Schema.Struct<{
|
|
4344
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
4345
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
4346
|
+
};
|
|
4347
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
|
|
4348
|
+
readonly type: Schema.Literal<"session.config.changed">;
|
|
4349
|
+
readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
4350
|
+
readonly aggregateId: Schema.String;
|
|
4351
|
+
readonly seq: Schema.Int;
|
|
4352
|
+
readonly version: Schema.Int;
|
|
4353
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
4354
|
+
readonly aggregateId: Schema.String;
|
|
4355
|
+
readonly seq: Schema.Int;
|
|
4356
|
+
readonly version: Schema.Int;
|
|
4357
|
+
}>>, never, never>;
|
|
4358
|
+
readonly data: Schema.Struct<{
|
|
4359
|
+
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
4360
|
+
readonly provider: Schema.String;
|
|
4361
|
+
readonly id: Schema.String;
|
|
4362
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
4363
|
+
readonly provider: Schema.String;
|
|
4364
|
+
readonly id: Schema.String;
|
|
4365
|
+
}>>, never, never>;
|
|
4366
|
+
readonly thinkingLevel: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>>, Schema.optionalKey<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>, never, never>;
|
|
4367
|
+
readonly timestamp: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
4368
|
+
readonly sessionId: Schema.brand<Schema.String, "Session.ID"> & {
|
|
4369
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Session.ID">;
|
|
4370
|
+
create: () => string & import("effect/Brand").Brand<"Session.ID">;
|
|
4371
|
+
};
|
|
4372
|
+
}>;
|
|
4373
|
+
}> & {
|
|
4374
|
+
type: "session.config.changed";
|
|
4375
|
+
durable?: {
|
|
4376
|
+
readonly version: number;
|
|
4377
|
+
readonly aggregate: string;
|
|
4378
|
+
};
|
|
4379
|
+
data: Schema.Struct<{
|
|
4380
|
+
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
4381
|
+
readonly provider: Schema.String;
|
|
4382
|
+
readonly id: Schema.String;
|
|
4383
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
4384
|
+
readonly provider: Schema.String;
|
|
4385
|
+
readonly id: Schema.String;
|
|
4386
|
+
}>>, never, never>;
|
|
4387
|
+
readonly thinkingLevel: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>>, Schema.optionalKey<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>, never, never>;
|
|
4388
|
+
readonly timestamp: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
4389
|
+
readonly sessionId: Schema.brand<Schema.String, "Session.ID"> & {
|
|
4390
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Session.ID">;
|
|
4391
|
+
create: () => string & import("effect/Brand").Brand<"Session.ID">;
|
|
3577
4392
|
};
|
|
3578
|
-
delivery: Schema.Literals<readonly ["steer", "followUp"]>;
|
|
3579
4393
|
}>;
|
|
3580
4394
|
};
|
|
3581
|
-
type
|
|
4395
|
+
type ConfigChanged = typeof ConfigChanged.Type;
|
|
3582
4396
|
declare const TurnAbortCause: Schema.Union<readonly [Schema.TaggedStruct<"interrupted", {}>, Schema.TaggedStruct<"error", {
|
|
3583
4397
|
readonly message: Schema.String;
|
|
3584
4398
|
}>, Schema.TaggedStruct<"deferred", {
|
|
@@ -3714,6 +4528,99 @@ declare const TurnAborted: Schema.Struct<{
|
|
|
3714
4528
|
}>;
|
|
3715
4529
|
};
|
|
3716
4530
|
type TurnAborted = typeof TurnAborted.Type;
|
|
4531
|
+
/**
|
|
4532
|
+
* A failed provider request will be repeated after `delayMs`. `attempt` counts retries from 1, so
|
|
4533
|
+
* the request that failed was attempt `attempt - 1`; the failed draft is already settled.
|
|
4534
|
+
*/
|
|
4535
|
+
declare const RetryScheduled: Schema.Struct<{
|
|
4536
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
4537
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
4538
|
+
};
|
|
4539
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
|
|
4540
|
+
readonly type: Schema.Literal<"session.retry.scheduled">;
|
|
4541
|
+
readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
4542
|
+
readonly aggregateId: Schema.String;
|
|
4543
|
+
readonly seq: Schema.Int;
|
|
4544
|
+
readonly version: Schema.Int;
|
|
4545
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
4546
|
+
readonly aggregateId: Schema.String;
|
|
4547
|
+
readonly seq: Schema.Int;
|
|
4548
|
+
readonly version: Schema.Int;
|
|
4549
|
+
}>>, never, never>;
|
|
4550
|
+
readonly data: Schema.Struct<{
|
|
4551
|
+
readonly timestamp: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
4552
|
+
readonly sessionId: Schema.brand<Schema.String, "Session.ID"> & {
|
|
4553
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Session.ID">;
|
|
4554
|
+
create: () => string & import("effect/Brand").Brand<"Session.ID">;
|
|
4555
|
+
};
|
|
4556
|
+
readonly attempt: Schema.Int;
|
|
4557
|
+
readonly maxRetries: Schema.Int;
|
|
4558
|
+
readonly delayMs: Schema.Int;
|
|
4559
|
+
readonly message: Schema.String;
|
|
4560
|
+
}>;
|
|
4561
|
+
}> & {
|
|
4562
|
+
type: "session.retry.scheduled";
|
|
4563
|
+
durable?: {
|
|
4564
|
+
readonly version: number;
|
|
4565
|
+
readonly aggregate: string;
|
|
4566
|
+
};
|
|
4567
|
+
data: Schema.Struct<{
|
|
4568
|
+
readonly timestamp: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
4569
|
+
readonly sessionId: Schema.brand<Schema.String, "Session.ID"> & {
|
|
4570
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Session.ID">;
|
|
4571
|
+
create: () => string & import("effect/Brand").Brand<"Session.ID">;
|
|
4572
|
+
};
|
|
4573
|
+
readonly attempt: Schema.Int;
|
|
4574
|
+
readonly maxRetries: Schema.Int;
|
|
4575
|
+
readonly delayMs: Schema.Int;
|
|
4576
|
+
readonly message: Schema.String;
|
|
4577
|
+
}>;
|
|
4578
|
+
};
|
|
4579
|
+
type RetryScheduled = typeof RetryScheduled.Type;
|
|
4580
|
+
/** Once per turn that retried: whether a retry succeeded, after how many. */
|
|
4581
|
+
declare const RetryFinished: Schema.Struct<{
|
|
4582
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
4583
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
4584
|
+
};
|
|
4585
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
|
|
4586
|
+
readonly type: Schema.Literal<"session.retry.finished">;
|
|
4587
|
+
readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
4588
|
+
readonly aggregateId: Schema.String;
|
|
4589
|
+
readonly seq: Schema.Int;
|
|
4590
|
+
readonly version: Schema.Int;
|
|
4591
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
4592
|
+
readonly aggregateId: Schema.String;
|
|
4593
|
+
readonly seq: Schema.Int;
|
|
4594
|
+
readonly version: Schema.Int;
|
|
4595
|
+
}>>, never, never>;
|
|
4596
|
+
readonly data: Schema.Struct<{
|
|
4597
|
+
readonly timestamp: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
4598
|
+
readonly sessionId: Schema.brand<Schema.String, "Session.ID"> & {
|
|
4599
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Session.ID">;
|
|
4600
|
+
create: () => string & import("effect/Brand").Brand<"Session.ID">;
|
|
4601
|
+
};
|
|
4602
|
+
readonly attempt: Schema.Int;
|
|
4603
|
+
readonly success: Schema.Boolean;
|
|
4604
|
+
readonly message: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4605
|
+
}>;
|
|
4606
|
+
}> & {
|
|
4607
|
+
type: "session.retry.finished";
|
|
4608
|
+
durable?: {
|
|
4609
|
+
readonly version: number;
|
|
4610
|
+
readonly aggregate: string;
|
|
4611
|
+
};
|
|
4612
|
+
data: Schema.Struct<{
|
|
4613
|
+
readonly timestamp: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
4614
|
+
readonly sessionId: Schema.brand<Schema.String, "Session.ID"> & {
|
|
4615
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Session.ID">;
|
|
4616
|
+
create: () => string & import("effect/Brand").Brand<"Session.ID">;
|
|
4617
|
+
};
|
|
4618
|
+
readonly attempt: Schema.Int;
|
|
4619
|
+
readonly success: Schema.Boolean;
|
|
4620
|
+
readonly message: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4621
|
+
}>;
|
|
4622
|
+
};
|
|
4623
|
+
type RetryFinished = typeof RetryFinished.Type;
|
|
3717
4624
|
/** Durable insertion of the request's draft assistant placeholder. */
|
|
3718
4625
|
declare const LLMStarted: Schema.Struct<{
|
|
3719
4626
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
@@ -3881,6 +4788,14 @@ declare const LLMStarted: Schema.Struct<{
|
|
|
3881
4788
|
completed: number;
|
|
3882
4789
|
};
|
|
3883
4790
|
parts: ({
|
|
4791
|
+
type: "text";
|
|
4792
|
+
text: string;
|
|
4793
|
+
textSignature?: string;
|
|
4794
|
+
} | {
|
|
4795
|
+
type: "image";
|
|
4796
|
+
data: string;
|
|
4797
|
+
mimeType: string;
|
|
4798
|
+
} | {
|
|
3884
4799
|
addedToolNames?: string[];
|
|
3885
4800
|
arguments: Record<string, any>;
|
|
3886
4801
|
callID: string;
|
|
@@ -3984,14 +4899,6 @@ declare const LLMStarted: Schema.Struct<{
|
|
|
3984
4899
|
end: number;
|
|
3985
4900
|
};
|
|
3986
4901
|
type: "toolCall";
|
|
3987
|
-
} | {
|
|
3988
|
-
type: "text";
|
|
3989
|
-
text: string;
|
|
3990
|
-
textSignature?: string;
|
|
3991
|
-
} | {
|
|
3992
|
-
type: "image";
|
|
3993
|
-
data: string;
|
|
3994
|
-
mimeType: string;
|
|
3995
4902
|
} | {
|
|
3996
4903
|
type: "thinking";
|
|
3997
4904
|
thinking: string;
|
|
@@ -4181,6 +5088,14 @@ declare const LLMStarted: Schema.Struct<{
|
|
|
4181
5088
|
completed: number;
|
|
4182
5089
|
};
|
|
4183
5090
|
parts: ({
|
|
5091
|
+
type: "text";
|
|
5092
|
+
text: string;
|
|
5093
|
+
textSignature?: string;
|
|
5094
|
+
} | {
|
|
5095
|
+
type: "image";
|
|
5096
|
+
data: string;
|
|
5097
|
+
mimeType: string;
|
|
5098
|
+
} | {
|
|
4184
5099
|
addedToolNames?: string[];
|
|
4185
5100
|
arguments: Record<string, any>;
|
|
4186
5101
|
callID: string;
|
|
@@ -4284,14 +5199,6 @@ declare const LLMStarted: Schema.Struct<{
|
|
|
4284
5199
|
end: number;
|
|
4285
5200
|
};
|
|
4286
5201
|
type: "toolCall";
|
|
4287
|
-
} | {
|
|
4288
|
-
type: "text";
|
|
4289
|
-
text: string;
|
|
4290
|
-
textSignature?: string;
|
|
4291
|
-
} | {
|
|
4292
|
-
type: "image";
|
|
4293
|
-
data: string;
|
|
4294
|
-
mimeType: string;
|
|
4295
5202
|
} | {
|
|
4296
5203
|
type: "thinking";
|
|
4297
5204
|
thinking: string;
|
|
@@ -4499,6 +5406,14 @@ declare const LLMStarted: Schema.Struct<{
|
|
|
4499
5406
|
completed: number;
|
|
4500
5407
|
};
|
|
4501
5408
|
parts: ({
|
|
5409
|
+
type: "text";
|
|
5410
|
+
text: string;
|
|
5411
|
+
textSignature?: string;
|
|
5412
|
+
} | {
|
|
5413
|
+
type: "image";
|
|
5414
|
+
data: string;
|
|
5415
|
+
mimeType: string;
|
|
5416
|
+
} | {
|
|
4502
5417
|
addedToolNames?: string[];
|
|
4503
5418
|
arguments: Record<string, any>;
|
|
4504
5419
|
callID: string;
|
|
@@ -4602,14 +5517,6 @@ declare const LLMStarted: Schema.Struct<{
|
|
|
4602
5517
|
end: number;
|
|
4603
5518
|
};
|
|
4604
5519
|
type: "toolCall";
|
|
4605
|
-
} | {
|
|
4606
|
-
type: "text";
|
|
4607
|
-
text: string;
|
|
4608
|
-
textSignature?: string;
|
|
4609
|
-
} | {
|
|
4610
|
-
type: "image";
|
|
4611
|
-
data: string;
|
|
4612
|
-
mimeType: string;
|
|
4613
5520
|
} | {
|
|
4614
5521
|
type: "thinking";
|
|
4615
5522
|
thinking: string;
|
|
@@ -4799,6 +5706,14 @@ declare const LLMStarted: Schema.Struct<{
|
|
|
4799
5706
|
completed: number;
|
|
4800
5707
|
};
|
|
4801
5708
|
parts: ({
|
|
5709
|
+
type: "text";
|
|
5710
|
+
text: string;
|
|
5711
|
+
textSignature?: string;
|
|
5712
|
+
} | {
|
|
5713
|
+
type: "image";
|
|
5714
|
+
data: string;
|
|
5715
|
+
mimeType: string;
|
|
5716
|
+
} | {
|
|
4802
5717
|
addedToolNames?: string[];
|
|
4803
5718
|
arguments: Record<string, any>;
|
|
4804
5719
|
callID: string;
|
|
@@ -4902,14 +5817,6 @@ declare const LLMStarted: Schema.Struct<{
|
|
|
4902
5817
|
end: number;
|
|
4903
5818
|
};
|
|
4904
5819
|
type: "toolCall";
|
|
4905
|
-
} | {
|
|
4906
|
-
type: "text";
|
|
4907
|
-
text: string;
|
|
4908
|
-
textSignature?: string;
|
|
4909
|
-
} | {
|
|
4910
|
-
type: "image";
|
|
4911
|
-
data: string;
|
|
4912
|
-
mimeType: string;
|
|
4913
5820
|
} | {
|
|
4914
5821
|
type: "thinking";
|
|
4915
5822
|
thinking: string;
|
|
@@ -5420,6 +6327,14 @@ declare const LLMEnded: Schema.Struct<{
|
|
|
5420
6327
|
completed: number;
|
|
5421
6328
|
};
|
|
5422
6329
|
parts: ({
|
|
6330
|
+
type: "text";
|
|
6331
|
+
text: string;
|
|
6332
|
+
textSignature?: string;
|
|
6333
|
+
} | {
|
|
6334
|
+
type: "image";
|
|
6335
|
+
data: string;
|
|
6336
|
+
mimeType: string;
|
|
6337
|
+
} | {
|
|
5423
6338
|
addedToolNames?: string[];
|
|
5424
6339
|
arguments: Record<string, any>;
|
|
5425
6340
|
callID: string;
|
|
@@ -5523,14 +6438,6 @@ declare const LLMEnded: Schema.Struct<{
|
|
|
5523
6438
|
end: number;
|
|
5524
6439
|
};
|
|
5525
6440
|
type: "toolCall";
|
|
5526
|
-
} | {
|
|
5527
|
-
type: "text";
|
|
5528
|
-
text: string;
|
|
5529
|
-
textSignature?: string;
|
|
5530
|
-
} | {
|
|
5531
|
-
type: "image";
|
|
5532
|
-
data: string;
|
|
5533
|
-
mimeType: string;
|
|
5534
6441
|
} | {
|
|
5535
6442
|
type: "thinking";
|
|
5536
6443
|
thinking: string;
|
|
@@ -5720,6 +6627,14 @@ declare const LLMEnded: Schema.Struct<{
|
|
|
5720
6627
|
completed: number;
|
|
5721
6628
|
};
|
|
5722
6629
|
parts: ({
|
|
6630
|
+
type: "text";
|
|
6631
|
+
text: string;
|
|
6632
|
+
textSignature?: string;
|
|
6633
|
+
} | {
|
|
6634
|
+
type: "image";
|
|
6635
|
+
data: string;
|
|
6636
|
+
mimeType: string;
|
|
6637
|
+
} | {
|
|
5723
6638
|
addedToolNames?: string[];
|
|
5724
6639
|
arguments: Record<string, any>;
|
|
5725
6640
|
callID: string;
|
|
@@ -5823,14 +6738,6 @@ declare const LLMEnded: Schema.Struct<{
|
|
|
5823
6738
|
end: number;
|
|
5824
6739
|
};
|
|
5825
6740
|
type: "toolCall";
|
|
5826
|
-
} | {
|
|
5827
|
-
type: "text";
|
|
5828
|
-
text: string;
|
|
5829
|
-
textSignature?: string;
|
|
5830
|
-
} | {
|
|
5831
|
-
type: "image";
|
|
5832
|
-
data: string;
|
|
5833
|
-
mimeType: string;
|
|
5834
6741
|
} | {
|
|
5835
6742
|
type: "thinking";
|
|
5836
6743
|
thinking: string;
|
|
@@ -6039,6 +6946,14 @@ declare const LLMEnded: Schema.Struct<{
|
|
|
6039
6946
|
completed: number;
|
|
6040
6947
|
};
|
|
6041
6948
|
parts: ({
|
|
6949
|
+
type: "text";
|
|
6950
|
+
text: string;
|
|
6951
|
+
textSignature?: string;
|
|
6952
|
+
} | {
|
|
6953
|
+
type: "image";
|
|
6954
|
+
data: string;
|
|
6955
|
+
mimeType: string;
|
|
6956
|
+
} | {
|
|
6042
6957
|
addedToolNames?: string[];
|
|
6043
6958
|
arguments: Record<string, any>;
|
|
6044
6959
|
callID: string;
|
|
@@ -6142,14 +7057,6 @@ declare const LLMEnded: Schema.Struct<{
|
|
|
6142
7057
|
end: number;
|
|
6143
7058
|
};
|
|
6144
7059
|
type: "toolCall";
|
|
6145
|
-
} | {
|
|
6146
|
-
type: "text";
|
|
6147
|
-
text: string;
|
|
6148
|
-
textSignature?: string;
|
|
6149
|
-
} | {
|
|
6150
|
-
type: "image";
|
|
6151
|
-
data: string;
|
|
6152
|
-
mimeType: string;
|
|
6153
7060
|
} | {
|
|
6154
7061
|
type: "thinking";
|
|
6155
7062
|
thinking: string;
|
|
@@ -6339,6 +7246,14 @@ declare const LLMEnded: Schema.Struct<{
|
|
|
6339
7246
|
completed: number;
|
|
6340
7247
|
};
|
|
6341
7248
|
parts: ({
|
|
7249
|
+
type: "text";
|
|
7250
|
+
text: string;
|
|
7251
|
+
textSignature?: string;
|
|
7252
|
+
} | {
|
|
7253
|
+
type: "image";
|
|
7254
|
+
data: string;
|
|
7255
|
+
mimeType: string;
|
|
7256
|
+
} | {
|
|
6342
7257
|
addedToolNames?: string[];
|
|
6343
7258
|
arguments: Record<string, any>;
|
|
6344
7259
|
callID: string;
|
|
@@ -6442,14 +7357,6 @@ declare const LLMEnded: Schema.Struct<{
|
|
|
6442
7357
|
end: number;
|
|
6443
7358
|
};
|
|
6444
7359
|
type: "toolCall";
|
|
6445
|
-
} | {
|
|
6446
|
-
type: "text";
|
|
6447
|
-
text: string;
|
|
6448
|
-
textSignature?: string;
|
|
6449
|
-
} | {
|
|
6450
|
-
type: "image";
|
|
6451
|
-
data: string;
|
|
6452
|
-
mimeType: string;
|
|
6453
7360
|
} | {
|
|
6454
7361
|
type: "thinking";
|
|
6455
7362
|
thinking: string;
|
|
@@ -6670,6 +7577,14 @@ declare const LLMFailed: Schema.Struct<{
|
|
|
6670
7577
|
completed: number;
|
|
6671
7578
|
};
|
|
6672
7579
|
parts: ({
|
|
7580
|
+
type: "text";
|
|
7581
|
+
text: string;
|
|
7582
|
+
textSignature?: string;
|
|
7583
|
+
} | {
|
|
7584
|
+
type: "image";
|
|
7585
|
+
data: string;
|
|
7586
|
+
mimeType: string;
|
|
7587
|
+
} | {
|
|
6673
7588
|
addedToolNames?: string[];
|
|
6674
7589
|
arguments: Record<string, any>;
|
|
6675
7590
|
callID: string;
|
|
@@ -6773,14 +7688,6 @@ declare const LLMFailed: Schema.Struct<{
|
|
|
6773
7688
|
end: number;
|
|
6774
7689
|
};
|
|
6775
7690
|
type: "toolCall";
|
|
6776
|
-
} | {
|
|
6777
|
-
type: "text";
|
|
6778
|
-
text: string;
|
|
6779
|
-
textSignature?: string;
|
|
6780
|
-
} | {
|
|
6781
|
-
type: "image";
|
|
6782
|
-
data: string;
|
|
6783
|
-
mimeType: string;
|
|
6784
7691
|
} | {
|
|
6785
7692
|
type: "thinking";
|
|
6786
7693
|
thinking: string;
|
|
@@ -6970,6 +7877,14 @@ declare const LLMFailed: Schema.Struct<{
|
|
|
6970
7877
|
completed: number;
|
|
6971
7878
|
};
|
|
6972
7879
|
parts: ({
|
|
7880
|
+
type: "text";
|
|
7881
|
+
text: string;
|
|
7882
|
+
textSignature?: string;
|
|
7883
|
+
} | {
|
|
7884
|
+
type: "image";
|
|
7885
|
+
data: string;
|
|
7886
|
+
mimeType: string;
|
|
7887
|
+
} | {
|
|
6973
7888
|
addedToolNames?: string[];
|
|
6974
7889
|
arguments: Record<string, any>;
|
|
6975
7890
|
callID: string;
|
|
@@ -7073,14 +7988,6 @@ declare const LLMFailed: Schema.Struct<{
|
|
|
7073
7988
|
end: number;
|
|
7074
7989
|
};
|
|
7075
7990
|
type: "toolCall";
|
|
7076
|
-
} | {
|
|
7077
|
-
type: "text";
|
|
7078
|
-
text: string;
|
|
7079
|
-
textSignature?: string;
|
|
7080
|
-
} | {
|
|
7081
|
-
type: "image";
|
|
7082
|
-
data: string;
|
|
7083
|
-
mimeType: string;
|
|
7084
7991
|
} | {
|
|
7085
7992
|
type: "thinking";
|
|
7086
7993
|
thinking: string;
|
|
@@ -7289,6 +8196,14 @@ declare const LLMFailed: Schema.Struct<{
|
|
|
7289
8196
|
completed: number;
|
|
7290
8197
|
};
|
|
7291
8198
|
parts: ({
|
|
8199
|
+
type: "text";
|
|
8200
|
+
text: string;
|
|
8201
|
+
textSignature?: string;
|
|
8202
|
+
} | {
|
|
8203
|
+
type: "image";
|
|
8204
|
+
data: string;
|
|
8205
|
+
mimeType: string;
|
|
8206
|
+
} | {
|
|
7292
8207
|
addedToolNames?: string[];
|
|
7293
8208
|
arguments: Record<string, any>;
|
|
7294
8209
|
callID: string;
|
|
@@ -7392,14 +8307,6 @@ declare const LLMFailed: Schema.Struct<{
|
|
|
7392
8307
|
end: number;
|
|
7393
8308
|
};
|
|
7394
8309
|
type: "toolCall";
|
|
7395
|
-
} | {
|
|
7396
|
-
type: "text";
|
|
7397
|
-
text: string;
|
|
7398
|
-
textSignature?: string;
|
|
7399
|
-
} | {
|
|
7400
|
-
type: "image";
|
|
7401
|
-
data: string;
|
|
7402
|
-
mimeType: string;
|
|
7403
8310
|
} | {
|
|
7404
8311
|
type: "thinking";
|
|
7405
8312
|
thinking: string;
|
|
@@ -7589,6 +8496,14 @@ declare const LLMFailed: Schema.Struct<{
|
|
|
7589
8496
|
completed: number;
|
|
7590
8497
|
};
|
|
7591
8498
|
parts: ({
|
|
8499
|
+
type: "text";
|
|
8500
|
+
text: string;
|
|
8501
|
+
textSignature?: string;
|
|
8502
|
+
} | {
|
|
8503
|
+
type: "image";
|
|
8504
|
+
data: string;
|
|
8505
|
+
mimeType: string;
|
|
8506
|
+
} | {
|
|
7592
8507
|
addedToolNames?: string[];
|
|
7593
8508
|
arguments: Record<string, any>;
|
|
7594
8509
|
callID: string;
|
|
@@ -7692,14 +8607,6 @@ declare const LLMFailed: Schema.Struct<{
|
|
|
7692
8607
|
end: number;
|
|
7693
8608
|
};
|
|
7694
8609
|
type: "toolCall";
|
|
7695
|
-
} | {
|
|
7696
|
-
type: "text";
|
|
7697
|
-
text: string;
|
|
7698
|
-
textSignature?: string;
|
|
7699
|
-
} | {
|
|
7700
|
-
type: "image";
|
|
7701
|
-
data: string;
|
|
7702
|
-
mimeType: string;
|
|
7703
8610
|
} | {
|
|
7704
8611
|
type: "thinking";
|
|
7705
8612
|
thinking: string;
|
|
@@ -7779,6 +8686,9 @@ declare const ToolStarted: Schema.Struct<{
|
|
|
7779
8686
|
};
|
|
7780
8687
|
readonly callID: Schema.String;
|
|
7781
8688
|
readonly name: Schema.String;
|
|
8689
|
+
/** The tool's display label, when its definition declares one. */
|
|
8690
|
+
readonly label: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
8691
|
+
readonly arguments: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
7782
8692
|
}>;
|
|
7783
8693
|
}> & {
|
|
7784
8694
|
type: "session.tool.started";
|
|
@@ -7798,6 +8708,9 @@ declare const ToolStarted: Schema.Struct<{
|
|
|
7798
8708
|
};
|
|
7799
8709
|
readonly callID: Schema.String;
|
|
7800
8710
|
readonly name: Schema.String;
|
|
8711
|
+
/** The tool's display label, when its definition declares one. */
|
|
8712
|
+
readonly label: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
8713
|
+
readonly arguments: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
7801
8714
|
}>;
|
|
7802
8715
|
};
|
|
7803
8716
|
type ToolStarted = typeof ToolStarted.Type;
|
|
@@ -8789,14 +9702,36 @@ declare const Definitions: readonly [Schema.Struct<{
|
|
|
8789
9702
|
from: (id: string) => string & import("effect/Brand").Brand<"Message.ID">;
|
|
8790
9703
|
};
|
|
8791
9704
|
prompt: Schema.Struct<{
|
|
8792
|
-
readonly
|
|
9705
|
+
readonly parts: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
9706
|
+
readonly type: Schema.Literal<"text">;
|
|
9707
|
+
readonly text: Schema.String;
|
|
9708
|
+
}>, Schema.Struct<{
|
|
9709
|
+
readonly type: Schema.Literal<"image">;
|
|
9710
|
+
readonly data: Schema.String;
|
|
9711
|
+
readonly mimeType: Schema.String;
|
|
9712
|
+
}>]>>;
|
|
8793
9713
|
}> & {
|
|
8794
9714
|
equivalence: import("effect/Equivalence").Equivalence<{
|
|
8795
|
-
readonly
|
|
9715
|
+
readonly parts: readonly ({
|
|
9716
|
+
readonly type: "text";
|
|
9717
|
+
readonly text: string;
|
|
9718
|
+
} | {
|
|
9719
|
+
readonly type: "image";
|
|
9720
|
+
readonly data: string;
|
|
9721
|
+
readonly mimeType: string;
|
|
9722
|
+
})[];
|
|
8796
9723
|
}>;
|
|
8797
|
-
|
|
8798
|
-
readonly
|
|
9724
|
+
fromText: (text: string) => {
|
|
9725
|
+
readonly parts: readonly ({
|
|
9726
|
+
readonly type: "text";
|
|
9727
|
+
readonly text: string;
|
|
9728
|
+
} | {
|
|
9729
|
+
readonly type: "image";
|
|
9730
|
+
readonly data: string;
|
|
9731
|
+
readonly mimeType: string;
|
|
9732
|
+
})[];
|
|
8799
9733
|
};
|
|
9734
|
+
text: (prompt: Prompt) => string;
|
|
8800
9735
|
};
|
|
8801
9736
|
delivery: Schema.Literals<readonly ["steer", "followUp"]>;
|
|
8802
9737
|
}>;
|
|
@@ -8817,14 +9752,36 @@ declare const Definitions: readonly [Schema.Struct<{
|
|
|
8817
9752
|
from: (id: string) => string & import("effect/Brand").Brand<"Message.ID">;
|
|
8818
9753
|
};
|
|
8819
9754
|
prompt: Schema.Struct<{
|
|
8820
|
-
readonly
|
|
9755
|
+
readonly parts: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
9756
|
+
readonly type: Schema.Literal<"text">;
|
|
9757
|
+
readonly text: Schema.String;
|
|
9758
|
+
}>, Schema.Struct<{
|
|
9759
|
+
readonly type: Schema.Literal<"image">;
|
|
9760
|
+
readonly data: Schema.String;
|
|
9761
|
+
readonly mimeType: Schema.String;
|
|
9762
|
+
}>]>>;
|
|
8821
9763
|
}> & {
|
|
8822
9764
|
equivalence: import("effect/Equivalence").Equivalence<{
|
|
8823
|
-
readonly
|
|
9765
|
+
readonly parts: readonly ({
|
|
9766
|
+
readonly type: "text";
|
|
9767
|
+
readonly text: string;
|
|
9768
|
+
} | {
|
|
9769
|
+
readonly type: "image";
|
|
9770
|
+
readonly data: string;
|
|
9771
|
+
readonly mimeType: string;
|
|
9772
|
+
})[];
|
|
8824
9773
|
}>;
|
|
8825
|
-
|
|
8826
|
-
readonly
|
|
9774
|
+
fromText: (text: string) => {
|
|
9775
|
+
readonly parts: readonly ({
|
|
9776
|
+
readonly type: "text";
|
|
9777
|
+
readonly text: string;
|
|
9778
|
+
} | {
|
|
9779
|
+
readonly type: "image";
|
|
9780
|
+
readonly data: string;
|
|
9781
|
+
readonly mimeType: string;
|
|
9782
|
+
})[];
|
|
8827
9783
|
};
|
|
9784
|
+
text: (prompt: Prompt) => string;
|
|
8828
9785
|
};
|
|
8829
9786
|
delivery: Schema.Literals<readonly ["steer", "followUp"]>;
|
|
8830
9787
|
}>;
|
|
@@ -8854,14 +9811,36 @@ declare const Definitions: readonly [Schema.Struct<{
|
|
|
8854
9811
|
from: (id: string) => string & import("effect/Brand").Brand<"Message.ID">;
|
|
8855
9812
|
};
|
|
8856
9813
|
prompt: Schema.Struct<{
|
|
8857
|
-
readonly
|
|
9814
|
+
readonly parts: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
9815
|
+
readonly type: Schema.Literal<"text">;
|
|
9816
|
+
readonly text: Schema.String;
|
|
9817
|
+
}>, Schema.Struct<{
|
|
9818
|
+
readonly type: Schema.Literal<"image">;
|
|
9819
|
+
readonly data: Schema.String;
|
|
9820
|
+
readonly mimeType: Schema.String;
|
|
9821
|
+
}>]>>;
|
|
8858
9822
|
}> & {
|
|
8859
9823
|
equivalence: import("effect/Equivalence").Equivalence<{
|
|
8860
|
-
readonly
|
|
9824
|
+
readonly parts: readonly ({
|
|
9825
|
+
readonly type: "text";
|
|
9826
|
+
readonly text: string;
|
|
9827
|
+
} | {
|
|
9828
|
+
readonly type: "image";
|
|
9829
|
+
readonly data: string;
|
|
9830
|
+
readonly mimeType: string;
|
|
9831
|
+
})[];
|
|
8861
9832
|
}>;
|
|
8862
|
-
|
|
8863
|
-
readonly
|
|
9833
|
+
fromText: (text: string) => {
|
|
9834
|
+
readonly parts: readonly ({
|
|
9835
|
+
readonly type: "text";
|
|
9836
|
+
readonly text: string;
|
|
9837
|
+
} | {
|
|
9838
|
+
readonly type: "image";
|
|
9839
|
+
readonly data: string;
|
|
9840
|
+
readonly mimeType: string;
|
|
9841
|
+
})[];
|
|
8864
9842
|
};
|
|
9843
|
+
text: (prompt: Prompt) => string;
|
|
8865
9844
|
};
|
|
8866
9845
|
delivery: Schema.Literals<readonly ["steer", "followUp"]>;
|
|
8867
9846
|
}>;
|
|
@@ -8882,17 +9861,90 @@ declare const Definitions: readonly [Schema.Struct<{
|
|
|
8882
9861
|
from: (id: string) => string & import("effect/Brand").Brand<"Message.ID">;
|
|
8883
9862
|
};
|
|
8884
9863
|
prompt: Schema.Struct<{
|
|
8885
|
-
readonly
|
|
9864
|
+
readonly parts: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
9865
|
+
readonly type: Schema.Literal<"text">;
|
|
9866
|
+
readonly text: Schema.String;
|
|
9867
|
+
}>, Schema.Struct<{
|
|
9868
|
+
readonly type: Schema.Literal<"image">;
|
|
9869
|
+
readonly data: Schema.String;
|
|
9870
|
+
readonly mimeType: Schema.String;
|
|
9871
|
+
}>]>>;
|
|
8886
9872
|
}> & {
|
|
8887
9873
|
equivalence: import("effect/Equivalence").Equivalence<{
|
|
8888
|
-
readonly
|
|
9874
|
+
readonly parts: readonly ({
|
|
9875
|
+
readonly type: "text";
|
|
9876
|
+
readonly text: string;
|
|
9877
|
+
} | {
|
|
9878
|
+
readonly type: "image";
|
|
9879
|
+
readonly data: string;
|
|
9880
|
+
readonly mimeType: string;
|
|
9881
|
+
})[];
|
|
8889
9882
|
}>;
|
|
8890
|
-
|
|
8891
|
-
readonly
|
|
9883
|
+
fromText: (text: string) => {
|
|
9884
|
+
readonly parts: readonly ({
|
|
9885
|
+
readonly type: "text";
|
|
9886
|
+
readonly text: string;
|
|
9887
|
+
} | {
|
|
9888
|
+
readonly type: "image";
|
|
9889
|
+
readonly data: string;
|
|
9890
|
+
readonly mimeType: string;
|
|
9891
|
+
})[];
|
|
8892
9892
|
};
|
|
9893
|
+
text: (prompt: Prompt) => string;
|
|
8893
9894
|
};
|
|
8894
9895
|
delivery: Schema.Literals<readonly ["steer", "followUp"]>;
|
|
8895
9896
|
}>;
|
|
9897
|
+
}, Schema.Struct<{
|
|
9898
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
9899
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
9900
|
+
};
|
|
9901
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
|
|
9902
|
+
readonly type: Schema.Literal<"session.config.changed">;
|
|
9903
|
+
readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
9904
|
+
readonly aggregateId: Schema.String;
|
|
9905
|
+
readonly seq: Schema.Int;
|
|
9906
|
+
readonly version: Schema.Int;
|
|
9907
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
9908
|
+
readonly aggregateId: Schema.String;
|
|
9909
|
+
readonly seq: Schema.Int;
|
|
9910
|
+
readonly version: Schema.Int;
|
|
9911
|
+
}>>, never, never>;
|
|
9912
|
+
readonly data: Schema.Struct<{
|
|
9913
|
+
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
9914
|
+
readonly provider: Schema.String;
|
|
9915
|
+
readonly id: Schema.String;
|
|
9916
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
9917
|
+
readonly provider: Schema.String;
|
|
9918
|
+
readonly id: Schema.String;
|
|
9919
|
+
}>>, never, never>;
|
|
9920
|
+
readonly thinkingLevel: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>>, Schema.optionalKey<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>, never, never>;
|
|
9921
|
+
readonly timestamp: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
9922
|
+
readonly sessionId: Schema.brand<Schema.String, "Session.ID"> & {
|
|
9923
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Session.ID">;
|
|
9924
|
+
create: () => string & import("effect/Brand").Brand<"Session.ID">;
|
|
9925
|
+
};
|
|
9926
|
+
}>;
|
|
9927
|
+
}> & {
|
|
9928
|
+
type: "session.config.changed";
|
|
9929
|
+
durable?: {
|
|
9930
|
+
readonly version: number;
|
|
9931
|
+
readonly aggregate: string;
|
|
9932
|
+
};
|
|
9933
|
+
data: Schema.Struct<{
|
|
9934
|
+
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
9935
|
+
readonly provider: Schema.String;
|
|
9936
|
+
readonly id: Schema.String;
|
|
9937
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
9938
|
+
readonly provider: Schema.String;
|
|
9939
|
+
readonly id: Schema.String;
|
|
9940
|
+
}>>, never, never>;
|
|
9941
|
+
readonly thinkingLevel: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>>, Schema.optionalKey<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>, never, never>;
|
|
9942
|
+
readonly timestamp: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
9943
|
+
readonly sessionId: Schema.brand<Schema.String, "Session.ID"> & {
|
|
9944
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Session.ID">;
|
|
9945
|
+
create: () => string & import("effect/Brand").Brand<"Session.ID">;
|
|
9946
|
+
};
|
|
9947
|
+
}>;
|
|
8896
9948
|
}, Schema.Struct<{
|
|
8897
9949
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
8898
9950
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -9067,6 +10119,90 @@ declare const Definitions: readonly [Schema.Struct<{
|
|
|
9067
10119
|
readonly message: Schema.String;
|
|
9068
10120
|
}>]>;
|
|
9069
10121
|
}>;
|
|
10122
|
+
}, Schema.Struct<{
|
|
10123
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
10124
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
10125
|
+
};
|
|
10126
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
|
|
10127
|
+
readonly type: Schema.Literal<"session.retry.scheduled">;
|
|
10128
|
+
readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
10129
|
+
readonly aggregateId: Schema.String;
|
|
10130
|
+
readonly seq: Schema.Int;
|
|
10131
|
+
readonly version: Schema.Int;
|
|
10132
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
10133
|
+
readonly aggregateId: Schema.String;
|
|
10134
|
+
readonly seq: Schema.Int;
|
|
10135
|
+
readonly version: Schema.Int;
|
|
10136
|
+
}>>, never, never>;
|
|
10137
|
+
readonly data: Schema.Struct<{
|
|
10138
|
+
readonly timestamp: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
10139
|
+
readonly sessionId: Schema.brand<Schema.String, "Session.ID"> & {
|
|
10140
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Session.ID">;
|
|
10141
|
+
create: () => string & import("effect/Brand").Brand<"Session.ID">;
|
|
10142
|
+
};
|
|
10143
|
+
readonly attempt: Schema.Int;
|
|
10144
|
+
readonly maxRetries: Schema.Int;
|
|
10145
|
+
readonly delayMs: Schema.Int;
|
|
10146
|
+
readonly message: Schema.String;
|
|
10147
|
+
}>;
|
|
10148
|
+
}> & {
|
|
10149
|
+
type: "session.retry.scheduled";
|
|
10150
|
+
durable?: {
|
|
10151
|
+
readonly version: number;
|
|
10152
|
+
readonly aggregate: string;
|
|
10153
|
+
};
|
|
10154
|
+
data: Schema.Struct<{
|
|
10155
|
+
readonly timestamp: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
10156
|
+
readonly sessionId: Schema.brand<Schema.String, "Session.ID"> & {
|
|
10157
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Session.ID">;
|
|
10158
|
+
create: () => string & import("effect/Brand").Brand<"Session.ID">;
|
|
10159
|
+
};
|
|
10160
|
+
readonly attempt: Schema.Int;
|
|
10161
|
+
readonly maxRetries: Schema.Int;
|
|
10162
|
+
readonly delayMs: Schema.Int;
|
|
10163
|
+
readonly message: Schema.String;
|
|
10164
|
+
}>;
|
|
10165
|
+
}, Schema.Struct<{
|
|
10166
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
10167
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
10168
|
+
};
|
|
10169
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
|
|
10170
|
+
readonly type: Schema.Literal<"session.retry.finished">;
|
|
10171
|
+
readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
10172
|
+
readonly aggregateId: Schema.String;
|
|
10173
|
+
readonly seq: Schema.Int;
|
|
10174
|
+
readonly version: Schema.Int;
|
|
10175
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
10176
|
+
readonly aggregateId: Schema.String;
|
|
10177
|
+
readonly seq: Schema.Int;
|
|
10178
|
+
readonly version: Schema.Int;
|
|
10179
|
+
}>>, never, never>;
|
|
10180
|
+
readonly data: Schema.Struct<{
|
|
10181
|
+
readonly timestamp: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
10182
|
+
readonly sessionId: Schema.brand<Schema.String, "Session.ID"> & {
|
|
10183
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Session.ID">;
|
|
10184
|
+
create: () => string & import("effect/Brand").Brand<"Session.ID">;
|
|
10185
|
+
};
|
|
10186
|
+
readonly attempt: Schema.Int;
|
|
10187
|
+
readonly success: Schema.Boolean;
|
|
10188
|
+
readonly message: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10189
|
+
}>;
|
|
10190
|
+
}> & {
|
|
10191
|
+
type: "session.retry.finished";
|
|
10192
|
+
durable?: {
|
|
10193
|
+
readonly version: number;
|
|
10194
|
+
readonly aggregate: string;
|
|
10195
|
+
};
|
|
10196
|
+
data: Schema.Struct<{
|
|
10197
|
+
readonly timestamp: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
10198
|
+
readonly sessionId: Schema.brand<Schema.String, "Session.ID"> & {
|
|
10199
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Session.ID">;
|
|
10200
|
+
create: () => string & import("effect/Brand").Brand<"Session.ID">;
|
|
10201
|
+
};
|
|
10202
|
+
readonly attempt: Schema.Int;
|
|
10203
|
+
readonly success: Schema.Boolean;
|
|
10204
|
+
readonly message: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10205
|
+
}>;
|
|
9070
10206
|
}, Schema.Struct<{
|
|
9071
10207
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
9072
10208
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -9233,6 +10369,14 @@ declare const Definitions: readonly [Schema.Struct<{
|
|
|
9233
10369
|
completed: number;
|
|
9234
10370
|
};
|
|
9235
10371
|
parts: ({
|
|
10372
|
+
type: "text";
|
|
10373
|
+
text: string;
|
|
10374
|
+
textSignature?: string;
|
|
10375
|
+
} | {
|
|
10376
|
+
type: "image";
|
|
10377
|
+
data: string;
|
|
10378
|
+
mimeType: string;
|
|
10379
|
+
} | {
|
|
9236
10380
|
addedToolNames?: string[];
|
|
9237
10381
|
arguments: Record<string, any>;
|
|
9238
10382
|
callID: string;
|
|
@@ -9336,14 +10480,6 @@ declare const Definitions: readonly [Schema.Struct<{
|
|
|
9336
10480
|
end: number;
|
|
9337
10481
|
};
|
|
9338
10482
|
type: "toolCall";
|
|
9339
|
-
} | {
|
|
9340
|
-
type: "text";
|
|
9341
|
-
text: string;
|
|
9342
|
-
textSignature?: string;
|
|
9343
|
-
} | {
|
|
9344
|
-
type: "image";
|
|
9345
|
-
data: string;
|
|
9346
|
-
mimeType: string;
|
|
9347
10483
|
} | {
|
|
9348
10484
|
type: "thinking";
|
|
9349
10485
|
thinking: string;
|
|
@@ -9533,6 +10669,14 @@ declare const Definitions: readonly [Schema.Struct<{
|
|
|
9533
10669
|
completed: number;
|
|
9534
10670
|
};
|
|
9535
10671
|
parts: ({
|
|
10672
|
+
type: "text";
|
|
10673
|
+
text: string;
|
|
10674
|
+
textSignature?: string;
|
|
10675
|
+
} | {
|
|
10676
|
+
type: "image";
|
|
10677
|
+
data: string;
|
|
10678
|
+
mimeType: string;
|
|
10679
|
+
} | {
|
|
9536
10680
|
addedToolNames?: string[];
|
|
9537
10681
|
arguments: Record<string, any>;
|
|
9538
10682
|
callID: string;
|
|
@@ -9636,14 +10780,6 @@ declare const Definitions: readonly [Schema.Struct<{
|
|
|
9636
10780
|
end: number;
|
|
9637
10781
|
};
|
|
9638
10782
|
type: "toolCall";
|
|
9639
|
-
} | {
|
|
9640
|
-
type: "text";
|
|
9641
|
-
text: string;
|
|
9642
|
-
textSignature?: string;
|
|
9643
|
-
} | {
|
|
9644
|
-
type: "image";
|
|
9645
|
-
data: string;
|
|
9646
|
-
mimeType: string;
|
|
9647
10783
|
} | {
|
|
9648
10784
|
type: "thinking";
|
|
9649
10785
|
thinking: string;
|
|
@@ -9851,6 +10987,14 @@ declare const Definitions: readonly [Schema.Struct<{
|
|
|
9851
10987
|
completed: number;
|
|
9852
10988
|
};
|
|
9853
10989
|
parts: ({
|
|
10990
|
+
type: "text";
|
|
10991
|
+
text: string;
|
|
10992
|
+
textSignature?: string;
|
|
10993
|
+
} | {
|
|
10994
|
+
type: "image";
|
|
10995
|
+
data: string;
|
|
10996
|
+
mimeType: string;
|
|
10997
|
+
} | {
|
|
9854
10998
|
addedToolNames?: string[];
|
|
9855
10999
|
arguments: Record<string, any>;
|
|
9856
11000
|
callID: string;
|
|
@@ -9954,14 +11098,6 @@ declare const Definitions: readonly [Schema.Struct<{
|
|
|
9954
11098
|
end: number;
|
|
9955
11099
|
};
|
|
9956
11100
|
type: "toolCall";
|
|
9957
|
-
} | {
|
|
9958
|
-
type: "text";
|
|
9959
|
-
text: string;
|
|
9960
|
-
textSignature?: string;
|
|
9961
|
-
} | {
|
|
9962
|
-
type: "image";
|
|
9963
|
-
data: string;
|
|
9964
|
-
mimeType: string;
|
|
9965
11101
|
} | {
|
|
9966
11102
|
type: "thinking";
|
|
9967
11103
|
thinking: string;
|
|
@@ -10151,6 +11287,14 @@ declare const Definitions: readonly [Schema.Struct<{
|
|
|
10151
11287
|
completed: number;
|
|
10152
11288
|
};
|
|
10153
11289
|
parts: ({
|
|
11290
|
+
type: "text";
|
|
11291
|
+
text: string;
|
|
11292
|
+
textSignature?: string;
|
|
11293
|
+
} | {
|
|
11294
|
+
type: "image";
|
|
11295
|
+
data: string;
|
|
11296
|
+
mimeType: string;
|
|
11297
|
+
} | {
|
|
10154
11298
|
addedToolNames?: string[];
|
|
10155
11299
|
arguments: Record<string, any>;
|
|
10156
11300
|
callID: string;
|
|
@@ -10254,14 +11398,6 @@ declare const Definitions: readonly [Schema.Struct<{
|
|
|
10254
11398
|
end: number;
|
|
10255
11399
|
};
|
|
10256
11400
|
type: "toolCall";
|
|
10257
|
-
} | {
|
|
10258
|
-
type: "text";
|
|
10259
|
-
text: string;
|
|
10260
|
-
textSignature?: string;
|
|
10261
|
-
} | {
|
|
10262
|
-
type: "image";
|
|
10263
|
-
data: string;
|
|
10264
|
-
mimeType: string;
|
|
10265
11401
|
} | {
|
|
10266
11402
|
type: "thinking";
|
|
10267
11403
|
thinking: string;
|
|
@@ -10757,6 +11893,14 @@ declare const Definitions: readonly [Schema.Struct<{
|
|
|
10757
11893
|
completed: number;
|
|
10758
11894
|
};
|
|
10759
11895
|
parts: ({
|
|
11896
|
+
type: "text";
|
|
11897
|
+
text: string;
|
|
11898
|
+
textSignature?: string;
|
|
11899
|
+
} | {
|
|
11900
|
+
type: "image";
|
|
11901
|
+
data: string;
|
|
11902
|
+
mimeType: string;
|
|
11903
|
+
} | {
|
|
10760
11904
|
addedToolNames?: string[];
|
|
10761
11905
|
arguments: Record<string, any>;
|
|
10762
11906
|
callID: string;
|
|
@@ -10860,14 +12004,6 @@ declare const Definitions: readonly [Schema.Struct<{
|
|
|
10860
12004
|
end: number;
|
|
10861
12005
|
};
|
|
10862
12006
|
type: "toolCall";
|
|
10863
|
-
} | {
|
|
10864
|
-
type: "text";
|
|
10865
|
-
text: string;
|
|
10866
|
-
textSignature?: string;
|
|
10867
|
-
} | {
|
|
10868
|
-
type: "image";
|
|
10869
|
-
data: string;
|
|
10870
|
-
mimeType: string;
|
|
10871
12007
|
} | {
|
|
10872
12008
|
type: "thinking";
|
|
10873
12009
|
thinking: string;
|
|
@@ -11057,6 +12193,14 @@ declare const Definitions: readonly [Schema.Struct<{
|
|
|
11057
12193
|
completed: number;
|
|
11058
12194
|
};
|
|
11059
12195
|
parts: ({
|
|
12196
|
+
type: "text";
|
|
12197
|
+
text: string;
|
|
12198
|
+
textSignature?: string;
|
|
12199
|
+
} | {
|
|
12200
|
+
type: "image";
|
|
12201
|
+
data: string;
|
|
12202
|
+
mimeType: string;
|
|
12203
|
+
} | {
|
|
11060
12204
|
addedToolNames?: string[];
|
|
11061
12205
|
arguments: Record<string, any>;
|
|
11062
12206
|
callID: string;
|
|
@@ -11160,14 +12304,6 @@ declare const Definitions: readonly [Schema.Struct<{
|
|
|
11160
12304
|
end: number;
|
|
11161
12305
|
};
|
|
11162
12306
|
type: "toolCall";
|
|
11163
|
-
} | {
|
|
11164
|
-
type: "text";
|
|
11165
|
-
text: string;
|
|
11166
|
-
textSignature?: string;
|
|
11167
|
-
} | {
|
|
11168
|
-
type: "image";
|
|
11169
|
-
data: string;
|
|
11170
|
-
mimeType: string;
|
|
11171
12307
|
} | {
|
|
11172
12308
|
type: "thinking";
|
|
11173
12309
|
thinking: string;
|
|
@@ -11376,6 +12512,14 @@ declare const Definitions: readonly [Schema.Struct<{
|
|
|
11376
12512
|
completed: number;
|
|
11377
12513
|
};
|
|
11378
12514
|
parts: ({
|
|
12515
|
+
type: "text";
|
|
12516
|
+
text: string;
|
|
12517
|
+
textSignature?: string;
|
|
12518
|
+
} | {
|
|
12519
|
+
type: "image";
|
|
12520
|
+
data: string;
|
|
12521
|
+
mimeType: string;
|
|
12522
|
+
} | {
|
|
11379
12523
|
addedToolNames?: string[];
|
|
11380
12524
|
arguments: Record<string, any>;
|
|
11381
12525
|
callID: string;
|
|
@@ -11479,14 +12623,6 @@ declare const Definitions: readonly [Schema.Struct<{
|
|
|
11479
12623
|
end: number;
|
|
11480
12624
|
};
|
|
11481
12625
|
type: "toolCall";
|
|
11482
|
-
} | {
|
|
11483
|
-
type: "text";
|
|
11484
|
-
text: string;
|
|
11485
|
-
textSignature?: string;
|
|
11486
|
-
} | {
|
|
11487
|
-
type: "image";
|
|
11488
|
-
data: string;
|
|
11489
|
-
mimeType: string;
|
|
11490
12626
|
} | {
|
|
11491
12627
|
type: "thinking";
|
|
11492
12628
|
thinking: string;
|
|
@@ -11676,6 +12812,14 @@ declare const Definitions: readonly [Schema.Struct<{
|
|
|
11676
12812
|
completed: number;
|
|
11677
12813
|
};
|
|
11678
12814
|
parts: ({
|
|
12815
|
+
type: "text";
|
|
12816
|
+
text: string;
|
|
12817
|
+
textSignature?: string;
|
|
12818
|
+
} | {
|
|
12819
|
+
type: "image";
|
|
12820
|
+
data: string;
|
|
12821
|
+
mimeType: string;
|
|
12822
|
+
} | {
|
|
11679
12823
|
addedToolNames?: string[];
|
|
11680
12824
|
arguments: Record<string, any>;
|
|
11681
12825
|
callID: string;
|
|
@@ -11779,14 +12923,6 @@ declare const Definitions: readonly [Schema.Struct<{
|
|
|
11779
12923
|
end: number;
|
|
11780
12924
|
};
|
|
11781
12925
|
type: "toolCall";
|
|
11782
|
-
} | {
|
|
11783
|
-
type: "text";
|
|
11784
|
-
text: string;
|
|
11785
|
-
textSignature?: string;
|
|
11786
|
-
} | {
|
|
11787
|
-
type: "image";
|
|
11788
|
-
data: string;
|
|
11789
|
-
mimeType: string;
|
|
11790
12926
|
} | {
|
|
11791
12927
|
type: "thinking";
|
|
11792
12928
|
thinking: string;
|
|
@@ -12004,6 +13140,14 @@ declare const Definitions: readonly [Schema.Struct<{
|
|
|
12004
13140
|
completed: number;
|
|
12005
13141
|
};
|
|
12006
13142
|
parts: ({
|
|
13143
|
+
type: "text";
|
|
13144
|
+
text: string;
|
|
13145
|
+
textSignature?: string;
|
|
13146
|
+
} | {
|
|
13147
|
+
type: "image";
|
|
13148
|
+
data: string;
|
|
13149
|
+
mimeType: string;
|
|
13150
|
+
} | {
|
|
12007
13151
|
addedToolNames?: string[];
|
|
12008
13152
|
arguments: Record<string, any>;
|
|
12009
13153
|
callID: string;
|
|
@@ -12107,14 +13251,6 @@ declare const Definitions: readonly [Schema.Struct<{
|
|
|
12107
13251
|
end: number;
|
|
12108
13252
|
};
|
|
12109
13253
|
type: "toolCall";
|
|
12110
|
-
} | {
|
|
12111
|
-
type: "text";
|
|
12112
|
-
text: string;
|
|
12113
|
-
textSignature?: string;
|
|
12114
|
-
} | {
|
|
12115
|
-
type: "image";
|
|
12116
|
-
data: string;
|
|
12117
|
-
mimeType: string;
|
|
12118
13254
|
} | {
|
|
12119
13255
|
type: "thinking";
|
|
12120
13256
|
thinking: string;
|
|
@@ -12304,6 +13440,14 @@ declare const Definitions: readonly [Schema.Struct<{
|
|
|
12304
13440
|
completed: number;
|
|
12305
13441
|
};
|
|
12306
13442
|
parts: ({
|
|
13443
|
+
type: "text";
|
|
13444
|
+
text: string;
|
|
13445
|
+
textSignature?: string;
|
|
13446
|
+
} | {
|
|
13447
|
+
type: "image";
|
|
13448
|
+
data: string;
|
|
13449
|
+
mimeType: string;
|
|
13450
|
+
} | {
|
|
12307
13451
|
addedToolNames?: string[];
|
|
12308
13452
|
arguments: Record<string, any>;
|
|
12309
13453
|
callID: string;
|
|
@@ -12407,14 +13551,6 @@ declare const Definitions: readonly [Schema.Struct<{
|
|
|
12407
13551
|
end: number;
|
|
12408
13552
|
};
|
|
12409
13553
|
type: "toolCall";
|
|
12410
|
-
} | {
|
|
12411
|
-
type: "text";
|
|
12412
|
-
text: string;
|
|
12413
|
-
textSignature?: string;
|
|
12414
|
-
} | {
|
|
12415
|
-
type: "image";
|
|
12416
|
-
data: string;
|
|
12417
|
-
mimeType: string;
|
|
12418
13554
|
} | {
|
|
12419
13555
|
type: "thinking";
|
|
12420
13556
|
thinking: string;
|
|
@@ -12623,6 +13759,14 @@ declare const Definitions: readonly [Schema.Struct<{
|
|
|
12623
13759
|
completed: number;
|
|
12624
13760
|
};
|
|
12625
13761
|
parts: ({
|
|
13762
|
+
type: "text";
|
|
13763
|
+
text: string;
|
|
13764
|
+
textSignature?: string;
|
|
13765
|
+
} | {
|
|
13766
|
+
type: "image";
|
|
13767
|
+
data: string;
|
|
13768
|
+
mimeType: string;
|
|
13769
|
+
} | {
|
|
12626
13770
|
addedToolNames?: string[];
|
|
12627
13771
|
arguments: Record<string, any>;
|
|
12628
13772
|
callID: string;
|
|
@@ -12726,14 +13870,6 @@ declare const Definitions: readonly [Schema.Struct<{
|
|
|
12726
13870
|
end: number;
|
|
12727
13871
|
};
|
|
12728
13872
|
type: "toolCall";
|
|
12729
|
-
} | {
|
|
12730
|
-
type: "text";
|
|
12731
|
-
text: string;
|
|
12732
|
-
textSignature?: string;
|
|
12733
|
-
} | {
|
|
12734
|
-
type: "image";
|
|
12735
|
-
data: string;
|
|
12736
|
-
mimeType: string;
|
|
12737
13873
|
} | {
|
|
12738
13874
|
type: "thinking";
|
|
12739
13875
|
thinking: string;
|
|
@@ -12923,6 +14059,14 @@ declare const Definitions: readonly [Schema.Struct<{
|
|
|
12923
14059
|
completed: number;
|
|
12924
14060
|
};
|
|
12925
14061
|
parts: ({
|
|
14062
|
+
type: "text";
|
|
14063
|
+
text: string;
|
|
14064
|
+
textSignature?: string;
|
|
14065
|
+
} | {
|
|
14066
|
+
type: "image";
|
|
14067
|
+
data: string;
|
|
14068
|
+
mimeType: string;
|
|
14069
|
+
} | {
|
|
12926
14070
|
addedToolNames?: string[];
|
|
12927
14071
|
arguments: Record<string, any>;
|
|
12928
14072
|
callID: string;
|
|
@@ -13026,14 +14170,6 @@ declare const Definitions: readonly [Schema.Struct<{
|
|
|
13026
14170
|
end: number;
|
|
13027
14171
|
};
|
|
13028
14172
|
type: "toolCall";
|
|
13029
|
-
} | {
|
|
13030
|
-
type: "text";
|
|
13031
|
-
text: string;
|
|
13032
|
-
textSignature?: string;
|
|
13033
|
-
} | {
|
|
13034
|
-
type: "image";
|
|
13035
|
-
data: string;
|
|
13036
|
-
mimeType: string;
|
|
13037
14173
|
} | {
|
|
13038
14174
|
type: "thinking";
|
|
13039
14175
|
thinking: string;
|
|
@@ -13111,6 +14247,9 @@ declare const Definitions: readonly [Schema.Struct<{
|
|
|
13111
14247
|
};
|
|
13112
14248
|
readonly callID: Schema.String;
|
|
13113
14249
|
readonly name: Schema.String;
|
|
14250
|
+
/** The tool's display label, when its definition declares one. */
|
|
14251
|
+
readonly label: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
14252
|
+
readonly arguments: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
13114
14253
|
}>;
|
|
13115
14254
|
}> & {
|
|
13116
14255
|
type: "session.tool.started";
|
|
@@ -13130,6 +14269,9 @@ declare const Definitions: readonly [Schema.Struct<{
|
|
|
13130
14269
|
};
|
|
13131
14270
|
readonly callID: Schema.String;
|
|
13132
14271
|
readonly name: Schema.String;
|
|
14272
|
+
/** The tool's display label, when its definition declares one. */
|
|
14273
|
+
readonly label: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
14274
|
+
readonly arguments: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
13133
14275
|
}>;
|
|
13134
14276
|
}, Schema.Struct<{
|
|
13135
14277
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
@@ -13884,14 +15026,36 @@ declare const PublicDefinitions: readonly [Schema.Struct<{
|
|
|
13884
15026
|
from: (id: string) => string & import("effect/Brand").Brand<"Message.ID">;
|
|
13885
15027
|
};
|
|
13886
15028
|
prompt: Schema.Struct<{
|
|
13887
|
-
readonly
|
|
15029
|
+
readonly parts: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
15030
|
+
readonly type: Schema.Literal<"text">;
|
|
15031
|
+
readonly text: Schema.String;
|
|
15032
|
+
}>, Schema.Struct<{
|
|
15033
|
+
readonly type: Schema.Literal<"image">;
|
|
15034
|
+
readonly data: Schema.String;
|
|
15035
|
+
readonly mimeType: Schema.String;
|
|
15036
|
+
}>]>>;
|
|
13888
15037
|
}> & {
|
|
13889
15038
|
equivalence: import("effect/Equivalence").Equivalence<{
|
|
13890
|
-
readonly
|
|
15039
|
+
readonly parts: readonly ({
|
|
15040
|
+
readonly type: "text";
|
|
15041
|
+
readonly text: string;
|
|
15042
|
+
} | {
|
|
15043
|
+
readonly type: "image";
|
|
15044
|
+
readonly data: string;
|
|
15045
|
+
readonly mimeType: string;
|
|
15046
|
+
})[];
|
|
13891
15047
|
}>;
|
|
13892
|
-
|
|
13893
|
-
readonly
|
|
15048
|
+
fromText: (text: string) => {
|
|
15049
|
+
readonly parts: readonly ({
|
|
15050
|
+
readonly type: "text";
|
|
15051
|
+
readonly text: string;
|
|
15052
|
+
} | {
|
|
15053
|
+
readonly type: "image";
|
|
15054
|
+
readonly data: string;
|
|
15055
|
+
readonly mimeType: string;
|
|
15056
|
+
})[];
|
|
13894
15057
|
};
|
|
15058
|
+
text: (prompt: Prompt) => string;
|
|
13895
15059
|
};
|
|
13896
15060
|
delivery: Schema.Literals<readonly ["steer", "followUp"]>;
|
|
13897
15061
|
}>;
|
|
@@ -13912,14 +15076,36 @@ declare const PublicDefinitions: readonly [Schema.Struct<{
|
|
|
13912
15076
|
from: (id: string) => string & import("effect/Brand").Brand<"Message.ID">;
|
|
13913
15077
|
};
|
|
13914
15078
|
prompt: Schema.Struct<{
|
|
13915
|
-
readonly
|
|
15079
|
+
readonly parts: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
15080
|
+
readonly type: Schema.Literal<"text">;
|
|
15081
|
+
readonly text: Schema.String;
|
|
15082
|
+
}>, Schema.Struct<{
|
|
15083
|
+
readonly type: Schema.Literal<"image">;
|
|
15084
|
+
readonly data: Schema.String;
|
|
15085
|
+
readonly mimeType: Schema.String;
|
|
15086
|
+
}>]>>;
|
|
13916
15087
|
}> & {
|
|
13917
15088
|
equivalence: import("effect/Equivalence").Equivalence<{
|
|
13918
|
-
readonly
|
|
15089
|
+
readonly parts: readonly ({
|
|
15090
|
+
readonly type: "text";
|
|
15091
|
+
readonly text: string;
|
|
15092
|
+
} | {
|
|
15093
|
+
readonly type: "image";
|
|
15094
|
+
readonly data: string;
|
|
15095
|
+
readonly mimeType: string;
|
|
15096
|
+
})[];
|
|
13919
15097
|
}>;
|
|
13920
|
-
|
|
13921
|
-
readonly
|
|
15098
|
+
fromText: (text: string) => {
|
|
15099
|
+
readonly parts: readonly ({
|
|
15100
|
+
readonly type: "text";
|
|
15101
|
+
readonly text: string;
|
|
15102
|
+
} | {
|
|
15103
|
+
readonly type: "image";
|
|
15104
|
+
readonly data: string;
|
|
15105
|
+
readonly mimeType: string;
|
|
15106
|
+
})[];
|
|
13922
15107
|
};
|
|
15108
|
+
text: (prompt: Prompt) => string;
|
|
13923
15109
|
};
|
|
13924
15110
|
delivery: Schema.Literals<readonly ["steer", "followUp"]>;
|
|
13925
15111
|
}>;
|
|
@@ -13949,14 +15135,36 @@ declare const PublicDefinitions: readonly [Schema.Struct<{
|
|
|
13949
15135
|
from: (id: string) => string & import("effect/Brand").Brand<"Message.ID">;
|
|
13950
15136
|
};
|
|
13951
15137
|
prompt: Schema.Struct<{
|
|
13952
|
-
readonly
|
|
15138
|
+
readonly parts: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
15139
|
+
readonly type: Schema.Literal<"text">;
|
|
15140
|
+
readonly text: Schema.String;
|
|
15141
|
+
}>, Schema.Struct<{
|
|
15142
|
+
readonly type: Schema.Literal<"image">;
|
|
15143
|
+
readonly data: Schema.String;
|
|
15144
|
+
readonly mimeType: Schema.String;
|
|
15145
|
+
}>]>>;
|
|
13953
15146
|
}> & {
|
|
13954
15147
|
equivalence: import("effect/Equivalence").Equivalence<{
|
|
13955
|
-
readonly
|
|
15148
|
+
readonly parts: readonly ({
|
|
15149
|
+
readonly type: "text";
|
|
15150
|
+
readonly text: string;
|
|
15151
|
+
} | {
|
|
15152
|
+
readonly type: "image";
|
|
15153
|
+
readonly data: string;
|
|
15154
|
+
readonly mimeType: string;
|
|
15155
|
+
})[];
|
|
13956
15156
|
}>;
|
|
13957
|
-
|
|
13958
|
-
readonly
|
|
15157
|
+
fromText: (text: string) => {
|
|
15158
|
+
readonly parts: readonly ({
|
|
15159
|
+
readonly type: "text";
|
|
15160
|
+
readonly text: string;
|
|
15161
|
+
} | {
|
|
15162
|
+
readonly type: "image";
|
|
15163
|
+
readonly data: string;
|
|
15164
|
+
readonly mimeType: string;
|
|
15165
|
+
})[];
|
|
13959
15166
|
};
|
|
15167
|
+
text: (prompt: Prompt) => string;
|
|
13960
15168
|
};
|
|
13961
15169
|
delivery: Schema.Literals<readonly ["steer", "followUp"]>;
|
|
13962
15170
|
}>;
|
|
@@ -13977,17 +15185,90 @@ declare const PublicDefinitions: readonly [Schema.Struct<{
|
|
|
13977
15185
|
from: (id: string) => string & import("effect/Brand").Brand<"Message.ID">;
|
|
13978
15186
|
};
|
|
13979
15187
|
prompt: Schema.Struct<{
|
|
13980
|
-
readonly
|
|
15188
|
+
readonly parts: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
15189
|
+
readonly type: Schema.Literal<"text">;
|
|
15190
|
+
readonly text: Schema.String;
|
|
15191
|
+
}>, Schema.Struct<{
|
|
15192
|
+
readonly type: Schema.Literal<"image">;
|
|
15193
|
+
readonly data: Schema.String;
|
|
15194
|
+
readonly mimeType: Schema.String;
|
|
15195
|
+
}>]>>;
|
|
13981
15196
|
}> & {
|
|
13982
15197
|
equivalence: import("effect/Equivalence").Equivalence<{
|
|
13983
|
-
readonly
|
|
15198
|
+
readonly parts: readonly ({
|
|
15199
|
+
readonly type: "text";
|
|
15200
|
+
readonly text: string;
|
|
15201
|
+
} | {
|
|
15202
|
+
readonly type: "image";
|
|
15203
|
+
readonly data: string;
|
|
15204
|
+
readonly mimeType: string;
|
|
15205
|
+
})[];
|
|
13984
15206
|
}>;
|
|
13985
|
-
|
|
13986
|
-
readonly
|
|
15207
|
+
fromText: (text: string) => {
|
|
15208
|
+
readonly parts: readonly ({
|
|
15209
|
+
readonly type: "text";
|
|
15210
|
+
readonly text: string;
|
|
15211
|
+
} | {
|
|
15212
|
+
readonly type: "image";
|
|
15213
|
+
readonly data: string;
|
|
15214
|
+
readonly mimeType: string;
|
|
15215
|
+
})[];
|
|
13987
15216
|
};
|
|
15217
|
+
text: (prompt: Prompt) => string;
|
|
13988
15218
|
};
|
|
13989
15219
|
delivery: Schema.Literals<readonly ["steer", "followUp"]>;
|
|
13990
15220
|
}>;
|
|
15221
|
+
}, Schema.Struct<{
|
|
15222
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
15223
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
15224
|
+
};
|
|
15225
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
|
|
15226
|
+
readonly type: Schema.Literal<"session.config.changed">;
|
|
15227
|
+
readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
15228
|
+
readonly aggregateId: Schema.String;
|
|
15229
|
+
readonly seq: Schema.Int;
|
|
15230
|
+
readonly version: Schema.Int;
|
|
15231
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
15232
|
+
readonly aggregateId: Schema.String;
|
|
15233
|
+
readonly seq: Schema.Int;
|
|
15234
|
+
readonly version: Schema.Int;
|
|
15235
|
+
}>>, never, never>;
|
|
15236
|
+
readonly data: Schema.Struct<{
|
|
15237
|
+
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
15238
|
+
readonly provider: Schema.String;
|
|
15239
|
+
readonly id: Schema.String;
|
|
15240
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
15241
|
+
readonly provider: Schema.String;
|
|
15242
|
+
readonly id: Schema.String;
|
|
15243
|
+
}>>, never, never>;
|
|
15244
|
+
readonly thinkingLevel: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>>, Schema.optionalKey<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>, never, never>;
|
|
15245
|
+
readonly timestamp: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
15246
|
+
readonly sessionId: Schema.brand<Schema.String, "Session.ID"> & {
|
|
15247
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Session.ID">;
|
|
15248
|
+
create: () => string & import("effect/Brand").Brand<"Session.ID">;
|
|
15249
|
+
};
|
|
15250
|
+
}>;
|
|
15251
|
+
}> & {
|
|
15252
|
+
type: "session.config.changed";
|
|
15253
|
+
durable?: {
|
|
15254
|
+
readonly version: number;
|
|
15255
|
+
readonly aggregate: string;
|
|
15256
|
+
};
|
|
15257
|
+
data: Schema.Struct<{
|
|
15258
|
+
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
15259
|
+
readonly provider: Schema.String;
|
|
15260
|
+
readonly id: Schema.String;
|
|
15261
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
15262
|
+
readonly provider: Schema.String;
|
|
15263
|
+
readonly id: Schema.String;
|
|
15264
|
+
}>>, never, never>;
|
|
15265
|
+
readonly thinkingLevel: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>>, Schema.optionalKey<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>, never, never>;
|
|
15266
|
+
readonly timestamp: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
15267
|
+
readonly sessionId: Schema.brand<Schema.String, "Session.ID"> & {
|
|
15268
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Session.ID">;
|
|
15269
|
+
create: () => string & import("effect/Brand").Brand<"Session.ID">;
|
|
15270
|
+
};
|
|
15271
|
+
}>;
|
|
13991
15272
|
}, Schema.Struct<{
|
|
13992
15273
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
13993
15274
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -14162,6 +15443,90 @@ declare const PublicDefinitions: readonly [Schema.Struct<{
|
|
|
14162
15443
|
readonly message: Schema.String;
|
|
14163
15444
|
}>]>;
|
|
14164
15445
|
}>;
|
|
15446
|
+
}, Schema.Struct<{
|
|
15447
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
15448
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
15449
|
+
};
|
|
15450
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
|
|
15451
|
+
readonly type: Schema.Literal<"session.retry.scheduled">;
|
|
15452
|
+
readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
15453
|
+
readonly aggregateId: Schema.String;
|
|
15454
|
+
readonly seq: Schema.Int;
|
|
15455
|
+
readonly version: Schema.Int;
|
|
15456
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
15457
|
+
readonly aggregateId: Schema.String;
|
|
15458
|
+
readonly seq: Schema.Int;
|
|
15459
|
+
readonly version: Schema.Int;
|
|
15460
|
+
}>>, never, never>;
|
|
15461
|
+
readonly data: Schema.Struct<{
|
|
15462
|
+
readonly timestamp: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
15463
|
+
readonly sessionId: Schema.brand<Schema.String, "Session.ID"> & {
|
|
15464
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Session.ID">;
|
|
15465
|
+
create: () => string & import("effect/Brand").Brand<"Session.ID">;
|
|
15466
|
+
};
|
|
15467
|
+
readonly attempt: Schema.Int;
|
|
15468
|
+
readonly maxRetries: Schema.Int;
|
|
15469
|
+
readonly delayMs: Schema.Int;
|
|
15470
|
+
readonly message: Schema.String;
|
|
15471
|
+
}>;
|
|
15472
|
+
}> & {
|
|
15473
|
+
type: "session.retry.scheduled";
|
|
15474
|
+
durable?: {
|
|
15475
|
+
readonly version: number;
|
|
15476
|
+
readonly aggregate: string;
|
|
15477
|
+
};
|
|
15478
|
+
data: Schema.Struct<{
|
|
15479
|
+
readonly timestamp: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
15480
|
+
readonly sessionId: Schema.brand<Schema.String, "Session.ID"> & {
|
|
15481
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Session.ID">;
|
|
15482
|
+
create: () => string & import("effect/Brand").Brand<"Session.ID">;
|
|
15483
|
+
};
|
|
15484
|
+
readonly attempt: Schema.Int;
|
|
15485
|
+
readonly maxRetries: Schema.Int;
|
|
15486
|
+
readonly delayMs: Schema.Int;
|
|
15487
|
+
readonly message: Schema.String;
|
|
15488
|
+
}>;
|
|
15489
|
+
}, Schema.Struct<{
|
|
15490
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
15491
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
15492
|
+
};
|
|
15493
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
|
|
15494
|
+
readonly type: Schema.Literal<"session.retry.finished">;
|
|
15495
|
+
readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
15496
|
+
readonly aggregateId: Schema.String;
|
|
15497
|
+
readonly seq: Schema.Int;
|
|
15498
|
+
readonly version: Schema.Int;
|
|
15499
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
15500
|
+
readonly aggregateId: Schema.String;
|
|
15501
|
+
readonly seq: Schema.Int;
|
|
15502
|
+
readonly version: Schema.Int;
|
|
15503
|
+
}>>, never, never>;
|
|
15504
|
+
readonly data: Schema.Struct<{
|
|
15505
|
+
readonly timestamp: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
15506
|
+
readonly sessionId: Schema.brand<Schema.String, "Session.ID"> & {
|
|
15507
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Session.ID">;
|
|
15508
|
+
create: () => string & import("effect/Brand").Brand<"Session.ID">;
|
|
15509
|
+
};
|
|
15510
|
+
readonly attempt: Schema.Int;
|
|
15511
|
+
readonly success: Schema.Boolean;
|
|
15512
|
+
readonly message: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
15513
|
+
}>;
|
|
15514
|
+
}> & {
|
|
15515
|
+
type: "session.retry.finished";
|
|
15516
|
+
durable?: {
|
|
15517
|
+
readonly version: number;
|
|
15518
|
+
readonly aggregate: string;
|
|
15519
|
+
};
|
|
15520
|
+
data: Schema.Struct<{
|
|
15521
|
+
readonly timestamp: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
15522
|
+
readonly sessionId: Schema.brand<Schema.String, "Session.ID"> & {
|
|
15523
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Session.ID">;
|
|
15524
|
+
create: () => string & import("effect/Brand").Brand<"Session.ID">;
|
|
15525
|
+
};
|
|
15526
|
+
readonly attempt: Schema.Int;
|
|
15527
|
+
readonly success: Schema.Boolean;
|
|
15528
|
+
readonly message: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
15529
|
+
}>;
|
|
14165
15530
|
}, Schema.Struct<{
|
|
14166
15531
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
14167
15532
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -14328,6 +15693,14 @@ declare const PublicDefinitions: readonly [Schema.Struct<{
|
|
|
14328
15693
|
completed: number;
|
|
14329
15694
|
};
|
|
14330
15695
|
parts: ({
|
|
15696
|
+
type: "text";
|
|
15697
|
+
text: string;
|
|
15698
|
+
textSignature?: string;
|
|
15699
|
+
} | {
|
|
15700
|
+
type: "image";
|
|
15701
|
+
data: string;
|
|
15702
|
+
mimeType: string;
|
|
15703
|
+
} | {
|
|
14331
15704
|
addedToolNames?: string[];
|
|
14332
15705
|
arguments: Record<string, any>;
|
|
14333
15706
|
callID: string;
|
|
@@ -14431,14 +15804,6 @@ declare const PublicDefinitions: readonly [Schema.Struct<{
|
|
|
14431
15804
|
end: number;
|
|
14432
15805
|
};
|
|
14433
15806
|
type: "toolCall";
|
|
14434
|
-
} | {
|
|
14435
|
-
type: "text";
|
|
14436
|
-
text: string;
|
|
14437
|
-
textSignature?: string;
|
|
14438
|
-
} | {
|
|
14439
|
-
type: "image";
|
|
14440
|
-
data: string;
|
|
14441
|
-
mimeType: string;
|
|
14442
15807
|
} | {
|
|
14443
15808
|
type: "thinking";
|
|
14444
15809
|
thinking: string;
|
|
@@ -14628,6 +15993,14 @@ declare const PublicDefinitions: readonly [Schema.Struct<{
|
|
|
14628
15993
|
completed: number;
|
|
14629
15994
|
};
|
|
14630
15995
|
parts: ({
|
|
15996
|
+
type: "text";
|
|
15997
|
+
text: string;
|
|
15998
|
+
textSignature?: string;
|
|
15999
|
+
} | {
|
|
16000
|
+
type: "image";
|
|
16001
|
+
data: string;
|
|
16002
|
+
mimeType: string;
|
|
16003
|
+
} | {
|
|
14631
16004
|
addedToolNames?: string[];
|
|
14632
16005
|
arguments: Record<string, any>;
|
|
14633
16006
|
callID: string;
|
|
@@ -14731,14 +16104,6 @@ declare const PublicDefinitions: readonly [Schema.Struct<{
|
|
|
14731
16104
|
end: number;
|
|
14732
16105
|
};
|
|
14733
16106
|
type: "toolCall";
|
|
14734
|
-
} | {
|
|
14735
|
-
type: "text";
|
|
14736
|
-
text: string;
|
|
14737
|
-
textSignature?: string;
|
|
14738
|
-
} | {
|
|
14739
|
-
type: "image";
|
|
14740
|
-
data: string;
|
|
14741
|
-
mimeType: string;
|
|
14742
16107
|
} | {
|
|
14743
16108
|
type: "thinking";
|
|
14744
16109
|
thinking: string;
|
|
@@ -14946,6 +16311,14 @@ declare const PublicDefinitions: readonly [Schema.Struct<{
|
|
|
14946
16311
|
completed: number;
|
|
14947
16312
|
};
|
|
14948
16313
|
parts: ({
|
|
16314
|
+
type: "text";
|
|
16315
|
+
text: string;
|
|
16316
|
+
textSignature?: string;
|
|
16317
|
+
} | {
|
|
16318
|
+
type: "image";
|
|
16319
|
+
data: string;
|
|
16320
|
+
mimeType: string;
|
|
16321
|
+
} | {
|
|
14949
16322
|
addedToolNames?: string[];
|
|
14950
16323
|
arguments: Record<string, any>;
|
|
14951
16324
|
callID: string;
|
|
@@ -15049,14 +16422,6 @@ declare const PublicDefinitions: readonly [Schema.Struct<{
|
|
|
15049
16422
|
end: number;
|
|
15050
16423
|
};
|
|
15051
16424
|
type: "toolCall";
|
|
15052
|
-
} | {
|
|
15053
|
-
type: "text";
|
|
15054
|
-
text: string;
|
|
15055
|
-
textSignature?: string;
|
|
15056
|
-
} | {
|
|
15057
|
-
type: "image";
|
|
15058
|
-
data: string;
|
|
15059
|
-
mimeType: string;
|
|
15060
16425
|
} | {
|
|
15061
16426
|
type: "thinking";
|
|
15062
16427
|
thinking: string;
|
|
@@ -15246,6 +16611,14 @@ declare const PublicDefinitions: readonly [Schema.Struct<{
|
|
|
15246
16611
|
completed: number;
|
|
15247
16612
|
};
|
|
15248
16613
|
parts: ({
|
|
16614
|
+
type: "text";
|
|
16615
|
+
text: string;
|
|
16616
|
+
textSignature?: string;
|
|
16617
|
+
} | {
|
|
16618
|
+
type: "image";
|
|
16619
|
+
data: string;
|
|
16620
|
+
mimeType: string;
|
|
16621
|
+
} | {
|
|
15249
16622
|
addedToolNames?: string[];
|
|
15250
16623
|
arguments: Record<string, any>;
|
|
15251
16624
|
callID: string;
|
|
@@ -15349,14 +16722,6 @@ declare const PublicDefinitions: readonly [Schema.Struct<{
|
|
|
15349
16722
|
end: number;
|
|
15350
16723
|
};
|
|
15351
16724
|
type: "toolCall";
|
|
15352
|
-
} | {
|
|
15353
|
-
type: "text";
|
|
15354
|
-
text: string;
|
|
15355
|
-
textSignature?: string;
|
|
15356
|
-
} | {
|
|
15357
|
-
type: "image";
|
|
15358
|
-
data: string;
|
|
15359
|
-
mimeType: string;
|
|
15360
16725
|
} | {
|
|
15361
16726
|
type: "thinking";
|
|
15362
16727
|
thinking: string;
|
|
@@ -15852,6 +17217,14 @@ declare const PublicDefinitions: readonly [Schema.Struct<{
|
|
|
15852
17217
|
completed: number;
|
|
15853
17218
|
};
|
|
15854
17219
|
parts: ({
|
|
17220
|
+
type: "text";
|
|
17221
|
+
text: string;
|
|
17222
|
+
textSignature?: string;
|
|
17223
|
+
} | {
|
|
17224
|
+
type: "image";
|
|
17225
|
+
data: string;
|
|
17226
|
+
mimeType: string;
|
|
17227
|
+
} | {
|
|
15855
17228
|
addedToolNames?: string[];
|
|
15856
17229
|
arguments: Record<string, any>;
|
|
15857
17230
|
callID: string;
|
|
@@ -15955,14 +17328,6 @@ declare const PublicDefinitions: readonly [Schema.Struct<{
|
|
|
15955
17328
|
end: number;
|
|
15956
17329
|
};
|
|
15957
17330
|
type: "toolCall";
|
|
15958
|
-
} | {
|
|
15959
|
-
type: "text";
|
|
15960
|
-
text: string;
|
|
15961
|
-
textSignature?: string;
|
|
15962
|
-
} | {
|
|
15963
|
-
type: "image";
|
|
15964
|
-
data: string;
|
|
15965
|
-
mimeType: string;
|
|
15966
17331
|
} | {
|
|
15967
17332
|
type: "thinking";
|
|
15968
17333
|
thinking: string;
|
|
@@ -16152,6 +17517,14 @@ declare const PublicDefinitions: readonly [Schema.Struct<{
|
|
|
16152
17517
|
completed: number;
|
|
16153
17518
|
};
|
|
16154
17519
|
parts: ({
|
|
17520
|
+
type: "text";
|
|
17521
|
+
text: string;
|
|
17522
|
+
textSignature?: string;
|
|
17523
|
+
} | {
|
|
17524
|
+
type: "image";
|
|
17525
|
+
data: string;
|
|
17526
|
+
mimeType: string;
|
|
17527
|
+
} | {
|
|
16155
17528
|
addedToolNames?: string[];
|
|
16156
17529
|
arguments: Record<string, any>;
|
|
16157
17530
|
callID: string;
|
|
@@ -16255,14 +17628,6 @@ declare const PublicDefinitions: readonly [Schema.Struct<{
|
|
|
16255
17628
|
end: number;
|
|
16256
17629
|
};
|
|
16257
17630
|
type: "toolCall";
|
|
16258
|
-
} | {
|
|
16259
|
-
type: "text";
|
|
16260
|
-
text: string;
|
|
16261
|
-
textSignature?: string;
|
|
16262
|
-
} | {
|
|
16263
|
-
type: "image";
|
|
16264
|
-
data: string;
|
|
16265
|
-
mimeType: string;
|
|
16266
17631
|
} | {
|
|
16267
17632
|
type: "thinking";
|
|
16268
17633
|
thinking: string;
|
|
@@ -16471,6 +17836,14 @@ declare const PublicDefinitions: readonly [Schema.Struct<{
|
|
|
16471
17836
|
completed: number;
|
|
16472
17837
|
};
|
|
16473
17838
|
parts: ({
|
|
17839
|
+
type: "text";
|
|
17840
|
+
text: string;
|
|
17841
|
+
textSignature?: string;
|
|
17842
|
+
} | {
|
|
17843
|
+
type: "image";
|
|
17844
|
+
data: string;
|
|
17845
|
+
mimeType: string;
|
|
17846
|
+
} | {
|
|
16474
17847
|
addedToolNames?: string[];
|
|
16475
17848
|
arguments: Record<string, any>;
|
|
16476
17849
|
callID: string;
|
|
@@ -16574,14 +17947,6 @@ declare const PublicDefinitions: readonly [Schema.Struct<{
|
|
|
16574
17947
|
end: number;
|
|
16575
17948
|
};
|
|
16576
17949
|
type: "toolCall";
|
|
16577
|
-
} | {
|
|
16578
|
-
type: "text";
|
|
16579
|
-
text: string;
|
|
16580
|
-
textSignature?: string;
|
|
16581
|
-
} | {
|
|
16582
|
-
type: "image";
|
|
16583
|
-
data: string;
|
|
16584
|
-
mimeType: string;
|
|
16585
17950
|
} | {
|
|
16586
17951
|
type: "thinking";
|
|
16587
17952
|
thinking: string;
|
|
@@ -16771,6 +18136,14 @@ declare const PublicDefinitions: readonly [Schema.Struct<{
|
|
|
16771
18136
|
completed: number;
|
|
16772
18137
|
};
|
|
16773
18138
|
parts: ({
|
|
18139
|
+
type: "text";
|
|
18140
|
+
text: string;
|
|
18141
|
+
textSignature?: string;
|
|
18142
|
+
} | {
|
|
18143
|
+
type: "image";
|
|
18144
|
+
data: string;
|
|
18145
|
+
mimeType: string;
|
|
18146
|
+
} | {
|
|
16774
18147
|
addedToolNames?: string[];
|
|
16775
18148
|
arguments: Record<string, any>;
|
|
16776
18149
|
callID: string;
|
|
@@ -16874,14 +18247,6 @@ declare const PublicDefinitions: readonly [Schema.Struct<{
|
|
|
16874
18247
|
end: number;
|
|
16875
18248
|
};
|
|
16876
18249
|
type: "toolCall";
|
|
16877
|
-
} | {
|
|
16878
|
-
type: "text";
|
|
16879
|
-
text: string;
|
|
16880
|
-
textSignature?: string;
|
|
16881
|
-
} | {
|
|
16882
|
-
type: "image";
|
|
16883
|
-
data: string;
|
|
16884
|
-
mimeType: string;
|
|
16885
18250
|
} | {
|
|
16886
18251
|
type: "thinking";
|
|
16887
18252
|
thinking: string;
|
|
@@ -17099,6 +18464,14 @@ declare const PublicDefinitions: readonly [Schema.Struct<{
|
|
|
17099
18464
|
completed: number;
|
|
17100
18465
|
};
|
|
17101
18466
|
parts: ({
|
|
18467
|
+
type: "text";
|
|
18468
|
+
text: string;
|
|
18469
|
+
textSignature?: string;
|
|
18470
|
+
} | {
|
|
18471
|
+
type: "image";
|
|
18472
|
+
data: string;
|
|
18473
|
+
mimeType: string;
|
|
18474
|
+
} | {
|
|
17102
18475
|
addedToolNames?: string[];
|
|
17103
18476
|
arguments: Record<string, any>;
|
|
17104
18477
|
callID: string;
|
|
@@ -17202,14 +18575,6 @@ declare const PublicDefinitions: readonly [Schema.Struct<{
|
|
|
17202
18575
|
end: number;
|
|
17203
18576
|
};
|
|
17204
18577
|
type: "toolCall";
|
|
17205
|
-
} | {
|
|
17206
|
-
type: "text";
|
|
17207
|
-
text: string;
|
|
17208
|
-
textSignature?: string;
|
|
17209
|
-
} | {
|
|
17210
|
-
type: "image";
|
|
17211
|
-
data: string;
|
|
17212
|
-
mimeType: string;
|
|
17213
18578
|
} | {
|
|
17214
18579
|
type: "thinking";
|
|
17215
18580
|
thinking: string;
|
|
@@ -17399,6 +18764,14 @@ declare const PublicDefinitions: readonly [Schema.Struct<{
|
|
|
17399
18764
|
completed: number;
|
|
17400
18765
|
};
|
|
17401
18766
|
parts: ({
|
|
18767
|
+
type: "text";
|
|
18768
|
+
text: string;
|
|
18769
|
+
textSignature?: string;
|
|
18770
|
+
} | {
|
|
18771
|
+
type: "image";
|
|
18772
|
+
data: string;
|
|
18773
|
+
mimeType: string;
|
|
18774
|
+
} | {
|
|
17402
18775
|
addedToolNames?: string[];
|
|
17403
18776
|
arguments: Record<string, any>;
|
|
17404
18777
|
callID: string;
|
|
@@ -17502,14 +18875,6 @@ declare const PublicDefinitions: readonly [Schema.Struct<{
|
|
|
17502
18875
|
end: number;
|
|
17503
18876
|
};
|
|
17504
18877
|
type: "toolCall";
|
|
17505
|
-
} | {
|
|
17506
|
-
type: "text";
|
|
17507
|
-
text: string;
|
|
17508
|
-
textSignature?: string;
|
|
17509
|
-
} | {
|
|
17510
|
-
type: "image";
|
|
17511
|
-
data: string;
|
|
17512
|
-
mimeType: string;
|
|
17513
18878
|
} | {
|
|
17514
18879
|
type: "thinking";
|
|
17515
18880
|
thinking: string;
|
|
@@ -17718,6 +19083,14 @@ declare const PublicDefinitions: readonly [Schema.Struct<{
|
|
|
17718
19083
|
completed: number;
|
|
17719
19084
|
};
|
|
17720
19085
|
parts: ({
|
|
19086
|
+
type: "text";
|
|
19087
|
+
text: string;
|
|
19088
|
+
textSignature?: string;
|
|
19089
|
+
} | {
|
|
19090
|
+
type: "image";
|
|
19091
|
+
data: string;
|
|
19092
|
+
mimeType: string;
|
|
19093
|
+
} | {
|
|
17721
19094
|
addedToolNames?: string[];
|
|
17722
19095
|
arguments: Record<string, any>;
|
|
17723
19096
|
callID: string;
|
|
@@ -17821,14 +19194,6 @@ declare const PublicDefinitions: readonly [Schema.Struct<{
|
|
|
17821
19194
|
end: number;
|
|
17822
19195
|
};
|
|
17823
19196
|
type: "toolCall";
|
|
17824
|
-
} | {
|
|
17825
|
-
type: "text";
|
|
17826
|
-
text: string;
|
|
17827
|
-
textSignature?: string;
|
|
17828
|
-
} | {
|
|
17829
|
-
type: "image";
|
|
17830
|
-
data: string;
|
|
17831
|
-
mimeType: string;
|
|
17832
19197
|
} | {
|
|
17833
19198
|
type: "thinking";
|
|
17834
19199
|
thinking: string;
|
|
@@ -18018,6 +19383,14 @@ declare const PublicDefinitions: readonly [Schema.Struct<{
|
|
|
18018
19383
|
completed: number;
|
|
18019
19384
|
};
|
|
18020
19385
|
parts: ({
|
|
19386
|
+
type: "text";
|
|
19387
|
+
text: string;
|
|
19388
|
+
textSignature?: string;
|
|
19389
|
+
} | {
|
|
19390
|
+
type: "image";
|
|
19391
|
+
data: string;
|
|
19392
|
+
mimeType: string;
|
|
19393
|
+
} | {
|
|
18021
19394
|
addedToolNames?: string[];
|
|
18022
19395
|
arguments: Record<string, any>;
|
|
18023
19396
|
callID: string;
|
|
@@ -18121,14 +19494,6 @@ declare const PublicDefinitions: readonly [Schema.Struct<{
|
|
|
18121
19494
|
end: number;
|
|
18122
19495
|
};
|
|
18123
19496
|
type: "toolCall";
|
|
18124
|
-
} | {
|
|
18125
|
-
type: "text";
|
|
18126
|
-
text: string;
|
|
18127
|
-
textSignature?: string;
|
|
18128
|
-
} | {
|
|
18129
|
-
type: "image";
|
|
18130
|
-
data: string;
|
|
18131
|
-
mimeType: string;
|
|
18132
19497
|
} | {
|
|
18133
19498
|
type: "thinking";
|
|
18134
19499
|
thinking: string;
|
|
@@ -18206,6 +19571,9 @@ declare const PublicDefinitions: readonly [Schema.Struct<{
|
|
|
18206
19571
|
};
|
|
18207
19572
|
readonly callID: Schema.String;
|
|
18208
19573
|
readonly name: Schema.String;
|
|
19574
|
+
/** The tool's display label, when its definition declares one. */
|
|
19575
|
+
readonly label: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
19576
|
+
readonly arguments: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
18209
19577
|
}>;
|
|
18210
19578
|
}> & {
|
|
18211
19579
|
type: "session.tool.started";
|
|
@@ -18225,6 +19593,9 @@ declare const PublicDefinitions: readonly [Schema.Struct<{
|
|
|
18225
19593
|
};
|
|
18226
19594
|
readonly callID: Schema.String;
|
|
18227
19595
|
readonly name: Schema.String;
|
|
19596
|
+
/** The tool's display label, when its definition declares one. */
|
|
19597
|
+
readonly label: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
19598
|
+
readonly arguments: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
18228
19599
|
}>;
|
|
18229
19600
|
}, Schema.Struct<{
|
|
18230
19601
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
@@ -18822,14 +20193,36 @@ declare const DurableDefinitions: readonly [Schema.Struct<{
|
|
|
18822
20193
|
from: (id: string) => string & import("effect/Brand").Brand<"Message.ID">;
|
|
18823
20194
|
};
|
|
18824
20195
|
prompt: Schema.Struct<{
|
|
18825
|
-
readonly
|
|
20196
|
+
readonly parts: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
20197
|
+
readonly type: Schema.Literal<"text">;
|
|
20198
|
+
readonly text: Schema.String;
|
|
20199
|
+
}>, Schema.Struct<{
|
|
20200
|
+
readonly type: Schema.Literal<"image">;
|
|
20201
|
+
readonly data: Schema.String;
|
|
20202
|
+
readonly mimeType: Schema.String;
|
|
20203
|
+
}>]>>;
|
|
18826
20204
|
}> & {
|
|
18827
20205
|
equivalence: import("effect/Equivalence").Equivalence<{
|
|
18828
|
-
readonly
|
|
20206
|
+
readonly parts: readonly ({
|
|
20207
|
+
readonly type: "text";
|
|
20208
|
+
readonly text: string;
|
|
20209
|
+
} | {
|
|
20210
|
+
readonly type: "image";
|
|
20211
|
+
readonly data: string;
|
|
20212
|
+
readonly mimeType: string;
|
|
20213
|
+
})[];
|
|
18829
20214
|
}>;
|
|
18830
|
-
|
|
18831
|
-
readonly
|
|
20215
|
+
fromText: (text: string) => {
|
|
20216
|
+
readonly parts: readonly ({
|
|
20217
|
+
readonly type: "text";
|
|
20218
|
+
readonly text: string;
|
|
20219
|
+
} | {
|
|
20220
|
+
readonly type: "image";
|
|
20221
|
+
readonly data: string;
|
|
20222
|
+
readonly mimeType: string;
|
|
20223
|
+
})[];
|
|
18832
20224
|
};
|
|
20225
|
+
text: (prompt: Prompt) => string;
|
|
18833
20226
|
};
|
|
18834
20227
|
delivery: Schema.Literals<readonly ["steer", "followUp"]>;
|
|
18835
20228
|
}>;
|
|
@@ -18850,14 +20243,36 @@ declare const DurableDefinitions: readonly [Schema.Struct<{
|
|
|
18850
20243
|
from: (id: string) => string & import("effect/Brand").Brand<"Message.ID">;
|
|
18851
20244
|
};
|
|
18852
20245
|
prompt: Schema.Struct<{
|
|
18853
|
-
readonly
|
|
20246
|
+
readonly parts: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
20247
|
+
readonly type: Schema.Literal<"text">;
|
|
20248
|
+
readonly text: Schema.String;
|
|
20249
|
+
}>, Schema.Struct<{
|
|
20250
|
+
readonly type: Schema.Literal<"image">;
|
|
20251
|
+
readonly data: Schema.String;
|
|
20252
|
+
readonly mimeType: Schema.String;
|
|
20253
|
+
}>]>>;
|
|
18854
20254
|
}> & {
|
|
18855
20255
|
equivalence: import("effect/Equivalence").Equivalence<{
|
|
18856
|
-
readonly
|
|
20256
|
+
readonly parts: readonly ({
|
|
20257
|
+
readonly type: "text";
|
|
20258
|
+
readonly text: string;
|
|
20259
|
+
} | {
|
|
20260
|
+
readonly type: "image";
|
|
20261
|
+
readonly data: string;
|
|
20262
|
+
readonly mimeType: string;
|
|
20263
|
+
})[];
|
|
18857
20264
|
}>;
|
|
18858
|
-
|
|
18859
|
-
readonly
|
|
20265
|
+
fromText: (text: string) => {
|
|
20266
|
+
readonly parts: readonly ({
|
|
20267
|
+
readonly type: "text";
|
|
20268
|
+
readonly text: string;
|
|
20269
|
+
} | {
|
|
20270
|
+
readonly type: "image";
|
|
20271
|
+
readonly data: string;
|
|
20272
|
+
readonly mimeType: string;
|
|
20273
|
+
})[];
|
|
18860
20274
|
};
|
|
20275
|
+
text: (prompt: Prompt) => string;
|
|
18861
20276
|
};
|
|
18862
20277
|
delivery: Schema.Literals<readonly ["steer", "followUp"]>;
|
|
18863
20278
|
}>;
|
|
@@ -18887,14 +20302,36 @@ declare const DurableDefinitions: readonly [Schema.Struct<{
|
|
|
18887
20302
|
from: (id: string) => string & import("effect/Brand").Brand<"Message.ID">;
|
|
18888
20303
|
};
|
|
18889
20304
|
prompt: Schema.Struct<{
|
|
18890
|
-
readonly
|
|
20305
|
+
readonly parts: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
20306
|
+
readonly type: Schema.Literal<"text">;
|
|
20307
|
+
readonly text: Schema.String;
|
|
20308
|
+
}>, Schema.Struct<{
|
|
20309
|
+
readonly type: Schema.Literal<"image">;
|
|
20310
|
+
readonly data: Schema.String;
|
|
20311
|
+
readonly mimeType: Schema.String;
|
|
20312
|
+
}>]>>;
|
|
18891
20313
|
}> & {
|
|
18892
20314
|
equivalence: import("effect/Equivalence").Equivalence<{
|
|
18893
|
-
readonly
|
|
20315
|
+
readonly parts: readonly ({
|
|
20316
|
+
readonly type: "text";
|
|
20317
|
+
readonly text: string;
|
|
20318
|
+
} | {
|
|
20319
|
+
readonly type: "image";
|
|
20320
|
+
readonly data: string;
|
|
20321
|
+
readonly mimeType: string;
|
|
20322
|
+
})[];
|
|
18894
20323
|
}>;
|
|
18895
|
-
|
|
18896
|
-
readonly
|
|
20324
|
+
fromText: (text: string) => {
|
|
20325
|
+
readonly parts: readonly ({
|
|
20326
|
+
readonly type: "text";
|
|
20327
|
+
readonly text: string;
|
|
20328
|
+
} | {
|
|
20329
|
+
readonly type: "image";
|
|
20330
|
+
readonly data: string;
|
|
20331
|
+
readonly mimeType: string;
|
|
20332
|
+
})[];
|
|
18897
20333
|
};
|
|
20334
|
+
text: (prompt: Prompt) => string;
|
|
18898
20335
|
};
|
|
18899
20336
|
delivery: Schema.Literals<readonly ["steer", "followUp"]>;
|
|
18900
20337
|
}>;
|
|
@@ -18915,17 +20352,90 @@ declare const DurableDefinitions: readonly [Schema.Struct<{
|
|
|
18915
20352
|
from: (id: string) => string & import("effect/Brand").Brand<"Message.ID">;
|
|
18916
20353
|
};
|
|
18917
20354
|
prompt: Schema.Struct<{
|
|
18918
|
-
readonly
|
|
20355
|
+
readonly parts: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
20356
|
+
readonly type: Schema.Literal<"text">;
|
|
20357
|
+
readonly text: Schema.String;
|
|
20358
|
+
}>, Schema.Struct<{
|
|
20359
|
+
readonly type: Schema.Literal<"image">;
|
|
20360
|
+
readonly data: Schema.String;
|
|
20361
|
+
readonly mimeType: Schema.String;
|
|
20362
|
+
}>]>>;
|
|
18919
20363
|
}> & {
|
|
18920
20364
|
equivalence: import("effect/Equivalence").Equivalence<{
|
|
18921
|
-
readonly
|
|
20365
|
+
readonly parts: readonly ({
|
|
20366
|
+
readonly type: "text";
|
|
20367
|
+
readonly text: string;
|
|
20368
|
+
} | {
|
|
20369
|
+
readonly type: "image";
|
|
20370
|
+
readonly data: string;
|
|
20371
|
+
readonly mimeType: string;
|
|
20372
|
+
})[];
|
|
18922
20373
|
}>;
|
|
18923
|
-
|
|
18924
|
-
readonly
|
|
20374
|
+
fromText: (text: string) => {
|
|
20375
|
+
readonly parts: readonly ({
|
|
20376
|
+
readonly type: "text";
|
|
20377
|
+
readonly text: string;
|
|
20378
|
+
} | {
|
|
20379
|
+
readonly type: "image";
|
|
20380
|
+
readonly data: string;
|
|
20381
|
+
readonly mimeType: string;
|
|
20382
|
+
})[];
|
|
18925
20383
|
};
|
|
20384
|
+
text: (prompt: Prompt) => string;
|
|
18926
20385
|
};
|
|
18927
20386
|
delivery: Schema.Literals<readonly ["steer", "followUp"]>;
|
|
18928
20387
|
}>;
|
|
20388
|
+
}, Schema.Struct<{
|
|
20389
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
20390
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
20391
|
+
};
|
|
20392
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
|
|
20393
|
+
readonly type: Schema.Literal<"session.config.changed">;
|
|
20394
|
+
readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
20395
|
+
readonly aggregateId: Schema.String;
|
|
20396
|
+
readonly seq: Schema.Int;
|
|
20397
|
+
readonly version: Schema.Int;
|
|
20398
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
20399
|
+
readonly aggregateId: Schema.String;
|
|
20400
|
+
readonly seq: Schema.Int;
|
|
20401
|
+
readonly version: Schema.Int;
|
|
20402
|
+
}>>, never, never>;
|
|
20403
|
+
readonly data: Schema.Struct<{
|
|
20404
|
+
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
20405
|
+
readonly provider: Schema.String;
|
|
20406
|
+
readonly id: Schema.String;
|
|
20407
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
20408
|
+
readonly provider: Schema.String;
|
|
20409
|
+
readonly id: Schema.String;
|
|
20410
|
+
}>>, never, never>;
|
|
20411
|
+
readonly thinkingLevel: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>>, Schema.optionalKey<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>, never, never>;
|
|
20412
|
+
readonly timestamp: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
20413
|
+
readonly sessionId: Schema.brand<Schema.String, "Session.ID"> & {
|
|
20414
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Session.ID">;
|
|
20415
|
+
create: () => string & import("effect/Brand").Brand<"Session.ID">;
|
|
20416
|
+
};
|
|
20417
|
+
}>;
|
|
20418
|
+
}> & {
|
|
20419
|
+
type: "session.config.changed";
|
|
20420
|
+
durable?: {
|
|
20421
|
+
readonly version: number;
|
|
20422
|
+
readonly aggregate: string;
|
|
20423
|
+
};
|
|
20424
|
+
data: Schema.Struct<{
|
|
20425
|
+
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
20426
|
+
readonly provider: Schema.String;
|
|
20427
|
+
readonly id: Schema.String;
|
|
20428
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
20429
|
+
readonly provider: Schema.String;
|
|
20430
|
+
readonly id: Schema.String;
|
|
20431
|
+
}>>, never, never>;
|
|
20432
|
+
readonly thinkingLevel: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>>, Schema.optionalKey<Schema.Literals<("high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh")[]>>, never, never>;
|
|
20433
|
+
readonly timestamp: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
20434
|
+
readonly sessionId: Schema.brand<Schema.String, "Session.ID"> & {
|
|
20435
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Session.ID">;
|
|
20436
|
+
create: () => string & import("effect/Brand").Brand<"Session.ID">;
|
|
20437
|
+
};
|
|
20438
|
+
}>;
|
|
18929
20439
|
}, Schema.Struct<{
|
|
18930
20440
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
18931
20441
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -19186,6 +20696,14 @@ declare const DurableDefinitions: readonly [Schema.Struct<{
|
|
|
19186
20696
|
completed: number;
|
|
19187
20697
|
};
|
|
19188
20698
|
parts: ({
|
|
20699
|
+
type: "text";
|
|
20700
|
+
text: string;
|
|
20701
|
+
textSignature?: string;
|
|
20702
|
+
} | {
|
|
20703
|
+
type: "image";
|
|
20704
|
+
data: string;
|
|
20705
|
+
mimeType: string;
|
|
20706
|
+
} | {
|
|
19189
20707
|
addedToolNames?: string[];
|
|
19190
20708
|
arguments: Record<string, any>;
|
|
19191
20709
|
callID: string;
|
|
@@ -19289,14 +20807,6 @@ declare const DurableDefinitions: readonly [Schema.Struct<{
|
|
|
19289
20807
|
end: number;
|
|
19290
20808
|
};
|
|
19291
20809
|
type: "toolCall";
|
|
19292
|
-
} | {
|
|
19293
|
-
type: "text";
|
|
19294
|
-
text: string;
|
|
19295
|
-
textSignature?: string;
|
|
19296
|
-
} | {
|
|
19297
|
-
type: "image";
|
|
19298
|
-
data: string;
|
|
19299
|
-
mimeType: string;
|
|
19300
20810
|
} | {
|
|
19301
20811
|
type: "thinking";
|
|
19302
20812
|
thinking: string;
|
|
@@ -19486,6 +20996,14 @@ declare const DurableDefinitions: readonly [Schema.Struct<{
|
|
|
19486
20996
|
completed: number;
|
|
19487
20997
|
};
|
|
19488
20998
|
parts: ({
|
|
20999
|
+
type: "text";
|
|
21000
|
+
text: string;
|
|
21001
|
+
textSignature?: string;
|
|
21002
|
+
} | {
|
|
21003
|
+
type: "image";
|
|
21004
|
+
data: string;
|
|
21005
|
+
mimeType: string;
|
|
21006
|
+
} | {
|
|
19489
21007
|
addedToolNames?: string[];
|
|
19490
21008
|
arguments: Record<string, any>;
|
|
19491
21009
|
callID: string;
|
|
@@ -19589,14 +21107,6 @@ declare const DurableDefinitions: readonly [Schema.Struct<{
|
|
|
19589
21107
|
end: number;
|
|
19590
21108
|
};
|
|
19591
21109
|
type: "toolCall";
|
|
19592
|
-
} | {
|
|
19593
|
-
type: "text";
|
|
19594
|
-
text: string;
|
|
19595
|
-
textSignature?: string;
|
|
19596
|
-
} | {
|
|
19597
|
-
type: "image";
|
|
19598
|
-
data: string;
|
|
19599
|
-
mimeType: string;
|
|
19600
21110
|
} | {
|
|
19601
21111
|
type: "thinking";
|
|
19602
21112
|
thinking: string;
|
|
@@ -19804,6 +21314,14 @@ declare const DurableDefinitions: readonly [Schema.Struct<{
|
|
|
19804
21314
|
completed: number;
|
|
19805
21315
|
};
|
|
19806
21316
|
parts: ({
|
|
21317
|
+
type: "text";
|
|
21318
|
+
text: string;
|
|
21319
|
+
textSignature?: string;
|
|
21320
|
+
} | {
|
|
21321
|
+
type: "image";
|
|
21322
|
+
data: string;
|
|
21323
|
+
mimeType: string;
|
|
21324
|
+
} | {
|
|
19807
21325
|
addedToolNames?: string[];
|
|
19808
21326
|
arguments: Record<string, any>;
|
|
19809
21327
|
callID: string;
|
|
@@ -19907,14 +21425,6 @@ declare const DurableDefinitions: readonly [Schema.Struct<{
|
|
|
19907
21425
|
end: number;
|
|
19908
21426
|
};
|
|
19909
21427
|
type: "toolCall";
|
|
19910
|
-
} | {
|
|
19911
|
-
type: "text";
|
|
19912
|
-
text: string;
|
|
19913
|
-
textSignature?: string;
|
|
19914
|
-
} | {
|
|
19915
|
-
type: "image";
|
|
19916
|
-
data: string;
|
|
19917
|
-
mimeType: string;
|
|
19918
21428
|
} | {
|
|
19919
21429
|
type: "thinking";
|
|
19920
21430
|
thinking: string;
|
|
@@ -20104,6 +21614,14 @@ declare const DurableDefinitions: readonly [Schema.Struct<{
|
|
|
20104
21614
|
completed: number;
|
|
20105
21615
|
};
|
|
20106
21616
|
parts: ({
|
|
21617
|
+
type: "text";
|
|
21618
|
+
text: string;
|
|
21619
|
+
textSignature?: string;
|
|
21620
|
+
} | {
|
|
21621
|
+
type: "image";
|
|
21622
|
+
data: string;
|
|
21623
|
+
mimeType: string;
|
|
21624
|
+
} | {
|
|
20107
21625
|
addedToolNames?: string[];
|
|
20108
21626
|
arguments: Record<string, any>;
|
|
20109
21627
|
callID: string;
|
|
@@ -20207,14 +21725,6 @@ declare const DurableDefinitions: readonly [Schema.Struct<{
|
|
|
20207
21725
|
end: number;
|
|
20208
21726
|
};
|
|
20209
21727
|
type: "toolCall";
|
|
20210
|
-
} | {
|
|
20211
|
-
type: "text";
|
|
20212
|
-
text: string;
|
|
20213
|
-
textSignature?: string;
|
|
20214
|
-
} | {
|
|
20215
|
-
type: "image";
|
|
20216
|
-
data: string;
|
|
20217
|
-
mimeType: string;
|
|
20218
21728
|
} | {
|
|
20219
21729
|
type: "thinking";
|
|
20220
21730
|
thinking: string;
|
|
@@ -20432,6 +21942,14 @@ declare const DurableDefinitions: readonly [Schema.Struct<{
|
|
|
20432
21942
|
completed: number;
|
|
20433
21943
|
};
|
|
20434
21944
|
parts: ({
|
|
21945
|
+
type: "text";
|
|
21946
|
+
text: string;
|
|
21947
|
+
textSignature?: string;
|
|
21948
|
+
} | {
|
|
21949
|
+
type: "image";
|
|
21950
|
+
data: string;
|
|
21951
|
+
mimeType: string;
|
|
21952
|
+
} | {
|
|
20435
21953
|
addedToolNames?: string[];
|
|
20436
21954
|
arguments: Record<string, any>;
|
|
20437
21955
|
callID: string;
|
|
@@ -20535,14 +22053,6 @@ declare const DurableDefinitions: readonly [Schema.Struct<{
|
|
|
20535
22053
|
end: number;
|
|
20536
22054
|
};
|
|
20537
22055
|
type: "toolCall";
|
|
20538
|
-
} | {
|
|
20539
|
-
type: "text";
|
|
20540
|
-
text: string;
|
|
20541
|
-
textSignature?: string;
|
|
20542
|
-
} | {
|
|
20543
|
-
type: "image";
|
|
20544
|
-
data: string;
|
|
20545
|
-
mimeType: string;
|
|
20546
22056
|
} | {
|
|
20547
22057
|
type: "thinking";
|
|
20548
22058
|
thinking: string;
|
|
@@ -20732,6 +22242,14 @@ declare const DurableDefinitions: readonly [Schema.Struct<{
|
|
|
20732
22242
|
completed: number;
|
|
20733
22243
|
};
|
|
20734
22244
|
parts: ({
|
|
22245
|
+
type: "text";
|
|
22246
|
+
text: string;
|
|
22247
|
+
textSignature?: string;
|
|
22248
|
+
} | {
|
|
22249
|
+
type: "image";
|
|
22250
|
+
data: string;
|
|
22251
|
+
mimeType: string;
|
|
22252
|
+
} | {
|
|
20735
22253
|
addedToolNames?: string[];
|
|
20736
22254
|
arguments: Record<string, any>;
|
|
20737
22255
|
callID: string;
|
|
@@ -20835,14 +22353,6 @@ declare const DurableDefinitions: readonly [Schema.Struct<{
|
|
|
20835
22353
|
end: number;
|
|
20836
22354
|
};
|
|
20837
22355
|
type: "toolCall";
|
|
20838
|
-
} | {
|
|
20839
|
-
type: "text";
|
|
20840
|
-
text: string;
|
|
20841
|
-
textSignature?: string;
|
|
20842
|
-
} | {
|
|
20843
|
-
type: "image";
|
|
20844
|
-
data: string;
|
|
20845
|
-
mimeType: string;
|
|
20846
22356
|
} | {
|
|
20847
22357
|
type: "thinking";
|
|
20848
22358
|
thinking: string;
|
|
@@ -21051,6 +22561,14 @@ declare const DurableDefinitions: readonly [Schema.Struct<{
|
|
|
21051
22561
|
completed: number;
|
|
21052
22562
|
};
|
|
21053
22563
|
parts: ({
|
|
22564
|
+
type: "text";
|
|
22565
|
+
text: string;
|
|
22566
|
+
textSignature?: string;
|
|
22567
|
+
} | {
|
|
22568
|
+
type: "image";
|
|
22569
|
+
data: string;
|
|
22570
|
+
mimeType: string;
|
|
22571
|
+
} | {
|
|
21054
22572
|
addedToolNames?: string[];
|
|
21055
22573
|
arguments: Record<string, any>;
|
|
21056
22574
|
callID: string;
|
|
@@ -21154,14 +22672,6 @@ declare const DurableDefinitions: readonly [Schema.Struct<{
|
|
|
21154
22672
|
end: number;
|
|
21155
22673
|
};
|
|
21156
22674
|
type: "toolCall";
|
|
21157
|
-
} | {
|
|
21158
|
-
type: "text";
|
|
21159
|
-
text: string;
|
|
21160
|
-
textSignature?: string;
|
|
21161
|
-
} | {
|
|
21162
|
-
type: "image";
|
|
21163
|
-
data: string;
|
|
21164
|
-
mimeType: string;
|
|
21165
22675
|
} | {
|
|
21166
22676
|
type: "thinking";
|
|
21167
22677
|
thinking: string;
|
|
@@ -21351,6 +22861,14 @@ declare const DurableDefinitions: readonly [Schema.Struct<{
|
|
|
21351
22861
|
completed: number;
|
|
21352
22862
|
};
|
|
21353
22863
|
parts: ({
|
|
22864
|
+
type: "text";
|
|
22865
|
+
text: string;
|
|
22866
|
+
textSignature?: string;
|
|
22867
|
+
} | {
|
|
22868
|
+
type: "image";
|
|
22869
|
+
data: string;
|
|
22870
|
+
mimeType: string;
|
|
22871
|
+
} | {
|
|
21354
22872
|
addedToolNames?: string[];
|
|
21355
22873
|
arguments: Record<string, any>;
|
|
21356
22874
|
callID: string;
|
|
@@ -21454,14 +22972,6 @@ declare const DurableDefinitions: readonly [Schema.Struct<{
|
|
|
21454
22972
|
end: number;
|
|
21455
22973
|
};
|
|
21456
22974
|
type: "toolCall";
|
|
21457
|
-
} | {
|
|
21458
|
-
type: "text";
|
|
21459
|
-
text: string;
|
|
21460
|
-
textSignature?: string;
|
|
21461
|
-
} | {
|
|
21462
|
-
type: "image";
|
|
21463
|
-
data: string;
|
|
21464
|
-
mimeType: string;
|
|
21465
22975
|
} | {
|
|
21466
22976
|
type: "thinking";
|
|
21467
22977
|
thinking: string;
|
|
@@ -21679,6 +23189,14 @@ declare const DurableDefinitions: readonly [Schema.Struct<{
|
|
|
21679
23189
|
completed: number;
|
|
21680
23190
|
};
|
|
21681
23191
|
parts: ({
|
|
23192
|
+
type: "text";
|
|
23193
|
+
text: string;
|
|
23194
|
+
textSignature?: string;
|
|
23195
|
+
} | {
|
|
23196
|
+
type: "image";
|
|
23197
|
+
data: string;
|
|
23198
|
+
mimeType: string;
|
|
23199
|
+
} | {
|
|
21682
23200
|
addedToolNames?: string[];
|
|
21683
23201
|
arguments: Record<string, any>;
|
|
21684
23202
|
callID: string;
|
|
@@ -21782,14 +23300,6 @@ declare const DurableDefinitions: readonly [Schema.Struct<{
|
|
|
21782
23300
|
end: number;
|
|
21783
23301
|
};
|
|
21784
23302
|
type: "toolCall";
|
|
21785
|
-
} | {
|
|
21786
|
-
type: "text";
|
|
21787
|
-
text: string;
|
|
21788
|
-
textSignature?: string;
|
|
21789
|
-
} | {
|
|
21790
|
-
type: "image";
|
|
21791
|
-
data: string;
|
|
21792
|
-
mimeType: string;
|
|
21793
23303
|
} | {
|
|
21794
23304
|
type: "thinking";
|
|
21795
23305
|
thinking: string;
|
|
@@ -21979,6 +23489,14 @@ declare const DurableDefinitions: readonly [Schema.Struct<{
|
|
|
21979
23489
|
completed: number;
|
|
21980
23490
|
};
|
|
21981
23491
|
parts: ({
|
|
23492
|
+
type: "text";
|
|
23493
|
+
text: string;
|
|
23494
|
+
textSignature?: string;
|
|
23495
|
+
} | {
|
|
23496
|
+
type: "image";
|
|
23497
|
+
data: string;
|
|
23498
|
+
mimeType: string;
|
|
23499
|
+
} | {
|
|
21982
23500
|
addedToolNames?: string[];
|
|
21983
23501
|
arguments: Record<string, any>;
|
|
21984
23502
|
callID: string;
|
|
@@ -22082,14 +23600,6 @@ declare const DurableDefinitions: readonly [Schema.Struct<{
|
|
|
22082
23600
|
end: number;
|
|
22083
23601
|
};
|
|
22084
23602
|
type: "toolCall";
|
|
22085
|
-
} | {
|
|
22086
|
-
type: "text";
|
|
22087
|
-
text: string;
|
|
22088
|
-
textSignature?: string;
|
|
22089
|
-
} | {
|
|
22090
|
-
type: "image";
|
|
22091
|
-
data: string;
|
|
22092
|
-
mimeType: string;
|
|
22093
23603
|
} | {
|
|
22094
23604
|
type: "thinking";
|
|
22095
23605
|
thinking: string;
|
|
@@ -22298,6 +23808,14 @@ declare const DurableDefinitions: readonly [Schema.Struct<{
|
|
|
22298
23808
|
completed: number;
|
|
22299
23809
|
};
|
|
22300
23810
|
parts: ({
|
|
23811
|
+
type: "text";
|
|
23812
|
+
text: string;
|
|
23813
|
+
textSignature?: string;
|
|
23814
|
+
} | {
|
|
23815
|
+
type: "image";
|
|
23816
|
+
data: string;
|
|
23817
|
+
mimeType: string;
|
|
23818
|
+
} | {
|
|
22301
23819
|
addedToolNames?: string[];
|
|
22302
23820
|
arguments: Record<string, any>;
|
|
22303
23821
|
callID: string;
|
|
@@ -22401,14 +23919,6 @@ declare const DurableDefinitions: readonly [Schema.Struct<{
|
|
|
22401
23919
|
end: number;
|
|
22402
23920
|
};
|
|
22403
23921
|
type: "toolCall";
|
|
22404
|
-
} | {
|
|
22405
|
-
type: "text";
|
|
22406
|
-
text: string;
|
|
22407
|
-
textSignature?: string;
|
|
22408
|
-
} | {
|
|
22409
|
-
type: "image";
|
|
22410
|
-
data: string;
|
|
22411
|
-
mimeType: string;
|
|
22412
23922
|
} | {
|
|
22413
23923
|
type: "thinking";
|
|
22414
23924
|
thinking: string;
|
|
@@ -22598,6 +24108,14 @@ declare const DurableDefinitions: readonly [Schema.Struct<{
|
|
|
22598
24108
|
completed: number;
|
|
22599
24109
|
};
|
|
22600
24110
|
parts: ({
|
|
24111
|
+
type: "text";
|
|
24112
|
+
text: string;
|
|
24113
|
+
textSignature?: string;
|
|
24114
|
+
} | {
|
|
24115
|
+
type: "image";
|
|
24116
|
+
data: string;
|
|
24117
|
+
mimeType: string;
|
|
24118
|
+
} | {
|
|
22601
24119
|
addedToolNames?: string[];
|
|
22602
24120
|
arguments: Record<string, any>;
|
|
22603
24121
|
callID: string;
|
|
@@ -22701,14 +24219,6 @@ declare const DurableDefinitions: readonly [Schema.Struct<{
|
|
|
22701
24219
|
end: number;
|
|
22702
24220
|
};
|
|
22703
24221
|
type: "toolCall";
|
|
22704
|
-
} | {
|
|
22705
|
-
type: "text";
|
|
22706
|
-
text: string;
|
|
22707
|
-
textSignature?: string;
|
|
22708
|
-
} | {
|
|
22709
|
-
type: "image";
|
|
22710
|
-
data: string;
|
|
22711
|
-
mimeType: string;
|
|
22712
24222
|
} | {
|
|
22713
24223
|
type: "thinking";
|
|
22714
24224
|
thinking: string;
|
|
@@ -23223,129 +24733,6 @@ declare const DurableDefinitions: readonly [Schema.Struct<{
|
|
|
23223
24733
|
}>, Schema.Unknown, never, never>;
|
|
23224
24734
|
}>;
|
|
23225
24735
|
}];
|
|
23226
|
-
declare namespace catalog_d_exports {
|
|
23227
|
-
export { catalog_d_exports as ModelCatalog, RefreshError, Status, filename, layer, loadError, models, providers, refresh, sync, ttlConfig };
|
|
23228
|
-
}
|
|
23229
|
-
declare const filename = "models.gen.json";
|
|
23230
|
-
/** How old the catalog may get before a check downloads a new one. */
|
|
23231
|
-
declare const ttlConfig: Config.Config<Duration.Duration>;
|
|
23232
|
-
declare const RefreshError_base: Schema.Class<RefreshError, Schema.TaggedStruct<"ModelCatalog.RefreshError", {
|
|
23233
|
-
readonly path: Schema.String;
|
|
23234
|
-
readonly detail: Schema.String;
|
|
23235
|
-
}>, import("effect/Cause").YieldableError>;
|
|
23236
|
-
declare class RefreshError extends RefreshError_base {
|
|
23237
|
-
get message(): string;
|
|
23238
|
-
}
|
|
23239
|
-
interface Status {
|
|
23240
|
-
readonly path: string;
|
|
23241
|
-
/** False when the catalog was fresh enough to keep. */
|
|
23242
|
-
readonly refreshed: boolean;
|
|
23243
|
-
}
|
|
23244
|
-
/** Download a new catalog for the home when it is missing, older than the TTL, or `force` asks. */
|
|
23245
|
-
declare const refresh: (home: string, options?: {
|
|
23246
|
-
readonly force?: boolean;
|
|
23247
|
-
} | undefined) => Effect.Effect<{
|
|
23248
|
-
path: string;
|
|
23249
|
-
refreshed: false;
|
|
23250
|
-
} | {
|
|
23251
|
-
path: string;
|
|
23252
|
-
refreshed: true;
|
|
23253
|
-
}, Config.ConfigError | RefreshError, never>;
|
|
23254
|
-
/** Check the home's catalog once, for a command that runs and exits; returns the file aikit reads. */
|
|
23255
|
-
declare const sync: (home: string) => Effect.Effect<string, never, never>;
|
|
23256
|
-
/**
|
|
23257
|
-
* Check at boot, and with `watch`, keep checking for the life of the layer. A file whose mtime
|
|
23258
|
-
* moved -- refreshed here, by `codework models refresh`, or by hand -- is reloaded, so the
|
|
23259
|
-
* process never serves a catalog older than what is on disk.
|
|
23260
|
-
*/
|
|
23261
|
-
declare const layer: (options: {
|
|
23262
|
-
readonly home: string;
|
|
23263
|
-
readonly watch: boolean;
|
|
23264
|
-
}) => Layer.Layer<never, never, never>;
|
|
23265
|
-
/** Translate aikit's catalog failure, or undefined for anything else. */
|
|
23266
|
-
declare const loadError: (cause: unknown) => ModelCatalogError | undefined;
|
|
23267
|
-
declare const models: Effect.Effect<Partial<Record<string, Record<string, {
|
|
23268
|
-
api?: {
|
|
23269
|
-
id?: string;
|
|
23270
|
-
url?: string;
|
|
23271
|
-
method?: "chat" | "completion" | "completionModel" | "languageModel" | "messages" | "responses";
|
|
23272
|
-
};
|
|
23273
|
-
baseUrl: string;
|
|
23274
|
-
compat?: {
|
|
23275
|
-
supportsThinkingLevel?: boolean;
|
|
23276
|
-
supportsToolSearch?: boolean;
|
|
23277
|
-
supportsAdditionalTools?: boolean;
|
|
23278
|
-
supportsStrictMode?: boolean;
|
|
23279
|
-
supportsOpenAIGrammarTools?: boolean;
|
|
23280
|
-
supportsThinkingTokenBudget?: boolean;
|
|
23281
|
-
forceAdaptiveThinking?: boolean;
|
|
23282
|
-
thinkingTokenBudgetField?: string;
|
|
23283
|
-
};
|
|
23284
|
-
contextWindow: number;
|
|
23285
|
-
cost: {
|
|
23286
|
-
input: number;
|
|
23287
|
-
output: number;
|
|
23288
|
-
cacheRead: number;
|
|
23289
|
-
cacheWrite: number;
|
|
23290
|
-
tiers?: {
|
|
23291
|
-
input: number;
|
|
23292
|
-
output: number;
|
|
23293
|
-
cacheRead: number;
|
|
23294
|
-
cacheWrite: number;
|
|
23295
|
-
inputTokensAbove: number;
|
|
23296
|
-
}[];
|
|
23297
|
-
serviceTierMultipliers?: Record<string, number>;
|
|
23298
|
-
};
|
|
23299
|
-
headers?: Record<string, string>;
|
|
23300
|
-
id: string;
|
|
23301
|
-
input: ("image" | "text")[];
|
|
23302
|
-
maxTokens: number;
|
|
23303
|
-
name: string;
|
|
23304
|
-
npm?: string;
|
|
23305
|
-
options?: Record<string, unknown>;
|
|
23306
|
-
protocol: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
|
|
23307
|
-
provider: {
|
|
23308
|
-
id: string;
|
|
23309
|
-
name: string;
|
|
23310
|
-
source: "api" | "config" | "custom" | "env" | "unknown";
|
|
23311
|
-
env: string[];
|
|
23312
|
-
key?: string;
|
|
23313
|
-
options?: Record<string, any>;
|
|
23314
|
-
};
|
|
23315
|
-
providerOptions?: Record<string, unknown>;
|
|
23316
|
-
providerOptionsKey?: string;
|
|
23317
|
-
reasoning: boolean;
|
|
23318
|
-
supportedProtocols?: {
|
|
23319
|
-
anthropic?: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
|
|
23320
|
-
google?: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
|
|
23321
|
-
googleVertex?: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
|
|
23322
|
-
googleVertexAnthropic?: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
|
|
23323
|
-
githubCopilot?: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
|
|
23324
|
-
openai?: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
|
|
23325
|
-
openaiCompatible?: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
|
|
23326
|
-
openaiCodex?: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
|
|
23327
|
-
openrouter?: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
|
|
23328
|
-
xai?: "anthropic" | "github-copilot" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-codex" | "openai-compatible" | "openrouter" | "xai";
|
|
23329
|
-
};
|
|
23330
|
-
thinkingBudgets?: {
|
|
23331
|
-
high?: number;
|
|
23332
|
-
low?: number;
|
|
23333
|
-
max?: number;
|
|
23334
|
-
medium?: number;
|
|
23335
|
-
minimal?: number;
|
|
23336
|
-
xhigh?: number;
|
|
23337
|
-
};
|
|
23338
|
-
thinkingLevelMap?: {
|
|
23339
|
-
high?: string | null;
|
|
23340
|
-
low?: string | null;
|
|
23341
|
-
max?: string | null;
|
|
23342
|
-
medium?: string | null;
|
|
23343
|
-
minimal?: string | null;
|
|
23344
|
-
off?: string | null;
|
|
23345
|
-
xhigh?: string | null;
|
|
23346
|
-
};
|
|
23347
|
-
}>>>, ModelCatalogError, never>;
|
|
23348
|
-
declare const providers: Effect.Effect<string[], ModelCatalogError, never>;
|
|
23349
24736
|
//#endregion
|
|
23350
24737
|
//#region src/plugin/host.d.ts
|
|
23351
24738
|
declare const SetupError_base: Schema.Class<SetupError, Schema.TaggedStruct<"Plugin.SetupError", {
|
|
@@ -23541,7 +24928,7 @@ declare const update: <A>(target: Fetchable, cache: string, options: {
|
|
|
23541
24928
|
readonly validated?: A & ({} | null);
|
|
23542
24929
|
}, InstallError | LoadError | StoreError, never>;
|
|
23543
24930
|
declare namespace index_d_exports {
|
|
23544
|
-
export { Checked, Config$1 as Config, Entry, Events, Fetchable, InstallError, LoadError, plugin_d_exports.Mount as Mount, plugin_d_exports.Plugin as Plugin, PluginOptions, PluginRef, PluginRegistry, Probe, schema_d_exports$1 as Prompt, PromptResolver, SetupError, SharedPluginContext, SourceError, StoreError, Target, schema_d_exports$3 as Tool, Updated, anchor, canonical, check, plugin_d_exports.define as define, definition, digest as identity, inspect, localName, parse, probe, resolve, required as resolveCached, lock as settingsLock, update };
|
|
24931
|
+
export { Checked, Config$1 as Config, Entry, Events, Fetchable, InstallError, LoadError, plugin_d_exports.Mount as Mount, plugin_d_exports.Plugin as Plugin, PluginOptions, PluginRef, PluginRegistry, Probe, schema_d_exports$1 as Prompt, PromptResolver, Section, SetupError, SharedPluginContext, SourceError, StoreError, Target, schema_d_exports$3 as Tool, Updated, anchor, canonical, check, plugin_d_exports.define as define, definition, digest as identity, inspect, localName, parse, probe, resolve, required as resolveCached, lock as settingsLock, update };
|
|
23545
24932
|
}
|
|
23546
24933
|
type DateTimeUtcFromMillis = import__codeworksh_plugin_schema.DateTimeUtcFromMillis;
|
|
23547
24934
|
type EventSchema = import__codeworksh_plugin_event.EventSchema;
|