@team-semicolon/semo-cli 3.0.19 → 3.0.21

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/index.js +14 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -59,8 +59,19 @@ const child_process_1 = require("child_process");
59
59
  const fs = __importStar(require("fs"));
60
60
  const path = __importStar(require("path"));
61
61
  const os = __importStar(require("os"));
62
- const VERSION = "3.0.17";
63
62
  const PACKAGE_NAME = "@team-semicolon/semo-cli";
63
+ // package.json에서 버전 동적 로드
64
+ function getCliVersion() {
65
+ try {
66
+ const pkgPath = path.join(__dirname, "..", "package.json");
67
+ const pkg = JSON.parse(fs.readFileSync(pkgPath, "utf-8"));
68
+ return pkg.version || "unknown";
69
+ }
70
+ catch {
71
+ return "unknown";
72
+ }
73
+ }
74
+ const VERSION = getCliVersion();
64
75
  // === 버전 비교 유틸리티 ===
65
76
  /**
66
77
  * npm registry에서 최신 버전을 가져옴
@@ -536,7 +547,7 @@ async function showVersionInfo() {
536
547
  if (cli.needsUpdate) {
537
548
  console.log();
538
549
  console.log(chalk_1.default.yellow.bold(" ⚠️ CLI 업데이트 가능"));
539
- console.log(chalk_1.default.cyan(` npm update -g ${PACKAGE_NAME}`));
550
+ console.log(chalk_1.default.cyan(` npm install -g ${PACKAGE_NAME}@latest`));
540
551
  }
541
552
  else {
542
553
  console.log();
@@ -572,7 +583,7 @@ async function showVersionInfo() {
572
583
  console.log();
573
584
  if (cliNeedsUpdate) {
574
585
  console.log(chalk_1.default.yellow.bold(" ⚠️ CLI 업데이트 가능"));
575
- console.log(chalk_1.default.cyan(` npm update -g ${PACKAGE_NAME}`));
586
+ console.log(chalk_1.default.cyan(` npm install -g ${PACKAGE_NAME}@latest`));
576
587
  }
577
588
  if (otherNeedsUpdateCount > 0) {
578
589
  if (cliNeedsUpdate)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@team-semicolon/semo-cli",
3
- "version": "3.0.19",
3
+ "version": "3.0.21",
4
4
  "description": "SEMO CLI - AI Agent Orchestration Framework Installer",
5
5
  "main": "dist/index.js",
6
6
  "bin": {