@opencode/schema 2.1.2 → 2.1.4
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/agent.d.ts +1 -1
- package/dist/config/agent.js +3 -2
- package/dist/config/experimental.d.ts +1 -0
- package/dist/config/experimental.js +3 -0
- package/dist/event-manifest.d.ts +120 -366
- package/dist/permission.d.ts +0 -9
- package/dist/persistent-pty.d.ts +0 -20
- package/dist/prompt-input.d.ts +3 -36
- package/dist/prompt-input.js +2 -6
- package/dist/session-event.d.ts +302 -854
- package/dist/session-event.js +2 -9
- package/dist/session-fork.d.ts +2 -2
- package/dist/session-id.d.ts +0 -1
- package/dist/session-id.js +3 -7
- package/dist/session-inbox.d.ts +8 -16
- package/dist/session-message.d.ts +30 -31
- package/dist/session-message.js +0 -1
- package/dist/session-revert.d.ts +27 -27
- package/dist/session-status-event.d.ts +0 -8
- package/dist/session-transfer.d.ts +19 -24
- package/dist/session.d.ts +8 -22
- package/dist/v1/legacy-event.d.ts +0 -4
- package/dist/v1/permission.d.ts +0 -10
- package/dist/v1/session.d.ts +0 -177
- package/dist/workspace-id.js +0 -2
- package/package.json +5 -4
package/dist/session.d.ts
CHANGED
|
@@ -7,7 +7,6 @@ import { Revert } from "./session-revert.js";
|
|
|
7
7
|
import { SessionFork } from "./session-fork.js";
|
|
8
8
|
export declare const ID: Schema.brand<Schema.String, "SessionID"> & {
|
|
9
9
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
10
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
11
10
|
};
|
|
12
11
|
export type ID = SessionID;
|
|
13
12
|
export declare const Metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
@@ -18,13 +17,13 @@ export declare const ForkBoundary: Schema.Union<readonly [Schema.Struct<{
|
|
|
18
17
|
readonly type: Schema.Literal<"before">;
|
|
19
18
|
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
20
19
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
21
|
-
fromEvent: (eventID:
|
|
20
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
22
21
|
};
|
|
23
22
|
}>, Schema.Struct<{
|
|
24
23
|
readonly type: Schema.Literal<"through">;
|
|
25
24
|
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
26
25
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
27
|
-
fromEvent: (eventID:
|
|
26
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
28
27
|
};
|
|
29
28
|
}>]>;
|
|
30
29
|
export type ForkBoundary = SessionFork.Boundary;
|
|
@@ -33,49 +32,44 @@ export interface Info extends Schema.Schema.Type<typeof Info> {
|
|
|
33
32
|
export declare const Info: Schema.Struct<{
|
|
34
33
|
readonly id: Schema.brand<Schema.String, "SessionID"> & {
|
|
35
34
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
36
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
37
35
|
};
|
|
38
36
|
readonly parentID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "SessionID"> & {
|
|
39
37
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
40
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
41
38
|
}>>, Schema.optionalKey<Schema.brand<Schema.String, "SessionID"> & {
|
|
42
39
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
43
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
44
40
|
}>, never, never>;
|
|
45
41
|
readonly fork: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
46
42
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
47
43
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
48
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
49
44
|
};
|
|
50
45
|
readonly boundary: Schema.Union<readonly [Schema.Struct<{
|
|
51
46
|
readonly type: Schema.Literal<"before">;
|
|
52
47
|
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
53
48
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
54
|
-
fromEvent: (eventID:
|
|
49
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
55
50
|
};
|
|
56
51
|
}>, Schema.Struct<{
|
|
57
52
|
readonly type: Schema.Literal<"through">;
|
|
58
53
|
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
59
54
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
60
|
-
fromEvent: (eventID:
|
|
55
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
61
56
|
};
|
|
62
57
|
}>]>;
|
|
63
58
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
64
59
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
65
60
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
66
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
67
61
|
};
|
|
68
62
|
readonly boundary: Schema.Union<readonly [Schema.Struct<{
|
|
69
63
|
readonly type: Schema.Literal<"before">;
|
|
70
64
|
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
71
65
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
72
|
-
fromEvent: (eventID:
|
|
66
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
73
67
|
};
|
|
74
68
|
}>, Schema.Struct<{
|
|
75
69
|
readonly type: Schema.Literal<"through">;
|
|
76
70
|
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
77
71
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
78
|
-
fromEvent: (eventID:
|
|
72
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
79
73
|
};
|
|
80
74
|
}>]>;
|
|
81
75
|
}>>, never, never>;
|
|
@@ -175,7 +169,7 @@ export declare const Info: Schema.Struct<{
|
|
|
175
169
|
readonly revert: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
176
170
|
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
177
171
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
178
|
-
fromEvent: (eventID:
|
|
172
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
179
173
|
};
|
|
180
174
|
readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
181
175
|
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
@@ -195,7 +189,7 @@ export declare const Info: Schema.Struct<{
|
|
|
195
189
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
196
190
|
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
197
191
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
198
|
-
fromEvent: (eventID:
|
|
192
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
199
193
|
};
|
|
200
194
|
readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
201
195
|
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
@@ -217,7 +211,6 @@ export declare const Info: Schema.Struct<{
|
|
|
217
211
|
export declare const ListAnchor: Schema.Struct<{
|
|
218
212
|
readonly id: Schema.brand<Schema.String, "SessionID"> & {
|
|
219
213
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
220
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
221
214
|
};
|
|
222
215
|
readonly time: Schema.Finite;
|
|
223
216
|
readonly direction: Schema.Literals<readonly ["previous", "next"]>;
|
|
@@ -229,7 +222,6 @@ export declare const ListFilter: Schema.Struct<{
|
|
|
229
222
|
readonly search: Schema.optional<Schema.String>;
|
|
230
223
|
readonly parentID: Schema.optional<Schema.Union<readonly [Schema.brand<Schema.String, "SessionID"> & {
|
|
231
224
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
232
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
233
225
|
}, Schema.decodeTo<Schema.Null, Schema.Literal<"null">, never, never>]>>;
|
|
234
226
|
readonly archived: Schema.optional<Schema.decodeTo<Schema.Boolean, Schema.Literals<readonly ["true", "false"]>, never, never>>;
|
|
235
227
|
readonly directory: Schema.optional<Schema.brand<Schema.String, "AbsolutePath">>;
|
|
@@ -245,14 +237,12 @@ declare const ListCursorInput: Schema.Union<readonly [Schema.Struct<{
|
|
|
245
237
|
readonly search: Schema.optional<Schema.String>;
|
|
246
238
|
readonly parentID: Schema.optional<Schema.Union<readonly [Schema.brand<Schema.String, "SessionID"> & {
|
|
247
239
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
248
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
249
240
|
}, Schema.decodeTo<Schema.Null, Schema.Literal<"null">, never, never>]>>;
|
|
250
241
|
readonly archived: Schema.optional<Schema.decodeTo<Schema.Boolean, Schema.Literals<readonly ["true", "false"]>, never, never>>;
|
|
251
242
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
252
243
|
readonly anchor: Schema.Struct<{
|
|
253
244
|
readonly id: Schema.brand<Schema.String, "SessionID"> & {
|
|
254
245
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
255
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
256
246
|
};
|
|
257
247
|
readonly time: Schema.Finite;
|
|
258
248
|
readonly direction: Schema.Literals<readonly ["previous", "next"]>;
|
|
@@ -262,7 +252,6 @@ declare const ListCursorInput: Schema.Union<readonly [Schema.Struct<{
|
|
|
262
252
|
readonly search: Schema.optional<Schema.String>;
|
|
263
253
|
readonly parentID: Schema.optional<Schema.Union<readonly [Schema.brand<Schema.String, "SessionID"> & {
|
|
264
254
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
265
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
266
255
|
}, Schema.decodeTo<Schema.Null, Schema.Literal<"null">, never, never>]>>;
|
|
267
256
|
readonly archived: Schema.optional<Schema.decodeTo<Schema.Boolean, Schema.Literals<readonly ["true", "false"]>, never, never>>;
|
|
268
257
|
readonly project: Schema.brand<Schema.String, "Project.ID"> & {
|
|
@@ -272,7 +261,6 @@ declare const ListCursorInput: Schema.Union<readonly [Schema.Struct<{
|
|
|
272
261
|
readonly anchor: Schema.Struct<{
|
|
273
262
|
readonly id: Schema.brand<Schema.String, "SessionID"> & {
|
|
274
263
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
275
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
276
264
|
};
|
|
277
265
|
readonly time: Schema.Finite;
|
|
278
266
|
readonly direction: Schema.Literals<readonly ["previous", "next"]>;
|
|
@@ -282,13 +270,11 @@ declare const ListCursorInput: Schema.Union<readonly [Schema.Struct<{
|
|
|
282
270
|
readonly search: Schema.optional<Schema.String>;
|
|
283
271
|
readonly parentID: Schema.optional<Schema.Union<readonly [Schema.brand<Schema.String, "SessionID"> & {
|
|
284
272
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
285
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
286
273
|
}, Schema.decodeTo<Schema.Null, Schema.Literal<"null">, never, never>]>>;
|
|
287
274
|
readonly archived: Schema.optional<Schema.decodeTo<Schema.Boolean, Schema.Literals<readonly ["true", "false"]>, never, never>>;
|
|
288
275
|
readonly anchor: Schema.Struct<{
|
|
289
276
|
readonly id: Schema.brand<Schema.String, "SessionID"> & {
|
|
290
277
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
291
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
292
278
|
};
|
|
293
279
|
readonly time: Schema.Finite;
|
|
294
280
|
readonly direction: Schema.Literals<readonly ["previous", "next"]>;
|
|
@@ -30,7 +30,6 @@ export declare const CommandExecuted: Schema.Struct<{
|
|
|
30
30
|
readonly name: Schema.String;
|
|
31
31
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
32
32
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
33
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
34
33
|
};
|
|
35
34
|
readonly arguments: Schema.String;
|
|
36
35
|
readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
|
|
@@ -45,7 +44,6 @@ export declare const CommandExecuted: Schema.Struct<{
|
|
|
45
44
|
readonly name: Schema.String;
|
|
46
45
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
47
46
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
48
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
49
47
|
};
|
|
50
48
|
readonly arguments: Schema.String;
|
|
51
49
|
readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
|
|
@@ -83,7 +81,6 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
83
81
|
readonly name: Schema.String;
|
|
84
82
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
85
83
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
86
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
87
84
|
};
|
|
88
85
|
readonly arguments: Schema.String;
|
|
89
86
|
readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
|
|
@@ -98,7 +95,6 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
98
95
|
readonly name: Schema.String;
|
|
99
96
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
100
97
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
101
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
102
98
|
};
|
|
103
99
|
readonly arguments: Schema.String;
|
|
104
100
|
readonly messageID: Schema.brand<Schema.String, "SessionV1.MessageID"> & {
|
package/dist/v1/permission.d.ts
CHANGED
|
@@ -24,7 +24,6 @@ export declare const Request: Schema.Struct<{
|
|
|
24
24
|
};
|
|
25
25
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
26
26
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
27
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
28
27
|
};
|
|
29
28
|
readonly permission: Schema.String;
|
|
30
29
|
readonly patterns: Schema.$Array<Schema.String>;
|
|
@@ -53,7 +52,6 @@ export type Approval = typeof Approval.Type;
|
|
|
53
52
|
export declare const AskInput: Schema.Struct<{
|
|
54
53
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
55
54
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
56
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
57
55
|
};
|
|
58
56
|
readonly permission: Schema.String;
|
|
59
57
|
readonly patterns: Schema.$Array<Schema.String>;
|
|
@@ -114,7 +112,6 @@ export declare const Event: {
|
|
|
114
112
|
};
|
|
115
113
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
116
114
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
117
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
118
115
|
};
|
|
119
116
|
readonly permission: Schema.String;
|
|
120
117
|
readonly patterns: Schema.$Array<Schema.String>;
|
|
@@ -135,7 +132,6 @@ export declare const Event: {
|
|
|
135
132
|
};
|
|
136
133
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
137
134
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
138
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
139
135
|
};
|
|
140
136
|
readonly permission: Schema.String;
|
|
141
137
|
readonly patterns: Schema.$Array<Schema.String>;
|
|
@@ -176,7 +172,6 @@ export declare const Event: {
|
|
|
176
172
|
readonly data: Schema.Struct<{
|
|
177
173
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
178
174
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
179
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
180
175
|
};
|
|
181
176
|
readonly requestID: Schema.brand<Schema.String, "PermissionV1.ID"> & {
|
|
182
177
|
ascending: (id?: string) => string & import("effect/Brand").Brand<"PermissionV1.ID">;
|
|
@@ -190,7 +185,6 @@ export declare const Event: {
|
|
|
190
185
|
data: Schema.Struct<{
|
|
191
186
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
192
187
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
193
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
194
188
|
};
|
|
195
189
|
readonly requestID: Schema.brand<Schema.String, "PermissionV1.ID"> & {
|
|
196
190
|
ascending: (id?: string) => string & import("effect/Brand").Brand<"PermissionV1.ID">;
|
|
@@ -230,7 +224,6 @@ export declare const Event: {
|
|
|
230
224
|
};
|
|
231
225
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
232
226
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
233
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
234
227
|
};
|
|
235
228
|
readonly permission: Schema.String;
|
|
236
229
|
readonly patterns: Schema.$Array<Schema.String>;
|
|
@@ -251,7 +244,6 @@ export declare const Event: {
|
|
|
251
244
|
};
|
|
252
245
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
253
246
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
254
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
255
247
|
};
|
|
256
248
|
readonly permission: Schema.String;
|
|
257
249
|
readonly patterns: Schema.$Array<Schema.String>;
|
|
@@ -291,7 +283,6 @@ export declare const Event: {
|
|
|
291
283
|
readonly data: Schema.Struct<{
|
|
292
284
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
293
285
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
294
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
295
286
|
};
|
|
296
287
|
readonly requestID: Schema.brand<Schema.String, "PermissionV1.ID"> & {
|
|
297
288
|
ascending: (id?: string) => string & import("effect/Brand").Brand<"PermissionV1.ID">;
|
|
@@ -305,7 +296,6 @@ export declare const Event: {
|
|
|
305
296
|
data: Schema.Struct<{
|
|
306
297
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
307
298
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
308
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
309
299
|
};
|
|
310
300
|
readonly requestID: Schema.brand<Schema.String, "PermissionV1.ID"> & {
|
|
311
301
|
ascending: (id?: string) => string & import("effect/Brand").Brand<"PermissionV1.ID">;
|