@wrongstack/tools 1.0.2 → 1.0.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.
- package/dist/_win32-resolve.d.ts +1 -6
- package/dist/audit.js +5 -5
- package/dist/bash.js +2 -2
- package/dist/builtin.js +29 -29
- package/dist/{chunk-NFX2IUQA.js → chunk-32XPUSY3.js} +3 -3
- package/dist/{chunk-52UXXQMP.js → chunk-3JVSOBHU.js} +3 -3
- package/dist/{chunk-7N5U2RAU.js → chunk-3LS3FYEF.js} +2 -2
- package/dist/{chunk-FBUP524S.js → chunk-4YKVHCQC.js} +13 -2
- package/dist/{chunk-KE7A76VC.js → chunk-5U5ULQX2.js} +4 -14
- package/dist/{chunk-DL2ARI4S.js → chunk-6LCKF5KH.js} +5 -5
- package/dist/{chunk-MBR5VAB5.js → chunk-6ZLRRC74.js} +2 -2
- package/dist/{chunk-DKHMPKDG.js → chunk-77MBK46T.js} +3 -3
- package/dist/{chunk-7XUEPBNT.js → chunk-AMURQAJX.js} +2 -2
- package/dist/{chunk-TI5COGLY.js → chunk-CVNCSMVU.js} +3 -3
- package/dist/{chunk-MJSJWXBF.js → chunk-DX5KZEMK.js} +14 -2
- package/dist/{chunk-TU5MTW2S.js → chunk-E2ZD4ERD.js} +2 -2
- package/dist/{chunk-DRRY6SCM.js → chunk-EMA2XENR.js} +2 -2
- package/dist/{chunk-3D5DJWOE.js → chunk-FC3X7GGJ.js} +11 -3
- package/dist/{chunk-T3SMFF5Q.js → chunk-GU7QJ37F.js} +2 -2
- package/dist/{chunk-4WPBS45A.js → chunk-IRUEHGCR.js} +3 -3
- package/dist/{chunk-WEEVSWQB.js → chunk-KIQTABBJ.js} +3 -3
- package/dist/{chunk-6H4ERJP7.js → chunk-KYVOTHG7.js} +2 -2
- package/dist/{chunk-O6BY43ZB.js → chunk-MIV2RU5B.js} +3 -3
- package/dist/{chunk-5KS24LTS.js → chunk-NOCU555K.js} +2 -2
- package/dist/{chunk-6GOZTS6F.js → chunk-OUEH4I4X.js} +3 -3
- package/dist/{chunk-HWXIRVKH.js → chunk-PNLDTRC5.js} +26 -12
- package/dist/{chunk-KVTEIUND.js → chunk-QU2VRCMM.js} +2 -2
- package/dist/{chunk-3AU6CZWL.js → chunk-REWOZIA4.js} +2 -2
- package/dist/{chunk-MGPR7VG3.js → chunk-T7YVY2BV.js} +2 -2
- package/dist/{chunk-UCXFTCAI.js → chunk-TYRVYBHW.js} +22 -22
- package/dist/{chunk-LQSOU63Z.js → chunk-VKAJMHVG.js} +2 -2
- package/dist/{chunk-EL2NJXSK.js → chunk-VO6M2FVG.js} +2 -2
- package/dist/{chunk-NJX2RXKJ.js → chunk-YDTRKEYY.js} +11 -3
- package/dist/{chunk-UOYRAS4J.js → chunk-YECHJJJF.js} +3 -3
- package/dist/{chunk-QA6IASYX.js → chunk-Z34CUZCZ.js} +3 -3
- package/dist/codebase-index/index.js +8 -8
- package/dist/codebase-index/parser-worker-script.js +3 -3
- package/dist/codebase-index/project-server.js +5 -5
- package/dist/codebase-index/worker.js +4 -4
- package/dist/edit.js +7 -7
- package/dist/exec.js +2 -2
- package/dist/fetch.js +1 -1
- package/dist/format.js +5 -5
- package/dist/{go-parser-QIEXU3P2.js → go-parser-EMKTAAD3.js} +2 -2
- package/dist/index.js +31 -31
- package/dist/install.js +5 -5
- package/dist/languages/index.js +3 -3
- package/dist/{legacy-bridge-YXANP5QB.js → legacy-bridge-WVQ4BHDI.js} +5 -5
- package/dist/lint.js +5 -5
- package/dist/outdated.js +2 -2
- package/dist/pack.js +30 -30
- package/dist/{parser-dispatch-37FT3EXQ.js → parser-dispatch-UQAB4E6V.js} +4 -4
- package/dist/patch.js +7 -7
- package/dist/plan.js +2 -2
- package/dist/{py-parser-6GJTGUXK.js → py-parser-DDG53RXI.js} +3 -3
- package/dist/read.js +7 -7
- package/dist/replace.js +7 -7
- package/dist/task.js +2 -2
- package/dist/test.js +5 -5
- package/dist/todo.js +1 -1
- package/dist/tool-tier.js +31 -31
- package/dist/typecheck.js +5 -5
- package/dist/win32.js +1 -1
- package/dist/write.js +7 -7
- package/package.json +5 -5
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-XRNN44QY.js";
|
|
4
4
|
import {
|
|
5
5
|
spawnStream
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-EMA2XENR.js";
|
|
7
7
|
import {
|
|
8
8
|
codebaseContext,
|
|
9
9
|
codebaseIndexStats,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
outgoingCallsService,
|
|
16
16
|
runStartupIndex,
|
|
17
17
|
searchCodebaseIndex
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-CVNCSMVU.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-3JVSOBHU.js";
|
|
30
30
|
import {
|
|
31
31
|
EXT_TO_LANG,
|
|
32
32
|
detectLang,
|
|
@@ -875,6 +875,7 @@ var codebaseImpactAnalysisTool = {
|
|
|
875
875
|
};
|
|
876
876
|
|
|
877
877
|
// src/codebase-index/codebase-incoming-calls-tool.ts
|
|
878
|
+
import { ToolValidationError } from "@wrongstack/core/types";
|
|
878
879
|
import { toErrorMessage as toErrorMessage3 } from "@wrongstack/core/utils";
|
|
879
880
|
var codebaseIncomingCallsTool = {
|
|
880
881
|
name: "codebase-incoming-calls",
|
|
@@ -912,6 +913,12 @@ var codebaseIncomingCallsTool = {
|
|
|
912
913
|
required: ["symbol"]
|
|
913
914
|
},
|
|
914
915
|
async execute(input, ctx) {
|
|
916
|
+
if (!input?.symbol || typeof input.symbol !== "string" || !input.symbol.trim()) {
|
|
917
|
+
throw new ToolValidationError({
|
|
918
|
+
message: "codebase-incoming-calls: symbol is required and cannot be empty",
|
|
919
|
+
field: "symbol"
|
|
920
|
+
});
|
|
921
|
+
}
|
|
915
922
|
const state = getIndexState();
|
|
916
923
|
if (state.lastError) {
|
|
917
924
|
const circuit = state.circuit;
|
|
@@ -1007,10 +1014,10 @@ var codebaseIncomingCallsTool = {
|
|
|
1007
1014
|
};
|
|
1008
1015
|
|
|
1009
1016
|
// src/codebase-index/codebase-index-tool.ts
|
|
1010
|
-
import { ToolValidationError as
|
|
1017
|
+
import { ToolValidationError as ToolValidationError3 } from "@wrongstack/core/types";
|
|
1011
1018
|
|
|
1012
1019
|
// src/codebase-index/codebase-search-tool.ts
|
|
1013
|
-
import { ToolValidationError } from "@wrongstack/core/types";
|
|
1020
|
+
import { ToolValidationError as ToolValidationError2 } from "@wrongstack/core/types";
|
|
1014
1021
|
import { toErrorMessage as toErrorMessage4 } from "@wrongstack/core/utils";
|
|
1015
1022
|
var INDEXABLE_LANG_IDS = [
|
|
1016
1023
|
...new Set(Object.values(EXT_TO_LANG))
|
|
@@ -1088,13 +1095,13 @@ var codebaseSearchTool = {
|
|
|
1088
1095
|
},
|
|
1089
1096
|
async execute(input, ctx, execOpts) {
|
|
1090
1097
|
if (!input?.query || typeof input.query !== "string" || !input.query.trim()) {
|
|
1091
|
-
throw new
|
|
1098
|
+
throw new ToolValidationError2({
|
|
1092
1099
|
message: "codebase-search: query is required and cannot be empty",
|
|
1093
1100
|
field: "query"
|
|
1094
1101
|
});
|
|
1095
1102
|
}
|
|
1096
1103
|
if (input.lspKind !== void 0 && (!Number.isInteger(input.lspKind) || input.lspKind < 1 || input.lspKind > 26)) {
|
|
1097
|
-
throw new
|
|
1104
|
+
throw new ToolValidationError2({
|
|
1098
1105
|
message: "codebase-search: lspKind must be an integer between 1 and 26",
|
|
1099
1106
|
field: "lspKind"
|
|
1100
1107
|
});
|
|
@@ -1212,7 +1219,7 @@ var codebaseIndexTool = {
|
|
|
1212
1219
|
signal?.throwIfAborted();
|
|
1213
1220
|
if (input.langs) {
|
|
1214
1221
|
if (!Array.isArray(input.langs) || input.langs.length === 0) {
|
|
1215
|
-
throw new
|
|
1222
|
+
throw new ToolValidationError3({
|
|
1216
1223
|
message: "codebase-index: langs cannot be an empty array. Pass at least one valid language or omit langs.",
|
|
1217
1224
|
field: "langs"
|
|
1218
1225
|
});
|
|
@@ -1221,7 +1228,7 @@ var codebaseIndexTool = {
|
|
|
1221
1228
|
(lang) => !INDEXABLE_LANG_IDS.includes(lang)
|
|
1222
1229
|
);
|
|
1223
1230
|
if (unknown.length > 0) {
|
|
1224
|
-
throw new
|
|
1231
|
+
throw new ToolValidationError3({
|
|
1225
1232
|
message: `codebase-index: unknown lang(s) ${unknown.map((l) => `"${l}"`).join(", ")}. Valid ids: ${INDEXABLE_LANG_IDS.join(", ")}.`,
|
|
1226
1233
|
field: "langs"
|
|
1227
1234
|
});
|
|
@@ -1350,6 +1357,7 @@ var codebaseInvariantCheckTool = {
|
|
|
1350
1357
|
};
|
|
1351
1358
|
|
|
1352
1359
|
// src/codebase-index/codebase-outgoing-calls-tool.ts
|
|
1360
|
+
import { ToolValidationError as ToolValidationError4 } from "@wrongstack/core/types";
|
|
1353
1361
|
import { toErrorMessage as toErrorMessage6 } from "@wrongstack/core/utils";
|
|
1354
1362
|
var codebaseOutgoingCallsTool = {
|
|
1355
1363
|
name: "codebase-outgoing-calls",
|
|
@@ -1387,6 +1395,12 @@ var codebaseOutgoingCallsTool = {
|
|
|
1387
1395
|
required: ["symbol"]
|
|
1388
1396
|
},
|
|
1389
1397
|
async execute(input, ctx) {
|
|
1398
|
+
if (!input?.symbol || typeof input.symbol !== "string" || !input.symbol.trim()) {
|
|
1399
|
+
throw new ToolValidationError4({
|
|
1400
|
+
message: "codebase-outgoing-calls: symbol is required and cannot be empty",
|
|
1401
|
+
field: "symbol"
|
|
1402
|
+
});
|
|
1403
|
+
}
|
|
1390
1404
|
const state = getIndexState();
|
|
1391
1405
|
if (state.lastError) {
|
|
1392
1406
|
const circuit = state.circuit;
|
|
@@ -3554,7 +3568,7 @@ async function buildProjectAtlasBrief(projectRoot, opts = {}) {
|
|
|
3554
3568
|
}
|
|
3555
3569
|
|
|
3556
3570
|
// src/codebase-index/codebase-context-tool.ts
|
|
3557
|
-
import { ToolValidationError as
|
|
3571
|
+
import { ToolValidationError as ToolValidationError5 } from "@wrongstack/core/types";
|
|
3558
3572
|
import { toErrorMessage as toErrorMessage11 } from "@wrongstack/core/utils";
|
|
3559
3573
|
var TOOL_TIMEOUT_MS = 35e3;
|
|
3560
3574
|
var VECTOR_HIT_LIMIT = 12;
|
|
@@ -3617,7 +3631,7 @@ var codebaseContextTool = {
|
|
|
3617
3631
|
async execute(input, ctx, execOpts) {
|
|
3618
3632
|
const query = typeof input.query === "string" ? input.query.trim() : "";
|
|
3619
3633
|
if (query.length === 0) {
|
|
3620
|
-
throw new
|
|
3634
|
+
throw new ToolValidationError5({
|
|
3621
3635
|
message: "codebase-context requires a non-empty `query`.",
|
|
3622
3636
|
field: "query"
|
|
3623
3637
|
});
|
|
@@ -4033,4 +4047,4 @@ export {
|
|
|
4033
4047
|
embedFiles,
|
|
4034
4048
|
embedProjectFiles
|
|
4035
4049
|
};
|
|
4036
|
-
//# sourceMappingURL=chunk-
|
|
4050
|
+
//# sourceMappingURL=chunk-PNLDTRC5.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-MSOAX3GC.js";
|
|
4
4
|
import {
|
|
5
5
|
enqueueReindex
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-CVNCSMVU.js";
|
|
7
7
|
import {
|
|
8
8
|
safeResolveReal,
|
|
9
9
|
sha256hex,
|
|
@@ -179,4 +179,4 @@ async function finishWrite(input, ctx, prepared, signal) {
|
|
|
179
179
|
export {
|
|
180
180
|
writeTool
|
|
181
181
|
};
|
|
182
|
-
//# sourceMappingURL=chunk-
|
|
182
|
+
//# sourceMappingURL=chunk-QU2VRCMM.js.map
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from "./chunk-ZKC5UNGD.js";
|
|
9
9
|
import {
|
|
10
10
|
resolveWin32Command
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-5U5ULQX2.js";
|
|
12
12
|
|
|
13
13
|
// src/codebase-index/py-parser.ts
|
|
14
14
|
import { spawn } from "node:child_process";
|
|
@@ -384,4 +384,4 @@ export {
|
|
|
384
384
|
parseSymbols,
|
|
385
385
|
resolvePythonBinary
|
|
386
386
|
};
|
|
387
|
-
//# sourceMappingURL=chunk-
|
|
387
|
+
//# sourceMappingURL=chunk-REWOZIA4.js.map
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
import {
|
|
16
16
|
buildWin32CmdShimInvocation,
|
|
17
17
|
resolveWin32Command
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-5U5ULQX2.js";
|
|
19
19
|
import {
|
|
20
20
|
COMMAND_OUTPUT_MAX_BYTES,
|
|
21
21
|
normalizeCommandOutput,
|
|
@@ -1835,4 +1835,4 @@ export {
|
|
|
1835
1835
|
getExecAllowlist,
|
|
1836
1836
|
execTool
|
|
1837
1837
|
};
|
|
1838
|
-
//# sourceMappingURL=chunk-
|
|
1838
|
+
//# sourceMappingURL=chunk-T7YVY2BV.js.map
|
|
@@ -15,13 +15,13 @@ import {
|
|
|
15
15
|
codebaseStatsTool,
|
|
16
16
|
codebaseTargetedTestTool,
|
|
17
17
|
deadCodeScanTool
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-PNLDTRC5.js";
|
|
19
19
|
import {
|
|
20
20
|
planTool
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-NOCU555K.js";
|
|
22
22
|
import {
|
|
23
23
|
taskTool
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-VKAJMHVG.js";
|
|
25
25
|
import {
|
|
26
26
|
toolSearchTool
|
|
27
27
|
} from "./chunk-24T5XIJU.js";
|
|
@@ -39,16 +39,16 @@ import {
|
|
|
39
39
|
} from "./chunk-IXIS7RSG.js";
|
|
40
40
|
import {
|
|
41
41
|
testTool
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-Z34CUZCZ.js";
|
|
43
43
|
import {
|
|
44
44
|
installTool
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-MIV2RU5B.js";
|
|
46
46
|
import {
|
|
47
47
|
auditTool
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-KIQTABBJ.js";
|
|
49
49
|
import {
|
|
50
50
|
outdatedTool
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-OUEH4I4X.js";
|
|
52
52
|
import {
|
|
53
53
|
logsTool
|
|
54
54
|
} from "./chunk-VU3QBYL4.js";
|
|
@@ -63,7 +63,7 @@ import {
|
|
|
63
63
|
} from "./chunk-AQ5YBURX.js";
|
|
64
64
|
import {
|
|
65
65
|
patchTool
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-E2ZD4ERD.js";
|
|
67
67
|
import {
|
|
68
68
|
jsonTool
|
|
69
69
|
} from "./chunk-VZGPASGD.js";
|
|
@@ -75,21 +75,21 @@ import {
|
|
|
75
75
|
} from "./chunk-JDOO4P6Z.js";
|
|
76
76
|
import {
|
|
77
77
|
lintTool
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-FC3X7GGJ.js";
|
|
79
79
|
import {
|
|
80
80
|
formatTool
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-YDTRKEYY.js";
|
|
82
82
|
import {
|
|
83
83
|
typecheckTool
|
|
84
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-IRUEHGCR.js";
|
|
85
85
|
import {
|
|
86
86
|
languageInfoTool,
|
|
87
87
|
languagePackageTool,
|
|
88
88
|
languageTool
|
|
89
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-3LS3FYEF.js";
|
|
90
90
|
import {
|
|
91
91
|
replaceTool
|
|
92
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-77MBK46T.js";
|
|
93
93
|
import {
|
|
94
94
|
globTool
|
|
95
95
|
} from "./chunk-ASEXQRA7.js";
|
|
@@ -101,11 +101,11 @@ import {
|
|
|
101
101
|
checkAndBlockKillCommand,
|
|
102
102
|
diagnoseBashism,
|
|
103
103
|
shellArgs
|
|
104
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-KYVOTHG7.js";
|
|
105
105
|
import {
|
|
106
106
|
detectDanger,
|
|
107
107
|
execTool
|
|
108
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-T7YVY2BV.js";
|
|
109
109
|
import {
|
|
110
110
|
buildChildEnv
|
|
111
111
|
} from "./chunk-BTSFTGIL.js";
|
|
@@ -119,13 +119,13 @@ import {
|
|
|
119
119
|
} from "./chunk-HDYUBRMF.js";
|
|
120
120
|
import {
|
|
121
121
|
fetchTool
|
|
122
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-DX5KZEMK.js";
|
|
123
123
|
import {
|
|
124
124
|
searchTool
|
|
125
125
|
} from "./chunk-62OAECEQ.js";
|
|
126
126
|
import {
|
|
127
127
|
todoTool
|
|
128
|
-
} from "./chunk-
|
|
128
|
+
} from "./chunk-4YKVHCQC.js";
|
|
129
129
|
import {
|
|
130
130
|
kanbanTool
|
|
131
131
|
} from "./chunk-SMARDKAC.js";
|
|
@@ -134,16 +134,16 @@ import {
|
|
|
134
134
|
} from "./chunk-SOR7OCYP.js";
|
|
135
135
|
import {
|
|
136
136
|
readTool
|
|
137
|
-
} from "./chunk-
|
|
137
|
+
} from "./chunk-YECHJJJF.js";
|
|
138
138
|
import {
|
|
139
139
|
writeTool
|
|
140
|
-
} from "./chunk-
|
|
140
|
+
} from "./chunk-QU2VRCMM.js";
|
|
141
141
|
import {
|
|
142
142
|
editTool
|
|
143
|
-
} from "./chunk-
|
|
143
|
+
} from "./chunk-AMURQAJX.js";
|
|
144
144
|
import {
|
|
145
145
|
resolvePowerShell
|
|
146
|
-
} from "./chunk-
|
|
146
|
+
} from "./chunk-5U5ULQX2.js";
|
|
147
147
|
import {
|
|
148
148
|
normalizeCommandOutput,
|
|
149
149
|
safeResolveProjectPath,
|
|
@@ -1438,4 +1438,4 @@ export {
|
|
|
1438
1438
|
TIER3_TOOLS,
|
|
1439
1439
|
builtinTools
|
|
1440
1440
|
};
|
|
1441
|
-
//# sourceMappingURL=chunk-
|
|
1441
|
+
//# sourceMappingURL=chunk-TYRVYBHW.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
todoTool
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4YKVHCQC.js";
|
|
4
4
|
import {
|
|
5
5
|
mirrorSessionTasksToKanban
|
|
6
6
|
} from "./chunk-X6KXNHUO.js";
|
|
@@ -582,4 +582,4 @@ ${formatTaskList(file.tasks)}` : file.tasks.length > 0 ? formatTaskList(file.tas
|
|
|
582
582
|
export {
|
|
583
583
|
taskTool
|
|
584
584
|
};
|
|
585
|
-
//# sourceMappingURL=chunk-
|
|
585
|
+
//# sourceMappingURL=chunk-VKAJMHVG.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
builtinTools
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TYRVYBHW.js";
|
|
4
4
|
|
|
5
5
|
// src/pack.ts
|
|
6
6
|
var builtinToolsPack = {
|
|
@@ -12,4 +12,4 @@ var builtinToolsPack = {
|
|
|
12
12
|
export {
|
|
13
13
|
builtinToolsPack
|
|
14
14
|
};
|
|
15
|
-
//# sourceMappingURL=chunk-
|
|
15
|
+
//# sourceMappingURL=chunk-VO6M2FVG.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
tryLegacyCodeOperation
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GU7QJ37F.js";
|
|
4
4
|
import {
|
|
5
5
|
spawnStream
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-EMA2XENR.js";
|
|
7
7
|
import {
|
|
8
8
|
ensureInsideRoot,
|
|
9
9
|
normalizeCommandOutput,
|
|
@@ -149,6 +149,14 @@ var formatTool = {
|
|
|
149
149
|
});
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
|
+
for (const f of fileList) {
|
|
153
|
+
if (f.startsWith("-")) {
|
|
154
|
+
throw new ToolValidationError({
|
|
155
|
+
message: `format: file path "${f}" may not begin with '-' (flag injection)`,
|
|
156
|
+
field: "files"
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
}
|
|
152
160
|
let args;
|
|
153
161
|
if (detected === "prettier") {
|
|
154
162
|
args = [input.check ? "--check" : "--write"];
|
|
@@ -243,4 +251,4 @@ export {
|
|
|
243
251
|
parseFormatterCounts,
|
|
244
252
|
detectFixer
|
|
245
253
|
};
|
|
246
|
-
//# sourceMappingURL=chunk-
|
|
254
|
+
//# sourceMappingURL=chunk-YDTRKEYY.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getIndexState,
|
|
3
3
|
searchCodebaseIndex
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-CVNCSMVU.js";
|
|
5
5
|
import {
|
|
6
6
|
codebaseIndexDirOverride
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3JVSOBHU.js";
|
|
8
8
|
import {
|
|
9
9
|
isBinaryBuffer,
|
|
10
10
|
safeResolveReal,
|
|
@@ -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-YECHJJJF.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
tryLegacyCodeOperation
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GU7QJ37F.js";
|
|
4
4
|
import {
|
|
5
5
|
spawnStream
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-EMA2XENR.js";
|
|
7
7
|
import {
|
|
8
8
|
normalizeCommandOutput,
|
|
9
9
|
safeResolveReal
|
|
@@ -231,4 +231,4 @@ ${result.stderr}` : result.stdout || result.stderr || result.error || "";
|
|
|
231
231
|
export {
|
|
232
232
|
testTool
|
|
233
233
|
};
|
|
234
|
-
//# sourceMappingURL=chunk-
|
|
234
|
+
//# sourceMappingURL=chunk-Z34CUZCZ.js.map
|
|
@@ -51,9 +51,9 @@ import {
|
|
|
51
51
|
setContextQueryEmbedder,
|
|
52
52
|
writeAtlas,
|
|
53
53
|
writeProjectAtlas
|
|
54
|
-
} from "../chunk-
|
|
54
|
+
} from "../chunk-PNLDTRC5.js";
|
|
55
55
|
import "../chunk-XRNN44QY.js";
|
|
56
|
-
import "../chunk-
|
|
56
|
+
import "../chunk-EMA2XENR.js";
|
|
57
57
|
import "../chunk-SCMRM6NL.js";
|
|
58
58
|
import "../chunk-HDYUBRMF.js";
|
|
59
59
|
import "../chunk-7JJFC6CT.js";
|
|
@@ -78,11 +78,11 @@ import {
|
|
|
78
78
|
shutdownCodebaseIndexHost,
|
|
79
79
|
shutdownCodebaseIndexServer,
|
|
80
80
|
symbolGraphService
|
|
81
|
-
} from "../chunk-
|
|
81
|
+
} from "../chunk-CVNCSMVU.js";
|
|
82
82
|
import {
|
|
83
83
|
projectIndexServerEndpoint,
|
|
84
84
|
projectIndexServerMetadataPath
|
|
85
|
-
} from "../chunk-
|
|
85
|
+
} from "../chunk-6ZLRRC74.js";
|
|
86
86
|
import {
|
|
87
87
|
CONCEPT_RELATIONS,
|
|
88
88
|
CONTRADICTED_VISIBILITY_WEIGHT,
|
|
@@ -122,9 +122,9 @@ import {
|
|
|
122
122
|
shouldRefreshRanks,
|
|
123
123
|
toSymbolRankRows,
|
|
124
124
|
tokenise
|
|
125
|
-
} from "../chunk-
|
|
126
|
-
import "../chunk-
|
|
127
|
-
import "../chunk-
|
|
125
|
+
} from "../chunk-3JVSOBHU.js";
|
|
126
|
+
import "../chunk-6LCKF5KH.js";
|
|
127
|
+
import "../chunk-REWOZIA4.js";
|
|
128
128
|
import "../chunk-6IEBD27U.js";
|
|
129
129
|
import {
|
|
130
130
|
getCodebaseIndexPerfSnapshot,
|
|
@@ -139,7 +139,7 @@ import {
|
|
|
139
139
|
compileGitignore,
|
|
140
140
|
loadGitignoreMatcher
|
|
141
141
|
} from "../chunk-2CTZW6JQ.js";
|
|
142
|
-
import "../chunk-
|
|
142
|
+
import "../chunk-5U5ULQX2.js";
|
|
143
143
|
import "../chunk-ZUFHAHTE.js";
|
|
144
144
|
export {
|
|
145
145
|
ATLAS_DIR,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseFilesContent
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-6LCKF5KH.js";
|
|
4
|
+
import "../chunk-REWOZIA4.js";
|
|
5
5
|
import "../chunk-6IEBD27U.js";
|
|
6
6
|
import "../chunk-ZKC5UNGD.js";
|
|
7
7
|
import "../chunk-YOHO4DVT.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-5U5ULQX2.js";
|
|
9
9
|
|
|
10
10
|
// src/codebase-index/parser-worker-script.ts
|
|
11
11
|
import { parentPort, threadId } from "node:worker_threads";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
projectIndexServerBuildId,
|
|
11
11
|
projectIndexServerEndpoint,
|
|
12
12
|
projectIndexServerMetadataPath
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-6ZLRRC74.js";
|
|
14
14
|
import {
|
|
15
15
|
contextService,
|
|
16
16
|
fileGraphService,
|
|
@@ -24,9 +24,9 @@ import {
|
|
|
24
24
|
statsService,
|
|
25
25
|
symbolGraphService,
|
|
26
26
|
vectorSearchService
|
|
27
|
-
} from "../chunk-
|
|
28
|
-
import "../chunk-
|
|
29
|
-
import "../chunk-
|
|
27
|
+
} from "../chunk-3JVSOBHU.js";
|
|
28
|
+
import "../chunk-6LCKF5KH.js";
|
|
29
|
+
import "../chunk-REWOZIA4.js";
|
|
30
30
|
import "../chunk-6IEBD27U.js";
|
|
31
31
|
import {
|
|
32
32
|
recordWriteQueueWait
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
isIndexablePath
|
|
36
36
|
} from "../chunk-YOHO4DVT.js";
|
|
37
37
|
import "../chunk-2CTZW6JQ.js";
|
|
38
|
-
import "../chunk-
|
|
38
|
+
import "../chunk-5U5ULQX2.js";
|
|
39
39
|
|
|
40
40
|
// src/codebase-index/project-server.ts
|
|
41
41
|
import { randomBytes } from "node:crypto";
|
|
@@ -9,14 +9,14 @@ import {
|
|
|
9
9
|
statsService,
|
|
10
10
|
symbolGraphService,
|
|
11
11
|
vectorSearchService
|
|
12
|
-
} from "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
12
|
+
} from "../chunk-3JVSOBHU.js";
|
|
13
|
+
import "../chunk-6LCKF5KH.js";
|
|
14
|
+
import "../chunk-REWOZIA4.js";
|
|
15
15
|
import "../chunk-6IEBD27U.js";
|
|
16
16
|
import "../chunk-ZKC5UNGD.js";
|
|
17
17
|
import "../chunk-YOHO4DVT.js";
|
|
18
18
|
import "../chunk-2CTZW6JQ.js";
|
|
19
|
-
import "../chunk-
|
|
19
|
+
import "../chunk-5U5ULQX2.js";
|
|
20
20
|
|
|
21
21
|
// src/codebase-index/worker.ts
|
|
22
22
|
import { parentPort } from "node:worker_threads";
|
package/dist/edit.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
editTool
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-AMURQAJX.js";
|
|
4
4
|
import "./chunk-MSOAX3GC.js";
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-CVNCSMVU.js";
|
|
6
|
+
import "./chunk-6ZLRRC74.js";
|
|
7
|
+
import "./chunk-3JVSOBHU.js";
|
|
8
|
+
import "./chunk-6LCKF5KH.js";
|
|
9
|
+
import "./chunk-REWOZIA4.js";
|
|
10
10
|
import "./chunk-6IEBD27U.js";
|
|
11
11
|
import "./chunk-ZKC5UNGD.js";
|
|
12
12
|
import "./chunk-YOHO4DVT.js";
|
|
13
13
|
import "./chunk-2CTZW6JQ.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-5U5ULQX2.js";
|
|
15
15
|
import "./chunk-ZUFHAHTE.js";
|
|
16
16
|
export {
|
|
17
17
|
editTool
|
package/dist/exec.js
CHANGED
|
@@ -7,13 +7,13 @@ import {
|
|
|
7
7
|
isExecCommandAllowed,
|
|
8
8
|
resetDangerBypass,
|
|
9
9
|
resetExecPolicy
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-T7YVY2BV.js";
|
|
11
11
|
import "./chunk-BTSFTGIL.js";
|
|
12
12
|
import "./chunk-PVCB7RUZ.js";
|
|
13
13
|
import "./chunk-SCMRM6NL.js";
|
|
14
14
|
import "./chunk-HDYUBRMF.js";
|
|
15
15
|
import "./chunk-7JJFC6CT.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-5U5ULQX2.js";
|
|
17
17
|
import "./chunk-ZUFHAHTE.js";
|
|
18
18
|
export {
|
|
19
19
|
configureDangerBypass,
|
package/dist/fetch.js
CHANGED
package/dist/format.js
CHANGED
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
detectFixer,
|
|
3
3
|
formatTool,
|
|
4
4
|
parseFormatterCounts
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-YDTRKEYY.js";
|
|
6
|
+
import "./chunk-GU7QJ37F.js";
|
|
7
|
+
import "./chunk-3LS3FYEF.js";
|
|
8
|
+
import "./chunk-EMA2XENR.js";
|
|
9
9
|
import "./chunk-SCMRM6NL.js";
|
|
10
10
|
import "./chunk-HDYUBRMF.js";
|
|
11
11
|
import "./chunk-7JJFC6CT.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-5U5ULQX2.js";
|
|
13
13
|
import "./chunk-ZUFHAHTE.js";
|
|
14
14
|
export {
|
|
15
15
|
detectFixer,
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from "./chunk-YOHO4DVT.js";
|
|
9
9
|
import {
|
|
10
10
|
resolveWin32Command
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-5U5ULQX2.js";
|
|
12
12
|
|
|
13
13
|
// src/codebase-index/go-parser.ts
|
|
14
14
|
import { spawn } from "node:child_process";
|
|
@@ -468,4 +468,4 @@ export {
|
|
|
468
468
|
detectLang,
|
|
469
469
|
parseSymbols
|
|
470
470
|
};
|
|
471
|
-
//# sourceMappingURL=go-parser-
|
|
471
|
+
//# sourceMappingURL=go-parser-EMKTAAD3.js.map
|