lastgen-cli 1.0.0 → 1.0.1
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/dist/index.js +11 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -65,6 +65,9 @@ import {
|
|
|
65
65
|
write
|
|
66
66
|
} from "./chunk-ESFGGWR6.js";
|
|
67
67
|
|
|
68
|
+
// src/index.ts
|
|
69
|
+
import { createRequire as createRequire2 } from "module";
|
|
70
|
+
|
|
68
71
|
// src/config.ts
|
|
69
72
|
import { homedir } from "os";
|
|
70
73
|
import { join } from "path";
|
|
@@ -2525,7 +2528,10 @@ async function handleCommand(input, session) {
|
|
|
2525
2528
|
|
|
2526
2529
|
// src/tui.ts
|
|
2527
2530
|
import { stdin as stdin2, stdout as stdout2 } from "process";
|
|
2531
|
+
import { createRequire } from "module";
|
|
2528
2532
|
import chalk4 from "chalk";
|
|
2533
|
+
var _require = createRequire(import.meta.url);
|
|
2534
|
+
var { version: APP_VERSION } = _require("../package.json");
|
|
2529
2535
|
var WELCOMES = [
|
|
2530
2536
|
"Merhaba! Bug\xFCn ne ke\u015Ffediyoruz?",
|
|
2531
2537
|
"Tekrar ho\u015F geldiniz! Konu\u015Fmaya haz\u0131r\u0131m.",
|
|
@@ -4392,7 +4398,7 @@ ${planContext}` });
|
|
|
4392
4398
|
setTimeout(tick, 70);
|
|
4393
4399
|
} else {
|
|
4394
4400
|
const welcome = WELCOMES[Math.floor(Math.random() * WELCOMES.length)];
|
|
4395
|
-
appendLines("\n" + turquoise("\u25E2 LASTGEN ") + turquoise(welcome) + "\n");
|
|
4401
|
+
appendLines("\n" + turquoise("\u25E2 LASTGEN ") + chalk4.dim(`v${APP_VERSION} `) + turquoise(welcome) + "\n");
|
|
4396
4402
|
scheduleRender();
|
|
4397
4403
|
setTimeout(res, 350);
|
|
4398
4404
|
}
|
|
@@ -4563,10 +4569,13 @@ async function startRepl() {
|
|
|
4563
4569
|
}
|
|
4564
4570
|
|
|
4565
4571
|
// src/index.ts
|
|
4572
|
+
var require2 = createRequire2(import.meta.url);
|
|
4573
|
+
var { version } = require2("../package.json");
|
|
4566
4574
|
async function main() {
|
|
4567
4575
|
const arg = process.argv[2];
|
|
4568
4576
|
if (arg === "--version" || arg === "-v") {
|
|
4569
|
-
write(
|
|
4577
|
+
write(`lastgen ${version}
|
|
4578
|
+
`);
|
|
4570
4579
|
return;
|
|
4571
4580
|
}
|
|
4572
4581
|
if (arg === "--help" || arg === "-h") {
|