token-goat 2.9.25 → 2.9.28

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 (57) hide show
  1. package/README.md +28 -88
  2. package/SECURITY.md +14 -0
  3. package/dist/{token-goat-chunk-ORO4GOMA.mjs → token-goat-chunk-4JJBFT7V.mjs} +3 -3
  4. package/dist/token-goat-chunk-4JMWPWCS.mjs +96 -0
  5. package/dist/token-goat-chunk-4RN64ZND.mjs +954 -0
  6. package/dist/{token-goat-chunk-6W2FFT6H.mjs → token-goat-chunk-4STDIGYC.mjs} +2 -2
  7. package/dist/{token-goat-chunk-EZVRN44Y.mjs → token-goat-chunk-5NNYIUGV.mjs} +2 -2
  8. package/dist/{token-goat-chunk-ILROZWXE.mjs → token-goat-chunk-66LODAUT.mjs} +1 -1
  9. package/dist/{token-goat-chunk-VAIJUZG6.mjs → token-goat-chunk-6CCQDAYY.mjs} +69 -566
  10. package/dist/{token-goat-chunk-UGCNTVF4.mjs → token-goat-chunk-6DQNNFJ6.mjs} +5 -3
  11. package/dist/{token-goat-chunk-ZWFP4ZU7.mjs → token-goat-chunk-6SGLIPQB.mjs} +40 -20
  12. package/dist/{token-goat-chunk-TWVFMUTZ.mjs → token-goat-chunk-6Z5ULNE5.mjs} +3570 -3970
  13. package/dist/token-goat-chunk-7MAFDRVR.mjs +47 -0
  14. package/dist/{token-goat-chunk-PPNKB5HP.mjs → token-goat-chunk-7R2XYKC5.mjs} +6 -5
  15. package/dist/{token-goat-chunk-KYV7E6ZJ.mjs → token-goat-chunk-BCN2YQC6.mjs} +10 -8
  16. package/dist/token-goat-chunk-BJBRGPBX.mjs +244 -0
  17. package/dist/{token-goat-chunk-Z5ZTBSHL.mjs → token-goat-chunk-CBMY2FGI.mjs} +479 -544
  18. package/dist/{token-goat-chunk-UTKNLKYE.mjs → token-goat-chunk-CC2PYJM7.mjs} +2 -1
  19. package/dist/{token-goat-chunk-7PQYG6TN.mjs → token-goat-chunk-D5ICEPSB.mjs} +14 -14
  20. package/dist/token-goat-chunk-D7GHQKQD.mjs +30 -0
  21. package/dist/{token-goat-chunk-NNXCBELZ.mjs → token-goat-chunk-EL7M26WP.mjs} +7623 -8455
  22. package/dist/{token-goat-chunk-TVTDINTO.mjs → token-goat-chunk-F7QZRIWM.mjs} +69 -20
  23. package/dist/{token-goat-chunk-MBRX5AP6.mjs → token-goat-chunk-FSTWAOW6.mjs} +3 -3
  24. package/dist/token-goat-chunk-GGLEE35R.mjs +564 -0
  25. package/dist/{token-goat-chunk-YZ67F2HJ.mjs → token-goat-chunk-HUDC5GS5.mjs} +2 -2
  26. package/dist/{token-goat-chunk-BIBZQRC6.mjs → token-goat-chunk-HXNAC4ZF.mjs} +22 -964
  27. package/dist/token-goat-chunk-I7CB3X4K.mjs +1379 -0
  28. package/dist/{token-goat-chunk-KMCVX3P2.mjs → token-goat-chunk-IFORDBGC.mjs} +32 -27
  29. package/dist/{token-goat-chunk-25NRXKIW.mjs → token-goat-chunk-IHKZ3QNA.mjs} +26 -15
  30. package/dist/token-goat-chunk-IZXKVT4A.mjs +711 -0
  31. package/dist/{token-goat-chunk-UEQUZDHQ.mjs → token-goat-chunk-JXK2HQXS.mjs} +22 -8
  32. package/dist/{token-goat-chunk-YE4TGC4Z.mjs → token-goat-chunk-L45ZQRT7.mjs} +1 -1
  33. package/dist/{token-goat-chunk-IEF2NZFZ.mjs → token-goat-chunk-L7SDVGBT.mjs} +196 -14
  34. package/dist/token-goat-chunk-LEG3JNJ6.mjs +139 -0
  35. package/dist/{token-goat-chunk-3FSAZR32.mjs → token-goat-chunk-M56BWPBN.mjs} +1 -1
  36. package/dist/{token-goat-chunk-QZZPWFVF.mjs → token-goat-chunk-MAMQPC43.mjs} +2 -87
  37. package/dist/{token-goat-chunk-OHMKCBZI.mjs → token-goat-chunk-MMLMALWK.mjs} +5 -3
  38. package/dist/{token-goat-chunk-KOL5WXDW.mjs → token-goat-chunk-MVSWBNMD.mjs} +7 -231
  39. package/dist/{token-goat-chunk-J2PRBQ24.mjs → token-goat-chunk-NILVK7XM.mjs} +4 -4
  40. package/dist/{token-goat-chunk-OUQIGPW3.mjs → token-goat-chunk-Q4S3UQGO.mjs} +1 -1
  41. package/dist/{token-goat-chunk-EX2DVKAT.mjs → token-goat-chunk-QM76S6YS.mjs} +3 -3
  42. package/dist/{token-goat-chunk-G7YWBH25.mjs → token-goat-chunk-RJH64KQH.mjs} +86 -72
  43. package/dist/{token-goat-chunk-RLDBVMXR.mjs → token-goat-chunk-RSS3TLXU.mjs} +2 -2
  44. package/dist/{token-goat-chunk-T6652D3F.mjs → token-goat-chunk-SJEKA7Y2.mjs} +21 -16
  45. package/dist/{token-goat-chunk-II5WBDFB.mjs → token-goat-chunk-UBUKHVYW.mjs} +1 -1
  46. package/dist/{token-goat-chunk-2SSDSUSF.mjs → token-goat-chunk-VE27HPIF.mjs} +14 -10
  47. package/dist/{token-goat-chunk-Y463KPAQ.mjs → token-goat-chunk-VWZKZPSR.mjs} +100 -23
  48. package/dist/{token-goat-chunk-K4TNHLGS.mjs → token-goat-chunk-XI2VFAV6.mjs} +6 -6
  49. package/dist/{token-goat-chunk-ZDFDCXU2.mjs → token-goat-chunk-XKY4VKJ4.mjs} +1 -1
  50. package/dist/{token-goat-chunk-BQ6ZDLTF.mjs → token-goat-chunk-YWSP6IU7.mjs} +1 -1
  51. package/dist/token-goat-hook.mjs +23 -17
  52. package/dist/token-goat.core.mjs +32 -27
  53. package/docs/cli.md +32 -21
  54. package/docs/install.md +2 -0
  55. package/package.json +1 -1
  56. package/dist/token-goat-chunk-EDCVQLBR.mjs +0 -26
  57. package/dist/token-goat-chunk-WEYODFTA.mjs +0 -41
