@syengup/fridaynext-hermes-channel 0.1.0-beta.4 → 0.1.0-beta.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (877) hide show
  1. package/README.md +2 -2
  2. package/install-config.js +22 -5
  3. package/install-host.py +95 -0
  4. package/install-runtime.js +158 -38
  5. package/install.js +19 -4
  6. package/package.json +5 -5
  7. package/plugin.bundle +0 -0
  8. package/validation.json +1 -0
  9. package/plugin/README.md +0 -21
  10. package/plugin/__init__.py +0 -3
  11. package/plugin/fridaynext_plugin/__init__.py +0 -81
  12. package/plugin/fridaynext_plugin/adapter.py +0 -1333
  13. package/plugin/fridaynext_plugin/agent_defaults.py +0 -107
  14. package/plugin/fridaynext_plugin/agent_management.py +0 -158
  15. package/plugin/fridaynext_plugin/canonical_control.py +0 -517
  16. package/plugin/fridaynext_plugin/compat_v0225.py +0 -2080
  17. package/plugin/fridaynext_plugin/continuations.py +0 -271
  18. package/plugin/fridaynext_plugin/control_cli.py +0 -101
  19. package/plugin/fridaynext_plugin/controls.py +0 -296
  20. package/plugin/fridaynext_plugin/delivery_context.py +0 -210
  21. package/plugin/fridaynext_plugin/device-tools-v1.json +0 -302
  22. package/plugin/fridaynext_plugin/device_tools.py +0 -144
  23. package/plugin/fridaynext_plugin/diagnostics.py +0 -165
  24. package/plugin/fridaynext_plugin/history.py +0 -443
  25. package/plugin/fridaynext_plugin/host.py +0 -320
  26. package/plugin/fridaynext_plugin/initial_settings.py +0 -184
  27. package/plugin/fridaynext_plugin/inline_media.py +0 -58
  28. package/plugin/fridaynext_plugin/media_input.py +0 -186
  29. package/plugin/fridaynext_plugin/media_observations.py +0 -172
  30. package/plugin/fridaynext_plugin/media_output.py +0 -277
  31. package/plugin/fridaynext_plugin/message_speech.py +0 -143
  32. package/plugin/fridaynext_plugin/multi_agent.py +0 -221
  33. package/plugin/fridaynext_plugin/recovery.py +0 -214
  34. package/plugin/fridaynext_plugin/reply_context.py +0 -39
  35. package/plugin/fridaynext_plugin/runtime_port.py +0 -593
  36. package/plugin/fridaynext_plugin/scheduled_tasks.py +0 -229
  37. package/plugin/fridaynext_plugin/sessions.py +0 -184
  38. package/plugin/fridaynext_plugin/settings.py +0 -699
  39. package/plugin/fridaynext_plugin/settings_control.py +0 -101
  40. package/plugin/fridaynext_plugin/slash_commands.py +0 -163
  41. package/plugin/fridaynext_plugin/state.py +0 -155
  42. package/plugin/fridaynext_plugin/stream_bridge.py +0 -550
  43. package/plugin/fridaynext_plugin/stream_media.py +0 -59
  44. package/plugin/fridaynext_plugin/stream_projection.py +0 -293
  45. package/plugin/fridaynext_plugin/subagents.py +0 -228
  46. package/plugin/plugin.yaml +0 -29
  47. package/plugin/runtime/dist/commands-routes.js +0 -94
  48. package/plugin/runtime/dist/device-tools-v1.json +0 -302
  49. package/plugin/runtime/dist/host-peer.js +0 -106
  50. package/plugin/runtime/dist/hosted-artifacts.js +0 -189
  51. package/plugin/runtime/dist/hosted-backend.js +0 -436
  52. package/plugin/runtime/dist/hosted-continuations.js +0 -41
  53. package/plugin/runtime/dist/hosted-delivery-observations.js +0 -91
  54. package/plugin/runtime/dist/hosted-device-tools.js +0 -82
  55. package/plugin/runtime/dist/hosted-media.js +0 -368
  56. package/plugin/runtime/dist/hosted-recovery.js +0 -55
  57. package/plugin/runtime/dist/hosted-settings.js +0 -26
  58. package/plugin/runtime/dist/hosted-stream.js +0 -214
  59. package/plugin/runtime/dist/hosted-subagents.js +0 -78
  60. package/plugin/runtime/dist/identity.js +0 -55
  61. package/plugin/runtime/dist/kit-contract.json +0 -1
  62. package/plugin/runtime/dist/media-transport.js +0 -168
  63. package/plugin/runtime/dist/oss-upload-worker.js +0 -7
  64. package/plugin/runtime/dist/oss-upload.js +0 -94
  65. package/plugin/runtime/dist/ownership.js +0 -21
  66. package/plugin/runtime/dist/platform-service.js +0 -36
  67. package/plugin/runtime/dist/plugin-control.js +0 -193
  68. package/plugin/runtime/dist/plugin-worker.js +0 -43
  69. package/plugin/runtime/dist/private-files.js +0 -24
  70. package/plugin/runtime/dist/process-lock.js +0 -40
  71. package/plugin/runtime/dist/public-config.js +0 -58
  72. package/plugin/runtime/dist/scheduled-routes.js +0 -63
  73. package/plugin/runtime/dist/service-errors.js +0 -11
  74. package/plugin/runtime/dist/service-host.js +0 -275
  75. package/plugin/runtime/dist/speech-routes.js +0 -111
  76. package/plugin/runtime/dist/tool-presentation.js +0 -399
  77. package/plugin/runtime/node_modules/.package-lock.json +0 -436
  78. package/plugin/runtime/node_modules/@noble/hashes/LICENSE +0 -21
  79. package/plugin/runtime/node_modules/@noble/hashes/README.md +0 -521
  80. package/plugin/runtime/node_modules/@noble/hashes/_assert.d.ts +0 -17
  81. package/plugin/runtime/node_modules/@noble/hashes/_assert.d.ts.map +0 -1
  82. package/plugin/runtime/node_modules/@noble/hashes/_assert.js +0 -18
  83. package/plugin/runtime/node_modules/@noble/hashes/_assert.js.map +0 -1
  84. package/plugin/runtime/node_modules/@noble/hashes/_blake.d.ts +0 -14
  85. package/plugin/runtime/node_modules/@noble/hashes/_blake.d.ts.map +0 -1
  86. package/plugin/runtime/node_modules/@noble/hashes/_blake.js +0 -50
  87. package/plugin/runtime/node_modules/@noble/hashes/_blake.js.map +0 -1
  88. package/plugin/runtime/node_modules/@noble/hashes/_md.d.ts +0 -51
  89. package/plugin/runtime/node_modules/@noble/hashes/_md.d.ts.map +0 -1
  90. package/plugin/runtime/node_modules/@noble/hashes/_md.js +0 -162
  91. package/plugin/runtime/node_modules/@noble/hashes/_md.js.map +0 -1
  92. package/plugin/runtime/node_modules/@noble/hashes/_u64.d.ts +0 -55
  93. package/plugin/runtime/node_modules/@noble/hashes/_u64.d.ts.map +0 -1
  94. package/plugin/runtime/node_modules/@noble/hashes/_u64.js +0 -90
  95. package/plugin/runtime/node_modules/@noble/hashes/_u64.js.map +0 -1
  96. package/plugin/runtime/node_modules/@noble/hashes/argon2.d.ts +0 -32
  97. package/plugin/runtime/node_modules/@noble/hashes/argon2.d.ts.map +0 -1
  98. package/plugin/runtime/node_modules/@noble/hashes/argon2.js +0 -401
  99. package/plugin/runtime/node_modules/@noble/hashes/argon2.js.map +0 -1
  100. package/plugin/runtime/node_modules/@noble/hashes/blake1.d.ts +0 -106
  101. package/plugin/runtime/node_modules/@noble/hashes/blake1.d.ts.map +0 -1
  102. package/plugin/runtime/node_modules/@noble/hashes/blake1.js +0 -459
  103. package/plugin/runtime/node_modules/@noble/hashes/blake1.js.map +0 -1
  104. package/plugin/runtime/node_modules/@noble/hashes/blake2.d.ts +0 -116
  105. package/plugin/runtime/node_modules/@noble/hashes/blake2.d.ts.map +0 -1
  106. package/plugin/runtime/node_modules/@noble/hashes/blake2.js +0 -420
  107. package/plugin/runtime/node_modules/@noble/hashes/blake2.js.map +0 -1
  108. package/plugin/runtime/node_modules/@noble/hashes/blake2b.d.ts +0 -11
  109. package/plugin/runtime/node_modules/@noble/hashes/blake2b.d.ts.map +0 -1
  110. package/plugin/runtime/node_modules/@noble/hashes/blake2b.js +0 -14
  111. package/plugin/runtime/node_modules/@noble/hashes/blake2b.js.map +0 -1
  112. package/plugin/runtime/node_modules/@noble/hashes/blake2s.d.ts +0 -20
  113. package/plugin/runtime/node_modules/@noble/hashes/blake2s.d.ts.map +0 -1
  114. package/plugin/runtime/node_modules/@noble/hashes/blake2s.js +0 -24
  115. package/plugin/runtime/node_modules/@noble/hashes/blake2s.js.map +0 -1
  116. package/plugin/runtime/node_modules/@noble/hashes/blake3.d.ts +0 -54
  117. package/plugin/runtime/node_modules/@noble/hashes/blake3.d.ts.map +0 -1
  118. package/plugin/runtime/node_modules/@noble/hashes/blake3.js +0 -255
  119. package/plugin/runtime/node_modules/@noble/hashes/blake3.js.map +0 -1
  120. package/plugin/runtime/node_modules/@noble/hashes/crypto.d.ts +0 -2
  121. package/plugin/runtime/node_modules/@noble/hashes/crypto.d.ts.map +0 -1
  122. package/plugin/runtime/node_modules/@noble/hashes/crypto.js +0 -5
  123. package/plugin/runtime/node_modules/@noble/hashes/crypto.js.map +0 -1
  124. package/plugin/runtime/node_modules/@noble/hashes/cryptoNode.d.ts +0 -2
  125. package/plugin/runtime/node_modules/@noble/hashes/cryptoNode.d.ts.map +0 -1
  126. package/plugin/runtime/node_modules/@noble/hashes/cryptoNode.js +0 -18
  127. package/plugin/runtime/node_modules/@noble/hashes/cryptoNode.js.map +0 -1
  128. package/plugin/runtime/node_modules/@noble/hashes/eskdf.d.ts +0 -47
  129. package/plugin/runtime/node_modules/@noble/hashes/eskdf.d.ts.map +0 -1
  130. package/plugin/runtime/node_modules/@noble/hashes/eskdf.js +0 -166
  131. package/plugin/runtime/node_modules/@noble/hashes/eskdf.js.map +0 -1
  132. package/plugin/runtime/node_modules/@noble/hashes/esm/_assert.d.ts +0 -17
  133. package/plugin/runtime/node_modules/@noble/hashes/esm/_assert.d.ts.map +0 -1
  134. package/plugin/runtime/node_modules/@noble/hashes/esm/_assert.js +0 -15
  135. package/plugin/runtime/node_modules/@noble/hashes/esm/_assert.js.map +0 -1
  136. package/plugin/runtime/node_modules/@noble/hashes/esm/_blake.d.ts +0 -14
  137. package/plugin/runtime/node_modules/@noble/hashes/esm/_blake.d.ts.map +0 -1
  138. package/plugin/runtime/node_modules/@noble/hashes/esm/_blake.js +0 -45
  139. package/plugin/runtime/node_modules/@noble/hashes/esm/_blake.js.map +0 -1
  140. package/plugin/runtime/node_modules/@noble/hashes/esm/_md.d.ts +0 -51
  141. package/plugin/runtime/node_modules/@noble/hashes/esm/_md.d.ts.map +0 -1
  142. package/plugin/runtime/node_modules/@noble/hashes/esm/_md.js +0 -155
  143. package/plugin/runtime/node_modules/@noble/hashes/esm/_md.js.map +0 -1
  144. package/plugin/runtime/node_modules/@noble/hashes/esm/_u64.d.ts +0 -55
  145. package/plugin/runtime/node_modules/@noble/hashes/esm/_u64.d.ts.map +0 -1
  146. package/plugin/runtime/node_modules/@noble/hashes/esm/_u64.js +0 -67
  147. package/plugin/runtime/node_modules/@noble/hashes/esm/_u64.js.map +0 -1
  148. package/plugin/runtime/node_modules/@noble/hashes/esm/argon2.d.ts +0 -32
  149. package/plugin/runtime/node_modules/@noble/hashes/esm/argon2.d.ts.map +0 -1
  150. package/plugin/runtime/node_modules/@noble/hashes/esm/argon2.js +0 -392
  151. package/plugin/runtime/node_modules/@noble/hashes/esm/argon2.js.map +0 -1
  152. package/plugin/runtime/node_modules/@noble/hashes/esm/blake1.d.ts +0 -106
  153. package/plugin/runtime/node_modules/@noble/hashes/esm/blake1.d.ts.map +0 -1
  154. package/plugin/runtime/node_modules/@noble/hashes/esm/blake1.js +0 -452
  155. package/plugin/runtime/node_modules/@noble/hashes/esm/blake1.js.map +0 -1
  156. package/plugin/runtime/node_modules/@noble/hashes/esm/blake2.d.ts +0 -116
  157. package/plugin/runtime/node_modules/@noble/hashes/esm/blake2.d.ts.map +0 -1
  158. package/plugin/runtime/node_modules/@noble/hashes/esm/blake2.js +0 -413
  159. package/plugin/runtime/node_modules/@noble/hashes/esm/blake2.js.map +0 -1
  160. package/plugin/runtime/node_modules/@noble/hashes/esm/blake2b.d.ts +0 -11
  161. package/plugin/runtime/node_modules/@noble/hashes/esm/blake2b.d.ts.map +0 -1
  162. package/plugin/runtime/node_modules/@noble/hashes/esm/blake2b.js +0 -11
  163. package/plugin/runtime/node_modules/@noble/hashes/esm/blake2b.js.map +0 -1
  164. package/plugin/runtime/node_modules/@noble/hashes/esm/blake2s.d.ts +0 -20
  165. package/plugin/runtime/node_modules/@noble/hashes/esm/blake2s.d.ts.map +0 -1
  166. package/plugin/runtime/node_modules/@noble/hashes/esm/blake2s.js +0 -21
  167. package/plugin/runtime/node_modules/@noble/hashes/esm/blake2s.js.map +0 -1
  168. package/plugin/runtime/node_modules/@noble/hashes/esm/blake3.d.ts +0 -54
  169. package/plugin/runtime/node_modules/@noble/hashes/esm/blake3.d.ts.map +0 -1
  170. package/plugin/runtime/node_modules/@noble/hashes/esm/blake3.js +0 -251
  171. package/plugin/runtime/node_modules/@noble/hashes/esm/blake3.js.map +0 -1
  172. package/plugin/runtime/node_modules/@noble/hashes/esm/crypto.d.ts +0 -2
  173. package/plugin/runtime/node_modules/@noble/hashes/esm/crypto.d.ts.map +0 -1
  174. package/plugin/runtime/node_modules/@noble/hashes/esm/crypto.js +0 -2
  175. package/plugin/runtime/node_modules/@noble/hashes/esm/crypto.js.map +0 -1
  176. package/plugin/runtime/node_modules/@noble/hashes/esm/cryptoNode.d.ts +0 -2
  177. package/plugin/runtime/node_modules/@noble/hashes/esm/cryptoNode.d.ts.map +0 -1
  178. package/plugin/runtime/node_modules/@noble/hashes/esm/cryptoNode.js +0 -15
  179. package/plugin/runtime/node_modules/@noble/hashes/esm/cryptoNode.js.map +0 -1
  180. package/plugin/runtime/node_modules/@noble/hashes/esm/eskdf.d.ts +0 -47
  181. package/plugin/runtime/node_modules/@noble/hashes/esm/eskdf.d.ts.map +0 -1
  182. package/plugin/runtime/node_modules/@noble/hashes/esm/eskdf.js +0 -160
  183. package/plugin/runtime/node_modules/@noble/hashes/esm/eskdf.js.map +0 -1
  184. package/plugin/runtime/node_modules/@noble/hashes/esm/hkdf.d.ts +0 -36
  185. package/plugin/runtime/node_modules/@noble/hashes/esm/hkdf.d.ts.map +0 -1
  186. package/plugin/runtime/node_modules/@noble/hashes/esm/hkdf.js +0 -82
  187. package/plugin/runtime/node_modules/@noble/hashes/esm/hkdf.js.map +0 -1
  188. package/plugin/runtime/node_modules/@noble/hashes/esm/hmac.d.ts +0 -35
  189. package/plugin/runtime/node_modules/@noble/hashes/esm/hmac.d.ts.map +0 -1
  190. package/plugin/runtime/node_modules/@noble/hashes/esm/hmac.js +0 -86
  191. package/plugin/runtime/node_modules/@noble/hashes/esm/hmac.js.map +0 -1
  192. package/plugin/runtime/node_modules/@noble/hashes/esm/index.d.ts +0 -2
  193. package/plugin/runtime/node_modules/@noble/hashes/esm/index.d.ts.map +0 -1
  194. package/plugin/runtime/node_modules/@noble/hashes/esm/index.js +0 -33
  195. package/plugin/runtime/node_modules/@noble/hashes/esm/index.js.map +0 -1
  196. package/plugin/runtime/node_modules/@noble/hashes/esm/legacy.d.ts +0 -71
  197. package/plugin/runtime/node_modules/@noble/hashes/esm/legacy.d.ts.map +0 -1
  198. package/plugin/runtime/node_modules/@noble/hashes/esm/legacy.js +0 -281
  199. package/plugin/runtime/node_modules/@noble/hashes/esm/legacy.js.map +0 -1
  200. package/plugin/runtime/node_modules/@noble/hashes/esm/package.json +0 -10
  201. package/plugin/runtime/node_modules/@noble/hashes/esm/pbkdf2.d.ts +0 -23
  202. package/plugin/runtime/node_modules/@noble/hashes/esm/pbkdf2.d.ts.map +0 -1
  203. package/plugin/runtime/node_modules/@noble/hashes/esm/pbkdf2.js +0 -97
  204. package/plugin/runtime/node_modules/@noble/hashes/esm/pbkdf2.js.map +0 -1
  205. package/plugin/runtime/node_modules/@noble/hashes/esm/ripemd160.d.ts +0 -13
  206. package/plugin/runtime/node_modules/@noble/hashes/esm/ripemd160.d.ts.map +0 -1
  207. package/plugin/runtime/node_modules/@noble/hashes/esm/ripemd160.js +0 -13
  208. package/plugin/runtime/node_modules/@noble/hashes/esm/ripemd160.js.map +0 -1
  209. package/plugin/runtime/node_modules/@noble/hashes/esm/scrypt.d.ts +0 -34
  210. package/plugin/runtime/node_modules/@noble/hashes/esm/scrypt.d.ts.map +0 -1
  211. package/plugin/runtime/node_modules/@noble/hashes/esm/scrypt.js +0 -228
  212. package/plugin/runtime/node_modules/@noble/hashes/esm/scrypt.js.map +0 -1
  213. package/plugin/runtime/node_modules/@noble/hashes/esm/sha1.d.ts +0 -11
  214. package/plugin/runtime/node_modules/@noble/hashes/esm/sha1.d.ts.map +0 -1
  215. package/plugin/runtime/node_modules/@noble/hashes/esm/sha1.js +0 -11
  216. package/plugin/runtime/node_modules/@noble/hashes/esm/sha1.js.map +0 -1
  217. package/plugin/runtime/node_modules/@noble/hashes/esm/sha2.d.ts +0 -159
  218. package/plugin/runtime/node_modules/@noble/hashes/esm/sha2.d.ts.map +0 -1
  219. package/plugin/runtime/node_modules/@noble/hashes/esm/sha2.js +0 -375
  220. package/plugin/runtime/node_modules/@noble/hashes/esm/sha2.js.map +0 -1
  221. package/plugin/runtime/node_modules/@noble/hashes/esm/sha256.d.ts +0 -20
  222. package/plugin/runtime/node_modules/@noble/hashes/esm/sha256.d.ts.map +0 -1
  223. package/plugin/runtime/node_modules/@noble/hashes/esm/sha256.js +0 -20
  224. package/plugin/runtime/node_modules/@noble/hashes/esm/sha256.js.map +0 -1
  225. package/plugin/runtime/node_modules/@noble/hashes/esm/sha3-addons.d.ts +0 -142
  226. package/plugin/runtime/node_modules/@noble/hashes/esm/sha3-addons.d.ts.map +0 -1
  227. package/plugin/runtime/node_modules/@noble/hashes/esm/sha3-addons.js +0 -393
  228. package/plugin/runtime/node_modules/@noble/hashes/esm/sha3-addons.js.map +0 -1
  229. package/plugin/runtime/node_modules/@noble/hashes/esm/sha3.d.ts +0 -53
  230. package/plugin/runtime/node_modules/@noble/hashes/esm/sha3.d.ts.map +0 -1
  231. package/plugin/runtime/node_modules/@noble/hashes/esm/sha3.js +0 -234
  232. package/plugin/runtime/node_modules/@noble/hashes/esm/sha3.js.map +0 -1
  233. package/plugin/runtime/node_modules/@noble/hashes/esm/sha512.d.ts +0 -26
  234. package/plugin/runtime/node_modules/@noble/hashes/esm/sha512.d.ts.map +0 -1
  235. package/plugin/runtime/node_modules/@noble/hashes/esm/sha512.js +0 -26
  236. package/plugin/runtime/node_modules/@noble/hashes/esm/sha512.js.map +0 -1
  237. package/plugin/runtime/node_modules/@noble/hashes/esm/utils.d.ts +0 -161
  238. package/plugin/runtime/node_modules/@noble/hashes/esm/utils.d.ts.map +0 -1
  239. package/plugin/runtime/node_modules/@noble/hashes/esm/utils.js +0 -281
  240. package/plugin/runtime/node_modules/@noble/hashes/esm/utils.js.map +0 -1
  241. package/plugin/runtime/node_modules/@noble/hashes/hkdf.d.ts +0 -36
  242. package/plugin/runtime/node_modules/@noble/hashes/hkdf.d.ts.map +0 -1
  243. package/plugin/runtime/node_modules/@noble/hashes/hkdf.js +0 -88
  244. package/plugin/runtime/node_modules/@noble/hashes/hkdf.js.map +0 -1
  245. package/plugin/runtime/node_modules/@noble/hashes/hmac.d.ts +0 -35
  246. package/plugin/runtime/node_modules/@noble/hashes/hmac.d.ts.map +0 -1
  247. package/plugin/runtime/node_modules/@noble/hashes/hmac.js +0 -91
  248. package/plugin/runtime/node_modules/@noble/hashes/hmac.js.map +0 -1
  249. package/plugin/runtime/node_modules/@noble/hashes/index.d.ts +0 -1
  250. package/plugin/runtime/node_modules/@noble/hashes/index.d.ts.map +0 -1
  251. package/plugin/runtime/node_modules/@noble/hashes/index.js +0 -33
  252. package/plugin/runtime/node_modules/@noble/hashes/index.js.map +0 -1
  253. package/plugin/runtime/node_modules/@noble/hashes/legacy.d.ts +0 -71
  254. package/plugin/runtime/node_modules/@noble/hashes/legacy.d.ts.map +0 -1
  255. package/plugin/runtime/node_modules/@noble/hashes/legacy.js +0 -287
  256. package/plugin/runtime/node_modules/@noble/hashes/legacy.js.map +0 -1
  257. package/plugin/runtime/node_modules/@noble/hashes/package.json +0 -266
  258. package/plugin/runtime/node_modules/@noble/hashes/pbkdf2.d.ts +0 -23
  259. package/plugin/runtime/node_modules/@noble/hashes/pbkdf2.d.ts.map +0 -1
  260. package/plugin/runtime/node_modules/@noble/hashes/pbkdf2.js +0 -101
  261. package/plugin/runtime/node_modules/@noble/hashes/pbkdf2.js.map +0 -1
  262. package/plugin/runtime/node_modules/@noble/hashes/ripemd160.d.ts +0 -13
  263. package/plugin/runtime/node_modules/@noble/hashes/ripemd160.d.ts.map +0 -1
  264. package/plugin/runtime/node_modules/@noble/hashes/ripemd160.js +0 -16
  265. package/plugin/runtime/node_modules/@noble/hashes/ripemd160.js.map +0 -1
  266. package/plugin/runtime/node_modules/@noble/hashes/scrypt.d.ts +0 -34
  267. package/plugin/runtime/node_modules/@noble/hashes/scrypt.d.ts.map +0 -1
  268. package/plugin/runtime/node_modules/@noble/hashes/scrypt.js +0 -232
  269. package/plugin/runtime/node_modules/@noble/hashes/scrypt.js.map +0 -1
  270. package/plugin/runtime/node_modules/@noble/hashes/sha1.d.ts +0 -11
  271. package/plugin/runtime/node_modules/@noble/hashes/sha1.d.ts.map +0 -1
  272. package/plugin/runtime/node_modules/@noble/hashes/sha1.js +0 -14
  273. package/plugin/runtime/node_modules/@noble/hashes/sha1.js.map +0 -1
  274. package/plugin/runtime/node_modules/@noble/hashes/sha2.d.ts +0 -159
  275. package/plugin/runtime/node_modules/@noble/hashes/sha2.d.ts.map +0 -1
  276. package/plugin/runtime/node_modules/@noble/hashes/sha2.js +0 -384
  277. package/plugin/runtime/node_modules/@noble/hashes/sha2.js.map +0 -1
  278. package/plugin/runtime/node_modules/@noble/hashes/sha256.d.ts +0 -20
  279. package/plugin/runtime/node_modules/@noble/hashes/sha256.d.ts.map +0 -1
  280. package/plugin/runtime/node_modules/@noble/hashes/sha256.js +0 -23
  281. package/plugin/runtime/node_modules/@noble/hashes/sha256.js.map +0 -1
  282. package/plugin/runtime/node_modules/@noble/hashes/sha3-addons.d.ts +0 -142
  283. package/plugin/runtime/node_modules/@noble/hashes/sha3-addons.d.ts.map +0 -1
  284. package/plugin/runtime/node_modules/@noble/hashes/sha3-addons.js +0 -402
  285. package/plugin/runtime/node_modules/@noble/hashes/sha3-addons.js.map +0 -1
  286. package/plugin/runtime/node_modules/@noble/hashes/sha3.d.ts +0 -53
  287. package/plugin/runtime/node_modules/@noble/hashes/sha3.d.ts.map +0 -1
  288. package/plugin/runtime/node_modules/@noble/hashes/sha3.js +0 -239
  289. package/plugin/runtime/node_modules/@noble/hashes/sha3.js.map +0 -1
  290. package/plugin/runtime/node_modules/@noble/hashes/sha512.d.ts +0 -26
  291. package/plugin/runtime/node_modules/@noble/hashes/sha512.d.ts.map +0 -1
  292. package/plugin/runtime/node_modules/@noble/hashes/sha512.js +0 -29
  293. package/plugin/runtime/node_modules/@noble/hashes/sha512.js.map +0 -1
  294. package/plugin/runtime/node_modules/@noble/hashes/src/_assert.ts +0 -22
  295. package/plugin/runtime/node_modules/@noble/hashes/src/_blake.ts +0 -50
  296. package/plugin/runtime/node_modules/@noble/hashes/src/_md.ts +0 -176
  297. package/plugin/runtime/node_modules/@noble/hashes/src/_u64.ts +0 -91
  298. package/plugin/runtime/node_modules/@noble/hashes/src/argon2.ts +0 -497
  299. package/plugin/runtime/node_modules/@noble/hashes/src/blake1.ts +0 -534
  300. package/plugin/runtime/node_modules/@noble/hashes/src/blake2.ts +0 -486
  301. package/plugin/runtime/node_modules/@noble/hashes/src/blake2b.ts +0 -10
  302. package/plugin/runtime/node_modules/@noble/hashes/src/blake2s.ts +0 -20
  303. package/plugin/runtime/node_modules/@noble/hashes/src/blake3.ts +0 -272
  304. package/plugin/runtime/node_modules/@noble/hashes/src/crypto.ts +0 -9
  305. package/plugin/runtime/node_modules/@noble/hashes/src/cryptoNode.ts +0 -15
  306. package/plugin/runtime/node_modules/@noble/hashes/src/eskdf.ts +0 -187
  307. package/plugin/runtime/node_modules/@noble/hashes/src/hkdf.ts +0 -88
  308. package/plugin/runtime/node_modules/@noble/hashes/src/hmac.ts +0 -94
  309. package/plugin/runtime/node_modules/@noble/hashes/src/index.ts +0 -31
  310. package/plugin/runtime/node_modules/@noble/hashes/src/legacy.ts +0 -293
  311. package/plugin/runtime/node_modules/@noble/hashes/src/pbkdf2.ts +0 -122
  312. package/plugin/runtime/node_modules/@noble/hashes/src/ripemd160.ts +0 -12
  313. package/plugin/runtime/node_modules/@noble/hashes/src/scrypt.ts +0 -257
  314. package/plugin/runtime/node_modules/@noble/hashes/src/sha1.ts +0 -10
  315. package/plugin/runtime/node_modules/@noble/hashes/src/sha2.ts +0 -402
  316. package/plugin/runtime/node_modules/@noble/hashes/src/sha256.ts +0 -24
  317. package/plugin/runtime/node_modules/@noble/hashes/src/sha3-addons.ts +0 -499
  318. package/plugin/runtime/node_modules/@noble/hashes/src/sha3.ts +0 -258
  319. package/plugin/runtime/node_modules/@noble/hashes/src/sha512.ts +0 -34
  320. package/plugin/runtime/node_modules/@noble/hashes/src/utils.ts +0 -395
  321. package/plugin/runtime/node_modules/@noble/hashes/utils.d.ts +0 -161
  322. package/plugin/runtime/node_modules/@noble/hashes/utils.d.ts.map +0 -1
  323. package/plugin/runtime/node_modules/@noble/hashes/utils.js +0 -313
  324. package/plugin/runtime/node_modules/@noble/hashes/utils.js.map +0 -1
  325. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/API.md +0 -536
  326. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/LICENSE +0 -21
  327. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/README.md +0 -97
  328. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/attachment/store.d.ts +0 -57
  329. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/attachment/store.js +0 -618
  330. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/attest/attest-gate.d.ts +0 -29
  331. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/attest/attest-gate.js +0 -58
  332. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/attest/attest-key-prune.d.ts +0 -17
  333. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/attest/attest-key-prune.js +0 -37
  334. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/attest/attest-store.d.ts +0 -27
  335. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/attest/attest-store.js +0 -146
  336. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/attest/verifier.d.ts +0 -1
  337. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/attest/verifier.js +0 -2
  338. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/delivery-observations.d.ts +0 -38
  339. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/delivery-observations.js +0 -85
  340. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/history.d.ts +0 -89
  341. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/history.js +0 -179
  342. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/operations.d.ts +0 -136
  343. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/operations.js +0 -105
  344. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/pairing-codec.d.ts +0 -39
  345. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/pairing-codec.js +0 -233
  346. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/reconciliation.d.ts +0 -6
  347. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/reconciliation.js +0 -17
  348. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/settings-schema.d.ts +0 -3
  349. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/settings-schema.js +0 -45
  350. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/tool-presentation.d.ts +0 -10
  351. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/tool-presentation.js +0 -2
  352. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/types.d.ts +0 -259
  353. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/types.js +0 -33
  354. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/work-context.d.ts +0 -56
  355. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/work-context.js +0 -60
  356. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/device-request/coordinator.d.ts +0 -19
  357. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/device-request/coordinator.js +0 -113
  358. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/device-request/pending-store.d.ts +0 -37
  359. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/device-request/pending-store.js +0 -67
  360. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/device-request/results.d.ts +0 -14
  361. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/device-request/results.js +0 -39
  362. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/index.d.ts +0 -21
  363. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/index.js +0 -20
  364. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/link-preview/og-parse.d.ts +0 -21
  365. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/link-preview/og-parse.js +0 -234
  366. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/link-preview/preview-service.d.ts +0 -39
  367. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/link-preview/preview-service.js +0 -232
  368. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/link-preview/ssrf-guard.d.ts +0 -52
  369. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/link-preview/ssrf-guard.js +0 -236
  370. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/prompt-capsules/capsules-store.d.ts +0 -38
  371. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/prompt-capsules/capsules-store.js +0 -149
  372. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/attachment-crypto.d.ts +0 -4
  373. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/attachment-crypto.js +0 -73
  374. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/cert-selfsign.d.ts +0 -6
  375. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/cert-selfsign.js +0 -88
  376. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/filter-proxy.d.ts +0 -17
  377. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/filter-proxy.js +0 -231
  378. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/frpc-manager.d.ts +0 -76
  379. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/frpc-manager.js +0 -1332
  380. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/oss-transfer.d.ts +0 -43
  381. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/oss-transfer.js +0 -280
  382. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/pairing-voucher.d.ts +0 -13
  383. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/pairing-voucher.js +0 -58
  384. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/private-file.d.ts +0 -2
  385. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/private-file.js +0 -11
  386. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/standby-loop-guard.d.ts +0 -9
  387. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/standby-loop-guard.js +0 -24
  388. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/tls-identity.d.ts +0 -36
  389. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/tls-identity.js +0 -151
  390. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/tunnel-watchdog-policy.d.ts +0 -24
  391. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/tunnel-watchdog-policy.js +0 -49
  392. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/push/push-runtime.d.ts +0 -45
  393. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/push/push-runtime.js +0 -233
  394. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/push/relay-transport.d.ts +0 -8
  395. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/push/relay-transport.js +0 -27
  396. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/canonical-update-batcher.d.ts +0 -26
  397. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/canonical-update-batcher.js +0 -112
  398. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/channel-kernel.d.ts +0 -52
  399. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/channel-kernel.js +0 -332
  400. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/channel-runtime.d.ts +0 -2
  401. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/channel-runtime.js +0 -2
  402. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/delivery-observation-publisher.d.ts +0 -43
  403. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/delivery-observation-publisher.js +0 -211
  404. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/durable-run-store.d.ts +0 -264
  405. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/durable-run-store.js +0 -1661
  406. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/runner.d.ts +0 -37
  407. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/runner.js +0 -319
  408. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/scheduler.d.ts +0 -13
  409. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/scheduler.js +0 -130
  410. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/work-context.d.ts +0 -13
  411. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/work-context.js +0 -73
  412. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/server-name/server-name-store.d.ts +0 -21
  413. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/server-name/server-name-store.js +0 -52
  414. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/service/channel-service.d.ts +0 -38
  415. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/service/channel-service.js +0 -266
  416. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/service/infrastructure.d.ts +0 -87
  417. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/service/infrastructure.js +0 -179
  418. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/testing/contract-harness.d.ts +0 -25
  419. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/testing/contract-harness.js +0 -44
  420. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/testing/reference-adapter.d.ts +0 -39
  421. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/testing/reference-adapter.js +0 -76
  422. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/testing/weaknet-server.d.ts +0 -6
  423. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/testing/weaknet-server.js +0 -130
  424. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/attest.d.ts +0 -39
  425. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/attest.js +0 -114
  426. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/body.d.ts +0 -2
  427. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/body.js +0 -24
  428. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/command-lifecycle.d.ts +0 -47
  429. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/command-lifecycle.js +0 -184
  430. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/controls.d.ts +0 -9
  431. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/controls.js +0 -123
  432. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/files-download.d.ts +0 -18
  433. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/files-download.js +0 -197
  434. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/files-upload.d.ts +0 -20
  435. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/files-upload.js +0 -227
  436. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/link-preview.d.ts +0 -15
  437. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/link-preview.js +0 -45
  438. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/messages.d.ts +0 -10
  439. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/messages.js +0 -111
  440. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/operations.d.ts +0 -13
  441. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/operations.js +0 -336
  442. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/pairing.d.ts +0 -22
  443. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/pairing.js +0 -138
  444. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/prompt-capsules.d.ts +0 -8
  445. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/prompt-capsules.js +0 -65
  446. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/push.d.ts +0 -13
  447. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/push.js +0 -65
  448. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/runtime.d.ts +0 -51
  449. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/runtime.js +0 -442
  450. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/server-name.d.ts +0 -8
  451. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/server-name.js +0 -43
  452. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/session-settings.d.ts +0 -5
  453. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/session-settings.js +0 -153
  454. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/sessions.d.ts +0 -20
  455. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/sessions.js +0 -118
  456. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/package.json +0 -39
  457. package/plugin/runtime/node_modules/ansi-regex/index.d.ts +0 -37
  458. package/plugin/runtime/node_modules/ansi-regex/index.js +0 -10
  459. package/plugin/runtime/node_modules/ansi-regex/license +0 -9
  460. package/plugin/runtime/node_modules/ansi-regex/package.json +0 -55
  461. package/plugin/runtime/node_modules/ansi-regex/readme.md +0 -78
  462. package/plugin/runtime/node_modules/ansi-styles/index.d.ts +0 -345
  463. package/plugin/runtime/node_modules/ansi-styles/index.js +0 -163
  464. package/plugin/runtime/node_modules/ansi-styles/license +0 -9
  465. package/plugin/runtime/node_modules/ansi-styles/package.json +0 -56
  466. package/plugin/runtime/node_modules/ansi-styles/readme.md +0 -152
  467. package/plugin/runtime/node_modules/asn1js/LICENSE +0 -30
  468. package/plugin/runtime/node_modules/asn1js/README.md +0 -222
  469. package/plugin/runtime/node_modules/asn1js/build/index.d.ts +0 -1412
  470. package/plugin/runtime/node_modules/asn1js/build/index.es.js +0 -3705
  471. package/plugin/runtime/node_modules/asn1js/build/index.js +0 -3773
  472. package/plugin/runtime/node_modules/asn1js/package.json +0 -89
  473. package/plugin/runtime/node_modules/bytestreamjs/LICENSE +0 -29
  474. package/plugin/runtime/node_modules/bytestreamjs/README.MD +0 -196
  475. package/plugin/runtime/node_modules/bytestreamjs/build/cjs/bit.js +0 -91
  476. package/plugin/runtime/node_modules/bytestreamjs/build/cjs/bit_stream.js +0 -400
  477. package/plugin/runtime/node_modules/bytestreamjs/build/cjs/byte_stream.js +0 -648
  478. package/plugin/runtime/node_modules/bytestreamjs/build/cjs/helpers.js +0 -59
  479. package/plugin/runtime/node_modules/bytestreamjs/build/cjs/index.js +0 -21
  480. package/plugin/runtime/node_modules/bytestreamjs/build/cjs/seq_bit_stream.js +0 -114
  481. package/plugin/runtime/node_modules/bytestreamjs/build/cjs/seq_stream.js +0 -437
  482. package/plugin/runtime/node_modules/bytestreamjs/build/mjs/bit.js +0 -88
  483. package/plugin/runtime/node_modules/bytestreamjs/build/mjs/bit_stream.js +0 -396
  484. package/plugin/runtime/node_modules/bytestreamjs/build/mjs/byte_stream.js +0 -644
  485. package/plugin/runtime/node_modules/bytestreamjs/build/mjs/helpers.js +0 -55
  486. package/plugin/runtime/node_modules/bytestreamjs/build/mjs/index.js +0 -5
  487. package/plugin/runtime/node_modules/bytestreamjs/build/mjs/seq_bit_stream.js +0 -110
  488. package/plugin/runtime/node_modules/bytestreamjs/build/mjs/seq_stream.js +0 -433
  489. package/plugin/runtime/node_modules/bytestreamjs/build/types/bit.d.ts +0 -1
  490. package/plugin/runtime/node_modules/bytestreamjs/build/types/bit_stream.d.ts +0 -222
  491. package/plugin/runtime/node_modules/bytestreamjs/build/types/byte_stream.d.ts +0 -292
  492. package/plugin/runtime/node_modules/bytestreamjs/build/types/helpers.d.ts +0 -23
  493. package/plugin/runtime/node_modules/bytestreamjs/build/types/index.d.ts +0 -5
  494. package/plugin/runtime/node_modules/bytestreamjs/build/types/seq_bit_stream.d.ts +0 -47
  495. package/plugin/runtime/node_modules/bytestreamjs/build/types/seq_stream.d.ts +0 -255
  496. package/plugin/runtime/node_modules/bytestreamjs/package.json +0 -66
  497. package/plugin/runtime/node_modules/camelcase/index.d.ts +0 -63
  498. package/plugin/runtime/node_modules/camelcase/index.js +0 -76
  499. package/plugin/runtime/node_modules/camelcase/license +0 -9
  500. package/plugin/runtime/node_modules/camelcase/package.json +0 -43
  501. package/plugin/runtime/node_modules/camelcase/readme.md +0 -99
  502. package/plugin/runtime/node_modules/cbor/LICENSE.md +0 -20
  503. package/plugin/runtime/node_modules/cbor/README.md +0 -282
  504. package/plugin/runtime/node_modules/cbor/lib/cbor.js +0 -114
  505. package/plugin/runtime/node_modules/cbor/lib/commented.js +0 -382
  506. package/plugin/runtime/node_modules/cbor/lib/constants.js +0 -79
  507. package/plugin/runtime/node_modules/cbor/lib/decoder.js +0 -680
  508. package/plugin/runtime/node_modules/cbor/lib/diagnose.js +0 -274
  509. package/plugin/runtime/node_modules/cbor/lib/encoder.js +0 -1121
  510. package/plugin/runtime/node_modules/cbor/lib/map.js +0 -185
  511. package/plugin/runtime/node_modules/cbor/lib/objectRecorder.js +0 -71
  512. package/plugin/runtime/node_modules/cbor/lib/sharedValueEncoder.js +0 -141
  513. package/plugin/runtime/node_modules/cbor/lib/simple.js +0 -104
  514. package/plugin/runtime/node_modules/cbor/lib/tagged.js +0 -378
  515. package/plugin/runtime/node_modules/cbor/lib/utils.js +0 -308
  516. package/plugin/runtime/node_modules/cbor/package.json +0 -47
  517. package/plugin/runtime/node_modules/cbor/types/lib/cbor.d.ts +0 -34
  518. package/plugin/runtime/node_modules/cbor/types/lib/commented.d.ts +0 -109
  519. package/plugin/runtime/node_modules/cbor/types/lib/constants.d.ts +0 -63
  520. package/plugin/runtime/node_modules/cbor/types/lib/decoder.d.ts +0 -199
  521. package/plugin/runtime/node_modules/cbor/types/lib/diagnose.d.ts +0 -91
  522. package/plugin/runtime/node_modules/cbor/types/lib/encoder.d.ts +0 -477
  523. package/plugin/runtime/node_modules/cbor/types/lib/map.d.ts +0 -78
  524. package/plugin/runtime/node_modules/cbor/types/lib/objectRecorder.d.ts +0 -36
  525. package/plugin/runtime/node_modules/cbor/types/lib/sharedValueEncoder.d.ts +0 -21
  526. package/plugin/runtime/node_modules/cbor/types/lib/simple.d.ts +0 -47
  527. package/plugin/runtime/node_modules/cbor/types/lib/tagged.d.ts +0 -74
  528. package/plugin/runtime/node_modules/cbor/types/lib/utils.d.ts +0 -20
  529. package/plugin/runtime/node_modules/cbor/types/vendor/binary-parse-stream/index.d.ts +0 -34
  530. package/plugin/runtime/node_modules/cbor/vendor/binary-parse-stream/README.md +0 -49
  531. package/plugin/runtime/node_modules/cbor/vendor/binary-parse-stream/index.js +0 -111
  532. package/plugin/runtime/node_modules/cliui/CHANGELOG.md +0 -76
  533. package/plugin/runtime/node_modules/cliui/LICENSE.txt +0 -14
  534. package/plugin/runtime/node_modules/cliui/README.md +0 -115
  535. package/plugin/runtime/node_modules/cliui/index.js +0 -354
  536. package/plugin/runtime/node_modules/cliui/package.json +0 -65
  537. package/plugin/runtime/node_modules/color-convert/CHANGELOG.md +0 -54
  538. package/plugin/runtime/node_modules/color-convert/LICENSE +0 -21
  539. package/plugin/runtime/node_modules/color-convert/README.md +0 -68
  540. package/plugin/runtime/node_modules/color-convert/conversions.js +0 -839
  541. package/plugin/runtime/node_modules/color-convert/index.js +0 -81
  542. package/plugin/runtime/node_modules/color-convert/package.json +0 -48
  543. package/plugin/runtime/node_modules/color-convert/route.js +0 -97
  544. package/plugin/runtime/node_modules/color-name/LICENSE +0 -8
  545. package/plugin/runtime/node_modules/color-name/README.md +0 -11
  546. package/plugin/runtime/node_modules/color-name/index.js +0 -152
  547. package/plugin/runtime/node_modules/color-name/package.json +0 -28
  548. package/plugin/runtime/node_modules/decamelize/index.js +0 -13
  549. package/plugin/runtime/node_modules/decamelize/license +0 -21
  550. package/plugin/runtime/node_modules/decamelize/package.json +0 -38
  551. package/plugin/runtime/node_modules/decamelize/readme.md +0 -48
  552. package/plugin/runtime/node_modules/dijkstrajs/.travis.yml +0 -4
  553. package/plugin/runtime/node_modules/dijkstrajs/CONTRIBUTING.md +0 -8
  554. package/plugin/runtime/node_modules/dijkstrajs/LICENSE.md +0 -19
  555. package/plugin/runtime/node_modules/dijkstrajs/README.md +0 -18
  556. package/plugin/runtime/node_modules/dijkstrajs/dijkstra.js +0 -165
  557. package/plugin/runtime/node_modules/dijkstrajs/package.json +0 -60
  558. package/plugin/runtime/node_modules/dijkstrajs/test/dijkstra.test.js +0 -96
  559. package/plugin/runtime/node_modules/emoji-regex/LICENSE-MIT.txt +0 -20
  560. package/plugin/runtime/node_modules/emoji-regex/README.md +0 -73
  561. package/plugin/runtime/node_modules/emoji-regex/es2015/index.js +0 -6
  562. package/plugin/runtime/node_modules/emoji-regex/es2015/text.js +0 -6
  563. package/plugin/runtime/node_modules/emoji-regex/index.d.ts +0 -23
  564. package/plugin/runtime/node_modules/emoji-regex/index.js +0 -6
  565. package/plugin/runtime/node_modules/emoji-regex/package.json +0 -50
  566. package/plugin/runtime/node_modules/emoji-regex/text.js +0 -6
  567. package/plugin/runtime/node_modules/find-up/index.d.ts +0 -137
  568. package/plugin/runtime/node_modules/find-up/index.js +0 -89
  569. package/plugin/runtime/node_modules/find-up/license +0 -9
  570. package/plugin/runtime/node_modules/find-up/package.json +0 -53
  571. package/plugin/runtime/node_modules/find-up/readme.md +0 -156
  572. package/plugin/runtime/node_modules/get-caller-file/LICENSE.md +0 -6
  573. package/plugin/runtime/node_modules/get-caller-file/README.md +0 -41
  574. package/plugin/runtime/node_modules/get-caller-file/index.d.ts +0 -2
  575. package/plugin/runtime/node_modules/get-caller-file/index.js +0 -22
  576. package/plugin/runtime/node_modules/get-caller-file/index.js.map +0 -1
  577. package/plugin/runtime/node_modules/get-caller-file/package.json +0 -42
  578. package/plugin/runtime/node_modules/is-fullwidth-code-point/index.d.ts +0 -17
  579. package/plugin/runtime/node_modules/is-fullwidth-code-point/index.js +0 -50
  580. package/plugin/runtime/node_modules/is-fullwidth-code-point/license +0 -9
  581. package/plugin/runtime/node_modules/is-fullwidth-code-point/package.json +0 -42
  582. package/plugin/runtime/node_modules/is-fullwidth-code-point/readme.md +0 -39
  583. package/plugin/runtime/node_modules/locate-path/index.d.ts +0 -83
  584. package/plugin/runtime/node_modules/locate-path/index.js +0 -65
  585. package/plugin/runtime/node_modules/locate-path/license +0 -9
  586. package/plugin/runtime/node_modules/locate-path/package.json +0 -45
  587. package/plugin/runtime/node_modules/locate-path/readme.md +0 -122
  588. package/plugin/runtime/node_modules/node-app-attest/.github/dependabot.yml +0 -6
  589. package/plugin/runtime/node_modules/node-app-attest/.github/workflows/ci.yml +0 -43
  590. package/plugin/runtime/node_modules/node-app-attest/.prettierrc +0 -1
  591. package/plugin/runtime/node_modules/node-app-attest/.yarnrc.yml +0 -1
  592. package/plugin/runtime/node_modules/node-app-attest/LICENSE +0 -21
  593. package/plugin/runtime/node_modules/node-app-attest/README.md +0 -300
  594. package/plugin/runtime/node_modules/node-app-attest/eslint.config.js +0 -30
  595. package/plugin/runtime/node_modules/node-app-attest/package.json +0 -44
  596. package/plugin/runtime/node_modules/node-app-attest/src/index.js +0 -4
  597. package/plugin/runtime/node_modules/node-app-attest/src/verifyAssertion.js +0 -81
  598. package/plugin/runtime/node_modules/node-app-attest/src/verifyAttestation.js +0 -211
  599. package/plugin/runtime/node_modules/node-app-attest/test/fixtures/attestation-development.json +0 -5
  600. package/plugin/runtime/node_modules/node-app-attest/test/fixtures/attestation-production.json +0 -5
  601. package/plugin/runtime/node_modules/node-app-attest/test/verifyAssertion.test.js +0 -119
  602. package/plugin/runtime/node_modules/node-app-attest/test/verifyAttestation.test.js +0 -303
  603. package/plugin/runtime/node_modules/node-app-attest/tsconfig.json +0 -11
  604. package/plugin/runtime/node_modules/node-app-attest/types/index.d.ts +0 -4
  605. package/plugin/runtime/node_modules/node-app-attest/types/index.d.ts.map +0 -1
  606. package/plugin/runtime/node_modules/node-app-attest/types/verifyAssertion.d.ts +0 -5
  607. package/plugin/runtime/node_modules/node-app-attest/types/verifyAssertion.d.ts.map +0 -1
  608. package/plugin/runtime/node_modules/node-app-attest/types/verifyAttestation.d.ts +0 -8
  609. package/plugin/runtime/node_modules/node-app-attest/types/verifyAttestation.d.ts.map +0 -1
  610. package/plugin/runtime/node_modules/nofilter/LICENSE.md +0 -20
  611. package/plugin/runtime/node_modules/nofilter/README.md +0 -36
  612. package/plugin/runtime/node_modules/nofilter/lib/index.js +0 -1055
  613. package/plugin/runtime/node_modules/nofilter/package.json +0 -60
  614. package/plugin/runtime/node_modules/nofilter/types/index.d.ts +0 -573
  615. package/plugin/runtime/node_modules/p-limit/index.d.ts +0 -38
  616. package/plugin/runtime/node_modules/p-limit/index.js +0 -57
  617. package/plugin/runtime/node_modules/p-limit/license +0 -9
  618. package/plugin/runtime/node_modules/p-limit/package.json +0 -52
  619. package/plugin/runtime/node_modules/p-limit/readme.md +0 -101
  620. package/plugin/runtime/node_modules/p-locate/index.d.ts +0 -64
  621. package/plugin/runtime/node_modules/p-locate/index.js +0 -52
  622. package/plugin/runtime/node_modules/p-locate/license +0 -9
  623. package/plugin/runtime/node_modules/p-locate/package.json +0 -53
  624. package/plugin/runtime/node_modules/p-locate/readme.md +0 -90
  625. package/plugin/runtime/node_modules/p-try/index.d.ts +0 -39
  626. package/plugin/runtime/node_modules/p-try/index.js +0 -9
  627. package/plugin/runtime/node_modules/p-try/license +0 -9
  628. package/plugin/runtime/node_modules/p-try/package.json +0 -42
  629. package/plugin/runtime/node_modules/p-try/readme.md +0 -58
  630. package/plugin/runtime/node_modules/path-exists/index.d.ts +0 -28
  631. package/plugin/runtime/node_modules/path-exists/index.js +0 -23
  632. package/plugin/runtime/node_modules/path-exists/license +0 -9
  633. package/plugin/runtime/node_modules/path-exists/package.json +0 -39
  634. package/plugin/runtime/node_modules/path-exists/readme.md +0 -52
  635. package/plugin/runtime/node_modules/pkijs/LICENSE +0 -30
  636. package/plugin/runtime/node_modules/pkijs/README.md +0 -81
  637. package/plugin/runtime/node_modules/pkijs/build/index.d.ts +0 -9419
  638. package/plugin/runtime/node_modules/pkijs/build/index.es.js +0 -18789
  639. package/plugin/runtime/node_modules/pkijs/build/index.js +0 -19014
  640. package/plugin/runtime/node_modules/pkijs/package.json +0 -98
  641. package/plugin/runtime/node_modules/pngjs/.eslintignore +0 -2
  642. package/plugin/runtime/node_modules/pngjs/.eslintrc.json +0 -19
  643. package/plugin/runtime/node_modules/pngjs/.prettierignore +0 -3
  644. package/plugin/runtime/node_modules/pngjs/LICENSE +0 -20
  645. package/plugin/runtime/node_modules/pngjs/README.md +0 -429
  646. package/plugin/runtime/node_modules/pngjs/browser.js +0 -16096
  647. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/base.css +0 -354
  648. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/bitmapper.js.html +0 -881
  649. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/bitpacker.js.html +0 -554
  650. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/block-navigation.js +0 -77
  651. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/chunkstream.js.html +0 -647
  652. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/constants.js.html +0 -176
  653. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/crc.js.html +0 -200
  654. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/favicon.png +0 -0
  655. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/filter-pack.js.html +0 -593
  656. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/filter-parse-async.js.html +0 -152
  657. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/filter-parse-sync.js.html +0 -143
  658. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/filter-parse.js.html +0 -611
  659. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/format-normaliser.js.html +0 -359
  660. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/index.html +0 -426
  661. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/interlace.js.html +0 -365
  662. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/packer-async.js.html +0 -230
  663. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/packer-sync.js.html +0 -248
  664. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/packer.js.html +0 -467
  665. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/paeth-predictor.js.html +0 -128
  666. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/parser-async.js.html +0 -575
  667. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/parser-sync.js.html +0 -404
  668. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/parser.js.html +0 -950
  669. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/png-sync.js.html +0 -116
  670. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/png.js.html +0 -662
  671. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/prettify.css +0 -101
  672. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/prettify.js +0 -1007
  673. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  674. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/sorter.js +0 -169
  675. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/sync-inflate.js.html +0 -584
  676. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/sync-reader.js.html +0 -215
  677. package/plugin/runtime/node_modules/pngjs/coverage/lcov.info +0 -2177
  678. package/plugin/runtime/node_modules/pngjs/lib/bitmapper.js +0 -267
  679. package/plugin/runtime/node_modules/pngjs/lib/bitpacker.js +0 -158
  680. package/plugin/runtime/node_modules/pngjs/lib/chunkstream.js +0 -189
  681. package/plugin/runtime/node_modules/pngjs/lib/constants.js +0 -32
  682. package/plugin/runtime/node_modules/pngjs/lib/crc.js +0 -40
  683. package/plugin/runtime/node_modules/pngjs/lib/filter-pack.js +0 -171
  684. package/plugin/runtime/node_modules/pngjs/lib/filter-parse-async.js +0 -24
  685. package/plugin/runtime/node_modules/pngjs/lib/filter-parse-sync.js +0 -21
  686. package/plugin/runtime/node_modules/pngjs/lib/filter-parse.js +0 -177
  687. package/plugin/runtime/node_modules/pngjs/lib/format-normaliser.js +0 -93
  688. package/plugin/runtime/node_modules/pngjs/lib/interlace.js +0 -95
  689. package/plugin/runtime/node_modules/pngjs/lib/packer-async.js +0 -50
  690. package/plugin/runtime/node_modules/pngjs/lib/packer-sync.js +0 -56
  691. package/plugin/runtime/node_modules/pngjs/lib/packer.js +0 -129
  692. package/plugin/runtime/node_modules/pngjs/lib/paeth-predictor.js +0 -16
  693. package/plugin/runtime/node_modules/pngjs/lib/parser-async.js +0 -165
  694. package/plugin/runtime/node_modules/pngjs/lib/parser-sync.js +0 -108
  695. package/plugin/runtime/node_modules/pngjs/lib/parser.js +0 -290
  696. package/plugin/runtime/node_modules/pngjs/lib/png-sync.js +0 -12
  697. package/plugin/runtime/node_modules/pngjs/lib/png.js +0 -194
  698. package/plugin/runtime/node_modules/pngjs/lib/sync-inflate.js +0 -168
  699. package/plugin/runtime/node_modules/pngjs/lib/sync-reader.js +0 -45
  700. package/plugin/runtime/node_modules/pngjs/package.json +0 -73
  701. package/plugin/runtime/node_modules/pvtsutils/LICENSE +0 -21
  702. package/plugin/runtime/node_modules/pvtsutils/README.md +0 -80
  703. package/plugin/runtime/node_modules/pvtsutils/build/index.d.ts +0 -208
  704. package/plugin/runtime/node_modules/pvtsutils/build/index.es.js +0 -393
  705. package/plugin/runtime/node_modules/pvtsutils/build/index.js +0 -399
  706. package/plugin/runtime/node_modules/pvtsutils/package.json +0 -76
  707. package/plugin/runtime/node_modules/pvutils/LICENSE +0 -24
  708. package/plugin/runtime/node_modules/pvutils/README.md +0 -24
  709. package/plugin/runtime/node_modules/pvutils/build/index.d.ts +0 -116
  710. package/plugin/runtime/node_modules/pvutils/build/utils.es.js +0 -340
  711. package/plugin/runtime/node_modules/pvutils/build/utils.js +0 -361
  712. package/plugin/runtime/node_modules/pvutils/package.json +0 -63
  713. package/plugin/runtime/node_modules/qrcode/README.md +0 -770
  714. package/plugin/runtime/node_modules/qrcode/bin/qrcode +0 -159
  715. package/plugin/runtime/node_modules/qrcode/helper/to-sjis-browser.js +0 -2
  716. package/plugin/runtime/node_modules/qrcode/helper/to-sjis.js +0 -105
  717. package/plugin/runtime/node_modules/qrcode/lib/browser.js +0 -76
  718. package/plugin/runtime/node_modules/qrcode/lib/can-promise.js +0 -7
  719. package/plugin/runtime/node_modules/qrcode/lib/core/alignment-pattern.js +0 -83
  720. package/plugin/runtime/node_modules/qrcode/lib/core/alphanumeric-data.js +0 -59
  721. package/plugin/runtime/node_modules/qrcode/lib/core/bit-buffer.js +0 -37
  722. package/plugin/runtime/node_modules/qrcode/lib/core/bit-matrix.js +0 -65
  723. package/plugin/runtime/node_modules/qrcode/lib/core/byte-data.js +0 -30
  724. package/plugin/runtime/node_modules/qrcode/lib/core/error-correction-code.js +0 -135
  725. package/plugin/runtime/node_modules/qrcode/lib/core/error-correction-level.js +0 -50
  726. package/plugin/runtime/node_modules/qrcode/lib/core/finder-pattern.js +0 -22
  727. package/plugin/runtime/node_modules/qrcode/lib/core/format-info.js +0 -29
  728. package/plugin/runtime/node_modules/qrcode/lib/core/galois-field.js +0 -69
  729. package/plugin/runtime/node_modules/qrcode/lib/core/kanji-data.js +0 -54
  730. package/plugin/runtime/node_modules/qrcode/lib/core/mask-pattern.js +0 -234
  731. package/plugin/runtime/node_modules/qrcode/lib/core/mode.js +0 -167
  732. package/plugin/runtime/node_modules/qrcode/lib/core/numeric-data.js +0 -43
  733. package/plugin/runtime/node_modules/qrcode/lib/core/polynomial.js +0 -62
  734. package/plugin/runtime/node_modules/qrcode/lib/core/qrcode.js +0 -495
  735. package/plugin/runtime/node_modules/qrcode/lib/core/reed-solomon-encoder.js +0 -56
  736. package/plugin/runtime/node_modules/qrcode/lib/core/regex.js +0 -31
  737. package/plugin/runtime/node_modules/qrcode/lib/core/segments.js +0 -330
  738. package/plugin/runtime/node_modules/qrcode/lib/core/utils.js +0 -63
  739. package/plugin/runtime/node_modules/qrcode/lib/core/version-check.js +0 -9
  740. package/plugin/runtime/node_modules/qrcode/lib/core/version.js +0 -163
  741. package/plugin/runtime/node_modules/qrcode/lib/index.js +0 -12
  742. package/plugin/runtime/node_modules/qrcode/lib/renderer/canvas.js +0 -63
  743. package/plugin/runtime/node_modules/qrcode/lib/renderer/png.js +0 -78
  744. package/plugin/runtime/node_modules/qrcode/lib/renderer/svg-tag.js +0 -81
  745. package/plugin/runtime/node_modules/qrcode/lib/renderer/svg.js +0 -19
  746. package/plugin/runtime/node_modules/qrcode/lib/renderer/terminal/terminal-small.js +0 -85
  747. package/plugin/runtime/node_modules/qrcode/lib/renderer/terminal/terminal.js +0 -49
  748. package/plugin/runtime/node_modules/qrcode/lib/renderer/terminal.js +0 -9
  749. package/plugin/runtime/node_modules/qrcode/lib/renderer/utf8.js +0 -71
  750. package/plugin/runtime/node_modules/qrcode/lib/renderer/utils.js +0 -99
  751. package/plugin/runtime/node_modules/qrcode/lib/server.js +0 -138
  752. package/plugin/runtime/node_modules/qrcode/license +0 -10
  753. package/plugin/runtime/node_modules/qrcode/package.json +0 -77
  754. package/plugin/runtime/node_modules/require-directory/.jshintrc +0 -67
  755. package/plugin/runtime/node_modules/require-directory/.travis.yml +0 -3
  756. package/plugin/runtime/node_modules/require-directory/LICENSE +0 -22
  757. package/plugin/runtime/node_modules/require-directory/README.markdown +0 -184
  758. package/plugin/runtime/node_modules/require-directory/index.js +0 -86
  759. package/plugin/runtime/node_modules/require-directory/package.json +0 -40
  760. package/plugin/runtime/node_modules/require-main-filename/CHANGELOG.md +0 -26
  761. package/plugin/runtime/node_modules/require-main-filename/LICENSE.txt +0 -14
  762. package/plugin/runtime/node_modules/require-main-filename/README.md +0 -26
  763. package/plugin/runtime/node_modules/require-main-filename/index.js +0 -18
  764. package/plugin/runtime/node_modules/require-main-filename/package.json +0 -35
  765. package/plugin/runtime/node_modules/set-blocking/CHANGELOG.md +0 -26
  766. package/plugin/runtime/node_modules/set-blocking/LICENSE.txt +0 -14
  767. package/plugin/runtime/node_modules/set-blocking/README.md +0 -31
  768. package/plugin/runtime/node_modules/set-blocking/index.js +0 -7
  769. package/plugin/runtime/node_modules/set-blocking/package.json +0 -42
  770. package/plugin/runtime/node_modules/string-width/index.d.ts +0 -29
  771. package/plugin/runtime/node_modules/string-width/index.js +0 -47
  772. package/plugin/runtime/node_modules/string-width/license +0 -9
  773. package/plugin/runtime/node_modules/string-width/package.json +0 -56
  774. package/plugin/runtime/node_modules/string-width/readme.md +0 -50
  775. package/plugin/runtime/node_modules/strip-ansi/index.d.ts +0 -17
  776. package/plugin/runtime/node_modules/strip-ansi/index.js +0 -4
  777. package/plugin/runtime/node_modules/strip-ansi/license +0 -9
  778. package/plugin/runtime/node_modules/strip-ansi/package.json +0 -54
  779. package/plugin/runtime/node_modules/strip-ansi/readme.md +0 -46
  780. package/plugin/runtime/node_modules/tslib/CopyrightNotice.txt +0 -15
  781. package/plugin/runtime/node_modules/tslib/LICENSE.txt +0 -12
  782. package/plugin/runtime/node_modules/tslib/README.md +0 -159
  783. package/plugin/runtime/node_modules/tslib/SECURITY.md +0 -41
  784. package/plugin/runtime/node_modules/tslib/modules/index.d.ts +0 -38
  785. package/plugin/runtime/node_modules/tslib/modules/index.js +0 -70
  786. package/plugin/runtime/node_modules/tslib/modules/package.json +0 -3
  787. package/plugin/runtime/node_modules/tslib/package.json +0 -47
  788. package/plugin/runtime/node_modules/tslib/tslib.d.ts +0 -462
  789. package/plugin/runtime/node_modules/tslib/tslib.es6.html +0 -1
  790. package/plugin/runtime/node_modules/tslib/tslib.es6.js +0 -411
  791. package/plugin/runtime/node_modules/tslib/tslib.es6.mjs +0 -410
  792. package/plugin/runtime/node_modules/tslib/tslib.html +0 -1
  793. package/plugin/runtime/node_modules/tslib/tslib.js +0 -493
  794. package/plugin/runtime/node_modules/which-module/LICENSE +0 -13
  795. package/plugin/runtime/node_modules/which-module/README.md +0 -58
  796. package/plugin/runtime/node_modules/which-module/index.js +0 -9
  797. package/plugin/runtime/node_modules/which-module/package.json +0 -41
  798. package/plugin/runtime/node_modules/wrap-ansi/index.js +0 -186
  799. package/plugin/runtime/node_modules/wrap-ansi/license +0 -9
  800. package/plugin/runtime/node_modules/wrap-ansi/package.json +0 -61
  801. package/plugin/runtime/node_modules/wrap-ansi/readme.md +0 -97
  802. package/plugin/runtime/node_modules/y18n/CHANGELOG.md +0 -35
  803. package/plugin/runtime/node_modules/y18n/LICENSE +0 -13
  804. package/plugin/runtime/node_modules/y18n/README.md +0 -109
  805. package/plugin/runtime/node_modules/y18n/index.js +0 -188
  806. package/plugin/runtime/node_modules/y18n/package.json +0 -39
  807. package/plugin/runtime/node_modules/yargs/CHANGELOG.md +0 -420
  808. package/plugin/runtime/node_modules/yargs/LICENSE +0 -21
  809. package/plugin/runtime/node_modules/yargs/README.md +0 -140
  810. package/plugin/runtime/node_modules/yargs/build/lib/apply-extends.d.ts +0 -2
  811. package/plugin/runtime/node_modules/yargs/build/lib/apply-extends.js +0 -65
  812. package/plugin/runtime/node_modules/yargs/build/lib/argsert.d.ts +0 -2
  813. package/plugin/runtime/node_modules/yargs/build/lib/argsert.js +0 -65
  814. package/plugin/runtime/node_modules/yargs/build/lib/command.d.ts +0 -64
  815. package/plugin/runtime/node_modules/yargs/build/lib/command.js +0 -416
  816. package/plugin/runtime/node_modules/yargs/build/lib/common-types.d.ts +0 -36
  817. package/plugin/runtime/node_modules/yargs/build/lib/common-types.js +0 -25
  818. package/plugin/runtime/node_modules/yargs/build/lib/completion-templates.d.ts +0 -2
  819. package/plugin/runtime/node_modules/yargs/build/lib/completion-templates.js +0 -50
  820. package/plugin/runtime/node_modules/yargs/build/lib/completion.d.ts +0 -21
  821. package/plugin/runtime/node_modules/yargs/build/lib/completion.js +0 -135
  822. package/plugin/runtime/node_modules/yargs/build/lib/is-promise.d.ts +0 -1
  823. package/plugin/runtime/node_modules/yargs/build/lib/is-promise.js +0 -9
  824. package/plugin/runtime/node_modules/yargs/build/lib/levenshtein.d.ts +0 -1
  825. package/plugin/runtime/node_modules/yargs/build/lib/levenshtein.js +0 -58
  826. package/plugin/runtime/node_modules/yargs/build/lib/middleware.d.ts +0 -10
  827. package/plugin/runtime/node_modules/yargs/build/lib/middleware.js +0 -57
  828. package/plugin/runtime/node_modules/yargs/build/lib/obj-filter.d.ts +0 -1
  829. package/plugin/runtime/node_modules/yargs/build/lib/obj-filter.js +0 -14
  830. package/plugin/runtime/node_modules/yargs/build/lib/parse-command.d.ts +0 -11
  831. package/plugin/runtime/node_modules/yargs/build/lib/parse-command.js +0 -36
  832. package/plugin/runtime/node_modules/yargs/build/lib/process-argv.d.ts +0 -2
  833. package/plugin/runtime/node_modules/yargs/build/lib/process-argv.js +0 -31
  834. package/plugin/runtime/node_modules/yargs/build/lib/usage.d.ts +0 -49
  835. package/plugin/runtime/node_modules/yargs/build/lib/usage.js +0 -540
  836. package/plugin/runtime/node_modules/yargs/build/lib/validation.d.ts +0 -34
  837. package/plugin/runtime/node_modules/yargs/build/lib/validation.js +0 -330
  838. package/plugin/runtime/node_modules/yargs/build/lib/yargs.d.ts +0 -274
  839. package/plugin/runtime/node_modules/yargs/build/lib/yargs.js +0 -1190
  840. package/plugin/runtime/node_modules/yargs/build/lib/yerror.d.ts +0 -4
  841. package/plugin/runtime/node_modules/yargs/build/lib/yerror.js +0 -11
  842. package/plugin/runtime/node_modules/yargs/index.js +0 -40
  843. package/plugin/runtime/node_modules/yargs/locales/be.json +0 -46
  844. package/plugin/runtime/node_modules/yargs/locales/de.json +0 -46
  845. package/plugin/runtime/node_modules/yargs/locales/en.json +0 -51
  846. package/plugin/runtime/node_modules/yargs/locales/es.json +0 -46
  847. package/plugin/runtime/node_modules/yargs/locales/fi.json +0 -49
  848. package/plugin/runtime/node_modules/yargs/locales/fr.json +0 -53
  849. package/plugin/runtime/node_modules/yargs/locales/hi.json +0 -49
  850. package/plugin/runtime/node_modules/yargs/locales/hu.json +0 -46
  851. package/plugin/runtime/node_modules/yargs/locales/id.json +0 -50
  852. package/plugin/runtime/node_modules/yargs/locales/it.json +0 -46
  853. package/plugin/runtime/node_modules/yargs/locales/ja.json +0 -51
  854. package/plugin/runtime/node_modules/yargs/locales/ko.json +0 -49
  855. package/plugin/runtime/node_modules/yargs/locales/nb.json +0 -44
  856. package/plugin/runtime/node_modules/yargs/locales/nl.json +0 -49
  857. package/plugin/runtime/node_modules/yargs/locales/nn.json +0 -44
  858. package/plugin/runtime/node_modules/yargs/locales/pirate.json +0 -13
  859. package/plugin/runtime/node_modules/yargs/locales/pl.json +0 -49
  860. package/plugin/runtime/node_modules/yargs/locales/pt.json +0 -45
  861. package/plugin/runtime/node_modules/yargs/locales/pt_BR.json +0 -48
  862. package/plugin/runtime/node_modules/yargs/locales/ru.json +0 -46
  863. package/plugin/runtime/node_modules/yargs/locales/th.json +0 -46
  864. package/plugin/runtime/node_modules/yargs/locales/tr.json +0 -48
  865. package/plugin/runtime/node_modules/yargs/locales/zh_CN.json +0 -48
  866. package/plugin/runtime/node_modules/yargs/locales/zh_TW.json +0 -47
  867. package/plugin/runtime/node_modules/yargs/package.json +0 -92
  868. package/plugin/runtime/node_modules/yargs/yargs.js +0 -14
  869. package/plugin/runtime/node_modules/yargs-parser/CHANGELOG.md +0 -601
  870. package/plugin/runtime/node_modules/yargs-parser/LICENSE.txt +0 -14
  871. package/plugin/runtime/node_modules/yargs-parser/README.md +0 -449
  872. package/plugin/runtime/node_modules/yargs-parser/index.js +0 -1032
  873. package/plugin/runtime/node_modules/yargs-parser/lib/tokenize-arg-string.js +0 -40
  874. package/plugin/runtime/node_modules/yargs-parser/package.json +0 -46
  875. package/plugin/runtime/package-lock.json +0 -447
  876. package/plugin/runtime/package.json +0 -13
  877. package/plugin/tools.py +0 -3
