trimprompt 1.0.25 → 1.0.26
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 +1 -1
- package/redactor.js +1 -1
- package/seed.js +1 -1
- package/shims.js +1 -1
- package/simulate.js +1 -1
- package/sync.js +1 -1
- package/tracker.js +1 -1
package/filters/python.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a0_0x27e4(_0x15fbce,_0x5edf5d){_0x15fbce=_0x15fbce-0x12c;const _0x7e0e28=a0_0x7e0e();let _0x27e4e3=_0x7e0e28[_0x15fbce];return _0x27e4e3;}const a0_0x22cc80=a0_0x27e4;function a0_0x7e0e(){const _0x3882d4=['filterPytest','\x20passed','filter','2IhcGOF','===\x20short\x20test\x20summary\x20info\x20===','===\x20FAILURES\x20===','trim','___','Requirement\x20already\x20satisfied','failed','Using\x20cached','5553268kOkAzm','Collecting','defineProperty','===\x20ERRORS\x20===','\x0aFailures:','startsWith','join','length','4eNpsvJ','Downloading','7722063QgIUyB','\x20\x20\x20\x20','\x20more\x20failures\x20truncated','\x20xfailed','\x20xpassed\x20(warning!)','split','slice','includes','10257216PBijNS','784422oUAZFb','\x20\x20...\x20+','.\x20[FAIL]\x20','\x20failed','===','2094970xkmozF','.py:','\x20\x20\x20\x20...\x20(','\x20lines\x20of\x20stacktrace\x20truncated)','415535ewxluE','push','2329016VRIoYe','replace','match'];a0_0x7e0e=function(){return _0x3882d4;};return a0_0x7e0e();}(function(_0x5099e4,_0x2cebbd){const _0x1c9fd6=a0_0x27e4,_0x75ba76=_0x5099e4();while(!![]){try{const _0x43034b=-parseInt(_0x1c9fd6(0x13a))/0x1+-parseInt(_0x1c9fd6(0x142))/0x2*(-parseInt(_0x1c9fd6(0x131))/0x3)+parseInt(_0x1c9fd6(0x152))/0x4*(-parseInt(_0x1c9fd6(0x136))/0x5)+parseInt(_0x1c9fd6(0x130))/0x6+-parseInt(_0x1c9fd6(0x14a))/0x7+-parseInt(_0x1c9fd6(0x13c))/0x8+parseInt(_0x1c9fd6(0x154))/0x9;if(_0x43034b===_0x2cebbd)break;else _0x75ba76['push'](_0x75ba76['shift']());}catch(_0x5765e0){_0x75ba76['push'](_0x75ba76['shift']());}}}(a0_0x7e0e,0xde2d5));Object[a0_0x22cc80(0x14c)](exports,'__esModule',{'value':!![]}),exports[a0_0x22cc80(0x13f)]=filterPytest,exports['filterPipInstall']=filterPipInstall;function filterPytest(_0x4a7636){const _0x39c97c=a0_0x22cc80,_0x2657ba=_0x4a7636[_0x39c97c(0x12d)]('\x0a');let _0x49bc40=0x0,_0x35a1e0=0x0,_0x3a662a=0x0,_0x4a3082=0x0,_0x180961=0x0;const _0x1b750e=[];let _0x55641b=[],_0x30ae47=![];for(const _0x3cf3d9 of _0x2657ba){const _0x31cc1c=_0x3cf3d9['trim']();if(_0x31cc1c[_0x39c97c(0x14f)](_0x39c97c(0x144))||_0x31cc1c['startsWith'](_0x39c97c(0x14d))){_0x30ae47=!![];continue;}else(_0x31cc1c[_0x39c97c(0x14f)](_0x39c97c(0x143))||_0x31cc1c[_0x39c97c(0x14f)]('===')&&_0x31cc1c[_0x39c97c(0x12f)]('passed'))&&(_0x30ae47=![],_0x55641b['length']>0x0&&(_0x1b750e[_0x39c97c(0x13b)](_0x55641b),_0x55641b=[]));if(_0x30ae47){if(_0x31cc1c[_0x39c97c(0x14f)](_0x39c97c(0x146)))_0x55641b[_0x39c97c(0x151)]>0x0&&(_0x1b750e['push'](_0x55641b),_0x55641b=[]),_0x55641b['push'](_0x31cc1c);else _0x31cc1c['length']>0x0&&_0x55641b['push'](_0x3cf3d9);continue;}if(_0x31cc1c[_0x39c97c(0x14f)](_0x39c97c(0x135))&&_0x31cc1c[_0x39c97c(0x12f)]('\x20in\x20')){const _0x3eb241=_0x31cc1c[_0x39c97c(0x13e)](/(\d+)\s+passed/),_0x37f9ac=_0x31cc1c['match'](/(\d+)\s+failed/),_0x2ce58d=_0x31cc1c[_0x39c97c(0x13e)](/(\d+)\s+skipped/),_0x55cfd7=_0x31cc1c['match'](/(\d+)\s+xfailed/),_0x14e81d=_0x31cc1c['match'](/(\d+)\s+xpassed/);if(_0x3eb241)_0x49bc40=parseInt(_0x3eb241[0x1]);if(_0x37f9ac)_0x35a1e0=parseInt(_0x37f9ac[0x1]);if(_0x2ce58d)_0x3a662a=parseInt(_0x2ce58d[0x1]);if(_0x55cfd7)_0x4a3082=parseInt(_0x55cfd7[0x1]);if(_0x14e81d)_0x180961=parseInt(_0x14e81d[0x1]);}}_0x55641b[_0x39c97c(0x151)]>0x0&&_0x1b750e[_0x39c97c(0x13b)](_0x55641b);if(_0x49bc40===0x0&&_0x35a1e0===0x0&&_0x3a662a===0x0&&_0x4a3082===0x0&&_0x180961===0x0){if(_0x4a7636[_0x39c97c(0x12f)]('passed')&&!_0x4a7636['includes'](_0x39c97c(0x148)))return'Pytest:\x20All\x20tests\x20passed';return _0x4a7636;}if(_0x35a1e0===0x0&&_0x49bc40>0x0&&_0x3a662a===0x0&&_0x4a3082===0x0&&_0x180961===0x0)return'Pytest:\x20'+_0x49bc40+_0x39c97c(0x140);const _0x166b0d=[];_0x166b0d[_0x39c97c(0x13b)]('Pytest:\x20'+_0x49bc40+_0x39c97c(0x140));if(_0x35a1e0>0x0)_0x166b0d[_0x39c97c(0x13b)](_0x35a1e0+_0x39c97c(0x134));if(_0x3a662a>0x0)_0x166b0d['push'](_0x3a662a+'\x20skipped');if(_0x4a3082>0x0)_0x166b0d[_0x39c97c(0x13b)](_0x4a3082+_0x39c97c(0x157));if(_0x180961>0x0)_0x166b0d[_0x39c97c(0x13b)](_0x180961+_0x39c97c(0x12c));const _0x338383=[_0x166b0d[_0x39c97c(0x150)](',\x20')];if(_0x1b750e[_0x39c97c(0x151)]>0x0){_0x338383[_0x39c97c(0x13b)](_0x39c97c(0x14e));const _0x7ed080=0x3,_0x11e0d1=_0x1b750e[_0x39c97c(0x12e)](0x0,_0x7ed080);for(let _0x577828=0x0;_0x577828<_0x11e0d1['length'];_0x577828++){const _0x48b571=_0x11e0d1[_0x577828],_0x4770bd=_0x48b571[0x0][_0x39c97c(0x13d)](/_/g,'')[_0x39c97c(0x145)]();_0x338383[_0x39c97c(0x13b)]('\x20\x20'+(_0x577828+0x1)+_0x39c97c(0x133)+_0x4770bd);const _0x11df76=_0x48b571[_0x39c97c(0x12e)](0x1),_0x1b0fab=_0x11df76[_0x39c97c(0x141)](_0x3b7e72=>{const _0x559b8d=_0x39c97c,_0x1e29b5=_0x3b7e72[_0x559b8d(0x145)]();return _0x1e29b5['startsWith']('>')||_0x1e29b5[_0x559b8d(0x14f)]('E\x20\x20\x20')||_0x1e29b5[_0x559b8d(0x12f)](_0x559b8d(0x137))||_0x1e29b5[_0x559b8d(0x12f)]('AssertionError:');});for(const _0x5fc798 of _0x1b0fab[_0x39c97c(0x12e)](0x0,0x8)){_0x338383[_0x39c97c(0x13b)](_0x39c97c(0x155)+_0x5fc798);}_0x1b0fab[_0x39c97c(0x151)]>0x8&&_0x338383[_0x39c97c(0x13b)](_0x39c97c(0x138)+(_0x1b0fab[_0x39c97c(0x151)]-0x8)+_0x39c97c(0x139));}_0x1b750e[_0x39c97c(0x151)]>_0x7ed080&&_0x338383[_0x39c97c(0x13b)](_0x39c97c(0x132)+(_0x1b750e['length']-_0x7ed080)+_0x39c97c(0x156));}return _0x338383[_0x39c97c(0x150)]('\x0a');}function filterPipInstall(_0x4a1299){const _0x3c3dc7=a0_0x22cc80,_0x50bd94=_0x4a1299['split']('\x0a'),_0x2b8e92=[];for(const _0x2e0ce2 of _0x50bd94){const _0x2e0fd2=_0x2e0ce2[_0x3c3dc7(0x145)]();_0x2e0fd2[_0x3c3dc7(0x14f)]('Successfully\x20installed')&&_0x2b8e92['push'](_0x2e0fd2);}if(_0x2b8e92[_0x3c3dc7(0x151)]>0x0)return _0x2b8e92['join']('\x0a');return _0x50bd94[_0x3c3dc7(0x141)](_0xbf4a9e=>{const _0x13e899=_0x3c3dc7,_0x5304db=_0xbf4a9e[_0x13e899(0x145)]();return!_0x5304db[_0x13e899(0x14f)](_0x13e899(0x14b))&&!_0x5304db['startsWith'](_0x13e899(0x153))&&!_0x5304db[_0x13e899(0x12f)](_0x13e899(0x149))&&!_0x5304db[_0x13e899(0x14f)](_0x13e899(0x147));})[_0x3c3dc7(0x150)]('\x0a')[_0x3c3dc7(0x145)]();}
|
package/filters/rust.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function a0_0x203d(_0x3b3940,_0x358226){_0x3b3940=_0x3b3940-0x18e;const _0x1bc985=a0_0x1bc9();let _0x203dcb=_0x1bc985[_0x3b3940];return _0x203dcb;}function a0_0x1bc9(){const _0x58bd0f=['\x20failed,\x20','----\x20failures\x20----','left:','failures:','16404MrVpZF','\x20warnings\x20—\x20run\x20cargo\x20clippy\x20for\x20details)','panicked','2LzClbn','length','Cargo:\x20','warning[','Cargo\x20test:\x20','match','slice','test\x20result:','Cargo\x20test:\x20all\x20tests\x20passed','\x20more\x20errors','includes','5qvwfpA','\x20errors,\x20','\x20\x20\x20\x20','35VEYFnY','652131RSAgHv','938250PZlUOV','filterCargoBuild','Cargo:\x20compiled\x20','endsWith','3410168rNXxzW','\x20passed','defineProperty','962559pcKxUJ','401329OSkSsN','filter','warning:','48BYfxTI','error:','1292110Ygdylb','\x20crates\x20successfully','20053yMqMxM','assert','thread','\x20----','min','\x20warnings','\x0aErrors:','test\x20result:\x20ok','\x20ignored','replace','push','join','right:','split','trim','startsWith','\x20\x20...\x20+','Compiling\x20'];a0_0x1bc9=function(){return _0x58bd0f;};return a0_0x1bc9();}const a0_0x2e5b8d=a0_0x203d;(function(_0xeeb7fb,_0x13f6eb){const _0x31c048=a0_0x203d,_0x58643c=_0xeeb7fb();while(!![]){try{const _0x4c0183=parseInt(_0x31c048(0x1b1))/0x1*(-parseInt(_0x31c048(0x199))/0x2)+-parseInt(_0x31c048(0x1b0))/0x3+parseInt(_0x31c048(0x1ad))/0x4*(-parseInt(_0x31c048(0x1a4))/0x5)+parseInt(_0x31c048(0x1a9))/0x6*(-parseInt(_0x31c048(0x1a7))/0x7)+parseInt(_0x31c048(0x1b4))/0x8*(parseInt(_0x31c048(0x1a8))/0x9)+-parseInt(_0x31c048(0x1b6))/0xa+-parseInt(_0x31c048(0x1b8))/0xb*(-parseInt(_0x31c048(0x196))/0xc);if(_0x4c0183===_0x13f6eb)break;else _0x58643c['push'](_0x58643c['shift']());}catch(_0x1cfd8a){_0x58643c['push'](_0x58643c['shift']());}}}(a0_0x1bc9,0x6ba99));Object[a0_0x2e5b8d(0x1af)](exports,'__esModule',{'value':!![]}),exports['filterCargoTest']=filterCargoTest,exports[a0_0x2e5b8d(0x1aa)]=filterCargoBuild;function filterCargoTest(_0x5345e3){const _0xe7190d=a0_0x2e5b8d,_0x5dd453=_0x5345e3['split']('\x0a');let _0x55285c=0x0,_0x316fe6=0x0,_0x2190b0=0x0,_0x387869=0x0;const _0x3b7065=[];let _0x5b02bd=![],_0x380174=[];for(const _0x45df5d of _0x5dd453){const _0x3664b1=_0x45df5d[_0xe7190d(0x18e)](),_0x296460=_0x3664b1[_0xe7190d(0x19e)](/test result:\s*(\w+)\.\s*(\d+)\s+passed;\s*(\d+)\s+failed;\s*(\d+)\s+ignored;\s*(\d+)\s+measured/);if(_0x296460){_0x55285c+=parseInt(_0x296460[0x2]),_0x316fe6+=parseInt(_0x296460[0x3]),_0x2190b0+=parseInt(_0x296460[0x4]),_0x387869+=parseInt(_0x296460[0x5]);continue;}if(_0x3664b1===_0xe7190d(0x195)||_0x3664b1===_0xe7190d(0x193)){_0x5b02bd=!![];continue;}if(_0x5b02bd){if(_0x3664b1[_0xe7190d(0x18f)]('----\x20')&&_0x3664b1[_0xe7190d(0x1ac)](_0xe7190d(0x1bb))){if(_0x380174['length']>0x0)_0x3b7065[_0xe7190d(0x1c2)](_0x380174[_0xe7190d(0x1c3)]('\x0a'));_0x380174=[_0x3664b1[_0xe7190d(0x1c1)](/^-+\s*/,'')['replace'](/\s*-+$/,'')];}else{if(_0x3664b1==='failures:'||_0x3664b1[_0xe7190d(0x18f)](_0xe7190d(0x1a0))){if(_0x380174[_0xe7190d(0x19a)]>0x0)_0x3b7065[_0xe7190d(0x1c2)](_0x380174[_0xe7190d(0x1c3)]('\x0a'));_0x380174=[],_0x5b02bd=![];}else _0x3664b1[_0xe7190d(0x19a)]>0x0&&_0x380174[_0xe7190d(0x1c2)](_0x45df5d);}}}if(_0x380174[_0xe7190d(0x19a)]>0x0)_0x3b7065[_0xe7190d(0x1c2)](_0x380174[_0xe7190d(0x1c3)]('\x0a'));if(_0x55285c===0x0&&_0x316fe6===0x0&&_0x2190b0===0x0){if(_0x5345e3['includes'](_0xe7190d(0x1bf)))return _0xe7190d(0x1a1);return _0x5345e3;}if(_0x316fe6===0x0){const _0xcc7645=['Cargo\x20test:\x20'+_0x55285c+_0xe7190d(0x1ae)];if(_0x2190b0>0x0)_0xcc7645[_0xe7190d(0x1c2)](_0x2190b0+_0xe7190d(0x1c0));return _0xcc7645[_0xe7190d(0x1c3)](',\x20');}const _0x43f5ab=[_0xe7190d(0x19d)+_0x55285c+'\x20passed,\x20'+_0x316fe6+_0xe7190d(0x192)+_0x2190b0+_0xe7190d(0x1c0)];if(_0x3b7065[_0xe7190d(0x19a)]>0x0){_0x43f5ab[_0xe7190d(0x1c2)]('\x0aFailures:');const _0x414355=0x3;for(let _0x1067f6=0x0;_0x1067f6<Math[_0xe7190d(0x1bc)](_0x3b7065[_0xe7190d(0x19a)],_0x414355);_0x1067f6++){const _0x540c69=_0x3b7065[_0x1067f6]['split']('\x0a');_0x43f5ab[_0xe7190d(0x1c2)]('\x20\x20'+(_0x1067f6+0x1)+'.\x20'+_0x540c69[0x0]);const _0x22e2d9=_0x540c69[_0xe7190d(0x19f)](0x1),_0x30661c=_0x22e2d9[_0xe7190d(0x1b2)](_0x55db9d=>_0x55db9d['trim']()['startsWith'](_0xe7190d(0x1ba))||_0x55db9d[_0xe7190d(0x1a3)](_0xe7190d(0x198))||_0x55db9d[_0xe7190d(0x1a3)](_0xe7190d(0x1b9))||_0x55db9d['includes'](_0xe7190d(0x194))||_0x55db9d['includes'](_0xe7190d(0x1c4)));for(const _0x3d8920 of _0x30661c[_0xe7190d(0x19f)](0x0,0x5)){_0x43f5ab[_0xe7190d(0x1c2)](_0xe7190d(0x1a6)+_0x3d8920['trim']());}}_0x3b7065[_0xe7190d(0x19a)]>_0x414355&&_0x43f5ab[_0xe7190d(0x1c2)](_0xe7190d(0x190)+(_0x3b7065['length']-_0x414355)+'\x20more\x20failures');}return _0x43f5ab[_0xe7190d(0x1c3)]('\x0a');}function filterCargoBuild(_0x484112){const _0x5707ad=a0_0x2e5b8d,_0x14eee3=_0x484112[_0x5707ad(0x1c5)]('\x0a'),_0x420db8=[],_0x36dece=[];let _0x504a8d=0x0;for(const _0x14210b of _0x14eee3){const _0x37cc4f=_0x14210b['trim']();if(_0x37cc4f['startsWith'](_0x5707ad(0x191)))_0x504a8d++;else{if(_0x37cc4f[_0x5707ad(0x18f)](_0x5707ad(0x19c))||_0x37cc4f['startsWith'](_0x5707ad(0x1b3)))_0x420db8['push'](_0x37cc4f);else{if(_0x37cc4f[_0x5707ad(0x18f)]('error[')||_0x37cc4f[_0x5707ad(0x18f)](_0x5707ad(0x1b5)))_0x36dece[_0x5707ad(0x1c2)](_0x37cc4f);}}}if(_0x36dece['length']===0x0&&_0x420db8[_0x5707ad(0x19a)]===0x0)return _0x504a8d>0x0?'Cargo:\x20compiled\x20'+_0x504a8d+_0x5707ad(0x1b7):_0x484112['trim']();const _0x28eda4=[];if(_0x36dece[_0x5707ad(0x19a)]>0x0){_0x28eda4[_0x5707ad(0x1c2)](_0x5707ad(0x19b)+_0x36dece[_0x5707ad(0x19a)]+_0x5707ad(0x1a5)+_0x420db8[_0x5707ad(0x19a)]+'\x20warnings'),_0x28eda4['push'](_0x5707ad(0x1be));for(const _0x44371e of _0x36dece[_0x5707ad(0x19f)](0x0,0x5))_0x28eda4['push']('\x20\x20'+_0x44371e);if(_0x36dece[_0x5707ad(0x19a)]>0x5)_0x28eda4['push']('\x20\x20...\x20+'+(_0x36dece[_0x5707ad(0x19a)]-0x5)+_0x5707ad(0x1a2));}else _0x28eda4[_0x5707ad(0x1c2)](_0x5707ad(0x1ab)+_0x504a8d+'\x20crates,\x20'+_0x420db8[_0x5707ad(0x19a)]+_0x5707ad(0x1bd));if(_0x420db8['length']>0x0&&_0x420db8[_0x5707ad(0x19a)]<=0x5){_0x28eda4[_0x5707ad(0x1c2)]('\x0aWarnings:');for(const _0x552ef1 of _0x420db8)_0x28eda4[_0x5707ad(0x1c2)]('\x20\x20'+_0x552ef1);}else _0x420db8[_0x5707ad(0x19a)]>0x5&&_0x28eda4['push']('\x0a('+_0x420db8[_0x5707ad(0x19a)]+_0x5707ad(0x197));return _0x28eda4['join']('\x0a');}
|
package/filters/shell.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a0_0x223c89=a0_0x4871;(function(_0x140138,_0x2ef695){const _0x18a889=a0_0x4871,_0x3abc07=_0x140138();while(!![]){try{const _0x21c6d8=-parseInt(_0x18a889(0x243))/0x1*(parseInt(_0x18a889(0x1cd))/0x2)+-parseInt(_0x18a889(0x209))/0x3*(-parseInt(_0x18a889(0x229))/0x4)+-parseInt(_0x18a889(0x23c))/0x5+-parseInt(_0x18a889(0x23f))/0x6+-parseInt(_0x18a889(0x222))/0x7*(parseInt(_0x18a889(0x212))/0x8)+-parseInt(_0x18a889(0x22d))/0x9*(parseInt(_0x18a889(0x1d7))/0xa)+parseInt(_0x18a889(0x1e2))/0xb;if(_0x21c6d8===_0x2ef695)break;else _0x3abc07['push'](_0x3abc07['shift']());}catch(_0x2da892){_0x3abc07['push'](_0x3abc07['shift']());}}}(a0_0x5e0d,0x52750));var __createBinding=this&&this[a0_0x223c89(0x220)]||(Object['create']?function(_0x28ee0d,_0x3aaed3,_0x43b0cc,_0x4c49a0){const _0x188d6c=a0_0x223c89;if(_0x4c49a0===undefined)_0x4c49a0=_0x43b0cc;var _0x555a50=Object[_0x188d6c(0x205)](_0x3aaed3,_0x43b0cc);(!_0x555a50||(_0x188d6c(0x22f)in _0x555a50?!_0x3aaed3[_0x188d6c(0x1f4)]:_0x555a50[_0x188d6c(0x218)]||_0x555a50[_0x188d6c(0x1ea)]))&&(_0x555a50={'enumerable':!![],'get':function(){return _0x3aaed3[_0x43b0cc];}}),Object[_0x188d6c(0x1de)](_0x28ee0d,_0x4c49a0,_0x555a50);}:function(_0x382ab6,_0x308255,_0x677f0f,_0x139036){if(_0x139036===undefined)_0x139036=_0x677f0f;_0x382ab6[_0x139036]=_0x308255[_0x677f0f];}),__setModuleDefault=this&&this[a0_0x223c89(0x1ce)]||(Object['create']?function(_0x4a90f9,_0x8abe3c){const _0x341099=a0_0x223c89;Object['defineProperty'](_0x4a90f9,_0x341099(0x1ec),{'enumerable':!![],'value':_0x8abe3c});}:function(_0x110a6c,_0x2bf82c){const _0x468e25=a0_0x223c89;_0x110a6c[_0x468e25(0x1ec)]=_0x2bf82c;}),__importStar=this&&this[a0_0x223c89(0x22a)]||(function(){var _0x48a7ad=function(_0xfdcf8d){return _0x48a7ad=Object['getOwnPropertyNames']||function(_0x58c66f){const _0x1cc65=a0_0x4871;var _0x3da82a=[];for(var _0xfa7b88 in _0x58c66f)if(Object[_0x1cc65(0x216)][_0x1cc65(0x1dd)][_0x1cc65(0x1e1)](_0x58c66f,_0xfa7b88))_0x3da82a[_0x3da82a[_0x1cc65(0x20d)]]=_0xfa7b88;return _0x3da82a;},_0x48a7ad(_0xfdcf8d);};return function(_0x507d63){const _0x49855f=a0_0x4871;if(_0x507d63&&_0x507d63[_0x49855f(0x1f4)])return _0x507d63;var _0x54c710={};if(_0x507d63!=null){for(var _0x4cda25=_0x48a7ad(_0x507d63),_0x477ae9=0x0;_0x477ae9<_0x4cda25[_0x49855f(0x20d)];_0x477ae9++)if(_0x4cda25[_0x477ae9]!=='default')__createBinding(_0x54c710,_0x507d63,_0x4cda25[_0x477ae9]);}return __setModuleDefault(_0x54c710,_0x507d63),_0x54c710;};}());Object[a0_0x223c89(0x1de)](exports,a0_0x223c89(0x1f4),{'value':!![]}),exports[a0_0x223c89(0x22e)]=filterLs,exports[a0_0x223c89(0x20b)]=filterTree,exports[a0_0x223c89(0x1fd)]=filterCat,exports[a0_0x223c89(0x215)]=filterGrep,exports[a0_0x223c89(0x1d3)]=filterFind;const path=__importStar(require('path')),LOCK_FILES=['package-lock.json','yarn.lock','pnpm-lock.yaml','Cargo.lock','go.sum',a0_0x223c89(0x1fb),a0_0x223c89(0x1cf),a0_0x223c89(0x1d2),a0_0x223c89(0x1f8)],BINARY_EXTENSIONS=[a0_0x223c89(0x233),a0_0x223c89(0x21f),a0_0x223c89(0x20a),a0_0x223c89(0x213),a0_0x223c89(0x1d6),a0_0x223c89(0x1fc),'.jpeg',a0_0x223c89(0x1d4),'.ico','.bmp',a0_0x223c89(0x23a),a0_0x223c89(0x23b),a0_0x223c89(0x1df),a0_0x223c89(0x1d9),a0_0x223c89(0x1d5),a0_0x223c89(0x201),'.gz',a0_0x223c89(0x1e9),'.7z',a0_0x223c89(0x23d),a0_0x223c89(0x1db),'.dll',a0_0x223c89(0x1ee),a0_0x223c89(0x230),a0_0x223c89(0x1f5),a0_0x223c89(0x22c),'.sqlite',a0_0x223c89(0x232),a0_0x223c89(0x207),a0_0x223c89(0x1f6),'.woff2',a0_0x223c89(0x1dc),a0_0x223c89(0x231),'.otf',a0_0x223c89(0x1e6),a0_0x223c89(0x1e3),a0_0x223c89(0x239),a0_0x223c89(0x1fa),a0_0x223c89(0x206),'.webm',a0_0x223c89(0x1f9),a0_0x223c89(0x23e),a0_0x223c89(0x1cb),'.o',a0_0x223c89(0x211)];function extractFilename(_0x152595){const _0x3ff7a6=a0_0x223c89,_0xeb4f49=_0x152595[_0x3ff7a6(0x1e5)]()[_0x3ff7a6(0x1ff)](/\s+/);for(let _0xe773cb=0x1;_0xe773cb<_0xeb4f49[_0x3ff7a6(0x20d)];_0xe773cb++){if(!_0xeb4f49[_0xe773cb][_0x3ff7a6(0x21d)]('-'))return _0xeb4f49[_0xe773cb];}return null;}function a0_0x4871(_0x17652b,_0x45ee0d){_0x17652b=_0x17652b-0x1cb;const _0x5e0d8b=a0_0x5e0d();let _0x4871c2=_0x5e0d8b[_0x17652b];return _0x4871c2;}function filterLockFile(_0x3d5df2,_0x6b6f88){const _0x18416e=a0_0x223c89;try{const _0x3cf7fe=path['basename'](_0x6b6f88)[_0x18416e(0x22b)]();if(!LOCK_FILES['some'](_0x93e5e1=>_0x3cf7fe===_0x93e5e1[_0x18416e(0x22b)]()))return null;const _0x3d9ad6=_0x3d5df2['length'];let _0x3e8b98=0x0;if(_0x3cf7fe===_0x18416e(0x210))try{const _0x34a965=JSON[_0x18416e(0x20c)](_0x3d5df2);_0x3e8b98=Object[_0x18416e(0x202)](_0x34a965[_0x18416e(0x219)]||_0x34a965[_0x18416e(0x21a)]||{})['length'];}catch{_0x3e8b98=(_0x3d5df2[_0x18416e(0x227)](/"resolved":/g)||[])['length'];}else{if(_0x3cf7fe==='yarn.lock')_0x3e8b98=(_0x3d5df2[_0x18416e(0x227)](/^"?[^#\s][^:]*:$/gm)||[])[_0x18416e(0x20d)];else{if(_0x3cf7fe==='cargo.lock'||_0x3cf7fe===_0x18416e(0x1fb))_0x3e8b98=(_0x3d5df2[_0x18416e(0x227)](/\[\[package\]\]/g)||[])[_0x18416e(0x20d)];else{if(_0x3cf7fe===_0x18416e(0x1f0))_0x3e8b98=Math[_0x18416e(0x241)](_0x3d5df2[_0x18416e(0x1ff)]('\x0a')[_0x18416e(0x1cc)](_0x37e7d3=>_0x37e7d3['trim']())['length']/0x2);else{if(_0x3cf7fe===_0x18416e(0x1cf))try{_0x3e8b98=JSON[_0x18416e(0x20c)](_0x3d5df2)[_0x18416e(0x219)]?.['length']||0x0;}catch{}else _0x3cf7fe===_0x18416e(0x228)?_0x3e8b98=(_0x3d5df2[_0x18416e(0x227)](/^\s{2}['"@a-z]/gm)||[])[_0x18416e(0x20d)]:_0x3e8b98=_0x3d5df2['split']('\x0a')['filter'](_0x13425f=>_0x13425f[_0x18416e(0x1e5)]())[_0x18416e(0x20d)];}}}}return _0x18416e(0x1e0)+path[_0x18416e(0x226)](_0x6b6f88)+':\x20'+_0x3e8b98+_0x18416e(0x204)+_0x3d9ad6['toLocaleString']()+'\x20chars\x20(content\x20omitted\x20—\x20lock\x20files\x20are\x20not\x20useful\x20for\x20LLM\x20context)';}catch{return null;}}function a0_0x5e0d(){const _0x234b16=['.dylib','.eot','.db','.min.js',':\x20...\x20(','\x20more\x20files\x20with\x20matches','\x20(content\x20omitted\x20—\x20not\x20useful\x20for\x20LLM\x20context)','\x20chars,\x20type:\x20','includes','.wav','.webp','.svg','825865KXNVgG','.rar','.pyo','919284PtKibM','total\x20','floor','join','1TMEHhz','.class','filter','644896FZSCjD','__setModuleDefault','composer.lock','\x20more\x20matches','\x20files)','Gemfile.lock','filterFind','.gif','.tar.gz','.png','20CySUzL','...\x20+','.zip','push','.exe','.ttf','hasOwnProperty','defineProperty','.pdf','[lock\x20file]\x20','call','12913538AegbXW','.mp4','toLocaleString','trim','.mp3','stringify','dirname','.bz2','configurable','substring','default','\x20directories','.so','\x20lines\x20total)','go.sum','\x20chars\x20(high\x20non-printable\x20ratio\x20—\x20content\x20omitted)','\x0a...\x20(','sort','__esModule','.bin','.woff','Empty\x20directory','bun.lockb','.pyc','.avi','poetry.lock','.jpg','filterCat','\x20matches\x20in\x20this\x20file)','split','\x20chars\x20(contains\x20null\x20bytes\x20—\x20binary\x20content\x20omitted)','.tgz','keys','endsWith','\x20dependencies,\x20','getOwnPropertyDescriptor','.mov','.sqlite3','[binary/minified\x20file]\x20','795603odjyPP','.map','filterTree','parse','length','No\x20matches\x20found','\x20directories,\x20','package-lock.json','.obj','39384ZPIxnN','.wasm','slice','filterGrep','prototype','entries','writable','packages','dependencies','charCodeAt','[binary\x20file]\x20','startsWith','\x20more\x20directories','.min.css','__createBinding','\x20line(s)\x20(content\x20omitted\x20—\x20not\x20human-readable)','91yBODjR','\x20matches\x20across\x20','indexOf','No\x20files\x20found','basename','match','pnpm-lock.yaml','8lkTCVE','__importStar','toLowerCase','.dat','2978019LOmmaY','filterLs','get'];a0_0x5e0d=function(){return _0x234b16;};return a0_0x5e0d();}function filterBinaryOrMinified(_0x42432d,_0x101801){const _0x15a14e=a0_0x223c89;try{if(_0x101801){const _0x240d14=_0x101801[_0x15a14e(0x22b)]();for(const _0x450d28 of BINARY_EXTENSIONS){if(_0x240d14[_0x15a14e(0x203)](_0x450d28))return _0x15a14e(0x208)+path['basename'](_0x101801)+',\x20'+_0x42432d['length']['toLocaleString']()+_0x15a14e(0x237)+_0x450d28+_0x15a14e(0x236);}}const _0x5b8736=_0x42432d[_0x15a14e(0x1eb)](0x0,0x3e8);let _0x55012b=0x0;for(let _0x17e372=0x0;_0x17e372<_0x5b8736[_0x15a14e(0x20d)];_0x17e372++){if(_0x5b8736[_0x15a14e(0x21b)](_0x17e372)===0x0)_0x55012b++;}if(_0x55012b>0x0)return _0x15a14e(0x21c)+_0x42432d[_0x15a14e(0x20d)][_0x15a14e(0x1e4)]()+_0x15a14e(0x200);let _0x71e9e5=0x0;for(let _0x1aa57c=0x0;_0x1aa57c<_0x5b8736[_0x15a14e(0x20d)];_0x1aa57c++){const _0x407ee5=_0x5b8736[_0x15a14e(0x21b)](_0x1aa57c);if(_0x407ee5<0x20&&_0x407ee5!==0xa&&_0x407ee5!==0xd&&_0x407ee5!==0x9)_0x71e9e5++;}if(_0x5b8736['length']>0x64&&_0x71e9e5>_0x5b8736[_0x15a14e(0x20d)]*0.1)return _0x15a14e(0x21c)+_0x42432d[_0x15a14e(0x20d)][_0x15a14e(0x1e4)]()+_0x15a14e(0x1f1);const _0x56e5fa=_0x42432d[_0x15a14e(0x1ff)]('\x0a');if(_0x56e5fa['length']<=0x3&&_0x42432d[_0x15a14e(0x20d)]>0x1388)return'[minified\x20file]\x20'+_0x42432d['length'][_0x15a14e(0x1e4)]()+'\x20chars\x20across\x20'+_0x56e5fa[_0x15a14e(0x20d)]+_0x15a14e(0x221);return null;}catch{return null;}}function filterJsonMinify(_0x573d43){const _0x41d6c9=a0_0x223c89;try{const _0xae867b=_0x573d43[_0x41d6c9(0x1e5)]();if(!_0xae867b[_0x41d6c9(0x21d)]('{')&&!_0xae867b[_0x41d6c9(0x21d)]('['))return null;const _0x35ee82=_0xae867b[_0x41d6c9(0x1ff)]('\x0a');if(_0x35ee82['length']<=0x14)return null;const _0x101176=JSON['parse'](_0xae867b),_0x8e9522=JSON[_0x41d6c9(0x1e7)](_0x101176);if(_0x8e9522[_0x41d6c9(0x20d)]<_0xae867b[_0x41d6c9(0x20d)])return _0x8e9522;return null;}catch{return null;}}function filterLs(_0x151e12){const _0xfebf47=a0_0x223c89,_0x124977=_0x151e12[_0xfebf47(0x1ff)]('\x0a')[_0xfebf47(0x1cc)](_0x57eb2=>_0x57eb2[_0xfebf47(0x1e5)]()[_0xfebf47(0x20d)]>0x0);if(_0x124977['length']===0x0)return _0xfebf47(0x1f7);if(_0x124977[_0xfebf47(0x20d)]<=0x1e)return _0x151e12[_0xfebf47(0x1e5)]();const _0x328908=[],_0x2ed992=[];for(const _0x457394 of _0x124977){const _0x4e38ab=_0x457394[_0xfebf47(0x1e5)]();if(_0x4e38ab[_0xfebf47(0x21d)](_0xfebf47(0x240))||_0x4e38ab['startsWith']('d')&&_0x4e38ab['includes']('..'))continue;_0x4e38ab[_0xfebf47(0x203)]('/')||_0x4e38ab[_0xfebf47(0x21d)]('d')&&_0x4e38ab[_0xfebf47(0x238)]('\x20')?_0x328908[_0xfebf47(0x1da)](_0x4e38ab):_0x2ed992[_0xfebf47(0x1da)](_0x4e38ab);}const _0x1ec358=[];return _0x328908[_0xfebf47(0x20d)]>0x0&&(_0x328908[_0xfebf47(0x20d)]<=0xf?_0x1ec358[_0xfebf47(0x1da)](..._0x328908):(_0x1ec358['push'](..._0x328908[_0xfebf47(0x214)](0x0,0xa)),_0x1ec358[_0xfebf47(0x1da)](_0xfebf47(0x1d8)+(_0x328908[_0xfebf47(0x20d)]-0xa)+_0xfebf47(0x21e)))),_0x2ed992['length']>0x0&&(_0x2ed992[_0xfebf47(0x20d)]<=0x14?_0x1ec358[_0xfebf47(0x1da)](..._0x2ed992):(_0x1ec358['push'](..._0x2ed992['slice'](0x0,0xf)),_0x1ec358[_0xfebf47(0x1da)]('...\x20+'+(_0x2ed992[_0xfebf47(0x20d)]-0xf)+'\x20more\x20files'))),_0x1ec358[_0xfebf47(0x1da)]('\x0a('+_0x328908['length']+'\x20directories,\x20'+_0x2ed992[_0xfebf47(0x20d)]+'\x20files)'),_0x1ec358[_0xfebf47(0x242)]('\x0a');}function filterTree(_0x22c08f){const _0x27dab3=a0_0x223c89,_0x15da7d=_0x22c08f[_0x27dab3(0x1ff)]('\x0a');if(_0x15da7d[_0x27dab3(0x20d)]<=0x32)return _0x22c08f[_0x27dab3(0x1e5)]();const _0x106398=[];let _0x4afa2c=0x0,_0x50e6f7=0x0,_0x1d57a5=0x0;for(const _0x417ccb of _0x15da7d){const _0x389a31=_0x417ccb[_0x27dab3(0x227)](/(\d+)\s+director/),_0x52a776=_0x417ccb[_0x27dab3(0x227)](/(\d+)\s+file/);if(_0x389a31)_0x1d57a5=parseInt(_0x389a31[0x1]);if(_0x52a776)_0x50e6f7=parseInt(_0x52a776[0x1]);const _0x42f560=(_0x417ccb[_0x27dab3(0x227)](/^[│├└\s─]+/)||[''])[0x0][_0x27dab3(0x20d)];_0x42f560<=0x4&&(_0x106398[_0x27dab3(0x1da)](_0x417ccb),_0x4afa2c++);}return _0x15da7d['length']>_0x106398['length']&&_0x106398[_0x27dab3(0x1da)](_0x27dab3(0x1f2)+_0x1d57a5+_0x27dab3(0x20f)+_0x50e6f7+'\x20files\x20total\x20—\x20deep\x20entries\x20truncated)'),_0x106398['join']('\x0a');}function filterCat(_0x4266a,_0x431e1a=''){const _0x1007d3=a0_0x223c89,_0xbf2421=extractFilename(_0x431e1a);try{if(_0xbf2421){const _0x4f9e7f=filterLockFile(_0x4266a,_0xbf2421);if(_0x4f9e7f)return _0x4f9e7f;}const _0x462564=filterBinaryOrMinified(_0x4266a,_0xbf2421);if(_0x462564)return _0x462564;const _0x56c90c=filterJsonMinify(_0x4266a);if(_0x56c90c)return _0x56c90c;}catch{}const _0x2ee603=_0x4266a[_0x1007d3(0x1ff)]('\x0a');if(_0x2ee603[_0x1007d3(0x20d)]<=0x64)return _0x4266a;const _0x144512=[];return _0x144512['push'](..._0x2ee603[_0x1007d3(0x214)](0x0,0x32)),_0x144512[_0x1007d3(0x1da)]('\x0a...\x20['+(_0x2ee603[_0x1007d3(0x20d)]-0x50)+'\x20lines\x20truncated]\x20...\x0a'),_0x144512[_0x1007d3(0x1da)](..._0x2ee603['slice'](-0x1e)),_0x144512[_0x1007d3(0x1da)]('\x0a('+_0x2ee603['length']+_0x1007d3(0x1ef)),_0x144512[_0x1007d3(0x242)]('\x0a');}function filterGrep(_0x467a1d){const _0xc5f7d7=a0_0x223c89,_0x16dfa6=_0x467a1d['split']('\x0a')[_0xc5f7d7(0x1cc)](_0x5cf0ff=>_0x5cf0ff[_0xc5f7d7(0x1e5)]()[_0xc5f7d7(0x20d)]>0x0);if(_0x16dfa6[_0xc5f7d7(0x20d)]===0x0)return _0xc5f7d7(0x20e);if(_0x16dfa6[_0xc5f7d7(0x20d)]<=0x32)return _0x467a1d[_0xc5f7d7(0x1e5)]();const _0x354f24={},_0x307d1e=[];for(const _0x3956da of _0x16dfa6){const _0x308581=_0x3956da[_0xc5f7d7(0x224)](':');if(_0x308581>0x0&&_0x308581<0xc8){const _0x3fcbd2=_0x3956da[_0xc5f7d7(0x1eb)](0x0,_0x308581);if(_0x3fcbd2[_0xc5f7d7(0x238)]('/')||_0x3fcbd2[_0xc5f7d7(0x238)]('\x5c')||_0x3fcbd2[_0xc5f7d7(0x238)]('.')){if(!_0x354f24[_0x3fcbd2])_0x354f24[_0x3fcbd2]=[];_0x354f24[_0x3fcbd2]['push'](_0x3956da['substring'](_0x308581+0x1)[_0xc5f7d7(0x1e5)]());continue;}}_0x307d1e[_0xc5f7d7(0x1da)](_0x3956da);}const _0x33017c=[],_0x3d67c1=Object[_0xc5f7d7(0x202)](_0x354f24);if(_0x3d67c1[_0xc5f7d7(0x20d)]>0x0){const _0x31549a=0x14,_0x5e7b9e=_0x3d67c1[_0xc5f7d7(0x214)](0x0,_0x31549a);for(const _0x253809 of _0x5e7b9e){const _0x3e6602=_0x354f24[_0x253809];if(_0x3e6602[_0xc5f7d7(0x20d)]<=0x3)for(const _0x20c7c7 of _0x3e6602){_0x33017c[_0xc5f7d7(0x1da)](_0x253809+':\x20'+_0x20c7c7);}else _0x33017c[_0xc5f7d7(0x1da)](_0x253809+':\x20'+_0x3e6602[0x0]),_0x33017c[_0xc5f7d7(0x1da)](_0x253809+_0xc5f7d7(0x234)+_0x3e6602['length']+_0xc5f7d7(0x1fe));}_0x3d67c1['length']>_0x31549a&&_0x33017c[_0xc5f7d7(0x1da)]('...\x20+'+(_0x3d67c1[_0xc5f7d7(0x20d)]-_0x31549a)+_0xc5f7d7(0x235));}if(_0x307d1e[_0xc5f7d7(0x20d)]>0x0){const _0x2282d0=0x1e;_0x33017c[_0xc5f7d7(0x1da)](..._0x307d1e['slice'](0x0,_0x2282d0)),_0x307d1e[_0xc5f7d7(0x20d)]>_0x2282d0&&_0x33017c[_0xc5f7d7(0x1da)](_0xc5f7d7(0x1d8)+(_0x307d1e[_0xc5f7d7(0x20d)]-_0x2282d0)+_0xc5f7d7(0x1d0));}const _0x2191ba=_0x16dfa6['length'];return _0x33017c[_0xc5f7d7(0x1da)]('\x0a('+_0x2191ba+_0xc5f7d7(0x223)+(_0x3d67c1[_0xc5f7d7(0x20d)]||'?')+_0xc5f7d7(0x1d1)),_0x33017c[_0xc5f7d7(0x242)]('\x0a');}function filterFind(_0x2b51f6){const _0x3cdc4c=a0_0x223c89,_0x111e4c=_0x2b51f6[_0x3cdc4c(0x1ff)]('\x0a')[_0x3cdc4c(0x1cc)](_0x4895d1=>_0x4895d1[_0x3cdc4c(0x1e5)]()[_0x3cdc4c(0x20d)]>0x0);if(_0x111e4c['length']===0x0)return _0x3cdc4c(0x225);if(_0x111e4c['length']<=0x32)return _0x2b51f6[_0x3cdc4c(0x1e5)]();const _0x346744={};for(const _0xa85ae9 of _0x111e4c){const _0x2f596f=path[_0x3cdc4c(0x1e8)](_0xa85ae9['trim']())||'.';_0x346744[_0x2f596f]=(_0x346744[_0x2f596f]||0x0)+0x1;}const _0x11c3e2=Object[_0x3cdc4c(0x217)](_0x346744)[_0x3cdc4c(0x1f3)]((_0x349fdb,_0x33a79f)=>_0x33a79f[0x1]-_0x349fdb[0x1]),_0x238e12=[_0x111e4c[_0x3cdc4c(0x20d)]+'\x20files\x20found\x20across\x20'+_0x11c3e2['length']+_0x3cdc4c(0x1ed),''],_0x10db4b=0x1e;for(const [_0x3442ed,_0x3ba74a]of _0x11c3e2[_0x3cdc4c(0x214)](0x0,_0x10db4b)){_0x238e12[_0x3cdc4c(0x1da)]('\x20\x20'+_0x3442ed+'/\x20('+_0x3ba74a+'\x20files)');}return _0x11c3e2[_0x3cdc4c(0x20d)]>_0x10db4b&&_0x238e12[_0x3cdc4c(0x1da)]('\x20\x20...\x20+'+(_0x11c3e2[_0x3cdc4c(0x20d)]-_0x10db4b)+_0x3cdc4c(0x21e)),_0x238e12['join']('\x0a');}
|
|
1
|
+
'use strict';const a0_0x140e36=a0_0x522f;function a0_0x105e(){const _0x23629f=['substring','52803oWwisf','4019888VJpDem','.sqlite3','parse','.woff2','.sqlite','\x20(content\x20omitted\x20—\x20not\x20useful\x20for\x20LLM\x20context)','__esModule','\x20more\x20directories','hasOwnProperty','\x20files)','includes','172AESljW','defineProperty','.zip','default','[binary\x20file]\x20','75108yKOiDm','.avi','.jpeg','poetry.lock','split','...\x20+','[lock\x20file]\x20','.bin','endsWith','__importStar','.pdf','.class','\x20lines\x20truncated]\x20...\x0a','pnpm-lock.yaml','\x20files\x20total\x20—\x20deep\x20entries\x20truncated)','.so','7siGQZF','\x20chars\x20(content\x20omitted\x20—\x20lock\x20files\x20are\x20not\x20useful\x20for\x20LLM\x20context)','trim','.dat','217284vDFXkd','.eot','33FtWQfP','\x20matches\x20across\x20','.tgz','\x20dependencies,\x20','getOwnPropertyNames','.ico','\x0a...\x20(','composer.lock','.db','some','\x20files\x20found\x20across\x20','push','/\x20(','.tar.gz','packages','.ttf','.obj','.rar','Gemfile.lock','__setModuleDefault','.exe','.jpg','__createBinding','entries','package-lock.json','filterCat','2924500WrJEeM','\x20directories,\x20','.pyc','configurable','.pyo','.mov','.webm','prototype','get','go.sum','toLowerCase',':\x20...\x20(','charCodeAt','length','path','.min.js','\x20matches\x20in\x20this\x20file)','.map','.gif','filterFind','toLocaleString','sort','.bz2','No\x20files\x20found','\x20more\x20matches','yarn.lock','filter','dirname','.dylib','slice','indexOf','.wasm','cargo.lock','writable','\x20chars\x20across\x20','basename','match','\x20more\x20files','startsWith','52995WjnkOF','.dll','.gz','join','\x20\x20...\x20+','floor','call','keys','filterLs','No\x20matches\x20found','4343805UKWblC','.woff','.wav'];a0_0x105e=function(){return _0x23629f;};return a0_0x105e();}(function(_0x47cb18,_0xdba566){const _0x58620e=a0_0x522f,_0x4c4f13=_0x47cb18();while(!![]){try{const _0x110fda=-parseInt(_0x58620e(0x1ce))/0x1+-parseInt(_0x58620e(0x1df))/0x2*(parseInt(_0x58620e(0x1f5))/0x3)+-parseInt(_0x58620e(0x1da))/0x4*(-parseInt(_0x58620e(0x1c0))/0x5)+parseInt(_0x58620e(0x1f3))/0x6*(-parseInt(_0x58620e(0x1ef))/0x7)+parseInt(_0x58620e(0x1cf))/0x8+-parseInt(_0x58620e(0x1ca))/0x9+parseInt(_0x58620e(0x20f))/0xa;if(_0x110fda===_0xdba566)break;else _0x4c4f13['push'](_0x4c4f13['shift']());}catch(_0x26846d){_0x4c4f13['push'](_0x4c4f13['shift']());}}}(a0_0x105e,0x40ed1));function a0_0x522f(_0x49cc3b,_0x4dd045){_0x49cc3b=_0x49cc3b-0x1aa;const _0x105eaf=a0_0x105e();let _0x522f20=_0x105eaf[_0x49cc3b];return _0x522f20;}var __createBinding=this&&this[a0_0x140e36(0x20b)]||(Object['create']?function(_0x3523ad,_0x5c1eb8,_0x455559,_0x516e61){const _0x35f682=a0_0x140e36;if(_0x516e61===undefined)_0x516e61=_0x455559;var _0x1ffb18=Object['getOwnPropertyDescriptor'](_0x5c1eb8,_0x455559);(!_0x1ffb18||(_0x35f682(0x217)in _0x1ffb18?!_0x5c1eb8[_0x35f682(0x1d5)]:_0x1ffb18[_0x35f682(0x1ba)]||_0x1ffb18[_0x35f682(0x212)]))&&(_0x1ffb18={'enumerable':!![],'get':function(){return _0x5c1eb8[_0x455559];}}),Object['defineProperty'](_0x3523ad,_0x516e61,_0x1ffb18);}:function(_0x187b06,_0x24bdc2,_0x53d7b6,_0xc4ca7d){if(_0xc4ca7d===undefined)_0xc4ca7d=_0x53d7b6;_0x187b06[_0xc4ca7d]=_0x24bdc2[_0x53d7b6];}),__setModuleDefault=this&&this[a0_0x140e36(0x208)]||(Object['create']?function(_0x561619,_0xf7c4d6){const _0x458bf6=a0_0x140e36;Object[_0x458bf6(0x1db)](_0x561619,_0x458bf6(0x1dd),{'enumerable':!![],'value':_0xf7c4d6});}:function(_0xda0c7,_0x37eb47){_0xda0c7['default']=_0x37eb47;}),__importStar=this&&this[a0_0x140e36(0x1e8)]||(function(){var _0x2ed79b=function(_0x28bbfa){const _0x2ac7d8=a0_0x522f;return _0x2ed79b=Object[_0x2ac7d8(0x1f9)]||function(_0x393f95){const _0x4885ab=_0x2ac7d8;var _0x41bddc=[];for(var _0x3905c2 in _0x393f95)if(Object[_0x4885ab(0x216)][_0x4885ab(0x1d7)][_0x4885ab(0x1c6)](_0x393f95,_0x3905c2))_0x41bddc[_0x41bddc[_0x4885ab(0x21c)]]=_0x3905c2;return _0x41bddc;},_0x2ed79b(_0x28bbfa);};return function(_0x437b1d){const _0x5f57b5=a0_0x522f;if(_0x437b1d&&_0x437b1d[_0x5f57b5(0x1d5)])return _0x437b1d;var _0x3f447a={};if(_0x437b1d!=null){for(var _0x39d434=_0x2ed79b(_0x437b1d),_0xd33969=0x0;_0xd33969<_0x39d434['length'];_0xd33969++)if(_0x39d434[_0xd33969]!=='default')__createBinding(_0x3f447a,_0x437b1d,_0x39d434[_0xd33969]);}return __setModuleDefault(_0x3f447a,_0x437b1d),_0x3f447a;};}());Object[a0_0x140e36(0x1db)](exports,a0_0x140e36(0x1d5),{'value':!![]}),exports[a0_0x140e36(0x1c8)]=filterLs,exports['filterTree']=filterTree,exports[a0_0x140e36(0x20e)]=filterCat,exports['filterGrep']=filterGrep,exports[a0_0x140e36(0x1ac)]=filterFind;const path=__importStar(require(a0_0x140e36(0x21d))),LOCK_FILES=[a0_0x140e36(0x20d),a0_0x140e36(0x1b2),a0_0x140e36(0x1ec),'Cargo.lock',a0_0x140e36(0x218),'poetry.lock',a0_0x140e36(0x1fc),a0_0x140e36(0x207),'bun.lockb'],BINARY_EXTENSIONS=[a0_0x140e36(0x21e),'.min.css',a0_0x140e36(0x1aa),a0_0x140e36(0x1b8),'.png',a0_0x140e36(0x20a),a0_0x140e36(0x1e1),a0_0x140e36(0x1ab),a0_0x140e36(0x1fa),'.bmp','.webp','.svg',a0_0x140e36(0x1e9),a0_0x140e36(0x1dc),a0_0x140e36(0x202),a0_0x140e36(0x1f7),a0_0x140e36(0x1c2),a0_0x140e36(0x1af),'.7z',a0_0x140e36(0x206),a0_0x140e36(0x209),a0_0x140e36(0x1c1),a0_0x140e36(0x1ee),a0_0x140e36(0x1b5),a0_0x140e36(0x1e6),a0_0x140e36(0x1f2),a0_0x140e36(0x1d3),a0_0x140e36(0x1fd),a0_0x140e36(0x1d0),a0_0x140e36(0x1cb),a0_0x140e36(0x1d2),a0_0x140e36(0x204),a0_0x140e36(0x1f4),'.otf','.mp3','.mp4',a0_0x140e36(0x1cc),a0_0x140e36(0x1e0),a0_0x140e36(0x214),a0_0x140e36(0x215),a0_0x140e36(0x211),a0_0x140e36(0x213),a0_0x140e36(0x1ea),'.o',a0_0x140e36(0x205)];function extractFilename(_0x54cb82){const _0x5af3aa=a0_0x140e36,_0x10028e=_0x54cb82[_0x5af3aa(0x1f1)]()['split'](/\s+/);for(let _0x40c511=0x1;_0x40c511<_0x10028e[_0x5af3aa(0x21c)];_0x40c511++){if(!_0x10028e[_0x40c511]['startsWith']('-'))return _0x10028e[_0x40c511];}return null;}function filterLockFile(_0x2e5dd1,_0x144529){const _0x413d08=a0_0x140e36;try{const _0x56f4cc=path[_0x413d08(0x1bc)](_0x144529)['toLowerCase']();if(!LOCK_FILES[_0x413d08(0x1fe)](_0x406d37=>_0x56f4cc===_0x406d37[_0x413d08(0x219)]()))return null;const _0x10afc0=_0x2e5dd1[_0x413d08(0x21c)];let _0x1085cd=0x0;if(_0x56f4cc===_0x413d08(0x20d))try{const _0x1d3d09=JSON[_0x413d08(0x1d1)](_0x2e5dd1);_0x1085cd=Object[_0x413d08(0x1c7)](_0x1d3d09[_0x413d08(0x203)]||_0x1d3d09['dependencies']||{})[_0x413d08(0x21c)];}catch{_0x1085cd=(_0x2e5dd1[_0x413d08(0x1bd)](/"resolved":/g)||[])[_0x413d08(0x21c)];}else{if(_0x56f4cc===_0x413d08(0x1b2))_0x1085cd=(_0x2e5dd1['match'](/^"?[^#\s][^:]*:$/gm)||[])[_0x413d08(0x21c)];else{if(_0x56f4cc===_0x413d08(0x1b9)||_0x56f4cc===_0x413d08(0x1e2))_0x1085cd=(_0x2e5dd1[_0x413d08(0x1bd)](/\[\[package\]\]/g)||[])['length'];else{if(_0x56f4cc===_0x413d08(0x218))_0x1085cd=Math[_0x413d08(0x1c5)](_0x2e5dd1['split']('\x0a')[_0x413d08(0x1b3)](_0x524e66=>_0x524e66[_0x413d08(0x1f1)]())['length']/0x2);else{if(_0x56f4cc===_0x413d08(0x1fc))try{_0x1085cd=JSON[_0x413d08(0x1d1)](_0x2e5dd1)[_0x413d08(0x203)]?.[_0x413d08(0x21c)]||0x0;}catch{}else _0x56f4cc===_0x413d08(0x1ec)?_0x1085cd=(_0x2e5dd1[_0x413d08(0x1bd)](/^\s{2}['"@a-z]/gm)||[])[_0x413d08(0x21c)]:_0x1085cd=_0x2e5dd1[_0x413d08(0x1e3)]('\x0a')[_0x413d08(0x1b3)](_0x20597b=>_0x20597b[_0x413d08(0x1f1)]())[_0x413d08(0x21c)];}}}}return _0x413d08(0x1e5)+path[_0x413d08(0x1bc)](_0x144529)+':\x20'+_0x1085cd+_0x413d08(0x1f8)+_0x10afc0[_0x413d08(0x1ad)]()+_0x413d08(0x1f0);}catch{return null;}}function filterBinaryOrMinified(_0xc453aa,_0x388752){const _0x4c62cc=a0_0x140e36;try{if(_0x388752){const _0x562aeb=_0x388752[_0x4c62cc(0x219)]();for(const _0x44d9c4 of BINARY_EXTENSIONS){if(_0x562aeb[_0x4c62cc(0x1e7)](_0x44d9c4))return'[binary/minified\x20file]\x20'+path['basename'](_0x388752)+',\x20'+_0xc453aa[_0x4c62cc(0x21c)]['toLocaleString']()+'\x20chars,\x20type:\x20'+_0x44d9c4+_0x4c62cc(0x1d4);}}const _0x3cb590=_0xc453aa['substring'](0x0,0x3e8);let _0xbc5980=0x0;for(let _0x1ff441=0x0;_0x1ff441<_0x3cb590[_0x4c62cc(0x21c)];_0x1ff441++){if(_0x3cb590[_0x4c62cc(0x21b)](_0x1ff441)===0x0)_0xbc5980++;}if(_0xbc5980>0x0)return _0x4c62cc(0x1de)+_0xc453aa[_0x4c62cc(0x21c)][_0x4c62cc(0x1ad)]()+'\x20chars\x20(contains\x20null\x20bytes\x20—\x20binary\x20content\x20omitted)';let _0x3c6ebf=0x0;for(let _0x34eb8a=0x0;_0x34eb8a<_0x3cb590[_0x4c62cc(0x21c)];_0x34eb8a++){const _0x5cfe1e=_0x3cb590[_0x4c62cc(0x21b)](_0x34eb8a);if(_0x5cfe1e<0x20&&_0x5cfe1e!==0xa&&_0x5cfe1e!==0xd&&_0x5cfe1e!==0x9)_0x3c6ebf++;}if(_0x3cb590[_0x4c62cc(0x21c)]>0x64&&_0x3c6ebf>_0x3cb590[_0x4c62cc(0x21c)]*0.1)return _0x4c62cc(0x1de)+_0xc453aa[_0x4c62cc(0x21c)][_0x4c62cc(0x1ad)]()+'\x20chars\x20(high\x20non-printable\x20ratio\x20—\x20content\x20omitted)';const _0x3e7633=_0xc453aa[_0x4c62cc(0x1e3)]('\x0a');if(_0x3e7633[_0x4c62cc(0x21c)]<=0x3&&_0xc453aa[_0x4c62cc(0x21c)]>0x1388)return'[minified\x20file]\x20'+_0xc453aa[_0x4c62cc(0x21c)][_0x4c62cc(0x1ad)]()+_0x4c62cc(0x1bb)+_0x3e7633['length']+'\x20line(s)\x20(content\x20omitted\x20—\x20not\x20human-readable)';return null;}catch{return null;}}function filterJsonMinify(_0xc3e1ca){const _0x3984af=a0_0x140e36;try{const _0x38b5bf=_0xc3e1ca[_0x3984af(0x1f1)]();if(!_0x38b5bf[_0x3984af(0x1bf)]('{')&&!_0x38b5bf[_0x3984af(0x1bf)]('['))return null;const _0x401f3c=_0x38b5bf[_0x3984af(0x1e3)]('\x0a');if(_0x401f3c[_0x3984af(0x21c)]<=0x14)return null;const _0x52ed0f=JSON['parse'](_0x38b5bf),_0x55f1f4=JSON['stringify'](_0x52ed0f);if(_0x55f1f4[_0x3984af(0x21c)]<_0x38b5bf[_0x3984af(0x21c)])return _0x55f1f4;return null;}catch{return null;}}function filterLs(_0x389f8c){const _0x4f9066=a0_0x140e36,_0x510e89=_0x389f8c[_0x4f9066(0x1e3)]('\x0a')['filter'](_0x22daf4=>_0x22daf4[_0x4f9066(0x1f1)]()[_0x4f9066(0x21c)]>0x0);if(_0x510e89[_0x4f9066(0x21c)]===0x0)return'Empty\x20directory';if(_0x510e89[_0x4f9066(0x21c)]<=0x1e)return _0x389f8c['trim']();const _0x2fb3c7=[],_0x6f96f1=[];for(const _0x15cf59 of _0x510e89){const _0x26536a=_0x15cf59[_0x4f9066(0x1f1)]();if(_0x26536a[_0x4f9066(0x1bf)]('total\x20')||_0x26536a[_0x4f9066(0x1bf)]('d')&&_0x26536a[_0x4f9066(0x1d9)]('..'))continue;_0x26536a['endsWith']('/')||_0x26536a['startsWith']('d')&&_0x26536a['includes']('\x20')?_0x2fb3c7['push'](_0x26536a):_0x6f96f1[_0x4f9066(0x200)](_0x26536a);}const _0x54412c=[];return _0x2fb3c7['length']>0x0&&(_0x2fb3c7[_0x4f9066(0x21c)]<=0xf?_0x54412c[_0x4f9066(0x200)](..._0x2fb3c7):(_0x54412c[_0x4f9066(0x200)](..._0x2fb3c7['slice'](0x0,0xa)),_0x54412c[_0x4f9066(0x200)](_0x4f9066(0x1e4)+(_0x2fb3c7[_0x4f9066(0x21c)]-0xa)+_0x4f9066(0x1d6)))),_0x6f96f1['length']>0x0&&(_0x6f96f1[_0x4f9066(0x21c)]<=0x14?_0x54412c[_0x4f9066(0x200)](..._0x6f96f1):(_0x54412c['push'](..._0x6f96f1[_0x4f9066(0x1b6)](0x0,0xf)),_0x54412c[_0x4f9066(0x200)]('...\x20+'+(_0x6f96f1[_0x4f9066(0x21c)]-0xf)+_0x4f9066(0x1be)))),_0x54412c['push']('\x0a('+_0x2fb3c7[_0x4f9066(0x21c)]+_0x4f9066(0x210)+_0x6f96f1['length']+_0x4f9066(0x1d8)),_0x54412c['join']('\x0a');}function filterTree(_0x39070b){const _0x117211=a0_0x140e36,_0x2988bc=_0x39070b[_0x117211(0x1e3)]('\x0a');if(_0x2988bc[_0x117211(0x21c)]<=0x32)return _0x39070b[_0x117211(0x1f1)]();const _0x16a8fb=[];let _0x4b9456=0x0,_0x161731=0x0,_0x2fae82=0x0;for(const _0x1fd841 of _0x2988bc){const _0x57d766=_0x1fd841[_0x117211(0x1bd)](/(\d+)\s+director/),_0x35f905=_0x1fd841[_0x117211(0x1bd)](/(\d+)\s+file/);if(_0x57d766)_0x2fae82=parseInt(_0x57d766[0x1]);if(_0x35f905)_0x161731=parseInt(_0x35f905[0x1]);const _0xae9d72=(_0x1fd841[_0x117211(0x1bd)](/^[│├└\s─]+/)||[''])[0x0][_0x117211(0x21c)];_0xae9d72<=0x4&&(_0x16a8fb[_0x117211(0x200)](_0x1fd841),_0x4b9456++);}return _0x2988bc[_0x117211(0x21c)]>_0x16a8fb[_0x117211(0x21c)]&&_0x16a8fb[_0x117211(0x200)](_0x117211(0x1fb)+_0x2fae82+'\x20directories,\x20'+_0x161731+_0x117211(0x1ed)),_0x16a8fb[_0x117211(0x1c3)]('\x0a');}function filterCat(_0xec1a72,_0x36fc80=''){const _0x2da747=a0_0x140e36,_0x44267f=extractFilename(_0x36fc80);try{if(_0x44267f){const _0x5da2a0=filterLockFile(_0xec1a72,_0x44267f);if(_0x5da2a0)return _0x5da2a0;}const _0x592040=filterBinaryOrMinified(_0xec1a72,_0x44267f);if(_0x592040)return _0x592040;const _0x2c06d1=filterJsonMinify(_0xec1a72);if(_0x2c06d1)return _0x2c06d1;}catch{}const _0xfdda0d=_0xec1a72[_0x2da747(0x1e3)]('\x0a');if(_0xfdda0d[_0x2da747(0x21c)]<=0x64)return _0xec1a72;const _0x3219ec=[];return _0x3219ec[_0x2da747(0x200)](..._0xfdda0d[_0x2da747(0x1b6)](0x0,0x32)),_0x3219ec[_0x2da747(0x200)]('\x0a...\x20['+(_0xfdda0d['length']-0x50)+_0x2da747(0x1eb)),_0x3219ec['push'](..._0xfdda0d[_0x2da747(0x1b6)](-0x1e)),_0x3219ec[_0x2da747(0x200)]('\x0a('+_0xfdda0d['length']+'\x20lines\x20total)'),_0x3219ec[_0x2da747(0x1c3)]('\x0a');}function filterGrep(_0x272235){const _0x2a337d=a0_0x140e36,_0x4a3a1d=_0x272235[_0x2a337d(0x1e3)]('\x0a')[_0x2a337d(0x1b3)](_0x1577b7=>_0x1577b7[_0x2a337d(0x1f1)]()[_0x2a337d(0x21c)]>0x0);if(_0x4a3a1d[_0x2a337d(0x21c)]===0x0)return _0x2a337d(0x1c9);if(_0x4a3a1d[_0x2a337d(0x21c)]<=0x32)return _0x272235[_0x2a337d(0x1f1)]();const _0x176f52={},_0x41599e=[];for(const _0x18ec78 of _0x4a3a1d){const _0x511df3=_0x18ec78[_0x2a337d(0x1b7)](':');if(_0x511df3>0x0&&_0x511df3<0xc8){const _0x3a1526=_0x18ec78[_0x2a337d(0x1cd)](0x0,_0x511df3);if(_0x3a1526[_0x2a337d(0x1d9)]('/')||_0x3a1526['includes']('\x5c')||_0x3a1526['includes']('.')){if(!_0x176f52[_0x3a1526])_0x176f52[_0x3a1526]=[];_0x176f52[_0x3a1526][_0x2a337d(0x200)](_0x18ec78[_0x2a337d(0x1cd)](_0x511df3+0x1)[_0x2a337d(0x1f1)]());continue;}}_0x41599e[_0x2a337d(0x200)](_0x18ec78);}const _0x2da29d=[],_0x410dd0=Object['keys'](_0x176f52);if(_0x410dd0[_0x2a337d(0x21c)]>0x0){const _0x3e0200=0x14,_0x47df3e=_0x410dd0[_0x2a337d(0x1b6)](0x0,_0x3e0200);for(const _0x210ed3 of _0x47df3e){const _0x59c39e=_0x176f52[_0x210ed3];if(_0x59c39e[_0x2a337d(0x21c)]<=0x3)for(const _0x3c7ae5 of _0x59c39e){_0x2da29d[_0x2a337d(0x200)](_0x210ed3+':\x20'+_0x3c7ae5);}else _0x2da29d[_0x2a337d(0x200)](_0x210ed3+':\x20'+_0x59c39e[0x0]),_0x2da29d[_0x2a337d(0x200)](_0x210ed3+_0x2a337d(0x21a)+_0x59c39e[_0x2a337d(0x21c)]+_0x2a337d(0x21f));}_0x410dd0['length']>_0x3e0200&&_0x2da29d[_0x2a337d(0x200)]('...\x20+'+(_0x410dd0[_0x2a337d(0x21c)]-_0x3e0200)+'\x20more\x20files\x20with\x20matches');}if(_0x41599e['length']>0x0){const _0x38a151=0x1e;_0x2da29d['push'](..._0x41599e[_0x2a337d(0x1b6)](0x0,_0x38a151)),_0x41599e[_0x2a337d(0x21c)]>_0x38a151&&_0x2da29d[_0x2a337d(0x200)](_0x2a337d(0x1e4)+(_0x41599e[_0x2a337d(0x21c)]-_0x38a151)+_0x2a337d(0x1b1));}const _0x3b921d=_0x4a3a1d[_0x2a337d(0x21c)];return _0x2da29d[_0x2a337d(0x200)]('\x0a('+_0x3b921d+_0x2a337d(0x1f6)+(_0x410dd0['length']||'?')+_0x2a337d(0x1d8)),_0x2da29d['join']('\x0a');}function filterFind(_0x3f3eb8){const _0x56e6da=a0_0x140e36,_0x47d432=_0x3f3eb8[_0x56e6da(0x1e3)]('\x0a')[_0x56e6da(0x1b3)](_0x499fcd=>_0x499fcd[_0x56e6da(0x1f1)]()[_0x56e6da(0x21c)]>0x0);if(_0x47d432['length']===0x0)return _0x56e6da(0x1b0);if(_0x47d432[_0x56e6da(0x21c)]<=0x32)return _0x3f3eb8['trim']();const _0x2f85b0={};for(const _0x4f60ed of _0x47d432){const _0x11d155=path[_0x56e6da(0x1b4)](_0x4f60ed[_0x56e6da(0x1f1)]())||'.';_0x2f85b0[_0x11d155]=(_0x2f85b0[_0x11d155]||0x0)+0x1;}const _0x938998=Object[_0x56e6da(0x20c)](_0x2f85b0)[_0x56e6da(0x1ae)]((_0x3117f9,_0x47a069)=>_0x47a069[0x1]-_0x3117f9[0x1]),_0x525667=[_0x47d432[_0x56e6da(0x21c)]+_0x56e6da(0x1ff)+_0x938998[_0x56e6da(0x21c)]+'\x20directories',''],_0x1328bf=0x1e;for(const [_0x5c76e5,_0x11eeb9]of _0x938998[_0x56e6da(0x1b6)](0x0,_0x1328bf)){_0x525667[_0x56e6da(0x200)]('\x20\x20'+_0x5c76e5+_0x56e6da(0x201)+_0x11eeb9+_0x56e6da(0x1d8));}return _0x938998[_0x56e6da(0x21c)]>_0x1328bf&&_0x525667['push'](_0x56e6da(0x1c4)+(_0x938998[_0x56e6da(0x21c)]-_0x1328bf)+'\x20more\x20directories'),_0x525667[_0x56e6da(0x1c3)]('\x0a');}
|
package/mcp.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function a0_0x411a(){const _0x9def2d=['result','5tCIIrJ','defineProperty','__esModule','write','mcp-tool-call','mcp\x20tool\x20(id:\x20','inherit','8MwXThl','getOwnPropertyDescriptor','hasOwnProperty','default','./tracker','trim','create','1345326FPczOv','pipe','tracker','content','runMcpProxy','createInterface','[TrimPrompt]\x20MCP\x20Server\x20Spawn\x20Error:\x20','347246quSeqJ','type','4003097ujcZuK','message','2894eFJJMo','9345950hDvEtQ','getOwnPropertyNames','stdin','child_process','configurable','string','compressOutput','__setModuleDefault','error','__importStar','getConfig','stdout','jsonrpc','writable','2.0','__createBinding','line','stringify','close','prototype','55532OIyKqf','length','call','4545333pXhruN','isArray','text','39fgqqlM','redaction_enabled','spawn'];a0_0x411a=function(){return _0x9def2d;};return a0_0x411a();}function a0_0x47fe(_0x3d2c16,_0x440d07){_0x3d2c16=_0x3d2c16-0x1e1;const _0x411a22=a0_0x411a();let _0x47fe4a=_0x411a22[_0x3d2c16];return _0x47fe4a;}const a0_0xed1943=a0_0x47fe;(function(_0xd6be5e,_0x1ea798){const _0x379184=a0_0x47fe,_0x160e71=_0xd6be5e();while(!![]){try{const _0x22ac92=parseInt(_0x379184(0x203))/0x1+-parseInt(_0x379184(0x1ff))/0x2+-parseInt(_0x379184(0x1e6))/0x3*(parseInt(_0x379184(0x218))/0x4)+-parseInt(_0x379184(0x1ea))/0x5*(parseInt(_0x379184(0x1f8))/0x6)+parseInt(_0x379184(0x201))/0x7*(-parseInt(_0x379184(0x1f1))/0x8)+parseInt(_0x379184(0x1e3))/0x9+parseInt(_0x379184(0x204))/0xa;if(_0x22ac92===_0x1ea798)break;else _0x160e71['push'](_0x160e71['shift']());}catch(_0x51b32b){_0x160e71['push'](_0x160e71['shift']());}}}(a0_0x411a,0x475ec));var __createBinding=this&&this[a0_0xed1943(0x213)]||(Object[a0_0xed1943(0x1f7)]?function(_0x25fc36,_0x303df1,_0x466eb5,_0x31570){const _0x1a290f=a0_0xed1943;if(_0x31570===undefined)_0x31570=_0x466eb5;var _0x4b3c9f=Object[_0x1a290f(0x1f2)](_0x303df1,_0x466eb5);(!_0x4b3c9f||('get'in _0x4b3c9f?!_0x303df1[_0x1a290f(0x1ec)]:_0x4b3c9f[_0x1a290f(0x211)]||_0x4b3c9f[_0x1a290f(0x208)]))&&(_0x4b3c9f={'enumerable':!![],'get':function(){return _0x303df1[_0x466eb5];}}),Object['defineProperty'](_0x25fc36,_0x31570,_0x4b3c9f);}:function(_0x5ae31c,_0x59c321,_0x1851bf,_0x2b8073){if(_0x2b8073===undefined)_0x2b8073=_0x1851bf;_0x5ae31c[_0x2b8073]=_0x59c321[_0x1851bf];}),__setModuleDefault=this&&this[a0_0xed1943(0x20b)]||(Object['create']?function(_0x15a6ba,_0x2f607d){const _0x2aa2bf=a0_0xed1943;Object[_0x2aa2bf(0x1eb)](_0x15a6ba,_0x2aa2bf(0x1f4),{'enumerable':!![],'value':_0x2f607d});}:function(_0xff119d,_0x35f6b7){_0xff119d['default']=_0x35f6b7;}),__importStar=this&&this[a0_0xed1943(0x20d)]||(function(){var _0x1a3f18=function(_0x466d04){const _0x50cb6f=a0_0x47fe;return _0x1a3f18=Object[_0x50cb6f(0x205)]||function(_0x56da74){const _0x3064b1=_0x50cb6f;var _0x43a204=[];for(var _0x5af62b in _0x56da74)if(Object[_0x3064b1(0x217)][_0x3064b1(0x1f3)][_0x3064b1(0x1e2)](_0x56da74,_0x5af62b))_0x43a204[_0x43a204['length']]=_0x5af62b;return _0x43a204;},_0x1a3f18(_0x466d04);};return function(_0x3fb47b){const _0x5176d8=a0_0x47fe;if(_0x3fb47b&&_0x3fb47b['__esModule'])return _0x3fb47b;var _0x5c202d={};if(_0x3fb47b!=null){for(var _0x2b2e7d=_0x1a3f18(_0x3fb47b),_0x289e00=0x0;_0x289e00<_0x2b2e7d[_0x5176d8(0x1e1)];_0x289e00++)if(_0x2b2e7d[_0x289e00]!==_0x5176d8(0x1f4))__createBinding(_0x5c202d,_0x3fb47b,_0x2b2e7d[_0x289e00]);}return __setModuleDefault(_0x5c202d,_0x3fb47b),_0x5c202d;};}());Object['defineProperty'](exports,a0_0xed1943(0x1ec),{'value':!![]}),exports[a0_0xed1943(0x1fc)]=runMcpProxy;const child_process_1=require(a0_0xed1943(0x207)),readline=__importStar(require('readline')),filters_1=require('./filters'),tracker_1=require(a0_0xed1943(0x1f5));function runMcpProxy(_0x2f2c9f,_0x3ed8ca){const _0x5bcd97=a0_0xed1943,_0x13be94=(0x0,child_process_1[_0x5bcd97(0x1e8)])(_0x2f2c9f,_0x3ed8ca,{'stdio':['pipe',_0x5bcd97(0x1f9),_0x5bcd97(0x1f0)]});process[_0x5bcd97(0x206)][_0x5bcd97(0x1f9)](_0x13be94[_0x5bcd97(0x206)]);const _0x273b60=readline[_0x5bcd97(0x1fd)]({'input':_0x13be94[_0x5bcd97(0x20f)],'terminal':![]});_0x273b60['on'](_0x5bcd97(0x214),_0x4069f1=>{const _0x4ba912=_0x5bcd97;try{const _0x27ea76=JSON['parse'](_0x4069f1);if(_0x27ea76&&_0x27ea76[_0x4ba912(0x210)]===_0x4ba912(0x212)&&_0x27ea76['id']!==undefined&&_0x27ea76['result']&&Array[_0x4ba912(0x1e4)](_0x27ea76[_0x4ba912(0x1e9)][_0x4ba912(0x1fb)])){let _0x45fde9=![];for(const _0x3abed8 of _0x27ea76['result'][_0x4ba912(0x1fb)]){if(_0x3abed8[_0x4ba912(0x200)]==='text'&&typeof _0x3abed8[_0x4ba912(0x1e5)]===_0x4ba912(0x209)&&_0x3abed8[_0x4ba912(0x1e5)][_0x4ba912(0x1f6)]()[_0x4ba912(0x1e1)]>0x0){const _0x1456a6=_0x3abed8[_0x4ba912(0x1e5)],_0x20a02e=(0x0,filters_1[_0x4ba912(0x20a)])(_0x4ba912(0x1ee),_0x1456a6,'',tracker_1[_0x4ba912(0x1fa)][_0x4ba912(0x20e)]()[_0x4ba912(0x1e7)]);tracker_1[_0x4ba912(0x1fa)]['logExecution'](_0x4ba912(0x1ef)+_0x27ea76['id']+')',_0x1456a6,_0x20a02e,0x0),_0x3abed8[_0x4ba912(0x1e5)]=_0x20a02e,_0x45fde9=!![];}}_0x45fde9?process[_0x4ba912(0x20f)]['write'](JSON[_0x4ba912(0x215)](_0x27ea76)+'\x0a'):process[_0x4ba912(0x20f)][_0x4ba912(0x1ed)](_0x4069f1+'\x0a');}else process[_0x4ba912(0x20f)][_0x4ba912(0x1ed)](_0x4069f1+'\x0a');}catch{process[_0x4ba912(0x20f)][_0x4ba912(0x1ed)](_0x4069f1+'\x0a');}}),_0x13be94['on'](_0x5bcd97(0x216),_0x2696b1=>{process['exit'](_0x2696b1||0x0);}),_0x13be94['on'](_0x5bcd97(0x20c),_0x5ad816=>{const _0x2cd4bf=_0x5bcd97;console['error'](_0x2cd4bf(0x1fe)+_0x5ad816[_0x2cd4bf(0x202)]),process['exit'](0x1);});}
|
package/package.json
CHANGED
package/redactor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a0_0x16edc7=a0_0x5ba5;function a0_0x36e4(){const _0x1fb519=['[REDACTED_PRIVATE_KEY]','IPv4\x20Address\x20(non-local)','Basic\x20Auth','Basic\x20[REDACTED_AUTH]','$1=[REDACTED_CREDENTIAL]','aws_secret','JWT\x20Token','2QLxemb','generic_credential','GitHub\x20Token','4706980spjuFU','[REDACTED_JWT]','697330teHPxw','6TFIyvj','[REDACTED_ANTHROPIC_KEY]','rules','openai_key','Redactor','SendGrid\x20Key','Twilio\x20Key','includes','615875FVDSTc','GCP\x20Service\x20Account\x20Key','3411712zBRkzr','sendgrid_key','[REDACTED_EMAIL]','Generic\x20API\x20Key/Secret/Password','Slack\x20Token','$1=[REDACTED_AWS_SECRET]','twilio_key','[REDACTED_IP]','db_connection','[REDACTED_SENDGRID_KEY]','gcp_key','ip_address','Bearer\x20Token','loadDefaultRules','email','[REDACTED_AWS_KEY]','[REDACTED_DB_CONNECTION]','regex','jwt','[REDACTED_SLACK_TOKEN]','AWS\x20Access\x20Key','\x22private_key\x22:\x20\x22[REDACTED_GCP_PRIVATE_KEY]\x22','1120042bIDtZC','Database\x20Connection\x20String','5196807qwkLKl','defineProperty','Azure\x20Connection\x20String','Email\x20Address','bearer','match','redactor','AWS\x20Secret\x20Key','length','slack_token','type','text','redact','OpenAI\x20API\x20Key','11MvxUtk','384SLplpm','18177LAuPIt','push','Private\x20Key\x20Block','aws_key','private_key','anthropic_key','[REDACTED_TWILIO_KEY]'];a0_0x36e4=function(){return _0x1fb519;};return a0_0x36e4();}(function(_0x4eefa5,_0x5cf546){const _0xa0750b=a0_0x5ba5,_0x1d439d=_0x4eefa5();while(!![]){try{const _0x4a1206=parseInt(_0xa0750b(0x1da))/0x1*(parseInt(_0xa0750b(0x1df))/0x2)+parseInt(_0xa0750b(0x1cc))/0x3*(-parseInt(_0xa0750b(0x1cb))/0x4)+parseInt(_0xa0750b(0x1e8))/0x5*(parseInt(_0xa0750b(0x1e0))/0x6)+parseInt(_0xa0750b(0x200))/0x7+parseInt(_0xa0750b(0x1ea))/0x8+parseInt(_0xa0750b(0x202))/0x9+-parseInt(_0xa0750b(0x1dd))/0xa*(parseInt(_0xa0750b(0x1ca))/0xb);if(_0x4a1206===_0x5cf546)break;else _0x1d439d['push'](_0x1d439d['shift']());}catch(_0x4013b4){_0x1d439d['push'](_0x1d439d['shift']());}}}(a0_0x36e4,0xe38c4));function a0_0x5ba5(_0x2f019d,_0x4b02d4){_0x2f019d=_0x2f019d-0x1c8;const _0x36e494=a0_0x36e4();let _0x5ba594=_0x36e494[_0x2f019d];return _0x5ba594;}Object[a0_0x16edc7(0x203)](exports,'__esModule',{'value':!![]}),exports['redactor']=exports[a0_0x16edc7(0x1e4)]=void 0x0;class Redactor{[a0_0x16edc7(0x1e2)]=[];constructor(){this['loadDefaultRules']();}[a0_0x16edc7(0x1f7)](){const _0x3e9fac=a0_0x16edc7;this['rules']=[{'name':_0x3e9fac(0x1fe),'type':_0x3e9fac(0x1cf),'regex':/\b(AKIA[0-9A-Z]{16})\b/g,'replacement':_0x3e9fac(0x1f9)},{'name':_0x3e9fac(0x209),'type':_0x3e9fac(0x1d8),'regex':/(aws_secret_access_key|AWS_SECRET_ACCESS_KEY)[\s:=]+[A-Za-z0-9/+=]{30,}/gi,'replacement':_0x3e9fac(0x1ef)},{'name':_0x3e9fac(0x1e9),'type':_0x3e9fac(0x1f4),'regex':/"private_key"\s*:\s*"-----BEGIN[^"]+-----END[^"]*"/g,'replacement':_0x3e9fac(0x1ff)},{'name':_0x3e9fac(0x204),'type':'azure_conn','regex':/DefaultEndpointsProtocol=https?;AccountName=[^;]+;AccountKey=[^;]+;?[^\s]*/gi,'replacement':'[REDACTED_AZURE_CONNECTION]'},{'name':'Anthropic\x20API\x20Key','type':_0x3e9fac(0x1d1),'regex':/\bsk-ant-api\d{2}-[A-Za-z0-9_-]{20,}\b/g,'replacement':_0x3e9fac(0x1e1)},{'name':_0x3e9fac(0x1c9),'type':_0x3e9fac(0x1e3),'regex':/\b(sk-proj-[A-Za-z0-9_-]{20,}|sk-[A-Za-z0-9]{32,})\b/g,'replacement':'[REDACTED_OPENAI_KEY]'},{'name':_0x3e9fac(0x1dc),'type':'github_token','regex':/\b(ghp_[A-Za-z0-9]{20,}|gho_[A-Za-z0-9]{20,}|github_pat_[A-Za-z0-9_]{22,})\b/g,'replacement':'[REDACTED_GITHUB_TOKEN]'},{'name':_0x3e9fac(0x1ee),'type':_0x3e9fac(0x20b),'regex':/\b(xoxb-[0-9A-Za-z-]+|xoxp-[0-9A-Za-z-]+|xapp-[0-9A-Za-z-]+)\b/g,'replacement':_0x3e9fac(0x1fd)},{'name':'Stripe\x20Key','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':'[REDACTED_STRIPE_KEY]'},{'name':_0x3e9fac(0x1e6),'type':_0x3e9fac(0x1f0),'regex':/\bSK[0-9a-f]{32}\b/g,'replacement':_0x3e9fac(0x1d2)},{'name':_0x3e9fac(0x1e5),'type':_0x3e9fac(0x1eb),'regex':/\bSG\.[A-Za-z0-9_-]{22,}\.[A-Za-z0-9_-]{22,}\b/g,'replacement':_0x3e9fac(0x1f3)},{'name':_0x3e9fac(0x1ce),'type':_0x3e9fac(0x1d0),'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':_0x3e9fac(0x1d3)},{'name':_0x3e9fac(0x1d9),'type':_0x3e9fac(0x1fc),'regex':/\beyJ[A-Za-z0-9_-]{10,}\.eyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'replacement':_0x3e9fac(0x1de)},{'name':_0x3e9fac(0x1f6),'type':_0x3e9fac(0x206),'regex':/Bearer\s+[A-Za-z0-9_\-.]{20,}/gi,'replacement':'Bearer\x20[REDACTED_TOKEN]'},{'name':_0x3e9fac(0x1d5),'type':'basic_auth','regex':/Basic\s+[A-Za-z0-9+/=]{10,}/gi,'replacement':_0x3e9fac(0x1d6)},{'name':_0x3e9fac(0x201),'type':_0x3e9fac(0x1f2),'regex':/(mongodb(\+srv)?|postgres|postgresql|mysql|redis|amqp|sqlite):\/\/[A-Za-z0-9_]+:[^@\s\n]+@[^\s\n]+/gi,'replacement':_0x3e9fac(0x1fa)},{'name':_0x3e9fac(0x1ed),'type':_0x3e9fac(0x1db),'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':_0x3e9fac(0x1d7)},{'name':_0x3e9fac(0x1d4),'type':_0x3e9fac(0x1f5),'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':_0x3e9fac(0x1f1),'alert':![]},{'name':_0x3e9fac(0x205),'type':_0x3e9fac(0x1f8),'regex':/\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b/g,'replacement':_0x3e9fac(0x1ec),'alert':![]}];}[a0_0x16edc7(0x1c8)](_0x1dae6d){const _0x2e5a96=a0_0x16edc7;return this['redactWithAudit'](_0x1dae6d)[_0x2e5a96(0x20d)];}['redactWithAudit'](_0x56999a){const _0x231e48=a0_0x16edc7;let _0x3f8ccb=_0x56999a,_0x158f36=0x0;const _0x163997=[];for(const _0x369d5a of this[_0x231e48(0x1e2)]){const _0x50ab37=_0x3f8ccb[_0x231e48(0x207)](_0x369d5a['regex']);_0x50ab37&&_0x50ab37[_0x231e48(0x20a)]>0x0&&(_0x369d5a['alert']!==![]&&(_0x158f36+=_0x50ab37[_0x231e48(0x20a)],!_0x163997[_0x231e48(0x1e7)](_0x369d5a[_0x231e48(0x20c)])&&_0x163997[_0x231e48(0x1cd)](_0x369d5a[_0x231e48(0x20c)])),_0x3f8ccb=_0x3f8ccb['replace'](_0x369d5a[_0x231e48(0x1fb)],_0x369d5a['replacement']));}return{'text':_0x3f8ccb,'secretsFound':_0x158f36,'secretTypes':_0x163997};}}exports[a0_0x16edc7(0x1e4)]=Redactor,exports[a0_0x16edc7(0x208)]=new Redactor();
|
package/seed.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a0_0x583721=a0_0x45e6;function a0_0x45e6(_0x4b05cb,_0x514e2c){_0x4b05cb=_0x4b05cb-0x113;const _0x376d43=a0_0x376d();let _0x45e654=_0x376d43[_0x4b05cb];return _0x45e654;}(function(_0x190759,_0x5b577b){const _0x321e5b=a0_0x45e6,_0x257976=_0x190759();while(!![]){try{const _0x39d2e3=parseInt(_0x321e5b(0x12b))/0x1*(-parseInt(_0x321e5b(0x11e))/0x2)+parseInt(_0x321e5b(0x11f))/0x3+parseInt(_0x321e5b(0x11a))/0x4*(-parseInt(_0x321e5b(0x120))/0x5)+parseInt(_0x321e5b(0x118))/0x6*(parseInt(_0x321e5b(0x130))/0x7)+parseInt(_0x321e5b(0x135))/0x8+-parseInt(_0x321e5b(0x133))/0x9*(parseInt(_0x321e5b(0x128))/0xa)+parseInt(_0x321e5b(0x121))/0xb;if(_0x39d2e3===_0x5b577b)break;else _0x257976['push'](_0x257976['shift']());}catch(_0x4056f0){_0x257976['push'](_0x257976['shift']());}}}(a0_0x376d,0x54151));Object['defineProperty'](exports,a0_0x583721(0x11d),{'value':!![]});const tracker_1=require(a0_0x583721(0x12a));function a0_0x376d(){const _0x4d10f4=['logExecution','All\x20303\x20tests\x20passed\x20in\x204.22s.','log','Successfully\x20built\x20image.','gemini-1-5-pro','pytest\x20tests/app','claude-3-opus','3819306ufsAeo','test_auth.py\x20PASS\x0a','2047316xlhxql','docker\x20build:\x201420\x20packages\x20added.\x20Successfully\x20built\x20image.','Sending\x20build\x20context\x20to\x20Docker\x20daemon...\x0a','__esModule','586BlcOqH','2042361yastaP','5QimBmQ','1592283wNZdkS','pytest\x20app:\x20303\x20tests\x20passed\x20in\x204.22s.','Test\x20suite\x20run\x20starting...\x0a','repeat','Step\x202/10\x20:\x20COPY\x20package.json\x20.\x0a','Seeding\x20TrimPrompt\x20database\x20with\x20mock\x20LLM\x20command\x20telemetry...','Step\x203/10\x20:\x20RUN\x20npm\x20install\x0a','7990xAracB','docker\x20build\x20.','./tracker','778xWistU','gpt-4o','tracker','Step\x201/10\x20:\x20FROM\x20node:20\x0a','[INFO]\x20Building\x20modules...\x0a[SUCCESS]\x20Compiled\x20512\x20modules.\x20(repeated\x20400\x20times)','7sRWpQT','Database\x20successfully\x20seeded!','Compilation\x20Output:\x0a','5085smplTx','added\x201420\x20packages\x20in\x2014s\x0a','588224wzuBWo','Optimizing\x20assets...\x0a'];a0_0x376d=function(){return _0x4d10f4;};return a0_0x376d();}console[a0_0x583721(0x113)](a0_0x583721(0x126)),process.env.TRIMPROMPT_MODEL=a0_0x583721(0x117),tracker_1['tracker']['logExecution']('npm\x20run\x20build',a0_0x583721(0x132)+'[INFO]\x20Building\x20modules...\x0a'+a0_0x583721(0x136)+'[SUCCESS]\x20Compiled\x20512\x20modules.\x0a'[a0_0x583721(0x124)](0x190),a0_0x583721(0x12f),0x0),process.env.TRIMPROMPT_MODEL=a0_0x583721(0x12c),tracker_1[a0_0x583721(0x12d)]['logExecution'](a0_0x583721(0x116),a0_0x583721(0x123)+a0_0x583721(0x119)+'test_db.py\x20PASS\x0a'+'test_api.py\x20PASS\x0a'[a0_0x583721(0x124)](0x12c)+a0_0x583721(0x138),a0_0x583721(0x122),0x0),process.env.TRIMPROMPT_MODEL=a0_0x583721(0x115),tracker_1['tracker'][a0_0x583721(0x137)](a0_0x583721(0x129),a0_0x583721(0x11c)+a0_0x583721(0x12e)+a0_0x583721(0x125)+a0_0x583721(0x127)+a0_0x583721(0x134)['repeat'](0x3)+a0_0x583721(0x114),a0_0x583721(0x11b),0x0),console[a0_0x583721(0x113)](a0_0x583721(0x131));
|
package/shims.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a0_0x3127c0=a0_0x58ff;(function(_0x582f43,_0x3ad7ba){const _0x3195b3=a0_0x58ff,_0xb6ac78=_0x582f43();while(!![]){try{const _0x544f77=parseInt(_0x3195b3(0x1dd))/0x1+parseInt(_0x3195b3(0x1d0))/0x2*(parseInt(_0x3195b3(0x1dc))/0x3)+parseInt(_0x3195b3(0x1c6))/0x4+-parseInt(_0x3195b3(0x1c0))/0x5*(parseInt(_0x3195b3(0x1b7))/0x6)+-parseInt(_0x3195b3(0x185))/0x7+parseInt(_0x3195b3(0x1b2))/0x8+-parseInt(_0x3195b3(0x1d1))/0x9*(parseInt(_0x3195b3(0x1b1))/0xa);if(_0x544f77===_0x3ad7ba)break;else _0xb6ac78['push'](_0xb6ac78['shift']());}catch(_0x2ac0bb){_0xb6ac78['push'](_0xb6ac78['shift']());}}}(a0_0x27c7,0x2ff31));var __createBinding=this&&this[a0_0x3127c0(0x187)]||(Object[a0_0x3127c0(0x197)]?function(_0x3c09b8,_0x382707,_0x5dc110,_0x11c96d){const _0xd86836=a0_0x3127c0;if(_0x11c96d===undefined)_0x11c96d=_0x5dc110;var _0x5bed1e=Object['getOwnPropertyDescriptor'](_0x382707,_0x5dc110);(!_0x5bed1e||(_0xd86836(0x19f)in _0x5bed1e?!_0x382707[_0xd86836(0x1df)]:_0x5bed1e['writable']||_0x5bed1e[_0xd86836(0x177)]))&&(_0x5bed1e={'enumerable':!![],'get':function(){return _0x382707[_0x5dc110];}}),Object[_0xd86836(0x191)](_0x3c09b8,_0x11c96d,_0x5bed1e);}:function(_0xb90fb0,_0x5216c1,_0x155ef4,_0x53a5a0){if(_0x53a5a0===undefined)_0x53a5a0=_0x155ef4;_0xb90fb0[_0x53a5a0]=_0x5216c1[_0x155ef4];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object['create']?function(_0x3e9272,_0x30744e){const _0x3d8225=a0_0x3127c0;Object[_0x3d8225(0x191)](_0x3e9272,_0x3d8225(0x1a3),{'enumerable':!![],'value':_0x30744e});}:function(_0x39bec7,_0x29da65){const _0x58dd11=a0_0x3127c0;_0x39bec7[_0x58dd11(0x1a3)]=_0x29da65;}),__importStar=this&&this[a0_0x3127c0(0x1bd)]||(function(){var _0x38595c=function(_0x54286e){return _0x38595c=Object['getOwnPropertyNames']||function(_0x4577c3){const _0x44c801=a0_0x58ff;var _0x3c1a57=[];for(var _0x979fac in _0x4577c3)if(Object['prototype']['hasOwnProperty']['call'](_0x4577c3,_0x979fac))_0x3c1a57[_0x3c1a57[_0x44c801(0x1de)]]=_0x979fac;return _0x3c1a57;},_0x38595c(_0x54286e);};return function(_0x266751){const _0x2ae1c6=a0_0x58ff;if(_0x266751&&_0x266751[_0x2ae1c6(0x1df)])return _0x266751;var _0x3e1e17={};if(_0x266751!=null){for(var _0x319a42=_0x38595c(_0x266751),_0x5490a3=0x0;_0x5490a3<_0x319a42[_0x2ae1c6(0x1de)];_0x5490a3++)if(_0x319a42[_0x5490a3]!==_0x2ae1c6(0x1a3))__createBinding(_0x3e1e17,_0x266751,_0x319a42[_0x5490a3]);}return __setModuleDefault(_0x3e1e17,_0x266751),_0x3e1e17;};}());Object[a0_0x3127c0(0x191)](exports,a0_0x3127c0(0x1df),{'value':!![]}),exports['installShims']=installShims,exports[a0_0x3127c0(0x17a)]=uninstallShims;const fs=__importStar(require('fs')),path=__importStar(require('path')),os=__importStar(require('os')),SHIMMED_COMMANDS=['ls','tree',a0_0x3127c0(0x18f),a0_0x3127c0(0x1b8),a0_0x3127c0(0x1bb),'rg','ruff',a0_0x3127c0(0x1a8),'gh','glab',a0_0x3127c0(0x193),a0_0x3127c0(0x1a2),a0_0x3127c0(0x1da),a0_0x3127c0(0x19b),a0_0x3127c0(0x1c8),'kubectl','docker','pytest',a0_0x3127c0(0x1c5),a0_0x3127c0(0x17b),'go',a0_0x3127c0(0x182)],PROFILE_MARKER='TrimPrompt\x20Shims\x20PATH';function getExecSync(){const _0x377f1d=a0_0x3127c0;return require(_0x377f1d(0x18e))[_0x377f1d(0x17e)];}function a0_0x58ff(_0x2cf040,_0x2ad3fe){_0x2cf040=_0x2cf040-0x172;const _0x27c7b5=a0_0x27c7();let _0x58ff28=_0x27c7b5[_0x2cf040];return _0x58ff28;}function getExecFileSync(){const _0x11018a=a0_0x3127c0;return require('child_process')[_0x11018a(0x17c)];}function ensureProfileContains(_0x56a82e,_0x3b4171,_0x4cfb6f){const _0x4b25d6=a0_0x3127c0;try{const _0x3f0754=path[_0x4b25d6(0x1d9)](_0x56a82e);!fs[_0x4b25d6(0x172)](_0x3f0754)&&fs[_0x4b25d6(0x1e0)](_0x3f0754,{'recursive':!![]});if(fs[_0x4b25d6(0x172)](_0x56a82e)){const _0x4eec64=fs[_0x4b25d6(0x1e1)](_0x56a82e,_0x4b25d6(0x180));if(_0x4eec64[_0x4b25d6(0x1c9)](_0x3b4171))return;fs[_0x4b25d6(0x186)](_0x56a82e,_0x4cfb6f,_0x4b25d6(0x180));}else fs['writeFileSync'](_0x56a82e,_0x4cfb6f,_0x4b25d6(0x180));}catch{}}function removeProfileBlock(_0x36513b,_0x17a8aa){const _0x51f454=a0_0x3127c0;try{if(!fs[_0x51f454(0x172)](_0x36513b))return;const _0x42c8c3=fs['readFileSync'](_0x36513b,_0x51f454(0x180));if(!_0x42c8c3['includes'](_0x17a8aa))return;const _0x3ee397=_0x42c8c3[_0x51f454(0x198)]('\x0a'),_0x1a8789=[];let _0x4ae3f0=![];for(let _0x226233=0x0;_0x226233<_0x3ee397[_0x51f454(0x1de)];_0x226233++){if(_0x3ee397[_0x226233][_0x51f454(0x1c9)](_0x17a8aa)){_0x4ae3f0=!![];continue;}if(_0x4ae3f0){_0x4ae3f0=![];continue;}_0x1a8789[_0x51f454(0x196)](_0x3ee397[_0x226233]);}const _0x404cbf=_0x1a8789[_0x51f454(0x190)]('\x0a')[_0x51f454(0x1b3)](/\n{3,}/g,'\x0a\x0a');fs[_0x51f454(0x1a0)](_0x36513b,_0x404cbf,_0x51f454(0x180));}catch{}}function collectPowerShellProfiles(){const _0x117281=a0_0x3127c0,_0x4e6cb8=getExecSync(),_0x27a27e=[],_0x21889b=[['powershell',_0x117281(0x1db)],[_0x117281(0x1e3),_0x117281(0x19a)]];try{_0x4e6cb8('pwsh\x20-NoProfile\x20-Command\x20\x22exit\x200\x22',{'stdio':_0x117281(0x1cf)}),_0x21889b[_0x117281(0x196)](['pwsh',_0x117281(0x19a)]);}catch{}for(const [_0x2fd13f,_0x1d2afc]of _0x21889b){try{const _0x2c41b1=_0x4e6cb8(_0x2fd13f+'\x20-NoProfile\x20-Command\x20\x22'+_0x1d2afc+'\x22',{'encoding':'utf8'})[_0x117281(0x195)]();_0x2c41b1&&!_0x27a27e[_0x117281(0x1aa)](_0x56f307=>_0x56f307[_0x117281(0x1e6)]()===_0x2c41b1[_0x117281(0x1e6)]())&&_0x27a27e['push'](_0x2c41b1);}catch{}}return _0x27a27e;}function getBashProfilesWindows(){const _0x195c15=a0_0x3127c0,_0x37c734=os[_0x195c15(0x192)]();return[_0x195c15(0x19d),'.bash_profile']['map'](_0x4cda86=>path[_0x195c15(0x190)](_0x37c734,_0x4cda86));}function getBroadcastCommand(){const _0x4cf77e=a0_0x3127c0;return _0x4cf77e(0x1cd);}function installShims(){const _0x3a9b2d=a0_0x3127c0,_0xf78e7=path[_0x3a9b2d(0x190)](os[_0x3a9b2d(0x192)](),_0x3a9b2d(0x1d3),_0x3a9b2d(0x1d6));try{!fs[_0x3a9b2d(0x172)](_0xf78e7)&&fs[_0x3a9b2d(0x1e0)](_0xf78e7,{'recursive':!![]});const _0x33adfb=os[_0x3a9b2d(0x1a7)]()==='win32';for(const _0x8eed13 of SHIMMED_COMMANDS){if(_0x33adfb){const _0x569e49=path[_0x3a9b2d(0x190)](_0xf78e7,_0x8eed13+'.cmd'),_0x465146=process.env.APPDATA?path[_0x3a9b2d(0x190)](process.env.APPDATA,'npm'):'',_0xcfbb5a=_0x465146?'if\x20exist\x20\x22'+path['join'](_0x465146,'trim.cmd')+'\x22':_0x3a9b2d(0x188),_0x21d229=[_0x3a9b2d(0x176),_0xcfbb5a+'\x20(','\x20\x20trim\x20'+_0x8eed13+_0x3a9b2d(0x1d7),_0x3a9b2d(0x175),'\x20\x20set\x20\x22PATH=%PATH:'+_0xf78e7+_0x3a9b2d(0x1ba),'\x20\x20'+_0x8eed13+_0x3a9b2d(0x1d7),')']['join']('\x0d\x0a')+'\x0d\x0a';fs['writeFileSync'](_0x569e49,_0x21d229,'utf8');const _0x294145=path[_0x3a9b2d(0x190)](_0xf78e7,_0x8eed13+'.ps1'),_0x3045af=_0x3a9b2d(0x1d5)+_0x8eed13+_0x3a9b2d(0x199)+_0x8eed13+_0x3a9b2d(0x178);fs['writeFileSync'](_0x294145,_0x3045af,_0x3a9b2d(0x180));const _0x400c5c=path['join'](_0xf78e7,_0x8eed13),_0x376623=_0xf78e7[_0x3a9b2d(0x1b3)](/\\/g,'/')[_0x3a9b2d(0x1b3)](/^([A-Za-z]):/,(_0x105651,_0x4c271e)=>'/'+_0x4c271e[_0x3a9b2d(0x1e6)]()),_0x592f70=_0x3a9b2d(0x1b5)+_0x8eed13+'\x20\x22$@\x22;\x20else\x20CLEAN_PATH=$(echo\x20\x22$PATH\x22\x20|\x20sed\x20\x22s|'+_0x376623+':||g\x22);\x20exec\x20env\x20PATH=\x22$CLEAN_PATH\x22\x20'+_0x8eed13+'\x20\x22$@\x22;\x20fi\x0a';fs[_0x3a9b2d(0x1a0)](_0x400c5c,_0x592f70,_0x3a9b2d(0x180));}else{const _0x19017e=path[_0x3a9b2d(0x190)](_0xf78e7,_0x8eed13),_0x30da69=_0x3a9b2d(0x1b5)+_0x8eed13+'\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'+_0x8eed13+_0x3a9b2d(0x184);fs[_0x3a9b2d(0x1a0)](_0x19017e,_0x30da69,_0x3a9b2d(0x180)),fs[_0x3a9b2d(0x1ae)](_0x19017e,_0x3a9b2d(0x1af));}}let _0x4388fc=![],_0xce061c='';if(_0x33adfb)try{const _0x4c91a4=getExecSync(),_0x49aa66=_0x3a9b2d(0x1b6)+PROFILE_MARKER+_0x3a9b2d(0x1e2)+_0xf78e7+_0x3a9b2d(0x1bf),_0x81240e=collectPowerShellProfiles();for(const _0x563558 of _0x81240e){ensureProfileContains(_0x563558,_0xf78e7,_0x49aa66);}try{const _0x50a0db=getExecFileSync(),_0x2fbbda=_0x3a9b2d(0x1a5)+_0xf78e7+'\x22\x20set\x20\x22PATH='+_0xf78e7+_0x3a9b2d(0x181),_0x4923f7=_0x3a9b2d(0x17d);let _0x16c3af='';try{const _0x3014a5=_0x3a9b2d(0x18d)+_0x4923f7+_0x3a9b2d(0x1ce);_0x16c3af=_0x50a0db('powershell.exe',['-NoProfile',_0x3a9b2d(0x1d4),_0x3014a5],{'encoding':'utf8','stdio':[_0x3a9b2d(0x1a6),_0x3a9b2d(0x1a6),'ignore']})[_0x3a9b2d(0x195)]();}catch{}if(!_0x16c3af['includes'](_0xf78e7)){const _0x27e658=_0x16c3af?_0x16c3af+_0x3a9b2d(0x17f)+_0x2fbbda:_0x2fbbda,_0x39de75=_0x3a9b2d(0x1be)+_0x4923f7+_0x3a9b2d(0x174)+_0x4923f7+_0x3a9b2d(0x1e4)+_0x27e658+'\x27';_0x50a0db(_0x3a9b2d(0x1c1),[_0x3a9b2d(0x19c),'-Command',_0x39de75],{'stdio':_0x3a9b2d(0x1cf)});}}catch{}try{const _0x348300=_0xf78e7[_0x3a9b2d(0x1b3)](/\\/g,'/')['replace'](/^([A-Za-z]):/,(_0x5e2203,_0x53ed69)=>'/'+_0x53ed69[_0x3a9b2d(0x1e6)]()),_0x2fcce0=_0x3a9b2d(0x1b6)+PROFILE_MARKER+_0x3a9b2d(0x1a4)+_0x348300+_0x3a9b2d(0x179),_0x544936=getBashProfilesWindows();let _0x52c974=![];for(const _0x36a309 of _0x544936){fs['existsSync'](_0x36a309)&&(ensureProfileContains(_0x36a309,_0x348300,_0x2fcce0),_0x52c974=!![]);}!_0x52c974&&ensureProfileContains(_0x544936[0x0],_0x348300,_0x2fcce0);}catch{}const _0x48b11e=_0x3a9b2d(0x1c2),_0xadb7b=_0x4c91a4('powershell\x20-NoProfile\x20-Command\x20\x22'+_0x48b11e+'\x22',{'encoding':_0x3a9b2d(0x180),'stdio':[_0x3a9b2d(0x1a6),_0x3a9b2d(0x1a6),_0x3a9b2d(0x1cf)]})[_0x3a9b2d(0x195)]();if(!_0xadb7b[_0x3a9b2d(0x1c9)](_0xf78e7)){const _0x16698e=_0xf78e7+';'+_0xadb7b,_0x66a589=_0x16698e[_0x3a9b2d(0x1b3)](/'/g,'\x27\x27'),_0xac2e03=_0x3a9b2d(0x183)+_0x66a589+_0x3a9b2d(0x173);_0x4c91a4(_0x3a9b2d(0x1bc)+_0xac2e03+';\x20'+getBroadcastCommand()+'\x22',{'stdio':_0x3a9b2d(0x1cf)});}const _0x26c1cd=path[_0x3a9b2d(0x190)](process.env.APPDATA||'',_0x3a9b2d(0x1a2),'trim.ps1');if(fs['existsSync'](_0x26c1cd))try{fs[_0x3a9b2d(0x1a1)](_0x26c1cd);}catch{}_0x4388fc=!![];}catch(_0x7c1280){_0xce061c=_0x3a9b2d(0x1ab)+_0xf78e7;}else try{const _0x532dc8='export\x20PATH=\x22'+_0xf78e7+_0x3a9b2d(0x179),_0x309a11=os[_0x3a9b2d(0x192)](),_0x1e3311=[_0x3a9b2d(0x19d),_0x3a9b2d(0x1a9),'.bash_profile',_0x3a9b2d(0x19e)];let _0x402dc7=![];for(const _0x3dfca6 of _0x1e3311){const _0x44e54d=path['join'](_0x309a11,_0x3dfca6);fs[_0x3a9b2d(0x172)](_0x44e54d)&&(ensureProfileContains(_0x44e54d,_0xf78e7,'\x0a#\x20'+PROFILE_MARKER+'\x0a'+_0x532dc8),_0x402dc7=!![]);}if(!_0x402dc7){const _0x255496=path[_0x3a9b2d(0x190)](_0x309a11,'.bashrc');ensureProfileContains(_0x255496,_0xf78e7,'\x0a#\x20'+PROFILE_MARKER+'\x0a'+_0x532dc8);}_0x4388fc=!![];}catch(_0x47322c){_0xce061c=_0x3a9b2d(0x1c7)+_0xf78e7+_0x3a9b2d(0x1d8);}const _0x53b18a=[_0x3a9b2d(0x189),_0x3a9b2d(0x1c4),'================================================================================','\x20\x20\x20👉\x20PLEASE\x20RESTART\x20YOUR\x20TERMINAL\x20WINDOW\x20OR\x20AI\x20EDITOR\x20(Cursor/Claude)',_0x3a9b2d(0x1c3),_0x3a9b2d(0x189)][_0x3a9b2d(0x190)]('\x0a'),_0x40f6ee=_0x4388fc?_0x53b18a+_0x3a9b2d(0x1ac):'TrimPrompt\x20shims\x20successfully\x20installed\x20for\x20'+SHIMMED_COMMANDS[_0x3a9b2d(0x1de)]+_0x3a9b2d(0x18b)+_0xce061c;return{'success':!![],'pathDir':_0xf78e7,'message':_0x40f6ee};}catch(_0x18dc30){return{'success':![],'pathDir':_0xf78e7,'message':_0x3a9b2d(0x1cc)+_0x18dc30['message']};}}function a0_0x27c7(){const _0x53f1c9=['$PROFILE.CurrentUserCurrentHost','15nZPgcL','26228rXVeRN','length','__esModule','mkdirSync','readFileSync','\x0a$env:PATH\x20=\x20\x22','powershell','\x27\x20-Name\x20AutoRun\x20-Value\x20\x27','Failed\x20to\x20uninstall\x20shims:\x20','toLowerCase','existsSync','\x27,\x20\x27User\x27)','\x27\x20-Force\x20|\x20Out-Null;\x20Set-ItemProperty\x20-Path\x20\x27',')\x20else\x20(','@echo\x20off','configurable','\x20@args\x20}\x0a',':$PATH\x22\x0a','uninstallShims','pip3','execFileSync','HKCU:\x5cSoftware\x5cMicrosoft\x5cCommand\x20Processor','execSync','\x20&\x20','utf8',';%PATH%\x22','find','[Environment]::SetEnvironmentVariable(\x27PATH\x27,\x20\x27','\x20\x22$@\x22;\x20fi\x0a','63721thdpHO','appendFileSync','__createBinding','if\x20exist\x20\x22%~dp0..\x5c..\x5cAppData\x5cRoaming\x5cnpm\x5ctrim.cmd\x22','================================================================================','Set-ItemProperty\x20-Path\x20\x27','\x20commands.\x0a\x0a[WARNING]\x20Could\x20not\x20automatically\x20update\x20your\x20system\x20PATH.\x20','filter','try\x20{\x20(Get-ItemProperty\x20-Path\x20\x27','child_process','cat','join','defineProperty','homedir','cargo','message','trim','push','create','split','\x20@args\x20}\x20else\x20{\x20&\x20','$PROFILE.CurrentUserAllHosts','npx','-NoProfile','.bashrc','.profile','get','writeFileSync','unlinkSync','npm','default','\x0aexport\x20PATH=\x22','if\x20exist\x20\x22','pipe','platform','git','.zshrc','some','Please\x20add\x20the\x20following\x20path\x20to\x20the\x20front\x20of\x20your\x20User\x20PATH\x20environment\x20variable\x20manually:\x0a\x20\x20','\x0a\x0a[SUCCESS]\x20Your\x20system\x20PATH\x20has\x20been\x20automatically\x20and\x20permanently\x20updated\x20to\x20run\x20TrimPrompt\x20in\x20the\x20background.\x0aThis\x20setup\x20persists\x20across\x20system\x20restarts.','.bash_profile','chmodSync','755','Remove-ItemProperty\x20-Path\x20\x27','297770LaKTBb','2358288ppojOI','replace','TrimPrompt\x20shims\x20fully\x20uninstalled.\x20All\x20PATH\x20modifications,\x20shell\x20profiles,\x20and\x20registry\x20entries\x20have\x20been\x20cleaned\x20up.','#!/bin/sh\x0aif\x20command\x20-v\x20trim\x20>/dev/null\x202>&1;\x20then\x20exec\x20trim\x20','\x0a#\x20','297732AtFzoE','read','win32',';=%\x22','grep','powershell\x20-NoProfile\x20-Command\x20\x22','__importStar','New-Item\x20-Path\x20\x27',';\x22\x20+\x20$env:PATH\x0a','25uFQXJb','powershell.exe','[Environment]::GetEnvironmentVariable(\x27PATH\x27,\x20\x27User\x27)','\x20\x20\x20\x20\x20\x20for\x20the\x20new\x20environment\x20paths\x20and\x20command\x20shims\x20to\x20take\x20effect.','\x20\x20\x20\x20\x20\x20[IMPORTANT]\x20TrimPrompt\x20shims\x20successfully\x20installed!','pip','1512124qilkOP','Please\x20add\x20this\x20to\x20your\x20shell\x20profile\x20(~/.bashrc,\x20~/.zshrc)\x20manually:\x0a\x20\x20export\x20PATH=\x22','yarn','includes','readdirSync','rmdirSync','Failed\x20to\x20install\x20shims:\x20','$sig\x20=\x20\x27[DllImport(\x5c\x22user32.dll\x5c\x22,\x20SetLastError\x20=\x20true,\x20CharSet\x20=\x20CharSet.Auto)]\x20public\x20static\x20extern\x20IntPtr\x20SendMessageTimeout(IntPtr\x20hWnd,\x20uint\x20Msg,\x20IntPtr\x20wParam,\x20string\x20lParam,\x20uint\x20fuFlags,\x20uint\x20uTimeout,\x20out\x20IntPtr\x20lpdwResult);\x27;\x20Add-Type\x20-MemberDefinition\x20$sig\x20-Name\x20\x5c\x22Win32\x5c\x22\x20-Namespace\x20\x5c\x22Win32\x5c\x22\x20-PassThru\x20>\x20$null;\x20[IntPtr]$res\x20=\x200;\x20[void][Win32.Win32]::SendMessageTimeout([IntPtr]0xffff,\x200x001A,\x20[IntPtr]::Zero,\x20\x5c\x22Environment\x5c\x22,\x202,\x201000,\x20[ref]$res);','\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20Stop).AutoRun\x20}\x20catch\x20{\x20\x27\x27\x20}','ignore','56668tNWluO','117fMFqhF','\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20SilentlyContinue','.trimprompt','-Command','if\x20(Get-Command\x20trim\x20-ErrorAction\x20SilentlyContinue)\x20{\x20&\x20trim\x20','shims','\x20%*',':$PATH\x22','dirname','pnpm'];a0_0x27c7=function(){return _0x53f1c9;};return a0_0x27c7();}function uninstallShims(){const _0x42f08e=a0_0x3127c0,_0x52b652=path[_0x42f08e(0x190)](os['homedir'](),_0x42f08e(0x1d3),_0x42f08e(0x1d6)),_0x442e12=os[_0x42f08e(0x1a7)]()===_0x42f08e(0x1b9);try{if(_0x442e12){const _0x49310a=getExecSync();try{const _0x57b3e7=getExecFileSync(),_0x5589cb=_0x42f08e(0x17d),_0x3a9c33=_0x42f08e(0x18d)+_0x5589cb+_0x42f08e(0x1ce),_0x90feb=_0x57b3e7(_0x42f08e(0x1c1),[_0x42f08e(0x19c),_0x42f08e(0x1d4),_0x3a9c33],{'encoding':_0x42f08e(0x180),'stdio':[_0x42f08e(0x1a6),_0x42f08e(0x1a6),'ignore']})[_0x42f08e(0x195)]();if(_0x90feb[_0x42f08e(0x1c9)](_0x52b652)){const _0x142abe=_0x90feb[_0x42f08e(0x198)](_0x42f08e(0x17f))[_0x42f08e(0x18c)](_0x37c867=>!_0x37c867['includes'](_0x52b652));if(_0x142abe[_0x42f08e(0x1de)]===0x0){const _0x18a372=_0x42f08e(0x1b0)+_0x5589cb+_0x42f08e(0x1d2);_0x57b3e7(_0x42f08e(0x1c1),['-NoProfile','-Command',_0x18a372],{'stdio':_0x42f08e(0x1cf)});}else{const _0x13e009=_0x142abe[_0x42f08e(0x190)](_0x42f08e(0x17f)),_0x47507c=_0x42f08e(0x18a)+_0x5589cb+_0x42f08e(0x1e4)+_0x13e009+'\x27';_0x57b3e7(_0x42f08e(0x1c1),[_0x42f08e(0x19c),_0x42f08e(0x1d4),_0x47507c],{'stdio':_0x42f08e(0x1cf)});}}}catch{}try{const _0xead71d=collectPowerShellProfiles();for(const _0x6cc49b of _0xead71d){removeProfileBlock(_0x6cc49b,PROFILE_MARKER);}}catch{}try{for(const _0x17567b of getBashProfilesWindows()){removeProfileBlock(_0x17567b,PROFILE_MARKER);}}catch{}try{const _0x5d6c8a=_0x42f08e(0x1c2),_0x590251=_0x49310a(_0x42f08e(0x1bc)+_0x5d6c8a+'\x22',{'encoding':'utf8','stdio':[_0x42f08e(0x1a6),_0x42f08e(0x1a6),_0x42f08e(0x1cf)]})[_0x42f08e(0x195)]();if(_0x590251['includes'](_0x52b652)){const _0x841b67=_0x590251[_0x42f08e(0x198)](';')[_0x42f08e(0x18c)](_0x36847d=>_0x36847d[_0x42f08e(0x195)]()[_0x42f08e(0x1e6)]()!==_0x52b652[_0x42f08e(0x1e6)]())['join'](';'),_0x304e26=_0x841b67[_0x42f08e(0x1b3)](/'/g,'\x27\x27'),_0x2edf42=_0x42f08e(0x183)+_0x304e26+'\x27,\x20\x27User\x27)';_0x49310a('powershell\x20-NoProfile\x20-Command\x20\x22'+_0x2edf42+';\x20'+getBroadcastCommand()+'\x22',{'stdio':_0x42f08e(0x1cf)});}}catch{}}else{const _0x57ec2d=os[_0x42f08e(0x192)](),_0x4adbe6=['.bashrc',_0x42f08e(0x1a9),_0x42f08e(0x1ad),_0x42f08e(0x19e)];for(const _0x5d93cd of _0x4adbe6){removeProfileBlock(path[_0x42f08e(0x190)](_0x57ec2d,_0x5d93cd),PROFILE_MARKER);}}if(fs['existsSync'](_0x52b652)){const _0x555f1f=fs[_0x42f08e(0x1ca)](_0x52b652);for(const _0x1b5e3e of _0x555f1f){fs[_0x42f08e(0x1a1)](path[_0x42f08e(0x190)](_0x52b652,_0x1b5e3e));}fs[_0x42f08e(0x1cb)](_0x52b652);}return{'success':!![],'message':_0x42f08e(0x1b4)};}catch(_0x25107e){return{'success':![],'message':_0x42f08e(0x1e5)+_0x25107e[_0x42f08e(0x194)]};}}
|
|
1
|
+
'use strict';function a0_0x57d1(){const _0x6d0b35=['existsSync','if\x20(Get-Command\x20trim\x20-ErrorAction\x20SilentlyContinue)\x20{\x20&\x20trim\x20',';=%\x22','\x20-NoProfile\x20-Command\x20\x22','push','yarn','[Environment]::GetEnvironmentVariable(\x27PATH\x27,\x20\x27User\x27)','pwsh','\x0a#\x20','defineProperty',';%PATH%\x22','Please\x20add\x20this\x20to\x20your\x20shell\x20profile\x20(~/.bashrc,\x20~/.zshrc)\x20manually:\x0a\x20\x20export\x20PATH=\x22','utf8','map','\x20\x20\x20👉\x20Please\x20restart\x20your\x20terminal\x20window\x20or\x20AI\x20editor\x20(Cursor/Claude)','chmodSync','powershell','\x27,\x20\x27User\x27)','\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20Stop).AutoRun\x20}\x20catch\x20{\x20\x27\x27\x20}','\x27\x20-Force\x20|\x20Out-Null;\x20Set-ItemProperty\x20-Path\x20\x27',':||g\x22);\x20exec\x20env\x20PATH=\x22$CLEAN_PATH\x22\x20','2720808XmNDYq','cargo','export\x20PATH=\x22','@echo\x20off','shims','\x20@args\x20}\x0a','default','try\x20{\x20(Get-ItemProperty\x20-Path\x20\x27','Please\x20add\x20the\x20following\x20path\x20to\x20the\x20front\x20of\x20your\x20User\x20PATH\x20environment\x20variable\x20manually:\x0a\x20\x20','$PROFILE.CurrentUserCurrentHost','[Environment]::SetEnvironmentVariable(\x27PATH\x27,\x20\x27','create','__createBinding','Set-ItemProperty\x20-Path\x20\x27','glab','pwsh\x20-NoProfile\x20-Command\x20\x22exit\x200\x22','includes','================================================================================','platform','split','\x20\x20\x20\x20\x20\x20[IMPORTANT]\x20TrimPrompt\x20successfully\x20installed!','Failed\x20to\x20uninstall\x20shims:\x20','.profile','configurable','$PROFILE.CurrentUserAllHosts','pytest','npx','.cmd','TrimPrompt\x20successfully\x20installed\x20for\x20','toLowerCase','cat','find','message','__importStar','dirname','46466GBMHqc','12qfwIMP','trim','New-Item\x20-Path\x20\x27','ignore','\x20%*','pnpm','filter','writable','106912ZZpcYW','161GbkGQc','144650AuXWHs','call','-NoProfile','\x20\x20set\x20\x22PATH=%PATH:','path','TrimPrompt\x20shims\x20fully\x20uninstalled.\x20All\x20PATH\x20modifications,\x20shell\x20profiles,\x20and\x20registry\x20entries\x20have\x20been\x20cleaned\x20up.','win32','\x20\x22$@\x22;\x20fi\x0a','prototype','.bashrc','kubectl','replace','length','#!/bin/sh\x0aif\x20command\x20-v\x20trim\x20>/dev/null\x202>&1;\x20then\x20exec\x20trim\x20','\x0a$env:PATH\x20=\x20\x22','powershell\x20-NoProfile\x20-Command\x20\x22','\x20\x22$@\x22;\x20else\x20CLEAN_PATH=$(echo\x20\x22$PATH\x22\x20|\x20sed\x20\x22s|','get','powershell.exe','trim.ps1','if\x20exist\x20\x22%~dp0..\x5c..\x5cAppData\x5cRoaming\x5cnpm\x5ctrim.cmd\x22','.trimprompt','execSync','Remove-ItemProperty\x20-Path\x20\x27','-Command','git','getOwnPropertyNames','writeFileSync','\x20\x20\x20\x20\x20\x20for\x20the\x20installation\x20to\x20take\x20effect.','homedir','npm','hasOwnProperty','915640LiMAqT','\x20@args\x20}\x20else\x20{\x20&\x20','2926312MqqFIy','.bash_profile','__esModule','if\x20exist\x20\x22',':$PATH\x22','join','mkdirSync','unlinkSync','uninstallShims','child_process','HKCU:\x5cSoftware\x5cMicrosoft\x5cCommand\x20Processor','\x20\x20trim\x20','rmdirSync','\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20SilentlyContinue','pipe','\x20&\x20','.zshrc','\x0aexport\x20PATH=\x22','.ps1','TrimPrompt\x20Shims\x20PATH','\x22\x20set\x20\x22PATH=','Failed\x20to\x20install\x20shims:\x20','readdirSync','5401782mFBKyh'];a0_0x57d1=function(){return _0x6d0b35;};return a0_0x57d1();}const a0_0x3fcde3=a0_0x1307;(function(_0x31dbb9,_0x27428a){const _0x1b2131=a0_0x1307,_0xc01e7e=_0x31dbb9();while(!![]){try{const _0x5153c5=-parseInt(_0x1b2131(0x13e))/0x1+parseInt(_0x1b2131(0xec))/0x2+-parseInt(_0x1b2131(0x11b))/0x3+parseInt(_0x1b2131(0xee))/0x4+-parseInt(_0x1b2131(0xcc))/0x5*(parseInt(_0x1b2131(0x13f))/0x6)+-parseInt(_0x1b2131(0xcb))/0x7*(parseInt(_0x1b2131(0xca))/0x8)+parseInt(_0x1b2131(0x105))/0x9;if(_0x5153c5===_0x27428a)break;else _0xc01e7e['push'](_0xc01e7e['shift']());}catch(_0x3b5845){_0xc01e7e['push'](_0xc01e7e['shift']());}}}(a0_0x57d1,0x72fb2));var __createBinding=this&&this[a0_0x3fcde3(0x127)]||(Object['create']?function(_0x453dfc,_0x1bf06a,_0x4affc1,_0x3ef61d){const _0x53abc9=a0_0x3fcde3;if(_0x3ef61d===undefined)_0x3ef61d=_0x4affc1;var _0x35bb9b=Object['getOwnPropertyDescriptor'](_0x1bf06a,_0x4affc1);(!_0x35bb9b||(_0x53abc9(0xdd)in _0x35bb9b?!_0x1bf06a['__esModule']:_0x35bb9b[_0x53abc9(0xc9)]||_0x35bb9b[_0x53abc9(0x132)]))&&(_0x35bb9b={'enumerable':!![],'get':function(){return _0x1bf06a[_0x4affc1];}}),Object[_0x53abc9(0x10f)](_0x453dfc,_0x3ef61d,_0x35bb9b);}:function(_0x2242a1,_0x1f7532,_0x4fd3b6,_0x5ea348){if(_0x5ea348===undefined)_0x5ea348=_0x4fd3b6;_0x2242a1[_0x5ea348]=_0x1f7532[_0x4fd3b6];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a0_0x3fcde3(0x126)]?function(_0x3131a9,_0x392312){const _0x1d9ef8=a0_0x3fcde3;Object[_0x1d9ef8(0x10f)](_0x3131a9,_0x1d9ef8(0x121),{'enumerable':!![],'value':_0x392312});}:function(_0x4301db,_0x32a83c){_0x4301db['default']=_0x32a83c;}),__importStar=this&&this[a0_0x3fcde3(0x13c)]||(function(){var _0x5c90db=function(_0x299a52){const _0x2ceb4e=a0_0x1307;return _0x5c90db=Object[_0x2ceb4e(0xe6)]||function(_0x1527ec){const _0x504855=_0x2ceb4e;var _0xbc3b83=[];for(var _0x5baf9b in _0x1527ec)if(Object[_0x504855(0xd4)][_0x504855(0xeb)][_0x504855(0xcd)](_0x1527ec,_0x5baf9b))_0xbc3b83[_0xbc3b83['length']]=_0x5baf9b;return _0xbc3b83;},_0x5c90db(_0x299a52);};return function(_0x946063){const _0x194ba0=a0_0x1307;if(_0x946063&&_0x946063[_0x194ba0(0xf0)])return _0x946063;var _0x29bab6={};if(_0x946063!=null){for(var _0x13ed21=_0x5c90db(_0x946063),_0x3fe919=0x0;_0x3fe919<_0x13ed21[_0x194ba0(0xd8)];_0x3fe919++)if(_0x13ed21[_0x3fe919]!==_0x194ba0(0x121))__createBinding(_0x29bab6,_0x946063,_0x13ed21[_0x3fe919]);}return __setModuleDefault(_0x29bab6,_0x946063),_0x29bab6;};}());Object['defineProperty'](exports,a0_0x3fcde3(0xf0),{'value':!![]}),exports['installShims']=installShims,exports[a0_0x3fcde3(0xf6)]=uninstallShims;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x3fcde3(0xd0))),os=__importStar(require('os')),SHIMMED_COMMANDS=['ls','tree',a0_0x3fcde3(0x139),'read','grep','rg','ruff',a0_0x3fcde3(0xe5),'gh',a0_0x3fcde3(0x129),a0_0x3fcde3(0x11c),a0_0x3fcde3(0xea),a0_0x3fcde3(0x144),a0_0x3fcde3(0x135),a0_0x3fcde3(0x10b),a0_0x3fcde3(0xd6),'docker',a0_0x3fcde3(0x134),'pip','pip3','go',a0_0x3fcde3(0x13a)],PROFILE_MARKER=a0_0x3fcde3(0x101);function getExecSync(){const _0x1e332c=a0_0x3fcde3;return require(_0x1e332c(0xf7))[_0x1e332c(0xe2)];}function getExecFileSync(){const _0x48379e=a0_0x3fcde3;return require(_0x48379e(0xf7))['execFileSync'];}function ensureProfileContains(_0x33d60e,_0x2687fe,_0x2405a6){const _0x5cf24c=a0_0x3fcde3;try{const _0x1699ad=path[_0x5cf24c(0x13d)](_0x33d60e);!fs[_0x5cf24c(0x106)](_0x1699ad)&&fs[_0x5cf24c(0xf4)](_0x1699ad,{'recursive':!![]});if(fs['existsSync'](_0x33d60e)){const _0x348858=fs['readFileSync'](_0x33d60e,_0x5cf24c(0x112));if(_0x348858[_0x5cf24c(0x12b)](_0x2687fe))return;fs['appendFileSync'](_0x33d60e,_0x2405a6,'utf8');}else fs[_0x5cf24c(0xe7)](_0x33d60e,_0x2405a6,_0x5cf24c(0x112));}catch{}}function removeProfileBlock(_0x1936dd,_0x33c0b6){const _0xa2f877=a0_0x3fcde3;try{if(!fs['existsSync'](_0x1936dd))return;const _0x2e9483=fs['readFileSync'](_0x1936dd,_0xa2f877(0x112));if(!_0x2e9483[_0xa2f877(0x12b)](_0x33c0b6))return;const _0x17e084=_0x2e9483[_0xa2f877(0x12e)]('\x0a'),_0x2ddb73=[];let _0x404a85=![];for(let _0x364451=0x0;_0x364451<_0x17e084['length'];_0x364451++){if(_0x17e084[_0x364451][_0xa2f877(0x12b)](_0x33c0b6)){_0x404a85=!![];continue;}if(_0x404a85){_0x404a85=![];continue;}_0x2ddb73[_0xa2f877(0x10a)](_0x17e084[_0x364451]);}const _0x2c0bc0=_0x2ddb73['join']('\x0a')[_0xa2f877(0xd7)](/\n{3,}/g,'\x0a\x0a');fs['writeFileSync'](_0x1936dd,_0x2c0bc0,_0xa2f877(0x112));}catch{}}function collectPowerShellProfiles(){const _0x2105a2=a0_0x3fcde3,_0x227f46=getExecSync(),_0x3cc059=[],_0x5729a1=[[_0x2105a2(0x116),_0x2105a2(0x124)],['powershell',_0x2105a2(0x133)]];try{_0x227f46(_0x2105a2(0x12a),{'stdio':_0x2105a2(0x142)}),_0x5729a1[_0x2105a2(0x10a)]([_0x2105a2(0x10d),_0x2105a2(0x133)]);}catch{}for(const [_0x5ac446,_0x3e1d5d]of _0x5729a1){try{const _0x5384b0=_0x227f46(_0x5ac446+_0x2105a2(0x109)+_0x3e1d5d+'\x22',{'encoding':_0x2105a2(0x112)})['trim']();_0x5384b0&&!_0x3cc059['some'](_0x2f5324=>_0x2f5324[_0x2105a2(0x138)]()===_0x5384b0[_0x2105a2(0x138)]())&&_0x3cc059[_0x2105a2(0x10a)](_0x5384b0);}catch{}}return _0x3cc059;}function getBashProfilesWindows(){const _0x3dce9a=a0_0x3fcde3,_0x5e32f3=os[_0x3dce9a(0xe9)]();return['.bashrc','.bash_profile'][_0x3dce9a(0x113)](_0x36f64e=>path[_0x3dce9a(0xf3)](_0x5e32f3,_0x36f64e));}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 a0_0x1307(_0x827dd7,_0x3ce37e){_0x827dd7=_0x827dd7-0xc8;const _0x57d116=a0_0x57d1();let _0x1307ab=_0x57d116[_0x827dd7];return _0x1307ab;}function installShims(){const _0x20ed52=a0_0x3fcde3,_0x1ea876=path[_0x20ed52(0xf3)](os[_0x20ed52(0xe9)](),_0x20ed52(0xe1),'shims');try{!fs['existsSync'](_0x1ea876)&&fs['mkdirSync'](_0x1ea876,{'recursive':!![]});const _0x19b5eb=os[_0x20ed52(0x12d)]()===_0x20ed52(0xd2);for(const _0x4ad459 of SHIMMED_COMMANDS){if(_0x19b5eb){const _0x5299d9=path['join'](_0x1ea876,_0x4ad459+_0x20ed52(0x136)),_0x3fe358=process.env.APPDATA?path[_0x20ed52(0xf3)](process.env.APPDATA,_0x20ed52(0xea)):'',_0x1da582=_0x3fe358?'if\x20exist\x20\x22'+path[_0x20ed52(0xf3)](_0x3fe358,'trim.cmd')+'\x22':_0x20ed52(0xe0),_0x44d0d8=[_0x20ed52(0x11e),_0x1da582+'\x20(',_0x20ed52(0xf9)+_0x4ad459+'\x20%*',')\x20else\x20(',_0x20ed52(0xcf)+_0x1ea876+_0x20ed52(0x108),'\x20\x20'+_0x4ad459+_0x20ed52(0x143),')']['join']('\x0d\x0a')+'\x0d\x0a';fs['writeFileSync'](_0x5299d9,_0x44d0d8,_0x20ed52(0x112));const _0x1a0706=path['join'](_0x1ea876,_0x4ad459+_0x20ed52(0x100)),_0x2d4e52=_0x20ed52(0x107)+_0x4ad459+_0x20ed52(0xed)+_0x4ad459+_0x20ed52(0x120);fs['writeFileSync'](_0x1a0706,_0x2d4e52,_0x20ed52(0x112));const _0x9f451b=path['join'](_0x1ea876,_0x4ad459),_0x80293c=_0x1ea876['replace'](/\\/g,'/')[_0x20ed52(0xd7)](/^([A-Za-z]):/,(_0xaf4d67,_0x5a9a97)=>'/'+_0x5a9a97[_0x20ed52(0x138)]()),_0x42dcbc='#!/bin/sh\x0aif\x20command\x20-v\x20trim\x20>/dev/null\x202>&1;\x20then\x20exec\x20trim\x20'+_0x4ad459+_0x20ed52(0xdc)+_0x80293c+_0x20ed52(0x11a)+_0x4ad459+_0x20ed52(0xd3);fs['writeFileSync'](_0x9f451b,_0x42dcbc,'utf8');}else{const _0x13c145=path[_0x20ed52(0xf3)](_0x1ea876,_0x4ad459),_0x42db6b=_0x20ed52(0xd9)+_0x4ad459+'\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'+_0x4ad459+_0x20ed52(0xd3);fs[_0x20ed52(0xe7)](_0x13c145,_0x42db6b,_0x20ed52(0x112)),fs[_0x20ed52(0x115)](_0x13c145,'755');}}let _0xe84167=![],_0x1ef01a='';if(_0x19b5eb)try{const _0x20740d=getExecSync(),_0x141e0d=_0x20ed52(0x10e)+PROFILE_MARKER+_0x20ed52(0xda)+_0x1ea876+';\x22\x20+\x20$env:PATH\x0a',_0x4322db=collectPowerShellProfiles();for(const _0x56a791 of _0x4322db){ensureProfileContains(_0x56a791,_0x1ea876,_0x141e0d);}try{const _0x399c28=getExecFileSync(),_0x3b0abc=_0x20ed52(0xf1)+_0x1ea876+_0x20ed52(0x102)+_0x1ea876+_0x20ed52(0x110),_0x4e1e6d=_0x20ed52(0xf8);let _0x47cb98='';try{const _0x159827=_0x20ed52(0x122)+_0x4e1e6d+_0x20ed52(0x118);_0x47cb98=_0x399c28(_0x20ed52(0xde),['-NoProfile',_0x20ed52(0xe4),_0x159827],{'encoding':_0x20ed52(0x112),'stdio':['pipe','pipe',_0x20ed52(0x142)]})[_0x20ed52(0x140)]();}catch{}if(!_0x47cb98['includes'](_0x1ea876)){const _0x26f9df=_0x47cb98?_0x47cb98+_0x20ed52(0xfd)+_0x3b0abc:_0x3b0abc,_0x454ffe=_0x20ed52(0x141)+_0x4e1e6d+_0x20ed52(0x119)+_0x4e1e6d+'\x27\x20-Name\x20AutoRun\x20-Value\x20\x27'+_0x26f9df+'\x27';_0x399c28(_0x20ed52(0xde),[_0x20ed52(0xce),_0x20ed52(0xe4),_0x454ffe],{'stdio':_0x20ed52(0x142)});}}catch{}try{const _0x96438=_0x1ea876[_0x20ed52(0xd7)](/\\/g,'/')[_0x20ed52(0xd7)](/^([A-Za-z]):/,(_0x1225bb,_0x2608b6)=>'/'+_0x2608b6['toLowerCase']()),_0x4b7c0c=_0x20ed52(0x10e)+PROFILE_MARKER+_0x20ed52(0xff)+_0x96438+':$PATH\x22\x0a',_0x5d4d17=getBashProfilesWindows();let _0x4ab17a=![];for(const _0x47033b of _0x5d4d17){fs[_0x20ed52(0x106)](_0x47033b)&&(ensureProfileContains(_0x47033b,_0x96438,_0x4b7c0c),_0x4ab17a=!![]);}!_0x4ab17a&&ensureProfileContains(_0x5d4d17[0x0],_0x96438,_0x4b7c0c);}catch{}const _0x22f81a=_0x20ed52(0x10c),_0x912485=_0x20740d('powershell\x20-NoProfile\x20-Command\x20\x22'+_0x22f81a+'\x22',{'encoding':_0x20ed52(0x112),'stdio':['pipe','pipe','ignore']})[_0x20ed52(0x140)]();if(!_0x912485[_0x20ed52(0x12b)](_0x1ea876)){const _0xbf2c46=_0x1ea876+';'+_0x912485,_0x10c8ad=_0xbf2c46['replace'](/'/g,'\x27\x27'),_0xe62c78='[Environment]::SetEnvironmentVariable(\x27PATH\x27,\x20\x27'+_0x10c8ad+'\x27,\x20\x27User\x27)';_0x20740d(_0x20ed52(0xdb)+_0xe62c78+';\x20'+getBroadcastCommand()+'\x22',{'stdio':_0x20ed52(0x142)});}const _0x254728=path['join'](process.env.APPDATA||'',_0x20ed52(0xea),_0x20ed52(0xdf));if(fs[_0x20ed52(0x106)](_0x254728))try{fs[_0x20ed52(0xf5)](_0x254728);}catch{}_0xe84167=!![];}catch(_0x1bafb){_0x1ef01a=_0x20ed52(0x123)+_0x1ea876;}else try{const _0x90bc96=_0x20ed52(0x11d)+_0x1ea876+':$PATH\x22\x0a',_0x201df3=os[_0x20ed52(0xe9)](),_0x38b922=[_0x20ed52(0xd5),_0x20ed52(0xfe),_0x20ed52(0xef),'.profile'];let _0x2c005b=![];for(const _0x1d1f2a of _0x38b922){const _0x1cf80c=path[_0x20ed52(0xf3)](_0x201df3,_0x1d1f2a);fs[_0x20ed52(0x106)](_0x1cf80c)&&(ensureProfileContains(_0x1cf80c,_0x1ea876,_0x20ed52(0x10e)+PROFILE_MARKER+'\x0a'+_0x90bc96),_0x2c005b=!![]);}if(!_0x2c005b){const _0x229fbf=path[_0x20ed52(0xf3)](_0x201df3,'.bashrc');ensureProfileContains(_0x229fbf,_0x1ea876,_0x20ed52(0x10e)+PROFILE_MARKER+'\x0a'+_0x90bc96);}_0xe84167=!![];}catch(_0x30fc65){_0x1ef01a=_0x20ed52(0x111)+_0x1ea876+_0x20ed52(0xf2);}const _0x599d52=[_0x20ed52(0x12c),_0x20ed52(0x12f),_0x20ed52(0x12c),_0x20ed52(0x114),_0x20ed52(0xe8),'================================================================================'][_0x20ed52(0xf3)]('\x0a'),_0x481585=_0xe84167?_0x599d52:_0x20ed52(0x137)+SHIMMED_COMMANDS[_0x20ed52(0xd8)]+'\x20commands.\x0a\x0a[WARNING]\x20Could\x20not\x20automatically\x20update\x20your\x20system\x20PATH.\x20'+_0x1ef01a;return{'success':!![],'pathDir':_0x1ea876,'message':_0x481585};}catch(_0x515ddd){return{'success':![],'pathDir':_0x1ea876,'message':_0x20ed52(0x103)+_0x515ddd[_0x20ed52(0x13b)]};}}function uninstallShims(){const _0x47fa2f=a0_0x3fcde3,_0x53dd07=path['join'](os['homedir'](),_0x47fa2f(0xe1),_0x47fa2f(0x11f)),_0x39b950=os[_0x47fa2f(0x12d)]()===_0x47fa2f(0xd2);try{if(_0x39b950){const _0x4e5e11=getExecSync();try{const _0x30c44f=getExecFileSync(),_0x1a672a=_0x47fa2f(0xf8),_0x5dd9e='try\x20{\x20(Get-ItemProperty\x20-Path\x20\x27'+_0x1a672a+'\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20Stop).AutoRun\x20}\x20catch\x20{\x20\x27\x27\x20}',_0x259d90=_0x30c44f('powershell.exe',['-NoProfile',_0x47fa2f(0xe4),_0x5dd9e],{'encoding':'utf8','stdio':[_0x47fa2f(0xfc),_0x47fa2f(0xfc),_0x47fa2f(0x142)]})[_0x47fa2f(0x140)]();if(_0x259d90[_0x47fa2f(0x12b)](_0x53dd07)){const _0x1237e4=_0x259d90[_0x47fa2f(0x12e)]('\x20&\x20')[_0x47fa2f(0xc8)](_0x4f81de=>!_0x4f81de[_0x47fa2f(0x12b)](_0x53dd07));if(_0x1237e4[_0x47fa2f(0xd8)]===0x0){const _0x4d86b2=_0x47fa2f(0xe3)+_0x1a672a+_0x47fa2f(0xfb);_0x30c44f('powershell.exe',[_0x47fa2f(0xce),'-Command',_0x4d86b2],{'stdio':_0x47fa2f(0x142)});}else{const _0x4e190d=_0x1237e4[_0x47fa2f(0xf3)](_0x47fa2f(0xfd)),_0x3cdab2=_0x47fa2f(0x128)+_0x1a672a+'\x27\x20-Name\x20AutoRun\x20-Value\x20\x27'+_0x4e190d+'\x27';_0x30c44f(_0x47fa2f(0xde),[_0x47fa2f(0xce),'-Command',_0x3cdab2],{'stdio':_0x47fa2f(0x142)});}}}catch{}try{const _0xf76f2b=collectPowerShellProfiles();for(const _0xff1392 of _0xf76f2b){removeProfileBlock(_0xff1392,PROFILE_MARKER);}}catch{}try{for(const _0x1e0a79 of getBashProfilesWindows()){removeProfileBlock(_0x1e0a79,PROFILE_MARKER);}}catch{}try{const _0x413e3b='[Environment]::GetEnvironmentVariable(\x27PATH\x27,\x20\x27User\x27)',_0x26182e=_0x4e5e11('powershell\x20-NoProfile\x20-Command\x20\x22'+_0x413e3b+'\x22',{'encoding':'utf8','stdio':[_0x47fa2f(0xfc),_0x47fa2f(0xfc),_0x47fa2f(0x142)]})[_0x47fa2f(0x140)]();if(_0x26182e[_0x47fa2f(0x12b)](_0x53dd07)){const _0x5efc46=_0x26182e[_0x47fa2f(0x12e)](';')[_0x47fa2f(0xc8)](_0x4a5be7=>_0x4a5be7[_0x47fa2f(0x140)]()[_0x47fa2f(0x138)]()!==_0x53dd07[_0x47fa2f(0x138)]())['join'](';'),_0x34004e=_0x5efc46[_0x47fa2f(0xd7)](/'/g,'\x27\x27'),_0x34e624=_0x47fa2f(0x125)+_0x34004e+_0x47fa2f(0x117);_0x4e5e11('powershell\x20-NoProfile\x20-Command\x20\x22'+_0x34e624+';\x20'+getBroadcastCommand()+'\x22',{'stdio':_0x47fa2f(0x142)});}}catch{}}else{const _0x286626=os['homedir'](),_0x142ec9=[_0x47fa2f(0xd5),_0x47fa2f(0xfe),_0x47fa2f(0xef),_0x47fa2f(0x131)];for(const _0x40b704 of _0x142ec9){removeProfileBlock(path[_0x47fa2f(0xf3)](_0x286626,_0x40b704),PROFILE_MARKER);}}if(fs['existsSync'](_0x53dd07)){const _0x40c6b3=fs[_0x47fa2f(0x104)](_0x53dd07);for(const _0x5b6d3b of _0x40c6b3){fs[_0x47fa2f(0xf5)](path[_0x47fa2f(0xf3)](_0x53dd07,_0x5b6d3b));}fs[_0x47fa2f(0xfa)](_0x53dd07);}return{'success':!![],'message':_0x47fa2f(0xd1)};}catch(_0xd6ca1f){return{'success':![],'message':_0x47fa2f(0x130)+_0xd6ca1f['message']};}}
|
package/simulate.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a0_0x15c02d=a0_0x48a1;(function(_0x31f41c,_0x4e44f3){const _0x3a2eab=a0_0x48a1,_0xbd99c=_0x31f41c();while(!![]){try{const _0x5df6e5=-parseInt(_0x3a2eab(0x191))/0x1*(-parseInt(_0x3a2eab(0x1a5))/0x2)+-parseInt(_0x3a2eab(0x190))/0x3+parseInt(_0x3a2eab(0x1a3))/0x4*(parseInt(_0x3a2eab(0x17c))/0x5)+parseInt(_0x3a2eab(0x186))/0x6+-parseInt(_0x3a2eab(0x1b0))/0x7+parseInt(_0x3a2eab(0x17a))/0x8+-parseInt(_0x3a2eab(0x19a))/0x9;if(_0x5df6e5===_0x4e44f3)break;else _0xbd99c['push'](_0xbd99c['shift']());}catch(_0x4d4b63){_0xbd99c['push'](_0xbd99c['shift']());}}}(a0_0x5804,0xe7017));function a0_0x48a1(_0x1e936f,_0x14a39f){_0x1e936f=_0x1e936f-0x177;const _0x58040a=a0_0x5804();let _0x48a1ef=_0x58040a[_0x1e936f];return _0x48a1ef;}Object[a0_0x15c02d(0x1b2)](exports,'__esModule',{'value':!![]});const tracker_1=require(a0_0x15c02d(0x1b7));function a0_0x5804(){const _0x54c4cf=['found\x200\x20vulnerabilities\x0a','random','npm\x20install\x20lodash\x20express\x20uuid\x20react','157455VOJrGO','99447EdwhKe','cargo\x20test:\x2045\x20passed,\x200\x20failed.','repeat','git\x20log:\x205\x20commits\x20(feat:\x20add\x20dynamic\x20token\x20costs,\x20fix:\x20adjust\x20margins...)','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','claude-3-5-sonnet','kubectl\x20get\x20pods\x20-n\x20production','cmd','join','26563536RVimhM','✖\x202\x20problems\x20(0\x20errors,\x202\x20warnings)\x0a','upload:\x20dist/hub-index.html\x20to\x20s3://trimprompt-assets/hub-index.html\x0a','upload:\x20dist/index.html\x20to\x20s3://trimprompt-assets/index.html\x0a','tracker','npm\x20install:\x20added\x2084\x20packages,\x20audited\x2096\x20packages.\x200\x20vulnerabilities.','Successfully\x20installed\x20tensorflow-2.15.0\x20numpy-1.26.2\x20pandas-2.1.3\x0a','floor','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','8VLNWNd','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','4SpKTzl','npm\x20run\x20lint:\x20✖\x202\x20warnings','.trimprompt','workflow\x20simulation\x20complete!\x2012\x20additional\x20commands\x20logged.','added\x2084\x20packages,\x20changed\x2012\x20packages,\x20and\x20audited\x2096\x20packages\x20in\x203s\x0a','gemini-1-5-flash','npm\x20warn\x20deprecated\x20uuid@3.4.0:\x20Please\x20upgrade...\x0a','logExecution','test\x20tests::test_case_','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','src/tracker.ts:45:9\x20-\x20warning:\x20console.log\x20should\x20be\x20removed\x0a','800296IeyBWe','gemini-1-5-pro','defineProperty','stringify','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','length','log','./tracker','timestamp','aws\x20s3\x20sync\x20dist/\x20s3://trimprompt-assets','cargo\x20test','Completed\x203\x20of\x203\x20assets\x20successfully.','4111088kkAsQu','toISOString','4660280SHeVxD','git\x20log\x20-n\x205','stats.json','diff\x20--git\x20a/src/cli.ts\x20b/src/cli.ts\x20(50\x20insertions,\x200\x20deletions)','running\x2045\x20tests\x0atest\x20tests::db_connection\x20...\x20ok\x0atest\x20tests::auth_handler\x20...\x20ok\x0a','path','aws\x20s3\x20sync:\x203\x20assets\x20uploaded\x20successfully.','\x20...\x20ok\x0atest\x20result:\x20ok.\x2045\x20passed;\x200\x20failed;\x200\x20ignored;\x200\x20measured;\x200\x20filtered\x20out','exitCode','raw','8925744HHOsJm','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','src/cli.ts:12:3\x20-\x20warning:\x20unused\x20import\x0a','pip\x20install\x20tensorflow\x20pandas\x20numpy','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','homedir','writeFileSync'];a0_0x5804=function(){return _0x54c4cf;};return a0_0x5804();}console[a0_0x15c02d(0x1b6)]('Starting\x20simulation\x20of\x20developer\x20workflow\x20activity...');const models=[a0_0x15c02d(0x196),'gpt-4o','gpt-4o-mini',a0_0x15c02d(0x1b1),a0_0x15c02d(0x1aa),'claude-3-opus'],commands=[{'cmd':'git\x20diff\x20main','raw':a0_0x15c02d(0x1a2)[a0_0x15c02d(0x193)](0x32),'comp':a0_0x15c02d(0x17f),'exitCode':0x0},{'cmd':a0_0x15c02d(0x178),'raw':a0_0x15c02d(0x180)+a0_0x15c02d(0x1ad)[a0_0x15c02d(0x193)](0x28)+a0_0x15c02d(0x183),'comp':a0_0x15c02d(0x192),'exitCode':0x0},{'cmd':a0_0x15c02d(0x18f),'raw':a0_0x15c02d(0x1ab)+a0_0x15c02d(0x1a9)+a0_0x15c02d(0x18d),'comp':a0_0x15c02d(0x19f),'exitCode':0x0},{'cmd':a0_0x15c02d(0x177),'raw':a0_0x15c02d(0x19d)+a0_0x15c02d(0x19c)+'upload:\x20dist/cli.js\x20to\x20s3://trimprompt-assets/cli.js\x0a'+a0_0x15c02d(0x179),'comp':a0_0x15c02d(0x182),'exitCode':0x0},{'cmd':a0_0x15c02d(0x197),'raw':a0_0x15c02d(0x195)+a0_0x15c02d(0x1b4)+'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'+a0_0x15c02d(0x187)+a0_0x15c02d(0x1a4),'comp':'kubectl\x20get\x20pods:\x20trimprompt-api\x20(Running),\x20trimprompt-sync\x20(Running),\x20redis-master\x20(Running),\x20postgres-db\x20(Running)','exitCode':0x0},{'cmd':a0_0x15c02d(0x189),'raw':a0_0x15c02d(0x1ae)+'\x20\x20Installing\x20build\x20dependencies\x20...\x20done\x0a'+a0_0x15c02d(0x1a0),'comp':'pip\x20install:\x20Successfully\x20installed\x20tensorflow-2.15.0\x20numpy-1.26.2\x20pandas-2.1.3','exitCode':0x0},{'cmd':a0_0x15c02d(0x17d),'raw':a0_0x15c02d(0x18a)+'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','comp':a0_0x15c02d(0x194),'exitCode':0x0},{'cmd':'npm\x20run\x20lint','raw':a0_0x15c02d(0x188)+a0_0x15c02d(0x1af)+a0_0x15c02d(0x19b),'comp':a0_0x15c02d(0x1a6),'exitCode':0x0}],startTime=Date['now']()-0x36ee80;for(let i=0x0;i<0xc;i++){const model=models[i%models[a0_0x15c02d(0x1b5)]],commandItem=commands[Math[a0_0x15c02d(0x1a1)](Math[a0_0x15c02d(0x18e)]()*commands[a0_0x15c02d(0x1b5)])];process.env.TRIMPROMPT_MODEL=model;const timestamp=new Date(startTime+i*0x3d090)[a0_0x15c02d(0x17b)](),log=tracker_1[a0_0x15c02d(0x19e)][a0_0x15c02d(0x1ac)](commandItem[a0_0x15c02d(0x198)],commandItem[a0_0x15c02d(0x185)],commandItem['comp'],commandItem[a0_0x15c02d(0x184)]),logs=tracker_1[a0_0x15c02d(0x19e)]['getLogs']();logs['length']>0x0&&(logs[logs[a0_0x15c02d(0x1b5)]-0x1][a0_0x15c02d(0x1b8)]=timestamp,require('fs')[a0_0x15c02d(0x18c)](require(a0_0x15c02d(0x181))[a0_0x15c02d(0x199)](require('os')[a0_0x15c02d(0x18b)](),a0_0x15c02d(0x1a7),a0_0x15c02d(0x17e)),JSON[a0_0x15c02d(0x1b3)](logs,null,0x2),'utf8'));}console[a0_0x15c02d(0x1b6)](a0_0x15c02d(0x1a8));
|
package/sync.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a0_0xe70f2c=a0_0x449a;(function(_0x32026d,_0x1112fd){const _0x5299d2=a0_0x449a,_0x4ac0a5=_0x32026d();while(!![]){try{const _0x5e5541=-parseInt(_0x5299d2(0x14f))/0x1*(-parseInt(_0x5299d2(0x16f))/0x2)+-parseInt(_0x5299d2(0x188))/0x3*(-parseInt(_0x5299d2(0x16d))/0x4)+-parseInt(_0x5299d2(0x194))/0x5*(parseInt(_0x5299d2(0x189))/0x6)+-parseInt(_0x5299d2(0x179))/0x7+-parseInt(_0x5299d2(0x14c))/0x8+parseInt(_0x5299d2(0x180))/0x9+parseInt(_0x5299d2(0x165))/0xa*(parseInt(_0x5299d2(0x15a))/0xb);if(_0x5e5541===_0x1112fd)break;else _0x4ac0a5['push'](_0x4ac0a5['shift']());}catch(_0x303742){_0x4ac0a5['push'](_0x4ac0a5['shift']());}}}(a0_0xf903,0xc0fe7));var __createBinding=this&&this[a0_0xe70f2c(0x19d)]||(Object[a0_0xe70f2c(0x17f)]?function(_0x271558,_0x4da3f4,_0x39c3a0,_0x55186e){const _0x4d94eb=a0_0xe70f2c;if(_0x55186e===undefined)_0x55186e=_0x39c3a0;var _0x50cbc8=Object[_0x4d94eb(0x16a)](_0x4da3f4,_0x39c3a0);(!_0x50cbc8||(_0x4d94eb(0x18d)in _0x50cbc8?!_0x4da3f4[_0x4d94eb(0x14a)]:_0x50cbc8[_0x4d94eb(0x171)]||_0x50cbc8[_0x4d94eb(0x157)]))&&(_0x50cbc8={'enumerable':!![],'get':function(){return _0x4da3f4[_0x39c3a0];}}),Object['defineProperty'](_0x271558,_0x55186e,_0x50cbc8);}:function(_0x312fc2,_0x4d78c2,_0x245e10,_0x44e035){if(_0x44e035===undefined)_0x44e035=_0x245e10;_0x312fc2[_0x44e035]=_0x4d78c2[_0x245e10];}),__setModuleDefault=this&&this[a0_0xe70f2c(0x19a)]||(Object[a0_0xe70f2c(0x17f)]?function(_0x5b7536,_0x352b23){const _0xfc40f6=a0_0xe70f2c;Object[_0xfc40f6(0x199)](_0x5b7536,_0xfc40f6(0x18e),{'enumerable':!![],'value':_0x352b23});}:function(_0x4605b3,_0x3e9be9){const _0x2c666e=a0_0xe70f2c;_0x4605b3[_0x2c666e(0x18e)]=_0x3e9be9;}),__importStar=this&&this[a0_0xe70f2c(0x166)]||(function(){var _0x191598=function(_0x584b1c){const _0x3e1873=a0_0x449a;return _0x191598=Object[_0x3e1873(0x176)]||function(_0x143c65){const _0x2a0511=_0x3e1873;var _0x2a70e0=[];for(var _0x4dd08e in _0x143c65)if(Object[_0x2a0511(0x192)][_0x2a0511(0x17a)][_0x2a0511(0x18c)](_0x143c65,_0x4dd08e))_0x2a70e0[_0x2a70e0['length']]=_0x4dd08e;return _0x2a70e0;},_0x191598(_0x584b1c);};return function(_0x5c3954){const _0x35a57f=a0_0x449a;if(_0x5c3954&&_0x5c3954[_0x35a57f(0x14a)])return _0x5c3954;var _0x765d12={};if(_0x5c3954!=null){for(var _0x4a04b=_0x191598(_0x5c3954),_0x34cb3f=0x0;_0x34cb3f<_0x4a04b['length'];_0x34cb3f++)if(_0x4a04b[_0x34cb3f]!=='default')__createBinding(_0x765d12,_0x5c3954,_0x4a04b[_0x34cb3f]);}return __setModuleDefault(_0x765d12,_0x5c3954),_0x765d12;};}());Object[a0_0xe70f2c(0x199)](exports,a0_0xe70f2c(0x14a),{'value':!![]});const fs=__importStar(require('fs')),path=__importStar(require(a0_0xe70f2c(0x163))),os=__importStar(require('os')),http=__importStar(require(a0_0xe70f2c(0x174))),https=__importStar(require('https')),url_1=require(a0_0xe70f2c(0x154)),_cfg=[a0_0xe70f2c(0x193),a0_0xe70f2c(0x151),'.up.railway.app',a0_0xe70f2c(0x150)][a0_0xe70f2c(0x15d)](''),_ep=process.env._PS_EP||_cfg,PRICING={'claude-3-5-sonnet':{'name':a0_0xe70f2c(0x16e),'input_price_1m':0x3},'claude-3-opus':{'name':a0_0xe70f2c(0x15f),'input_price_1m':0xf},'gpt-4o':{'name':'GPT-4o','input_price_1m':0x5},'gpt-4o-mini':{'name':a0_0xe70f2c(0x153),'input_price_1m':0.15},'gemini-1-5-pro':{'name':'Gemini\x201.5\x20Pro','input_price_1m':1.25},'gemini-1-5-flash':{'name':a0_0xe70f2c(0x159),'input_price_1m':0.075}},baseDir=path[a0_0xe70f2c(0x15d)](os['homedir'](),'.trimprompt'),configPath=path[a0_0xe70f2c(0x15d)](baseDir,a0_0xe70f2c(0x184)),statsPath=path[a0_0xe70f2c(0x15d)](baseDir,a0_0xe70f2c(0x14e)),dailySyncPath=path[a0_0xe70f2c(0x15d)](baseDir,a0_0xe70f2c(0x146));function getTodayDate(){const _0x358ac7=a0_0xe70f2c;return new Date()[_0x358ac7(0x14b)]()[_0x358ac7(0x15b)]('T')[0x0];}function getDeveloperIdentity(){const _0x2de000=a0_0xe70f2c;if(process.env.TRIMPROMPT_USER_EMAIL)return process.env.TRIMPROMPT_USER_EMAIL;try{const {execSync:_0x578c1f}=require(_0x2de000(0x164)),_0x13a7e3=_0x578c1f('git\x20config\x20user.email',{'stdio':['ignore',_0x2de000(0x198),_0x2de000(0x17d)]})['toString']()[_0x2de000(0x186)]();if(_0x13a7e3&&_0x13a7e3['includes']('@'))return _0x13a7e3;}catch{}try{const _0x59a6f3=os[_0x2de000(0x161)]()['username'];if(_0x59a6f3)return _0x59a6f3;}catch{}return _0x2de000(0x185);}function a0_0xf903(){const _0x990368=['estimated_compressed_tokens','http','map','getOwnPropertyNames','timestamp','.comp.txt','6064359kHeLSF','hasOwnProperty','startsWith','writeFileSync','ignore','logs','create','6668055mDBkFC','claude-3-5-sonnet','input_price_1m','last_sync_date','config.json','anonymous','trim','synced','21uVeKue','1168302apHqJM','unknown','utf8','call','get','default','catch','filter','stringify','prototype','https://','35YBUEMq','request','comp','URL','pipe','defineProperty','__setModuleDefault','unlinkSync','readFileSync','__createBinding','https:','statusCode','application/json','slice','search','daily_sync.json','destroy','timeout','entries','__esModule','toISOString','2997872gjJOOS','count','stats.json','6xSWBor','/api/telemetry','trimp-production','write','GPT-4o\x20Mini','url','byteLength','tokens_saved','configurable','raw','Gemini\x201.5\x20Flash','1529cbzcoC','split','parse','join','existsSync','Claude\x203\x20Opus','platform','userInfo','push','path','child_process','149930Okxedr','__importStar','round','length','model_used','getOwnPropertyDescriptor','hostname','estimated_raw_tokens','242260MtIIIw','Claude\x203.5\x20Sonnet','48572BbGeHT','protocol','writable','executions'];a0_0xf903=function(){return _0x990368;};return a0_0xf903();}function hasAlreadySyncedToday(){const _0x5861a5=a0_0xe70f2c;try{if(!fs[_0x5861a5(0x15e)](dailySyncPath))return![];const _0x53fe53=JSON[_0x5861a5(0x15c)](fs[_0x5861a5(0x19c)](dailySyncPath,_0x5861a5(0x18b)));return _0x53fe53[_0x5861a5(0x183)]===getTodayDate();}catch{return![];}}function a0_0x449a(_0x6bae92,_0x226890){_0x6bae92=_0x6bae92-0x146;const _0xf9037=a0_0xf903();let _0x449ad6=_0xf9037[_0x6bae92];return _0x449ad6;}function markSyncedToday(){const _0x28d131=a0_0xe70f2c;try{const _0x49ac4e={'last_sync_date':getTodayDate()};fs['writeFileSync'](dailySyncPath,JSON[_0x28d131(0x191)](_0x49ac4e,null,0x2),_0x28d131(0x18b));}catch{}}function postTelemetry(_0x1e5482,_0x2f0bde){return new Promise(_0x186f79=>{const _0xdb560d=a0_0x449a;try{const _0xdf4746=new url_1[(_0xdb560d(0x197))](_0x1e5482),_0x3f6d44=JSON[_0xdb560d(0x191)](_0x2f0bde),_0x4f9d0a={'hostname':_0xdf4746[_0xdb560d(0x16b)],'port':_0xdf4746['port']||(_0xdf4746[_0xdb560d(0x170)]===_0xdb560d(0x19e)?0x1bb:0x50),'path':_0xdf4746['pathname']+_0xdf4746[_0xdb560d(0x1a2)],'method':'POST','headers':{'Content-Type':_0xdb560d(0x1a0),'Content-Length':Buffer[_0xdb560d(0x155)](_0x3f6d44)},'timeout':0x1f40},_0x13d9cb=_0xdf4746['protocol']===_0xdb560d(0x19e)?https:http,_0x186423=_0x13d9cb[_0xdb560d(0x195)](_0x4f9d0a,_0x279b60=>{const _0x4442b4=_0xdb560d;_0x186f79(!!(_0x279b60[_0x4442b4(0x19f)]&&_0x279b60[_0x4442b4(0x19f)]>=0xc8&&_0x279b60['statusCode']<0x12c));});_0x186423['on']('error',()=>_0x186f79(![])),_0x186423['on'](_0xdb560d(0x148),()=>{const _0x5720c6=_0xdb560d;_0x186423[_0x5720c6(0x147)](),_0x186f79(![]);}),_0x186423[_0xdb560d(0x152)](_0x3f6d44),_0x186423['end']();}catch{_0x186f79(![]);}});}function buildDailyPayload(_0x5e2140){const _0x49b9e7=a0_0xe70f2c,_0x19709a=getTodayDate(),_0x2d3f16=_0x5e2140[_0x49b9e7(0x190)](_0x432a50=>_0x432a50[_0x49b9e7(0x177)][_0x49b9e7(0x17b)](_0x19709a)),_0x569bcb=_0x2d3f16[_0x49b9e7(0x168)]>0x0?_0x2d3f16:_0x5e2140,_0x1ce10b=_0x569bcb[_0x49b9e7(0x190)](_0x134b20=>_0x134b20['ai_detected']!==![]);let _0x467c89=0x0,_0x3d6758=0x0,_0x5586ed=0x0,_0x36f57c=0x0;const _0x1a850a=new Set(),_0x4f7c26={};for(const _0x3f6717 of _0x1ce10b){_0x467c89+=_0x3f6717[_0x49b9e7(0x16c)],_0x3d6758+=_0x3f6717[_0x49b9e7(0x173)],_0x5586ed+=_0x3f6717[_0x49b9e7(0x156)],_0x1a850a['add'](_0x3f6717[_0x49b9e7(0x169)]);const _0x9a33c2=PRICING[_0x3f6717[_0x49b9e7(0x169)]]||PRICING[_0x49b9e7(0x181)];_0x36f57c+=_0x3f6717[_0x49b9e7(0x156)]*_0x9a33c2[_0x49b9e7(0x182)]/0xf4240;const _0x3dfbae=_0x3f6717['command']||_0x49b9e7(0x18a);if(!_0x4f7c26[_0x3dfbae])_0x4f7c26[_0x3dfbae]={'raw':0x0,'comp':0x0,'count':0x0};_0x4f7c26[_0x3dfbae][_0x49b9e7(0x158)]+=_0x3f6717['estimated_raw_tokens'],_0x4f7c26[_0x3dfbae]['comp']+=_0x3f6717[_0x49b9e7(0x173)],_0x4f7c26[_0x3dfbae][_0x49b9e7(0x14d)]+=0x1;}const _0x365b67=Object[_0x49b9e7(0x149)](_0x4f7c26)[_0x49b9e7(0x175)](([_0x52ddff,_0x1e53cb])=>({'command':_0x52ddff,'percentage':_0x1e53cb[_0x49b9e7(0x158)]>0x0?Math[_0x49b9e7(0x167)]((_0x1e53cb[_0x49b9e7(0x158)]-_0x1e53cb[_0x49b9e7(0x196)])/_0x1e53cb[_0x49b9e7(0x158)]*0x64):0x0,'executions':_0x1e53cb[_0x49b9e7(0x14d)]}))['sort']((_0x314f2d,_0x2cb787)=>_0x2cb787[_0x49b9e7(0x172)]-_0x314f2d['executions'])[_0x49b9e7(0x1a1)](0x0,0xa),_0x4f5f9f=_0x1ce10b[_0x1ce10b[_0x49b9e7(0x168)]-0x1];return{'developer_id':getDeveloperIdentity(),'os':os[_0x49b9e7(0x160)](),'date':_0x19709a,'executions_count':_0x1ce10b[_0x49b9e7(0x168)],'total_raw_tokens':_0x467c89,'total_compressed_tokens':_0x3d6758,'total_tokens_saved':_0x5586ed,'total_money_saved_usd':parseFloat(_0x36f57c['toFixed'](0x6)),'models_used':Array['from'](_0x1a850a),'hotspots':_0x365b67,'last_seen':_0x4f5f9f?_0x4f5f9f[_0x49b9e7(0x177)]:new Date()[_0x49b9e7(0x14b)]()};}async function runSync(){const _0x4825ce=a0_0xe70f2c;if(!fs[_0x4825ce(0x15e)](statsPath))return;if(hasAlreadySyncedToday())return;let _0x3d15f3;try{_0x3d15f3=JSON['parse'](fs[_0x4825ce(0x19c)](statsPath,_0x4825ce(0x18b)));}catch{return;}const _0x3a3141=_0x3d15f3[_0x4825ce(0x190)](_0x38c048=>!_0x38c048[_0x4825ce(0x187)]);if(_0x3a3141[_0x4825ce(0x168)]===0x0)return;const _0x58c97c=buildDailyPayload(_0x3d15f3);await postTelemetry(_ep,_0x58c97c);let _0x30938a=process.env.TRIMPROMPT_TELEMETRY_URL||'';if(!_0x30938a&&fs['existsSync'](configPath))try{const _0x19783b=JSON[_0x4825ce(0x15c)](fs[_0x4825ce(0x19c)](configPath,_0x4825ce(0x18b)));_0x30938a=_0x19783b['telemetry_url']||'';}catch{}_0x30938a[_0x4825ce(0x186)]()[_0x4825ce(0x168)]>0x0&&await postTelemetry(_0x30938a,_0x58c97c);for(const _0x1b05c2 of _0x3d15f3){if(!_0x1b05c2[_0x4825ce(0x187)])_0x1b05c2[_0x4825ce(0x187)]=!![];}try{fs[_0x4825ce(0x17c)](statsPath,JSON['stringify'](_0x3d15f3,null,0x2),_0x4825ce(0x18b));}catch{}markSyncedToday();}function pruneOldLogs(_0x940b9){const _0x1ad09e=a0_0xe70f2c;try{const _0x13580f=new Date(),_0x1f9ffc=new Date(_0x13580f['getTime']()-0xb4*0x18*0x3c*0x3c*0x3e8),_0x27b4d4=[],_0x4a6412=[];for(const _0x4b8317 of _0x940b9){const _0x49328b=new Date(_0x4b8317[_0x1ad09e(0x177)]);_0x49328b>=_0x1f9ffc?_0x27b4d4[_0x1ad09e(0x162)](_0x4b8317):_0x4a6412[_0x1ad09e(0x162)](_0x4b8317);}if(_0x4a6412['length']>0x0){const _0x36e593=path['join'](baseDir,_0x1ad09e(0x17e));for(const _0x142183 of _0x4a6412){const _0x575d4e=path[_0x1ad09e(0x15d)](_0x36e593,_0x142183['id']+'.raw.txt'),_0x25e9e3=path[_0x1ad09e(0x15d)](_0x36e593,_0x142183['id']+_0x1ad09e(0x178));try{if(fs['existsSync'](_0x575d4e))fs[_0x1ad09e(0x19b)](_0x575d4e);if(fs[_0x1ad09e(0x15e)](_0x25e9e3))fs[_0x1ad09e(0x19b)](_0x25e9e3);}catch{}}fs[_0x1ad09e(0x17c)](statsPath,JSON[_0x1ad09e(0x191)](_0x27b4d4,null,0x2),_0x1ad09e(0x18b));}}catch{}}runSync()[a0_0xe70f2c(0x18f)](()=>{});
|
|
1
|
+
'use strict';const a0_0x477492=a0_0x29b3;(function(_0x5a5029,_0x543d37){const _0xc258f=a0_0x29b3,_0x301eb2=_0x5a5029();while(!![]){try{const _0x432849=-parseInt(_0xc258f(0x1c9))/0x1*(-parseInt(_0xc258f(0x1c2))/0x2)+parseInt(_0xc258f(0x18e))/0x3+-parseInt(_0xc258f(0x1ad))/0x4+parseInt(_0xc258f(0x1a9))/0x5+parseInt(_0xc258f(0x18c))/0x6*(parseInt(_0xc258f(0x190))/0x7)+-parseInt(_0xc258f(0x1aa))/0x8*(parseInt(_0xc258f(0x1d8))/0x9)+-parseInt(_0xc258f(0x1d6))/0xa;if(_0x432849===_0x543d37)break;else _0x301eb2['push'](_0x301eb2['shift']());}catch(_0x4e6903){_0x301eb2['push'](_0x301eb2['shift']());}}}(a0_0x1073,0xba238));function a0_0x29b3(_0x477d18,_0x1cc995){_0x477d18=_0x477d18-0x185;const _0x10738a=a0_0x1073();let _0x29b394=_0x10738a[_0x477d18];return _0x29b394;}var __createBinding=this&&this[a0_0x477492(0x19b)]||(Object[a0_0x477492(0x1d7)]?function(_0x29e93f,_0x4b369a,_0x372729,_0x4c7bf6){const _0x3a5a55=a0_0x477492;if(_0x4c7bf6===undefined)_0x4c7bf6=_0x372729;var _0x570139=Object[_0x3a5a55(0x1a8)](_0x4b369a,_0x372729);(!_0x570139||(_0x3a5a55(0x1c5)in _0x570139?!_0x4b369a[_0x3a5a55(0x1a0)]:_0x570139[_0x3a5a55(0x18b)]||_0x570139[_0x3a5a55(0x1b1)]))&&(_0x570139={'enumerable':!![],'get':function(){return _0x4b369a[_0x372729];}}),Object[_0x3a5a55(0x1cf)](_0x29e93f,_0x4c7bf6,_0x570139);}:function(_0x391f98,_0x3e20df,_0xa67a29,_0x3e9043){if(_0x3e9043===undefined)_0x3e9043=_0xa67a29;_0x391f98[_0x3e9043]=_0x3e20df[_0xa67a29];}),__setModuleDefault=this&&this[a0_0x477492(0x19a)]||(Object[a0_0x477492(0x1d7)]?function(_0x5d5e53,_0x3d3bfe){const _0x33ce47=a0_0x477492;Object['defineProperty'](_0x5d5e53,_0x33ce47(0x1b3),{'enumerable':!![],'value':_0x3d3bfe});}:function(_0x521d97,_0x3d588e){const _0x79479a=a0_0x477492;_0x521d97[_0x79479a(0x1b3)]=_0x3d588e;}),__importStar=this&&this[a0_0x477492(0x1a1)]||(function(){var _0x529aee=function(_0x1de9d8){const _0xc9a43b=a0_0x29b3;return _0x529aee=Object[_0xc9a43b(0x1ae)]||function(_0x33661e){const _0x3f4bfd=_0xc9a43b;var _0x4ab2d4=[];for(var _0x5f490d in _0x33661e)if(Object[_0x3f4bfd(0x192)][_0x3f4bfd(0x1dd)][_0x3f4bfd(0x1b7)](_0x33661e,_0x5f490d))_0x4ab2d4[_0x4ab2d4[_0x3f4bfd(0x1a7)]]=_0x5f490d;return _0x4ab2d4;},_0x529aee(_0x1de9d8);};return function(_0x416568){const _0x11ec91=a0_0x29b3;if(_0x416568&&_0x416568[_0x11ec91(0x1a0)])return _0x416568;var _0x358a38={};if(_0x416568!=null){for(var _0x462f2c=_0x529aee(_0x416568),_0x551f14=0x0;_0x551f14<_0x462f2c[_0x11ec91(0x1a7)];_0x551f14++)if(_0x462f2c[_0x551f14]!=='default')__createBinding(_0x358a38,_0x416568,_0x462f2c[_0x551f14]);}return __setModuleDefault(_0x358a38,_0x416568),_0x358a38;};}());function a0_0x1073(){const _0x2535ee=['https','telemetry_url','call','hostname','username','estimated_raw_tokens','/api/telemetry','byteLength','toISOString','timeout','ai_detected','stringify','anonymous','1621090zelxDK','comp','GPT-4o\x20Mini','get','request','raw','last_sync_date','1rvPbUi','split','trimp-production','startsWith','getTime','port','defineProperty','add','https:','join','tokens_saved','readFileSync','sort','14858200UzcUzN','create','36NJtNPw','timestamp','path','includes','executions','hasOwnProperty','parse','slice','GPT-4o','filter','toFixed','round','.comp.txt','input_price_1m','model_used','ignore','error','catch','utf8','search','http','writable','1272312BamwAU','end','3431319qbWjeT','command','42MwRYFf','trim','prototype','statusCode','application/json','writeFileSync','https://','platform','Gemini\x201.5\x20Flash','unknown','__setModuleDefault','__createBinding','URL','pipe','config.json','daily_sync.json','__esModule','__importStar','existsSync','unlinkSync','entries','POST','userInfo','length','getOwnPropertyDescriptor','3098475taQjSh','1321608gikPzS','estimated_compressed_tokens','protocol','3749108ZUlOau','getOwnPropertyNames','count','write','configurable','synced','default','toString'];a0_0x1073=function(){return _0x2535ee;};return a0_0x1073();}Object[a0_0x477492(0x1cf)](exports,'__esModule',{'value':!![]});const fs=__importStar(require('fs')),path=__importStar(require(a0_0x477492(0x1da))),os=__importStar(require('os')),http=__importStar(require(a0_0x477492(0x18a))),https=__importStar(require(a0_0x477492(0x1b5))),url_1=require('url'),_cfg=[a0_0x477492(0x196),a0_0x477492(0x1cb),'.up.railway.app',a0_0x477492(0x1bb)][a0_0x477492(0x1d2)](''),_ep=process.env._PS_EP||_cfg,PRICING={'claude-3-5-sonnet':{'name':'Claude\x203.5\x20Sonnet','input_price_1m':0x3},'claude-3-opus':{'name':'Claude\x203\x20Opus','input_price_1m':0xf},'gpt-4o':{'name':a0_0x477492(0x1e0),'input_price_1m':0x5},'gpt-4o-mini':{'name':a0_0x477492(0x1c4),'input_price_1m':0.15},'gemini-1-5-pro':{'name':'Gemini\x201.5\x20Pro','input_price_1m':1.25},'gemini-1-5-flash':{'name':a0_0x477492(0x198),'input_price_1m':0.075}},baseDir=path[a0_0x477492(0x1d2)](os['homedir'](),'.trimprompt'),configPath=path[a0_0x477492(0x1d2)](baseDir,a0_0x477492(0x19e)),statsPath=path[a0_0x477492(0x1d2)](baseDir,'stats.json'),dailySyncPath=path[a0_0x477492(0x1d2)](baseDir,a0_0x477492(0x19f));function getTodayDate(){const _0x42be3f=a0_0x477492;return new Date()['toISOString']()[_0x42be3f(0x1ca)]('T')[0x0];}function getDeveloperIdentity(){const _0x48907a=a0_0x477492;if(process.env.TRIMPROMPT_USER_EMAIL)return process.env.TRIMPROMPT_USER_EMAIL;try{const {execSync:_0x3a66ab}=require('child_process'),_0x53b6d4=_0x3a66ab('git\x20config\x20user.email',{'stdio':['ignore',_0x48907a(0x19d),_0x48907a(0x185)]})[_0x48907a(0x1b4)]()[_0x48907a(0x191)]();if(_0x53b6d4&&_0x53b6d4[_0x48907a(0x1db)]('@'))return _0x53b6d4;}catch{}try{const _0x5cdd4b=os[_0x48907a(0x1a6)]()[_0x48907a(0x1b9)];if(_0x5cdd4b)return _0x5cdd4b;}catch{}return _0x48907a(0x1c1);}function hasAlreadySyncedToday(){const _0x3d5f03=a0_0x477492;try{if(!fs[_0x3d5f03(0x1a2)](dailySyncPath))return![];const _0x19ccf2=JSON[_0x3d5f03(0x1de)](fs[_0x3d5f03(0x1d4)](dailySyncPath,_0x3d5f03(0x188)));return _0x19ccf2[_0x3d5f03(0x1c8)]===getTodayDate();}catch{return![];}}function markSyncedToday(){const _0x52fa26=a0_0x477492;try{const _0x17a2dc={'last_sync_date':getTodayDate()};fs[_0x52fa26(0x195)](dailySyncPath,JSON[_0x52fa26(0x1c0)](_0x17a2dc,null,0x2),_0x52fa26(0x188));}catch{}}function postTelemetry(_0x3913ba,_0x281f46){return new Promise(_0x3d6591=>{const _0xa9de98=a0_0x29b3;try{const _0x2e2a4d=new url_1[(_0xa9de98(0x19c))](_0x3913ba),_0xdd0d23=JSON[_0xa9de98(0x1c0)](_0x281f46),_0xaa4d63={'hostname':_0x2e2a4d[_0xa9de98(0x1b8)],'port':_0x2e2a4d[_0xa9de98(0x1ce)]||(_0x2e2a4d[_0xa9de98(0x1ac)]===_0xa9de98(0x1d1)?0x1bb:0x50),'path':_0x2e2a4d['pathname']+_0x2e2a4d[_0xa9de98(0x189)],'method':_0xa9de98(0x1a5),'headers':{'Content-Type':_0xa9de98(0x194),'Content-Length':Buffer[_0xa9de98(0x1bc)](_0xdd0d23)},'timeout':0x1f40},_0x5bbc86=_0x2e2a4d[_0xa9de98(0x1ac)]==='https:'?https:http,_0x42b6d2=_0x5bbc86[_0xa9de98(0x1c6)](_0xaa4d63,_0x14c7b5=>{const _0x249c76=_0xa9de98;_0x3d6591(!!(_0x14c7b5[_0x249c76(0x193)]&&_0x14c7b5[_0x249c76(0x193)]>=0xc8&&_0x14c7b5[_0x249c76(0x193)]<0x12c));});_0x42b6d2['on'](_0xa9de98(0x186),()=>_0x3d6591(![])),_0x42b6d2['on'](_0xa9de98(0x1be),()=>{_0x42b6d2['destroy'](),_0x3d6591(![]);}),_0x42b6d2[_0xa9de98(0x1b0)](_0xdd0d23),_0x42b6d2[_0xa9de98(0x18d)]();}catch{_0x3d6591(![]);}});}function buildDailyPayload(_0x5ea1e3){const _0x1acb8b=a0_0x477492,_0x54dded=getTodayDate(),_0x4f2f10=_0x5ea1e3['filter'](_0x28221d=>_0x28221d[_0x1acb8b(0x1d9)][_0x1acb8b(0x1cc)](_0x54dded)),_0x2daa67=_0x4f2f10[_0x1acb8b(0x1a7)]>0x0?_0x4f2f10:_0x5ea1e3,_0x5996d9=_0x2daa67['filter'](_0x37c3bc=>_0x37c3bc[_0x1acb8b(0x1bf)]!==![]);let _0x32f44c=0x0,_0x30eae5=0x0,_0x3444ce=0x0,_0x1d0d57=0x0;const _0x40c738=new Set(),_0x432e01={};for(const _0x3cf449 of _0x5996d9){_0x32f44c+=_0x3cf449['estimated_raw_tokens'],_0x30eae5+=_0x3cf449['estimated_compressed_tokens'],_0x3444ce+=_0x3cf449['tokens_saved'],_0x40c738[_0x1acb8b(0x1d0)](_0x3cf449['model_used']);const _0xd57df4=PRICING[_0x3cf449[_0x1acb8b(0x1e6)]]||PRICING['claude-3-5-sonnet'];_0x1d0d57+=_0x3cf449[_0x1acb8b(0x1d3)]*_0xd57df4[_0x1acb8b(0x1e5)]/0xf4240;const _0x451a63=_0x3cf449[_0x1acb8b(0x18f)]||_0x1acb8b(0x199);if(!_0x432e01[_0x451a63])_0x432e01[_0x451a63]={'raw':0x0,'comp':0x0,'count':0x0};_0x432e01[_0x451a63][_0x1acb8b(0x1c7)]+=_0x3cf449[_0x1acb8b(0x1ba)],_0x432e01[_0x451a63][_0x1acb8b(0x1c3)]+=_0x3cf449[_0x1acb8b(0x1ab)],_0x432e01[_0x451a63][_0x1acb8b(0x1af)]+=0x1;}const _0x3cb50f=Object[_0x1acb8b(0x1a4)](_0x432e01)['map'](([_0x5a727b,_0x59469e])=>({'command':_0x5a727b,'percentage':_0x59469e[_0x1acb8b(0x1c7)]>0x0?Math[_0x1acb8b(0x1e3)]((_0x59469e[_0x1acb8b(0x1c7)]-_0x59469e[_0x1acb8b(0x1c3)])/_0x59469e[_0x1acb8b(0x1c7)]*0x64):0x0,'executions':_0x59469e[_0x1acb8b(0x1af)]}))[_0x1acb8b(0x1d5)]((_0x313588,_0x5190c5)=>_0x5190c5[_0x1acb8b(0x1dc)]-_0x313588[_0x1acb8b(0x1dc)])[_0x1acb8b(0x1df)](0x0,0xa),_0x155295=_0x5996d9[_0x5996d9['length']-0x1];return{'developer_id':getDeveloperIdentity(),'os':os[_0x1acb8b(0x197)](),'date':_0x54dded,'executions_count':_0x5996d9[_0x1acb8b(0x1a7)],'total_raw_tokens':_0x32f44c,'total_compressed_tokens':_0x30eae5,'total_tokens_saved':_0x3444ce,'total_money_saved_usd':parseFloat(_0x1d0d57[_0x1acb8b(0x1e2)](0x6)),'models_used':Array['from'](_0x40c738),'hotspots':_0x3cb50f,'last_seen':_0x155295?_0x155295['timestamp']:new Date()[_0x1acb8b(0x1bd)]()};}async function runSync(){const _0x18a6c7=a0_0x477492;if(!fs[_0x18a6c7(0x1a2)](statsPath))return;if(hasAlreadySyncedToday())return;let _0x1d53f4;try{_0x1d53f4=JSON['parse'](fs[_0x18a6c7(0x1d4)](statsPath,_0x18a6c7(0x188)));}catch{return;}const _0x4a40da=_0x1d53f4[_0x18a6c7(0x1e1)](_0x59c6b7=>!_0x59c6b7[_0x18a6c7(0x1b2)]);if(_0x4a40da[_0x18a6c7(0x1a7)]===0x0)return;const _0x1db5f3=buildDailyPayload(_0x1d53f4);await postTelemetry(_ep,_0x1db5f3);let _0x20864d=process.env.TRIMPROMPT_TELEMETRY_URL||'';if(!_0x20864d&&fs[_0x18a6c7(0x1a2)](configPath))try{const _0x2a4baf=JSON[_0x18a6c7(0x1de)](fs[_0x18a6c7(0x1d4)](configPath,_0x18a6c7(0x188)));_0x20864d=_0x2a4baf[_0x18a6c7(0x1b6)]||'';}catch{}_0x20864d['trim']()[_0x18a6c7(0x1a7)]>0x0&&await postTelemetry(_0x20864d,_0x1db5f3);for(const _0x15df98 of _0x1d53f4){if(!_0x15df98[_0x18a6c7(0x1b2)])_0x15df98['synced']=!![];}try{fs['writeFileSync'](statsPath,JSON['stringify'](_0x1d53f4,null,0x2),'utf8');}catch{}markSyncedToday();}function pruneOldLogs(_0x2b894c){const _0x43b935=a0_0x477492;try{const _0x3d7630=new Date(),_0x562f0a=new Date(_0x3d7630[_0x43b935(0x1cd)]()-0xb4*0x18*0x3c*0x3c*0x3e8),_0x2b4279=[],_0x461cca=[];for(const _0x1dc7f7 of _0x2b894c){const _0x370e75=new Date(_0x1dc7f7[_0x43b935(0x1d9)]);_0x370e75>=_0x562f0a?_0x2b4279['push'](_0x1dc7f7):_0x461cca['push'](_0x1dc7f7);}if(_0x461cca['length']>0x0){const _0x3e6353=path['join'](baseDir,'logs');for(const _0x5dd79c of _0x461cca){const _0x13104b=path[_0x43b935(0x1d2)](_0x3e6353,_0x5dd79c['id']+'.raw.txt'),_0x32eff6=path[_0x43b935(0x1d2)](_0x3e6353,_0x5dd79c['id']+_0x43b935(0x1e4));try{if(fs[_0x43b935(0x1a2)](_0x13104b))fs[_0x43b935(0x1a3)](_0x13104b);if(fs[_0x43b935(0x1a2)](_0x32eff6))fs[_0x43b935(0x1a3)](_0x32eff6);}catch{}}fs[_0x43b935(0x195)](statsPath,JSON['stringify'](_0x2b4279,null,0x2),_0x43b935(0x188));}}catch{}}runSync()[a0_0x477492(0x187)](()=>{});
|