token-goat 2.6.36 → 2.8.0

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 (34) hide show
  1. package/README.md +31 -5
  2. package/SECURITY.md +46 -17
  3. package/dist/{token-goat-chunk-UFOVM7ZN.mjs → token-goat-chunk-2F6TFBZE.mjs} +1274 -367
  4. package/dist/token-goat-chunk-324QOJYZ.mjs +91 -0
  5. package/dist/{token-goat-chunk-V465YKOR.mjs → token-goat-chunk-44Y77VHR.mjs} +365 -23
  6. package/dist/{token-goat-chunk-CNDOJ3ZP.mjs → token-goat-chunk-4KZILRZN.mjs} +2 -2
  7. package/dist/token-goat-chunk-5CVKO3DA.mjs +185 -0
  8. package/dist/token-goat-chunk-A62K4XW2.mjs +23 -0
  9. package/dist/{token-goat-chunk-VYMGEVZS.mjs → token-goat-chunk-AO6MFFTW.mjs} +317 -11
  10. package/dist/{token-goat-chunk-65BKISIS.mjs → token-goat-chunk-FBGBTICM.mjs} +4 -4
  11. package/dist/{token-goat-chunk-LN6OUHTV.mjs → token-goat-chunk-J35AKWEQ.mjs} +5 -5
  12. package/dist/{token-goat-hook-chunk-BDR6C6IE.mjs → token-goat-chunk-LVCBDJVE.mjs} +318 -51
  13. package/dist/token-goat-chunk-R4SR7MQY.mjs +486 -0
  14. package/dist/{token-goat-chunk-IYTVE6KN.mjs → token-goat-chunk-SRAR6DOK.mjs} +133 -141
  15. package/dist/{token-goat-chunk-MGOUYAA2.mjs → token-goat-chunk-TUPJRK7R.mjs} +1 -1
  16. package/dist/{token-goat-chunk-KYFJC37X.mjs → token-goat-chunk-VXSYZGBA.mjs} +582 -135
  17. package/dist/{token-goat-chunk-DG53MVNJ.mjs → token-goat-chunk-WN5T5EW5.mjs} +212 -212
  18. package/dist/token-goat-hook.mjs +7 -7
  19. package/dist/token-goat.core.mjs +5 -5
  20. package/package.json +9 -7
  21. package/dist/token-goat-chunk-FRTBMRP7.mjs +0 -10048
  22. package/dist/token-goat-hook-chunk-3QYSN4QV.mjs +0 -14764
  23. package/dist/token-goat-hook-chunk-3ZDBWJDF.mjs +0 -13659
  24. package/dist/token-goat-hook-chunk-5UH54CW6.mjs +0 -912
  25. package/dist/token-goat-hook-chunk-6ODM3MP7.mjs +0 -706
  26. package/dist/token-goat-hook-chunk-A77A26A7.mjs +0 -18184
  27. package/dist/token-goat-hook-chunk-BUOCULAM.mjs +0 -29
  28. package/dist/token-goat-hook-chunk-C6GIABOX.mjs +0 -15971
  29. package/dist/token-goat-hook-chunk-E257IGSN.mjs +0 -153
  30. package/dist/token-goat-hook-chunk-MW5HPEGD.mjs +0 -10411
  31. package/dist/token-goat-hook-chunk-QSCYNJ2B.mjs +0 -23
  32. package/dist/token-goat-hook-chunk-RFRLWOQH.mjs +0 -11
  33. package/dist/token-goat-hook-chunk-XUMIVYEN.mjs +0 -109
  34. package/dist/token-goat-hook-chunk-Y2WHX2P3.mjs +0 -6463
@@ -14520,245 +14520,245 @@ config(en_default());
14520
14520
 
14521
14521
  // node_modules/zod/index.js
14522
14522
  var zod_default = external_exports;
