yo-moss-ai 0.0.20 → 0.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/bin/runtime-manifest.json +1 -1
  2. package/dist/assets/esp-flasher-CLKzE7JE.js +2 -2
  3. package/dist/assets/index-C1bPuFAs.js +45 -0
  4. package/dist/assets/{index-Bcf5kQZF.css → index-CzQKR67c.css} +1 -1
  5. package/dist/index.html +2 -2
  6. package/dist-server/board-presets.mjs +1 -1
  7. package/dist-server/camera.mjs +1 -1
  8. package/dist-server/dev-ui.mjs +1 -1
  9. package/dist-server/device-chat-sync.mjs +1 -1
  10. package/dist-server/device-config-view.mjs +1 -1
  11. package/dist-server/device-focus.mjs +1 -1
  12. package/dist-server/device-http.mjs +1 -1
  13. package/dist-server/device-identity.mjs +1 -1
  14. package/dist-server/device-presence.mjs +1 -1
  15. package/dist-server/device-probe.mjs +1 -1
  16. package/dist-server/device-registry.mjs +1 -1
  17. package/dist-server/device-routes.mjs +1 -1
  18. package/dist-server/device-runtime.mjs +1 -1
  19. package/dist-server/device-session.mjs +1 -1
  20. package/dist-server/ffmpeg.mjs +1 -1
  21. package/dist-server/gimbal-control.mjs +1 -1
  22. package/dist-server/home-path.mjs +1 -1
  23. package/dist-server/index.mjs +1 -1
  24. package/dist-server/ir-import-validate.mjs +1 -1
  25. package/dist-server/known-scan-device.mjs +1 -1
  26. package/dist-server/lan-discover.mjs +1 -1
  27. package/dist-server/listen-port.mjs +1 -1
  28. package/dist-server/mcp/backoff.mjs +1 -1
  29. package/dist-server/mcp/bridge-manager.mjs +1 -1
  30. package/dist-server/mcp/builtin-tools.mjs +1 -1
  31. package/dist-server/mcp/dedupe-servers.mjs +1 -1
  32. package/dist-server/mcp/doctor.mjs +1 -1
  33. package/dist-server/mcp/fixtures/echo-mcp.mjs +1 -1
  34. package/dist-server/mcp/fixtures/hotkey-mcp.mjs +1 -1
  35. package/dist-server/mcp/fixtures/mihome-mcp.mjs +1 -1
  36. package/dist-server/mcp/fixtures/onvif-mcp.mjs +1 -1
  37. package/dist-server/mcp/fixtures/shell-mcp.mjs +1 -1
  38. package/dist-server/mcp/fixtures/yunxiangji-mcp.mjs +1 -1
  39. package/dist-server/mcp/hotkey-agent-docs.mjs +1 -1
  40. package/dist-server/mcp/hotkey-driver.mjs +1 -1
  41. package/dist-server/mcp/hotkey-handlers.mjs +1 -1
  42. package/dist-server/mcp/hotkey-import-validate.mjs +1 -1
  43. package/dist-server/mcp/hotkey-store.mjs +1 -1
  44. package/dist-server/mcp/http-client.mjs +1 -1
  45. package/dist-server/mcp/http-pipe.mjs +1 -1
  46. package/dist-server/mcp/local-probe.mjs +1 -1
  47. package/dist-server/mcp/marketplace.mjs +1 -1
  48. package/dist-server/mcp/onvif-handlers.mjs +1 -1
  49. package/dist-server/mcp/parse-server-json.mjs +1 -1
  50. package/dist-server/mcp/paths.mjs +1 -1
  51. package/dist-server/mcp/routes.mjs +1 -1
  52. package/dist-server/mcp/schema.mjs +1 -1
  53. package/dist-server/mcp/settings.mjs +1 -1
  54. package/dist-server/mcp/shell-approval.mjs +1 -1
  55. package/dist-server/mcp/shell-policy.mjs +1 -1
  56. package/dist-server/mcp/shell-trash.mjs +1 -1
  57. package/dist-server/mcp/stdio-pipe.mjs +1 -1
  58. package/dist-server/mcp/store.mjs +1 -1
  59. package/dist-server/mcp/task-notify.mjs +1 -1
  60. package/dist-server/mcp/ws-connect.mjs +1 -1
  61. package/dist-server/mcp/yunxiangji.mjs +1 -1
  62. package/dist-server/media-cache.mjs +1 -1
  63. package/dist-server/mihome/cloud.mjs +1 -1
  64. package/dist-server/mihome/devices.mjs +1 -1
  65. package/dist-server/mihome/local.mjs +1 -1
  66. package/dist-server/mihome/mcp-desc.mjs +1 -1
  67. package/dist-server/mihome/queue.mjs +1 -1
  68. package/dist-server/mihome/rc4.mjs +1 -1
  69. package/dist-server/mihome/routes.mjs +1 -1
  70. package/dist-server/mihome/service.mjs +1 -1
  71. package/dist-server/mihome/sign.mjs +1 -1
  72. package/dist-server/mihome/spec.mjs +1 -1
  73. package/dist-server/mihome/store.mjs +1 -1
  74. package/dist-server/onboard-preview.mjs +1 -1
  75. package/dist-server/tab-focus.mjs +1 -1
  76. package/dist-server/voice-wake.mjs +1 -1
  77. package/package.json +1 -1
  78. package/dist/assets/index-DPFHeUnK.js +0 -45
