openmatrix 0.1.67 → 0.1.68

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.
Files changed (2) hide show
  1. package/dist/cli/index.js +46 -1
  2. package/package.json +1 -1
package/dist/cli/index.js CHANGED
@@ -1,7 +1,42 @@
1
1
  #!/usr/bin/env node
2
2
  "use strict";
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
3
36
  Object.defineProperty(exports, "__esModule", { value: true });
4
37
  const commander_1 = require("commander");
38
+ const fs = __importStar(require("fs"));
39
+ const path = __importStar(require("path"));
5
40
  const status_js_1 = require("./commands/status.js");
6
41
  const start_js_1 = require("./commands/start.js");
7
42
  const approve_js_1 = require("./commands/approve.js");
@@ -18,11 +53,21 @@ const brainstorm_js_1 = require("./commands/brainstorm.js");
18
53
  const research_js_1 = require("./commands/research.js");
19
54
  const complete_js_1 = require("./commands/complete.js");
20
55
  const step_js_1 = require("./commands/step.js");
56
+ // 读取 package.json 版本
57
+ let version = '0.0.0';
58
+ try {
59
+ const packageJsonPath = path.join(__dirname, '..', '..', 'package.json');
60
+ const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf-8'));
61
+ version = packageJson.version;
62
+ }
63
+ catch {
64
+ // 忽略错误
65
+ }
21
66
  const program = new commander_1.Command();
22
67
  program
23
68
  .name('openmatrix')
24
69
  .description('AI Agent Task Orchestration System - 多 Agent 任务编排系统')
25
- .version('0.1.0');
70
+ .version(version);
26
71
  // 添加命令
27
72
  program.addCommand(status_js_1.statusCommand);
28
73
  program.addCommand(start_js_1.startCommand);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openmatrix",
3
- "version": "0.1.67",
3
+ "version": "0.1.68",
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",