@opencode/protocol 0.0.0-dev-19555 → 0.0.0-dev-19559

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.
@@ -1,15 +1,15 @@
1
1
  import { Mcp } from "@opencode/schema/mcp";
2
- import { Location } from "@opencode/schema/location";
3
2
  import { Schema } from "effect";
4
3
  import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema } from "effect/unstable/httpapi";
5
4
  import { McpServerNotFoundError } from "../errors.js";
6
5
  export declare const McpGroup: HttpApiGroup.HttpApiGroup<"server.mcp", HttpApiEndpoint.HttpApiEndpoint<"mcp.list", "GET", "/api/mcp", never, Schema.toCodecStringTree<Schema.Struct<{
7
6
  readonly location: Schema.optional<Schema.Struct<{
8
7
  readonly directory: Schema.optional<Schema.String>;
9
- readonly workspace: Schema.optional<Schema.String>;
10
8
  }>>;
11
9
  }>>, never, never, Schema.toCodecJson<Schema.Struct<{
12
- readonly location: typeof Location.Info;
10
+ readonly location: Schema.Struct<{
11
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
12
+ }>;
13
13
  readonly data: Schema.$Array<Schema.Struct<{
14
14
  readonly name: Schema.String;
15
15
  readonly status: Schema.toTaggedUnion<"status", readonly [Schema.Struct<{
@@ -31,7 +31,6 @@ export declare const McpGroup: HttpApiGroup.HttpApiGroup<"server.mcp", HttpApiEn
31
31
  }>>, Schema.toCodecStringTree<Schema.Struct<{
32
32
  readonly location: Schema.optional<Schema.Struct<{
33
33
  readonly directory: Schema.optional<Schema.String>;
34
- readonly workspace: Schema.optional<Schema.String>;
35
34
  }>>;
36
35
  }>>, Schema.toCodecJson<Schema.Struct<{
37
36
  readonly config: Schema.toTaggedUnion<"type", readonly [typeof Mcp.LocalConfig, typeof Mcp.RemoteConfig]>;
@@ -40,29 +39,27 @@ export declare const McpGroup: HttpApiGroup.HttpApiGroup<"server.mcp", HttpApiEn
40
39
  }>>, Schema.toCodecStringTree<Schema.Struct<{
41
40
  readonly location: Schema.optional<Schema.Struct<{
42
41
  readonly directory: Schema.optional<Schema.String>;
43
- readonly workspace: Schema.optional<Schema.String>;
44
42
  }>>;
45
43
  }>>, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof McpServerNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"mcp.connect", "POST", "/api/mcp/:server/connect", Schema.toCodecStringTree<Schema.Struct<{
46
44
  server: Schema.String;
47
45
  }>>, Schema.toCodecStringTree<Schema.Struct<{
48
46
  readonly location: Schema.optional<Schema.Struct<{
49
47
  readonly directory: Schema.optional<Schema.String>;
50
- readonly workspace: Schema.optional<Schema.String>;
51
48
  }>>;
52
49
  }>>, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof McpServerNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"mcp.disconnect", "POST", "/api/mcp/:server/disconnect", Schema.toCodecStringTree<Schema.Struct<{
53
50
  server: Schema.String;
54
51
  }>>, Schema.toCodecStringTree<Schema.Struct<{
55
52
  readonly location: Schema.optional<Schema.Struct<{
56
53
  readonly directory: Schema.optional<Schema.String>;
57
- readonly workspace: Schema.optional<Schema.String>;
58
54
  }>>;
59
55
  }>>, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof McpServerNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"mcp.resource.catalog", "GET", "/api/mcp/resource", never, Schema.toCodecStringTree<Schema.Struct<{
60
56
  readonly location: Schema.optional<Schema.Struct<{
61
57
  readonly directory: Schema.optional<Schema.String>;
62
- readonly workspace: Schema.optional<Schema.String>;
63
58
  }>>;
64
59
  }>>, never, never, Schema.toCodecJson<Schema.Struct<{
65
- readonly location: typeof Location.Info;
60
+ readonly location: Schema.Struct<{
61
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
62
+ }>;
66
63
  readonly data: Schema.Struct<{
67
64
  readonly resources: Schema.$Array<Schema.Struct<{
68
65
  readonly server: Schema.String;