@opencode-ai/protocol 0.0.0-next-15585 → 0.0.0-next-15587
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/event.d.ts +21 -0
- package/dist/groups/session.d.ts +19 -4
- package/dist/groups/session.js +1 -4
- package/package.json +2 -2
package/dist/groups/event.d.ts
CHANGED
|
@@ -699,6 +699,11 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
699
699
|
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
700
700
|
}>, never, never>;
|
|
701
701
|
}>;
|
|
702
|
+
readonly projectID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Project.ID"> & {
|
|
703
|
+
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
704
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Project.ID"> & {
|
|
705
|
+
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
706
|
+
}>, never, never>;
|
|
702
707
|
readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
|
|
703
708
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
704
709
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -723,6 +728,11 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
723
728
|
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
724
729
|
}>, never, never>;
|
|
725
730
|
}>;
|
|
731
|
+
readonly projectID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Project.ID"> & {
|
|
732
|
+
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
733
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Project.ID"> & {
|
|
734
|
+
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
735
|
+
}>, never, never>;
|
|
726
736
|
readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
|
|
727
737
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
728
738
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -8031,6 +8041,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
8031
8041
|
readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
|
|
8032
8042
|
};
|
|
8033
8043
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
8044
|
+
readonly projectID?: (string & import("effect/Brand").Brand<"Project.ID">) | undefined;
|
|
8034
8045
|
readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
|
|
8035
8046
|
};
|
|
8036
8047
|
readonly metadata?: {
|
|
@@ -11261,6 +11272,11 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
11261
11272
|
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
11262
11273
|
}>, never, never>;
|
|
11263
11274
|
}>;
|
|
11275
|
+
readonly projectID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Project.ID"> & {
|
|
11276
|
+
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
11277
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Project.ID"> & {
|
|
11278
|
+
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
11279
|
+
}>, never, never>;
|
|
11264
11280
|
readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
|
|
11265
11281
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
11266
11282
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -11285,6 +11301,11 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
11285
11301
|
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
11286
11302
|
}>, never, never>;
|
|
11287
11303
|
}>;
|
|
11304
|
+
readonly projectID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Project.ID"> & {
|
|
11305
|
+
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
11306
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Project.ID"> & {
|
|
11307
|
+
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
11308
|
+
}>, never, never>;
|
|
11288
11309
|
readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
|
|
11289
11310
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
11290
11311
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
package/dist/groups/session.d.ts
CHANGED
|
@@ -966,10 +966,14 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
966
966
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
967
967
|
};
|
|
968
968
|
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
|
|
969
|
-
readonly
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
969
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
970
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
971
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
972
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
973
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
974
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
975
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
976
|
+
}>, never, never>;
|
|
973
977
|
}>>, 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<{
|
|
974
978
|
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
975
979
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -2390,6 +2394,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2390
2394
|
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
2391
2395
|
}>, never, never>;
|
|
2392
2396
|
}>;
|
|
2397
|
+
readonly projectID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Project.ID"> & {
|
|
2398
|
+
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
2399
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Project.ID"> & {
|
|
2400
|
+
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
2401
|
+
}>, never, never>;
|
|
2393
2402
|
readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
|
|
2394
2403
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
2395
2404
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -2414,6 +2423,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2414
2423
|
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
2415
2424
|
}>, never, never>;
|
|
2416
2425
|
}>;
|
|
2426
|
+
readonly projectID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Project.ID"> & {
|
|
2427
|
+
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
2428
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Project.ID"> & {
|
|
2429
|
+
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
2430
|
+
}>, never, never>;
|
|
2417
2431
|
readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
|
|
2418
2432
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
2419
2433
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -5075,6 +5089,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
5075
5089
|
readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
|
|
5076
5090
|
};
|
|
5077
5091
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
5092
|
+
readonly projectID?: (string & import("effect/Brand").Brand<"Project.ID">) | undefined;
|
|
5078
5093
|
readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
|
|
5079
5094
|
};
|
|
5080
5095
|
readonly metadata?: {
|
package/dist/groups/session.js
CHANGED
|
@@ -196,10 +196,7 @@ export const makeSessionGroup = (sessionLocationMiddleware) => HttpApiGroup.make
|
|
|
196
196
|
})))
|
|
197
197
|
.add(HttpApiEndpoint.post("session.move", "/api/session/:sessionID/move", {
|
|
198
198
|
params: { sessionID: Session.ID },
|
|
199
|
-
payload:
|
|
200
|
-
destination: Schema.Struct({ directory: AbsolutePath }),
|
|
201
|
-
moveChanges: Schema.Boolean.pipe(Schema.optional),
|
|
202
|
-
}),
|
|
199
|
+
payload: Location.Ref,
|
|
203
200
|
success: HttpApiSchema.NoContent,
|
|
204
201
|
error: [SessionNotFoundError, InvalidRequestError],
|
|
205
202
|
})
|
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-15587",
|
|
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-15587",
|
|
30
30
|
"effect": "4.0.0-beta.83"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|