claudecode-history-viewer 1.0.2 → 1.0.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/README.en-US.md CHANGED
@@ -25,10 +25,12 @@ Requires **Node.js 18+**. Optional: existing `~/.claude` / `~/.cursor` history o
25
25
  ### Use from npm (recommended)
26
26
 
27
27
  ```bash
28
- npx claudecode-history-viewer
28
+ npx -y claudecode-history-viewer
29
29
  ```
30
30
 
31
- Or install globally:
31
+ `npx` may ask to install the package on first run; `-y` skips the prompt. Later runs often skip it once cached.
32
+
33
+ Or install globally (no prompt):
32
34
 
33
35
  ```bash
34
36
  npm install -g claudecode-history-viewer
@@ -37,7 +39,7 @@ claudecode-history-viewer
37
39
 
38
40
  Open **http://localhost:3747**
39
41
 
40
- Disable auto-open: `NO_OPEN_BROWSER=1 npx claudecode-history-viewer`
42
+ Disable auto-open: `NO_OPEN_BROWSER=1 npx -y claudecode-history-viewer`
41
43
 
42
44
  ### Clone from GitHub (development)
43
45
 
@@ -113,7 +115,7 @@ Project slugs like `-Users-you-code-project` are decoded to readable paths in th
113
115
 
114
116
  | Issue | Fix |
115
117
  |-------|-----|
116
- | Cannot connect to backend | Run `npx claudecode-history-viewer` or `npm start`; ensure port `3747` is free |
118
+ | Cannot connect to backend | Run `npx -y claudecode-history-viewer` or `npm start`; ensure port `3747` is free |
117
119
  | Empty session list | Ensure history dirs exist and tools have written data |
118
120
  | Search/highlight off | Press **Enter** in in-session search, or use ◀ ▶ after render |
119
121
 
package/README.md CHANGED
@@ -25,10 +25,12 @@
25
25
  ### 从 npm 使用(推荐)
26
26
 
27
27
  ```bash
28
- npx claudecode-history-viewer
28
+ npx -y claudecode-history-viewer
29
29
  ```
30
30
 
31
- 或全局安装后执行:
31
+ `npx` 首次运行会询问是否安装依赖,加 `-y` 可跳过确认;装过后再次执行通常不再提示。
32
+
33
+ 或全局安装后执行(无二次确认):
32
34
 
33
35
  ```bash
34
36
  npm install -g claudecode-history-viewer
@@ -37,7 +39,7 @@ claudecode-history-viewer
37
39
 
38
40
  浏览器访问 **http://localhost:3747**
39
41
 
40
- 禁用自动打开:`NO_OPEN_BROWSER=1 npx claudecode-history-viewer`
42
+ 禁用自动打开:`NO_OPEN_BROWSER=1 npx -y claudecode-history-viewer`
41
43
 
42
44
  ### 从 GitHub 克隆(开发 / 改代码)
43
45
 
@@ -113,7 +115,7 @@ npm run build && npm start
113
115
 
114
116
  | 问题 | 处理 |
115
117
  |------|------|
116
- | 无法连接后端 | 确认已运行 `npx claudecode-history-viewer` 或 `npm start`,端口 `3747` 未被占用 |
118
+ | 无法连接后端 | 确认已运行 `npx -y claudecode-history-viewer` 或 `npm start`,端口 `3747` 未被占用 |
117
119
  | 列表为空 | 确认对应目录存在且已有工具产生的历史 |
118
120
  | 搜索/高亮不准 | 会话内搜索按 **回车** 或等渲染后用 ◀ ▶ |
119
121