openmatrix 0.1.82 → 0.1.84

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.
@@ -56,16 +56,15 @@ export declare class GitCommitManager {
56
56
  * 生成提交信息
57
57
  *
58
58
  * 格式规范:
59
- * <type>: (TASK-XXX) 简短描述
59
+ * <type>: 简短描述
60
60
  *
61
- * - 改动点1
62
- * - 改动点2
61
+ * 改动点1
62
+ * 改动点2
63
63
  *
64
64
  * 影响范围: 模块/功能
65
65
  * 文件改动: 文件1, 文件2
66
66
  *
67
- * Run: run-xxx (可选)
68
- * Co-Authored-By: OpenMatrix <https://github.com/bigfish1913/openmatrix>
67
+ * Co-Authored-By: OpenMatrix https://github.com/bigfish1913/openmatrix
69
68
  */
70
69
  generateCommitMessage(info: CommitInfo): string;
71
70
  /**
@@ -155,16 +155,15 @@ class GitCommitManager {
155
155
  * 生成提交信息
156
156
  *
157
157
  * 格式规范:
158
- * <type>: (TASK-XXX) 简短描述
158
+ * <type>: 简短描述
159
159
  *
160
- * - 改动点1
161
- * - 改动点2
160
+ * 改动点1
161
+ * 改动点2
162
162
  *
163
163
  * 影响范围: 模块/功能
164
164
  * 文件改动: 文件1, 文件2
165
165
  *
166
- * Run: run-xxx (可选)
167
- * Co-Authored-By: OpenMatrix <https://github.com/bigfish1913/openmatrix>
166
+ * Co-Authored-By: OpenMatrix https://github.com/bigfish1913/openmatrix
168
167
  */
169
168
  generateCommitMessage(info) {
170
169
  const lines = [];
@@ -173,32 +172,31 @@ class GitCommitManager {
173
172
  tdd: 'test',
174
173
  develop: 'feat',
175
174
  verify: 'test',
176
- accept: 'feat'
175
+ accept: 'chore'
177
176
  };
178
177
  const commitType = phaseToType[info.phase] || 'feat';
179
- // 标题行 - 限制 50 字符
178
+ // 标题行 - 限制 72 字符
180
179
  let title = info.taskTitle;
181
- if (title.length > 50) {
182
- title = title.slice(0, 47) + '...';
180
+ if (title.length > 60) {
181
+ title = title.slice(0, 57) + '...';
183
182
  }
184
- // 格式: feat: (TASK-001) 简短描述
185
- lines.push(`${commitType}: (${info.taskId}) ${title}`);
183
+ // 格式: feat(TASK-001): 简短描述
184
+ lines.push(`${commitType}(${info.taskId}): ${title}`);
186
185
  lines.push('');
187
- // 修改内容 - 使用文件名作为改动点
188
- if (info.changes.length > 0) {
189
- for (const change of info.changes.slice(0, 10)) {
190
- lines.push(`- ${change}`);
191
- }
192
- if (info.changes.length > 10) {
193
- lines.push(`- ... 及其他 ${info.changes.length - 10} 项修改`);
194
- }
195
- lines.push('');
196
- }
186
+ // Phase 描述作为改动点
187
+ const phaseDescriptions = {
188
+ tdd: '编写测试用例',
189
+ develop: '实现功能代码',
190
+ verify: '运行测试验证',
191
+ accept: '验收检查通过'
192
+ };
193
+ lines.push(phaseDescriptions[info.phase] || '代码变更');
197
194
  // 影响范围
198
195
  if (info.impactScope.length > 0) {
196
+ lines.push('');
199
197
  lines.push(`影响范围: ${info.impactScope.join('、')}`);
200
198
  }
201
- // 文件改动 - 简化显示
199
+ // 文件改动
202
200
  const changedFiles = info.changes.slice(0, 5).map(f => {
203
201
  const parts = f.split('/');
204
202
  return parts.length > 2 ? parts.slice(-2).join('/') : f;
@@ -209,12 +207,8 @@ class GitCommitManager {
209
207
  lines.push(`文件改动: ${fileSummary}${suffix}`);
210
208
  }
211
209
  lines.push('');
212
- // Run ID (可选)
213
- if (info.runId) {
214
- lines.push(`Run: ${info.runId}`);
215
- }
216
210
  // Co-Author
217
- lines.push(`Co-Authored-By: OpenMatrix <https://github.com/bigfish1913/openmatrix>`);
211
+ lines.push(`Co-Authored-By: OpenMatrix https://github.com/bigfish1913/openmatrix`);
218
212
  return lines.join('\n');
219
213
  }
220
214
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openmatrix",
3
- "version": "0.1.82",
3
+ "version": "0.1.84",
4
4
  "description": "AI Agent task orchestration system with Claude Code Skills integration",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/skills/auto.md CHANGED
@@ -152,7 +152,7 @@ openmatrix complete TASK-XXX --success # 标记完成 + 更新统计(含
152
152
  # 提交验证(防止 commit 静默失败):
153
153
  git status --porcelain # 检查是否有未提交的文件
154
154
  # 如果有未提交文件 → 必须手动提交:
155
- git add -A && git commit -m "feat: (TASK-XXX) 任务标题"
155
+ git add -A && git commit -m "feat(TASK-XXX): 任务标题"
156
156
 
157
157
  openmatrix step --json # 获取下一个任务 + 检查是否全部完成
158
158
  ```
@@ -227,16 +227,15 @@ Agent-1 完成 → 写入 context.md → Agent-2 读取 Agent-1 的上下文 →
227
227
  ```
228
228
  ```bash
229
229
  git add -A && git commit -m "$(cat <<'EOF'
230
- feat: (TASK-XXX) 任务标题
230
+ feat: 任务标题
231
231
 
232
- - 改动点1
233
- - 改动点2
232
+ 改动点1
233
+ 改动点2
234
234
 
235
235
  影响范围: 模块名
236
236
  文件改动: 文件1, 文件2
237
237
 
238
- Run: run-XXX
239
- Co-Authored-By: OpenMatrix <https://github.com/bigfish1913/openmatrix>
238
+ Co-Authored-By: OpenMatrix https://github.com/bigfish1913/openmatrix
240
239
  EOF
241
240
  )"
242
241
  ```
@@ -246,20 +245,18 @@ EOF
246
245
  **Git 提交格式规范(所有提交必须遵守):**
247
246
 
248
247
  ```
249
- <type>: (TASK-XXX) 简短描述
248
+ <type>(TASK-XXX): 简短描述
250
249
 
251
- - 改动点1
252
- - 改动点2
250
+ 改动点1
251
+ 改动点2
253
252
 
254
253
  影响范围: 模块名
255
254
  文件改动: 文件1, 文件2
256
255
 
257
- Run: run-XXX
258
- Co-Authored-By: OpenMatrix <https://github.com/bigfish1913/openmatrix>
256
+ Co-Authored-By: OpenMatrix https://github.com/bigfish1913/openmatrix
259
257
  ```
260
258
 
261
259
  **type 映射:** feat(新功能) / fix(修复) / test(测试) / refactor(重构) / docs(文档)
262
- **禁止使用:** `Co-Authored-By: Claude` 格式,必须使用 `Co-Authored-By: OpenMatrix <https://github.com/bigfish1913/openmatrix>`
263
260
  **禁止使用 emoji**,使用纯文本格式
264
261
 
265
262
  </process>
package/skills/start.md CHANGED
@@ -297,7 +297,7 @@ openmatrix complete TASK-XXX --success --summary "决策: xxx; 文件: xxx"
297
297
  # 提交验证(防止 commit 静默失败):
298
298
  git status --porcelain # 检查是否有未提交的文件
299
299
  # 如果有未提交文件 → 必须手动提交:
300
- git add -A && git commit -m "feat: (TASK-XXX) 任务标题"
300
+ git add -A && git commit -m "feat(TASK-XXX): 任务标题"
301
301
 
302
302
  openmatrix step --json # 获取下一个任务 + 检查是否全部完成
303
303
  ```
@@ -420,17 +420,15 @@ openmatrix meeting --list
420
420
  所有任务完成后,执行最终 Git 提交(**必须使用 HEREDOC 格式**):
421
421
  ```bash
422
422
  git add -A && git commit -m "$(cat <<'EOF'
423
- feat: 完成所有任务
423
+ feat: 完成所有任务 - 任务总标题
424
424
 
425
- - 任务1标题
426
- - 任务2标题
427
- - ...
425
+ 改动点1
426
+ 改动点2
428
427
 
429
428
  影响范围: 全部模块
430
- 文件改动: 统计变更文件数
429
+ 文件改动: src/xxx.ts, src/yyy.ts
431
430
 
432
- Run: run-XXX
433
- Co-Authored-By: OpenMatrix <https://github.com/bigfish1913/openmatrix>
431
+ Co-Authored-By: OpenMatrix https://github.com/bigfish1913/openmatrix
434
432
  EOF
435
433
  )"
436
434
  ```
@@ -438,20 +436,18 @@ EOF
438
436
  **Git 提交格式规范(所有提交必须遵守):**
439
437
 
440
438
  ```
441
- <type>: (TASK-XXX) 简短描述
439
+ <type>(TASK-XXX): 简短描述
442
440
 
443
- - 改动点1
444
- - 改动点2
441
+ 改动点1
442
+ 改动点2
445
443
 
446
444
  影响范围: 模块名
447
445
  文件改动: 文件1, 文件2
448
446
 
449
- Run: run-XXX
450
- Co-Authored-By: OpenMatrix <https://github.com/bigfish1913/openmatrix>
447
+ Co-Authored-By: OpenMatrix https://github.com/bigfish1913/openmatrix
451
448
  ```
452
449
 
453
450
  **type 映射:** feat(新功能) / fix(修复) / test(测试) / refactor(重构) / docs(文档)
454
- **禁止使用:** `Co-Authored-By: Claude` 格式,必须使用 `Co-Authored-By: OpenMatrix <https://github.com/bigfish1913/openmatrix>`
455
451
  **禁止使用 emoji**,使用纯文本格式
456
452
 
457
453
  </process>