@opencode-ai/protocol 0.0.0-next-15076 → 0.0.0-next-15078
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 +11 -1
- package/dist/groups/session.js +15 -0
- package/package.json +2 -2
package/dist/groups/session.d.ts
CHANGED
|
@@ -899,7 +899,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
899
899
|
};
|
|
900
900
|
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
|
|
901
901
|
readonly title: Schema.String;
|
|
902
|
-
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<HttpApiSchema.NoContent>, HttpApiEndpoint.Json<typeof SessionNotFoundError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.
|
|
902
|
+
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<HttpApiSchema.NoContent>, HttpApiEndpoint.Json<typeof SessionNotFoundError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.move", "POST", "/api/session/:sessionID/move", HttpApiEndpoint.StringTree<Schema.Struct<{
|
|
903
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
904
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
905
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
906
|
+
};
|
|
907
|
+
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
|
|
908
|
+
readonly destination: Schema.Struct<{
|
|
909
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
910
|
+
}>;
|
|
911
|
+
readonly moveChanges: Schema.optional<Schema.Boolean>;
|
|
912
|
+
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<HttpApiSchema.NoContent>, HttpApiEndpoint.Json<typeof InvalidRequestError | typeof SessionNotFoundError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.prompt", "POST", "/api/session/:sessionID/prompt", HttpApiEndpoint.StringTree<Schema.Struct<{
|
|
903
913
|
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
904
914
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
905
915
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
package/dist/groups/session.js
CHANGED
|
@@ -193,6 +193,21 @@ export const makeSessionGroup = (sessionLocationMiddleware) => HttpApiGroup.make
|
|
|
193
193
|
identifier: "v2.session.rename",
|
|
194
194
|
summary: "Rename session",
|
|
195
195
|
description: "Update the session title.",
|
|
196
|
+
})))
|
|
197
|
+
.add(HttpApiEndpoint.post("session.move", "/api/session/:sessionID/move", {
|
|
198
|
+
params: { sessionID: Session.ID },
|
|
199
|
+
payload: Schema.Struct({
|
|
200
|
+
destination: Schema.Struct({ directory: AbsolutePath }),
|
|
201
|
+
moveChanges: Schema.Boolean.pipe(Schema.optional),
|
|
202
|
+
}),
|
|
203
|
+
success: HttpApiSchema.NoContent,
|
|
204
|
+
error: [SessionNotFoundError, InvalidRequestError],
|
|
205
|
+
})
|
|
206
|
+
.middleware(sessionLocationMiddleware)
|
|
207
|
+
.annotateMerge(OpenApi.annotations({
|
|
208
|
+
identifier: "v2.session.move",
|
|
209
|
+
summary: "Move session",
|
|
210
|
+
description: "Move a session to another project directory, optionally transferring local changes.",
|
|
196
211
|
})))
|
|
197
212
|
.add(HttpApiEndpoint.post("session.prompt", "/api/session/:sessionID/prompt", {
|
|
198
213
|
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-15078",
|
|
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-15078",
|
|
30
30
|
"effect": "4.0.0-beta.83"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|