token-goat 2.9.17 → 2.9.18
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/{token-goat-chunk-7EGKXBWT.mjs → token-goat-chunk-2KTZ6J7T.mjs} +7 -7
- package/dist/{token-goat-chunk-CKIJWTRQ.mjs → token-goat-chunk-34OUJ2IE.mjs} +11 -11
- package/dist/{token-goat-chunk-2XA5ZW4T.mjs → token-goat-chunk-52IMXJ2L.mjs} +3 -3
- package/dist/{token-goat-chunk-GPCCYQSS.mjs → token-goat-chunk-5MMJAJF3.mjs} +6 -6
- package/dist/{token-goat-chunk-YFGEUIEO.mjs → token-goat-chunk-6LGVCCMY.mjs} +12 -12
- package/dist/{token-goat-chunk-66224KCZ.mjs → token-goat-chunk-7VLWNQDQ.mjs} +1 -1
- package/dist/{token-goat-chunk-W2GUUQAQ.mjs → token-goat-chunk-ARNRFR6M.mjs} +1 -1
- package/dist/{token-goat-chunk-PKNOHVWP.mjs → token-goat-chunk-BFEWOMA3.mjs} +11 -9
- package/dist/{token-goat-chunk-G75WIVFM.mjs → token-goat-chunk-BWCRC23L.mjs} +18 -18
- package/dist/{token-goat-chunk-2VASS5VR.mjs → token-goat-chunk-CA6V36KW.mjs} +1 -1
- package/dist/{token-goat-chunk-C26ZBGBC.mjs → token-goat-chunk-CTOYJ232.mjs} +18 -41
- package/dist/{token-goat-chunk-KZPO4DWC.mjs → token-goat-chunk-EPXNOKIV.mjs} +1 -1
- package/dist/{token-goat-chunk-SWRKVA3J.mjs → token-goat-chunk-GRI6HWX3.mjs} +1 -1
- package/dist/{token-goat-chunk-CICJFVIH.mjs → token-goat-chunk-H3FONFBO.mjs} +2 -2
- package/dist/{token-goat-chunk-EKGVCAES.mjs → token-goat-chunk-HIZXQVNU.mjs} +3 -3
- package/dist/{token-goat-chunk-26YUO7MP.mjs → token-goat-chunk-HPOFR6QX.mjs} +3 -3
- package/dist/{token-goat-chunk-BK3RPPTK.mjs → token-goat-chunk-I67CPTDD.mjs} +2 -2
- package/dist/{token-goat-chunk-RB24DBBS.mjs → token-goat-chunk-K4DG6EEF.mjs} +2 -2
- package/dist/{token-goat-chunk-MWSVUKVV.mjs → token-goat-chunk-L7VCX33I.mjs} +1 -1
- package/dist/{token-goat-chunk-THBLW56G.mjs → token-goat-chunk-LA3O4JGD.mjs} +2 -2
- package/dist/{token-goat-chunk-7VQMOBPQ.mjs → token-goat-chunk-LTYWLKAG.mjs} +50 -31
- package/dist/{token-goat-chunk-RFFUCQK7.mjs → token-goat-chunk-OWSJJY5R.mjs} +4 -4
- package/dist/{token-goat-chunk-UBZCON6N.mjs → token-goat-chunk-QIDLJGXZ.mjs} +1 -1
- package/dist/{token-goat-chunk-IDHWKNKZ.mjs → token-goat-chunk-QML7ITHJ.mjs} +10 -10
- package/dist/{token-goat-chunk-GLOM5W5C.mjs → token-goat-chunk-RHHFEXKF.mjs} +1 -1
- package/dist/{token-goat-chunk-CPHVXKNU.mjs → token-goat-chunk-UENEL6KX.mjs} +1 -1
- package/dist/{token-goat-chunk-HRUGS6CO.mjs → token-goat-chunk-V3ZWBEHM.mjs} +8 -8
- package/dist/{token-goat-chunk-73GXYYZR.mjs → token-goat-chunk-W3E65QOW.mjs} +8 -8
- package/dist/{token-goat-chunk-2M33Q3O4.mjs → token-goat-chunk-WFX2V3OF.mjs} +39 -32
- package/dist/{token-goat-chunk-5WB7GDH4.mjs → token-goat-chunk-YQZE5NS6.mjs} +5 -5
- package/dist/token-goat-hook.mjs +11 -11
- package/dist/token-goat.core.mjs +18 -18
- package/docs/cli.md +2 -2
- package/package.json +1 -1
|
@@ -91,7 +91,7 @@ import {
|
|
|
91
91
|
symbolNamesInFile,
|
|
92
92
|
upsertNote,
|
|
93
93
|
warnIfFilesStale
|
|
94
|
-
} from "./token-goat-chunk-
|
|
94
|
+
} from "./token-goat-chunk-QML7ITHJ.mjs";
|
|
95
95
|
import {
|
|
96
96
|
DEFAULT_RECONCILE_BUDGET_MS,
|
|
97
97
|
HOOK_EVENTS,
|
|
@@ -108,7 +108,7 @@ import {
|
|
|
108
108
|
readStdinJson,
|
|
109
109
|
runReconcile,
|
|
110
110
|
storeWebOutput
|
|
111
|
-
} from "./token-goat-chunk-
|
|
111
|
+
} from "./token-goat-chunk-V3ZWBEHM.mjs";
|
|
112
112
|
import {
|
|
113
113
|
AGENT_SALT_MARKER,
|
|
114
114
|
CONTEXT_AUTOCOMPACT_TOKENS,
|
|
@@ -244,7 +244,7 @@ import {
|
|
|
244
244
|
visualStudioUserMcpPath,
|
|
245
245
|
walkProject,
|
|
246
246
|
writeCompact
|
|
247
|
-
} from "./token-goat-chunk-
|
|
247
|
+
} from "./token-goat-chunk-BFEWOMA3.mjs";
|
|
248
248
|
import {
|
|
249
249
|
BASH_OUTPUT_SUBDIR,
|
|
250
250
|
CompressedOutput,
|
|
@@ -262,7 +262,7 @@ import {
|
|
|
262
262
|
listRecentRecall,
|
|
263
263
|
normalizeCommandForCacheKey,
|
|
264
264
|
searchRecall
|
|
265
|
-
} from "./token-goat-chunk-
|
|
265
|
+
} from "./token-goat-chunk-CTOYJ232.mjs";
|
|
266
266
|
import {
|
|
267
267
|
C,
|
|
268
268
|
DEFAULT_MAX_AGE_MS,
|
|
@@ -284,19 +284,19 @@ import {
|
|
|
284
284
|
savedTokensFromBytes,
|
|
285
285
|
stripAnsi,
|
|
286
286
|
summarize
|
|
287
|
-
} from "./token-goat-chunk-
|
|
287
|
+
} from "./token-goat-chunk-HPOFR6QX.mjs";
|
|
288
288
|
import {
|
|
289
289
|
docxOutline,
|
|
290
290
|
docxTables,
|
|
291
291
|
docxText,
|
|
292
292
|
formatDocxTables
|
|
293
|
-
} from "./token-goat-chunk-
|
|
293
|
+
} from "./token-goat-chunk-UENEL6KX.mjs";
|
|
294
294
|
import {
|
|
295
295
|
pptxNotesText,
|
|
296
296
|
pptxOutline,
|
|
297
297
|
pptxSlideText,
|
|
298
298
|
pptxTextGrep
|
|
299
|
-
} from "./token-goat-chunk-
|
|
299
|
+
} from "./token-goat-chunk-ARNRFR6M.mjs";
|
|
300
300
|
import {
|
|
301
301
|
formatXlsxColumns,
|
|
302
302
|
formatXlsxRange,
|
|
@@ -305,11 +305,11 @@ import {
|
|
|
305
305
|
querySheet,
|
|
306
306
|
rangeSheet,
|
|
307
307
|
xlsxColumns
|
|
308
|
-
} from "./token-goat-chunk-
|
|
308
|
+
} from "./token-goat-chunk-LA3O4JGD.mjs";
|
|
309
309
|
import {
|
|
310
310
|
formatCsvTable,
|
|
311
311
|
parseWhereSpecs
|
|
312
|
-
} from "./token-goat-chunk-
|
|
312
|
+
} from "./token-goat-chunk-EPXNOKIV.mjs";
|
|
313
313
|
import {
|
|
314
314
|
PARSER_FINGERPRINT,
|
|
315
315
|
embeddingBackendLoadError,
|
|
@@ -332,11 +332,11 @@ import {
|
|
|
332
332
|
readSection,
|
|
333
333
|
treeSitterCoreAvailable,
|
|
334
334
|
treeSitterCoreLoadError
|
|
335
|
-
} from "./token-goat-chunk-
|
|
335
|
+
} from "./token-goat-chunk-W3E65QOW.mjs";
|
|
336
336
|
import {
|
|
337
337
|
getFileEntry,
|
|
338
338
|
querySymbols
|
|
339
|
-
} from "./token-goat-chunk-
|
|
339
|
+
} from "./token-goat-chunk-I67CPTDD.mjs";
|
|
340
340
|
import {
|
|
341
341
|
TREE_SITTER_LANGUAGES,
|
|
342
342
|
detectLanguage,
|
|
@@ -347,7 +347,7 @@ import {
|
|
|
347
347
|
matchGroovySlashy,
|
|
348
348
|
nonTreeSitterLanguageCount,
|
|
349
349
|
redactIfDotenv
|
|
350
|
-
} from "./token-goat-chunk-
|
|
350
|
+
} from "./token-goat-chunk-L7VCX33I.mjs";
|
|
351
351
|
import {
|
|
352
352
|
CONFIG_KEY_ENV_OVERRIDES,
|
|
353
353
|
PROJECT_LOCKED_KEYS,
|
|
@@ -376,7 +376,7 @@ import {
|
|
|
376
376
|
stringify,
|
|
377
377
|
validateEnumField,
|
|
378
378
|
validateNumericField
|
|
379
|
-
} from "./token-goat-chunk-
|
|
379
|
+
} from "./token-goat-chunk-CA6V36KW.mjs";
|
|
380
380
|
import {
|
|
381
381
|
ENV_KEYS,
|
|
382
382
|
LOCK_WAIT_MS_HARDENED,
|
|
@@ -436,7 +436,7 @@ import {
|
|
|
436
436
|
withRetryOnLock,
|
|
437
437
|
writeIfDifferent,
|
|
438
438
|
writeJsonSettings
|
|
439
|
-
} from "./token-goat-chunk-
|
|
439
|
+
} from "./token-goat-chunk-QIDLJGXZ.mjs";
|
|
440
440
|
import {
|
|
441
441
|
UNTRUSTED_FILE_TAG,
|
|
442
442
|
UNTRUSTED_TOOL_TAG,
|
|
@@ -7286,6 +7286,20 @@ function checkSecurityPosture(cfg, dataDirPath) {
|
|
|
7286
7286
|
|
|
7287
7287
|
// src/cli_doctor.ts
|
|
7288
7288
|
var DB_SIZE_WARN_BYTES = 1024 * 1024 * 1024;
|
|
7289
|
+
function freelistBytes(header) {
|
|
7290
|
+
if (header.length < 40) return 0;
|
|
7291
|
+
const rawPageSize = header.readUInt16BE(16);
|
|
7292
|
+
return (rawPageSize === 1 ? 65536 : rawPageSize) * header.readUInt32BE(36);
|
|
7293
|
+
}
|
|
7294
|
+
function oversizeDbMessage(dbPath, sizeBytes, freeBytes, tempRows) {
|
|
7295
|
+
const mb = (bytes) => Math.round(bytes / (1024 * 1024));
|
|
7296
|
+
const advice = [];
|
|
7297
|
+
if (freeBytes >= sizeBytes / 10) advice.push(`'token-goat reclaim-index' returns the ${mb(freeBytes)} MB of it that is free pages`);
|
|
7298
|
+
if (tempRows > 0) advice.push(`'token-goat project prune' removes ${countNoun(tempRows, "scratch file")} indexed under the OS temp dir`);
|
|
7299
|
+
const head = `global.db is ${mb(sizeBytes)} MB at ${displaySafeText(dbPath)} (larger than recommended). `;
|
|
7300
|
+
if (advice.length > 0) return `${head}${advice.join("; ")}.`;
|
|
7301
|
+
return `${head}Only ${mb(freeBytes)} MB of it is free pages and none of it is temp-dir scratch, so it is live index data that neither 'reclaim-index' nor 'project prune' will shrink.`;
|
|
7302
|
+
}
|
|
7289
7303
|
function checkDbExists(dataDir2) {
|
|
7290
7304
|
const dbPath = path17.join(dataDir2, "global.db");
|
|
7291
7305
|
if (!fs18.existsSync(dbPath)) {
|
|
@@ -7298,12 +7312,14 @@ function checkDbExists(dataDir2) {
|
|
|
7298
7312
|
const sizeBytes = fs18.statSync(dbPath).size;
|
|
7299
7313
|
const SQLITE_HEADER = "SQLite format 3\0";
|
|
7300
7314
|
let header = "";
|
|
7315
|
+
let headerBytes = Buffer.alloc(0);
|
|
7301
7316
|
try {
|
|
7302
7317
|
const fd = fs18.openSync(dbPath, "r");
|
|
7303
7318
|
try {
|
|
7304
|
-
const buf = Buffer.alloc(
|
|
7319
|
+
const buf = Buffer.alloc(100);
|
|
7305
7320
|
const bytesRead = fs18.readSync(fd, buf, 0, buf.length, 0);
|
|
7306
|
-
|
|
7321
|
+
headerBytes = buf.subarray(0, bytesRead);
|
|
7322
|
+
header = buf.toString("latin1", 0, Math.min(bytesRead, SQLITE_HEADER.length));
|
|
7307
7323
|
} finally {
|
|
7308
7324
|
fs18.closeSync(fd);
|
|
7309
7325
|
}
|
|
@@ -7317,12 +7333,12 @@ function checkDbExists(dataDir2) {
|
|
|
7317
7333
|
};
|
|
7318
7334
|
}
|
|
7319
7335
|
if (sizeBytes > DB_SIZE_WARN_BYTES) {
|
|
7320
|
-
|
|
7321
|
-
|
|
7322
|
-
|
|
7323
|
-
|
|
7324
|
-
|
|
7325
|
-
};
|
|
7336
|
+
let tempRows = 0;
|
|
7337
|
+
try {
|
|
7338
|
+
tempRows = findSystemTempFiles(dbPath).length;
|
|
7339
|
+
} catch {
|
|
7340
|
+
}
|
|
7341
|
+
return { name: "Database", status: "warn", message: oversizeDbMessage(dbPath, sizeBytes, freelistBytes(headerBytes), tempRows) };
|
|
7326
7342
|
}
|
|
7327
7343
|
return {
|
|
7328
7344
|
name: "Database",
|
|
@@ -7779,12 +7795,15 @@ function checkUnmappedTools(dbPath) {
|
|
|
7779
7795
|
message: `${shown2.join("; ")}${more2} -- these differ only by case or separators, so that bridge's tool-rename step is very likely not being applied and every handler behind those names is inert`
|
|
7780
7796
|
};
|
|
7781
7797
|
}
|
|
7782
|
-
const
|
|
7783
|
-
const
|
|
7798
|
+
const byName = /* @__PURE__ */ new Map();
|
|
7799
|
+
for (const r of rows) byName.set(r.tool_name, Math.max(byName.get(r.tool_name) ?? 0, r.hits));
|
|
7800
|
+
const names = [...byName].sort((a, b) => b[1] - a[1] || a[0].localeCompare(b[0]));
|
|
7801
|
+
const shown = names.slice(0, UNMAPPED_TOOL_SAMPLE).map(([tool, hits]) => `${tool} (${hits}x)`);
|
|
7802
|
+
const more = names.length > UNMAPPED_TOOL_SAMPLE ? `, +${names.length - UNMAPPED_TOOL_SAMPLE} more` : "";
|
|
7784
7803
|
return {
|
|
7785
7804
|
name,
|
|
7786
7805
|
status: "ok",
|
|
7787
|
-
message: `${
|
|
7806
|
+
message: `${names.length} tool name(s) seen with no handler, none resembling one token-goat handles: ${shown.join(", ")}${more}`
|
|
7788
7807
|
};
|
|
7789
7808
|
} catch (e) {
|
|
7790
7809
|
return { name, status: "warn", message: `could not read the tool-name histogram: ${extractErrorMessage(e)}` };
|
|
@@ -8039,7 +8058,7 @@ async function runDoctorAndExit(opts) {
|
|
|
8039
8058
|
}
|
|
8040
8059
|
}
|
|
8041
8060
|
try {
|
|
8042
|
-
const { checkUpdateStatus } = await import("./token-goat-chunk-
|
|
8061
|
+
const { checkUpdateStatus } = await import("./token-goat-chunk-K4DG6EEF.mjs");
|
|
8043
8062
|
const update = await checkUpdateStatus(1500);
|
|
8044
8063
|
if (update.updateAvailable && update.latest) {
|
|
8045
8064
|
console.log(`
|
|
@@ -20077,7 +20096,7 @@ async function cmdMcpServe() {
|
|
|
20077
20096
|
let StdioServerTransport;
|
|
20078
20097
|
try {
|
|
20079
20098
|
;
|
|
20080
|
-
({ createMcpServer } = await import("./token-goat-chunk-
|
|
20099
|
+
({ createMcpServer } = await import("./token-goat-chunk-6LGVCCMY.mjs"));
|
|
20081
20100
|
({ StdioServerTransport } = await import("./token-goat-chunk-EVC4TOLE.mjs"));
|
|
20082
20101
|
} catch (err2) {
|
|
20083
20102
|
process.stderr.write(
|
|
@@ -20102,7 +20121,7 @@ async function cmdHook(event, opts) {
|
|
|
20102
20121
|
if (typeof opts.harness === "string" && opts.harness.length > 0) {
|
|
20103
20122
|
process.env[ENV_KEYS.HARNESS_OVERRIDE] = opts.harness;
|
|
20104
20123
|
}
|
|
20105
|
-
const { relay } = await import("./token-goat-chunk-
|
|
20124
|
+
const { relay } = await import("./token-goat-chunk-34OUJ2IE.mjs");
|
|
20106
20125
|
await relay(event);
|
|
20107
20126
|
}
|
|
20108
20127
|
function projectHooksCommitNote(pathFiles, hooksConfigPath) {
|
|
@@ -20139,7 +20158,7 @@ async function cmdInstall(opts) {
|
|
|
20139
20158
|
if (opts.project === true && opts.user === true) {
|
|
20140
20159
|
throw new Error("install takes either -p/--project or --user, not both.");
|
|
20141
20160
|
}
|
|
20142
|
-
await import("./token-goat-chunk-
|
|
20161
|
+
await import("./token-goat-chunk-34OUJ2IE.mjs");
|
|
20143
20162
|
const scope = opts.project === true ? "project" : "user";
|
|
20144
20163
|
if (wantsClaudeCodeBase(opts)) {
|
|
20145
20164
|
const result = installHooks(scope);
|
|
@@ -20729,7 +20748,7 @@ async function cmdCompress(commandArgs, opts = {}) {
|
|
|
20729
20748
|
process.exitCode = 1;
|
|
20730
20749
|
return;
|
|
20731
20750
|
}
|
|
20732
|
-
const bashRunner = await import("./token-goat-chunk-
|
|
20751
|
+
const bashRunner = await import("./token-goat-chunk-2KTZ6J7T.mjs");
|
|
20733
20752
|
if (opts.compress === false) {
|
|
20734
20753
|
process.exitCode = bashRunner.runRaw(command, parseTimeout(opts.timeout, bashRunner.DEFAULT_TIMEOUT_SECONDS));
|
|
20735
20754
|
return;
|
|
@@ -20979,7 +20998,7 @@ function buildProgram() {
|
|
|
20979
20998
|
program2.command("compress [command...]").alias("bash").alias("run").description("run a shell command (under a POSIX shell / bash) and emit a compressed view of its output").allowUnknownOption(true).option("-c, --cmd <command>", "the shell command to run, as one string (use / for paths across platforms)").option("--cmd-b64 <payload>", "the shell command as a base64-encoded string (preserves quotes, backslashes, and symbols across platforms)").option("-f, --filter <name>", "filter name (auto-detected from the command when omitted)").option("--timeout <seconds>", "wall-clock timeout in seconds (0 = built-in default)").option("--no-compress", "stream output raw without compression (debug the wrapper)").option("--profile <name>", "compression profile: aggressive | balanced | minimal").option("--max-tokens <n>", "post-compress token cap (0 = no cap)").option("-q, --quiet-success", "on exit code 0, emit only [tg: ok] summary and store full output for recall via bash-output").option("--native", "use native platform shell (e.g. cmd.exe on Windows) instead of bash, preserving Windows path backslashes").action(cmdCompress);
|
|
20980
20999
|
program2.command("upgrade").alias("update").description("check for updates and upgrade token-goat to the latest version").option("--check", "check whether an update is available without installing").option("-j, --json", "emit version check status as JSON").action(
|
|
20981
21000
|
(opts) => guard(async () => {
|
|
20982
|
-
const { cmdUpgrade } = await import("./token-goat-chunk-
|
|
21001
|
+
const { cmdUpgrade } = await import("./token-goat-chunk-K4DG6EEF.mjs");
|
|
20983
21002
|
await cmdUpgrade(opts, () => cmdInstall({}));
|
|
20984
21003
|
})()
|
|
20985
21004
|
);
|
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
querySheet,
|
|
11
11
|
rangeSheet,
|
|
12
12
|
xlsxColumns
|
|
13
|
-
} from "./token-goat-chunk-
|
|
14
|
-
import "./token-goat-chunk-
|
|
13
|
+
} from "./token-goat-chunk-LA3O4JGD.mjs";
|
|
14
|
+
import "./token-goat-chunk-EPXNOKIV.mjs";
|
|
15
15
|
import "./token-goat-chunk-3BTK54F3.mjs";
|
|
16
|
-
import "./token-goat-chunk-
|
|
16
|
+
import "./token-goat-chunk-7VLWNQDQ.mjs";
|
|
17
17
|
import "./token-goat-chunk-XTQAOTSO.mjs";
|
|
18
18
|
import "./token-goat-chunk-AH6QILZM.mjs";
|
|
19
|
-
import "./token-goat-chunk-
|
|
19
|
+
import "./token-goat-chunk-QIDLJGXZ.mjs";
|
|
20
20
|
import "./token-goat-chunk-ERTXEKB6.mjs";
|
|
21
21
|
import "./token-goat-chunk-Y4AFKTHK.mjs";
|
|
22
22
|
import "./token-goat-chunk-GMOUBOX4.mjs";
|
|
@@ -21,7 +21,7 @@ init_define_import_meta_env();
|
|
|
21
21
|
import { createRequire } from "node:module";
|
|
22
22
|
function resolveVersion() {
|
|
23
23
|
if (true) {
|
|
24
|
-
return "2.9.
|
|
24
|
+
return "2.9.18";
|
|
25
25
|
}
|
|
26
26
|
const require2 = createRequire(import.meta.url);
|
|
27
27
|
const pkg = require2("../package.json");
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
isTextHeavy,
|
|
6
6
|
ocrImage,
|
|
7
7
|
ocrIntegrityFailed
|
|
8
|
-
} from "./token-goat-chunk-
|
|
8
|
+
} from "./token-goat-chunk-H3FONFBO.mjs";
|
|
9
9
|
import {
|
|
10
10
|
formatSqliteQueryTable,
|
|
11
11
|
formatSqliteSchema,
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
urlPolicyDenialReason,
|
|
43
43
|
virtualIndexedScopeNote,
|
|
44
44
|
walkProject
|
|
45
|
-
} from "./token-goat-chunk-
|
|
45
|
+
} from "./token-goat-chunk-BFEWOMA3.mjs";
|
|
46
46
|
import {
|
|
47
47
|
colorStdout,
|
|
48
48
|
isBlobStale,
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
savedTokensFromBytes,
|
|
53
53
|
storeBlob,
|
|
54
54
|
stripAnsi
|
|
55
|
-
} from "./token-goat-chunk-
|
|
55
|
+
} from "./token-goat-chunk-HPOFR6QX.mjs";
|
|
56
56
|
import {
|
|
57
57
|
extractPdfMeta,
|
|
58
58
|
extractPdfOutline,
|
|
@@ -66,7 +66,7 @@ import {
|
|
|
66
66
|
parseWhereSpecs,
|
|
67
67
|
profileCsv,
|
|
68
68
|
queryCsv
|
|
69
|
-
} from "./token-goat-chunk-
|
|
69
|
+
} from "./token-goat-chunk-EPXNOKIV.mjs";
|
|
70
70
|
import {
|
|
71
71
|
MAX_ZIP_INPUT_BYTES,
|
|
72
72
|
MAX_ZIP_OUTPUT_BYTES,
|
|
@@ -101,7 +101,7 @@ import {
|
|
|
101
101
|
extractSolidity,
|
|
102
102
|
extractThrift,
|
|
103
103
|
stripLeadingAttributes
|
|
104
|
-
} from "./token-goat-chunk-
|
|
104
|
+
} from "./token-goat-chunk-GRI6HWX3.mjs";
|
|
105
105
|
import {
|
|
106
106
|
MAX_OVER_FETCH,
|
|
107
107
|
OVER_FETCH_FACTOR,
|
|
@@ -114,7 +114,7 @@ import {
|
|
|
114
114
|
mergeNearbyHits,
|
|
115
115
|
readSection,
|
|
116
116
|
searchSemantic
|
|
117
|
-
} from "./token-goat-chunk-
|
|
117
|
+
} from "./token-goat-chunk-W3E65QOW.mjs";
|
|
118
118
|
import {
|
|
119
119
|
DEFAULT_QUERY_LIMIT,
|
|
120
120
|
countRefs,
|
|
@@ -127,7 +127,7 @@ import {
|
|
|
127
127
|
queryRefsByContext,
|
|
128
128
|
querySymbols,
|
|
129
129
|
searchSymbolsFts
|
|
130
|
-
} from "./token-goat-chunk-
|
|
130
|
+
} from "./token-goat-chunk-I67CPTDD.mjs";
|
|
131
131
|
import {
|
|
132
132
|
FILENAME_LANGUAGE,
|
|
133
133
|
TREE_SITTER_LANGUAGES,
|
|
@@ -146,7 +146,7 @@ import {
|
|
|
146
146
|
partialRefsReason,
|
|
147
147
|
redactIfDotenv,
|
|
148
148
|
unsupportedLanguageName
|
|
149
|
-
} from "./token-goat-chunk-
|
|
149
|
+
} from "./token-goat-chunk-L7VCX33I.mjs";
|
|
150
150
|
import {
|
|
151
151
|
fileIsAbsent,
|
|
152
152
|
findProject,
|
|
@@ -156,7 +156,7 @@ import {
|
|
|
156
156
|
loadConfig,
|
|
157
157
|
resolveProjectRoot,
|
|
158
158
|
shortFingerprint
|
|
159
|
-
} from "./token-goat-chunk-
|
|
159
|
+
} from "./token-goat-chunk-CA6V36KW.mjs";
|
|
160
160
|
import {
|
|
161
161
|
registerReset
|
|
162
162
|
} from "./token-goat-chunk-EEIDFMEM.mjs";
|
|
@@ -188,7 +188,7 @@ import {
|
|
|
188
188
|
supportRequestLine,
|
|
189
189
|
windowsCmdQuoteArg,
|
|
190
190
|
withExtension
|
|
191
|
-
} from "./token-goat-chunk-
|
|
191
|
+
} from "./token-goat-chunk-QIDLJGXZ.mjs";
|
|
192
192
|
import {
|
|
193
193
|
UNTRUSTED_FILE_TAG,
|
|
194
194
|
UNTRUSTED_GITHUB_TAG,
|
|
@@ -2,7 +2,7 @@ import { createRequire as __cjsRequire } from 'node:module';
|
|
|
2
2
|
const require = __cjsRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
detectHarness
|
|
5
|
-
} from "./token-goat-chunk-
|
|
5
|
+
} from "./token-goat-chunk-CA6V36KW.mjs";
|
|
6
6
|
import {
|
|
7
7
|
init_define_import_meta_env
|
|
8
8
|
} from "./token-goat-chunk-A37V4PBF.mjs";
|
|
@@ -4,31 +4,31 @@ import {
|
|
|
4
4
|
enqueueDirtyPathSafe,
|
|
5
5
|
getToolName,
|
|
6
6
|
getTrackedFiles
|
|
7
|
-
} from "./token-goat-chunk-
|
|
7
|
+
} from "./token-goat-chunk-BFEWOMA3.mjs";
|
|
8
8
|
import {
|
|
9
9
|
indexRecallEntry
|
|
10
|
-
} from "./token-goat-chunk-
|
|
10
|
+
} from "./token-goat-chunk-CTOYJ232.mjs";
|
|
11
11
|
import {
|
|
12
12
|
isBlobStale,
|
|
13
13
|
loadBlob,
|
|
14
14
|
redactSecrets,
|
|
15
15
|
storeBlob
|
|
16
|
-
} from "./token-goat-chunk-
|
|
16
|
+
} from "./token-goat-chunk-HPOFR6QX.mjs";
|
|
17
17
|
import {
|
|
18
18
|
PARSER_FINGERPRINT
|
|
19
|
-
} from "./token-goat-chunk-
|
|
19
|
+
} from "./token-goat-chunk-W3E65QOW.mjs";
|
|
20
20
|
import {
|
|
21
21
|
getProjectFileEntries,
|
|
22
22
|
projectScopeClause
|
|
23
|
-
} from "./token-goat-chunk-
|
|
23
|
+
} from "./token-goat-chunk-I67CPTDD.mjs";
|
|
24
24
|
import {
|
|
25
25
|
getDb
|
|
26
|
-
} from "./token-goat-chunk-
|
|
26
|
+
} from "./token-goat-chunk-L7VCX33I.mjs";
|
|
27
27
|
import {
|
|
28
28
|
fingerprintFile,
|
|
29
29
|
getDisplayRoot,
|
|
30
30
|
shortFingerprint
|
|
31
|
-
} from "./token-goat-chunk-
|
|
31
|
+
} from "./token-goat-chunk-CA6V36KW.mjs";
|
|
32
32
|
import {
|
|
33
33
|
registerReset
|
|
34
34
|
} from "./token-goat-chunk-EEIDFMEM.mjs";
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
extractErrorMessage,
|
|
39
39
|
foldPath,
|
|
40
40
|
globalDbPath
|
|
41
|
-
} from "./token-goat-chunk-
|
|
41
|
+
} from "./token-goat-chunk-QIDLJGXZ.mjs";
|
|
42
42
|
import {
|
|
43
43
|
displaySafeJson,
|
|
44
44
|
normalizePath,
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
pathEqClause,
|
|
5
5
|
projectScopeClause,
|
|
6
6
|
querySymbols
|
|
7
|
-
} from "./token-goat-chunk-
|
|
7
|
+
} from "./token-goat-chunk-I67CPTDD.mjs";
|
|
8
8
|
import {
|
|
9
9
|
TREE_SITTER_LANGUAGES,
|
|
10
10
|
_detectOpenQuote,
|
|
@@ -21,11 +21,11 @@ import {
|
|
|
21
21
|
stripJsComments,
|
|
22
22
|
stripStringLiterals,
|
|
23
23
|
stripXmlComments
|
|
24
|
-
} from "./token-goat-chunk-
|
|
24
|
+
} from "./token-goat-chunk-L7VCX33I.mjs";
|
|
25
25
|
import {
|
|
26
26
|
fingerprintContent,
|
|
27
27
|
loadConfig
|
|
28
|
-
} from "./token-goat-chunk-
|
|
28
|
+
} from "./token-goat-chunk-CA6V36KW.mjs";
|
|
29
29
|
import {
|
|
30
30
|
registerReset
|
|
31
31
|
} from "./token-goat-chunk-EEIDFMEM.mjs";
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
foldPath,
|
|
40
40
|
globalDbPath,
|
|
41
41
|
isCaseInsensitiveFs
|
|
42
|
-
} from "./token-goat-chunk-
|
|
42
|
+
} from "./token-goat-chunk-QIDLJGXZ.mjs";
|
|
43
43
|
import {
|
|
44
44
|
displaySafeText,
|
|
45
45
|
normalizePath
|
|
@@ -74,11 +74,11 @@ async function extractEmbeddableDocumentText(filePath) {
|
|
|
74
74
|
return text;
|
|
75
75
|
}
|
|
76
76
|
case ".docx":
|
|
77
|
-
return await (await import("./token-goat-chunk-
|
|
77
|
+
return await (await import("./token-goat-chunk-HIZXQVNU.mjs")).docxText(filePath);
|
|
78
78
|
case ".pptx":
|
|
79
|
-
return await (await import("./token-goat-chunk-
|
|
79
|
+
return await (await import("./token-goat-chunk-52IMXJ2L.mjs")).pptxAllSlidesText(filePath, true);
|
|
80
80
|
case ".xlsx":
|
|
81
|
-
return await (await import("./token-goat-chunk-
|
|
81
|
+
return await (await import("./token-goat-chunk-OWSJJY5R.mjs")).allSheetsHeadText(filePath, XLSX_SHEET_ROW_CAP);
|
|
82
82
|
default:
|
|
83
83
|
return null;
|
|
84
84
|
}
|
|
@@ -3694,7 +3694,7 @@ function parseSourceSymbolsTreeSitterOnly(content, filePath, language) {
|
|
|
3694
3694
|
var REGEX_ADAPTERS_SLOT = /* @__PURE__ */ Symbol.for("token-goat.regex-adapters");
|
|
3695
3695
|
var adapterSlot = globalThis;
|
|
3696
3696
|
async function loadRegexExtractors() {
|
|
3697
|
-
adapterSlot[REGEX_ADAPTERS_SLOT] ??= await import("./token-goat-chunk-
|
|
3697
|
+
adapterSlot[REGEX_ADAPTERS_SLOT] ??= await import("./token-goat-chunk-5MMJAJF3.mjs");
|
|
3698
3698
|
}
|
|
3699
3699
|
function regexAdapters() {
|
|
3700
3700
|
const loaded = adapterSlot[REGEX_ADAPTERS_SLOT];
|