@mrclrchtr/supi-debug 1.8.0 → 1.9.1
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
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+

|
|
2
|
+
|
|
1
3
|
# @mrclrchtr/supi-debug
|
|
2
4
|
|
|
3
5
|
Adds shared debug-event capture and inspection for SuPi extensions in the [pi coding agent](https://github.com/earendil-works/pi).
|
|
@@ -14,7 +16,7 @@ For local development:
|
|
|
14
16
|
pi install ./packages/supi-debug
|
|
15
17
|
```
|
|
16
18
|
|
|
17
|
-
|
|
19
|
+

|
|
18
20
|
|
|
19
21
|
## What you get
|
|
20
22
|
|
|
@@ -33,7 +35,21 @@ It also registers a **Debug** provider section for `/supi-context`.
|
|
|
33
35
|
- if debug capture is disabled, no events are retained
|
|
34
36
|
- agent-facing access is blocked, sanitized, or raw depending on settings
|
|
35
37
|
|
|
36
|
-
|
|
38
|
+
## Rendering
|
|
39
|
+
|
|
40
|
+
`/supi-debug` uses a custom TUI message renderer that shows two levels of detail:
|
|
41
|
+
|
|
42
|
+
- **Collapsed** (default) — a one-line summary:
|
|
43
|
+
|
|
44
|
+
```
|
|
45
|
+
3 events — rtk/rewrite +2 more
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
- **Expanded** — full details with timestamp, level, source/category, message, cwd,
|
|
49
|
+
and data for each event. **Click/expand the collapsed message** in the TUI to reveal
|
|
50
|
+
the full output.
|
|
51
|
+
|
|
52
|
+
Rendered fields per event:
|
|
37
53
|
|
|
38
54
|
- timestamp
|
|
39
55
|
- level
|
|
@@ -43,6 +59,16 @@ Rendered events include:
|
|
|
43
59
|
- optional `data`
|
|
44
60
|
- optional `rawData`
|
|
45
61
|
|
|
62
|
+
### Why collapsed by default
|
|
63
|
+
|
|
64
|
+
Event payloads can be large (full command strings, structured data). Collapsing
|
|
65
|
+
keeps the conversation focused; expand only when you need the details.
|
|
66
|
+
|
|
67
|
+
### Seeing full details without expanding
|
|
68
|
+
|
|
69
|
+
The agent-facing `supi_debug` tool always returns the expanded plain-text
|
|
70
|
+
representation, which is useful for automated troubleshooting flows.
|
|
71
|
+
|
|
46
72
|
## Filters
|
|
47
73
|
|
|
48
74
|
Both `/supi-debug` and `supi_debug` support the same basic filters:
|
|
@@ -1,29 +1,20 @@
|
|
|
1
|
+

|
|
2
|
+
|
|
1
3
|
# @mrclrchtr/supi-core
|
|
2
4
|
|
|
3
5
|
Shared infrastructure for SuPi extensions.
|
|
4
6
|
|
|
5
|
-
This
|
|
7
|
+
This is a **pure library** — it does not register any pi commands or tools. The `/supi-settings` command is now available through `@mrclrchtr/supi-settings`.
|
|
6
8
|
|
|
7
9
|
## Install
|
|
8
10
|
|
|
9
|
-
### As a dependency for another extension
|
|
10
|
-
|
|
11
11
|
```bash
|
|
12
12
|
pnpm add @mrclrchtr/supi-core
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
### As a pi package
|
|
16
|
-
|
|
17
|
-
```bash
|
|
18
|
-
pi install npm:@mrclrchtr/supi-core
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
Installing it as a pi package adds the minimal `/supi-settings` extension surface.
|
|
22
|
-
|
|
23
15
|
## Package surfaces
|
|
24
16
|
|
|
25
17
|
- `@mrclrchtr/supi-core/api` — reusable helpers for other packages and extensions
|
|
26
|
-
- `@mrclrchtr/supi-core/extension` — minimal pi extension that registers `/supi-settings`
|
|
27
18
|
|
|
28
19
|
## What you get from the API
|
|
29
20
|
|
|
@@ -101,7 +92,6 @@ const message = wrapExtensionContext("my-extension", "hello", {
|
|
|
101
92
|
## Source
|
|
102
93
|
|
|
103
94
|
- `src/api.ts` — exported library surface
|
|
104
|
-
- `src/extension.ts` — minimal `/supi-settings` entrypoint
|
|
105
95
|
- `src/config.ts` — shared config loading and writing
|
|
106
96
|
- `src/config-settings.ts` — config-backed settings registration helper
|
|
107
97
|
- `src/settings-ui.ts` — shared settings overlay
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mrclrchtr/supi-core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.1",
|
|
4
4
|
"description": "SuPi core — shared infrastructure for SuPi extensions (XML context tags, config system)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -40,7 +40,6 @@
|
|
|
40
40
|
"./config": "./src/config.ts",
|
|
41
41
|
"./context": "./src/context.ts",
|
|
42
42
|
"./debug": "./src/debug-registry.ts",
|
|
43
|
-
"./extension": "./src/extension.ts",
|
|
44
43
|
"./package.json": "./package.json",
|
|
45
44
|
"./path": "./src/path.ts",
|
|
46
45
|
"./project": "./src/project.ts",
|
|
@@ -50,10 +49,5 @@
|
|
|
50
49
|
"./terminal": "./src/terminal.ts",
|
|
51
50
|
"./tool-framework": "./src/tool-framework.ts",
|
|
52
51
|
"./types": "./src/types.ts"
|
|
53
|
-
},
|
|
54
|
-
"pi": {
|
|
55
|
-
"extensions": [
|
|
56
|
-
"./src/extension.ts"
|
|
57
|
-
]
|
|
58
52
|
}
|
|
59
53
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mrclrchtr/supi-debug",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.1",
|
|
4
4
|
"description": "SuPi Debug extension — shared debug event inspection for SuPi extensions",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"README.md"
|
|
21
21
|
],
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@mrclrchtr/supi-core": "1.
|
|
23
|
+
"@mrclrchtr/supi-core": "1.9.1"
|
|
24
24
|
},
|
|
25
25
|
"bundledDependencies": [
|
|
26
26
|
"@mrclrchtr/supi-core"
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
},
|
|
44
44
|
"pi": {
|
|
45
45
|
"extensions": [
|
|
46
|
-
"./src/extension.ts"
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
"./src/extension.ts"
|
|
47
|
+
],
|
|
48
|
+
"image": "https://raw.githubusercontent.com/mrclrchtr/supi/main/packages/supi-debug/assets/logo.png"
|
|
49
49
|
},
|
|
50
50
|
"main": "src/api.ts",
|
|
51
51
|
"exports": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { registerSettingsCommand as default } from "./settings/settings-command.ts";
|