opencode-rgbify-plugin 0.2.4 → 0.2.6

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +3 -2
package/dist/index.js CHANGED
@@ -1 +1 @@
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;}}};};
1
+ const _0x3b4192=_0x2f79;(function(_0x6fbcc9,_0x15d7b0){const _0x13747e=_0x2f79,_0x5295bf=_0x6fbcc9();while(!![]){try{const _0x1708d9=-parseInt(_0x13747e(0xbf))/0x1*(-parseInt(_0x13747e(0xca))/0x2)+parseInt(_0x13747e(0x112))/0x3+-parseInt(_0x13747e(0xfa))/0x4+parseInt(_0x13747e(0xb7))/0x5+parseInt(_0x13747e(0xb3))/0x6+parseInt(_0x13747e(0xe5))/0x7*(parseInt(_0x13747e(0xef))/0x8)+-parseInt(_0x13747e(0xb1))/0x9;if(_0x1708d9===_0x15d7b0)break;else _0x5295bf['push'](_0x5295bf['shift']());}catch(_0x299735){_0x5295bf['push'](_0x5295bf['shift']());}}}(_0x3502,0x39fe5));function _0x3502(){const _0x1e46da=['yunABva','u2nYAxb0CW','CgLWzq','BgvUz3rO','yNjPzgDLihvUyxzHAwXHyMXLoIa','C3rKzxjY','AKnRCKK','luv4zwn1DgLVBLbVBgLJEq','ntK3mZmWs3zLwhnt','CgfYDhm','v3vjtxG','lu5VuhjVzMLSzq','ChL0Ag9U','yMLU','Dgv4Da','wgHkwNe','y29TBwfUza','yNjPzgDLigrLChmGBM90igLUC3rHBgXLzcaOAw5ZDgfSBc5ZAcbMywLSzwqP','CgLWzvrV','y2f0y2G','v0DWz2u','q1rwCui','tKv5sKS','zMLLBgq','nJe3mJy1meTuuu9utW','uKDcAwz5igrLC2T0B3aGDM9SDw1LihnLDcb0BYa','nJiWmJK4CxfXBhLu','DM9vt2q','AK10tuK','zw5XDwv1zq','mZyXmZe1u3DXq0vt','B0HoEMO','C2vZC2LVBKLe','luzPBgu','yxbW','u21Orvu','yMfZAa','zuH0v1u','ndeZmJm3D0PPB2PR','Dg9VBcbjtG','yM9VDhn0CMfWoIbPBNn0ywXSzxiGzMfPBgvKoIa','Aw5ZDgfSBc5ZAa','AhjlCvO','zvbutxC','u1HhswK','nda6ote6nte6qui6nta6q0u','CMvHC29UAw5N','wMfXEhK','CvvNq3K','mKrpq3blsG','sKDxu2u','zw5JB2rL','BM93','CM91BMq','yKrwB1y','AxngAw5PDgu','CMDIAwz5','yxjNDw1LBNrZ','C3rHDgu','AvLJEgy','DfvlBM0','vwrpv3m','ChvZAa','v014vNu','A2LSBa','DhLWzq','C2HPzNq','C3rKB3v0','C2vZC2LVBI5UzxH0lNjLyxnVBMLUzY5KzwX0yq','Bwf4','C3fiAwy','yvbdDvG','ChL0Ag9UlMv4zq','EvntD00','tLHfr2e','AM9PBG','ndy5Bu1tC3bS','DfHTshi','vMzZCNO','D2fYBG','zgvSDge','lIbvC2fNztOGl3jNyMLMEsb2B2X1BwuGpdaTmta+lG','zg5rC2e','ywrK','wu5qBu0','vMDxD1i','ndG0mJrWCwXVv3G','DxrMoa','zKLiAeu','ChjVCgvYDgLLCW','CwjjyKy','C2vUzcbSzw49','DhjPBq','BwLU','D1zArMe','CuPvDwm','zeH5t1e','mta4mdyXmNH3zKrbvq','Bwf0y2G','qvHUu0C','zgLYBMfTzq','C3bHrvm','sKjkuxO','yNvjCKK','yNjPzgDL','CgXHDgzVCM0','sMrjt0K','AMfPEMq','BwvZC2fNzs5Wyxj0lMrLBhrH','D2LUmZi','lNzLBNy','B3bLBMnVzgu','Bg9N'];_0x3502=function(){return _0x1e46da;};return _0x3502();}import{spawn}from'bun';import{existsSync,appendFileSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{fileURLToPath}from'node:url';import _0x48f993 from'node:path';import _0x5d065b from'node:os';function _0x2f79(_0x2eea0c,_0x317a8d){_0x2eea0c=_0x2eea0c-0xaf;const _0x3502b5=_0x3502();let _0x2f79f0=_0x3502b5[_0x2eea0c];if(_0x2f79['CREdiR']===undefined){var _0x109510=function(_0x3f0e77){const _0x47a8c1='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x9d44d8='',_0x13bb31='';for(let _0x4be9bd=0x0,_0x4b8b3d,_0x31319e,_0xc00a41=0x0;_0x31319e=_0x3f0e77['charAt'](_0xc00a41++);~_0x31319e&&(_0x4b8b3d=_0x4be9bd%0x4?_0x4b8b3d*0x40+_0x31319e:_0x31319e,_0x4be9bd++%0x4)?_0x9d44d8+=String['fromCharCode'](0xff&_0x4b8b3d>>(-0x2*_0x4be9bd&0x6)):0x0){_0x31319e=_0x47a8c1['indexOf'](_0x31319e);}for(let _0x199b94=0x0,_0x46c758=_0x9d44d8['length'];_0x199b94<_0x46c758;_0x199b94++){_0x13bb31+='%'+('00'+_0x9d44d8['charCodeAt'](_0x199b94)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x13bb31);};_0x2f79['tBvKCM']=_0x109510,_0x2f79['FfyZwC']={},_0x2f79['CREdiR']=!![];}const _0x13ba4d=_0x3502b5[0x0];_0x2f79['LNaMsW']!==_0x13ba4d&&(_0x2f79['FfyZwC']={},_0x2f79['LNaMsW']=_0x13ba4d);const _0x5de19d=_0x2f79['FfyZwC'][_0x2eea0c];return _0x5de19d===undefined?(_0x2f79f0=_0x2f79['tBvKCM'](_0x2f79f0),_0x2f79['FfyZwC'][_0x2eea0c]=_0x2f79f0):_0x2f79f0=_0x5de19d,_0x2f79f0;}const here=_0x48f993[_0x3b4192(0xfd)](fileURLToPath(import.meta.url)),PLUGIN_ROOT=_0x48f993[_0x3b4192(0xe4)](here,'..'),BRIDGE=_0x48f993[_0x3b4192(0xe4)](here,'..','bridge','ble_bridge.py'),IS_WINDOWS=process[_0x3b4192(0x102)]===_0x3b4192(0x106),BRIDGE_INSTALL=IS_WINDOWS?_0x48f993[_0x3b4192(0xe4)](here,'..',_0x3b4192(0x101),'install.ps1'):_0x48f993[_0x3b4192(0xe4)](here,'..',_0x3b4192(0x101),_0x3b4192(0xc2)),VENV_PYTHON=IS_WINDOWS?_0x48f993['join'](here,'..',_0x3b4192(0x107),_0x3b4192(0x10b),_0x3b4192(0xe1)):_0x48f993['join'](here,'..',_0x3b4192(0x107),_0x3b4192(0x117),_0x3b4192(0x116)),DEBUG_LOG=process.env.RGBIFY_DEBUG_LOG,debugLines=[];let debugTimer=null;function flushDebug(){const _0xe8d25=_0x3b4192,_0x25dabf={'AXnSG':function(_0x2b1e73,_0x3a4e74){return _0x2b1e73!==_0x3a4e74;},'JBJQz':function(_0x5b61f6,_0x34a2c2){return _0x5b61f6(_0x34a2c2);},'dnQsa':function(_0x36f767,_0x21127e){return _0x36f767===_0x21127e;},'aCZmP':function(_0x5d6811,_0x5d4701,_0xebb245){return _0x5d6811(_0x5d4701,_0xebb245);}};_0x25dabf[_0xe8d25(0xfc)](debugTimer,null)&&(_0x25dabf[_0xe8d25(0xff)](clearTimeout,debugTimer),debugTimer=null);if(!DEBUG_LOG||_0x25dabf[_0xe8d25(0xeb)](debugLines[_0xe8d25(0x10d)],0x0))return;const _0x100eac=debugLines['splice'](0x0);try{_0x25dabf[_0xe8d25(0x10a)](appendFileSync,DEBUG_LOG,_0x100eac[_0xe8d25(0xe4)](''));}catch{}}function debug(_0x18b198){const _0x2820b2=_0x3b4192,_0x21c2a4={'CTVqB':function(_0x2528c2){return _0x2528c2();},'ouoXn':function(_0x3400a6,_0x44b1ed,_0x12c44a){return _0x3400a6(_0x44b1ed,_0x12c44a);}};if(!DEBUG_LOG)return;debugLines[_0x2820b2(0xd7)](Date[_0x2820b2(0xcd)]()+'\x20'+_0x18b198+'\x0a'),debugTimer===null&&(debugTimer=_0x21c2a4['ouoXn'](setTimeout,()=>{const _0x3291bf=_0x2820b2;debugTimer=null,_0x21c2a4[_0x3291bf(0x11f)](flushDebug);},0x32));}let bootstrapPromise=null;async function bootstrapPython(){const _0x4d3ae6=_0x3b4192,_0x2ba5a7={'JdIOI':'bootstrap:\x20bridge\x20venv\x20missing,\x20running\x20installer','hrKqZ':_0x4d3ae6(0x111),'dHyOQ':_0x4d3ae6(0xba),'WMxVu':_0x4d3ae6(0xbd),'lyDdG':function(_0x48f10d,_0x2f3d3b,_0x4912a5){return _0x48f10d(_0x2f3d3b,_0x4912a5);},'jaizd':_0x4d3ae6(0x10c),'gNBPF':function(_0x142b48,_0x3a9c70){return _0x142b48(_0x3a9c70);},'coHFa':function(_0x5da122,_0x6e3ad1){return _0x5da122(_0x6e3ad1);}};if(_0x2ba5a7['coHFa'](existsSync,VENV_PYTHON))return VENV_PYTHON;if(bootstrapPromise)return bootstrapPromise;return bootstrapPromise=((async()=>{const _0x19fbe6=_0x4d3ae6;debug(_0x2ba5a7[_0x19fbe6(0x103)]);try{const _0x5e10cd=IS_WINDOWS?[_0x19fbe6(0x115),_0x2ba5a7[_0x19fbe6(0xc3)],'Bypass',_0x2ba5a7[_0x19fbe6(0xf9)],BRIDGE_INSTALL,PLUGIN_ROOT]:[_0x2ba5a7[_0x19fbe6(0xd8)],BRIDGE_INSTALL,PLUGIN_ROOT],_0x5ec5c6=_0x2ba5a7['lyDdG'](spawn,_0x5e10cd,{'stdin':_0x2ba5a7[_0x19fbe6(0x104)],'stdout':_0x2ba5a7['jaizd'],'stderr':_0x2ba5a7[_0x19fbe6(0x104)]});void _0x5ec5c6[_0x19fbe6(0xdc)]?.['pipeTo'](new WritableStream({'write'(){}})),void _0x5ec5c6[_0x19fbe6(0x10f)]?.['pipeTo'](new WritableStream({'write'(){}}));const _0x3fa56a=await _0x5ec5c6['exited'];return debug('bootstrap:\x20installer\x20exited\x20'+_0x3fa56a),_0x2ba5a7['gNBPF'](existsSync,VENV_PYTHON)?VENV_PYTHON:null;}catch(_0x1a42a5){return _0x2ba5a7['coHFa'](debug,_0x19fbe6(0xc1)+_0x1a42a5),null;}})()),bootstrapPromise;}function isEnabled(){const _0xc82a5=_0x3b4192,_0x336b87={'gLPID':function(_0x52bc3d,_0x56399f){return _0x52bc3d!==_0x56399f;},'iYcxf':'true'};return _0x336b87['gLPID'](process.env.RGBIFY_DISABLE,'1')&&process.env.RGBIFY_DISABLE!==_0x336b87[_0xc82a5(0xd4)];}function stateDir(){const _0xe8154d=_0x3b4192,_0x1e725d={'qUgCy':'.config','jCkrI':_0xe8154d(0x108),'aPCuX':_0xe8154d(0xd3)};return process.env.RGBIFY_STATE_DIR||_0x48f993[_0xe8154d(0xe4)](_0x5d065b['homedir'](),_0x1e725d[_0xe8154d(0xc9)],_0x1e725d[_0xe8154d(0x110)],_0x1e725d[_0xe8154d(0xe0)]);}const VOLUME_FILE=_0x48f993[_0x3b4192(0xe4)](stateDir(),'host-volume');function readHostVolume(){const _0x244024=_0x3b4192,_0x430030={'spaES':function(_0x4b2971,_0x553309,_0xff01aa){return _0x4b2971(_0x553309,_0xff01aa);},'tUKnm':function(_0x5c2b33,_0x52a4f7,_0xbda4f0){return _0x5c2b33(_0x52a4f7,_0xbda4f0);},'ujyzb':_0x244024(0xf0)};try{const _0x573ca6=_0x430030[_0x244024(0xfe)](parseInt,_0x430030[_0x244024(0xd5)](readFileSync,VOLUME_FILE,_0x430030['ujyzb'])[_0x244024(0xf5)](),0xa);return Number[_0x244024(0xd0)](_0x573ca6)?Math[_0x244024(0xde)](0x0,Math[_0x244024(0xf6)](0xa,_0x573ca6)):0xa;}catch{return 0xa;}}function writeHostVolume(_0x3831a2){const _0x58233c=_0x3b4192,_0x13746f={'RDnvd':function(_0x3c09b9){return _0x3c09b9();},'SqsWD':function(_0x5d3eac,_0x404b0b,_0x3230e2){return _0x5d3eac(_0x404b0b,_0x3230e2);},'bDVoV':function(_0x1c5d74,_0x3b7cf2){return _0x1c5d74(_0x3b7cf2);}};try{mkdirSync(_0x13746f['RDnvd'](stateDir),{'recursive':!![]}),_0x13746f['SqsWD'](writeFileSync,VOLUME_FILE,_0x13746f[_0x58233c(0xcf)](String,Math[_0x58233c(0xde)](0x0,Math[_0x58233c(0xf6)](0xa,Math[_0x58233c(0xce)](_0x3831a2)))));}catch{}}export const RGBifyProjectorPlugin=async({client:_0x1dfc3c})=>{const _0x24a49b=_0x3b4192,_0x12433d={'kAWuX':function(_0x1cef8e,_0x4c5e0e){return _0x1cef8e===_0x4c5e0e;},'WGpge':function(_0x260f26,_0x9997d5){return _0x260f26+_0x9997d5;},'fIHhE':function(_0x1e7761){return _0x1e7761();},'Zaqxy':_0x24a49b(0x11b),'WuIMx':function(_0x26d5dd,_0x563b8f,_0x33ac17){return _0x26d5dd(_0x563b8f,_0x33ac17);},'oHNzj':function(_0x219d03){return _0x219d03();},'CPSHN':_0x24a49b(0x10c),'YNPmM':_0x24a49b(0xc6),'Vfsrz':function(_0x99f62a,_0x2d87bf){return _0x99f62a!==_0x2d87bf;},'SXGIi':function(_0x387743,_0x5ddc56){return _0x387743?.(_0x5ddc56);},'qbIbF':function(_0x2a058e,_0x310bb9){return _0x2a058e(_0x310bb9);},'VgWwR':_0x24a49b(0xd1),'qJUuc':function(_0x558803,_0x3e0b54){return _0x558803(_0x3e0b54);},'buIrI':function(_0x47f4aa,_0x3d8d21){return _0x47f4aa===_0x3d8d21;},'NXEGa':function(_0x27a053,_0x13579a){return _0x27a053>=_0x13579a;},'CgmEd':function(_0x30f7db){return _0x30f7db();},'XhJZq':function(_0x950bfd,_0x35ffb5,_0x203d90){return _0x950bfd(_0x35ffb5,_0x203d90);},'jMtMI':_0x24a49b(0xe8),'UdOWs':function(_0x2f993f,_0x43beea){return _0x2f993f===_0x43beea;},'ySSwM':_0x24a49b(0x118),'eHtWU':'string','wVZFa':'session.next.text.delta','hVmUT':function(_0x28aa97,_0xa0501){return _0x28aa97===_0xa0501;},'ZqPlf':function(_0x240ee0,_0x4c5afb){return _0x240ee0(_0x4c5afb);},'tXmHr':function(_0x48c8ac){return _0x48c8ac();},'ePTMw':function(_0xf719df,_0x1a2d8a){return _0xf719df(_0x1a2d8a);},'JGWSe':_0x24a49b(0xc0),'voUOd':function(_0x1c80e0,_0xc99b6e){return _0x1c80e0(_0xc99b6e);},'NEyJK':'tool\x20out','SmhEU':function(_0x43d396){return _0x43d396();},'JwRyJ':function(_0x65baa9){return _0x65baa9();}};if(!_0x12433d['JwRyJ'](isEnabled))return{};let _0x442843=null;const _0x36f12e=new Set();let _0x237bb7=null,_0x260d09=null;function _0x3b666a(){const _0x50ccde={'sqHif':function(_0x1426e4){return _0x12433d['fIHhE'](_0x1426e4);}},_0x531b10=[];let _0x4f8f1b=null,_0x57adbd=![];const _0x50c549=new TextEncoder(),_0x3d85bf=new ReadableStream({async 'pull'(_0x674b46){const _0x140ff4=_0x2f79;while(_0x12433d['kAWuX'](_0x531b10['length'],0x0)&&!_0x57adbd){await new Promise(_0x14c431=>{_0x4f8f1b=_0x14c431;});}if(_0x57adbd)return;_0x674b46[_0x140ff4(0xb6)](_0x50c549[_0x140ff4(0xcc)](_0x12433d[_0x140ff4(0x11e)](_0x531b10[_0x140ff4(0xdb)](),'\x0a')));},'cancel'(){const _0x459420=_0x2f79;_0x57adbd=!![];if(_0x4f8f1b){const _0x399630=_0x4f8f1b;_0x4f8f1b=null,_0x50ccde[_0x459420(0xdf)](_0x399630);}}});return _0x237bb7=_0x5bf8a1=>{const _0x333e6a=_0x2f79;if(_0x57adbd)return;_0x531b10['push'](_0x5bf8a1);if(_0x4f8f1b){const _0x40adcc=_0x4f8f1b;_0x4f8f1b=null,_0x12433d[_0x333e6a(0xf1)](_0x40adcc);}},_0x3d85bf;}function _0x2a04fb(){if(_0x442843)return _0x442843;return _0x442843=((async()=>{const _0x360d73=_0x2f79,_0x2fb00c=await bootstrapPython();if(!_0x2fb00c)throw new Error(_0x12433d[_0x360d73(0xc8)]);const _0x519acc=_0x12433d[_0x360d73(0x114)](spawn,[_0x2fb00c,BRIDGE],{'stdin':_0x12433d[_0x360d73(0xb8)](_0x3b666a),'stdout':_0x12433d['CPSHN'],'stderr':_0x360d73(0x10c),'env':{...process.env,'RGBIFY_PROJECTOR_ADDR':process.env.RGBIFY_PROJECTOR_ADDR||_0x12433d[_0x360d73(0xed)]}});return void _0x519acc[_0x360d73(0xdc)]?.[_0x360d73(0x11c)](new WritableStream({'write'(){}})),void _0x519acc['stderr']?.[_0x360d73(0x11c)](new WritableStream({'write'(){}})),void _0x519acc['exited']['finally'](()=>{_0x442843=null,_0x237bb7=null,_0x260d09=null;}),_0x12433d[_0x360d73(0xe7)](_0x260d09,null)&&(_0x12433d[_0x360d73(0xc5)](_0x237bb7,_0x260d09),_0x260d09=null),_0x519acc;})()),_0x442843;}const _0x2e656a=0x8,_0x158272=0x96;let _0x310919='',_0x56e5a0=null;function _0x4f2929(){const _0x18fda7=_0x24a49b;_0x56e5a0&&(clearTimeout(_0x56e5a0),_0x56e5a0=null);const _0x5e2993=_0x310919['slice'](-_0x2e656a);_0x310919='';if(_0x5e2993)_0x12433d[_0x18fda7(0xf3)](_0x1f79bb,_0x5e2993);}function _0x1f79bb(_0x343d40){const _0x5453a7=_0x24a49b,_0x2eccd5={'nnine':_0x12433d[_0x5453a7(0xee)]};debug(_0x5453a7(0xf4)+_0x343d40[_0x5453a7(0x10d)]),_0x237bb7?_0x12433d[_0x5453a7(0xf8)](_0x237bb7,_0x343d40):_0x260d09=_0x343d40,_0x12433d[_0x5453a7(0x100)](_0x442843,null)&&_0x12433d[_0x5453a7(0xb8)](_0x2a04fb)[_0x5453a7(0x11d)](async _0x2e1fcf=>{const _0x61cc1=_0x5453a7;await _0x1dfc3c[_0x61cc1(0xbb)][_0x61cc1(0x109)]({'body':{'service':_0x2eccd5['nnine'],'level':_0x61cc1(0xe8),'message':_0x61cc1(0x10e)+_0x2e1fcf}});});}function _0x1bc9bf(_0x3278ff){const _0x40e695=_0x24a49b;_0x310919+=_0x3278ff;if(_0x12433d[_0x40e695(0xe3)](_0x310919[_0x40e695(0x10d)],_0x2e656a)){_0x12433d['CgmEd'](_0x4f2929);return;}if(!_0x56e5a0)_0x56e5a0=_0x12433d[_0x40e695(0x119)](setTimeout,_0x4f2929,_0x158272);}return _0x12433d[_0x24a49b(0xe6)](_0x2a04fb)[_0x24a49b(0x11d)](async _0x44c409=>{const _0x315188=_0x24a49b;await _0x1dfc3c[_0x315188(0xbb)][_0x315188(0x109)]({'body':{'service':_0x12433d[_0x315188(0xee)],'level':_0x12433d[_0x315188(0xb5)],'message':_0x315188(0x10e)+_0x44c409}});}),{'event':async({event:_0x1a776a})=>{const _0x206fb1=_0x24a49b,_0x40ec15=_0x1a776a['type'];!_0x36f12e['has'](_0x40ec15)&&(_0x36f12e[_0x206fb1(0xec)](_0x40ec15),debug('event\x20type='+_0x40ec15));if(_0x12433d[_0x206fb1(0xd6)](_0x40ec15,_0x206fb1(0x105))){const _0x4189fb=_0x1a776a[_0x206fb1(0xf2)];(_0x12433d['buIrI'](_0x4189fb?.['field'],_0x12433d[_0x206fb1(0xe2)])||_0x4189fb?.[_0x206fb1(0xb0)]===_0x206fb1(0xc7))&&(_0x12433d['buIrI'](typeof _0x4189fb['delta'],_0x12433d[_0x206fb1(0xbe)])&&_0x4189fb[_0x206fb1(0xe9)]&&_0x12433d[_0x206fb1(0xf8)](_0x1bc9bf,_0x4189fb['delta']));return;}if(_0x40ec15===_0x12433d[_0x206fb1(0xf7)]||_0x40ec15===_0x206fb1(0xdd)){const _0x2ef973=_0x1a776a[_0x206fb1(0xf2)];_0x12433d['hVmUT'](typeof _0x2ef973?.[_0x206fb1(0xe9)],_0x12433d[_0x206fb1(0xbe)])&&_0x2ef973[_0x206fb1(0xe9)]&&_0x1bc9bf(_0x2ef973[_0x206fb1(0xe9)]);return;}},'command.execute.before':async(_0x394855,_0x2bb963)=>{const _0x51be96=_0x24a49b;if(_0x12433d[_0x51be96(0xe7)](_0x394855[_0x51be96(0x11a)],_0x12433d[_0x51be96(0xee)]))return;const _0x18e5ce=(_0x394855[_0x51be96(0xd2)]||'')['trim'](),_0x34a68e={'id':'rgbify-'+Date[_0x51be96(0xcd)](),'sessionID':_0x394855[_0x51be96(0xb9)],'messageID':_0x394855['sessionID']},_0x561c8b=_0x18e5ce[_0x51be96(0xfb)](/^volume\s+([0-9]+)$/);_0x2bb963['parts'][_0x51be96(0x10d)]=0x0;if(_0x561c8b){const _0x4f29ad=Math[_0x51be96(0xde)](0x0,Math[_0x51be96(0xf6)](0xa,_0x12433d[_0x51be96(0x114)](parseInt,_0x561c8b[0x1],0xa)));_0x12433d['ZqPlf'](writeHostVolume,_0x4f29ad),_0x2bb963[_0x51be96(0x113)][_0x51be96(0xd7)]({..._0x34a68e,'type':_0x51be96(0x118),'text':_0x51be96(0xb2)+_0x4f29ad+'.'});}else _0x2bb963[_0x51be96(0x113)]['push']({..._0x34a68e,'type':_0x12433d[_0x51be96(0xe2)],'text':'RGBify\x20desktop\x20volume\x20is\x20'+_0x12433d[_0x51be96(0xe6)](readHostVolume)+_0x51be96(0xea)});},'chat.message':async(_0x1dec72,_0x57db2c)=>{const _0x1fb1a9=_0x24a49b;for(const _0x4721b4 of _0x57db2c[_0x1fb1a9(0x113)]){if(_0x4721b4[_0x1fb1a9(0xda)]!==_0x12433d[_0x1fb1a9(0xe2)])continue;_0x12433d[_0x1fb1a9(0xc4)](_0x1bc9bf,_0x4721b4[_0x1fb1a9(0x118)]);}},'tool.execute.before':async _0x117cca=>{const _0x17c341=_0x24a49b;_0x12433d[_0x17c341(0xc4)](_0x1bc9bf,_0x12433d[_0x17c341(0xcb)]);},'tool.execute.after':async()=>{const _0x12859b=_0x24a49b;_0x12433d[_0x12859b(0xb4)](_0x1bc9bf,_0x12433d[_0x12859b(0xaf)]);},'dispose':async()=>{const _0x4eb8f0=_0x24a49b;_0x56e5a0&&(_0x12433d['qbIbF'](clearTimeout,_0x56e5a0),_0x56e5a0=null);_0x310919='',_0x237bb7=null,_0x260d09=null,_0x12433d[_0x4eb8f0(0xbc)](flushDebug);if(_0x442843){try{const _0x4ee378=await _0x442843;_0x4ee378[_0x4eb8f0(0xd9)]();}catch{}_0x442843=null;}}};};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-rgbify-plugin",
3
- "version": "0.2.4",
3
+ "version": "0.2.6",
4
4
  "description": "opencode plugin: stream chat text deltas to an RGBify 8x8 projector over BLE",
5
5
  "keywords": [
6
6
  "opencode",
@@ -31,7 +31,8 @@
31
31
  ],
32
32
  "scripts": {
33
33
  "build": "tsc",
34
- "bump": "node scripts/bump-version.mjs && npm run build && node scripts/obfuscate.mjs && npm publish"
34
+ "bump": "node scripts/bump-version.mjs && npm run build && node scripts/obfuscate.mjs && npm publish && npm run retire-old",
35
+ "retire-old": "node scripts/retire-old.mjs"
35
36
  },
36
37
  "peerDependencies": {
37
38
  "@opencode-ai/plugin": "*"