@opencode/protocol 0.0.0-dev-21908 → 0.0.0-dev-21915
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/api.d.ts +2 -2
- package/dist/api.js +2 -2
- package/dist/client.js +1 -0
- package/dist/groups/experimental.d.ts +238 -0
- package/dist/groups/experimental.js +4 -0
- package/dist/groups/media.d.ts +8 -0
- package/dist/groups/media.js +18 -0
- package/dist/groups/message.d.ts +2240 -0
- package/dist/groups/message.js +29 -4
- package/dist/groups/session.d.ts +248 -0
- package/dist/groups/session.js +6 -0
- package/package.json +2 -2
package/dist/groups/message.js
CHANGED
|
@@ -54,16 +54,41 @@ export const PublicSessionMessage = Schema.Union([
|
|
|
54
54
|
SessionMessage.Compaction,
|
|
55
55
|
SessionMessage.Idle,
|
|
56
56
|
]).annotate({ identifier: "Session.Message.Info" });
|
|
57
|
+
/**
|
|
58
|
+
* Experimental: {@link PublicSessionMessage} as sent to clients that opt in with `X-OpenCode-Capabilities:
|
|
59
|
+
* experimental-media-uri` while `experimental.media_blob` is on. User files stored in `blob` stay `media:` refs.
|
|
60
|
+
*/
|
|
61
|
+
export const PublicMediaSessionMessage = Schema.Union([
|
|
62
|
+
SessionMessage.AgentSelected,
|
|
63
|
+
SessionMessage.ModelSelected,
|
|
64
|
+
PublicLocationSwitched,
|
|
65
|
+
SessionMessage.MediaUser,
|
|
66
|
+
SessionMessage.Synthetic,
|
|
67
|
+
SessionMessage.System,
|
|
68
|
+
SessionMessage.Skill,
|
|
69
|
+
SessionMessage.Shell,
|
|
70
|
+
SessionMessage.Assistant,
|
|
71
|
+
SessionMessage.Compaction,
|
|
72
|
+
SessionMessage.Idle,
|
|
73
|
+
]).annotate({ identifier: "Session.Message.MediaInfo" });
|
|
74
|
+
const MessagesCursor = Schema.Struct({
|
|
75
|
+
previous: Schema.String.pipe(Schema.optional),
|
|
76
|
+
next: Schema.String.pipe(Schema.optional),
|
|
77
|
+
});
|
|
78
|
+
/** Experimental: the `session.messages` response for clients that opt into `experimental-media-uri`. */
|
|
79
|
+
export const SessionMediaMessagesResponse = Schema.Struct({
|
|
80
|
+
data: Schema.Array(PublicMediaSessionMessage),
|
|
81
|
+
cursor: MessagesCursor,
|
|
82
|
+
});
|
|
83
|
+
/** Experimental: the `session.message` response for clients that opt into `experimental-media-uri`. */
|
|
84
|
+
export const SessionMediaMessageResponse = Schema.Struct({ data: PublicMediaSessionMessage });
|
|
57
85
|
export const MessageGroup = HttpApiGroup.make("server.message")
|
|
58
86
|
.add(HttpApiEndpoint.get("session.messages", "/api/session/:sessionID/message", {
|
|
59
87
|
params: { sessionID: Session.ID },
|
|
60
88
|
query: SessionMessagesQuery,
|
|
61
89
|
success: Schema.Struct({
|
|
62
90
|
data: Schema.Array(PublicSessionMessage),
|
|
63
|
-
cursor:
|
|
64
|
-
previous: Schema.String.pipe(Schema.optional),
|
|
65
|
-
next: Schema.String.pipe(Schema.optional),
|
|
66
|
-
}),
|
|
91
|
+
cursor: MessagesCursor,
|
|
67
92
|
}).annotate({ identifier: "SessionMessagesResponse" }),
|
|
68
93
|
error: [InvalidCursorError, SessionNotFoundError, UnknownError],
|
|
69
94
|
}).annotateMerge(OpenApi.annotations({
|
package/dist/groups/session.d.ts
CHANGED
|
@@ -3,6 +3,254 @@ import { InstructionEntry } from "@opencode/schema/instruction-entry";
|
|
|
3
3
|
import { Context, Schema } from "effect";
|
|
4
4
|
import { HttpApiEndpoint, HttpApiGroup, HttpApiMiddleware, HttpApiSchema } from "effect/http-api";
|
|
5
5
|
import { ConflictError, LocationNotFoundError, CommandExecutionError, CommandNotFoundError, FormAlreadySettledError, FormInvalidAnswerError, FormNotFoundError, InvalidCursorError, InvalidRequestError, MessageNotFoundError, ServiceUnavailableError, SessionBusyError, SessionNotFoundError, SkillNotFoundError, UnknownError } from "../errors.js";
|
|
6
|
+
/** Experimental: the `session.inbox.list` response for clients that opt into `experimental-media-uri`. */
|
|
7
|
+
export declare const SessionMediaInboxResponse: Schema.Struct<{
|
|
8
|
+
readonly data: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
9
|
+
readonly type: Schema.tag<"user">;
|
|
10
|
+
readonly delivery: Schema.Literals<readonly ["steer", "queue"]>;
|
|
11
|
+
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
12
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
13
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
14
|
+
};
|
|
15
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
16
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
17
|
+
};
|
|
18
|
+
readonly time: Schema.Struct<{
|
|
19
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
20
|
+
}>;
|
|
21
|
+
readonly payload: Schema.Struct<{
|
|
22
|
+
readonly text: Schema.String;
|
|
23
|
+
readonly agents: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
24
|
+
readonly name: Schema.String;
|
|
25
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
26
|
+
readonly start: Schema.Finite;
|
|
27
|
+
readonly end: Schema.Finite;
|
|
28
|
+
readonly text: Schema.String;
|
|
29
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
30
|
+
readonly start: Schema.Finite;
|
|
31
|
+
readonly end: Schema.Finite;
|
|
32
|
+
readonly text: Schema.String;
|
|
33
|
+
}>>, never, never>;
|
|
34
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
35
|
+
readonly name: Schema.String;
|
|
36
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
37
|
+
readonly start: Schema.Finite;
|
|
38
|
+
readonly end: Schema.Finite;
|
|
39
|
+
readonly text: Schema.String;
|
|
40
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
41
|
+
readonly start: Schema.Finite;
|
|
42
|
+
readonly end: Schema.Finite;
|
|
43
|
+
readonly text: Schema.String;
|
|
44
|
+
}>>, never, never>;
|
|
45
|
+
}>>>, never, never>;
|
|
46
|
+
readonly skills: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
47
|
+
readonly id: Schema.brand<Schema.String, "Skill.ID">;
|
|
48
|
+
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
49
|
+
readonly text: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
50
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
51
|
+
readonly start: Schema.Finite;
|
|
52
|
+
readonly end: Schema.Finite;
|
|
53
|
+
readonly text: Schema.String;
|
|
54
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
55
|
+
readonly start: Schema.Finite;
|
|
56
|
+
readonly end: Schema.Finite;
|
|
57
|
+
readonly text: Schema.String;
|
|
58
|
+
}>>, never, never>;
|
|
59
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
60
|
+
readonly id: Schema.brand<Schema.String, "Skill.ID">;
|
|
61
|
+
readonly name: Schema.brand<Schema.String, "Skill.Name">;
|
|
62
|
+
readonly text: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
63
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
64
|
+
readonly start: Schema.Finite;
|
|
65
|
+
readonly end: Schema.Finite;
|
|
66
|
+
readonly text: Schema.String;
|
|
67
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
68
|
+
readonly start: Schema.Finite;
|
|
69
|
+
readonly end: Schema.Finite;
|
|
70
|
+
readonly text: Schema.String;
|
|
71
|
+
}>>, never, never>;
|
|
72
|
+
}>>>, never, never>;
|
|
73
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
74
|
+
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
75
|
+
readonly data: Schema.String;
|
|
76
|
+
readonly mime: Schema.String;
|
|
77
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
78
|
+
readonly type: Schema.Literal<"inline">;
|
|
79
|
+
}>, Schema.Struct<{
|
|
80
|
+
readonly type: Schema.Literal<"uri">;
|
|
81
|
+
readonly uri: Schema.String;
|
|
82
|
+
}>]>;
|
|
83
|
+
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
84
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
85
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
86
|
+
readonly start: Schema.Finite;
|
|
87
|
+
readonly end: Schema.Finite;
|
|
88
|
+
readonly text: Schema.String;
|
|
89
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
90
|
+
readonly start: Schema.Finite;
|
|
91
|
+
readonly end: Schema.Finite;
|
|
92
|
+
readonly text: Schema.String;
|
|
93
|
+
}>>, never, never>;
|
|
94
|
+
}> & {
|
|
95
|
+
create: (input: import("@opencode/schema/prompt").FileAttachment) => {
|
|
96
|
+
readonly data: string;
|
|
97
|
+
readonly mime: string;
|
|
98
|
+
readonly source: {
|
|
99
|
+
readonly type: "inline";
|
|
100
|
+
} | {
|
|
101
|
+
readonly type: "uri";
|
|
102
|
+
readonly uri: string;
|
|
103
|
+
};
|
|
104
|
+
readonly name?: string | undefined;
|
|
105
|
+
readonly description?: string | undefined;
|
|
106
|
+
readonly mention?: {
|
|
107
|
+
readonly start: number;
|
|
108
|
+
readonly end: number;
|
|
109
|
+
readonly text: string;
|
|
110
|
+
} | undefined;
|
|
111
|
+
};
|
|
112
|
+
}, Schema.Struct<{
|
|
113
|
+
readonly mime: Schema.String;
|
|
114
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
115
|
+
readonly type: Schema.Literal<"inline">;
|
|
116
|
+
}>, Schema.Struct<{
|
|
117
|
+
readonly type: Schema.Literal<"uri">;
|
|
118
|
+
readonly uri: Schema.String;
|
|
119
|
+
}>]>;
|
|
120
|
+
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
121
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
122
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
123
|
+
readonly start: Schema.Finite;
|
|
124
|
+
readonly end: Schema.Finite;
|
|
125
|
+
readonly text: Schema.String;
|
|
126
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
127
|
+
readonly start: Schema.Finite;
|
|
128
|
+
readonly end: Schema.Finite;
|
|
129
|
+
readonly text: Schema.String;
|
|
130
|
+
}>>, never, never>;
|
|
131
|
+
readonly uri: Schema.String;
|
|
132
|
+
readonly bytes: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
133
|
+
readonly width: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
134
|
+
readonly height: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
135
|
+
}>]>>>>, Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
136
|
+
readonly data: Schema.String;
|
|
137
|
+
readonly mime: Schema.String;
|
|
138
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
139
|
+
readonly type: Schema.Literal<"inline">;
|
|
140
|
+
}>, Schema.Struct<{
|
|
141
|
+
readonly type: Schema.Literal<"uri">;
|
|
142
|
+
readonly uri: Schema.String;
|
|
143
|
+
}>]>;
|
|
144
|
+
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
145
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
146
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
147
|
+
readonly start: Schema.Finite;
|
|
148
|
+
readonly end: Schema.Finite;
|
|
149
|
+
readonly text: Schema.String;
|
|
150
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
151
|
+
readonly start: Schema.Finite;
|
|
152
|
+
readonly end: Schema.Finite;
|
|
153
|
+
readonly text: Schema.String;
|
|
154
|
+
}>>, never, never>;
|
|
155
|
+
}> & {
|
|
156
|
+
create: (input: import("@opencode/schema/prompt").FileAttachment) => {
|
|
157
|
+
readonly data: string;
|
|
158
|
+
readonly mime: string;
|
|
159
|
+
readonly source: {
|
|
160
|
+
readonly type: "inline";
|
|
161
|
+
} | {
|
|
162
|
+
readonly type: "uri";
|
|
163
|
+
readonly uri: string;
|
|
164
|
+
};
|
|
165
|
+
readonly name?: string | undefined;
|
|
166
|
+
readonly description?: string | undefined;
|
|
167
|
+
readonly mention?: {
|
|
168
|
+
readonly start: number;
|
|
169
|
+
readonly end: number;
|
|
170
|
+
readonly text: string;
|
|
171
|
+
} | undefined;
|
|
172
|
+
};
|
|
173
|
+
}, Schema.Struct<{
|
|
174
|
+
readonly mime: Schema.String;
|
|
175
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
176
|
+
readonly type: Schema.Literal<"inline">;
|
|
177
|
+
}>, Schema.Struct<{
|
|
178
|
+
readonly type: Schema.Literal<"uri">;
|
|
179
|
+
readonly uri: Schema.String;
|
|
180
|
+
}>]>;
|
|
181
|
+
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
182
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
183
|
+
readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
184
|
+
readonly start: Schema.Finite;
|
|
185
|
+
readonly end: Schema.Finite;
|
|
186
|
+
readonly text: Schema.String;
|
|
187
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
188
|
+
readonly start: Schema.Finite;
|
|
189
|
+
readonly end: Schema.Finite;
|
|
190
|
+
readonly text: Schema.String;
|
|
191
|
+
}>>, never, never>;
|
|
192
|
+
readonly uri: Schema.String;
|
|
193
|
+
readonly bytes: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
194
|
+
readonly width: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
195
|
+
readonly height: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
196
|
+
}>]>>>, never, never>;
|
|
197
|
+
}>;
|
|
198
|
+
}>, Schema.Struct<{
|
|
199
|
+
readonly type: Schema.tag<"synthetic">;
|
|
200
|
+
readonly payload: Schema.Struct<{
|
|
201
|
+
readonly text: Schema.String;
|
|
202
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
203
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
204
|
+
}>;
|
|
205
|
+
readonly delivery: Schema.Literals<readonly ["steer", "queue"]>;
|
|
206
|
+
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
207
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
208
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
209
|
+
};
|
|
210
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
211
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
212
|
+
};
|
|
213
|
+
readonly time: Schema.Struct<{
|
|
214
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
215
|
+
}>;
|
|
216
|
+
}>, Schema.Struct<{
|
|
217
|
+
readonly type: Schema.tag<"compaction">;
|
|
218
|
+
readonly payload: Schema.Struct<{}>;
|
|
219
|
+
readonly delivery: Schema.Literals<readonly ["steer", "queue"]>;
|
|
220
|
+
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
221
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
222
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
223
|
+
};
|
|
224
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
225
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
226
|
+
};
|
|
227
|
+
readonly time: Schema.Struct<{
|
|
228
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
229
|
+
}>;
|
|
230
|
+
}>, Schema.Struct<{
|
|
231
|
+
readonly type: Schema.tag<"move">;
|
|
232
|
+
readonly delivery: Schema.Literals<readonly ["steer", "queue"]>;
|
|
233
|
+
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
234
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
235
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
236
|
+
};
|
|
237
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
238
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
239
|
+
};
|
|
240
|
+
readonly time: Schema.Struct<{
|
|
241
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
242
|
+
}>;
|
|
243
|
+
readonly payload: Schema.Struct<{
|
|
244
|
+
readonly projectID: Schema.brand<Schema.String, "Project.ID"> & {
|
|
245
|
+
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
246
|
+
};
|
|
247
|
+
readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
|
|
248
|
+
readonly location: Schema.Struct<{
|
|
249
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
250
|
+
}>;
|
|
251
|
+
}>;
|
|
252
|
+
}>]>>;
|
|
253
|
+
}>;
|
|
6
254
|
export declare const SessionsCursor: Schema.brand<Schema.String, "SessionsCursor"> & {
|
|
7
255
|
make: (input: {
|
|
8
256
|
readonly order?: "asc" | "desc" | undefined;
|
package/dist/groups/session.js
CHANGED
|
@@ -46,6 +46,12 @@ const PublicInboxInfo = Schema.Union([
|
|
|
46
46
|
SessionInbox.Compaction,
|
|
47
47
|
PublicMove,
|
|
48
48
|
]).annotate({ identifier: "Session.Inbox.Info" });
|
|
49
|
+
/** Experimental: the `session.inbox.list` response for clients that opt into `experimental-media-uri`. */
|
|
50
|
+
export const SessionMediaInboxResponse = Schema.Struct({
|
|
51
|
+
data: Schema.Array(Schema.Union([SessionInbox.MediaUser, SessionInbox.Synthetic, SessionInbox.Compaction, PublicMove]).annotate({
|
|
52
|
+
identifier: "Session.Inbox.MediaInfo",
|
|
53
|
+
})),
|
|
54
|
+
});
|
|
49
55
|
// Transcripts exported before v2.1 carry older names for native data. The wire stays plain JSON so any export file
|
|
50
56
|
// is accepted; decoding upgrades those names and then validates the current message shape.
|
|
51
57
|
const ImportedMessages = Schema.Array(Schema.Json).pipe(Schema.decodeTo(Schema.Array(Schema.Unknown), {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@opencode/protocol",
|
|
4
|
-
"version": "0.0.0-dev-
|
|
4
|
+
"version": "0.0.0-dev-21915",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"typecheck:tsc": "tsc --noEmit"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@opencode/schema": "0.0.0-dev-
|
|
37
|
+
"@opencode/schema": "0.0.0-dev-21915",
|
|
38
38
|
"effect": "4.0.1"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|