trimprompt 1.0.5 → 1.0.7

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
@@ -33,7 +33,24 @@ npm install -g trimprompt
33
33
  Since TrimPrompt intercepts commands at the OS `PATH` level, your AI assistants will automatically benefit from prompt optimization without changing their workflow.
34
34
  When Claude Code runs `git status`, it triggers `trim git status` behind the scenes, outputting a compacted representation.
35
35
 
36
- ### 2. Manual CLI Commands
36
+ ### 2. Local Developer Dashboard
37
+ Start the local dashboard web UI:
38
+ ```bash
39
+ trim ui
40
+ # or trim dashboard
41
+ ```
42
+ Options:
43
+ * `-p, --port <number>`: Port to run the server on (default: `4000`).
44
+
45
+ The command will boot the dashboard web server and automatically open your default browser pointing to:
46
+ 👉 **`http://localhost:4000`**
47
+
48
+ #### Inside the Dashboard:
49
+ * **Analytics Cards:** See your Shaved Cost, Reduction Rate, Estimated Savings, and Original Cost.
50
+ * **Savings Timeline:** A Chart.js graph tracking your daily raw vs. compressed token counts.
51
+ * **Execution Logs:** Click on any past command to open the visual side-by-side diff inspector showing the exact raw vs. compacted output.
52
+
53
+ ### 3. Manual CLI Commands
37
54
  You can also run commands manually:
38
55
  * Show stats summary:
39
56
  ```bash
@@ -48,7 +65,7 @@ You can also run commands manually:
48
65
  trim rewrite "git status"
49
66
  ```
50
67
 
51
- ### 3. Model Context Protocol (MCP) Proxying
68
+ ### 4. Model Context Protocol (MCP) Proxying
52
69
  If you run interactive, streaming MCP servers, wrap them with the `mcp-proxy` command:
53
70
  ```bash
54
71
  trim mcp-proxy <server-command> [server-args...]
@@ -61,26 +78,6 @@ TrimPrompt will parse the stdin/stdout JSON-RPC stream, extract the tool respons
61
78
 
62
79
  ---
63
80
 
64
- ## Local Developer Dashboard
65
-
66
- Start the local dashboard web UI:
67
- ```bash
68
- trim ui
69
- # or trim dashboard
70
- ```
71
- Options:
72
- * `-p, --port <number>`: Port to run the server on (default: `4000`).
73
-
74
- The command will boot the dashboard web server and automatically open your default browser pointing to:
75
- 👉 **`http://localhost:4000`**
76
-
77
- ### Inside the Dashboard:
78
- * **Analytics Cards:** See your Shaved Cost, Reduction Rate, Estimated Savings, and Original Cost.
79
- * **Savings Timeline:** A Chart.js graph tracking your daily raw vs. compressed token counts.
80
- * **Execution Logs:** Click on any past command to open the visual side-by-side diff inspector showing the exact raw vs. compacted output.
81
-
82
- ---
83
-
84
81
  ## 180-Day Log Rotation Policy
85
82
  To keep your disk usage lightweight, TrimPrompt runs a background cleanup process. Every calendar day you use the CLI, a detached background process unlinks all log files (`.raw.txt` and `.comp.txt`) inside `~/.trimprompt/logs/` and removes metadata records from `stats.json` that are older than **180 days**.
86
83
 
