pi-context-map 0.4.1 → 0.4.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.4.4] - 2026-06-15
4
+ ### Bug Fixes
5
+ - **Fixed SSE rendering**: Changed `document.replaceChild(document.documentElement)` to `document.body.innerHTML` replacement. CSS and JavaScript no longer render as visible text on the page.
6
+ - **Singleton server**: `start()` now kills any pre-existing server instance before starting a new one. Only one localhost server runs at a time — no duplicate ports.
7
+
8
+ ## [0.4.3] - 2026-06-15
9
+ ### Apple-Inspired HTML Redesign
10
+ - **Complete visual overhaul**: Report now uses Apple design language — white canvas, Inter font (SF Pro substitute), Action Blue (#0066cc) accent, 18px card radius, pill-shaped inputs.
11
+ - **Usage ring**: SVG donut chart shows context window usage at a glance. Changes color when critical (>80%) or warning (>60%).
12
+ - **Stat tiles**: 4-column hairline-separated grid (Total Tokens, Files, Alerts, Window %).
13
+ - **Live badge**: Green pill indicator with pulsing dot shows when the live server is active.
14
+ - **Cleaner file cards**: 14px radius, thin border, hover turns accent blue. Status chips with semantic colors.
15
+ - **Rounded search/filter**: Pill-shaped search input (44px height) and filter dropdown.
16
+ - **Responsive layout**: Adapts to mobile with 2-column stats and single-column files.
17
+ - **Inter font**: Loaded from Google Fonts for professional typography on all platforms.
18
+
19
+ ## [0.4.2] - 2026-06-15
20
+ ### Silent Boot & Cleanup
21
+ - **Removed boot messages**: All console.log startup lines removed from `live-server.ts` and `index.ts`. Extension loads silently.
22
+
3
23
  ## [0.4.1] - 2026-06-15
4
24
  ### Critical Fix & Test Suite
5
25
  - **Fixed CRASH**: `(pi as any).session?.messages` → now uses event-based message accumulation. `/context-map` no longer crashes with "Cannot read properties of undefined (reading 'messages')".
@@ -8,13 +28,6 @@
8
28
  - **Test Suite**: 34 tests across 5 suites (analyzer, token-counter, insights, generator, live-server).
9
29
  - **Type Declarations**: Proper `pi-coding-agent.d.ts` with `ToolDefinition`, `ExtensionCommandContext`, `ExtensionContext`.
10
30
  - **Build Clean**: TypeScript strict mode passes with zero errors.
11
- - **Live SSE Server**: New `LiveReportServer` binds to 127.0.0.1 on a free port and serves the report at `/`.
12
- - **Auto-Updates**: Server-Sent Events endpoint at `/events` pushes the latest HTML whenever the analysis re-runs (e.g., after each assistant message).
13
- - **Token Auth**: Each server instance generates a unique session token; the HTML client picks it up via a `<meta>` tag and includes it in the SSE URL to prevent unauthorized access.
14
- - **Origin Validation**: Only connections from `http://127.0.0.1:<port>` or `http://localhost:<port>` are allowed.
15
- - **Graceful Shutdown**: `/context-map stop` or `session_shutdown` event stops the server cleanly.
16
- - **Auto-Refresh**: The `message_end` event triggers an automatic re-analysis when the live server is running, so the browser view stays in sync.
17
- - **Health & Stop Endpoints**: `/health` for liveness, `POST /stop` for remote termination.
18
31
 
19
32
  ## [0.3.1] - 2026-06-14
20
33
  ### Design & Interactivity Upgrade