@raquezha/notrace 0.0.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 +44 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +678 -0
- package/index.ts +692 -0
- package/package.json +28 -0
- package/tsconfig.json +14 -0
package/README.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# notrace
|
|
2
|
+
|
|
3
|
+
Zero-dependency, local-first interactive HTML Trace Viewer for the Pi Coding Agent. Captures the full execution trace of a session — LLM calls, tool executions, token usage, costs — and writes a self-contained, interactive HTML report to your active task workspace at session end.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- **Session timeline**: Every turn, tool call, and LLM completion rendered as an expandable card
|
|
8
|
+
- **Metrics dashboard**: Total tokens, input/output split, cache reads, cost (USD), duration
|
|
9
|
+
- **Clickable `file://` link**: Report path printed to console at session end for instant browser access
|
|
10
|
+
- **Active task aware**: Writes the report into `.workflow/tasks/<task>/notrace.html` when a task is active
|
|
11
|
+
- **Self-contained HTML**: No external dependencies — works fully offline
|
|
12
|
+
|
|
13
|
+
## Output
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
🔍 [notrace] Observability report generated:
|
|
17
|
+
📂 file:///path/to/.workflow/tasks/my-task/notrace.html
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Usage
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
# Load directly
|
|
24
|
+
pi --extension ./packages/notrace
|
|
25
|
+
|
|
26
|
+
# Via nothing mindset (dev, rpiv)
|
|
27
|
+
pi --dev
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## NPM
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
npm install -g @raquezha/notrace
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Build
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
cd packages/notrace
|
|
40
|
+
npm install
|
|
41
|
+
npm run build
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Output lands in `dist/`.
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ExtensionAPI } from "@mariozechner/pi-coding-agent";
|
|
2
|
+
/**
|
|
3
|
+
* html-observability extension
|
|
4
|
+
*
|
|
5
|
+
* Captures execution traces from the pi coding agent sessions and writes
|
|
6
|
+
* a self-contained, interactive, beautiful HTML report to the active task's
|
|
7
|
+
* workspace at the end of the session.
|
|
8
|
+
*/
|
|
9
|
+
export default function (pi: ExtensionAPI): void;
|