@opencode/protocol 0.0.0-dev-19563 → 0.0.0-dev-19565
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/config.d.ts +4 -2
- package/dist/groups/config.js +9 -1
- package/package.json +2 -2
package/dist/groups/config.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Config } from "@opencode/schema/config";
|
|
2
2
|
import { Schema } from "effect";
|
|
3
|
-
import { HttpApiEndpoint, HttpApiGroup } from "effect/unstable/httpapi";
|
|
3
|
+
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema } from "effect/unstable/httpapi";
|
|
4
4
|
export declare const ConfigGroup: HttpApiGroup.HttpApiGroup<"server.config", HttpApiEndpoint.HttpApiEndpoint<"config.get", "GET", "/api/config", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
5
5
|
readonly location: Schema.optional<Schema.Struct<{
|
|
6
6
|
readonly directory: Schema.optional<Schema.String>;
|
|
@@ -9,4 +9,6 @@ export declare const ConfigGroup: HttpApiGroup.HttpApiGroup<"server.config", Htt
|
|
|
9
9
|
readonly path: Schema.String;
|
|
10
10
|
readonly name: Schema.String;
|
|
11
11
|
readonly acceptable: Schema.Boolean;
|
|
12
|
-
}>>>, never, never, never
|
|
12
|
+
}>>>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"config.update", "PATCH", "/api/experimental/config", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
13
|
+
readonly shell: Schema.NullOr<Schema.String>;
|
|
14
|
+
}>>, never, Schema.toCodecJson<HttpApiSchema.NoContent>, never, never, never>, false>;
|
package/dist/groups/config.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Config } from "@opencode/schema/config";
|
|
2
2
|
import { ConfigShell } from "@opencode/schema/config/shell";
|
|
3
3
|
import { Schema } from "effect";
|
|
4
|
-
import { HttpApiEndpoint, HttpApiGroup, OpenApi } from "effect/unstable/httpapi";
|
|
4
|
+
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/unstable/httpapi";
|
|
5
5
|
import { LocationQuery, locationQueryOpenApi } from "./location.js";
|
|
6
6
|
export const ConfigGroup = HttpApiGroup.make("server.config")
|
|
7
7
|
.add(HttpApiEndpoint.get("config.get", "/api/config", {
|
|
@@ -20,5 +20,13 @@ export const ConfigGroup = HttpApiGroup.make("server.config")
|
|
|
20
20
|
identifier: "config.shells",
|
|
21
21
|
summary: "List available shells",
|
|
22
22
|
description: "Return shells available to terminal and agent execution.",
|
|
23
|
+
})))
|
|
24
|
+
.add(HttpApiEndpoint.patch("config.update", "/api/experimental/config", {
|
|
25
|
+
payload: Config.Patch,
|
|
26
|
+
success: HttpApiSchema.NoContent,
|
|
27
|
+
}).annotateMerge(OpenApi.annotations({
|
|
28
|
+
identifier: "experimental.config.update",
|
|
29
|
+
summary: "Update global configuration",
|
|
30
|
+
description: "Patch supported fields in the highest-precedence global configuration document.",
|
|
23
31
|
})))
|
|
24
32
|
.annotateMerge(OpenApi.annotations({ title: "config", description: "Location-scoped configuration routes." }));
|
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-19565",
|
|
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-19565",
|
|
36
36
|
"effect": "4.0.0-rc.112"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|