cc-insight 0.1.3 → 0.1.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-insight",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "Local Claude Code usage dashboard — sessions, skills, efficiency, MCP servers, and shareable poster",
5
5
  "type": "module",
6
6
  "bin": {
@@ -2,14 +2,14 @@
2
2
  import { setRange } from './app.js'
3
3
 
4
4
  const TOPIC_COLORS = {
5
- '调试修复': 'var(--green)',
6
- '功能开发': 'var(--cyan)',
7
- '新功能开发': 'var(--cyan)', // 旧数据兼容
8
- '架构设计': 'var(--amber)',
9
- '代码重构': 'var(--purple)',
10
- '学习探索': 'var(--red)',
11
- '配置运维': '#06b6d4',
12
- '数据分析': '#f97316',
5
+ '调试修复': '#4ade80',
6
+ '功能开发': '#22d3ee',
7
+ '新功能开发': '#22d3ee', // 旧数据兼容
8
+ '架构设计': '#f59e0b',
9
+ '代码重构': '#a78bfa',
10
+ '学习探索': '#f472b6',
11
+ '配置运维': '#60a5fa',
12
+ '数据分析': '#f87171',
13
13
  '其他': 'var(--muted)',
14
14
  }
15
15
 
@@ -20,9 +20,9 @@ const TOPIC_HEX = {
20
20
  '新功能开发': '34,211,238', // 旧数据兼容
21
21
  '架构设计': '245,158,11',
22
22
  '代码重构': '167,139,250',
23
- '学习探索': '248,113,113',
24
- '配置运维': '6,182,212',
25
- '数据分析': '249,115,22',
23
+ '学习探索': '244,114,182',
24
+ '配置运维': '96,165,250',
25
+ '数据分析': '248,113,113',
26
26
  '其他': '107,114,128',
27
27
  }
28
28
 
package/src/db/db.js CHANGED
@@ -23,6 +23,8 @@ export function getDb() {
23
23
  if (!existingCols.includes('first_user_msg')) {
24
24
  _db.exec('ALTER TABLE sessions ADD COLUMN first_user_msg TEXT')
25
25
  }
26
+ // 迁移:话题名重命名
27
+ _db.exec(`UPDATE sessions SET topic = '功能开发' WHERE topic = '新功能开发'`)
26
28
  return _db
27
29
  }
28
30