trimprompt 1.0.33 → 1.0.34

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/sync.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x282dab=a0_0x1bbd;(function(_0x48217b,_0x1bb86a){const _0x5022af=a0_0x1bbd,_0x19cf83=_0x48217b();while(!![]){try{const _0x1f939a=-parseInt(_0x5022af(0x18a))/0x1+-parseInt(_0x5022af(0x18b))/0x2*(-parseInt(_0x5022af(0x1a8))/0x3)+parseInt(_0x5022af(0x1b4))/0x4*(-parseInt(_0x5022af(0x1da))/0x5)+parseInt(_0x5022af(0x1c4))/0x6*(parseInt(_0x5022af(0x1c2))/0x7)+parseInt(_0x5022af(0x1a9))/0x8*(-parseInt(_0x5022af(0x189))/0x9)+-parseInt(_0x5022af(0x1ba))/0xa*(-parseInt(_0x5022af(0x1a7))/0xb)+parseInt(_0x5022af(0x1be))/0xc;if(_0x1f939a===_0x1bb86a)break;else _0x19cf83['push'](_0x19cf83['shift']());}catch(_0x89cca4){_0x19cf83['push'](_0x19cf83['shift']());}}}(a0_0x5f4c,0xadc52));var __createBinding=this&&this[a0_0x282dab(0x1cf)]||(Object['create']?function(_0x464ca7,_0x255b14,_0x5125f7,_0x1a3d59){const _0x103c5f=a0_0x282dab;if(_0x1a3d59===undefined)_0x1a3d59=_0x5125f7;var _0x10d6d0=Object[_0x103c5f(0x1db)](_0x255b14,_0x5125f7);(!_0x10d6d0||(_0x103c5f(0x1c3)in _0x10d6d0?!_0x255b14[_0x103c5f(0x1d8)]:_0x10d6d0[_0x103c5f(0x1d9)]||_0x10d6d0[_0x103c5f(0x1b1)]))&&(_0x10d6d0={'enumerable':!![],'get':function(){return _0x255b14[_0x5125f7];}}),Object['defineProperty'](_0x464ca7,_0x1a3d59,_0x10d6d0);}:function(_0x4b76c7,_0x44aa77,_0x9ce9c8,_0x50a406){if(_0x50a406===undefined)_0x50a406=_0x9ce9c8;_0x4b76c7[_0x50a406]=_0x44aa77[_0x9ce9c8];}),__setModuleDefault=this&&this[a0_0x282dab(0x183)]||(Object['create']?function(_0x4bd380,_0x11959c){const _0x558925=a0_0x282dab;Object[_0x558925(0x1c7)](_0x4bd380,_0x558925(0x18c),{'enumerable':!![],'value':_0x11959c});}:function(_0x80cab,_0x3b89f7){_0x80cab['default']=_0x3b89f7;}),__importStar=this&&this['__importStar']||(function(){var _0x1053ae=function(_0x223d75){const _0x36f405=a0_0x1bbd;return _0x1053ae=Object[_0x36f405(0x17d)]||function(_0x28ece8){const _0x284d46=_0x36f405;var _0x41cf7f=[];for(var _0xff36a4 in _0x28ece8)if(Object['prototype'][_0x284d46(0x176)][_0x284d46(0x192)](_0x28ece8,_0xff36a4))_0x41cf7f[_0x41cf7f[_0x284d46(0x1a5)]]=_0xff36a4;return _0x41cf7f;},_0x1053ae(_0x223d75);};return function(_0x4b778a){const _0x30aab9=a0_0x1bbd;if(_0x4b778a&&_0x4b778a[_0x30aab9(0x1d8)])return _0x4b778a;var _0x482452={};if(_0x4b778a!=null){for(var _0x31984b=_0x1053ae(_0x4b778a),_0xa10e3=0x0;_0xa10e3<_0x31984b[_0x30aab9(0x1a5)];_0xa10e3++)if(_0x31984b[_0xa10e3]!=='default')__createBinding(_0x482452,_0x4b778a,_0x31984b[_0xa10e3]);}return __setModuleDefault(_0x482452,_0x4b778a),_0x482452;};}());Object['defineProperty'](exports,'__esModule',{'value':!![]});const fs=__importStar(require('fs')),path=__importStar(require(a0_0x282dab(0x19a))),os=__importStar(require('os')),http=__importStar(require('http')),https=__importStar(require(a0_0x282dab(0x1d7))),url_1=require('url'),_cfg=[a0_0x282dab(0x1d5),'trimp-production','.up.railway.app',a0_0x282dab(0x1bf)]['join'](''),_ep=process[a0_0x282dab(0x186)][a0_0x282dab(0x1c9)]||_cfg;function hasSyncedRecently(){const _0x5b10c2=a0_0x282dab;try{if(!fs['existsSync'](dailySyncPath))return![];const _0x4e428e=JSON[_0x5b10c2(0x17e)](fs[_0x5b10c2(0x1d6)](dailySyncPath,_0x5b10c2(0x179)));if(!_0x4e428e['last_sync_time'])return![];return Date[_0x5b10c2(0x185)]()-_0x4e428e[_0x5b10c2(0x1bc)]<0x8*0x3c*0x3c*0x3e8;}catch{return![];}}function markSyncedNow(){const _0x438890=a0_0x282dab;try{const _0x2d2d3b={'last_sync_date':getTodayDate(),'last_sync_time':Date['now']()};fs[_0x438890(0x18e)](dailySyncPath,JSON[_0x438890(0x1d3)](_0x2d2d3b,null,0x2),_0x438890(0x179));}catch{}}const PRICING={'claude-fable-5':{'name':'Claude\x20Fable\x205','input_price_1m':0xa},'claude-mythos-5':{'name':'Claude\x20Mythos\x205','input_price_1m':0xa},'claude-opus-4-8':{'name':a0_0x282dab(0x1c0),'input_price_1m':0x5},'claude-opus-4-7':{'name':'Claude\x20Opus\x204.7','input_price_1m':0x5},'claude-opus-4-5':{'name':a0_0x282dab(0x1cc),'input_price_1m':0x5},'claude-opus-4-1':{'name':a0_0x282dab(0x195),'input_price_1m':0xf},'claude-sonnet-4-6':{'name':a0_0x282dab(0x18f),'input_price_1m':0x3},'claude-sonnet-4-5':{'name':a0_0x282dab(0x17a),'input_price_1m':0x3},'claude-3-5-sonnet':{'name':a0_0x282dab(0x19c),'input_price_1m':0x3},'claude-haiku-4-5':{'name':a0_0x282dab(0x1c6),'input_price_1m':0x1},'claude-haiku-3-5':{'name':a0_0x282dab(0x1ac),'input_price_1m':0.8},'gpt-5-5':{'name':a0_0x282dab(0x1dc),'input_price_1m':0x5},'gpt-5-4':{'name':a0_0x282dab(0x17f),'input_price_1m':2.5},'gpt-4o':{'name':a0_0x282dab(0x178),'input_price_1m':2.5},'gpt-5-4-mini':{'name':a0_0x282dab(0x196),'input_price_1m':0.75},'gpt-5-4-nano':{'name':a0_0x282dab(0x1ad),'input_price_1m':0.2},'gpt-4-1-mini':{'name':a0_0x282dab(0x1c1),'input_price_1m':0.4},'gpt-4-1-nano':{'name':'GPT-4.1\x20Nano','input_price_1m':0.1},'gpt-4o-mini':{'name':a0_0x282dab(0x1a4),'input_price_1m':0.15},'o1':{'name':'OpenAI\x20o1','input_price_1m':0xf},'o1-mini':{'name':a0_0x282dab(0x184),'input_price_1m':0x3},'o3-mini':{'name':a0_0x282dab(0x180),'input_price_1m':1.1},'cursor-small':{'name':'Cursor\x20Small','input_price_1m':0.1},'gemini-3-1-pro':{'name':a0_0x282dab(0x18d),'input_price_1m':0x2},'gemini-3-5-flash':{'name':a0_0x282dab(0x1b5),'input_price_1m':1.5},'gemini-3-1-flash-lite':{'name':'Gemini\x203.1\x20Flash-Lite','input_price_1m':0.45},'gemini-3-5-live-translate':{'name':a0_0x282dab(0x1b8),'input_price_1m':3.5}},baseDir=path[a0_0x282dab(0x182)](os[a0_0x282dab(0x187)](),a0_0x282dab(0x1cb)),configPath=path[a0_0x282dab(0x182)](baseDir,a0_0x282dab(0x1b7)),statsPath=path['join'](baseDir,'stats.json'),dailySyncPath=path[a0_0x282dab(0x182)](baseDir,a0_0x282dab(0x188));function getTodayDate(){const _0x57e931=a0_0x282dab;return new Date()[_0x57e931(0x1a0)]()['split']('T')[0x0];}function a0_0x5f4c(){const _0x4d8b8d=['application/json','https://','readFileSync','https','__esModule','writable','5XFsTQe','getOwnPropertyDescriptor','GPT-5.5','./tracker','from','pathname','hasOwnProperty','end','GPT-4o','utf8','Claude\x20Sonnet\x204.5','synced','total_raw_tokens','getOwnPropertyNames','parse','GPT-5.4','OpenAI\x20o3-mini','protocol','join','__setModuleDefault','OpenAI\x20o1-mini','now','env','homedir','daily_sync.json','983943bCWmxw','1234873RLKMeu','10prSNUo','default','Gemini\x203.1\x20Pro','writeFileSync','Claude\x20Sonnet\x204.6','getTime','error','call','getStatsSummary','statusCode','Claude\x20Opus\x204.1\x20(deprecated)','GPT-5.4\x20Mini','username','auto','https:','path','git\x20config\x20user.email','Claude\x203.5\x20Sonnet','request','existsSync','last_sync_date','toISOString','includes','destroy','total_tokens_saved','GPT-4o\x20Mini','length','model_used','55NJhDHh','839589Quyjjf','40OmKEqw','byteLength','timeout','Claude\x20Haiku\x203.5','GPT-5.4\x20Nano','filter','trim','ignore','configurable','platform','push','2729564fGbkHr','Gemini\x203.5\x20Flash','POST','config.json','Gemini\x203.5\x20Live\x20Translate','toString','1046030OFHxbJ','total_compressed_tokens','last_sync_time','.raw.txt','13492176WIdptr','/api/telemetry','Claude\x20Opus\x204.8','GPT-4.1\x20Mini','902881ICloAO','get','6GJaUhT','logs','Claude\x20Haiku\x204.5','defineProperty','claude-opus-4-8','_PS_EP','unlinkSync','.trimprompt','Claude\x20Opus\x204.5','catch','timestamp','__createBinding','search','.comp.txt','money_saved_usd','stringify'];a0_0x5f4c=function(){return _0x4d8b8d;};return a0_0x5f4c();}function getDeveloperIdentity(){const _0x5a447d=a0_0x282dab;if(process[_0x5a447d(0x186)]['TRIMPROMPT_USER_EMAIL'])return process[_0x5a447d(0x186)]['TRIMPROMPT_USER_EMAIL'];try{const {execSync:_0x36f22a}=require('child_process'),_0xf8e56a=_0x36f22a(_0x5a447d(0x19b),{'stdio':[_0x5a447d(0x1b0),'pipe',_0x5a447d(0x1b0)],'windowsHide':!![]})[_0x5a447d(0x1b9)]()[_0x5a447d(0x1af)]();if(_0xf8e56a&&_0xf8e56a[_0x5a447d(0x1a1)]('@'))return _0xf8e56a;}catch{}try{const _0x8cac1b=os['userInfo']()[_0x5a447d(0x197)];if(_0x8cac1b)return _0x8cac1b;}catch{}return'anonymous';}function hasAlreadySyncedToday(){const _0x29f873=a0_0x282dab;try{if(!fs['existsSync'](dailySyncPath))return![];const _0x3c1070=JSON['parse'](fs[_0x29f873(0x1d6)](dailySyncPath,_0x29f873(0x179)));return _0x3c1070[_0x29f873(0x19f)]===getTodayDate();}catch{return![];}}function markSyncedToday(){const _0x1c3e0e=a0_0x282dab;try{const _0x529a49={'last_sync_date':getTodayDate()};fs[_0x1c3e0e(0x18e)](dailySyncPath,JSON['stringify'](_0x529a49,null,0x2),_0x1c3e0e(0x179));}catch{}}function a0_0x1bbd(_0x29dbab,_0x24a5ca){const _0x5f4cff=a0_0x5f4c();return a0_0x1bbd=function(_0x1bbd42,_0x493152){_0x1bbd42=_0x1bbd42-0x174;let _0x16fcd6=_0x5f4cff[_0x1bbd42];return _0x16fcd6;},a0_0x1bbd(_0x29dbab,_0x24a5ca);}function postTelemetry(_0x1bb4c1,_0x5cde02){return new Promise(_0x341dfd=>{const _0x23c2d5=a0_0x1bbd;try{const _0x1c72b5=new url_1['URL'](_0x1bb4c1),_0x597c54=JSON[_0x23c2d5(0x1d3)](_0x5cde02),_0x238017={'hostname':_0x1c72b5['hostname'],'port':_0x1c72b5['port']||(_0x1c72b5[_0x23c2d5(0x181)]===_0x23c2d5(0x199)?0x1bb:0x50),'path':_0x1c72b5[_0x23c2d5(0x175)]+_0x1c72b5[_0x23c2d5(0x1d0)],'method':_0x23c2d5(0x1b6),'headers':{'Content-Type':_0x23c2d5(0x1d4),'Content-Length':Buffer[_0x23c2d5(0x1aa)](_0x597c54)},'timeout':0x1f40},_0x48a8fc=_0x1c72b5[_0x23c2d5(0x181)]==='https:'?https:http,_0x5bc64c=_0x48a8fc[_0x23c2d5(0x19d)](_0x238017,_0x2e3942=>{const _0x11ab36=_0x23c2d5;_0x341dfd(!!(_0x2e3942['statusCode']&&_0x2e3942[_0x11ab36(0x194)]>=0xc8&&_0x2e3942[_0x11ab36(0x194)]<0x12c));});_0x5bc64c['on'](_0x23c2d5(0x191),()=>_0x341dfd(![])),_0x5bc64c['on'](_0x23c2d5(0x1ab),()=>{const _0x23b3f=_0x23c2d5;_0x5bc64c[_0x23b3f(0x1a2)](),_0x341dfd(![]);}),_0x5bc64c['write'](_0x597c54),_0x5bc64c[_0x23c2d5(0x177)]();}catch{_0x341dfd(![]);}});}function buildDailyPayload(_0x35915b){const _0x3841d4=a0_0x282dab,_0x23e77a=getTodayDate(),{tracker:_0x3d66f4}=require(_0x3841d4(0x1dd)),_0x28f6fe=_0x3d66f4?_0x3d66f4[_0x3841d4(0x193)](_0x3841d4(0x198)):null,_0x24f755=new Set();for(const _0x513941 of _0x35915b){if(_0x513941[_0x3841d4(0x1a6)])_0x24f755['add'](_0x513941[_0x3841d4(0x1a6)]);}if(_0x24f755['size']===0x0)_0x24f755['add'](_0x3841d4(0x1c8));const _0x37c294=_0x35915b[_0x35915b[_0x3841d4(0x1a5)]-0x1];return{'developer_id':getDeveloperIdentity(),'os':os[_0x3841d4(0x1b2)](),'date':_0x23e77a,'executions_count':_0x35915b[_0x3841d4(0x1a5)],'total_raw_tokens':_0x28f6fe?_0x28f6fe[_0x3841d4(0x17c)]:0x0,'total_compressed_tokens':_0x28f6fe?_0x28f6fe[_0x3841d4(0x1bb)]:0x0,'total_tokens_saved':_0x28f6fe?_0x28f6fe[_0x3841d4(0x1a3)]:0x0,'total_money_saved_usd':_0x28f6fe?_0x28f6fe[_0x3841d4(0x1d2)]:0x0,'models_used':Array[_0x3841d4(0x174)](_0x24f755),'hotspots':[],'last_seen':_0x37c294?_0x37c294[_0x3841d4(0x1ce)]:new Date()[_0x3841d4(0x1a0)]()};}async function runSync(){const _0x27f4c9=a0_0x282dab;if(!fs[_0x27f4c9(0x19e)](statsPath))return;let _0x470088;try{_0x470088=JSON[_0x27f4c9(0x17e)](fs[_0x27f4c9(0x1d6)](statsPath,_0x27f4c9(0x179)));}catch{return;}const _0x3fe227=_0x470088[_0x27f4c9(0x1ae)](_0x227972=>!_0x227972[_0x27f4c9(0x17b)]);if(_0x3fe227[_0x27f4c9(0x1a5)]===0x0&&hasSyncedRecently())return;const _0x4140dd=buildDailyPayload(_0x470088);await postTelemetry(_ep,_0x4140dd);let _0x488982=process[_0x27f4c9(0x186)]['TRIMPROMPT_TELEMETRY_URL']||'';if(!_0x488982&&fs[_0x27f4c9(0x19e)](configPath))try{const _0x23dab5=JSON[_0x27f4c9(0x17e)](fs[_0x27f4c9(0x1d6)](configPath,'utf8'));_0x488982=_0x23dab5['telemetry_url']||'';}catch{}_0x488982['trim']()[_0x27f4c9(0x1a5)]>0x0&&await postTelemetry(_0x488982,_0x4140dd);for(const _0xe58666 of _0x470088){if(!_0xe58666[_0x27f4c9(0x17b)])_0xe58666['synced']=!![];}try{fs[_0x27f4c9(0x18e)](statsPath,JSON['stringify'](_0x470088,null,0x2),'utf8');}catch{}markSyncedNow();}function pruneOldLogs(_0x2f2064){const _0x5d481c=a0_0x282dab;try{const _0x3ebfaa=new Date(),_0x38e6b3=new Date(_0x3ebfaa[_0x5d481c(0x190)]()-0xb4*0x18*0x3c*0x3c*0x3e8),_0x83f3ab=[],_0x4b4f9e=[];for(const _0x80d4bc of _0x2f2064){const _0x280a99=new Date(_0x80d4bc[_0x5d481c(0x1ce)]);_0x280a99>=_0x38e6b3?_0x83f3ab['push'](_0x80d4bc):_0x4b4f9e[_0x5d481c(0x1b3)](_0x80d4bc);}if(_0x4b4f9e['length']>0x0){const _0xc214c5=path[_0x5d481c(0x182)](baseDir,_0x5d481c(0x1c5));for(const _0xcf159 of _0x4b4f9e){const _0x1d69b0=path['join'](_0xc214c5,_0xcf159['id']+_0x5d481c(0x1bd)),_0x283e60=path['join'](_0xc214c5,_0xcf159['id']+_0x5d481c(0x1d1));try{if(fs[_0x5d481c(0x19e)](_0x1d69b0))fs[_0x5d481c(0x1ca)](_0x1d69b0);if(fs[_0x5d481c(0x19e)](_0x283e60))fs[_0x5d481c(0x1ca)](_0x283e60);}catch{}}fs[_0x5d481c(0x18e)](statsPath,JSON[_0x5d481c(0x1d3)](_0x83f3ab,null,0x2),_0x5d481c(0x179));}}catch{}}runSync()[a0_0x282dab(0x1cd)](()=>{});
1
+ 'use strict';const a0_0x33ad35=a0_0x1230;(function(_0x33c5e0,_0x270fa7){const _0x12a139=a0_0x1230,_0x1c241e=_0x33c5e0();while(!![]){try{const _0x23c4f0=parseInt(_0x12a139(0x17a))/0x1*(-parseInt(_0x12a139(0x16f))/0x2)+-parseInt(_0x12a139(0x13b))/0x3+parseInt(_0x12a139(0x138))/0x4*(parseInt(_0x12a139(0x15a))/0x5)+parseInt(_0x12a139(0x174))/0x6*(parseInt(_0x12a139(0x169))/0x7)+-parseInt(_0x12a139(0x163))/0x8+parseInt(_0x12a139(0x18e))/0x9*(parseInt(_0x12a139(0x17f))/0xa)+parseInt(_0x12a139(0x18c))/0xb*(parseInt(_0x12a139(0x176))/0xc);if(_0x23c4f0===_0x270fa7)break;else _0x1c241e['push'](_0x1c241e['shift']());}catch(_0x5b08c0){_0x1c241e['push'](_0x1c241e['shift']());}}}(a0_0x6de7,0xe719f));var __createBinding=this&&this[a0_0x33ad35(0x16d)]||(Object[a0_0x33ad35(0x17b)]?function(_0xee95,_0xa116f7,_0x5a92be,_0xe3eb7b){const _0x4a24f2=a0_0x33ad35;if(_0xe3eb7b===undefined)_0xe3eb7b=_0x5a92be;var _0x22d685=Object[_0x4a24f2(0x191)](_0xa116f7,_0x5a92be);(!_0x22d685||(_0x4a24f2(0x13c)in _0x22d685?!_0xa116f7[_0x4a24f2(0x135)]:_0x22d685[_0x4a24f2(0x14f)]||_0x22d685[_0x4a24f2(0x167)]))&&(_0x22d685={'enumerable':!![],'get':function(){return _0xa116f7[_0x5a92be];}}),Object[_0x4a24f2(0x160)](_0xee95,_0xe3eb7b,_0x22d685);}:function(_0x5e1709,_0x361893,_0x4f0a8d,_0x5aaa35){if(_0x5aaa35===undefined)_0x5aaa35=_0x4f0a8d;_0x5e1709[_0x5aaa35]=_0x361893[_0x4f0a8d];}),__setModuleDefault=this&&this[a0_0x33ad35(0x189)]||(Object['create']?function(_0x13c44e,_0x2e08a2){const _0x1f81b9=a0_0x33ad35;Object[_0x1f81b9(0x160)](_0x13c44e,_0x1f81b9(0x198),{'enumerable':!![],'value':_0x2e08a2});}:function(_0x4bc766,_0xd63f9d){_0x4bc766['default']=_0xd63f9d;}),__importStar=this&&this[a0_0x33ad35(0x141)]||(function(){var _0x27d000=function(_0x125c01){return _0x27d000=Object['getOwnPropertyNames']||function(_0xd8096e){const _0x3f2bde=a0_0x1230;var _0x3e810c=[];for(var _0x225233 in _0xd8096e)if(Object['prototype'][_0x3f2bde(0x144)]['call'](_0xd8096e,_0x225233))_0x3e810c[_0x3e810c[_0x3f2bde(0x14b)]]=_0x225233;return _0x3e810c;},_0x27d000(_0x125c01);};return function(_0x8e81f6){const _0x5d77cc=a0_0x1230;if(_0x8e81f6&&_0x8e81f6[_0x5d77cc(0x135)])return _0x8e81f6;var _0x147cca={};if(_0x8e81f6!=null){for(var _0x2646e3=_0x27d000(_0x8e81f6),_0xaaa04e=0x0;_0xaaa04e<_0x2646e3[_0x5d77cc(0x14b)];_0xaaa04e++)if(_0x2646e3[_0xaaa04e]!=='default')__createBinding(_0x147cca,_0x8e81f6,_0x2646e3[_0xaaa04e]);}return __setModuleDefault(_0x147cca,_0x8e81f6),_0x147cca;};}());Object['defineProperty'](exports,a0_0x33ad35(0x135),{'value':!![]});function a0_0x6de7(){const _0x1a9b2c=['__importStar','https://','application/json','hasOwnProperty','trim','ignore','Gemini\x203.5\x20Live\x20Translate','Claude\x203.5\x20Sonnet','timeout','platform','length','git\x20config\x20user.email','includes','Claude\x20Opus\x204.5','writable','protocol','destroy','split','join','toString','.raw.txt','writeFileSync','filter','toISOString','byteLength','5IjVTIB','total_compressed_tokens','size','.up.railway.app','readFileSync','/api/telemetry','defineProperty','stringify','https:','2041744GBjzYA','OpenAI\x20o3-mini','GPT-4o\x20Mini','Gemini\x203.1\x20Flash-Lite','configurable','daily_sync.json','3271303OiBetS','anonymous','getStatsSummary','child_process','__createBinding','now','11642DPDEPE','userInfo','GPT-5.4','Claude\x20Opus\x204.7','homedir','6nQFnBo','synced','12WFUEBx','money_saved_usd','search','Gemini\x203.1\x20Pro','13DzJIgP','create','Gemini\x203.5\x20Flash','model_used','GPT-4.1\x20Nano','216110eXpzYw','total_raw_tokens','Claude\x20Haiku\x204.5','path','GPT-4.1\x20Mini','https','GPT-5.4\x20Nano','Claude\x20Sonnet\x204.5','error','getTime','__setModuleDefault','push','total_tokens_saved','370612jkAMQM','trimp-production','108tUlqks','timestamp','Claude\x20Haiku\x203.5','getOwnPropertyDescriptor','last_sync_time','hostname','request','POST','Claude\x20Opus\x204.8','pipe','default','catch','port','parse','http','utf8','add','__esModule','stats.json','claude-opus-4-8','4832544deXWXY','existsSync','pathname','2073021GKrcOx','get','Claude\x20Fable\x205','OpenAI\x20o1','statusCode','last_sync_date'];a0_0x6de7=function(){return _0x1a9b2c;};return a0_0x6de7();}const fs=__importStar(require('fs')),path=__importStar(require(a0_0x33ad35(0x182))),os=__importStar(require('os')),http=__importStar(require(a0_0x33ad35(0x132))),https=__importStar(require(a0_0x33ad35(0x184))),url_1=require('url'),_cfg=[a0_0x33ad35(0x142),a0_0x33ad35(0x18d),a0_0x33ad35(0x15d),a0_0x33ad35(0x15f)]['join'](''),_ep=process.env._PS_EP||_cfg;function hasSyncedRecently(){const _0x4f9ae4=a0_0x33ad35;try{if(!fs['existsSync'](dailySyncPath))return![];const _0x66ac39=JSON[_0x4f9ae4(0x19b)](fs[_0x4f9ae4(0x15e)](dailySyncPath,_0x4f9ae4(0x133)));if(!_0x66ac39[_0x4f9ae4(0x192)])return![];return Date[_0x4f9ae4(0x16e)]()-_0x66ac39[_0x4f9ae4(0x192)]<0x8*0x3c*0x3c*0x3e8;}catch{return![];}}function markSyncedNow(){const _0x2fc546=a0_0x33ad35;try{const _0x394b1c={'last_sync_date':getTodayDate(),'last_sync_time':Date[_0x2fc546(0x16e)]()};fs[_0x2fc546(0x156)](dailySyncPath,JSON[_0x2fc546(0x161)](_0x394b1c,null,0x2),_0x2fc546(0x133));}catch{}}const PRICING={'claude-fable-5':{'name':a0_0x33ad35(0x13d),'input_price_1m':0xa},'claude-mythos-5':{'name':'Claude\x20Mythos\x205','input_price_1m':0xa},'claude-opus-4-8':{'name':a0_0x33ad35(0x196),'input_price_1m':0x5},'claude-opus-4-7':{'name':a0_0x33ad35(0x172),'input_price_1m':0x5},'claude-opus-4-5':{'name':a0_0x33ad35(0x14e),'input_price_1m':0x5},'claude-opus-4-1':{'name':'Claude\x20Opus\x204.1\x20(deprecated)','input_price_1m':0xf},'claude-sonnet-4-6':{'name':'Claude\x20Sonnet\x204.6','input_price_1m':0x3},'claude-sonnet-4-5':{'name':a0_0x33ad35(0x186),'input_price_1m':0x3},'claude-3-5-sonnet':{'name':a0_0x33ad35(0x148),'input_price_1m':0x3},'claude-haiku-4-5':{'name':a0_0x33ad35(0x181),'input_price_1m':0x1},'claude-haiku-3-5':{'name':a0_0x33ad35(0x190),'input_price_1m':0.8},'gpt-5-5':{'name':'GPT-5.5','input_price_1m':0x5},'gpt-5-4':{'name':a0_0x33ad35(0x171),'input_price_1m':2.5},'gpt-4o':{'name':'GPT-4o','input_price_1m':2.5},'gpt-5-4-mini':{'name':'GPT-5.4\x20Mini','input_price_1m':0.75},'gpt-5-4-nano':{'name':a0_0x33ad35(0x185),'input_price_1m':0.2},'gpt-4-1-mini':{'name':a0_0x33ad35(0x183),'input_price_1m':0.4},'gpt-4-1-nano':{'name':a0_0x33ad35(0x17e),'input_price_1m':0.1},'gpt-4o-mini':{'name':a0_0x33ad35(0x165),'input_price_1m':0.15},'o1':{'name':a0_0x33ad35(0x13e),'input_price_1m':0xf},'o1-mini':{'name':'OpenAI\x20o1-mini','input_price_1m':0x3},'o3-mini':{'name':a0_0x33ad35(0x164),'input_price_1m':1.1},'cursor-small':{'name':'Cursor\x20Small','input_price_1m':0.1},'gemini-3-1-pro':{'name':a0_0x33ad35(0x179),'input_price_1m':0x2},'gemini-3-5-flash':{'name':a0_0x33ad35(0x17c),'input_price_1m':1.5},'gemini-3-1-flash-lite':{'name':a0_0x33ad35(0x166),'input_price_1m':0.45},'gemini-3-5-live-translate':{'name':a0_0x33ad35(0x147),'input_price_1m':3.5}},baseDir=path[a0_0x33ad35(0x153)](os[a0_0x33ad35(0x173)](),'.trimprompt'),configPath=path[a0_0x33ad35(0x153)](baseDir,'config.json'),statsPath=path[a0_0x33ad35(0x153)](baseDir,a0_0x33ad35(0x136)),dailySyncPath=path['join'](baseDir,a0_0x33ad35(0x168));function getTodayDate(){const _0x34be53=a0_0x33ad35;return new Date()[_0x34be53(0x158)]()[_0x34be53(0x152)]('T')[0x0];}function getDeveloperIdentity(){const _0x501fe1=a0_0x33ad35;if(process.env.TRIMPROMPT_USER_EMAIL)return process.env.TRIMPROMPT_USER_EMAIL;try{const {execSync:_0x156113}=require(_0x501fe1(0x16c)),_0x1d4dcc=_0x156113(_0x501fe1(0x14c),{'stdio':[_0x501fe1(0x146),_0x501fe1(0x197),_0x501fe1(0x146)],'windowsHide':!![]})[_0x501fe1(0x154)]()['trim']();if(_0x1d4dcc&&_0x1d4dcc[_0x501fe1(0x14d)]('@'))return _0x1d4dcc;}catch{}try{const _0x5c7699=os[_0x501fe1(0x170)]()['username'];if(_0x5c7699)return _0x5c7699;}catch{}return _0x501fe1(0x16a);}function hasAlreadySyncedToday(){const _0x37ff7f=a0_0x33ad35;try{if(!fs['existsSync'](dailySyncPath))return![];const _0x242355=JSON[_0x37ff7f(0x19b)](fs['readFileSync'](dailySyncPath,'utf8'));return _0x242355[_0x37ff7f(0x140)]===getTodayDate();}catch{return![];}}function markSyncedToday(){const _0x544bf0=a0_0x33ad35;try{const _0x5be170={'last_sync_date':getTodayDate()};fs[_0x544bf0(0x156)](dailySyncPath,JSON[_0x544bf0(0x161)](_0x5be170,null,0x2),_0x544bf0(0x133));}catch{}}function postTelemetry(_0x456323,_0x4cb1be){return new Promise(_0x39ca76=>{const _0x34e606=a0_0x1230;try{const _0x5782ed=new url_1['URL'](_0x456323),_0x392d93=JSON[_0x34e606(0x161)](_0x4cb1be),_0x3c32b9={'hostname':_0x5782ed[_0x34e606(0x193)],'port':_0x5782ed[_0x34e606(0x19a)]||(_0x5782ed[_0x34e606(0x150)]===_0x34e606(0x162)?0x1bb:0x50),'path':_0x5782ed[_0x34e606(0x13a)]+_0x5782ed[_0x34e606(0x178)],'method':_0x34e606(0x195),'headers':{'Content-Type':_0x34e606(0x143),'Content-Length':Buffer[_0x34e606(0x159)](_0x392d93)},'timeout':0x1f40},_0x5a65d4=_0x5782ed['protocol']===_0x34e606(0x162)?https:http,_0x2afdac=_0x5a65d4[_0x34e606(0x194)](_0x3c32b9,_0x330b3d=>{const _0x2b62c9=_0x34e606;_0x39ca76(!!(_0x330b3d[_0x2b62c9(0x13f)]&&_0x330b3d[_0x2b62c9(0x13f)]>=0xc8&&_0x330b3d[_0x2b62c9(0x13f)]<0x12c));});_0x2afdac['on'](_0x34e606(0x187),()=>_0x39ca76(![])),_0x2afdac['on'](_0x34e606(0x149),()=>{const _0x2b8df4=_0x34e606;_0x2afdac[_0x2b8df4(0x151)](),_0x39ca76(![]);}),_0x2afdac['write'](_0x392d93),_0x2afdac['end']();}catch{_0x39ca76(![]);}});}function a0_0x1230(_0x1d39aa,_0x431ced){_0x1d39aa=_0x1d39aa-0x132;const _0x6de702=a0_0x6de7();let _0x12300f=_0x6de702[_0x1d39aa];return _0x12300f;}function buildDailyPayload(_0x25603e){const _0x2ee6c8=a0_0x33ad35,_0x1320cd=getTodayDate(),{tracker:_0x151973}=require('./tracker'),_0x4fabc8=_0x151973?_0x151973[_0x2ee6c8(0x16b)]('auto'):null,_0x97c372=new Set();for(const _0x3f74a5 of _0x25603e){if(_0x3f74a5['model_used'])_0x97c372[_0x2ee6c8(0x134)](_0x3f74a5[_0x2ee6c8(0x17d)]);}if(_0x97c372[_0x2ee6c8(0x15c)]===0x0)_0x97c372[_0x2ee6c8(0x134)](_0x2ee6c8(0x137));const _0xcc09e4=_0x25603e[_0x25603e['length']-0x1];return{'developer_id':getDeveloperIdentity(),'os':os[_0x2ee6c8(0x14a)](),'date':_0x1320cd,'executions_count':_0x25603e['length'],'total_raw_tokens':_0x4fabc8?_0x4fabc8[_0x2ee6c8(0x180)]:0x0,'total_compressed_tokens':_0x4fabc8?_0x4fabc8[_0x2ee6c8(0x15b)]:0x0,'total_tokens_saved':_0x4fabc8?_0x4fabc8[_0x2ee6c8(0x18b)]:0x0,'total_money_saved_usd':_0x4fabc8?_0x4fabc8[_0x2ee6c8(0x177)]:0x0,'models_used':Array['from'](_0x97c372),'hotspots':[],'last_seen':_0xcc09e4?_0xcc09e4[_0x2ee6c8(0x18f)]:new Date()['toISOString']()};}async function runSync(){const _0x16ddc7=a0_0x33ad35;if(!fs[_0x16ddc7(0x139)](statsPath))return;let _0x4e15ce;try{_0x4e15ce=JSON[_0x16ddc7(0x19b)](fs['readFileSync'](statsPath,_0x16ddc7(0x133)));}catch{return;}const _0x395661=_0x4e15ce[_0x16ddc7(0x157)](_0x13048c=>!_0x13048c[_0x16ddc7(0x175)]);if(_0x395661[_0x16ddc7(0x14b)]===0x0&&hasSyncedRecently())return;const _0x316d86=buildDailyPayload(_0x4e15ce);await postTelemetry(_ep,_0x316d86);let _0x16dd16=process.env.TRIMPROMPT_TELEMETRY_URL||'';if(!_0x16dd16&&fs[_0x16ddc7(0x139)](configPath))try{const _0x1f554c=JSON[_0x16ddc7(0x19b)](fs['readFileSync'](configPath,_0x16ddc7(0x133)));_0x16dd16=_0x1f554c['telemetry_url']||'';}catch{}_0x16dd16[_0x16ddc7(0x145)]()[_0x16ddc7(0x14b)]>0x0&&await postTelemetry(_0x16dd16,_0x316d86);for(const _0x5a51fb of _0x4e15ce){if(!_0x5a51fb[_0x16ddc7(0x175)])_0x5a51fb['synced']=!![];}try{fs[_0x16ddc7(0x156)](statsPath,JSON[_0x16ddc7(0x161)](_0x4e15ce,null,0x2),'utf8');}catch{}markSyncedNow();}function pruneOldLogs(_0x5b70dc){const _0x28e945=a0_0x33ad35;try{const _0x4f5dff=new Date(),_0x329573=new Date(_0x4f5dff[_0x28e945(0x188)]()-0xb4*0x18*0x3c*0x3c*0x3e8),_0x47e602=[],_0x24fc74=[];for(const _0x4919c6 of _0x5b70dc){const _0x1c25eb=new Date(_0x4919c6['timestamp']);_0x1c25eb>=_0x329573?_0x47e602[_0x28e945(0x18a)](_0x4919c6):_0x24fc74[_0x28e945(0x18a)](_0x4919c6);}if(_0x24fc74['length']>0x0){const _0xf5da57=path[_0x28e945(0x153)](baseDir,'logs');for(const _0x492ddb of _0x24fc74){const _0x4596b8=path[_0x28e945(0x153)](_0xf5da57,_0x492ddb['id']+_0x28e945(0x155)),_0x5b1c75=path[_0x28e945(0x153)](_0xf5da57,_0x492ddb['id']+'.comp.txt');try{if(fs['existsSync'](_0x4596b8))fs['unlinkSync'](_0x4596b8);if(fs[_0x28e945(0x139)](_0x5b1c75))fs['unlinkSync'](_0x5b1c75);}catch{}}fs[_0x28e945(0x156)](statsPath,JSON[_0x28e945(0x161)](_0x47e602,null,0x2),_0x28e945(0x133));}}catch{}}runSync()[a0_0x33ad35(0x199)](()=>{});
package/tracker.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x4cbb66=a0_0xd34c;(function(_0x3ce1d7,_0x5b5e19){const _0x34acc1=a0_0xd34c,_0x5f0381=_0x3ce1d7();while(!![]){try{const _0x3b29d4=parseInt(_0x34acc1(0x1e4))/0x1*(-parseInt(_0x34acc1(0x1c5))/0x2)+parseInt(_0x34acc1(0x18c))/0x3*(-parseInt(_0x34acc1(0x221))/0x4)+-parseInt(_0x34acc1(0x1ea))/0x5+-parseInt(_0x34acc1(0x1f1))/0x6*(-parseInt(_0x34acc1(0x208))/0x7)+-parseInt(_0x34acc1(0x214))/0x8*(parseInt(_0x34acc1(0x1eb))/0x9)+parseInt(_0x34acc1(0x1c7))/0xa*(parseInt(_0x34acc1(0x1cc))/0xb)+parseInt(_0x34acc1(0x1ff))/0xc;if(_0x3b29d4===_0x5b5e19)break;else _0x5f0381['push'](_0x5f0381['shift']());}catch(_0x5ec14a){_0x5f0381['push'](_0x5f0381['shift']());}}}(a0_0x1ec9,0xaabd7));var __createBinding=this&&this[a0_0x4cbb66(0x20f)]||(Object[a0_0x4cbb66(0x1b9)]?function(_0x200f84,_0xe9e783,_0x35b925,_0x523f9e){const _0x4f4bbd=a0_0x4cbb66;if(_0x523f9e===undefined)_0x523f9e=_0x35b925;var _0xb2f688=Object[_0x4f4bbd(0x1bb)](_0xe9e783,_0x35b925);(!_0xb2f688||('get'in _0xb2f688?!_0xe9e783['__esModule']:_0xb2f688[_0x4f4bbd(0x211)]||_0xb2f688[_0x4f4bbd(0x20b)]))&&(_0xb2f688={'enumerable':!![],'get':function(){return _0xe9e783[_0x35b925];}}),Object[_0x4f4bbd(0x1bc)](_0x200f84,_0x523f9e,_0xb2f688);}:function(_0x14312c,_0x14ea6b,_0x788b6e,_0x3c64f1){if(_0x3c64f1===undefined)_0x3c64f1=_0x788b6e;_0x14312c[_0x3c64f1]=_0x14ea6b[_0x788b6e];}),__setModuleDefault=this&&this[a0_0x4cbb66(0x1c4)]||(Object[a0_0x4cbb66(0x1b9)]?function(_0xe20e45,_0x3ae066){const _0x55775e=a0_0x4cbb66;Object[_0x55775e(0x1bc)](_0xe20e45,_0x55775e(0x21a),{'enumerable':!![],'value':_0x3ae066});}:function(_0x5c1c69,_0x3238ea){const _0xedebc4=a0_0x4cbb66;_0x5c1c69[_0xedebc4(0x21a)]=_0x3238ea;}),__importStar=this&&this[a0_0x4cbb66(0x20d)]||(function(){var _0x38e923=function(_0x5456fb){const _0x4a7a8e=a0_0xd34c;return _0x38e923=Object[_0x4a7a8e(0x1b4)]||function(_0x72cc8b){const _0x3a6fe4=_0x4a7a8e;var _0x4c48dd=[];for(var _0x51616f in _0x72cc8b)if(Object[_0x3a6fe4(0x1b7)][_0x3a6fe4(0x198)][_0x3a6fe4(0x186)](_0x72cc8b,_0x51616f))_0x4c48dd[_0x4c48dd[_0x3a6fe4(0x19d)]]=_0x51616f;return _0x4c48dd;},_0x38e923(_0x5456fb);};return function(_0x1379ce){const _0x334749=a0_0xd34c;if(_0x1379ce&&_0x1379ce[_0x334749(0x1a8)])return _0x1379ce;var _0x2b1c01={};if(_0x1379ce!=null){for(var _0x452fd4=_0x38e923(_0x1379ce),_0x1908b9=0x0;_0x1908b9<_0x452fd4[_0x334749(0x19d)];_0x1908b9++)if(_0x452fd4[_0x1908b9]!==_0x334749(0x21a))__createBinding(_0x2b1c01,_0x1379ce,_0x452fd4[_0x1908b9]);}return __setModuleDefault(_0x2b1c01,_0x1379ce),_0x2b1c01;};}());Object[a0_0x4cbb66(0x1bc)](exports,a0_0x4cbb66(0x1a8),{'value':!![]}),exports[a0_0x4cbb66(0x197)]=exports['Tracker']=exports['PRICING']=void 0x0,exports['detectSessionTool']=detectSessionTool;function a0_0xd34c(_0x583f98,_0x36e8b6){const _0x1ec96f=a0_0x1ec9();return a0_0xd34c=function(_0xd34c73,_0x300cb0){_0xd34c73=_0xd34c73-0x185;let _0x496779=_0x1ec96f[_0xd34c73];return _0x496779;},a0_0xd34c(_0x583f98,_0x36e8b6);}const fs=__importStar(require('fs')),path=__importStar(require(a0_0x4cbb66(0x1d3))),os=__importStar(require('os')),child_process_1=require('child_process');exports['PRICING']={'claude-fable-5':{'name':a0_0x4cbb66(0x1f7),'input_price_1m':0xa},'claude-mythos-5':{'name':a0_0x4cbb66(0x18f),'input_price_1m':0xa},'claude-opus-4-8':{'name':'Claude\x20Opus\x204.8','input_price_1m':0x5},'claude-opus-4-7':{'name':'Claude\x20Opus\x204.7','input_price_1m':0x5},'claude-opus-4-5':{'name':'Claude\x20Opus\x204.5','input_price_1m':0x5},'claude-opus-4-1':{'name':a0_0x4cbb66(0x1df),'input_price_1m':0xf},'claude-sonnet-4-6':{'name':'Claude\x20Sonnet\x204.6','input_price_1m':0x3},'claude-sonnet-4-5':{'name':'Claude\x20Sonnet\x204.5','input_price_1m':0x3},'claude-3-5-sonnet':{'name':'Claude\x203.5\x20Sonnet','input_price_1m':0x3},'claude-haiku-4-5':{'name':a0_0x4cbb66(0x213),'input_price_1m':0x1},'claude-haiku-3-5':{'name':'Claude\x20Haiku\x203.5','input_price_1m':0.8},'gpt-5-5':{'name':a0_0x4cbb66(0x1dd),'input_price_1m':0x5},'gpt-5-4':{'name':a0_0x4cbb66(0x1da),'input_price_1m':2.5},'gpt-4o':{'name':'GPT-4o','input_price_1m':2.5},'gpt-5-4-mini':{'name':a0_0x4cbb66(0x1d2),'input_price_1m':0.75},'gpt-5-4-nano':{'name':a0_0x4cbb66(0x1ce),'input_price_1m':0.2},'gpt-4-1-mini':{'name':'GPT-4.1\x20Mini','input_price_1m':0.4},'gpt-4-1-nano':{'name':a0_0x4cbb66(0x19f),'input_price_1m':0.1},'gpt-4o-mini':{'name':'GPT-4o\x20Mini','input_price_1m':0.15},'o1':{'name':'OpenAI\x20o1','input_price_1m':0xf},'o1-mini':{'name':a0_0x4cbb66(0x204),'input_price_1m':0x3},'o3-mini':{'name':a0_0x4cbb66(0x19c),'input_price_1m':1.1},'cursor-small':{'name':'Cursor\x20Small','input_price_1m':0.1},'gemini-3-1-pro':{'name':a0_0x4cbb66(0x1c6),'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_0x4cbb66(0x217),'input_price_1m':0.45},'gemini-3-5-live-translate':{'name':a0_0x4cbb66(0x194),'input_price_1m':3.5}};function a0_0x1ec9(){const _0x1c6356=['config','timestamp','estimated_raw_tokens','OpenAI\x20o1-mini','.raw.txt','substring','tool','1042146pYKdFi','configPath','COPILOT_MODEL','configurable','telemetry_url','__importStar','secretsFound','__createBinding','continue','writable','renameSync','Claude\x20Haiku\x204.5','3468152qirMEm','includes','stats.json','Gemini\x203.1\x20Flash-Lite','replit','model','default','tokens_saved','claude','join','ignore','saveConfig','claude_code','8FpZZEP','getDevIdentity','call','username','statsPath','cline','child_process','triggerBackgroundSync','1761429KCJmdI','toFixed','copilot','Claude\x20Mythos\x205','.tmp','replace','utf8','o3mini','Gemini\x203.5\x20Live\x20Translate','opus','.comp.txt','tracker','hasOwnProperty','claude-code','gemini-3-5-flash','const\x20h=require(require(\x27url\x27).parse(','OpenAI\x20o3-mini','length','execPath','GPT-4.1\x20Nano','secretTypes','sonnet','REPL_ID','AIDER_MODEL','env','ceil','GEMINI_CLI','gemini','__esModule','/api/security/alert','ANTIGRAVITY_AGENT','CLINE_DATA_DIR','unknown','cachedDevId','logs','pop','toLowerCase','windsurf','Tracker','baseDir','getOwnPropertyNames','TRIMPROMPT_TELEMETRY_URL','setConfig','prototype','getLogs','create','sendSecurityAlert','getOwnPropertyDescriptor','defineProperty','claude-opus-4-8','unref','gemini-3-1-pro','claude-sonnet-4-6','aider','codex','antigravity','__setModuleDefault','124MHBnko','Gemini\x203.1\x20Pro','5030ecbndp','CLAUDE_EFFORT','PRICING','REPLIT_ENVIRONMENT','input_price_1m','29051AyNjld','init','GPT-5.4\x20Nano','spawn','writeFileSync','random','GPT-5.4\x20Mini','path','auto','devin','sync.js','stringify','git\x20config\x20user.email','estimated_compressed_tokens','GPT-5.4','saveLogs','model_used','GPT-5.5','modelShort','Claude\x20Opus\x204.1\x20(deprecated)','existsSync','getConfig','split','TRIMPROMPT_MODEL','3439CTlHhZ','trim','VSCODE_PID','1.0','high','default_model','3119910qyemdH','27NccSlh','toString','command','userInfo','cursor','platform','54NOWdvD','claude-sonnet-4-5','logsDir','isArray','./redactor','COPILOT_GITHUB_TOKEN','Claude\x20Fable\x205','max','claude-3-5-sonnet','CONTINUE_GLOBAL_DIR','flash','logExecution','parse','pipe','16116828OiMArI','AI_AGENT'];a0_0x1ec9=function(){return _0x1c6356;};return a0_0x1ec9();}function detectSessionTool(){const _0x243d1c=a0_0x4cbb66,_0x5c6d24=process[_0x243d1c(0x1a4)],_0x1ea18d={'tool':'','model':'claude-sonnet-4-6','modelShort':''};if(_0x5c6d24['TRIMPROMPT_MODEL']&&exports['PRICING'][_0x5c6d24[_0x243d1c(0x1e3)]])return{'tool':'','model':_0x5c6d24[_0x243d1c(0x1e3)],'modelShort':''};const _0x14e2ce=(_0x5c6d24[_0x243d1c(0x200)]||'')[_0x243d1c(0x1b0)]();if(_0x14e2ce){if(_0x14e2ce[_0x243d1c(0x215)](_0x243d1c(0x199))||_0x14e2ce[_0x243d1c(0x215)](_0x243d1c(0x220))){const _0x59537a=_0x5c6d24['CLAUDE_EFFORT']==='high'?_0x243d1c(0x195):'sonnet',_0x650728=_0x5c6d24['CLAUDE_EFFORT']==='high'?_0x243d1c(0x1bd):'claude-sonnet-4-6';return{'tool':_0x243d1c(0x21c),'model':_0x650728,'modelShort':_0x59537a};}if(_0x14e2ce[_0x243d1c(0x215)](_0x243d1c(0x1ef)))return{'tool':_0x243d1c(0x1ef),'model':_0x243d1c(0x1c0),'modelShort':_0x243d1c(0x1a1)};if(_0x14e2ce[_0x243d1c(0x215)]('github-copilot')||_0x14e2ce['includes'](_0x243d1c(0x18e))){const _0x2b542a=_0x5c6d24[_0x243d1c(0x20a)]||'';if(_0x2b542a&&exports[_0x243d1c(0x1c9)][_0x2b542a])return{'tool':_0x243d1c(0x18e),'model':_0x2b542a,'modelShort':_0x2b542a['split']('-')[_0x243d1c(0x1af)]()||''};return{'tool':_0x243d1c(0x18e),'model':_0x243d1c(0x1f2),'modelShort':'sonnet'};}if(_0x14e2ce[_0x243d1c(0x215)](_0x243d1c(0x1a7)))return{'tool':_0x243d1c(0x1a7),'model':_0x243d1c(0x19a),'modelShort':_0x243d1c(0x1fb)};if(_0x14e2ce[_0x243d1c(0x215)](_0x243d1c(0x1c2)))return{'tool':_0x243d1c(0x1c2),'model':'o3-mini','modelShort':_0x243d1c(0x193)};if(_0x14e2ce[_0x243d1c(0x215)]('devin'))return{'tool':_0x243d1c(0x1d5),'model':_0x243d1c(0x1c0),'modelShort':''};if(_0x14e2ce[_0x243d1c(0x215)]('antigravity'))return{'tool':_0x243d1c(0x1c3),'model':_0x243d1c(0x1bf),'modelShort':_0x243d1c(0x1a7)};if(_0x14e2ce['includes'](_0x243d1c(0x218))||_0x5c6d24['REPL_ID'])return{'tool':_0x243d1c(0x218),'model':_0x243d1c(0x1c0),'modelShort':''};return{'tool':_0x14e2ce[_0x243d1c(0x1e2)]('_')[0x0][_0x243d1c(0x1e2)]('-')[0x0],'model':_0x243d1c(0x1c0),'modelShort':''};}if(_0x5c6d24['CLAUDECODE']==='1'||_0x5c6d24['CLAUDE_CODE']==='1'){const _0x463bde=_0x5c6d24[_0x243d1c(0x1c8)]===_0x243d1c(0x1e8)?_0x243d1c(0x195):_0x243d1c(0x1a1),_0x2ae5ba=_0x5c6d24[_0x243d1c(0x1c8)]===_0x243d1c(0x1e8)?_0x243d1c(0x1bd):_0x243d1c(0x1c0);return{'tool':'claude','model':_0x2ae5ba,'modelShort':_0x463bde};}if(_0x5c6d24['CURSOR_AGENT']==='1')return{'tool':_0x243d1c(0x1ef),'model':_0x243d1c(0x1c0),'modelShort':_0x243d1c(0x1a1)};if(_0x5c6d24[_0x243d1c(0x1a6)]==='1')return{'tool':_0x243d1c(0x1a7),'model':_0x243d1c(0x19a),'modelShort':_0x243d1c(0x1fb)};if(_0x5c6d24[_0x243d1c(0x20a)]||_0x5c6d24[_0x243d1c(0x1f6)]){const _0x503877=_0x5c6d24['COPILOT_MODEL']||'';if(_0x503877&&exports['PRICING'][_0x503877])return{'tool':_0x243d1c(0x18e),'model':_0x503877,'modelShort':_0x503877[_0x243d1c(0x1e2)]('-')[_0x243d1c(0x1af)]()||''};return{'tool':_0x243d1c(0x18e),'model':_0x243d1c(0x1f2),'modelShort':_0x243d1c(0x1a1)};}if(_0x5c6d24[_0x243d1c(0x1a2)]||_0x5c6d24[_0x243d1c(0x1ca)])return{'tool':'replit','model':_0x243d1c(0x1c0),'modelShort':''};if(_0x5c6d24[_0x243d1c(0x1ab)])return{'tool':_0x243d1c(0x189),'model':'claude-sonnet-4-6','modelShort':''};if(_0x5c6d24[_0x243d1c(0x1fa)])return{'tool':_0x243d1c(0x210),'model':_0x243d1c(0x1c0),'modelShort':''};if(_0x5c6d24[_0x243d1c(0x1aa)]==='1')return{'tool':_0x243d1c(0x1c3),'model':'gemini-3-1-pro','modelShort':_0x243d1c(0x1a7)};if(_0x5c6d24[_0x243d1c(0x1c8)]){const _0x14d359=_0x5c6d24[_0x243d1c(0x1c8)]===_0x243d1c(0x1e8)?'opus':_0x243d1c(0x1a1),_0x51339b=_0x5c6d24[_0x243d1c(0x1c8)]===_0x243d1c(0x1e8)?_0x243d1c(0x1bd):'claude-sonnet-4-6';return{'tool':'','model':_0x51339b,'modelShort':''};}if(_0x5c6d24[_0x243d1c(0x1a3)]&&exports['PRICING'][_0x5c6d24[_0x243d1c(0x1a3)]])return{'tool':_0x243d1c(0x1c1),'model':_0x5c6d24[_0x243d1c(0x1a3)],'modelShort':''};if(_0x5c6d24[_0x243d1c(0x1e6)]){const _0x2944ed=(_0x5c6d24['PATH']||'')[_0x243d1c(0x1b0)]();if(_0x2944ed[_0x243d1c(0x215)](_0x243d1c(0x1ef)))return{'tool':_0x243d1c(0x1ef),'model':_0x243d1c(0x1c0),'modelShort':_0x243d1c(0x1a1)};if(_0x2944ed[_0x243d1c(0x215)]('windsurf'))return{'tool':_0x243d1c(0x1b1),'model':'claude-sonnet-4-6','modelShort':_0x243d1c(0x1a1)};}const _0x377ede=process[_0x243d1c(0x1a4)][_0x243d1c(0x1e3)]||'';if(_0x377ede&&exports[_0x243d1c(0x1c9)][_0x377ede])return{'tool':'','model':_0x377ede,'modelShort':''};return _0x1ea18d;}let globalLogsMemoryCache=[];class Tracker{[a0_0x4cbb66(0x1b3)];['configPath'];[a0_0x4cbb66(0x188)];['logsDir'];[a0_0x4cbb66(0x201)];constructor(){const _0x2b0a0c=a0_0x4cbb66;this[_0x2b0a0c(0x1b3)]=path[_0x2b0a0c(0x21d)](os['homedir'](),'.trimprompt'),this[_0x2b0a0c(0x209)]=path['join'](this[_0x2b0a0c(0x1b3)],'config.json'),this[_0x2b0a0c(0x188)]=path['join'](this[_0x2b0a0c(0x1b3)],_0x2b0a0c(0x216)),this['logsDir']=path['join'](this[_0x2b0a0c(0x1b3)],_0x2b0a0c(0x1ae)),this[_0x2b0a0c(0x1cd)]();}[a0_0x4cbb66(0x1cd)](){const _0x7f0918=a0_0x4cbb66;!fs[_0x7f0918(0x1e0)](this[_0x7f0918(0x1b3)])&&fs['mkdirSync'](this[_0x7f0918(0x1b3)],{'recursive':!![]});!fs[_0x7f0918(0x1e0)](this[_0x7f0918(0x1f3)])&&fs['mkdirSync'](this[_0x7f0918(0x1f3)],{'recursive':!![]});const _0x25130f={'version':_0x7f0918(0x1e7),'telemetry_url':process[_0x7f0918(0x1a4)][_0x7f0918(0x1b5)]||'','max_output_tokens':0x1388,'redaction_enabled':!![],'default_model':_0x7f0918(0x1bd)};if(fs[_0x7f0918(0x1e0)](this['configPath']))try{const _0x44a14c=fs['readFileSync'](this[_0x7f0918(0x209)],'utf8');this['config']={..._0x25130f,...JSON[_0x7f0918(0x1fd)](_0x44a14c)};}catch(_0x10de47){this[_0x7f0918(0x201)]=_0x25130f;}else this[_0x7f0918(0x201)]=_0x25130f,this['saveConfig']();!fs['existsSync'](this[_0x7f0918(0x188)])&&fs[_0x7f0918(0x1d0)](this['statsPath'],JSON['stringify']([]),_0x7f0918(0x192));}['getConfig'](){const _0x25d55d=a0_0x4cbb66;return process[_0x25d55d(0x1a4)]['TRIMPROMPT_TELEMETRY_URL']&&(this[_0x25d55d(0x201)][_0x25d55d(0x20c)]=process[_0x25d55d(0x1a4)]['TRIMPROMPT_TELEMETRY_URL']),this['config'];}[a0_0x4cbb66(0x1b6)](_0x506bba,_0x5dbf7a){const _0x557a8a=a0_0x4cbb66;this[_0x557a8a(0x201)][_0x506bba]=_0x5dbf7a,this[_0x557a8a(0x21f)]();}[a0_0x4cbb66(0x21f)](){const _0x5d8063=a0_0x4cbb66;fs[_0x5d8063(0x1d0)](this[_0x5d8063(0x209)],JSON[_0x5d8063(0x1d7)](this[_0x5d8063(0x201)],null,0x2),_0x5d8063(0x192));}[a0_0x4cbb66(0x1b8)](){const _0x3114ea=a0_0x4cbb66;try{if(!fs[_0x3114ea(0x1e0)](this[_0x3114ea(0x188)]))return globalLogsMemoryCache;const _0x477702=fs['readFileSync'](this[_0x3114ea(0x188)],_0x3114ea(0x192)),_0x25e498=JSON[_0x3114ea(0x1fd)](_0x477702);if(Array[_0x3114ea(0x1f4)](_0x25e498)&&_0x25e498[_0x3114ea(0x19d)]>=globalLogsMemoryCache[_0x3114ea(0x19d)])return globalLogsMemoryCache=_0x25e498,_0x25e498;}catch{}return globalLogsMemoryCache;}[a0_0x4cbb66(0x1db)](_0x11a769){const _0x5d99e5=a0_0x4cbb66;globalLogsMemoryCache=_0x11a769;const _0x41f3cb=this['statsPath']+_0x5d99e5(0x190);try{fs[_0x5d99e5(0x1d0)](_0x41f3cb,JSON[_0x5d99e5(0x1d7)](_0x11a769,null,0x2),_0x5d99e5(0x192)),fs[_0x5d99e5(0x212)](_0x41f3cb,this['statsPath']);}catch{try{fs[_0x5d99e5(0x1d0)](this['statsPath'],JSON['stringify'](_0x11a769,null,0x2),'utf8');}catch{}}}[a0_0x4cbb66(0x1fc)](_0x44be8b,_0x93419b,_0x51dd26,_0x2176ac,_0x5f58b4,_0x5618a0){const _0x53ca4f=a0_0x4cbb66,_0x4e2988=this[_0x53ca4f(0x1b8)](),_0x2ca299=_0x93419b[_0x53ca4f(0x19d)],_0x1bcf72=_0x51dd26[_0x53ca4f(0x19d)],_0x34e24d=Math[_0x53ca4f(0x1a5)](_0x2ca299/0x4),_0x4025c4=Math[_0x53ca4f(0x1a5)](_0x1bcf72/0x4),_0x29f920=Math[_0x53ca4f(0x1f8)](0x0,_0x34e24d-_0x4025c4),_0xb564f0=detectSessionTool(),_0x45657f=_0xb564f0[_0x53ca4f(0x219)],_0xa96c4a=Math[_0x53ca4f(0x1d1)]()[_0x53ca4f(0x1ec)](0x24)[_0x53ca4f(0x206)](0x2,0xb);try{const {redactor:_0x333b04}=require(_0x53ca4f(0x1f5)),_0x4e89dc=_0x333b04?_0x333b04['redact'](_0x93419b):_0x93419b;fs[_0x53ca4f(0x1d0)](path['join'](this[_0x53ca4f(0x1f3)],_0xa96c4a+_0x53ca4f(0x205)),_0x4e89dc,'utf8'),fs[_0x53ca4f(0x1d0)](path['join'](this[_0x53ca4f(0x1f3)],_0xa96c4a+_0x53ca4f(0x196)),_0x51dd26,_0x53ca4f(0x192));}catch{}const _0x5950e0=_0x44be8b[_0x53ca4f(0x1e2)]('\x20')[0x0]||_0x53ca4f(0x1ac),_0x40d44f=_0xb564f0['tool']?_0xb564f0[_0x53ca4f(0x1de)]?_0xb564f0[_0x53ca4f(0x207)]+'-'+_0xb564f0[_0x53ca4f(0x1de)]+'-'+_0x5950e0:_0xb564f0[_0x53ca4f(0x207)]+'-'+_0x5950e0:_0x5950e0,_0x111a6e={'id':_0xa96c4a,'timestamp':new Date()['toISOString'](),'command':_0x40d44f,'raw_chars':_0x2ca299,'compressed_chars':_0x1bcf72,'estimated_raw_tokens':_0x34e24d,'estimated_compressed_tokens':_0x4025c4,'tokens_saved':_0x29f920,'model_used':_0x45657f,'exit_code':_0x2176ac,'synced':![],'ai_detected':!!_0xb564f0[_0x53ca4f(0x207)],'secrets_found':_0x5f58b4?.[_0x53ca4f(0x20e)]||0x0,'secret_types':_0x5f58b4?.[_0x53ca4f(0x1a0)]||[],'features':_0x5618a0||[]};_0x4e2988['push'](_0x111a6e),this[_0x53ca4f(0x1db)](_0x4e2988);const _0x15dadf=this[_0x53ca4f(0x1e1)]()[_0x53ca4f(0x20c)];return _0x15dadf&&_0x15dadf[_0x53ca4f(0x1e5)]()['length']>0x0&&this[_0x53ca4f(0x18b)](),_0x5f58b4&&_0x5f58b4[_0x53ca4f(0x20e)]>0x0&&this[_0x53ca4f(0x1ba)](_0x111a6e,_0x5f58b4),_0x111a6e;}['cachedDevId']=null;[a0_0x4cbb66(0x185)](){const _0x182551=a0_0x4cbb66;if(this[_0x182551(0x1ad)])return this['cachedDevId'];try{const _0x472953=require(_0x182551(0x18a))['execSync'](_0x182551(0x1d8),{'stdio':[_0x182551(0x21e),_0x182551(0x1fe),_0x182551(0x21e)],'windowsHide':!![]})[_0x182551(0x1ec)]()[_0x182551(0x1e5)]();if(_0x472953&&_0x472953[_0x182551(0x215)]('@'))return this[_0x182551(0x1ad)]=_0x472953,_0x472953;}catch{}try{const _0x48f56b=require('os')[_0x182551(0x1ee)]()[_0x182551(0x187)];return this[_0x182551(0x1ad)]=_0x48f56b,_0x48f56b;}catch{}return this[_0x182551(0x1ad)]=_0x182551(0x1ac),_0x182551(0x1ac);}['sendSecurityAlert'](_0x1943e5,_0x33c7b8){const _0xbb89=a0_0x4cbb66;try{let _0x22903b=this[_0xbb89(0x1e1)]()[_0xbb89(0x20c)]||'';if(!_0x22903b)return;_0x22903b=_0x22903b[_0xbb89(0x191)](/\/api\/telemetry\/?$/,_0xbb89(0x1a9));if(!_0x22903b['includes'](_0xbb89(0x1a9)))_0x22903b+=_0xbb89(0x1a9);const _0x21d2be=this[_0xbb89(0x185)](),_0x3ce6fc=JSON['stringify']({'developer_id':_0x21d2be,'timestamp':_0x1943e5[_0xbb89(0x202)],'command':_0x1943e5[_0xbb89(0x1ed)],'secrets_found':_0x33c7b8[_0xbb89(0x20e)],'secret_types':_0x33c7b8[_0xbb89(0x1a0)],'os':require('os')[_0xbb89(0x1f0)]()}),_0x3b0030=_0xbb89(0x19b)+JSON['stringify'](_0x22903b)+').protocol===\x27https:\x27?\x27https\x27:\x27http\x27);const\x20r=h.request('+JSON[_0xbb89(0x1d7)](_0x22903b)+',{method:\x27POST\x27,headers:{\x27Content-Type\x27:\x27application/json\x27}},()=>{});r.on(\x27error\x27,()=>{});r.end('+JSON[_0xbb89(0x1d7)](_0x3ce6fc)+')',_0x4e2a6f=(0x0,child_process_1['spawn'])(process[_0xbb89(0x19e)],['-e',_0x3b0030],{'detached':!![],'stdio':_0xbb89(0x21e),'windowsHide':!![]});_0x4e2a6f[_0xbb89(0x1be)]();}catch{}}[a0_0x4cbb66(0x18b)](){const _0x2bc531=a0_0x4cbb66;try{const _0x229776=path[_0x2bc531(0x21d)](__dirname,_0x2bc531(0x1d6));if(fs['existsSync'](_0x229776)){const _0x23f70b=(0x0,child_process_1[_0x2bc531(0x1cf)])(process[_0x2bc531(0x19e)],[_0x229776],{'detached':!![],'stdio':_0x2bc531(0x21e),'windowsHide':!![]});_0x23f70b[_0x2bc531(0x1be)]();}}catch{}}['getStatsSummary'](_0x58058e=a0_0x4cbb66(0x1d4)){const _0x32df03=a0_0x4cbb66,_0x175c65=this[_0x32df03(0x1b8)]();let _0x5ce834=0x0,_0x2ffed1=0x0,_0x15e590=0x0;for(const _0x2f871f of _0x175c65){_0x5ce834+=_0x2f871f[_0x32df03(0x203)],_0x2ffed1+=_0x2f871f[_0x32df03(0x1d9)],_0x15e590+=_0x2f871f[_0x32df03(0x21b)];}let _0x39b790=_0x58058e;(!_0x39b790||_0x39b790===_0x32df03(0x1d4)||!exports[_0x32df03(0x1c9)][_0x39b790])&&(_0x175c65[_0x32df03(0x19d)]>0x0&&_0x175c65[_0x175c65[_0x32df03(0x19d)]-0x1][_0x32df03(0x1dc)]?_0x39b790=_0x175c65[_0x175c65[_0x32df03(0x19d)]-0x1][_0x32df03(0x1dc)]:_0x39b790=this['getConfig']()[_0x32df03(0x1e9)]||'claude-3-5-sonnet');const _0x7bad2f=exports[_0x32df03(0x1c9)][_0x39b790]||exports[_0x32df03(0x1c9)][_0x32df03(0x1f9)],_0x3a4152=_0x15e590*_0x7bad2f[_0x32df03(0x1cb)]/0xf4240,_0x5a4e62=_0x5ce834*_0x7bad2f[_0x32df03(0x1cb)]/0xf4240,_0x10773b=_0x2ffed1*_0x7bad2f[_0x32df03(0x1cb)]/0xf4240,_0x14ec96=_0x5ce834>0x0?_0x15e590/_0x5ce834*0x64:0x0;return{'total_raw_tokens':_0x5ce834,'total_compressed_tokens':_0x2ffed1,'total_tokens_saved':_0x15e590,'savings_percentage':parseFloat(_0x14ec96['toFixed'](0x1)),'money_saved_usd':parseFloat(_0x3a4152[_0x32df03(0x18d)](0x4)),'raw_cost_usd':parseFloat(_0x5a4e62['toFixed'](0x4)),'compressed_cost_usd':parseFloat(_0x10773b[_0x32df03(0x18d)](0x4)),'model_name':_0x7bad2f['name'],'model_key':_0x39b790};}}exports[a0_0x4cbb66(0x1b2)]=Tracker,exports[a0_0x4cbb66(0x197)]=new Tracker();
1
+ 'use strict';const a0_0x19d430=a0_0x85f7;function a0_0x55f0(){const _0x137c63=['CLAUDE_EFFORT','stats.json','get','Claude\x20Opus\x204.1\x20(deprecated)','Claude\x20Fable\x205','claude','getOwnPropertyDescriptor','sendSecurityAlert','execSync','input_price_1m','detectSessionTool','Gemini\x203.5\x20Live\x20Translate','flash','/api/security/alert','GPT-4.1\x20Nano','statsPath','Claude\x20Haiku\x203.5','o3-mini','trim','CONTINUE_GLOBAL_DIR','startsWith','41263emAkCX',').protocol===\x27https:\x27?\x27https\x27:\x27http\x27);const\x20r=h.request(','REPLIT_ENVIRONMENT','getStatsSummary','.trimprompt','stringify','claude-sonnet-4-6','tool','triggerBackgroundSync','secretTypes','gemini-3-5-flash','6816408SFkdTa','windsurf','homedir','.tmp','copilot','logExecution','claude-opus-4-8','antigravity','toString','REPL_ID','OpenAI\x20o1','prototype','path','replit','getDevIdentity','conv:','random','platform','claude-3-5-sonnet','TRIMPROMPT_MODEL','unknown','gemini','devin','sonnet','Claude\x20Sonnet\x204.6','command','gemini-3-1-pro','includes','PATH','VSCODE_PID','auto','hasOwnProperty','COPILOT_MODEL','const\x20h=require(require(\x27url\x27).parse(','mkdirSync','default_model','cachedDevId','writable','git\x20config\x20user.email','codex','unref','parse','3709592kOGAzx','toISOString','__createBinding','default','34743429FYABAS','ignore','8Fchzlc','call','cursor','saveLogs','GPT-5.4\x20Mini','defineProperty','claude_code','split','saveConfig','claude-sonnet-4-5','Tracker','466564UqjBYh','length','logs','child_process','compact:','ceil','1598922EAnwMh','GPT-5.4','slice','userInfo','__esModule','baseDir','COPILOT_GITHUB_TOKEN','GPT-4.1\x20Mini','tracker','readFileSync',',{method:\x27POST\x27,headers:{\x27Content-Type\x27:\x27application/json\x27}},()=>{});r.on(\x27error\x27,()=>{});r.end(','secretsFound','timestamp','getConfig','CURSOR_AGENT','username','52nDiSAL','replace','.comp.txt','config.json','toUpperCase','Claude\x20Opus\x204.7','__setModuleDefault','AIDER_MODEL','Cursor\x20Small','CLINE_DATA_DIR','max','GEMINI_CLI','CLAUDE_CODE','activeSavedTokens','PRICING','__importStar','model_used','setConfig','\x20Compaction','\x20Chat\x20','Claude\x20Haiku\x204.5','getLogs','high','cline','sync.js','logsDir','utf8','o3mini','getOwnPropertyNames','1940740BoLjem','config','configPath','renameSync','Claude\x20Opus\x204.8','estimated_raw_tokens','isArray','init','GPT-4o','CLAUDECODE','join','AI_AGENT','.raw.txt','name','opus','fullPath','toLowerCase','1.0','estimated_compressed_tokens','toFixed','github-copilot','spawn','existsSync','telemetry_url','Claude\x20Mythos\x205','modelShort','redact','model','Gemini\x203.1\x20Pro','writeFileSync'];a0_0x55f0=function(){return _0x137c63;};return a0_0x55f0();}function a0_0x85f7(_0x31bf9f,_0x5cea6a){_0x31bf9f=_0x31bf9f-0x1a1;const _0x55f022=a0_0x55f0();let _0x85f7e0=_0x55f022[_0x31bf9f];return _0x85f7e0;}(function(_0x589d24,_0x25eed6){const _0x579e06=a0_0x85f7,_0xe9aa0e=_0x589d24();while(!![]){try{const _0x3a2575=-parseInt(_0x579e06(0x1b1))/0x1*(parseInt(_0x579e06(0x20d))/0x2)+parseInt(_0x579e06(0x1fd))/0x3+-parseInt(_0x579e06(0x1e6))/0x4+-parseInt(_0x579e06(0x22a))/0x5+-parseInt(_0x579e06(0x1bc))/0x6+-parseInt(_0x579e06(0x1f7))/0x7+-parseInt(_0x579e06(0x1ec))/0x8*(-parseInt(_0x579e06(0x1ea))/0x9);if(_0x3a2575===_0x25eed6)break;else _0xe9aa0e['push'](_0xe9aa0e['shift']());}catch(_0x15033c){_0xe9aa0e['push'](_0xe9aa0e['shift']());}}}(a0_0x55f0,0xc3dcb));var __createBinding=this&&this[a0_0x19d430(0x1e8)]||(Object['create']?function(_0x1a9f70,_0x1b42eb,_0x9761ea,_0x385b2c){const _0x5b5994=a0_0x19d430;if(_0x385b2c===undefined)_0x385b2c=_0x9761ea;var _0x269ed5=Object[_0x5b5994(0x1a2)](_0x1b42eb,_0x9761ea);(!_0x269ed5||(_0x5b5994(0x24a)in _0x269ed5?!_0x1b42eb['__esModule']:_0x269ed5[_0x5b5994(0x1e1)]||_0x269ed5['configurable']))&&(_0x269ed5={'enumerable':!![],'get':function(){return _0x1b42eb[_0x9761ea];}}),Object[_0x5b5994(0x1f1)](_0x1a9f70,_0x385b2c,_0x269ed5);}:function(_0x33a378,_0x3c0760,_0x2d6e0c,_0x37d6e9){if(_0x37d6e9===undefined)_0x37d6e9=_0x2d6e0c;_0x33a378[_0x37d6e9]=_0x3c0760[_0x2d6e0c];}),__setModuleDefault=this&&this[a0_0x19d430(0x213)]||(Object['create']?function(_0x1940a1,_0x255eca){const _0x2b0e91=a0_0x19d430;Object[_0x2b0e91(0x1f1)](_0x1940a1,'default',{'enumerable':!![],'value':_0x255eca});}:function(_0x241318,_0x475f87){const _0x5b6c2e=a0_0x19d430;_0x241318[_0x5b6c2e(0x1e9)]=_0x475f87;}),__importStar=this&&this[a0_0x19d430(0x21c)]||(function(){var _0x4d8fc3=function(_0x31252c){const _0x560920=a0_0x85f7;return _0x4d8fc3=Object[_0x560920(0x229)]||function(_0x190fd1){const _0x526d81=_0x560920;var _0x55baea=[];for(var _0xe92fa9 in _0x190fd1)if(Object[_0x526d81(0x1c7)][_0x526d81(0x1db)][_0x526d81(0x1ed)](_0x190fd1,_0xe92fa9))_0x55baea[_0x55baea[_0x526d81(0x1f8)]]=_0xe92fa9;return _0x55baea;},_0x4d8fc3(_0x31252c);};return function(_0xddce52){const _0x3bc722=a0_0x85f7;if(_0xddce52&&_0xddce52[_0x3bc722(0x201)])return _0xddce52;var _0x5d1f22={};if(_0xddce52!=null){for(var _0x30021b=_0x4d8fc3(_0xddce52),_0x28f3c4=0x0;_0x28f3c4<_0x30021b[_0x3bc722(0x1f8)];_0x28f3c4++)if(_0x30021b[_0x28f3c4]!==_0x3bc722(0x1e9))__createBinding(_0x5d1f22,_0xddce52,_0x30021b[_0x28f3c4]);}return __setModuleDefault(_0x5d1f22,_0xddce52),_0x5d1f22;};}());Object[a0_0x19d430(0x1f1)](exports,a0_0x19d430(0x201),{'value':!![]}),exports[a0_0x19d430(0x205)]=exports[a0_0x19d430(0x1f6)]=exports[a0_0x19d430(0x21b)]=void 0x0,exports[a0_0x19d430(0x1a6)]=detectSessionTool;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x19d430(0x1c8))),os=__importStar(require('os')),child_process_1=require(a0_0x19d430(0x1fa));exports[a0_0x19d430(0x21b)]={'claude-fable-5':{'name':a0_0x19d430(0x24c),'input_price_1m':0xa},'claude-mythos-5':{'name':a0_0x19d430(0x242),'input_price_1m':0xa},'claude-opus-4-8':{'name':a0_0x19d430(0x22e),'input_price_1m':0x5},'claude-opus-4-7':{'name':a0_0x19d430(0x212),'input_price_1m':0x5},'claude-opus-4-5':{'name':'Claude\x20Opus\x204.5','input_price_1m':0x5},'claude-opus-4-1':{'name':a0_0x19d430(0x24b),'input_price_1m':0xf},'claude-sonnet-4-6':{'name':a0_0x19d430(0x1d4),'input_price_1m':0x3},'claude-sonnet-4-5':{'name':'Claude\x20Sonnet\x204.5','input_price_1m':0x3},'claude-3-5-sonnet':{'name':'Claude\x203.5\x20Sonnet','input_price_1m':0x3},'claude-haiku-4-5':{'name':a0_0x19d430(0x221),'input_price_1m':0x1},'claude-haiku-3-5':{'name':a0_0x19d430(0x1ac),'input_price_1m':0.8},'gpt-5-5':{'name':'GPT-5.5','input_price_1m':0x5},'gpt-5-4':{'name':a0_0x19d430(0x1fe),'input_price_1m':2.5},'gpt-4o':{'name':a0_0x19d430(0x232),'input_price_1m':2.5},'gpt-5-4-mini':{'name':a0_0x19d430(0x1f0),'input_price_1m':0.75},'gpt-5-4-nano':{'name':'GPT-5.4\x20Nano','input_price_1m':0.2},'gpt-4-1-mini':{'name':a0_0x19d430(0x204),'input_price_1m':0.4},'gpt-4-1-nano':{'name':a0_0x19d430(0x1aa),'input_price_1m':0.1},'gpt-4o-mini':{'name':'GPT-4o\x20Mini','input_price_1m':0.15},'o1':{'name':a0_0x19d430(0x1c6),'input_price_1m':0xf},'o1-mini':{'name':'OpenAI\x20o1-mini','input_price_1m':0x3},'o3-mini':{'name':'OpenAI\x20o3-mini','input_price_1m':1.1},'cursor-small':{'name':a0_0x19d430(0x215),'input_price_1m':0.1},'gemini-3-1-pro':{'name':a0_0x19d430(0x246),'input_price_1m':0x2},'gemini-3-5-flash':{'name':'Gemini\x203.5\x20Flash','input_price_1m':1.5},'gemini-3-1-flash-lite':{'name':'Gemini\x203.1\x20Flash-Lite','input_price_1m':0.45},'gemini-3-5-live-translate':{'name':a0_0x19d430(0x1a7),'input_price_1m':3.5}};function detectSessionTool(){const _0xaf82cd=a0_0x19d430,_0x220dc6=process.env,_0x4cb811={'tool':'','model':_0xaf82cd(0x1b7),'modelShort':''};if(_0x220dc6['TRIMPROMPT_MODEL']&&exports['PRICING'][_0x220dc6['TRIMPROMPT_MODEL']])return{'tool':'','model':_0x220dc6[_0xaf82cd(0x1cf)],'modelShort':''};const _0x10b71d=(_0x220dc6[_0xaf82cd(0x235)]||'')[_0xaf82cd(0x23a)]();if(_0x10b71d){if(_0x10b71d[_0xaf82cd(0x1d7)]('claude-code')||_0x10b71d[_0xaf82cd(0x1d7)](_0xaf82cd(0x1f2))){const _0x307bbc=_0x220dc6[_0xaf82cd(0x248)]===_0xaf82cd(0x223)?'opus':_0xaf82cd(0x1d3),_0x30e010=_0x220dc6['CLAUDE_EFFORT']===_0xaf82cd(0x223)?_0xaf82cd(0x1c2):_0xaf82cd(0x1b7);return{'tool':_0xaf82cd(0x1a1),'model':_0x30e010,'modelShort':_0x307bbc};}if(_0x10b71d['includes'](_0xaf82cd(0x1ee)))return{'tool':'cursor','model':_0xaf82cd(0x1b7),'modelShort':'sonnet'};if(_0x10b71d[_0xaf82cd(0x1d7)](_0xaf82cd(0x23e))||_0x10b71d[_0xaf82cd(0x1d7)](_0xaf82cd(0x1c0))){const _0x3a779c=_0x220dc6[_0xaf82cd(0x1dc)]||'';if(_0x3a779c&&exports['PRICING'][_0x3a779c])return{'tool':_0xaf82cd(0x1c0),'model':_0x3a779c,'modelShort':_0x3a779c[_0xaf82cd(0x1f3)]('-')['pop']()||''};return{'tool':_0xaf82cd(0x1c0),'model':_0xaf82cd(0x1f5),'modelShort':_0xaf82cd(0x1d3)};}if(_0x10b71d['includes']('gemini'))return{'tool':_0xaf82cd(0x1d1),'model':_0xaf82cd(0x1bb),'modelShort':_0xaf82cd(0x1a8)};if(_0x10b71d[_0xaf82cd(0x1d7)]('codex'))return{'tool':_0xaf82cd(0x1e3),'model':_0xaf82cd(0x1ad),'modelShort':_0xaf82cd(0x228)};if(_0x10b71d['includes'](_0xaf82cd(0x1d2)))return{'tool':_0xaf82cd(0x1d2),'model':'claude-sonnet-4-6','modelShort':''};if(_0x10b71d[_0xaf82cd(0x1d7)](_0xaf82cd(0x1c3)))return{'tool':_0xaf82cd(0x1c3),'model':_0xaf82cd(0x1d6),'modelShort':_0xaf82cd(0x1d1)};if(_0x10b71d[_0xaf82cd(0x1d7)](_0xaf82cd(0x1c9))||_0x220dc6['REPL_ID'])return{'tool':'replit','model':_0xaf82cd(0x1b7),'modelShort':''};return{'tool':_0x10b71d[_0xaf82cd(0x1f3)]('_')[0x0][_0xaf82cd(0x1f3)]('-')[0x0],'model':_0xaf82cd(0x1b7),'modelShort':''};}if(_0x220dc6[_0xaf82cd(0x233)]==='1'||_0x220dc6[_0xaf82cd(0x219)]==='1'){const _0x48eca2=_0x220dc6[_0xaf82cd(0x248)]===_0xaf82cd(0x223)?'opus':_0xaf82cd(0x1d3),_0x347815=_0x220dc6['CLAUDE_EFFORT']==='high'?_0xaf82cd(0x1c2):_0xaf82cd(0x1b7);return{'tool':_0xaf82cd(0x1a1),'model':_0x347815,'modelShort':_0x48eca2};}if(_0x220dc6[_0xaf82cd(0x20b)]==='1')return{'tool':_0xaf82cd(0x1ee),'model':_0xaf82cd(0x1b7),'modelShort':_0xaf82cd(0x1d3)};if(_0x220dc6[_0xaf82cd(0x218)]==='1')return{'tool':'gemini','model':_0xaf82cd(0x1bb),'modelShort':_0xaf82cd(0x1a8)};if(_0x220dc6[_0xaf82cd(0x1dc)]||_0x220dc6[_0xaf82cd(0x203)]){const _0x279fcf=_0x220dc6[_0xaf82cd(0x1dc)]||'';if(_0x279fcf&&exports[_0xaf82cd(0x21b)][_0x279fcf])return{'tool':_0xaf82cd(0x1c0),'model':_0x279fcf,'modelShort':_0x279fcf[_0xaf82cd(0x1f3)]('-')['pop']()||''};return{'tool':_0xaf82cd(0x1c0),'model':_0xaf82cd(0x1f5),'modelShort':'sonnet'};}if(_0x220dc6[_0xaf82cd(0x1c5)]||_0x220dc6[_0xaf82cd(0x1b3)])return{'tool':_0xaf82cd(0x1c9),'model':_0xaf82cd(0x1b7),'modelShort':''};if(_0x220dc6[_0xaf82cd(0x216)])return{'tool':_0xaf82cd(0x224),'model':_0xaf82cd(0x1b7),'modelShort':''};if(_0x220dc6[_0xaf82cd(0x1af)])return{'tool':'continue','model':_0xaf82cd(0x1b7),'modelShort':''};if(_0x220dc6['ANTIGRAVITY_AGENT']==='1')return{'tool':_0xaf82cd(0x1c3),'model':'gemini-3-1-pro','modelShort':_0xaf82cd(0x1d1)};if(_0x220dc6[_0xaf82cd(0x248)]){const _0x336849=_0x220dc6[_0xaf82cd(0x248)]===_0xaf82cd(0x223)?_0xaf82cd(0x238):_0xaf82cd(0x1d3),_0x5b1922=_0x220dc6[_0xaf82cd(0x248)]===_0xaf82cd(0x223)?_0xaf82cd(0x1c2):_0xaf82cd(0x1b7);return{'tool':'','model':_0x5b1922,'modelShort':''};}if(_0x220dc6[_0xaf82cd(0x214)]&&exports[_0xaf82cd(0x21b)][_0x220dc6[_0xaf82cd(0x214)]])return{'tool':'aider','model':_0x220dc6['AIDER_MODEL'],'modelShort':''};if(_0x220dc6[_0xaf82cd(0x1d9)]){const _0x13fe82=(_0x220dc6[_0xaf82cd(0x1d8)]||'')[_0xaf82cd(0x23a)]();if(_0x13fe82[_0xaf82cd(0x1d7)]('cursor'))return{'tool':_0xaf82cd(0x1ee),'model':_0xaf82cd(0x1b7),'modelShort':_0xaf82cd(0x1d3)};if(_0x13fe82['includes'](_0xaf82cd(0x1bd)))return{'tool':_0xaf82cd(0x1bd),'model':'claude-sonnet-4-6','modelShort':_0xaf82cd(0x1d3)};}const _0x24d952=process.env.TRIMPROMPT_MODEL||'';if(_0x24d952&&exports[_0xaf82cd(0x21b)][_0x24d952])return{'tool':'','model':_0x24d952,'modelShort':''};return _0x4cb811;}let globalLogsMemoryCache=[];class Tracker{[a0_0x19d430(0x202)];[a0_0x19d430(0x22c)];['statsPath'];[a0_0x19d430(0x226)];[a0_0x19d430(0x22b)];constructor(){const _0x17d105=a0_0x19d430;this[_0x17d105(0x202)]=path[_0x17d105(0x234)](os[_0x17d105(0x1be)](),_0x17d105(0x1b5)),this['configPath']=path[_0x17d105(0x234)](this[_0x17d105(0x202)],_0x17d105(0x210)),this['statsPath']=path[_0x17d105(0x234)](this[_0x17d105(0x202)],_0x17d105(0x249)),this[_0x17d105(0x226)]=path[_0x17d105(0x234)](this[_0x17d105(0x202)],_0x17d105(0x1f9)),this[_0x17d105(0x231)]();}['init'](){const _0x387ab8=a0_0x19d430;!fs[_0x387ab8(0x240)](this['baseDir'])&&fs['mkdirSync'](this[_0x387ab8(0x202)],{'recursive':!![]});!fs['existsSync'](this[_0x387ab8(0x226)])&&fs[_0x387ab8(0x1de)](this[_0x387ab8(0x226)],{'recursive':!![]});const _0xef902={'version':_0x387ab8(0x23b),'telemetry_url':process.env.TRIMPROMPT_TELEMETRY_URL||'','max_output_tokens':0x1388,'redaction_enabled':!![],'default_model':'claude-opus-4-8'};if(fs['existsSync'](this[_0x387ab8(0x22c)]))try{const _0x5659f4=fs[_0x387ab8(0x206)](this[_0x387ab8(0x22c)],'utf8');this[_0x387ab8(0x22b)]={..._0xef902,...JSON[_0x387ab8(0x1e5)](_0x5659f4)};}catch(_0xd3732a){this[_0x387ab8(0x22b)]=_0xef902;}else this[_0x387ab8(0x22b)]=_0xef902,this[_0x387ab8(0x1f4)]();!fs[_0x387ab8(0x240)](this[_0x387ab8(0x1ab)])&&fs[_0x387ab8(0x247)](this[_0x387ab8(0x1ab)],JSON[_0x387ab8(0x1b6)]([]),_0x387ab8(0x227));}['getConfig'](){const _0xc9e154=a0_0x19d430;return process.env.TRIMPROMPT_TELEMETRY_URL&&(this[_0xc9e154(0x22b)][_0xc9e154(0x241)]=process.env.TRIMPROMPT_TELEMETRY_URL),this[_0xc9e154(0x22b)];}[a0_0x19d430(0x21e)](_0x56734c,_0x2550e5){const _0x32de2f=a0_0x19d430;this[_0x32de2f(0x22b)][_0x56734c]=_0x2550e5,this['saveConfig']();}[a0_0x19d430(0x1f4)](){const _0xb3b65a=a0_0x19d430;fs[_0xb3b65a(0x247)](this[_0xb3b65a(0x22c)],JSON[_0xb3b65a(0x1b6)](this[_0xb3b65a(0x22b)],null,0x2),_0xb3b65a(0x227));}['getLogs'](){const _0x4a8b5c=a0_0x19d430;try{if(!fs['existsSync'](this[_0x4a8b5c(0x1ab)]))return globalLogsMemoryCache;const _0x44b2e0=fs[_0x4a8b5c(0x206)](this[_0x4a8b5c(0x1ab)],_0x4a8b5c(0x227)),_0x3eb96a=JSON[_0x4a8b5c(0x1e5)](_0x44b2e0);if(Array[_0x4a8b5c(0x230)](_0x3eb96a)&&_0x3eb96a[_0x4a8b5c(0x1f8)]>=globalLogsMemoryCache['length'])return globalLogsMemoryCache=_0x3eb96a,_0x3eb96a;}catch{}return globalLogsMemoryCache;}['saveLogs'](_0x38ea40){const _0x239d49=a0_0x19d430;globalLogsMemoryCache=_0x38ea40;const _0x3e84d2=this[_0x239d49(0x1ab)]+_0x239d49(0x1bf);try{fs[_0x239d49(0x247)](_0x3e84d2,JSON[_0x239d49(0x1b6)](_0x38ea40,null,0x2),'utf8'),fs[_0x239d49(0x22d)](_0x3e84d2,this[_0x239d49(0x1ab)]);}catch{try{fs['writeFileSync'](this[_0x239d49(0x1ab)],JSON[_0x239d49(0x1b6)](_0x38ea40,null,0x2),'utf8');}catch{}}}[a0_0x19d430(0x1c1)](_0x2356d6,_0x4078e7,_0x48df49,_0x3e4915,_0x34bb07,_0x196fb6){const _0x11a8de=a0_0x19d430,_0x570810=this[_0x11a8de(0x222)](),_0x270105=_0x4078e7[_0x11a8de(0x1f8)],_0x4288ed=_0x48df49[_0x11a8de(0x1f8)],_0x75ba41=detectSessionTool(),_0x398b2f=_0x75ba41[_0x11a8de(0x245)],_0x401d69=_0x75ba41[_0x11a8de(0x1b8)]===_0x11a8de(0x1c3)?'gemini':_0x75ba41[_0x11a8de(0x1b8)];let _0x23fc8f=0x0;if(_0x401d69&&!_0x2356d6[_0x11a8de(0x1b0)](_0x11a8de(0x1fb)))try{const {getLatestSessionFile:_0x4ed162,loadSessionsState:_0x5c79dc}=require('./file-watcher'),_0x3edb4a=_0x4ed162(_0x401d69);if(_0x3edb4a&&_0x3edb4a['fullPath']){const _0x50fc4b=_0x5c79dc();_0x50fc4b[_0x3edb4a[_0x11a8de(0x239)]]&&(_0x23fc8f=_0x50fc4b[_0x3edb4a[_0x11a8de(0x239)]][_0x11a8de(0x21a)]||0x0);}}catch{}const _0x4b07cd=Math[_0x11a8de(0x1fc)](_0x270105/0x4)+_0x23fc8f,_0x2a23ff=Math[_0x11a8de(0x1fc)](_0x4288ed/0x4),_0x1cc302=Math[_0x11a8de(0x217)](0x0,_0x4b07cd-_0x2a23ff),_0x5f268e=Math[_0x11a8de(0x1cc)]()[_0x11a8de(0x1c4)](0x24)['substring'](0x2,0xb);try{const {redactor:_0x1c5ad6}=require('./redactor'),_0x4d68f9=_0x1c5ad6?_0x1c5ad6[_0x11a8de(0x244)](_0x4078e7):_0x4078e7;fs[_0x11a8de(0x247)](path[_0x11a8de(0x234)](this['logsDir'],_0x5f268e+_0x11a8de(0x236)),_0x4d68f9,'utf8'),fs[_0x11a8de(0x247)](path[_0x11a8de(0x234)](this['logsDir'],_0x5f268e+_0x11a8de(0x20f)),_0x48df49,_0x11a8de(0x227));}catch{}let _0x12d2a2=_0x2356d6;if(_0x2356d6[_0x11a8de(0x1b0)]('compact:')){const _0x4ac44a=_0x2356d6['split'](':')[0x1]||_0x11a8de(0x1a1),_0x46ffa8=_0x4ac44a['charAt'](0x0)['toUpperCase']()+_0x4ac44a[_0x11a8de(0x1ff)](0x1);_0x12d2a2=_0x46ffa8+_0x11a8de(0x21f);}else{if(_0x2356d6[_0x11a8de(0x1b0)](_0x11a8de(0x1cb))){const _0x508231=_0x2356d6['split']('\x20'),_0x4afe9c=_0x508231[0x0][_0x11a8de(0x1f3)](':')[0x1]||_0x11a8de(0x1a1),_0x3a0aed=_0x4afe9c['charAt'](0x0)[_0x11a8de(0x211)]()+_0x4afe9c[_0x11a8de(0x1ff)](0x1),_0x53d1af=_0x508231[_0x11a8de(0x1ff)](0x1)[_0x11a8de(0x234)]('\x20');_0x12d2a2=_0x3a0aed+_0x11a8de(0x220)+_0x53d1af;}else{const _0x57bcf3=_0x2356d6[_0x11a8de(0x1f3)]('\x20')[0x0]||_0x11a8de(0x1d0);_0x12d2a2=_0x75ba41[_0x11a8de(0x1b8)]?_0x75ba41[_0x11a8de(0x243)]?_0x75ba41['tool']+'-'+_0x75ba41['modelShort']+'-'+_0x57bcf3:_0x75ba41[_0x11a8de(0x1b8)]+'-'+_0x57bcf3:_0x57bcf3;}}const _0x15f7dc={'id':_0x5f268e,'timestamp':new Date()[_0x11a8de(0x1e7)](),'command':_0x12d2a2,'raw_chars':_0x270105,'compressed_chars':_0x4288ed,'estimated_raw_tokens':_0x4b07cd,'estimated_compressed_tokens':_0x2a23ff,'tokens_saved':_0x1cc302,'model_used':_0x398b2f,'exit_code':_0x3e4915,'synced':![],'ai_detected':!!_0x75ba41[_0x11a8de(0x1b8)],'secrets_found':_0x34bb07?.[_0x11a8de(0x208)]||0x0,'secret_types':_0x34bb07?.[_0x11a8de(0x1ba)]||[],'features':_0x196fb6||[]};_0x570810['push'](_0x15f7dc),this[_0x11a8de(0x1ef)](_0x570810);const _0x42335d=this['getConfig']()[_0x11a8de(0x241)];return _0x42335d&&_0x42335d[_0x11a8de(0x1ae)]()['length']>0x0&&this[_0x11a8de(0x1b9)](),_0x34bb07&&_0x34bb07[_0x11a8de(0x208)]>0x0&&this[_0x11a8de(0x1a3)](_0x15f7dc,_0x34bb07),_0x15f7dc;}['cachedDevId']=null;['getDevIdentity'](){const _0x57b6b7=a0_0x19d430;if(this[_0x57b6b7(0x1e0)])return this[_0x57b6b7(0x1e0)];try{const _0x25c41d=require('child_process')[_0x57b6b7(0x1a4)](_0x57b6b7(0x1e2),{'stdio':['ignore','pipe',_0x57b6b7(0x1eb)],'windowsHide':!![]})[_0x57b6b7(0x1c4)]()[_0x57b6b7(0x1ae)]();if(_0x25c41d&&_0x25c41d[_0x57b6b7(0x1d7)]('@'))return this['cachedDevId']=_0x25c41d,_0x25c41d;}catch{}try{const _0x306645=require('os')[_0x57b6b7(0x200)]()[_0x57b6b7(0x20c)];return this[_0x57b6b7(0x1e0)]=_0x306645,_0x306645;}catch{}return this[_0x57b6b7(0x1e0)]=_0x57b6b7(0x1d0),_0x57b6b7(0x1d0);}[a0_0x19d430(0x1a3)](_0x1cf600,_0x395980){const _0x2460d2=a0_0x19d430;try{let _0x5a451c=this[_0x2460d2(0x20a)]()[_0x2460d2(0x241)]||'';if(!_0x5a451c)return;_0x5a451c=_0x5a451c[_0x2460d2(0x20e)](/\/api\/telemetry\/?$/,'/api/security/alert');if(!_0x5a451c[_0x2460d2(0x1d7)](_0x2460d2(0x1a9)))_0x5a451c+=_0x2460d2(0x1a9);const _0x5b8f9c=this[_0x2460d2(0x1ca)](),_0x2eb6a3=JSON[_0x2460d2(0x1b6)]({'developer_id':_0x5b8f9c,'timestamp':_0x1cf600[_0x2460d2(0x209)],'command':_0x1cf600[_0x2460d2(0x1d5)],'secrets_found':_0x395980[_0x2460d2(0x208)],'secret_types':_0x395980['secretTypes'],'os':require('os')[_0x2460d2(0x1cd)]()}),_0x2cbf3b=_0x2460d2(0x1dd)+JSON[_0x2460d2(0x1b6)](_0x5a451c)+_0x2460d2(0x1b2)+JSON[_0x2460d2(0x1b6)](_0x5a451c)+_0x2460d2(0x207)+JSON['stringify'](_0x2eb6a3)+')',_0x2fcb18=(0x0,child_process_1[_0x2460d2(0x23f)])(process['execPath'],['-e',_0x2cbf3b],{'detached':!![],'stdio':_0x2460d2(0x1eb),'windowsHide':!![]});_0x2fcb18[_0x2460d2(0x1e4)]();}catch{}}[a0_0x19d430(0x1b9)](){const _0x57c200=a0_0x19d430;try{const _0x9f5027=path['join'](__dirname,_0x57c200(0x225));if(fs[_0x57c200(0x240)](_0x9f5027)){const _0x2e795c=(0x0,child_process_1[_0x57c200(0x23f)])(process['execPath'],[_0x9f5027],{'detached':!![],'stdio':_0x57c200(0x1eb),'windowsHide':!![]});_0x2e795c['unref']();}}catch{}}[a0_0x19d430(0x1b4)](_0x569e0e=a0_0x19d430(0x1da)){const _0x4e7d71=a0_0x19d430,_0x4b6a14=this[_0x4e7d71(0x222)]();let _0xb0333b=0x0,_0x2733ab=0x0,_0x590f76=0x0;for(const _0x3a7ccf of _0x4b6a14){_0xb0333b+=_0x3a7ccf[_0x4e7d71(0x22f)],_0x2733ab+=_0x3a7ccf[_0x4e7d71(0x23c)],_0x590f76+=_0x3a7ccf['tokens_saved'];}let _0x173392=_0x569e0e;(!_0x173392||_0x173392===_0x4e7d71(0x1da)||!exports['PRICING'][_0x173392])&&(_0x4b6a14[_0x4e7d71(0x1f8)]>0x0&&_0x4b6a14[_0x4b6a14[_0x4e7d71(0x1f8)]-0x1][_0x4e7d71(0x21d)]?_0x173392=_0x4b6a14[_0x4b6a14['length']-0x1][_0x4e7d71(0x21d)]:_0x173392=this[_0x4e7d71(0x20a)]()[_0x4e7d71(0x1df)]||_0x4e7d71(0x1ce));const _0x2e82a5=exports[_0x4e7d71(0x21b)][_0x173392]||exports[_0x4e7d71(0x21b)][_0x4e7d71(0x1ce)],_0x5d0ce7=_0x590f76*_0x2e82a5[_0x4e7d71(0x1a5)]/0xf4240,_0x474710=_0xb0333b*_0x2e82a5[_0x4e7d71(0x1a5)]/0xf4240,_0x3100a2=_0x2733ab*_0x2e82a5['input_price_1m']/0xf4240,_0x5d176b=_0xb0333b>0x0?_0x590f76/_0xb0333b*0x64:0x0;return{'total_raw_tokens':_0xb0333b,'total_compressed_tokens':_0x2733ab,'total_tokens_saved':_0x590f76,'savings_percentage':parseFloat(_0x5d176b['toFixed'](0x1)),'money_saved_usd':parseFloat(_0x5d0ce7[_0x4e7d71(0x23d)](0x4)),'raw_cost_usd':parseFloat(_0x474710[_0x4e7d71(0x23d)](0x4)),'compressed_cost_usd':parseFloat(_0x3100a2[_0x4e7d71(0x23d)](0x4)),'model_name':_0x2e82a5[_0x4e7d71(0x237)],'model_key':_0x173392};}}exports[a0_0x19d430(0x1f6)]=Tracker,exports['tracker']=new Tracker();