trimprompt 1.0.23 → 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';const
|
|
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_0x47f344=a0_0x41fc;(function(_0x162bfd,_0x19bac1){const _0x1edbc3=a0_0x41fc,_0x466520=_0x162bfd();while(!![]){try{const _0x1d5ef4=-parseInt(_0x1edbc3(0x120))/0x1*(-parseInt(_0x1edbc3(0x138))/0x2)+parseInt(_0x1edbc3(0x10e))/0x3+parseInt(_0x1edbc3(0x17f))/0x4*(parseInt(_0x1edbc3(0x146))/0x5)+-parseInt(_0x1edbc3(0x141))/0x6*(-parseInt(_0x1edbc3(0x106))/0x7)+parseInt(_0x1edbc3(0x111))/0x8*(-parseInt(_0x1edbc3(0x168))/0x9)+parseInt(_0x1edbc3(0x17d))/0xa+-parseInt(_0x1edbc3(0x10c))/0xb*(parseInt(_0x1edbc3(0x178))/0xc);if(_0x1d5ef4===_0x19bac1)break;else _0x466520['push'](_0x466520['shift']());}catch(_0x16dd6d){_0x466520['push'](_0x466520['shift']());}}}(a0_0x5d42,0xc133b));function a0_0x41fc(_0x35be53,_0x5bf593){_0x35be53=_0x35be53-0x105;const _0x5d4284=a0_0x5d42();let _0x41fcff=_0x5d4284[_0x35be53];return _0x41fcff;}function a0_0x5d42(){const _0x195023=['.avi','.tgz','indexOf','endsWith','push','\x20chars\x20across\x20','create','[lock\x20file]\x20','12541EdwTVP','filterCat','[minified\x20file]\x20','keys','\x20lines\x20truncated]\x20...\x0a','Empty\x20directory','[binary/minified\x20file]\x20','.pyo','__setModuleDefault','.pyc','bun.lockb','.zip','default','.wasm','.eot','.7z','.bin','Gemfile.lock','charCodeAt','...\x20+','.min.css','.class','\x20files)','package-lock.json','218ALsePI','go.sum','.tar.gz','.bmp','\x20dependencies,\x20','join','trim','filterGrep','\x20directories,\x20','1608QdaCxz','\x20chars\x20(high\x20non-printable\x20ratio\x20—\x20content\x20omitted)','.mp3','.svg','\x20chars\x20(content\x20omitted\x20—\x20lock\x20files\x20are\x20not\x20useful\x20for\x20LLM\x20context)','5vsuNDj','writable','.ttf','hasOwnProperty','\x20files\x20found\x20across\x20','some','[binary\x20file]\x20','.webp','.exe','split','filter','.wav','\x20\x20...\x20+','prototype','filterTree','getOwnPropertyNames','dirname','.woff2','\x20chars\x20(contains\x20null\x20bytes\x20—\x20binary\x20content\x20omitted)','.gz','\x20matches\x20in\x20this\x20file)','\x20more\x20directories','match','.min.js','\x20directories','.webm','slice','get','startsWith','includes','\x20more\x20matches','.dat','length','No\x20matches\x20found','10152RXivGx','\x20more\x20files\x20with\x20matches','No\x20files\x20found','poetry.lock','.so','dependencies','pnpm-lock.yaml','sort','.otf','\x20chars,\x20type:\x20','parse','/\x20(','path','floor','.gif','toLocaleString','12JdYAyI','.dll','.pdf','configurable','packages','2562120oaVJvi','.obj','453872ziGJAB','call','basename','34699wbNoTC','defineProperty','.rar','cargo.lock','substring','.ico','40827347XawbAY','\x0a...\x20[','4489389xckEYm','Cargo.lock',':\x20...\x20(','416DgGUzJ','composer.lock','.db','__esModule','yarn.lock','.bz2','toLowerCase'];a0_0x5d42=function(){return _0x195023;};return a0_0x5d42();}var __createBinding=this&&this['__createBinding']||(Object[a0_0x47f344(0x11e)]?function(_0x3514d4,_0x471183,_0x254099,_0x3d396c){const _0x2db42a=a0_0x47f344;if(_0x3d396c===undefined)_0x3d396c=_0x254099;var _0x12e22b=Object['getOwnPropertyDescriptor'](_0x471183,_0x254099);(!_0x12e22b||(_0x2db42a(0x161)in _0x12e22b?!_0x471183['__esModule']:_0x12e22b[_0x2db42a(0x147)]||_0x12e22b[_0x2db42a(0x17b)]))&&(_0x12e22b={'enumerable':!![],'get':function(){return _0x471183[_0x254099];}}),Object['defineProperty'](_0x3514d4,_0x3d396c,_0x12e22b);}:function(_0xc318fa,_0x6d2fb1,_0x2960b8,_0x309714){if(_0x309714===undefined)_0x309714=_0x2960b8;_0xc318fa[_0x309714]=_0x6d2fb1[_0x2960b8];}),__setModuleDefault=this&&this[a0_0x47f344(0x128)]||(Object[a0_0x47f344(0x11e)]?function(_0x253a9d,_0x1bfba9){const _0x1bd88a=a0_0x47f344;Object[_0x1bd88a(0x107)](_0x253a9d,_0x1bd88a(0x12c),{'enumerable':!![],'value':_0x1bfba9});}:function(_0x40610b,_0x10d822){const _0x49539f=a0_0x47f344;_0x40610b[_0x49539f(0x12c)]=_0x10d822;}),__importStar=this&&this['__importStar']||(function(){var _0x3bb3eb=function(_0x297bab){const _0x122263=a0_0x41fc;return _0x3bb3eb=Object[_0x122263(0x155)]||function(_0x344eb3){const _0x555a32=_0x122263;var _0xfbad67=[];for(var _0x28cff7 in _0x344eb3)if(Object[_0x555a32(0x153)][_0x555a32(0x149)][_0x555a32(0x180)](_0x344eb3,_0x28cff7))_0xfbad67[_0xfbad67['length']]=_0x28cff7;return _0xfbad67;},_0x3bb3eb(_0x297bab);};return function(_0x2be281){const _0x10af82=a0_0x41fc;if(_0x2be281&&_0x2be281[_0x10af82(0x114)])return _0x2be281;var _0x27936a={};if(_0x2be281!=null){for(var _0x536390=_0x3bb3eb(_0x2be281),_0x29de00=0x0;_0x29de00<_0x536390[_0x10af82(0x166)];_0x29de00++)if(_0x536390[_0x29de00]!==_0x10af82(0x12c))__createBinding(_0x27936a,_0x2be281,_0x536390[_0x29de00]);}return __setModuleDefault(_0x27936a,_0x2be281),_0x27936a;};}());Object[a0_0x47f344(0x107)](exports,a0_0x47f344(0x114),{'value':!![]}),exports['filterLs']=filterLs,exports[a0_0x47f344(0x154)]=filterTree,exports[a0_0x47f344(0x121)]=filterCat,exports[a0_0x47f344(0x13f)]=filterGrep,exports['filterFind']=filterFind;const path=__importStar(require(a0_0x47f344(0x174))),LOCK_FILES=['package-lock.json',a0_0x47f344(0x115),a0_0x47f344(0x16e),a0_0x47f344(0x10f),'go.sum',a0_0x47f344(0x16b),a0_0x47f344(0x112),a0_0x47f344(0x131),a0_0x47f344(0x12a)],BINARY_EXTENSIONS=[a0_0x47f344(0x15d),a0_0x47f344(0x134),'.map',a0_0x47f344(0x12d),'.png','.jpg','.jpeg',a0_0x47f344(0x176),a0_0x47f344(0x10b),a0_0x47f344(0x13b),a0_0x47f344(0x14d),a0_0x47f344(0x144),a0_0x47f344(0x17a),a0_0x47f344(0x12b),a0_0x47f344(0x13a),a0_0x47f344(0x119),a0_0x47f344(0x159),a0_0x47f344(0x116),a0_0x47f344(0x12f),a0_0x47f344(0x108),a0_0x47f344(0x14e),a0_0x47f344(0x179),a0_0x47f344(0x16c),'.dylib',a0_0x47f344(0x130),a0_0x47f344(0x165),'.sqlite',a0_0x47f344(0x113),'.sqlite3','.woff',a0_0x47f344(0x157),a0_0x47f344(0x148),a0_0x47f344(0x12e),a0_0x47f344(0x170),a0_0x47f344(0x143),'.mp4',a0_0x47f344(0x151),a0_0x47f344(0x118),'.mov',a0_0x47f344(0x15f),a0_0x47f344(0x129),a0_0x47f344(0x127),a0_0x47f344(0x135),'.o',a0_0x47f344(0x17e)];function extractFilename(_0x33baff){const _0x4e2662=a0_0x47f344,_0x3a69f7=_0x33baff[_0x4e2662(0x13e)]()['split'](/\s+/);for(let _0x3c9959=0x1;_0x3c9959<_0x3a69f7[_0x4e2662(0x166)];_0x3c9959++){if(!_0x3a69f7[_0x3c9959][_0x4e2662(0x162)]('-'))return _0x3a69f7[_0x3c9959];}return null;}function filterLockFile(_0x2e8f1c,_0x26dc12){const _0x260ca9=a0_0x47f344;try{const _0x312543=path[_0x260ca9(0x105)](_0x26dc12)['toLowerCase']();if(!LOCK_FILES[_0x260ca9(0x14b)](_0x1c6bd8=>_0x312543===_0x1c6bd8[_0x260ca9(0x117)]()))return null;const _0x4943ef=_0x2e8f1c[_0x260ca9(0x166)];let _0x36f25c=0x0;if(_0x312543===_0x260ca9(0x137))try{const _0x53b222=JSON[_0x260ca9(0x172)](_0x2e8f1c);_0x36f25c=Object['keys'](_0x53b222[_0x260ca9(0x17c)]||_0x53b222[_0x260ca9(0x16d)]||{})[_0x260ca9(0x166)];}catch{_0x36f25c=(_0x2e8f1c[_0x260ca9(0x15c)](/"resolved":/g)||[])[_0x260ca9(0x166)];}else{if(_0x312543===_0x260ca9(0x115))_0x36f25c=(_0x2e8f1c[_0x260ca9(0x15c)](/^"?[^#\s][^:]*:$/gm)||[])[_0x260ca9(0x166)];else{if(_0x312543===_0x260ca9(0x109)||_0x312543===_0x260ca9(0x16b))_0x36f25c=(_0x2e8f1c[_0x260ca9(0x15c)](/\[\[package\]\]/g)||[])[_0x260ca9(0x166)];else{if(_0x312543===_0x260ca9(0x139))_0x36f25c=Math[_0x260ca9(0x175)](_0x2e8f1c['split']('\x0a')['filter'](_0x29c145=>_0x29c145[_0x260ca9(0x13e)]())[_0x260ca9(0x166)]/0x2);else{if(_0x312543===_0x260ca9(0x112))try{_0x36f25c=JSON['parse'](_0x2e8f1c)[_0x260ca9(0x17c)]?.[_0x260ca9(0x166)]||0x0;}catch{}else _0x312543===_0x260ca9(0x16e)?_0x36f25c=(_0x2e8f1c[_0x260ca9(0x15c)](/^\s{2}['"@a-z]/gm)||[])['length']:_0x36f25c=_0x2e8f1c[_0x260ca9(0x14f)]('\x0a')['filter'](_0x1dac4a=>_0x1dac4a[_0x260ca9(0x13e)]())['length'];}}}}return _0x260ca9(0x11f)+path[_0x260ca9(0x105)](_0x26dc12)+':\x20'+_0x36f25c+_0x260ca9(0x13c)+_0x4943ef[_0x260ca9(0x177)]()+_0x260ca9(0x145);}catch{return null;}}function filterBinaryOrMinified(_0x4ea111,_0x1907e4){const _0x2dde35=a0_0x47f344;try{if(_0x1907e4){const _0x5a1eec=_0x1907e4[_0x2dde35(0x117)]();for(const _0x14cfa8 of BINARY_EXTENSIONS){if(_0x5a1eec['endsWith'](_0x14cfa8))return _0x2dde35(0x126)+path['basename'](_0x1907e4)+',\x20'+_0x4ea111[_0x2dde35(0x166)][_0x2dde35(0x177)]()+_0x2dde35(0x171)+_0x14cfa8+'\x20(content\x20omitted\x20—\x20not\x20useful\x20for\x20LLM\x20context)';}}const _0x1ce325=_0x4ea111[_0x2dde35(0x10a)](0x0,0x3e8);let _0x14108e=0x0;for(let _0x13d2c0=0x0;_0x13d2c0<_0x1ce325['length'];_0x13d2c0++){if(_0x1ce325[_0x2dde35(0x132)](_0x13d2c0)===0x0)_0x14108e++;}if(_0x14108e>0x0)return _0x2dde35(0x14c)+_0x4ea111[_0x2dde35(0x166)][_0x2dde35(0x177)]()+_0x2dde35(0x158);let _0x207656=0x0;for(let _0x351f25=0x0;_0x351f25<_0x1ce325[_0x2dde35(0x166)];_0x351f25++){const _0x3e7337=_0x1ce325[_0x2dde35(0x132)](_0x351f25);if(_0x3e7337<0x20&&_0x3e7337!==0xa&&_0x3e7337!==0xd&&_0x3e7337!==0x9)_0x207656++;}if(_0x1ce325[_0x2dde35(0x166)]>0x64&&_0x207656>_0x1ce325[_0x2dde35(0x166)]*0.1)return _0x2dde35(0x14c)+_0x4ea111[_0x2dde35(0x166)][_0x2dde35(0x177)]()+_0x2dde35(0x142);const _0x5f1550=_0x4ea111[_0x2dde35(0x14f)]('\x0a');if(_0x5f1550[_0x2dde35(0x166)]<=0x3&&_0x4ea111[_0x2dde35(0x166)]>0x1388)return _0x2dde35(0x122)+_0x4ea111[_0x2dde35(0x166)][_0x2dde35(0x177)]()+_0x2dde35(0x11d)+_0x5f1550[_0x2dde35(0x166)]+'\x20line(s)\x20(content\x20omitted\x20—\x20not\x20human-readable)';return null;}catch{return null;}}function filterJsonMinify(_0x539bf6){const _0x37a5d3=a0_0x47f344;try{const _0x283618=_0x539bf6[_0x37a5d3(0x13e)]();if(!_0x283618[_0x37a5d3(0x162)]('{')&&!_0x283618['startsWith']('['))return null;const _0x5185be=_0x283618[_0x37a5d3(0x14f)]('\x0a');if(_0x5185be['length']<=0x14)return null;const _0x482db7=JSON[_0x37a5d3(0x172)](_0x283618),_0x5ea3a3=JSON['stringify'](_0x482db7);if(_0x5ea3a3['length']<_0x283618[_0x37a5d3(0x166)])return _0x5ea3a3;return null;}catch{return null;}}function filterLs(_0x36661e){const _0x376f3d=a0_0x47f344,_0x3bda2d=_0x36661e[_0x376f3d(0x14f)]('\x0a')[_0x376f3d(0x150)](_0x103753=>_0x103753[_0x376f3d(0x13e)]()[_0x376f3d(0x166)]>0x0);if(_0x3bda2d[_0x376f3d(0x166)]===0x0)return _0x376f3d(0x125);if(_0x3bda2d[_0x376f3d(0x166)]<=0x1e)return _0x36661e[_0x376f3d(0x13e)]();const _0x54c0ff=[],_0x52d4f9=[];for(const _0x623870 of _0x3bda2d){const _0x695745=_0x623870[_0x376f3d(0x13e)]();if(_0x695745['startsWith']('total\x20')||_0x695745[_0x376f3d(0x162)]('d')&&_0x695745[_0x376f3d(0x163)]('..'))continue;_0x695745[_0x376f3d(0x11b)]('/')||_0x695745['startsWith']('d')&&_0x695745['includes']('\x20')?_0x54c0ff[_0x376f3d(0x11c)](_0x695745):_0x52d4f9['push'](_0x695745);}const _0x1754bd=[];return _0x54c0ff['length']>0x0&&(_0x54c0ff[_0x376f3d(0x166)]<=0xf?_0x1754bd[_0x376f3d(0x11c)](..._0x54c0ff):(_0x1754bd[_0x376f3d(0x11c)](..._0x54c0ff[_0x376f3d(0x160)](0x0,0xa)),_0x1754bd[_0x376f3d(0x11c)]('...\x20+'+(_0x54c0ff[_0x376f3d(0x166)]-0xa)+_0x376f3d(0x15b)))),_0x52d4f9[_0x376f3d(0x166)]>0x0&&(_0x52d4f9['length']<=0x14?_0x1754bd[_0x376f3d(0x11c)](..._0x52d4f9):(_0x1754bd[_0x376f3d(0x11c)](..._0x52d4f9[_0x376f3d(0x160)](0x0,0xf)),_0x1754bd['push'](_0x376f3d(0x133)+(_0x52d4f9['length']-0xf)+'\x20more\x20files'))),_0x1754bd['push']('\x0a('+_0x54c0ff['length']+_0x376f3d(0x140)+_0x52d4f9[_0x376f3d(0x166)]+_0x376f3d(0x136)),_0x1754bd['join']('\x0a');}function filterTree(_0x43a50a){const _0x585375=a0_0x47f344,_0x31fd4e=_0x43a50a[_0x585375(0x14f)]('\x0a');if(_0x31fd4e[_0x585375(0x166)]<=0x32)return _0x43a50a[_0x585375(0x13e)]();const _0x1883a2=[];let _0x24e165=0x0,_0x115d36=0x0,_0x2968ae=0x0;for(const _0x391b34 of _0x31fd4e){const _0x4da500=_0x391b34['match'](/(\d+)\s+director/),_0x47b444=_0x391b34[_0x585375(0x15c)](/(\d+)\s+file/);if(_0x4da500)_0x2968ae=parseInt(_0x4da500[0x1]);if(_0x47b444)_0x115d36=parseInt(_0x47b444[0x1]);const _0x1e4b5d=(_0x391b34[_0x585375(0x15c)](/^[│├└\s─]+/)||[''])[0x0][_0x585375(0x166)];_0x1e4b5d<=0x4&&(_0x1883a2[_0x585375(0x11c)](_0x391b34),_0x24e165++);}return _0x31fd4e[_0x585375(0x166)]>_0x1883a2[_0x585375(0x166)]&&_0x1883a2[_0x585375(0x11c)]('\x0a...\x20('+_0x2968ae+_0x585375(0x140)+_0x115d36+'\x20files\x20total\x20—\x20deep\x20entries\x20truncated)'),_0x1883a2['join']('\x0a');}function filterCat(_0x896e04,_0x370584=''){const _0x5e328d=a0_0x47f344,_0x1ca7a9=extractFilename(_0x370584);try{if(_0x1ca7a9){const _0x27ec40=filterLockFile(_0x896e04,_0x1ca7a9);if(_0x27ec40)return _0x27ec40;}const _0x47d5c5=filterBinaryOrMinified(_0x896e04,_0x1ca7a9);if(_0x47d5c5)return _0x47d5c5;const _0x248ba0=filterJsonMinify(_0x896e04);if(_0x248ba0)return _0x248ba0;}catch{}const _0x863fbe=_0x896e04['split']('\x0a');if(_0x863fbe[_0x5e328d(0x166)]<=0x64)return _0x896e04;const _0x57a6be=[];return _0x57a6be['push'](..._0x863fbe[_0x5e328d(0x160)](0x0,0x32)),_0x57a6be[_0x5e328d(0x11c)](_0x5e328d(0x10d)+(_0x863fbe['length']-0x50)+_0x5e328d(0x124)),_0x57a6be['push'](..._0x863fbe[_0x5e328d(0x160)](-0x1e)),_0x57a6be[_0x5e328d(0x11c)]('\x0a('+_0x863fbe['length']+'\x20lines\x20total)'),_0x57a6be[_0x5e328d(0x13d)]('\x0a');}function filterGrep(_0x260a45){const _0x1b9f73=a0_0x47f344,_0x4b180f=_0x260a45['split']('\x0a')[_0x1b9f73(0x150)](_0x5c9eca=>_0x5c9eca[_0x1b9f73(0x13e)]()[_0x1b9f73(0x166)]>0x0);if(_0x4b180f[_0x1b9f73(0x166)]===0x0)return _0x1b9f73(0x167);if(_0x4b180f[_0x1b9f73(0x166)]<=0x32)return _0x260a45[_0x1b9f73(0x13e)]();const _0x5142e6={},_0x58b570=[];for(const _0x9af39d of _0x4b180f){const _0x21548d=_0x9af39d[_0x1b9f73(0x11a)](':');if(_0x21548d>0x0&&_0x21548d<0xc8){const _0xa3c7f4=_0x9af39d['substring'](0x0,_0x21548d);if(_0xa3c7f4[_0x1b9f73(0x163)]('/')||_0xa3c7f4['includes']('\x5c')||_0xa3c7f4[_0x1b9f73(0x163)]('.')){if(!_0x5142e6[_0xa3c7f4])_0x5142e6[_0xa3c7f4]=[];_0x5142e6[_0xa3c7f4]['push'](_0x9af39d[_0x1b9f73(0x10a)](_0x21548d+0x1)[_0x1b9f73(0x13e)]());continue;}}_0x58b570[_0x1b9f73(0x11c)](_0x9af39d);}const _0x3e2d18=[],_0xe326a2=Object[_0x1b9f73(0x123)](_0x5142e6);if(_0xe326a2['length']>0x0){const _0x3d3e1f=0x14,_0x20fd4b=_0xe326a2[_0x1b9f73(0x160)](0x0,_0x3d3e1f);for(const _0x465ea8 of _0x20fd4b){const _0x40ee58=_0x5142e6[_0x465ea8];if(_0x40ee58[_0x1b9f73(0x166)]<=0x3)for(const _0x2a1048 of _0x40ee58){_0x3e2d18[_0x1b9f73(0x11c)](_0x465ea8+':\x20'+_0x2a1048);}else _0x3e2d18[_0x1b9f73(0x11c)](_0x465ea8+':\x20'+_0x40ee58[0x0]),_0x3e2d18['push'](_0x465ea8+_0x1b9f73(0x110)+_0x40ee58[_0x1b9f73(0x166)]+_0x1b9f73(0x15a));}_0xe326a2[_0x1b9f73(0x166)]>_0x3d3e1f&&_0x3e2d18[_0x1b9f73(0x11c)](_0x1b9f73(0x133)+(_0xe326a2[_0x1b9f73(0x166)]-_0x3d3e1f)+_0x1b9f73(0x169));}if(_0x58b570[_0x1b9f73(0x166)]>0x0){const _0x21bafc=0x1e;_0x3e2d18['push'](..._0x58b570['slice'](0x0,_0x21bafc)),_0x58b570[_0x1b9f73(0x166)]>_0x21bafc&&_0x3e2d18[_0x1b9f73(0x11c)]('...\x20+'+(_0x58b570[_0x1b9f73(0x166)]-_0x21bafc)+_0x1b9f73(0x164));}const _0x56544d=_0x4b180f[_0x1b9f73(0x166)];return _0x3e2d18['push']('\x0a('+_0x56544d+'\x20matches\x20across\x20'+(_0xe326a2['length']||'?')+_0x1b9f73(0x136)),_0x3e2d18[_0x1b9f73(0x13d)]('\x0a');}function filterFind(_0x133c35){const _0x5716f3=a0_0x47f344,_0x272196=_0x133c35[_0x5716f3(0x14f)]('\x0a')[_0x5716f3(0x150)](_0x2b06cd=>_0x2b06cd[_0x5716f3(0x13e)]()[_0x5716f3(0x166)]>0x0);if(_0x272196['length']===0x0)return _0x5716f3(0x16a);if(_0x272196[_0x5716f3(0x166)]<=0x32)return _0x133c35[_0x5716f3(0x13e)]();const _0x55fd8={};for(const _0x2cc574 of _0x272196){const _0x185415=path[_0x5716f3(0x156)](_0x2cc574[_0x5716f3(0x13e)]())||'.';_0x55fd8[_0x185415]=(_0x55fd8[_0x185415]||0x0)+0x1;}const _0x3c3eb8=Object['entries'](_0x55fd8)[_0x5716f3(0x16f)]((_0x14a63b,_0x2c64d5)=>_0x2c64d5[0x1]-_0x14a63b[0x1]),_0x408e8a=[_0x272196['length']+_0x5716f3(0x14a)+_0x3c3eb8[_0x5716f3(0x166)]+_0x5716f3(0x15e),''],_0xcd2bd7=0x1e;for(const [_0x4a947d,_0x5a523c]of _0x3c3eb8['slice'](0x0,_0xcd2bd7)){_0x408e8a[_0x5716f3(0x11c)]('\x20\x20'+_0x4a947d+_0x5716f3(0x173)+_0x5a523c+_0x5716f3(0x136));}return _0x3c3eb8['length']>_0xcd2bd7&&_0x408e8a[_0x5716f3(0x11c)](_0x5716f3(0x152)+(_0x3c3eb8[_0x5716f3(0x166)]-_0xcd2bd7)+_0x5716f3(0x15b)),_0x408e8a[_0x5716f3(0x13d)]('\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';function
|
|
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';function
|
|
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_0x411755=a0_0x17cd;(function(_0x48b025,_0x25b319){const _0x324e25=a0_0x17cd,_0x45f671=_0x48b025();while(!![]){try{const _0x18f82e=parseInt(_0x324e25(0x14b))/0x1*(-parseInt(_0x324e25(0x123))/0x2)+-parseInt(_0x324e25(0xfe))/0x3*(-parseInt(_0x324e25(0x14f))/0x4)+-parseInt(_0x324e25(0xf6))/0x5+parseInt(_0x324e25(0x114))/0x6+parseInt(_0x324e25(0xfc))/0x7*(parseInt(_0x324e25(0x111))/0x8)+parseInt(_0x324e25(0x109))/0x9+parseInt(_0x324e25(0xdd))/0xa*(parseInt(_0x324e25(0x11c))/0xb);if(_0x18f82e===_0x25b319)break;else _0x45f671['push'](_0x45f671['shift']());}catch(_0x49ef47){_0x45f671['push'](_0x45f671['shift']());}}}(a0_0x1555,0xbbf8d));var __createBinding=this&&this[a0_0x411755(0x108)]||(Object[a0_0x411755(0x12b)]?function(_0x2e3db8,_0x7d2ac8,_0x39da6d,_0x4ece83){const _0x29fff6=a0_0x411755;if(_0x4ece83===undefined)_0x4ece83=_0x39da6d;var _0x88a68f=Object[_0x29fff6(0x14a)](_0x7d2ac8,_0x39da6d);(!_0x88a68f||(_0x29fff6(0x12f)in _0x88a68f?!_0x7d2ac8[_0x29fff6(0x13f)]:_0x88a68f['writable']||_0x88a68f[_0x29fff6(0x103)]))&&(_0x88a68f={'enumerable':!![],'get':function(){return _0x7d2ac8[_0x39da6d];}}),Object['defineProperty'](_0x2e3db8,_0x4ece83,_0x88a68f);}:function(_0x589c1c,_0x5489b4,_0x1e3eb5,_0xb750b0){if(_0xb750b0===undefined)_0xb750b0=_0x1e3eb5;_0x589c1c[_0xb750b0]=_0x5489b4[_0x1e3eb5];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a0_0x411755(0x12b)]?function(_0x2112f0,_0x39c106){const _0x33192e=a0_0x411755;Object[_0x33192e(0x150)](_0x2112f0,'default',{'enumerable':!![],'value':_0x39c106});}:function(_0x30f8e5,_0x27e8f0){const _0x14db31=a0_0x411755;_0x30f8e5[_0x14db31(0x131)]=_0x27e8f0;}),__importStar=this&&this[a0_0x411755(0x132)]||(function(){var _0x2467d3=function(_0x3daa7a){const _0x40bb8d=a0_0x17cd;return _0x2467d3=Object[_0x40bb8d(0x13c)]||function(_0x123b70){const _0x521750=_0x40bb8d;var _0x5ea1b0=[];for(var _0x1ffc6c in _0x123b70)if(Object['prototype']['hasOwnProperty'][_0x521750(0x145)](_0x123b70,_0x1ffc6c))_0x5ea1b0[_0x5ea1b0[_0x521750(0x10b)]]=_0x1ffc6c;return _0x5ea1b0;},_0x2467d3(_0x3daa7a);};return function(_0x51eb68){const _0x192146=a0_0x17cd;if(_0x51eb68&&_0x51eb68[_0x192146(0x13f)])return _0x51eb68;var _0x4f27ad={};if(_0x51eb68!=null){for(var _0x7c79ef=_0x2467d3(_0x51eb68),_0x2fc4e9=0x0;_0x2fc4e9<_0x7c79ef[_0x192146(0x10b)];_0x2fc4e9++)if(_0x7c79ef[_0x2fc4e9]!=='default')__createBinding(_0x4f27ad,_0x51eb68,_0x7c79ef[_0x2fc4e9]);}return __setModuleDefault(_0x4f27ad,_0x51eb68),_0x4f27ad;};}());Object[a0_0x411755(0x150)](exports,a0_0x411755(0x13f),{'value':!![]}),exports[a0_0x411755(0xd6)]=installShims,exports[a0_0x411755(0x128)]=uninstallShims;const fs=__importStar(require('fs')),path=__importStar(require('path')),os=__importStar(require('os')),SHIMMED_COMMANDS=['ls','tree',a0_0x411755(0xf9),a0_0x411755(0x142),a0_0x411755(0xfd),'rg','ruff','git','gh',a0_0x411755(0x104),a0_0x411755(0xda),a0_0x411755(0xdf),a0_0x411755(0xf8),a0_0x411755(0x124),a0_0x411755(0x129),a0_0x411755(0xd9),a0_0x411755(0x144),a0_0x411755(0x127),'pip',a0_0x411755(0x148),'go','find'],PROFILE_MARKER=a0_0x411755(0x130);function getExecSync(){const _0x220824=a0_0x411755;return require(_0x220824(0x13b))[_0x220824(0x117)];}function getExecFileSync(){const _0x3cb2db=a0_0x411755;return require(_0x3cb2db(0x13b))[_0x3cb2db(0xe4)];}function ensureProfileContains(_0x3fda9f,_0x1d22ce,_0x521dfa){const _0x1bd4da=a0_0x411755;try{const _0x4c6c3a=path[_0x1bd4da(0x120)](_0x3fda9f);!fs[_0x1bd4da(0x122)](_0x4c6c3a)&&fs[_0x1bd4da(0x105)](_0x4c6c3a,{'recursive':!![]});if(fs[_0x1bd4da(0x122)](_0x3fda9f)){const _0x35b638=fs[_0x1bd4da(0x11d)](_0x3fda9f,'utf8');if(_0x35b638[_0x1bd4da(0x119)](_0x1d22ce))return;fs[_0x1bd4da(0xf3)](_0x3fda9f,_0x521dfa,'utf8');}else fs[_0x1bd4da(0xe0)](_0x3fda9f,_0x521dfa,_0x1bd4da(0x141));}catch{}}function removeProfileBlock(_0x5b9c23,_0x51e33e){const _0x13207f=a0_0x411755;try{if(!fs['existsSync'](_0x5b9c23))return;const _0x431262=fs[_0x13207f(0x11d)](_0x5b9c23,_0x13207f(0x141));if(!_0x431262[_0x13207f(0x119)](_0x51e33e))return;const _0x3f4c70=_0x431262['split']('\x0a'),_0x1276da=[];let _0x5ad728=![];for(let _0xe7f9fa=0x0;_0xe7f9fa<_0x3f4c70['length'];_0xe7f9fa++){if(_0x3f4c70[_0xe7f9fa][_0x13207f(0x119)](_0x51e33e)){_0x5ad728=!![];continue;}if(_0x5ad728){_0x5ad728=![];continue;}_0x1276da['push'](_0x3f4c70[_0xe7f9fa]);}const _0x46a9eb=_0x1276da[_0x13207f(0xef)]('\x0a')[_0x13207f(0x134)](/\n{3,}/g,'\x0a\x0a');fs[_0x13207f(0xe0)](_0x5b9c23,_0x46a9eb,'utf8');}catch{}}function a0_0x17cd(_0x584a66,_0x51b747){_0x584a66=_0x584a66-0xd5;const _0x155572=a0_0x1555();let _0x17cdfa=_0x155572[_0x584a66];return _0x17cdfa;}function collectPowerShellProfiles(){const _0x370cc9=a0_0x411755,_0x46745c=getExecSync(),_0x37a65a=[],_0x210a44=[[_0x370cc9(0x14c),_0x370cc9(0xf5)],[_0x370cc9(0x14c),'$PROFILE.CurrentUserAllHosts']];try{_0x46745c(_0x370cc9(0xe6),{'stdio':_0x370cc9(0xf2)}),_0x210a44[_0x370cc9(0x102)](['pwsh',_0x370cc9(0x101)]);}catch{}for(const [_0x4a0154,_0x15bc95]of _0x210a44){try{const _0x4222c6=_0x46745c(_0x4a0154+_0x370cc9(0x11b)+_0x15bc95+'\x22',{'encoding':'utf8'})['trim']();_0x4222c6&&!_0x37a65a[_0x370cc9(0xd7)](_0x9afcb2=>_0x9afcb2[_0x370cc9(0x12c)]()===_0x4222c6[_0x370cc9(0x12c)]())&&_0x37a65a[_0x370cc9(0x102)](_0x4222c6);}catch{}}return _0x37a65a;}function getBashProfilesWindows(){const _0xef518a=a0_0x411755,_0x37177e=os[_0xef518a(0x135)]();return[_0xef518a(0xfb),_0xef518a(0x140)][_0xef518a(0x121)](_0x2862b1=>path['join'](_0x37177e,_0x2862b1));}function a0_0x1555(){const _0x264ceb=['read','-NoProfile','docker','call',':$PATH\x22\x0a','.zshrc','pip3','platform','getOwnPropertyDescriptor','58042yHCkfi','powershell','\x20\x20trim\x20','trim','8BZEMML','defineProperty','$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);','installShims','some','\x20commands.\x0a\x0a','kubectl','cargo','HKCU:\x5cSoftware\x5cMicrosoft\x5cCommand\x20Processor',';=%\x22','216190wKcyvD','\x0a$env:PATH\x20=\x20\x22','npm','writeFileSync','-Command',';%PATH%\x22','\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20Stop).AutoRun\x20}\x20catch\x20{\x20\x27\x27\x20}','execFileSync','\x20@args\x20}\x0a','pwsh\x20-NoProfile\x20-Command\x20\x22exit\x200\x22','\x20\x22$@\x22;\x20fi\x0a','\x20&\x20','[WARNING]\x20Could\x20not\x20automatically\x20update\x20your\x20system\x20PATH.\x20','Please\x20add\x20the\x20following\x20path\x20to\x20the\x20front\x20of\x20your\x20User\x20PATH\x20environment\x20variable\x20manually:\x0a\x20\x20','readdirSync','\x27,\x20\x27User\x27)','.trimprompt','\x20@args\x20}\x20else\x20{\x20&\x20','join','if\x20exist\x20\x22%~dp0..\x5c..\x5cAppData\x5cRoaming\x5cnpm\x5ctrim.cmd\x22','\x0a#\x20','ignore','appendFileSync','pipe','$PROFILE.CurrentUserCurrentHost','4787190BgXqfW','powershell.exe','pnpm','cat','\x20%*','.bashrc','77JCjSdy','grep','418377mFeCsJ','Failed\x20to\x20uninstall\x20shims:\x20','message','$PROFILE.CurrentUserAllHosts','push','configurable','glab','mkdirSync','win32','if\x20(Get-Command\x20trim\x20-ErrorAction\x20SilentlyContinue)\x20{\x20&\x20trim\x20','__createBinding','2135592BoHLAU','if\x20exist\x20\x22','length','try\x20{\x20(Get-ItemProperty\x20-Path\x20\x27','\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20SilentlyContinue','rmdirSync',';\x22\x20+\x20$env:PATH\x0a','@echo\x20off','991856OWyEvQ','\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','\x27\x20-Name\x20AutoRun\x20-Value\x20\x27','2225490KiAnag','\x22\x20set\x20\x22PATH=','shims','execSync','New-Item\x20-Path\x20\x27','includes','filter','\x20-NoProfile\x20-Command\x20\x22','88UIJktX','readFileSync',':||g\x22);\x20exec\x20env\x20PATH=\x22$CLEAN_PATH\x22\x20','755','dirname','map','existsSync','24McrrOX','npx','split','unlinkSync','pytest','uninstallShims','yarn',')\x20else\x20(','create','toLowerCase','.cmd','\x20\x20set\x20\x22PATH=%PATH:','get','TrimPrompt\x20Shims\x20PATH','default','__importStar','Remove-ItemProperty\x20-Path\x20\x27','replace','homedir','TrimPrompt\x20shims\x20fully\x20uninstalled.\x20All\x20PATH\x20modifications,\x20shell\x20profiles,\x20and\x20registry\x20entries\x20have\x20been\x20cleaned\x20up.','[Environment]::GetEnvironmentVariable(\x27PATH\x27,\x20\x27User\x27)','#!/bin/sh\x0aif\x20command\x20-v\x20trim\x20>/dev/null\x202>&1;\x20then\x20exec\x20trim\x20','.profile',':$PATH\x22','child_process','getOwnPropertyNames','powershell\x20-NoProfile\x20-Command\x20\x22','\x20\x22$@\x22;\x20else\x20CLEAN_PATH=$(echo\x20\x22$PATH\x22\x20|\x20sed\x20\x22s|','__esModule','.bash_profile','utf8'];a0_0x1555=function(){return _0x264ceb;};return a0_0x1555();}function getBroadcastCommand(){const _0x2e72d1=a0_0x411755;return _0x2e72d1(0xd5);}function installShims(){const _0x4a35c1=a0_0x411755,_0x4d0f28=path[_0x4a35c1(0xef)](os['homedir'](),_0x4a35c1(0xed),'shims');try{!fs[_0x4a35c1(0x122)](_0x4d0f28)&&fs[_0x4a35c1(0x105)](_0x4d0f28,{'recursive':!![]});const _0x182597=os[_0x4a35c1(0x149)]()===_0x4a35c1(0x106);for(const _0x111748 of SHIMMED_COMMANDS){if(_0x182597){const _0x4d8e87=path['join'](_0x4d0f28,_0x111748+_0x4a35c1(0x12d)),_0x437341=process.env.APPDATA?path[_0x4a35c1(0xef)](process.env.APPDATA,_0x4a35c1(0xdf)):'',_0x1556f5=_0x437341?_0x4a35c1(0x10a)+path['join'](_0x437341,'trim.cmd')+'\x22':_0x4a35c1(0xf0),_0x1f445a=[_0x4a35c1(0x110),_0x1556f5+'\x20(',_0x4a35c1(0x14d)+_0x111748+'\x20%*',_0x4a35c1(0x12a),_0x4a35c1(0x12e)+_0x4d0f28+_0x4a35c1(0xdc),'\x20\x20'+_0x111748+_0x4a35c1(0xfa),')'][_0x4a35c1(0xef)]('\x0d\x0a')+'\x0d\x0a';fs['writeFileSync'](_0x4d8e87,_0x1f445a,'utf8');const _0x1890b1=path[_0x4a35c1(0xef)](_0x4d0f28,_0x111748+'.ps1'),_0x273cdb=_0x4a35c1(0x107)+_0x111748+_0x4a35c1(0xee)+_0x111748+_0x4a35c1(0xe5);fs[_0x4a35c1(0xe0)](_0x1890b1,_0x273cdb,'utf8');const _0x3e8461=path['join'](_0x4d0f28,_0x111748),_0x22cfd8=_0x4d0f28[_0x4a35c1(0x134)](/\\/g,'/')[_0x4a35c1(0x134)](/^([A-Za-z]):/,(_0xc59b1,_0x57eaee)=>'/'+_0x57eaee[_0x4a35c1(0x12c)]()),_0x26cd87=_0x4a35c1(0x138)+_0x111748+_0x4a35c1(0x13e)+_0x22cfd8+_0x4a35c1(0x11e)+_0x111748+_0x4a35c1(0xe7);fs['writeFileSync'](_0x3e8461,_0x26cd87,_0x4a35c1(0x141));}else{const _0x63bef1=path['join'](_0x4d0f28,_0x111748),_0x285b4b=_0x4a35c1(0x138)+_0x111748+_0x4a35c1(0x112)+_0x111748+'\x20\x22$@\x22;\x20fi\x0a';fs[_0x4a35c1(0xe0)](_0x63bef1,_0x285b4b,_0x4a35c1(0x141)),fs['chmodSync'](_0x63bef1,_0x4a35c1(0x11f));}}let _0x48d33b=![],_0x1171b7='';if(_0x182597)try{const _0x304faf=getExecSync(),_0x754dd=_0x4a35c1(0xf1)+PROFILE_MARKER+_0x4a35c1(0xde)+_0x4d0f28+_0x4a35c1(0x10f),_0x4cf0f9=collectPowerShellProfiles();for(const _0x292e07 of _0x4cf0f9){ensureProfileContains(_0x292e07,_0x4d0f28,_0x754dd);}try{const _0x5d5666=getExecFileSync(),_0x1b3263=_0x4a35c1(0x10a)+_0x4d0f28+_0x4a35c1(0x115)+_0x4d0f28+_0x4a35c1(0xe2),_0xff5cad=_0x4a35c1(0xdb);let _0x249b00='';try{const _0x574efb=_0x4a35c1(0x10c)+_0xff5cad+_0x4a35c1(0xe3);_0x249b00=_0x5d5666(_0x4a35c1(0xf7),[_0x4a35c1(0x143),_0x4a35c1(0xe1),_0x574efb],{'encoding':_0x4a35c1(0x141),'stdio':[_0x4a35c1(0xf4),_0x4a35c1(0xf4),_0x4a35c1(0xf2)]})[_0x4a35c1(0x14e)]();}catch{}if(!_0x249b00[_0x4a35c1(0x119)](_0x4d0f28)){const _0x5d80d4=_0x249b00?_0x249b00+_0x4a35c1(0xe8)+_0x1b3263:_0x1b3263,_0x515d63=_0x4a35c1(0x118)+_0xff5cad+'\x27\x20-Force\x20|\x20Out-Null;\x20Set-ItemProperty\x20-Path\x20\x27'+_0xff5cad+_0x4a35c1(0x113)+_0x5d80d4+'\x27';_0x5d5666('powershell.exe',[_0x4a35c1(0x143),_0x4a35c1(0xe1),_0x515d63],{'stdio':_0x4a35c1(0xf2)});}}catch{}try{const _0x8a33eb=_0x4d0f28[_0x4a35c1(0x134)](/\\/g,'/')[_0x4a35c1(0x134)](/^([A-Za-z]):/,(_0x586ba4,_0x32bca1)=>'/'+_0x32bca1['toLowerCase']()),_0x3335d8=_0x4a35c1(0xf1)+PROFILE_MARKER+'\x0aexport\x20PATH=\x22'+_0x8a33eb+_0x4a35c1(0x146),_0x4f2203=getBashProfilesWindows();let _0xd7c839=![];for(const _0x402ab5 of _0x4f2203){fs['existsSync'](_0x402ab5)&&(ensureProfileContains(_0x402ab5,_0x8a33eb,_0x3335d8),_0xd7c839=!![]);}!_0xd7c839&&ensureProfileContains(_0x4f2203[0x0],_0x8a33eb,_0x3335d8);}catch{}const _0x2f3113=_0x4a35c1(0x137),_0x5bad75=_0x304faf(_0x4a35c1(0x13d)+_0x2f3113+'\x22',{'encoding':_0x4a35c1(0x141),'stdio':[_0x4a35c1(0xf4),_0x4a35c1(0xf4),_0x4a35c1(0xf2)]})['trim']();if(!_0x5bad75[_0x4a35c1(0x119)](_0x4d0f28)){const _0xdee029=_0x4d0f28+';'+_0x5bad75,_0x503dc1=_0xdee029[_0x4a35c1(0x134)](/'/g,'\x27\x27'),_0x577bad='[Environment]::SetEnvironmentVariable(\x27PATH\x27,\x20\x27'+_0x503dc1+_0x4a35c1(0xec);_0x304faf('powershell\x20-NoProfile\x20-Command\x20\x22'+_0x577bad+';\x20'+getBroadcastCommand()+'\x22',{'stdio':_0x4a35c1(0xf2)});}const _0x2d24d8=path[_0x4a35c1(0xef)](process.env.APPDATA||'',_0x4a35c1(0xdf),'trim.ps1');if(fs[_0x4a35c1(0x122)](_0x2d24d8))try{fs[_0x4a35c1(0x126)](_0x2d24d8);}catch{}_0x48d33b=!![];}catch(_0x108e68){_0x1171b7=_0x4a35c1(0xea)+_0x4d0f28;}else try{const _0x29d9dd='export\x20PATH=\x22'+_0x4d0f28+_0x4a35c1(0x146),_0x3a5d98=os['homedir'](),_0x1ebbfd=[_0x4a35c1(0xfb),_0x4a35c1(0x147),_0x4a35c1(0x140),_0x4a35c1(0x139)];let _0x4c9853=![];for(const _0x140405 of _0x1ebbfd){const _0x492b74=path[_0x4a35c1(0xef)](_0x3a5d98,_0x140405);fs[_0x4a35c1(0x122)](_0x492b74)&&(ensureProfileContains(_0x492b74,_0x4d0f28,_0x4a35c1(0xf1)+PROFILE_MARKER+'\x0a'+_0x29d9dd),_0x4c9853=!![]);}if(!_0x4c9853){const _0x460b43=path[_0x4a35c1(0xef)](_0x3a5d98,_0x4a35c1(0xfb));ensureProfileContains(_0x460b43,_0x4d0f28,_0x4a35c1(0xf1)+PROFILE_MARKER+'\x0a'+_0x29d9dd);}_0x48d33b=!![];}catch(_0x2f2eec){_0x1171b7='Please\x20add\x20this\x20to\x20your\x20shell\x20profile\x20(~/.bashrc,\x20~/.zshrc)\x20manually:\x0a\x20\x20export\x20PATH=\x22'+_0x4d0f28+_0x4a35c1(0x13a);}const _0x24ee8c='TrimPrompt\x20shims\x20successfully\x20installed\x20for\x20'+SHIMMED_COMMANDS[_0x4a35c1(0x10b)]+_0x4a35c1(0xd8),_0x50738c=_0x48d33b?_0x24ee8c+'[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.':_0x24ee8c+_0x4a35c1(0xe9)+_0x1171b7;return{'success':!![],'pathDir':_0x4d0f28,'message':_0x50738c};}catch(_0x1b6ca5){return{'success':![],'pathDir':_0x4d0f28,'message':'Failed\x20to\x20install\x20shims:\x20'+_0x1b6ca5['message']};}}function uninstallShims(){const _0x1ce378=a0_0x411755,_0x38aa0c=path[_0x1ce378(0xef)](os['homedir'](),_0x1ce378(0xed),_0x1ce378(0x116)),_0x56db30=os['platform']()===_0x1ce378(0x106);try{if(_0x56db30){const _0x10ea0d=getExecSync();try{const _0x4b51bb=getExecFileSync(),_0x450c5f='HKCU:\x5cSoftware\x5cMicrosoft\x5cCommand\x20Processor',_0xabc2fb=_0x1ce378(0x10c)+_0x450c5f+_0x1ce378(0xe3),_0x16edb4=_0x4b51bb(_0x1ce378(0xf7),[_0x1ce378(0x143),_0x1ce378(0xe1),_0xabc2fb],{'encoding':_0x1ce378(0x141),'stdio':[_0x1ce378(0xf4),_0x1ce378(0xf4),_0x1ce378(0xf2)]})[_0x1ce378(0x14e)]();if(_0x16edb4[_0x1ce378(0x119)](_0x38aa0c)){const _0x3d55c4=_0x16edb4[_0x1ce378(0x125)](_0x1ce378(0xe8))[_0x1ce378(0x11a)](_0x4361f4=>!_0x4361f4[_0x1ce378(0x119)](_0x38aa0c));if(_0x3d55c4['length']===0x0){const _0x28cf49=_0x1ce378(0x133)+_0x450c5f+_0x1ce378(0x10d);_0x4b51bb(_0x1ce378(0xf7),[_0x1ce378(0x143),'-Command',_0x28cf49],{'stdio':_0x1ce378(0xf2)});}else{const _0x511ed7=_0x3d55c4['join'](_0x1ce378(0xe8)),_0x2dfc28='Set-ItemProperty\x20-Path\x20\x27'+_0x450c5f+'\x27\x20-Name\x20AutoRun\x20-Value\x20\x27'+_0x511ed7+'\x27';_0x4b51bb(_0x1ce378(0xf7),['-NoProfile',_0x1ce378(0xe1),_0x2dfc28],{'stdio':'ignore'});}}}catch{}try{const _0x14a02f=collectPowerShellProfiles();for(const _0x493797 of _0x14a02f){removeProfileBlock(_0x493797,PROFILE_MARKER);}}catch{}try{for(const _0x162402 of getBashProfilesWindows()){removeProfileBlock(_0x162402,PROFILE_MARKER);}}catch{}try{const _0x22a33c='[Environment]::GetEnvironmentVariable(\x27PATH\x27,\x20\x27User\x27)',_0x1efe78=_0x10ea0d(_0x1ce378(0x13d)+_0x22a33c+'\x22',{'encoding':_0x1ce378(0x141),'stdio':['pipe','pipe','ignore']})[_0x1ce378(0x14e)]();if(_0x1efe78[_0x1ce378(0x119)](_0x38aa0c)){const _0xbe310=_0x1efe78['split'](';')[_0x1ce378(0x11a)](_0x22d68b=>_0x22d68b[_0x1ce378(0x14e)]()[_0x1ce378(0x12c)]()!==_0x38aa0c[_0x1ce378(0x12c)]())['join'](';'),_0xf8ae5=_0xbe310[_0x1ce378(0x134)](/'/g,'\x27\x27'),_0x1888ed='[Environment]::SetEnvironmentVariable(\x27PATH\x27,\x20\x27'+_0xf8ae5+_0x1ce378(0xec);_0x10ea0d(_0x1ce378(0x13d)+_0x1888ed+';\x20'+getBroadcastCommand()+'\x22',{'stdio':_0x1ce378(0xf2)});}}catch{}}else{const _0x320945=os[_0x1ce378(0x135)](),_0x3736a9=[_0x1ce378(0xfb),_0x1ce378(0x147),_0x1ce378(0x140),_0x1ce378(0x139)];for(const _0x27fd8e of _0x3736a9){removeProfileBlock(path[_0x1ce378(0xef)](_0x320945,_0x27fd8e),PROFILE_MARKER);}}if(fs[_0x1ce378(0x122)](_0x38aa0c)){const _0xe9ee7f=fs[_0x1ce378(0xeb)](_0x38aa0c);for(const _0x2201bd of _0xe9ee7f){fs[_0x1ce378(0x126)](path[_0x1ce378(0xef)](_0x38aa0c,_0x2201bd));}fs[_0x1ce378(0x10e)](_0x38aa0c);}return{'success':!![],'message':_0x1ce378(0x136)};}catch(_0x3aacee){return{'success':![],'message':_0x1ce378(0xff)+_0x3aacee[_0x1ce378(0x100)]};}}
|
|
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.');
|