token-goat 2.9.24 → 2.9.26
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-D4JAVM3Z.mjs → token-goat-chunk-43JFN26X.mjs} +5 -5
- package/dist/{token-goat-chunk-BJRNKGYK.mjs → token-goat-chunk-4GEDH2WU.mjs} +8 -5
- package/dist/{token-goat-chunk-HC7SSQYK.mjs → token-goat-chunk-5BQ7W7D7.mjs} +16 -16
- package/dist/{token-goat-chunk-MEAYTTPZ.mjs → token-goat-chunk-5M3NRJD2.mjs} +2 -2
- package/dist/{token-goat-chunk-CLMQ24PD.mjs → token-goat-chunk-62IHOU6L.mjs} +2 -2
- package/dist/{token-goat-chunk-CFVXTYRC.mjs → token-goat-chunk-6E2IDLHF.mjs} +1 -1
- package/dist/{token-goat-chunk-3PT5WLQK.mjs → token-goat-chunk-7EPYB34H.mjs} +71 -61
- package/dist/{token-goat-chunk-7ADSYVBK.mjs → token-goat-chunk-7SXPJOSZ.mjs} +1 -1
- package/dist/{token-goat-chunk-2DUAXUIJ.mjs → token-goat-chunk-7Y6GWTII.mjs} +8 -8
- package/dist/token-goat-chunk-ADMR3QVF.mjs +41 -0
- package/dist/{token-goat-chunk-FXK6UNAH.mjs → token-goat-chunk-BAWKGODL.mjs} +1 -1
- package/dist/{token-goat-chunk-QVWZVH7Y.mjs → token-goat-chunk-BH4ZVRB2.mjs} +2 -2
- package/dist/{token-goat-chunk-VG36C3C4.mjs → token-goat-chunk-C2PG4K5D.mjs} +4 -4
- package/dist/{token-goat-chunk-GT26NTEL.mjs → token-goat-chunk-CQHY4SL7.mjs} +3 -3
- package/dist/{token-goat-chunk-I44FCOH2.mjs → token-goat-chunk-CXBOFPF4.mjs} +10 -10
- package/dist/{token-goat-chunk-UIHJZTP4.mjs → token-goat-chunk-D2X7XN5M.mjs} +3 -3
- package/dist/{token-goat-chunk-B7GDKYSS.mjs → token-goat-chunk-E6B2UFDF.mjs} +8 -8
- package/dist/{token-goat-chunk-5S74ZZEO.mjs → token-goat-chunk-FLEYOCAS.mjs} +3 -3
- package/dist/{token-goat-chunk-FMQP3ERO.mjs → token-goat-chunk-G6EYO5CD.mjs} +2 -2
- package/dist/{token-goat-chunk-AS5NSR66.mjs → token-goat-chunk-GKZ2US5B.mjs} +27 -27
- package/dist/{token-goat-chunk-CORDQN2U.mjs → token-goat-chunk-H2CPLEMP.mjs} +6 -6
- package/dist/{token-goat-chunk-HYD56VIE.mjs → token-goat-chunk-IKZLSRII.mjs} +2 -2
- package/dist/{token-goat-chunk-7ZCZ2HPM.mjs → token-goat-chunk-JALB3KWJ.mjs} +26 -19
- package/dist/{token-goat-chunk-JFVBQTYP.mjs → token-goat-chunk-L43RKNHA.mjs} +1 -1
- package/dist/{token-goat-chunk-RR4X4DHY.mjs → token-goat-chunk-L45IWWMC.mjs} +6 -6
- package/dist/{token-goat-chunk-T2RFPPNW.mjs → token-goat-chunk-LHUP4DXZ.mjs} +1 -1
- package/dist/{token-goat-chunk-J3TXSEAO.mjs → token-goat-chunk-LRIZ7K3F.mjs} +1 -1
- package/dist/{token-goat-chunk-SB5PY2N4.mjs → token-goat-chunk-M6CVNHTW.mjs} +4 -4
- package/dist/{token-goat-chunk-72TE7FU7.mjs → token-goat-chunk-MBDJR6HU.mjs} +12 -12
- package/dist/{token-goat-chunk-HZJZRQRF.mjs → token-goat-chunk-MDV5VWF4.mjs} +4 -4
- package/dist/{token-goat-chunk-PKBVHMSV.mjs → token-goat-chunk-MWID3YOY.mjs} +3 -3
- package/dist/{token-goat-chunk-I35H7T6A.mjs → token-goat-chunk-MZTO4FXH.mjs} +10 -10
- package/dist/{token-goat-chunk-4MAEUQLF.mjs → token-goat-chunk-PAV6NNY7.mjs} +3 -3
- package/dist/{token-goat-chunk-XSX4LVA2.mjs → token-goat-chunk-POOI26O6.mjs} +5 -5
- package/dist/{token-goat-chunk-DNHYOVUK.mjs → token-goat-chunk-RH27ZSPF.mjs} +11 -11
- package/dist/{token-goat-chunk-YVPIXBSD.mjs → token-goat-chunk-RIB6XY2V.mjs} +1 -1
- package/dist/{token-goat-chunk-U47EDUXC.mjs → token-goat-chunk-STYRLQIW.mjs} +2 -2
- package/dist/{token-goat-chunk-Q4RV2RNK.mjs → token-goat-chunk-TG5ZPD6B.mjs} +30 -30
- package/dist/{token-goat-chunk-LN6CBNPK.mjs → token-goat-chunk-VVROQBQJ.mjs} +3 -3
- package/dist/{token-goat-chunk-EGYUJ2AP.mjs → token-goat-chunk-WNBSCSAI.mjs} +1 -1
- package/dist/{token-goat-chunk-MGJPPLPE.mjs → token-goat-chunk-ZZT6PVB3.mjs} +4 -4
- package/dist/token-goat-hook.mjs +17 -17
- package/dist/token-goat.core.mjs +27 -27
- package/package.json +1 -1
- package/dist/token-goat-chunk-ZK52PPYH.mjs +0 -41
|
@@ -8,23 +8,23 @@ import {
|
|
|
8
8
|
redactSecrets,
|
|
9
9
|
storeBlob,
|
|
10
10
|
stripAnsiEscapes
|
|
11
|
-
} from "./token-goat-chunk-
|
|
11
|
+
} from "./token-goat-chunk-D2X7XN5M.mjs";
|
|
12
12
|
import {
|
|
13
13
|
sanitizeFtsQuery
|
|
14
|
-
} from "./token-goat-chunk-
|
|
14
|
+
} from "./token-goat-chunk-IKZLSRII.mjs";
|
|
15
15
|
import {
|
|
16
16
|
getDb
|
|
17
|
-
} from "./token-goat-chunk-
|
|
17
|
+
} from "./token-goat-chunk-7SXPJOSZ.mjs";
|
|
18
18
|
import {
|
|
19
19
|
shortFingerprint
|
|
20
|
-
} from "./token-goat-chunk-
|
|
20
|
+
} from "./token-goat-chunk-LRIZ7K3F.mjs";
|
|
21
21
|
import {
|
|
22
22
|
registerReset
|
|
23
23
|
} from "./token-goat-chunk-EEIDFMEM.mjs";
|
|
24
24
|
import {
|
|
25
25
|
globalDbPath,
|
|
26
26
|
runGit
|
|
27
|
-
} from "./token-goat-chunk-
|
|
27
|
+
} from "./token-goat-chunk-6E2IDLHF.mjs";
|
|
28
28
|
import {
|
|
29
29
|
normalizePath
|
|
30
30
|
} from "./token-goat-chunk-NMTKNYGF.mjs";
|
|
@@ -44,15 +44,15 @@ import {
|
|
|
44
44
|
trimRepeatedPrefix,
|
|
45
45
|
truncateMiddleSmart,
|
|
46
46
|
truncateTableRows
|
|
47
|
-
} from "./token-goat-chunk-
|
|
47
|
+
} from "./token-goat-chunk-43JFN26X.mjs";
|
|
48
48
|
import {
|
|
49
49
|
redactSecrets,
|
|
50
50
|
savedTokensFromBytes,
|
|
51
51
|
stripAnsiEscapes
|
|
52
|
-
} from "./token-goat-chunk-
|
|
52
|
+
} from "./token-goat-chunk-D2X7XN5M.mjs";
|
|
53
53
|
import {
|
|
54
54
|
loadConfig
|
|
55
|
-
} from "./token-goat-chunk-
|
|
55
|
+
} from "./token-goat-chunk-LRIZ7K3F.mjs";
|
|
56
56
|
import {
|
|
57
57
|
resolveIndexPath
|
|
58
58
|
} from "./token-goat-chunk-NMTKNYGF.mjs";
|
|
@@ -5071,6 +5071,9 @@ function isFilesOnlySearch(argv) {
|
|
|
5071
5071
|
function isCountOnlySearch(argv) {
|
|
5072
5072
|
return grepFlagInCluster(argv, "c", "--count");
|
|
5073
5073
|
}
|
|
5074
|
+
function isStructuredOutputSearch(argv) {
|
|
5075
|
+
return argv.includes("--json");
|
|
5076
|
+
}
|
|
5074
5077
|
var GrepFilter = class extends ToolFilter {
|
|
5075
5078
|
name = "grep";
|
|
5076
5079
|
binaries = /* @__PURE__ */ new Set(["grep", "egrep", "fgrep", "rg", "ag", "ack", "ack-grep"]);
|
|
@@ -5086,7 +5089,7 @@ var GrepFilter = class extends ToolFilter {
|
|
|
5086
5089
|
}
|
|
5087
5090
|
compress(stdout, stderr, _exitCode, argv, ctx = {}) {
|
|
5088
5091
|
const text = this.combineOutput(stdout, stderr);
|
|
5089
|
-
if (isFilesOnlySearch(argv) || isCountOnlySearch(argv)) return text;
|
|
5092
|
+
if (isFilesOnlySearch(argv) || isCountOnlySearch(argv) || isStructuredOutputSearch(argv)) return text;
|
|
5090
5093
|
const lines = text.split("\n");
|
|
5091
5094
|
const nonEmpty = lines.filter((l) => l.trim());
|
|
5092
5095
|
if (nonEmpty.length <= _GREP_COMPRESS_THRESHOLD) return clipGrepLines(text, argv);
|
|
@@ -5194,7 +5197,7 @@ var RgFilter = class _RgFilter extends ToolFilter {
|
|
|
5194
5197
|
}
|
|
5195
5198
|
_compressBody(stdout, stderr, _exitCode, argv) {
|
|
5196
5199
|
const text = this.combineOutput(stdout, stderr);
|
|
5197
|
-
if (isFilesOnlySearch(argv) || isCountOnlySearch(argv)) return text;
|
|
5200
|
+
if (isFilesOnlySearch(argv) || isCountOnlySearch(argv) || isStructuredOutputSearch(argv)) return text;
|
|
5198
5201
|
const lines = text.split("\n");
|
|
5199
5202
|
if (lines.length <= _RG_CONTEXT_THRESHOLD) return text;
|
|
5200
5203
|
if (!lines.some((l) => l === _RgFilter._SEP)) return text;
|
|
@@ -26,8 +26,8 @@ import {
|
|
|
26
26
|
runSkeleton,
|
|
27
27
|
runSymbol,
|
|
28
28
|
withPinnedReads
|
|
29
|
-
} from "./token-goat-chunk-
|
|
30
|
-
import "./token-goat-chunk-
|
|
29
|
+
} from "./token-goat-chunk-RH27ZSPF.mjs";
|
|
30
|
+
import "./token-goat-chunk-5M3NRJD2.mjs";
|
|
31
31
|
import "./token-goat-chunk-DA43OE7L.mjs";
|
|
32
32
|
import {
|
|
33
33
|
buildProjectMap,
|
|
@@ -37,37 +37,37 @@ import {
|
|
|
37
37
|
getProjectIndexCounts,
|
|
38
38
|
isWorkerRunning,
|
|
39
39
|
mapLookupBytesSaved
|
|
40
|
-
} from "./token-goat-chunk-
|
|
41
|
-
import "./token-goat-chunk-
|
|
42
|
-
import "./token-goat-chunk-
|
|
43
|
-
import "./token-goat-chunk-
|
|
40
|
+
} from "./token-goat-chunk-MBDJR6HU.mjs";
|
|
41
|
+
import "./token-goat-chunk-4GEDH2WU.mjs";
|
|
42
|
+
import "./token-goat-chunk-VVROQBQJ.mjs";
|
|
43
|
+
import "./token-goat-chunk-M6CVNHTW.mjs";
|
|
44
44
|
import {
|
|
45
45
|
claudeConfigDir
|
|
46
|
-
} from "./token-goat-chunk-
|
|
47
|
-
import "./token-goat-chunk-
|
|
46
|
+
} from "./token-goat-chunk-G6EYO5CD.mjs";
|
|
47
|
+
import "./token-goat-chunk-43JFN26X.mjs";
|
|
48
48
|
import {
|
|
49
49
|
recordStat,
|
|
50
50
|
savedTokensFromBytes
|
|
51
|
-
} from "./token-goat-chunk-
|
|
51
|
+
} from "./token-goat-chunk-D2X7XN5M.mjs";
|
|
52
52
|
import "./token-goat-chunk-LKSXAMJB.mjs";
|
|
53
|
-
import "./token-goat-chunk-
|
|
53
|
+
import "./token-goat-chunk-L43RKNHA.mjs";
|
|
54
54
|
import "./token-goat-chunk-3BTK54F3.mjs";
|
|
55
55
|
import "./token-goat-chunk-XTQAOTSO.mjs";
|
|
56
56
|
import "./token-goat-chunk-AH6QILZM.mjs";
|
|
57
|
-
import "./token-goat-chunk-
|
|
57
|
+
import "./token-goat-chunk-LHUP4DXZ.mjs";
|
|
58
58
|
import {
|
|
59
59
|
checkEmbeddingPreflight,
|
|
60
60
|
embeddingsDepsAvailable
|
|
61
|
-
} from "./token-goat-chunk-
|
|
62
|
-
import "./token-goat-chunk-
|
|
61
|
+
} from "./token-goat-chunk-7EPYB34H.mjs";
|
|
62
|
+
import "./token-goat-chunk-IKZLSRII.mjs";
|
|
63
63
|
import {
|
|
64
64
|
getDb
|
|
65
|
-
} from "./token-goat-chunk-
|
|
65
|
+
} from "./token-goat-chunk-7SXPJOSZ.mjs";
|
|
66
66
|
import {
|
|
67
67
|
envStrList,
|
|
68
68
|
loadConfig,
|
|
69
69
|
resolveProjectRoot
|
|
70
|
-
} from "./token-goat-chunk-
|
|
70
|
+
} from "./token-goat-chunk-LRIZ7K3F.mjs";
|
|
71
71
|
import "./token-goat-chunk-EEIDFMEM.mjs";
|
|
72
72
|
import "./token-goat-chunk-OSUFN2FV.mjs";
|
|
73
73
|
import {
|
|
@@ -77,7 +77,7 @@ import {
|
|
|
77
77
|
extractErrorMessage,
|
|
78
78
|
foldCaseForContainment,
|
|
79
79
|
globalDbPath
|
|
80
|
-
} from "./token-goat-chunk-
|
|
80
|
+
} from "./token-goat-chunk-6E2IDLHF.mjs";
|
|
81
81
|
import {
|
|
82
82
|
displaySafeJson,
|
|
83
83
|
normalizePath
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
isSupportedOcrLang,
|
|
6
6
|
loadConfig,
|
|
7
7
|
resolveOcrLangs
|
|
8
|
-
} from "./token-goat-chunk-
|
|
8
|
+
} from "./token-goat-chunk-LRIZ7K3F.mjs";
|
|
9
9
|
import {
|
|
10
10
|
ensureDirSync,
|
|
11
11
|
tokenGoatHome
|
|
12
|
-
} from "./token-goat-chunk-
|
|
12
|
+
} from "./token-goat-chunk-6E2IDLHF.mjs";
|
|
13
13
|
import {
|
|
14
14
|
fenceUntrustedOcrText
|
|
15
15
|
} from "./token-goat-chunk-NMTKNYGF.mjs";
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
createResidentContextStats,
|
|
7
7
|
estimateTokens,
|
|
8
8
|
summarizeResidentContext
|
|
9
|
-
} from "./token-goat-chunk-
|
|
9
|
+
} from "./token-goat-chunk-G6EYO5CD.mjs";
|
|
10
10
|
import {
|
|
11
11
|
commandHash,
|
|
12
12
|
getBashOutput,
|
|
13
13
|
normalizeCommandForCacheKey
|
|
14
|
-
} from "./token-goat-chunk-
|
|
14
|
+
} from "./token-goat-chunk-43JFN26X.mjs";
|
|
15
15
|
import {
|
|
16
16
|
init_define_import_meta_env
|
|
17
17
|
} from "./token-goat-chunk-A37V4PBF.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.26";
|
|
25
25
|
}
|
|
26
26
|
const require2 = createRequire(import.meta.url);
|
|
27
27
|
const pkg = require2("../package.json");
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
pathEqClause,
|
|
5
5
|
projectScopeClause,
|
|
6
6
|
querySymbols
|
|
7
|
-
} from "./token-goat-chunk-
|
|
7
|
+
} from "./token-goat-chunk-IKZLSRII.mjs";
|
|
8
8
|
import {
|
|
9
9
|
TREE_SITTER_LANGUAGES,
|
|
10
10
|
_detectOpenQuote,
|
|
@@ -22,11 +22,11 @@ import {
|
|
|
22
22
|
stripJsComments,
|
|
23
23
|
stripStringLiterals,
|
|
24
24
|
stripXmlComments
|
|
25
|
-
} from "./token-goat-chunk-
|
|
25
|
+
} from "./token-goat-chunk-7SXPJOSZ.mjs";
|
|
26
26
|
import {
|
|
27
27
|
fingerprintContent,
|
|
28
28
|
loadConfig
|
|
29
|
-
} from "./token-goat-chunk-
|
|
29
|
+
} from "./token-goat-chunk-LRIZ7K3F.mjs";
|
|
30
30
|
import {
|
|
31
31
|
registerReset
|
|
32
32
|
} from "./token-goat-chunk-EEIDFMEM.mjs";
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
foldPath,
|
|
41
41
|
globalDbPath,
|
|
42
42
|
isCaseInsensitiveFs
|
|
43
|
-
} from "./token-goat-chunk-
|
|
43
|
+
} from "./token-goat-chunk-6E2IDLHF.mjs";
|
|
44
44
|
import {
|
|
45
45
|
displaySafeText,
|
|
46
46
|
normalizePath
|
|
@@ -75,11 +75,11 @@ async function extractEmbeddableDocumentText(filePath) {
|
|
|
75
75
|
return text;
|
|
76
76
|
}
|
|
77
77
|
case ".docx":
|
|
78
|
-
return await (await import("./token-goat-chunk-
|
|
78
|
+
return await (await import("./token-goat-chunk-MWID3YOY.mjs")).docxText(filePath);
|
|
79
79
|
case ".pptx":
|
|
80
|
-
return await (await import("./token-goat-chunk-
|
|
80
|
+
return await (await import("./token-goat-chunk-FLEYOCAS.mjs")).pptxAllSlidesText(filePath, true);
|
|
81
81
|
case ".xlsx":
|
|
82
|
-
return await (await import("./token-goat-chunk-
|
|
82
|
+
return await (await import("./token-goat-chunk-C2PG4K5D.mjs")).allSheetsHeadText(filePath, XLSX_SHEET_ROW_CAP);
|
|
83
83
|
default:
|
|
84
84
|
return null;
|
|
85
85
|
}
|
|
@@ -1470,60 +1470,60 @@ init_define_import_meta_env();
|
|
|
1470
1470
|
|
|
1471
1471
|
// src/parser_fingerprint.ts
|
|
1472
1472
|
init_define_import_meta_env();
|
|
1473
|
-
var PARSER_FINGERPRINT = "
|
|
1473
|
+
var PARSER_FINGERPRINT = "e5a566e509bf9b32";
|
|
1474
1474
|
var LANGUAGE_PARSER_FINGERPRINTS = /* @__PURE__ */ new Map([
|
|
1475
|
-
["abap", "
|
|
1476
|
-
["abl", "
|
|
1477
|
-
["apache", "
|
|
1478
|
-
["apex", "
|
|
1479
|
-
["asm", "
|
|
1480
|
-
["bash", "
|
|
1481
|
-
["batch", "
|
|
1482
|
-
["caddy", "
|
|
1483
|
-
["clojure", "
|
|
1484
|
-
["cmake", "
|
|
1485
|
-
["common_lisp", "
|
|
1486
|
-
["csharp", "
|
|
1487
|
-
["dart", "
|
|
1488
|
-
["elixir", "
|
|
1489
|
-
["emacs_lisp", "
|
|
1490
|
-
["erlang", "
|
|
1491
|
-
["fortran", "
|
|
1492
|
-
["fsharp", "
|
|
1493
|
-
["graphql", "
|
|
1494
|
-
["groovy", "
|
|
1495
|
-
["haskell", "
|
|
1496
|
-
["jcl", "
|
|
1497
|
-
["kotlin", "
|
|
1498
|
-
["liquid", "
|
|
1499
|
-
["lua", "
|
|
1500
|
-
["makefile", "
|
|
1501
|
-
["matlab", "
|
|
1502
|
-
["nginx", "
|
|
1503
|
-
["nix", "
|
|
1504
|
-
["objc", "
|
|
1505
|
-
["ocaml", "
|
|
1506
|
-
["pascal", "
|
|
1507
|
-
["perl", "
|
|
1508
|
-
["php", "
|
|
1509
|
-
["pli", "
|
|
1510
|
-
["powershell", "
|
|
1511
|
-
["proto", "
|
|
1512
|
-
["r", "
|
|
1513
|
-
["racket", "
|
|
1514
|
-
["rpg", "
|
|
1515
|
-
["salesforce_metadata", "
|
|
1516
|
-
["sas", "
|
|
1517
|
-
["scala", "
|
|
1518
|
-
["scheme", "
|
|
1519
|
-
["solidity", "
|
|
1520
|
-
["sql", "
|
|
1521
|
-
["swift", "
|
|
1522
|
-
["terraform", "
|
|
1523
|
-
["thrift", "
|
|
1524
|
-
["vb", "
|
|
1525
|
-
["vhdl", "
|
|
1526
|
-
["zig", "
|
|
1475
|
+
["abap", "4a48bea982e6d996"],
|
|
1476
|
+
["abl", "accccea11fbaf42d"],
|
|
1477
|
+
["apache", "191f224a22d85b02"],
|
|
1478
|
+
["apex", "0486b7dc630a740f"],
|
|
1479
|
+
["asm", "229710718f33fb83"],
|
|
1480
|
+
["bash", "04b10b0d2db44200"],
|
|
1481
|
+
["batch", "0b34adfc848b9872"],
|
|
1482
|
+
["caddy", "64a2c6ab69cfe146"],
|
|
1483
|
+
["clojure", "b5e905a2e5da1c45"],
|
|
1484
|
+
["cmake", "afc6dcd14eb7abce"],
|
|
1485
|
+
["common_lisp", "5d67e00b7c979d26"],
|
|
1486
|
+
["csharp", "e8c41676a2e0feef"],
|
|
1487
|
+
["dart", "17d16c08c45d9279"],
|
|
1488
|
+
["elixir", "6e57537f16dbfdba"],
|
|
1489
|
+
["emacs_lisp", "e9aa65f44b1d7b55"],
|
|
1490
|
+
["erlang", "7c053015bf10eefb"],
|
|
1491
|
+
["fortran", "0d333eac0d19f762"],
|
|
1492
|
+
["fsharp", "a2f784498cd674da"],
|
|
1493
|
+
["graphql", "64c01bd6de27a1e0"],
|
|
1494
|
+
["groovy", "9309986c101ed1dd"],
|
|
1495
|
+
["haskell", "cebd5bf3006298b5"],
|
|
1496
|
+
["jcl", "6aa7808d56af2240"],
|
|
1497
|
+
["kotlin", "7cb859238fa93f5e"],
|
|
1498
|
+
["liquid", "00a830cd75203588"],
|
|
1499
|
+
["lua", "273053ff26036e59"],
|
|
1500
|
+
["makefile", "87db53f5e3910d01"],
|
|
1501
|
+
["matlab", "7143e4cb6a20bbfe"],
|
|
1502
|
+
["nginx", "f19d765231d2028f"],
|
|
1503
|
+
["nix", "07cd546156b3aeda"],
|
|
1504
|
+
["objc", "fff39098e0d4dcc1"],
|
|
1505
|
+
["ocaml", "c39c35e6b8bb12af"],
|
|
1506
|
+
["pascal", "8420d78867ad0d3d"],
|
|
1507
|
+
["perl", "428dedff631b186c"],
|
|
1508
|
+
["php", "0750539f6b26a427"],
|
|
1509
|
+
["pli", "46f375df7d0473a7"],
|
|
1510
|
+
["powershell", "3d28c178cbf8b7c1"],
|
|
1511
|
+
["proto", "124edf63697ed35f"],
|
|
1512
|
+
["r", "88a4246ba6d3280d"],
|
|
1513
|
+
["racket", "b24c7e2ab9ec4b9a"],
|
|
1514
|
+
["rpg", "c142cb05a3072f6c"],
|
|
1515
|
+
["salesforce_metadata", "aa3475cc45e8840d"],
|
|
1516
|
+
["sas", "e6235b0e2220f0fb"],
|
|
1517
|
+
["scala", "6cf9d353c857e017"],
|
|
1518
|
+
["scheme", "507891542f14ea35"],
|
|
1519
|
+
["solidity", "deec3805bcb02d27"],
|
|
1520
|
+
["sql", "77f763ed75c7581f"],
|
|
1521
|
+
["swift", "09b5f2bf00bd987d"],
|
|
1522
|
+
["terraform", "efa7a3323388ea17"],
|
|
1523
|
+
["thrift", "4199cb889f50ef21"],
|
|
1524
|
+
["vb", "8567ef20a7badb7e"],
|
|
1525
|
+
["vhdl", "936c1b642b094694"],
|
|
1526
|
+
["zig", "c4aa2a484e9497ce"]
|
|
1527
1527
|
]);
|
|
1528
1528
|
|
|
1529
1529
|
// src/parser_stamp.ts
|
|
@@ -3922,7 +3922,7 @@ function parseSourceSymbolsTreeSitterOnly(content, filePath, language) {
|
|
|
3922
3922
|
var REGEX_ADAPTERS_SLOT = /* @__PURE__ */ Symbol.for("token-goat.regex-adapters");
|
|
3923
3923
|
var adapterSlot = globalThis;
|
|
3924
3924
|
async function loadRegexExtractors() {
|
|
3925
|
-
adapterSlot[REGEX_ADAPTERS_SLOT] ??= await import("./token-goat-chunk-
|
|
3925
|
+
adapterSlot[REGEX_ADAPTERS_SLOT] ??= await import("./token-goat-chunk-H2CPLEMP.mjs");
|
|
3926
3926
|
}
|
|
3927
3927
|
function regexAdapters() {
|
|
3928
3928
|
const loaded = adapterSlot[REGEX_ADAPTERS_SLOT];
|
|
@@ -4092,6 +4092,14 @@ var MAX_CHUNKS_EMBED_SHA_PREFIX = "maxchunks:";
|
|
|
4092
4092
|
function maxChunksEmbedSha(sha, maxChunks) {
|
|
4093
4093
|
return `${MAX_CHUNKS_EMBED_SHA_PREFIX}${maxChunks}:${sha}`;
|
|
4094
4094
|
}
|
|
4095
|
+
function enforceStoredChunkCap(db, filePath, sha, maxChunks) {
|
|
4096
|
+
if (sha === void 0 || maxChunks <= 0) return false;
|
|
4097
|
+
const row = db.prepare(`SELECT COUNT(*) AS n FROM chunks WHERE ${pathEqClause("file_path")}`).get(foldPath(filePath));
|
|
4098
|
+
if ((row?.n ?? 0) <= maxChunks) return false;
|
|
4099
|
+
deleteFileEmbeddings(db, filePath);
|
|
4100
|
+
stampEmbedSha(db, filePath, sha, (s) => maxChunksEmbedSha(s, maxChunks));
|
|
4101
|
+
return true;
|
|
4102
|
+
}
|
|
4095
4103
|
function canonicalizeIndexPath(rawPath) {
|
|
4096
4104
|
const absPath = normalizePath(rawPath);
|
|
4097
4105
|
if (!isCaseInsensitiveFs()) return absPath;
|
|
@@ -4198,6 +4206,7 @@ async function indexFileEmbeddings(rawPath, dbPath = globalDbPath(), sha, onErro
|
|
|
4198
4206
|
try {
|
|
4199
4207
|
const db = getDb(dbPath);
|
|
4200
4208
|
const outcome = await indexFile(db, filePath, extracted, []);
|
|
4209
|
+
if (outcome !== "unavailable" && enforceStoredChunkCap(db, filePath, sha, ixCfg.max_chunks_per_file)) return;
|
|
4201
4210
|
stampEmbedSha(db, filePath, sha, (s) => outcome === "unavailable" ? unavailableEmbedSha(s) : s);
|
|
4202
4211
|
} catch (err) {
|
|
4203
4212
|
onError?.(err);
|
|
@@ -4244,6 +4253,7 @@ async function indexFileEmbeddings(rawPath, dbPath = globalDbPath(), sha, onErro
|
|
|
4244
4253
|
try {
|
|
4245
4254
|
const db = getDb(dbPath);
|
|
4246
4255
|
const outcome = await indexFile(db, filePath, content, boundaries);
|
|
4256
|
+
if (outcome !== "unavailable" && enforceStoredChunkCap(db, filePath, sha, ixCfg.max_chunks_per_file)) return;
|
|
4247
4257
|
stampEmbedSha(db, filePath, sha, (s) => outcome === "unavailable" ? unavailableEmbedSha(s) : s);
|
|
4248
4258
|
} catch (err) {
|
|
4249
4259
|
onError?.(err);
|
|
@@ -6,34 +6,34 @@ import {
|
|
|
6
6
|
getToolName,
|
|
7
7
|
getTrackedFiles,
|
|
8
8
|
scanAndRecord
|
|
9
|
-
} from "./token-goat-chunk-
|
|
9
|
+
} from "./token-goat-chunk-MBDJR6HU.mjs";
|
|
10
10
|
import {
|
|
11
11
|
RECALL_DEFAULT_LIMIT,
|
|
12
12
|
indexRecallEntry,
|
|
13
13
|
listRecentRecall,
|
|
14
14
|
searchRecall
|
|
15
|
-
} from "./token-goat-chunk-
|
|
15
|
+
} from "./token-goat-chunk-43JFN26X.mjs";
|
|
16
16
|
import {
|
|
17
17
|
isBlobStale,
|
|
18
18
|
loadBlob,
|
|
19
19
|
redactSecrets,
|
|
20
20
|
storeBlob
|
|
21
|
-
} from "./token-goat-chunk-
|
|
21
|
+
} from "./token-goat-chunk-D2X7XN5M.mjs";
|
|
22
22
|
import {
|
|
23
23
|
parserFingerprintForLanguage
|
|
24
|
-
} from "./token-goat-chunk-
|
|
24
|
+
} from "./token-goat-chunk-7EPYB34H.mjs";
|
|
25
25
|
import {
|
|
26
26
|
getProjectFileEntries,
|
|
27
27
|
projectScopeClause
|
|
28
|
-
} from "./token-goat-chunk-
|
|
28
|
+
} from "./token-goat-chunk-IKZLSRII.mjs";
|
|
29
29
|
import {
|
|
30
30
|
getDb
|
|
31
|
-
} from "./token-goat-chunk-
|
|
31
|
+
} from "./token-goat-chunk-7SXPJOSZ.mjs";
|
|
32
32
|
import {
|
|
33
33
|
fingerprintFile,
|
|
34
34
|
getDisplayRoot,
|
|
35
35
|
shortFingerprint
|
|
36
|
-
} from "./token-goat-chunk-
|
|
36
|
+
} from "./token-goat-chunk-LRIZ7K3F.mjs";
|
|
37
37
|
import {
|
|
38
38
|
registerReset
|
|
39
39
|
} from "./token-goat-chunk-EEIDFMEM.mjs";
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
foldPath,
|
|
45
45
|
globalDbPath,
|
|
46
46
|
pad
|
|
47
|
-
} from "./token-goat-chunk-
|
|
47
|
+
} from "./token-goat-chunk-6E2IDLHF.mjs";
|
|
48
48
|
import {
|
|
49
49
|
UNTRUSTED_TOOL_TAG,
|
|
50
50
|
UNTRUSTED_WEB_TAG,
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { createRequire as __cjsRequire } from 'node:module';
|
|
2
|
+
const require = __cjsRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
buildEvent,
|
|
5
|
+
relay,
|
|
6
|
+
relayInProcess
|
|
7
|
+
} from "./token-goat-chunk-JALB3KWJ.mjs";
|
|
8
|
+
import "./token-goat-chunk-ZZT6PVB3.mjs";
|
|
9
|
+
import {
|
|
10
|
+
MAX_STDIN_BYTES,
|
|
11
|
+
readStdinJson
|
|
12
|
+
} from "./token-goat-chunk-7Y6GWTII.mjs";
|
|
13
|
+
import "./token-goat-chunk-62IHOU6L.mjs";
|
|
14
|
+
import "./token-goat-chunk-MDV5VWF4.mjs";
|
|
15
|
+
import "./token-goat-chunk-MBDJR6HU.mjs";
|
|
16
|
+
import "./token-goat-chunk-4GEDH2WU.mjs";
|
|
17
|
+
import "./token-goat-chunk-VVROQBQJ.mjs";
|
|
18
|
+
import "./token-goat-chunk-M6CVNHTW.mjs";
|
|
19
|
+
import "./token-goat-chunk-G6EYO5CD.mjs";
|
|
20
|
+
import "./token-goat-chunk-43JFN26X.mjs";
|
|
21
|
+
import "./token-goat-chunk-D2X7XN5M.mjs";
|
|
22
|
+
import "./token-goat-chunk-3BTK54F3.mjs";
|
|
23
|
+
import "./token-goat-chunk-7EPYB34H.mjs";
|
|
24
|
+
import "./token-goat-chunk-IKZLSRII.mjs";
|
|
25
|
+
import "./token-goat-chunk-7SXPJOSZ.mjs";
|
|
26
|
+
import "./token-goat-chunk-LRIZ7K3F.mjs";
|
|
27
|
+
import "./token-goat-chunk-EEIDFMEM.mjs";
|
|
28
|
+
import "./token-goat-chunk-OSUFN2FV.mjs";
|
|
29
|
+
import "./token-goat-chunk-6E2IDLHF.mjs";
|
|
30
|
+
import "./token-goat-chunk-NMTKNYGF.mjs";
|
|
31
|
+
import "./token-goat-chunk-Y4AFKTHK.mjs";
|
|
32
|
+
import "./token-goat-chunk-GMOUBOX4.mjs";
|
|
33
|
+
import "./token-goat-chunk-RRNZMM3A.mjs";
|
|
34
|
+
import "./token-goat-chunk-A37V4PBF.mjs";
|
|
35
|
+
export {
|
|
36
|
+
MAX_STDIN_BYTES,
|
|
37
|
+
buildEvent,
|
|
38
|
+
readStdinJson,
|
|
39
|
+
relay,
|
|
40
|
+
relayInProcess
|
|
41
|
+
};
|
|
@@ -2,10 +2,10 @@ import { createRequire as __cjsRequire } from 'node:module';
|
|
|
2
2
|
const require = __cjsRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
loadConfig
|
|
5
|
-
} from "./token-goat-chunk-
|
|
5
|
+
} from "./token-goat-chunk-LRIZ7K3F.mjs";
|
|
6
6
|
import {
|
|
7
7
|
VERSION
|
|
8
|
-
} from "./token-goat-chunk-
|
|
8
|
+
} from "./token-goat-chunk-6E2IDLHF.mjs";
|
|
9
9
|
import {
|
|
10
10
|
displaySafeJson
|
|
11
11
|
} from "./token-goat-chunk-NMTKNYGF.mjs";
|
|
@@ -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-STYRLQIW.mjs";
|
|
14
|
+
import "./token-goat-chunk-L43RKNHA.mjs";
|
|
15
15
|
import "./token-goat-chunk-3BTK54F3.mjs";
|
|
16
|
-
import "./token-goat-chunk-
|
|
16
|
+
import "./token-goat-chunk-RIB6XY2V.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-6E2IDLHF.mjs";
|
|
20
20
|
import "./token-goat-chunk-NMTKNYGF.mjs";
|
|
21
21
|
import "./token-goat-chunk-Y4AFKTHK.mjs";
|
|
22
22
|
import "./token-goat-chunk-GMOUBOX4.mjs";
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
cmdUpgrade,
|
|
6
6
|
compareSemver,
|
|
7
7
|
fetchLatestVersion
|
|
8
|
-
} from "./token-goat-chunk-
|
|
9
|
-
import "./token-goat-chunk-
|
|
8
|
+
} from "./token-goat-chunk-BH4ZVRB2.mjs";
|
|
9
|
+
import "./token-goat-chunk-LRIZ7K3F.mjs";
|
|
10
10
|
import "./token-goat-chunk-EEIDFMEM.mjs";
|
|
11
|
-
import "./token-goat-chunk-
|
|
11
|
+
import "./token-goat-chunk-6E2IDLHF.mjs";
|
|
12
12
|
import "./token-goat-chunk-NMTKNYGF.mjs";
|
|
13
13
|
import "./token-goat-chunk-GMOUBOX4.mjs";
|
|
14
14
|
import "./token-goat-chunk-A37V4PBF.mjs";
|
|
@@ -4,22 +4,22 @@ import {
|
|
|
4
4
|
buildCopilotWasteReport,
|
|
5
5
|
findProjectSession,
|
|
6
6
|
isCopilotTranscript
|
|
7
|
-
} from "./token-goat-chunk-
|
|
7
|
+
} from "./token-goat-chunk-PAV6NNY7.mjs";
|
|
8
8
|
import {
|
|
9
9
|
buildWasteReport
|
|
10
|
-
} from "./token-goat-chunk-
|
|
11
|
-
import "./token-goat-chunk-
|
|
12
|
-
import "./token-goat-chunk-
|
|
13
|
-
import "./token-goat-chunk-
|
|
14
|
-
import "./token-goat-chunk-
|
|
15
|
-
import "./token-goat-chunk-
|
|
16
|
-
import "./token-goat-chunk-
|
|
10
|
+
} from "./token-goat-chunk-62IHOU6L.mjs";
|
|
11
|
+
import "./token-goat-chunk-VVROQBQJ.mjs";
|
|
12
|
+
import "./token-goat-chunk-G6EYO5CD.mjs";
|
|
13
|
+
import "./token-goat-chunk-43JFN26X.mjs";
|
|
14
|
+
import "./token-goat-chunk-D2X7XN5M.mjs";
|
|
15
|
+
import "./token-goat-chunk-IKZLSRII.mjs";
|
|
16
|
+
import "./token-goat-chunk-7SXPJOSZ.mjs";
|
|
17
17
|
import {
|
|
18
18
|
resolveProjectRoot
|
|
19
|
-
} from "./token-goat-chunk-
|
|
19
|
+
} from "./token-goat-chunk-LRIZ7K3F.mjs";
|
|
20
20
|
import "./token-goat-chunk-EEIDFMEM.mjs";
|
|
21
21
|
import "./token-goat-chunk-OSUFN2FV.mjs";
|
|
22
|
-
import "./token-goat-chunk-
|
|
22
|
+
import "./token-goat-chunk-6E2IDLHF.mjs";
|
|
23
23
|
import {
|
|
24
24
|
displaySafeJson
|
|
25
25
|
} from "./token-goat-chunk-NMTKNYGF.mjs";
|
|
@@ -2,11 +2,11 @@ import { createRequire as __cjsRequire } from 'node:module';
|
|
|
2
2
|
const require = __cjsRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
getDb
|
|
5
|
-
} from "./token-goat-chunk-
|
|
5
|
+
} from "./token-goat-chunk-7SXPJOSZ.mjs";
|
|
6
6
|
import {
|
|
7
7
|
getHarnessName,
|
|
8
8
|
loadConfig
|
|
9
|
-
} from "./token-goat-chunk-
|
|
9
|
+
} from "./token-goat-chunk-LRIZ7K3F.mjs";
|
|
10
10
|
import {
|
|
11
11
|
registerReset
|
|
12
12
|
} from "./token-goat-chunk-EEIDFMEM.mjs";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
extractErrorMessage,
|
|
24
24
|
sanitizeIdForFilename,
|
|
25
25
|
tokenGoatHome
|
|
26
|
-
} from "./token-goat-chunk-
|
|
26
|
+
} from "./token-goat-chunk-6E2IDLHF.mjs";
|
|
27
27
|
import {
|
|
28
28
|
displaySafeText
|
|
29
29
|
} from "./token-goat-chunk-NMTKNYGF.mjs";
|
|
@@ -7,16 +7,16 @@ import {
|
|
|
7
7
|
resolveFilter,
|
|
8
8
|
run,
|
|
9
9
|
runRaw
|
|
10
|
-
} from "./token-goat-chunk-
|
|
11
|
-
import "./token-goat-chunk-
|
|
12
|
-
import "./token-goat-chunk-
|
|
13
|
-
import "./token-goat-chunk-
|
|
14
|
-
import "./token-goat-chunk-
|
|
15
|
-
import "./token-goat-chunk-
|
|
16
|
-
import "./token-goat-chunk-
|
|
10
|
+
} from "./token-goat-chunk-ZZT6PVB3.mjs";
|
|
11
|
+
import "./token-goat-chunk-4GEDH2WU.mjs";
|
|
12
|
+
import "./token-goat-chunk-43JFN26X.mjs";
|
|
13
|
+
import "./token-goat-chunk-D2X7XN5M.mjs";
|
|
14
|
+
import "./token-goat-chunk-IKZLSRII.mjs";
|
|
15
|
+
import "./token-goat-chunk-7SXPJOSZ.mjs";
|
|
16
|
+
import "./token-goat-chunk-LRIZ7K3F.mjs";
|
|
17
17
|
import "./token-goat-chunk-EEIDFMEM.mjs";
|
|
18
18
|
import "./token-goat-chunk-OSUFN2FV.mjs";
|
|
19
|
-
import "./token-goat-chunk-
|
|
19
|
+
import "./token-goat-chunk-6E2IDLHF.mjs";
|
|
20
20
|
import "./token-goat-chunk-NMTKNYGF.mjs";
|
|
21
21
|
import "./token-goat-chunk-GMOUBOX4.mjs";
|
|
22
22
|
import "./token-goat-chunk-A37V4PBF.mjs";
|
|
@@ -6,11 +6,11 @@ import {
|
|
|
6
6
|
pptxOutline,
|
|
7
7
|
pptxSlideText,
|
|
8
8
|
pptxTextGrep
|
|
9
|
-
} from "./token-goat-chunk-
|
|
10
|
-
import "./token-goat-chunk-
|
|
9
|
+
} from "./token-goat-chunk-BAWKGODL.mjs";
|
|
10
|
+
import "./token-goat-chunk-RIB6XY2V.mjs";
|
|
11
11
|
import "./token-goat-chunk-XTQAOTSO.mjs";
|
|
12
12
|
import "./token-goat-chunk-AH6QILZM.mjs";
|
|
13
|
-
import "./token-goat-chunk-
|
|
13
|
+
import "./token-goat-chunk-6E2IDLHF.mjs";
|
|
14
14
|
import "./token-goat-chunk-NMTKNYGF.mjs";
|
|
15
15
|
import "./token-goat-chunk-Y4AFKTHK.mjs";
|
|
16
16
|
import "./token-goat-chunk-GMOUBOX4.mjs";
|