@code-insights/cli 3.3.1 → 3.4.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/CHANGELOG.md +41 -0
- package/README.md +1 -1
- package/dashboard-dist/assets/{index-Rr1JlICa.js → index-BdoBoNtI.js} +154 -139
- package/dashboard-dist/assets/index-QzYeMRSf.css +1 -0
- package/dashboard-dist/index.html +2 -2
- package/dist/parser/titles.d.ts.map +1 -1
- package/dist/parser/titles.js +55 -7
- package/dist/parser/titles.js.map +1 -1
- package/dist/providers/codex.d.ts +5 -1
- package/dist/providers/codex.d.ts.map +1 -1
- package/dist/providers/codex.js +489 -258
- package/dist/providers/codex.js.map +1 -1
- package/dist/providers/copilot-cli.d.ts.map +1 -1
- package/dist/providers/copilot-cli.js +64 -6
- package/dist/providers/copilot-cli.js.map +1 -1
- package/dist/providers/copilot.d.ts.map +1 -1
- package/dist/providers/copilot.js +23 -0
- package/dist/providers/copilot.js.map +1 -1
- package/dist/providers/cursor.js +206 -22
- package/dist/providers/cursor.js.map +1 -1
- package/dist/types.d.ts +28 -4
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/telemetry.d.ts.map +1 -1
- package/dist/utils/telemetry.js +33 -1
- package/dist/utils/telemetry.js.map +1 -1
- package/package.json +1 -1
- package/server-dist/llm/analysis.d.ts +1 -0
- package/server-dist/llm/analysis.d.ts.map +1 -1
- package/server-dist/llm/analysis.js +35 -9
- package/server-dist/llm/analysis.js.map +1 -1
- package/server-dist/llm/prompts.d.ts +31 -7
- package/server-dist/llm/prompts.d.ts.map +1 -1
- package/server-dist/llm/prompts.js +161 -46
- package/server-dist/llm/prompts.js.map +1 -1
- package/server-dist/llm/providers/anthropic.js +1 -1
- package/server-dist/llm/providers/gemini.js +1 -1
- package/server-dist/llm/providers/openai.d.ts.map +1 -1
- package/server-dist/llm/providers/openai.js +1 -0
- package/server-dist/llm/providers/openai.js.map +1 -1
- package/server-dist/routes/analysis.d.ts.map +1 -1
- package/server-dist/routes/analysis.js +4 -0
- package/server-dist/routes/analysis.js.map +1 -1
- package/server-dist/routes/analytics.d.ts.map +1 -1
- package/server-dist/routes/analytics.js +10 -0
- package/server-dist/routes/analytics.js.map +1 -1
- package/dashboard-dist/assets/index-BMhL7wL8.css +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,47 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `@code-insights/cli` will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [3.4.0] - 2026-03-02
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- **Codex CLI parser rewrite** — Complete rewrite of the Codex CLI provider to handle the current JSONL format (v0.104.0+). Previously produced 0 assistant messages and 0 tool calls for all sessions. Now correctly parses `function_call`, `function_call_output`, `custom_tool_call`, `agent_message`, and `task_complete` events. Also adds support for the legacy single-JSON format (pre-2025 `.json` files).
|
|
10
|
+
- **Cursor provider data quality** — Three fixes: (1) project path inference from code block URIs when workspace.json is unavailable, (2) Lexical JSON rich text extraction with proper paragraph separators, (3) VSCode URI object unwrapping for file paths in tool calls.
|
|
11
|
+
- **Copilot VS Code metadata** — `models_used` and `primary_model` were always NULL (307 sessions affected). Provider now collects model IDs from session and per-request fields into a `SessionUsage` object.
|
|
12
|
+
- **Copilot CLI timestamps** — `started_at` and `ended_at` were identical (collapsed to file mtime). Event timestamps live at the event root level, not inside `event.data` — parser now extracts from the correct location.
|
|
13
|
+
- **Copilot CLI tool call IDs** — Were synthetic (`copilot-tool-N`) instead of using the original `toolCallId` from events. Also extracts tool calls from `assistant.message` `toolRequests` array.
|
|
14
|
+
- **Copilot CLI model extraction** — Model field was always empty. Now extracted from `tool.execution_complete` events.
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
|
|
18
|
+
- **Provider-agnostic session character detection** — `detectSessionCharacter` now recognizes tool names from all providers (Claude Code, Copilot VS Code, Copilot CLI, Codex CLI, Cursor) instead of only Claude Code tool names (`Edit`, `Write`, `Read`, `Grep`, `Glob`). Uses `EDIT_TOOLS` and `READ_TOOLS` sets with provider-agnostic file path extraction.
|
|
19
|
+
- **Dashboard agent message rendering** — Agent team coordination messages (`<task-notification>`, `<teammate-message>`) previously rendered as "You" bubbles. Now displayed as distinct notification cards with amber borders (task notifications) and colored borders (teammate messages).
|
|
20
|
+
- **`usageSource: 'session'` type** — New usage source value for providers that have model info but no token data.
|
|
21
|
+
|
|
22
|
+
## [3.3.2] - 2026-03-02
|
|
23
|
+
|
|
24
|
+
### Added
|
|
25
|
+
|
|
26
|
+
- **Richer analysis prompts (v3.0.0)** — Decomposed insight schemas: decisions now include situation, choice, reasoning, alternatives (with rejection reason), trade-offs, and revisit conditions. Learnings include symptom, root cause, transferable takeaway, and applicability. Summaries include outcome status.
|
|
27
|
+
- **Session traits in prompt quality** — Detects higher-level behavioral patterns: context drift, objective bloat, late context, no planning, and good structure. Each trait includes severity, evidence, and suggestions.
|
|
28
|
+
- **LLM-based session character classification** — Sessions are classified into one of 7 types (deep_focus, bug_hunt, feature_build, exploration, refactor, learning, quick_task) by the LLM during analysis, replacing the heuristic-only approach.
|
|
29
|
+
- **PR link extraction** — GitHub PR links referenced in session messages are automatically detected and displayed as clickable badges on the session detail page.
|
|
30
|
+
- **Few-shot examples in analysis prompt** — Two curated examples (a decision and a learning) set the quality bar for LLM output.
|
|
31
|
+
- **Chain-of-thought pre-analysis** — Prompt quality analysis now uses a 6-step mental walkthrough before scoring.
|
|
32
|
+
|
|
33
|
+
### Changed
|
|
34
|
+
|
|
35
|
+
- **Analysis version bumped to 3.0.0** — New decomposed schemas are not backward-compatible with v2 insight format. Re-analyze sessions to generate v3 insights.
|
|
36
|
+
- **Tool result cap raised from 200 to 500 chars** — Better context for error messages in analysis input.
|
|
37
|
+
- **Source tool badge shown for all sessions** — Previously hidden for claude-code sessions.
|
|
38
|
+
|
|
39
|
+
### Fixed
|
|
40
|
+
|
|
41
|
+
- **Dashboard compact layout** — Higher information density across dashboard pages.
|
|
42
|
+
- **7-day range filter** — Default range filter applied to dashboard and analytics.
|
|
43
|
+
- **LLM JSON truncation** — 3-layer fix: max_tokens 8192, jsonrepair fallback, conciseness constraints.
|
|
44
|
+
- **PostHog exception tracking** — Stack trace frames included in error reports.
|
|
45
|
+
|
|
5
46
|
## [3.3.1] - 2026-03-02
|
|
6
47
|
|
|
7
48
|
### Added
|
package/README.md
CHANGED
|
@@ -56,7 +56,7 @@ Opens the built-in React dashboard at `http://localhost:7890`. The dashboard pro
|
|
|
56
56
|
|
|
57
57
|
- **Session Browser** — search, filter, and view full session details
|
|
58
58
|
- **Analytics** — usage patterns, cost trends, activity charts
|
|
59
|
-
- **LLM Insights** — AI-generated summaries, decisions, learnings,
|
|
59
|
+
- **LLM Insights** — AI-generated summaries, decisions (with reasoning and trade-offs), learnings (with root cause analysis), prompt quality scoring with session traits
|
|
60
60
|
- **Settings** — configure your LLM provider for analysis
|
|
61
61
|
|
|
62
62
|
### Options
|