@opencode-ai/protocol 0.0.0-next-16024 → 0.0.0-next-16027
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/groups/event.d.ts +96 -25
- package/dist/groups/session.d.ts +55 -116
- package/package.json +2 -2
package/dist/groups/event.d.ts
CHANGED
|
@@ -2804,11 +2804,6 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
2804
2804
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
2805
2805
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
2806
2806
|
readonly type: Schema.Literal<"session.tool.progress">;
|
|
2807
|
-
readonly durable: Schema.Struct<{
|
|
2808
|
-
readonly aggregateID: Schema.String;
|
|
2809
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
2810
|
-
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
2811
|
-
}>;
|
|
2812
2807
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2813
2808
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
2814
2809
|
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
@@ -2851,11 +2846,8 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
2851
2846
|
}>;
|
|
2852
2847
|
}> & {
|
|
2853
2848
|
type: "session.tool.progress";
|
|
2854
|
-
durability: "
|
|
2855
|
-
durable:
|
|
2856
|
-
readonly version: number;
|
|
2857
|
-
readonly aggregate: string;
|
|
2858
|
-
};
|
|
2849
|
+
durability: "ephemeral";
|
|
2850
|
+
durable: undefined;
|
|
2859
2851
|
data: Schema.Struct<{
|
|
2860
2852
|
readonly structured: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
2861
2853
|
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
@@ -2999,6 +2991,24 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
2999
2991
|
readonly type: Schema.String;
|
|
3000
2992
|
readonly message: Schema.String;
|
|
3001
2993
|
}>;
|
|
2994
|
+
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
2995
|
+
readonly type: Schema.Literal<"text">;
|
|
2996
|
+
readonly text: Schema.String;
|
|
2997
|
+
}>, Schema.Struct<{
|
|
2998
|
+
readonly type: Schema.Literal<"file">;
|
|
2999
|
+
readonly uri: Schema.String;
|
|
3000
|
+
readonly mime: Schema.String;
|
|
3001
|
+
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
3002
|
+
}>]>>>>, Schema.optionalKey<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
3003
|
+
readonly type: Schema.Literal<"text">;
|
|
3004
|
+
readonly text: Schema.String;
|
|
3005
|
+
}>, Schema.Struct<{
|
|
3006
|
+
readonly type: Schema.Literal<"file">;
|
|
3007
|
+
readonly uri: Schema.String;
|
|
3008
|
+
readonly mime: Schema.String;
|
|
3009
|
+
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
3010
|
+
}>]>>>, never, never>;
|
|
3011
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
3002
3012
|
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
3003
3013
|
readonly executed: Schema.Boolean;
|
|
3004
3014
|
readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
@@ -3024,6 +3034,24 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
3024
3034
|
readonly type: Schema.String;
|
|
3025
3035
|
readonly message: Schema.String;
|
|
3026
3036
|
}>;
|
|
3037
|
+
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
3038
|
+
readonly type: Schema.Literal<"text">;
|
|
3039
|
+
readonly text: Schema.String;
|
|
3040
|
+
}>, Schema.Struct<{
|
|
3041
|
+
readonly type: Schema.Literal<"file">;
|
|
3042
|
+
readonly uri: Schema.String;
|
|
3043
|
+
readonly mime: Schema.String;
|
|
3044
|
+
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
3045
|
+
}>]>>>>, Schema.optionalKey<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
3046
|
+
readonly type: Schema.Literal<"text">;
|
|
3047
|
+
readonly text: Schema.String;
|
|
3048
|
+
}>, Schema.Struct<{
|
|
3049
|
+
readonly type: Schema.Literal<"file">;
|
|
3050
|
+
readonly uri: Schema.String;
|
|
3051
|
+
readonly mime: Schema.String;
|
|
3052
|
+
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
3053
|
+
}>]>>>, never, never>;
|
|
3054
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
3027
3055
|
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
3028
3056
|
readonly executed: Schema.Boolean;
|
|
3029
3057
|
readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
@@ -8979,11 +9007,6 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
8979
9007
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
8980
9008
|
};
|
|
8981
9009
|
}, "Type">;
|
|
8982
|
-
readonly durable: Schema.Struct.ReadonlySide<{
|
|
8983
|
-
readonly aggregateID: Schema.String;
|
|
8984
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
8985
|
-
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
8986
|
-
}, "Type">;
|
|
8987
9010
|
readonly type: "session.tool.progress";
|
|
8988
9011
|
readonly created: import("effect/DateTime").Utc;
|
|
8989
9012
|
readonly location?: {
|
|
@@ -9042,6 +9065,26 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
9042
9065
|
readonly callID: string;
|
|
9043
9066
|
readonly executed: boolean;
|
|
9044
9067
|
readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
9068
|
+
readonly metadata?: {
|
|
9069
|
+
readonly [x: string]: unknown;
|
|
9070
|
+
} | undefined;
|
|
9071
|
+
readonly content?: readonly [Schema.Struct.ReadonlySide<{
|
|
9072
|
+
readonly type: Schema.Literal<"text">;
|
|
9073
|
+
readonly text: Schema.String;
|
|
9074
|
+
}, "Type"> | {
|
|
9075
|
+
readonly type: "file";
|
|
9076
|
+
readonly uri: string;
|
|
9077
|
+
readonly mime: string;
|
|
9078
|
+
readonly name?: string | undefined;
|
|
9079
|
+
}, ...(Schema.Struct.ReadonlySide<{
|
|
9080
|
+
readonly type: Schema.Literal<"text">;
|
|
9081
|
+
readonly text: Schema.String;
|
|
9082
|
+
}, "Type"> | {
|
|
9083
|
+
readonly type: "file";
|
|
9084
|
+
readonly uri: string;
|
|
9085
|
+
readonly mime: string;
|
|
9086
|
+
readonly name?: string | undefined;
|
|
9087
|
+
})[]] | undefined;
|
|
9045
9088
|
readonly result?: unknown;
|
|
9046
9089
|
readonly resultState?: {
|
|
9047
9090
|
readonly [x: string]: unknown;
|
|
@@ -14037,11 +14080,6 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
14037
14080
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
14038
14081
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
14039
14082
|
readonly type: Schema.Literal<"session.tool.progress">;
|
|
14040
|
-
readonly durable: Schema.Struct<{
|
|
14041
|
-
readonly aggregateID: Schema.String;
|
|
14042
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
14043
|
-
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
14044
|
-
}>;
|
|
14045
14083
|
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
14046
14084
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
14047
14085
|
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
@@ -14084,11 +14122,8 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
14084
14122
|
}>;
|
|
14085
14123
|
}> & {
|
|
14086
14124
|
type: "session.tool.progress";
|
|
14087
|
-
durability: "
|
|
14088
|
-
durable:
|
|
14089
|
-
readonly version: number;
|
|
14090
|
-
readonly aggregate: string;
|
|
14091
|
-
};
|
|
14125
|
+
durability: "ephemeral";
|
|
14126
|
+
durable: undefined;
|
|
14092
14127
|
data: Schema.Struct<{
|
|
14093
14128
|
readonly structured: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
14094
14129
|
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
@@ -14232,6 +14267,24 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
14232
14267
|
readonly type: Schema.String;
|
|
14233
14268
|
readonly message: Schema.String;
|
|
14234
14269
|
}>;
|
|
14270
|
+
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
14271
|
+
readonly type: Schema.Literal<"text">;
|
|
14272
|
+
readonly text: Schema.String;
|
|
14273
|
+
}>, Schema.Struct<{
|
|
14274
|
+
readonly type: Schema.Literal<"file">;
|
|
14275
|
+
readonly uri: Schema.String;
|
|
14276
|
+
readonly mime: Schema.String;
|
|
14277
|
+
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
14278
|
+
}>]>>>>, Schema.optionalKey<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
14279
|
+
readonly type: Schema.Literal<"text">;
|
|
14280
|
+
readonly text: Schema.String;
|
|
14281
|
+
}>, Schema.Struct<{
|
|
14282
|
+
readonly type: Schema.Literal<"file">;
|
|
14283
|
+
readonly uri: Schema.String;
|
|
14284
|
+
readonly mime: Schema.String;
|
|
14285
|
+
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
14286
|
+
}>]>>>, never, never>;
|
|
14287
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
14235
14288
|
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
14236
14289
|
readonly executed: Schema.Boolean;
|
|
14237
14290
|
readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
@@ -14257,6 +14310,24 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
14257
14310
|
readonly type: Schema.String;
|
|
14258
14311
|
readonly message: Schema.String;
|
|
14259
14312
|
}>;
|
|
14313
|
+
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
14314
|
+
readonly type: Schema.Literal<"text">;
|
|
14315
|
+
readonly text: Schema.String;
|
|
14316
|
+
}>, Schema.Struct<{
|
|
14317
|
+
readonly type: Schema.Literal<"file">;
|
|
14318
|
+
readonly uri: Schema.String;
|
|
14319
|
+
readonly mime: Schema.String;
|
|
14320
|
+
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
14321
|
+
}>]>>>>, Schema.optionalKey<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
14322
|
+
readonly type: Schema.Literal<"text">;
|
|
14323
|
+
readonly text: Schema.String;
|
|
14324
|
+
}>, Schema.Struct<{
|
|
14325
|
+
readonly type: Schema.Literal<"file">;
|
|
14326
|
+
readonly uri: Schema.String;
|
|
14327
|
+
readonly mime: Schema.String;
|
|
14328
|
+
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
14329
|
+
}>]>>>, never, never>;
|
|
14330
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
14260
14331
|
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
14261
14332
|
readonly executed: Schema.Boolean;
|
|
14262
14333
|
readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
package/dist/groups/session.d.ts
CHANGED
|
@@ -4308,7 +4308,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4308
4308
|
};
|
|
4309
4309
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
4310
4310
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
4311
|
-
readonly type: Schema.Literal<"session.tool.
|
|
4311
|
+
readonly type: Schema.Literal<"session.tool.success">;
|
|
4312
4312
|
readonly durable: Schema.Struct<{
|
|
4313
4313
|
readonly aggregateID: Schema.String;
|
|
4314
4314
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
@@ -4344,6 +4344,9 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4344
4344
|
readonly mime: Schema.String;
|
|
4345
4345
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4346
4346
|
}>]>>;
|
|
4347
|
+
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
4348
|
+
readonly executed: Schema.Boolean;
|
|
4349
|
+
readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
4347
4350
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
4348
4351
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4349
4352
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -4355,7 +4358,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4355
4358
|
};
|
|
4356
4359
|
}>;
|
|
4357
4360
|
}> & {
|
|
4358
|
-
type: "session.tool.
|
|
4361
|
+
type: "session.tool.success";
|
|
4359
4362
|
durability: "durable";
|
|
4360
4363
|
durable: {
|
|
4361
4364
|
readonly version: number;
|
|
@@ -4372,6 +4375,9 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4372
4375
|
readonly mime: Schema.String;
|
|
4373
4376
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4374
4377
|
}>]>>;
|
|
4378
|
+
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
4379
|
+
readonly executed: Schema.Boolean;
|
|
4380
|
+
readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
4375
4381
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
4376
4382
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4377
4383
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -4388,7 +4394,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4388
4394
|
};
|
|
4389
4395
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
4390
4396
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
4391
|
-
readonly type: Schema.Literal<"session.tool.
|
|
4397
|
+
readonly type: Schema.Literal<"session.tool.failed">;
|
|
4392
4398
|
readonly durable: Schema.Struct<{
|
|
4393
4399
|
readonly aggregateID: Schema.String;
|
|
4394
4400
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
@@ -4414,8 +4420,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4414
4420
|
}>, never, never>;
|
|
4415
4421
|
}>>, never, never>;
|
|
4416
4422
|
readonly data: Schema.Struct<{
|
|
4417
|
-
readonly
|
|
4418
|
-
|
|
4423
|
+
readonly error: Schema.Struct<{
|
|
4424
|
+
readonly type: Schema.String;
|
|
4425
|
+
readonly message: Schema.String;
|
|
4426
|
+
}>;
|
|
4427
|
+
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
4419
4428
|
readonly type: Schema.Literal<"text">;
|
|
4420
4429
|
readonly text: Schema.String;
|
|
4421
4430
|
}>, Schema.Struct<{
|
|
@@ -4423,30 +4432,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4423
4432
|
readonly uri: Schema.String;
|
|
4424
4433
|
readonly mime: Schema.String;
|
|
4425
4434
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4426
|
-
}>]
|
|
4427
|
-
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
4428
|
-
readonly executed: Schema.Boolean;
|
|
4429
|
-
readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
4430
|
-
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
4431
|
-
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4432
|
-
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4433
|
-
};
|
|
4434
|
-
readonly callID: Schema.String;
|
|
4435
|
-
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
4436
|
-
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
4437
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
4438
|
-
};
|
|
4439
|
-
}>;
|
|
4440
|
-
}> & {
|
|
4441
|
-
type: "session.tool.success";
|
|
4442
|
-
durability: "durable";
|
|
4443
|
-
durable: {
|
|
4444
|
-
readonly version: number;
|
|
4445
|
-
readonly aggregate: string;
|
|
4446
|
-
};
|
|
4447
|
-
data: Schema.Struct<{
|
|
4448
|
-
readonly structured: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
4449
|
-
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
4435
|
+
}>]>>>>, Schema.optionalKey<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
4450
4436
|
readonly type: Schema.Literal<"text">;
|
|
4451
4437
|
readonly text: Schema.String;
|
|
4452
4438
|
}>, Schema.Struct<{
|
|
@@ -4454,56 +4440,8 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4454
4440
|
readonly uri: Schema.String;
|
|
4455
4441
|
readonly mime: Schema.String;
|
|
4456
4442
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4457
|
-
}>]
|
|
4458
|
-
readonly
|
|
4459
|
-
readonly executed: Schema.Boolean;
|
|
4460
|
-
readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
4461
|
-
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
4462
|
-
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4463
|
-
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4464
|
-
};
|
|
4465
|
-
readonly callID: Schema.String;
|
|
4466
|
-
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
4467
|
-
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
4468
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
4469
|
-
};
|
|
4470
|
-
}>;
|
|
4471
|
-
}) | (Schema.Struct<{
|
|
4472
|
-
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
4473
|
-
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
4474
|
-
};
|
|
4475
|
-
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
4476
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
4477
|
-
readonly type: Schema.Literal<"session.tool.failed">;
|
|
4478
|
-
readonly durable: Schema.Struct<{
|
|
4479
|
-
readonly aggregateID: Schema.String;
|
|
4480
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
4481
|
-
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
4482
|
-
}>;
|
|
4483
|
-
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
4484
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
4485
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
4486
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
4487
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
4488
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
4489
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
4490
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
4491
|
-
}>, never, never>;
|
|
4492
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
4493
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
4494
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
4495
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
4496
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
4497
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
4498
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
4499
|
-
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
4500
|
-
}>, never, never>;
|
|
4501
|
-
}>>, never, never>;
|
|
4502
|
-
readonly data: Schema.Struct<{
|
|
4503
|
-
readonly error: Schema.Struct<{
|
|
4504
|
-
readonly type: Schema.String;
|
|
4505
|
-
readonly message: Schema.String;
|
|
4506
|
-
}>;
|
|
4443
|
+
}>]>>>, never, never>;
|
|
4444
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
4507
4445
|
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
4508
4446
|
readonly executed: Schema.Boolean;
|
|
4509
4447
|
readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
@@ -4529,6 +4467,24 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4529
4467
|
readonly type: Schema.String;
|
|
4530
4468
|
readonly message: Schema.String;
|
|
4531
4469
|
}>;
|
|
4470
|
+
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
4471
|
+
readonly type: Schema.Literal<"text">;
|
|
4472
|
+
readonly text: Schema.String;
|
|
4473
|
+
}>, Schema.Struct<{
|
|
4474
|
+
readonly type: Schema.Literal<"file">;
|
|
4475
|
+
readonly uri: Schema.String;
|
|
4476
|
+
readonly mime: Schema.String;
|
|
4477
|
+
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4478
|
+
}>]>>>>, Schema.optionalKey<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
4479
|
+
readonly type: Schema.Literal<"text">;
|
|
4480
|
+
readonly text: Schema.String;
|
|
4481
|
+
}>, Schema.Struct<{
|
|
4482
|
+
readonly type: Schema.Literal<"file">;
|
|
4483
|
+
readonly uri: Schema.String;
|
|
4484
|
+
readonly mime: Schema.String;
|
|
4485
|
+
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4486
|
+
}>]>>>, never, never>;
|
|
4487
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
4532
4488
|
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
4533
4489
|
readonly executed: Schema.Boolean;
|
|
4534
4490
|
readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
@@ -6046,43 +6002,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
6046
6002
|
readonly metadata?: {
|
|
6047
6003
|
readonly [x: string]: unknown;
|
|
6048
6004
|
} | undefined;
|
|
6049
|
-
} | {
|
|
6050
|
-
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
6051
|
-
readonly data: Schema.Struct.ReadonlySide<{
|
|
6052
|
-
readonly structured: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
6053
|
-
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
6054
|
-
readonly type: Schema.Literal<"text">;
|
|
6055
|
-
readonly text: Schema.String;
|
|
6056
|
-
}>, Schema.Struct<{
|
|
6057
|
-
readonly type: Schema.Literal<"file">;
|
|
6058
|
-
readonly uri: Schema.String;
|
|
6059
|
-
readonly mime: Schema.String;
|
|
6060
|
-
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
6061
|
-
}>]>>;
|
|
6062
|
-
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
6063
|
-
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
6064
|
-
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
6065
|
-
};
|
|
6066
|
-
readonly callID: Schema.String;
|
|
6067
|
-
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
6068
|
-
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
6069
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
6070
|
-
};
|
|
6071
|
-
}, "Type">;
|
|
6072
|
-
readonly durable: Schema.Struct.ReadonlySide<{
|
|
6073
|
-
readonly aggregateID: Schema.String;
|
|
6074
|
-
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
6075
|
-
readonly version: Schema.decodeTo<Schema.toType<Schema.brand<Schema.Int, "Event.Version">>, Schema.Literal<number>, never, never>;
|
|
6076
|
-
}, "Type">;
|
|
6077
|
-
readonly type: "session.tool.progress";
|
|
6078
|
-
readonly created: import("effect/DateTime").Utc;
|
|
6079
|
-
readonly location?: {
|
|
6080
|
-
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
6081
|
-
readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
|
|
6082
|
-
} | undefined;
|
|
6083
|
-
readonly metadata?: {
|
|
6084
|
-
readonly [x: string]: unknown;
|
|
6085
|
-
} | undefined;
|
|
6086
6005
|
} | {
|
|
6087
6006
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
6088
6007
|
readonly data: {
|
|
@@ -6132,6 +6051,26 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
6132
6051
|
readonly callID: string;
|
|
6133
6052
|
readonly executed: boolean;
|
|
6134
6053
|
readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
6054
|
+
readonly metadata?: {
|
|
6055
|
+
readonly [x: string]: unknown;
|
|
6056
|
+
} | undefined;
|
|
6057
|
+
readonly content?: readonly [Schema.Struct.ReadonlySide<{
|
|
6058
|
+
readonly type: Schema.Literal<"text">;
|
|
6059
|
+
readonly text: Schema.String;
|
|
6060
|
+
}, "Type"> | {
|
|
6061
|
+
readonly type: "file";
|
|
6062
|
+
readonly uri: string;
|
|
6063
|
+
readonly mime: string;
|
|
6064
|
+
readonly name?: string | undefined;
|
|
6065
|
+
}, ...(Schema.Struct.ReadonlySide<{
|
|
6066
|
+
readonly type: Schema.Literal<"text">;
|
|
6067
|
+
readonly text: Schema.String;
|
|
6068
|
+
}, "Type"> | {
|
|
6069
|
+
readonly type: "file";
|
|
6070
|
+
readonly uri: string;
|
|
6071
|
+
readonly mime: string;
|
|
6072
|
+
readonly name?: string | undefined;
|
|
6073
|
+
})[]] | undefined;
|
|
6135
6074
|
readonly result?: unknown;
|
|
6136
6075
|
readonly resultState?: {
|
|
6137
6076
|
readonly [x: string]: unknown;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@opencode-ai/protocol",
|
|
4
|
-
"version": "0.0.0-next-
|
|
4
|
+
"version": "0.0.0-next-16027",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"typecheck": "tsgo --noEmit"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@opencode-ai/schema": "0.0.0-next-
|
|
29
|
+
"@opencode-ai/schema": "0.0.0-next-16027",
|
|
30
30
|
"effect": "4.0.0-beta.98"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|