trimprompt 1.0.17 → 1.0.19
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 +115 -6
- 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';const
|
|
1
|
+
'use strict';const a0_0x463c3a=a0_0x3dbe;(function(_0x1a2022,_0x2661aa){const _0x5cdd6e=a0_0x3dbe,_0x4e72aa=_0x1a2022();while(!![]){try{const _0x3d8640=-parseInt(_0x5cdd6e(0xd3))/0x1+parseInt(_0x5cdd6e(0xcd))/0x2*(-parseInt(_0x5cdd6e(0xe3))/0x3)+-parseInt(_0x5cdd6e(0xdd))/0x4*(-parseInt(_0x5cdd6e(0xd5))/0x5)+parseInt(_0x5cdd6e(0xc3))/0x6+-parseInt(_0x5cdd6e(0xd0))/0x7+parseInt(_0x5cdd6e(0xd6))/0x8+-parseInt(_0x5cdd6e(0xc1))/0x9*(-parseInt(_0x5cdd6e(0xbc))/0xa);if(_0x3d8640===_0x2661aa)break;else _0x4e72aa['push'](_0x4e72aa['shift']());}catch(_0x5a6942){_0x4e72aa['push'](_0x4e72aa['shift']());}}}(a0_0x4729,0x53aac));function a0_0x3dbe(_0x16a33b,_0x66cd3f){_0x16a33b=_0x16a33b-0xbc;const _0x47297b=a0_0x4729();let _0x3dbefe=_0x47297b[_0x16a33b];return _0x3dbefe;}function a0_0x4729(){const _0x5f4711=['length','found\x20','filterNpmInstall','Test\x20Suites:','67988iDpchh','Tests:','join','push','startsWith','slice','6rMqoeC','Test\x20Files:','29180wWORxK','split','audited\x20','up\x20to\x20date','Test\x20Runner:\x20','2214eFqlqh','includes','1012842uvcbzv','added\x20','\x20total)','\x20failed\x20(','removed\x20','\x20\x20...\x20(','\x20passed,\x20','filterJestVitest','FAIL\x20\x20','NPM:\x20Packages\x20verified/installed\x20successfully','32154IpUjdg','\x20passed','PASS','2692592Jwkwdi','\x0aFailures:','match','678934qnOfMI','__esModule','110xHbdrg','1423000VDzQTK','trim','all'];a0_0x4729=function(){return _0x5f4711;};return a0_0x4729();}Object['defineProperty'](exports,a0_0x463c3a(0xd4),{'value':!![]}),exports[a0_0x463c3a(0xdb)]=filterNpmInstall,exports[a0_0x463c3a(0xca)]=filterJestVitest;function filterNpmInstall(_0x416ec8){const _0x1d3736=a0_0x463c3a,_0x288f29=_0x416ec8['replace'](/\r/g,'\x0a'),_0x3e86df=_0x288f29[_0x1d3736(0xbd)]('\x0a'),_0x33d4df=[];for(const _0x16b317 of _0x3e86df){const _0x158a10=_0x16b317['trim']();(_0x158a10['includes'](_0x1d3736(0xc4))||_0x158a10[_0x1d3736(0xc2)](_0x1d3736(0xc7))||_0x158a10[_0x1d3736(0xc2)](_0x1d3736(0xbe))||_0x158a10[_0x1d3736(0xc2)](_0x1d3736(0xbf))||_0x158a10[_0x1d3736(0xc2)](_0x1d3736(0xda)))&&(!_0x158a10['includes']('%')&&!_0x158a10['startsWith']('⠋')&&!_0x158a10[_0x1d3736(0xe1)]('⠙')&&_0x33d4df[_0x1d3736(0xe0)](_0x158a10));}const _0x24a93d=_0x33d4df[_0x1d3736(0xdf)]('\x0a')[_0x1d3736(0xd7)]();return _0x24a93d['length']>0x0?_0x24a93d:_0x1d3736(0xcc);}function filterJestVitest(_0x56d8b6){const _0x806999=a0_0x463c3a,_0x3ec9a2=_0x56d8b6['split']('\x0a');let _0xe3727f=0x0,_0x4ccc7e=0x0,_0x2f5e3d=0x0;const _0x2eea50=[];let _0xb2bdcd=![];for(const _0x3567f3 of _0x3ec9a2){const _0x1e7697=_0x3567f3['trim']();if(_0x1e7697[_0x806999(0xe1)](_0x806999(0xde))||_0x1e7697[_0x806999(0xc2)](_0x806999(0xe4))){const _0x4b3750=_0x1e7697[_0x806999(0xd2)](/(\d+)\s+passed/),_0x3760eb=_0x1e7697[_0x806999(0xd2)](/(\d+)\s+failed/),_0x499092=_0x1e7697[_0x806999(0xd2)](/(\d+)\s+total/);if(_0x4b3750)_0xe3727f=parseInt(_0x4b3750[0x1]);if(_0x3760eb)_0x4ccc7e=parseInt(_0x3760eb[0x1]);if(_0x499092)_0x2f5e3d=parseInt(_0x499092[0x1]);continue;}(_0x1e7697[_0x806999(0xe1)]('❯')||_0x1e7697[_0x806999(0xe1)]('●')||_0x1e7697[_0x806999(0xe1)](_0x806999(0xcb)))&&(_0xb2bdcd=!![]),_0xb2bdcd&&(_0x1e7697[_0x806999(0xd9)]>0x0&&!_0x1e7697['startsWith'](_0x806999(0xdc))&&!_0x1e7697[_0x806999(0xe1)](_0x806999(0xde))&&_0x2eea50[_0x806999(0xe0)](_0x3567f3));}if(_0x2f5e3d===0x0&&_0xe3727f===0x0&&_0x4ccc7e===0x0){if(_0x56d8b6['includes'](_0x806999(0xcf))&&!_0x56d8b6['includes']('FAIL')){const _0x5cfb2e=_0x56d8b6[_0x806999(0xd2)](/(\d+)\s+passed/),_0x3586fb=_0x5cfb2e?_0x5cfb2e[0x1]:_0x806999(0xd8);return _0x806999(0xc0)+_0x3586fb+_0x806999(0xce);}return _0x56d8b6;}if(_0x4ccc7e===0x0&&_0xe3727f>0x0)return _0x806999(0xc0)+_0xe3727f+_0x806999(0xce);const _0x54af0e=['Test\x20Runner:\x20'+_0xe3727f+_0x806999(0xc9)+_0x4ccc7e+_0x806999(0xc6)+_0x2f5e3d+_0x806999(0xc5)];if(_0x2eea50[_0x806999(0xd9)]>0x0){_0x54af0e[_0x806999(0xe0)](_0x806999(0xd1));const _0x400cad=0x19,_0x231991=_0x2eea50[_0x806999(0xe2)](0x0,_0x400cad);for(const _0x368653 of _0x231991){_0x54af0e[_0x806999(0xe0)]('\x20\x20'+_0x368653);}_0x2eea50[_0x806999(0xd9)]>_0x400cad&&_0x54af0e[_0x806999(0xe0)](_0x806999(0xc8)+(_0x2eea50[_0x806999(0xd9)]-_0x400cad)+'\x20lines\x20of\x20trace\x20details\x20truncated)');}return _0x54af0e[_0x806999(0xdf)]('\x0a');}
|
package/filters/python.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a0_0x481eeb=a0_0x2336;function a0_0x107a(){const _0x17dfd0=['Pytest:\x20All\x20tests\x20passed','\x20\x20\x20\x20','\x20passed','401865ITynwW','Collecting','\x20failed','426830TEXJZu','.py:','12PxrOiM','\x20xfailed','defineProperty','filter','slice','9536160uQJvSs','push','Pytest:\x20','trim','===','Downloading','Requirement\x20already\x20satisfied','Successfully\x20installed','split','length','480816wzcfEg','\x20more\x20failures\x20truncated','Using\x20cached','match','includes','__esModule','961074mqjsbJ','196fJEVmR','===\x20ERRORS\x20===','\x20in\x20','E\x20\x20\x20','failed','===\x20short\x20test\x20summary\x20info\x20===','startsWith','join','\x20xpassed\x20(warning!)','filterPytest','.\x20[FAIL]\x20','AssertionError:','filterPipInstall','2YXQOMi','\x20\x20\x20\x20...\x20(','352299xxeCeH','73880oIlgnv','___'];a0_0x107a=function(){return _0x17dfd0;};return a0_0x107a();}(function(_0x3dc692,_0x4acbd1){const _0x4012bd=a0_0x2336,_0x200bed=_0x3dc692();while(!![]){try{const _0x52f15d=-parseInt(_0x4012bd(0x18e))/0x1+-parseInt(_0x4012bd(0x186))/0x2*(parseInt(_0x4012bd(0x188))/0x3)+-parseInt(_0x4012bd(0x193))/0x4*(-parseInt(_0x4012bd(0x191))/0x5)+-parseInt(_0x4012bd(0x1a2))/0x6+-parseInt(_0x4012bd(0x1a9))/0x7*(parseInt(_0x4012bd(0x189))/0x8)+-parseInt(_0x4012bd(0x1a8))/0x9+parseInt(_0x4012bd(0x198))/0xa;if(_0x52f15d===_0x4acbd1)break;else _0x200bed['push'](_0x200bed['shift']());}catch(_0x2dae6a){_0x200bed['push'](_0x200bed['shift']());}}}(a0_0x107a,0x3bcb2));function a0_0x2336(_0x3aa466,_0x46d70f){_0x3aa466=_0x3aa466-0x184;const _0x107a7d=a0_0x107a();let _0x233664=_0x107a7d[_0x3aa466];return _0x233664;}Object[a0_0x481eeb(0x195)](exports,a0_0x481eeb(0x1a7),{'value':!![]}),exports[a0_0x481eeb(0x1b2)]=filterPytest,exports[a0_0x481eeb(0x185)]=filterPipInstall;function filterPytest(_0x4acfe5){const _0x2e1c55=a0_0x481eeb,_0x372ebc=_0x4acfe5[_0x2e1c55(0x1a0)]('\x0a');let _0x43cde8=0x0,_0x1e5c3e=0x0,_0x218bb3=0x0,_0xd2e0df=0x0,_0x1b944e=0x0;const _0x24a6a4=[];let _0x439a2f=[],_0x3a2099=![];for(const _0x50e3a7 of _0x372ebc){const _0x336532=_0x50e3a7['trim']();if(_0x336532[_0x2e1c55(0x1af)]('===\x20FAILURES\x20===')||_0x336532[_0x2e1c55(0x1af)](_0x2e1c55(0x1aa))){_0x3a2099=!![];continue;}else(_0x336532[_0x2e1c55(0x1af)](_0x2e1c55(0x1ae))||_0x336532[_0x2e1c55(0x1af)](_0x2e1c55(0x19c))&&_0x336532[_0x2e1c55(0x1a6)]('passed'))&&(_0x3a2099=![],_0x439a2f['length']>0x0&&(_0x24a6a4[_0x2e1c55(0x199)](_0x439a2f),_0x439a2f=[]));if(_0x3a2099){if(_0x336532['startsWith'](_0x2e1c55(0x18a)))_0x439a2f[_0x2e1c55(0x1a1)]>0x0&&(_0x24a6a4['push'](_0x439a2f),_0x439a2f=[]),_0x439a2f[_0x2e1c55(0x199)](_0x336532);else _0x336532[_0x2e1c55(0x1a1)]>0x0&&_0x439a2f[_0x2e1c55(0x199)](_0x50e3a7);continue;}if(_0x336532[_0x2e1c55(0x1af)]('===')&&_0x336532[_0x2e1c55(0x1a6)](_0x2e1c55(0x1ab))){const _0x322459=_0x336532[_0x2e1c55(0x1a5)](/(\d+)\s+passed/),_0x526f26=_0x336532[_0x2e1c55(0x1a5)](/(\d+)\s+failed/),_0x3d3b0e=_0x336532[_0x2e1c55(0x1a5)](/(\d+)\s+skipped/),_0x12053e=_0x336532['match'](/(\d+)\s+xfailed/),_0x30506e=_0x336532[_0x2e1c55(0x1a5)](/(\d+)\s+xpassed/);if(_0x322459)_0x43cde8=parseInt(_0x322459[0x1]);if(_0x526f26)_0x1e5c3e=parseInt(_0x526f26[0x1]);if(_0x3d3b0e)_0x218bb3=parseInt(_0x3d3b0e[0x1]);if(_0x12053e)_0xd2e0df=parseInt(_0x12053e[0x1]);if(_0x30506e)_0x1b944e=parseInt(_0x30506e[0x1]);}}_0x439a2f[_0x2e1c55(0x1a1)]>0x0&&_0x24a6a4[_0x2e1c55(0x199)](_0x439a2f);if(_0x43cde8===0x0&&_0x1e5c3e===0x0&&_0x218bb3===0x0&&_0xd2e0df===0x0&&_0x1b944e===0x0){if(_0x4acfe5['includes']('passed')&&!_0x4acfe5[_0x2e1c55(0x1a6)](_0x2e1c55(0x1ad)))return _0x2e1c55(0x18b);return _0x4acfe5;}if(_0x1e5c3e===0x0&&_0x43cde8>0x0&&_0x218bb3===0x0&&_0xd2e0df===0x0&&_0x1b944e===0x0)return'Pytest:\x20'+_0x43cde8+_0x2e1c55(0x18d);const _0x5063fc=[];_0x5063fc[_0x2e1c55(0x199)](_0x2e1c55(0x19a)+_0x43cde8+_0x2e1c55(0x18d));if(_0x1e5c3e>0x0)_0x5063fc[_0x2e1c55(0x199)](_0x1e5c3e+_0x2e1c55(0x190));if(_0x218bb3>0x0)_0x5063fc[_0x2e1c55(0x199)](_0x218bb3+'\x20skipped');if(_0xd2e0df>0x0)_0x5063fc[_0x2e1c55(0x199)](_0xd2e0df+_0x2e1c55(0x194));if(_0x1b944e>0x0)_0x5063fc[_0x2e1c55(0x199)](_0x1b944e+_0x2e1c55(0x1b1));const _0x834ddb=[_0x5063fc['join'](',\x20')];if(_0x24a6a4['length']>0x0){_0x834ddb[_0x2e1c55(0x199)]('\x0aFailures:');const _0x5c9346=0x3,_0x19a12c=_0x24a6a4[_0x2e1c55(0x197)](0x0,_0x5c9346);for(let _0x4708c7=0x0;_0x4708c7<_0x19a12c['length'];_0x4708c7++){const _0x56f147=_0x19a12c[_0x4708c7],_0x54c824=_0x56f147[0x0]['replace'](/_/g,'')['trim']();_0x834ddb['push']('\x20\x20'+(_0x4708c7+0x1)+_0x2e1c55(0x1b3)+_0x54c824);const _0xfa76c9=_0x56f147['slice'](0x1),_0x5303af=_0xfa76c9['filter'](_0x2a461c=>{const _0x4ab0c=_0x2e1c55,_0x150a08=_0x2a461c[_0x4ab0c(0x19b)]();return _0x150a08[_0x4ab0c(0x1af)]('>')||_0x150a08[_0x4ab0c(0x1af)](_0x4ab0c(0x1ac))||_0x150a08[_0x4ab0c(0x1a6)](_0x4ab0c(0x192))||_0x150a08[_0x4ab0c(0x1a6)](_0x4ab0c(0x184));});for(const _0x465c39 of _0x5303af['slice'](0x0,0x8)){_0x834ddb['push'](_0x2e1c55(0x18c)+_0x465c39);}_0x5303af[_0x2e1c55(0x1a1)]>0x8&&_0x834ddb['push'](_0x2e1c55(0x187)+(_0x5303af[_0x2e1c55(0x1a1)]-0x8)+'\x20lines\x20of\x20stacktrace\x20truncated)');}_0x24a6a4[_0x2e1c55(0x1a1)]>_0x5c9346&&_0x834ddb[_0x2e1c55(0x199)]('\x20\x20...\x20+'+(_0x24a6a4[_0x2e1c55(0x1a1)]-_0x5c9346)+_0x2e1c55(0x1a3));}return _0x834ddb[_0x2e1c55(0x1b0)]('\x0a');}function filterPipInstall(_0x5e6a2a){const _0x3f912b=a0_0x481eeb,_0x22ba8c=_0x5e6a2a[_0x3f912b(0x1a0)]('\x0a'),_0x50ce44=[];for(const _0x1b72d9 of _0x22ba8c){const _0x5007ee=_0x1b72d9[_0x3f912b(0x19b)]();_0x5007ee['startsWith'](_0x3f912b(0x19f))&&_0x50ce44[_0x3f912b(0x199)](_0x5007ee);}if(_0x50ce44[_0x3f912b(0x1a1)]>0x0)return _0x50ce44[_0x3f912b(0x1b0)]('\x0a');return _0x22ba8c[_0x3f912b(0x196)](_0x3129f0=>{const _0x572092=_0x3f912b,_0x1b0215=_0x3129f0[_0x572092(0x19b)]();return!_0x1b0215['startsWith'](_0x572092(0x18f))&&!_0x1b0215[_0x572092(0x1af)](_0x572092(0x19d))&&!_0x1b0215[_0x572092(0x1a6)](_0x572092(0x1a4))&&!_0x1b0215[_0x572092(0x1af)](_0x572092(0x19e));})[_0x3f912b(0x1b0)]('\x0a')[_0x3f912b(0x19b)]();}
|
package/filters/rust.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a0_0x1342(_0x5506ef,_0x2052b8){_0x5506ef=_0x5506ef-0x1c4;const _0x2260f4=a0_0x2260();let _0x134298=_0x2260f4[_0x5506ef];return _0x134298;}const a0_0x3d552f=a0_0x1342;(function(_0x9950d0,_0x37beb3){const _0x48c945=a0_0x1342,_0x195850=_0x9950d0();while(!![]){try{const _0x1d5a24=parseInt(_0x48c945(0x1fb))/0x1+parseInt(_0x48c945(0x1d1))/0x2*(-parseInt(_0x48c945(0x1f0))/0x3)+parseInt(_0x48c945(0x1db))/0x4+parseInt(_0x48c945(0x1d4))/0x5*(-parseInt(_0x48c945(0x1ef))/0x6)+parseInt(_0x48c945(0x1e5))/0x7*(parseInt(_0x48c945(0x1f3))/0x8)+-parseInt(_0x48c945(0x1eb))/0x9*(-parseInt(_0x48c945(0x1cb))/0xa)+-parseInt(_0x48c945(0x1f9))/0xb;if(_0x1d5a24===_0x37beb3)break;else _0x195850['push'](_0x195850['shift']());}catch(_0x20b50a){_0x195850['push'](_0x195850['shift']());}}}(a0_0x2260,0xf373d));Object[a0_0x3d552f(0x1fc)](exports,'__esModule',{'value':!![]}),exports[a0_0x3d552f(0x1cf)]=filterCargoTest,exports[a0_0x3d552f(0x1d6)]=filterCargoBuild;function filterCargoTest(_0x12ae41){const _0x2f8f2c=a0_0x3d552f,_0x2f8019=_0x12ae41[_0x2f8f2c(0x1f5)]('\x0a');let _0x556351=0x0,_0x23eefd=0x0,_0x2ae50a=0x0,_0x59f160=0x0;const _0x2e3a34=[];let _0x16062d=![],_0x4ad745=[];for(const _0x17ddbd of _0x2f8019){const _0x4d211a=_0x17ddbd[_0x2f8f2c(0x1e7)](),_0x5442e0=_0x4d211a[_0x2f8f2c(0x1d5)](/test result:\s*(\w+)\.\s*(\d+)\s+passed;\s*(\d+)\s+failed;\s*(\d+)\s+ignored;\s*(\d+)\s+measured/);if(_0x5442e0){_0x556351+=parseInt(_0x5442e0[0x2]),_0x23eefd+=parseInt(_0x5442e0[0x3]),_0x2ae50a+=parseInt(_0x5442e0[0x4]),_0x59f160+=parseInt(_0x5442e0[0x5]);continue;}if(_0x4d211a==='failures:'||_0x4d211a==='----\x20failures\x20----'){_0x16062d=!![];continue;}if(_0x16062d){if(_0x4d211a[_0x2f8f2c(0x1ce)]('----\x20')&&_0x4d211a[_0x2f8f2c(0x1e8)](_0x2f8f2c(0x1ed))){if(_0x4ad745[_0x2f8f2c(0x1dc)]>0x0)_0x2e3a34[_0x2f8f2c(0x1cd)](_0x4ad745['join']('\x0a'));_0x4ad745=[_0x4d211a[_0x2f8f2c(0x1e0)](/^-+\s*/,'')[_0x2f8f2c(0x1e0)](/\s*-+$/,'')];}else{if(_0x4d211a===_0x2f8f2c(0x1ec)||_0x4d211a[_0x2f8f2c(0x1ce)](_0x2f8f2c(0x1cc))){if(_0x4ad745[_0x2f8f2c(0x1dc)]>0x0)_0x2e3a34[_0x2f8f2c(0x1cd)](_0x4ad745[_0x2f8f2c(0x1d0)]('\x0a'));_0x4ad745=[],_0x16062d=![];}else _0x4d211a['length']>0x0&&_0x4ad745[_0x2f8f2c(0x1cd)](_0x17ddbd);}}}if(_0x4ad745[_0x2f8f2c(0x1dc)]>0x0)_0x2e3a34[_0x2f8f2c(0x1cd)](_0x4ad745['join']('\x0a'));if(_0x556351===0x0&&_0x23eefd===0x0&&_0x2ae50a===0x0){if(_0x12ae41['includes'](_0x2f8f2c(0x1da)))return _0x2f8f2c(0x1ee);return _0x12ae41;}if(_0x23eefd===0x0){const _0x19bd27=[_0x2f8f2c(0x1e3)+_0x556351+'\x20passed'];if(_0x2ae50a>0x0)_0x19bd27['push'](_0x2ae50a+_0x2f8f2c(0x1c9));return _0x19bd27[_0x2f8f2c(0x1d0)](',\x20');}const _0x1f9545=[_0x2f8f2c(0x1e3)+_0x556351+_0x2f8f2c(0x1d8)+_0x23eefd+_0x2f8f2c(0x1ea)+_0x2ae50a+_0x2f8f2c(0x1c9)];if(_0x2e3a34[_0x2f8f2c(0x1dc)]>0x0){_0x1f9545[_0x2f8f2c(0x1cd)](_0x2f8f2c(0x1e9));const _0x147477=0x3;for(let _0x8dde69=0x0;_0x8dde69<Math[_0x2f8f2c(0x1e2)](_0x2e3a34[_0x2f8f2c(0x1dc)],_0x147477);_0x8dde69++){const _0x331bb0=_0x2e3a34[_0x8dde69][_0x2f8f2c(0x1f5)]('\x0a');_0x1f9545[_0x2f8f2c(0x1cd)]('\x20\x20'+(_0x8dde69+0x1)+'.\x20'+_0x331bb0[0x0]);const _0x1c2728=_0x331bb0[_0x2f8f2c(0x1df)](0x1),_0x162a63=_0x1c2728[_0x2f8f2c(0x1de)](_0x4959fd=>_0x4959fd[_0x2f8f2c(0x1e7)]()[_0x2f8f2c(0x1ce)](_0x2f8f2c(0x1f8))||_0x4959fd[_0x2f8f2c(0x1ca)](_0x2f8f2c(0x1dd))||_0x4959fd[_0x2f8f2c(0x1ca)](_0x2f8f2c(0x1c5))||_0x4959fd[_0x2f8f2c(0x1ca)]('left:')||_0x4959fd[_0x2f8f2c(0x1ca)](_0x2f8f2c(0x1c4)));for(const _0x15007e of _0x162a63[_0x2f8f2c(0x1df)](0x0,0x5)){_0x1f9545[_0x2f8f2c(0x1cd)](_0x2f8f2c(0x1e6)+_0x15007e[_0x2f8f2c(0x1e7)]());}}_0x2e3a34['length']>_0x147477&&_0x1f9545[_0x2f8f2c(0x1cd)]('\x20\x20...\x20+'+(_0x2e3a34[_0x2f8f2c(0x1dc)]-_0x147477)+'\x20more\x20failures');}return _0x1f9545[_0x2f8f2c(0x1d0)]('\x0a');}function filterCargoBuild(_0x2ff7e9){const _0x2a8176=a0_0x3d552f,_0x4efc90=_0x2ff7e9[_0x2a8176(0x1f5)]('\x0a'),_0x5d6232=[],_0x540868=[];let _0x49c646=0x0;for(const _0x12905f of _0x4efc90){const _0x524004=_0x12905f['trim']();if(_0x524004['startsWith'](_0x2a8176(0x1f7)))_0x49c646++;else{if(_0x524004['startsWith'](_0x2a8176(0x1e4))||_0x524004['startsWith'](_0x2a8176(0x1d2)))_0x5d6232[_0x2a8176(0x1cd)](_0x524004);else{if(_0x524004[_0x2a8176(0x1ce)](_0x2a8176(0x1f6))||_0x524004[_0x2a8176(0x1ce)](_0x2a8176(0x1f2)))_0x540868['push'](_0x524004);}}}if(_0x540868[_0x2a8176(0x1dc)]===0x0&&_0x5d6232[_0x2a8176(0x1dc)]===0x0)return _0x49c646>0x0?'Cargo:\x20compiled\x20'+_0x49c646+_0x2a8176(0x1fa):_0x2ff7e9[_0x2a8176(0x1e7)]();const _0x2201bc=[];if(_0x540868[_0x2a8176(0x1dc)]>0x0){_0x2201bc['push']('Cargo:\x20'+_0x540868[_0x2a8176(0x1dc)]+_0x2a8176(0x1f1)+_0x5d6232['length']+'\x20warnings'),_0x2201bc[_0x2a8176(0x1cd)](_0x2a8176(0x1d7));for(const _0x1c2f45 of _0x540868[_0x2a8176(0x1df)](0x0,0x5))_0x2201bc[_0x2a8176(0x1cd)]('\x20\x20'+_0x1c2f45);if(_0x540868['length']>0x5)_0x2201bc[_0x2a8176(0x1cd)](_0x2a8176(0x1d9)+(_0x540868[_0x2a8176(0x1dc)]-0x5)+_0x2a8176(0x1d3));}else _0x2201bc['push'](_0x2a8176(0x1c6)+_0x49c646+_0x2a8176(0x1f4)+_0x5d6232[_0x2a8176(0x1dc)]+_0x2a8176(0x1e1));if(_0x5d6232[_0x2a8176(0x1dc)]>0x0&&_0x5d6232[_0x2a8176(0x1dc)]<=0x5){_0x2201bc[_0x2a8176(0x1cd)](_0x2a8176(0x1c7));for(const _0x5e5f92 of _0x5d6232)_0x2201bc[_0x2a8176(0x1cd)]('\x20\x20'+_0x5e5f92);}else _0x5d6232[_0x2a8176(0x1dc)]>0x5&&_0x2201bc[_0x2a8176(0x1cd)]('\x0a('+_0x5d6232[_0x2a8176(0x1dc)]+_0x2a8176(0x1c8));return _0x2201bc['join']('\x0a');}function a0_0x2260(){const _0x5da32b=['\x20warnings\x20—\x20run\x20cargo\x20clippy\x20for\x20details)','\x20ignored','includes','10AJVAWX','test\x20result:','push','startsWith','filterCargoTest','join','187570JNpJIq','warning:','\x20more\x20errors','5MnXyvQ','match','filterCargoBuild','\x0aErrors:','\x20passed,\x20','\x20\x20...\x20+','test\x20result:\x20ok','1999468tIedFs','length','panicked','filter','slice','replace','\x20warnings','min','Cargo\x20test:\x20','warning[','555877ghmAfl','\x20\x20\x20\x20','trim','endsWith','\x0aFailures:','\x20failed,\x20','3585483Naprcm','failures:','\x20----','Cargo\x20test:\x20all\x20tests\x20passed','6904374EGRfJj','3MCFVQO','\x20errors,\x20','error:','48HeSvLq','\x20crates,\x20','split','error[','Compiling\x20','thread','11003157SGKmxY','\x20crates\x20successfully','1867262AWExhN','defineProperty','right:','assert','Cargo:\x20compiled\x20','\x0aWarnings:'];a0_0x2260=function(){return _0x5da32b;};return a0_0x2260();}
|
package/filters/shell.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a0_0x3256c1=a0_0x1f9a;function a0_0x1f9a(_0x13bf29,_0x37b1b0){const _0x277cb6=a0_0x277c();return a0_0x1f9a=function(_0x1f9af1,_0x282273){_0x1f9af1=_0x1f9af1-0xf9;let _0x3b2c82=_0x277cb6[_0x1f9af1];return _0x3b2c82;},a0_0x1f9a(_0x13bf29,_0x37b1b0);}(function(_0x499661,_0x190dd8){const _0x364fe9=a0_0x1f9a,_0x5e9b46=_0x499661();while(!![]){try{const _0x19a72b=-parseInt(_0x364fe9(0x107))/0x1*(parseInt(_0x364fe9(0xfa))/0x2)+-parseInt(_0x364fe9(0x123))/0x3+-parseInt(_0x364fe9(0x169))/0x4+parseInt(_0x364fe9(0x10a))/0x5*(-parseInt(_0x364fe9(0x147))/0x6)+parseInt(_0x364fe9(0x126))/0x7*(-parseInt(_0x364fe9(0x170))/0x8)+-parseInt(_0x364fe9(0x13c))/0x9+parseInt(_0x364fe9(0x119))/0xa;if(_0x19a72b===_0x190dd8)break;else _0x5e9b46['push'](_0x5e9b46['shift']());}catch(_0x3908c7){_0x5e9b46['push'](_0x5e9b46['shift']());}}}(a0_0x277c,0x96edb));var __createBinding=this&&this[a0_0x3256c1(0x110)]||(Object[a0_0x3256c1(0x139)]?function(_0x21b531,_0x5467dd,_0x1d02a0,_0x578c8e){const _0x554e64=a0_0x3256c1;if(_0x578c8e===undefined)_0x578c8e=_0x1d02a0;var _0x2f2df8=Object['getOwnPropertyDescriptor'](_0x5467dd,_0x1d02a0);(!_0x2f2df8||('get'in _0x2f2df8?!_0x5467dd[_0x554e64(0x160)]:_0x2f2df8[_0x554e64(0x159)]||_0x2f2df8[_0x554e64(0x125)]))&&(_0x2f2df8={'enumerable':!![],'get':function(){return _0x5467dd[_0x1d02a0];}}),Object['defineProperty'](_0x21b531,_0x578c8e,_0x2f2df8);}:function(_0x2be923,_0x1749be,_0x3f8779,_0x7c7d4b){if(_0x7c7d4b===undefined)_0x7c7d4b=_0x3f8779;_0x2be923[_0x7c7d4b]=_0x1749be[_0x3f8779];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a0_0x3256c1(0x139)]?function(_0x11102f,_0x468b93){const _0x504d2d=a0_0x3256c1;Object['defineProperty'](_0x11102f,_0x504d2d(0x154),{'enumerable':!![],'value':_0x468b93});}:function(_0x4dda82,_0x4c30e6){const _0x20fd9a=a0_0x3256c1;_0x4dda82[_0x20fd9a(0x154)]=_0x4c30e6;}),__importStar=this&&this['__importStar']||(function(){var _0xb74bb2=function(_0x146dd6){return _0xb74bb2=Object['getOwnPropertyNames']||function(_0x5e7eb3){const _0x5c594a=a0_0x1f9a;var _0x54d612=[];for(var _0x18b70f in _0x5e7eb3)if(Object[_0x5c594a(0x164)]['hasOwnProperty'][_0x5c594a(0x14b)](_0x5e7eb3,_0x18b70f))_0x54d612[_0x54d612[_0x5c594a(0x124)]]=_0x18b70f;return _0x54d612;},_0xb74bb2(_0x146dd6);};return function(_0x446515){const _0x3fc3e9=a0_0x1f9a;if(_0x446515&&_0x446515[_0x3fc3e9(0x160)])return _0x446515;var _0x3bd55f={};if(_0x446515!=null){for(var _0x41bd68=_0xb74bb2(_0x446515),_0x373c04=0x0;_0x373c04<_0x41bd68[_0x3fc3e9(0x124)];_0x373c04++)if(_0x41bd68[_0x373c04]!==_0x3fc3e9(0x154))__createBinding(_0x3bd55f,_0x446515,_0x41bd68[_0x373c04]);}return __setModuleDefault(_0x3bd55f,_0x446515),_0x3bd55f;};}());Object['defineProperty'](exports,a0_0x3256c1(0x160),{'value':!![]}),exports[a0_0x3256c1(0x132)]=filterLs,exports[a0_0x3256c1(0x16a)]=filterTree,exports[a0_0x3256c1(0x157)]=filterCat,exports[a0_0x3256c1(0x16c)]=filterGrep,exports['filterFind']=filterFind;const path=__importStar(require(a0_0x3256c1(0x12c))),LOCK_FILES=[a0_0x3256c1(0x102),a0_0x3256c1(0x11a),a0_0x3256c1(0x16d),'Cargo.lock',a0_0x3256c1(0xfc),a0_0x3256c1(0x156),a0_0x3256c1(0x13d),a0_0x3256c1(0x103),'bun.lockb'],BINARY_EXTENSIONS=[a0_0x3256c1(0x171),a0_0x3256c1(0x106),a0_0x3256c1(0x10f),a0_0x3256c1(0x166),a0_0x3256c1(0x13f),'.jpg',a0_0x3256c1(0x16e),a0_0x3256c1(0x14d),a0_0x3256c1(0x12b),'.bmp',a0_0x3256c1(0x11d),a0_0x3256c1(0x148),a0_0x3256c1(0x150),a0_0x3256c1(0x149),a0_0x3256c1(0x15f),a0_0x3256c1(0x109),'.gz',a0_0x3256c1(0x104),a0_0x3256c1(0x15b),'.rar',a0_0x3256c1(0x133),a0_0x3256c1(0x11e),a0_0x3256c1(0x129),a0_0x3256c1(0x144),a0_0x3256c1(0x10e),'.dat',a0_0x3256c1(0x13b),a0_0x3256c1(0x134),a0_0x3256c1(0x14a),a0_0x3256c1(0x152),a0_0x3256c1(0x127),a0_0x3256c1(0x153),'.eot',a0_0x3256c1(0x14c),a0_0x3256c1(0x155),a0_0x3256c1(0x172),a0_0x3256c1(0x13a),a0_0x3256c1(0x10c),a0_0x3256c1(0x118),a0_0x3256c1(0xf9),a0_0x3256c1(0x16b),a0_0x3256c1(0x15a),'.class','.o',a0_0x3256c1(0x140)];function extractFilename(_0x418e3c){const _0x352065=a0_0x3256c1,_0x1d4e05=_0x418e3c[_0x352065(0x111)]()[_0x352065(0x116)](/\s+/);for(let _0x172aa6=0x1;_0x172aa6<_0x1d4e05['length'];_0x172aa6++){if(!_0x1d4e05[_0x172aa6][_0x352065(0x12e)]('-'))return _0x1d4e05[_0x172aa6];}return null;}function filterLockFile(_0x350fbe,_0x47d96c){const _0x33f438=a0_0x3256c1;try{const _0x20cc67=path['basename'](_0x47d96c)[_0x33f438(0x130)]();if(!LOCK_FILES[_0x33f438(0x121)](_0x357560=>_0x20cc67===_0x357560[_0x33f438(0x130)]()))return null;const _0x1aa12b=_0x350fbe[_0x33f438(0x124)];let _0x15fdd7=0x0;if(_0x20cc67===_0x33f438(0x102))try{const _0x3f05e8=JSON[_0x33f438(0x12a)](_0x350fbe);_0x15fdd7=Object['keys'](_0x3f05e8[_0x33f438(0x10d)]||_0x3f05e8[_0x33f438(0x11c)]||{})[_0x33f438(0x124)];}catch{_0x15fdd7=(_0x350fbe[_0x33f438(0x100)](/"resolved":/g)||[])[_0x33f438(0x124)];}else{if(_0x20cc67===_0x33f438(0x11a))_0x15fdd7=(_0x350fbe[_0x33f438(0x100)](/^"?[^#\s][^:]*:$/gm)||[])[_0x33f438(0x124)];else{if(_0x20cc67===_0x33f438(0x112)||_0x20cc67===_0x33f438(0x156))_0x15fdd7=(_0x350fbe[_0x33f438(0x100)](/\[\[package\]\]/g)||[])['length'];else{if(_0x20cc67==='go.sum')_0x15fdd7=Math['floor'](_0x350fbe[_0x33f438(0x116)]('\x0a')[_0x33f438(0x137)](_0x2cacfb=>_0x2cacfb[_0x33f438(0x111)]())['length']/0x2);else{if(_0x20cc67===_0x33f438(0x13d))try{_0x15fdd7=JSON['parse'](_0x350fbe)[_0x33f438(0x10d)]?.[_0x33f438(0x124)]||0x0;}catch{}else _0x20cc67==='pnpm-lock.yaml'?_0x15fdd7=(_0x350fbe[_0x33f438(0x100)](/^\s{2}['"@a-z]/gm)||[])['length']:_0x15fdd7=_0x350fbe[_0x33f438(0x116)]('\x0a')[_0x33f438(0x137)](_0x5f1f74=>_0x5f1f74[_0x33f438(0x111)]())[_0x33f438(0x124)];}}}}return _0x33f438(0x168)+path[_0x33f438(0x138)](_0x47d96c)+':\x20'+_0x15fdd7+_0x33f438(0x131)+_0x1aa12b['toLocaleString']()+'\x20chars\x20(content\x20omitted\x20—\x20lock\x20files\x20are\x20not\x20useful\x20for\x20LLM\x20context)';}catch{return null;}}function filterBinaryOrMinified(_0x219c40,_0x8c7317){const _0x580add=a0_0x3256c1;try{if(_0x8c7317){const _0xe99bf=_0x8c7317[_0x580add(0x130)]();for(const _0x1a149f of BINARY_EXTENSIONS){if(_0xe99bf[_0x580add(0x108)](_0x1a149f))return _0x580add(0xfb)+path['basename'](_0x8c7317)+',\x20'+_0x219c40['length'][_0x580add(0x151)]()+_0x580add(0x146)+_0x1a149f+_0x580add(0x13e);}}const _0x230e1a=_0x219c40[_0x580add(0x120)](0x0,0x3e8);let _0x2b0541=0x0;for(let _0x3ccee2=0x0;_0x3ccee2<_0x230e1a[_0x580add(0x124)];_0x3ccee2++){if(_0x230e1a[_0x580add(0x161)](_0x3ccee2)===0x0)_0x2b0541++;}if(_0x2b0541>0x0)return _0x580add(0x141)+_0x219c40[_0x580add(0x124)][_0x580add(0x151)]()+_0x580add(0x128);let _0x31787b=0x0;for(let _0x15f4ff=0x0;_0x15f4ff<_0x230e1a[_0x580add(0x124)];_0x15f4ff++){const _0x4b4e3e=_0x230e1a[_0x580add(0x161)](_0x15f4ff);if(_0x4b4e3e<0x20&&_0x4b4e3e!==0xa&&_0x4b4e3e!==0xd&&_0x4b4e3e!==0x9)_0x31787b++;}if(_0x230e1a[_0x580add(0x124)]>0x64&&_0x31787b>_0x230e1a[_0x580add(0x124)]*0.1)return _0x580add(0x141)+_0x219c40[_0x580add(0x124)][_0x580add(0x151)]()+_0x580add(0x167);const _0x9e811e=_0x219c40[_0x580add(0x116)]('\x0a');if(_0x9e811e[_0x580add(0x124)]<=0x3&&_0x219c40[_0x580add(0x124)]>0x1388)return'[minified\x20file]\x20'+_0x219c40[_0x580add(0x124)][_0x580add(0x151)]()+'\x20chars\x20across\x20'+_0x9e811e[_0x580add(0x124)]+_0x580add(0x135);return null;}catch{return null;}}function filterJsonMinify(_0x30d80d){const _0x4da59e=a0_0x3256c1;try{const _0x20a27b=_0x30d80d[_0x4da59e(0x111)]();if(!_0x20a27b[_0x4da59e(0x12e)]('{')&&!_0x20a27b[_0x4da59e(0x12e)]('['))return null;const _0x486226=_0x20a27b[_0x4da59e(0x116)]('\x0a');if(_0x486226[_0x4da59e(0x124)]<=0x14)return null;const _0x1be5e6=JSON['parse'](_0x20a27b),_0x7a108b=JSON[_0x4da59e(0x105)](_0x1be5e6);if(_0x7a108b['length']<_0x20a27b['length'])return _0x7a108b;return null;}catch{return null;}}function filterLs(_0xcef9db){const _0x3aff8c=a0_0x3256c1,_0x223095=_0xcef9db[_0x3aff8c(0x116)]('\x0a')[_0x3aff8c(0x137)](_0x1dc212=>_0x1dc212[_0x3aff8c(0x111)]()['length']>0x0);if(_0x223095[_0x3aff8c(0x124)]===0x0)return _0x3aff8c(0x145);if(_0x223095['length']<=0x1e)return _0xcef9db[_0x3aff8c(0x111)]();const _0x2eb7cb=[],_0x139883=[];for(const _0x563e9b of _0x223095){const _0xe59226=_0x563e9b['trim']();if(_0xe59226[_0x3aff8c(0x12e)](_0x3aff8c(0x143))||_0xe59226[_0x3aff8c(0x12e)]('d')&&_0xe59226[_0x3aff8c(0x15e)]('..'))continue;_0xe59226[_0x3aff8c(0x108)]('/')||_0xe59226[_0x3aff8c(0x12e)]('d')&&_0xe59226[_0x3aff8c(0x15e)]('\x20')?_0x2eb7cb[_0x3aff8c(0x163)](_0xe59226):_0x139883[_0x3aff8c(0x163)](_0xe59226);}const _0x16b558=[];return _0x2eb7cb['length']>0x0&&(_0x2eb7cb[_0x3aff8c(0x124)]<=0xf?_0x16b558[_0x3aff8c(0x163)](..._0x2eb7cb):(_0x16b558['push'](..._0x2eb7cb[_0x3aff8c(0x165)](0x0,0xa)),_0x16b558[_0x3aff8c(0x163)](_0x3aff8c(0x113)+(_0x2eb7cb[_0x3aff8c(0x124)]-0xa)+_0x3aff8c(0xfe)))),_0x139883[_0x3aff8c(0x124)]>0x0&&(_0x139883[_0x3aff8c(0x124)]<=0x14?_0x16b558[_0x3aff8c(0x163)](..._0x139883):(_0x16b558[_0x3aff8c(0x163)](..._0x139883[_0x3aff8c(0x165)](0x0,0xf)),_0x16b558[_0x3aff8c(0x163)]('...\x20+'+(_0x139883[_0x3aff8c(0x124)]-0xf)+'\x20more\x20files'))),_0x16b558['push']('\x0a('+_0x2eb7cb[_0x3aff8c(0x124)]+_0x3aff8c(0x101)+_0x139883[_0x3aff8c(0x124)]+_0x3aff8c(0xfd)),_0x16b558[_0x3aff8c(0xff)]('\x0a');}function filterTree(_0x36def3){const _0x355138=a0_0x3256c1,_0x2813e4=_0x36def3[_0x355138(0x116)]('\x0a');if(_0x2813e4['length']<=0x32)return _0x36def3[_0x355138(0x111)]();const _0x53da57=[];let _0x9fee55=0x0,_0x280bb3=0x0,_0x397666=0x0;for(const _0x1ff9dd of _0x2813e4){const _0xc7d2bb=_0x1ff9dd['match'](/(\d+)\s+director/),_0x17f980=_0x1ff9dd[_0x355138(0x100)](/(\d+)\s+file/);if(_0xc7d2bb)_0x397666=parseInt(_0xc7d2bb[0x1]);if(_0x17f980)_0x280bb3=parseInt(_0x17f980[0x1]);const _0x5999ca=(_0x1ff9dd[_0x355138(0x100)](/^[│├└\s─]+/)||[''])[0x0][_0x355138(0x124)];_0x5999ca<=0x4&&(_0x53da57[_0x355138(0x163)](_0x1ff9dd),_0x9fee55++);}return _0x2813e4[_0x355138(0x124)]>_0x53da57[_0x355138(0x124)]&&_0x53da57[_0x355138(0x163)](_0x355138(0x12d)+_0x397666+_0x355138(0x101)+_0x280bb3+_0x355138(0x14f)),_0x53da57[_0x355138(0xff)]('\x0a');}function filterCat(_0x41c489,_0x442590=''){const _0x48bb32=a0_0x3256c1,_0x2440d6=extractFilename(_0x442590);try{if(_0x2440d6){const _0x49a1ac=filterLockFile(_0x41c489,_0x2440d6);if(_0x49a1ac)return _0x49a1ac;}const _0x6c2264=filterBinaryOrMinified(_0x41c489,_0x2440d6);if(_0x6c2264)return _0x6c2264;const _0x32973a=filterJsonMinify(_0x41c489);if(_0x32973a)return _0x32973a;}catch{}const _0xaa631c=_0x41c489[_0x48bb32(0x116)]('\x0a');if(_0xaa631c[_0x48bb32(0x124)]<=0x64)return _0x41c489;const _0x5e68b1=[];return _0x5e68b1[_0x48bb32(0x163)](..._0xaa631c[_0x48bb32(0x165)](0x0,0x32)),_0x5e68b1[_0x48bb32(0x163)]('\x0a...\x20['+(_0xaa631c[_0x48bb32(0x124)]-0x50)+_0x48bb32(0x136)),_0x5e68b1[_0x48bb32(0x163)](..._0xaa631c[_0x48bb32(0x165)](-0x1e)),_0x5e68b1[_0x48bb32(0x163)]('\x0a('+_0xaa631c[_0x48bb32(0x124)]+_0x48bb32(0x122)),_0x5e68b1[_0x48bb32(0xff)]('\x0a');}function a0_0x277c(){const _0x31686c=['.wav','.sqlite','3372300lRNcgO','composer.lock','\x20(content\x20omitted\x20—\x20not\x20useful\x20for\x20LLM\x20context)','.png','.obj','[binary\x20file]\x20','\x20files\x20found\x20across\x20','total\x20','.dylib','Empty\x20directory','\x20chars,\x20type:\x20','6426018uVHkzc','.svg','.zip','.sqlite3','call','.otf','.gif','\x20\x20...\x20+','\x20files\x20total\x20—\x20deep\x20entries\x20truncated)','.pdf','toLocaleString','.woff','.ttf','default','.mp3','poetry.lock','filterCat',':\x20...\x20(','writable','.pyo','.7z','\x20more\x20matches','\x20more\x20files\x20with\x20matches','includes','.tar.gz','__esModule','charCodeAt','keys','push','prototype','slice','.wasm','\x20chars\x20(high\x20non-printable\x20ratio\x20—\x20content\x20omitted)','[lock\x20file]\x20','3161572HtDEwQ','filterTree','.pyc','filterGrep','pnpm-lock.yaml','.jpeg','\x20matches\x20in\x20this\x20file)','200RVeHPk','.min.js','.mp4','.webm','320956IhcDsn','[binary/minified\x20file]\x20','go.sum','\x20files)','\x20more\x20directories','join','match','\x20directories,\x20','package-lock.json','Gemfile.lock','.bz2','stringify','.min.css','6gEwAne','endsWith','.tgz','5VgrhDb','\x20directories','.avi','packages','.bin','.map','__createBinding','trim','cargo.lock','...\x20+','sort','\x20matches\x20across\x20','split','entries','.mov','49237370hdwjUl','yarn.lock','dirname','dependencies','.webp','.dll','No\x20files\x20found','substring','some','\x20lines\x20total)','2831535cEaqDq','length','configurable','45563HHVYVl','.woff2','\x20chars\x20(contains\x20null\x20bytes\x20—\x20binary\x20content\x20omitted)','.so','parse','.ico','path','\x0a...\x20(','startsWith','/\x20(','toLowerCase','\x20dependencies,\x20','filterLs','.exe','.db','\x20line(s)\x20(content\x20omitted\x20—\x20not\x20human-readable)','\x20lines\x20truncated]\x20...\x0a','filter','basename','create'];a0_0x277c=function(){return _0x31686c;};return a0_0x277c();}function filterGrep(_0x170566){const _0x141bb5=a0_0x3256c1,_0x58a95b=_0x170566[_0x141bb5(0x116)]('\x0a')[_0x141bb5(0x137)](_0x507581=>_0x507581['trim']()[_0x141bb5(0x124)]>0x0);if(_0x58a95b[_0x141bb5(0x124)]===0x0)return'No\x20matches\x20found';if(_0x58a95b[_0x141bb5(0x124)]<=0x32)return _0x170566[_0x141bb5(0x111)]();const _0xefeba={},_0x23c4c9=[];for(const _0xb5997b of _0x58a95b){const _0x18536b=_0xb5997b['indexOf'](':');if(_0x18536b>0x0&&_0x18536b<0xc8){const _0x45cb51=_0xb5997b[_0x141bb5(0x120)](0x0,_0x18536b);if(_0x45cb51['includes']('/')||_0x45cb51['includes']('\x5c')||_0x45cb51[_0x141bb5(0x15e)]('.')){if(!_0xefeba[_0x45cb51])_0xefeba[_0x45cb51]=[];_0xefeba[_0x45cb51]['push'](_0xb5997b[_0x141bb5(0x120)](_0x18536b+0x1)[_0x141bb5(0x111)]());continue;}}_0x23c4c9[_0x141bb5(0x163)](_0xb5997b);}const _0x39e3fe=[],_0x595b9f=Object[_0x141bb5(0x162)](_0xefeba);if(_0x595b9f['length']>0x0){const _0x49e204=0x14,_0x10a71f=_0x595b9f['slice'](0x0,_0x49e204);for(const _0x12d276 of _0x10a71f){const _0x286429=_0xefeba[_0x12d276];if(_0x286429[_0x141bb5(0x124)]<=0x3)for(const _0x353762 of _0x286429){_0x39e3fe[_0x141bb5(0x163)](_0x12d276+':\x20'+_0x353762);}else _0x39e3fe[_0x141bb5(0x163)](_0x12d276+':\x20'+_0x286429[0x0]),_0x39e3fe[_0x141bb5(0x163)](_0x12d276+_0x141bb5(0x158)+_0x286429[_0x141bb5(0x124)]+_0x141bb5(0x16f));}_0x595b9f['length']>_0x49e204&&_0x39e3fe['push'](_0x141bb5(0x113)+(_0x595b9f['length']-_0x49e204)+_0x141bb5(0x15d));}if(_0x23c4c9[_0x141bb5(0x124)]>0x0){const _0x2647b9=0x1e;_0x39e3fe[_0x141bb5(0x163)](..._0x23c4c9[_0x141bb5(0x165)](0x0,_0x2647b9)),_0x23c4c9[_0x141bb5(0x124)]>_0x2647b9&&_0x39e3fe[_0x141bb5(0x163)](_0x141bb5(0x113)+(_0x23c4c9['length']-_0x2647b9)+_0x141bb5(0x15c));}const _0x358ba2=_0x58a95b['length'];return _0x39e3fe[_0x141bb5(0x163)]('\x0a('+_0x358ba2+_0x141bb5(0x115)+(_0x595b9f[_0x141bb5(0x124)]||'?')+_0x141bb5(0xfd)),_0x39e3fe[_0x141bb5(0xff)]('\x0a');}function filterFind(_0x5dccae){const _0x39dc08=a0_0x3256c1,_0x4c9865=_0x5dccae[_0x39dc08(0x116)]('\x0a')['filter'](_0x780f18=>_0x780f18[_0x39dc08(0x111)]()[_0x39dc08(0x124)]>0x0);if(_0x4c9865[_0x39dc08(0x124)]===0x0)return _0x39dc08(0x11f);if(_0x4c9865[_0x39dc08(0x124)]<=0x32)return _0x5dccae[_0x39dc08(0x111)]();const _0x2f3189={};for(const _0x44925b of _0x4c9865){const _0x2ae297=path[_0x39dc08(0x11b)](_0x44925b[_0x39dc08(0x111)]())||'.';_0x2f3189[_0x2ae297]=(_0x2f3189[_0x2ae297]||0x0)+0x1;}const _0x90bcba=Object[_0x39dc08(0x117)](_0x2f3189)[_0x39dc08(0x114)]((_0x4d9744,_0x21eef2)=>_0x21eef2[0x1]-_0x4d9744[0x1]),_0x5596fb=[_0x4c9865[_0x39dc08(0x124)]+_0x39dc08(0x142)+_0x90bcba[_0x39dc08(0x124)]+_0x39dc08(0x10b),''],_0x29bc8a=0x1e;for(const [_0x4905c2,_0x2bf013]of _0x90bcba[_0x39dc08(0x165)](0x0,_0x29bc8a)){_0x5596fb[_0x39dc08(0x163)]('\x20\x20'+_0x4905c2+_0x39dc08(0x12f)+_0x2bf013+'\x20files)');}return _0x90bcba[_0x39dc08(0x124)]>_0x29bc8a&&_0x5596fb[_0x39dc08(0x163)](_0x39dc08(0x14e)+(_0x90bcba[_0x39dc08(0x124)]-_0x29bc8a)+_0x39dc08(0xfe)),_0x5596fb['join']('\x0a');}
|
|
1
|
+
'use strict';const a0_0xca23f4=a0_0x35c6;(function(_0x2dd92e,_0x1f1228){const _0x2cc954=a0_0x35c6,_0x1f385e=_0x2dd92e();while(!![]){try{const _0x590e34=-parseInt(_0x2cc954(0x16b))/0x1+-parseInt(_0x2cc954(0x1da))/0x2+-parseInt(_0x2cc954(0x197))/0x3*(parseInt(_0x2cc954(0x1b9))/0x4)+parseInt(_0x2cc954(0x192))/0x5+-parseInt(_0x2cc954(0x16d))/0x6*(parseInt(_0x2cc954(0x1c1))/0x7)+parseInt(_0x2cc954(0x18b))/0x8*(-parseInt(_0x2cc954(0x194))/0x9)+parseInt(_0x2cc954(0x173))/0xa;if(_0x590e34===_0x1f1228)break;else _0x1f385e['push'](_0x1f385e['shift']());}catch(_0x5e287f){_0x1f385e['push'](_0x1f385e['shift']());}}}(a0_0x40b9,0xce1f7));var __createBinding=this&&this['__createBinding']||(Object[a0_0xca23f4(0x190)]?function(_0x4cd656,_0x2cc9b0,_0x54e224,_0x1dd46b){const _0x18d006=a0_0xca23f4;if(_0x1dd46b===undefined)_0x1dd46b=_0x54e224;var _0x46c825=Object[_0x18d006(0x1a9)](_0x2cc9b0,_0x54e224);(!_0x46c825||(_0x18d006(0x188)in _0x46c825?!_0x2cc9b0[_0x18d006(0x1c0)]:_0x46c825[_0x18d006(0x1cd)]||_0x46c825['configurable']))&&(_0x46c825={'enumerable':!![],'get':function(){return _0x2cc9b0[_0x54e224];}}),Object['defineProperty'](_0x4cd656,_0x1dd46b,_0x46c825);}:function(_0xca87f7,_0x499a7a,_0x3b41dd,_0x3b1de3){if(_0x3b1de3===undefined)_0x3b1de3=_0x3b41dd;_0xca87f7[_0x3b1de3]=_0x499a7a[_0x3b41dd];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a0_0xca23f4(0x190)]?function(_0x54868d,_0x2241b0){const _0x13a081=a0_0xca23f4;Object[_0x13a081(0x1d6)](_0x54868d,_0x13a081(0x198),{'enumerable':!![],'value':_0x2241b0});}:function(_0x2f75dc,_0x316f15){const _0x14f764=a0_0xca23f4;_0x2f75dc[_0x14f764(0x198)]=_0x316f15;}),__importStar=this&&this[a0_0xca23f4(0x1be)]||(function(){var _0x55e4c2=function(_0x2c94e2){const _0x456672=a0_0x35c6;return _0x55e4c2=Object[_0x456672(0x189)]||function(_0x4b7fd7){const _0x4d1bb3=_0x456672;var _0x19b4ec=[];for(var _0x6e8833 in _0x4b7fd7)if(Object[_0x4d1bb3(0x19f)][_0x4d1bb3(0x195)][_0x4d1bb3(0x1ae)](_0x4b7fd7,_0x6e8833))_0x19b4ec[_0x19b4ec[_0x4d1bb3(0x1e5)]]=_0x6e8833;return _0x19b4ec;},_0x55e4c2(_0x2c94e2);};return function(_0x50211c){const _0xc6aa00=a0_0x35c6;if(_0x50211c&&_0x50211c[_0xc6aa00(0x1c0)])return _0x50211c;var _0x5d56bd={};if(_0x50211c!=null){for(var _0x4596e2=_0x55e4c2(_0x50211c),_0x28b255=0x0;_0x28b255<_0x4596e2[_0xc6aa00(0x1e5)];_0x28b255++)if(_0x4596e2[_0x28b255]!==_0xc6aa00(0x198))__createBinding(_0x5d56bd,_0x50211c,_0x4596e2[_0x28b255]);}return __setModuleDefault(_0x5d56bd,_0x50211c),_0x5d56bd;};}());function a0_0x35c6(_0x4c18c8,_0x2d0c98){_0x4c18c8=_0x4c18c8-0x168;const _0x40b9eb=a0_0x40b9();let _0x35c601=_0x40b9eb[_0x4c18c8];return _0x35c601;}function a0_0x40b9(){const _0x1cd679=['push','.rar','basename','__importStar','toLowerCase','__esModule','7ijlRwJ','/\x20(','includes','total\x20','.class','.pdf','.woff','.bz2','.min.js','composer.lock','\x20files\x20found\x20across\x20','.bin','writable','.mov','\x20chars\x20across\x20','\x20chars\x20(high\x20non-printable\x20ratio\x20—\x20content\x20omitted)','.db','pnpm-lock.yaml',':\x20...\x20(','.avi','.png','defineProperty','sort','[binary\x20file]\x20','split','1609732KCnoWC','keys','\x20lines\x20truncated]\x20...\x0a','.mp4','\x20files)','poetry.lock','.woff2','\x20chars\x20(contains\x20null\x20bytes\x20—\x20binary\x20content\x20omitted)','Cargo.lock','.7z','.ttf','length','\x20more\x20files\x20with\x20matches','filter','.gz','stringify','trim','480018OIBDnw','filterLs','57522tUvyyg','.webp','Gemfile.lock','.otf','.tgz','dirname','29206110giCEQZ','\x0a...\x20(','package-lock.json','floor','indexOf','join','.eot','some','No\x20files\x20found','substring','filterCat','\x20more\x20files','.obj','bun.lockb','.ico','endsWith','filterGrep','.dll','toLocaleString','.so','.dat','get','getOwnPropertyNames','[binary/minified\x20file]\x20','8OgVAWd','\x20directories,\x20','filterFind','.pyo','\x20more\x20directories','create','.zip','7819775ukuiiY','packages','9013203vkxWYw','hasOwnProperty','\x20matches\x20in\x20this\x20file)','3lpBFjM','default','yarn.lock','startsWith','cargo.lock','match','...\x20+','.sqlite','prototype','[lock\x20file]\x20','[minified\x20file]\x20','.sqlite3','.wasm','\x20more\x20matches','.bmp','.mp3','.pyc','.svg','getOwnPropertyDescriptor','Empty\x20directory','\x0a...\x20[','entries','parse','call','.jpeg','charCodeAt','\x20chars\x20(content\x20omitted\x20—\x20lock\x20files\x20are\x20not\x20useful\x20for\x20LLM\x20context)','\x20matches\x20across\x20','.jpg','.gif','go.sum','path','\x20files\x20total\x20—\x20deep\x20entries\x20truncated)','slice','5377396foRHKB','No\x20matches\x20found'];a0_0x40b9=function(){return _0x1cd679;};return a0_0x40b9();}Object['defineProperty'](exports,a0_0xca23f4(0x1c0),{'value':!![]}),exports[a0_0xca23f4(0x16c)]=filterLs,exports['filterTree']=filterTree,exports[a0_0xca23f4(0x17d)]=filterCat,exports[a0_0xca23f4(0x183)]=filterGrep,exports[a0_0xca23f4(0x18d)]=filterFind;const path=__importStar(require(a0_0xca23f4(0x1b6))),LOCK_FILES=[a0_0xca23f4(0x175),'yarn.lock',a0_0xca23f4(0x1d2),a0_0xca23f4(0x1e2),a0_0xca23f4(0x1b5),a0_0xca23f4(0x1df),a0_0xca23f4(0x1ca),a0_0xca23f4(0x16f),a0_0xca23f4(0x180)],BINARY_EXTENSIONS=[a0_0xca23f4(0x1c9),'.min.css','.map',a0_0xca23f4(0x1a3),a0_0xca23f4(0x1d5),a0_0xca23f4(0x1b3),a0_0xca23f4(0x1af),a0_0xca23f4(0x1b4),a0_0xca23f4(0x181),a0_0xca23f4(0x1a5),a0_0xca23f4(0x16e),a0_0xca23f4(0x1a8),a0_0xca23f4(0x1c6),a0_0xca23f4(0x191),'.tar.gz',a0_0xca23f4(0x171),a0_0xca23f4(0x168),a0_0xca23f4(0x1c8),a0_0xca23f4(0x1e3),a0_0xca23f4(0x1bc),'.exe',a0_0xca23f4(0x184),a0_0xca23f4(0x186),'.dylib',a0_0xca23f4(0x1cc),a0_0xca23f4(0x187),a0_0xca23f4(0x19e),a0_0xca23f4(0x1d1),a0_0xca23f4(0x1a2),a0_0xca23f4(0x1c7),a0_0xca23f4(0x1e0),a0_0xca23f4(0x1e4),a0_0xca23f4(0x179),a0_0xca23f4(0x170),a0_0xca23f4(0x1a6),a0_0xca23f4(0x1dd),'.wav',a0_0xca23f4(0x1d4),a0_0xca23f4(0x1ce),'.webm',a0_0xca23f4(0x1a7),a0_0xca23f4(0x18e),a0_0xca23f4(0x1c5),'.o',a0_0xca23f4(0x17f)];function extractFilename(_0x2a3731){const _0x3c8b0f=a0_0xca23f4,_0x503806=_0x2a3731[_0x3c8b0f(0x16a)]()[_0x3c8b0f(0x1d9)](/\s+/);for(let _0x251bbf=0x1;_0x251bbf<_0x503806[_0x3c8b0f(0x1e5)];_0x251bbf++){if(!_0x503806[_0x251bbf][_0x3c8b0f(0x19a)]('-'))return _0x503806[_0x251bbf];}return null;}function filterLockFile(_0x542047,_0x7d08d5){const _0x80d62b=a0_0xca23f4;try{const _0x4f75a1=path[_0x80d62b(0x1bd)](_0x7d08d5)[_0x80d62b(0x1bf)]();if(!LOCK_FILES[_0x80d62b(0x17a)](_0xe4d3de=>_0x4f75a1===_0xe4d3de[_0x80d62b(0x1bf)]()))return null;const _0x613be9=_0x542047[_0x80d62b(0x1e5)];let _0xe894ac=0x0;if(_0x4f75a1==='package-lock.json')try{const _0x14386e=JSON[_0x80d62b(0x1ad)](_0x542047);_0xe894ac=Object[_0x80d62b(0x1db)](_0x14386e[_0x80d62b(0x193)]||_0x14386e['dependencies']||{})[_0x80d62b(0x1e5)];}catch{_0xe894ac=(_0x542047[_0x80d62b(0x19c)](/"resolved":/g)||[])[_0x80d62b(0x1e5)];}else{if(_0x4f75a1===_0x80d62b(0x199))_0xe894ac=(_0x542047[_0x80d62b(0x19c)](/^"?[^#\s][^:]*:$/gm)||[])[_0x80d62b(0x1e5)];else{if(_0x4f75a1===_0x80d62b(0x19b)||_0x4f75a1===_0x80d62b(0x1df))_0xe894ac=(_0x542047[_0x80d62b(0x19c)](/\[\[package\]\]/g)||[])['length'];else{if(_0x4f75a1===_0x80d62b(0x1b5))_0xe894ac=Math[_0x80d62b(0x176)](_0x542047[_0x80d62b(0x1d9)]('\x0a')[_0x80d62b(0x1e7)](_0x2162ea=>_0x2162ea[_0x80d62b(0x16a)]())[_0x80d62b(0x1e5)]/0x2);else{if(_0x4f75a1===_0x80d62b(0x1ca))try{_0xe894ac=JSON[_0x80d62b(0x1ad)](_0x542047)[_0x80d62b(0x193)]?.[_0x80d62b(0x1e5)]||0x0;}catch{}else _0x4f75a1===_0x80d62b(0x1d2)?_0xe894ac=(_0x542047[_0x80d62b(0x19c)](/^\s{2}['"@a-z]/gm)||[])[_0x80d62b(0x1e5)]:_0xe894ac=_0x542047[_0x80d62b(0x1d9)]('\x0a')[_0x80d62b(0x1e7)](_0x3b50e6=>_0x3b50e6['trim']())[_0x80d62b(0x1e5)];}}}}return _0x80d62b(0x1a0)+path[_0x80d62b(0x1bd)](_0x7d08d5)+':\x20'+_0xe894ac+'\x20dependencies,\x20'+_0x613be9[_0x80d62b(0x185)]()+_0x80d62b(0x1b1);}catch{return null;}}function filterBinaryOrMinified(_0x225d72,_0x1594e7){const _0x3afac6=a0_0xca23f4;try{if(_0x1594e7){const _0x59fbf8=_0x1594e7[_0x3afac6(0x1bf)]();for(const _0x219ca6 of BINARY_EXTENSIONS){if(_0x59fbf8['endsWith'](_0x219ca6))return _0x3afac6(0x18a)+path[_0x3afac6(0x1bd)](_0x1594e7)+',\x20'+_0x225d72[_0x3afac6(0x1e5)][_0x3afac6(0x185)]()+'\x20chars,\x20type:\x20'+_0x219ca6+'\x20(content\x20omitted\x20—\x20not\x20useful\x20for\x20LLM\x20context)';}}const _0x683ec8=_0x225d72[_0x3afac6(0x17c)](0x0,0x3e8);let _0x13f260=0x0;for(let _0x4f2b77=0x0;_0x4f2b77<_0x683ec8[_0x3afac6(0x1e5)];_0x4f2b77++){if(_0x683ec8[_0x3afac6(0x1b0)](_0x4f2b77)===0x0)_0x13f260++;}if(_0x13f260>0x0)return _0x3afac6(0x1d8)+_0x225d72[_0x3afac6(0x1e5)]['toLocaleString']()+_0x3afac6(0x1e1);let _0x209c6d=0x0;for(let _0x19ea09=0x0;_0x19ea09<_0x683ec8[_0x3afac6(0x1e5)];_0x19ea09++){const _0x1a87c4=_0x683ec8['charCodeAt'](_0x19ea09);if(_0x1a87c4<0x20&&_0x1a87c4!==0xa&&_0x1a87c4!==0xd&&_0x1a87c4!==0x9)_0x209c6d++;}if(_0x683ec8[_0x3afac6(0x1e5)]>0x64&&_0x209c6d>_0x683ec8[_0x3afac6(0x1e5)]*0.1)return _0x3afac6(0x1d8)+_0x225d72[_0x3afac6(0x1e5)][_0x3afac6(0x185)]()+_0x3afac6(0x1d0);const _0x244ddc=_0x225d72['split']('\x0a');if(_0x244ddc[_0x3afac6(0x1e5)]<=0x3&&_0x225d72[_0x3afac6(0x1e5)]>0x1388)return _0x3afac6(0x1a1)+_0x225d72[_0x3afac6(0x1e5)]['toLocaleString']()+_0x3afac6(0x1cf)+_0x244ddc[_0x3afac6(0x1e5)]+'\x20line(s)\x20(content\x20omitted\x20—\x20not\x20human-readable)';return null;}catch{return null;}}function filterJsonMinify(_0x176a38){const _0x2d0bd4=a0_0xca23f4;try{const _0x2e74b1=_0x176a38['trim']();if(!_0x2e74b1[_0x2d0bd4(0x19a)]('{')&&!_0x2e74b1[_0x2d0bd4(0x19a)]('['))return null;const _0x46ca1a=_0x2e74b1[_0x2d0bd4(0x1d9)]('\x0a');if(_0x46ca1a[_0x2d0bd4(0x1e5)]<=0x14)return null;const _0x4dbb97=JSON[_0x2d0bd4(0x1ad)](_0x2e74b1),_0x31ef2d=JSON[_0x2d0bd4(0x169)](_0x4dbb97);if(_0x31ef2d[_0x2d0bd4(0x1e5)]<_0x2e74b1[_0x2d0bd4(0x1e5)])return _0x31ef2d;return null;}catch{return null;}}function filterLs(_0xe44bcf){const _0x19a91c=a0_0xca23f4,_0x1d257b=_0xe44bcf[_0x19a91c(0x1d9)]('\x0a')[_0x19a91c(0x1e7)](_0x21af49=>_0x21af49[_0x19a91c(0x16a)]()[_0x19a91c(0x1e5)]>0x0);if(_0x1d257b['length']===0x0)return _0x19a91c(0x1aa);if(_0x1d257b['length']<=0x1e)return _0xe44bcf[_0x19a91c(0x16a)]();const _0xf7c0d6=[],_0x4cfeb9=[];for(const _0x8996b2 of _0x1d257b){const _0x2b189a=_0x8996b2[_0x19a91c(0x16a)]();if(_0x2b189a[_0x19a91c(0x19a)](_0x19a91c(0x1c4))||_0x2b189a[_0x19a91c(0x19a)]('d')&&_0x2b189a['includes']('..'))continue;_0x2b189a[_0x19a91c(0x182)]('/')||_0x2b189a[_0x19a91c(0x19a)]('d')&&_0x2b189a['includes']('\x20')?_0xf7c0d6[_0x19a91c(0x1bb)](_0x2b189a):_0x4cfeb9['push'](_0x2b189a);}const _0x17fdfd=[];return _0xf7c0d6['length']>0x0&&(_0xf7c0d6[_0x19a91c(0x1e5)]<=0xf?_0x17fdfd[_0x19a91c(0x1bb)](..._0xf7c0d6):(_0x17fdfd[_0x19a91c(0x1bb)](..._0xf7c0d6['slice'](0x0,0xa)),_0x17fdfd['push'](_0x19a91c(0x19d)+(_0xf7c0d6[_0x19a91c(0x1e5)]-0xa)+'\x20more\x20directories'))),_0x4cfeb9[_0x19a91c(0x1e5)]>0x0&&(_0x4cfeb9[_0x19a91c(0x1e5)]<=0x14?_0x17fdfd[_0x19a91c(0x1bb)](..._0x4cfeb9):(_0x17fdfd[_0x19a91c(0x1bb)](..._0x4cfeb9[_0x19a91c(0x1b8)](0x0,0xf)),_0x17fdfd[_0x19a91c(0x1bb)](_0x19a91c(0x19d)+(_0x4cfeb9['length']-0xf)+_0x19a91c(0x17e)))),_0x17fdfd[_0x19a91c(0x1bb)]('\x0a('+_0xf7c0d6[_0x19a91c(0x1e5)]+_0x19a91c(0x18c)+_0x4cfeb9['length']+_0x19a91c(0x1de)),_0x17fdfd[_0x19a91c(0x178)]('\x0a');}function filterTree(_0x48cfac){const _0x2327b8=a0_0xca23f4,_0x1f2a60=_0x48cfac[_0x2327b8(0x1d9)]('\x0a');if(_0x1f2a60['length']<=0x32)return _0x48cfac[_0x2327b8(0x16a)]();const _0x52bea7=[];let _0x1831cf=0x0,_0xf2a515=0x0,_0x4e04b1=0x0;for(const _0x33cf43 of _0x1f2a60){const _0x2775a9=_0x33cf43[_0x2327b8(0x19c)](/(\d+)\s+director/),_0x586517=_0x33cf43['match'](/(\d+)\s+file/);if(_0x2775a9)_0x4e04b1=parseInt(_0x2775a9[0x1]);if(_0x586517)_0xf2a515=parseInt(_0x586517[0x1]);const _0x56a3e6=(_0x33cf43[_0x2327b8(0x19c)](/^[│├└\s─]+/)||[''])[0x0][_0x2327b8(0x1e5)];_0x56a3e6<=0x4&&(_0x52bea7['push'](_0x33cf43),_0x1831cf++);}return _0x1f2a60[_0x2327b8(0x1e5)]>_0x52bea7[_0x2327b8(0x1e5)]&&_0x52bea7[_0x2327b8(0x1bb)](_0x2327b8(0x174)+_0x4e04b1+_0x2327b8(0x18c)+_0xf2a515+_0x2327b8(0x1b7)),_0x52bea7[_0x2327b8(0x178)]('\x0a');}function filterCat(_0x34ba1d,_0x3cb466=''){const _0x639db5=a0_0xca23f4,_0x201fa3=extractFilename(_0x3cb466);try{if(_0x201fa3){const _0x2cdcfb=filterLockFile(_0x34ba1d,_0x201fa3);if(_0x2cdcfb)return _0x2cdcfb;}const _0x41d63a=filterBinaryOrMinified(_0x34ba1d,_0x201fa3);if(_0x41d63a)return _0x41d63a;const _0x5675ad=filterJsonMinify(_0x34ba1d);if(_0x5675ad)return _0x5675ad;}catch{}const _0x5b11b2=_0x34ba1d['split']('\x0a');if(_0x5b11b2[_0x639db5(0x1e5)]<=0x64)return _0x34ba1d;const _0x11a16b=[];return _0x11a16b['push'](..._0x5b11b2[_0x639db5(0x1b8)](0x0,0x32)),_0x11a16b[_0x639db5(0x1bb)](_0x639db5(0x1ab)+(_0x5b11b2['length']-0x50)+_0x639db5(0x1dc)),_0x11a16b['push'](..._0x5b11b2[_0x639db5(0x1b8)](-0x1e)),_0x11a16b[_0x639db5(0x1bb)]('\x0a('+_0x5b11b2['length']+'\x20lines\x20total)'),_0x11a16b[_0x639db5(0x178)]('\x0a');}function filterGrep(_0x25da5a){const _0xc9e77b=a0_0xca23f4,_0x37f672=_0x25da5a[_0xc9e77b(0x1d9)]('\x0a')[_0xc9e77b(0x1e7)](_0x3e3ed5=>_0x3e3ed5[_0xc9e77b(0x16a)]()[_0xc9e77b(0x1e5)]>0x0);if(_0x37f672[_0xc9e77b(0x1e5)]===0x0)return _0xc9e77b(0x1ba);if(_0x37f672[_0xc9e77b(0x1e5)]<=0x32)return _0x25da5a['trim']();const _0x728044={},_0x5a8b38=[];for(const _0x2432be of _0x37f672){const _0x4c007e=_0x2432be[_0xc9e77b(0x177)](':');if(_0x4c007e>0x0&&_0x4c007e<0xc8){const _0x4328fe=_0x2432be['substring'](0x0,_0x4c007e);if(_0x4328fe[_0xc9e77b(0x1c3)]('/')||_0x4328fe['includes']('\x5c')||_0x4328fe['includes']('.')){if(!_0x728044[_0x4328fe])_0x728044[_0x4328fe]=[];_0x728044[_0x4328fe][_0xc9e77b(0x1bb)](_0x2432be[_0xc9e77b(0x17c)](_0x4c007e+0x1)['trim']());continue;}}_0x5a8b38['push'](_0x2432be);}const _0x1e1204=[],_0x46e82c=Object[_0xc9e77b(0x1db)](_0x728044);if(_0x46e82c[_0xc9e77b(0x1e5)]>0x0){const _0x220a3d=0x14,_0x4a1dea=_0x46e82c[_0xc9e77b(0x1b8)](0x0,_0x220a3d);for(const _0x128258 of _0x4a1dea){const _0x462a07=_0x728044[_0x128258];if(_0x462a07[_0xc9e77b(0x1e5)]<=0x3)for(const _0xeb368 of _0x462a07){_0x1e1204['push'](_0x128258+':\x20'+_0xeb368);}else _0x1e1204[_0xc9e77b(0x1bb)](_0x128258+':\x20'+_0x462a07[0x0]),_0x1e1204[_0xc9e77b(0x1bb)](_0x128258+_0xc9e77b(0x1d3)+_0x462a07[_0xc9e77b(0x1e5)]+_0xc9e77b(0x196));}_0x46e82c['length']>_0x220a3d&&_0x1e1204[_0xc9e77b(0x1bb)](_0xc9e77b(0x19d)+(_0x46e82c['length']-_0x220a3d)+_0xc9e77b(0x1e6));}if(_0x5a8b38[_0xc9e77b(0x1e5)]>0x0){const _0x11b691=0x1e;_0x1e1204['push'](..._0x5a8b38[_0xc9e77b(0x1b8)](0x0,_0x11b691)),_0x5a8b38['length']>_0x11b691&&_0x1e1204['push']('...\x20+'+(_0x5a8b38[_0xc9e77b(0x1e5)]-_0x11b691)+_0xc9e77b(0x1a4));}const _0x1d3d2a=_0x37f672[_0xc9e77b(0x1e5)];return _0x1e1204[_0xc9e77b(0x1bb)]('\x0a('+_0x1d3d2a+_0xc9e77b(0x1b2)+(_0x46e82c[_0xc9e77b(0x1e5)]||'?')+'\x20files)'),_0x1e1204[_0xc9e77b(0x178)]('\x0a');}function filterFind(_0x22ba4b){const _0x37f4ff=a0_0xca23f4,_0x54c499=_0x22ba4b[_0x37f4ff(0x1d9)]('\x0a')[_0x37f4ff(0x1e7)](_0x4eab70=>_0x4eab70[_0x37f4ff(0x16a)]()[_0x37f4ff(0x1e5)]>0x0);if(_0x54c499['length']===0x0)return _0x37f4ff(0x17b);if(_0x54c499['length']<=0x32)return _0x22ba4b['trim']();const _0xb17114={};for(const _0x326db0 of _0x54c499){const _0x3e8c51=path[_0x37f4ff(0x172)](_0x326db0['trim']())||'.';_0xb17114[_0x3e8c51]=(_0xb17114[_0x3e8c51]||0x0)+0x1;}const _0x2a8703=Object[_0x37f4ff(0x1ac)](_0xb17114)[_0x37f4ff(0x1d7)]((_0xad10ab,_0x2155bf)=>_0x2155bf[0x1]-_0xad10ab[0x1]),_0x26a6a4=[_0x54c499['length']+_0x37f4ff(0x1cb)+_0x2a8703[_0x37f4ff(0x1e5)]+'\x20directories',''],_0x3fb58e=0x1e;for(const [_0x21ab01,_0x471310]of _0x2a8703[_0x37f4ff(0x1b8)](0x0,_0x3fb58e)){_0x26a6a4['push']('\x20\x20'+_0x21ab01+_0x37f4ff(0x1c2)+_0x471310+_0x37f4ff(0x1de));}return _0x2a8703[_0x37f4ff(0x1e5)]>_0x3fb58e&&_0x26a6a4[_0x37f4ff(0x1bb)]('\x20\x20...\x20+'+(_0x2a8703[_0x37f4ff(0x1e5)]-_0x3fb58e)+_0x37f4ff(0x18f)),_0x26a6a4[_0x37f4ff(0x178)]('\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>
|
|
@@ -635,7 +648,11 @@
|
|
|
635
648
|
if (!chartCanvas) return;
|
|
636
649
|
|
|
637
650
|
if (savingsChart) {
|
|
638
|
-
savingsChart.
|
|
651
|
+
savingsChart.data.labels = labels.length > 0 ? labels : ['No Data'];
|
|
652
|
+
savingsChart.data.datasets[0].data = originalCostData.length > 0 ? originalCostData : [0];
|
|
653
|
+
savingsChart.data.datasets[1].data = shavedCostData.length > 0 ? shavedCostData : [0];
|
|
654
|
+
savingsChart.update('none');
|
|
655
|
+
return;
|
|
639
656
|
}
|
|
640
657
|
|
|
641
658
|
savingsChart = new Chart(chartCanvas, {
|
|
@@ -759,6 +776,30 @@
|
|
|
759
776
|
// Chart + summary always use AI-only logs
|
|
760
777
|
renderChart(aiLogs, resolvedModel);
|
|
761
778
|
|
|
779
|
+
// Security banner — aggregate across all logs
|
|
780
|
+
let totalSecrets = 0;
|
|
781
|
+
const allSecretTypes = {};
|
|
782
|
+
logs.forEach(l => {
|
|
783
|
+
if (l.secrets_found) {
|
|
784
|
+
totalSecrets += l.secrets_found;
|
|
785
|
+
(l.secret_types || []).forEach(t => { allSecretTypes[t] = (allSecretTypes[t] || 0) + 1; });
|
|
786
|
+
}
|
|
787
|
+
});
|
|
788
|
+
const secBanner = document.getElementById('security-banner');
|
|
789
|
+
if (totalSecrets > 0) {
|
|
790
|
+
secBanner.style.display = 'block';
|
|
791
|
+
document.getElementById('sec-title').innerText = `${totalSecrets} secret${totalSecrets > 1 ? 's' : ''} blocked`;
|
|
792
|
+
document.getElementById('sec-subtitle').innerText = `TrimPrompt prevented sensitive data from reaching LLM APIs`;
|
|
793
|
+
const tagsEl = document.getElementById('sec-tags');
|
|
794
|
+
tagsEl.innerHTML = Object.entries(allSecretTypes)
|
|
795
|
+
.sort((a, b) => b[1] - a[1])
|
|
796
|
+
.slice(0, 8)
|
|
797
|
+
.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>`)
|
|
798
|
+
.join('');
|
|
799
|
+
} else {
|
|
800
|
+
secBanner.style.display = 'none';
|
|
801
|
+
}
|
|
802
|
+
|
|
762
803
|
const displayLogs = currentFilter === 'ai' ? aiLogs : logs;
|
|
763
804
|
|
|
764
805
|
const tbody = document.getElementById('history-table-body');
|
|
@@ -781,7 +822,7 @@
|
|
|
781
822
|
|
|
782
823
|
tr.innerHTML = `
|
|
783
824
|
<td>${time}</td>
|
|
784
|
-
<td style="font-weight: 500;">${log.command}</td>
|
|
825
|
+
<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>
|
|
785
826
|
<td>${log.estimated_raw_tokens.toLocaleString()}</td>
|
|
786
827
|
<td>${log.estimated_compressed_tokens.toLocaleString()}</td>
|
|
787
828
|
<td style="color: var(--emerald); font-weight: 600;">${savingsPct}%</td>
|
|
@@ -791,7 +832,7 @@
|
|
|
791
832
|
</span>
|
|
792
833
|
</td>
|
|
793
834
|
<td>
|
|
794
|
-
<button class="btn-inspect"
|
|
835
|
+
<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>
|
|
795
836
|
</td>
|
|
796
837
|
`;
|
|
797
838
|
tbody.appendChild(tr);
|
|
@@ -801,6 +842,48 @@
|
|
|
801
842
|
}
|
|
802
843
|
}
|
|
803
844
|
|
|
845
|
+
function escapeHtml(text) {
|
|
846
|
+
return text.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>');
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
// Human-friendly labels for redactor rule types (see redactor.ts)
|
|
850
|
+
const SECRET_TYPE_LABELS = {
|
|
851
|
+
aws_key: 'AWS access key',
|
|
852
|
+
aws_secret: 'AWS secret key',
|
|
853
|
+
gcp_key: 'GCP service account key',
|
|
854
|
+
azure_conn: 'Azure connection string',
|
|
855
|
+
anthropic_key: 'Anthropic API key',
|
|
856
|
+
openai_key: 'OpenAI API key',
|
|
857
|
+
github_token: 'GitHub token',
|
|
858
|
+
slack_token: 'Slack token',
|
|
859
|
+
stripe_key: 'Stripe key',
|
|
860
|
+
twilio_key: 'Twilio key',
|
|
861
|
+
sendgrid_key: 'SendGrid key',
|
|
862
|
+
private_key: 'Private key',
|
|
863
|
+
jwt: 'JWT token',
|
|
864
|
+
bearer: 'Bearer token',
|
|
865
|
+
basic_auth: 'Basic auth',
|
|
866
|
+
db_connection: 'Database connection',
|
|
867
|
+
generic_credential: 'API key / credential',
|
|
868
|
+
ip_address: 'IP address',
|
|
869
|
+
email: 'Email address'
|
|
870
|
+
};
|
|
871
|
+
function secretLabel(t) {
|
|
872
|
+
return SECRET_TYPE_LABELS[t] || String(t).replace(/_/g, ' ');
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
// Highlights [REDACTED_*] markers. mode 'red' marks where a secret was caught
|
|
876
|
+
// (left/raw pane); mode 'green' marks the safe replacement (right/output pane).
|
|
877
|
+
function highlightRedacted(html, mode) {
|
|
878
|
+
const red = mode === 'red';
|
|
879
|
+
const bg = red ? 'rgba(239,68,68,0.16)' : 'rgba(16,185,129,0.18)';
|
|
880
|
+
const fg = red ? '#FCA5A5' : '#5DCAA5';
|
|
881
|
+
const bd = red ? 'rgba(239,68,68,0.45)' : 'rgba(16,185,129,0.3)';
|
|
882
|
+
return html.replace(/\[REDACTED_[A-Z_]+\]/g, match =>
|
|
883
|
+
`<span style="background:${bg};color:${fg};padding:1px 6px;border-radius:3px;border:1px solid ${bd};font-weight:500;">${match}</span>`
|
|
884
|
+
);
|
|
885
|
+
}
|
|
886
|
+
|
|
804
887
|
function detectFilterType(raw, compressed, command) {
|
|
805
888
|
const rawLen = raw.length;
|
|
806
889
|
const compLen = compressed.length;
|
|
@@ -829,7 +912,15 @@
|
|
|
829
912
|
return { pct, rawLen, compLen, tags };
|
|
830
913
|
}
|
|
831
914
|
|
|
832
|
-
|
|
915
|
+
function inspectFromBtn(btn) {
|
|
916
|
+
const id = btn.getAttribute('data-id');
|
|
917
|
+
const cmd = btn.getAttribute('data-cmd');
|
|
918
|
+
const sec = parseInt(btn.getAttribute('data-sec') || '0');
|
|
919
|
+
const types = (btn.getAttribute('data-types') || '').split(',').filter(Boolean);
|
|
920
|
+
inspectDiff(id, cmd, sec, types);
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
async function inspectDiff(id, command, secretsFound, secretTypes) {
|
|
833
924
|
try {
|
|
834
925
|
document.getElementById('modal-command-title').innerText = `Inspector: trim ${command}`;
|
|
835
926
|
document.getElementById('diff-raw').innerText = 'Loading...';
|
|
@@ -839,8 +930,8 @@
|
|
|
839
930
|
const response = await fetch(`/api/stats/inspect/${id}`);
|
|
840
931
|
const data = await response.json();
|
|
841
932
|
|
|
842
|
-
document.getElementById('diff-raw').
|
|
843
|
-
document.getElementById('diff-comp').
|
|
933
|
+
document.getElementById('diff-raw').innerHTML = highlightRedacted(escapeHtml(data.raw), 'red');
|
|
934
|
+
document.getElementById('diff-comp').innerHTML = highlightRedacted(escapeHtml(data.compressed), 'green');
|
|
844
935
|
|
|
845
936
|
const info = detectFilterType(data.raw, data.compressed, command);
|
|
846
937
|
const bar = document.getElementById('inspect-info-bar');
|
|
@@ -852,6 +943,24 @@
|
|
|
852
943
|
});
|
|
853
944
|
bar.innerHTML = html;
|
|
854
945
|
bar.style.display = 'flex';
|
|
946
|
+
|
|
947
|
+
// Security bar — show only when secrets were found
|
|
948
|
+
let secBar = document.getElementById('inspect-security-bar');
|
|
949
|
+
if (!secBar) {
|
|
950
|
+
secBar = document.createElement('div');
|
|
951
|
+
secBar.id = 'inspect-security-bar';
|
|
952
|
+
bar.parentNode.insertBefore(secBar, bar.nextSibling);
|
|
953
|
+
}
|
|
954
|
+
if (secretsFound && secretsFound > 0) {
|
|
955
|
+
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>`;
|
|
956
|
+
(secretTypes || []).forEach(t => {
|
|
957
|
+
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>`;
|
|
958
|
+
});
|
|
959
|
+
secBar.innerHTML = secHtml;
|
|
960
|
+
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;';
|
|
961
|
+
} else {
|
|
962
|
+
secBar.style.display = 'none';
|
|
963
|
+
}
|
|
855
964
|
} catch (err) {
|
|
856
965
|
console.error('Failed to load diff logs', err);
|
|
857
966
|
}
|
package/mcp.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a0_0x28c579=a0_0x3725;(function(_0x2a3441,_0x5597bd){const _0x271511=a0_0x3725,_0x513242=_0x2a3441();while(!![]){try{const _0x1ab180=-parseInt(_0x271511(0x1bc))/0x1*(-parseInt(_0x271511(0x1c7))/0x2)+-parseInt(_0x271511(0x1c5))/0x3+-parseInt(_0x271511(0x1d9))/0x4*(parseInt(_0x271511(0x1f2))/0x5)+-parseInt(_0x271511(0x1d3))/0x6*(parseInt(_0x271511(0x1e2))/0x7)+parseInt(_0x271511(0x1e5))/0x8*(parseInt(_0x271511(0x1e8))/0x9)+-parseInt(_0x271511(0x1de))/0xa*(parseInt(_0x271511(0x1ee))/0xb)+-parseInt(_0x271511(0x1da))/0xc*(-parseInt(_0x271511(0x1c2))/0xd);if(_0x1ab180===_0x5597bd)break;else _0x513242['push'](_0x513242['shift']());}catch(_0x25918b){_0x513242['push'](_0x513242['shift']());}}}(a0_0x5ccb,0xde536));function a0_0x3725(_0x821e8b,_0x21e50e){_0x821e8b=_0x821e8b-0x1bb;const _0x5ccb29=a0_0x5ccb();let _0x372594=_0x5ccb29[_0x821e8b];return _0x372594;}function a0_0x5ccb(){const _0x3ddbb5=['text','length','27464ndkOoG','readline','write','1917vShPSq','configurable','isArray','message','getConfig','redaction_enabled','10637hROBUQ','default','./tracker','child_process','180SCtUXZ','tracker','call','1qowkZA','parse','hasOwnProperty','__setModuleDefault','stdout','content','240864VPaxqT','stringify','defineProperty','3179178VhHHwq','jsonrpc','206002IWrbLe','createInterface','writable','pipe','2.0','get','string','mcp\x20tool\x20(id:\x20','[TrimPrompt]\x20MCP\x20Server\x20Spawn\x20Error:\x20','create','__esModule','error','9821154AwGnfS','result','inherit','exit','__createBinding','spawn','164392lpKLfn','3792NkSWYk','prototype','type','line','16570hnIzkM','stdin','getOwnPropertyNames','trim','7iqyONi'];a0_0x5ccb=function(){return _0x3ddbb5;};return a0_0x5ccb();}var __createBinding=this&&this[a0_0x28c579(0x1d7)]||(Object['create']?function(_0x4d7d7e,_0x3dd81d,_0x4964bf,_0x5e4fe0){const _0x3f4148=a0_0x28c579;if(_0x5e4fe0===undefined)_0x5e4fe0=_0x4964bf;var _0x4707cd=Object['getOwnPropertyDescriptor'](_0x3dd81d,_0x4964bf);(!_0x4707cd||(_0x3f4148(0x1cc)in _0x4707cd?!_0x3dd81d[_0x3f4148(0x1d1)]:_0x4707cd[_0x3f4148(0x1c9)]||_0x4707cd[_0x3f4148(0x1e9)]))&&(_0x4707cd={'enumerable':!![],'get':function(){return _0x3dd81d[_0x4964bf];}}),Object[_0x3f4148(0x1c4)](_0x4d7d7e,_0x5e4fe0,_0x4707cd);}:function(_0x1509cf,_0x49c769,_0x37eae3,_0x4051e8){if(_0x4051e8===undefined)_0x4051e8=_0x37eae3;_0x1509cf[_0x4051e8]=_0x49c769[_0x37eae3];}),__setModuleDefault=this&&this[a0_0x28c579(0x1bf)]||(Object[a0_0x28c579(0x1d0)]?function(_0x1b417c,_0x4c4077){const _0x4f001c=a0_0x28c579;Object[_0x4f001c(0x1c4)](_0x1b417c,_0x4f001c(0x1ef),{'enumerable':!![],'value':_0x4c4077});}:function(_0x1a8eb4,_0x179662){_0x1a8eb4['default']=_0x179662;}),__importStar=this&&this['__importStar']||(function(){var _0x316655=function(_0x396c41){const _0xff4a35=a0_0x3725;return _0x316655=Object[_0xff4a35(0x1e0)]||function(_0x28da32){const _0x87d62=_0xff4a35;var _0x294186=[];for(var _0x335fa8 in _0x28da32)if(Object[_0x87d62(0x1db)][_0x87d62(0x1be)][_0x87d62(0x1bb)](_0x28da32,_0x335fa8))_0x294186[_0x294186[_0x87d62(0x1e4)]]=_0x335fa8;return _0x294186;},_0x316655(_0x396c41);};return function(_0x4f5847){const _0x726ba2=a0_0x3725;if(_0x4f5847&&_0x4f5847[_0x726ba2(0x1d1)])return _0x4f5847;var _0x26ab6c={};if(_0x4f5847!=null){for(var _0x158f07=_0x316655(_0x4f5847),_0x3ebc9e=0x0;_0x3ebc9e<_0x158f07[_0x726ba2(0x1e4)];_0x3ebc9e++)if(_0x158f07[_0x3ebc9e]!=='default')__createBinding(_0x26ab6c,_0x4f5847,_0x158f07[_0x3ebc9e]);}return __setModuleDefault(_0x26ab6c,_0x4f5847),_0x26ab6c;};}());Object[a0_0x28c579(0x1c4)](exports,'__esModule',{'value':!![]}),exports['runMcpProxy']=runMcpProxy;const child_process_1=require(a0_0x28c579(0x1f1)),readline=__importStar(require(a0_0x28c579(0x1e6))),filters_1=require('./filters'),tracker_1=require(a0_0x28c579(0x1f0));function runMcpProxy(_0x1de302,_0x3cbcdf){const _0x1db1c3=a0_0x28c579,_0x5ae91e=(0x0,child_process_1[_0x1db1c3(0x1d8)])(_0x1de302,_0x3cbcdf,{'stdio':['pipe',_0x1db1c3(0x1ca),_0x1db1c3(0x1d5)]});process['stdin'][_0x1db1c3(0x1ca)](_0x5ae91e[_0x1db1c3(0x1df)]);const _0x555d8e=readline[_0x1db1c3(0x1c8)]({'input':_0x5ae91e['stdout'],'terminal':![]});_0x555d8e['on'](_0x1db1c3(0x1dd),_0x1673eb=>{const _0x12074a=_0x1db1c3;try{const _0x28ba04=JSON[_0x12074a(0x1bd)](_0x1673eb);if(_0x28ba04&&_0x28ba04[_0x12074a(0x1c6)]===_0x12074a(0x1cb)&&_0x28ba04['id']!==undefined&&_0x28ba04[_0x12074a(0x1d4)]&&Array[_0x12074a(0x1ea)](_0x28ba04[_0x12074a(0x1d4)][_0x12074a(0x1c1)])){let _0x46cd12=![];for(const _0x1a805d of _0x28ba04['result']['content']){if(_0x1a805d[_0x12074a(0x1dc)]==='text'&&typeof _0x1a805d[_0x12074a(0x1e3)]===_0x12074a(0x1cd)&&_0x1a805d[_0x12074a(0x1e3)][_0x12074a(0x1e1)]()[_0x12074a(0x1e4)]>0x0){const _0x56e70c=_0x1a805d[_0x12074a(0x1e3)],_0x4042fc=(0x0,filters_1['compressOutput'])('mcp-tool-call',_0x56e70c,'',tracker_1[_0x12074a(0x1f3)][_0x12074a(0x1ec)]()[_0x12074a(0x1ed)]);tracker_1[_0x12074a(0x1f3)]['logExecution'](_0x12074a(0x1ce)+_0x28ba04['id']+')',_0x56e70c,_0x4042fc,0x0),_0x1a805d[_0x12074a(0x1e3)]=_0x4042fc,_0x46cd12=!![];}}_0x46cd12?process[_0x12074a(0x1c0)][_0x12074a(0x1e7)](JSON[_0x12074a(0x1c3)](_0x28ba04)+'\x0a'):process['stdout'][_0x12074a(0x1e7)](_0x1673eb+'\x0a');}else process[_0x12074a(0x1c0)]['write'](_0x1673eb+'\x0a');}catch{process[_0x12074a(0x1c0)][_0x12074a(0x1e7)](_0x1673eb+'\x0a');}}),_0x5ae91e['on']('close',_0x5295f0=>{process['exit'](_0x5295f0||0x0);}),_0x5ae91e['on'](_0x1db1c3(0x1d2),_0x572ef7=>{const _0x33912f=_0x1db1c3;console[_0x33912f(0x1d2)](_0x33912f(0x1cf)+_0x572ef7[_0x33912f(0x1eb)]),process[_0x33912f(0x1d6)](0x1);});}
|
package/package.json
CHANGED
package/redactor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a0_0x196e8e=a0_0x20f1;(function(_0x4db724,_0x28be0c){const _0x517a50=a0_0x20f1,_0x23a3af=_0x4db724();while(!![]){try{const _0x246dc1=-parseInt(_0x517a50(0xa7))/0x1+parseInt(_0x517a50(0x86))/0x2+parseInt(_0x517a50(0x6e))/0x3*(parseInt(_0x517a50(0x96))/0x4)+parseInt(_0x517a50(0x82))/0x5*(parseInt(_0x517a50(0x87))/0x6)+-parseInt(_0x517a50(0x8e))/0x7*(-parseInt(_0x517a50(0x9d))/0x8)+-parseInt(_0x517a50(0x7d))/0x9*(parseInt(_0x517a50(0x85))/0xa)+parseInt(_0x517a50(0x73))/0xb*(-parseInt(_0x517a50(0x70))/0xc);if(_0x246dc1===_0x28be0c)break;else _0x23a3af['push'](_0x23a3af['shift']());}catch(_0x485eb5){_0x23a3af['push'](_0x23a3af['shift']());}}}(a0_0x2aab,0xb422b));function a0_0x2aab(){const _0x4d2425=['Basic\x20Auth','regex','\x22private_key\x22:\x20\x22[REDACTED_GCP_PRIVATE_KEY]\x22','sendgrid_key','[REDACTED_GITHUB_TOKEN]','[REDACTED_EMAIL]','874475HRRNEw','rules','alert','Stripe\x20Key','aws_key','[REDACTED_AWS_KEY]','$1=[REDACTED_AWS_SECRET]','length','4028GAIhdd','redactor','$1=[REDACTED_CREDENTIAL]','loadDefaultRules','[REDACTED_PRIVATE_KEY]','AWS\x20Secret\x20Key','redact','80hEOdUH','[REDACTED_SLACK_TOKEN]','JWT\x20Token','bearer','github_token','Bearer\x20Token','IPv4\x20Address\x20(non-local)','replacement','generic_credential','[REDACTED_IP]','182472pBqZFU','[REDACTED_JWT]','anthropic_key','[REDACTED_DB_CONNECTION]','replace','twilio_key','[REDACTED_TWILIO_KEY]','AWS\x20Access\x20Key','2859LQePgs','text','48bUdNKZ','ip_address','defineProperty','7203086lxgWmr','includes','Redactor','GitHub\x20Token','Azure\x20Connection\x20String','redactWithAudit','stripe_key','Database\x20Connection\x20String','Email\x20Address','OpenAI\x20API\x20Key','290547GJJVmX','private_key','push','type','db_connection','1540995dLMtxe','[REDACTED_AZURE_CONNECTION]','openai_key','300vBLdQC','2749166gNMRYA','18zRdYSx'];a0_0x2aab=function(){return _0x4d2425;};return a0_0x2aab();}Object[a0_0x196e8e(0x72)](exports,'__esModule',{'value':!![]}),exports[a0_0x196e8e(0x97)]=exports[a0_0x196e8e(0x75)]=void 0x0;function a0_0x20f1(_0x1b6a48,_0x15d439){_0x1b6a48=_0x1b6a48-0x6e;const _0x2aab55=a0_0x2aab();let _0x20f106=_0x2aab55[_0x1b6a48];return _0x20f106;}class Redactor{[a0_0x196e8e(0x8f)]=[];constructor(){const _0x14ce3d=a0_0x196e8e;this[_0x14ce3d(0x99)]();}[a0_0x196e8e(0x99)](){const _0x4e5196=a0_0x196e8e;this[_0x4e5196(0x8f)]=[{'name':_0x4e5196(0xae),'type':_0x4e5196(0x92),'regex':/\b(AKIA[0-9A-Z]{16})\b/g,'replacement':_0x4e5196(0x93)},{'name':_0x4e5196(0x9b),'type':'aws_secret','regex':/(aws_secret_access_key|AWS_SECRET_ACCESS_KEY)[\s:=]+[A-Za-z0-9/+=]{30,}/gi,'replacement':_0x4e5196(0x94)},{'name':'GCP\x20Service\x20Account\x20Key','type':'gcp_key','regex':/"private_key"\s*:\s*"-----BEGIN[^"]+-----END[^"]*"/g,'replacement':_0x4e5196(0x8a)},{'name':_0x4e5196(0x77),'type':'azure_conn','regex':/DefaultEndpointsProtocol=https?;AccountName=[^;]+;AccountKey=[^;]+;?[^\s]*/gi,'replacement':_0x4e5196(0x83)},{'name':'Anthropic\x20API\x20Key','type':_0x4e5196(0xa9),'regex':/\bsk-ant-api\d{2}-[A-Za-z0-9_-]{20,}\b/g,'replacement':'[REDACTED_ANTHROPIC_KEY]'},{'name':_0x4e5196(0x7c),'type':_0x4e5196(0x84),'regex':/\b(sk-proj-[A-Za-z0-9_-]{20,}|sk-[A-Za-z0-9]{32,})\b/g,'replacement':'[REDACTED_OPENAI_KEY]'},{'name':_0x4e5196(0x76),'type':_0x4e5196(0xa1),'regex':/\b(ghp_[A-Za-z0-9]{20,}|gho_[A-Za-z0-9]{20,}|github_pat_[A-Za-z0-9_]{22,})\b/g,'replacement':_0x4e5196(0x8c)},{'name':'Slack\x20Token','type':'slack_token','regex':/\b(xoxb-[0-9A-Za-z-]+|xoxp-[0-9A-Za-z-]+|xapp-[0-9A-Za-z-]+)\b/g,'replacement':_0x4e5196(0x9e)},{'name':_0x4e5196(0x91),'type':_0x4e5196(0x79),'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':'[REDACTED_STRIPE_KEY]'},{'name':'Twilio\x20Key','type':_0x4e5196(0xac),'regex':/\bSK[0-9a-f]{32}\b/g,'replacement':_0x4e5196(0xad)},{'name':'SendGrid\x20Key','type':_0x4e5196(0x8b),'regex':/\bSG\.[A-Za-z0-9_-]{22,}\.[A-Za-z0-9_-]{22,}\b/g,'replacement':'[REDACTED_SENDGRID_KEY]'},{'name':'Private\x20Key\x20Block','type':_0x4e5196(0x7e),'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':_0x4e5196(0x9a)},{'name':_0x4e5196(0x9f),'type':'jwt','regex':/\beyJ[A-Za-z0-9_-]{10,}\.eyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'replacement':_0x4e5196(0xa8)},{'name':_0x4e5196(0xa2),'type':_0x4e5196(0xa0),'regex':/Bearer\s+[A-Za-z0-9_\-.]{20,}/gi,'replacement':'Bearer\x20[REDACTED_TOKEN]'},{'name':_0x4e5196(0x88),'type':'basic_auth','regex':/Basic\s+[A-Za-z0-9+/=]{10,}/gi,'replacement':'Basic\x20[REDACTED_AUTH]'},{'name':_0x4e5196(0x7a),'type':_0x4e5196(0x81),'regex':/(mongodb(\+srv)?|postgres|postgresql|mysql|redis|amqp|sqlite):\/\/[A-Za-z0-9_]+:[^@\s\n]+@[^\s\n]+/gi,'replacement':_0x4e5196(0xaa)},{'name':'Generic\x20API\x20Key/Secret/Password','type':_0x4e5196(0xa5),'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':_0x4e5196(0x98)},{'name':_0x4e5196(0xa3),'type':_0x4e5196(0x71),'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':_0x4e5196(0xa6),'alert':![]},{'name':_0x4e5196(0x7b),'type':'email','regex':/\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b/g,'replacement':_0x4e5196(0x8d),'alert':![]}];}[a0_0x196e8e(0x9c)](_0x11b130){const _0x8a6c49=a0_0x196e8e;return this[_0x8a6c49(0x78)](_0x11b130)[_0x8a6c49(0x6f)];}[a0_0x196e8e(0x78)](_0x43b988){const _0x50614d=a0_0x196e8e;let _0x41481b=_0x43b988,_0x4811ce=0x0;const _0x15cdc2=[];for(const _0x133b85 of this[_0x50614d(0x8f)]){const _0x514731=_0x41481b['match'](_0x133b85['regex']);_0x514731&&_0x514731[_0x50614d(0x95)]>0x0&&(_0x133b85[_0x50614d(0x90)]!==![]&&(_0x4811ce+=_0x514731[_0x50614d(0x95)],!_0x15cdc2[_0x50614d(0x74)](_0x133b85[_0x50614d(0x80)])&&_0x15cdc2[_0x50614d(0x7f)](_0x133b85['type'])),_0x41481b=_0x41481b[_0x50614d(0xab)](_0x133b85[_0x50614d(0x89)],_0x133b85[_0x50614d(0xa4)]));}return{'text':_0x41481b,'secretsFound':_0x4811ce,'secretTypes':_0x15cdc2};}}exports[a0_0x196e8e(0x75)]=Redactor,exports['redactor']=new Redactor();
|
package/seed.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a0_0x30ed6c=a0_0x43a4;(function(_0x2d1c7b,_0x1a8f7c){const _0x15716e=a0_0x43a4,_0x1030d3=_0x2d1c7b();while(!![]){try{const _0x1d4413=parseInt(_0x15716e(0xf7))/0x1+-parseInt(_0x15716e(0xf6))/0x2+parseInt(_0x15716e(0x10d))/0x3*(-parseInt(_0x15716e(0x100))/0x4)+-parseInt(_0x15716e(0x112))/0x5*(parseInt(_0x15716e(0x104))/0x6)+parseInt(_0x15716e(0xf5))/0x7+parseInt(_0x15716e(0x10e))/0x8*(parseInt(_0x15716e(0x108))/0x9)+parseInt(_0x15716e(0xfe))/0xa;if(_0x1d4413===_0x1a8f7c)break;else _0x1030d3['push'](_0x1030d3['shift']());}catch(_0x5da3c4){_0x1030d3['push'](_0x1030d3['shift']());}}}(a0_0x25a9,0xdd2da));function a0_0x25a9(){const _0x2ba38c=['6144880MTDZVj','pytest\x20app:\x20303\x20tests\x20passed\x20in\x204.22s.','244268fIyEfe','Database\x20successfully\x20seeded!','log','Step\x202/10\x20:\x20COPY\x20package.json\x20.\x0a','270QMrMwy','test_api.py\x20PASS\x0a','Compilation\x20Output:\x0a','Step\x203/10\x20:\x20RUN\x20npm\x20install\x0a','45iBHxFv','Sending\x20build\x20context\x20to\x20Docker\x20daemon...\x0a','./tracker','claude-3-opus','__esModule','21EUHiMU','628664JtWels','[INFO]\x20Building\x20modules...\x0a','Step\x201/10\x20:\x20FROM\x20node:20\x0a','test_auth.py\x20PASS\x0a','96970hgPxfE','added\x201420\x20packages\x20in\x2014s\x0a','Seeding\x20TrimPrompt\x20database\x20with\x20mock\x20LLM\x20command\x20telemetry...','[INFO]\x20Building\x20modules...\x0a[SUCCESS]\x20Compiled\x20512\x20modules.\x20(repeated\x20400\x20times)','logExecution','gpt-4o','Test\x20suite\x20run\x20starting...\x0a','Optimizing\x20assets...\x0a','2808715qwKzid','498216iXhPMq','1046605cHBcpd','repeat','tracker','docker\x20build:\x201420\x20packages\x20added.\x20Successfully\x20built\x20image.','[SUCCESS]\x20Compiled\x20512\x20modules.\x0a','npm\x20run\x20build','gemini-1-5-pro'];a0_0x25a9=function(){return _0x2ba38c;};return a0_0x25a9();}Object['defineProperty'](exports,a0_0x30ed6c(0x10c),{'value':!![]});const tracker_1=require(a0_0x30ed6c(0x10a));function a0_0x43a4(_0x8993c5,_0x44fa8f){_0x8993c5=_0x8993c5-0xee;const _0x25a90f=a0_0x25a9();let _0x43a4dd=_0x25a90f[_0x8993c5];return _0x43a4dd;}console[a0_0x30ed6c(0x102)](a0_0x30ed6c(0xef)),process.env.TRIMPROMPT_MODEL=a0_0x30ed6c(0x10b),tracker_1[a0_0x30ed6c(0xf9)][a0_0x30ed6c(0xf1)](a0_0x30ed6c(0xfc),a0_0x30ed6c(0x106)+a0_0x30ed6c(0x10f)+a0_0x30ed6c(0xf4)+a0_0x30ed6c(0xfb)['repeat'](0x190),a0_0x30ed6c(0xf0),0x0),process.env.TRIMPROMPT_MODEL=a0_0x30ed6c(0xf2),tracker_1['tracker'][a0_0x30ed6c(0xf1)]('pytest\x20tests/app',a0_0x30ed6c(0xf3)+a0_0x30ed6c(0x111)+'test_db.py\x20PASS\x0a'+a0_0x30ed6c(0x105)['repeat'](0x12c)+'All\x20303\x20tests\x20passed\x20in\x204.22s.',a0_0x30ed6c(0xff),0x0),process.env.TRIMPROMPT_MODEL=a0_0x30ed6c(0xfd),tracker_1['tracker'][a0_0x30ed6c(0xf1)]('docker\x20build\x20.',a0_0x30ed6c(0x109)+a0_0x30ed6c(0x110)+a0_0x30ed6c(0x103)+a0_0x30ed6c(0x107)+a0_0x30ed6c(0xee)[a0_0x30ed6c(0xf8)](0x3)+'Successfully\x20built\x20image.',a0_0x30ed6c(0xfa),0x0),console[a0_0x30ed6c(0x102)](a0_0x30ed6c(0x101));
|