token-goat 2.9.28 → 2.9.30

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 (134) hide show
  1. package/README.md +36 -40
  2. package/SECURITY.md +28 -10
  3. package/THIRD_PARTY_NOTICES.md +40 -3
  4. package/dist/native/linux-arm64/tg-hook +0 -0
  5. package/dist/native/linux-x64/tg-hook +0 -0
  6. package/dist/ort-wasm-simd-threaded.mjs +59 -0
  7. package/dist/token-goat-chunk-3CHUNJ2O.mjs +53 -0
  8. package/dist/token-goat-chunk-3Z5S4KGM.mjs +918 -0
  9. package/dist/token-goat-chunk-4FVIAHSI.mjs +211 -0
  10. package/dist/{token-goat-chunk-66LODAUT.mjs → token-goat-chunk-4JJS54TR.mjs} +4 -3
  11. package/dist/token-goat-chunk-4LCCNRTG.mjs +313 -0
  12. package/dist/token-goat-chunk-54K3EUV3.mjs +35 -0
  13. package/dist/token-goat-chunk-56EIMS3E.mjs +159 -0
  14. package/dist/token-goat-chunk-5BCIJXMO.mjs +609 -0
  15. package/dist/token-goat-chunk-5KDMCMF2.mjs +362 -0
  16. package/dist/token-goat-chunk-5RG5SBL6.mjs +221 -0
  17. package/dist/{token-goat-chunk-RRNZMM3A.mjs → token-goat-chunk-5Y6ZYL6U.mjs} +21 -2
  18. package/dist/{token-goat-chunk-NILVK7XM.mjs → token-goat-chunk-64FBPDTK.mjs} +12 -6
  19. package/dist/{token-goat-chunk-LEG3JNJ6.mjs → token-goat-chunk-664RTTUV.mjs} +31 -15
  20. package/dist/token-goat-chunk-67TQJ76B.mjs +57 -0
  21. package/dist/token-goat-chunk-6QMAS7AB.mjs +42 -0
  22. package/dist/token-goat-chunk-7BXSNBY5.mjs +253 -0
  23. package/dist/{token-goat-chunk-F7QZRIWM.mjs → token-goat-chunk-7F2UBPD3.mjs} +42 -35
  24. package/dist/{token-goat-chunk-CC2PYJM7.mjs → token-goat-chunk-7IN2MKDS.mjs} +718 -595
  25. package/dist/token-goat-chunk-7NADEDKJ.mjs +124 -0
  26. package/dist/{token-goat-chunk-6SGLIPQB.mjs → token-goat-chunk-A3CK6N5Z.mjs} +621 -72
  27. package/dist/{token-goat-chunk-HXNAC4ZF.mjs → token-goat-chunk-AFLYLHDH.mjs} +48 -33
  28. package/dist/token-goat-chunk-AM5V6GSX.mjs +367 -0
  29. package/dist/{token-goat-chunk-I7CB3X4K.mjs → token-goat-chunk-APGZXSPS.mjs} +44 -148
  30. package/dist/{token-goat-chunk-BJBRGPBX.mjs → token-goat-chunk-ARDNEC2U.mjs} +11 -7
  31. package/dist/token-goat-chunk-ATCPY7EQ.mjs +134 -0
  32. package/dist/token-goat-chunk-B2RZZCSS.mjs +354 -0
  33. package/dist/{token-goat-chunk-QM76S6YS.mjs → token-goat-chunk-B45VMIIH.mjs} +6 -5
  34. package/dist/token-goat-chunk-BPGCUMR7.mjs +30 -0
  35. package/dist/{token-goat-chunk-GGLEE35R.mjs → token-goat-chunk-C63JQV5K.mjs} +49 -10
  36. package/dist/{token-goat-chunk-RJH64KQH.mjs → token-goat-chunk-COBQGL5S.mjs} +2661 -2440
  37. package/dist/token-goat-chunk-COTXZHTS.mjs +39 -0
  38. package/dist/token-goat-chunk-CYCEYAEO.mjs +265 -0
  39. package/dist/token-goat-chunk-CZ3LUXYZ.mjs +4115 -0
  40. package/dist/token-goat-chunk-DZX2YDPT.mjs +15 -0
  41. package/dist/token-goat-chunk-E3OQX2XT.mjs +824 -0
  42. package/dist/token-goat-chunk-EFHMMIGP.mjs +68 -0
  43. package/dist/token-goat-chunk-ETBHVDB6.mjs +328 -0
  44. package/dist/token-goat-chunk-EVMZJ27Z.mjs +147 -0
  45. package/dist/token-goat-chunk-EXKGNHEG.mjs +2096 -0
  46. package/dist/{token-goat-chunk-6Z5ULNE5.mjs → token-goat-chunk-FBNQNSJK.mjs} +2490 -4957
  47. package/dist/{token-goat-chunk-NMTKNYGF.mjs → token-goat-chunk-FNFBKLRD.mjs} +74 -9
  48. package/dist/{token-goat-chunk-XI2VFAV6.mjs → token-goat-chunk-FZ3NEW5O.mjs} +33 -19
  49. package/dist/token-goat-chunk-G5PJ7AGM.mjs +36 -0
  50. package/dist/{token-goat-chunk-VE27HPIF.mjs → token-goat-chunk-GFBSN7BD.mjs} +30 -398
  51. package/dist/{token-goat-chunk-L45ZQRT7.mjs → token-goat-chunk-GOLEOXZP.mjs} +780 -786
  52. package/dist/token-goat-chunk-H2K3QP6H.mjs +24 -0
  53. package/dist/token-goat-chunk-H2PHHGM5.mjs +188 -0
  54. package/dist/token-goat-chunk-HAVAOB3S.mjs +87 -0
  55. package/dist/token-goat-chunk-HG45AF2B.mjs +2228 -0
  56. package/dist/{token-goat-chunk-CBMY2FGI.mjs → token-goat-chunk-HOJLCGDP.mjs} +17113 -15554
  57. package/dist/{token-goat-chunk-HUDC5GS5.mjs → token-goat-chunk-HYBFA5X3.mjs} +120 -19
  58. package/dist/token-goat-chunk-IVALLT3S.mjs +48 -0
  59. package/dist/token-goat-chunk-IVE6U7KV.mjs +53 -0
  60. package/dist/{token-goat-chunk-UBUKHVYW.mjs → token-goat-chunk-IVKIZWAB.mjs} +3 -3
  61. package/dist/{token-goat-chunk-4JMWPWCS.mjs → token-goat-chunk-JB6QN6VF.mjs} +6 -4
  62. package/dist/{token-goat-chunk-Q4S3UQGO.mjs → token-goat-chunk-JDHE26RP.mjs} +10 -3
  63. package/dist/{token-goat-chunk-7R2XYKC5.mjs → token-goat-chunk-JDU3EXSU.mjs} +14 -10
  64. package/dist/token-goat-chunk-JDWCRD6M.mjs +253 -0
  65. package/dist/{token-goat-chunk-XBESNWEX.mjs → token-goat-chunk-JN4XMLSD.mjs} +7 -4
  66. package/dist/token-goat-chunk-JTQQGXZH.mjs +733 -0
  67. package/dist/token-goat-chunk-KKUFXAPD.mjs +25 -0
  68. package/dist/token-goat-chunk-KQNZDCBD.mjs +47 -0
  69. package/dist/{token-goat-chunk-4RN64ZND.mjs → token-goat-chunk-KWPNJBDH.mjs} +28 -3
  70. package/dist/token-goat-chunk-LOBGHXPB.mjs +242 -0
  71. package/dist/token-goat-chunk-MKPF4CL5.mjs +37 -0
  72. package/dist/token-goat-chunk-MNWKPRAL.mjs +13 -0
  73. package/dist/{token-goat-chunk-YWSP6IU7.mjs → token-goat-chunk-N2NMER56.mjs} +25 -15
  74. package/dist/token-goat-chunk-NYKZLXMK.mjs +218 -0
  75. package/dist/token-goat-chunk-OJBNYTJP.mjs +3087 -0
  76. package/dist/token-goat-chunk-P4QMM4WK.mjs +295 -0
  77. package/dist/token-goat-chunk-PD5VKH46.mjs +184 -0
  78. package/dist/token-goat-chunk-PEPTHRFF.mjs +129 -0
  79. package/dist/{token-goat-chunk-VWZKZPSR.mjs → token-goat-chunk-PU7V3FD6.mjs} +8752 -11098
  80. package/dist/token-goat-chunk-PY533T7F.mjs +46 -0
  81. package/dist/token-goat-chunk-Q5VTGRH7.mjs +761 -0
  82. package/dist/{token-goat-chunk-IHKZ3QNA.mjs → token-goat-chunk-QCLDAQTS.mjs} +33 -19
  83. package/dist/{token-goat-chunk-LKSXAMJB.mjs → token-goat-chunk-QSBRTGM2.mjs} +9 -2
  84. package/dist/{token-goat-chunk-4STDIGYC.mjs → token-goat-chunk-RC35RBUL.mjs} +7 -5
  85. package/dist/{token-goat-chunk-D5ICEPSB.mjs → token-goat-chunk-RHXKCZX3.mjs} +887 -507
  86. package/dist/{token-goat-chunk-RSS3TLXU.mjs → token-goat-chunk-RZRTDST7.mjs} +17 -7
  87. package/dist/{token-goat-chunk-MAMQPC43.mjs → token-goat-chunk-SJHWVNDQ.mjs} +15 -21
  88. package/dist/token-goat-chunk-SMVRN2HU.mjs +188 -0
  89. package/dist/{token-goat-chunk-EL7M26WP.mjs → token-goat-chunk-SQSSNQPE.mjs} +2100 -1442
  90. package/dist/{token-goat-chunk-OZRSREKR.mjs → token-goat-chunk-T4FK7VOV.mjs} +3 -3
  91. package/dist/token-goat-chunk-U4N3BN2W.mjs +92 -0
  92. package/dist/token-goat-chunk-UA5V6P3P.mjs +122 -0
  93. package/dist/{token-goat-chunk-XKY4VKJ4.mjs → token-goat-chunk-UQ5UK2T7.mjs} +15 -4
  94. package/dist/token-goat-chunk-USILZ3T3.mjs +53 -0
  95. package/dist/token-goat-chunk-VES7EL7O.mjs +205 -0
  96. package/dist/{token-goat-chunk-M56BWPBN.mjs → token-goat-chunk-VL3YIFHZ.mjs} +550 -49
  97. package/dist/{token-goat-chunk-IZXKVT4A.mjs → token-goat-chunk-VPBBTSJR.mjs} +362 -128
  98. package/dist/{token-goat-chunk-F2ARFHLJ.mjs → token-goat-chunk-W3QCJS6G.mjs} +10 -2
  99. package/dist/{token-goat-chunk-FSTWAOW6.mjs → token-goat-chunk-WY3L4DVT.mjs} +11 -5
  100. package/dist/{token-goat-chunk-OSUFN2FV.mjs → token-goat-chunk-XB5KKOCG.mjs} +5 -25
  101. package/dist/token-goat-chunk-XKI4SEMX.mjs +66 -0
  102. package/dist/token-goat-chunk-XU4P6Z24.mjs +133 -0
  103. package/dist/{token-goat-chunk-6CCQDAYY.mjs → token-goat-chunk-Y776AENC.mjs} +138 -33
  104. package/dist/token-goat-chunk-YARZFCZS.mjs +359 -0
  105. package/dist/{token-goat-chunk-EEIDFMEM.mjs → token-goat-chunk-YZAAZU2S.mjs} +12 -3
  106. package/dist/{token-goat-chunk-E3K3BTEQ.mjs → token-goat-chunk-Z44YO3QZ.mjs} +12 -6
  107. package/dist/token-goat-chunk-Z57YODA2.mjs +35 -0
  108. package/dist/{token-goat-chunk-DA43OE7L.mjs → token-goat-chunk-ZCDTCVIS.mjs} +49 -30
  109. package/dist/token-goat-chunk-ZEJVMUQH.mjs +48 -0
  110. package/dist/{token-goat-chunk-BGHSSJUA.mjs → token-goat-chunk-ZFOBKUWH.mjs} +1 -1
  111. package/dist/token-goat-chunk-ZMBL6UVV.mjs +110 -0
  112. package/dist/{token-goat-chunk-SJEKA7Y2.mjs → token-goat-chunk-ZQSJMO2R.mjs} +381 -201
  113. package/dist/token-goat-hook-client.cjs +539 -0
  114. package/dist/token-goat-hook-client.mjs +26 -0
  115. package/dist/token-goat-hook.mjs +48 -28
  116. package/dist/token-goat.core.mjs +10 -45
  117. package/docs/C4_RUNTIME_ARCHITECTURE.md +3 -3
  118. package/docs/cli.md +82 -47
  119. package/docs/install.md +58 -23
  120. package/docs/security.md +7 -7
  121. package/package.json +17 -7
  122. package/scripts/verify-native-dist.mjs +386 -0
  123. package/dist/token-goat-chunk-4JJBFT7V.mjs +0 -20
  124. package/dist/token-goat-chunk-5NNYIUGV.mjs +0 -143
  125. package/dist/token-goat-chunk-6DQNNFJ6.mjs +0 -294
  126. package/dist/token-goat-chunk-7MAFDRVR.mjs +0 -47
  127. package/dist/token-goat-chunk-BCN2YQC6.mjs +0 -32
  128. package/dist/token-goat-chunk-D7GHQKQD.mjs +0 -30
  129. package/dist/token-goat-chunk-GMOUBOX4.mjs +0 -386
  130. package/dist/token-goat-chunk-IFORDBGC.mjs +0 -192
  131. package/dist/token-goat-chunk-JXK2HQXS.mjs +0 -318
  132. package/dist/token-goat-chunk-L7SDVGBT.mjs +0 -430
  133. package/dist/token-goat-chunk-MMLMALWK.mjs +0 -1381
  134. package/dist/token-goat-chunk-MVSWBNMD.mjs +0 -1985
