openkitt 0.2.4 → 0.2.5
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/cli.js +7 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -265562,7 +265562,7 @@ async function helpCommand(_context, _args) {
|
|
|
265562
265562
|
// package.json
|
|
265563
265563
|
var package_default = {
|
|
265564
265564
|
name: "openkitt",
|
|
265565
|
-
version: "0.2.
|
|
265565
|
+
version: "0.2.5",
|
|
265566
265566
|
description: "AI-powered monorepo scaffolding CLI",
|
|
265567
265567
|
keywords: [
|
|
265568
265568
|
"cli",
|
|
@@ -265936,8 +265936,12 @@ async function startRepl(context) {
|
|
|
265936
265936
|
console.log("Use /exit to quit.");
|
|
265937
265937
|
rl.prompt();
|
|
265938
265938
|
});
|
|
265939
|
+
let intentionalClose = false;
|
|
265939
265940
|
rl.on("close", () => {
|
|
265940
|
-
|
|
265941
|
+
if (intentionalClose)
|
|
265942
|
+
process.exit(0);
|
|
265943
|
+
else
|
|
265944
|
+
rl.prompt();
|
|
265941
265945
|
});
|
|
265942
265946
|
rl.prompt();
|
|
265943
265947
|
rl.on("line", async (line) => {
|
|
@@ -265945,6 +265949,7 @@ async function startRepl(context) {
|
|
|
265945
265949
|
try {
|
|
265946
265950
|
const result = await dispatchCommand(line, context);
|
|
265947
265951
|
if (result === "exit") {
|
|
265952
|
+
intentionalClose = true;
|
|
265948
265953
|
rl.close();
|
|
265949
265954
|
return;
|
|
265950
265955
|
}
|