@opencode-ai/protocol 0.0.0-next-16211 → 0.0.0-next-16215
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 +13 -12
- package/dist/groups/message.d.ts +1 -0
- package/dist/groups/session.d.ts +13 -12
- package/package.json +2 -2
package/dist/groups/event.d.ts
CHANGED
|
@@ -2349,6 +2349,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
2349
2349
|
};
|
|
2350
2350
|
readonly ordinal: Schema.Int;
|
|
2351
2351
|
readonly text: Schema.String;
|
|
2352
|
+
readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
2352
2353
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
2353
2354
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
2354
2355
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -2368,6 +2369,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
2368
2369
|
};
|
|
2369
2370
|
readonly ordinal: Schema.Int;
|
|
2370
2371
|
readonly text: Schema.String;
|
|
2372
|
+
readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
2371
2373
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
2372
2374
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
2373
2375
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -8757,18 +8759,15 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
8757
8759
|
} | undefined;
|
|
8758
8760
|
} | {
|
|
8759
8761
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
8760
|
-
readonly data:
|
|
8761
|
-
readonly
|
|
8762
|
-
|
|
8763
|
-
|
|
8764
|
-
|
|
8765
|
-
readonly
|
|
8766
|
-
|
|
8767
|
-
|
|
8768
|
-
|
|
8769
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
8770
|
-
};
|
|
8771
|
-
}, "Type">;
|
|
8762
|
+
readonly data: {
|
|
8763
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
8764
|
+
readonly text: string;
|
|
8765
|
+
readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
8766
|
+
readonly ordinal: number;
|
|
8767
|
+
readonly state?: {
|
|
8768
|
+
readonly [x: string]: unknown;
|
|
8769
|
+
} | undefined;
|
|
8770
|
+
};
|
|
8772
8771
|
readonly durable: Schema.Struct.ReadonlySide<{
|
|
8773
8772
|
readonly aggregateID: Schema.String;
|
|
8774
8773
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
@@ -13600,6 +13599,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
13600
13599
|
};
|
|
13601
13600
|
readonly ordinal: Schema.Int;
|
|
13602
13601
|
readonly text: Schema.String;
|
|
13602
|
+
readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
13603
13603
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
13604
13604
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
13605
13605
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -13619,6 +13619,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
13619
13619
|
};
|
|
13620
13620
|
readonly ordinal: Schema.Int;
|
|
13621
13621
|
readonly text: Schema.String;
|
|
13622
|
+
readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
13622
13623
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
13623
13624
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
13624
13625
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
package/dist/groups/message.d.ts
CHANGED
|
@@ -310,6 +310,7 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
|
|
|
310
310
|
readonly content: Schema.$Array<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
311
311
|
readonly type: Schema.tag<"text">;
|
|
312
312
|
readonly text: Schema.String;
|
|
313
|
+
readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
313
314
|
}>, Schema.Struct<{
|
|
314
315
|
readonly type: Schema.tag<"reasoning">;
|
|
315
316
|
readonly text: Schema.String;
|
package/dist/groups/session.d.ts
CHANGED
|
@@ -1864,6 +1864,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1864
1864
|
readonly content: Schema.$Array<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
1865
1865
|
readonly type: Schema.tag<"text">;
|
|
1866
1866
|
readonly text: Schema.String;
|
|
1867
|
+
readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1867
1868
|
}>, Schema.Struct<{
|
|
1868
1869
|
readonly type: Schema.tag<"reasoning">;
|
|
1869
1870
|
readonly text: Schema.String;
|
|
@@ -3959,6 +3960,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3959
3960
|
};
|
|
3960
3961
|
readonly ordinal: Schema.Int;
|
|
3961
3962
|
readonly text: Schema.String;
|
|
3963
|
+
readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
3962
3964
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
3963
3965
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
3964
3966
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -3978,6 +3980,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3978
3980
|
};
|
|
3979
3981
|
readonly ordinal: Schema.Int;
|
|
3980
3982
|
readonly text: Schema.String;
|
|
3983
|
+
readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
3981
3984
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
3982
3985
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
3983
3986
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -5836,18 +5839,15 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
5836
5839
|
} | undefined;
|
|
5837
5840
|
} | {
|
|
5838
5841
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
5839
|
-
readonly data:
|
|
5840
|
-
readonly
|
|
5841
|
-
|
|
5842
|
-
|
|
5843
|
-
|
|
5844
|
-
readonly
|
|
5845
|
-
|
|
5846
|
-
|
|
5847
|
-
|
|
5848
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
5849
|
-
};
|
|
5850
|
-
}, "Type">;
|
|
5842
|
+
readonly data: {
|
|
5843
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
5844
|
+
readonly text: string;
|
|
5845
|
+
readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
5846
|
+
readonly ordinal: number;
|
|
5847
|
+
readonly state?: {
|
|
5848
|
+
readonly [x: string]: unknown;
|
|
5849
|
+
} | undefined;
|
|
5850
|
+
};
|
|
5851
5851
|
readonly durable: Schema.Struct.ReadonlySide<{
|
|
5852
5852
|
readonly aggregateID: Schema.String;
|
|
5853
5853
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
@@ -6628,6 +6628,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
6628
6628
|
readonly content: Schema.$Array<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
6629
6629
|
readonly type: Schema.tag<"text">;
|
|
6630
6630
|
readonly text: Schema.String;
|
|
6631
|
+
readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
6631
6632
|
}>, Schema.Struct<{
|
|
6632
6633
|
readonly type: Schema.tag<"reasoning">;
|
|
6633
6634
|
readonly text: Schema.String;
|
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-16215",
|
|
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-16215",
|
|
30
30
|
"effect": "4.0.0-beta.98"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|