package/README.md CHANGED
@@ -4,11 +4,11 @@
4
4
 
5
5
  ## 环境
6
6
 
7
- 当前验证macOS、Hermes 0.22.5(固定源码bf0203a794a07aac3ff764972ab9087baa4e4f4e)和Node.js >=22.13。其它发行或核心文件变化会被插件兼容门禁拒绝。官方固定兼容告警保留,不声明零内部API依赖。请先完成Hermes设置及可用模型登录;依赖环境损坏时先运行hermes pm repair。
7
+ 支持 macOS 和 Linux,使用 Hermes 0.22.5(固定源码bf0203a794a07aac3ff764972ab9087baa4e4f4e)和Node.js >=22.13。其它发行或核心文件变化会被插件兼容门禁拒绝。官方固定兼容告警保留,不声明零内部API依赖。请先完成Hermes设置及可用模型登录;依赖环境损坏时先运行hermes pm repair。官方校验确认 Hermes 的 Python 3.14 环境已满足插件固定依赖时,安装沿用现有依赖环境;其它情况保留标准依赖安装。
8
8
 
9
9
  ## 使用与数据
10
10
 
11
- 运行本包默认命令即可安装并配对;可选--profile指定已有配置,--hermes指定CLI路径。--public-access on|off用于本次明确选择公网准备;省略时保留原值,包括来源不明的旧false。只使用Hermes公开插件、配置和网关命令;不使用旧独立canonical客户端。官方在途任务及监督器保护保持,不带--all、--force或--yes重启网关。
11
+ 运行本包默认命令即可安装并配对;可选--profile指定已有配置,--hermes指定CLI路径。--public-access on|off用于本次明确选择公网准备;省略时保留原值,包括来源不明的旧false。固定版本的 Linux 默认配置可复用发行时的源码检查,并在本机执行注册、冲突与信任检查。安装器通过该版本 Hermes CLI 内部的安装、配置和网关入口批量操作;其它配置沿用逐项 CLI 流程。官方在途任务及监督器保护保持,不带--all、--force或--yes重启网关。
12
12
 
