@opencode/protocol 0.0.0-dev-21662 → 0.0.0-dev-21670
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 +7 -0
- package/dist/groups/debug.js +13 -1
- package/package.json +2 -2
package/dist/groups/debug.d.ts
CHANGED
|
@@ -6,6 +6,13 @@ export declare const DebugGroup: HttpApiGroup.HttpApiGroup<"server.debug", HttpA
|
|
|
6
6
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
7
7
|
readonly path: Schema.String;
|
|
8
8
|
readonly pid: Schema.Int;
|
|
9
|
+
readonly memory: Schema.Struct<{
|
|
10
|
+
readonly rss: Schema.Number;
|
|
11
|
+
readonly heapTotal: Schema.Number;
|
|
12
|
+
readonly heapUsed: Schema.Number;
|
|
13
|
+
readonly external: Schema.Number;
|
|
14
|
+
readonly arrayBuffers: Schema.Number;
|
|
15
|
+
}>;
|
|
9
16
|
}>>, Schema.toCodecJson<typeof InvalidRequestError | typeof UnknownError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"debug.location", "GET", "/api/debug/location", never, never, never, never, Schema.toCodecJson<Schema.$Array<Schema.Struct<{
|
|
10
17
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
11
18
|
}>>>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"debug.location.evict", "DELETE", "/api/debug/location", never, Schema.toCodecStringTree<Schema.Struct<{
|
package/dist/groups/debug.js
CHANGED
|
@@ -10,7 +10,19 @@ export const DebugGroup = HttpApiGroup.make("server.debug")
|
|
|
10
10
|
description: "Absolute server-local directory to write the snapshot into, created when missing. Defaults to the server's log directory.",
|
|
11
11
|
})),
|
|
12
12
|
}),
|
|
13
|
-
success: Schema.Struct({
|
|
13
|
+
success: Schema.Struct({
|
|
14
|
+
path: Schema.String,
|
|
15
|
+
pid: Schema.Int,
|
|
16
|
+
memory: Schema.Struct({
|
|
17
|
+
rss: Schema.Number,
|
|
18
|
+
heapTotal: Schema.Number,
|
|
19
|
+
heapUsed: Schema.Number,
|
|
20
|
+
external: Schema.Number,
|
|
21
|
+
arrayBuffers: Schema.Number,
|
|
22
|
+
}).annotate({
|
|
23
|
+
description: "The server process's memory in bytes, read just before the snapshot (Node's process.memoryUsage()). rss covers native memory the snapshot cannot show.",
|
|
24
|
+
}),
|
|
25
|
+
}),
|
|
14
26
|
error: [InvalidRequestError, UnknownError],
|
|
15
27
|
}).annotateMerge(OpenApi.annotations({
|
|
16
28
|
identifier: "debug.heapDump",
|
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-
|
|
4
|
+
"version": "0.0.0-dev-21670",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"typecheck:tsc": "tsc --noEmit"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@opencode/schema": "0.0.0-dev-
|
|
37
|
+
"@opencode/schema": "0.0.0-dev-21670",
|
|
38
38
|
"effect": "4.0.1"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|