@syengup/fridaynext-hermes-channel 0.1.0-beta.3 → 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 (844) hide show
  1. package/README.md +3 -3
  2. package/install-config.js +84 -0
  3. package/install-host.py +95 -0
  4. package/install-runtime.js +167 -35
  5. package/install.js +23 -6
  6. package/package.json +6 -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 -71
  12. package/plugin/fridaynext_plugin/adapter.py +0 -1124
  13. package/plugin/fridaynext_plugin/agent_defaults.py +0 -107
  14. package/plugin/fridaynext_plugin/canonical_control.py +0 -509
  15. package/plugin/fridaynext_plugin/compat_v0225.py +0 -910
  16. package/plugin/fridaynext_plugin/control_cli.py +0 -101
  17. package/plugin/fridaynext_plugin/controls.py +0 -296
  18. package/plugin/fridaynext_plugin/delivery_context.py +0 -210
  19. package/plugin/fridaynext_plugin/diagnostics.py +0 -165
  20. package/plugin/fridaynext_plugin/history.py +0 -421
  21. package/plugin/fridaynext_plugin/host.py +0 -317
  22. package/plugin/fridaynext_plugin/initial_settings.py +0 -184
  23. package/plugin/fridaynext_plugin/inline_media.py +0 -58
  24. package/plugin/fridaynext_plugin/media_input.py +0 -139
  25. package/plugin/fridaynext_plugin/media_observations.py +0 -172
  26. package/plugin/fridaynext_plugin/media_output.py +0 -277
  27. package/plugin/fridaynext_plugin/message_speech.py +0 -143
  28. package/plugin/fridaynext_plugin/recovery.py +0 -214
  29. package/plugin/fridaynext_plugin/runtime_port.py +0 -571
  30. package/plugin/fridaynext_plugin/sessions.py +0 -184
  31. package/plugin/fridaynext_plugin/settings.py +0 -695
  32. package/plugin/fridaynext_plugin/settings_control.py +0 -101
  33. package/plugin/fridaynext_plugin/state.py +0 -155
  34. package/plugin/fridaynext_plugin/stream_bridge.py +0 -493
  35. package/plugin/fridaynext_plugin/stream_media.py +0 -59
  36. package/plugin/fridaynext_plugin/stream_projection.py +0 -269
  37. package/plugin/plugin.yaml +0 -18
  38. package/plugin/runtime/dist/host-peer.js +0 -106
  39. package/plugin/runtime/dist/hosted-artifacts.js +0 -189
  40. package/plugin/runtime/dist/hosted-backend.js +0 -211
  41. package/plugin/runtime/dist/hosted-delivery-observations.js +0 -91
  42. package/plugin/runtime/dist/hosted-media.js +0 -327
  43. package/plugin/runtime/dist/hosted-recovery.js +0 -55
  44. package/plugin/runtime/dist/hosted-settings.js +0 -26
  45. package/plugin/runtime/dist/hosted-stream.js +0 -104
  46. package/plugin/runtime/dist/identity.js +0 -55
  47. package/plugin/runtime/dist/kit-contract.json +0 -1
  48. package/plugin/runtime/dist/media-transport.js +0 -168
  49. package/plugin/runtime/dist/oss-upload-worker.js +0 -7
  50. package/plugin/runtime/dist/oss-upload.js +0 -94
  51. package/plugin/runtime/dist/ownership.js +0 -21
  52. package/plugin/runtime/dist/platform-service.js +0 -32
  53. package/plugin/runtime/dist/plugin-control.js +0 -189
  54. package/plugin/runtime/dist/plugin-worker.js +0 -43
  55. package/plugin/runtime/dist/private-files.js +0 -24
  56. package/plugin/runtime/dist/process-lock.js +0 -40
  57. package/plugin/runtime/dist/public-config.js +0 -58
  58. package/plugin/runtime/dist/service-errors.js +0 -11
  59. package/plugin/runtime/dist/service-host.js +0 -251
  60. package/plugin/runtime/dist/speech-routes.js +0 -111
  61. package/plugin/runtime/node_modules/.package-lock.json +0 -436
  62. package/plugin/runtime/node_modules/@noble/hashes/LICENSE +0 -21
  63. package/plugin/runtime/node_modules/@noble/hashes/README.md +0 -521
  64. package/plugin/runtime/node_modules/@noble/hashes/_assert.d.ts +0 -17
  65. package/plugin/runtime/node_modules/@noble/hashes/_assert.d.ts.map +0 -1
  66. package/plugin/runtime/node_modules/@noble/hashes/_assert.js +0 -18
  67. package/plugin/runtime/node_modules/@noble/hashes/_assert.js.map +0 -1
  68. package/plugin/runtime/node_modules/@noble/hashes/_blake.d.ts +0 -14
  69. package/plugin/runtime/node_modules/@noble/hashes/_blake.d.ts.map +0 -1
  70. package/plugin/runtime/node_modules/@noble/hashes/_blake.js +0 -50
  71. package/plugin/runtime/node_modules/@noble/hashes/_blake.js.map +0 -1
  72. package/plugin/runtime/node_modules/@noble/hashes/_md.d.ts +0 -51
  73. package/plugin/runtime/node_modules/@noble/hashes/_md.d.ts.map +0 -1
  74. package/plugin/runtime/node_modules/@noble/hashes/_md.js +0 -162
  75. package/plugin/runtime/node_modules/@noble/hashes/_md.js.map +0 -1
  76. package/plugin/runtime/node_modules/@noble/hashes/_u64.d.ts +0 -55
  77. package/plugin/runtime/node_modules/@noble/hashes/_u64.d.ts.map +0 -1
  78. package/plugin/runtime/node_modules/@noble/hashes/_u64.js +0 -90
  79. package/plugin/runtime/node_modules/@noble/hashes/_u64.js.map +0 -1
  80. package/plugin/runtime/node_modules/@noble/hashes/argon2.d.ts +0 -32
  81. package/plugin/runtime/node_modules/@noble/hashes/argon2.d.ts.map +0 -1
  82. package/plugin/runtime/node_modules/@noble/hashes/argon2.js +0 -401
  83. package/plugin/runtime/node_modules/@noble/hashes/argon2.js.map +0 -1
  84. package/plugin/runtime/node_modules/@noble/hashes/blake1.d.ts +0 -106
  85. package/plugin/runtime/node_modules/@noble/hashes/blake1.d.ts.map +0 -1
  86. package/plugin/runtime/node_modules/@noble/hashes/blake1.js +0 -459
  87. package/plugin/runtime/node_modules/@noble/hashes/blake1.js.map +0 -1
  88. package/plugin/runtime/node_modules/@noble/hashes/blake2.d.ts +0 -116
  89. package/plugin/runtime/node_modules/@noble/hashes/blake2.d.ts.map +0 -1
  90. package/plugin/runtime/node_modules/@noble/hashes/blake2.js +0 -420
  91. package/plugin/runtime/node_modules/@noble/hashes/blake2.js.map +0 -1
  92. package/plugin/runtime/node_modules/@noble/hashes/blake2b.d.ts +0 -11
  93. package/plugin/runtime/node_modules/@noble/hashes/blake2b.d.ts.map +0 -1
  94. package/plugin/runtime/node_modules/@noble/hashes/blake2b.js +0 -14
  95. package/plugin/runtime/node_modules/@noble/hashes/blake2b.js.map +0 -1
  96. package/plugin/runtime/node_modules/@noble/hashes/blake2s.d.ts +0 -20
  97. package/plugin/runtime/node_modules/@noble/hashes/blake2s.d.ts.map +0 -1
  98. package/plugin/runtime/node_modules/@noble/hashes/blake2s.js +0 -24
  99. package/plugin/runtime/node_modules/@noble/hashes/blake2s.js.map +0 -1
  100. package/plugin/runtime/node_modules/@noble/hashes/blake3.d.ts +0 -54
  101. package/plugin/runtime/node_modules/@noble/hashes/blake3.d.ts.map +0 -1
  102. package/plugin/runtime/node_modules/@noble/hashes/blake3.js +0 -255
  103. package/plugin/runtime/node_modules/@noble/hashes/blake3.js.map +0 -1
  104. package/plugin/runtime/node_modules/@noble/hashes/crypto.d.ts +0 -2
  105. package/plugin/runtime/node_modules/@noble/hashes/crypto.d.ts.map +0 -1
  106. package/plugin/runtime/node_modules/@noble/hashes/crypto.js +0 -5
  107. package/plugin/runtime/node_modules/@noble/hashes/crypto.js.map +0 -1
  108. package/plugin/runtime/node_modules/@noble/hashes/cryptoNode.d.ts +0 -2
  109. package/plugin/runtime/node_modules/@noble/hashes/cryptoNode.d.ts.map +0 -1
  110. package/plugin/runtime/node_modules/@noble/hashes/cryptoNode.js +0 -18
  111. package/plugin/runtime/node_modules/@noble/hashes/cryptoNode.js.map +0 -1
  112. package/plugin/runtime/node_modules/@noble/hashes/eskdf.d.ts +0 -47
  113. package/plugin/runtime/node_modules/@noble/hashes/eskdf.d.ts.map +0 -1
  114. package/plugin/runtime/node_modules/@noble/hashes/eskdf.js +0 -166
  115. package/plugin/runtime/node_modules/@noble/hashes/eskdf.js.map +0 -1
  116. package/plugin/runtime/node_modules/@noble/hashes/esm/_assert.d.ts +0 -17
  117. package/plugin/runtime/node_modules/@noble/hashes/esm/_assert.d.ts.map +0 -1
  118. package/plugin/runtime/node_modules/@noble/hashes/esm/_assert.js +0 -15
  119. package/plugin/runtime/node_modules/@noble/hashes/esm/_assert.js.map +0 -1
  120. package/plugin/runtime/node_modules/@noble/hashes/esm/_blake.d.ts +0 -14
  121. package/plugin/runtime/node_modules/@noble/hashes/esm/_blake.d.ts.map +0 -1
  122. package/plugin/runtime/node_modules/@noble/hashes/esm/_blake.js +0 -45
  123. package/plugin/runtime/node_modules/@noble/hashes/esm/_blake.js.map +0 -1
  124. package/plugin/runtime/node_modules/@noble/hashes/esm/_md.d.ts +0 -51
  125. package/plugin/runtime/node_modules/@noble/hashes/esm/_md.d.ts.map +0 -1
  126. package/plugin/runtime/node_modules/@noble/hashes/esm/_md.js +0 -155
  127. package/plugin/runtime/node_modules/@noble/hashes/esm/_md.js.map +0 -1
  128. package/plugin/runtime/node_modules/@noble/hashes/esm/_u64.d.ts +0 -55
  129. package/plugin/runtime/node_modules/@noble/hashes/esm/_u64.d.ts.map +0 -1
  130. package/plugin/runtime/node_modules/@noble/hashes/esm/_u64.js +0 -67
  131. package/plugin/runtime/node_modules/@noble/hashes/esm/_u64.js.map +0 -1
  132. package/plugin/runtime/node_modules/@noble/hashes/esm/argon2.d.ts +0 -32
  133. package/plugin/runtime/node_modules/@noble/hashes/esm/argon2.d.ts.map +0 -1
  134. package/plugin/runtime/node_modules/@noble/hashes/esm/argon2.js +0 -392
  135. package/plugin/runtime/node_modules/@noble/hashes/esm/argon2.js.map +0 -1
  136. package/plugin/runtime/node_modules/@noble/hashes/esm/blake1.d.ts +0 -106
  137. package/plugin/runtime/node_modules/@noble/hashes/esm/blake1.d.ts.map +0 -1
  138. package/plugin/runtime/node_modules/@noble/hashes/esm/blake1.js +0 -452
  139. package/plugin/runtime/node_modules/@noble/hashes/esm/blake1.js.map +0 -1
  140. package/plugin/runtime/node_modules/@noble/hashes/esm/blake2.d.ts +0 -116
  141. package/plugin/runtime/node_modules/@noble/hashes/esm/blake2.d.ts.map +0 -1
  142. package/plugin/runtime/node_modules/@noble/hashes/esm/blake2.js +0 -413
  143. package/plugin/runtime/node_modules/@noble/hashes/esm/blake2.js.map +0 -1
  144. package/plugin/runtime/node_modules/@noble/hashes/esm/blake2b.d.ts +0 -11
  145. package/plugin/runtime/node_modules/@noble/hashes/esm/blake2b.d.ts.map +0 -1
  146. package/plugin/runtime/node_modules/@noble/hashes/esm/blake2b.js +0 -11
  147. package/plugin/runtime/node_modules/@noble/hashes/esm/blake2b.js.map +0 -1
  148. package/plugin/runtime/node_modules/@noble/hashes/esm/blake2s.d.ts +0 -20
  149. package/plugin/runtime/node_modules/@noble/hashes/esm/blake2s.d.ts.map +0 -1
  150. package/plugin/runtime/node_modules/@noble/hashes/esm/blake2s.js +0 -21
  151. package/plugin/runtime/node_modules/@noble/hashes/esm/blake2s.js.map +0 -1
  152. package/plugin/runtime/node_modules/@noble/hashes/esm/blake3.d.ts +0 -54
  153. package/plugin/runtime/node_modules/@noble/hashes/esm/blake3.d.ts.map +0 -1
  154. package/plugin/runtime/node_modules/@noble/hashes/esm/blake3.js +0 -251
  155. package/plugin/runtime/node_modules/@noble/hashes/esm/blake3.js.map +0 -1
  156. package/plugin/runtime/node_modules/@noble/hashes/esm/crypto.d.ts +0 -2
  157. package/plugin/runtime/node_modules/@noble/hashes/esm/crypto.d.ts.map +0 -1
  158. package/plugin/runtime/node_modules/@noble/hashes/esm/crypto.js +0 -2
  159. package/plugin/runtime/node_modules/@noble/hashes/esm/crypto.js.map +0 -1
  160. package/plugin/runtime/node_modules/@noble/hashes/esm/cryptoNode.d.ts +0 -2
  161. package/plugin/runtime/node_modules/@noble/hashes/esm/cryptoNode.d.ts.map +0 -1
  162. package/plugin/runtime/node_modules/@noble/hashes/esm/cryptoNode.js +0 -15
  163. package/plugin/runtime/node_modules/@noble/hashes/esm/cryptoNode.js.map +0 -1
  164. package/plugin/runtime/node_modules/@noble/hashes/esm/eskdf.d.ts +0 -47
  165. package/plugin/runtime/node_modules/@noble/hashes/esm/eskdf.d.ts.map +0 -1
  166. package/plugin/runtime/node_modules/@noble/hashes/esm/eskdf.js +0 -160
  167. package/plugin/runtime/node_modules/@noble/hashes/esm/eskdf.js.map +0 -1
  168. package/plugin/runtime/node_modules/@noble/hashes/esm/hkdf.d.ts +0 -36
  169. package/plugin/runtime/node_modules/@noble/hashes/esm/hkdf.d.ts.map +0 -1
  170. package/plugin/runtime/node_modules/@noble/hashes/esm/hkdf.js +0 -82
  171. package/plugin/runtime/node_modules/@noble/hashes/esm/hkdf.js.map +0 -1
  172. package/plugin/runtime/node_modules/@noble/hashes/esm/hmac.d.ts +0 -35
  173. package/plugin/runtime/node_modules/@noble/hashes/esm/hmac.d.ts.map +0 -1
  174. package/plugin/runtime/node_modules/@noble/hashes/esm/hmac.js +0 -86
  175. package/plugin/runtime/node_modules/@noble/hashes/esm/hmac.js.map +0 -1
  176. package/plugin/runtime/node_modules/@noble/hashes/esm/index.d.ts +0 -2
  177. package/plugin/runtime/node_modules/@noble/hashes/esm/index.d.ts.map +0 -1
  178. package/plugin/runtime/node_modules/@noble/hashes/esm/index.js +0 -33
  179. package/plugin/runtime/node_modules/@noble/hashes/esm/index.js.map +0 -1
  180. package/plugin/runtime/node_modules/@noble/hashes/esm/legacy.d.ts +0 -71
  181. package/plugin/runtime/node_modules/@noble/hashes/esm/legacy.d.ts.map +0 -1
  182. package/plugin/runtime/node_modules/@noble/hashes/esm/legacy.js +0 -281
  183. package/plugin/runtime/node_modules/@noble/hashes/esm/legacy.js.map +0 -1
  184. package/plugin/runtime/node_modules/@noble/hashes/esm/package.json +0 -10
  185. package/plugin/runtime/node_modules/@noble/hashes/esm/pbkdf2.d.ts +0 -23
  186. package/plugin/runtime/node_modules/@noble/hashes/esm/pbkdf2.d.ts.map +0 -1
  187. package/plugin/runtime/node_modules/@noble/hashes/esm/pbkdf2.js +0 -97
  188. package/plugin/runtime/node_modules/@noble/hashes/esm/pbkdf2.js.map +0 -1
  189. package/plugin/runtime/node_modules/@noble/hashes/esm/ripemd160.d.ts +0 -13
  190. package/plugin/runtime/node_modules/@noble/hashes/esm/ripemd160.d.ts.map +0 -1
  191. package/plugin/runtime/node_modules/@noble/hashes/esm/ripemd160.js +0 -13
  192. package/plugin/runtime/node_modules/@noble/hashes/esm/ripemd160.js.map +0 -1
  193. package/plugin/runtime/node_modules/@noble/hashes/esm/scrypt.d.ts +0 -34
  194. package/plugin/runtime/node_modules/@noble/hashes/esm/scrypt.d.ts.map +0 -1
  195. package/plugin/runtime/node_modules/@noble/hashes/esm/scrypt.js +0 -228
  196. package/plugin/runtime/node_modules/@noble/hashes/esm/scrypt.js.map +0 -1
  197. package/plugin/runtime/node_modules/@noble/hashes/esm/sha1.d.ts +0 -11
  198. package/plugin/runtime/node_modules/@noble/hashes/esm/sha1.d.ts.map +0 -1
  199. package/plugin/runtime/node_modules/@noble/hashes/esm/sha1.js +0 -11
  200. package/plugin/runtime/node_modules/@noble/hashes/esm/sha1.js.map +0 -1
  201. package/plugin/runtime/node_modules/@noble/hashes/esm/sha2.d.ts +0 -159
  202. package/plugin/runtime/node_modules/@noble/hashes/esm/sha2.d.ts.map +0 -1
  203. package/plugin/runtime/node_modules/@noble/hashes/esm/sha2.js +0 -375
  204. package/plugin/runtime/node_modules/@noble/hashes/esm/sha2.js.map +0 -1
  205. package/plugin/runtime/node_modules/@noble/hashes/esm/sha256.d.ts +0 -20
  206. package/plugin/runtime/node_modules/@noble/hashes/esm/sha256.d.ts.map +0 -1
  207. package/plugin/runtime/node_modules/@noble/hashes/esm/sha256.js +0 -20
  208. package/plugin/runtime/node_modules/@noble/hashes/esm/sha256.js.map +0 -1
  209. package/plugin/runtime/node_modules/@noble/hashes/esm/sha3-addons.d.ts +0 -142
  210. package/plugin/runtime/node_modules/@noble/hashes/esm/sha3-addons.d.ts.map +0 -1
  211. package/plugin/runtime/node_modules/@noble/hashes/esm/sha3-addons.js +0 -393
  212. package/plugin/runtime/node_modules/@noble/hashes/esm/sha3-addons.js.map +0 -1
  213. package/plugin/runtime/node_modules/@noble/hashes/esm/sha3.d.ts +0 -53
  214. package/plugin/runtime/node_modules/@noble/hashes/esm/sha3.d.ts.map +0 -1
  215. package/plugin/runtime/node_modules/@noble/hashes/esm/sha3.js +0 -234
  216. package/plugin/runtime/node_modules/@noble/hashes/esm/sha3.js.map +0 -1
  217. package/plugin/runtime/node_modules/@noble/hashes/esm/sha512.d.ts +0 -26
  218. package/plugin/runtime/node_modules/@noble/hashes/esm/sha512.d.ts.map +0 -1
  219. package/plugin/runtime/node_modules/@noble/hashes/esm/sha512.js +0 -26
  220. package/plugin/runtime/node_modules/@noble/hashes/esm/sha512.js.map +0 -1
  221. package/plugin/runtime/node_modules/@noble/hashes/esm/utils.d.ts +0 -161
  222. package/plugin/runtime/node_modules/@noble/hashes/esm/utils.d.ts.map +0 -1
  223. package/plugin/runtime/node_modules/@noble/hashes/esm/utils.js +0 -281
  224. package/plugin/runtime/node_modules/@noble/hashes/esm/utils.js.map +0 -1
  225. package/plugin/runtime/node_modules/@noble/hashes/hkdf.d.ts +0 -36
  226. package/plugin/runtime/node_modules/@noble/hashes/hkdf.d.ts.map +0 -1
  227. package/plugin/runtime/node_modules/@noble/hashes/hkdf.js +0 -88
  228. package/plugin/runtime/node_modules/@noble/hashes/hkdf.js.map +0 -1
  229. package/plugin/runtime/node_modules/@noble/hashes/hmac.d.ts +0 -35
  230. package/plugin/runtime/node_modules/@noble/hashes/hmac.d.ts.map +0 -1
  231. package/plugin/runtime/node_modules/@noble/hashes/hmac.js +0 -91
  232. package/plugin/runtime/node_modules/@noble/hashes/hmac.js.map +0 -1
  233. package/plugin/runtime/node_modules/@noble/hashes/index.d.ts +0 -1
  234. package/plugin/runtime/node_modules/@noble/hashes/index.d.ts.map +0 -1
  235. package/plugin/runtime/node_modules/@noble/hashes/index.js +0 -33
  236. package/plugin/runtime/node_modules/@noble/hashes/index.js.map +0 -1
  237. package/plugin/runtime/node_modules/@noble/hashes/legacy.d.ts +0 -71
  238. package/plugin/runtime/node_modules/@noble/hashes/legacy.d.ts.map +0 -1
  239. package/plugin/runtime/node_modules/@noble/hashes/legacy.js +0 -287
  240. package/plugin/runtime/node_modules/@noble/hashes/legacy.js.map +0 -1
  241. package/plugin/runtime/node_modules/@noble/hashes/package.json +0 -266
  242. package/plugin/runtime/node_modules/@noble/hashes/pbkdf2.d.ts +0 -23
  243. package/plugin/runtime/node_modules/@noble/hashes/pbkdf2.d.ts.map +0 -1
  244. package/plugin/runtime/node_modules/@noble/hashes/pbkdf2.js +0 -101
  245. package/plugin/runtime/node_modules/@noble/hashes/pbkdf2.js.map +0 -1
  246. package/plugin/runtime/node_modules/@noble/hashes/ripemd160.d.ts +0 -13
  247. package/plugin/runtime/node_modules/@noble/hashes/ripemd160.d.ts.map +0 -1
  248. package/plugin/runtime/node_modules/@noble/hashes/ripemd160.js +0 -16
  249. package/plugin/runtime/node_modules/@noble/hashes/ripemd160.js.map +0 -1
  250. package/plugin/runtime/node_modules/@noble/hashes/scrypt.d.ts +0 -34
  251. package/plugin/runtime/node_modules/@noble/hashes/scrypt.d.ts.map +0 -1
  252. package/plugin/runtime/node_modules/@noble/hashes/scrypt.js +0 -232
  253. package/plugin/runtime/node_modules/@noble/hashes/scrypt.js.map +0 -1
  254. package/plugin/runtime/node_modules/@noble/hashes/sha1.d.ts +0 -11
  255. package/plugin/runtime/node_modules/@noble/hashes/sha1.d.ts.map +0 -1
  256. package/plugin/runtime/node_modules/@noble/hashes/sha1.js +0 -14
  257. package/plugin/runtime/node_modules/@noble/hashes/sha1.js.map +0 -1
  258. package/plugin/runtime/node_modules/@noble/hashes/sha2.d.ts +0 -159
  259. package/plugin/runtime/node_modules/@noble/hashes/sha2.d.ts.map +0 -1
  260. package/plugin/runtime/node_modules/@noble/hashes/sha2.js +0 -384
  261. package/plugin/runtime/node_modules/@noble/hashes/sha2.js.map +0 -1
  262. package/plugin/runtime/node_modules/@noble/hashes/sha256.d.ts +0 -20
  263. package/plugin/runtime/node_modules/@noble/hashes/sha256.d.ts.map +0 -1
  264. package/plugin/runtime/node_modules/@noble/hashes/sha256.js +0 -23
  265. package/plugin/runtime/node_modules/@noble/hashes/sha256.js.map +0 -1
  266. package/plugin/runtime/node_modules/@noble/hashes/sha3-addons.d.ts +0 -142
  267. package/plugin/runtime/node_modules/@noble/hashes/sha3-addons.d.ts.map +0 -1
  268. package/plugin/runtime/node_modules/@noble/hashes/sha3-addons.js +0 -402
  269. package/plugin/runtime/node_modules/@noble/hashes/sha3-addons.js.map +0 -1
  270. package/plugin/runtime/node_modules/@noble/hashes/sha3.d.ts +0 -53
  271. package/plugin/runtime/node_modules/@noble/hashes/sha3.d.ts.map +0 -1
  272. package/plugin/runtime/node_modules/@noble/hashes/sha3.js +0 -239
  273. package/plugin/runtime/node_modules/@noble/hashes/sha3.js.map +0 -1
  274. package/plugin/runtime/node_modules/@noble/hashes/sha512.d.ts +0 -26
  275. package/plugin/runtime/node_modules/@noble/hashes/sha512.d.ts.map +0 -1
  276. package/plugin/runtime/node_modules/@noble/hashes/sha512.js +0 -29
  277. package/plugin/runtime/node_modules/@noble/hashes/sha512.js.map +0 -1
  278. package/plugin/runtime/node_modules/@noble/hashes/src/_assert.ts +0 -22
  279. package/plugin/runtime/node_modules/@noble/hashes/src/_blake.ts +0 -50
  280. package/plugin/runtime/node_modules/@noble/hashes/src/_md.ts +0 -176
  281. package/plugin/runtime/node_modules/@noble/hashes/src/_u64.ts +0 -91
  282. package/plugin/runtime/node_modules/@noble/hashes/src/argon2.ts +0 -497
  283. package/plugin/runtime/node_modules/@noble/hashes/src/blake1.ts +0 -534
  284. package/plugin/runtime/node_modules/@noble/hashes/src/blake2.ts +0 -486
  285. package/plugin/runtime/node_modules/@noble/hashes/src/blake2b.ts +0 -10
  286. package/plugin/runtime/node_modules/@noble/hashes/src/blake2s.ts +0 -20
  287. package/plugin/runtime/node_modules/@noble/hashes/src/blake3.ts +0 -272
  288. package/plugin/runtime/node_modules/@noble/hashes/src/crypto.ts +0 -9
  289. package/plugin/runtime/node_modules/@noble/hashes/src/cryptoNode.ts +0 -15
  290. package/plugin/runtime/node_modules/@noble/hashes/src/eskdf.ts +0 -187
  291. package/plugin/runtime/node_modules/@noble/hashes/src/hkdf.ts +0 -88
  292. package/plugin/runtime/node_modules/@noble/hashes/src/hmac.ts +0 -94
  293. package/plugin/runtime/node_modules/@noble/hashes/src/index.ts +0 -31
  294. package/plugin/runtime/node_modules/@noble/hashes/src/legacy.ts +0 -293
  295. package/plugin/runtime/node_modules/@noble/hashes/src/pbkdf2.ts +0 -122
  296. package/plugin/runtime/node_modules/@noble/hashes/src/ripemd160.ts +0 -12
  297. package/plugin/runtime/node_modules/@noble/hashes/src/scrypt.ts +0 -257
  298. package/plugin/runtime/node_modules/@noble/hashes/src/sha1.ts +0 -10
  299. package/plugin/runtime/node_modules/@noble/hashes/src/sha2.ts +0 -402
  300. package/plugin/runtime/node_modules/@noble/hashes/src/sha256.ts +0 -24
  301. package/plugin/runtime/node_modules/@noble/hashes/src/sha3-addons.ts +0 -499
  302. package/plugin/runtime/node_modules/@noble/hashes/src/sha3.ts +0 -258
  303. package/plugin/runtime/node_modules/@noble/hashes/src/sha512.ts +0 -34
  304. package/plugin/runtime/node_modules/@noble/hashes/src/utils.ts +0 -395
  305. package/plugin/runtime/node_modules/@noble/hashes/utils.d.ts +0 -161
  306. package/plugin/runtime/node_modules/@noble/hashes/utils.d.ts.map +0 -1
  307. package/plugin/runtime/node_modules/@noble/hashes/utils.js +0 -313
  308. package/plugin/runtime/node_modules/@noble/hashes/utils.js.map +0 -1
  309. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/API.md +0 -416
  310. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/LICENSE +0 -21
  311. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/README.md +0 -77
  312. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/attachment/store.d.ts +0 -57
  313. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/attachment/store.js +0 -618
  314. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/attest/attest-gate.d.ts +0 -29
  315. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/attest/attest-gate.js +0 -58
  316. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/attest/attest-key-prune.d.ts +0 -17
  317. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/attest/attest-key-prune.js +0 -37
  318. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/attest/attest-store.d.ts +0 -27
  319. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/attest/attest-store.js +0 -146
  320. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/attest/verifier.d.ts +0 -1
  321. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/attest/verifier.js +0 -2
  322. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/delivery-observations.d.ts +0 -38
  323. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/delivery-observations.js +0 -85
  324. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/history.d.ts +0 -88
  325. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/history.js +0 -176
  326. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/pairing-codec.d.ts +0 -39
  327. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/pairing-codec.js +0 -233
  328. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/reconciliation.d.ts +0 -6
  329. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/reconciliation.js +0 -17
  330. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/types.d.ts +0 -234
  331. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/types.js +0 -32
  332. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/device-request/coordinator.d.ts +0 -19
  333. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/device-request/coordinator.js +0 -113
  334. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/device-request/pending-store.d.ts +0 -37
  335. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/device-request/pending-store.js +0 -67
  336. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/device-request/results.d.ts +0 -14
  337. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/device-request/results.js +0 -39
  338. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/index.d.ts +0 -16
  339. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/index.js +0 -15
  340. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/link-preview/og-parse.d.ts +0 -21
  341. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/link-preview/og-parse.js +0 -234
  342. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/link-preview/preview-service.d.ts +0 -39
  343. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/link-preview/preview-service.js +0 -232
  344. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/link-preview/ssrf-guard.d.ts +0 -52
  345. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/link-preview/ssrf-guard.js +0 -236
  346. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/prompt-capsules/capsules-store.d.ts +0 -38
  347. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/prompt-capsules/capsules-store.js +0 -149
  348. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/attachment-crypto.d.ts +0 -4
  349. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/attachment-crypto.js +0 -73
  350. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/cert-selfsign.d.ts +0 -6
  351. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/cert-selfsign.js +0 -88
  352. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/filter-proxy.d.ts +0 -17
  353. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/filter-proxy.js +0 -231
  354. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/frpc-manager.d.ts +0 -76
  355. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/frpc-manager.js +0 -1332
  356. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/oss-transfer.d.ts +0 -43
  357. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/oss-transfer.js +0 -280
  358. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/pairing-voucher.d.ts +0 -13
  359. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/pairing-voucher.js +0 -58
  360. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/private-file.d.ts +0 -2
  361. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/private-file.js +0 -11
  362. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/standby-loop-guard.d.ts +0 -9
  363. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/standby-loop-guard.js +0 -24
  364. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/tls-identity.d.ts +0 -36
  365. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/tls-identity.js +0 -151
  366. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/tunnel-watchdog-policy.d.ts +0 -24
  367. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/tunnel-watchdog-policy.js +0 -49
  368. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/push/push-runtime.d.ts +0 -45
  369. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/push/push-runtime.js +0 -233
  370. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/push/relay-transport.d.ts +0 -8
  371. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/push/relay-transport.js +0 -27
  372. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/channel-kernel.d.ts +0 -49
  373. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/channel-kernel.js +0 -307
  374. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/channel-runtime.d.ts +0 -2
  375. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/channel-runtime.js +0 -2
  376. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/delivery-observation-publisher.d.ts +0 -43
  377. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/delivery-observation-publisher.js +0 -211
  378. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/durable-run-store.d.ts +0 -247
  379. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/durable-run-store.js +0 -1525
  380. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/runner.d.ts +0 -36
  381. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/runner.js +0 -269
  382. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/scheduler.d.ts +0 -13
  383. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/scheduler.js +0 -130
  384. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/server-name/server-name-store.d.ts +0 -21
  385. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/server-name/server-name-store.js +0 -52
  386. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/service/channel-service.d.ts +0 -38
  387. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/service/channel-service.js +0 -266
  388. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/service/infrastructure.d.ts +0 -87
  389. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/service/infrastructure.js +0 -179
  390. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/testing/contract-harness.d.ts +0 -25
  391. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/testing/contract-harness.js +0 -44
  392. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/testing/reference-adapter.d.ts +0 -39
  393. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/testing/reference-adapter.js +0 -76
  394. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/testing/weaknet-server.d.ts +0 -6
  395. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/testing/weaknet-server.js +0 -130
  396. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/attest.d.ts +0 -39
  397. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/attest.js +0 -114
  398. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/body.d.ts +0 -2
  399. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/body.js +0 -24
  400. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/controls.d.ts +0 -9
  401. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/controls.js +0 -112
  402. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/files-download.d.ts +0 -18
  403. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/files-download.js +0 -197
  404. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/files-upload.d.ts +0 -20
  405. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/files-upload.js +0 -227
  406. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/link-preview.d.ts +0 -15
  407. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/link-preview.js +0 -45
  408. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/messages.d.ts +0 -10
  409. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/messages.js +0 -105
  410. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/pairing.d.ts +0 -22
  411. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/pairing.js +0 -138
  412. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/prompt-capsules.d.ts +0 -8
  413. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/prompt-capsules.js +0 -65
  414. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/push.d.ts +0 -13
  415. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/push.js +0 -65
  416. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/runtime.d.ts +0 -50
  417. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/runtime.js +0 -400
  418. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/server-name.d.ts +0 -8
  419. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/server-name.js +0 -43
  420. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/session-settings.d.ts +0 -5
  421. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/session-settings.js +0 -121
  422. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/sessions.d.ts +0 -20
  423. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/sessions.js +0 -118
  424. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/package.json +0 -40
  425. package/plugin/runtime/node_modules/ansi-regex/index.d.ts +0 -37
  426. package/plugin/runtime/node_modules/ansi-regex/index.js +0 -10
  427. package/plugin/runtime/node_modules/ansi-regex/license +0 -9
  428. package/plugin/runtime/node_modules/ansi-regex/package.json +0 -55
  429. package/plugin/runtime/node_modules/ansi-regex/readme.md +0 -78
  430. package/plugin/runtime/node_modules/ansi-styles/index.d.ts +0 -345
  431. package/plugin/runtime/node_modules/ansi-styles/index.js +0 -163
  432. package/plugin/runtime/node_modules/ansi-styles/license +0 -9
  433. package/plugin/runtime/node_modules/ansi-styles/package.json +0 -56
  434. package/plugin/runtime/node_modules/ansi-styles/readme.md +0 -152
  435. package/plugin/runtime/node_modules/asn1js/LICENSE +0 -30
  436. package/plugin/runtime/node_modules/asn1js/README.md +0 -222
  437. package/plugin/runtime/node_modules/asn1js/build/index.d.ts +0 -1412
  438. package/plugin/runtime/node_modules/asn1js/build/index.es.js +0 -3705
  439. package/plugin/runtime/node_modules/asn1js/build/index.js +0 -3773
  440. package/plugin/runtime/node_modules/asn1js/package.json +0 -89
  441. package/plugin/runtime/node_modules/bytestreamjs/LICENSE +0 -29
  442. package/plugin/runtime/node_modules/bytestreamjs/README.MD +0 -196
  443. package/plugin/runtime/node_modules/bytestreamjs/build/cjs/bit.js +0 -91
  444. package/plugin/runtime/node_modules/bytestreamjs/build/cjs/bit_stream.js +0 -400
  445. package/plugin/runtime/node_modules/bytestreamjs/build/cjs/byte_stream.js +0 -648
  446. package/plugin/runtime/node_modules/bytestreamjs/build/cjs/helpers.js +0 -59
  447. package/plugin/runtime/node_modules/bytestreamjs/build/cjs/index.js +0 -21
  448. package/plugin/runtime/node_modules/bytestreamjs/build/cjs/seq_bit_stream.js +0 -114
  449. package/plugin/runtime/node_modules/bytestreamjs/build/cjs/seq_stream.js +0 -437
  450. package/plugin/runtime/node_modules/bytestreamjs/build/mjs/bit.js +0 -88
  451. package/plugin/runtime/node_modules/bytestreamjs/build/mjs/bit_stream.js +0 -396
  452. package/plugin/runtime/node_modules/bytestreamjs/build/mjs/byte_stream.js +0 -644
  453. package/plugin/runtime/node_modules/bytestreamjs/build/mjs/helpers.js +0 -55
  454. package/plugin/runtime/node_modules/bytestreamjs/build/mjs/index.js +0 -5
  455. package/plugin/runtime/node_modules/bytestreamjs/build/mjs/seq_bit_stream.js +0 -110
  456. package/plugin/runtime/node_modules/bytestreamjs/build/mjs/seq_stream.js +0 -433
  457. package/plugin/runtime/node_modules/bytestreamjs/build/types/bit.d.ts +0 -1
  458. package/plugin/runtime/node_modules/bytestreamjs/build/types/bit_stream.d.ts +0 -222
  459. package/plugin/runtime/node_modules/bytestreamjs/build/types/byte_stream.d.ts +0 -292
  460. package/plugin/runtime/node_modules/bytestreamjs/build/types/helpers.d.ts +0 -23
  461. package/plugin/runtime/node_modules/bytestreamjs/build/types/index.d.ts +0 -5
  462. package/plugin/runtime/node_modules/bytestreamjs/build/types/seq_bit_stream.d.ts +0 -47
  463. package/plugin/runtime/node_modules/bytestreamjs/build/types/seq_stream.d.ts +0 -255
  464. package/plugin/runtime/node_modules/bytestreamjs/package.json +0 -66
  465. package/plugin/runtime/node_modules/camelcase/index.d.ts +0 -63
  466. package/plugin/runtime/node_modules/camelcase/index.js +0 -76
  467. package/plugin/runtime/node_modules/camelcase/license +0 -9
  468. package/plugin/runtime/node_modules/camelcase/package.json +0 -43
  469. package/plugin/runtime/node_modules/camelcase/readme.md +0 -99
  470. package/plugin/runtime/node_modules/cbor/LICENSE.md +0 -20
  471. package/plugin/runtime/node_modules/cbor/README.md +0 -282
  472. package/plugin/runtime/node_modules/cbor/lib/cbor.js +0 -114
  473. package/plugin/runtime/node_modules/cbor/lib/commented.js +0 -382
  474. package/plugin/runtime/node_modules/cbor/lib/constants.js +0 -79
  475. package/plugin/runtime/node_modules/cbor/lib/decoder.js +0 -680
  476. package/plugin/runtime/node_modules/cbor/lib/diagnose.js +0 -274
  477. package/plugin/runtime/node_modules/cbor/lib/encoder.js +0 -1121
  478. package/plugin/runtime/node_modules/cbor/lib/map.js +0 -185
  479. package/plugin/runtime/node_modules/cbor/lib/objectRecorder.js +0 -71
  480. package/plugin/runtime/node_modules/cbor/lib/sharedValueEncoder.js +0 -141
  481. package/plugin/runtime/node_modules/cbor/lib/simple.js +0 -104
  482. package/plugin/runtime/node_modules/cbor/lib/tagged.js +0 -378
  483. package/plugin/runtime/node_modules/cbor/lib/utils.js +0 -308
  484. package/plugin/runtime/node_modules/cbor/package.json +0 -47
  485. package/plugin/runtime/node_modules/cbor/types/lib/cbor.d.ts +0 -34
  486. package/plugin/runtime/node_modules/cbor/types/lib/commented.d.ts +0 -109
  487. package/plugin/runtime/node_modules/cbor/types/lib/constants.d.ts +0 -63
  488. package/plugin/runtime/node_modules/cbor/types/lib/decoder.d.ts +0 -199
  489. package/plugin/runtime/node_modules/cbor/types/lib/diagnose.d.ts +0 -91
  490. package/plugin/runtime/node_modules/cbor/types/lib/encoder.d.ts +0 -477
  491. package/plugin/runtime/node_modules/cbor/types/lib/map.d.ts +0 -78
  492. package/plugin/runtime/node_modules/cbor/types/lib/objectRecorder.d.ts +0 -36
  493. package/plugin/runtime/node_modules/cbor/types/lib/sharedValueEncoder.d.ts +0 -21
  494. package/plugin/runtime/node_modules/cbor/types/lib/simple.d.ts +0 -47
  495. package/plugin/runtime/node_modules/cbor/types/lib/tagged.d.ts +0 -74
  496. package/plugin/runtime/node_modules/cbor/types/lib/utils.d.ts +0 -20
  497. package/plugin/runtime/node_modules/cbor/types/vendor/binary-parse-stream/index.d.ts +0 -34
  498. package/plugin/runtime/node_modules/cbor/vendor/binary-parse-stream/README.md +0 -49
  499. package/plugin/runtime/node_modules/cbor/vendor/binary-parse-stream/index.js +0 -111
  500. package/plugin/runtime/node_modules/cliui/CHANGELOG.md +0 -76
  501. package/plugin/runtime/node_modules/cliui/LICENSE.txt +0 -14
  502. package/plugin/runtime/node_modules/cliui/README.md +0 -115
  503. package/plugin/runtime/node_modules/cliui/index.js +0 -354
  504. package/plugin/runtime/node_modules/cliui/package.json +0 -65
  505. package/plugin/runtime/node_modules/color-convert/CHANGELOG.md +0 -54
  506. package/plugin/runtime/node_modules/color-convert/LICENSE +0 -21
  507. package/plugin/runtime/node_modules/color-convert/README.md +0 -68
  508. package/plugin/runtime/node_modules/color-convert/conversions.js +0 -839
  509. package/plugin/runtime/node_modules/color-convert/index.js +0 -81
  510. package/plugin/runtime/node_modules/color-convert/package.json +0 -48
  511. package/plugin/runtime/node_modules/color-convert/route.js +0 -97
  512. package/plugin/runtime/node_modules/color-name/LICENSE +0 -8
  513. package/plugin/runtime/node_modules/color-name/README.md +0 -11
  514. package/plugin/runtime/node_modules/color-name/index.js +0 -152
  515. package/plugin/runtime/node_modules/color-name/package.json +0 -28
  516. package/plugin/runtime/node_modules/decamelize/index.js +0 -13
  517. package/plugin/runtime/node_modules/decamelize/license +0 -21
  518. package/plugin/runtime/node_modules/decamelize/package.json +0 -38
  519. package/plugin/runtime/node_modules/decamelize/readme.md +0 -48
  520. package/plugin/runtime/node_modules/dijkstrajs/.travis.yml +0 -4
  521. package/plugin/runtime/node_modules/dijkstrajs/CONTRIBUTING.md +0 -8
  522. package/plugin/runtime/node_modules/dijkstrajs/LICENSE.md +0 -19
  523. package/plugin/runtime/node_modules/dijkstrajs/README.md +0 -18
  524. package/plugin/runtime/node_modules/dijkstrajs/dijkstra.js +0 -165
  525. package/plugin/runtime/node_modules/dijkstrajs/package.json +0 -60
  526. package/plugin/runtime/node_modules/dijkstrajs/test/dijkstra.test.js +0 -96
  527. package/plugin/runtime/node_modules/emoji-regex/LICENSE-MIT.txt +0 -20
  528. package/plugin/runtime/node_modules/emoji-regex/README.md +0 -73
  529. package/plugin/runtime/node_modules/emoji-regex/es2015/index.js +0 -6
  530. package/plugin/runtime/node_modules/emoji-regex/es2015/text.js +0 -6
  531. package/plugin/runtime/node_modules/emoji-regex/index.d.ts +0 -23
  532. package/plugin/runtime/node_modules/emoji-regex/index.js +0 -6
  533. package/plugin/runtime/node_modules/emoji-regex/package.json +0 -50
  534. package/plugin/runtime/node_modules/emoji-regex/text.js +0 -6
  535. package/plugin/runtime/node_modules/find-up/index.d.ts +0 -137
  536. package/plugin/runtime/node_modules/find-up/index.js +0 -89
  537. package/plugin/runtime/node_modules/find-up/license +0 -9
  538. package/plugin/runtime/node_modules/find-up/package.json +0 -53
  539. package/plugin/runtime/node_modules/find-up/readme.md +0 -156
  540. package/plugin/runtime/node_modules/get-caller-file/LICENSE.md +0 -6
  541. package/plugin/runtime/node_modules/get-caller-file/README.md +0 -41
  542. package/plugin/runtime/node_modules/get-caller-file/index.d.ts +0 -2
  543. package/plugin/runtime/node_modules/get-caller-file/index.js +0 -22
  544. package/plugin/runtime/node_modules/get-caller-file/index.js.map +0 -1
  545. package/plugin/runtime/node_modules/get-caller-file/package.json +0 -42
  546. package/plugin/runtime/node_modules/is-fullwidth-code-point/index.d.ts +0 -17
  547. package/plugin/runtime/node_modules/is-fullwidth-code-point/index.js +0 -50
  548. package/plugin/runtime/node_modules/is-fullwidth-code-point/license +0 -9
  549. package/plugin/runtime/node_modules/is-fullwidth-code-point/package.json +0 -42
  550. package/plugin/runtime/node_modules/is-fullwidth-code-point/readme.md +0 -39
  551. package/plugin/runtime/node_modules/locate-path/index.d.ts +0 -83
  552. package/plugin/runtime/node_modules/locate-path/index.js +0 -65
  553. package/plugin/runtime/node_modules/locate-path/license +0 -9
  554. package/plugin/runtime/node_modules/locate-path/package.json +0 -45
  555. package/plugin/runtime/node_modules/locate-path/readme.md +0 -122
  556. package/plugin/runtime/node_modules/node-app-attest/.github/dependabot.yml +0 -6
  557. package/plugin/runtime/node_modules/node-app-attest/.github/workflows/ci.yml +0 -43
  558. package/plugin/runtime/node_modules/node-app-attest/.prettierrc +0 -1
  559. package/plugin/runtime/node_modules/node-app-attest/.yarnrc.yml +0 -1
  560. package/plugin/runtime/node_modules/node-app-attest/LICENSE +0 -21
  561. package/plugin/runtime/node_modules/node-app-attest/README.md +0 -300
  562. package/plugin/runtime/node_modules/node-app-attest/eslint.config.js +0 -30
  563. package/plugin/runtime/node_modules/node-app-attest/package.json +0 -44
  564. package/plugin/runtime/node_modules/node-app-attest/src/index.js +0 -4
  565. package/plugin/runtime/node_modules/node-app-attest/src/verifyAssertion.js +0 -81
  566. package/plugin/runtime/node_modules/node-app-attest/src/verifyAttestation.js +0 -211
  567. package/plugin/runtime/node_modules/node-app-attest/test/fixtures/attestation-development.json +0 -5
  568. package/plugin/runtime/node_modules/node-app-attest/test/fixtures/attestation-production.json +0 -5
  569. package/plugin/runtime/node_modules/node-app-attest/test/verifyAssertion.test.js +0 -119
  570. package/plugin/runtime/node_modules/node-app-attest/test/verifyAttestation.test.js +0 -303
  571. package/plugin/runtime/node_modules/node-app-attest/tsconfig.json +0 -11
  572. package/plugin/runtime/node_modules/node-app-attest/types/index.d.ts +0 -4
  573. package/plugin/runtime/node_modules/node-app-attest/types/index.d.ts.map +0 -1
  574. package/plugin/runtime/node_modules/node-app-attest/types/verifyAssertion.d.ts +0 -5
  575. package/plugin/runtime/node_modules/node-app-attest/types/verifyAssertion.d.ts.map +0 -1
  576. package/plugin/runtime/node_modules/node-app-attest/types/verifyAttestation.d.ts +0 -8
  577. package/plugin/runtime/node_modules/node-app-attest/types/verifyAttestation.d.ts.map +0 -1
  578. package/plugin/runtime/node_modules/nofilter/LICENSE.md +0 -20
  579. package/plugin/runtime/node_modules/nofilter/README.md +0 -36
  580. package/plugin/runtime/node_modules/nofilter/lib/index.js +0 -1055
  581. package/plugin/runtime/node_modules/nofilter/package.json +0 -60
  582. package/plugin/runtime/node_modules/nofilter/types/index.d.ts +0 -573
  583. package/plugin/runtime/node_modules/p-limit/index.d.ts +0 -38
  584. package/plugin/runtime/node_modules/p-limit/index.js +0 -57
  585. package/plugin/runtime/node_modules/p-limit/license +0 -9
  586. package/plugin/runtime/node_modules/p-limit/package.json +0 -52
  587. package/plugin/runtime/node_modules/p-limit/readme.md +0 -101
  588. package/plugin/runtime/node_modules/p-locate/index.d.ts +0 -64
  589. package/plugin/runtime/node_modules/p-locate/index.js +0 -52
  590. package/plugin/runtime/node_modules/p-locate/license +0 -9
  591. package/plugin/runtime/node_modules/p-locate/package.json +0 -53
  592. package/plugin/runtime/node_modules/p-locate/readme.md +0 -90
  593. package/plugin/runtime/node_modules/p-try/index.d.ts +0 -39
  594. package/plugin/runtime/node_modules/p-try/index.js +0 -9
  595. package/plugin/runtime/node_modules/p-try/license +0 -9
  596. package/plugin/runtime/node_modules/p-try/package.json +0 -42
  597. package/plugin/runtime/node_modules/p-try/readme.md +0 -58
  598. package/plugin/runtime/node_modules/path-exists/index.d.ts +0 -28
  599. package/plugin/runtime/node_modules/path-exists/index.js +0 -23
  600. package/plugin/runtime/node_modules/path-exists/license +0 -9
  601. package/plugin/runtime/node_modules/path-exists/package.json +0 -39
  602. package/plugin/runtime/node_modules/path-exists/readme.md +0 -52
  603. package/plugin/runtime/node_modules/pkijs/LICENSE +0 -30
  604. package/plugin/runtime/node_modules/pkijs/README.md +0 -81
  605. package/plugin/runtime/node_modules/pkijs/build/index.d.ts +0 -9419
  606. package/plugin/runtime/node_modules/pkijs/build/index.es.js +0 -18789
  607. package/plugin/runtime/node_modules/pkijs/build/index.js +0 -19014
  608. package/plugin/runtime/node_modules/pkijs/package.json +0 -98
  609. package/plugin/runtime/node_modules/pngjs/.eslintignore +0 -2
  610. package/plugin/runtime/node_modules/pngjs/.eslintrc.json +0 -19
  611. package/plugin/runtime/node_modules/pngjs/.prettierignore +0 -3
  612. package/plugin/runtime/node_modules/pngjs/LICENSE +0 -20
  613. package/plugin/runtime/node_modules/pngjs/README.md +0 -429
  614. package/plugin/runtime/node_modules/pngjs/browser.js +0 -16096
  615. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/base.css +0 -354
  616. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/bitmapper.js.html +0 -881
  617. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/bitpacker.js.html +0 -554
  618. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/block-navigation.js +0 -77
  619. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/chunkstream.js.html +0 -647
  620. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/constants.js.html +0 -176
  621. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/crc.js.html +0 -200
  622. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/favicon.png +0 -0
  623. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/filter-pack.js.html +0 -593
  624. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/filter-parse-async.js.html +0 -152
  625. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/filter-parse-sync.js.html +0 -143
  626. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/filter-parse.js.html +0 -611
  627. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/format-normaliser.js.html +0 -359
  628. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/index.html +0 -426
  629. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/interlace.js.html +0 -365
  630. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/packer-async.js.html +0 -230
  631. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/packer-sync.js.html +0 -248
  632. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/packer.js.html +0 -467
  633. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/paeth-predictor.js.html +0 -128
  634. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/parser-async.js.html +0 -575
  635. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/parser-sync.js.html +0 -404
  636. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/parser.js.html +0 -950
  637. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/png-sync.js.html +0 -116
  638. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/png.js.html +0 -662
  639. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/prettify.css +0 -101
  640. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/prettify.js +0 -1007
  641. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  642. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/sorter.js +0 -169
  643. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/sync-inflate.js.html +0 -584
  644. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/sync-reader.js.html +0 -215
  645. package/plugin/runtime/node_modules/pngjs/coverage/lcov.info +0 -2177
  646. package/plugin/runtime/node_modules/pngjs/lib/bitmapper.js +0 -267
  647. package/plugin/runtime/node_modules/pngjs/lib/bitpacker.js +0 -158
  648. package/plugin/runtime/node_modules/pngjs/lib/chunkstream.js +0 -189
  649. package/plugin/runtime/node_modules/pngjs/lib/constants.js +0 -32
  650. package/plugin/runtime/node_modules/pngjs/lib/crc.js +0 -40
  651. package/plugin/runtime/node_modules/pngjs/lib/filter-pack.js +0 -171
  652. package/plugin/runtime/node_modules/pngjs/lib/filter-parse-async.js +0 -24
  653. package/plugin/runtime/node_modules/pngjs/lib/filter-parse-sync.js +0 -21
  654. package/plugin/runtime/node_modules/pngjs/lib/filter-parse.js +0 -177
  655. package/plugin/runtime/node_modules/pngjs/lib/format-normaliser.js +0 -93
  656. package/plugin/runtime/node_modules/pngjs/lib/interlace.js +0 -95
  657. package/plugin/runtime/node_modules/pngjs/lib/packer-async.js +0 -50
  658. package/plugin/runtime/node_modules/pngjs/lib/packer-sync.js +0 -56
  659. package/plugin/runtime/node_modules/pngjs/lib/packer.js +0 -129
  660. package/plugin/runtime/node_modules/pngjs/lib/paeth-predictor.js +0 -16
  661. package/plugin/runtime/node_modules/pngjs/lib/parser-async.js +0 -165
  662. package/plugin/runtime/node_modules/pngjs/lib/parser-sync.js +0 -108
  663. package/plugin/runtime/node_modules/pngjs/lib/parser.js +0 -290
  664. package/plugin/runtime/node_modules/pngjs/lib/png-sync.js +0 -12
  665. package/plugin/runtime/node_modules/pngjs/lib/png.js +0 -194
  666. package/plugin/runtime/node_modules/pngjs/lib/sync-inflate.js +0 -168
  667. package/plugin/runtime/node_modules/pngjs/lib/sync-reader.js +0 -45
  668. package/plugin/runtime/node_modules/pngjs/package.json +0 -73
  669. package/plugin/runtime/node_modules/pvtsutils/LICENSE +0 -21
  670. package/plugin/runtime/node_modules/pvtsutils/README.md +0 -80
  671. package/plugin/runtime/node_modules/pvtsutils/build/index.d.ts +0 -208
  672. package/plugin/runtime/node_modules/pvtsutils/build/index.es.js +0 -393
  673. package/plugin/runtime/node_modules/pvtsutils/build/index.js +0 -399
  674. package/plugin/runtime/node_modules/pvtsutils/package.json +0 -76
  675. package/plugin/runtime/node_modules/pvutils/LICENSE +0 -24
  676. package/plugin/runtime/node_modules/pvutils/README.md +0 -24
  677. package/plugin/runtime/node_modules/pvutils/build/index.d.ts +0 -116
  678. package/plugin/runtime/node_modules/pvutils/build/utils.es.js +0 -340
  679. package/plugin/runtime/node_modules/pvutils/build/utils.js +0 -361
  680. package/plugin/runtime/node_modules/pvutils/package.json +0 -63
  681. package/plugin/runtime/node_modules/qrcode/README.md +0 -770
  682. package/plugin/runtime/node_modules/qrcode/bin/qrcode +0 -159
  683. package/plugin/runtime/node_modules/qrcode/helper/to-sjis-browser.js +0 -2
  684. package/plugin/runtime/node_modules/qrcode/helper/to-sjis.js +0 -105
  685. package/plugin/runtime/node_modules/qrcode/lib/browser.js +0 -76
  686. package/plugin/runtime/node_modules/qrcode/lib/can-promise.js +0 -7
  687. package/plugin/runtime/node_modules/qrcode/lib/core/alignment-pattern.js +0 -83
  688. package/plugin/runtime/node_modules/qrcode/lib/core/alphanumeric-data.js +0 -59
  689. package/plugin/runtime/node_modules/qrcode/lib/core/bit-buffer.js +0 -37
  690. package/plugin/runtime/node_modules/qrcode/lib/core/bit-matrix.js +0 -65
  691. package/plugin/runtime/node_modules/qrcode/lib/core/byte-data.js +0 -30
  692. package/plugin/runtime/node_modules/qrcode/lib/core/error-correction-code.js +0 -135
  693. package/plugin/runtime/node_modules/qrcode/lib/core/error-correction-level.js +0 -50
  694. package/plugin/runtime/node_modules/qrcode/lib/core/finder-pattern.js +0 -22
  695. package/plugin/runtime/node_modules/qrcode/lib/core/format-info.js +0 -29
  696. package/plugin/runtime/node_modules/qrcode/lib/core/galois-field.js +0 -69
  697. package/plugin/runtime/node_modules/qrcode/lib/core/kanji-data.js +0 -54
  698. package/plugin/runtime/node_modules/qrcode/lib/core/mask-pattern.js +0 -234
  699. package/plugin/runtime/node_modules/qrcode/lib/core/mode.js +0 -167
  700. package/plugin/runtime/node_modules/qrcode/lib/core/numeric-data.js +0 -43
  701. package/plugin/runtime/node_modules/qrcode/lib/core/polynomial.js +0 -62
  702. package/plugin/runtime/node_modules/qrcode/lib/core/qrcode.js +0 -495
  703. package/plugin/runtime/node_modules/qrcode/lib/core/reed-solomon-encoder.js +0 -56
  704. package/plugin/runtime/node_modules/qrcode/lib/core/regex.js +0 -31
  705. package/plugin/runtime/node_modules/qrcode/lib/core/segments.js +0 -330
  706. package/plugin/runtime/node_modules/qrcode/lib/core/utils.js +0 -63
  707. package/plugin/runtime/node_modules/qrcode/lib/core/version-check.js +0 -9
  708. package/plugin/runtime/node_modules/qrcode/lib/core/version.js +0 -163
  709. package/plugin/runtime/node_modules/qrcode/lib/index.js +0 -12
  710. package/plugin/runtime/node_modules/qrcode/lib/renderer/canvas.js +0 -63
  711. package/plugin/runtime/node_modules/qrcode/lib/renderer/png.js +0 -78
  712. package/plugin/runtime/node_modules/qrcode/lib/renderer/svg-tag.js +0 -81
  713. package/plugin/runtime/node_modules/qrcode/lib/renderer/svg.js +0 -19
  714. package/plugin/runtime/node_modules/qrcode/lib/renderer/terminal/terminal-small.js +0 -85
  715. package/plugin/runtime/node_modules/qrcode/lib/renderer/terminal/terminal.js +0 -49
  716. package/plugin/runtime/node_modules/qrcode/lib/renderer/terminal.js +0 -9
  717. package/plugin/runtime/node_modules/qrcode/lib/renderer/utf8.js +0 -71
  718. package/plugin/runtime/node_modules/qrcode/lib/renderer/utils.js +0 -99
  719. package/plugin/runtime/node_modules/qrcode/lib/server.js +0 -138
  720. package/plugin/runtime/node_modules/qrcode/license +0 -10
  721. package/plugin/runtime/node_modules/qrcode/package.json +0 -77
  722. package/plugin/runtime/node_modules/require-directory/.jshintrc +0 -67
  723. package/plugin/runtime/node_modules/require-directory/.travis.yml +0 -3
  724. package/plugin/runtime/node_modules/require-directory/LICENSE +0 -22
  725. package/plugin/runtime/node_modules/require-directory/README.markdown +0 -184
  726. package/plugin/runtime/node_modules/require-directory/index.js +0 -86
  727. package/plugin/runtime/node_modules/require-directory/package.json +0 -40
  728. package/plugin/runtime/node_modules/require-main-filename/CHANGELOG.md +0 -26
  729. package/plugin/runtime/node_modules/require-main-filename/LICENSE.txt +0 -14
  730. package/plugin/runtime/node_modules/require-main-filename/README.md +0 -26
  731. package/plugin/runtime/node_modules/require-main-filename/index.js +0 -18
  732. package/plugin/runtime/node_modules/require-main-filename/package.json +0 -35
  733. package/plugin/runtime/node_modules/set-blocking/CHANGELOG.md +0 -26
  734. package/plugin/runtime/node_modules/set-blocking/LICENSE.txt +0 -14
  735. package/plugin/runtime/node_modules/set-blocking/README.md +0 -31
  736. package/plugin/runtime/node_modules/set-blocking/index.js +0 -7
  737. package/plugin/runtime/node_modules/set-blocking/package.json +0 -42
  738. package/plugin/runtime/node_modules/string-width/index.d.ts +0 -29
  739. package/plugin/runtime/node_modules/string-width/index.js +0 -47
  740. package/plugin/runtime/node_modules/string-width/license +0 -9
  741. package/plugin/runtime/node_modules/string-width/package.json +0 -56
  742. package/plugin/runtime/node_modules/string-width/readme.md +0 -50
  743. package/plugin/runtime/node_modules/strip-ansi/index.d.ts +0 -17
  744. package/plugin/runtime/node_modules/strip-ansi/index.js +0 -4
  745. package/plugin/runtime/node_modules/strip-ansi/license +0 -9
  746. package/plugin/runtime/node_modules/strip-ansi/package.json +0 -54
  747. package/plugin/runtime/node_modules/strip-ansi/readme.md +0 -46
  748. package/plugin/runtime/node_modules/tslib/CopyrightNotice.txt +0 -15
  749. package/plugin/runtime/node_modules/tslib/LICENSE.txt +0 -12
  750. package/plugin/runtime/node_modules/tslib/README.md +0 -164
  751. package/plugin/runtime/node_modules/tslib/SECURITY.md +0 -41
  752. package/plugin/runtime/node_modules/tslib/modules/index.d.ts +0 -38
  753. package/plugin/runtime/node_modules/tslib/modules/index.js +0 -70
  754. package/plugin/runtime/node_modules/tslib/modules/package.json +0 -3
  755. package/plugin/runtime/node_modules/tslib/package.json +0 -47
  756. package/plugin/runtime/node_modules/tslib/tslib.d.ts +0 -460
  757. package/plugin/runtime/node_modules/tslib/tslib.es6.html +0 -1
  758. package/plugin/runtime/node_modules/tslib/tslib.es6.js +0 -402
  759. package/plugin/runtime/node_modules/tslib/tslib.es6.mjs +0 -401
  760. package/plugin/runtime/node_modules/tslib/tslib.html +0 -1
  761. package/plugin/runtime/node_modules/tslib/tslib.js +0 -484
  762. package/plugin/runtime/node_modules/which-module/LICENSE +0 -13
  763. package/plugin/runtime/node_modules/which-module/README.md +0 -58
  764. package/plugin/runtime/node_modules/which-module/index.js +0 -9
  765. package/plugin/runtime/node_modules/which-module/package.json +0 -41
  766. package/plugin/runtime/node_modules/wrap-ansi/index.js +0 -186
  767. package/plugin/runtime/node_modules/wrap-ansi/license +0 -9
  768. package/plugin/runtime/node_modules/wrap-ansi/package.json +0 -61
  769. package/plugin/runtime/node_modules/wrap-ansi/readme.md +0 -97
  770. package/plugin/runtime/node_modules/y18n/CHANGELOG.md +0 -35
  771. package/plugin/runtime/node_modules/y18n/LICENSE +0 -13
  772. package/plugin/runtime/node_modules/y18n/README.md +0 -109
  773. package/plugin/runtime/node_modules/y18n/index.js +0 -188
  774. package/plugin/runtime/node_modules/y18n/package.json +0 -39
  775. package/plugin/runtime/node_modules/yargs/CHANGELOG.md +0 -420
  776. package/plugin/runtime/node_modules/yargs/LICENSE +0 -21
  777. package/plugin/runtime/node_modules/yargs/README.md +0 -140
  778. package/plugin/runtime/node_modules/yargs/build/lib/apply-extends.d.ts +0 -2
  779. package/plugin/runtime/node_modules/yargs/build/lib/apply-extends.js +0 -65
  780. package/plugin/runtime/node_modules/yargs/build/lib/argsert.d.ts +0 -2
  781. package/plugin/runtime/node_modules/yargs/build/lib/argsert.js +0 -65
  782. package/plugin/runtime/node_modules/yargs/build/lib/command.d.ts +0 -64
  783. package/plugin/runtime/node_modules/yargs/build/lib/command.js +0 -416
  784. package/plugin/runtime/node_modules/yargs/build/lib/common-types.d.ts +0 -36
  785. package/plugin/runtime/node_modules/yargs/build/lib/common-types.js +0 -25
  786. package/plugin/runtime/node_modules/yargs/build/lib/completion-templates.d.ts +0 -2
  787. package/plugin/runtime/node_modules/yargs/build/lib/completion-templates.js +0 -50
  788. package/plugin/runtime/node_modules/yargs/build/lib/completion.d.ts +0 -21
  789. package/plugin/runtime/node_modules/yargs/build/lib/completion.js +0 -135
  790. package/plugin/runtime/node_modules/yargs/build/lib/is-promise.d.ts +0 -1
  791. package/plugin/runtime/node_modules/yargs/build/lib/is-promise.js +0 -9
  792. package/plugin/runtime/node_modules/yargs/build/lib/levenshtein.d.ts +0 -1
  793. package/plugin/runtime/node_modules/yargs/build/lib/levenshtein.js +0 -58
  794. package/plugin/runtime/node_modules/yargs/build/lib/middleware.d.ts +0 -10
  795. package/plugin/runtime/node_modules/yargs/build/lib/middleware.js +0 -57
  796. package/plugin/runtime/node_modules/yargs/build/lib/obj-filter.d.ts +0 -1
  797. package/plugin/runtime/node_modules/yargs/build/lib/obj-filter.js +0 -14
  798. package/plugin/runtime/node_modules/yargs/build/lib/parse-command.d.ts +0 -11
  799. package/plugin/runtime/node_modules/yargs/build/lib/parse-command.js +0 -36
  800. package/plugin/runtime/node_modules/yargs/build/lib/process-argv.d.ts +0 -2
  801. package/plugin/runtime/node_modules/yargs/build/lib/process-argv.js +0 -31
  802. package/plugin/runtime/node_modules/yargs/build/lib/usage.d.ts +0 -49
  803. package/plugin/runtime/node_modules/yargs/build/lib/usage.js +0 -540
  804. package/plugin/runtime/node_modules/yargs/build/lib/validation.d.ts +0 -34
  805. package/plugin/runtime/node_modules/yargs/build/lib/validation.js +0 -330
  806. package/plugin/runtime/node_modules/yargs/build/lib/yargs.d.ts +0 -274
  807. package/plugin/runtime/node_modules/yargs/build/lib/yargs.js +0 -1190
  808. package/plugin/runtime/node_modules/yargs/build/lib/yerror.d.ts +0 -4
  809. package/plugin/runtime/node_modules/yargs/build/lib/yerror.js +0 -11
  810. package/plugin/runtime/node_modules/yargs/index.js +0 -40
  811. package/plugin/runtime/node_modules/yargs/locales/be.json +0 -46
  812. package/plugin/runtime/node_modules/yargs/locales/de.json +0 -46
  813. package/plugin/runtime/node_modules/yargs/locales/en.json +0 -51
  814. package/plugin/runtime/node_modules/yargs/locales/es.json +0 -46
  815. package/plugin/runtime/node_modules/yargs/locales/fi.json +0 -49
  816. package/plugin/runtime/node_modules/yargs/locales/fr.json +0 -53
  817. package/plugin/runtime/node_modules/yargs/locales/hi.json +0 -49
  818. package/plugin/runtime/node_modules/yargs/locales/hu.json +0 -46
  819. package/plugin/runtime/node_modules/yargs/locales/id.json +0 -50
  820. package/plugin/runtime/node_modules/yargs/locales/it.json +0 -46
  821. package/plugin/runtime/node_modules/yargs/locales/ja.json +0 -51
  822. package/plugin/runtime/node_modules/yargs/locales/ko.json +0 -49
  823. package/plugin/runtime/node_modules/yargs/locales/nb.json +0 -44
  824. package/plugin/runtime/node_modules/yargs/locales/nl.json +0 -49
  825. package/plugin/runtime/node_modules/yargs/locales/nn.json +0 -44
  826. package/plugin/runtime/node_modules/yargs/locales/pirate.json +0 -13
  827. package/plugin/runtime/node_modules/yargs/locales/pl.json +0 -49
  828. package/plugin/runtime/node_modules/yargs/locales/pt.json +0 -45
  829. package/plugin/runtime/node_modules/yargs/locales/pt_BR.json +0 -48
  830. package/plugin/runtime/node_modules/yargs/locales/ru.json +0 -46
  831. package/plugin/runtime/node_modules/yargs/locales/th.json +0 -46
  832. package/plugin/runtime/node_modules/yargs/locales/tr.json +0 -48
  833. package/plugin/runtime/node_modules/yargs/locales/zh_CN.json +0 -48
  834. package/plugin/runtime/node_modules/yargs/locales/zh_TW.json +0 -47
  835. package/plugin/runtime/node_modules/yargs/package.json +0 -92
  836. package/plugin/runtime/node_modules/yargs/yargs.js +0 -14
  837. package/plugin/runtime/node_modules/yargs-parser/CHANGELOG.md +0 -601
  838. package/plugin/runtime/node_modules/yargs-parser/LICENSE.txt +0 -14
  839. package/plugin/runtime/node_modules/yargs-parser/README.md +0 -449
  840. package/plugin/runtime/node_modules/yargs-parser/index.js +0 -1032
  841. package/plugin/runtime/node_modules/yargs-parser/lib/tokenize-arg-string.js +0 -40
  842. package/plugin/runtime/node_modules/yargs-parser/package.json +0 -46
  843. package/plugin/runtime/package-lock.json +0 -447
  844. package/plugin/runtime/package.json +0 -13
