@code-insights/cli 3.5.1 → 3.6.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.
Files changed (117) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dashboard-dist/assets/{index-CyMrlee5.js → index-BaKju1iW.js} +166 -151
  3. package/dashboard-dist/assets/index-_SWpRg6C.css +1 -0
  4. package/dashboard-dist/index.html +2 -2
  5. package/dist/db/migrate.d.ts +1 -0
  6. package/dist/db/migrate.d.ts.map +1 -1
  7. package/dist/db/migrate.js +10 -3
  8. package/dist/db/migrate.js.map +1 -1
  9. package/dist/db/schema.d.ts +2 -2
  10. package/dist/db/schema.d.ts.map +1 -1
  11. package/dist/db/schema.js +2 -1
  12. package/dist/db/schema.js.map +1 -1
  13. package/dist/types.d.ts +1 -0
  14. package/dist/types.d.ts.map +1 -1
  15. package/dist/utils/telemetry.js +1 -1
  16. package/dist/utils/telemetry.js.map +1 -1
  17. package/package.json +1 -1
  18. package/server-dist/export/agent-rules.d.ts +3 -0
  19. package/server-dist/export/agent-rules.d.ts.map +1 -0
  20. package/server-dist/export/agent-rules.js +153 -0
  21. package/server-dist/export/agent-rules.js.map +1 -0
  22. package/server-dist/export/knowledge-base.d.ts +33 -0
  23. package/server-dist/export/knowledge-base.d.ts.map +1 -0
  24. package/server-dist/export/knowledge-base.js +234 -0
  25. package/server-dist/export/knowledge-base.js.map +1 -0
  26. package/server-dist/llm/export-prompts.d.ts +57 -0
  27. package/server-dist/llm/export-prompts.d.ts.map +1 -0
  28. package/server-dist/llm/export-prompts.js +225 -0
  29. package/server-dist/llm/export-prompts.js.map +1 -0
  30. package/server-dist/routes/export.d.ts.map +1 -1
  31. package/server-dist/routes/export.js +305 -18
  32. package/server-dist/routes/export.js.map +1 -1
  33. package/dashboard-dist/assets/index-CFvScypR.css +0 -1
  34. package/dashboard-dist/dist/assets/index-CFvScypR.css +0 -1
  35. package/dashboard-dist/dist/assets/index-CyMrlee5.js +0 -592
  36. package/dashboard-dist/dist/favicon.svg +0 -18
  37. package/dashboard-dist/dist/index.html +0 -33
  38. package/server-dist/dist/index.d.ts +0 -20
  39. package/server-dist/dist/index.d.ts.map +0 -1
  40. package/server-dist/dist/index.js +0 -109
  41. package/server-dist/dist/index.js.map +0 -1
  42. package/server-dist/dist/llm/analysis.d.ts +0 -84
  43. package/server-dist/dist/llm/analysis.d.ts.map +0 -1
  44. package/server-dist/dist/llm/analysis.js +0 -550
  45. package/server-dist/dist/llm/analysis.js.map +0 -1
  46. package/server-dist/dist/llm/client.d.ts +0 -27
  47. package/server-dist/dist/llm/client.d.ts.map +0 -1
  48. package/server-dist/dist/llm/client.js +0 -71
  49. package/server-dist/dist/llm/client.js.map +0 -1
  50. package/server-dist/dist/llm/index.d.ts +0 -7
  51. package/server-dist/dist/llm/index.d.ts.map +0 -1
  52. package/server-dist/dist/llm/index.js +0 -5
  53. package/server-dist/dist/llm/index.js.map +0 -1
  54. package/server-dist/dist/llm/prompts.d.ts +0 -109
  55. package/server-dist/dist/llm/prompts.d.ts.map +0 -1
  56. package/server-dist/dist/llm/prompts.js +0 -381
  57. package/server-dist/dist/llm/prompts.js.map +0 -1
  58. package/server-dist/dist/llm/providers/anthropic.d.ts +0 -3
  59. package/server-dist/dist/llm/providers/anthropic.d.ts.map +0 -1
  60. package/server-dist/dist/llm/providers/anthropic.js +0 -45
  61. package/server-dist/dist/llm/providers/anthropic.js.map +0 -1
  62. package/server-dist/dist/llm/providers/gemini.d.ts +0 -3
  63. package/server-dist/dist/llm/providers/gemini.d.ts.map +0 -1
  64. package/server-dist/dist/llm/providers/gemini.js +0 -51
  65. package/server-dist/dist/llm/providers/gemini.js.map +0 -1
  66. package/server-dist/dist/llm/providers/ollama.d.ts +0 -12
  67. package/server-dist/dist/llm/providers/ollama.d.ts.map +0 -1
  68. package/server-dist/dist/llm/providers/ollama.js +0 -61
  69. package/server-dist/dist/llm/providers/ollama.js.map +0 -1
  70. package/server-dist/dist/llm/providers/openai.d.ts +0 -3
  71. package/server-dist/dist/llm/providers/openai.d.ts.map +0 -1
  72. package/server-dist/dist/llm/providers/openai.js +0 -40
  73. package/server-dist/dist/llm/providers/openai.js.map +0 -1
  74. package/server-dist/dist/llm/types.d.ts +0 -22
  75. package/server-dist/dist/llm/types.d.ts.map +0 -1
  76. package/server-dist/dist/llm/types.js +0 -5
  77. package/server-dist/dist/llm/types.js.map +0 -1
  78. package/server-dist/dist/routes/analysis.d.ts +0 -4
  79. package/server-dist/dist/routes/analysis.d.ts.map +0 -1
  80. package/server-dist/dist/routes/analysis.js +0 -370
  81. package/server-dist/dist/routes/analysis.js.map +0 -1
  82. package/server-dist/dist/routes/analytics.d.ts +0 -4
  83. package/server-dist/dist/routes/analytics.d.ts.map +0 -1
  84. package/server-dist/dist/routes/analytics.js +0 -57
  85. package/server-dist/dist/routes/analytics.js.map +0 -1
  86. package/server-dist/dist/routes/config.d.ts +0 -4
  87. package/server-dist/dist/routes/config.d.ts.map +0 -1
  88. package/server-dist/dist/routes/config.js +0 -108
  89. package/server-dist/dist/routes/config.js.map +0 -1
  90. package/server-dist/dist/routes/export.d.ts +0 -4
  91. package/server-dist/dist/routes/export.d.ts.map +0 -1
  92. package/server-dist/dist/routes/export.js +0 -52
  93. package/server-dist/dist/routes/export.js.map +0 -1
  94. package/server-dist/dist/routes/insights.d.ts +0 -4
  95. package/server-dist/dist/routes/insights.d.ts.map +0 -1
  96. package/server-dist/dist/routes/insights.js +0 -80
  97. package/server-dist/dist/routes/insights.js.map +0 -1
  98. package/server-dist/dist/routes/messages.d.ts +0 -4
  99. package/server-dist/dist/routes/messages.d.ts.map +0 -1
  100. package/server-dist/dist/routes/messages.js +0 -19
  101. package/server-dist/dist/routes/messages.js.map +0 -1
  102. package/server-dist/dist/routes/projects.d.ts +0 -4
  103. package/server-dist/dist/routes/projects.d.ts.map +0 -1
  104. package/server-dist/dist/routes/projects.js +0 -32
  105. package/server-dist/dist/routes/projects.js.map +0 -1
  106. package/server-dist/dist/routes/sessions.d.ts +0 -4
  107. package/server-dist/dist/routes/sessions.d.ts.map +0 -1
  108. package/server-dist/dist/routes/sessions.js +0 -65
  109. package/server-dist/dist/routes/sessions.js.map +0 -1
  110. package/server-dist/dist/routes/telemetry.d.ts +0 -4
  111. package/server-dist/dist/routes/telemetry.d.ts.map +0 -1
  112. package/server-dist/dist/routes/telemetry.js +0 -21
  113. package/server-dist/dist/routes/telemetry.js.map +0 -1
  114. package/server-dist/dist/utils.d.ts +0 -6
  115. package/server-dist/dist/utils.d.ts.map +0 -1
  116. package/server-dist/dist/utils.js +0 -9
  117. package/server-dist/dist/utils.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,30 @@
