token-goat 2.6.31 → 2.6.33

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 (36) hide show
  1. package/README.md +21 -2
  2. package/SECURITY.md +67 -3
  3. package/dist/{token-goat-chunk-QL2743EW.mjs → token-goat-chunk-72R7M5H7.mjs} +6 -9
  4. package/dist/{token-goat-chunk-56C3XUQY.mjs → token-goat-chunk-77CX3MCN.mjs} +4 -7
  5. package/dist/token-goat-chunk-AEX54RUZ.mjs +11 -0
  6. package/dist/{token-goat-chunk-VYC34TBW.mjs → token-goat-chunk-AO2QD2AG.mjs} +0 -4
  7. package/dist/{token-goat-hook-chunk-FKZ5RBT4.mjs → token-goat-chunk-DG53MVNJ.mjs} +9 -105
  8. package/dist/{token-goat-chunk-P7I6LS5H.mjs → token-goat-chunk-FN6WLFIX.mjs} +49 -50
  9. package/dist/{token-goat-chunk-DCGBS2YZ.mjs → token-goat-chunk-G6XLWJWI.mjs} +4 -7
  10. package/dist/{token-goat-chunk-J6JTYE2B.mjs → token-goat-chunk-HPWPUBAK.mjs} +7 -7
  11. package/dist/{token-goat-chunk-PWD5XZ6C.mjs → token-goat-chunk-L6FVTDPD.mjs} +278 -204
  12. package/dist/{token-goat-chunk-OIBTYBVR.mjs → token-goat-chunk-OHQ7RBLL.mjs} +23 -24
  13. package/dist/{token-goat-chunk-XEJBPPD7.mjs → token-goat-chunk-RPOXYJWK.mjs} +3781 -3407
  14. package/dist/{token-goat-chunk-N2S7UAVU.mjs → token-goat-chunk-RQQ4SY2P.mjs} +11 -31
  15. package/dist/{token-goat-chunk-HPY7XE77.mjs → token-goat-chunk-TDYTBCT4.mjs} +1052 -1785
  16. package/dist/{token-goat-chunk-X7PIWZMB.mjs → token-goat-chunk-WFRR2DBG.mjs} +1131 -275
  17. package/dist/{token-goat-hook-chunk-3OJELLK5.mjs → token-goat-hook-chunk-26DLRODR.mjs} +4 -7
  18. package/dist/{token-goat-chunk-Q4N6SQWR.mjs → token-goat-hook-chunk-3QYSN4QV.mjs} +9 -105
  19. package/dist/{token-goat-hook-chunk-KNVHTGEX.mjs → token-goat-hook-chunk-BUOCULAM.mjs} +0 -4
  20. package/dist/{token-goat-hook-chunk-NIVRFAJ4.mjs → token-goat-hook-chunk-E6AIPKNF.mjs} +1131 -275
  21. package/dist/{token-goat-hook-chunk-K6HLYRRI.mjs → token-goat-hook-chunk-EKGDLI4D.mjs} +6 -9
  22. package/dist/{token-goat-hook-chunk-JVJUBWKT.mjs → token-goat-hook-chunk-HXHFLKEL.mjs} +11 -31
  23. package/dist/{token-goat-hook-chunk-2K7FV2ME.mjs → token-goat-hook-chunk-QD2DX2U7.mjs} +276 -203
  24. package/dist/token-goat-hook-chunk-RFRLWOQH.mjs +11 -0
  25. package/dist/{token-goat-hook-chunk-SJM4BUZQ.mjs → token-goat-hook-chunk-UWV4MTYI.mjs} +1064 -1795
  26. package/dist/{token-goat-hook-chunk-66W63A4Y.mjs → token-goat-hook-chunk-VDXQXYJK.mjs} +49 -50
  27. package/dist/{token-goat-hook-chunk-YHRJMMEF.mjs → token-goat-hook-chunk-WBBHV6TZ.mjs} +3782 -3408
  28. package/dist/token-goat-hook-chunk-XBOWDNJB.mjs +23 -0
  29. package/dist/{token-goat-hook-chunk-5AQYD2SZ.mjs → token-goat-hook-chunk-XUMIVYEN.mjs} +4 -7
  30. package/dist/{token-goat-hook-chunk-JT5RMRIY.mjs → token-goat-hook-chunk-ZT47M3IA.mjs} +23 -24
  31. package/dist/token-goat-hook.mjs +7 -12
  32. package/dist/token-goat.core.mjs +7 -10
  33. package/package.json +23 -35
  34. package/dist/token-goat-chunk-4WGVGN6W.mjs +0 -54
  35. package/dist/token-goat-hook-chunk-7WC2H3EW.mjs +0 -54
  36. package/dist/token-goat-hook-chunk-ULGSXGZK.mjs +0 -23
