@opencode/protocol 0.0.0-dev-21614 → 0.0.0-dev-21631
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/debug.d.ts +5 -1
- package/dist/groups/debug.js +9 -0
- package/dist/groups/event.d.ts +1100 -1100
- package/dist/groups/mcp.d.ts +36 -36
- package/dist/groups/permission.d.ts +6 -6
- package/dist/groups/pty.d.ts +42 -42
- package/dist/groups/session.d.ts +134 -134
- package/package.json +5 -4
package/dist/groups/debug.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
2
|
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema } from "effect/http-api";
|
|
3
|
-
|
|
3
|
+
import { UnknownError } from "../errors.js";
|
|
4
|
+
export declare const DebugGroup: HttpApiGroup.HttpApiGroup<"server.debug", HttpApiEndpoint.HttpApiEndpoint<"debug.heapDump", "POST", "/api/debug/heap-dump", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
5
|
+
readonly path: Schema.String;
|
|
6
|
+
readonly pid: Schema.Int;
|
|
7
|
+
}>>, Schema.toCodecJson<typeof UnknownError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"debug.location", "GET", "/api/debug/location", never, never, never, never, Schema.toCodecJson<Schema.$Array<Schema.Struct<{
|
|
4
8
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
5
9
|
}>>>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"debug.location.evict", "DELETE", "/api/debug/location", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
6
10
|
readonly location: Schema.optional<Schema.Struct<{
|
package/dist/groups/debug.js
CHANGED
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
import { Location } from "@opencode/schema/location";
|
|
2
2
|
import { Schema } from "effect";
|
|
3
3
|
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
4
|
+
import { UnknownError } from "../errors.js";
|
|
4
5
|
import { LocationQuery, locationQueryOpenApi } from "./location.js";
|
|
5
6
|
export const DebugGroup = HttpApiGroup.make("server.debug")
|
|
7
|
+
.add(HttpApiEndpoint.post("debug.heapDump", "/api/debug/heap-dump", {
|
|
8
|
+
success: Schema.Struct({ path: Schema.String, pid: Schema.Int }),
|
|
9
|
+
error: UnknownError,
|
|
10
|
+
}).annotateMerge(OpenApi.annotations({
|
|
11
|
+
identifier: "debug.heapDump",
|
|
12
|
+
summary: "Write a heap snapshot",
|
|
13
|
+
description: "Write a JavaScript heap snapshot of the server process into its log directory and return the server-local path once the file is complete. Pauses the server while the heap serializes and can temporarily increase its memory use. The snapshot can contain credentials, prompts, and file contents.",
|
|
14
|
+
})))
|
|
6
15
|
.add(HttpApiEndpoint.get("debug.location", "/api/debug/location", {
|
|
7
16
|
success: Schema.Array(Location.PublicRef),
|
|
8
17
|
}).annotateMerge(OpenApi.annotations({
|