2
2
 
3
3
  All notable changes to `@code-insights/cli` will be documented in this file.
4
4
 
5
+ ## [3.6.1] - 2026-03-04
6
+
7
+ ### Changed
8
+
9
+ - **PostHog custom domain** — Route telemetry events through `code-insights.app` instead of `us.i.posthog.com` to avoid ad-blocker interference. Updated both CLI (posthog-node) and dashboard (posthog-js).
10
+ - **README badges** — Added npm version, monthly downloads, license, Node.js version, and Socket security score badges.
11
+
12
+ ## [3.6.0] - 2026-03-04
13
+
14
+ ### Added
15
+
16
+ - **LLM-Powered Export Page** — The standalone Export Page is now a 4-step wizard that uses LLM synthesis to read across multiple sessions' insights and produce curated, deduplicated output. Instead of listing learnings verbatim, the LLM deduplicates overlapping insights, resolves conflicting decisions, prioritizes by confidence, and adds contextual "WHEN" conditions.
17
+ - **4 export formats** — Agent Rules (CLAUDE.md/.cursorrules), Knowledge Brief (markdown handoff), Obsidian (YAML frontmatter + wikilinks), Notion (toggle blocks + callouts + tables).
18
+ - **2 scope modes** — Project mode (single project, rules implicitly scoped) and All Projects mode (cross-project, LLM classifies rules as UNIVERSAL or PROJECT-SPECIFIC with project labels).
19
+ - **3 depth presets** — Essential (~25 top insights, fast), Standard (~80 insights, default), Comprehensive (~200 insights, thorough). Controls how many insights the LLM synthesizes.
20
+ - **SSE streaming** — Real-time progress feedback during LLM generation with loading_insights → synthesizing → complete phases.
21
+ - **AbortSignal support** — Cancel in-progress LLM generation to save tokens when navigating away.
22
+ - **Token budget guard** — Caps input at ~60k tokens with depth-based limits as the primary control.
23
+ - **Shared SSE utility** — Extracted `parseSSEStream` from AnalysisContext to `dashboard/src/lib/sse.ts` for reuse across streaming consumers.
24
+
25
+ ### Changed
26
+
27
+ - **SQLite schema V2** — Added compound index `idx_insights_confidence_timestamp` on insights table for depth-ordered export queries. Migration runs automatically on first use.
28
+
5
29
  ## [3.5.1] - 2026-03-03
6
30
 
7
31
  ### Changed