@opencode/protocol 0.0.0-dev-20348 → 0.0.0-dev-20352
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
|
@@ -473,6 +473,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
|
|
|
473
473
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
474
474
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
475
475
|
}>;
|
|
476
|
+
readonly parentID: Schema.optional<Schema.brand<Schema.String, "SessionID"> & {
|
|
477
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
478
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
479
|
+
}>;
|
|
476
480
|
readonly title: Schema.optional<Schema.String>;
|
|
477
481
|
readonly agent: Schema.optional<Schema.brand<Schema.String, "Agent.ID">>;
|
|
478
482
|
readonly model: Schema.optional<Schema.Struct<{
|
|
@@ -683,7 +687,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, Fo
|
|
|
683
687
|
}>]>;
|
|
684
688
|
}>>, never, never>;
|
|
685
689
|
}>;
|
|
686
|
-
}>>,
|
|
690
|
+
}>>, Schema.toCodecJson<typeof SessionNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.import", "POST", "/api/experimental/session/import", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
687
691
|
readonly location: Schema.optional<Schema.Struct<{
|
|
688
692
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
689
693
|
}>>;
|
package/dist/groups/session.js
CHANGED
|
@@ -153,6 +153,7 @@ export const makeSessionGroup = (sessionLocationMiddleware, formLocationMiddlewa
|
|
|
153
153
|
.add(HttpApiEndpoint.post("session.create", "/api/session", {
|
|
154
154
|
payload: Schema.Struct({
|
|
155
155
|
id: Session.ID.pipe(Schema.optional),
|
|
156
|
+
parentID: Session.ID.pipe(Schema.optional),
|
|
156
157
|
title: Schema.String.pipe(Schema.optional),
|
|
157
158
|
agent: Agent.ID.pipe(Schema.optional),
|
|
158
159
|
model: Model.Ref.pipe(Schema.optional),
|
|
@@ -161,10 +162,11 @@ export const makeSessionGroup = (sessionLocationMiddleware, formLocationMiddlewa
|
|
|
161
162
|
permissions: Permission.Ruleset.pipe(Schema.optional),
|
|
162
163
|
}),
|
|
163
164
|
success: Schema.Struct({ data: PublicSessionInfo }),
|
|
165
|
+
error: SessionNotFoundError,
|
|
164
166
|
}).annotateMerge(OpenApi.annotations({
|
|
165
167
|
identifier: "session.create",
|
|
166
168
|
summary: "Create session",
|
|
167
|
-
description: "Create a session at the requested location.",
|
|
169
|
+
description: "Create a session at the requested location. A parentID creates a linked child session at its parent's location.",
|
|
168
170
|
})))
|
|
169
171
|
.add(HttpApiEndpoint.post("session.import", "/api/experimental/session/import", {
|
|
170
172
|
payload: Schema.Struct({
|
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-20352",
|
|
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/schema": "0.0.0-dev-
|
|
35
|
+
"@opencode/schema": "0.0.0-dev-20352",
|
|
36
36
|
"effect": "4.0.0-rc.112"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|