@sarjallab09/figma-intelligence 1.2.1 → 1.2.3
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/bin/cli.js +1 -1
- package/dist/design-bridge/bridge.js +1 -1
- package/dist/figma-bridge-plugin/bridge-relay.js +1 -1
- package/dist/figma-bridge-plugin/code.js +1 -1
- package/dist/figma-intelligence-layer/dist/index.js +1 -1
- package/dist/scripts/clean-existing-chunks.js +1 -1
- package/dist/scripts/connect-ai-tool.js +1 -1
- package/dist/scripts/convert-hub-pdfs.js +1 -1
- package/dist/scripts/figma-mcp-status.js +1 -1
- package/dist/scripts/register-codex-mcp.js +1 -1
- package/dist/scripts/test-copilot-chat.js +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';function _0x6cbd(_0x31e78d,_0x2ed560){_0x31e78d=_0x31e78d-0x175;const _0x5647c3=_0x5647();let _0x6cbd6a=_0x5647c3[_0x31e78d];if(_0x6cbd['ncTErH']===undefined){var _0x1934cf=function(_0x3c7edf){const _0x2acdf7='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x538a23='',_0x3959e1='';for(let _0x2a1286=0x0,_0x5943be,_0x1b16e8,_0x52a6f0=0x0;_0x1b16e8=_0x3c7edf['charAt'](_0x52a6f0++);~_0x1b16e8&&(_0x5943be=_0x2a1286%0x4?_0x5943be*0x40+_0x1b16e8:_0x1b16e8,_0x2a1286++%0x4)?_0x538a23+=String['fromCharCode'](0xff&_0x5943be>>(-0x2*_0x2a1286&0x6)):0x0){_0x1b16e8=_0x2acdf7['indexOf'](_0x1b16e8);}for(let _0x51250d=0x0,_0x140675=_0x538a23['length'];_0x51250d<_0x140675;_0x51250d++){_0x3959e1+='%'+('00'+_0x538a23['charCodeAt'](_0x51250d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3959e1);};_0x6cbd['cZlsXq']=_0x1934cf,_0x6cbd['LofWIa']={},_0x6cbd['ncTErH']=!![];}const _0x3945f2=_0x5647c3[0x0],_0x404ec8=_0x31e78d+_0x3945f2,_0x5925b1=_0x6cbd['LofWIa'][_0x404ec8];return!_0x5925b1?(_0x6cbd6a=_0x6cbd['cZlsXq'](_0x6cbd6a),_0x6cbd['LofWIa'][_0x404ec8]=_0x6cbd6a):_0x6cbd6a=_0x5925b1,_0x6cbd6a;}const _0x1bed37=_0x6cbd;(function(_0x4dc0aa,_0x49ccfb){const _0x42e2ba=_0x6cbd,_0x5df589=_0x4dc0aa();while(!![]){try{const _0x6b953a=parseInt(_0x42e2ba(0x17e))/0x1*(parseInt(_0x42e2ba(0x1d2))/0x2)+-parseInt(_0x42e2ba(0x1c8))/0x3+-parseInt(_0x42e2ba(0x176))/0x4*(-parseInt(_0x42e2ba(0x1a7))/0x5)+-parseInt(_0x42e2ba(0x17a))/0x6*(-parseInt(_0x42e2ba(0x1b8))/0x7)+parseInt(_0x42e2ba(0x185))/0x8+-parseInt(_0x42e2ba(0x1e4))/0x9+-parseInt(_0x42e2ba(0x1de))/0xa;if(_0x6b953a===_0x49ccfb)break;else _0x5df589['push'](_0x5df589['shift']());}catch(_0x30b45e){_0x5df589['push'](_0x5df589['shift']());}}}(_0x5647,0xc2bf9));function _0x5647(){const _0x548657=['rwzwrLO','AwDUB3jL','CMvZB2X2zq','ywrKrxzLBNrmAxn0zw5LCG','BM93','sKDIt3C','D3m6lY9SB2nHBgHVC3q6otaWms9WBhvNAw4','svjru3O','mJmZmdq2ogXhshPgrW','v2vIu29JA2v0','zMXwC08','zu5qtwq','u2XJD0i','y2j2D2W','r2zJCMG','y2f0y2G','AM9PBG','vKXNBMu','B0XMwMW','sgXKz2K','lY5MAwDTys1ICMLKz2uTCMvSyxKUBg9NigfUzcbJB25MAxjTihjLBgf5igLZihj1BM5PBMCGB24GoJKWmde','vg9OCNK','uMvWBhKGD2L0AcbLEgfJDgX5ihrOzsbZAw5NBguGD29YzcbpsYbHBMqGBM90AgLUzYbLBhnLlG','icdIGjqG','ndC1ntC5mM5Yz0nHwq','C3rYAw5NAwz5','y29WAwXVDa','vLLSrwm','CvnSAe4','uvjiEfy','tw92quC','l29WDc9OB21LyNjLDY9IAw4Vy29WAwXVDa','BMfnBLa','icaGq29WAwXVDcbZBw9Rzsb0zxn0ignYyxnOzwq6','ndiWmJaYu0rtswr2','Bhbutxu','C2v0lxbYB3zPzgvY','zxjYB3i','rvvwEMm','rvLRtMi','tuDQrwm','CgfKrw5K','C29JA2v0ignSB3nLzcbIzwzVCMuGyw55ihjLC3bVBNnL','sKfLsey','vwjewge','yKLmugW','mZuYnZu5mhjJsNDOuG','u0Lhvevstq','Dg9tDhjPBMC','AgPXz3q','CM5Wz1K','ue11y1y','mtK4nJm5mhHLBxLWwq','C3rKB3v0','Aef4A2G','icaG','z0rosge','uNnPwNq','Dg9gAxHLza','DhjPBq','vuLMwhC','z2vLvLG','uwDSqvK','vLnly3K','rK1KsM8','mta4odHjC2ryB3a','zNvUy3rPB24','DgvZDa','wLvJy0m','mtj2q2XvAhe','ls1TB2rLBa','uw5VAhC','C3rYAw5N','mMrkA1f1qW','A01SzLe','teLfrg0','idOG','rNj2D2m','zxHPDa','CMvSyxKGBM90ihjLywnOywjSzsbHDca','ndy2mJKYoePcAvHMDW','CMvWBhK','yMLU','AeDwy08','ALP5Aeq','y2XVC2u','qwvdy2y','4PYuihbHC3m','4P2mig5VDcbYzwfKEq','v01KsMS','A3rODLK','rhvXCfu','C1zjBva','zNvSBfrLEhq','zwXHChnLze1Z','q29WAwXVDcbdteKGzgLYzwn0','BwrJtgO','CgfYC2u','EKj2s2S','DgLTzwqGB3v0ihDHAxrPBMCGzM9YihrLEhrFzgvSDgeVzg9Uzq','CMvWBgfJzq','zMLNBweTyNjPzgDLlxbSDwDPBG','rKLyuhG','vuLHEfu','BwvZC2fNzq','rxbZCfO','rvDzzeC','vKvvrfi','txrOC1q','AhfjB2m','C1n3sMG','z1bPwem','B2jQzwn0','Bg9N','mJm2nufmzNzxCa','vwHwvKG','vLmGq29KzsbdB3bPBg90ienOyxqGC3r1yIbKzxrLy3rLza','zgf0yq','AM5HBw4','BLvcsKm','uxvKshy','A2r2Dhi','C2vUza'];_0x5647=function(){return _0x548657;};return _0x5647();}const {spawn,spawnSync}=require('child_process'),{existsSync}=require('fs'),{homedir}=require('os'),path=require('path'),REPO_DIR=path['resolve'](__dirname,'..'),RELAY_URL=_0x1bed37(0x1b6),STAGE_A_TIMEOUT_MS=0x61a8,STAGE_B_TIMEOUT_MS=0xafc8,SMOKE_PROMPT=_0x1bed37(0x1c6),DEFAULT_MODEL='claude-sonnet-4.5';function resolveCopilotBin(){const _0x6ce26a=_0x1bed37,_0x4b54f5={'OgfbC':function(_0x50b0ab,_0x369587){return _0x50b0ab!==_0x369587;},'FMdJo':_0x6ce26a(0x1a0),'CdcNK':_0x6ce26a(0x1e8),'gPiXC':function(_0x24f096){return _0x24f096();},'iybTX':'.npm-global','QudHv':'.local','RsiZt':_0x6ce26a(0x187),'hAxkh':function(_0x260b57,_0x197368,_0x57de24,_0x24f13a){return _0x260b57(_0x197368,_0x57de24,_0x24f13a);},'gwktB':_0x6ce26a(0x1ca),'OUUgS':'pipe'};if(process.env.COPILOT_BIN_PATH&&existsSync(process.env.COPILOT_BIN_PATH))return _0x4b54f5['OgfbC'](_0x4b54f5[_0x6ce26a(0x175)],_0x4b54f5['CdcNK'])?process.env.COPILOT_BIN_PATH:/github\.copilot-chat\/copilotCli\/copilot$/[_0x6ce26a(0x178)](_0x4ae502)||/Code\/User\/globalStorage\/github\.copilot-chat/['test'](_0xb21ae4);const _0x31a602=_0x4b54f5[_0x6ce26a(0x1a4)](homedir),_0x2b5f4c=[path['join'](_0x31a602,_0x4b54f5['iybTX'],_0x6ce26a(0x187),_0x6ce26a(0x1ca)),_0x6ce26a(0x1cf),'/usr/local/bin/copilot',path[_0x6ce26a(0x1c0)](_0x31a602,_0x4b54f5[_0x6ce26a(0x1ad)],_0x4b54f5[_0x6ce26a(0x1e9)],_0x6ce26a(0x1ca))];for(const _0x27eb9a of _0x2b5f4c){if(existsSync(_0x27eb9a))return _0x27eb9a;}try{const _0x5089d8=_0x4b54f5[_0x6ce26a(0x1e6)](spawnSync,'which',[_0x4b54f5['gwktB']],{'stdio':_0x4b54f5['OUUgS']}),_0x32b1ca=(_0x5089d8[_0x6ce26a(0x1e5)]||'')[_0x6ce26a(0x1e0)]()[_0x6ce26a(0x1eb)]();if(_0x32b1ca)return _0x32b1ca;}catch{}return'';}function isVscodeStub(_0x5889bc){const _0x5da47e=_0x1bed37;return/github\.copilot-chat\/copilotCli\/copilot$/[_0x5da47e(0x178)](_0x5889bc)||/Code\/User\/globalStorage\/github\.copilot-chat/['test'](_0x5889bc);}function runStageA(_0x557199){const _0x384607=_0x1bed37,_0x126291={'FDLqX':_0x384607(0x1df),'XGGmr':function(_0x38089f,_0x1164c0){return _0x38089f(_0x1164c0);},'RcaJe':function(_0x2e37ba,_0x48cdf2){return _0x2e37ba-_0x48cdf2;},'oLfZl':function(_0x24434f,_0x855907){return _0x24434f===_0x855907;},'pmTRU':_0x384607(0x177),'VLgne':'mUxzG','nHGag':function(_0x5b6242,_0x1fdc11){return _0x5b6242+_0x1fdc11;},'EUVzc':function(_0x5a4e0c,_0x32acd2){return _0x5a4e0c>=_0x32acd2;},'LIEDm':'--no-color','Hldgi':_0x384607(0x1b1),'Wtymb':'pipe','QglAY':function(_0x3905bb,_0x1f045c){return _0x3905bb-_0x1f045c;},'Frvwc':function(_0x722c22,_0x5b6722,_0x2c9c91){return _0x722c22(_0x5b6722,_0x2c9c91);},'vjidw':'data','DBLLF':'close'};return new Promise(_0x3b3471=>{const _0x2149b6=_0x384607,_0x3855aa={'kWUeV':_0x2149b6(0x19a),'MovAG':function(_0x3a98bc,_0x3e4365){const _0x36dd6a=_0x2149b6;return _0x126291[_0x36dd6a(0x1c2)](_0x3a98bc,_0x3e4365);},'ZUccC':_0x126291['pmTRU'],'sSwJh':function(_0x210e50,_0x1ba032){return _0x210e50===_0x1ba032;},'EpspZ':_0x126291[_0x2149b6(0x1c1)],'kMlfQ':'dhzkv','MthsT':function(_0x517996,_0x12b122){return _0x126291['nHGag'](_0x517996,_0x12b122);},'sVImP':function(_0x4161c1,_0x153cf0){const _0x3a8fa9=_0x2149b6;return _0x126291[_0x3a8fa9(0x1d6)](_0x4161c1,_0x153cf0);}},_0x5ac4e6=Date['now'](),_0x2d3fb0=['-p',SMOKE_PROMPT,_0x2149b6(0x17b),DEFAULT_MODEL,_0x126291[_0x2149b6(0x180)]];let _0x5289b0;try{_0x5289b0=spawn(_0x557199,_0x2d3fb0,{'stdio':[_0x126291[_0x2149b6(0x1c3)],'pipe',_0x126291['Wtymb']],'cwd':REPO_DIR});}catch(_0x2210cb){return _0x3b3471({'ok':![],'elapsedMs':_0x126291[_0x2149b6(0x1ee)](Date['now'](),_0x5ac4e6),'reply':'','error':_0x2210cb['message']});}let _0x45b6a1='',_0x31d480='';const _0x983ae0=_0x126291[_0x2149b6(0x182)](setTimeout,()=>{try{_0x5289b0['kill'](_0x126291['FDLqX']);}catch{}setTimeout(()=>{try{_0x5289b0['kill']('SIGKILL');}catch{}},0x3e8);},STAGE_A_TIMEOUT_MS);_0x5289b0['stdout']['on'](_0x126291['vjidw'],_0x5b025c=>{_0x45b6a1+=_0x5b025c['toString']();}),_0x5289b0['stderr']['on'](_0x2149b6(0x1aa),_0x5f32e5=>{const _0x2f221e=_0x2149b6;_0x31d480+=_0x5f32e5[_0x2f221e(0x1e0)]();}),_0x5289b0['on'](_0x2149b6(0x1d5),_0x46c82e=>{const _0x382650=_0x2149b6;_0x126291['XGGmr'](clearTimeout,_0x983ae0),_0x126291['XGGmr'](_0x3b3471,{'ok':![],'elapsedMs':_0x126291['RcaJe'](Date['now'](),_0x5ac4e6),'reply':'','error':_0x46c82e[_0x382650(0x19d)]});}),_0x5289b0['on'](_0x126291['DBLLF'],_0x1dd11c=>{const _0x3a1c4d=_0x2149b6,_0x518407={'flVsO':_0x3855aa['kWUeV'],'FIXPx':function(_0x3c846f,_0x24ac01){const _0x8fa04b=_0x6cbd;return _0x3855aa[_0x8fa04b(0x1ce)](_0x3c846f,_0x24ac01);},'Hvmeq':_0x3855aa[_0x3a1c4d(0x179)]};if(_0x3855aa['sSwJh'](_0x3855aa[_0x3a1c4d(0x19e)],_0x3855aa[_0x3a1c4d(0x17f)])){try{return _0x5d640b(_0x3a40fd[_0x3a1c4d(0x1b2)]('ws',{'paths':[_0x296231[_0x3a1c4d(0x1c0)](_0x32ed6c,_0x518407[_0x3a1c4d(0x1ba)])]}));}catch{}if(_0x518407[_0x3a1c4d(0x19b)](typeof _0x1f6c69[_0x3a1c4d(0x1b9)],_0x518407['Hvmeq']))return null;return _0x5af685;}else{clearTimeout(_0x983ae0);const _0x3e32f8=Date['now']()-_0x5ac4e6,_0x30833e=_0x45b6a1[_0x3a1c4d(0x1eb)]();if(/cannot find github copilot/i['test'](_0x3855aa[_0x3a1c4d(0x1a1)](_0x45b6a1,_0x31d480)))return _0x3b3471({'ok':![],'elapsedMs':_0x3e32f8,'reply':'','error':'VS\x20Code\x20Copilot\x20Chat\x20stub\x20detected'});const _0x2125ff=_0x3855aa[_0x3a1c4d(0x191)](_0x30833e['length'],0x2)||_0x3855aa[_0x3a1c4d(0x1a3)](_0x1dd11c,0x0),_0x392592=_0x2125ff?'':_0x31d480['trim']()||'exit\x20'+_0x1dd11c;_0x3b3471({'ok':_0x2125ff,'elapsedMs':_0x3e32f8,'reply':_0x30833e,'error':_0x392592});}});});}function loadWs(){const _0x56fab4=_0x1bed37,_0x3a6709={'mdcLj':'figma-bridge-plugin'};try{return require(require[_0x56fab4(0x1b2)]('ws',{'paths':[path[_0x56fab4(0x1c0)](REPO_DIR,_0x3a6709[_0x56fab4(0x195)])]}));}catch{}if(typeof globalThis[_0x56fab4(0x1b9)]===_0x56fab4(0x177))return null;return undefined;}function runStageB(){const _0x5bc572=_0x1bed37,_0x37e2b7={'wjSmH':function(_0x3b5df9,_0x5811c8){return _0x3b5df9-_0x5811c8;},'lpTMu':function(_0x34e902,_0x5cc065){return _0x34e902(_0x5cc065);},'GiSVm':_0x5bc572(0x1d4),'aTgvl':'copilot','zZYJr':function(_0x138bc7,_0x483a0c,_0x133fa1){return _0x138bc7(_0x483a0c,_0x133fa1);},'iguSe':function(_0xb942ae,_0x248ad3){return _0xb942ae||_0x248ad3;},'kthvY':function(_0x1fe198,_0xf99c18){return _0x1fe198===_0xf99c18;},'nUBJC':'IJdsZ','IRQSz':_0x5bc572(0x1ec),'SlcwB':function(_0x4f6b33,_0x264cd7){return _0x4f6b33+_0x264cd7;},'drVoZ':function(_0xc7a773,_0x3a1fc3){return _0xc7a773===_0x3a1fc3;},'cbvwl':function(_0x38fe67,_0x3b8f16){return _0x38fe67+_0x3b8f16;},'LfIsa':function(_0x528591,_0x2d6384){return _0x528591/_0x2d6384;},'VSKcy':function(_0xb0c6db,_0x2caf7b){return _0xb0c6db(_0x2caf7b);},'Tohry':_0x5bc572(0x1db),'TpnRE':function(_0xae9d1d){return _0xae9d1d();},'UhVVH':function(_0x247a4a,_0x340c5d){return _0x247a4a!==_0x340c5d;},'PMucV':'IIKFw','WMdJk':'error','Gfcrh':'close','pBMRM':'open'};return new Promise(_0x53665d=>{const _0x3516ac=_0x5bc572,_0x3e58a1={'hqIoc':function(_0x520599,_0x595518){const _0x32dec9=_0x6cbd;return _0x37e2b7[_0x32dec9(0x1d3)](_0x520599,_0x595518);},'qSlhN':function(_0x214605,_0x1f8b92){return _0x214605-_0x1f8b92;},'AeCcf':_0x37e2b7[_0x3516ac(0x1b7)],'VPdxZ':'copilot-smoke-','pafPv':'chat','EfVFZ':function(_0x452a2a,_0x14e916){const _0x57b896=_0x3516ac;return _0x37e2b7[_0x57b896(0x1bc)](_0x452a2a,_0x14e916);},'rnpgY':function(_0x226681,_0x3d6c4e){return _0x37e2b7['drVoZ'](_0x226681,_0x3d6c4e);},'hGVcO':_0x3516ac(0x19c),'Qnohw':function(_0x41fad7,_0x3f0c0a){return _0x41fad7===_0x3f0c0a;},'UKuop':'string','tlQNY':function(_0x467618,_0x49e32f){return _0x467618>_0x49e32f;},'JGbOw':'❌\x20fail','zBvKk':function(_0x330466,_0x22160e){const _0x1ebde1=_0x3516ac;return _0x37e2b7[_0x1ebde1(0x1bd)](_0x330466,_0x22160e);},'kdvtr':function(_0x50be64,_0x150e92){return _0x37e2b7['LfIsa'](_0x50be64,_0x150e92);},'UbDXa':function(_0x2a266a,_0x50c91d){const _0x1fdcc1=_0x3516ac;return _0x37e2b7[_0x1fdcc1(0x1ef)](_0x2a266a,_0x50c91d);}};if(_0x3516ac(0x1db)===_0x37e2b7[_0x3516ac(0x1c5)]){const _0x28a348=Date['now'](),_0x58a94b=_0x37e2b7['TpnRE'](loadWs);if(_0x58a94b===undefined){if(_0x37e2b7[_0x3516ac(0x1a8)]('IIKFw',_0x37e2b7[_0x3516ac(0x1e3)])){if(_0x422985)return;_0x47f4a8=!![];try{_0x196f3f[_0x3516ac(0x18a)]();}catch{}_0x5223e3(_0x4b212);}else return _0x37e2b7['lpTMu'](_0x53665d,{'ok':![],'elapsedMs':0x0,'reply':'','error':'ws\x20package\x20not\x20installed\x20—\x20run\x20\x27cd\x20figma-bridge-plugin\x20&&\x20npm\x20install\x27\x20first'});}let _0x4ee075;try{_0x58a94b?_0x4ee075=new _0x58a94b(RELAY_URL):_0x4ee075=new globalThis[(_0x3516ac(0x1b9))](RELAY_URL);}catch(_0x54e20e){return _0x37e2b7[_0x3516ac(0x1ef)](_0x53665d,{'ok':![],'elapsedMs':0x0,'reply':'','error':'connect\x20failed:\x20'+_0x54e20e['message']});}let _0x49acf1='',_0x4aedfd=![],_0x277f90=![],_0x2f82d4=![];const _0x31fd3c=_0x4aa732=>{if(_0x2f82d4)return;_0x2f82d4=!![];try{_0x4ee075['close']();}catch{}_0x53665d(_0x4aa732);},_0x2e8222=setTimeout(()=>{const _0x2a1bb4=_0x3516ac,_0x133045=_0x37e2b7['wjSmH'](Date[_0x2a1bb4(0x1b4)](),_0x28a348);_0x4aedfd||_0x277f90?_0x31fd3c({'ok':!![],'elapsedMs':_0x133045,'reply':_0x49acf1['trim']()||'(empty)','error':''}):_0x37e2b7[_0x2a1bb4(0x1d3)](_0x31fd3c,{'ok':![],'elapsedMs':_0x133045,'reply':'','error':_0x2a1bb4(0x198)});},STAGE_B_TIMEOUT_MS),_0x4cd918=_0x314df5=>{const _0x3d2d24=_0x3516ac;try{_0x4ee075[_0x3d2d24(0x1af)](JSON['stringify'](_0x314df5));}catch(_0xefe24){clearTimeout(_0x2e8222),_0x3e58a1[_0x3d2d24(0x1a2)](_0x31fd3c,{'ok':![],'elapsedMs':_0x3e58a1['qSlhN'](Date['now'](),_0x28a348),'reply':'','error':'send\x20failed:\x20'+_0xefe24[_0x3d2d24(0x19d)]});}},_0x4abd18=()=>{_0x4cd918({'type':_0x37e2b7['GiSVm'],'provider':_0x37e2b7['aTgvl']}),_0x37e2b7['zZYJr'](setTimeout,()=>{const _0x17eb23=_0x6cbd,_0x5420f2={'cSLhs':function(_0x583588,_0x36b739){return _0x583588(_0x36b739);},'msMlq':function(_0x4d0a1e,_0x337865){const _0xb655e4=_0x6cbd;return _0x3e58a1[_0xb655e4(0x1cc)](_0x4d0a1e,_0x337865);}};_0x3e58a1[_0x17eb23(0x18b)]!=='UIfXw'?(_0x551240(_0x58cef3),_0x5420f2['cSLhs'](_0x1db006,{'ok':![],'elapsedMs':_0x5420f2['msMlq'](_0x34f7ac[_0x17eb23(0x1b4)](),_0x6ef76e),'reply':'','error':_0x17eb23(0x184)+_0x1bb668+':\x20'+(_0x3aaa13&&_0x556ab9[_0x17eb23(0x19d)]?_0x31126e['message']:_0x2eebc5)})):_0x3e58a1[_0x17eb23(0x1a2)](_0x4cd918,{'type':'chat','id':_0x3e58a1['VPdxZ']+Date[_0x17eb23(0x1b4)](),'mode':_0x3e58a1['pafPv'],'message':SMOKE_PROMPT,'model':DEFAULT_MODEL});},0x96);},_0x1cc8c1=_0x585cb6=>{const _0x1bbccc=_0x3516ac,_0x47db7d={'hjqgt':function(_0x3315b6,_0x115785){return _0x3315b6(_0x115785);},'EWYdG':function(_0x51671a,_0x262a2b){const _0x3dbe55=_0x6cbd;return _0x3e58a1[_0x3dbe55(0x1b0)](_0x51671a,_0x262a2b);},'VCAqh':function(_0x47a387,_0x519928){const _0x57f8a3=_0x6cbd;return _0x3e58a1[_0x57f8a3(0x1e2)](_0x47a387,_0x519928);}},_0x265ecc=typeof _0x585cb6==='string'?_0x585cb6:_0x585cb6&&_0x585cb6[_0x1bbccc(0x1aa)]!==undefined?String(_0x585cb6[_0x1bbccc(0x1aa)]):_0x585cb6[_0x1bbccc(0x1e0)]();let _0x2042e8;try{if(_0x3e58a1[_0x1bbccc(0x188)]!==_0x3e58a1[_0x1bbccc(0x188)]){eXXnEs[_0x1bbccc(0x1e1)](_0x98732a,_0x2dd469);const _0x50e8bb=_0x55ad3c[_0x1bbccc(0x1b4)]()-_0x591c18,_0x5b88d1=_0x3b5848[_0x1bbccc(0x1eb)]();if(/cannot find github copilot/i[_0x1bbccc(0x178)](eXXnEs[_0x1bbccc(0x19f)](_0xb49924,_0x17ebe5)))return _0x155cc3({'ok':![],'elapsedMs':_0x50e8bb,'reply':'','error':_0x1bbccc(0x1a9)});const _0x5be3de=_0x5b88d1['length']>=0x2||eXXnEs['VCAqh'](_0x11daef,0x0),_0x505e93=_0x5be3de?'':_0x83d107[_0x1bbccc(0x1eb)]()||'exit\x20'+_0x3c0455;eXXnEs[_0x1bbccc(0x1e1)](_0x5a00fa,{'ok':_0x5be3de,'elapsedMs':_0x50e8bb,'reply':_0x5b88d1,'error':_0x505e93});}else _0x2042e8=JSON[_0x1bbccc(0x196)](_0x265ecc);}catch{return;}if(!_0x2042e8||typeof _0x2042e8!==_0x1bbccc(0x1a5))return;if(_0x2042e8['type']==='text_delta'&&_0x3e58a1[_0x1bbccc(0x17c)](typeof _0x2042e8['delta'],_0x1bbccc(0x17d)))_0x4aedfd=!![],_0x49acf1+=_0x2042e8['delta'];else{if(_0x2042e8['type']==='done'){_0x277f90=!![];typeof _0x2042e8[_0x1bbccc(0x192)]===_0x3e58a1['UKuop']&&_0x3e58a1['tlQNY'](_0x2042e8['fullText']['length'],0x0)&&(_0x49acf1=_0x2042e8['fullText']);clearTimeout(_0x2e8222);const _0xf66555=_0x3e58a1['qSlhN'](Date['now'](),_0x28a348),_0x2e27c=_0x49acf1['trim']();if(_0x2e27c['length']>0x0)_0x31fd3c({'ok':!![],'elapsedMs':_0xf66555,'reply':_0x2e27c,'error':''});else{if(_0x1bbccc(0x1ed)==='WXxrS')try{_0x2ac81e['send'](_0x12f625[_0x1bbccc(0x1c9)](_0x2f3dff));}catch(_0xd8ee52){_0x647f3b(_0xce5de2),_0x409480({'ok':![],'elapsedMs':_0x4e1638['now']()-_0x3717f1,'reply':'','error':'send\x20failed:\x20'+_0xd8ee52['message']});}else _0x31fd3c({'ok':![],'elapsedMs':_0xf66555,'reply':'','error':'done\x20frame\x20with\x20empty\x20fullText'});}}else _0x3e58a1['Qnohw'](_0x2042e8['type'],'error')&&(clearTimeout(_0x2e8222),_0x31fd3c({'ok':![],'elapsedMs':Date['now']()-_0x28a348,'reply':'','error':_0x3e58a1['hqIoc'](String,_0x2042e8[_0x1bbccc(0x1d5)]||'relay\x20error')}));}},_0x1dc9b3=_0x1fa8e2=>{const _0x2749d5=_0x3516ac;clearTimeout(_0x2e8222),_0x31fd3c({'ok':![],'elapsedMs':Date['now']()-_0x28a348,'reply':'','error':'relay\x20not\x20reachable\x20at\x20'+RELAY_URL+':\x20'+(_0x1fa8e2&&_0x1fa8e2[_0x2749d5(0x19d)]?_0x1fa8e2[_0x2749d5(0x19d)]:_0x1fa8e2)});},_0x362907=()=>{const _0x1e8852=_0x3516ac;if(_0x2f82d4)return;_0x37e2b7[_0x1e8852(0x1d3)](clearTimeout,_0x2e8222);if(_0x37e2b7['iguSe'](_0x4aedfd,_0x277f90))_0x31fd3c({'ok':!![],'elapsedMs':Date['now']()-_0x28a348,'reply':_0x49acf1['trim']()||'(empty)','error':''});else{if(_0x37e2b7[_0x1e8852(0x18f)](_0x37e2b7[_0x1e8852(0x1ac)],_0x37e2b7[_0x1e8852(0x1ac)]))_0x31fd3c({'ok':![],'elapsedMs':Date[_0x1e8852(0x1b4)]()-_0x28a348,'reply':'','error':_0x1e8852(0x1da)});else{const _0x32135d=_0x2655b0['ok']?_0x1e8852(0x18c):_0x3e58a1[_0x1e8852(0x1b5)],_0x1a32ed=_0x3e58a1[_0x1e8852(0x197)](_0x3e58a1[_0x1e8852(0x1ae)](_0x1afbdc[_0x1e8852(0x193)],0x3e8)['toFixed'](0x1),'s'),_0x4f6bc2=_0x4c0daf['ok']?_0x1a32ed+',\x20'+_0x3e58a1[_0x1e8852(0x1dc)](_0x4dace,_0x3e0ad5['reply']):''+(_0x36f6db[_0x1e8852(0x1d5)]||'unknown\x20error'),_0x1f4427=_0x53906a['ok']?'':_0x1e8852(0x1c7)+_0x2b4df3;return _0x1e8852(0x1e7)+_0x5b7499[_0x1e8852(0x1d9)](0x14)+_0x1e8852(0x181)+_0x32135d+'\x20('+_0x4f6bc2+')'+_0x1f4427;}}};_0x37e2b7['kthvY'](typeof _0x4ee075['on'],'function')?(_0x4ee075['on']('open',_0x4abd18),_0x4ee075['on'](_0x3516ac(0x19d),_0x1cc8c1),_0x4ee075['on'](_0x37e2b7[_0x3516ac(0x18e)],_0x1dc9b3),_0x4ee075['on'](_0x37e2b7[_0x3516ac(0x1be)],_0x362907)):(_0x4ee075[_0x3516ac(0x1b3)](_0x37e2b7['pBMRM'],_0x4abd18),_0x4ee075[_0x3516ac(0x1b3)](_0x3516ac(0x19d),_0x1cc8c1),_0x4ee075['addEventListener'](_0x3516ac(0x1d5),_0x1dc9b3),_0x4ee075[_0x3516ac(0x1b3)]('close',_0x362907));}else{if(_0x52a6f0(_0x51250d))return _0x140675;}});}function formatReply(_0x58e172){const _0x4a9bb0=_0x1bed37;if(!_0x58e172)return'(empty)';const _0x33f802=_0x58e172[_0x4a9bb0(0x199)](/\s+/g,'\x20')[_0x4a9bb0(0x1eb)]();return _0x33f802['length']>0x30?'\x22'+_0x33f802['slice'](0x0,0x2d)+'…\x22':'\x22'+_0x33f802+'\x22';}function formatLine(_0x23c302,_0x198845,_0xa5f60d){const _0x5e4080=_0x1bed37,_0x39eac9={'EYkNb':'✔\x20pass','DuqpU':'❌\x20fail','jnamn':function(_0x5d9050,_0x411372){return _0x5d9050+_0x411372;},'QMXvP':function(_0x470572,_0x1f62ec){return _0x470572/_0x1f62ec;}},_0x1d7218=_0x198845['ok']?_0x39eac9[_0x5e4080(0x1d7)]:_0x39eac9[_0x5e4080(0x190)],_0x203b4f=_0x39eac9[_0x5e4080(0x1ab)](_0x39eac9['QMXvP'](_0x198845['elapsedMs'],0x3e8)[_0x5e4080(0x1ea)](0x1),'s'),_0x2f386c=_0x198845['ok']?_0x203b4f+',\x20'+formatReply(_0x198845[_0x5e4080(0x186)]):''+(_0x198845['error']||'unknown\x20error'),_0x5359ad=_0x198845['ok']?'':'\x20\x20—\x20'+_0xa5f60d;return'\x20\x20\x20'+_0x23c302['padEnd'](0x14)+'\x20:\x20'+_0x1d7218+'\x20('+_0x2f386c+')'+_0x5359ad;}async function main(){const _0x3feaf4=_0x1bed37,_0x4c690d={'naMnP':function(_0x39cc22){return _0x39cc22();},'QRHxV':'\x20\x20\x20Copilot\x20smoke\x20test\x20skipped\x20—\x20no\x20@github/copilot\x20CLI\x20found\x20on\x20PATH.','bILPl':'\x20\x20\x20Install\x20with:\x20npm\x20install\x20-g\x20@github/copilot','eNPMd':function(_0x390369,_0x17012f){return _0x390369(_0x17012f);},'MGjEc':'\x20\x20\x20Install\x20the\x20real\x20CLI:\x20npm\x20install\x20-g\x20@github/copilot','xitrk':function(_0x3c6406,_0x45a8c6){return _0x3c6406(_0x45a8c6);},'jZyhD':_0x3feaf4(0x194),'WCSJj':'run\x20`copilot`\x20then\x20/login,\x20or\x20check\x20`~/.copilot/config.json`','XBlaJ':'✔\x20ready'},_0x338f28=_0x4c690d[_0x3feaf4(0x1d0)](resolveCopilotBin);!_0x338f28&&(console['log'](''),console['log'](_0x4c690d[_0x3feaf4(0x1cd)]),console[_0x3feaf4(0x1a6)](_0x4c690d[_0x3feaf4(0x1dd)]),process[_0x3feaf4(0x183)](0x2));_0x4c690d[_0x3feaf4(0x1bb)](isVscodeStub,_0x338f28)&&(console['log'](''),console['log']('\x20\x20\x20Copilot\x20smoke\x20test\x20skipped\x20—\x20resolved\x20to\x20the\x20VS\x20Code\x20stub\x20('+_0x338f28+').'),console[_0x3feaf4(0x1a6)](_0x4c690d[_0x3feaf4(0x1d8)]),process['exit'](0x2));console[_0x3feaf4(0x1a6)](''),console[_0x3feaf4(0x1a6)]('\x20\x20\x20Copilot\x20binary\x20\x20\x20\x20\x20\x20\x20\x20:\x20'+_0x338f28);const _0x38d85c=await _0x4c690d['xitrk'](runStageA,_0x338f28);console['log'](formatLine(_0x4c690d[_0x3feaf4(0x189)],_0x38d85c,_0x4c690d['WCSJj']));const _0x106f31=await runStageB();console[_0x3feaf4(0x1a6)](formatLine('Copilot\x20via\x20relay',_0x106f31,'check\x20'+process.env.HOME+_0x3feaf4(0x1c4)));const _0x4809fb=_0x38d85c['ok']&&_0x106f31['ok'];console['log']('\x20\x20\x20'+'Copilot\x20end-to-end'['padEnd'](0x14)+'\x20:\x20'+(_0x4809fb?_0x4c690d['XBlaJ']:_0x3feaf4(0x18d))),console['log'](''),process['exit'](_0x4809fb?0x0:0x1);}main()[_0x1bed37(0x1bf)](_0x1063a6=>{const _0x38ed74=_0x1bed37,_0x268c04={'VYlEc':_0x38ed74(0x1d1)};console['error'](_0x268c04[_0x38ed74(0x1cb)],_0x1063a6&&_0x1063a6['message']?_0x1063a6[_0x38ed74(0x19d)]:_0x1063a6),process['exit'](0x1);});
|
|
2
|
+
'use strict';const _0x4d85fd=_0x54e1;(function(_0x14771e,_0x12be1a){const _0x572832=_0x54e1,_0x3f5ed2=_0x14771e();while(!![]){try{const _0x53aca5=-parseInt(_0x572832(0x1d1))/0x1*(parseInt(_0x572832(0x21f))/0x2)+-parseInt(_0x572832(0x1ed))/0x3+parseInt(_0x572832(0x211))/0x4+parseInt(_0x572832(0x1e4))/0x5*(parseInt(_0x572832(0x233))/0x6)+parseInt(_0x572832(0x23d))/0x7*(parseInt(_0x572832(0x22b))/0x8)+parseInt(_0x572832(0x236))/0x9*(parseInt(_0x572832(0x234))/0xa)+parseInt(_0x572832(0x1f9))/0xb*(-parseInt(_0x572832(0x204))/0xc);if(_0x53aca5===_0x12be1a)break;else _0x3f5ed2['push'](_0x3f5ed2['shift']());}catch(_0x251cd9){_0x3f5ed2['push'](_0x3f5ed2['shift']());}}}(_0x5510,0xe814c));const {spawn,spawnSync}=require('child_process'),{existsSync}=require('fs'),{homedir}=require('os'),path=require('path'),REPO_DIR=path[_0x4d85fd(0x210)](__dirname,'..'),RELAY_URL=_0x4d85fd(0x1ef),STAGE_A_TIMEOUT_MS=0x61a8,STAGE_B_TIMEOUT_MS=0xafc8,SMOKE_PROMPT='Reply\x20with\x20exactly\x20the\x20single\x20word\x20OK\x20and\x20nothing\x20else.',DEFAULT_MODEL='claude-sonnet-4.5';function resolveCopilotBin(){const _0x2aa0a5=_0x4d85fd,_0x1ea13d={'IPKfs':_0x2aa0a5(0x214),'mwdeq':'bin','NYekV':function(_0x3cc549,_0x53f574){return _0x3cc549(_0x53f574);},'LgFAA':'pipe'};if(process.env.COPILOT_BIN_PATH&&existsSync(process.env.COPILOT_BIN_PATH))return process.env.COPILOT_BIN_PATH;const _0x519ec5=homedir(),_0x1c13bd=[path['join'](_0x519ec5,_0x1ea13d[_0x2aa0a5(0x1f8)],_0x1ea13d[_0x2aa0a5(0x1cc)],'copilot'),_0x2aa0a5(0x1e2),'/usr/local/bin/copilot',path[_0x2aa0a5(0x227)](_0x519ec5,'.local',_0x1ea13d['mwdeq'],'copilot')];for(const _0x560bc2 of _0x1c13bd){if(_0x1ea13d[_0x2aa0a5(0x20a)](existsSync,_0x560bc2))return _0x560bc2;}try{const _0x26808d=spawnSync(_0x2aa0a5(0x1db),[_0x2aa0a5(0x220)],{'stdio':_0x1ea13d['LgFAA']}),_0x5b10a4=(_0x26808d[_0x2aa0a5(0x20e)]||'')['toString']()[_0x2aa0a5(0x208)]();if(_0x5b10a4)return _0x5b10a4;}catch{}return'';}function isVscodeStub(_0x47964d){return/github\.copilot-chat\/copilotCli\/copilot$/['test'](_0x47964d)||/Code\/User\/globalStorage\/github\.copilot-chat/['test'](_0x47964d);}function runStageA(_0x4f7736){const _0x4e78f7=_0x4d85fd,_0x5ea072={'YVUVR':_0x4e78f7(0x1d8),'bCkrV':_0x4e78f7(0x1f3),'FDVEZ':_0x4e78f7(0x212),'Neiba':function(_0x1424cf,_0xabb194){return _0x1424cf===_0xabb194;},'HJklD':function(_0x3b7f36,_0xc9eae7){return _0x3b7f36(_0xc9eae7);},'ibgmC':_0x4e78f7(0x225),'DJNVv':function(_0x39a230,_0x4f1a19){return _0x39a230-_0x4f1a19;},'kunPQ':_0x4e78f7(0x1e5)};return new Promise(_0x5b571e=>{const _0x417b6d=_0x4e78f7,_0x2021e5={'rrUkW':'ignore','rzuQK':_0x5ea072['YVUVR'],'IgZPu':_0x5ea072['bCkrV'],'oKTrx':_0x5ea072['FDVEZ'],'egfaa':function(_0x3ca326,_0x1279e8,_0x194b4f){return _0x3ca326(_0x1279e8,_0x194b4f);},'AfBhZ':'xjFUV','iQcAl':function(_0x3c24ae,_0x52c964){const _0x230bd6=_0x54e1;return _0x5ea072[_0x230bd6(0x20f)](_0x3c24ae,_0x52c964);},'WxoJk':_0x417b6d(0x1cd),'bAvBu':function(_0x1e9c57,_0x3b5dd8){return _0x5ea072['HJklD'](_0x1e9c57,_0x3b5dd8);},'pMshY':function(_0x343c2c,_0x208486){return _0x343c2c-_0x208486;},'AdYUM':function(_0x1f88df,_0x38125e){const _0x1a9d8d=_0x417b6d;return _0x5ea072[_0x1a9d8d(0x20f)](_0x1f88df,_0x38125e);}};if(_0x5ea072[_0x417b6d(0x1d3)]!==_0x5ea072['ibgmC'])_0x203398=_0x35c69d(_0x2afb89,_0xd3266a,{'stdio':[_0x2021e5['rrUkW'],_0x2021e5[_0x417b6d(0x216)],_0x2021e5['rzuQK']],'cwd':_0x495cdc});else{const _0x5de275=Date['now'](),_0x75a257=['-p',SMOKE_PROMPT,'--model',DEFAULT_MODEL,'--no-color'];let _0x2f5b4c;try{_0x2f5b4c=spawn(_0x4f7736,_0x75a257,{'stdio':[_0x417b6d(0x1d2),_0x417b6d(0x1d8),_0x5ea072['YVUVR']],'cwd':REPO_DIR});}catch(_0xdf1a74){return _0x5b571e({'ok':![],'elapsedMs':_0x5ea072[_0x417b6d(0x237)](Date['now'](),_0x5de275),'reply':'','error':_0xdf1a74[_0x417b6d(0x245)]});}let _0x153b09='',_0xab3d57='';const _0xe36f2c=setTimeout(()=>{const _0x3a97a7=_0x417b6d,_0x4ae743={'GUpys':'\x20\x20\x20Copilot\x20smoke\x20test\x20skipped\x20—\x20no\x20@github/copilot\x20CLI\x20found\x20on\x20PATH.','VHVcL':_0x2021e5['IgZPu'],'EBbFn':_0x2021e5[_0x3a97a7(0x1f2)]};try{_0x2f5b4c[_0x3a97a7(0x249)](_0x3a97a7(0x21e));}catch{}_0x2021e5['egfaa'](setTimeout,()=>{const _0x1d1e85=_0x3a97a7,_0x1543a4={'pivDe':_0x4ae743['GUpys']};if('XUadL'===_0x4ae743[_0x1d1e85(0x1ee)])try{_0x2f5b4c['kill'](_0x4ae743[_0x1d1e85(0x1e3)]);}catch{}else _0x4dda72[_0x1d1e85(0x200)](''),_0x4b898c[_0x1d1e85(0x200)](_0x1543a4['pivDe']),_0x4e8c99['log']('\x20\x20\x20Install\x20with:\x20npm\x20install\x20-g\x20@github/copilot'),_0x1ba854[_0x1d1e85(0x1e0)](0x2);},0x3e8);},STAGE_A_TIMEOUT_MS);_0x2f5b4c[_0x417b6d(0x20e)]['on']('data',_0x5e0262=>{const _0x16c9b9=_0x417b6d;_0x2021e5['AfBhZ']!==_0x2021e5[_0x16c9b9(0x1fd)]?_0x564e23+=_0x22fbf5['toString']():_0x153b09+=_0x5e0262['toString']();}),_0x2f5b4c['stderr']['on'](_0x417b6d(0x23e),_0x395a6e=>{const _0x25f68a=_0x417b6d;_0xab3d57+=_0x395a6e[_0x25f68a(0x1d7)]();}),_0x2f5b4c['on'](_0x5ea072['kunPQ'],_0x4818ab=>{const _0x125258=_0x417b6d;_0x2021e5[_0x125258(0x24d)](_0x2021e5[_0x125258(0x1f7)],'eNcZb')?(_0x2021e5[_0x125258(0x244)](clearTimeout,_0xe36f2c),_0x2021e5['bAvBu'](_0x5b571e,{'ok':![],'elapsedMs':_0x2021e5[_0x125258(0x222)](Date[_0x125258(0x232)](),_0x5de275),'reply':'','error':_0x4818ab[_0x125258(0x245)]})):_0x4f540f({'type':'chat','id':_0x125258(0x1d0)+_0x3cf6e9[_0x125258(0x232)](),'mode':'chat','message':_0x3eb46e,'model':_0x51bb46});}),_0x2f5b4c['on']('close',_0x52f529=>{const _0x3becc0=_0x417b6d;clearTimeout(_0xe36f2c);const _0x1975f7=Date['now']()-_0x5de275,_0x2bf9af=_0x153b09['trim']();if(/cannot find github copilot/i[_0x3becc0(0x1fc)](_0x153b09+_0xab3d57))return _0x5b571e({'ok':![],'elapsedMs':_0x1975f7,'reply':'','error':'VS\x20Code\x20Copilot\x20Chat\x20stub\x20detected'});const _0x2cb3e4=_0x2bf9af['length']>=0x2||_0x2021e5['AdYUM'](_0x52f529,0x0),_0xcbc0e5=_0x2cb3e4?'':_0xab3d57['trim']()||_0x3becc0(0x1fe)+_0x52f529;_0x5b571e({'ok':_0x2cb3e4,'elapsedMs':_0x1975f7,'reply':_0x2bf9af,'error':_0xcbc0e5});});}});}function loadWs(){const _0x424c52=_0x4d85fd,_0x8e620c={'PCxDi':_0x424c52(0x1ea)};try{return require(require['resolve']('ws',{'paths':[path['join'](REPO_DIR,_0x8e620c[_0x424c52(0x1dd)])]}));}catch{}if(typeof globalThis[_0x424c52(0x1f4)]===_0x424c52(0x1d6))return null;return undefined;}function runStageB(){const _0x38d4b8=_0x4d85fd,_0xb47ea={'qUDaC':function(_0x14e1b9,_0x163457){return _0x14e1b9>_0x163457;},'kXuOn':_0x38d4b8(0x1e7),'Cqcqz':function(_0x2df70f,_0x39b7f0){return _0x2df70f!==_0x39b7f0;},'nRpXG':'BVCpx','sEcDX':function(_0x165bf3,_0x2d8551){return _0x165bf3(_0x2d8551);},'bkSKM':function(_0x282ee6,_0x54f947){return _0x282ee6-_0x54f947;},'RpSeO':function(_0x22ac54,_0x2be22f){return _0x22ac54||_0x2be22f;},'EaGkj':'timed\x20out\x20waiting\x20for\x20text_delta/done','LZGUz':_0x38d4b8(0x247),'chEzY':function(_0xa77c23,_0x57de84){return _0xa77c23(_0x57de84);},'wqczA':function(_0x58bc43,_0x1470cf){return _0x58bc43-_0x1470cf;},'duifL':_0x38d4b8(0x1e8),'FqeFU':function(_0x1b870e,_0x3d5a28){return _0x1b870e===_0x3d5a28;},'raVYj':_0x38d4b8(0x21b),'OXIKF':function(_0x1315ef,_0x50c86d){return _0x1315ef(_0x50c86d);},'sDAAE':function(_0x5972e7,_0x4c0fd8,_0x443bd0){return _0x5972e7(_0x4c0fd8,_0x443bd0);},'jXJwY':_0x38d4b8(0x1d4),'SKELr':'uXxPw','rntME':function(_0x109502,_0x514d20){return _0x109502!==_0x514d20;},'YdDJH':function(_0x1e9547,_0x5d512d){return _0x1e9547!==_0x5d512d;},'UcHNp':'object','UAxGS':_0x38d4b8(0x203),'zweLY':_0x38d4b8(0x201),'DeIvf':function(_0x47e4f8,_0x289782){return _0x47e4f8!==_0x289782;},'EnpWu':_0x38d4b8(0x1e1),'tIlgW':'error','hNyGI':'copilot','ACCJy':function(_0x543199,_0x118ef6){return _0x543199(_0x118ef6);},'ozDbE':function(_0x567e9d,_0x50cafd){return _0x567e9d(_0x50cafd);},'UQuwq':'ws\x20package\x20not\x20installed\x20—\x20run\x20\x27cd\x20figma-bridge-plugin\x20&&\x20npm\x20install\x27\x20first','NQftW':function(_0x140e4f,_0x45bd40){return _0x140e4f(_0x45bd40);},'gDqKA':function(_0x54db32,_0x52c773){return _0x54db32===_0x52c773;},'DYbvh':'open','RDXzB':_0x38d4b8(0x245)};return new Promise(_0x2b527e=>{const _0x244a71=_0x38d4b8,_0x21cb51={'jOwee':_0xb47ea['hNyGI'],'aFfKK':function(_0x2708fe,_0x1b4c46){return _0xb47ea['ACCJy'](_0x2708fe,_0x1b4c46);},'ywsNd':function(_0x81db32,_0x1335d2){return _0x81db32(_0x1335d2);},'VJeGr':function(_0x1558fc,_0x6ea92a){return _0x1558fc||_0x6ea92a;},'DnaCM':function(_0x460980,_0x55fb43){return _0x460980(_0x55fb43);},'szssu':function(_0x962550,_0x1af8ee){return _0x962550-_0x1af8ee;},'EdcRK':function(_0x47e0db,_0xe68fda){return _0xb47ea['ACCJy'](_0x47e0db,_0xe68fda);}},_0x5b7c88=Date[_0x244a71(0x232)](),_0x2a2bd9=loadWs();if(_0x2a2bd9===undefined)return _0xb47ea[_0x244a71(0x242)](_0x2b527e,{'ok':![],'elapsedMs':0x0,'reply':'','error':_0xb47ea['UQuwq']});let _0x1e97c8;try{_0x2a2bd9?_0x1e97c8=new _0x2a2bd9(RELAY_URL):_0x1e97c8=new globalThis['WebSocket'](RELAY_URL);}catch(_0x23e44d){return _0xb47ea[_0x244a71(0x223)](_0x2b527e,{'ok':![],'elapsedMs':0x0,'reply':'','error':'connect\x20failed:\x20'+_0x23e44d[_0x244a71(0x245)]});}let _0xc5a7d1='',_0x1d149e=![],_0x3e7991=![],_0x1e5ab0=![];const _0x4aa043=_0x47a655=>{const _0x275f80=_0x244a71,_0x441f89={'rmuzr':function(_0x3b21ab,_0x62e82e){const _0x28dc93=_0x54e1;return _0xb47ea[_0x28dc93(0x1de)](_0x3b21ab,_0x62e82e);}};if(_0xb47ea[_0x275f80(0x230)]!==_0x275f80(0x20c)){if(_0x1e5ab0)return;_0x1e5ab0=!![];try{if(_0xb47ea[_0x275f80(0x1df)](_0xb47ea[_0x275f80(0x1dc)],'BVCpx')){if(!_0x384b14)return'(empty)';const _0x3d0734=_0x1db9fc['replace'](/\s+/g,'\x20')['trim']();return _0x441f89['rmuzr'](_0x3d0734[_0x275f80(0x1ce)],0x30)?'\x22'+_0x3d0734['slice'](0x0,0x2d)+'…\x22':'\x22'+_0x3d0734+'\x22';}else _0x1e97c8['close']();}catch{}_0xb47ea[_0x275f80(0x219)](_0x2b527e,_0x47a655);}else _0x33c97a=!![],_0x4964b9+=_0x2169e9[_0x275f80(0x24a)];},_0x7658dc=setTimeout(()=>{const _0x5de7c9=_0x244a71,_0x1dac47=_0xb47ea['bkSKM'](Date['now'](),_0x5b7c88);_0xb47ea[_0x5de7c9(0x239)](_0x1d149e,_0x3e7991)?_0x4aa043({'ok':!![],'elapsedMs':_0x1dac47,'reply':_0xc5a7d1[_0x5de7c9(0x208)]()||'(empty)','error':''}):_0xb47ea[_0x5de7c9(0x219)](_0x4aa043,{'ok':![],'elapsedMs':_0x1dac47,'reply':'','error':_0xb47ea['EaGkj']});},STAGE_B_TIMEOUT_MS),_0x27b57d=_0xa05223=>{const _0x2d57ee=_0x244a71,_0x424406={'yPfnw':function(_0x3f4b7e,_0x5ce621){return _0x3f4b7e-_0x5ce621;},'xDXPG':function(_0x21a9ad,_0x288c72){return _0x21a9ad-_0x288c72;}};try{if(_0xb47ea['Cqcqz'](_0xb47ea['LZGUz'],_0xb47ea['LZGUz'])){if(_0x592f77)return;_0x4a5e5a(_0x2e48f5),_0x1dc18a||_0x501cf9?_0x5a0d66({'ok':!![],'elapsedMs':_0x424406['yPfnw'](_0x4ce189[_0x2d57ee(0x232)](),_0x105604),'reply':_0x3a952e['trim']()||_0x2d57ee(0x1d9),'error':''}):_0xf67b92({'ok':![],'elapsedMs':_0x424406['xDXPG'](_0xbdf17f['now'](),_0x37d4ae),'reply':'','error':_0x2d57ee(0x21d)});}else _0x1e97c8[_0x2d57ee(0x22e)](JSON['stringify'](_0xa05223));}catch(_0x4b11fd){clearTimeout(_0x7658dc),_0xb47ea['chEzY'](_0x4aa043,{'ok':![],'elapsedMs':_0xb47ea[_0x2d57ee(0x1ff)](Date[_0x2d57ee(0x232)](),_0x5b7c88),'reply':'','error':_0x2d57ee(0x23a)+_0x4b11fd['message']});}},_0x28110e=()=>{const _0x2d6416=_0x244a71,_0x414b8d={'UZtGj':_0xb47ea['duifL'],'qoxLj':function(_0x353807,_0x491738){return _0xb47ea['FqeFU'](_0x353807,_0x491738);},'SrIAW':_0xb47ea[_0x2d6416(0x23c)],'Taing':function(_0x442003,_0x362e47){return _0x442003(_0x362e47);},'wyWbQ':_0x2d6416(0x24b),'azAbu':function(_0x4cb093,_0x31b132){return _0x4cb093+_0x31b132;},'MhMtU':'copilot-smoke-'};_0xb47ea['OXIKF'](_0x27b57d,{'type':_0x2d6416(0x218),'provider':_0x2d6416(0x220)}),_0xb47ea[_0x2d6416(0x1cf)](setTimeout,()=>{const _0x2f35ef=_0x2d6416,_0x4b855d={'JVvHe':_0x2f35ef(0x245),'sUDco':_0x414b8d[_0x2f35ef(0x1f6)]};_0x414b8d[_0x2f35ef(0x22f)]('Izbvg',_0x414b8d[_0x2f35ef(0x20b)])?_0x414b8d[_0x2f35ef(0x207)](_0x27b57d,{'type':_0x414b8d[_0x2f35ef(0x209)],'id':_0x414b8d['azAbu'](_0x414b8d['MhMtU'],Date['now']()),'mode':_0x2f35ef(0x24b),'message':SMOKE_PROMPT,'model':DEFAULT_MODEL}):(_0x3bb555['on'](_0x2f35ef(0x243),_0x56fd07),_0x233528['on'](_0x4b855d['JVvHe'],_0x1a1a89),_0x5f2eda['on']('error',_0x3f611a),_0x399c84['on'](_0x4b855d[_0x2f35ef(0x1e9)],_0x5e5fdb));},0x96);},_0x463334=_0x5e93ab=>{const _0x16cc1d=_0x244a71,_0x17ce70={'WsJxv':function(_0x20b692,_0x59228f){return _0x20b692(_0x59228f);},'SduDz':_0xb47ea[_0x16cc1d(0x22c)]};if(_0xb47ea['SKELr']!=='uXxPw')_0x4eacd6({'type':_0x16cc1d(0x218),'provider':_0x21cb51[_0x16cc1d(0x213)]}),_0x22ca05(()=>{const _0x5cddf3=_0x16cc1d;LQGLeH['WsJxv'](_0x5488b9,{'type':'chat','id':'copilot-smoke-'+_0x38cb07['now'](),'mode':_0x5cddf3(0x24b),'message':_0x3b74fe,'model':_0x508272});},0x96);else{const _0x27bd1f=_0xb47ea[_0x16cc1d(0x231)](typeof _0x5e93ab,'string')?_0x5e93ab:_0x5e93ab&&_0xb47ea[_0x16cc1d(0x22a)](_0x5e93ab['data'],undefined)?String(_0x5e93ab['data']):_0x5e93ab['toString']();let _0x51fa6c;try{_0x51fa6c=JSON[_0x16cc1d(0x1fa)](_0x27bd1f);}catch{if(_0xb47ea['YdDJH'](_0x16cc1d(0x229),_0x16cc1d(0x229)))_0x21cb51[_0x16cc1d(0x1ec)](_0x27960a,{'ok':!![],'elapsedMs':_0x496509,'reply':_0x515945,'error':''});else return;}if(!_0x51fa6c||typeof _0x51fa6c!==_0xb47ea['UcHNp'])return;if(_0x51fa6c['type']===_0x16cc1d(0x238)&&typeof _0x51fa6c['delta']==='string')_0x1d149e=!![],_0xc5a7d1+=_0x51fa6c['delta'];else{if(_0xb47ea['FqeFU'](_0x51fa6c[_0x16cc1d(0x240)],_0x16cc1d(0x241))){_0x3e7991=!![];typeof _0x51fa6c[_0x16cc1d(0x24c)]===_0xb47ea['UAxGS']&&_0x51fa6c['fullText'][_0x16cc1d(0x1ce)]>0x0&&(_0xc5a7d1=_0x51fa6c[_0x16cc1d(0x24c)]);clearTimeout(_0x7658dc);const _0xd82a05=Date['now']()-_0x5b7c88,_0x1c4c69=_0xc5a7d1[_0x16cc1d(0x208)]();_0x1c4c69['length']>0x0?_0xb47ea[_0x16cc1d(0x224)]!==_0x16cc1d(0x221)?_0xb47ea[_0x16cc1d(0x21a)](_0x4aa043,{'ok':!![],'elapsedMs':_0xd82a05,'reply':_0x1c4c69,'error':''}):_0x26bfcc[_0x16cc1d(0x1e8)]():_0xb47ea['DeIvf'](_0xb47ea['EnpWu'],_0x16cc1d(0x1da))?_0x4aa043({'ok':![],'elapsedMs':_0xd82a05,'reply':'','error':'done\x20frame\x20with\x20empty\x20fullText'}):_0x3b2a0d({'ok':![],'elapsedMs':_0x3b3874,'reply':'','error':_0x17ce70['SduDz']});}else _0x51fa6c['type']===_0xb47ea['tIlgW']&&(_0xb47ea[_0x16cc1d(0x21a)](clearTimeout,_0x7658dc),_0xb47ea['OXIKF'](_0x4aa043,{'ok':![],'elapsedMs':Date['now']()-_0x5b7c88,'reply':'','error':_0xb47ea['chEzY'](String,_0x51fa6c[_0x16cc1d(0x1e5)]||_0x16cc1d(0x248))}));}}},_0xb0774a=_0x51dda6=>{const _0x45d1cc=_0x244a71;clearTimeout(_0x7658dc),_0x4aa043({'ok':![],'elapsedMs':Date['now']()-_0x5b7c88,'reply':'','error':'relay\x20not\x20reachable\x20at\x20'+RELAY_URL+':\x20'+(_0x51dda6&&_0x51dda6[_0x45d1cc(0x245)]?_0x51dda6['message']:_0x51dda6)});},_0x498bb8=()=>{const _0x184b88=_0x244a71;if(_0x1e5ab0)return;_0x21cb51['ywsNd'](clearTimeout,_0x7658dc),_0x21cb51[_0x184b88(0x217)](_0x1d149e,_0x3e7991)?_0x21cb51['DnaCM'](_0x4aa043,{'ok':!![],'elapsedMs':_0x21cb51[_0x184b88(0x1f0)](Date[_0x184b88(0x232)](),_0x5b7c88),'reply':_0xc5a7d1['trim']()||_0x184b88(0x1d9),'error':''}):_0x21cb51[_0x184b88(0x21c)](_0x4aa043,{'ok':![],'elapsedMs':Date[_0x184b88(0x232)]()-_0x5b7c88,'reply':'','error':_0x184b88(0x21d)});};_0xb47ea[_0x244a71(0x1fb)](typeof _0x1e97c8['on'],_0x244a71(0x1d6))?(_0x1e97c8['on'](_0xb47ea[_0x244a71(0x235)],_0x28110e),_0x1e97c8['on']('message',_0x463334),_0x1e97c8['on'](_0xb47ea['tIlgW'],_0xb0774a),_0x1e97c8['on'](_0xb47ea[_0x244a71(0x23f)],_0x498bb8)):(_0x1e97c8[_0x244a71(0x246)](_0x244a71(0x243),_0x28110e),_0x1e97c8['addEventListener'](_0xb47ea[_0x244a71(0x1eb)],_0x463334),_0x1e97c8[_0x244a71(0x246)]('error',_0xb0774a),_0x1e97c8[_0x244a71(0x246)](_0x244a71(0x1e8),_0x498bb8));});}function formatReply(_0x49e648){const _0x3c4554=_0x4d85fd,_0x820c4d={'aXjOb':_0x3c4554(0x1d9),'QiRoZ':function(_0x390ebe,_0x12dd0e){return _0x390ebe>_0x12dd0e;}};if(!_0x49e648)return _0x820c4d['aXjOb'];const _0x30d406=_0x49e648['replace'](/\s+/g,'\x20')['trim']();return _0x820c4d[_0x3c4554(0x20d)](_0x30d406[_0x3c4554(0x1ce)],0x30)?'\x22'+_0x30d406[_0x3c4554(0x1d5)](0x0,0x2d)+'…\x22':'\x22'+_0x30d406+'\x22';}function formatLine(_0x3c03a4,_0x251593,_0x226893){const _0x175058=_0x4d85fd,_0x5208d2={'yKlAi':'✔\x20pass','ZOaDI':function(_0x1a24ce,_0xd6e536){return _0x1a24ce(_0xd6e536);}},_0x413b03=_0x251593['ok']?_0x5208d2['yKlAi']:'❌\x20fail',_0x4c0b89=(_0x251593[_0x175058(0x1f1)]/0x3e8)['toFixed'](0x1)+'s',_0xfd3c14=_0x251593['ok']?_0x4c0b89+',\x20'+_0x5208d2[_0x175058(0x1f5)](formatReply,_0x251593['reply']):''+(_0x251593['error']||'unknown\x20error'),_0x5ba8bd=_0x251593['ok']?'':'\x20\x20—\x20'+_0x226893;return'\x20\x20\x20'+_0x3c03a4[_0x175058(0x1e6)](0x14)+_0x175058(0x205)+_0x413b03+'\x20('+_0xfd3c14+')'+_0x5ba8bd;}async function main(){const _0x331120=_0x4d85fd,_0x35ba90={'mtBkk':function(_0x3c6319){return _0x3c6319();},'IHTfL':function(_0x5529e1,_0x57de68){return _0x5529e1(_0x57de68);},'LmqXy':function(_0xdec5f7,_0x4a549a,_0x222d49,_0x377130){return _0xdec5f7(_0x4a549a,_0x222d49,_0x377130);},'sRZAz':'run\x20`copilot`\x20then\x20/login,\x20or\x20check\x20`~/.copilot/config.json`','Gtgkb':_0x331120(0x202),'LdXOn':'Copilot\x20end-to-end'},_0x48688b=_0x35ba90['mtBkk'](resolveCopilotBin);!_0x48688b&&(console['log'](''),console['log']('\x20\x20\x20Copilot\x20smoke\x20test\x20skipped\x20—\x20no\x20@github/copilot\x20CLI\x20found\x20on\x20PATH.'),console['log'](_0x331120(0x22d)),process[_0x331120(0x1e0)](0x2));_0x35ba90[_0x331120(0x206)](isVscodeStub,_0x48688b)&&(console['log'](''),console['log']('\x20\x20\x20Copilot\x20smoke\x20test\x20skipped\x20—\x20resolved\x20to\x20the\x20VS\x20Code\x20stub\x20('+_0x48688b+').'),console['log']('\x20\x20\x20Install\x20the\x20real\x20CLI:\x20npm\x20install\x20-g\x20@github/copilot'),process['exit'](0x2));console[_0x331120(0x200)](''),console['log']('\x20\x20\x20Copilot\x20binary\x20\x20\x20\x20\x20\x20\x20\x20:\x20'+_0x48688b);const _0x34c2ff=await _0x35ba90['IHTfL'](runStageA,_0x48688b);console['log'](_0x35ba90['LmqXy'](formatLine,_0x331120(0x226),_0x34c2ff,_0x35ba90['sRZAz']));const _0x336067=await runStageB();console['log'](_0x35ba90['LmqXy'](formatLine,_0x35ba90['Gtgkb'],_0x336067,_0x331120(0x228)+process.env.HOME+'/.figma-bridge-relay.log\x20and\x20confirm\x20relay\x20is\x20running\x20on\x20:9001'));const _0x4c7313=_0x34c2ff['ok']&&_0x336067['ok'];console['log']('\x20\x20\x20'+_0x35ba90[_0x331120(0x23b)][_0x331120(0x1e6)](0x14)+'\x20:\x20'+(_0x4c7313?'✔\x20ready':'❌\x20not\x20ready')),console['log'](''),process[_0x331120(0x1e0)](_0x4c7313?0x0:0x1);}function _0x5510(){const _0x31c1ca=['C0vJrfG','y2HfELK','sxPIDMC','rwrJuKS','C29JA2v0ignSB3nLzcbIzwzVCMuGyw55ihjLC3bVBNnL','u0Lhvevstq','mZKYnJj3Euvewvq','y29WAwXVDa','q1HHzLq','Ce1ZAfK','tLfMDfC','ENDLtfK','uKXIzgO','q29WAwXVDcbdteKGzgLYzwn0','AM9PBG','y2HLy2SG','DhjqtKK','CM50tuu','oe5WAgzwtW','ALHkD1K','icaGsw5ZDgfSBcb3AxrOoIbUCg0GAw5ZDgfSBcaTzYbaz2L0AhvIl2nVCgLSB3q','C2vUza','Cw94tgO','A1H1t24','rNfLrLu','BM93','mtjktfzNu2S','nJqWuK5tvfPU','rfLIDMG','mti4mtK2zgXSugzv','rePovNy','Dgv4Df9KzwX0yq','uNbtzu8','C2vUzcbMywLSzwq6ia','tgryt24','CMfwwwO','mtmWmZe4ntH5zunAC2K','zgf0yq','zhvPzKW','DhLWzq','zg9Uzq','B3PeyKu','B3bLBG','yKf2qNu','BwvZC2fNzq','ywrKrxzLBNrmAxn0zw5LCG','sKzesKO','CMvSyxKGzxjYB3i','A2LSBa','zgvSDge','y2HHDa','zNvSBfrLEhq','AvfJqwW','BxDKzxe','zu5JwMi','BgvUz3rO','C0rbquu','y29WAwXVDc1ZBw9Rzs0','nKvOAMTRBW','AwDUB3jL','AwjNBum','zg9UzsbMCMfTzsb3AxrOigvTChr5igz1BgXuzxH0','C2XPy2u','zNvUy3rPB24','Dg9tDhjPBMC','CgLWzq','kgvTChr5kq','r2TXB2y','D2HPy2G','BLjWweC','uen4rgK','Cvveyum','q3fJCxO','zxHPDa','BLfivue','l29WDc9OB21LyNjLDY9IAw4Vy29WAwXVDa','rujIrM4','mZq4nZuWnxvZqMXpzW','zxjYB3i','CgfKrw5K','Du1iBfy','y2XVC2u','C1vey28','zMLNBweTyNjPzgDLlxbSDwDPBG','uKryEKi','yuzMs0S','mtuWnZe5mufeuu5TBG','vKHwy0W','D3m6lY9SB2nHBgHVC3q6otaWms9WBhvNAw4','C3PZC3u','zwXHChnLze1Z','B0TuCNG','wfvHzeW','v2vIu29JA2v0','wK9HreK','vvP0r2O','v3HVsMS','svblzNm','ndiYnenov1jRsG','CgfYC2u','z0rXs0e','DgvZDa','qwzcAfO','zxHPDca','D3fJEKe','Bg9N','AxDoyum','q29WAwXVDcb2AweGCMvSyxK','C3rYAw5N','otGZmJHWu21Kv0i','idOG','suHuzKW','vgfPBMC','DhjPBq','D3LxyLe','tLLLA1y','u3jjqvC','qMLstwC','uwLsB1O','C3rKB3v0','tMvPyMe','CMvZB2X2zq','mJe5ntG4ngD1ELrhuW','u0Lhs0Lmta','AK93zwu','lM5WBs1NBg9IywW','y2f0y2G','CNP1uuS','vKPLr3i','C2v0lxbYB3zPzgvY'];_0x5510=function(){return _0x31c1ca;};return _0x5510();}function _0x54e1(_0x3e3783,_0x17a871){_0x3e3783=_0x3e3783-0x1cc;const _0x5510ab=_0x5510();let _0x54e137=_0x5510ab[_0x3e3783];if(_0x54e1['crahNM']===undefined){var _0x4275c9=function(_0x4144e4){const _0x50f331='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2cbbcd='',_0xeaf018='';for(let _0xbb4119=0x0,_0x242c65,_0x9a11b4,_0x1ec7ab=0x0;_0x9a11b4=_0x4144e4['charAt'](_0x1ec7ab++);~_0x9a11b4&&(_0x242c65=_0xbb4119%0x4?_0x242c65*0x40+_0x9a11b4:_0x9a11b4,_0xbb4119++%0x4)?_0x2cbbcd+=String['fromCharCode'](0xff&_0x242c65>>(-0x2*_0xbb4119&0x6)):0x0){_0x9a11b4=_0x50f331['indexOf'](_0x9a11b4);}for(let _0x521343=0x0,_0x50569f=_0x2cbbcd['length'];_0x521343<_0x50569f;_0x521343++){_0xeaf018+='%'+('00'+_0x2cbbcd['charCodeAt'](_0x521343)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xeaf018);};_0x54e1['KrAohm']=_0x4275c9,_0x54e1['zTDeNY']={},_0x54e1['crahNM']=!![];}const _0x3da98e=_0x5510ab[0x0],_0x33786b=_0x3e3783+_0x3da98e,_0x6176f1=_0x54e1['zTDeNY'][_0x33786b];return!_0x6176f1?(_0x54e137=_0x54e1['KrAohm'](_0x54e137),_0x54e1['zTDeNY'][_0x33786b]=_0x54e137):_0x54e137=_0x6176f1,_0x54e137;}main()[_0x4d85fd(0x215)](_0x27ad04=>{const _0xa36d3d=_0x4d85fd;console['error']('\x20\x20\x20Copilot\x20smoke\x20test\x20crashed:',_0x27ad04&&_0x27ad04['message']?_0x27ad04[_0xa36d3d(0x245)]:_0x27ad04),process[_0xa36d3d(0x1e0)](0x1);});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sarjallab09/figma-intelligence",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "88 AI-powered design tools for Figma. Works with your Claude, OpenAI Codex, or Gemini CLI subscription. One command to set up.",
|
|
5
5
|
"author": "Figma Intelligence Contributors",
|
|
6
6
|
"license": "CC-BY-NC-ND-4.0",
|