clawt 2.17.1 → 2.19.0
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.md +11 -0
- package/dist/index.js +477 -63
- package/dist/postinstall.js +35 -0
- package/docs/spec.md +242 -1
- package/package.json +1 -1
- package/src/commands/projects.ts +324 -0
- package/src/constants/config.ts +4 -0
- package/src/constants/index.ts +3 -1
- package/src/constants/messages/index.ts +6 -2
- package/src/constants/messages/projects.ts +25 -0
- package/src/constants/messages/update.ts +15 -0
- package/src/constants/paths.ts +3 -0
- package/src/constants/update.ts +11 -0
- package/src/index.ts +16 -2
- package/src/types/command.ts +8 -0
- package/src/types/config.ts +2 -0
- package/src/types/index.ts +2 -1
- package/src/types/project.ts +45 -0
- package/src/utils/formatter.ts +46 -0
- package/src/utils/fs.ts +32 -1
- package/src/utils/index.ts +3 -2
- package/src/utils/update-checker.ts +213 -0
- package/tests/unit/commands/alias.test.ts +1 -0
- package/tests/unit/commands/config.test.ts +4 -0
- package/tests/unit/utils/config-strategy.test.ts +4 -1
- package/tests/unit/utils/formatter.test.ts +91 -1
- package/tests/unit/utils/fs.test.ts +125 -2
- package/tests/unit/utils/update-checker.test.ts +439 -0
package/README.md
CHANGED
|
@@ -214,6 +214,16 @@ clawt status --json # JSON 格式
|
|
|
214
214
|
clawt reset
|
|
215
215
|
```
|
|
216
216
|
|
|
217
|
+
### `clawt projects` — 跨项目 worktree 概览
|
|
218
|
+
|
|
219
|
+
```bash
|
|
220
|
+
clawt projects # 查看所有项目概览
|
|
221
|
+
clawt projects my-project # 查看指定项目的 worktree 详情
|
|
222
|
+
clawt projects --json # JSON 格式输出
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
展示所有项目的 worktree 数量、磁盘占用和最近活跃时间,或查看指定项目下每个 worktree 的详细信息。
|
|
226
|
+
|
|
217
227
|
### `clawt config` — 交互式查看和修改配置
|
|
218
228
|
|
|
219
229
|
```bash
|
|
@@ -292,6 +302,7 @@ clawt alias remove l
|
|
|
292
302
|
| `maxConcurrency` | `0` | run 命令最大并发数,`0` 为不限制 |
|
|
293
303
|
| `terminalApp` | `"auto"` | 批量 resume 使用的终端:`auto` / `iterm2` / `terminal` |
|
|
294
304
|
| `aliases` | `{}` | 命令别名映射(如 `{"l": "list", "r": "run"}`) |
|
|
305
|
+
| `autoUpdate` | `true` | 自动检查新版本(每 24 小时检查一次 npm registry) |
|
|
295
306
|
|
|
296
307
|
## 全局选项
|
|
297
308
|
|