agenticmail 0.3.8 → 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.
|
@@ -74,7 +74,7 @@ function renderBubble(text, side) {
|
|
|
74
74
|
}
|
|
75
75
|
return output.join("\n");
|
|
76
76
|
}
|
|
77
|
-
function renderAgentLabel(name = "
|
|
77
|
+
function renderAgentLabel(name = "Agentic Mail") {
|
|
78
78
|
return ` ${"\u{1F380}"} ${bold(cyan(name))}`;
|
|
79
79
|
}
|
|
80
80
|
function renderUserLabel(name = "You") {
|
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 = {
|
|
@@ -3278,7 +3278,7 @@ ${orig.text || ""}`;
|
|
|
3278
3278
|
renderUserLabel,
|
|
3279
3279
|
renderThinking,
|
|
3280
3280
|
randomThinking
|
|
3281
|
-
} = await import("./chat-ui-
|
|
3281
|
+
} = await import("./chat-ui-AP77ISXP.js");
|
|
3282
3282
|
const chat = new WsChat({
|
|
3283
3283
|
gatewayUrl: `ws://127.0.0.1:${gatewayPort}`,
|
|
3284
3284
|
token: gatewayToken
|
|
@@ -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
|
-
|
|
4892
|
+
emitKeypressEvents2(process.stdin);
|
|
4887
4893
|
if (process.stdin.isTTY) process.stdin.setRawMode(true);
|
|
4888
4894
|
const renderList = () => {
|
|
4889
4895
|
const totalLines = totalOpts + 3;
|