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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (877) hide show
  1. package/README.md +2 -2
  2. package/install-config.js +22 -5
  3. package/install-host.py +95 -0
  4. package/install-runtime.js +158 -38
  5. package/install.js +19 -4
  6. package/package.json +5 -5
  7. package/plugin.bundle +0 -0
  8. package/validation.json +1 -0
  9. package/plugin/README.md +0 -21
  10. package/plugin/__init__.py +0 -3
  11. package/plugin/fridaynext_plugin/__init__.py +0 -81
  12. package/plugin/fridaynext_plugin/adapter.py +0 -1333
  13. package/plugin/fridaynext_plugin/agent_defaults.py +0 -107
  14. package/plugin/fridaynext_plugin/agent_management.py +0 -158
  15. package/plugin/fridaynext_plugin/canonical_control.py +0 -517
  16. package/plugin/fridaynext_plugin/compat_v0225.py +0 -2080
  17. package/plugin/fridaynext_plugin/continuations.py +0 -271
  18. package/plugin/fridaynext_plugin/control_cli.py +0 -101
  19. package/plugin/fridaynext_plugin/controls.py +0 -296
  20. package/plugin/fridaynext_plugin/delivery_context.py +0 -210
  21. package/plugin/fridaynext_plugin/device-tools-v1.json +0 -302
  22. package/plugin/fridaynext_plugin/device_tools.py +0 -144
  23. package/plugin/fridaynext_plugin/diagnostics.py +0 -165
  24. package/plugin/fridaynext_plugin/history.py +0 -443
  25. package/plugin/fridaynext_plugin/host.py +0 -320
  26. package/plugin/fridaynext_plugin/initial_settings.py +0 -184
  27. package/plugin/fridaynext_plugin/inline_media.py +0 -58
  28. package/plugin/fridaynext_plugin/media_input.py +0 -186
  29. package/plugin/fridaynext_plugin/media_observations.py +0 -172
  30. package/plugin/fridaynext_plugin/media_output.py +0 -277
  31. package/plugin/fridaynext_plugin/message_speech.py +0 -143
  32. package/plugin/fridaynext_plugin/multi_agent.py +0 -221
  33. package/plugin/fridaynext_plugin/recovery.py +0 -214
  34. package/plugin/fridaynext_plugin/reply_context.py +0 -39
  35. package/plugin/fridaynext_plugin/runtime_port.py +0 -593
  36. package/plugin/fridaynext_plugin/scheduled_tasks.py +0 -229
  37. package/plugin/fridaynext_plugin/sessions.py +0 -184
  38. package/plugin/fridaynext_plugin/settings.py +0 -699
  39. package/plugin/fridaynext_plugin/settings_control.py +0 -101
  40. package/plugin/fridaynext_plugin/slash_commands.py +0 -163
  41. package/plugin/fridaynext_plugin/state.py +0 -155
  42. package/plugin/fridaynext_plugin/stream_bridge.py +0 -550
  43. package/plugin/fridaynext_plugin/stream_media.py +0 -59
  44. package/plugin/fridaynext_plugin/stream_projection.py +0 -293
  45. package/plugin/fridaynext_plugin/subagents.py +0 -228
  46. package/plugin/plugin.yaml +0 -29
  47. package/plugin/runtime/dist/commands-routes.js +0 -94
  48. package/plugin/runtime/dist/device-tools-v1.json +0 -302
  49. package/plugin/runtime/dist/host-peer.js +0 -106
  50. package/plugin/runtime/dist/hosted-artifacts.js +0 -189
  51. package/plugin/runtime/dist/hosted-backend.js +0 -436
  52. package/plugin/runtime/dist/hosted-continuations.js +0 -41
  53. package/plugin/runtime/dist/hosted-delivery-observations.js +0 -91
  54. package/plugin/runtime/dist/hosted-device-tools.js +0 -82
  55. package/plugin/runtime/dist/hosted-media.js +0 -368
  56. package/plugin/runtime/dist/hosted-recovery.js +0 -55
  57. package/plugin/runtime/dist/hosted-settings.js +0 -26
  58. package/plugin/runtime/dist/hosted-stream.js +0 -214
  59. package/plugin/runtime/dist/hosted-subagents.js +0 -78
  60. package/plugin/runtime/dist/identity.js +0 -55
  61. package/plugin/runtime/dist/kit-contract.json +0 -1
  62. package/plugin/runtime/dist/media-transport.js +0 -168
  63. package/plugin/runtime/dist/oss-upload-worker.js +0 -7
  64. package/plugin/runtime/dist/oss-upload.js +0 -94
  65. package/plugin/runtime/dist/ownership.js +0 -21
  66. package/plugin/runtime/dist/platform-service.js +0 -36
  67. package/plugin/runtime/dist/plugin-control.js +0 -193
  68. package/plugin/runtime/dist/plugin-worker.js +0 -43
  69. package/plugin/runtime/dist/private-files.js +0 -24
  70. package/plugin/runtime/dist/process-lock.js +0 -40
  71. package/plugin/runtime/dist/public-config.js +0 -58
  72. package/plugin/runtime/dist/scheduled-routes.js +0 -63
  73. package/plugin/runtime/dist/service-errors.js +0 -11
  74. package/plugin/runtime/dist/service-host.js +0 -275
  75. package/plugin/runtime/dist/speech-routes.js +0 -111
  76. package/plugin/runtime/dist/tool-presentation.js +0 -399
  77. package/plugin/runtime/node_modules/.package-lock.json +0 -436
  78. package/plugin/runtime/node_modules/@noble/hashes/LICENSE +0 -21
  79. package/plugin/runtime/node_modules/@noble/hashes/README.md +0 -521
  80. package/plugin/runtime/node_modules/@noble/hashes/_assert.d.ts +0 -17
  81. package/plugin/runtime/node_modules/@noble/hashes/_assert.d.ts.map +0 -1
  82. package/plugin/runtime/node_modules/@noble/hashes/_assert.js +0 -18
  83. package/plugin/runtime/node_modules/@noble/hashes/_assert.js.map +0 -1
  84. package/plugin/runtime/node_modules/@noble/hashes/_blake.d.ts +0 -14
  85. package/plugin/runtime/node_modules/@noble/hashes/_blake.d.ts.map +0 -1
  86. package/plugin/runtime/node_modules/@noble/hashes/_blake.js +0 -50
  87. package/plugin/runtime/node_modules/@noble/hashes/_blake.js.map +0 -1
  88. package/plugin/runtime/node_modules/@noble/hashes/_md.d.ts +0 -51
  89. package/plugin/runtime/node_modules/@noble/hashes/_md.d.ts.map +0 -1
  90. package/plugin/runtime/node_modules/@noble/hashes/_md.js +0 -162
  91. package/plugin/runtime/node_modules/@noble/hashes/_md.js.map +0 -1
  92. package/plugin/runtime/node_modules/@noble/hashes/_u64.d.ts +0 -55
  93. package/plugin/runtime/node_modules/@noble/hashes/_u64.d.ts.map +0 -1
  94. package/plugin/runtime/node_modules/@noble/hashes/_u64.js +0 -90
  95. package/plugin/runtime/node_modules/@noble/hashes/_u64.js.map +0 -1
  96. package/plugin/runtime/node_modules/@noble/hashes/argon2.d.ts +0 -32
  97. package/plugin/runtime/node_modules/@noble/hashes/argon2.d.ts.map +0 -1
  98. package/plugin/runtime/node_modules/@noble/hashes/argon2.js +0 -401
  99. package/plugin/runtime/node_modules/@noble/hashes/argon2.js.map +0 -1
  100. package/plugin/runtime/node_modules/@noble/hashes/blake1.d.ts +0 -106
  101. package/plugin/runtime/node_modules/@noble/hashes/blake1.d.ts.map +0 -1
  102. package/plugin/runtime/node_modules/@noble/hashes/blake1.js +0 -459
  103. package/plugin/runtime/node_modules/@noble/hashes/blake1.js.map +0 -1
  104. package/plugin/runtime/node_modules/@noble/hashes/blake2.d.ts +0 -116
  105. package/plugin/runtime/node_modules/@noble/hashes/blake2.d.ts.map +0 -1
  106. package/plugin/runtime/node_modules/@noble/hashes/blake2.js +0 -420
  107. package/plugin/runtime/node_modules/@noble/hashes/blake2.js.map +0 -1
  108. package/plugin/runtime/node_modules/@noble/hashes/blake2b.d.ts +0 -11
  109. package/plugin/runtime/node_modules/@noble/hashes/blake2b.d.ts.map +0 -1
  110. package/plugin/runtime/node_modules/@noble/hashes/blake2b.js +0 -14
  111. package/plugin/runtime/node_modules/@noble/hashes/blake2b.js.map +0 -1
  112. package/plugin/runtime/node_modules/@noble/hashes/blake2s.d.ts +0 -20
  113. package/plugin/runtime/node_modules/@noble/hashes/blake2s.d.ts.map +0 -1
  114. package/plugin/runtime/node_modules/@noble/hashes/blake2s.js +0 -24
  115. package/plugin/runtime/node_modules/@noble/hashes/blake2s.js.map +0 -1
  116. package/plugin/runtime/node_modules/@noble/hashes/blake3.d.ts +0 -54
  117. package/plugin/runtime/node_modules/@noble/hashes/blake3.d.ts.map +0 -1
  118. package/plugin/runtime/node_modules/@noble/hashes/blake3.js +0 -255
  119. package/plugin/runtime/node_modules/@noble/hashes/blake3.js.map +0 -1
  120. package/plugin/runtime/node_modules/@noble/hashes/crypto.d.ts +0 -2
  121. package/plugin/runtime/node_modules/@noble/hashes/crypto.d.ts.map +0 -1
  122. package/plugin/runtime/node_modules/@noble/hashes/crypto.js +0 -5
  123. package/plugin/runtime/node_modules/@noble/hashes/crypto.js.map +0 -1
  124. package/plugin/runtime/node_modules/@noble/hashes/cryptoNode.d.ts +0 -2
  125. package/plugin/runtime/node_modules/@noble/hashes/cryptoNode.d.ts.map +0 -1
  126. package/plugin/runtime/node_modules/@noble/hashes/cryptoNode.js +0 -18
  127. package/plugin/runtime/node_modules/@noble/hashes/cryptoNode.js.map +0 -1
  128. package/plugin/runtime/node_modules/@noble/hashes/eskdf.d.ts +0 -47
  129. package/plugin/runtime/node_modules/@noble/hashes/eskdf.d.ts.map +0 -1
  130. package/plugin/runtime/node_modules/@noble/hashes/eskdf.js +0 -166
  131. package/plugin/runtime/node_modules/@noble/hashes/eskdf.js.map +0 -1
  132. package/plugin/runtime/node_modules/@noble/hashes/esm/_assert.d.ts +0 -17
  133. package/plugin/runtime/node_modules/@noble/hashes/esm/_assert.d.ts.map +0 -1
  134. package/plugin/runtime/node_modules/@noble/hashes/esm/_assert.js +0 -15
  135. package/plugin/runtime/node_modules/@noble/hashes/esm/_assert.js.map +0 -1
  136. package/plugin/runtime/node_modules/@noble/hashes/esm/_blake.d.ts +0 -14
  137. package/plugin/runtime/node_modules/@noble/hashes/esm/_blake.d.ts.map +0 -1
  138. package/plugin/runtime/node_modules/@noble/hashes/esm/_blake.js +0 -45
  139. package/plugin/runtime/node_modules/@noble/hashes/esm/_blake.js.map +0 -1
  140. package/plugin/runtime/node_modules/@noble/hashes/esm/_md.d.ts +0 -51
  141. package/plugin/runtime/node_modules/@noble/hashes/esm/_md.d.ts.map +0 -1
  142. package/plugin/runtime/node_modules/@noble/hashes/esm/_md.js +0 -155
  143. package/plugin/runtime/node_modules/@noble/hashes/esm/_md.js.map +0 -1
  144. package/plugin/runtime/node_modules/@noble/hashes/esm/_u64.d.ts +0 -55
  145. package/plugin/runtime/node_modules/@noble/hashes/esm/_u64.d.ts.map +0 -1
  146. package/plugin/runtime/node_modules/@noble/hashes/esm/_u64.js +0 -67
  147. package/plugin/runtime/node_modules/@noble/hashes/esm/_u64.js.map +0 -1
  148. package/plugin/runtime/node_modules/@noble/hashes/esm/argon2.d.ts +0 -32
  149. package/plugin/runtime/node_modules/@noble/hashes/esm/argon2.d.ts.map +0 -1
  150. package/plugin/runtime/node_modules/@noble/hashes/esm/argon2.js +0 -392
  151. package/plugin/runtime/node_modules/@noble/hashes/esm/argon2.js.map +0 -1
  152. package/plugin/runtime/node_modules/@noble/hashes/esm/blake1.d.ts +0 -106
  153. package/plugin/runtime/node_modules/@noble/hashes/esm/blake1.d.ts.map +0 -1
  154. package/plugin/runtime/node_modules/@noble/hashes/esm/blake1.js +0 -452
  155. package/plugin/runtime/node_modules/@noble/hashes/esm/blake1.js.map +0 -1
  156. package/plugin/runtime/node_modules/@noble/hashes/esm/blake2.d.ts +0 -116
  157. package/plugin/runtime/node_modules/@noble/hashes/esm/blake2.d.ts.map +0 -1
  158. package/plugin/runtime/node_modules/@noble/hashes/esm/blake2.js +0 -413
  159. package/plugin/runtime/node_modules/@noble/hashes/esm/blake2.js.map +0 -1
  160. package/plugin/runtime/node_modules/@noble/hashes/esm/blake2b.d.ts +0 -11
  161. package/plugin/runtime/node_modules/@noble/hashes/esm/blake2b.d.ts.map +0 -1
  162. package/plugin/runtime/node_modules/@noble/hashes/esm/blake2b.js +0 -11
  163. package/plugin/runtime/node_modules/@noble/hashes/esm/blake2b.js.map +0 -1
  164. package/plugin/runtime/node_modules/@noble/hashes/esm/blake2s.d.ts +0 -20
  165. package/plugin/runtime/node_modules/@noble/hashes/esm/blake2s.d.ts.map +0 -1
  166. package/plugin/runtime/node_modules/@noble/hashes/esm/blake2s.js +0 -21
  167. package/plugin/runtime/node_modules/@noble/hashes/esm/blake2s.js.map +0 -1
  168. package/plugin/runtime/node_modules/@noble/hashes/esm/blake3.d.ts +0 -54
  169. package/plugin/runtime/node_modules/@noble/hashes/esm/blake3.d.ts.map +0 -1
  170. package/plugin/runtime/node_modules/@noble/hashes/esm/blake3.js +0 -251
  171. package/plugin/runtime/node_modules/@noble/hashes/esm/blake3.js.map +0 -1
  172. package/plugin/runtime/node_modules/@noble/hashes/esm/crypto.d.ts +0 -2
  173. package/plugin/runtime/node_modules/@noble/hashes/esm/crypto.d.ts.map +0 -1
  174. package/plugin/runtime/node_modules/@noble/hashes/esm/crypto.js +0 -2
  175. package/plugin/runtime/node_modules/@noble/hashes/esm/crypto.js.map +0 -1
  176. package/plugin/runtime/node_modules/@noble/hashes/esm/cryptoNode.d.ts +0 -2
  177. package/plugin/runtime/node_modules/@noble/hashes/esm/cryptoNode.d.ts.map +0 -1
  178. package/plugin/runtime/node_modules/@noble/hashes/esm/cryptoNode.js +0 -15
  179. package/plugin/runtime/node_modules/@noble/hashes/esm/cryptoNode.js.map +0 -1
  180. package/plugin/runtime/node_modules/@noble/hashes/esm/eskdf.d.ts +0 -47
  181. package/plugin/runtime/node_modules/@noble/hashes/esm/eskdf.d.ts.map +0 -1
  182. package/plugin/runtime/node_modules/@noble/hashes/esm/eskdf.js +0 -160
  183. package/plugin/runtime/node_modules/@noble/hashes/esm/eskdf.js.map +0 -1
  184. package/plugin/runtime/node_modules/@noble/hashes/esm/hkdf.d.ts +0 -36
  185. package/plugin/runtime/node_modules/@noble/hashes/esm/hkdf.d.ts.map +0 -1
  186. package/plugin/runtime/node_modules/@noble/hashes/esm/hkdf.js +0 -82
  187. package/plugin/runtime/node_modules/@noble/hashes/esm/hkdf.js.map +0 -1
  188. package/plugin/runtime/node_modules/@noble/hashes/esm/hmac.d.ts +0 -35
  189. package/plugin/runtime/node_modules/@noble/hashes/esm/hmac.d.ts.map +0 -1
  190. package/plugin/runtime/node_modules/@noble/hashes/esm/hmac.js +0 -86
  191. package/plugin/runtime/node_modules/@noble/hashes/esm/hmac.js.map +0 -1
  192. package/plugin/runtime/node_modules/@noble/hashes/esm/index.d.ts +0 -2
  193. package/plugin/runtime/node_modules/@noble/hashes/esm/index.d.ts.map +0 -1
  194. package/plugin/runtime/node_modules/@noble/hashes/esm/index.js +0 -33
  195. package/plugin/runtime/node_modules/@noble/hashes/esm/index.js.map +0 -1
  196. package/plugin/runtime/node_modules/@noble/hashes/esm/legacy.d.ts +0 -71
  197. package/plugin/runtime/node_modules/@noble/hashes/esm/legacy.d.ts.map +0 -1
  198. package/plugin/runtime/node_modules/@noble/hashes/esm/legacy.js +0 -281
  199. package/plugin/runtime/node_modules/@noble/hashes/esm/legacy.js.map +0 -1
  200. package/plugin/runtime/node_modules/@noble/hashes/esm/package.json +0 -10
  201. package/plugin/runtime/node_modules/@noble/hashes/esm/pbkdf2.d.ts +0 -23
  202. package/plugin/runtime/node_modules/@noble/hashes/esm/pbkdf2.d.ts.map +0 -1
  203. package/plugin/runtime/node_modules/@noble/hashes/esm/pbkdf2.js +0 -97
  204. package/plugin/runtime/node_modules/@noble/hashes/esm/pbkdf2.js.map +0 -1
  205. package/plugin/runtime/node_modules/@noble/hashes/esm/ripemd160.d.ts +0 -13
  206. package/plugin/runtime/node_modules/@noble/hashes/esm/ripemd160.d.ts.map +0 -1
  207. package/plugin/runtime/node_modules/@noble/hashes/esm/ripemd160.js +0 -13
  208. package/plugin/runtime/node_modules/@noble/hashes/esm/ripemd160.js.map +0 -1
  209. package/plugin/runtime/node_modules/@noble/hashes/esm/scrypt.d.ts +0 -34
  210. package/plugin/runtime/node_modules/@noble/hashes/esm/scrypt.d.ts.map +0 -1
  211. package/plugin/runtime/node_modules/@noble/hashes/esm/scrypt.js +0 -228
  212. package/plugin/runtime/node_modules/@noble/hashes/esm/scrypt.js.map +0 -1
  213. package/plugin/runtime/node_modules/@noble/hashes/esm/sha1.d.ts +0 -11
  214. package/plugin/runtime/node_modules/@noble/hashes/esm/sha1.d.ts.map +0 -1
  215. package/plugin/runtime/node_modules/@noble/hashes/esm/sha1.js +0 -11
  216. package/plugin/runtime/node_modules/@noble/hashes/esm/sha1.js.map +0 -1
  217. package/plugin/runtime/node_modules/@noble/hashes/esm/sha2.d.ts +0 -159
  218. package/plugin/runtime/node_modules/@noble/hashes/esm/sha2.d.ts.map +0 -1
  219. package/plugin/runtime/node_modules/@noble/hashes/esm/sha2.js +0 -375
  220. package/plugin/runtime/node_modules/@noble/hashes/esm/sha2.js.map +0 -1
  221. package/plugin/runtime/node_modules/@noble/hashes/esm/sha256.d.ts +0 -20
  222. package/plugin/runtime/node_modules/@noble/hashes/esm/sha256.d.ts.map +0 -1
  223. package/plugin/runtime/node_modules/@noble/hashes/esm/sha256.js +0 -20
  224. package/plugin/runtime/node_modules/@noble/hashes/esm/sha256.js.map +0 -1
  225. package/plugin/runtime/node_modules/@noble/hashes/esm/sha3-addons.d.ts +0 -142
  226. package/plugin/runtime/node_modules/@noble/hashes/esm/sha3-addons.d.ts.map +0 -1
  227. package/plugin/runtime/node_modules/@noble/hashes/esm/sha3-addons.js +0 -393
  228. package/plugin/runtime/node_modules/@noble/hashes/esm/sha3-addons.js.map +0 -1
  229. package/plugin/runtime/node_modules/@noble/hashes/esm/sha3.d.ts +0 -53
  230. package/plugin/runtime/node_modules/@noble/hashes/esm/sha3.d.ts.map +0 -1
  231. package/plugin/runtime/node_modules/@noble/hashes/esm/sha3.js +0 -234
  232. package/plugin/runtime/node_modules/@noble/hashes/esm/sha3.js.map +0 -1
  233. package/plugin/runtime/node_modules/@noble/hashes/esm/sha512.d.ts +0 -26
  234. package/plugin/runtime/node_modules/@noble/hashes/esm/sha512.d.ts.map +0 -1
  235. package/plugin/runtime/node_modules/@noble/hashes/esm/sha512.js +0 -26
  236. package/plugin/runtime/node_modules/@noble/hashes/esm/sha512.js.map +0 -1
  237. package/plugin/runtime/node_modules/@noble/hashes/esm/utils.d.ts +0 -161
  238. package/plugin/runtime/node_modules/@noble/hashes/esm/utils.d.ts.map +0 -1
  239. package/plugin/runtime/node_modules/@noble/hashes/esm/utils.js +0 -281
  240. package/plugin/runtime/node_modules/@noble/hashes/esm/utils.js.map +0 -1
  241. package/plugin/runtime/node_modules/@noble/hashes/hkdf.d.ts +0 -36
  242. package/plugin/runtime/node_modules/@noble/hashes/hkdf.d.ts.map +0 -1
  243. package/plugin/runtime/node_modules/@noble/hashes/hkdf.js +0 -88
  244. package/plugin/runtime/node_modules/@noble/hashes/hkdf.js.map +0 -1
  245. package/plugin/runtime/node_modules/@noble/hashes/hmac.d.ts +0 -35
  246. package/plugin/runtime/node_modules/@noble/hashes/hmac.d.ts.map +0 -1
  247. package/plugin/runtime/node_modules/@noble/hashes/hmac.js +0 -91
  248. package/plugin/runtime/node_modules/@noble/hashes/hmac.js.map +0 -1
  249. package/plugin/runtime/node_modules/@noble/hashes/index.d.ts +0 -1
  250. package/plugin/runtime/node_modules/@noble/hashes/index.d.ts.map +0 -1
  251. package/plugin/runtime/node_modules/@noble/hashes/index.js +0 -33
  252. package/plugin/runtime/node_modules/@noble/hashes/index.js.map +0 -1
  253. package/plugin/runtime/node_modules/@noble/hashes/legacy.d.ts +0 -71
  254. package/plugin/runtime/node_modules/@noble/hashes/legacy.d.ts.map +0 -1
  255. package/plugin/runtime/node_modules/@noble/hashes/legacy.js +0 -287
  256. package/plugin/runtime/node_modules/@noble/hashes/legacy.js.map +0 -1
  257. package/plugin/runtime/node_modules/@noble/hashes/package.json +0 -266
  258. package/plugin/runtime/node_modules/@noble/hashes/pbkdf2.d.ts +0 -23
  259. package/plugin/runtime/node_modules/@noble/hashes/pbkdf2.d.ts.map +0 -1
  260. package/plugin/runtime/node_modules/@noble/hashes/pbkdf2.js +0 -101
  261. package/plugin/runtime/node_modules/@noble/hashes/pbkdf2.js.map +0 -1
  262. package/plugin/runtime/node_modules/@noble/hashes/ripemd160.d.ts +0 -13
  263. package/plugin/runtime/node_modules/@noble/hashes/ripemd160.d.ts.map +0 -1
  264. package/plugin/runtime/node_modules/@noble/hashes/ripemd160.js +0 -16
  265. package/plugin/runtime/node_modules/@noble/hashes/ripemd160.js.map +0 -1
  266. package/plugin/runtime/node_modules/@noble/hashes/scrypt.d.ts +0 -34
  267. package/plugin/runtime/node_modules/@noble/hashes/scrypt.d.ts.map +0 -1
  268. package/plugin/runtime/node_modules/@noble/hashes/scrypt.js +0 -232
  269. package/plugin/runtime/node_modules/@noble/hashes/scrypt.js.map +0 -1
  270. package/plugin/runtime/node_modules/@noble/hashes/sha1.d.ts +0 -11
  271. package/plugin/runtime/node_modules/@noble/hashes/sha1.d.ts.map +0 -1
  272. package/plugin/runtime/node_modules/@noble/hashes/sha1.js +0 -14
  273. package/plugin/runtime/node_modules/@noble/hashes/sha1.js.map +0 -1
  274. package/plugin/runtime/node_modules/@noble/hashes/sha2.d.ts +0 -159
  275. package/plugin/runtime/node_modules/@noble/hashes/sha2.d.ts.map +0 -1
  276. package/plugin/runtime/node_modules/@noble/hashes/sha2.js +0 -384
  277. package/plugin/runtime/node_modules/@noble/hashes/sha2.js.map +0 -1
  278. package/plugin/runtime/node_modules/@noble/hashes/sha256.d.ts +0 -20
  279. package/plugin/runtime/node_modules/@noble/hashes/sha256.d.ts.map +0 -1
  280. package/plugin/runtime/node_modules/@noble/hashes/sha256.js +0 -23
  281. package/plugin/runtime/node_modules/@noble/hashes/sha256.js.map +0 -1
  282. package/plugin/runtime/node_modules/@noble/hashes/sha3-addons.d.ts +0 -142
  283. package/plugin/runtime/node_modules/@noble/hashes/sha3-addons.d.ts.map +0 -1
  284. package/plugin/runtime/node_modules/@noble/hashes/sha3-addons.js +0 -402
  285. package/plugin/runtime/node_modules/@noble/hashes/sha3-addons.js.map +0 -1
  286. package/plugin/runtime/node_modules/@noble/hashes/sha3.d.ts +0 -53
  287. package/plugin/runtime/node_modules/@noble/hashes/sha3.d.ts.map +0 -1
  288. package/plugin/runtime/node_modules/@noble/hashes/sha3.js +0 -239
  289. package/plugin/runtime/node_modules/@noble/hashes/sha3.js.map +0 -1
  290. package/plugin/runtime/node_modules/@noble/hashes/sha512.d.ts +0 -26
  291. package/plugin/runtime/node_modules/@noble/hashes/sha512.d.ts.map +0 -1
  292. package/plugin/runtime/node_modules/@noble/hashes/sha512.js +0 -29
  293. package/plugin/runtime/node_modules/@noble/hashes/sha512.js.map +0 -1
  294. package/plugin/runtime/node_modules/@noble/hashes/src/_assert.ts +0 -22
  295. package/plugin/runtime/node_modules/@noble/hashes/src/_blake.ts +0 -50
  296. package/plugin/runtime/node_modules/@noble/hashes/src/_md.ts +0 -176
  297. package/plugin/runtime/node_modules/@noble/hashes/src/_u64.ts +0 -91
  298. package/plugin/runtime/node_modules/@noble/hashes/src/argon2.ts +0 -497
  299. package/plugin/runtime/node_modules/@noble/hashes/src/blake1.ts +0 -534
  300. package/plugin/runtime/node_modules/@noble/hashes/src/blake2.ts +0 -486
  301. package/plugin/runtime/node_modules/@noble/hashes/src/blake2b.ts +0 -10
  302. package/plugin/runtime/node_modules/@noble/hashes/src/blake2s.ts +0 -20
  303. package/plugin/runtime/node_modules/@noble/hashes/src/blake3.ts +0 -272
  304. package/plugin/runtime/node_modules/@noble/hashes/src/crypto.ts +0 -9
  305. package/plugin/runtime/node_modules/@noble/hashes/src/cryptoNode.ts +0 -15
  306. package/plugin/runtime/node_modules/@noble/hashes/src/eskdf.ts +0 -187
  307. package/plugin/runtime/node_modules/@noble/hashes/src/hkdf.ts +0 -88
  308. package/plugin/runtime/node_modules/@noble/hashes/src/hmac.ts +0 -94
  309. package/plugin/runtime/node_modules/@noble/hashes/src/index.ts +0 -31
  310. package/plugin/runtime/node_modules/@noble/hashes/src/legacy.ts +0 -293
  311. package/plugin/runtime/node_modules/@noble/hashes/src/pbkdf2.ts +0 -122
  312. package/plugin/runtime/node_modules/@noble/hashes/src/ripemd160.ts +0 -12
  313. package/plugin/runtime/node_modules/@noble/hashes/src/scrypt.ts +0 -257
  314. package/plugin/runtime/node_modules/@noble/hashes/src/sha1.ts +0 -10
  315. package/plugin/runtime/node_modules/@noble/hashes/src/sha2.ts +0 -402
  316. package/plugin/runtime/node_modules/@noble/hashes/src/sha256.ts +0 -24
  317. package/plugin/runtime/node_modules/@noble/hashes/src/sha3-addons.ts +0 -499
  318. package/plugin/runtime/node_modules/@noble/hashes/src/sha3.ts +0 -258
  319. package/plugin/runtime/node_modules/@noble/hashes/src/sha512.ts +0 -34
  320. package/plugin/runtime/node_modules/@noble/hashes/src/utils.ts +0 -395
  321. package/plugin/runtime/node_modules/@noble/hashes/utils.d.ts +0 -161
  322. package/plugin/runtime/node_modules/@noble/hashes/utils.d.ts.map +0 -1
  323. package/plugin/runtime/node_modules/@noble/hashes/utils.js +0 -313
  324. package/plugin/runtime/node_modules/@noble/hashes/utils.js.map +0 -1
  325. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/API.md +0 -536
  326. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/LICENSE +0 -21
  327. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/README.md +0 -97
  328. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/attachment/store.d.ts +0 -57
  329. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/attachment/store.js +0 -618
  330. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/attest/attest-gate.d.ts +0 -29
  331. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/attest/attest-gate.js +0 -58
  332. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/attest/attest-key-prune.d.ts +0 -17
  333. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/attest/attest-key-prune.js +0 -37
  334. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/attest/attest-store.d.ts +0 -27
  335. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/attest/attest-store.js +0 -146
  336. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/attest/verifier.d.ts +0 -1
  337. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/attest/verifier.js +0 -2
  338. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/delivery-observations.d.ts +0 -38
  339. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/delivery-observations.js +0 -85
  340. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/history.d.ts +0 -89
  341. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/history.js +0 -179
  342. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/operations.d.ts +0 -136
  343. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/operations.js +0 -105
  344. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/pairing-codec.d.ts +0 -39
  345. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/pairing-codec.js +0 -233
  346. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/reconciliation.d.ts +0 -6
  347. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/reconciliation.js +0 -17
  348. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/settings-schema.d.ts +0 -3
  349. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/settings-schema.js +0 -45
  350. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/tool-presentation.d.ts +0 -10
  351. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/tool-presentation.js +0 -2
  352. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/types.d.ts +0 -259
  353. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/types.js +0 -33
  354. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/work-context.d.ts +0 -56
  355. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/work-context.js +0 -60
  356. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/device-request/coordinator.d.ts +0 -19
  357. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/device-request/coordinator.js +0 -113
  358. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/device-request/pending-store.d.ts +0 -37
  359. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/device-request/pending-store.js +0 -67
  360. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/device-request/results.d.ts +0 -14
  361. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/device-request/results.js +0 -39
  362. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/index.d.ts +0 -21
  363. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/index.js +0 -20
  364. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/link-preview/og-parse.d.ts +0 -21
  365. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/link-preview/og-parse.js +0 -234
  366. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/link-preview/preview-service.d.ts +0 -39
  367. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/link-preview/preview-service.js +0 -232
  368. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/link-preview/ssrf-guard.d.ts +0 -52
  369. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/link-preview/ssrf-guard.js +0 -236
  370. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/prompt-capsules/capsules-store.d.ts +0 -38
  371. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/prompt-capsules/capsules-store.js +0 -149
  372. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/attachment-crypto.d.ts +0 -4
  373. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/attachment-crypto.js +0 -73
  374. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/cert-selfsign.d.ts +0 -6
  375. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/cert-selfsign.js +0 -88
  376. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/filter-proxy.d.ts +0 -17
  377. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/filter-proxy.js +0 -231
  378. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/frpc-manager.d.ts +0 -76
  379. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/frpc-manager.js +0 -1332
  380. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/oss-transfer.d.ts +0 -43
  381. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/oss-transfer.js +0 -280
  382. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/pairing-voucher.d.ts +0 -13
  383. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/pairing-voucher.js +0 -58
  384. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/private-file.d.ts +0 -2
  385. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/private-file.js +0 -11
  386. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/standby-loop-guard.d.ts +0 -9
  387. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/standby-loop-guard.js +0 -24
  388. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/tls-identity.d.ts +0 -36
  389. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/tls-identity.js +0 -151
  390. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/tunnel-watchdog-policy.d.ts +0 -24
  391. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/tunnel-watchdog-policy.js +0 -49
  392. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/push/push-runtime.d.ts +0 -45
  393. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/push/push-runtime.js +0 -233
  394. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/push/relay-transport.d.ts +0 -8
  395. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/push/relay-transport.js +0 -27
  396. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/canonical-update-batcher.d.ts +0 -26
  397. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/canonical-update-batcher.js +0 -112
  398. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/channel-kernel.d.ts +0 -52
  399. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/channel-kernel.js +0 -332
  400. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/channel-runtime.d.ts +0 -2
  401. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/channel-runtime.js +0 -2
  402. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/delivery-observation-publisher.d.ts +0 -43
  403. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/delivery-observation-publisher.js +0 -211
  404. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/durable-run-store.d.ts +0 -264
  405. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/durable-run-store.js +0 -1661
  406. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/runner.d.ts +0 -37
  407. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/runner.js +0 -319
  408. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/scheduler.d.ts +0 -13
  409. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/scheduler.js +0 -130
  410. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/work-context.d.ts +0 -13
  411. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/work-context.js +0 -73
  412. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/server-name/server-name-store.d.ts +0 -21
  413. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/server-name/server-name-store.js +0 -52
  414. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/service/channel-service.d.ts +0 -38
  415. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/service/channel-service.js +0 -266
  416. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/service/infrastructure.d.ts +0 -87
  417. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/service/infrastructure.js +0 -179
  418. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/testing/contract-harness.d.ts +0 -25
  419. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/testing/contract-harness.js +0 -44
  420. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/testing/reference-adapter.d.ts +0 -39
  421. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/testing/reference-adapter.js +0 -76
  422. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/testing/weaknet-server.d.ts +0 -6
  423. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/testing/weaknet-server.js +0 -130
  424. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/attest.d.ts +0 -39
  425. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/attest.js +0 -114
  426. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/body.d.ts +0 -2
  427. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/body.js +0 -24
  428. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/command-lifecycle.d.ts +0 -47
  429. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/command-lifecycle.js +0 -184
  430. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/controls.d.ts +0 -9
  431. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/controls.js +0 -123
  432. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/files-download.d.ts +0 -18
  433. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/files-download.js +0 -197
  434. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/files-upload.d.ts +0 -20
  435. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/files-upload.js +0 -227
  436. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/link-preview.d.ts +0 -15
  437. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/link-preview.js +0 -45
  438. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/messages.d.ts +0 -10
  439. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/messages.js +0 -111
  440. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/operations.d.ts +0 -13
  441. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/operations.js +0 -336
  442. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/pairing.d.ts +0 -22
  443. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/pairing.js +0 -138
  444. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/prompt-capsules.d.ts +0 -8
  445. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/prompt-capsules.js +0 -65
  446. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/push.d.ts +0 -13
  447. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/push.js +0 -65
  448. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/runtime.d.ts +0 -51
  449. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/runtime.js +0 -442
  450. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/server-name.d.ts +0 -8
  451. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/server-name.js +0 -43
  452. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/session-settings.d.ts +0 -5
  453. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/session-settings.js +0 -153
  454. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/sessions.d.ts +0 -20
  455. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/sessions.js +0 -118
  456. package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/package.json +0 -39
  457. package/plugin/runtime/node_modules/ansi-regex/index.d.ts +0 -37
  458. package/plugin/runtime/node_modules/ansi-regex/index.js +0 -10
  459. package/plugin/runtime/node_modules/ansi-regex/license +0 -9
  460. package/plugin/runtime/node_modules/ansi-regex/package.json +0 -55
  461. package/plugin/runtime/node_modules/ansi-regex/readme.md +0 -78
  462. package/plugin/runtime/node_modules/ansi-styles/index.d.ts +0 -345
  463. package/plugin/runtime/node_modules/ansi-styles/index.js +0 -163
  464. package/plugin/runtime/node_modules/ansi-styles/license +0 -9
  465. package/plugin/runtime/node_modules/ansi-styles/package.json +0 -56
  466. package/plugin/runtime/node_modules/ansi-styles/readme.md +0 -152
  467. package/plugin/runtime/node_modules/asn1js/LICENSE +0 -30
  468. package/plugin/runtime/node_modules/asn1js/README.md +0 -222
  469. package/plugin/runtime/node_modules/asn1js/build/index.d.ts +0 -1412
  470. package/plugin/runtime/node_modules/asn1js/build/index.es.js +0 -3705
  471. package/plugin/runtime/node_modules/asn1js/build/index.js +0 -3773
  472. package/plugin/runtime/node_modules/asn1js/package.json +0 -89
  473. package/plugin/runtime/node_modules/bytestreamjs/LICENSE +0 -29
  474. package/plugin/runtime/node_modules/bytestreamjs/README.MD +0 -196
  475. package/plugin/runtime/node_modules/bytestreamjs/build/cjs/bit.js +0 -91
  476. package/plugin/runtime/node_modules/bytestreamjs/build/cjs/bit_stream.js +0 -400
  477. package/plugin/runtime/node_modules/bytestreamjs/build/cjs/byte_stream.js +0 -648
  478. package/plugin/runtime/node_modules/bytestreamjs/build/cjs/helpers.js +0 -59
  479. package/plugin/runtime/node_modules/bytestreamjs/build/cjs/index.js +0 -21
  480. package/plugin/runtime/node_modules/bytestreamjs/build/cjs/seq_bit_stream.js +0 -114
  481. package/plugin/runtime/node_modules/bytestreamjs/build/cjs/seq_stream.js +0 -437
  482. package/plugin/runtime/node_modules/bytestreamjs/build/mjs/bit.js +0 -88
  483. package/plugin/runtime/node_modules/bytestreamjs/build/mjs/bit_stream.js +0 -396
  484. package/plugin/runtime/node_modules/bytestreamjs/build/mjs/byte_stream.js +0 -644
  485. package/plugin/runtime/node_modules/bytestreamjs/build/mjs/helpers.js +0 -55
  486. package/plugin/runtime/node_modules/bytestreamjs/build/mjs/index.js +0 -5
  487. package/plugin/runtime/node_modules/bytestreamjs/build/mjs/seq_bit_stream.js +0 -110
  488. package/plugin/runtime/node_modules/bytestreamjs/build/mjs/seq_stream.js +0 -433
  489. package/plugin/runtime/node_modules/bytestreamjs/build/types/bit.d.ts +0 -1
  490. package/plugin/runtime/node_modules/bytestreamjs/build/types/bit_stream.d.ts +0 -222
  491. package/plugin/runtime/node_modules/bytestreamjs/build/types/byte_stream.d.ts +0 -292
  492. package/plugin/runtime/node_modules/bytestreamjs/build/types/helpers.d.ts +0 -23
  493. package/plugin/runtime/node_modules/bytestreamjs/build/types/index.d.ts +0 -5
  494. package/plugin/runtime/node_modules/bytestreamjs/build/types/seq_bit_stream.d.ts +0 -47
  495. package/plugin/runtime/node_modules/bytestreamjs/build/types/seq_stream.d.ts +0 -255
  496. package/plugin/runtime/node_modules/bytestreamjs/package.json +0 -66
  497. package/plugin/runtime/node_modules/camelcase/index.d.ts +0 -63
  498. package/plugin/runtime/node_modules/camelcase/index.js +0 -76
  499. package/plugin/runtime/node_modules/camelcase/license +0 -9
  500. package/plugin/runtime/node_modules/camelcase/package.json +0 -43
  501. package/plugin/runtime/node_modules/camelcase/readme.md +0 -99
  502. package/plugin/runtime/node_modules/cbor/LICENSE.md +0 -20
  503. package/plugin/runtime/node_modules/cbor/README.md +0 -282
  504. package/plugin/runtime/node_modules/cbor/lib/cbor.js +0 -114
  505. package/plugin/runtime/node_modules/cbor/lib/commented.js +0 -382
  506. package/plugin/runtime/node_modules/cbor/lib/constants.js +0 -79
  507. package/plugin/runtime/node_modules/cbor/lib/decoder.js +0 -680
  508. package/plugin/runtime/node_modules/cbor/lib/diagnose.js +0 -274
  509. package/plugin/runtime/node_modules/cbor/lib/encoder.js +0 -1121
  510. package/plugin/runtime/node_modules/cbor/lib/map.js +0 -185
  511. package/plugin/runtime/node_modules/cbor/lib/objectRecorder.js +0 -71
  512. package/plugin/runtime/node_modules/cbor/lib/sharedValueEncoder.js +0 -141
  513. package/plugin/runtime/node_modules/cbor/lib/simple.js +0 -104
  514. package/plugin/runtime/node_modules/cbor/lib/tagged.js +0 -378
  515. package/plugin/runtime/node_modules/cbor/lib/utils.js +0 -308
  516. package/plugin/runtime/node_modules/cbor/package.json +0 -47
  517. package/plugin/runtime/node_modules/cbor/types/lib/cbor.d.ts +0 -34
  518. package/plugin/runtime/node_modules/cbor/types/lib/commented.d.ts +0 -109
  519. package/plugin/runtime/node_modules/cbor/types/lib/constants.d.ts +0 -63
  520. package/plugin/runtime/node_modules/cbor/types/lib/decoder.d.ts +0 -199
  521. package/plugin/runtime/node_modules/cbor/types/lib/diagnose.d.ts +0 -91
  522. package/plugin/runtime/node_modules/cbor/types/lib/encoder.d.ts +0 -477
  523. package/plugin/runtime/node_modules/cbor/types/lib/map.d.ts +0 -78
  524. package/plugin/runtime/node_modules/cbor/types/lib/objectRecorder.d.ts +0 -36
  525. package/plugin/runtime/node_modules/cbor/types/lib/sharedValueEncoder.d.ts +0 -21
  526. package/plugin/runtime/node_modules/cbor/types/lib/simple.d.ts +0 -47
  527. package/plugin/runtime/node_modules/cbor/types/lib/tagged.d.ts +0 -74
  528. package/plugin/runtime/node_modules/cbor/types/lib/utils.d.ts +0 -20
  529. package/plugin/runtime/node_modules/cbor/types/vendor/binary-parse-stream/index.d.ts +0 -34
  530. package/plugin/runtime/node_modules/cbor/vendor/binary-parse-stream/README.md +0 -49
  531. package/plugin/runtime/node_modules/cbor/vendor/binary-parse-stream/index.js +0 -111
  532. package/plugin/runtime/node_modules/cliui/CHANGELOG.md +0 -76
  533. package/plugin/runtime/node_modules/cliui/LICENSE.txt +0 -14
  534. package/plugin/runtime/node_modules/cliui/README.md +0 -115
  535. package/plugin/runtime/node_modules/cliui/index.js +0 -354
  536. package/plugin/runtime/node_modules/cliui/package.json +0 -65
  537. package/plugin/runtime/node_modules/color-convert/CHANGELOG.md +0 -54
  538. package/plugin/runtime/node_modules/color-convert/LICENSE +0 -21
  539. package/plugin/runtime/node_modules/color-convert/README.md +0 -68
  540. package/plugin/runtime/node_modules/color-convert/conversions.js +0 -839
  541. package/plugin/runtime/node_modules/color-convert/index.js +0 -81
  542. package/plugin/runtime/node_modules/color-convert/package.json +0 -48
  543. package/plugin/runtime/node_modules/color-convert/route.js +0 -97
  544. package/plugin/runtime/node_modules/color-name/LICENSE +0 -8
  545. package/plugin/runtime/node_modules/color-name/README.md +0 -11
  546. package/plugin/runtime/node_modules/color-name/index.js +0 -152
  547. package/plugin/runtime/node_modules/color-name/package.json +0 -28
  548. package/plugin/runtime/node_modules/decamelize/index.js +0 -13
  549. package/plugin/runtime/node_modules/decamelize/license +0 -21
  550. package/plugin/runtime/node_modules/decamelize/package.json +0 -38
  551. package/plugin/runtime/node_modules/decamelize/readme.md +0 -48
  552. package/plugin/runtime/node_modules/dijkstrajs/.travis.yml +0 -4
  553. package/plugin/runtime/node_modules/dijkstrajs/CONTRIBUTING.md +0 -8
  554. package/plugin/runtime/node_modules/dijkstrajs/LICENSE.md +0 -19
  555. package/plugin/runtime/node_modules/dijkstrajs/README.md +0 -18
  556. package/plugin/runtime/node_modules/dijkstrajs/dijkstra.js +0 -165
  557. package/plugin/runtime/node_modules/dijkstrajs/package.json +0 -60
  558. package/plugin/runtime/node_modules/dijkstrajs/test/dijkstra.test.js +0 -96
  559. package/plugin/runtime/node_modules/emoji-regex/LICENSE-MIT.txt +0 -20
  560. package/plugin/runtime/node_modules/emoji-regex/README.md +0 -73
  561. package/plugin/runtime/node_modules/emoji-regex/es2015/index.js +0 -6
  562. package/plugin/runtime/node_modules/emoji-regex/es2015/text.js +0 -6
  563. package/plugin/runtime/node_modules/emoji-regex/index.d.ts +0 -23
  564. package/plugin/runtime/node_modules/emoji-regex/index.js +0 -6
  565. package/plugin/runtime/node_modules/emoji-regex/package.json +0 -50
  566. package/plugin/runtime/node_modules/emoji-regex/text.js +0 -6
  567. package/plugin/runtime/node_modules/find-up/index.d.ts +0 -137
  568. package/plugin/runtime/node_modules/find-up/index.js +0 -89
  569. package/plugin/runtime/node_modules/find-up/license +0 -9
  570. package/plugin/runtime/node_modules/find-up/package.json +0 -53
  571. package/plugin/runtime/node_modules/find-up/readme.md +0 -156
  572. package/plugin/runtime/node_modules/get-caller-file/LICENSE.md +0 -6
  573. package/plugin/runtime/node_modules/get-caller-file/README.md +0 -41
  574. package/plugin/runtime/node_modules/get-caller-file/index.d.ts +0 -2
  575. package/plugin/runtime/node_modules/get-caller-file/index.js +0 -22
  576. package/plugin/runtime/node_modules/get-caller-file/index.js.map +0 -1
  577. package/plugin/runtime/node_modules/get-caller-file/package.json +0 -42
  578. package/plugin/runtime/node_modules/is-fullwidth-code-point/index.d.ts +0 -17
  579. package/plugin/runtime/node_modules/is-fullwidth-code-point/index.js +0 -50
  580. package/plugin/runtime/node_modules/is-fullwidth-code-point/license +0 -9
  581. package/plugin/runtime/node_modules/is-fullwidth-code-point/package.json +0 -42
  582. package/plugin/runtime/node_modules/is-fullwidth-code-point/readme.md +0 -39
  583. package/plugin/runtime/node_modules/locate-path/index.d.ts +0 -83
  584. package/plugin/runtime/node_modules/locate-path/index.js +0 -65
  585. package/plugin/runtime/node_modules/locate-path/license +0 -9
  586. package/plugin/runtime/node_modules/locate-path/package.json +0 -45
  587. package/plugin/runtime/node_modules/locate-path/readme.md +0 -122
  588. package/plugin/runtime/node_modules/node-app-attest/.github/dependabot.yml +0 -6
  589. package/plugin/runtime/node_modules/node-app-attest/.github/workflows/ci.yml +0 -43
  590. package/plugin/runtime/node_modules/node-app-attest/.prettierrc +0 -1
  591. package/plugin/runtime/node_modules/node-app-attest/.yarnrc.yml +0 -1
  592. package/plugin/runtime/node_modules/node-app-attest/LICENSE +0 -21
  593. package/plugin/runtime/node_modules/node-app-attest/README.md +0 -300
  594. package/plugin/runtime/node_modules/node-app-attest/eslint.config.js +0 -30
  595. package/plugin/runtime/node_modules/node-app-attest/package.json +0 -44
  596. package/plugin/runtime/node_modules/node-app-attest/src/index.js +0 -4
  597. package/plugin/runtime/node_modules/node-app-attest/src/verifyAssertion.js +0 -81
  598. package/plugin/runtime/node_modules/node-app-attest/src/verifyAttestation.js +0 -211
  599. package/plugin/runtime/node_modules/node-app-attest/test/fixtures/attestation-development.json +0 -5
  600. package/plugin/runtime/node_modules/node-app-attest/test/fixtures/attestation-production.json +0 -5
  601. package/plugin/runtime/node_modules/node-app-attest/test/verifyAssertion.test.js +0 -119
  602. package/plugin/runtime/node_modules/node-app-attest/test/verifyAttestation.test.js +0 -303
  603. package/plugin/runtime/node_modules/node-app-attest/tsconfig.json +0 -11
  604. package/plugin/runtime/node_modules/node-app-attest/types/index.d.ts +0 -4
  605. package/plugin/runtime/node_modules/node-app-attest/types/index.d.ts.map +0 -1
  606. package/plugin/runtime/node_modules/node-app-attest/types/verifyAssertion.d.ts +0 -5
  607. package/plugin/runtime/node_modules/node-app-attest/types/verifyAssertion.d.ts.map +0 -1
  608. package/plugin/runtime/node_modules/node-app-attest/types/verifyAttestation.d.ts +0 -8
  609. package/plugin/runtime/node_modules/node-app-attest/types/verifyAttestation.d.ts.map +0 -1
  610. package/plugin/runtime/node_modules/nofilter/LICENSE.md +0 -20
  611. package/plugin/runtime/node_modules/nofilter/README.md +0 -36
  612. package/plugin/runtime/node_modules/nofilter/lib/index.js +0 -1055
  613. package/plugin/runtime/node_modules/nofilter/package.json +0 -60
  614. package/plugin/runtime/node_modules/nofilter/types/index.d.ts +0 -573
  615. package/plugin/runtime/node_modules/p-limit/index.d.ts +0 -38
  616. package/plugin/runtime/node_modules/p-limit/index.js +0 -57
  617. package/plugin/runtime/node_modules/p-limit/license +0 -9
  618. package/plugin/runtime/node_modules/p-limit/package.json +0 -52
  619. package/plugin/runtime/node_modules/p-limit/readme.md +0 -101
  620. package/plugin/runtime/node_modules/p-locate/index.d.ts +0 -64
  621. package/plugin/runtime/node_modules/p-locate/index.js +0 -52
  622. package/plugin/runtime/node_modules/p-locate/license +0 -9
  623. package/plugin/runtime/node_modules/p-locate/package.json +0 -53
  624. package/plugin/runtime/node_modules/p-locate/readme.md +0 -90
  625. package/plugin/runtime/node_modules/p-try/index.d.ts +0 -39
  626. package/plugin/runtime/node_modules/p-try/index.js +0 -9
  627. package/plugin/runtime/node_modules/p-try/license +0 -9
  628. package/plugin/runtime/node_modules/p-try/package.json +0 -42
  629. package/plugin/runtime/node_modules/p-try/readme.md +0 -58
  630. package/plugin/runtime/node_modules/path-exists/index.d.ts +0 -28
  631. package/plugin/runtime/node_modules/path-exists/index.js +0 -23
  632. package/plugin/runtime/node_modules/path-exists/license +0 -9
  633. package/plugin/runtime/node_modules/path-exists/package.json +0 -39
  634. package/plugin/runtime/node_modules/path-exists/readme.md +0 -52
  635. package/plugin/runtime/node_modules/pkijs/LICENSE +0 -30
  636. package/plugin/runtime/node_modules/pkijs/README.md +0 -81
  637. package/plugin/runtime/node_modules/pkijs/build/index.d.ts +0 -9419
  638. package/plugin/runtime/node_modules/pkijs/build/index.es.js +0 -18789
  639. package/plugin/runtime/node_modules/pkijs/build/index.js +0 -19014
  640. package/plugin/runtime/node_modules/pkijs/package.json +0 -98
  641. package/plugin/runtime/node_modules/pngjs/.eslintignore +0 -2
  642. package/plugin/runtime/node_modules/pngjs/.eslintrc.json +0 -19
  643. package/plugin/runtime/node_modules/pngjs/.prettierignore +0 -3
  644. package/plugin/runtime/node_modules/pngjs/LICENSE +0 -20
  645. package/plugin/runtime/node_modules/pngjs/README.md +0 -429
  646. package/plugin/runtime/node_modules/pngjs/browser.js +0 -16096
  647. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/base.css +0 -354
  648. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/bitmapper.js.html +0 -881
  649. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/bitpacker.js.html +0 -554
  650. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/block-navigation.js +0 -77
  651. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/chunkstream.js.html +0 -647
  652. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/constants.js.html +0 -176
  653. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/crc.js.html +0 -200
  654. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/favicon.png +0 -0
  655. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/filter-pack.js.html +0 -593
  656. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/filter-parse-async.js.html +0 -152
  657. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/filter-parse-sync.js.html +0 -143
  658. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/filter-parse.js.html +0 -611
  659. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/format-normaliser.js.html +0 -359
  660. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/index.html +0 -426
  661. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/interlace.js.html +0 -365
  662. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/packer-async.js.html +0 -230
  663. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/packer-sync.js.html +0 -248
  664. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/packer.js.html +0 -467
  665. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/paeth-predictor.js.html +0 -128
  666. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/parser-async.js.html +0 -575
  667. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/parser-sync.js.html +0 -404
  668. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/parser.js.html +0 -950
  669. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/png-sync.js.html +0 -116
  670. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/png.js.html +0 -662
  671. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/prettify.css +0 -101
  672. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/prettify.js +0 -1007
  673. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  674. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/sorter.js +0 -169
  675. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/sync-inflate.js.html +0 -584
  676. package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/sync-reader.js.html +0 -215
  677. package/plugin/runtime/node_modules/pngjs/coverage/lcov.info +0 -2177
  678. package/plugin/runtime/node_modules/pngjs/lib/bitmapper.js +0 -267
  679. package/plugin/runtime/node_modules/pngjs/lib/bitpacker.js +0 -158
  680. package/plugin/runtime/node_modules/pngjs/lib/chunkstream.js +0 -189
  681. package/plugin/runtime/node_modules/pngjs/lib/constants.js +0 -32
  682. package/plugin/runtime/node_modules/pngjs/lib/crc.js +0 -40
  683. package/plugin/runtime/node_modules/pngjs/lib/filter-pack.js +0 -171
  684. package/plugin/runtime/node_modules/pngjs/lib/filter-parse-async.js +0 -24
  685. package/plugin/runtime/node_modules/pngjs/lib/filter-parse-sync.js +0 -21
  686. package/plugin/runtime/node_modules/pngjs/lib/filter-parse.js +0 -177
  687. package/plugin/runtime/node_modules/pngjs/lib/format-normaliser.js +0 -93
  688. package/plugin/runtime/node_modules/pngjs/lib/interlace.js +0 -95
  689. package/plugin/runtime/node_modules/pngjs/lib/packer-async.js +0 -50
  690. package/plugin/runtime/node_modules/pngjs/lib/packer-sync.js +0 -56
  691. package/plugin/runtime/node_modules/pngjs/lib/packer.js +0 -129
  692. package/plugin/runtime/node_modules/pngjs/lib/paeth-predictor.js +0 -16
  693. package/plugin/runtime/node_modules/pngjs/lib/parser-async.js +0 -165
  694. package/plugin/runtime/node_modules/pngjs/lib/parser-sync.js +0 -108
  695. package/plugin/runtime/node_modules/pngjs/lib/parser.js +0 -290
  696. package/plugin/runtime/node_modules/pngjs/lib/png-sync.js +0 -12
  697. package/plugin/runtime/node_modules/pngjs/lib/png.js +0 -194
  698. package/plugin/runtime/node_modules/pngjs/lib/sync-inflate.js +0 -168
  699. package/plugin/runtime/node_modules/pngjs/lib/sync-reader.js +0 -45
  700. package/plugin/runtime/node_modules/pngjs/package.json +0 -73
  701. package/plugin/runtime/node_modules/pvtsutils/LICENSE +0 -21
  702. package/plugin/runtime/node_modules/pvtsutils/README.md +0 -80
  703. package/plugin/runtime/node_modules/pvtsutils/build/index.d.ts +0 -208
  704. package/plugin/runtime/node_modules/pvtsutils/build/index.es.js +0 -393
  705. package/plugin/runtime/node_modules/pvtsutils/build/index.js +0 -399
  706. package/plugin/runtime/node_modules/pvtsutils/package.json +0 -76
  707. package/plugin/runtime/node_modules/pvutils/LICENSE +0 -24
  708. package/plugin/runtime/node_modules/pvutils/README.md +0 -24
  709. package/plugin/runtime/node_modules/pvutils/build/index.d.ts +0 -116
  710. package/plugin/runtime/node_modules/pvutils/build/utils.es.js +0 -340
  711. package/plugin/runtime/node_modules/pvutils/build/utils.js +0 -361
  712. package/plugin/runtime/node_modules/pvutils/package.json +0 -63
  713. package/plugin/runtime/node_modules/qrcode/README.md +0 -770
  714. package/plugin/runtime/node_modules/qrcode/bin/qrcode +0 -159
  715. package/plugin/runtime/node_modules/qrcode/helper/to-sjis-browser.js +0 -2
  716. package/plugin/runtime/node_modules/qrcode/helper/to-sjis.js +0 -105
  717. package/plugin/runtime/node_modules/qrcode/lib/browser.js +0 -76
  718. package/plugin/runtime/node_modules/qrcode/lib/can-promise.js +0 -7
  719. package/plugin/runtime/node_modules/qrcode/lib/core/alignment-pattern.js +0 -83
  720. package/plugin/runtime/node_modules/qrcode/lib/core/alphanumeric-data.js +0 -59
  721. package/plugin/runtime/node_modules/qrcode/lib/core/bit-buffer.js +0 -37
  722. package/plugin/runtime/node_modules/qrcode/lib/core/bit-matrix.js +0 -65
  723. package/plugin/runtime/node_modules/qrcode/lib/core/byte-data.js +0 -30
  724. package/plugin/runtime/node_modules/qrcode/lib/core/error-correction-code.js +0 -135
  725. package/plugin/runtime/node_modules/qrcode/lib/core/error-correction-level.js +0 -50
  726. package/plugin/runtime/node_modules/qrcode/lib/core/finder-pattern.js +0 -22
  727. package/plugin/runtime/node_modules/qrcode/lib/core/format-info.js +0 -29
  728. package/plugin/runtime/node_modules/qrcode/lib/core/galois-field.js +0 -69
  729. package/plugin/runtime/node_modules/qrcode/lib/core/kanji-data.js +0 -54
  730. package/plugin/runtime/node_modules/qrcode/lib/core/mask-pattern.js +0 -234
  731. package/plugin/runtime/node_modules/qrcode/lib/core/mode.js +0 -167
  732. package/plugin/runtime/node_modules/qrcode/lib/core/numeric-data.js +0 -43
  733. package/plugin/runtime/node_modules/qrcode/lib/core/polynomial.js +0 -62
  734. package/plugin/runtime/node_modules/qrcode/lib/core/qrcode.js +0 -495
  735. package/plugin/runtime/node_modules/qrcode/lib/core/reed-solomon-encoder.js +0 -56
  736. package/plugin/runtime/node_modules/qrcode/lib/core/regex.js +0 -31
  737. package/plugin/runtime/node_modules/qrcode/lib/core/segments.js +0 -330
  738. package/plugin/runtime/node_modules/qrcode/lib/core/utils.js +0 -63
  739. package/plugin/runtime/node_modules/qrcode/lib/core/version-check.js +0 -9
  740. package/plugin/runtime/node_modules/qrcode/lib/core/version.js +0 -163
  741. package/plugin/runtime/node_modules/qrcode/lib/index.js +0 -12
  742. package/plugin/runtime/node_modules/qrcode/lib/renderer/canvas.js +0 -63
  743. package/plugin/runtime/node_modules/qrcode/lib/renderer/png.js +0 -78
  744. package/plugin/runtime/node_modules/qrcode/lib/renderer/svg-tag.js +0 -81
  745. package/plugin/runtime/node_modules/qrcode/lib/renderer/svg.js +0 -19
  746. package/plugin/runtime/node_modules/qrcode/lib/renderer/terminal/terminal-small.js +0 -85
  747. package/plugin/runtime/node_modules/qrcode/lib/renderer/terminal/terminal.js +0 -49
  748. package/plugin/runtime/node_modules/qrcode/lib/renderer/terminal.js +0 -9
  749. package/plugin/runtime/node_modules/qrcode/lib/renderer/utf8.js +0 -71
  750. package/plugin/runtime/node_modules/qrcode/lib/renderer/utils.js +0 -99
  751. package/plugin/runtime/node_modules/qrcode/lib/server.js +0 -138
  752. package/plugin/runtime/node_modules/qrcode/license +0 -10
  753. package/plugin/runtime/node_modules/qrcode/package.json +0 -77
  754. package/plugin/runtime/node_modules/require-directory/.jshintrc +0 -67
  755. package/plugin/runtime/node_modules/require-directory/.travis.yml +0 -3
  756. package/plugin/runtime/node_modules/require-directory/LICENSE +0 -22
  757. package/plugin/runtime/node_modules/require-directory/README.markdown +0 -184
  758. package/plugin/runtime/node_modules/require-directory/index.js +0 -86
  759. package/plugin/runtime/node_modules/require-directory/package.json +0 -40
  760. package/plugin/runtime/node_modules/require-main-filename/CHANGELOG.md +0 -26
  761. package/plugin/runtime/node_modules/require-main-filename/LICENSE.txt +0 -14
  762. package/plugin/runtime/node_modules/require-main-filename/README.md +0 -26
  763. package/plugin/runtime/node_modules/require-main-filename/index.js +0 -18
  764. package/plugin/runtime/node_modules/require-main-filename/package.json +0 -35
  765. package/plugin/runtime/node_modules/set-blocking/CHANGELOG.md +0 -26
  766. package/plugin/runtime/node_modules/set-blocking/LICENSE.txt +0 -14
  767. package/plugin/runtime/node_modules/set-blocking/README.md +0 -31
  768. package/plugin/runtime/node_modules/set-blocking/index.js +0 -7
  769. package/plugin/runtime/node_modules/set-blocking/package.json +0 -42
  770. package/plugin/runtime/node_modules/string-width/index.d.ts +0 -29
  771. package/plugin/runtime/node_modules/string-width/index.js +0 -47
  772. package/plugin/runtime/node_modules/string-width/license +0 -9
  773. package/plugin/runtime/node_modules/string-width/package.json +0 -56
  774. package/plugin/runtime/node_modules/string-width/readme.md +0 -50
  775. package/plugin/runtime/node_modules/strip-ansi/index.d.ts +0 -17
  776. package/plugin/runtime/node_modules/strip-ansi/index.js +0 -4
  777. package/plugin/runtime/node_modules/strip-ansi/license +0 -9
  778. package/plugin/runtime/node_modules/strip-ansi/package.json +0 -54
  779. package/plugin/runtime/node_modules/strip-ansi/readme.md +0 -46
  780. package/plugin/runtime/node_modules/tslib/CopyrightNotice.txt +0 -15
  781. package/plugin/runtime/node_modules/tslib/LICENSE.txt +0 -12
  782. package/plugin/runtime/node_modules/tslib/README.md +0 -159
  783. package/plugin/runtime/node_modules/tslib/SECURITY.md +0 -41
  784. package/plugin/runtime/node_modules/tslib/modules/index.d.ts +0 -38
  785. package/plugin/runtime/node_modules/tslib/modules/index.js +0 -70
  786. package/plugin/runtime/node_modules/tslib/modules/package.json +0 -3
  787. package/plugin/runtime/node_modules/tslib/package.json +0 -47
  788. package/plugin/runtime/node_modules/tslib/tslib.d.ts +0 -462
  789. package/plugin/runtime/node_modules/tslib/tslib.es6.html +0 -1
  790. package/plugin/runtime/node_modules/tslib/tslib.es6.js +0 -411
  791. package/plugin/runtime/node_modules/tslib/tslib.es6.mjs +0 -410
  792. package/plugin/runtime/node_modules/tslib/tslib.html +0 -1
  793. package/plugin/runtime/node_modules/tslib/tslib.js +0 -493
  794. package/plugin/runtime/node_modules/which-module/LICENSE +0 -13
  795. package/plugin/runtime/node_modules/which-module/README.md +0 -58
  796. package/plugin/runtime/node_modules/which-module/index.js +0 -9
  797. package/plugin/runtime/node_modules/which-module/package.json +0 -41
  798. package/plugin/runtime/node_modules/wrap-ansi/index.js +0 -186
  799. package/plugin/runtime/node_modules/wrap-ansi/license +0 -9
  800. package/plugin/runtime/node_modules/wrap-ansi/package.json +0 -61
  801. package/plugin/runtime/node_modules/wrap-ansi/readme.md +0 -97
  802. package/plugin/runtime/node_modules/y18n/CHANGELOG.md +0 -35
  803. package/plugin/runtime/node_modules/y18n/LICENSE +0 -13
  804. package/plugin/runtime/node_modules/y18n/README.md +0 -109
  805. package/plugin/runtime/node_modules/y18n/index.js +0 -188
  806. package/plugin/runtime/node_modules/y18n/package.json +0 -39
  807. package/plugin/runtime/node_modules/yargs/CHANGELOG.md +0 -420
  808. package/plugin/runtime/node_modules/yargs/LICENSE +0 -21
  809. package/plugin/runtime/node_modules/yargs/README.md +0 -140
  810. package/plugin/runtime/node_modules/yargs/build/lib/apply-extends.d.ts +0 -2
  811. package/plugin/runtime/node_modules/yargs/build/lib/apply-extends.js +0 -65
  812. package/plugin/runtime/node_modules/yargs/build/lib/argsert.d.ts +0 -2
  813. package/plugin/runtime/node_modules/yargs/build/lib/argsert.js +0 -65
  814. package/plugin/runtime/node_modules/yargs/build/lib/command.d.ts +0 -64
  815. package/plugin/runtime/node_modules/yargs/build/lib/command.js +0 -416
  816. package/plugin/runtime/node_modules/yargs/build/lib/common-types.d.ts +0 -36
  817. package/plugin/runtime/node_modules/yargs/build/lib/common-types.js +0 -25
  818. package/plugin/runtime/node_modules/yargs/build/lib/completion-templates.d.ts +0 -2
  819. package/plugin/runtime/node_modules/yargs/build/lib/completion-templates.js +0 -50
  820. package/plugin/runtime/node_modules/yargs/build/lib/completion.d.ts +0 -21
  821. package/plugin/runtime/node_modules/yargs/build/lib/completion.js +0 -135
  822. package/plugin/runtime/node_modules/yargs/build/lib/is-promise.d.ts +0 -1
  823. package/plugin/runtime/node_modules/yargs/build/lib/is-promise.js +0 -9
  824. package/plugin/runtime/node_modules/yargs/build/lib/levenshtein.d.ts +0 -1
  825. package/plugin/runtime/node_modules/yargs/build/lib/levenshtein.js +0 -58
  826. package/plugin/runtime/node_modules/yargs/build/lib/middleware.d.ts +0 -10
  827. package/plugin/runtime/node_modules/yargs/build/lib/middleware.js +0 -57
  828. package/plugin/runtime/node_modules/yargs/build/lib/obj-filter.d.ts +0 -1
  829. package/plugin/runtime/node_modules/yargs/build/lib/obj-filter.js +0 -14
  830. package/plugin/runtime/node_modules/yargs/build/lib/parse-command.d.ts +0 -11
  831. package/plugin/runtime/node_modules/yargs/build/lib/parse-command.js +0 -36
  832. package/plugin/runtime/node_modules/yargs/build/lib/process-argv.d.ts +0 -2
  833. package/plugin/runtime/node_modules/yargs/build/lib/process-argv.js +0 -31
  834. package/plugin/runtime/node_modules/yargs/build/lib/usage.d.ts +0 -49
  835. package/plugin/runtime/node_modules/yargs/build/lib/usage.js +0 -540
  836. package/plugin/runtime/node_modules/yargs/build/lib/validation.d.ts +0 -34
  837. package/plugin/runtime/node_modules/yargs/build/lib/validation.js +0 -330
  838. package/plugin/runtime/node_modules/yargs/build/lib/yargs.d.ts +0 -274
  839. package/plugin/runtime/node_modules/yargs/build/lib/yargs.js +0 -1190
  840. package/plugin/runtime/node_modules/yargs/build/lib/yerror.d.ts +0 -4
  841. package/plugin/runtime/node_modules/yargs/build/lib/yerror.js +0 -11
  842. package/plugin/runtime/node_modules/yargs/index.js +0 -40
  843. package/plugin/runtime/node_modules/yargs/locales/be.json +0 -46
  844. package/plugin/runtime/node_modules/yargs/locales/de.json +0 -46
  845. package/plugin/runtime/node_modules/yargs/locales/en.json +0 -51
  846. package/plugin/runtime/node_modules/yargs/locales/es.json +0 -46
  847. package/plugin/runtime/node_modules/yargs/locales/fi.json +0 -49
  848. package/plugin/runtime/node_modules/yargs/locales/fr.json +0 -53
  849. package/plugin/runtime/node_modules/yargs/locales/hi.json +0 -49
  850. package/plugin/runtime/node_modules/yargs/locales/hu.json +0 -46
  851. package/plugin/runtime/node_modules/yargs/locales/id.json +0 -50
  852. package/plugin/runtime/node_modules/yargs/locales/it.json +0 -46
  853. package/plugin/runtime/node_modules/yargs/locales/ja.json +0 -51
  854. package/plugin/runtime/node_modules/yargs/locales/ko.json +0 -49
  855. package/plugin/runtime/node_modules/yargs/locales/nb.json +0 -44
  856. package/plugin/runtime/node_modules/yargs/locales/nl.json +0 -49
  857. package/plugin/runtime/node_modules/yargs/locales/nn.json +0 -44
  858. package/plugin/runtime/node_modules/yargs/locales/pirate.json +0 -13
  859. package/plugin/runtime/node_modules/yargs/locales/pl.json +0 -49
  860. package/plugin/runtime/node_modules/yargs/locales/pt.json +0 -45
  861. package/plugin/runtime/node_modules/yargs/locales/pt_BR.json +0 -48
  862. package/plugin/runtime/node_modules/yargs/locales/ru.json +0 -46
  863. package/plugin/runtime/node_modules/yargs/locales/th.json +0 -46
  864. package/plugin/runtime/node_modules/yargs/locales/tr.json +0 -48
  865. package/plugin/runtime/node_modules/yargs/locales/zh_CN.json +0 -48
  866. package/plugin/runtime/node_modules/yargs/locales/zh_TW.json +0 -47
  867. package/plugin/runtime/node_modules/yargs/package.json +0 -92
  868. package/plugin/runtime/node_modules/yargs/yargs.js +0 -14
  869. package/plugin/runtime/node_modules/yargs-parser/CHANGELOG.md +0 -601
  870. package/plugin/runtime/node_modules/yargs-parser/LICENSE.txt +0 -14
  871. package/plugin/runtime/node_modules/yargs-parser/README.md +0 -449
  872. package/plugin/runtime/node_modules/yargs-parser/index.js +0 -1032
  873. package/plugin/runtime/node_modules/yargs-parser/lib/tokenize-arg-string.js +0 -40
  874. package/plugin/runtime/node_modules/yargs-parser/package.json +0 -46
  875. package/plugin/runtime/package-lock.json +0 -447
  876. package/plugin/runtime/package.json +0 -13
  877. package/plugin/tools.py +0 -3
