trimprompt 1.0.12 → 1.0.14

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_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();
1
+ 'use strict';const a0_0x59b9b3=a0_0x2843;function a0_0x439a(){const _0x343f26=['Claude\x20Mythos\x205','claude-sonnet-4-6','configPath','join','config.json','logExecution','__setModuleDefault','COPILOT_MODEL','model_used','toISOString','split','high','GPT-5.4\x20Mini','logsDir','saveLogs','mkdirSync','baseDir','1201PeTVuL','length','PRICING','Gemini\x203.1\x20Pro','create','1636749pLKhjG','sonnet','claude','init','windsurf','setConfig','pop','OpenAI\x20o1','unref','prototype','claude-sonnet-4-5','ceil','homedir','claude-opus-4-8','1982cgkYDd','toLowerCase','antigravity','__createBinding','gemini-3-1-pro','config','tokens_saved','writeFileSync','o3mini','1406804IHIuIN','claude-code','REPL_ID','GPT-4o\x20Mini','tracker','getOwnPropertyDescriptor','OpenAI\x20o1-mini','Claude\x20Opus\x204.1\x20(deprecated)','GEMINI_CLI','AIDER_MODEL','child_process','devin','getConfig','123780NvjZNO','TRIMPROMPT_MODEL','auto','Gemini\x203.5\x20Flash','default_model','stringify','CLAUDECODE','writable','name','125IwOzts','CLINE_DATA_DIR','Tracker','2318533Kgufdg','getOwnPropertyNames','get','COPILOT_GITHUB_TOKEN','saveConfig','getStatsSummary','GPT-5.4\x20Nano','continue','AI_AGENT','opus','readFileSync','statsPath','configurable','call','defineProperty','ignore','Gemini\x203.1\x20Flash-Lite','includes','GPT-5.5','.comp.txt','GPT-4o','Claude\x20Haiku\x204.5','triggerBackgroundSync','__esModule','Cursor\x20Small','stats.json','random','parse','estimated_raw_tokens','getLogs','claude-3-5-sonnet','Gemini\x203.5\x20Live\x20Translate','OpenAI\x20o3-mini','1.0','cursor','ANTIGRAVITY_AGENT','CURSOR_AGENT','aider','input_price_1m','copilot','8666536HdVYSC','existsSync','gemini-3-5-flash','Claude\x20Fable\x205','detectSessionTool','Claude\x20Sonnet\x204.5','substring','flash','cline','modelShort','gemini','default','unknown','max','utf8','GPT-4.1\x20Mini','16154910pOSPBf','Claude\x20Sonnet\x204.6','.raw.txt','CLAUDE_EFFORT','tool','REPLIT_ENVIRONMENT','replit','CLAUDE_CODE','github-copilot','toFixed','telemetry_url'];a0_0x439a=function(){return _0x343f26;};return a0_0x439a();}(function(_0x4b5e55,_0x1fa6ac){const _0x2a5304=a0_0x2843,_0x1ddfd2=_0x4b5e55();while(!![]){try{const _0xdb4de5=-parseInt(_0x2a5304(0xc3))/0x1*(parseInt(_0x2a5304(0xd6))/0x2)+parseInt(_0x2a5304(0xc8))/0x3+parseInt(_0x2a5304(0xdf))/0x4+-parseInt(_0x2a5304(0x6c))/0x5*(-parseInt(_0x2a5304(0xec))/0x6)+-parseInt(_0x2a5304(0x6f))/0x7+-parseInt(_0x2a5304(0x97))/0x8+parseInt(_0x2a5304(0xa7))/0x9;if(_0xdb4de5===_0x1fa6ac)break;else _0x1ddfd2['push'](_0x1ddfd2['shift']());}catch(_0x5d7485){_0x1ddfd2['push'](_0x1ddfd2['shift']());}}}(a0_0x439a,0x934a1));var __createBinding=this&&this[a0_0x59b9b3(0xd9)]||(Object[a0_0x59b9b3(0xc7)]?function(_0x469af7,_0x4a440a,_0xeb3266,_0x5960e0){const _0xe91b62=a0_0x59b9b3;if(_0x5960e0===undefined)_0x5960e0=_0xeb3266;var _0x5a1426=Object[_0xe91b62(0xe4)](_0x4a440a,_0xeb3266);(!_0x5a1426||(_0xe91b62(0x71)in _0x5a1426?!_0x4a440a[_0xe91b62(0x86)]:_0x5a1426[_0xe91b62(0x6a)]||_0x5a1426[_0xe91b62(0x7b)]))&&(_0x5a1426={'enumerable':!![],'get':function(){return _0x4a440a[_0xeb3266];}}),Object[_0xe91b62(0x7d)](_0x469af7,_0x5960e0,_0x5a1426);}:function(_0x1e85ec,_0x27e55b,_0x4cd560,_0x34ba09){if(_0x34ba09===undefined)_0x34ba09=_0x4cd560;_0x1e85ec[_0x34ba09]=_0x27e55b[_0x4cd560];}),__setModuleDefault=this&&this[a0_0x59b9b3(0xb8)]||(Object[a0_0x59b9b3(0xc7)]?function(_0x1ff74e,_0xb4a79){const _0x275538=a0_0x59b9b3;Object[_0x275538(0x7d)](_0x1ff74e,_0x275538(0xa2),{'enumerable':!![],'value':_0xb4a79});}:function(_0x303a90,_0x51b71b){const _0x1295da=a0_0x59b9b3;_0x303a90[_0x1295da(0xa2)]=_0x51b71b;}),__importStar=this&&this['__importStar']||(function(){var _0x664b5a=function(_0x41953d){const _0x5074c3=a0_0x2843;return _0x664b5a=Object[_0x5074c3(0x70)]||function(_0x3b610c){const _0x2cdd5e=_0x5074c3;var _0x588a82=[];for(var _0x3ff54c in _0x3b610c)if(Object[_0x2cdd5e(0xd1)]['hasOwnProperty'][_0x2cdd5e(0x7c)](_0x3b610c,_0x3ff54c))_0x588a82[_0x588a82[_0x2cdd5e(0xc4)]]=_0x3ff54c;return _0x588a82;},_0x664b5a(_0x41953d);};return function(_0xa98401){const _0x46b0dc=a0_0x2843;if(_0xa98401&&_0xa98401[_0x46b0dc(0x86)])return _0xa98401;var _0x2bbe97={};if(_0xa98401!=null){for(var _0x2bebb8=_0x664b5a(_0xa98401),_0x2f0ce1=0x0;_0x2f0ce1<_0x2bebb8[_0x46b0dc(0xc4)];_0x2f0ce1++)if(_0x2bebb8[_0x2f0ce1]!==_0x46b0dc(0xa2))__createBinding(_0x2bbe97,_0xa98401,_0x2bebb8[_0x2f0ce1]);}return __setModuleDefault(_0x2bbe97,_0xa98401),_0x2bbe97;};}());Object[a0_0x59b9b3(0x7d)](exports,a0_0x59b9b3(0x86),{'value':!![]}),exports[a0_0x59b9b3(0xe3)]=exports['Tracker']=exports[a0_0x59b9b3(0xc5)]=void 0x0,exports[a0_0x59b9b3(0x9b)]=detectSessionTool;function a0_0x2843(_0x1218e1,_0x2e4e06){_0x1218e1=_0x1218e1-0x65;const _0x439a80=a0_0x439a();let _0x284310=_0x439a80[_0x1218e1];return _0x284310;}const fs=__importStar(require('fs')),path=__importStar(require('path')),os=__importStar(require('os')),child_process_1=require(a0_0x59b9b3(0xe9));exports[a0_0x59b9b3(0xc5)]={'claude-fable-5':{'name':a0_0x59b9b3(0x9a),'input_price_1m':0xa},'claude-mythos-5':{'name':a0_0x59b9b3(0xb2),'input_price_1m':0xa},'claude-opus-4-8':{'name':'Claude\x20Opus\x204.8','input_price_1m':0x5},'claude-opus-4-7':{'name':'Claude\x20Opus\x204.7','input_price_1m':0x5},'claude-opus-4-5':{'name':'Claude\x20Opus\x204.5','input_price_1m':0x5},'claude-opus-4-1':{'name':a0_0x59b9b3(0xe6),'input_price_1m':0xf},'claude-sonnet-4-6':{'name':a0_0x59b9b3(0xa8),'input_price_1m':0x3},'claude-sonnet-4-5':{'name':a0_0x59b9b3(0x9c),'input_price_1m':0x3},'claude-3-5-sonnet':{'name':'Claude\x203.5\x20Sonnet','input_price_1m':0x3},'claude-haiku-4-5':{'name':a0_0x59b9b3(0x84),'input_price_1m':0x1},'claude-haiku-3-5':{'name':'Claude\x20Haiku\x203.5','input_price_1m':0.8},'gpt-5-5':{'name':a0_0x59b9b3(0x81),'input_price_1m':0x5},'gpt-5-4':{'name':'GPT-5.4','input_price_1m':2.5},'gpt-4o':{'name':a0_0x59b9b3(0x83),'input_price_1m':2.5},'gpt-5-4-mini':{'name':a0_0x59b9b3(0xbe),'input_price_1m':0.75},'gpt-5-4-nano':{'name':a0_0x59b9b3(0x75),'input_price_1m':0.2},'gpt-4-1-mini':{'name':a0_0x59b9b3(0xa6),'input_price_1m':0.4},'gpt-4-1-nano':{'name':'GPT-4.1\x20Nano','input_price_1m':0.1},'gpt-4o-mini':{'name':a0_0x59b9b3(0xe2),'input_price_1m':0.15},'o1':{'name':a0_0x59b9b3(0xcf),'input_price_1m':0xf},'o1-mini':{'name':a0_0x59b9b3(0xe5),'input_price_1m':0x3},'o3-mini':{'name':a0_0x59b9b3(0x8f),'input_price_1m':1.1},'cursor-small':{'name':a0_0x59b9b3(0x87),'input_price_1m':0.1},'gemini-3-1-pro':{'name':a0_0x59b9b3(0xc6),'input_price_1m':0x2},'gemini-3-5-flash':{'name':a0_0x59b9b3(0x66),'input_price_1m':1.5},'gemini-3-1-flash-lite':{'name':a0_0x59b9b3(0x7f),'input_price_1m':0.45},'gemini-3-5-live-translate':{'name':a0_0x59b9b3(0x8e),'input_price_1m':3.5}};function detectSessionTool(){const _0x394341=a0_0x59b9b3,_0x39aec9=process.env,_0x532c5a={'tool':'','model':_0x394341(0xb3),'modelShort':''};if(_0x39aec9[_0x394341(0xed)]&&exports['PRICING'][_0x39aec9[_0x394341(0xed)]])return{'tool':'','model':_0x39aec9[_0x394341(0xed)],'modelShort':''};const _0x2ecdf3=(_0x39aec9[_0x394341(0x77)]||'')[_0x394341(0xd7)]();if(_0x2ecdf3){if(_0x2ecdf3[_0x394341(0x80)](_0x394341(0xe0))||_0x2ecdf3[_0x394341(0x80)]('claude_code')){const _0x166cac=_0x39aec9[_0x394341(0xaa)]===_0x394341(0xbd)?_0x394341(0x78):'sonnet',_0x4a4c4e=_0x39aec9[_0x394341(0xaa)]==='high'?'claude-opus-4-8':_0x394341(0xb3);return{'tool':_0x394341(0xca),'model':_0x4a4c4e,'modelShort':_0x166cac};}if(_0x2ecdf3['includes']('cursor'))return{'tool':_0x394341(0x91),'model':_0x394341(0xb3),'modelShort':_0x394341(0xc9)};if(_0x2ecdf3['includes'](_0x394341(0xaf))||_0x2ecdf3[_0x394341(0x80)](_0x394341(0x96))){const _0x573c62=_0x39aec9['COPILOT_MODEL']||'';if(_0x573c62&&exports[_0x394341(0xc5)][_0x573c62])return{'tool':_0x394341(0x96),'model':_0x573c62,'modelShort':_0x573c62[_0x394341(0xbc)]('-')['pop']()||''};return{'tool':_0x394341(0x96),'model':_0x394341(0xd2),'modelShort':_0x394341(0xc9)};}if(_0x2ecdf3[_0x394341(0x80)](_0x394341(0xa1)))return{'tool':_0x394341(0xa1),'model':'gemini-3-5-flash','modelShort':_0x394341(0x9e)};if(_0x2ecdf3['includes']('codex'))return{'tool':'codex','model':'o3-mini','modelShort':_0x394341(0xde)};if(_0x2ecdf3[_0x394341(0x80)](_0x394341(0xea)))return{'tool':_0x394341(0xea),'model':_0x394341(0xb3),'modelShort':''};if(_0x2ecdf3[_0x394341(0x80)](_0x394341(0xd8)))return{'tool':_0x394341(0xd8),'model':_0x394341(0xda),'modelShort':_0x394341(0xa1)};if(_0x2ecdf3[_0x394341(0x80)](_0x394341(0xad))||_0x39aec9[_0x394341(0xe1)])return{'tool':_0x394341(0xad),'model':_0x394341(0xb3),'modelShort':''};return{'tool':_0x2ecdf3[_0x394341(0xbc)]('_')[0x0][_0x394341(0xbc)]('-')[0x0],'model':_0x394341(0xb3),'modelShort':''};}if(_0x39aec9[_0x394341(0x69)]==='1'||_0x39aec9[_0x394341(0xae)]==='1'){const _0x5f187e=_0x39aec9[_0x394341(0xaa)]===_0x394341(0xbd)?_0x394341(0x78):_0x394341(0xc9),_0x39d4dc=_0x39aec9[_0x394341(0xaa)]===_0x394341(0xbd)?'claude-opus-4-8':_0x394341(0xb3);return{'tool':_0x394341(0xca),'model':_0x39d4dc,'modelShort':_0x5f187e};}if(_0x39aec9[_0x394341(0x93)]==='1')return{'tool':_0x394341(0x91),'model':'claude-sonnet-4-6','modelShort':'sonnet'};if(_0x39aec9[_0x394341(0xe7)]==='1')return{'tool':_0x394341(0xa1),'model':_0x394341(0x99),'modelShort':_0x394341(0x9e)};if(_0x39aec9[_0x394341(0xb9)]||_0x39aec9[_0x394341(0x72)]){const _0x4b99ef=_0x39aec9['COPILOT_MODEL']||'';if(_0x4b99ef&&exports[_0x394341(0xc5)][_0x4b99ef])return{'tool':_0x394341(0x96),'model':_0x4b99ef,'modelShort':_0x4b99ef[_0x394341(0xbc)]('-')[_0x394341(0xce)]()||''};return{'tool':_0x394341(0x96),'model':_0x394341(0xd2),'modelShort':_0x394341(0xc9)};}if(_0x39aec9[_0x394341(0xe1)]||_0x39aec9[_0x394341(0xac)])return{'tool':_0x394341(0xad),'model':'claude-sonnet-4-6','modelShort':''};if(_0x39aec9[_0x394341(0x6d)])return{'tool':_0x394341(0x9f),'model':_0x394341(0xb3),'modelShort':''};if(_0x39aec9['CONTINUE_GLOBAL_DIR'])return{'tool':_0x394341(0x76),'model':'claude-sonnet-4-6','modelShort':''};if(_0x39aec9[_0x394341(0x92)]==='1')return{'tool':_0x394341(0xd8),'model':_0x394341(0xda),'modelShort':_0x394341(0xa1)};if(_0x39aec9[_0x394341(0xaa)]){const _0x9b894a=_0x39aec9['CLAUDE_EFFORT']==='high'?_0x394341(0x78):_0x394341(0xc9),_0x2cf160=_0x39aec9[_0x394341(0xaa)]===_0x394341(0xbd)?_0x394341(0xd5):_0x394341(0xb3);return{'tool':'','model':_0x2cf160,'modelShort':''};}if(_0x39aec9[_0x394341(0xe8)]&&exports[_0x394341(0xc5)][_0x39aec9['AIDER_MODEL']])return{'tool':_0x394341(0x94),'model':_0x39aec9[_0x394341(0xe8)],'modelShort':''};if(_0x39aec9['VSCODE_PID']){const _0x49553b=(_0x39aec9['PATH']||'')['toLowerCase']();if(_0x49553b[_0x394341(0x80)]('cursor'))return{'tool':_0x394341(0x91),'model':_0x394341(0xb3),'modelShort':_0x394341(0xc9)};if(_0x49553b[_0x394341(0x80)](_0x394341(0xcc)))return{'tool':'windsurf','model':_0x394341(0xb3),'modelShort':'sonnet'};}const _0x1a9cf4=process.env.TRIMPROMPT_MODEL||'';if(_0x1a9cf4&&exports[_0x394341(0xc5)][_0x1a9cf4])return{'tool':'','model':_0x1a9cf4,'modelShort':''};return _0x532c5a;}class Tracker{['baseDir'];['configPath'];['statsPath'];[a0_0x59b9b3(0xbf)];[a0_0x59b9b3(0xdb)];constructor(){const _0xa95d8=a0_0x59b9b3;this[_0xa95d8(0xc2)]=path['join'](os[_0xa95d8(0xd4)](),'.trimprompt'),this[_0xa95d8(0xb4)]=path[_0xa95d8(0xb5)](this[_0xa95d8(0xc2)],_0xa95d8(0xb6)),this[_0xa95d8(0x7a)]=path[_0xa95d8(0xb5)](this[_0xa95d8(0xc2)],_0xa95d8(0x88)),this[_0xa95d8(0xbf)]=path['join'](this[_0xa95d8(0xc2)],'logs'),this['init']();}[a0_0x59b9b3(0xcb)](){const _0x4755aa=a0_0x59b9b3;!fs[_0x4755aa(0x98)](this[_0x4755aa(0xc2)])&&fs[_0x4755aa(0xc1)](this[_0x4755aa(0xc2)],{'recursive':!![]});!fs['existsSync'](this[_0x4755aa(0xbf)])&&fs[_0x4755aa(0xc1)](this[_0x4755aa(0xbf)],{'recursive':!![]});const _0x2f6fbc={'version':_0x4755aa(0x90),'telemetry_url':process.env.TRIMPROMPT_TELEMETRY_URL||'','max_output_tokens':0x1388,'redaction_enabled':!![],'default_model':_0x4755aa(0xd5)};if(fs['existsSync'](this[_0x4755aa(0xb4)]))try{const _0x323e7a=fs[_0x4755aa(0x79)](this['configPath'],'utf8');this['config']={..._0x2f6fbc,...JSON[_0x4755aa(0x8a)](_0x323e7a)};}catch(_0x1a1c42){this[_0x4755aa(0xdb)]=_0x2f6fbc;}else this[_0x4755aa(0xdb)]=_0x2f6fbc,this[_0x4755aa(0x73)]();!fs[_0x4755aa(0x98)](this[_0x4755aa(0x7a)])&&fs[_0x4755aa(0xdd)](this['statsPath'],JSON[_0x4755aa(0x68)]([]),_0x4755aa(0xa5));}['getConfig'](){const _0x46a4e2=a0_0x59b9b3;return process.env.TRIMPROMPT_TELEMETRY_URL&&(this[_0x46a4e2(0xdb)][_0x46a4e2(0xb1)]=process.env.TRIMPROMPT_TELEMETRY_URL),this['config'];}[a0_0x59b9b3(0xcd)](_0x4272bf,_0x20649e){const _0x127644=a0_0x59b9b3;this[_0x127644(0xdb)][_0x4272bf]=_0x20649e,this[_0x127644(0x73)]();}['saveConfig'](){const _0x38e5da=a0_0x59b9b3;fs[_0x38e5da(0xdd)](this[_0x38e5da(0xb4)],JSON[_0x38e5da(0x68)](this['config'],null,0x2),'utf8');}[a0_0x59b9b3(0x8c)](){const _0x5ade31=a0_0x59b9b3;try{if(!fs[_0x5ade31(0x98)](this[_0x5ade31(0x7a)]))return[];const _0xfa6b9=fs[_0x5ade31(0x79)](this[_0x5ade31(0x7a)],'utf8');return JSON[_0x5ade31(0x8a)](_0xfa6b9);}catch{return[];}}[a0_0x59b9b3(0xc0)](_0x2737a4){const _0x10b6fc=a0_0x59b9b3;fs['writeFileSync'](this[_0x10b6fc(0x7a)],JSON[_0x10b6fc(0x68)](_0x2737a4,null,0x2),_0x10b6fc(0xa5));}[a0_0x59b9b3(0xb7)](_0x381bca,_0x25ba46,_0x2d1d66,_0x29f057){const _0x438ed6=a0_0x59b9b3,_0x1315f2=this[_0x438ed6(0x8c)](),_0x628f08=_0x25ba46[_0x438ed6(0xc4)],_0xdbab74=_0x2d1d66[_0x438ed6(0xc4)],_0x94f584=Math[_0x438ed6(0xd3)](_0x628f08/0x4),_0x2b5df6=Math[_0x438ed6(0xd3)](_0xdbab74/0x4),_0x2f45dc=Math[_0x438ed6(0xa4)](0x0,_0x94f584-_0x2b5df6),_0x3b1bd1=detectSessionTool(),_0x2f88a0=_0x3b1bd1['model'],_0x4c46fe=Math[_0x438ed6(0x89)]()['toString'](0x24)[_0x438ed6(0x9d)](0x2,0xb);try{fs['writeFileSync'](path[_0x438ed6(0xb5)](this['logsDir'],_0x4c46fe+_0x438ed6(0xa9)),_0x25ba46,_0x438ed6(0xa5)),fs[_0x438ed6(0xdd)](path[_0x438ed6(0xb5)](this[_0x438ed6(0xbf)],_0x4c46fe+_0x438ed6(0x82)),_0x2d1d66,_0x438ed6(0xa5));}catch{}const _0x42796f=_0x381bca[_0x438ed6(0xbc)]('\x20')[0x0]||_0x438ed6(0xa3),_0x257faf=_0x3b1bd1['tool']?_0x3b1bd1[_0x438ed6(0xa0)]?_0x3b1bd1[_0x438ed6(0xab)]+'-'+_0x3b1bd1[_0x438ed6(0xa0)]+'-'+_0x42796f:_0x3b1bd1[_0x438ed6(0xab)]+'-'+_0x42796f:_0x42796f,_0x4a91d6={'id':_0x4c46fe,'timestamp':new Date()[_0x438ed6(0xbb)](),'command':_0x257faf,'raw_chars':_0x628f08,'compressed_chars':_0xdbab74,'estimated_raw_tokens':_0x94f584,'estimated_compressed_tokens':_0x2b5df6,'tokens_saved':_0x2f45dc,'model_used':_0x2f88a0,'exit_code':_0x29f057,'synced':![],'ai_detected':!!_0x3b1bd1[_0x438ed6(0xab)]};_0x1315f2['push'](_0x4a91d6),this[_0x438ed6(0xc0)](_0x1315f2);const _0x3a46c=this['getConfig']()[_0x438ed6(0xb1)];return _0x3a46c&&_0x3a46c['trim']()[_0x438ed6(0xc4)]>0x0&&this[_0x438ed6(0x85)](),_0x4a91d6;}[a0_0x59b9b3(0x85)](){const _0x9d01ee=a0_0x59b9b3;try{const _0x112ba8=path[_0x9d01ee(0xb5)](__dirname,'sync.js');if(fs[_0x9d01ee(0x98)](_0x112ba8)){const _0xb2b391=(0x0,child_process_1['spawn'])(process['execPath'],[_0x112ba8],{'detached':!![],'stdio':_0x9d01ee(0x7e)});_0xb2b391[_0x9d01ee(0xd0)]();}}catch{}}[a0_0x59b9b3(0x74)](_0x375b48=a0_0x59b9b3(0x65)){const _0x537be5=a0_0x59b9b3,_0x5e97e8=this[_0x537be5(0x8c)]();let _0x41ad74=0x0,_0x27c4f1=0x0,_0x402ddc=0x0;for(const _0x19cabd of _0x5e97e8){_0x41ad74+=_0x19cabd[_0x537be5(0x8b)],_0x27c4f1+=_0x19cabd['estimated_compressed_tokens'],_0x402ddc+=_0x19cabd[_0x537be5(0xdc)];}let _0x137c97=_0x375b48;(!_0x137c97||_0x137c97===_0x537be5(0x65)||!exports['PRICING'][_0x137c97])&&(_0x5e97e8['length']>0x0&&_0x5e97e8[_0x5e97e8[_0x537be5(0xc4)]-0x1][_0x537be5(0xba)]?_0x137c97=_0x5e97e8[_0x5e97e8[_0x537be5(0xc4)]-0x1][_0x537be5(0xba)]:_0x137c97=this[_0x537be5(0xeb)]()[_0x537be5(0x67)]||_0x537be5(0x8d));const _0x3e3d05=exports[_0x537be5(0xc5)][_0x137c97]||exports[_0x537be5(0xc5)][_0x537be5(0x8d)],_0x55d5b8=_0x402ddc*_0x3e3d05[_0x537be5(0x95)]/0xf4240,_0x192f0d=_0x41ad74*_0x3e3d05[_0x537be5(0x95)]/0xf4240,_0x48621e=_0x27c4f1*_0x3e3d05['input_price_1m']/0xf4240,_0x54f569=_0x41ad74>0x0?_0x402ddc/_0x41ad74*0x64:0x0;return{'total_raw_tokens':_0x41ad74,'total_compressed_tokens':_0x27c4f1,'total_tokens_saved':_0x402ddc,'savings_percentage':parseFloat(_0x54f569[_0x537be5(0xb0)](0x1)),'money_saved_usd':parseFloat(_0x55d5b8[_0x537be5(0xb0)](0x4)),'raw_cost_usd':parseFloat(_0x192f0d[_0x537be5(0xb0)](0x4)),'compressed_cost_usd':parseFloat(_0x48621e[_0x537be5(0xb0)](0x4)),'model_name':_0x3e3d05[_0x537be5(0x6b)],'model_key':_0x137c97};}}exports[a0_0x59b9b3(0x6e)]=Tracker,exports[a0_0x59b9b3(0xe3)]=new Tracker();