trimprompt 1.0.20 → 1.0.21

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/tracker.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function a0_0x2d7d(_0x4ea8bf,_0x56cccd){_0x4ea8bf=_0x4ea8bf-0xcf;const _0x308284=a0_0x3082();let _0x2d7d40=_0x308284[_0x4ea8bf];return _0x2d7d40;}const a0_0x3165a2=a0_0x2d7d;(function(_0x4886f7,_0xf681fe){const _0x5f13fd=a0_0x2d7d,_0x296b3a=_0x4886f7();while(!![]){try{const _0x150098=parseInt(_0x5f13fd(0xf7))/0x1*(parseInt(_0x5f13fd(0x137))/0x2)+-parseInt(_0x5f13fd(0xe5))/0x3*(-parseInt(_0x5f13fd(0x107))/0x4)+parseInt(_0x5f13fd(0x125))/0x5+parseInt(_0x5f13fd(0x13c))/0x6*(-parseInt(_0x5f13fd(0x13e))/0x7)+-parseInt(_0x5f13fd(0x149))/0x8+-parseInt(_0x5f13fd(0xfb))/0x9+parseInt(_0x5f13fd(0x14f))/0xa;if(_0x150098===_0xf681fe)break;else _0x296b3a['push'](_0x296b3a['shift']());}catch(_0xd118e3){_0x296b3a['push'](_0x296b3a['shift']());}}}(a0_0x3082,0x2cf58));var __createBinding=this&&this[a0_0x3165a2(0x161)]||(Object[a0_0x3165a2(0x140)]?function(_0x59e357,_0xfbe925,_0x5ccfa7,_0x93e43f){const _0x321640=a0_0x3165a2;if(_0x93e43f===undefined)_0x93e43f=_0x5ccfa7;var _0x346668=Object['getOwnPropertyDescriptor'](_0xfbe925,_0x5ccfa7);(!_0x346668||(_0x321640(0x12c)in _0x346668?!_0xfbe925[_0x321640(0x102)]:_0x346668[_0x321640(0x15c)]||_0x346668['configurable']))&&(_0x346668={'enumerable':!![],'get':function(){return _0xfbe925[_0x5ccfa7];}}),Object['defineProperty'](_0x59e357,_0x93e43f,_0x346668);}:function(_0x5ae271,_0x4d6cb5,_0x303527,_0x16b6f0){if(_0x16b6f0===undefined)_0x16b6f0=_0x303527;_0x5ae271[_0x16b6f0]=_0x4d6cb5[_0x303527];}),__setModuleDefault=this&&this[a0_0x3165a2(0x101)]||(Object['create']?function(_0xb105dd,_0x46c214){Object['defineProperty'](_0xb105dd,'default',{'enumerable':!![],'value':_0x46c214});}:function(_0x3f0694,_0x46e435){const _0x1e8cc9=a0_0x3165a2;_0x3f0694[_0x1e8cc9(0x164)]=_0x46e435;}),__importStar=this&&this[a0_0x3165a2(0xd1)]||(function(){var _0xee05b=function(_0x3775f2){return _0xee05b=Object['getOwnPropertyNames']||function(_0xda50d6){const _0x1cec16=a0_0x2d7d;var _0x30d4bb=[];for(var _0x1d7a33 in _0xda50d6)if(Object[_0x1cec16(0xd2)][_0x1cec16(0x10e)][_0x1cec16(0xec)](_0xda50d6,_0x1d7a33))_0x30d4bb[_0x30d4bb[_0x1cec16(0x12a)]]=_0x1d7a33;return _0x30d4bb;},_0xee05b(_0x3775f2);};return function(_0x276029){const _0x3007f2=a0_0x2d7d;if(_0x276029&&_0x276029['__esModule'])return _0x276029;var _0x24912={};if(_0x276029!=null){for(var _0x5e5e39=_0xee05b(_0x276029),_0x41d2d0=0x0;_0x41d2d0<_0x5e5e39[_0x3007f2(0x12a)];_0x41d2d0++)if(_0x5e5e39[_0x41d2d0]!==_0x3007f2(0x164))__createBinding(_0x24912,_0x276029,_0x5e5e39[_0x41d2d0]);}return __setModuleDefault(_0x24912,_0x276029),_0x24912;};}());Object['defineProperty'](exports,a0_0x3165a2(0x102),{'value':!![]}),exports[a0_0x3165a2(0x141)]=exports[a0_0x3165a2(0x154)]=exports[a0_0x3165a2(0x129)]=void 0x0,exports[a0_0x3165a2(0xd9)]=detectSessionTool;const fs=__importStar(require('fs')),path=__importStar(require('path')),os=__importStar(require('os')),child_process_1=require(a0_0x3165a2(0xf8));exports[a0_0x3165a2(0x129)]={'claude-fable-5':{'name':a0_0x3165a2(0xff),'input_price_1m':0xa},'claude-mythos-5':{'name':a0_0x3165a2(0x103),'input_price_1m':0xa},'claude-opus-4-8':{'name':a0_0x3165a2(0x14b),'input_price_1m':0x5},'claude-opus-4-7':{'name':a0_0x3165a2(0x106),'input_price_1m':0x5},'claude-opus-4-5':{'name':a0_0x3165a2(0xfd),'input_price_1m':0x5},'claude-opus-4-1':{'name':a0_0x3165a2(0xd6),'input_price_1m':0xf},'claude-sonnet-4-6':{'name':a0_0x3165a2(0xe8),'input_price_1m':0x3},'claude-sonnet-4-5':{'name':a0_0x3165a2(0xfa),'input_price_1m':0x3},'claude-3-5-sonnet':{'name':'Claude\x203.5\x20Sonnet','input_price_1m':0x3},'claude-haiku-4-5':{'name':'Claude\x20Haiku\x204.5','input_price_1m':0x1},'claude-haiku-3-5':{'name':a0_0x3165a2(0x11a),'input_price_1m':0.8},'gpt-5-5':{'name':'GPT-5.5','input_price_1m':0x5},'gpt-5-4':{'name':a0_0x3165a2(0xf4),'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_0x3165a2(0x100),'input_price_1m':0.2},'gpt-4-1-mini':{'name':a0_0x3165a2(0x166),'input_price_1m':0.4},'gpt-4-1-nano':{'name':'GPT-4.1\x20Nano','input_price_1m':0.1},'gpt-4o-mini':{'name':a0_0x3165a2(0x108),'input_price_1m':0.15},'o1':{'name':a0_0x3165a2(0x111),'input_price_1m':0xf},'o1-mini':{'name':'OpenAI\x20o1-mini','input_price_1m':0x3},'o3-mini':{'name':a0_0x3165a2(0x132),'input_price_1m':1.1},'cursor-small':{'name':a0_0x3165a2(0x124),'input_price_1m':0.1},'gemini-3-1-pro':{'name':'Gemini\x203.1\x20Pro','input_price_1m':0x2},'gemini-3-5-flash':{'name':a0_0x3165a2(0xfc),'input_price_1m':1.5},'gemini-3-1-flash-lite':{'name':a0_0x3165a2(0x148),'input_price_1m':0.45},'gemini-3-5-live-translate':{'name':a0_0x3165a2(0x167),'input_price_1m':3.5}};function detectSessionTool(){const _0x2a44cb=a0_0x3165a2,_0x3c3228=process.env,_0x1a596a={'tool':'','model':'claude-sonnet-4-6','modelShort':''};if(_0x3c3228[_0x2a44cb(0x151)]&&exports[_0x2a44cb(0x129)][_0x3c3228[_0x2a44cb(0x151)]])return{'tool':'','model':_0x3c3228['TRIMPROMPT_MODEL'],'modelShort':''};const _0x4181e4=(_0x3c3228[_0x2a44cb(0xe6)]||'')['toLowerCase']();if(_0x4181e4){if(_0x4181e4[_0x2a44cb(0xdd)](_0x2a44cb(0x122))||_0x4181e4['includes'](_0x2a44cb(0xd0))){const _0x180ab2=_0x3c3228['CLAUDE_EFFORT']===_0x2a44cb(0xf0)?_0x2a44cb(0x163):_0x2a44cb(0xe4),_0x536930=_0x3c3228[_0x2a44cb(0x119)]===_0x2a44cb(0xf0)?_0x2a44cb(0x12e):_0x2a44cb(0x104);return{'tool':_0x2a44cb(0xd4),'model':_0x536930,'modelShort':_0x180ab2};}if(_0x4181e4[_0x2a44cb(0xdd)](_0x2a44cb(0x152)))return{'tool':_0x2a44cb(0x152),'model':'claude-sonnet-4-6','modelShort':_0x2a44cb(0xe4)};if(_0x4181e4[_0x2a44cb(0xdd)](_0x2a44cb(0xfe))||_0x4181e4[_0x2a44cb(0xdd)](_0x2a44cb(0x150))){const _0x1db65f=_0x3c3228[_0x2a44cb(0xeb)]||'';if(_0x1db65f&&exports[_0x2a44cb(0x129)][_0x1db65f])return{'tool':_0x2a44cb(0x150),'model':_0x1db65f,'modelShort':_0x1db65f['split']('-')[_0x2a44cb(0xe7)]()||''};return{'tool':_0x2a44cb(0x150),'model':_0x2a44cb(0x10b),'modelShort':_0x2a44cb(0xe4)};}if(_0x4181e4[_0x2a44cb(0xdd)](_0x2a44cb(0x13f)))return{'tool':_0x2a44cb(0x13f),'model':_0x2a44cb(0x15a),'modelShort':_0x2a44cb(0x162)};if(_0x4181e4['includes'](_0x2a44cb(0x135)))return{'tool':_0x2a44cb(0x135),'model':_0x2a44cb(0x159),'modelShort':_0x2a44cb(0x14e)};if(_0x4181e4[_0x2a44cb(0xdd)](_0x2a44cb(0x128)))return{'tool':_0x2a44cb(0x128),'model':_0x2a44cb(0x104),'modelShort':''};if(_0x4181e4[_0x2a44cb(0xdd)](_0x2a44cb(0x160)))return{'tool':_0x2a44cb(0x160),'model':_0x2a44cb(0x14d),'modelShort':_0x2a44cb(0x13f)};if(_0x4181e4[_0x2a44cb(0xdd)](_0x2a44cb(0x10f))||_0x3c3228['REPL_ID'])return{'tool':_0x2a44cb(0x10f),'model':_0x2a44cb(0x104),'modelShort':''};return{'tool':_0x4181e4[_0x2a44cb(0x113)]('_')[0x0][_0x2a44cb(0x113)]('-')[0x0],'model':'claude-sonnet-4-6','modelShort':''};}if(_0x3c3228[_0x2a44cb(0x112)]==='1'||_0x3c3228[_0x2a44cb(0x143)]==='1'){const _0x570ae7=_0x3c3228['CLAUDE_EFFORT']===_0x2a44cb(0xf0)?_0x2a44cb(0x163):_0x2a44cb(0xe4),_0x3b063a=_0x3c3228['CLAUDE_EFFORT']===_0x2a44cb(0xf0)?_0x2a44cb(0x12e):'claude-sonnet-4-6';return{'tool':'claude','model':_0x3b063a,'modelShort':_0x570ae7};}if(_0x3c3228[_0x2a44cb(0x10a)]==='1')return{'tool':_0x2a44cb(0x152),'model':'claude-sonnet-4-6','modelShort':_0x2a44cb(0xe4)};if(_0x3c3228[_0x2a44cb(0x158)]==='1')return{'tool':'gemini','model':_0x2a44cb(0x15a),'modelShort':_0x2a44cb(0x162)};if(_0x3c3228[_0x2a44cb(0xeb)]||_0x3c3228['COPILOT_GITHUB_TOKEN']){const _0x26a0c0=_0x3c3228[_0x2a44cb(0xeb)]||'';if(_0x26a0c0&&exports[_0x2a44cb(0x129)][_0x26a0c0])return{'tool':'copilot','model':_0x26a0c0,'modelShort':_0x26a0c0[_0x2a44cb(0x113)]('-')[_0x2a44cb(0xe7)]()||''};return{'tool':_0x2a44cb(0x150),'model':'claude-sonnet-4-5','modelShort':_0x2a44cb(0xe4)};}if(_0x3c3228[_0x2a44cb(0xdf)]||_0x3c3228['REPLIT_ENVIRONMENT'])return{'tool':_0x2a44cb(0x10f),'model':_0x2a44cb(0x104),'modelShort':''};if(_0x3c3228[_0x2a44cb(0x15b)])return{'tool':'cline','model':_0x2a44cb(0x104),'modelShort':''};if(_0x3c3228['CONTINUE_GLOBAL_DIR'])return{'tool':_0x2a44cb(0x11b),'model':_0x2a44cb(0x104),'modelShort':''};if(_0x3c3228[_0x2a44cb(0x121)]==='1')return{'tool':_0x2a44cb(0x160),'model':_0x2a44cb(0x14d),'modelShort':'gemini'};if(_0x3c3228['CLAUDE_EFFORT']){const _0x15d268=_0x3c3228[_0x2a44cb(0x119)]==='high'?'opus':_0x2a44cb(0xe4),_0x509a3e=_0x3c3228['CLAUDE_EFFORT']===_0x2a44cb(0xf0)?'claude-opus-4-8':_0x2a44cb(0x104);return{'tool':'','model':_0x509a3e,'modelShort':''};}if(_0x3c3228[_0x2a44cb(0x146)]&&exports['PRICING'][_0x3c3228['AIDER_MODEL']])return{'tool':_0x2a44cb(0x155),'model':_0x3c3228[_0x2a44cb(0x146)],'modelShort':''};if(_0x3c3228['VSCODE_PID']){const _0x33515b=(_0x3c3228['PATH']||'')[_0x2a44cb(0x14a)]();if(_0x33515b[_0x2a44cb(0xdd)](_0x2a44cb(0x152)))return{'tool':'cursor','model':'claude-sonnet-4-6','modelShort':_0x2a44cb(0xe4)};if(_0x33515b[_0x2a44cb(0xdd)](_0x2a44cb(0x12b)))return{'tool':'windsurf','model':_0x2a44cb(0x104),'modelShort':_0x2a44cb(0xe4)};}const _0x3d6327=process.env.TRIMPROMPT_MODEL||'';if(_0x3d6327&&exports[_0x2a44cb(0x129)][_0x3d6327])return{'tool':'','model':_0x3d6327,'modelShort':''};return _0x1a596a;}class Tracker{[a0_0x3165a2(0xf6)];[a0_0x3165a2(0xf1)];[a0_0x3165a2(0x110)];[a0_0x3165a2(0xf9)];[a0_0x3165a2(0x13a)];constructor(){const _0x358159=a0_0x3165a2;this[_0x358159(0xf6)]=path[_0x358159(0xda)](os['homedir'](),'.trimprompt'),this[_0x358159(0xf1)]=path[_0x358159(0xda)](this['baseDir'],_0x358159(0xea)),this[_0x358159(0x110)]=path[_0x358159(0xda)](this[_0x358159(0xf6)],_0x358159(0xe0)),this[_0x358159(0xf9)]=path['join'](this[_0x358159(0xf6)],'logs'),this[_0x358159(0x13d)]();}[a0_0x3165a2(0x13d)](){const _0x4c3dad=a0_0x3165a2;!fs['existsSync'](this['baseDir'])&&fs[_0x4c3dad(0x138)](this['baseDir'],{'recursive':!![]});!fs[_0x4c3dad(0xd8)](this[_0x4c3dad(0xf9)])&&fs[_0x4c3dad(0x138)](this['logsDir'],{'recursive':!![]});const _0x228873={'version':'1.0','telemetry_url':process.env.TRIMPROMPT_TELEMETRY_URL||'','max_output_tokens':0x1388,'redaction_enabled':!![],'default_model':_0x4c3dad(0x12e)};if(fs[_0x4c3dad(0xd8)](this['configPath']))try{const _0x5efa30=fs[_0x4c3dad(0xf3)](this[_0x4c3dad(0xf1)],_0x4c3dad(0xed));this[_0x4c3dad(0x13a)]={..._0x228873,...JSON['parse'](_0x5efa30)};}catch(_0x2271fb){this[_0x4c3dad(0x13a)]=_0x228873;}else this[_0x4c3dad(0x13a)]=_0x228873,this[_0x4c3dad(0xd7)]();!fs[_0x4c3dad(0xd8)](this[_0x4c3dad(0x110)])&&fs[_0x4c3dad(0x131)](this['statsPath'],JSON[_0x4c3dad(0x11e)]([]),'utf8');}['getConfig'](){const _0x5f424a=a0_0x3165a2;return process.env.TRIMPROMPT_TELEMETRY_URL&&(this[_0x5f424a(0x13a)][_0x5f424a(0x12f)]=process.env.TRIMPROMPT_TELEMETRY_URL),this[_0x5f424a(0x13a)];}['setConfig'](_0x52d4e4,_0x1a7a0e){const _0x3904f1=a0_0x3165a2;this[_0x3904f1(0x13a)][_0x52d4e4]=_0x1a7a0e,this[_0x3904f1(0xd7)]();}['saveConfig'](){const _0x37ff64=a0_0x3165a2;fs[_0x37ff64(0x131)](this[_0x37ff64(0xf1)],JSON[_0x37ff64(0x11e)](this[_0x37ff64(0x13a)],null,0x2),'utf8');}['getLogs'](){const _0x395ee5=a0_0x3165a2;try{if(!fs['existsSync'](this[_0x395ee5(0x110)]))return[];const _0x2c6c5d=fs['readFileSync'](this[_0x395ee5(0x110)],_0x395ee5(0xed));return JSON[_0x395ee5(0xd3)](_0x2c6c5d);}catch{return[];}}['saveLogs'](_0x144e64){const _0x15ba52=a0_0x3165a2;fs['writeFileSync'](this[_0x15ba52(0x110)],JSON['stringify'](_0x144e64,null,0x2),_0x15ba52(0xed));}[a0_0x3165a2(0x165)](_0x159af8,_0x582891,_0x19874b,_0x33804d,_0x38cdd8){const _0x25d1c3=a0_0x3165a2,_0x958cd4=this[_0x25d1c3(0xdb)](),_0xa6e48d=_0x582891[_0x25d1c3(0x12a)],_0x4fb333=_0x19874b[_0x25d1c3(0x12a)],_0x354ca5=Math[_0x25d1c3(0xde)](_0xa6e48d/0x4),_0x3f051f=Math[_0x25d1c3(0xde)](_0x4fb333/0x4),_0x5c80d5=Math[_0x25d1c3(0x123)](0x0,_0x354ca5-_0x3f051f),_0x3b15dd=detectSessionTool(),_0x1d50e0=_0x3b15dd[_0x25d1c3(0x105)],_0x1a2eda=Math[_0x25d1c3(0xdc)]()['toString'](0x24)['substring'](0x2,0xb);try{const {redactor:_0x190533}=require('./redactor'),_0x51e617=_0x190533?_0x190533[_0x25d1c3(0x115)](_0x582891):_0x582891;fs[_0x25d1c3(0x131)](path['join'](this[_0x25d1c3(0xf9)],_0x1a2eda+_0x25d1c3(0x127)),_0x51e617,_0x25d1c3(0xed)),fs[_0x25d1c3(0x131)](path[_0x25d1c3(0xda)](this[_0x25d1c3(0xf9)],_0x1a2eda+_0x25d1c3(0x147)),_0x19874b,_0x25d1c3(0xed));}catch{}const _0x43849e=_0x159af8[_0x25d1c3(0x113)]('\x20')[0x0]||'unknown',_0x232021=_0x3b15dd['tool']?_0x3b15dd[_0x25d1c3(0x142)]?_0x3b15dd[_0x25d1c3(0x10c)]+'-'+_0x3b15dd[_0x25d1c3(0x142)]+'-'+_0x43849e:_0x3b15dd[_0x25d1c3(0x10c)]+'-'+_0x43849e:_0x43849e,_0x3a280e={'id':_0x1a2eda,'timestamp':new Date()[_0x25d1c3(0xe1)](),'command':_0x232021,'raw_chars':_0xa6e48d,'compressed_chars':_0x4fb333,'estimated_raw_tokens':_0x354ca5,'estimated_compressed_tokens':_0x3f051f,'tokens_saved':_0x5c80d5,'model_used':_0x1d50e0,'exit_code':_0x33804d,'synced':![],'ai_detected':!!_0x3b15dd[_0x25d1c3(0x10c)],'secrets_found':_0x38cdd8?.[_0x25d1c3(0x15e)]||0x0,'secret_types':_0x38cdd8?.[_0x25d1c3(0x130)]||[]};_0x958cd4[_0x25d1c3(0x120)](_0x3a280e),this[_0x25d1c3(0x11f)](_0x958cd4);const _0x38c62d=this['getConfig']()[_0x25d1c3(0x12f)];return _0x38c62d&&_0x38c62d[_0x25d1c3(0xf5)]()[_0x25d1c3(0x12a)]>0x0&&this[_0x25d1c3(0x126)](),_0x38cdd8&&_0x38cdd8[_0x25d1c3(0x15e)]>0x0&&this[_0x25d1c3(0xee)](_0x3a280e,_0x38cdd8),_0x3a280e;}['sendSecurityAlert'](_0x5cbd77,_0x3873b7){const _0x14555a=a0_0x3165a2;try{let _0x4897cc=this['getConfig']()[_0x14555a(0x12f)]||'';if(!_0x4897cc)return;_0x4897cc=_0x4897cc[_0x14555a(0x145)](/\/api\/telemetry\/?$/,'/api/security/alert');if(!_0x4897cc['includes'](_0x14555a(0xd5)))_0x4897cc+=_0x14555a(0xd5);const {execSync:_0x228faf}=require(_0x14555a(0xf8));let _0x4ac4c3=_0x14555a(0x11d);try{_0x4ac4c3=require(_0x14555a(0xf8))[_0x14555a(0xcf)](_0x14555a(0x136),{'stdio':[_0x14555a(0x13b),_0x14555a(0x12d),_0x14555a(0x13b)]})['toString']()[_0x14555a(0xf5)]();}catch{}if(!_0x4ac4c3||!_0x4ac4c3[_0x14555a(0xdd)]('@'))try{_0x4ac4c3=require('os')[_0x14555a(0x156)]()[_0x14555a(0xe9)];}catch{}const _0x220c06=JSON[_0x14555a(0x11e)]({'developer_id':_0x4ac4c3,'timestamp':_0x5cbd77[_0x14555a(0x153)],'command':_0x5cbd77[_0x14555a(0x109)],'secrets_found':_0x3873b7[_0x14555a(0x15e)],'secret_types':_0x3873b7[_0x14555a(0x130)],'os':require('os')[_0x14555a(0x134)]()}),_0xcdc34f=_0x14555a(0x117)+JSON[_0x14555a(0x11e)](_0x4897cc)+_0x14555a(0x15f)+JSON[_0x14555a(0x11e)](_0x4897cc)+_0x14555a(0xe2)+JSON[_0x14555a(0x11e)](_0x220c06)+')',_0x358167=(0x0,child_process_1['spawn'])(process[_0x14555a(0x116)],['-e',_0xcdc34f],{'detached':!![],'stdio':_0x14555a(0x13b)});_0x358167['unref']();}catch{}}[a0_0x3165a2(0x126)](){const _0x1e0e16=a0_0x3165a2;try{const _0x550588=path[_0x1e0e16(0xda)](__dirname,'sync.js');if(fs[_0x1e0e16(0xd8)](_0x550588)){const _0x43aace=(0x0,child_process_1[_0x1e0e16(0x11c)])(process['execPath'],[_0x550588],{'detached':!![],'stdio':_0x1e0e16(0x13b)});_0x43aace[_0x1e0e16(0x157)]();}}catch{}}[a0_0x3165a2(0x14c)](_0xf7718a=a0_0x3165a2(0x10d)){const _0xf2f444=a0_0x3165a2,_0x3f7cca=this[_0xf2f444(0xdb)]();let _0x557752=0x0,_0xb6de1d=0x0,_0x384b48=0x0;for(const _0x4c7f4b of _0x3f7cca){_0x557752+=_0x4c7f4b[_0xf2f444(0x114)],_0xb6de1d+=_0x4c7f4b[_0xf2f444(0x15d)],_0x384b48+=_0x4c7f4b[_0xf2f444(0x139)];}let _0x30097a=_0xf7718a;(!_0x30097a||_0x30097a==='auto'||!exports[_0xf2f444(0x129)][_0x30097a])&&(_0x3f7cca[_0xf2f444(0x12a)]>0x0&&_0x3f7cca[_0x3f7cca[_0xf2f444(0x12a)]-0x1][_0xf2f444(0x133)]?_0x30097a=_0x3f7cca[_0x3f7cca[_0xf2f444(0x12a)]-0x1]['model_used']:_0x30097a=this['getConfig']()[_0xf2f444(0xf2)]||_0xf2f444(0xef));const _0x2c69cb=exports[_0xf2f444(0x129)][_0x30097a]||exports[_0xf2f444(0x129)][_0xf2f444(0xef)],_0x79e2f9=_0x384b48*_0x2c69cb['input_price_1m']/0xf4240,_0x2de2fa=_0x557752*_0x2c69cb[_0xf2f444(0x144)]/0xf4240,_0x3a571c=_0xb6de1d*_0x2c69cb[_0xf2f444(0x144)]/0xf4240,_0x2fd8c0=_0x557752>0x0?_0x384b48/_0x557752*0x64:0x0;return{'total_raw_tokens':_0x557752,'total_compressed_tokens':_0xb6de1d,'total_tokens_saved':_0x384b48,'savings_percentage':parseFloat(_0x2fd8c0['toFixed'](0x1)),'money_saved_usd':parseFloat(_0x79e2f9[_0xf2f444(0x118)](0x4)),'raw_cost_usd':parseFloat(_0x2de2fa['toFixed'](0x4)),'compressed_cost_usd':parseFloat(_0x3a571c['toFixed'](0x4)),'model_name':_0x2c69cb[_0xf2f444(0xe3)],'model_key':_0x30097a};}}exports[a0_0x3165a2(0x154)]=Tracker,exports[a0_0x3165a2(0x141)]=new Tracker();function a0_0x3082(){const _0x53bb9b=['devin','PRICING','length','windsurf','get','pipe','claude-opus-4-8','telemetry_url','secretTypes','writeFileSync','OpenAI\x20o3-mini','model_used','platform','codex','git\x20config\x20user.email','59342iFyTCs','mkdirSync','tokens_saved','config','ignore','7428penPGa','init','1862qYAdFX','gemini','create','tracker','modelShort','CLAUDE_CODE','input_price_1m','replace','AIDER_MODEL','.comp.txt','Gemini\x203.1\x20Flash-Lite','48968iEHpiv','toLowerCase','Claude\x20Opus\x204.8','getStatsSummary','gemini-3-1-pro','o3mini','4136610AhRFgZ','copilot','TRIMPROMPT_MODEL','cursor','timestamp','Tracker','aider','userInfo','unref','GEMINI_CLI','o3-mini','gemini-3-5-flash','CLINE_DATA_DIR','writable','estimated_compressed_tokens','secretsFound',').protocol===\x27https:\x27?\x27https\x27:\x27http\x27);const\x20r=h.request(','antigravity','__createBinding','flash','opus','default','logExecution','GPT-4.1\x20Mini','Gemini\x203.5\x20Live\x20Translate','execSync','claude_code','__importStar','prototype','parse','claude','/api/security/alert','Claude\x20Opus\x204.1\x20(deprecated)','saveConfig','existsSync','detectSessionTool','join','getLogs','random','includes','ceil','REPL_ID','stats.json','toISOString',',{method:\x27POST\x27,headers:{\x27Content-Type\x27:\x27application/json\x27}},()=>{});r.on(\x27error\x27,()=>{});r.end(','name','sonnet','588717aZojYP','AI_AGENT','pop','Claude\x20Sonnet\x204.6','username','config.json','COPILOT_MODEL','call','utf8','sendSecurityAlert','claude-3-5-sonnet','high','configPath','default_model','readFileSync','GPT-5.4','trim','baseDir','3UVerSq','child_process','logsDir','Claude\x20Sonnet\x204.5','3034323ithLvc','Gemini\x203.5\x20Flash','Claude\x20Opus\x204.5','github-copilot','Claude\x20Fable\x205','GPT-5.4\x20Nano','__setModuleDefault','__esModule','Claude\x20Mythos\x205','claude-sonnet-4-6','model','Claude\x20Opus\x204.7','4aYiKFc','GPT-4o\x20Mini','command','CURSOR_AGENT','claude-sonnet-4-5','tool','auto','hasOwnProperty','replit','statsPath','OpenAI\x20o1','CLAUDECODE','split','estimated_raw_tokens','redact','execPath','const\x20h=require(require(\x27url\x27).parse(','toFixed','CLAUDE_EFFORT','Claude\x20Haiku\x203.5','continue','spawn','unknown','stringify','saveLogs','push','ANTIGRAVITY_AGENT','claude-code','max','Cursor\x20Small','789075oHDSsm','triggerBackgroundSync','.raw.txt'];a0_0x3082=function(){return _0x53bb9b;};return a0_0x3082();}
1
+ 'use strict';const a0_0x3dc557=a0_0x41b9;(function(_0x2aed5a,_0x19aa3e){const _0x24cbda=a0_0x41b9,_0x5b93d9=_0x2aed5a();while(!![]){try{const _0x28e967=-parseInt(_0x24cbda(0x124))/0x1+parseInt(_0x24cbda(0x130))/0x2*(parseInt(_0x24cbda(0x16a))/0x3)+-parseInt(_0x24cbda(0x165))/0x4+parseInt(_0x24cbda(0x133))/0x5+parseInt(_0x24cbda(0x171))/0x6*(parseInt(_0x24cbda(0xf2))/0x7)+-parseInt(_0x24cbda(0x11d))/0x8+parseInt(_0x24cbda(0x104))/0x9*(parseInt(_0x24cbda(0xd8))/0xa);if(_0x28e967===_0x19aa3e)break;else _0x5b93d9['push'](_0x5b93d9['shift']());}catch(_0x4613d0){_0x5b93d9['push'](_0x5b93d9['shift']());}}}(a0_0x4758,0x82b88));var __createBinding=this&&this[a0_0x3dc557(0x11a)]||(Object[a0_0x3dc557(0x12d)]?function(_0x564f3b,_0x46f9e6,_0x2de9d9,_0x1e6073){const _0x2ed3cf=a0_0x3dc557;if(_0x1e6073===undefined)_0x1e6073=_0x2de9d9;var _0xedf1da=Object[_0x2ed3cf(0x176)](_0x46f9e6,_0x2de9d9);(!_0xedf1da||(_0x2ed3cf(0x13b)in _0xedf1da?!_0x46f9e6[_0x2ed3cf(0x100)]:_0xedf1da[_0x2ed3cf(0x16f)]||_0xedf1da['configurable']))&&(_0xedf1da={'enumerable':!![],'get':function(){return _0x46f9e6[_0x2de9d9];}}),Object[_0x2ed3cf(0x137)](_0x564f3b,_0x1e6073,_0xedf1da);}:function(_0x128050,_0x3cfba2,_0x316f9b,_0x3ebd2e){if(_0x3ebd2e===undefined)_0x3ebd2e=_0x316f9b;_0x128050[_0x3ebd2e]=_0x3cfba2[_0x316f9b];}),__setModuleDefault=this&&this[a0_0x3dc557(0x151)]||(Object[a0_0x3dc557(0x12d)]?function(_0x241c0c,_0x3be61a){const _0x110127=a0_0x3dc557;Object[_0x110127(0x137)](_0x241c0c,'default',{'enumerable':!![],'value':_0x3be61a});}:function(_0x4f510c,_0x3fb56b){const _0x542e36=a0_0x3dc557;_0x4f510c[_0x542e36(0x14d)]=_0x3fb56b;}),__importStar=this&&this[a0_0x3dc557(0x12c)]||(function(){var _0x15e727=function(_0x436729){const _0xefa78e=a0_0x41b9;return _0x15e727=Object[_0xefa78e(0x110)]||function(_0x18c808){const _0x41cfd=_0xefa78e;var _0x26aea2=[];for(var _0x459bd1 in _0x18c808)if(Object[_0x41cfd(0x118)][_0x41cfd(0x12b)][_0x41cfd(0x166)](_0x18c808,_0x459bd1))_0x26aea2[_0x26aea2['length']]=_0x459bd1;return _0x26aea2;},_0x15e727(_0x436729);};return function(_0x261444){const _0x2c0ac4=a0_0x41b9;if(_0x261444&&_0x261444[_0x2c0ac4(0x100)])return _0x261444;var _0xbe50bd={};if(_0x261444!=null){for(var _0x4d8651=_0x15e727(_0x261444),_0x3f4733=0x0;_0x3f4733<_0x4d8651[_0x2c0ac4(0x11e)];_0x3f4733++)if(_0x4d8651[_0x3f4733]!==_0x2c0ac4(0x14d))__createBinding(_0xbe50bd,_0x261444,_0x4d8651[_0x3f4733]);}return __setModuleDefault(_0xbe50bd,_0x261444),_0xbe50bd;};}());Object[a0_0x3dc557(0x137)](exports,a0_0x3dc557(0x100),{'value':!![]}),exports[a0_0x3dc557(0x15c)]=exports[a0_0x3dc557(0xd9)]=exports['PRICING']=void 0x0,exports[a0_0x3dc557(0x14a)]=detectSessionTool;function a0_0x41b9(_0x4bfec1,_0x205f98){_0x4bfec1=_0x4bfec1-0xd8;const _0x475804=a0_0x4758();let _0x41b938=_0x475804[_0x4bfec1];return _0x41b938;}const fs=__importStar(require('fs')),path=__importStar(require(a0_0x3dc557(0x134))),os=__importStar(require('os')),child_process_1=require(a0_0x3dc557(0x15b));exports[a0_0x3dc557(0x152)]={'claude-fable-5':{'name':'Claude\x20Fable\x205','input_price_1m':0xa},'claude-mythos-5':{'name':a0_0x3dc557(0x128),'input_price_1m':0xa},'claude-opus-4-8':{'name':'Claude\x20Opus\x204.8','input_price_1m':0x5},'claude-opus-4-7':{'name':a0_0x3dc557(0xdb),'input_price_1m':0x5},'claude-opus-4-5':{'name':a0_0x3dc557(0x129),'input_price_1m':0x5},'claude-opus-4-1':{'name':'Claude\x20Opus\x204.1\x20(deprecated)','input_price_1m':0xf},'claude-sonnet-4-6':{'name':a0_0x3dc557(0x168),'input_price_1m':0x3},'claude-sonnet-4-5':{'name':a0_0x3dc557(0x15d),'input_price_1m':0x3},'claude-3-5-sonnet':{'name':a0_0x3dc557(0xed),'input_price_1m':0x3},'claude-haiku-4-5':{'name':'Claude\x20Haiku\x204.5','input_price_1m':0x1},'claude-haiku-3-5':{'name':a0_0x3dc557(0xf6),'input_price_1m':0.8},'gpt-5-5':{'name':a0_0x3dc557(0xfb),'input_price_1m':0x5},'gpt-5-4':{'name':'GPT-5.4','input_price_1m':2.5},'gpt-4o':{'name':a0_0x3dc557(0xe8),'input_price_1m':2.5},'gpt-5-4-mini':{'name':a0_0x3dc557(0x101),'input_price_1m':0.75},'gpt-5-4-nano':{'name':a0_0x3dc557(0x156),'input_price_1m':0.2},'gpt-4-1-mini':{'name':a0_0x3dc557(0x11b),'input_price_1m':0.4},'gpt-4-1-nano':{'name':a0_0x3dc557(0x123),'input_price_1m':0.1},'gpt-4o-mini':{'name':a0_0x3dc557(0x103),'input_price_1m':0.15},'o1':{'name':a0_0x3dc557(0x175),'input_price_1m':0xf},'o1-mini':{'name':a0_0x3dc557(0xf0),'input_price_1m':0x3},'o3-mini':{'name':a0_0x3dc557(0xe2),'input_price_1m':1.1},'cursor-small':{'name':a0_0x3dc557(0x116),'input_price_1m':0.1},'gemini-3-1-pro':{'name':a0_0x3dc557(0x13a),'input_price_1m':0x2},'gemini-3-5-flash':{'name':a0_0x3dc557(0x15e),'input_price_1m':1.5},'gemini-3-1-flash-lite':{'name':a0_0x3dc557(0xff),'input_price_1m':0.45},'gemini-3-5-live-translate':{'name':a0_0x3dc557(0xef),'input_price_1m':3.5}};function detectSessionTool(){const _0x3e731a=a0_0x3dc557,_0x2255a9=process.env,_0x3354e1={'tool':'','model':_0x3e731a(0x145),'modelShort':''};if(_0x2255a9[_0x3e731a(0x172)]&&exports[_0x3e731a(0x152)][_0x2255a9[_0x3e731a(0x172)]])return{'tool':'','model':_0x2255a9[_0x3e731a(0x172)],'modelShort':''};const _0x477f68=(_0x2255a9['AI_AGENT']||'')['toLowerCase']();if(_0x477f68){if(_0x477f68['includes']('claude-code')||_0x477f68[_0x3e731a(0x157)](_0x3e731a(0xe0))){const _0x4b1ca4=_0x2255a9[_0x3e731a(0x12e)]===_0x3e731a(0x162)?_0x3e731a(0x106):'sonnet',_0x3755c2=_0x2255a9[_0x3e731a(0x12e)]===_0x3e731a(0x162)?_0x3e731a(0xfc):'claude-sonnet-4-6';return{'tool':_0x3e731a(0x13d),'model':_0x3755c2,'modelShort':_0x4b1ca4};}if(_0x477f68[_0x3e731a(0x157)]('cursor'))return{'tool':'cursor','model':_0x3e731a(0x145),'modelShort':'sonnet'};if(_0x477f68[_0x3e731a(0x157)]('github-copilot')||_0x477f68[_0x3e731a(0x157)](_0x3e731a(0x105))){const _0x6d952b=_0x2255a9[_0x3e731a(0x160)]||'';if(_0x6d952b&&exports[_0x3e731a(0x152)][_0x6d952b])return{'tool':_0x3e731a(0x105),'model':_0x6d952b,'modelShort':_0x6d952b['split']('-')[_0x3e731a(0x163)]()||''};return{'tool':_0x3e731a(0x105),'model':'claude-sonnet-4-5','modelShort':_0x3e731a(0x11f)};}if(_0x477f68['includes'](_0x3e731a(0x14c)))return{'tool':_0x3e731a(0x14c),'model':'gemini-3-5-flash','modelShort':_0x3e731a(0x117)};if(_0x477f68[_0x3e731a(0x157)](_0x3e731a(0xdf)))return{'tool':'codex','model':_0x3e731a(0x174),'modelShort':_0x3e731a(0x14b)};if(_0x477f68['includes'](_0x3e731a(0xe1)))return{'tool':'devin','model':_0x3e731a(0x145),'modelShort':''};if(_0x477f68[_0x3e731a(0x157)]('antigravity'))return{'tool':_0x3e731a(0x142),'model':_0x3e731a(0x107),'modelShort':_0x3e731a(0x14c)};if(_0x477f68['includes'](_0x3e731a(0x170))||_0x2255a9[_0x3e731a(0x138)])return{'tool':_0x3e731a(0x170),'model':_0x3e731a(0x145),'modelShort':''};return{'tool':_0x477f68[_0x3e731a(0x153)]('_')[0x0][_0x3e731a(0x153)]('-')[0x0],'model':_0x3e731a(0x145),'modelShort':''};}if(_0x2255a9[_0x3e731a(0x149)]==='1'||_0x2255a9['CLAUDE_CODE']==='1'){const _0x3c808f=_0x2255a9['CLAUDE_EFFORT']===_0x3e731a(0x162)?_0x3e731a(0x106):'sonnet',_0x3f6ac2=_0x2255a9[_0x3e731a(0x12e)]===_0x3e731a(0x162)?_0x3e731a(0xfc):_0x3e731a(0x145);return{'tool':_0x3e731a(0x13d),'model':_0x3f6ac2,'modelShort':_0x3c808f};}if(_0x2255a9['CURSOR_AGENT']==='1')return{'tool':_0x3e731a(0x131),'model':_0x3e731a(0x145),'modelShort':'sonnet'};if(_0x2255a9[_0x3e731a(0x122)]==='1')return{'tool':_0x3e731a(0x14c),'model':_0x3e731a(0x177),'modelShort':_0x3e731a(0x117)};if(_0x2255a9['COPILOT_MODEL']||_0x2255a9[_0x3e731a(0x169)]){const _0x3136d2=_0x2255a9[_0x3e731a(0x160)]||'';if(_0x3136d2&&exports[_0x3e731a(0x152)][_0x3136d2])return{'tool':_0x3e731a(0x105),'model':_0x3136d2,'modelShort':_0x3136d2[_0x3e731a(0x153)]('-')['pop']()||''};return{'tool':_0x3e731a(0x105),'model':_0x3e731a(0x136),'modelShort':_0x3e731a(0x11f)};}if(_0x2255a9[_0x3e731a(0x138)]||_0x2255a9[_0x3e731a(0x125)])return{'tool':_0x3e731a(0x170),'model':_0x3e731a(0x145),'modelShort':''};if(_0x2255a9['CLINE_DATA_DIR'])return{'tool':_0x3e731a(0x12a),'model':'claude-sonnet-4-6','modelShort':''};if(_0x2255a9['CONTINUE_GLOBAL_DIR'])return{'tool':_0x3e731a(0x112),'model':_0x3e731a(0x145),'modelShort':''};if(_0x2255a9['ANTIGRAVITY_AGENT']==='1')return{'tool':_0x3e731a(0x142),'model':'gemini-3-1-pro','modelShort':_0x3e731a(0x14c)};if(_0x2255a9[_0x3e731a(0x12e)]){const _0x36eb61=_0x2255a9[_0x3e731a(0x12e)]==='high'?_0x3e731a(0x106):'sonnet',_0x2c33af=_0x2255a9[_0x3e731a(0x12e)]==='high'?'claude-opus-4-8':_0x3e731a(0x145);return{'tool':'','model':_0x2c33af,'modelShort':''};}if(_0x2255a9['AIDER_MODEL']&&exports[_0x3e731a(0x152)][_0x2255a9[_0x3e731a(0xf7)]])return{'tool':_0x3e731a(0x15a),'model':_0x2255a9['AIDER_MODEL'],'modelShort':''};if(_0x2255a9[_0x3e731a(0x115)]){const _0x10ad1b=(_0x2255a9[_0x3e731a(0x14f)]||'')[_0x3e731a(0x15f)]();if(_0x10ad1b[_0x3e731a(0x157)](_0x3e731a(0x131)))return{'tool':_0x3e731a(0x131),'model':_0x3e731a(0x145),'modelShort':'sonnet'};if(_0x10ad1b[_0x3e731a(0x157)](_0x3e731a(0xdc)))return{'tool':'windsurf','model':_0x3e731a(0x145),'modelShort':_0x3e731a(0x11f)};}const _0x14600a=process.env.TRIMPROMPT_MODEL||'';if(_0x14600a&&exports[_0x3e731a(0x152)][_0x14600a])return{'tool':'','model':_0x14600a,'modelShort':''};return _0x3354e1;}class Tracker{[a0_0x3dc557(0x114)];['configPath'];[a0_0x3dc557(0x10c)];['logsDir'];[a0_0x3dc557(0xf4)];constructor(){const _0x169201=a0_0x3dc557;this['baseDir']=path[_0x169201(0xe9)](os[_0x169201(0x16d)](),_0x169201(0x146)),this[_0x169201(0x13c)]=path[_0x169201(0xe9)](this[_0x169201(0x114)],_0x169201(0xdd)),this[_0x169201(0x10c)]=path['join'](this['baseDir'],'stats.json'),this[_0x169201(0x13e)]=path['join'](this['baseDir'],_0x169201(0x159)),this[_0x169201(0xe7)]();}[a0_0x3dc557(0xe7)](){const _0x212fea=a0_0x3dc557;!fs[_0x212fea(0x13f)](this[_0x212fea(0x114)])&&fs['mkdirSync'](this['baseDir'],{'recursive':!![]});!fs[_0x212fea(0x13f)](this['logsDir'])&&fs[_0x212fea(0x10b)](this[_0x212fea(0x13e)],{'recursive':!![]});const _0x32b9d4={'version':'1.0','telemetry_url':process.env.TRIMPROMPT_TELEMETRY_URL||'','max_output_tokens':0x1388,'redaction_enabled':!![],'default_model':_0x212fea(0xfc)};if(fs[_0x212fea(0x13f)](this[_0x212fea(0x13c)]))try{const _0x1dd885=fs[_0x212fea(0xee)](this[_0x212fea(0x13c)],'utf8');this[_0x212fea(0xf4)]={..._0x32b9d4,...JSON[_0x212fea(0x10d)](_0x1dd885)};}catch(_0x20b9cf){this['config']=_0x32b9d4;}else this[_0x212fea(0xf4)]=_0x32b9d4,this[_0x212fea(0x16e)]();!fs['existsSync'](this[_0x212fea(0x10c)])&&fs[_0x212fea(0xfe)](this[_0x212fea(0x10c)],JSON[_0x212fea(0x120)]([]),_0x212fea(0x109));}['getConfig'](){const _0x5de3b3=a0_0x3dc557;return process.env.TRIMPROMPT_TELEMETRY_URL&&(this[_0x5de3b3(0xf4)][_0x5de3b3(0xe4)]=process.env.TRIMPROMPT_TELEMETRY_URL),this[_0x5de3b3(0xf4)];}[a0_0x3dc557(0x144)](_0x5ae806,_0x2a5210){const _0x8a2d80=a0_0x3dc557;this['config'][_0x5ae806]=_0x2a5210,this[_0x8a2d80(0x16e)]();}[a0_0x3dc557(0x16e)](){const _0x1d7bd9=a0_0x3dc557;fs[_0x1d7bd9(0xfe)](this[_0x1d7bd9(0x13c)],JSON[_0x1d7bd9(0x120)](this[_0x1d7bd9(0xf4)],null,0x2),'utf8');}[a0_0x3dc557(0xeb)](){const _0x4b53fd=a0_0x3dc557;try{if(!fs[_0x4b53fd(0x13f)](this[_0x4b53fd(0x10c)]))return[];const _0x46c54a=fs['readFileSync'](this[_0x4b53fd(0x10c)],_0x4b53fd(0x109));return JSON[_0x4b53fd(0x10d)](_0x46c54a);}catch{return[];}}['saveLogs'](_0x869d37){const _0x1b14dc=a0_0x3dc557;fs[_0x1b14dc(0xfe)](this[_0x1b14dc(0x10c)],JSON[_0x1b14dc(0x120)](_0x869d37,null,0x2),_0x1b14dc(0x109));}[a0_0x3dc557(0x102)](_0xf04292,_0x515376,_0x144673,_0x2a87a5,_0x1f0740){const _0x105f20=a0_0x3dc557,_0x16f119=this[_0x105f20(0xeb)](),_0x4bb225=_0x515376[_0x105f20(0x11e)],_0x2302ae=_0x144673[_0x105f20(0x11e)],_0x40a45d=Math[_0x105f20(0xea)](_0x4bb225/0x4),_0x35af09=Math[_0x105f20(0xea)](_0x2302ae/0x4),_0x1c9caa=Math[_0x105f20(0x143)](0x0,_0x40a45d-_0x35af09),_0x4e7c3f=detectSessionTool(),_0x1597be=_0x4e7c3f[_0x105f20(0x10e)],_0xaaa0f9=Math['random']()[_0x105f20(0x161)](0x24)[_0x105f20(0xf8)](0x2,0xb);try{const {redactor:_0x414b00}=require(_0x105f20(0x14e)),_0x30c6b4=_0x414b00?_0x414b00[_0x105f20(0xe5)](_0x515376):_0x515376;fs[_0x105f20(0xfe)](path[_0x105f20(0xe9)](this[_0x105f20(0x13e)],_0xaaa0f9+_0x105f20(0x108)),_0x30c6b4,_0x105f20(0x109)),fs[_0x105f20(0xfe)](path['join'](this[_0x105f20(0x13e)],_0xaaa0f9+_0x105f20(0x11c)),_0x144673,_0x105f20(0x109));}catch{}const _0x2b95fc=_0xf04292['split']('\x20')[0x0]||_0x105f20(0x16b),_0x2f3805=_0x4e7c3f['tool']?_0x4e7c3f['modelShort']?_0x4e7c3f[_0x105f20(0xfa)]+'-'+_0x4e7c3f[_0x105f20(0x126)]+'-'+_0x2b95fc:_0x4e7c3f[_0x105f20(0xfa)]+'-'+_0x2b95fc:_0x2b95fc,_0x4ab9e5={'id':_0xaaa0f9,'timestamp':new Date()[_0x105f20(0xfd)](),'command':_0x2f3805,'raw_chars':_0x4bb225,'compressed_chars':_0x2302ae,'estimated_raw_tokens':_0x40a45d,'estimated_compressed_tokens':_0x35af09,'tokens_saved':_0x1c9caa,'model_used':_0x1597be,'exit_code':_0x2a87a5,'synced':![],'ai_detected':!!_0x4e7c3f[_0x105f20(0xfa)],'secrets_found':_0x1f0740?.[_0x105f20(0x119)]||0x0,'secret_types':_0x1f0740?.[_0x105f20(0x135)]||[]};_0x16f119[_0x105f20(0xf5)](_0x4ab9e5),this[_0x105f20(0xde)](_0x16f119);const _0x2e9c63=this[_0x105f20(0x173)]()[_0x105f20(0xe4)];return _0x2e9c63&&_0x2e9c63[_0x105f20(0xf3)]()['length']>0x0&&this['triggerBackgroundSync'](),_0x1f0740&&_0x1f0740['secretsFound']>0x0&&this['sendSecurityAlert'](_0x4ab9e5,_0x1f0740),_0x4ab9e5;}[a0_0x3dc557(0x141)](_0x586bf0,_0x167785){const _0x32e265=a0_0x3dc557;try{let _0x2b2bd0=this[_0x32e265(0x173)]()[_0x32e265(0xe4)]||'';if(!_0x2b2bd0)return;_0x2b2bd0=_0x2b2bd0[_0x32e265(0x12f)](/\/api\/telemetry\/?$/,_0x32e265(0xf9));if(!_0x2b2bd0[_0x32e265(0x157)](_0x32e265(0xf9)))_0x2b2bd0+='/api/security/alert';const {execSync:_0x40f9fc}=require('child_process');let _0x111460=_0x32e265(0x16b);try{_0x111460=require(_0x32e265(0x15b))[_0x32e265(0x10a)](_0x32e265(0x132),{'stdio':[_0x32e265(0x167),'pipe',_0x32e265(0x167)]})[_0x32e265(0x161)]()[_0x32e265(0xf3)]();}catch{}if(!_0x111460||!_0x111460[_0x32e265(0x157)]('@'))try{_0x111460=require('os')['userInfo']()['username'];}catch{}const _0x536af4=JSON[_0x32e265(0x120)]({'developer_id':_0x111460,'timestamp':_0x586bf0[_0x32e265(0x16c)],'command':_0x586bf0[_0x32e265(0x158)],'secrets_found':_0x167785[_0x32e265(0x119)],'secret_types':_0x167785[_0x32e265(0x135)],'os':require('os')[_0x32e265(0x150)]()}),_0x38a546=_0x32e265(0xe3)+JSON['stringify'](_0x2b2bd0)+_0x32e265(0x113)+JSON[_0x32e265(0x120)](_0x2b2bd0)+_0x32e265(0xf1)+JSON[_0x32e265(0x120)](_0x536af4)+')',_0x5786de=(0x0,child_process_1[_0x32e265(0x147)])(process[_0x32e265(0x127)],['-e',_0x38a546],{'detached':!![],'stdio':_0x32e265(0x167)});_0x5786de[_0x32e265(0x10f)]();}catch{}}[a0_0x3dc557(0xe6)](){const _0x1c0b6b=a0_0x3dc557;try{const _0x3f98d3=path['join'](__dirname,_0x1c0b6b(0x164));if(fs[_0x1c0b6b(0x13f)](_0x3f98d3)){const _0x46d2c3=(0x0,child_process_1[_0x1c0b6b(0x147)])(process[_0x1c0b6b(0x127)],[_0x3f98d3],{'detached':!![],'stdio':_0x1c0b6b(0x167)});_0x46d2c3['unref']();}}catch{}}[a0_0x3dc557(0x121)](_0x3efd86=a0_0x3dc557(0x148)){const _0x55e760=a0_0x3dc557,_0x26fd88=this['getLogs']();let _0x5d1998=0x0,_0x25f7c3=0x0,_0x266804=0x0;for(const _0xf9b6b2 of _0x26fd88){_0x5d1998+=_0xf9b6b2[_0x55e760(0x139)],_0x25f7c3+=_0xf9b6b2['estimated_compressed_tokens'],_0x266804+=_0xf9b6b2[_0x55e760(0xec)];}let _0x3b2784=_0x3efd86;(!_0x3b2784||_0x3b2784===_0x55e760(0x148)||!exports[_0x55e760(0x152)][_0x3b2784])&&(_0x26fd88['length']>0x0&&_0x26fd88[_0x26fd88[_0x55e760(0x11e)]-0x1][_0x55e760(0x111)]?_0x3b2784=_0x26fd88[_0x26fd88[_0x55e760(0x11e)]-0x1][_0x55e760(0x111)]:_0x3b2784=this['getConfig']()[_0x55e760(0x154)]||'claude-3-5-sonnet');const _0x4fad5a=exports[_0x55e760(0x152)][_0x3b2784]||exports[_0x55e760(0x152)][_0x55e760(0x155)],_0x1782e1=_0x266804*_0x4fad5a[_0x55e760(0x140)]/0xf4240,_0xbb310a=_0x5d1998*_0x4fad5a[_0x55e760(0x140)]/0xf4240,_0x5b5bf9=_0x25f7c3*_0x4fad5a[_0x55e760(0x140)]/0xf4240,_0x302df8=_0x5d1998>0x0?_0x266804/_0x5d1998*0x64:0x0;return{'total_raw_tokens':_0x5d1998,'total_compressed_tokens':_0x25f7c3,'total_tokens_saved':_0x266804,'savings_percentage':parseFloat(_0x302df8[_0x55e760(0xda)](0x1)),'money_saved_usd':parseFloat(_0x1782e1[_0x55e760(0xda)](0x4)),'raw_cost_usd':parseFloat(_0xbb310a[_0x55e760(0xda)](0x4)),'compressed_cost_usd':parseFloat(_0x5b5bf9[_0x55e760(0xda)](0x4)),'model_name':_0x4fad5a['name'],'model_key':_0x3b2784};}}exports[a0_0x3dc557(0xd9)]=Tracker,exports[a0_0x3dc557(0x15c)]=new Tracker();function a0_0x4758(){const _0x55895b=['spawn','auto','CLAUDECODE','detectSessionTool','o3mini','gemini','default','./redactor','PATH','platform','__setModuleDefault','PRICING','split','default_model','claude-3-5-sonnet','GPT-5.4\x20Nano','includes','command','logs','aider','child_process','tracker','Claude\x20Sonnet\x204.5','Gemini\x203.5\x20Flash','toLowerCase','COPILOT_MODEL','toString','high','pop','sync.js','3759176aRhhrj','call','ignore','Claude\x20Sonnet\x204.6','COPILOT_GITHUB_TOKEN','180AqKstb','unknown','timestamp','homedir','saveConfig','writable','replit','30sMJqgs','TRIMPROMPT_MODEL','getConfig','o3-mini','OpenAI\x20o1','getOwnPropertyDescriptor','gemini-3-5-flash','3370zZtRkL','Tracker','toFixed','Claude\x20Opus\x204.7','windsurf','config.json','saveLogs','codex','claude_code','devin','OpenAI\x20o3-mini','const\x20h=require(require(\x27url\x27).parse(','telemetry_url','redact','triggerBackgroundSync','init','GPT-4o','join','ceil','getLogs','tokens_saved','Claude\x203.5\x20Sonnet','readFileSync','Gemini\x203.5\x20Live\x20Translate','OpenAI\x20o1-mini',',{method:\x27POST\x27,headers:{\x27Content-Type\x27:\x27application/json\x27}},()=>{});r.on(\x27error\x27,()=>{});r.end(','682710WXGcKh','trim','config','push','Claude\x20Haiku\x203.5','AIDER_MODEL','substring','/api/security/alert','tool','GPT-5.5','claude-opus-4-8','toISOString','writeFileSync','Gemini\x203.1\x20Flash-Lite','__esModule','GPT-5.4\x20Mini','logExecution','GPT-4o\x20Mini','42156ABxFnk','copilot','opus','gemini-3-1-pro','.raw.txt','utf8','execSync','mkdirSync','statsPath','parse','model','unref','getOwnPropertyNames','model_used','continue',').protocol===\x27https:\x27?\x27https\x27:\x27http\x27);const\x20r=h.request(','baseDir','VSCODE_PID','Cursor\x20Small','flash','prototype','secretsFound','__createBinding','GPT-4.1\x20Mini','.comp.txt','6568728PAWtXH','length','sonnet','stringify','getStatsSummary','GEMINI_CLI','GPT-4.1\x20Nano','800066fSkZRE','REPLIT_ENVIRONMENT','modelShort','execPath','Claude\x20Mythos\x205','Claude\x20Opus\x204.5','cline','hasOwnProperty','__importStar','create','CLAUDE_EFFORT','replace','11902NyEpQd','cursor','git\x20config\x20user.email','3365825dCOaJc','path','secretTypes','claude-sonnet-4-5','defineProperty','REPL_ID','estimated_raw_tokens','Gemini\x203.1\x20Pro','get','configPath','claude','logsDir','existsSync','input_price_1m','sendSecurityAlert','antigravity','max','setConfig','claude-sonnet-4-6','.trimprompt'];a0_0x4758=function(){return _0x55895b;};return a0_0x4758();}