@@ -13,7 +13,7 @@ import {
13
13
  foldPath,
14
14
  projectConfigPath,
15
15
  runGit
16
- } from "./token-goat-chunk-YE4TGC4Z.mjs";
16
+ } from "./token-goat-chunk-L45ZQRT7.mjs";
17
17
  import {
18
18
  normalizeDarwinSystemAlias
19
19
  } from "./token-goat-chunk-NMTKNYGF.mjs";
@@ -2580,6 +2580,7 @@ export {
2580
2580
  stringify,
2581
2581
  detectHarness,
2582
2582
  getHarnessName,
2583
+ FALSY_ENV_VALUES,
2583
2584
  envBool,
2584
2585
  envInt,
2585
2586
  envStrList,
@@ -4,7 +4,7 @@ import {
4
4
  pathEqClause,
5
5
  projectScopeClause,
6
6
  querySymbols
7
- } from "./token-goat-chunk-YZ67F2HJ.mjs";
7
+ } from "./token-goat-chunk-HUDC5GS5.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-3FSAZR32.mjs";
25
+ } from "./token-goat-chunk-M56BWPBN.mjs";
26
26
  import {
27
27
  fingerprintContent,
28
28
  loadConfig
29
- } from "./token-goat-chunk-UTKNLKYE.mjs";
29
+ } from "./token-goat-chunk-CC2PYJM7.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-YE4TGC4Z.mjs";
43
+ } from "./token-goat-chunk-L45ZQRT7.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-EX2DVKAT.mjs")).docxText(filePath);
78
+ return await (await import("./token-goat-chunk-QM76S6YS.mjs")).docxText(filePath);
79
79
  case ".pptx":
80
- return await (await import("./token-goat-chunk-MBRX5AP6.mjs")).pptxAllSlidesText(filePath, true);
80
+ return await (await import("./token-goat-chunk-FSTWAOW6.mjs")).pptxAllSlidesText(filePath, true);
81
81
  case ".xlsx":
