@syengup/fridaynext-hermes-channel 0.1.0-beta.3 → 0.1.0-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/install-config.js +84 -0
- package/install-host.py +95 -0
- package/install-runtime.js +167 -35
- package/install.js +23 -6
- package/package.json +6 -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 -71
- package/plugin/fridaynext_plugin/adapter.py +0 -1124
- package/plugin/fridaynext_plugin/agent_defaults.py +0 -107
- package/plugin/fridaynext_plugin/canonical_control.py +0 -509
- package/plugin/fridaynext_plugin/compat_v0225.py +0 -910
- 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/diagnostics.py +0 -165
- package/plugin/fridaynext_plugin/history.py +0 -421
- package/plugin/fridaynext_plugin/host.py +0 -317
- 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 -139
- 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/recovery.py +0 -214
- package/plugin/fridaynext_plugin/runtime_port.py +0 -571
- package/plugin/fridaynext_plugin/sessions.py +0 -184
- package/plugin/fridaynext_plugin/settings.py +0 -695
- package/plugin/fridaynext_plugin/settings_control.py +0 -101
- package/plugin/fridaynext_plugin/state.py +0 -155
- package/plugin/fridaynext_plugin/stream_bridge.py +0 -493
- package/plugin/fridaynext_plugin/stream_media.py +0 -59
- package/plugin/fridaynext_plugin/stream_projection.py +0 -269
- package/plugin/plugin.yaml +0 -18
- 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 -211
- package/plugin/runtime/dist/hosted-delivery-observations.js +0 -91
- package/plugin/runtime/dist/hosted-media.js +0 -327
- 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 -104
- 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 -32
- package/plugin/runtime/dist/plugin-control.js +0 -189
- 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/service-errors.js +0 -11
- package/plugin/runtime/dist/service-host.js +0 -251
- package/plugin/runtime/dist/speech-routes.js +0 -111
- 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 -416
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/LICENSE +0 -21
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/README.md +0 -77
- 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 -88
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/history.js +0 -176
- 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/types.d.ts +0 -234
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/contract/types.js +0 -32
- 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 -16
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/index.js +0 -15
- 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/channel-kernel.d.ts +0 -49
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/channel-kernel.js +0 -307
- 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 -247
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/durable-run-store.js +0 -1525
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/runner.d.ts +0 -36
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/runtime/runner.js +0 -269
- 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/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/controls.d.ts +0 -9
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/controls.js +0 -112
- 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 -105
- 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 -50
- package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/runtime.js +0 -400
- 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 -121
- 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 -40
- 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 -164
- 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 -460
- package/plugin/runtime/node_modules/tslib/tslib.es6.html +0 -1
- package/plugin/runtime/node_modules/tslib/tslib.es6.js +0 -402
- package/plugin/runtime/node_modules/tslib/tslib.es6.mjs +0 -401
- package/plugin/runtime/node_modules/tslib/tslib.html +0 -1
- package/plugin/runtime/node_modules/tslib/tslib.js +0 -484
- 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
|
@@ -1,910 +0,0 @@
|
|
|
1
|
-
"""固定版身份、平台授权/首次注册、已授权FIFO、默认配置与原控制观察;公开协议优先,必要配置写入固定封装,告警保持。"""
|
|
2
|
-
|
|
3
|
-
import asyncio
|
|
4
|
-
import logging
|
|
5
|
-
import os
|
|
6
|
-
import subprocess
|
|
7
|
-
import time
|
|
8
|
-
import threading
|
|
9
|
-
from collections import OrderedDict
|
|
10
|
-
from pathlib import Path
|
|
11
|
-
from gateway import config as gateway_config
|
|
12
|
-
from .runtime_port import PublicRuntimeUnavailable, InputAdmissionRefused, InputAdmissionUnconfirmed
|
|
13
|
-
|
|
14
|
-
APPROVED_REVISION = "bf0203a794a07aac3ff764972ab9087baa4e4f4e"
|
|
15
|
-
logger = logging.getLogger(__name__)
|
|
16
|
-
|
|
17
|
-
_resolved_default_warning_emitted = False
|
|
18
|
-
_model_names_warning_emitted = False
|
|
19
|
-
_profile_defaults_warning_emitted = False
|
|
20
|
-
_message_speech_warning_emitted = False
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
def _warn_message_speech_compat():
|
|
24
|
-
"""固定版消息朗读只发一次告警;不记录文本、音频或profile路径。"""
|
|
25
|
-
global _message_speech_warning_emitted
|
|
26
|
-
if _message_speech_warning_emitted:
|
|
27
|
-
return
|
|
28
|
-
_message_speech_warning_emitted = True
|
|
29
|
-
logger.warning(
|
|
30
|
-
"hermes.compat.message_speech_v0_22_5:消息朗读依赖固定版TTS内部函数"
|
|
31
|
-
"(check_tts_requirements/_load_tts_config/_get_provider/text_to_speech_tool/"
|
|
32
|
-
"_resolve_max_text_length);公开TTS接口可用后替换"
|
|
33
|
-
)
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
def message_speech_config(profile):
|
|
37
|
-
"""固定版消息朗读配置:在profile作用域读取provider可用性、名称和输入上限。"""
|
|
38
|
-
_warn_message_speech_compat()
|
|
39
|
-
from hermes_constants import set_hermes_home_override, reset_hermes_home_override
|
|
40
|
-
from tools import tts_tool
|
|
41
|
-
from tools.tts_tool_delivery import _resolve_max_text_length
|
|
42
|
-
|
|
43
|
-
token = set_hermes_home_override(profile)
|
|
44
|
-
try:
|
|
45
|
-
tts_config = tts_tool._load_tts_config()
|
|
46
|
-
provider = tts_tool._get_provider(tts_config)
|
|
47
|
-
return {
|
|
48
|
-
"available": bool(tts_tool.check_tts_requirements()),
|
|
49
|
-
"provider": provider,
|
|
50
|
-
"maxTextLength": _resolve_max_text_length(provider, tts_config),
|
|
51
|
-
}
|
|
52
|
-
finally:
|
|
53
|
-
reset_hermes_home_override(token)
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
class _DropCurrentThreadLogs(logging.Filter):
|
|
57
|
-
"""只丢弃本合成线程的宿主TTS日志,避免私有临时路径进入生产日志。"""
|
|
58
|
-
|
|
59
|
-
def __init__(self):
|
|
60
|
-
super().__init__()
|
|
61
|
-
self.thread = threading.get_ident()
|
|
62
|
-
|
|
63
|
-
def filter(self, record):
|
|
64
|
-
return record.thread != self.thread
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
def message_speech_synthesize(profile, text, output_path):
|
|
68
|
-
"""固定版TTS合成:调用原text_to_speech_tool,返回其JSON envelope。
|
|
69
|
-
|
|
70
|
-
同步函数;调用方负责放到线程中执行并清理output_path所在私有临时目录。
|
|
71
|
-
宿主TTS会在INFO/错误日志中打印输出路径;这里仅在本线程合成期间过滤这两个固定版logger,
|
|
72
|
-
不改Hermes core,也不影响其他线程的原生日志。
|
|
73
|
-
"""
|
|
74
|
-
_warn_message_speech_compat()
|
|
75
|
-
from hermes_constants import set_hermes_home_override, reset_hermes_home_override
|
|
76
|
-
from tools import tts_tool, tts_command_provider # noqa: F401(固定版logger存在性由导入证明)
|
|
77
|
-
|
|
78
|
-
filters = []
|
|
79
|
-
for name in ("tools.tts_tool", "tools.tts_command_provider"):
|
|
80
|
-
target = logging.getLogger(name)
|
|
81
|
-
current = _DropCurrentThreadLogs()
|
|
82
|
-
target.addFilter(current)
|
|
83
|
-
filters.append((target, current))
|
|
84
|
-
token = set_hermes_home_override(profile)
|
|
85
|
-
try:
|
|
86
|
-
if not tts_tool.check_tts_requirements():
|
|
87
|
-
raise RuntimeError("TTS_UNAVAILABLE")
|
|
88
|
-
return tts_tool.text_to_speech_tool(text, output_path=str(output_path))
|
|
89
|
-
finally:
|
|
90
|
-
reset_hermes_home_override(token)
|
|
91
|
-
for target, current in filters:
|
|
92
|
-
target.removeFilter(current)
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
def profile_default_config(profile, *, expected_version=None, update=None, prepare=None):
|
|
96
|
-
"""固定0.22.5配置兼容:当前owner Profile内CAS及一次原子文件写入。
|
|
97
|
-
|
|
98
|
-
公开RPC不能成对保存主模型/思考;复用宿主配置锁、保留注释的原子writer与真实解析器。
|
|
99
|
-
不接受远端Profile路径,不保存展开后的凭据,不修改Hermes core。
|
|
100
|
-
"""
|
|
101
|
-
import hashlib
|
|
102
|
-
import json
|
|
103
|
-
from hermes_constants import set_hermes_home_override, reset_hermes_home_override, resolve_reasoning_config, parse_reasoning_effort
|
|
104
|
-
from hermes_cli import config as config_mod
|
|
105
|
-
|
|
106
|
-
global _profile_defaults_warning_emitted
|
|
107
|
-
if not _profile_defaults_warning_emitted:
|
|
108
|
-
_profile_defaults_warning_emitted = True
|
|
109
|
-
logger.warning("hermes.compat.profile_defaults_v0_22_5:使用固定版配置锁/原子writer,非公开稳定默认写入RPC")
|
|
110
|
-
token = set_hermes_home_override(profile)
|
|
111
|
-
def digest(value):
|
|
112
|
-
return hashlib.sha256(json.dumps(value, ensure_ascii=False, sort_keys=True, separators=(",", ":")).encode()).hexdigest()
|
|
113
|
-
try:
|
|
114
|
-
with config_mod._CONFIG_LOCK:
|
|
115
|
-
path = config_mod.get_config_path()
|
|
116
|
-
raw = config_mod.require_readable_config_before_write(path)
|
|
117
|
-
if not isinstance(raw, dict):
|
|
118
|
-
raise ValueError("DEFAULT_CONFIG_UNREADABLE")
|
|
119
|
-
def snapshot():
|
|
120
|
-
current_raw = config_mod.require_readable_config_before_write(path)
|
|
121
|
-
effective = config_mod.load_config()
|
|
122
|
-
model = effective.get("model", {})
|
|
123
|
-
model = model if isinstance(model, dict) else {"default": model}
|
|
124
|
-
name = model.get("default") or model.get("model") or ""
|
|
125
|
-
reasoning = resolve_reasoning_config(effective, name)
|
|
126
|
-
effort = "none" if isinstance(reasoning, dict) and reasoning.get("enabled") is False else (reasoning or {}).get("effort")
|
|
127
|
-
return {"version": digest([str(Path(profile).resolve()), current_raw, effective]),
|
|
128
|
-
"fingerprint": digest(current_raw), "writable": not config_mod.is_managed(), "model": name, "provider": model.get("provider", ""),
|
|
129
|
-
"thinkingLevel": effort}
|
|
130
|
-
before = snapshot()
|
|
131
|
-
if update is None:
|
|
132
|
-
return before
|
|
133
|
-
if before["version"] != expected_version:
|
|
134
|
-
return {"status": "conflict", "snapshot": before}
|
|
135
|
-
if config_mod.is_managed():
|
|
136
|
-
raise ValueError("DEFAULT_CONFIG_MANAGED")
|
|
137
|
-
if set(update) - {"model", "provider", "thinkingLevel"} or any(
|
|
138
|
-
not isinstance(update.get(key), str) or not update[key].strip() for key in ("model", "provider")
|
|
139
|
-
):
|
|
140
|
-
raise ValueError("INVALID_DEFAULT_SELECTION")
|
|
141
|
-
if "thinkingLevel" in update and parse_reasoning_effort(update["thinkingLevel"]) is None:
|
|
142
|
-
raise ValueError("INVALID_DEFAULT_REASONING")
|
|
143
|
-
# raw保留模板和无关键;一次写入同时提交模型/provider与明确选择的思考。
|
|
144
|
-
import copy
|
|
145
|
-
target = copy.deepcopy(raw)
|
|
146
|
-
model = target.get("model")
|
|
147
|
-
model = model if isinstance(model, dict) else {}
|
|
148
|
-
from hermes_cli.model_switch import ModelSwitchResult, apply_model_selection
|
|
149
|
-
from hermes_cli.providers import resolve_provider_full, determine_api_mode
|
|
150
|
-
from hermes_cli.web_server_config import _resolve_assignment_credentials
|
|
151
|
-
effective = config_mod.load_config()
|
|
152
|
-
definition = resolve_provider_full(update["provider"], effective.get("providers"), effective.get("custom_providers"))
|
|
153
|
-
same_provider = model.get("provider") == update["provider"]
|
|
154
|
-
base_url = (model.get("base_url") or "") if same_provider else (definition.base_url if definition else "")
|
|
155
|
-
if not same_provider and definition is None:
|
|
156
|
-
raise ValueError("DEFAULT_PROVIDER_ROUTE_UNRESOLVED")
|
|
157
|
-
result = ModelSwitchResult(success=True, new_model=update["model"], target_provider=update["provider"],
|
|
158
|
-
base_url=base_url, api_mode=determine_api_mode(update["provider"], base_url, update["model"]))
|
|
159
|
-
target["model"] = apply_model_selection(model, result)
|
|
160
|
-
_resolve_assignment_credentials(target["model"], update["provider"], (effective.get("providers") or {}).get(update["provider"]))
|
|
161
|
-
if "thinkingLevel" in update:
|
|
162
|
-
agent = target.setdefault("agent", {})
|
|
163
|
-
if not isinstance(agent, dict):
|
|
164
|
-
raise ValueError("INVALID_AGENT_CONFIG")
|
|
165
|
-
overrides = agent.setdefault("reasoning_overrides", {})
|
|
166
|
-
if not isinstance(overrides, dict):
|
|
167
|
-
raise ValueError("INVALID_REASONING_OVERRIDES")
|
|
168
|
-
agent["reasoning_effort"] = update["thinkingLevel"]
|
|
169
|
-
# 精确模型键优先于拼写/前缀兼容匹配;保留其他模型的专项配置。
|
|
170
|
-
overrides[update["model"]] = update["thinkingLevel"]
|
|
171
|
-
resolved = resolve_reasoning_config(target, update["model"])
|
|
172
|
-
if resolved != parse_reasoning_effort(update["thinkingLevel"]):
|
|
173
|
-
raise ValueError("DEFAULT_REASONING_NOT_EFFECTIVE")
|
|
174
|
-
if prepare:
|
|
175
|
-
prepare(digest(target))
|
|
176
|
-
# 原生模型选择会删除旧路由的端点/凭据指针;其余完整raw快照保持。
|
|
177
|
-
config_mod.atomic_config_replace(path, target)
|
|
178
|
-
after = snapshot()
|
|
179
|
-
if after["model"] != update["model"] or after["provider"] != update["provider"] or (
|
|
180
|
-
"thinkingLevel" in update and after["thinkingLevel"] != update["thinkingLevel"]
|
|
181
|
-
):
|
|
182
|
-
raise ValueError("DEFAULT_READBACK_MISMATCH")
|
|
183
|
-
return {"status": "applied", "snapshot": after}
|
|
184
|
-
finally:
|
|
185
|
-
reset_hermes_home_override(token)
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
def model_display_names(profile, models):
|
|
189
|
-
"""固定版展示兼容:只读原profile的名称元数据,不刷新网络或改变模型身份。"""
|
|
190
|
-
global _model_names_warning_emitted
|
|
191
|
-
from hermes_constants import set_hermes_home_override, reset_hermes_home_override
|
|
192
|
-
|
|
193
|
-
token = set_hermes_home_override(profile)
|
|
194
|
-
names = {}
|
|
195
|
-
try:
|
|
196
|
-
from agent.models_dev import get_model_info
|
|
197
|
-
from hermes_cli.config import load_config_readonly
|
|
198
|
-
|
|
199
|
-
config = load_config_readonly()
|
|
200
|
-
for model in models:
|
|
201
|
-
try:
|
|
202
|
-
info = get_model_info(model["provider"], model["name"], allow_network=False, config=config)
|
|
203
|
-
name = info.name if info else None
|
|
204
|
-
if isinstance(name, str) and name.strip():
|
|
205
|
-
names[(model["provider"], model["name"])] = name.strip()
|
|
206
|
-
except Exception:
|
|
207
|
-
if not _model_names_warning_emitted:
|
|
208
|
-
_model_names_warning_emitted = True
|
|
209
|
-
logger.warning("hermes.compat.model_names_v0_22_5:名称元数据不可读,保留原模型ID")
|
|
210
|
-
except Exception:
|
|
211
|
-
if not _model_names_warning_emitted:
|
|
212
|
-
_model_names_warning_emitted = True
|
|
213
|
-
logger.warning("hermes.compat.model_names_v0_22_5:名称配置不可读,保留原模型ID")
|
|
214
|
-
finally:
|
|
215
|
-
reset_hermes_home_override(token)
|
|
216
|
-
return names
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
def resolved_reasoning_default(model: str):
|
|
220
|
-
"""固定版兼容:用Hermes自身合并配置解析当前模型的默认reasoning effort。
|
|
221
|
-
|
|
222
|
-
Hermes 0.22.5 的公开 model.options 不发布默认值;这里只读 `hermes_cli.config.load_config_readonly()`
|
|
223
|
-
的合并结果,再走 `hermes_constants.resolve_reasoning_config()`(per-model overrides → 全局
|
|
224
|
-
agent.reasoning_effort → 无配置则 None,交给provider默认)。读取失败不发布默认值并告警,
|
|
225
|
-
不写配置、不创建会话、不猜测档位。
|
|
226
|
-
"""
|
|
227
|
-
global _resolved_default_warning_emitted
|
|
228
|
-
if not isinstance(model, str) or not model.strip():
|
|
229
|
-
return None
|
|
230
|
-
try:
|
|
231
|
-
from hermes_cli.config import load_config_readonly
|
|
232
|
-
from hermes_constants import resolve_reasoning_config
|
|
233
|
-
|
|
234
|
-
return resolve_reasoning_config(load_config_readonly(), model)
|
|
235
|
-
except Exception:
|
|
236
|
-
if not _resolved_default_warning_emitted:
|
|
237
|
-
_resolved_default_warning_emitted = True
|
|
238
|
-
logger.warning(
|
|
239
|
-
"hermes.compat.resolved_reasoning_default_v0_22_5:无法读取宿主默认思考强度,"
|
|
240
|
-
"模型目录不发布defaultValue(公开默认值API可用后替换)"
|
|
241
|
-
)
|
|
242
|
-
return None
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
def profile_reasoning_default(profile, model):
|
|
246
|
-
"""目录默认与写入使用同一owner Profile;ContextVar不污染其他Profile。"""
|
|
247
|
-
from hermes_constants import set_hermes_home_override, reset_hermes_home_override
|
|
248
|
-
token = set_hermes_home_override(profile)
|
|
249
|
-
try:
|
|
250
|
-
return resolved_reasoning_default(model)
|
|
251
|
-
finally:
|
|
252
|
-
reset_hermes_home_override(token)
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
CRITICAL_FILES = [
|
|
256
|
-
"gateway/session_authorities.py",
|
|
257
|
-
"gateway/session_identity.py",
|
|
258
|
-
"gateway/session.py",
|
|
259
|
-
"gateway/platforms/base.py",
|
|
260
|
-
"hermes_state_runtime.py",
|
|
261
|
-
"gateway/session_envelope.py",
|
|
262
|
-
"gateway/session_authority.py",
|
|
263
|
-
"gateway/authz_mixin.py",
|
|
264
|
-
"gateway/run_adapters.py",
|
|
265
|
-
"gateway/run_inbound.py",
|
|
266
|
-
"gateway/run_inbound_hooks.py",
|
|
267
|
-
"gateway/run.py",
|
|
268
|
-
"gateway/run_busy.py",
|
|
269
|
-
"gateway/run_startup.py",
|
|
270
|
-
"gateway/run_runtime_init.py",
|
|
271
|
-
"gateway/session_ingress.py",
|
|
272
|
-
"gateway/session_ingress_burst.py",
|
|
273
|
-
"gateway/platforms/event.py",
|
|
274
|
-
"gateway/session_ingress_media.py",
|
|
275
|
-
"agent/image_routing.py",
|
|
276
|
-
"agent/session_persistence.py",
|
|
277
|
-
"gateway/session_images.py",
|
|
278
|
-
"tui_gateway/prompt_attachments.py",
|
|
279
|
-
"gateway/session_authority.py",
|
|
280
|
-
"gateway/session_pending_controls.py",
|
|
281
|
-
"tools/approval.py",
|
|
282
|
-
"tools/approval_gateway_wait.py",
|
|
283
|
-
"tools/clarify_gateway.py",
|
|
284
|
-
"gateway/session_server_requests.py",
|
|
285
|
-
"gateway/session_usage.py",
|
|
286
|
-
"gateway/session_controls.py",
|
|
287
|
-
"gateway/session_events.py",
|
|
288
|
-
"gateway/session_contract.py",
|
|
289
|
-
"gateway/runtime_ownership.py",
|
|
290
|
-
"gateway/control_socket.py",
|
|
291
|
-
"gateway/run_bootstrap.py",
|
|
292
|
-
"tui_gateway/transport.py",
|
|
293
|
-
"gateway/session_context.py",
|
|
294
|
-
"agent/plugin_stream_hooks.py",
|
|
295
|
-
"agent/stream_delivery.py",
|
|
296
|
-
]
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
class MediaDeliveryBoundary:
|
|
300
|
-
def media_source_references(self, event, extracted):
|
|
301
|
-
# pre_extract是固定_ExtractedResponse内部字段,并非公开保证;只读配对,不改parser/dispatcher。
|
|
302
|
-
from gateway.platforms.base import _ExtractedResponse
|
|
303
|
-
if not isinstance(extracted, _ExtractedResponse):
|
|
304
|
-
return ()
|
|
305
|
-
targets = list(dict.fromkeys([path for path, _ in extracted.media_files] + extracted.local_files))
|
|
306
|
-
original = getattr(extracted, "pre_extract", None)
|
|
307
|
-
if not isinstance(original, str):
|
|
308
|
-
return tuple((target, None) for target in targets)
|
|
309
|
-
with self._media_delivery_scope(event.source):
|
|
310
|
-
media, body = self.extract_media(original)
|
|
311
|
-
_, body = self.extract_images(body)
|
|
312
|
-
local, _ = self.extract_local_files(body)
|
|
313
|
-
candidates = list(dict.fromkeys([path for path, _ in media] + local))
|
|
314
|
-
route = self._source_session_key(event.source)
|
|
315
|
-
mapped = [(candidate, self.validate_media_delivery_path(candidate, session_key=route)) for candidate in candidates]
|
|
316
|
-
# 多义/失配只拒绝对应目标;不以basename或唯一当前run归属其他合法输出。
|
|
317
|
-
return tuple((target, matches[0] if len(matches := [raw for raw, normalized in mapped if normalized == target]) == 1 else None)
|
|
318
|
-
for target in targets)
|
|
319
|
-
|
|
320
|
-
async def extract_owned_response(self, record, response):
|
|
321
|
-
# 只投影原持久结果;此event不重新进入handle_message、授权或模型循环。
|
|
322
|
-
lease = self._recovery().lease()
|
|
323
|
-
event = await lease[0].delivery_event(record)
|
|
324
|
-
self._recovery().check(lease)
|
|
325
|
-
if event is None:
|
|
326
|
-
return None
|
|
327
|
-
extracted = await self._extract_response_content(response, event, self._source_session_key(event.source), is_ephemeral_response=False)
|
|
328
|
-
self._recovery().check(lease)
|
|
329
|
-
return extracted
|
|
330
|
-
|
|
331
|
-
async def _deliver_attachments(self, event, *args, **kwargs):
|
|
332
|
-
# 正常及原生恢复均经此含原event的固定边界;parser/派发全部继续使用SDK原实现。
|
|
333
|
-
extracted = args[0] if args else kwargs.get("extracted")
|
|
334
|
-
if extracted is not None and not any(getattr(extracted, field, ()) for field in ("images", "media_files", "local_files")):
|
|
335
|
-
return await super()._deliver_attachments(event, *args, **kwargs)
|
|
336
|
-
references = self.media_source_references(event, extracted)
|
|
337
|
-
async with self.delivery_context(event, media_sources=references):
|
|
338
|
-
return await super()._deliver_attachments(event, *args, **kwargs)
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
def verified_source():
|
|
342
|
-
root = Path(gateway_config.__file__).resolve().parents[1]
|
|
343
|
-
try:
|
|
344
|
-
revision = subprocess.check_output(
|
|
345
|
-
["git", "-C", str(root), "rev-parse", "HEAD"],
|
|
346
|
-
text=True,
|
|
347
|
-
stderr=subprocess.DEVNULL,
|
|
348
|
-
timeout=3,
|
|
349
|
-
).strip()
|
|
350
|
-
clean = (
|
|
351
|
-
subprocess.run(
|
|
352
|
-
[
|
|
353
|
-
"git",
|
|
354
|
-
"-C",
|
|
355
|
-
str(root),
|
|
356
|
-
"diff",
|
|
357
|
-
"--quiet",
|
|
358
|
-
"HEAD",
|
|
359
|
-
"--",
|
|
360
|
-
*CRITICAL_FILES,
|
|
361
|
-
],
|
|
362
|
-
stderr=subprocess.DEVNULL,
|
|
363
|
-
timeout=3,
|
|
364
|
-
).returncode
|
|
365
|
-
== 0
|
|
366
|
-
)
|
|
367
|
-
except (OSError, subprocess.SubprocessError):
|
|
368
|
-
raise PublicRuntimeUnavailable("HERMES_COMPAT_REVISION_UNVERIFIED")
|
|
369
|
-
if revision != APPROVED_REVISION or not clean:
|
|
370
|
-
raise PublicRuntimeUnavailable("HERMES_COMPAT_REVISION_UNSUPPORTED")
|
|
371
|
-
return root
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
class BindingLocator:
|
|
375
|
-
platform = "fridaynext"
|
|
376
|
-
hermes_version = "0.22.5"
|
|
377
|
-
|
|
378
|
-
def __init__(self, adapter, profile):
|
|
379
|
-
verified_source()
|
|
380
|
-
logger.warning("hermes.compat.media_source_reference_v0_22_5:依赖内部pre_extract;公开原引用接缝可用后替换")
|
|
381
|
-
# 静态导入保留validator可见性;不动态拼接名称隐藏耦合。
|
|
382
|
-
from gateway.session_authorities import authority_for_home, owner_scope
|
|
383
|
-
from gateway.session_identity import identity_of
|
|
384
|
-
from hermes_state_runtime import list_session_admissions
|
|
385
|
-
|
|
386
|
-
self.adapter = adapter
|
|
387
|
-
self.profile_home = str(profile)
|
|
388
|
-
self.authority_for_home = authority_for_home
|
|
389
|
-
self.owner_scope = owner_scope
|
|
390
|
-
self.identity_of = identity_of
|
|
391
|
-
self.list_admissions = list_session_admissions
|
|
392
|
-
self.observed_controls = {}
|
|
393
|
-
self.reasoning_sources = OrderedDict()
|
|
394
|
-
self.reasoning_lock = threading.Lock()
|
|
395
|
-
self.reasoning_warning_emitted = False
|
|
396
|
-
|
|
397
|
-
def publish_reasoning(self, event):
|
|
398
|
-
"""公开钩子的文本,用原回调 ContextVar 输入身份发布到原执行的回放流。
|
|
399
|
-
|
|
400
|
-
公开钩子没有 admission/generation;这里不按会话取最新运行,也不替换 Agent 回调。
|
|
401
|
-
固定版 observer 复制产生事件时的上下文,迟到回调仍指向旧输入,原代发布会拒绝它。
|
|
402
|
-
"""
|
|
403
|
-
from hermes_constants import get_hermes_home
|
|
404
|
-
from gateway.session_context import (
|
|
405
|
-
_SESSION_MESSAGE_ID, _SESSION_CHAT_ID, _SESSION_KEY, _SESSION_ID, _SESSION_PLATFORM,
|
|
406
|
-
)
|
|
407
|
-
|
|
408
|
-
delta = event.get("delta")
|
|
409
|
-
native, turn, iteration = event.get("session_id"), event.get("turn_id"), event.get("iteration")
|
|
410
|
-
source = (_SESSION_MESSAGE_ID.get(None), _SESSION_CHAT_ID.get(None), _SESSION_KEY.get(None),
|
|
411
|
-
_SESSION_ID.get(None), _SESSION_PLATFORM.get(None))
|
|
412
|
-
if (event.get("kind") != "reasoning" or not isinstance(delta, str) or not delta
|
|
413
|
-
or not isinstance(turn, str) or not turn or type(iteration) is not int or iteration < 1
|
|
414
|
-
or any(not isinstance(value, str) or not value for value in source)
|
|
415
|
-
or source[3] != native or source[4] != self.platform or event.get("surface") != self.platform
|
|
416
|
-
or str(Path(get_hermes_home()).resolve()) != self.profile_home):
|
|
417
|
-
return False
|
|
418
|
-
adapter = self.adapter
|
|
419
|
-
runtime = adapter.runtime
|
|
420
|
-
identity = getattr(getattr(runtime, "client", None), "identity", None)
|
|
421
|
-
if not adapter.plugin_enabled or not identity or adapter.host is None:
|
|
422
|
-
return False
|
|
423
|
-
authority = self.authority()
|
|
424
|
-
if identity.get("authority_epoch") != authority.epoch:
|
|
425
|
-
return False
|
|
426
|
-
input_id, chat_id, session_key, _, _ = source
|
|
427
|
-
with self.reasoning_lock:
|
|
428
|
-
if not self.reasoning_warning_emitted:
|
|
429
|
-
self.reasoning_warning_emitted = True
|
|
430
|
-
logger.warning("hermes.compat.reasoning_identity_v0_22_5:文本来自公开on_stream_delta;原输入ContextVar与执行发布为固定版兼容接缝")
|
|
431
|
-
key = (authority, authority.epoch, source, turn)
|
|
432
|
-
original = self.reasoning_sources.get(key)
|
|
433
|
-
if original is None:
|
|
434
|
-
owner = authority.logical_owner(native)
|
|
435
|
-
live = authority.sessions.get(owner)
|
|
436
|
-
if (live is None or getattr(live.source, "chat_id", None) != chat_id
|
|
437
|
-
or adapter._source_session_key(live.source) != session_key):
|
|
438
|
-
return False
|
|
439
|
-
with self.owner_scope(authority):
|
|
440
|
-
rows = [row for row in self.list_admissions(authority.db, session_id=owner, pending_only=False)
|
|
441
|
-
if row.get("request_id") == input_id]
|
|
442
|
-
if len(rows) != 1:
|
|
443
|
-
return False
|
|
444
|
-
row = rows[0]
|
|
445
|
-
payload = row.get("payload", {}).get("native_text_v1", {})
|
|
446
|
-
original_source = payload.get("source", {})
|
|
447
|
-
original_event = payload.get("event", {})
|
|
448
|
-
if (original_source.get("platform") != self.platform or original_source.get("chat_id") != chat_id
|
|
449
|
-
or original_source.get("message_id") != input_id or original_event.get("message_id") != input_id
|
|
450
|
-
or original_event.get("allow_gateway_control") is not False
|
|
451
|
-
or row.get("owner_epoch") != authority.epoch or type(row.get("generation")) is not int):
|
|
452
|
-
return False
|
|
453
|
-
original = (owner, row["generation"])
|
|
454
|
-
self.reasoning_sources[key] = original
|
|
455
|
-
while len(self.reasoning_sources) > 128:
|
|
456
|
-
self.reasoning_sources.popitem(last=False)
|
|
457
|
-
else:
|
|
458
|
-
self.reasoning_sources.move_to_end(key)
|
|
459
|
-
# 原生流锁同步检查执行代并打原准入stamp;停止后或下一代已运行则拒绝。
|
|
460
|
-
return authority.publish_execution(*original, "reasoning.delta", {
|
|
461
|
-
"text": delta, "turn_id": turn, "iteration": iteration,
|
|
462
|
-
})
|
|
463
|
-
|
|
464
|
-
def authority(self):
|
|
465
|
-
value = self.authority_for_home(
|
|
466
|
-
self.adapter.gateway_runner, Path(self.profile_home)
|
|
467
|
-
)
|
|
468
|
-
if value is None:
|
|
469
|
-
raise RuntimeError("PROFILE_NOT_SERVED")
|
|
470
|
-
return value
|
|
471
|
-
|
|
472
|
-
def ingress_rejection(self, source):
|
|
473
|
-
"""宿主 ingress 丢事件后,判断这是不是"明确未授权"。
|
|
474
|
-
|
|
475
|
-
宿主把不在允许列表里的发送者直接丢弃(`gateway/run_inbound.py` 的 "Unauthorized user"),
|
|
476
|
-
只留下 None,客户端看不到任何原因(FN-171)。这里用宿主自己的授权判定复核同一来源:
|
|
477
|
-
只有明确 False 才是确定拒绝;None(没装回调,"trust unknown")、True、异常或非布尔都
|
|
478
|
-
不算,保持原来的 unknown 语义,不把合法入站误判成拒绝。
|
|
479
|
-
"""
|
|
480
|
-
runner = self.adapter.gateway_runner
|
|
481
|
-
probe = getattr(runner, "_is_user_authorized_for_source", None)
|
|
482
|
-
if not callable(probe):
|
|
483
|
-
return None
|
|
484
|
-
try:
|
|
485
|
-
verdict = probe(source)
|
|
486
|
-
except Exception:
|
|
487
|
-
return None
|
|
488
|
-
if verdict is not False:
|
|
489
|
-
return None
|
|
490
|
-
return InputAdmissionRefused("HOST_SOURCE_UNAUTHORIZED", "ingress-auth")
|
|
491
|
-
|
|
492
|
-
def validate_source(self, source):
|
|
493
|
-
self.adapter._canonicalize(source)
|
|
494
|
-
identity = self.identity_of(source)
|
|
495
|
-
return identity is not None and Path(identity.runtime_home).resolve() == Path(
|
|
496
|
-
self.profile_home
|
|
497
|
-
)
|
|
498
|
-
|
|
499
|
-
def input_media_policy(self, *, shared=False):
|
|
500
|
-
# 只通过公开图片大小helper读原owner profile;范围切换继续收在固定兼容层。
|
|
501
|
-
from gateway.platforms.base import get_inbound_media_max_bytes
|
|
502
|
-
with self.owner_scope(self.authority()):
|
|
503
|
-
policy = {"version": 1, "maxCount": 10, "maxBytes": max(0, get_inbound_media_max_bytes())}
|
|
504
|
-
if shared:
|
|
505
|
-
# 公开stage RPC未声明可读的limit字段;固定实现的额外25MiB/张合同明确收在兼容层。
|
|
506
|
-
from tui_gateway.prompt_attachments import _ATTACH_BYTES_MAX_BYTES
|
|
507
|
-
policy["maxFileBytes"] = _ATTACH_BYTES_MAX_BYTES
|
|
508
|
-
return policy
|
|
509
|
-
|
|
510
|
-
def selected_image_root(self):
|
|
511
|
-
from gateway.platforms.base import get_image_cache_dir
|
|
512
|
-
with self.owner_scope(self.authority()):
|
|
513
|
-
root = Path(get_image_cache_dir())
|
|
514
|
-
if not root.is_absolute() or root.resolve() != root or root.is_symlink():
|
|
515
|
-
raise RuntimeError("MEDIA_SCOPE_INVALID")
|
|
516
|
-
return str(root)
|
|
517
|
-
|
|
518
|
-
def output_media_roots(self):
|
|
519
|
-
from gateway.platforms.base import get_image_cache_dir, get_document_cache_dir
|
|
520
|
-
with self.owner_scope(self.authority()):
|
|
521
|
-
roots = [Path(get_image_cache_dir()), Path(get_document_cache_dir()), *self.adapter.media_output_roots]
|
|
522
|
-
if any(not path.is_absolute() or path.resolve() != path or path.is_symlink()
|
|
523
|
-
or path in (Path("/"), Path.home(), Path(self.profile_home)) for path in roots):
|
|
524
|
-
raise RuntimeError("MEDIA_OUTPUT_ROOT_INVALID")
|
|
525
|
-
return tuple(roots)
|
|
526
|
-
|
|
527
|
-
def extract_selected_response(self, response):
|
|
528
|
-
# selected原会话没有平台event;只在原profile作用域调用SDK公开parser,不复造私有分发事件。
|
|
529
|
-
with self.owner_scope(self.authority()):
|
|
530
|
-
media, body = self.adapter.extract_media(response)
|
|
531
|
-
images, body = self.adapter.extract_images(body)
|
|
532
|
-
local, body = self.adapter.extract_local_files(body)
|
|
533
|
-
body = self.adapter.strip_media_directives_for_display(body)
|
|
534
|
-
return {"text": body, "images": images, "paths": list(dict.fromkeys([path for path, _ in media] + local)),
|
|
535
|
-
"force_document": "[[as_document]]" in response}
|
|
536
|
-
|
|
537
|
-
async def cache_output_image(self, url, limit):
|
|
538
|
-
from urllib.parse import urlsplit
|
|
539
|
-
from gateway.platforms.helpers import platform_http_client
|
|
540
|
-
from gateway.platforms.base import cache_image_from_bytes_async
|
|
541
|
-
from .media_input import image_mime, MIMES
|
|
542
|
-
parsed = urlsplit(url)
|
|
543
|
-
if (parsed.scheme not in ("http", "https") or not parsed.hostname or parsed.username is not None
|
|
544
|
-
or parsed.password is not None or type(limit) is not int or limit < 1):
|
|
545
|
-
raise RuntimeError("MEDIA_REMOTE_URL_INVALID")
|
|
546
|
-
# SDK公开client负责实际连接IP与每跳重定向;这里仅执行本插件已有输出上限。
|
|
547
|
-
with self.owner_scope(self.authority()):
|
|
548
|
-
async with platform_http_client(timeout=15.0, max_redirects=5) as client:
|
|
549
|
-
async with client.stream("GET", url, headers={"Accept": "image/*"}) as response:
|
|
550
|
-
response.raise_for_status()
|
|
551
|
-
try:
|
|
552
|
-
declared = int(response.headers.get("content-length", "0"))
|
|
553
|
-
except ValueError:
|
|
554
|
-
declared = 0
|
|
555
|
-
if declared > limit:
|
|
556
|
-
raise RuntimeError("MEDIA_OUTPUT_SIZE_INVALID")
|
|
557
|
-
chunks, total = [], 0
|
|
558
|
-
async for chunk in response.aiter_bytes():
|
|
559
|
-
total += len(chunk)
|
|
560
|
-
if total > limit:
|
|
561
|
-
raise RuntimeError("MEDIA_OUTPUT_SIZE_INVALID")
|
|
562
|
-
chunks.append(chunk)
|
|
563
|
-
data = b"".join(chunks)
|
|
564
|
-
mime = image_mime(data[:12])
|
|
565
|
-
if not mime:
|
|
566
|
-
raise RuntimeError("MEDIA_OUTPUT_MIME_INVALID")
|
|
567
|
-
extension = MIMES[mime]
|
|
568
|
-
path = await cache_image_from_bytes_async(data, ext=extension)
|
|
569
|
-
return {"path": path, "filename": "image" + extension}
|
|
570
|
-
|
|
571
|
-
def delivery_event(self, record):
|
|
572
|
-
from hermes_state_runtime import get_session_admission
|
|
573
|
-
from gateway.session_envelope import restore_native_source
|
|
574
|
-
from gateway.platforms.event import MessageEvent, MessageType
|
|
575
|
-
if (record.get("legacy") or record.get("shared") or record.get("profile") != self.profile_home
|
|
576
|
-
or record.get("service_id") != self.adapter.service_id or not record.get("admission_id")):
|
|
577
|
-
return None
|
|
578
|
-
authority = self.authority()
|
|
579
|
-
with self.owner_scope(authority):
|
|
580
|
-
row = get_session_admission(authority.db, admission_id=record["admission_id"])
|
|
581
|
-
projected = self._project(row, record["input_id"])
|
|
582
|
-
if (projected is None or projected["admission_id"] != record["admission_id"]
|
|
583
|
-
or projected["conversation_id"] != record["native_id"] or projected["chat_id"] != record["chat_id"]):
|
|
584
|
-
return None
|
|
585
|
-
payload = row["payload"]; native = payload["native_text_v1"]
|
|
586
|
-
if (native.get("event", {}).get("message_id") != record["input_id"]
|
|
587
|
-
or native.get("event", {}).get("allow_gateway_control") is not False):
|
|
588
|
-
return None
|
|
589
|
-
source = restore_native_source(payload, self.adapter.gateway_runner)
|
|
590
|
-
if not self.validate_source(source):
|
|
591
|
-
return None
|
|
592
|
-
# 图片源只用于入站执行;展示解析保留原已证明身份,不因输入缓存回收重新读取图片。
|
|
593
|
-
return MessageEvent(text=payload["text"], source=source, message_id=record["input_id"],
|
|
594
|
-
message_type=MessageType(native.get("message_type", "text")), allow_gateway_control=False)
|
|
595
|
-
|
|
596
|
-
def input_media_history(self, record):
|
|
597
|
-
"""仅原准入有限字段证明历史注记;不读正文路径猜归属、不改原生历史。"""
|
|
598
|
-
from hermes_state_runtime import get_session_admission
|
|
599
|
-
if (record.get("legacy")
|
|
600
|
-
or record.get("profile") != self.profile_home
|
|
601
|
-
or record.get("service_id") != self.adapter.service_id
|
|
602
|
-
or not record.get("admission_id") or not record.get("input_media")):
|
|
603
|
-
return None
|
|
604
|
-
with self.owner_scope(self.authority()):
|
|
605
|
-
row = get_session_admission(self.authority().db, admission_id=record["admission_id"])
|
|
606
|
-
if (row is None or row.get("admission_id") != record["admission_id"]
|
|
607
|
-
or row.get("request_id") != record.get("input_id")
|
|
608
|
-
or row.get("target_session_id") != record.get("native_id")):
|
|
609
|
-
return None
|
|
610
|
-
payload = row.get("payload", {})
|
|
611
|
-
frozen = record["input_media"]
|
|
612
|
-
if record.get("shared"):
|
|
613
|
-
envelope = payload.get("attachments_v1", {})
|
|
614
|
-
if "native_text_v1" in payload:
|
|
615
|
-
return None
|
|
616
|
-
media, types = envelope.get("media"), envelope.get("media_types")
|
|
617
|
-
else:
|
|
618
|
-
native = payload.get("native_text_v1", {})
|
|
619
|
-
source, event = native.get("source", {}), native.get("event", {})
|
|
620
|
-
if (source.get("platform") != self.platform or source.get("chat_id") != record.get("chat_id")
|
|
621
|
-
or source.get("message_id") != record.get("input_id") or event.get("message_id") != record.get("input_id")):
|
|
622
|
-
return None
|
|
623
|
-
media, types = native.get("media"), event.get("media_types")
|
|
624
|
-
if (not isinstance(payload.get("text"), str) or type(media) is not list
|
|
625
|
-
or type(frozen) is not list or not 1 <= len(media) <= 10 or len(media) != len(frozen)
|
|
626
|
-
or types != [item.get("mimeType") for item in frozen]
|
|
627
|
-
or any(type(item) is not dict or not isinstance(item.get("path"), str)
|
|
628
|
-
or item.get("sha256") != original.get("sha256")
|
|
629
|
-
or item.get("size") != original.get("size") for item, original in zip(media, frozen))):
|
|
630
|
-
return None
|
|
631
|
-
text = payload["text"]
|
|
632
|
-
# 固定image_routing与session_persistence的完整生成形态;只比较全值,不解析/删正文子串。
|
|
633
|
-
rendered = (text.strip() or "What do you see in this image?") + "\n\n"
|
|
634
|
-
rendered += "\n".join("[Image attached at: " + item["path"] + "]" for item in media)
|
|
635
|
-
rendered += "\n[screenshot]" * len(media)
|
|
636
|
-
return {"version": 1, "text": text, "rendered": rendered,
|
|
637
|
-
"sha256": [item["sha256"] for item in media]}
|
|
638
|
-
|
|
639
|
-
def input_identity(self, event):
|
|
640
|
-
source = event.source
|
|
641
|
-
if (not self.validate_source(source)
|
|
642
|
-
or getattr(source.platform, "value", source.platform) != self.platform
|
|
643
|
-
or not isinstance(event.message_id, str) or not event.message_id
|
|
644
|
-
or source.message_id != event.message_id):
|
|
645
|
-
raise RuntimeError("FIFO_INPUT_SCOPE_MISMATCH")
|
|
646
|
-
return (str(Path(self.identity_of(source).runtime_home).resolve()),
|
|
647
|
-
source.chat_id, source.chat_type, source.user_id, source.thread_id,
|
|
648
|
-
event.message_id)
|
|
649
|
-
|
|
650
|
-
async def prepare_input(self, event, *, runtime):
|
|
651
|
-
"""完整宿主门禁先执行;已授权事件再使用原宿主FIFO标记,仍经标准handle_message。"""
|
|
652
|
-
adapter, runner = self.adapter, self.adapter.gateway_runner
|
|
653
|
-
if (hasattr(event, "_fifo_only") or event.internal is not False
|
|
654
|
-
or event.allow_gateway_control is not False
|
|
655
|
-
or asyncio.get_running_loop() is not adapter.owner_loop
|
|
656
|
-
or getattr(runner, "_running", False) is not True
|
|
657
|
-
or type(getattr(runner, "_startup_restore_in_progress", None)) is not bool
|
|
658
|
-
or runner._startup_restore_in_progress):
|
|
659
|
-
raise InputAdmissionRefused()
|
|
660
|
-
authority = self.authority()
|
|
661
|
-
lease = (adapter.runtime, adapter.host, adapter.bindings, adapter.service_id, authority,
|
|
662
|
-
authority.epoch, str(Path(adapter.profile).resolve()))
|
|
663
|
-
identity = getattr(runtime.client, "identity", None)
|
|
664
|
-
if (lease[0] is not runtime or not isinstance(identity, dict)
|
|
665
|
-
or identity.get("authority_epoch") != authority.epoch or lease[6] != self.profile_home):
|
|
666
|
-
raise RuntimeError("FIFO_INPUT_CONTEXT_CHANGED")
|
|
667
|
-
with self.owner_scope(authority):
|
|
668
|
-
expected = self.input_identity(event)
|
|
669
|
-
route = adapter._source_session_key(event.source)
|
|
670
|
-
stop_epoch = runner._route_stop_epoch(route)
|
|
671
|
-
# 固定源码在startup分支之前无await;True时不能让未授权事件进入恢复队列。
|
|
672
|
-
admitted = await runner._hm_admit_event(event)
|
|
673
|
-
if admitted is None:
|
|
674
|
-
# 宿主默认拒绝不在允许列表里的发送者,且在 ingress 就把事件丢掉。这与 hook 消费、
|
|
675
|
-
# 生命周期变化一样只表现为"没有返回",但原因不同:未授权是确定的拒绝,必须让客户端
|
|
676
|
-
# 看到可读失败(FN-171),不能和 unknown 混在一起。
|
|
677
|
-
rejection = self.ingress_rejection(event.source)
|
|
678
|
-
if rejection is not None:
|
|
679
|
-
raise rejection
|
|
680
|
-
raise InputAdmissionUnconfirmed("FIFO_INPUT_NOT_ADMITTED", "ingress-result")
|
|
681
|
-
current = (adapter.runtime, adapter.host, adapter.bindings, adapter.service_id, self.authority(),
|
|
682
|
-
authority.epoch, str(Path(adapter.profile).resolve()))
|
|
683
|
-
identity = getattr(runtime.client, "identity", None)
|
|
684
|
-
if (any(current[i] is not lease[i] for i in (0, 1, 2, 4)) or current[3] != lease[3]
|
|
685
|
-
or current[5:] != lease[5:] or not isinstance(identity, dict)
|
|
686
|
-
or identity.get("authority_epoch") != lease[5]
|
|
687
|
-
or getattr(runner, "_running", False) is not True
|
|
688
|
-
or getattr(runner, "_startup_restore_in_progress", None) is not False):
|
|
689
|
-
raise InputAdmissionUnconfirmed("FIFO_INPUT_CONTEXT_CHANGED", "after-ingress")
|
|
690
|
-
if runner._route_stop_epoch(route) != stop_epoch:
|
|
691
|
-
raise InputAdmissionUnconfirmed("FIFO_STOP_EPOCH_CHANGED", "after-ingress")
|
|
692
|
-
accepted_event, source, internal = admitted
|
|
693
|
-
if (internal is not False or accepted_event.internal is not False
|
|
694
|
-
or accepted_event.allow_gateway_control is not False
|
|
695
|
-
or hasattr(accepted_event, "_fifo_only")
|
|
696
|
-
or accepted_event.source is not source
|
|
697
|
-
or self.input_identity(accepted_event) != expected
|
|
698
|
-
or adapter._source_session_key(source) != route):
|
|
699
|
-
raise InputAdmissionUnconfirmed("FIFO_INPUT_SCOPE_MISMATCH", "after-ingress")
|
|
700
|
-
# 该标记会跳过第二次ingress,因此只允许在上述真实授权与原epoch核对后设置。
|
|
701
|
-
accepted_event._fifo_only = True
|
|
702
|
-
accepted_event._stop_epoch = stop_epoch
|
|
703
|
-
return accepted_event
|
|
704
|
-
|
|
705
|
-
def prepared_input_guard(self, event, *, runtime):
|
|
706
|
-
"""只校验刚完成完整门禁的原事件;首次配置的每个await继续使用同一栅栏。"""
|
|
707
|
-
adapter, runner = self.adapter, self.adapter.gateway_runner
|
|
708
|
-
authority = self.authority()
|
|
709
|
-
source = event.source
|
|
710
|
-
expected = self.input_identity(event)
|
|
711
|
-
route = adapter._source_session_key(source)
|
|
712
|
-
epoch = authority.epoch
|
|
713
|
-
stop_epoch = getattr(event, "_stop_epoch", None)
|
|
714
|
-
lease = (adapter.runtime, adapter.host, adapter.bindings, adapter.service_id,
|
|
715
|
-
str(Path(adapter.profile).resolve()), adapter.owner_loop)
|
|
716
|
-
instance = runtime.client.identity.get("instance_id")
|
|
717
|
-
|
|
718
|
-
def check():
|
|
719
|
-
identity = runtime.client.identity
|
|
720
|
-
current = (adapter.runtime, adapter.host, adapter.bindings, adapter.service_id,
|
|
721
|
-
str(Path(adapter.profile).resolve()), adapter.owner_loop)
|
|
722
|
-
if (any(current[i] is not lease[i] for i in (0, 1, 2, 5)) or current[3:5] != lease[3:5]
|
|
723
|
-
or runtime is not lease[0] or adapter.gateway_runner is not runner
|
|
724
|
-
or getattr(adapter, "plugin_enabled", None) is not True or not isinstance(identity, dict)
|
|
725
|
-
or identity.get("instance_id") != instance or identity.get("authority_epoch") != epoch
|
|
726
|
-
or self.authority() is not authority or authority.epoch != epoch
|
|
727
|
-
or asyncio.get_running_loop() is not lease[5]
|
|
728
|
-
or getattr(runner, "_running", False) is not True
|
|
729
|
-
or getattr(runner, "_startup_restore_in_progress", None) is not False):
|
|
730
|
-
raise InputAdmissionUnconfirmed("FIFO_INPUT_CONTEXT_CHANGED", "initial-settings")
|
|
731
|
-
with self.owner_scope(authority):
|
|
732
|
-
try:
|
|
733
|
-
current_identity = self.input_identity(event)
|
|
734
|
-
current_route = adapter._source_session_key(source)
|
|
735
|
-
except (RuntimeError, ValueError):
|
|
736
|
-
raise InputAdmissionUnconfirmed("FIFO_INPUT_SCOPE_MISMATCH", "initial-settings") from None
|
|
737
|
-
if (event.source is not source or current_identity != expected
|
|
738
|
-
or current_route != route
|
|
739
|
-
or getattr(event, "_fifo_only", None) is not True
|
|
740
|
-
or getattr(event, "_stop_epoch", None) != stop_epoch):
|
|
741
|
-
raise InputAdmissionUnconfirmed("FIFO_INPUT_SCOPE_MISMATCH", "initial-settings")
|
|
742
|
-
if runner._route_stop_epoch(route) != stop_epoch:
|
|
743
|
-
raise InputAdmissionUnconfirmed("FIFO_STOP_EPOCH_CHANGED", "initial-settings")
|
|
744
|
-
|
|
745
|
-
check()
|
|
746
|
-
return check
|
|
747
|
-
|
|
748
|
-
def _project(self, row, input_id):
|
|
749
|
-
if row is None or row.get("request_id") != input_id:
|
|
750
|
-
return None
|
|
751
|
-
source = row.get("payload", {}).get("native_text_v1", {}).get("source", {})
|
|
752
|
-
if source.get("platform") != self.platform:
|
|
753
|
-
return None # 不把旧canonical会话冒认成本平台;迁移须先排空旧运行。
|
|
754
|
-
return {
|
|
755
|
-
"profile_home": self.profile_home,
|
|
756
|
-
"platform": self.platform,
|
|
757
|
-
"chat_id": source.get("chat_id"),
|
|
758
|
-
"conversation_id": row["target_session_id"],
|
|
759
|
-
"input_id": input_id,
|
|
760
|
-
"admission_id": row["admission_id"],
|
|
761
|
-
}
|
|
762
|
-
|
|
763
|
-
def authorize_initial_source(self, source):
|
|
764
|
-
if not self.validate_source(source):
|
|
765
|
-
return False
|
|
766
|
-
with self.owner_scope(self.authority()):
|
|
767
|
-
return (
|
|
768
|
-
self.adapter._is_sender_authorized(
|
|
769
|
-
source.user_id, source.chat_type, source.chat_id
|
|
770
|
-
)
|
|
771
|
-
is True
|
|
772
|
-
)
|
|
773
|
-
|
|
774
|
-
def current_initial_session(self, source):
|
|
775
|
-
if not self.validate_source(source):
|
|
776
|
-
raise RuntimeError("CROSS_PROFILE_ROUTE_UNSUPPORTED")
|
|
777
|
-
authority = self.authority()
|
|
778
|
-
with self.owner_scope(authority):
|
|
779
|
-
key = self.adapter._source_session_key(source)
|
|
780
|
-
native = self.adapter.gateway_runner.session_store.peek_session_id(key)
|
|
781
|
-
return authority.logical_owner(native) if native else None
|
|
782
|
-
|
|
783
|
-
async def ensure_initial_session(self, source, *, check=None):
|
|
784
|
-
from .canonical_control import NativeControlError
|
|
785
|
-
|
|
786
|
-
if asyncio.get_running_loop() is not self.adapter.owner_loop:
|
|
787
|
-
raise NativeControlError("INITIAL_SETTINGS_OWNER_LOOP_MISMATCH")
|
|
788
|
-
if self.authorize_initial_source(source) is not True:
|
|
789
|
-
raise NativeControlError("permission_denied")
|
|
790
|
-
authority = self.authority()
|
|
791
|
-
if check:
|
|
792
|
-
check()
|
|
793
|
-
with self.owner_scope(authority):
|
|
794
|
-
# SDK自己维护路由/保留行;磁盘预留离开loop,发布仍由原owner loop完成。
|
|
795
|
-
reservation = asyncio.create_task(
|
|
796
|
-
asyncio.to_thread(authority._reserve_route, source)
|
|
797
|
-
)
|
|
798
|
-
try:
|
|
799
|
-
native, route = await asyncio.shield(reservation)
|
|
800
|
-
except asyncio.CancelledError:
|
|
801
|
-
await asyncio.gather(reservation, return_exceptions=True)
|
|
802
|
-
raise
|
|
803
|
-
if check:
|
|
804
|
-
check()
|
|
805
|
-
if self.current_initial_session(source) != native:
|
|
806
|
-
raise NativeControlError("INITIAL_SETTINGS_SCOPE_CHANGED")
|
|
807
|
-
ref = authority._publish_route(source, native, route)
|
|
808
|
-
if ref.profile_id != self.profile_home or ref.session_id != native:
|
|
809
|
-
raise NativeControlError("INITIAL_SETTINGS_SCOPE_CHANGED")
|
|
810
|
-
return {"native_id": native, "route_key": route}
|
|
811
|
-
|
|
812
|
-
def lookup_input(self, *, chat_id, input_id):
|
|
813
|
-
authority = self.authority()
|
|
814
|
-
source = self.adapter.build_source(
|
|
815
|
-
chat_id, chat_type="dm", user_id="owner", message_id=input_id
|
|
816
|
-
)
|
|
817
|
-
if not self.validate_source(source):
|
|
818
|
-
raise RuntimeError("CROSS_PROFILE_ROUTE_UNSUPPORTED")
|
|
819
|
-
with self.owner_scope(authority):
|
|
820
|
-
key = self.adapter._source_session_key(source)
|
|
821
|
-
session_id = self.adapter.gateway_runner.session_store.peek_session_id(key)
|
|
822
|
-
if not session_id:
|
|
823
|
-
return None
|
|
824
|
-
matches = [
|
|
825
|
-
row
|
|
826
|
-
for row in self.list_admissions(
|
|
827
|
-
authority.db, session_id=session_id, pending_only=False
|
|
828
|
-
)
|
|
829
|
-
if row.get("request_id") == input_id
|
|
830
|
-
]
|
|
831
|
-
if len(matches) != 1:
|
|
832
|
-
return None
|
|
833
|
-
result = self._project(matches[0], input_id)
|
|
834
|
-
if result and result["chat_id"] != chat_id:
|
|
835
|
-
raise RuntimeError("RECEIPT_SCOPE_MISMATCH")
|
|
836
|
-
return result
|
|
837
|
-
|
|
838
|
-
def control_key(self, binding, prompt_id, generation, epoch, kind):
|
|
839
|
-
return (self.adapter.service_id, binding["conversation_id"], binding["admission_id"],
|
|
840
|
-
binding["input_id"], epoch, generation, prompt_id, kind)
|
|
841
|
-
|
|
842
|
-
def observe_control(self, binding, *, prompt_id, generation, epoch, kind):
|
|
843
|
-
# 不观察secret/sudo或未知请求;不注册回调、不替换resolver、不修改waiter。
|
|
844
|
-
if kind not in ("approval", "clarify") or binding["profile_home"] != self.profile_home:
|
|
845
|
-
raise PublicRuntimeUnavailable("CONTROL_OBSERVATION_SCOPE_INVALID")
|
|
846
|
-
from tools import approval as approvals
|
|
847
|
-
from tools import clarify_gateway as clarifies
|
|
848
|
-
|
|
849
|
-
key = self.control_key(binding, prompt_id, generation, epoch, kind)
|
|
850
|
-
authority = self.authority()
|
|
851
|
-
if authority.epoch != epoch:
|
|
852
|
-
return None
|
|
853
|
-
observed = self.observed_controls.get(key)
|
|
854
|
-
if observed is None:
|
|
855
|
-
live = authority.sessions.get(binding["conversation_id"])
|
|
856
|
-
if live is None:
|
|
857
|
-
return None
|
|
858
|
-
with live.event_stream.lock:
|
|
859
|
-
active = live.event_stream.execution
|
|
860
|
-
current = live.controls.pending.get(prompt_id)
|
|
861
|
-
if (not current or not isinstance(active, dict) or active.get("admission_id") != binding["admission_id"]
|
|
862
|
-
or active.get("authority_epoch") != epoch
|
|
863
|
-
or authority.executing.get(binding["conversation_id"]) != generation):
|
|
864
|
-
return None
|
|
865
|
-
route, prompt = current
|
|
866
|
-
if (prompt.get("kind") != kind or prompt.get("execution_generation") != generation
|
|
867
|
-
or prompt_id in live.controls.remote_responders or (kind == "approval" and not isinstance(route, str))):
|
|
868
|
-
return None
|
|
869
|
-
lock = approvals._lock if kind == "approval" else clarifies._lock
|
|
870
|
-
with lock:
|
|
871
|
-
if kind == "approval":
|
|
872
|
-
entries = [entry for entry in approvals._gateway_queues.get(route, [])
|
|
873
|
-
if entry.data.get("request_id") == prompt_id]
|
|
874
|
-
if len(entries) != 1:
|
|
875
|
-
return None
|
|
876
|
-
entry = entries[0]
|
|
877
|
-
else:
|
|
878
|
-
entry = clarifies._entries.get(prompt_id)
|
|
879
|
-
if entry is None or entry is not route or entry.clarify_id != prompt_id:
|
|
880
|
-
return None
|
|
881
|
-
observed = (authority, entry, tuple(prompt["choices"]))
|
|
882
|
-
self.observed_controls[key] = observed
|
|
883
|
-
if observed[0] is not authority:
|
|
884
|
-
return None
|
|
885
|
-
_, entry, choices = observed
|
|
886
|
-
lock = approvals._lock if kind == "approval" else clarifies._lock
|
|
887
|
-
with lock:
|
|
888
|
-
if not entry.event.is_set():
|
|
889
|
-
return {"status": "pending"}
|
|
890
|
-
if kind == "approval":
|
|
891
|
-
answer = entry.result
|
|
892
|
-
if answer in choices:
|
|
893
|
-
return {"status": "resolved", "winner": answer}
|
|
894
|
-
if entry.expired:
|
|
895
|
-
return {"status": "expired"}
|
|
896
|
-
if entry.cancelled:
|
|
897
|
-
return {"status": "cancelled"}
|
|
898
|
-
else:
|
|
899
|
-
answer = entry.response
|
|
900
|
-
if answer == clarifies.CANCELLED:
|
|
901
|
-
return {"status": "cancelled"}
|
|
902
|
-
if isinstance(answer, str):
|
|
903
|
-
return {"status": "resolved", "winner": "" if answer == clarifies.SKIPPED else answer}
|
|
904
|
-
return {"status": "resolved", "resolution_unknown": True}
|
|
905
|
-
|
|
906
|
-
def forget_control(self, binding, *, prompt_id, generation, epoch, kind):
|
|
907
|
-
self.observed_controls.pop(self.control_key(binding, prompt_id, generation, epoch, kind), None)
|
|
908
|
-
|
|
909
|
-
def close_observations(self):
|
|
910
|
-
self.observed_controls.clear()
|