@opencode/schema 2.0.32 → 2.1.1

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.
Files changed (37) hide show
  1. package/dist/config/experimental.d.ts +1 -0
  2. package/dist/config/experimental.js +3 -0
  3. package/dist/config/provider.d.ts +56 -52
  4. package/dist/credential-legacy.d.ts +54 -0
  5. package/dist/credential-legacy.js +19 -0
  6. package/dist/credential.d.ts +0 -4
  7. package/dist/credential.js +0 -2
  8. package/dist/event-manifest.d.ts +1111 -1149
  9. package/dist/event-manifest.js +1 -2
  10. package/dist/form.d.ts +213 -213
  11. package/dist/instruction-entry.d.ts +1 -1
  12. package/dist/integration.d.ts +257 -257
  13. package/dist/model-compatibility.d.ts +3 -0
  14. package/dist/model-compatibility.js +2 -0
  15. package/dist/model.d.ts +76 -74
  16. package/dist/persistent-pty.d.ts +88 -88
  17. package/dist/prompt-input.d.ts +3 -3
  18. package/dist/prompt.d.ts +28 -28
  19. package/dist/provider.d.ts +2 -0
  20. package/dist/session-event.d.ts +5729 -5723
  21. package/dist/session-event.js +20 -13
  22. package/dist/session-inbox.d.ts +20 -20
  23. package/dist/session-legacy.d.ts +7 -0
  24. package/dist/session-legacy.js +118 -0
  25. package/dist/session-message.d.ts +125 -268
  26. package/dist/session-message.js +13 -12
  27. package/dist/session-revert.d.ts +407 -183
  28. package/dist/session-transfer.d.ts +33 -83
  29. package/dist/session.d.ts +109 -1
  30. package/dist/session.js +64 -2
  31. package/dist/v1/permission.d.ts +8 -8
  32. package/dist/v1/session.d.ts +696 -696
  33. package/package.json +4 -4
  34. package/dist/session-compaction-event.d.ts +0 -87
  35. package/dist/session-compaction-event.js +0 -10
  36. package/dist/session-provider-context.d.ts +0 -54
  37. package/dist/session-provider-context.js +0 -17
