ikie-cli 0.1.30 → 0.1.31

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/onboarding.js +10 -7
  2. package/package.json +1 -1
@@ -5,26 +5,28 @@ import { saveConfig, isLoggedIn } from './config.js';
5
5
  function waitForEnter(message) {
6
6
  const msg = message || 'Press Enter to continue...';
7
7
  return new Promise((resolve) => {
8
- const iface = createInterface({ input: process.stdin, output: process.stdout });
8
+ const iface = createInterface({ input: process.stdin, output: process.stdout, terminal: false });
9
9
  iface.question('\n ' + c.muted('\u25b8') + ' ' + c.dim(msg) + ' ', () => {
10
10
  iface.close();
11
- resolve();
11
+ setTimeout(() => resolve(), 50);
12
12
  });
13
13
  });
14
14
  }
15
15
  function askYesNo(question, defaultYes = true) {
16
16
  return new Promise((resolve) => {
17
- const iface = createInterface({ input: process.stdin, output: process.stdout });
17
+ const iface = createInterface({ input: process.stdin, output: process.stdout, terminal: false });
18
18
  const hint = defaultYes
19
19
  ? c.success('Y') + '/' + c.dim('n')
20
20
  : c.dim('y') + '/' + c.error('N');
21
21
  iface.question('\n ' + c.primary('?') + ' ' + c.white(question) + ' ' + hint + ' ', (answer) => {
22
22
  iface.close();
23
23
  const a = answer.trim().toLowerCase();
24
- if (!a)
25
- resolve(defaultYes);
26
- else
27
- resolve(a === 'y' || a === 'yes');
24
+ setTimeout(() => {
25
+ if (!a)
26
+ resolve(defaultYes);
27
+ else
28
+ resolve(a === 'y' || a === 'yes');
29
+ }, 50);
28
30
  });
29
31
  });
30
32
  }
@@ -58,6 +60,7 @@ async function stepAuthentication(config) {
58
60
  try {
59
61
  await login();
60
62
  console.log(successLine('Successfully signed in!'));
63
+ await new Promise(resolve => setTimeout(resolve, 100));
61
64
  }
62
65
  catch (err) {
63
66
  console.log(errorLine('Login failed: ' + (err instanceof Error ? err.message : String(err))));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ikie-cli",
3
- "version": "0.1.30",
3
+ "version": "0.1.31",
4
4
  "description": "Agentic coding CLI — your terminal AI pair programmer",
5
5
  "type": "module",
6
6
  "bin": {