@opencode-ai/protocol 0.0.0-dev-17604 → 0.0.0-dev-17635

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.
@@ -7,21 +7,9 @@ export declare namespace ServiceStatus {
7
7
  readonly pid: Schema.Int;
8
8
  }>;
9
9
  type Health = typeof Health.Type;
10
- const StopRequest: Schema.Struct<{
11
- readonly instanceID: Schema.String;
12
- }>;
13
- type StopRequest = typeof StopRequest.Type;
14
- const StopResponse: Schema.Struct<{
15
- readonly accepted: Schema.Boolean;
16
- }>;
17
- type StopResponse = typeof StopResponse.Type;
18
10
  }
19
11
  export declare const HealthGroup: HttpApiGroup.HttpApiGroup<"server.health", HttpApiEndpoint.HttpApiEndpoint<"health.get", "GET", "/api/health", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
20
12
  readonly healthy: Schema.Literal<true>;
21
13
  readonly version: Schema.String;
22
14
  readonly pid: Schema.Int;
23
- }>>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"health.stop", "POST", "/api/service/stop", never, never, Schema.toCodecJson<Schema.Struct<{
24
- readonly instanceID: Schema.String;
25
- }>>, never, Schema.toCodecJson<Schema.Struct<{
26
- readonly accepted: Schema.Boolean;
27
15
  }>>, never, never, never>, false>;
@@ -8,12 +8,6 @@ export var ServiceStatus;
8
8
  // 0 means the runtime has no OS process identity (e.g. workerd).
9
9
  pid: Schema.Int.check(Schema.isGreaterThanOrEqualTo(0)),
10
10
  }).annotate({ identifier: "ServiceHealth" });
11
- ServiceStatus.StopRequest = Schema.Struct({
12
- instanceID: Schema.String,
13
- }).annotate({ identifier: "ServiceStopRequest" });
14
- ServiceStatus.StopResponse = Schema.Struct({
15
- accepted: Schema.Boolean,
16
- }).annotate({ identifier: "ServiceStopResponse" });
17
11
  })(ServiceStatus || (ServiceStatus = {}));
18
12
  export const HealthGroup = HttpApiGroup.make("server.health")
19
13
  .add(HttpApiEndpoint.get("health.get", "/api/health", {
@@ -22,13 +16,5 @@ export const HealthGroup = HttpApiGroup.make("server.health")
22
16
  identifier: "v2.health.get",
23
17
  summary: "Check server health",
24
18
  description: "Report the owning server process and its application status.",
25
- })))
26
- .add(HttpApiEndpoint.post("health.stop", "/api/service/stop", {
27
- payload: ServiceStatus.StopRequest,
28
- success: ServiceStatus.StopResponse,
29
- }).annotateMerge(OpenApi.annotations({
30
- identifier: "v2.health.stop",
31
- summary: "Stop the managed server",
32
- description: "Request graceful shutdown of one exact managed server instance.",
33
19
  })))
34
20
  .annotateMerge(OpenApi.annotations({ title: "health" }));
@@ -8,7 +8,36 @@ export declare const PluginGroup: HttpApiGroup.HttpApiGroup<"server.plugin", Htt
8
8
  }>>;
9
9
  }>>, never, never, Schema.toCodecJson<Schema.Struct<{
10
10
  readonly location: typeof Location.Info;
11
- readonly data: Schema.$Array<Schema.Struct<{
11
+ readonly data: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
12
12
  readonly id: Schema.brand<Schema.String, "Plugin.ID">;
13
- }>>;
13
+ readonly source: Schema.Union<readonly [Schema.Struct<{
14
+ readonly type: Schema.Literal<"builtin">;
15
+ }>, Schema.Struct<{
16
+ readonly type: Schema.Literal<"package">;
17
+ readonly package: Schema.String;
18
+ }>, Schema.Struct<{
19
+ readonly type: Schema.Literal<"local">;
20
+ readonly path: Schema.String;
21
+ }>, Schema.Struct<{
22
+ readonly type: Schema.Literal<"sdk">;
23
+ }>]>;
24
+ readonly status: Schema.Literal<"active">;
25
+ readonly tui: Schema.Boolean;
26
+ }>, Schema.Struct<{
27
+ readonly id: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Plugin.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Plugin.ID">>, never, never>;
28
+ readonly source: Schema.Union<readonly [Schema.Struct<{
29
+ readonly type: Schema.Literal<"builtin">;
30
+ }>, Schema.Struct<{
31
+ readonly type: Schema.Literal<"package">;
32
+ readonly package: Schema.String;
33
+ }>, Schema.Struct<{
34
+ readonly type: Schema.Literal<"local">;
35
+ readonly path: Schema.String;
36
+ }>, Schema.Struct<{
37
+ readonly type: Schema.Literal<"sdk">;
38
+ }>]>;
39
+ readonly status: Schema.Literal<"failed">;
40
+ readonly error: Schema.String;
41
+ readonly tui: Schema.Boolean;
42
+ }>]>>;
14
43
  }>>, never, never, never>, false>;
@@ -12,7 +12,7 @@ export const PluginGroup = HttpApiGroup.make("server.plugin")
12
12
  .annotateMerge(OpenApi.annotations({
13
13
  identifier: "v2.plugin.list",
14
14
  summary: "List plugins",
15
- description: "Retrieve currently loaded plugins.",
15
+ description: "Retrieve enabled server plugins and their current status.",
16
16
  })))
17
17
  .annotateMerge(OpenApi.annotations({
18
18
  title: "plugin",
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-dev-17604",
4
+ "version": "0.0.0-dev-17635",
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-ai/schema": "0.0.0-dev-17604",
35
+ "@opencode-ai/schema": "0.0.0-dev-17635",
36
36
  "effect": "4.0.0-beta.107"
37
37
  },
38
38
  "devDependencies": {