clawt 3.4.0 → 3.4.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.
- package/README.md +4 -3
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/constants/config.ts +1 -1
package/README.md
CHANGED
|
@@ -17,7 +17,9 @@ npm i -g clawt
|
|
|
17
17
|
## 快速开始
|
|
18
18
|
|
|
19
19
|
```bash
|
|
20
|
-
# 1. 在项目根目录(包含 .git
|
|
20
|
+
# 1. 在项目根目录(包含 .git 的目录)下初始化
|
|
21
|
+
clawt init
|
|
22
|
+
|
|
21
23
|
# 2. 并行执行 3 个任务,每个任务在独立的 worktree 中运行
|
|
22
24
|
clawt run -b <branch-1>
|
|
23
25
|
clawt run -b <branch-2>
|
|
@@ -31,12 +33,11 @@ clawt validate -b branch-1
|
|
|
31
33
|
|
|
32
34
|
# 5. 确认无误后合并到主分支
|
|
33
35
|
clawt merge -b branch-1 -m "feat: 实现xxx功能"
|
|
34
|
-
|
|
35
36
|
```
|
|
36
37
|
|
|
37
38
|
## 命令一览
|
|
38
39
|
|
|
39
|
-
>
|
|
40
|
+
> 除 `config`、`alias`、`projects`、`completion` 外,其余命令需在**主 worktree 的仓库根目录**下执行。`-b` 参数支持模糊匹配。大部分操作命令(`run`、`create`、`validate`、`merge` 等)需要先执行 `clawt init`。
|
|
40
41
|
|
|
41
42
|
### `clawt init` — 初始化项目级配置
|
|
42
43
|
|
package/dist/index.js
CHANGED
|
@@ -593,7 +593,7 @@ var VALID_TERMINAL_APPS = ["auto", "iterm2", "terminal"];
|
|
|
593
593
|
var ITERM2_APP_PATH = "/Applications/iTerm.app";
|
|
594
594
|
|
|
595
595
|
// src/constants/config.ts
|
|
596
|
-
var APPEND_SYSTEM_PROMPT = "
|
|
596
|
+
var APPEND_SYSTEM_PROMPT = "Currently, you are in the git worktree directory. There are no dependencies. To save disk space and improve the speed of task completion, installing dependencies is prohibited.";
|
|
597
597
|
var CONFIG_DEFINITIONS = {
|
|
598
598
|
autoDeleteBranch: {
|
|
599
599
|
defaultValue: false,
|
package/package.json
CHANGED
package/src/constants/config.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { VALID_TERMINAL_APPS } from './terminal.js';
|
|
|
3
3
|
|
|
4
4
|
/** Claude Code 系统约束提示 */
|
|
5
5
|
export const APPEND_SYSTEM_PROMPT =
|
|
6
|
-
'
|
|
6
|
+
'Currently, you are in the git worktree directory. There are no dependencies. To save disk space and improve the speed of task completion, installing dependencies is prohibited.';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* 配置项完整定义(单一数据源)
|