14523
+
14523
14524
  export {
14525
+ NEVER,
14524
14526
  $brand,
14525
- $input,
14527
+ config,
14528
+ clone,
14529
+ util_exports,
14530
+ flattenError,
14531
+ formatError,
14532
+ treeifyError,
14533
+ prettifyError,
14534
+ regexes_exports,
14535
+ locales_exports,
14526
14536
  $output,
14527
- NEVER,
14537
+ $input,
14538
+ registry,
14539
+ globalRegistry,
14528
14540
  TimePrecision,
14529
- ZodAny,
14530
- ZodArray,
14531
- ZodBase64,
14532
- ZodBase64URL,
14533
- ZodBigInt,
14534
- ZodBigIntFormat,
14535
- ZodBoolean,
14536
- ZodCIDRv4,
14537
- ZodCIDRv6,
14538
- ZodCUID,
14539
- ZodCUID2,
14540
- ZodCatch,
14541
- ZodCodec,
14542
- ZodCustom,
14543
- ZodCustomStringFormat,
14544
- ZodDate,
14545
- ZodDefault,
14546
- ZodDiscriminatedUnion,
14547
- ZodE164,
14548
- ZodEmail,
14549
- ZodEmoji,
14550
- ZodEnum,
14551
- ZodError,
14552
- ZodExactOptional,
14553
- ZodFile,
14554
- ZodFirstPartyTypeKind,
14555
- ZodFunction,
14556
- ZodGUID,
14557
- ZodIPv4,
14558
- ZodIPv6,
14559
- ZodISODate,
14541
+ _lt,
14542
+ _lte,
14543
+ _gt,
14544
+ _gte,
14545
+ _positive,
14546
+ _negative,
14547
+ _nonpositive,
14548
+ _nonnegative,
14549
+ _multipleOf,
14550
+ _maxSize,
14551
+ _minSize,
14552
+ _size,
14553
+ _maxLength,
14554
+ _minLength,
14555
+ _length,
14556
+ _regex,
14557
+ _lowercase,
14558
+ _uppercase,
14559
+ _includes,
14560
+ _startsWith,
14561
+ _endsWith,
14562
+ _property,
14563
+ _mime,
14564
+ _overwrite,
14565
+ _normalize,
14566
+ _trim,
14567
+ _toLowerCase,
14568
+ _toUpperCase,
14569
+ _slugify,
14570
+ toJSONSchema,
14571
+ core_exports2 as core_exports,
14560
14572
  ZodISODateTime,
14561
- ZodISODuration,
14573
+ ZodISODate,
14562
14574
  ZodISOTime,
14563
- ZodIntersection,
14564
- ZodIssueCode,
14565
- ZodJWT,
14566
- ZodKSUID,
14567
- ZodLazy,
14568
- ZodLiteral,
14569
- ZodMAC,
14570
- ZodMap,
14571
- ZodNaN,
14572
- ZodNanoID,
14573
- ZodNever,
14574
- ZodNonOptional,
14575
- ZodNull,
14576
- ZodNullable,
14577
- ZodNumber,
14578
- ZodNumberFormat,
14579
- ZodObject,
14580
- ZodOptional,
14581
- ZodPipe,
14582
- ZodPrefault,
14583
- ZodPreprocess,
14584
- ZodPromise,
14585
- ZodReadonly,
14575
+ ZodISODuration,
14576
+ iso_exports,
14577
+ ZodError,
14586
14578
  ZodRealError,
14587
- ZodRecord,
14588
- ZodSet,
14579
+ parse2 as parse,
14580
+ parseAsync2 as parseAsync,
14581
+ safeParse2 as safeParse,
14582
+ safeParseAsync2 as safeParseAsync,
14583
+ encode2 as encode,
14584
+ decode2 as decode,
14585
+ encodeAsync2 as encodeAsync,
14586
+ decodeAsync2 as decodeAsync,
14587
+ safeEncode2 as safeEncode,
14588
+ safeDecode2 as safeDecode,
14589
+ safeEncodeAsync2 as safeEncodeAsync,
14590
+ safeDecodeAsync2 as safeDecodeAsync,
14591
+ ZodType,
14592
+ _ZodString,
14589
14593
  ZodString,
14594
+ string2 as string,
14590
14595
  ZodStringFormat,
14591
- ZodSuccess,
14592
- ZodSymbol,
14593
- ZodTemplateLiteral,
14594
- ZodTransform,
14595
- ZodTuple,
14596
- ZodType,
14597
- ZodULID,
14598
- ZodURL,
14596
+ ZodEmail,
14597
+ email2 as email,
14598
+ ZodGUID,
14599
+ guid2 as guid,
14599
14600
  ZodUUID,
14600
- ZodUndefined,
14601
- ZodUnion,
14602
- ZodUnknown,
14603
- ZodVoid,
14601
+ uuid2 as uuid,
14602
+ uuidv4,
14603
+ uuidv6,
14604
+ uuidv7,
14605
+ ZodURL,
14606
+ url,
14607
+ httpUrl,
14608
+ ZodEmoji,
14609
+ emoji2 as emoji,
14610
+ ZodNanoID,
14611
+ nanoid2 as nanoid,
14612
+ ZodCUID,
14613
+ cuid3 as cuid,
14614
+ ZodCUID2,
14615
+ cuid22 as cuid2,
14616
+ ZodULID,
14617
+ ulid2 as ulid,
14604
14618
  ZodXID,
14605
- ZodXor,
14606
- _ZodString,
14607
- _default2 as _default,
14608
- _function,
14609
- any,
14610
- array,
14611
- base642 as base64,
14612
- base64url2 as base64url,
14613
- bigint2 as bigint,
14614
- boolean2 as boolean,
14615
- _catch2 as catch,
14616
- check,
14619
+ xid2 as xid,
14620
+ ZodKSUID,
14621
+ ksuid2 as ksuid,
14622
+ ZodIPv4,
14623
+ ipv42 as ipv4,
14624
+ ZodMAC,
14625
+ mac2 as mac,
14626
+ ZodIPv6,
14627
+ ipv62 as ipv6,
14628
+ ZodCIDRv4,
14617
14629
  cidrv42 as cidrv4,
14630
+ ZodCIDRv6,
14618
14631
  cidrv62 as cidrv6,
14619
- clone,
14620
- codec,
14621
- coerce_exports as coerce,
14622
- config,
14623
- core_exports2 as core,
14624
- cuid3 as cuid,
14625
- cuid22 as cuid2,
14626
- custom,
14627
- date3 as date,
14628
- decode2 as decode,
14629
- decodeAsync2 as decodeAsync,
14630
- zod_default as default,
14631
- describe2 as describe,
14632
- discriminatedUnion,
14632
+ ZodBase64,
14633
+ base642 as base64,
14634
+ ZodBase64URL,
14635
+ base64url2 as base64url,
14636
+ ZodE164,
14633
14637
  e1642 as e164,
14634
- email2 as email,
14635
- emoji2 as emoji,
14636
- encode2 as encode,
14637
- encodeAsync2 as encodeAsync,
14638
- _endsWith as endsWith,
14639
- _enum2 as enum,
14640
- exactOptional,
14641
- file,
14642
- flattenError,
14643
- float32,
14644
- float64,
14645
- formatError,
14646
- fromJSONSchema,
14647
- _function as function,
14648
- getErrorMap,
14649
- globalRegistry,
14650
- _gt as gt,
14651
- _gte as gte,
14652
- guid2 as guid,
14653
- hash,
14654
- hex2 as hex,
14638
+ ZodJWT,
14639
+ jwt,
14640
+ ZodCustomStringFormat,
14641
+ stringFormat,
14655
14642
  hostname2 as hostname,
14656
- httpUrl,
14657
- _includes as includes,
14658
- _instanceof as instanceof,
14643
+ hex2 as hex,
14644
+ hash,
14645
+ ZodNumber,
14646
+ number2 as number,
14647
+ ZodNumberFormat,
14659
14648
  int,
14649
+ float32,
14650
+ float64,
14660
14651
  int32,
14652
+ uint32,
14653
+ ZodBoolean,
14654
+ boolean2 as boolean,
14655
+ ZodBigInt,
14656
+ bigint2 as bigint,
14657
+ ZodBigIntFormat,
14661
14658
  int64,
14662
- intersection,
14663
- invertCodec,
14664
- ipv42 as ipv4,
14665
- ipv62 as ipv6,
14666
- iso_exports as iso,
14667
- json,
14668
- jwt,
14659
+ uint64,
14660
+ ZodSymbol,
14661
+ symbol,
14662
+ ZodUndefined,
14663
+ _undefined3 as _undefined,
14664
+ ZodNull,
14665
+ _null3 as _null,
14666
+ ZodAny,
14667
+ any,
14668
+ ZodUnknown,
14669
+ unknown,
14670
+ ZodNever,
14671
+ never,
14672
+ ZodVoid,
14673
+ _void2 as _void,
14674
+ ZodDate,
14675
+ date3 as date,
14676
+ ZodArray,
14677
+ array,
14669
14678
  keyof,
14670
- ksuid2 as ksuid,
14671
- lazy,
14672
- _length as length,
14673
- literal,
14674
- locales_exports as locales,
14679
+ ZodObject,
14680
+ object,
14681
+ strictObject,
14675
14682
  looseObject,
14683
+ ZodUnion,
14684
+ union,
14685
+ ZodXor,
14686
+ xor,
14687
+ ZodDiscriminatedUnion,
14688
+ discriminatedUnion,
14689
+ ZodIntersection,
14690
+ intersection,
14691
+ ZodTuple,
14692
+ tuple,
14693
+ ZodRecord,
14694
+ record,
14695
+ partialRecord,
14676
14696
  looseRecord,
14677
- _lowercase as lowercase,
14678
- _lt as lt,
14679
- _lte as lte,
14680
- mac2 as mac,
14697
+ ZodMap,
14681
14698
  map,
14682
- _maxLength as maxLength,
14683
- _maxSize as maxSize,
14684
- meta2 as meta,
14685
- _mime as mime,
14686
- _minLength as minLength,
14687
- _minSize as minSize,
14688
- _multipleOf as multipleOf,
14689
- nan,
14690
- nanoid2 as nanoid,
14699
+ ZodSet,
14700
+ set,
14701
+ ZodEnum,
14702
+ _enum2 as _enum,
14691
14703
  nativeEnum,
14692
- _negative as negative,
14693
- never,
14694
- _nonnegative as nonnegative,
14695
- nonoptional,
14696
- _nonpositive as nonpositive,
14697
- _normalize as normalize,
14698
- _null3 as null,
14704
+ ZodLiteral,
14705
+ literal,
14706
+ ZodFile,
14707
+ file,
14708
+ ZodTransform,
14709
+ transform,
14710
+ ZodOptional,
14711
+ optional,
14712
+ ZodExactOptional,
14713
+ exactOptional,
14714
+ ZodNullable,
14699
14715
  nullable,
14700
14716
  nullish2 as nullish,
14701
- number2 as number,
14702
- object,
14703
- optional,
14704
- _overwrite as overwrite,
14705
- parse2 as parse,
14706
- parseAsync2 as parseAsync,
14707
- partialRecord,
14708
- pipe,
14709
- _positive as positive,
14717
+ ZodDefault,
14718
+ _default2 as _default,
14719
+ ZodPrefault,
14710
14720
  prefault,
14711
- preprocess,
14712
- prettifyError,
14713
- promise,
14714
- _property as property,
14721
+ ZodNonOptional,
14722
+ nonoptional,
14723
+ ZodSuccess,
14724
+ success,
14725
+ ZodCatch,
14726
+ _catch2 as _catch,
14727
+ ZodNaN,
14728
+ nan,
14729
+ ZodPipe,
14730
+ pipe,
14731
+ ZodCodec,
14732
+ codec,
14733
+ invertCodec,
14734
+ ZodPreprocess,
14735
+ ZodReadonly,
14715
14736
  readonly,
14716
- record,
14737
+ ZodTemplateLiteral,
14738
+ templateLiteral,
14739
+ ZodLazy,
14740
+ lazy,
14741
+ ZodPromise,
14742
+ promise,
14743
+ ZodFunction,
14744
+ _function,
14745
+ ZodCustom,
14746
+ check,
14747
+ custom,
14717
14748
  refine,
14718
- _regex as regex,
14719
- regexes_exports as regexes,
14720
- registry,
14721
- safeDecode2 as safeDecode,
14722
- safeDecodeAsync2 as safeDecodeAsync,
14723
- safeEncode2 as safeEncode,
14724
- safeEncodeAsync2 as safeEncodeAsync,
14725
- safeParse2 as safeParse,
14726
- safeParseAsync2 as safeParseAsync,
14727
- set,
14728
- setErrorMap,
14729
- _size as size,
14730
- _slugify as slugify,
14731
- _startsWith as startsWith,
14732
- strictObject,
14733
- string2 as string,
14734
- stringFormat,
14735
- stringbool,
14736
- success,
14737
14749
  superRefine,
14738
- symbol,
14739
- templateLiteral,
14740
- toJSONSchema,
14741
- _toLowerCase as toLowerCase,
14742
- _toUpperCase as toUpperCase,
14743
- transform,
14744
- treeifyError,
14745
- _trim as trim,
14746
- tuple,
14747
- uint32,
14748
- uint64,
14749
- ulid2 as ulid,
14750
- _undefined3 as undefined,
14751
- union,
14752
- unknown,
14753
- _uppercase as uppercase,
14754
- url,
14755
- util_exports as util,
14756
- uuid2 as uuid,
14757
- uuidv4,
14758
- uuidv6,
14759
- uuidv7,
14760
- _void2 as void,
14761
- xid2 as xid,
14762
- xor,
14763
- external_exports as z
14750
+ describe2 as describe,
14751
+ meta2 as meta,
14752
+ _instanceof,
14753
+ stringbool,
14754
+ json,
14755
+ preprocess,
14756
+ ZodIssueCode,
14757
+ setErrorMap,
14758
+ getErrorMap,
14759
+ ZodFirstPartyTypeKind,
14760
+ fromJSONSchema,
14761
+ coerce_exports,
14762
+ external_exports,
14763
+ zod_default
14764
14764
  };
