@mrclrchtr/supi-debug 11.0.1 → 11.2.0
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/README.md +62 -3
- package/node_modules/@mrclrchtr/supi-core/package.json +1 -1
- package/node_modules/@mrclrchtr/supi-core/src/debug-registry.ts +41 -1
- package/package.json +4 -2
- package/prompts/supi-tooling-retro.md +35 -57
- package/skills/gather-retrospectives/SKILL.md +72 -0
- package/skills/gather-retrospectives/scripts/collect.mjs +399 -0
- package/skills/gather-retrospectives/scripts/snapshot.mjs +183 -0
- package/src/command.ts +4 -2
- package/src/config.ts +9 -4
- package/src/debug.ts +13 -6
- package/src/format-events.ts +28 -11
- package/src/render-details.ts +26 -3
- package/src/renderer.ts +29 -1
- package/src/session-events.ts +20 -6
- package/src/tool/debug/input.ts +11 -0
- package/src/tool/debug/render.ts +19 -5
- package/src/tool/debug/result-schema.ts +71 -0
- package/src/tool/debug/result.ts +101 -17
- package/src/tool/debug/serialize.ts +66 -0
- package/src/tool/debug/spec.ts +8 -12
package/src/tool/debug/spec.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { StringEnum } from "@earendil-works/pi-ai";
|
|
2
1
|
import { Type } from "typebox";
|
|
3
2
|
import { makeDebugExecute } from "./execute.ts";
|
|
3
|
+
import { debugLevelSchema, debugOperationIdSchema } from "./input.ts";
|
|
4
|
+
import { debugOutputSchema } from "./result-schema.ts";
|
|
4
5
|
|
|
5
6
|
export const DEBUG_TOOL_NAME = "debug";
|
|
6
7
|
export const DEBUG_TOOL_LABEL = "SuPi Debug";
|
|
@@ -10,18 +11,12 @@ export const debugSpec = {
|
|
|
10
11
|
name: DEBUG_TOOL_NAME,
|
|
11
12
|
label: DEBUG_TOOL_LABEL,
|
|
12
13
|
parameters: Type.Object({
|
|
13
|
-
operationId: Type.Optional(
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}),
|
|
18
|
-
),
|
|
14
|
+
operationId: Type.Optional({
|
|
15
|
+
...debugOperationIdSchema,
|
|
16
|
+
description: "Filter by exact Debug Operation ID",
|
|
17
|
+
}),
|
|
19
18
|
source: Type.Optional(Type.String({ description: "Filter by extension source, e.g. lsp" })),
|
|
20
|
-
level: Type.Optional(
|
|
21
|
-
StringEnum(["debug", "info", "warning", "error"], {
|
|
22
|
-
description: "Filter by debug level",
|
|
23
|
-
}),
|
|
24
|
-
),
|
|
19
|
+
level: Type.Optional({ ...debugLevelSchema, description: "Filter by debug level" }),
|
|
25
20
|
category: Type.Optional(Type.String({ description: "Filter by event category" })),
|
|
26
21
|
limit: Type.Optional(Type.Number({ description: "Maximum number of events to return" })),
|
|
27
22
|
sessionFile: Type.Optional(
|
|
@@ -31,5 +26,6 @@ export const debugSpec = {
|
|
|
31
26
|
Type.Boolean({ description: "Request raw event data when settings permit it" }),
|
|
32
27
|
),
|
|
33
28
|
}),
|
|
29
|
+
outputSchema: debugOutputSchema,
|
|
34
30
|
execute: makeDebugExecute(),
|
|
35
31
|
} as const;
|