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.
Files changed (45) hide show
  1. package/dist/{token-goat-chunk-D4JAVM3Z.mjs → token-goat-chunk-43JFN26X.mjs} +5 -5
  2. package/dist/{token-goat-chunk-BJRNKGYK.mjs → token-goat-chunk-4GEDH2WU.mjs} +8 -5
  3. package/dist/{token-goat-chunk-HC7SSQYK.mjs → token-goat-chunk-5BQ7W7D7.mjs} +16 -16
  4. package/dist/{token-goat-chunk-MEAYTTPZ.mjs → token-goat-chunk-5M3NRJD2.mjs} +2 -2
  5. package/dist/{token-goat-chunk-CLMQ24PD.mjs → token-goat-chunk-62IHOU6L.mjs} +2 -2
  6. package/dist/{token-goat-chunk-CFVXTYRC.mjs → token-goat-chunk-6E2IDLHF.mjs} +1 -1
  7. package/dist/{token-goat-chunk-3PT5WLQK.mjs → token-goat-chunk-7EPYB34H.mjs} +71 -61
  8. package/dist/{token-goat-chunk-7ADSYVBK.mjs → token-goat-chunk-7SXPJOSZ.mjs} +1 -1
  9. package/dist/{token-goat-chunk-2DUAXUIJ.mjs → token-goat-chunk-7Y6GWTII.mjs} +8 -8
  10. package/dist/token-goat-chunk-ADMR3QVF.mjs +41 -0
  11. package/dist/{token-goat-chunk-FXK6UNAH.mjs → token-goat-chunk-BAWKGODL.mjs} +1 -1
  12. package/dist/{token-goat-chunk-QVWZVH7Y.mjs → token-goat-chunk-BH4ZVRB2.mjs} +2 -2
  13. package/dist/{token-goat-chunk-VG36C3C4.mjs → token-goat-chunk-C2PG4K5D.mjs} +4 -4
  14. package/dist/{token-goat-chunk-GT26NTEL.mjs → token-goat-chunk-CQHY4SL7.mjs} +3 -3
  15. package/dist/{token-goat-chunk-I44FCOH2.mjs → token-goat-chunk-CXBOFPF4.mjs} +10 -10
  16. package/dist/{token-goat-chunk-UIHJZTP4.mjs → token-goat-chunk-D2X7XN5M.mjs} +3 -3
  17. package/dist/{token-goat-chunk-B7GDKYSS.mjs → token-goat-chunk-E6B2UFDF.mjs} +8 -8
  18. package/dist/{token-goat-chunk-5S74ZZEO.mjs → token-goat-chunk-FLEYOCAS.mjs} +3 -3
  19. package/dist/{token-goat-chunk-FMQP3ERO.mjs → token-goat-chunk-G6EYO5CD.mjs} +2 -2
  20. package/dist/{token-goat-chunk-AS5NSR66.mjs → token-goat-chunk-GKZ2US5B.mjs} +27 -27
  21. package/dist/{token-goat-chunk-CORDQN2U.mjs → token-goat-chunk-H2CPLEMP.mjs} +6 -6
  22. package/dist/{token-goat-chunk-HYD56VIE.mjs → token-goat-chunk-IKZLSRII.mjs} +2 -2
  23. package/dist/{token-goat-chunk-7ZCZ2HPM.mjs → token-goat-chunk-JALB3KWJ.mjs} +26 -19
  24. package/dist/{token-goat-chunk-JFVBQTYP.mjs → token-goat-chunk-L43RKNHA.mjs} +1 -1
  25. package/dist/{token-goat-chunk-RR4X4DHY.mjs → token-goat-chunk-L45IWWMC.mjs} +6 -6
  26. package/dist/{token-goat-chunk-T2RFPPNW.mjs → token-goat-chunk-LHUP4DXZ.mjs} +1 -1
  27. package/dist/{token-goat-chunk-J3TXSEAO.mjs → token-goat-chunk-LRIZ7K3F.mjs} +1 -1
  28. package/dist/{token-goat-chunk-SB5PY2N4.mjs → token-goat-chunk-M6CVNHTW.mjs} +4 -4
  29. package/dist/{token-goat-chunk-72TE7FU7.mjs → token-goat-chunk-MBDJR6HU.mjs} +12 -12
  30. package/dist/{token-goat-chunk-HZJZRQRF.mjs → token-goat-chunk-MDV5VWF4.mjs} +4 -4
  31. package/dist/{token-goat-chunk-PKBVHMSV.mjs → token-goat-chunk-MWID3YOY.mjs} +3 -3
  32. package/dist/{token-goat-chunk-I35H7T6A.mjs → token-goat-chunk-MZTO4FXH.mjs} +10 -10
  33. package/dist/{token-goat-chunk-4MAEUQLF.mjs → token-goat-chunk-PAV6NNY7.mjs} +3 -3
  34. package/dist/{token-goat-chunk-XSX4LVA2.mjs → token-goat-chunk-POOI26O6.mjs} +5 -5
  35. package/dist/{token-goat-chunk-DNHYOVUK.mjs → token-goat-chunk-RH27ZSPF.mjs} +11 -11
  36. package/dist/{token-goat-chunk-YVPIXBSD.mjs → token-goat-chunk-RIB6XY2V.mjs} +1 -1
  37. package/dist/{token-goat-chunk-U47EDUXC.mjs → token-goat-chunk-STYRLQIW.mjs} +2 -2
  38. package/dist/{token-goat-chunk-Q4RV2RNK.mjs → token-goat-chunk-TG5ZPD6B.mjs} +30 -30
  39. package/dist/{token-goat-chunk-LN6CBNPK.mjs → token-goat-chunk-VVROQBQJ.mjs} +3 -3
  40. package/dist/{token-goat-chunk-EGYUJ2AP.mjs → token-goat-chunk-WNBSCSAI.mjs} +1 -1
  41. package/dist/{token-goat-chunk-MGJPPLPE.mjs → token-goat-chunk-ZZT6PVB3.mjs} +4 -4
  42. package/dist/token-goat-hook.mjs +17 -17
  43. package/dist/token-goat.core.mjs +27 -27
  44. package/package.json +1 -1
  45. 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-UIHJZTP4.mjs";
