@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.
- package/README.md +2 -2
- package/install-config.js +22 -5
- package/install-host.py +95 -0
- package/install-runtime.js +158 -38
- package/install.js +19 -4
- package/package.json +5 -5
- package/plugin.bundle +0 -0
- package/validation.json +1 -0
- package/plugin/README.md +0 -21
- package/plugin/__init__.py +0 -3
- package/plugin/fridaynext_plugin/__init__.py +0 -81
- package/plugin/fridaynext_plugin/adapter.py +0 -1333
- package/plugin/fridaynext_plugin/agent_defaults.py +0 -107
- package/plugin/fridaynext_plugin/agent_management.py +0 -158
- package/plugin/fridaynext_plugin/canonical_control.py +0 -517
- package/plugin/fridaynext_plugin/compat_v0225.py +0 -2080
- package/plugin/fridaynext_plugin/continuations.py +0 -271
- package/plugin/fridaynext_plugin/control_cli.py +0 -101
- package/plugin/fridaynext_plugin/controls.py +0 -296
- package/plugin/fridaynext_plugin/delivery_context.py +0 -210
- package/plugin/fridaynext_plugin/device-tools-v1.json +0 -302
- package/plugin/fridaynext_plugin/device_tools.py +0 -144
- package/plugin/fridaynext_plugin/diagnostics.py +0 -165
- package/plugin/fridaynext_plugin/history.py +0 -443
- package/plugin/fridaynext_plugin/host.py +0 -320
- package/plugin/fridaynext_plugin/initial_settings.py +0 -184
- package/plugin/fridaynext_plugin/inline_media.py +0 -58
- package/plugin/fridaynext_plugin/media_input.py +0 -186
- package/plugin/fridaynext_plugin/media_observations.py +0 -172
- package/plugin/fridaynext_plugin/media_output.py +0 -277
- package/plugin/fridaynext_plugin/message_speech.py +0 -143
- package/plugin/fridaynext_plugin/multi_agent.py +0 -221
- package/plugin/fridaynext_plugin/recovery.py +0 -214
- package/plugin/fridaynext_plugin/reply_context.py +0 -39
- package/plugin/fridaynext_plugin/runtime_port.py +0 -593
- package/plugin/fridaynext_plugin/scheduled_tasks.py +0 -229
- package/plugin/fridaynext_plugin/sessions.py +0 -184
- package/plugin/fridaynext_plugin/settings.py +0 -699
- package/plugin/fridaynext_plugin/settings_control.py +0 -101
- package/plugin/fridaynext_plugin/slash_commands.py +0 -163
- package/plugin/fridaynext_plugin/state.py +0 -155
- package/plugin/fridaynext_plugin/stream_bridge.py +0 -550
- package/plugin/fridaynext_plugin/stream_media.py +0 -59
- package/plugin/fridaynext_plugin/stream_projection.py +0 -293
- package/plugin/fridaynext_plugin/subagents.py +0 -228
- package/plugin/plugin.yaml +0 -29
- package/plugin/runtime/dist/commands-routes.js +0 -94
- package/plugin/runtime/dist/device-tools-v1.json +0 -302
- package/plugin/runtime/dist/host-peer.js +0 -106
- package/plugin/runtime/dist/hosted-artifacts.js +0 -189
- package/plugin/runtime/dist/hosted-backend.js +0 -436
- package/plugin/runtime/dist/hosted-continuations.js +0 -41
- package/plugin/runtime/dist/hosted-delivery-observations.js +0 -91
- package/plugin/runtime/dist/hosted-device-tools.js +0 -82
- package/plugin/runtime/dist/hosted-media.js +0 -368
- package/plugin/runtime/dist/hosted-recovery.js +0 -55
- package/plugin/runtime/dist/hosted-settings.js +0 -26
- package/plugin/runtime/dist/hosted-stream.js +0 -214
- package/plugin/runtime/dist/hosted-subagents.js +0 -78
- package/plugin/runtime/dist/identity.js +0 -55
- package/plugin/runtime/dist/kit-contract.json +0 -1
- package/plugin/runtime/dist/media-transport.js +0 -168
- package/plugin/runtime/dist/oss-upload-worker.js +0 -7
- package/plugin/runtime/dist/oss-upload.js +0 -94
- package/plugin/runtime/dist/ownership.js +0 -21
- package/plugin/runtime/dist/platform-service.js +0 -36
- package/plugin/runtime/dist/plugin-control.js +0 -193
- package/plugin/runtime/dist/plugin-worker.js +0 -43
- package/plugin/runtime/dist/private-files.js +0 -24
- package/plugin/runtime/dist/process-lock.js +0 -40
- package/plugin/runtime/dist/public-config.js +0 -58
- package/plugin/runtime/dist/scheduled-routes.js +0 -63
- package/plugin/runtime/dist/service-errors.js +0 -11
- package/plugin/runtime/dist/service-host.js +0 -275
- package/plugin/runtime/dist/speech-routes.js +0 -111
- package/plugin/runtime/dist/tool-presentation.js +0 -399
- package/plugin/runtime/node_modules/.package-lock.json +0 -436
- package/plugin/runtime/node_modules/@noble/hashes/LICENSE +0 -21
- package/plugin/runtime/node_modules/@noble/hashes/README.md +0 -521
- package/plugin/runtime/node_modules/@noble/hashes/_assert.d.ts +0 -17
- package/plugin/runtime/node_modules/@noble/hashes/_assert.d.ts.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/_assert.js +0 -18
- package/plugin/runtime/node_modules/@noble/hashes/_assert.js.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/_blake.d.ts +0 -14
- package/plugin/runtime/node_modules/@noble/hashes/_blake.d.ts.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/_blake.js +0 -50
- package/plugin/runtime/node_modules/@noble/hashes/_blake.js.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/_md.d.ts +0 -51
- package/plugin/runtime/node_modules/@noble/hashes/_md.d.ts.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/_md.js +0 -162
- package/plugin/runtime/node_modules/@noble/hashes/_md.js.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/_u64.d.ts +0 -55
- package/plugin/runtime/node_modules/@noble/hashes/_u64.d.ts.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/_u64.js +0 -90
- package/plugin/runtime/node_modules/@noble/hashes/_u64.js.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/argon2.d.ts +0 -32
- package/plugin/runtime/node_modules/@noble/hashes/argon2.d.ts.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/argon2.js +0 -401
- package/plugin/runtime/node_modules/@noble/hashes/argon2.js.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/blake1.d.ts +0 -106
- package/plugin/runtime/node_modules/@noble/hashes/blake1.d.ts.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/blake1.js +0 -459
- package/plugin/runtime/node_modules/@noble/hashes/blake1.js.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/blake2.d.ts +0 -116
- package/plugin/runtime/node_modules/@noble/hashes/blake2.d.ts.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/blake2.js +0 -420
- package/plugin/runtime/node_modules/@noble/hashes/blake2.js.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/blake2b.d.ts +0 -11
- package/plugin/runtime/node_modules/@noble/hashes/blake2b.d.ts.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/blake2b.js +0 -14
- package/plugin/runtime/node_modules/@noble/hashes/blake2b.js.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/blake2s.d.ts +0 -20
- package/plugin/runtime/node_modules/@noble/hashes/blake2s.d.ts.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/blake2s.js +0 -24
- package/plugin/runtime/node_modules/@noble/hashes/blake2s.js.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/blake3.d.ts +0 -54
- package/plugin/runtime/node_modules/@noble/hashes/blake3.d.ts.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/blake3.js +0 -255
- package/plugin/runtime/node_modules/@noble/hashes/blake3.js.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/crypto.d.ts +0 -2
- package/plugin/runtime/node_modules/@noble/hashes/crypto.d.ts.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/crypto.js +0 -5
- package/plugin/runtime/node_modules/@noble/hashes/crypto.js.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/cryptoNode.d.ts +0 -2
- package/plugin/runtime/node_modules/@noble/hashes/cryptoNode.d.ts.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/cryptoNode.js +0 -18
- package/plugin/runtime/node_modules/@noble/hashes/cryptoNode.js.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/eskdf.d.ts +0 -47
- package/plugin/runtime/node_modules/@noble/hashes/eskdf.d.ts.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/eskdf.js +0 -166
- package/plugin/runtime/node_modules/@noble/hashes/eskdf.js.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/esm/_assert.d.ts +0 -17
- package/plugin/runtime/node_modules/@noble/hashes/esm/_assert.d.ts.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/esm/_assert.js +0 -15
- package/plugin/runtime/node_modules/@noble/hashes/esm/_assert.js.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/esm/_blake.d.ts +0 -14
- package/plugin/runtime/node_modules/@noble/hashes/esm/_blake.d.ts.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/esm/_blake.js +0 -45
- package/plugin/runtime/node_modules/@noble/hashes/esm/_blake.js.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/esm/_md.d.ts +0 -51
- package/plugin/runtime/node_modules/@noble/hashes/esm/_md.d.ts.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/esm/_md.js +0 -155
- package/plugin/runtime/node_modules/@noble/hashes/esm/_md.js.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/esm/_u64.d.ts +0 -55
- package/plugin/runtime/node_modules/@noble/hashes/esm/_u64.d.ts.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/esm/_u64.js +0 -67
- package/plugin/runtime/node_modules/@noble/hashes/esm/_u64.js.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/esm/argon2.d.ts +0 -32
- package/plugin/runtime/node_modules/@noble/hashes/esm/argon2.d.ts.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/esm/argon2.js +0 -392
- package/plugin/runtime/node_modules/@noble/hashes/esm/argon2.js.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/esm/blake1.d.ts +0 -106
- package/plugin/runtime/node_modules/@noble/hashes/esm/blake1.d.ts.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/esm/blake1.js +0 -452
- package/plugin/runtime/node_modules/@noble/hashes/esm/blake1.js.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/esm/blake2.d.ts +0 -116
- package/plugin/runtime/node_modules/@noble/hashes/esm/blake2.d.ts.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/esm/blake2.js +0 -413
- package/plugin/runtime/node_modules/@noble/hashes/esm/blake2.js.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/esm/blake2b.d.ts +0 -11
- package/plugin/runtime/node_modules/@noble/hashes/esm/blake2b.d.ts.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/esm/blake2b.js +0 -11
- package/plugin/runtime/node_modules/@noble/hashes/esm/blake2b.js.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/esm/blake2s.d.ts +0 -20
- package/plugin/runtime/node_modules/@noble/hashes/esm/blake2s.d.ts.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/esm/blake2s.js +0 -21
- package/plugin/runtime/node_modules/@noble/hashes/esm/blake2s.js.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/esm/blake3.d.ts +0 -54
- package/plugin/runtime/node_modules/@noble/hashes/esm/blake3.d.ts.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/esm/blake3.js +0 -251
- package/plugin/runtime/node_modules/@noble/hashes/esm/blake3.js.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/esm/crypto.d.ts +0 -2
- package/plugin/runtime/node_modules/@noble/hashes/esm/crypto.d.ts.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/esm/crypto.js +0 -2
- package/plugin/runtime/node_modules/@noble/hashes/esm/crypto.js.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/esm/cryptoNode.d.ts +0 -2
- package/plugin/runtime/node_modules/@noble/hashes/esm/cryptoNode.d.ts.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/esm/cryptoNode.js +0 -15
- package/plugin/runtime/node_modules/@noble/hashes/esm/cryptoNode.js.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/esm/eskdf.d.ts +0 -47
- package/plugin/runtime/node_modules/@noble/hashes/esm/eskdf.d.ts.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/esm/eskdf.js +0 -160
- package/plugin/runtime/node_modules/@noble/hashes/esm/eskdf.js.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/esm/hkdf.d.ts +0 -36
- package/plugin/runtime/node_modules/@noble/hashes/esm/hkdf.d.ts.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/esm/hkdf.js +0 -82
- package/plugin/runtime/node_modules/@noble/hashes/esm/hkdf.js.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/esm/hmac.d.ts +0 -35
- package/plugin/runtime/node_modules/@noble/hashes/esm/hmac.d.ts.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/esm/hmac.js +0 -86
- package/plugin/runtime/node_modules/@noble/hashes/esm/hmac.js.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/esm/index.d.ts +0 -2
- package/plugin/runtime/node_modules/@noble/hashes/esm/index.d.ts.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/esm/index.js +0 -33
- package/plugin/runtime/node_modules/@noble/hashes/esm/index.js.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/esm/legacy.d.ts +0 -71
- package/plugin/runtime/node_modules/@noble/hashes/esm/legacy.d.ts.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/esm/legacy.js +0 -281
- package/plugin/runtime/node_modules/@noble/hashes/esm/legacy.js.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/esm/package.json +0 -10
- package/plugin/runtime/node_modules/@noble/hashes/esm/pbkdf2.d.ts +0 -23
- package/plugin/runtime/node_modules/@noble/hashes/esm/pbkdf2.d.ts.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/esm/pbkdf2.js +0 -97
- package/plugin/runtime/node_modules/@noble/hashes/esm/pbkdf2.js.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/esm/ripemd160.d.ts +0 -13
- package/plugin/runtime/node_modules/@noble/hashes/esm/ripemd160.d.ts.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/esm/ripemd160.js +0 -13
- package/plugin/runtime/node_modules/@noble/hashes/esm/ripemd160.js.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/esm/scrypt.d.ts +0 -34
- package/plugin/runtime/node_modules/@noble/hashes/esm/scrypt.d.ts.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/esm/scrypt.js +0 -228
- package/plugin/runtime/node_modules/@noble/hashes/esm/scrypt.js.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/esm/sha1.d.ts +0 -11
- package/plugin/runtime/node_modules/@noble/hashes/esm/sha1.d.ts.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/esm/sha1.js +0 -11
- package/plugin/runtime/node_modules/@noble/hashes/esm/sha1.js.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/esm/sha2.d.ts +0 -159
- package/plugin/runtime/node_modules/@noble/hashes/esm/sha2.d.ts.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/esm/sha2.js +0 -375
- package/plugin/runtime/node_modules/@noble/hashes/esm/sha2.js.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/esm/sha256.d.ts +0 -20
- package/plugin/runtime/node_modules/@noble/hashes/esm/sha256.d.ts.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/esm/sha256.js +0 -20
- package/plugin/runtime/node_modules/@noble/hashes/esm/sha256.js.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/esm/sha3-addons.d.ts +0 -142
- package/plugin/runtime/node_modules/@noble/hashes/esm/sha3-addons.d.ts.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/esm/sha3-addons.js +0 -393
- package/plugin/runtime/node_modules/@noble/hashes/esm/sha3-addons.js.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/esm/sha3.d.ts +0 -53
- package/plugin/runtime/node_modules/@noble/hashes/esm/sha3.d.ts.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/esm/sha3.js +0 -234
- package/plugin/runtime/node_modules/@noble/hashes/esm/sha3.js.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/esm/sha512.d.ts +0 -26
- package/plugin/runtime/node_modules/@noble/hashes/esm/sha512.d.ts.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/esm/sha512.js +0 -26
- package/plugin/runtime/node_modules/@noble/hashes/esm/sha512.js.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/esm/utils.d.ts +0 -161
- package/plugin/runtime/node_modules/@noble/hashes/esm/utils.d.ts.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/esm/utils.js +0 -281
- package/plugin/runtime/node_modules/@noble/hashes/esm/utils.js.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/hkdf.d.ts +0 -36
- package/plugin/runtime/node_modules/@noble/hashes/hkdf.d.ts.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/hkdf.js +0 -88
- package/plugin/runtime/node_modules/@noble/hashes/hkdf.js.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/hmac.d.ts +0 -35
- package/plugin/runtime/node_modules/@noble/hashes/hmac.d.ts.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/hmac.js +0 -91
- package/plugin/runtime/node_modules/@noble/hashes/hmac.js.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/index.d.ts +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/index.d.ts.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/index.js +0 -33
- package/plugin/runtime/node_modules/@noble/hashes/index.js.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/legacy.d.ts +0 -71
- package/plugin/runtime/node_modules/@noble/hashes/legacy.d.ts.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/legacy.js +0 -287
- package/plugin/runtime/node_modules/@noble/hashes/legacy.js.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/package.json +0 -266
- package/plugin/runtime/node_modules/@noble/hashes/pbkdf2.d.ts +0 -23
- package/plugin/runtime/node_modules/@noble/hashes/pbkdf2.d.ts.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/pbkdf2.js +0 -101
- package/plugin/runtime/node_modules/@noble/hashes/pbkdf2.js.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/ripemd160.d.ts +0 -13
- package/plugin/runtime/node_modules/@noble/hashes/ripemd160.d.ts.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/ripemd160.js +0 -16
- package/plugin/runtime/node_modules/@noble/hashes/ripemd160.js.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/scrypt.d.ts +0 -34
- package/plugin/runtime/node_modules/@noble/hashes/scrypt.d.ts.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/scrypt.js +0 -232
- package/plugin/runtime/node_modules/@noble/hashes/scrypt.js.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/sha1.d.ts +0 -11
- package/plugin/runtime/node_modules/@noble/hashes/sha1.d.ts.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/sha1.js +0 -14
- package/plugin/runtime/node_modules/@noble/hashes/sha1.js.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/sha2.d.ts +0 -159
- package/plugin/runtime/node_modules/@noble/hashes/sha2.d.ts.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/sha2.js +0 -384
- package/plugin/runtime/node_modules/@noble/hashes/sha2.js.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/sha256.d.ts +0 -20
- package/plugin/runtime/node_modules/@noble/hashes/sha256.d.ts.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/sha256.js +0 -23
- package/plugin/runtime/node_modules/@noble/hashes/sha256.js.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/sha3-addons.d.ts +0 -142
- package/plugin/runtime/node_modules/@noble/hashes/sha3-addons.d.ts.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/sha3-addons.js +0 -402
- package/plugin/runtime/node_modules/@noble/hashes/sha3-addons.js.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/sha3.d.ts +0 -53
- package/plugin/runtime/node_modules/@noble/hashes/sha3.d.ts.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/sha3.js +0 -239
- package/plugin/runtime/node_modules/@noble/hashes/sha3.js.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/sha512.d.ts +0 -26
- package/plugin/runtime/node_modules/@noble/hashes/sha512.d.ts.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/sha512.js +0 -29
- package/plugin/runtime/node_modules/@noble/hashes/sha512.js.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/src/_assert.ts +0 -22
- package/plugin/runtime/node_modules/@noble/hashes/src/_blake.ts +0 -50
- package/plugin/runtime/node_modules/@noble/hashes/src/_md.ts +0 -176
- package/plugin/runtime/node_modules/@noble/hashes/src/_u64.ts +0 -91
- package/plugin/runtime/node_modules/@noble/hashes/src/argon2.ts +0 -497
- package/plugin/runtime/node_modules/@noble/hashes/src/blake1.ts +0 -534
- package/plugin/runtime/node_modules/@noble/hashes/src/blake2.ts +0 -486
- package/plugin/runtime/node_modules/@noble/hashes/src/blake2b.ts +0 -10
- package/plugin/runtime/node_modules/@noble/hashes/src/blake2s.ts +0 -20
- package/plugin/runtime/node_modules/@noble/hashes/src/blake3.ts +0 -272
- package/plugin/runtime/node_modules/@noble/hashes/src/crypto.ts +0 -9
- package/plugin/runtime/node_modules/@noble/hashes/src/cryptoNode.ts +0 -15
- package/plugin/runtime/node_modules/@noble/hashes/src/eskdf.ts +0 -187
- package/plugin/runtime/node_modules/@noble/hashes/src/hkdf.ts +0 -88
- package/plugin/runtime/node_modules/@noble/hashes/src/hmac.ts +0 -94
- package/plugin/runtime/node_modules/@noble/hashes/src/index.ts +0 -31
- package/plugin/runtime/node_modules/@noble/hashes/src/legacy.ts +0 -293
- package/plugin/runtime/node_modules/@noble/hashes/src/pbkdf2.ts +0 -122
- package/plugin/runtime/node_modules/@noble/hashes/src/ripemd160.ts +0 -12
- package/plugin/runtime/node_modules/@noble/hashes/src/scrypt.ts +0 -257
- package/plugin/runtime/node_modules/@noble/hashes/src/sha1.ts +0 -10
- package/plugin/runtime/node_modules/@noble/hashes/src/sha2.ts +0 -402
- package/plugin/runtime/node_modules/@noble/hashes/src/sha256.ts +0 -24
- package/plugin/runtime/node_modules/@noble/hashes/src/sha3-addons.ts +0 -499
- package/plugin/runtime/node_modules/@noble/hashes/src/sha3.ts +0 -258
- package/plugin/runtime/node_modules/@noble/hashes/src/sha512.ts +0 -34
- package/plugin/runtime/node_modules/@noble/hashes/src/utils.ts +0 -395
- package/plugin/runtime/node_modules/@noble/hashes/utils.d.ts +0 -161
- package/plugin/runtime/node_modules/@noble/hashes/utils.d.ts.map +0 -1
- package/plugin/runtime/node_modules/@noble/hashes/utils.js +0 -313
- package/plugin/runtime/node_modules/@noble/hashes/utils.js.map +0 -1
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/API.md +0 -536
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/LICENSE +0 -21
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/README.md +0 -97
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/attachment/store.d.ts +0 -57
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/attachment/store.js +0 -618
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/attest/attest-gate.d.ts +0 -29
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/attest/attest-gate.js +0 -58
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/attest/attest-key-prune.d.ts +0 -17
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/attest/attest-key-prune.js +0 -37
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/attest/attest-store.d.ts +0 -27
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/attest/attest-store.js +0 -146
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/attest/verifier.d.ts +0 -1
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/attest/verifier.js +0 -2
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/delivery-observations.d.ts +0 -38
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/delivery-observations.js +0 -85
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/history.d.ts +0 -89
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/history.js +0 -179
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/operations.d.ts +0 -136
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/operations.js +0 -105
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/pairing-codec.d.ts +0 -39
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/pairing-codec.js +0 -233
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/reconciliation.d.ts +0 -6
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/reconciliation.js +0 -17
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/settings-schema.d.ts +0 -3
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/settings-schema.js +0 -45
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/tool-presentation.d.ts +0 -10
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/tool-presentation.js +0 -2
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/types.d.ts +0 -259
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/types.js +0 -33
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/work-context.d.ts +0 -56
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/work-context.js +0 -60
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/device-request/coordinator.d.ts +0 -19
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/device-request/coordinator.js +0 -113
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/device-request/pending-store.d.ts +0 -37
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/device-request/pending-store.js +0 -67
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/device-request/results.d.ts +0 -14
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/device-request/results.js +0 -39
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/index.d.ts +0 -21
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/index.js +0 -20
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/link-preview/og-parse.d.ts +0 -21
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/link-preview/og-parse.js +0 -234
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/link-preview/preview-service.d.ts +0 -39
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/link-preview/preview-service.js +0 -232
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/link-preview/ssrf-guard.d.ts +0 -52
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/link-preview/ssrf-guard.js +0 -236
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/prompt-capsules/capsules-store.d.ts +0 -38
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/prompt-capsules/capsules-store.js +0 -149
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/attachment-crypto.d.ts +0 -4
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/attachment-crypto.js +0 -73
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/cert-selfsign.d.ts +0 -6
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/cert-selfsign.js +0 -88
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/filter-proxy.d.ts +0 -17
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/filter-proxy.js +0 -231
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/frpc-manager.d.ts +0 -76
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/frpc-manager.js +0 -1332
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/oss-transfer.d.ts +0 -43
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/oss-transfer.js +0 -280
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/pairing-voucher.d.ts +0 -13
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/pairing-voucher.js +0 -58
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/private-file.d.ts +0 -2
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/private-file.js +0 -11
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/standby-loop-guard.d.ts +0 -9
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/standby-loop-guard.js +0 -24
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/tls-identity.d.ts +0 -36
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/tls-identity.js +0 -151
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/tunnel-watchdog-policy.d.ts +0 -24
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/public-access/tunnel-watchdog-policy.js +0 -49
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/push/push-runtime.d.ts +0 -45
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/push/push-runtime.js +0 -233
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/push/relay-transport.d.ts +0 -8
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/push/relay-transport.js +0 -27
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/canonical-update-batcher.d.ts +0 -26
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/canonical-update-batcher.js +0 -112
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/channel-kernel.d.ts +0 -52
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/channel-kernel.js +0 -332
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/channel-runtime.d.ts +0 -2
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/channel-runtime.js +0 -2
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/delivery-observation-publisher.d.ts +0 -43
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/delivery-observation-publisher.js +0 -211
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/durable-run-store.d.ts +0 -264
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/durable-run-store.js +0 -1661
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/runner.d.ts +0 -37
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/runner.js +0 -319
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/scheduler.d.ts +0 -13
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/scheduler.js +0 -130
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/work-context.d.ts +0 -13
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/work-context.js +0 -73
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/server-name/server-name-store.d.ts +0 -21
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/server-name/server-name-store.js +0 -52
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/service/channel-service.d.ts +0 -38
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/service/channel-service.js +0 -266
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/service/infrastructure.d.ts +0 -87
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/service/infrastructure.js +0 -179
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/testing/contract-harness.d.ts +0 -25
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/testing/contract-harness.js +0 -44
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/testing/reference-adapter.d.ts +0 -39
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/testing/reference-adapter.js +0 -76
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/testing/weaknet-server.d.ts +0 -6
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/testing/weaknet-server.js +0 -130
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/attest.d.ts +0 -39
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/attest.js +0 -114
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/body.d.ts +0 -2
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/body.js +0 -24
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/command-lifecycle.d.ts +0 -47
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/command-lifecycle.js +0 -184
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/controls.d.ts +0 -9
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/controls.js +0 -123
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/files-download.d.ts +0 -18
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/files-download.js +0 -197
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/files-upload.d.ts +0 -20
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/files-upload.js +0 -227
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/link-preview.d.ts +0 -15
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/link-preview.js +0 -45
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/messages.d.ts +0 -10
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/messages.js +0 -111
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/operations.d.ts +0 -13
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/operations.js +0 -336
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/pairing.d.ts +0 -22
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/pairing.js +0 -138
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/prompt-capsules.d.ts +0 -8
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/prompt-capsules.js +0 -65
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/push.d.ts +0 -13
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/push.js +0 -65
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/runtime.d.ts +0 -51
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/runtime.js +0 -442
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/server-name.d.ts +0 -8
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/server-name.js +0 -43
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/session-settings.d.ts +0 -5
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/session-settings.js +0 -153
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/sessions.d.ts +0 -20
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/sessions.js +0 -118
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/package.json +0 -39
- package/plugin/runtime/node_modules/ansi-regex/index.d.ts +0 -37
- package/plugin/runtime/node_modules/ansi-regex/index.js +0 -10
- package/plugin/runtime/node_modules/ansi-regex/license +0 -9
- package/plugin/runtime/node_modules/ansi-regex/package.json +0 -55
- package/plugin/runtime/node_modules/ansi-regex/readme.md +0 -78
- package/plugin/runtime/node_modules/ansi-styles/index.d.ts +0 -345
- package/plugin/runtime/node_modules/ansi-styles/index.js +0 -163
- package/plugin/runtime/node_modules/ansi-styles/license +0 -9
- package/plugin/runtime/node_modules/ansi-styles/package.json +0 -56
- package/plugin/runtime/node_modules/ansi-styles/readme.md +0 -152
- package/plugin/runtime/node_modules/asn1js/LICENSE +0 -30
- package/plugin/runtime/node_modules/asn1js/README.md +0 -222
- package/plugin/runtime/node_modules/asn1js/build/index.d.ts +0 -1412
- package/plugin/runtime/node_modules/asn1js/build/index.es.js +0 -3705
- package/plugin/runtime/node_modules/asn1js/build/index.js +0 -3773
- package/plugin/runtime/node_modules/asn1js/package.json +0 -89
- package/plugin/runtime/node_modules/bytestreamjs/LICENSE +0 -29
- package/plugin/runtime/node_modules/bytestreamjs/README.MD +0 -196
- package/plugin/runtime/node_modules/bytestreamjs/build/cjs/bit.js +0 -91
- package/plugin/runtime/node_modules/bytestreamjs/build/cjs/bit_stream.js +0 -400
- package/plugin/runtime/node_modules/bytestreamjs/build/cjs/byte_stream.js +0 -648
- package/plugin/runtime/node_modules/bytestreamjs/build/cjs/helpers.js +0 -59
- package/plugin/runtime/node_modules/bytestreamjs/build/cjs/index.js +0 -21
- package/plugin/runtime/node_modules/bytestreamjs/build/cjs/seq_bit_stream.js +0 -114
- package/plugin/runtime/node_modules/bytestreamjs/build/cjs/seq_stream.js +0 -437
- package/plugin/runtime/node_modules/bytestreamjs/build/mjs/bit.js +0 -88
- package/plugin/runtime/node_modules/bytestreamjs/build/mjs/bit_stream.js +0 -396
- package/plugin/runtime/node_modules/bytestreamjs/build/mjs/byte_stream.js +0 -644
- package/plugin/runtime/node_modules/bytestreamjs/build/mjs/helpers.js +0 -55
- package/plugin/runtime/node_modules/bytestreamjs/build/mjs/index.js +0 -5
- package/plugin/runtime/node_modules/bytestreamjs/build/mjs/seq_bit_stream.js +0 -110
- package/plugin/runtime/node_modules/bytestreamjs/build/mjs/seq_stream.js +0 -433
- package/plugin/runtime/node_modules/bytestreamjs/build/types/bit.d.ts +0 -1
- package/plugin/runtime/node_modules/bytestreamjs/build/types/bit_stream.d.ts +0 -222
- package/plugin/runtime/node_modules/bytestreamjs/build/types/byte_stream.d.ts +0 -292
- package/plugin/runtime/node_modules/bytestreamjs/build/types/helpers.d.ts +0 -23
- package/plugin/runtime/node_modules/bytestreamjs/build/types/index.d.ts +0 -5
- package/plugin/runtime/node_modules/bytestreamjs/build/types/seq_bit_stream.d.ts +0 -47
- package/plugin/runtime/node_modules/bytestreamjs/build/types/seq_stream.d.ts +0 -255
- package/plugin/runtime/node_modules/bytestreamjs/package.json +0 -66
- package/plugin/runtime/node_modules/camelcase/index.d.ts +0 -63
- package/plugin/runtime/node_modules/camelcase/index.js +0 -76
- package/plugin/runtime/node_modules/camelcase/license +0 -9
- package/plugin/runtime/node_modules/camelcase/package.json +0 -43
- package/plugin/runtime/node_modules/camelcase/readme.md +0 -99
- package/plugin/runtime/node_modules/cbor/LICENSE.md +0 -20
- package/plugin/runtime/node_modules/cbor/README.md +0 -282
- package/plugin/runtime/node_modules/cbor/lib/cbor.js +0 -114
- package/plugin/runtime/node_modules/cbor/lib/commented.js +0 -382
- package/plugin/runtime/node_modules/cbor/lib/constants.js +0 -79
- package/plugin/runtime/node_modules/cbor/lib/decoder.js +0 -680
- package/plugin/runtime/node_modules/cbor/lib/diagnose.js +0 -274
- package/plugin/runtime/node_modules/cbor/lib/encoder.js +0 -1121
- package/plugin/runtime/node_modules/cbor/lib/map.js +0 -185
- package/plugin/runtime/node_modules/cbor/lib/objectRecorder.js +0 -71
- package/plugin/runtime/node_modules/cbor/lib/sharedValueEncoder.js +0 -141
- package/plugin/runtime/node_modules/cbor/lib/simple.js +0 -104
- package/plugin/runtime/node_modules/cbor/lib/tagged.js +0 -378
- package/plugin/runtime/node_modules/cbor/lib/utils.js +0 -308
- package/plugin/runtime/node_modules/cbor/package.json +0 -47
- package/plugin/runtime/node_modules/cbor/types/lib/cbor.d.ts +0 -34
- package/plugin/runtime/node_modules/cbor/types/lib/commented.d.ts +0 -109
- package/plugin/runtime/node_modules/cbor/types/lib/constants.d.ts +0 -63
- package/plugin/runtime/node_modules/cbor/types/lib/decoder.d.ts +0 -199
- package/plugin/runtime/node_modules/cbor/types/lib/diagnose.d.ts +0 -91
- package/plugin/runtime/node_modules/cbor/types/lib/encoder.d.ts +0 -477
- package/plugin/runtime/node_modules/cbor/types/lib/map.d.ts +0 -78
- package/plugin/runtime/node_modules/cbor/types/lib/objectRecorder.d.ts +0 -36
- package/plugin/runtime/node_modules/cbor/types/lib/sharedValueEncoder.d.ts +0 -21
- package/plugin/runtime/node_modules/cbor/types/lib/simple.d.ts +0 -47
- package/plugin/runtime/node_modules/cbor/types/lib/tagged.d.ts +0 -74
- package/plugin/runtime/node_modules/cbor/types/lib/utils.d.ts +0 -20
- package/plugin/runtime/node_modules/cbor/types/vendor/binary-parse-stream/index.d.ts +0 -34
- package/plugin/runtime/node_modules/cbor/vendor/binary-parse-stream/README.md +0 -49
- package/plugin/runtime/node_modules/cbor/vendor/binary-parse-stream/index.js +0 -111
- package/plugin/runtime/node_modules/cliui/CHANGELOG.md +0 -76
- package/plugin/runtime/node_modules/cliui/LICENSE.txt +0 -14
- package/plugin/runtime/node_modules/cliui/README.md +0 -115
- package/plugin/runtime/node_modules/cliui/index.js +0 -354
- package/plugin/runtime/node_modules/cliui/package.json +0 -65
- package/plugin/runtime/node_modules/color-convert/CHANGELOG.md +0 -54
- package/plugin/runtime/node_modules/color-convert/LICENSE +0 -21
- package/plugin/runtime/node_modules/color-convert/README.md +0 -68
- package/plugin/runtime/node_modules/color-convert/conversions.js +0 -839
- package/plugin/runtime/node_modules/color-convert/index.js +0 -81
- package/plugin/runtime/node_modules/color-convert/package.json +0 -48
- package/plugin/runtime/node_modules/color-convert/route.js +0 -97
- package/plugin/runtime/node_modules/color-name/LICENSE +0 -8
- package/plugin/runtime/node_modules/color-name/README.md +0 -11
- package/plugin/runtime/node_modules/color-name/index.js +0 -152
- package/plugin/runtime/node_modules/color-name/package.json +0 -28
- package/plugin/runtime/node_modules/decamelize/index.js +0 -13
- package/plugin/runtime/node_modules/decamelize/license +0 -21
- package/plugin/runtime/node_modules/decamelize/package.json +0 -38
- package/plugin/runtime/node_modules/decamelize/readme.md +0 -48
- package/plugin/runtime/node_modules/dijkstrajs/.travis.yml +0 -4
- package/plugin/runtime/node_modules/dijkstrajs/CONTRIBUTING.md +0 -8
- package/plugin/runtime/node_modules/dijkstrajs/LICENSE.md +0 -19
- package/plugin/runtime/node_modules/dijkstrajs/README.md +0 -18
- package/plugin/runtime/node_modules/dijkstrajs/dijkstra.js +0 -165
- package/plugin/runtime/node_modules/dijkstrajs/package.json +0 -60
- package/plugin/runtime/node_modules/dijkstrajs/test/dijkstra.test.js +0 -96
- package/plugin/runtime/node_modules/emoji-regex/LICENSE-MIT.txt +0 -20
- package/plugin/runtime/node_modules/emoji-regex/README.md +0 -73
- package/plugin/runtime/node_modules/emoji-regex/es2015/index.js +0 -6
- package/plugin/runtime/node_modules/emoji-regex/es2015/text.js +0 -6
- package/plugin/runtime/node_modules/emoji-regex/index.d.ts +0 -23
- package/plugin/runtime/node_modules/emoji-regex/index.js +0 -6
- package/plugin/runtime/node_modules/emoji-regex/package.json +0 -50
- package/plugin/runtime/node_modules/emoji-regex/text.js +0 -6
- package/plugin/runtime/node_modules/find-up/index.d.ts +0 -137
- package/plugin/runtime/node_modules/find-up/index.js +0 -89
- package/plugin/runtime/node_modules/find-up/license +0 -9
- package/plugin/runtime/node_modules/find-up/package.json +0 -53
- package/plugin/runtime/node_modules/find-up/readme.md +0 -156
- package/plugin/runtime/node_modules/get-caller-file/LICENSE.md +0 -6
- package/plugin/runtime/node_modules/get-caller-file/README.md +0 -41
- package/plugin/runtime/node_modules/get-caller-file/index.d.ts +0 -2
- package/plugin/runtime/node_modules/get-caller-file/index.js +0 -22
- package/plugin/runtime/node_modules/get-caller-file/index.js.map +0 -1
- package/plugin/runtime/node_modules/get-caller-file/package.json +0 -42
- package/plugin/runtime/node_modules/is-fullwidth-code-point/index.d.ts +0 -17
- package/plugin/runtime/node_modules/is-fullwidth-code-point/index.js +0 -50
- package/plugin/runtime/node_modules/is-fullwidth-code-point/license +0 -9
- package/plugin/runtime/node_modules/is-fullwidth-code-point/package.json +0 -42
- package/plugin/runtime/node_modules/is-fullwidth-code-point/readme.md +0 -39
- package/plugin/runtime/node_modules/locate-path/index.d.ts +0 -83
- package/plugin/runtime/node_modules/locate-path/index.js +0 -65
- package/plugin/runtime/node_modules/locate-path/license +0 -9
- package/plugin/runtime/node_modules/locate-path/package.json +0 -45
- package/plugin/runtime/node_modules/locate-path/readme.md +0 -122
- package/plugin/runtime/node_modules/node-app-attest/.github/dependabot.yml +0 -6
- package/plugin/runtime/node_modules/node-app-attest/.github/workflows/ci.yml +0 -43
- package/plugin/runtime/node_modules/node-app-attest/.prettierrc +0 -1
- package/plugin/runtime/node_modules/node-app-attest/.yarnrc.yml +0 -1
- package/plugin/runtime/node_modules/node-app-attest/LICENSE +0 -21
- package/plugin/runtime/node_modules/node-app-attest/README.md +0 -300
- package/plugin/runtime/node_modules/node-app-attest/eslint.config.js +0 -30
- package/plugin/runtime/node_modules/node-app-attest/package.json +0 -44
- package/plugin/runtime/node_modules/node-app-attest/src/index.js +0 -4
- package/plugin/runtime/node_modules/node-app-attest/src/verifyAssertion.js +0 -81
- package/plugin/runtime/node_modules/node-app-attest/src/verifyAttestation.js +0 -211
- package/plugin/runtime/node_modules/node-app-attest/test/fixtures/attestation-development.json +0 -5
- package/plugin/runtime/node_modules/node-app-attest/test/fixtures/attestation-production.json +0 -5
- package/plugin/runtime/node_modules/node-app-attest/test/verifyAssertion.test.js +0 -119
- package/plugin/runtime/node_modules/node-app-attest/test/verifyAttestation.test.js +0 -303
- package/plugin/runtime/node_modules/node-app-attest/tsconfig.json +0 -11
- package/plugin/runtime/node_modules/node-app-attest/types/index.d.ts +0 -4
- package/plugin/runtime/node_modules/node-app-attest/types/index.d.ts.map +0 -1
- package/plugin/runtime/node_modules/node-app-attest/types/verifyAssertion.d.ts +0 -5
- package/plugin/runtime/node_modules/node-app-attest/types/verifyAssertion.d.ts.map +0 -1
- package/plugin/runtime/node_modules/node-app-attest/types/verifyAttestation.d.ts +0 -8
- package/plugin/runtime/node_modules/node-app-attest/types/verifyAttestation.d.ts.map +0 -1
- package/plugin/runtime/node_modules/nofilter/LICENSE.md +0 -20
- package/plugin/runtime/node_modules/nofilter/README.md +0 -36
- package/plugin/runtime/node_modules/nofilter/lib/index.js +0 -1055
- package/plugin/runtime/node_modules/nofilter/package.json +0 -60
- package/plugin/runtime/node_modules/nofilter/types/index.d.ts +0 -573
- package/plugin/runtime/node_modules/p-limit/index.d.ts +0 -38
- package/plugin/runtime/node_modules/p-limit/index.js +0 -57
- package/plugin/runtime/node_modules/p-limit/license +0 -9
- package/plugin/runtime/node_modules/p-limit/package.json +0 -52
- package/plugin/runtime/node_modules/p-limit/readme.md +0 -101
- package/plugin/runtime/node_modules/p-locate/index.d.ts +0 -64
- package/plugin/runtime/node_modules/p-locate/index.js +0 -52
- package/plugin/runtime/node_modules/p-locate/license +0 -9
- package/plugin/runtime/node_modules/p-locate/package.json +0 -53
- package/plugin/runtime/node_modules/p-locate/readme.md +0 -90
- package/plugin/runtime/node_modules/p-try/index.d.ts +0 -39
- package/plugin/runtime/node_modules/p-try/index.js +0 -9
- package/plugin/runtime/node_modules/p-try/license +0 -9
- package/plugin/runtime/node_modules/p-try/package.json +0 -42
- package/plugin/runtime/node_modules/p-try/readme.md +0 -58
- package/plugin/runtime/node_modules/path-exists/index.d.ts +0 -28
- package/plugin/runtime/node_modules/path-exists/index.js +0 -23
- package/plugin/runtime/node_modules/path-exists/license +0 -9
- package/plugin/runtime/node_modules/path-exists/package.json +0 -39
- package/plugin/runtime/node_modules/path-exists/readme.md +0 -52
- package/plugin/runtime/node_modules/pkijs/LICENSE +0 -30
- package/plugin/runtime/node_modules/pkijs/README.md +0 -81
- package/plugin/runtime/node_modules/pkijs/build/index.d.ts +0 -9419
- package/plugin/runtime/node_modules/pkijs/build/index.es.js +0 -18789
- package/plugin/runtime/node_modules/pkijs/build/index.js +0 -19014
- package/plugin/runtime/node_modules/pkijs/package.json +0 -98
- package/plugin/runtime/node_modules/pngjs/.eslintignore +0 -2
- package/plugin/runtime/node_modules/pngjs/.eslintrc.json +0 -19
- package/plugin/runtime/node_modules/pngjs/.prettierignore +0 -3
- package/plugin/runtime/node_modules/pngjs/LICENSE +0 -20
- package/plugin/runtime/node_modules/pngjs/README.md +0 -429
- package/plugin/runtime/node_modules/pngjs/browser.js +0 -16096
- package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/base.css +0 -354
- package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/bitmapper.js.html +0 -881
- package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/bitpacker.js.html +0 -554
- package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/block-navigation.js +0 -77
- package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/chunkstream.js.html +0 -647
- package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/constants.js.html +0 -176
- package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/crc.js.html +0 -200
- package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/favicon.png +0 -0
- package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/filter-pack.js.html +0 -593
- package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/filter-parse-async.js.html +0 -152
- package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/filter-parse-sync.js.html +0 -143
- package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/filter-parse.js.html +0 -611
- package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/format-normaliser.js.html +0 -359
- package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/index.html +0 -426
- package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/interlace.js.html +0 -365
- package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/packer-async.js.html +0 -230
- package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/packer-sync.js.html +0 -248
- package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/packer.js.html +0 -467
- package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/paeth-predictor.js.html +0 -128
- package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/parser-async.js.html +0 -575
- package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/parser-sync.js.html +0 -404
- package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/parser.js.html +0 -950
- package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/png-sync.js.html +0 -116
- package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/png.js.html +0 -662
- package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/prettify.css +0 -101
- package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/prettify.js +0 -1007
- package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/sorter.js +0 -169
- package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/sync-inflate.js.html +0 -584
- package/plugin/runtime/node_modules/pngjs/coverage/lcov-report/sync-reader.js.html +0 -215
- package/plugin/runtime/node_modules/pngjs/coverage/lcov.info +0 -2177
- package/plugin/runtime/node_modules/pngjs/lib/bitmapper.js +0 -267
- package/plugin/runtime/node_modules/pngjs/lib/bitpacker.js +0 -158
- package/plugin/runtime/node_modules/pngjs/lib/chunkstream.js +0 -189
- package/plugin/runtime/node_modules/pngjs/lib/constants.js +0 -32
- package/plugin/runtime/node_modules/pngjs/lib/crc.js +0 -40
- package/plugin/runtime/node_modules/pngjs/lib/filter-pack.js +0 -171
- package/plugin/runtime/node_modules/pngjs/lib/filter-parse-async.js +0 -24
- package/plugin/runtime/node_modules/pngjs/lib/filter-parse-sync.js +0 -21
- package/plugin/runtime/node_modules/pngjs/lib/filter-parse.js +0 -177
- package/plugin/runtime/node_modules/pngjs/lib/format-normaliser.js +0 -93
- package/plugin/runtime/node_modules/pngjs/lib/interlace.js +0 -95
- package/plugin/runtime/node_modules/pngjs/lib/packer-async.js +0 -50
- package/plugin/runtime/node_modules/pngjs/lib/packer-sync.js +0 -56
- package/plugin/runtime/node_modules/pngjs/lib/packer.js +0 -129
- package/plugin/runtime/node_modules/pngjs/lib/paeth-predictor.js +0 -16
- package/plugin/runtime/node_modules/pngjs/lib/parser-async.js +0 -165
- package/plugin/runtime/node_modules/pngjs/lib/parser-sync.js +0 -108
- package/plugin/runtime/node_modules/pngjs/lib/parser.js +0 -290
- package/plugin/runtime/node_modules/pngjs/lib/png-sync.js +0 -12
- package/plugin/runtime/node_modules/pngjs/lib/png.js +0 -194
- package/plugin/runtime/node_modules/pngjs/lib/sync-inflate.js +0 -168
- package/plugin/runtime/node_modules/pngjs/lib/sync-reader.js +0 -45
- package/plugin/runtime/node_modules/pngjs/package.json +0 -73
- package/plugin/runtime/node_modules/pvtsutils/LICENSE +0 -21
- package/plugin/runtime/node_modules/pvtsutils/README.md +0 -80
- package/plugin/runtime/node_modules/pvtsutils/build/index.d.ts +0 -208
- package/plugin/runtime/node_modules/pvtsutils/build/index.es.js +0 -393
- package/plugin/runtime/node_modules/pvtsutils/build/index.js +0 -399
- package/plugin/runtime/node_modules/pvtsutils/package.json +0 -76
- package/plugin/runtime/node_modules/pvutils/LICENSE +0 -24
- package/plugin/runtime/node_modules/pvutils/README.md +0 -24
- package/plugin/runtime/node_modules/pvutils/build/index.d.ts +0 -116
- package/plugin/runtime/node_modules/pvutils/build/utils.es.js +0 -340
- package/plugin/runtime/node_modules/pvutils/build/utils.js +0 -361
- package/plugin/runtime/node_modules/pvutils/package.json +0 -63
- package/plugin/runtime/node_modules/qrcode/README.md +0 -770
- package/plugin/runtime/node_modules/qrcode/bin/qrcode +0 -159
- package/plugin/runtime/node_modules/qrcode/helper/to-sjis-browser.js +0 -2
- package/plugin/runtime/node_modules/qrcode/helper/to-sjis.js +0 -105
- package/plugin/runtime/node_modules/qrcode/lib/browser.js +0 -76
- package/plugin/runtime/node_modules/qrcode/lib/can-promise.js +0 -7
- package/plugin/runtime/node_modules/qrcode/lib/core/alignment-pattern.js +0 -83
- package/plugin/runtime/node_modules/qrcode/lib/core/alphanumeric-data.js +0 -59
- package/plugin/runtime/node_modules/qrcode/lib/core/bit-buffer.js +0 -37
- package/plugin/runtime/node_modules/qrcode/lib/core/bit-matrix.js +0 -65
- package/plugin/runtime/node_modules/qrcode/lib/core/byte-data.js +0 -30
- package/plugin/runtime/node_modules/qrcode/lib/core/error-correction-code.js +0 -135
- package/plugin/runtime/node_modules/qrcode/lib/core/error-correction-level.js +0 -50
- package/plugin/runtime/node_modules/qrcode/lib/core/finder-pattern.js +0 -22
- package/plugin/runtime/node_modules/qrcode/lib/core/format-info.js +0 -29
- package/plugin/runtime/node_modules/qrcode/lib/core/galois-field.js +0 -69
- package/plugin/runtime/node_modules/qrcode/lib/core/kanji-data.js +0 -54
- package/plugin/runtime/node_modules/qrcode/lib/core/mask-pattern.js +0 -234
- package/plugin/runtime/node_modules/qrcode/lib/core/mode.js +0 -167
- package/plugin/runtime/node_modules/qrcode/lib/core/numeric-data.js +0 -43
- package/plugin/runtime/node_modules/qrcode/lib/core/polynomial.js +0 -62
- package/plugin/runtime/node_modules/qrcode/lib/core/qrcode.js +0 -495
- package/plugin/runtime/node_modules/qrcode/lib/core/reed-solomon-encoder.js +0 -56
- package/plugin/runtime/node_modules/qrcode/lib/core/regex.js +0 -31
- package/plugin/runtime/node_modules/qrcode/lib/core/segments.js +0 -330
- package/plugin/runtime/node_modules/qrcode/lib/core/utils.js +0 -63
- package/plugin/runtime/node_modules/qrcode/lib/core/version-check.js +0 -9
- package/plugin/runtime/node_modules/qrcode/lib/core/version.js +0 -163
- package/plugin/runtime/node_modules/qrcode/lib/index.js +0 -12
- package/plugin/runtime/node_modules/qrcode/lib/renderer/canvas.js +0 -63
- package/plugin/runtime/node_modules/qrcode/lib/renderer/png.js +0 -78
- package/plugin/runtime/node_modules/qrcode/lib/renderer/svg-tag.js +0 -81
- package/plugin/runtime/node_modules/qrcode/lib/renderer/svg.js +0 -19
- package/plugin/runtime/node_modules/qrcode/lib/renderer/terminal/terminal-small.js +0 -85
- package/plugin/runtime/node_modules/qrcode/lib/renderer/terminal/terminal.js +0 -49
- package/plugin/runtime/node_modules/qrcode/lib/renderer/terminal.js +0 -9
- package/plugin/runtime/node_modules/qrcode/lib/renderer/utf8.js +0 -71
- package/plugin/runtime/node_modules/qrcode/lib/renderer/utils.js +0 -99
- package/plugin/runtime/node_modules/qrcode/lib/server.js +0 -138
- package/plugin/runtime/node_modules/qrcode/license +0 -10
- package/plugin/runtime/node_modules/qrcode/package.json +0 -77
- package/plugin/runtime/node_modules/require-directory/.jshintrc +0 -67
- package/plugin/runtime/node_modules/require-directory/.travis.yml +0 -3
- package/plugin/runtime/node_modules/require-directory/LICENSE +0 -22
- package/plugin/runtime/node_modules/require-directory/README.markdown +0 -184
- package/plugin/runtime/node_modules/require-directory/index.js +0 -86
- package/plugin/runtime/node_modules/require-directory/package.json +0 -40
- package/plugin/runtime/node_modules/require-main-filename/CHANGELOG.md +0 -26
- package/plugin/runtime/node_modules/require-main-filename/LICENSE.txt +0 -14
- package/plugin/runtime/node_modules/require-main-filename/README.md +0 -26
- package/plugin/runtime/node_modules/require-main-filename/index.js +0 -18
- package/plugin/runtime/node_modules/require-main-filename/package.json +0 -35
- package/plugin/runtime/node_modules/set-blocking/CHANGELOG.md +0 -26
- package/plugin/runtime/node_modules/set-blocking/LICENSE.txt +0 -14
- package/plugin/runtime/node_modules/set-blocking/README.md +0 -31
- package/plugin/runtime/node_modules/set-blocking/index.js +0 -7
- package/plugin/runtime/node_modules/set-blocking/package.json +0 -42
- package/plugin/runtime/node_modules/string-width/index.d.ts +0 -29
- package/plugin/runtime/node_modules/string-width/index.js +0 -47
- package/plugin/runtime/node_modules/string-width/license +0 -9
- package/plugin/runtime/node_modules/string-width/package.json +0 -56
- package/plugin/runtime/node_modules/string-width/readme.md +0 -50
- package/plugin/runtime/node_modules/strip-ansi/index.d.ts +0 -17
- package/plugin/runtime/node_modules/strip-ansi/index.js +0 -4
- package/plugin/runtime/node_modules/strip-ansi/license +0 -9
- package/plugin/runtime/node_modules/strip-ansi/package.json +0 -54
- package/plugin/runtime/node_modules/strip-ansi/readme.md +0 -46
- package/plugin/runtime/node_modules/tslib/CopyrightNotice.txt +0 -15
- package/plugin/runtime/node_modules/tslib/LICENSE.txt +0 -12
- package/plugin/runtime/node_modules/tslib/README.md +0 -159
- package/plugin/runtime/node_modules/tslib/SECURITY.md +0 -41
- package/plugin/runtime/node_modules/tslib/modules/index.d.ts +0 -38
- package/plugin/runtime/node_modules/tslib/modules/index.js +0 -70
- package/plugin/runtime/node_modules/tslib/modules/package.json +0 -3
- package/plugin/runtime/node_modules/tslib/package.json +0 -47
- package/plugin/runtime/node_modules/tslib/tslib.d.ts +0 -462
- package/plugin/runtime/node_modules/tslib/tslib.es6.html +0 -1
- package/plugin/runtime/node_modules/tslib/tslib.es6.js +0 -411
- package/plugin/runtime/node_modules/tslib/tslib.es6.mjs +0 -410
- package/plugin/runtime/node_modules/tslib/tslib.html +0 -1
- package/plugin/runtime/node_modules/tslib/tslib.js +0 -493
- package/plugin/runtime/node_modules/which-module/LICENSE +0 -13
- package/plugin/runtime/node_modules/which-module/README.md +0 -58
- package/plugin/runtime/node_modules/which-module/index.js +0 -9
- package/plugin/runtime/node_modules/which-module/package.json +0 -41
- package/plugin/runtime/node_modules/wrap-ansi/index.js +0 -186
- package/plugin/runtime/node_modules/wrap-ansi/license +0 -9
- package/plugin/runtime/node_modules/wrap-ansi/package.json +0 -61
- package/plugin/runtime/node_modules/wrap-ansi/readme.md +0 -97
- package/plugin/runtime/node_modules/y18n/CHANGELOG.md +0 -35
- package/plugin/runtime/node_modules/y18n/LICENSE +0 -13
- package/plugin/runtime/node_modules/y18n/README.md +0 -109
- package/plugin/runtime/node_modules/y18n/index.js +0 -188
- package/plugin/runtime/node_modules/y18n/package.json +0 -39
- package/plugin/runtime/node_modules/yargs/CHANGELOG.md +0 -420
- package/plugin/runtime/node_modules/yargs/LICENSE +0 -21
- package/plugin/runtime/node_modules/yargs/README.md +0 -140
- package/plugin/runtime/node_modules/yargs/build/lib/apply-extends.d.ts +0 -2
- package/plugin/runtime/node_modules/yargs/build/lib/apply-extends.js +0 -65
- package/plugin/runtime/node_modules/yargs/build/lib/argsert.d.ts +0 -2
- package/plugin/runtime/node_modules/yargs/build/lib/argsert.js +0 -65
- package/plugin/runtime/node_modules/yargs/build/lib/command.d.ts +0 -64
- package/plugin/runtime/node_modules/yargs/build/lib/command.js +0 -416
- package/plugin/runtime/node_modules/yargs/build/lib/common-types.d.ts +0 -36
- package/plugin/runtime/node_modules/yargs/build/lib/common-types.js +0 -25
- package/plugin/runtime/node_modules/yargs/build/lib/completion-templates.d.ts +0 -2
- package/plugin/runtime/node_modules/yargs/build/lib/completion-templates.js +0 -50
- package/plugin/runtime/node_modules/yargs/build/lib/completion.d.ts +0 -21
- package/plugin/runtime/node_modules/yargs/build/lib/completion.js +0 -135
- package/plugin/runtime/node_modules/yargs/build/lib/is-promise.d.ts +0 -1
- package/plugin/runtime/node_modules/yargs/build/lib/is-promise.js +0 -9
- package/plugin/runtime/node_modules/yargs/build/lib/levenshtein.d.ts +0 -1
- package/plugin/runtime/node_modules/yargs/build/lib/levenshtein.js +0 -58
- package/plugin/runtime/node_modules/yargs/build/lib/middleware.d.ts +0 -10
- package/plugin/runtime/node_modules/yargs/build/lib/middleware.js +0 -57
- package/plugin/runtime/node_modules/yargs/build/lib/obj-filter.d.ts +0 -1
- package/plugin/runtime/node_modules/yargs/build/lib/obj-filter.js +0 -14
- package/plugin/runtime/node_modules/yargs/build/lib/parse-command.d.ts +0 -11
- package/plugin/runtime/node_modules/yargs/build/lib/parse-command.js +0 -36
- package/plugin/runtime/node_modules/yargs/build/lib/process-argv.d.ts +0 -2
- package/plugin/runtime/node_modules/yargs/build/lib/process-argv.js +0 -31
- package/plugin/runtime/node_modules/yargs/build/lib/usage.d.ts +0 -49
- package/plugin/runtime/node_modules/yargs/build/lib/usage.js +0 -540
- package/plugin/runtime/node_modules/yargs/build/lib/validation.d.ts +0 -34
- package/plugin/runtime/node_modules/yargs/build/lib/validation.js +0 -330
- package/plugin/runtime/node_modules/yargs/build/lib/yargs.d.ts +0 -274
- package/plugin/runtime/node_modules/yargs/build/lib/yargs.js +0 -1190
- package/plugin/runtime/node_modules/yargs/build/lib/yerror.d.ts +0 -4
- package/plugin/runtime/node_modules/yargs/build/lib/yerror.js +0 -11
- package/plugin/runtime/node_modules/yargs/index.js +0 -40
- package/plugin/runtime/node_modules/yargs/locales/be.json +0 -46
- package/plugin/runtime/node_modules/yargs/locales/de.json +0 -46
- package/plugin/runtime/node_modules/yargs/locales/en.json +0 -51
- package/plugin/runtime/node_modules/yargs/locales/es.json +0 -46
- package/plugin/runtime/node_modules/yargs/locales/fi.json +0 -49
- package/plugin/runtime/node_modules/yargs/locales/fr.json +0 -53
- package/plugin/runtime/node_modules/yargs/locales/hi.json +0 -49
- package/plugin/runtime/node_modules/yargs/locales/hu.json +0 -46
- package/plugin/runtime/node_modules/yargs/locales/id.json +0 -50
- package/plugin/runtime/node_modules/yargs/locales/it.json +0 -46
- package/plugin/runtime/node_modules/yargs/locales/ja.json +0 -51
- package/plugin/runtime/node_modules/yargs/locales/ko.json +0 -49
- package/plugin/runtime/node_modules/yargs/locales/nb.json +0 -44
- package/plugin/runtime/node_modules/yargs/locales/nl.json +0 -49
- package/plugin/runtime/node_modules/yargs/locales/nn.json +0 -44
- package/plugin/runtime/node_modules/yargs/locales/pirate.json +0 -13
- package/plugin/runtime/node_modules/yargs/locales/pl.json +0 -49
- package/plugin/runtime/node_modules/yargs/locales/pt.json +0 -45
- package/plugin/runtime/node_modules/yargs/locales/pt_BR.json +0 -48
- package/plugin/runtime/node_modules/yargs/locales/ru.json +0 -46
- package/plugin/runtime/node_modules/yargs/locales/th.json +0 -46
- package/plugin/runtime/node_modules/yargs/locales/tr.json +0 -48
- package/plugin/runtime/node_modules/yargs/locales/zh_CN.json +0 -48
- package/plugin/runtime/node_modules/yargs/locales/zh_TW.json +0 -47
- package/plugin/runtime/node_modules/yargs/package.json +0 -92
- package/plugin/runtime/node_modules/yargs/yargs.js +0 -14
- package/plugin/runtime/node_modules/yargs-parser/CHANGELOG.md +0 -601
- package/plugin/runtime/node_modules/yargs-parser/LICENSE.txt +0 -14
- package/plugin/runtime/node_modules/yargs-parser/README.md +0 -449
- package/plugin/runtime/node_modules/yargs-parser/index.js +0 -1032
- package/plugin/runtime/node_modules/yargs-parser/lib/tokenize-arg-string.js +0 -40
- package/plugin/runtime/node_modules/yargs-parser/package.json +0 -46
- package/plugin/runtime/package-lock.json +0 -447
- package/plugin/runtime/package.json +0 -13
- 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)
|