@groundtruth-mcp/gt-mcp 5.0.0 → 5.2.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.
- package/dist/config.js +1 -1
- package/dist/constants.js +1 -1
- package/dist/index.js +1 -1
- package/dist/services/cache.js +1 -1
- package/dist/services/circuit-breaker.js +1 -1
- package/dist/services/deep-fetch.js +1 -1
- package/dist/services/fetcher.js +1 -1
- package/dist/services/metrics.js +1 -1
- package/dist/services/resolve.js +1 -1
- package/dist/sources/registry.js +1 -1
- package/dist/tools/audit.js +1 -1
- package/dist/tools/auto-scan.js +1 -1
- package/dist/tools/batch-resolve.js +1 -1
- package/dist/tools/best-practices.js +1 -1
- package/dist/tools/changelog.js +1 -1
- package/dist/tools/compare.js +1 -1
- package/dist/tools/compat.js +1 -1
- package/dist/tools/docs.js +1 -1
- package/dist/tools/examples.js +1 -1
- package/dist/tools/migration.js +1 -1
- package/dist/tools/resolve.js +1 -1
- package/dist/tools/search.js +1 -1
- package/dist/utils/extract.js +1 -1
- package/dist/utils/guard.js +1 -1
- package/dist/utils/html-to-md.js +1 -1
- package/dist/utils/lockfile.js +1 -1
- package/dist/utils/logger.js +1 -1
- package/dist/utils/quality.js +1 -1
- package/dist/utils/sanitize.js +1 -1
- package/dist/utils/version-check.js +1 -1
- package/dist/utils/watermark.js +1 -1
- package/package.json +2 -2
package/dist/utils/watermark.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a31_0xe9ca1c=a31_0x3927;(function(_0x25f765,_0x155009){const _0x1ecce3=a31_0x3927,_0x2a32d0=_0x25f765();while(!![]){try{const _0x3de4b2=-parseInt(_0x1ecce3(0x130,'xpLw'))/0x1*(parseInt(_0x1ecce3(0x144,'%08J'))/0x2)+parseInt(_0x1ecce3(0x13f,'&Mgj'))/0x3+parseInt(_0x1ecce3(0x12c,'2K$Q'))/0x4+-parseInt(_0x1ecce3(0x12a,'rar7'))/0x5*(-parseInt(_0x1ecce3(0x124,'O0Hm'))/0x6)+parseInt(_0x1ecce3(0x12d,'oGc0'))/0x7*(parseInt(_0x1ecce3(0x147,'%bPz'))/0x8)+-parseInt(_0x1ecce3(0x134,'#H%U'))/0x9*(-parseInt(_0x1ecce3(0x11d,'#H%U'))/0xa)+-parseInt(_0x1ecce3(0x14a,'Bgq0'))/0xb;if(_0x3de4b2===_0x155009)break;else _0x2a32d0['push'](_0x2a32d0['shift']());}catch(_0x586ed4){_0x2a32d0['push'](_0x2a32d0['shift']());}}}(a31_0x17d9,0xaea4a));import{randomBytes,createHash}from'crypto';function a31_0x17d9(){const _0x33c5b2=['jmo9urCMW6T+u8kplXxcUmk1W4a','oCo9W7ZcUf5mWRS','FvZcGmk+','uCo4WQldJWLIoXxdH8o7nCobEa','F8ozW5dcIv0','WQpdTq0yzq','wZHrtfuxy8kh','W40RcmkRiq','W7muWROaqmoTWRvS','F8oGW6hcJJdcKqlcJdOYW5ldGt4','W7azWRCWuq','zCkKdxDMWRm0fG','u8o+WOxdGmopEG','gmoIwY0wfqBcImoKtSowsYm','WRRdTG0v','zmk8zCkjuv5roCkV','oLbKW6ldKSkFW6aw','sbrC','F2aU','yNuYW7yBW5a','WPNdUmobW4/cSmkuW4xdTb8ec8o6ka','lNqMW7GMW53cTa','rXVdGq','y2OfW6mDW5ZcN20','ytemoGLNW4eIWPS','WOH4WP4','jW0ObamhW50','W5SqWPHvkYBcO8ogftiAx8ocW7a','umo9WQxdIGPHoWtdKCoJgmoKwq','hMu6afuwtmkfW4C5','x8oxWQChmsahlW','ihrvzLuIW6aIWOFdIXK','W5G9kXz2W5RcP8oVDa','W7ydzg/cHuNdKmkD','ySork212kSkVEW','xZzMA1mFF8ku','fmkJhNPMtNm','dmoIlmoVW4y','tbpdNsNcJSo4','xSk+b3zk','W6GyWP3dOL3dSW','pXJdNmoNW5ZcJYfbWR4X','E8oFca','tmoZWORcLCkoja','DSopW4pdI8oo','gmkjW4naCxPBpSoSlSoLyX0','pb7dNmoRWO/dJubeWO4fW5dcJwa','WRrwmaRdGbJcKmkoW4FdOCogWRKt','xH/dGIK','DqXrWPJdNW','WRnfE0jx','EmoLDYWT','W4r2W63dIqddOmoVWOdcPSkt','FZj+zW','zgK/W7qk','WPtcU8kWe8oecHBcVCovfmkM','WQddUaaODmo0tmoB','fSoGiCoPW5S2WOG'];a31_0x17d9=function(){return _0x33c5b2;};return a31_0x17d9();}import{readFileSync,writeFileSync,existsSync}from'fs';import{join}from'path';import{homedir}from'os';function a31_0x3927(_0x3ef252,_0xce352f){_0x3ef252=_0x3ef252-0x111;const _0x17d983=a31_0x17d9();let _0x392789=_0x17d983[_0x3ef252];if(a31_0x3927['djdIBo']===undefined){var _0x47cb3e=function(_0x534f63){const _0x47ebae='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3c43fd='',_0x5088c7='';for(let _0x3a63c2=0x0,_0x3888e1,_0x1c77f3,_0x1580e4=0x0;_0x1c77f3=_0x534f63['charAt'](_0x1580e4++);~_0x1c77f3&&(_0x3888e1=_0x3a63c2%0x4?_0x3888e1*0x40+_0x1c77f3:_0x1c77f3,_0x3a63c2++%0x4)?_0x3c43fd+=String['fromCharCode'](0xff&_0x3888e1>>(-0x2*_0x3a63c2&0x6)):0x0){_0x1c77f3=_0x47ebae['indexOf'](_0x1c77f3);}for(let _0x4c0c5e=0x0,_0x59a7e0=_0x3c43fd['length'];_0x4c0c5e<_0x59a7e0;_0x4c0c5e++){_0x5088c7+='%'+('00'+_0x3c43fd['charCodeAt'](_0x4c0c5e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5088c7);};const _0x2cb5aa=function(_0x3e2c4b,_0x5d496b){let _0x3f7294=[],_0x2b5d71=0x0,_0xe50196,_0x5c226c='';_0x3e2c4b=_0x47cb3e(_0x3e2c4b);let _0x1e4dcc;for(_0x1e4dcc=0x0;_0x1e4dcc<0x100;_0x1e4dcc++){_0x3f7294[_0x1e4dcc]=_0x1e4dcc;}for(_0x1e4dcc=0x0;_0x1e4dcc<0x100;_0x1e4dcc++){_0x2b5d71=(_0x2b5d71+_0x3f7294[_0x1e4dcc]+_0x5d496b['charCodeAt'](_0x1e4dcc%_0x5d496b['length']))%0x100,_0xe50196=_0x3f7294[_0x1e4dcc],_0x3f7294[_0x1e4dcc]=_0x3f7294[_0x2b5d71],_0x3f7294[_0x2b5d71]=_0xe50196;}_0x1e4dcc=0x0,_0x2b5d71=0x0;for(let _0x12aedc=0x0;_0x12aedc<_0x3e2c4b['length'];_0x12aedc++){_0x1e4dcc=(_0x1e4dcc+0x1)%0x100,_0x2b5d71=(_0x2b5d71+_0x3f7294[_0x1e4dcc])%0x100,_0xe50196=_0x3f7294[_0x1e4dcc],_0x3f7294[_0x1e4dcc]=_0x3f7294[_0x2b5d71],_0x3f7294[_0x2b5d71]=_0xe50196,_0x5c226c+=String['fromCharCode'](_0x3e2c4b['charCodeAt'](_0x12aedc)^_0x3f7294[(_0x3f7294[_0x1e4dcc]+_0x3f7294[_0x2b5d71])%0x100]);}return _0x5c226c;};a31_0x3927['QFiyBG']=_0x2cb5aa,a31_0x3927['VboJnE']={},a31_0x3927['djdIBo']=!![];}const _0x5d8164=_0x17d983[0x0],_0x167459=_0x3ef252+_0x5d8164,_0x2ed797=a31_0x3927['VboJnE'][_0x167459];return!_0x2ed797?(a31_0x3927['PjbWZF']===undefined&&(a31_0x3927['PjbWZF']=!![]),_0x392789=a31_0x3927['QFiyBG'](_0x392789,_0xce352f),a31_0x3927['VboJnE'][_0x167459]=_0x392789):_0x392789=_0x2ed797,_0x392789;}const BIT0='',BIT1='',INSTALL_KEY_FILE=join(homedir(),'.gt-mcp-in'+a31_0xe9ca1c(0x128,'rar7'));let _cachedInstallId;export function getInstallId(){const _0x49fbbf=a31_0xe9ca1c;if(_cachedInstallId!==undefined)return _cachedInstallId;if(existsSync(INSTALL_KEY_FILE)){const _0x3c43fd=readFileSync(INSTALL_KEY_FILE,_0x49fbbf(0x117,'hnpt'))[_0x49fbbf(0x112,'&V2^')]();if(/^[0-9a-f]{8}$/[_0x49fbbf(0x140,'9$DF')](_0x3c43fd))return _cachedInstallId=_0x3c43fd,_0x3c43fd;}const _0x47ebae=randomBytes(0x4)[_0x49fbbf(0x120,'d!mR')](_0x49fbbf(0x129,'V[w)'));try{writeFileSync(INSTALL_KEY_FILE,_0x47ebae+'\x0a',{'mode':0x180});}catch{}return _cachedInstallId=_0x47ebae,_0x47ebae;}function hexToInvisible(_0x5088c7){const _0x35989d=a31_0xe9ca1c,_0x3a63c2=parseInt(_0x5088c7[_0x35989d(0x13c,'J3ok')](0x0,0x4),0x10),_0x3888e1=parseInt(_0x5088c7[_0x35989d(0x146,'q4Gx')](0x4,0x8),0x10),_0x1c77f3=_0x3a63c2[_0x35989d(0x127,'q4Gx')](0x2)[_0x35989d(0x133,'oGc0')](0x10,'0')+_0x3888e1[_0x35989d(0x12e,'[b*!')](0x2)[_0x35989d(0x11b,'Bgq0')](0x10,'0');return _0x1c77f3['split']('')[_0x35989d(0x13a,'Qfe&')](_0x1580e4=>_0x1580e4==='0'?BIT0:BIT1)['join']('');}export function embedWatermark(_0x4c0c5e){const _0x50b141=a31_0xe9ca1c,_0x59a7e0=getInstallId(),_0x3e2c4b=randomBytes(0x4)['toString'](_0x50b141(0x121,'nR1I')),_0x5d496b=hexToInvisible(_0x59a7e0)+hexToInvisible(_0x3e2c4b),_0x3f7294=_0x4c0c5e[_0x50b141(0x149,'TICT')]('\x0a');if(_0x3f7294===-0x1)return _0x4c0c5e+_0x5d496b;return _0x4c0c5e[_0x50b141(0x141,')P@l')](0x0,_0x3f7294+0x1)+_0x5d496b+_0x4c0c5e[_0x50b141(0x11a,'ud#%')](_0x3f7294+0x1);}export function detectWatermark(_0x2b5d71){const _0x10b56c=a31_0xe9ca1c,_0xe50196=[..._0x2b5d71][_0x10b56c(0x136,'9$DF')](_0x4b7fe2=>_0x4b7fe2===BIT0||_0x4b7fe2===BIT1)[_0x10b56c(0x126,'9$DF')](_0x295345=>_0x295345===BIT0?'0':'1')[_0x10b56c(0x145,'rg]!')]('');if(_0xe50196[_0x10b56c(0x13b,'*NWk')]<0x40)return{'found':![],'installId':'','nonce':''};const _0x5c226c=_0xe50196[_0x10b56c(0x115,'R^LS')](0x0,0x20),_0x1e4dcc=_0xe50196[_0x10b56c(0x137,'#H%U')](0x20,0x40),_0x12aedc=parseInt(_0x5c226c[_0x10b56c(0x114,'pfT*')](0x0,0x10),0x2)[_0x10b56c(0x132,'Qfe&')](0x10)[_0x10b56c(0x148,'R^LS')](0x4,'0'),_0x1bf97a=parseInt(_0x5c226c['slice'](0x10,0x20),0x2)[_0x10b56c(0x116,'oGc0')](0x10)[_0x10b56c(0x118,'ud#%')](0x4,'0'),_0x10d2c2=parseInt(_0x1e4dcc[_0x10b56c(0x142,'*OoU')](0x0,0x10),0x2)[_0x10b56c(0x127,'q4Gx')](0x10)['padStart'](0x4,'0'),_0x290f37=parseInt(_0x1e4dcc[_0x10b56c(0x135,'TICT')](0x10,0x20),0x2)['toString'](0x10)[_0x10b56c(0x131,'&Mgj')](0x4,'0');return{'found':!![],'installId':_0x12aedc+_0x1bf97a,'nonce':_0x10d2c2+_0x290f37};}export function responseIntegrityToken(_0x3b9a8b){const _0x26627e=a31_0xe9ca1c,_0x3ca75c=[..._0x3b9a8b][_0x26627e(0x138,'%GDH')](_0x354c29=>_0x354c29!==BIT0&&_0x354c29!==BIT1)[_0x26627e(0x11e,'R^LS')]('');return createHash(_0x26627e(0x11c,'*NWk'))[_0x26627e(0x123,'q4Gx')](_0x3ca75c)['digest'](_0x26627e(0x122,'q4Gx'))[_0x26627e(0x143,'g[VE')](0x0,0x10);}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@groundtruth-mcp/gt-mcp",
|
|
3
3
|
"mcpName": "io.github.rm-rf-prod/groundtruth",
|
|
4
|
-
"version": "5.
|
|
4
|
+
"version": "5.2.0",
|
|
5
5
|
"description": "Self-hosted MCP server for live docs and best practices. Context7 alternative — 422+ curated libraries + npm/PyPI/crates.io/Go fallback, no rate limits, code audit tool.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/index.js",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"devDependencies": {
|
|
78
78
|
"@types/node": "^25.5.0",
|
|
79
79
|
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
80
|
-
"@typescript-eslint/parser": "^8.
|
|
80
|
+
"@typescript-eslint/parser": "^8.57.2",
|
|
81
81
|
"@vitest/coverage-v8": "^4.1.0",
|
|
82
82
|
"eslint": "^10.1.0",
|
|
83
83
|
"javascript-obfuscator": "^5.3.0",
|