claude-starter 1.2.0 → 1.3.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 (3) hide show
  1. package/README.md +50 -44
  2. package/index.js +626 -241
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -59,36 +59,27 @@ claude-starter
59
59
  - `auth` → 所有认证相关的对话
60
60
  - `refactor` → 上周的代码重构
61
61
  - `web-app fix` → 某个项目的 bug 修复
62
- - `#bug-fix` → 所有打了 bug-fix 标签的对话
63
- - `fav` → 所有收藏的对话
64
62
 
65
63
  **不需要管理模式,不需要确认。输入即搜,方向键即走。**
66
64
 
67
- ## ⭐ 收藏 & 🏷️ 标签 — 组织你的对话
68
-
69
- 按 `f` 收藏/取消收藏,按 `#` 打标签。
70
-
71
- - **收藏**:重要的对话一键标星,排序切到 `favorites` 模式收藏置顶
72
- - **标签**:预设 8 种标签(`bug-fix`、`feature`、`refactor` 等),支持自定义
73
- - **搜索联动**:`/` 搜索支持 `#tag` 语法和 `fav` 关键字
74
- - **持久化**:数据存在 `~/.claude/claude-starter-meta.json`,重启不丢失
75
-
76
65
  ## 核心能力
77
66
 
78
67
  | | 功能 | 说明 |
79
68
  |---|---|---|
80
69
  | 🎨 | **精美 TUI** | Tokyo Night 配色,分屏布局,终端里的 App |
81
70
  | ✨ | **一键新建** | 列表顶部直接新建对话 |
82
- | 🔍 | **即时搜索** | `/` 全文搜索,无需回车,支持 `#tag` 和 `fav` |
83
- | ⭐ | **收藏** | `f` 收藏重要对话,排序置顶 |
84
- | 🏷️ | **标签** | `#` 分类管理,预设 + 自定义标签 |
71
+ | 🔍 | **即时搜索** | `/` 全文搜索,无需回车 |
85
72
  | 📂 | **项目过滤** | `p` 按项目筛选 |
86
73
  | ⚡ | **秒级恢复** | 选中 → Enter → 回到对话 |
87
74
  | 📋 | **对话预览** | 右侧面板展示完整元数据和对话历史 |
88
- | 🔀 | **多种排序** | 时间 / 大小 / 消息数 / 项目 / 收藏 |
75
+ | 🔀 | **多种排序** | 时间 / 大小 / 消息数 / 项目 |
89
76
  | 📎 | **复制 ID** | `c` 一键复制到剪贴板 |
77
+ | 🔒 | **权限模式** | `m` 设置权限模式,`d` 一键 danger 模式恢复 |
78
+ | ✏️ | **重命名会话** | `r` 直接重命名,支持中文输入 |
79
+ | 🗑️ | **删除会话** | `x` 删除不需要的会话 |
80
+ | ⌨️ | **Vim 快捷键** | `j`/`k` 上下,`g`/`G` 跳顶/底 |
90
81
  | 🧠 | **智能 CLI** | 自动检测 `mai-claude` / `claude` |
91
- | 🔒 | **完全本地** | 不联网,不上传,不追踪 |
82
+ | 🔐 | **完全本地** | 不联网,不上传,不追踪 |
92
83
 
93
84
  ## 安装
94
85
 
@@ -107,22 +98,34 @@ npm link
107
98
 
108
99
  然后运行 `claude-starter`,就这么简单。
109
100
 
101
+ ## CLI 参数
102
+
103
+ ```bash
104
+ claude-starter # 启动交互式 TUI
105
+ claude-starter --list [N] # 打印最近 N 个会话(默认 30)
106
+ claude-starter --version # 显示版本号
107
+ claude-starter --update # 检查并更新到最新版本
108
+ claude-starter --help # 显示帮助信息
109
+ ```
110
+
110
111
  ## 快捷键
111
112
 
112
113
  | 按键 | 功能 |
113
114
  |:---:|------|
114
- | `↑` `↓` | 上下导航 |
115
+ | `↑` `↓` / `j` `k` | 上下导航 |
115
116
  | `Enter` | 新建 / 恢复对话 |
116
117
  | `n` | 直接新建 |
117
- | `/` | 搜索(支持 `#tag` 和 `fav`) |
118
- | `f` | 收藏 / 取消收藏 ⭐ |
119
- | `#` | 添加 / 管理标签 🏷️ |
118
+ | `d` | Danger 模式恢复(bypassPermissions) |
119
+ | `m` | 权限模式选择器 |
120
+ | `r` | 重命名会话 |
121
+ | `/` | 搜索 |
120
122
  | `Backspace` | 删除搜索字符,删空自动退出 |
121
123
  | `Esc` | 清空搜索 |
122
124
  | `p` | 按项目过滤 |
123
- | `s` | 切换排序(时间/大小/消息数/项目/收藏) |
125
+ | `s` | 切换排序(时间/大小/消息数/项目) |
124
126
  | `c` | 复制 Session ID |