@@ -1 +1 @@
1
- (function(_0x5cf1c9,_0x43b8aa){const _0x4fe3c2=_0x4bd1,_0x461424=_0x5cf1c9();while(!![]){try{const _0x15564f=-parseInt(_0x4fe3c2(0xd5))/0x1*(parseInt(_0x4fe3c2(0xda))/0x2)+parseInt(_0x4fe3c2(0xce))/0x3*(-parseInt(_0x4fe3c2(0xd6))/0x4)+-parseInt(_0x4fe3c2(0xcf))/0x5*(-parseInt(_0x4fe3c2(0xcd))/0x6)+parseInt(_0x4fe3c2(0xd1))/0x7+parseInt(_0x4fe3c2(0xd9))/0x8+-parseInt(_0x4fe3c2(0xcc))/0x9*(parseInt(_0x4fe3c2(0xd4))/0xa)+parseInt(_0x4fe3c2(0xd3))/0xb*(-parseInt(_0x4fe3c2(0xcb))/0xc);if(_0x15564f===_0x43b8aa)break;else _0x461424['push'](_0x461424['shift']());}catch(_0x5dc744){_0x461424['push'](_0x461424['shift']());}}}(_0x42b3,0xd040b));function _0x4bd1(_0xcbfab8,_0x454327){_0xcbfab8=_0xcbfab8-0xcb;const _0x42b38b=_0x42b3();let _0x4bd104=_0x42b38b[_0xcbfab8];if(_0x4bd1['PoxOMk']===undefined){var _0x39bd0b=function(_0x5580d1){const _0x14f2ee='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3ae179='',_0x52df58='';for(let _0x12589b=0x0,_0x21fb6e,_0x4ffe74,_0x3ec82c=0x0;_0x4ffe74=_0x5580d1['charAt'](_0x3ec82c++);~_0x4ffe74&&(_0x21fb6e=_0x12589b%0x4?_0x21fb6e*0x40+_0x4ffe74:_0x4ffe74,_0x12589b++%0x4)?_0x3ae179+=String['fromCharCode'](0xff&_0x21fb6e>>(-0x2*_0x12589b&0x6)):0x0){_0x4ffe74=_0x14f2ee['indexOf'](_0x4ffe74);}for(let _0x1bd172=0x0,_0x19b422=_0x3ae179['length'];_0x1bd172<_0x19b422;_0x1bd172++){_0x52df58+='%'+('00'+_0x3ae179['charCodeAt'](_0x1bd172)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x52df58);};_0x4bd1['jOEYOw']=_0x39bd0b,_0x4bd1['tlwCHd']={},_0x4bd1['PoxOMk']=!![];}const _0x384105=_0x42b38b[0x0],_0x249db4=_0xcbfab8+_0x384105,_0x1e8852=_0x4bd1['tlwCHd'][_0x249db4];return!_0x1e8852?(_0x4bd104=_0x4bd1['jOEYOw'](_0x4bd104),_0x4bd1['tlwCHd'][_0x249db4]=_0x4bd104):_0x4bd104=_0x1e8852,_0x4bd104;}function _0x42b3(){const _0x4254a9=['DhjPBq','mteZmtG2ntbLvfrIwM0','AxnbCNjH','mJjfrfnfDvG','mZbRExzeuM8','mtC2ntDTq1n0BMy','mZm1odCWofD1r0jAyW','zMLUza','y2XPzw50','nte1ota0mfbUuxz2ta','nZH2AMf2suG','mtuZote2oe5Tyxvhta','mtCXmZuXowTRCwPYsG','mtjYqMfervu','m0LRqMnMCq','mJm2nZKZnvnbDfHPBa'];_0x42b3=function(){return _0x4254a9;};return _0x42b3();}export function deviceMatches(_0x3ae179,_0x52df58){const _0x529f9b=_0x4bd1,_0x12589b=String(_0x52df58||'')[_0x529f9b(0xd0)]();if(!_0x12589b||!_0x3ae179)return![];return _0x3ae179['id']===_0x12589b||_0x3ae179['mac']===_0x12589b||_0x3ae179[_0x529f9b(0xd8)+'Id']===_0x12589b;}export function pickFocusedDeviceId(_0x21fb6e,_0x4ffe74=[]){const _0x9ef9e3=_0x4bd1,_0x3ec82c=String(_0x21fb6e||'')[_0x9ef9e3(0xd0)]();if(!_0x3ec82c)return'';const _0x1bd172=(Array[_0x9ef9e3(0xd2)+'y'](_0x4ffe74)?_0x4ffe74:[])[_0x9ef9e3(0xd7)](_0x19b422=>deviceMatches(_0x19b422,_0x3ec82c));return _0x1bd172?.['id']||_0x3ec82c;}export function withDeviceQuery(_0x1d6d4f,_0x1c51fb){const _0x1defd4=String(_0x1c51fb||'')['trim']();if(!_0x1d6d4f)return _0x1d6d4f;if(!_0x1defd4)return _0x1d6d4f;return{'path':_0x1d6d4f,'query':{'device':_0x1defd4}};}
1
+ (function(_0x41f13b,_0xb49f74){const _0x3dc0e1=_0x14ac,_0x45434f=_0x41f13b();while(!![]){try{const _0x5c0472=-parseInt(_0x3dc0e1(0x1ca))/0x1*(parseInt(_0x3dc0e1(0x1cb))/0x2)+parseInt(_0x3dc0e1(0x1c7))/0x3*(-parseInt(_0x3dc0e1(0x1c4))/0x4)+parseInt(_0x3dc0e1(0x1d0))/0x5*(-parseInt(_0x3dc0e1(0x1c9))/0x6)+-parseInt(_0x3dc0e1(0x1c1))/0x7+-parseInt(_0x3dc0e1(0x1c8))/0x8*(-parseInt(_0x3dc0e1(0x1cc))/0x9)+-parseInt(_0x3dc0e1(0x1c2))/0xa*(parseInt(_0x3dc0e1(0x1cd))/0xb)+-parseInt(_0x3dc0e1(0x1ce))/0xc*(-parseInt(_0x3dc0e1(0x1d1))/0xd);if(_0x5c0472===_0xb49f74)break;else _0x45434f['push'](_0x45434f['shift']());}catch(_0x57189c){_0x45434f['push'](_0x45434f['shift']());}}}(_0x46ca,0x9bc41));function _0x46ca(){const _0x2e7cd6=['nJK2ntuWmMjHB0rvra','ndq3ENLlwMLS','mJGZnMXLAffjsq','mJuYmtq3nM94EfHnzG','mJjbq2zxD28','mtG4nZi1mNfwt1byEq','zMLUza','nuHZv2vMCq','mZuXwKHgtfPd','mtm0odyYufDrCLfu','ntGZnduZmfPdqw9quG','DhjPBq','mZy1ndq0y2z0z1Dq','AxnbCNjH','y2XPzw50','mZLywLb2rgi','mtzurLr5Au8'];_0x46ca=function(){return _0x2e7cd6;};return _0x46ca();}export function deviceMatches(_0x3a8493,_0x52b322){const _0x290ede=_0x14ac,_0x3d6b52=String(_0x52b322||'')[_0x290ede(0x1c3)]();if(!_0x3d6b52||!_0x3a8493)return![];return _0x3a8493['id']===_0x3d6b52||_0x3a8493['mac']===_0x3d6b52||_0x3a8493[_0x290ede(0x1c6)+'Id']===_0x3d6b52;}export function pickFocusedDeviceId(_0x26f3b0,_0x8edc2e=[]){const _0x1b55bf=_0x14ac,_0x6b74e1=String(_0x26f3b0||'')['trim']();if(!_0x6b74e1)return'';const _0x54e9c8=(Array[_0x1b55bf(0x1c5)+'y'](_0x8edc2e)?_0x8edc2e:[])[_0x1b55bf(0x1cf)](_0x3d411c=>deviceMatches(_0x3d411c,_0x6b74e1));return _0x54e9c8?.['id']||_0x6b74e1;}function _0x14ac(_0x2661f1,_0x30b674){_0x2661f1=_0x2661f1-0x1c1;const _0x46ca4c=_0x46ca();let _0x14ac78=_0x46ca4c[_0x2661f1];if(_0x14ac['BVSbYj']===undefined){var _0x5145d5=function(_0x52b6a9){const _0x238e31='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3a8493='',_0x52b322='';for(let _0x3d6b52=0x0,_0x26f3b0,_0x8edc2e,_0x6b74e1=0x0;_0x8edc2e=_0x52b6a9['charAt'](_0x6b74e1++);~_0x8edc2e&&(_0x26f3b0=_0x3d6b52%0x4?_0x26f3b0*0x40+_0x8edc2e:_0x8edc2e,_0x3d6b52++%0x4)?_0x3a8493+=String['fromCharCode'](0xff&_0x26f3b0>>(-0x2*_0x3d6b52&0x6)):0x0){_0x8edc2e=_0x238e31['indexOf'](_0x8edc2e);}for(let _0x54e9c8=0x0,_0x3d411c=_0x3a8493['length'];_0x54e9c8<_0x3d411c;_0x54e9c8++){_0x52b322+='%'+('00'+_0x3a8493['charCodeAt'](_0x54e9c8)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x52b322);};_0x14ac['EcriZf']=_0x5145d5,_0x14ac['MRLtFe']={},_0x14ac['BVSbYj']=!![];}const _0x50cee8=_0x46ca4c[0x0],_0x412c2e=_0x2661f1+_0x50cee8,_0x5312da=_0x14ac['MRLtFe'][_0x412c2e];return!_0x5312da?(_0x14ac78=_0x14ac['EcriZf'](_0x14ac78),_0x14ac['MRLtFe'][_0x412c2e]=_0x14ac78):_0x14ac78=_0x5312da,_0x14ac78;}export function withDeviceQuery(_0x19b645,_0x64b01c){const _0x381b05=_0x14ac,_0x15f4e9=String(_0x64b01c||'')[_0x381b05(0x1c3)]();if(!_0x19b645)return _0x19b645;if(!_0x15f4e9)return _0x19b645;return{'path':_0x19b645,'query':{'device':_0x15f4e9}};}
@@ -1 +1 @@
1
- const _0x1b66b9=_0x5bf1;(function(_0x31253b,_0x103148){const _0x4f2844=_0x5bf1,_0xf5baf3=_0x31253b();while(!![]){try{const _0x3103ed=parseInt(_0x4f2844(0x1a9))/0x1*(parseInt(_0x4f2844(0x1b1))/0x2)+parseInt(_0x4f2844(0x1ae))/0x3*(parseInt(_0x4f2844(0x1ba))/0x4)+-parseInt(_0x4f2844(0x1be))/0x5+-parseInt(_0x4f2844(0x1bd))/0x6*(parseInt(_0x4f2844(0x1b4))/0x7)+parseInt(_0x4f2844(0x1b3))/0x8*(parseInt(_0x4f2844(0x1b5))/0x9)+-parseInt(_0x4f2844(0x1b7))/0xa*(-parseInt(_0x4f2844(0x1b0))/0xb)+parseInt(_0x4f2844(0x1bc))/0xc*(parseInt(_0x4f2844(0x1bb))/0xd);if(_0x3103ed===_0x103148)break;else _0xf5baf3['push'](_0xf5baf3['shift']());}catch(_0x30c7e0){_0xf5baf3['push'](_0xf5baf3['shift']());}}}(_0x1a30,0xd7bd9));export const WAKE_HOLD_MS=0xfa0;export function voiceFromWakeAck(_0x19b569={}){const _0x23a632=_0x5bf1,_0x12af7f=_0x19b569['ok']!==![],_0x226c75=String(_0x19b569['messag'+'e']||'')[_0x23a632(0x1a7)](),_0x406c24=String(_0x19b569[_0x23a632(0x1ab)]||'')['trim']();if(!_0x12af7f)return{'error':_0x226c75===_0x23a632(0x1a8)+_0x23a632(0x1b6)?_0x23a632(0x1a8)+_0x23a632(0x1b6):_0x226c75||_0x23a632(0x1aa)};if(_0x226c75===_0x23a632(0x1a8)+_0x23a632(0x1b6))return{'voice':_0x23a632(0x1a8)+_0x23a632(0x1b6),'skipInvoke':!![]};if(_0x226c75==='toggli'+'ng')return{'voice':_0x23a632(0x1b8)};if(_0x226c75===_0x23a632(0x1b2))return{'voice':_0x23a632(0x1a8)+_0x23a632(0x1b6)};if(_0x406c24===_0x23a632(0x1bf)+'ing'||_0x406c24===_0x23a632(0x1ad)+'ng'||_0x406c24===_0x23a632(0x1a8)+_0x23a632(0x1b6))return{'voice':_0x406c24};return{'voice':_0x23a632(0x1a8)+_0x23a632(0x1b6)};}function _0x5bf1(_0xb79152,_0xdf4ccf){_0xb79152=_0xb79152-0x1a7;const _0x1a3096=_0x1a30();let _0x5bf1b5=_0x1a3096[_0xb79152];if(_0x5bf1['RuGwtZ']===undefined){var _0x4a0771=function(_0x2d03d0){const _0x260d7c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x19b569='',_0x12af7f='';for(let _0x226c75=0x0,_0x406c24,_0x1382e4,_0x229348=0x0;_0x1382e4=_0x2d03d0['charAt'](_0x229348++);~_0x1382e4&&(_0x406c24=_0x226c75%0x4?_0x406c24*0x40+_0x1382e4:_0x1382e4,_0x226c75++%0x4)?_0x19b569+=String['fromCharCode'](0xff&_0x406c24>>(-0x2*_0x226c75&0x6)):0x0){_0x1382e4=_0x260d7c['indexOf'](_0x1382e4);}for(let _0xe100b5=0x0,_0x530ace=_0x19b569['length'];_0xe100b5<_0x530ace;_0xe100b5++){_0x12af7f+='%'+('00'+_0x19b569['charCodeAt'](_0xe100b5)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x12af7f);};_0x5bf1['skatzP']=_0x4a0771,_0x5bf1['mIptcS']={},_0x5bf1['RuGwtZ']=!![];}const _0x19fcbb=_0x1a3096[0x0],_0x340c87=_0xb79152+_0x19fcbb,_0x1f7220=_0x5bf1['mIptcS'][_0x340c87];return!_0x1f7220?(_0x5bf1b5=_0x5bf1['skatzP'](_0x5bf1b5),_0x5bf1['mIptcS'][_0x340c87]=_0x5bf1b5):_0x5bf1b5=_0x1f7220,_0x5bf1b5;}export function shouldApplyRemoteVoice({remoteVoice:remoteVoice='',localVoice:localVoice='idle',wokeAt:wokeAt=0x0,now:now=Date[_0x1b66b9(0x1af)](),holdMs:holdMs=WAKE_HOLD_MS}={}){const _0x375f33=_0x1b66b9,_0x1382e4=String(remoteVoice||'')[_0x375f33(0x1a7)]();if(!_0x1382e4)return![];const _0x229348=String(localVoice||_0x375f33(0x1b8));if(_0x1382e4===_0x229348)return![];const _0xe100b5=wokeAt>0x0&&now-wokeAt<holdMs;if(_0xe100b5&&_0x229348===_0x375f33(0x1a8)+'ting'&&_0x1382e4==='idle')return![];return!![];}export function canStartWake({online:online=![],voice:voice=_0x1b66b9(0x1b8)}={}){const _0x419d3b=_0x1b66b9;if(!online)return![];return voice===_0x419d3b(0x1b8)||voice==='';}export function canCancelWake({online:online=![],voice:voice=_0x1b66b9(0x1b8)}={}){const _0x327061=_0x1b66b9;if(!online)return![];return voice===_0x327061(0x1bf)+_0x327061(0x1b9)||voice===_0x327061(0x1ad)+'ng'||voice===_0x327061(0x1a8)+_0x327061(0x1b6);}export function localVoiceAfterCancel({voice:voice=_0x1b66b9(0x1b8),ackMessage:ackMessage=''}={}){const _0x4de243=_0x1b66b9;if(voice==='connec'+_0x4de243(0x1b6)||voice===_0x4de243(0x1ac)+_0x4de243(0x1b6))return _0x4de243(0x1b8);if(String(ackMessage)===_0x4de243(0x1c0)+'ng')return _0x4de243(0x1b8);return voice;}function _0x1a30(){const _0x3ff573=['ywn0AxzH','C3bLywTP','mJe0otyYrgPkrNHh','BM93','mtfTCKnuwNa','mJG0mZy2AwDYvxD0','D2fRAw5N','ofPXzLPmrq','mZv3tezQsK8','nJKZntaWngHSANfzwq','DgLUzW','mZK1odC3mgvdr0rvza','AwrSzq','Aw5N','mtzWEe9ovfq','mJz1uvDwrhu','otuYnZu1nKXTzufnsq','mty0ndqXneH4weH3CW','ndy0ntCWmfHdzw91qW','BgLZDgvU','Dg9Nz2XP','DhjPBq','y29UBMvJ','mxvzrM5eBW','yNvZEq','C3rHDgu'];_0x1a30=function(){return _0x3ff573;};return _0x1a30();}
1
+ const _0x59731d=_0xe4e1;(function(_0x2a9bb8,_0x330162){const _0x4ddb2a=_0xe4e1,_0x1d67a7=_0x2a9bb8();while(!![]){try{const _0x42844d=-parseInt(_0x4ddb2a(0x174))/0x1+parseInt(_0x4ddb2a(0x16c))/0x2*(parseInt(_0x4ddb2a(0x163))/0x3)+parseInt(_0x4ddb2a(0x162))/0x4*(-parseInt(_0x4ddb2a(0x179))/0x5)+-parseInt(_0x4ddb2a(0x173))/0x6+-parseInt(_0x4ddb2a(0x178))/0x7+-parseInt(_0x4ddb2a(0x172))/0x8+-parseInt(_0x4ddb2a(0x16d))/0x9*(-parseInt(_0x4ddb2a(0x171))/0xa);if(_0x42844d===_0x330162)break;else _0x1d67a7['push'](_0x1d67a7['shift']());}catch(_0x1859f4){_0x1d67a7['push'](_0x1d67a7['shift']());}}}(_0x4f9a,0x831f6));function _0xe4e1(_0x30acf3,_0x314738){_0x30acf3=_0x30acf3-0x162;const _0x4f9a75=_0x4f9a();let _0xe4e1c7=_0x4f9a75[_0x30acf3];if(_0xe4e1['gUGATs']===undefined){var _0x20f371=function(_0x238878){const _0x5830ed='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x537f46='',_0x4e7783='';for(let _0x215d76=0x0,_0x3eec33,_0x523b1c,_0x34f541=0x0;_0x523b1c=_0x238878['charAt'](_0x34f541++);~_0x523b1c&&(_0x3eec33=_0x215d76%0x4?_0x3eec33*0x40+_0x523b1c:_0x523b1c,_0x215d76++%0x4)?_0x537f46+=String['fromCharCode'](0xff&_0x3eec33>>(-0x2*_0x215d76&0x6)):0x0){_0x523b1c=_0x5830ed['indexOf'](_0x523b1c);}for(let _0x27f49c=0x0,_0x2e51c0=_0x537f46['length'];_0x27f49c<_0x2e51c0;_0x27f49c++){_0x4e7783+='%'+('00'+_0x537f46['charCodeAt'](_0x27f49c)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4e7783);};_0xe4e1['ptxebD']=_0x20f371,_0xe4e1['bbOyxp']={},_0xe4e1['gUGATs']=!![];}const _0x4acb62=_0x4f9a75[0x0],_0xfb2d9=_0x30acf3+_0x4acb62,_0x5d2a0e=_0xe4e1['bbOyxp'][_0xfb2d9];return!_0x5d2a0e?(_0xe4e1c7=_0xe4e1['ptxebD'](_0xe4e1c7),_0xe4e1['bbOyxp'][_0xfb2d9]=_0xe4e1c7):_0xe4e1c7=_0x5d2a0e,_0xe4e1c7;}export const WAKE_HOLD_MS=0xfa0;export function voiceFromWakeAck(_0x537f46={}){const _0x249c68=_0xe4e1,_0x4e7783=_0x537f46['ok']!==![],_0x215d76=String(_0x537f46[_0x249c68(0x167)+'e']||'')[_0x249c68(0x166)](),_0x3eec33=String(_0x537f46[_0x249c68(0x16e)]||'')[_0x249c68(0x166)]();if(!_0x4e7783)return{'error':_0x215d76===_0x249c68(0x177)+'ting'?_0x249c68(0x177)+_0x249c68(0x168):_0x215d76||_0x249c68(0x175)};if(_0x215d76===_0x249c68(0x177)+_0x249c68(0x168))return{'voice':_0x249c68(0x177)+_0x249c68(0x168),'skipInvoke':!![]};if(_0x215d76===_0x249c68(0x169)+'ng')return{'voice':'idle'};if(_0x215d76===_0x249c68(0x170))return{'voice':_0x249c68(0x177)+_0x249c68(0x168)};if(_0x3eec33===_0x249c68(0x165)+_0x249c68(0x176)||_0x3eec33===_0x249c68(0x16a)+'ng'||_0x3eec33===_0x249c68(0x177)+_0x249c68(0x168))return{'voice':_0x3eec33};return{'voice':_0x249c68(0x177)+_0x249c68(0x168)};}export function shouldApplyRemoteVoice({remoteVoice:remoteVoice='',localVoice:localVoice=_0x59731d(0x16f),wokeAt:wokeAt=0x0,now:now=Date[_0x59731d(0x164)](),holdMs:holdMs=WAKE_HOLD_MS}={}){const _0x15c83c=_0x59731d,_0x523b1c=String(remoteVoice||'')[_0x15c83c(0x166)]();if(!_0x523b1c)return![];const _0x34f541=String(localVoice||_0x15c83c(0x16f));if(_0x523b1c===_0x34f541)return![];const _0x27f49c=wokeAt>0x0&&now-wokeAt<holdMs;if(_0x27f49c&&_0x34f541===_0x15c83c(0x177)+_0x15c83c(0x168)&&_0x523b1c===_0x15c83c(0x16f))return![];return!![];}function _0x4f9a(){const _0x5eca42=['m3r2DNzyCq','BM93','BgLZDgvU','DhjPBq','BwvZC2fN','DgLUzW','Dg9Nz2XP','C3bLywTP','ywn0AxzH','mJC1mdu0wMzHtgTJ','oxPPrvfeDq','C3rHDgu','AwrSzq','D2fRAw5N','nda5nZmZmZbdqMPmq1O','odm0nZa0mePfrfDJDG','nJi5nZq5mKjKyM16wa','mJi1odi2BxrozevJ','yNvZEq','Aw5N','y29UBMvJ','ntCXnJmXouDJr2HIAa','nwTZr1DpAG','mJi0otuWoffYDg5Nwa'];_0x4f9a=function(){return _0x5eca42;};return _0x4f9a();}export function canStartWake({online:online=![],voice:voice=_0x59731d(0x16f)}={}){const _0x2a7b64=_0x59731d;if(!online)return![];return voice===_0x2a7b64(0x16f)||voice==='';}export function canCancelWake({online:online=![],voice:voice=_0x59731d(0x16f)}={}){const _0x651a53=_0x59731d;if(!online)return![];return voice===_0x651a53(0x165)+'ing'||voice===_0x651a53(0x16a)+'ng'||voice===_0x651a53(0x177)+_0x651a53(0x168);}export function localVoiceAfterCancel({voice:voice=_0x59731d(0x16f),ackMessage:ackMessage=''}={}){const _0x9eea1f=_0x59731d;if(voice===_0x9eea1f(0x177)+'ting'||voice===_0x9eea1f(0x16b)+_0x9eea1f(0x168))return _0x9eea1f(0x16f);if(String(ackMessage)==='toggli'+'ng')return _0x9eea1f(0x16f);return voice;}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yo-moss-ai",
3
- "version": "0.0.20",
3
+ "version": "0.0.21",
4
4
  "description": "MOSS 配置客户端:局域网设备、红外遥控器、Onvif 摄像头",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",