@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
package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/runtime.js
DELETED
|
@@ -1,400 +0,0 @@
|
|
|
1
|
-
import crypto from "node:crypto";
|
|
2
|
-
import { canonicalPayload, isCanonicalPayload } from "../contract/types.js";
|
|
3
|
-
import { assertHistorySnapshotV1 } from "../contract/history.js";
|
|
4
|
-
import { ChannelError } from "../contract/types.js";
|
|
5
|
-
import { readJsonBody } from "./body.js";
|
|
6
|
-
// 每个后端上下文独立创建协议处理器,所有宿主能力显式注入。
|
|
7
|
-
export function createRuntimeTransport(deps) {
|
|
8
|
-
const logger = deps.logger ?? { info() { }, warn() { } };
|
|
9
|
-
const serialize = (request, event) => {
|
|
10
|
-
if (deps.serialize)
|
|
11
|
-
return deps.serialize(request, event);
|
|
12
|
-
if (request.headers["x-fridaynext-event-format"] !== "canonical-v1" || isCanonicalPayload(event.payload))
|
|
13
|
-
return event;
|
|
14
|
-
const phase = { "run.accepted": "accepted", "run.queued": "queued", "run.started": "running", "run.recovered": "running", "run.reconciling": "reconciling", "run.completed": "completed", "run.failed": "failed", "run.cancelled": "cancelled" }[event.eventType];
|
|
15
|
-
return { ...event, payload: canonicalPayload(phase ? [{ kind: "run", phase }] : []) };
|
|
16
|
-
};
|
|
17
|
-
const serializeRun = (request, run) => deps.serializeRun?.(request, run) ?? run;
|
|
18
|
-
const serializeDeviceRequest = (request, value) => deps.serializeDeviceRequest?.(request, value) ?? value;
|
|
19
|
-
function json(res, status, body) {
|
|
20
|
-
res.statusCode = status;
|
|
21
|
-
res.setHeader("Content-Type", "application/json");
|
|
22
|
-
res.end(JSON.stringify(body));
|
|
23
|
-
return true;
|
|
24
|
-
}
|
|
25
|
-
function authenticate(req, res) {
|
|
26
|
-
if (deps.authenticate(req))
|
|
27
|
-
return true;
|
|
28
|
-
json(res, 401, { error: "Unauthorized: bearer token mismatch" });
|
|
29
|
-
return false;
|
|
30
|
-
}
|
|
31
|
-
function integerQuery(url, name, fallback) {
|
|
32
|
-
const value = Number.parseInt(url.searchParams.get(name) ?? "", 10);
|
|
33
|
-
return Number.isFinite(value) ? Math.max(0, value) : fallback;
|
|
34
|
-
}
|
|
35
|
-
function writeRuntimeEvent(res, event, flushed) {
|
|
36
|
-
return res.write(`id: ${event.eventId}\nevent: runtime\ndata: ${JSON.stringify(event)}\n\n`, flushed);
|
|
37
|
-
}
|
|
38
|
-
function writeRuntimeLiveEvent(res, event, flushed) {
|
|
39
|
-
return res.write(`event: ${event.type}\ndata: ${JSON.stringify(event.data)}\n\n`, flushed);
|
|
40
|
-
}
|
|
41
|
-
async function handleRuntimeV3Events(req, res) {
|
|
42
|
-
if (req.method !== "GET")
|
|
43
|
-
return json(res, 405, { error: "Method Not Allowed" });
|
|
44
|
-
if (!authenticate(req, res))
|
|
45
|
-
return true;
|
|
46
|
-
const url = new URL(req.url ?? "/", "http://localhost");
|
|
47
|
-
const deviceId = (url.searchParams.get("deviceId") ?? "").trim().toUpperCase();
|
|
48
|
-
if (!deviceId)
|
|
49
|
-
return json(res, 400, { error: "Missing required query parameter: deviceId" });
|
|
50
|
-
const headerId = Number.parseInt(String(req.headers["last-event-id"] ?? ""), 10);
|
|
51
|
-
const afterEventId = Number.isFinite(headerId)
|
|
52
|
-
? Math.max(0, headerId)
|
|
53
|
-
: integerQuery(url, "lastEventId", 0);
|
|
54
|
-
const store = deps.store();
|
|
55
|
-
res.statusCode = 200;
|
|
56
|
-
res.setHeader("Content-Type", "text/event-stream; charset=utf-8");
|
|
57
|
-
res.setHeader("Cache-Control", "no-cache, no-store, must-revalidate");
|
|
58
|
-
res.setHeader("Connection", "keep-alive");
|
|
59
|
-
res.setHeader("X-Accel-Buffering", "no");
|
|
60
|
-
res.flushHeaders();
|
|
61
|
-
logger.info(`connect device=${deviceId} afterEventId=${afterEventId} head=${store.eventHead(deviceId)} floor=${store.eventFloor(deviceId)}`);
|
|
62
|
-
let lastSent = afterEventId;
|
|
63
|
-
let waitingDrain = false;
|
|
64
|
-
let drainStuckSince = null;
|
|
65
|
-
let replaying = true;
|
|
66
|
-
let closed = false;
|
|
67
|
-
let replayedCount = 0;
|
|
68
|
-
let replayLogged = false;
|
|
69
|
-
const replayBatchLimit = 256;
|
|
70
|
-
const liveQueueLimit = 512;
|
|
71
|
-
const pendingLive = [];
|
|
72
|
-
// 背压此前完全静默:慢连接会让事件直发与 keepalive 一起停摆,App 侧 60s 无字节就判
|
|
73
|
-
// 半死重连,而从网关日志看不出任何痕迹。这里至少把进入背压的时刻钉进日志。
|
|
74
|
-
function markBackpressure() {
|
|
75
|
-
if (waitingDrain)
|
|
76
|
-
return;
|
|
77
|
-
waitingDrain = true;
|
|
78
|
-
drainStuckSince = Date.now();
|
|
79
|
-
logger.warn(`backpressure device=${deviceId} lastSent=${lastSent} pendingLive=${pendingLive.length}`);
|
|
80
|
-
}
|
|
81
|
-
function writeCompleted(error) {
|
|
82
|
-
if (closed || res.destroyed || res.writableEnded)
|
|
83
|
-
return;
|
|
84
|
-
if (error) {
|
|
85
|
-
closed = true;
|
|
86
|
-
logger.warn(`write-failed device=${deviceId} lastSent=${lastSent}`);
|
|
87
|
-
res.destroy();
|
|
88
|
-
return;
|
|
89
|
-
}
|
|
90
|
-
// 目标HTTPS实测有write=false、缓冲已空却不发drain的组合。写回调只在实际刷出后
|
|
91
|
-
// 到来;仅当整个响应缓冲为0时补一次恢复,真正慢连接仍等待,不轮询或扩大内存队列。
|
|
92
|
-
if (waitingDrain && res.writableLength === 0)
|
|
93
|
-
handleDrain();
|
|
94
|
-
}
|
|
95
|
-
function logReplayDone() {
|
|
96
|
-
if (replayLogged)
|
|
97
|
-
return;
|
|
98
|
-
replayLogged = true;
|
|
99
|
-
logger.info(`replay device=${deviceId} afterEventId=${afterEventId} count=${replayedCount} head=${store.eventHead(deviceId)}`);
|
|
100
|
-
}
|
|
101
|
-
function enqueueLive(event) {
|
|
102
|
-
if (pendingLive.length >= liveQueueLimit) {
|
|
103
|
-
const droppable = pendingLive.findIndex((candidate) => candidate.data.type === "audio" || candidate.data.type === "inputAudio");
|
|
104
|
-
const [dropped] = pendingLive.splice(droppable >= 0 ? droppable : 0, 1);
|
|
105
|
-
logger.warn(`drop-live device=${deviceId} event=${dropped?.type ?? "unknown"} pendingLive=${pendingLive.length}`);
|
|
106
|
-
}
|
|
107
|
-
pendingLive.push(event);
|
|
108
|
-
}
|
|
109
|
-
function pumpLive() {
|
|
110
|
-
if (closed || replaying || waitingDrain)
|
|
111
|
-
return;
|
|
112
|
-
while (pendingLive.length > 0 && !waitingDrain) {
|
|
113
|
-
const event = pendingLive.shift();
|
|
114
|
-
if (event && !writeRuntimeLiveEvent(res, event, writeCompleted))
|
|
115
|
-
markBackpressure();
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
function pumpReplay() {
|
|
119
|
-
if (closed || waitingDrain)
|
|
120
|
-
return;
|
|
121
|
-
replaying = true;
|
|
122
|
-
while (!waitingDrain) {
|
|
123
|
-
const events = store.eventsAfter(deviceId, lastSent, replayBatchLimit);
|
|
124
|
-
if (events.length === 0) {
|
|
125
|
-
replaying = false;
|
|
126
|
-
logReplayDone();
|
|
127
|
-
pumpLive();
|
|
128
|
-
return;
|
|
129
|
-
}
|
|
130
|
-
for (const event of events) {
|
|
131
|
-
if (event.eventId <= lastSent)
|
|
132
|
-
continue;
|
|
133
|
-
lastSent = event.eventId;
|
|
134
|
-
replayedCount += 1;
|
|
135
|
-
if (!writeRuntimeEvent(res, serialize(req, event), writeCompleted)) {
|
|
136
|
-
markBackpressure();
|
|
137
|
-
return;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
const unsubscribe = store.subscribe(deviceId, (event) => {
|
|
143
|
-
if (closed || res.destroyed || res.writableEnded)
|
|
144
|
-
return;
|
|
145
|
-
if (event.eventId <= lastSent)
|
|
146
|
-
return;
|
|
147
|
-
// 回放或背压期间事件已在持久化日志中,只保留游标,避免慢连接堆出无界内存队列。
|
|
148
|
-
if (replaying || waitingDrain)
|
|
149
|
-
return;
|
|
150
|
-
lastSent = event.eventId;
|
|
151
|
-
if (!writeRuntimeEvent(res, serialize(req, event), writeCompleted)) {
|
|
152
|
-
markBackpressure();
|
|
153
|
-
replaying = true;
|
|
154
|
-
}
|
|
155
|
-
});
|
|
156
|
-
const unsubscribeLive = (deps.subscribeLive ?? (() => () => { }))(deviceId, (event) => {
|
|
157
|
-
if (closed)
|
|
158
|
-
return;
|
|
159
|
-
if (replaying || waitingDrain) {
|
|
160
|
-
enqueueLive(event);
|
|
161
|
-
return;
|
|
162
|
-
}
|
|
163
|
-
if (!writeRuntimeLiveEvent(res, event, writeCompleted))
|
|
164
|
-
markBackpressure();
|
|
165
|
-
});
|
|
166
|
-
function handleDrain() {
|
|
167
|
-
if (closed || res.destroyed || res.writableEnded)
|
|
168
|
-
return;
|
|
169
|
-
waitingDrain = false;
|
|
170
|
-
drainStuckSince = null;
|
|
171
|
-
// 背压由实时旁路触发时也可能错过持久事件通知;一律先按原游标补齐,再送旁路。
|
|
172
|
-
pumpReplay();
|
|
173
|
-
}
|
|
174
|
-
res.on("drain", handleDrain);
|
|
175
|
-
const head = store.eventHead(deviceId);
|
|
176
|
-
const floor = store.eventFloor(deviceId);
|
|
177
|
-
if (!res.write(`event: hello\ndata: ${JSON.stringify({
|
|
178
|
-
protocolVersion: 3,
|
|
179
|
-
pluginVersion: deps.adapterVersion,
|
|
180
|
-
...(deps.descriptor ? { backend: deps.descriptor } : {}),
|
|
181
|
-
serverInstanceId: store.serverInstanceId,
|
|
182
|
-
deviceId,
|
|
183
|
-
floorEventId: floor,
|
|
184
|
-
headEventId: head,
|
|
185
|
-
acknowledgedEventId: store.acknowledgedEventId(deviceId),
|
|
186
|
-
unfinishedRuns: store.unfinishedRuns(deviceId).map(run => serializeRun(req, run)),
|
|
187
|
-
pendingDeviceRequests: store.pendingDeviceRequests(deviceId).map(value => serializeDeviceRequest(req, value)),
|
|
188
|
-
})}\n\n`, writeCompleted)) {
|
|
189
|
-
markBackpressure();
|
|
190
|
-
}
|
|
191
|
-
lastSent = floor > 0 && afterEventId < floor - 1 ? floor - 1 : afterEventId;
|
|
192
|
-
pumpReplay();
|
|
193
|
-
const keepalive = setInterval(() => {
|
|
194
|
-
if (closed)
|
|
195
|
-
return;
|
|
196
|
-
if (waitingDrain) {
|
|
197
|
-
// 客户端 TCP 长时间不读(后台挂起/弱网)时,连接既送不出事件也发不了 keepalive。
|
|
198
|
-
// 与其挂着僵尸连接等 App 的 60s 无字节看门狗,不如服务端先断:客户端立即带
|
|
199
|
-
// Last-Event-ID 重连,回放窗口有界,重连风暴更短。
|
|
200
|
-
if (drainStuckSince !== null && Date.now() - drainStuckSince >= 45_000) {
|
|
201
|
-
logger.warn(`drain-timeout device=${deviceId} lastSent=${lastSent} pendingLive=${pendingLive.length}`);
|
|
202
|
-
closed = true;
|
|
203
|
-
clearInterval(keepalive);
|
|
204
|
-
try {
|
|
205
|
-
res.end();
|
|
206
|
-
}
|
|
207
|
-
catch {
|
|
208
|
-
// Socket may already be destroyed; req close handles cleanup.
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
return;
|
|
212
|
-
}
|
|
213
|
-
if (!res.write(": keepalive\n\n", writeCompleted)) {
|
|
214
|
-
markBackpressure();
|
|
215
|
-
replaying = true;
|
|
216
|
-
}
|
|
217
|
-
}, deps.keepaliveMs ?? 15_000);
|
|
218
|
-
keepalive.unref();
|
|
219
|
-
req.on("close", () => {
|
|
220
|
-
closed = true;
|
|
221
|
-
clearInterval(keepalive);
|
|
222
|
-
res.off("drain", handleDrain);
|
|
223
|
-
unsubscribe();
|
|
224
|
-
unsubscribeLive();
|
|
225
|
-
logger.info(`disconnect device=${deviceId} lastSent=${lastSent} replayed=${replayedCount} pendingLive=${pendingLive.length}`);
|
|
226
|
-
});
|
|
227
|
-
return true;
|
|
228
|
-
}
|
|
229
|
-
async function handleRuntimeV3Acknowledge(req, res) {
|
|
230
|
-
if (req.method !== "POST")
|
|
231
|
-
return json(res, 405, { error: "Method Not Allowed" });
|
|
232
|
-
if (!authenticate(req, res))
|
|
233
|
-
return true;
|
|
234
|
-
const body = await readJsonBody(req);
|
|
235
|
-
const deviceId = typeof body?.deviceId === "string" ? body.deviceId.trim().toUpperCase() : "";
|
|
236
|
-
const throughEventId = typeof body?.throughEventId === "number" ? body.throughEventId : NaN;
|
|
237
|
-
if (!deviceId || !Number.isFinite(throughEventId)) {
|
|
238
|
-
return json(res, 400, { error: "Missing deviceId or throughEventId" });
|
|
239
|
-
}
|
|
240
|
-
const store = deps.store();
|
|
241
|
-
const requestedInstance = typeof body?.serverInstanceId === "string" ? body.serverInstanceId.trim() : "";
|
|
242
|
-
if (requestedInstance && requestedInstance !== store.serverInstanceId) {
|
|
243
|
-
return json(res, 409, {
|
|
244
|
-
error: "serverInstanceId mismatch",
|
|
245
|
-
serverInstanceId: store.serverInstanceId,
|
|
246
|
-
});
|
|
247
|
-
}
|
|
248
|
-
return json(res, 200, {
|
|
249
|
-
ok: true,
|
|
250
|
-
protocolVersion: 3,
|
|
251
|
-
serverInstanceId: store.serverInstanceId,
|
|
252
|
-
acknowledgedEventId: store.acknowledge(deviceId, throughEventId),
|
|
253
|
-
});
|
|
254
|
-
}
|
|
255
|
-
async function handleRuntimeV3Sync(req, res) {
|
|
256
|
-
if (req.method !== "GET")
|
|
257
|
-
return json(res, 405, { error: "Method Not Allowed" });
|
|
258
|
-
if (!authenticate(req, res))
|
|
259
|
-
return true;
|
|
260
|
-
const url = new URL(req.url ?? "/", "http://localhost");
|
|
261
|
-
const deviceId = (url.searchParams.get("deviceId") ?? "").trim().toUpperCase();
|
|
262
|
-
if (!deviceId)
|
|
263
|
-
return json(res, 400, { error: "Missing required query parameter: deviceId" });
|
|
264
|
-
const afterEventId = integerQuery(url, "afterEventId", 0);
|
|
265
|
-
const limit = Math.min(5_000, Math.max(1, integerQuery(url, "limit", 1_000)));
|
|
266
|
-
const store = deps.store();
|
|
267
|
-
const headEventId = store.eventHead(deviceId);
|
|
268
|
-
const floorEventId = store.eventFloor(deviceId);
|
|
269
|
-
const gapDetected = floorEventId > 0 && afterEventId < floorEventId - 1;
|
|
270
|
-
const effectiveAfterEventId = gapDetected ? floorEventId - 1 : afterEventId;
|
|
271
|
-
const events = store.eventsAfter(deviceId, effectiveAfterEventId, limit);
|
|
272
|
-
return json(res, 200, {
|
|
273
|
-
ok: true,
|
|
274
|
-
protocolVersion: 3,
|
|
275
|
-
serverInstanceId: store.serverInstanceId,
|
|
276
|
-
floorEventId,
|
|
277
|
-
headEventId,
|
|
278
|
-
acknowledgedEventId: store.acknowledgedEventId(deviceId),
|
|
279
|
-
gapDetected,
|
|
280
|
-
hasMore: (events.at(-1)?.eventId ?? effectiveAfterEventId) < headEventId,
|
|
281
|
-
events: events.map((event) => serialize(req, event)),
|
|
282
|
-
runs: store.runs(deviceId).map(run => serializeRun(req, run)),
|
|
283
|
-
pendingDeviceRequests: store.pendingDeviceRequests(deviceId).map(value => serializeDeviceRequest(req, value)),
|
|
284
|
-
});
|
|
285
|
-
}
|
|
286
|
-
async function handleRuntimeV3SessionSnapshot(req, res, sessionKey, identityAttempt = 0) {
|
|
287
|
-
if (req.method !== "GET")
|
|
288
|
-
return json(res, 405, { error: "Method Not Allowed" });
|
|
289
|
-
if (!authenticate(req, res))
|
|
290
|
-
return true;
|
|
291
|
-
const key = deps.resolveSessionKey?.(sessionKey.trim()) ?? sessionKey.trim();
|
|
292
|
-
if (!key)
|
|
293
|
-
return json(res, 400, { error: "Missing session key" });
|
|
294
|
-
const nativeSnapshot = await deps.snapshot(key, integerQuery(new URL(req.url ?? "/", "http://localhost"), "transcriptLimit", 110), req);
|
|
295
|
-
if (nativeSnapshot?.unavailable)
|
|
296
|
-
return json(res, 503, { ok: false, code: "UNAVAILABLE", error: "Session changed while reading snapshot" });
|
|
297
|
-
try {
|
|
298
|
-
assertHistorySnapshotV1(nativeSnapshot, key);
|
|
299
|
-
}
|
|
300
|
-
catch (error) {
|
|
301
|
-
if (error instanceof ChannelError && error.code === "HISTORY_CONTRACT_INVALID")
|
|
302
|
-
return json(res, error.status, { ok: false, code: error.code, error: error.message });
|
|
303
|
-
throw error;
|
|
304
|
-
}
|
|
305
|
-
const sessionId = nativeSnapshot.sessionId;
|
|
306
|
-
const store = deps.store();
|
|
307
|
-
const runs = store.runs().filter((run) => run.sessionKey === key);
|
|
308
|
-
const url = new URL(req.url ?? "/", "http://localhost");
|
|
309
|
-
const requestedRunIds = new Set(url.searchParams
|
|
310
|
-
.getAll("runId")
|
|
311
|
-
.map((runId) => runId.trim())
|
|
312
|
-
.filter(Boolean));
|
|
313
|
-
const segmentScope = url.searchParams.get("segments");
|
|
314
|
-
const latestRunId = runs.at(-1)?.runId;
|
|
315
|
-
const selectedRunIds = segmentScope === "none"
|
|
316
|
-
? new Set()
|
|
317
|
-
: requestedRunIds.size > 0
|
|
318
|
-
? requestedRunIds
|
|
319
|
-
: new Set([
|
|
320
|
-
...runs
|
|
321
|
-
.filter((run) => run.phase !== "completed" && run.phase !== "failed" && run.phase !== "cancelled")
|
|
322
|
-
.map((run) => run.runId),
|
|
323
|
-
...(latestRunId ? [latestRunId] : []),
|
|
324
|
-
]);
|
|
325
|
-
const dedupedEvents = runs
|
|
326
|
-
.filter((run) => selectedRunIds.has(run.runId))
|
|
327
|
-
.flatMap((run) => store.eventsForRun(run.runId))
|
|
328
|
-
.sort((a, b) => a.occurredAt - b.occurredAt || a.runSeq - b.runSeq);
|
|
329
|
-
const transcriptLimit = Math.min(500, Math.max(1, integerQuery(url, "transcriptLimit", 110)));
|
|
330
|
-
const transcript = nativeSnapshot.transcript;
|
|
331
|
-
const sessionUsage = nativeSnapshot.sessionUsage;
|
|
332
|
-
const revision = crypto
|
|
333
|
-
.createHash("sha256")
|
|
334
|
-
.update(JSON.stringify({
|
|
335
|
-
transcript: transcript.map((message) => [message.id, message.seq, message.ts]),
|
|
336
|
-
sessionId,
|
|
337
|
-
runs: runs.map((run) => [run.runId, run.phase, run.lastRunSeq, run.updatedAt]),
|
|
338
|
-
segmentHead: dedupedEvents.map((event) => [event.runId, event.runSeq, event.eventType]),
|
|
339
|
-
}))
|
|
340
|
-
.digest("hex");
|
|
341
|
-
return json(res, 200, {
|
|
342
|
-
ok: true,
|
|
343
|
-
protocolVersion: 3,
|
|
344
|
-
serverInstanceId: store.serverInstanceId,
|
|
345
|
-
sessionKey: nativeSnapshot.session?.sessionKey ?? key,
|
|
346
|
-
...(sessionId ? { sessionId } : {}),
|
|
347
|
-
revision,
|
|
348
|
-
runs: runs.map(run => serializeRun(req, run)),
|
|
349
|
-
transcript,
|
|
350
|
-
segments: dedupedEvents.map((event) => serialize(req, event)),
|
|
351
|
-
...(nativeSnapshot.session ? { session: nativeSnapshot.session } : {}),
|
|
352
|
-
...(nativeSnapshot.controls ? { controls: nativeSnapshot.controls } : {}),
|
|
353
|
-
pendingDeviceRequests: store
|
|
354
|
-
.pendingDeviceRequests()
|
|
355
|
-
.filter((request) => request.sessionKey === key)
|
|
356
|
-
.map(value => serializeDeviceRequest(req, value)),
|
|
357
|
-
...(sessionUsage ? { sessionUsage } : {}),
|
|
358
|
-
});
|
|
359
|
-
}
|
|
360
|
-
async function handleRuntimeV3Cancel(req, res, runId) {
|
|
361
|
-
if (req.method !== "DELETE")
|
|
362
|
-
return json(res, 405, { error: "Method Not Allowed" });
|
|
363
|
-
if (!authenticate(req, res))
|
|
364
|
-
return true;
|
|
365
|
-
const store = deps.store();
|
|
366
|
-
const expected = req.headers["x-fridaynext-server-instance-id"];
|
|
367
|
-
if (typeof expected === "string" && expected !== store.serverInstanceId)
|
|
368
|
-
return json(res, 409, { code: "SERVICE_IDENTITY_CHANGED", serverInstanceId: store.serverInstanceId });
|
|
369
|
-
const run = store.run(runId);
|
|
370
|
-
if (!run)
|
|
371
|
-
return json(res, 404, { error: "Unknown runId" });
|
|
372
|
-
if (run.phase === "completed" || run.phase === "failed" || run.phase === "cancelled") {
|
|
373
|
-
return json(res, 200, { ok: true, runId, phase: run.phase, replayed: true });
|
|
374
|
-
}
|
|
375
|
-
if (run.phase === "queued") {
|
|
376
|
-
deps.flush?.(runId);
|
|
377
|
-
const event = store.appendRunEvent(runId, "run.cancelled", canonicalPayload([{ kind: "run", phase: "cancelled", data: { reason: "cancelled before dispatch" } }]));
|
|
378
|
-
return json(res, 200, { ok: true, runId, phase: "cancelled", eventId: event.eventId });
|
|
379
|
-
}
|
|
380
|
-
deps.cancelPush?.(runId);
|
|
381
|
-
store.transition(runId, "cancelPending");
|
|
382
|
-
const result = await deps.cancel(run);
|
|
383
|
-
deps.flush?.(runId);
|
|
384
|
-
const settled = store.run(runId);
|
|
385
|
-
if (settled && ["completed", "failed", "cancelled"].includes(settled.phase)) {
|
|
386
|
-
return json(res, 200, { ok: true, runId, ...result, phase: settled.phase });
|
|
387
|
-
}
|
|
388
|
-
if (result.drained === false)
|
|
389
|
-
return json(res, 202, { ok: true, runId, phase: "cancelPending", ...result });
|
|
390
|
-
const event = store.appendRunEvent(runId, "run.cancelled", canonicalPayload([{ kind: "run", phase: "cancelled", data: { reason: "user", aborted: result.aborted } }]));
|
|
391
|
-
return json(res, 200, {
|
|
392
|
-
ok: true,
|
|
393
|
-
runId,
|
|
394
|
-
phase: "cancelled",
|
|
395
|
-
eventId: event.eventId,
|
|
396
|
-
...result,
|
|
397
|
-
});
|
|
398
|
-
}
|
|
399
|
-
return { handleRuntimeV3Events, handleRuntimeV3Acknowledge, handleRuntimeV3Sync, handleRuntimeV3SessionSnapshot, handleRuntimeV3Cancel };
|
|
400
|
-
}
|
package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/server-name.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { IncomingMessage, ServerResponse } from "node:http";
|
|
2
|
-
import type { createServerNameStore } from "../server-name/server-name-store.js";
|
|
3
|
-
export declare function createServerNameHandler(deps: {
|
|
4
|
-
authenticate(req: IncomingMessage): boolean;
|
|
5
|
-
store: Pick<ReturnType<typeof createServerNameStore>, "readServerName" | "validateServerName" | "writeServerName">;
|
|
6
|
-
}): {
|
|
7
|
-
handleServerName: (req: IncomingMessage, res: ServerResponse) => Promise<boolean>;
|
|
8
|
-
};
|
package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/server-name.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { readJsonBody } from "./body.js";
|
|
2
|
-
export function createServerNameHandler(deps) {
|
|
3
|
-
const { readServerName, validateServerName, writeServerName } = deps.store;
|
|
4
|
-
function json(res, status, body) {
|
|
5
|
-
res.statusCode = status;
|
|
6
|
-
res.setHeader("Content-Type", "application/json");
|
|
7
|
-
res.end(JSON.stringify(body));
|
|
8
|
-
return true;
|
|
9
|
-
}
|
|
10
|
-
function statePayload(state) {
|
|
11
|
-
return { name: state.name, updatedAt: state.updatedAt };
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* `GET/PUT /friday-next/server-name` — this gateway's user-facing display name,
|
|
15
|
-
* stored gateway-side so every paired device sees the same name and a
|
|
16
|
-
* delete+reinstall restores it. PUT with an empty string clears the name.
|
|
17
|
-
*/
|
|
18
|
-
async function handleServerName(req, res) {
|
|
19
|
-
if (req.method !== "GET" && req.method !== "PUT") {
|
|
20
|
-
return json(res, 405, { error: "Method Not Allowed" });
|
|
21
|
-
}
|
|
22
|
-
if (!deps.authenticate(req)) {
|
|
23
|
-
return json(res, 401, { error: "Unauthorized: bearer token mismatch" });
|
|
24
|
-
}
|
|
25
|
-
if (req.method === "GET") {
|
|
26
|
-
return json(res, 200, { ok: true, ...statePayload(readServerName()) });
|
|
27
|
-
}
|
|
28
|
-
// PUT
|
|
29
|
-
const body = await readJsonBody(req);
|
|
30
|
-
if (!body || !("name" in body)) {
|
|
31
|
-
return json(res, 400, { error: "Missing required field: name" });
|
|
32
|
-
}
|
|
33
|
-
const validated = validateServerName(body.name);
|
|
34
|
-
if (!validated.ok) {
|
|
35
|
-
return json(res, 400, { error: validated.error });
|
|
36
|
-
}
|
|
37
|
-
return json(res, 200, {
|
|
38
|
-
ok: true,
|
|
39
|
-
...statePayload(writeServerName(validated.name)),
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
return { handleServerName };
|
|
43
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { IncomingMessage, ServerResponse } from "node:http";
|
|
2
|
-
import { type BackendAdapter } from "../contract/types.js";
|
|
3
|
-
import type { DurableRunStore } from "../runtime/durable-run-store.js";
|
|
4
|
-
export declare function createVersionedSessionSettingsHandler(store: DurableRunStore, adapter: BackendAdapter): (req: IncomingMessage, res: ServerResponse, identity: string, lookupId?: string) => Promise<boolean>;
|
|
5
|
-
export declare function createVersionedAgentDefaultsHandler(store: DurableRunStore, adapter: BackendAdapter): (req: IncomingMessage, res: ServerResponse, identity: string, lookupId?: string) => Promise<boolean>;
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import { VERSIONED_SESSION_SETTINGS, VERSIONED_AGENT_DEFAULTS } from "../contract/types.js";
|
|
2
|
-
import { readJsonBody } from "./body.js";
|
|
3
|
-
const object = (value) => !!value && typeof value === "object" && !Array.isArray(value);
|
|
4
|
-
function validSnapshot(value, identity, scopeKey) {
|
|
5
|
-
return object(value) && value[scopeKey] === identity && typeof value.version === "string" && !!value.version.trim() && object(value.values);
|
|
6
|
-
}
|
|
7
|
-
function validMutation(value, scopeKey) {
|
|
8
|
-
const fields = new Set(scopeKey === "agentId" ? ["modelRef", "thinkingLevel"] : ["modelRef", "thinkingLevel", "permissionMode", "cwd"]);
|
|
9
|
-
return object(value) && ["commandId", "expectedVersion", "expectedServerInstanceId"].every(k => typeof value[k] === "string" && !!value[k].trim())
|
|
10
|
-
&& Object.keys(value).every(k => ["commandId", "expectedVersion", "expectedServerInstanceId", "values", ...(scopeKey === "sessionKey" ? ["sessionKey"] : [])].includes(k))
|
|
11
|
-
&& object(value.values) && Object.keys(value.values).length > 0
|
|
12
|
-
&& (scopeKey !== "agentId" || typeof value.values.modelRef === "string" && !!value.values.modelRef.trim()
|
|
13
|
-
&& (!Object.hasOwn(value.values, "thinkingLevel") || typeof value.values.thinkingLevel === "string" && !!value.values.thinkingLevel.trim()))
|
|
14
|
-
&& Object.entries(value.values).every(([key, v]) => fields.has(key) && (v === null || typeof v === "string"));
|
|
15
|
-
}
|
|
16
|
-
// 两种作用域共用原命令账本、并发串行化和未知结果对账。
|
|
17
|
-
function createVersionedSettingsHandler(store, adapter, defaults) {
|
|
18
|
-
const KIND = defaults ? "agent-defaults" : "session-settings";
|
|
19
|
-
const scopeKey = defaults ? "agentId" : "sessionKey";
|
|
20
|
-
const capability = defaults ? VERSIONED_AGENT_DEFAULTS : VERSIONED_SESSION_SETTINGS;
|
|
21
|
-
const read = defaults ? adapter.readAgentDefaults?.bind(adapter) : adapter.readSessionSettings?.bind(adapter);
|
|
22
|
-
const mutate = defaults ? adapter.mutateAgentDefaults?.bind(adapter) : adapter.mutateSessionSettings?.bind(adapter);
|
|
23
|
-
const inspect = defaults ? adapter.inspectAgentDefaultsMutation?.bind(adapter) : adapter.inspectSessionSettingsMutation?.bind(adapter);
|
|
24
|
-
const submissions = new Map();
|
|
25
|
-
async function handle(req, res, identity, lookupId) {
|
|
26
|
-
let activeCommandId = lookupId;
|
|
27
|
-
const reply = (status, body) => {
|
|
28
|
-
res.statusCode = status;
|
|
29
|
-
res.setHeader("content-type", "application/json");
|
|
30
|
-
res.end(JSON.stringify(body));
|
|
31
|
-
return true;
|
|
32
|
-
};
|
|
33
|
-
if (!adapter.descriptor.capabilities.includes(capability) || !read || !mutate)
|
|
34
|
-
return reply(404, { code: "UNSUPPORTED_CAPABILITY" });
|
|
35
|
-
const envelope = (commandId, result) => ({ ...result, commandId, [scopeKey]: identity, serverInstanceId: store.serverInstanceId });
|
|
36
|
-
const sendResult = (response) => reply(response.status === "applied" ? 200 : response.status === "conflict" ? 409 : 503, response);
|
|
37
|
-
const checked = (result) => {
|
|
38
|
-
if (!["applied", "conflict", "unknown"].includes(result?.status)
|
|
39
|
-
|| (result.status === "applied" && !validSnapshot(result.snapshot, identity, scopeKey))
|
|
40
|
-
|| (result.snapshot !== undefined && !validSnapshot(result.snapshot, identity, scopeKey)))
|
|
41
|
-
throw new Error("invalid_settings_result");
|
|
42
|
-
return result;
|
|
43
|
-
};
|
|
44
|
-
const reconcile = async (commandId, payload) => {
|
|
45
|
-
const result = checked(await inspect?.(identity, commandId) ?? { status: "unknown" });
|
|
46
|
-
const response = envelope(commandId, result);
|
|
47
|
-
if (result.status !== "unknown")
|
|
48
|
-
store.completeCommandReceipt(KIND, commandId, payload, response);
|
|
49
|
-
return sendResult(response);
|
|
50
|
-
};
|
|
51
|
-
try {
|
|
52
|
-
if (lookupId) {
|
|
53
|
-
if (req.method !== "GET")
|
|
54
|
-
return reply(405, { code: "METHOD_NOT_ALLOWED" });
|
|
55
|
-
const existing = store.commandReceipt(KIND, lookupId);
|
|
56
|
-
if (!existing || existing.context?.[scopeKey] !== identity)
|
|
57
|
-
return reply(404, { code: "SETTINGS_COMMAND_NOT_FOUND" });
|
|
58
|
-
if (existing.state === "succeeded")
|
|
59
|
-
return sendResult({ ...existing.response, replayed: true });
|
|
60
|
-
return await reconcile(lookupId, existing.context.request);
|
|
61
|
-
}
|
|
62
|
-
if (req.method === "GET") {
|
|
63
|
-
const snapshot = await read(identity);
|
|
64
|
-
if (!validSnapshot(snapshot, identity, scopeKey))
|
|
65
|
-
throw new Error("invalid_settings_snapshot");
|
|
66
|
-
return reply(200, { snapshot, serverInstanceId: store.serverInstanceId });
|
|
67
|
-
}
|
|
68
|
-
if (req.method !== "PUT")
|
|
69
|
-
return reply(405, { code: "METHOD_NOT_ALLOWED" });
|
|
70
|
-
const body = await readJsonBody(req);
|
|
71
|
-
if (!validMutation(body, scopeKey))
|
|
72
|
-
return reply(400, { code: "INVALID_SETTINGS_MUTATION" });
|
|
73
|
-
activeCommandId = body.commandId;
|
|
74
|
-
if (body.expectedServerInstanceId !== store.serverInstanceId)
|
|
75
|
-
return reply(409, { code: "SERVICE_IDENTITY_CHANGED", serverInstanceId: store.serverInstanceId });
|
|
76
|
-
const change = { commandId: body.commandId, expectedVersion: body.expectedVersion,
|
|
77
|
-
expectedServerInstanceId: body.expectedServerInstanceId, values: body.values };
|
|
78
|
-
const payload = { ...change, [scopeKey]: identity };
|
|
79
|
-
const previous = submissions.get(body.commandId) ?? Promise.resolve();
|
|
80
|
-
let release;
|
|
81
|
-
const held = new Promise(resolve => { release = resolve; });
|
|
82
|
-
submissions.set(body.commandId, held);
|
|
83
|
-
await previous.catch(() => { });
|
|
84
|
-
try {
|
|
85
|
-
const status = store.commandReceiptStatus(KIND, body.commandId, payload);
|
|
86
|
-
if (status === "conflict")
|
|
87
|
-
return reply(409, { code: "COMMAND_CONFLICT" });
|
|
88
|
-
if (status === "replayed")
|
|
89
|
-
return sendResult({ ...store.commandReceipt(KIND, body.commandId).response, replayed: true });
|
|
90
|
-
if (status === "prepared")
|
|
91
|
-
return await reconcile(body.commandId, payload);
|
|
92
|
-
store.prepareCommandReceipt(KIND, body.commandId, payload, { [scopeKey]: identity, request: payload });
|
|
93
|
-
try {
|
|
94
|
-
const result = checked(await mutate(identity, change));
|
|
95
|
-
const response = envelope(body.commandId, result);
|
|
96
|
-
if (result.status !== "unknown")
|
|
97
|
-
store.completeCommandReceipt(KIND, body.commandId, payload, response);
|
|
98
|
-
return sendResult(response);
|
|
99
|
-
}
|
|
100
|
-
catch {
|
|
101
|
-
return sendResult(envelope(body.commandId, { status: "unknown", code: "SETTINGS_UNAVAILABLE" }));
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
finally {
|
|
105
|
-
release();
|
|
106
|
-
if (submissions.get(body.commandId) === held)
|
|
107
|
-
submissions.delete(body.commandId);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
catch {
|
|
111
|
-
return reply(503, { status: "unknown", code: "SETTINGS_UNAVAILABLE", ...(activeCommandId ? { commandId: activeCommandId } : {}), [scopeKey]: identity, serverInstanceId: store.serverInstanceId });
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
return handle;
|
|
115
|
-
}
|
|
116
|
-
export function createVersionedSessionSettingsHandler(store, adapter) {
|
|
117
|
-
return createVersionedSettingsHandler(store, adapter, false);
|
|
118
|
-
}
|
|
119
|
-
export function createVersionedAgentDefaultsHandler(store, adapter) {
|
|
120
|
-
return createVersionedSettingsHandler(store, adapter, true);
|
|
121
|
-
}
|
package/plugin/runtime/node_modules/@syengup/fridaynext-channel-kit/dist/transport/sessions.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { IncomingMessage, ServerResponse } from "node:http";
|
|
2
|
-
import { type BackendAdapter } from "../contract/types.js";
|
|
3
|
-
import type { DurableRunStore } from "../runtime/durable-run-store.js";
|
|
4
|
-
type SessionAdapter = Pick<BackendAdapter, "historyMessage" | "setSessionTitle" | "setSessionPinned">;
|
|
5
|
-
export declare function bindSessionToDevice(store: DurableRunStore, adapter: Pick<BackendAdapter, "bindSession">, sessionKey: string, deviceId: string): Promise<{
|
|
6
|
-
replayed: number;
|
|
7
|
-
}>;
|
|
8
|
-
export declare function createSessionHandlers(deps: {
|
|
9
|
-
authenticate(req: IncomingMessage): boolean;
|
|
10
|
-
adapter: SessionAdapter;
|
|
11
|
-
bind?(sessionKey: string, deviceId: string): Promise<{
|
|
12
|
-
replayed: number;
|
|
13
|
-
}>;
|
|
14
|
-
}): {
|
|
15
|
-
handleHistoryDetail(req: IncomingMessage, res: ServerResponse): Promise<boolean>;
|
|
16
|
-
handleSessionTitle(req: IncomingMessage, res: ServerResponse): Promise<boolean>;
|
|
17
|
-
handleSessionPin(req: IncomingMessage, res: ServerResponse): Promise<boolean>;
|
|
18
|
-
handleSessionBind(req: IncomingMessage, res: ServerResponse): Promise<boolean>;
|
|
19
|
-
};
|
|
20
|
-
export {};
|