sillyspec 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.
|
@@ -25,6 +25,15 @@ cat .sillyspec/config.yaml 2>/dev/null
|
|
|
25
25
|
|
|
26
26
|
- 无参数 / `status` → 显示状态
|
|
27
27
|
- `add` → 添加子项目
|
|
28
|
+
|
|
29
|
+
**添加流程:**
|
|
30
|
+
1. AskUserQuestion 询问子项目名称、目录路径、角色描述
|
|
31
|
+
2. **自动检测 git 远程地址:**
|
|
32
|
+
```bash
|
|
33
|
+
git -C <path> remote get-url origin 2>/dev/null
|
|
34
|
+
```
|
|
35
|
+
检测到则写入 repo 字段,检测不到则留空
|
|
36
|
+
3. 更新 config.yaml,追加子项目配置
|
|
28
37
|
- `remove` → 移除子项目
|
|
29
38
|
- `sync` → 同步子项目(clone 缺失的,检查冲突)
|
|
30
39
|
|
package/package.json
CHANGED
package/templates/workspace.md
CHANGED
|
@@ -25,6 +25,15 @@ cat .sillyspec/config.yaml 2>/dev/null
|
|
|
25
25
|
|
|
26
26
|
- 无参数 / `status` → 显示状态
|
|
27
27
|
- `add` → 添加子项目
|
|
28
|
+
|
|
29
|
+
**添加流程:**
|
|
30
|
+
1. AskUserQuestion 询问子项目名称、目录路径、角色描述
|
|
31
|
+
2. **自动检测 git 远程地址:**
|
|
32
|
+
```bash
|
|
33
|
+
git -C <path> remote get-url origin 2>/dev/null
|
|
34
|
+
```
|
|
35
|
+
检测到则写入 repo 字段,检测不到则留空
|
|
36
|
+
3. 更新 config.yaml,追加子项目配置
|
|
28
37
|
- `remove` → 移除子项目
|
|
29
38
|
- `sync` → 同步子项目(clone 缺失的,检查冲突)
|
|
30
39
|
|