@opencode-ai/protocol 0.0.0-dev-18392 → 0.0.0-dev-18394
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/session.d.ts
CHANGED
|
@@ -1635,7 +1635,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1635
1635
|
}>>>, never, never>;
|
|
1636
1636
|
}>>, never, never>;
|
|
1637
1637
|
}>;
|
|
1638
|
-
}>>, Schema.toCodecJson<typeof ConflictError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.export", "GET", "/api/session/:sessionID/export", Schema.toCodecStringTree<Schema.Struct<{
|
|
1638
|
+
}>>, Schema.toCodecJson<typeof ConflictError | typeof SessionNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.export", "GET", "/api/session/:sessionID/export", Schema.toCodecStringTree<Schema.Struct<{
|
|
1639
1639
|
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
1640
1640
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
1641
1641
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
package/dist/groups/session.js
CHANGED
|
@@ -141,11 +141,11 @@ export const makeSessionGroup = (sessionLocationMiddleware) => HttpApiGroup.make
|
|
|
141
141
|
location: Location.Ref.pipe(Schema.optional),
|
|
142
142
|
}),
|
|
143
143
|
success: Schema.Struct({ data: Session.Info }),
|
|
144
|
-
error: ConflictError,
|
|
144
|
+
error: [ConflictError, SessionNotFoundError],
|
|
145
145
|
}).annotateMerge(OpenApi.annotations({
|
|
146
146
|
identifier: "v2.session.import",
|
|
147
147
|
summary: "Import session",
|
|
148
|
-
description: "Import a projected session transcript at the requested location.",
|
|
148
|
+
description: "Import a projected session transcript at the requested location. If parentID is supplied, the parent session must already exist; import parents before children.",
|
|
149
149
|
})))
|
|
150
150
|
.add(HttpApiEndpoint.get("session.export", "/api/session/:sessionID/export", {
|
|
151
151
|
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-dev-
|
|
4
|
+
"version": "0.0.0-dev-18394",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"typecheck": "tsgo --noEmit"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@opencode-ai/schema": "0.0.0-dev-
|
|
35
|
+
"@opencode-ai/schema": "0.0.0-dev-18394",
|
|
36
36
|
"effect": "4.0.0-rc.111"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|