zidane 5.14.0 → 5.14.2
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/{acp-DgKEJH3P.js → acp-24uU2WDs.js} +4 -4
- package/dist/{acp-DgKEJH3P.js.map → acp-24uU2WDs.js.map} +1 -1
- package/dist/acp-cli.js +3 -3
- package/dist/acp.d.ts +3 -3
- package/dist/acp.js +1 -1
- package/dist/{agent-B-cKanSC.js → agent-Cch2ayTt.js} +2 -2
- package/dist/{agent-B-cKanSC.js.map → agent-Cch2ayTt.js.map} +1 -1
- package/dist/{agent-BAgOgS37.d.ts → agent-EFWt6uQ_.d.ts} +2 -2
- package/dist/{agent-BAgOgS37.d.ts.map → agent-EFWt6uQ_.d.ts.map} +1 -1
- package/dist/agent.d.ts +2 -2
- package/dist/agent.js +1 -1
- package/dist/chat/pure.d.ts +3 -3
- package/dist/chat.d.ts +7 -7
- package/dist/chat.js +2 -2
- package/dist/contexts/daytona.d.ts +3 -3
- package/dist/contexts/docker.d.ts +1 -1
- package/dist/contexts/e2b.d.ts +2 -2
- package/dist/contexts/sandbox.d.ts +1 -1
- package/dist/{contexts-BebciJyQ.js → contexts-Lzf5huID.js} +5 -3
- package/dist/contexts-Lzf5huID.js.map +1 -0
- package/dist/contexts.d.ts +3 -3
- package/dist/contexts.js +1 -1
- package/dist/eval.d.ts +1 -1
- package/dist/eval.js +1 -1
- package/dist/glob-DluQFSw1.js +270 -0
- package/dist/glob-DluQFSw1.js.map +1 -0
- package/dist/headless.d.ts +1 -1
- package/dist/headless.js +3 -3
- package/dist/{index-HQJDOWvo.d.ts → index-B3ciFUZx.d.ts} +2 -2
- package/dist/index-B3ciFUZx.d.ts.map +1 -0
- package/dist/{index-CLuLFFLa.d.ts → index-BtzE3Uaq.d.ts} +4 -4
- package/dist/index-BtzE3Uaq.d.ts.map +1 -0
- package/dist/{index-CgBIl2mX.d.ts → index-tSzOaWNt.d.ts} +3 -3
- package/dist/{index-CgBIl2mX.d.ts.map → index-tSzOaWNt.d.ts.map} +1 -1
- package/dist/index.d.ts +8 -8
- package/dist/index.js +4 -4
- package/dist/{logger-CJ-lpKPy.d.ts → logger-DGiGf7DW.d.ts} +2 -2
- package/dist/{logger-CJ-lpKPy.d.ts.map → logger-DGiGf7DW.d.ts.map} +1 -1
- package/dist/mcp.d.ts +1 -1
- package/dist/output/stream-json.d.ts +2 -2
- package/dist/output/terminal.d.ts +2 -2
- package/dist/{presets-Pr02ZNcy.js → presets-BQWYMHdd.js} +3 -3
- package/dist/{presets-Pr02ZNcy.js.map → presets-BQWYMHdd.js.map} +1 -1
- package/dist/presets.d.ts +2 -2
- package/dist/presets.js +1 -1
- package/dist/providers/anthropic.d.ts +1 -1
- package/dist/providers/arcee.d.ts +1 -1
- package/dist/providers/baseten.d.ts +1 -1
- package/dist/providers/cerebras.d.ts +1 -1
- package/dist/providers/local.d.ts +1 -1
- package/dist/providers/openai-compat.d.ts +1 -1
- package/dist/providers/openai.d.ts +1 -1
- package/dist/providers/openrouter.d.ts +1 -1
- package/dist/providers/xai.d.ts +1 -1
- package/dist/providers.d.ts +1 -1
- package/dist/restate.d.ts +2 -2
- package/dist/restate.d.ts.map +1 -1
- package/dist/restate.js +50 -20
- package/dist/restate.js.map +1 -1
- package/dist/{run-summary-DAnBZnrt.d.ts → run-summary-DkN8KsHM.d.ts} +2 -2
- package/dist/{run-summary-DAnBZnrt.d.ts.map → run-summary-DkN8KsHM.d.ts.map} +1 -1
- package/dist/{sandbox-B-bMq3K6.d.ts → sandbox-Dgy-m6UF.d.ts} +2 -2
- package/dist/{sandbox-B-bMq3K6.d.ts.map → sandbox-Dgy-m6UF.d.ts.map} +1 -1
- package/dist/session/sqlite.d.ts +1 -1
- package/dist/session.d.ts +1 -1
- package/dist/skills.d.ts +2 -2
- package/dist/{tool-formatters-Ch8oRpYR.d.ts → tool-formatters-C6iLgc9f.d.ts} +2 -2
- package/dist/{tool-formatters-Ch8oRpYR.d.ts.map → tool-formatters-C6iLgc9f.d.ts.map} +1 -1
- package/dist/tools/fetch-url.d.ts +1 -1
- package/dist/tools/web-search.d.ts +1 -1
- package/dist/{tools-00_Nqazv.js → tools-CCd8e-HT.js} +60 -10
- package/dist/tools-CCd8e-HT.js.map +1 -0
- package/dist/tools.d.ts +2 -2
- package/dist/tools.js +2 -2
- package/dist/{transcript-anchors-CL9UM_M4.d.ts → transcript-anchors-BHIgMlPq.d.ts} +5 -5
- package/dist/transcript-anchors-BHIgMlPq.d.ts.map +1 -0
- package/dist/{transcript-anchors-BUmvPnis.js → transcript-anchors-DsoBHg43.js} +12 -5
- package/dist/transcript-anchors-DsoBHg43.js.map +1 -0
- package/dist/tui.d.ts +9 -3
- package/dist/tui.d.ts.map +1 -1
- package/dist/tui.js +387 -77
- package/dist/tui.js.map +1 -1
- package/dist/{turn-operations-Cj6v_ypW.d.ts → turn-operations-Dw02ZoSQ.d.ts} +3 -3
- package/dist/{turn-operations-Cj6v_ypW.d.ts.map → turn-operations-Dw02ZoSQ.d.ts.map} +1 -1
- package/dist/{types-Bs2oY7Ux.d.ts → types-BqdTeBaC.d.ts} +9 -1
- package/dist/types-BqdTeBaC.d.ts.map +1 -0
- package/dist/types.d.ts +4 -4
- package/docs/ARCHITECTURE.md +2 -1
- package/docs/RESTATE.md +2 -0
- package/docs/SKILL.md +2 -2
- package/docs/TUI.md +1 -0
- package/package.json +1 -1
- package/dist/contexts-BebciJyQ.js.map +0 -1
- package/dist/glob-D56-KpBp.js +0 -118
- package/dist/glob-D56-KpBp.js.map +0 -1
- package/dist/index-CLuLFFLa.d.ts.map +0 -1
- package/dist/index-HQJDOWvo.d.ts.map +0 -1
- package/dist/tools-00_Nqazv.js.map +0 -1
- package/dist/transcript-anchors-BUmvPnis.js.map +0 -1
- package/dist/transcript-anchors-CL9UM_M4.d.ts.map +0 -1
- package/dist/types-Bs2oY7Ux.d.ts.map +0 -1
package/dist/session/sqlite.d.ts
CHANGED
package/dist/session.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as FileMapAdapter, G as SessionRun, H as CreateSessionOptions, J as demoteStaleRunningStatus, K as SessionStore, Q as createMemoryStore, U as Session, W as SessionData, X as RemoteStoreOptions, Y as loadSession, Z as createRemoteStore, _t as fromOpenAI, bt as toOpenAI, dt as autoDetectAndConvert, et as FileMapStoreOptions, gt as fromAnthropic, lt as ToWireMessagesOptions, mr as SessionTurn, pr as SessionMessage, q as createSession, tt as createFileMapStore, ur as SessionContentBlock, xt as toWireMessages, yt as toAnthropic } from "./agent-
|
|
1
|
+
import { $ as FileMapAdapter, G as SessionRun, H as CreateSessionOptions, J as demoteStaleRunningStatus, K as SessionStore, Q as createMemoryStore, U as Session, W as SessionData, X as RemoteStoreOptions, Y as loadSession, Z as createRemoteStore, _t as fromOpenAI, bt as toOpenAI, dt as autoDetectAndConvert, et as FileMapStoreOptions, gt as fromAnthropic, lt as ToWireMessagesOptions, mr as SessionTurn, pr as SessionMessage, q as createSession, tt as createFileMapStore, ur as SessionContentBlock, xt as toWireMessages, yt as toAnthropic } from "./agent-EFWt6uQ_.js";
|
|
2
2
|
export { CreateSessionOptions, type FileMapAdapter, type FileMapStoreOptions, type RemoteStoreOptions, Session, type SessionContentBlock, SessionData, type SessionMessage, SessionRun, SessionStore, type SessionTurn, type ToWireMessagesOptions, autoDetectAndConvert, createFileMapStore, createMemoryStore, createRemoteStore, createSession, demoteStaleRunningStatus, fromAnthropic, fromOpenAI, loadSession, toAnthropic, toOpenAI, toWireMessages };
|
package/dist/skills.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { B as SkillSource, I as ShellInterpolationApproval, L as SkillConfig, R as SkillDiagnostic, V as SkillsConfig, d as DeactivationReason, f as SkillActivationState, l as ActivationVia, m as createSkillActivationState, p as SkillActivationStateOptions, u as ActiveSkill, z as SkillResource } from "./agent-
|
|
2
|
-
import { C as buildCatalog, S as parseSkillFile, T as installAllowedToolsGate, _ as SourcedScanPath, a as SkillValidationResult, b as inferSource, c as parseAllowedToolPattern, d as validateSkillForWrite, f as validateSkillName, g as stripShellInterpolations, h as interpolateShellCommands, i as SkillValidationIssue, l as validateResourcePath, m as InterpolateShellCommandsOptions, n as writeSkillToDisk, o as isToolAllowedByUnion, p as resolveSkills, r as writeSkillsToDisk, s as matchesAllowedTool, t as defineSkill, u as validateResourcePathReal, v as discoverSkills, w as IMPLICITLY_ALLOWED_SKILL_TOOLS, x as parseFrontmatter, y as getDefaultScanPaths } from "./index-
|
|
1
|
+
import { B as SkillSource, I as ShellInterpolationApproval, L as SkillConfig, R as SkillDiagnostic, V as SkillsConfig, d as DeactivationReason, f as SkillActivationState, l as ActivationVia, m as createSkillActivationState, p as SkillActivationStateOptions, u as ActiveSkill, z as SkillResource } from "./agent-EFWt6uQ_.js";
|
|
2
|
+
import { C as buildCatalog, S as parseSkillFile, T as installAllowedToolsGate, _ as SourcedScanPath, a as SkillValidationResult, b as inferSource, c as parseAllowedToolPattern, d as validateSkillForWrite, f as validateSkillName, g as stripShellInterpolations, h as interpolateShellCommands, i as SkillValidationIssue, l as validateResourcePath, m as InterpolateShellCommandsOptions, n as writeSkillToDisk, o as isToolAllowedByUnion, p as resolveSkills, r as writeSkillsToDisk, s as matchesAllowedTool, t as defineSkill, u as validateResourcePathReal, v as discoverSkills, w as IMPLICITLY_ALLOWED_SKILL_TOOLS, x as parseFrontmatter, y as getDefaultScanPaths } from "./index-tSzOaWNt.js";
|
|
3
3
|
export { type ActivationVia, type ActiveSkill, type DeactivationReason, IMPLICITLY_ALLOWED_SKILL_TOOLS, type InterpolateShellCommandsOptions, type ShellInterpolationApproval, type SkillActivationState, type SkillActivationStateOptions, type SkillConfig, type SkillDiagnostic, type SkillResource, type SkillSource, type SkillValidationIssue, type SkillValidationResult, type SkillsConfig, type SourcedScanPath, buildCatalog, createSkillActivationState, defineSkill, discoverSkills, getDefaultScanPaths, inferSource, installAllowedToolsGate, interpolateShellCommands, isToolAllowedByUnion, matchesAllowedTool, parseAllowedToolPattern, parseFrontmatter, parseSkillFile, resolveSkills, stripShellInterpolations, validateResourcePath, validateResourcePathReal, validateSkillForWrite, validateSkillName, writeSkillToDisk, writeSkillsToDisk };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { St as Provider, _r as ThinkingLevel } from "./agent-
|
|
1
|
+
import { St as Provider, _r as ThinkingLevel } from "./agent-EFWt6uQ_.js";
|
|
2
2
|
import { OAuthProviderInterface } from "@earendil-works/pi-ai/oauth";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
|
|
@@ -1451,4 +1451,4 @@ declare function displayNameFor(name: string, input?: Record<string, unknown>):
|
|
|
1451
1451
|
declare function formatToolCall(name: string, input: Record<string, unknown>): ToolFormatLine | null;
|
|
1452
1452
|
//#endregion
|
|
1453
1453
|
export { cerebrasDescriptor as $, SessionMeta as A, collectReferences as B, EditHunk as C, Owner as D, EditPayload as E, CompletionContext as F, ProviderKey as G, mergeReferences as H, CompletionItem as I, CustomField as J, detectAuth as K, CompletionProvider as L, StreamEvent as M, ToolCallDisplay as N, Picked as O, ActiveTrigger as P, anthropicDescriptor as Q, CompletionReference as R, EditDiffDisplay as S, EditOutcomeKind as T, AuthMethod as U, findActiveTrigger as V, ProviderAuth as W, ModelOption as X, ModelInfo as Y, ProviderDescriptor as Z, isEditErrorResult as _, formatToolCall as a, modelOptionsFor as at, selectableTurnIds as b, splitPromptSegments as c, openaiDescriptor as ct, RequestApproval as d, restoreModelOptions as dt, credKeyOf as et, SafeModeActions as f, EDIT_TOOL_NAMES as g, useSafeModeQueue as h, displayNameFor as i, localDescriptor as it, Settings as j, Screen as k, ApprovalDecision as l, openrouterDescriptor as lt, useSafeModeActions as m, ToolDisplayMeta as n, getContextWindow as nt, PromptSegment as o, modelSupportsReasoning as ot, SafeModeProvider as p, BUILTIN_PROVIDERS as q, ToolFormatLine as r, getModelInfo as rt, PromptSegmentRef as s, modelsForDescriptor as st, TOOL_DISPLAY as t, enabledModelOptions as tt, ApprovalRequest as u, piIdOf as ut, isTurnHighlighted as v, EditOutcome as w, turnSelectionOwnership as x, isVisible as y, applyInsert as z };
|
|
1454
|
-
//# sourceMappingURL=tool-formatters-
|
|
1454
|
+
//# sourceMappingURL=tool-formatters-C6iLgc9f.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-formatters-
|
|
1
|
+
{"version":3,"file":"tool-formatters-C6iLgc9f.d.ts","names":[],"sources":["../src/chat/providers.ts","../src/chat/auth.ts","../src/chat/completion-core.ts","../src/chat/types.ts","../src/chat/turn-selection.ts","../src/chat/safe-mode-context.tsx","../src/chat/prompt-segments.ts","../src/chat/tool-formatters.ts"],"mappings":";;;;;;;;;;;;;;;;;UAqDiB,SAAA;EACf,EAAA;EACA,IAAA;EACA,aAAA;EACA,SAAA;EACA,SAAA;EACA,KAAA;EACA,IAAA;IAAS,KAAA;IAAe,MAAA;IAAgB,SAAA;IAAoB,UAAA;EAAA;EAC5D,QAAA;EA4BkF;AAAA;AAgBpF;;;;;EApCE,OAAA,YAAmB,WAAW;AAAA;;;;;AAgDtB;UAxCO,WAAA;EA2CkB;EAzCjC,EAAA;EAwDe;EAtDf,KAAA;EAoGwB;EAlGxB,WAAA;EAwGkB;;;;;EAlGlB,cAAA;IAAmB,KAAA;IAAgB,MAAA;IAAiB,SAAA;IAAoB,UAAA;EAAA;AAAA;;;;;;;;;;;;;;UAgBzD,WAAA;EAuGQ;EArGvB,GAAA;EA6Gc;EA3Gd,KAAA;EAyHA;EAvHA,MAAA;EAuHmB;EArHnB,WAAA;EAyHuB;EAvHvB,IAAA;EAuH8B;EArH9B,QAAA;AAAA;AAAA,UAGe,kBAAA;;;AAuH8B;AAQ/C;EA1HE,GAAA;;EAEA,KAAA;EAmID;AAED;;;;AAkBC;AAED;EAjJE,OAAA,QAAe,QAAA;;;AA8JhB;AAED;;;;AAOC;EA9JC,YAAA;EAoUD;;;AAAA;AA4CD;EA1WE,MAAA;;;;;;;EA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A,GAAA;ENyC4D;EMvC5D,UAAA;AAAA;;;ANgD8B;AAQhC;;;KM/CY,aAAA;EACJ,IAAA;EAAe,IAAA;AAAA;EACf,IAAA;EAAc,IAAA;EAAc,UAAA;AAAA;;;ANyDgD;AAgBpF;;;;;;;;;;;AAYU;AAGV;;;;;;;iBMhEgB,mBAAA,CACd,IAAA,UACA,IAAA,WAAe,gBAAA,KACd,aAAa;;;;;;;;ANNhB;;;;;;;;;;;;UOjCiB,cAAA;EPwCyB;;;;;EOlCxC,MAAA;EP2C8B;AAQhC;;;;EO7CE,IAAI;AAAA;AAAA,UAGW,eAAA;EPsDf;;;;;;AAAkF;AAgBpF;;EO5DE,WAAA,aAAwB,KAAA,EAAO,MAAA;EP4DL;;;;;EOtD1B,MAAA,GAAS,KAAA,EAAO,MAAA,sBAA4B,cAAA;AAAA;AAAA,cAOjC,YAAA,EAAc,QAAA,CAAS,MAAA,SAAe,eAAA;AP2DzC;AAGV;;;;;;;;;;;;;;AAHU,iBOkPM,cAAA,CACd,IAAA,UACA,KAAA,GAAQ,MAAM;;;;;;;iBAkBA,cAAA,CAAe,IAAA,UAAc,KAAA,EAAO,MAAA,oBAA0B,cAAc"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { c as resolveReadStateMap, r as hashContent, s as readStateKey } from "./read-state-BymF41Jb.js";
|
|
2
2
|
import { i as styleReplacementForVia, n as resolveOldString, r as stripLineNumberPrefixes, t as describeVia } from "./edit-utils-EGosADZq.js";
|
|
3
|
-
import { J as resolveAttachmentFromTurns, c as looksBinary, g as pathArgError, q as parseAttachmentHandle, t as createAgent } from "./agent-
|
|
3
|
+
import { J as resolveAttachmentFromTurns, c as looksBinary, g as pathArgError, q as parseAttachmentHandle, t as createAgent } from "./agent-Cch2ayTt.js";
|
|
4
4
|
import { a as formatTaskStatus, i as formatDuration, s as previewLine } from "./format-BNOXpl-1.js";
|
|
5
|
+
import { i as parseGitLsFiles, r as GIT_LS_FILES_COMMAND } from "./glob-DluQFSw1.js";
|
|
5
6
|
import { l as errorMessage, u as isAbortLikeError } from "./errors-DJUxZg9b.js";
|
|
6
7
|
import { n as reconcileImageMediaType } from "./media-sniff-Bn76JxAu.js";
|
|
7
8
|
import { n as flattenTurns, r as formatTokenUsage } from "./stats-DAKBEKjc.js";
|
|
@@ -217,6 +218,8 @@ function sharedPrefixLength(a, b) {
|
|
|
217
218
|
* paths only. Pass `metadata: false` to request plain newline-separated paths.
|
|
218
219
|
*/
|
|
219
220
|
const DEFAULT_LIMIT = 1e3;
|
|
221
|
+
/** Backstop so a pathological walk can never hang the agent's turn. */
|
|
222
|
+
const GLOB_TIMEOUT_MS = 2e4;
|
|
220
223
|
function entryPath$1(entry) {
|
|
221
224
|
return typeof entry === "string" ? entry : entry.path;
|
|
222
225
|
}
|
|
@@ -248,24 +251,46 @@ const glob = {
|
|
|
248
251
|
metadata: {
|
|
249
252
|
type: "boolean",
|
|
250
253
|
description: "Append size (bytes) and mtime (ISO) per row, tab-separated. Default: true. In-process only — non-process execution contexts always return paths."
|
|
254
|
+
},
|
|
255
|
+
gitignore: {
|
|
256
|
+
type: "boolean",
|
|
257
|
+
description: "Skip files git ignores (.gitignore, .git/info/exclude, global excludes). Default: true. Set false to include ignored files like node_modules. Honored where git is available; a no-op otherwise."
|
|
251
258
|
}
|
|
252
259
|
},
|
|
253
260
|
required: ["pattern"]
|
|
254
261
|
}
|
|
255
262
|
},
|
|
256
|
-
async execute({ pattern, limit, metadata }, ctx) {
|
|
263
|
+
async execute({ pattern, limit, metadata, gitignore }, ctx) {
|
|
257
264
|
const pat = pattern;
|
|
258
265
|
const max = typeof limit === "number" && limit > 0 ? limit : DEFAULT_LIMIT;
|
|
259
266
|
const wantMetadata = metadata !== false;
|
|
260
267
|
try {
|
|
261
268
|
if (ctx.execution.capabilities.glob !== true) throw new Error(`The active execution context (${ctx.execution.type}) does not support glob matching.`);
|
|
262
|
-
const
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
269
|
+
const controller = new AbortController();
|
|
270
|
+
const onAbort = () => controller.abort();
|
|
271
|
+
ctx.signal.addEventListener("abort", onAbort, { once: true });
|
|
272
|
+
let timer;
|
|
273
|
+
const timeout = new Promise((resolve) => {
|
|
274
|
+
timer = setTimeout(() => {
|
|
275
|
+
controller.abort();
|
|
276
|
+
resolve("timeout");
|
|
277
|
+
}, GLOB_TIMEOUT_MS);
|
|
266
278
|
});
|
|
267
|
-
|
|
268
|
-
|
|
279
|
+
try {
|
|
280
|
+
const outcome = await Promise.race([ctx.execution.listFiles(ctx.handle, pat, {
|
|
281
|
+
glob: true,
|
|
282
|
+
limit: max,
|
|
283
|
+
metadata: wantMetadata,
|
|
284
|
+
gitignore,
|
|
285
|
+
signal: controller.signal
|
|
286
|
+
}), timeout]);
|
|
287
|
+
if (outcome === "timeout") return `Glob timed out after ${GLOB_TIMEOUT_MS}ms — narrow the pattern (anchor a literal prefix like \`src/**\`) or scope it to a subdirectory.`;
|
|
288
|
+
if (outcome.length === 0) return "(no matches)";
|
|
289
|
+
return outcome.map((entry) => renderEntry(entry, wantMetadata)).join("\n");
|
|
290
|
+
} finally {
|
|
291
|
+
clearTimeout(timer);
|
|
292
|
+
ctx.signal.removeEventListener("abort", onAbort);
|
|
293
|
+
}
|
|
269
294
|
} catch (err) {
|
|
270
295
|
return `Glob error: ${errorMessage(err)}`;
|
|
271
296
|
}
|
|
@@ -374,6 +399,10 @@ const grep = {
|
|
|
374
399
|
type: "boolean",
|
|
375
400
|
description: "Allow patterns to match across line boundaries."
|
|
376
401
|
},
|
|
402
|
+
"gitignore": {
|
|
403
|
+
type: "boolean",
|
|
404
|
+
description: "Skip files git ignores (.gitignore, .git/info/exclude, global excludes). Default: true. Set false to also search ignored files like node_modules."
|
|
405
|
+
},
|
|
377
406
|
"head_limit": {
|
|
378
407
|
type: "integer",
|
|
379
408
|
description: `Cap output lines. Default: 250. Set 0 for unlimited lines. In content mode, context lines (-A/-B/-C) and "--" separators count toward the cap, so the number of matches shown may be lower. Output is independently byte-bounded: each line is clipped to ${MAX_LINE_BYTES} bytes and the total to ${OUTPUT_BYTE_CAP} bytes, so long (e.g. minified) lines never overflow the context window.`
|
|
@@ -421,6 +450,7 @@ async function runViaRipgrep(input, ctx) {
|
|
|
421
450
|
if (typeof input["-C"] === "number" && typeof input["-A"] !== "number" && typeof input["-B"] !== "number") args.push("-C", String(input["-C"]));
|
|
422
451
|
}
|
|
423
452
|
if (input.multiline) args.push("--multiline", "--multiline-dotall");
|
|
453
|
+
if (input.gitignore === false) args.push("--no-ignore");
|
|
424
454
|
if (input.glob) args.push("--glob", input.glob);
|
|
425
455
|
if (input.type) args.push("--type", input.type);
|
|
426
456
|
args.push("--", input.pattern);
|
|
@@ -510,7 +540,27 @@ async function enumerateFiles(input, ctx) {
|
|
|
510
540
|
}
|
|
511
541
|
const result = await ctx.execution.exec(ctx.handle, buildFindCommand(root, input.glob), { signal: ctx.signal });
|
|
512
542
|
if (result.exitCode !== 0 && !result.stdout.trim()) throw new Error(result.stderr.trim() || `find exited with code ${result.exitCode}`);
|
|
513
|
-
|
|
543
|
+
const files = result.stdout.split("\n").map((line) => line.replace(/^\.\//, "")).filter((line) => line.length > 0).sort();
|
|
544
|
+
if (input.gitignore === false) return files;
|
|
545
|
+
return filterByGitignore(files, root, ctx);
|
|
546
|
+
}
|
|
547
|
+
/**
|
|
548
|
+
* Best-effort intersection of `files` with `git ls-files` (non-ignored set).
|
|
549
|
+
* Returns `files` unchanged when git is unavailable, the dir isn't a repo, or
|
|
550
|
+
* `root` escapes the repo (absolute / `..`) — the filter can only fail open.
|
|
551
|
+
*/
|
|
552
|
+
async function filterByGitignore(files, root, ctx) {
|
|
553
|
+
if (files.length === 0) return files;
|
|
554
|
+
if (root !== "." && (root.startsWith("/") || root.split("/").includes(".."))) return files;
|
|
555
|
+
try {
|
|
556
|
+
const res = await ctx.execution.exec(ctx.handle, GIT_LS_FILES_COMMAND, { signal: ctx.signal });
|
|
557
|
+
if (res.exitCode !== 0) return files;
|
|
558
|
+
const allowed = new Set(parseGitLsFiles(res.stdout));
|
|
559
|
+
if (allowed.size === 0) return files;
|
|
560
|
+
return files.filter((file) => allowed.has(file));
|
|
561
|
+
} catch {
|
|
562
|
+
return files;
|
|
563
|
+
}
|
|
514
564
|
}
|
|
515
565
|
/**
|
|
516
566
|
* Build a `find` command listing files under `root`, optionally filtered by
|
|
@@ -1686,4 +1736,4 @@ const writeFile = {
|
|
|
1686
1736
|
//#endregion
|
|
1687
1737
|
export { multiEdit as a, grep as c, readFile as i, glob as l, createSpawnTool as n, listFiles as o, shellKill as r, createInteractionTool as s, writeFile as t, edit as u };
|
|
1688
1738
|
|
|
1689
|
-
//# sourceMappingURL=tools-
|
|
1739
|
+
//# sourceMappingURL=tools-CCd8e-HT.js.map
|