@astrofoundry/pi-astro 0.22.2 → 0.22.3

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.
@@ -30,11 +30,12 @@ class MutableOutput extends Writable {
30
30
  async function main(): Promise<void> {
31
31
  const output = new MutableOutput();
32
32
  const rl = createInterface({ input: process.stdin, output, terminal: true });
33
+ // readline redraws the prompt line on every keystroke, so the question must be its prompt, not a bare stdout write.
33
34
  const ask = async (question: string, hidden = false): Promise<string> => {
34
35
  output.muted = false;
35
- process.stdout.write(question);
36
+ const pending = rl.question(question);
36
37
  output.muted = hidden;
37
- const answer = await rl.question("");
38
+ const answer = await pending;
38
39
  output.muted = false;
39
40
  if (hidden) process.stdout.write("\n");
40
41
  return answer.trim();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrofoundry/pi-astro",
3
- "version": "0.22.2",
3
+ "version": "0.22.3",
4
4
  "description": "Personal pi customizations (extensions, subagents, skills, prompts, themes) for the pi coding agent.",
5
5
  "keywords": [
6
6
  "pi-package"