@@ -15,6 +15,8 @@ export declare const Compatibility: Schema.Struct<{
15
15
  readonly requireFinishReason: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
16
16
  readonly requireAssistantAfterTool: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
17
17
  readonly supportsPromptCacheKey: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
18
+ /** Request usage in the stream with `stream_options.include_usage`. Defaults to true. */
19
+ readonly streamUsage: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
18
20
  /** Prompt-cache marker syntax the endpoint accepts. Overrides the route default; both send `cache_control`, and `alibaba` skips tool definitions. */
19
21
  readonly cacheFormat: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["anthropic", "alibaba"]>>>, Schema.optionalKey<Schema.Literals<readonly ["anthropic", "alibaba"]>>, never, never>;
20
22
  /** Supports Anthropic's thinking-prefix mismatch controls. Overrides model-ID detection. */
@@ -31,5 +33,6 @@ export declare const ProviderCompatibility: Schema.Struct<{
31
33
  readonly requireFinishReason: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
32
34
  readonly requireAssistantAfterTool: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
33
35
  readonly supportsPromptCacheKey: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
36
+ readonly streamUsage: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
34
37
  readonly cacheFormat: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["anthropic", "alibaba"]>>>, Schema.optionalKey<Schema.Literals<readonly ["anthropic", "alibaba"]>>, never, never>;
35
38
  }>;
@@ -16,6 +16,8 @@ export const Compatibility = Schema.Struct({
16
16
  requireFinishReason: Schema.Boolean.pipe(optional),
17
17
  requireAssistantAfterTool: Schema.Boolean.pipe(optional),
18
18
  supportsPromptCacheKey: Schema.Boolean.pipe(optional),
19
+ /** Request usage in the stream with `stream_options.include_usage`. Defaults to true. */
20
+ streamUsage: Schema.Boolean.pipe(optional),
19
21
  /** Prompt-cache marker syntax the endpoint accepts. Overrides the route default; both send `cache_control`, and `alibaba` skips tool definitions. */
20
22
  cacheFormat: CacheFormat.pipe(optional),
21
23
  /** Supports Anthropic's thinking-prefix mismatch controls. Overrides model-ID detection. */
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">;
@@ -363,6 +289,7 @@ export declare const Info: Schema.Struct<{
363
289
  readonly requireFinishReason: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
364
290
  readonly requireAssistantAfterTool: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
365
291
  readonly supportsPromptCacheKey: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
292
+ readonly streamUsage: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
366
293
  readonly cacheFormat: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["anthropic", "alibaba"]>>>, Schema.optionalKey<Schema.Literals<readonly ["anthropic", "alibaba"]>>, never, never>;
367
294
  readonly supportsThinkingBlockBinding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
368
295
  readonly supportsEffortUpdates: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
@@ -373,11 +300,86 @@ export declare const Info: Schema.Struct<{
373
300
  readonly requireFinishReason: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
374
301
  readonly requireAssistantAfterTool: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
375
302
  readonly supportsPromptCacheKey: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
303
+ readonly streamUsage: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
376
304
  readonly cacheFormat: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["anthropic", "alibaba"]>>>, Schema.optionalKey<Schema.Literals<readonly ["anthropic", "alibaba"]>>, never, never>;
377
305
  readonly supportsThinkingBlockBinding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
378
306
  readonly supportsEffortUpdates: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
379
307
  }>>, never, never>;
380
308
  readonly package: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
309
+ readonly capabilities: Schema.Struct<{
310
+ readonly tools: Schema.Boolean;
311
+ readonly input: Schema.$Array<Schema.String>;
312
+ readonly output: Schema.$Array<Schema.String>;
313
+ /** Whether the model accepts a sampling temperature. Unknown when unset. */
314
+ readonly temperature: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
315
+ }> & {
316
+ default: () => {
317
+ tools: true;
318
+ input: string[];
319
+ output: string[];
320
+ };
321
+ };
322
+ readonly variants: Schema.$Array<Schema.Struct<{
323
+ readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.StructWithRest<Schema.Struct<{
324
+ readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
325
+ readonly type: Schema.Literal<"summary">;
326
+ }>, Schema.Struct<{
327
+ readonly type: Schema.Literal<"native">;
328
+ }>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
329
+ readonly type: Schema.Literal<"summary">;
330
+ }>, Schema.Struct<{
331
+ readonly type: Schema.Literal<"native">;
332
+ }>]>>, never, never>;
333
+ readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
334
+ }>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
335
+ readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
336
+ readonly type: Schema.Literal<"summary">;
337
+ }>, Schema.Struct<{
338
+ readonly type: Schema.Literal<"native">;
339
+ }>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
340
+ readonly type: Schema.Literal<"summary">;
341
+ }>, Schema.Struct<{
342
+ readonly type: Schema.Literal<"native">;
343
+ }>]>>, never, never>;
344
+ readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
345
+ }>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>, never, never>;
346
+ readonly headers: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
347
+ readonly body: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Any>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
348
+ readonly id: Schema.brand<Schema.String, "Model.VariantID">;
349
+ }>>;
350
+ readonly time: Schema.Struct<{
351
+ readonly released: Schema.Finite;
352
+ }>;
353
+ readonly cost: Schema.$Array<Schema.Struct<{
354
+ readonly tier: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
355
+ readonly type: Schema.tag<"context">;
356
+ readonly size: Schema.Int;
357
+ }>>>, Schema.optionalKey<Schema.Struct<{
358
+ readonly type: Schema.tag<"context">;
359
+ readonly size: Schema.Int;
360
+ }>>, never, never>;
361
+ readonly input: Schema.brand<Schema.Finite, "Money.USDPerMillionTokens"> & {
362
+ zero: number & import("effect/Brand").Brand<"Money.USDPerMillionTokens">;
363
+ };
364
+ readonly output: Schema.brand<Schema.Finite, "Money.USDPerMillionTokens"> & {
365
+ zero: number & import("effect/Brand").Brand<"Money.USDPerMillionTokens">;
366
+ };
367
+ readonly cache: Schema.Struct<{
368
+ readonly read: Schema.brand<Schema.Finite, "Money.USDPerMillionTokens"> & {
369
+ zero: number & import("effect/Brand").Brand<"Money.USDPerMillionTokens">;
370
+ };
371
+ readonly write: Schema.brand<Schema.Finite, "Money.USDPerMillionTokens"> & {
372
+ zero: number & import("effect/Brand").Brand<"Money.USDPerMillionTokens">;
373
+ };
374
+ }>;
375
+ }>>;
376
+ readonly status: Schema.Literals<readonly ["alpha", "beta", "deprecated", "active"]>;
377
+ readonly enabled: Schema.Boolean;
378
+ readonly limit: Schema.Struct<{
379
+ readonly context: Schema.Int;
380
+ readonly input: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
381
+ readonly output: Schema.Int;
382
+ }>;
381
383
  }> & {
382
384
  default: (providerID: Provider.ID, id: ID) => {
383
385
  id: string & import("effect/Brand").Brand<"Model.ID">;
@@ -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<{
@@ -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
  };