13
13
  已有模型配置、允许用户、Node路径、数据目录和服务身份保留。已有允许用户不含owner时先明确修复授权。全新服务准备LAN监听,并沿标准插件默认准备FridayTunnel网关待机;已有监听、显式公网开关和私有配置不重置。旧安装器写入但没有来源标记的false保守保留,需要用户明确配置选择后才启用。网关待机不代表用户权益、grant、隧道在线或模型就绪。安装记录与私有备份保留在当前Hermes配置目录的.fridaynext-installer下,config-origins.json只记录值摘要与来源,不保存配置/凭据明文;来源记录损坏或写入失败时停止并保留未完成状态,不猜用户意图。失败不会声称已回滚运行中的服务,也不取消任务或清除数据。安装器更新时重新运行发行命令;Hermes登记本机包来源,不声称官方catalog自动更新。
14
14
 
package/install-config.js CHANGED
@@ -29,13 +29,12 @@ export class InstallerConfig {
29
29
  } catch { throw problem('CONFIG_PROVENANCE_UNREADABLE', '安装配置来源记录损坏或不属于当前Hermes配置,请先核对备份。'); }
30
30
  }
31
31
 
32
- observe(key) {
33
- const value = this.read(key), valueHash = hash(value), previous = this.entries[key];
32
+ observe(key, value) {
33
+ const valueHash = hash(value), previous = this.entries[key];
34
34
  // 同值本身不能证明来源。只有已有完整记录且指纹未变时才保留原来源;未完成写入保守降级。
35
35
  this.entries[key] = value === null ? { origin: 'unset', valueHash }
36
36
  : previous && !previous.pending && previous.valueHash === valueHash ? previous
37
37
  : { origin: 'unattributed', valueHash };
38
- return value;
39
38
  }
40
39
 
41
40
  save() {
@@ -53,8 +52,26 @@ export class InstallerConfig {
53
52
  }
54
53
  }
55
54
 
56
- write(key, value, origin) {
57
- const previous = this.observe(key), valueHash = hash(value);
55
+ writeBatch(changes, applyAndRead) {
56
+ const changed = changes.filter(([key, value]) => this.entries[key].valueHash !== hash(value));
57
+ if (changed.length) {
58
+ for (const [key, value, origin] of changed) {
59
+ this.entries[key].pending = { origin, valueHash: hash(value), sourceHash: this.sourceHash };
60
+ }
61
+ this.save();
62
+ }
63
+ const actual = applyAndRead(changed.map(([key, value]) => [key, value]));
64
+ for (const [key, value] of changes) {
65
+ if (hash(actual[key]) !== hash(value)) throw problem('CONFIG_READBACK_MISMATCH', 'Hermes 配置写入结果尚未确认。');
66
+ }
67
+ for (const [key, value, origin] of changes) {
68
+ this.entries[key] = { origin, valueHash: hash(value), sourceHash: this.sourceHash };
69
+ }
70
+ this.save();
71
+ }
72
+
73
+ write(key, value, origin, previous) {
74
+ const valueHash = hash(value);
58
75
  if (hash(previous) !== valueHash) {
59
76
  this.entries[key] = { ...this.entries[key], pending: { origin, valueHash, sourceHash: this.sourceHash } };
60
77
  this.save();
@@ -0,0 +1,95 @@
1
+ """固定 Hermes 0.22.5 源码安装的配置入口。解释器由该宿主自己的启动器解析。"""
2
+ import json
3
+ import os
4
+ import sys
5
+ from pathlib import Path
6
+ from contextlib import redirect_stdout, redirect_stderr
7
+ from io import StringIO
8
+
9
+ root, action, *args = sys.argv[1:]
10
+ sys.path.insert(0, root)
11
+ import hermes_bootstrap
12
+ from hermes_cli import config
13
+
14
+ def get_value(key):
15
+ output, error = StringIO(), StringIO()
16
+ try:
17
+ with redirect_stdout(output), redirect_stderr(error):
18
+ config.get_config_value(key, as_json=True)
19
+ except SystemExit as exc:
20
+ if exc.code == 1 and "Config key not set:" in error.getvalue():
21
+ return None
22
+ raise
23
+ return json.loads(output.getvalue())
24
+
25
+
26
+ def snapshot():
27
+ return {"settings": get_value("platforms.fridaynext"), "allowed": get_value("FRIDAYNEXT_ALLOWED_USERS")}
28
+
29
+
30
+ def running():
31
+ from hermes_constants import get_hermes_home
32
+ from gateway.status import live_gateway_pid_for_home
33
+
34
+ return live_gateway_pid_for_home(Path(get_hermes_home())) is not None
35
+
36
+
37
+ def in_child(operation):
38
+ # 写入和安装在子进程完成,随后由未加载写入值的父进程读回磁盘。
39
+ pid = os.fork()
40
+ if pid == 0:
41
+ try:
42
+ with redirect_stdout(sys.stderr):
43
+ operation()
44
+ except SystemExit as exc:
45
+ os._exit(0 if exc.code is None else int(exc.code))
46
+ except Exception as exc:
47
+ print(f'Hermes 操作异常:{type(exc).__name__}', file=sys.stderr, flush=True)
48
+ os._exit(1)
49
+ os._exit(0)
50
+ if os.waitpid(pid, 0)[1] != 0:
51
+ raise RuntimeError("Hermes 安装或配置写入失败")
52
+
53
+
54
+ if action == "inspect":
55
+ from importlib.metadata import version
56
+ from hermes_constants import get_default_hermes_root, get_hermes_home
57
+
58
+ # 源码静态检查已绑定发行包。真正的注册、宿主词表冲突与信任声明仍由本机解释器核对。
59
+ from hermes_cli.plugin_validate import (
60
+ ValidationReport, _check_capabilities, _check_builtin_collisions, _check_trusted_inbound,
61
+ )
62
+ import hermes_yaml
63
+
64
+ source = Path(args[0])
65
+ manifest = hermes_yaml.safe_load((source / "plugin.yaml").read_text(encoding="utf-8"))
66
+ report = ValidationReport()
67
+ recorded = _check_capabilities(report, manifest, source)
68
+ _check_builtin_collisions(report, manifest, recorded)
69
+ _check_trusted_inbound(report, recorded)
70
+ if not report.ok or report.warnings:
71
+ sys.exit(1)
72
+ print(json.dumps(dict(config=str(config.get_config_path()), env=str(config.get_env_path()),
73
+ snapshot=snapshot(), websockets=version("websockets"), python=list(sys.version_info[:2]),
74
+ defaultHome=get_hermes_home().resolve() == Path(get_default_hermes_root()).resolve())))
75
+ elif action == "install":
76
+ from hermes_cli.plugins_cmd_install import cmd_install
77
+
78
+ in_child(lambda: cmd_install(args[0], force=True, enable=True, yes_deps=True, brief=True))
79
+ print(json.dumps(snapshot()))
80
+ elif action == "ensure":
81
+ from types import SimpleNamespace
82
+ from hermes_cli.gateway_runtime_cli import cmd_gateway_ensure
83
+
84
+ cmd_gateway_ensure(SimpleNamespace(timeout=60))
85
+ elif action == "verify":
86
+ print(json.dumps(dict(snapshot=snapshot(), running=running())))
87
+ elif action == "apply":
88
+ def write_values():
89
+ for key, value in json.loads(args[0]):
90
+ config.set_config_value(key, value if isinstance(value, str) else json.dumps(value))
91
+
92
+ in_child(write_values)
93
+ print(json.dumps(dict(snapshot=snapshot(), running=running())))
94
+ else:
95
+ raise ValueError("未知的安装操作")
@@ -2,7 +2,7 @@ import fs from 'node:fs';
2
2
  import path from 'node:path';
3
3
  import { createHash, randomUUID } from 'node:crypto';
4
4
  import { spawnSync } from 'node:child_process';
5
- import { pathToFileURL } from 'node:url';
5
+ import { fileURLToPath, pathToFileURL } from 'node:url';
6
6
  import { InstallerConfig } from './install-config.js';
7
7
 
8
8
  export class InstallationError extends Error {
@@ -24,7 +24,7 @@ function canonicalDestination(value) {
24
24
  return path.join(fs.realpathSync(current), ...suffix);
25
25
  }
26
26
 
27
- function fingerprint(root) {
27
+ export function fingerprint(root, installedManifest = fs.readFileSync(path.join(root, 'plugin.yaml'))) {
28
28
  const hash = createHash('sha256');
29
29
  const visit = (directory, prefix = '') => {
30
30
  for (const name of fs.readdirSync(directory).sort()) {
@@ -36,7 +36,7 @@ function fingerprint(root) {
36
36
  } else if (stat.isSymbolicLink()) {
37
37
  hash.update(JSON.stringify([relative, 'link', fs.readlinkSync(file)]) + '\n');
38
38
  } else if (stat.isFile()) {
39
- const bytes = fs.readFileSync(file);
39
+ const bytes = relative === 'plugin.yaml' ? installedManifest : fs.readFileSync(file);
40
40
  hash.update(JSON.stringify([relative, 'file', bytes.length]) + '\n');
41
41
  hash.update(bytes);
42
42
  }
@@ -47,7 +47,34 @@ function fingerprint(root) {
47
47
  return hash.digest('hex');
48
48
  }
49
49
 
50
- /// 只通过公开Hermes CLI安装标准插件;不执行旧canonical管理器,也不初始化或擦除服务数据。
50
+ const revision = 'bf0203a794a07aac3ff764972ab9087baa4e4f4e';
51
+ const hostHelper = fileURLToPath(new URL('./install-host.py', import.meta.url));
52
+ const hostCommand = (root, action, ...args) => ['-I', hostHelper, root, action, ...args];
53
+
54
+ // 只复用同一发行闭包、固定版干净宿主的校验。其它安装仍通过现场 CLI。
55
+ function certifiedHost({ versionOutput, source, releaseBundle, hermes, run, env }) {
56
+ const proof = path.join(path.dirname(releaseBundle ?? source), 'validation.json');
57
+ if (!/local bf0203a794a0\b/.test(versionOutput) || !fs.existsSync(proof)) return;
58
+ const root = versionOutput.match(/^Install directory: (.+)$/m)?.[1];
59
+ if (!root || !path.isAbsolute(root)) return;
60
+ const options = { env, encoding: 'utf8', timeout: 30_000 };
61
+ const sha = run('git', ['-C', root, 'rev-parse', 'HEAD'], options);
62
+ if (sha.status !== 0 || sha.stdout?.trim() !== revision) return;
63
+ if (run('git', ['-C', root, 'diff', '--quiet', 'HEAD', '--'], options).status !== 0) return;
64
+ const receipt = JSON.parse(fs.readFileSync(proof, 'utf8'));
65
+ if (receipt.hash !== fingerprint(source) || receipt.report?.ok !== true) return;
66
+ const resolved = run(hermes, ['--print-runtime-command'], options);
67
+ if (resolved.status !== 0) return;
68
+ const [python] = JSON.parse(resolved.stdout);
69
+ if (typeof python !== 'string' || !path.isAbsolute(python)) return;
70
+ const inspected = run(python, hostCommand(root, 'inspect', source), options);
71
+ if (inspected.status !== 0) return;
72
+ const info = JSON.parse(inspected.stdout);
73
+ if (!info.defaultHome || info.python?.join('.') !== '3.14' || info.websockets !== '15.0.1') return;
74
+ return { root, python, receipt, info };
75
+ }
76
+
77
+ // 通过宿主安装标准插件。固定版本可复用同一组安装、配置和网关实现。
51
78
  export function installAndPair(options) {
52
79
  const { source, hermes = 'hermes', profile, env = process.env, platform = process.platform,
53
80
  nodeVersion = process.versions.node,
@@ -57,7 +84,7 @@ export function installAndPair(options) {
57
84
  if (!Number.isInteger(parts[0]) || !Number.isInteger(parts[1]) || parts[0] < 22 || (parts[0] === 22 && parts[1] < 13)) {
58
85
  throw new InstallationError('NODE_VERSION_UNSUPPORTED', '需要Node.js 22.13或更高版本。');
59
86
  }
60
- if (platform !== 'darwin') throw new InstallationError('PLATFORM_UNVERIFIED', '当前安装器已验证macOS;其他系统请使用经验证的安装说明。');
87
+ if (platform !== 'darwin' && platform !== 'linux') throw new InstallationError('PLATFORM_UNVERIFIED', '当前安装器支持 macOS 和 Linux;请在支持的系统上运行。');
61
88
  if (!fs.existsSync(path.join(source, 'plugin.yaml'))) throw new InstallationError('PACKAGE_MISSING', '缺少标准插件安装包,请使用完整发行包。');
62
89
  const manifest = fs.readFileSync(path.join(source, 'plugin.yaml'), 'utf8');
63
90
  if (!/^name:\s*fridaynext\s*$/m.test(manifest) || !/^kind:\s*platform\s*$/m.test(manifest)) {
@@ -79,6 +106,36 @@ export function installAndPair(options) {
79
106
  return (result.stdout ?? '').trim();
80
107
  };
81
108
  const cli = (args, capture = true) => command(hermes, [...prefix, ...args], capture);
109
+ const platformKey = 'platforms.fridaynext';
110
+ const ownerKey = 'FRIDAYNEXT_ALLOWED_USERS';
111
+ const snapshot = values => {
112
+ const settings = values ? values.settings : get(platformKey);
113
+ if (settings !== null && (typeof settings !== 'object' || Array.isArray(settings))) {
114
+ throw new InstallationError('CONFIG_UNREADABLE', 'Hermes 未返回可验证的 FridayNext 平台配置。');
115
+ }
116
+ const allowed = values ? values.allowed : get(ownerKey);
117
+ if (allowed !== null && (typeof allowed !== 'string' || !allowed.split(',').map(x => x.trim()).includes('owner'))) {
118
+ throw new InstallationError('OWNER_AUTHORIZATION_REQUIRED', '现有允许用户配置未授权owner,请在Hermes确认授权后重试。');
119
+ }
120
+ return { allowed, dataDir: settings?.data_dir ?? null, node: settings?.node_bin ?? null,
121
+ enabled: settings?.enabled ?? null, publicAccess: settings?.public_access ?? null };
122
+ };
123
+ const validate = (checkDependency = false) => {
124
+ const result = run(hermes, [...prefix, 'plugins', 'validate', source, '--json'], {
125
+ env: { ...env, FRIDAYNEXT_INSTALL_CHECK_WEBSOCKETS: checkDependency ? '1' : '' },
126
+ encoding: 'utf8', timeout: 300_000, stdio: 'pipe' });
127
+ let report;
128
+ try { report = JSON.parse(result.stdout); } catch {}
129
+ if (!result.error && result.status === 0 && report?.ok === true) return report;
130
+ if (checkDependency && !result.error && result.status === 1 && report?.ok === false && Array.isArray(report.checks)) {
131
+ const failed = report.checks.filter(check => check.ok === false);
132
+ if (failed.length === 1 && failed[0].name === 'capability probe'
133
+ && failed[0].detail === 'import failed: FRIDAYNEXT_WEBSOCKETS_VERSION_MISMATCH') return null;
134
+ }
135
+ throw new InstallationError('COMMAND_FAILED', 'Hermes 插件校验未完成。已有数据未清理,请核对 Hermes 依赖或插件包后重试。');
136
+ };
137
+ let host;
138
+ const hostArgs = (action, ...args) => hostCommand(host.root, action, ...args);
82
139
  const get = key => {
83
140
  const result = run(hermes, [...prefix, 'config', 'get', key, '--json'], {
84
141
  env, encoding: 'utf8', timeout: 30_000, stdio: 'pipe' });
@@ -92,25 +149,36 @@ export function installAndPair(options) {
92
149
  };
93
150
 
94
151
  progress('检查 Hermes');
95
- const version = cli(['--version']).match(/^Hermes Agent v?(\d+\.\d+\.\d+)(?=\s|\(|$)/m)?.[1];
152
+ const versionOutput = cli(['--version']);
153
+ const version = versionOutput.match(/^Hermes Agent v?(\d+\.\d+\.\d+)(?=\s|\(|$)/m)?.[1];
96
154
  if (version !== '0.22.5') throw new InstallationError('HERMES_VERSION_UNSUPPORTED', '当前插件仅验证Hermes 0.22.5,请先核对兼容版本。');
97
- const configFile = cli(['config', 'path']);
98
- const envFile = cli(['config', 'env-path']);
155
+ if (platform === 'linux' && hermes === 'hermes' && !profile) {
156
+ host = certifiedHost({ versionOutput, source, releaseBundle: options.releaseBundle, hermes, run, env });
157
+ }
158
+ const configFile = host?.info.config ?? cli(['config', 'path']);
159
+ const envFile = host?.info.env ?? cli(['config', 'env-path']);
99
160
  if (!path.isAbsolute(configFile) || !path.isAbsolute(envFile) || !fs.existsSync(configFile)) {
100
161
  throw new InstallationError('HERMES_SETUP_REQUIRED', '请先在电脑完成Hermes设置,再运行安装命令。');
101
162
  }
102
163
  const home = fs.realpathSync(path.dirname(configFile)), target = canonicalDestination(path.join(home, 'plugins', 'fridaynext'));
103
- const configuredData = get('platforms.fridaynext.data_dir');
104
- const data = typeof configuredData === 'string' && path.isAbsolute(configuredData) ? canonicalDestination(configuredData) : configuredData;
105
- if (data && (typeof data !== 'string' || !path.isAbsolute(data) || path.resolve(data).startsWith(target + path.sep) || path.resolve(data) === target)) {
106
- throw new InstallationError('DATA_DIRECTORY_UNSAFE', '已有数据目录必须是插件目录之外的原绝对路径,请先核对配置。');
107
- }
108
- const allowed = get('FRIDAYNEXT_ALLOWED_USERS');
109
- if (allowed !== null && (typeof allowed !== 'string' || !allowed.split(',').map(x => x.trim()).includes('owner'))) {
110
- throw new InstallationError('OWNER_AUTHORIZATION_REQUIRED', '现有允许用户配置未授权owner,请在Hermes确认授权后重试。');
111
- }
112
- const node = get('platforms.fridaynext.node_bin');
113
- const validation = JSON.parse(cli(['plugins', 'validate', source, '--json']));
164
+ const readData = configured => {
165
+ const data = typeof configured === 'string' && path.isAbsolute(configured) ? canonicalDestination(configured) : configured;
166
+ if (data && (typeof data !== 'string' || !path.isAbsolute(data) || data.startsWith(target + path.sep) || data === target)) {
167
+ throw new InstallationError('DATA_DIRECTORY_UNSAFE', '已有数据目录必须是插件目录之外的原绝对路径,请先核对配置。');
168
+ }
169
+ return data || path.join(home, 'plugin-data', 'fridaynext', 'service');
170
+ };
171
+ const before = snapshot(host?.info.snapshot);
172
+ const service = readData(before.dataDir);
173
+ // Hermes 0.22.5 的 Python 3.14 基础环境已固定相同的依赖;用官方校验进程确认实际安装版本。
174
+ // 只移除唯一且完全相同的声明,保留旧 Python、不同环境和新增依赖的官方安装流程。
175
+ const withoutDependency = manifest.replace(/^python_dependencies:\r?\n - websockets==15\.0\.1\r?\n(?=\S|(?![\s\S]))/m, '');
176
+ const checkDependency = withoutDependency !== manifest && /^Python: 3\.14\.\d+[ \t]*\r?$/m.test(versionOutput);
177
+ const checked = host && checkDependency
178
+ ? host.receipt.report : validate(checkDependency);
179
+ const validation = checked ?? validate();
180
+ const skipDependencySync = checkDependency && checked !== null;
181
+ const installedManifest = Buffer.from(skipDependencySync ? withoutDependency : manifest);
114
182
  for (const warning of validation.warnings ?? []) {
115
183
  if (typeof warning !== 'string' || !warning.startsWith('private core imports')
116
184
  || [...warning.matchAll(/fridaynext_plugin\/[^:;\s]+\.py/g)].some(x => x[0] !== 'fridaynext_plugin/compat_v0225.py')) {
@@ -130,7 +198,7 @@ export function installAndPair(options) {
130
198
  fs.chmodSync(path.join(backup, name), name === 'plugin' ? 0o700 : 0o600);
131
199
  }
132
200
  }
133
- const receipt = { version: 1, state: 'prepared', profileRoot: home, backup, contentHash: fingerprint(source) };
201
+ const receipt = { version: 1, state: 'prepared', profileRoot: home, backup, contentHash: fingerprint(source, installedManifest) };
134
202
  const receiptFile = path.join(backup, 'receipt.json');
135
203
  const configProvenanceFile = path.join(installer, 'config-origins.json');
136
204
  receipt.configProvenanceFile = configProvenanceFile;
@@ -138,10 +206,18 @@ export function installAndPair(options) {
138
206
  save('prepared');
139
207
  try {
140
208
  const config = new InstallerConfig({ file: configProvenanceFile, profileRoot: home, sourceHash: receipt.contentHash,
141
- read: get, write: (key, value) => cli(['config', 'set', key, typeof value === 'string' ? value : JSON.stringify(value)], false) });
142
- for (const key of ['FRIDAYNEXT_ALLOWED_USERS', 'platforms.fridaynext.node_bin', 'platforms.fridaynext.enabled', 'platforms.fridaynext.public_access']) config.observe(key);
209
+ read: get, write: (key, value) => {
210
+ const text = typeof value === 'string' ? value : JSON.stringify(value);
211
+ cli(['config', 'set', key, text], false);
212
+ } });
213
+ const observe = values => {
214
+ config.observe(ownerKey, values.allowed);
215
+ config.observe(platformKey + '.node_bin', values.node);
216
+ config.observe(platformKey + '.enabled', values.enabled);
217
+ config.observe(platformKey + '.public_access', values.publicAccess);
218
+ };
219
+ observe(before);
143
220
  config.save();
144
- const service = data || path.join(home, 'plugin-data', 'fridaynext', 'service');
145
221
  if (!fs.existsSync(service)) {
146
222
  // 新安装复用本组件相同的身份/进程锁实现准备LAN坐标;已有数据、token、TLS和监听策略均不重建。
147
223
  const identityModule = pathToFileURL(path.join(source, 'runtime/dist/identity.js')).href;
@@ -163,34 +239,78 @@ export function installAndPair(options) {
163
239
  const release = path.join(installer, 'releases', receipt.contentHash);
164
240
  if (!fs.existsSync(path.join(release, '.git'))) {
165
241
  fs.mkdirSync(path.dirname(release), { recursive: true, mode: 0o700 });
166
- fs.cpSync(source, release, { recursive: true, filter: file => !file.split(path.sep).includes('__pycache__') });
167
- const git = args => command('git', ['-C', release, '-c', 'core.hooksPath=/dev/null', '-c', 'commit.gpgSign=false', ...args]);
168
- git(['init', '--quiet']);
169
- git(['add', '--force', '.']);
170
- git(['-c', 'user.name=FridayNext Installer', '-c', 'user.email=installer@fridaynext.local', 'commit', '--quiet', '-m', 'FridayNext verified plugin package']);
242
+ if (options.releaseBundle && host && (!skipDependencySync || receipt.contentHash === host.receipt.optimizedHash)) {
243
+ const branch = skipDependencySync ? 'host-dependencies' : 'source';
244
+ // 该来源是本次私有临时检出。直接移入发布目录,避免在 eMMC 上创建并删除第二份树。
245
+ const git = args => command('git', ['-C', source, '-c', 'core.hooksPath=/dev/null', ...args]);
246
+ git(['checkout', '-q', '-B', 'installed', 'origin/' + branch]);
247
+ git(['remote', 'remove', 'origin']);
248
+ if (fingerprint(source) !== receipt.contentHash) throw new InstallationError('PACKAGE_INVALID', 'Git 归档内容与校验回执不符。');
249
+ try { fs.renameSync(source, release); }
250
+ catch (error) {
251
+ if (error.code !== 'EXDEV') throw error;
252
+ const staging = fs.mkdtempSync(path.join(path.dirname(release), '.install-'));
253
+ try {
254
+ fs.cpSync(source, staging, { recursive: true });
255
+ fs.renameSync(staging, release);
256
+ } finally { fs.rmSync(staging, {recursive: true, force: true}); }
257
+ }
258
+ } else {
259
+ fs.cpSync(source, release, { recursive: true, filter: file => !file.split(path.sep).some(part => part === '.git' || part === '__pycache__') });
260
+ if (skipDependencySync) fs.writeFileSync(path.join(release, 'plugin.yaml'), installedManifest);
261
+ const git = args => command('git', ['-C', release, '-c', 'core.hooksPath=/dev/null', '-c', 'commit.gpgSign=false', ...args]);
262
+ git(['init', '--quiet']);
263
+ git(['add', '--force', '.']);
264
+ git(['-c', 'user.name=FridayNext Installer', '-c', 'user.email=installer@fridaynext.local', 'commit', '--quiet', '-m', 'FridayNext verified plugin package']);
265
+ }
171
266
  }
172
267
  progress('安装标准插件');
173
- cli(['plugins', 'install', pathToFileURL(release).href, '--force', '--enable', '--yes-deps'], false);
174
- // 只有本次明确选择才迁移旧公网值;缺省及无来源的旧false不自动更改。
175
- if (publicAccess !== undefined) config.write('platforms.fridaynext.public_access', publicAccess, 'explicit');
176
- if (allowed === null) config.write('FRIDAYNEXT_ALLOWED_USERS', 'owner', 'installer-default');
177
- if (!node) config.write('platforms.fridaynext.node_bin', process.execPath, 'installer-default');
178
- config.write('platforms.fridaynext.enabled', true, 'installer-action');
268
+ let installedValues;
269
+ if (host) installedValues = JSON.parse(command(host.python, hostArgs('install', pathToFileURL(release).href)));
270
+ else cli(['plugins', 'install', pathToFileURL(release).href, '--force', '--enable', '--yes-deps'], false);
271
+ // 官方安装可能写配置,等待期间用户也可能调整配置;写默认值前重新读取同一组设置。
272
+ const after = snapshot(installedValues);
273
+ if (readData(after.dataDir) !== service) {
274
+ throw new InstallationError('DATA_DIRECTORY_CHANGED', '安装期间 Hermes 数据目录已变更,请核对后重试。');
275
+ }
276
+ observe(after);
277
+ const changes = [];
278
+ if (after.allowed === null) changes.push([ownerKey, 'owner', 'installer-default', after.allowed]);
279
+ if (!after.node) changes.push([platformKey + '.node_bin', process.execPath, 'installer-default', after.node]);
280
+ if (publicAccess !== undefined) changes.push([platformKey + '.public_access', publicAccess, 'explicit', after.publicAccess]);
281
+ changes.push([platformKey + '.enabled', true, 'installer-action', after.enabled]);
282
+ let gatewayRunning;
283
+ if (host) {
284
+ config.writeBatch(changes, pairs => {
285
+ const reply = JSON.parse(command(host.python, hostArgs(pairs.length ? 'apply' : 'verify', JSON.stringify(pairs))));
286
+ gatewayRunning = reply.running;
287
+ const values = snapshot(reply.snapshot);
288
+ if (readData(values.dataDir) !== service) throw new InstallationError('DATA_DIRECTORY_CHANGED', '安装期间数据目录已变更。');
289
+ return { [ownerKey]: values.allowed, [platformKey + '.node_bin']: values.node,
290
+ [platformKey + '.enabled']: values.enabled, [platformKey + '.public_access']: values.publicAccess };
291
+ });
292
+ } else for (const change of changes) config.write(...change);
179
293
  save('installed');
180
294
  progress('启动或重载 Hermes 网关');
181
295
  // 不使用--all/--force/--yes;沿宿主的在途任务保护和监督器所有权处理。
182
- cli(['gateway', 'restart', '--detach'], false);
183
- cli(['gateway', 'ensure', '--json', '--timeout', '60']);
296
+ const needsRestart = !host || !receipt.newServicePrepared
297
+ || gatewayRunning !== false;
298
+ if (needsRestart) cli(['gateway', 'restart', '--detach'], false);
299
+ if (host) command(host.python, hostArgs('ensure'));
300
+ else cli(['gateway', 'ensure', '--json', '--timeout', '60']);
184
301
  save('gateway-ready');
185
302
  progress('生成配对码');
186
303
  const pairingFile = path.join(backup, 'pairing.json');
187
- cli(['fridaynext', 'pair', '--output', pairingFile], false);
304
+ if (host && !before.node && !after.node) {
305
+ command(process.execPath, [path.join(target, 'runtime/dist/plugin-control.js'), 'pair',
306
+ '--profile-root', home, '--data-dir', service, '--output', pairingFile]);
307
+ } else cli(['fridaynext', 'pair', '--output', pairingFile], false);
188
308
  if (!fs.existsSync(pairingFile) || !fs.existsSync(pairingFile.slice(0, -5) + '.png')) {
189
309
  throw new InstallationError('PAIRING_NOT_CREATED', '插件已安装,配对资料尚未生成。请检查Hermes网关后重试。');
190
310
  }
191
311
  save('paired');
192
312
  const compactFile = pairingFile.slice(0, -5) + '.code.txt';
193
- return { pairingFile, pairingCodeFile: fs.existsSync(compactFile) ? compactFile : pairingFile,
313
+ return { runtimeRoot: path.join(target, 'runtime'), pairingFile, pairingCodeFile: fs.existsSync(compactFile) ? compactFile : pairingFile,
194
314
  qrFile: pairingFile.slice(0, -5) + '.png', backup, receiptFile, configProvenanceFile };
195
315
  } catch (error) {
196
316
  receipt.lastCompletedState = receipt.state;
package/install.js CHANGED
@@ -1,14 +1,17 @@
1
1
  #!/usr/bin/env node
2
2
  import path from 'node:path';
3
3
  import fs from 'node:fs';
4
+ import os from 'node:os';
5
+ import { execFileSync } from 'node:child_process';
4
6
  import { fileURLToPath } from 'node:url';
5
- import QRCode from 'qrcode';
7
+ import { createRequire } from 'node:module';
6
8
  import { installAndPair } from './install-runtime.js';
7
9
 
8
10
  const args = process.argv.slice(2);
9
11
  if (args.includes('--help') || args.includes('-h')) {
10
- console.log('FridayNext Hermes 安装并配对\n默认安装Hermes标准平台插件、启动或重载网关并生成配对码。\n需要已配置的Hermes 0.22.5、macOS和Node.js >=22.13。\n选项:--profile 配置名 --hermes Hermes可执行文件\n--public-access on|off 明确选择公网准备;省略时保留现有配置。');
12
+ console.log('FridayNext Hermes 安装并配对\n默认安装Hermes标准平台插件、启动或重载网关并生成配对码。\n需要 macOS 或 Linux、已配置的 Hermes 0.22.5 和 Node.js >=22.13。\n选项:--profile 配置名 --hermes Hermes可执行文件\n--public-access on|off 明确选择公网准备;省略时保留现有配置。');
11
13
  } else {
14
+ let scratch;
12
15
  try {
13
16
  const options = {};
14
17
  for (let i = 0; i < args.length; i += 2) {
@@ -19,16 +22,28 @@ if (args.includes('--help') || args.includes('-h')) {
19
22
  }
20
23
  if (options['--public-access'] !== undefined && !['on', 'off'].includes(options['--public-access'])) throw new Error('公网准备选项必须为on或off。');
21
24
  const root = path.dirname(fileURLToPath(import.meta.url));
22
- const result = installAndPair({ source: path.join(root, 'plugin'), profile: options['--profile'], hermes: options['--hermes'],
25
+ const bundle = path.join(root, 'plugin.bundle');
26
+ let source = path.join(root, 'plugin');
27
+ if (fs.existsSync(bundle)) {
28
+ scratch = fs.mkdtempSync(path.join(os.tmpdir(), 'fridaynext-install-'));
29
+ source = path.join(scratch, 'plugin');
30
+ execFileSync('git', ['-c', 'core.hooksPath=/dev/null', 'clone', '--quiet', '--branch', 'source', bundle, source]);
31
+ }
32
+ const result = installAndPair({ source, releaseBundle: scratch ? bundle : undefined, profile: options['--profile'], hermes: options['--hermes'],
23
33
  publicAccess: options['--public-access'] === undefined ? undefined : options['--public-access'] === 'on',
24
34
  progress: message => console.log('› ' + message) });
25
35
  const payload = fs.readFileSync(result.pairingCodeFile ?? result.pairingFile, 'utf8');
26
36
  // 交互终端展示票据二维码;管道/日志只输出私有文件位置。
27
- if (process.stdout.isTTY) console.log(await QRCode.toString(payload, { type: 'terminal', small: true, errorCorrectionLevel: 'L' }));
37
+ if (process.stdout.isTTY) {
38
+ const QRCode = createRequire(path.join(result.runtimeRoot, 'package.json'))('qrcode');
39
+ console.log(await QRCode.toString(payload, { type: 'terminal', small: true, errorCorrectionLevel: 'L' }));
40
+ }
28
41
  console.log('在 FridayNext 中选择 Hermes 并扫描;相机不可用时,请按安装说明使用网关地址和令牌手动连接。');
29
42
  console.log('二维码图片:' + result.qrFile);
30
43
  } catch (error) {
31
44
  console.error('安装未完成:' + error.message);
32
45
  process.exitCode = 1;
46
+ } finally {
47
+ if (scratch) fs.rmSync(scratch, {recursive: true, force: true});
33
48
  }
34
49
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syengup/fridaynext-hermes-channel",
3
- "version": "0.1.0-beta.4",
3
+ "version": "0.1.0-beta.7",
4
4
  "type": "module",
5
5
  "description": "通过Hermes官方CLI安装FridayNext标准平台插件并生成配对码",
6
6
  "license": "UNLICENSED",
@@ -14,10 +14,10 @@
14
14
  "install.js",
15
15
  "install-runtime.js",
16
16
  "install-config.js",
17
+ "install-host.py",
18
+ "validation.json",
19
+ "plugin.bundle",
17
20
  "plugin",
18
21
  "README.md"
19
- ],
20
- "dependencies": {
21
- "qrcode": "1.5.4"
22
- }
22
+ ]
23
23
  }
package/plugin.bundle ADDED
Binary file
@@ -0,0 +1 @@
1
+ {"hash":"5474fbc1b5b68cd372755b6cda875b0225cf914bca43e119af62ed5ae8cd606b","optimizedHash":"d1c8381ad0dfe8d1820446672c8a4bfb18505b49336391b244c66b90bf2b327a","report":{"ok":true,"warnings":["private core imports (catalog rule 9: public surfaces only; these can break on any release): fridaynext_plugin/compat_v0225.py:108 hermes_time.get_timezone; fridaynext_plugin/compat_v0225.py:190 tui_gateway.launch_profile_policy.owner_secret_scope; fridaynext_plugin/compat_v0225.py:191 cron.jobs; fridaynext_plugin/compat_v0225.py:192 cron.scheduler.create_job_with_scheduler_registration; fridaynext_plugin/compat_v0225.py:193 cron.scheduler_provider.resolve_cron_scheduler; fridaynext_plugin/compat_v0225.py:194 cron.blueprint_catalog.blueprint_form_schema; fridaynext_plugin/compat_v0225.py:225 cron.scheduler_delivery.cron_delivery_targets; fridaynext_plugin/compat_v0225.py:353 cron.executions.get_execution; fridaynext_plugin/compat_v0225.py:392 gateway.run_inbound.GatewayInboundMixin; fridaynext_plugin/compat_v0225.py:481 tools.tts_tool_delivery._resolve_max_text_length; and 64 more. Use ctx.* / documented plugin APIs, or open an issue for the seam you need."]}}
package/plugin/README.md DELETED
@@ -1,21 +0,0 @@
1
- # FridayNext Hermes 安装器(Beta)
2
-
3
- 默认入口安装FridayNext标准平台插件、启用并启动或重载Hermes网关,再生成配对资料。Node只承载通用Kit,执行仍由Hermes官方GatewayRunner处理。安装器不安装Hermes core。
4
-
5
- ## 环境
6
-
7
- 当前验证macOS、Hermes 0.22.5(固定源码bf0203a794a07aac3ff764972ab9087baa4e4f4e)和Node.js >=22.13。其它发行或核心文件变化会被插件兼容门禁拒绝。官方固定兼容告警保留,不声明零内部API依赖。请先完成Hermes设置及可用模型登录;依赖环境损坏时先运行hermes pm repair。
8
-
9
- ## 使用与数据
10
-
11
- 运行本包默认命令即可安装并配对;可选--profile指定已有配置,--hermes指定CLI路径。--public-access on|off用于本次明确选择公网准备;省略时保留原值,包括来源不明的旧false。只使用Hermes公开插件、配置和网关命令;不使用旧独立canonical客户端。官方在途任务及监督器保护保持,不带--all、--force或--yes重启网关。
12
-
13
- 已有模型配置、允许用户、Node路径、数据目录和服务身份保留。已有允许用户不含owner时先明确修复授权。全新服务准备LAN监听,并沿标准插件默认准备FridayTunnel网关待机;已有监听、显式公网开关和私有配置不重置。旧安装器写入但没有来源标记的false保守保留,需要用户明确配置选择后才启用。网关待机不代表用户权益、grant、隧道在线或模型就绪。安装记录与私有备份保留在当前Hermes配置目录的.fridaynext-installer下,config-origins.json只记录值摘要与来源,不保存配置/凭据明文;来源记录损坏或写入失败时停止并保留未完成状态,不猜用户意图。失败不会声称已回滚运行中的服务,也不取消任务或清除数据。安装器更新时重新运行发行命令;Hermes登记本机包来源,不声称官方catalog自动更新。
14
-
15
- ## 配对与手动连接
16
-
17
- 交互终端显示一次性二维码,同时生成0600的私有PNG和JSON。管道/日志只输出文件位置。新码作废上一张,但不撤销已配对设备。二维码票据有时效且只能兑换一次,配对JSON不包含长期令牌。
18
-
19
- 相机不可用时,App可手动填地址和网关令牌:地址见本次私有配对JSON的lanUrl,令牌可在该服务数据目录的service-identity.json中于本机查看。默认数据目录为当前Hermes配置下plugin-data/fridaynext/service;已有platforms.fridaynext.data_dir时使用原目录。不要把模型API Key当网关令牌,也不要把上述私有文件发送到日志或聊天。
20
-
21
- 拒绝通知不影响聊天。模型登录、额度和运行结果与连接成功分开。FridayTunnel及其开通入口以实际能力与权益为准,本包不自动购买或开通公网服务。
@@ -1,3 +0,0 @@
1
- """FridayNext Hermes 插件入口。"""
2
-
3
- from .fridaynext_plugin import register
@@ -1,81 +0,0 @@
1
- """标准平台注册;被动探测不安装依赖、不启动服务。"""
2
-
3
- import os
4
- import importlib.util
5
- from pathlib import Path
6
- from .adapter import FridayNextAdapter
7
-
8
-
9
- def runtime_root():
10
- root = Path(__file__).resolve().parents[1]
11
- return (
12
- root / "runtime" if (root / "runtime/dist/plugin-worker.js").is_file() else root
13
- )
14
-
15
-
16
- def check_requirements():
17
- root = runtime_root()
18
- return (
19
- importlib.util.find_spec("websockets") is not None
20
- and (root / "dist/plugin-worker.js").is_file()
21
- and (
22
- root / "node_modules/@syengup/fridaynext-channel-kit/package.json"
23
- ).is_file()
24
- )
25
-
26
-
27
- def validate_config(config):
28
- from gateway.platforms._shared import get_scoped_secret
29
- import shutil
30
-
31
- node = (
32
- config.extra.get("node_bin")
33
- or get_scoped_secret("FRIDAYNEXT_NODE_BIN", "")
34
- or shutil.which("node")
35
- )
36
- entry = Path(
37
- config.extra.get("runtime_entry") or runtime_root() / "dist/plugin-worker.js"
38
- )
39
- return bool(
40
- node and os.path.isfile(node) and os.access(node, os.X_OK) and entry.is_file()
41
- )
42
-
43
-
44
- def register(ctx):
45
- from .control_cli import setup, dispatch
46
- from .device_tools import register_tools
47
-
48
- register_tools(ctx)
49
-
50
- ctx.register_cli_command(
51
- name="fridaynext",
52
- help="FridayNext插件配对",
53
- setup_fn=setup,
54
- handler_fn=dispatch,
55
- )
56
- ctx.on_unload(FridayNextAdapter.unload)
57
- ctx.register_hook("api_request_error", FridayNextAdapter.record_api_error)
58
- ctx.register_hook("on_stream_delta", FridayNextAdapter.record_reasoning_delta)
59
- ctx.register_hook("subagent_start", FridayNextAdapter.record_subagent_start)
60
- ctx.register_hook("subagent_stop", FridayNextAdapter.record_subagent_stop)
61
- ctx.register_hook("on_stream_end", FridayNextAdapter.record_subagent_stream_end)
62
- ctx.register_hook("post_api_request", FridayNextAdapter.record_subagent_tools_planned)
63
- ctx.register_hook("post_tool_call", FridayNextAdapter.record_subagent_tool_end)
64
- ctx.register_platform(
65
- name="fridaynext",
66
- label="FridayNext",
67
- adapter_factory=FridayNextAdapter,
68
- check_fn=check_requirements,
69
- validate_config=validate_config,
70
- required_env=[],
71
- install_hint="Install Node >=22.13 and the prepared FridayNext plugin runtime; configure FRIDAYNEXT_NODE_BIN",
72
- allowed_users_env="FRIDAYNEXT_ALLOWED_USERS",
73
- allow_all_env="FRIDAYNEXT_ALLOW_ALL_USERS",
74
- # 声明标准 cron 投递平台,显式目标仍由原任务的设备标识决定。
75
- cron_deliver_env_var="FRIDAYNEXT_HOME_CHANNEL",
76
- max_message_length=0,
77
- display_tier="minimal",
78
- emoji="💬",
79
- pii_safe=True,
80
- platform_hint="FridayNext原生客户端;只展示可验证结果,控制/附件按声明能力使用。",
81
- )