@opencode-ai/protocol 0.0.0-next-14989 → 0.0.0-next-14994
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/client.d.ts +3 -3
- package/dist/client.js +3 -3
- package/dist/groups/event.d.ts +30 -5
- package/dist/groups/message.d.ts +8 -0
- package/dist/groups/session.d.ts +47 -6
- package/dist/groups/session.js +16 -16
- package/package.json +2 -2
package/dist/client.d.ts
CHANGED
|
@@ -59,9 +59,9 @@ export declare const endpointNames: {
|
|
|
59
59
|
readonly "integration.attempt.status": "attemptStatus";
|
|
60
60
|
readonly "integration.attempt.complete": "attemptComplete";
|
|
61
61
|
readonly "integration.attempt.cancel": "attemptCancel";
|
|
62
|
-
readonly "session.
|
|
63
|
-
readonly "session.
|
|
64
|
-
readonly "session.
|
|
62
|
+
readonly "session.instructions.entry.list": readonly ["instructions", "entry", "list"];
|
|
63
|
+
readonly "session.instructions.entry.put": readonly ["instructions", "entry", "put"];
|
|
64
|
+
readonly "session.instructions.entry.remove": readonly ["instructions", "entry", "remove"];
|
|
65
65
|
readonly "session.revert.stage": "revertStage";
|
|
66
66
|
readonly "session.revert.clear": "revertClear";
|
|
67
67
|
readonly "session.revert.commit": "revertCommit";
|
package/dist/client.js
CHANGED
|
@@ -46,9 +46,9 @@ export const endpointNames = {
|
|
|
46
46
|
"integration.attempt.status": "attemptStatus",
|
|
47
47
|
"integration.attempt.complete": "attemptComplete",
|
|
48
48
|
"integration.attempt.cancel": "attemptCancel",
|
|
49
|
-
"session.
|
|
50
|
-
"session.
|
|
51
|
-
"session.
|
|
49
|
+
"session.instructions.entry.list": ["instructions", "entry", "list"],
|
|
50
|
+
"session.instructions.entry.put": ["instructions", "entry", "put"],
|
|
51
|
+
"session.instructions.entry.remove": ["instructions", "entry", "remove"],
|
|
52
52
|
"session.revert.stage": "revertStage",
|
|
53
53
|
"session.revert.clear": "revertClear",
|
|
54
54
|
"session.revert.commit": "revertCommit",
|
package/dist/groups/event.d.ts
CHANGED
|
@@ -908,6 +908,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
908
908
|
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
909
909
|
readonly uri: Schema.String;
|
|
910
910
|
readonly mime: Schema.String;
|
|
911
|
+
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
911
912
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
912
913
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
913
914
|
readonly source: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
@@ -923,6 +924,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
923
924
|
create: (input: import("@opencode-ai/schema/prompt").FileAttachment) => {
|
|
924
925
|
readonly uri: string;
|
|
925
926
|
readonly mime: string;
|
|
927
|
+
readonly content?: string | undefined;
|
|
926
928
|
readonly name?: string | undefined;
|
|
927
929
|
readonly description?: string | undefined;
|
|
928
930
|
readonly source?: {
|
|
@@ -934,6 +936,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
934
936
|
}>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
935
937
|
readonly uri: Schema.String;
|
|
936
938
|
readonly mime: Schema.String;
|
|
939
|
+
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
937
940
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
938
941
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
939
942
|
readonly source: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
@@ -949,6 +952,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
949
952
|
create: (input: import("@opencode-ai/schema/prompt").FileAttachment) => {
|
|
950
953
|
readonly uri: string;
|
|
951
954
|
readonly mime: string;
|
|
955
|
+
readonly content?: string | undefined;
|
|
952
956
|
readonly name?: string | undefined;
|
|
953
957
|
readonly description?: string | undefined;
|
|
954
958
|
readonly source?: {
|
|
@@ -987,6 +991,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
987
991
|
readonly files?: readonly {
|
|
988
992
|
readonly uri: string;
|
|
989
993
|
readonly mime: string;
|
|
994
|
+
readonly content?: string | undefined;
|
|
990
995
|
readonly name?: string | undefined;
|
|
991
996
|
readonly description?: string | undefined;
|
|
992
997
|
readonly source?: {
|
|
@@ -1009,6 +1014,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
1009
1014
|
readonly files?: readonly {
|
|
1010
1015
|
readonly uri: string;
|
|
1011
1016
|
readonly mime: string;
|
|
1017
|
+
readonly content?: string | undefined;
|
|
1012
1018
|
readonly name?: string | undefined;
|
|
1013
1019
|
readonly description?: string | undefined;
|
|
1014
1020
|
readonly source?: {
|
|
@@ -1050,6 +1056,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
1050
1056
|
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
1051
1057
|
readonly uri: Schema.String;
|
|
1052
1058
|
readonly mime: Schema.String;
|
|
1059
|
+
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1053
1060
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1054
1061
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1055
1062
|
readonly source: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
@@ -1065,6 +1072,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
1065
1072
|
create: (input: import("@opencode-ai/schema/prompt").FileAttachment) => {
|
|
1066
1073
|
readonly uri: string;
|
|
1067
1074
|
readonly mime: string;
|
|
1075
|
+
readonly content?: string | undefined;
|
|
1068
1076
|
readonly name?: string | undefined;
|
|
1069
1077
|
readonly description?: string | undefined;
|
|
1070
1078
|
readonly source?: {
|
|
@@ -1076,6 +1084,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
1076
1084
|
}>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1077
1085
|
readonly uri: Schema.String;
|
|
1078
1086
|
readonly mime: Schema.String;
|
|
1087
|
+
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1079
1088
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1080
1089
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1081
1090
|
readonly source: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
@@ -1091,6 +1100,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
1091
1100
|
create: (input: import("@opencode-ai/schema/prompt").FileAttachment) => {
|
|
1092
1101
|
readonly uri: string;
|
|
1093
1102
|
readonly mime: string;
|
|
1103
|
+
readonly content?: string | undefined;
|
|
1094
1104
|
readonly name?: string | undefined;
|
|
1095
1105
|
readonly description?: string | undefined;
|
|
1096
1106
|
readonly source?: {
|
|
@@ -1129,6 +1139,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
1129
1139
|
readonly files?: readonly {
|
|
1130
1140
|
readonly uri: string;
|
|
1131
1141
|
readonly mime: string;
|
|
1142
|
+
readonly content?: string | undefined;
|
|
1132
1143
|
readonly name?: string | undefined;
|
|
1133
1144
|
readonly description?: string | undefined;
|
|
1134
1145
|
readonly source?: {
|
|
@@ -1151,6 +1162,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
1151
1162
|
readonly files?: readonly {
|
|
1152
1163
|
readonly uri: string;
|
|
1153
1164
|
readonly mime: string;
|
|
1165
|
+
readonly content?: string | undefined;
|
|
1154
1166
|
readonly name?: string | undefined;
|
|
1155
1167
|
readonly description?: string | undefined;
|
|
1156
1168
|
readonly source?: {
|
|
@@ -1239,7 +1251,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
1239
1251
|
};
|
|
1240
1252
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1241
1253
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1242
|
-
readonly type: Schema.Literal<"session.
|
|
1254
|
+
readonly type: Schema.Literal<"session.instructions.updated">;
|
|
1243
1255
|
readonly durable: Schema.Struct<{
|
|
1244
1256
|
readonly aggregateID: Schema.String;
|
|
1245
1257
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
@@ -1272,7 +1284,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
1272
1284
|
};
|
|
1273
1285
|
}>;
|
|
1274
1286
|
}> & {
|
|
1275
|
-
type: "session.
|
|
1287
|
+
type: "session.instructions.updated";
|
|
1276
1288
|
durability: "durable";
|
|
1277
1289
|
durable: {
|
|
1278
1290
|
readonly version: number;
|
|
@@ -7671,6 +7683,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
7671
7683
|
readonly files?: readonly {
|
|
7672
7684
|
readonly uri: string;
|
|
7673
7685
|
readonly mime: string;
|
|
7686
|
+
readonly content?: string | undefined;
|
|
7674
7687
|
readonly name?: string | undefined;
|
|
7675
7688
|
readonly description?: string | undefined;
|
|
7676
7689
|
readonly source?: {
|
|
@@ -7720,7 +7733,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
7720
7733
|
} | {
|
|
7721
7734
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
7722
7735
|
readonly created: import("effect/DateTime").Utc;
|
|
7723
|
-
readonly type: "session.
|
|
7736
|
+
readonly type: "session.instructions.updated";
|
|
7724
7737
|
readonly durable: {
|
|
7725
7738
|
readonly aggregateID: string;
|
|
7726
7739
|
readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
|
|
@@ -10793,6 +10806,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
10793
10806
|
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
10794
10807
|
readonly uri: Schema.String;
|
|
10795
10808
|
readonly mime: Schema.String;
|
|
10809
|
+
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10796
10810
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10797
10811
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10798
10812
|
readonly source: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
@@ -10808,6 +10822,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
10808
10822
|
create: (input: import("@opencode-ai/schema/prompt").FileAttachment) => {
|
|
10809
10823
|
readonly uri: string;
|
|
10810
10824
|
readonly mime: string;
|
|
10825
|
+
readonly content?: string | undefined;
|
|
10811
10826
|
readonly name?: string | undefined;
|
|
10812
10827
|
readonly description?: string | undefined;
|
|
10813
10828
|
readonly source?: {
|
|
@@ -10819,6 +10834,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
10819
10834
|
}>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
10820
10835
|
readonly uri: Schema.String;
|
|
10821
10836
|
readonly mime: Schema.String;
|
|
10837
|
+
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10822
10838
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10823
10839
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10824
10840
|
readonly source: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
@@ -10834,6 +10850,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
10834
10850
|
create: (input: import("@opencode-ai/schema/prompt").FileAttachment) => {
|
|
10835
10851
|
readonly uri: string;
|
|
10836
10852
|
readonly mime: string;
|
|
10853
|
+
readonly content?: string | undefined;
|
|
10837
10854
|
readonly name?: string | undefined;
|
|
10838
10855
|
readonly description?: string | undefined;
|
|
10839
10856
|
readonly source?: {
|
|
@@ -10872,6 +10889,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
10872
10889
|
readonly files?: readonly {
|
|
10873
10890
|
readonly uri: string;
|
|
10874
10891
|
readonly mime: string;
|
|
10892
|
+
readonly content?: string | undefined;
|
|
10875
10893
|
readonly name?: string | undefined;
|
|
10876
10894
|
readonly description?: string | undefined;
|
|
10877
10895
|
readonly source?: {
|
|
@@ -10894,6 +10912,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
10894
10912
|
readonly files?: readonly {
|
|
10895
10913
|
readonly uri: string;
|
|
10896
10914
|
readonly mime: string;
|
|
10915
|
+
readonly content?: string | undefined;
|
|
10897
10916
|
readonly name?: string | undefined;
|
|
10898
10917
|
readonly description?: string | undefined;
|
|
10899
10918
|
readonly source?: {
|
|
@@ -10935,6 +10954,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
10935
10954
|
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
10936
10955
|
readonly uri: Schema.String;
|
|
10937
10956
|
readonly mime: Schema.String;
|
|
10957
|
+
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10938
10958
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10939
10959
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10940
10960
|
readonly source: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
@@ -10950,6 +10970,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
10950
10970
|
create: (input: import("@opencode-ai/schema/prompt").FileAttachment) => {
|
|
10951
10971
|
readonly uri: string;
|
|
10952
10972
|
readonly mime: string;
|
|
10973
|
+
readonly content?: string | undefined;
|
|
10953
10974
|
readonly name?: string | undefined;
|
|
10954
10975
|
readonly description?: string | undefined;
|
|
10955
10976
|
readonly source?: {
|
|
@@ -10961,6 +10982,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
10961
10982
|
}>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
10962
10983
|
readonly uri: Schema.String;
|
|
10963
10984
|
readonly mime: Schema.String;
|
|
10985
|
+
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10964
10986
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10965
10987
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10966
10988
|
readonly source: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
@@ -10976,6 +10998,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
10976
10998
|
create: (input: import("@opencode-ai/schema/prompt").FileAttachment) => {
|
|
10977
10999
|
readonly uri: string;
|
|
10978
11000
|
readonly mime: string;
|
|
11001
|
+
readonly content?: string | undefined;
|
|
10979
11002
|
readonly name?: string | undefined;
|
|
10980
11003
|
readonly description?: string | undefined;
|
|
10981
11004
|
readonly source?: {
|
|
@@ -11014,6 +11037,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
11014
11037
|
readonly files?: readonly {
|
|
11015
11038
|
readonly uri: string;
|
|
11016
11039
|
readonly mime: string;
|
|
11040
|
+
readonly content?: string | undefined;
|
|
11017
11041
|
readonly name?: string | undefined;
|
|
11018
11042
|
readonly description?: string | undefined;
|
|
11019
11043
|
readonly source?: {
|
|
@@ -11036,6 +11060,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
11036
11060
|
readonly files?: readonly {
|
|
11037
11061
|
readonly uri: string;
|
|
11038
11062
|
readonly mime: string;
|
|
11063
|
+
readonly content?: string | undefined;
|
|
11039
11064
|
readonly name?: string | undefined;
|
|
11040
11065
|
readonly description?: string | undefined;
|
|
11041
11066
|
readonly source?: {
|
|
@@ -11124,7 +11149,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
11124
11149
|
};
|
|
11125
11150
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
11126
11151
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
11127
|
-
readonly type: Schema.Literal<"session.
|
|
11152
|
+
readonly type: Schema.Literal<"session.instructions.updated">;
|
|
11128
11153
|
readonly durable: Schema.Struct<{
|
|
11129
11154
|
readonly aggregateID: Schema.String;
|
|
11130
11155
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
@@ -11157,7 +11182,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
11157
11182
|
};
|
|
11158
11183
|
}>;
|
|
11159
11184
|
}> & {
|
|
11160
|
-
type: "session.
|
|
11185
|
+
type: "session.instructions.updated";
|
|
11161
11186
|
durability: "durable";
|
|
11162
11187
|
durable: {
|
|
11163
11188
|
readonly version: number;
|
package/dist/groups/message.d.ts
CHANGED
|
@@ -92,6 +92,7 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
|
|
|
92
92
|
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
93
93
|
readonly uri: Schema.String;
|
|
94
94
|
readonly mime: Schema.String;
|
|
95
|
+
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
95
96
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
96
97
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
97
98
|
readonly source: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
@@ -107,6 +108,7 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
|
|
|
107
108
|
create: (input: import("@opencode-ai/schema/prompt").FileAttachment) => {
|
|
108
109
|
readonly uri: string;
|
|
109
110
|
readonly mime: string;
|
|
111
|
+
readonly content?: string | undefined;
|
|
110
112
|
readonly name?: string | undefined;
|
|
111
113
|
readonly description?: string | undefined;
|
|
112
114
|
readonly source?: {
|
|
@@ -118,6 +120,7 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
|
|
|
118
120
|
}>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
119
121
|
readonly uri: Schema.String;
|
|
120
122
|
readonly mime: Schema.String;
|
|
123
|
+
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
121
124
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
122
125
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
123
126
|
readonly source: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
@@ -133,6 +136,7 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
|
|
|
133
136
|
create: (input: import("@opencode-ai/schema/prompt").FileAttachment) => {
|
|
134
137
|
readonly uri: string;
|
|
135
138
|
readonly mime: string;
|
|
139
|
+
readonly content?: string | undefined;
|
|
136
140
|
readonly name?: string | undefined;
|
|
137
141
|
readonly description?: string | undefined;
|
|
138
142
|
readonly source?: {
|
|
@@ -324,6 +328,7 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
|
|
|
324
328
|
readonly attachments: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
325
329
|
readonly uri: Schema.String;
|
|
326
330
|
readonly mime: Schema.String;
|
|
331
|
+
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
327
332
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
328
333
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
329
334
|
readonly source: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
@@ -339,6 +344,7 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
|
|
|
339
344
|
create: (input: import("@opencode-ai/schema/prompt").FileAttachment) => {
|
|
340
345
|
readonly uri: string;
|
|
341
346
|
readonly mime: string;
|
|
347
|
+
readonly content?: string | undefined;
|
|
342
348
|
readonly name?: string | undefined;
|
|
343
349
|
readonly description?: string | undefined;
|
|
344
350
|
readonly source?: {
|
|
@@ -350,6 +356,7 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
|
|
|
350
356
|
}>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
351
357
|
readonly uri: Schema.String;
|
|
352
358
|
readonly mime: Schema.String;
|
|
359
|
+
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
353
360
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
354
361
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
355
362
|
readonly source: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
@@ -365,6 +372,7 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
|
|
|
365
372
|
create: (input: import("@opencode-ai/schema/prompt").FileAttachment) => {
|
|
366
373
|
readonly uri: string;
|
|
367
374
|
readonly mime: string;
|
|
375
|
+
readonly content?: string | undefined;
|
|
368
376
|
readonly name?: string | undefined;
|
|
369
377
|
readonly description?: string | undefined;
|
|
370
378
|
readonly source?: {
|
package/dist/groups/session.d.ts
CHANGED
|
@@ -897,6 +897,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
897
897
|
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
898
898
|
readonly uri: Schema.String;
|
|
899
899
|
readonly mime: Schema.String;
|
|
900
|
+
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
900
901
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
901
902
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
902
903
|
readonly source: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
@@ -912,6 +913,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
912
913
|
create: (input: SessionEvent.FileAttachment) => {
|
|
913
914
|
readonly uri: string;
|
|
914
915
|
readonly mime: string;
|
|
916
|
+
readonly content?: string | undefined;
|
|
915
917
|
readonly name?: string | undefined;
|
|
916
918
|
readonly description?: string | undefined;
|
|
917
919
|
readonly source?: {
|
|
@@ -923,6 +925,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
923
925
|
}>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
924
926
|
readonly uri: Schema.String;
|
|
925
927
|
readonly mime: Schema.String;
|
|
928
|
+
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
926
929
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
927
930
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
928
931
|
readonly source: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
@@ -938,6 +941,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
938
941
|
create: (input: SessionEvent.FileAttachment) => {
|
|
939
942
|
readonly uri: string;
|
|
940
943
|
readonly mime: string;
|
|
944
|
+
readonly content?: string | undefined;
|
|
941
945
|
readonly name?: string | undefined;
|
|
942
946
|
readonly description?: string | undefined;
|
|
943
947
|
readonly source?: {
|
|
@@ -976,6 +980,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
976
980
|
readonly files?: readonly {
|
|
977
981
|
readonly uri: string;
|
|
978
982
|
readonly mime: string;
|
|
983
|
+
readonly content?: string | undefined;
|
|
979
984
|
readonly name?: string | undefined;
|
|
980
985
|
readonly description?: string | undefined;
|
|
981
986
|
readonly source?: {
|
|
@@ -998,6 +1003,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
998
1003
|
readonly files?: readonly {
|
|
999
1004
|
readonly uri: string;
|
|
1000
1005
|
readonly mime: string;
|
|
1006
|
+
readonly content?: string | undefined;
|
|
1001
1007
|
readonly name?: string | undefined;
|
|
1002
1008
|
readonly description?: string | undefined;
|
|
1003
1009
|
readonly source?: {
|
|
@@ -1140,6 +1146,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1140
1146
|
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
1141
1147
|
readonly uri: Schema.String;
|
|
1142
1148
|
readonly mime: Schema.String;
|
|
1149
|
+
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1143
1150
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1144
1151
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1145
1152
|
readonly source: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
@@ -1155,6 +1162,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1155
1162
|
create: (input: SessionEvent.FileAttachment) => {
|
|
1156
1163
|
readonly uri: string;
|
|
1157
1164
|
readonly mime: string;
|
|
1165
|
+
readonly content?: string | undefined;
|
|
1158
1166
|
readonly name?: string | undefined;
|
|
1159
1167
|
readonly description?: string | undefined;
|
|
1160
1168
|
readonly source?: {
|
|
@@ -1166,6 +1174,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1166
1174
|
}>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1167
1175
|
readonly uri: Schema.String;
|
|
1168
1176
|
readonly mime: Schema.String;
|
|
1177
|
+
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1169
1178
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1170
1179
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1171
1180
|
readonly source: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
@@ -1181,6 +1190,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1181
1190
|
create: (input: SessionEvent.FileAttachment) => {
|
|
1182
1191
|
readonly uri: string;
|
|
1183
1192
|
readonly mime: string;
|
|
1193
|
+
readonly content?: string | undefined;
|
|
1184
1194
|
readonly name?: string | undefined;
|
|
1185
1195
|
readonly description?: string | undefined;
|
|
1186
1196
|
readonly source?: {
|
|
@@ -1219,6 +1229,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1219
1229
|
readonly files?: readonly {
|
|
1220
1230
|
readonly uri: string;
|
|
1221
1231
|
readonly mime: string;
|
|
1232
|
+
readonly content?: string | undefined;
|
|
1222
1233
|
readonly name?: string | undefined;
|
|
1223
1234
|
readonly description?: string | undefined;
|
|
1224
1235
|
readonly source?: {
|
|
@@ -1241,6 +1252,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1241
1252
|
readonly files?: readonly {
|
|
1242
1253
|
readonly uri: string;
|
|
1243
1254
|
readonly mime: string;
|
|
1255
|
+
readonly content?: string | undefined;
|
|
1244
1256
|
readonly name?: string | undefined;
|
|
1245
1257
|
readonly description?: string | undefined;
|
|
1246
1258
|
readonly source?: {
|
|
@@ -1430,6 +1442,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1430
1442
|
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
1431
1443
|
readonly uri: Schema.String;
|
|
1432
1444
|
readonly mime: Schema.String;
|
|
1445
|
+
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1433
1446
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1434
1447
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1435
1448
|
readonly source: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
@@ -1445,6 +1458,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1445
1458
|
create: (input: SessionEvent.FileAttachment) => {
|
|
1446
1459
|
readonly uri: string;
|
|
1447
1460
|
readonly mime: string;
|
|
1461
|
+
readonly content?: string | undefined;
|
|
1448
1462
|
readonly name?: string | undefined;
|
|
1449
1463
|
readonly description?: string | undefined;
|
|
1450
1464
|
readonly source?: {
|
|
@@ -1456,6 +1470,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1456
1470
|
}>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1457
1471
|
readonly uri: Schema.String;
|
|
1458
1472
|
readonly mime: Schema.String;
|
|
1473
|
+
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1459
1474
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1460
1475
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1461
1476
|
readonly source: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
@@ -1471,6 +1486,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1471
1486
|
create: (input: SessionEvent.FileAttachment) => {
|
|
1472
1487
|
readonly uri: string;
|
|
1473
1488
|
readonly mime: string;
|
|
1489
|
+
readonly content?: string | undefined;
|
|
1474
1490
|
readonly name?: string | undefined;
|
|
1475
1491
|
readonly description?: string | undefined;
|
|
1476
1492
|
readonly source?: {
|
|
@@ -1662,6 +1678,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1662
1678
|
readonly attachments: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
1663
1679
|
readonly uri: Schema.String;
|
|
1664
1680
|
readonly mime: Schema.String;
|
|
1681
|
+
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1665
1682
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1666
1683
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1667
1684
|
readonly source: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
@@ -1677,6 +1694,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1677
1694
|
create: (input: SessionEvent.FileAttachment) => {
|
|
1678
1695
|
readonly uri: string;
|
|
1679
1696
|
readonly mime: string;
|
|
1697
|
+
readonly content?: string | undefined;
|
|
1680
1698
|
readonly name?: string | undefined;
|
|
1681
1699
|
readonly description?: string | undefined;
|
|
1682
1700
|
readonly source?: {
|
|
@@ -1688,6 +1706,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1688
1706
|
}>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1689
1707
|
readonly uri: Schema.String;
|
|
1690
1708
|
readonly mime: Schema.String;
|
|
1709
|
+
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1691
1710
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1692
1711
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1693
1712
|
readonly source: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
@@ -1703,6 +1722,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1703
1722
|
create: (input: SessionEvent.FileAttachment) => {
|
|
1704
1723
|
readonly uri: string;
|
|
1705
1724
|
readonly mime: string;
|
|
1725
|
+
readonly content?: string | undefined;
|
|
1706
1726
|
readonly name?: string | undefined;
|
|
1707
1727
|
readonly description?: string | undefined;
|
|
1708
1728
|
readonly source?: {
|
|
@@ -1808,7 +1828,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1808
1828
|
readonly summary: Schema.String;
|
|
1809
1829
|
readonly recent: Schema.String;
|
|
1810
1830
|
}>]>>;
|
|
1811
|
-
}>>, HttpApiEndpoint.Json<typeof UnknownError | typeof SessionNotFoundError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.
|
|
1831
|
+
}>>, HttpApiEndpoint.Json<typeof UnknownError | typeof SessionNotFoundError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.instructions.entry.list", "GET", "/api/session/:sessionID/instructions/entries", HttpApiEndpoint.StringTree<Schema.Struct<{
|
|
1812
1832
|
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
1813
1833
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
1814
1834
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -1818,7 +1838,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1818
1838
|
readonly key: Schema.String;
|
|
1819
1839
|
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1820
1840
|
}>>;
|
|
1821
|
-
}>>, HttpApiEndpoint.Json<typeof SessionNotFoundError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.
|
|
1841
|
+
}>>, HttpApiEndpoint.Json<typeof SessionNotFoundError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.instructions.entry.put", "PUT", "/api/session/:sessionID/instructions/entries/:key", HttpApiEndpoint.StringTree<Schema.Struct<{
|
|
1822
1842
|
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
1823
1843
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
1824
1844
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -1826,7 +1846,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1826
1846
|
key: Schema.String;
|
|
1827
1847
|
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
|
|
1828
1848
|
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1829
|
-
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<HttpApiSchema.NoContent>, HttpApiEndpoint.Json<typeof SessionNotFoundError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.
|
|
1849
|
+
}>>, 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<{
|
|
1830
1850
|
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
1831
1851
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
1832
1852
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -2271,6 +2291,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2271
2291
|
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
2272
2292
|
readonly uri: Schema.String;
|
|
2273
2293
|
readonly mime: Schema.String;
|
|
2294
|
+
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2274
2295
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2275
2296
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2276
2297
|
readonly source: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
@@ -2286,6 +2307,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2286
2307
|
create: (input: SessionEvent.FileAttachment) => {
|
|
2287
2308
|
readonly uri: string;
|
|
2288
2309
|
readonly mime: string;
|
|
2310
|
+
readonly content?: string | undefined;
|
|
2289
2311
|
readonly name?: string | undefined;
|
|
2290
2312
|
readonly description?: string | undefined;
|
|
2291
2313
|
readonly source?: {
|
|
@@ -2297,6 +2319,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2297
2319
|
}>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
2298
2320
|
readonly uri: Schema.String;
|
|
2299
2321
|
readonly mime: Schema.String;
|
|
2322
|
+
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2300
2323
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2301
2324
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2302
2325
|
readonly source: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
@@ -2312,6 +2335,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2312
2335
|
create: (input: SessionEvent.FileAttachment) => {
|
|
2313
2336
|
readonly uri: string;
|
|
2314
2337
|
readonly mime: string;
|
|
2338
|
+
readonly content?: string | undefined;
|
|
2315
2339
|
readonly name?: string | undefined;
|
|
2316
2340
|
readonly description?: string | undefined;
|
|
2317
2341
|
readonly source?: {
|
|
@@ -2350,6 +2374,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2350
2374
|
readonly files?: readonly {
|
|
2351
2375
|
readonly uri: string;
|
|
2352
2376
|
readonly mime: string;
|
|
2377
|
+
readonly content?: string | undefined;
|
|
2353
2378
|
readonly name?: string | undefined;
|
|
2354
2379
|
readonly description?: string | undefined;
|
|
2355
2380
|
readonly source?: {
|
|
@@ -2372,6 +2397,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2372
2397
|
readonly files?: readonly {
|
|
2373
2398
|
readonly uri: string;
|
|
2374
2399
|
readonly mime: string;
|
|
2400
|
+
readonly content?: string | undefined;
|
|
2375
2401
|
readonly name?: string | undefined;
|
|
2376
2402
|
readonly description?: string | undefined;
|
|
2377
2403
|
readonly source?: {
|
|
@@ -2413,6 +2439,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2413
2439
|
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
2414
2440
|
readonly uri: Schema.String;
|
|
2415
2441
|
readonly mime: Schema.String;
|
|
2442
|
+
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2416
2443
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2417
2444
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2418
2445
|
readonly source: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
@@ -2428,6 +2455,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2428
2455
|
create: (input: SessionEvent.FileAttachment) => {
|
|
2429
2456
|
readonly uri: string;
|
|
2430
2457
|
readonly mime: string;
|
|
2458
|
+
readonly content?: string | undefined;
|
|
2431
2459
|
readonly name?: string | undefined;
|
|
2432
2460
|
readonly description?: string | undefined;
|
|
2433
2461
|
readonly source?: {
|
|
@@ -2439,6 +2467,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2439
2467
|
}>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
2440
2468
|
readonly uri: Schema.String;
|
|
2441
2469
|
readonly mime: Schema.String;
|
|
2470
|
+
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2442
2471
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2443
2472
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2444
2473
|
readonly source: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
@@ -2454,6 +2483,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2454
2483
|
create: (input: SessionEvent.FileAttachment) => {
|
|
2455
2484
|
readonly uri: string;
|
|
2456
2485
|
readonly mime: string;
|
|
2486
|
+
readonly content?: string | undefined;
|
|
2457
2487
|
readonly name?: string | undefined;
|
|
2458
2488
|
readonly description?: string | undefined;
|
|
2459
2489
|
readonly source?: {
|
|
@@ -2492,6 +2522,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2492
2522
|
readonly files?: readonly {
|
|
2493
2523
|
readonly uri: string;
|
|
2494
2524
|
readonly mime: string;
|
|
2525
|
+
readonly content?: string | undefined;
|
|
2495
2526
|
readonly name?: string | undefined;
|
|
2496
2527
|
readonly description?: string | undefined;
|
|
2497
2528
|
readonly source?: {
|
|
@@ -2514,6 +2545,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2514
2545
|
readonly files?: readonly {
|
|
2515
2546
|
readonly uri: string;
|
|
2516
2547
|
readonly mime: string;
|
|
2548
|
+
readonly content?: string | undefined;
|
|
2517
2549
|
readonly name?: string | undefined;
|
|
2518
2550
|
readonly description?: string | undefined;
|
|
2519
2551
|
readonly source?: {
|
|
@@ -2544,7 +2576,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2544
2576
|
};
|
|
2545
2577
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
2546
2578
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
2547
|
-
readonly type: Schema.Literal<"session.
|
|
2579
|
+
readonly type: Schema.Literal<"session.instructions.updated">;
|
|
2548
2580
|
readonly durable: Schema.Struct<{
|
|
2549
2581
|
readonly aggregateID: Schema.String;
|
|
2550
2582
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
@@ -2577,7 +2609,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2577
2609
|
};
|
|
2578
2610
|
}>;
|
|
2579
2611
|
}> & {
|
|
2580
|
-
type: "session.
|
|
2612
|
+
type: "session.instructions.updated";
|
|
2581
2613
|
durability: "durable";
|
|
2582
2614
|
durable: {
|
|
2583
2615
|
readonly version: number;
|
|
@@ -4351,6 +4383,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4351
4383
|
readonly files?: readonly {
|
|
4352
4384
|
readonly uri: string;
|
|
4353
4385
|
readonly mime: string;
|
|
4386
|
+
readonly content?: string | undefined;
|
|
4354
4387
|
readonly name?: string | undefined;
|
|
4355
4388
|
readonly description?: string | undefined;
|
|
4356
4389
|
readonly source?: {
|
|
@@ -4381,7 +4414,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4381
4414
|
} | {
|
|
4382
4415
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
4383
4416
|
readonly created: import("effect/DateTime").Utc;
|
|
4384
|
-
readonly type: "session.
|
|
4417
|
+
readonly type: "session.instructions.updated";
|
|
4385
4418
|
readonly durable: {
|
|
4386
4419
|
readonly aggregateID: string;
|
|
4387
4420
|
readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
|
|
@@ -5133,6 +5166,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
5133
5166
|
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
5134
5167
|
readonly uri: Schema.String;
|
|
5135
5168
|
readonly mime: Schema.String;
|
|
5169
|
+
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
5136
5170
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
5137
5171
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
5138
5172
|
readonly source: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
@@ -5148,6 +5182,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
5148
5182
|
create: (input: SessionEvent.FileAttachment) => {
|
|
5149
5183
|
readonly uri: string;
|
|
5150
5184
|
readonly mime: string;
|
|
5185
|
+
readonly content?: string | undefined;
|
|
5151
5186
|
readonly name?: string | undefined;
|
|
5152
5187
|
readonly description?: string | undefined;
|
|
5153
5188
|
readonly source?: {
|
|
@@ -5159,6 +5194,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
5159
5194
|
}>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
5160
5195
|
readonly uri: Schema.String;
|
|
5161
5196
|
readonly mime: Schema.String;
|
|
5197
|
+
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
5162
5198
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
5163
5199
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
5164
5200
|
readonly source: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
@@ -5174,6 +5210,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
5174
5210
|
create: (input: SessionEvent.FileAttachment) => {
|
|
5175
5211
|
readonly uri: string;
|
|
5176
5212
|
readonly mime: string;
|
|
5213
|
+
readonly content?: string | undefined;
|
|
5177
5214
|
readonly name?: string | undefined;
|
|
5178
5215
|
readonly description?: string | undefined;
|
|
5179
5216
|
readonly source?: {
|
|
@@ -5365,6 +5402,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
5365
5402
|
readonly attachments: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
5366
5403
|
readonly uri: Schema.String;
|
|
5367
5404
|
readonly mime: Schema.String;
|
|
5405
|
+
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
5368
5406
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
5369
5407
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
5370
5408
|
readonly source: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
@@ -5380,6 +5418,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
5380
5418
|
create: (input: SessionEvent.FileAttachment) => {
|
|
5381
5419
|
readonly uri: string;
|
|
5382
5420
|
readonly mime: string;
|
|
5421
|
+
readonly content?: string | undefined;
|
|
5383
5422
|
readonly name?: string | undefined;
|
|
5384
5423
|
readonly description?: string | undefined;
|
|
5385
5424
|
readonly source?: {
|
|
@@ -5391,6 +5430,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
5391
5430
|
}>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
5392
5431
|
readonly uri: Schema.String;
|
|
5393
5432
|
readonly mime: Schema.String;
|
|
5433
|
+
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
5394
5434
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
5395
5435
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
5396
5436
|
readonly source: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
@@ -5406,6 +5446,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
5406
5446
|
create: (input: SessionEvent.FileAttachment) => {
|
|
5407
5447
|
readonly uri: string;
|
|
5408
5448
|
readonly mime: string;
|
|
5449
|
+
readonly content?: string | undefined;
|
|
5409
5450
|
readonly name?: string | undefined;
|
|
5410
5451
|
readonly description?: string | undefined;
|
|
5411
5452
|
readonly source?: {
|
package/dist/groups/session.js
CHANGED
|
@@ -2,7 +2,7 @@ import { SessionMessage } from "@opencode-ai/schema/session-message";
|
|
|
2
2
|
import { SessionInput } from "@opencode-ai/schema/session-input";
|
|
3
3
|
import { PromptInput } from "@opencode-ai/schema/prompt-input";
|
|
4
4
|
import { Session } from "@opencode-ai/schema/session";
|
|
5
|
-
import {
|
|
5
|
+
import { InstructionEntry } from "@opencode-ai/schema/instruction-entry";
|
|
6
6
|
import { Project } from "@opencode-ai/schema/project";
|
|
7
7
|
import { AbsolutePath, PositiveInt, RelativePath, statics } from "@opencode-ai/schema/schema";
|
|
8
8
|
import { Event } from "@opencode-ai/schema/event";
|
|
@@ -328,39 +328,39 @@ export const makeSessionGroup = (sessionLocationMiddleware) => HttpApiGroup.make
|
|
|
328
328
|
summary: "Get session context",
|
|
329
329
|
description: "Retrieve the active context messages for a session (all messages after the last compaction).",
|
|
330
330
|
})))
|
|
331
|
-
.add(HttpApiEndpoint.get("session.
|
|
331
|
+
.add(HttpApiEndpoint.get("session.instructions.entry.list", "/api/session/:sessionID/instructions/entries", {
|
|
332
332
|
params: { sessionID: Session.ID },
|
|
333
|
-
success: Schema.Struct({ data: Schema.Array(
|
|
333
|
+
success: Schema.Struct({ data: Schema.Array(InstructionEntry.Info) }),
|
|
334
334
|
error: SessionNotFoundError,
|
|
335
335
|
})
|
|
336
336
|
.middleware(sessionLocationMiddleware)
|
|
337
337
|
.annotateMerge(OpenApi.annotations({
|
|
338
|
-
identifier: "v2.session.
|
|
339
|
-
summary: "List
|
|
340
|
-
description: "List API-managed
|
|
338
|
+
identifier: "v2.session.instructions.entry.list",
|
|
339
|
+
summary: "List instruction entries",
|
|
340
|
+
description: "List API-managed instruction entries attached to the session.",
|
|
341
341
|
})))
|
|
342
|
-
.add(HttpApiEndpoint.put("session.
|
|
343
|
-
params: { sessionID: Session.ID, key:
|
|
342
|
+
.add(HttpApiEndpoint.put("session.instructions.entry.put", "/api/session/:sessionID/instructions/entries/:key", {
|
|
343
|
+
params: { sessionID: Session.ID, key: InstructionEntry.Key },
|
|
344
344
|
payload: Schema.Struct({ value: Schema.Json }),
|
|
345
345
|
success: HttpApiSchema.NoContent,
|
|
346
346
|
error: SessionNotFoundError,
|
|
347
347
|
})
|
|
348
348
|
.middleware(sessionLocationMiddleware)
|
|
349
349
|
.annotateMerge(OpenApi.annotations({
|
|
350
|
-
identifier: "v2.session.
|
|
351
|
-
summary: "Put
|
|
352
|
-
description: "Attach or replace one durable
|
|
350
|
+
identifier: "v2.session.instructions.entry.put",
|
|
351
|
+
summary: "Put instruction entry",
|
|
352
|
+
description: "Attach or replace one durable instruction entry. Changes announce as updates at the next step boundary.",
|
|
353
353
|
})))
|
|
354
|
-
.add(HttpApiEndpoint.delete("session.
|
|
355
|
-
params: { sessionID: Session.ID, key:
|
|
354
|
+
.add(HttpApiEndpoint.delete("session.instructions.entry.remove", "/api/session/:sessionID/instructions/entries/:key", {
|
|
355
|
+
params: { sessionID: Session.ID, key: InstructionEntry.Key },
|
|
356
356
|
success: HttpApiSchema.NoContent,
|
|
357
357
|
error: SessionNotFoundError,
|
|
358
358
|
})
|
|
359
359
|
.middleware(sessionLocationMiddleware)
|
|
360
360
|
.annotateMerge(OpenApi.annotations({
|
|
361
|
-
identifier: "v2.session.
|
|
362
|
-
summary: "Remove
|
|
363
|
-
description: "Remove one
|
|
361
|
+
identifier: "v2.session.instructions.entry.remove",
|
|
362
|
+
summary: "Remove instruction entry",
|
|
363
|
+
description: "Remove one instruction entry; the removal is announced to the model at the next step boundary.",
|
|
364
364
|
})))
|
|
365
365
|
.add(HttpApiEndpoint.get("session.log", "/api/experimental/session/:sessionID/log", {
|
|
366
366
|
params: { sessionID: Session.ID },
|
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-14994",
|
|
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-14994",
|
|
30
30
|
"effect": "4.0.0-beta.83"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|