opencode-rgbify-plugin 0.2.2 → 0.2.4
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/dist/index.js +1 -1
- package/package.json +2 -10
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x48b0fc=_0x2aad;(function(_0x66620,_0x357bc6){const _0x4e5836=_0x2aad,_0x4316ad=_0x66620();while(!![]){try{const _0x513a6e=parseInt(_0x4e5836(0xc3))/0x1+parseInt(_0x4e5836(0xde))/0x2*(-parseInt(_0x4e5836(0xdd))/0x3)+parseInt(_0x4e5836(0xd5))/0x4*(-parseInt(_0x4e5836(0xbe))/0x5)+parseInt(_0x4e5836(0x105))/0x6*(-parseInt(_0x4e5836(0xe0))/0x7)+parseInt(_0x4e5836(0xa9))/0x8*(parseInt(_0x4e5836(0xfe))/0x9)+parseInt(_0x4e5836(0xf8))/0xa*(parseInt(_0x4e5836(0xa5))/0xb)+parseInt(_0x4e5836(0x9e))/0xc;if(_0x513a6e===_0x357bc6)break;else _0x4316ad['push'](_0x4316ad['shift']());}catch(_0x136e1b){_0x4316ad['push'](_0x4316ad['shift']());}}}(_0x5695,0xe33f8));import{spawn}from'bun';import{existsSync,appendFileSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';function _0x2aad(_0x1c59a6,_0x274a13){_0x1c59a6=_0x1c59a6-0x96;const _0x569566=_0x5695();let _0x2aade2=_0x569566[_0x1c59a6];if(_0x2aad['UmqCpB']===undefined){var _0x428bc9=function(_0x2cd8fd){const _0x47565f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x229f94='',_0x547c6a='';for(let _0x9adcbe=0x0,_0x1de113,_0x5a6056,_0x546b20=0x0;_0x5a6056=_0x2cd8fd['charAt'](_0x546b20++);~_0x5a6056&&(_0x1de113=_0x9adcbe%0x4?_0x1de113*0x40+_0x5a6056:_0x5a6056,_0x9adcbe++%0x4)?_0x229f94+=String['fromCharCode'](0xff&_0x1de113>>(-0x2*_0x9adcbe&0x6)):0x0){_0x5a6056=_0x47565f['indexOf'](_0x5a6056);}for(let _0x2b46e5=0x0,_0x296850=_0x229f94['length'];_0x2b46e5<_0x296850;_0x2b46e5++){_0x547c6a+='%'+('00'+_0x229f94['charCodeAt'](_0x2b46e5)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x547c6a);};_0x2aad['bNbPcI']=_0x428bc9,_0x2aad['LPSPjS']={},_0x2aad['UmqCpB']=!![];}const _0x542240=_0x569566[0x0];_0x2aad['sBloKp']!==_0x542240&&(_0x2aad['LPSPjS']={},_0x2aad['sBloKp']=_0x542240);const _0x4421b0=_0x2aad['LPSPjS'][_0x1c59a6];return _0x4421b0===undefined?(_0x2aade2=_0x2aad['bNbPcI'](_0x2aade2),_0x2aad['LPSPjS'][_0x1c59a6]=_0x2aade2):_0x2aade2=_0x4421b0,_0x2aade2;}import{fileURLToPath}from'node:url';import _0x169ece from'node:path';import _0x9083e0 from'node:os';const here=_0x169ece[_0x48b0fc(0xb2)](fileURLToPath(import.meta.url)),PLUGIN_ROOT=_0x169ece[_0x48b0fc(0xe5)](here,'..'),BRIDGE=_0x169ece[_0x48b0fc(0xe5)](here,'..',_0x48b0fc(0xbf),_0x48b0fc(0xa7)),IS_WINDOWS=process['platform']===_0x48b0fc(0xce),BRIDGE_INSTALL=IS_WINDOWS?_0x169ece[_0x48b0fc(0xe5)](here,'..',_0x48b0fc(0xbf),_0x48b0fc(0xcb)):_0x169ece[_0x48b0fc(0xe5)](here,'..','bridge',_0x48b0fc(0x10a)),VENV_PYTHON=IS_WINDOWS?_0x169ece[_0x48b0fc(0xe5)](here,'..',_0x48b0fc(0x108),'Scripts',_0x48b0fc(0x104)):_0x169ece[_0x48b0fc(0xe5)](here,'..',_0x48b0fc(0x108),_0x48b0fc(0xef),_0x48b0fc(0xa3)),DEBUG_LOG=process.env.RGBIFY_DEBUG_LOG,debugLines=[];let debugTimer=null;function flushDebug(){const _0x4c636d=_0x48b0fc,_0x2a9f64={'GmpYa':function(_0x5afcc1,_0x178b77){return _0x5afcc1!==_0x178b77;},'ulIiW':function(_0x3eb0fd,_0x2063a9){return _0x3eb0fd(_0x2063a9);},'ofomv':function(_0x1719dd,_0x55a172){return _0x1719dd===_0x55a172;}};_0x2a9f64[_0x4c636d(0xb8)](debugTimer,null)&&(_0x2a9f64[_0x4c636d(0xbc)](clearTimeout,debugTimer),debugTimer=null);if(!DEBUG_LOG||_0x2a9f64[_0x4c636d(0x9a)](debugLines[_0x4c636d(0xdc)],0x0))return;const _0x1f790a=debugLines[_0x4c636d(0xd4)](0x0);try{appendFileSync(DEBUG_LOG,_0x1f790a[_0x4c636d(0xe5)](''));}catch{}}function debug(_0x4a3319){const _0x484945=_0x48b0fc,_0x33a2ea={'CxIWK':function(_0x2d87e5){return _0x2d87e5();},'PAAPx':function(_0x22f12b,_0x4a26de){return _0x22f12b===_0x4a26de;}};if(!DEBUG_LOG)return;debugLines[_0x484945(0xba)](Date['now']()+'\x20'+_0x4a3319+'\x0a'),_0x33a2ea[_0x484945(0xec)](debugTimer,null)&&(debugTimer=setTimeout(()=>{const _0x19ef0f=_0x484945;debugTimer=null,_0x33a2ea[_0x19ef0f(0x97)](flushDebug);},0x32));}let bootstrapPromise=null;function _0x5695(){const _0x2ffa7f=['qurTrw0','C3rYAw5N','ChL0Ag9UlMv4zq','mta4rMDMvLf5','y29TBwfUza','ChjVCgvYDgLLCW','lNzLBNy','Dgv4Da','Aw5ZDgfSBc5ZAa','vg9pDK4','ufvkCMu','ueDPzfq','q3Hjv0S','DKv5Beq','zxzLBNqGDhLWzt0','B2zVBxy','D2fYBG','DxrMoa','zw5JB2rL','mZm4mti4nJHtCwjKqKO','CM91BMq','r1LXtg4','uKDcAwz5igrLC2T0B3aGDM9SDw1LihnLDcb0BYa','AgfZ','ChL0Ag9U','C2vZC2LVBI5UzxH0lNjLyxnVBMLUzY5KzwX0yq','ndeWm3bty2TpqG','s1HXs0q','yMXLx2jYAwrNzs5WEq','Ag9ZDc12B2X1Bwu','mJuXnJC3nKz0ru5hCW','A2LSBa','CgLWzvrV','uKDcAwz5igrLC2T0B3aGDM9SDw1LigLZia','uhbiA2K','BuLcwKG','C3rHDgu','wvD3tLC','DhLWzq','zgLYBMfTzq','sNfrAve','yNjPzgDLihvUyxzHAwXHyMXLoIa','yxjNDw1LBNrZ','luzPBgu','B3bLBMnVzgu','r21Wwwe','s1vSC24','ChvZAa','CwL0yvq','DwXjAvC','nda6ote6nte6qui6nta6q0u','nwXXwhLSrq','yNjPzgDL','qNLWyxnZ','teveD3K','BwvZC2fNzs5Wyxj0lMrLBhrH','odC3mdn0CMDQDhO','AvLguvG','zxHPDgvK','ExzdrvC','C2vZC2LVBI5UzxH0lNrLEhqUzgvSDge','s2fqz2y','DhjPBq','C2vUzcbSzw49','Aw5ZDgfSBc5WCZe','tLvhCLC','sezKuuq','D2LUmZi','z1bHDuO','luv4zwn1DgLVBLbVBgLJEq','ELnsqLa','Ag9TzwrPCG','C3rKzxjY','C3bSAwnL','ntqZmtyWnhfJzNHtta','q0TXzuS','tvvQsge','ywrK','Dwv3shC','quTuywu','sfHNuLO','BgvUz3rO','ntCZzMrryxnd','mty2mdHqDgzKr1m','CMDIAwz5','ndm2nZe2ww5KBKjt','zw5XDwv1zq','Bwf4','zMLUywXSEq','CMrnCwe','AM9PBG','zgvSDge','vvz4BMG','C2XPy2u','yM9VDhn0CMfWoIbPBNn0ywXSzxiGzMfPBgvKoIa','ueTuAxu','CMDIAwz5lq','uefbuhG','CgfYDhm','Cg1UB3O','yMLU','C3rKB3v0','rMjzELq','BwLU','yMfZAa','AfvvA00','C2vZC2LVBKLe','r21XrLu','CgLWzq','ndC2nJbptLPiy3O','lu5VuhjVzMLSzq','CgTMrxi','wLnJqKy','yxbW','twHftwS','ouvxwe9gDG','yM9VDhn0CMfWoIbPBNn0ywXSzxiGzxHPDgvKia','lMnVBMzPzW','zMLLBgq'];_0x5695=function(){return _0x2ffa7f;};return _0x5695();}async function bootstrapPython(){const _0xa5ca73=_0x48b0fc,_0x352033={'KaPgf':'bootstrap:\x20bridge\x20venv\x20missing,\x20running\x20installer','GYqLn':_0xa5ca73(0xf9),'iYFQX':_0xa5ca73(0xd0),'HFdQD':_0xa5ca73(0xc0),'ZScBF':_0xa5ca73(0xb6),'LEDwy':function(_0x57fba9,_0x2c30b8,_0x121f02){return _0x57fba9(_0x2c30b8,_0x121f02);},'NUGrW':_0xa5ca73(0xf7),'mIBZH':function(_0xf12df9,_0x307a16){return _0xf12df9(_0x307a16);},'pmnoz':function(_0x4614c8,_0x56e985){return _0x4614c8(_0x56e985);}};if(_0x352033[_0xa5ca73(0xee)](existsSync,VENV_PYTHON))return VENV_PYTHON;if(bootstrapPromise)return bootstrapPromise;return bootstrapPromise=((async()=>{const _0x155433=_0xa5ca73;debug(_0x352033[_0x155433(0xc8)]);try{const _0x271bfd=IS_WINDOWS?[_0x352033[_0x155433(0xa0)],_0x352033[_0x155433(0xc4)],_0x352033[_0x155433(0xcd)],_0x352033[_0x155433(0xfb)],BRIDGE_INSTALL,PLUGIN_ROOT]:[_0x155433(0xf3),BRIDGE_INSTALL,PLUGIN_ROOT],_0x2ff568=_0x352033[_0x155433(0xc1)](spawn,_0x271bfd,{'stdin':_0x352033[_0x155433(0xcc)],'stdout':_0x352033[_0x155433(0xcc)],'stderr':_0x352033['NUGrW']});void _0x2ff568[_0x155433(0xf0)]?.[_0x155433(0xab)](new WritableStream({'write'(){}})),void _0x2ff568[_0x155433(0xd3)]?.['pipeTo'](new WritableStream({'write'(){}}));const _0x498621=await _0x2ff568[_0x155433(0xc5)];return _0x352033[_0x155433(0xae)](debug,_0x155433(0xff)+_0x498621),_0x352033[_0x155433(0xae)](existsSync,VENV_PYTHON)?VENV_PYTHON:null;}catch(_0xdf8417){return _0x352033[_0x155433(0xee)](debug,_0x155433(0xe9)+_0xdf8417),null;}})()),bootstrapPromise;}function isEnabled(){const _0x4d9992=_0x48b0fc,_0x16ca2c={'gPauJ':function(_0x1efb77,_0xd6adad){return _0x1efb77!==_0xd6adad;},'GmqFU':function(_0x398367,_0x4deddd){return _0x398367!==_0x4deddd;},'AKTae':'true'};return _0x16ca2c[_0x4d9992(0xcf)](process.env.RGBIFY_DISABLE,'1')&&_0x16ca2c[_0x4d9992(0xf6)](process.env.RGBIFY_DISABLE,_0x16ca2c[_0x4d9992(0xda)]);}function stateDir(){const _0x187629=_0x48b0fc,_0x5e6ef4={'IKMKH':_0x187629(0x100)};return process.env.RGBIFY_STATE_DIR||_0x169ece[_0x187629(0xe5)](_0x9083e0[_0x187629(0xd2)](),_0x5e6ef4['IKMKH'],_0x187629(0xb7),_0x187629(0xaf));}const VOLUME_FILE=_0x169ece[_0x48b0fc(0xe5)](stateDir(),_0x48b0fc(0xa8));function readHostVolume(){const _0x2f4923=_0x48b0fc,_0x4c07eb={'ToOvN':function(_0x405ba8,_0x2b1adf,_0x2ff29f){return _0x405ba8(_0x2b1adf,_0x2ff29f);},'cgaIs':function(_0x10a73a,_0xd0f4b0,_0x5cfdb5){return _0x10a73a(_0xd0f4b0,_0x5cfdb5);},'JqQiQ':_0x2f4923(0x9c)};try{const _0x3c959e=_0x4c07eb[_0x2f4923(0x10b)](parseInt,_0x4c07eb['cgaIs'](readFileSync,VOLUME_FILE,_0x4c07eb[_0x2f4923(0xb3)])[_0x2f4923(0xc9)](),0xa);return Number['isFinite'](_0x3c959e)?Math[_0x2f4923(0xe2)](0x0,Math['min'](0xa,_0x3c959e)):0xa;}catch{return 0xa;}}function writeHostVolume(_0x5d9ce8){const _0x1b7484=_0x48b0fc,_0x5f10fa={'PpHki':function(_0x5a6c50,_0x45a987,_0x1bf97a){return _0x5a6c50(_0x45a987,_0x1bf97a);},'ZqPxt':function(_0x1b264b){return _0x1b264b();}};try{_0x5f10fa[_0x1b7484(0xad)](mkdirSync,_0x5f10fa['ZqPxt'](stateDir),{'recursive':!![]}),writeFileSync(VOLUME_FILE,String(Math[_0x1b7484(0xe2)](0x0,Math['min'](0xa,Math[_0x1b7484(0x9f)](_0x5d9ce8)))));}catch{}}export const RGBifyProjectorPlugin=async({client:_0x52ed65})=>{const _0x12d0d4=_0x48b0fc,_0x368bad={'HXgRZ':function(_0x554810,_0x4c4b5f){return _0x554810===_0x4c4b5f;},'KUlsn':function(_0x48ce53){return _0x48ce53();},'PGidT':function(_0x1d5fa6){return _0x1d5fa6();},'hUUkM':'bridge\x20deps\x20not\x20installed\x20(install.sh\x20failed)','FbYzT':function(_0x3761aa,_0x343afc,_0xd66bcc){return _0x3761aa(_0x343afc,_0xd66bcc);},'zSRBP':_0x12d0d4(0xf7),'rdMqa':_0x12d0d4(0xbd),'GAEIu':function(_0x1a3f7e,_0x3930f5){return _0x1a3f7e?.(_0x3930f5);},'MhEMk':function(_0x1536e6,_0x33342f){return _0x1536e6(_0x33342f);},'pkfEr':_0x12d0d4(0xdf),'rRHwR':function(_0x4c81a9){return _0x4c81a9();},'CKqeK':function(_0x5438aa,_0x5b8a4f){return _0x5438aa===_0x5b8a4f;},'PUJre':_0x12d0d4(0x109),'vEylD':'reasoning','MUjHa':function(_0xc220f7,_0x5c4864){return _0xc220f7(_0x5c4864);},'yvCEW':_0x12d0d4(0xa4),'ADmEm':function(_0xcac0da,_0x446cfc){return _0xcac0da!==_0x446cfc;},'PKTiu':function(_0x11859d,_0x95921f,_0x282a0e){return _0x11859d(_0x95921f,_0x282a0e);},'JXmxf':function(_0x598181,_0x1d77ee){return _0x598181(_0x1d77ee);},'UVxnh':function(_0x2a7c24,_0x595640){return _0x2a7c24(_0x595640);},'MONmb':'tool\x20out','qitaT':function(_0x2b09b2,_0x3adccd){return _0x2b09b2(_0x3adccd);}};if(!isEnabled())return{};let _0x4b654a=null;const _0xc436fe=new Set();let _0x1035e5=null,_0x5de935=null;function _0x26b3da(){const _0x26c44c={'uewHw':function(_0x53c2a5,_0x18bcef){const _0x3429ac=_0x2aad;return _0x368bad[_0x3429ac(0xdb)](_0x53c2a5,_0x18bcef);},'pnRiz':function(_0x5e1fbe){return _0x368bad['KUlsn'](_0x5e1fbe);},'YWwNW':function(_0x1d2b4d){const _0x3876e3=_0x2aad;return _0x368bad[_0x3876e3(0x96)](_0x1d2b4d);}},_0x46511c=[];let _0x38244b=null,_0x29c947=![];const _0x3fea79=new TextEncoder(),_0xb96d22=new ReadableStream({async 'pull'(_0x2b6adf){const _0xae9210=_0x2aad;while(_0x26c44c[_0xae9210(0xd9)](_0x46511c['length'],0x0)&&!_0x29c947){await new Promise(_0x2d82ba=>{_0x38244b=_0x2d82ba;});}if(_0x29c947)return;_0x2b6adf[_0xae9210(0xe1)](_0x3fea79[_0xae9210(0x9d)](_0x46511c['shift']()+'\x0a'));},'cancel'(){_0x29c947=!![];if(_0x38244b){const _0x46ed94=_0x38244b;_0x38244b=null,_0x26c44c['pnRiz'](_0x46ed94);}}});return _0x1035e5=_0x2e52cb=>{const _0x2c494f=_0x2aad;if(_0x29c947)return;_0x46511c['push'](_0x2e52cb);if(_0x38244b){const _0x5a9d1a=_0x38244b;_0x38244b=null,_0x26c44c[_0x2c494f(0xb0)](_0x5a9d1a);}},_0xb96d22;}function _0x13dd51(){if(_0x4b654a)return _0x4b654a;return _0x4b654a=((async()=>{const _0x54b914=_0x2aad,_0x53e8e2=await bootstrapPython();if(!_0x53e8e2)throw new Error(_0x368bad[_0x54b914(0xf4)]);const _0x375e70=_0x368bad[_0x54b914(0xf1)](spawn,[_0x53e8e2,BRIDGE],{'stdin':_0x26b3da(),'stdout':_0x54b914(0xf7),'stderr':_0x368bad[_0x54b914(0xd1)],'env':{...process.env,'RGBIFY_PROJECTOR_ADDR':process.env.RGBIFY_PROJECTOR_ADDR||_0x368bad[_0x54b914(0xe4)]}});return void _0x375e70[_0x54b914(0xf0)]?.['pipeTo'](new WritableStream({'write'(){}})),void _0x375e70[_0x54b914(0xd3)]?.['pipeTo'](new WritableStream({'write'(){}})),void _0x375e70['exited'][_0x54b914(0xe3)](()=>{_0x4b654a=null,_0x1035e5=null,_0x5de935=null;}),_0x5de935!==null&&(_0x368bad['GAEIu'](_0x1035e5,_0x5de935),_0x5de935=null),_0x375e70;})()),_0x4b654a;}const _0x2d11ea=0x8,_0x287af6=0x96;let _0x21c705='',_0xbf1349=null;function _0x374715(){const _0x113b78=_0x12d0d4;_0xbf1349&&(_0x368bad['MhEMk'](clearTimeout,_0xbf1349),_0xbf1349=null);const _0x79d284=_0x21c705[_0x113b78(0xe8)](-_0x2d11ea);_0x21c705='';if(_0x79d284)_0x368bad[_0x113b78(0xfd)](_0x1f24d8,_0x79d284);}function _0x1f24d8(_0x21ebf4){const _0x55d71c=_0x12d0d4,_0x497263={'KXqKD':_0x368bad[_0x55d71c(0xfa)]};_0x368bad[_0x55d71c(0xfd)](debug,_0x55d71c(0xca)+_0x21ebf4['length']),_0x1035e5?_0x368bad[_0x55d71c(0xfd)](_0x1035e5,_0x21ebf4):_0x5de935=_0x21ebf4,_0x368bad['HXgRZ'](_0x4b654a,null)&&_0x368bad['rRHwR'](_0x13dd51)['catch'](async _0x1bcc4a=>{const _0xf36568=_0x55d71c;await _0x52ed65[_0xf36568(0xfc)]['log']({'body':{'service':_0x497263[_0xf36568(0xa6)],'level':_0xf36568(0x9b),'message':_0xf36568(0xb4)+_0x1bcc4a}});});}function _0x7493d(_0x2f2d64){const _0x391685=_0x12d0d4;_0x21c705+=_0x2f2d64;if(_0x21c705[_0x391685(0xdc)]>=_0x2d11ea){_0x368bad['PGidT'](_0x374715);return;}if(!_0xbf1349)_0xbf1349=_0x368bad[_0x391685(0xf1)](setTimeout,_0x374715,_0x287af6);}return _0x13dd51()['catch'](async _0xd78a6c=>{const _0x408687=_0x12d0d4;await _0x52ed65[_0x408687(0xfc)]['log']({'body':{'service':_0x368bad[_0x408687(0xfa)],'level':'warn','message':'bridge\x20unavailable:\x20'+_0xd78a6c}});}),{'event':async({event:_0x269551})=>{const _0x32a17d=_0x12d0d4,_0x4d7e93=_0x269551['type'];!_0xc436fe[_0x32a17d(0xa2)](_0x4d7e93)&&(_0xc436fe[_0x32a17d(0xd8)](_0x4d7e93),_0x368bad[_0x32a17d(0xfd)](debug,_0x32a17d(0x99)+_0x4d7e93));if(_0x368bad[_0x32a17d(0xd6)](_0x4d7e93,_0x32a17d(0xc2))){const _0x9f3219=_0x269551[_0x32a17d(0x107)];(_0x368bad[_0x32a17d(0xdb)](_0x9f3219?.[_0x32a17d(0x101)],_0x368bad['PUJre'])||_0x368bad[_0x32a17d(0xd6)](_0x9f3219?.[_0x32a17d(0x101)],_0x368bad[_0x32a17d(0x98)]))&&(_0x368bad[_0x32a17d(0xd6)](typeof _0x9f3219[_0x32a17d(0xe6)],_0x32a17d(0x103))&&_0x9f3219[_0x32a17d(0xe6)]&&_0x368bad[_0x32a17d(0xd7)](_0x7493d,_0x9f3219['delta']));return;}if(_0x368bad[_0x32a17d(0xdb)](_0x4d7e93,_0x32a17d(0xc7))||_0x368bad[_0x32a17d(0xdb)](_0x4d7e93,_0x368bad[_0x32a17d(0xc6)])){const _0x32da4a=_0x269551[_0x32a17d(0x107)];_0x368bad[_0x32a17d(0xd6)](typeof _0x32da4a?.[_0x32a17d(0xe6)],'string')&&_0x32da4a[_0x32a17d(0xe6)]&&_0x368bad[_0x32a17d(0xfd)](_0x7493d,_0x32da4a['delta']);return;}},'command.execute.before':async(_0x97524b,_0x5b1dc9)=>{const _0x39a32a=_0x12d0d4;if(_0x368bad[_0x39a32a(0x102)](_0x97524b[_0x39a32a(0x106)],_0x39a32a(0xdf)))return;const _0x46d8c4=(_0x97524b[_0x39a32a(0xb5)]||'')['trim'](),_0x598b4e={'id':_0x39a32a(0xeb)+Date['now'](),'sessionID':_0x97524b[_0x39a32a(0xf5)],'messageID':_0x97524b[_0x39a32a(0xf5)]},_0x4548c4=_0x46d8c4['match'](/^volume\s+([0-9]+)$/);_0x5b1dc9[_0x39a32a(0xed)][_0x39a32a(0xdc)]=0x0;if(_0x4548c4){const _0x210e28=Math['max'](0x0,Math[_0x39a32a(0xf2)](0xa,_0x368bad[_0x39a32a(0xea)](parseInt,_0x4548c4[0x1],0xa)));_0x368bad['JXmxf'](writeHostVolume,_0x210e28),_0x5b1dc9[_0x39a32a(0xed)][_0x39a32a(0xba)]({..._0x598b4e,'type':_0x368bad[_0x39a32a(0x10c)],'text':_0x39a32a(0xa1)+_0x210e28+'.'});}else _0x5b1dc9[_0x39a32a(0xed)]['push']({..._0x598b4e,'type':_0x368bad[_0x39a32a(0x10c)],'text':_0x39a32a(0xac)+_0x368bad[_0x39a32a(0xb9)](readHostVolume)+'.\x20Usage:\x20/rgbify\x20volume\x20<0-10>.'});},'chat.message':async(_0x5dae7c,_0x16a026)=>{const _0x30fead=_0x12d0d4;for(const _0x46fe84 of _0x16a026[_0x30fead(0xed)]){if(_0x46fe84[_0x30fead(0xb1)]!==_0x368bad[_0x30fead(0x10c)])continue;_0x368bad['MUjHa'](_0x7493d,_0x46fe84[_0x30fead(0x109)]);}},'tool.execute.before':async _0x3132f2=>{const _0x310565=_0x12d0d4;_0x368bad[_0x310565(0xd7)](_0x7493d,'tool\x20IN');},'tool.execute.after':async()=>{const _0x304474=_0x12d0d4;_0x368bad[_0x304474(0xe7)](_0x7493d,_0x368bad['MONmb']);},'dispose':async()=>{const _0x51ad6d=_0x12d0d4;_0xbf1349&&(_0x368bad[_0x51ad6d(0xbb)](clearTimeout,_0xbf1349),_0xbf1349=null);_0x21c705='',_0x1035e5=null,_0x5de935=null,flushDebug();if(_0x4b654a){try{const _0x5774c5=await _0x4b654a;_0x5774c5[_0x51ad6d(0xaa)]();}catch{}_0x4b654a=null;}}};};
|
|
1
|
+
const _0xc9f4d7=_0x27ff;(function(_0x12a876,_0x5386ca){const _0x501c56=_0x27ff,_0x4a7880=_0x12a876();while(!![]){try{const _0x2bc44d=parseInt(_0x501c56(0x1c3))/0x1*(-parseInt(_0x501c56(0x1ec))/0x2)+parseInt(_0x501c56(0x1f6))/0x3+parseInt(_0x501c56(0x1fa))/0x4*(-parseInt(_0x501c56(0x1f3))/0x5)+parseInt(_0x501c56(0x200))/0x6+parseInt(_0x501c56(0x1df))/0x7+parseInt(_0x501c56(0x1d8))/0x8*(parseInt(_0x501c56(0x1ff))/0x9)+-parseInt(_0x501c56(0x1ea))/0xa*(parseInt(_0x501c56(0x19c))/0xb);if(_0x2bc44d===_0x5386ca)break;else _0x4a7880['push'](_0x4a7880['shift']());}catch(_0x2b8749){_0x4a7880['push'](_0x4a7880['shift']());}}}(_0x44d3,0xb37bc));import{spawn}from'bun';import{existsSync,appendFileSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{fileURLToPath}from'node:url';import _0xf0b3e5 from'node:path';import _0x16d4a1 from'node:os';const here=_0xf0b3e5['dirname'](fileURLToPath(import.meta.url)),PLUGIN_ROOT=_0xf0b3e5[_0xc9f4d7(0x1c7)](here,'..'),BRIDGE=_0xf0b3e5[_0xc9f4d7(0x1c7)](here,'..',_0xc9f4d7(0x196),_0xc9f4d7(0x18f)),IS_WINDOWS=process['platform']===_0xc9f4d7(0x1f0),BRIDGE_INSTALL=IS_WINDOWS?_0xf0b3e5[_0xc9f4d7(0x1c7)](here,'..',_0xc9f4d7(0x196),_0xc9f4d7(0x191)):_0xf0b3e5[_0xc9f4d7(0x1c7)](here,'..',_0xc9f4d7(0x196),_0xc9f4d7(0x1e8)),VENV_PYTHON=IS_WINDOWS?_0xf0b3e5['join'](here,'..','.venv','Scripts',_0xc9f4d7(0x1c5)):_0xf0b3e5[_0xc9f4d7(0x1c7)](here,'..',_0xc9f4d7(0x1ab),_0xc9f4d7(0x1f1),_0xc9f4d7(0x1a4)),DEBUG_LOG=process.env.RGBIFY_DEBUG_LOG,debugLines=[];let debugTimer=null;function flushDebug(){const _0x1188ae=_0xc9f4d7,_0x3874c2={'Whvmx':function(_0x1f9ba2,_0x27573d){return _0x1f9ba2!==_0x27573d;},'IkTBV':function(_0x3c3b6a,_0x5ce857){return _0x3c3b6a(_0x5ce857);},'XduTN':function(_0x11d58b,_0x2fde1d){return _0x11d58b===_0x2fde1d;},'oLDwP':function(_0x5577ad,_0x42d203,_0x57aacd){return _0x5577ad(_0x42d203,_0x57aacd);}};_0x3874c2[_0x1188ae(0x1b0)](debugTimer,null)&&(_0x3874c2[_0x1188ae(0x1eb)](clearTimeout,debugTimer),debugTimer=null);if(!DEBUG_LOG||_0x3874c2['XduTN'](debugLines[_0x1188ae(0x18e)],0x0))return;const _0x1fa767=debugLines[_0x1188ae(0x1ba)](0x0);try{_0x3874c2[_0x1188ae(0x1d0)](appendFileSync,DEBUG_LOG,_0x1fa767[_0x1188ae(0x1c7)](''));}catch{}}function debug(_0x50633b){const _0x36620a={'IJmQa':function(_0x25114e){return _0x25114e();},'mucIy':function(_0x1edd96,_0x4aeca9,_0x488007){return _0x1edd96(_0x4aeca9,_0x488007);}};if(!DEBUG_LOG)return;debugLines['push'](Date['now']()+'\x20'+_0x50633b+'\x0a'),debugTimer===null&&(debugTimer=_0x36620a['mucIy'](setTimeout,()=>{const _0x5974a5=_0x27ff;debugTimer=null,_0x36620a[_0x5974a5(0x1fc)](flushDebug);},0x32));}let bootstrapPromise=null;async function bootstrapPython(){const _0x3bb7e2=_0xc9f4d7,_0x3ff548={'fbmQj':_0x3bb7e2(0x1a3),'IDpLg':_0x3bb7e2(0x1d2),'teggZ':'-ExecutionPolicy','DmSJG':_0x3bb7e2(0x1bd),'jIFXW':'bash','GNtQx':'pipe','pLfgK':function(_0x1c3fda,_0x2faa47){return _0x1c3fda(_0x2faa47);}};if(_0x3ff548[_0x3bb7e2(0x197)](existsSync,VENV_PYTHON))return VENV_PYTHON;if(bootstrapPromise)return bootstrapPromise;return bootstrapPromise=((async()=>{const _0x5f0948=_0x3bb7e2;debug(_0x3ff548[_0x5f0948(0x1dd)]);try{const _0x5661b8=IS_WINDOWS?[_0x3ff548[_0x5f0948(0x1ef)],_0x3ff548[_0x5f0948(0x1f7)],_0x5f0948(0x1b3),_0x3ff548[_0x5f0948(0x199)],BRIDGE_INSTALL,PLUGIN_ROOT]:[_0x3ff548['jIFXW'],BRIDGE_INSTALL,PLUGIN_ROOT],_0x482bf3=spawn(_0x5661b8,{'stdin':_0x3ff548['GNtQx'],'stdout':_0x3ff548[_0x5f0948(0x1be)],'stderr':_0x3ff548[_0x5f0948(0x1be)]});void _0x482bf3['stdout']?.[_0x5f0948(0x1ac)](new WritableStream({'write'(){}})),void _0x482bf3[_0x5f0948(0x1db)]?.[_0x5f0948(0x1ac)](new WritableStream({'write'(){}}));const _0xeac8d=await _0x482bf3[_0x5f0948(0x1b8)];return _0x3ff548['pLfgK'](debug,'bootstrap:\x20installer\x20exited\x20'+_0xeac8d),existsSync(VENV_PYTHON)?VENV_PYTHON:null;}catch(_0x1c0c13){return _0x3ff548[_0x5f0948(0x197)](debug,_0x5f0948(0x195)+_0x1c0c13),null;}})()),bootstrapPromise;}function isEnabled(){const _0xf52464=_0xc9f4d7,_0x5140c6={'GOtzS':function(_0x1320ba,_0x240ea5){return _0x1320ba!==_0x240ea5;}};return _0x5140c6[_0xf52464(0x1d6)](process.env.RGBIFY_DISABLE,'1')&&process.env.RGBIFY_DISABLE!==_0xf52464(0x1cb);}function stateDir(){const _0x44c4d7=_0xc9f4d7,_0x24ae4c={'qDytm':_0x44c4d7(0x190),'qUSVh':_0x44c4d7(0x1b6)};return process.env.RGBIFY_STATE_DIR||_0xf0b3e5[_0x44c4d7(0x1c7)](_0x16d4a1[_0x44c4d7(0x1d1)](),_0x24ae4c[_0x44c4d7(0x201)],_0x24ae4c[_0x44c4d7(0x1e2)],_0x44c4d7(0x1a9));}const VOLUME_FILE=_0xf0b3e5[_0xc9f4d7(0x1c7)](stateDir(),_0xc9f4d7(0x1e3));function readHostVolume(){const _0x392b4b=_0xc9f4d7,_0x575c3c={'uqPfN':function(_0x1a5f4d,_0x5c023b,_0x465d67){return _0x1a5f4d(_0x5c023b,_0x465d67);},'Lawcl':'utf8'};try{const _0x2821be=_0x575c3c['uqPfN'](parseInt,_0x575c3c[_0x392b4b(0x1a5)](readFileSync,VOLUME_FILE,_0x575c3c[_0x392b4b(0x19f)])[_0x392b4b(0x1aa)](),0xa);return Number[_0x392b4b(0x1da)](_0x2821be)?Math[_0x392b4b(0x1ee)](0x0,Math['min'](0xa,_0x2821be)):0xa;}catch{return 0xa;}}function _0x44d3(){const _0x3a9706=['AwL1Axm','luzPBgu','r050uxG','DMrrDfi','EffdsKu','C2vZC2LVBKLe','CMDIAwz5lq','mta3owLMtvfNBW','CgfYDhm','ChL0Ag9UlMv4zq','C3rKB3v0','AM9PBG','A2LSBa','ywfMuuO','CMDIAwz5','Dhj1zq','CMX6D1K','DhLWzq','ChjVCgvYDgLLCW','zMLLBgq','B0XeD1a','Ag9TzwrPCG','lu5VuhjVzMLSzq','D2fYBG','tMTWvwu','zujutvO','r090ELm','CMvHC29UAw5N','mte3mZm2uxfUBMzu','q3HwD00','AxngAw5PDgu','C3rKzxjY','yNjPzgDLihvUyxzHAwXHyMXLoIa','zMjTuwO','Bg9N','mZmXodCYogT6zvzNqq','vujHDxu','Dg9VBcbVDxq','CvvtvMG','Ag9ZDc12B2X1Bwu','AgfZ','y01euwC','yxbW','qwfYsee','Aw5ZDgfSBc5ZAa','Dg9VBcbjtG','mtGZmeDXCMDqwG','swTuqLy','mtCXnhjjExzkBW','AwjAtMS','Bwf4','surWtgC','D2LUmZi','yMLU','nda6ote6nte6qui6nta6q0u','mJKWswPmA29g','zw5JB2rL','yKP5DuS','mtC4nJaYmenZCMHNAa','DgvNz1O','Dgv4Da','q3f0s2W','mJa1odbmwK13B0e','D0PgvwG','suPTuwe','ChvZAa','lIbvC2fNztOGl3jNyMLMEsb2B2X1BwuGpdaTmta+lG','ndC3DNvgEvnv','ndmWmZi3mK5Sr3jHqW','Cur5Dg0','BgvUz3rO','yMXLx2jYAwrNzs5WEq','lMnVBMzPzW','Aw5ZDgfSBc5WCZe','Cg5jEvm','D096wfm','C2XPy2u','yM9VDhn0CMfWoIbPBNn0ywXSzxiGzMfPBgvKoIa','yNjPzgDL','CeXMz0S','BwLU','rg1tsKC','A1b4A1q','C3rYAw5N','mZy0mtbpuuz3Dha','v1HnrvO','yxjNDw1LBNrZ','tgf3y2W','C2vZC2LVBI5UzxH0lNrLEhqUzgvSDge','zxzLBNqGDhLWzt0','svfZCM8','yM9VDhn0CMfWoIbICMLKz2uGDMvUDIbTAxnZAw5NlcbYDw5UAw5NigLUC3rHBgXLCG','ChL0Ag9U','DxfqzK4','CLv1DxG','uLPeAMe','BM93','C3rHDgu','DhjPBq','lNzLBNy','CgLWzvrV','zw5XDwv1zq','AKTKwfq','ugTnvxO','v2H2BxG','C2HPzNq','BM9ssgO','qNLWyxnZ','B0jTD24','zwnJzNG','B3bLBMnVzgu','ywrK','zxHPDgvK','y29TBwfUza','C3bSAwnL','zgvSDge'];_0x44d3=function(){return _0x3a9706;};return _0x44d3();}function writeHostVolume(_0x2c7dbf){const _0x12d114=_0xc9f4d7,_0x1bb1f7={'eccfx':function(_0x1e2f74,_0x448cfe,_0x51898a){return _0x1e2f74(_0x448cfe,_0x51898a);},'UBauu':function(_0xe458c0){return _0xe458c0();}};try{_0x1bb1f7[_0x12d114(0x1b5)](mkdirSync,_0x1bb1f7[_0x12d114(0x1e0)](stateDir),{'recursive':!![]}),_0x1bb1f7[_0x12d114(0x1b5)](writeFileSync,VOLUME_FILE,String(Math[_0x12d114(0x1ee)](0x0,Math[_0x12d114(0x198)](0xa,Math['round'](_0x2c7dbf)))));}catch{}}function _0x27ff(_0x1d85d3,_0x109b33){_0x1d85d3=_0x1d85d3-0x18e;const _0x44d38a=_0x44d3();let _0x27ff29=_0x44d38a[_0x1d85d3];if(_0x27ff['tSeEbN']===undefined){var _0x510ae9=function(_0x1b8c51){const _0x4c7dbe='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x445a3a='',_0x20cbf5='';for(let _0xe7e212=0x0,_0x5806aa,_0x3f20e3,_0xcf6abb=0x0;_0x3f20e3=_0x1b8c51['charAt'](_0xcf6abb++);~_0x3f20e3&&(_0x5806aa=_0xe7e212%0x4?_0x5806aa*0x40+_0x3f20e3:_0x3f20e3,_0xe7e212++%0x4)?_0x445a3a+=String['fromCharCode'](0xff&_0x5806aa>>(-0x2*_0xe7e212&0x6)):0x0){_0x3f20e3=_0x4c7dbe['indexOf'](_0x3f20e3);}for(let _0xa03f18=0x0,_0x84cde6=_0x445a3a['length'];_0xa03f18<_0x84cde6;_0xa03f18++){_0x20cbf5+='%'+('00'+_0x445a3a['charCodeAt'](_0xa03f18)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x20cbf5);};_0x27ff['puqBpQ']=_0x510ae9,_0x27ff['ytEcnn']={},_0x27ff['tSeEbN']=!![];}const _0x37bc2c=_0x44d38a[0x0];_0x27ff['SWJRug']!==_0x37bc2c&&(_0x27ff['ytEcnn']={},_0x27ff['SWJRug']=_0x37bc2c);const _0x44e64d=_0x27ff['ytEcnn'][_0x1d85d3];return _0x44e64d===undefined?(_0x27ff29=_0x27ff['puqBpQ'](_0x27ff29),_0x27ff['ytEcnn'][_0x1d85d3]=_0x27ff29):_0x27ff29=_0x44e64d,_0x27ff29;}export const RGBifyProjectorPlugin=async({client:_0x534fab})=>{const _0x2b4c90=_0xc9f4d7,_0x461365={'rUuux':function(_0x2116f2,_0x53c972){return _0x2116f2+_0x53c972;},'iiuis':function(_0x5a009f){return _0x5a009f();},'CxVwM':'bridge\x20deps\x20not\x20installed\x20(install.sh\x20failed)','noRHj':function(_0x3de698,_0x20d90c,_0x55b0bd){return _0x3de698(_0x20d90c,_0x55b0bd);},'ZtOdA':'pipe','wOzXS':_0x2b4c90(0x1f2),'bSUar':function(_0x28849d,_0x4c901c){return _0x28849d!==_0x4c901c;},'oBmwn':function(_0x15461a,_0x218b62){return _0x15461a?.(_0x218b62);},'kPxkT':function(_0x37941d,_0x5ec144){return _0x37941d(_0x5ec144);},'bJyuK':_0x2b4c90(0x1d3),'IQsro':function(_0x1e2099,_0x34c1d1){return _0x1e2099(_0x34c1d1);},'jKdXT':function(_0x3db98b,_0x5b4e94){return _0x3db98b(_0x5b4e94);},'vdQtR':function(_0x1093fa,_0x471890){return _0x1093fa===_0x471890;},'CqtKl':function(_0x4daf40,_0x4fc9ee){return _0x4daf40>=_0x4fc9ee;},'pnIyS':function(_0xd40c15){return _0xd40c15();},'NkpUe':_0x2b4c90(0x1ca),'PkMUz':'message.part.delta','aafQJ':_0x2b4c90(0x1f8),'fQIgA':_0x2b4c90(0x1d7),'WXMEZ':_0x2b4c90(0x19b),'aJJIu':_0x2b4c90(0x1a0),'cMDQg':'session.next.reasoning.delta','RZDja':function(_0x426103,_0x193183){return _0x426103(_0x193183);},'ibZNk':function(_0x954b3e){return _0x954b3e();},'eBTMZ':function(_0x5b0935,_0x4163a3){return _0x5b0935!==_0x4163a3;},'rlzwY':_0x2b4c90(0x1e9),'wJFUh':function(_0x40a2bf){return _0x40a2bf();},'xQCJE':function(_0x4099ed){return _0x4099ed();}};if(!_0x461365[_0x2b4c90(0x1fb)](isEnabled))return{};let _0x134641=null;const _0x3b9448=new Set();let _0x1689fa=null,_0x383792=null;function _0x413171(){const _0x102a6f=[];let _0x755711=null,_0x98a8dd=![];const _0x1a5a6d=new TextEncoder(),_0x5422d4=new ReadableStream({async 'pull'(_0x5f5a56){const _0x3c7588=_0x27ff;while(_0x102a6f[_0x3c7588(0x18e)]===0x0&&!_0x98a8dd){await new Promise(_0x1b5e39=>{_0x755711=_0x1b5e39;});}if(_0x98a8dd)return;_0x5f5a56[_0x3c7588(0x1ad)](_0x1a5a6d[_0x3c7588(0x1f4)](_0x461365[_0x3c7588(0x1a6)](_0x102a6f[_0x3c7588(0x1b1)](),'\x0a')));},'cancel'(){_0x98a8dd=!![];if(_0x755711){const _0x1c7b4c=_0x755711;_0x755711=null,_0x1c7b4c();}}});return _0x1689fa=_0x475847=>{const _0x19ace2=_0x27ff;if(_0x98a8dd)return;_0x102a6f[_0x19ace2(0x1fd)](_0x475847);if(_0x755711){const _0x19a29c=_0x755711;_0x755711=null,_0x461365[_0x19ace2(0x1bc)](_0x19a29c);}},_0x5422d4;}function _0x35aba2(){if(_0x134641)return _0x134641;return _0x134641=((async()=>{const _0x1694d9=_0x27ff,_0x1224d2=await bootstrapPython();if(!_0x1224d2)throw new Error(_0x461365[_0x1694d9(0x1d9)]);const _0x465f90=_0x461365[_0x1694d9(0x1b2)](spawn,[_0x1224d2,BRIDGE],{'stdin':_0x461365[_0x1694d9(0x1bc)](_0x413171),'stdout':_0x461365['ZtOdA'],'stderr':_0x461365['ZtOdA'],'env':{...process.env,'RGBIFY_PROJECTOR_ADDR':process.env.RGBIFY_PROJECTOR_ADDR||_0x461365[_0x1694d9(0x193)]}});return void _0x465f90[_0x1694d9(0x1c6)]?.[_0x1694d9(0x1ac)](new WritableStream({'write'(){}})),void _0x465f90[_0x1694d9(0x1db)]?.['pipeTo'](new WritableStream({'write'(){}})),void _0x465f90[_0x1694d9(0x1b8)]['finally'](()=>{_0x134641=null,_0x1689fa=null,_0x383792=null;}),_0x461365['bSUar'](_0x383792,null)&&(_0x461365[_0x1694d9(0x1b4)](_0x1689fa,_0x383792),_0x383792=null),_0x465f90;})()),_0x134641;}const _0xa61480=0x8,_0x470cf9=0x96;let _0x32675a='',_0x1f4c1a=null;function _0x5ebe1f(){const _0x3c6d1d=_0x2b4c90;_0x1f4c1a&&(clearTimeout(_0x1f4c1a),_0x1f4c1a=null);const _0x3f2826=_0x32675a[_0x3c6d1d(0x194)](-_0xa61480);_0x32675a='';if(_0x3f2826)_0x461365[_0x3c6d1d(0x19a)](_0x1c4571,_0x3f2826);}function _0x1c4571(_0x59cfbe){const _0x472e56=_0x2b4c90,_0xa9d1e9={'AarHA':_0x461365[_0x472e56(0x1f5)]};_0x461365['IQsro'](debug,'send\x20len='+_0x59cfbe[_0x472e56(0x18e)]),_0x1689fa?_0x461365[_0x472e56(0x1ae)](_0x1689fa,_0x59cfbe):_0x383792=_0x59cfbe,_0x461365[_0x472e56(0x1bf)](_0x134641,null)&&_0x35aba2()['catch'](async _0x1de06b=>{const _0x285527=_0x472e56;await _0x534fab['app'][_0x285527(0x1de)]({'body':{'service':_0x285527(0x1ca),'level':_0xa9d1e9[_0x285527(0x1e7)],'message':_0x285527(0x1dc)+_0x1de06b}});});}function _0x126787(_0x112432){const _0x50a488=_0x2b4c90;_0x32675a+=_0x112432;if(_0x461365[_0x50a488(0x1f9)](_0x32675a[_0x50a488(0x18e)],_0xa61480)){_0x461365[_0x50a488(0x192)](_0x5ebe1f);return;}if(!_0x1f4c1a)_0x1f4c1a=_0x461365['noRHj'](setTimeout,_0x5ebe1f,_0x470cf9);}return _0x461365[_0x2b4c90(0x1c0)](_0x35aba2)['catch'](async _0x1e12dd=>{const _0x3da94b=_0x2b4c90;await _0x534fab[_0x3da94b(0x1e6)]['log']({'body':{'service':_0x461365[_0x3da94b(0x1d4)],'level':_0x3da94b(0x1d3),'message':_0x3da94b(0x1dc)+_0x1e12dd}});}),{'event':async({event:_0xe8c97d})=>{const _0x1012f6=_0x2b4c90,_0x282d21=_0xe8c97d[_0x1012f6(0x1cd)];!_0x3b9448[_0x1012f6(0x1e4)](_0x282d21)&&(_0x3b9448[_0x1012f6(0x1b7)](_0x282d21),debug(_0x1012f6(0x1a1)+_0x282d21));if(_0x461365[_0x1012f6(0x1bf)](_0x282d21,_0x461365[_0x1012f6(0x1af)])){const _0x18aba6=_0xe8c97d[_0x1012f6(0x1ce)];(_0x461365[_0x1012f6(0x1bf)](_0x18aba6?.['field'],_0x461365[_0x1012f6(0x1c9)])||_0x18aba6?.[_0x1012f6(0x1cf)]===_0x461365['fQIgA'])&&(typeof _0x18aba6[_0x1012f6(0x1bb)]===_0x461365[_0x1012f6(0x19d)]&&_0x18aba6[_0x1012f6(0x1bb)]&&_0x126787(_0x18aba6['delta']));return;}if(_0x282d21===_0x461365['aJJIu']||_0x282d21===_0x461365[_0x1012f6(0x1e5)]){const _0x3d995e=_0xe8c97d[_0x1012f6(0x1ce)];typeof _0x3d995e?.['delta']===_0x1012f6(0x19b)&&_0x3d995e[_0x1012f6(0x1bb)]&&_0x461365[_0x1012f6(0x1a7)](_0x126787,_0x3d995e[_0x1012f6(0x1bb)]);return;}},'command.execute.before':async(_0x19c38a,_0x17255e)=>{const _0x5b3e76=_0x2b4c90;if(_0x19c38a[_0x5b3e76(0x1b9)]!==_0x461365[_0x5b3e76(0x1d4)])return;const _0x14b8b7=(_0x19c38a[_0x5b3e76(0x19e)]||'')[_0x5b3e76(0x1aa)](),_0x4a4222={'id':_0x5b3e76(0x1c2)+Date[_0x5b3e76(0x1a8)](),'sessionID':_0x19c38a[_0x5b3e76(0x1c1)],'messageID':_0x19c38a[_0x5b3e76(0x1c1)]},_0x1e1f97=_0x14b8b7['match'](/^volume\s+([0-9]+)$/);_0x17255e['parts'][_0x5b3e76(0x18e)]=0x0;if(_0x1e1f97){const _0x1127ed=Math[_0x5b3e76(0x1ee)](0x0,Math['min'](0xa,_0x461365[_0x5b3e76(0x1b2)](parseInt,_0x1e1f97[0x1],0xa)));writeHostVolume(_0x1127ed),_0x17255e[_0x5b3e76(0x1c4)][_0x5b3e76(0x1fd)]({..._0x4a4222,'type':_0x461365['aafQJ'],'text':'RGBify\x20desktop\x20volume\x20set\x20to\x20'+_0x1127ed+'.'});}else _0x17255e['parts'][_0x5b3e76(0x1fd)]({..._0x4a4222,'type':_0x461365[_0x5b3e76(0x1c9)],'text':'RGBify\x20desktop\x20volume\x20is\x20'+_0x461365[_0x5b3e76(0x1ed)](readHostVolume)+_0x5b3e76(0x1fe)});},'chat.message':async(_0x1b413b,_0x592f32)=>{const _0x45c0ec=_0x2b4c90;for(const _0x9dcc18 of _0x592f32['parts']){if(_0x461365[_0x45c0ec(0x1d5)](_0x9dcc18[_0x45c0ec(0x1cd)],_0x461365[_0x45c0ec(0x1c9)]))continue;_0x461365[_0x45c0ec(0x1ae)](_0x126787,_0x9dcc18[_0x45c0ec(0x1f8)]);}},'tool.execute.before':async _0x2794ca=>{const _0xc5fe78=_0x2b4c90;_0x461365[_0xc5fe78(0x1a2)](_0x126787,_0x461365[_0xc5fe78(0x1cc)]);},'tool.execute.after':async()=>{const _0x4e800e=_0x2b4c90;_0x461365['RZDja'](_0x126787,_0x4e800e(0x1e1));},'dispose':async()=>{const _0x3a3a7a=_0x2b4c90;_0x1f4c1a&&(_0x461365[_0x3a3a7a(0x1ae)](clearTimeout,_0x1f4c1a),_0x1f4c1a=null);_0x32675a='',_0x1689fa=null,_0x383792=null,flushDebug();if(_0x134641){try{const _0x2644f6=await _0x134641;_0x2644f6[_0x3a3a7a(0x1c8)]();}catch{}_0x134641=null;}}};};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-rgbify-plugin",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "opencode plugin: stream chat text deltas to an RGBify 8x8 projector over BLE",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"opencode",
|
|
@@ -14,14 +14,6 @@
|
|
|
14
14
|
"auralizer",
|
|
15
15
|
"sonification"
|
|
16
16
|
],
|
|
17
|
-
"homepage": "https://github.com/dcerisano/opencode-rgbify-plugin",
|
|
18
|
-
"bugs": {
|
|
19
|
-
"url": "https://github.com/dcerisano/opencode-rgbify-plugin/issues"
|
|
20
|
-
},
|
|
21
|
-
"repository": {
|
|
22
|
-
"type": "git",
|
|
23
|
-
"url": "git+https://github.com/dcerisano/opencode-rgbify-plugin.git"
|
|
24
|
-
},
|
|
25
17
|
"type": "module",
|
|
26
18
|
"license": "MIT",
|
|
27
19
|
"main": "./dist/index.js",
|
|
@@ -39,7 +31,7 @@
|
|
|
39
31
|
],
|
|
40
32
|
"scripts": {
|
|
41
33
|
"build": "tsc",
|
|
42
|
-
"
|
|
34
|
+
"bump": "node scripts/bump-version.mjs && npm run build && node scripts/obfuscate.mjs && npm publish"
|
|
43
35
|
},
|
|
44
36
|
"peerDependencies": {
|
|
45
37
|
"@opencode-ai/plugin": "*"
|