trimprompt 1.0.18 → 1.0.20
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/cache.js +1 -1
- package/cli.js +1 -1
- package/dashboard.js +1 -1
- package/executor.js +1 -1
- package/filters/devops.js +1 -1
- package/filters/generic.js +1 -1
- package/filters/git.js +1 -1
- package/filters/go.js +1 -1
- package/filters/index.js +1 -1
- package/filters/js.js +1 -1
- package/filters/python.js +1 -1
- package/filters/rust.js +1 -1
- package/filters/shell.js +1 -1
- package/index.html +5 -1
- package/mcp.js +1 -1
- package/package.json +2 -2
- package/redactor.js +1 -1
- package/seed.js +1 -1
- package/shims.js +1 -1
- package/simulate.js +1 -1
- package/sync.js +1 -1
- package/tracker.js +1 -1
package/tracker.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a0_0x46af29=a0_0x4124;(function(_0x109e8c,_0x5a0513){const _0x1b5779=a0_0x4124,_0x527759=_0x109e8c();while(!![]){try{const _0x1bfdea=parseInt(_0x1b5779(0x203))/0x1+parseInt(_0x1b5779(0x1c5))/0x2*(-parseInt(_0x1b5779(0x22a))/0x3)+parseInt(_0x1b5779(0x1f2))/0x4+-parseInt(_0x1b5779(0x1e8))/0x5*(parseInt(_0x1b5779(0x1b5))/0x6)+parseInt(_0x1b5779(0x1a0))/0x7*(parseInt(_0x1b5779(0x1f6))/0x8)+parseInt(_0x1b5779(0x1e2))/0x9*(parseInt(_0x1b5779(0x1f8))/0xa)+-parseInt(_0x1b5779(0x1ea))/0xb;if(_0x1bfdea===_0x5a0513)break;else _0x527759['push'](_0x527759['shift']());}catch(_0x3e799d){_0x527759['push'](_0x527759['shift']());}}}(a0_0x4b5a,0x820e6));var __createBinding=this&&this[a0_0x46af29(0x201)]||(Object['create']?function(_0x42d24f,_0x50cd24,_0x24f30a,_0x48d7b0){const _0x2d2338=a0_0x46af29;if(_0x48d7b0===undefined)_0x48d7b0=_0x24f30a;var _0x1386fd=Object[_0x2d2338(0x1bd)](_0x50cd24,_0x24f30a);(!_0x1386fd||(_0x2d2338(0x225)in _0x1386fd?!_0x50cd24['__esModule']:_0x1386fd['writable']||_0x1386fd[_0x2d2338(0x197)]))&&(_0x1386fd={'enumerable':!![],'get':function(){return _0x50cd24[_0x24f30a];}}),Object[_0x2d2338(0x1da)](_0x42d24f,_0x48d7b0,_0x1386fd);}:function(_0x5bbcd4,_0x39de9f,_0x27c48a,_0x719361){if(_0x719361===undefined)_0x719361=_0x27c48a;_0x5bbcd4[_0x719361]=_0x39de9f[_0x27c48a];}),__setModuleDefault=this&&this[a0_0x46af29(0x1ec)]||(Object[a0_0x46af29(0x1cc)]?function(_0xc6f2f9,_0x552ce4){const _0xf24105=a0_0x46af29;Object[_0xf24105(0x1da)](_0xc6f2f9,'default',{'enumerable':!![],'value':_0x552ce4});}:function(_0x57e8ae,_0x29487b){const _0x3848d8=a0_0x46af29;_0x57e8ae[_0x3848d8(0x1e7)]=_0x29487b;}),__importStar=this&&this['__importStar']||(function(){var _0x5c021d=function(_0x56a1ae){const _0x56572c=a0_0x4124;return _0x5c021d=Object[_0x56572c(0x1a8)]||function(_0x410189){const _0x4ef3c7=_0x56572c;var _0x28fff4=[];for(var _0x128877 in _0x410189)if(Object[_0x4ef3c7(0x198)][_0x4ef3c7(0x206)][_0x4ef3c7(0x1f5)](_0x410189,_0x128877))_0x28fff4[_0x28fff4[_0x4ef3c7(0x1d4)]]=_0x128877;return _0x28fff4;},_0x5c021d(_0x56a1ae);};return function(_0x4f7a74){const _0x24774a=a0_0x4124;if(_0x4f7a74&&_0x4f7a74[_0x24774a(0x1d3)])return _0x4f7a74;var _0xcd774d={};if(_0x4f7a74!=null){for(var _0x49ea67=_0x5c021d(_0x4f7a74),_0x47a951=0x0;_0x47a951<_0x49ea67['length'];_0x47a951++)if(_0x49ea67[_0x47a951]!=='default')__createBinding(_0xcd774d,_0x4f7a74,_0x49ea67[_0x47a951]);}return __setModuleDefault(_0xcd774d,_0x4f7a74),_0xcd774d;};}());Object[a0_0x46af29(0x1da)](exports,a0_0x46af29(0x1d3),{'value':!![]}),exports['tracker']=exports[a0_0x46af29(0x208)]=exports['PRICING']=void 0x0,exports[a0_0x46af29(0x216)]=detectSessionTool;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x46af29(0x1a6))),os=__importStar(require('os')),child_process_1=require('child_process');function a0_0x4124(_0x4b6375,_0x4f4f16){_0x4b6375=_0x4b6375-0x196;const _0x4b5a18=a0_0x4b5a();let _0x4124db=_0x4b5a18[_0x4b6375];return _0x4124db;}exports[a0_0x46af29(0x211)]={'claude-fable-5':{'name':a0_0x46af29(0x1fd),'input_price_1m':0xa},'claude-mythos-5':{'name':'Claude\x20Mythos\x205','input_price_1m':0xa},'claude-opus-4-8':{'name':'Claude\x20Opus\x204.8','input_price_1m':0x5},'claude-opus-4-7':{'name':a0_0x46af29(0x1d5),'input_price_1m':0x5},'claude-opus-4-5':{'name':a0_0x46af29(0x21b),'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_0x46af29(0x1e4),'input_price_1m':0x3},'claude-sonnet-4-5':{'name':a0_0x46af29(0x20d),'input_price_1m':0x3},'claude-3-5-sonnet':{'name':a0_0x46af29(0x20e),'input_price_1m':0x3},'claude-haiku-4-5':{'name':a0_0x46af29(0x1bf),'input_price_1m':0x1},'claude-haiku-3-5':{'name':'Claude\x20Haiku\x203.5','input_price_1m':0.8},'gpt-5-5':{'name':a0_0x46af29(0x1af),'input_price_1m':0x5},'gpt-5-4':{'name':a0_0x46af29(0x217),'input_price_1m':2.5},'gpt-4o':{'name':a0_0x46af29(0x1db),'input_price_1m':2.5},'gpt-5-4-mini':{'name':a0_0x46af29(0x22d),'input_price_1m':0.75},'gpt-5-4-nano':{'name':a0_0x46af29(0x1b2),'input_price_1m':0.2},'gpt-4-1-mini':{'name':a0_0x46af29(0x1d8),'input_price_1m':0.4},'gpt-4-1-nano':{'name':a0_0x46af29(0x219),'input_price_1m':0.1},'gpt-4o-mini':{'name':a0_0x46af29(0x1a7),'input_price_1m':0.15},'o1':{'name':a0_0x46af29(0x1f4),'input_price_1m':0xf},'o1-mini':{'name':a0_0x46af29(0x224),'input_price_1m':0x3},'o3-mini':{'name':a0_0x46af29(0x1ed),'input_price_1m':1.1},'cursor-small':{'name':'Cursor\x20Small','input_price_1m':0.1},'gemini-3-1-pro':{'name':'Gemini\x203.1\x20Pro','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_0x46af29(0x231),'input_price_1m':0.45},'gemini-3-5-live-translate':{'name':a0_0x46af29(0x1d6),'input_price_1m':3.5}};function detectSessionTool(){const _0x598baa=a0_0x46af29,_0x61670d=process.env,_0x1bdad8={'tool':'','model':_0x598baa(0x1b4),'modelShort':''};if(_0x61670d['TRIMPROMPT_MODEL']&&exports[_0x598baa(0x211)][_0x61670d[_0x598baa(0x218)]])return{'tool':'','model':_0x61670d['TRIMPROMPT_MODEL'],'modelShort':''};const _0x5d05c2=(_0x61670d[_0x598baa(0x21e)]||'')[_0x598baa(0x1aa)]();if(_0x5d05c2){if(_0x5d05c2[_0x598baa(0x212)](_0x598baa(0x20b))||_0x5d05c2[_0x598baa(0x212)]('claude_code')){const _0x5963d1=_0x61670d[_0x598baa(0x1c2)]===_0x598baa(0x204)?_0x598baa(0x19c):_0x598baa(0x1d7),_0x368879=_0x61670d['CLAUDE_EFFORT']===_0x598baa(0x204)?_0x598baa(0x1ca):_0x598baa(0x1b4);return{'tool':_0x598baa(0x1fe),'model':_0x368879,'modelShort':_0x5963d1};}if(_0x5d05c2[_0x598baa(0x212)]('cursor'))return{'tool':_0x598baa(0x1c9),'model':'claude-sonnet-4-6','modelShort':_0x598baa(0x1d7)};if(_0x5d05c2[_0x598baa(0x212)](_0x598baa(0x1f9))||_0x5d05c2['includes'](_0x598baa(0x1ac))){const _0x1296c0=_0x61670d[_0x598baa(0x196)]||'';if(_0x1296c0&&exports[_0x598baa(0x211)][_0x1296c0])return{'tool':_0x598baa(0x1ac),'model':_0x1296c0,'modelShort':_0x1296c0[_0x598baa(0x1eb)]('-')[_0x598baa(0x1f3)]()||''};return{'tool':_0x598baa(0x1ac),'model':_0x598baa(0x1b7),'modelShort':_0x598baa(0x1d7)};}if(_0x5d05c2['includes']('gemini'))return{'tool':'gemini','model':_0x598baa(0x1a2),'modelShort':'flash'};if(_0x5d05c2[_0x598baa(0x212)](_0x598baa(0x1f1)))return{'tool':'codex','model':_0x598baa(0x1a9),'modelShort':_0x598baa(0x223)};if(_0x5d05c2[_0x598baa(0x212)](_0x598baa(0x1c6)))return{'tool':_0x598baa(0x1c6),'model':_0x598baa(0x1b4),'modelShort':''};if(_0x5d05c2[_0x598baa(0x212)](_0x598baa(0x20f)))return{'tool':_0x598baa(0x20f),'model':_0x598baa(0x20c),'modelShort':_0x598baa(0x1d2)};if(_0x5d05c2['includes'](_0x598baa(0x1a5))||_0x61670d[_0x598baa(0x19a)])return{'tool':_0x598baa(0x1a5),'model':_0x598baa(0x1b4),'modelShort':''};return{'tool':_0x5d05c2[_0x598baa(0x1eb)]('_')[0x0]['split']('-')[0x0],'model':_0x598baa(0x1b4),'modelShort':''};}if(_0x61670d[_0x598baa(0x1e6)]==='1'||_0x61670d[_0x598baa(0x1c4)]==='1'){const _0x12b087=_0x61670d[_0x598baa(0x1c2)]===_0x598baa(0x204)?_0x598baa(0x19c):_0x598baa(0x1d7),_0x2ff092=_0x61670d[_0x598baa(0x1c2)]==='high'?'claude-opus-4-8':'claude-sonnet-4-6';return{'tool':_0x598baa(0x1fe),'model':_0x2ff092,'modelShort':_0x12b087};}if(_0x61670d[_0x598baa(0x1ab)]==='1')return{'tool':_0x598baa(0x1c9),'model':'claude-sonnet-4-6','modelShort':'sonnet'};if(_0x61670d[_0x598baa(0x22b)]==='1')return{'tool':'gemini','model':_0x598baa(0x1a2),'modelShort':_0x598baa(0x22f)};if(_0x61670d[_0x598baa(0x196)]||_0x61670d['COPILOT_GITHUB_TOKEN']){const _0xaf9760=_0x61670d[_0x598baa(0x196)]||'';if(_0xaf9760&&exports[_0x598baa(0x211)][_0xaf9760])return{'tool':_0x598baa(0x1ac),'model':_0xaf9760,'modelShort':_0xaf9760['split']('-')['pop']()||''};return{'tool':_0x598baa(0x1ac),'model':'claude-sonnet-4-5','modelShort':'sonnet'};}if(_0x61670d['REPL_ID']||_0x61670d['REPLIT_ENVIRONMENT'])return{'tool':'replit','model':_0x598baa(0x1b4),'modelShort':''};if(_0x61670d[_0x598baa(0x1ae)])return{'tool':_0x598baa(0x1bb),'model':'claude-sonnet-4-6','modelShort':''};if(_0x61670d['CONTINUE_GLOBAL_DIR'])return{'tool':_0x598baa(0x222),'model':_0x598baa(0x1b4),'modelShort':''};if(_0x61670d[_0x598baa(0x22c)]==='1')return{'tool':_0x598baa(0x20f),'model':'gemini-3-1-pro','modelShort':_0x598baa(0x1d2)};if(_0x61670d['CLAUDE_EFFORT']){const _0x44416f=_0x61670d[_0x598baa(0x1c2)]==='high'?_0x598baa(0x19c):'sonnet',_0x29974b=_0x61670d[_0x598baa(0x1c2)]===_0x598baa(0x204)?'claude-opus-4-8':_0x598baa(0x1b4);return{'tool':'','model':_0x29974b,'modelShort':''};}if(_0x61670d['AIDER_MODEL']&&exports['PRICING'][_0x61670d[_0x598baa(0x1e0)]])return{'tool':'aider','model':_0x61670d[_0x598baa(0x1e0)],'modelShort':''};if(_0x61670d[_0x598baa(0x1e3)]){const _0x46b36d=(_0x61670d[_0x598baa(0x1e9)]||'')[_0x598baa(0x1aa)]();if(_0x46b36d[_0x598baa(0x212)]('cursor'))return{'tool':'cursor','model':_0x598baa(0x1b4),'modelShort':_0x598baa(0x1d7)};if(_0x46b36d[_0x598baa(0x212)](_0x598baa(0x1cb)))return{'tool':_0x598baa(0x1cb),'model':'claude-sonnet-4-6','modelShort':'sonnet'};}const _0x2f5acc=process.env.TRIMPROMPT_MODEL||'';if(_0x2f5acc&&exports[_0x598baa(0x211)][_0x2f5acc])return{'tool':'','model':_0x2f5acc,'modelShort':''};return _0x1bdad8;}class Tracker{[a0_0x46af29(0x215)];[a0_0x46af29(0x200)];['statsPath'];[a0_0x46af29(0x1c3)];[a0_0x46af29(0x1fa)];constructor(){const _0x830c33=a0_0x46af29;this[_0x830c33(0x215)]=path[_0x830c33(0x1ad)](os[_0x830c33(0x1bc)](),_0x830c33(0x207)),this[_0x830c33(0x200)]=path[_0x830c33(0x1ad)](this['baseDir'],_0x830c33(0x21f)),this[_0x830c33(0x1c1)]=path[_0x830c33(0x1ad)](this['baseDir'],_0x830c33(0x1e1)),this[_0x830c33(0x1c3)]=path['join'](this[_0x830c33(0x215)],'logs'),this[_0x830c33(0x22e)]();}[a0_0x46af29(0x22e)](){const _0x59eb77=a0_0x46af29;!fs[_0x59eb77(0x1f0)](this['baseDir'])&&fs[_0x59eb77(0x1d0)](this['baseDir'],{'recursive':!![]});!fs[_0x59eb77(0x1f0)](this['logsDir'])&&fs['mkdirSync'](this[_0x59eb77(0x1c3)],{'recursive':!![]});const _0x1852fc={'version':_0x59eb77(0x1b6),'telemetry_url':process.env.TRIMPROMPT_TELEMETRY_URL||'','max_output_tokens':0x1388,'redaction_enabled':!![],'default_model':'claude-opus-4-8'};if(fs[_0x59eb77(0x1f0)](this[_0x59eb77(0x200)]))try{const _0x30bb32=fs['readFileSync'](this['configPath'],_0x59eb77(0x1b9));this[_0x59eb77(0x1fa)]={..._0x1852fc,...JSON[_0x59eb77(0x1dc)](_0x30bb32)};}catch(_0x7ed03c){this['config']=_0x1852fc;}else this[_0x59eb77(0x1fa)]=_0x1852fc,this[_0x59eb77(0x209)]();!fs[_0x59eb77(0x1f0)](this['statsPath'])&&fs['writeFileSync'](this[_0x59eb77(0x1c1)],JSON[_0x59eb77(0x1d1)]([]),_0x59eb77(0x1b9));}[a0_0x46af29(0x1ef)](){const _0x3cb26a=a0_0x46af29;return process.env.TRIMPROMPT_TELEMETRY_URL&&(this[_0x3cb26a(0x1fa)][_0x3cb26a(0x1a3)]=process.env.TRIMPROMPT_TELEMETRY_URL),this['config'];}[a0_0x46af29(0x205)](_0x16d253,_0x157291){const _0x2b4b59=a0_0x46af29;this[_0x2b4b59(0x1fa)][_0x16d253]=_0x157291,this['saveConfig']();}['saveConfig'](){const _0x534efe=a0_0x46af29;fs['writeFileSync'](this[_0x534efe(0x200)],JSON[_0x534efe(0x1d1)](this[_0x534efe(0x1fa)],null,0x2),_0x534efe(0x1b9));}[a0_0x46af29(0x1a1)](){const _0x563220=a0_0x46af29;try{if(!fs[_0x563220(0x1f0)](this[_0x563220(0x1c1)]))return[];const _0x26558e=fs[_0x563220(0x1c0)](this[_0x563220(0x1c1)],'utf8');return JSON['parse'](_0x26558e);}catch{return[];}}[a0_0x46af29(0x1f7)](_0x221cdd){const _0x2c533d=a0_0x46af29;fs[_0x2c533d(0x21c)](this[_0x2c533d(0x1c1)],JSON['stringify'](_0x221cdd,null,0x2),'utf8');}['logExecution'](_0x3ace57,_0x3d7a72,_0x4170ca,_0x436022,_0x57d289){const _0x3f55ab=a0_0x46af29,_0x358d0b=this[_0x3f55ab(0x1a1)](),_0x22d395=_0x3d7a72[_0x3f55ab(0x1d4)],_0x1da559=_0x4170ca['length'],_0x42ab46=Math[_0x3f55ab(0x19d)](_0x22d395/0x4),_0x1ea35b=Math[_0x3f55ab(0x19d)](_0x1da559/0x4),_0xc3b27e=Math[_0x3f55ab(0x232)](0x0,_0x42ab46-_0x1ea35b),_0x162637=detectSessionTool(),_0x4894bb=_0x162637['model'],_0x2b7eda=Math['random']()[_0x3f55ab(0x1e5)](0x24)[_0x3f55ab(0x1cd)](0x2,0xb);try{fs['writeFileSync'](path[_0x3f55ab(0x1ad)](this[_0x3f55ab(0x1c3)],_0x2b7eda+_0x3f55ab(0x227)),_0x3d7a72,_0x3f55ab(0x1b9)),fs[_0x3f55ab(0x21c)](path[_0x3f55ab(0x1ad)](this[_0x3f55ab(0x1c3)],_0x2b7eda+'.comp.txt'),_0x4170ca,_0x3f55ab(0x1b9));}catch{}const _0x2ba8ab=_0x3ace57['split']('\x20')[0x0]||_0x3f55ab(0x230),_0x4f8d5b=_0x162637[_0x3f55ab(0x1b8)]?_0x162637[_0x3f55ab(0x1de)]?_0x162637[_0x3f55ab(0x1b8)]+'-'+_0x162637['modelShort']+'-'+_0x2ba8ab:_0x162637[_0x3f55ab(0x1b8)]+'-'+_0x2ba8ab:_0x2ba8ab,_0x5e3e92={'id':_0x2b7eda,'timestamp':new Date()[_0x3f55ab(0x1c7)](),'command':_0x4f8d5b,'raw_chars':_0x22d395,'compressed_chars':_0x1da559,'estimated_raw_tokens':_0x42ab46,'estimated_compressed_tokens':_0x1ea35b,'tokens_saved':_0xc3b27e,'model_used':_0x4894bb,'exit_code':_0x436022,'synced':![],'ai_detected':!!_0x162637[_0x3f55ab(0x1b8)],'secrets_found':_0x57d289?.['secretsFound']||0x0,'secret_types':_0x57d289?.[_0x3f55ab(0x1ce)]||[]};_0x358d0b['push'](_0x5e3e92),this[_0x3f55ab(0x1f7)](_0x358d0b);const _0x271bbc=this['getConfig']()[_0x3f55ab(0x1a3)];return _0x271bbc&&_0x271bbc[_0x3f55ab(0x19b)]()[_0x3f55ab(0x1d4)]>0x0&&this[_0x3f55ab(0x1df)](),_0x57d289&&_0x57d289[_0x3f55ab(0x1dd)]>0x0&&this[_0x3f55ab(0x221)](_0x5e3e92,_0x57d289),_0x5e3e92;}['sendSecurityAlert'](_0x4774d7,_0x2c0fed){const _0x407b56=a0_0x46af29;try{let _0x4130c4=this[_0x407b56(0x1ef)]()[_0x407b56(0x1a3)]||'';if(!_0x4130c4)return;_0x4130c4=_0x4130c4[_0x407b56(0x229)](/\/api\/telemetry\/?$/,'/api/security/alert');if(!_0x4130c4['includes'](_0x407b56(0x1c8)))_0x4130c4+='/api/security/alert';const {execSync:_0x46dfdd}=require(_0x407b56(0x210));let _0x4ad3bb=_0x407b56(0x230);try{_0x4ad3bb=require(_0x407b56(0x210))['execSync'](_0x407b56(0x213),{'stdio':['ignore',_0x407b56(0x199),_0x407b56(0x233)]})[_0x407b56(0x1e5)]()[_0x407b56(0x19b)]();}catch{}if(!_0x4ad3bb||!_0x4ad3bb[_0x407b56(0x212)]('@'))try{_0x4ad3bb=require('os')[_0x407b56(0x220)]()[_0x407b56(0x1ee)];}catch{}const _0x43ead9=JSON[_0x407b56(0x1d1)]({'developer_id':_0x4ad3bb,'timestamp':_0x4774d7[_0x407b56(0x19e)],'command':_0x4774d7[_0x407b56(0x1b3)],'secrets_found':_0x2c0fed[_0x407b56(0x1dd)],'secret_types':_0x2c0fed[_0x407b56(0x1ce)],'os':require('os')[_0x407b56(0x1b0)]()}),_0x38b84e='const\x20h=require(require(\x27url\x27).parse('+JSON['stringify'](_0x4130c4)+_0x407b56(0x1d9)+JSON[_0x407b56(0x1d1)](_0x4130c4)+',{method:\x27POST\x27,headers:{\x27Content-Type\x27:\x27application/json\x27}},()=>{});r.on(\x27error\x27,()=>{});r.end('+JSON[_0x407b56(0x1d1)](_0x43ead9)+')',_0x127e2a=(0x0,child_process_1['spawn'])(process[_0x407b56(0x202)],['-e',_0x38b84e],{'detached':!![],'stdio':_0x407b56(0x233)});_0x127e2a[_0x407b56(0x21a)]();}catch{}}['triggerBackgroundSync'](){const _0x361566=a0_0x46af29;try{const _0x54c024=path[_0x361566(0x1ad)](__dirname,_0x361566(0x226));if(fs['existsSync'](_0x54c024)){const _0x5cdf38=(0x0,child_process_1[_0x361566(0x1be)])(process[_0x361566(0x202)],[_0x54c024],{'detached':!![],'stdio':_0x361566(0x233)});_0x5cdf38[_0x361566(0x21a)]();}}catch{}}[a0_0x46af29(0x20a)](_0x1e68f6=a0_0x46af29(0x1ba)){const _0xee4262=a0_0x46af29,_0x39b0c9=this['getLogs']();let _0x5db4af=0x0,_0x26fc17=0x0,_0x25f163=0x0;for(const _0xdd60ee of _0x39b0c9){_0x5db4af+=_0xdd60ee[_0xee4262(0x1b1)],_0x26fc17+=_0xdd60ee[_0xee4262(0x1fb)],_0x25f163+=_0xdd60ee[_0xee4262(0x1fc)];}let _0x45fefd=_0x1e68f6;(!_0x45fefd||_0x45fefd===_0xee4262(0x1ba)||!exports[_0xee4262(0x211)][_0x45fefd])&&(_0x39b0c9[_0xee4262(0x1d4)]>0x0&&_0x39b0c9[_0x39b0c9[_0xee4262(0x1d4)]-0x1]['model_used']?_0x45fefd=_0x39b0c9[_0x39b0c9[_0xee4262(0x1d4)]-0x1][_0xee4262(0x1cf)]:_0x45fefd=this[_0xee4262(0x1ef)]()[_0xee4262(0x21d)]||_0xee4262(0x19f));const _0x4e17fc=exports[_0xee4262(0x211)][_0x45fefd]||exports[_0xee4262(0x211)]['claude-3-5-sonnet'],_0x13aaaf=_0x25f163*_0x4e17fc[_0xee4262(0x214)]/0xf4240,_0x39edfa=_0x5db4af*_0x4e17fc[_0xee4262(0x214)]/0xf4240,_0x1f5e3d=_0x26fc17*_0x4e17fc[_0xee4262(0x214)]/0xf4240,_0x2dc88c=_0x5db4af>0x0?_0x25f163/_0x5db4af*0x64:0x0;return{'total_raw_tokens':_0x5db4af,'total_compressed_tokens':_0x26fc17,'total_tokens_saved':_0x25f163,'savings_percentage':parseFloat(_0x2dc88c[_0xee4262(0x1ff)](0x1)),'money_saved_usd':parseFloat(_0x13aaaf['toFixed'](0x4)),'raw_cost_usd':parseFloat(_0x39edfa[_0xee4262(0x1ff)](0x4)),'compressed_cost_usd':parseFloat(_0x1f5e3d[_0xee4262(0x1ff)](0x4)),'model_name':_0x4e17fc[_0xee4262(0x228)],'model_key':_0x45fefd};}}function a0_0x4b5a(){const _0x39286d=['mkdirSync','stringify','gemini','__esModule','length','Claude\x20Opus\x204.7','Gemini\x203.5\x20Live\x20Translate','sonnet','GPT-4.1\x20Mini',').protocol===\x27https:\x27?\x27https\x27:\x27http\x27);const\x20r=h.request(','defineProperty','GPT-4o','parse','secretsFound','modelShort','triggerBackgroundSync','AIDER_MODEL','stats.json','117vJiWZS','VSCODE_PID','Claude\x20Sonnet\x204.6','toString','CLAUDECODE','default','9255wSWgQq','PATH','558481cBOSfO','split','__setModuleDefault','OpenAI\x20o3-mini','username','getConfig','existsSync','codex','804496ipyrho','pop','OpenAI\x20o1','call','4112thWexE','saveLogs','447130pMWaZv','github-copilot','config','estimated_compressed_tokens','tokens_saved','Claude\x20Fable\x205','claude','toFixed','configPath','__createBinding','execPath','505615oOKihw','high','setConfig','hasOwnProperty','.trimprompt','Tracker','saveConfig','getStatsSummary','claude-code','gemini-3-1-pro','Claude\x20Sonnet\x204.5','Claude\x203.5\x20Sonnet','antigravity','child_process','PRICING','includes','git\x20config\x20user.email','input_price_1m','baseDir','detectSessionTool','GPT-5.4','TRIMPROMPT_MODEL','GPT-4.1\x20Nano','unref','Claude\x20Opus\x204.5','writeFileSync','default_model','AI_AGENT','config.json','userInfo','sendSecurityAlert','continue','o3mini','OpenAI\x20o1-mini','get','sync.js','.raw.txt','name','replace','788493RiVuFC','GEMINI_CLI','ANTIGRAVITY_AGENT','GPT-5.4\x20Mini','init','flash','unknown','Gemini\x203.1\x20Flash-Lite','max','ignore','COPILOT_MODEL','configurable','prototype','pipe','REPL_ID','trim','opus','ceil','timestamp','claude-3-5-sonnet','2051izyukK','getLogs','gemini-3-5-flash','telemetry_url','tracker','replit','path','GPT-4o\x20Mini','getOwnPropertyNames','o3-mini','toLowerCase','CURSOR_AGENT','copilot','join','CLINE_DATA_DIR','GPT-5.5','platform','estimated_raw_tokens','GPT-5.4\x20Nano','command','claude-sonnet-4-6','216RgHkOM','1.0','claude-sonnet-4-5','tool','utf8','auto','cline','homedir','getOwnPropertyDescriptor','spawn','Claude\x20Haiku\x204.5','readFileSync','statsPath','CLAUDE_EFFORT','logsDir','CLAUDE_CODE','6eCXnGl','devin','toISOString','/api/security/alert','cursor','claude-opus-4-8','windsurf','create','substring','secretTypes','model_used'];a0_0x4b5a=function(){return _0x39286d;};return a0_0x4b5a();}exports['Tracker']=Tracker,exports[a0_0x46af29(0x1a4)]=new Tracker();
|
|
1
|
+
'use strict';function a0_0x2d7d(_0x4ea8bf,_0x56cccd){_0x4ea8bf=_0x4ea8bf-0xcf;const _0x308284=a0_0x3082();let _0x2d7d40=_0x308284[_0x4ea8bf];return _0x2d7d40;}const a0_0x3165a2=a0_0x2d7d;(function(_0x4886f7,_0xf681fe){const _0x5f13fd=a0_0x2d7d,_0x296b3a=_0x4886f7();while(!![]){try{const _0x150098=parseInt(_0x5f13fd(0xf7))/0x1*(parseInt(_0x5f13fd(0x137))/0x2)+-parseInt(_0x5f13fd(0xe5))/0x3*(-parseInt(_0x5f13fd(0x107))/0x4)+parseInt(_0x5f13fd(0x125))/0x5+parseInt(_0x5f13fd(0x13c))/0x6*(-parseInt(_0x5f13fd(0x13e))/0x7)+-parseInt(_0x5f13fd(0x149))/0x8+-parseInt(_0x5f13fd(0xfb))/0x9+parseInt(_0x5f13fd(0x14f))/0xa;if(_0x150098===_0xf681fe)break;else _0x296b3a['push'](_0x296b3a['shift']());}catch(_0xd118e3){_0x296b3a['push'](_0x296b3a['shift']());}}}(a0_0x3082,0x2cf58));var __createBinding=this&&this[a0_0x3165a2(0x161)]||(Object[a0_0x3165a2(0x140)]?function(_0x59e357,_0xfbe925,_0x5ccfa7,_0x93e43f){const _0x321640=a0_0x3165a2;if(_0x93e43f===undefined)_0x93e43f=_0x5ccfa7;var _0x346668=Object['getOwnPropertyDescriptor'](_0xfbe925,_0x5ccfa7);(!_0x346668||(_0x321640(0x12c)in _0x346668?!_0xfbe925[_0x321640(0x102)]:_0x346668[_0x321640(0x15c)]||_0x346668['configurable']))&&(_0x346668={'enumerable':!![],'get':function(){return _0xfbe925[_0x5ccfa7];}}),Object['defineProperty'](_0x59e357,_0x93e43f,_0x346668);}:function(_0x5ae271,_0x4d6cb5,_0x303527,_0x16b6f0){if(_0x16b6f0===undefined)_0x16b6f0=_0x303527;_0x5ae271[_0x16b6f0]=_0x4d6cb5[_0x303527];}),__setModuleDefault=this&&this[a0_0x3165a2(0x101)]||(Object['create']?function(_0xb105dd,_0x46c214){Object['defineProperty'](_0xb105dd,'default',{'enumerable':!![],'value':_0x46c214});}:function(_0x3f0694,_0x46e435){const _0x1e8cc9=a0_0x3165a2;_0x3f0694[_0x1e8cc9(0x164)]=_0x46e435;}),__importStar=this&&this[a0_0x3165a2(0xd1)]||(function(){var _0xee05b=function(_0x3775f2){return _0xee05b=Object['getOwnPropertyNames']||function(_0xda50d6){const _0x1cec16=a0_0x2d7d;var _0x30d4bb=[];for(var _0x1d7a33 in _0xda50d6)if(Object[_0x1cec16(0xd2)][_0x1cec16(0x10e)][_0x1cec16(0xec)](_0xda50d6,_0x1d7a33))_0x30d4bb[_0x30d4bb[_0x1cec16(0x12a)]]=_0x1d7a33;return _0x30d4bb;},_0xee05b(_0x3775f2);};return function(_0x276029){const _0x3007f2=a0_0x2d7d;if(_0x276029&&_0x276029['__esModule'])return _0x276029;var _0x24912={};if(_0x276029!=null){for(var _0x5e5e39=_0xee05b(_0x276029),_0x41d2d0=0x0;_0x41d2d0<_0x5e5e39[_0x3007f2(0x12a)];_0x41d2d0++)if(_0x5e5e39[_0x41d2d0]!==_0x3007f2(0x164))__createBinding(_0x24912,_0x276029,_0x5e5e39[_0x41d2d0]);}return __setModuleDefault(_0x24912,_0x276029),_0x24912;};}());Object['defineProperty'](exports,a0_0x3165a2(0x102),{'value':!![]}),exports[a0_0x3165a2(0x141)]=exports[a0_0x3165a2(0x154)]=exports[a0_0x3165a2(0x129)]=void 0x0,exports[a0_0x3165a2(0xd9)]=detectSessionTool;const fs=__importStar(require('fs')),path=__importStar(require('path')),os=__importStar(require('os')),child_process_1=require(a0_0x3165a2(0xf8));exports[a0_0x3165a2(0x129)]={'claude-fable-5':{'name':a0_0x3165a2(0xff),'input_price_1m':0xa},'claude-mythos-5':{'name':a0_0x3165a2(0x103),'input_price_1m':0xa},'claude-opus-4-8':{'name':a0_0x3165a2(0x14b),'input_price_1m':0x5},'claude-opus-4-7':{'name':a0_0x3165a2(0x106),'input_price_1m':0x5},'claude-opus-4-5':{'name':a0_0x3165a2(0xfd),'input_price_1m':0x5},'claude-opus-4-1':{'name':a0_0x3165a2(0xd6),'input_price_1m':0xf},'claude-sonnet-4-6':{'name':a0_0x3165a2(0xe8),'input_price_1m':0x3},'claude-sonnet-4-5':{'name':a0_0x3165a2(0xfa),'input_price_1m':0x3},'claude-3-5-sonnet':{'name':'Claude\x203.5\x20Sonnet','input_price_1m':0x3},'claude-haiku-4-5':{'name':'Claude\x20Haiku\x204.5','input_price_1m':0x1},'claude-haiku-3-5':{'name':a0_0x3165a2(0x11a),'input_price_1m':0.8},'gpt-5-5':{'name':'GPT-5.5','input_price_1m':0x5},'gpt-5-4':{'name':a0_0x3165a2(0xf4),'input_price_1m':2.5},'gpt-4o':{'name':'GPT-4o','input_price_1m':2.5},'gpt-5-4-mini':{'name':'GPT-5.4\x20Mini','input_price_1m':0.75},'gpt-5-4-nano':{'name':a0_0x3165a2(0x100),'input_price_1m':0.2},'gpt-4-1-mini':{'name':a0_0x3165a2(0x166),'input_price_1m':0.4},'gpt-4-1-nano':{'name':'GPT-4.1\x20Nano','input_price_1m':0.1},'gpt-4o-mini':{'name':a0_0x3165a2(0x108),'input_price_1m':0.15},'o1':{'name':a0_0x3165a2(0x111),'input_price_1m':0xf},'o1-mini':{'name':'OpenAI\x20o1-mini','input_price_1m':0x3},'o3-mini':{'name':a0_0x3165a2(0x132),'input_price_1m':1.1},'cursor-small':{'name':a0_0x3165a2(0x124),'input_price_1m':0.1},'gemini-3-1-pro':{'name':'Gemini\x203.1\x20Pro','input_price_1m':0x2},'gemini-3-5-flash':{'name':a0_0x3165a2(0xfc),'input_price_1m':1.5},'gemini-3-1-flash-lite':{'name':a0_0x3165a2(0x148),'input_price_1m':0.45},'gemini-3-5-live-translate':{'name':a0_0x3165a2(0x167),'input_price_1m':3.5}};function detectSessionTool(){const _0x2a44cb=a0_0x3165a2,_0x3c3228=process.env,_0x1a596a={'tool':'','model':'claude-sonnet-4-6','modelShort':''};if(_0x3c3228[_0x2a44cb(0x151)]&&exports[_0x2a44cb(0x129)][_0x3c3228[_0x2a44cb(0x151)]])return{'tool':'','model':_0x3c3228['TRIMPROMPT_MODEL'],'modelShort':''};const _0x4181e4=(_0x3c3228[_0x2a44cb(0xe6)]||'')['toLowerCase']();if(_0x4181e4){if(_0x4181e4[_0x2a44cb(0xdd)](_0x2a44cb(0x122))||_0x4181e4['includes'](_0x2a44cb(0xd0))){const _0x180ab2=_0x3c3228['CLAUDE_EFFORT']===_0x2a44cb(0xf0)?_0x2a44cb(0x163):_0x2a44cb(0xe4),_0x536930=_0x3c3228[_0x2a44cb(0x119)]===_0x2a44cb(0xf0)?_0x2a44cb(0x12e):_0x2a44cb(0x104);return{'tool':_0x2a44cb(0xd4),'model':_0x536930,'modelShort':_0x180ab2};}if(_0x4181e4[_0x2a44cb(0xdd)](_0x2a44cb(0x152)))return{'tool':_0x2a44cb(0x152),'model':'claude-sonnet-4-6','modelShort':_0x2a44cb(0xe4)};if(_0x4181e4[_0x2a44cb(0xdd)](_0x2a44cb(0xfe))||_0x4181e4[_0x2a44cb(0xdd)](_0x2a44cb(0x150))){const _0x1db65f=_0x3c3228[_0x2a44cb(0xeb)]||'';if(_0x1db65f&&exports[_0x2a44cb(0x129)][_0x1db65f])return{'tool':_0x2a44cb(0x150),'model':_0x1db65f,'modelShort':_0x1db65f['split']('-')[_0x2a44cb(0xe7)]()||''};return{'tool':_0x2a44cb(0x150),'model':_0x2a44cb(0x10b),'modelShort':_0x2a44cb(0xe4)};}if(_0x4181e4[_0x2a44cb(0xdd)](_0x2a44cb(0x13f)))return{'tool':_0x2a44cb(0x13f),'model':_0x2a44cb(0x15a),'modelShort':_0x2a44cb(0x162)};if(_0x4181e4['includes'](_0x2a44cb(0x135)))return{'tool':_0x2a44cb(0x135),'model':_0x2a44cb(0x159),'modelShort':_0x2a44cb(0x14e)};if(_0x4181e4[_0x2a44cb(0xdd)](_0x2a44cb(0x128)))return{'tool':_0x2a44cb(0x128),'model':_0x2a44cb(0x104),'modelShort':''};if(_0x4181e4[_0x2a44cb(0xdd)](_0x2a44cb(0x160)))return{'tool':_0x2a44cb(0x160),'model':_0x2a44cb(0x14d),'modelShort':_0x2a44cb(0x13f)};if(_0x4181e4[_0x2a44cb(0xdd)](_0x2a44cb(0x10f))||_0x3c3228['REPL_ID'])return{'tool':_0x2a44cb(0x10f),'model':_0x2a44cb(0x104),'modelShort':''};return{'tool':_0x4181e4[_0x2a44cb(0x113)]('_')[0x0][_0x2a44cb(0x113)]('-')[0x0],'model':'claude-sonnet-4-6','modelShort':''};}if(_0x3c3228[_0x2a44cb(0x112)]==='1'||_0x3c3228[_0x2a44cb(0x143)]==='1'){const _0x570ae7=_0x3c3228['CLAUDE_EFFORT']===_0x2a44cb(0xf0)?_0x2a44cb(0x163):_0x2a44cb(0xe4),_0x3b063a=_0x3c3228['CLAUDE_EFFORT']===_0x2a44cb(0xf0)?_0x2a44cb(0x12e):'claude-sonnet-4-6';return{'tool':'claude','model':_0x3b063a,'modelShort':_0x570ae7};}if(_0x3c3228[_0x2a44cb(0x10a)]==='1')return{'tool':_0x2a44cb(0x152),'model':'claude-sonnet-4-6','modelShort':_0x2a44cb(0xe4)};if(_0x3c3228[_0x2a44cb(0x158)]==='1')return{'tool':'gemini','model':_0x2a44cb(0x15a),'modelShort':_0x2a44cb(0x162)};if(_0x3c3228[_0x2a44cb(0xeb)]||_0x3c3228['COPILOT_GITHUB_TOKEN']){const _0x26a0c0=_0x3c3228[_0x2a44cb(0xeb)]||'';if(_0x26a0c0&&exports[_0x2a44cb(0x129)][_0x26a0c0])return{'tool':'copilot','model':_0x26a0c0,'modelShort':_0x26a0c0[_0x2a44cb(0x113)]('-')[_0x2a44cb(0xe7)]()||''};return{'tool':_0x2a44cb(0x150),'model':'claude-sonnet-4-5','modelShort':_0x2a44cb(0xe4)};}if(_0x3c3228[_0x2a44cb(0xdf)]||_0x3c3228['REPLIT_ENVIRONMENT'])return{'tool':_0x2a44cb(0x10f),'model':_0x2a44cb(0x104),'modelShort':''};if(_0x3c3228[_0x2a44cb(0x15b)])return{'tool':'cline','model':_0x2a44cb(0x104),'modelShort':''};if(_0x3c3228['CONTINUE_GLOBAL_DIR'])return{'tool':_0x2a44cb(0x11b),'model':_0x2a44cb(0x104),'modelShort':''};if(_0x3c3228[_0x2a44cb(0x121)]==='1')return{'tool':_0x2a44cb(0x160),'model':_0x2a44cb(0x14d),'modelShort':'gemini'};if(_0x3c3228['CLAUDE_EFFORT']){const _0x15d268=_0x3c3228[_0x2a44cb(0x119)]==='high'?'opus':_0x2a44cb(0xe4),_0x509a3e=_0x3c3228['CLAUDE_EFFORT']===_0x2a44cb(0xf0)?'claude-opus-4-8':_0x2a44cb(0x104);return{'tool':'','model':_0x509a3e,'modelShort':''};}if(_0x3c3228[_0x2a44cb(0x146)]&&exports['PRICING'][_0x3c3228['AIDER_MODEL']])return{'tool':_0x2a44cb(0x155),'model':_0x3c3228[_0x2a44cb(0x146)],'modelShort':''};if(_0x3c3228['VSCODE_PID']){const _0x33515b=(_0x3c3228['PATH']||'')[_0x2a44cb(0x14a)]();if(_0x33515b[_0x2a44cb(0xdd)](_0x2a44cb(0x152)))return{'tool':'cursor','model':'claude-sonnet-4-6','modelShort':_0x2a44cb(0xe4)};if(_0x33515b[_0x2a44cb(0xdd)](_0x2a44cb(0x12b)))return{'tool':'windsurf','model':_0x2a44cb(0x104),'modelShort':_0x2a44cb(0xe4)};}const _0x3d6327=process.env.TRIMPROMPT_MODEL||'';if(_0x3d6327&&exports[_0x2a44cb(0x129)][_0x3d6327])return{'tool':'','model':_0x3d6327,'modelShort':''};return _0x1a596a;}class Tracker{[a0_0x3165a2(0xf6)];[a0_0x3165a2(0xf1)];[a0_0x3165a2(0x110)];[a0_0x3165a2(0xf9)];[a0_0x3165a2(0x13a)];constructor(){const _0x358159=a0_0x3165a2;this[_0x358159(0xf6)]=path[_0x358159(0xda)](os['homedir'](),'.trimprompt'),this[_0x358159(0xf1)]=path[_0x358159(0xda)](this['baseDir'],_0x358159(0xea)),this[_0x358159(0x110)]=path[_0x358159(0xda)](this[_0x358159(0xf6)],_0x358159(0xe0)),this[_0x358159(0xf9)]=path['join'](this[_0x358159(0xf6)],'logs'),this[_0x358159(0x13d)]();}[a0_0x3165a2(0x13d)](){const _0x4c3dad=a0_0x3165a2;!fs['existsSync'](this['baseDir'])&&fs[_0x4c3dad(0x138)](this['baseDir'],{'recursive':!![]});!fs[_0x4c3dad(0xd8)](this[_0x4c3dad(0xf9)])&&fs[_0x4c3dad(0x138)](this['logsDir'],{'recursive':!![]});const _0x228873={'version':'1.0','telemetry_url':process.env.TRIMPROMPT_TELEMETRY_URL||'','max_output_tokens':0x1388,'redaction_enabled':!![],'default_model':_0x4c3dad(0x12e)};if(fs[_0x4c3dad(0xd8)](this['configPath']))try{const _0x5efa30=fs[_0x4c3dad(0xf3)](this[_0x4c3dad(0xf1)],_0x4c3dad(0xed));this[_0x4c3dad(0x13a)]={..._0x228873,...JSON['parse'](_0x5efa30)};}catch(_0x2271fb){this[_0x4c3dad(0x13a)]=_0x228873;}else this[_0x4c3dad(0x13a)]=_0x228873,this[_0x4c3dad(0xd7)]();!fs[_0x4c3dad(0xd8)](this[_0x4c3dad(0x110)])&&fs[_0x4c3dad(0x131)](this['statsPath'],JSON[_0x4c3dad(0x11e)]([]),'utf8');}['getConfig'](){const _0x5f424a=a0_0x3165a2;return process.env.TRIMPROMPT_TELEMETRY_URL&&(this[_0x5f424a(0x13a)][_0x5f424a(0x12f)]=process.env.TRIMPROMPT_TELEMETRY_URL),this[_0x5f424a(0x13a)];}['setConfig'](_0x52d4e4,_0x1a7a0e){const _0x3904f1=a0_0x3165a2;this[_0x3904f1(0x13a)][_0x52d4e4]=_0x1a7a0e,this[_0x3904f1(0xd7)]();}['saveConfig'](){const _0x37ff64=a0_0x3165a2;fs[_0x37ff64(0x131)](this[_0x37ff64(0xf1)],JSON[_0x37ff64(0x11e)](this[_0x37ff64(0x13a)],null,0x2),'utf8');}['getLogs'](){const _0x395ee5=a0_0x3165a2;try{if(!fs['existsSync'](this[_0x395ee5(0x110)]))return[];const _0x2c6c5d=fs['readFileSync'](this[_0x395ee5(0x110)],_0x395ee5(0xed));return JSON[_0x395ee5(0xd3)](_0x2c6c5d);}catch{return[];}}['saveLogs'](_0x144e64){const _0x15ba52=a0_0x3165a2;fs['writeFileSync'](this[_0x15ba52(0x110)],JSON['stringify'](_0x144e64,null,0x2),_0x15ba52(0xed));}[a0_0x3165a2(0x165)](_0x159af8,_0x582891,_0x19874b,_0x33804d,_0x38cdd8){const _0x25d1c3=a0_0x3165a2,_0x958cd4=this[_0x25d1c3(0xdb)](),_0xa6e48d=_0x582891[_0x25d1c3(0x12a)],_0x4fb333=_0x19874b[_0x25d1c3(0x12a)],_0x354ca5=Math[_0x25d1c3(0xde)](_0xa6e48d/0x4),_0x3f051f=Math[_0x25d1c3(0xde)](_0x4fb333/0x4),_0x5c80d5=Math[_0x25d1c3(0x123)](0x0,_0x354ca5-_0x3f051f),_0x3b15dd=detectSessionTool(),_0x1d50e0=_0x3b15dd[_0x25d1c3(0x105)],_0x1a2eda=Math[_0x25d1c3(0xdc)]()['toString'](0x24)['substring'](0x2,0xb);try{const {redactor:_0x190533}=require('./redactor'),_0x51e617=_0x190533?_0x190533[_0x25d1c3(0x115)](_0x582891):_0x582891;fs[_0x25d1c3(0x131)](path['join'](this[_0x25d1c3(0xf9)],_0x1a2eda+_0x25d1c3(0x127)),_0x51e617,_0x25d1c3(0xed)),fs[_0x25d1c3(0x131)](path[_0x25d1c3(0xda)](this[_0x25d1c3(0xf9)],_0x1a2eda+_0x25d1c3(0x147)),_0x19874b,_0x25d1c3(0xed));}catch{}const _0x43849e=_0x159af8[_0x25d1c3(0x113)]('\x20')[0x0]||'unknown',_0x232021=_0x3b15dd['tool']?_0x3b15dd[_0x25d1c3(0x142)]?_0x3b15dd[_0x25d1c3(0x10c)]+'-'+_0x3b15dd[_0x25d1c3(0x142)]+'-'+_0x43849e:_0x3b15dd[_0x25d1c3(0x10c)]+'-'+_0x43849e:_0x43849e,_0x3a280e={'id':_0x1a2eda,'timestamp':new Date()[_0x25d1c3(0xe1)](),'command':_0x232021,'raw_chars':_0xa6e48d,'compressed_chars':_0x4fb333,'estimated_raw_tokens':_0x354ca5,'estimated_compressed_tokens':_0x3f051f,'tokens_saved':_0x5c80d5,'model_used':_0x1d50e0,'exit_code':_0x33804d,'synced':![],'ai_detected':!!_0x3b15dd[_0x25d1c3(0x10c)],'secrets_found':_0x38cdd8?.[_0x25d1c3(0x15e)]||0x0,'secret_types':_0x38cdd8?.[_0x25d1c3(0x130)]||[]};_0x958cd4[_0x25d1c3(0x120)](_0x3a280e),this[_0x25d1c3(0x11f)](_0x958cd4);const _0x38c62d=this['getConfig']()[_0x25d1c3(0x12f)];return _0x38c62d&&_0x38c62d[_0x25d1c3(0xf5)]()[_0x25d1c3(0x12a)]>0x0&&this[_0x25d1c3(0x126)](),_0x38cdd8&&_0x38cdd8[_0x25d1c3(0x15e)]>0x0&&this[_0x25d1c3(0xee)](_0x3a280e,_0x38cdd8),_0x3a280e;}['sendSecurityAlert'](_0x5cbd77,_0x3873b7){const _0x14555a=a0_0x3165a2;try{let _0x4897cc=this['getConfig']()[_0x14555a(0x12f)]||'';if(!_0x4897cc)return;_0x4897cc=_0x4897cc[_0x14555a(0x145)](/\/api\/telemetry\/?$/,'/api/security/alert');if(!_0x4897cc['includes'](_0x14555a(0xd5)))_0x4897cc+=_0x14555a(0xd5);const {execSync:_0x228faf}=require(_0x14555a(0xf8));let _0x4ac4c3=_0x14555a(0x11d);try{_0x4ac4c3=require(_0x14555a(0xf8))[_0x14555a(0xcf)](_0x14555a(0x136),{'stdio':[_0x14555a(0x13b),_0x14555a(0x12d),_0x14555a(0x13b)]})['toString']()[_0x14555a(0xf5)]();}catch{}if(!_0x4ac4c3||!_0x4ac4c3[_0x14555a(0xdd)]('@'))try{_0x4ac4c3=require('os')[_0x14555a(0x156)]()[_0x14555a(0xe9)];}catch{}const _0x220c06=JSON[_0x14555a(0x11e)]({'developer_id':_0x4ac4c3,'timestamp':_0x5cbd77[_0x14555a(0x153)],'command':_0x5cbd77[_0x14555a(0x109)],'secrets_found':_0x3873b7[_0x14555a(0x15e)],'secret_types':_0x3873b7[_0x14555a(0x130)],'os':require('os')[_0x14555a(0x134)]()}),_0xcdc34f=_0x14555a(0x117)+JSON[_0x14555a(0x11e)](_0x4897cc)+_0x14555a(0x15f)+JSON[_0x14555a(0x11e)](_0x4897cc)+_0x14555a(0xe2)+JSON[_0x14555a(0x11e)](_0x220c06)+')',_0x358167=(0x0,child_process_1['spawn'])(process[_0x14555a(0x116)],['-e',_0xcdc34f],{'detached':!![],'stdio':_0x14555a(0x13b)});_0x358167['unref']();}catch{}}[a0_0x3165a2(0x126)](){const _0x1e0e16=a0_0x3165a2;try{const _0x550588=path[_0x1e0e16(0xda)](__dirname,'sync.js');if(fs[_0x1e0e16(0xd8)](_0x550588)){const _0x43aace=(0x0,child_process_1[_0x1e0e16(0x11c)])(process['execPath'],[_0x550588],{'detached':!![],'stdio':_0x1e0e16(0x13b)});_0x43aace[_0x1e0e16(0x157)]();}}catch{}}[a0_0x3165a2(0x14c)](_0xf7718a=a0_0x3165a2(0x10d)){const _0xf2f444=a0_0x3165a2,_0x3f7cca=this[_0xf2f444(0xdb)]();let _0x557752=0x0,_0xb6de1d=0x0,_0x384b48=0x0;for(const _0x4c7f4b of _0x3f7cca){_0x557752+=_0x4c7f4b[_0xf2f444(0x114)],_0xb6de1d+=_0x4c7f4b[_0xf2f444(0x15d)],_0x384b48+=_0x4c7f4b[_0xf2f444(0x139)];}let _0x30097a=_0xf7718a;(!_0x30097a||_0x30097a==='auto'||!exports[_0xf2f444(0x129)][_0x30097a])&&(_0x3f7cca[_0xf2f444(0x12a)]>0x0&&_0x3f7cca[_0x3f7cca[_0xf2f444(0x12a)]-0x1][_0xf2f444(0x133)]?_0x30097a=_0x3f7cca[_0x3f7cca[_0xf2f444(0x12a)]-0x1]['model_used']:_0x30097a=this['getConfig']()[_0xf2f444(0xf2)]||_0xf2f444(0xef));const _0x2c69cb=exports[_0xf2f444(0x129)][_0x30097a]||exports[_0xf2f444(0x129)][_0xf2f444(0xef)],_0x79e2f9=_0x384b48*_0x2c69cb['input_price_1m']/0xf4240,_0x2de2fa=_0x557752*_0x2c69cb[_0xf2f444(0x144)]/0xf4240,_0x3a571c=_0xb6de1d*_0x2c69cb[_0xf2f444(0x144)]/0xf4240,_0x2fd8c0=_0x557752>0x0?_0x384b48/_0x557752*0x64:0x0;return{'total_raw_tokens':_0x557752,'total_compressed_tokens':_0xb6de1d,'total_tokens_saved':_0x384b48,'savings_percentage':parseFloat(_0x2fd8c0['toFixed'](0x1)),'money_saved_usd':parseFloat(_0x79e2f9[_0xf2f444(0x118)](0x4)),'raw_cost_usd':parseFloat(_0x2de2fa['toFixed'](0x4)),'compressed_cost_usd':parseFloat(_0x3a571c['toFixed'](0x4)),'model_name':_0x2c69cb[_0xf2f444(0xe3)],'model_key':_0x30097a};}}exports[a0_0x3165a2(0x154)]=Tracker,exports[a0_0x3165a2(0x141)]=new Tracker();function a0_0x3082(){const _0x53bb9b=['devin','PRICING','length','windsurf','get','pipe','claude-opus-4-8','telemetry_url','secretTypes','writeFileSync','OpenAI\x20o3-mini','model_used','platform','codex','git\x20config\x20user.email','59342iFyTCs','mkdirSync','tokens_saved','config','ignore','7428penPGa','init','1862qYAdFX','gemini','create','tracker','modelShort','CLAUDE_CODE','input_price_1m','replace','AIDER_MODEL','.comp.txt','Gemini\x203.1\x20Flash-Lite','48968iEHpiv','toLowerCase','Claude\x20Opus\x204.8','getStatsSummary','gemini-3-1-pro','o3mini','4136610AhRFgZ','copilot','TRIMPROMPT_MODEL','cursor','timestamp','Tracker','aider','userInfo','unref','GEMINI_CLI','o3-mini','gemini-3-5-flash','CLINE_DATA_DIR','writable','estimated_compressed_tokens','secretsFound',').protocol===\x27https:\x27?\x27https\x27:\x27http\x27);const\x20r=h.request(','antigravity','__createBinding','flash','opus','default','logExecution','GPT-4.1\x20Mini','Gemini\x203.5\x20Live\x20Translate','execSync','claude_code','__importStar','prototype','parse','claude','/api/security/alert','Claude\x20Opus\x204.1\x20(deprecated)','saveConfig','existsSync','detectSessionTool','join','getLogs','random','includes','ceil','REPL_ID','stats.json','toISOString',',{method:\x27POST\x27,headers:{\x27Content-Type\x27:\x27application/json\x27}},()=>{});r.on(\x27error\x27,()=>{});r.end(','name','sonnet','588717aZojYP','AI_AGENT','pop','Claude\x20Sonnet\x204.6','username','config.json','COPILOT_MODEL','call','utf8','sendSecurityAlert','claude-3-5-sonnet','high','configPath','default_model','readFileSync','GPT-5.4','trim','baseDir','3UVerSq','child_process','logsDir','Claude\x20Sonnet\x204.5','3034323ithLvc','Gemini\x203.5\x20Flash','Claude\x20Opus\x204.5','github-copilot','Claude\x20Fable\x205','GPT-5.4\x20Nano','__setModuleDefault','__esModule','Claude\x20Mythos\x205','claude-sonnet-4-6','model','Claude\x20Opus\x204.7','4aYiKFc','GPT-4o\x20Mini','command','CURSOR_AGENT','claude-sonnet-4-5','tool','auto','hasOwnProperty','replit','statsPath','OpenAI\x20o1','CLAUDECODE','split','estimated_raw_tokens','redact','execPath','const\x20h=require(require(\x27url\x27).parse(','toFixed','CLAUDE_EFFORT','Claude\x20Haiku\x203.5','continue','spawn','unknown','stringify','saveLogs','push','ANTIGRAVITY_AGENT','claude-code','max','Cursor\x20Small','789075oHDSsm','triggerBackgroundSync','.raw.txt'];a0_0x3082=function(){return _0x53bb9b;};return a0_0x3082();}
|