agenticmail 0.3.9 → 0.3.10

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 +9 -3
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  // src/cli.ts
4
- import { createInterface as createInterface2, emitKeypressEvents } from "readline";
4
+ import { createInterface as createInterface2, emitKeypressEvents as emitKeypressEvents2 } from "readline";
5
5
  import { existsSync as existsSync2, readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync, realpathSync } from "fs";
6
6
  import { join, dirname } from "path";
7
7
  import { fileURLToPath } from "url";
@@ -13,7 +13,7 @@ import {
13
13
  } from "@agenticmail/core";
14
14
 
15
15
  // src/shell.ts
16
- import { createInterface } from "readline";
16
+ import { createInterface, emitKeypressEvents } from "readline";
17
17
  import { readFileSync, writeFileSync, existsSync } from "fs";
18
18
  import { basename } from "path";
19
19
  var c = {
@@ -3303,6 +3303,10 @@ ${orig.text || ""}`;
3303
3303
  } catch {
3304
3304
  }
3305
3305
  rl.__chatMode = true;
3306
+ rl.pause();
3307
+ emitKeypressEvents(process.stdin);
3308
+ if (process.stdin.isTTY) process.stdin.setRawMode(true);
3309
+ process.stdin.resume();
3306
3310
  process.stdout.write("\x1B[3A\r\x1B[J");
3307
3311
  log(hr());
3308
3312
  log(` ${c.bold(c.cyan("\u{1F380} Agent Chat"))} ${c.dim("| Esc to leave | Enter to send | \\\\ + Enter for new line")}`);
@@ -3365,6 +3369,8 @@ ${c.dim(boxChar.bl + boxChar.h.repeat(bWidth) + boxChar.br)}`);
3365
3369
  log("");
3366
3370
  }
3367
3371
  chat.close();
3372
+ if (process.stdin.isTTY) process.stdin.setRawMode(false);
3373
+ rl.resume();
3368
3374
  rl.__chatMode = false;
3369
3375
  log("");
3370
3376
  log(` ${c.dim("Chat ended")}`);
@@ -4883,7 +4889,7 @@ async function cmdOpenClaw() {
4883
4889
  const selectedIdx = await new Promise((resolve) => {
4884
4890
  let sel = 0;
4885
4891
  const totalOpts = options.length;
4886
- emitKeypressEvents(process.stdin);
4892
+ emitKeypressEvents2(process.stdin);
4887
4893
  if (process.stdin.isTTY) process.stdin.setRawMode(true);
4888
4894
  const renderList = () => {
4889
4895
  const totalLines = totalOpts + 3;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agenticmail",
3
- "version": "0.3.9",
3
+ "version": "0.3.10",
4
4
  "description": "Email infrastructure for AI agents — send and receive real email programmatically",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",