@code-insights/cli 3.3.0 → 3.3.2
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 +39 -0
- package/README.md +11 -7
- package/dashboard-dist/assets/{index-cAfuFBOl.js → index-BRUFVAPq.js} +148 -138
- package/dashboard-dist/assets/index-CYJdtaMC.css +1 -0
- package/dashboard-dist/favicon.svg +17 -3
- package/dashboard-dist/index.html +2 -2
- package/dist/commands/dashboard.d.ts.map +1 -1
- package/dist/commands/dashboard.js +9 -1
- package/dist/commands/dashboard.js.map +1 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +4 -1
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/install-hook.d.ts.map +1 -1
- package/dist/commands/install-hook.js +48 -40
- package/dist/commands/install-hook.js.map +1 -1
- package/dist/commands/reset.d.ts.map +1 -1
- package/dist/commands/reset.js +4 -1
- package/dist/commands/reset.js.map +1 -1
- package/dist/commands/status.d.ts.map +1 -1
- package/dist/commands/status.js +66 -58
- package/dist/commands/status.js.map +1 -1
- package/dist/commands/sync.d.ts.map +1 -1
- package/dist/commands/sync.js +5 -1
- package/dist/commands/sync.js.map +1 -1
- package/dist/types.d.ts +27 -3
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/banner.d.ts +6 -0
- package/dist/utils/banner.d.ts.map +1 -0
- package/dist/utils/banner.js +30 -0
- package/dist/utils/banner.js.map +1 -0
- package/dist/utils/telemetry.d.ts +16 -0
- package/dist/utils/telemetry.d.ts.map +1 -1
- package/dist/utils/telemetry.js +76 -0
- package/dist/utils/telemetry.js.map +1 -1
- package/dist/utils/welcome.d.ts.map +1 -1
- package/dist/utils/welcome.js +2 -3
- package/dist/utils/welcome.js.map +1 -1
- package/package.json +1 -1
- package/server-dist/llm/analysis.d.ts +5 -1
- package/server-dist/llm/analysis.d.ts.map +1 -1
- package/server-dist/llm/analysis.js +58 -17
- package/server-dist/llm/analysis.js.map +1 -1
- package/server-dist/llm/prompts.d.ts +45 -9
- package/server-dist/llm/prompts.d.ts.map +1 -1
- package/server-dist/llm/prompts.js +199 -60
- 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 +80 -28
- 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,45 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `@code-insights/cli` will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [3.3.2] - 2026-03-02
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- **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.
|
|
10
|
+
- **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.
|
|
11
|
+
- **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.
|
|
12
|
+
- **PR link extraction** — GitHub PR links referenced in session messages are automatically detected and displayed as clickable badges on the session detail page.
|
|
13
|
+
- **Few-shot examples in analysis prompt** — Two curated examples (a decision and a learning) set the quality bar for LLM output.
|
|
14
|
+
- **Chain-of-thought pre-analysis** — Prompt quality analysis now uses a 6-step mental walkthrough before scoring.
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
|
|
18
|
+
- **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.
|
|
19
|
+
- **Tool result cap raised from 200 to 500 chars** — Better context for error messages in analysis input.
|
|
20
|
+
- **Source tool badge shown for all sessions** — Previously hidden for claude-code sessions.
|
|
21
|
+
|
|
22
|
+
### Fixed
|
|
23
|
+
|
|
24
|
+
- **Dashboard compact layout** — Higher information density across dashboard pages.
|
|
25
|
+
- **7-day range filter** — Default range filter applied to dashboard and analytics.
|
|
26
|
+
- **LLM JSON truncation** — 3-layer fix: max_tokens 8192, jsonrepair fallback, conciseness constraints.
|
|
27
|
+
- **PostHog exception tracking** — Stack trace frames included in error reports.
|
|
28
|
+
|
|
29
|
+
## [3.3.1] - 2026-03-02
|
|
30
|
+
|
|
31
|
+
### Added
|
|
32
|
+
|
|
33
|
+
- **Error telemetry with PostHog `captureException`** — All CLI commands (sync, dashboard, init, status, reset, install-hook) and server analysis routes now capture exceptions with classified error types and enriched context via `captureError()`.
|
|
34
|
+
- **Structured parse errors** — Server analysis routes use `ParseResult<T>` type for structured LLM response parsing with error classification (`error_type`, `response_length`).
|
|
35
|
+
- **CLI ASCII art banner** — Branded ASCII banner displayed on `code-insights init` welcome message and `code-insights dashboard` launch.
|
|
36
|
+
- **Logo integration** — Monochrome logo component added to dashboard header and mobile nav. Favicon replaced with branded logo. Logo assets added to READMEs.
|
|
37
|
+
- **CI gate** — GitHub Actions workflow for automated build + test on push/PR to master.
|
|
38
|
+
- **Test coverage expansion** — New tests for `config.ts` utilities and `config.test.ts` server route. Existing `read-write.test.ts` and `prompts.test.ts` tests enhanced.
|
|
39
|
+
|
|
40
|
+
### Fixed
|
|
41
|
+
|
|
42
|
+
- **Server chunked analysis** — Guard against all chunks failing in chunked analysis path, preventing unhandled errors.
|
|
43
|
+
|
|
5
44
|
## [3.3.0] - 2026-03-02
|
|
6
45
|
|
|
7
46
|
### Changed
|
package/README.md
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="https://raw.githubusercontent.com/melagiri/code-insights/master/docs/assets/logo.svg" width="80" height="80" alt="Code Insights logo" />
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
<h1 align="center">Code Insights CLI</h1>
|
|
2
6
|
|
|
3
7
|
Analyze AI coding sessions from the terminal. Parses session history from Claude Code, Cursor, Codex CLI, and Copilot CLI — stores everything in a local SQLite database — and serves a built-in browser dashboard.
|
|
4
8
|
|
|
@@ -52,15 +56,14 @@ Opens the built-in React dashboard at `http://localhost:7890`. The dashboard pro
|
|
|
52
56
|
|
|
53
57
|
- **Session Browser** — search, filter, and view full session details
|
|
54
58
|
- **Analytics** — usage patterns, cost trends, activity charts
|
|
55
|
-
- **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
|
|
56
60
|
- **Settings** — configure your LLM provider for analysis
|
|
57
61
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
### Custom Port
|
|
62
|
+
### Options
|
|
61
63
|
|
|
62
64
|
```bash
|
|
63
|
-
code-insights dashboard --port 8080
|
|
65
|
+
code-insights dashboard --port 8080 # Custom port
|
|
66
|
+
code-insights dashboard --no-open # Start server without opening browser
|
|
64
67
|
```
|
|
65
68
|
|
|
66
69
|
## CLI Commands
|
|
@@ -152,8 +155,9 @@ code-insights stats models
|
|
|
152
155
|
# Show sync statistics (sessions, projects, last sync)
|
|
153
156
|
code-insights status
|
|
154
157
|
|
|
155
|
-
# Open the local dashboard in your browser
|
|
158
|
+
# Open the local dashboard in your browser
|
|
156
159
|
code-insights open
|
|
160
|
+
code-insights open --project # Open filtered to the current project
|
|
157
161
|
|
|
158
162
|
# Delete all local data and reset sync state
|
|
159
163
|
code-insights reset --confirm
|