trimprompt 1.0.27 → 1.0.29
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/api-proxy.js +1 -1
- package/cache.js +1 -1
- package/ccr.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 +7 -12
- package/mcp.js +1 -1
- package/package.json +1 -1
- package/proxy-conv.js +1 -1
- package/proxy-daemon.js +1 -1
- package/proxy-resp.js +1 -1
- 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/traffic-interceptor.js +1 -0
package/tracker.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a0_0x2784c0=a0_0x33c4;(function(_0x295085,_0x3294dc){const _0x5b3ce1=a0_0x33c4,_0x336f84=_0x295085();while(!![]){try{const _0x2248d8=parseInt(_0x5b3ce1(0x17d))/0x1+parseInt(_0x5b3ce1(0x1b7))/0x2*(-parseInt(_0x5b3ce1(0x178))/0x3)+-parseInt(_0x5b3ce1(0x18d))/0x4+-parseInt(_0x5b3ce1(0x1ed))/0x5*(-parseInt(_0x5b3ce1(0x1de))/0x6)+parseInt(_0x5b3ce1(0x1df))/0x7+-parseInt(_0x5b3ce1(0x1d2))/0x8+parseInt(_0x5b3ce1(0x1cb))/0x9*(parseInt(_0x5b3ce1(0x18f))/0xa);if(_0x2248d8===_0x3294dc)break;else _0x336f84['push'](_0x336f84['shift']());}catch(_0x3af603){_0x336f84['push'](_0x336f84['shift']());}}}(a0_0xe16d,0xa97cc));function a0_0x33c4(_0x4106eb,_0x35976f){_0x4106eb=_0x4106eb-0x16e;const _0xe16d73=a0_0xe16d();let _0x33c47a=_0xe16d73[_0x4106eb];return _0x33c47a;}var __createBinding=this&&this[a0_0x2784c0(0x1d1)]||(Object[a0_0x2784c0(0x1d6)]?function(_0x2d6546,_0x5d99de,_0x4276a5,_0x3cbf9c){const _0x54ec9d=a0_0x2784c0;if(_0x3cbf9c===undefined)_0x3cbf9c=_0x4276a5;var _0x4f8b1f=Object[_0x54ec9d(0x16e)](_0x5d99de,_0x4276a5);(!_0x4f8b1f||(_0x54ec9d(0x1ee)in _0x4f8b1f?!_0x5d99de['__esModule']:_0x4f8b1f[_0x54ec9d(0x1db)]||_0x4f8b1f[_0x54ec9d(0x1d0)]))&&(_0x4f8b1f={'enumerable':!![],'get':function(){return _0x5d99de[_0x4276a5];}}),Object['defineProperty'](_0x2d6546,_0x3cbf9c,_0x4f8b1f);}:function(_0x42cada,_0x561a28,_0x2f59ee,_0x2eca52){if(_0x2eca52===undefined)_0x2eca52=_0x2f59ee;_0x42cada[_0x2eca52]=_0x561a28[_0x2f59ee];}),__setModuleDefault=this&&this[a0_0x2784c0(0x192)]||(Object[a0_0x2784c0(0x1d6)]?function(_0x22f51e,_0x3aadad){const _0x22c9f3=a0_0x2784c0;Object[_0x22c9f3(0x196)](_0x22f51e,_0x22c9f3(0x18b),{'enumerable':!![],'value':_0x3aadad});}:function(_0x5111c8,_0xdf05c2){const _0xe46dbc=a0_0x2784c0;_0x5111c8[_0xe46dbc(0x18b)]=_0xdf05c2;}),__importStar=this&&this[a0_0x2784c0(0x194)]||(function(){var _0x2d4c78=function(_0x395104){return _0x2d4c78=Object['getOwnPropertyNames']||function(_0x564911){var _0x1f3929=[];for(var _0x57bf74 in _0x564911)if(Object['prototype']['hasOwnProperty']['call'](_0x564911,_0x57bf74))_0x1f3929[_0x1f3929['length']]=_0x57bf74;return _0x1f3929;},_0x2d4c78(_0x395104);};return function(_0x4dc82a){const _0x4af1f9=a0_0x33c4;if(_0x4dc82a&&_0x4dc82a[_0x4af1f9(0x1fa)])return _0x4dc82a;var _0xf2d4f4={};if(_0x4dc82a!=null){for(var _0x197aa6=_0x2d4c78(_0x4dc82a),_0x5b9984=0x0;_0x5b9984<_0x197aa6['length'];_0x5b9984++)if(_0x197aa6[_0x5b9984]!=='default')__createBinding(_0xf2d4f4,_0x4dc82a,_0x197aa6[_0x5b9984]);}return __setModuleDefault(_0xf2d4f4,_0x4dc82a),_0xf2d4f4;};}());Object[a0_0x2784c0(0x196)](exports,'__esModule',{'value':!![]}),exports['tracker']=exports[a0_0x2784c0(0x1ce)]=exports[a0_0x2784c0(0x1ec)]=void 0x0,exports[a0_0x2784c0(0x1a3)]=detectSessionTool;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x2784c0(0x1e7))),os=__importStar(require('os')),child_process_1=require(a0_0x2784c0(0x200));exports[a0_0x2784c0(0x1ec)]={'claude-fable-5':{'name':a0_0x2784c0(0x17f),'input_price_1m':0xa},'claude-mythos-5':{'name':a0_0x2784c0(0x172),'input_price_1m':0xa},'claude-opus-4-8':{'name':'Claude\x20Opus\x204.8','input_price_1m':0x5},'claude-opus-4-7':{'name':a0_0x2784c0(0x1c7),'input_price_1m':0x5},'claude-opus-4-5':{'name':a0_0x2784c0(0x1b5),'input_price_1m':0x5},'claude-opus-4-1':{'name':a0_0x2784c0(0x1e6),'input_price_1m':0xf},'claude-sonnet-4-6':{'name':a0_0x2784c0(0x185),'input_price_1m':0x3},'claude-sonnet-4-5':{'name':a0_0x2784c0(0x1e8),'input_price_1m':0x3},'claude-3-5-sonnet':{'name':a0_0x2784c0(0x1c1),'input_price_1m':0x3},'claude-haiku-4-5':{'name':a0_0x2784c0(0x1fe),'input_price_1m':0x1},'claude-haiku-3-5':{'name':a0_0x2784c0(0x1e3),'input_price_1m':0.8},'gpt-5-5':{'name':a0_0x2784c0(0x1d8),'input_price_1m':0x5},'gpt-5-4':{'name':a0_0x2784c0(0x1dd),'input_price_1m':2.5},'gpt-4o':{'name':'GPT-4o','input_price_1m':2.5},'gpt-5-4-mini':{'name':a0_0x2784c0(0x173),'input_price_1m':0.75},'gpt-5-4-nano':{'name':a0_0x2784c0(0x1f4),'input_price_1m':0.2},'gpt-4-1-mini':{'name':a0_0x2784c0(0x1bc),'input_price_1m':0.4},'gpt-4-1-nano':{'name':a0_0x2784c0(0x1fd),'input_price_1m':0.1},'gpt-4o-mini':{'name':a0_0x2784c0(0x1dc),'input_price_1m':0.15},'o1':{'name':'OpenAI\x20o1','input_price_1m':0xf},'o1-mini':{'name':a0_0x2784c0(0x1c2),'input_price_1m':0x3},'o3-mini':{'name':'OpenAI\x20o3-mini','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_0x2784c0(0x1d5),'input_price_1m':0.45},'gemini-3-5-live-translate':{'name':'Gemini\x203.5\x20Live\x20Translate','input_price_1m':3.5}};function detectSessionTool(){const _0x50f53d=a0_0x2784c0,_0x287245=process.env,_0x2ffcc0={'tool':'','model':_0x50f53d(0x180),'modelShort':''};if(_0x287245[_0x50f53d(0x1f1)]&&exports[_0x50f53d(0x1ec)][_0x287245['TRIMPROMPT_MODEL']])return{'tool':'','model':_0x287245['TRIMPROMPT_MODEL'],'modelShort':''};const _0x2f6ec9=(_0x287245[_0x50f53d(0x1c0)]||'')[_0x50f53d(0x186)]();if(_0x2f6ec9){if(_0x2f6ec9['includes'](_0x50f53d(0x1b0))||_0x2f6ec9['includes']('claude_code')){const _0x51db41=_0x287245[_0x50f53d(0x197)]==='high'?_0x50f53d(0x1d9):_0x50f53d(0x1f5),_0x2aba3b=_0x287245[_0x50f53d(0x197)]==='high'?_0x50f53d(0x1f7):_0x50f53d(0x180);return{'tool':_0x50f53d(0x1a2),'model':_0x2aba3b,'modelShort':_0x51db41};}if(_0x2f6ec9['includes']('cursor'))return{'tool':'cursor','model':_0x50f53d(0x180),'modelShort':_0x50f53d(0x1f5)};if(_0x2f6ec9[_0x50f53d(0x19a)](_0x50f53d(0x17b))||_0x2f6ec9[_0x50f53d(0x19a)]('copilot')){const _0x5ef691=_0x287245['COPILOT_MODEL']||'';if(_0x5ef691&&exports[_0x50f53d(0x1ec)][_0x5ef691])return{'tool':'copilot','model':_0x5ef691,'modelShort':_0x5ef691[_0x50f53d(0x1d4)]('-')[_0x50f53d(0x183)]()||''};return{'tool':_0x50f53d(0x1ad),'model':_0x50f53d(0x170),'modelShort':_0x50f53d(0x1f5)};}if(_0x2f6ec9['includes'](_0x50f53d(0x17e)))return{'tool':'gemini','model':'gemini-3-5-flash','modelShort':_0x50f53d(0x174)};if(_0x2f6ec9[_0x50f53d(0x19a)]('codex'))return{'tool':_0x50f53d(0x202),'model':_0x50f53d(0x177),'modelShort':_0x50f53d(0x1c5)};if(_0x2f6ec9[_0x50f53d(0x19a)](_0x50f53d(0x19f)))return{'tool':'devin','model':_0x50f53d(0x180),'modelShort':''};if(_0x2f6ec9['includes'](_0x50f53d(0x1a1)))return{'tool':_0x50f53d(0x1a1),'model':_0x50f53d(0x1a8),'modelShort':_0x50f53d(0x17e)};if(_0x2f6ec9[_0x50f53d(0x19a)](_0x50f53d(0x1c6))||_0x287245[_0x50f53d(0x1a0)])return{'tool':'replit','model':_0x50f53d(0x180),'modelShort':''};return{'tool':_0x2f6ec9[_0x50f53d(0x1d4)]('_')[0x0]['split']('-')[0x0],'model':_0x50f53d(0x180),'modelShort':''};}if(_0x287245['CLAUDECODE']==='1'||_0x287245[_0x50f53d(0x1da)]==='1'){const _0x34e9be=_0x287245[_0x50f53d(0x197)]===_0x50f53d(0x19b)?_0x50f53d(0x1d9):_0x50f53d(0x1f5),_0x25b174=_0x287245[_0x50f53d(0x197)]===_0x50f53d(0x19b)?_0x50f53d(0x1f7):_0x50f53d(0x180);return{'tool':_0x50f53d(0x1a2),'model':_0x25b174,'modelShort':_0x34e9be};}if(_0x287245[_0x50f53d(0x184)]==='1')return{'tool':'cursor','model':_0x50f53d(0x180),'modelShort':_0x50f53d(0x1f5)};if(_0x287245[_0x50f53d(0x1d7)]==='1')return{'tool':_0x50f53d(0x17e),'model':_0x50f53d(0x18e),'modelShort':'flash'};if(_0x287245[_0x50f53d(0x1ea)]||_0x287245[_0x50f53d(0x1e5)]){const _0x596fde=_0x287245[_0x50f53d(0x1ea)]||'';if(_0x596fde&&exports[_0x50f53d(0x1ec)][_0x596fde])return{'tool':_0x50f53d(0x1ad),'model':_0x596fde,'modelShort':_0x596fde['split']('-')[_0x50f53d(0x183)]()||''};return{'tool':_0x50f53d(0x1ad),'model':_0x50f53d(0x170),'modelShort':'sonnet'};}if(_0x287245['REPL_ID']||_0x287245[_0x50f53d(0x191)])return{'tool':_0x50f53d(0x1c6),'model':_0x50f53d(0x180),'modelShort':''};if(_0x287245[_0x50f53d(0x1b4)])return{'tool':'cline','model':_0x50f53d(0x180),'modelShort':''};if(_0x287245['CONTINUE_GLOBAL_DIR'])return{'tool':_0x50f53d(0x1ab),'model':_0x50f53d(0x180),'modelShort':''};if(_0x287245[_0x50f53d(0x175)]==='1')return{'tool':_0x50f53d(0x1a1),'model':_0x50f53d(0x1a8),'modelShort':'gemini'};if(_0x287245[_0x50f53d(0x197)]){const _0x276bb2=_0x287245[_0x50f53d(0x197)]===_0x50f53d(0x19b)?_0x50f53d(0x1d9):_0x50f53d(0x1f5),_0x549d96=_0x287245[_0x50f53d(0x197)]==='high'?'claude-opus-4-8':_0x50f53d(0x180);return{'tool':'','model':_0x549d96,'modelShort':''};}if(_0x287245[_0x50f53d(0x1ae)]&&exports[_0x50f53d(0x1ec)][_0x287245[_0x50f53d(0x1ae)]])return{'tool':_0x50f53d(0x1ff),'model':_0x287245[_0x50f53d(0x1ae)],'modelShort':''};if(_0x287245[_0x50f53d(0x204)]){const _0x388a74=(_0x287245[_0x50f53d(0x203)]||'')[_0x50f53d(0x186)]();if(_0x388a74[_0x50f53d(0x19a)](_0x50f53d(0x19c)))return{'tool':'cursor','model':_0x50f53d(0x180),'modelShort':_0x50f53d(0x1f5)};if(_0x388a74[_0x50f53d(0x19a)](_0x50f53d(0x1a7)))return{'tool':_0x50f53d(0x1a7),'model':'claude-sonnet-4-6','modelShort':_0x50f53d(0x1f5)};}const _0x20727e=process.env.TRIMPROMPT_MODEL||'';if(_0x20727e&&exports[_0x50f53d(0x1ec)][_0x20727e])return{'tool':'','model':_0x20727e,'modelShort':''};return _0x2ffcc0;}function a0_0xe16d(){const _0x57b5e4=['GPT-5.4','24JcxiEW','3857035hSxwnt','platform','toFixed','unknown','Claude\x20Haiku\x203.5','.trimprompt','COPILOT_GITHUB_TOKEN','Claude\x20Opus\x204.1\x20(deprecated)','path','Claude\x20Sonnet\x204.5','unref','COPILOT_MODEL','saveConfig','PRICING','322915kSsTJa','get','logExecution','logsDir','TRIMPROMPT_MODEL','configPath','push','GPT-5.4\x20Nano','sonnet','model_used','claude-opus-4-8','auto','ignore','__esModule','./redactor','execSync','GPT-4.1\x20Nano','Claude\x20Haiku\x204.5','aider','child_process','homedir','codex','PATH','VSCODE_PID','getOwnPropertyDescriptor','triggerBackgroundSync','claude-sonnet-4-5','saveLogs','Claude\x20Mythos\x205','GPT-5.4\x20Mini','flash','ANTIGRAVITY_AGENT','max','o3-mini','2737641BYdnoV','utf8','tool','github-copilot','estimated_raw_tokens','533838dMdJSn','gemini','Claude\x20Fable\x205','claude-sonnet-4-6','name','setConfig','pop','CURSOR_AGENT','Claude\x20Sonnet\x204.6','toLowerCase','getStatsSummary','spawn','writeFileSync','baseDir','default','init','1693704sWkJcA','gemini-3-5-flash','10240CXgsJf','stringify','REPLIT_ENVIRONMENT','__setModuleDefault','/api/security/alert','__importStar','1.0','defineProperty','CLAUDE_EFFORT','existsSync','sendSecurityAlert','includes','high','cursor','trim','claude-3-5-sonnet','devin','REPL_ID','antigravity','claude','detectSessionTool','toString','parse','tokens_saved','windsurf','gemini-3-1-pro','input_price_1m','execPath','continue','secretsFound','copilot','AIDER_MODEL',').protocol===\x27https:\x27?\x27https\x27:\x27http\x27);const\x20r=h.request(','claude-code','redact','getLogs','statsPath','CLINE_DATA_DIR','Claude\x20Opus\x204.5','logs','2bzKlss','pipe','telemetry_url','getConfig','modelShort','GPT-4.1\x20Mini','username',',{method:\x27POST\x27,headers:{\x27Content-Type\x27:\x27application/json\x27}},()=>{});r.on(\x27error\x27,()=>{});r.end(','tracker','AI_AGENT','Claude\x203.5\x20Sonnet','OpenAI\x20o1-mini','secretTypes','default_model','o3mini','replit','Claude\x20Opus\x204.7','git\x20config\x20user.email','join','config.json','13842BTocsq','config','ceil','Tracker','length','configurable','__createBinding','7103152zLcYeT','mkdirSync','split','Gemini\x203.1\x20Flash-Lite','create','GEMINI_CLI','GPT-5.5','opus','CLAUDE_CODE','writable','GPT-4o\x20Mini'];a0_0xe16d=function(){return _0x57b5e4;};return a0_0xe16d();}class Tracker{[a0_0x2784c0(0x18a)];[a0_0x2784c0(0x1f2)];[a0_0x2784c0(0x1b3)];[a0_0x2784c0(0x1f0)];['config'];constructor(){const _0x7f57c3=a0_0x2784c0;this['baseDir']=path[_0x7f57c3(0x1c9)](os[_0x7f57c3(0x201)](),_0x7f57c3(0x1e4)),this[_0x7f57c3(0x1f2)]=path[_0x7f57c3(0x1c9)](this[_0x7f57c3(0x18a)],_0x7f57c3(0x1ca)),this[_0x7f57c3(0x1b3)]=path[_0x7f57c3(0x1c9)](this[_0x7f57c3(0x18a)],'stats.json'),this[_0x7f57c3(0x1f0)]=path['join'](this[_0x7f57c3(0x18a)],_0x7f57c3(0x1b6)),this[_0x7f57c3(0x18c)]();}[a0_0x2784c0(0x18c)](){const _0x551579=a0_0x2784c0;!fs[_0x551579(0x198)](this[_0x551579(0x18a)])&&fs[_0x551579(0x1d3)](this[_0x551579(0x18a)],{'recursive':!![]});!fs[_0x551579(0x198)](this[_0x551579(0x1f0)])&&fs[_0x551579(0x1d3)](this[_0x551579(0x1f0)],{'recursive':!![]});const _0x38dcfa={'version':_0x551579(0x195),'telemetry_url':process.env.TRIMPROMPT_TELEMETRY_URL||'','max_output_tokens':0x1388,'redaction_enabled':!![],'default_model':_0x551579(0x1f7)};if(fs['existsSync'](this['configPath']))try{const _0x41e442=fs['readFileSync'](this[_0x551579(0x1f2)],_0x551579(0x179));this[_0x551579(0x1cc)]={..._0x38dcfa,...JSON[_0x551579(0x1a5)](_0x41e442)};}catch(_0x47c93c){this[_0x551579(0x1cc)]=_0x38dcfa;}else this[_0x551579(0x1cc)]=_0x38dcfa,this['saveConfig']();!fs[_0x551579(0x198)](this[_0x551579(0x1b3)])&&fs[_0x551579(0x189)](this[_0x551579(0x1b3)],JSON['stringify']([]),_0x551579(0x179));}[a0_0x2784c0(0x1ba)](){const _0x221f23=a0_0x2784c0;return process.env.TRIMPROMPT_TELEMETRY_URL&&(this[_0x221f23(0x1cc)][_0x221f23(0x1b9)]=process.env.TRIMPROMPT_TELEMETRY_URL),this[_0x221f23(0x1cc)];}[a0_0x2784c0(0x182)](_0xaecf48,_0xc2400){const _0x4ad893=a0_0x2784c0;this[_0x4ad893(0x1cc)][_0xaecf48]=_0xc2400,this[_0x4ad893(0x1eb)]();}['saveConfig'](){const _0x3cffec=a0_0x2784c0;fs[_0x3cffec(0x189)](this[_0x3cffec(0x1f2)],JSON[_0x3cffec(0x190)](this[_0x3cffec(0x1cc)],null,0x2),_0x3cffec(0x179));}['getLogs'](){const _0x1d21a2=a0_0x2784c0;try{if(!fs['existsSync'](this[_0x1d21a2(0x1b3)]))return[];const _0x2eb8f2=fs['readFileSync'](this['statsPath'],_0x1d21a2(0x179));return JSON['parse'](_0x2eb8f2);}catch{return[];}}[a0_0x2784c0(0x171)](_0x36bf0e){const _0x5f4906=a0_0x2784c0;fs[_0x5f4906(0x189)](this[_0x5f4906(0x1b3)],JSON[_0x5f4906(0x190)](_0x36bf0e,null,0x2),'utf8');}[a0_0x2784c0(0x1ef)](_0x511541,_0x127320,_0x17ad71,_0x5a7845,_0x1bdf23,_0x5a4f82){const _0x5b42de=a0_0x2784c0,_0x136652=this['getLogs'](),_0x169f34=_0x127320[_0x5b42de(0x1cf)],_0x13686c=_0x17ad71[_0x5b42de(0x1cf)],_0x1b761e=Math[_0x5b42de(0x1cd)](_0x169f34/0x4),_0x59413f=Math[_0x5b42de(0x1cd)](_0x13686c/0x4),_0x585b45=Math[_0x5b42de(0x176)](0x0,_0x1b761e-_0x59413f),_0x564135=detectSessionTool(),_0x348503=_0x564135['model'],_0x453b7b=Math['random']()[_0x5b42de(0x1a4)](0x24)['substring'](0x2,0xb);try{const {redactor:_0x11f1f6}=require(_0x5b42de(0x1fb)),_0x3f554c=_0x11f1f6?_0x11f1f6[_0x5b42de(0x1b1)](_0x127320):_0x127320;fs[_0x5b42de(0x189)](path[_0x5b42de(0x1c9)](this[_0x5b42de(0x1f0)],_0x453b7b+'.raw.txt'),_0x3f554c,_0x5b42de(0x179)),fs[_0x5b42de(0x189)](path[_0x5b42de(0x1c9)](this['logsDir'],_0x453b7b+'.comp.txt'),_0x17ad71,_0x5b42de(0x179));}catch{}const _0x2cea23=_0x511541[_0x5b42de(0x1d4)]('\x20')[0x0]||_0x5b42de(0x1e2),_0x2ae19c=_0x564135[_0x5b42de(0x17a)]?_0x564135[_0x5b42de(0x1bb)]?_0x564135[_0x5b42de(0x17a)]+'-'+_0x564135[_0x5b42de(0x1bb)]+'-'+_0x2cea23:_0x564135[_0x5b42de(0x17a)]+'-'+_0x2cea23:_0x2cea23,_0x530872={'id':_0x453b7b,'timestamp':new Date()['toISOString'](),'command':_0x2ae19c,'raw_chars':_0x169f34,'compressed_chars':_0x13686c,'estimated_raw_tokens':_0x1b761e,'estimated_compressed_tokens':_0x59413f,'tokens_saved':_0x585b45,'model_used':_0x348503,'exit_code':_0x5a7845,'synced':![],'ai_detected':!!_0x564135[_0x5b42de(0x17a)],'secrets_found':_0x1bdf23?.[_0x5b42de(0x1ac)]||0x0,'secret_types':_0x1bdf23?.[_0x5b42de(0x1c3)]||[],'features':_0x5a4f82||[]};_0x136652[_0x5b42de(0x1f3)](_0x530872),this[_0x5b42de(0x171)](_0x136652);const _0x3ff662=this[_0x5b42de(0x1ba)]()[_0x5b42de(0x1b9)];return _0x3ff662&&_0x3ff662[_0x5b42de(0x19d)]()[_0x5b42de(0x1cf)]>0x0&&this[_0x5b42de(0x16f)](),_0x1bdf23&&_0x1bdf23['secretsFound']>0x0&&this[_0x5b42de(0x199)](_0x530872,_0x1bdf23),_0x530872;}['sendSecurityAlert'](_0x3677bb,_0x382640){const _0x6c1d79=a0_0x2784c0;try{let _0x88575b=this[_0x6c1d79(0x1ba)]()['telemetry_url']||'';if(!_0x88575b)return;_0x88575b=_0x88575b['replace'](/\/api\/telemetry\/?$/,_0x6c1d79(0x193));if(!_0x88575b['includes']('/api/security/alert'))_0x88575b+='/api/security/alert';const {execSync:_0x289218}=require(_0x6c1d79(0x200));let _0x2e2d33=_0x6c1d79(0x1e2);try{_0x2e2d33=require(_0x6c1d79(0x200))[_0x6c1d79(0x1fc)](_0x6c1d79(0x1c8),{'stdio':['ignore',_0x6c1d79(0x1b8),'ignore']})[_0x6c1d79(0x1a4)]()['trim']();}catch{}if(!_0x2e2d33||!_0x2e2d33[_0x6c1d79(0x19a)]('@'))try{_0x2e2d33=require('os')['userInfo']()[_0x6c1d79(0x1bd)];}catch{}const _0x4abea2=JSON[_0x6c1d79(0x190)]({'developer_id':_0x2e2d33,'timestamp':_0x3677bb['timestamp'],'command':_0x3677bb['command'],'secrets_found':_0x382640[_0x6c1d79(0x1ac)],'secret_types':_0x382640[_0x6c1d79(0x1c3)],'os':require('os')[_0x6c1d79(0x1e0)]()}),_0x4b08cc='const\x20h=require(require(\x27url\x27).parse('+JSON['stringify'](_0x88575b)+_0x6c1d79(0x1af)+JSON['stringify'](_0x88575b)+_0x6c1d79(0x1be)+JSON[_0x6c1d79(0x190)](_0x4abea2)+')',_0x16ec11=(0x0,child_process_1[_0x6c1d79(0x188)])(process[_0x6c1d79(0x1aa)],['-e',_0x4b08cc],{'detached':!![],'stdio':_0x6c1d79(0x1f9)});_0x16ec11['unref']();}catch{}}[a0_0x2784c0(0x16f)](){const _0x2bf45c=a0_0x2784c0;try{const _0x1c9483=path[_0x2bf45c(0x1c9)](__dirname,'sync.js');if(fs[_0x2bf45c(0x198)](_0x1c9483)){const _0xcbd57a=(0x0,child_process_1[_0x2bf45c(0x188)])(process[_0x2bf45c(0x1aa)],[_0x1c9483],{'detached':!![],'stdio':_0x2bf45c(0x1f9)});_0xcbd57a[_0x2bf45c(0x1e9)]();}}catch{}}[a0_0x2784c0(0x187)](_0x1fc991=a0_0x2784c0(0x1f8)){const _0x335963=a0_0x2784c0,_0x243193=this[_0x335963(0x1b2)]();let _0x56cf1f=0x0,_0x3643bd=0x0,_0x35dad3=0x0;for(const _0x5be41a of _0x243193){_0x56cf1f+=_0x5be41a[_0x335963(0x17c)],_0x3643bd+=_0x5be41a['estimated_compressed_tokens'],_0x35dad3+=_0x5be41a[_0x335963(0x1a6)];}let _0x525d45=_0x1fc991;(!_0x525d45||_0x525d45===_0x335963(0x1f8)||!exports[_0x335963(0x1ec)][_0x525d45])&&(_0x243193[_0x335963(0x1cf)]>0x0&&_0x243193[_0x243193[_0x335963(0x1cf)]-0x1][_0x335963(0x1f6)]?_0x525d45=_0x243193[_0x243193[_0x335963(0x1cf)]-0x1][_0x335963(0x1f6)]:_0x525d45=this[_0x335963(0x1ba)]()[_0x335963(0x1c4)]||_0x335963(0x19e));const _0x39490d=exports[_0x335963(0x1ec)][_0x525d45]||exports[_0x335963(0x1ec)]['claude-3-5-sonnet'],_0x366cda=_0x35dad3*_0x39490d['input_price_1m']/0xf4240,_0x5e2a0d=_0x56cf1f*_0x39490d[_0x335963(0x1a9)]/0xf4240,_0x2e1202=_0x3643bd*_0x39490d[_0x335963(0x1a9)]/0xf4240,_0x2c2bfb=_0x56cf1f>0x0?_0x35dad3/_0x56cf1f*0x64:0x0;return{'total_raw_tokens':_0x56cf1f,'total_compressed_tokens':_0x3643bd,'total_tokens_saved':_0x35dad3,'savings_percentage':parseFloat(_0x2c2bfb['toFixed'](0x1)),'money_saved_usd':parseFloat(_0x366cda[_0x335963(0x1e1)](0x4)),'raw_cost_usd':parseFloat(_0x5e2a0d[_0x335963(0x1e1)](0x4)),'compressed_cost_usd':parseFloat(_0x2e1202[_0x335963(0x1e1)](0x4)),'model_name':_0x39490d[_0x335963(0x181)],'model_key':_0x525d45};}}exports[a0_0x2784c0(0x1ce)]=Tracker,exports[a0_0x2784c0(0x1bf)]=new Tracker();
|
|
1
|
+
'use strict';const a0_0x3e8929=a0_0x1920;(function(_0x4edee0,_0x136f72){const _0x342f60=a0_0x1920,_0x225878=_0x4edee0();while(!![]){try{const _0x1a7f48=parseInt(_0x342f60(0xc5))/0x1*(-parseInt(_0x342f60(0x104))/0x2)+parseInt(_0x342f60(0x10f))/0x3+parseInt(_0x342f60(0xc6))/0x4*(parseInt(_0x342f60(0x140))/0x5)+parseInt(_0x342f60(0xea))/0x6*(-parseInt(_0x342f60(0x13a))/0x7)+-parseInt(_0x342f60(0x114))/0x8*(-parseInt(_0x342f60(0xc1))/0x9)+parseInt(_0x342f60(0xf3))/0xa*(parseInt(_0x342f60(0xae))/0xb)+-parseInt(_0x342f60(0xd0))/0xc*(-parseInt(_0x342f60(0xeb))/0xd);if(_0x1a7f48===_0x136f72)break;else _0x225878['push'](_0x225878['shift']());}catch(_0x1b38de){_0x225878['push'](_0x225878['shift']());}}}(a0_0x1f8c,0xda0a7));var __createBinding=this&&this[a0_0x3e8929(0xa8)]||(Object[a0_0x3e8929(0xa5)]?function(_0x22a16a,_0x32fe02,_0x5eed33,_0x2339ff){const _0x526811=a0_0x3e8929;if(_0x2339ff===undefined)_0x2339ff=_0x5eed33;var _0x5a3e12=Object[_0x526811(0x138)](_0x32fe02,_0x5eed33);(!_0x5a3e12||(_0x526811(0xfb)in _0x5a3e12?!_0x32fe02[_0x526811(0xa6)]:_0x5a3e12[_0x526811(0x10e)]||_0x5a3e12[_0x526811(0x135)]))&&(_0x5a3e12={'enumerable':!![],'get':function(){return _0x32fe02[_0x5eed33];}}),Object[_0x526811(0x130)](_0x22a16a,_0x2339ff,_0x5a3e12);}:function(_0x4fe68a,_0x26ac67,_0x3a6079,_0x729d4f){if(_0x729d4f===undefined)_0x729d4f=_0x3a6079;_0x4fe68a[_0x729d4f]=_0x26ac67[_0x3a6079];}),__setModuleDefault=this&&this[a0_0x3e8929(0x109)]||(Object[a0_0x3e8929(0xa5)]?function(_0x3a5bfb,_0x54a1f0){const _0x62b686=a0_0x3e8929;Object[_0x62b686(0x130)](_0x3a5bfb,'default',{'enumerable':!![],'value':_0x54a1f0});}:function(_0x2d86c5,_0x5a71e1){const _0x2d7e69=a0_0x3e8929;_0x2d86c5[_0x2d7e69(0x119)]=_0x5a71e1;}),__importStar=this&&this[a0_0x3e8929(0xc8)]||(function(){var _0x416297=function(_0x2c96e0){return _0x416297=Object['getOwnPropertyNames']||function(_0xea57fb){const _0x48ae32=a0_0x1920;var _0x5d244f=[];for(var _0x5b47d7 in _0xea57fb)if(Object[_0x48ae32(0x100)][_0x48ae32(0x11d)][_0x48ae32(0xa4)](_0xea57fb,_0x5b47d7))_0x5d244f[_0x5d244f['length']]=_0x5b47d7;return _0x5d244f;},_0x416297(_0x2c96e0);};return function(_0x4372ac){if(_0x4372ac&&_0x4372ac['__esModule'])return _0x4372ac;var _0xe5928={};if(_0x4372ac!=null){for(var _0x5f1756=_0x416297(_0x4372ac),_0x3b6341=0x0;_0x3b6341<_0x5f1756['length'];_0x3b6341++)if(_0x5f1756[_0x3b6341]!=='default')__createBinding(_0xe5928,_0x4372ac,_0x5f1756[_0x3b6341]);}return __setModuleDefault(_0xe5928,_0x4372ac),_0xe5928;};}());Object[a0_0x3e8929(0x130)](exports,a0_0x3e8929(0xa6),{'value':!![]}),exports[a0_0x3e8929(0xaf)]=exports[a0_0x3e8929(0xfa)]=exports[a0_0x3e8929(0xc0)]=void 0x0,exports[a0_0x3e8929(0x12a)]=detectSessionTool;function a0_0x1f8c(){const _0xd4ce37=['Claude\x20Mythos\x205','o3mini','stringify','opus','getStatsSummary','GPT-4o\x20Mini','substring','claude-sonnet-4-6','copilot','GEMINI_CLI','ceil','estimated_raw_tokens','logs','auto','join','pop','spawn','4602pgjMNk','533FROyKM','claude-sonnet-4-5','includes','gemini-3-1-pro','gemini','.comp.txt','setConfig','Gemini\x203.5\x20Live\x20Translate','556020DwFKSW','CLINE_DATA_DIR','cursor','sonnet','GPT-5.4\x20Mini','sync.js','CLAUDECODE','Tracker','get','saveLogs','secretsFound','Claude\x203.5\x20Sonnet','COPILOT_MODEL','prototype','CONTINUE_GLOBAL_DIR','sendSecurityAlert','VSCODE_PID','38ANIhGm','max','tokens_saved','GPT-5.5','claude-opus-4-8','__setModuleDefault','codex','getLogs','path','execPath','writable','316398uaDGgi','OpenAI\x20o1','Claude\x20Sonnet\x204.5','ignore','trim','1434224mXUmbd','Claude\x20Opus\x204.5','AIDER_MODEL','default_model','TRIMPROMPT_MODEL','default','PATH','unref','GPT-5.4\x20Nano','hasOwnProperty','Claude\x20Haiku\x203.5','redact','stats.json','saveConfig','flash','toLowerCase','1.0','CURSOR_AGENT','toFixed','modelShort','tool','claude','detectSessionTool','antigravity','random','command','GPT-4o','gemini-3-5-flash','defineProperty','timestamp','Claude\x20Haiku\x204.5',').protocol===\x27https:\x27?\x27https\x27:\x27http\x27);const\x20r=h.request(','aider','configurable','model_used','windsurf','getOwnPropertyDescriptor','baseDir','11207JENhTn','/api/security/alert','logsDir','./redactor','configPath','Claude\x20Sonnet\x204.6','7745uYXzjF','writeFileSync','claude-3-5-sonnet','call','create','__esModule','mkdirSync','__createBinding','github-copilot','split','const\x20h=require(require(\x27url\x27).parse(','name','telemetry_url','187psJVPL','tracker','Gemini\x203.5\x20Flash','getConfig','init','CLAUDE_EFFORT','Gemini\x203.1\x20Flash-Lite','existsSync','triggerBackgroundSync','CLAUDE_CODE','replit',',{method:\x27POST\x27,headers:{\x27Content-Type\x27:\x27application/json\x27}},()=>{});r.on(\x27error\x27,()=>{});r.end(','OpenAI\x20o3-mini','devin','ANTIGRAVITY_AGENT','REPL_ID','statsPath','pipe','PRICING','18gfFOHy','model','input_price_1m','secretTypes','89803LohlQO','1528QTqAdJ','Cursor\x20Small','__importStar','readFileSync','config','utf8','Claude\x20Opus\x204.1\x20(deprecated)','Claude\x20Fable\x205','AI_AGENT','high','534540DtShre','OpenAI\x20o1-mini','COPILOT_GITHUB_TOKEN','claude-code','child_process','length','homedir','GPT-5.4','logExecution'];a0_0x1f8c=function(){return _0xd4ce37;};return a0_0x1f8c();}const fs=__importStar(require('fs')),path=__importStar(require(a0_0x3e8929(0x10c))),os=__importStar(require('os')),child_process_1=require(a0_0x3e8929(0xd4));exports[a0_0x3e8929(0xc0)]={'claude-fable-5':{'name':a0_0x3e8929(0xcd),'input_price_1m':0xa},'claude-mythos-5':{'name':a0_0x3e8929(0xd9),'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':a0_0x3e8929(0x115),'input_price_1m':0x5},'claude-opus-4-1':{'name':a0_0x3e8929(0xcc),'input_price_1m':0xf},'claude-sonnet-4-6':{'name':a0_0x3e8929(0x13f),'input_price_1m':0x3},'claude-sonnet-4-5':{'name':a0_0x3e8929(0x111),'input_price_1m':0x3},'claude-3-5-sonnet':{'name':a0_0x3e8929(0xfe),'input_price_1m':0x3},'claude-haiku-4-5':{'name':a0_0x3e8929(0x132),'input_price_1m':0x1},'claude-haiku-3-5':{'name':a0_0x3e8929(0x11e),'input_price_1m':0.8},'gpt-5-5':{'name':a0_0x3e8929(0x107),'input_price_1m':0x5},'gpt-5-4':{'name':a0_0x3e8929(0xd7),'input_price_1m':2.5},'gpt-4o':{'name':a0_0x3e8929(0x12e),'input_price_1m':2.5},'gpt-5-4-mini':{'name':a0_0x3e8929(0xf7),'input_price_1m':0.75},'gpt-5-4-nano':{'name':a0_0x3e8929(0x11c),'input_price_1m':0.2},'gpt-4-1-mini':{'name':'GPT-4.1\x20Mini','input_price_1m':0.4},'gpt-4-1-nano':{'name':'GPT-4.1\x20Nano','input_price_1m':0.1},'gpt-4o-mini':{'name':a0_0x3e8929(0xde),'input_price_1m':0.15},'o1':{'name':a0_0x3e8929(0x110),'input_price_1m':0xf},'o1-mini':{'name':a0_0x3e8929(0xd1),'input_price_1m':0x3},'o3-mini':{'name':a0_0x3e8929(0xba),'input_price_1m':1.1},'cursor-small':{'name':a0_0x3e8929(0xc7),'input_price_1m':0.1},'gemini-3-1-pro':{'name':'Gemini\x203.1\x20Pro','input_price_1m':0x2},'gemini-3-5-flash':{'name':a0_0x3e8929(0xb0),'input_price_1m':1.5},'gemini-3-1-flash-lite':{'name':a0_0x3e8929(0xb4),'input_price_1m':0.45},'gemini-3-5-live-translate':{'name':a0_0x3e8929(0xf2),'input_price_1m':3.5}};function detectSessionTool(){const _0x388257=a0_0x3e8929,_0xb27ec3=process.env,_0x13b3b7={'tool':'','model':_0x388257(0xe0),'modelShort':''};if(_0xb27ec3[_0x388257(0x118)]&&exports[_0x388257(0xc0)][_0xb27ec3['TRIMPROMPT_MODEL']])return{'tool':'','model':_0xb27ec3[_0x388257(0x118)],'modelShort':''};const _0x35929b=(_0xb27ec3[_0x388257(0xce)]||'')[_0x388257(0x123)]();if(_0x35929b){if(_0x35929b['includes'](_0x388257(0xd3))||_0x35929b['includes']('claude_code')){const _0x5b7583=_0xb27ec3['CLAUDE_EFFORT']===_0x388257(0xcf)?_0x388257(0xdc):_0x388257(0xf6),_0x23c6df=_0xb27ec3[_0x388257(0xb3)]===_0x388257(0xcf)?_0x388257(0x108):_0x388257(0xe0);return{'tool':_0x388257(0x129),'model':_0x23c6df,'modelShort':_0x5b7583};}if(_0x35929b[_0x388257(0xed)](_0x388257(0xf5)))return{'tool':_0x388257(0xf5),'model':_0x388257(0xe0),'modelShort':_0x388257(0xf6)};if(_0x35929b[_0x388257(0xed)](_0x388257(0xa9))||_0x35929b['includes'](_0x388257(0xe1))){const _0x5130c9=_0xb27ec3[_0x388257(0xff)]||'';if(_0x5130c9&&exports[_0x388257(0xc0)][_0x5130c9])return{'tool':_0x388257(0xe1),'model':_0x5130c9,'modelShort':_0x5130c9[_0x388257(0xaa)]('-')[_0x388257(0xe8)]()||''};return{'tool':_0x388257(0xe1),'model':_0x388257(0xec),'modelShort':_0x388257(0xf6)};}if(_0x35929b[_0x388257(0xed)](_0x388257(0xef)))return{'tool':_0x388257(0xef),'model':_0x388257(0x12f),'modelShort':'flash'};if(_0x35929b[_0x388257(0xed)](_0x388257(0x10a)))return{'tool':_0x388257(0x10a),'model':'o3-mini','modelShort':_0x388257(0xda)};if(_0x35929b[_0x388257(0xed)](_0x388257(0xbb)))return{'tool':_0x388257(0xbb),'model':_0x388257(0xe0),'modelShort':''};if(_0x35929b[_0x388257(0xed)]('antigravity'))return{'tool':_0x388257(0x12b),'model':_0x388257(0xee),'modelShort':_0x388257(0xef)};if(_0x35929b[_0x388257(0xed)](_0x388257(0xb8))||_0xb27ec3[_0x388257(0xbd)])return{'tool':_0x388257(0xb8),'model':_0x388257(0xe0),'modelShort':''};return{'tool':_0x35929b[_0x388257(0xaa)]('_')[0x0][_0x388257(0xaa)]('-')[0x0],'model':_0x388257(0xe0),'modelShort':''};}if(_0xb27ec3[_0x388257(0xf9)]==='1'||_0xb27ec3[_0x388257(0xb7)]==='1'){const _0x46b9c8=_0xb27ec3[_0x388257(0xb3)]===_0x388257(0xcf)?_0x388257(0xdc):_0x388257(0xf6),_0x3d80cb=_0xb27ec3['CLAUDE_EFFORT']===_0x388257(0xcf)?'claude-opus-4-8':_0x388257(0xe0);return{'tool':'claude','model':_0x3d80cb,'modelShort':_0x46b9c8};}if(_0xb27ec3[_0x388257(0x125)]==='1')return{'tool':_0x388257(0xf5),'model':_0x388257(0xe0),'modelShort':_0x388257(0xf6)};if(_0xb27ec3[_0x388257(0xe2)]==='1')return{'tool':_0x388257(0xef),'model':'gemini-3-5-flash','modelShort':_0x388257(0x122)};if(_0xb27ec3[_0x388257(0xff)]||_0xb27ec3[_0x388257(0xd2)]){const _0x287e20=_0xb27ec3[_0x388257(0xff)]||'';if(_0x287e20&&exports['PRICING'][_0x287e20])return{'tool':'copilot','model':_0x287e20,'modelShort':_0x287e20[_0x388257(0xaa)]('-')[_0x388257(0xe8)]()||''};return{'tool':_0x388257(0xe1),'model':_0x388257(0xec),'modelShort':'sonnet'};}if(_0xb27ec3[_0x388257(0xbd)]||_0xb27ec3['REPLIT_ENVIRONMENT'])return{'tool':_0x388257(0xb8),'model':_0x388257(0xe0),'modelShort':''};if(_0xb27ec3[_0x388257(0xf4)])return{'tool':'cline','model':_0x388257(0xe0),'modelShort':''};if(_0xb27ec3[_0x388257(0x101)])return{'tool':'continue','model':_0x388257(0xe0),'modelShort':''};if(_0xb27ec3[_0x388257(0xbc)]==='1')return{'tool':_0x388257(0x12b),'model':_0x388257(0xee),'modelShort':_0x388257(0xef)};if(_0xb27ec3[_0x388257(0xb3)]){const _0x105218=_0xb27ec3[_0x388257(0xb3)]===_0x388257(0xcf)?_0x388257(0xdc):_0x388257(0xf6),_0x43842c=_0xb27ec3['CLAUDE_EFFORT']===_0x388257(0xcf)?_0x388257(0x108):_0x388257(0xe0);return{'tool':'','model':_0x43842c,'modelShort':''};}if(_0xb27ec3[_0x388257(0x116)]&&exports[_0x388257(0xc0)][_0xb27ec3[_0x388257(0x116)]])return{'tool':_0x388257(0x134),'model':_0xb27ec3[_0x388257(0x116)],'modelShort':''};if(_0xb27ec3[_0x388257(0x103)]){const _0x3284f3=(_0xb27ec3[_0x388257(0x11a)]||'')[_0x388257(0x123)]();if(_0x3284f3['includes'](_0x388257(0xf5)))return{'tool':_0x388257(0xf5),'model':_0x388257(0xe0),'modelShort':_0x388257(0xf6)};if(_0x3284f3['includes'](_0x388257(0x137)))return{'tool':'windsurf','model':_0x388257(0xe0),'modelShort':_0x388257(0xf6)};}const _0x5c614c=process.env.TRIMPROMPT_MODEL||'';if(_0x5c614c&&exports[_0x388257(0xc0)][_0x5c614c])return{'tool':'','model':_0x5c614c,'modelShort':''};return _0x13b3b7;}function a0_0x1920(_0x219b66,_0x2d8381){_0x219b66=_0x219b66-0xa2;const _0x1f8cca=a0_0x1f8c();let _0x192000=_0x1f8cca[_0x219b66];return _0x192000;}class Tracker{[a0_0x3e8929(0x139)];[a0_0x3e8929(0x13e)];[a0_0x3e8929(0xbe)];[a0_0x3e8929(0x13c)];[a0_0x3e8929(0xca)];constructor(){const _0x1c9154=a0_0x3e8929;this[_0x1c9154(0x139)]=path[_0x1c9154(0xe7)](os[_0x1c9154(0xd6)](),'.trimprompt'),this[_0x1c9154(0x13e)]=path[_0x1c9154(0xe7)](this[_0x1c9154(0x139)],'config.json'),this[_0x1c9154(0xbe)]=path['join'](this[_0x1c9154(0x139)],_0x1c9154(0x120)),this[_0x1c9154(0x13c)]=path[_0x1c9154(0xe7)](this['baseDir'],_0x1c9154(0xe5)),this[_0x1c9154(0xb2)]();}[a0_0x3e8929(0xb2)](){const _0x40873b=a0_0x3e8929;!fs[_0x40873b(0xb5)](this[_0x40873b(0x139)])&&fs[_0x40873b(0xa7)](this[_0x40873b(0x139)],{'recursive':!![]});!fs[_0x40873b(0xb5)](this[_0x40873b(0x13c)])&&fs[_0x40873b(0xa7)](this[_0x40873b(0x13c)],{'recursive':!![]});const _0x2ed161={'version':_0x40873b(0x124),'telemetry_url':process.env.TRIMPROMPT_TELEMETRY_URL||'','max_output_tokens':0x1388,'redaction_enabled':!![],'default_model':_0x40873b(0x108)};if(fs[_0x40873b(0xb5)](this['configPath']))try{const _0x28b3bf=fs['readFileSync'](this[_0x40873b(0x13e)],_0x40873b(0xcb));this[_0x40873b(0xca)]={..._0x2ed161,...JSON['parse'](_0x28b3bf)};}catch(_0x393bc0){this['config']=_0x2ed161;}else this[_0x40873b(0xca)]=_0x2ed161,this['saveConfig']();!fs[_0x40873b(0xb5)](this[_0x40873b(0xbe)])&&fs[_0x40873b(0xa2)](this['statsPath'],JSON[_0x40873b(0xdb)]([]),'utf8');}[a0_0x3e8929(0xb1)](){const _0x4afe38=a0_0x3e8929;return process.env.TRIMPROMPT_TELEMETRY_URL&&(this['config'][_0x4afe38(0xad)]=process.env.TRIMPROMPT_TELEMETRY_URL),this['config'];}[a0_0x3e8929(0xf1)](_0xdbfb2f,_0x355b55){const _0x209d5b=a0_0x3e8929;this[_0x209d5b(0xca)][_0xdbfb2f]=_0x355b55,this[_0x209d5b(0x121)]();}[a0_0x3e8929(0x121)](){const _0x1b11aa=a0_0x3e8929;fs[_0x1b11aa(0xa2)](this[_0x1b11aa(0x13e)],JSON[_0x1b11aa(0xdb)](this['config'],null,0x2),_0x1b11aa(0xcb));}['getLogs'](){const _0x15fefb=a0_0x3e8929;try{if(!fs[_0x15fefb(0xb5)](this[_0x15fefb(0xbe)]))return[];const _0x3a5625=fs[_0x15fefb(0xc9)](this['statsPath'],_0x15fefb(0xcb));return JSON['parse'](_0x3a5625);}catch{return[];}}[a0_0x3e8929(0xfc)](_0x2c28bf){const _0x7e9295=a0_0x3e8929;fs[_0x7e9295(0xa2)](this[_0x7e9295(0xbe)],JSON['stringify'](_0x2c28bf,null,0x2),_0x7e9295(0xcb));}[a0_0x3e8929(0xd8)](_0x54befa,_0x44a001,_0x364145,_0x4963a6,_0x587db1,_0x2fa5b7){const _0x5f10c9=a0_0x3e8929,_0x587255=this[_0x5f10c9(0x10b)](),_0x184788=_0x44a001[_0x5f10c9(0xd5)],_0x5c8fa6=_0x364145[_0x5f10c9(0xd5)],_0x436fbf=Math['ceil'](_0x184788/0x4),_0x45c8a7=Math[_0x5f10c9(0xe3)](_0x5c8fa6/0x4),_0x5f20bd=Math[_0x5f10c9(0x105)](0x0,_0x436fbf-_0x45c8a7),_0x118a24=detectSessionTool(),_0x1a0d09=_0x118a24[_0x5f10c9(0xc2)],_0x1373d4=Math[_0x5f10c9(0x12c)]()['toString'](0x24)[_0x5f10c9(0xdf)](0x2,0xb);try{const {redactor:_0x2a0fde}=require(_0x5f10c9(0x13d)),_0x3b265e=_0x2a0fde?_0x2a0fde[_0x5f10c9(0x11f)](_0x44a001):_0x44a001;fs[_0x5f10c9(0xa2)](path['join'](this[_0x5f10c9(0x13c)],_0x1373d4+'.raw.txt'),_0x3b265e,_0x5f10c9(0xcb)),fs[_0x5f10c9(0xa2)](path['join'](this[_0x5f10c9(0x13c)],_0x1373d4+_0x5f10c9(0xf0)),_0x364145,_0x5f10c9(0xcb));}catch{}const _0x2ac76e=_0x54befa[_0x5f10c9(0xaa)]('\x20')[0x0]||'unknown',_0x1c655a=_0x118a24[_0x5f10c9(0x128)]?_0x118a24[_0x5f10c9(0x127)]?_0x118a24[_0x5f10c9(0x128)]+'-'+_0x118a24['modelShort']+'-'+_0x2ac76e:_0x118a24[_0x5f10c9(0x128)]+'-'+_0x2ac76e:_0x2ac76e,_0x5d3ddb={'id':_0x1373d4,'timestamp':new Date()['toISOString'](),'command':_0x1c655a,'raw_chars':_0x184788,'compressed_chars':_0x5c8fa6,'estimated_raw_tokens':_0x436fbf,'estimated_compressed_tokens':_0x45c8a7,'tokens_saved':_0x5f20bd,'model_used':_0x1a0d09,'exit_code':_0x4963a6,'synced':![],'ai_detected':!!_0x118a24[_0x5f10c9(0x128)],'secrets_found':_0x587db1?.['secretsFound']||0x0,'secret_types':_0x587db1?.['secretTypes']||[],'features':_0x2fa5b7||[]};_0x587255['push'](_0x5d3ddb),this[_0x5f10c9(0xfc)](_0x587255);const _0x4d7804=this[_0x5f10c9(0xb1)]()[_0x5f10c9(0xad)];return _0x4d7804&&_0x4d7804['trim']()[_0x5f10c9(0xd5)]>0x0&&this[_0x5f10c9(0xb6)](),_0x587db1&&_0x587db1['secretsFound']>0x0&&this[_0x5f10c9(0x102)](_0x5d3ddb,_0x587db1),_0x5d3ddb;}[a0_0x3e8929(0x102)](_0x262f6f,_0x3809f0){const _0x555f68=a0_0x3e8929;try{let _0x3910e1=this[_0x555f68(0xb1)]()[_0x555f68(0xad)]||'';if(!_0x3910e1)return;_0x3910e1=_0x3910e1['replace'](/\/api\/telemetry\/?$/,_0x555f68(0x13b));if(!_0x3910e1[_0x555f68(0xed)](_0x555f68(0x13b)))_0x3910e1+=_0x555f68(0x13b);const {execSync:_0x53b4a9}=require(_0x555f68(0xd4));let _0x22522f='unknown';try{_0x22522f=require('child_process')['execSync']('git\x20config\x20user.email',{'stdio':[_0x555f68(0x112),_0x555f68(0xbf),_0x555f68(0x112)]})['toString']()[_0x555f68(0x113)]();}catch{}if(!_0x22522f||!_0x22522f[_0x555f68(0xed)]('@'))try{_0x22522f=require('os')['userInfo']()['username'];}catch{}const _0x3447d8=JSON[_0x555f68(0xdb)]({'developer_id':_0x22522f,'timestamp':_0x262f6f[_0x555f68(0x131)],'command':_0x262f6f[_0x555f68(0x12d)],'secrets_found':_0x3809f0[_0x555f68(0xfd)],'secret_types':_0x3809f0[_0x555f68(0xc4)],'os':require('os')['platform']()}),_0x47727a=_0x555f68(0xab)+JSON['stringify'](_0x3910e1)+_0x555f68(0x133)+JSON[_0x555f68(0xdb)](_0x3910e1)+_0x555f68(0xb9)+JSON[_0x555f68(0xdb)](_0x3447d8)+')',_0x5eb53a=(0x0,child_process_1['spawn'])(process[_0x555f68(0x10d)],['-e',_0x47727a],{'detached':!![],'stdio':_0x555f68(0x112)});_0x5eb53a[_0x555f68(0x11b)]();}catch{}}[a0_0x3e8929(0xb6)](){const _0x12c2d8=a0_0x3e8929;try{const _0x4c531b=path['join'](__dirname,_0x12c2d8(0xf8));if(fs[_0x12c2d8(0xb5)](_0x4c531b)){const _0x1a1f94=(0x0,child_process_1[_0x12c2d8(0xe9)])(process['execPath'],[_0x4c531b],{'detached':!![],'stdio':'ignore'});_0x1a1f94[_0x12c2d8(0x11b)]();}}catch{}}[a0_0x3e8929(0xdd)](_0x49190a='auto'){const _0x587467=a0_0x3e8929,_0x3199e0=this['getLogs']();let _0x1c9cb1=0x0,_0x1ac20b=0x0,_0x186fff=0x0;for(const _0x48c86a of _0x3199e0){_0x1c9cb1+=_0x48c86a[_0x587467(0xe4)],_0x1ac20b+=_0x48c86a['estimated_compressed_tokens'],_0x186fff+=_0x48c86a[_0x587467(0x106)];}let _0x575073=_0x49190a;(!_0x575073||_0x575073===_0x587467(0xe6)||!exports[_0x587467(0xc0)][_0x575073])&&(_0x3199e0[_0x587467(0xd5)]>0x0&&_0x3199e0[_0x3199e0[_0x587467(0xd5)]-0x1][_0x587467(0x136)]?_0x575073=_0x3199e0[_0x3199e0[_0x587467(0xd5)]-0x1][_0x587467(0x136)]:_0x575073=this[_0x587467(0xb1)]()[_0x587467(0x117)]||'claude-3-5-sonnet');const _0x60c059=exports[_0x587467(0xc0)][_0x575073]||exports['PRICING'][_0x587467(0xa3)],_0x32abce=_0x186fff*_0x60c059[_0x587467(0xc3)]/0xf4240,_0x1028d9=_0x1c9cb1*_0x60c059[_0x587467(0xc3)]/0xf4240,_0x2a1d27=_0x1ac20b*_0x60c059['input_price_1m']/0xf4240,_0x3389e4=_0x1c9cb1>0x0?_0x186fff/_0x1c9cb1*0x64:0x0;return{'total_raw_tokens':_0x1c9cb1,'total_compressed_tokens':_0x1ac20b,'total_tokens_saved':_0x186fff,'savings_percentage':parseFloat(_0x3389e4['toFixed'](0x1)),'money_saved_usd':parseFloat(_0x32abce[_0x587467(0x126)](0x4)),'raw_cost_usd':parseFloat(_0x1028d9['toFixed'](0x4)),'compressed_cost_usd':parseFloat(_0x2a1d27[_0x587467(0x126)](0x4)),'model_name':_0x60c059[_0x587467(0xac)],'model_key':_0x575073};}}exports['Tracker']=Tracker,exports[a0_0x3e8929(0xaf)]=new Tracker();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';const a0_0xb2c0a4=a0_0x3737;function a0_0x3737(_0x2fdba7,_0x2b8743){_0x2fdba7=_0x2fdba7-0x91;const _0x50f0d9=a0_0x50f0();let _0x3737a2=_0x50f0d9[_0x2fdba7];return _0x3737a2;}(function(_0x1cff9d,_0x31f6ab){const _0x4f6451=a0_0x3737,_0xeb7447=_0x1cff9d();while(!![]){try{const _0x493ff0=parseInt(_0x4f6451(0xa3))/0x1*(parseInt(_0x4f6451(0xbc))/0x2)+parseInt(_0x4f6451(0x98))/0x3*(-parseInt(_0x4f6451(0xdc))/0x4)+-parseInt(_0x4f6451(0xb1))/0x5+-parseInt(_0x4f6451(0xa1))/0x6+parseInt(_0x4f6451(0xc9))/0x7*(-parseInt(_0x4f6451(0xd0))/0x8)+parseInt(_0x4f6451(0xbb))/0x9*(parseInt(_0x4f6451(0xd9))/0xa)+-parseInt(_0x4f6451(0x9c))/0xb*(-parseInt(_0x4f6451(0xa2))/0xc);if(_0x493ff0===_0x31f6ab)break;else _0xeb7447['push'](_0xeb7447['shift']());}catch(_0x1196e9){_0xeb7447['push'](_0xeb7447['shift']());}}}(a0_0x50f0,0x813e5));var __createBinding=this&&this['__createBinding']||(Object['create']?function(_0x29fafd,_0x346e4d,_0x327cc9,_0xd21df){const _0xdddbe0=a0_0x3737;if(_0xd21df===undefined)_0xd21df=_0x327cc9;var _0x559c31=Object[_0xdddbe0(0xab)](_0x346e4d,_0x327cc9);(!_0x559c31||(_0xdddbe0(0xad)in _0x559c31?!_0x346e4d['__esModule']:_0x559c31['writable']||_0x559c31[_0xdddbe0(0xd2)]))&&(_0x559c31={'enumerable':!![],'get':function(){return _0x346e4d[_0x327cc9];}}),Object[_0xdddbe0(0xca)](_0x29fafd,_0xd21df,_0x559c31);}:function(_0x584e80,_0x4c4743,_0x3181a2,_0x3a62c7){if(_0x3a62c7===undefined)_0x3a62c7=_0x3181a2;_0x584e80[_0x3a62c7]=_0x4c4743[_0x3181a2];}),__setModuleDefault=this&&this[a0_0xb2c0a4(0xaf)]||(Object['create']?function(_0x510f44,_0x59a5e4){const _0x4fb747=a0_0xb2c0a4;Object['defineProperty'](_0x510f44,_0x4fb747(0xe6),{'enumerable':!![],'value':_0x59a5e4});}:function(_0x3d8c18,_0x52c20c){const _0x9872b=a0_0xb2c0a4;_0x3d8c18[_0x9872b(0xe6)]=_0x52c20c;}),__importStar=this&&this['__importStar']||(function(){var _0x1dbb5b=function(_0xce547b){const _0x3ec379=a0_0x3737;return _0x1dbb5b=Object[_0x3ec379(0xeb)]||function(_0x3caf64){const _0x7d0850=_0x3ec379;var _0x5a981d=[];for(var _0x4249b5 in _0x3caf64)if(Object['prototype'][_0x7d0850(0xa5)][_0x7d0850(0x9f)](_0x3caf64,_0x4249b5))_0x5a981d[_0x5a981d[_0x7d0850(0x97)]]=_0x4249b5;return _0x5a981d;},_0x1dbb5b(_0xce547b);};return function(_0xbc65e4){const _0x264962=a0_0x3737;if(_0xbc65e4&&_0xbc65e4[_0x264962(0xcd)])return _0xbc65e4;var _0x9a2976={};if(_0xbc65e4!=null){for(var _0x1260f6=_0x1dbb5b(_0xbc65e4),_0x2fa4c5=0x0;_0x2fa4c5<_0x1260f6[_0x264962(0x97)];_0x2fa4c5++)if(_0x1260f6[_0x2fa4c5]!=='default')__createBinding(_0x9a2976,_0xbc65e4,_0x1260f6[_0x2fa4c5]);}return __setModuleDefault(_0x9a2976,_0xbc65e4),_0x9a2976;};}());Object[a0_0xb2c0a4(0xca)](exports,a0_0xb2c0a4(0xcd),{'value':!![]}),exports[a0_0xb2c0a4(0xdb)]=generateCaCertificate,exports['installSystemCaCert']=installSystemCaCert,exports['enableSystemProxy']=enableSystemProxy,exports[a0_0xb2c0a4(0xb4)]=disableSystemProxy,exports['startTrafficInterceptor']=startTrafficInterceptor;const fs=__importStar(require('fs')),path=__importStar(require(a0_0xb2c0a4(0xdf))),os=__importStar(require('os')),net=__importStar(require('net')),http=__importStar(require(a0_0xb2c0a4(0x93))),crypto=__importStar(require(a0_0xb2c0a4(0xb7))),child_process_1=require(a0_0xb2c0a4(0xc4)),baseDir=path[a0_0xb2c0a4(0x95)](os[a0_0xb2c0a4(0xe9)](),'.trimprompt'),caCertPath=path[a0_0xb2c0a4(0x95)](baseDir,a0_0xb2c0a4(0xb8)),caKeyPath=path[a0_0xb2c0a4(0x95)](baseDir,a0_0xb2c0a4(0xa9));function ensureBaseDir(){const _0x6b772b=a0_0xb2c0a4;if(!fs[_0x6b772b(0xa6)](baseDir))fs[_0x6b772b(0x9a)](baseDir,{'recursive':!![]});}function a0_0x50f0(){const _0x3312d9=['989261REWhGp','defineProperty','createPrivateKey','rsa','__esModule','TrimPrompt\x20Traffic\x20Interceptor\x20Active','readFileSync','8SmsDgn','platform','configurable','Set-ItemProperty\x20-Path\x20\x27','trim','\x20is\x20in\x20use.\x20Run\x20\x27trim\x20proxy\x20stop\x27\x20first.','HKCU:\x5cSoftware\x5cMicrosoft\x5cWindows\x5cCurrentVersion\x5cInternet\x20Settings','\x27\x20-Name\x20\x27ProxyServer\x27\x20-Value\x20\x27','url','40hwagjs','sha256','generateCaCertificate','8bBLELw','netstat\x20-ano\x20|\x20findstr\x20:','[TrimPrompt\x20Traffic\x20Engine]\x20Port\x20','path','/CN=TrimPrompt\x20Root\x20CA/O=TrimPrompt\x20AI/OU=Security','EADDRINUSE','[TrimPrompt\x20Traffic\x20Engine]\x20Server\x20error:\x20','certutil\x20-addstore\x20-f\x20\x22Root\x22\x20\x22','write','createServer','default','pid','writeFileSync','homedir','generateKeyPairSync','getOwnPropertyNames','listen','powershell.exe\x20-NoProfile\x20-Command\x20\x22','\x27\x20-Name\x20\x27ProxyEnable\x27\x20-Value\x200','execSync','writeHead','http','win32','join','.\x20Retrying\x20listen...','length','1210098hfpumg','export','mkdirSync','error','965096ALzTUc','setPublicKey','\x20/F','call','\x20is\x20occupied\x20by\x20existing\x20daemon.\x20Freeing\x20port...','197190ivAUbP','96wDjDPZ','40374kavRVu','\x20|\x20findstr\x20LISTENING','hasOwnProperty','existsSync','request','createPublicKey','ca.key','[TrimPrompt\x20Traffic\x20Engine]\x20Live\x20Traffic\x20Interceptor\x20listening\x20on\x20127.0.0.1:','getOwnPropertyDescriptor','replace','get','spki','__setModuleDefault','message','731855SXOhoW','pem','createCertificate','disableSystemProxy','[TrimPrompt\x20Traffic\x20Engine]\x20Terminated\x20background\x20process\x20','split','crypto','ca.crt','log','connect','1239849icefEV','20JgvqwH','utf8','application/json','ignore','toString','end','setIssuer','code','child_process','127.0.0.1:','setSubject','taskkill\x20/PID\x20','127.0.0.1'];a0_0x50f0=function(){return _0x3312d9;};return a0_0x50f0();}function generateCaCertificate(){const _0x1976d5=a0_0xb2c0a4;ensureBaseDir();if(fs[_0x1976d5(0xa6)](caCertPath)&&fs[_0x1976d5(0xa6)](caKeyPath))return{'cert':fs['readFileSync'](caCertPath,_0x1976d5(0xbd)),'key':fs[_0x1976d5(0xcf)](caKeyPath,_0x1976d5(0xbd))};const {privateKey:_0x439cdc,publicKey:_0x317f86}=crypto[_0x1976d5(0xea)](_0x1976d5(0xcc),{'modulusLength':0x800,'publicKeyEncoding':{'type':_0x1976d5(0xae),'format':_0x1976d5(0xb2)},'privateKeyEncoding':{'type':'pkcs8','format':_0x1976d5(0xb2)}}),_0x2fc61a=crypto['createCertificate']?crypto[_0x1976d5(0xb3)]():null;let _0x2f3529='';return _0x2fc61a?(_0x2fc61a[_0x1976d5(0xc6)]('/CN=TrimPrompt\x20Root\x20CA/O=TrimPrompt\x20AI/OU=Security'),_0x2fc61a[_0x1976d5(0xc2)](_0x1976d5(0xe0)),_0x2fc61a[_0x1976d5(0x9d)](crypto[_0x1976d5(0xa8)](_0x317f86)),_0x2fc61a['sign'](crypto[_0x1976d5(0xcb)](_0x439cdc),_0x1976d5(0xda)),_0x2f3529=_0x2fc61a[_0x1976d5(0x99)]('pem')[_0x1976d5(0xc0)]()):_0x2f3529=_0x317f86,fs[_0x1976d5(0xe8)](caKeyPath,_0x439cdc,_0x1976d5(0xbd)),fs[_0x1976d5(0xe8)](caCertPath,_0x2f3529,'utf8'),{'cert':_0x2f3529,'key':_0x439cdc};}function installSystemCaCert(){const _0x1b21ab=a0_0xb2c0a4;if(process['platform']!==_0x1b21ab(0x94))return![];try{return generateCaCertificate(),(0x0,child_process_1[_0x1b21ab(0x91)])(_0x1b21ab(0xe3)+caCertPath+'\x22',{'stdio':_0x1b21ab(0xbf),'timeout':0x1f40}),!![];}catch{return![];}}function enableSystemProxy(_0x2e46ac=0x1f90){const _0x214a3b=a0_0xb2c0a4;if(process[_0x214a3b(0xd1)]!==_0x214a3b(0x94))return![];try{const _0xc6d2b9=_0x214a3b(0xd6),_0x334206=_0x214a3b(0xc5)+_0x2e46ac,_0x17fc38='Set-ItemProperty\x20-Path\x20\x27'+_0xc6d2b9+'\x27\x20-Name\x20\x27ProxyEnable\x27\x20-Value\x201;\x20Set-ItemProperty\x20-Path\x20\x27'+_0xc6d2b9+_0x214a3b(0xd7)+_0x334206+'\x27';return(0x0,child_process_1['execSync'])(_0x214a3b(0xed)+_0x17fc38[_0x214a3b(0xac)](/"/g,'\x5c\x22')+'\x22',{'stdio':'ignore','timeout':0x1f40}),!![];}catch{return![];}}function disableSystemProxy(){const _0x5760d5=a0_0xb2c0a4;if(process[_0x5760d5(0xd1)]!==_0x5760d5(0x94))return![];try{const _0x34ed52=_0x5760d5(0xd6),_0x498354=_0x5760d5(0xd3)+_0x34ed52+_0x5760d5(0xee);return(0x0,child_process_1['execSync'])(_0x5760d5(0xed)+_0x498354[_0x5760d5(0xac)](/"/g,'\x5c\x22')+'\x22',{'stdio':_0x5760d5(0xbf),'timeout':0x1f40}),!![];}catch{return![];}}function startTrafficInterceptor(_0x413ec0=0x1f90){const _0x3700de=a0_0xb2c0a4,_0x20398b=http[_0x3700de(0xe5)]();_0x20398b['on'](_0x3700de(0x9b),_0x1072d6=>{const _0x28b9a6=_0x3700de;if(_0x1072d6[_0x28b9a6(0xc3)]===_0x28b9a6(0xe1)){console['log'](_0x28b9a6(0xde)+_0x413ec0+_0x28b9a6(0xa0));try{if(process[_0x28b9a6(0xd1)]===_0x28b9a6(0x94)){const _0xde89d3=(0x0,child_process_1[_0x28b9a6(0x91)])(_0x28b9a6(0xdd)+_0x413ec0+_0x28b9a6(0xa4),{'encoding':_0x28b9a6(0xbd),'timeout':0xbb8}),_0x214349=_0xde89d3[_0x28b9a6(0xd4)]()[_0x28b9a6(0xb6)](/\s+/),_0xb641b0=_0x214349[_0x214349[_0x28b9a6(0x97)]-0x1];if(_0xb641b0&&_0xb641b0!==String(process[_0x28b9a6(0xe7)])){(0x0,child_process_1[_0x28b9a6(0x91)])(_0x28b9a6(0xc7)+_0xb641b0+_0x28b9a6(0x9e),{'stdio':_0x28b9a6(0xbf),'timeout':0xbb8}),console[_0x28b9a6(0xb9)](_0x28b9a6(0xb5)+_0xb641b0+_0x28b9a6(0x96)),setTimeout(()=>_0x20398b[_0x28b9a6(0xec)](_0x413ec0,_0x28b9a6(0xc8)),0x1f4);return;}}}catch{}console['error'](_0x28b9a6(0xde)+_0x413ec0+_0x28b9a6(0xd5));}else console[_0x28b9a6(0x9b)](_0x28b9a6(0xe2)+_0x1072d6[_0x28b9a6(0xb0)]);}),_0x20398b['on'](_0x3700de(0xa7),(_0x53e25d,_0x2f7a90)=>{const _0x4ca3a6=_0x3700de;_0x2f7a90[_0x4ca3a6(0x92)](0xc8,{'Content-Type':_0x4ca3a6(0xbe)}),_0x2f7a90[_0x4ca3a6(0xc1)](JSON['stringify']({'status':_0x4ca3a6(0xce),'url':_0x53e25d['url']}));}),_0x20398b['on']('connect',(_0x1fa43e,_0x1b6526,_0x5529d1)=>{const _0x945821=_0x3700de,[_0x92c4b0,_0xfbd4e]=(_0x1fa43e[_0x945821(0xd8)]||'')[_0x945821(0xb6)](':'),_0x51a6f7=parseInt(_0xfbd4e,0xa)||0x1bb,_0x542d54=net[_0x945821(0xba)](_0x51a6f7,_0x92c4b0,()=>{const _0x52ae76=_0x945821;_0x1b6526[_0x52ae76(0xe4)]('HTTP/1.1\x20200\x20Connection\x20Established\x0d\x0a\x0d\x0a'),_0x542d54[_0x52ae76(0xe4)](_0x5529d1),_0x542d54['pipe'](_0x1b6526),_0x1b6526['pipe'](_0x542d54);});_0x542d54['on'](_0x945821(0x9b),()=>{const _0x225faf=_0x945821;try{_0x1b6526[_0x225faf(0xc1)]();}catch{}}),_0x1b6526['on']('error',()=>{const _0x56ae86=_0x945821;try{_0x542d54[_0x56ae86(0xc1)]();}catch{}});}),_0x20398b['listen'](_0x413ec0,_0x3700de(0xc8),()=>{const _0xb634f6=_0x3700de;console[_0xb634f6(0xb9)](_0xb634f6(0xaa)+_0x413ec0);});}
|