@@ -3,32 +3,46 @@ const require = __cjsRequire(import.meta.url);
3
3
  import {
4
4
  MCP_DISABLE_NOTE,
5
5
  buildCopilotWasteReport,
6
+ buildWasteReport,
6
7
  findProjectSession,
7
8
  isCopilotTranscript,
8
9
  unusedMcpServers
9
- } from "./token-goat-chunk-JXK2HQXS.mjs";
10
- import {
11
- buildWasteReport
12
- } from "./token-goat-chunk-6DQNNFJ6.mjs";
13
- import "./token-goat-chunk-MMLMALWK.mjs";
14
- import "./token-goat-chunk-MAMQPC43.mjs";
15
- import "./token-goat-chunk-HXNAC4ZF.mjs";
16
- import "./token-goat-chunk-BJBRGPBX.mjs";
17
- import "./token-goat-chunk-4JMWPWCS.mjs";
18
- import "./token-goat-chunk-4RN64ZND.mjs";
19
- import "./token-goat-chunk-MVSWBNMD.mjs";
20
- import "./token-goat-chunk-HUDC5GS5.mjs";
21
- import "./token-goat-chunk-M56BWPBN.mjs";
10
+ } from "./token-goat-chunk-5BCIJXMO.mjs";
11
+ import "./token-goat-chunk-JTQQGXZH.mjs";
12
+ import "./token-goat-chunk-67TQJ76B.mjs";
13
+ import "./token-goat-chunk-H2PHHGM5.mjs";
14
+ import "./token-goat-chunk-P4QMM4WK.mjs";
15
+ import "./token-goat-chunk-5KDMCMF2.mjs";
16
+ import "./token-goat-chunk-APGZXSPS.mjs";
17
+ import "./token-goat-chunk-COBQGL5S.mjs";
18
+ import "./token-goat-chunk-ATCPY7EQ.mjs";
19
+ import "./token-goat-chunk-VPBBTSJR.mjs";
20
+ import "./token-goat-chunk-SJHWVNDQ.mjs";
21
+ import "./token-goat-chunk-AFLYLHDH.mjs";
22
+ import "./token-goat-chunk-BPGCUMR7.mjs";
23
+ import "./token-goat-chunk-C63JQV5K.mjs";
24
+ import "./token-goat-chunk-JB6QN6VF.mjs";
25
+ import "./token-goat-chunk-EVMZJ27Z.mjs";
26
+ import "./token-goat-chunk-HYBFA5X3.mjs";
27
+ import "./token-goat-chunk-ARDNEC2U.mjs";
28
+ import "./token-goat-chunk-3Z5S4KGM.mjs";
29
+ import "./token-goat-chunk-VL3YIFHZ.mjs";
30
+ import "./token-goat-chunk-XB5KKOCG.mjs";
31
+ import "./token-goat-chunk-4FVIAHSI.mjs";
22
32
  import {
23
33
  resolveProjectRoot
24
- } from "./token-goat-chunk-CC2PYJM7.mjs";
25
- import "./token-goat-chunk-EEIDFMEM.mjs";
26
- import "./token-goat-chunk-OSUFN2FV.mjs";
27
- import "./token-goat-chunk-L45ZQRT7.mjs";
34
+ } from "./token-goat-chunk-7IN2MKDS.mjs";
35
+ import "./token-goat-chunk-U4N3BN2W.mjs";
36
+ import "./token-goat-chunk-YZAAZU2S.mjs";
37
+ import "./token-goat-chunk-IVE6U7KV.mjs";
38
+ import "./token-goat-chunk-GOLEOXZP.mjs";
39
+ import "./token-goat-chunk-AM5V6GSX.mjs";
28
40
  import {
29
41
  displaySafeJson
30
- } from "./token-goat-chunk-NMTKNYGF.mjs";
31
- import "./token-goat-chunk-GMOUBOX4.mjs";
42
+ } from "./token-goat-chunk-FNFBKLRD.mjs";
43
+ import "./token-goat-chunk-VES7EL7O.mjs";
44
+ import "./token-goat-chunk-KWPNJBDH.mjs";
45
+ import "./token-goat-chunk-HAVAOB3S.mjs";
32
46
  import {
33
47
  init_define_import_meta_env
34
48
  } from "./token-goat-chunk-A37V4PBF.mjs";