11
+ } from "./token-goat-chunk-D2X7XN5M.mjs";
12
12
  import {
13
13
  sanitizeFtsQuery
14
- } from "./token-goat-chunk-HYD56VIE.mjs";
14
+ } from "./token-goat-chunk-IKZLSRII.mjs";
15
15
  import {
16
16
  getDb
17
- } from "./token-goat-chunk-7ADSYVBK.mjs";
17
+ } from "./token-goat-chunk-7SXPJOSZ.mjs";
18
18
  import {
19
19
  shortFingerprint
20
- } from "./token-goat-chunk-J3TXSEAO.mjs";
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-CFVXTYRC.mjs";
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-D4JAVM3Z.mjs";
47
+ } from "./token-goat-chunk-43JFN26X.mjs";
48
48
  import {
49
49
  redactSecrets,
50
50
  savedTokensFromBytes,
51
51
  stripAnsiEscapes
52
- } from "./token-goat-chunk-UIHJZTP4.mjs";
52
+ } from "./token-goat-chunk-D2X7XN5M.mjs";
53
53
  import {
54
54
  loadConfig
55
- } from "./token-goat-chunk-J3TXSEAO.mjs";
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-DNHYOVUK.mjs";
30
- import "./token-goat-chunk-MEAYTTPZ.mjs";
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-72TE7FU7.mjs";
41
- import "./token-goat-chunk-BJRNKGYK.mjs";
42
- import "./token-goat-chunk-LN6CBNPK.mjs";
43
- import "./token-goat-chunk-SB5PY2N4.mjs";
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-FMQP3ERO.mjs";
47
- import "./token-goat-chunk-D4JAVM3Z.mjs";
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-UIHJZTP4.mjs";
51
+ } from "./token-goat-chunk-D2X7XN5M.mjs";
52
52
  import "./token-goat-chunk-LKSXAMJB.mjs";
53
- import "./token-goat-chunk-JFVBQTYP.mjs";
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-T2RFPPNW.mjs";
57
+ import "./token-goat-chunk-LHUP4DXZ.mjs";
58
58
  import {
59
59
  checkEmbeddingPreflight,
60
60
  embeddingsDepsAvailable
61
- } from "./token-goat-chunk-3PT5WLQK.mjs";
62
- import "./token-goat-chunk-HYD56VIE.mjs";
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-7ADSYVBK.mjs";
65
+ } from "./token-goat-chunk-7SXPJOSZ.mjs";
66
66
  import {
67
67
  envStrList,
68
68
  loadConfig,
69
69
  resolveProjectRoot
70
- } from "./token-goat-chunk-J3TXSEAO.mjs";
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-CFVXTYRC.mjs";
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-J3TXSEAO.mjs";
8
+ } from "./token-goat-chunk-LRIZ7K3F.mjs";
9
9
  import {
10
10
  ensureDirSync,
11
11
  tokenGoatHome
12
- } from "./token-goat-chunk-CFVXTYRC.mjs";
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-FMQP3ERO.mjs";
9
+ } from "./token-goat-chunk-G6EYO5CD.mjs";
10
10
  import {
11
11
  commandHash,
12
12
  getBashOutput,
13
13
  normalizeCommandForCacheKey
14
- } from "./token-goat-chunk-D4JAVM3Z.mjs";
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";
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-HYD56VIE.mjs";
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-7ADSYVBK.mjs";
25
+ } from "./token-goat-chunk-7SXPJOSZ.mjs";
26
26
  import {
27
27
  fingerprintContent,
28
28
  loadConfig
29
- } from "./token-goat-chunk-J3TXSEAO.mjs";
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-CFVXTYRC.mjs";
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-PKBVHMSV.mjs")).docxText(filePath);
78
+ return await (await import("./token-goat-chunk-MWID3YOY.mjs")).docxText(filePath);
79
79
  case ".pptx":