82
- return await (await import("./token-goat-chunk-J2PRBQ24.mjs")).allSheetsHeadText(filePath, XLSX_SHEET_ROW_CAP);
82
+ return await (await import("./token-goat-chunk-NILVK7XM.mjs")).allSheetsHeadText(filePath, XLSX_SHEET_ROW_CAP);
83
83
  default:
84
84
  return null;
85
85
  }
@@ -1507,7 +1507,7 @@ var LANGUAGE_PARSER_FINGERPRINTS = /* @__PURE__ */ new Map([
1507
1507
  ["perl", "428dedff631b186c"],
1508
1508
  ["php", "0750539f6b26a427"],
1509
1509
  ["pli", "46f375df7d0473a7"],
1510
- ["powershell", "3d28c178cbf8b7c1"],
1510
+ ["powershell", "76318e45df322ae9"],
1511
1511
  ["proto", "124edf63697ed35f"],
1512
1512
  ["r", "88a4246ba6d3280d"],
1513
1513
  ["racket", "b24c7e2ab9ec4b9a"],
@@ -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-ZWFP4ZU7.mjs");
3925
+ adapterSlot[REGEX_ADAPTERS_SLOT] ??= await import("./token-goat-chunk-6SGLIPQB.mjs");
3926
3926
  }
3927
3927
  function regexAdapters() {
3928
3928
  const loaded = adapterSlot[REGEX_ADAPTERS_SLOT];
@@ -4804,6 +4804,11 @@ export {
4804
4804
  isEmbeddableDocument,
4805
4805
  ipynbToVirtualSource,
4806
4806
  eachUnfencedLine,
4807
+ MARKDOWN_SIZE_THRESHOLD,
4808
+ extractMarkdownHeadings,
4809
+ formatHeadingTreeParts,
4810
+ getWellKnownSections,
4811
+ extractChangelogVersionHint,
4807
4812
  isImagePath,
4808
4813
  isNonTextAsset,
4809
4814
  modelFilesPresent,
@@ -4819,11 +4824,6 @@ export {
4819
4824
  embeddingsDepsAvailable,
4820
4825
  deleteFileEmbeddings,
4821
4826
  ensureEmbeddingProvenance,
4822
- MARKDOWN_SIZE_THRESHOLD,
4823
- extractMarkdownHeadings,
4824
- formatHeadingTreeParts,
4825
- getWellKnownSections,
4826
- extractChangelogVersionHint,
4827
4827
  parserFingerprintForLanguage,
4828
4828
  treeSitterCoreAvailable,
4829
4829
  treeSitterCoreLoadError,
@@ -0,0 +1,30 @@
1
+ import { createRequire as __cjsRequire } from 'node:module';
2
+ const require = __cjsRequire(import.meta.url);
3
+ import {
4
+ MAX_RESUME_CHARS,
5
+ MAX_RESUME_TOKENS,
6
+ buildResumePacket
7
+ } from "./token-goat-chunk-XI2VFAV6.mjs";
8
+ import "./token-goat-chunk-L7SDVGBT.mjs";
9
+ import "./token-goat-chunk-6CCQDAYY.mjs";
10
+ import "./token-goat-chunk-GGLEE35R.mjs";
11
+ import "./token-goat-chunk-MAMQPC43.mjs";
12
+ import "./token-goat-chunk-HXNAC4ZF.mjs";
13
+ import "./token-goat-chunk-BJBRGPBX.mjs";
14
+ import "./token-goat-chunk-4JMWPWCS.mjs";
15
+ import "./token-goat-chunk-4RN64ZND.mjs";
16
+ import "./token-goat-chunk-MVSWBNMD.mjs";
17
+ import "./token-goat-chunk-HUDC5GS5.mjs";
18
+ import "./token-goat-chunk-M56BWPBN.mjs";
19
+ import "./token-goat-chunk-CC2PYJM7.mjs";
20
+ import "./token-goat-chunk-EEIDFMEM.mjs";
21
+ import "./token-goat-chunk-OSUFN2FV.mjs";
22
+ import "./token-goat-chunk-L45ZQRT7.mjs";
23
+ import "./token-goat-chunk-NMTKNYGF.mjs";
24
+ import "./token-goat-chunk-GMOUBOX4.mjs";
25
+ import "./token-goat-chunk-A37V4PBF.mjs";
26
+ export {
27
+ MAX_RESUME_CHARS,
28
+ MAX_RESUME_TOKENS,
29
+ buildResumePacket
30
+ };