package/cache.js ADDED
@@ -0,0 +1 @@
1
+ 'use strict';const a0_0x568afc=a0_0x5652;(function(_0x1c3820,_0x142e10){const _0x180f2c=a0_0x5652,_0xe0be2c=_0x1c3820();while(!![]){try{const _0x363ab1=parseInt(_0x180f2c(0xae))/0x1+parseInt(_0x180f2c(0x89))/0x2+-parseInt(_0x180f2c(0x80))/0x3+parseInt(_0x180f2c(0x95))/0x4+-parseInt(_0x180f2c(0x7b))/0x5+-parseInt(_0x180f2c(0x86))/0x6*(-parseInt(_0x180f2c(0xa9))/0x7)+parseInt(_0x180f2c(0xb0))/0x8*(-parseInt(_0x180f2c(0xb3))/0x9);if(_0x363ab1===_0x142e10)break;else _0xe0be2c['push'](_0xe0be2c['shift']());}catch(_0xfd2f72){_0xe0be2c['push'](_0xe0be2c['shift']());}}}(a0_0x214f,0xf1615));var __createBinding=this&&this[a0_0x568afc(0xa0)]||(Object[a0_0x568afc(0x84)]?function(_0xeb77ca,_0x2c0de6,_0x5dba66,_0x37dcb4){const _0x298823=a0_0x568afc;if(_0x37dcb4===undefined)_0x37dcb4=_0x5dba66;var _0x28bc5b=Object['getOwnPropertyDescriptor'](_0x2c0de6,_0x5dba66);(!_0x28bc5b||('get'in _0x28bc5b?!_0x2c0de6[_0x298823(0x72)]:_0x28bc5b[_0x298823(0x6c)]||_0x28bc5b[_0x298823(0x97)]))&&(_0x28bc5b={'enumerable':!![],'get':function(){return _0x2c0de6[_0x5dba66];}}),Object[_0x298823(0xa7)](_0xeb77ca,_0x37dcb4,_0x28bc5b);}:function(_0x3b051f,_0x27bf82,_0x514dd1,_0x3f2523){if(_0x3f2523===undefined)_0x3f2523=_0x514dd1;_0x3b051f[_0x3f2523]=_0x27bf82[_0x514dd1];}),__setModuleDefault=this&&this[a0_0x568afc(0x91)]||(Object['create']?function(_0x333942,_0x54223f){const _0xb0e0b6=a0_0x568afc;Object[_0xb0e0b6(0xa7)](_0x333942,_0xb0e0b6(0x73),{'enumerable':!![],'value':_0x54223f});}:function(_0x41fdeb,_0x1055f7){_0x41fdeb['default']=_0x1055f7;}),__importStar=this&&this[a0_0x568afc(0x9d)]||(function(){var _0x280fe8=function(_0x3f4e9b){return _0x280fe8=Object['getOwnPropertyNames']||function(_0x2f26a5){const _0x35fbdd=a0_0x5652;var _0x10080c=[];for(var _0x1162ec in _0x2f26a5)if(Object[_0x35fbdd(0x77)][_0x35fbdd(0x71)][_0x35fbdd(0x7f)](_0x2f26a5,_0x1162ec))_0x10080c[_0x10080c['length']]=_0x1162ec;return _0x10080c;},_0x280fe8(_0x3f4e9b);};return function(_0x46a91f){const _0x2a53e6=a0_0x5652;if(_0x46a91f&&_0x46a91f[_0x2a53e6(0x72)])return _0x46a91f;var _0x3a7e7d={};if(_0x46a91f!=null){for(var _0x1bd353=_0x280fe8(_0x46a91f),_0x2d7c2a=0x0;_0x2d7c2a<_0x1bd353[_0x2a53e6(0xaf)];_0x2d7c2a++)if(_0x1bd353[_0x2d7c2a]!==_0x2a53e6(0x73))__createBinding(_0x3a7e7d,_0x46a91f,_0x1bd353[_0x2d7c2a]);}return __setModuleDefault(_0x3a7e7d,_0x46a91f),_0x3a7e7d;};}());Object[a0_0x568afc(0xa7)](exports,a0_0x568afc(0x72),{'value':!![]}),exports[a0_0x568afc(0x87)]=dedup;const fs=__importStar(require('fs')),path=__importStar(require('path')),os=__importStar(require('os')),crypto=__importStar(require(a0_0x568afc(0x8c))),CACHE_DIR=path['join'](os[a0_0x568afc(0x96)](),'.trimprompt'),CACHE_FILE=path[a0_0x568afc(0x6a)](CACHE_DIR,'cache.json'),MAX_ENTRIES=0x12c,TTL_SECONDS={'file':0x78,'git-status':0x1e,'git-log':0x3c,'git-show':0xe10,'ls':0x3c,'tree':0x3c,'docker-ps':0x1e,'docker-images':0x3c,'kubectl':0x1e,'ruff':0x3c,'go-vet':0x3c};function classifyCommand(_0xbf0386){const _0x5a0f07=a0_0x568afc,_0xec0988=_0xbf0386[_0x5a0f07(0x76)]()[_0x5a0f07(0xa4)]();if(_0xec0988[_0x5a0f07(0x99)](/^(cat|head|tail|read|bat)\s/))return _0x5a0f07(0x7e);if(_0xec0988[_0x5a0f07(0x8a)](_0x5a0f07(0x9e))||_0xec0988[_0x5a0f07(0x8a)](_0x5a0f07(0x94)))return'git-status';if(_0xec0988[_0x5a0f07(0x8a)](_0x5a0f07(0x7d))||_0xec0988[_0x5a0f07(0x8a)](_0x5a0f07(0xac)))return'git-log';if(_0xec0988['includes'](_0x5a0f07(0x8b))||_0xec0988[_0x5a0f07(0x8a)](_0x5a0f07(0x9b)))return'git-show';if(_0xec0988[_0x5a0f07(0x99)](/^(ls|dir)(\s|$)/)||_0xec0988['includes'](_0x5a0f07(0xb1))||_0xec0988[_0x5a0f07(0x98)](_0x5a0f07(0x93)))return'ls';if(_0xec0988['match'](/^tree(\s|$)/)||_0xec0988[_0x5a0f07(0x8a)](_0x5a0f07(0x7a))||_0xec0988[_0x5a0f07(0x98)]('\x20tree'))return _0x5a0f07(0xb4);if(_0xec0988[_0x5a0f07(0x99)](/docker\s+ps/))return _0x5a0f07(0x70);if(_0xec0988[_0x5a0f07(0x99)](/docker\s+images/))return _0x5a0f07(0x90);if(_0xec0988[_0x5a0f07(0x8a)](_0x5a0f07(0x92))||_0xec0988['includes']('kubectl\x20describe'))return _0x5a0f07(0x78);if(_0xec0988[_0x5a0f07(0x8a)](_0x5a0f07(0xa1))||_0xec0988[_0x5a0f07(0x8a)](_0x5a0f07(0xa6)))return'ruff';if(_0xec0988[_0x5a0f07(0x8a)](_0x5a0f07(0xad)))return'go-vet';return'';}function a0_0x5652(_0x46183c,_0x1c9cef){const _0x214fcd=a0_0x214f();return a0_0x5652=function(_0x56525d,_0xf13581){_0x56525d=_0x56525d-0x69;let _0x58799e=_0x214fcd[_0x56525d];return _0x58799e;},a0_0x5652(_0x46183c,_0x1c9cef);}function a0_0x214f(){const _0xf52d64=['writable','\x20chars','md5','sort','docker-ps','hasOwnProperty','__esModule','default','utf8','stringify','trim','prototype','kubectl','[cached\x20—\x20unchanged\x20since\x20','\x20tree\x20','725280HdRXCi','now','git\x20log','file','call','460359IixPtJ','\x20lines,\x20','git-log','update','create','round','5747754EBnxAg','dedup','writeFileSync','1543632GNJBmt','includes','git\x20show','crypto','summary','hex','createHash','docker-images','__setModuleDefault','kubectl\x20get','\x20ls','yadm\x20status','1138228sBChfh','homedir','configurable','endsWith','match','docker','yadm\x20show','timestamp','__importStar','git\x20status','\x20lines','__createBinding','ruff\x20check','digest','cwd','toLowerCase','existsSync','ruff\x20','defineProperty','git-status','7eAGUMg','mkdirSync','readFileSync','yadm\x20log','go\x20vet','1260253iMPmrH','length','5299688abNLHD','\x20ls\x20','parse','27sqouvG','tree','slice','hash','split','join','startsWith'];a0_0x214f=function(){return _0xf52d64;};return a0_0x214f();}function md5(_0xfdb5de){const _0x4764f6=a0_0x568afc;return crypto[_0x4764f6(0x8f)](_0x4764f6(0x6e))[_0x4764f6(0x83)](_0xfdb5de)[_0x4764f6(0xa2)](_0x4764f6(0x8e));}function loadStore(){const _0x72fda0=a0_0x568afc;try{if(fs[_0x72fda0(0xa5)](CACHE_FILE))return JSON[_0x72fda0(0xb2)](fs[_0x72fda0(0xab)](CACHE_FILE,_0x72fda0(0x74)));}catch{}return{};}function saveStore(_0x3a17e9){const _0x6b9dc6=a0_0x568afc;try{if(!fs[_0x6b9dc6(0xa5)](CACHE_DIR))fs[_0x6b9dc6(0xaa)](CACHE_DIR,{'recursive':!![]});const _0x2b926f=Object['keys'](_0x3a17e9);if(_0x2b926f[_0x6b9dc6(0xaf)]>MAX_ENTRIES){const _0x3dc4e4=_0x2b926f[_0x6b9dc6(0x6f)]((_0x51fe86,_0x19626e)=>_0x3a17e9[_0x51fe86]['timestamp']-_0x3a17e9[_0x19626e]['timestamp']);for(const _0xff663b of _0x3dc4e4[_0x6b9dc6(0xb5)](0x0,_0x2b926f[_0x6b9dc6(0xaf)]-MAX_ENTRIES)){delete _0x3a17e9[_0xff663b];}}fs[_0x6b9dc6(0x88)](CACHE_FILE,JSON[_0x6b9dc6(0x75)](_0x3a17e9),_0x6b9dc6(0x74));}catch{}}function buildSummary(_0x5d8f77,_0x1c8f9c){const _0x99aaf=a0_0x568afc,_0x425252=_0x5d8f77[_0x99aaf(0x69)]('\x0a')['length'],_0x54fc15=_0x5d8f77[_0x99aaf(0xaf)];if(_0x1c8f9c===_0x99aaf(0x7e))return _0x425252+_0x99aaf(0x81)+_0x54fc15+_0x99aaf(0x6d);if(_0x1c8f9c===_0x99aaf(0xa8))return _0x425252+_0x99aaf(0x9f);if(_0x1c8f9c===_0x99aaf(0x82))return _0x425252+'\x20entries';if(_0x1c8f9c[_0x99aaf(0x6b)](_0x99aaf(0x9a)))return _0x425252+'\x20lines';return _0x425252+_0x99aaf(0x81)+_0x54fc15+'\x20chars';}function dedup(_0x5d7d0a,_0x53e0c8){const _0x4d22b5=a0_0x568afc;try{const _0x38c2c=classifyCommand(_0x5d7d0a);if(!_0x38c2c)return null;const _0x87be=TTL_SECONDS[_0x38c2c];if(!_0x87be)return null;const _0x1a564e=process[_0x4d22b5(0xa3)](),_0x10c9b2=md5(_0x1a564e+'::'+_0x5d7d0a[_0x4d22b5(0x76)]()),_0x16e390=md5(_0x53e0c8),_0x56013c=Date[_0x4d22b5(0x7c)](),_0xdd018=loadStore(),_0x190037=_0xdd018[_0x10c9b2];if(_0x190037&&_0x190037[_0x4d22b5(0xb6)]===_0x16e390&&_0x56013c-_0x190037['timestamp']<_0x87be*0x3e8){const _0x57ccea=Math[_0x4d22b5(0x85)]((_0x56013c-_0x190037[_0x4d22b5(0x9c)])/0x3e8);return _0x4d22b5(0x79)+_0x57ccea+'s\x20ago,\x20'+_0x190037[_0x4d22b5(0x8d)]+']';}_0xdd018[_0x10c9b2]={'hash':_0x16e390,'summary':buildSummary(_0x53e0c8,_0x38c2c),'timestamp':_0x56013c,'chars':_0x53e0c8[_0x4d22b5(0xaf)]},saveStore(_0xdd018);}catch{}return null;}
package/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';const a0_0x58f592=a0_0x38e0;(function(_0x2d1101,_0x1d18de){const _0x5d5d6d=a0_0x38e0,_0x546d70=_0x2d1101();while(!![]){try{const _0x48dac7=-parseInt(_0x5d5d6d(0xd4))/0x1*(-parseInt(_0x5d5d6d(0x12e))/0x2)+parseInt(_0x5d5d6d(0x122))/0x3*(parseInt(_0x5d5d6d(0x141))/0x4)+parseInt(_0x5d5d6d(0xb9))/0x5+-parseInt(_0x5d5d6d(0x109))/0x6*(-parseInt(_0x5d5d6d(0xe0))/0x7)+-parseInt(_0x5d5d6d(0xd0))/0x8+-parseInt(_0x5d5d6d(0xed))/0x9+parseInt(_0x5d5d6d(0x128))/0xa*(-parseInt(_0x5d5d6d(0xad))/0xb);if(_0x48dac7===_0x1d18de)break;else _0x546d70['push'](_0x546d70['shift']());}catch(_0x32a206){_0x546d70['push'](_0x546d70['shift']());}}}(a0_0x1990,0x5dfd3));var __createBinding=this&&this[a0_0x58f592(0x114)]||(Object['create']?function(_0x11d889,_0x33f6d1,_0x51d6fb,_0x3dfc74){const _0x20d56c=a0_0x58f592;if(_0x3dfc74===undefined)_0x3dfc74=_0x51d6fb;var _0x55e064=Object[_0x20d56c(0x104)](_0x33f6d1,_0x51d6fb);(!_0x55e064||(_0x20d56c(0xaa)in _0x55e064?!_0x33f6d1[_0x20d56c(0xf9)]:_0x55e064[_0x20d56c(0x101)]||_0x55e064['configurable']))&&(_0x55e064={'enumerable':!![],'get':function(){return _0x33f6d1[_0x51d6fb];}}),Object[_0x20d56c(0x11c)](_0x11d889,_0x3dfc74,_0x55e064);}:function(_0x1cc877,_0x2d18fd,_0x504d13,_0x2d6370){if(_0x2d6370===undefined)_0x2d6370=_0x504d13;_0x1cc877[_0x2d6370]=_0x2d18fd[_0x504d13];}),__setModuleDefault=this&&this[a0_0x58f592(0xb4)]||(Object['create']?function(_0x16f049,_0x2165ea){const _0x3ba2e4=a0_0x58f592;Object[_0x3ba2e4(0x11c)](_0x16f049,_0x3ba2e4(0xc8),{'enumerable':!![],'value':_0x2165ea});}:function(_0x169748,_0x1f70cb){const _0x5adcc3=a0_0x58f592;_0x169748[_0x5adcc3(0xc8)]=_0x1f70cb;}),__importStar=this&&this['__importStar']||(function(){var _0x47adb1=function(_0x207955){const _0x467eda=a0_0x38e0;return _0x47adb1=Object[_0x467eda(0xcb)]||function(_0x43d5f1){const _0x4b367a=_0x467eda;var _0x44b57c=[];for(var _0x560224 in _0x43d5f1)if(Object[_0x4b367a(0xb7)][_0x4b367a(0xc6)][_0x4b367a(0xfe)](_0x43d5f1,_0x560224))_0x44b57c[_0x44b57c[_0x4b367a(0xdb)]]=_0x560224;return _0x44b57c;},_0x47adb1(_0x207955);};return function(_0x55c0b5){const _0x193a15=a0_0x38e0;if(_0x55c0b5&&_0x55c0b5['__esModule'])return _0x55c0b5;var _0x4966f5={};if(_0x55c0b5!=null){for(var _0x4c90bc=_0x47adb1(_0x55c0b5),_0x173ce2=0x0;_0x173ce2<_0x4c90bc[_0x193a15(0xdb)];_0x173ce2++)if(_0x4c90bc[_0x173ce2]!==_0x193a15(0xc8))__createBinding(_0x4966f5,_0x55c0b5,_0x4c90bc[_0x173ce2]);}return __setModuleDefault(_0x4966f5,_0x55c0b5),_0x4966f5;};}());Object['defineProperty'](exports,a0_0x58f592(0xf9),{'value':!![]});const commander_1=require(a0_0x58f592(0x136)),executor_1=require(a0_0x58f592(0xfc)),filters_1=require(a0_0x58f592(0x111)),tracker_1=require(a0_0x58f592(0xeb)),shims_1=require(a0_0x58f592(0x130)),dashboard_1=require(a0_0x58f592(0x11e)),program=new commander_1[(a0_0x58f592(0xf8))]();function isDisabled(){const _0x4f10c9=a0_0x58f592;return process['env'][_0x4f10c9(0x127)]==='1';}function adjustCommandArgs(_0x50a76d,_0xe2496f){const _0x3cd54b=a0_0x58f592,_0x1f19b4=_0x50a76d[_0x3cd54b(0xe9)]();if(_0x1f19b4===_0x3cd54b(0x13f)||_0x1f19b4===_0x3cd54b(0xf3)){const _0x33f6ad=_0xe2496f[0x0];if(_0x33f6ad===_0x3cd54b(0xd6)){const _0x5f4f37=_0xe2496f['slice'](0x1),_0x3cf54b=_0x5f4f37[_0x3cd54b(0xdb)]===0x0||_0x5f4f37[_0x3cd54b(0xe7)](_0x3e7210=>{const _0x1cece9=_0x3cd54b;return _0x3e7210==='-b'||_0x3e7210===_0x1cece9(0xe3)||_0x3e7210===_0x1cece9(0x116)||_0x3e7210===_0x1cece9(0x106)||_0x3e7210==='-s'||_0x3e7210==='--short';});if(_0x3cf54b)return{'cmd':_0x50a76d,'args':['status','--porcelain','-b']};}else{if(_0x33f6ad==='log'){const _0x11e8c1=_0xe2496f[_0x3cd54b(0x10d)](0x1),_0x4a2c78=_0x11e8c1['some'](_0x168fde=>_0x168fde[_0x3cd54b(0xe2)]('--oneline')||_0x168fde[_0x3cd54b(0xe2)](_0x3cd54b(0x105))||_0x168fde[_0x3cd54b(0xe2)](_0x3cd54b(0x11f))),_0x4eb5f0=_0x11e8c1[_0x3cd54b(0xb6)](_0x5493e6=>_0x5493e6[_0x3cd54b(0xe2)]('-')&&/^\d+$/[_0x3cd54b(0x133)](_0x5493e6[_0x3cd54b(0x10d)](0x1))||_0x5493e6==='-n'||_0x5493e6[_0x3cd54b(0xe2)](_0x3cd54b(0xc3))),_0x21b17f=[..._0xe2496f];if(!_0x4a2c78){const _0x4b573b=_0x3cd54b(0x131);_0x21b17f[_0x3cd54b(0x142)](process[_0x3cd54b(0xbc)]===_0x3cd54b(0x113)?'\x22'+_0x4b573b+'\x22':_0x4b573b);}!_0x4eb5f0&&(_0x4a2c78?_0x21b17f['push']('-50'):_0x21b17f[_0x3cd54b(0x142)](_0x3cd54b(0x13a)));const _0x5ec799=_0x11e8c1['some'](_0x3fb891=>_0x3fb891==='--merges'||_0x3fb891==='--no-merges'||_0x3fb891[_0x3cd54b(0xe2)](_0x3cd54b(0x112)));return!_0x5ec799&&!_0x4eb5f0&&_0x21b17f[_0x3cd54b(0x142)](_0x3cd54b(0x100)),{'cmd':_0x50a76d,'args':_0x21b17f};}}}return{'cmd':_0x50a76d,'args':_0xe2496f};}function isMcpServerExecution(_0x54861c,_0x67963){const _0x3ca775=a0_0x58f592,_0x2af185=_0x54861c[_0x3ca775(0xe9)](),_0x4b384b=_0x67963[_0x3ca775(0xc9)]('\x20')[_0x3ca775(0xe9)]();if(_0x2af185[_0x3ca775(0xbb)](_0x3ca775(0x126))&&(_0x2af185[_0x3ca775(0xbb)](_0x3ca775(0xb3))||_0x2af185[_0x3ca775(0xbb)](_0x3ca775(0xa9))))return!![];if(_0x2af185===_0x3ca775(0xf1)||_0x2af185===_0x3ca775(0x10f)||_0x2af185===_0x3ca775(0x139)||_0x2af185===_0x3ca775(0xb1)||_0x2af185==='pnpm'||_0x2af185===_0x3ca775(0xfa)){if(_0x4b384b[_0x3ca775(0xbb)]('@modelcontextprotocol/')||_0x4b384b[_0x3ca775(0xbb)](_0x3ca775(0x110))||_0x4b384b[_0x3ca775(0xbb)](_0x3ca775(0x107))||_0x4b384b[_0x3ca775(0xbb)]('server-mcp'))return!![];}if(_0x67963[_0x3ca775(0xb6)](_0x24e973=>{const _0x5506e6=_0x3ca775,_0x12779a=_0x24e973['toLowerCase']();return _0x12779a[_0x5506e6(0xbb)](_0x5506e6(0x107))||_0x12779a[_0x5506e6(0xbb)](_0x5506e6(0x11b))||_0x12779a[_0x5506e6(0xbb)](_0x5506e6(0xc0))||_0x12779a===_0x5506e6(0xf7)||_0x12779a===_0x5506e6(0x126);}))return!![];return![];}async function runProxy(_0x2fca72){const _0x15caa5=a0_0x58f592;if(_0x2fca72[_0x15caa5(0xdb)]===0x0){program['help']();return;}const _0x431bf0=_0x2fca72[0x0],_0x59f496=_0x2fca72['slice'](0x1),_0x834d1a=_0x2fca72[_0x15caa5(0xc9)]('\x20');if(isDisabled()){const _0x32a286=await(0x0,executor_1[_0x15caa5(0x10a)])(_0x431bf0,_0x59f496);process[_0x15caa5(0xc4)]['write'](_0x32a286[_0x15caa5(0xc4)]),process[_0x15caa5(0x12d)][_0x15caa5(0xd8)](_0x32a286['stderr']),process['exit'](_0x32a286['exitCode']);}if(isMcpServerExecution(_0x431bf0,_0x59f496)){console[_0x15caa5(0xba)](_0x15caa5(0x13d));const {runMcpProxy:_0x133f8f}=await Promise[_0x15caa5(0xfb)]()[_0x15caa5(0xe5)](()=>__importStar(require(_0x15caa5(0xcf))));_0x133f8f(_0x431bf0,_0x59f496);return;}const _0x34f957=adjustCommandArgs(_0x431bf0,_0x59f496),_0x420b86=await(0x0,executor_1[_0x15caa5(0x10a)])(_0x34f957['cmd'],_0x34f957['args']),_0x5bd4a2=(0x0,filters_1['compressOutput'])(_0x834d1a,_0x420b86[_0x15caa5(0xc4)],_0x420b86[_0x15caa5(0x12d)],tracker_1[_0x15caa5(0xef)][_0x15caa5(0x132)]()[_0x15caa5(0xca)]),_0x237e66=_0x420b86[_0x15caa5(0xc4)]+(_0x420b86[_0x15caa5(0x12d)][_0x15caa5(0xdc)]()[_0x15caa5(0xdb)]>0x0?'\x0a'+_0x420b86[_0x15caa5(0x12d)]:'');tracker_1[_0x15caa5(0xef)]['logExecution'](_0x834d1a,_0x237e66,_0x5bd4a2,_0x420b86[_0x15caa5(0xe8)]),_0x420b86[_0x15caa5(0xe8)]===0x0?process[_0x15caa5(0xc4)][_0x15caa5(0xd8)](_0x5bd4a2+'\x0a'):(process[_0x15caa5(0xc4)]['write'](_0x5bd4a2+'\x0a'),_0x420b86[_0x15caa5(0x12d)][_0x15caa5(0xdc)]()[_0x15caa5(0xdb)]>0x0&&!_0x5bd4a2[_0x15caa5(0xbb)](_0x420b86['stderr']['trim']())&&process[_0x15caa5(0x12d)][_0x15caa5(0xd8)](_0x420b86[_0x15caa5(0x12d)]+'\x0a')),process[_0x15caa5(0xac)](_0x420b86['exitCode']);}program[a0_0x58f592(0x134)](a0_0x58f592(0xdc))[a0_0x58f592(0x10c)](a0_0x58f592(0xdd))[a0_0x58f592(0x103)](a0_0x58f592(0x11a)),program[a0_0x58f592(0x144)]('ui')[a0_0x58f592(0xe4)](a0_0x58f592(0xcd))['description'](a0_0x58f592(0xce))[a0_0x58f592(0x12b)](a0_0x58f592(0xf2),a0_0x58f592(0xcc),'4000')[a0_0x58f592(0xbe)](_0xa9cca4=>{const _0x2d7806=a0_0x58f592,_0x2e6dae=parseInt(_0xa9cca4['port'],0xa);(0x0,dashboard_1[_0x2d7806(0xc5)])(_0x2e6dae);}),program[a0_0x58f592(0x144)]('stats')[a0_0x58f592(0x10c)]('Show\x20token\x20and\x20cost\x20savings\x20summary')['option'](a0_0x58f592(0xda),a0_0x58f592(0x123),'claude-3-5-sonnet')[a0_0x58f592(0xbe)](_0x3350f0=>{const _0x1179d1=a0_0x58f592,_0x1cd473=tracker_1['tracker'][_0x1179d1(0xee)](_0x3350f0['model']);console[_0x1179d1(0xbd)](_0x1179d1(0xf5)),console[_0x1179d1(0xbd)]('\x20\x20\x20\x20\x20\x20\x20TRIMPROMPT.AI\x20SAVINGS\x20SUMMARY\x20\x20\x20\x20\x20\x20\x20\x20'),console[_0x1179d1(0xbd)]('============================================='),console['log'](_0x1179d1(0x12f)+_0x1cd473[_0x1179d1(0x135)]),console[_0x1179d1(0xbd)](_0x1179d1(0xd1)+_0x1cd473[_0x1179d1(0x129)][_0x1179d1(0xb0)]()),console['log'](_0x1179d1(0x10e)+_0x1cd473[_0x1179d1(0x13e)][_0x1179d1(0xb0)]()),console[_0x1179d1(0xbd)](_0x1179d1(0xc1)+_0x1cd473[_0x1179d1(0xe1)][_0x1179d1(0xb0)]()),console[_0x1179d1(0xbd)]('Reduction\x20Rate:\x20\x20\x20\x20'+_0x1cd473[_0x1179d1(0x11d)]+'%'),console[_0x1179d1(0xbd)]('Estimated\x20Cost:\x20\x20\x20\x20$'+_0x1cd473[_0x1179d1(0xc7)]['toFixed'](0x4)+_0x1179d1(0x102)),console['log'](_0x1179d1(0xdf)+_0x1cd473[_0x1179d1(0xf6)][_0x1179d1(0xf4)](0x4)+'\x20(after\x20Shave)'),console[_0x1179d1(0xbd)](_0x1179d1(0x143)),console['log']('Money\x20Saved:\x20\x20\x20\x20\x20\x20\x20$'+_0x1cd473[_0x1179d1(0xe6)][_0x1179d1(0xf4)](0x4)+'\x20USD'),console[_0x1179d1(0xbd)](_0x1179d1(0x12a));}),program[a0_0x58f592(0x144)](a0_0x58f592(0x10b))[a0_0x58f592(0x10c)](a0_0x58f592(0xd9))[a0_0x58f592(0x115)]('<action>',a0_0x58f592(0x138))[a0_0x58f592(0x115)](a0_0x58f592(0x124),a0_0x58f592(0xb2))[a0_0x58f592(0x115)](a0_0x58f592(0xab),a0_0x58f592(0xfd))['action']((_0x4322e5,_0x4607df,_0x459817)=>{const _0x43a9d8=a0_0x58f592;if(_0x4322e5===_0x43a9d8(0xaa)){const _0x427019=tracker_1['tracker'][_0x43a9d8(0x132)]();console[_0x43a9d8(0xbd)](_0x4607df+':\x20'+_0x427019[_0x4607df]);}else{if(_0x4322e5===_0x43a9d8(0xae)){_0x459817===undefined&&(console['error'](_0x43a9d8(0x108)),process['exit'](0x1));let _0x3fe7fb=_0x459817;if(_0x459817===_0x43a9d8(0xff))_0x3fe7fb=!![];if(_0x459817===_0x43a9d8(0xde))_0x3fe7fb=![];if(/^\d+$/[_0x43a9d8(0x133)](_0x459817))_0x3fe7fb=parseInt(_0x459817,0xa);tracker_1['tracker'][_0x43a9d8(0xd7)](_0x4607df,_0x3fe7fb),console[_0x43a9d8(0xbd)](_0x43a9d8(0x121)+_0x4607df+_0x43a9d8(0x118)+_0x459817);}else console['error']('Error:\x20Action\x20must\x20be\x20get\x20or\x20set'),process['exit'](0x1);}}),program[a0_0x58f592(0x144)]('shims')[a0_0x58f592(0x10c)](a0_0x58f592(0x120))['argument'](a0_0x58f592(0x140),a0_0x58f592(0xd2))[a0_0x58f592(0xbe)](_0xc88741=>{const _0x2f5212=a0_0x58f592;if(_0xc88741==='install'){const _0x96f05c=(0x0,shims_1['installShims'])();console[_0x2f5212(0xbd)](_0x96f05c[_0x2f5212(0x13b)]);}else{if(_0xc88741==='uninstall'){const _0x307007=(0x0,shims_1[_0x2f5212(0xd5)])();console[_0x2f5212(0xbd)](_0x307007[_0x2f5212(0x13b)]);}else console[_0x2f5212(0xba)](_0x2f5212(0x12c)),process[_0x2f5212(0xac)](0x1);}}),program[a0_0x58f592(0x144)](a0_0x58f592(0xd3))[a0_0x58f592(0x10c)](a0_0x58f592(0xbf))['argument'](a0_0x58f592(0x119),a0_0x58f592(0xc2))[a0_0x58f592(0xbe)](_0x4229bd=>{const _0x6745f5=a0_0x58f592;if(isDisabled()){console['log'](_0x4229bd);return;}const _0x852956=(0x0,filters_1[_0x6745f5(0xb5)])(_0x4229bd);console[_0x6745f5(0xbd)](_0x852956);}),program['command'](a0_0x58f592(0xf7))[a0_0x58f592(0xe4)](a0_0x58f592(0x126))[a0_0x58f592(0x10c)](a0_0x58f592(0xf0))[a0_0x58f592(0x115)](a0_0x58f592(0x13c),a0_0x58f592(0x117))['argument'](a0_0x58f592(0x137),a0_0x58f592(0x125))[a0_0x58f592(0xbe)](async(_0x4e7174,_0x393887)=>{const _0x487875=a0_0x58f592,{runMcpProxy:_0x29cd62}=await Promise[_0x487875(0xfb)]()[_0x487875(0xe5)](()=>__importStar(require(_0x487875(0xcf))));_0x29cd62(_0x4e7174,_0x393887);});const args=process[a0_0x58f592(0xea)][a0_0x58f592(0x10d)](0x2),firstArg=args[0x0],subcommands=['ui','dashboard','stats','config','shims','rewrite',a0_0x58f592(0xf7),a0_0x58f592(0x126),a0_0x58f592(0xb8),a0_0x58f592(0xaf),'-h','version',a0_0x58f592(0xec),'-v'];function a0_0x38e0(_0x5f299c,_0x1d1d1f){const _0x199064=a0_0x1990();return a0_0x38e0=function(_0x38e026,_0x8720fe){_0x38e026=_0x38e026-0xa9;let _0x216478=_0x199064[_0x38e026];return _0x216478;},a0_0x38e0(_0x5f299c,_0x1d1d1f);}function a0_0x1990(){const _0x1725d2=['./filters','--min-parents','win32','__createBinding','argument','-sb','Command\x20to\x20launch\x20the\x20target\x20MCP\x20server','\x20=\x20','<commandLine>','1.0.0','server-mcp','defineProperty','savings_percentage','./dashboard','--format','Install\x20or\x20uninstall\x20system\x20command\x20shims','Config\x20set\x20','1028712yBeOIM','Select\x20pricing\x20model\x20(e.g.\x20claude-3-5-sonnet,\x20gpt-4o)','<key>','Arguments\x20for\x20the\x20target\x20MCP\x20server','mcp','TRIMPROMPT_DISABLED','2010rjlmQl','total_raw_tokens','=============================================\x0a','option','Error:\x20Action\x20must\x20be\x20install\x20or\x20uninstall','stderr','514676DMEQxD','Model\x20Context:\x20\x20\x20\x20\x20','./shims','--pretty=format:%h\x20%s\x20(%ar)\x20(%an)%n%b%n---END---','getConfig','test','name','model_name','commander','[server-args...]','get\x20or\x20set','bun','-10','message','<server-command>','[TrimPrompt]\x20Autodetected\x20MCP\x20server\x20execution.\x20Activating\x20real-time\x20JSON-RPC\x20proxy...','total_compressed_tokens','git','<action>','4XHsEHS','push','---------------------------------------------','command','proxy','get','[value]','exit','30811RbTWqy','set','--help','toLocaleString','npm','config\x20parameter\x20name','server','__setModuleDefault','rewriteCommand','some','prototype','help','3343395GidIlR','error','includes','platform','log','action','Check\x20a\x20command\x20line\x20and\x20return\x20the\x20optimized\x20command\x20line','@modelcontextprotocol/','Tokens\x20Saved:\x20\x20\x20\x20\x20\x20','Command\x20line\x20to\x20evaluate','--max-count','stdout','startDashboard','hasOwnProperty','raw_cost_usd','default','join','redaction_enabled','getOwnPropertyNames','Port\x20to\x20run\x20the\x20dashboard\x20on','dashboard','Start\x20the\x20local\x20developer\x20dashboard','./mcp','3879688adPnxX','Raw\x20Tokens:\x20\x20\x20\x20\x20\x20\x20\x20','install\x20or\x20uninstall','rewrite','1ECgMVw','uninstallShims','status','setConfig','write','Manage\x20local\x20configuration\x20parameters','-m,\x20--model\x20<string>','length','trim','TrimPrompt.ai\x20-\x20Reduce\x20LLM\x20token\x20consumption\x20by\x2060-90%','false','Actual\x20Cost:\x20\x20\x20\x20\x20\x20\x20$','3116071DWtwAW','total_tokens_saved','startsWith','--branch','alias','then','money_saved_usd','every','exitCode','toLowerCase','argv','./tracker','--version','2530197ZvPXmV','getStatsSummary','tracker','Proxy\x20wrapper\x20for\x20Model\x20Context\x20Protocol\x20(MCP)\x20servers\x20to\x20compact\x20tool\x20outputs','npx','-p,\x20--port\x20<number>','yadm','toFixed','\x0a=============================================','compressed_cost_usd','mcp-proxy','Command','__esModule','yarn','resolve','./executor','value\x20to\x20set','call','true','--no-merges','writable','\x20(before\x20Shave)','version','getOwnPropertyDescriptor','--pretty','-bs','mcp-server','Error:\x20Value\x20required\x20for\x20set\x20action','6TCXVjl','executeCommand','config','description','slice','Compressed:\x20\x20\x20\x20\x20\x20\x20\x20','node','modelcontextprotocol'];a0_0x1990=function(){return _0x1725d2;};return a0_0x1990();}firstArg&&!subcommands['includes'](firstArg)?runProxy(args)['catch'](_0x3db5dc=>{const _0x1e1c2c=a0_0x58f592;console[_0x1e1c2c(0xba)]('[TrimPrompt]\x20Fatal\x20Proxy\x20Error:\x20'+_0x3db5dc[_0x1e1c2c(0x13b)]),process['exit'](0x1);}):program['parse'](process['argv']);
2
+ 'use strict';function a0_0x5705(_0x4fbccf,_0x585d22){const _0x15599b=a0_0x1559();return a0_0x5705=function(_0x5705e7,_0x2fc59e){_0x5705e7=_0x5705e7-0x122;let _0x252679=_0x15599b[_0x5705e7];return _0x252679;},a0_0x5705(_0x4fbccf,_0x585d22);}const a0_0x5b3a11=a0_0x5705;(function(_0x25b11f,_0x5f7814){const _0x390cea=a0_0x5705,_0x3999c5=_0x25b11f();while(!![]){try{const _0x34eb40=parseInt(_0x390cea(0x17f))/0x1*(parseInt(_0x390cea(0x1a3))/0x2)+-parseInt(_0x390cea(0x135))/0x3+parseInt(_0x390cea(0x1a4))/0x4*(-parseInt(_0x390cea(0x19e))/0x5)+-parseInt(_0x390cea(0x1b3))/0x6*(parseInt(_0x390cea(0x177))/0x7)+-parseInt(_0x390cea(0x169))/0x8*(-parseInt(_0x390cea(0x15e))/0x9)+parseInt(_0x390cea(0x1aa))/0xa+parseInt(_0x390cea(0x18a))/0xb*(parseInt(_0x390cea(0x15c))/0xc);if(_0x34eb40===_0x5f7814)break;else _0x3999c5['push'](_0x3999c5['shift']());}catch(_0x4ec9bb){_0x3999c5['push'](_0x3999c5['shift']());}}}(a0_0x1559,0x7f195));var __createBinding=this&&this[a0_0x5b3a11(0x149)]||(Object[a0_0x5b3a11(0x17d)]?function(_0x5309ba,_0x1cbec3,_0x219cd4,_0x3596c9){const _0x5c222d=a0_0x5b3a11;if(_0x3596c9===undefined)_0x3596c9=_0x219cd4;var _0x128129=Object[_0x5c222d(0x144)](_0x1cbec3,_0x219cd4);(!_0x128129||(_0x5c222d(0x136)in _0x128129?!_0x1cbec3[_0x5c222d(0x197)]:_0x128129[_0x5c222d(0x12d)]||_0x128129[_0x5c222d(0x176)]))&&(_0x128129={'enumerable':!![],'get':function(){return _0x1cbec3[_0x219cd4];}}),Object[_0x5c222d(0x1ac)](_0x5309ba,_0x3596c9,_0x128129);}:function(_0xadacc7,_0x3e40e8,_0x1cba5,_0x3dd2ea){if(_0x3dd2ea===undefined)_0x3dd2ea=_0x1cba5;_0xadacc7[_0x3dd2ea]=_0x3e40e8[_0x1cba5];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a0_0x5b3a11(0x17d)]?function(_0x3a9d95,_0x5049ce){const _0x3c984d=a0_0x5b3a11;Object[_0x3c984d(0x1ac)](_0x3a9d95,_0x3c984d(0x1ae),{'enumerable':!![],'value':_0x5049ce});}:function(_0x146db9,_0x31e895){const _0x16b9e6=a0_0x5b3a11;_0x146db9[_0x16b9e6(0x1ae)]=_0x31e895;}),__importStar=this&&this[a0_0x5b3a11(0x125)]||(function(){var _0x5a4f51=function(_0x4916db){return _0x5a4f51=Object['getOwnPropertyNames']||function(_0x2f71b9){const _0x241d2f=a0_0x5705;var _0x246c3d=[];for(var _0x43c584 in _0x2f71b9)if(Object[_0x241d2f(0x199)]['hasOwnProperty'][_0x241d2f(0x133)](_0x2f71b9,_0x43c584))_0x246c3d[_0x246c3d[_0x241d2f(0x16e)]]=_0x43c584;return _0x246c3d;},_0x5a4f51(_0x4916db);};return function(_0x1f54d4){const _0x313b7e=a0_0x5705;if(_0x1f54d4&&_0x1f54d4['__esModule'])return _0x1f54d4;var _0x4dc53c={};if(_0x1f54d4!=null){for(var _0x4fd74a=_0x5a4f51(_0x1f54d4),_0x4b8b88=0x0;_0x4b8b88<_0x4fd74a[_0x313b7e(0x16e)];_0x4b8b88++)if(_0x4fd74a[_0x4b8b88]!==_0x313b7e(0x1ae))__createBinding(_0x4dc53c,_0x1f54d4,_0x4fd74a[_0x4b8b88]);}return __setModuleDefault(_0x4dc53c,_0x1f54d4),_0x4dc53c;};}());Object['defineProperty'](exports,a0_0x5b3a11(0x197),{'value':!![]});const commander_1=require(a0_0x5b3a11(0x1c0)),executor_1=require('./executor'),filters_1=require(a0_0x5b3a11(0x142)),tracker_1=require('./tracker'),cache_1=require('./cache'),shims_1=require('./shims'),dashboard_1=require(a0_0x5b3a11(0x1b8)),program=new commander_1[(a0_0x5b3a11(0x124))]();function isDisabled(){const _0x61f18a=a0_0x5b3a11;return process[_0x61f18a(0x13b)]['TRIMPROMPT_DISABLED']==='1';}function adjustCommandArgs(_0x1de0d9,_0x15befa){const _0x3a952e=a0_0x5b3a11,_0x551211=_0x1de0d9[_0x3a952e(0x156)]();if(_0x551211===_0x3a952e(0x198)||_0x551211===_0x3a952e(0x129)){const _0x2e80da=_0x15befa[0x0];if(_0x2e80da==='status'){const _0x130721=_0x15befa[_0x3a952e(0x16d)](0x1),_0x299bd1=_0x130721[_0x3a952e(0x16e)]===0x0||_0x130721[_0x3a952e(0x1bf)](_0x36d043=>{const _0x3f0e06=_0x3a952e;return _0x36d043==='-b'||_0x36d043===_0x3f0e06(0x14c)||_0x36d043===_0x3f0e06(0x18e)||_0x36d043===_0x3f0e06(0x1a1)||_0x36d043==='-s'||_0x36d043===_0x3f0e06(0x1c1);});if(_0x299bd1)return{'cmd':_0x1de0d9,'args':['status',_0x3a952e(0x13d),'-b']};}else{if(_0x2e80da==='log'){const _0x2830d4=_0x15befa[_0x3a952e(0x16d)](0x1),_0x24c745=_0x2830d4['some'](_0x40cedb=>_0x40cedb['startsWith'](_0x3a952e(0x194))||_0x40cedb[_0x3a952e(0x196)](_0x3a952e(0x131))||_0x40cedb[_0x3a952e(0x196)](_0x3a952e(0x179))),_0x3b8cf9=_0x2830d4['some'](_0x4a1b0c=>_0x4a1b0c[_0x3a952e(0x196)]('-')&&/^\d+$/[_0x3a952e(0x184)](_0x4a1b0c[_0x3a952e(0x16d)](0x1))||_0x4a1b0c==='-n'||_0x4a1b0c['startsWith']('--max-count')),_0x67eff8=[..._0x15befa];if(!_0x24c745){const _0x13fc50=_0x3a952e(0x14e);_0x67eff8[_0x3a952e(0x18c)](process[_0x3a952e(0x164)]===_0x3a952e(0x159)?'\x22'+_0x13fc50+'\x22':_0x13fc50);}!_0x3b8cf9&&(_0x24c745?_0x67eff8[_0x3a952e(0x18c)](_0x3a952e(0x1af)):_0x67eff8[_0x3a952e(0x18c)](_0x3a952e(0x148)));const _0x5e00e2=_0x2830d4['some'](_0x4b8116=>_0x4b8116===_0x3a952e(0x150)||_0x4b8116===_0x3a952e(0x16c)||_0x4b8116['startsWith']('--min-parents'));return!_0x5e00e2&&!_0x3b8cf9&&_0x67eff8[_0x3a952e(0x18c)]('--no-merges'),{'cmd':_0x1de0d9,'args':_0x67eff8};}}}return{'cmd':_0x1de0d9,'args':_0x15befa};}function isMcpServerExecution(_0x4c969f,_0x55d0a9){const _0x3cf796=a0_0x5b3a11,_0x2fb1c3=_0x4c969f[_0x3cf796(0x156)](),_0x3b7644=_0x55d0a9['join']('\x20')[_0x3cf796(0x156)]();if(_0x2fb1c3[_0x3cf796(0x15d)]('mcp')&&(_0x2fb1c3[_0x3cf796(0x15d)](_0x3cf796(0x143))||_0x2fb1c3[_0x3cf796(0x15d)](_0x3cf796(0x14f))))return!![];if(_0x2fb1c3===_0x3cf796(0x1bb)||_0x2fb1c3===_0x3cf796(0x145)||_0x2fb1c3===_0x3cf796(0x1bd)||_0x2fb1c3==='npm'||_0x2fb1c3===_0x3cf796(0x123)||_0x2fb1c3===_0x3cf796(0x13e)){if(_0x3b7644['includes'](_0x3cf796(0x134))||_0x3b7644[_0x3cf796(0x15d)]('modelcontextprotocol')||_0x3b7644[_0x3cf796(0x15d)](_0x3cf796(0x1a0))||_0x3b7644[_0x3cf796(0x15d)]('server-mcp'))return!![];}if(_0x55d0a9[_0x3cf796(0x12e)](_0x3e660e=>{const _0x3992e9=_0x3cf796,_0xbf4384=_0x3e660e[_0x3992e9(0x156)]();return _0xbf4384[_0x3992e9(0x15d)](_0x3992e9(0x1a0))||_0xbf4384[_0x3992e9(0x15d)](_0x3992e9(0x195))||_0xbf4384[_0x3992e9(0x15d)]('@modelcontextprotocol/')||_0xbf4384===_0x3992e9(0x158)||_0xbf4384===_0x3992e9(0x18b);}))return!![];return![];}async function runProxy(_0x136cf9){const _0x4e87c9=a0_0x5b3a11;if(_0x136cf9[_0x4e87c9(0x16e)]===0x0){program[_0x4e87c9(0x1a8)]();return;}const _0x5a2fd7=_0x136cf9[0x0],_0x2efc41=_0x136cf9[_0x4e87c9(0x16d)](0x1),_0x31bc9c=_0x136cf9[_0x4e87c9(0x146)]('\x20');if(isDisabled()){const _0x74a1f6=await(0x0,executor_1[_0x4e87c9(0x190)])(_0x5a2fd7,_0x2efc41);process['stdout']['write'](_0x74a1f6['stdout']),process[_0x4e87c9(0x162)][_0x4e87c9(0x13c)](_0x74a1f6[_0x4e87c9(0x162)]),process[_0x4e87c9(0x1a2)](_0x74a1f6['exitCode']);}if(isMcpServerExecution(_0x5a2fd7,_0x2efc41)){console[_0x4e87c9(0x1ad)](_0x4e87c9(0x170));const {runMcpProxy:_0x351df9}=await Promise['resolve']()[_0x4e87c9(0x192)](()=>__importStar(require(_0x4e87c9(0x15f))));_0x351df9(_0x5a2fd7,_0x2efc41);return;}const _0x8d7b9e=adjustCommandArgs(_0x5a2fd7,_0x2efc41),_0x5df092=await(0x0,executor_1[_0x4e87c9(0x190)])(_0x8d7b9e['cmd'],_0x8d7b9e[_0x4e87c9(0x1b5)]),_0x3ef4cf=(0x0,filters_1[_0x4e87c9(0x12f)])(_0x31bc9c,_0x5df092[_0x4e87c9(0x185)],_0x5df092[_0x4e87c9(0x162)],tracker_1['tracker'][_0x4e87c9(0x128)]()[_0x4e87c9(0x16f)]),_0x5b8373=_0x5df092['exitCode']===0x0?(0x0,cache_1[_0x4e87c9(0x126)])(_0x31bc9c,_0x3ef4cf):null,_0x2306b9=_0x5b8373||_0x3ef4cf,_0x301a9f=_0x5df092[_0x4e87c9(0x185)]+(_0x5df092[_0x4e87c9(0x162)][_0x4e87c9(0x193)]()['length']>0x0?'\x0a'+_0x5df092[_0x4e87c9(0x162)]:'');tracker_1[_0x4e87c9(0x17c)]['logExecution'](_0x31bc9c,_0x301a9f,_0x2306b9,_0x5df092[_0x4e87c9(0x187)]),_0x5df092['exitCode']===0x0?process[_0x4e87c9(0x185)]['write'](_0x2306b9+'\x0a'):(process[_0x4e87c9(0x185)][_0x4e87c9(0x13c)](_0x3ef4cf+'\x0a'),_0x5df092[_0x4e87c9(0x162)]['trim']()[_0x4e87c9(0x16e)]>0x0&&!_0x3ef4cf[_0x4e87c9(0x15d)](_0x5df092[_0x4e87c9(0x162)][_0x4e87c9(0x193)]())&&process[_0x4e87c9(0x162)]['write'](_0x5df092['stderr']+'\x0a')),process[_0x4e87c9(0x1a2)](_0x5df092[_0x4e87c9(0x187)]);}program[a0_0x5b3a11(0x175)]('trim')[a0_0x5b3a11(0x137)](a0_0x5b3a11(0x171))['version'](a0_0x5b3a11(0x157)),program['command']('ui')[a0_0x5b3a11(0x1b6)](a0_0x5b3a11(0x188))[a0_0x5b3a11(0x137)]('Start\x20the\x20local\x20developer\x20dashboard')['option'](a0_0x5b3a11(0x1b9),'Port\x20to\x20run\x20the\x20dashboard\x20on','4000')[a0_0x5b3a11(0x1bc)](_0x4a2154=>{const _0x1b9bf4=a0_0x5b3a11,_0x4ae037=parseInt(_0x4a2154[_0x1b9bf4(0x161)],0xa);(0x0,dashboard_1[_0x1b9bf4(0x19a)])(_0x4ae037);}),program[a0_0x5b3a11(0x1b1)]('stats')[a0_0x5b3a11(0x137)](a0_0x5b3a11(0x130))[a0_0x5b3a11(0x140)](a0_0x5b3a11(0x15a),'Select\x20pricing\x20model\x20(e.g.\x20claude-3-5-sonnet,\x20gpt-4o)','claude-3-5-sonnet')[a0_0x5b3a11(0x1bc)](_0xf524bc=>{const _0xdd04f3=a0_0x5b3a11,_0x5040e6=tracker_1[_0xdd04f3(0x17c)][_0xdd04f3(0x168)](_0xf524bc[_0xdd04f3(0x17b)]);console[_0xdd04f3(0x1a6)](_0xdd04f3(0x1ba)),console[_0xdd04f3(0x1a6)](_0xdd04f3(0x166)),console[_0xdd04f3(0x1a6)](_0xdd04f3(0x13a)),console[_0xdd04f3(0x1a6)](_0xdd04f3(0x132)+_0x5040e6[_0xdd04f3(0x1a7)]),console[_0xdd04f3(0x1a6)](_0xdd04f3(0x1a5)+_0x5040e6[_0xdd04f3(0x12b)][_0xdd04f3(0x12c)]()),console['log'](_0xdd04f3(0x13f)+_0x5040e6[_0xdd04f3(0x17e)][_0xdd04f3(0x12c)]()),console[_0xdd04f3(0x1a6)]('Tokens\x20Saved:\x20\x20\x20\x20\x20\x20'+_0x5040e6[_0xdd04f3(0x163)][_0xdd04f3(0x12c)]()),console['log']('Reduction\x20Rate:\x20\x20\x20\x20'+_0x5040e6[_0xdd04f3(0x1b4)]+'%'),console[_0xdd04f3(0x1a6)](_0xdd04f3(0x19b)+_0x5040e6['raw_cost_usd'][_0xdd04f3(0x14a)](0x4)+_0xdd04f3(0x14d)),console['log'](_0xdd04f3(0x151)+_0x5040e6[_0xdd04f3(0x141)]['toFixed'](0x4)+'\x20(after\x20Shave)'),console[_0xdd04f3(0x1a6)]('---------------------------------------------'),console[_0xdd04f3(0x1a6)](_0xdd04f3(0x174)+_0x5040e6[_0xdd04f3(0x1b2)][_0xdd04f3(0x14a)](0x4)+_0xdd04f3(0x178)),console['log']('=============================================\x0a');}),program['command']('config')[a0_0x5b3a11(0x137)](a0_0x5b3a11(0x167))['argument'](a0_0x5b3a11(0x18f),a0_0x5b3a11(0x165))[a0_0x5b3a11(0x1b7)](a0_0x5b3a11(0x1ab),a0_0x5b3a11(0x19f))[a0_0x5b3a11(0x1b7)](a0_0x5b3a11(0x180),a0_0x5b3a11(0x152))['action']((_0x4b6dbe,_0x41c773,_0x11a474)=>{const _0x12f316=a0_0x5b3a11;if(_0x4b6dbe===_0x12f316(0x136)){const _0x3b6788=tracker_1[_0x12f316(0x17c)]['getConfig']();console[_0x12f316(0x1a6)](_0x41c773+':\x20'+_0x3b6788[_0x41c773]);}else{if(_0x4b6dbe==='set'){_0x11a474===undefined&&(console[_0x12f316(0x1ad)](_0x12f316(0x17a)),process[_0x12f316(0x1a2)](0x1));let _0x3e7a39=_0x11a474;if(_0x11a474===_0x12f316(0x172))_0x3e7a39=!![];if(_0x11a474===_0x12f316(0x138))_0x3e7a39=![];if(/^\d+$/['test'](_0x11a474))_0x3e7a39=parseInt(_0x11a474,0xa);tracker_1[_0x12f316(0x17c)][_0x12f316(0x183)](_0x41c773,_0x3e7a39),console['log'](_0x12f316(0x191)+_0x41c773+_0x12f316(0x12a)+_0x11a474);}else console['error'](_0x12f316(0x160)),process[_0x12f316(0x1a2)](0x1);}}),program['command'](a0_0x5b3a11(0x18d))[a0_0x5b3a11(0x137)]('Install\x20or\x20uninstall\x20system\x20command\x20shims')[a0_0x5b3a11(0x1b7)](a0_0x5b3a11(0x18f),a0_0x5b3a11(0x186))[a0_0x5b3a11(0x1bc)](_0x54ca12=>{const _0xd17569=a0_0x5b3a11;if(_0x54ca12===_0xd17569(0x16b)){const _0x19350a=(0x0,shims_1[_0xd17569(0x155)])();console[_0xd17569(0x1a6)](_0x19350a[_0xd17569(0x127)]);}else{if(_0x54ca12===_0xd17569(0x1a9)){const _0x1e73c8=(0x0,shims_1['uninstallShims'])();console['log'](_0x1e73c8[_0xd17569(0x127)]);}else console[_0xd17569(0x1ad)](_0xd17569(0x19d)),process[_0xd17569(0x1a2)](0x1);}}),program[a0_0x5b3a11(0x1b1)](a0_0x5b3a11(0x1b0))['description'](a0_0x5b3a11(0x122))[a0_0x5b3a11(0x1b7)](a0_0x5b3a11(0x154),a0_0x5b3a11(0x147))[a0_0x5b3a11(0x1bc)](_0x331127=>{const _0x2b96ce=a0_0x5b3a11;if(isDisabled()){console[_0x2b96ce(0x1a6)](_0x331127);return;}const _0x175580=(0x0,filters_1[_0x2b96ce(0x1be)])(_0x331127);console[_0x2b96ce(0x1a6)](_0x175580);}),program[a0_0x5b3a11(0x1b1)](a0_0x5b3a11(0x158))[a0_0x5b3a11(0x1b6)](a0_0x5b3a11(0x18b))['description']('Proxy\x20wrapper\x20for\x20Model\x20Context\x20Protocol\x20(MCP)\x20servers\x20to\x20compact\x20tool\x20outputs')[a0_0x5b3a11(0x1b7)](a0_0x5b3a11(0x14b),a0_0x5b3a11(0x173))[a0_0x5b3a11(0x1b7)](a0_0x5b3a11(0x16a),a0_0x5b3a11(0x182))['action'](async(_0x839fac,_0x5961f8)=>{const _0x348224=a0_0x5b3a11,{runMcpProxy:_0x4ae6d3}=await Promise[_0x348224(0x181)]()[_0x348224(0x192)](()=>__importStar(require(_0x348224(0x15f))));_0x4ae6d3(_0x839fac,_0x5961f8);});function a0_0x1559(){const _0x46b27e=['env','write','--porcelain','yarn','Compressed:\x20\x20\x20\x20\x20\x20\x20\x20','option','compressed_cost_usd','./filters','server','getOwnPropertyDescriptor','node','join','Command\x20line\x20to\x20evaluate','-10','__createBinding','toFixed','<server-command>','--branch','\x20(before\x20Shave)','--pretty=format:%h\x20%s\x20(%ar)\x20(%an)%n%b%n---END---','proxy','--merges','Actual\x20Cost:\x20\x20\x20\x20\x20\x20\x20$','value\x20to\x20set','version','<commandLine>','installShims','toLowerCase','1.0.0','mcp-proxy','win32','-m,\x20--model\x20<string>','--version','252VYZUrJ','includes','2609037VkHWEe','./mcp','Error:\x20Action\x20must\x20be\x20get\x20or\x20set','port','stderr','total_tokens_saved','platform','get\x20or\x20set','\x20\x20\x20\x20\x20\x20\x20TRIMPROMPT.AI\x20SAVINGS\x20SUMMARY\x20\x20\x20\x20\x20\x20\x20\x20','Manage\x20local\x20configuration\x20parameters','getStatsSummary','24auUrYb','[server-args...]','install','--no-merges','slice','length','redaction_enabled','[TrimPrompt]\x20Autodetected\x20MCP\x20server\x20execution.\x20Activating\x20real-time\x20JSON-RPC\x20proxy...','TrimPrompt.ai\x20-\x20Reduce\x20LLM\x20token\x20consumption\x20by\x2060-90%','true','Command\x20to\x20launch\x20the\x20target\x20MCP\x20server','Money\x20Saved:\x20\x20\x20\x20\x20\x20\x20$','name','configurable','3154837ZVUAzj','\x20USD','--format','Error:\x20Value\x20required\x20for\x20set\x20action','model','tracker','create','total_compressed_tokens','111eQoeFR','[value]','resolve','Arguments\x20for\x20the\x20target\x20MCP\x20server','setConfig','test','stdout','install\x20or\x20uninstall','exitCode','dashboard','[TrimPrompt]\x20Fatal\x20Proxy\x20Error:\x20','155815YtgYei','mcp','push','shims','-sb','<action>','executeCommand','Config\x20set\x20','then','trim','--oneline','server-mcp','startsWith','__esModule','git','prototype','startDashboard','Estimated\x20Cost:\x20\x20\x20\x20$','stats','Error:\x20Action\x20must\x20be\x20install\x20or\x20uninstall','4915wEYFle','config\x20parameter\x20name','mcp-server','-bs','exit','8938yzPaWS','2276wuEVht','Raw\x20Tokens:\x20\x20\x20\x20\x20\x20\x20\x20','log','model_name','help','uninstall','8039460dogIIe','<key>','defineProperty','error','default','-50','rewrite','command','money_saved_usd','6eVRWhW','savings_percentage','args','alias','argument','./dashboard','-p,\x20--port\x20<number>','\x0a=============================================','npx','action','bun','rewriteCommand','every','commander','--short','Check\x20a\x20command\x20line\x20and\x20return\x20the\x20optimized\x20command\x20line','pnpm','Command','__importStar','dedup','message','getConfig','yadm','\x20=\x20','total_raw_tokens','toLocaleString','writable','some','compressOutput','Show\x20token\x20and\x20cost\x20savings\x20summary','--pretty','Model\x20Context:\x20\x20\x20\x20\x20','call','@modelcontextprotocol/','2809602otuFXK','get','description','false','argv','============================================='];a0_0x1559=function(){return _0x46b27e;};return a0_0x1559();}const args=process['argv']['slice'](0x2),firstArg=args[0x0],subcommands=['ui',a0_0x5b3a11(0x188),a0_0x5b3a11(0x19c),'config',a0_0x5b3a11(0x18d),a0_0x5b3a11(0x1b0),a0_0x5b3a11(0x158),a0_0x5b3a11(0x18b),a0_0x5b3a11(0x1a8),'--help','-h',a0_0x5b3a11(0x153),a0_0x5b3a11(0x15b),'-v'];firstArg&&!subcommands[a0_0x5b3a11(0x15d)](firstArg)?runProxy(args)['catch'](_0x3f7576=>{const _0x373886=a0_0x5b3a11;console['error'](_0x373886(0x189)+_0x3f7576['message']),process[_0x373886(0x1a2)](0x1);}):program['parse'](process[a0_0x5b3a11(0x139)]);
package/dashboard.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x12bc9b=a0_0x27ab;function a0_0x5d15(){const _0x2e5f2a=['1967528Ccgcqa','prototype','__esModule','20648tsdbeA','get','\x0a[TrimPrompt]\x20Dashboard\x20server\x20started\x20at:\x20','logs','6AZBbfq','[TrimPrompt]\x20Dashboard\x20error:\x20','Compressed\x20output\x20log\x20file\x20not\x20found.','join','utf8','getOwnPropertyNames','path','index.html','__importStar','933GYLhwA','Press\x20Ctrl+C\x20in\x20this\x20terminal\x20to\x20shut\x20down.','getOwnPropertyDescriptor','__setModuleDefault','Raw\x20output\x20log\x20file\x20not\x20found.','11155485BQOzHI','getStatsSummary','default','sendFile','/api/stats/history','http://localhost:','readFileSync','create','json','.trimprompt','.comp.txt','auto','query','catch','defineProperty','configurable','length','197091qAiQop','4896045fJiIqZ','__createBinding','error','../src/index.html','EADDRINUSE','tracker','__importDefault','1691ZYoovY','./tracker','params','hasOwnProperty','model','7450525bmFPNV','30cYwEqG','/api/stats/inspect/:id','getLogs','1442QCFAld','code'];a0_0x5d15=function(){return _0x2e5f2a;};return a0_0x5d15();}function a0_0x27ab(_0x5fcbe7,_0x3204b8){const _0x5d15bb=a0_0x5d15();return a0_0x27ab=function(_0x27ab0d,_0x13f325){_0x27ab0d=_0x27ab0d-0x171;let _0x34ed1a=_0x5d15bb[_0x27ab0d];return _0x34ed1a;},a0_0x27ab(_0x5fcbe7,_0x3204b8);}(function(_0x8247b4,_0x2b6c94){const _0xfa104b=a0_0x27ab,_0x44fd3e=_0x8247b4();while(!![]){try{const _0x1fc145=-parseInt(_0xfa104b(0x1a2))/0x1*(-parseInt(_0xfa104b(0x172))/0x2)+-parseInt(_0xfa104b(0x184))/0x3*(-parseInt(_0xfa104b(0x177))/0x4)+-parseInt(_0xfa104b(0x1a7))/0x5*(-parseInt(_0xfa104b(0x17b))/0x6)+-parseInt(_0xfa104b(0x19b))/0x7+parseInt(_0xfa104b(0x174))/0x8+parseInt(_0xfa104b(0x19a))/0x9+-parseInt(_0xfa104b(0x1a8))/0xa*(parseInt(_0xfa104b(0x189))/0xb);if(_0x1fc145===_0x2b6c94)break;else _0x44fd3e['push'](_0x44fd3e['shift']());}catch(_0x2191c8){_0x44fd3e['push'](_0x44fd3e['shift']());}}}(a0_0x5d15,0xcd3fa));var __createBinding=this&&this[a0_0x12bc9b(0x19c)]||(Object['create']?function(_0x33bd16,_0x3fc47e,_0x47c6df,_0xf381ed){const _0xbbf5e4=a0_0x12bc9b;if(_0xf381ed===undefined)_0xf381ed=_0x47c6df;var _0x58dae9=Object[_0xbbf5e4(0x186)](_0x3fc47e,_0x47c6df);(!_0x58dae9||(_0xbbf5e4(0x178)in _0x58dae9?!_0x3fc47e[_0xbbf5e4(0x176)]:_0x58dae9['writable']||_0x58dae9[_0xbbf5e4(0x198)]))&&(_0x58dae9={'enumerable':!![],'get':function(){return _0x3fc47e[_0x47c6df];}}),Object[_0xbbf5e4(0x197)](_0x33bd16,_0xf381ed,_0x58dae9);}:function(_0x44c696,_0x38afd1,_0x58dce4,_0x3e190e){if(_0x3e190e===undefined)_0x3e190e=_0x58dce4;_0x44c696[_0x3e190e]=_0x38afd1[_0x58dce4];}),__setModuleDefault=this&&this[a0_0x12bc9b(0x187)]||(Object[a0_0x12bc9b(0x190)]?function(_0xe4051c,_0x48dfe1){const _0xca45ad=a0_0x12bc9b;Object[_0xca45ad(0x197)](_0xe4051c,_0xca45ad(0x18b),{'enumerable':!![],'value':_0x48dfe1});}:function(_0x35c8e3,_0x3b2e2e){const _0x354d4e=a0_0x12bc9b;_0x35c8e3[_0x354d4e(0x18b)]=_0x3b2e2e;}),__importStar=this&&this[a0_0x12bc9b(0x183)]||(function(){var _0x254193=function(_0x5c741f){const _0x469e25=a0_0x27ab;return _0x254193=Object[_0x469e25(0x180)]||function(_0x256269){const _0x1a13e5=_0x469e25;var _0x2fdb47=[];for(var _0x33c11e in _0x256269)if(Object[_0x1a13e5(0x175)][_0x1a13e5(0x1a5)]['call'](_0x256269,_0x33c11e))_0x2fdb47[_0x2fdb47[_0x1a13e5(0x199)]]=_0x33c11e;return _0x2fdb47;},_0x254193(_0x5c741f);};return function(_0x2a5394){const _0x1ba679=a0_0x27ab;if(_0x2a5394&&_0x2a5394['__esModule'])return _0x2a5394;var _0x27580d={};if(_0x2a5394!=null){for(var _0x3ddfe1=_0x254193(_0x2a5394),_0x37f78c=0x0;_0x37f78c<_0x3ddfe1[_0x1ba679(0x199)];_0x37f78c++)if(_0x3ddfe1[_0x37f78c]!==_0x1ba679(0x18b))__createBinding(_0x27580d,_0x2a5394,_0x3ddfe1[_0x37f78c]);}return __setModuleDefault(_0x27580d,_0x2a5394),_0x27580d;};}()),__importDefault=this&&this[a0_0x12bc9b(0x1a1)]||function(_0x4441f5){const _0x6b1e28=a0_0x12bc9b;return _0x4441f5&&_0x4441f5[_0x6b1e28(0x176)]?_0x4441f5:{'default':_0x4441f5};};Object[a0_0x12bc9b(0x197)](exports,'__esModule',{'value':!![]}),exports['startDashboard']=startDashboard;const express_1=__importDefault(require('express')),path=__importStar(require(a0_0x12bc9b(0x181))),fs=__importStar(require('fs')),os=__importStar(require('os')),open_1=__importDefault(require('open')),tracker_1=require(a0_0x12bc9b(0x1a3)),app=(0x0,express_1[a0_0x12bc9b(0x18b)])(),baseDir=path['join'](os['homedir'](),a0_0x12bc9b(0x192)),logsDir=path[a0_0x12bc9b(0x17e)](baseDir,a0_0x12bc9b(0x17a));app[a0_0x12bc9b(0x178)]('/',(_0x34c6bb,_0x593c81)=>{const _0x3af5b1=a0_0x12bc9b,_0x4c8d3a=path[_0x3af5b1(0x17e)](__dirname,_0x3af5b1(0x182));fs['existsSync'](_0x4c8d3a)?_0x593c81[_0x3af5b1(0x18c)](_0x4c8d3a):_0x593c81[_0x3af5b1(0x18c)](path[_0x3af5b1(0x17e)](__dirname,_0x3af5b1(0x19e)));}),app[a0_0x12bc9b(0x178)]('/api/stats/summary',(_0x5aad01,_0x105f27)=>{const _0x19fa9c=a0_0x12bc9b,_0x4d7e7c=_0x5aad01[_0x19fa9c(0x195)][_0x19fa9c(0x1a6)]||_0x19fa9c(0x194),_0x4bffc9=tracker_1[_0x19fa9c(0x1a0)][_0x19fa9c(0x18a)](_0x4d7e7c);_0x105f27[_0x19fa9c(0x191)](_0x4bffc9);}),app[a0_0x12bc9b(0x178)](a0_0x12bc9b(0x18d),(_0x34538b,_0x5dcb19)=>{const _0xe4087e=a0_0x12bc9b,_0x131e46=tracker_1['tracker'][_0xe4087e(0x171)]();_0x5dcb19[_0xe4087e(0x191)](_0x131e46);}),app['get'](a0_0x12bc9b(0x1a9),(_0x4f38df,_0x1f34a7)=>{const _0x1e61f3=a0_0x12bc9b,_0x19a1d0=_0x4f38df[_0x1e61f3(0x1a4)]['id'],_0x4edc07=path[_0x1e61f3(0x17e)](logsDir,_0x19a1d0+'.raw.txt'),_0x35d6ee=path[_0x1e61f3(0x17e)](logsDir,_0x19a1d0+_0x1e61f3(0x193));let _0x13825f=_0x1e61f3(0x188),_0x7f9bc1=_0x1e61f3(0x17d);try{fs['existsSync'](_0x4edc07)&&(_0x13825f=fs['readFileSync'](_0x4edc07,_0x1e61f3(0x17f))),fs['existsSync'](_0x35d6ee)&&(_0x7f9bc1=fs[_0x1e61f3(0x18f)](_0x35d6ee,_0x1e61f3(0x17f)));}catch(_0xdcc7a7){}_0x1f34a7[_0x1e61f3(0x191)]({'id':_0x19a1d0,'raw':_0x13825f,'compressed':_0x7f9bc1});});function startDashboard(_0x498b6e=0xfa0){const _0x27d641=a0_0x12bc9b;let _0x2700c1=_0x498b6e;const _0x347027=app['listen'](_0x2700c1,()=>{const _0x294b1a=a0_0x27ab,_0x3c61c7=_0x294b1a(0x18e)+_0x2700c1;console['log'](_0x294b1a(0x179)+_0x3c61c7),console['log'](_0x294b1a(0x185)),(0x0,open_1['default'])(_0x3c61c7)[_0x294b1a(0x196)](()=>{});});_0x347027['on'](_0x27d641(0x19d),_0xbbc9a8=>{const _0x3d84a2=_0x27d641;_0xbbc9a8[_0x3d84a2(0x173)]===_0x3d84a2(0x19f)?startDashboard(_0x2700c1+0x1):console[_0x3d84a2(0x19d)](_0x3d84a2(0x17c)+_0xbbc9a8['message']);});}
1
+ 'use strict';const a0_0x2f9600=a0_0x37de;(function(_0x504f7c,_0x225dda){const _0xe88caa=a0_0x37de,_0x21a7d1=_0x504f7c();while(!![]){try{const _0x111699=-parseInt(_0xe88caa(0x1c6))/0x1*(parseInt(_0xe88caa(0x1d8))/0x2)+-parseInt(_0xe88caa(0x1e5))/0x3*(-parseInt(_0xe88caa(0x1d3))/0x4)+-parseInt(_0xe88caa(0x1b5))/0x5*(-parseInt(_0xe88caa(0x1c9))/0x6)+parseInt(_0xe88caa(0x1c8))/0x7+-parseInt(_0xe88caa(0x1b0))/0x8*(-parseInt(_0xe88caa(0x1d5))/0x9)+-parseInt(_0xe88caa(0x1c3))/0xa+parseInt(_0xe88caa(0x1db))/0xb*(-parseInt(_0xe88caa(0x1b9))/0xc);if(_0x111699===_0x225dda)break;else _0x21a7d1['push'](_0x21a7d1['shift']());}catch(_0x77e222){_0x21a7d1['push'](_0x21a7d1['shift']());}}}(a0_0x3d24,0xabf2d));var __createBinding=this&&this['__createBinding']||(Object['create']?function(_0x4b5862,_0x17cb27,_0x4a84c1,_0x1b0b90){const _0x295acc=a0_0x37de;if(_0x1b0b90===undefined)_0x1b0b90=_0x4a84c1;var _0x107506=Object['getOwnPropertyDescriptor'](_0x17cb27,_0x4a84c1);(!_0x107506||(_0x295acc(0x1e6)in _0x107506?!_0x17cb27[_0x295acc(0x1ba)]:_0x107506['writable']||_0x107506[_0x295acc(0x1d2)]))&&(_0x107506={'enumerable':!![],'get':function(){return _0x17cb27[_0x4a84c1];}}),Object[_0x295acc(0x1e9)](_0x4b5862,_0x1b0b90,_0x107506);}:function(_0x7d623a,_0x5d6ef3,_0x8a52a,_0x2c6a99){if(_0x2c6a99===undefined)_0x2c6a99=_0x8a52a;_0x7d623a[_0x2c6a99]=_0x5d6ef3[_0x8a52a];}),__setModuleDefault=this&&this[a0_0x2f9600(0x1cc)]||(Object[a0_0x2f9600(0x1bb)]?function(_0x3228d5,_0x38c990){const _0x5f0f0d=a0_0x2f9600;Object[_0x5f0f0d(0x1e9)](_0x3228d5,_0x5f0f0d(0x1d1),{'enumerable':!![],'value':_0x38c990});}:function(_0x56e571,_0x199fc3){const _0x453ed1=a0_0x2f9600;_0x56e571[_0x453ed1(0x1d1)]=_0x199fc3;}),__importStar=this&&this[a0_0x2f9600(0x1d6)]||(function(){var _0x15afda=function(_0x25f34f){return _0x15afda=Object['getOwnPropertyNames']||function(_0x5c47e9){const _0x1d628b=a0_0x37de;var _0x28c790=[];for(var _0x40239b in _0x5c47e9)if(Object[_0x1d628b(0x1af)][_0x1d628b(0x1b2)][_0x1d628b(0x1bd)](_0x5c47e9,_0x40239b))_0x28c790[_0x28c790[_0x1d628b(0x1bc)]]=_0x40239b;return _0x28c790;},_0x15afda(_0x25f34f);};return function(_0x1d458f){const _0x4dd5d1=a0_0x37de;if(_0x1d458f&&_0x1d458f[_0x4dd5d1(0x1ba)])return _0x1d458f;var _0x4b1b35={};if(_0x1d458f!=null){for(var _0x46b97b=_0x15afda(_0x1d458f),_0x30d2f5=0x0;_0x30d2f5<_0x46b97b[_0x4dd5d1(0x1bc)];_0x30d2f5++)if(_0x46b97b[_0x30d2f5]!==_0x4dd5d1(0x1d1))__createBinding(_0x4b1b35,_0x1d458f,_0x46b97b[_0x30d2f5]);}return __setModuleDefault(_0x4b1b35,_0x1d458f),_0x4b1b35;};}()),__importDefault=this&&this[a0_0x2f9600(0x1c0)]||function(_0xbd9319){const _0x4ad0ce=a0_0x2f9600;return _0xbd9319&&_0xbd9319[_0x4ad0ce(0x1ba)]?_0xbd9319:{'default':_0xbd9319};};Object['defineProperty'](exports,a0_0x2f9600(0x1ba),{'value':!![]}),exports[a0_0x2f9600(0x1b8)]=startDashboard;function a0_0x37de(_0x13b0b3,_0x1f7530){const _0x3d248e=a0_0x3d24();return a0_0x37de=function(_0x37deba,_0x45f569){_0x37deba=_0x37deba-0x1af;let _0x582a7b=_0x3d248e[_0x37deba];return _0x582a7b;},a0_0x37de(_0x13b0b3,_0x1f7530);}const express_1=__importDefault(require('express')),path=__importStar(require(a0_0x2f9600(0x1b4))),fs=__importStar(require('fs')),os=__importStar(require('os')),open_1=__importDefault(require(a0_0x2f9600(0x1cf))),tracker_1=require(a0_0x2f9600(0x1e2)),app=(0x0,express_1['default'])(),baseDir=path[a0_0x2f9600(0x1c1)](os[a0_0x2f9600(0x1d7)](),a0_0x2f9600(0x1ce)),logsDir=path['join'](baseDir,a0_0x2f9600(0x1de));app[a0_0x2f9600(0x1e6)]('/',(_0x110f53,_0x20a656)=>{const _0x45474c=a0_0x2f9600,_0x2c193e=path[_0x45474c(0x1c1)](__dirname,_0x45474c(0x1c2));fs[_0x45474c(0x1cb)](_0x2c193e)?_0x20a656[_0x45474c(0x1e7)](_0x2c193e):_0x20a656[_0x45474c(0x1e7)](path['join'](__dirname,_0x45474c(0x1dc)));}),app[a0_0x2f9600(0x1e6)]('/api/stats/summary',(_0x3c890e,_0x4ac0ba)=>{const _0x1ba54d=a0_0x2f9600,_0xa8826c=_0x3c890e[_0x1ba54d(0x1e1)][_0x1ba54d(0x1b6)]||_0x1ba54d(0x1e0),_0x23f191=tracker_1[_0x1ba54d(0x1c5)][_0x1ba54d(0x1e3)](_0xa8826c);_0x4ac0ba[_0x1ba54d(0x1c4)](_0x23f191);}),app[a0_0x2f9600(0x1e6)](a0_0x2f9600(0x1dd),(_0x565ed4,_0x1dc48f)=>{const _0x5066ca=a0_0x2f9600,_0x289f85=tracker_1['tracker'][_0x5066ca(0x1d4)]();_0x1dc48f[_0x5066ca(0x1c4)](_0x289f85);}),app[a0_0x2f9600(0x1e6)](a0_0x2f9600(0x1b7),(_0x462594,_0x15027d)=>{const _0x513137=a0_0x2f9600,_0xf9356=_0x462594[_0x513137(0x1bf)]['id'],_0x1f85bd=path[_0x513137(0x1c1)](logsDir,_0xf9356+'.raw.txt'),_0x308411=path[_0x513137(0x1c1)](logsDir,_0xf9356+_0x513137(0x1da));let _0x2629ab=_0x513137(0x1d0),_0x246bf0=_0x513137(0x1df);try{fs[_0x513137(0x1cb)](_0x1f85bd)&&(_0x2629ab=fs[_0x513137(0x1e4)](_0x1f85bd,'utf8')),fs[_0x513137(0x1cb)](_0x308411)&&(_0x246bf0=fs['readFileSync'](_0x308411,_0x513137(0x1be)));}catch(_0x5b6f09){}_0x15027d[_0x513137(0x1c4)]({'id':_0xf9356,'raw':_0x2629ab,'compressed':_0x246bf0});});function startDashboard(_0x40fa83=0xfa0){const _0x105426=a0_0x2f9600;let _0x462cf4=_0x40fa83;const _0x429aea=app[_0x105426(0x1c7)](_0x462cf4,()=>{const _0x248003=_0x105426,_0x24451d='http://localhost:'+_0x462cf4;console[_0x248003(0x1ca)]('\x0a[TrimPrompt]\x20Dashboard\x20server\x20started\x20at:\x20'+_0x24451d),console[_0x248003(0x1ca)](_0x248003(0x1d9)),(0x0,open_1['default'])(_0x24451d)[_0x248003(0x1b3)](()=>{});});_0x429aea['on']('error',_0x1d6f0b=>{const _0x550a42=_0x105426;_0x1d6f0b[_0x550a42(0x1cd)]==='EADDRINUSE'?startDashboard(_0x462cf4+0x1):console[_0x550a42(0x1e8)]('[TrimPrompt]\x20Dashboard\x20error:\x20'+_0x1d6f0b[_0x550a42(0x1b1)]);});}function a0_0x3d24(){const _0xe84188=['readFileSync','3PoRvfR','get','sendFile','error','defineProperty','prototype','48744VXlfpM','message','hasOwnProperty','catch','path','5VShTIA','model','/api/stats/inspect/:id','startDashboard','588yeAver','__esModule','create','length','call','utf8','params','__importDefault','join','index.html','10537340BQWjmL','json','tracker','69oExPVv','listen','8873256zPqybe','7632006nOSHZc','log','existsSync','__setModuleDefault','code','.trimprompt','open','Raw\x20output\x20log\x20file\x20not\x20found.','default','configurable','1793132lWbqcf','getLogs','603imDcqd','__importStar','homedir','4108TPBcaK','Press\x20Ctrl+C\x20in\x20this\x20terminal\x20to\x20shut\x20down.','.comp.txt','335918YSUnpM','../src/index.html','/api/stats/history','logs','Compressed\x20output\x20log\x20file\x20not\x20found.','auto','query','./tracker','getStatsSummary'];a0_0x3d24=function(){return _0xe84188;};return a0_0x3d24();}
package/executor.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function a0_0x37fc(){var _0x57e0d3=['shims','delimiter','getOwnPropertyDescriptor','__importStar','defineProperty','default','__createBinding','hasOwnProperty','data','spawn','8ICnIrG','executeCommand','4845953koSFAG','3005340cZTTfc','homedir','env','toLowerCase','4938462XuPKct','inherit','error','filter','create','trim','__esModule','getOwnPropertyNames','6633LvuRBK','length','4259472HZEKbg','configurable','185vtwfMO','path','child_process','prototype','call','44026760hEQRRX','PATH','message','pipe','stdout','close','stderr','\x22:\x20','split','Failed\x20to\x20spawn\x20command\x20\x22','31002ebHADK','140QGshal','__setModuleDefault'];a0_0x37fc=function(){return _0x57e0d3;};return a0_0x37fc();}function a0_0x5667(_0x57156d,_0x48780c){var _0x37fc91=a0_0x37fc();return a0_0x5667=function(_0x566725,_0x2e25e5){_0x566725=_0x566725-0x8c;var _0x436dd4=_0x37fc91[_0x566725];return _0x436dd4;},a0_0x5667(_0x57156d,_0x48780c);}var a0_0x1f231f=a0_0x5667;(function(_0x5f3cb3,_0x13ea5f){var _0x1718a5=a0_0x5667,_0x5634df=_0x5f3cb3();while(!![]){try{var _0x522117=-parseInt(_0x1718a5(0xb2))/0x1*(parseInt(_0x1718a5(0x97))/0x2)+-parseInt(_0x1718a5(0xb4))/0x3+-parseInt(_0x1718a5(0xa6))/0x4+-parseInt(_0x1718a5(0xb6))/0x5*(-parseInt(_0x1718a5(0x96))/0x6)+-parseInt(_0x1718a5(0xa5))/0x7+parseInt(_0x1718a5(0xa3))/0x8*(-parseInt(_0x1718a5(0xaa))/0x9)+parseInt(_0x1718a5(0x8c))/0xa;if(_0x522117===_0x13ea5f)break;else _0x5634df['push'](_0x5634df['shift']());}catch(_0x131f9b){_0x5634df['push'](_0x5634df['shift']());}}}(a0_0x37fc,0xaf24d));var __createBinding=this&&this[a0_0x1f231f(0x9f)]||(Object[a0_0x1f231f(0xae)]?function(_0x178bc4,_0x27e445,_0x20f685,_0x2e461c){var _0x55a500=a0_0x1f231f;if(_0x2e461c===undefined)_0x2e461c=_0x20f685;var _0x38fb37=Object[_0x55a500(0x9b)](_0x27e445,_0x20f685);(!_0x38fb37||('get'in _0x38fb37?!_0x27e445['__esModule']:_0x38fb37['writable']||_0x38fb37[_0x55a500(0xb5)]))&&(_0x38fb37={'enumerable':!![],'get':function(){return _0x27e445[_0x20f685];}}),Object['defineProperty'](_0x178bc4,_0x2e461c,_0x38fb37);}:function(_0x182aa9,_0x547f6b,_0x51098d,_0x223662){if(_0x223662===undefined)_0x223662=_0x51098d;_0x182aa9[_0x223662]=_0x547f6b[_0x51098d];}),__setModuleDefault=this&&this[a0_0x1f231f(0x98)]||(Object[a0_0x1f231f(0xae)]?function(_0x22d0ba,_0x40937b){var _0x359f99=a0_0x1f231f;Object[_0x359f99(0x9d)](_0x22d0ba,_0x359f99(0x9e),{'enumerable':!![],'value':_0x40937b});}:function(_0x3fe3b1,_0x150934){_0x3fe3b1['default']=_0x150934;}),__importStar=this&&this[a0_0x1f231f(0x9c)]||(function(){var _0x155ec3=function(_0x46db57){var _0xc5bd13=a0_0x5667;return _0x155ec3=Object[_0xc5bd13(0xb1)]||function(_0x1ee151){var _0x24db23=_0xc5bd13,_0x3d55e6=[];for(var _0x43e2f3 in _0x1ee151)if(Object[_0x24db23(0xb9)][_0x24db23(0xa0)][_0x24db23(0xba)](_0x1ee151,_0x43e2f3))_0x3d55e6[_0x3d55e6[_0x24db23(0xb3)]]=_0x43e2f3;return _0x3d55e6;},_0x155ec3(_0x46db57);};return function(_0x2e588e){var _0x18e24b=a0_0x5667;if(_0x2e588e&&_0x2e588e[_0x18e24b(0xb0)])return _0x2e588e;var _0x598a85={};if(_0x2e588e!=null){for(var _0x63cebd=_0x155ec3(_0x2e588e),_0x4ad7e5=0x0;_0x4ad7e5<_0x63cebd[_0x18e24b(0xb3)];_0x4ad7e5++)if(_0x63cebd[_0x4ad7e5]!==_0x18e24b(0x9e))__createBinding(_0x598a85,_0x2e588e,_0x63cebd[_0x4ad7e5]);}return __setModuleDefault(_0x598a85,_0x2e588e),_0x598a85;};}());Object[a0_0x1f231f(0x9d)](exports,a0_0x1f231f(0xb0),{'value':!![]}),exports[a0_0x1f231f(0xa4)]=executeCommand;const child_process_1=require(a0_0x1f231f(0xb8)),path=__importStar(require(a0_0x1f231f(0xb7))),os=__importStar(require('os'));function executeCommand(_0x41e57b,_0x864183){return new Promise(_0x2f3a09=>{var _0x53a821=a0_0x5667;const _0xa2cc2b=path['join'](os[_0x53a821(0xa7)](),'.trimprompt',_0x53a821(0x99)),_0x1e9eeb=(process[_0x53a821(0xa8)][_0x53a821(0x8d)]||'')[_0x53a821(0x94)](path[_0x53a821(0x9a)])[_0x53a821(0xad)](_0x32cc88=>_0x32cc88[_0x53a821(0xaf)]()['toLowerCase']()!==_0xa2cc2b[_0x53a821(0xa9)]())['join'](path[_0x53a821(0x9a)]),_0x447d98={...process['env'],'PATH':_0x1e9eeb,'TRIMPROMPT_DISABLED':'1'},_0x4ba4e5=(0x0,child_process_1[_0x53a821(0xa2)])(_0x41e57b,_0x864183,{'stdio':[_0x53a821(0xab),_0x53a821(0x8f),'pipe'],'shell':!![],'env':_0x447d98});let _0x33fabc='',_0x12739d='';_0x4ba4e5[_0x53a821(0x90)]?.['on'](_0x53a821(0xa1),_0x1eed32=>{_0x33fabc+=_0x1eed32['toString']();}),_0x4ba4e5[_0x53a821(0x92)]?.['on'](_0x53a821(0xa1),_0x484a4e=>{_0x12739d+=_0x484a4e['toString']();}),_0x4ba4e5['on'](_0x53a821(0xac),_0x313c0f=>{var _0x4cc22f=_0x53a821;_0x2f3a09({'exitCode':0x1,'stdout':'','stderr':_0x4cc22f(0x95)+_0x41e57b+_0x4cc22f(0x93)+_0x313c0f[_0x4cc22f(0x8e)]});}),_0x4ba4e5['on'](_0x53a821(0x91),_0x677943=>{_0x2f3a09({'exitCode':_0x677943??0x0,'stdout':_0x33fabc,'stderr':_0x12739d});});});}
1
+ 'use strict';var a0_0x14b0e0=a0_0x5852;function a0_0x5852(_0x3e2981,_0x26f020){var _0x45a11a=a0_0x45a1();return a0_0x5852=function(_0x5852e8,_0x364956){_0x5852e8=_0x5852e8-0x195;var _0x6deb9=_0x45a11a[_0x5852e8];return _0x6deb9;},a0_0x5852(_0x3e2981,_0x26f020);}(function(_0x12bde8,_0x36030e){var _0x46280e=a0_0x5852,_0x2413ba=_0x12bde8();while(!![]){try{var _0x2f9965=parseInt(_0x46280e(0x1c1))/0x1+parseInt(_0x46280e(0x19e))/0x2*(-parseInt(_0x46280e(0x1c0))/0x3)+-parseInt(_0x46280e(0x1a7))/0x4+parseInt(_0x46280e(0x198))/0x5*(parseInt(_0x46280e(0x197))/0x6)+-parseInt(_0x46280e(0x1a8))/0x7*(parseInt(_0x46280e(0x1b8))/0x8)+-parseInt(_0x46280e(0x1a3))/0x9+parseInt(_0x46280e(0x1a2))/0xa;if(_0x2f9965===_0x36030e)break;else _0x2413ba['push'](_0x2413ba['shift']());}catch(_0x18bb79){_0x2413ba['push'](_0x2413ba['shift']());}}}(a0_0x45a1,0x7dc20));var __createBinding=this&&this[a0_0x14b0e0(0x19a)]||(Object[a0_0x14b0e0(0x1b4)]?function(_0x20e540,_0x2bd5f1,_0x31f663,_0x47da58){var _0x48a4b1=a0_0x14b0e0;if(_0x47da58===undefined)_0x47da58=_0x31f663;var _0x46e59b=Object['getOwnPropertyDescriptor'](_0x2bd5f1,_0x31f663);(!_0x46e59b||(_0x48a4b1(0x195)in _0x46e59b?!_0x2bd5f1[_0x48a4b1(0x1b5)]:_0x46e59b['writable']||_0x46e59b[_0x48a4b1(0x1a1)]))&&(_0x46e59b={'enumerable':!![],'get':function(){return _0x2bd5f1[_0x31f663];}}),Object[_0x48a4b1(0x19c)](_0x20e540,_0x47da58,_0x46e59b);}:function(_0xbee28b,_0x16c7a7,_0x52d04b,_0x7455ec){if(_0x7455ec===undefined)_0x7455ec=_0x52d04b;_0xbee28b[_0x7455ec]=_0x16c7a7[_0x52d04b];}),__setModuleDefault=this&&this[a0_0x14b0e0(0x1ab)]||(Object[a0_0x14b0e0(0x1b4)]?function(_0x269175,_0x154967){var _0x50c661=a0_0x14b0e0;Object[_0x50c661(0x19c)](_0x269175,_0x50c661(0x1b6),{'enumerable':!![],'value':_0x154967});}:function(_0x1efcf3,_0x796772){var _0x39d47b=a0_0x14b0e0;_0x1efcf3[_0x39d47b(0x1b6)]=_0x796772;}),__importStar=this&&this[a0_0x14b0e0(0x1ba)]||(function(){var _0x5571ff=function(_0x460e70){var _0x789474=a0_0x5852;return _0x5571ff=Object[_0x789474(0x1af)]||function(_0x3ccc83){var _0x2850ec=_0x789474,_0x2c7cf1=[];for(var _0x200869 in _0x3ccc83)if(Object['prototype'][_0x2850ec(0x1b0)][_0x2850ec(0x1bc)](_0x3ccc83,_0x200869))_0x2c7cf1[_0x2c7cf1[_0x2850ec(0x1aa)]]=_0x200869;return _0x2c7cf1;},_0x5571ff(_0x460e70);};return function(_0x10dad0){var _0x25ee64=a0_0x5852;if(_0x10dad0&&_0x10dad0['__esModule'])return _0x10dad0;var _0x50892d={};if(_0x10dad0!=null){for(var _0x362a75=_0x5571ff(_0x10dad0),_0x5ed887=0x0;_0x5ed887<_0x362a75[_0x25ee64(0x1aa)];_0x5ed887++)if(_0x362a75[_0x5ed887]!==_0x25ee64(0x1b6))__createBinding(_0x50892d,_0x10dad0,_0x362a75[_0x5ed887]);}return __setModuleDefault(_0x50892d,_0x10dad0),_0x50892d;};}());Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a0_0x14b0e0(0x1b3)]=executeCommand;function a0_0x45a1(){var _0x3a23e8=['error','993422LCTHUR','stdout','child_process','configurable','23401970MVlOhf','7977861iKguxd','PATH','stderr','shims','721872jYjOhS','6265crhRfu','toString','length','__setModuleDefault','env','filter','delimiter','getOwnPropertyNames','hasOwnProperty','join','path','executeCommand','create','__esModule','default','homedir','8440dGrFTH','spawn','__importStar','toLowerCase','call','.trimprompt','message','Failed\x20to\x20spawn\x20command\x20\x22','6PGdYZX','682476YpGpuw','inherit','get','data','618HGTQTc','24125OQIygZ','\x22:\x20','__createBinding','pipe','defineProperty'];a0_0x45a1=function(){return _0x3a23e8;};return a0_0x45a1();}const child_process_1=require(a0_0x14b0e0(0x1a0)),path=__importStar(require(a0_0x14b0e0(0x1b2))),os=__importStar(require('os'));function executeCommand(_0x374dce,_0x46b0b2){return new Promise(_0x4b4d21=>{var _0x392d08=a0_0x5852;const _0x3e0560=path['join'](os[_0x392d08(0x1b7)](),_0x392d08(0x1bd),_0x392d08(0x1a6)),_0x7d38b=(process[_0x392d08(0x1ac)][_0x392d08(0x1a4)]||'')['split'](path['delimiter'])[_0x392d08(0x1ad)](_0x54a8ed=>_0x54a8ed['trim']()[_0x392d08(0x1bb)]()!==_0x3e0560[_0x392d08(0x1bb)]())[_0x392d08(0x1b1)](path[_0x392d08(0x1ae)]),_0x1b4309={...process[_0x392d08(0x1ac)],'PATH':_0x7d38b,'TRIMPROMPT_DISABLED':'1'},_0x22ff68=(0x0,child_process_1[_0x392d08(0x1b9)])(_0x374dce,_0x46b0b2,{'stdio':[_0x392d08(0x1c2),_0x392d08(0x19b),_0x392d08(0x19b)],'shell':!![],'env':_0x1b4309});let _0x5c0942='',_0x479342='';_0x22ff68[_0x392d08(0x19f)]?.['on'](_0x392d08(0x196),_0x49694d=>{var _0x2732f8=_0x392d08;_0x5c0942+=_0x49694d[_0x2732f8(0x1a9)]();}),_0x22ff68[_0x392d08(0x1a5)]?.['on']('data',_0x12385f=>{var _0x25abcf=_0x392d08;_0x479342+=_0x12385f[_0x25abcf(0x1a9)]();}),_0x22ff68['on'](_0x392d08(0x19d),_0x5614ce=>{var _0xc1b48=_0x392d08;_0x4b4d21({'exitCode':0x1,'stdout':'','stderr':_0xc1b48(0x1bf)+_0x374dce+_0xc1b48(0x199)+_0x5614ce[_0xc1b48(0x1be)]});}),_0x22ff68['on']('close',_0x4c3924=>{_0x4b4d21({'exitCode':_0x4c3924??0x0,'stdout':_0x5c0942,'stderr':_0x479342});});});}
package/filters/devops.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x2600ca=a0_0x28cb;(function(_0x227387,_0x5921fe){const _0x23b6f7=a0_0x28cb,_0x1b3ca5=_0x227387();while(!![]){try{const _0x1ba6f2=parseInt(_0x23b6f7(0x1d2))/0x1*(-parseInt(_0x23b6f7(0x1cc))/0x2)+-parseInt(_0x23b6f7(0x1d6))/0x3+parseInt(_0x23b6f7(0x1e1))/0x4*(parseInt(_0x23b6f7(0x1d3))/0x5)+parseInt(_0x23b6f7(0x1b9))/0x6+parseInt(_0x23b6f7(0x1b6))/0x7*(-parseInt(_0x23b6f7(0x1d1))/0x8)+-parseInt(_0x23b6f7(0x1bc))/0x9*(parseInt(_0x23b6f7(0x1df))/0xa)+parseInt(_0x23b6f7(0x1c8))/0xb;if(_0x1ba6f2===_0x5921fe)break;else _0x1b3ca5['push'](_0x1b3ca5['shift']());}catch(_0x2747de){_0x1b3ca5['push'](_0x1b3ca5['shift']());}}}(a0_0x52c8,0x45bb4));Object[a0_0x2600ca(0x1bb)](exports,a0_0x2600ca(0x1b1),{'value':!![]}),exports['filterDockerPs']=filterDockerPs,exports[a0_0x2600ca(0x1b2)]=filterDockerImages,exports[a0_0x2600ca(0x1c1)]=filterDockerLogs,exports[a0_0x2600ca(0x1bf)]=filterKubectl,exports[a0_0x2600ca(0x1c9)]=filterRuff;function a0_0x52c8(){const _0x102ac2=['defineProperty','225nEMPLP','\x20\x20...\x20(','Ruff:\x20no\x20issues\x20found','filterKubectl','\x0a...\x20+','filterDockerLogs','No\x20containers\x20running','\x20total','slice','filter','\x20more\x20lines','trim','16380463IqCAVw','filterRuff','No\x20resources\x20found','Ruff:\x20all\x20checks\x20passed','102388AqfIpX','\x20files','\x20log\x20lines\x20total)','\x20more\x20events','\x20lines\x20truncated]\x20...\x0a','32NMdboG','11fBOOMJ','2663345oECzYR','split','push','1127331RJnHWA','\x0a...\x20[','\x20more\x20resources','Containers:\x20','match','Ruff:\x20','\x20more','length','includes','227670gBKkLT','\x20more\x20images','4kHNDHV','logs','keys','__esModule','filterDockerImages','All\x20checks\x20passed','Found\x200\x20error','No\x20images\x20found','727069smNePQ','\x20\x20...\x20+','join','1124232TLiiKS','\x20issues\x20in\x20'];a0_0x52c8=function(){return _0x102ac2;};return a0_0x52c8();}function a0_0x28cb(_0x4ed33f,_0x114710){const _0x52c800=a0_0x52c8();return a0_0x28cb=function(_0x28cb02,_0xa27cdc){_0x28cb02=_0x28cb02-0x1b0;let _0x3069bb=_0x52c800[_0x28cb02];return _0x3069bb;},a0_0x28cb(_0x4ed33f,_0x114710);}function filterDockerPs(_0x9c6241){const _0xd68526=a0_0x2600ca,_0x5984a8=_0x9c6241[_0xd68526(0x1d4)]('\x0a')['filter'](_0x476613=>_0x476613[_0xd68526(0x1c7)]()[_0xd68526(0x1dd)]>0x0);if(_0x5984a8[_0xd68526(0x1dd)]===0x0)return _0xd68526(0x1c2);if(_0x5984a8[_0xd68526(0x1dd)]<=0xa)return _0x9c6241['trim']();const _0x3f45c1=_0x5984a8[0x0],_0x583b68=_0x5984a8[_0xd68526(0x1c4)](0x1),_0x464b0d=[];_0x464b0d[_0xd68526(0x1d5)](_0xd68526(0x1d9)+_0x583b68[_0xd68526(0x1dd)]+_0xd68526(0x1c3)),_0x464b0d['push']('');for(const _0x2231b1 of _0x583b68){const _0x397abc=_0x2231b1[_0xd68526(0x1d4)](/\s{2,}/);if(_0x397abc['length']>=0x5){const _0xa335f1=_0x397abc[0x0]['substring'](0x0,0xc),_0x5eae4b=_0x397abc[0x1],_0x7a247d=_0x397abc[_0x397abc[_0xd68526(0x1dd)]-0x2]||'',_0x36aca5=_0x397abc[_0x397abc[_0xd68526(0x1dd)]-0x1]||'';_0x464b0d['push']('\x20\x20'+_0xa335f1+'\x20\x20'+_0x5eae4b+'\x20\x20'+_0x7a247d+'\x20\x20'+_0x36aca5);}else _0x464b0d[_0xd68526(0x1d5)]('\x20\x20'+_0x2231b1[_0xd68526(0x1c7)]());}return _0x464b0d['join']('\x0a');}function filterDockerImages(_0x243d25){const _0xbae91c=a0_0x2600ca,_0x9c0625=_0x243d25[_0xbae91c(0x1d4)]('\x0a')[_0xbae91c(0x1c5)](_0x4fde02=>_0x4fde02[_0xbae91c(0x1c7)]()[_0xbae91c(0x1dd)]>0x0);if(_0x9c0625['length']<=0x1)return _0xbae91c(0x1b5);if(_0x9c0625['length']<=0xf)return _0x243d25[_0xbae91c(0x1c7)]();const _0x49341d=_0x9c0625[_0xbae91c(0x1c4)](0x1),_0x5f274b=['Docker\x20images:\x20'+_0x49341d['length']+'\x20total'];_0x5f274b[_0xbae91c(0x1d5)]('');const _0x57913d=_0x49341d[_0xbae91c(0x1c4)](0x0,0x14);for(const _0x591566 of _0x57913d){const _0x5852e2=_0x591566['split'](/\s{2,}/);if(_0x5852e2[_0xbae91c(0x1dd)]>=0x3){const _0x814488=_0x5852e2[0x0],_0x5e7af9=_0x5852e2[0x1],_0x2001de=_0x5852e2[_0x5852e2[_0xbae91c(0x1dd)]-0x1]||'';_0x5f274b['push']('\x20\x20'+_0x814488+':'+_0x5e7af9+'\x20\x20'+_0x2001de);}else _0x5f274b[_0xbae91c(0x1d5)]('\x20\x20'+_0x591566['trim']());}return _0x49341d['length']>0x14&&_0x5f274b['push'](_0xbae91c(0x1b7)+(_0x49341d[_0xbae91c(0x1dd)]-0x14)+_0xbae91c(0x1e0)),_0x5f274b[_0xbae91c(0x1b8)]('\x0a');}function filterDockerLogs(_0x3422e6){const _0x19e1ca=a0_0x2600ca,_0x57953f=_0x3422e6[_0x19e1ca(0x1d4)]('\x0a');if(_0x57953f[_0x19e1ca(0x1dd)]<=0x32)return _0x3422e6;const _0x3cef35=[];return _0x3cef35[_0x19e1ca(0x1d5)](..._0x57953f[_0x19e1ca(0x1c4)](0x0,0x14)),_0x3cef35['push'](_0x19e1ca(0x1d7)+(_0x57953f[_0x19e1ca(0x1dd)]-0x28)+_0x19e1ca(0x1d0)),_0x3cef35['push'](..._0x57953f[_0x19e1ca(0x1c4)](-0x14)),_0x3cef35[_0x19e1ca(0x1d5)]('\x0a('+_0x57953f[_0x19e1ca(0x1dd)]+_0x19e1ca(0x1ce)),_0x3cef35[_0x19e1ca(0x1b8)]('\x0a');}function filterKubectl(_0xf26f6a,_0x57ee11){const _0x33b0ed=a0_0x2600ca,_0x4ad606=_0xf26f6a[_0x33b0ed(0x1d4)]('\x0a')['filter'](_0x350316=>_0x350316[_0x33b0ed(0x1c7)]()[_0x33b0ed(0x1dd)]>0x0);if(_0x4ad606[_0x33b0ed(0x1dd)]===0x0)return _0x33b0ed(0x1ca);if(_0x4ad606['length']<=0x14)return _0xf26f6a[_0x33b0ed(0x1c7)]();if(_0x57ee11==='get'){const _0x53416a=_0x4ad606[0x0],_0x41007f=_0x4ad606['slice'](0x1),_0x256b88=[_0x41007f[_0x33b0ed(0x1dd)]+'\x20resources\x20found','',_0x53416a];return _0x41007f[_0x33b0ed(0x1dd)]<=0x1e?_0x256b88[_0x33b0ed(0x1d5)](..._0x41007f):(_0x256b88[_0x33b0ed(0x1d5)](..._0x41007f['slice'](0x0,0x19)),_0x256b88[_0x33b0ed(0x1d5)]('...\x20+'+(_0x41007f[_0x33b0ed(0x1dd)]-0x19)+_0x33b0ed(0x1d8))),_0x256b88[_0x33b0ed(0x1b8)]('\x0a');}if(_0x57ee11==='describe'){const _0x2083a5=[];let _0x474fcc=![],_0x6e630c=0x0;for(const _0x56a097 of _0x4ad606){if(_0x56a097['startsWith']('Events:')){_0x474fcc=!![],_0x2083a5['push'](_0x56a097);continue;}if(_0x474fcc){_0x6e630c++;if(_0x6e630c<=0x5)_0x2083a5[_0x33b0ed(0x1d5)](_0x56a097);}else _0x2083a5[_0x33b0ed(0x1d5)](_0x56a097);}return _0x6e630c>0x5&&_0x2083a5['push'](_0x33b0ed(0x1b7)+(_0x6e630c-0x5)+_0x33b0ed(0x1cf)),_0x2083a5['join']('\x0a');}if(_0x57ee11===_0x33b0ed(0x1e2))return filterDockerLogs(_0xf26f6a);const _0xe824a1=_0x4ad606[_0x33b0ed(0x1c4)](0x0,0x1e);return _0x4ad606[_0x33b0ed(0x1dd)]>0x1e&&_0xe824a1[_0x33b0ed(0x1d5)]('...\x20+'+(_0x4ad606[_0x33b0ed(0x1dd)]-0x1e)+_0x33b0ed(0x1c6)),_0xe824a1['join']('\x0a');}function filterRuff(_0x46fc7a){const _0x9f4a5a=a0_0x2600ca,_0x3f24f5=_0x46fc7a[_0x9f4a5a(0x1d4)]('\x0a')[_0x9f4a5a(0x1c5)](_0x1fc19c=>_0x1fc19c[_0x9f4a5a(0x1c7)]()[_0x9f4a5a(0x1dd)]>0x0);if(_0x3f24f5[_0x9f4a5a(0x1dd)]===0x0)return _0x9f4a5a(0x1be);if(_0x46fc7a[_0x9f4a5a(0x1de)](_0x9f4a5a(0x1b3))||_0x46fc7a['includes'](_0x9f4a5a(0x1b4)))return _0x9f4a5a(0x1cb);const _0x52516b=_0x46fc7a[_0x9f4a5a(0x1da)](/Found (\d+) error/),_0x3c105b=_0x52516b?parseInt(_0x52516b[0x1]):_0x3f24f5['length'],_0x56b9b9={},_0x4299ca=[];for(const _0x325327 of _0x3f24f5){const _0x596a1b=_0x325327[_0x9f4a5a(0x1da)](/^([^:]+:\d+:\d+):\s*(.*)/);if(_0x596a1b){const _0x29262d=_0x596a1b[0x1],_0x11bd6e=_0x29262d[_0x9f4a5a(0x1d4)](':')[0x0];if(!_0x56b9b9[_0x11bd6e])_0x56b9b9[_0x11bd6e]=[];_0x56b9b9[_0x11bd6e][_0x9f4a5a(0x1d5)](_0x325327);}else _0x4299ca['push'](_0x325327);}const _0x4a1f1c=Object[_0x9f4a5a(0x1b0)](_0x56b9b9);if(_0x4a1f1c[_0x9f4a5a(0x1dd)]===0x0){if(_0x3f24f5['length']<=0x14)return _0x46fc7a[_0x9f4a5a(0x1c7)]();return _0x3f24f5[_0x9f4a5a(0x1c4)](0x0,0xf)[_0x9f4a5a(0x1b8)]('\x0a')+(_0x9f4a5a(0x1c0)+(_0x3f24f5[_0x9f4a5a(0x1dd)]-0xf)+_0x9f4a5a(0x1dc));}const _0x53e72d=[_0x9f4a5a(0x1db)+_0x3c105b+_0x9f4a5a(0x1ba)+_0x4a1f1c['length']+_0x9f4a5a(0x1cd)];_0x53e72d['push']('');const _0x9d94d2=0xa;for(const _0x3154a9 of _0x4a1f1c['slice'](0x0,_0x9d94d2)){const _0x39aaef=_0x56b9b9[_0x3154a9];if(_0x39aaef[_0x9f4a5a(0x1dd)]<=0x3){for(const _0x3a7b1d of _0x39aaef)_0x53e72d[_0x9f4a5a(0x1d5)]('\x20\x20'+_0x3a7b1d);}else _0x53e72d['push']('\x20\x20'+_0x39aaef[0x0]),_0x53e72d['push'](_0x9f4a5a(0x1bd)+_0x39aaef['length']+_0x9f4a5a(0x1ba)+_0x3154a9+')');}return _0x4a1f1c[_0x9f4a5a(0x1dd)]>_0x9d94d2&&_0x53e72d[_0x9f4a5a(0x1d5)](_0x9f4a5a(0x1b7)+(_0x4a1f1c[_0x9f4a5a(0x1dd)]-_0x9d94d2)+'\x20more\x20files'),_0x53e72d[_0x9f4a5a(0x1b8)]('\x0a');}
1
+ 'use strict';const a0_0x48516a=a0_0x496c;(function(_0x271bb0,_0x6ad1e){const _0x79fafa=a0_0x496c,_0x597f04=_0x271bb0();while(!![]){try{const _0x2be232=-parseInt(_0x79fafa(0x1b2))/0x1+parseInt(_0x79fafa(0x1b1))/0x2*(parseInt(_0x79fafa(0x1d7))/0x3)+-parseInt(_0x79fafa(0x1d0))/0x4*(-parseInt(_0x79fafa(0x1d4))/0x5)+-parseInt(_0x79fafa(0x1cd))/0x6*(-parseInt(_0x79fafa(0x1bf))/0x7)+parseInt(_0x79fafa(0x1b4))/0x8+parseInt(_0x79fafa(0x1c7))/0x9*(parseInt(_0x79fafa(0x1db))/0xa)+-parseInt(_0x79fafa(0x1d6))/0xb;if(_0x2be232===_0x6ad1e)break;else _0x597f04['push'](_0x597f04['shift']());}catch(_0xd12be4){_0x597f04['push'](_0x597f04['shift']());}}}(a0_0x287e,0x67496));function a0_0x287e(){const _0x13d03a=['filterRuff','slice','keys','25OnuQQB','join','17692818gAjbnO','643062ryWOta','\x0a...\x20[','split','substring','110AYhrjR','\x20more','All\x20checks\x20passed','\x20more\x20events','\x20log\x20lines\x20total)','Ruff:\x20all\x20checks\x20passed','trim','4GhOiPD','94537QVKrWg','\x0a...\x20+','1363864FFyKok','filterDockerImages','length','__esModule','push','\x20files','\x20more\x20lines','\x20more\x20images','filter','Ruff:\x20','\x20resources\x20found','7rrciXk','\x20\x20...\x20(','match','No\x20resources\x20found','get','filterDockerLogs','...\x20+','includes','196227bqLgMZ','\x20issues\x20in\x20','Containers:\x20','\x20\x20...\x20+','\x20total','\x20more\x20resources','3573948RAqLfI','\x20more\x20files','No\x20containers\x20running','553084xUsFtT'];a0_0x287e=function(){return _0x13d03a;};return a0_0x287e();}function a0_0x496c(_0x426136,_0x3bb6d6){const _0x287e31=a0_0x287e();return a0_0x496c=function(_0x496c35,_0x5aff12){_0x496c35=_0x496c35-0x1ae;let _0x4c50d0=_0x287e31[_0x496c35];return _0x4c50d0;},a0_0x496c(_0x426136,_0x3bb6d6);}Object['defineProperty'](exports,a0_0x48516a(0x1b7),{'value':!![]}),exports['filterDockerPs']=filterDockerPs,exports[a0_0x48516a(0x1b5)]=filterDockerImages,exports[a0_0x48516a(0x1c4)]=filterDockerLogs,exports['filterKubectl']=filterKubectl,exports[a0_0x48516a(0x1d1)]=filterRuff;function filterDockerPs(_0x5ad6b3){const _0x2dc766=a0_0x48516a,_0x1bc1ae=_0x5ad6b3[_0x2dc766(0x1d9)]('\x0a')[_0x2dc766(0x1bc)](_0x395d0f=>_0x395d0f[_0x2dc766(0x1b0)]()['length']>0x0);if(_0x1bc1ae[_0x2dc766(0x1b6)]===0x0)return _0x2dc766(0x1cf);if(_0x1bc1ae[_0x2dc766(0x1b6)]<=0xa)return _0x5ad6b3[_0x2dc766(0x1b0)]();const _0x2bdc64=_0x1bc1ae[0x0],_0xdaa6a6=_0x1bc1ae[_0x2dc766(0x1d2)](0x1),_0x3e17b9=[];_0x3e17b9[_0x2dc766(0x1b8)](_0x2dc766(0x1c9)+_0xdaa6a6[_0x2dc766(0x1b6)]+_0x2dc766(0x1cb)),_0x3e17b9[_0x2dc766(0x1b8)]('');for(const _0x50ebab of _0xdaa6a6){const _0x48a5a3=_0x50ebab[_0x2dc766(0x1d9)](/\s{2,}/);if(_0x48a5a3[_0x2dc766(0x1b6)]>=0x5){const _0x16993d=_0x48a5a3[0x0][_0x2dc766(0x1da)](0x0,0xc),_0x2cd1aa=_0x48a5a3[0x1],_0x50ed9=_0x48a5a3[_0x48a5a3[_0x2dc766(0x1b6)]-0x2]||'',_0x589189=_0x48a5a3[_0x48a5a3[_0x2dc766(0x1b6)]-0x1]||'';_0x3e17b9[_0x2dc766(0x1b8)]('\x20\x20'+_0x16993d+'\x20\x20'+_0x2cd1aa+'\x20\x20'+_0x50ed9+'\x20\x20'+_0x589189);}else _0x3e17b9['push']('\x20\x20'+_0x50ebab[_0x2dc766(0x1b0)]());}return _0x3e17b9['join']('\x0a');}function filterDockerImages(_0x3feac2){const _0xe2e3f8=a0_0x48516a,_0x5c261a=_0x3feac2['split']('\x0a')['filter'](_0x307486=>_0x307486[_0xe2e3f8(0x1b0)]()[_0xe2e3f8(0x1b6)]>0x0);if(_0x5c261a[_0xe2e3f8(0x1b6)]<=0x1)return'No\x20images\x20found';if(_0x5c261a[_0xe2e3f8(0x1b6)]<=0xf)return _0x3feac2[_0xe2e3f8(0x1b0)]();const _0x3c201a=_0x5c261a[_0xe2e3f8(0x1d2)](0x1),_0x2aa526=['Docker\x20images:\x20'+_0x3c201a[_0xe2e3f8(0x1b6)]+_0xe2e3f8(0x1cb)];_0x2aa526['push']('');const _0x1ec381=_0x3c201a['slice'](0x0,0x14);for(const _0x468a57 of _0x1ec381){const _0x583bb3=_0x468a57[_0xe2e3f8(0x1d9)](/\s{2,}/);if(_0x583bb3[_0xe2e3f8(0x1b6)]>=0x3){const _0x46f1bf=_0x583bb3[0x0],_0x19ed45=_0x583bb3[0x1],_0x5bfc4f=_0x583bb3[_0x583bb3[_0xe2e3f8(0x1b6)]-0x1]||'';_0x2aa526['push']('\x20\x20'+_0x46f1bf+':'+_0x19ed45+'\x20\x20'+_0x5bfc4f);}else _0x2aa526[_0xe2e3f8(0x1b8)]('\x20\x20'+_0x468a57[_0xe2e3f8(0x1b0)]());}return _0x3c201a[_0xe2e3f8(0x1b6)]>0x14&&_0x2aa526[_0xe2e3f8(0x1b8)](_0xe2e3f8(0x1ca)+(_0x3c201a['length']-0x14)+_0xe2e3f8(0x1bb)),_0x2aa526['join']('\x0a');}function filterDockerLogs(_0x3445f1){const _0x422b02=a0_0x48516a,_0x2d6d8f=_0x3445f1[_0x422b02(0x1d9)]('\x0a');if(_0x2d6d8f[_0x422b02(0x1b6)]<=0x32)return _0x3445f1;const _0xe29d9c=[];return _0xe29d9c['push'](..._0x2d6d8f[_0x422b02(0x1d2)](0x0,0x14)),_0xe29d9c['push'](_0x422b02(0x1d8)+(_0x2d6d8f[_0x422b02(0x1b6)]-0x28)+'\x20lines\x20truncated]\x20...\x0a'),_0xe29d9c[_0x422b02(0x1b8)](..._0x2d6d8f['slice'](-0x14)),_0xe29d9c[_0x422b02(0x1b8)]('\x0a('+_0x2d6d8f[_0x422b02(0x1b6)]+_0x422b02(0x1ae)),_0xe29d9c[_0x422b02(0x1d5)]('\x0a');}function filterKubectl(_0x111bb3,_0x193d4c){const _0x1b8090=a0_0x48516a,_0x2a6afb=_0x111bb3[_0x1b8090(0x1d9)]('\x0a')[_0x1b8090(0x1bc)](_0x22c84b=>_0x22c84b[_0x1b8090(0x1b0)]()[_0x1b8090(0x1b6)]>0x0);if(_0x2a6afb[_0x1b8090(0x1b6)]===0x0)return _0x1b8090(0x1c2);if(_0x2a6afb['length']<=0x14)return _0x111bb3['trim']();if(_0x193d4c===_0x1b8090(0x1c3)){const _0x145001=_0x2a6afb[0x0],_0xb2e2d8=_0x2a6afb[_0x1b8090(0x1d2)](0x1),_0x3538e4=[_0xb2e2d8[_0x1b8090(0x1b6)]+_0x1b8090(0x1be),'',_0x145001];return _0xb2e2d8[_0x1b8090(0x1b6)]<=0x1e?_0x3538e4[_0x1b8090(0x1b8)](..._0xb2e2d8):(_0x3538e4[_0x1b8090(0x1b8)](..._0xb2e2d8[_0x1b8090(0x1d2)](0x0,0x19)),_0x3538e4[_0x1b8090(0x1b8)]('...\x20+'+(_0xb2e2d8['length']-0x19)+_0x1b8090(0x1cc))),_0x3538e4['join']('\x0a');}if(_0x193d4c==='describe'){const _0x56f14d=[];let _0x22be41=![],_0x192d05=0x0;for(const _0x4361eb of _0x2a6afb){if(_0x4361eb['startsWith']('Events:')){_0x22be41=!![],_0x56f14d[_0x1b8090(0x1b8)](_0x4361eb);continue;}if(_0x22be41){_0x192d05++;if(_0x192d05<=0x5)_0x56f14d[_0x1b8090(0x1b8)](_0x4361eb);}else _0x56f14d['push'](_0x4361eb);}return _0x192d05>0x5&&_0x56f14d[_0x1b8090(0x1b8)](_0x1b8090(0x1ca)+(_0x192d05-0x5)+_0x1b8090(0x1de)),_0x56f14d[_0x1b8090(0x1d5)]('\x0a');}if(_0x193d4c==='logs')return filterDockerLogs(_0x111bb3);const _0x567bd8=_0x2a6afb[_0x1b8090(0x1d2)](0x0,0x1e);return _0x2a6afb[_0x1b8090(0x1b6)]>0x1e&&_0x567bd8[_0x1b8090(0x1b8)](_0x1b8090(0x1c5)+(_0x2a6afb['length']-0x1e)+_0x1b8090(0x1ba)),_0x567bd8['join']('\x0a');}function filterRuff(_0xade880){const _0x46cc7f=a0_0x48516a,_0x3d73b3=_0xade880[_0x46cc7f(0x1d9)]('\x0a')[_0x46cc7f(0x1bc)](_0x4bc88e=>_0x4bc88e[_0x46cc7f(0x1b0)]()['length']>0x0);if(_0x3d73b3[_0x46cc7f(0x1b6)]===0x0)return'Ruff:\x20no\x20issues\x20found';if(_0xade880[_0x46cc7f(0x1c6)](_0x46cc7f(0x1dd))||_0xade880['includes']('Found\x200\x20error'))return _0x46cc7f(0x1af);const _0x39692b=_0xade880[_0x46cc7f(0x1c1)](/Found (\d+) error/),_0x51456d=_0x39692b?parseInt(_0x39692b[0x1]):_0x3d73b3['length'],_0x2a94f9={},_0x4412af=[];for(const _0x8db899 of _0x3d73b3){const _0x238344=_0x8db899[_0x46cc7f(0x1c1)](/^([^:]+:\d+:\d+):\s*(.*)/);if(_0x238344){const _0x525efc=_0x238344[0x1],_0x133d5b=_0x525efc[_0x46cc7f(0x1d9)](':')[0x0];if(!_0x2a94f9[_0x133d5b])_0x2a94f9[_0x133d5b]=[];_0x2a94f9[_0x133d5b][_0x46cc7f(0x1b8)](_0x8db899);}else _0x4412af['push'](_0x8db899);}const _0x581fa0=Object[_0x46cc7f(0x1d3)](_0x2a94f9);if(_0x581fa0[_0x46cc7f(0x1b6)]===0x0){if(_0x3d73b3[_0x46cc7f(0x1b6)]<=0x14)return _0xade880[_0x46cc7f(0x1b0)]();return _0x3d73b3['slice'](0x0,0xf)[_0x46cc7f(0x1d5)]('\x0a')+(_0x46cc7f(0x1b3)+(_0x3d73b3[_0x46cc7f(0x1b6)]-0xf)+_0x46cc7f(0x1dc));}const _0x32fe8e=[_0x46cc7f(0x1bd)+_0x51456d+_0x46cc7f(0x1c8)+_0x581fa0[_0x46cc7f(0x1b6)]+_0x46cc7f(0x1b9)];_0x32fe8e[_0x46cc7f(0x1b8)]('');const _0x3d3759=0xa;for(const _0x4e6db1 of _0x581fa0[_0x46cc7f(0x1d2)](0x0,_0x3d3759)){const _0x256edc=_0x2a94f9[_0x4e6db1];if(_0x256edc[_0x46cc7f(0x1b6)]<=0x3){for(const _0x13138c of _0x256edc)_0x32fe8e['push']('\x20\x20'+_0x13138c);}else _0x32fe8e[_0x46cc7f(0x1b8)]('\x20\x20'+_0x256edc[0x0]),_0x32fe8e[_0x46cc7f(0x1b8)](_0x46cc7f(0x1c0)+_0x256edc[_0x46cc7f(0x1b6)]+_0x46cc7f(0x1c8)+_0x4e6db1+')');}return _0x581fa0['length']>_0x3d3759&&_0x32fe8e[_0x46cc7f(0x1b8)](_0x46cc7f(0x1ca)+(_0x581fa0['length']-_0x3d3759)+_0x46cc7f(0x1ce)),_0x32fe8e['join']('\x0a');}
@@ -1 +1 @@
1
- 'use strict';const a0_0x175bae=a0_0x303f;(function(_0x2524d0,_0x4eb1d6){const _0x29f568=a0_0x303f,_0x348b71=_0x2524d0();while(!![]){try{const _0x3281f9=parseInt(_0x29f568(0x15f))/0x1*(parseInt(_0x29f568(0x16a))/0x2)+parseInt(_0x29f568(0x163))/0x3*(parseInt(_0x29f568(0x169))/0x4)+parseInt(_0x29f568(0x15a))/0x5+-parseInt(_0x29f568(0x15c))/0x6*(parseInt(_0x29f568(0x161))/0x7)+-parseInt(_0x29f568(0x156))/0x8+parseInt(_0x29f568(0x162))/0x9*(-parseInt(_0x29f568(0x159))/0xa)+parseInt(_0x29f568(0x16b))/0xb*(parseInt(_0x29f568(0x165))/0xc);if(_0x3281f9===_0x4eb1d6)break;else _0x348b71['push'](_0x348b71['shift']());}catch(_0x57a3df){_0x348b71['push'](_0x348b71['shift']());}}}(a0_0x1f87,0xa5776));function a0_0x1f87(){const _0x65d5=['defineProperty','stripAnsi','9081880bXwlQO','6766505fKTqPo','split','5676714bIHSkt','push','slice','1DhulyH','__esModule','7EvlrQO','9BvPKch','6447GlKVlv','softTruncate','8132832WTSVSN','length','\x20[x','collapseDuplicates','1592xMdwWr','468568RfWYMp','22QKlWcR','trim','join','10130416qGZOUh'];a0_0x1f87=function(){return _0x65d5;};return a0_0x1f87();}Object[a0_0x175bae(0x157)](exports,a0_0x175bae(0x160),{'value':!![]}),exports[a0_0x175bae(0x158)]=stripAnsi,exports[a0_0x175bae(0x168)]=collapseDuplicates,exports[a0_0x175bae(0x164)]=softTruncate;function stripAnsi(_0x48201c){const _0x3e1d22=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g;return _0x48201c['replace'](_0x3e1d22,'');}function a0_0x303f(_0x418092,_0x34d094){const _0x1f8786=a0_0x1f87();return a0_0x303f=function(_0x303f26,_0x465917){_0x303f26=_0x303f26-0x155;let _0x463c8e=_0x1f8786[_0x303f26];return _0x463c8e;},a0_0x303f(_0x418092,_0x34d094);}function collapseDuplicates(_0xfbdc18){const _0x15b258=a0_0x175bae,_0xa9b3af=_0xfbdc18[_0x15b258(0x15b)]('\x0a');if(_0xa9b3af[_0x15b258(0x166)]<=0x1)return _0xfbdc18;const _0x38332b=[];let _0x5c51e2=_0xa9b3af[0x0],_0x3e2465=0x1;for(let _0x5da2a8=0x1;_0x5da2a8<_0xa9b3af['length'];_0x5da2a8++){const _0x3c8c8b=_0xa9b3af[_0x5da2a8];_0x3c8c8b===_0x5c51e2&&_0x3c8c8b[_0x15b258(0x16c)]()[_0x15b258(0x166)]>0x0?_0x3e2465++:(_0x3e2465>0x1?_0x38332b[_0x15b258(0x15d)](_0x5c51e2+'\x20[x'+_0x3e2465+']'):_0x38332b['push'](_0x5c51e2),_0x5c51e2=_0x3c8c8b,_0x3e2465=0x1);}return _0x3e2465>0x1?_0x38332b[_0x15b258(0x15d)](_0x5c51e2+_0x15b258(0x167)+_0x3e2465+']'):_0x38332b['push'](_0x5c51e2),_0x38332b[_0x15b258(0x155)]('\x0a');}function softTruncate(_0x42a786,_0x372254=0x4e20){const _0x2f3f50=a0_0x175bae;if(_0x42a786['length']<=_0x372254)return _0x42a786;const _0x41c2fd=_0x42a786['split']('\x0a');if(_0x41c2fd[_0x2f3f50(0x166)]<=0xc8)return _0x42a786;const _0x30288a=0x32,_0xf48a56=0x96,_0x51125c=_0x41c2fd[_0x2f3f50(0x15e)](0x0,_0x30288a),_0x56a92f=_0x41c2fd[_0x2f3f50(0x15e)](_0x41c2fd[_0x2f3f50(0x166)]-_0xf48a56),_0x360986=_0x42a786[_0x2f3f50(0x166)]-(_0x51125c[_0x2f3f50(0x155)]('\x0a')['length']+_0x56a92f[_0x2f3f50(0x155)]('\x0a')[_0x2f3f50(0x166)]);return[..._0x51125c,'\x0a...\x20[TrimPrompt:\x20Truncated\x20'+_0x360986+'\x20characters\x20of\x20output]\x20...\x0a',..._0x56a92f][_0x2f3f50(0x155)]('\x0a');}
1
+ 'use strict';const a0_0x3d1644=a0_0x191b;(function(_0x2118c9,_0x1448be){const _0x31825b=a0_0x191b,_0x3482e7=_0x2118c9();while(!![]){try{const _0xe7c582=-parseInt(_0x31825b(0x1c0))/0x1*(-parseInt(_0x31825b(0x1cf))/0x2)+parseInt(_0x31825b(0x1cb))/0x3*(parseInt(_0x31825b(0x1d1))/0x4)+-parseInt(_0x31825b(0x1c1))/0x5+-parseInt(_0x31825b(0x1c3))/0x6+-parseInt(_0x31825b(0x1bf))/0x7+-parseInt(_0x31825b(0x1ce))/0x8*(-parseInt(_0x31825b(0x1c7))/0x9)+-parseInt(_0x31825b(0x1bc))/0xa;if(_0xe7c582===_0x1448be)break;else _0x3482e7['push'](_0x3482e7['shift']());}catch(_0x3e1fc1){_0x3482e7['push'](_0x3482e7['shift']());}}}(a0_0x54ca,0x488b1));Object[a0_0x3d1644(0x1bd)](exports,a0_0x3d1644(0x1c2),{'value':!![]}),exports['stripAnsi']=stripAnsi,exports[a0_0x3d1644(0x1c8)]=collapseDuplicates,exports[a0_0x3d1644(0x1cc)]=softTruncate;function stripAnsi(_0x47493e){const _0x36e491=a0_0x3d1644,_0x1254ec=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g;return _0x47493e[_0x36e491(0x1d0)](_0x1254ec,'');}function collapseDuplicates(_0x59a391){const _0x541e89=a0_0x3d1644,_0x58dda9=_0x59a391[_0x541e89(0x1d2)]('\x0a');if(_0x58dda9[_0x541e89(0x1c9)]<=0x1)return _0x59a391;const _0x1d9b68=[];let _0x23abb1=_0x58dda9[0x0],_0x14da49=0x1;for(let _0x37e20b=0x1;_0x37e20b<_0x58dda9[_0x541e89(0x1c9)];_0x37e20b++){const _0xc4e238=_0x58dda9[_0x37e20b];_0xc4e238===_0x23abb1&&_0xc4e238[_0x541e89(0x1c6)]()['length']>0x0?_0x14da49++:(_0x14da49>0x1?_0x1d9b68[_0x541e89(0x1cd)](_0x23abb1+_0x541e89(0x1ca)+_0x14da49+']'):_0x1d9b68[_0x541e89(0x1cd)](_0x23abb1),_0x23abb1=_0xc4e238,_0x14da49=0x1);}return _0x14da49>0x1?_0x1d9b68['push'](_0x23abb1+_0x541e89(0x1ca)+_0x14da49+']'):_0x1d9b68[_0x541e89(0x1cd)](_0x23abb1),_0x1d9b68['join']('\x0a');}function softTruncate(_0x562435,_0x41e81a=0x4e20){const _0xefbba3=a0_0x3d1644;if(_0x562435[_0xefbba3(0x1c9)]<=_0x41e81a)return _0x562435;const _0x4a0b31=_0x562435['split']('\x0a');if(_0x4a0b31[_0xefbba3(0x1c9)]<=0xc8)return _0x562435;const _0x2f14b5=0x32,_0x5201b5=0x96,_0xa12e0c=_0x4a0b31['slice'](0x0,_0x2f14b5),_0x298d94=_0x4a0b31[_0xefbba3(0x1c5)](_0x4a0b31[_0xefbba3(0x1c9)]-_0x5201b5),_0x2b2fcf=_0x562435['length']-(_0xa12e0c[_0xefbba3(0x1be)]('\x0a')[_0xefbba3(0x1c9)]+_0x298d94[_0xefbba3(0x1be)]('\x0a')[_0xefbba3(0x1c9)]);return[..._0xa12e0c,'\x0a...\x20[TrimPrompt:\x20Truncated\x20'+_0x2b2fcf+_0xefbba3(0x1c4),..._0x298d94][_0xefbba3(0x1be)]('\x0a');}function a0_0x191b(_0x7fb22b,_0x1ecfc1){const _0x54ca5e=a0_0x54ca();return a0_0x191b=function(_0x191bc1,_0x5adb00){_0x191bc1=_0x191bc1-0x1bc;let _0x979257=_0x54ca5e[_0x191bc1];return _0x979257;},a0_0x191b(_0x7fb22b,_0x1ecfc1);}function a0_0x54ca(){const _0x51f797=['length','\x20[x','1305036ECwbIC','softTruncate','push','54568LJJlBJ','828602uWssDo','replace','4LUmMRH','split','4441520BnbvSI','defineProperty','join','121401SwsrDm','1lwjkzq','469895AvHJDy','__esModule','2763180CdrOfH','\x20characters\x20of\x20output]\x20...\x0a','slice','trim','612Qqodry','collapseDuplicates'];a0_0x54ca=function(){return _0x51f797;};return a0_0x54ca();}
package/filters/git.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x59937d=a0_0x3219;function a0_0x2e17(){const _0x38068d=['defineProperty','8076488fgZzNG','split','match','__importStar','1044378KIXHOj','slice','2768DAOcBu','__esModule','*\x20Branch:\x20','No\x20modifications','entries','833675mkpqBI','map','\x20untracked\x20files)','replace','diff\x20--git','\x0aChanges:','---','filter','\x20\x20??\x20','startsWith','1810932NDHrji','get','path','push','unknown_file','getOwnPropertyDescriptor','Clean\x20working\x20tree','[file]\x20','length','2177112nESFrr','hasOwnProperty','\x20\x20...\x20(+','create','prototype','__createBinding','1773WKGrkY','join','filterGitLog','__setModuleDefault','\x0aUntracked\x20files:','basename','configurable','call','getOwnPropertyNames','default','177934VAJDqi','trim'];a0_0x2e17=function(){return _0x38068d;};return a0_0x2e17();}(function(_0x42dc05,_0x1b2ca7){const _0x20e92a=a0_0x3219,_0x22c16e=_0x42dc05();while(!![]){try{const _0x2add5c=parseInt(_0x20e92a(0x17d))/0x1+-parseInt(_0x20e92a(0x184))/0x2+parseInt(_0x20e92a(0x1a4))/0x3*(parseInt(_0x20e92a(0x186))/0x4)+-parseInt(_0x20e92a(0x18b))/0x5+-parseInt(_0x20e92a(0x195))/0x6+-parseInt(_0x20e92a(0x19e))/0x7+parseInt(_0x20e92a(0x180))/0x8;if(_0x2add5c===_0x1b2ca7)break;else _0x22c16e['push'](_0x22c16e['shift']());}catch(_0x328ef9){_0x22c16e['push'](_0x22c16e['shift']());}}}(a0_0x2e17,0x47f31));function a0_0x3219(_0x49da2f,_0x2cae01){const _0x2e1703=a0_0x2e17();return a0_0x3219=function(_0x3219b8,_0x286634){_0x3219b8=_0x3219b8-0x175;let _0x47452a=_0x2e1703[_0x3219b8];return _0x47452a;},a0_0x3219(_0x49da2f,_0x2cae01);}var __createBinding=this&&this[a0_0x59937d(0x1a3)]||(Object[a0_0x59937d(0x1a1)]?function(_0x1fc1f6,_0x4fb5ce,_0x567964,_0x140b56){const _0x1edcf8=a0_0x59937d;if(_0x140b56===undefined)_0x140b56=_0x567964;var _0x5ef28c=Object[_0x1edcf8(0x19a)](_0x4fb5ce,_0x567964);(!_0x5ef28c||(_0x1edcf8(0x196)in _0x5ef28c?!_0x4fb5ce[_0x1edcf8(0x187)]:_0x5ef28c['writable']||_0x5ef28c[_0x1edcf8(0x179)]))&&(_0x5ef28c={'enumerable':!![],'get':function(){return _0x4fb5ce[_0x567964];}}),Object[_0x1edcf8(0x17f)](_0x1fc1f6,_0x140b56,_0x5ef28c);}:function(_0x3dc04e,_0x309d20,_0x492adf,_0x4e8089){if(_0x4e8089===undefined)_0x4e8089=_0x492adf;_0x3dc04e[_0x4e8089]=_0x309d20[_0x492adf];}),__setModuleDefault=this&&this[a0_0x59937d(0x176)]||(Object[a0_0x59937d(0x1a1)]?function(_0x1e684d,_0x2b1971){const _0xf6af4f=a0_0x59937d;Object[_0xf6af4f(0x17f)](_0x1e684d,_0xf6af4f(0x17c),{'enumerable':!![],'value':_0x2b1971});}:function(_0x5aae3f,_0x5431d7){const _0x41a455=a0_0x59937d;_0x5aae3f[_0x41a455(0x17c)]=_0x5431d7;}),__importStar=this&&this[a0_0x59937d(0x183)]||(function(){var _0x52d536=function(_0x281daa){const _0xe6aa9f=a0_0x3219;return _0x52d536=Object[_0xe6aa9f(0x17b)]||function(_0x2545e1){const _0x5872e5=_0xe6aa9f;var _0x2693f1=[];for(var _0x56008a in _0x2545e1)if(Object[_0x5872e5(0x1a2)][_0x5872e5(0x19f)][_0x5872e5(0x17a)](_0x2545e1,_0x56008a))_0x2693f1[_0x2693f1['length']]=_0x56008a;return _0x2693f1;},_0x52d536(_0x281daa);};return function(_0x703957){const _0x99fb03=a0_0x3219;if(_0x703957&&_0x703957[_0x99fb03(0x187)])return _0x703957;var _0x17d025={};if(_0x703957!=null){for(var _0x563dcb=_0x52d536(_0x703957),_0x5968d=0x0;_0x5968d<_0x563dcb[_0x99fb03(0x19d)];_0x5968d++)if(_0x563dcb[_0x5968d]!==_0x99fb03(0x17c))__createBinding(_0x17d025,_0x703957,_0x563dcb[_0x5968d]);}return __setModuleDefault(_0x17d025,_0x703957),_0x17d025;};}());Object[a0_0x59937d(0x17f)](exports,a0_0x59937d(0x187),{'value':!![]}),exports['filterGitStatus']=filterGitStatus,exports[a0_0x59937d(0x175)]=filterGitLog,exports['filterGitDiff']=filterGitDiff;const path=__importStar(require(a0_0x59937d(0x197)));function filterGitStatus(_0x577195){const _0x1f5f32=a0_0x59937d,_0x9306db=_0x577195[_0x1f5f32(0x181)]('\x0a')[_0x1f5f32(0x18c)](_0x57e4d1=>_0x57e4d1[_0x1f5f32(0x17e)]())[_0x1f5f32(0x192)](_0x303c37=>_0x303c37[_0x1f5f32(0x19d)]>0x0);if(_0x9306db['length']===0x0)return _0x1f5f32(0x19b);const _0x5d22d4=[],_0x3dad5e=[],_0x328bca=[];for(const _0x39ab04 of _0x9306db){if(_0x39ab04[_0x1f5f32(0x194)]('##')){const _0x163754=_0x39ab04[_0x1f5f32(0x18e)](/^##\s*/,'');_0x5d22d4[_0x1f5f32(0x198)](_0x1f5f32(0x188)+_0x163754);}else _0x39ab04[_0x1f5f32(0x194)]('??')?_0x3dad5e[_0x1f5f32(0x198)](_0x39ab04['substring'](0x3)['trim']()):_0x328bca[_0x1f5f32(0x198)](_0x39ab04);}_0x328bca['length']>0x0&&(_0x5d22d4['push'](_0x1f5f32(0x190)),_0x5d22d4['push'](..._0x328bca[_0x1f5f32(0x18c)](_0x17dddb=>'\x20\x20'+_0x17dddb)));if(_0x3dad5e['length']>0x0){_0x5d22d4[_0x1f5f32(0x198)](_0x1f5f32(0x177));const _0x4b4dd5={},_0x583920=[];for(const _0x1a796a of _0x3dad5e){const _0xbb16ad=path['dirname'](_0x1a796a);_0xbb16ad==='.'||_0xbb16ad===''?_0x583920['push'](_0x1a796a):(!_0x4b4dd5[_0xbb16ad]&&(_0x4b4dd5[_0xbb16ad]=[]),_0x4b4dd5[_0xbb16ad]['push'](path[_0x1f5f32(0x178)](_0x1a796a)));}for(const [_0x33cb0a,_0x25b7a7]of Object[_0x1f5f32(0x18a)](_0x4b4dd5)){if(_0x25b7a7[_0x1f5f32(0x19d)]>0x5)_0x5d22d4['push'](_0x1f5f32(0x193)+_0x33cb0a+'/\x20('+_0x25b7a7['length']+_0x1f5f32(0x18d));else for(const _0x568748 of _0x25b7a7){_0x5d22d4[_0x1f5f32(0x198)](_0x1f5f32(0x193)+path[_0x1f5f32(0x1a5)](_0x33cb0a,_0x568748));}}for(const _0xd8297b of _0x583920){_0x5d22d4[_0x1f5f32(0x198)](_0x1f5f32(0x193)+_0xd8297b);}}return _0x5d22d4['join']('\x0a');}function filterGitLog(_0x356565){const _0x312343=a0_0x59937d,_0x500d8b=_0x356565[_0x312343(0x181)]('---END---')[_0x312343(0x18c)](_0x17f5bd=>_0x17f5bd[_0x312343(0x17e)]())[_0x312343(0x192)](_0x255608=>_0x255608[_0x312343(0x19d)]>0x0);if(_0x500d8b['length']===0x0)return _0x356565;const _0x3ad457=[];for(const _0xe75a90 of _0x500d8b){const _0x2c1299=_0xe75a90['split']('\x0a'),_0x4da6a1=_0x2c1299[0x0]||'',_0x45d5d9=_0x2c1299['slice'](0x1)[_0x312343(0x18c)](_0x3e5b4f=>_0x3e5b4f[_0x312343(0x17e)]())[_0x312343(0x192)](_0x3cc709=>_0x3cc709[_0x312343(0x19d)]>0x0);_0x3ad457[_0x312343(0x198)]('-\x20'+_0x4da6a1),_0x45d5d9[_0x312343(0x19d)]>0x0&&(_0x3ad457[_0x312343(0x198)]('\x20\x20'+_0x45d5d9[0x0]),_0x45d5d9['length']>0x1&&_0x3ad457[_0x312343(0x198)](_0x312343(0x1a0)+(_0x45d5d9[_0x312343(0x19d)]-0x1)+'\x20lines\x20of\x20description)'));}return _0x3ad457[_0x312343(0x1a5)]('\x0a');}function filterGitDiff(_0x1c78ee){const _0x426eb2=a0_0x59937d,_0xaa157a=_0x1c78ee[_0x426eb2(0x181)]('\x0a'),_0x2d5a=[];let _0x23dfa2='',_0x5f1e90=0x0,_0x96aa21=0x0,_0x239dc1=[];const _0x38b250=()=>{const _0x429298=_0x426eb2;if(_0x23dfa2&&(_0x5f1e90>0x0||_0x96aa21>0x0)){_0x2d5a[_0x429298(0x198)](_0x429298(0x19c)+_0x23dfa2+'\x20(+'+_0x5f1e90+'\x20-'+_0x96aa21+')');const _0x575c7e=0xa,_0x21632f=_0x239dc1[_0x429298(0x185)](0x0,_0x575c7e);for(const _0x4b10cd of _0x21632f){_0x2d5a['push']('\x20\x20'+_0x4b10cd);}const _0x19ec0c=_0x5f1e90+_0x96aa21-_0x575c7e;_0x19ec0c>0x0&&_0x2d5a[_0x429298(0x198)]('\x20\x20...\x20+'+_0x19ec0c+'\x20more\x20modifications');}_0x5f1e90=0x0,_0x96aa21=0x0,_0x239dc1=[];};for(const _0x578484 of _0xaa157a){if(_0x578484[_0x426eb2(0x194)](_0x426eb2(0x18f))){_0x38b250();const _0x5e0a26=_0x578484[_0x426eb2(0x182)](/\sb\/(.+)$/);_0x23dfa2=_0x5e0a26?_0x5e0a26[0x1]:_0x426eb2(0x199);}else{if(_0x578484[_0x426eb2(0x194)]('+')&&!_0x578484['startsWith']('+++'))_0x5f1e90++,_0x239dc1['push'](_0x578484);else _0x578484[_0x426eb2(0x194)]('-')&&!_0x578484[_0x426eb2(0x194)](_0x426eb2(0x191))&&(_0x96aa21++,_0x239dc1[_0x426eb2(0x198)](_0x578484));}}_0x38b250();const _0x511857=_0x2d5a['join']('\x0a');return _0x511857['length']>0x0?_0x511857:_0x426eb2(0x189);}
1
+ 'use strict';const a0_0x55c91b=a0_0xf8d6;(function(_0x1cac55,_0x12c94a){const _0x5b2941=a0_0xf8d6,_0x1d58af=_0x1cac55();while(!![]){try{const _0x4e350b=parseInt(_0x5b2941(0x19e))/0x1+-parseInt(_0x5b2941(0x1b1))/0x2*(-parseInt(_0x5b2941(0x192))/0x3)+parseInt(_0x5b2941(0x188))/0x4+-parseInt(_0x5b2941(0x1ad))/0x5+parseInt(_0x5b2941(0x1a9))/0x6+parseInt(_0x5b2941(0x186))/0x7+-parseInt(_0x5b2941(0x182))/0x8;if(_0x4e350b===_0x12c94a)break;else _0x1d58af['push'](_0x1d58af['shift']());}catch(_0x15e0fe){_0x1d58af['push'](_0x1d58af['shift']());}}}(a0_0x5350,0x75be8));function a0_0xf8d6(_0x564d7a,_0x10d514){const _0x53508e=a0_0x5350();return a0_0xf8d6=function(_0xf8d66b,_0x311005){_0xf8d66b=_0xf8d66b-0x180;let _0x34900d=_0x53508e[_0xf8d66b];return _0x34900d;},a0_0xf8d6(_0x564d7a,_0x10d514);}var __createBinding=this&&this[a0_0x55c91b(0x18d)]||(Object['create']?function(_0x1ffcf1,_0x28a1fa,_0x16c12e,_0x84d9d){const _0x11c944=a0_0x55c91b;if(_0x84d9d===undefined)_0x84d9d=_0x16c12e;var _0x2a8166=Object['getOwnPropertyDescriptor'](_0x28a1fa,_0x16c12e);(!_0x2a8166||(_0x11c944(0x18f)in _0x2a8166?!_0x28a1fa['__esModule']:_0x2a8166['writable']||_0x2a8166[_0x11c944(0x1a7)]))&&(_0x2a8166={'enumerable':!![],'get':function(){return _0x28a1fa[_0x16c12e];}}),Object[_0x11c944(0x185)](_0x1ffcf1,_0x84d9d,_0x2a8166);}:function(_0x2b9b2f,_0x33d670,_0x3ebe3a,_0x348046){if(_0x348046===undefined)_0x348046=_0x3ebe3a;_0x2b9b2f[_0x348046]=_0x33d670[_0x3ebe3a];}),__setModuleDefault=this&&this[a0_0x55c91b(0x187)]||(Object[a0_0x55c91b(0x189)]?function(_0x30f7c5,_0x1f30e0){const _0x22651d=a0_0x55c91b;Object[_0x22651d(0x185)](_0x30f7c5,'default',{'enumerable':!![],'value':_0x1f30e0});}:function(_0x37c7d3,_0x313158){const _0x334999=a0_0x55c91b;_0x37c7d3[_0x334999(0x19c)]=_0x313158;}),__importStar=this&&this[a0_0x55c91b(0x19f)]||(function(){var _0x3b5c3f=function(_0x515e17){return _0x3b5c3f=Object['getOwnPropertyNames']||function(_0x5bead3){const _0x306942=a0_0xf8d6;var _0x2a2e7b=[];for(var _0x1f7313 in _0x5bead3)if(Object['prototype'][_0x306942(0x198)]['call'](_0x5bead3,_0x1f7313))_0x2a2e7b[_0x2a2e7b[_0x306942(0x183)]]=_0x1f7313;return _0x2a2e7b;},_0x3b5c3f(_0x515e17);};return function(_0x81e12e){const _0x3bbe89=a0_0xf8d6;if(_0x81e12e&&_0x81e12e[_0x3bbe89(0x1a4)])return _0x81e12e;var _0x275169={};if(_0x81e12e!=null){for(var _0x202d96=_0x3b5c3f(_0x81e12e),_0x4fe696=0x0;_0x4fe696<_0x202d96['length'];_0x4fe696++)if(_0x202d96[_0x4fe696]!==_0x3bbe89(0x19c))__createBinding(_0x275169,_0x81e12e,_0x202d96[_0x4fe696]);}return __setModuleDefault(_0x275169,_0x81e12e),_0x275169;};}());Object[a0_0x55c91b(0x185)](exports,'__esModule',{'value':!![]}),exports[a0_0x55c91b(0x1a5)]=filterGitStatus,exports[a0_0x55c91b(0x1ac)]=filterGitLog,exports[a0_0x55c91b(0x180)]=filterGitDiff;function a0_0x5350(){const _0x2f357f=['__esModule','filterGitStatus','push','configurable','filter','1404162THkIrJ','dirname','\x20more\x20modifications','filterGitLog','3576225XgDyJW','No\x20modifications','\x20(+','unknown_file','4854DGLouJ','filterGitDiff','\x0aUntracked\x20files:','14494800UbcfFP','length','---END---','defineProperty','5284006ttOLrk','__setModuleDefault','2707880vqORto','create','substring','map','\x20\x20??\x20','__createBinding','/\x20(','get','+++','*\x20Branch:\x20','1011oKhIOv','split','[file]\x20','Clean\x20working\x20tree','\x20untracked\x20files)','\x20\x20...\x20(+','hasOwnProperty','slice','---','join','default','trim','525621TymHIj','__importStar','startsWith','\x20lines\x20of\x20description)','\x0aChanges:','diff\x20--git'];a0_0x5350=function(){return _0x2f357f;};return a0_0x5350();}const path=__importStar(require('path'));function filterGitStatus(_0x1ed289){const _0x4050b5=a0_0x55c91b,_0x52f166=_0x1ed289[_0x4050b5(0x193)]('\x0a')[_0x4050b5(0x18b)](_0x1e6e56=>_0x1e6e56[_0x4050b5(0x19d)]())[_0x4050b5(0x1a8)](_0x5f4068=>_0x5f4068['length']>0x0);if(_0x52f166[_0x4050b5(0x183)]===0x0)return _0x4050b5(0x195);const _0x234269=[],_0x722358=[],_0x35ec3c=[];for(const _0x27493d of _0x52f166){if(_0x27493d[_0x4050b5(0x1a0)]('##')){const _0xd3981e=_0x27493d['replace'](/^##\s*/,'');_0x234269[_0x4050b5(0x1a6)](_0x4050b5(0x191)+_0xd3981e);}else _0x27493d[_0x4050b5(0x1a0)]('??')?_0x722358[_0x4050b5(0x1a6)](_0x27493d[_0x4050b5(0x18a)](0x3)[_0x4050b5(0x19d)]()):_0x35ec3c[_0x4050b5(0x1a6)](_0x27493d);}_0x35ec3c[_0x4050b5(0x183)]>0x0&&(_0x234269['push'](_0x4050b5(0x1a2)),_0x234269['push'](..._0x35ec3c[_0x4050b5(0x18b)](_0x321ee6=>'\x20\x20'+_0x321ee6)));if(_0x722358[_0x4050b5(0x183)]>0x0){_0x234269[_0x4050b5(0x1a6)](_0x4050b5(0x181));const _0x1effb4={},_0xa0189e=[];for(const _0x336d20 of _0x722358){const _0x4753a4=path[_0x4050b5(0x1aa)](_0x336d20);_0x4753a4==='.'||_0x4753a4===''?_0xa0189e[_0x4050b5(0x1a6)](_0x336d20):(!_0x1effb4[_0x4753a4]&&(_0x1effb4[_0x4753a4]=[]),_0x1effb4[_0x4753a4]['push'](path['basename'](_0x336d20)));}for(const [_0x39a4a0,_0x16c0c6]of Object['entries'](_0x1effb4)){if(_0x16c0c6[_0x4050b5(0x183)]>0x5)_0x234269[_0x4050b5(0x1a6)](_0x4050b5(0x18c)+_0x39a4a0+_0x4050b5(0x18e)+_0x16c0c6[_0x4050b5(0x183)]+_0x4050b5(0x196));else for(const _0x22e451 of _0x16c0c6){_0x234269[_0x4050b5(0x1a6)]('\x20\x20??\x20'+path[_0x4050b5(0x19b)](_0x39a4a0,_0x22e451));}}for(const _0x15f89c of _0xa0189e){_0x234269[_0x4050b5(0x1a6)](_0x4050b5(0x18c)+_0x15f89c);}}return _0x234269[_0x4050b5(0x19b)]('\x0a');}function filterGitLog(_0x175fa3){const _0x5ef850=a0_0x55c91b,_0x3313c7=_0x175fa3[_0x5ef850(0x193)](_0x5ef850(0x184))['map'](_0x4ed7a8=>_0x4ed7a8['trim']())[_0x5ef850(0x1a8)](_0x2cfc6b=>_0x2cfc6b[_0x5ef850(0x183)]>0x0);if(_0x3313c7[_0x5ef850(0x183)]===0x0)return _0x175fa3;const _0x3e0c6b=[];for(const _0x43fec1 of _0x3313c7){const _0xcc7000=_0x43fec1['split']('\x0a'),_0x576cbc=_0xcc7000[0x0]||'',_0x312660=_0xcc7000['slice'](0x1)[_0x5ef850(0x18b)](_0x7f24cf=>_0x7f24cf[_0x5ef850(0x19d)]())[_0x5ef850(0x1a8)](_0xefe871=>_0xefe871[_0x5ef850(0x183)]>0x0);_0x3e0c6b['push']('-\x20'+_0x576cbc),_0x312660['length']>0x0&&(_0x3e0c6b['push']('\x20\x20'+_0x312660[0x0]),_0x312660['length']>0x1&&_0x3e0c6b['push'](_0x5ef850(0x197)+(_0x312660[_0x5ef850(0x183)]-0x1)+_0x5ef850(0x1a1)));}return _0x3e0c6b['join']('\x0a');}function filterGitDiff(_0x4c5dd8){const _0x262ffa=a0_0x55c91b,_0x1e27e2=_0x4c5dd8[_0x262ffa(0x193)]('\x0a'),_0x1f1b30=[];let _0x296b7b='',_0x4cc2ed=0x0,_0x6de117=0x0,_0x1112a1=[];const _0x1271ae=()=>{const _0x5378ba=_0x262ffa;if(_0x296b7b&&(_0x4cc2ed>0x0||_0x6de117>0x0)){_0x1f1b30[_0x5378ba(0x1a6)](_0x5378ba(0x194)+_0x296b7b+_0x5378ba(0x1af)+_0x4cc2ed+'\x20-'+_0x6de117+')');const _0x528f95=0xa,_0x27f4e2=_0x1112a1[_0x5378ba(0x199)](0x0,_0x528f95);for(const _0x58cf0f of _0x27f4e2){_0x1f1b30[_0x5378ba(0x1a6)]('\x20\x20'+_0x58cf0f);}const _0x3635ce=_0x4cc2ed+_0x6de117-_0x528f95;_0x3635ce>0x0&&_0x1f1b30['push']('\x20\x20...\x20+'+_0x3635ce+_0x5378ba(0x1ab));}_0x4cc2ed=0x0,_0x6de117=0x0,_0x1112a1=[];};for(const _0x569231 of _0x1e27e2){if(_0x569231[_0x262ffa(0x1a0)](_0x262ffa(0x1a3))){_0x1271ae();const _0x523f79=_0x569231['match'](/\sb\/(.+)$/);_0x296b7b=_0x523f79?_0x523f79[0x1]:_0x262ffa(0x1b0);}else{if(_0x569231[_0x262ffa(0x1a0)]('+')&&!_0x569231['startsWith'](_0x262ffa(0x190)))_0x4cc2ed++,_0x1112a1[_0x262ffa(0x1a6)](_0x569231);else _0x569231['startsWith']('-')&&!_0x569231[_0x262ffa(0x1a0)](_0x262ffa(0x19a))&&(_0x6de117++,_0x1112a1[_0x262ffa(0x1a6)](_0x569231));}}_0x1271ae();const _0x239839=_0x1f1b30[_0x262ffa(0x19b)]('\x0a');return _0x239839[_0x262ffa(0x183)]>0x0?_0x239839:_0x262ffa(0x1ae);}
package/filters/go.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x1dcdff=a0_0xde7e;function a0_0xde7e(_0x29554c,_0x2f4fd2){const _0x150de8=a0_0x150d();return a0_0xde7e=function(_0xde7ea,_0xc5b37c){_0xde7ea=_0xde7ea-0x152;let _0x29c889=_0x150de8[_0xde7ea];return _0x29c889;},a0_0xde7e(_0x29554c,_0x2f4fd2);}(function(_0x2a170f,_0x4de6f3){const _0x2d8026=a0_0xde7e,_0x488b6f=_0x2a170f();while(!![]){try{const _0xc13807=-parseInt(_0x2d8026(0x152))/0x1*(-parseInt(_0x2d8026(0x15c))/0x2)+parseInt(_0x2d8026(0x16b))/0x3*(parseInt(_0x2d8026(0x15e))/0x4)+-parseInt(_0x2d8026(0x16f))/0x5+parseInt(_0x2d8026(0x161))/0x6*(parseInt(_0x2d8026(0x158))/0x7)+parseInt(_0x2d8026(0x15a))/0x8*(parseInt(_0x2d8026(0x166))/0x9)+parseInt(_0x2d8026(0x157))/0xa*(-parseInt(_0x2d8026(0x176))/0xb)+-parseInt(_0x2d8026(0x165))/0xc*(-parseInt(_0x2d8026(0x16c))/0xd);if(_0xc13807===_0x4de6f3)break;else _0x488b6f['push'](_0x488b6f['shift']());}catch(_0x19be0b){_0x488b6f['push'](_0x488b6f['shift']());}}}(a0_0x150d,0x39f0b));function a0_0x150d(){const _0x24fcdc=['includes','3693DJKuJi','13IxUnhQ','\x20more\x20issues','trim','2219310iHKbwT','\x20failed,\x20','Go\x20test:\x20no\x20test\x20files','\x20more\x20failures','---\x20SKIP:','__esModule','\x20\x20...\x20+','1155044uHLgHu','slice','defineProperty','Go\x20vet:\x20no\x20issues\x20found','join','lines','...\x20+','split','Go\x20test:\x20all\x20tests\x20passed','\x20\x20\x20\x20...\x20+','2ybihGB','\x20issues\x20found','\x20\x20\x20\x20','\x0aFailures:','Go\x20vet:\x20','40GsjICC','7yBlWXl','length','28984eGSpdc','filter','181054AQuGXu','===\x20RUN','56xHEhJS','\x20skipped','push','2261634TjJnOd','filterGoTest','min','filterGoVet','5572596mFBvQh','153yMiMST','Go\x20test:\x20','match','startsWith'];a0_0x150d=function(){return _0x24fcdc;};return a0_0x150d();}Object[a0_0x1dcdff(0x178)](exports,a0_0x1dcdff(0x174),{'value':!![]}),exports[a0_0x1dcdff(0x162)]=filterGoTest,exports[a0_0x1dcdff(0x164)]=filterGoVet;function filterGoTest(_0x109b3e){const _0x38de09=a0_0x1dcdff,_0x835454=_0x109b3e['split']('\x0a');let _0x5062fa=0x0,_0x4beb31=0x0,_0x488cfb=0x0;const _0x1226c5=[],_0x3409a4=[];let _0x389de7=null;for(const _0x49d1c2 of _0x835454){const _0x162b3f=_0x49d1c2['trim'](),_0x5d7ac1=_0x162b3f[_0x38de09(0x168)](/^ok\s+\S+\s+[\d.]+s/);if(_0x5d7ac1){_0x3409a4[_0x38de09(0x160)](_0x162b3f);continue;}const _0x1e81c3=_0x162b3f[_0x38de09(0x168)](/^FAIL\s+\S+/);if(_0x1e81c3){_0x3409a4[_0x38de09(0x160)](_0x162b3f);continue;}const _0x38f936=_0x162b3f[_0x38de09(0x168)](/^--- PASS:/);if(_0x38f936){_0x5062fa++;continue;}const _0x42be2d=_0x162b3f[_0x38de09(0x168)](/^--- FAIL:\s+(\S+)/);if(_0x42be2d){if(_0x389de7)_0x1226c5[_0x38de09(0x160)](_0x389de7);_0x389de7={'name':_0x42be2d[0x1],'lines':[]},_0x4beb31++;continue;}if(_0x162b3f[_0x38de09(0x169)](_0x38de09(0x173))){_0x488cfb++;continue;}_0x389de7&&_0x162b3f[_0x38de09(0x159)]>0x0&&!_0x162b3f[_0x38de09(0x169)](_0x38de09(0x15d))&&_0x389de7[_0x38de09(0x17b)][_0x38de09(0x160)](_0x49d1c2),_0x162b3f['startsWith'](_0x38de09(0x15d))&&(_0x389de7&&(_0x1226c5[_0x38de09(0x160)](_0x389de7),_0x389de7=null));}if(_0x389de7)_0x1226c5[_0x38de09(0x160)](_0x389de7);if(_0x5062fa===0x0&&_0x4beb31===0x0&&_0x488cfb===0x0){if(_0x109b3e[_0x38de09(0x16a)]('PASS')&&!_0x109b3e[_0x38de09(0x16a)]('FAIL'))return _0x38de09(0x17e);if(_0x109b3e[_0x38de09(0x16a)]('no\x20test\x20files'))return _0x38de09(0x171);return _0x109b3e;}if(_0x4beb31===0x0){const _0x22b0f7=[_0x38de09(0x167)+_0x5062fa+'\x20passed'];if(_0x488cfb>0x0)_0x22b0f7['push'](_0x488cfb+'\x20skipped');return _0x22b0f7[_0x38de09(0x17a)](',\x20');}const _0x4f464d=[_0x38de09(0x167)+_0x5062fa+'\x20passed,\x20'+_0x4beb31+_0x38de09(0x170)+_0x488cfb+_0x38de09(0x15f)];if(_0x1226c5[_0x38de09(0x159)]>0x0){_0x4f464d[_0x38de09(0x160)](_0x38de09(0x155));const _0x10584b=0x3;for(let _0x510049=0x0;_0x510049<Math[_0x38de09(0x163)](_0x1226c5[_0x38de09(0x159)],_0x10584b);_0x510049++){const _0x57b41a=_0x1226c5[_0x510049];_0x4f464d[_0x38de09(0x160)]('\x20\x20'+(_0x510049+0x1)+'.\x20'+_0x57b41a['name']);for(const _0xfd882a of _0x57b41a[_0x38de09(0x17b)][_0x38de09(0x177)](0x0,0x5)){_0x4f464d[_0x38de09(0x160)](_0x38de09(0x154)+_0xfd882a[_0x38de09(0x16e)]());}_0x57b41a[_0x38de09(0x17b)][_0x38de09(0x159)]>0x5&&_0x4f464d[_0x38de09(0x160)](_0x38de09(0x17f)+(_0x57b41a[_0x38de09(0x17b)][_0x38de09(0x159)]-0x5)+'\x20more\x20lines');}_0x1226c5[_0x38de09(0x159)]>_0x10584b&&_0x4f464d[_0x38de09(0x160)](_0x38de09(0x175)+(_0x1226c5[_0x38de09(0x159)]-_0x10584b)+_0x38de09(0x172));}return _0x4f464d[_0x38de09(0x17a)]('\x0a');}function filterGoVet(_0x140db9){const _0x4331ee=a0_0x1dcdff,_0x2dd94e=_0x140db9[_0x4331ee(0x17d)]('\x0a')[_0x4331ee(0x15b)](_0x281897=>_0x281897[_0x4331ee(0x16e)]()[_0x4331ee(0x159)]>0x0);if(_0x2dd94e[_0x4331ee(0x159)]===0x0)return _0x4331ee(0x179);if(_0x2dd94e[_0x4331ee(0x159)]<=0x14)return _0x140db9[_0x4331ee(0x16e)]();const _0x477899=[_0x4331ee(0x156)+_0x2dd94e[_0x4331ee(0x159)]+_0x4331ee(0x153)];return _0x477899['push'](..._0x2dd94e[_0x4331ee(0x177)](0x0,0xa)),_0x2dd94e[_0x4331ee(0x159)]>0xa&&_0x477899[_0x4331ee(0x160)](_0x4331ee(0x17c)+(_0x2dd94e['length']-0xa)+_0x4331ee(0x16d)),_0x477899['join']('\x0a');}
1
+ 'use strict';function a0_0x23d0(_0x2bae1b,_0x370315){const _0x41693f=a0_0x4169();return a0_0x23d0=function(_0x23d02e,_0x3c3c25){_0x23d02e=_0x23d02e-0xf2;let _0x5044fa=_0x41693f[_0x23d02e];return _0x5044fa;},a0_0x23d0(_0x2bae1b,_0x370315);}const a0_0x438b24=a0_0x23d0;function a0_0x4169(){const _0x59f003=['\x20issues\x20found','7779585HLNods','6221hqxWoC','startsWith','min','16408340VhctUA','\x20more\x20issues','5wWCsIu','includes','\x20skipped','\x20\x20\x20\x20','trim','join','\x20passed,\x20','slice','push','12quFyOe','206ocNxmQ','\x20passed','no\x20test\x20files','filter','lines','Go\x20test:\x20','filterGoTest','split','name','\x20more\x20lines','__esModule','561753fvntpQ','Go\x20test:\x20no\x20test\x20files','\x20more\x20failures','\x20failed,\x20','12onVXyH','length','40CzUPAb','\x0aFailures:','21VJNCtt','FAIL','\x20\x20...\x20+','===\x20RUN','1703544rgCVMi','612804PFfQWq','filterGoVet','480453QlaDHE','...\x20+','match','---\x20SKIP:'];a0_0x4169=function(){return _0x59f003;};return a0_0x4169();}(function(_0x369ac4,_0x2bbab9){const _0x5be593=a0_0x23d0,_0x440d20=_0x369ac4();while(!![]){try{const _0x30e79e=parseInt(_0x5be593(0x104))/0x1*(-parseInt(_0x5be593(0x113))/0x2)+parseInt(_0x5be593(0xfe))/0x3*(-parseInt(_0x5be593(0x112))/0x4)+-parseInt(_0x5be593(0x109))/0x5*(parseInt(_0x5be593(0xfc))/0x6)+parseInt(_0x5be593(0xf7))/0x7*(-parseInt(_0x5be593(0xfb))/0x8)+parseInt(_0x5be593(0x11e))/0x9*(parseInt(_0x5be593(0xf5))/0xa)+parseInt(_0x5be593(0x103))/0xb*(parseInt(_0x5be593(0xf3))/0xc)+parseInt(_0x5be593(0x107))/0xd;if(_0x30e79e===_0x2bbab9)break;else _0x440d20['push'](_0x440d20['shift']());}catch(_0x431e83){_0x440d20['push'](_0x440d20['shift']());}}}(a0_0x4169,0x57228));Object['defineProperty'](exports,a0_0x438b24(0x11d),{'value':!![]}),exports[a0_0x438b24(0x119)]=filterGoTest,exports[a0_0x438b24(0xfd)]=filterGoVet;function filterGoTest(_0x83e679){const _0x5b3624=a0_0x438b24,_0x2ac6bd=_0x83e679[_0x5b3624(0x11a)]('\x0a');let _0x380745=0x0,_0x4b6465=0x0,_0x28123a=0x0;const _0x4a76fe=[],_0xe4643e=[];let _0x24cef8=null;for(const _0x6ac064 of _0x2ac6bd){const _0x2b1fd3=_0x6ac064[_0x5b3624(0x10d)](),_0x5ed7af=_0x2b1fd3['match'](/^ok\s+\S+\s+[\d.]+s/);if(_0x5ed7af){_0xe4643e[_0x5b3624(0x111)](_0x2b1fd3);continue;}const _0xf2a9c=_0x2b1fd3[_0x5b3624(0x100)](/^FAIL\s+\S+/);if(_0xf2a9c){_0xe4643e[_0x5b3624(0x111)](_0x2b1fd3);continue;}const _0xec58ca=_0x2b1fd3['match'](/^--- PASS:/);if(_0xec58ca){_0x380745++;continue;}const _0x43bba0=_0x2b1fd3[_0x5b3624(0x100)](/^--- FAIL:\s+(\S+)/);if(_0x43bba0){if(_0x24cef8)_0x4a76fe['push'](_0x24cef8);_0x24cef8={'name':_0x43bba0[0x1],'lines':[]},_0x4b6465++;continue;}if(_0x2b1fd3[_0x5b3624(0x105)](_0x5b3624(0x101))){_0x28123a++;continue;}_0x24cef8&&_0x2b1fd3[_0x5b3624(0xf4)]>0x0&&!_0x2b1fd3[_0x5b3624(0x105)](_0x5b3624(0xfa))&&_0x24cef8[_0x5b3624(0x117)][_0x5b3624(0x111)](_0x6ac064),_0x2b1fd3[_0x5b3624(0x105)](_0x5b3624(0xfa))&&(_0x24cef8&&(_0x4a76fe[_0x5b3624(0x111)](_0x24cef8),_0x24cef8=null));}if(_0x24cef8)_0x4a76fe[_0x5b3624(0x111)](_0x24cef8);if(_0x380745===0x0&&_0x4b6465===0x0&&_0x28123a===0x0){if(_0x83e679[_0x5b3624(0x10a)]('PASS')&&!_0x83e679[_0x5b3624(0x10a)](_0x5b3624(0xf8)))return'Go\x20test:\x20all\x20tests\x20passed';if(_0x83e679[_0x5b3624(0x10a)](_0x5b3624(0x115)))return _0x5b3624(0x11f);return _0x83e679;}if(_0x4b6465===0x0){const _0x28c50e=[_0x5b3624(0x118)+_0x380745+_0x5b3624(0x114)];if(_0x28123a>0x0)_0x28c50e[_0x5b3624(0x111)](_0x28123a+'\x20skipped');return _0x28c50e['join'](',\x20');}const _0x1ab2c9=[_0x5b3624(0x118)+_0x380745+_0x5b3624(0x10f)+_0x4b6465+_0x5b3624(0xf2)+_0x28123a+_0x5b3624(0x10b)];if(_0x4a76fe['length']>0x0){_0x1ab2c9[_0x5b3624(0x111)](_0x5b3624(0xf6));const _0x458d64=0x3;for(let _0x27f01c=0x0;_0x27f01c<Math[_0x5b3624(0x106)](_0x4a76fe['length'],_0x458d64);_0x27f01c++){const _0x55d732=_0x4a76fe[_0x27f01c];_0x1ab2c9['push']('\x20\x20'+(_0x27f01c+0x1)+'.\x20'+_0x55d732[_0x5b3624(0x11b)]);for(const _0x28132b of _0x55d732[_0x5b3624(0x117)][_0x5b3624(0x110)](0x0,0x5)){_0x1ab2c9[_0x5b3624(0x111)](_0x5b3624(0x10c)+_0x28132b[_0x5b3624(0x10d)]());}_0x55d732[_0x5b3624(0x117)][_0x5b3624(0xf4)]>0x5&&_0x1ab2c9[_0x5b3624(0x111)]('\x20\x20\x20\x20...\x20+'+(_0x55d732[_0x5b3624(0x117)]['length']-0x5)+_0x5b3624(0x11c));}_0x4a76fe[_0x5b3624(0xf4)]>_0x458d64&&_0x1ab2c9[_0x5b3624(0x111)](_0x5b3624(0xf9)+(_0x4a76fe[_0x5b3624(0xf4)]-_0x458d64)+_0x5b3624(0x120));}return _0x1ab2c9['join']('\x0a');}function filterGoVet(_0x2d6427){const _0xd3d826=a0_0x438b24,_0x226e0f=_0x2d6427[_0xd3d826(0x11a)]('\x0a')[_0xd3d826(0x116)](_0x25e2fb=>_0x25e2fb[_0xd3d826(0x10d)]()[_0xd3d826(0xf4)]>0x0);if(_0x226e0f[_0xd3d826(0xf4)]===0x0)return'Go\x20vet:\x20no\x20issues\x20found';if(_0x226e0f[_0xd3d826(0xf4)]<=0x14)return _0x2d6427[_0xd3d826(0x10d)]();const _0x542b55=['Go\x20vet:\x20'+_0x226e0f['length']+_0xd3d826(0x102)];return _0x542b55[_0xd3d826(0x111)](..._0x226e0f[_0xd3d826(0x110)](0x0,0xa)),_0x226e0f[_0xd3d826(0xf4)]>0xa&&_0x542b55[_0xd3d826(0x111)](_0xd3d826(0xff)+(_0x226e0f[_0xd3d826(0xf4)]-0xa)+_0xd3d826(0x108)),_0x542b55[_0xd3d826(0x10e)]('\x0a');}
package/filters/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x4d4dbf=a0_0x28c9;(function(_0x1ea048,_0x484136){const _0x4f4f16=a0_0x28c9,_0x1e1021=_0x1ea048();while(!![]){try{const _0x474d1c=parseInt(_0x4f4f16(0x1d4))/0x1+parseInt(_0x4f4f16(0x20d))/0x2+-parseInt(_0x4f4f16(0x21c))/0x3+parseInt(_0x4f4f16(0x1fb))/0x4*(-parseInt(_0x4f4f16(0x1da))/0x5)+parseInt(_0x4f4f16(0x1f1))/0x6*(-parseInt(_0x4f4f16(0x1e1))/0x7)+-parseInt(_0x4f4f16(0x1ce))/0x8+-parseInt(_0x4f4f16(0x1e7))/0x9*(-parseInt(_0x4f4f16(0x217))/0xa);if(_0x474d1c===_0x484136)break;else _0x1e1021['push'](_0x1e1021['shift']());}catch(_0x17dfa3){_0x1e1021['push'](_0x1e1021['shift']());}}}(a0_0x7476,0xd2235));Object[a0_0x4d4dbf(0x1e5)](exports,a0_0x4d4dbf(0x219),{'value':!![]}),exports[a0_0x4d4dbf(0x21a)]=compressOutput,exports[a0_0x4d4dbf(0x1dd)]=rewriteCommand;const generic_1=require(a0_0x4d4dbf(0x209)),git_1=require(a0_0x4d4dbf(0x1de)),python_1=require(a0_0x4d4dbf(0x1c2)),js_1=require(a0_0x4d4dbf(0x1c9)),shell_1=require(a0_0x4d4dbf(0x1fa)),rust_1=require(a0_0x4d4dbf(0x1c8)),go_1=require(a0_0x4d4dbf(0x1e2)),devops_1=require(a0_0x4d4dbf(0x1cd)),redactor_1=require(a0_0x4d4dbf(0x1d3));function a0_0x28c9(_0x4cc443,_0x3cc9d0){const _0x7476ff=a0_0x7476();return a0_0x28c9=function(_0x28c95b,_0x2817d8){_0x28c95b=_0x28c95b-0x1be;let _0x41dc43=_0x7476ff[_0x28c95b];return _0x41dc43;},a0_0x28c9(_0x4cc443,_0x3cc9d0);}function compressOutput(_0x22ac5a,_0x174fa3,_0x2bd987,_0x44393c=!![]){const _0x221d91=a0_0x4d4dbf,_0x183c79=_0x22ac5a[_0x221d91(0x1f2)]();let _0x331668=_0x174fa3;_0x2bd987[_0x221d91(0x1f2)]()[_0x221d91(0x1d1)]>0x0&&(_0x331668=_0x174fa3+'\x0a'+_0x2bd987);let _0x249dfa=(0x0,generic_1['stripAnsi'])(_0x331668);_0x44393c&&(_0x249dfa=redactor_1[_0x221d91(0x201)][_0x221d91(0x1bf)](_0x249dfa));const _0x7f641a=_0x183c79[_0x221d91(0x218)]();try{if(_0x7f641a['includes'](_0x221d91(0x1ca))||_0x7f641a['includes'](_0x221d91(0x1f0)))return(0x0,git_1[_0x221d91(0x1eb)])(_0x249dfa);if(_0x7f641a['includes'](_0x221d91(0x1ec))||_0x7f641a[_0x221d91(0x1d0)](_0x221d91(0x1df)))return(0x0,git_1['filterGitLog'])(_0x249dfa);if(_0x7f641a['includes'](_0x221d91(0x1e3))||_0x7f641a[_0x221d91(0x1d0)](_0x221d91(0x213))||_0x7f641a['includes'](_0x221d91(0x1cf)))return(0x0,git_1[_0x221d91(0x1d2)])(_0x249dfa);if(_0x7f641a[_0x221d91(0x1d0)]('pytest')||_0x7f641a['match'](/python3?\s+-m\s+pytest/))return(0x0,python_1[_0x221d91(0x1fe)])(_0x249dfa);if(_0x7f641a[_0x221d91(0x1d0)](_0x221d91(0x1e0))||_0x7f641a[_0x221d91(0x1d0)](_0x221d91(0x207)))return(0x0,python_1[_0x221d91(0x1f3)])(_0x249dfa);if(_0x7f641a[_0x221d91(0x1d0)](_0x221d91(0x1f6))||_0x7f641a['includes'](_0x221d91(0x20e)))return(0x0,devops_1['filterRuff'])(_0x249dfa);if(_0x7f641a['includes'](_0x221d91(0x1f8))||_0x7f641a[_0x221d91(0x1d0)](_0x221d91(0x208))||_0x7f641a[_0x221d91(0x1e4)](_0x221d91(0x1be))||_0x7f641a[_0x221d91(0x1d0)]('pnpm\x20install')||_0x7f641a[_0x221d91(0x1d0)](_0x221d91(0x1c1)))return(0x0,js_1[_0x221d91(0x1e6)])(_0x249dfa);if(_0x7f641a['includes']('jest')||_0x7f641a[_0x221d91(0x1d0)](_0x221d91(0x1c3)))return(0x0,js_1[_0x221d91(0x1ea)])(_0x249dfa);if(_0x7f641a[_0x221d91(0x1d0)](_0x221d91(0x204))||_0x7f641a[_0x221d91(0x1d0)](_0x221d91(0x202))||_0x7f641a[_0x221d91(0x1d0)](_0x221d91(0x20c))||_0x7f641a[_0x221d91(0x1d0)](_0x221d91(0x1d5)))return(0x0,js_1[_0x221d91(0x1ea)])(_0x249dfa);if(_0x7f641a[_0x221d91(0x1d0)](_0x221d91(0x215)))return(0x0,rust_1[_0x221d91(0x1fc)])(_0x249dfa);if(_0x7f641a[_0x221d91(0x1d0)](_0x221d91(0x1c4))||_0x7f641a[_0x221d91(0x1d0)](_0x221d91(0x1ef))||_0x7f641a[_0x221d91(0x1d0)](_0x221d91(0x1ee)))return(0x0,rust_1[_0x221d91(0x1e9)])(_0x249dfa);if(_0x7f641a[_0x221d91(0x1d0)](_0x221d91(0x1dc)))return(0x0,go_1[_0x221d91(0x1c0)])(_0x249dfa);if(_0x7f641a[_0x221d91(0x1d0)]('go\x20vet'))return(0x0,go_1[_0x221d91(0x1d6)])(_0x249dfa);if(_0x7f641a['match'](/docker\s+ps/))return(0x0,devops_1[_0x221d91(0x1ff)])(_0x249dfa);if(_0x7f641a['match'](/docker\s+images/))return(0x0,devops_1[_0x221d91(0x1ed)])(_0x249dfa);if(_0x7f641a[_0x221d91(0x216)](/docker\s+logs/))return(0x0,devops_1[_0x221d91(0x20b)])(_0x249dfa);if(_0x7f641a[_0x221d91(0x1d0)]('kubectl')){const _0x1b17d8=_0x7f641a['match'](/kubectl\s+(get|logs|describe|apply)/),_0xf75a1=_0x1b17d8?_0x1b17d8[0x1]:'get';return(0x0,devops_1[_0x221d91(0x210)])(_0x249dfa,_0xf75a1);}if(_0x7f641a[_0x221d91(0x216)](/^(ls|dir)(\s|$)/)||_0x7f641a[_0x221d91(0x1d0)](_0x221d91(0x1c7))||_0x7f641a['endsWith'](_0x221d91(0x1cc)))return(0x0,shell_1[_0x221d91(0x206)])(_0x249dfa);if(_0x7f641a[_0x221d91(0x216)](/^tree(\s|$)/)||_0x7f641a['includes']('\x20tree\x20')||_0x7f641a[_0x221d91(0x1e4)](_0x221d91(0x20f)))return(0x0,shell_1[_0x221d91(0x1c5)])(_0x249dfa);if(_0x7f641a['match'](/^(cat|head|tail|read|bat)(\s|$)/))return(0x0,shell_1['filterCat'])(_0x249dfa);if(_0x7f641a['match'](/^(grep|rg|ripgrep)(\s|$)/))return(0x0,shell_1['filterGrep'])(_0x249dfa);}catch(_0x371bc0){}return _0x249dfa=(0x0,generic_1[_0x221d91(0x211)])(_0x249dfa),_0x249dfa=(0x0,generic_1[_0x221d91(0x203)])(_0x249dfa,0x4e20),_0x249dfa;}const REWRITE_RULES=[{'pattern':/^(?:git|yadm)\s+(?:-[Cc]\s+\S+\s+)*(status|log|diff|show|add|commit|push|pull|branch|fetch|stash|worktree)/,'prefix':'trim\x20git'},{'pattern':/^gh\s+(pr|issue|run|repo|api|release)/,'prefix':a0_0x4d4dbf(0x1e8)},{'pattern':/^glab\s+(mr|issue|ci|pipeline|api|release)/,'prefix':a0_0x4d4dbf(0x1d9)},{'pattern':/^cargo\s+(build|test|clippy|check|fmt|install)/,'prefix':a0_0x4d4dbf(0x1d7)},{'pattern':/^pnpm\s+(exec|i|install|list|ls|outdated|run|run-script)/,'prefix':a0_0x4d4dbf(0x205)},{'pattern':/^npm\s+(exec|run|run-script|rum|urn|x|test)(\s|$)/,'prefix':a0_0x4d4dbf(0x1db)},{'pattern':/^npx\s+/,'prefix':a0_0x4d4dbf(0x1f7)},{'pattern':/^(cat|head|tail)\s+/,'prefix':a0_0x4d4dbf(0x20a)},{'pattern':/^(rg|grep)\s+/,'prefix':'trim\x20grep'},{'pattern':/^ls(\s|$)/,'prefix':a0_0x4d4dbf(0x1f9)},{'pattern':/^tree(\s|$)/,'prefix':'trim\x20tree'},{'pattern':/^find\s+/,'prefix':a0_0x4d4dbf(0x1cb)},{'pattern':/^docker\s+(ps|images|logs|run|exec|build|compose)/,'prefix':a0_0x4d4dbf(0x1fd)},{'pattern':/^kubectl\s+(get|logs|describe|apply)/,'prefix':a0_0x4d4dbf(0x21b)},{'pattern':/^(python3?\s+-m\s+)?pytest(\s|$)/,'prefix':a0_0x4d4dbf(0x1f4)},{'pattern':/^ruff\s+(check|format)/,'prefix':a0_0x4d4dbf(0x1d8)},{'pattern':/^(pip3?|uv\s+pip)\s+(list|outdated|install|show)/,'prefix':a0_0x4d4dbf(0x1c6)},{'pattern':/^go\s+(test|build|vet)/,'prefix':a0_0x4d4dbf(0x1f5)}];function a0_0x7476(){const _0x566e38=['filterKubectl','collapseDuplicates','trim\x20','git\x20show','startsWith','cargo\x20test','match','74310Smhdke','toLowerCase','__esModule','compressOutput','trim\x20kubectl','3000129VLgHAl','npm\x20i','redact','filterGoTest','yarn\x20install','./python','vitest','cargo\x20build','filterTree','trim\x20pip','\x20ls\x20','./rust','./js','git\x20status','trim\x20find','\x20ls','./devops','3399128GoFgRu','yadm\x20diff','includes','length','filterGitDiff','../redactor','1341609pdxcSL','npm\x20run\x20test','filterGoVet','trim\x20cargo','trim\x20ruff','trim\x20glab','15CDcOhP','trim\x20npm','go\x20test','rewriteCommand','./git','yadm\x20log','pip\x20install','63BYmPZH','./go','git\x20diff','endsWith','defineProperty','filterNpmInstall','2916UqofxR','trim\x20gh','filterCargoBuild','filterJestVitest','filterGitStatus','git\x20log','filterDockerImages','cargo\x20clippy','cargo\x20check','yadm\x20status','40428RgGWnQ','trim','filterPipInstall','trim\x20pytest','trim\x20go','ruff\x20check','trim\x20npx','npm\x20install','trim\x20ls','./shell','2221820ByilbE','filterCargoTest','trim\x20docker','filterPytest','filterDockerPs','pattern','redactor','pnpm\x20test','softTruncate','npm\x20test','trim\x20pnpm','filterLs','pip3\x20install','npm\x20i\x20','./generic','trim\x20read','filterDockerLogs','yarn\x20test','526826DZPYuE','ruff\x20','\x20tree'];a0_0x7476=function(){return _0x566e38;};return a0_0x7476();}function rewriteCommand(_0x27c7cd){const _0x9ca0e3=a0_0x4d4dbf,_0x4217b9=_0x27c7cd[_0x9ca0e3(0x1f2)]();if(_0x4217b9[_0x9ca0e3(0x214)](_0x9ca0e3(0x212)))return _0x4217b9;for(const _0x3e3600 of REWRITE_RULES){if(_0x3e3600[_0x9ca0e3(0x200)]['test'](_0x4217b9))return _0x9ca0e3(0x212)+_0x4217b9;}return _0x4217b9;}
1
+ 'use strict';const a0_0x3c9c19=a0_0x130a;(function(_0x37d65f,_0xa62dcc){const _0x46e48e=a0_0x130a,_0x887b91=_0x37d65f();while(!![]){try{const _0x30cfc6=-parseInt(_0x46e48e(0xd3))/0x1+parseInt(_0x46e48e(0xc7))/0x2*(-parseInt(_0x46e48e(0xf3))/0x3)+parseInt(_0x46e48e(0xec))/0x4*(-parseInt(_0x46e48e(0xd1))/0x5)+-parseInt(_0x46e48e(0xeb))/0x6*(-parseInt(_0x46e48e(0xfa))/0x7)+parseInt(_0x46e48e(0xbd))/0x8*(-parseInt(_0x46e48e(0xe1))/0x9)+-parseInt(_0x46e48e(0xf0))/0xa+parseInt(_0x46e48e(0xcd))/0xb;if(_0x30cfc6===_0xa62dcc)break;else _0x887b91['push'](_0x887b91['shift']());}catch(_0x2c4d4f){_0x887b91['push'](_0x887b91['shift']());}}}(a0_0x1154,0xc322a));function a0_0x130a(_0x39a01c,_0xe415d8){const _0x1154ff=a0_0x1154();return a0_0x130a=function(_0x130a92,_0x536473){_0x130a92=_0x130a92-0xb3;let _0x3f9ae4=_0x1154ff[_0x130a92];return _0x3f9ae4;},a0_0x130a(_0x39a01c,_0xe415d8);}Object[a0_0x3c9c19(0xfd)](exports,a0_0x3c9c19(0xcf),{'value':!![]}),exports[a0_0x3c9c19(0xf1)]=compressOutput,exports[a0_0x3c9c19(0x113)]=rewriteCommand;const generic_1=require('./generic'),git_1=require('./git'),python_1=require(a0_0x3c9c19(0x106)),js_1=require(a0_0x3c9c19(0xc2)),shell_1=require(a0_0x3c9c19(0xdc)),rust_1=require(a0_0x3c9c19(0xd7)),go_1=require(a0_0x3c9c19(0x10e)),devops_1=require(a0_0x3c9c19(0xed)),redactor_1=require(a0_0x3c9c19(0xb4));function a0_0x1154(){const _0x350164=['cargo\x20check','filterDockerImages','startsWith','npm\x20i','trim','toLowerCase','16JmiFrp','trim\x20gh','length','filterCargoTest','filterCargoBuild','./js','trim\x20pip','filterPytest','ruff\x20check','yadm\x20log','2qPWzAR','yadm\x20diff','filterPipInstall','trim\x20go','\x20tree\x20','pip\x20install','45176175ibNMeN','trim\x20grep','__esModule','pytest','5BPXXqs','match','1279608KyFIjS','filterCat','stripAnsi','trim\x20cargo','./rust','cargo\x20build','\x20tree','filterDockerLogs','jest','./shell','git\x20log','filterGrep','filterRuff','trim\x20','1669806YReRgk','trim\x20ruff','pnpm\x20test','trim\x20kubectl','trim\x20pytest','filterJestVitest','trim\x20find','test','trim\x20tree','redactor','3248286kmQVMI','2973668xNyrdK','./devops','npm\x20test','endsWith','14399470OJAcIc','compressOutput','trim\x20pnpm','44976PaGhzV','filterLs','trim\x20ls','yarn\x20install','yarn\x20test','vitest','filterGoVet','7rkDVqG','get','filterGitLog','defineProperty','trim\x20npm','\x20ls\x20','filterGitDiff','cargo\x20clippy','go\x20test','npm\x20install','trim\x20docker','git\x20status','./python','git\x20show','filterTree','filterGoTest','cargo\x20test','yadm\x20status','filterKubectl','go\x20vet','./go','pnpm\x20install','npm\x20i\x20','pip3\x20install','includes','rewriteCommand','collapseDuplicates','../redactor','softTruncate','trim\x20git'];a0_0x1154=function(){return _0x350164;};return a0_0x1154();}function compressOutput(_0x4deaf3,_0xc8e758,_0x15d775,_0x2f129a=!![]){const _0x314b88=a0_0x3c9c19,_0x509305=_0x4deaf3[_0x314b88(0xbb)]();let _0x5e1dc5=_0xc8e758;_0x15d775[_0x314b88(0xbb)]()[_0x314b88(0xbf)]>0x0&&(_0x5e1dc5=_0xc8e758+'\x0a'+_0x15d775);let _0x1ff6e7=(0x0,generic_1[_0x314b88(0xd5)])(_0x5e1dc5);_0x2f129a&&(_0x1ff6e7=redactor_1[_0x314b88(0xea)]['redact'](_0x1ff6e7));const _0x4f8872=_0x509305[_0x314b88(0xbc)]();try{if(_0x4f8872[_0x314b88(0x112)](_0x314b88(0x105))||_0x4f8872[_0x314b88(0x112)](_0x314b88(0x10b)))return(0x0,git_1['filterGitStatus'])(_0x1ff6e7);if(_0x4f8872[_0x314b88(0x112)](_0x314b88(0xdd))||_0x4f8872[_0x314b88(0x112)](_0x314b88(0xc6)))return(0x0,git_1[_0x314b88(0xfc)])(_0x1ff6e7);if(_0x4f8872[_0x314b88(0x112)]('git\x20diff')||_0x4f8872[_0x314b88(0x112)](_0x314b88(0x107))||_0x4f8872[_0x314b88(0x112)](_0x314b88(0xc8)))return(0x0,git_1[_0x314b88(0x100)])(_0x1ff6e7);if(_0x4f8872[_0x314b88(0x112)](_0x314b88(0xd0))||_0x4f8872[_0x314b88(0xd2)](/python3?\s+-m\s+pytest/))return(0x0,python_1[_0x314b88(0xc4)])(_0x1ff6e7);if(_0x4f8872[_0x314b88(0x112)](_0x314b88(0xcc))||_0x4f8872[_0x314b88(0x112)](_0x314b88(0x111)))return(0x0,python_1[_0x314b88(0xc9)])(_0x1ff6e7);if(_0x4f8872[_0x314b88(0x112)](_0x314b88(0xc5))||_0x4f8872['includes']('ruff\x20'))return(0x0,devops_1[_0x314b88(0xdf)])(_0x1ff6e7);if(_0x4f8872[_0x314b88(0x112)](_0x314b88(0x103))||_0x4f8872[_0x314b88(0x112)](_0x314b88(0x110))||_0x4f8872['endsWith'](_0x314b88(0xba))||_0x4f8872['includes'](_0x314b88(0x10f))||_0x4f8872[_0x314b88(0x112)](_0x314b88(0xf6)))return(0x0,js_1['filterNpmInstall'])(_0x1ff6e7);if(_0x4f8872[_0x314b88(0x112)](_0x314b88(0xdb))||_0x4f8872[_0x314b88(0x112)](_0x314b88(0xf8)))return(0x0,js_1[_0x314b88(0xe6)])(_0x1ff6e7);if(_0x4f8872['includes'](_0x314b88(0xee))||_0x4f8872[_0x314b88(0x112)](_0x314b88(0xe3))||_0x4f8872[_0x314b88(0x112)](_0x314b88(0xf7))||_0x4f8872['includes']('npm\x20run\x20test'))return(0x0,js_1['filterJestVitest'])(_0x1ff6e7);if(_0x4f8872['includes'](_0x314b88(0x10a)))return(0x0,rust_1[_0x314b88(0xc0)])(_0x1ff6e7);if(_0x4f8872[_0x314b88(0x112)](_0x314b88(0xd8))||_0x4f8872['includes'](_0x314b88(0xb7))||_0x4f8872['includes'](_0x314b88(0x101)))return(0x0,rust_1[_0x314b88(0xc1)])(_0x1ff6e7);if(_0x4f8872['includes'](_0x314b88(0x102)))return(0x0,go_1[_0x314b88(0x109)])(_0x1ff6e7);if(_0x4f8872[_0x314b88(0x112)](_0x314b88(0x10d)))return(0x0,go_1[_0x314b88(0xf9)])(_0x1ff6e7);if(_0x4f8872[_0x314b88(0xd2)](/docker\s+ps/))return(0x0,devops_1['filterDockerPs'])(_0x1ff6e7);if(_0x4f8872['match'](/docker\s+images/))return(0x0,devops_1[_0x314b88(0xb8)])(_0x1ff6e7);if(_0x4f8872['match'](/docker\s+logs/))return(0x0,devops_1[_0x314b88(0xda)])(_0x1ff6e7);if(_0x4f8872[_0x314b88(0x112)]('kubectl')){const _0x332629=_0x4f8872[_0x314b88(0xd2)](/kubectl\s+(get|logs|describe|apply)/),_0x467b09=_0x332629?_0x332629[0x1]:_0x314b88(0xfb);return(0x0,devops_1[_0x314b88(0x10c)])(_0x1ff6e7,_0x467b09);}if(_0x4f8872[_0x314b88(0xd2)](/^(ls|dir)(\s|$)/)||_0x4f8872['includes'](_0x314b88(0xff))||_0x4f8872['endsWith']('\x20ls'))return(0x0,shell_1[_0x314b88(0xf4)])(_0x1ff6e7);if(_0x4f8872['match'](/^tree(\s|$)/)||_0x4f8872[_0x314b88(0x112)](_0x314b88(0xcb))||_0x4f8872[_0x314b88(0xef)](_0x314b88(0xd9)))return(0x0,shell_1[_0x314b88(0x108)])(_0x1ff6e7);if(_0x4f8872[_0x314b88(0xd2)](/^(cat|head|tail|read|bat)(\s|$)/))return(0x0,shell_1[_0x314b88(0xd4)])(_0x1ff6e7);if(_0x4f8872[_0x314b88(0xd2)](/^(grep|rg|ripgrep)(\s|$)/))return(0x0,shell_1[_0x314b88(0xde)])(_0x1ff6e7);}catch(_0x4bef55){}return _0x1ff6e7=(0x0,generic_1[_0x314b88(0xb3)])(_0x1ff6e7),_0x1ff6e7=(0x0,generic_1[_0x314b88(0xb5)])(_0x1ff6e7,0x4e20),_0x1ff6e7;}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_0x3c9c19(0xb6)},{'pattern':/^gh\s+(pr|issue|run|repo|api|release)/,'prefix':a0_0x3c9c19(0xbe)},{'pattern':/^glab\s+(mr|issue|ci|pipeline|api|release)/,'prefix':'trim\x20glab'},{'pattern':/^cargo\s+(build|test|clippy|check|fmt|install)/,'prefix':a0_0x3c9c19(0xd6)},{'pattern':/^pnpm\s+(exec|i|install|list|ls|outdated|run|run-script)/,'prefix':a0_0x3c9c19(0xf2)},{'pattern':/^npm\s+(exec|run|run-script|rum|urn|x|test)(\s|$)/,'prefix':a0_0x3c9c19(0xfe)},{'pattern':/^npx\s+/,'prefix':'trim\x20npx'},{'pattern':/^(cat|head|tail)\s+/,'prefix':'trim\x20read'},{'pattern':/^(rg|grep)\s+/,'prefix':a0_0x3c9c19(0xce)},{'pattern':/^ls(\s|$)/,'prefix':a0_0x3c9c19(0xf5)},{'pattern':/^tree(\s|$)/,'prefix':a0_0x3c9c19(0xe9)},{'pattern':/^find\s+/,'prefix':a0_0x3c9c19(0xe7)},{'pattern':/^docker\s+(ps|images|logs|run|exec|build|compose)/,'prefix':a0_0x3c9c19(0x104)},{'pattern':/^kubectl\s+(get|logs|describe|apply)/,'prefix':a0_0x3c9c19(0xe4)},{'pattern':/^(python3?\s+-m\s+)?pytest(\s|$)/,'prefix':a0_0x3c9c19(0xe5)},{'pattern':/^ruff\s+(check|format)/,'prefix':a0_0x3c9c19(0xe2)},{'pattern':/^(pip3?|uv\s+pip)\s+(list|outdated|install|show)/,'prefix':a0_0x3c9c19(0xc3)},{'pattern':/^go\s+(test|build|vet)/,'prefix':a0_0x3c9c19(0xca)}];function rewriteCommand(_0x21311d){const _0x10c9a1=a0_0x3c9c19,_0x3e259e=_0x21311d[_0x10c9a1(0xbb)]();if(_0x3e259e[_0x10c9a1(0xb9)]('trim\x20'))return _0x3e259e;for(const _0x181227 of REWRITE_RULES){if(_0x181227['pattern'][_0x10c9a1(0xe8)](_0x3e259e))return _0x10c9a1(0xe0)+_0x3e259e;}return _0x3e259e;}