@@ -1,400 +0,0 @@
1
- import crypto from "node:crypto";
2
- import { canonicalPayload, isCanonicalPayload } from "../contract/types.js";
3
- import { assertHistorySnapshotV1 } from "../contract/history.js";
4
- import { ChannelError } from "../contract/types.js";
5
- import { readJsonBody } from "./body.js";
6
- // 每个后端上下文独立创建协议处理器,所有宿主能力显式注入。
7
- export function createRuntimeTransport(deps) {
8
- const logger = deps.logger ?? { info() { }, warn() { } };
9
- const serialize = (request, event) => {
10
- if (deps.serialize)
11
- return deps.serialize(request, event);
12
- if (request.headers["x-fridaynext-event-format"] !== "canonical-v1" || isCanonicalPayload(event.payload))
13
- return event;
14
- const phase = { "run.accepted": "accepted", "run.queued": "queued", "run.started": "running", "run.recovered": "running", "run.reconciling": "reconciling", "run.completed": "completed", "run.failed": "failed", "run.cancelled": "cancelled" }[event.eventType];
15
- return { ...event, payload: canonicalPayload(phase ? [{ kind: "run", phase }] : []) };
16
- };
17
- const serializeRun = (request, run) => deps.serializeRun?.(request, run) ?? run;
18
- const serializeDeviceRequest = (request, value) => deps.serializeDeviceRequest?.(request, value) ?? value;
19
- function json(res, status, body) {
20
- res.statusCode = status;
21
- res.setHeader("Content-Type", "application/json");
22
- res.end(JSON.stringify(body));
23
- return true;
24
- }
25
- function authenticate(req, res) {
26
- if (deps.authenticate(req))
27
- return true;
28
- json(res, 401, { error: "Unauthorized: bearer token mismatch" });
29
- return false;
30
- }
31
- function integerQuery(url, name, fallback) {
32
- const value = Number.parseInt(url.searchParams.get(name) ?? "", 10);
33
- return Number.isFinite(value) ? Math.max(0, value) : fallback;
34
- }
35
- function writeRuntimeEvent(res, event, flushed) {
36
- return res.write(`id: ${event.eventId}\nevent: runtime\ndata: ${JSON.stringify(event)}\n\n`, flushed);
37
- }
38
- function writeRuntimeLiveEvent(res, event, flushed) {
39
- return res.write(`event: ${event.type}\ndata: ${JSON.stringify(event.data)}\n\n`, flushed);
40
- }
41
- async function handleRuntimeV3Events(req, res) {
42
- if (req.method !== "GET")
43
- return json(res, 405, { error: "Method Not Allowed" });
44
- if (!authenticate(req, res))
45
- return true;
46
- const url = new URL(req.url ?? "/", "http://localhost");
47
- const deviceId = (url.searchParams.get("deviceId") ?? "").trim().toUpperCase();
48
- if (!deviceId)
49
- return json(res, 400, { error: "Missing required query parameter: deviceId" });
50
- const headerId = Number.parseInt(String(req.headers["last-event-id"] ?? ""), 10);
51
- const afterEventId = Number.isFinite(headerId)
52
- ? Math.max(0, headerId)
53
- : integerQuery(url, "lastEventId", 0);
54
- const store = deps.store();
55
- res.statusCode = 200;
56
- res.setHeader("Content-Type", "text/event-stream; charset=utf-8");
57
- res.setHeader("Cache-Control", "no-cache, no-store, must-revalidate");
58
- res.setHeader("Connection", "keep-alive");
59
- res.setHeader("X-Accel-Buffering", "no");
60
- res.flushHeaders();
61
- logger.info(`connect device=${deviceId} afterEventId=${afterEventId} head=${store.eventHead(deviceId)} floor=${store.eventFloor(deviceId)}`);
62
- let lastSent = afterEventId;
63
- let waitingDrain = false;
64
- let drainStuckSince = null;
65
- let replaying = true;
66
- let closed = false;
67
- let replayedCount = 0;
68
- let replayLogged = false;
69
- const replayBatchLimit = 256;
70
- const liveQueueLimit = 512;
71
- const pendingLive = [];
72
- // 背压此前完全静默:慢连接会让事件直发与 keepalive 一起停摆,App 侧 60s 无字节就判
73
- // 半死重连,而从网关日志看不出任何痕迹。这里至少把进入背压的时刻钉进日志。
74
- function markBackpressure() {
75
- if (waitingDrain)
76
- return;
77
- waitingDrain = true;
78
- drainStuckSince = Date.now();
79
- logger.warn(`backpressure device=${deviceId} lastSent=${lastSent} pendingLive=${pendingLive.length}`);
80
- }
81
- function writeCompleted(error) {
82
- if (closed || res.destroyed || res.writableEnded)
83
- return;
84
- if (error) {
85
- closed = true;
86
- logger.warn(`write-failed device=${deviceId} lastSent=${lastSent}`);
87
- res.destroy();
88
- return;
89
- }
90
- // 目标HTTPS实测有write=false、缓冲已空却不发drain的组合。写回调只在实际刷出后
91
- // 到来;仅当整个响应缓冲为0时补一次恢复,真正慢连接仍等待,不轮询或扩大内存队列。
92
- if (waitingDrain && res.writableLength === 0)
93
- handleDrain();
94
- }
95
- function logReplayDone() {
96
- if (replayLogged)
97
- return;
98
- replayLogged = true;
99
- logger.info(`replay device=${deviceId} afterEventId=${afterEventId} count=${replayedCount} head=${store.eventHead(deviceId)}`);
100
- }
101
- function enqueueLive(event) {
102
- if (pendingLive.length >= liveQueueLimit) {
103
- const droppable = pendingLive.findIndex((candidate) => candidate.data.type === "audio" || candidate.data.type === "inputAudio");
104
- const [dropped] = pendingLive.splice(droppable >= 0 ? droppable : 0, 1);
105
- logger.warn(`drop-live device=${deviceId} event=${dropped?.type ?? "unknown"} pendingLive=${pendingLive.length}`);
106
- }
107
- pendingLive.push(event);
108
- }
109
- function pumpLive() {
110
- if (closed || replaying || waitingDrain)
111
- return;
112
- while (pendingLive.length > 0 && !waitingDrain) {
113
- const event = pendingLive.shift();
114
- if (event && !writeRuntimeLiveEvent(res, event, writeCompleted))
115
- markBackpressure();
116
- }
117
- }
118
- function pumpReplay() {
119
- if (closed || waitingDrain)
120
- return;
121
- replaying = true;
122
- while (!waitingDrain) {
123
- const events = store.eventsAfter(deviceId, lastSent, replayBatchLimit);
124
- if (events.length === 0) {
125
- replaying = false;
126
- logReplayDone();
127
- pumpLive();
128
- return;
129
- }
130
- for (const event of events) {
131
- if (event.eventId <= lastSent)
132
- continue;
133
- lastSent = event.eventId;
134
- replayedCount += 1;
135
- if (!writeRuntimeEvent(res, serialize(req, event), writeCompleted)) {
136
- markBackpressure();
137
- return;
138
- }
139
- }
140
- }
141
- }
142
- const unsubscribe = store.subscribe(deviceId, (event) => {
143
- if (closed || res.destroyed || res.writableEnded)
144
- return;
145
- if (event.eventId <= lastSent)
146
- return;
147
- // 回放或背压期间事件已在持久化日志中,只保留游标,避免慢连接堆出无界内存队列。
148
- if (replaying || waitingDrain)
149
- return;
150
- lastSent = event.eventId;
151
- if (!writeRuntimeEvent(res, serialize(req, event), writeCompleted)) {
152
- markBackpressure();
153
- replaying = true;
154
- }
155
- });
156
- const unsubscribeLive = (deps.subscribeLive ?? (() => () => { }))(deviceId, (event) => {
157
- if (closed)
158
- return;
159
- if (replaying || waitingDrain) {
160
- enqueueLive(event);
161
- return;
162
- }
163
- if (!writeRuntimeLiveEvent(res, event, writeCompleted))
164
- markBackpressure();
165
- });
166
- function handleDrain() {
167
- if (closed || res.destroyed || res.writableEnded)
168
- return;
169
- waitingDrain = false;
170
- drainStuckSince = null;
171
- // 背压由实时旁路触发时也可能错过持久事件通知;一律先按原游标补齐,再送旁路。
172
- pumpReplay();
173
- }
174
- res.on("drain", handleDrain);
175
- const head = store.eventHead(deviceId);
176
- const floor = store.eventFloor(deviceId);
177
- if (!res.write(`event: hello\ndata: ${JSON.stringify({
178
- protocolVersion: 3,
179
- pluginVersion: deps.adapterVersion,
180
- ...(deps.descriptor ? { backend: deps.descriptor } : {}),
181
- serverInstanceId: store.serverInstanceId,
182
- deviceId,
183
- floorEventId: floor,
184
- headEventId: head,
185
- acknowledgedEventId: store.acknowledgedEventId(deviceId),
186
- unfinishedRuns: store.unfinishedRuns(deviceId).map(run => serializeRun(req, run)),
187
- pendingDeviceRequests: store.pendingDeviceRequests(deviceId).map(value => serializeDeviceRequest(req, value)),
188
- })}\n\n`, writeCompleted)) {
189
- markBackpressure();
190
- }
191
- lastSent = floor > 0 && afterEventId < floor - 1 ? floor - 1 : afterEventId;
192
- pumpReplay();
193
- const keepalive = setInterval(() => {
194
- if (closed)
195
- return;
196
- if (waitingDrain) {
197
- // 客户端 TCP 长时间不读(后台挂起/弱网)时,连接既送不出事件也发不了 keepalive。
198
- // 与其挂着僵尸连接等 App 的 60s 无字节看门狗,不如服务端先断:客户端立即带
199
- // Last-Event-ID 重连,回放窗口有界,重连风暴更短。
200
- if (drainStuckSince !== null && Date.now() - drainStuckSince >= 45_000) {
201
- logger.warn(`drain-timeout device=${deviceId} lastSent=${lastSent} pendingLive=${pendingLive.length}`);
202
- closed = true;
203
- clearInterval(keepalive);
204
- try {
205
- res.end();
206
- }
207
- catch {
208
- // Socket may already be destroyed; req close handles cleanup.
209
- }
210
- }
211
- return;
212
- }
213
- if (!res.write(": keepalive\n\n", writeCompleted)) {
214
- markBackpressure();
215
- replaying = true;
216
- }
217
- }, deps.keepaliveMs ?? 15_000);
218
- keepalive.unref();
219
- req.on("close", () => {
220
- closed = true;
221
- clearInterval(keepalive);
222
- res.off("drain", handleDrain);
223
- unsubscribe();
224
- unsubscribeLive();
225
- logger.info(`disconnect device=${deviceId} lastSent=${lastSent} replayed=${replayedCount} pendingLive=${pendingLive.length}`);
226
- });
227
- return true;
228
- }
229
- async function handleRuntimeV3Acknowledge(req, res) {
230
- if (req.method !== "POST")
231
- return json(res, 405, { error: "Method Not Allowed" });
232
- if (!authenticate(req, res))
233
- return true;
234
- const body = await readJsonBody(req);
235
- const deviceId = typeof body?.deviceId === "string" ? body.deviceId.trim().toUpperCase() : "";
236
- const throughEventId = typeof body?.throughEventId === "number" ? body.throughEventId : NaN;
237
- if (!deviceId || !Number.isFinite(throughEventId)) {
238
- return json(res, 400, { error: "Missing deviceId or throughEventId" });
239
- }
240
- const store = deps.store();
241
- const requestedInstance = typeof body?.serverInstanceId === "string" ? body.serverInstanceId.trim() : "";
242
- if (requestedInstance && requestedInstance !== store.serverInstanceId) {
243
- return json(res, 409, {
244
- error: "serverInstanceId mismatch",
245
- serverInstanceId: store.serverInstanceId,
246
- });
247
- }
248
- return json(res, 200, {
249
- ok: true,
250
- protocolVersion: 3,
251
- serverInstanceId: store.serverInstanceId,
252
- acknowledgedEventId: store.acknowledge(deviceId, throughEventId),
253
- });
254
- }
255
- async function handleRuntimeV3Sync(req, res) {
256
- if (req.method !== "GET")
257
- return json(res, 405, { error: "Method Not Allowed" });
258
- if (!authenticate(req, res))
259
- return true;
260
- const url = new URL(req.url ?? "/", "http://localhost");
261
- const deviceId = (url.searchParams.get("deviceId") ?? "").trim().toUpperCase();
262
- if (!deviceId)
263
- return json(res, 400, { error: "Missing required query parameter: deviceId" });
264
- const afterEventId = integerQuery(url, "afterEventId", 0);
265
- const limit = Math.min(5_000, Math.max(1, integerQuery(url, "limit", 1_000)));
266
- const store = deps.store();
267
- const headEventId = store.eventHead(deviceId);
268
- const floorEventId = store.eventFloor(deviceId);
269
- const gapDetected = floorEventId > 0 && afterEventId < floorEventId - 1;
270
- const effectiveAfterEventId = gapDetected ? floorEventId - 1 : afterEventId;
271
- const events = store.eventsAfter(deviceId, effectiveAfterEventId, limit);
272
- return json(res, 200, {
273
- ok: true,
274
- protocolVersion: 3,
275
- serverInstanceId: store.serverInstanceId,
276
- floorEventId,
277
- headEventId,
278
- acknowledgedEventId: store.acknowledgedEventId(deviceId),
279
- gapDetected,
280
- hasMore: (events.at(-1)?.eventId ?? effectiveAfterEventId) < headEventId,
281
- events: events.map((event) => serialize(req, event)),
282
- runs: store.runs(deviceId).map(run => serializeRun(req, run)),
283
- pendingDeviceRequests: store.pendingDeviceRequests(deviceId).map(value => serializeDeviceRequest(req, value)),
284
- });
285
- }
286
- async function handleRuntimeV3SessionSnapshot(req, res, sessionKey, identityAttempt = 0) {
287
- if (req.method !== "GET")
288
- return json(res, 405, { error: "Method Not Allowed" });
289
- if (!authenticate(req, res))
290
- return true;
291
- const key = deps.resolveSessionKey?.(sessionKey.trim()) ?? sessionKey.trim();
292
- if (!key)
293
- return json(res, 400, { error: "Missing session key" });
294
- const nativeSnapshot = await deps.snapshot(key, integerQuery(new URL(req.url ?? "/", "http://localhost"), "transcriptLimit", 110), req);
295
- if (nativeSnapshot?.unavailable)
296
- return json(res, 503, { ok: false, code: "UNAVAILABLE", error: "Session changed while reading snapshot" });
297
- try {
298
- assertHistorySnapshotV1(nativeSnapshot, key);
299
- }
300
- catch (error) {
301
- if (error instanceof ChannelError && error.code === "HISTORY_CONTRACT_INVALID")
302
- return json(res, error.status, { ok: false, code: error.code, error: error.message });
303
- throw error;
304
- }
305
- const sessionId = nativeSnapshot.sessionId;
306
- const store = deps.store();
307
- const runs = store.runs().filter((run) => run.sessionKey === key);
308
- const url = new URL(req.url ?? "/", "http://localhost");
309
- const requestedRunIds = new Set(url.searchParams
310
- .getAll("runId")
311
- .map((runId) => runId.trim())
312
- .filter(Boolean));
313
- const segmentScope = url.searchParams.get("segments");
314
- const latestRunId = runs.at(-1)?.runId;
315
- const selectedRunIds = segmentScope === "none"
316
- ? new Set()
317
- : requestedRunIds.size > 0
318
- ? requestedRunIds
319
- : new Set([
320
- ...runs
321
- .filter((run) => run.phase !== "completed" && run.phase !== "failed" && run.phase !== "cancelled")
322
- .map((run) => run.runId),
323
- ...(latestRunId ? [latestRunId] : []),
324
- ]);
325
- const dedupedEvents = runs
326
- .filter((run) => selectedRunIds.has(run.runId))
327
- .flatMap((run) => store.eventsForRun(run.runId))
328
- .sort((a, b) => a.occurredAt - b.occurredAt || a.runSeq - b.runSeq);
329
- const transcriptLimit = Math.min(500, Math.max(1, integerQuery(url, "transcriptLimit", 110)));
330
- const transcript = nativeSnapshot.transcript;
331
- const sessionUsage = nativeSnapshot.sessionUsage;
332
- const revision = crypto
333
- .createHash("sha256")
334
- .update(JSON.stringify({
335
- transcript: transcript.map((message) => [message.id, message.seq, message.ts]),
336
- sessionId,
337
- runs: runs.map((run) => [run.runId, run.phase, run.lastRunSeq, run.updatedAt]),
338
- segmentHead: dedupedEvents.map((event) => [event.runId, event.runSeq, event.eventType]),
339
- }))
340
- .digest("hex");
341
- return json(res, 200, {
342
- ok: true,
343
- protocolVersion: 3,
344
- serverInstanceId: store.serverInstanceId,
345
- sessionKey: nativeSnapshot.session?.sessionKey ?? key,
346
- ...(sessionId ? { sessionId } : {}),
347
- revision,
348
- runs: runs.map(run => serializeRun(req, run)),
349
- transcript,
350
- segments: dedupedEvents.map((event) => serialize(req, event)),
351
- ...(nativeSnapshot.session ? { session: nativeSnapshot.session } : {}),
352
- ...(nativeSnapshot.controls ? { controls: nativeSnapshot.controls } : {}),
353
- pendingDeviceRequests: store
354
- .pendingDeviceRequests()
355
- .filter((request) => request.sessionKey === key)
356
- .map(value => serializeDeviceRequest(req, value)),
357
- ...(sessionUsage ? { sessionUsage } : {}),
358
- });
359
- }
360
- async function handleRuntimeV3Cancel(req, res, runId) {
361
- if (req.method !== "DELETE")
362
- return json(res, 405, { error: "Method Not Allowed" });
363
- if (!authenticate(req, res))
364
- return true;
365
- const store = deps.store();
366
- const expected = req.headers["x-fridaynext-server-instance-id"];
367
- if (typeof expected === "string" && expected !== store.serverInstanceId)
368
- return json(res, 409, { code: "SERVICE_IDENTITY_CHANGED", serverInstanceId: store.serverInstanceId });
369
- const run = store.run(runId);
370
- if (!run)
371
- return json(res, 404, { error: "Unknown runId" });
372
- if (run.phase === "completed" || run.phase === "failed" || run.phase === "cancelled") {
373
- return json(res, 200, { ok: true, runId, phase: run.phase, replayed: true });
374
- }
375
- if (run.phase === "queued") {
376
- deps.flush?.(runId);
377
- const event = store.appendRunEvent(runId, "run.cancelled", canonicalPayload([{ kind: "run", phase: "cancelled", data: { reason: "cancelled before dispatch" } }]));
378
- return json(res, 200, { ok: true, runId, phase: "cancelled", eventId: event.eventId });
379
- }
380
- deps.cancelPush?.(runId);
381
- store.transition(runId, "cancelPending");
382
- const result = await deps.cancel(run);
383
- deps.flush?.(runId);
384
- const settled = store.run(runId);
385
- if (settled && ["completed", "failed", "cancelled"].includes(settled.phase)) {
386
- return json(res, 200, { ok: true, runId, ...result, phase: settled.phase });
387
- }
388
- if (result.drained === false)
389
- return json(res, 202, { ok: true, runId, phase: "cancelPending", ...result });
390
- const event = store.appendRunEvent(runId, "run.cancelled", canonicalPayload([{ kind: "run", phase: "cancelled", data: { reason: "user", aborted: result.aborted } }]));
391
- return json(res, 200, {
392
- ok: true,
393
- runId,
394
- phase: "cancelled",
395
- eventId: event.eventId,
396
- ...result,
397
- });
398
- }
399
- return { handleRuntimeV3Events, handleRuntimeV3Acknowledge, handleRuntimeV3Sync, handleRuntimeV3SessionSnapshot, handleRuntimeV3Cancel };
400
- }
@@ -1,8 +0,0 @@
1
- import type { IncomingMessage, ServerResponse } from "node:http";
2
- import type { createServerNameStore } from "../server-name/server-name-store.js";
3
- export declare function createServerNameHandler(deps: {
4
- authenticate(req: IncomingMessage): boolean;
5
- store: Pick<ReturnType<typeof createServerNameStore>, "readServerName" | "validateServerName" | "writeServerName">;
6
- }): {
7
- handleServerName: (req: IncomingMessage, res: ServerResponse) => Promise<boolean>;
8
- };
@@ -1,43 +0,0 @@
1
- import { readJsonBody } from "./body.js";
2
- export function createServerNameHandler(deps) {
3
- const { readServerName, validateServerName, writeServerName } = deps.store;
4
- function json(res, status, body) {
5
- res.statusCode = status;
6
- res.setHeader("Content-Type", "application/json");
7
- res.end(JSON.stringify(body));
8
- return true;
9
- }
10
- function statePayload(state) {
11
- return { name: state.name, updatedAt: state.updatedAt };
12
- }
13
- /**
14
- * `GET/PUT /friday-next/server-name` — this gateway's user-facing display name,
15
- * stored gateway-side so every paired device sees the same name and a
16
- * delete+reinstall restores it. PUT with an empty string clears the name.
17
- */
18
- async function handleServerName(req, res) {
19
- if (req.method !== "GET" && req.method !== "PUT") {
20
- return json(res, 405, { error: "Method Not Allowed" });
21
- }
22
- if (!deps.authenticate(req)) {
23
- return json(res, 401, { error: "Unauthorized: bearer token mismatch" });
24
- }
25
- if (req.method === "GET") {
26
- return json(res, 200, { ok: true, ...statePayload(readServerName()) });
27
- }
28
- // PUT
29
- const body = await readJsonBody(req);
30
- if (!body || !("name" in body)) {
31
- return json(res, 400, { error: "Missing required field: name" });
32
- }
33
- const validated = validateServerName(body.name);
34
- if (!validated.ok) {
35
- return json(res, 400, { error: validated.error });
36
- }
37
- return json(res, 200, {
38
- ok: true,
39
- ...statePayload(writeServerName(validated.name)),
40
- });
41
- }
42
- return { handleServerName };
43
- }
@@ -1,5 +0,0 @@
1
- import type { IncomingMessage, ServerResponse } from "node:http";
2
- import { type BackendAdapter } from "../contract/types.js";
3
- import type { DurableRunStore } from "../runtime/durable-run-store.js";
4
- export declare function createVersionedSessionSettingsHandler(store: DurableRunStore, adapter: BackendAdapter): (req: IncomingMessage, res: ServerResponse, identity: string, lookupId?: string) => Promise<boolean>;
5
- export declare function createVersionedAgentDefaultsHandler(store: DurableRunStore, adapter: BackendAdapter): (req: IncomingMessage, res: ServerResponse, identity: string, lookupId?: string) => Promise<boolean>;
@@ -1,121 +0,0 @@
1
- import { VERSIONED_SESSION_SETTINGS, VERSIONED_AGENT_DEFAULTS } from "../contract/types.js";
2
- import { readJsonBody } from "./body.js";
3
- const object = (value) => !!value && typeof value === "object" && !Array.isArray(value);
4
- function validSnapshot(value, identity, scopeKey) {
5
- return object(value) && value[scopeKey] === identity && typeof value.version === "string" && !!value.version.trim() && object(value.values);
6
- }
7
- function validMutation(value, scopeKey) {
8
- const fields = new Set(scopeKey === "agentId" ? ["modelRef", "thinkingLevel"] : ["modelRef", "thinkingLevel", "permissionMode", "cwd"]);
9
- return object(value) && ["commandId", "expectedVersion", "expectedServerInstanceId"].every(k => typeof value[k] === "string" && !!value[k].trim())
10
- && Object.keys(value).every(k => ["commandId", "expectedVersion", "expectedServerInstanceId", "values", ...(scopeKey === "sessionKey" ? ["sessionKey"] : [])].includes(k))
11
- && object(value.values) && Object.keys(value.values).length > 0
12
- && (scopeKey !== "agentId" || typeof value.values.modelRef === "string" && !!value.values.modelRef.trim()
13
- && (!Object.hasOwn(value.values, "thinkingLevel") || typeof value.values.thinkingLevel === "string" && !!value.values.thinkingLevel.trim()))
14
- && Object.entries(value.values).every(([key, v]) => fields.has(key) && (v === null || typeof v === "string"));
15
- }
16
- // 两种作用域共用原命令账本、并发串行化和未知结果对账。
17
- function createVersionedSettingsHandler(store, adapter, defaults) {
18
- const KIND = defaults ? "agent-defaults" : "session-settings";
19
- const scopeKey = defaults ? "agentId" : "sessionKey";
20
- const capability = defaults ? VERSIONED_AGENT_DEFAULTS : VERSIONED_SESSION_SETTINGS;
21
- const read = defaults ? adapter.readAgentDefaults?.bind(adapter) : adapter.readSessionSettings?.bind(adapter);
22
- const mutate = defaults ? adapter.mutateAgentDefaults?.bind(adapter) : adapter.mutateSessionSettings?.bind(adapter);
23
- const inspect = defaults ? adapter.inspectAgentDefaultsMutation?.bind(adapter) : adapter.inspectSessionSettingsMutation?.bind(adapter);
24
- const submissions = new Map();
25
- async function handle(req, res, identity, lookupId) {
26
- let activeCommandId = lookupId;
27
- const reply = (status, body) => {
28
- res.statusCode = status;
29
- res.setHeader("content-type", "application/json");
30
- res.end(JSON.stringify(body));
31
- return true;
32
- };
33
- if (!adapter.descriptor.capabilities.includes(capability) || !read || !mutate)
34
- return reply(404, { code: "UNSUPPORTED_CAPABILITY" });
35
- const envelope = (commandId, result) => ({ ...result, commandId, [scopeKey]: identity, serverInstanceId: store.serverInstanceId });
36
- const sendResult = (response) => reply(response.status === "applied" ? 200 : response.status === "conflict" ? 409 : 503, response);
37
- const checked = (result) => {
38
- if (!["applied", "conflict", "unknown"].includes(result?.status)
39
- || (result.status === "applied" && !validSnapshot(result.snapshot, identity, scopeKey))
40
- || (result.snapshot !== undefined && !validSnapshot(result.snapshot, identity, scopeKey)))
41
- throw new Error("invalid_settings_result");
42
- return result;
43
- };
44
- const reconcile = async (commandId, payload) => {
45
- const result = checked(await inspect?.(identity, commandId) ?? { status: "unknown" });
46
- const response = envelope(commandId, result);
47
- if (result.status !== "unknown")
48
- store.completeCommandReceipt(KIND, commandId, payload, response);
49
- return sendResult(response);
50
- };
51
- try {
52
- if (lookupId) {
53
- if (req.method !== "GET")
54
- return reply(405, { code: "METHOD_NOT_ALLOWED" });
55
- const existing = store.commandReceipt(KIND, lookupId);
56
- if (!existing || existing.context?.[scopeKey] !== identity)
57
- return reply(404, { code: "SETTINGS_COMMAND_NOT_FOUND" });
58
- if (existing.state === "succeeded")
59
- return sendResult({ ...existing.response, replayed: true });
60
- return await reconcile(lookupId, existing.context.request);
61
- }
62
- if (req.method === "GET") {
63
- const snapshot = await read(identity);
64
- if (!validSnapshot(snapshot, identity, scopeKey))
65
- throw new Error("invalid_settings_snapshot");
66
- return reply(200, { snapshot, serverInstanceId: store.serverInstanceId });
67
- }
68
- if (req.method !== "PUT")
69
- return reply(405, { code: "METHOD_NOT_ALLOWED" });
70
- const body = await readJsonBody(req);
71
- if (!validMutation(body, scopeKey))
72
- return reply(400, { code: "INVALID_SETTINGS_MUTATION" });
73
- activeCommandId = body.commandId;
74
- if (body.expectedServerInstanceId !== store.serverInstanceId)
75
- return reply(409, { code: "SERVICE_IDENTITY_CHANGED", serverInstanceId: store.serverInstanceId });
76
- const change = { commandId: body.commandId, expectedVersion: body.expectedVersion,
77
- expectedServerInstanceId: body.expectedServerInstanceId, values: body.values };
78
- const payload = { ...change, [scopeKey]: identity };
79
- const previous = submissions.get(body.commandId) ?? Promise.resolve();
80
- let release;
81
- const held = new Promise(resolve => { release = resolve; });
82
- submissions.set(body.commandId, held);
83
- await previous.catch(() => { });
84
- try {
85
- const status = store.commandReceiptStatus(KIND, body.commandId, payload);
86
- if (status === "conflict")
87
- return reply(409, { code: "COMMAND_CONFLICT" });
88
- if (status === "replayed")
89
- return sendResult({ ...store.commandReceipt(KIND, body.commandId).response, replayed: true });
90
- if (status === "prepared")
91
- return await reconcile(body.commandId, payload);
92
- store.prepareCommandReceipt(KIND, body.commandId, payload, { [scopeKey]: identity, request: payload });
93
- try {
94
- const result = checked(await mutate(identity, change));
95
- const response = envelope(body.commandId, result);
96
- if (result.status !== "unknown")
97
- store.completeCommandReceipt(KIND, body.commandId, payload, response);
98
- return sendResult(response);
99
- }
100
- catch {
101
- return sendResult(envelope(body.commandId, { status: "unknown", code: "SETTINGS_UNAVAILABLE" }));
102
- }
103
- }
104
- finally {
105
- release();
106
- if (submissions.get(body.commandId) === held)
107
- submissions.delete(body.commandId);
108
- }
109
- }
110
- catch {
111
- return reply(503, { status: "unknown", code: "SETTINGS_UNAVAILABLE", ...(activeCommandId ? { commandId: activeCommandId } : {}), [scopeKey]: identity, serverInstanceId: store.serverInstanceId });
112
- }
113
- }
114
- return handle;
115
- }
116
- export function createVersionedSessionSettingsHandler(store, adapter) {
117
- return createVersionedSettingsHandler(store, adapter, false);
118
- }
119
- export function createVersionedAgentDefaultsHandler(store, adapter) {
120
- return createVersionedSettingsHandler(store, adapter, true);
121
- }
@@ -1,20 +0,0 @@
1
- import type { IncomingMessage, ServerResponse } from "node:http";
2
- import { type BackendAdapter } from "../contract/types.js";
3
- import type { DurableRunStore } from "../runtime/durable-run-store.js";
4
- type SessionAdapter = Pick<BackendAdapter, "historyMessage" | "setSessionTitle" | "setSessionPinned">;
5
- export declare function bindSessionToDevice(store: DurableRunStore, adapter: Pick<BackendAdapter, "bindSession">, sessionKey: string, deviceId: string): Promise<{
6
- replayed: number;
7
- }>;
8
- export declare function createSessionHandlers(deps: {
9
- authenticate(req: IncomingMessage): boolean;
10
- adapter: SessionAdapter;
11
- bind?(sessionKey: string, deviceId: string): Promise<{
12
- replayed: number;
13
- }>;
14
- }): {
15
- handleHistoryDetail(req: IncomingMessage, res: ServerResponse): Promise<boolean>;
16
- handleSessionTitle(req: IncomingMessage, res: ServerResponse): Promise<boolean>;
17
- handleSessionPin(req: IncomingMessage, res: ServerResponse): Promise<boolean>;
18
- handleSessionBind(req: IncomingMessage, res: ServerResponse): Promise<boolean>;
19
- };
20
- export {};