@opencode-ai/protocol 0.0.0-next-15297 → 0.0.0-next-15303
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 +12 -5
- package/dist/groups/session.d.ts +10 -4
- package/dist/groups/session.js +1 -1
- package/package.json +2 -2
package/dist/groups/event.d.ts
CHANGED
|
@@ -933,6 +933,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
933
933
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
934
934
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
935
935
|
};
|
|
936
|
+
readonly parentSeq: Schema.Int;
|
|
936
937
|
readonly from: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
937
938
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
938
939
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -957,6 +958,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
957
958
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
958
959
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
959
960
|
};
|
|
961
|
+
readonly parentSeq: Schema.Int;
|
|
960
962
|
readonly from: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
961
963
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
962
964
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -1559,7 +1561,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
1559
1561
|
}>, never, never>;
|
|
1560
1562
|
}>>, never, never>;
|
|
1561
1563
|
readonly data: Schema.Struct<{
|
|
1562
|
-
readonly
|
|
1564
|
+
readonly delta: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.brand<Schema.String, "Instruction.Hash">, Schema.Literal<"removed">]>>;
|
|
1563
1565
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
1564
1566
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
1565
1567
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -1573,7 +1575,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
1573
1575
|
readonly aggregate: string;
|
|
1574
1576
|
};
|
|
1575
1577
|
data: Schema.Struct<{
|
|
1576
|
-
readonly
|
|
1578
|
+
readonly delta: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.brand<Schema.String, "Instruction.Hash">, Schema.Literal<"removed">]>>;
|
|
1577
1579
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
1578
1580
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
1579
1581
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -8112,6 +8114,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
8112
8114
|
};
|
|
8113
8115
|
readonly data: {
|
|
8114
8116
|
readonly parentID: string & import("effect/Brand").Brand<"SessionID">;
|
|
8117
|
+
readonly parentSeq: number;
|
|
8115
8118
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
8116
8119
|
readonly from?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
|
|
8117
8120
|
};
|
|
@@ -8298,7 +8301,9 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
8298
8301
|
readonly version: number & import("effect/Brand").Brand<"Event.Version">;
|
|
8299
8302
|
};
|
|
8300
8303
|
readonly data: {
|
|
8301
|
-
readonly
|
|
8304
|
+
readonly delta: {
|
|
8305
|
+
readonly [x: string]: (string & import("effect/Brand").Brand<"Instruction.Hash">) | "removed";
|
|
8306
|
+
};
|
|
8302
8307
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
8303
8308
|
};
|
|
8304
8309
|
readonly metadata?: {
|
|
@@ -11490,6 +11495,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
11490
11495
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
11491
11496
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
11492
11497
|
};
|
|
11498
|
+
readonly parentSeq: Schema.Int;
|
|
11493
11499
|
readonly from: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
11494
11500
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
11495
11501
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -11514,6 +11520,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
11514
11520
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
11515
11521
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
11516
11522
|
};
|
|
11523
|
+
readonly parentSeq: Schema.Int;
|
|
11517
11524
|
readonly from: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
11518
11525
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
11519
11526
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -12116,7 +12123,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
12116
12123
|
}>, never, never>;
|
|
12117
12124
|
}>>, never, never>;
|
|
12118
12125
|
readonly data: Schema.Struct<{
|
|
12119
|
-
readonly
|
|
12126
|
+
readonly delta: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.brand<Schema.String, "Instruction.Hash">, Schema.Literal<"removed">]>>;
|
|
12120
12127
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
12121
12128
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
12122
12129
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -12130,7 +12137,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
12130
12137
|
readonly aggregate: string;
|
|
12131
12138
|
};
|
|
12132
12139
|
data: Schema.Struct<{
|
|
12133
|
-
readonly
|
|
12140
|
+
readonly delta: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.brand<Schema.String, "Instruction.Hash">, Schema.Literal<"removed">]>>;
|
|
12134
12141
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
12135
12142
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
12136
12143
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
package/dist/groups/session.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PromptInput } from "@opencode-ai/schema/prompt-input";
|
|
2
|
+
import { InstructionEntry } from "@opencode-ai/schema/instruction-entry";
|
|
2
3
|
import { Event } from "@opencode-ai/schema/event";
|
|
3
4
|
import { Context, Effect, Schema } from "effect";
|
|
4
5
|
import { HttpApiEndpoint, HttpApiGroup, HttpApiMiddleware, HttpApiSchema } from "effect/unstable/httpapi";
|
|
@@ -2185,7 +2186,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2185
2186
|
key: Schema.String;
|
|
2186
2187
|
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
|
|
2187
2188
|
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2188
|
-
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<HttpApiSchema.NoContent>, HttpApiEndpoint.Json<typeof SessionNotFoundError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.instructions.entry.remove", "DELETE", "/api/session/:sessionID/instructions/entries/:key", HttpApiEndpoint.StringTree<Schema.Struct<{
|
|
2189
|
+
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<HttpApiSchema.NoContent>, HttpApiEndpoint.Json<typeof SessionNotFoundError | typeof InstructionEntry.ValueTooLargeError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.instructions.entry.remove", "DELETE", "/api/session/:sessionID/instructions/entries/:key", HttpApiEndpoint.StringTree<Schema.Struct<{
|
|
2189
2190
|
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
2190
2191
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
2191
2192
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -2557,6 +2558,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2557
2558
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
2558
2559
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
2559
2560
|
};
|
|
2561
|
+
readonly parentSeq: Schema.Int;
|
|
2560
2562
|
readonly from: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
2561
2563
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2562
2564
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -2581,6 +2583,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2581
2583
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
2582
2584
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
2583
2585
|
};
|
|
2586
|
+
readonly parentSeq: Schema.Int;
|
|
2584
2587
|
readonly from: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
2585
2588
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2586
2589
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -3183,7 +3186,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3183
3186
|
}>, never, never>;
|
|
3184
3187
|
}>>, never, never>;
|
|
3185
3188
|
readonly data: Schema.Struct<{
|
|
3186
|
-
readonly
|
|
3189
|
+
readonly delta: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.brand<Schema.String, "Instruction.Hash">, Schema.Literal<"removed">]>>;
|
|
3187
3190
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
3188
3191
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
3189
3192
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -3197,7 +3200,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3197
3200
|
readonly aggregate: string;
|
|
3198
3201
|
};
|
|
3199
3202
|
data: Schema.Struct<{
|
|
3200
|
-
readonly
|
|
3203
|
+
readonly delta: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.brand<Schema.String, "Instruction.Hash">, Schema.Literal<"removed">]>>;
|
|
3201
3204
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
3202
3205
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
3203
3206
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -5131,6 +5134,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
5131
5134
|
};
|
|
5132
5135
|
readonly data: {
|
|
5133
5136
|
readonly parentID: string & import("effect/Brand").Brand<"SessionID">;
|
|
5137
|
+
readonly parentSeq: number;
|
|
5134
5138
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
5135
5139
|
readonly from?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
|
|
5136
5140
|
};
|
|
@@ -5317,7 +5321,9 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
5317
5321
|
readonly version: number & import("effect/Brand").Brand<"Event.Version">;
|
|
5318
5322
|
};
|
|
5319
5323
|
readonly data: {
|
|
5320
|
-
readonly
|
|
5324
|
+
readonly delta: {
|
|
5325
|
+
readonly [x: string]: (string & import("effect/Brand").Brand<"Instruction.Hash">) | "removed";
|
|
5326
|
+
};
|
|
5321
5327
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
5322
5328
|
};
|
|
5323
5329
|
readonly metadata?: {
|
package/dist/groups/session.js
CHANGED
|
@@ -385,7 +385,7 @@ export const makeSessionGroup = (sessionLocationMiddleware) => HttpApiGroup.make
|
|
|
385
385
|
params: { sessionID: Session.ID, key: InstructionEntry.Key },
|
|
386
386
|
payload: Schema.Struct({ value: Schema.Json }),
|
|
387
387
|
success: HttpApiSchema.NoContent,
|
|
388
|
-
error: SessionNotFoundError,
|
|
388
|
+
error: [SessionNotFoundError, InstructionEntry.ValueTooLargeError],
|
|
389
389
|
})
|
|
390
390
|
.middleware(sessionLocationMiddleware)
|
|
391
391
|
.annotateMerge(OpenApi.annotations({
|
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-15303",
|
|
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-15303",
|
|
30
30
|
"effect": "4.0.0-beta.83"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|