zen-gitsync 2.13.14 → 2.13.15

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 CHANGED
@@ -262,6 +262,7 @@ A dedicated view (fourth icon in the activity bar) for batch-running Claude agai
262
262
  | Running animation | Subtasks in `running` state get a breathing primary-color glow + a sliding progress bar on top of the card; the status badge uses a shimmer gradient with a pulsing white dot and outer halo, easing back to neutral on completion |
263
263
  | Cross-view indicator | While any Workbench subtask is running, a pulsing dot appears on the Workbench icon in the Activity Bar so you can see job state from the Git or Editor view |
264
264
  | Execution log manager (dialog) | The "Execution logs" button in the workbench top bar (replaces the previous standalone tab) opens a dialog with the list / filter / batch delete / clear / retention-policy UI; the task execution view stays mounted so no work-in-progress state is dropped |
265
+ | Continue chat (simple task) | After a simple task finishes (done / error / cancelled), the detail panel grows an **Exit** button and a follow-up composer; sending a follow-up message spawns `claude --resume <session_id> -p <newPrompt>` to continue the prior conversation, and each new turn appears as its own card stacked into a chat-style flow. The `session_id` is captured from claude's stream-json `system.init` event and persisted on the job |
265
266
 
266
267
  Prompt presets and tasks are persisted to `~/.zen-gitsync/prompts.json` and `~/.zen-gitsync/tasks.json` (cross-project, shared across repos).
267
268
 
@@ -658,6 +659,7 @@ Activity Bar 第四个视图,用于在当前仓库上批量调度 Claude:定
658
659
  | 执行中动效 | 状态为 `running` 的子任务卡片整体呈现蓝色呼吸光晕 + 顶部流动进度光带;状态徽章为渐变 shimmer + 脉冲白点 + 外发光,停下后平滑恢复 |
659
660
  | 跨视图指示 | 任意子任务运行中时,Activity Bar 上的工作台图标会显示脉动小圆点;切换到 Git 或编辑器视图也能看到运行状态 |
660
661
  | 执行日志管理(弹窗) | 顶部「执行日志」按钮(替代原独立 tab)唤起弹窗:列表 / 过滤 / 批量删除 / 清空 / 保留策略全部可在此一次性管理;弹窗关闭后任务执行视图常驻,避免切换时不必要的卸载 |
662
+ | 简单任务继续对话 | 简单任务执行完(done / error / cancelled)后,详情区底部出现「退出」按钮和续聊输入框;点退出走 `clearJobsByTask` 一键清空整段对话回到 idle;输入续聊消息发送则后端用 `claude --resume <session_id> -p <newPrompt>` 续接历史会话,**新一轮 = 新 job**(subId 形如 `__simple__r${n}`),多轮纵向堆叠成对话流。session_id 在 stream-json 的首条 `system.init` 事件里捕获并持久化到 job |
661
663
 
662
664
  提示词预置与任务数据持久化到 `~/.zen-gitsync/prompts.json` 和 `~/.zen-gitsync/tasks.json`(跨项目共享)。子任务附件落盘在 `~/.zen-gitsync/workbench-images/<subId>/`。
663
665
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zen-gitsync",
3
- "version": "2.13.14",
3
+ "version": "2.13.15",
4
4
  "description": "Auto commit, scheduled sync, and visual GUI for Git. Run `g` in any repo for one-key commit & push, AI commit messages, scheduled background sync, and a drag-and-drop workflow builder.",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -1,196 +1,196 @@