@@ -2,13 +2,13 @@ import { createRequire as __cjsRequire } from 'node:module';
2
2
  const require = __cjsRequire(import.meta.url);
3
3
  import {
4
4
  relayInProcess
5
- } from "./token-goat-hook-chunk-BDR6C6IE.mjs";
6
- import "./token-goat-hook-chunk-3ZDBWJDF.mjs";
7
- import "./token-goat-hook-chunk-5UH54CW6.mjs";
8
- import "./token-goat-hook-chunk-A77A26A7.mjs";
9
- import "./token-goat-hook-chunk-Y2WHX2P3.mjs";
10
- import "./token-goat-hook-chunk-BUOCULAM.mjs";
11
- import "./token-goat-hook-chunk-RFRLWOQH.mjs";
5
+ } from "./token-goat-chunk-LVCBDJVE.mjs";
6
+ import "./token-goat-chunk-AO6MFFTW.mjs";
7
+ import "./token-goat-chunk-2F6TFBZE.mjs";
8
+ import "./token-goat-chunk-TUPJRK7R.mjs";
9
+ import "./token-goat-chunk-44Y77VHR.mjs";
10
+ import "./token-goat-chunk-AO2QD2AG.mjs";
11
+ import "./token-goat-chunk-AEX54RUZ.mjs";
12
12
  export {
13
13
  relayInProcess
14
14
  };
