trimprompt 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -22
- package/cache.js +1 -1
- package/cli.js +1 -1
- package/dashboard.js +1 -1
- package/executor.js +1 -1
- package/filters/devops.js +1 -1
- package/filters/generic.js +1 -1
- package/filters/git.js +1 -1
- package/filters/go.js +1 -1
- package/filters/index.js +1 -1
- package/filters/js.js +1 -1
- package/filters/python.js +1 -1
- package/filters/rust.js +1 -1
- package/filters/shell.js +1 -1
- package/mcp.js +1 -1
- package/package.json +1 -1
- package/redactor.js +1 -1
- package/seed.js +1 -1
- package/shims.js +1 -1
- package/simulate.js +1 -1
- package/sync.js +1 -1
- package/tracker.js +1 -1
package/filters/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a0_0x3c9c19=a0_0x130a;(function(_0x37d65f,_0xa62dcc){const _0x46e48e=a0_0x130a,_0x887b91=_0x37d65f();while(!![]){try{const _0x30cfc6=-parseInt(_0x46e48e(0xd3))/0x1+parseInt(_0x46e48e(0xc7))/0x2*(-parseInt(_0x46e48e(0xf3))/0x3)+parseInt(_0x46e48e(0xec))/0x4*(-parseInt(_0x46e48e(0xd1))/0x5)+-parseInt(_0x46e48e(0xeb))/0x6*(-parseInt(_0x46e48e(0xfa))/0x7)+parseInt(_0x46e48e(0xbd))/0x8*(-parseInt(_0x46e48e(0xe1))/0x9)+-parseInt(_0x46e48e(0xf0))/0xa+parseInt(_0x46e48e(0xcd))/0xb;if(_0x30cfc6===_0xa62dcc)break;else _0x887b91['push'](_0x887b91['shift']());}catch(_0x2c4d4f){_0x887b91['push'](_0x887b91['shift']());}}}(a0_0x1154,0xc322a));function a0_0x130a(_0x39a01c,_0xe415d8){const _0x1154ff=a0_0x1154();return a0_0x130a=function(_0x130a92,_0x536473){_0x130a92=_0x130a92-0xb3;let _0x3f9ae4=_0x1154ff[_0x130a92];return _0x3f9ae4;},a0_0x130a(_0x39a01c,_0xe415d8);}Object[a0_0x3c9c19(0xfd)](exports,a0_0x3c9c19(0xcf),{'value':!![]}),exports[a0_0x3c9c19(0xf1)]=compressOutput,exports[a0_0x3c9c19(0x113)]=rewriteCommand;const generic_1=require('./generic'),git_1=require('./git'),python_1=require(a0_0x3c9c19(0x106)),js_1=require(a0_0x3c9c19(0xc2)),shell_1=require(a0_0x3c9c19(0xdc)),rust_1=require(a0_0x3c9c19(0xd7)),go_1=require(a0_0x3c9c19(0x10e)),devops_1=require(a0_0x3c9c19(0xed)),redactor_1=require(a0_0x3c9c19(0xb4));function a0_0x1154(){const _0x350164=['cargo\x20check','filterDockerImages','startsWith','npm\x20i','trim','toLowerCase','16JmiFrp','trim\x20gh','length','filterCargoTest','filterCargoBuild','./js','trim\x20pip','filterPytest','ruff\x20check','yadm\x20log','2qPWzAR','yadm\x20diff','filterPipInstall','trim\x20go','\x20tree\x20','pip\x20install','45176175ibNMeN','trim\x20grep','__esModule','pytest','5BPXXqs','match','1279608KyFIjS','filterCat','stripAnsi','trim\x20cargo','./rust','cargo\x20build','\x20tree','filterDockerLogs','jest','./shell','git\x20log','filterGrep','filterRuff','trim\x20','1669806YReRgk','trim\x20ruff','pnpm\x20test','trim\x20kubectl','trim\x20pytest','filterJestVitest','trim\x20find','test','trim\x20tree','redactor','3248286kmQVMI','2973668xNyrdK','./devops','npm\x20test','endsWith','14399470OJAcIc','compressOutput','trim\x20pnpm','44976PaGhzV','filterLs','trim\x20ls','yarn\x20install','yarn\x20test','vitest','filterGoVet','7rkDVqG','get','filterGitLog','defineProperty','trim\x20npm','\x20ls\x20','filterGitDiff','cargo\x20clippy','go\x20test','npm\x20install','trim\x20docker','git\x20status','./python','git\x20show','filterTree','filterGoTest','cargo\x20test','yadm\x20status','filterKubectl','go\x20vet','./go','pnpm\x20install','npm\x20i\x20','pip3\x20install','includes','rewriteCommand','collapseDuplicates','../redactor','softTruncate','trim\x20git'];a0_0x1154=function(){return _0x350164;};return a0_0x1154();}function compressOutput(_0x4deaf3,_0xc8e758,_0x15d775,_0x2f129a=!![]){const _0x314b88=a0_0x3c9c19,_0x509305=_0x4deaf3[_0x314b88(0xbb)]();let _0x5e1dc5=_0xc8e758;_0x15d775[_0x314b88(0xbb)]()[_0x314b88(0xbf)]>0x0&&(_0x5e1dc5=_0xc8e758+'\x0a'+_0x15d775);let _0x1ff6e7=(0x0,generic_1[_0x314b88(0xd5)])(_0x5e1dc5);_0x2f129a&&(_0x1ff6e7=redactor_1[_0x314b88(0xea)]['redact'](_0x1ff6e7));const _0x4f8872=_0x509305[_0x314b88(0xbc)]();try{if(_0x4f8872[_0x314b88(0x112)](_0x314b88(0x105))||_0x4f8872[_0x314b88(0x112)](_0x314b88(0x10b)))return(0x0,git_1['filterGitStatus'])(_0x1ff6e7);if(_0x4f8872[_0x314b88(0x112)](_0x314b88(0xdd))||_0x4f8872[_0x314b88(0x112)](_0x314b88(0xc6)))return(0x0,git_1[_0x314b88(0xfc)])(_0x1ff6e7);if(_0x4f8872[_0x314b88(0x112)]('git\x20diff')||_0x4f8872[_0x314b88(0x112)](_0x314b88(0x107))||_0x4f8872[_0x314b88(0x112)](_0x314b88(0xc8)))return(0x0,git_1[_0x314b88(0x100)])(_0x1ff6e7);if(_0x4f8872[_0x314b88(0x112)](_0x314b88(0xd0))||_0x4f8872[_0x314b88(0xd2)](/python3?\s+-m\s+pytest/))return(0x0,python_1[_0x314b88(0xc4)])(_0x1ff6e7);if(_0x4f8872[_0x314b88(0x112)](_0x314b88(0xcc))||_0x4f8872[_0x314b88(0x112)](_0x314b88(0x111)))return(0x0,python_1[_0x314b88(0xc9)])(_0x1ff6e7);if(_0x4f8872[_0x314b88(0x112)](_0x314b88(0xc5))||_0x4f8872['includes']('ruff\x20'))return(0x0,devops_1[_0x314b88(0xdf)])(_0x1ff6e7);if(_0x4f8872[_0x314b88(0x112)](_0x314b88(0x103))||_0x4f8872[_0x314b88(0x112)](_0x314b88(0x110))||_0x4f8872['endsWith'](_0x314b88(0xba))||_0x4f8872['includes'](_0x314b88(0x10f))||_0x4f8872[_0x314b88(0x112)](_0x314b88(0xf6)))return(0x0,js_1['filterNpmInstall'])(_0x1ff6e7);if(_0x4f8872[_0x314b88(0x112)](_0x314b88(0xdb))||_0x4f8872[_0x314b88(0x112)](_0x314b88(0xf8)))return(0x0,js_1[_0x314b88(0xe6)])(_0x1ff6e7);if(_0x4f8872['includes'](_0x314b88(0xee))||_0x4f8872[_0x314b88(0x112)](_0x314b88(0xe3))||_0x4f8872[_0x314b88(0x112)](_0x314b88(0xf7))||_0x4f8872['includes']('npm\x20run\x20test'))return(0x0,js_1['filterJestVitest'])(_0x1ff6e7);if(_0x4f8872['includes'](_0x314b88(0x10a)))return(0x0,rust_1[_0x314b88(0xc0)])(_0x1ff6e7);if(_0x4f8872[_0x314b88(0x112)](_0x314b88(0xd8))||_0x4f8872['includes'](_0x314b88(0xb7))||_0x4f8872['includes'](_0x314b88(0x101)))return(0x0,rust_1[_0x314b88(0xc1)])(_0x1ff6e7);if(_0x4f8872['includes'](_0x314b88(0x102)))return(0x0,go_1[_0x314b88(0x109)])(_0x1ff6e7);if(_0x4f8872[_0x314b88(0x112)](_0x314b88(0x10d)))return(0x0,go_1[_0x314b88(0xf9)])(_0x1ff6e7);if(_0x4f8872[_0x314b88(0xd2)](/docker\s+ps/))return(0x0,devops_1['filterDockerPs'])(_0x1ff6e7);if(_0x4f8872['match'](/docker\s+images/))return(0x0,devops_1[_0x314b88(0xb8)])(_0x1ff6e7);if(_0x4f8872['match'](/docker\s+logs/))return(0x0,devops_1[_0x314b88(0xda)])(_0x1ff6e7);if(_0x4f8872[_0x314b88(0x112)]('kubectl')){const _0x332629=_0x4f8872[_0x314b88(0xd2)](/kubectl\s+(get|logs|describe|apply)/),_0x467b09=_0x332629?_0x332629[0x1]:_0x314b88(0xfb);return(0x0,devops_1[_0x314b88(0x10c)])(_0x1ff6e7,_0x467b09);}if(_0x4f8872[_0x314b88(0xd2)](/^(ls|dir)(\s|$)/)||_0x4f8872['includes'](_0x314b88(0xff))||_0x4f8872['endsWith']('\x20ls'))return(0x0,shell_1[_0x314b88(0xf4)])(_0x1ff6e7);if(_0x4f8872['match'](/^tree(\s|$)/)||_0x4f8872[_0x314b88(0x112)](_0x314b88(0xcb))||_0x4f8872[_0x314b88(0xef)](_0x314b88(0xd9)))return(0x0,shell_1[_0x314b88(0x108)])(_0x1ff6e7);if(_0x4f8872[_0x314b88(0xd2)](/^(cat|head|tail|read|bat)(\s|$)/))return(0x0,shell_1[_0x314b88(0xd4)])(_0x1ff6e7);if(_0x4f8872[_0x314b88(0xd2)](/^(grep|rg|ripgrep)(\s|$)/))return(0x0,shell_1[_0x314b88(0xde)])(_0x1ff6e7);}catch(_0x4bef55){}return _0x1ff6e7=(0x0,generic_1[_0x314b88(0xb3)])(_0x1ff6e7),_0x1ff6e7=(0x0,generic_1[_0x314b88(0xb5)])(_0x1ff6e7,0x4e20),_0x1ff6e7;}const REWRITE_RULES=[{'pattern':/^(?:git|yadm)\s+(?:-[Cc]\s+\S+\s+)*(status|log|diff|show|add|commit|push|pull|branch|fetch|stash|worktree)/,'prefix':a0_0x3c9c19(0xb6)},{'pattern':/^gh\s+(pr|issue|run|repo|api|release)/,'prefix':a0_0x3c9c19(0xbe)},{'pattern':/^glab\s+(mr|issue|ci|pipeline|api|release)/,'prefix':'trim\x20glab'},{'pattern':/^cargo\s+(build|test|clippy|check|fmt|install)/,'prefix':a0_0x3c9c19(0xd6)},{'pattern':/^pnpm\s+(exec|i|install|list|ls|outdated|run|run-script)/,'prefix':a0_0x3c9c19(0xf2)},{'pattern':/^npm\s+(exec|run|run-script|rum|urn|x|test)(\s|$)/,'prefix':a0_0x3c9c19(0xfe)},{'pattern':/^npx\s+/,'prefix':'trim\x20npx'},{'pattern':/^(cat|head|tail)\s+/,'prefix':'trim\x20read'},{'pattern':/^(rg|grep)\s+/,'prefix':a0_0x3c9c19(0xce)},{'pattern':/^ls(\s|$)/,'prefix':a0_0x3c9c19(0xf5)},{'pattern':/^tree(\s|$)/,'prefix':a0_0x3c9c19(0xe9)},{'pattern':/^find\s+/,'prefix':a0_0x3c9c19(0xe7)},{'pattern':/^docker\s+(ps|images|logs|run|exec|build|compose)/,'prefix':a0_0x3c9c19(0x104)},{'pattern':/^kubectl\s+(get|logs|describe|apply)/,'prefix':a0_0x3c9c19(0xe4)},{'pattern':/^(python3?\s+-m\s+)?pytest(\s|$)/,'prefix':a0_0x3c9c19(0xe5)},{'pattern':/^ruff\s+(check|format)/,'prefix':a0_0x3c9c19(0xe2)},{'pattern':/^(pip3?|uv\s+pip)\s+(list|outdated|install|show)/,'prefix':a0_0x3c9c19(0xc3)},{'pattern':/^go\s+(test|build|vet)/,'prefix':a0_0x3c9c19(0xca)}];function rewriteCommand(_0x21311d){const _0x10c9a1=a0_0x3c9c19,_0x3e259e=_0x21311d[_0x10c9a1(0xbb)]();if(_0x3e259e[_0x10c9a1(0xb9)]('trim\x20'))return _0x3e259e;for(const _0x181227 of REWRITE_RULES){if(_0x181227['pattern'][_0x10c9a1(0xe8)](_0x3e259e))return _0x10c9a1(0xe0)+_0x3e259e;}return _0x3e259e;}
|
package/filters/js.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a0_0x4f05(_0x112185,_0x8c4fa7){const _0x14228b=a0_0x1422();return a0_0x4f05=function(_0x4f0562,_0x23b3a6){_0x4f0562=_0x4f0562-0x1b8;let _0x584019=_0x14228b[_0x4f0562];return _0x584019;},a0_0x4f05(_0x112185,_0x8c4fa7);}const a0_0x459912=a0_0x4f05;(function(_0x521e5a,_0x59ede0){const _0x3c598a=a0_0x4f05,_0x40d70b=_0x521e5a();while(!![]){try{const _0x499f4e=-parseInt(_0x3c598a(0x1c7))/0x1+-parseInt(_0x3c598a(0x1c3))/0x2+-parseInt(_0x3c598a(0x1ca))/0x3*(-parseInt(_0x3c598a(0x1cf))/0x4)+-parseInt(_0x3c598a(0x1d2))/0x5*(-parseInt(_0x3c598a(0x1d3))/0x6)+parseInt(_0x3c598a(0x1d7))/0x7*(-parseInt(_0x3c598a(0x1de))/0x8)+-parseInt(_0x3c598a(0x1ce))/0x9*(parseInt(_0x3c598a(0x1ba))/0xa)+parseInt(_0x3c598a(0x1be))/0xb;if(_0x499f4e===_0x59ede0)break;else _0x40d70b['push'](_0x40d70b['shift']());}catch(_0x2abed8){_0x40d70b['push'](_0x40d70b['shift']());}}}(a0_0x1422,0xb92cd));function a0_0x1422(){const _0x4d5d57=['22160Xnrddf','\x20passed','Tests:','filterNpmInstall','24838099cHamAU','replace','length','Test\x20Files:','match','633668WggCSj','\x20lines\x20of\x20trace\x20details\x20truncated)','slice','FAIL\x20\x20','993713aXWARO','\x20failed\x20(','found\x20','8523oMXqZv','added\x20','Test\x20Runner:\x20','\x20passed,\x20','495Fxhtha','1324GofWtn','includes','startsWith','36395kTFhcL','180aPnFOs','push','Test\x20Suites:','join','7FKzUBv','FAIL','split','__esModule','NPM:\x20Packages\x20verified/installed\x20successfully','\x0aFailures:','removed\x20','9806768pOmAUf','filterJestVitest','PASS','trim','up\x20to\x20date'];a0_0x1422=function(){return _0x4d5d57;};return a0_0x1422();}Object['defineProperty'](exports,a0_0x459912(0x1da),{'value':!![]}),exports[a0_0x459912(0x1bd)]=filterNpmInstall,exports[a0_0x459912(0x1df)]=filterJestVitest;function filterNpmInstall(_0x1e7235){const _0x5e5e69=a0_0x459912,_0x84a6=_0x1e7235[_0x5e5e69(0x1bf)](/\r/g,'\x0a'),_0x14b5fe=_0x84a6[_0x5e5e69(0x1d9)]('\x0a'),_0x42a3f6=[];for(const _0x14704a of _0x14b5fe){const _0x18d92d=_0x14704a[_0x5e5e69(0x1b8)]();(_0x18d92d['includes'](_0x5e5e69(0x1cb))||_0x18d92d[_0x5e5e69(0x1d0)](_0x5e5e69(0x1dd))||_0x18d92d[_0x5e5e69(0x1d0)]('audited\x20')||_0x18d92d[_0x5e5e69(0x1d0)](_0x5e5e69(0x1b9))||_0x18d92d['includes'](_0x5e5e69(0x1c9)))&&(!_0x18d92d[_0x5e5e69(0x1d0)]('%')&&!_0x18d92d[_0x5e5e69(0x1d1)]('⠋')&&!_0x18d92d[_0x5e5e69(0x1d1)]('⠙')&&_0x42a3f6[_0x5e5e69(0x1d4)](_0x18d92d));}const _0x1efb00=_0x42a3f6[_0x5e5e69(0x1d6)]('\x0a')['trim']();return _0x1efb00[_0x5e5e69(0x1c0)]>0x0?_0x1efb00:_0x5e5e69(0x1db);}function filterJestVitest(_0x482cce){const _0x52c908=a0_0x459912,_0xeb9733=_0x482cce[_0x52c908(0x1d9)]('\x0a');let _0x4a1bd9=0x0,_0x105e86=0x0,_0x3cd9e0=0x0;const _0x2e4cb1=[];let _0x3d5a33=![];for(const _0xe7cf1e of _0xeb9733){const _0x2f9e4c=_0xe7cf1e[_0x52c908(0x1b8)]();if(_0x2f9e4c[_0x52c908(0x1d1)](_0x52c908(0x1bc))||_0x2f9e4c['includes'](_0x52c908(0x1c1))){const _0x265193=_0x2f9e4c['match'](/(\d+)\s+passed/),_0xe66a95=_0x2f9e4c[_0x52c908(0x1c2)](/(\d+)\s+failed/),_0x5e6d89=_0x2f9e4c[_0x52c908(0x1c2)](/(\d+)\s+total/);if(_0x265193)_0x4a1bd9=parseInt(_0x265193[0x1]);if(_0xe66a95)_0x105e86=parseInt(_0xe66a95[0x1]);if(_0x5e6d89)_0x3cd9e0=parseInt(_0x5e6d89[0x1]);continue;}(_0x2f9e4c[_0x52c908(0x1d1)]('❯')||_0x2f9e4c[_0x52c908(0x1d1)]('●')||_0x2f9e4c[_0x52c908(0x1d1)](_0x52c908(0x1c6)))&&(_0x3d5a33=!![]),_0x3d5a33&&(_0x2f9e4c['length']>0x0&&!_0x2f9e4c[_0x52c908(0x1d1)](_0x52c908(0x1d5))&&!_0x2f9e4c[_0x52c908(0x1d1)]('Tests:')&&_0x2e4cb1[_0x52c908(0x1d4)](_0xe7cf1e));}if(_0x3cd9e0===0x0&&_0x4a1bd9===0x0&&_0x105e86===0x0){if(_0x482cce[_0x52c908(0x1d0)](_0x52c908(0x1e0))&&!_0x482cce[_0x52c908(0x1d0)](_0x52c908(0x1d8))){const _0x44a116=_0x482cce[_0x52c908(0x1c2)](/(\d+)\s+passed/),_0x156e90=_0x44a116?_0x44a116[0x1]:'all';return _0x52c908(0x1cc)+_0x156e90+_0x52c908(0x1bb);}return _0x482cce;}if(_0x105e86===0x0&&_0x4a1bd9>0x0)return _0x52c908(0x1cc)+_0x4a1bd9+_0x52c908(0x1bb);const _0x4695b1=[_0x52c908(0x1cc)+_0x4a1bd9+_0x52c908(0x1cd)+_0x105e86+_0x52c908(0x1c8)+_0x3cd9e0+'\x20total)'];if(_0x2e4cb1[_0x52c908(0x1c0)]>0x0){_0x4695b1[_0x52c908(0x1d4)](_0x52c908(0x1dc));const _0x352b04=0x19,_0x1d6ca3=_0x2e4cb1[_0x52c908(0x1c5)](0x0,_0x352b04);for(const _0x240db4 of _0x1d6ca3){_0x4695b1['push']('\x20\x20'+_0x240db4);}_0x2e4cb1[_0x52c908(0x1c0)]>_0x352b04&&_0x4695b1[_0x52c908(0x1d4)]('\x20\x20...\x20('+(_0x2e4cb1[_0x52c908(0x1c0)]-_0x352b04)+_0x52c908(0x1c4));}return _0x4695b1['join']('\x0a');}
|
package/filters/python.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a0_0x34d01d=a0_0x2a0c;(function(_0x192d65,_0x1dcf57){const _0x245623=a0_0x2a0c,_0x271db5=_0x192d65();while(!![]){try{const _0x1c1c0e=parseInt(_0x245623(0x161))/0x1+-parseInt(_0x245623(0x18b))/0x2*(-parseInt(_0x245623(0x184))/0x3)+parseInt(_0x245623(0x169))/0x4*(parseInt(_0x245623(0x162))/0x5)+parseInt(_0x245623(0x16e))/0x6*(parseInt(_0x245623(0x163))/0x7)+-parseInt(_0x245623(0x167))/0x8*(parseInt(_0x245623(0x177))/0x9)+parseInt(_0x245623(0x16d))/0xa*(-parseInt(_0x245623(0x188))/0xb)+parseInt(_0x245623(0x15b))/0xc*(-parseInt(_0x245623(0x186))/0xd);if(_0x1c1c0e===_0x1dcf57)break;else _0x271db5['push'](_0x271db5['shift']());}catch(_0xe58b0){_0x271db5['push'](_0x271db5['shift']());}}}(a0_0x5e6a,0x24a74));Object[a0_0x34d01d(0x165)](exports,a0_0x34d01d(0x15f),{'value':!![]}),exports[a0_0x34d01d(0x166)]=filterPytest,exports[a0_0x34d01d(0x16b)]=filterPipInstall;function a0_0x2a0c(_0x3030f2,_0x49d096){const _0x5e6ad3=a0_0x5e6a();return a0_0x2a0c=function(_0x2a0c79,_0x18a7b0){_0x2a0c79=_0x2a0c79-0x157;let _0x5d4727=_0x5e6ad3[_0x2a0c79];return _0x5d4727;},a0_0x2a0c(_0x3030f2,_0x49d096);}function filterPytest(_0x2b4b44){const _0x4d42e8=a0_0x34d01d,_0x39f537=_0x2b4b44[_0x4d42e8(0x15c)]('\x0a');let _0x354a17=0x0,_0x4341d9=0x0,_0x57e24d=0x0,_0x199cfe=0x0,_0x30bf50=0x0;const _0x16a6c8=[];let _0x5f10cc=[],_0x1a6b73=![];for(const _0x3bf185 of _0x39f537){const _0x4e8c5c=_0x3bf185['trim']();if(_0x4e8c5c[_0x4d42e8(0x164)](_0x4d42e8(0x182))||_0x4e8c5c[_0x4d42e8(0x164)](_0x4d42e8(0x17b))){_0x1a6b73=!![];continue;}else(_0x4e8c5c[_0x4d42e8(0x164)](_0x4d42e8(0x16a))||_0x4e8c5c[_0x4d42e8(0x164)](_0x4d42e8(0x170))&&_0x4e8c5c[_0x4d42e8(0x158)]('passed'))&&(_0x1a6b73=![],_0x5f10cc[_0x4d42e8(0x17c)]>0x0&&(_0x16a6c8[_0x4d42e8(0x173)](_0x5f10cc),_0x5f10cc=[]));if(_0x1a6b73){if(_0x4e8c5c[_0x4d42e8(0x164)]('___'))_0x5f10cc[_0x4d42e8(0x17c)]>0x0&&(_0x16a6c8[_0x4d42e8(0x173)](_0x5f10cc),_0x5f10cc=[]),_0x5f10cc[_0x4d42e8(0x173)](_0x4e8c5c);else _0x4e8c5c[_0x4d42e8(0x17c)]>0x0&&_0x5f10cc[_0x4d42e8(0x173)](_0x3bf185);continue;}if(_0x4e8c5c[_0x4d42e8(0x164)](_0x4d42e8(0x170))&&_0x4e8c5c[_0x4d42e8(0x158)](_0x4d42e8(0x172))){const _0x6f2bf9=_0x4e8c5c[_0x4d42e8(0x18c)](/(\d+)\s+passed/),_0x34167d=_0x4e8c5c[_0x4d42e8(0x18c)](/(\d+)\s+failed/),_0x17fc86=_0x4e8c5c[_0x4d42e8(0x18c)](/(\d+)\s+skipped/),_0x5cca38=_0x4e8c5c['match'](/(\d+)\s+xfailed/),_0x3f107d=_0x4e8c5c[_0x4d42e8(0x18c)](/(\d+)\s+xpassed/);if(_0x6f2bf9)_0x354a17=parseInt(_0x6f2bf9[0x1]);if(_0x34167d)_0x4341d9=parseInt(_0x34167d[0x1]);if(_0x17fc86)_0x57e24d=parseInt(_0x17fc86[0x1]);if(_0x5cca38)_0x199cfe=parseInt(_0x5cca38[0x1]);if(_0x3f107d)_0x30bf50=parseInt(_0x3f107d[0x1]);}}_0x5f10cc['length']>0x0&&_0x16a6c8[_0x4d42e8(0x173)](_0x5f10cc);if(_0x354a17===0x0&&_0x4341d9===0x0&&_0x57e24d===0x0&&_0x199cfe===0x0&&_0x30bf50===0x0){if(_0x2b4b44[_0x4d42e8(0x158)](_0x4d42e8(0x168))&&!_0x2b4b44[_0x4d42e8(0x158)](_0x4d42e8(0x176)))return _0x4d42e8(0x189);return _0x2b4b44;}if(_0x4341d9===0x0&&_0x354a17>0x0&&_0x57e24d===0x0&&_0x199cfe===0x0&&_0x30bf50===0x0)return _0x4d42e8(0x15e)+_0x354a17+_0x4d42e8(0x16f);const _0x490b58=[];_0x490b58[_0x4d42e8(0x173)]('Pytest:\x20'+_0x354a17+'\x20passed');if(_0x4341d9>0x0)_0x490b58['push'](_0x4341d9+_0x4d42e8(0x17a));if(_0x57e24d>0x0)_0x490b58['push'](_0x57e24d+_0x4d42e8(0x15a));if(_0x199cfe>0x0)_0x490b58[_0x4d42e8(0x173)](_0x199cfe+_0x4d42e8(0x160));if(_0x30bf50>0x0)_0x490b58[_0x4d42e8(0x173)](_0x30bf50+_0x4d42e8(0x180));const _0x592a86=[_0x490b58['join'](',\x20')];if(_0x16a6c8[_0x4d42e8(0x17c)]>0x0){_0x592a86[_0x4d42e8(0x173)](_0x4d42e8(0x16c));const _0x439597=0x3,_0x4f109c=_0x16a6c8['slice'](0x0,_0x439597);for(let _0x7b85d=0x0;_0x7b85d<_0x4f109c[_0x4d42e8(0x17c)];_0x7b85d++){const _0x50ac13=_0x4f109c[_0x7b85d],_0x21cf25=_0x50ac13[0x0][_0x4d42e8(0x178)](/_/g,'')[_0x4d42e8(0x175)]();_0x592a86[_0x4d42e8(0x173)]('\x20\x20'+(_0x7b85d+0x1)+_0x4d42e8(0x17e)+_0x21cf25);const _0x1ca63b=_0x50ac13[_0x4d42e8(0x18a)](0x1),_0x300e8e=_0x1ca63b[_0x4d42e8(0x187)](_0x26d6a9=>{const _0x1775fd=_0x4d42e8,_0x132a8b=_0x26d6a9['trim']();return _0x132a8b[_0x1775fd(0x164)]('>')||_0x132a8b['startsWith']('E\x20\x20\x20')||_0x132a8b[_0x1775fd(0x158)](_0x1775fd(0x159))||_0x132a8b[_0x1775fd(0x158)]('AssertionError:');});for(const _0x591033 of _0x300e8e[_0x4d42e8(0x18a)](0x0,0x8)){_0x592a86[_0x4d42e8(0x173)]('\x20\x20\x20\x20'+_0x591033);}_0x300e8e['length']>0x8&&_0x592a86[_0x4d42e8(0x173)](_0x4d42e8(0x181)+(_0x300e8e['length']-0x8)+_0x4d42e8(0x17d));}_0x16a6c8[_0x4d42e8(0x17c)]>_0x439597&&_0x592a86[_0x4d42e8(0x173)](_0x4d42e8(0x183)+(_0x16a6c8[_0x4d42e8(0x17c)]-_0x439597)+_0x4d42e8(0x15d));}return _0x592a86['join']('\x0a');}function a0_0x5e6a(){const _0x349854=['split','\x20more\x20failures\x20truncated','Pytest:\x20','__esModule','\x20xfailed','284186IMXDjU','114765KphtzE','52941wXtPdV','startsWith','defineProperty','filterPytest','16amOpng','passed','28VdFiic','===\x20short\x20test\x20summary\x20info\x20===','filterPipInstall','\x0aFailures:','60ZZeoJz','18MYzSNF','\x20passed','===','Collecting','\x20in\x20','push','Using\x20cached','trim','failed','1080990ePLDRb','replace','Requirement\x20already\x20satisfied','\x20failed','===\x20ERRORS\x20===','length','\x20lines\x20of\x20stacktrace\x20truncated)','.\x20[FAIL]\x20','Downloading','\x20xpassed\x20(warning!)','\x20\x20\x20\x20...\x20(','===\x20FAILURES\x20===','\x20\x20...\x20+','216XOOOyB','join','553072sPtehk','filter','301301eCyfXA','Pytest:\x20All\x20tests\x20passed','slice','7148Lwmifo','match','Successfully\x20installed','includes','.py:','\x20skipped','48zIUpvh'];a0_0x5e6a=function(){return _0x349854;};return a0_0x5e6a();}function filterPipInstall(_0x36836c){const _0x340cc4=a0_0x34d01d,_0x37c81a=_0x36836c[_0x340cc4(0x15c)]('\x0a'),_0x5756d2=[];for(const _0x4e6f9a of _0x37c81a){const _0x50f150=_0x4e6f9a['trim']();_0x50f150[_0x340cc4(0x164)](_0x340cc4(0x157))&&_0x5756d2[_0x340cc4(0x173)](_0x50f150);}if(_0x5756d2['length']>0x0)return _0x5756d2['join']('\x0a');return _0x37c81a[_0x340cc4(0x187)](_0x326465=>{const _0x3e9f20=_0x340cc4,_0x2ec11d=_0x326465[_0x3e9f20(0x175)]();return!_0x2ec11d[_0x3e9f20(0x164)](_0x3e9f20(0x171))&&!_0x2ec11d[_0x3e9f20(0x164)](_0x3e9f20(0x17f))&&!_0x2ec11d['includes'](_0x3e9f20(0x174))&&!_0x2ec11d[_0x3e9f20(0x164)](_0x3e9f20(0x179));})[_0x340cc4(0x185)]('\x0a')[_0x340cc4(0x175)]();}
|
package/filters/rust.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a0_0x71af59=a0_0x3269;(function(_0x3f895d,_0x484e1f){const _0x72437=a0_0x3269,_0x10f0b9=_0x3f895d();while(!![]){try{const _0x527ec0=-parseInt(_0x72437(0x8d))/0x1+-parseInt(_0x72437(0x90))/0x2*(parseInt(_0x72437(0x87))/0x3)+-parseInt(_0x72437(0x83))/0x4+-parseInt(_0x72437(0xad))/0x5*(-parseInt(_0x72437(0x9f))/0x6)+parseInt(_0x72437(0x93))/0x7+-parseInt(_0x72437(0x92))/0x8+parseInt(_0x72437(0x8f))/0x9;if(_0x527ec0===_0x484e1f)break;else _0x10f0b9['push'](_0x10f0b9['shift']());}catch(_0x437915){_0x10f0b9['push'](_0x10f0b9['shift']());}}}(a0_0x5698,0x4fdc8));Object[a0_0x71af59(0xae)](exports,'__esModule',{'value':!![]}),exports[a0_0x71af59(0x8b)]=filterCargoTest,exports[a0_0x71af59(0xa0)]=filterCargoBuild;function filterCargoTest(_0x289583){const _0x4dadcd=a0_0x71af59,_0x35ee2f=_0x289583[_0x4dadcd(0x9d)]('\x0a');let _0x7cd13f=0x0,_0x3597af=0x0,_0x4a5160=0x0,_0x125402=0x0;const _0x1dd3db=[];let _0x2e07c9=![],_0x4ee480=[];for(const _0x1fb2c9 of _0x35ee2f){const _0x2c5bff=_0x1fb2c9[_0x4dadcd(0xa7)](),_0x450a5f=_0x2c5bff[_0x4dadcd(0x97)](/test result:\s*(\w+)\.\s*(\d+)\s+passed;\s*(\d+)\s+failed;\s*(\d+)\s+ignored;\s*(\d+)\s+measured/);if(_0x450a5f){_0x7cd13f+=parseInt(_0x450a5f[0x2]),_0x3597af+=parseInt(_0x450a5f[0x3]),_0x4a5160+=parseInt(_0x450a5f[0x4]),_0x125402+=parseInt(_0x450a5f[0x5]);continue;}if(_0x2c5bff===_0x4dadcd(0x8a)||_0x2c5bff==='----\x20failures\x20----'){_0x2e07c9=!![];continue;}if(_0x2e07c9){if(_0x2c5bff[_0x4dadcd(0x99)](_0x4dadcd(0xa5))&&_0x2c5bff[_0x4dadcd(0xa9)](_0x4dadcd(0x9e))){if(_0x4ee480[_0x4dadcd(0x95)]>0x0)_0x1dd3db[_0x4dadcd(0x84)](_0x4ee480[_0x4dadcd(0x7d)]('\x0a'));_0x4ee480=[_0x2c5bff[_0x4dadcd(0x98)](/^-+\s*/,'')['replace'](/\s*-+$/,'')];}else{if(_0x2c5bff===_0x4dadcd(0x8a)||_0x2c5bff[_0x4dadcd(0x99)](_0x4dadcd(0x82))){if(_0x4ee480[_0x4dadcd(0x95)]>0x0)_0x1dd3db[_0x4dadcd(0x84)](_0x4ee480[_0x4dadcd(0x7d)]('\x0a'));_0x4ee480=[],_0x2e07c9=![];}else _0x2c5bff[_0x4dadcd(0x95)]>0x0&&_0x4ee480[_0x4dadcd(0x84)](_0x1fb2c9);}}}if(_0x4ee480[_0x4dadcd(0x95)]>0x0)_0x1dd3db[_0x4dadcd(0x84)](_0x4ee480[_0x4dadcd(0x7d)]('\x0a'));if(_0x7cd13f===0x0&&_0x3597af===0x0&&_0x4a5160===0x0){if(_0x289583['includes'](_0x4dadcd(0x85)))return _0x4dadcd(0xac);return _0x289583;}if(_0x3597af===0x0){const _0x3ce5d0=[_0x4dadcd(0xaf)+_0x7cd13f+_0x4dadcd(0xa3)];if(_0x4a5160>0x0)_0x3ce5d0[_0x4dadcd(0x84)](_0x4a5160+_0x4dadcd(0xa4));return _0x3ce5d0[_0x4dadcd(0x7d)](',\x20');}const _0x24795e=[_0x4dadcd(0xaf)+_0x7cd13f+'\x20passed,\x20'+_0x3597af+'\x20failed,\x20'+_0x4a5160+_0x4dadcd(0xa4)];if(_0x1dd3db[_0x4dadcd(0x95)]>0x0){_0x24795e[_0x4dadcd(0x84)](_0x4dadcd(0x7e));const _0x9cf30b=0x3;for(let _0x30d390=0x0;_0x30d390<Math[_0x4dadcd(0x86)](_0x1dd3db[_0x4dadcd(0x95)],_0x9cf30b);_0x30d390++){const _0x4e8dca=_0x1dd3db[_0x30d390][_0x4dadcd(0x9d)]('\x0a');_0x24795e[_0x4dadcd(0x84)]('\x20\x20'+(_0x30d390+0x1)+'.\x20'+_0x4e8dca[0x0]);const _0xaa6a8d=_0x4e8dca[_0x4dadcd(0x9c)](0x1),_0x141d37=_0xaa6a8d[_0x4dadcd(0x9a)](_0x2c6627=>_0x2c6627[_0x4dadcd(0xa7)]()[_0x4dadcd(0x99)](_0x4dadcd(0x7c))||_0x2c6627['includes'](_0x4dadcd(0xa1))||_0x2c6627[_0x4dadcd(0x9b)](_0x4dadcd(0x89))||_0x2c6627['includes']('left:')||_0x2c6627[_0x4dadcd(0x9b)](_0x4dadcd(0x7f)));for(const _0x3a9163 of _0x141d37[_0x4dadcd(0x9c)](0x0,0x5)){_0x24795e['push'](_0x4dadcd(0x91)+_0x3a9163[_0x4dadcd(0xa7)]());}}_0x1dd3db[_0x4dadcd(0x95)]>_0x9cf30b&&_0x24795e[_0x4dadcd(0x84)](_0x4dadcd(0x96)+(_0x1dd3db[_0x4dadcd(0x95)]-_0x9cf30b)+_0x4dadcd(0x8e));}return _0x24795e['join']('\x0a');}function filterCargoBuild(_0x1f576e){const _0x54af47=a0_0x71af59,_0x5d1a1f=_0x1f576e[_0x54af47(0x9d)]('\x0a'),_0x335273=[],_0x1f6495=[];let _0x2d2770=0x0;for(const _0x259dfe of _0x5d1a1f){const _0x2c06bc=_0x259dfe['trim']();if(_0x2c06bc['startsWith'](_0x54af47(0xa8)))_0x2d2770++;else{if(_0x2c06bc[_0x54af47(0x99)]('warning[')||_0x2c06bc[_0x54af47(0x99)]('warning:'))_0x335273[_0x54af47(0x84)](_0x2c06bc);else{if(_0x2c06bc['startsWith'](_0x54af47(0x8c))||_0x2c06bc[_0x54af47(0x99)](_0x54af47(0xa2)))_0x1f6495[_0x54af47(0x84)](_0x2c06bc);}}}if(_0x1f6495[_0x54af47(0x95)]===0x0&&_0x335273[_0x54af47(0x95)]===0x0)return _0x2d2770>0x0?_0x54af47(0x88)+_0x2d2770+_0x54af47(0x80):_0x1f576e['trim']();const _0x26c4c6=[];if(_0x1f6495[_0x54af47(0x95)]>0x0){_0x26c4c6[_0x54af47(0x84)](_0x54af47(0xa6)+_0x1f6495['length']+'\x20errors,\x20'+_0x335273[_0x54af47(0x95)]+_0x54af47(0x94)),_0x26c4c6[_0x54af47(0x84)]('\x0aErrors:');for(const _0x1e0810 of _0x1f6495['slice'](0x0,0x5))_0x26c4c6[_0x54af47(0x84)]('\x20\x20'+_0x1e0810);if(_0x1f6495[_0x54af47(0x95)]>0x5)_0x26c4c6[_0x54af47(0x84)]('\x20\x20...\x20+'+(_0x1f6495[_0x54af47(0x95)]-0x5)+_0x54af47(0xab));}else _0x26c4c6['push'](_0x54af47(0x88)+_0x2d2770+_0x54af47(0xaa)+_0x335273['length']+_0x54af47(0x94));if(_0x335273[_0x54af47(0x95)]>0x0&&_0x335273[_0x54af47(0x95)]<=0x5){_0x26c4c6['push'](_0x54af47(0x81));for(const _0x282e48 of _0x335273)_0x26c4c6['push']('\x20\x20'+_0x282e48);}else _0x335273['length']>0x5&&_0x26c4c6[_0x54af47(0x84)]('\x0a('+_0x335273[_0x54af47(0x95)]+'\x20warnings\x20—\x20run\x20cargo\x20clippy\x20for\x20details)');return _0x26c4c6[_0x54af47(0x7d)]('\x0a');}function a0_0x3269(_0x15063f,_0x101c23){const _0x56984b=a0_0x5698();return a0_0x3269=function(_0x326905,_0x303bef){_0x326905=_0x326905-0x7c;let _0x125591=_0x56984b[_0x326905];return _0x125591;},a0_0x3269(_0x15063f,_0x101c23);}function a0_0x5698(){const _0x39c1b8=['6xnDbtO','filterCargoBuild','panicked','error:','\x20passed','\x20ignored','----\x20','Cargo:\x20','trim','Compiling\x20','endsWith','\x20crates,\x20','\x20more\x20errors','Cargo\x20test:\x20all\x20tests\x20passed','389230wBrWWG','defineProperty','Cargo\x20test:\x20','thread','join','\x0aFailures:','right:','\x20crates\x20successfully','\x0aWarnings:','test\x20result:','1728428IqNDLQ','push','test\x20result:\x20ok','min','4353aZYBqh','Cargo:\x20compiled\x20','assert','failures:','filterCargoTest','error[','565178KtrBaW','\x20more\x20failures','8714610sGLJuQ','374umYOau','\x20\x20\x20\x20','279624heylik','4091857Oubstb','\x20warnings','length','\x20\x20...\x20+','match','replace','startsWith','filter','includes','slice','split','\x20----'];a0_0x5698=function(){return _0x39c1b8;};return a0_0x5698();}
|
package/filters/shell.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function a0_0x27e8(_0x5d67b3,_0x4fbea9){const _0x281c9e=a0_0x281c();return a0_0x27e8=function(_0x27e8b6,_0x1ae8da){_0x27e8b6=_0x27e8b6-0x9d;let _0xe2920c=_0x281c9e[_0x27e8b6];return _0xe2920c;},a0_0x27e8(_0x5d67b3,_0x4fbea9);}const a0_0x157704=a0_0x27e8;(function(_0xbbe27,_0x7c99f3){const _0x1ae3ed=a0_0x27e8,_0x51af3a=_0xbbe27();while(!![]){try{const _0x3eecc5=-parseInt(_0x1ae3ed(0xa8))/0x1*(-parseInt(_0x1ae3ed(0xb6))/0x2)+parseInt(_0x1ae3ed(0xc2))/0x3*(parseInt(_0x1ae3ed(0xaf))/0x4)+parseInt(_0x1ae3ed(0xac))/0x5+-parseInt(_0x1ae3ed(0xca))/0x6+-parseInt(_0x1ae3ed(0xa0))/0x7*(-parseInt(_0x1ae3ed(0xa5))/0x8)+parseInt(_0x1ae3ed(0xa7))/0x9*(parseInt(_0x1ae3ed(0xaa))/0xa)+-parseInt(_0x1ae3ed(0xc9))/0xb*(parseInt(_0x1ae3ed(0xb0))/0xc);if(_0x3eecc5===_0x7c99f3)break;else _0x51af3a['push'](_0x51af3a['shift']());}catch(_0x3009fa){_0x51af3a['push'](_0x51af3a['shift']());}}}(a0_0x281c,0x3ca33));Object[a0_0x157704(0xc6)](exports,a0_0x157704(0xc7),{'value':!![]}),exports[a0_0x157704(0xab)]=filterLs,exports[a0_0x157704(0xad)]=filterTree,exports[a0_0x157704(0xb4)]=filterCat,exports[a0_0x157704(0x9f)]=filterGrep;function a0_0x281c(){const _0x18e0c4=['\x20more\x20files\x20with\x20matches','\x0a...\x20[','length','\x20lines\x20truncated]\x20...\x0a','...\x20+','\x20directories,\x20','match','\x20more\x20files','\x20more\x20matches','slice',':\x20...\x20(','57ISzBuQ','filter','indexOf','total\x20','defineProperty','__esModule','\x20files)','2167lrIqTI','480786aYbZbH','No\x20matches\x20found','endsWith','filterGrep','14redYaf','split','startsWith','trim','\x20lines\x20total)','373640EuXfIR','join','21348kjrGfL','21355kwwVaB','includes','100JybQLu','filterLs','963135rBGfYU','filterTree','\x20files\x20total\x20—\x20deep\x20entries\x20truncated)','36212heHizA','35352lqFRBA','\x20matches\x20across\x20','Empty\x20directory','substring','filterCat','push','40mEbRUk'];a0_0x281c=function(){return _0x18e0c4;};return a0_0x281c();}function filterLs(_0x587637){const _0x8490c4=a0_0x157704,_0x64d54b=_0x587637[_0x8490c4(0xa1)]('\x0a')[_0x8490c4(0xc3)](_0x803f=>_0x803f[_0x8490c4(0xa3)]()[_0x8490c4(0xb9)]>0x0);if(_0x64d54b[_0x8490c4(0xb9)]===0x0)return _0x8490c4(0xb2);if(_0x64d54b[_0x8490c4(0xb9)]<=0x1e)return _0x587637[_0x8490c4(0xa3)]();const _0x489a85=[],_0x55dbdb=[];for(const _0x5e886c of _0x64d54b){const _0x3e4ce6=_0x5e886c[_0x8490c4(0xa3)]();if(_0x3e4ce6[_0x8490c4(0xa2)](_0x8490c4(0xc5))||_0x3e4ce6['startsWith']('d')&&_0x3e4ce6[_0x8490c4(0xa9)]('..'))continue;_0x3e4ce6[_0x8490c4(0x9e)]('/')||_0x3e4ce6[_0x8490c4(0xa2)]('d')&&_0x3e4ce6[_0x8490c4(0xa9)]('\x20')?_0x489a85['push'](_0x3e4ce6):_0x55dbdb[_0x8490c4(0xb5)](_0x3e4ce6);}const _0x26919b=[];return _0x489a85[_0x8490c4(0xb9)]>0x0&&(_0x489a85['length']<=0xf?_0x26919b[_0x8490c4(0xb5)](..._0x489a85):(_0x26919b[_0x8490c4(0xb5)](..._0x489a85[_0x8490c4(0xc0)](0x0,0xa)),_0x26919b[_0x8490c4(0xb5)]('...\x20+'+(_0x489a85[_0x8490c4(0xb9)]-0xa)+'\x20more\x20directories'))),_0x55dbdb[_0x8490c4(0xb9)]>0x0&&(_0x55dbdb[_0x8490c4(0xb9)]<=0x14?_0x26919b[_0x8490c4(0xb5)](..._0x55dbdb):(_0x26919b[_0x8490c4(0xb5)](..._0x55dbdb['slice'](0x0,0xf)),_0x26919b['push'](_0x8490c4(0xbb)+(_0x55dbdb[_0x8490c4(0xb9)]-0xf)+_0x8490c4(0xbe)))),_0x26919b[_0x8490c4(0xb5)]('\x0a('+_0x489a85[_0x8490c4(0xb9)]+_0x8490c4(0xbc)+_0x55dbdb[_0x8490c4(0xb9)]+_0x8490c4(0xc8)),_0x26919b[_0x8490c4(0xa6)]('\x0a');}function filterTree(_0x3f59e6){const _0x2e85a0=a0_0x157704,_0x1695f9=_0x3f59e6[_0x2e85a0(0xa1)]('\x0a');if(_0x1695f9[_0x2e85a0(0xb9)]<=0x32)return _0x3f59e6[_0x2e85a0(0xa3)]();const _0x2498cd=[];let _0x2a0cab=0x0,_0x260b0e=0x0,_0x492cf6=0x0;for(const _0x2d450e of _0x1695f9){const _0x34e142=_0x2d450e['match'](/(\d+)\s+director/),_0x53fdaa=_0x2d450e[_0x2e85a0(0xbd)](/(\d+)\s+file/);if(_0x34e142)_0x492cf6=parseInt(_0x34e142[0x1]);if(_0x53fdaa)_0x260b0e=parseInt(_0x53fdaa[0x1]);const _0x4fc35f=(_0x2d450e['match'](/^[│├└\s─]+/)||[''])[0x0][_0x2e85a0(0xb9)];_0x4fc35f<=0x4&&(_0x2498cd[_0x2e85a0(0xb5)](_0x2d450e),_0x2a0cab++);}return _0x1695f9[_0x2e85a0(0xb9)]>_0x2498cd[_0x2e85a0(0xb9)]&&_0x2498cd[_0x2e85a0(0xb5)]('\x0a...\x20('+_0x492cf6+_0x2e85a0(0xbc)+_0x260b0e+_0x2e85a0(0xae)),_0x2498cd[_0x2e85a0(0xa6)]('\x0a');}function filterCat(_0x552056){const _0x4a2c07=a0_0x157704,_0x53f650=_0x552056['split']('\x0a');if(_0x53f650[_0x4a2c07(0xb9)]<=0x64)return _0x552056;const _0x1297d9=[];return _0x1297d9[_0x4a2c07(0xb5)](..._0x53f650[_0x4a2c07(0xc0)](0x0,0x32)),_0x1297d9[_0x4a2c07(0xb5)](_0x4a2c07(0xb8)+(_0x53f650['length']-0x50)+_0x4a2c07(0xba)),_0x1297d9[_0x4a2c07(0xb5)](..._0x53f650[_0x4a2c07(0xc0)](-0x1e)),_0x1297d9[_0x4a2c07(0xb5)]('\x0a('+_0x53f650[_0x4a2c07(0xb9)]+_0x4a2c07(0xa4)),_0x1297d9[_0x4a2c07(0xa6)]('\x0a');}function filterGrep(_0x2cb636){const _0x5b461e=a0_0x157704,_0x136a75=_0x2cb636['split']('\x0a')[_0x5b461e(0xc3)](_0x19183e=>_0x19183e['trim']()[_0x5b461e(0xb9)]>0x0);if(_0x136a75[_0x5b461e(0xb9)]===0x0)return _0x5b461e(0x9d);if(_0x136a75[_0x5b461e(0xb9)]<=0x32)return _0x2cb636[_0x5b461e(0xa3)]();const _0x7854f5={},_0x148995=[];for(const _0x5491ed of _0x136a75){const _0x1d3fc2=_0x5491ed[_0x5b461e(0xc4)](':');if(_0x1d3fc2>0x0&&_0x1d3fc2<0xc8){const _0xf690cd=_0x5491ed[_0x5b461e(0xb3)](0x0,_0x1d3fc2);if(_0xf690cd['includes']('/')||_0xf690cd[_0x5b461e(0xa9)]('\x5c')||_0xf690cd[_0x5b461e(0xa9)]('.')){if(!_0x7854f5[_0xf690cd])_0x7854f5[_0xf690cd]=[];_0x7854f5[_0xf690cd][_0x5b461e(0xb5)](_0x5491ed[_0x5b461e(0xb3)](_0x1d3fc2+0x1)[_0x5b461e(0xa3)]());continue;}}_0x148995[_0x5b461e(0xb5)](_0x5491ed);}const _0x43dbf7=[],_0x562b58=Object['keys'](_0x7854f5);if(_0x562b58[_0x5b461e(0xb9)]>0x0){const _0x54747f=0x14,_0x9bb591=_0x562b58[_0x5b461e(0xc0)](0x0,_0x54747f);for(const _0x4b0f6e of _0x9bb591){const _0x197804=_0x7854f5[_0x4b0f6e];if(_0x197804[_0x5b461e(0xb9)]<=0x3)for(const _0x5f41eb of _0x197804){_0x43dbf7[_0x5b461e(0xb5)](_0x4b0f6e+':\x20'+_0x5f41eb);}else _0x43dbf7[_0x5b461e(0xb5)](_0x4b0f6e+':\x20'+_0x197804[0x0]),_0x43dbf7[_0x5b461e(0xb5)](_0x4b0f6e+_0x5b461e(0xc1)+_0x197804[_0x5b461e(0xb9)]+'\x20matches\x20in\x20this\x20file)');}_0x562b58[_0x5b461e(0xb9)]>_0x54747f&&_0x43dbf7[_0x5b461e(0xb5)](_0x5b461e(0xbb)+(_0x562b58[_0x5b461e(0xb9)]-_0x54747f)+_0x5b461e(0xb7));}if(_0x148995['length']>0x0){const _0x5335c6=0x1e;_0x43dbf7[_0x5b461e(0xb5)](..._0x148995[_0x5b461e(0xc0)](0x0,_0x5335c6)),_0x148995[_0x5b461e(0xb9)]>_0x5335c6&&_0x43dbf7[_0x5b461e(0xb5)](_0x5b461e(0xbb)+(_0x148995[_0x5b461e(0xb9)]-_0x5335c6)+_0x5b461e(0xbf));}const _0x5ddee1=_0x136a75[_0x5b461e(0xb9)];return _0x43dbf7[_0x5b461e(0xb5)]('\x0a('+_0x5ddee1+_0x5b461e(0xb1)+(_0x562b58[_0x5b461e(0xb9)]||'?')+_0x5b461e(0xc8)),_0x43dbf7[_0x5b461e(0xa6)]('\x0a');}
|
package/mcp.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const a0_0x205d7d=a0_0x1079;(function(_0x336270,_0x336897){const _0x97af5d=a0_0x1079,_0x4e4937=_0x336270();while(!![]){try{const _0x2fbedd=-parseInt(_0x97af5d(0x1b2))/0x1+-parseInt(_0x97af5d(0x1b4))/0x2+-parseInt(_0x97af5d(0x1cf))/0x3*(-parseInt(_0x97af5d(0x1d7))/0x4)+parseInt(_0x97af5d(0x1e0))/0x5+-parseInt(_0x97af5d(0x1c5))/0x6+parseInt(_0x97af5d(0x1d1))/0x7*(-parseInt(_0x97af5d(0x1d3))/0x8)+-parseInt(_0x97af5d(0x1bf))/0x9*(-parseInt(_0x97af5d(0x1be))/0xa);if(_0x2fbedd===_0x336897)break;else _0x4e4937['push'](_0x4e4937['shift']());}catch(_0x4d0c40){_0x4e4937['push'](_0x4e4937['shift']());}}}(a0_0xd257,0x78d6c));var __createBinding=this&&this[a0_0x205d7d(0x1cc)]||(Object[a0_0x205d7d(0x1b5)]?function(_0x42e9a6,_0x586613,_0x21746a,_0x1f32cd){const _0x24f379=a0_0x205d7d;if(_0x1f32cd===undefined)_0x1f32cd=_0x21746a;var _0xaf1e97=Object[_0x24f379(0x1d5)](_0x586613,_0x21746a);(!_0xaf1e97||(_0x24f379(0x1de)in _0xaf1e97?!_0x586613[_0x24f379(0x1ca)]:_0xaf1e97[_0x24f379(0x1db)]||_0xaf1e97['configurable']))&&(_0xaf1e97={'enumerable':!![],'get':function(){return _0x586613[_0x21746a];}}),Object['defineProperty'](_0x42e9a6,_0x1f32cd,_0xaf1e97);}:function(_0x1f6999,_0x276d5d,_0x42a60e,_0x4bb041){if(_0x4bb041===undefined)_0x4bb041=_0x42a60e;_0x1f6999[_0x4bb041]=_0x276d5d[_0x42a60e];}),__setModuleDefault=this&&this[a0_0x205d7d(0x1ce)]||(Object[a0_0x205d7d(0x1b5)]?function(_0x16d05c,_0xc6d1f4){const _0x2701af=a0_0x205d7d;Object[_0x2701af(0x1d2)](_0x16d05c,_0x2701af(0x1cb),{'enumerable':!![],'value':_0xc6d1f4});}:function(_0x5e1532,_0x45c451){const _0x235f61=a0_0x205d7d;_0x5e1532[_0x235f61(0x1cb)]=_0x45c451;}),__importStar=this&&this[a0_0x205d7d(0x1c3)]||(function(){var _0x5c1574=function(_0x363bdf){return _0x5c1574=Object['getOwnPropertyNames']||function(_0x110f2f){const _0x5ae41a=a0_0x1079;var _0x494ad3=[];for(var _0x41321c in _0x110f2f)if(Object[_0x5ae41a(0x1b0)][_0x5ae41a(0x1cd)][_0x5ae41a(0x1e4)](_0x110f2f,_0x41321c))_0x494ad3[_0x494ad3[_0x5ae41a(0x1ba)]]=_0x41321c;return _0x494ad3;},_0x5c1574(_0x363bdf);};return function(_0x5192c5){const _0x52b027=a0_0x1079;if(_0x5192c5&&_0x5192c5['__esModule'])return _0x5192c5;var _0x2263f8={};if(_0x5192c5!=null){for(var _0xe7335e=_0x5c1574(_0x5192c5),_0xc00be1=0x0;_0xc00be1<_0xe7335e[_0x52b027(0x1ba)];_0xc00be1++)if(_0xe7335e[_0xc00be1]!=='default')__createBinding(_0x2263f8,_0x5192c5,_0xe7335e[_0xc00be1]);}return __setModuleDefault(_0x2263f8,_0x5192c5),_0x2263f8;};}());Object[a0_0x205d7d(0x1d2)](exports,a0_0x205d7d(0x1ca),{'value':!![]}),exports[a0_0x205d7d(0x1d9)]=runMcpProxy;function a0_0x1079(_0x5a6638,_0x10c613){const _0xd257c5=a0_0xd257();return a0_0x1079=function(_0x107936,_0x138e5c){_0x107936=_0x107936-0x1b0;let _0x4ccf45=_0xd257c5[_0x107936];return _0x4ccf45;},a0_0x1079(_0x5a6638,_0x10c613);}const child_process_1=require(a0_0x205d7d(0x1df)),readline=__importStar(require(a0_0x205d7d(0x1d6))),filters_1=require(a0_0x205d7d(0x1bc)),tracker_1=require(a0_0x205d7d(0x1e5));function a0_0xd257(){const _0x3ccdab=['runMcpProxy','logExecution','writable','mcp-tool-call','error','get','child_process','1571565KdERFZ','2.0','isArray','type','call','./tracker','prototype','write','642038hNvbzl','tracker','1052170NDYrks','create','result','parse','stringify','exit','length','stdin','./filters','pipe','542950OAoonn','207JbhdHh','compressOutput','getConfig','string','__importStar','spawn','2707134QzwTAn','close','trim','createInterface','stdout','__esModule','default','__createBinding','hasOwnProperty','__setModuleDefault','6EVACTz','jsonrpc','21jyRcmW','defineProperty','107248xkuwbI','text','getOwnPropertyDescriptor','readline','1182776DSQTTF','content'];a0_0xd257=function(){return _0x3ccdab;};return a0_0xd257();}function runMcpProxy(_0xb9e9ed,_0x41af20){const _0x271578=a0_0x205d7d,_0x3b2686=(0x0,child_process_1[_0x271578(0x1c4)])(_0xb9e9ed,_0x41af20,{'stdio':[_0x271578(0x1bd),_0x271578(0x1bd),'inherit']});process[_0x271578(0x1bb)][_0x271578(0x1bd)](_0x3b2686['stdin']);const _0x2d2467=readline[_0x271578(0x1c8)]({'input':_0x3b2686['stdout'],'terminal':![]});_0x2d2467['on']('line',_0x18fedd=>{const _0x3a1e6d=_0x271578;try{const _0x581a07=JSON[_0x3a1e6d(0x1b7)](_0x18fedd);if(_0x581a07&&_0x581a07[_0x3a1e6d(0x1d0)]===_0x3a1e6d(0x1e1)&&_0x581a07['id']!==undefined&&_0x581a07[_0x3a1e6d(0x1b6)]&&Array[_0x3a1e6d(0x1e2)](_0x581a07['result'][_0x3a1e6d(0x1d8)])){let _0x47c998=![];for(const _0x1fd35c of _0x581a07[_0x3a1e6d(0x1b6)][_0x3a1e6d(0x1d8)]){if(_0x1fd35c[_0x3a1e6d(0x1e3)]==='text'&&typeof _0x1fd35c[_0x3a1e6d(0x1d4)]===_0x3a1e6d(0x1c2)&&_0x1fd35c[_0x3a1e6d(0x1d4)][_0x3a1e6d(0x1c7)]()[_0x3a1e6d(0x1ba)]>0x0){const _0x3ac4ab=_0x1fd35c[_0x3a1e6d(0x1d4)],_0x16d0ed=(0x0,filters_1[_0x3a1e6d(0x1c0)])(_0x3a1e6d(0x1dc),_0x3ac4ab,'',tracker_1[_0x3a1e6d(0x1b3)][_0x3a1e6d(0x1c1)]()['redaction_enabled']);tracker_1['tracker'][_0x3a1e6d(0x1da)]('mcp\x20tool\x20(id:\x20'+_0x581a07['id']+')',_0x3ac4ab,_0x16d0ed,0x0),_0x1fd35c['text']=_0x16d0ed,_0x47c998=!![];}}_0x47c998?process['stdout'][_0x3a1e6d(0x1b1)](JSON[_0x3a1e6d(0x1b8)](_0x581a07)+'\x0a'):process['stdout'][_0x3a1e6d(0x1b1)](_0x18fedd+'\x0a');}else process['stdout'][_0x3a1e6d(0x1b1)](_0x18fedd+'\x0a');}catch{process[_0x3a1e6d(0x1c9)][_0x3a1e6d(0x1b1)](_0x18fedd+'\x0a');}}),_0x3b2686['on'](_0x271578(0x1c6),_0x290ace=>{process['exit'](_0x290ace||0x0);}),_0x3b2686['on'](_0x271578(0x1dd),_0x13a56a=>{const _0x34e12e=_0x271578;console[_0x34e12e(0x1dd)]('[TrimPrompt]\x20MCP\x20Server\x20Spawn\x20Error:\x20'+_0x13a56a['message']),process[_0x34e12e(0x1b9)](0x1);});}
|
package/package.json
CHANGED
package/redactor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a0_0x45e058=a0_0x6761;(function(_0x8ecca8,_0x2338d0){const _0x2869de=a0_0x6761,_0x4d869d=_0x8ecca8();while(!![]){try{const _0xf313ba=parseInt(_0x2869de(0xf1))/0x1*(parseInt(_0x2869de(0xfc))/0x2)+parseInt(_0x2869de(0xf6))/0x3*(parseInt(_0x2869de(0xff))/0x4)+-parseInt(_0x2869de(0xec))/0x5+-parseInt(_0x2869de(0xf4))/0x6+-parseInt(_0x2869de(0xfe))/0x7+-parseInt(_0x2869de(0xfa))/0x8*(parseInt(_0x2869de(0x101))/0x9)+parseInt(_0x2869de(0xf9))/0xa;if(_0xf313ba===_0x2338d0)break;else _0x4d869d['push'](_0x4d869d['shift']());}catch(_0x52fe87){_0x4d869d['push'](_0x4d869d['shift']());}}}(a0_0x17ab,0x7657e));function a0_0x6761(_0x3387cb,_0x4f050e){const _0x17abc0=a0_0x17ab();return a0_0x6761=function(_0x6761e,_0x3920b7){_0x6761e=_0x6761e-0xeb;let _0x1d2c07=_0x17abc0[_0x6761e];return _0x1d2c07;},a0_0x6761(_0x3387cb,_0x4f050e);}function a0_0x17ab(){const _0x39f12b=['loadDefaultRules','regex','[REDACTED_EMAIL]','redactor','43IZxwvH','Redactor','Email\x20Address','627342mKVzvl','defineProperty','831399qMCMRU','rules','replace','12219060PxIMyY','8GQzYOK','API\x20Key\x20or\x20Password','18500YFIUwH','replacement','1483748hmmtsa','4BGhmOJ','IPv4\x20Address','6225390YtmOOC','[REDACTED_DB_CONNECTION_STRING]','2019120wFxIuE'];a0_0x17ab=function(){return _0x39f12b;};return a0_0x17ab();}Object[a0_0x45e058(0xf5)](exports,'__esModule',{'value':!![]}),exports['redactor']=exports[a0_0x45e058(0xf2)]=void 0x0;class Redactor{[a0_0x45e058(0xf7)]=[];constructor(){const _0x23d1e5=a0_0x45e058;this[_0x23d1e5(0xed)]();}[a0_0x45e058(0xed)](){const _0x384f01=a0_0x45e058;this[_0x384f01(0xf7)]=[{'name':'Database\x20Connection\x20String','regex':/(mongodb|postgres|postgresql|mysql|redis|sqlite):\/\/[a-zA-Z0-9_]+:[^@\s\n]+@[^\s\n]+/gi,'replacement':_0x384f01(0xeb)},{'name':_0x384f01(0xfb),'regex':/(api[_-]?key|secret|password|passwd|auth|token|private[_-]?key)[\s:=]+[a-zA-Z0-9_-]{16,}/gi,'replacement':'$1:\x20[REDACTED_CREDENTIAL]'},{'name':_0x384f01(0x100),'regex':/\b(?!127\.0\.0\.1|255\.255\.255\.0)(?:[0-9]{1,3}\.){3}[0-9]{1,3}\b/g,'replacement':'[REDACTED_IP]'},{'name':_0x384f01(0xf3),'regex':/\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b/g,'replacement':_0x384f01(0xef)}];}['redact'](_0x539f26){const _0x32b7b0=a0_0x45e058;let _0x2dff01=_0x539f26;for(const _0xf6fbc8 of this[_0x32b7b0(0xf7)]){_0x2dff01=_0x2dff01[_0x32b7b0(0xf8)](_0xf6fbc8[_0x32b7b0(0xee)],_0xf6fbc8[_0x32b7b0(0xfd)]);}return _0x2dff01;}}exports[a0_0x45e058(0xf2)]=Redactor,exports[a0_0x45e058(0xf0)]=new Redactor();
|
package/seed.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a0_0x1cb636=a0_0x2905;(function(_0x32937e,_0x595a0c){const _0x245fb1=a0_0x2905,_0x3292ba=_0x32937e();while(!![]){try{const _0x26c249=-parseInt(_0x245fb1(0x1ac))/0x1+parseInt(_0x245fb1(0x1a1))/0x2*(-parseInt(_0x245fb1(0x1ab))/0x3)+parseInt(_0x245fb1(0x1a7))/0x4+-parseInt(_0x245fb1(0x1af))/0x5*(parseInt(_0x245fb1(0x1a5))/0x6)+-parseInt(_0x245fb1(0x19e))/0x7*(-parseInt(_0x245fb1(0x19d))/0x8)+parseInt(_0x245fb1(0x191))/0x9+-parseInt(_0x245fb1(0x19a))/0xa;if(_0x26c249===_0x595a0c)break;else _0x3292ba['push'](_0x3292ba['shift']());}catch(_0xbc06f4){_0x3292ba['push'](_0x3292ba['shift']());}}}(a0_0x8dfd,0x2bffd));function a0_0x2905(_0x109f4e,_0x41e417){const _0x8dfda2=a0_0x8dfd();return a0_0x2905=function(_0x2905e5,_0x10d8cc){_0x2905e5=_0x2905e5-0x18c;let _0x208b55=_0x8dfda2[_0x2905e5];return _0x208b55;},a0_0x2905(_0x109f4e,_0x41e417);}function a0_0x8dfd(){const _0x45fea7=['gpt-4o','[INFO]\x20Building\x20modules...\x0a[SUCCESS]\x20Compiled\x20512\x20modules.\x20(repeated\x20400\x20times)','248JeHmaM','61432yaboNN','Step\x203/10\x20:\x20RUN\x20npm\x20install\x0a','Seeding\x20TrimPrompt\x20database\x20with\x20mock\x20LLM\x20command\x20telemetry...','12HNphMs','Test\x20suite\x20run\x20starting...\x0a','Step\x202/10\x20:\x20COPY\x20package.json\x20.\x0a','logExecution','317838YvaWRs','Successfully\x20built\x20image.','171512bwioxW','__esModule','Optimizing\x20assets...\x0a','docker\x20build:\x201420\x20packages\x20added.\x20Successfully\x20built\x20image.','40707JRuSpo','40624inEfoa','test_api.py\x20PASS\x0a','test_db.py\x20PASS\x0a','5KetFLt','TRIMPROMPT_MODEL','Compilation\x20Output:\x0a','[INFO]\x20Building\x20modules...\x0a','[SUCCESS]\x20Compiled\x20512\x20modules.\x0a','log','2984040xrFtgt','Database\x20successfully\x20seeded!','added\x201420\x20packages\x20in\x2014s\x0a','test_auth.py\x20PASS\x0a','repeat','pytest\x20tests/app','defineProperty','env','tracker','2912620wEMZUC'];a0_0x8dfd=function(){return _0x45fea7;};return a0_0x8dfd();}Object[a0_0x1cb636(0x197)](exports,a0_0x1cb636(0x1a8),{'value':!![]});const tracker_1=require('./tracker');console['log'](a0_0x1cb636(0x1a0)),process['env']['TRIMPROMPT_MODEL']='claude-3-opus',tracker_1[a0_0x1cb636(0x199)][a0_0x1cb636(0x1a4)]('npm\x20run\x20build',a0_0x1cb636(0x18d)+a0_0x1cb636(0x18e)+a0_0x1cb636(0x1a9)+a0_0x1cb636(0x18f)['repeat'](0x190),a0_0x1cb636(0x19c),0x0),process[a0_0x1cb636(0x198)][a0_0x1cb636(0x18c)]=a0_0x1cb636(0x19b),tracker_1[a0_0x1cb636(0x199)][a0_0x1cb636(0x1a4)](a0_0x1cb636(0x196),a0_0x1cb636(0x1a2)+a0_0x1cb636(0x194)+a0_0x1cb636(0x1ae)+a0_0x1cb636(0x1ad)[a0_0x1cb636(0x195)](0x12c)+'All\x20303\x20tests\x20passed\x20in\x204.22s.','pytest\x20app:\x20303\x20tests\x20passed\x20in\x204.22s.',0x0),process['env'][a0_0x1cb636(0x18c)]='gemini-1-5-pro',tracker_1[a0_0x1cb636(0x199)][a0_0x1cb636(0x1a4)]('docker\x20build\x20.','Sending\x20build\x20context\x20to\x20Docker\x20daemon...\x0a'+'Step\x201/10\x20:\x20FROM\x20node:20\x0a'+a0_0x1cb636(0x1a3)+a0_0x1cb636(0x19f)+a0_0x1cb636(0x193)[a0_0x1cb636(0x195)](0x3)+a0_0x1cb636(0x1a6),a0_0x1cb636(0x1aa),0x0),console[a0_0x1cb636(0x190)](a0_0x1cb636(0x192));
|
package/shims.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const a0_0xd17c11=a0_0x38a4;(function(_0x1595e1,_0x32a88b){const _0x218949=a0_0x38a4,_0x5326c2=_0x1595e1();while(!![]){try{const _0x54ebf3=-parseInt(_0x218949(0x201))/0x1*(-parseInt(_0x218949(0x202))/0x2)+-parseInt(_0x218949(0x1f0))/0x3+-parseInt(_0x218949(0x1ee))/0x4+-parseInt(_0x218949(0x219))/0x5*(parseInt(_0x218949(0x22c))/0x6)+-parseInt(_0x218949(0x21a))/0x7+parseInt(_0x218949(0x217))/0x8*(-parseInt(_0x218949(0x1d0))/0x9)+parseInt(_0x218949(0x1d3))/0xa*(parseInt(_0x218949(0x1d2))/0xb);if(_0x54ebf3===_0x32a88b)break;else _0x5326c2['push'](_0x5326c2['shift']());}catch(_0x554e93){_0x5326c2['push'](_0x5326c2['shift']());}}}(a0_0x2731,0xb48f5));var __createBinding=this&&this[a0_0xd17c11(0x1e6)]||(Object['create']?function(_0x122d6f,_0x6324a0,_0x41b612,_0x385a75){const _0x255d36=a0_0xd17c11;if(_0x385a75===undefined)_0x385a75=_0x41b612;var _0x41a834=Object[_0x255d36(0x220)](_0x6324a0,_0x41b612);(!_0x41a834||(_0x255d36(0x223)in _0x41a834?!_0x6324a0[_0x255d36(0x1f9)]:_0x41a834['writable']||_0x41a834[_0x255d36(0x1f2)]))&&(_0x41a834={'enumerable':!![],'get':function(){return _0x6324a0[_0x41b612];}}),Object[_0x255d36(0x225)](_0x122d6f,_0x385a75,_0x41a834);}:function(_0x468bec,_0x4c8dee,_0x3cfb9e,_0x307c65){if(_0x307c65===undefined)_0x307c65=_0x3cfb9e;_0x468bec[_0x307c65]=_0x4c8dee[_0x3cfb9e];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a0_0xd17c11(0x22b)]?function(_0x23998e,_0x704ade){const _0x2311b5=a0_0xd17c11;Object[_0x2311b5(0x225)](_0x23998e,'default',{'enumerable':!![],'value':_0x704ade});}:function(_0x42521a,_0x2d8fc7){const _0x2b95a5=a0_0xd17c11;_0x42521a[_0x2b95a5(0x20c)]=_0x2d8fc7;}),__importStar=this&&this['__importStar']||(function(){var _0x51e21d=function(_0x3ab1ca){return _0x51e21d=Object['getOwnPropertyNames']||function(_0x462e99){const _0x1106b4=a0_0x38a4;var _0x194de3=[];for(var _0x23b5f1 in _0x462e99)if(Object['prototype'][_0x1106b4(0x211)][_0x1106b4(0x209)](_0x462e99,_0x23b5f1))_0x194de3[_0x194de3[_0x1106b4(0x22e)]]=_0x23b5f1;return _0x194de3;},_0x51e21d(_0x3ab1ca);};return function(_0x39c762){const _0x535114=a0_0x38a4;if(_0x39c762&&_0x39c762[_0x535114(0x1f9)])return _0x39c762;var _0x5483c4={};if(_0x39c762!=null){for(var _0x29937d=_0x51e21d(_0x39c762),_0x5634af=0x0;_0x5634af<_0x29937d[_0x535114(0x22e)];_0x5634af++)if(_0x29937d[_0x5634af]!==_0x535114(0x20c))__createBinding(_0x5483c4,_0x39c762,_0x29937d[_0x5634af]);}return __setModuleDefault(_0x5483c4,_0x39c762),_0x5483c4;};}());Object['defineProperty'](exports,a0_0xd17c11(0x1f9),{'value':!![]}),exports[a0_0xd17c11(0x1ea)]=installShims,exports[a0_0xd17c11(0x1c6)]=uninstallShims;function a0_0x38a4(_0x24ee62,_0x4b36ca){const _0x2731eb=a0_0x2731();return a0_0x38a4=function(_0x38a454,_0x430ea1){_0x38a454=_0x38a454-0x1bf;let _0x18497f=_0x2731eb[_0x38a454];return _0x18497f;},a0_0x38a4(_0x24ee62,_0x4b36ca);}const fs=__importStar(require('fs')),path=__importStar(require(a0_0xd17c11(0x21e))),os=__importStar(require('os')),SHIMMED_COMMANDS=['ls',a0_0xd17c11(0x1d9),a0_0xd17c11(0x210),a0_0xd17c11(0x1fb),a0_0xd17c11(0x1dc),'rg',a0_0xd17c11(0x1c1),a0_0xd17c11(0x200),'gh',a0_0xd17c11(0x1de),'cargo','npm','pnpm','npx',a0_0xd17c11(0x1ff),a0_0xd17c11(0x20d),'docker',a0_0xd17c11(0x20a),a0_0xd17c11(0x1e2),a0_0xd17c11(0x204),'go'],PROFILE_MARKER=a0_0xd17c11(0x1cf);function getExecSync(){const _0xe93730=a0_0xd17c11;return require(_0xe93730(0x229))[_0xe93730(0x20e)];}function getExecFileSync(){return require('child_process')['execFileSync'];}function ensureProfileContains(_0x370215,_0x586b9c,_0x3cf1ab){const _0x124971=a0_0xd17c11;try{const _0x1df097=path[_0x124971(0x230)](_0x370215);!fs[_0x124971(0x206)](_0x1df097)&&fs[_0x124971(0x1c5)](_0x1df097,{'recursive':!![]});if(fs['existsSync'](_0x370215)){const _0x45a36f=fs[_0x124971(0x22a)](_0x370215,'utf8');if(_0x45a36f[_0x124971(0x1d1)](_0x586b9c))return;fs[_0x124971(0x1ed)](_0x370215,_0x3cf1ab,_0x124971(0x1f4));}else fs[_0x124971(0x1d5)](_0x370215,_0x3cf1ab,_0x124971(0x1f4));}catch{}}function removeProfileBlock(_0x16795d,_0x17a027){const _0x20e77e=a0_0xd17c11;try{if(!fs[_0x20e77e(0x206)](_0x16795d))return;const _0x352c12=fs[_0x20e77e(0x22a)](_0x16795d,_0x20e77e(0x1f4));if(!_0x352c12[_0x20e77e(0x1d1)](_0x17a027))return;const _0x53079d=_0x352c12[_0x20e77e(0x21c)]('\x0a'),_0x326db4=[];let _0x482e9b=![];for(let _0x12795a=0x0;_0x12795a<_0x53079d[_0x20e77e(0x22e)];_0x12795a++){if(_0x53079d[_0x12795a]['includes'](_0x17a027)){_0x482e9b=!![];continue;}if(_0x482e9b){_0x482e9b=![];continue;}_0x326db4[_0x20e77e(0x1f3)](_0x53079d[_0x12795a]);}const _0x925fe=_0x326db4['join']('\x0a')[_0x20e77e(0x1e9)](/\n{3,}/g,'\x0a\x0a');fs['writeFileSync'](_0x16795d,_0x925fe,_0x20e77e(0x1f4));}catch{}}function collectPowerShellProfiles(){const _0x1df211=a0_0xd17c11,_0xff21c2=getExecSync(),_0x292a0b=[],_0x7705a5=[[_0x1df211(0x216),_0x1df211(0x1bf)],['powershell','$PROFILE.CurrentUserAllHosts']];try{_0xff21c2('pwsh\x20-NoProfile\x20-Command\x20\x22exit\x200\x22',{'stdio':_0x1df211(0x1da)}),_0x7705a5['push'](['pwsh','$PROFILE.CurrentUserAllHosts']);}catch{}for(const [_0x573f39,_0x36d1d5]of _0x7705a5){try{const _0x1300d5=_0xff21c2(_0x573f39+_0x1df211(0x213)+_0x36d1d5+'\x22',{'encoding':'utf8'})[_0x1df211(0x1f8)]();_0x1300d5&&!_0x292a0b[_0x1df211(0x1dd)](_0x25ba30=>_0x25ba30['toLowerCase']()===_0x1300d5[_0x1df211(0x1c9)]())&&_0x292a0b['push'](_0x1300d5);}catch{}}return _0x292a0b;}function getBashProfilesWindows(){const _0x446c7e=a0_0xd17c11,_0x548498=os['homedir']();return[_0x446c7e(0x1e5),'.bash_profile'][_0x446c7e(0x1ec)](_0x1696f8=>path[_0x446c7e(0x22f)](_0x548498,_0x1696f8));}function getBroadcastCommand(){return'$sig\x20=\x20\x27[DllImport(\x5c\x22user32.dll\x5c\x22,\x20SetLastError\x20=\x20true,\x20CharSet\x20=\x20CharSet.Auto)]\x20public\x20static\x20extern\x20IntPtr\x20SendMessageTimeout(IntPtr\x20hWnd,\x20uint\x20Msg,\x20IntPtr\x20wParam,\x20string\x20lParam,\x20uint\x20fuFlags,\x20uint\x20uTimeout,\x20out\x20IntPtr\x20lpdwResult);\x27;\x20Add-Type\x20-MemberDefinition\x20$sig\x20-Name\x20\x5c\x22Win32\x5c\x22\x20-Namespace\x20\x5c\x22Win32\x5c\x22\x20-PassThru\x20>\x20$null;\x20[IntPtr]$res\x20=\x200;\x20[void][Win32.Win32]::SendMessageTimeout([IntPtr]0xffff,\x200x001A,\x20[IntPtr]::Zero,\x20\x5c\x22Environment\x5c\x22,\x202,\x201000,\x20[ref]$res);';}function a0_0x2731(){const _0x38806d=['getOwnPropertyDescriptor','rmdirSync','.profile','get',';%PATH%\x22','defineProperty','homedir','[Environment]::SetEnvironmentVariable(\x27PATH\x27,\x20\x27','755','child_process','readFileSync','create','6nDSFAy','.cmd','length','join','dirname','$PROFILE.CurrentUserCurrentHost','message','ruff','export\x20PATH=\x22','powershell\x20-NoProfile\x20-Command\x20\x22','platform','mkdirSync','uninstallShims','unlinkSync','\x20%*\x0a','toLowerCase','\x0a#\x20','-Command','Set-ItemProperty\x20-Path\x20\x27','\x20@args\x0a','chmodSync','TrimPrompt\x20Shims\x20PATH','54gYlxZp','includes','2184457Yuqndj','210VqWYBk','env','writeFileSync','-NoProfile','New-Item\x20-Path\x20\x27','Failed\x20to\x20install\x20shims:\x20','tree','ignore','try\x20{\x20(Get-ItemProperty\x20-Path\x20\x27','grep','some','glab','APPDATA','powershell.exe','readdirSync','pip','@echo\x20off\x0atrim\x20','pipe','.bashrc','__createBinding','shims','\x20\x22$@\x22\x0a','replace','installShims','TrimPrompt\x20shims\x20successfully\x20installed\x20for\x20','map','appendFileSync','2853800LAvCUH','HKCU:\x5cSoftware\x5cMicrosoft\x5cCommand\x20Processor','924060bvLgFO','\x27\x20-Force\x20|\x20Out-Null;\x20Set-ItemProperty\x20-Path\x20\x27','configurable','push','utf8','\x27\x20-Name\x20AutoRun\x20-Value\x20\x27','\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20Stop).AutoRun\x20}\x20catch\x20{\x20\x27\x27\x20}',':$PATH\x22','trim','__esModule','\x22\x20set\x20\x22PATH=','read','Please\x20add\x20the\x20following\x20path\x20to\x20the\x20front\x20of\x20your\x20User\x20PATH\x20environment\x20variable\x20manually:\x0a\x20\x20','.zshrc','if\x20exist\x20\x22','yarn','git','34ZNKBfe','3334MEfYLM','#!/bin/sh\x0aexec\x20trim\x20','pip3','\x20commands.\x0a\x0a','existsSync','\x0a$env:PATH\x20=\x20\x22','\x0aexport\x20PATH=\x22','call','pytest','[Environment]::GetEnvironmentVariable(\x27PATH\x27,\x20\x27User\x27)','default','kubectl','execSync','filter','cat','hasOwnProperty','\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20SilentlyContinue','\x20-NoProfile\x20-Command\x20\x22','&\x20trim\x20','TrimPrompt\x20shims\x20fully\x20uninstalled.\x20All\x20PATH\x20modifications,\x20shell\x20profiles,\x20and\x20registry\x20entries\x20have\x20been\x20cleaned\x20up.','powershell','914192Jrdpmf','Remove-ItemProperty\x20-Path\x20\x27','1965615jISBaU','9710365UNpXCz',';\x22\x20+\x20$env:PATH\x0a','split','.trimprompt','path','\x20&\x20'];a0_0x2731=function(){return _0x38806d;};return a0_0x2731();}function installShims(){const _0x4c53fe=a0_0xd17c11,_0x277d52=path['join'](os[_0x4c53fe(0x226)](),'.trimprompt',_0x4c53fe(0x1e7));try{!fs[_0x4c53fe(0x206)](_0x277d52)&&fs['mkdirSync'](_0x277d52,{'recursive':!![]});const _0x586d66=os[_0x4c53fe(0x1c4)]()==='win32';for(const _0x47654b of SHIMMED_COMMANDS){if(_0x586d66){const _0xa269de=path[_0x4c53fe(0x22f)](_0x277d52,_0x47654b+_0x4c53fe(0x22d));fs['writeFileSync'](_0xa269de,_0x4c53fe(0x1e3)+_0x47654b+_0x4c53fe(0x1c8),'utf8');const _0x128050=path['join'](_0x277d52,_0x47654b+'.ps1');fs['writeFileSync'](_0x128050,_0x4c53fe(0x214)+_0x47654b+_0x4c53fe(0x1cd),_0x4c53fe(0x1f4));const _0x4fa397=path[_0x4c53fe(0x22f)](_0x277d52,_0x47654b);fs[_0x4c53fe(0x1d5)](_0x4fa397,_0x4c53fe(0x203)+_0x47654b+_0x4c53fe(0x1e8),'utf8');}else{const _0x2073de=path['join'](_0x277d52,_0x47654b);fs[_0x4c53fe(0x1d5)](_0x2073de,_0x4c53fe(0x203)+_0x47654b+_0x4c53fe(0x1e8),_0x4c53fe(0x1f4)),fs[_0x4c53fe(0x1ce)](_0x2073de,_0x4c53fe(0x228));}}let _0x458a26=![],_0x3f58dd='';if(_0x586d66)try{const _0x312302=getExecSync(),_0x4555b6=_0x4c53fe(0x1ca)+PROFILE_MARKER+_0x4c53fe(0x207)+_0x277d52+_0x4c53fe(0x21b),_0x210792=collectPowerShellProfiles();for(const _0x3a9f63 of _0x210792){ensureProfileContains(_0x3a9f63,_0x277d52,_0x4555b6);}try{const _0x2de902=getExecFileSync(),_0x52b1ae=_0x4c53fe(0x1fe)+_0x277d52+_0x4c53fe(0x1fa)+_0x277d52+_0x4c53fe(0x224),_0xafabac=_0x4c53fe(0x1ef);let _0x153ded='';try{const _0x354a0a=_0x4c53fe(0x1db)+_0xafabac+_0x4c53fe(0x1f6);_0x153ded=_0x2de902(_0x4c53fe(0x1e0),['-NoProfile',_0x4c53fe(0x1cb),_0x354a0a],{'encoding':_0x4c53fe(0x1f4),'stdio':[_0x4c53fe(0x1e4),'pipe',_0x4c53fe(0x1da)]})[_0x4c53fe(0x1f8)]();}catch{}if(!_0x153ded[_0x4c53fe(0x1d1)](_0x277d52)){const _0x1e7cbb=_0x153ded?_0x153ded+_0x4c53fe(0x21f)+_0x52b1ae:_0x52b1ae,_0x4d0410=_0x4c53fe(0x1d7)+_0xafabac+_0x4c53fe(0x1f1)+_0xafabac+_0x4c53fe(0x1f5)+_0x1e7cbb+'\x27';_0x2de902(_0x4c53fe(0x1e0),['-NoProfile','-Command',_0x4d0410],{'stdio':_0x4c53fe(0x1da)});}}catch{}try{const _0x6397aa=_0x277d52[_0x4c53fe(0x1e9)](/\\/g,'/')['replace'](/^([A-Za-z]):/,(_0x49efef,_0x2a897a)=>'/'+_0x2a897a[_0x4c53fe(0x1c9)]()),_0x4bf33e=_0x4c53fe(0x1ca)+PROFILE_MARKER+_0x4c53fe(0x208)+_0x6397aa+':$PATH\x22\x0a',_0xc252c0=getBashProfilesWindows();let _0x42ca23=![];for(const _0x4532a5 of _0xc252c0){fs[_0x4c53fe(0x206)](_0x4532a5)&&(ensureProfileContains(_0x4532a5,_0x6397aa,_0x4bf33e),_0x42ca23=!![]);}!_0x42ca23&&ensureProfileContains(_0xc252c0[0x0],_0x6397aa,_0x4bf33e);}catch{}const _0xe62e61=_0x4c53fe(0x20b),_0x23ec02=_0x312302(_0x4c53fe(0x1c3)+_0xe62e61+'\x22',{'encoding':_0x4c53fe(0x1f4),'stdio':[_0x4c53fe(0x1e4),_0x4c53fe(0x1e4),'ignore']})[_0x4c53fe(0x1f8)]();if(!_0x23ec02['includes'](_0x277d52)){const _0xb3967a=_0x277d52+';'+_0x23ec02,_0x1bbd03=_0xb3967a[_0x4c53fe(0x1e9)](/'/g,'\x27\x27'),_0x30da59=_0x4c53fe(0x227)+_0x1bbd03+'\x27,\x20\x27User\x27)';_0x312302('powershell\x20-NoProfile\x20-Command\x20\x22'+_0x30da59+';\x20'+getBroadcastCommand()+'\x22',{'stdio':_0x4c53fe(0x1da)});}const _0x1d0aa3=path[_0x4c53fe(0x22f)](process[_0x4c53fe(0x1d4)][_0x4c53fe(0x1df)]||'','npm','trim.ps1');if(fs['existsSync'](_0x1d0aa3))try{fs['unlinkSync'](_0x1d0aa3);}catch{}_0x458a26=!![];}catch(_0x54d392){_0x3f58dd=_0x4c53fe(0x1fc)+_0x277d52;}else try{const _0x696535=_0x4c53fe(0x1c2)+_0x277d52+':$PATH\x22\x0a',_0x40e31f=os[_0x4c53fe(0x226)](),_0x516b4d=[_0x4c53fe(0x1e5),_0x4c53fe(0x1fd),'.bash_profile',_0x4c53fe(0x222)];let _0x6f921b=![];for(const _0x5539fb of _0x516b4d){const _0x129bcb=path[_0x4c53fe(0x22f)](_0x40e31f,_0x5539fb);fs[_0x4c53fe(0x206)](_0x129bcb)&&(ensureProfileContains(_0x129bcb,_0x277d52,_0x4c53fe(0x1ca)+PROFILE_MARKER+'\x0a'+_0x696535),_0x6f921b=!![]);}if(!_0x6f921b){const _0x454990=path['join'](_0x40e31f,'.bashrc');ensureProfileContains(_0x454990,_0x277d52,_0x4c53fe(0x1ca)+PROFILE_MARKER+'\x0a'+_0x696535);}_0x458a26=!![];}catch(_0x574367){_0x3f58dd='Please\x20add\x20this\x20to\x20your\x20shell\x20profile\x20(~/.bashrc,\x20~/.zshrc)\x20manually:\x0a\x20\x20export\x20PATH=\x22'+_0x277d52+_0x4c53fe(0x1f7);}const _0x37e8ad=_0x4c53fe(0x1eb)+SHIMMED_COMMANDS['length']+_0x4c53fe(0x205),_0x49dd52=_0x458a26?_0x37e8ad+'[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.':_0x37e8ad+'[WARNING]\x20Could\x20not\x20automatically\x20update\x20your\x20system\x20PATH.\x20'+_0x3f58dd;return{'success':!![],'pathDir':_0x277d52,'message':_0x49dd52};}catch(_0x411bcc){return{'success':![],'pathDir':_0x277d52,'message':_0x4c53fe(0x1d8)+_0x411bcc[_0x4c53fe(0x1c0)]};}}function uninstallShims(){const _0x39d188=a0_0xd17c11,_0x155cc6=path['join'](os[_0x39d188(0x226)](),_0x39d188(0x21d),_0x39d188(0x1e7)),_0x1759b9=os[_0x39d188(0x1c4)]()==='win32';try{if(_0x1759b9){const _0x2e1112=getExecSync();try{const _0x3e9b65=getExecFileSync(),_0x498091='HKCU:\x5cSoftware\x5cMicrosoft\x5cCommand\x20Processor',_0x1b8615=_0x39d188(0x1db)+_0x498091+_0x39d188(0x1f6),_0x3c78c6=_0x3e9b65('powershell.exe',[_0x39d188(0x1d6),_0x39d188(0x1cb),_0x1b8615],{'encoding':_0x39d188(0x1f4),'stdio':[_0x39d188(0x1e4),_0x39d188(0x1e4),_0x39d188(0x1da)]})['trim']();if(_0x3c78c6[_0x39d188(0x1d1)](_0x155cc6)){const _0x1a601b=_0x3c78c6[_0x39d188(0x21c)](_0x39d188(0x21f))[_0x39d188(0x20f)](_0x3a74fe=>!_0x3a74fe['includes'](_0x155cc6));if(_0x1a601b[_0x39d188(0x22e)]===0x0){const _0x521589=_0x39d188(0x218)+_0x498091+_0x39d188(0x212);_0x3e9b65('powershell.exe',['-NoProfile',_0x39d188(0x1cb),_0x521589],{'stdio':_0x39d188(0x1da)});}else{const _0x812dc3=_0x1a601b[_0x39d188(0x22f)]('\x20&\x20'),_0x4ea3ae=_0x39d188(0x1cc)+_0x498091+'\x27\x20-Name\x20AutoRun\x20-Value\x20\x27'+_0x812dc3+'\x27';_0x3e9b65(_0x39d188(0x1e0),[_0x39d188(0x1d6),_0x39d188(0x1cb),_0x4ea3ae],{'stdio':_0x39d188(0x1da)});}}}catch{}try{const _0x2b8c8c=collectPowerShellProfiles();for(const _0x301835 of _0x2b8c8c){removeProfileBlock(_0x301835,PROFILE_MARKER);}}catch{}try{for(const _0x1722c2 of getBashProfilesWindows()){removeProfileBlock(_0x1722c2,PROFILE_MARKER);}}catch{}try{const _0x201f84='[Environment]::GetEnvironmentVariable(\x27PATH\x27,\x20\x27User\x27)',_0x329f72=_0x2e1112('powershell\x20-NoProfile\x20-Command\x20\x22'+_0x201f84+'\x22',{'encoding':_0x39d188(0x1f4),'stdio':['pipe',_0x39d188(0x1e4),'ignore']})[_0x39d188(0x1f8)]();if(_0x329f72[_0x39d188(0x1d1)](_0x155cc6)){const _0x545bc0=_0x329f72[_0x39d188(0x21c)](';')[_0x39d188(0x20f)](_0x13e2ed=>_0x13e2ed[_0x39d188(0x1f8)]()['toLowerCase']()!==_0x155cc6[_0x39d188(0x1c9)]())['join'](';'),_0x4c10c6=_0x545bc0[_0x39d188(0x1e9)](/'/g,'\x27\x27'),_0x2e0dda=_0x39d188(0x227)+_0x4c10c6+'\x27,\x20\x27User\x27)';_0x2e1112(_0x39d188(0x1c3)+_0x2e0dda+';\x20'+getBroadcastCommand()+'\x22',{'stdio':'ignore'});}}catch{}}else{const _0x1c0d3=os[_0x39d188(0x226)](),_0x41dd59=[_0x39d188(0x1e5),_0x39d188(0x1fd),'.bash_profile',_0x39d188(0x222)];for(const _0x13dcac of _0x41dd59){removeProfileBlock(path[_0x39d188(0x22f)](_0x1c0d3,_0x13dcac),PROFILE_MARKER);}}if(fs[_0x39d188(0x206)](_0x155cc6)){const _0x68221c=fs[_0x39d188(0x1e1)](_0x155cc6);for(const _0x4f9ade of _0x68221c){fs[_0x39d188(0x1c7)](path[_0x39d188(0x22f)](_0x155cc6,_0x4f9ade));}fs[_0x39d188(0x221)](_0x155cc6);}return{'success':!![],'message':_0x39d188(0x215)};}catch(_0x399142){return{'success':![],'message':'Failed\x20to\x20uninstall\x20shims:\x20'+_0x399142[_0x39d188(0x1c0)]};}}
|
|
1
|
+
'use strict';const a0_0x36ea5d=a0_0x1919;(function(_0x47dd51,_0x6928af){const _0x2e0eb7=a0_0x1919,_0x24f121=_0x47dd51();while(!![]){try{const _0x170e9e=-parseInt(_0x2e0eb7(0xae))/0x1*(parseInt(_0x2e0eb7(0xc5))/0x2)+parseInt(_0x2e0eb7(0x93))/0x3*(parseInt(_0x2e0eb7(0xac))/0x4)+-parseInt(_0x2e0eb7(0xe9))/0x5+-parseInt(_0x2e0eb7(0xc3))/0x6+parseInt(_0x2e0eb7(0xc2))/0x7+parseInt(_0x2e0eb7(0xd0))/0x8+-parseInt(_0x2e0eb7(0x9e))/0x9*(-parseInt(_0x2e0eb7(0xa8))/0xa);if(_0x170e9e===_0x6928af)break;else _0x24f121['push'](_0x24f121['shift']());}catch(_0x597435){_0x24f121['push'](_0x24f121['shift']());}}}(a0_0x1301,0xe5f4f));function a0_0x1919(_0x1f8375,_0x34402d){const _0x1301b7=a0_0x1301();return a0_0x1919=function(_0x19198b,_0xf14527){_0x19198b=_0x19198b-0x7d;let _0x154d22=_0x1301b7[_0x19198b];return _0x154d22;},a0_0x1919(_0x1f8375,_0x34402d);}var __createBinding=this&&this[a0_0x36ea5d(0xed)]||(Object[a0_0x36ea5d(0xdd)]?function(_0x55eddb,_0x10e279,_0x17a999,_0x59b177){const _0x776254=a0_0x36ea5d;if(_0x59b177===undefined)_0x59b177=_0x17a999;var _0x425604=Object[_0x776254(0x87)](_0x10e279,_0x17a999);(!_0x425604||('get'in _0x425604?!_0x10e279[_0x776254(0xd5)]:_0x425604[_0x776254(0x97)]||_0x425604[_0x776254(0xee)]))&&(_0x425604={'enumerable':!![],'get':function(){return _0x10e279[_0x17a999];}}),Object['defineProperty'](_0x55eddb,_0x59b177,_0x425604);}:function(_0x5f5a72,_0x171fd2,_0x37f74f,_0x1cbcee){if(_0x1cbcee===undefined)_0x1cbcee=_0x37f74f;_0x5f5a72[_0x1cbcee]=_0x171fd2[_0x37f74f];}),__setModuleDefault=this&&this[a0_0x36ea5d(0x81)]||(Object[a0_0x36ea5d(0xdd)]?function(_0x5af59c,_0x17c99e){const _0x287c64=a0_0x36ea5d;Object[_0x287c64(0x9a)](_0x5af59c,_0x287c64(0xa7),{'enumerable':!![],'value':_0x17c99e});}:function(_0x48c13f,_0x46ef4b){const _0x354776=a0_0x36ea5d;_0x48c13f[_0x354776(0xa7)]=_0x46ef4b;}),__importStar=this&&this['__importStar']||(function(){var _0x295e7f=function(_0x230259){const _0x4b198b=a0_0x1919;return _0x295e7f=Object[_0x4b198b(0x90)]||function(_0x46c7c2){const _0x3d06d0=_0x4b198b;var _0x403bb8=[];for(var _0x12a87c in _0x46c7c2)if(Object[_0x3d06d0(0xc0)]['hasOwnProperty'][_0x3d06d0(0x9b)](_0x46c7c2,_0x12a87c))_0x403bb8[_0x403bb8[_0x3d06d0(0x82)]]=_0x12a87c;return _0x403bb8;},_0x295e7f(_0x230259);};return function(_0xc499ce){const _0x149bd3=a0_0x1919;if(_0xc499ce&&_0xc499ce[_0x149bd3(0xd5)])return _0xc499ce;var _0x40b375={};if(_0xc499ce!=null){for(var _0x5a6c9c=_0x295e7f(_0xc499ce),_0x412332=0x0;_0x412332<_0x5a6c9c['length'];_0x412332++)if(_0x5a6c9c[_0x412332]!==_0x149bd3(0xa7))__createBinding(_0x40b375,_0xc499ce,_0x5a6c9c[_0x412332]);}return __setModuleDefault(_0x40b375,_0xc499ce),_0x40b375;};}());Object[a0_0x36ea5d(0x9a)](exports,a0_0x36ea5d(0xd5),{'value':!![]}),exports[a0_0x36ea5d(0x7d)]=installShims,exports[a0_0x36ea5d(0xdc)]=uninstallShims;const fs=__importStar(require('fs')),path=__importStar(require(a0_0x36ea5d(0xe4))),os=__importStar(require('os')),SHIMMED_COMMANDS=['ls',a0_0x36ea5d(0xbe),'cat',a0_0x36ea5d(0xab),a0_0x36ea5d(0xba),'rg',a0_0x36ea5d(0xe1),a0_0x36ea5d(0x7e),'gh',a0_0x36ea5d(0xe6),'cargo',a0_0x36ea5d(0xa0),'pnpm',a0_0x36ea5d(0xa2),a0_0x36ea5d(0xd3),'kubectl',a0_0x36ea5d(0x8a),'pytest',a0_0x36ea5d(0xd4),a0_0x36ea5d(0xe0),'go'],PROFILE_MARKER=a0_0x36ea5d(0xd9);function getExecSync(){const _0xa9e6b4=a0_0x36ea5d;return require(_0xa9e6b4(0xb6))['execSync'];}function getExecFileSync(){const _0x5924b4=a0_0x36ea5d;return require(_0x5924b4(0xb6))[_0x5924b4(0x7f)];}function a0_0x1301(){const _0x5712e6=['homedir','platform','utf8','__createBinding','configurable','&\x20trim\x20','if\x20exist\x20\x22','Failed\x20to\x20uninstall\x20shims:\x20','trim','-NoProfile','.bash_profile','installShims','git','execFileSync','includes','__setModuleDefault','length','dirname','\x27\x20-Name\x20AutoRun\x20-Value\x20\x27','$PROFILE.CurrentUserCurrentHost','push','getOwnPropertyDescriptor','pipe','Failed\x20to\x20install\x20shims:\x20','docker','\x0aexport\x20PATH=\x22',';%PATH%\x22','\x20-NoProfile\x20-Command\x20\x22','win32','.profile','getOwnPropertyNames','\x0a$env:PATH\x20=\x20\x22','powershell\x20-NoProfile\x20-Command\x20\x22','12JsXNze','\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20Stop).AutoRun\x20}\x20catch\x20{\x20\x27\x27\x20}','Please\x20add\x20this\x20to\x20your\x20shell\x20profile\x20(~/.bashrc,\x20~/.zshrc)\x20manually:\x0a\x20\x20export\x20PATH=\x22',';\x22\x20+\x20$env:PATH\x0a','writable','mkdirSync','appendFileSync','defineProperty','call','.zshrc','toLowerCase','18TkHzeH','.cmd','npm','$PROFILE.CurrentUserAllHosts','npx','@echo\x20off\x0atrim\x20','powershell.exe','TrimPrompt\x20shims\x20successfully\x20installed\x20for\x20','\x20%*\x0a','default','2528930TAOnCY','existsSync','APPDATA','read','938228KujcUr','\x27,\x20\x27User\x27)','729wZPXtS','pwsh','[Environment]::SetEnvironmentVariable(\x27PATH\x27,\x20\x27','#!/bin/sh\x0aexec\x20trim\x20','trim.ps1','\x20\x22$@\x22\x0a','export\x20PATH=\x22','\x20commands.\x0a\x0a','child_process','ignore','HKCU:\x5cSoftware\x5cMicrosoft\x5cCommand\x20Processor','filter','grep','readdirSync','-Command','try\x20{\x20(Get-ItemProperty\x20-Path\x20\x27','tree','.bashrc','prototype','join','6135556yfVxAy','10401324zegOLt','[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.','464PKmnVO','Set-ItemProperty\x20-Path\x20\x27','755',':$PATH\x22','.ps1','readFileSync','TrimPrompt\x20shims\x20fully\x20uninstalled.\x20All\x20PATH\x20modifications,\x20shell\x20profiles,\x20and\x20registry\x20entries\x20have\x20been\x20cleaned\x20up.','.trimprompt','\x27\x20-Name\x20AutoRun\x20-ErrorAction\x20SilentlyContinue','some','replace','12297408zoEPzZ','unlinkSync','\x20@args\x0a','yarn','pip','__esModule','\x0a#\x20','Remove-ItemProperty\x20-Path\x20\x27','[WARNING]\x20Could\x20not\x20automatically\x20update\x20your\x20system\x20PATH.\x20','TrimPrompt\x20Shims\x20PATH',':$PATH\x22\x0a','env','uninstallShims','create','powershell','split','pip3','ruff','[Environment]::GetEnvironmentVariable(\x27PATH\x27,\x20\x27User\x27)','\x20&\x20','path','shims','glab','rmdirSync','writeFileSync','5065565jHrqGL'];a0_0x1301=function(){return _0x5712e6;};return a0_0x1301();}function ensureProfileContains(_0x3441f5,_0x203b59,_0x214b05){const _0x200e01=a0_0x36ea5d;try{const _0x575490=path[_0x200e01(0x83)](_0x3441f5);!fs['existsSync'](_0x575490)&&fs[_0x200e01(0x98)](_0x575490,{'recursive':!![]});if(fs[_0x200e01(0xa9)](_0x3441f5)){const _0x281c47=fs[_0x200e01(0xca)](_0x3441f5,_0x200e01(0xec));if(_0x281c47['includes'](_0x203b59))return;fs[_0x200e01(0x99)](_0x3441f5,_0x214b05,_0x200e01(0xec));}else fs[_0x200e01(0xe8)](_0x3441f5,_0x214b05,_0x200e01(0xec));}catch{}}function removeProfileBlock(_0x2e96e4,_0x7af880){const _0x25503c=a0_0x36ea5d;try{if(!fs[_0x25503c(0xa9)](_0x2e96e4))return;const _0x5e5ca0=fs['readFileSync'](_0x2e96e4,_0x25503c(0xec));if(!_0x5e5ca0[_0x25503c(0x80)](_0x7af880))return;const _0x5310b9=_0x5e5ca0[_0x25503c(0xdf)]('\x0a'),_0x552e17=[];let _0x4e50d8=![];for(let _0x3efc96=0x0;_0x3efc96<_0x5310b9[_0x25503c(0x82)];_0x3efc96++){if(_0x5310b9[_0x3efc96][_0x25503c(0x80)](_0x7af880)){_0x4e50d8=!![];continue;}if(_0x4e50d8){_0x4e50d8=![];continue;}_0x552e17[_0x25503c(0x86)](_0x5310b9[_0x3efc96]);}const _0x1f7554=_0x552e17[_0x25503c(0xc1)]('\x0a')[_0x25503c(0xcf)](/\n{3,}/g,'\x0a\x0a');fs[_0x25503c(0xe8)](_0x2e96e4,_0x1f7554,_0x25503c(0xec));}catch{}}function collectPowerShellProfiles(){const _0x3f6fa8=a0_0x36ea5d,_0xddabc7=getExecSync(),_0x2e67f1=[],_0x4a11ca=[[_0x3f6fa8(0xde),_0x3f6fa8(0x85)],[_0x3f6fa8(0xde),_0x3f6fa8(0xa1)]];try{_0xddabc7('pwsh\x20-NoProfile\x20-Command\x20\x22exit\x200\x22',{'stdio':_0x3f6fa8(0xb7)}),_0x4a11ca[_0x3f6fa8(0x86)]([_0x3f6fa8(0xaf),_0x3f6fa8(0xa1)]);}catch{}for(const [_0x18c17b,_0x5517a5]of _0x4a11ca){try{const _0x12ee79=_0xddabc7(_0x18c17b+_0x3f6fa8(0x8d)+_0x5517a5+'\x22',{'encoding':'utf8'})[_0x3f6fa8(0xf2)]();_0x12ee79&&!_0x2e67f1[_0x3f6fa8(0xce)](_0x5d2661=>_0x5d2661['toLowerCase']()===_0x12ee79[_0x3f6fa8(0x9d)]())&&_0x2e67f1[_0x3f6fa8(0x86)](_0x12ee79);}catch{}}return _0x2e67f1;}function getBashProfilesWindows(){const _0x19a43c=a0_0x36ea5d,_0x99a6b=os[_0x19a43c(0xea)]();return[_0x19a43c(0xbf),'.bash_profile']['map'](_0x4c026f=>path[_0x19a43c(0xc1)](_0x99a6b,_0x4c026f));}function getBroadcastCommand(){return'$sig\x20=\x20\x27[DllImport(\x5c\x22user32.dll\x5c\x22,\x20SetLastError\x20=\x20true,\x20CharSet\x20=\x20CharSet.Auto)]\x20public\x20static\x20extern\x20IntPtr\x20SendMessageTimeout(IntPtr\x20hWnd,\x20uint\x20Msg,\x20IntPtr\x20wParam,\x20string\x20lParam,\x20uint\x20fuFlags,\x20uint\x20uTimeout,\x20out\x20IntPtr\x20lpdwResult);\x27;\x20Add-Type\x20-MemberDefinition\x20$sig\x20-Name\x20\x5c\x22Win32\x5c\x22\x20-Namespace\x20\x5c\x22Win32\x5c\x22\x20-PassThru\x20>\x20$null;\x20[IntPtr]$res\x20=\x200;\x20[void][Win32.Win32]::SendMessageTimeout([IntPtr]0xffff,\x200x001A,\x20[IntPtr]::Zero,\x20\x5c\x22Environment\x5c\x22,\x202,\x201000,\x20[ref]$res);';}function installShims(){const _0x5e5f80=a0_0x36ea5d,_0x213fa1=path[_0x5e5f80(0xc1)](os[_0x5e5f80(0xea)](),_0x5e5f80(0xcc),_0x5e5f80(0xe5));try{!fs[_0x5e5f80(0xa9)](_0x213fa1)&&fs[_0x5e5f80(0x98)](_0x213fa1,{'recursive':!![]});const _0x3524bb=os['platform']()===_0x5e5f80(0x8e);for(const _0x39f88e of SHIMMED_COMMANDS){if(_0x3524bb){const _0x335ead=path[_0x5e5f80(0xc1)](_0x213fa1,_0x39f88e+_0x5e5f80(0x9f));fs[_0x5e5f80(0xe8)](_0x335ead,_0x5e5f80(0xa3)+_0x39f88e+_0x5e5f80(0xa6),_0x5e5f80(0xec));const _0x4a2a53=path[_0x5e5f80(0xc1)](_0x213fa1,_0x39f88e+_0x5e5f80(0xc9));fs[_0x5e5f80(0xe8)](_0x4a2a53,_0x5e5f80(0xef)+_0x39f88e+_0x5e5f80(0xd2),'utf8');const _0x44427c=path[_0x5e5f80(0xc1)](_0x213fa1,_0x39f88e);fs[_0x5e5f80(0xe8)](_0x44427c,_0x5e5f80(0xb1)+_0x39f88e+_0x5e5f80(0xb3),_0x5e5f80(0xec));}else{const _0x52147e=path[_0x5e5f80(0xc1)](_0x213fa1,_0x39f88e);fs['writeFileSync'](_0x52147e,_0x5e5f80(0xb1)+_0x39f88e+_0x5e5f80(0xb3),'utf8'),fs['chmodSync'](_0x52147e,_0x5e5f80(0xc7));}}let _0x256030=![],_0x14424f='';if(_0x3524bb)try{const _0x4ffb8f=getExecSync(),_0xfe6225=_0x5e5f80(0xd6)+PROFILE_MARKER+_0x5e5f80(0x91)+_0x213fa1+_0x5e5f80(0x96),_0x23a05e=collectPowerShellProfiles();for(const _0x47f7df of _0x23a05e){ensureProfileContains(_0x47f7df,_0x213fa1,_0xfe6225);}try{const _0x979cb7=getExecFileSync(),_0x42ab21=_0x5e5f80(0xf0)+_0x213fa1+'\x22\x20set\x20\x22PATH='+_0x213fa1+_0x5e5f80(0x8c),_0x5bbad5='HKCU:\x5cSoftware\x5cMicrosoft\x5cCommand\x20Processor';let _0x2f6c18='';try{const _0x4d3270=_0x5e5f80(0xbd)+_0x5bbad5+_0x5e5f80(0x94);_0x2f6c18=_0x979cb7('powershell.exe',['-NoProfile',_0x5e5f80(0xbc),_0x4d3270],{'encoding':_0x5e5f80(0xec),'stdio':[_0x5e5f80(0x88),_0x5e5f80(0x88),_0x5e5f80(0xb7)]})[_0x5e5f80(0xf2)]();}catch{}if(!_0x2f6c18[_0x5e5f80(0x80)](_0x213fa1)){const _0x2b1756=_0x2f6c18?_0x2f6c18+_0x5e5f80(0xe3)+_0x42ab21:_0x42ab21,_0x1ed208='New-Item\x20-Path\x20\x27'+_0x5bbad5+'\x27\x20-Force\x20|\x20Out-Null;\x20Set-ItemProperty\x20-Path\x20\x27'+_0x5bbad5+_0x5e5f80(0x84)+_0x2b1756+'\x27';_0x979cb7(_0x5e5f80(0xa4),[_0x5e5f80(0xf3),'-Command',_0x1ed208],{'stdio':'ignore'});}}catch{}try{const _0x55a425=_0x213fa1[_0x5e5f80(0xcf)](/\\/g,'/')[_0x5e5f80(0xcf)](/^([A-Za-z]):/,(_0x30ef8e,_0x2bfa88)=>'/'+_0x2bfa88['toLowerCase']()),_0x58a674=_0x5e5f80(0xd6)+PROFILE_MARKER+_0x5e5f80(0x8b)+_0x55a425+':$PATH\x22\x0a',_0x6a758c=getBashProfilesWindows();let _0x17a0c4=![];for(const _0xcfc2bd of _0x6a758c){fs[_0x5e5f80(0xa9)](_0xcfc2bd)&&(ensureProfileContains(_0xcfc2bd,_0x55a425,_0x58a674),_0x17a0c4=!![]);}!_0x17a0c4&&ensureProfileContains(_0x6a758c[0x0],_0x55a425,_0x58a674);}catch{}const _0x4c305f=_0x5e5f80(0xe2),_0x592d69=_0x4ffb8f(_0x5e5f80(0x92)+_0x4c305f+'\x22',{'encoding':'utf8','stdio':[_0x5e5f80(0x88),_0x5e5f80(0x88),_0x5e5f80(0xb7)]})[_0x5e5f80(0xf2)]();if(!_0x592d69[_0x5e5f80(0x80)](_0x213fa1)){const _0x837591=_0x213fa1+';'+_0x592d69,_0x1eda84=_0x837591[_0x5e5f80(0xcf)](/'/g,'\x27\x27'),_0x1e9fe5=_0x5e5f80(0xb0)+_0x1eda84+_0x5e5f80(0xad);_0x4ffb8f(_0x5e5f80(0x92)+_0x1e9fe5+';\x20'+getBroadcastCommand()+'\x22',{'stdio':_0x5e5f80(0xb7)});}const _0x22c8c7=path[_0x5e5f80(0xc1)](process[_0x5e5f80(0xdb)][_0x5e5f80(0xaa)]||'',_0x5e5f80(0xa0),_0x5e5f80(0xb2));if(fs[_0x5e5f80(0xa9)](_0x22c8c7))try{fs['unlinkSync'](_0x22c8c7);}catch{}_0x256030=!![];}catch(_0x3ca12c){_0x14424f='Please\x20add\x20the\x20following\x20path\x20to\x20the\x20front\x20of\x20your\x20User\x20PATH\x20environment\x20variable\x20manually:\x0a\x20\x20'+_0x213fa1;}else try{const _0x153495=_0x5e5f80(0xb4)+_0x213fa1+_0x5e5f80(0xda),_0x3e4eba=os[_0x5e5f80(0xea)](),_0x2cf5f1=[_0x5e5f80(0xbf),'.zshrc','.bash_profile',_0x5e5f80(0x8f)];let _0x21a6c6=![];for(const _0x59a9da of _0x2cf5f1){const _0x26cf01=path['join'](_0x3e4eba,_0x59a9da);fs[_0x5e5f80(0xa9)](_0x26cf01)&&(ensureProfileContains(_0x26cf01,_0x213fa1,_0x5e5f80(0xd6)+PROFILE_MARKER+'\x0a'+_0x153495),_0x21a6c6=!![]);}if(!_0x21a6c6){const _0x42e68f=path[_0x5e5f80(0xc1)](_0x3e4eba,_0x5e5f80(0xbf));ensureProfileContains(_0x42e68f,_0x213fa1,_0x5e5f80(0xd6)+PROFILE_MARKER+'\x0a'+_0x153495);}_0x256030=!![];}catch(_0x83341){_0x14424f=_0x5e5f80(0x95)+_0x213fa1+_0x5e5f80(0xc8);}const _0x47a9ff=_0x5e5f80(0xa5)+SHIMMED_COMMANDS[_0x5e5f80(0x82)]+_0x5e5f80(0xb5),_0x1ad191=_0x256030?_0x47a9ff+_0x5e5f80(0xc4):_0x47a9ff+_0x5e5f80(0xd8)+_0x14424f;return{'success':!![],'pathDir':_0x213fa1,'message':_0x1ad191};}catch(_0x4d4fef){return{'success':![],'pathDir':_0x213fa1,'message':_0x5e5f80(0x89)+_0x4d4fef['message']};}}function uninstallShims(){const _0x320229=a0_0x36ea5d,_0x1b107c=path[_0x320229(0xc1)](os[_0x320229(0xea)](),_0x320229(0xcc),_0x320229(0xe5)),_0x36f7a9=os[_0x320229(0xeb)]()===_0x320229(0x8e);try{if(_0x36f7a9){const _0x3ac627=getExecSync();try{const _0x23ca15=getExecFileSync(),_0x4e0028=_0x320229(0xb8),_0x25bfb5='try\x20{\x20(Get-ItemProperty\x20-Path\x20\x27'+_0x4e0028+_0x320229(0x94),_0x424dd7=_0x23ca15('powershell.exe',[_0x320229(0xf3),'-Command',_0x25bfb5],{'encoding':_0x320229(0xec),'stdio':[_0x320229(0x88),'pipe','ignore']})[_0x320229(0xf2)]();if(_0x424dd7[_0x320229(0x80)](_0x1b107c)){const _0x25a7e0=_0x424dd7[_0x320229(0xdf)](_0x320229(0xe3))[_0x320229(0xb9)](_0x31c6c1=>!_0x31c6c1['includes'](_0x1b107c));if(_0x25a7e0[_0x320229(0x82)]===0x0){const _0x16f15b=_0x320229(0xd7)+_0x4e0028+_0x320229(0xcd);_0x23ca15('powershell.exe',[_0x320229(0xf3),_0x320229(0xbc),_0x16f15b],{'stdio':_0x320229(0xb7)});}else{const _0x162673=_0x25a7e0[_0x320229(0xc1)](_0x320229(0xe3)),_0x58cc16=_0x320229(0xc6)+_0x4e0028+'\x27\x20-Name\x20AutoRun\x20-Value\x20\x27'+_0x162673+'\x27';_0x23ca15(_0x320229(0xa4),[_0x320229(0xf3),_0x320229(0xbc),_0x58cc16],{'stdio':_0x320229(0xb7)});}}}catch{}try{const _0x18160b=collectPowerShellProfiles();for(const _0x4f2bc7 of _0x18160b){removeProfileBlock(_0x4f2bc7,PROFILE_MARKER);}}catch{}try{for(const _0x154d27 of getBashProfilesWindows()){removeProfileBlock(_0x154d27,PROFILE_MARKER);}}catch{}try{const _0x1a2298=_0x320229(0xe2),_0x1b4b7d=_0x3ac627('powershell\x20-NoProfile\x20-Command\x20\x22'+_0x1a2298+'\x22',{'encoding':_0x320229(0xec),'stdio':[_0x320229(0x88),_0x320229(0x88),'ignore']})[_0x320229(0xf2)]();if(_0x1b4b7d[_0x320229(0x80)](_0x1b107c)){const _0x25327c=_0x1b4b7d[_0x320229(0xdf)](';')[_0x320229(0xb9)](_0x1adaa1=>_0x1adaa1['trim']()[_0x320229(0x9d)]()!==_0x1b107c['toLowerCase']())['join'](';'),_0x41289c=_0x25327c['replace'](/'/g,'\x27\x27'),_0x10a24b=_0x320229(0xb0)+_0x41289c+_0x320229(0xad);_0x3ac627('powershell\x20-NoProfile\x20-Command\x20\x22'+_0x10a24b+';\x20'+getBroadcastCommand()+'\x22',{'stdio':_0x320229(0xb7)});}}catch{}}else{const _0x4a56a1=os[_0x320229(0xea)](),_0x209f2a=[_0x320229(0xbf),_0x320229(0x9c),_0x320229(0xf4),_0x320229(0x8f)];for(const _0x863209 of _0x209f2a){removeProfileBlock(path[_0x320229(0xc1)](_0x4a56a1,_0x863209),PROFILE_MARKER);}}if(fs['existsSync'](_0x1b107c)){const _0x1f22d1=fs[_0x320229(0xbb)](_0x1b107c);for(const _0x11dca7 of _0x1f22d1){fs[_0x320229(0xd1)](path[_0x320229(0xc1)](_0x1b107c,_0x11dca7));}fs[_0x320229(0xe7)](_0x1b107c);}return{'success':!![],'message':_0x320229(0xcb)};}catch(_0x596607){return{'success':![],'message':_0x320229(0xf1)+_0x596607['message']};}}
|
package/simulate.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const a0_0x28046f=a0_0x3f87;(function(_0x3292f3,_0x4cdc4f){const _0x57581c=a0_0x3f87,_0x3cd7cc=_0x3292f3();while(!![]){try{const _0x21416a=parseInt(_0x57581c(0x13a))/0x1*(parseInt(_0x57581c(0x13d))/0x2)+-parseInt(_0x57581c(0x160))/0x3+-parseInt(_0x57581c(0x140))/0x4+parseInt(_0x57581c(0x151))/0x5*(parseInt(_0x57581c(0x152))/0x6)+parseInt(_0x57581c(0x139))/0x7*(-parseInt(_0x57581c(0x145))/0x8)+-parseInt(_0x57581c(0x161))/0x9*(parseInt(_0x57581c(0x14b))/0xa)+parseInt(_0x57581c(0x14d))/0xb*(parseInt(_0x57581c(0x12c))/0xc);if(_0x21416a===_0x4cdc4f)break;else _0x3cd7cc['push'](_0x3cd7cc['shift']());}catch(_0x4bcf2f){_0x3cd7cc['push'](_0x3cd7cc['shift']());}}}(a0_0x4526,0xc6055));Object[a0_0x28046f(0x137)](exports,a0_0x28046f(0x14c),{'value':!![]});function a0_0x4526(){const _0x2f701d=['570aowYVc','tracker','test\x20tests::test_case_','npm\x20warn\x20deprecated\x20uuid@3.4.0:\x20Please\x20upgrade...\x0a','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','utf8','./tracker','comp','git\x20log\x20-n\x205','gemini-1-5-flash','Successfully\x20installed\x20tensorflow-2.15.0\x20numpy-1.26.2\x20pandas-2.1.3\x0a','exitCode','upload:\x20dist/hub-index.html\x20to\x20s3://trimprompt-assets/hub-index.html\x0a','claude-3-opus','4235154RcYzJW','2691YIybYb','random','join','writeFileSync','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','Completed\x203\x20of\x203\x20assets\x20successfully.','gpt-4o','running\x2045\x20tests\x0atest\x20tests::db_connection\x20...\x20ok\x0atest\x20tests::auth_handler\x20...\x20ok\x0a','floor','stats.json','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','708cpIKUD','timestamp','length','repeat','✖\x202\x20problems\x20(0\x20errors,\x202\x20warnings)\x0a','upload:\x20dist/cli.js\x20to\x20s3://trimprompt-assets/cli.js\x0a','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','claude-3-5-sonnet','.trimprompt','found\x200\x20vulnerabilities\x0a','src/tracker.ts:45:9\x20-\x20warning:\x20console.log\x20should\x20be\x20removed\x0a','defineProperty','src/cli.ts:12:3\x20-\x20warning:\x20unused\x20import\x0a','7hzUkhA','2edAiTO','kubectl\x20get\x20pods:\x20trimprompt-api\x20(Running),\x20trimprompt-sync\x20(Running),\x20redis-master\x20(Running),\x20postgres-db\x20(Running)','diff\x20--git\x20a/src/cli.ts\x20b/src/cli.ts\x20(50\x20insertions,\x200\x20deletions)','145186eNkQxe','pip\x20install:\x20Successfully\x20installed\x20tensorflow-2.15.0\x20numpy-1.26.2\x20pandas-2.1.3','pip\x20install\x20tensorflow\x20pandas\x20numpy','2564856bhCUSC','workflow\x20simulation\x20complete!\x2012\x20additional\x20commands\x20logged.','aws\x20s3\x20sync\x20dist/\x20s3://trimprompt-assets','\x20...\x20ok\x0atest\x20result:\x20ok.\x2045\x20passed;\x200\x20failed;\x200\x20ignored;\x200\x20measured;\x200\x20filtered\x20out','kubectl\x20get\x20pods\x20-n\x20production','49568thriwH','npm\x20run\x20lint','cargo\x20test:\x2045\x20passed,\x200\x20failed.','cmd','TRIMPROMPT_MODEL','path','45060nxGQWo','__esModule','652091qAcDJC','now','added\x2084\x20packages,\x20changed\x2012\x20packages,\x20and\x20audited\x2096\x20packages\x20in\x203s\x0a','npm\x20run\x20lint:\x20✖\x202\x20warnings','30250LbRJFp'];a0_0x4526=function(){return _0x2f701d;};return a0_0x4526();}const tracker_1=require(a0_0x28046f(0x158));console['log']('Starting\x20simulation\x20of\x20developer\x20workflow\x20activity...');const models=[a0_0x28046f(0x133),a0_0x28046f(0x167),'gpt-4o-mini','gemini-1-5-pro',a0_0x28046f(0x15b),a0_0x28046f(0x15f)],commands=[{'cmd':'git\x20diff\x20main','raw':a0_0x28046f(0x165)['repeat'](0x32),'comp':a0_0x28046f(0x13c),'exitCode':0x0},{'cmd':'cargo\x20test','raw':a0_0x28046f(0x168)+a0_0x28046f(0x154)[a0_0x28046f(0x12f)](0x28)+a0_0x28046f(0x143),'comp':a0_0x28046f(0x147),'exitCode':0x0},{'cmd':'npm\x20install\x20lodash\x20express\x20uuid\x20react','raw':a0_0x28046f(0x155)+a0_0x28046f(0x14f)+a0_0x28046f(0x135),'comp':'npm\x20install:\x20added\x2084\x20packages,\x20audited\x2096\x20packages.\x200\x20vulnerabilities.','exitCode':0x0},{'cmd':a0_0x28046f(0x142),'raw':'upload:\x20dist/index.html\x20to\x20s3://trimprompt-assets/index.html\x0a'+a0_0x28046f(0x15e)+a0_0x28046f(0x131)+a0_0x28046f(0x166),'comp':'aws\x20s3\x20sync:\x203\x20assets\x20uploaded\x20successfully.','exitCode':0x0},{'cmd':a0_0x28046f(0x144),'raw':a0_0x28046f(0x12b)+'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'+'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'+'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'+'postgres-db-0\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x201/1\x20\x20\x20\x20\x20Running\x20\x20\x200\x20\x20\x20\x20\x20\x20\x20\x20\x20\x2012d\x0a','comp':a0_0x28046f(0x13b),'exitCode':0x0},{'cmd':a0_0x28046f(0x13f),'raw':a0_0x28046f(0x156)+'\x20\x20Installing\x20build\x20dependencies\x20...\x20done\x0a'+a0_0x28046f(0x15c),'comp':a0_0x28046f(0x13e),'exitCode':0x0},{'cmd':a0_0x28046f(0x15a),'raw':a0_0x28046f(0x132)+'commit\x20f6e5d4c3b2a1\x0aAuthor:\x20Developer\x20<dev@trimprompt.ai>\x0aDate:\x20\x20\x20Tue\x20Jun\x2016\x2013:30:00\x202026\x20+0300\x0a\x0a\x20\x20\x20\x20fix:\x20adjust\x20margins\x20on\x20visual\x20graph','comp':'git\x20log:\x205\x20commits\x20(feat:\x20add\x20dynamic\x20token\x20costs,\x20fix:\x20adjust\x20margins...)','exitCode':0x0},{'cmd':a0_0x28046f(0x146),'raw':a0_0x28046f(0x138)+a0_0x28046f(0x136)+a0_0x28046f(0x130),'comp':a0_0x28046f(0x150),'exitCode':0x0}],startTime=Date[a0_0x28046f(0x14e)]()-0x36ee80;function a0_0x3f87(_0x39feb2,_0x7a6e2f){const _0x4526cc=a0_0x4526();return a0_0x3f87=function(_0x3f87a9,_0x4e1eef){_0x3f87a9=_0x3f87a9-0x129;let _0x2a9e37=_0x4526cc[_0x3f87a9];return _0x2a9e37;},a0_0x3f87(_0x39feb2,_0x7a6e2f);}for(let i=0x0;i<0xc;i++){const model=models[i%models[a0_0x28046f(0x12e)]],commandItem=commands[Math[a0_0x28046f(0x129)](Math[a0_0x28046f(0x162)]()*commands['length'])];process['env'][a0_0x28046f(0x149)]=model;const timestamp=new Date(startTime+i*0x3d090)['toISOString'](),log=tracker_1[a0_0x28046f(0x153)]['logExecution'](commandItem[a0_0x28046f(0x148)],commandItem['raw'],commandItem[a0_0x28046f(0x159)],commandItem[a0_0x28046f(0x15d)]),logs=tracker_1[a0_0x28046f(0x153)]['getLogs']();logs['length']>0x0&&(logs[logs['length']-0x1][a0_0x28046f(0x12d)]=timestamp,require('fs')[a0_0x28046f(0x164)](require(a0_0x28046f(0x14a))[a0_0x28046f(0x163)](require('os')['homedir'](),a0_0x28046f(0x134),a0_0x28046f(0x12a)),JSON['stringify'](logs,null,0x2),a0_0x28046f(0x157)));}console['log'](a0_0x28046f(0x141));
|