zidane 3.3.2 → 3.3.3
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.
|
@@ -812,7 +812,7 @@ function decodedBase64ByteLength(b64) {
|
|
|
812
812
|
|
|
813
813
|
// src/tools/read-file.ts
|
|
814
814
|
var DEFAULT_LINE_LIMIT = 2e3;
|
|
815
|
-
var DEFAULT_BYTE_CAP =
|
|
815
|
+
var DEFAULT_BYTE_CAP = 262144;
|
|
816
816
|
var DEFAULT_IMAGE_BYTE_CAP = 5 * 1024 * 1024;
|
|
817
817
|
var readFile = {
|
|
818
818
|
spec: {
|
|
@@ -824,7 +824,7 @@ var readFile = {
|
|
|
824
824
|
path: { type: "string", description: "Relative file path." },
|
|
825
825
|
offset: { type: "integer", description: "1-indexed line number to start from. Default: 1." },
|
|
826
826
|
limit: { type: "integer", description: "Max lines to return. Default: 2000. Set 0 for unlimited." },
|
|
827
|
-
maxBytes: { type: "integer", description: "Hard byte cap on file content read, regardless of line count. Default:
|
|
827
|
+
maxBytes: { type: "integer", description: "Hard byte cap on file content read, regardless of line count. Default: 262144. Set 0 for unlimited. The rendered output may be slightly larger than this cap when `lineNumbers` is on (each line carries a `<N>\\t` prefix)." },
|
|
828
828
|
lineNumbers: { type: "boolean", description: "Prefix each line with its 1-indexed line number. Default: true. Override the agent-wide `behavior.readLineNumbers` for this call." }
|
|
829
829
|
},
|
|
830
830
|
required: ["path"]
|
|
@@ -943,7 +943,7 @@ var readFile = {
|
|
|
943
943
|
if (midLineCut) {
|
|
944
944
|
return `${body}
|
|
945
945
|
|
|
946
|
-
\u2026truncated mid-line at line ${lastLineRead} (byte cap ${maxBytesN} reached). File has ${totalLines} lines, ${totalBytes} bytes total. Raise maxBytes
|
|
946
|
+
\u2026truncated mid-line at line ${lastLineRead} (byte cap ${maxBytesN} reached). File has ${totalLines} lines, ${totalBytes} bytes total. Raise maxBytes to read the full line.`;
|
|
947
947
|
}
|
|
948
948
|
const reason = bytesCut ? `byte cap (${maxBytesN}) reached` : `line limit (${limitN}) reached`;
|
|
949
949
|
return `${body}
|
|
@@ -992,17 +992,17 @@ function extractTrailingCommand(command) {
|
|
|
992
992
|
}
|
|
993
993
|
|
|
994
994
|
// src/tools/shell.ts
|
|
995
|
-
var DEFAULT_MAX_OUTPUT_BYTES =
|
|
995
|
+
var DEFAULT_MAX_OUTPUT_BYTES = 32768;
|
|
996
996
|
var shell = {
|
|
997
997
|
spec: {
|
|
998
998
|
name: "shell",
|
|
999
|
-
description: "Execute a shell command in the project root and return its combined stdout/stderr. Output is tail-priority truncated at
|
|
999
|
+
description: "Execute a shell command in the project root and return its combined stdout/stderr. Output is tail-priority truncated at 32 KiB by default; errors and exit-code summaries live in the tail. By default each call appends a `(exit N, Nms)` footer and surfaces non-empty stderr in a separate section even on success \u2014 set `metadata: false` to return only stdout. Set maxOutputBytes=0 to disable truncation.",
|
|
1000
1000
|
inputSchema: {
|
|
1001
1001
|
type: "object",
|
|
1002
1002
|
properties: {
|
|
1003
1003
|
command: { type: "string", description: "Shell command to run." },
|
|
1004
1004
|
timeout: { type: "integer", description: "Per-call timeout in milliseconds." },
|
|
1005
|
-
maxOutputBytes: { type: "integer", description: "Truncate combined stdout+stderr beyond this many bytes. Default:
|
|
1005
|
+
maxOutputBytes: { type: "integer", description: "Truncate combined stdout+stderr beyond this many bytes. Default: 32768. Set 0 for unlimited." },
|
|
1006
1006
|
metadata: { type: "boolean", description: "Append `(exit N, Nms)` footer and surface non-empty stderr on success. Default: true." }
|
|
1007
1007
|
},
|
|
1008
1008
|
required: ["command"]
|
package/dist/index.js
CHANGED
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
basicTools,
|
|
12
12
|
basic_default,
|
|
13
13
|
definePreset
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-KITHPMLV.js";
|
|
15
15
|
import {
|
|
16
16
|
createAgent,
|
|
17
17
|
createInteractionTool,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
grep,
|
|
25
25
|
multiEdit,
|
|
26
26
|
validateToolArgs
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-5GRZ5XVU.js";
|
|
28
28
|
import {
|
|
29
29
|
IMPLICITLY_ALLOWED_SKILL_TOOLS,
|
|
30
30
|
buildCatalog,
|
package/dist/presets.js
CHANGED
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
basicTools,
|
|
3
3
|
basic_default,
|
|
4
4
|
definePreset
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-KITHPMLV.js";
|
|
6
|
+
import "./chunk-5GRZ5XVU.js";
|
|
7
7
|
import "./chunk-X3VOTPVM.js";
|
|
8
8
|
import "./chunk-UD25QF3H.js";
|
|
9
9
|
import "./chunk-7H34OFDA.js";
|
package/dist/tools.js
CHANGED