@neiltron/session-visualizer 0.1.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 ADDED
@@ -0,0 +1,92 @@
1
+ # Session Visualizer
2
+
3
+ Local filmstrip inspector for Pi session JSONL files.
4
+
5
+ ## Run with npx
6
+
7
+ Launch against a known source root:
8
+
9
+ ```bash
10
+ npx @neiltron/session-visualizer /path/to/logs
11
+ ```
12
+
13
+ Launch and open the browser automatically:
14
+
15
+ ```bash
16
+ npx @neiltron/session-visualizer /path/to/logs --open
17
+ ```
18
+
19
+ Start without a source root and choose one in the browser:
20
+
21
+ ```bash
22
+ npx @neiltron/session-visualizer
23
+ ```
24
+
25
+ The CLI starts a local server, prints the URL, and binds to `127.0.0.1` by default.
26
+
27
+ ## Install
28
+
29
+ ```bash
30
+ npm install -g @neiltron/session-visualizer
31
+ session-visualizer /path/to/logs
32
+ ```
33
+
34
+ ## CLI options
35
+
36
+ ```text
37
+ session-visualizer [source-root] [--open] [--port <number>]
38
+ ```
39
+
40
+ - `source-root` — optional directory containing Pi session JSONL files
41
+ - `--open` — open the default browser after startup
42
+ - `--port <number>` — override the default local server port (`4174`)
43
+
44
+ ## Features
45
+
46
+ - Recursive discovery of Pi session JSONL files
47
+ - Session list sorted newest-first with duration, tool, and error stats
48
+ - Five-lane filmstrip timeline: metadata, user, assistant, tools, custom
49
+ - Tool call/result pairing
50
+ - Parsed summary and raw JSON inspector
51
+
52
+ ## Deep Links
53
+
54
+ Link to a specific session by relative path:
55
+
56
+ ```text
57
+ /?path=tasks/task_abc/pi-sessions/session.jsonl
58
+ ```
59
+
60
+ ## Local development
61
+
62
+ All contributor commands run from the repository root.
63
+
64
+ Install dependencies:
65
+
66
+ ```bash
67
+ bun install
68
+ ```
69
+
70
+ Start the development servers:
71
+
72
+ ```bash
73
+ bun run dev
74
+ ```
75
+
76
+ Open an explicit source root at startup:
77
+
78
+ ```bash
79
+ DATA_DIR=/path/to/logs bun run dev
80
+ ```
81
+
82
+ ## Build and test
83
+
84
+ ```bash
85
+ bun run test
86
+ bun run build
87
+ bun run smoke:package
88
+ ```
89
+
90
+ ## Release
91
+
92
+ Maintainer release steps live in `docs/releasing.md`.