@@ -1,5 +1,11 @@
1
1
  import { createRequire as __cjsRequire } from 'node:module';
2
2
  const require = __cjsRequire(import.meta.url);
3
+ import {
4
+ redactSecrets
5
+ } from "./token-goat-chunk-4FVIAHSI.mjs";
6
+ import {
7
+ loadConfig
8
+ } from "./token-goat-chunk-7IN2MKDS.mjs";
3
9
  import {
4
10
  createLazyModuleLoader
5
11
  } from "./token-goat-chunk-AH6QILZM.mjs";
@@ -9,7 +15,7 @@ import {
9
15
  } from "./token-goat-chunk-Y4AFKTHK.mjs";
10
16
  import {
11
17
  compileGuardedRegex
12
- } from "./token-goat-chunk-GMOUBOX4.mjs";
18
+ } from "./token-goat-chunk-GOLEOXZP.mjs";
13
19
  import {
14
20
  init_define_import_meta_env
15
21
  } from "./token-goat-chunk-A37V4PBF.mjs";
@@ -302,11 +308,12 @@ async function locatePdfPages(data, pattern, opts) {
302
308
  const start = range ? range.start : 1;
303
309
  const end = range ? range.end : doc.numPages;
304
310
  const matches = [];
311
+ const config = loadConfig();
305
312
  let i = start;
306
313
  for (; i <= end && matches.length < maxMatches; i++) {
307
314
  const page = await getPageWithinDeadline(doc, i, deadline);
308
315
  const textItems = await readPageTextItems(page, MAX_PDF_TEXT_BYTES, deadline);
309
- const pageText = joinTextItems(textItems, " ");
316
+ const pageText = redactSecrets(joinTextItems(textItems, " "), config).text;
310
317
  const m = re.exec(pageText);
311
318
  if (m === null) continue;
312
319
  matches.push({ page: i, snippet: locateSnippet(pageText, m.index, m[0].length, context) });
@@ -5,14 +5,16 @@ import {
5
5
  isSupportedOcrLang,
6
6
  loadConfig,
7
7
  resolveOcrLangs
8
- } from "./token-goat-chunk-CC2PYJM7.mjs";
8
+ } from "./token-goat-chunk-7IN2MKDS.mjs";
9
9
  import {
10
- ensureDirSync,
11
- tokenGoatHome
12
- } from "./token-goat-chunk-L45ZQRT7.mjs";
10
+ ensureDirSync
11
+ } from "./token-goat-chunk-GOLEOXZP.mjs";
13
12
  import {
14
13
  fenceUntrustedOcrText
15
- } from "./token-goat-chunk-NMTKNYGF.mjs";
14
+ } from "./token-goat-chunk-FNFBKLRD.mjs";
15
+ import {
16
+ tokenGoatHome
17
+ } from "./token-goat-chunk-VES7EL7O.mjs";
16
18
  import {
17
19
  init_define_import_meta_env
18
20
  } from "./token-goat-chunk-A37V4PBF.mjs";