@wrongstack/tools 1.0.3 → 1.0.5
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 +0 -6
- package/dist/_util.d.ts +18 -0
- package/dist/audit.js +4 -4
- package/dist/bash.js +2 -2
- package/dist/browser/index.d.ts +1 -1
- package/dist/browser/index.js +9 -1
- package/dist/browser/tools.d.ts +14 -0
- package/dist/builtin.d.ts +16 -13
- package/dist/builtin.js +41 -45
- package/dist/{chunk-AQ5YBURX.js → chunk-2IC5FRD7.js} +2 -2
- package/dist/{chunk-VU3QBYL4.js → chunk-2ZWQIVEW.js} +2 -2
- package/dist/{chunk-JDOO4P6Z.js → chunk-3F7HQ3KS.js} +2 -2
- package/dist/{chunk-DX5KZEMK.js → chunk-47GYABZW.js} +2 -2
- package/dist/{chunk-KYVOTHG7.js → chunk-4KI4HHID.js} +2 -2
- package/dist/{chunk-3JVSOBHU.js → chunk-54SIRJ6D.js} +4 -4
- package/dist/{chunk-X6KXNHUO.js → chunk-5BKQVP56.js} +22 -5
- package/dist/{chunk-SMARDKAC.js → chunk-5UA4TNJJ.js} +2 -2
- package/dist/{chunk-SOR7OCYP.js → chunk-6XYFYLN7.js} +23 -1
- package/dist/{chunk-VO6M2FVG.js → chunk-6ZRP5IKQ.js} +2 -2
- package/dist/{chunk-E2ZD4ERD.js → chunk-7EQ2LUXU.js} +3 -3
- package/dist/{chunk-6LCKF5KH.js → chunk-7PEZU5Y4.js} +1 -1
- package/dist/{chunk-7HL23T3T.js → chunk-BU6VUXWG.js} +2 -2
- package/dist/{chunk-KIQTABBJ.js → chunk-C64UUXTA.js} +3 -3
- package/dist/{chunk-PNLDTRC5.js → chunk-CYPYJIAF.js} +7 -7
- package/dist/{chunk-IRUEHGCR.js → chunk-D4HWMWGE.js} +3 -3
- package/dist/{chunk-CVNCSMVU.js → chunk-DOHU3XHS.js} +46 -6
- package/dist/{chunk-32XPUSY3.js → chunk-FRIUJ534.js} +3 -3
- package/dist/{chunk-AMURQAJX.js → chunk-G35NLPG5.js} +3 -3
- package/dist/{chunk-ZUFHAHTE.js → chunk-HKR56VNF.js} +15 -2
- package/dist/{chunk-ASEXQRA7.js → chunk-IMIHTHF7.js} +8 -6
- package/dist/{chunk-77MBK46T.js → chunk-IOOFLBVM.js} +3 -3
- package/dist/{chunk-3LS3FYEF.js → chunk-JK5WXW4S.js} +2 -2
- package/dist/{chunk-GU7QJ37F.js → chunk-JQ43NVFU.js} +2 -2
- package/dist/{chunk-YECHJJJF.js → chunk-K7Y2IWEB.js} +4 -4
- package/dist/{chunk-VZGPASGD.js → chunk-MG7CUN6R.js} +2 -2
- package/dist/{chunk-NOCU555K.js → chunk-NKOTOW6X.js} +3 -3
- package/dist/{chunk-YDTRKEYY.js → chunk-OBVXDVLE.js} +3 -3
- package/dist/{chunk-TYRVYBHW.js → chunk-OVFQC6FU.js} +235 -176
- package/dist/{chunk-VKAJMHVG.js → chunk-OZVGRDCM.js} +3 -3
- package/dist/{chunk-FC3X7GGJ.js → chunk-R36RWYXE.js} +3 -3
- package/dist/{chunk-Z34CUZCZ.js → chunk-S6E2AM4U.js} +3 -3
- package/dist/chunk-SIIOHBNY.js +38 -0
- package/dist/{chunk-4YKVHCQC.js → chunk-TGVQMKVH.js} +3 -3
- package/dist/{chunk-QU2VRCMM.js → chunk-TL5T4A4E.js} +3 -3
- package/dist/{chunk-6ZLRRC74.js → chunk-WBAPU3AB.js} +40 -2
- package/dist/{chunk-RV7BVTDG.js → chunk-WKXL5XHU.js} +2 -2
- package/dist/{chunk-2CTZW6JQ.js → chunk-XHSHNOAF.js} +12 -11
- package/dist/{chunk-24T5XIJU.js → chunk-YA2ZYCJY.js} +4 -4
- package/dist/{chunk-T7YVY2BV.js → chunk-YILT3CSO.js} +2 -2
- package/dist/{chunk-OUEH4I4X.js → chunk-YJQQ5F5J.js} +3 -3
- package/dist/{chunk-MIV2RU5B.js → chunk-ZETZHHV5.js} +3 -3
- package/dist/{chunk-4ERMPDHV.js → chunk-ZSW5KO5S.js} +21 -17
- package/dist/clarify.d.ts +18 -3
- package/dist/codebase-index/codebase-search-tool.d.ts +2 -3
- package/dist/codebase-index/gitignore.d.ts +1 -1
- package/dist/codebase-index/index.js +7 -7
- package/dist/codebase-index/parser-worker-script.js +1 -1
- package/dist/codebase-index/project-server-endpoint.d.ts +33 -0
- package/dist/codebase-index/project-server.js +6 -5
- package/dist/codebase-index/worker.js +3 -3
- package/dist/diff.js +2 -2
- package/dist/e2e.js +2 -2
- package/dist/edit.js +7 -7
- package/dist/exec.js +2 -2
- package/dist/fetch.js +2 -2
- package/dist/format.js +4 -4
- package/dist/git.js +2 -2
- package/dist/glob.js +3 -3
- package/dist/grep.js +3 -3
- package/dist/index.d.ts +2 -8
- package/dist/index.js +76 -117
- package/dist/install.js +4 -4
- package/dist/json.js +2 -2
- package/dist/kanban.js +2 -2
- package/dist/languages/index.js +2 -2
- package/dist/{legacy-bridge-WVQ4BHDI.js → legacy-bridge-XM2GV665.js} +4 -4
- package/dist/lint.js +4 -4
- package/dist/logs.js +2 -2
- package/dist/outdated.js +2 -2
- package/dist/pack.js +42 -46
- package/dist/{parser-dispatch-UQAB4E6V.js → parser-dispatch-HZDZSIYH.js} +2 -2
- package/dist/patch.js +7 -7
- package/dist/plan.js +4 -4
- package/dist/read-url-content.d.ts +17 -0
- package/dist/read.js +7 -7
- package/dist/replace.js +7 -7
- package/dist/session-kanban.js +1 -1
- package/dist/session-shell.d.ts +12 -0
- package/dist/session-shell.js +8 -0
- package/dist/task.js +4 -4
- package/dist/test.js +4 -4
- package/dist/todo.js +3 -3
- package/dist/tool-search.js +1 -1
- package/dist/tool-tier.d.ts +12 -2
- package/dist/tool-tier.js +43 -47
- package/dist/tree.js +2 -2
- package/dist/typecheck.js +4 -4
- package/dist/write.js +7 -7
- package/package.json +9 -21
- package/dist/batch-tool-use.d.ts +0 -24
- package/dist/batch-tool-use.js +0 -7
- package/dist/chunk-7ODZTPCU.js +0 -128
- package/dist/chunk-CHEK3ASV.js +0 -183
- package/dist/chunk-KLJZ4WV4.js +0 -213
- package/dist/chunk-VBF2YXUW.js +0 -203
- package/dist/document.d.ts +0 -25
- package/dist/document.js +0 -8
- package/dist/scaffold.d.ts +0 -23
- package/dist/scaffold.js +0 -10
- package/dist/set-working-dir.d.ts +0 -17
- package/dist/tool-help.d.ts +0 -21
- package/dist/tool-help.js +0 -7
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
outgoingCallsService,
|
|
16
16
|
runStartupIndex,
|
|
17
17
|
searchCodebaseIndex
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-DOHU3XHS.js";
|
|
19
19
|
import {
|
|
20
20
|
IndexTimeoutError,
|
|
21
21
|
SCHEMA_VERSION,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
posixIndexPath,
|
|
27
27
|
resolveIndexDir,
|
|
28
28
|
xxhash64String
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-54SIRJ6D.js";
|
|
30
30
|
import {
|
|
31
31
|
EXT_TO_LANG,
|
|
32
32
|
detectLang,
|
|
@@ -34,11 +34,11 @@ import {
|
|
|
34
34
|
} from "./chunk-YOHO4DVT.js";
|
|
35
35
|
import {
|
|
36
36
|
loadGitignoreMatcher
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-XHSHNOAF.js";
|
|
38
38
|
import {
|
|
39
39
|
normalizeCommandOutput,
|
|
40
40
|
safeResolveProjectPath
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-HKR56VNF.js";
|
|
42
42
|
|
|
43
43
|
// src/codebase-index/ast-invariant-engine.ts
|
|
44
44
|
var tsModule = null;
|
|
@@ -1026,7 +1026,7 @@ var codebaseSearchTool = {
|
|
|
1026
1026
|
name: "codebase-search",
|
|
1027
1027
|
category: "Project",
|
|
1028
1028
|
icon: "index",
|
|
1029
|
-
description: "Search code symbols using a fast SQLite+BM25 index
|
|
1029
|
+
description: "Search code symbols using a fast SQLite+BM25 index. Prefer this before broad `tree`, `glob`, or `grep` exploration when finding code by name or concept. Use `grep` instead for exact text, regexes, unsupported content, or concrete usage sites. When LSP tools are active, use `codebase-lsp-search` for live workspace-symbol results.",
|
|
1030
1030
|
usageHint: "FIRST CHOICE FOR INDEXABLE CODE UNDERSTANDING:\n\n- Call before broad `tree`, `glob`, or `grep` exploration when locating symbols, concepts, definitions, or candidate modules.\n- `kind` filter is very useful (e.g. only functions or only interfaces).\n- Combine with `file` filter to scope to a specific directory or module.\n- If `indexStatus` reports no persisted data, run `codebase-index` and retry.",
|
|
1031
1031
|
permission: "auto",
|
|
1032
1032
|
mutating: false,
|
|
@@ -1088,7 +1088,7 @@ var codebaseSearchTool = {
|
|
|
1088
1088
|
},
|
|
1089
1089
|
preferLsp: {
|
|
1090
1090
|
type: "boolean",
|
|
1091
|
-
description: "
|
|
1091
|
+
description: "Deprecated compatibility hint. This built-in remains index-only; use codebase-lsp-search for live LSP results."
|
|
1092
1092
|
}
|
|
1093
1093
|
},
|
|
1094
1094
|
required: ["query"]
|
|
@@ -4047,4 +4047,4 @@ export {
|
|
|
4047
4047
|
embedFiles,
|
|
4048
4048
|
embedProjectFiles
|
|
4049
4049
|
};
|
|
4050
|
-
//# sourceMappingURL=chunk-
|
|
4050
|
+
//# sourceMappingURL=chunk-CYPYJIAF.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
tryLegacyCodeOperation
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JQ43NVFU.js";
|
|
4
4
|
import {
|
|
5
5
|
spawnStream
|
|
6
6
|
} from "./chunk-EMA2XENR.js";
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
detectPackageManager,
|
|
9
9
|
normalizeCommandOutput,
|
|
10
10
|
safeResolveReal
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-HKR56VNF.js";
|
|
12
12
|
|
|
13
13
|
// src/typecheck.ts
|
|
14
14
|
import * as path from "node:path";
|
|
@@ -162,4 +162,4 @@ async function findTsConfig(cwd) {
|
|
|
162
162
|
export {
|
|
163
163
|
typecheckTool
|
|
164
164
|
};
|
|
165
|
-
//# sourceMappingURL=chunk-
|
|
165
|
+
//# sourceMappingURL=chunk-D4HWMWGE.js.map
|
|
@@ -2,14 +2,18 @@ import {
|
|
|
2
2
|
MAX_BINARY_FRAME_BYTES,
|
|
3
3
|
PROJECT_INDEX_SERVER_MAX_FRAME_CHARS,
|
|
4
4
|
PROJECT_INDEX_SERVER_PROTOCOL_VERSION,
|
|
5
|
+
PROJECT_INDEX_SERVER_STDERR_MAX_BYTES,
|
|
5
6
|
decodeBinaryFrame,
|
|
6
7
|
encodeBinaryFrame,
|
|
7
8
|
encodeProjectServerMessage,
|
|
9
|
+
formatProjectIndexServerCloseError,
|
|
8
10
|
isBinaryFrame,
|
|
9
11
|
projectIndexServerBuildId,
|
|
10
12
|
projectIndexServerEndpoint,
|
|
11
|
-
projectIndexServerMetadataPath
|
|
12
|
-
|
|
13
|
+
projectIndexServerMetadataPath,
|
|
14
|
+
projectIndexServerStderrPath,
|
|
15
|
+
readProjectIndexServerStderrTail
|
|
16
|
+
} from "./chunk-WBAPU3AB.js";
|
|
13
17
|
import {
|
|
14
18
|
CircuitOpenError,
|
|
15
19
|
IndexTimeoutError,
|
|
@@ -24,7 +28,7 @@ import {
|
|
|
24
28
|
searchService,
|
|
25
29
|
statsService,
|
|
26
30
|
symbolGraphService
|
|
27
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-54SIRJ6D.js";
|
|
28
32
|
import {
|
|
29
33
|
recordIpcPending
|
|
30
34
|
} from "./chunk-ZKC5UNGD.js";
|
|
@@ -158,6 +162,7 @@ function cancellationError(signal) {
|
|
|
158
162
|
import { spawn } from "node:child_process";
|
|
159
163
|
import * as fs2 from "node:fs";
|
|
160
164
|
import * as net from "node:net";
|
|
165
|
+
import * as path from "node:path";
|
|
161
166
|
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
162
167
|
var ProjectServerConnection = class {
|
|
163
168
|
constructor(projectRoot, indexDir, endpoint) {
|
|
@@ -587,6 +592,21 @@ var ProjectServerConnection = class {
|
|
|
587
592
|
if (message.ok) entry.resolve(message.result);
|
|
588
593
|
else entry.reject(remoteError(message.error, message.errorName));
|
|
589
594
|
}
|
|
595
|
+
/**
|
|
596
|
+
* Why the connection closed, as far as the daemon left evidence.
|
|
597
|
+
*
|
|
598
|
+
* A closed socket has two very different causes — an orderly shutdown, and
|
|
599
|
+
* the daemon dying — and they were reported identically. If the daemon
|
|
600
|
+
* wrote anything to stderr, that text is the difference between a failure
|
|
601
|
+
* someone can act on and one that reads as a flake.
|
|
602
|
+
*/
|
|
603
|
+
closeReason() {
|
|
604
|
+
return formatProjectIndexServerCloseError(
|
|
605
|
+
readProjectIndexServerStderrTail(
|
|
606
|
+
projectIndexServerStderrPath(this.projectRoot, this.indexDir)
|
|
607
|
+
)
|
|
608
|
+
);
|
|
609
|
+
}
|
|
590
610
|
onClose(socket) {
|
|
591
611
|
if (socket !== this.socket) return;
|
|
592
612
|
const wasConnected = this.info !== null;
|
|
@@ -594,7 +614,7 @@ var ProjectServerConnection = class {
|
|
|
594
614
|
this.info = null;
|
|
595
615
|
this.activity = null;
|
|
596
616
|
this.health = null;
|
|
597
|
-
const error = new Error(
|
|
617
|
+
const error = new Error(this.closeReason());
|
|
598
618
|
this.connectReject?.(error);
|
|
599
619
|
this.connectResolve = null;
|
|
600
620
|
this.connectReject = null;
|
|
@@ -651,12 +671,32 @@ var ProjectServerConnection = class {
|
|
|
651
671
|
}
|
|
652
672
|
const args = [fileURLToPath2(url), "--project-root", this.projectRoot];
|
|
653
673
|
if (this.indexDir) args.push("--index-dir", this.indexDir);
|
|
674
|
+
let stderrTarget = "ignore";
|
|
675
|
+
try {
|
|
676
|
+
const logPath = projectIndexServerStderrPath(this.projectRoot, this.indexDir);
|
|
677
|
+
fs2.mkdirSync(path.dirname(logPath), { recursive: true });
|
|
678
|
+
try {
|
|
679
|
+
if (fs2.statSync(logPath).size > PROJECT_INDEX_SERVER_STDERR_MAX_BYTES) {
|
|
680
|
+
fs2.truncateSync(logPath, 0);
|
|
681
|
+
}
|
|
682
|
+
} catch {
|
|
683
|
+
}
|
|
684
|
+
stderrTarget = fs2.openSync(logPath, "a");
|
|
685
|
+
} catch {
|
|
686
|
+
stderrTarget = "ignore";
|
|
687
|
+
}
|
|
654
688
|
const child = spawn(process.execPath, args, {
|
|
655
689
|
detached: true,
|
|
656
|
-
stdio: "ignore",
|
|
690
|
+
stdio: ["ignore", "ignore", stderrTarget],
|
|
657
691
|
windowsHide: true,
|
|
658
692
|
env: process.env
|
|
659
693
|
});
|
|
694
|
+
if (typeof stderrTarget === "number") {
|
|
695
|
+
try {
|
|
696
|
+
fs2.closeSync(stderrTarget);
|
|
697
|
+
} catch {
|
|
698
|
+
}
|
|
699
|
+
}
|
|
660
700
|
child.unref();
|
|
661
701
|
}
|
|
662
702
|
forceKillKnownServer() {
|
|
@@ -1312,4 +1352,4 @@ export {
|
|
|
1312
1352
|
checkCodebaseIndexServerHealth,
|
|
1313
1353
|
ensureCodebaseIndexServer
|
|
1314
1354
|
};
|
|
1315
|
-
//# sourceMappingURL=chunk-
|
|
1355
|
+
//# sourceMappingURL=chunk-DOHU3XHS.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
builtinToolsPack
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6ZRP5IKQ.js";
|
|
4
4
|
import {
|
|
5
5
|
TIER1_TOOLS,
|
|
6
6
|
TIER2_TOOLS
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-OVFQC6FU.js";
|
|
8
8
|
|
|
9
9
|
// src/tool-tier.ts
|
|
10
10
|
function toolNameSet(tools) {
|
|
@@ -54,4 +54,4 @@ export {
|
|
|
54
54
|
selectBuiltinToolsForTier,
|
|
55
55
|
registerBuiltinToolTier
|
|
56
56
|
};
|
|
57
|
-
//# sourceMappingURL=chunk-
|
|
57
|
+
//# sourceMappingURL=chunk-FRIUJ534.js.map
|
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
} from "./chunk-MSOAX3GC.js";
|
|
4
4
|
import {
|
|
5
5
|
enqueueReindex
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-DOHU3XHS.js";
|
|
7
7
|
import {
|
|
8
8
|
safeResolveReal,
|
|
9
9
|
sha256hex,
|
|
10
10
|
truncateDiffPayload
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-HKR56VNF.js";
|
|
12
12
|
|
|
13
13
|
// src/edit.ts
|
|
14
14
|
import * as fs from "node:fs/promises";
|
|
@@ -518,4 +518,4 @@ Compare this against your old_string and retry with the file's actual text.` : "
|
|
|
518
518
|
export {
|
|
519
519
|
editTool
|
|
520
520
|
};
|
|
521
|
-
//# sourceMappingURL=chunk-
|
|
521
|
+
//# sourceMappingURL=chunk-G35NLPG5.js.map
|
|
@@ -216,6 +216,18 @@ function normalizeCommandOutput(raw, opts = {}) {
|
|
|
216
216
|
text = text.replace(/\n{3,}/g, "\n\n");
|
|
217
217
|
return truncateHeadTail(text, opts.maxBytes ?? COMMAND_OUTPUT_MAX_BYTES);
|
|
218
218
|
}
|
|
219
|
+
function makeRootRelativizer(root) {
|
|
220
|
+
const resolved = path.resolve(root);
|
|
221
|
+
const prefix = resolved.endsWith(path.sep) ? resolved : resolved + path.sep;
|
|
222
|
+
const compare = process.platform === "win32" ? prefix.toLowerCase() : prefix;
|
|
223
|
+
return (absPath) => {
|
|
224
|
+
if (absPath.length <= prefix.length) return absPath;
|
|
225
|
+
const head = process.platform === "win32" ? absPath.slice(0, prefix.length).toLowerCase() : absPath.slice(0, prefix.length);
|
|
226
|
+
if (head !== compare) return absPath;
|
|
227
|
+
const rest = absPath.slice(prefix.length);
|
|
228
|
+
return rest.length > 0 ? rest : absPath;
|
|
229
|
+
};
|
|
230
|
+
}
|
|
219
231
|
|
|
220
232
|
export {
|
|
221
233
|
sha256hex,
|
|
@@ -229,6 +241,7 @@ export {
|
|
|
229
241
|
truncateMiddle,
|
|
230
242
|
isBinaryBuffer,
|
|
231
243
|
COMMAND_OUTPUT_MAX_BYTES,
|
|
232
|
-
normalizeCommandOutput
|
|
244
|
+
normalizeCommandOutput,
|
|
245
|
+
makeRootRelativizer
|
|
233
246
|
};
|
|
234
|
-
//# sourceMappingURL=chunk-
|
|
247
|
+
//# sourceMappingURL=chunk-HKR56VNF.js.map
|
|
@@ -3,24 +3,25 @@ import {
|
|
|
3
3
|
} from "./chunk-ZBMANLYH.js";
|
|
4
4
|
import {
|
|
5
5
|
loadGitignoreMatcher
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XHSHNOAF.js";
|
|
7
7
|
import {
|
|
8
8
|
assertRealInsideRoot,
|
|
9
|
+
makeRootRelativizer,
|
|
9
10
|
safeResolveReal
|
|
10
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-HKR56VNF.js";
|
|
11
12
|
|
|
12
13
|
// src/glob.ts
|
|
13
14
|
import * as fs from "node:fs/promises";
|
|
14
15
|
import * as path from "node:path";
|
|
15
|
-
import { compileGlob, DEFAULT_WALK_IGNORE_DIRS } from "@wrongstack/core/utils";
|
|
16
16
|
import { ToolValidationError } from "@wrongstack/core/types";
|
|
17
|
+
import { compileGlob, DEFAULT_WALK_IGNORE_DIRS } from "@wrongstack/core/utils";
|
|
17
18
|
var DEFAULT_IGNORE = new Set(DEFAULT_WALK_IGNORE_DIRS);
|
|
18
19
|
var WALK_CONCURRENCY = 16;
|
|
19
20
|
var globTool = {
|
|
20
21
|
name: "glob",
|
|
21
22
|
category: "Filesystem",
|
|
22
23
|
description: "Find files by path pattern. Results are sorted by modification time, newest first, so when the list is truncated at `limit` it is the oldest files that are dropped (recency-biased). Use index-backed `codebase-search` first for code symbols or concepts when it is live.",
|
|
23
|
-
usageHint: "PATH DISCOVERY AND SEARCH SCOPING:\n\n- When `codebase-search` is live, use it first for code concepts; use `glob` for filenames, path patterns, and non-indexed files.\n- Combine with `path` and `limit`.\n- Default ignores common build/dependency directories.\nMuch more efficient than shell `find` for most use cases inside the agent.",
|
|
24
|
+
usageHint: "PATH DISCOVERY AND SEARCH SCOPING:\n\n- When `codebase-search` is live, use it first for code concepts; use `glob` for filenames, path patterns, and non-indexed files.\n- Combine with `path` and `limit`.\n- Default ignores common build/dependency directories.\n- Returned paths are relative to the project root.\nMuch more efficient than shell `find` for most use cases inside the agent.",
|
|
24
25
|
selection: {
|
|
25
26
|
doNotUseWhen: "you need to search inside file contents.",
|
|
26
27
|
useInstead: ["grep"]
|
|
@@ -151,11 +152,12 @@ var globTool = {
|
|
|
151
152
|
};
|
|
152
153
|
await walk(base, "");
|
|
153
154
|
results.sort((a, b) => b.mtime - a.mtime);
|
|
154
|
-
|
|
155
|
+
const relativize = makeRootRelativizer(ctx.cwd);
|
|
156
|
+
return { files: results.map((r) => relativize(r.rel)), truncated };
|
|
155
157
|
}
|
|
156
158
|
};
|
|
157
159
|
|
|
158
160
|
export {
|
|
159
161
|
globTool
|
|
160
162
|
};
|
|
161
|
-
//# sourceMappingURL=chunk-
|
|
163
|
+
//# sourceMappingURL=chunk-IMIHTHF7.js.map
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
} from "./chunk-ZBMANLYH.js";
|
|
7
7
|
import {
|
|
8
8
|
enqueueReindex
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DOHU3XHS.js";
|
|
10
10
|
import {
|
|
11
11
|
isBinaryBuffer,
|
|
12
12
|
safeResolveReal,
|
|
13
13
|
sha256hex,
|
|
14
14
|
truncateDiffPayload
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-HKR56VNF.js";
|
|
16
16
|
|
|
17
17
|
// src/replace.ts
|
|
18
18
|
import { spawn } from "node:child_process";
|
|
@@ -413,4 +413,4 @@ export {
|
|
|
413
413
|
replaceTool,
|
|
414
414
|
__resetRgDetectionForTests
|
|
415
415
|
};
|
|
416
|
-
//# sourceMappingURL=chunk-
|
|
416
|
+
//# sourceMappingURL=chunk-IOOFLBVM.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
normalizeCommandOutput,
|
|
6
6
|
safeResolveReal
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HKR56VNF.js";
|
|
8
8
|
|
|
9
9
|
// src/languages/detect.ts
|
|
10
10
|
import { createHash } from "node:crypto";
|
|
@@ -3515,4 +3515,4 @@ export {
|
|
|
3515
3515
|
languagePackageTool,
|
|
3516
3516
|
languageInfoTool
|
|
3517
3517
|
};
|
|
3518
|
-
//# sourceMappingURL=chunk-
|
|
3518
|
+
//# sourceMappingURL=chunk-JK5WXW4S.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
executeLanguagePlan,
|
|
3
3
|
executePackagePlan,
|
|
4
4
|
planLanguageOperation
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-JK5WXW4S.js";
|
|
6
6
|
|
|
7
7
|
// src/languages/legacy-bridge.ts
|
|
8
8
|
import * as fs from "node:fs/promises";
|
|
@@ -104,4 +104,4 @@ export {
|
|
|
104
104
|
tryLegacyCodeOperation,
|
|
105
105
|
tryLegacyPackageOperation
|
|
106
106
|
};
|
|
107
|
-
//# sourceMappingURL=chunk-
|
|
107
|
+
//# sourceMappingURL=chunk-JQ43NVFU.js.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getIndexState,
|
|
3
3
|
searchCodebaseIndex
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-DOHU3XHS.js";
|
|
5
5
|
import {
|
|
6
6
|
codebaseIndexDirOverride
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-54SIRJ6D.js";
|
|
8
8
|
import {
|
|
9
9
|
isBinaryBuffer,
|
|
10
10
|
safeResolveReal,
|
|
11
11
|
sha256hex
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-HKR56VNF.js";
|
|
13
13
|
|
|
14
14
|
// src/read.ts
|
|
15
15
|
import * as fs from "node:fs/promises";
|
|
@@ -340,4 +340,4 @@ ${interesting.join("\n")}` : "symbols/imports: (none detected)"
|
|
|
340
340
|
export {
|
|
341
341
|
readTool
|
|
342
342
|
};
|
|
343
|
-
//# sourceMappingURL=chunk-
|
|
343
|
+
//# sourceMappingURL=chunk-K7Y2IWEB.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-YJTXRH5Y.js";
|
|
5
5
|
import {
|
|
6
6
|
safeResolveReal
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HKR56VNF.js";
|
|
8
8
|
|
|
9
9
|
// src/json.ts
|
|
10
10
|
import * as fs from "node:fs/promises";
|
|
@@ -701,4 +701,4 @@ ${toYaml(v, indent + 1)}`;
|
|
|
701
701
|
export {
|
|
702
702
|
jsonTool
|
|
703
703
|
};
|
|
704
|
-
//# sourceMappingURL=chunk-
|
|
704
|
+
//# sourceMappingURL=chunk-MG7CUN6R.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
todoTool
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TGVQMKVH.js";
|
|
4
4
|
import {
|
|
5
5
|
projectSessionPlanToKanban
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-5BKQVP56.js";
|
|
7
7
|
|
|
8
8
|
// src/plan.ts
|
|
9
9
|
import { randomUUID } from "node:crypto";
|
|
@@ -414,4 +414,4 @@ function mkResult(plan, ok, message, todos) {
|
|
|
414
414
|
export {
|
|
415
415
|
planTool
|
|
416
416
|
};
|
|
417
|
-
//# sourceMappingURL=chunk-
|
|
417
|
+
//# sourceMappingURL=chunk-NKOTOW6X.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
tryLegacyCodeOperation
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JQ43NVFU.js";
|
|
4
4
|
import {
|
|
5
5
|
spawnStream
|
|
6
6
|
} from "./chunk-EMA2XENR.js";
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
ensureInsideRoot,
|
|
9
9
|
normalizeCommandOutput,
|
|
10
10
|
safeResolveReal
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-HKR56VNF.js";
|
|
12
12
|
|
|
13
13
|
// src/format.ts
|
|
14
14
|
import * as path from "node:path";
|
|
@@ -251,4 +251,4 @@ export {
|
|
|
251
251
|
parseFormatterCounts,
|
|
252
252
|
detectFixer
|
|
253
253
|
};
|
|
254
|
-
//# sourceMappingURL=chunk-
|
|
254
|
+
//# sourceMappingURL=chunk-OBVXDVLE.js.map
|