openkitt 0.2.8 → 0.2.9

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.js +7 -8
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -265592,7 +265592,7 @@ async function helpCommand(_context, _args) {
265592
265592
  // package.json
265593
265593
  var package_default = {
265594
265594
  name: "openkitt",
265595
- version: "0.2.8",
265595
+ version: "0.2.9",
265596
265596
  description: "AI-powered monorepo scaffolding CLI",
265597
265597
  keywords: [
265598
265598
  "cli",
@@ -265837,15 +265837,11 @@ async function dispatchCommand(commandLine, context) {
265837
265837
  }
265838
265838
  if (process.stdin.isTTY)
265839
265839
  process.stdin.setRawMode(false);
265840
- const originalExit = process.exit.bind(process);
265841
- process.exit = (code) => {
265842
- if (code !== undefined && code !== 0)
265843
- originalExit(code);
265844
- };
265845
265840
  try {
265846
265841
  await resolveAndRunHandler(route, context, parsed.args, parsed.key);
265847
265842
  } finally {
265848
- process.exit = originalExit;
265843
+ if (!process.stdin.destroyed)
265844
+ process.stdin.resume();
265849
265845
  if (process.stdin.isTTY)
265850
265846
  process.stdin.setRawMode(true);
265851
265847
  }
@@ -265982,8 +265978,11 @@ async function startRepl(context) {
265982
265978
  rl.on("close", () => {
265983
265979
  if (intentionalClose)
265984
265980
  process.exit(0);
265985
- else
265981
+ else {
265982
+ if (!process.stdin.destroyed)
265983
+ process.stdin.resume();
265986
265984
  rl.prompt();
265985
+ }
265987
265986
  });
265988
265987
  rl.prompt();
265989
265988
  rl.on("line", async (line) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openkitt",
3
- "version": "0.2.8",
3
+ "version": "0.2.9",
4
4
  "description": "AI-powered monorepo scaffolding CLI",
5
5
  "keywords": [
6
6
  "cli",