1
- # 颜色值转换工具使用说明
2
-
3
- ## 功能说明
4
-
5
- 该脚本将项目中硬编码的十六进制颜色值转换为标准的 CSS 变量引用。
6
-
7
- ## 颜色映射规则
8
-
9
- 基于项目中的 `src/ui/client/src/styles/variables.scss` 定义:
10
-
11
- ### 主色调
12
- - `#409eff` → `var(--color-primary)`
13
- - `#5a67d8`, `#66b1ff` → `var(--color-primary-light)`
14
- - `#337ecc` → `var(--color-primary-dark)`
15
-
16
- ### 成功色
17
- - `#67c23a` → `var(--color-success)`
18
- - `#10b981` → `var(--color-success-light)`
19
-
20
- ### 警告色
21
- - `#e6a23c` → `var(--color-warning)`
22
- - `#f59e0b` → `var(--color-warning-light)`
23
-
24
- ### 危险色
25
- - `#f56c6c` → `var(--color-danger)`
26
- - `#ef4444` → `var(--color-danger-light)`
27
- - `#dc2626` → `var(--color-danger-dark)`
28
-
29
- ### 信息色
30
- - `#909399` → `var(--color-info)`
31
- - `#8b5cf6` → `var(--color-info-light)`
32
-
33
- ### 文字颜色
34
- - `#303133` → `var(--text-primary)`
35
- - `#606266` → `var(--text-secondary)`
36
- - `#909399` → `var(--text-tertiary)`
37
- - `#c0c4cc`, `#a8abb2` → `var(--text-placeholder)`
38
-
39
- ### Git 状态颜色
40
- - `#10b981` → `var(--git-status-added)`
41
- - `#f59e0b` → `var(--git-status-modified)`
42
- - `#ef4444` → `var(--git-status-deleted)`
43
- - `#8b5cf6` → `var(--git-status-untracked)`
44
-
45
- ## 使用方法
46
-
47
- ### 预览模式(推荐先运行)
48
-
49
- ```bash
50
- # 预览将要进行的更改,不修改文件
51
- node scripts/convert-colors-to-vars.cjs --dry-run
52
- ```
53
-
54
- ### 实际应用
55
-
56
- ```bash
57
- # 应用更改到文件
58
- node scripts/convert-colors-to-vars.cjs
59
- ```
60
-
61
- ## 转换示例
62
-
63
- **转换前:**
64
- ```vue
65
- <style>
66
- .button {
67
- background: #409eff;
68
- color: #ffffff;
69
- border: 1px solid #66b1ff;
70
- }
71
-
72
- .success-button {
73
- background: #67c23a;
74
- }
75
-
76
- .text {
77
- color: #303133;
78
- }
79
- </style>
80
- ```
81
-
82
- **转换后:**
83
- ```vue
84
- <style>
85
- .button {
86
- background: var(--color-primary);
87
- color: var(--color-white);
88
- border: 1px solid var(--color-primary-light);
89
- }
90
-
91
- .success-button {
92
- background: var(--color-success);
93
- }
94
-
95
- .text {
96
- color: var(--text-primary);
97
- }
98
- </style>
99
- ```
100
-
101
- ## 支持的文件类型
102
-
103
- - `.vue` - Vue 单文件组件
104
- - `.scss` - Sass 样式文件
105
- - `.css` - 纯 CSS 文件
106
-
107
- ## 跳过的文件
108
-
109
- 脚本会自动跳过以下文件(这些文件定义了变量本身):
110
- - `variables.scss`
111
- - `dark-theme.scss`
112
-
113
- 同时自动跳过以下目录:
114
- - `node_modules`
115
- - `.git`
116
- - `dist`
117
-
118
- ## 输出报告
119
-
120
- 执行完成后会显示详细的统计报告:
121
-
122
- ```
123
- 📊 转换统计报告
124
- ============================================================
125
- 总文件数: 150
126
- 修改文件数: 42
127
- 总替换次数: 289
128
-
129
- 📋 替换详情:
130
- #409eff => var(--color-primary): 78 次
131
- #67c23a => var(--color-success): 45 次
132
- #f56c6c => var(--color-danger): 32 次
133
- ...
134
-
135
- ⚠️ 未映射的颜色(需要手动检查):
136
- #f8faff
137
- #eef4ff
138
- ...
139
- ```
140
-
141
- ## 注意事项
142
-
143
- 1. **备份建议**:运行脚本前建议先使用 `--dry-run` 参数预览更改
144
- 2. **Git 提交**:建议在运行前提交当前代码,方便回滚
145
- 3. **未映射颜色**:脚本会列出未映射的颜色,需要手动检查这些颜色是否需要添加到映射表
146
- 4. **特殊颜色**:某些渐变色或特殊效果的颜色可能需要保留原值
147
- 5. **rgba 颜色**:当前脚本仅处理十六进制颜色值,rgba 格式需要手动处理
148
-
149
- ## 优势
150
-
151
- 使用 CSS 变量替代硬编码颜色的好处:
152
-
153
- 1. **统一管理**:所有颜色在 `variables.scss` 中统一定义
154
- 2. **主题切换**:轻松实现深色主题等样式变体
155
- 3. **易于维护**:修改变量值即可全局更新
156
- 4. **语义化**:变量名更具可读性(如 `--color-success` vs `#67c23a`)
157
- 5. **一致性**:确保整个项目使用统一的配色方案
158
-
159
- ## 扩展映射表
160
-
161
- 如果发现新的颜色值需要映射,编辑脚本中的 `COLOR_MAP` 对象:
162
-
163
- ```javascript
164
- const COLOR_MAP = {
165
- // 添加新的映射
166
- '#your-color': 'var(--your-variable)',
167
- // ...
168
- };
169
- ```
170
-
171
- ## 回滚方法
172
-
173
- 如果需要回滚更改:
174
-
175
- ```bash
176
- # 如果还未提交
177
- git checkout -- src/
178
-
179
- # 如果已提交
180
- git revert <commit-hash>
181
- ```
182
-
183
- ## 与其他脚本配合
184
-
185
- 该脚本可以与其他样式标准化脚本配合使用:
186
-
187
- ```bash
188
- # 1. 转换间距值
189
- node scripts/convert-spacing-to-vars.cjs
190
-
191
- # 2. 转换圆角和阴影
192
- node scripts/convert-to-standard-vars.js
193
-
194
- # 3. 转换颜色值
195
- node scripts/convert-colors-to-vars.cjs
196
- ```
1
+ # 颜色值转换工具使用说明
2
+
3
+ ## 功能说明
4
+
5
+ 该脚本将项目中硬编码的十六进制颜色值转换为标准的 CSS 变量引用。
6
+
7
+ ## 颜色映射规则
8
+
9
+ 基于项目中的 `src/ui/client/src/styles/variables.scss` 定义:
10
+
11
+ ### 主色调
12
+ - `#409eff` → `var(--color-primary)`
13
+ - `#5a67d8`, `#66b1ff` → `var(--color-primary-light)`
14
+ - `#337ecc` → `var(--color-primary-dark)`
15
+
16
+ ### 成功色
17
+ - `#67c23a` → `var(--color-success)`
18
+ - `#10b981` → `var(--color-success-light)`
19
+
20
+ ### 警告色
21
+ - `#e6a23c` → `var(--color-warning)`
22
+ - `#f59e0b` → `var(--color-warning-light)`
23
+
24
+ ### 危险色
25
+ - `#f56c6c` → `var(--color-danger)`
26
+ - `#ef4444` → `var(--color-danger-light)`
27
+ - `#dc2626` → `var(--color-danger-dark)`
28
+
29
+ ### 信息色
30
+ - `#909399` → `var(--color-info)`
31
+ - `#8b5cf6` → `var(--color-info-light)`
32
+
33
+ ### 文字颜色
34
+ - `#303133` → `var(--text-primary)`
35
+ - `#606266` → `var(--text-secondary)`
36
+ - `#909399` → `var(--text-tertiary)`
37
+ - `#c0c4cc`, `#a8abb2` → `var(--text-placeholder)`
38
+
39
+ ### Git 状态颜色
40
+ - `#10b981` → `var(--git-status-added)`
41
+ - `#f59e0b` → `var(--git-status-modified)`
42
+ - `#ef4444` → `var(--git-status-deleted)`
43
+ - `#8b5cf6` → `var(--git-status-untracked)`
44
+
45
+ ## 使用方法
46
+
47
+ ### 预览模式(推荐先运行)
48
+
49
+ ```bash
50
+ # 预览将要进行的更改,不修改文件
51
+ node scripts/convert-colors-to-vars.cjs --dry-run
52
+ ```
53
+
54
+ ### 实际应用
55
+
56
+ ```bash
57
+ # 应用更改到文件
58
+ node scripts/convert-colors-to-vars.cjs
59
+ ```
60
+
61
+ ## 转换示例
62
+
63
+ **转换前:**
64
+ ```vue
65
+ <style>
66
+ .button {
67
+ background: #409eff;
68
+ color: #ffffff;
69
+ border: 1px solid #66b1ff;
70
+ }
71
+
72
+ .success-button {
73
+ background: #67c23a;
74
+ }
75
+
76
+ .text {
77
+ color: #303133;
78
+ }
79
+ </style>
80
+ ```
81
+
82
+ **转换后:**
83
+ ```vue
84
+ <style>
85
+ .button {
86
+ background: var(--color-primary);
87
+ color: var(--color-white);
88
+ border: 1px solid var(--color-primary-light);
89
+ }
90
+
91
+ .success-button {
92
+ background: var(--color-success);
93
+ }
94
+
95
+ .text {
96
+ color: var(--text-primary);
97
+ }
98
+ </style>
99
+ ```
100
+
101
+ ## 支持的文件类型
102
+
103
+ - `.vue` - Vue 单文件组件
104
+ - `.scss` - Sass 样式文件
105
+ - `.css` - 纯 CSS 文件
106
+
107
+ ## 跳过的文件
108
+
109
+ 脚本会自动跳过以下文件(这些文件定义了变量本身):
110
+ - `variables.scss`
111
+ - `dark-theme.scss`
112
+
113
+ 同时自动跳过以下目录:
114
+ - `node_modules`
115
+ - `.git`
116
+ - `dist`
117
+
118
+ ## 输出报告
119
+
120
+ 执行完成后会显示详细的统计报告:
121
+
122
+ ```
123
+ 📊 转换统计报告
124
+ ============================================================
125
+ 总文件数: 150
126
+ 修改文件数: 42
127
+ 总替换次数: 289
128
+
129
+ 📋 替换详情:
130
+ #409eff => var(--color-primary): 78 次
131
+ #67c23a => var(--color-success): 45 次
132
+ #f56c6c => var(--color-danger): 32 次
133
+ ...
134
+
135
+ ⚠️ 未映射的颜色(需要手动检查):
136
+ #f8faff
137
+ #eef4ff
138
+ ...
139
+ ```
140
+
141
+ ## 注意事项
142
+
143
+ 1. **备份建议**:运行脚本前建议先使用 `--dry-run` 参数预览更改
144
+ 2. **Git 提交**:建议在运行前提交当前代码,方便回滚
145
+ 3. **未映射颜色**:脚本会列出未映射的颜色,需要手动检查这些颜色是否需要添加到映射表
146
+ 4. **特殊颜色**:某些渐变色或特殊效果的颜色可能需要保留原值
147
+ 5. **rgba 颜色**:当前脚本仅处理十六进制颜色值,rgba 格式需要手动处理
148
+
149
+ ## 优势
150
+
151
+ 使用 CSS 变量替代硬编码颜色的好处:
152
+
153
+ 1. **统一管理**:所有颜色在 `variables.scss` 中统一定义
154
+ 2. **主题切换**:轻松实现深色主题等样式变体
155
+ 3. **易于维护**:修改变量值即可全局更新
156
+ 4. **语义化**:变量名更具可读性(如 `--color-success` vs `#67c23a`)
157
+ 5. **一致性**:确保整个项目使用统一的配色方案
158
+
159
+ ## 扩展映射表
160
+
161
+ 如果发现新的颜色值需要映射,编辑脚本中的 `COLOR_MAP` 对象:
162
+
163
+ ```javascript
164
+ const COLOR_MAP = {
165
+ // 添加新的映射
166
+ '#your-color': 'var(--your-variable)',
167
+ // ...
168
+ };
169
+ ```
170
+
171
+ ## 回滚方法
172
+
173
+ 如果需要回滚更改:
174
+
175
+ ```bash
176
+ # 如果还未提交
177
+ git checkout -- src/
178
+
179
+ # 如果已提交
180
+ git revert <commit-hash>
181
+ ```
182
+
183
+ ## 与其他脚本配合
184
+
185
+ 该脚本可以与其他样式标准化脚本配合使用:
186
+
187
+ ```bash
188
+ # 1. 转换间距值
189
+ node scripts/convert-spacing-to-vars.cjs
190
+
191
+ # 2. 转换圆角和阴影
192
+ node scripts/convert-to-standard-vars.js
193
+
194
+ # 3. 转换颜色值
195
+ node scripts/convert-colors-to-vars.cjs
196
+ ```