@opencode-ai/schema 0.0.0-next-15020 → 0.0.0-next-15026
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/durable-event-manifest.d.ts +50 -0
- package/dist/event-manifest.d.ts +100 -0
- package/dist/session-event.d.ts +252 -0
- package/dist/session-event.js +9 -1
- package/dist/session.d.ts +25 -0
- package/dist/session.js +5 -0
- package/dist/shell.d.ts +1 -1
- package/dist/shell.js +1 -1
- package/package.json +1 -1
|
@@ -263,6 +263,56 @@ export declare const SessionDurable: {
|
|
|
263
263
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
264
264
|
};
|
|
265
265
|
}>;
|
|
266
|
+
}) | (import("effect/Schema").Struct<{
|
|
267
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
|
|
268
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
269
|
+
};
|
|
270
|
+
readonly created: import("effect/Schema").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>;
|
|
271
|
+
readonly metadata: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>, never, never>;
|
|
272
|
+
readonly type: import("effect/Schema").Literal<"session.deleted">;
|
|
273
|
+
readonly durable: import("effect/Schema").Struct<{
|
|
274
|
+
readonly aggregateID: import("effect/Schema").String;
|
|
275
|
+
readonly seq: import("effect/Schema").brand<import("effect/Schema").Int, "Event.Seq">;
|
|
276
|
+
readonly version: import("effect/Schema").brand<import("effect/Schema").Int, "Event.Version">;
|
|
277
|
+
}>;
|
|
278
|
+
readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
|
|
279
|
+
readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
|
|
280
|
+
readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
281
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
282
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
283
|
+
}>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
284
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
285
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
286
|
+
}>, never, never>;
|
|
287
|
+
}>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
288
|
+
readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
|
|
289
|
+
readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
290
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
291
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
292
|
+
}>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
293
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
294
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
295
|
+
}>, never, never>;
|
|
296
|
+
}>>, never, never>;
|
|
297
|
+
readonly data: import("effect/Schema").Struct<{
|
|
298
|
+
sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
|
|
299
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
300
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
301
|
+
};
|
|
302
|
+
}>;
|
|
303
|
+
}> & {
|
|
304
|
+
type: "session.deleted";
|
|
305
|
+
durability: "durable";
|
|
306
|
+
durable: {
|
|
307
|
+
readonly version: number;
|
|
308
|
+
readonly aggregate: string;
|
|
309
|
+
};
|
|
310
|
+
data: import("effect/Schema").Struct<{
|
|
311
|
+
sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
|
|
312
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
313
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
314
|
+
};
|
|
315
|
+
}>;
|
|
266
316
|
}) | (import("effect/Schema").Struct<{
|
|
267
317
|
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
|
|
268
318
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
package/dist/event-manifest.d.ts
CHANGED
|
@@ -2746,6 +2746,56 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
2746
2746
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
2747
2747
|
};
|
|
2748
2748
|
}>;
|
|
2749
|
+
}, Schema.Struct<{
|
|
2750
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
2751
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
2752
|
+
};
|
|
2753
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
2754
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
2755
|
+
readonly type: Schema.Literal<"session.deleted">;
|
|
2756
|
+
readonly durable: Schema.Struct<{
|
|
2757
|
+
readonly aggregateID: Schema.String;
|
|
2758
|
+
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
2759
|
+
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
2760
|
+
}>;
|
|
2761
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2762
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
2763
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
2764
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
2765
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
2766
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
2767
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
2768
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
2769
|
+
}>, never, never>;
|
|
2770
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
2771
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
2772
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
2773
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
2774
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
2775
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
2776
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
2777
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
2778
|
+
}>, never, never>;
|
|
2779
|
+
}>>, never, never>;
|
|
2780
|
+
readonly data: Schema.Struct<{
|
|
2781
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
2782
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
2783
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
2784
|
+
};
|
|
2785
|
+
}>;
|
|
2786
|
+
}> & {
|
|
2787
|
+
type: "session.deleted";
|
|
2788
|
+
durability: "durable";
|
|
2789
|
+
durable: {
|
|
2790
|
+
readonly version: number;
|
|
2791
|
+
readonly aggregate: string;
|
|
2792
|
+
};
|
|
2793
|
+
data: Schema.Struct<{
|
|
2794
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
2795
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
2796
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
2797
|
+
};
|
|
2798
|
+
}>;
|
|
2749
2799
|
}, Schema.Struct<{
|
|
2750
2800
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
2751
2801
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -7984,6 +8034,56 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
7984
8034
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
7985
8035
|
};
|
|
7986
8036
|
}>;
|
|
8037
|
+
}) | (Schema.Struct<{
|
|
8038
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
8039
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
8040
|
+
};
|
|
8041
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
8042
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
8043
|
+
readonly type: Schema.Literal<"session.deleted">;
|
|
8044
|
+
readonly durable: Schema.Struct<{
|
|
8045
|
+
readonly aggregateID: Schema.String;
|
|
8046
|
+
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
8047
|
+
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
8048
|
+
}>;
|
|
8049
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
8050
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
8051
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
8052
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
8053
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
8054
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
8055
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
8056
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
8057
|
+
}>, never, never>;
|
|
8058
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
8059
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
8060
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
8061
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
8062
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
8063
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
8064
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
8065
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
8066
|
+
}>, never, never>;
|
|
8067
|
+
}>>, never, never>;
|
|
8068
|
+
readonly data: Schema.Struct<{
|
|
8069
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
8070
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
8071
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
8072
|
+
};
|
|
8073
|
+
}>;
|
|
8074
|
+
}> & {
|
|
8075
|
+
type: "session.deleted";
|
|
8076
|
+
durability: "durable";
|
|
8077
|
+
durable: {
|
|
8078
|
+
readonly version: number;
|
|
8079
|
+
readonly aggregate: string;
|
|
8080
|
+
};
|
|
8081
|
+
data: Schema.Struct<{
|
|
8082
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
8083
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
8084
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
8085
|
+
};
|
|
8086
|
+
}>;
|
|
7987
8087
|
}) | (Schema.Struct<{
|
|
7988
8088
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
7989
8089
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
package/dist/session-event.d.ts
CHANGED
|
@@ -278,6 +278,58 @@ export declare const Renamed: Schema.Struct<{
|
|
|
278
278
|
}>;
|
|
279
279
|
};
|
|
280
280
|
export type Renamed = typeof Renamed.Type;
|
|
281
|
+
export declare const Deleted: Schema.Struct<{
|
|
282
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
283
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
284
|
+
};
|
|
285
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
286
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
287
|
+
readonly type: Schema.Literal<"session.deleted">;
|
|
288
|
+
readonly durable: Schema.Struct<{
|
|
289
|
+
readonly aggregateID: Schema.String;
|
|
290
|
+
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
291
|
+
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
292
|
+
}>;
|
|
293
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
294
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
295
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
296
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
297
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
298
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
299
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
300
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
301
|
+
}>, never, never>;
|
|
302
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
303
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
304
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
305
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
306
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
307
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
308
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
309
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
310
|
+
}>, never, never>;
|
|
311
|
+
}>>, never, never>;
|
|
312
|
+
readonly data: Schema.Struct<{
|
|
313
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
314
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
315
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
316
|
+
};
|
|
317
|
+
}>;
|
|
318
|
+
}> & {
|
|
319
|
+
type: "session.deleted";
|
|
320
|
+
durability: "durable";
|
|
321
|
+
durable: {
|
|
322
|
+
readonly version: number;
|
|
323
|
+
readonly aggregate: string;
|
|
324
|
+
};
|
|
325
|
+
data: Schema.Struct<{
|
|
326
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
327
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
328
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
329
|
+
};
|
|
330
|
+
}>;
|
|
331
|
+
};
|
|
332
|
+
export type Deleted = typeof Deleted.Type;
|
|
281
333
|
export declare const Forked: Schema.Struct<{
|
|
282
334
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
283
335
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -3207,6 +3259,56 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
3207
3259
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
3208
3260
|
};
|
|
3209
3261
|
}>;
|
|
3262
|
+
}, Schema.Struct<{
|
|
3263
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
3264
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
3265
|
+
};
|
|
3266
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
3267
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
3268
|
+
readonly type: Schema.Literal<"session.deleted">;
|
|
3269
|
+
readonly durable: Schema.Struct<{
|
|
3270
|
+
readonly aggregateID: Schema.String;
|
|
3271
|
+
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
3272
|
+
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
3273
|
+
}>;
|
|
3274
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
3275
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
3276
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
3277
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
3278
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
3279
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
3280
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
3281
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
3282
|
+
}>, never, never>;
|
|
3283
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
3284
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
3285
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
3286
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
3287
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
3288
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
3289
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
3290
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
3291
|
+
}>, never, never>;
|
|
3292
|
+
}>>, never, never>;
|
|
3293
|
+
readonly data: Schema.Struct<{
|
|
3294
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
3295
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
3296
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
3297
|
+
};
|
|
3298
|
+
}>;
|
|
3299
|
+
}> & {
|
|
3300
|
+
type: "session.deleted";
|
|
3301
|
+
durability: "durable";
|
|
3302
|
+
durable: {
|
|
3303
|
+
readonly version: number;
|
|
3304
|
+
readonly aggregate: string;
|
|
3305
|
+
};
|
|
3306
|
+
data: Schema.Struct<{
|
|
3307
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
3308
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
3309
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
3310
|
+
};
|
|
3311
|
+
}>;
|
|
3210
3312
|
}, Schema.Struct<{
|
|
3211
3313
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
3212
3314
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -6046,6 +6148,56 @@ export declare const DurableDefinitions: readonly ((Schema.Struct<{
|
|
|
6046
6148
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
6047
6149
|
};
|
|
6048
6150
|
}>;
|
|
6151
|
+
}) | (Schema.Struct<{
|
|
6152
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
6153
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
6154
|
+
};
|
|
6155
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
6156
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
6157
|
+
readonly type: Schema.Literal<"session.deleted">;
|
|
6158
|
+
readonly durable: Schema.Struct<{
|
|
6159
|
+
readonly aggregateID: Schema.String;
|
|
6160
|
+
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
6161
|
+
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
6162
|
+
}>;
|
|
6163
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
6164
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
6165
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
6166
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
6167
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
6168
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
6169
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
6170
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
6171
|
+
}>, never, never>;
|
|
6172
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
6173
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
6174
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
6175
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
6176
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
6177
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
6178
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
6179
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
6180
|
+
}>, never, never>;
|
|
6181
|
+
}>>, never, never>;
|
|
6182
|
+
readonly data: Schema.Struct<{
|
|
6183
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
6184
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
6185
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
6186
|
+
};
|
|
6187
|
+
}>;
|
|
6188
|
+
}> & {
|
|
6189
|
+
type: "session.deleted";
|
|
6190
|
+
durability: "durable";
|
|
6191
|
+
durable: {
|
|
6192
|
+
readonly version: number;
|
|
6193
|
+
readonly aggregate: string;
|
|
6194
|
+
};
|
|
6195
|
+
data: Schema.Struct<{
|
|
6196
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
6197
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
6198
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
6199
|
+
};
|
|
6200
|
+
}>;
|
|
6049
6201
|
}) | (Schema.Struct<{
|
|
6050
6202
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
6051
6203
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -8679,6 +8831,56 @@ export declare const Durable: Schema.Union<readonly ((Schema.Struct<{
|
|
|
8679
8831
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
8680
8832
|
};
|
|
8681
8833
|
}>;
|
|
8834
|
+
}) | (Schema.Struct<{
|
|
8835
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
8836
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
8837
|
+
};
|
|
8838
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
8839
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
8840
|
+
readonly type: Schema.Literal<"session.deleted">;
|
|
8841
|
+
readonly durable: Schema.Struct<{
|
|
8842
|
+
readonly aggregateID: Schema.String;
|
|
8843
|
+
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
8844
|
+
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
8845
|
+
}>;
|
|
8846
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
8847
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
8848
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
8849
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
8850
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
8851
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
8852
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
8853
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
8854
|
+
}>, never, never>;
|
|
8855
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
8856
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
8857
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
8858
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
8859
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
8860
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
8861
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
8862
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
8863
|
+
}>, never, never>;
|
|
8864
|
+
}>>, never, never>;
|
|
8865
|
+
readonly data: Schema.Struct<{
|
|
8866
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
8867
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
8868
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
8869
|
+
};
|
|
8870
|
+
}>;
|
|
8871
|
+
}> & {
|
|
8872
|
+
type: "session.deleted";
|
|
8873
|
+
durability: "durable";
|
|
8874
|
+
durable: {
|
|
8875
|
+
readonly version: number;
|
|
8876
|
+
readonly aggregate: string;
|
|
8877
|
+
};
|
|
8878
|
+
data: Schema.Struct<{
|
|
8879
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
8880
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
8881
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
8882
|
+
};
|
|
8883
|
+
}>;
|
|
8682
8884
|
}) | (Schema.Struct<{
|
|
8683
8885
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
8684
8886
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -11313,6 +11515,56 @@ export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
|
11313
11515
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
11314
11516
|
};
|
|
11315
11517
|
}>;
|
|
11518
|
+
}, Schema.Struct<{
|
|
11519
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
11520
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
11521
|
+
};
|
|
11522
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
11523
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
11524
|
+
readonly type: Schema.Literal<"session.deleted">;
|
|
11525
|
+
readonly durable: Schema.Struct<{
|
|
11526
|
+
readonly aggregateID: Schema.String;
|
|
11527
|
+
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
11528
|
+
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
11529
|
+
}>;
|
|
11530
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
11531
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
11532
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
11533
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
11534
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
11535
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
11536
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
11537
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
11538
|
+
}>, never, never>;
|
|
11539
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
11540
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
11541
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
11542
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
11543
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
11544
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
11545
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
11546
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
11547
|
+
}>, never, never>;
|
|
11548
|
+
}>>, never, never>;
|
|
11549
|
+
readonly data: Schema.Struct<{
|
|
11550
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
11551
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
11552
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
11553
|
+
};
|
|
11554
|
+
}>;
|
|
11555
|
+
}> & {
|
|
11556
|
+
type: "session.deleted";
|
|
11557
|
+
durability: "durable";
|
|
11558
|
+
durable: {
|
|
11559
|
+
readonly version: number;
|
|
11560
|
+
readonly aggregate: string;
|
|
11561
|
+
};
|
|
11562
|
+
data: Schema.Struct<{
|
|
11563
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
11564
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
11565
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
11566
|
+
};
|
|
11567
|
+
}>;
|
|
11316
11568
|
}, Schema.Struct<{
|
|
11317
11569
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
11318
11570
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
package/dist/session-event.js
CHANGED
|
@@ -70,6 +70,14 @@ export const Renamed = Event.durable({
|
|
|
70
70
|
title: Schema.String,
|
|
71
71
|
},
|
|
72
72
|
});
|
|
73
|
+
export const Deleted = Event.durable({
|
|
74
|
+
type: "session.deleted",
|
|
75
|
+
durable: {
|
|
76
|
+
aggregate: "sessionID",
|
|
77
|
+
version: 2,
|
|
78
|
+
},
|
|
79
|
+
schema: Base,
|
|
80
|
+
});
|
|
73
81
|
export const Forked = Event.durable({
|
|
74
82
|
type: "session.forked",
|
|
75
83
|
...options,
|
|
@@ -402,7 +410,7 @@ export var RevertEvent;
|
|
|
402
410
|
schema: { ...Base, to: SessionMessage.ID },
|
|
403
411
|
});
|
|
404
412
|
})(RevertEvent || (RevertEvent = {}));
|
|
405
|
-
export const Definitions = Event.inventory(AgentSelected, ModelSelected, Moved, Renamed, Forked, PromptPromoted, PromptAdmitted, Execution.Started, Execution.Succeeded, Execution.Failed, Execution.Interrupted, InstructionsUpdated, Synthetic, Skill.Activated, Shell.Started, Shell.Ended, Step.Started, Step.Ended, Step.Failed, Text.Started, Text.Delta, Text.Ended, Reasoning.Started, Reasoning.Delta, Reasoning.Ended, Tool.Input.Started, Tool.Input.Delta, Tool.Input.Ended, Tool.Called, Tool.Progress, Tool.Success, Tool.Failed, RetryScheduled, Compaction.Started, Compaction.Delta, Compaction.Ended, RevertEvent.Staged, RevertEvent.Cleared, RevertEvent.Committed);
|
|
413
|
+
export const Definitions = Event.inventory(AgentSelected, ModelSelected, Moved, Renamed, Deleted, Forked, PromptPromoted, PromptAdmitted, Execution.Started, Execution.Succeeded, Execution.Failed, Execution.Interrupted, InstructionsUpdated, Synthetic, Skill.Activated, Shell.Started, Shell.Ended, Step.Started, Step.Ended, Step.Failed, Text.Started, Text.Delta, Text.Ended, Reasoning.Started, Reasoning.Delta, Reasoning.Ended, Tool.Input.Started, Tool.Input.Delta, Tool.Input.Ended, Tool.Called, Tool.Progress, Tool.Success, Tool.Failed, RetryScheduled, Compaction.Started, Compaction.Delta, Compaction.Ended, RevertEvent.Staged, RevertEvent.Cleared, RevertEvent.Committed);
|
|
406
414
|
export const DurableDefinitions = Event.inventory(...Definitions.filter((definition) => definition.durability === "durable"));
|
|
407
415
|
export const Durable = Schema.Union(DurableDefinitions, { mode: "oneOf" })
|
|
408
416
|
.pipe(Schema.toTaggedUnion("type"))
|
package/dist/session.d.ts
CHANGED
|
@@ -22,6 +22,31 @@ export declare const Info: Schema.Struct<{
|
|
|
22
22
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
23
23
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
24
24
|
}>, never, never>;
|
|
25
|
+
readonly fork: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
26
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
27
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
28
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
29
|
+
};
|
|
30
|
+
readonly messageID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
31
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
32
|
+
fromEvent: (eventID: import("./event.js").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
33
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
34
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
35
|
+
fromEvent: (eventID: import("./event.js").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
36
|
+
}>, never, never>;
|
|
37
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
38
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
39
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
40
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
41
|
+
};
|
|
42
|
+
readonly messageID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
43
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
44
|
+
fromEvent: (eventID: import("./event.js").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
45
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
46
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
47
|
+
fromEvent: (eventID: import("./event.js").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
48
|
+
}>, never, never>;
|
|
49
|
+
}>>, never, never>;
|
|
25
50
|
readonly projectID: Schema.brand<Schema.String, "Project.ID"> & {
|
|
26
51
|
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
27
52
|
};
|
package/dist/session.js
CHANGED
|
@@ -7,12 +7,17 @@ import { Project } from "./project.js";
|
|
|
7
7
|
import { DateTimeUtcFromMillis, optional, RelativePath } from "./schema.js";
|
|
8
8
|
import { SessionEvent } from "./session-event.js";
|
|
9
9
|
import { SessionID } from "./session-id.js";
|
|
10
|
+
import { SessionMessage } from "./session-message.js";
|
|
10
11
|
import { Revert } from "./revert.js";
|
|
11
12
|
export const ID = SessionID;
|
|
12
13
|
export const Event = SessionEvent;
|
|
13
14
|
export const Info = Schema.Struct({
|
|
14
15
|
id: ID,
|
|
15
16
|
parentID: ID.pipe(optional),
|
|
17
|
+
fork: Schema.Struct({
|
|
18
|
+
sessionID: ID,
|
|
19
|
+
messageID: SessionMessage.ID.pipe(optional),
|
|
20
|
+
}).pipe(optional),
|
|
16
21
|
projectID: Project.ID,
|
|
17
22
|
agent: Agent.ID.pipe(optional),
|
|
18
23
|
model: Model.Ref.pipe(optional),
|
package/dist/shell.d.ts
CHANGED
|
@@ -360,7 +360,7 @@ export declare const Event: {
|
|
|
360
360
|
export declare const CreateInput: Schema.Struct<{
|
|
361
361
|
readonly command: Schema.String;
|
|
362
362
|
readonly cwd: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
363
|
-
readonly timeout: Schema.
|
|
363
|
+
readonly timeout: Schema.Int;
|
|
364
364
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
365
365
|
}>;
|
|
366
366
|
export interface CreateInput extends Schema.Schema.Type<typeof CreateInput> {
|
package/dist/shell.js
CHANGED
|
@@ -41,7 +41,7 @@ export const Event = { Created, Exited, Deleted, Definitions: inventory(Created,
|
|
|
41
41
|
export const CreateInput = Schema.Struct({
|
|
42
42
|
command: Schema.String,
|
|
43
43
|
cwd: optional(Schema.String),
|
|
44
|
-
timeout:
|
|
44
|
+
timeout: NonNegativeInt,
|
|
45
45
|
metadata: optional(Metadata),
|
|
46
46
|
});
|
|
47
47
|
export const OutputInput = Schema.Struct({
|