@clawos-dev/clawd 0.2.48-beta.75.1f74136 → 0.2.48
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.
|
@@ -29,14 +29,15 @@ clawd 的 OwnerProfile 是 `~/.clawd/profile.json`,schema v1 只有一个字
|
|
|
29
29
|
|
|
30
30
|
**记录里没有时**,按顺序探测:
|
|
31
31
|
|
|
32
|
-
1.
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
32
|
+
1. **自动搜本机**——`clawos.code-workspace` 是仓库根的标志文件(仓库名也是 `clawos`),用 Bash 在老板 home dir 限深扫一遍:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
find ~ -maxdepth 5 -name "clawos.code-workspace" -not -path "*/node_modules/*" 2>/dev/null | head -5
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
- **1 条结果**:取它的父目录即仓库路径,跳到下面「拿到路径后」一节
|
|
39
|
+
- **多条结果**(老板可能开了多个 worktree / 分支):把候选列给老板挑哪个是主要工作目录,再走「拿到路径后」
|
|
40
|
+
- **0 条结果**:走下面 2-3 步引导 clone
|
|
40
41
|
|
|
41
42
|
2. **没命中**就问老板:「您本地有 clawos 仓库的 clone 吗?路径告诉我;没有的话我建议执行以下命令」:
|
|
42
43
|
```
|
package/package.json
CHANGED