80
- return await (await import("./token-goat-chunk-5S74ZZEO.mjs")).pptxAllSlidesText(filePath, true);
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-VG36C3C4.mjs")).allSheetsHeadText(filePath, XLSX_SHEET_ROW_CAP);
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 = "4a3655d5cfe03a53";
1473
+ var PARSER_FINGERPRINT = "e5a566e509bf9b32";
1474
1474
  var LANGUAGE_PARSER_FINGERPRINTS = /* @__PURE__ */ new Map([
1475
- ["abap", "4ef985e32a1f383b"],
1476
- ["abl", "bdd5e1f26e45ff2c"],
1477
- ["apache", "0b27b69726292efb"],
1478
- ["apex", "e32b7db5f4712f5b"],
1479
- ["asm", "39cb0f03768e600d"],
1480
- ["bash", "c3e48283ab19e193"],
1481
- ["batch", "851214ae15af3639"],
1482
- ["caddy", "bbeb0a2da1560633"],
1483
- ["clojure", "d0884e88ac85075a"],
1484
- ["cmake", "03340ace9b2aa883"],
1485
- ["common_lisp", "ae28e72ef28c9551"],
1486
- ["csharp", "a2c491f606bb57b9"],
1487
- ["dart", "a4dd5573b9546228"],
1488
- ["elixir", "4a81648264545c56"],
1489
- ["emacs_lisp", "316bfa0b437eeb85"],
1490
- ["erlang", "3bc366622ec4cc3b"],
1491
- ["fortran", "291bc41f505cdda6"],
1492
- ["fsharp", "10933683d81d8d1c"],
1493
- ["graphql", "1a20ee76f923313e"],
1494
- ["groovy", "9cb3181f3f4a11fe"],
1495
- ["haskell", "730181cb830a1030"],
1496
- ["jcl", "9a57499031ed347b"],
1497
- ["kotlin", "f3dfa562584b3c1e"],
1498
- ["liquid", "2c0c5e6ba3115c8a"],
1499
- ["lua", "6ce08b73a44c644e"],
1500
- ["makefile", "3ba22553e6f132b2"],
1501
- ["matlab", "f746df0ae9a5b830"],
1502
- ["nginx", "3c41efc524de3986"],
1503
- ["nix", "3fd1e8d077a7bf35"],
1504
- ["objc", "01f9ad87531b18b3"],
1505
- ["ocaml", "45102e7f975163f4"],
1506
- ["pascal", "294cd5e1691c743c"],
1507
- ["perl", "0e3da9140e016fcc"],
1508
- ["php", "3284d2b4728c415c"],
1509
- ["pli", "e231b4d9e03f468c"],
1510
- ["powershell", "a00cb003902e7925"],
1511
- ["proto", "295d025fcbb1530b"],
1512
- ["r", "a085d6e71e01a30c"],
1513
- ["racket", "67784484d09eb4b2"],
1514
- ["rpg", "c62e068dcdc9560f"],
1515
- ["salesforce_metadata", "355abf5e3004314b"],
1516
- ["sas", "3989a1cb67d116ab"],
1517
- ["scala", "4c26cbe2d384c6f3"],
1518
- ["scheme", "5002c53a7c5b2494"],
1519
- ["solidity", "73c98aebc6e118a3"],
1520
- ["sql", "2d4253d05fc034c0"],
1521
- ["swift", "37c62bf09376b09b"],
1522
- ["terraform", "eb990ef3cdcc442a"],
1523
- ["thrift", "5087a9dd0676c7b4"],
1524
- ["vb", "8f4399c3ff337841"],
1525
- ["vhdl", "940490b5125328d9"],
1526
- ["zig", "216a30e17966e444"]
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-CORDQN2U.mjs");
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);
@@ -15,7 +15,7 @@ import {
15
15
  foldCase,
16
16
  foldPath,
17
17
  sleepSync
18
- } from "./token-goat-chunk-CFVXTYRC.mjs";
18
+ } from "./token-goat-chunk-6E2IDLHF.mjs";
19
19
  import {
20
20
  safeJoin
21
21
  } from "./token-goat-chunk-NMTKNYGF.mjs";
