@opencode-ai/protocol 0.0.0-next-15061 → 0.0.0-next-15066
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/client.d.ts +1 -0
- package/dist/client.js +1 -0
- package/dist/groups/debug.d.ts +7 -2
- package/dist/groups/debug.js +12 -1
- package/package.json +2 -2
package/dist/client.d.ts
CHANGED
|
@@ -53,6 +53,7 @@ export declare const groupNames: {
|
|
|
53
53
|
readonly "server.vcs": "vcs";
|
|
54
54
|
};
|
|
55
55
|
export declare const endpointNames: {
|
|
56
|
+
readonly "debug.location.evict": "evictLocation";
|
|
56
57
|
readonly "session.messages": "list";
|
|
57
58
|
readonly "integration.connect.key": "connectKey";
|
|
58
59
|
readonly "integration.connect.oauth": "connectOauth";
|
package/dist/client.js
CHANGED
package/dist/groups/debug.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
|
-
import { HttpApiEndpoint, HttpApiGroup } from "effect/unstable/httpapi";
|
|
2
|
+
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema } from "effect/unstable/httpapi";
|
|
3
3
|
export declare const DebugGroup: HttpApiGroup.HttpApiGroup<"server.debug", HttpApiEndpoint.HttpApiEndpoint<"debug.location", "GET", "/api/debug/location", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.$Array<Schema.Struct<{
|
|
4
4
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
5
5
|
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
@@ -9,4 +9,9 @@ export declare const DebugGroup: HttpApiGroup.HttpApiGroup<"server.debug", HttpA
|
|
|
9
9
|
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
10
10
|
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
11
11
|
}>, never, never>;
|
|
12
|
-
}>>>, HttpApiEndpoint.Json<never>, never, never>,
|
|
12
|
+
}>>>, HttpApiEndpoint.Json<never>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"debug.location.evict", "DELETE", "/api/debug/location", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{
|
|
13
|
+
readonly location: Schema.optional<Schema.Struct<{
|
|
14
|
+
readonly directory: Schema.optional<Schema.String>;
|
|
15
|
+
readonly workspace: Schema.optional<Schema.String>;
|
|
16
|
+
}>>;
|
|
17
|
+
}>>, HttpApiEndpoint.Json<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<HttpApiSchema.NoContent>, HttpApiEndpoint.Json<never>, never, never>, false>;
|
package/dist/groups/debug.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Location } from "@opencode-ai/schema/location";
|
|
2
2
|
import { Schema } from "effect";
|
|
3
|
-
import { HttpApiEndpoint, HttpApiGroup, OpenApi } from "effect/unstable/httpapi";
|
|
3
|
+
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/unstable/httpapi";
|
|
4
|
+
import { LocationQuery, locationQueryOpenApi } from "./location.js";
|
|
4
5
|
export const DebugGroup = HttpApiGroup.make("server.debug")
|
|
5
6
|
.add(HttpApiEndpoint.get("debug.location", "/api/debug/location", {
|
|
6
7
|
success: Schema.Array(Location.Ref),
|
|
@@ -8,5 +9,15 @@ export const DebugGroup = HttpApiGroup.make("server.debug")
|
|
|
8
9
|
identifier: "v2.debug.location",
|
|
9
10
|
summary: "List loaded locations",
|
|
10
11
|
description: "List locations currently loaded by the server.",
|
|
12
|
+
})))
|
|
13
|
+
.add(HttpApiEndpoint.delete("debug.location.evict", "/api/debug/location", {
|
|
14
|
+
query: LocationQuery,
|
|
15
|
+
success: HttpApiSchema.NoContent,
|
|
16
|
+
})
|
|
17
|
+
.annotateMerge(locationQueryOpenApi)
|
|
18
|
+
.annotateMerge(OpenApi.annotations({
|
|
19
|
+
identifier: "v2.debug.location.evict",
|
|
20
|
+
summary: "Evict a loaded location",
|
|
21
|
+
description: "Dispose the requested location's cached services so its next use boots them fresh.",
|
|
11
22
|
})))
|
|
12
23
|
.annotateMerge(OpenApi.annotations({ title: "debug" }));
|
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-15066",
|
|
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-15066",
|
|
30
30
|
"effect": "4.0.0-beta.83"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|