@1mancompany/onemancompany 0.4.77 → 0.4.78
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/bin/cli.js +11 -10
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -285,22 +285,13 @@ ${green("What gets installed automatically:")}
|
|
|
285
285
|
return;
|
|
286
286
|
}
|
|
287
287
|
|
|
288
|
-
// Read version from package.json (bundled with npm package)
|
|
288
|
+
// Read version from package.json (bundled with npm package) as fallback
|
|
289
289
|
let cliVersion = "unknown";
|
|
290
290
|
try {
|
|
291
291
|
const pkg = JSON.parse(fs.readFileSync(path.join(__dirname, "..", "package.json"), "utf-8"));
|
|
292
292
|
if (pkg.version) cliVersion = pkg.version;
|
|
293
293
|
} catch {}
|
|
294
294
|
|
|
295
|
-
console.log();
|
|
296
|
-
const verTag = `v${cliVersion}`;
|
|
297
|
-
const title = `OneManCompany — AI Company OS ${verTag}`;
|
|
298
|
-
const pad = Math.max(0, 44 - title.length);
|
|
299
|
-
console.log(cyan("╔═══════════════════════════════════════════════╗"));
|
|
300
|
-
console.log(cyan(`║ ${title}${" ".repeat(pad)}║`));
|
|
301
|
-
console.log(cyan("╚═══════════════════════════════════════════════╝"));
|
|
302
|
-
console.log();
|
|
303
|
-
|
|
304
295
|
// ── Check git ─────────────────────────────────────────────────────────
|
|
305
296
|
if (!commandExists("git")) {
|
|
306
297
|
fail(
|
|
@@ -359,6 +350,16 @@ ${green("What gets installed automatically:")}
|
|
|
359
350
|
if (verMatch) appVersion = verMatch[1];
|
|
360
351
|
} catch {}
|
|
361
352
|
|
|
353
|
+
// ── Banner (after real version is known) ───────────────────────────
|
|
354
|
+
console.log();
|
|
355
|
+
const verTag = `v${appVersion}`;
|
|
356
|
+
const title = `OneManCompany — AI Company OS ${verTag}`;
|
|
357
|
+
const pad = Math.max(0, 44 - title.length);
|
|
358
|
+
console.log(cyan("╔═══════════════════════════════════════════════╗"));
|
|
359
|
+
console.log(cyan(`║ ${title}${" ".repeat(pad)}║`));
|
|
360
|
+
console.log(cyan("╚═══════════════════════════════════════════════╝"));
|
|
361
|
+
console.log();
|
|
362
|
+
|
|
362
363
|
// ── Check if already running ─────────────────────────────────────────
|
|
363
364
|
const existingPid = readPidFile(installDir);
|
|
364
365
|
if (existingPid && isProcessRunning(existingPid)) {
|