@@ -6,34 +6,34 @@ import {
6
6
  getToolName,
7
7
  getTrackedFiles,
8
8
  scanAndRecord
9
- } from "./token-goat-chunk-72TE7FU7.mjs";
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-D4JAVM3Z.mjs";
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-UIHJZTP4.mjs";
21
+ } from "./token-goat-chunk-D2X7XN5M.mjs";
22
22
  import {
23
23
  parserFingerprintForLanguage
24
- } from "./token-goat-chunk-3PT5WLQK.mjs";
24
+ } from "./token-goat-chunk-7EPYB34H.mjs";
25
25
  import {
26
26
  getProjectFileEntries,
27
27
  projectScopeClause
28
- } from "./token-goat-chunk-HYD56VIE.mjs";
28
+ } from "./token-goat-chunk-IKZLSRII.mjs";
29
29
  import {
30
30
  getDb
31
- } from "./token-goat-chunk-7ADSYVBK.mjs";
31
+ } from "./token-goat-chunk-7SXPJOSZ.mjs";
32
32
  import {
33
33
  fingerprintFile,
34
34
  getDisplayRoot,
35
35
  shortFingerprint
36
- } from "./token-goat-chunk-J3TXSEAO.mjs";
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-CFVXTYRC.mjs";
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
+ };
@@ -12,7 +12,7 @@ import {
12
12
  parseOoxmlPart,
13
13
  readOoxmlZip,
14
14
  sortNumberedParts
15
- } from "./token-goat-chunk-YVPIXBSD.mjs";
15
+ } from "./token-goat-chunk-RIB6XY2V.mjs";
16
16
  import {
17
17
  compileGuardedRegex
18
18
  } from "./token-goat-chunk-GMOUBOX4.mjs";
@@ -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-J3TXSEAO.mjs";
5
+ } from "./token-goat-chunk-LRIZ7K3F.mjs";
6
6
  import {
7
7
  VERSION
8
- } from "./token-goat-chunk-CFVXTYRC.mjs";
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-U47EDUXC.mjs";
14
- import "./token-goat-chunk-JFVBQTYP.mjs";
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-YVPIXBSD.mjs";
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-CFVXTYRC.mjs";
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-QVWZVH7Y.mjs";
9
- import "./token-goat-chunk-J3TXSEAO.mjs";
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-CFVXTYRC.mjs";
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-4MAEUQLF.mjs";
7
+ } from "./token-goat-chunk-PAV6NNY7.mjs";
8
8
  import {
9
9
  buildWasteReport
10
- } from "./token-goat-chunk-CLMQ24PD.mjs";
11
- import "./token-goat-chunk-LN6CBNPK.mjs";
12
- import "./token-goat-chunk-FMQP3ERO.mjs";
13
- import "./token-goat-chunk-D4JAVM3Z.mjs";
14
- import "./token-goat-chunk-UIHJZTP4.mjs";
15
- import "./token-goat-chunk-HYD56VIE.mjs";
16
- import "./token-goat-chunk-7ADSYVBK.mjs";
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-J3TXSEAO.mjs";
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-CFVXTYRC.mjs";
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-7ADSYVBK.mjs";
5
+ } from "./token-goat-chunk-7SXPJOSZ.mjs";
6
6
  import {
7
7
  getHarnessName,
8
8
  loadConfig
9
- } from "./token-goat-chunk-J3TXSEAO.mjs";
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-CFVXTYRC.mjs";
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-MGJPPLPE.mjs";
11
- import "./token-goat-chunk-BJRNKGYK.mjs";
12
- import "./token-goat-chunk-D4JAVM3Z.mjs";
13
- import "./token-goat-chunk-UIHJZTP4.mjs";
14
- import "./token-goat-chunk-HYD56VIE.mjs";
15
- import "./token-goat-chunk-7ADSYVBK.mjs";
16
- import "./token-goat-chunk-J3TXSEAO.mjs";
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-CFVXTYRC.mjs";
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-FXK6UNAH.mjs";
10
- import "./token-goat-chunk-YVPIXBSD.mjs";
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-CFVXTYRC.mjs";
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";