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