agent.libx.js 0.93.40 → 0.93.42
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.
- package/README.md +1 -8
- package/dist/cli.js +3 -4
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,14 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
**A coding agent that matches Claude Code on correctness — then beats it on cost, tokens, and tool-efficiency, and runs where Claude Code can't (sandbox, browser/edge, database).**
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
<p align="center"><img src="docs/demo.gif" alt="agentx fixing a bug" width="720"></p> -->
|
|
13
|
-
|
|
14
|
-
```console
|
|
15
|
-
$ agentx "There's a bug in math.js — add() subtracts instead of adds. Fix it."
|
|
16
|
-
⚙ Edit math.js a - b → a + b
|
|
17
|
-
✓ Fixed: `a - b` → `a + b` in add().
|
|
18
|
-
```
|
|
11
|
+
<p align="center"><img src="docs/demo.gif" alt="agentx reading, diffing, and fixing a bug in one prompt" width="760"></p>
|
|
19
12
|
|
|
20
13
|
By default it's a full-strength terminal coding agent: real disk, real shell, and the same Read/Edit/Grep/permissions/streaming-DX surface you'd expect from Claude Code. The difference is its two host couplings are swappable seams:
|
|
21
14
|
|
package/dist/cli.js
CHANGED
|
@@ -8002,7 +8002,9 @@ var MarkdownStream = class {
|
|
|
8002
8002
|
this.inFence = r.inFence;
|
|
8003
8003
|
out += r.out + "\r\n";
|
|
8004
8004
|
}
|
|
8005
|
-
|
|
8005
|
+
const tailIsTableRow = this.tableBuf.length > 0 && !this.inFence && /^\s*\|/.test(this.buf);
|
|
8006
|
+
if (this.buf && !tailIsTableRow) {
|
|
8007
|
+
if (this.tableBuf.length) out += this.flushTable();
|
|
8006
8008
|
out += renderMdLine(this.buf, this.inFence, this.p, this.cols).out;
|
|
8007
8009
|
this.lineRows = Math.max(1, Math.ceil(this.buf.length / Math.max(1, this.cols)));
|
|
8008
8010
|
}
|
|
@@ -8012,11 +8014,8 @@ var MarkdownStream = class {
|
|
|
8012
8014
|
flush() {
|
|
8013
8015
|
let out = "";
|
|
8014
8016
|
if (this.tableBuf.length && this.buf && !this.inFence && isTableRow(this.buf)) {
|
|
8015
|
-
if (this.lineRows > 1) out += `\x1B[${this.lineRows - 1}A\r\x1B[J`;
|
|
8016
|
-
else if (this.lineRows === 1) out += "\r\x1B[K";
|
|
8017
8017
|
this.tableBuf.push(this.buf);
|
|
8018
8018
|
this.buf = "";
|
|
8019
|
-
this.lineRows = 0;
|
|
8020
8019
|
}
|
|
8021
8020
|
out += this.tableBuf.length ? this.flushTable() : "";
|
|
8022
8021
|
this.buf = "";
|