@@ -2,13 +2,13 @@ import { createRequire as __cjsRequire } from 'node:module';
2
2
  const require = __cjsRequire(import.meta.url);
3
3
  import {
4
4
  run
5
- } from "./token-goat-chunk-KYFJC37X.mjs";
6
- import "./token-goat-chunk-IYTVE6KN.mjs";
7
- import "./token-goat-chunk-VYMGEVZS.mjs";
8
- import "./token-goat-chunk-UFOVM7ZN.mjs";
5
+ } from "./token-goat-chunk-VXSYZGBA.mjs";
6
+ import "./token-goat-chunk-SRAR6DOK.mjs";
7
+ import "./token-goat-chunk-AO6MFFTW.mjs";
8
+ import "./token-goat-chunk-2F6TFBZE.mjs";
9
9
  import {
10
10
  installEpipeGuard
11
- } from "./token-goat-chunk-V465YKOR.mjs";
11
+ } from "./token-goat-chunk-44Y77VHR.mjs";
12
12
  import "./token-goat-chunk-AO2QD2AG.mjs";
13
13
  import "./token-goat-chunk-AEX54RUZ.mjs";
14
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "token-goat",
3
- "version": "2.6.36",
3
+ "version": "2.8.0",
4
4
  "description": "Surgical token-reduction companion for Claude Code and other AI coding agents",
