@kilocode/protocol 0.0.0-stage → 0.0.0-v2-9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api.d.ts +58 -0
- package/dist/api.js +77 -0
- package/dist/client.d.ts +63 -0
- package/dist/client.js +55 -0
- package/dist/errors.d.ts +193 -0
- package/dist/errors.js +152 -0
- package/dist/groups/agent.d.ts +225 -0
- package/dist/groups/agent.js +30 -0
- package/dist/groups/command.d.ts +15 -0
- package/dist/groups/command.js +20 -0
- package/dist/groups/config.d.ts +14 -0
- package/dist/groups/config.js +32 -0
- package/dist/groups/credential.d.ts +93 -0
- package/dist/groups/credential.js +50 -0
- package/dist/groups/debug.d.ts +22 -0
- package/dist/groups/debug.js +49 -0
- package/dist/groups/event.d.ts +14853 -0
- package/dist/groups/event.js +51 -0
- package/dist/groups/form.d.ts +138 -0
- package/dist/groups/form.js +18 -0
- package/dist/groups/fs.d.ts +48 -0
- package/dist/groups/fs.js +73 -0
- package/dist/groups/generate.d.ts +33 -0
- package/dist/groups/generate.js +23 -0
- package/dist/groups/integration.d.ts +1724 -0
- package/dist/groups/integration.js +169 -0
- package/dist/groups/location.d.ts +23 -0
- package/dist/groups/location.js +45 -0
- package/dist/groups/mcp.d.ts +103 -0
- package/dist/groups/mcp.js +114 -0
- package/dist/groups/message.d.ts +1416 -0
- package/dist/groups/message.js +77 -0
- package/dist/groups/migration.d.ts +28 -0
- package/dist/groups/migration.js +21 -0
- package/dist/groups/model.d.ts +399 -0
- package/dist/groups/model.js +33 -0
- package/dist/groups/permission.d.ts +175 -0
- package/dist/groups/permission.js +110 -0
- package/dist/groups/persistent-pty.d.ts +242 -0
- package/dist/groups/persistent-pty.js +92 -0
- package/dist/groups/plugin.d.ts +86 -0
- package/dist/groups/plugin.js +45 -0
- package/dist/groups/project.d.ts +83 -0
- package/dist/groups/project.js +33 -0
- package/dist/groups/provider.d.ts +231 -0
- package/dist/groups/provider.js +34 -0
- package/dist/groups/pty.d.ts +151 -0
- package/dist/groups/pty.js +112 -0
- package/dist/groups/reference.d.ts +25 -0
- package/dist/groups/reference.js +33 -0
- package/dist/groups/rpc.d.ts +21 -0
- package/dist/groups/rpc.js +24 -0
- package/dist/groups/server.d.ts +44 -0
- package/dist/groups/server.js +53 -0
- package/dist/groups/session.d.ts +11380 -0
- package/dist/groups/session.js +611 -0
- package/dist/groups/shell.d.ts +125 -0
- package/dist/groups/shell.js +64 -0
- package/dist/groups/skill.d.ts +19 -0
- package/dist/groups/skill.js +20 -0
- package/dist/groups/vcs.d.ts +87 -0
- package/dist/groups/vcs.js +93 -0
- package/dist/groups/voice.d.ts +93 -0
- package/dist/groups/voice.js +89 -0
- package/dist/groups/websearch.d.ts +29 -0
- package/dist/groups/websearch.js +34 -0
- package/dist/groups/worktree.d.ts +41 -0
- package/dist/groups/worktree.js +52 -0
- package/dist/middleware/authorization.d.ts +13 -0
- package/dist/middleware/authorization.js +6 -0
- package/dist/middleware/schema-error.d.ts +13 -0
- package/dist/middleware/schema-error.js +4 -0
- package/dist/simulation.d.ts +1830 -0
- package/dist/simulation.js +497 -0
- package/package.json +45 -4
- package/README.md +0 -3
|
@@ -0,0 +1,1416 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
|
|
3
|
+
import { InvalidCursorError, SessionNotFoundError, UnknownError } from "../errors.js";
|
|
4
|
+
export declare const SessionMessagesQuery: Schema.Struct<{
|
|
5
|
+
readonly limit: Schema.optional<Schema.NumberFromString>;
|
|
6
|
+
readonly order: Schema.optional<Schema.Union<readonly [Schema.Literal<"asc">, Schema.Literal<"desc">]>>;
|
|
7
|
+
readonly cursor: Schema.optional<Schema.String>;
|
|
8
|
+
readonly type: Schema.optional<Schema.Literals<readonly ("agent-switched" | "assistant" | "compaction" | "idle" | "location-switched" | "model-switched" | "shell" | "skill" | "synthetic" | "system" | "user")[]>>;
|
|
9
|
+
}>;
|
|
10
|
+
export declare const PublicSessionMessage: Schema.Union<readonly [Schema.Struct<{
|
|
11
|
+
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
12
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
13
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
14
|
+
};
|
|
15
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
16
|
+
readonly time: Schema.Struct<{
|
|
17
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
18
|
+
}>;
|
|
19
|
+
readonly type: Schema.tag<"agent-switched">;
|
|
20
|
+
readonly agent: Schema.brand<Schema.String, "Agent.ID">;
|
|
21
|
+
readonly previous: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Agent.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Agent.ID">>, never, never>;
|
|
22
|
+
}>, Schema.Struct<{
|
|
23
|
+
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
24
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
25
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
26
|
+
};
|
|
27
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
28
|
+
readonly time: Schema.Struct<{
|
|
29
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
30
|
+
}>;
|
|
31
|
+
readonly type: Schema.tag<"model-switched">;
|
|
32
|
+
readonly model: Schema.Struct<{
|
|
33
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
34
|
+
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
35
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
36
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
37
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
38
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
39
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
40
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
41
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
42
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
43
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
44
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
45
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
46
|
+
};
|
|
47
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
48
|
+
}> & {
|
|
49
|
+
parse: (input: string) => {
|
|
50
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
51
|
+
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
52
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
readonly previous: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
56
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
57
|
+
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
58
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
59
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
60
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
61
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
62
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
63
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
64
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
65
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
66
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
67
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
68
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
69
|
+
};
|
|
70
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
71
|
+
}> & {
|
|
72
|
+
parse: (input: string) => {
|
|
73
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
74
|
+
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
75
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
76
|
+
};
|
|
77
|
+
}>>, Schema.optionalKey<Schema.Struct<{
|
|
78
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
79
|
+
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
80
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
81
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
82
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
83
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
84
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
85
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
86
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
87
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
88
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
89
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
90
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
91
|
+
};
|
|
92
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
93
|
+
}> & {
|
|
94
|
+
parse: (input: string) => {
|
|
95
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
96
|
+
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
97
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
98
|
+
};
|
|
99
|
+
}>, never, never>;
|
|
100
|
+
}>, Schema.Struct<{
|
|
101
|
+
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
102
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
103
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
104
|
+
};
|
|
105
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
106
|
+
readonly time: Schema.Struct<{
|
|
107
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
108
|
+
}>;
|
|
109
|
+
readonly type: Schema.tag<"location-switched">;
|
|
110
|
+
readonly projectID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Project.ID"> & {
|
|
111
|
+
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
112
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Project.ID"> & {
|
|
113
|
+
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
114
|
+
}>, never, never>;
|
|
115
|
+
readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
|
|
116
|
+
readonly location: Schema.Struct<{
|
|
117
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
118
|
+
}>;
|
|
119
|
+
readonly previous: Schema.optional<Schema.Struct<{
|
|
120
|
+
readonly location: Schema.Struct<{
|
|
121
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
122
|
+
}>;
|
|
123
|
+
readonly projectID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Project.ID"> & {
|
|
124
|
+
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
125
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Project.ID"> & {
|
|
126
|
+
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
127
|
+
}>, never, never>;
|
|
128
|
+
readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
|
|
129
|
+
}>>;
|
|
130
|
+
}>, Schema.Struct<{
|
|
131
|
+
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
132
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
133
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
134
|
+
};
|
|
135
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
136
|
+
readonly time: Schema.Struct<{
|
|
137
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
138
|
+
}>;
|
|
139
|
+
readonly text: Schema.String;
|
|
140
|
+
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
141
|
+
readonly data: Schema.String;
|
|
142
|
+
readonly mime: Schema.String;
|
|
143
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
144
|
+
readonly type: Schema.Literal<"inline">;
|
|
145
|
+
}>, Schema.Struct<{
|
|
146
|
+
readonly type: Schema.Literal<"uri">;
|
|
147
|
+
readonly uri: Schema.String;
|
|
148
|
+
}>]>;
|
|
149
|
+
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
150
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
151
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
152
|
+
readonly start: Schema.Finite;
|
|
153
|
+
readonly end: Schema.Finite;
|
|
154
|
+
readonly text: Schema.String;
|
|
155
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
156
|
+
readonly start: Schema.Finite;
|
|
157
|
+
readonly end: Schema.Finite;
|
|
158
|
+
readonly text: Schema.String;
|
|
159
|
+
}>>, never, never>;
|
|
160
|
+
}> & {
|
|
161
|
+
create: (input: import("@opencode/schema/prompt").FileAttachment) => {
|
|
162
|
+
readonly data: string;
|
|
163
|
+
readonly mime: string;
|
|
164
|
+
readonly source: {
|
|
165
|
+
readonly type: "inline";
|
|
166
|
+
} | {
|
|
167
|
+
readonly type: "uri";
|
|
168
|
+
readonly uri: string;
|
|
169
|
+
};
|
|
170
|
+
readonly name?: string | undefined;
|
|
171
|
+
readonly description?: string | undefined;
|
|
172
|
+
readonly mention?: {
|
|
173
|
+
readonly start: number;
|
|
174
|
+
readonly end: number;
|
|
175
|
+
readonly text: string;
|
|
176
|
+
} | undefined;
|
|
177
|
+
};
|
|
178
|
+
}>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
179
|
+
readonly data: Schema.String;
|
|
180
|
+
readonly mime: Schema.String;
|
|
181
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
182
|
+
readonly type: Schema.Literal<"inline">;
|
|
183
|
+
}>, Schema.Struct<{
|
|
184
|
+
readonly type: Schema.Literal<"uri">;
|
|
185
|
+
readonly uri: Schema.String;
|
|
186
|
+
}>]>;
|
|
187
|
+
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
188
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
189
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
190
|
+
readonly start: Schema.Finite;
|
|
191
|
+
readonly end: Schema.Finite;
|
|
192
|
+
readonly text: Schema.String;
|
|
193
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
194
|
+
readonly start: Schema.Finite;
|
|
195
|
+
readonly end: Schema.Finite;
|
|
196
|
+
readonly text: Schema.String;
|
|
197
|
+
}>>, never, never>;
|
|
198
|
+
}> & {
|
|
199
|
+
create: (input: import("@opencode/schema/prompt").FileAttachment) => {
|
|
200
|
+
readonly data: string;
|
|
201
|
+
readonly mime: string;
|
|
202
|
+
readonly source: {
|
|
203
|
+
readonly type: "inline";
|
|
204
|
+
} | {
|
|
205
|
+
readonly type: "uri";
|
|
206
|
+
readonly uri: string;
|
|
207
|
+
};
|
|
208
|
+
readonly name?: string | undefined;
|
|
209
|
+
readonly description?: string | undefined;
|
|
210
|
+
readonly mention?: {
|
|
211
|
+
readonly start: number;
|
|
212
|
+
readonly end: number;
|
|
213
|
+
readonly text: string;
|
|
214
|
+
} | undefined;
|
|
215
|
+
};
|
|
216
|
+
}>>, never, never>;
|
|
217
|
+
readonly agents: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
218
|
+
readonly name: Schema.String;
|
|
219
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
220
|
+
readonly start: Schema.Finite;
|
|
221
|
+
readonly end: Schema.Finite;
|
|
222
|
+
readonly text: Schema.String;
|
|
223
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
224
|
+
readonly start: Schema.Finite;
|
|
225
|
+
readonly end: Schema.Finite;
|
|
226
|
+
readonly text: Schema.String;
|
|
227
|
+
}>>, never, never>;
|
|
228
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
229
|
+
readonly name: Schema.String;
|
|
230
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
231
|
+
readonly start: Schema.Finite;
|
|
232
|
+
readonly end: Schema.Finite;
|
|
233
|
+
readonly text: Schema.String;
|
|
234
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
235
|
+
readonly start: Schema.Finite;
|
|
236
|
+
readonly end: Schema.Finite;
|
|
237
|
+
readonly text: Schema.String;
|
|
238
|
+
}>>, never, never>;
|
|
239
|
+
}>>>, never, never>;
|
|
240
|
+
readonly skills: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
241
|
+
readonly id: Schema.brand<Schema.String, "Skill.ID">;
|
|
242
|
+
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
243
|
+
readonly text: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
244
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
245
|
+
readonly start: Schema.Finite;
|
|
246
|
+
readonly end: Schema.Finite;
|
|
247
|
+
readonly text: Schema.String;
|
|
248
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
249
|
+
readonly start: Schema.Finite;
|
|
250
|
+
readonly end: Schema.Finite;
|
|
251
|
+
readonly text: Schema.String;
|
|
252
|
+
}>>, never, never>;
|
|
253
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
254
|
+
readonly id: Schema.brand<Schema.String, "Skill.ID">;
|
|
255
|
+
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
256
|
+
readonly text: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
257
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
258
|
+
readonly start: Schema.Finite;
|
|
259
|
+
readonly end: Schema.Finite;
|
|
260
|
+
readonly text: Schema.String;
|
|
261
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
262
|
+
readonly start: Schema.Finite;
|
|
263
|
+
readonly end: Schema.Finite;
|
|
264
|
+
readonly text: Schema.String;
|
|
265
|
+
}>>, never, never>;
|
|
266
|
+
}>>>, never, never>;
|
|
267
|
+
readonly type: Schema.tag<"user">;
|
|
268
|
+
}>, Schema.Struct<{
|
|
269
|
+
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
270
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
271
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
272
|
+
};
|
|
273
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
274
|
+
readonly time: Schema.Struct<{
|
|
275
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
276
|
+
}>;
|
|
277
|
+
readonly text: Schema.String;
|
|
278
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
279
|
+
readonly type: Schema.tag<"synthetic">;
|
|
280
|
+
}>, Schema.Struct<{
|
|
281
|
+
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
282
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
283
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
284
|
+
};
|
|
285
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
286
|
+
readonly time: Schema.Struct<{
|
|
287
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
288
|
+
}>;
|
|
289
|
+
readonly type: Schema.tag<"system">;
|
|
290
|
+
readonly text: Schema.String;
|
|
291
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
292
|
+
}>, Schema.Struct<{
|
|
293
|
+
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
294
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
295
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
296
|
+
};
|
|
297
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
298
|
+
readonly time: Schema.Struct<{
|
|
299
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
300
|
+
}>;
|
|
301
|
+
readonly type: Schema.tag<"skill">;
|
|
302
|
+
readonly skill: Schema.brand<Schema.String, "Skill.ID">;
|
|
303
|
+
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
304
|
+
readonly text: Schema.String;
|
|
305
|
+
}>, Schema.Struct<{
|
|
306
|
+
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
307
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
308
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
309
|
+
};
|
|
310
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
311
|
+
readonly type: Schema.tag<"shell">;
|
|
312
|
+
readonly shellID: Schema.brand<Schema.String, "Shell.ID"> & {
|
|
313
|
+
create: () => string & import("effect/Brand").Brand<"Shell.ID">;
|
|
314
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
|
|
315
|
+
};
|
|
316
|
+
readonly command: Schema.String;
|
|
317
|
+
readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
|
|
318
|
+
readonly exit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
319
|
+
readonly output: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
320
|
+
readonly output: Schema.String;
|
|
321
|
+
readonly cursor: Schema.Int;
|
|
322
|
+
readonly size: Schema.Int;
|
|
323
|
+
readonly truncated: Schema.Boolean;
|
|
324
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
325
|
+
readonly output: Schema.String;
|
|
326
|
+
readonly cursor: Schema.Int;
|
|
327
|
+
readonly size: Schema.Int;
|
|
328
|
+
readonly truncated: Schema.Boolean;
|
|
329
|
+
}>>, never, never>;
|
|
330
|
+
readonly time: Schema.Struct<{
|
|
331
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
332
|
+
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
333
|
+
}>;
|
|
334
|
+
}>, Schema.Struct<{
|
|
335
|
+
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
336
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
337
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
338
|
+
};
|
|
339
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
340
|
+
readonly type: Schema.tag<"assistant">;
|
|
341
|
+
readonly agent: Schema.brand<Schema.String, "Agent.ID">;
|
|
342
|
+
readonly model: Schema.Struct<{
|
|
343
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
344
|
+
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
345
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
346
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
347
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
348
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
349
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
350
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
351
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
352
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
353
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
354
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
355
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
356
|
+
};
|
|
357
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
358
|
+
}> & {
|
|
359
|
+
parse: (input: string) => {
|
|
360
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
361
|
+
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
362
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
363
|
+
};
|
|
364
|
+
};
|
|
365
|
+
readonly content: Schema.$Array<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
366
|
+
readonly type: Schema.tag<"text">;
|
|
367
|
+
readonly text: Schema.String;
|
|
368
|
+
readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
369
|
+
}>, Schema.Struct<{
|
|
370
|
+
readonly type: Schema.tag<"reasoning">;
|
|
371
|
+
readonly text: Schema.String;
|
|
372
|
+
readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
373
|
+
readonly time: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
374
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
375
|
+
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
376
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
377
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
378
|
+
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
379
|
+
}>>, never, never>;
|
|
380
|
+
}>, Schema.Struct<{
|
|
381
|
+
readonly type: Schema.tag<"tool">;
|
|
382
|
+
readonly id: Schema.String;
|
|
383
|
+
readonly name: Schema.String;
|
|
384
|
+
readonly executed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
385
|
+
readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
386
|
+
readonly state: Schema.toTaggedUnion<"status", readonly [Schema.Struct<{
|
|
387
|
+
readonly status: Schema.tag<"streaming">;
|
|
388
|
+
readonly input: Schema.String;
|
|
389
|
+
}>, Schema.Struct<{
|
|
390
|
+
readonly status: Schema.tag<"running">;
|
|
391
|
+
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
392
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
393
|
+
}>, Schema.Struct<{
|
|
394
|
+
readonly status: Schema.tag<"completed">;
|
|
395
|
+
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
396
|
+
readonly content: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
397
|
+
readonly type: Schema.Literal<"text">;
|
|
398
|
+
readonly text: Schema.String;
|
|
399
|
+
}>, Schema.Struct<{
|
|
400
|
+
readonly type: Schema.Literal<"file">;
|
|
401
|
+
readonly uri: Schema.String;
|
|
402
|
+
readonly mime: Schema.String;
|
|
403
|
+
readonly name: Schema.optional<Schema.String>;
|
|
404
|
+
}>]>>;
|
|
405
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
406
|
+
}>, Schema.Struct<{
|
|
407
|
+
readonly status: Schema.tag<"error">;
|
|
408
|
+
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
409
|
+
readonly error: Schema.Struct<{
|
|
410
|
+
readonly type: Schema.String;
|
|
411
|
+
readonly message: Schema.String;
|
|
412
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
413
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
414
|
+
readonly body: Schema.String;
|
|
415
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
416
|
+
readonly body: Schema.String;
|
|
417
|
+
}>>, never, never>;
|
|
418
|
+
readonly retryAfterMs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
419
|
+
}>;
|
|
420
|
+
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
421
|
+
readonly type: Schema.Literal<"text">;
|
|
422
|
+
readonly text: Schema.String;
|
|
423
|
+
}>, Schema.Struct<{
|
|
424
|
+
readonly type: Schema.Literal<"file">;
|
|
425
|
+
readonly uri: Schema.String;
|
|
426
|
+
readonly mime: Schema.String;
|
|
427
|
+
readonly name: Schema.optional<Schema.String>;
|
|
428
|
+
}>]>>>>, Schema.optionalKey<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
429
|
+
readonly type: Schema.Literal<"text">;
|
|
430
|
+
readonly text: Schema.String;
|
|
431
|
+
}>, Schema.Struct<{
|
|
432
|
+
readonly type: Schema.Literal<"file">;
|
|
433
|
+
readonly uri: Schema.String;
|
|
434
|
+
readonly mime: Schema.String;
|
|
435
|
+
readonly name: Schema.optional<Schema.String>;
|
|
436
|
+
}>]>>>, never, never>;
|
|
437
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
438
|
+
}>]>;
|
|
439
|
+
readonly time: Schema.Struct<{
|
|
440
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
441
|
+
readonly ran: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
442
|
+
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
443
|
+
}>;
|
|
444
|
+
}>]>>;
|
|
445
|
+
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
446
|
+
readonly start: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
447
|
+
readonly end: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
448
|
+
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.brand<Schema.String, "RelativePath">>>>, Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "RelativePath">>>, never, never>;
|
|
449
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
450
|
+
readonly start: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
451
|
+
readonly end: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
452
|
+
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.brand<Schema.String, "RelativePath">>>>, Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "RelativePath">>>, never, never>;
|
|
453
|
+
}>>, never, never>;
|
|
454
|
+
readonly finish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>>>, Schema.optionalKey<Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>>, never, never>;
|
|
455
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
456
|
+
readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
457
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
458
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
459
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
460
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
461
|
+
}>, never, never>;
|
|
462
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
463
|
+
readonly input: Schema.Finite;
|
|
464
|
+
readonly output: Schema.Finite;
|
|
465
|
+
readonly reasoning: Schema.Finite;
|
|
466
|
+
readonly cache: Schema.Struct<{
|
|
467
|
+
readonly read: Schema.Finite;
|
|
468
|
+
readonly write: Schema.Finite;
|
|
469
|
+
}>;
|
|
470
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
471
|
+
readonly input: Schema.Finite;
|
|
472
|
+
readonly output: Schema.Finite;
|
|
473
|
+
readonly reasoning: Schema.Finite;
|
|
474
|
+
readonly cache: Schema.Struct<{
|
|
475
|
+
readonly read: Schema.Finite;
|
|
476
|
+
readonly write: Schema.Finite;
|
|
477
|
+
}>;
|
|
478
|
+
}>>, never, never>;
|
|
479
|
+
readonly error: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
480
|
+
readonly type: Schema.String;
|
|
481
|
+
readonly message: Schema.String;
|
|
482
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
483
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
484
|
+
readonly body: Schema.String;
|
|
485
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
486
|
+
readonly body: Schema.String;
|
|
487
|
+
}>>, never, never>;
|
|
488
|
+
readonly retryAfterMs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
489
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
490
|
+
readonly type: Schema.String;
|
|
491
|
+
readonly message: Schema.String;
|
|
492
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
493
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
494
|
+
readonly body: Schema.String;
|
|
495
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
496
|
+
readonly body: Schema.String;
|
|
497
|
+
}>>, never, never>;
|
|
498
|
+
readonly retryAfterMs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
499
|
+
}>>, never, never>;
|
|
500
|
+
readonly retry: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
501
|
+
readonly attempt: Schema.Int;
|
|
502
|
+
readonly at: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
503
|
+
readonly error: Schema.Struct<{
|
|
504
|
+
readonly type: Schema.String;
|
|
505
|
+
readonly message: Schema.String;
|
|
506
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
507
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
508
|
+
readonly body: Schema.String;
|
|
509
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
510
|
+
readonly body: Schema.String;
|
|
511
|
+
}>>, never, never>;
|
|
512
|
+
readonly retryAfterMs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
513
|
+
}>;
|
|
514
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
515
|
+
readonly attempt: Schema.Int;
|
|
516
|
+
readonly at: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
517
|
+
readonly error: Schema.Struct<{
|
|
518
|
+
readonly type: Schema.String;
|
|
519
|
+
readonly message: Schema.String;
|
|
520
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
521
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
522
|
+
readonly body: Schema.String;
|
|
523
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
524
|
+
readonly body: Schema.String;
|
|
525
|
+
}>>, never, never>;
|
|
526
|
+
readonly retryAfterMs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
527
|
+
}>;
|
|
528
|
+
}>>, never, never>;
|
|
529
|
+
readonly time: Schema.Struct<{
|
|
530
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
531
|
+
readonly streamed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
532
|
+
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
533
|
+
}>;
|
|
534
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
535
|
+
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
536
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
537
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
538
|
+
};
|
|
539
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
540
|
+
readonly time: Schema.Struct<{
|
|
541
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
542
|
+
}>;
|
|
543
|
+
readonly type: Schema.tag<"compaction">;
|
|
544
|
+
readonly status: Schema.tag<"running">;
|
|
545
|
+
readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
|
|
546
|
+
readonly summary: Schema.String;
|
|
547
|
+
}>, Schema.Struct<{
|
|
548
|
+
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
549
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
550
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
551
|
+
};
|
|
552
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
553
|
+
readonly time: Schema.Struct<{
|
|
554
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
555
|
+
}>;
|
|
556
|
+
readonly type: Schema.tag<"compaction">;
|
|
557
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
558
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
559
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
560
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
561
|
+
}>, never, never>;
|
|
562
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
563
|
+
readonly input: Schema.Finite;
|
|
564
|
+
readonly output: Schema.Finite;
|
|
565
|
+
readonly reasoning: Schema.Finite;
|
|
566
|
+
readonly cache: Schema.Struct<{
|
|
567
|
+
readonly read: Schema.Finite;
|
|
568
|
+
readonly write: Schema.Finite;
|
|
569
|
+
}>;
|
|
570
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
571
|
+
readonly input: Schema.Finite;
|
|
572
|
+
readonly output: Schema.Finite;
|
|
573
|
+
readonly reasoning: Schema.Finite;
|
|
574
|
+
readonly cache: Schema.Struct<{
|
|
575
|
+
readonly read: Schema.Finite;
|
|
576
|
+
readonly write: Schema.Finite;
|
|
577
|
+
}>;
|
|
578
|
+
}>>, never, never>;
|
|
579
|
+
readonly status: Schema.tag<"completed">;
|
|
580
|
+
readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
|
|
581
|
+
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
582
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
583
|
+
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
584
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
585
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
586
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
587
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
588
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
589
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
590
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
591
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
592
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
593
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
594
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
595
|
+
};
|
|
596
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
597
|
+
}> & {
|
|
598
|
+
parse: (input: string) => {
|
|
599
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
600
|
+
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
601
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
602
|
+
};
|
|
603
|
+
}>>, Schema.optionalKey<Schema.Struct<{
|
|
604
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
605
|
+
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
606
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
607
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
608
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
609
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
610
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
611
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
612
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
613
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
614
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
615
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
616
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
617
|
+
};
|
|
618
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
619
|
+
}> & {
|
|
620
|
+
parse: (input: string) => {
|
|
621
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
622
|
+
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
623
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
624
|
+
};
|
|
625
|
+
}>, never, never>;
|
|
626
|
+
readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
627
|
+
readonly summary: Schema.String;
|
|
628
|
+
}>, Schema.Struct<{
|
|
629
|
+
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
630
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
631
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
632
|
+
};
|
|
633
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
634
|
+
readonly time: Schema.Struct<{
|
|
635
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
636
|
+
}>;
|
|
637
|
+
readonly type: Schema.tag<"compaction">;
|
|
638
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
639
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
640
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
641
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
642
|
+
}>, never, never>;
|
|
643
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
644
|
+
readonly input: Schema.Finite;
|
|
645
|
+
readonly output: Schema.Finite;
|
|
646
|
+
readonly reasoning: Schema.Finite;
|
|
647
|
+
readonly cache: Schema.Struct<{
|
|
648
|
+
readonly read: Schema.Finite;
|
|
649
|
+
readonly write: Schema.Finite;
|
|
650
|
+
}>;
|
|
651
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
652
|
+
readonly input: Schema.Finite;
|
|
653
|
+
readonly output: Schema.Finite;
|
|
654
|
+
readonly reasoning: Schema.Finite;
|
|
655
|
+
readonly cache: Schema.Struct<{
|
|
656
|
+
readonly read: Schema.Finite;
|
|
657
|
+
readonly write: Schema.Finite;
|
|
658
|
+
}>;
|
|
659
|
+
}>>, never, never>;
|
|
660
|
+
readonly status: Schema.tag<"failed">;
|
|
661
|
+
readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
|
|
662
|
+
readonly error: Schema.Struct<{
|
|
663
|
+
readonly type: Schema.String;
|
|
664
|
+
readonly message: Schema.String;
|
|
665
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
666
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
667
|
+
readonly body: Schema.String;
|
|
668
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
669
|
+
readonly body: Schema.String;
|
|
670
|
+
}>>, never, never>;
|
|
671
|
+
readonly retryAfterMs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
672
|
+
}>;
|
|
673
|
+
}>]>, Schema.Struct<{
|
|
674
|
+
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
675
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
676
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
677
|
+
};
|
|
678
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
679
|
+
readonly time: Schema.Struct<{
|
|
680
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
681
|
+
}>;
|
|
682
|
+
readonly type: Schema.tag<"idle">;
|
|
683
|
+
readonly outcome: Schema.Literals<readonly ["succeeded", "failed", "interrupted"]>;
|
|
684
|
+
readonly error: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
685
|
+
readonly type: Schema.String;
|
|
686
|
+
readonly message: Schema.String;
|
|
687
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
688
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
689
|
+
readonly body: Schema.String;
|
|
690
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
691
|
+
readonly body: Schema.String;
|
|
692
|
+
}>>, never, never>;
|
|
693
|
+
readonly retryAfterMs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
694
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
695
|
+
readonly type: Schema.String;
|
|
696
|
+
readonly message: Schema.String;
|
|
697
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
698
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
699
|
+
readonly body: Schema.String;
|
|
700
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
701
|
+
readonly body: Schema.String;
|
|
702
|
+
}>>, never, never>;
|
|
703
|
+
readonly retryAfterMs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
704
|
+
}>>, never, never>;
|
|
705
|
+
}>]>;
|
|
706
|
+
export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", HttpApiEndpoint.HttpApiEndpoint<"session.messages", "GET", "/api/session/:sessionID/message", Schema.toCodecStringTree<Schema.Struct<{
|
|
707
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
708
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
709
|
+
};
|
|
710
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
711
|
+
readonly limit: Schema.optional<Schema.NumberFromString>;
|
|
712
|
+
readonly order: Schema.optional<Schema.Union<readonly [Schema.Literal<"asc">, Schema.Literal<"desc">]>>;
|
|
713
|
+
readonly cursor: Schema.optional<Schema.String>;
|
|
714
|
+
readonly type: Schema.optional<Schema.Literals<readonly ("agent-switched" | "assistant" | "compaction" | "idle" | "location-switched" | "model-switched" | "shell" | "skill" | "synthetic" | "system" | "user")[]>>;
|
|
715
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
716
|
+
readonly data: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
717
|
+
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
718
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
719
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
720
|
+
};
|
|
721
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
722
|
+
readonly time: Schema.Struct<{
|
|
723
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
724
|
+
}>;
|
|
725
|
+
readonly type: Schema.tag<"agent-switched">;
|
|
726
|
+
readonly agent: Schema.brand<Schema.String, "Agent.ID">;
|
|
727
|
+
readonly previous: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Agent.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Agent.ID">>, never, never>;
|
|
728
|
+
}>, Schema.Struct<{
|
|
729
|
+
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
730
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
731
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
732
|
+
};
|
|
733
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
734
|
+
readonly time: Schema.Struct<{
|
|
735
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
736
|
+
}>;
|
|
737
|
+
readonly type: Schema.tag<"model-switched">;
|
|
738
|
+
readonly model: Schema.Struct<{
|
|
739
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
740
|
+
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
741
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
742
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
743
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
744
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
745
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
746
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
747
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
748
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
749
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
750
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
751
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
752
|
+
};
|
|
753
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
754
|
+
}> & {
|
|
755
|
+
parse: (input: string) => {
|
|
756
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
757
|
+
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
758
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
759
|
+
};
|
|
760
|
+
};
|
|
761
|
+
readonly previous: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
762
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
763
|
+
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
764
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
765
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
766
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
767
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
768
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
769
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
770
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
771
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
772
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
773
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
774
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
775
|
+
};
|
|
776
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
777
|
+
}> & {
|
|
778
|
+
parse: (input: string) => {
|
|
779
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
780
|
+
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
781
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
782
|
+
};
|
|
783
|
+
}>>, Schema.optionalKey<Schema.Struct<{
|
|
784
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
785
|
+
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
786
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
787
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
788
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
789
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
790
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
791
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
792
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
793
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
794
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
795
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
796
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
797
|
+
};
|
|
798
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
799
|
+
}> & {
|
|
800
|
+
parse: (input: string) => {
|
|
801
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
802
|
+
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
803
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
804
|
+
};
|
|
805
|
+
}>, never, never>;
|
|
806
|
+
}>, Schema.Struct<{
|
|
807
|
+
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
808
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
809
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
810
|
+
};
|
|
811
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
812
|
+
readonly time: Schema.Struct<{
|
|
813
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
814
|
+
}>;
|
|
815
|
+
readonly type: Schema.tag<"location-switched">;
|
|
816
|
+
readonly projectID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Project.ID"> & {
|
|
817
|
+
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
818
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Project.ID"> & {
|
|
819
|
+
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
820
|
+
}>, never, never>;
|
|
821
|
+
readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
|
|
822
|
+
readonly location: Schema.Struct<{
|
|
823
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
824
|
+
}>;
|
|
825
|
+
readonly previous: Schema.optional<Schema.Struct<{
|
|
826
|
+
readonly location: Schema.Struct<{
|
|
827
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
828
|
+
}>;
|
|
829
|
+
readonly projectID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Project.ID"> & {
|
|
830
|
+
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
831
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Project.ID"> & {
|
|
832
|
+
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
833
|
+
}>, never, never>;
|
|
834
|
+
readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
|
|
835
|
+
}>>;
|
|
836
|
+
}>, Schema.Struct<{
|
|
837
|
+
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
838
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
839
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
840
|
+
};
|
|
841
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
842
|
+
readonly time: Schema.Struct<{
|
|
843
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
844
|
+
}>;
|
|
845
|
+
readonly text: Schema.String;
|
|
846
|
+
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
847
|
+
readonly data: Schema.String;
|
|
848
|
+
readonly mime: Schema.String;
|
|
849
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
850
|
+
readonly type: Schema.Literal<"inline">;
|
|
851
|
+
}>, Schema.Struct<{
|
|
852
|
+
readonly type: Schema.Literal<"uri">;
|
|
853
|
+
readonly uri: Schema.String;
|
|
854
|
+
}>]>;
|
|
855
|
+
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
856
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
857
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
858
|
+
readonly start: Schema.Finite;
|
|
859
|
+
readonly end: Schema.Finite;
|
|
860
|
+
readonly text: Schema.String;
|
|
861
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
862
|
+
readonly start: Schema.Finite;
|
|
863
|
+
readonly end: Schema.Finite;
|
|
864
|
+
readonly text: Schema.String;
|
|
865
|
+
}>>, never, never>;
|
|
866
|
+
}> & {
|
|
867
|
+
create: (input: import("@opencode/schema/prompt").FileAttachment) => {
|
|
868
|
+
readonly data: string;
|
|
869
|
+
readonly mime: string;
|
|
870
|
+
readonly source: {
|
|
871
|
+
readonly type: "inline";
|
|
872
|
+
} | {
|
|
873
|
+
readonly type: "uri";
|
|
874
|
+
readonly uri: string;
|
|
875
|
+
};
|
|
876
|
+
readonly name?: string | undefined;
|
|
877
|
+
readonly description?: string | undefined;
|
|
878
|
+
readonly mention?: {
|
|
879
|
+
readonly start: number;
|
|
880
|
+
readonly end: number;
|
|
881
|
+
readonly text: string;
|
|
882
|
+
} | undefined;
|
|
883
|
+
};
|
|
884
|
+
}>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
885
|
+
readonly data: Schema.String;
|
|
886
|
+
readonly mime: Schema.String;
|
|
887
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
888
|
+
readonly type: Schema.Literal<"inline">;
|
|
889
|
+
}>, Schema.Struct<{
|
|
890
|
+
readonly type: Schema.Literal<"uri">;
|
|
891
|
+
readonly uri: Schema.String;
|
|
892
|
+
}>]>;
|
|
893
|
+
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
894
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
895
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
896
|
+
readonly start: Schema.Finite;
|
|
897
|
+
readonly end: Schema.Finite;
|
|
898
|
+
readonly text: Schema.String;
|
|
899
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
900
|
+
readonly start: Schema.Finite;
|
|
901
|
+
readonly end: Schema.Finite;
|
|
902
|
+
readonly text: Schema.String;
|
|
903
|
+
}>>, never, never>;
|
|
904
|
+
}> & {
|
|
905
|
+
create: (input: import("@opencode/schema/prompt").FileAttachment) => {
|
|
906
|
+
readonly data: string;
|
|
907
|
+
readonly mime: string;
|
|
908
|
+
readonly source: {
|
|
909
|
+
readonly type: "inline";
|
|
910
|
+
} | {
|
|
911
|
+
readonly type: "uri";
|
|
912
|
+
readonly uri: string;
|
|
913
|
+
};
|
|
914
|
+
readonly name?: string | undefined;
|
|
915
|
+
readonly description?: string | undefined;
|
|
916
|
+
readonly mention?: {
|
|
917
|
+
readonly start: number;
|
|
918
|
+
readonly end: number;
|
|
919
|
+
readonly text: string;
|
|
920
|
+
} | undefined;
|
|
921
|
+
};
|
|
922
|
+
}>>, never, never>;
|
|
923
|
+
readonly agents: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
924
|
+
readonly name: Schema.String;
|
|
925
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
926
|
+
readonly start: Schema.Finite;
|
|
927
|
+
readonly end: Schema.Finite;
|
|
928
|
+
readonly text: Schema.String;
|
|
929
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
930
|
+
readonly start: Schema.Finite;
|
|
931
|
+
readonly end: Schema.Finite;
|
|
932
|
+
readonly text: Schema.String;
|
|
933
|
+
}>>, never, never>;
|
|
934
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
935
|
+
readonly name: Schema.String;
|
|
936
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
937
|
+
readonly start: Schema.Finite;
|
|
938
|
+
readonly end: Schema.Finite;
|
|
939
|
+
readonly text: Schema.String;
|
|
940
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
941
|
+
readonly start: Schema.Finite;
|
|
942
|
+
readonly end: Schema.Finite;
|
|
943
|
+
readonly text: Schema.String;
|
|
944
|
+
}>>, never, never>;
|
|
945
|
+
}>>>, never, never>;
|
|
946
|
+
readonly skills: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
947
|
+
readonly id: Schema.brand<Schema.String, "Skill.ID">;
|
|
948
|
+
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
949
|
+
readonly text: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
950
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
951
|
+
readonly start: Schema.Finite;
|
|
952
|
+
readonly end: Schema.Finite;
|
|
953
|
+
readonly text: Schema.String;
|
|
954
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
955
|
+
readonly start: Schema.Finite;
|
|
956
|
+
readonly end: Schema.Finite;
|
|
957
|
+
readonly text: Schema.String;
|
|
958
|
+
}>>, never, never>;
|
|
959
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
960
|
+
readonly id: Schema.brand<Schema.String, "Skill.ID">;
|
|
961
|
+
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
962
|
+
readonly text: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
963
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
964
|
+
readonly start: Schema.Finite;
|
|
965
|
+
readonly end: Schema.Finite;
|
|
966
|
+
readonly text: Schema.String;
|
|
967
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
968
|
+
readonly start: Schema.Finite;
|
|
969
|
+
readonly end: Schema.Finite;
|
|
970
|
+
readonly text: Schema.String;
|
|
971
|
+
}>>, never, never>;
|
|
972
|
+
}>>>, never, never>;
|
|
973
|
+
readonly type: Schema.tag<"user">;
|
|
974
|
+
}>, Schema.Struct<{
|
|
975
|
+
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
976
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
977
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
978
|
+
};
|
|
979
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
980
|
+
readonly time: Schema.Struct<{
|
|
981
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
982
|
+
}>;
|
|
983
|
+
readonly text: Schema.String;
|
|
984
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
985
|
+
readonly type: Schema.tag<"synthetic">;
|
|
986
|
+
}>, Schema.Struct<{
|
|
987
|
+
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
988
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
989
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
990
|
+
};
|
|
991
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
992
|
+
readonly time: Schema.Struct<{
|
|
993
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
994
|
+
}>;
|
|
995
|
+
readonly type: Schema.tag<"system">;
|
|
996
|
+
readonly text: Schema.String;
|
|
997
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
998
|
+
}>, Schema.Struct<{
|
|
999
|
+
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1000
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1001
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1002
|
+
};
|
|
1003
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1004
|
+
readonly time: Schema.Struct<{
|
|
1005
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1006
|
+
}>;
|
|
1007
|
+
readonly type: Schema.tag<"skill">;
|
|
1008
|
+
readonly skill: Schema.brand<Schema.String, "Skill.ID">;
|
|
1009
|
+
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
1010
|
+
readonly text: Schema.String;
|
|
1011
|
+
}>, Schema.Struct<{
|
|
1012
|
+
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1013
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1014
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1015
|
+
};
|
|
1016
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1017
|
+
readonly type: Schema.tag<"shell">;
|
|
1018
|
+
readonly shellID: Schema.brand<Schema.String, "Shell.ID"> & {
|
|
1019
|
+
create: () => string & import("effect/Brand").Brand<"Shell.ID">;
|
|
1020
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Shell.ID">;
|
|
1021
|
+
};
|
|
1022
|
+
readonly command: Schema.String;
|
|
1023
|
+
readonly status: Schema.Literals<readonly ["running", "exited", "timeout", "killed"]>;
|
|
1024
|
+
readonly exit: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
1025
|
+
readonly output: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1026
|
+
readonly output: Schema.String;
|
|
1027
|
+
readonly cursor: Schema.Int;
|
|
1028
|
+
readonly size: Schema.Int;
|
|
1029
|
+
readonly truncated: Schema.Boolean;
|
|
1030
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1031
|
+
readonly output: Schema.String;
|
|
1032
|
+
readonly cursor: Schema.Int;
|
|
1033
|
+
readonly size: Schema.Int;
|
|
1034
|
+
readonly truncated: Schema.Boolean;
|
|
1035
|
+
}>>, never, never>;
|
|
1036
|
+
readonly time: Schema.Struct<{
|
|
1037
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1038
|
+
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
1039
|
+
}>;
|
|
1040
|
+
}>, Schema.Struct<{
|
|
1041
|
+
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1042
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1043
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1044
|
+
};
|
|
1045
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1046
|
+
readonly type: Schema.tag<"assistant">;
|
|
1047
|
+
readonly agent: Schema.brand<Schema.String, "Agent.ID">;
|
|
1048
|
+
readonly model: Schema.Struct<{
|
|
1049
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
1050
|
+
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
1051
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1052
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1053
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1054
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1055
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1056
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1057
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1058
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1059
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1060
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1061
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1062
|
+
};
|
|
1063
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
1064
|
+
}> & {
|
|
1065
|
+
parse: (input: string) => {
|
|
1066
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
1067
|
+
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1068
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
1069
|
+
};
|
|
1070
|
+
};
|
|
1071
|
+
readonly content: Schema.$Array<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
1072
|
+
readonly type: Schema.tag<"text">;
|
|
1073
|
+
readonly text: Schema.String;
|
|
1074
|
+
readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1075
|
+
}>, Schema.Struct<{
|
|
1076
|
+
readonly type: Schema.tag<"reasoning">;
|
|
1077
|
+
readonly text: Schema.String;
|
|
1078
|
+
readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1079
|
+
readonly time: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1080
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1081
|
+
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
1082
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1083
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1084
|
+
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
1085
|
+
}>>, never, never>;
|
|
1086
|
+
}>, Schema.Struct<{
|
|
1087
|
+
readonly type: Schema.tag<"tool">;
|
|
1088
|
+
readonly id: Schema.String;
|
|
1089
|
+
readonly name: Schema.String;
|
|
1090
|
+
readonly executed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
1091
|
+
readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1092
|
+
readonly state: Schema.toTaggedUnion<"status", readonly [Schema.Struct<{
|
|
1093
|
+
readonly status: Schema.tag<"streaming">;
|
|
1094
|
+
readonly input: Schema.String;
|
|
1095
|
+
}>, Schema.Struct<{
|
|
1096
|
+
readonly status: Schema.tag<"running">;
|
|
1097
|
+
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
1098
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1099
|
+
}>, Schema.Struct<{
|
|
1100
|
+
readonly status: Schema.tag<"completed">;
|
|
1101
|
+
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
1102
|
+
readonly content: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
1103
|
+
readonly type: Schema.Literal<"text">;
|
|
1104
|
+
readonly text: Schema.String;
|
|
1105
|
+
}>, Schema.Struct<{
|
|
1106
|
+
readonly type: Schema.Literal<"file">;
|
|
1107
|
+
readonly uri: Schema.String;
|
|
1108
|
+
readonly mime: Schema.String;
|
|
1109
|
+
readonly name: Schema.optional<Schema.String>;
|
|
1110
|
+
}>]>>;
|
|
1111
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
1112
|
+
}>, Schema.Struct<{
|
|
1113
|
+
readonly status: Schema.tag<"error">;
|
|
1114
|
+
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
1115
|
+
readonly error: Schema.Struct<{
|
|
1116
|
+
readonly type: Schema.String;
|
|
1117
|
+
readonly message: Schema.String;
|
|
1118
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1119
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1120
|
+
readonly body: Schema.String;
|
|
1121
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1122
|
+
readonly body: Schema.String;
|
|
1123
|
+
}>>, never, never>;
|
|
1124
|
+
readonly retryAfterMs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1125
|
+
}>;
|
|
1126
|
+
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
1127
|
+
readonly type: Schema.Literal<"text">;
|
|
1128
|
+
readonly text: Schema.String;
|
|
1129
|
+
}>, Schema.Struct<{
|
|
1130
|
+
readonly type: Schema.Literal<"file">;
|
|
1131
|
+
readonly uri: Schema.String;
|
|
1132
|
+
readonly mime: Schema.String;
|
|
1133
|
+
readonly name: Schema.optional<Schema.String>;
|
|
1134
|
+
}>]>>>>, Schema.optionalKey<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
1135
|
+
readonly type: Schema.Literal<"text">;
|
|
1136
|
+
readonly text: Schema.String;
|
|
1137
|
+
}>, Schema.Struct<{
|
|
1138
|
+
readonly type: Schema.Literal<"file">;
|
|
1139
|
+
readonly uri: Schema.String;
|
|
1140
|
+
readonly mime: Schema.String;
|
|
1141
|
+
readonly name: Schema.optional<Schema.String>;
|
|
1142
|
+
}>]>>>, never, never>;
|
|
1143
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
1144
|
+
}>]>;
|
|
1145
|
+
readonly time: Schema.Struct<{
|
|
1146
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1147
|
+
readonly ran: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
1148
|
+
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
1149
|
+
}>;
|
|
1150
|
+
}>]>>;
|
|
1151
|
+
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1152
|
+
readonly start: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
1153
|
+
readonly end: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
1154
|
+
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.brand<Schema.String, "RelativePath">>>>, Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "RelativePath">>>, never, never>;
|
|
1155
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1156
|
+
readonly start: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
1157
|
+
readonly end: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
1158
|
+
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.brand<Schema.String, "RelativePath">>>>, Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "RelativePath">>>, never, never>;
|
|
1159
|
+
}>>, never, never>;
|
|
1160
|
+
readonly finish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>>>, Schema.optionalKey<Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>>, never, never>;
|
|
1161
|
+
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1162
|
+
readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1163
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
1164
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
1165
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
1166
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
1167
|
+
}>, never, never>;
|
|
1168
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1169
|
+
readonly input: Schema.Finite;
|
|
1170
|
+
readonly output: Schema.Finite;
|
|
1171
|
+
readonly reasoning: Schema.Finite;
|
|
1172
|
+
readonly cache: Schema.Struct<{
|
|
1173
|
+
readonly read: Schema.Finite;
|
|
1174
|
+
readonly write: Schema.Finite;
|
|
1175
|
+
}>;
|
|
1176
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1177
|
+
readonly input: Schema.Finite;
|
|
1178
|
+
readonly output: Schema.Finite;
|
|
1179
|
+
readonly reasoning: Schema.Finite;
|
|
1180
|
+
readonly cache: Schema.Struct<{
|
|
1181
|
+
readonly read: Schema.Finite;
|
|
1182
|
+
readonly write: Schema.Finite;
|
|
1183
|
+
}>;
|
|
1184
|
+
}>>, never, never>;
|
|
1185
|
+
readonly error: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1186
|
+
readonly type: Schema.String;
|
|
1187
|
+
readonly message: Schema.String;
|
|
1188
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1189
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1190
|
+
readonly body: Schema.String;
|
|
1191
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1192
|
+
readonly body: Schema.String;
|
|
1193
|
+
}>>, never, never>;
|
|
1194
|
+
readonly retryAfterMs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1195
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1196
|
+
readonly type: Schema.String;
|
|
1197
|
+
readonly message: Schema.String;
|
|
1198
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1199
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1200
|
+
readonly body: Schema.String;
|
|
1201
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1202
|
+
readonly body: Schema.String;
|
|
1203
|
+
}>>, never, never>;
|
|
1204
|
+
readonly retryAfterMs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1205
|
+
}>>, never, never>;
|
|
1206
|
+
readonly retry: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1207
|
+
readonly attempt: Schema.Int;
|
|
1208
|
+
readonly at: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1209
|
+
readonly error: Schema.Struct<{
|
|
1210
|
+
readonly type: Schema.String;
|
|
1211
|
+
readonly message: Schema.String;
|
|
1212
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1213
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1214
|
+
readonly body: Schema.String;
|
|
1215
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1216
|
+
readonly body: Schema.String;
|
|
1217
|
+
}>>, never, never>;
|
|
1218
|
+
readonly retryAfterMs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1219
|
+
}>;
|
|
1220
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1221
|
+
readonly attempt: Schema.Int;
|
|
1222
|
+
readonly at: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1223
|
+
readonly error: Schema.Struct<{
|
|
1224
|
+
readonly type: Schema.String;
|
|
1225
|
+
readonly message: Schema.String;
|
|
1226
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1227
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1228
|
+
readonly body: Schema.String;
|
|
1229
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1230
|
+
readonly body: Schema.String;
|
|
1231
|
+
}>>, never, never>;
|
|
1232
|
+
readonly retryAfterMs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1233
|
+
}>;
|
|
1234
|
+
}>>, never, never>;
|
|
1235
|
+
readonly time: Schema.Struct<{
|
|
1236
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1237
|
+
readonly streamed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
1238
|
+
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
1239
|
+
}>;
|
|
1240
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
1241
|
+
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1242
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1243
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1244
|
+
};
|
|
1245
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1246
|
+
readonly time: Schema.Struct<{
|
|
1247
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1248
|
+
}>;
|
|
1249
|
+
readonly type: Schema.tag<"compaction">;
|
|
1250
|
+
readonly status: Schema.tag<"running">;
|
|
1251
|
+
readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
|
|
1252
|
+
readonly summary: Schema.String;
|
|
1253
|
+
}>, Schema.Struct<{
|
|
1254
|
+
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1255
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1256
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1257
|
+
};
|
|
1258
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1259
|
+
readonly time: Schema.Struct<{
|
|
1260
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1261
|
+
}>;
|
|
1262
|
+
readonly type: Schema.tag<"compaction">;
|
|
1263
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
1264
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
1265
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
1266
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
1267
|
+
}>, never, never>;
|
|
1268
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1269
|
+
readonly input: Schema.Finite;
|
|
1270
|
+
readonly output: Schema.Finite;
|
|
1271
|
+
readonly reasoning: Schema.Finite;
|
|
1272
|
+
readonly cache: Schema.Struct<{
|
|
1273
|
+
readonly read: Schema.Finite;
|
|
1274
|
+
readonly write: Schema.Finite;
|
|
1275
|
+
}>;
|
|
1276
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1277
|
+
readonly input: Schema.Finite;
|
|
1278
|
+
readonly output: Schema.Finite;
|
|
1279
|
+
readonly reasoning: Schema.Finite;
|
|
1280
|
+
readonly cache: Schema.Struct<{
|
|
1281
|
+
readonly read: Schema.Finite;
|
|
1282
|
+
readonly write: Schema.Finite;
|
|
1283
|
+
}>;
|
|
1284
|
+
}>>, never, never>;
|
|
1285
|
+
readonly status: Schema.tag<"completed">;
|
|
1286
|
+
readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
|
|
1287
|
+
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1288
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
1289
|
+
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
1290
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1291
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1292
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1293
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1294
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1295
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1296
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1297
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1298
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1299
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1300
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1301
|
+
};
|
|
1302
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
1303
|
+
}> & {
|
|
1304
|
+
parse: (input: string) => {
|
|
1305
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
1306
|
+
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1307
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
1308
|
+
};
|
|
1309
|
+
}>>, Schema.optionalKey<Schema.Struct<{
|
|
1310
|
+
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
1311
|
+
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
1312
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1313
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1314
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1315
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1316
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1317
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1318
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1319
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1320
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1321
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1322
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1323
|
+
};
|
|
1324
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
1325
|
+
}> & {
|
|
1326
|
+
parse: (input: string) => {
|
|
1327
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
1328
|
+
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1329
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
1330
|
+
};
|
|
1331
|
+
}>, never, never>;
|
|
1332
|
+
readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1333
|
+
readonly summary: Schema.String;
|
|
1334
|
+
}>, Schema.Struct<{
|
|
1335
|
+
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1336
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1337
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1338
|
+
};
|
|
1339
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1340
|
+
readonly time: Schema.Struct<{
|
|
1341
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1342
|
+
}>;
|
|
1343
|
+
readonly type: Schema.tag<"compaction">;
|
|
1344
|
+
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
1345
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
1346
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
1347
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
1348
|
+
}>, never, never>;
|
|
1349
|
+
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1350
|
+
readonly input: Schema.Finite;
|
|
1351
|
+
readonly output: Schema.Finite;
|
|
1352
|
+
readonly reasoning: Schema.Finite;
|
|
1353
|
+
readonly cache: Schema.Struct<{
|
|
1354
|
+
readonly read: Schema.Finite;
|
|
1355
|
+
readonly write: Schema.Finite;
|
|
1356
|
+
}>;
|
|
1357
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1358
|
+
readonly input: Schema.Finite;
|
|
1359
|
+
readonly output: Schema.Finite;
|
|
1360
|
+
readonly reasoning: Schema.Finite;
|
|
1361
|
+
readonly cache: Schema.Struct<{
|
|
1362
|
+
readonly read: Schema.Finite;
|
|
1363
|
+
readonly write: Schema.Finite;
|
|
1364
|
+
}>;
|
|
1365
|
+
}>>, never, never>;
|
|
1366
|
+
readonly status: Schema.tag<"failed">;
|
|
1367
|
+
readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
|
|
1368
|
+
readonly error: Schema.Struct<{
|
|
1369
|
+
readonly type: Schema.String;
|
|
1370
|
+
readonly message: Schema.String;
|
|
1371
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1372
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1373
|
+
readonly body: Schema.String;
|
|
1374
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1375
|
+
readonly body: Schema.String;
|
|
1376
|
+
}>>, never, never>;
|
|
1377
|
+
readonly retryAfterMs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1378
|
+
}>;
|
|
1379
|
+
}>]>, Schema.Struct<{
|
|
1380
|
+
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1381
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1382
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1383
|
+
};
|
|
1384
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1385
|
+
readonly time: Schema.Struct<{
|
|
1386
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1387
|
+
}>;
|
|
1388
|
+
readonly type: Schema.tag<"idle">;
|
|
1389
|
+
readonly outcome: Schema.Literals<readonly ["succeeded", "failed", "interrupted"]>;
|
|
1390
|
+
readonly error: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1391
|
+
readonly type: Schema.String;
|
|
1392
|
+
readonly message: Schema.String;
|
|
1393
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1394
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1395
|
+
readonly body: Schema.String;
|
|
1396
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1397
|
+
readonly body: Schema.String;
|
|
1398
|
+
}>>, never, never>;
|
|
1399
|
+
readonly retryAfterMs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1400
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1401
|
+
readonly type: Schema.String;
|
|
1402
|
+
readonly message: Schema.String;
|
|
1403
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1404
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1405
|
+
readonly body: Schema.String;
|
|
1406
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1407
|
+
readonly body: Schema.String;
|
|
1408
|
+
}>>, never, never>;
|
|
1409
|
+
readonly retryAfterMs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1410
|
+
}>>, never, never>;
|
|
1411
|
+
}>]>>;
|
|
1412
|
+
readonly cursor: Schema.Struct<{
|
|
1413
|
+
readonly previous: Schema.optional<Schema.String>;
|
|
1414
|
+
readonly next: Schema.optional<Schema.String>;
|
|
1415
|
+
}>;
|
|
1416
|
+
}>>, Schema.toCodecJson<typeof UnknownError | typeof SessionNotFoundError | typeof InvalidCursorError>, never, never>, false>;
|