@inetafrica/open-claudia 1.0.6 → 1.0.7

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/package.json +1 -1
  2. package/setup.js +2 -33
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inetafrica/open-claudia",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "Your always-on AI coding assistant — Claude Code via Telegram",
5
5
  "main": "bot.js",
6
6
  "bin": {
package/setup.js CHANGED
@@ -18,37 +18,6 @@ const SETUP_STATE_FILE = path.join(CONFIG_DIR, ".setup-state.json");
18
18
 
19
19
  const rl = readline.createInterface({ input: process.stdin, output: process.stdout });
20
20
  const ask = (q) => new Promise((r) => rl.question(q, r));
21
- const askHidden = (q) => new Promise((resolve) => {
22
- // Pause readline so it doesn't compete for stdin
23
- rl.pause();
24
- process.stdout.write(q);
25
- const stdin = process.stdin;
26
- stdin.setRawMode(true);
27
- stdin.resume();
28
- stdin.setEncoding("utf8");
29
- let input = "";
30
- const onData = (ch) => {
31
- if (ch === "\n" || ch === "\r" || ch === "\u0004") {
32
- stdin.removeListener("data", onData);
33
- stdin.setRawMode(false);
34
- process.stdout.write("\n");
35
- // Restore readline
36
- rl.resume();
37
- resolve(input);
38
- } else if (ch === "\u0003") {
39
- process.exit();
40
- } else if (ch === "\u007F" || ch === "\b") {
41
- if (input.length > 0) {
42
- input = input.slice(0, -1);
43
- process.stdout.write("\b \b");
44
- }
45
- } else {
46
- input += ch;
47
- process.stdout.write("*");
48
- }
49
- };
50
- stdin.on("data", onData);
51
- });
52
21
 
53
22
  // ── Auth file helpers ──────────────────────────────────────────────
54
23
 
@@ -610,8 +579,8 @@ async function main() {
610
579
  if (!state.completedSteps.includes("vault")) {
611
580
  console.log("\n Vault Setup");
612
581
  console.log(" The vault encrypts API keys and credentials.\n");
613
- const vaultPassword = await askHidden(" Set vault password: ");
614
- const vaultConfirm = await askHidden(" Confirm password: ");
582
+ const vaultPassword = await ask(" Set vault password: ");
583
+ const vaultConfirm = await ask(" Confirm password: ");
615
584
 
616
585
  if (vaultPassword !== vaultConfirm) {
617
586
  console.log(" Passwords don't match. Run setup again to retry this step.");