File tree Expand file tree Collapse file tree 8 files changed +46
-21
lines changed
Expand file tree Collapse file tree 8 files changed +46
-21
lines changed Original file line number Diff line number Diff line change @@ -21,12 +21,12 @@ usage: "/release <version>"
2121
2222例如:
2323``` bash
24- /release 3.6 .3
24+ /release 1.2 .3
2525```
2626
2727## 参数说明
2828
29- - ` <version> ` : 发布版本号,格式为 ` X.Y.Z ` (必需),例如 ` 3.6 .3`
29+ - ` <version> ` : 发布版本号,格式为 ` X.Y.Z ` (必需),例如 ` 1.2 .3`
3030
3131参数来源:` $ARGUMENTS `
3232
@@ -38,7 +38,7 @@ usage: "/release <version>"
3838
3939** 版本号格式验证** :
4040- 必须匹配 ` X.Y.Z ` 格式(X、Y、Z 均为非负整数)
41- - 如果格式不正确,报错退出:` 错误:版本号格式不正确,期望格式为 X.Y.Z(例如 3.6 .3) `
41+ - 如果格式不正确,报错退出:` 错误:版本号格式不正确,期望格式为 X.Y.Z(例如 1.2 .3) `
4242
4343** 解析版本组件** :
4444- 主版本号 MAJOR = X
9696- ` *.js ` — fit.js 中的 VERSION 常量
9797- ` package.json ` — Node.js 版本号
9898
99+ ** 必须排除的目录** (这些目录包含 AI 工具配置、命令模板和示例,不应被版本替换影响):
100+ - ` .ai-agents/ `
101+ - ` .ai-workspace/ `
102+ - ` .claude/ `
103+ - ` .codex/ `
104+ - ` .gemini/ `
105+ - ` .opencode/ `
106+
99107** 替换后验证** :
100108
101109```
@@ -192,15 +200,15 @@ git add -A && git commit -m "Prepare the next SNAPSHOT version"
192200
193201## 使用示例
194202
195- ### 示例 1:发布 3.6 .3
203+ ### 示例 1:发布 1.2 .3
196204
197205``` bash
198- /release 3.6 .3
206+ /release 1.2 .3
199207```
200208
201209执行后:
202- - ` 3.6 .3-SNAPSHOT` → ` 3.6 .3` (Release commit + tag ` v3.6 .3` + 分支 ` release-3.6 .3 ` )
203- - ` 3.6.3 ` → ` 3.6 .4-SNAPSHOT` (SNAPSHOT commit)
210+ - ` 1.2 .3-SNAPSHOT` → ` 1.2 .3` (Release commit + tag ` v1.2 .3` + 分支 ` release-1.2 .3 ` )
211+ - ` 1.2.3-SNAPSHOT ` → ` 1.2 .4-SNAPSHOT` (SNAPSHOT commit)
204212
205213### 示例 2:发布 4.0.0
206214
Original file line number Diff line number Diff line change @@ -11,10 +11,10 @@ usage: /prompts:release <version>
1111** 不含自动推送** :仅做本地操作,推送由用户手动完成。
1212
1313** 用法:**
14- - ` /prompts:release 3.6 .3 ` - 发布 3.6 .3 版本
14+ - ` /prompts:release 1.2 .3 ` - 发布 1.2 .3 版本
1515
1616** 参数说明:**
17- - ` <version> ` : 发布版本号,格式为 ` X.Y.Z ` (必需),例如 ` 3.6 .3`
17+ - ` <version> ` : 发布版本号,格式为 ` X.Y.Z ` (必需),例如 ` 1.2 .3`
1818
1919---
2020
@@ -26,7 +26,7 @@ usage: /prompts:release <version>
2626
2727** 版本号格式验证** :
2828- 必须匹配 ` X.Y.Z ` 格式(X、Y、Z 均为非负整数)
29- - 如果格式不正确,报错退出:` 错误:版本号格式不正确,期望格式为 X.Y.Z(例如 3.6 .3) `
29+ - 如果格式不正确,报错退出:` 错误:版本号格式不正确,期望格式为 X.Y.Z(例如 1.2 .3) `
3030
3131** 解析版本组件** :
3232- 主版本号 MAJOR = X
@@ -64,6 +64,14 @@ git status --short
6464- ` *.js ` — fit.js 中的 VERSION 常量
6565- ` package.json ` — Node.js 版本号
6666
67+ ** 必须排除的目录** (这些目录包含 AI 工具配置、命令模板和示例,不应被版本替换影响):
68+ - ` .ai-agents/ `
69+ - ` .ai-workspace/ `
70+ - ` .claude/ `
71+ - ` .codex/ `
72+ - ` .gemini/ `
73+ - ` .opencode/ `
74+
6775** 替换后验证** :
6876
6977再次搜索 ` X.Y.Z-SNAPSHOT ` ,确认没有残留。如果仍有残留,继续替换直到全部清除。
@@ -145,15 +153,15 @@ git add -A && git commit -m "Prepare the next SNAPSHOT version"
145153
146154## 使用示例
147155
148- ### 示例 1:发布 3.6 .3
156+ ### 示例 1:发布 1.2 .3
149157
150158``` bash
151- /prompts:release 3.6 .3
159+ /prompts:release 1.2 .3
152160```
153161
154162执行后:
155- - ` 3.6 .3-SNAPSHOT` → ` 3.6 .3` (Release commit + tag ` v3.6 .3` + 分支 ` release-3.6 .3 ` )
156- - 回退当前分支, ` 3.6 .3-SNAPSHOT` → ` 3.6 .4-SNAPSHOT` (SNAPSHOT commit)
163+ - ` 1.2 .3-SNAPSHOT` → ` 1.2 .3` (Release commit + tag ` v1.2 .3` + 分支 ` release-1.2 .3 ` )
164+ - ` 1.2 .3-SNAPSHOT` → ` 1.2 .4-SNAPSHOT` (SNAPSHOT commit)
157165
158166---
159167
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ prompt = """
1414
15151. **解析并验证参数**:
1616 - 版本号 = {{args}},必须匹配 `X.Y.Z` 格式(X、Y、Z 均为非负整数)
17- - 如果格式不正确,报错退出:`错误:版本号格式不正确,期望格式为 X.Y.Z(例如 3.6 .3)`
17+ - 如果格式不正确,报错退出:`错误:版本号格式不正确,期望格式为 X.Y.Z(例如 1.2 .3)`
1818 - 解析: SNAPSHOT 版本 = `X.Y.Z-SNAPSHOT`,发布版本 = `X.Y.Z`,下一 SNAPSHOT = `X.Y.(Z+1)-SNAPSHOT`
1919 - 使用 `search_files` 全局搜索 `X.Y.Z-SNAPSHOT`,确认存在。如果不存在则报错退出
2020
@@ -26,6 +26,7 @@ prompt = """
2626 - 使用 `search_files` 搜索所有包含 `X.Y.Z-SNAPSHOT` 的文件
2727 - 对于每个匹配的文件,使用 `replace` 将 `X.Y.Z-SNAPSHOT` 替换为 `X.Y.Z`
2828 - 覆盖范围包括但不限于: `**/pom.xml`、`README.md`、`docs/**/*.md`、`*.java`、`*.js`、`package.json`
29+ - **必须排除以下目录**(包含 AI 工具配置、命令模板和示例,不应被版本替换影响): `.ai-agents/`、`.ai-workspace/`、`.claude/`、`.codex/`、`.gemini/`、`.opencode/`
2930 - 替换后再次搜索 `X.Y.Z-SNAPSHOT`,确认没有残留
3031 - **记录所有替换过的文件列表**,步骤 8 需要用到
3132
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ subtask: false
1515
1616版本号来自用户输入参数,格式必须为 ` X.Y.Z ` (X、Y、Z 均为非负整数)。
1717
18- 如果格式不正确,报错退出:` ❌ 错误:版本号格式不正确,期望格式为 X.Y.Z(例如 3.6 .3) `
18+ 如果格式不正确,报错退出:` ❌ 错误:版本号格式不正确,期望格式为 X.Y.Z(例如 1.2 .3) `
1919
2020解析版本组件:
2121- SNAPSHOT 版本 = ` X.Y.Z-SNAPSHOT `
@@ -48,6 +48,14 @@ subtask: false
4848- ` *.js ` — fit.js 中的 VERSION 常量
4949- ` package.json ` — Node.js 版本号
5050
51+ ** 必须排除的目录** (这些目录包含 AI 工具配置、命令模板和示例,不应被版本替换影响):
52+ - ` .ai-agents/ `
53+ - ` .ai-workspace/ `
54+ - ` .claude/ `
55+ - ` .codex/ `
56+ - ` .gemini/ `
57+ - ` .opencode/ `
58+
5159** 记录所有替换过的文件列表** ,步骤 8 需要用到。
5260
5361替换后验证,再次搜索 ` X.Y.Z-SNAPSHOT ` ,确认没有残留。如果仍有残留,继续替换直到全部清除。
Original file line number Diff line number Diff line change 66FROM ubuntu:22.04
77
88LABEL description="AI coding sandbox with runtime and TUI tools"
9- LABEL version="3.6.3 -SNAPSHOT"
9+ LABEL version="3.7.0 -SNAPSHOT"
1010
1111ENV DEBIAN_FRONTEND=noninteractive
1212ENV TZ=Asia/Shanghai
Original file line number Diff line number Diff line change 11{
22 "name" : " fit-sandbox-cli" ,
3- "version" : " 3.6.3 -SNAPSHOT" ,
3+ "version" : " 3.7.0 -SNAPSHOT" ,
44 "description" : " AI coding sandbox CLI - manage Docker sandboxes with Git Worktree isolation" ,
55 "type" : " module" ,
66 "scripts" : {
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ const program = new Command();
1212program
1313 . name ( 'sandbox' )
1414 . description ( 'AI Coding Sandbox (macOS only) - 基于 Colima + Docker + Git Worktree 的隔离开发环境' )
15- . version ( '3.6.3 -SNAPSHOT' ) ;
15+ . version ( '3.7.0 -SNAPSHOT' ) ;
1616
1717// ========== create ==========
1818program
You can’t perform that action at this time.
0 commit comments