trimprompt 1.0.10 → 1.0.12

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';const a0_0x10e4bf=a0_0x1671;(function(_0x26dd45,_0x57fd19){const _0x3bf5b2=a0_0x1671,_0x3b7e64=_0x26dd45();while(!![]){try{const _0x11f56d=parseInt(_0x3bf5b2(0x19d))/0x1+-parseInt(_0x3bf5b2(0x1d4))/0x2+parseInt(_0x3bf5b2(0x184))/0x3*(-parseInt(_0x3bf5b2(0x195))/0x4)+-parseInt(_0x3bf5b2(0x18e))/0x5+-parseInt(_0x3bf5b2(0x17f))/0x6+-parseInt(_0x3bf5b2(0x1cd))/0x7*(-parseInt(_0x3bf5b2(0x16a))/0x8)+parseInt(_0x3bf5b2(0x1c3))/0x9;if(_0x11f56d===_0x57fd19)break;else _0x3b7e64['push'](_0x3b7e64['shift']());}catch(_0x30e8db){_0x3b7e64['push'](_0x3b7e64['shift']());}}}(a0_0x1cde,0x2ebdc));function a0_0x1cde(){const _0x16b48f=['toString','baseDir','includes','GPT-4.1\x20Mini','5133123zBFrUo','codex','CURSOR_AGENT','CLAUDECODE','estimated_compressed_tokens','sonnet','Claude\x20Fable\x205','flash','pop','REPL_ID','7CETfGs','toISOString','model','cursor','sync.js','Gemini\x203.1\x20Pro','Cursor\x20Small','739708dhLJFm','GPT-5.5','saveConfig','Claude\x20Opus\x204.5','Claude\x20Opus\x204.8','existsSync','PRICING','.raw.txt','default_model','claude-sonnet-4-5','OpenAI\x20o1','Claude\x20Opus\x204.7','toFixed','TRIMPROMPT_MODEL','input_price_1m','substring','logsDir','Tracker','tool','claude-sonnet-4-6','2418408IAHqyd','tracker','getStatsSummary','CLINE_DATA_DIR','cline','configurable','CONTINUE_GLOBAL_DIR','parse','tokens_saved','config','setConfig','utf8','replit','PATH','triggerBackgroundSync','stringify','Claude\x20Opus\x204.1\x20(deprecated)','ceil','__createBinding','gemini','length','1272612RkjKrj','GPT-5.4','1.0','Gemini\x203.5\x20Live\x20Translate','random','130044HoppMQ','saveLogs','REPLIT_ENVIRONMENT','auto','push','claude-code','ANTIGRAVITY_AGENT','default','getConfig','split','599110AXmCsL','COPILOT_MODEL','OpenAI\x20o1-mini','__esModule','hasOwnProperty','CLAUDE_CODE','create','16OXPSPD','getOwnPropertyDescriptor','copilot','high','claude','join','claude-opus-4-8','logs','193974gaFKgn','GEMINI_CLI','Claude\x20Mythos\x205','gemini-3-1-pro','GPT-5.4\x20Mini','get','configPath','toLowerCase','getLogs','unknown','AI_AGENT','GPT-4o','prototype','modelShort','GPT-4.1\x20Nano','readFileSync','execPath','claude_code','Gemini\x203.1\x20Flash-Lite','Gemini\x203.5\x20Flash','github-copilot','Claude\x20Sonnet\x204.6','opus','writeFileSync','__importStar','homedir','statsPath','model_used','AIDER_MODEL','antigravity','mkdirSync','CLAUDE_EFFORT','trim','logExecution'];a0_0x1cde=function(){return _0x16b48f;};return a0_0x1cde();}var __createBinding=this&&this[a0_0x10e4bf(0x17c)]||(Object[a0_0x10e4bf(0x194)]?function(_0x2c3f77,_0x1e4e01,_0x2a3f9c,_0x2d40fb){const _0x3ea4d6=a0_0x10e4bf;if(_0x2d40fb===undefined)_0x2d40fb=_0x2a3f9c;var _0x19351d=Object[_0x3ea4d6(0x196)](_0x1e4e01,_0x2a3f9c);(!_0x19351d||(_0x3ea4d6(0x1a2)in _0x19351d?!_0x1e4e01[_0x3ea4d6(0x191)]:_0x19351d['writable']||_0x19351d[_0x3ea4d6(0x16f)]))&&(_0x19351d={'enumerable':!![],'get':function(){return _0x1e4e01[_0x2a3f9c];}}),Object['defineProperty'](_0x2c3f77,_0x2d40fb,_0x19351d);}:function(_0x21ca8c,_0x30fb32,_0x3dff59,_0x3fc6f8){if(_0x3fc6f8===undefined)_0x3fc6f8=_0x3dff59;_0x21ca8c[_0x3fc6f8]=_0x30fb32[_0x3dff59];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a0_0x10e4bf(0x194)]?function(_0x156593,_0x5c2c4e){const _0x2cff7a=a0_0x10e4bf;Object['defineProperty'](_0x156593,_0x2cff7a(0x18b),{'enumerable':!![],'value':_0x5c2c4e});}:function(_0x182d08,_0x13002c){_0x182d08['default']=_0x13002c;}),__importStar=this&&this[a0_0x10e4bf(0x1b5)]||(function(){var _0x24405a=function(_0x1e0767){return _0x24405a=Object['getOwnPropertyNames']||function(_0x3d9515){const _0x3d2307=a0_0x1671;var _0x2687ab=[];for(var _0x415da7 in _0x3d9515)if(Object[_0x3d2307(0x1a9)][_0x3d2307(0x192)]['call'](_0x3d9515,_0x415da7))_0x2687ab[_0x2687ab[_0x3d2307(0x17e)]]=_0x415da7;return _0x2687ab;},_0x24405a(_0x1e0767);};return function(_0x218208){const _0x4c45ed=a0_0x1671;if(_0x218208&&_0x218208[_0x4c45ed(0x191)])return _0x218208;var _0x4f3309={};if(_0x218208!=null){for(var _0x509fb5=_0x24405a(_0x218208),_0x322880=0x0;_0x322880<_0x509fb5[_0x4c45ed(0x17e)];_0x322880++)if(_0x509fb5[_0x322880]!==_0x4c45ed(0x18b))__createBinding(_0x4f3309,_0x218208,_0x509fb5[_0x322880]);}return __setModuleDefault(_0x4f3309,_0x218208),_0x4f3309;};}());Object['defineProperty'](exports,a0_0x10e4bf(0x191),{'value':!![]}),exports['tracker']=exports[a0_0x10e4bf(0x167)]=exports[a0_0x10e4bf(0x1da)]=void 0x0;const fs=__importStar(require('fs')),path=__importStar(require('path')),os=__importStar(require('os')),child_process_1=require('child_process');exports['PRICING']={'claude-fable-5':{'name':a0_0x10e4bf(0x1c9),'input_price_1m':0xa},'claude-mythos-5':{'name':a0_0x10e4bf(0x19f),'input_price_1m':0xa},'claude-opus-4-8':{'name':a0_0x10e4bf(0x1d8),'input_price_1m':0x5},'claude-opus-4-7':{'name':a0_0x10e4bf(0x1df),'input_price_1m':0x5},'claude-opus-4-5':{'name':a0_0x10e4bf(0x1d7),'input_price_1m':0x5},'claude-opus-4-1':{'name':a0_0x10e4bf(0x17a),'input_price_1m':0xf},'claude-sonnet-4-6':{'name':a0_0x10e4bf(0x1b2),'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':'Claude\x20Haiku\x204.5','input_price_1m':0x1},'claude-haiku-3-5':{'name':'Claude\x20Haiku\x203.5','input_price_1m':0.8},'gpt-5-5':{'name':a0_0x10e4bf(0x1d5),'input_price_1m':0x5},'gpt-5-4':{'name':a0_0x10e4bf(0x180),'input_price_1m':2.5},'gpt-4o':{'name':a0_0x10e4bf(0x1a8),'input_price_1m':2.5},'gpt-5-4-mini':{'name':a0_0x10e4bf(0x1a1),'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_0x10e4bf(0x1c2),'input_price_1m':0.4},'gpt-4-1-nano':{'name':a0_0x10e4bf(0x1ab),'input_price_1m':0.1},'gpt-4o-mini':{'name':'GPT-4o\x20Mini','input_price_1m':0.15},'o1':{'name':a0_0x10e4bf(0x1de),'input_price_1m':0xf},'o1-mini':{'name':a0_0x10e4bf(0x190),'input_price_1m':0x3},'o3-mini':{'name':'OpenAI\x20o3-mini','input_price_1m':1.1},'cursor-small':{'name':a0_0x10e4bf(0x1d3),'input_price_1m':0.1},'gemini-3-1-pro':{'name':a0_0x10e4bf(0x1d2),'input_price_1m':0x2},'gemini-3-5-flash':{'name':a0_0x10e4bf(0x1b0),'input_price_1m':1.5},'gemini-3-1-flash-lite':{'name':a0_0x10e4bf(0x1af),'input_price_1m':0.45},'gemini-3-5-live-translate':{'name':a0_0x10e4bf(0x182),'input_price_1m':3.5}};function detectSessionTool(){const _0x2382eb=a0_0x10e4bf,_0x12e3ad=process.env,_0x5e3f7c={'tool':'','model':_0x2382eb(0x169),'modelShort':''};if(_0x12e3ad[_0x2382eb(0x163)]&&exports[_0x2382eb(0x1da)][_0x12e3ad[_0x2382eb(0x163)]])return{'tool':'','model':_0x12e3ad[_0x2382eb(0x163)],'modelShort':''};const _0x271fc4=(_0x12e3ad[_0x2382eb(0x1a7)]||'')[_0x2382eb(0x1a4)]();if(_0x271fc4){if(_0x271fc4[_0x2382eb(0x1c1)](_0x2382eb(0x189))||_0x271fc4['includes'](_0x2382eb(0x1ae))){const _0x2699bc=_0x12e3ad[_0x2382eb(0x1bc)]==='high'?_0x2382eb(0x1b3):'sonnet',_0x504b2c=_0x12e3ad[_0x2382eb(0x1bc)]===_0x2382eb(0x198)?_0x2382eb(0x19b):_0x2382eb(0x169);return{'tool':_0x2382eb(0x199),'model':_0x504b2c,'modelShort':_0x2699bc};}if(_0x271fc4[_0x2382eb(0x1c1)](_0x2382eb(0x1d0)))return{'tool':_0x2382eb(0x1d0),'model':_0x2382eb(0x169),'modelShort':_0x2382eb(0x1c8)};if(_0x271fc4[_0x2382eb(0x1c1)](_0x2382eb(0x1b1))||_0x271fc4[_0x2382eb(0x1c1)](_0x2382eb(0x197))){const _0x485cdd=_0x12e3ad[_0x2382eb(0x18f)]||'';if(_0x485cdd&&exports['PRICING'][_0x485cdd])return{'tool':_0x2382eb(0x197),'model':_0x485cdd,'modelShort':_0x485cdd[_0x2382eb(0x18d)]('-')['pop']()||''};return{'tool':_0x2382eb(0x197),'model':_0x2382eb(0x1dd),'modelShort':_0x2382eb(0x1c8)};}if(_0x271fc4[_0x2382eb(0x1c1)]('gemini'))return{'tool':_0x2382eb(0x17d),'model':'gemini-3-5-flash','modelShort':_0x2382eb(0x1ca)};if(_0x271fc4[_0x2382eb(0x1c1)](_0x2382eb(0x1c4)))return{'tool':'codex','model':'o3-mini','modelShort':'o3mini'};if(_0x271fc4[_0x2382eb(0x1c1)]('devin'))return{'tool':'devin','model':_0x2382eb(0x169),'modelShort':''};if(_0x271fc4[_0x2382eb(0x1c1)](_0x2382eb(0x1ba)))return{'tool':_0x2382eb(0x1ba),'model':'gemini-3-1-pro','modelShort':'gemini'};if(_0x271fc4[_0x2382eb(0x1c1)](_0x2382eb(0x176))||_0x12e3ad[_0x2382eb(0x1cc)])return{'tool':'replit','model':'claude-sonnet-4-6','modelShort':''};return{'tool':_0x271fc4[_0x2382eb(0x18d)]('_')[0x0][_0x2382eb(0x18d)]('-')[0x0],'model':_0x2382eb(0x169),'modelShort':''};}if(_0x12e3ad[_0x2382eb(0x1c6)]==='1'||_0x12e3ad[_0x2382eb(0x193)]==='1'){const _0x18a0cd=_0x12e3ad[_0x2382eb(0x1bc)]===_0x2382eb(0x198)?'opus':_0x2382eb(0x1c8),_0x9f88f=_0x12e3ad[_0x2382eb(0x1bc)]===_0x2382eb(0x198)?_0x2382eb(0x19b):'claude-sonnet-4-6';return{'tool':_0x2382eb(0x199),'model':_0x9f88f,'modelShort':_0x18a0cd};}if(_0x12e3ad[_0x2382eb(0x1c5)]==='1')return{'tool':_0x2382eb(0x1d0),'model':_0x2382eb(0x169),'modelShort':_0x2382eb(0x1c8)};if(_0x12e3ad[_0x2382eb(0x19e)]==='1')return{'tool':_0x2382eb(0x17d),'model':'gemini-3-5-flash','modelShort':_0x2382eb(0x1ca)};if(_0x12e3ad[_0x2382eb(0x18f)]||_0x12e3ad['COPILOT_GITHUB_TOKEN']){const _0x28e66b=_0x12e3ad['COPILOT_MODEL']||'';if(_0x28e66b&&exports[_0x2382eb(0x1da)][_0x28e66b])return{'tool':_0x2382eb(0x197),'model':_0x28e66b,'modelShort':_0x28e66b[_0x2382eb(0x18d)]('-')[_0x2382eb(0x1cb)]()||''};return{'tool':_0x2382eb(0x197),'model':'claude-sonnet-4-5','modelShort':_0x2382eb(0x1c8)};}if(_0x12e3ad[_0x2382eb(0x1cc)]||_0x12e3ad[_0x2382eb(0x186)])return{'tool':_0x2382eb(0x176),'model':'claude-sonnet-4-6','modelShort':''};if(_0x12e3ad[_0x2382eb(0x16d)])return{'tool':_0x2382eb(0x16e),'model':_0x2382eb(0x169),'modelShort':''};if(_0x12e3ad[_0x2382eb(0x170)])return{'tool':'continue','model':_0x2382eb(0x169),'modelShort':''};if(_0x12e3ad[_0x2382eb(0x18a)]==='1')return{'tool':_0x2382eb(0x1ba),'model':_0x2382eb(0x1a0),'modelShort':'gemini'};if(_0x12e3ad['CLAUDE_EFFORT']){const _0x325725=_0x12e3ad[_0x2382eb(0x1bc)]===_0x2382eb(0x198)?_0x2382eb(0x1b3):_0x2382eb(0x1c8),_0x1047f6=_0x12e3ad[_0x2382eb(0x1bc)]===_0x2382eb(0x198)?_0x2382eb(0x19b):_0x2382eb(0x169);return{'tool':'','model':_0x1047f6,'modelShort':''};}if(_0x12e3ad['AIDER_MODEL']&&exports[_0x2382eb(0x1da)][_0x12e3ad[_0x2382eb(0x1b9)]])return{'tool':'aider','model':_0x12e3ad[_0x2382eb(0x1b9)],'modelShort':''};if(_0x12e3ad['VSCODE_PID']){const _0x31fbd4=(_0x12e3ad[_0x2382eb(0x177)]||'')[_0x2382eb(0x1a4)]();if(_0x31fbd4[_0x2382eb(0x1c1)](_0x2382eb(0x1d0)))return{'tool':_0x2382eb(0x1d0),'model':'claude-sonnet-4-6','modelShort':_0x2382eb(0x1c8)};if(_0x31fbd4['includes']('windsurf'))return{'tool':'windsurf','model':'claude-sonnet-4-6','modelShort':'sonnet'};}const _0x94b6d=process.env.TRIMPROMPT_MODEL||'';if(_0x94b6d&&exports[_0x2382eb(0x1da)][_0x94b6d])return{'tool':'','model':_0x94b6d,'modelShort':''};return _0x5e3f7c;}class Tracker{[a0_0x10e4bf(0x1c0)];[a0_0x10e4bf(0x1a3)];[a0_0x10e4bf(0x1b7)];[a0_0x10e4bf(0x166)];[a0_0x10e4bf(0x173)];constructor(){const _0x219fb9=a0_0x10e4bf;this[_0x219fb9(0x1c0)]=path['join'](os[_0x219fb9(0x1b6)](),'.trimprompt'),this[_0x219fb9(0x1a3)]=path[_0x219fb9(0x19a)](this[_0x219fb9(0x1c0)],'config.json'),this[_0x219fb9(0x1b7)]=path[_0x219fb9(0x19a)](this['baseDir'],'stats.json'),this[_0x219fb9(0x166)]=path[_0x219fb9(0x19a)](this[_0x219fb9(0x1c0)],_0x219fb9(0x19c)),this['init']();}['init'](){const _0x174f7a=a0_0x10e4bf;!fs[_0x174f7a(0x1d9)](this[_0x174f7a(0x1c0)])&&fs[_0x174f7a(0x1bb)](this[_0x174f7a(0x1c0)],{'recursive':!![]});!fs[_0x174f7a(0x1d9)](this[_0x174f7a(0x166)])&&fs[_0x174f7a(0x1bb)](this[_0x174f7a(0x166)],{'recursive':!![]});const _0x462048={'version':_0x174f7a(0x181),'telemetry_url':process.env.TRIMPROMPT_TELEMETRY_URL||'','max_output_tokens':0x1388,'redaction_enabled':!![],'default_model':'claude-opus-4-8'};if(fs['existsSync'](this[_0x174f7a(0x1a3)]))try{const _0x2e3f1d=fs[_0x174f7a(0x1ac)](this[_0x174f7a(0x1a3)],'utf8');this[_0x174f7a(0x173)]={..._0x462048,...JSON[_0x174f7a(0x171)](_0x2e3f1d)};}catch(_0x4bdfff){this[_0x174f7a(0x173)]=_0x462048;}else this[_0x174f7a(0x173)]=_0x462048,this['saveConfig']();!fs[_0x174f7a(0x1d9)](this[_0x174f7a(0x1b7)])&&fs[_0x174f7a(0x1b4)](this[_0x174f7a(0x1b7)],JSON[_0x174f7a(0x179)]([]),_0x174f7a(0x175));}[a0_0x10e4bf(0x18c)](){const _0x218253=a0_0x10e4bf;return process.env.TRIMPROMPT_TELEMETRY_URL&&(this[_0x218253(0x173)]['telemetry_url']=process.env.TRIMPROMPT_TELEMETRY_URL),this['config'];}[a0_0x10e4bf(0x174)](_0x29926e,_0x254a56){const _0x508443=a0_0x10e4bf;this['config'][_0x29926e]=_0x254a56,this[_0x508443(0x1d6)]();}[a0_0x10e4bf(0x1d6)](){const _0x54e151=a0_0x10e4bf;fs[_0x54e151(0x1b4)](this[_0x54e151(0x1a3)],JSON[_0x54e151(0x179)](this[_0x54e151(0x173)],null,0x2),_0x54e151(0x175));}[a0_0x10e4bf(0x1a5)](){const _0x528a93=a0_0x10e4bf;try{if(!fs[_0x528a93(0x1d9)](this[_0x528a93(0x1b7)]))return[];const _0x830a5e=fs[_0x528a93(0x1ac)](this[_0x528a93(0x1b7)],_0x528a93(0x175));return JSON[_0x528a93(0x171)](_0x830a5e);}catch{return[];}}[a0_0x10e4bf(0x185)](_0x29f921){const _0x21783c=a0_0x10e4bf;fs[_0x21783c(0x1b4)](this['statsPath'],JSON['stringify'](_0x29f921,null,0x2),_0x21783c(0x175));}[a0_0x10e4bf(0x1be)](_0x42e8ef,_0x7c5a21,_0x35cf4e,_0x57f716){const _0x2fd804=a0_0x10e4bf,_0x5dcf48=this[_0x2fd804(0x1a5)](),_0x1f8678=_0x7c5a21[_0x2fd804(0x17e)],_0x1980d9=_0x35cf4e[_0x2fd804(0x17e)],_0x80f2cc=Math[_0x2fd804(0x17b)](_0x1f8678/0x4),_0x28167d=Math[_0x2fd804(0x17b)](_0x1980d9/0x4),_0xfb3aed=Math['max'](0x0,_0x80f2cc-_0x28167d),_0x2840b7=detectSessionTool(),_0x58feeb=_0x2840b7[_0x2fd804(0x1cf)],_0x2f25e9=Math[_0x2fd804(0x183)]()[_0x2fd804(0x1bf)](0x24)[_0x2fd804(0x165)](0x2,0xb);try{fs[_0x2fd804(0x1b4)](path['join'](this[_0x2fd804(0x166)],_0x2f25e9+_0x2fd804(0x1db)),_0x7c5a21,'utf8'),fs[_0x2fd804(0x1b4)](path[_0x2fd804(0x19a)](this[_0x2fd804(0x166)],_0x2f25e9+'.comp.txt'),_0x35cf4e,_0x2fd804(0x175));}catch{}const _0xa77318=_0x42e8ef[_0x2fd804(0x18d)]('\x20')[0x0]||_0x2fd804(0x1a6),_0x4efde=_0x2840b7['tool']?_0x2840b7[_0x2fd804(0x1aa)]?_0x2840b7[_0x2fd804(0x168)]+'-'+_0x2840b7[_0x2fd804(0x1aa)]+'-'+_0xa77318:_0x2840b7[_0x2fd804(0x168)]+'-'+_0xa77318:_0xa77318,_0x1ed6c0={'id':_0x2f25e9,'timestamp':new Date()[_0x2fd804(0x1ce)](),'command':_0x4efde,'raw_chars':_0x1f8678,'compressed_chars':_0x1980d9,'estimated_raw_tokens':_0x80f2cc,'estimated_compressed_tokens':_0x28167d,'tokens_saved':_0xfb3aed,'model_used':_0x58feeb,'exit_code':_0x57f716,'synced':![],'ai_detected':!!_0x2840b7[_0x2fd804(0x168)]};_0x5dcf48[_0x2fd804(0x188)](_0x1ed6c0),this['saveLogs'](_0x5dcf48);const _0x2b56a9=this[_0x2fd804(0x18c)]()['telemetry_url'];return _0x2b56a9&&_0x2b56a9[_0x2fd804(0x1bd)]()[_0x2fd804(0x17e)]>0x0&&this[_0x2fd804(0x178)](),_0x1ed6c0;}[a0_0x10e4bf(0x178)](){const _0xad610e=a0_0x10e4bf;try{const _0x24f56f=path['join'](__dirname,_0xad610e(0x1d1));if(fs[_0xad610e(0x1d9)](_0x24f56f)){const _0x46483f=(0x0,child_process_1['spawn'])(process[_0xad610e(0x1ad)],[_0x24f56f],{'detached':!![],'stdio':'ignore'});_0x46483f['unref']();}}catch{}}[a0_0x10e4bf(0x16c)](_0x5596af=a0_0x10e4bf(0x187)){const _0xa7033b=a0_0x10e4bf,_0x472c19=this['getLogs']();let _0x3dfe23=0x0,_0x1bccc6=0x0,_0x6ba28e=0x0;for(const _0x5a43c8 of _0x472c19){_0x3dfe23+=_0x5a43c8['estimated_raw_tokens'],_0x1bccc6+=_0x5a43c8[_0xa7033b(0x1c7)],_0x6ba28e+=_0x5a43c8[_0xa7033b(0x172)];}let _0xd44240=_0x5596af;(!_0xd44240||_0xd44240===_0xa7033b(0x187)||!exports['PRICING'][_0xd44240])&&(_0x472c19[_0xa7033b(0x17e)]>0x0&&_0x472c19[_0x472c19['length']-0x1][_0xa7033b(0x1b8)]?_0xd44240=_0x472c19[_0x472c19[_0xa7033b(0x17e)]-0x1][_0xa7033b(0x1b8)]:_0xd44240=this['getConfig']()[_0xa7033b(0x1dc)]||'claude-3-5-sonnet');const _0x3e55bd=exports[_0xa7033b(0x1da)][_0xd44240]||exports['PRICING']['claude-3-5-sonnet'],_0x585491=_0x6ba28e*_0x3e55bd[_0xa7033b(0x164)]/0xf4240,_0x514377=_0x3dfe23*_0x3e55bd[_0xa7033b(0x164)]/0xf4240,_0x3c9fba=_0x1bccc6*_0x3e55bd[_0xa7033b(0x164)]/0xf4240,_0x3fd1aa=_0x3dfe23>0x0?_0x6ba28e/_0x3dfe23*0x64:0x0;return{'total_raw_tokens':_0x3dfe23,'total_compressed_tokens':_0x1bccc6,'total_tokens_saved':_0x6ba28e,'savings_percentage':parseFloat(_0x3fd1aa[_0xa7033b(0x1e0)](0x1)),'money_saved_usd':parseFloat(_0x585491[_0xa7033b(0x1e0)](0x4)),'raw_cost_usd':parseFloat(_0x514377[_0xa7033b(0x1e0)](0x4)),'compressed_cost_usd':parseFloat(_0x3c9fba[_0xa7033b(0x1e0)](0x4)),'model_name':_0x3e55bd['name'],'model_key':_0xd44240};}}function a0_0x1671(_0x3bdfce,_0x5db254){_0x3bdfce=_0x3bdfce-0x163;const _0x1cdee9=a0_0x1cde();let _0x1671e9=_0x1cdee9[_0x3bdfce];return _0x1671e9;}exports['Tracker']=Tracker,exports[a0_0x10e4bf(0x16b)]=new Tracker();
1
+ 'use strict';function a0_0x1e86(){const _0x130c0f=['Gemini\x203.1\x20Flash-Lite','gemini-3-5-flash','create','split','Claude\x20Mythos\x205','input_price_1m','existsSync','CLAUDE_EFFORT','COPILOT_MODEL','5241900BKxyHt','config','Claude\x20Sonnet\x204.5','GPT-4o\x20Mini','ANTIGRAVITY_AGENT','child_process','AIDER_MODEL','AI_AGENT','3537861hXKobh','getLogs','230eETqHi','2MkawWM','path','toString','getOwnPropertyNames','continue','cline','Tracker','getOwnPropertyDescriptor','flash','estimated_compressed_tokens','configurable','writeFileSync','PRICING','REPL_ID','pop','default_model','CLAUDE_CODE','length','auto','GPT-5.4','GPT-5.4\x20Nano','50104luZxTa','claude-opus-4-8','Claude\x20Haiku\x204.5','modelShort','PATH','readFileSync','configPath','o3-mini','join','VSCODE_PID','defineProperty','toFixed','__setModuleDefault','claude-sonnet-4-6','889fKdRBd','8314647KLzlHZ','toLowerCase','substring','github-copilot','sonnet','2690sCGqcz','tokens_saved','.comp.txt','gemini','utf8','OpenAI\x20o3-mini','unref','4fzQZXa','saveConfig','262629mQrqqj','1009969szQPdg','Claude\x20Fable\x205','ignore','getConfig','claude-sonnet-4-5','triggerBackgroundSync','statsPath','CLAUDECODE','tool','Claude\x203.5\x20Sonnet','estimated_raw_tokens','CONTINUE_GLOBAL_DIR','2802yDxuBT','saveLogs','logsDir','stringify','execPath','ceil','tracker','high','init','claude_code','codex','claude-code','writable','gemini-3-1-pro','spawn','.trimprompt','trim','CLINE_DATA_DIR','Gemini\x203.5\x20Live\x20Translate','devin','push','cursor','__esModule','unknown','prototype','toISOString','GPT-4.1\x20Mini','replit','name','aider','default','parse','opus','baseDir','copilot','__importStar','get','Gemini\x203.1\x20Pro','includes','homedir','GPT-5.5','stats.json','call','claude-3-5-sonnet','o3mini','CURSOR_AGENT','GPT-4.1\x20Nano','13BtDnYs','1.0','logs','model','TRIMPROMPT_MODEL','model_used','COPILOT_GITHUB_TOKEN','Claude\x20Sonnet\x204.6','windsurf','antigravity'];a0_0x1e86=function(){return _0x130c0f;};return a0_0x1e86();}const a0_0x14d897=a0_0x56e9;(function(_0x5f4c25,_0x5ba017){const _0x1b2936=a0_0x56e9,_0x124af9=_0x5f4c25();while(!![]){try{const _0x18ed62=parseInt(_0x1b2936(0x1bc))/0x1*(parseInt(_0x1b2936(0x189))/0x2)+-parseInt(_0x1b2936(0x186))/0x3*(-parseInt(_0x1b2936(0x1b9))/0x4)+parseInt(_0x1b2936(0x1b2))/0x5*(-parseInt(_0x1b2936(0x1c8))/0x6)+-parseInt(_0x1b2936(0x1ac))/0x7*(parseInt(_0x1b2936(0x19e))/0x8)+-parseInt(_0x1b2936(0x1bb))/0x9*(-parseInt(_0x1b2936(0x188))/0xa)+-parseInt(_0x1b2936(0x1ad))/0xb+parseInt(_0x1b2936(0x17e))/0xc*(-parseInt(_0x1b2936(0x1f7))/0xd);if(_0x18ed62===_0x5ba017)break;else _0x124af9['push'](_0x124af9['shift']());}catch(_0x457d14){_0x124af9['push'](_0x124af9['shift']());}}}(a0_0x1e86,0x97a0e));var __createBinding=this&&this['__createBinding']||(Object['create']?function(_0x29dd07,_0x12cce5,_0x598ca8,_0x50f2e2){const _0x421c2f=a0_0x56e9;if(_0x50f2e2===undefined)_0x50f2e2=_0x598ca8;var _0x49313b=Object[_0x421c2f(0x190)](_0x12cce5,_0x598ca8);(!_0x49313b||(_0x421c2f(0x1ec)in _0x49313b?!_0x12cce5[_0x421c2f(0x1de)]:_0x49313b[_0x421c2f(0x1d4)]||_0x49313b[_0x421c2f(0x193)]))&&(_0x49313b={'enumerable':!![],'get':function(){return _0x12cce5[_0x598ca8];}}),Object[_0x421c2f(0x1a8)](_0x29dd07,_0x50f2e2,_0x49313b);}:function(_0x589f56,_0x148b04,_0x272efd,_0x42fa65){if(_0x42fa65===undefined)_0x42fa65=_0x272efd;_0x589f56[_0x42fa65]=_0x148b04[_0x272efd];}),__setModuleDefault=this&&this[a0_0x14d897(0x1aa)]||(Object[a0_0x14d897(0x177)]?function(_0x2b72d5,_0x1c16cb){const _0x19abe2=a0_0x14d897;Object[_0x19abe2(0x1a8)](_0x2b72d5,_0x19abe2(0x1e6),{'enumerable':!![],'value':_0x1c16cb});}:function(_0x1033a8,_0x2090ca){const _0x3f4cab=a0_0x14d897;_0x1033a8[_0x3f4cab(0x1e6)]=_0x2090ca;}),__importStar=this&&this[a0_0x14d897(0x1eb)]||(function(){var _0x3107c4=function(_0x245235){const _0x3a2072=a0_0x56e9;return _0x3107c4=Object[_0x3a2072(0x18c)]||function(_0x1fb7e2){const _0x322d9c=_0x3a2072;var _0x3ffdcc=[];for(var _0x2872bc in _0x1fb7e2)if(Object[_0x322d9c(0x1e0)]['hasOwnProperty'][_0x322d9c(0x1f2)](_0x1fb7e2,_0x2872bc))_0x3ffdcc[_0x3ffdcc[_0x322d9c(0x19a)]]=_0x2872bc;return _0x3ffdcc;},_0x3107c4(_0x245235);};return function(_0x1f2382){const _0x4c183e=a0_0x56e9;if(_0x1f2382&&_0x1f2382[_0x4c183e(0x1de)])return _0x1f2382;var _0x1c4659={};if(_0x1f2382!=null){for(var _0x168bfa=_0x3107c4(_0x1f2382),_0x319522=0x0;_0x319522<_0x168bfa[_0x4c183e(0x19a)];_0x319522++)if(_0x168bfa[_0x319522]!==_0x4c183e(0x1e6))__createBinding(_0x1c4659,_0x1f2382,_0x168bfa[_0x319522]);}return __setModuleDefault(_0x1c4659,_0x1f2382),_0x1c4659;};}());function a0_0x56e9(_0x4109ba,_0x9bd5e4){_0x4109ba=_0x4109ba-0x177;const _0x1e860a=a0_0x1e86();let _0x56e9c3=_0x1e860a[_0x4109ba];return _0x56e9c3;}Object[a0_0x14d897(0x1a8)](exports,a0_0x14d897(0x1de),{'value':!![]}),exports[a0_0x14d897(0x1ce)]=exports[a0_0x14d897(0x18f)]=exports[a0_0x14d897(0x195)]=void 0x0,exports['detectSessionTool']=detectSessionTool;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x14d897(0x18a))),os=__importStar(require('os')),child_process_1=require(a0_0x14d897(0x183));exports['PRICING']={'claude-fable-5':{'name':a0_0x14d897(0x1bd),'input_price_1m':0xa},'claude-mythos-5':{'name':a0_0x14d897(0x179),'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':'Claude\x20Opus\x204.1\x20(deprecated)','input_price_1m':0xf},'claude-sonnet-4-6':{'name':a0_0x14d897(0x1fe),'input_price_1m':0x3},'claude-sonnet-4-5':{'name':a0_0x14d897(0x180),'input_price_1m':0x3},'claude-3-5-sonnet':{'name':a0_0x14d897(0x1c5),'input_price_1m':0x3},'claude-haiku-4-5':{'name':a0_0x14d897(0x1a0),'input_price_1m':0x1},'claude-haiku-3-5':{'name':'Claude\x20Haiku\x203.5','input_price_1m':0.8},'gpt-5-5':{'name':a0_0x14d897(0x1f0),'input_price_1m':0x5},'gpt-5-4':{'name':a0_0x14d897(0x19c),'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_0x14d897(0x19d),'input_price_1m':0.2},'gpt-4-1-mini':{'name':a0_0x14d897(0x1e2),'input_price_1m':0.4},'gpt-4-1-nano':{'name':a0_0x14d897(0x1f6),'input_price_1m':0.1},'gpt-4o-mini':{'name':a0_0x14d897(0x181),'input_price_1m':0.15},'o1':{'name':'OpenAI\x20o1','input_price_1m':0xf},'o1-mini':{'name':'OpenAI\x20o1-mini','input_price_1m':0x3},'o3-mini':{'name':a0_0x14d897(0x1b7),'input_price_1m':1.1},'cursor-small':{'name':'Cursor\x20Small','input_price_1m':0.1},'gemini-3-1-pro':{'name':a0_0x14d897(0x1ed),'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_0x14d897(0x201),'input_price_1m':0.45},'gemini-3-5-live-translate':{'name':a0_0x14d897(0x1da),'input_price_1m':3.5}};function detectSessionTool(){const _0x5bbd10=a0_0x14d897,_0x50060f=process.env,_0x34ca17={'tool':'','model':_0x5bbd10(0x1ab),'modelShort':''};if(_0x50060f[_0x5bbd10(0x1fb)]&&exports['PRICING'][_0x50060f[_0x5bbd10(0x1fb)]])return{'tool':'','model':_0x50060f[_0x5bbd10(0x1fb)],'modelShort':''};const _0x230c6a=(_0x50060f[_0x5bbd10(0x185)]||'')[_0x5bbd10(0x1ae)]();if(_0x230c6a){if(_0x230c6a[_0x5bbd10(0x1ee)](_0x5bbd10(0x1d3))||_0x230c6a['includes'](_0x5bbd10(0x1d1))){const _0x53824a=_0x50060f[_0x5bbd10(0x17c)]===_0x5bbd10(0x1cf)?'opus':_0x5bbd10(0x1b1),_0x39d658=_0x50060f['CLAUDE_EFFORT']===_0x5bbd10(0x1cf)?'claude-opus-4-8':'claude-sonnet-4-6';return{'tool':'claude','model':_0x39d658,'modelShort':_0x53824a};}if(_0x230c6a[_0x5bbd10(0x1ee)](_0x5bbd10(0x1dd)))return{'tool':_0x5bbd10(0x1dd),'model':_0x5bbd10(0x1ab),'modelShort':_0x5bbd10(0x1b1)};if(_0x230c6a['includes'](_0x5bbd10(0x1b0))||_0x230c6a[_0x5bbd10(0x1ee)](_0x5bbd10(0x1ea))){const _0x4b7f5e=_0x50060f['COPILOT_MODEL']||'';if(_0x4b7f5e&&exports['PRICING'][_0x4b7f5e])return{'tool':'copilot','model':_0x4b7f5e,'modelShort':_0x4b7f5e['split']('-')[_0x5bbd10(0x197)]()||''};return{'tool':_0x5bbd10(0x1ea),'model':_0x5bbd10(0x1c0),'modelShort':_0x5bbd10(0x1b1)};}if(_0x230c6a['includes'](_0x5bbd10(0x1b5)))return{'tool':'gemini','model':_0x5bbd10(0x202),'modelShort':_0x5bbd10(0x191)};if(_0x230c6a[_0x5bbd10(0x1ee)](_0x5bbd10(0x1d2)))return{'tool':_0x5bbd10(0x1d2),'model':_0x5bbd10(0x1a5),'modelShort':_0x5bbd10(0x1f4)};if(_0x230c6a[_0x5bbd10(0x1ee)](_0x5bbd10(0x1db)))return{'tool':'devin','model':'claude-sonnet-4-6','modelShort':''};if(_0x230c6a[_0x5bbd10(0x1ee)]('antigravity'))return{'tool':_0x5bbd10(0x200),'model':'gemini-3-1-pro','modelShort':_0x5bbd10(0x1b5)};if(_0x230c6a[_0x5bbd10(0x1ee)](_0x5bbd10(0x1e3))||_0x50060f[_0x5bbd10(0x196)])return{'tool':_0x5bbd10(0x1e3),'model':_0x5bbd10(0x1ab),'modelShort':''};return{'tool':_0x230c6a[_0x5bbd10(0x178)]('_')[0x0][_0x5bbd10(0x178)]('-')[0x0],'model':_0x5bbd10(0x1ab),'modelShort':''};}if(_0x50060f[_0x5bbd10(0x1c3)]==='1'||_0x50060f[_0x5bbd10(0x199)]==='1'){const _0x17ec54=_0x50060f['CLAUDE_EFFORT']==='high'?_0x5bbd10(0x1e8):_0x5bbd10(0x1b1),_0x5260eb=_0x50060f[_0x5bbd10(0x17c)]===_0x5bbd10(0x1cf)?_0x5bbd10(0x19f):_0x5bbd10(0x1ab);return{'tool':'claude','model':_0x5260eb,'modelShort':_0x17ec54};}if(_0x50060f[_0x5bbd10(0x1f5)]==='1')return{'tool':_0x5bbd10(0x1dd),'model':_0x5bbd10(0x1ab),'modelShort':_0x5bbd10(0x1b1)};if(_0x50060f['GEMINI_CLI']==='1')return{'tool':_0x5bbd10(0x1b5),'model':_0x5bbd10(0x202),'modelShort':_0x5bbd10(0x191)};if(_0x50060f[_0x5bbd10(0x17d)]||_0x50060f[_0x5bbd10(0x1fd)]){const _0xe60382=_0x50060f[_0x5bbd10(0x17d)]||'';if(_0xe60382&&exports[_0x5bbd10(0x195)][_0xe60382])return{'tool':_0x5bbd10(0x1ea),'model':_0xe60382,'modelShort':_0xe60382[_0x5bbd10(0x178)]('-')[_0x5bbd10(0x197)]()||''};return{'tool':_0x5bbd10(0x1ea),'model':_0x5bbd10(0x1c0),'modelShort':'sonnet'};}if(_0x50060f[_0x5bbd10(0x196)]||_0x50060f['REPLIT_ENVIRONMENT'])return{'tool':'replit','model':_0x5bbd10(0x1ab),'modelShort':''};if(_0x50060f[_0x5bbd10(0x1d9)])return{'tool':_0x5bbd10(0x18e),'model':_0x5bbd10(0x1ab),'modelShort':''};if(_0x50060f[_0x5bbd10(0x1c7)])return{'tool':_0x5bbd10(0x18d),'model':'claude-sonnet-4-6','modelShort':''};if(_0x50060f[_0x5bbd10(0x182)]==='1')return{'tool':_0x5bbd10(0x200),'model':_0x5bbd10(0x1d5),'modelShort':'gemini'};if(_0x50060f[_0x5bbd10(0x17c)]){const _0xd28c2f=_0x50060f[_0x5bbd10(0x17c)]===_0x5bbd10(0x1cf)?_0x5bbd10(0x1e8):_0x5bbd10(0x1b1),_0x593732=_0x50060f[_0x5bbd10(0x17c)]===_0x5bbd10(0x1cf)?_0x5bbd10(0x19f):_0x5bbd10(0x1ab);return{'tool':'','model':_0x593732,'modelShort':''};}if(_0x50060f[_0x5bbd10(0x184)]&&exports['PRICING'][_0x50060f['AIDER_MODEL']])return{'tool':_0x5bbd10(0x1e5),'model':_0x50060f['AIDER_MODEL'],'modelShort':''};if(_0x50060f[_0x5bbd10(0x1a7)]){const _0x14ab47=(_0x50060f[_0x5bbd10(0x1a2)]||'')[_0x5bbd10(0x1ae)]();if(_0x14ab47[_0x5bbd10(0x1ee)](_0x5bbd10(0x1dd)))return{'tool':_0x5bbd10(0x1dd),'model':'claude-sonnet-4-6','modelShort':_0x5bbd10(0x1b1)};if(_0x14ab47[_0x5bbd10(0x1ee)](_0x5bbd10(0x1ff)))return{'tool':_0x5bbd10(0x1ff),'model':_0x5bbd10(0x1ab),'modelShort':_0x5bbd10(0x1b1)};}const _0x4dab9e=process.env.TRIMPROMPT_MODEL||'';if(_0x4dab9e&&exports[_0x5bbd10(0x195)][_0x4dab9e])return{'tool':'','model':_0x4dab9e,'modelShort':''};return _0x34ca17;}class Tracker{[a0_0x14d897(0x1e9)];[a0_0x14d897(0x1a4)];[a0_0x14d897(0x1c2)];['logsDir'];[a0_0x14d897(0x17f)];constructor(){const _0x22e381=a0_0x14d897;this[_0x22e381(0x1e9)]=path['join'](os[_0x22e381(0x1ef)](),_0x22e381(0x1d7)),this[_0x22e381(0x1a4)]=path['join'](this[_0x22e381(0x1e9)],'config.json'),this[_0x22e381(0x1c2)]=path['join'](this[_0x22e381(0x1e9)],_0x22e381(0x1f1)),this['logsDir']=path[_0x22e381(0x1a6)](this[_0x22e381(0x1e9)],_0x22e381(0x1f9)),this['init']();}[a0_0x14d897(0x1d0)](){const _0x39fa94=a0_0x14d897;!fs[_0x39fa94(0x17b)](this[_0x39fa94(0x1e9)])&&fs['mkdirSync'](this['baseDir'],{'recursive':!![]});!fs[_0x39fa94(0x17b)](this['logsDir'])&&fs['mkdirSync'](this[_0x39fa94(0x1ca)],{'recursive':!![]});const _0x55e380={'version':_0x39fa94(0x1f8),'telemetry_url':process.env.TRIMPROMPT_TELEMETRY_URL||'','max_output_tokens':0x1388,'redaction_enabled':!![],'default_model':_0x39fa94(0x19f)};if(fs[_0x39fa94(0x17b)](this[_0x39fa94(0x1a4)]))try{const _0x7e28a3=fs[_0x39fa94(0x1a3)](this[_0x39fa94(0x1a4)],_0x39fa94(0x1b6));this[_0x39fa94(0x17f)]={..._0x55e380,...JSON[_0x39fa94(0x1e7)](_0x7e28a3)};}catch(_0x2acb73){this['config']=_0x55e380;}else this[_0x39fa94(0x17f)]=_0x55e380,this[_0x39fa94(0x1ba)]();!fs[_0x39fa94(0x17b)](this[_0x39fa94(0x1c2)])&&fs[_0x39fa94(0x194)](this[_0x39fa94(0x1c2)],JSON['stringify']([]),_0x39fa94(0x1b6));}[a0_0x14d897(0x1bf)](){const _0x2b1535=a0_0x14d897;return process.env.TRIMPROMPT_TELEMETRY_URL&&(this[_0x2b1535(0x17f)]['telemetry_url']=process.env.TRIMPROMPT_TELEMETRY_URL),this['config'];}['setConfig'](_0x59dc8c,_0x4f0f63){const _0x3ebbbc=a0_0x14d897;this['config'][_0x59dc8c]=_0x4f0f63,this[_0x3ebbbc(0x1ba)]();}[a0_0x14d897(0x1ba)](){const _0x3eae63=a0_0x14d897;fs['writeFileSync'](this[_0x3eae63(0x1a4)],JSON['stringify'](this[_0x3eae63(0x17f)],null,0x2),'utf8');}['getLogs'](){const _0x4bb767=a0_0x14d897;try{if(!fs[_0x4bb767(0x17b)](this[_0x4bb767(0x1c2)]))return[];const _0x161a9e=fs[_0x4bb767(0x1a3)](this[_0x4bb767(0x1c2)],_0x4bb767(0x1b6));return JSON[_0x4bb767(0x1e7)](_0x161a9e);}catch{return[];}}[a0_0x14d897(0x1c9)](_0x47eeb7){const _0x5aad65=a0_0x14d897;fs['writeFileSync'](this[_0x5aad65(0x1c2)],JSON[_0x5aad65(0x1cb)](_0x47eeb7,null,0x2),'utf8');}['logExecution'](_0x156cb8,_0x4a1300,_0x267d75,_0x449184){const _0x2d27a4=a0_0x14d897,_0x30d31e=this[_0x2d27a4(0x187)](),_0x214276=_0x4a1300[_0x2d27a4(0x19a)],_0x13b933=_0x267d75[_0x2d27a4(0x19a)],_0x3468d6=Math[_0x2d27a4(0x1cd)](_0x214276/0x4),_0x8d4ef1=Math[_0x2d27a4(0x1cd)](_0x13b933/0x4),_0x2fcddb=Math['max'](0x0,_0x3468d6-_0x8d4ef1),_0x493dea=detectSessionTool(),_0x537978=_0x493dea[_0x2d27a4(0x1fa)],_0x2c8fa5=Math['random']()[_0x2d27a4(0x18b)](0x24)[_0x2d27a4(0x1af)](0x2,0xb);try{fs[_0x2d27a4(0x194)](path[_0x2d27a4(0x1a6)](this[_0x2d27a4(0x1ca)],_0x2c8fa5+'.raw.txt'),_0x4a1300,'utf8'),fs[_0x2d27a4(0x194)](path[_0x2d27a4(0x1a6)](this[_0x2d27a4(0x1ca)],_0x2c8fa5+_0x2d27a4(0x1b4)),_0x267d75,_0x2d27a4(0x1b6));}catch{}const _0x3f73b5=_0x156cb8[_0x2d27a4(0x178)]('\x20')[0x0]||_0x2d27a4(0x1df),_0x5eb705=_0x493dea[_0x2d27a4(0x1c4)]?_0x493dea['modelShort']?_0x493dea[_0x2d27a4(0x1c4)]+'-'+_0x493dea[_0x2d27a4(0x1a1)]+'-'+_0x3f73b5:_0x493dea[_0x2d27a4(0x1c4)]+'-'+_0x3f73b5:_0x3f73b5,_0x1fc9ce={'id':_0x2c8fa5,'timestamp':new Date()[_0x2d27a4(0x1e1)](),'command':_0x5eb705,'raw_chars':_0x214276,'compressed_chars':_0x13b933,'estimated_raw_tokens':_0x3468d6,'estimated_compressed_tokens':_0x8d4ef1,'tokens_saved':_0x2fcddb,'model_used':_0x537978,'exit_code':_0x449184,'synced':![],'ai_detected':!!_0x493dea[_0x2d27a4(0x1c4)]};_0x30d31e[_0x2d27a4(0x1dc)](_0x1fc9ce),this[_0x2d27a4(0x1c9)](_0x30d31e);const _0x4d8383=this[_0x2d27a4(0x1bf)]()['telemetry_url'];return _0x4d8383&&_0x4d8383[_0x2d27a4(0x1d8)]()[_0x2d27a4(0x19a)]>0x0&&this[_0x2d27a4(0x1c1)](),_0x1fc9ce;}[a0_0x14d897(0x1c1)](){const _0xb18d84=a0_0x14d897;try{const _0x2e17cd=path[_0xb18d84(0x1a6)](__dirname,'sync.js');if(fs[_0xb18d84(0x17b)](_0x2e17cd)){const _0x8082ae=(0x0,child_process_1[_0xb18d84(0x1d6)])(process[_0xb18d84(0x1cc)],[_0x2e17cd],{'detached':!![],'stdio':_0xb18d84(0x1be)});_0x8082ae[_0xb18d84(0x1b8)]();}}catch{}}['getStatsSummary'](_0x24038d=a0_0x14d897(0x19b)){const _0x5dc96e=a0_0x14d897,_0x47f120=this[_0x5dc96e(0x187)]();let _0x3968a8=0x0,_0x1405ac=0x0,_0x408dfa=0x0;for(const _0x2e1050 of _0x47f120){_0x3968a8+=_0x2e1050[_0x5dc96e(0x1c6)],_0x1405ac+=_0x2e1050[_0x5dc96e(0x192)],_0x408dfa+=_0x2e1050[_0x5dc96e(0x1b3)];}let _0x308f06=_0x24038d;(!_0x308f06||_0x308f06===_0x5dc96e(0x19b)||!exports['PRICING'][_0x308f06])&&(_0x47f120[_0x5dc96e(0x19a)]>0x0&&_0x47f120[_0x47f120['length']-0x1][_0x5dc96e(0x1fc)]?_0x308f06=_0x47f120[_0x47f120['length']-0x1][_0x5dc96e(0x1fc)]:_0x308f06=this[_0x5dc96e(0x1bf)]()[_0x5dc96e(0x198)]||_0x5dc96e(0x1f3));const _0x241c73=exports['PRICING'][_0x308f06]||exports[_0x5dc96e(0x195)][_0x5dc96e(0x1f3)],_0x2a7f4e=_0x408dfa*_0x241c73[_0x5dc96e(0x17a)]/0xf4240,_0xb99240=_0x3968a8*_0x241c73[_0x5dc96e(0x17a)]/0xf4240,_0xee6317=_0x1405ac*_0x241c73['input_price_1m']/0xf4240,_0x28b25b=_0x3968a8>0x0?_0x408dfa/_0x3968a8*0x64:0x0;return{'total_raw_tokens':_0x3968a8,'total_compressed_tokens':_0x1405ac,'total_tokens_saved':_0x408dfa,'savings_percentage':parseFloat(_0x28b25b['toFixed'](0x1)),'money_saved_usd':parseFloat(_0x2a7f4e[_0x5dc96e(0x1a9)](0x4)),'raw_cost_usd':parseFloat(_0xb99240['toFixed'](0x4)),'compressed_cost_usd':parseFloat(_0xee6317[_0x5dc96e(0x1a9)](0x4)),'model_name':_0x241c73[_0x5dc96e(0x1e4)],'model_key':_0x308f06};}}exports[a0_0x14d897(0x18f)]=Tracker,exports[a0_0x14d897(0x1ce)]=new Tracker();