trimprompt 1.0.16 → 1.0.18
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 +10 -0
- package/cache.js +1 -1
- package/cli.js +1 -1
- package/dashboard.js +1 -1
- package/executor.js +1 -1
- package/filters/devops.js +1 -1
- package/filters/generic.js +1 -1
- package/filters/git.js +1 -1
- package/filters/go.js +1 -1
- package/filters/index.js +1 -1
- package/filters/js.js +1 -1
- package/filters/python.js +1 -1
- package/filters/rust.js +1 -1
- package/filters/shell.js +1 -1
- package/index.html +153 -7
- package/mcp.js +1 -1
- package/package.json +1 -1
- package/redactor.js +1 -1
- package/seed.js +1 -1
- package/shims.js +1 -1
- package/simulate.js +1 -1
- package/sync.js +1 -1
- package/tracker.js +1 -1
package/filters/js.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a0_0x5ad1a8=a0_0x5169;(function(_0xa2fbf9,_0x2ec144){const _0xe208d5=a0_0x5169,_0x137873=_0xa2fbf9();while(!![]){try{const _0x142b59=-parseInt(_0xe208d5(0x212))/0x1*(-parseInt(_0xe208d5(0x1fa))/0x2)+-parseInt(_0xe208d5(0x20a))/0x3*(-parseInt(_0xe208d5(0x206))/0x4)+-parseInt(_0xe208d5(0x205))/0x5+-parseInt(_0xe208d5(0x1f6))/0x6*(parseInt(_0xe208d5(0x21b))/0x7)+parseInt(_0xe208d5(0x202))/0x8*(-parseInt(_0xe208d5(0x213))/0x9)+-parseInt(_0xe208d5(0x1ff))/0xa*(parseInt(_0xe208d5(0x21d))/0xb)+-parseInt(_0xe208d5(0x1fb))/0xc*(-parseInt(_0xe208d5(0x20c))/0xd);if(_0x142b59===_0x2ec144)break;else _0x137873['push'](_0x137873['shift']());}catch(_0x58cf6b){_0x137873['push'](_0x137873['shift']());}}}(a0_0x450b,0x46983));Object[a0_0x5ad1a8(0x218)](exports,'__esModule',{'value':!![]}),exports[a0_0x5ad1a8(0x215)]=filterNpmInstall,exports[a0_0x5ad1a8(0x21a)]=filterJestVitest;function a0_0x5169(_0x4e983b,_0x18e42e){_0x4e983b=_0x4e983b-0x1f4;const _0x450b68=a0_0x450b();let _0x5169cc=_0x450b68[_0x4e983b];return _0x5169cc;}function filterNpmInstall(_0x3abb18){const _0xd23ca=a0_0x5ad1a8,_0x54a903=_0x3abb18[_0xd23ca(0x1fd)](/\r/g,'\x0a'),_0x4e9543=_0x54a903[_0xd23ca(0x1fc)]('\x0a'),_0x54dc61=[];for(const _0x4372af of _0x4e9543){const _0xf8d42e=_0x4372af[_0xd23ca(0x208)]();(_0xf8d42e[_0xd23ca(0x1f4)](_0xd23ca(0x216))||_0xf8d42e[_0xd23ca(0x1f4)](_0xd23ca(0x20f))||_0xf8d42e['includes'](_0xd23ca(0x21e))||_0xf8d42e[_0xd23ca(0x1f4)]('up\x20to\x20date')||_0xf8d42e[_0xd23ca(0x1f4)](_0xd23ca(0x1f9)))&&(!_0xf8d42e['includes']('%')&&!_0xf8d42e['startsWith']('⠋')&&!_0xf8d42e[_0xd23ca(0x204)]('⠙')&&_0x54dc61[_0xd23ca(0x207)](_0xf8d42e));}const _0x35ad20=_0x54dc61[_0xd23ca(0x20b)]('\x0a')[_0xd23ca(0x208)]();return _0x35ad20['length']>0x0?_0x35ad20:_0xd23ca(0x209);}function filterJestVitest(_0x1b739a){const _0x44fc1f=a0_0x5ad1a8,_0x43a4f9=_0x1b739a[_0x44fc1f(0x1fc)]('\x0a');let _0x53df18=0x0,_0x328999=0x0,_0x54db23=0x0;const _0x9f57cf=[];let _0x717e26=![];for(const _0x4e86f0 of _0x43a4f9){const _0xdb8b3f=_0x4e86f0[_0x44fc1f(0x208)]();if(_0xdb8b3f[_0x44fc1f(0x204)]('Tests:')||_0xdb8b3f[_0x44fc1f(0x1f4)](_0x44fc1f(0x21c))){const _0xbf1c5a=_0xdb8b3f[_0x44fc1f(0x1f5)](/(\d+)\s+passed/),_0x4a0096=_0xdb8b3f['match'](/(\d+)\s+failed/),_0x5bf4b8=_0xdb8b3f[_0x44fc1f(0x1f5)](/(\d+)\s+total/);if(_0xbf1c5a)_0x53df18=parseInt(_0xbf1c5a[0x1]);if(_0x4a0096)_0x328999=parseInt(_0x4a0096[0x1]);if(_0x5bf4b8)_0x54db23=parseInt(_0x5bf4b8[0x1]);continue;}(_0xdb8b3f[_0x44fc1f(0x204)]('❯')||_0xdb8b3f[_0x44fc1f(0x204)]('●')||_0xdb8b3f[_0x44fc1f(0x204)]('FAIL\x20\x20'))&&(_0x717e26=!![]),_0x717e26&&(_0xdb8b3f[_0x44fc1f(0x201)]>0x0&&!_0xdb8b3f['startsWith'](_0x44fc1f(0x1fe))&&!_0xdb8b3f['startsWith'](_0x44fc1f(0x1f7))&&_0x9f57cf[_0x44fc1f(0x207)](_0x4e86f0));}if(_0x54db23===0x0&&_0x53df18===0x0&&_0x328999===0x0){if(_0x1b739a[_0x44fc1f(0x1f4)]('PASS')&&!_0x1b739a[_0x44fc1f(0x1f4)](_0x44fc1f(0x1f8))){const _0x5a69aa=_0x1b739a[_0x44fc1f(0x1f5)](/(\d+)\s+passed/),_0x533db7=_0x5a69aa?_0x5a69aa[0x1]:_0x44fc1f(0x211);return'Test\x20Runner:\x20'+_0x533db7+_0x44fc1f(0x219);}return _0x1b739a;}if(_0x328999===0x0&&_0x53df18>0x0)return _0x44fc1f(0x203)+_0x53df18+_0x44fc1f(0x219);const _0x32a629=[_0x44fc1f(0x203)+_0x53df18+_0x44fc1f(0x20d)+_0x328999+'\x20failed\x20('+_0x54db23+_0x44fc1f(0x210)];if(_0x9f57cf[_0x44fc1f(0x201)]>0x0){_0x32a629['push'](_0x44fc1f(0x214));const _0x354b88=0x19,_0x41b44b=_0x9f57cf[_0x44fc1f(0x20e)](0x0,_0x354b88);for(const _0x169dfc of _0x41b44b){_0x32a629[_0x44fc1f(0x207)]('\x20\x20'+_0x169dfc);}_0x9f57cf['length']>_0x354b88&&_0x32a629[_0x44fc1f(0x207)](_0x44fc1f(0x200)+(_0x9f57cf['length']-_0x354b88)+_0x44fc1f(0x217));}return _0x32a629[_0x44fc1f(0x20b)]('\x0a');}function a0_0x450b(){const _0x35e571=['all','62824pdcFlH','9vTimDt','\x0aFailures:','filterNpmInstall','added\x20','\x20lines\x20of\x20trace\x20details\x20truncated)','defineProperty','\x20passed','filterJestVitest','229397ceFukJ','Test\x20Files:','1431463ghnEye','audited\x20','includes','match','42jpwAQZ','Tests:','FAIL','found\x20','10UCPqRB','13043112dnfjBU','split','replace','Test\x20Suites:','10NQIlDw','\x20\x20...\x20(','length','3374696fYfMJY','Test\x20Runner:\x20','startsWith','2867595LBgfAK','460wvxjTk','push','trim','NPM:\x20Packages\x20verified/installed\x20successfully','6339QTiZJV','join','13RrinRL','\x20passed,\x20','slice','removed\x20','\x20total)'];a0_0x450b=function(){return _0x35e571;};return a0_0x450b();}
|
package/filters/python.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a0_0x180d5b=a0_0x478e;(function(_0x4c7ec9,_0x1ca32b){const _0x5c00f3=a0_0x478e,_0x3a8607=_0x4c7ec9();while(!![]){try{const _0x59d64a=-parseInt(_0x5c00f3(0x127))/0x1*(parseInt(_0x5c00f3(0x12c))/0x2)+parseInt(_0x5c00f3(0x12d))/0x3+-parseInt(_0x5c00f3(0x124))/0x4+parseInt(_0x5c00f3(0x120))/0x5*(-parseInt(_0x5c00f3(0x114))/0x6)+-parseInt(_0x5c00f3(0x110))/0x7+parseInt(_0x5c00f3(0x104))/0x8*(-parseInt(_0x5c00f3(0x105))/0x9)+parseInt(_0x5c00f3(0x112))/0xa*(parseInt(_0x5c00f3(0x10c))/0xb);if(_0x59d64a===_0x1ca32b)break;else _0x3a8607['push'](_0x3a8607['shift']());}catch(_0x5ce756){_0x3a8607['push'](_0x3a8607['shift']());}}}(a0_0x4fd9,0xc7a61));function a0_0x4fd9(){const _0x348ee8=['1183NHvdqp','\x20xfailed','\x20\x20\x20\x20','\x20\x20\x20\x20...\x20(','AssertionError:','16ugXgGI','2972931JljNvW','includes','===','7312912qdzNPK','9PevFUw','passed','slice','failed','\x0aFailures:','split','length','6974DiXYxh','\x20\x20...\x20+','join','match','2974230rQTeYp','Pytest:\x20All\x20tests\x20passed','42420apcOdq','Downloading','2683866rUtjni','\x20skipped','trim','\x20passed','__esModule','E\x20\x20\x20','defineProperty','.\x20[FAIL]\x20','filter','===\x20short\x20test\x20summary\x20info\x20===','push','Requirement\x20already\x20satisfied','10dMPQqn','Pytest:\x20','\x20more\x20failures\x20truncated','Collecting','2478216QBKFCS','startsWith','\x20xpassed\x20(warning!)'];a0_0x4fd9=function(){return _0x348ee8;};return a0_0x4fd9();}Object[a0_0x180d5b(0x11a)](exports,a0_0x180d5b(0x118),{'value':!![]}),exports['filterPytest']=filterPytest,exports['filterPipInstall']=filterPipInstall;function a0_0x478e(_0x5543b2,_0x2c076d){_0x5543b2=_0x5543b2-0x102;const _0x4fd98c=a0_0x4fd9();let _0x478e31=_0x4fd98c[_0x5543b2];return _0x478e31;}function filterPytest(_0x27e19d){const _0x1d2b93=a0_0x180d5b,_0x5b9cfa=_0x27e19d[_0x1d2b93(0x10a)]('\x0a');let _0x2f403a=0x0,_0x4aa4b8=0x0,_0x6940cb=0x0,_0x258d72=0x0,_0x15d939=0x0;const _0xf4baca=[];let _0x3c86af=[],_0x3fa4df=![];for(const _0x259fa7 of _0x5b9cfa){const _0x2966ea=_0x259fa7['trim']();if(_0x2966ea[_0x1d2b93(0x125)]('===\x20FAILURES\x20===')||_0x2966ea['startsWith']('===\x20ERRORS\x20===')){_0x3fa4df=!![];continue;}else(_0x2966ea[_0x1d2b93(0x125)](_0x1d2b93(0x11d))||_0x2966ea[_0x1d2b93(0x125)]('===')&&_0x2966ea[_0x1d2b93(0x102)](_0x1d2b93(0x106)))&&(_0x3fa4df=![],_0x3c86af[_0x1d2b93(0x10b)]>0x0&&(_0xf4baca[_0x1d2b93(0x11e)](_0x3c86af),_0x3c86af=[]));if(_0x3fa4df){if(_0x2966ea['startsWith']('___'))_0x3c86af[_0x1d2b93(0x10b)]>0x0&&(_0xf4baca[_0x1d2b93(0x11e)](_0x3c86af),_0x3c86af=[]),_0x3c86af[_0x1d2b93(0x11e)](_0x2966ea);else _0x2966ea[_0x1d2b93(0x10b)]>0x0&&_0x3c86af[_0x1d2b93(0x11e)](_0x259fa7);continue;}if(_0x2966ea[_0x1d2b93(0x125)](_0x1d2b93(0x103))&&_0x2966ea[_0x1d2b93(0x102)]('\x20in\x20')){const _0x4c9282=_0x2966ea['match'](/(\d+)\s+passed/),_0x50f5a7=_0x2966ea[_0x1d2b93(0x10f)](/(\d+)\s+failed/),_0x588eee=_0x2966ea['match'](/(\d+)\s+skipped/),_0x5907b4=_0x2966ea[_0x1d2b93(0x10f)](/(\d+)\s+xfailed/),_0x73f6bb=_0x2966ea[_0x1d2b93(0x10f)](/(\d+)\s+xpassed/);if(_0x4c9282)_0x2f403a=parseInt(_0x4c9282[0x1]);if(_0x50f5a7)_0x4aa4b8=parseInt(_0x50f5a7[0x1]);if(_0x588eee)_0x6940cb=parseInt(_0x588eee[0x1]);if(_0x5907b4)_0x258d72=parseInt(_0x5907b4[0x1]);if(_0x73f6bb)_0x15d939=parseInt(_0x73f6bb[0x1]);}}_0x3c86af[_0x1d2b93(0x10b)]>0x0&&_0xf4baca[_0x1d2b93(0x11e)](_0x3c86af);if(_0x2f403a===0x0&&_0x4aa4b8===0x0&&_0x6940cb===0x0&&_0x258d72===0x0&&_0x15d939===0x0){if(_0x27e19d['includes'](_0x1d2b93(0x106))&&!_0x27e19d[_0x1d2b93(0x102)](_0x1d2b93(0x108)))return _0x1d2b93(0x111);return _0x27e19d;}if(_0x4aa4b8===0x0&&_0x2f403a>0x0&&_0x6940cb===0x0&&_0x258d72===0x0&&_0x15d939===0x0)return _0x1d2b93(0x121)+_0x2f403a+_0x1d2b93(0x117);const _0x292d35=[];_0x292d35[_0x1d2b93(0x11e)]('Pytest:\x20'+_0x2f403a+_0x1d2b93(0x117));if(_0x4aa4b8>0x0)_0x292d35[_0x1d2b93(0x11e)](_0x4aa4b8+'\x20failed');if(_0x6940cb>0x0)_0x292d35[_0x1d2b93(0x11e)](_0x6940cb+_0x1d2b93(0x115));if(_0x258d72>0x0)_0x292d35[_0x1d2b93(0x11e)](_0x258d72+_0x1d2b93(0x128));if(_0x15d939>0x0)_0x292d35[_0x1d2b93(0x11e)](_0x15d939+_0x1d2b93(0x126));const _0x3e5201=[_0x292d35[_0x1d2b93(0x10e)](',\x20')];if(_0xf4baca[_0x1d2b93(0x10b)]>0x0){_0x3e5201[_0x1d2b93(0x11e)](_0x1d2b93(0x109));const _0x59ef73=0x3,_0x21a119=_0xf4baca['slice'](0x0,_0x59ef73);for(let _0x2cc293=0x0;_0x2cc293<_0x21a119[_0x1d2b93(0x10b)];_0x2cc293++){const _0x33887f=_0x21a119[_0x2cc293],_0x1b04a7=_0x33887f[0x0]['replace'](/_/g,'')['trim']();_0x3e5201[_0x1d2b93(0x11e)]('\x20\x20'+(_0x2cc293+0x1)+_0x1d2b93(0x11b)+_0x1b04a7);const _0x34f279=_0x33887f[_0x1d2b93(0x107)](0x1),_0x4e98a4=_0x34f279[_0x1d2b93(0x11c)](_0x1ff969=>{const _0x303c81=_0x1d2b93,_0x1eccaf=_0x1ff969[_0x303c81(0x116)]();return _0x1eccaf[_0x303c81(0x125)]('>')||_0x1eccaf[_0x303c81(0x125)](_0x303c81(0x119))||_0x1eccaf[_0x303c81(0x102)]('.py:')||_0x1eccaf['includes'](_0x303c81(0x12b));});for(const _0x117a1b of _0x4e98a4['slice'](0x0,0x8)){_0x3e5201[_0x1d2b93(0x11e)](_0x1d2b93(0x129)+_0x117a1b);}_0x4e98a4[_0x1d2b93(0x10b)]>0x8&&_0x3e5201[_0x1d2b93(0x11e)](_0x1d2b93(0x12a)+(_0x4e98a4[_0x1d2b93(0x10b)]-0x8)+'\x20lines\x20of\x20stacktrace\x20truncated)');}_0xf4baca[_0x1d2b93(0x10b)]>_0x59ef73&&_0x3e5201[_0x1d2b93(0x11e)](_0x1d2b93(0x10d)+(_0xf4baca[_0x1d2b93(0x10b)]-_0x59ef73)+_0x1d2b93(0x122));}return _0x3e5201['join']('\x0a');}function filterPipInstall(_0x1361e0){const _0x161164=a0_0x180d5b,_0xbf78b3=_0x1361e0[_0x161164(0x10a)]('\x0a'),_0x2cad22=[];for(const _0x58a417 of _0xbf78b3){const _0x56b7af=_0x58a417[_0x161164(0x116)]();_0x56b7af['startsWith']('Successfully\x20installed')&&_0x2cad22[_0x161164(0x11e)](_0x56b7af);}if(_0x2cad22[_0x161164(0x10b)]>0x0)return _0x2cad22[_0x161164(0x10e)]('\x0a');return _0xbf78b3['filter'](_0x20e839=>{const _0x3d0bd8=_0x161164,_0x15bfbb=_0x20e839[_0x3d0bd8(0x116)]();return!_0x15bfbb[_0x3d0bd8(0x125)](_0x3d0bd8(0x123))&&!_0x15bfbb[_0x3d0bd8(0x125)](_0x3d0bd8(0x113))&&!_0x15bfbb['includes']('Using\x20cached')&&!_0x15bfbb[_0x3d0bd8(0x125)](_0x3d0bd8(0x11f));})[_0x161164(0x10e)]('\x0a')['trim']();}
|
package/filters/rust.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a0_0x382528=a0_0x1e32;(function(_0x7faaea,_0x348b79){const _0x464649=a0_0x1e32,_0x52b17d=_0x7faaea();while(!![]){try{const _0x499ab6=parseInt(_0x464649(0x1e7))/0x1+-parseInt(_0x464649(0x219))/0x2+parseInt(_0x464649(0x215))/0x3*(-parseInt(_0x464649(0x1f3))/0x4)+parseInt(_0x464649(0x1ef))/0x5+-parseInt(_0x464649(0x1f4))/0x6*(parseInt(_0x464649(0x1e8))/0x7)+parseInt(_0x464649(0x1e2))/0x8+parseInt(_0x464649(0x1f5))/0x9;if(_0x499ab6===_0x348b79)break;else _0x52b17d['push'](_0x52b17d['shift']());}catch(_0x5e9721){_0x52b17d['push'](_0x52b17d['shift']());}}}(a0_0x5f03,0x2d940));function a0_0x1e32(_0x269cb4,_0x2a98b4){_0x269cb4=_0x269cb4-0x1e1;const _0x5f03ca=a0_0x5f03();let _0x1e32b1=_0x5f03ca[_0x269cb4];return _0x1e32b1;}Object[a0_0x382528(0x1e6)](exports,a0_0x382528(0x212),{'value':!![]}),exports[a0_0x382528(0x208)]=filterCargoTest,exports[a0_0x382528(0x1f8)]=filterCargoBuild;function filterCargoTest(_0x29e114){const _0x4ce245=a0_0x382528,_0x1e6533=_0x29e114[_0x4ce245(0x20d)]('\x0a');let _0x61bf71=0x0,_0x117585=0x0,_0x32880d=0x0,_0x5f3039=0x0;const _0xf46071=[];let _0x55f14b=![],_0x66060f=[];for(const _0x4bd4d5 of _0x1e6533){const _0x45f91e=_0x4bd4d5['trim'](),_0x53c3af=_0x45f91e[_0x4ce245(0x1e9)](/test result:\s*(\w+)\.\s*(\d+)\s+passed;\s*(\d+)\s+failed;\s*(\d+)\s+ignored;\s*(\d+)\s+measured/);if(_0x53c3af){_0x61bf71+=parseInt(_0x53c3af[0x2]),_0x117585+=parseInt(_0x53c3af[0x3]),_0x32880d+=parseInt(_0x53c3af[0x4]),_0x5f3039+=parseInt(_0x53c3af[0x5]);continue;}if(_0x45f91e===_0x4ce245(0x211)||_0x45f91e===_0x4ce245(0x203)){_0x55f14b=!![];continue;}if(_0x55f14b){if(_0x45f91e[_0x4ce245(0x1ec)]('----\x20')&&_0x45f91e[_0x4ce245(0x1fb)](_0x4ce245(0x1e1))){if(_0x66060f[_0x4ce245(0x206)]>0x0)_0xf46071[_0x4ce245(0x1f9)](_0x66060f[_0x4ce245(0x214)]('\x0a'));_0x66060f=[_0x45f91e[_0x4ce245(0x1e4)](/^-+\s*/,'')[_0x4ce245(0x1e4)](/\s*-+$/,'')];}else{if(_0x45f91e===_0x4ce245(0x211)||_0x45f91e[_0x4ce245(0x1ec)](_0x4ce245(0x1f7))){if(_0x66060f[_0x4ce245(0x206)]>0x0)_0xf46071[_0x4ce245(0x1f9)](_0x66060f[_0x4ce245(0x214)]('\x0a'));_0x66060f=[],_0x55f14b=![];}else _0x45f91e[_0x4ce245(0x206)]>0x0&&_0x66060f[_0x4ce245(0x1f9)](_0x4bd4d5);}}}if(_0x66060f[_0x4ce245(0x206)]>0x0)_0xf46071['push'](_0x66060f['join']('\x0a'));if(_0x61bf71===0x0&&_0x117585===0x0&&_0x32880d===0x0){if(_0x29e114[_0x4ce245(0x207)]('test\x20result:\x20ok'))return _0x4ce245(0x20f);return _0x29e114;}if(_0x117585===0x0){const _0x5c2238=[_0x4ce245(0x218)+_0x61bf71+_0x4ce245(0x1f0)];if(_0x32880d>0x0)_0x5c2238['push'](_0x32880d+_0x4ce245(0x1ea));return _0x5c2238['join'](',\x20');}const _0x3c4d2d=[_0x4ce245(0x218)+_0x61bf71+'\x20passed,\x20'+_0x117585+_0x4ce245(0x202)+_0x32880d+_0x4ce245(0x1ea)];if(_0xf46071[_0x4ce245(0x206)]>0x0){_0x3c4d2d['push'](_0x4ce245(0x1fd));const _0x5ae78d=0x3;for(let _0x5570c7=0x0;_0x5570c7<Math[_0x4ce245(0x1eb)](_0xf46071[_0x4ce245(0x206)],_0x5ae78d);_0x5570c7++){const _0x4ef548=_0xf46071[_0x5570c7][_0x4ce245(0x20d)]('\x0a');_0x3c4d2d[_0x4ce245(0x1f9)]('\x20\x20'+(_0x5570c7+0x1)+'.\x20'+_0x4ef548[0x0]);const _0x5aaeed=_0x4ef548[_0x4ce245(0x200)](0x1),_0x530db3=_0x5aaeed[_0x4ce245(0x205)](_0x1579ee=>_0x1579ee[_0x4ce245(0x216)]()[_0x4ce245(0x1ec)]('thread')||_0x1579ee['includes'](_0x4ce245(0x1ed))||_0x1579ee[_0x4ce245(0x207)](_0x4ce245(0x1ff))||_0x1579ee[_0x4ce245(0x207)](_0x4ce245(0x1e3))||_0x1579ee[_0x4ce245(0x207)](_0x4ce245(0x20e)));for(const _0x3f585d of _0x530db3[_0x4ce245(0x200)](0x0,0x5)){_0x3c4d2d[_0x4ce245(0x1f9)](_0x4ce245(0x20a)+_0x3f585d['trim']());}}_0xf46071['length']>_0x5ae78d&&_0x3c4d2d['push'](_0x4ce245(0x1f1)+(_0xf46071[_0x4ce245(0x206)]-_0x5ae78d)+_0x4ce245(0x20c));}return _0x3c4d2d['join']('\x0a');}function filterCargoBuild(_0x870175){const _0x12cb96=a0_0x382528,_0x4015d8=_0x870175[_0x12cb96(0x20d)]('\x0a'),_0x3d33a5=[],_0x26d11e=[];let _0x4c6986=0x0;for(const _0x213151 of _0x4015d8){const _0x3584bd=_0x213151[_0x12cb96(0x216)]();if(_0x3584bd[_0x12cb96(0x1ec)](_0x12cb96(0x20b)))_0x4c6986++;else{if(_0x3584bd['startsWith'](_0x12cb96(0x1f2))||_0x3584bd[_0x12cb96(0x1ec)](_0x12cb96(0x1e5)))_0x3d33a5['push'](_0x3584bd);else{if(_0x3584bd[_0x12cb96(0x1ec)](_0x12cb96(0x1fc))||_0x3584bd['startsWith'](_0x12cb96(0x1fe)))_0x26d11e[_0x12cb96(0x1f9)](_0x3584bd);}}}if(_0x26d11e[_0x12cb96(0x206)]===0x0&&_0x3d33a5[_0x12cb96(0x206)]===0x0)return _0x4c6986>0x0?_0x12cb96(0x1fa)+_0x4c6986+_0x12cb96(0x217):_0x870175[_0x12cb96(0x216)]();const _0x3b9bba=[];if(_0x26d11e['length']>0x0){_0x3b9bba['push'](_0x12cb96(0x204)+_0x26d11e['length']+_0x12cb96(0x1ee)+_0x3d33a5[_0x12cb96(0x206)]+_0x12cb96(0x210)),_0x3b9bba[_0x12cb96(0x1f9)](_0x12cb96(0x209));for(const _0x38ea3b of _0x26d11e[_0x12cb96(0x200)](0x0,0x5))_0x3b9bba[_0x12cb96(0x1f9)]('\x20\x20'+_0x38ea3b);if(_0x26d11e['length']>0x5)_0x3b9bba[_0x12cb96(0x1f9)](_0x12cb96(0x1f1)+(_0x26d11e[_0x12cb96(0x206)]-0x5)+_0x12cb96(0x201));}else _0x3b9bba['push'](_0x12cb96(0x1fa)+_0x4c6986+_0x12cb96(0x1f6)+_0x3d33a5[_0x12cb96(0x206)]+_0x12cb96(0x210));if(_0x3d33a5[_0x12cb96(0x206)]>0x0&&_0x3d33a5[_0x12cb96(0x206)]<=0x5){_0x3b9bba['push']('\x0aWarnings:');for(const _0x1fb3b3 of _0x3d33a5)_0x3b9bba[_0x12cb96(0x1f9)]('\x20\x20'+_0x1fb3b3);}else _0x3d33a5[_0x12cb96(0x206)]>0x5&&_0x3b9bba[_0x12cb96(0x1f9)]('\x0a('+_0x3d33a5[_0x12cb96(0x206)]+_0x12cb96(0x213));return _0x3b9bba[_0x12cb96(0x214)]('\x0a');}function a0_0x5f03(){const _0x4b33b4=['assert','slice','\x20more\x20errors','\x20failed,\x20','----\x20failures\x20----','Cargo:\x20','filter','length','includes','filterCargoTest','\x0aErrors:','\x20\x20\x20\x20','Compiling\x20','\x20more\x20failures','split','right:','Cargo\x20test:\x20all\x20tests\x20passed','\x20warnings','failures:','__esModule','\x20warnings\x20—\x20run\x20cargo\x20clippy\x20for\x20details)','join','204RhyRtF','trim','\x20crates\x20successfully','Cargo\x20test:\x20','339178zQJPQI','\x20----','743776GPWPQU','left:','replace','warning:','defineProperty','77941qNJYFl','2091278uBfKFp','match','\x20ignored','min','startsWith','panicked','\x20errors,\x20','311145yKGUMr','\x20passed','\x20\x20...\x20+','warning[','8132qtuicz','6WXASFz','5041197eKjizt','\x20crates,\x20','test\x20result:','filterCargoBuild','push','Cargo:\x20compiled\x20','endsWith','error[','\x0aFailures:','error:'];a0_0x5f03=function(){return _0x4b33b4;};return a0_0x5f03();}
|
package/filters/shell.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a0_0x205ce1=a0_0x57eb;(function(_0x1ad4b2,_0x537009){const _0x3df0b7=a0_0x57eb,_0x95ed6c=_0x1ad4b2();while(!![]){try{const _0x2a6c88=parseInt(_0x3df0b7(0x148))/0x1*(parseInt(_0x3df0b7(0x14f))/0x2)+-parseInt(_0x3df0b7(0x15b))/0x3*(parseInt(_0x3df0b7(0x146))/0x4)+parseInt(_0x3df0b7(0x155))/0x5*(parseInt(_0x3df0b7(0x15d))/0x6)+parseInt(_0x3df0b7(0x13b))/0x7*(parseInt(_0x3df0b7(0x14a))/0x8)+parseInt(_0x3df0b7(0x143))/0x9+parseInt(_0x3df0b7(0x140))/0xa*(-parseInt(_0x3df0b7(0x167))/0xb)+-parseInt(_0x3df0b7(0x14c))/0xc;if(_0x2a6c88===_0x537009)break;else _0x95ed6c['push'](_0x95ed6c['shift']());}catch(_0x5e3451){_0x95ed6c['push'](_0x95ed6c['shift']());}}}(a0_0x4a68,0xe7869));Object[a0_0x205ce1(0x152)](exports,a0_0x205ce1(0x13f),{'value':!![]}),exports[a0_0x205ce1(0x149)]=filterLs,exports[a0_0x205ce1(0x14b)]=filterTree,exports['filterCat']=filterCat,exports[a0_0x205ce1(0x160)]=filterGrep;function a0_0x4a68(){const _0x328747=['total\x20','__esModule','10JuQCJj','keys','\x0a...\x20(','6518925LYOwpW','\x20lines\x20total)','\x20matches\x20across\x20','60044VoJTwI','\x20files)','1983IYkNQE','filterLs','16vrewGe','filterTree','270600OgsWgM','substring',':\x20...\x20(','1396JDvRAs','includes','\x20more\x20directories','defineProperty','push','startsWith','5htteap','length','split','\x20directories,\x20','\x20files\x20total\x20—\x20deep\x20entries\x20truncated)','filter','105NYGabF','...\x20+','1107048vmSKpy','trim','\x20lines\x20truncated]\x20...\x0a','filterGrep','indexOf','endsWith','match','Empty\x20directory','\x20matches\x20in\x20this\x20file)','join','14226201nKycCU','\x20more\x20files\x20with\x20matches','\x20more\x20files','1738058SRFLps','\x0a...\x20[','slice'];a0_0x4a68=function(){return _0x328747;};return a0_0x4a68();}function filterLs(_0x4fac90){const _0x19ab3d=a0_0x205ce1,_0x1bf2f2=_0x4fac90['split']('\x0a')[_0x19ab3d(0x15a)](_0xe82a24=>_0xe82a24['trim']()[_0x19ab3d(0x156)]>0x0);if(_0x1bf2f2[_0x19ab3d(0x156)]===0x0)return _0x19ab3d(0x164);if(_0x1bf2f2[_0x19ab3d(0x156)]<=0x1e)return _0x4fac90[_0x19ab3d(0x15e)]();const _0x5142d1=[],_0x5ae0e4=[];for(const _0x3b8598 of _0x1bf2f2){const _0x50c789=_0x3b8598[_0x19ab3d(0x15e)]();if(_0x50c789[_0x19ab3d(0x154)](_0x19ab3d(0x13e))||_0x50c789[_0x19ab3d(0x154)]('d')&&_0x50c789[_0x19ab3d(0x150)]('..'))continue;_0x50c789[_0x19ab3d(0x162)]('/')||_0x50c789[_0x19ab3d(0x154)]('d')&&_0x50c789[_0x19ab3d(0x150)]('\x20')?_0x5142d1[_0x19ab3d(0x153)](_0x50c789):_0x5ae0e4[_0x19ab3d(0x153)](_0x50c789);}const _0x108323=[];return _0x5142d1[_0x19ab3d(0x156)]>0x0&&(_0x5142d1[_0x19ab3d(0x156)]<=0xf?_0x108323[_0x19ab3d(0x153)](..._0x5142d1):(_0x108323[_0x19ab3d(0x153)](..._0x5142d1['slice'](0x0,0xa)),_0x108323['push'](_0x19ab3d(0x15c)+(_0x5142d1[_0x19ab3d(0x156)]-0xa)+_0x19ab3d(0x151)))),_0x5ae0e4[_0x19ab3d(0x156)]>0x0&&(_0x5ae0e4[_0x19ab3d(0x156)]<=0x14?_0x108323['push'](..._0x5ae0e4):(_0x108323[_0x19ab3d(0x153)](..._0x5ae0e4['slice'](0x0,0xf)),_0x108323['push'](_0x19ab3d(0x15c)+(_0x5ae0e4[_0x19ab3d(0x156)]-0xf)+_0x19ab3d(0x169)))),_0x108323['push']('\x0a('+_0x5142d1[_0x19ab3d(0x156)]+_0x19ab3d(0x158)+_0x5ae0e4[_0x19ab3d(0x156)]+_0x19ab3d(0x147)),_0x108323['join']('\x0a');}function filterTree(_0x41913b){const _0x32af87=a0_0x205ce1,_0x3c4af3=_0x41913b[_0x32af87(0x157)]('\x0a');if(_0x3c4af3[_0x32af87(0x156)]<=0x32)return _0x41913b['trim']();const _0x5c8221=[];let _0x47b121=0x0,_0x3d6144=0x0,_0x136d13=0x0;for(const _0x4ed572 of _0x3c4af3){const _0x24c299=_0x4ed572[_0x32af87(0x163)](/(\d+)\s+director/),_0x22a755=_0x4ed572[_0x32af87(0x163)](/(\d+)\s+file/);if(_0x24c299)_0x136d13=parseInt(_0x24c299[0x1]);if(_0x22a755)_0x3d6144=parseInt(_0x22a755[0x1]);const _0x3ee55f=(_0x4ed572['match'](/^[│├└\s─]+/)||[''])[0x0][_0x32af87(0x156)];_0x3ee55f<=0x4&&(_0x5c8221['push'](_0x4ed572),_0x47b121++);}return _0x3c4af3['length']>_0x5c8221[_0x32af87(0x156)]&&_0x5c8221[_0x32af87(0x153)](_0x32af87(0x142)+_0x136d13+_0x32af87(0x158)+_0x3d6144+_0x32af87(0x159)),_0x5c8221[_0x32af87(0x166)]('\x0a');}function filterCat(_0x396934){const _0xe2f31b=a0_0x205ce1,_0x10fd9f=_0x396934[_0xe2f31b(0x157)]('\x0a');if(_0x10fd9f['length']<=0x64)return _0x396934;const _0x1aa819=[];return _0x1aa819[_0xe2f31b(0x153)](..._0x10fd9f[_0xe2f31b(0x13d)](0x0,0x32)),_0x1aa819[_0xe2f31b(0x153)](_0xe2f31b(0x13c)+(_0x10fd9f['length']-0x50)+_0xe2f31b(0x15f)),_0x1aa819[_0xe2f31b(0x153)](..._0x10fd9f[_0xe2f31b(0x13d)](-0x1e)),_0x1aa819[_0xe2f31b(0x153)]('\x0a('+_0x10fd9f[_0xe2f31b(0x156)]+_0xe2f31b(0x144)),_0x1aa819[_0xe2f31b(0x166)]('\x0a');}function a0_0x57eb(_0x63bd1f,_0x43b6f2){const _0x4a6811=a0_0x4a68();return a0_0x57eb=function(_0x57eb6c,_0x3e02e5){_0x57eb6c=_0x57eb6c-0x13b;let _0x395c1b=_0x4a6811[_0x57eb6c];return _0x395c1b;},a0_0x57eb(_0x63bd1f,_0x43b6f2);}function filterGrep(_0xf5f62b){const _0x203c79=a0_0x205ce1,_0x322b22=_0xf5f62b[_0x203c79(0x157)]('\x0a')[_0x203c79(0x15a)](_0x546593=>_0x546593[_0x203c79(0x15e)]()[_0x203c79(0x156)]>0x0);if(_0x322b22['length']===0x0)return'No\x20matches\x20found';if(_0x322b22[_0x203c79(0x156)]<=0x32)return _0xf5f62b[_0x203c79(0x15e)]();const _0x3b0f1a={},_0xda6e68=[];for(const _0x179727 of _0x322b22){const _0x30449c=_0x179727[_0x203c79(0x161)](':');if(_0x30449c>0x0&&_0x30449c<0xc8){const _0x2db86b=_0x179727[_0x203c79(0x14d)](0x0,_0x30449c);if(_0x2db86b[_0x203c79(0x150)]('/')||_0x2db86b[_0x203c79(0x150)]('\x5c')||_0x2db86b[_0x203c79(0x150)]('.')){if(!_0x3b0f1a[_0x2db86b])_0x3b0f1a[_0x2db86b]=[];_0x3b0f1a[_0x2db86b][_0x203c79(0x153)](_0x179727[_0x203c79(0x14d)](_0x30449c+0x1)[_0x203c79(0x15e)]());continue;}}_0xda6e68[_0x203c79(0x153)](_0x179727);}const _0x1c3848=[],_0xa064b6=Object[_0x203c79(0x141)](_0x3b0f1a);if(_0xa064b6[_0x203c79(0x156)]>0x0){const _0x31ea89=0x14,_0x3b020a=_0xa064b6[_0x203c79(0x13d)](0x0,_0x31ea89);for(const _0x526a5d of _0x3b020a){const _0x13a941=_0x3b0f1a[_0x526a5d];if(_0x13a941[_0x203c79(0x156)]<=0x3)for(const _0xdbbe4a of _0x13a941){_0x1c3848[_0x203c79(0x153)](_0x526a5d+':\x20'+_0xdbbe4a);}else _0x1c3848[_0x203c79(0x153)](_0x526a5d+':\x20'+_0x13a941[0x0]),_0x1c3848[_0x203c79(0x153)](_0x526a5d+_0x203c79(0x14e)+_0x13a941[_0x203c79(0x156)]+_0x203c79(0x165));}_0xa064b6[_0x203c79(0x156)]>_0x31ea89&&_0x1c3848[_0x203c79(0x153)]('...\x20+'+(_0xa064b6[_0x203c79(0x156)]-_0x31ea89)+_0x203c79(0x168));}if(_0xda6e68[_0x203c79(0x156)]>0x0){const _0x1f1727=0x1e;_0x1c3848[_0x203c79(0x153)](..._0xda6e68[_0x203c79(0x13d)](0x0,_0x1f1727)),_0xda6e68[_0x203c79(0x156)]>_0x1f1727&&_0x1c3848[_0x203c79(0x153)](_0x203c79(0x15c)+(_0xda6e68[_0x203c79(0x156)]-_0x1f1727)+'\x20more\x20matches');}const _0x317f4c=_0x322b22[_0x203c79(0x156)];return _0x1c3848[_0x203c79(0x153)]('\x0a('+_0x317f4c+_0x203c79(0x145)+(_0xa064b6['length']||'?')+_0x203c79(0x147)),_0x1c3848[_0x203c79(0x166)]('\x0a');}
|
|
1
|
+
'use strict';const a0_0x463c99=a0_0x132c;(function(_0xf80008,_0x1c33ce){const _0x2b98c4=a0_0x132c,_0x163eeb=_0xf80008();while(!![]){try{const _0x3947f3=parseInt(_0x2b98c4(0x108))/0x1*(-parseInt(_0x2b98c4(0x115))/0x2)+-parseInt(_0x2b98c4(0x11a))/0x3+-parseInt(_0x2b98c4(0x114))/0x4+-parseInt(_0x2b98c4(0xf7))/0x5+parseInt(_0x2b98c4(0x156))/0x6+-parseInt(_0x2b98c4(0x109))/0x7*(parseInt(_0x2b98c4(0x140))/0x8)+parseInt(_0x2b98c4(0x129))/0x9;if(_0x3947f3===_0x1c33ce)break;else _0x163eeb['push'](_0x163eeb['shift']());}catch(_0x2141b1){_0x163eeb['push'](_0x163eeb['shift']());}}}(a0_0x3861,0x331a8));var __createBinding=this&&this[a0_0x463c99(0x113)]||(Object[a0_0x463c99(0x123)]?function(_0x1a8e66,_0xd74fe1,_0x478de0,_0x1cf191){const _0x5bfbfd=a0_0x463c99;if(_0x1cf191===undefined)_0x1cf191=_0x478de0;var _0x25ef4b=Object[_0x5bfbfd(0x10d)](_0xd74fe1,_0x478de0);(!_0x25ef4b||('get'in _0x25ef4b?!_0xd74fe1['__esModule']:_0x25ef4b[_0x5bfbfd(0xfe)]||_0x25ef4b[_0x5bfbfd(0x158)]))&&(_0x25ef4b={'enumerable':!![],'get':function(){return _0xd74fe1[_0x478de0];}}),Object['defineProperty'](_0x1a8e66,_0x1cf191,_0x25ef4b);}:function(_0x5265e6,_0x3942d1,_0x4426fd,_0x5d28bb){if(_0x5d28bb===undefined)_0x5d28bb=_0x4426fd;_0x5265e6[_0x5d28bb]=_0x3942d1[_0x4426fd];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a0_0x463c99(0x123)]?function(_0x469b05,_0x4be778){const _0x32c127=a0_0x463c99;Object[_0x32c127(0x128)](_0x469b05,_0x32c127(0x15d),{'enumerable':!![],'value':_0x4be778});}:function(_0x4eab6b,_0x10e541){const _0x53a3a1=a0_0x463c99;_0x4eab6b[_0x53a3a1(0x15d)]=_0x10e541;}),__importStar=this&&this[a0_0x463c99(0x133)]||(function(){var _0x355d05=function(_0x3d995a){const _0x35f6ee=a0_0x132c;return _0x355d05=Object[_0x35f6ee(0xf5)]||function(_0x1a4d46){const _0x3098ec=_0x35f6ee;var _0x45700d=[];for(var _0x5a4b8b in _0x1a4d46)if(Object[_0x3098ec(0x151)][_0x3098ec(0x15a)][_0x3098ec(0x157)](_0x1a4d46,_0x5a4b8b))_0x45700d[_0x45700d[_0x3098ec(0x12f)]]=_0x5a4b8b;return _0x45700d;},_0x355d05(_0x3d995a);};return function(_0x5e3930){const _0x1244d3=a0_0x132c;if(_0x5e3930&&_0x5e3930[_0x1244d3(0x110)])return _0x5e3930;var _0xcf1dac={};if(_0x5e3930!=null){for(var _0xddedc9=_0x355d05(_0x5e3930),_0xcbe05a=0x0;_0xcbe05a<_0xddedc9['length'];_0xcbe05a++)if(_0xddedc9[_0xcbe05a]!=='default')__createBinding(_0xcf1dac,_0x5e3930,_0xddedc9[_0xcbe05a]);}return __setModuleDefault(_0xcf1dac,_0x5e3930),_0xcf1dac;};}());Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a0_0x463c99(0x122)]=filterLs,exports[a0_0x463c99(0x14d)]=filterTree,exports['filterCat']=filterCat,exports[a0_0x463c99(0x126)]=filterGrep,exports[a0_0x463c99(0x143)]=filterFind;function a0_0x132c(_0x13c811,_0x54291b){_0x13c811=_0x13c811-0xee;const _0x3861ac=a0_0x3861();let _0x132c8d=_0x3861ac[_0x13c811];return _0x132c8d;}const path=__importStar(require('path')),LOCK_FILES=['package-lock.json',a0_0x463c99(0x147),'pnpm-lock.yaml','Cargo.lock',a0_0x463c99(0x13d),a0_0x463c99(0x154),a0_0x463c99(0x131),a0_0x463c99(0x148),'bun.lockb'],BINARY_EXTENSIONS=[a0_0x463c99(0x127),a0_0x463c99(0x125),'.map',a0_0x463c99(0x12e),a0_0x463c99(0x111),a0_0x463c99(0x144),a0_0x463c99(0xfd),'.gif',a0_0x463c99(0x13b),a0_0x463c99(0x150),a0_0x463c99(0x124),a0_0x463c99(0x120),a0_0x463c99(0x15c),a0_0x463c99(0xfc),'.tar.gz',a0_0x463c99(0x117),a0_0x463c99(0xf8),a0_0x463c99(0x102),'.7z','.rar',a0_0x463c99(0x136),a0_0x463c99(0x12a),a0_0x463c99(0x135),a0_0x463c99(0x10f),'.bin','.dat',a0_0x463c99(0x112),a0_0x463c99(0x116),'.sqlite3',a0_0x463c99(0x119),a0_0x463c99(0x141),a0_0x463c99(0x146),a0_0x463c99(0xf9),'.otf',a0_0x463c99(0x14c),'.mp4',a0_0x463c99(0x13c),a0_0x463c99(0x139),a0_0x463c99(0x103),a0_0x463c99(0x137),'.pyc','.pyo','.class','.o','.obj'];function extractFilename(_0x15368d){const _0x5c0c0b=a0_0x463c99,_0x53ae74=_0x15368d[_0x5c0c0b(0x105)]()['split'](/\s+/);for(let _0x2f3f6d=0x1;_0x2f3f6d<_0x53ae74[_0x5c0c0b(0x12f)];_0x2f3f6d++){if(!_0x53ae74[_0x2f3f6d][_0x5c0c0b(0x106)]('-'))return _0x53ae74[_0x2f3f6d];}return null;}function filterLockFile(_0x268766,_0x285b06){const _0x87b1a0=a0_0x463c99;try{const _0x5f0f2e=path[_0x87b1a0(0x11d)](_0x285b06)[_0x87b1a0(0xf4)]();if(!LOCK_FILES[_0x87b1a0(0xfa)](_0x246c86=>_0x5f0f2e===_0x246c86[_0x87b1a0(0xf4)]()))return null;const _0x2be71b=_0x268766[_0x87b1a0(0x12f)];let _0x2a69ed=0x0;if(_0x5f0f2e==='package-lock.json')try{const _0xccd4f0=JSON[_0x87b1a0(0xff)](_0x268766);_0x2a69ed=Object['keys'](_0xccd4f0[_0x87b1a0(0x13f)]||_0xccd4f0[_0x87b1a0(0x12b)]||{})['length'];}catch{_0x2a69ed=(_0x268766[_0x87b1a0(0x11b)](/"resolved":/g)||[])['length'];}else{if(_0x5f0f2e===_0x87b1a0(0x147))_0x2a69ed=(_0x268766['match'](/^"?[^#\s][^:]*:$/gm)||[])[_0x87b1a0(0x12f)];else{if(_0x5f0f2e==='cargo.lock'||_0x5f0f2e===_0x87b1a0(0x154))_0x2a69ed=(_0x268766['match'](/\[\[package\]\]/g)||[])['length'];else{if(_0x5f0f2e===_0x87b1a0(0x13d))_0x2a69ed=Math['floor'](_0x268766[_0x87b1a0(0x152)]('\x0a')[_0x87b1a0(0x159)](_0x5bbfd8=>_0x5bbfd8['trim']())[_0x87b1a0(0x12f)]/0x2);else{if(_0x5f0f2e===_0x87b1a0(0x131))try{_0x2a69ed=JSON[_0x87b1a0(0xff)](_0x268766)[_0x87b1a0(0x13f)]?.[_0x87b1a0(0x12f)]||0x0;}catch{}else _0x5f0f2e===_0x87b1a0(0xf1)?_0x2a69ed=(_0x268766[_0x87b1a0(0x11b)](/^\s{2}['"@a-z]/gm)||[])['length']:_0x2a69ed=_0x268766[_0x87b1a0(0x152)]('\x0a')[_0x87b1a0(0x159)](_0x3722c0=>_0x3722c0[_0x87b1a0(0x105)]())[_0x87b1a0(0x12f)];}}}}return _0x87b1a0(0x10c)+path['basename'](_0x285b06)+':\x20'+_0x2a69ed+_0x87b1a0(0xef)+_0x2be71b[_0x87b1a0(0x145)]()+'\x20chars\x20(content\x20omitted\x20—\x20lock\x20files\x20are\x20not\x20useful\x20for\x20LLM\x20context)';}catch{return null;}}function filterBinaryOrMinified(_0x3e61d7,_0x289469){const _0x3c2f0b=a0_0x463c99;try{if(_0x289469){const _0x3a578e=_0x289469[_0x3c2f0b(0xf4)]();for(const _0x591ddb of BINARY_EXTENSIONS){if(_0x3a578e[_0x3c2f0b(0x11c)](_0x591ddb))return _0x3c2f0b(0x11f)+path[_0x3c2f0b(0x11d)](_0x289469)+',\x20'+_0x3e61d7[_0x3c2f0b(0x12f)][_0x3c2f0b(0x145)]()+_0x3c2f0b(0xf2)+_0x591ddb+_0x3c2f0b(0x134);}}const _0x95a269=_0x3e61d7[_0x3c2f0b(0x14b)](0x0,0x3e8);let _0x537792=0x0;for(let _0x598bd0=0x0;_0x598bd0<_0x95a269['length'];_0x598bd0++){if(_0x95a269[_0x3c2f0b(0x12d)](_0x598bd0)===0x0)_0x537792++;}if(_0x537792>0x0)return'[binary\x20file]\x20'+_0x3e61d7[_0x3c2f0b(0x12f)][_0x3c2f0b(0x145)]()+_0x3c2f0b(0x14f);let _0xa27247=0x0;for(let _0xafc6fe=0x0;_0xafc6fe<_0x95a269['length'];_0xafc6fe++){const _0x1ba881=_0x95a269[_0x3c2f0b(0x12d)](_0xafc6fe);if(_0x1ba881<0x20&&_0x1ba881!==0xa&&_0x1ba881!==0xd&&_0x1ba881!==0x9)_0xa27247++;}if(_0x95a269[_0x3c2f0b(0x12f)]>0x64&&_0xa27247>_0x95a269[_0x3c2f0b(0x12f)]*0.1)return _0x3c2f0b(0xfb)+_0x3e61d7[_0x3c2f0b(0x12f)][_0x3c2f0b(0x145)]()+_0x3c2f0b(0xf6);const _0x1cc27c=_0x3e61d7['split']('\x0a');if(_0x1cc27c[_0x3c2f0b(0x12f)]<=0x3&&_0x3e61d7[_0x3c2f0b(0x12f)]>0x1388)return _0x3c2f0b(0x14e)+_0x3e61d7[_0x3c2f0b(0x12f)][_0x3c2f0b(0x145)]()+_0x3c2f0b(0x132)+_0x1cc27c['length']+_0x3c2f0b(0x10e);return null;}catch{return null;}}function filterJsonMinify(_0x4b14c4){const _0xc12f5f=a0_0x463c99;try{const _0x387d0c=_0x4b14c4[_0xc12f5f(0x105)]();if(!_0x387d0c[_0xc12f5f(0x106)]('{')&&!_0x387d0c[_0xc12f5f(0x106)]('['))return null;const _0x57f58e=_0x387d0c[_0xc12f5f(0x152)]('\x0a');if(_0x57f58e[_0xc12f5f(0x12f)]<=0x14)return null;const _0x226064=JSON[_0xc12f5f(0xff)](_0x387d0c),_0x5de18e=JSON['stringify'](_0x226064);if(_0x5de18e[_0xc12f5f(0x12f)]<_0x387d0c['length'])return _0x5de18e;return null;}catch{return null;}}function a0_0x3861(){const _0x323510=['filterLs','create','.webp','.min.css','filterGrep','.min.js','defineProperty','13481892VRLyDc','.dll','dependencies','total\x20','charCodeAt','.wasm','length','push','composer.lock','\x20chars\x20across\x20','__importStar','\x20(content\x20omitted\x20—\x20not\x20useful\x20for\x20LLM\x20context)','.so','.exe','.webm','\x20more\x20matches','.avi','\x20files\x20found\x20across\x20','.ico','.wav','go.sum','\x20matches\x20in\x20this\x20file)','packages','88144UWLlxS','.woff2','/\x20(','filterFind','.jpg','toLocaleString','.ttf','yarn.lock','Gemfile.lock','\x20matches\x20across\x20','\x20more\x20directories','substring','.mp3','filterTree','[minified\x20file]\x20','\x20chars\x20(contains\x20null\x20bytes\x20—\x20binary\x20content\x20omitted)','.bmp','prototype','split','slice','poetry.lock','includes','574692pzkeko','call','configurable','filter','hasOwnProperty','\x20lines\x20truncated]\x20...\x0a','.pdf','default','entries','\x20dependencies,\x20','\x20more\x20files\x20with\x20matches','pnpm-lock.yaml','\x20chars,\x20type:\x20','dirname','toLowerCase','getOwnPropertyNames','\x20chars\x20(high\x20non-printable\x20ratio\x20—\x20content\x20omitted)','1363295KFeXRy','.gz','.eot','some','[binary\x20file]\x20','.zip','.jpeg','writable','parse','keys','Empty\x20directory','.bz2','.mov','indexOf','trim','startsWith','...\x20+','1MEetrw','203xGbuhr','join','\x20files\x20total\x20—\x20deep\x20entries\x20truncated)','[lock\x20file]\x20','getOwnPropertyDescriptor','\x20line(s)\x20(content\x20omitted\x20—\x20not\x20human-readable)','.dylib','__esModule','.png','.sqlite','__createBinding','1370488xYEXhO','550742fXBGnu','.db','.tgz','\x0a...\x20[','.woff','522828uMKPES','match','endsWith','basename','\x20files)','[binary/minified\x20file]\x20','.svg','\x20more\x20files'];a0_0x3861=function(){return _0x323510;};return a0_0x3861();}function filterLs(_0x4bfb18){const _0x3e80b5=a0_0x463c99,_0x531ab9=_0x4bfb18[_0x3e80b5(0x152)]('\x0a')[_0x3e80b5(0x159)](_0x1cf225=>_0x1cf225[_0x3e80b5(0x105)]()[_0x3e80b5(0x12f)]>0x0);if(_0x531ab9['length']===0x0)return _0x3e80b5(0x101);if(_0x531ab9['length']<=0x1e)return _0x4bfb18[_0x3e80b5(0x105)]();const _0x2296bf=[],_0x2b0b83=[];for(const _0x1b041d of _0x531ab9){const _0x1c207a=_0x1b041d[_0x3e80b5(0x105)]();if(_0x1c207a['startsWith'](_0x3e80b5(0x12c))||_0x1c207a['startsWith']('d')&&_0x1c207a[_0x3e80b5(0x155)]('..'))continue;_0x1c207a['endsWith']('/')||_0x1c207a['startsWith']('d')&&_0x1c207a[_0x3e80b5(0x155)]('\x20')?_0x2296bf[_0x3e80b5(0x130)](_0x1c207a):_0x2b0b83[_0x3e80b5(0x130)](_0x1c207a);}const _0x547dc0=[];return _0x2296bf[_0x3e80b5(0x12f)]>0x0&&(_0x2296bf[_0x3e80b5(0x12f)]<=0xf?_0x547dc0[_0x3e80b5(0x130)](..._0x2296bf):(_0x547dc0[_0x3e80b5(0x130)](..._0x2296bf[_0x3e80b5(0x153)](0x0,0xa)),_0x547dc0[_0x3e80b5(0x130)](_0x3e80b5(0x107)+(_0x2296bf['length']-0xa)+'\x20more\x20directories'))),_0x2b0b83[_0x3e80b5(0x12f)]>0x0&&(_0x2b0b83[_0x3e80b5(0x12f)]<=0x14?_0x547dc0[_0x3e80b5(0x130)](..._0x2b0b83):(_0x547dc0[_0x3e80b5(0x130)](..._0x2b0b83[_0x3e80b5(0x153)](0x0,0xf)),_0x547dc0[_0x3e80b5(0x130)]('...\x20+'+(_0x2b0b83[_0x3e80b5(0x12f)]-0xf)+_0x3e80b5(0x121)))),_0x547dc0[_0x3e80b5(0x130)]('\x0a('+_0x2296bf[_0x3e80b5(0x12f)]+'\x20directories,\x20'+_0x2b0b83[_0x3e80b5(0x12f)]+_0x3e80b5(0x11e)),_0x547dc0[_0x3e80b5(0x10a)]('\x0a');}function filterTree(_0x3cff21){const _0x2821a7=a0_0x463c99,_0x3b52da=_0x3cff21['split']('\x0a');if(_0x3b52da[_0x2821a7(0x12f)]<=0x32)return _0x3cff21[_0x2821a7(0x105)]();const _0x1d355f=[];let _0x36bb38=0x0,_0x14035b=0x0,_0x3ab1dc=0x0;for(const _0x889dc8 of _0x3b52da){const _0x38c171=_0x889dc8[_0x2821a7(0x11b)](/(\d+)\s+director/),_0x4a2ea2=_0x889dc8[_0x2821a7(0x11b)](/(\d+)\s+file/);if(_0x38c171)_0x3ab1dc=parseInt(_0x38c171[0x1]);if(_0x4a2ea2)_0x14035b=parseInt(_0x4a2ea2[0x1]);const _0x2103d3=(_0x889dc8[_0x2821a7(0x11b)](/^[│├└\s─]+/)||[''])[0x0]['length'];_0x2103d3<=0x4&&(_0x1d355f[_0x2821a7(0x130)](_0x889dc8),_0x36bb38++);}return _0x3b52da[_0x2821a7(0x12f)]>_0x1d355f[_0x2821a7(0x12f)]&&_0x1d355f['push']('\x0a...\x20('+_0x3ab1dc+'\x20directories,\x20'+_0x14035b+_0x2821a7(0x10b)),_0x1d355f['join']('\x0a');}function filterCat(_0x11110e,_0x1999d2=''){const _0x2a49b6=a0_0x463c99,_0x5fc5c7=extractFilename(_0x1999d2);try{if(_0x5fc5c7){const _0x3d1638=filterLockFile(_0x11110e,_0x5fc5c7);if(_0x3d1638)return _0x3d1638;}const _0x56289b=filterBinaryOrMinified(_0x11110e,_0x5fc5c7);if(_0x56289b)return _0x56289b;const _0x25c922=filterJsonMinify(_0x11110e);if(_0x25c922)return _0x25c922;}catch{}const _0x3e82b2=_0x11110e[_0x2a49b6(0x152)]('\x0a');if(_0x3e82b2['length']<=0x64)return _0x11110e;const _0x133c55=[];return _0x133c55[_0x2a49b6(0x130)](..._0x3e82b2[_0x2a49b6(0x153)](0x0,0x32)),_0x133c55['push'](_0x2a49b6(0x118)+(_0x3e82b2['length']-0x50)+_0x2a49b6(0x15b)),_0x133c55['push'](..._0x3e82b2[_0x2a49b6(0x153)](-0x1e)),_0x133c55[_0x2a49b6(0x130)]('\x0a('+_0x3e82b2[_0x2a49b6(0x12f)]+'\x20lines\x20total)'),_0x133c55['join']('\x0a');}function filterGrep(_0x34a37b){const _0x3f068f=a0_0x463c99,_0x2972f1=_0x34a37b[_0x3f068f(0x152)]('\x0a')[_0x3f068f(0x159)](_0x42d154=>_0x42d154[_0x3f068f(0x105)]()[_0x3f068f(0x12f)]>0x0);if(_0x2972f1[_0x3f068f(0x12f)]===0x0)return'No\x20matches\x20found';if(_0x2972f1[_0x3f068f(0x12f)]<=0x32)return _0x34a37b[_0x3f068f(0x105)]();const _0x5c883d={},_0x2700e3=[];for(const _0x18f30b of _0x2972f1){const _0x4ac99a=_0x18f30b[_0x3f068f(0x104)](':');if(_0x4ac99a>0x0&&_0x4ac99a<0xc8){const _0x8f97f3=_0x18f30b['substring'](0x0,_0x4ac99a);if(_0x8f97f3[_0x3f068f(0x155)]('/')||_0x8f97f3[_0x3f068f(0x155)]('\x5c')||_0x8f97f3['includes']('.')){if(!_0x5c883d[_0x8f97f3])_0x5c883d[_0x8f97f3]=[];_0x5c883d[_0x8f97f3][_0x3f068f(0x130)](_0x18f30b[_0x3f068f(0x14b)](_0x4ac99a+0x1)['trim']());continue;}}_0x2700e3[_0x3f068f(0x130)](_0x18f30b);}const _0x3b6581=[],_0x3985f0=Object[_0x3f068f(0x100)](_0x5c883d);if(_0x3985f0[_0x3f068f(0x12f)]>0x0){const _0x51f7dc=0x14,_0x426e42=_0x3985f0[_0x3f068f(0x153)](0x0,_0x51f7dc);for(const _0x26a33e of _0x426e42){const _0x45d7ab=_0x5c883d[_0x26a33e];if(_0x45d7ab['length']<=0x3)for(const _0xac47cb of _0x45d7ab){_0x3b6581[_0x3f068f(0x130)](_0x26a33e+':\x20'+_0xac47cb);}else _0x3b6581[_0x3f068f(0x130)](_0x26a33e+':\x20'+_0x45d7ab[0x0]),_0x3b6581['push'](_0x26a33e+':\x20...\x20('+_0x45d7ab[_0x3f068f(0x12f)]+_0x3f068f(0x13e));}_0x3985f0['length']>_0x51f7dc&&_0x3b6581['push']('...\x20+'+(_0x3985f0[_0x3f068f(0x12f)]-_0x51f7dc)+_0x3f068f(0xf0));}if(_0x2700e3[_0x3f068f(0x12f)]>0x0){const _0x45dce8=0x1e;_0x3b6581['push'](..._0x2700e3[_0x3f068f(0x153)](0x0,_0x45dce8)),_0x2700e3[_0x3f068f(0x12f)]>_0x45dce8&&_0x3b6581[_0x3f068f(0x130)](_0x3f068f(0x107)+(_0x2700e3[_0x3f068f(0x12f)]-_0x45dce8)+_0x3f068f(0x138));}const _0x5d4cd5=_0x2972f1[_0x3f068f(0x12f)];return _0x3b6581[_0x3f068f(0x130)]('\x0a('+_0x5d4cd5+_0x3f068f(0x149)+(_0x3985f0[_0x3f068f(0x12f)]||'?')+_0x3f068f(0x11e)),_0x3b6581['join']('\x0a');}function filterFind(_0x2a93f2){const _0x4b9ec2=a0_0x463c99,_0x4e385c=_0x2a93f2[_0x4b9ec2(0x152)]('\x0a')[_0x4b9ec2(0x159)](_0x172bd8=>_0x172bd8[_0x4b9ec2(0x105)]()[_0x4b9ec2(0x12f)]>0x0);if(_0x4e385c[_0x4b9ec2(0x12f)]===0x0)return'No\x20files\x20found';if(_0x4e385c['length']<=0x32)return _0x2a93f2['trim']();const _0x2ed8d2={};for(const _0xb117f4 of _0x4e385c){const _0x5258f7=path[_0x4b9ec2(0xf3)](_0xb117f4[_0x4b9ec2(0x105)]())||'.';_0x2ed8d2[_0x5258f7]=(_0x2ed8d2[_0x5258f7]||0x0)+0x1;}const _0x32e6fb=Object[_0x4b9ec2(0xee)](_0x2ed8d2)['sort']((_0x59e5eb,_0x301b76)=>_0x301b76[0x1]-_0x59e5eb[0x1]),_0x532ba6=[_0x4e385c[_0x4b9ec2(0x12f)]+_0x4b9ec2(0x13a)+_0x32e6fb[_0x4b9ec2(0x12f)]+'\x20directories',''],_0x27b883=0x1e;for(const [_0x49dac2,_0xa96def]of _0x32e6fb[_0x4b9ec2(0x153)](0x0,_0x27b883)){_0x532ba6[_0x4b9ec2(0x130)]('\x20\x20'+_0x49dac2+_0x4b9ec2(0x142)+_0xa96def+_0x4b9ec2(0x11e));}return _0x32e6fb[_0x4b9ec2(0x12f)]>_0x27b883&&_0x532ba6[_0x4b9ec2(0x130)]('\x20\x20...\x20+'+(_0x32e6fb[_0x4b9ec2(0x12f)]-_0x27b883)+_0x4b9ec2(0x14a)),_0x532ba6[_0x4b9ec2(0x10a)]('\x0a');}
|
package/index.html
CHANGED
|
@@ -487,6 +487,19 @@
|
|
|
487
487
|
</div>
|
|
488
488
|
</div>
|
|
489
489
|
|
|
490
|
+
<div id="security-banner" class="history-section" style="display:none;">
|
|
491
|
+
<div style="display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px;">
|
|
492
|
+
<div style="display:flex; align-items:center; gap:10px;">
|
|
493
|
+
<div style="width:40px;height:40px;border-radius:10px;background:rgba(239,68,68,0.12);display:flex;align-items:center;justify-content:center;font-size:20px;">🛡</div>
|
|
494
|
+
<div>
|
|
495
|
+
<div style="font-size:15px;font-weight:600;color:#F09595;" id="sec-title">0 secrets blocked</div>
|
|
496
|
+
<div style="font-size:12px;color:#94A3B8;" id="sec-subtitle">No sensitive data leaked to LLM</div>
|
|
497
|
+
</div>
|
|
498
|
+
</div>
|
|
499
|
+
<div id="sec-tags" style="display:flex;gap:6px;flex-wrap:wrap;"></div>
|
|
500
|
+
</div>
|
|
501
|
+
</div>
|
|
502
|
+
|
|
490
503
|
<div class="history-section">
|
|
491
504
|
<div class="history-header" style="display: flex; align-items: center; gap: 16px;">
|
|
492
505
|
<h2 style="margin: 0;">Command Execution History</h2>
|
|
@@ -525,6 +538,8 @@
|
|
|
525
538
|
<h3 id="modal-command-title">Command Inspector</h3>
|
|
526
539
|
<button class="btn-close" onclick="closeModal()">×</button>
|
|
527
540
|
</div>
|
|
541
|
+
<div id="inspect-info-bar" style="display:none; padding:10px 20px; background:rgba(16,185,129,0.08); border-bottom:1px solid rgba(16,185,129,0.15); font-size:13px; color:#94A3B8; display:flex; gap:20px; flex-wrap:wrap;">
|
|
542
|
+
</div>
|
|
528
543
|
<div class="diff-views">
|
|
529
544
|
<div class="diff-column">
|
|
530
545
|
<div class="diff-title">Raw Command Output</div>
|
|
@@ -757,6 +772,30 @@
|
|
|
757
772
|
// Chart + summary always use AI-only logs
|
|
758
773
|
renderChart(aiLogs, resolvedModel);
|
|
759
774
|
|
|
775
|
+
// Security banner — aggregate across all logs
|
|
776
|
+
let totalSecrets = 0;
|
|
777
|
+
const allSecretTypes = {};
|
|
778
|
+
logs.forEach(l => {
|
|
779
|
+
if (l.secrets_found) {
|
|
780
|
+
totalSecrets += l.secrets_found;
|
|
781
|
+
(l.secret_types || []).forEach(t => { allSecretTypes[t] = (allSecretTypes[t] || 0) + 1; });
|
|
782
|
+
}
|
|
783
|
+
});
|
|
784
|
+
const secBanner = document.getElementById('security-banner');
|
|
785
|
+
if (totalSecrets > 0) {
|
|
786
|
+
secBanner.style.display = 'block';
|
|
787
|
+
document.getElementById('sec-title').innerText = `${totalSecrets} secret${totalSecrets > 1 ? 's' : ''} blocked`;
|
|
788
|
+
document.getElementById('sec-subtitle').innerText = `TrimPrompt prevented sensitive data from reaching LLM APIs`;
|
|
789
|
+
const tagsEl = document.getElementById('sec-tags');
|
|
790
|
+
tagsEl.innerHTML = Object.entries(allSecretTypes)
|
|
791
|
+
.sort((a, b) => b[1] - a[1])
|
|
792
|
+
.slice(0, 8)
|
|
793
|
+
.map(([t, c]) => `<span style="background:rgba(239,68,68,0.12);color:#F7C1C1;padding:3px 10px;border-radius:6px;font-size:11px;font-weight:500;">${t.replace(/_/g, ' ')} (${c})</span>`)
|
|
794
|
+
.join('');
|
|
795
|
+
} else {
|
|
796
|
+
secBanner.style.display = 'none';
|
|
797
|
+
}
|
|
798
|
+
|
|
760
799
|
const displayLogs = currentFilter === 'ai' ? aiLogs : logs;
|
|
761
800
|
|
|
762
801
|
const tbody = document.getElementById('history-table-body');
|
|
@@ -779,7 +818,7 @@
|
|
|
779
818
|
|
|
780
819
|
tr.innerHTML = `
|
|
781
820
|
<td>${time}</td>
|
|
782
|
-
<td style="font-weight: 500;">${log.command}</td>
|
|
821
|
+
<td style="font-weight: 500;">${log.command}${log.secrets_found ? ' <span style="color:#F09595;font-size:11px;" title="' + log.secrets_found + ' secrets redacted">🛡' + log.secrets_found + '</span>' : ''}</td>
|
|
783
822
|
<td>${log.estimated_raw_tokens.toLocaleString()}</td>
|
|
784
823
|
<td>${log.estimated_compressed_tokens.toLocaleString()}</td>
|
|
785
824
|
<td style="color: var(--emerald); font-weight: 600;">${savingsPct}%</td>
|
|
@@ -789,7 +828,7 @@
|
|
|
789
828
|
</span>
|
|
790
829
|
</td>
|
|
791
830
|
<td>
|
|
792
|
-
<button class="btn-inspect"
|
|
831
|
+
<button class="btn-inspect" data-id="${log.id}" data-cmd="${log.command}" data-sec="${log.secrets_found || 0}" data-types="${(log.secret_types || []).join(',')}" onclick="inspectFromBtn(this)">Inspect</button>
|
|
793
832
|
</td>
|
|
794
833
|
`;
|
|
795
834
|
tbody.appendChild(tr);
|
|
@@ -799,18 +838,125 @@
|
|
|
799
838
|
}
|
|
800
839
|
}
|
|
801
840
|
|
|
802
|
-
|
|
841
|
+
function escapeHtml(text) {
|
|
842
|
+
return text.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>');
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
// Human-friendly labels for redactor rule types (see redactor.ts)
|
|
846
|
+
const SECRET_TYPE_LABELS = {
|
|
847
|
+
aws_key: 'AWS access key',
|
|
848
|
+
aws_secret: 'AWS secret key',
|
|
849
|
+
gcp_key: 'GCP service account key',
|
|
850
|
+
azure_conn: 'Azure connection string',
|
|
851
|
+
anthropic_key: 'Anthropic API key',
|
|
852
|
+
openai_key: 'OpenAI API key',
|
|
853
|
+
github_token: 'GitHub token',
|
|
854
|
+
slack_token: 'Slack token',
|
|
855
|
+
stripe_key: 'Stripe key',
|
|
856
|
+
twilio_key: 'Twilio key',
|
|
857
|
+
sendgrid_key: 'SendGrid key',
|
|
858
|
+
private_key: 'Private key',
|
|
859
|
+
jwt: 'JWT token',
|
|
860
|
+
bearer: 'Bearer token',
|
|
861
|
+
basic_auth: 'Basic auth',
|
|
862
|
+
db_connection: 'Database connection',
|
|
863
|
+
generic_credential: 'API key / credential',
|
|
864
|
+
ip_address: 'IP address',
|
|
865
|
+
email: 'Email address'
|
|
866
|
+
};
|
|
867
|
+
function secretLabel(t) {
|
|
868
|
+
return SECRET_TYPE_LABELS[t] || String(t).replace(/_/g, ' ');
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
// Highlights [REDACTED_*] markers. mode 'red' marks where a secret was caught
|
|
872
|
+
// (left/raw pane); mode 'green' marks the safe replacement (right/output pane).
|
|
873
|
+
function highlightRedacted(html, mode) {
|
|
874
|
+
const red = mode === 'red';
|
|
875
|
+
const bg = red ? 'rgba(239,68,68,0.16)' : 'rgba(16,185,129,0.18)';
|
|
876
|
+
const fg = red ? '#FCA5A5' : '#5DCAA5';
|
|
877
|
+
const bd = red ? 'rgba(239,68,68,0.45)' : 'rgba(16,185,129,0.3)';
|
|
878
|
+
return html.replace(/\[REDACTED_[A-Z_]+\]/g, match =>
|
|
879
|
+
`<span style="background:${bg};color:${fg};padding:1px 6px;border-radius:3px;border:1px solid ${bd};font-weight:500;">${match}</span>`
|
|
880
|
+
);
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
function detectFilterType(raw, compressed, command) {
|
|
884
|
+
const rawLen = raw.length;
|
|
885
|
+
const compLen = compressed.length;
|
|
886
|
+
const pct = rawLen > 0 ? Math.round((1 - compLen / rawLen) * 100) : 0;
|
|
887
|
+
const tags = [];
|
|
888
|
+
|
|
889
|
+
if (compLen < rawLen && rawLen > 100) {
|
|
890
|
+
if (compressed.includes('lock file') || compressed.includes('dependencies'))
|
|
891
|
+
tags.push({ label: 'Lock file detected', color: '#FAC775' });
|
|
892
|
+
else if (compressed.includes('minified') || compressed.includes('binary file') || compressed.includes('not human-readable'))
|
|
893
|
+
tags.push({ label: 'Binary / minified', color: '#F09595' });
|
|
894
|
+
else if (rawLen > 500 && compLen < rawLen * 0.7 && raw.trimStart().startsWith('{'))
|
|
895
|
+
tags.push({ label: 'JSON minified', color: '#85B7EB' });
|
|
896
|
+
else if (compressed.includes('directories') && compressed.includes('files'))
|
|
897
|
+
tags.push({ label: 'Path grouping', color: '#AFA9EC' });
|
|
898
|
+
else if (compressed.includes('[file]') && compressed.includes('+'))
|
|
899
|
+
tags.push({ label: 'Diff condensed', color: '#85B7EB' });
|
|
900
|
+
else if (compressed.includes('lines total') || compressed.includes('lines truncated'))
|
|
901
|
+
tags.push({ label: 'File truncated', color: '#AFA9EC' });
|
|
902
|
+
else if (compressed.includes('* Branch:'))
|
|
903
|
+
tags.push({ label: 'Git status formatted', color: '#5DCAA5' });
|
|
904
|
+
else if (pct > 10)
|
|
905
|
+
tags.push({ label: 'Compressed', color: '#5DCAA5' });
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
return { pct, rawLen, compLen, tags };
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
function inspectFromBtn(btn) {
|
|
912
|
+
const id = btn.getAttribute('data-id');
|
|
913
|
+
const cmd = btn.getAttribute('data-cmd');
|
|
914
|
+
const sec = parseInt(btn.getAttribute('data-sec') || '0');
|
|
915
|
+
const types = (btn.getAttribute('data-types') || '').split(',').filter(Boolean);
|
|
916
|
+
inspectDiff(id, cmd, sec, types);
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
async function inspectDiff(id, command, secretsFound, secretTypes) {
|
|
803
920
|
try {
|
|
804
921
|
document.getElementById('modal-command-title').innerText = `Inspector: trim ${command}`;
|
|
805
|
-
document.getElementById('diff-raw').innerText = 'Loading
|
|
806
|
-
document.getElementById('diff-comp').innerText = 'Loading
|
|
922
|
+
document.getElementById('diff-raw').innerText = 'Loading...';
|
|
923
|
+
document.getElementById('diff-comp').innerText = 'Loading...';
|
|
807
924
|
document.getElementById('diff-modal').style.display = 'flex';
|
|
808
925
|
|
|
809
926
|
const response = await fetch(`/api/stats/inspect/${id}`);
|
|
810
927
|
const data = await response.json();
|
|
811
928
|
|
|
812
|
-
document.getElementById('diff-raw').
|
|
813
|
-
document.getElementById('diff-comp').
|
|
929
|
+
document.getElementById('diff-raw').innerHTML = highlightRedacted(escapeHtml(data.raw), 'red');
|
|
930
|
+
document.getElementById('diff-comp').innerHTML = highlightRedacted(escapeHtml(data.compressed), 'green');
|
|
931
|
+
|
|
932
|
+
const info = detectFilterType(data.raw, data.compressed, command);
|
|
933
|
+
const bar = document.getElementById('inspect-info-bar');
|
|
934
|
+
let html = `<span>Raw: <strong>${info.rawLen.toLocaleString()}</strong> chars</span>`;
|
|
935
|
+
html += `<span>Compressed: <strong>${info.compLen.toLocaleString()}</strong> chars</span>`;
|
|
936
|
+
html += `<span>Savings: <strong style="color:#10B981">${info.pct}%</strong></span>`;
|
|
937
|
+
info.tags.forEach(t => {
|
|
938
|
+
html += `<span style="background:${t.color}22; color:${t.color}; padding:2px 10px; border-radius:4px; font-size:12px; font-weight:500;">${t.label}</span>`;
|
|
939
|
+
});
|
|
940
|
+
bar.innerHTML = html;
|
|
941
|
+
bar.style.display = 'flex';
|
|
942
|
+
|
|
943
|
+
// Security bar — show only when secrets were found
|
|
944
|
+
let secBar = document.getElementById('inspect-security-bar');
|
|
945
|
+
if (!secBar) {
|
|
946
|
+
secBar = document.createElement('div');
|
|
947
|
+
secBar.id = 'inspect-security-bar';
|
|
948
|
+
bar.parentNode.insertBefore(secBar, bar.nextSibling);
|
|
949
|
+
}
|
|
950
|
+
if (secretsFound && secretsFound > 0) {
|
|
951
|
+
let secHtml = `<span style="background:rgba(239,68,68,0.2);color:#F09595;padding:3px 10px;border-radius:5px;font-size:11px;font-weight:600;border:1px solid rgba(239,68,68,0.4);">🛡 ${secretsFound} secret${secretsFound > 1 ? 's' : ''} blocked</span>`;
|
|
952
|
+
(secretTypes || []).forEach(t => {
|
|
953
|
+
secHtml += `<span style="background:rgba(239,68,68,0.12);color:#F7C1C1;padding:2px 10px;border-radius:4px;font-size:11px;border:1px solid rgba(239,68,68,0.25);">${secretLabel(t)}</span>`;
|
|
954
|
+
});
|
|
955
|
+
secBar.innerHTML = secHtml;
|
|
956
|
+
secBar.style.cssText = 'display:flex;padding:10px 20px;background:rgba(239,68,68,0.08);border-bottom:1px solid rgba(239,68,68,0.15);font-size:13px;color:#F09595;gap:10px;flex-wrap:wrap;align-items:center;';
|
|
957
|
+
} else {
|
|
958
|
+
secBar.style.display = 'none';
|
|
959
|
+
}
|
|
814
960
|
} catch (err) {
|
|
815
961
|
console.error('Failed to load diff logs', err);
|
|
816
962
|
}
|
package/mcp.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a0_0x5cb18c=a0_0x4f2f;(function(_0x40e49f,_0x2df2d7){const _0xf0e51d=a0_0x4f2f,_0x627c73=_0x40e49f();while(!![]){try{const _0x521a43=parseInt(_0xf0e51d(0x1f6))/0x1+parseInt(_0xf0e51d(0x21c))/0x2+-parseInt(_0xf0e51d(0x1f1))/0x3*(-parseInt(_0xf0e51d(0x1ef))/0x4)+parseInt(_0xf0e51d(0x20a))/0x5+-parseInt(_0xf0e51d(0x200))/0x6*(-parseInt(_0xf0e51d(0x1f7))/0x7)+parseInt(_0xf0e51d(0x213))/0x8*(-parseInt(_0xf0e51d(0x21d))/0x9)+-parseInt(_0xf0e51d(0x20b))/0xa;if(_0x521a43===_0x2df2d7)break;else _0x627c73['push'](_0x627c73['shift']());}catch(_0x1a8ff2){_0x627c73['push'](_0x627c73['shift']());}}}(a0_0x4287,0x5fa4c));function a0_0x4287(){const _0x53c1db=['default','close','create','714232VATvKQ','595XgGUFM','stringify','defineProperty','call','stdout','__esModule','parse','type','child_process','39750DfnhUL','text','jsonrpc','line','mcp\x20tool\x20(id:\x20','pipe','inherit','write','readline','stdin','2455620joeUeD','17531390sFJeVD','exit','[TrimPrompt]\x20MCP\x20Server\x20Spawn\x20Error:\x20','getOwnPropertyDescriptor','mcp-tool-call','tracker','trim','error','1016qtZMaO','string','createInterface','2.0','__importStar','writable','length','spawn','./filters','1501416SKPgsz','35163xHRsfn','result','97516tbDSBV','compressOutput','15IioxJf','getConfig'];a0_0x4287=function(){return _0x53c1db;};return a0_0x4287();}var __createBinding=this&&this['__createBinding']||(Object[a0_0x5cb18c(0x1f5)]?function(_0x35db1d,_0x3fbfca,_0x4a3d3a,_0x256021){const _0x2d72d4=a0_0x5cb18c;if(_0x256021===undefined)_0x256021=_0x4a3d3a;var _0x3eb337=Object[_0x2d72d4(0x20e)](_0x3fbfca,_0x4a3d3a);(!_0x3eb337||('get'in _0x3eb337?!_0x3fbfca[_0x2d72d4(0x1fc)]:_0x3eb337[_0x2d72d4(0x218)]||_0x3eb337['configurable']))&&(_0x3eb337={'enumerable':!![],'get':function(){return _0x3fbfca[_0x4a3d3a];}}),Object['defineProperty'](_0x35db1d,_0x256021,_0x3eb337);}:function(_0x113a5a,_0x114a6e,_0x1d4828,_0x5a9e39){if(_0x5a9e39===undefined)_0x5a9e39=_0x1d4828;_0x113a5a[_0x5a9e39]=_0x114a6e[_0x1d4828];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a0_0x5cb18c(0x1f5)]?function(_0x1c60de,_0x4006eb){const _0x15d7bc=a0_0x5cb18c;Object[_0x15d7bc(0x1f9)](_0x1c60de,_0x15d7bc(0x1f3),{'enumerable':!![],'value':_0x4006eb});}:function(_0x34aa9e,_0xb2b745){const _0x2c5c76=a0_0x5cb18c;_0x34aa9e[_0x2c5c76(0x1f3)]=_0xb2b745;}),__importStar=this&&this[a0_0x5cb18c(0x217)]||(function(){var _0x3295d=function(_0x4d55d4){return _0x3295d=Object['getOwnPropertyNames']||function(_0x520806){const _0x55f1ce=a0_0x4f2f;var _0x590b78=[];for(var _0xeb35d7 in _0x520806)if(Object['prototype']['hasOwnProperty'][_0x55f1ce(0x1fa)](_0x520806,_0xeb35d7))_0x590b78[_0x590b78[_0x55f1ce(0x219)]]=_0xeb35d7;return _0x590b78;},_0x3295d(_0x4d55d4);};return function(_0x471daf){const _0x5c2801=a0_0x4f2f;if(_0x471daf&&_0x471daf[_0x5c2801(0x1fc)])return _0x471daf;var _0x26ae3e={};if(_0x471daf!=null){for(var _0x1bdfea=_0x3295d(_0x471daf),_0x1a9c29=0x0;_0x1a9c29<_0x1bdfea[_0x5c2801(0x219)];_0x1a9c29++)if(_0x1bdfea[_0x1a9c29]!==_0x5c2801(0x1f3))__createBinding(_0x26ae3e,_0x471daf,_0x1bdfea[_0x1a9c29]);}return __setModuleDefault(_0x26ae3e,_0x471daf),_0x26ae3e;};}());function a0_0x4f2f(_0x5192e8,_0x4eab78){_0x5192e8=_0x5192e8-0x1ef;const _0x4287fe=a0_0x4287();let _0x4f2f79=_0x4287fe[_0x5192e8];return _0x4f2f79;}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['runMcpProxy']=runMcpProxy;const child_process_1=require(a0_0x5cb18c(0x1ff)),readline=__importStar(require(a0_0x5cb18c(0x208))),filters_1=require(a0_0x5cb18c(0x21b)),tracker_1=require('./tracker');function runMcpProxy(_0x1fce36,_0xa4c3d3){const _0x5c9957=a0_0x5cb18c,_0x59308c=(0x0,child_process_1[_0x5c9957(0x21a)])(_0x1fce36,_0xa4c3d3,{'stdio':[_0x5c9957(0x205),_0x5c9957(0x205),_0x5c9957(0x206)]});process[_0x5c9957(0x209)][_0x5c9957(0x205)](_0x59308c[_0x5c9957(0x209)]);const _0x31e47e=readline[_0x5c9957(0x215)]({'input':_0x59308c[_0x5c9957(0x1fb)],'terminal':![]});_0x31e47e['on'](_0x5c9957(0x203),_0x40653c=>{const _0x10b6d6=_0x5c9957;try{const _0x2307d9=JSON[_0x10b6d6(0x1fd)](_0x40653c);if(_0x2307d9&&_0x2307d9[_0x10b6d6(0x202)]===_0x10b6d6(0x216)&&_0x2307d9['id']!==undefined&&_0x2307d9[_0x10b6d6(0x21e)]&&Array['isArray'](_0x2307d9[_0x10b6d6(0x21e)]['content'])){let _0x1366fd=![];for(const _0x3578a3 of _0x2307d9[_0x10b6d6(0x21e)]['content']){if(_0x3578a3[_0x10b6d6(0x1fe)]==='text'&&typeof _0x3578a3[_0x10b6d6(0x201)]===_0x10b6d6(0x214)&&_0x3578a3[_0x10b6d6(0x201)][_0x10b6d6(0x211)]()['length']>0x0){const _0x50c8e8=_0x3578a3['text'],_0x248b53=(0x0,filters_1[_0x10b6d6(0x1f0)])(_0x10b6d6(0x20f),_0x50c8e8,'',tracker_1[_0x10b6d6(0x210)][_0x10b6d6(0x1f2)]()['redaction_enabled']);tracker_1[_0x10b6d6(0x210)]['logExecution'](_0x10b6d6(0x204)+_0x2307d9['id']+')',_0x50c8e8,_0x248b53,0x0),_0x3578a3[_0x10b6d6(0x201)]=_0x248b53,_0x1366fd=!![];}}_0x1366fd?process['stdout'][_0x10b6d6(0x207)](JSON[_0x10b6d6(0x1f8)](_0x2307d9)+'\x0a'):process[_0x10b6d6(0x1fb)]['write'](_0x40653c+'\x0a');}else process[_0x10b6d6(0x1fb)]['write'](_0x40653c+'\x0a');}catch{process['stdout'][_0x10b6d6(0x207)](_0x40653c+'\x0a');}}),_0x59308c['on'](_0x5c9957(0x1f4),_0x205937=>{const _0x54c406=_0x5c9957;process[_0x54c406(0x20c)](_0x205937||0x0);}),_0x59308c['on'](_0x5c9957(0x212),_0x2e509a=>{const _0x5040f1=_0x5c9957;console['error'](_0x5040f1(0x20d)+_0x2e509a['message']),process[_0x5040f1(0x20c)](0x1);});}
|
package/package.json
CHANGED
package/redactor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const a0_0x3ec13d=a0_0x1009;function a0_0x1009(_0x268140,_0x722d54){_0x268140=_0x268140-0x16d;const _0xfe8bbd=a0_0xfe8b();let _0x1009d8=_0xfe8bbd[_0x268140];return _0x1009d8;}(function(_0x4b99ce,_0x11d199){const _0x549fe3=a0_0x1009,_0xb80051=_0x4b99ce();while(!![]){try{const _0x366aa2=parseInt(_0x549fe3(0x174))/0x1*(parseInt(_0x549fe3(0x16d))/0x2)+parseInt(_0x549fe3(0x199))/0x3+-parseInt(_0x549fe3(0x1a5))/0x4*(-parseInt(_0x549fe3(0x16e))/0x5)+parseInt(_0x549fe3(0x193))/0x6*(-parseInt(_0x549fe3(0x1a4))/0x7)+-parseInt(_0x549fe3(0x190))/0x8*(parseInt(_0x549fe3(0x1a0))/0x9)+parseInt(_0x549fe3(0x198))/0xa+-parseInt(_0x549fe3(0x1ae))/0xb;if(_0x366aa2===_0x11d199)break;else _0xb80051['push'](_0xb80051['shift']());}catch(_0x4bc459){_0xb80051['push'](_0xb80051['shift']());}}}(a0_0xfe8b,0xaf379));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a0_0x3ec13d(0x184)]=exports[a0_0x3ec13d(0x19f)]=void 0x0;function a0_0xfe8b(){const _0x1f6ac0=['anthropic_key','3944950XPaIqM','1542108kOXKvP','Bearer\x20Token','stripe_key','[REDACTED_JWT]','Azure\x20Connection\x20String','ip_address','Redactor','214497otKdFu','OpenAI\x20API\x20Key','azure_conn','Slack\x20Token','7332843PNBVoK','12EMGGZX','twilio_key','match','Basic\x20Auth','length','regex','redactWithAudit','[REDACTED_GITHUB_TOKEN]','generic_credential','9019186WqyjcE','[REDACTED_AZURE_CONNECTION]','[REDACTED_STRIPE_KEY]','[REDACTED_EMAIL]','[REDACTED_ANTHROPIC_KEY]','514934SNQyPD','2023435rYjLks','rules','[REDACTED_AWS_KEY]','[REDACTED_SLACK_TOKEN]','github_token','type','3syEnYN','private_key','gcp_key','loadDefaultRules','[REDACTED_DB_CONNECTION]','[REDACTED_IP]','[REDACTED_SENDGRID_KEY]','text','AWS\x20Secret\x20Key','GCP\x20Service\x20Account\x20Key','replace','basic_auth','includes','push','email','Email\x20Address','redactor','GitHub\x20Token','slack_token','Anthropic\x20API\x20Key','replacement','alert','aws_secret','[REDACTED_OPENAI_KEY]','SendGrid\x20Key','Database\x20Connection\x20String','aws_key','Twilio\x20Key','104XbhVSn','openai_key','db_connection','6ZtQlAF','Generic\x20API\x20Key/Secret/Password','IPv4\x20Address\x20(non-local)','$1=[REDACTED_CREDENTIAL]'];a0_0xfe8b=function(){return _0x1f6ac0;};return a0_0xfe8b();}class Redactor{[a0_0x3ec13d(0x16f)]=[];constructor(){const _0x58ce96=a0_0x3ec13d;this[_0x58ce96(0x177)]();}[a0_0x3ec13d(0x177)](){const _0x18ffdc=a0_0x3ec13d;this[_0x18ffdc(0x16f)]=[{'name':'AWS\x20Access\x20Key','type':_0x18ffdc(0x18e),'regex':/\b(AKIA[0-9A-Z]{16})\b/g,'replacement':_0x18ffdc(0x170)},{'name':_0x18ffdc(0x17c),'type':_0x18ffdc(0x18a),'regex':/(aws_secret_access_key|AWS_SECRET_ACCESS_KEY)[\s:=]+[A-Za-z0-9/+=]{30,}/gi,'replacement':'$1=[REDACTED_AWS_SECRET]'},{'name':_0x18ffdc(0x17d),'type':_0x18ffdc(0x176),'regex':/"private_key"\s*:\s*"-----BEGIN[^"]+-----END[^"]*"/g,'replacement':'\x22private_key\x22:\x20\x22[REDACTED_GCP_PRIVATE_KEY]\x22'},{'name':_0x18ffdc(0x19d),'type':_0x18ffdc(0x1a2),'regex':/DefaultEndpointsProtocol=https?;AccountName=[^;]+;AccountKey=[^;]+;?[^\s]*/gi,'replacement':_0x18ffdc(0x1af)},{'name':_0x18ffdc(0x187),'type':_0x18ffdc(0x197),'regex':/\bsk-ant-api\d{2}-[A-Za-z0-9_-]{20,}\b/g,'replacement':_0x18ffdc(0x1b2)},{'name':_0x18ffdc(0x1a1),'type':_0x18ffdc(0x191),'regex':/\b(sk-proj-[A-Za-z0-9_-]{20,}|sk-[A-Za-z0-9]{32,})\b/g,'replacement':_0x18ffdc(0x18b)},{'name':_0x18ffdc(0x185),'type':_0x18ffdc(0x172),'regex':/\b(ghp_[A-Za-z0-9]{20,}|gho_[A-Za-z0-9]{20,}|github_pat_[A-Za-z0-9_]{22,})\b/g,'replacement':_0x18ffdc(0x1ac)},{'name':_0x18ffdc(0x1a3),'type':_0x18ffdc(0x186),'regex':/\b(xoxb-[0-9A-Za-z-]+|xoxp-[0-9A-Za-z-]+|xapp-[0-9A-Za-z-]+)\b/g,'replacement':_0x18ffdc(0x171)},{'name':'Stripe\x20Key','type':_0x18ffdc(0x19b),'regex':/\b(sk_live_[A-Za-z0-9]{24,}|sk_test_[A-Za-z0-9]{24,}|rk_live_[A-Za-z0-9]{24,}|rk_test_[A-Za-z0-9]{24,})\b/g,'replacement':_0x18ffdc(0x1b0)},{'name':_0x18ffdc(0x18f),'type':_0x18ffdc(0x1a6),'regex':/\bSK[0-9a-f]{32}\b/g,'replacement':'[REDACTED_TWILIO_KEY]'},{'name':_0x18ffdc(0x18c),'type':'sendgrid_key','regex':/\bSG\.[A-Za-z0-9_-]{22,}\.[A-Za-z0-9_-]{22,}\b/g,'replacement':_0x18ffdc(0x17a)},{'name':'Private\x20Key\x20Block','type':_0x18ffdc(0x175),'regex':/-----BEGIN\s+(RSA|EC|DSA|ED25519|OPENSSH|PGP)?\s*PRIVATE KEY-----[\s\S]*?-----END\s+(RSA|EC|DSA|ED25519|OPENSSH|PGP)?\s*PRIVATE KEY-----/g,'replacement':'[REDACTED_PRIVATE_KEY]'},{'name':'JWT\x20Token','type':'jwt','regex':/\beyJ[A-Za-z0-9_-]{10,}\.eyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'replacement':_0x18ffdc(0x19c)},{'name':_0x18ffdc(0x19a),'type':'bearer','regex':/Bearer\s+[A-Za-z0-9_\-.]{20,}/gi,'replacement':'Bearer\x20[REDACTED_TOKEN]'},{'name':_0x18ffdc(0x1a8),'type':_0x18ffdc(0x17f),'regex':/Basic\s+[A-Za-z0-9+/=]{10,}/gi,'replacement':'Basic\x20[REDACTED_AUTH]'},{'name':_0x18ffdc(0x18d),'type':_0x18ffdc(0x192),'regex':/(mongodb(\+srv)?|postgres|postgresql|mysql|redis|amqp|sqlite):\/\/[A-Za-z0-9_]+:[^@\s\n]+@[^\s\n]+/gi,'replacement':_0x18ffdc(0x178)},{'name':_0x18ffdc(0x194),'type':_0x18ffdc(0x1ad),'regex':/(api[_-]?key|secret[_-]?key|password|passwd|auth[_-]?token|private[_-]?key|access[_-]?token|refresh[_-]?token|client[_-]?secret)[\s:="']+[A-Za-z0-9_\-./+=]{16,}/gi,'replacement':_0x18ffdc(0x196)},{'name':_0x18ffdc(0x195),'type':_0x18ffdc(0x19e),'regex':/\b(?!127\.0\.0\.1|0\.0\.0\.0|255\.255\.255\.0|10\.\d|172\.(1[6-9]|2\d|3[01])\.|192\.168\.)(?:[0-9]{1,3}\.){3}[0-9]{1,3}\b/g,'replacement':_0x18ffdc(0x179),'alert':![]},{'name':_0x18ffdc(0x183),'type':_0x18ffdc(0x182),'regex':/\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b/g,'replacement':_0x18ffdc(0x1b1),'alert':![]}];}['redact'](_0x38d754){const _0x2475c3=a0_0x3ec13d;return this['redactWithAudit'](_0x38d754)[_0x2475c3(0x17b)];}[a0_0x3ec13d(0x1ab)](_0x1b200c){const _0x4e9a20=a0_0x3ec13d;let _0x25a8e0=_0x1b200c,_0x93ff38=0x0;const _0x254d3d=[];for(const _0x479bd1 of this[_0x4e9a20(0x16f)]){const _0x574966=_0x25a8e0[_0x4e9a20(0x1a7)](_0x479bd1[_0x4e9a20(0x1aa)]);_0x574966&&_0x574966['length']>0x0&&(_0x479bd1[_0x4e9a20(0x189)]!==![]&&(_0x93ff38+=_0x574966[_0x4e9a20(0x1a9)],!_0x254d3d[_0x4e9a20(0x180)](_0x479bd1[_0x4e9a20(0x173)])&&_0x254d3d[_0x4e9a20(0x181)](_0x479bd1[_0x4e9a20(0x173)])),_0x25a8e0=_0x25a8e0[_0x4e9a20(0x17e)](_0x479bd1[_0x4e9a20(0x1aa)],_0x479bd1[_0x4e9a20(0x188)]));}return{'text':_0x25a8e0,'secretsFound':_0x93ff38,'secretTypes':_0x254d3d};}}exports[a0_0x3ec13d(0x19f)]=Redactor,exports[a0_0x3ec13d(0x184)]=new Redactor();
|
package/seed.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a0_0x508b(){const _0x544a13=['logExecution','104642WaHCEN','[SUCCESS]\x20Compiled\x20512\x20modules.\x0a','npm\x20run\x20build','defineProperty','348444ETRvRh','12jvivOR','Step\x202/10\x20:\x20COPY\x20package.json\x20.\x0a','Compilation\x20Output:\x0a','repeat','added\x201420\x20packages\x20in\x2014s\x0a','docker\x20build\x20.','[INFO]\x20Building\x20modules...\x0a','5375272IEGzxe','All\x20303\x20tests\x20passed\x20in\x204.22s.','test_db.py\x20PASS\x0a','Optimizing\x20assets...\x0a','tracker','test_api.py\x20PASS\x0a','./tracker','Sending\x20build\x20context\x20to\x20Docker\x20daemon...\x0a','2440gcbyWJ','900980IsvXgV','Successfully\x20built\x20image.','360787TmOSxm','gemini-1-5-pro','pytest\x20tests/app','1519912ybTBBJ','pytest\x20app:\x20303\x20tests\x20passed\x20in\x204.22s.','claude-3-opus','log','918HKAYty','Database\x20successfully\x20seeded!','130mOaQGO','gpt-4o','__esModule'];a0_0x508b=function(){return _0x544a13;};return a0_0x508b();}const a0_0x5b3403=a0_0x559a;function a0_0x559a(_0x50c1e2,_0x4580c4){_0x50c1e2=_0x50c1e2-0x117;const _0x508b77=a0_0x508b();let _0x559a62=_0x508b77[_0x50c1e2];return _0x559a62;}(function(_0x13128f,_0x249180){const _0xf57d08=a0_0x559a,_0x5b16ee=_0x13128f();while(!![]){try{const _0x4266db=parseInt(_0xf57d08(0x123))/0x1+-parseInt(_0xf57d08(0x130))/0x2*(-parseInt(_0xf57d08(0x135))/0x3)+-parseInt(_0xf57d08(0x121))/0x4+-parseInt(_0xf57d08(0x120))/0x5*(parseInt(_0xf57d08(0x12a))/0x6)+parseInt(_0xf57d08(0x118))/0x7+parseInt(_0xf57d08(0x126))/0x8+-parseInt(_0xf57d08(0x134))/0x9*(parseInt(_0xf57d08(0x12c))/0xa);if(_0x4266db===_0x249180)break;else _0x5b16ee['push'](_0x5b16ee['shift']());}catch(_0x450541){_0x5b16ee['push'](_0x5b16ee['shift']());}}}(a0_0x508b,0xb0f03));Object[a0_0x5b3403(0x133)](exports,a0_0x5b3403(0x12e),{'value':!![]});const tracker_1=require(a0_0x5b3403(0x11e));console[a0_0x5b3403(0x129)]('Seeding\x20TrimPrompt\x20database\x20with\x20mock\x20LLM\x20command\x20telemetry...'),process.env.TRIMPROMPT_MODEL=a0_0x5b3403(0x128),tracker_1['tracker']['logExecution'](a0_0x5b3403(0x132),a0_0x5b3403(0x137)+a0_0x5b3403(0x117)+a0_0x5b3403(0x11b)+a0_0x5b3403(0x131)['repeat'](0x190),'[INFO]\x20Building\x20modules...\x0a[SUCCESS]\x20Compiled\x20512\x20modules.\x20(repeated\x20400\x20times)',0x0),process.env.TRIMPROMPT_MODEL=a0_0x5b3403(0x12d),tracker_1[a0_0x5b3403(0x11c)]['logExecution'](a0_0x5b3403(0x125),'Test\x20suite\x20run\x20starting...\x0a'+'test_auth.py\x20PASS\x0a'+a0_0x5b3403(0x11a)+a0_0x5b3403(0x11d)['repeat'](0x12c)+a0_0x5b3403(0x119),a0_0x5b3403(0x127),0x0),process.env.TRIMPROMPT_MODEL=a0_0x5b3403(0x124),tracker_1[a0_0x5b3403(0x11c)][a0_0x5b3403(0x12f)](a0_0x5b3403(0x13a),a0_0x5b3403(0x11f)+'Step\x201/10\x20:\x20FROM\x20node:20\x0a'+a0_0x5b3403(0x136)+'Step\x203/10\x20:\x20RUN\x20npm\x20install\x0a'+a0_0x5b3403(0x139)[a0_0x5b3403(0x138)](0x3)+a0_0x5b3403(0x122),'docker\x20build:\x201420\x20packages\x20added.\x20Successfully\x20built\x20image.',0x0),console[a0_0x5b3403(0x129)](a0_0x5b3403(0x12b));
|