trimprompt 1.0.9 → 1.0.10

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_0x492f(){const _0x4880fe=['PRICING','configPath','parse','OpenAI\x20o1','OpenAI\x20o1-mini','saveConfig','15PYwsIh','copilot','triggerBackgroundSync','includes','default','cursor','defineProperty','claude-opus-4-8','tokens_saved','model_used','o3mini','COPILOT_MODEL','39969BJuOUi','init','Cursor\x20Small','.raw.txt','readFileSync','GPT-5.4','split','cline','existsSync','estimated_raw_tokens','Claude\x20Haiku\x203.5','mkdirSync','setConfig','2IRpmMY','1.0','modelShort','utf8','claude_code','getConfig','AIDER_MODEL','Gemini\x203.5\x20Live\x20Translate','replit','CLAUDECODE','join','claude','claude-code','AI_AGENT','baseDir','toFixed','Claude\x20Opus\x204.7','create','TRIMPROMPT_MODEL','CURSOR_AGENT','config','GPT-4.1\x20Nano','8092766IvHKtg','Claude\x20Fable\x205','Tracker','tracker','prototype','sync.js','continue','toISOString','high','logExecution','getLogs','config.json','github-copilot','Gemini\x203.5\x20Flash','claude-3-5-sonnet','claude-sonnet-4-6','7iyBrcd','Gemini\x203.1\x20Pro','Claude\x20Sonnet\x204.5','codex','450734bCePFQ','saveLogs','unknown','Claude\x20Opus\x204.8','COPILOT_GITHUB_TOKEN','writable','Claude\x20Haiku\x204.5','ceil','name','antigravity','.comp.txt','auto','o3-mini','gemini','sonnet','Claude\x20Mythos\x205','estimated_compressed_tokens','hasOwnProperty','length','configurable','input_price_1m','logsDir','opus','logs','Gemini\x203.1\x20Flash-Lite','substring','tool','getOwnPropertyDescriptor','toLowerCase','ANTIGRAVITY_AGENT','pop','gemini-3-5-flash','child_process','stats.json','__esModule','flash','REPL_ID','max','default_model','spawn','GPT-4o\x20Mini','VSCODE_PID','1690011fHXOzy','Claude\x203.5\x20Sonnet','push','telemetry_url','1336304ZRpRGR','.trimprompt','stringify','Claude\x20Opus\x204.1\x20(deprecated)','aider','toString','CLAUDE_EFFORT','3280188iIzZNv','__setModuleDefault','GPT-5.4\x20Mini','path','gemini-3-1-pro','call','527154WydCYw','writeFileSync','GEMINI_CLI','unref','statsPath','130WAUSAz'];a0_0x492f=function(){return _0x4880fe;};return a0_0x492f();}const a0_0x51a00c=a0_0x2dda;(function(_0x5e94d2,_0x5c181a){const _0x5958bb=a0_0x2dda,_0x3d84b3=_0x5e94d2();while(!![]){try{const _0x301b5b=-parseInt(_0x5958bb(0x88))/0x1*(parseInt(_0x5958bb(0xe8))/0x2)+-parseInt(_0x5958bb(0xb2))/0x3+parseInt(_0x5958bb(0xbd))/0x4+parseInt(_0x5958bb(0xcf))/0x5*(-parseInt(_0x5958bb(0xc3))/0x6)+parseInt(_0x5958bb(0x84))/0x7*(parseInt(_0x5958bb(0xb6))/0x8)+parseInt(_0x5958bb(0xdb))/0x9*(parseInt(_0x5958bb(0xc8))/0xa)+parseInt(_0x5958bb(0x74))/0xb;if(_0x301b5b===_0x5c181a)break;else _0x3d84b3['push'](_0x3d84b3['shift']());}catch(_0x30ef30){_0x3d84b3['push'](_0x3d84b3['shift']());}}}(a0_0x492f,0x7ac5c));var __createBinding=this&&this['__createBinding']||(Object[a0_0x51a00c(0x6f)]?function(_0x5891b7,_0x5d7d01,_0x12e000,_0x4c1ba2){const _0x9a863a=a0_0x51a00c;if(_0x4c1ba2===undefined)_0x4c1ba2=_0x12e000;var _0x56bb02=Object[_0x9a863a(0xa3)](_0x5d7d01,_0x12e000);(!_0x56bb02||('get'in _0x56bb02?!_0x5d7d01[_0x9a863a(0xaa)]:_0x56bb02[_0x9a863a(0x8d)]||_0x56bb02[_0x9a863a(0x9b)]))&&(_0x56bb02={'enumerable':!![],'get':function(){return _0x5d7d01[_0x12e000];}}),Object['defineProperty'](_0x5891b7,_0x4c1ba2,_0x56bb02);}:function(_0xb72f38,_0x2047cc,_0x5ab4c4,_0x5ef6b8){if(_0x5ef6b8===undefined)_0x5ef6b8=_0x5ab4c4;_0xb72f38[_0x5ef6b8]=_0x2047cc[_0x5ab4c4];}),__setModuleDefault=this&&this[a0_0x51a00c(0xbe)]||(Object[a0_0x51a00c(0x6f)]?function(_0x499a42,_0x34ddaa){const _0xc315ea=a0_0x51a00c;Object['defineProperty'](_0x499a42,_0xc315ea(0xd3),{'enumerable':!![],'value':_0x34ddaa});}:function(_0x11c1ae,_0x55382a){const _0x35c805=a0_0x51a00c;_0x11c1ae[_0x35c805(0xd3)]=_0x55382a;}),__importStar=this&&this['__importStar']||(function(){var _0x540fdd=function(_0x15b168){return _0x540fdd=Object['getOwnPropertyNames']||function(_0x43fa5f){const _0x4a49a4=a0_0x2dda;var _0x54b893=[];for(var _0x4827f5 in _0x43fa5f)if(Object[_0x4a49a4(0x78)][_0x4a49a4(0x99)][_0x4a49a4(0xc2)](_0x43fa5f,_0x4827f5))_0x54b893[_0x54b893[_0x4a49a4(0x9a)]]=_0x4827f5;return _0x54b893;},_0x540fdd(_0x15b168);};return function(_0x14d33b){const _0x113b25=a0_0x2dda;if(_0x14d33b&&_0x14d33b['__esModule'])return _0x14d33b;var _0x59bea5={};if(_0x14d33b!=null){for(var _0x36dff7=_0x540fdd(_0x14d33b),_0x442a1f=0x0;_0x442a1f<_0x36dff7[_0x113b25(0x9a)];_0x442a1f++)if(_0x36dff7[_0x442a1f]!=='default')__createBinding(_0x59bea5,_0x14d33b,_0x36dff7[_0x442a1f]);}return __setModuleDefault(_0x59bea5,_0x14d33b),_0x59bea5;};}());Object[a0_0x51a00c(0xd5)](exports,'__esModule',{'value':!![]}),exports['tracker']=exports[a0_0x51a00c(0x76)]=exports['PRICING']=void 0x0;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x51a00c(0xc0))),os=__importStar(require('os')),child_process_1=require(a0_0x51a00c(0xa8));exports[a0_0x51a00c(0xc9)]={'claude-fable-5':{'name':a0_0x51a00c(0x75),'input_price_1m':0xa},'claude-mythos-5':{'name':a0_0x51a00c(0x97),'input_price_1m':0xa},'claude-opus-4-8':{'name':a0_0x51a00c(0x8b),'input_price_1m':0x5},'claude-opus-4-7':{'name':a0_0x51a00c(0x6e),'input_price_1m':0x5},'claude-opus-4-5':{'name':'Claude\x20Opus\x204.5','input_price_1m':0x5},'claude-opus-4-1':{'name':a0_0x51a00c(0xb9),'input_price_1m':0xf},'claude-sonnet-4-6':{'name':'Claude\x20Sonnet\x204.6','input_price_1m':0x3},'claude-sonnet-4-5':{'name':a0_0x51a00c(0x86),'input_price_1m':0x3},'claude-3-5-sonnet':{'name':a0_0x51a00c(0xb3),'input_price_1m':0x3},'claude-haiku-4-5':{'name':a0_0x51a00c(0x8e),'input_price_1m':0x1},'claude-haiku-3-5':{'name':a0_0x51a00c(0xe5),'input_price_1m':0.8},'gpt-5-5':{'name':'GPT-5.5','input_price_1m':0x5},'gpt-5-4':{'name':a0_0x51a00c(0xe0),'input_price_1m':2.5},'gpt-4o':{'name':'GPT-4o','input_price_1m':2.5},'gpt-5-4-mini':{'name':a0_0x51a00c(0xbf),'input_price_1m':0.75},'gpt-5-4-nano':{'name':'GPT-5.4\x20Nano','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_0x51a00c(0x73),'input_price_1m':0.1},'gpt-4o-mini':{'name':a0_0x51a00c(0xb0),'input_price_1m':0.15},'o1':{'name':a0_0x51a00c(0xcc),'input_price_1m':0xf},'o1-mini':{'name':a0_0x51a00c(0xcd),'input_price_1m':0x3},'o3-mini':{'name':'OpenAI\x20o3-mini','input_price_1m':1.1},'cursor-small':{'name':a0_0x51a00c(0xdd),'input_price_1m':0.1},'gemini-3-1-pro':{'name':a0_0x51a00c(0x85),'input_price_1m':0x2},'gemini-3-5-flash':{'name':a0_0x51a00c(0x81),'input_price_1m':1.5},'gemini-3-1-flash-lite':{'name':a0_0x51a00c(0xa0),'input_price_1m':0.45},'gemini-3-5-live-translate':{'name':a0_0x51a00c(0xef),'input_price_1m':3.5}};function detectSessionTool(){const _0x4785bd=a0_0x51a00c,_0x2d5185=process.env,_0x5a2a87={'tool':'','model':_0x4785bd(0x83),'modelShort':''};if(_0x2d5185['TRIMPROMPT_MODEL']&&exports[_0x4785bd(0xc9)][_0x2d5185[_0x4785bd(0x70)]])return{'tool':'','model':_0x2d5185[_0x4785bd(0x70)],'modelShort':''};const _0x181ae9=(_0x2d5185[_0x4785bd(0xf5)]||'')['toLowerCase']();if(_0x181ae9){if(_0x181ae9[_0x4785bd(0xd2)](_0x4785bd(0xf4))||_0x181ae9['includes'](_0x4785bd(0xec))){const _0x8f4581=_0x2d5185[_0x4785bd(0xbc)]===_0x4785bd(0x7c)?'opus':_0x4785bd(0x96),_0x4e5725=_0x2d5185[_0x4785bd(0xbc)]===_0x4785bd(0x7c)?_0x4785bd(0xd6):_0x4785bd(0x83);return{'tool':_0x4785bd(0xf3),'model':_0x4e5725,'modelShort':_0x8f4581};}if(_0x181ae9[_0x4785bd(0xd2)](_0x4785bd(0xd4)))return{'tool':'cursor','model':_0x4785bd(0x83),'modelShort':'sonnet'};if(_0x181ae9[_0x4785bd(0xd2)](_0x4785bd(0x80))||_0x181ae9[_0x4785bd(0xd2)]('copilot')){const _0x13987b=_0x2d5185['COPILOT_MODEL']||'';if(_0x13987b&&exports[_0x4785bd(0xc9)][_0x13987b])return{'tool':'copilot','model':_0x13987b,'modelShort':_0x13987b[_0x4785bd(0xe1)]('-')['pop']()||''};return{'tool':_0x4785bd(0xd0),'model':'claude-sonnet-4-5','modelShort':_0x4785bd(0x96)};}if(_0x181ae9[_0x4785bd(0xd2)](_0x4785bd(0x95)))return{'tool':_0x4785bd(0x95),'model':_0x4785bd(0xa7),'modelShort':_0x4785bd(0xab)};if(_0x181ae9['includes']('codex'))return{'tool':_0x4785bd(0x87),'model':_0x4785bd(0x94),'modelShort':_0x4785bd(0xd9)};if(_0x181ae9[_0x4785bd(0xd2)]('devin'))return{'tool':'devin','model':'claude-sonnet-4-6','modelShort':''};if(_0x181ae9[_0x4785bd(0xd2)](_0x4785bd(0x91)))return{'tool':_0x4785bd(0x91),'model':_0x4785bd(0xc1),'modelShort':'gemini'};if(_0x181ae9['includes'](_0x4785bd(0xf0))||_0x2d5185[_0x4785bd(0xac)])return{'tool':'replit','model':_0x4785bd(0x83),'modelShort':''};return{'tool':_0x181ae9[_0x4785bd(0xe1)]('_')[0x0][_0x4785bd(0xe1)]('-')[0x0],'model':'claude-sonnet-4-6','modelShort':''};}if(_0x2d5185[_0x4785bd(0xf1)]==='1'||_0x2d5185['CLAUDE_CODE']==='1'){const _0x2449dc=_0x2d5185[_0x4785bd(0xbc)]===_0x4785bd(0x7c)?_0x4785bd(0x9e):'sonnet',_0x3e3354=_0x2d5185[_0x4785bd(0xbc)]===_0x4785bd(0x7c)?_0x4785bd(0xd6):'claude-sonnet-4-6';return{'tool':'claude','model':_0x3e3354,'modelShort':_0x2449dc};}if(_0x2d5185[_0x4785bd(0x71)]==='1')return{'tool':_0x4785bd(0xd4),'model':_0x4785bd(0x83),'modelShort':'sonnet'};if(_0x2d5185[_0x4785bd(0xc5)]==='1')return{'tool':_0x4785bd(0x95),'model':'gemini-3-5-flash','modelShort':'flash'};if(_0x2d5185['COPILOT_MODEL']||_0x2d5185[_0x4785bd(0x8c)]){const _0x95b781=_0x2d5185[_0x4785bd(0xda)]||'';if(_0x95b781&&exports[_0x4785bd(0xc9)][_0x95b781])return{'tool':_0x4785bd(0xd0),'model':_0x95b781,'modelShort':_0x95b781[_0x4785bd(0xe1)]('-')[_0x4785bd(0xa6)]()||''};return{'tool':_0x4785bd(0xd0),'model':'claude-sonnet-4-5','modelShort':_0x4785bd(0x96)};}if(_0x2d5185['REPL_ID']||_0x2d5185['REPLIT_ENVIRONMENT'])return{'tool':_0x4785bd(0xf0),'model':_0x4785bd(0x83),'modelShort':''};if(_0x2d5185['CLINE_DATA_DIR'])return{'tool':_0x4785bd(0xe2),'model':_0x4785bd(0x83),'modelShort':''};if(_0x2d5185['CONTINUE_GLOBAL_DIR'])return{'tool':_0x4785bd(0x7a),'model':_0x4785bd(0x83),'modelShort':''};if(_0x2d5185[_0x4785bd(0xa5)]==='1')return{'tool':_0x4785bd(0x91),'model':_0x4785bd(0xc1),'modelShort':_0x4785bd(0x95)};if(_0x2d5185[_0x4785bd(0xbc)]){const _0xef9270=_0x2d5185[_0x4785bd(0xbc)]===_0x4785bd(0x7c)?_0x4785bd(0x9e):_0x4785bd(0x96),_0x45fe29=_0x2d5185[_0x4785bd(0xbc)]==='high'?_0x4785bd(0xd6):'claude-sonnet-4-6';return{'tool':'','model':_0x45fe29,'modelShort':''};}if(_0x2d5185[_0x4785bd(0xee)]&&exports['PRICING'][_0x2d5185[_0x4785bd(0xee)]])return{'tool':_0x4785bd(0xba),'model':_0x2d5185[_0x4785bd(0xee)],'modelShort':''};if(_0x2d5185[_0x4785bd(0xb1)]){const _0x5d8acb=(_0x2d5185['PATH']||'')[_0x4785bd(0xa4)]();if(_0x5d8acb[_0x4785bd(0xd2)]('cursor'))return{'tool':'cursor','model':_0x4785bd(0x83),'modelShort':_0x4785bd(0x96)};if(_0x5d8acb[_0x4785bd(0xd2)]('windsurf'))return{'tool':'windsurf','model':_0x4785bd(0x83),'modelShort':_0x4785bd(0x96)};}const _0x2e93d8=process.env.TRIMPROMPT_MODEL||'';if(_0x2e93d8&&exports['PRICING'][_0x2e93d8])return{'tool':'','model':_0x2e93d8,'modelShort':''};return _0x5a2a87;}function a0_0x2dda(_0x1f118b,_0x2a64c3){_0x1f118b=_0x1f118b-0x6d;const _0x492f03=a0_0x492f();let _0x2dda6f=_0x492f03[_0x1f118b];return _0x2dda6f;}class Tracker{[a0_0x51a00c(0xf6)];[a0_0x51a00c(0xca)];[a0_0x51a00c(0xc7)];[a0_0x51a00c(0x9d)];['config'];constructor(){const _0x4ce766=a0_0x51a00c;this[_0x4ce766(0xf6)]=path[_0x4ce766(0xf2)](os['homedir'](),_0x4ce766(0xb7)),this[_0x4ce766(0xca)]=path[_0x4ce766(0xf2)](this['baseDir'],_0x4ce766(0x7f)),this['statsPath']=path['join'](this[_0x4ce766(0xf6)],_0x4ce766(0xa9)),this[_0x4ce766(0x9d)]=path[_0x4ce766(0xf2)](this['baseDir'],_0x4ce766(0x9f)),this[_0x4ce766(0xdc)]();}[a0_0x51a00c(0xdc)](){const _0x19a9f1=a0_0x51a00c;!fs[_0x19a9f1(0xe3)](this[_0x19a9f1(0xf6)])&&fs[_0x19a9f1(0xe6)](this['baseDir'],{'recursive':!![]});!fs[_0x19a9f1(0xe3)](this[_0x19a9f1(0x9d)])&&fs[_0x19a9f1(0xe6)](this[_0x19a9f1(0x9d)],{'recursive':!![]});const _0x5981f9={'version':_0x19a9f1(0xe9),'telemetry_url':process.env.TRIMPROMPT_TELEMETRY_URL||'','max_output_tokens':0x1388,'redaction_enabled':!![],'default_model':'claude-opus-4-8'};if(fs['existsSync'](this['configPath']))try{const _0x83b8d=fs['readFileSync'](this[_0x19a9f1(0xca)],_0x19a9f1(0xeb));this[_0x19a9f1(0x72)]={..._0x5981f9,...JSON[_0x19a9f1(0xcb)](_0x83b8d)};}catch(_0x233860){this[_0x19a9f1(0x72)]=_0x5981f9;}else this[_0x19a9f1(0x72)]=_0x5981f9,this[_0x19a9f1(0xce)]();!fs[_0x19a9f1(0xe3)](this['statsPath'])&&fs[_0x19a9f1(0xc4)](this['statsPath'],JSON[_0x19a9f1(0xb8)]([]),'utf8');}[a0_0x51a00c(0xed)](){const _0x2495d4=a0_0x51a00c;return process.env.TRIMPROMPT_TELEMETRY_URL&&(this[_0x2495d4(0x72)][_0x2495d4(0xb5)]=process.env.TRIMPROMPT_TELEMETRY_URL),this[_0x2495d4(0x72)];}[a0_0x51a00c(0xe7)](_0x3f7e4f,_0x54ee60){const _0x5897c8=a0_0x51a00c;this[_0x5897c8(0x72)][_0x3f7e4f]=_0x54ee60,this[_0x5897c8(0xce)]();}[a0_0x51a00c(0xce)](){const _0x6b1dd3=a0_0x51a00c;fs['writeFileSync'](this[_0x6b1dd3(0xca)],JSON['stringify'](this[_0x6b1dd3(0x72)],null,0x2),_0x6b1dd3(0xeb));}[a0_0x51a00c(0x7e)](){const _0x5432bf=a0_0x51a00c;try{if(!fs[_0x5432bf(0xe3)](this[_0x5432bf(0xc7)]))return[];const _0x24bdea=fs[_0x5432bf(0xdf)](this[_0x5432bf(0xc7)],_0x5432bf(0xeb));return JSON['parse'](_0x24bdea);}catch{return[];}}[a0_0x51a00c(0x89)](_0x34e434){const _0x1f7457=a0_0x51a00c;fs['writeFileSync'](this[_0x1f7457(0xc7)],JSON[_0x1f7457(0xb8)](_0x34e434,null,0x2),_0x1f7457(0xeb));}[a0_0x51a00c(0x7d)](_0x53936a,_0x42a2cd,_0x3b936b,_0x28f2f9){const _0x2cfe9a=a0_0x51a00c,_0x31011e=this[_0x2cfe9a(0x7e)](),_0x58eec2=_0x42a2cd[_0x2cfe9a(0x9a)],_0x738f0a=_0x3b936b[_0x2cfe9a(0x9a)],_0x51b7d7=Math[_0x2cfe9a(0x8f)](_0x58eec2/0x4),_0x2e0063=Math['ceil'](_0x738f0a/0x4),_0xa47a85=Math[_0x2cfe9a(0xad)](0x0,_0x51b7d7-_0x2e0063),_0x239335=detectSessionTool(),_0x3845e3=_0x239335['model'],_0x466e39=Math['random']()[_0x2cfe9a(0xbb)](0x24)[_0x2cfe9a(0xa1)](0x2,0xb);try{fs[_0x2cfe9a(0xc4)](path[_0x2cfe9a(0xf2)](this[_0x2cfe9a(0x9d)],_0x466e39+_0x2cfe9a(0xde)),_0x42a2cd,_0x2cfe9a(0xeb)),fs['writeFileSync'](path[_0x2cfe9a(0xf2)](this[_0x2cfe9a(0x9d)],_0x466e39+_0x2cfe9a(0x92)),_0x3b936b,'utf8');}catch{}const _0x576e00=_0x53936a['split']('\x20')[0x0]||_0x2cfe9a(0x8a),_0x2aa0ad=_0x239335[_0x2cfe9a(0xa2)]?_0x239335[_0x2cfe9a(0xea)]?_0x239335[_0x2cfe9a(0xa2)]+'-'+_0x239335[_0x2cfe9a(0xea)]+'-'+_0x576e00:_0x239335[_0x2cfe9a(0xa2)]+'-'+_0x576e00:_0x576e00,_0x5531e3={'id':_0x466e39,'timestamp':new Date()[_0x2cfe9a(0x7b)](),'command':_0x2aa0ad,'raw_chars':_0x58eec2,'compressed_chars':_0x738f0a,'estimated_raw_tokens':_0x51b7d7,'estimated_compressed_tokens':_0x2e0063,'tokens_saved':_0xa47a85,'model_used':_0x3845e3,'exit_code':_0x28f2f9,'synced':![],'ai_detected':!!_0x239335[_0x2cfe9a(0xa2)]};_0x31011e[_0x2cfe9a(0xb4)](_0x5531e3),this['saveLogs'](_0x31011e);const _0xa9b448=this[_0x2cfe9a(0xed)]()[_0x2cfe9a(0xb5)];return _0xa9b448&&_0xa9b448['trim']()['length']>0x0&&this['triggerBackgroundSync'](),_0x5531e3;}[a0_0x51a00c(0xd1)](){const _0xa90a8f=a0_0x51a00c;try{const _0x531307=path[_0xa90a8f(0xf2)](__dirname,_0xa90a8f(0x79));if(fs[_0xa90a8f(0xe3)](_0x531307)){const _0x492d00=(0x0,child_process_1[_0xa90a8f(0xaf)])(process['execPath'],[_0x531307],{'detached':!![],'stdio':'ignore'});_0x492d00[_0xa90a8f(0xc6)]();}}catch{}}['getStatsSummary'](_0xc99b4a=a0_0x51a00c(0x93)){const _0x152dcf=a0_0x51a00c,_0x21cdd3=this['getLogs']();let _0x52cce6=0x0,_0x195a4a=0x0,_0x4966bd=0x0;for(const _0x19f8d9 of _0x21cdd3){_0x52cce6+=_0x19f8d9[_0x152dcf(0xe4)],_0x195a4a+=_0x19f8d9[_0x152dcf(0x98)],_0x4966bd+=_0x19f8d9[_0x152dcf(0xd7)];}let _0x40967=_0xc99b4a;(!_0x40967||_0x40967===_0x152dcf(0x93)||!exports['PRICING'][_0x40967])&&(_0x21cdd3[_0x152dcf(0x9a)]>0x0&&_0x21cdd3[_0x21cdd3[_0x152dcf(0x9a)]-0x1]['model_used']?_0x40967=_0x21cdd3[_0x21cdd3['length']-0x1][_0x152dcf(0xd8)]:_0x40967=this[_0x152dcf(0xed)]()[_0x152dcf(0xae)]||_0x152dcf(0x82));const _0x572c97=exports[_0x152dcf(0xc9)][_0x40967]||exports[_0x152dcf(0xc9)][_0x152dcf(0x82)],_0x21302d=_0x4966bd*_0x572c97[_0x152dcf(0x9c)]/0xf4240,_0x7e314=_0x52cce6*_0x572c97['input_price_1m']/0xf4240,_0x48075d=_0x195a4a*_0x572c97[_0x152dcf(0x9c)]/0xf4240,_0x5392dc=_0x52cce6>0x0?_0x4966bd/_0x52cce6*0x64:0x0;return{'total_raw_tokens':_0x52cce6,'total_compressed_tokens':_0x195a4a,'total_tokens_saved':_0x4966bd,'savings_percentage':parseFloat(_0x5392dc[_0x152dcf(0x6d)](0x1)),'money_saved_usd':parseFloat(_0x21302d['toFixed'](0x4)),'raw_cost_usd':parseFloat(_0x7e314['toFixed'](0x4)),'compressed_cost_usd':parseFloat(_0x48075d['toFixed'](0x4)),'model_name':_0x572c97[_0x152dcf(0x90)],'model_key':_0x40967};}}exports[a0_0x51a00c(0x76)]=Tracker,exports[a0_0x51a00c(0x77)]=new Tracker();
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();