5
5
  "type": "module",
6
6
  "main": "./dist/token-goat.mjs",
@@ -56,24 +56,28 @@
56
56
  ],
57
57
  "license": "PolyForm-Noncommercial-1.0.0",
58
58
  "engines": {
59
- "node": ">=22.0.0"
59
+ "node": ">=22.16.0"
60
60
  },
61
61
  "dependencies": {
62
- "better-sqlite3": "^12.11.1",
63
62
  "jsonc-parser": "^3.3.1"
64
63
  },
65
64
  "devDependencies": {
66
65
  "@eslint/js": "^10.0.1",
66
+ "@modelcontextprotocol/sdk": "^1.30.0",
67
67
  "@types/better-sqlite3": "^9.6.0",
68
68
  "@types/node": "^26.2.0",
69
+ "@xenova/transformers": "^2.17.2",
70
+ "better-sqlite3": "^12.11.1",
69
71
  "commander": "^15.0.0",
70
72
  "csv-parse": "^7.0.2",
71
73
  "esbuild": "^0.28.2",
72
74
  "eslint": "^10.8.1",
73
75
  "exceljs": "^4.4.0",
76
+ "fast-xml-parser": "^5.9.3",
74
77
  "html-to-text": "^10.0.1",
75
78
  "js-yaml": "^5.2.1",
76
79
  "lefthook": "^2.1.10",
80
+ "onnxruntime-node": "^1.27.0",
77
81
  "smol-toml": "^1.8.0",
78
82
  "tsx": "^4.23.12",
79
83
  "typescript": "^6.0.3",
@@ -82,9 +86,6 @@
82
86
  "zod": "^4.4.3"
83
87
  },
84
88
  "optionalDependencies": {
85
- "@modelcontextprotocol/sdk": "^1.30.0",
86
- "@xenova/transformers": "^2.17.2",
87
- "fast-xml-parser": "^5.9.3",
88
89
  "fflate": "^0.8.3",
89
90
  "pdfjs-dist": "^6.1.200",
90
91
  "puppeteer-core": "^25.8.0",
@@ -108,6 +109,7 @@
108
109
  "deepmerge-ts": "^8.0.1",
109
110
  "uuid": "^14.0.1",
110
111
  "sharp": "^0.35.3",
111
- "unzipper": "^0.12.5"
112
+ "unzipper": "^0.12.5",
113
+ "adm-zip": "^0.6.0"
112
114
  }
113
115
  }