repowisestage 0.0.30 → 0.0.32

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.
@@ -2536,16 +2536,27 @@ function multilineInput() {
2536
2536
  const rl = createInterface({ input: process.stdin, output: process.stdout });
2537
2537
  const lines = [];
2538
2538
  let lastLineTime = 0;
2539
+ let resolved = false;
2540
+ const done = (value) => {
2541
+ if (resolved) return;
2542
+ resolved = true;
2543
+ rl.close();
2544
+ resolve(value);
2545
+ };
2539
2546
  rl.setPrompt(" > ");
2540
2547
  rl.prompt();
2541
2548
  rl.on("line", (line) => {
2542
2549
  const now = Date.now();
2543
2550
  const elapsed = now - lastLineTime;
2544
2551
  lastLineTime = now;
2552
+ const lower = line.trim().toLowerCase();
2553
+ if (lower === "done" || lower === "skip") {
2554
+ done(lower);
2555
+ return;
2556
+ }
2545
2557
  if (lines.length === 0) {
2546
2558
  if (line === "") {
2547
- rl.close();
2548
- resolve("");
2559
+ done("");
2549
2560
  return;
2550
2561
  }
2551
2562
  lines.push(line);
@@ -2554,8 +2565,7 @@ function multilineInput() {
2554
2565
  return;
2555
2566
  }
2556
2567
  if (elapsed > 50 && line === "") {
2557
- rl.close();
2558
- resolve(lines.join("\n").trim());
2568
+ done(lines.join("\n").trim());
2559
2569
  return;
2560
2570
  }
2561
2571
  lines.push(line);
@@ -2563,11 +2573,7 @@ function multilineInput() {
2563
2573
  rl.prompt();
2564
2574
  });
2565
2575
  rl.on("close", () => {
2566
- if (lines.length > 0) {
2567
- resolve(lines.join("\n").trim());
2568
- } else {
2569
- resolve("");
2570
- }
2576
+ done(lines.length > 0 ? lines.join("\n").trim() : "");
2571
2577
  });
2572
2578
  rl.on("error", reject);
2573
2579
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repowisestage",
3
- "version": "0.0.30",
3
+ "version": "0.0.32",
4
4
  "type": "module",
5
5
  "description": "AI-optimized codebase context generator",
6
6
  "bin": {