@@ -4,13 +4,9 @@ import {
4
4
  loadConfig,
5
5
  redactSecrets,
6
6
  stripAnsiCodes
7
- } from "./token-goat-chunk-X7PIWZMB.mjs";
8
- import {
9
- init_define_import_meta_env
10
- } from "./token-goat-chunk-4WGVGN6W.mjs";
7
+ } from "./token-goat-chunk-WFRR2DBG.mjs";
11
8
 
12
9
  // src/tool_filters/helpers.ts
13
- init_define_import_meta_env();
14
10
  import * as fs from "node:fs";
15
11
  import * as path from "node:path";
16
12
  var DEFAULT_MAX_LINES = 1e3;
@@ -593,7 +589,6 @@ function byteLength(s) {
593
589
  }
594
590
 
595
591
  // src/tool_filters/base.ts
596
- init_define_import_meta_env();
597
592
  var DEFAULT_MIN_NET_SAVINGS_BYTES = 100;
598
593
  function resolveMinNetSavingsBytes() {
599
594
  try {
@@ -622,6 +617,12 @@ var CompressedOutput = class {
622
617
  this.exitCode = exitCode;
623
618
  this.notes = notes;
624
619
  }
620
+ text;
621
+ originalBytes;
622
+ compressedBytes;
623
+ filterName;
624
+ exitCode;
625
+ notes;
625
626
  /** Non-negative byte savings (`original - compressed`, clamped at 0). */
626
627
  get bytesSaved() {
627
628
  return Math.max(0, this.originalBytes - this.compressedBytes);
@@ -822,11 +823,7 @@ ${body}`;
822
823
  }
823
824
  };
824
825
 
825
- // src/tool_filters/dispatch.ts
826
- init_define_import_meta_env();
827
-
828
826
  // src/tool_filters/generic.ts
829
- init_define_import_meta_env();
830
827
  var GenericFilter = class extends ToolFilter {
831
828
  name = "generic";
832
829
  compress(stdout, stderr, _exitCode, _argv) {
@@ -847,7 +844,6 @@ ${errPart}` : errPart;
847
844
  };
848
845
 
849
846
  // src/tool_filters/go_test.ts
850
- init_define_import_meta_env();
851
847
  var TEST_RUN_RE = /^=== (RUN|PAUSE|CONT|NAME)\s/;
852
848
  var RACE_FENCE_RE = /^={10,}\s*$/;
853
849
  var RACE_WARNING_RE = /^WARNING: DATA RACE/;
@@ -1048,11 +1044,7 @@ var GoTestFilter = class extends ToolFilter {
1048
1044
  };
1049
1045
  var goTestFilter = new GoTestFilter();
1050
1046
 
1051
- // src/tool_filters/ai_clis.ts
1052
- init_define_import_meta_env();
1053
-
1054
1047
  // src/tool_filters/families.ts
1055
- init_define_import_meta_env();
1056
1048
  function plural(n, suffix = "s") {
1057
1049
  return n === 1 ? "" : suffix;
1058
1050
  }
@@ -1734,7 +1726,6 @@ var AI_CLI_FILTERS = [
1734
1726
  ];
1735
1727
 
1736
1728
  // src/tool_filters/build.ts
1737
- init_define_import_meta_env();
1738
1729
  var MAKE_RECURSE_RE = /^make\[\d+\]: (?:Entering|Leaving) directory/;
1739
1730
  var MAKE_PERCENT_RE = /^\[\s*\d+%\] (?:Building|Linking|Scanning|Generating|Installing|Compiling)\b/;
1740
1731
  var MAKE_ECHO_RE = /^\s*(?:echo|cc|gcc|clang|g\+\+)\b.*(?<![Ee]rror|[Ww]arning)/;
@@ -3220,7 +3211,6 @@ var BUILD_FILTERS = [
3220
3211
  ];
3221
3212
 
3222
3213
  // src/tool_filters/ci.ts
3223
- init_define_import_meta_env();
3224
3214
  var _GH_RUN_PASS_STEP_RE = /^\s*[✓√]\s/;
3225
3215
  var _GH_RUN_FAIL_STEP_RE = /^\s*[X✗❌]\s|^\s*FAIL(:|ED|URE)\b|^\s*Error:\s/;
3226
3216
  var _GH_API_URL_SUFFIX = "_url";
@@ -4021,7 +4011,6 @@ var CI_FILTERS = [
4021
4011
  ];
4022
4012
 
4023
4013
  // src/tool_filters/cloud.ts
4024
- init_define_import_meta_env();
4025
4014
  var _TF_REFRESH_RE = /^[a-z0-9_.[\]"-]+: (Refreshing state|Reading|Read complete|Still |Modifications complete)/;
4026
4015
  var _TF_PLAN_SUMMARY_RE = /^Plan: \d+ to (add|change|destroy|import)/;
4027
4016
  var _TF_NO_CHANGES_RE = /^No changes\.|^(?:This plan does nothing|Nothing to do\.)/i;
@@ -5441,7 +5430,6 @@ var CLOUD_FILTERS = [
5441
5430
  ];
5442
5431
 
5443
5432
  // src/tool_filters/shell_file.ts
5444
- init_define_import_meta_env();
5445
5433
  var _GREP_COMPRESS_THRESHOLD = 30;
5446
5434
  var _GREP_MAX_FILE_LINES = 20;
5447
5435
  var GrepFilter = class extends ToolFilter {
@@ -6544,7 +6532,6 @@ var SHELL_FILE_FILTERS = [
6544
6532
  ];
6545
6533
 
6546
6534
  // src/tool_filters/languages.ts
6547
- init_define_import_meta_env();
6548
6535
  var NODE_INTERNAL_FRAME_RE = /^\s{4}at\s+(?:node:|.+\s+\(node:)/;
6549
6536
  var NODE_MODULES_FRAME_RE = /^\s{4}at\s+.*[/\\]node_modules[/\\]/;
6550
6537
  var NodeFilter = class extends ToolFilter {
@@ -7769,7 +7756,6 @@ var LANGUAGE_FILTERS = [
7769
7756
  ];
7770
7757
 
7771
7758
  // src/tool_filters/misc.ts
7772
- init_define_import_meta_env();
7773
7759
  var PW_PASS_RE = /^\s+[✓✔]\s/;
7774
7760
  var PW_DOWNLOAD_RE = /^\s*(Downloading|Downloaded|Installing)\s+\w|^\s*[\d.]+\s+[KMG]b\s+\[/i;
7775
7761
  var PlaywrightFilter = class _PlaywrightFilter extends ToolFilter {
@@ -9167,7 +9153,6 @@ var MISC_FILTERS = [
9167
9153
  ];
9168
9154
 
9169
9155
  // src/tool_filters/containers.ts
9170
- init_define_import_meta_env();
9171
9156
  var _DOCKER_DIGEST_RE = /^\s*#\d+\s+(sha256:[a-f0-9]{8,}|resolve\s)/;
9172
9157
  var _DOCKER_PROGRESS_RE = /^\s*#\d+\s+\d+(?:\.\d+)?(?:MB|kB|GB)\s+\//;
9173
9158
  var _DOCKER_STEP_RE = /^\s*=>\s|^\s*#\d+\s+\[(internal|build|stage)/;
@@ -9272,6 +9257,10 @@ var DockerFilter = class extends ToolFilter {
9272
9257
  oldNew.unshift(`[building ${oldStepCount} layers, ${oldCacheCount} cached]`);
9273
9258
  }
9274
9259
  kept = oldNew;
9260
+ void oldDroppedCache;
9261
+ void oldDroppedSha;
9262
+ void oldDroppedImd;
9263
+ void oldDroppedStep;
9275
9264
  }
9276
9265
  const parts = [];
9277
9266
  if (droppedDigest) parts.push(`${droppedDigest} digest`);
@@ -9825,7 +9814,6 @@ var CONTAINER_FILTERS = [
9825
9814
  ];
9826
9815
 
9827
9816
  // src/tool_filters/git.ts
9828
- init_define_import_meta_env();
9829
9817
  var _GIT_VALUE_FLAGS = /* @__PURE__ */ new Set([
9830
9818
  "-m",
9831
9819
  "--message",
@@ -10867,7 +10855,6 @@ var GIT_FILTERS = [
10867
10855
  ];
10868
10856
 
10869
10857
  // src/tool_filters/linters.ts
10870
- init_define_import_meta_env();
10871
10858
  var _ESLINT_LOC_RE = /^\s+\d+:\d+\s+(error|warning|info)\s/;
10872
10859
  var _ESLINT_FILE_RE = /^(?:\/|[A-Za-z]:|[a-zA-Z0-9_./-]+\.(?:js|jsx|ts|tsx|mjs|cjs|vue))/;
10873
10860
  var _ESLINT_SUMMARY_RE = /^[✖✗✘x×]\s+\d+\s+problem/;
@@ -12208,7 +12195,6 @@ var LINTER_FILTERS = [
12208
12195
  ];
12209
12196
 
12210
12197
  // src/tool_filters/package_managers.ts
12211
- init_define_import_meta_env();
12212
12198
  function dedupLines(lines, maxPerKey = 1, keyFn = (l) => l.trim()) {
12213
12199
  const seen = /* @__PURE__ */ new Map();
12214
12200
  const out = [];
@@ -13280,7 +13266,6 @@ var PACKAGE_MANAGER_FILTERS = [
13280
13266
  ];
13281
13267
 
13282
13268
  // src/tool_filters/pytest.ts
13283
- init_define_import_meta_env();
13284
13269
  var XDIST_PREFIX_RE = /^\[gw\d+\]\s*(?:\[\s*\d+%\]\s*)?/;
13285
13270
  var DOTS_RE = /^[.FxXEsS]+\s*(\[\s*\d+%\])?\s*$/;
13286
13271
  var BANNER_RE = /^(?:platform\s|cachedir:\s|rootdir:\s|plugins:\s|configfile:\s|bringing up\s|cacheprovider-)/;
@@ -13467,7 +13452,6 @@ var PytestFilter = class extends ToolFilter {
13467
13452
  var pytestFilter = new PytestFilter();
13468
13453
 
13469
13454
  // src/tool_filters/test_runners.ts
13470
- init_define_import_meta_env();
13471
13455
  var jestFilter = makeNodeTestRunnerFilter({
13472
13456
  name: "jest",
13473
13457
  binaries: ["jest", "mocha", "ava", "tap"],
@@ -13595,11 +13579,7 @@ function filterByName(name) {
13595
13579
  return null;
13596
13580
  }
13597
13581
 
13598
- // src/tool_filters/index.ts
13599
- init_define_import_meta_env();
13600
-
13601
13582
  // src/shell.ts
13602
- init_define_import_meta_env();
13603
13583
  import * as fs2 from "node:fs";
13604
13584
  import * as path2 from "node:path";
13605
13585
  var WSL_LAUNCHER_SEGMENTS = /* @__PURE__ */ new Set(["system32", "syswow64", "windowsapps"]);