@livx.cc/agentx 0.99.54 → 0.99.56
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/dist/cli.js +7 -3
- package/dist/cli.js.map +1 -1
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/dist/models.js +3 -1
- package/dist/models.js.map +1 -1
- package/dist/tools.shell.js.map +1 -1
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -671,8 +671,10 @@ var init_tools_structured = __esm({
|
|
|
671
671
|
required: ["path", "content"],
|
|
672
672
|
properties: { path: { type: "string" }, content: { type: "string" } }
|
|
673
673
|
},
|
|
674
|
-
async run({ path, content }, ctx) {
|
|
675
|
-
const
|
|
674
|
+
async run({ path, content, contents }, ctx) {
|
|
675
|
+
const raw = content ?? contents;
|
|
676
|
+
if (raw == null) throw new Error(`Write needs \`content\` (the file body) \u2014 none was given for ${path}; nothing written.`);
|
|
677
|
+
const body = String(raw);
|
|
676
678
|
const key = ctx.fs.resolvePath(path);
|
|
677
679
|
if (await wouldClobberUnread(ctx, path, key))
|
|
678
680
|
throw new Error(`Refusing to overwrite ${path}: it exists and hasn't been Read. Read it first, then Write to replace it (or Edit to change part of it).`);
|
|
@@ -3556,7 +3558,9 @@ import { join as join4 } from "path";
|
|
|
3556
3558
|
var MODEL_ALIASES = {
|
|
3557
3559
|
fable: "claude-fable-5",
|
|
3558
3560
|
"fable-5": "claude-fable-5",
|
|
3559
|
-
opus: "claude-opus-
|
|
3561
|
+
opus: "claude-opus-5-5",
|
|
3562
|
+
"opus-5-5": "claude-opus-5-5",
|
|
3563
|
+
"opus-5": "claude-opus-5",
|
|
3560
3564
|
"opus-4-8": "claude-opus-4-8",
|
|
3561
3565
|
"opus-4-7": "claude-opus-4-7",
|
|
3562
3566
|
"opus-4-6": "claude-opus-4-6",
|