@@ -1,296 +0,0 @@
1
- """普通审批/澄清的原身份投影;宿主写操作只用公开canonical方法。"""
2
-
3
- import asyncio
4
- import json
5
- from .canonical_control import NativeControlError
6
- from .stream_projection import opaque_identity
7
-
8
-
9
- APPROVAL_CHOICES = {"once": "allow-once", "session": "session", "always": "allow-always", "deny": "deny"}
10
-
11
-
12
- class ControlCoordinator:
13
- def __init__(self, adapter):
14
- self.adapter = adapter
15
- self.locks = {}
16
-
17
- def lock(self, native_id):
18
- return self.locks.setdefault(native_id, asyncio.Lock())
19
-
20
- def scope(self):
21
- return self.adapter._recovery()
22
-
23
- def records(self, session_key, native_id):
24
- return [r for r in self.adapter.bindings.all() if self.scope().owned(r)
25
- and r.get("session_key") == session_key and r["native_id"] == native_id]
26
-
27
- def snapshot_mark(self, snapshot):
28
- return {key: snapshot[key] for key in ("authority_epoch", "revision", "execution_generation", "replay_epoch", "last_sequence")}
29
-
30
- def snapshot_fence(self, record, snapshot):
31
- self.scope().snapshot_fence(record, snapshot["authority_epoch"], snapshot["revision"])
32
- previous = self.adapter.bindings.read(record["run_id"]).get("ordinary_snapshot", {})
33
- if previous.get("authority_epoch") == snapshot["authority_epoch"]:
34
- if (snapshot["revision"] < previous["revision"]
35
- or snapshot["execution_generation"] < previous["execution_generation"]
36
- or (snapshot["replay_epoch"] == previous["replay_epoch"] and snapshot["last_sequence"] < previous["last_sequence"])
37
- or (snapshot["replay_epoch"] != previous["replay_epoch"] and snapshot["revision"] <= previous["revision"])):
38
- raise NativeControlError("CONTROL_SNAPSHOT_STALE")
39
-
40
- def observation_params(self, record, state):
41
- return {"conversation_id": record["native_id"], "admission_id": record["admission_id"], "input_id": record["input_id"],
42
- "prompt_id": state["prompt"]["prompt_id"], "expected_generation": state["native_generation"],
43
- "expected_epoch": state["authority_epoch"], "kind": state["prompt"]["kind"]}
44
-
45
- def observed_state(self, record, state):
46
- observe = getattr(self.adapter.runtime, "observe_control", None)
47
- fact = observe(**self.observation_params(record, state)) if callable(observe) else None
48
- if not fact or fact.get("status") == "pending":
49
- return state
50
- if fact.get("status") not in ("resolved", "expired", "cancelled"):
51
- raise NativeControlError("CONTROL_OBSERVATION_INVALID")
52
- if "winner" in fact:
53
- winner = fact["winner"]
54
- if (not isinstance(winner, str) or len(winner) > 16384
55
- or (state["prompt"]["kind"] == "approval" and winner not in state["prompt"]["choices"])):
56
- raise NativeControlError("CONTROL_OBSERVATION_INVALID")
57
- if "winner" in state and state["winner"] != winner:
58
- raise NativeControlError("CONTROL_WINNER_CONFLICT")
59
- result = {**state, "status": "resolved", "winner": winner}
60
- result.pop("resolution_unknown", None)
61
- return result
62
- return {**state, "status": fact["status"], "resolution_unknown": True}
63
-
64
- def forget_settled(self, record, states):
65
- forget = getattr(self.adapter.runtime, "forget_control", None)
66
- if callable(forget):
67
- for state in states.values():
68
- if state["status"] != "pending":
69
- forget(**self.observation_params(record, state))
70
-
71
- async def snapshot(self, session_key, native_id, *, source_snapshot=None, include_settled=False):
72
- records = self.records(session_key, native_id)
73
- if not records:
74
- return []
75
- scope = self.scope()
76
- lease = scope.lease()
77
- snapshot = source_snapshot if source_snapshot is not None else await lease[0].snapshot(conversation_id=native_id)
78
- scope.check(lease)
79
- epoch, revision, generation = (snapshot.get(k) for k in ("authority_epoch", "revision", "execution_generation"))
80
- if (snapshot.get("session_id") != native_id or snapshot.get("stored_session_id") != native_id
81
- or type(epoch) is not int or epoch < 1 or type(revision) is not int or revision < 0
82
- or type(generation) is not int or generation < 0
83
- or not isinstance(snapshot.get("replay_epoch"), str) or not snapshot["replay_epoch"]
84
- or type(snapshot.get("last_sequence")) is not int or snapshot["last_sequence"] < 0
85
- or epoch != lease[0].client.identity.get("authority_epoch")
86
- or not isinstance(snapshot.get("pending"), list) or not isinstance(snapshot.get("prompts"), list)):
87
- raise NativeControlError("CONTROL_SNAPSHOT_INVALID")
88
- owners = []
89
- for record in records:
90
- self.snapshot_fence(record, snapshot)
91
- rows = [row for row in snapshot["pending"] if row.get("admission_id") == record["admission_id"]]
92
- if len(rows) > 1:
93
- raise NativeControlError("CONTROL_ADMISSION_AMBIGUOUS")
94
- if not rows or rows[0].get("status") != "started":
95
- continue
96
- row = rows[0]
97
- if (row.get("ref") != {"profile_id": lease[3], "session_id": native_id}
98
- or row.get("input_id") != record["input_id"]
99
- or type(row.get("execution_generation")) is not int
100
- or type(row.get("authority_epoch")) is not int or row["authority_epoch"] < 1):
101
- raise NativeControlError("CONTROL_ADMISSION_INVALID")
102
- if row["execution_generation"] != generation or row["authority_epoch"] != epoch:
103
- continue
104
- receipt = await lease[0].receipt(conversation_id=native_id, admission_id=record["admission_id"], input_id=record["input_id"])
105
- scope.check(lease)
106
- self.snapshot_fence(record, snapshot)
107
- if (receipt.get("status") == "started" and receipt.get("generation") == generation
108
- and receipt.get("authority_epoch") == epoch):
109
- owners.append(record)
110
- if len(owners) > 1:
111
- raise NativeControlError("CONTROL_ADMISSION_AMBIGUOUS")
112
- active = {}
113
- for prompt in snapshot["prompts"]:
114
- if (not isinstance(prompt, dict) or prompt.get("kind") not in ("approval", "clarify")
115
- or not isinstance(prompt.get("prompt_id"), str) or not prompt["prompt_id"]
116
- or type(prompt.get("execution_generation")) is not int
117
- or prompt["execution_generation"] != generation
118
- or not isinstance(prompt.get("choices"), list)
119
- or any(not isinstance(v, str) or not v for v in prompt["choices"])
120
- or len(set(prompt["choices"])) != len(prompt["choices"])):
121
- raise NativeControlError("CONTROL_PROMPT_INVALID")
122
- if prompt["kind"] == "approval" and (not prompt["choices"] or any(v not in APPROVAL_CHOICES for v in prompt["choices"])):
123
- raise NativeControlError("CONTROL_PROMPT_UNSUPPORTED")
124
- if prompt["prompt_id"] in active:
125
- raise NativeControlError("CONTROL_PROMPT_AMBIGUOUS")
126
- active[prompt["prompt_id"]] = prompt
127
- controls = []
128
- for record in records:
129
- self.snapshot_fence(record, snapshot)
130
- states = dict(self.adapter.bindings.read(record["run_id"]).get("ordinary_controls", {}))
131
- seen = set()
132
- if owners and owners[0]["run_id"] == record["run_id"]:
133
- for prompt in active.values():
134
- identity = "prompt:" + opaque_identity(lease[3], lease[4], record["run_id"], native_id, prompt["prompt_id"], epoch, generation)
135
- seen.add(identity)
136
- previous = states.get(identity)
137
- if previous and previous["status"] != "pending":
138
- continue # 同一原prompt终结后,迟到快照不能复活。
139
- state = previous or {"id": identity, "generation": opaque_identity(identity, "v1"),
140
- "authority_epoch": epoch, "native_generation": generation, "prompt": prompt, "status": "pending"}
141
- if previous and previous["prompt"] != prompt:
142
- raise NativeControlError("CONTROL_PROMPT_CHANGED")
143
- states[identity] = state
144
- for identity, state in list(states.items()):
145
- if state["status"] == "pending":
146
- state = self.observed_state(record, state)
147
- if state["status"] == "pending" and identity not in seen:
148
- state = {**state, "status": "resolved", "resolution_unknown": True}
149
- states[identity] = state
150
- self.adapter.bindings.patch(record, {"ordinary_controls": states, "ordinary_snapshot": self.snapshot_mark(snapshot)})
151
- # 只有逐记录写ACK以后才释放内存原对象;写失败保留原观察以便原地重试。
152
- self.forget_settled(record, states)
153
- scope.snapshot_fence(record, epoch, revision, commit=True)
154
- controls.extend(self.control(record, state) for state in states.values()
155
- if include_settled or state["status"] == "pending")
156
- return controls
157
-
158
- def control(self, record, state):
159
- prompt = state["prompt"]
160
- kind = "approval" if prompt["kind"] == "approval" else "question"
161
- data = {"kind": kind, "generation": state["generation"]}
162
- control = {"id": state["id"], "kind": kind, "sessionKey": record["session_key"],
163
- "runId": record["run_id"], "generation": state["generation"], "status": state["status"], "data": data}
164
- # timeout_s是时长,不是绝对期限;快照/重连绝不合成expiresAt。
165
- if kind == "approval":
166
- options = [{"id": APPROVAL_CHOICES[value], "label": value} for value in prompt["choices"]]
167
- control["options"] = options
168
- data.update(commandText=prompt.get("command"), description=prompt.get("description"),
169
- actions=[{"decision": row["id"], "label": row["label"]} for row in options])
170
- else:
171
- data["questions"] = [{"questionId": prompt["prompt_id"], "question": prompt.get("question", ""),
172
- "options": [{"label": v, "value": v, "isRecommended": False} for v in prompt["choices"]],
173
- "multiSelect": prompt.get("multi_select") is True, "isOther": True}]
174
- if state.get("attempt") and state["status"] == "pending":
175
- data["resolutionPending"] = True
176
- if state.get("resolution_unknown"):
177
- data["resolutionUnknown"] = True
178
- if "winner" in state:
179
- data["winningAnswer"] = state["winner"]
180
- if kind == "approval":
181
- data["decision"] = APPROVAL_CHOICES[state["winner"]]
182
- return control
183
-
184
- def find(self, identity):
185
- rows = [r for r in self.adapter.bindings.all() if self.scope().owned(r)
186
- and identity in r.get("ordinary_controls", {})]
187
- return rows[0] if len(rows) == 1 else None
188
-
189
- async def lookup_locked(self, record, identity):
190
- controls = await self.snapshot(record["session_key"], record["native_id"], include_settled=True)
191
- return next((c for c in controls if c["id"] == identity), None)
192
-
193
- async def lookup(self, identity):
194
- record = self.find(identity)
195
- if record is None:
196
- return None
197
- async with self.lock(record["native_id"]):
198
- return await self.lookup_locked(record, identity)
199
-
200
- def answer(self, state, answer):
201
- prompt = state["prompt"]
202
- if not isinstance(answer, dict):
203
- raise NativeControlError("CONTROL_ANSWER_INVALID")
204
- if prompt["kind"] == "approval":
205
- if set(answer) != {"decision"}:
206
- raise NativeControlError("CONTROL_ANSWER_INVALID")
207
- choices = {APPROVAL_CHOICES[v]: v for v in prompt["choices"]}
208
- if not isinstance(answer["decision"], str) or answer["decision"] not in choices:
209
- raise NativeControlError("CONTROL_ANSWER_INVALID")
210
- return choices[answer["decision"]]
211
- if set(answer) == {"optionValue"}:
212
- if answer["optionValue"] not in prompt["choices"]:
213
- raise NativeControlError("CONTROL_ANSWER_INVALID")
214
- values = [answer["optionValue"]]
215
- elif set(answer) == {"text"} and isinstance(answer["text"], str):
216
- return answer["text"]
217
- elif set(answer) == {"answers"} and isinstance(answer["answers"], dict) and set(answer["answers"]) == {prompt["prompt_id"]}:
218
- values = answer["answers"][prompt["prompt_id"]]
219
- elif answer == {"cancel": True}:
220
- return "" # 公开canonical澄清的空答案代表跳过。
221
- else:
222
- raise NativeControlError("CONTROL_ANSWER_INVALID")
223
- if (not isinstance(values, list) or not values or any(not isinstance(v, str) for v in values)
224
- or (prompt.get("multi_select") is not True and len(values) != 1)):
225
- raise NativeControlError("CONTROL_ANSWER_INVALID")
226
- return json.dumps(values, ensure_ascii=False) if prompt.get("multi_select") is True else values[0]
227
-
228
- async def respond(self, identity, response):
229
- record = self.find(identity)
230
- if record is None:
231
- raise NativeControlError("CONTROL_NOT_FOUND")
232
- async with self.lock(record["native_id"]):
233
- scope = self.scope()
234
- lease = scope.lease()
235
- current = await self.lookup_locked(record, identity)
236
- scope.check(lease)
237
- if not current or current["status"] != "pending" or current["generation"] != response.get("generation"):
238
- raise NativeControlError("CONTROL_STALE")
239
- command = response.get("commandId")
240
- if not isinstance(command, str) or not command:
241
- raise NativeControlError("CONTROL_COMMAND_INVALID")
242
- states = dict(self.adapter.bindings.read(record["run_id"])["ordinary_controls"])
243
- state = states[identity]
244
- answer = self.answer(state, response.get("answer"))
245
- if len(answer) > 16384:
246
- raise NativeControlError("CONTROL_ANSWER_INVALID")
247
- if state.get("attempt"):
248
- raise NativeControlError("CONTROL_RESOLUTION_PENDING")
249
- state = {**state, "attempt": {"command_id": command, "answer": answer}}
250
- states[identity] = state
251
- self.adapter.bindings.patch(record, {"ordinary_controls": states})
252
- reply = await lease[0].respond_control(conversation_id=record["native_id"], admission_id=record["admission_id"],
253
- input_id=record["input_id"], prompt_id=state["prompt"]["prompt_id"], expected_generation=state["native_generation"],
254
- expected_epoch=state["authority_epoch"], kind=state["prompt"]["kind"], answer=answer)
255
- scope.check(lease)
256
- if reply.get("prompt_id") != state["prompt"]["prompt_id"] or reply.get("status") not in ("resolved", "already_resolved"):
257
- raise NativeControlError("CONTROL_RESOLUTION_PENDING")
258
- state = self.observed_state(record, state)
259
- if reply["status"] == "resolved":
260
- if "winner" in state and state["winner"] != answer:
261
- raise NativeControlError("CONTROL_WINNER_CONFLICT")
262
- state = {**state, "status": "resolved", "winner": answer}
263
- elif state["status"] == "pending":
264
- state = {**state, "status": "resolved", "resolution_unknown": True}
265
- known = "winner" in state
266
- states[identity] = state
267
- self.adapter.bindings.patch(record, {"ordinary_controls": states})
268
- self.forget_settled(record, states)
269
- await self.publish(record, self.control(record, state))
270
- return {"ok": True, "id": identity, "status": "resolved", "winnerKnown": known}
271
-
272
- async def publish(self, record, control):
273
- scope = self.scope()
274
- lease = scope.lease()
275
- digest = opaque_identity(control)
276
- published = dict(self.adapter.bindings.read(record["run_id"]).get("ordinary_published", {}))
277
- if published.get(control["id"]) == digest:
278
- return
279
- reply = await lease[1].publish({"serviceInstanceId": lease[4], "runId": record["run_id"],
280
- "source": {"id": opaque_identity("ordinary-control", lease[3], lease[4], digest), "sequence": 1},
281
- "updates": [{"kind": "control", "id": control["id"], "phase": "request" if control["status"] == "pending" else control["status"],
282
- "data": control["data"]}]})
283
- scope.check(lease)
284
- if reply.get("durable") is not True:
285
- raise NativeControlError("CONTROL_UPDATE_UNCONFIRMED")
286
- published[control["id"]] = digest
287
- self.adapter.bindings.patch(record, {"ordinary_published": published})
288
-
289
- async def sync(self, record):
290
- if not self.scope().owned(record) or not callable(getattr(self.adapter.runtime, "snapshot", None)):
291
- return
292
- async with self.lock(record["native_id"]):
293
- controls = await self.snapshot(record["session_key"], record["native_id"], include_settled=True)
294
- for control in controls:
295
- if control["runId"] == record["run_id"]:
296
- await self.publish(record, control)
@@ -1,210 +0,0 @@
1
- """媒体回调的原输入上下文;按异步任务隔离,不保存全局当前运行。"""
2
-
3
- from contextlib import asynccontextmanager
4
- from contextvars import ContextVar
5
- from dataclasses import dataclass
6
- import logging
7
- from .canonical_control import NativeControlError
8
-
9
- _delivery = ContextVar("fridaynext_owned_media_delivery", default=None)
10
- logger = logging.getLogger(__name__)
11
-
12
-
13
- def _source_identity(source, message_id):
14
- return (getattr(getattr(source, "platform", None), "value", None), getattr(source, "chat_id", None),
15
- getattr(source, "chat_type", None), getattr(source, "user_id", None), getattr(source, "thread_id", None),
16
- getattr(source, "message_id", None), getattr(source, "profile", None), message_id)
17
-
18
-
19
- def source_identity(event):
20
- return _source_identity(getattr(event, "source", None), getattr(event, "message_id", None))
21
-
22
-
23
- @dataclass(frozen=True)
24
- class DeliveryContext:
25
- adapter: object
26
- event: object
27
- source: tuple
28
- lease: tuple
29
- client: object
30
- connection_id: int
31
- owner_epoch: int
32
- service_id: str
33
- profile: str
34
- run_id: str
35
- session_key: str
36
- chat_id: str
37
- input_id: str
38
- native_id: str
39
- admission_id: str
40
- answer_id: str
41
- generation: int
42
- authority_epoch: int
43
- selected: bool = False
44
- response_text: str = None
45
- media_sources: tuple = None
46
-
47
- def wire(self):
48
- return {"serviceInstanceId": self.service_id, "profileRoot": self.profile,
49
- "runId": self.run_id, "sessionKey": self.session_key, "chatId": self.chat_id,
50
- "inputId": self.input_id, "nativeId": self.native_id,
51
- "admissionId": self.admission_id, "answerId": self.answer_id, "generation": self.generation,
52
- "authorityEpoch": self.authority_epoch, "ownerEpoch": self.owner_epoch}
53
-
54
-
55
- def current_delivery(adapter):
56
- context = _delivery.get()
57
- return context if context is not None and context.adapter is adapter else None
58
-
59
-
60
- def _check_lease(adapter, context):
61
- adapter._recovery().check(context.lease)
62
- client = context.lease[0].client
63
- if (context.adapter is not adapter or client is not context.client
64
- or getattr(client, "connection_id", None) != context.connection_id
65
- or not isinstance(getattr(client, "identity", None), dict)
66
- or client.identity.get("authority_epoch") != context.owner_epoch
67
- or (not context.selected and source_identity(context.event) != context.source)
68
- or (context.selected and context.event is not None)):
69
- raise NativeControlError("MEDIA_DELIVERY_CONTEXT_CHANGED")
70
-
71
-
72
- def _record(adapter, event):
73
- if (getattr(event, "internal", False) is not False or not getattr(event, "message_id", None)
74
- or getattr(getattr(event, "source", None), "message_id", None) != event.message_id
75
- or getattr(event, "ledger_message_id", None) not in (None, event.message_id)
76
- or getattr(event, "reply_anchor_override", None) not in (None, event.message_id)):
77
- raise NativeControlError("MEDIA_DELIVERY_INPUT_INVALID")
78
- records = [record for record in adapter.bindings.all()
79
- if not record.get("legacy") and record.get("service_id") == adapter.service_id
80
- and record.get("profile") == str(adapter.profile)
81
- and record.get("chat_id") == event.source.chat_id
82
- and record.get("input_id") == event.message_id]
83
- if len(records) != 1:
84
- raise NativeControlError("MEDIA_DELIVERY_INPUT_UNOWNED")
85
- expected = adapter._source(records[0])
86
- if source_identity(event) != _source_identity(expected, event.message_id):
87
- raise NativeControlError("MEDIA_DELIVERY_SOURCE_MISMATCH")
88
- return records[0]
89
-
90
-
91
- _BINDING_FIELDS = ("service_id", "profile", "run_id", "session_key", "chat_id", "input_id", "native_id", "admission_id")
92
-
93
-
94
- def _selected_record(adapter, record, identity=None):
95
- latest = adapter.bindings.read(record.get("run_id"))
96
- expected = identity or tuple(record.get(key) for key in _BINDING_FIELDS)
97
- if (latest is None or latest.get("shared") is not True or latest.get("legacy")
98
- or latest.get("service_id") != adapter.service_id or latest.get("profile") != str(adapter.profile)
99
- or any(not isinstance(value, str) or not value for value in expected)
100
- or tuple(latest.get(key) for key in _BINDING_FIELDS) != expected):
101
- raise NativeControlError("MEDIA_SELECTED_BINDING_CHANGED")
102
- return latest
103
-
104
-
105
- async def capture(adapter, event, *, media_sources=None):
106
- return await _capture(adapter, _record(adapter, event), event=event, media_sources=media_sources)
107
-
108
-
109
- async def capture_selected(adapter, record):
110
- # selected来源是本插件已授权的原持久绑定;不伪造平台event或借当前运行。
111
- record = _selected_record(adapter, record)
112
- return await _capture(adapter, record, selected=True)
113
-
114
-
115
- async def _capture(adapter, record, *, event=None, selected=False, media_sources=None):
116
- if media_sources is not None and (type(media_sources) is not tuple or any(type(item) is not tuple or len(item) != 2
117
- or not isinstance(item[0], str) or item[1] is not None and not isinstance(item[1], str) for item in media_sources)):
118
- raise NativeControlError("MEDIA_OUTPUT_REFERENCE_INVALID")
119
- lease = adapter._recovery().lease()
120
- if lease[1] is None:
121
- raise NativeControlError("MEDIA_DELIVERY_HOST_UNAVAILABLE")
122
- client = lease[0].client
123
- owner_identity = getattr(client, "identity", None)
124
- owner_epoch = owner_identity.get("authority_epoch") if isinstance(owner_identity, dict) else None
125
- connection = getattr(client, "connection_id", None)
126
- if type(owner_epoch) is not int or owner_epoch < 1 or type(connection) is not int or connection < 1:
127
- raise NativeControlError("MEDIA_DELIVERY_OWNER_INVALID")
128
- identity = tuple(record.get(key) for key in _BINDING_FIELDS) if selected else source_identity(event)
129
- def unchanged():
130
- if selected:
131
- _selected_record(adapter, record, identity)
132
- elif source_identity(event) != identity:
133
- raise NativeControlError("MEDIA_DELIVERY_SOURCE_CHANGED")
134
- receipt = await adapter._receipt(record)
135
- adapter._recovery().check(lease)
136
- unchanged()
137
- if (receipt is None or receipt.get("status") != "terminal" or receipt.get("outcome") != "completed"
138
- or not adapter._recovery().owned(record) or type(receipt.get("generation")) is not int
139
- or receipt["generation"] < 0 or type(receipt.get("authority_epoch")) is not int
140
- or receipt["authority_epoch"] < 1):
141
- raise NativeControlError("MEDIA_DELIVERY_RECEIPT_INVALID")
142
- result = await adapter._result(record)
143
- adapter._recovery().check(lease)
144
- unchanged()
145
- answer_id = result.get("answer_uid") if isinstance(result, dict) else None
146
- if not isinstance(answer_id, str) or not answer_id:
147
- raise NativeControlError("MEDIA_DELIVERY_ANSWER_UNAVAILABLE")
148
- after = await adapter._receipt(record)
149
- adapter._recovery().check(lease)
150
- unchanged()
151
- if (after is None or any(after.get(key) != receipt.get(key) for key in ("status", "outcome", "generation", "authority_epoch"))):
152
- raise NativeControlError("MEDIA_DELIVERY_RECEIPT_CHANGED")
153
- if owner_epoch < receipt["authority_epoch"]:
154
- raise NativeControlError("MEDIA_DELIVERY_OWNER_INVALID")
155
- context = DeliveryContext(adapter, event, identity, lease, client, connection, owner_epoch,
156
- adapter.service_id, str(adapter.profile), record["run_id"],
157
- record["session_key"], record["chat_id"], record["input_id"],
158
- record["native_id"], record["admission_id"], answer_id, receipt["generation"], receipt["authority_epoch"],
159
- selected=selected, response_text=result.get("text") if selected else None, media_sources=media_sources)
160
- _check_lease(adapter, context)
161
- return context
162
-
163
-
164
- async def check_delivery(adapter, context):
165
- _check_lease(adapter, context)
166
- record = adapter.bindings.read(context.run_id)
167
- expected = {"service_id": context.service_id, "profile": context.profile,
168
- "run_id": context.run_id, "session_key": context.session_key,
169
- "chat_id": context.chat_id, "input_id": context.input_id,
170
- "native_id": context.native_id, "admission_id": context.admission_id, "answer_uid": context.answer_id}
171
- if record is None or any(record.get(key) != value for key, value in expected.items()):
172
- raise NativeControlError("MEDIA_DELIVERY_BINDING_CHANGED")
173
- if context.selected:
174
- _selected_record(adapter, record, context.source)
175
- receipt = await adapter._receipt(record)
176
- _check_lease(adapter, context)
177
- if (receipt is None or receipt.get("status") != "terminal" or receipt.get("outcome") != "completed"
178
- or receipt.get("generation") != context.generation or receipt.get("authority_epoch") != context.authority_epoch):
179
- raise NativeControlError("MEDIA_DELIVERY_RECEIPT_CHANGED")
180
- return record
181
-
182
-
183
- @asynccontextmanager
184
- async def owned_delivery(adapter, event, *, media_sources=None):
185
- # 嵌套无归属事件也必须清除继承值,不能借用外层另一输入的context。
186
- try:
187
- context = await capture(adapter, event, media_sources=media_sources)
188
- except (NativeControlError, RuntimeError, ValueError, OSError):
189
- logger.warning("media.delivery.context_unavailable")
190
- context = None
191
- token = _delivery.set(context)
192
- try:
193
- yield context
194
- finally:
195
- _delivery.reset(token)
196
-
197
-
198
- @asynccontextmanager
199
- async def owned_selected_delivery(adapter, record):
200
- try:
201
- context = await capture_selected(adapter, record)
202
- except (NativeControlError, RuntimeError, ValueError, OSError):
203
- # 单个已退役selected展示不能阻止同服务其他原plan恢复,也不能借外层context。
204
- logger.warning("media.selected.context_unavailable")
205
- context = None
206
- token = _delivery.set(context)
207
- try:
208
- yield context
209
- finally:
210
- _delivery.reset(token)