@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,165 +0,0 @@
1
- """诊断只归一化安全原因码;原始请求、错误正文和凭据永不进入输出。"""
2
-
3
- from enum import Enum
4
- import math
5
- import time
6
-
7
-
8
- def classify_failure(stage, reason=None, status=None):
9
- if isinstance(reason, Enum):
10
- reason = reason.value
11
- normalized = reason.lower() if isinstance(reason, str) else ""
12
- status = status if type(status) is int and 100 <= status <= 599 else None
13
- if stage == "gateway" and status in (401, 403):
14
- return {
15
- "stage": "gateway",
16
- "state": "credentialRequired",
17
- "code": "GATEWAY_CREDENTIAL_REQUIRED",
18
- "nextAction": "reconfigure-gateway",
19
- }
20
- if stage == "version":
21
- return {
22
- "stage": "version",
23
- "state": "unsupported",
24
- "code": "BACKEND_VERSION_UNSUPPORTED",
25
- "nextAction": "update-backend",
26
- }
27
- if stage == "transport" or normalized in (
28
- "offline",
29
- "connection_error",
30
- "connection_failed",
31
- "connection_refused",
32
- ):
33
- return {
34
- "stage": "transport",
35
- "state": "offline",
36
- "code": "BACKEND_OFFLINE",
37
- "nextAction": "check-connection",
38
- }
39
- if normalized in (
40
- "billing",
41
- "quota",
42
- "insufficient_quota",
43
- "quota_exceeded",
44
- "usage_limit",
45
- "billing_error",
46
- ):
47
- return {
48
- "stage": "upstream",
49
- "state": "quotaExhausted",
50
- "code": "UPSTREAM_QUOTA_EXHAUSTED",
51
- "nextAction": "check-provider-quota",
52
- }
53
- if status in (401, 403) or normalized in (
54
- "auth",
55
- "authentication",
56
- "authentication_error",
57
- "invalid_api_key",
58
- "unauthorized",
59
- ):
60
- return {
61
- "stage": "upstream",
62
- "state": "authenticationRequired",
63
- "code": "UPSTREAM_AUTHENTICATION_REQUIRED",
64
- "nextAction": "provider-login",
65
- }
66
- if status == 429 or normalized in (
67
- "rate_limit",
68
- "ratelimit",
69
- "rate_limit_exceeded",
70
- ):
71
- return {
72
- "stage": "upstream",
73
- "state": "rateLimited",
74
- "code": "UPSTREAM_RATE_LIMITED",
75
- "nextAction": "retry-later",
76
- }
77
- if normalized == "timeout":
78
- return {
79
- "stage": "upstream",
80
- "state": "temporarilyUnavailable",
81
- "code": "UPSTREAM_TIMEOUT",
82
- "nextAction": "check-provider",
83
- }
84
- if normalized in ("model_not_found", "model_resolution_failed"):
85
- return {
86
- "stage": "model",
87
- "state": "configurationRequired",
88
- "code": "MODEL_UNAVAILABLE",
89
- "nextAction": "select-model",
90
- }
91
- return {
92
- "stage": "upstream",
93
- "state": "temporarilyUnavailable",
94
- "code": "UPSTREAM_UNAVAILABLE",
95
- "nextAction": "check-provider",
96
- }
97
-
98
-
99
- def api_failure(event):
100
- error = event.get("error") if isinstance(event.get("error"), dict) else {}
101
- reason = event.get("reason") or error.get("code") or error.get("type")
102
- result = classify_failure("upstream", reason, event.get("status_code"))
103
- status = event.get("status_code")
104
- if type(status) is int and 100 <= status <= 599:
105
- result["httpStatus"] = status
106
- return result
107
-
108
-
109
- # 仅进程内一个有界的历史拒绝见证;不持久化原source/session/请求值。
110
- def diagnostic_context(adapter):
111
- return (adapter.runtime, getattr(adapter, "host", None), adapter.bindings,
112
- str(adapter.profile), adapter.service_id)
113
-
114
-
115
- def same_context(adapter, captured):
116
- current = diagnostic_context(adapter)
117
- return (all(current[i] is captured[i] for i in range(3)) and current[3:] == captured[3:]
118
- and getattr(adapter, "plugin_enabled", True) is True)
119
-
120
-
121
- def authority_witness(client):
122
- identity = getattr(client, "identity", None)
123
- if (not isinstance(identity, dict) or not isinstance(identity.get("instance_id"), str)
124
- or not identity["instance_id"] or type(identity.get("authority_epoch")) is not int
125
- or identity["authority_epoch"] < 1 or type(getattr(client, "connection_id", None)) is not int):
126
- return None
127
- return identity["instance_id"], identity["authority_epoch"], client.connection_id
128
-
129
-
130
- def observe_ingress_rejection(runtime, captured, witness, error):
131
- if (getattr(error, "code", None) != "HOST_SOURCE_UNAUTHORIZED"
132
- or getattr(error, "stage", None) != "ingress-auth" or witness is None):
133
- return
134
- adapter = runtime.adapter
135
- if (captured[0] is not runtime or not isinstance(captured[4], str) or not captured[4]
136
- or not same_context(adapter, captured) or authority_witness(runtime.client) != witness):
137
- return
138
- adapter.last_ingress_failure = {
139
- "context": captured, "witness": witness,
140
- "failure": {"stage": "host", "state": "permissionDenied", "code": "HOST_SOURCE_UNAUTHORIZED",
141
- "origin": "host-ingress", "authorityEpoch": witness[1], "observedAt": time.time() * 1000},
142
- }
143
-
144
-
145
- def _observed_at(value):
146
- observed = value.get("observedAt")
147
- return observed if type(observed) in (int, float) and math.isfinite(observed) and 0 <= observed < 9e15 else None
148
-
149
-
150
- def historical_failure(adapter, captured, identity):
151
- # 此函数无await。调用方已在connect后核原context,不能把历史失败称当前全局授权状态。
152
- candidates = []
153
- api = getattr(adapter, "last_api_failure", {})
154
- if (api.get("instanceId") == identity.get("instance_id") and _observed_at(api) is not None):
155
- safe = {key: value for key, value in api.items()
156
- if key in ("stage", "state", "code", "nextAction", "httpStatus", "observedAt")}
157
- candidates.append(safe)
158
- ingress = getattr(adapter, "last_ingress_failure", {})
159
- witness = ingress.get("witness")
160
- if (ingress.get("context") is not None and same_context(adapter, ingress["context"])
161
- and captured[0] is adapter.runtime and witness == authority_witness(adapter.runtime.client)
162
- and witness is not None and witness[:2] == (identity.get("instance_id"), identity.get("authority_epoch"))
163
- and _observed_at(ingress.get("failure", {})) is not None):
164
- candidates.append(dict(ingress["failure"]))
165
- return max(candidates, key=lambda value: value["observedAt"]) if candidates else None
@@ -1,421 +0,0 @@
1
- """公开REST分页及消息归一化;元数据计数只使用SDK公开只读SessionDB。"""
2
-
3
- import asyncio
4
- import base64
5
- import json
6
- import math
7
- from pathlib import Path
8
- from hermes_state import SessionDB
9
- from gateway.platforms.base import BasePlatformAdapter
10
- from .canonical_control import NativeControlError
11
- from . import inline_media
12
-
13
-
14
- def message_identity(row):
15
- value = row.get("message_uid")
16
- if isinstance(value, str) and value:
17
- return value
18
- value = row.get("id", row.get("row_id"))
19
- if type(value) is int and value > 0:
20
- return str(value)
21
- raise NativeControlError("HISTORY_IDENTITY_MISSING")
22
-
23
-
24
- def content_parts(value):
25
- if isinstance(value, str):
26
- return value, []
27
- if value is None:
28
- return "", []
29
- if not isinstance(value, list):
30
- return json.dumps(value, ensure_ascii=False), []
31
- text = []
32
- images = []
33
- for part in value:
34
- if not isinstance(part, dict):
35
- continue
36
- if part.get("type") in ("text", "input_text") and isinstance(
37
- part.get("text"), str
38
- ):
39
- text.append(part["text"])
40
- elif part.get("type") in ("image_url", "input_image"):
41
- image = part.get("image_url", {})
42
- url = image.get("url") if isinstance(image, dict) else image
43
- if (
44
- isinstance(url, str)
45
- and url.startswith("data:image/")
46
- and ";base64," in url
47
- ):
48
- header, data = url.split(";base64,", 1)
49
- try:
50
- base64.b64decode(data, validate=True)
51
- except ValueError:
52
- continue
53
- images.append({"mimeType": header[5:], "data": data})
54
- elif isinstance(url, str) and url.startswith("https://"):
55
- images.append({"url": url})
56
- return "\n".join(text), images
57
-
58
-
59
- def terminal_error(name, value):
60
- # Hermes terminal公开结果中exit_code是权威失败信号,不扫描正文里的error字样。
61
- if name != "terminal":
62
- return None
63
- if isinstance(value, str):
64
- try:
65
- value = json.loads(value)
66
- except ValueError:
67
- return None
68
- code = value.get("exit_code") if isinstance(value, dict) else None
69
- return code != 0 if type(code) is int else None
70
-
71
-
72
- # Hermes 0.22.5的失败轮次边界行:display-only,不是模型回答;原始错误/正文另走final_response。
73
- FAILED_TURN_NOTICES = frozenset({
74
- "Your request was not processed. Send it again if you still want me to carry it out.",
75
- "This turn did not complete. Some actions may already have run; verify their effects "
76
- "before resending.",
77
- "An automated delivery was interrupted and was not run again. Some actions may already "
78
- "have run; verify their effects.",
79
- })
80
-
81
- def normalize_message(row, seq, *, link=None, turn="unbound", tool_error=None):
82
- identity = message_identity(row)
83
- role = row.get("role")
84
- known_role = role in ("user", "assistant", "tool", "toolResult", "system")
85
- hidden = not known_role or row.get("display_kind") == "hidden"
86
- content = row.get("display_content", row.get("content", row.get("text")))
87
- text, images = content_parts(content)
88
- # 宿主失败边界行不得成为助手正文;保留原文和失败事实供历史静默恢复。
89
- failed_turn = role == "assistant" and (
90
- row.get("display_kind") == "failed_turn"
91
- or (isinstance(text, str) and text.strip() in FAILED_TURN_NOTICES)
92
- )
93
- result = {
94
- "id": identity,
95
- "seq": seq,
96
- "role": "toolResult" if role == "tool" else role if known_role else "system",
97
- "format": "canonical-v1",
98
- }
99
- if hidden:
100
- result["display"] = False
101
- else:
102
- result["text"] = text
103
- if failed_turn:
104
- result["kind"] = "failed_turn"
105
- # content仅为旧通用快照消费者兼容;不传播api_content或宿主原对象。
106
- result["content"] = text if not hidden else ""
107
- timestamp = row.get("timestamp")
108
- if isinstance(timestamp, (int, float)) and math.isfinite(timestamp):
109
- result["ts"] = timestamp * 1000 if abs(timestamp) < 1e11 else timestamp
110
- if images:
111
- result["images"] = images
112
- reasoning = row.get("reasoning") or row.get("reasoning_content")
113
- if isinstance(reasoning, str) and reasoning and not hidden:
114
- result["thinking"] = reasoning
115
- calls = []
116
- for call in row.get("tool_calls") or []:
117
- if not isinstance(call, dict):
118
- continue
119
- function = call.get("function", {})
120
- args = function.get("arguments", {})
121
- if isinstance(args, str):
122
- try:
123
- args = json.loads(args)
124
- except ValueError:
125
- pass
126
- calls.append(
127
- {
128
- "id": "tool:" + turn + ":" + str(call.get("id", identity)),
129
- "name": function.get("name", "tool"),
130
- "arguments": args,
131
- }
132
- )
133
- if calls:
134
- result["toolCalls"] = calls
135
- if role in ("tool", "toolResult"):
136
- upstream = row.get("content", content)
137
- if isinstance(upstream, str):
138
- try:
139
- upstream = json.loads(upstream)
140
- except ValueError:
141
- pass
142
- # 工具原生部分结果即使已取尽持久行也不完整;不能当作通道preview补回后清除。
143
- if isinstance(upstream, dict) and upstream.get("truncated") is True:
144
- result["truncated"] = True
145
- if tool_error is None:
146
- tool_error = terminal_error(
147
- row.get("tool_name", row.get("name")), row.get("content")
148
- )
149
- result["toolResult"] = {
150
- "toolCallId": "tool:" + turn + ":" + str(row.get("tool_call_id", identity)),
151
- "toolName": row.get("tool_name", row.get("name", "tool")),
152
- "text": text,
153
- }
154
- if type(tool_error) is bool:
155
- result["toolResult"]["isError"] = tool_error
156
- if link:
157
- result["runId"] = link["run_id"]
158
- if link.get("client_request_id"):
159
- result["clientRequestId"] = link["client_request_id"]
160
- return result
161
-
162
-
163
- def page_preview(row, budget):
164
- """只截展示明细,稳定身份不截;同ID读取全部持久值仍保留原生截断事实。"""
165
- changed = False
166
-
167
- def trim(value):
168
- nonlocal changed
169
- if not isinstance(value, str):
170
- return value
171
- encoded = value.encode()
172
- if len(encoded) <= budget:
173
- return value
174
- changed = True
175
- return encoded[:budget].decode("utf-8", errors="ignore")
176
-
177
- for key in ("text", "content", "thinking"):
178
- if key in row:
179
- row[key] = trim(row[key])
180
- if row.get("toolResult"):
181
- row["toolResult"]["text"] = trim(row["toolResult"].get("text"))
182
- for call in row.get("toolCalls", []):
183
- args = call.get("arguments")
184
- encoded = json.dumps(args, ensure_ascii=False)
185
- if len(encoded.encode()) > budget:
186
- call["arguments"] = trim(encoded)
187
- call["argumentsTruncated"] = True
188
- if changed:
189
- row["truncated"] = True
190
- return row
191
-
192
-
193
- class HistoryReader:
194
- def __init__(self, runtime, profile, bindings):
195
- self.runtime = runtime
196
- self.profile = Path(profile)
197
- self.bindings = bindings
198
-
199
- def metadata(self, conversation_id):
200
- db = SessionDB(db_path=self.profile / "state.db", read_only=True)
201
- try:
202
- tip = db.resolve_resume_session_id(conversation_id)
203
- row = db.get_session(tip)
204
- if row is None:
205
- raise NativeControlError("not_found")
206
- return {
207
- "tip": tip,
208
- "revision": db.conversation_revision(tip, include_ancestors=True),
209
- "upper": db.get_resume_message_count(tip),
210
- }
211
- finally:
212
- db.close()
213
-
214
- async def _relationships(self, key, conversation_id):
215
- by_input = {}
216
- by_answer = {}
217
- by_row = {}
218
- by_uid = {}
219
- by_user_row = {}
220
- tool_evidence = {}
221
- for record in self.bindings.all():
222
- if (
223
- record.get("session_key") != key
224
- or record.get("native_id") != conversation_id
225
- ):
226
- continue
227
- by_input[record["input_id"]] = record
228
- if record.get("answer_uid"):
229
- by_answer[record["answer_uid"]] = record
230
- for row_id in record.get("user_rows", []):
231
- if type(row_id) is not int or row_id < 1:
232
- continue
233
- previous = by_user_row.get(row_id)
234
- by_user_row[row_id] = (False if previous is False or previous and previous["run_id"] != record["run_id"] else record)
235
- for row_id in record.get("history_rows", []):
236
- by_row[str(row_id)] = record
237
- for uid in record.get("history_uids", []):
238
- by_uid[uid] = record
239
- for uid, proof in record.get("tool_evidence", {}).items():
240
- by_uid[uid] = record
241
- tool_evidence[uid] = proof
242
- return by_input, by_answer, by_row, by_uid, tool_evidence, by_user_row
243
-
244
- async def page(self, key, conversation_id, limit, offset, *, full_message=None):
245
- if (
246
- type(limit) is not int
247
- or not 1 <= limit <= 1000
248
- or type(offset) is not int
249
- or offset < 0
250
- ):
251
- raise NativeControlError("HISTORY_QUERY_INVALID")
252
- detail = await self.runtime.client.read_api("detail", conversation_id)
253
- if detail.get("id") != conversation_id:
254
- raise NativeControlError("HISTORY_SESSION_CHANGED")
255
- before = await asyncio.to_thread(self.metadata, conversation_id)
256
- index = []
257
- seen = set()
258
- native_offset = 0
259
- batch = 200
260
- turn = "unbound"
261
- while native_offset < before["upper"]:
262
- try:
263
- page = await self.runtime.client.read_api(
264
- "messages",
265
- conversation_id,
266
- {
267
- "limit": batch,
268
- "offset": native_offset,
269
- "order": "oldest",
270
- "include_compacted": "true",
271
- "inline_images": "false",
272
- },
273
- )
274
- except NativeControlError as error:
275
- if error.code == "CONTROL_HTTP_PAYLOAD_LIMIT" and batch > 1:
276
- batch = max(1, batch // 2)
277
- continue
278
- raise
279
- if page.get("session_id") != before["tip"]:
280
- raise NativeControlError("HISTORY_SESSION_CHANGED")
281
- for row in page["messages"]:
282
- identity = message_identity(row)
283
- if identity in seen:
284
- continue
285
- seen.add(identity)
286
- if row.get("role") == "user":
287
- turn = identity
288
- index.append(
289
- {
290
- "id": identity,
291
- "offset": native_offset,
292
- "batch": batch,
293
- "seq": len(index) + 1,
294
- "turn": turn,
295
- }
296
- )
297
- native_offset += batch
298
- total = len(index)
299
- end = max(0, total - offset)
300
- start = max(0, end - limit)
301
- selected = index[start:end]
302
- by_input, by_answer, by_row, by_uid, tool_evidence, by_user_row = await self._relationships(
303
- key, conversation_id
304
- )
305
- pages = {}
306
- messages = []
307
- for entry in selected:
308
- chunk = (entry["offset"], entry["batch"])
309
- if chunk not in pages:
310
- response = await self.runtime.client.read_api(
311
- "messages",
312
- conversation_id,
313
- {
314
- "limit": entry["batch"],
315
- "offset": entry["offset"],
316
- "order": "oldest",
317
- "include_compacted": "true",
318
- "inline_images": "true",
319
- },
320
- )
321
- if response.get("session_id") != before["tip"]:
322
- raise NativeControlError("HISTORY_SESSION_CHANGED")
323
- pages[chunk] = {
324
- message_identity(row): row for row in response["messages"]
325
- }
326
- row = pages[chunk].get(entry["id"])
327
- if row is None:
328
- raise NativeControlError("HISTORY_CHANGED")
329
- link = (
330
- by_input.get(row.get("platform_message_id", row.get("message_id")))
331
- if row.get("role") == "user"
332
- else (
333
- by_answer.get(entry["id"])
334
- if row.get("role") == "assistant"
335
- else None
336
- )
337
- )
338
- if row.get("role") == "user":
339
- row_ids = {row[field] for field in ("id", "row_id", "_row_id") if type(row.get(field)) is int and row[field] > 0}
340
- if len(row_ids) > 1 and any(value in by_user_row for value in row_ids):
341
- raise NativeControlError("HISTORY_INPUT_AMBIGUOUS")
342
- proof = by_user_row.get(next(iter(row_ids), None))
343
- if proof is False or link and proof and link["run_id"] != proof["run_id"]:
344
- raise NativeControlError("HISTORY_INPUT_AMBIGUOUS")
345
- link = link or proof
346
- owner = (
347
- link
348
- or by_row.get(str(row.get("id", row.get("row_id"))))
349
- or by_uid.get(entry["id"])
350
- )
351
- tool_error = (
352
- tool_evidence.get(entry["id"], {}).get("is_error")
353
- if row.get("role") == "tool"
354
- else None
355
- )
356
- messages.append(
357
- normalize_message(
358
- row,
359
- entry["seq"],
360
- link=link,
361
- turn=owner["run_id"] if owner else entry["turn"],
362
- tool_error=tool_error,
363
- )
364
- )
365
- proof_reader = getattr(self.runtime, "input_media_history", None)
366
- if (link and row.get("role") == "user" and link.get("input_media") and proof_reader):
367
- proof = await proof_reader(link)
368
- if (proof and messages[-1].get("text") == proof["rendered"]
369
- and messages[-1].get("content") == proof["rendered"]):
370
- # 此字段仅跨本机RPC给Kit冻结字节再次核对,不能直接成为公共DTO。
371
- messages[-1]["_inputMedia"] = {**proof, "messageId": entry["id"],
372
- "runId": link["run_id"], "clientRequestId": link.get("client_request_id")}
373
- if (link and row.get("role") == "assistant" and entry["id"] == link.get("answer_uid")
374
- and link.get("delivered_answer") and isinstance(link.get("answer"), str)
375
- and isinstance(link.get("answer_source_text"), str)
376
- and messages[-1].get("text") == link["answer_source_text"]
377
- and messages[-1].get("content") == link["answer_source_text"]):
378
- messages[-1]["_outputMedia"] = {"version": 1, "messageId": entry["id"],
379
- "runId": link["run_id"], "clientRequestId": link.get("client_request_id"),
380
- "sourceText": link["answer_source_text"], "text": link["answer"],
381
- "presentationData": inline_media.record_presentation(link, link["answer"],
382
- link["answer_source_text"], BasePlatformAdapter.extract_images)}
383
- if entry["id"] != full_message:
384
- page_preview(messages[-1], min(16384, max(1024, 524288 // limit)))
385
- after = await asyncio.to_thread(self.metadata, conversation_id)
386
- if before != after:
387
- raise NativeControlError("HISTORY_CHANGED")
388
- if len(json.dumps(messages, ensure_ascii=False).encode()) > 3 * 1024 * 1024:
389
- raise NativeControlError("HISTORY_PAYLOAD_LIMIT")
390
- pagination = {
391
- "limit": limit,
392
- "offset": offset,
393
- "returned": len(messages),
394
- "totalRecords": total,
395
- "hasMore": start > 0,
396
- }
397
- if start > 0:
398
- pagination["nextOffset"] = offset + len(messages)
399
- return {
400
- "sessionKey": key,
401
- "agentId": "hermes",
402
- "sessionId": conversation_id,
403
- "title": detail.get("title"),
404
- "messages": messages,
405
- "totalMessages": total,
406
- "pagination": pagination,
407
- }
408
-
409
- async def message(self, key, conversation_id, message_id):
410
- # 详情按稳定ID寻找,不按正文或时间猜;每次只保留一页。
411
- offset = 0
412
- while True:
413
- page = await self.page(
414
- key, conversation_id, 200, offset, full_message=message_id
415
- )
416
- for row in page["messages"]:
417
- if row["id"] == message_id:
418
- return row
419
- if not page["pagination"]["hasMore"]:
420
- return None
421
- offset = page["pagination"]["nextOffset"]