125
- | `Home` / `End` | 跳到顶 / 底 |
127
+ | `x` / `Delete` | 删除会话 |
128
+ | `g` / `G` | 跳到顶 / 底 |
126
129
  | `Ctrl-D` / `Ctrl-U` | 翻页 |
127
130
  | `q` / `Ctrl-C` | 退出 |
128
131
 
@@ -164,36 +167,27 @@ Searches across **everything** — project names, Git branches, conversation con
164
167
  - `auth` → all auth-related sessions
165
168
  - `refactor` → that cleanup from last week
166
169
  - `web-app fix` → bug fixes in a specific project
167
- - `#bug-fix` → all sessions tagged with bug-fix
168
- - `fav` → all favorited sessions
169
170
 
170
171
  **No modes. No confirmation. Just type and go.**
171
172
 
172
- ## ⭐ Favorites & 🏷️ Tags
173
-
174
- Press `f` to favorite/unfavorite, `#` to add tags.
175
-
176
- - **Favorites**: Star important sessions, sort by favorites to pin them at top
177
- - **Tags**: 8 built-in tags (`bug-fix`, `feature`, `refactor`, etc.) + custom tags
178
- - **Search integration**: Use `#tag` syntax or `fav` keyword in search
179
- - **Persistent**: Stored in `~/.claude/claude-starter-meta.json`, survives restarts
180
-
181
173
  ## Features
182
174
 
183
175
  | | Feature | Description |
184
176
  |---|---|---|
185
177
  | 🎨 | **Beautiful TUI** | Tokyo Night color scheme, split-pane layout, feels native in your terminal |
186
178
  | ✨ | **New Session** | Launch a fresh conversation in one keystroke |
187
- | 🔍 | **Instant Search** | Fuzzy search across everything, supports `#tag` and `fav` |
188
- | ⭐ | **Favorites** | Press `f` to star important sessions |
189
- | 🏷️ | **Tags** | Press `#` to categorize with built-in + custom tags |
179
+ | 🔍 | **Instant Search** | Fuzzy search across everything |
190
180
  | 📂 | **Project Filter** | Press `p` to filter by project |
191
181
  | ⚡ | **One-Key Resume** | Arrow, Enter, you're back in the conversation |
192
182
  | 📋 | **Session Preview** | Full metadata + conversation history in the right panel |
193
- | 🔀 | **Sort Modes** | Sort by time, size, messages, project, or favorites |
183
+ | 🔀 | **Sort Modes** | Sort by time, size, messages, or project |
194
184
  | 📎 | **Copy ID** | Press `c` to copy session ID |
185
+ | 🔒 | **Permission Modes** | Press `m` to configure, `d` for quick danger-mode resume |
186
+ | ✏️ | **Rename Sessions** | Press `r` to rename, supports CJK input |
187
+ | 🗑️ | **Delete Sessions** | Press `x` to remove unwanted sessions |
188
+ | ⌨️ | **Vim Keybindings** | `j`/`k` navigate, `g`/`G` jump to top/bottom |
195
189
  | 🧠 | **Smart CLI** | Auto-detects `mai-claude` vs `claude` |
196
- | 🔒 | **100% Local** | No network, no telemetry, no data leaves your machine |
190
+ | 🔐 | **100% Local** | No network, no telemetry, no data leaves your machine |
197
191
 
198
192
  ## Install
199
193
 
@@ -216,22 +210,34 @@ Then run:
216
210
  claude-starter
217
211
  ```
218
212
 
213
+ ## CLI Options
214
+
215
+ ```bash
216
+ claude-starter # Launch interactive TUI
217
+ claude-starter --list [N] # Print latest N sessions (default: 30)
218
+ claude-starter --version # Show version
219
+ claude-starter --update # Update to the latest version
220
+ claude-starter --help # Show help
221
+ ```
222
+
219
223
  ## Keyboard Shortcuts
220
224
 
221
225
  | Key | Action |
222
226
  |:---:|--------|
223
- | `↑` `↓` | Navigate sessions |
227
+ | `↑` `↓` / `j` `k` | Navigate sessions |
224
228
  | `Enter` | Start new / resume selected session |
225
229
  | `n` | New session |
226
- | `/` | Search (supports `#tag` and `fav`) |
227
- | `f` | Toggle favorite |
228
- | `#` | Add/manage tags 🏷️ |
230
+ | `d` | Resume with bypassPermissions (danger mode) |
231
+ | `m` | Permission mode picker |
232
+ | `r` | Rename session |
233
+ | `/` | Search |
229
234
  | `Backspace` | Edit search, auto-exit when empty |
230
235
  | `Esc` | Clear filter |
231
236
  | `p` | Filter by project |
232
- | `s` | Cycle sort mode (time/size/messages/project/favorites) |
237
+ | `s` | Cycle sort mode (time/size/messages/project) |
233
238
  | `c` | Copy session ID |
234
- | `Home` / `End` | Jump to first / last |
239
+ | `x` / `Delete` | Delete session |
240
+ | `g` / `G` | Jump to top / bottom |
235
241
  | `Ctrl-D` / `Ctrl-U` | Page down / up |
236
242
  | `q` / `Ctrl-C` | Quit |
237
243