@opencode/protocol 0.0.0-dev-19551 → 0.0.0-dev-19553
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/api.d.ts +1 -2
- package/dist/api.js +0 -2
- package/dist/client.d.ts +0 -1
- package/dist/client.js +0 -1
- package/dist/groups/agent.js +2 -2
- package/dist/groups/command.js +1 -1
- package/dist/groups/config.js +4 -4
- package/dist/groups/credential.js +3 -3
- package/dist/groups/debug.js +2 -2
- package/dist/groups/event.js +1 -1
- package/dist/groups/form.js +7 -7
- package/dist/groups/fs.js +3 -3
- package/dist/groups/generate.js +1 -1
- package/dist/groups/integration.js +11 -11
- package/dist/groups/location.js +1 -1
- package/dist/groups/mcp.js +6 -6
- package/dist/groups/message.js +1 -1
- package/dist/groups/migration.js +1 -1
- package/dist/groups/model.js +2 -2
- package/dist/groups/permission.js +8 -8
- package/dist/groups/persistent-pty.js +1 -1
- package/dist/groups/plugin.js +4 -4
- package/dist/groups/project.js +2 -2
- package/dist/groups/provider.js +2 -2
- package/dist/groups/pty.js +7 -7
- package/dist/groups/reference.js +1 -1
- package/dist/groups/rpc.js +1 -1
- package/dist/groups/server.d.ts +9 -1
- package/dist/groups/server.js +11 -5
- package/dist/groups/session.js +39 -39
- package/dist/groups/shell.js +6 -6
- package/dist/groups/skill.js +1 -1
- package/dist/groups/vcs.js +5 -5
- package/dist/groups/websearch.js +2 -2
- package/dist/groups/workspace.js +2 -2
- package/dist/groups/worktree.js +4 -4
- package/package.json +2 -2
- package/dist/groups/health.d.ts +0 -15
- package/dist/groups/health.js +0 -20
package/dist/groups/health.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Schema } from "effect";
|
|
2
|
-
import { HttpApiEndpoint, HttpApiGroup } from "effect/unstable/httpapi";
|
|
3
|
-
export declare namespace ServiceStatus {
|
|
4
|
-
const Health: Schema.Struct<{
|
|
5
|
-
readonly healthy: Schema.Literal<true>;
|
|
6
|
-
readonly version: Schema.String;
|
|
7
|
-
readonly pid: Schema.Int;
|
|
8
|
-
}>;
|
|
9
|
-
type Health = typeof Health.Type;
|
|
10
|
-
}
|
|
11
|
-
export declare const HealthGroup: HttpApiGroup.HttpApiGroup<"server.health", HttpApiEndpoint.HttpApiEndpoint<"health.get", "GET", "/api/health", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
12
|
-
readonly healthy: Schema.Literal<true>;
|
|
13
|
-
readonly version: Schema.String;
|
|
14
|
-
readonly pid: Schema.Int;
|
|
15
|
-
}>>, never, never, never>, false>;
|
package/dist/groups/health.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Schema } from "effect";
|
|
2
|
-
import { HttpApiEndpoint, HttpApiGroup, OpenApi } from "effect/unstable/httpapi";
|
|
3
|
-
export var ServiceStatus;
|
|
4
|
-
(function (ServiceStatus) {
|
|
5
|
-
ServiceStatus.Health = Schema.Struct({
|
|
6
|
-
healthy: Schema.Literal(true),
|
|
7
|
-
version: Schema.String,
|
|
8
|
-
// 0 means the runtime has no OS process identity (e.g. workerd).
|
|
9
|
-
pid: Schema.Int.check(Schema.isGreaterThanOrEqualTo(0)),
|
|
10
|
-
}).annotate({ identifier: "ServiceHealth" });
|
|
11
|
-
})(ServiceStatus || (ServiceStatus = {}));
|
|
12
|
-
export const HealthGroup = HttpApiGroup.make("server.health")
|
|
13
|
-
.add(HttpApiEndpoint.get("health.get", "/api/health", {
|
|
14
|
-
success: ServiceStatus.Health,
|
|
15
|
-
}).annotateMerge(OpenApi.annotations({
|
|
16
|
-
identifier: "v2.health.get",
|
|
17
|
-
summary: "Check server health",
|
|
18
|
-
description: "Report the owning server process and its application status.",
|
|
19
|
-
})))
|
|
20
|
-
.annotateMerge(OpenApi.annotations({ title: "health" }));
|