@opencode/protocol 0.0.0-dev-19561 → 0.0.0-dev-19563

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.
@@ -5,16 +5,7 @@ export declare const ConfigGroup: HttpApiGroup.HttpApiGroup<"server.config", Htt
5
5
  readonly location: Schema.optional<Schema.Struct<{
6
6
  readonly directory: Schema.optional<Schema.String>;
7
7
  }>>;
8
- }>>, never, never, Schema.toCodecJson<Schema.$Array<Schema.Union<readonly [typeof Config.Document, typeof Config.Directory, typeof Config.AgentsDirectory, typeof Config.ClaudeDirectory]>>>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"config.preferences", "GET", "/api/config/preferences", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
9
- readonly shell: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
10
- readonly websearch: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<false>, typeof import("@opencode/schema/config/websearch").Info]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<false>, typeof import("@opencode/schema/config/websearch").Info]>>, never, never>;
11
- }>>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"config.updatePreferences", "PATCH", "/api/config/preferences", never, never, Schema.toCodecJson<Schema.Struct<{
12
- readonly shell: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NullOr<Schema.String>>>, Schema.optionalKey<Schema.NullOr<Schema.String>>, never, never>;
13
- readonly websearch: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NullOr<Schema.Union<readonly [Schema.Literal<false>, typeof import("@opencode/schema/config/websearch").Info]>>>>, Schema.optionalKey<Schema.NullOr<Schema.Union<readonly [Schema.Literal<false>, typeof import("@opencode/schema/config/websearch").Info]>>>, never, never>;
14
- }>>, never, Schema.toCodecJson<Schema.Struct<{
15
- readonly shell: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
16
- readonly websearch: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<false>, typeof import("@opencode/schema/config/websearch").Info]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<false>, typeof import("@opencode/schema/config/websearch").Info]>>, never, never>;
17
- }>>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"config.shells", "GET", "/api/config/shell", never, never, never, never, Schema.toCodecJson<Schema.$Array<Schema.Struct<{
8
+ }>>, never, never, Schema.toCodecJson<Schema.$Array<Schema.Union<readonly [typeof Config.Document, typeof Config.Directory]>>>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"config.shells", "GET", "/api/config/shell", never, never, never, never, Schema.toCodecJson<Schema.$Array<Schema.Struct<{
18
9
  readonly path: Schema.String;
19
10
  readonly name: Schema.String;
20
11
  readonly acceptable: Schema.Boolean;
@@ -13,21 +13,6 @@ export const ConfigGroup = HttpApiGroup.make("server.config")
13
13
  identifier: "config.get",
14
14
  summary: "Get configuration",
15
15
  description: "Return configuration documents and discovery sources for the requested location, from lowest to highest priority.",
16
- })))
17
- .add(HttpApiEndpoint.get("config.preferences", "/api/config/preferences", {
18
- success: Config.Preferences,
19
- }).annotateMerge(OpenApi.annotations({
20
- identifier: "config.preferences",
21
- summary: "Get global preferences",
22
- description: "Return preferences from the highest-precedence global configuration document.",
23
- })))
24
- .add(HttpApiEndpoint.patch("config.updatePreferences", "/api/config/preferences", {
25
- payload: Config.PreferencesPatch,
26
- success: Config.Preferences,
27
- }).annotateMerge(OpenApi.annotations({
28
- identifier: "config.updatePreferences",
29
- summary: "Update global preferences",
30
- description: "Patch preferences in the highest-precedence global configuration document.",
31
16
  })))
32
17
  .add(HttpApiEndpoint.get("config.shells", "/api/config/shell", {
33
18
  success: Schema.Array(ConfigShell.Option),
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-19561",
4
+ "version": "0.0.0-dev-19563",
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-19561",
35
+ "@opencode/schema": "0.0.0-dev-19563",
36
36
  "effect": "4.0.0-rc.112"
37
37
  },
38
38
  "devDependencies": {