openmatrix 0.1.73 → 0.1.74

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.
@@ -48,6 +48,7 @@ exports.completeCommand = new commander_1.Command('complete')
48
48
  .option('--output <text>', '执行结果摘要')
49
49
  .option('--summary <text>', 'Agent 执行摘要 (写入 context.md)')
50
50
  .option('--error <text>', '错误信息 (失败时)')
51
+ .option('--json', '输出 JSON 格式')
51
52
  .action(async (taskId, options) => {
52
53
  const basePath = process.cwd();
53
54
  const omPath = path.join(basePath, '.openmatrix');
@@ -163,5 +164,13 @@ exports.completeCommand = new commander_1.Command('complete')
163
164
  ? `${taskId} 完成 (${stats.completed}/${stats.totalTasks})`
164
165
  : `${taskId} 失败: ${options.error || 'Unknown error'}`
165
166
  };
166
- console.log(JSON.stringify(result, null, 2));
167
+ if (options.json) {
168
+ console.log(JSON.stringify(result, null, 2));
169
+ }
170
+ else {
171
+ console.log(`✅ ${result.message}`);
172
+ if (allDone) {
173
+ console.log('🎉 所有任务已完成!');
174
+ }
175
+ }
167
176
  });
@@ -8,6 +8,7 @@ exports.resumeCommand = new commander_1.Command('resume')
8
8
  .description('恢复中断或暂停的任务')
9
9
  .argument('[taskId]', '任务ID')
10
10
  .option('--all', '恢复所有可恢复任务')
11
+ .option('--json', '输出 JSON 格式 (供 Skill 解析)')
11
12
  .action(async (taskId, options) => {
12
13
  const basePath = process.cwd();
13
14
  const omPath = `${basePath}/.openmatrix`;
@@ -10,6 +10,7 @@ exports.retryCommand = new commander_1.Command('retry')
10
10
  .argument('[taskId]', '任务ID')
11
11
  .option('--all', '重试所有失败任务')
12
12
  .option('--reset', '重置重试计数')
13
+ .option('--json', '输出 JSON 格式 (供 Skill 解析)')
13
14
  .action(async (taskId, options) => {
14
15
  const basePath = process.cwd();
15
16
  const omPath = `${basePath}/.openmatrix`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openmatrix",
3
- "version": "0.1.73",
3
+ "version": "0.1.74",
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",