@opencode/schema 0.0.0-dev-21105 → 0.0.0-dev-21107
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/config/provider.d.ts +52 -52
- package/dist/event-manifest.d.ts +881 -881
- package/dist/form.d.ts +213 -213
- package/dist/instruction-entry.d.ts +1 -1
- package/dist/integration.d.ts +257 -257
- package/dist/model.d.ts +74 -74
- package/dist/persistent-pty.d.ts +88 -88
- package/dist/prompt-input.d.ts +3 -3
- package/dist/prompt.d.ts +28 -28
- package/dist/session-event.d.ts +6830 -6830
- package/dist/session-inbox.d.ts +20 -20
- package/dist/session-message.d.ts +94 -94
- package/dist/session-revert.d.ts +407 -183
- package/dist/session-transfer.d.ts +28 -28
- package/dist/session.d.ts +23 -23
- package/dist/v1/permission.d.ts +8 -8
- package/dist/v1/session.d.ts +696 -696
- package/package.json +4 -4
package/dist/model.d.ts
CHANGED
|
@@ -215,80 +215,6 @@ export declare const Variant: Schema.Struct<{
|
|
|
215
215
|
export interface Info extends Schema.Schema.Type<typeof Info> {
|
|
216
216
|
}
|
|
217
217
|
export declare const Info: Schema.Struct<{
|
|
218
|
-
readonly capabilities: Schema.Struct<{
|
|
219
|
-
readonly tools: Schema.Boolean;
|
|
220
|
-
readonly input: Schema.$Array<Schema.String>;
|
|
221
|
-
readonly output: Schema.$Array<Schema.String>;
|
|
222
|
-
/** Whether the model accepts a sampling temperature. Unknown when unset. */
|
|
223
|
-
readonly temperature: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
224
|
-
}> & {
|
|
225
|
-
default: () => {
|
|
226
|
-
tools: true;
|
|
227
|
-
input: string[];
|
|
228
|
-
output: string[];
|
|
229
|
-
};
|
|
230
|
-
};
|
|
231
|
-
readonly variants: Schema.$Array<Schema.Struct<{
|
|
232
|
-
readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.StructWithRest<Schema.Struct<{
|
|
233
|
-
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
234
|
-
readonly type: Schema.Literal<"summary">;
|
|
235
|
-
}>, Schema.Struct<{
|
|
236
|
-
readonly type: Schema.Literal<"native">;
|
|
237
|
-
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
238
|
-
readonly type: Schema.Literal<"summary">;
|
|
239
|
-
}>, Schema.Struct<{
|
|
240
|
-
readonly type: Schema.Literal<"native">;
|
|
241
|
-
}>]>>, never, never>;
|
|
242
|
-
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
243
|
-
}>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
244
|
-
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
245
|
-
readonly type: Schema.Literal<"summary">;
|
|
246
|
-
}>, Schema.Struct<{
|
|
247
|
-
readonly type: Schema.Literal<"native">;
|
|
248
|
-
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
249
|
-
readonly type: Schema.Literal<"summary">;
|
|
250
|
-
}>, Schema.Struct<{
|
|
251
|
-
readonly type: Schema.Literal<"native">;
|
|
252
|
-
}>]>>, never, never>;
|
|
253
|
-
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
254
|
-
}>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>, never, never>;
|
|
255
|
-
readonly headers: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
|
|
256
|
-
readonly body: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Any>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
|
|
257
|
-
readonly id: Schema.brand<Schema.String, "Model.VariantID">;
|
|
258
|
-
}>>;
|
|
259
|
-
readonly time: Schema.Struct<{
|
|
260
|
-
readonly released: Schema.Finite;
|
|
261
|
-
}>;
|
|
262
|
-
readonly cost: Schema.$Array<Schema.Struct<{
|
|
263
|
-
readonly tier: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
264
|
-
readonly type: Schema.tag<"context">;
|
|
265
|
-
readonly size: Schema.Int;
|
|
266
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
267
|
-
readonly type: Schema.tag<"context">;
|
|
268
|
-
readonly size: Schema.Int;
|
|
269
|
-
}>>, never, never>;
|
|
270
|
-
readonly input: Schema.brand<Schema.Finite, "Money.USDPerMillionTokens"> & {
|
|
271
|
-
zero: number & import("effect/Brand").Brand<"Money.USDPerMillionTokens">;
|
|
272
|
-
};
|
|
273
|
-
readonly output: Schema.brand<Schema.Finite, "Money.USDPerMillionTokens"> & {
|
|
274
|
-
zero: number & import("effect/Brand").Brand<"Money.USDPerMillionTokens">;
|
|
275
|
-
};
|
|
276
|
-
readonly cache: Schema.Struct<{
|
|
277
|
-
readonly read: Schema.brand<Schema.Finite, "Money.USDPerMillionTokens"> & {
|
|
278
|
-
zero: number & import("effect/Brand").Brand<"Money.USDPerMillionTokens">;
|
|
279
|
-
};
|
|
280
|
-
readonly write: Schema.brand<Schema.Finite, "Money.USDPerMillionTokens"> & {
|
|
281
|
-
zero: number & import("effect/Brand").Brand<"Money.USDPerMillionTokens">;
|
|
282
|
-
};
|
|
283
|
-
}>;
|
|
284
|
-
}>>;
|
|
285
|
-
readonly status: Schema.Literals<readonly ["alpha", "beta", "deprecated", "active"]>;
|
|
286
|
-
readonly enabled: Schema.Boolean;
|
|
287
|
-
readonly limit: Schema.Struct<{
|
|
288
|
-
readonly context: Schema.Int;
|
|
289
|
-
readonly input: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
290
|
-
readonly output: Schema.Int;
|
|
291
|
-
}>;
|
|
292
218
|
readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.StructWithRest<Schema.Struct<{
|
|
293
219
|
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
294
220
|
readonly type: Schema.Literal<"summary">;
|
|
@@ -378,6 +304,80 @@ export declare const Info: Schema.Struct<{
|
|
|
378
304
|
readonly supportsEffortUpdates: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
379
305
|
}>>, never, never>;
|
|
380
306
|
readonly package: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
307
|
+
readonly capabilities: Schema.Struct<{
|
|
308
|
+
readonly tools: Schema.Boolean;
|
|
309
|
+
readonly input: Schema.$Array<Schema.String>;
|
|
310
|
+
readonly output: Schema.$Array<Schema.String>;
|
|
311
|
+
/** Whether the model accepts a sampling temperature. Unknown when unset. */
|
|
312
|
+
readonly temperature: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
313
|
+
}> & {
|
|
314
|
+
default: () => {
|
|
315
|
+
tools: true;
|
|
316
|
+
input: string[];
|
|
317
|
+
output: string[];
|
|
318
|
+
};
|
|
319
|
+
};
|
|
320
|
+
readonly variants: Schema.$Array<Schema.Struct<{
|
|
321
|
+
readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.StructWithRest<Schema.Struct<{
|
|
322
|
+
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
323
|
+
readonly type: Schema.Literal<"summary">;
|
|
324
|
+
}>, Schema.Struct<{
|
|
325
|
+
readonly type: Schema.Literal<"native">;
|
|
326
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
327
|
+
readonly type: Schema.Literal<"summary">;
|
|
328
|
+
}>, Schema.Struct<{
|
|
329
|
+
readonly type: Schema.Literal<"native">;
|
|
330
|
+
}>]>>, never, never>;
|
|
331
|
+
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
332
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
333
|
+
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
334
|
+
readonly type: Schema.Literal<"summary">;
|
|
335
|
+
}>, Schema.Struct<{
|
|
336
|
+
readonly type: Schema.Literal<"native">;
|
|
337
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
338
|
+
readonly type: Schema.Literal<"summary">;
|
|
339
|
+
}>, Schema.Struct<{
|
|
340
|
+
readonly type: Schema.Literal<"native">;
|
|
341
|
+
}>]>>, never, never>;
|
|
342
|
+
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
343
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>, never, never>;
|
|
344
|
+
readonly headers: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
|
|
345
|
+
readonly body: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Any>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
|
|
346
|
+
readonly id: Schema.brand<Schema.String, "Model.VariantID">;
|
|
347
|
+
}>>;
|
|
348
|
+
readonly time: Schema.Struct<{
|
|
349
|
+
readonly released: Schema.Finite;
|
|
350
|
+
}>;
|
|
351
|
+
readonly cost: Schema.$Array<Schema.Struct<{
|
|
352
|
+
readonly tier: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
353
|
+
readonly type: Schema.tag<"context">;
|
|
354
|
+
readonly size: Schema.Int;
|
|
355
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
356
|
+
readonly type: Schema.tag<"context">;
|
|
357
|
+
readonly size: Schema.Int;
|
|
358
|
+
}>>, never, never>;
|
|
359
|
+
readonly input: Schema.brand<Schema.Finite, "Money.USDPerMillionTokens"> & {
|
|
360
|
+
zero: number & import("effect/Brand").Brand<"Money.USDPerMillionTokens">;
|
|
361
|
+
};
|
|
362
|
+
readonly output: Schema.brand<Schema.Finite, "Money.USDPerMillionTokens"> & {
|
|
363
|
+
zero: number & import("effect/Brand").Brand<"Money.USDPerMillionTokens">;
|
|
364
|
+
};
|
|
365
|
+
readonly cache: Schema.Struct<{
|
|
366
|
+
readonly read: Schema.brand<Schema.Finite, "Money.USDPerMillionTokens"> & {
|
|
367
|
+
zero: number & import("effect/Brand").Brand<"Money.USDPerMillionTokens">;
|
|
368
|
+
};
|
|
369
|
+
readonly write: Schema.brand<Schema.Finite, "Money.USDPerMillionTokens"> & {
|
|
370
|
+
zero: number & import("effect/Brand").Brand<"Money.USDPerMillionTokens">;
|
|
371
|
+
};
|
|
372
|
+
}>;
|
|
373
|
+
}>>;
|
|
374
|
+
readonly status: Schema.Literals<readonly ["alpha", "beta", "deprecated", "active"]>;
|
|
375
|
+
readonly enabled: Schema.Boolean;
|
|
376
|
+
readonly limit: Schema.Struct<{
|
|
377
|
+
readonly context: Schema.Int;
|
|
378
|
+
readonly input: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
379
|
+
readonly output: Schema.Int;
|
|
380
|
+
}>;
|
|
381
381
|
}> & {
|
|
382
382
|
default: (providerID: Provider.ID, id: ID) => {
|
|
383
383
|
id: string & import("effect/Brand").Brand<"Model.ID">;
|
package/dist/persistent-pty.d.ts
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
export * as PersistentPty from "./persistent-pty.js";
|
|
2
2
|
import { Schema } from "effect";
|
|
3
3
|
export declare const Info: Schema.Struct<{
|
|
4
|
+
readonly id: Schema.brand<Schema.String, "PtyID"> & {
|
|
5
|
+
create: () => string & import("effect/Brand").Brand<"PtyID">;
|
|
6
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">;
|
|
7
|
+
};
|
|
8
|
+
readonly title: Schema.String;
|
|
9
|
+
readonly command: Schema.String;
|
|
10
|
+
readonly args: Schema.$Array<Schema.String>;
|
|
11
|
+
readonly cwd: Schema.String;
|
|
12
|
+
readonly status: Schema.Literals<readonly ["running", "exited"]>;
|
|
13
|
+
readonly pid: Schema.Int;
|
|
14
|
+
readonly exitCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
4
15
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
5
16
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
6
17
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -14,17 +25,6 @@ export declare const Info: Schema.Struct<{
|
|
|
14
25
|
readonly head: Schema.Int;
|
|
15
26
|
readonly tail: Schema.Int;
|
|
16
27
|
}>;
|
|
17
|
-
readonly id: Schema.brand<Schema.String, "PtyID"> & {
|
|
18
|
-
create: () => string & import("effect/Brand").Brand<"PtyID">;
|
|
19
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">;
|
|
20
|
-
};
|
|
21
|
-
readonly title: Schema.String;
|
|
22
|
-
readonly command: Schema.String;
|
|
23
|
-
readonly args: Schema.$Array<Schema.String>;
|
|
24
|
-
readonly cwd: Schema.String;
|
|
25
|
-
readonly status: Schema.Literals<readonly ["running", "exited"]>;
|
|
26
|
-
readonly pid: Schema.Int;
|
|
27
|
-
readonly exitCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
28
28
|
}>;
|
|
29
29
|
export interface Info extends Schema.Schema.Type<typeof Info> {
|
|
30
30
|
}
|
|
@@ -63,6 +63,17 @@ export interface UpdateInput extends Schema.Schema.Type<typeof UpdateInput> {
|
|
|
63
63
|
}
|
|
64
64
|
export declare const Snapshot: Schema.Struct<{
|
|
65
65
|
readonly info: Schema.Struct<{
|
|
66
|
+
readonly id: Schema.brand<Schema.String, "PtyID"> & {
|
|
67
|
+
create: () => string & import("effect/Brand").Brand<"PtyID">;
|
|
68
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">;
|
|
69
|
+
};
|
|
70
|
+
readonly title: Schema.String;
|
|
71
|
+
readonly command: Schema.String;
|
|
72
|
+
readonly args: Schema.$Array<Schema.String>;
|
|
73
|
+
readonly cwd: Schema.String;
|
|
74
|
+
readonly status: Schema.Literals<readonly ["running", "exited"]>;
|
|
75
|
+
readonly pid: Schema.Int;
|
|
76
|
+
readonly exitCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
66
77
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
67
78
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
68
79
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -76,17 +87,6 @@ export declare const Snapshot: Schema.Struct<{
|
|
|
76
87
|
readonly head: Schema.Int;
|
|
77
88
|
readonly tail: Schema.Int;
|
|
78
89
|
}>;
|
|
79
|
-
readonly id: Schema.brand<Schema.String, "PtyID"> & {
|
|
80
|
-
create: () => string & import("effect/Brand").Brand<"PtyID">;
|
|
81
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">;
|
|
82
|
-
};
|
|
83
|
-
readonly title: Schema.String;
|
|
84
|
-
readonly command: Schema.String;
|
|
85
|
-
readonly args: Schema.$Array<Schema.String>;
|
|
86
|
-
readonly cwd: Schema.String;
|
|
87
|
-
readonly status: Schema.Literals<readonly ["running", "exited"]>;
|
|
88
|
-
readonly pid: Schema.Int;
|
|
89
|
-
readonly exitCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
90
90
|
}>;
|
|
91
91
|
readonly text: Schema.String;
|
|
92
92
|
readonly checkpoint: Schema.Uint8Array;
|
|
@@ -150,6 +150,17 @@ export declare const Added: Schema.Struct<{
|
|
|
150
150
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
151
151
|
};
|
|
152
152
|
readonly terminal: Schema.Struct<{
|
|
153
|
+
readonly id: Schema.brand<Schema.String, "PtyID"> & {
|
|
154
|
+
create: () => string & import("effect/Brand").Brand<"PtyID">;
|
|
155
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">;
|
|
156
|
+
};
|
|
157
|
+
readonly title: Schema.String;
|
|
158
|
+
readonly command: Schema.String;
|
|
159
|
+
readonly args: Schema.$Array<Schema.String>;
|
|
160
|
+
readonly cwd: Schema.String;
|
|
161
|
+
readonly status: Schema.Literals<readonly ["running", "exited"]>;
|
|
162
|
+
readonly pid: Schema.Int;
|
|
163
|
+
readonly exitCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
153
164
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
154
165
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
155
166
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -163,17 +174,6 @@ export declare const Added: Schema.Struct<{
|
|
|
163
174
|
readonly head: Schema.Int;
|
|
164
175
|
readonly tail: Schema.Int;
|
|
165
176
|
}>;
|
|
166
|
-
readonly id: Schema.brand<Schema.String, "PtyID"> & {
|
|
167
|
-
create: () => string & import("effect/Brand").Brand<"PtyID">;
|
|
168
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">;
|
|
169
|
-
};
|
|
170
|
-
readonly title: Schema.String;
|
|
171
|
-
readonly command: Schema.String;
|
|
172
|
-
readonly args: Schema.$Array<Schema.String>;
|
|
173
|
-
readonly cwd: Schema.String;
|
|
174
|
-
readonly status: Schema.Literals<readonly ["running", "exited"]>;
|
|
175
|
-
readonly pid: Schema.Int;
|
|
176
|
-
readonly exitCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
177
177
|
}>;
|
|
178
178
|
}>;
|
|
179
179
|
}> & {
|
|
@@ -186,6 +186,17 @@ export declare const Added: Schema.Struct<{
|
|
|
186
186
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
187
187
|
};
|
|
188
188
|
readonly terminal: Schema.Struct<{
|
|
189
|
+
readonly id: Schema.brand<Schema.String, "PtyID"> & {
|
|
190
|
+
create: () => string & import("effect/Brand").Brand<"PtyID">;
|
|
191
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">;
|
|
192
|
+
};
|
|
193
|
+
readonly title: Schema.String;
|
|
194
|
+
readonly command: Schema.String;
|
|
195
|
+
readonly args: Schema.$Array<Schema.String>;
|
|
196
|
+
readonly cwd: Schema.String;
|
|
197
|
+
readonly status: Schema.Literals<readonly ["running", "exited"]>;
|
|
198
|
+
readonly pid: Schema.Int;
|
|
199
|
+
readonly exitCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
189
200
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
190
201
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
191
202
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -199,17 +210,6 @@ export declare const Added: Schema.Struct<{
|
|
|
199
210
|
readonly head: Schema.Int;
|
|
200
211
|
readonly tail: Schema.Int;
|
|
201
212
|
}>;
|
|
202
|
-
readonly id: Schema.brand<Schema.String, "PtyID"> & {
|
|
203
|
-
create: () => string & import("effect/Brand").Brand<"PtyID">;
|
|
204
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">;
|
|
205
|
-
};
|
|
206
|
-
readonly title: Schema.String;
|
|
207
|
-
readonly command: Schema.String;
|
|
208
|
-
readonly args: Schema.$Array<Schema.String>;
|
|
209
|
-
readonly cwd: Schema.String;
|
|
210
|
-
readonly status: Schema.Literals<readonly ["running", "exited"]>;
|
|
211
|
-
readonly pid: Schema.Int;
|
|
212
|
-
readonly exitCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
213
213
|
}>;
|
|
214
214
|
}>;
|
|
215
215
|
};
|
|
@@ -297,6 +297,17 @@ export declare const Event: {
|
|
|
297
297
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
298
298
|
};
|
|
299
299
|
readonly terminal: Schema.Struct<{
|
|
300
|
+
readonly id: Schema.brand<Schema.String, "PtyID"> & {
|
|
301
|
+
create: () => string & import("effect/Brand").Brand<"PtyID">;
|
|
302
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">;
|
|
303
|
+
};
|
|
304
|
+
readonly title: Schema.String;
|
|
305
|
+
readonly command: Schema.String;
|
|
306
|
+
readonly args: Schema.$Array<Schema.String>;
|
|
307
|
+
readonly cwd: Schema.String;
|
|
308
|
+
readonly status: Schema.Literals<readonly ["running", "exited"]>;
|
|
309
|
+
readonly pid: Schema.Int;
|
|
310
|
+
readonly exitCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
300
311
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
301
312
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
302
313
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -310,17 +321,6 @@ export declare const Event: {
|
|
|
310
321
|
readonly head: Schema.Int;
|
|
311
322
|
readonly tail: Schema.Int;
|
|
312
323
|
}>;
|
|
313
|
-
readonly id: Schema.brand<Schema.String, "PtyID"> & {
|
|
314
|
-
create: () => string & import("effect/Brand").Brand<"PtyID">;
|
|
315
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">;
|
|
316
|
-
};
|
|
317
|
-
readonly title: Schema.String;
|
|
318
|
-
readonly command: Schema.String;
|
|
319
|
-
readonly args: Schema.$Array<Schema.String>;
|
|
320
|
-
readonly cwd: Schema.String;
|
|
321
|
-
readonly status: Schema.Literals<readonly ["running", "exited"]>;
|
|
322
|
-
readonly pid: Schema.Int;
|
|
323
|
-
readonly exitCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
324
324
|
}>;
|
|
325
325
|
}>;
|
|
326
326
|
}> & {
|
|
@@ -333,6 +333,17 @@ export declare const Event: {
|
|
|
333
333
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
334
334
|
};
|
|
335
335
|
readonly terminal: Schema.Struct<{
|
|
336
|
+
readonly id: Schema.brand<Schema.String, "PtyID"> & {
|
|
337
|
+
create: () => string & import("effect/Brand").Brand<"PtyID">;
|
|
338
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">;
|
|
339
|
+
};
|
|
340
|
+
readonly title: Schema.String;
|
|
341
|
+
readonly command: Schema.String;
|
|
342
|
+
readonly args: Schema.$Array<Schema.String>;
|
|
343
|
+
readonly cwd: Schema.String;
|
|
344
|
+
readonly status: Schema.Literals<readonly ["running", "exited"]>;
|
|
345
|
+
readonly pid: Schema.Int;
|
|
346
|
+
readonly exitCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
336
347
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
337
348
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
338
349
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -346,17 +357,6 @@ export declare const Event: {
|
|
|
346
357
|
readonly head: Schema.Int;
|
|
347
358
|
readonly tail: Schema.Int;
|
|
348
359
|
}>;
|
|
349
|
-
readonly id: Schema.brand<Schema.String, "PtyID"> & {
|
|
350
|
-
create: () => string & import("effect/Brand").Brand<"PtyID">;
|
|
351
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">;
|
|
352
|
-
};
|
|
353
|
-
readonly title: Schema.String;
|
|
354
|
-
readonly command: Schema.String;
|
|
355
|
-
readonly args: Schema.$Array<Schema.String>;
|
|
356
|
-
readonly cwd: Schema.String;
|
|
357
|
-
readonly status: Schema.Literals<readonly ["running", "exited"]>;
|
|
358
|
-
readonly pid: Schema.Int;
|
|
359
|
-
readonly exitCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
360
360
|
}>;
|
|
361
361
|
}>;
|
|
362
362
|
};
|
|
@@ -443,6 +443,17 @@ export declare const Event: {
|
|
|
443
443
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
444
444
|
};
|
|
445
445
|
readonly terminal: Schema.Struct<{
|
|
446
|
+
readonly id: Schema.brand<Schema.String, "PtyID"> & {
|
|
447
|
+
create: () => string & import("effect/Brand").Brand<"PtyID">;
|
|
448
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">;
|
|
449
|
+
};
|
|
450
|
+
readonly title: Schema.String;
|
|
451
|
+
readonly command: Schema.String;
|
|
452
|
+
readonly args: Schema.$Array<Schema.String>;
|
|
453
|
+
readonly cwd: Schema.String;
|
|
454
|
+
readonly status: Schema.Literals<readonly ["running", "exited"]>;
|
|
455
|
+
readonly pid: Schema.Int;
|
|
456
|
+
readonly exitCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
446
457
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
447
458
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
448
459
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -456,17 +467,6 @@ export declare const Event: {
|
|
|
456
467
|
readonly head: Schema.Int;
|
|
457
468
|
readonly tail: Schema.Int;
|
|
458
469
|
}>;
|
|
459
|
-
readonly id: Schema.brand<Schema.String, "PtyID"> & {
|
|
460
|
-
create: () => string & import("effect/Brand").Brand<"PtyID">;
|
|
461
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">;
|
|
462
|
-
};
|
|
463
|
-
readonly title: Schema.String;
|
|
464
|
-
readonly command: Schema.String;
|
|
465
|
-
readonly args: Schema.$Array<Schema.String>;
|
|
466
|
-
readonly cwd: Schema.String;
|
|
467
|
-
readonly status: Schema.Literals<readonly ["running", "exited"]>;
|
|
468
|
-
readonly pid: Schema.Int;
|
|
469
|
-
readonly exitCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
470
470
|
}>;
|
|
471
471
|
}>;
|
|
472
472
|
}> & {
|
|
@@ -479,6 +479,17 @@ export declare const Event: {
|
|
|
479
479
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
480
480
|
};
|
|
481
481
|
readonly terminal: Schema.Struct<{
|
|
482
|
+
readonly id: Schema.brand<Schema.String, "PtyID"> & {
|
|
483
|
+
create: () => string & import("effect/Brand").Brand<"PtyID">;
|
|
484
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">;
|
|
485
|
+
};
|
|
486
|
+
readonly title: Schema.String;
|
|
487
|
+
readonly command: Schema.String;
|
|
488
|
+
readonly args: Schema.$Array<Schema.String>;
|
|
489
|
+
readonly cwd: Schema.String;
|
|
490
|
+
readonly status: Schema.Literals<readonly ["running", "exited"]>;
|
|
491
|
+
readonly pid: Schema.Int;
|
|
492
|
+
readonly exitCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
482
493
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
483
494
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
484
495
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -492,17 +503,6 @@ export declare const Event: {
|
|
|
492
503
|
readonly head: Schema.Int;
|
|
493
504
|
readonly tail: Schema.Int;
|
|
494
505
|
}>;
|
|
495
|
-
readonly id: Schema.brand<Schema.String, "PtyID"> & {
|
|
496
|
-
create: () => string & import("effect/Brand").Brand<"PtyID">;
|
|
497
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">;
|
|
498
|
-
};
|
|
499
|
-
readonly title: Schema.String;
|
|
500
|
-
readonly command: Schema.String;
|
|
501
|
-
readonly args: Schema.$Array<Schema.String>;
|
|
502
|
-
readonly cwd: Schema.String;
|
|
503
|
-
readonly status: Schema.Literals<readonly ["running", "exited"]>;
|
|
504
|
-
readonly pid: Schema.Int;
|
|
505
|
-
readonly exitCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
506
506
|
}>;
|
|
507
507
|
}>;
|
|
508
508
|
}, Schema.Struct<{
|
package/dist/prompt-input.d.ts
CHANGED
|
@@ -18,8 +18,8 @@ export declare const FileAttachment: Schema.Struct<{
|
|
|
18
18
|
}> & {
|
|
19
19
|
create: (input: FileAttachment) => {
|
|
20
20
|
readonly uri: string;
|
|
21
|
-
readonly description?: string | undefined;
|
|
22
21
|
readonly name?: string | undefined;
|
|
22
|
+
readonly description?: string | undefined;
|
|
23
23
|
readonly mention?: {
|
|
24
24
|
readonly start: number;
|
|
25
25
|
readonly end: number;
|
|
@@ -61,8 +61,8 @@ export declare const Prompt: Schema.Struct<{
|
|
|
61
61
|
}> & {
|
|
62
62
|
create: (input: FileAttachment) => {
|
|
63
63
|
readonly uri: string;
|
|
64
|
-
readonly description?: string | undefined;
|
|
65
64
|
readonly name?: string | undefined;
|
|
65
|
+
readonly description?: string | undefined;
|
|
66
66
|
readonly mention?: {
|
|
67
67
|
readonly start: number;
|
|
68
68
|
readonly end: number;
|
|
@@ -85,8 +85,8 @@ export declare const Prompt: Schema.Struct<{
|
|
|
85
85
|
}> & {
|
|
86
86
|
create: (input: FileAttachment) => {
|
|
87
87
|
readonly uri: string;
|
|
88
|
-
readonly description?: string | undefined;
|
|
89
88
|
readonly name?: string | undefined;
|
|
89
|
+
readonly description?: string | undefined;
|
|
90
90
|
readonly mention?: {
|
|
91
91
|
readonly start: number;
|
|
92
92
|
readonly end: number;
|
package/dist/prompt.d.ts
CHANGED
|
@@ -40,15 +40,15 @@ export declare const FileAttachment: Schema.Struct<{
|
|
|
40
40
|
}> & {
|
|
41
41
|
create: (input: FileAttachment) => {
|
|
42
42
|
readonly data: string;
|
|
43
|
+
readonly mime: string;
|
|
43
44
|
readonly source: {
|
|
44
45
|
readonly type: "inline";
|
|
45
46
|
} | {
|
|
46
47
|
readonly type: "uri";
|
|
47
48
|
readonly uri: string;
|
|
48
49
|
};
|
|
49
|
-
readonly mime: string;
|
|
50
|
-
readonly description?: string | undefined;
|
|
51
50
|
readonly name?: string | undefined;
|
|
51
|
+
readonly description?: string | undefined;
|
|
52
52
|
readonly mention?: {
|
|
53
53
|
readonly start: number;
|
|
54
54
|
readonly end: number;
|
|
@@ -113,15 +113,15 @@ export declare const Prompt: Schema.Struct<{
|
|
|
113
113
|
}> & {
|
|
114
114
|
create: (input: FileAttachment) => {
|
|
115
115
|
readonly data: string;
|
|
116
|
+
readonly mime: string;
|
|
116
117
|
readonly source: {
|
|
117
118
|
readonly type: "inline";
|
|
118
119
|
} | {
|
|
119
120
|
readonly type: "uri";
|
|
120
121
|
readonly uri: string;
|
|
121
122
|
};
|
|
122
|
-
readonly mime: string;
|
|
123
|
-
readonly description?: string | undefined;
|
|
124
123
|
readonly name?: string | undefined;
|
|
124
|
+
readonly description?: string | undefined;
|
|
125
125
|
readonly mention?: {
|
|
126
126
|
readonly start: number;
|
|
127
127
|
readonly end: number;
|
|
@@ -151,15 +151,15 @@ export declare const Prompt: Schema.Struct<{
|
|
|
151
151
|
}> & {
|
|
152
152
|
create: (input: FileAttachment) => {
|
|
153
153
|
readonly data: string;
|
|
154
|
+
readonly mime: string;
|
|
154
155
|
readonly source: {
|
|
155
156
|
readonly type: "inline";
|
|
156
157
|
} | {
|
|
157
158
|
readonly type: "uri";
|
|
158
159
|
readonly uri: string;
|
|
159
160
|
};
|
|
160
|
-
readonly mime: string;
|
|
161
|
-
readonly description?: string | undefined;
|
|
162
161
|
readonly name?: string | undefined;
|
|
162
|
+
readonly description?: string | undefined;
|
|
163
163
|
readonly mention?: {
|
|
164
164
|
readonly start: number;
|
|
165
165
|
readonly end: number;
|
|
@@ -220,6 +220,23 @@ export declare const Prompt: Schema.Struct<{
|
|
|
220
220
|
}> & {
|
|
221
221
|
equivalence: import("effect/Equivalence").Equivalence<{
|
|
222
222
|
readonly text: string;
|
|
223
|
+
readonly files?: readonly {
|
|
224
|
+
readonly data: string;
|
|
225
|
+
readonly mime: string;
|
|
226
|
+
readonly source: {
|
|
227
|
+
readonly type: "inline";
|
|
228
|
+
} | {
|
|
229
|
+
readonly type: "uri";
|
|
230
|
+
readonly uri: string;
|
|
231
|
+
};
|
|
232
|
+
readonly name?: string | undefined;
|
|
233
|
+
readonly description?: string | undefined;
|
|
234
|
+
readonly mention?: {
|
|
235
|
+
readonly start: number;
|
|
236
|
+
readonly end: number;
|
|
237
|
+
readonly text: string;
|
|
238
|
+
} | undefined;
|
|
239
|
+
}[] | undefined;
|
|
223
240
|
readonly agents?: readonly {
|
|
224
241
|
readonly name: string;
|
|
225
242
|
readonly mention?: {
|
|
@@ -238,26 +255,26 @@ export declare const Prompt: Schema.Struct<{
|
|
|
238
255
|
readonly text: string;
|
|
239
256
|
} | undefined;
|
|
240
257
|
}[] | undefined;
|
|
258
|
+
}>;
|
|
259
|
+
fromUserMessage: (input: Pick<Prompt, "text" | "files" | "agents" | "skills">) => {
|
|
260
|
+
readonly text: string;
|
|
241
261
|
readonly files?: readonly {
|
|
242
262
|
readonly data: string;
|
|
263
|
+
readonly mime: string;
|
|
243
264
|
readonly source: {
|
|
244
265
|
readonly type: "inline";
|
|
245
266
|
} | {
|
|
246
267
|
readonly type: "uri";
|
|
247
268
|
readonly uri: string;
|
|
248
269
|
};
|
|
249
|
-
readonly mime: string;
|
|
250
|
-
readonly description?: string | undefined;
|
|
251
270
|
readonly name?: string | undefined;
|
|
271
|
+
readonly description?: string | undefined;
|
|
252
272
|
readonly mention?: {
|
|
253
273
|
readonly start: number;
|
|
254
274
|
readonly end: number;
|
|
255
275
|
readonly text: string;
|
|
256
276
|
} | undefined;
|
|
257
277
|
}[] | undefined;
|
|
258
|
-
}>;
|
|
259
|
-
fromUserMessage: (input: Pick<Prompt, "text" | "files" | "agents" | "skills">) => {
|
|
260
|
-
readonly text: string;
|
|
261
278
|
readonly agents?: readonly {
|
|
262
279
|
readonly name: string;
|
|
263
280
|
readonly mention?: {
|
|
@@ -276,22 +293,5 @@ export declare const Prompt: Schema.Struct<{
|
|
|
276
293
|
readonly text: string;
|
|
277
294
|
} | undefined;
|
|
278
295
|
}[] | undefined;
|
|
279
|
-
readonly files?: readonly {
|
|
280
|
-
readonly data: string;
|
|
281
|
-
readonly source: {
|
|
282
|
-
readonly type: "inline";
|
|
283
|
-
} | {
|
|
284
|
-
readonly type: "uri";
|
|
285
|
-
readonly uri: string;
|
|
286
|
-
};
|
|
287
|
-
readonly mime: string;
|
|
288
|
-
readonly description?: string | undefined;
|
|
289
|
-
readonly name?: string | undefined;
|
|
290
|
-
readonly mention?: {
|
|
291
|
-
readonly start: number;
|
|
292
|
-
readonly end: number;
|
|
293
|
-
readonly text: string;
|
|
294
|
-
} | undefined;
|
|
295
|
-
}[] | undefined;
|
|
296
296
|
};
|
|
297
297
|
};
|