@suveren/gateway 0.2.0
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 +148 -0
- package/bin/suveren-gateway.js +260 -0
- package/content/integrations/calendar.json +141 -0
- package/content/integrations/crm.json +101 -0
- package/content/integrations/gmail.json +126 -0
- package/content/integrations/index.json +10 -0
- package/content/integrations/linkedin.json +118 -0
- package/content/integrations/mollie.json +147 -0
- package/content/integrations/records.json +72 -0
- package/dist/control-plane/ai-prompts-store-5JISFV4Z.mjs +12 -0
- package/dist/control-plane/chunk-3BNWN6VP.mjs +54 -0
- package/dist/control-plane/index.mjs +1927 -0
- package/dist/mcp-server/http.mjs +2724 -0
- package/dist/ui/assets/index-B8OeLWqp.css +1 -0
- package/dist/ui/assets/index-CqecIRqd.js +101 -0
- package/dist/ui/fonts/Inter-Bold.woff2 +0 -0
- package/dist/ui/fonts/Inter-Medium.woff2 +0 -0
- package/dist/ui/fonts/Inter-Regular.woff2 +0 -0
- package/dist/ui/fonts/Inter-SemiBold.woff2 +0 -0
- package/dist/ui/index.html +13 -0
- package/dist/ui/mockups/intent-redesign.html +579 -0
- package/node_modules/@hap/core/README.md +71 -0
- package/node_modules/@hap/core/dist/index.d.mts +601 -0
- package/node_modules/@hap/core/dist/index.d.ts +601 -0
- package/node_modules/@hap/core/dist/index.js +745 -0
- package/node_modules/@hap/core/dist/index.mjs +682 -0
- package/node_modules/@hap/core/package.json +42 -0
- package/node_modules/@hap/core/src/attestation.ts +170 -0
- package/node_modules/@hap/core/src/frame.ts +245 -0
- package/node_modules/@hap/core/src/gatekeeper.ts +697 -0
- package/node_modules/@hap/core/src/index.ts +11 -0
- package/node_modules/@hap/core/src/profiles/index.ts +29 -0
- package/node_modules/@hap/core/src/types.ts +428 -0
- package/node_modules/@hono/node-server/LICENSE +21 -0
- package/node_modules/@hono/node-server/README.md +358 -0
- package/node_modules/@hono/node-server/dist/conninfo.d.mts +10 -0
- package/node_modules/@hono/node-server/dist/conninfo.d.ts +10 -0
- package/node_modules/@hono/node-server/dist/conninfo.js +42 -0
- package/node_modules/@hono/node-server/dist/conninfo.mjs +17 -0
- package/node_modules/@hono/node-server/dist/globals.d.mts +2 -0
- package/node_modules/@hono/node-server/dist/globals.d.ts +2 -0
- package/node_modules/@hono/node-server/dist/globals.js +29 -0
- package/node_modules/@hono/node-server/dist/globals.mjs +5 -0
- package/node_modules/@hono/node-server/dist/index.d.mts +8 -0
- package/node_modules/@hono/node-server/dist/index.d.ts +8 -0
- package/node_modules/@hono/node-server/dist/index.js +702 -0
- package/node_modules/@hono/node-server/dist/index.mjs +662 -0
- package/node_modules/@hono/node-server/dist/listener.d.mts +13 -0
- package/node_modules/@hono/node-server/dist/listener.d.ts +13 -0
- package/node_modules/@hono/node-server/dist/listener.js +670 -0
- package/node_modules/@hono/node-server/dist/listener.mjs +635 -0
- package/node_modules/@hono/node-server/dist/request.d.mts +25 -0
- package/node_modules/@hono/node-server/dist/request.d.ts +25 -0
- package/node_modules/@hono/node-server/dist/request.js +238 -0
- package/node_modules/@hono/node-server/dist/request.mjs +206 -0
- package/node_modules/@hono/node-server/dist/response.d.mts +26 -0
- package/node_modules/@hono/node-server/dist/response.d.ts +26 -0
- package/node_modules/@hono/node-server/dist/response.js +112 -0
- package/node_modules/@hono/node-server/dist/response.mjs +85 -0
- package/node_modules/@hono/node-server/dist/serve-static.d.mts +17 -0
- package/node_modules/@hono/node-server/dist/serve-static.d.ts +17 -0
- package/node_modules/@hono/node-server/dist/serve-static.js +177 -0
- package/node_modules/@hono/node-server/dist/serve-static.mjs +152 -0
- package/node_modules/@hono/node-server/dist/server.d.mts +10 -0
- package/node_modules/@hono/node-server/dist/server.d.ts +10 -0
- package/node_modules/@hono/node-server/dist/server.js +696 -0
- package/node_modules/@hono/node-server/dist/server.mjs +660 -0
- package/node_modules/@hono/node-server/dist/types.d.mts +44 -0
- package/node_modules/@hono/node-server/dist/types.d.ts +44 -0
- package/node_modules/@hono/node-server/dist/types.js +18 -0
- package/node_modules/@hono/node-server/dist/types.mjs +0 -0
- package/node_modules/@hono/node-server/dist/utils/response/constants.d.mts +3 -0
- package/node_modules/@hono/node-server/dist/utils/response/constants.d.ts +3 -0
- package/node_modules/@hono/node-server/dist/utils/response/constants.js +30 -0
- package/node_modules/@hono/node-server/dist/utils/response/constants.mjs +5 -0
- package/node_modules/@hono/node-server/dist/utils/response.d.mts +3 -0
- package/node_modules/@hono/node-server/dist/utils/response.d.ts +3 -0
- package/node_modules/@hono/node-server/dist/utils/response.js +37 -0
- package/node_modules/@hono/node-server/dist/utils/response.mjs +10 -0
- package/node_modules/@hono/node-server/dist/utils.d.mts +9 -0
- package/node_modules/@hono/node-server/dist/utils.d.ts +9 -0
- package/node_modules/@hono/node-server/dist/utils.js +99 -0
- package/node_modules/@hono/node-server/dist/utils.mjs +71 -0
- package/node_modules/@hono/node-server/dist/vercel.d.mts +7 -0
- package/node_modules/@hono/node-server/dist/vercel.d.ts +7 -0
- package/node_modules/@hono/node-server/dist/vercel.js +677 -0
- package/node_modules/@hono/node-server/dist/vercel.mjs +640 -0
- package/node_modules/@hono/node-server/package.json +103 -0
- package/node_modules/@hpke/common/LICENSE +21 -0
- package/node_modules/@hpke/common/README.md +25 -0
- package/node_modules/@hpke/common/esm/_dnt.shims.d.ts +2 -0
- package/node_modules/@hpke/common/esm/_dnt.shims.d.ts.map +1 -0
- package/node_modules/@hpke/common/esm/_dnt.shims.js +57 -0
- package/node_modules/@hpke/common/esm/mod.d.ts +34 -0
- package/node_modules/@hpke/common/esm/mod.d.ts.map +1 -0
- package/node_modules/@hpke/common/esm/mod.js +21 -0
- package/node_modules/@hpke/common/esm/package.json +3 -0
- package/node_modules/@hpke/common/esm/src/algorithm.d.ts +6 -0
- package/node_modules/@hpke/common/esm/src/algorithm.d.ts.map +1 -0
- package/node_modules/@hpke/common/esm/src/algorithm.js +33 -0
- package/node_modules/@hpke/common/esm/src/consts.d.ts +13 -0
- package/node_modules/@hpke/common/esm/src/consts.d.ts.map +1 -0
- package/node_modules/@hpke/common/esm/src/consts.js +26 -0
- package/node_modules/@hpke/common/esm/src/curve/curve.d.ts +30 -0
- package/node_modules/@hpke/common/esm/src/curve/curve.d.ts.map +1 -0
- package/node_modules/@hpke/common/esm/src/curve/curve.js +16 -0
- package/node_modules/@hpke/common/esm/src/curve/modular.d.ts +12 -0
- package/node_modules/@hpke/common/esm/src/curve/modular.d.ts.map +1 -0
- package/node_modules/@hpke/common/esm/src/curve/modular.js +31 -0
- package/node_modules/@hpke/common/esm/src/curve/montgomery.d.ts +33 -0
- package/node_modules/@hpke/common/esm/src/curve/montgomery.d.ts.map +1 -0
- package/node_modules/@hpke/common/esm/src/curve/montgomery.js +159 -0
- package/node_modules/@hpke/common/esm/src/errors.d.ts +80 -0
- package/node_modules/@hpke/common/esm/src/errors.d.ts.map +1 -0
- package/node_modules/@hpke/common/esm/src/errors.js +92 -0
- package/node_modules/@hpke/common/esm/src/hash/hash.d.ts +81 -0
- package/node_modules/@hpke/common/esm/src/hash/hash.d.ts.map +1 -0
- package/node_modules/@hpke/common/esm/src/hash/hash.js +32 -0
- package/node_modules/@hpke/common/esm/src/hash/hmac.d.ts +31 -0
- package/node_modules/@hpke/common/esm/src/hash/hmac.d.ts.map +1 -0
- package/node_modules/@hpke/common/esm/src/hash/hmac.js +129 -0
- package/node_modules/@hpke/common/esm/src/hash/md.d.ts +43 -0
- package/node_modules/@hpke/common/esm/src/hash/md.d.ts.map +1 -0
- package/node_modules/@hpke/common/esm/src/hash/md.js +238 -0
- package/node_modules/@hpke/common/esm/src/hash/sha2.d.ts +151 -0
- package/node_modules/@hpke/common/esm/src/hash/sha2.d.ts.map +1 -0
- package/node_modules/@hpke/common/esm/src/hash/sha2.js +634 -0
- package/node_modules/@hpke/common/esm/src/hash/sha3.d.ts +66 -0
- package/node_modules/@hpke/common/esm/src/hash/sha3.d.ts.map +1 -0
- package/node_modules/@hpke/common/esm/src/hash/sha3.js +598 -0
- package/node_modules/@hpke/common/esm/src/hash/u64.d.ts +63 -0
- package/node_modules/@hpke/common/esm/src/hash/u64.d.ts.map +1 -0
- package/node_modules/@hpke/common/esm/src/hash/u64.js +94 -0
- package/node_modules/@hpke/common/esm/src/identifiers.d.ts +67 -0
- package/node_modules/@hpke/common/esm/src/identifiers.d.ts.map +1 -0
- package/node_modules/@hpke/common/esm/src/identifiers.js +50 -0
- package/node_modules/@hpke/common/esm/src/interfaces/aeadEncryptionContext.d.ts +25 -0
- package/node_modules/@hpke/common/esm/src/interfaces/aeadEncryptionContext.d.ts.map +1 -0
- package/node_modules/@hpke/common/esm/src/interfaces/aeadEncryptionContext.js +2 -0
- package/node_modules/@hpke/common/esm/src/interfaces/aeadInterface.d.ts +23 -0
- package/node_modules/@hpke/common/esm/src/interfaces/aeadInterface.d.ts.map +1 -0
- package/node_modules/@hpke/common/esm/src/interfaces/aeadInterface.js +1 -0
- package/node_modules/@hpke/common/esm/src/interfaces/dhkemInterface.d.ts +9 -0
- package/node_modules/@hpke/common/esm/src/interfaces/dhkemInterface.d.ts.map +1 -0
- package/node_modules/@hpke/common/esm/src/interfaces/dhkemInterface.js +1 -0
- package/node_modules/@hpke/common/esm/src/interfaces/dhkemPrimitives.d.ts +15 -0
- package/node_modules/@hpke/common/esm/src/interfaces/dhkemPrimitives.d.ts.map +1 -0
- package/node_modules/@hpke/common/esm/src/interfaces/dhkemPrimitives.js +14 -0
- package/node_modules/@hpke/common/esm/src/interfaces/jsonWebKeyExtended.d.ts +13 -0
- package/node_modules/@hpke/common/esm/src/interfaces/jsonWebKeyExtended.d.ts.map +1 -0
- package/node_modules/@hpke/common/esm/src/interfaces/jsonWebKeyExtended.js +1 -0
- package/node_modules/@hpke/common/esm/src/interfaces/kdfInterface.d.ts +80 -0
- package/node_modules/@hpke/common/esm/src/interfaces/kdfInterface.d.ts.map +1 -0
- package/node_modules/@hpke/common/esm/src/interfaces/kdfInterface.js +1 -0
- package/node_modules/@hpke/common/esm/src/interfaces/kemInterface.d.ts +123 -0
- package/node_modules/@hpke/common/esm/src/interfaces/kemInterface.d.ts.map +1 -0
- package/node_modules/@hpke/common/esm/src/interfaces/kemInterface.js +8 -0
- package/node_modules/@hpke/common/esm/src/interfaces/keyScheduleParams.d.ts +14 -0
- package/node_modules/@hpke/common/esm/src/interfaces/keyScheduleParams.d.ts.map +1 -0
- package/node_modules/@hpke/common/esm/src/interfaces/keyScheduleParams.js +1 -0
- package/node_modules/@hpke/common/esm/src/interfaces/preSharedKey.d.ts +10 -0
- package/node_modules/@hpke/common/esm/src/interfaces/preSharedKey.d.ts.map +1 -0
- package/node_modules/@hpke/common/esm/src/interfaces/preSharedKey.js +1 -0
- package/node_modules/@hpke/common/esm/src/interfaces/recipientContextParams.d.ts +13 -0
- package/node_modules/@hpke/common/esm/src/interfaces/recipientContextParams.d.ts.map +1 -0
- package/node_modules/@hpke/common/esm/src/interfaces/recipientContextParams.js +1 -0
- package/node_modules/@hpke/common/esm/src/interfaces/senderContextParams.d.ts +13 -0
- package/node_modules/@hpke/common/esm/src/interfaces/senderContextParams.d.ts.map +1 -0
- package/node_modules/@hpke/common/esm/src/interfaces/senderContextParams.js +1 -0
- package/node_modules/@hpke/common/esm/src/kdfs/hkdf.d.ts +46 -0
- package/node_modules/@hpke/common/esm/src/kdfs/hkdf.d.ts.map +1 -0
- package/node_modules/@hpke/common/esm/src/kdfs/hkdf.js +240 -0
- package/node_modules/@hpke/common/esm/src/kems/dhkem.d.ts +30 -0
- package/node_modules/@hpke/common/esm/src/kems/dhkem.d.ts.map +1 -0
- package/node_modules/@hpke/common/esm/src/kems/dhkem.js +196 -0
- package/node_modules/@hpke/common/esm/src/kems/dhkemPrimitives/ec.d.ts +30 -0
- package/node_modules/@hpke/common/esm/src/kems/dhkemPrimitives/ec.d.ts.map +1 -0
- package/node_modules/@hpke/common/esm/src/kems/dhkemPrimitives/ec.js +401 -0
- package/node_modules/@hpke/common/esm/src/kems/dhkemPrimitives/xCurve.d.ts +29 -0
- package/node_modules/@hpke/common/esm/src/kems/dhkemPrimitives/xCurve.d.ts.map +1 -0
- package/node_modules/@hpke/common/esm/src/kems/dhkemPrimitives/xCurve.js +177 -0
- package/node_modules/@hpke/common/esm/src/kems/hybridkem.d.ts +35 -0
- package/node_modules/@hpke/common/esm/src/kems/hybridkem.d.ts.map +1 -0
- package/node_modules/@hpke/common/esm/src/kems/hybridkem.js +231 -0
- package/node_modules/@hpke/common/esm/src/utils/bignum.d.ts +13 -0
- package/node_modules/@hpke/common/esm/src/utils/bignum.d.ts.map +1 -0
- package/node_modules/@hpke/common/esm/src/utils/bignum.js +48 -0
- package/node_modules/@hpke/common/esm/src/utils/misc.d.ts +60 -0
- package/node_modules/@hpke/common/esm/src/utils/misc.d.ts.map +1 -0
- package/node_modules/@hpke/common/esm/src/utils/misc.js +176 -0
- package/node_modules/@hpke/common/esm/src/utils/noble.d.ts +117 -0
- package/node_modules/@hpke/common/esm/src/utils/noble.d.ts.map +1 -0
- package/node_modules/@hpke/common/esm/src/utils/noble.js +371 -0
- package/node_modules/@hpke/common/esm/src/xCryptoKey.d.ts +9 -0
- package/node_modules/@hpke/common/esm/src/xCryptoKey.d.ts.map +1 -0
- package/node_modules/@hpke/common/esm/src/xCryptoKey.js +41 -0
- package/node_modules/@hpke/common/package.json +43 -0
- package/node_modules/@hpke/common/script/_dnt.shims.d.ts +2 -0
- package/node_modules/@hpke/common/script/_dnt.shims.d.ts.map +1 -0
- package/node_modules/@hpke/common/script/_dnt.shims.js +70 -0
- package/node_modules/@hpke/common/script/mod.d.ts +34 -0
- package/node_modules/@hpke/common/script/mod.d.ts.map +1 -0
- package/node_modules/@hpke/common/script/mod.js +106 -0
- package/node_modules/@hpke/common/script/package.json +3 -0
- package/node_modules/@hpke/common/script/src/algorithm.d.ts +6 -0
- package/node_modules/@hpke/common/script/src/algorithm.d.ts.map +1 -0
- package/node_modules/@hpke/common/script/src/algorithm.js +71 -0
- package/node_modules/@hpke/common/script/src/consts.d.ts +13 -0
- package/node_modules/@hpke/common/script/src/consts.d.ts.map +1 -0
- package/node_modules/@hpke/common/script/src/consts.js +39 -0
- package/node_modules/@hpke/common/script/src/curve/curve.d.ts +30 -0
- package/node_modules/@hpke/common/script/src/curve/curve.d.ts.map +1 -0
- package/node_modules/@hpke/common/script/src/curve/curve.js +29 -0
- package/node_modules/@hpke/common/script/src/curve/modular.d.ts +12 -0
- package/node_modules/@hpke/common/script/src/curve/modular.d.ts.map +1 -0
- package/node_modules/@hpke/common/script/src/curve/modular.js +45 -0
- package/node_modules/@hpke/common/script/src/curve/montgomery.d.ts +33 -0
- package/node_modules/@hpke/common/script/src/curve/montgomery.d.ts.map +1 -0
- package/node_modules/@hpke/common/script/src/curve/montgomery.js +172 -0
- package/node_modules/@hpke/common/script/src/errors.d.ts +80 -0
- package/node_modules/@hpke/common/script/src/errors.d.ts.map +1 -0
- package/node_modules/@hpke/common/script/src/errors.js +118 -0
- package/node_modules/@hpke/common/script/src/hash/hash.d.ts +81 -0
- package/node_modules/@hpke/common/script/src/hash/hash.d.ts.map +1 -0
- package/node_modules/@hpke/common/script/src/hash/hash.js +46 -0
- package/node_modules/@hpke/common/script/src/hash/hmac.d.ts +31 -0
- package/node_modules/@hpke/common/script/src/hash/hmac.d.ts.map +1 -0
- package/node_modules/@hpke/common/script/src/hash/hmac.js +144 -0
- package/node_modules/@hpke/common/script/src/hash/md.d.ts +43 -0
- package/node_modules/@hpke/common/script/src/hash/md.d.ts.map +1 -0
- package/node_modules/@hpke/common/script/src/hash/md.js +254 -0
- package/node_modules/@hpke/common/script/src/hash/sha2.d.ts +151 -0
- package/node_modules/@hpke/common/script/src/hash/sha2.d.ts.map +1 -0
- package/node_modules/@hpke/common/script/src/hash/sha2.js +673 -0
- package/node_modules/@hpke/common/script/src/hash/sha3.d.ts +66 -0
- package/node_modules/@hpke/common/script/src/hash/sha3.d.ts.map +1 -0
- package/node_modules/@hpke/common/script/src/hash/sha3.js +613 -0
- package/node_modules/@hpke/common/script/src/hash/u64.d.ts +63 -0
- package/node_modules/@hpke/common/script/src/hash/u64.d.ts.map +1 -0
- package/node_modules/@hpke/common/script/src/hash/u64.js +127 -0
- package/node_modules/@hpke/common/script/src/identifiers.d.ts +67 -0
- package/node_modules/@hpke/common/script/src/identifiers.d.ts.map +1 -0
- package/node_modules/@hpke/common/script/src/identifiers.js +63 -0
- package/node_modules/@hpke/common/script/src/interfaces/aeadEncryptionContext.d.ts +25 -0
- package/node_modules/@hpke/common/script/src/interfaces/aeadEncryptionContext.d.ts.map +1 -0
- package/node_modules/@hpke/common/script/src/interfaces/aeadEncryptionContext.js +15 -0
- package/node_modules/@hpke/common/script/src/interfaces/aeadInterface.d.ts +23 -0
- package/node_modules/@hpke/common/script/src/interfaces/aeadInterface.d.ts.map +1 -0
- package/node_modules/@hpke/common/script/src/interfaces/aeadInterface.js +12 -0
- package/node_modules/@hpke/common/script/src/interfaces/dhkemInterface.d.ts +9 -0
- package/node_modules/@hpke/common/script/src/interfaces/dhkemInterface.d.ts.map +1 -0
- package/node_modules/@hpke/common/script/src/interfaces/dhkemInterface.js +12 -0
- package/node_modules/@hpke/common/script/src/interfaces/dhkemPrimitives.d.ts +15 -0
- package/node_modules/@hpke/common/script/src/interfaces/dhkemPrimitives.d.ts.map +1 -0
- package/node_modules/@hpke/common/script/src/interfaces/dhkemPrimitives.js +27 -0
- package/node_modules/@hpke/common/script/src/interfaces/jsonWebKeyExtended.d.ts +13 -0
- package/node_modules/@hpke/common/script/src/interfaces/jsonWebKeyExtended.d.ts.map +1 -0
- package/node_modules/@hpke/common/script/src/interfaces/jsonWebKeyExtended.js +12 -0
- package/node_modules/@hpke/common/script/src/interfaces/kdfInterface.d.ts +80 -0
- package/node_modules/@hpke/common/script/src/interfaces/kdfInterface.d.ts.map +1 -0
- package/node_modules/@hpke/common/script/src/interfaces/kdfInterface.js +12 -0
- package/node_modules/@hpke/common/script/src/interfaces/kemInterface.d.ts +123 -0
- package/node_modules/@hpke/common/script/src/interfaces/kemInterface.d.ts.map +1 -0
- package/node_modules/@hpke/common/script/src/interfaces/kemInterface.js +21 -0
- package/node_modules/@hpke/common/script/src/interfaces/keyScheduleParams.d.ts +14 -0
- package/node_modules/@hpke/common/script/src/interfaces/keyScheduleParams.d.ts.map +1 -0
- package/node_modules/@hpke/common/script/src/interfaces/keyScheduleParams.js +12 -0
- package/node_modules/@hpke/common/script/src/interfaces/preSharedKey.d.ts +10 -0
- package/node_modules/@hpke/common/script/src/interfaces/preSharedKey.d.ts.map +1 -0
- package/node_modules/@hpke/common/script/src/interfaces/preSharedKey.js +12 -0
- package/node_modules/@hpke/common/script/src/interfaces/recipientContextParams.d.ts +13 -0
- package/node_modules/@hpke/common/script/src/interfaces/recipientContextParams.d.ts.map +1 -0
- package/node_modules/@hpke/common/script/src/interfaces/recipientContextParams.js +12 -0
- package/node_modules/@hpke/common/script/src/interfaces/senderContextParams.d.ts +13 -0
- package/node_modules/@hpke/common/script/src/interfaces/senderContextParams.d.ts.map +1 -0
- package/node_modules/@hpke/common/script/src/interfaces/senderContextParams.js +12 -0
- package/node_modules/@hpke/common/script/src/kdfs/hkdf.d.ts +46 -0
- package/node_modules/@hpke/common/script/src/kdfs/hkdf.d.ts.map +1 -0
- package/node_modules/@hpke/common/script/src/kdfs/hkdf.js +259 -0
- package/node_modules/@hpke/common/script/src/kems/dhkem.d.ts +30 -0
- package/node_modules/@hpke/common/script/src/kems/dhkem.d.ts.map +1 -0
- package/node_modules/@hpke/common/script/src/kems/dhkem.js +210 -0
- package/node_modules/@hpke/common/script/src/kems/dhkemPrimitives/ec.d.ts +30 -0
- package/node_modules/@hpke/common/script/src/kems/dhkemPrimitives/ec.d.ts.map +1 -0
- package/node_modules/@hpke/common/script/src/kems/dhkemPrimitives/ec.js +415 -0
- package/node_modules/@hpke/common/script/src/kems/dhkemPrimitives/xCurve.d.ts +29 -0
- package/node_modules/@hpke/common/script/src/kems/dhkemPrimitives/xCurve.d.ts.map +1 -0
- package/node_modules/@hpke/common/script/src/kems/dhkemPrimitives/xCurve.js +191 -0
- package/node_modules/@hpke/common/script/src/kems/hybridkem.d.ts +35 -0
- package/node_modules/@hpke/common/script/src/kems/hybridkem.d.ts.map +1 -0
- package/node_modules/@hpke/common/script/src/kems/hybridkem.js +245 -0
- package/node_modules/@hpke/common/script/src/utils/bignum.d.ts +13 -0
- package/node_modules/@hpke/common/script/src/utils/bignum.d.ts.map +1 -0
- package/node_modules/@hpke/common/script/src/utils/bignum.js +62 -0
- package/node_modules/@hpke/common/script/src/utils/misc.d.ts +60 -0
- package/node_modules/@hpke/common/script/src/utils/misc.d.ts.map +1 -0
- package/node_modules/@hpke/common/script/src/utils/misc.js +226 -0
- package/node_modules/@hpke/common/script/src/utils/noble.d.ts +117 -0
- package/node_modules/@hpke/common/script/src/utils/noble.d.ts.map +1 -0
- package/node_modules/@hpke/common/script/src/utils/noble.js +416 -0
- package/node_modules/@hpke/common/script/src/xCryptoKey.d.ts +9 -0
- package/node_modules/@hpke/common/script/src/xCryptoKey.d.ts.map +1 -0
- package/node_modules/@hpke/common/script/src/xCryptoKey.js +55 -0
- package/node_modules/@hpke/core/LICENSE +21 -0
- package/node_modules/@hpke/core/README.md +263 -0
- package/node_modules/@hpke/core/esm/mod.d.ts +11 -0
- package/node_modules/@hpke/core/esm/mod.d.ts.map +1 -0
- package/node_modules/@hpke/core/esm/mod.js +6 -0
- package/node_modules/@hpke/core/esm/package.json +3 -0
- package/node_modules/@hpke/core/esm/src/aeads/aesGcm.d.ts +80 -0
- package/node_modules/@hpke/core/esm/src/aeads/aesGcm.d.ts.map +1 -0
- package/node_modules/@hpke/core/esm/src/aeads/aesGcm.js +167 -0
- package/node_modules/@hpke/core/esm/src/aeads/exportOnly.d.ts +34 -0
- package/node_modules/@hpke/core/esm/src/aeads/exportOnly.d.ts.map +1 -0
- package/node_modules/@hpke/core/esm/src/aeads/exportOnly.js +56 -0
- package/node_modules/@hpke/core/esm/src/cipherSuiteNative.d.ts +145 -0
- package/node_modules/@hpke/core/esm/src/cipherSuiteNative.d.ts.map +1 -0
- package/node_modules/@hpke/core/esm/src/cipherSuiteNative.js +326 -0
- package/node_modules/@hpke/core/esm/src/encryptionContext.d.ts +15 -0
- package/node_modules/@hpke/core/esm/src/encryptionContext.d.ts.map +1 -0
- package/node_modules/@hpke/core/esm/src/encryptionContext.js +68 -0
- package/node_modules/@hpke/core/esm/src/exporterContext.d.ts +19 -0
- package/node_modules/@hpke/core/esm/src/exporterContext.d.ts.map +1 -0
- package/node_modules/@hpke/core/esm/src/exporterContext.js +62 -0
- package/node_modules/@hpke/core/esm/src/interfaces/aeadParams.d.ts +17 -0
- package/node_modules/@hpke/core/esm/src/interfaces/aeadParams.d.ts.map +1 -0
- package/node_modules/@hpke/core/esm/src/interfaces/aeadParams.js +1 -0
- package/node_modules/@hpke/core/esm/src/interfaces/cipherSuiteParams.d.ts +13 -0
- package/node_modules/@hpke/core/esm/src/interfaces/cipherSuiteParams.d.ts.map +1 -0
- package/node_modules/@hpke/core/esm/src/interfaces/cipherSuiteParams.js +1 -0
- package/node_modules/@hpke/core/esm/src/interfaces/encapsulator.d.ts +8 -0
- package/node_modules/@hpke/core/esm/src/interfaces/encapsulator.d.ts.map +1 -0
- package/node_modules/@hpke/core/esm/src/interfaces/encapsulator.js +1 -0
- package/node_modules/@hpke/core/esm/src/interfaces/encryptionContext.d.ts +40 -0
- package/node_modules/@hpke/core/esm/src/interfaces/encryptionContext.d.ts.map +1 -0
- package/node_modules/@hpke/core/esm/src/interfaces/encryptionContext.js +1 -0
- package/node_modules/@hpke/core/esm/src/interfaces/exporter.d.ts +17 -0
- package/node_modules/@hpke/core/esm/src/interfaces/exporter.d.ts.map +1 -0
- package/node_modules/@hpke/core/esm/src/interfaces/exporter.js +1 -0
- package/node_modules/@hpke/core/esm/src/interfaces/keyInfo.d.ts +7 -0
- package/node_modules/@hpke/core/esm/src/interfaces/keyInfo.d.ts.map +1 -0
- package/node_modules/@hpke/core/esm/src/interfaces/keyInfo.js +1 -0
- package/node_modules/@hpke/core/esm/src/interfaces/responses.d.ts +10 -0
- package/node_modules/@hpke/core/esm/src/interfaces/responses.d.ts.map +1 -0
- package/node_modules/@hpke/core/esm/src/interfaces/responses.js +1 -0
- package/node_modules/@hpke/core/esm/src/kems/dhkemNative.d.ts +26 -0
- package/node_modules/@hpke/core/esm/src/kems/dhkemNative.d.ts.map +1 -0
- package/node_modules/@hpke/core/esm/src/kems/dhkemNative.js +112 -0
- package/node_modules/@hpke/core/esm/src/kems/dhkemPrimitives/x25519.d.ts +24 -0
- package/node_modules/@hpke/core/esm/src/kems/dhkemPrimitives/x25519.d.ts.map +1 -0
- package/node_modules/@hpke/core/esm/src/kems/dhkemPrimitives/x25519.js +214 -0
- package/node_modules/@hpke/core/esm/src/kems/dhkemPrimitives/x448.d.ts +24 -0
- package/node_modules/@hpke/core/esm/src/kems/dhkemPrimitives/x448.d.ts.map +1 -0
- package/node_modules/@hpke/core/esm/src/kems/dhkemPrimitives/x448.js +214 -0
- package/node_modules/@hpke/core/esm/src/kems/dhkemX25519.d.ts +38 -0
- package/node_modules/@hpke/core/esm/src/kems/dhkemX25519.d.ts.map +1 -0
- package/node_modules/@hpke/core/esm/src/kems/dhkemX25519.js +66 -0
- package/node_modules/@hpke/core/esm/src/kems/dhkemX448.d.ts +38 -0
- package/node_modules/@hpke/core/esm/src/kems/dhkemX448.d.ts.map +1 -0
- package/node_modules/@hpke/core/esm/src/kems/dhkemX448.js +66 -0
- package/node_modules/@hpke/core/esm/src/mutex.d.ts +5 -0
- package/node_modules/@hpke/core/esm/src/mutex.d.ts.map +1 -0
- package/node_modules/@hpke/core/esm/src/mutex.js +28 -0
- package/node_modules/@hpke/core/esm/src/native.d.ts +236 -0
- package/node_modules/@hpke/core/esm/src/native.d.ts.map +1 -0
- package/node_modules/@hpke/core/esm/src/native.js +235 -0
- package/node_modules/@hpke/core/esm/src/recipientContext.d.ts +6 -0
- package/node_modules/@hpke/core/esm/src/recipientContext.d.ts.map +1 -0
- package/node_modules/@hpke/core/esm/src/recipientContext.js +38 -0
- package/node_modules/@hpke/core/esm/src/senderContext.d.ts +11 -0
- package/node_modules/@hpke/core/esm/src/senderContext.d.ts.map +1 -0
- package/node_modules/@hpke/core/esm/src/senderContext.js +45 -0
- package/node_modules/@hpke/core/esm/src/utils/emitNotSupported.d.ts +2 -0
- package/node_modules/@hpke/core/esm/src/utils/emitNotSupported.d.ts.map +1 -0
- package/node_modules/@hpke/core/esm/src/utils/emitNotSupported.js +6 -0
- package/node_modules/@hpke/core/package.json +46 -0
- package/node_modules/@hpke/core/script/mod.d.ts +11 -0
- package/node_modules/@hpke/core/script/mod.d.ts.map +1 -0
- package/node_modules/@hpke/core/script/mod.js +47 -0
- package/node_modules/@hpke/core/script/package.json +3 -0
- package/node_modules/@hpke/core/script/src/aeads/aesGcm.d.ts +80 -0
- package/node_modules/@hpke/core/script/src/aeads/aesGcm.d.ts.map +1 -0
- package/node_modules/@hpke/core/script/src/aeads/aesGcm.js +183 -0
- package/node_modules/@hpke/core/script/src/aeads/exportOnly.d.ts +34 -0
- package/node_modules/@hpke/core/script/src/aeads/exportOnly.d.ts.map +1 -0
- package/node_modules/@hpke/core/script/src/aeads/exportOnly.js +70 -0
- package/node_modules/@hpke/core/script/src/cipherSuiteNative.d.ts +145 -0
- package/node_modules/@hpke/core/script/src/cipherSuiteNative.d.ts.map +1 -0
- package/node_modules/@hpke/core/script/src/cipherSuiteNative.js +340 -0
- package/node_modules/@hpke/core/script/src/encryptionContext.d.ts +15 -0
- package/node_modules/@hpke/core/script/src/encryptionContext.d.ts.map +1 -0
- package/node_modules/@hpke/core/script/src/encryptionContext.js +82 -0
- package/node_modules/@hpke/core/script/src/exporterContext.d.ts +19 -0
- package/node_modules/@hpke/core/script/src/exporterContext.d.ts.map +1 -0
- package/node_modules/@hpke/core/script/src/exporterContext.js +78 -0
- package/node_modules/@hpke/core/script/src/interfaces/aeadParams.d.ts +17 -0
- package/node_modules/@hpke/core/script/src/interfaces/aeadParams.d.ts.map +1 -0
- package/node_modules/@hpke/core/script/src/interfaces/aeadParams.js +12 -0
- package/node_modules/@hpke/core/script/src/interfaces/cipherSuiteParams.d.ts +13 -0
- package/node_modules/@hpke/core/script/src/interfaces/cipherSuiteParams.d.ts.map +1 -0
- package/node_modules/@hpke/core/script/src/interfaces/cipherSuiteParams.js +12 -0
- package/node_modules/@hpke/core/script/src/interfaces/encapsulator.d.ts +8 -0
- package/node_modules/@hpke/core/script/src/interfaces/encapsulator.d.ts.map +1 -0
- package/node_modules/@hpke/core/script/src/interfaces/encapsulator.js +12 -0
- package/node_modules/@hpke/core/script/src/interfaces/encryptionContext.d.ts +40 -0
- package/node_modules/@hpke/core/script/src/interfaces/encryptionContext.d.ts.map +1 -0
- package/node_modules/@hpke/core/script/src/interfaces/encryptionContext.js +12 -0
- package/node_modules/@hpke/core/script/src/interfaces/exporter.d.ts +17 -0
- package/node_modules/@hpke/core/script/src/interfaces/exporter.d.ts.map +1 -0
- package/node_modules/@hpke/core/script/src/interfaces/exporter.js +12 -0
- package/node_modules/@hpke/core/script/src/interfaces/keyInfo.d.ts +7 -0
- package/node_modules/@hpke/core/script/src/interfaces/keyInfo.d.ts.map +1 -0
- package/node_modules/@hpke/core/script/src/interfaces/keyInfo.js +12 -0
- package/node_modules/@hpke/core/script/src/interfaces/responses.d.ts +10 -0
- package/node_modules/@hpke/core/script/src/interfaces/responses.d.ts.map +1 -0
- package/node_modules/@hpke/core/script/src/interfaces/responses.js +12 -0
- package/node_modules/@hpke/core/script/src/kems/dhkemNative.d.ts +26 -0
- package/node_modules/@hpke/core/script/src/kems/dhkemNative.d.ts.map +1 -0
- package/node_modules/@hpke/core/script/src/kems/dhkemNative.js +128 -0
- package/node_modules/@hpke/core/script/src/kems/dhkemPrimitives/x25519.d.ts +24 -0
- package/node_modules/@hpke/core/script/src/kems/dhkemPrimitives/x25519.d.ts.map +1 -0
- package/node_modules/@hpke/core/script/src/kems/dhkemPrimitives/x25519.js +228 -0
- package/node_modules/@hpke/core/script/src/kems/dhkemPrimitives/x448.d.ts +24 -0
- package/node_modules/@hpke/core/script/src/kems/dhkemPrimitives/x448.d.ts.map +1 -0
- package/node_modules/@hpke/core/script/src/kems/dhkemPrimitives/x448.js +228 -0
- package/node_modules/@hpke/core/script/src/kems/dhkemX25519.d.ts +38 -0
- package/node_modules/@hpke/core/script/src/kems/dhkemX25519.d.ts.map +1 -0
- package/node_modules/@hpke/core/script/src/kems/dhkemX25519.js +80 -0
- package/node_modules/@hpke/core/script/src/kems/dhkemX448.d.ts +38 -0
- package/node_modules/@hpke/core/script/src/kems/dhkemX448.d.ts.map +1 -0
- package/node_modules/@hpke/core/script/src/kems/dhkemX448.js +80 -0
- package/node_modules/@hpke/core/script/src/mutex.d.ts +5 -0
- package/node_modules/@hpke/core/script/src/mutex.d.ts.map +1 -0
- package/node_modules/@hpke/core/script/src/mutex.js +42 -0
- package/node_modules/@hpke/core/script/src/native.d.ts +236 -0
- package/node_modules/@hpke/core/script/src/native.d.ts.map +1 -0
- package/node_modules/@hpke/core/script/src/native.js +255 -0
- package/node_modules/@hpke/core/script/src/recipientContext.d.ts +6 -0
- package/node_modules/@hpke/core/script/src/recipientContext.d.ts.map +1 -0
- package/node_modules/@hpke/core/script/src/recipientContext.js +52 -0
- package/node_modules/@hpke/core/script/src/senderContext.d.ts +11 -0
- package/node_modules/@hpke/core/script/src/senderContext.d.ts.map +1 -0
- package/node_modules/@hpke/core/script/src/senderContext.js +59 -0
- package/node_modules/@hpke/core/script/src/utils/emitNotSupported.d.ts +2 -0
- package/node_modules/@hpke/core/script/src/utils/emitNotSupported.d.ts.map +1 -0
- package/node_modules/@hpke/core/script/src/utils/emitNotSupported.js +19 -0
- package/node_modules/@modelcontextprotocol/sdk/LICENSE +21 -0
- package/node_modules/@modelcontextprotocol/sdk/README.md +172 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth-extensions.d.ts +190 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth-extensions.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth-extensions.js +299 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth-extensions.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth.d.ts +451 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth.js +943 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/auth.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/index.d.ts +591 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/index.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/index.js +629 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/index.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/middleware.d.ts +169 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/middleware.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/middleware.js +252 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/middleware.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/sse.d.ts +81 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/sse.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/sse.js +211 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/sse.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/stdio.d.ts +77 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/stdio.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/stdio.js +196 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/stdio.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/streamableHttp.d.ts +171 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/streamableHttp.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/streamableHttp.js +482 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/streamableHttp.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/websocket.d.ts +17 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/websocket.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/websocket.js +58 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/websocket.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/elicitationUrlExample.d.ts +2 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/elicitationUrlExample.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/elicitationUrlExample.js +680 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/elicitationUrlExample.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/multipleClientsParallel.d.ts +2 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/multipleClientsParallel.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/multipleClientsParallel.js +134 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/multipleClientsParallel.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/parallelToolCallsClient.d.ts +2 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/parallelToolCallsClient.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/parallelToolCallsClient.js +176 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/parallelToolCallsClient.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleClientCredentials.d.ts +20 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleClientCredentials.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleClientCredentials.js +70 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleClientCredentials.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleOAuthClient.d.ts +3 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleOAuthClient.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleOAuthClient.js +397 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleOAuthClient.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleOAuthClientProvider.d.ts +26 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleOAuthClientProvider.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleOAuthClientProvider.js +51 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleOAuthClientProvider.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleStreamableHttp.d.ts +2 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleStreamableHttp.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleStreamableHttp.js +857 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleStreamableHttp.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleTaskInteractiveClient.d.ts +10 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleTaskInteractiveClient.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleTaskInteractiveClient.js +157 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/simpleTaskInteractiveClient.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/ssePollingClient.d.ts +2 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/ssePollingClient.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/ssePollingClient.js +95 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/ssePollingClient.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/streamableHttpWithSseFallbackClient.d.ts +2 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/streamableHttpWithSseFallbackClient.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/streamableHttpWithSseFallbackClient.js +168 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/client/streamableHttpWithSseFallbackClient.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/demoInMemoryOAuthProvider.d.ts +78 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/demoInMemoryOAuthProvider.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/demoInMemoryOAuthProvider.js +205 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/demoInMemoryOAuthProvider.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/elicitationFormExample.d.ts +2 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/elicitationFormExample.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/elicitationFormExample.js +460 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/elicitationFormExample.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/elicitationUrlExample.d.ts +2 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/elicitationUrlExample.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/elicitationUrlExample.js +656 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/elicitationUrlExample.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/honoWebStandardStreamableHttp.d.ts +10 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/honoWebStandardStreamableHttp.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/honoWebStandardStreamableHttp.js +85 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/honoWebStandardStreamableHttp.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/jsonResponseStreamableHttp.d.ts +2 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/jsonResponseStreamableHttp.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/jsonResponseStreamableHttp.js +171 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/jsonResponseStreamableHttp.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/mcpServerOutputSchema.d.ts +7 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/mcpServerOutputSchema.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/mcpServerOutputSchema.js +95 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/mcpServerOutputSchema.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/progressExample.d.ts +12 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/progressExample.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/progressExample.js +49 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/progressExample.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleSseServer.d.ts +2 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleSseServer.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleSseServer.js +168 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleSseServer.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleStatelessStreamableHttp.d.ts +2 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleStatelessStreamableHttp.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleStatelessStreamableHttp.js +166 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleStatelessStreamableHttp.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleStreamableHttp.d.ts +2 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleStreamableHttp.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleStreamableHttp.js +750 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleStreamableHttp.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleTaskInteractive.d.ts +12 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleTaskInteractive.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleTaskInteractive.js +600 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/simpleTaskInteractive.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/sseAndStreamableHttpCompatibleServer.d.ts +2 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/sseAndStreamableHttpCompatibleServer.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/sseAndStreamableHttpCompatibleServer.js +256 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/sseAndStreamableHttpCompatibleServer.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/ssePollingExample.d.ts +2 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/ssePollingExample.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/ssePollingExample.js +107 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/ssePollingExample.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/standaloneSseWithGetStreamableHttp.d.ts +2 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/standaloneSseWithGetStreamableHttp.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/standaloneSseWithGetStreamableHttp.js +124 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/standaloneSseWithGetStreamableHttp.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/toolWithSampleServer.d.ts +2 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/toolWithSampleServer.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/toolWithSampleServer.js +73 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/server/toolWithSampleServer.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/shared/inMemoryEventStore.d.ts +31 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/shared/inMemoryEventStore.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/shared/inMemoryEventStore.js +69 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/examples/shared/inMemoryEventStore.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/index.d.ts +13 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/index.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/index.js +29 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/index.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/client.d.ts +121 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/client.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/client.js +188 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/client.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/helpers.d.ts +47 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/helpers.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/helpers.js +68 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/helpers.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/index.d.ts +16 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/index.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/index.js +39 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/index.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/interfaces.d.ts +232 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/interfaces.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/interfaces.js +19 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/interfaces.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/mcp-server.d.ts +77 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/mcp-server.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/mcp-server.js +36 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/mcp-server.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/server.d.ts +170 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/server.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/server.js +250 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/server.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/stores/in-memory.d.ts +94 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/stores/in-memory.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/stores/in-memory.js +251 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/stores/in-memory.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/types.d.ts +10 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/types.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/types.js +28 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/experimental/tasks/types.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/inMemory.d.ts +31 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/inMemory.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/inMemory.js +51 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/inMemory.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/package.json +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/clients.d.ts +19 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/clients.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/clients.js +3 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/clients.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/errors.d.ts +148 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/errors.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/errors.js +202 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/errors.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/authorize.d.ts +24 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/authorize.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/authorize.js +201 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/authorize.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/metadata.d.ts +4 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/metadata.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/metadata.js +21 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/metadata.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/register.d.ts +29 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/register.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/register.js +77 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/register.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/revoke.d.ts +13 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/revoke.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/revoke.js +65 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/revoke.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/token.d.ts +13 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/token.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/token.js +136 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/handlers/token.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/allowedMethods.d.ts +9 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/allowedMethods.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/allowedMethods.js +21 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/allowedMethods.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/bearerAuth.d.ts +35 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/bearerAuth.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/bearerAuth.js +75 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/bearerAuth.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/clientAuth.d.ts +19 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/clientAuth.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/clientAuth.js +71 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/clientAuth.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/provider.d.ts +68 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/provider.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/provider.js +3 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/provider.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/providers/proxyProvider.d.ts +49 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/providers/proxyProvider.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/providers/proxyProvider.js +159 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/providers/proxyProvider.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/router.d.ts +101 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/router.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/router.js +128 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/router.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/types.d.ts +32 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/types.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/types.js +3 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/types.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/completable.d.ts +38 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/completable.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/completable.js +48 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/completable.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/express.d.ts +45 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/express.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/express.js +56 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/express.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/index.d.ts +196 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/index.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/index.js +444 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/index.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/mcp.d.ts +364 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/mcp.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/mcp.js +922 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/mcp.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/middleware/hostHeaderValidation.d.ts +32 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/middleware/hostHeaderValidation.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/middleware/hostHeaderValidation.js +80 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/middleware/hostHeaderValidation.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/sse.d.ts +82 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/sse.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/sse.js +172 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/sse.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/stdio.d.ts +28 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/stdio.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/stdio.js +82 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/stdio.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/streamableHttp.d.ts +122 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/streamableHttp.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/streamableHttp.js +165 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/streamableHttp.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/webStandardStreamableHttp.d.ts +268 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/webStandardStreamableHttp.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/webStandardStreamableHttp.js +755 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/webStandardStreamableHttp.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-compat.d.ts +84 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-compat.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-compat.js +244 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-compat.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-json-schema-compat.d.ts +12 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-json-schema-compat.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-json-schema-compat.js +79 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-json-schema-compat.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth-utils.d.ts +23 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth-utils.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth-utils.js +48 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth-utils.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth.d.ts +240 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth.js +224 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/auth.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/metadataUtils.d.ts +16 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/metadataUtils.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/metadataUtils.js +25 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/metadataUtils.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/protocol.d.ts +443 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/protocol.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/protocol.js +1112 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/protocol.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/responseMessage.d.ts +45 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/responseMessage.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/responseMessage.js +23 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/responseMessage.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/stdio.d.ts +13 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/stdio.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/stdio.js +37 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/stdio.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/toolNameValidation.d.ts +31 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/toolNameValidation.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/toolNameValidation.js +97 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/toolNameValidation.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/transport.d.ts +89 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/transport.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/transport.js +43 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/transport.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/uriTemplate.d.ts +25 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/uriTemplate.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/uriTemplate.js +243 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/uriTemplate.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/spec.types.d.ts +2311 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/spec.types.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/spec.types.js +27 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/spec.types.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/types.d.ts +8168 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/types.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/types.js +2105 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/types.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/ajv-provider.d.ts +53 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/ajv-provider.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/ajv-provider.js +94 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/ajv-provider.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/cfworker-provider.d.ts +51 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/cfworker-provider.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/cfworker-provider.js +69 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/cfworker-provider.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/index.d.ts +29 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/index.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/index.js +30 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/index.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/types.d.ts +65 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/types.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/types.js +3 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/cjs/validation/types.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth-extensions.d.ts +190 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth-extensions.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth-extensions.js +269 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth-extensions.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth.d.ts +451 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth.js +918 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/auth.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/index.d.ts +591 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/index.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/index.js +624 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/index.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/middleware.d.ts +169 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/middleware.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/middleware.js +245 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/middleware.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/sse.d.ts +81 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/sse.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/sse.js +206 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/sse.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/stdio.d.ts +77 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/stdio.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/stdio.js +188 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/stdio.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/streamableHttp.d.ts +171 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/streamableHttp.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/streamableHttp.js +477 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/streamableHttp.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/websocket.d.ts +17 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/websocket.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/websocket.js +54 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/websocket.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/elicitationUrlExample.d.ts +2 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/elicitationUrlExample.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/elicitationUrlExample.js +678 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/elicitationUrlExample.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/multipleClientsParallel.d.ts +2 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/multipleClientsParallel.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/multipleClientsParallel.js +132 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/multipleClientsParallel.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/parallelToolCallsClient.d.ts +2 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/parallelToolCallsClient.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/parallelToolCallsClient.js +174 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/parallelToolCallsClient.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleClientCredentials.d.ts +20 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleClientCredentials.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleClientCredentials.js +68 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleClientCredentials.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleOAuthClient.d.ts +3 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleOAuthClient.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleOAuthClient.js +395 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleOAuthClient.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleOAuthClientProvider.d.ts +26 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleOAuthClientProvider.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleOAuthClientProvider.js +47 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleOAuthClientProvider.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleStreamableHttp.d.ts +2 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleStreamableHttp.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleStreamableHttp.js +855 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleStreamableHttp.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleTaskInteractiveClient.d.ts +10 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleTaskInteractiveClient.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleTaskInteractiveClient.js +155 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/simpleTaskInteractiveClient.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/ssePollingClient.d.ts +2 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/ssePollingClient.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/ssePollingClient.js +93 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/ssePollingClient.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/streamableHttpWithSseFallbackClient.d.ts +2 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/streamableHttpWithSseFallbackClient.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/streamableHttpWithSseFallbackClient.js +166 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/client/streamableHttpWithSseFallbackClient.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/demoInMemoryOAuthProvider.d.ts +78 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/demoInMemoryOAuthProvider.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/demoInMemoryOAuthProvider.js +196 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/demoInMemoryOAuthProvider.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/elicitationFormExample.d.ts +2 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/elicitationFormExample.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/elicitationFormExample.js +458 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/elicitationFormExample.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/elicitationUrlExample.d.ts +2 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/elicitationUrlExample.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/elicitationUrlExample.js +651 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/elicitationUrlExample.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/honoWebStandardStreamableHttp.d.ts +10 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/honoWebStandardStreamableHttp.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/honoWebStandardStreamableHttp.js +60 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/honoWebStandardStreamableHttp.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/jsonResponseStreamableHttp.d.ts +2 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/jsonResponseStreamableHttp.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/jsonResponseStreamableHttp.js +146 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/jsonResponseStreamableHttp.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/mcpServerOutputSchema.d.ts +7 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/mcpServerOutputSchema.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/mcpServerOutputSchema.js +70 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/mcpServerOutputSchema.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/progressExample.d.ts +12 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/progressExample.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/progressExample.js +47 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/progressExample.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleSseServer.d.ts +2 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleSseServer.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleSseServer.js +143 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleSseServer.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleStatelessStreamableHttp.d.ts +2 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleStatelessStreamableHttp.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleStatelessStreamableHttp.js +141 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleStatelessStreamableHttp.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleStreamableHttp.d.ts +2 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleStreamableHttp.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleStreamableHttp.js +725 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleStreamableHttp.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleTaskInteractive.d.ts +12 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleTaskInteractive.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleTaskInteractive.js +598 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/simpleTaskInteractive.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/sseAndStreamableHttpCompatibleServer.d.ts +2 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/sseAndStreamableHttpCompatibleServer.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/sseAndStreamableHttpCompatibleServer.js +231 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/sseAndStreamableHttpCompatibleServer.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/ssePollingExample.d.ts +2 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/ssePollingExample.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/ssePollingExample.js +102 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/ssePollingExample.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/standaloneSseWithGetStreamableHttp.d.ts +2 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/standaloneSseWithGetStreamableHttp.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/standaloneSseWithGetStreamableHttp.js +122 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/standaloneSseWithGetStreamableHttp.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/toolWithSampleServer.d.ts +2 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/toolWithSampleServer.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/toolWithSampleServer.js +48 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/server/toolWithSampleServer.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/shared/inMemoryEventStore.d.ts +31 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/shared/inMemoryEventStore.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/shared/inMemoryEventStore.js +65 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/examples/shared/inMemoryEventStore.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/index.d.ts +13 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/index.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/index.js +13 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/index.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/client.d.ts +121 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/client.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/client.js +184 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/client.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.d.ts +47 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js +64 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/index.d.ts +16 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/index.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/index.js +20 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/index.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.d.ts +232 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js +16 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.d.ts +77 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.js +32 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.d.ts +170 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js +246 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/stores/in-memory.d.ts +94 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/stores/in-memory.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/stores/in-memory.js +246 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/stores/in-memory.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/types.d.ts +10 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/types.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/types.js +10 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/types.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/inMemory.d.ts +31 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/inMemory.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/inMemory.js +47 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/inMemory.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/package.json +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/clients.d.ts +19 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/clients.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/clients.js +2 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/clients.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/errors.d.ts +148 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/errors.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/errors.js +180 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/errors.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/authorize.d.ts +24 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/authorize.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/authorize.js +171 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/authorize.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/metadata.d.ts +4 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/metadata.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/metadata.js +15 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/metadata.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/register.d.ts +29 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/register.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/register.js +71 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/register.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/revoke.d.ts +13 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/revoke.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/revoke.js +59 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/revoke.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/token.d.ts +13 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/token.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/token.js +107 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/handlers/token.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/allowedMethods.d.ts +9 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/allowedMethods.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/allowedMethods.js +18 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/allowedMethods.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/bearerAuth.d.ts +35 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/bearerAuth.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/bearerAuth.js +72 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/bearerAuth.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/clientAuth.d.ts +19 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/clientAuth.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/clientAuth.js +45 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/middleware/clientAuth.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/provider.d.ts +68 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/provider.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/provider.js +2 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/provider.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/providers/proxyProvider.d.ts +49 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/providers/proxyProvider.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/providers/proxyProvider.js +155 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/providers/proxyProvider.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/router.d.ts +101 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/router.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/router.js +118 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/router.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/types.d.ts +32 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/types.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/types.js +2 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/types.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.d.ts +38 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js +41 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/express.d.ts +45 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/express.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/express.js +50 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/express.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.d.ts +196 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js +440 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.d.ts +364 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js +917 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/middleware/hostHeaderValidation.d.ts +32 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/middleware/hostHeaderValidation.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/middleware/hostHeaderValidation.js +76 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/middleware/hostHeaderValidation.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/sse.d.ts +82 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/sse.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/sse.js +165 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/sse.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.d.ts +28 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js +75 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/streamableHttp.d.ts +122 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/streamableHttp.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/streamableHttp.js +161 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/streamableHttp.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/webStandardStreamableHttp.d.ts +268 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/webStandardStreamableHttp.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/webStandardStreamableHttp.js +751 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/webStandardStreamableHttp.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.d.ts +84 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js +209 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.d.ts +12 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js +51 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth-utils.d.ts +23 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth-utils.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth-utils.js +44 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth-utils.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.d.ts +240 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.js +198 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/metadataUtils.d.ts +16 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/metadataUtils.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/metadataUtils.js +22 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/metadataUtils.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.d.ts +443 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js +1107 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/responseMessage.d.ts +45 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/responseMessage.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/responseMessage.js +19 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/responseMessage.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.d.ts +13 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js +31 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.d.ts +31 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.js +92 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/transport.d.ts +89 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/transport.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/transport.js +39 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/transport.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/uriTemplate.d.ts +25 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/uriTemplate.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/uriTemplate.js +239 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/uriTemplate.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/spec.types.d.ts +2311 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/spec.types.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/spec.types.js +24 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/spec.types.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/types.d.ts +8168 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/types.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js +2065 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.d.ts +53 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js +87 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/cfworker-provider.d.ts +51 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/cfworker-provider.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/cfworker-provider.js +65 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/cfworker-provider.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/index.d.ts +29 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/index.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/index.js +29 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/index.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/types.d.ts +65 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/types.d.ts.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/types.js +2 -0
- package/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/types.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/accepts/HISTORY.md +250 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/accepts/LICENSE +23 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/accepts/README.md +140 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/accepts/index.js +238 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/accepts/package.json +47 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/LICENSE +23 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/README.md +494 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/index.js +71 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/lib/read.js +247 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/lib/types/json.js +158 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/lib/types/raw.js +42 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/lib/types/text.js +36 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/lib/types/urlencoded.js +142 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/lib/utils.js +98 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/package.json +52 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/content-disposition/LICENSE +22 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/content-disposition/README.md +141 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/content-disposition/index.js +536 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/content-disposition/package.json +40 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/cookie-signature/History.md +70 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/cookie-signature/LICENSE +22 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/cookie-signature/Readme.md +23 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/cookie-signature/index.js +47 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/cookie-signature/package.json +24 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/debug/LICENSE +20 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/debug/README.md +481 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/debug/package.json +64 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/debug/src/browser.js +272 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/debug/src/common.js +292 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/debug/src/index.js +10 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/debug/src/node.js +263 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/express/LICENSE +24 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/express/Readme.md +276 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/express/index.js +11 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/express/lib/application.js +631 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/express/lib/express.js +81 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/express/lib/request.js +514 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/express/lib/response.js +1053 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/express/lib/utils.js +271 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/express/lib/view.js +205 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/express/package.json +99 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/finalhandler/HISTORY.md +239 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/finalhandler/LICENSE +22 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/finalhandler/README.md +150 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/finalhandler/index.js +293 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/finalhandler/package.json +47 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/fresh/HISTORY.md +80 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/fresh/LICENSE +23 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/fresh/README.md +117 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/fresh/index.js +136 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/fresh/package.json +46 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/LICENSE +21 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/README.md +138 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/encodings/dbcs-codec.js +532 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/encodings/dbcs-data.js +185 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/encodings/index.js +23 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/encodings/internal.js +218 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/encodings/sbcs-codec.js +75 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/encodings/sbcs-data.js +178 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/encodings/tables/gbk-added.json +56 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/encodings/utf16.js +187 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/encodings/utf32.js +307 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/encodings/utf7.js +283 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/lib/bom-handling.js +48 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/lib/helpers/merge-exports.js +13 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/lib/index.d.ts +129 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/lib/index.js +182 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/lib/streams.js +105 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/package.json +70 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/types/encodings.d.ts +423 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/media-typer/HISTORY.md +50 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/media-typer/LICENSE +22 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/media-typer/README.md +93 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/media-typer/index.js +143 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/media-typer/package.json +33 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/merge-descriptors/index.d.ts +11 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/merge-descriptors/index.js +26 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/merge-descriptors/license +11 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/merge-descriptors/package.json +50 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/merge-descriptors/readme.md +55 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/mime-db/HISTORY.md +541 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/mime-db/LICENSE +23 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/mime-db/README.md +109 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/mime-db/db.json +9342 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/mime-db/index.js +12 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/mime-db/package.json +56 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/mime-types/HISTORY.md +428 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/mime-types/LICENSE +23 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/mime-types/README.md +126 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/mime-types/index.js +211 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/mime-types/mimeScore.js +57 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/mime-types/package.json +49 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/ms/index.js +162 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/ms/license.md +21 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/ms/package.json +38 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/ms/readme.md +59 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/negotiator/HISTORY.md +114 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/negotiator/LICENSE +24 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/negotiator/README.md +212 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/negotiator/index.js +83 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/negotiator/lib/charset.js +169 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/negotiator/lib/encoding.js +205 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/negotiator/lib/language.js +179 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/negotiator/lib/mediaType.js +294 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/negotiator/package.json +43 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/send/LICENSE +23 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/send/README.md +317 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/send/index.js +997 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/send/package.json +63 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/serve-static/LICENSE +25 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/serve-static/README.md +253 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/serve-static/index.js +208 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/serve-static/package.json +44 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/type-is/HISTORY.md +292 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/type-is/LICENSE +23 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/type-is/README.md +198 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/type-is/index.js +240 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/type-is/node_modules/content-type/LICENSE +22 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/type-is/node_modules/content-type/README.md +69 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/type-is/node_modules/content-type/dist/index.d.ts +26 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/type-is/node_modules/content-type/dist/index.js +170 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/type-is/node_modules/content-type/dist/index.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/type-is/node_modules/content-type/package.json +52 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/type-is/package.json +51 -0
- package/node_modules/@modelcontextprotocol/sdk/package.json +164 -0
- package/node_modules/@noble/ed25519/LICENSE +21 -0
- package/node_modules/@noble/ed25519/README.md +327 -0
- package/node_modules/@noble/ed25519/index.d.ts +141 -0
- package/node_modules/@noble/ed25519/index.js +590 -0
- package/node_modules/@noble/ed25519/index.ts +630 -0
- package/node_modules/@noble/ed25519/package.json +57 -0
- package/node_modules/@types/http-proxy/LICENSE +21 -0
- package/node_modules/@types/http-proxy/README.md +15 -0
- package/node_modules/@types/http-proxy/index.d.ts +252 -0
- package/node_modules/@types/http-proxy/package.json +48 -0
- package/node_modules/@types/node/LICENSE +21 -0
- package/node_modules/@types/node/README.md +15 -0
- package/node_modules/@types/node/assert/strict.d.ts +59 -0
- package/node_modules/@types/node/assert.d.ts +950 -0
- package/node_modules/@types/node/async_hooks.d.ts +711 -0
- package/node_modules/@types/node/buffer.buffer.d.ts +466 -0
- package/node_modules/@types/node/buffer.d.ts +1765 -0
- package/node_modules/@types/node/child_process.d.ts +1366 -0
- package/node_modules/@types/node/cluster.d.ts +432 -0
- package/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
- package/node_modules/@types/node/console.d.ts +93 -0
- package/node_modules/@types/node/constants.d.ts +14 -0
- package/node_modules/@types/node/crypto.d.ts +4058 -0
- package/node_modules/@types/node/dgram.d.ts +537 -0
- package/node_modules/@types/node/diagnostics_channel.d.ts +552 -0
- package/node_modules/@types/node/dns/promises.d.ts +497 -0
- package/node_modules/@types/node/dns.d.ts +876 -0
- package/node_modules/@types/node/domain.d.ts +150 -0
- package/node_modules/@types/node/events.d.ts +1008 -0
- package/node_modules/@types/node/fs/promises.d.ts +1468 -0
- package/node_modules/@types/node/fs.d.ts +4780 -0
- package/node_modules/@types/node/globals.d.ts +150 -0
- package/node_modules/@types/node/globals.typedarray.d.ts +101 -0
- package/node_modules/@types/node/http.d.ts +2147 -0
- package/node_modules/@types/node/http2.d.ts +2485 -0
- package/node_modules/@types/node/https.d.ts +400 -0
- package/node_modules/@types/node/index.d.ts +117 -0
- package/node_modules/@types/node/inspector/promises.d.ts +35 -0
- package/node_modules/@types/node/inspector.d.ts +264 -0
- package/node_modules/@types/node/inspector.generated.d.ts +4406 -0
- package/node_modules/@types/node/module.d.ts +755 -0
- package/node_modules/@types/node/net.d.ts +970 -0
- package/node_modules/@types/node/os.d.ts +498 -0
- package/node_modules/@types/node/package.json +155 -0
- package/node_modules/@types/node/path/posix.d.ts +8 -0
- package/node_modules/@types/node/path/win32.d.ts +8 -0
- package/node_modules/@types/node/path.d.ts +178 -0
- package/node_modules/@types/node/perf_hooks.d.ts +612 -0
- package/node_modules/@types/node/process.d.ts +2204 -0
- package/node_modules/@types/node/punycode.d.ts +89 -0
- package/node_modules/@types/node/querystring.d.ts +139 -0
- package/node_modules/@types/node/quic.d.ts +897 -0
- package/node_modules/@types/node/readline/promises.d.ts +158 -0
- package/node_modules/@types/node/readline.d.ts +507 -0
- package/node_modules/@types/node/repl.d.ts +420 -0
- package/node_modules/@types/node/sea.d.ts +47 -0
- package/node_modules/@types/node/sqlite.d.ts +1068 -0
- package/node_modules/@types/node/stream/consumers.d.ts +114 -0
- package/node_modules/@types/node/stream/iter.d.ts +301 -0
- package/node_modules/@types/node/stream/promises.d.ts +211 -0
- package/node_modules/@types/node/stream/web.d.ts +300 -0
- package/node_modules/@types/node/stream.d.ts +1774 -0
- package/node_modules/@types/node/string_decoder.d.ts +27 -0
- package/node_modules/@types/node/test/reporters.d.ts +59 -0
- package/node_modules/@types/node/test.d.ts +2279 -0
- package/node_modules/@types/node/timers/promises.d.ts +93 -0
- package/node_modules/@types/node/timers.d.ts +149 -0
- package/node_modules/@types/node/tls.d.ts +1193 -0
- package/node_modules/@types/node/trace_events.d.ts +103 -0
- package/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +462 -0
- package/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
- package/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +36 -0
- package/node_modules/@types/node/ts5.6/index.d.ts +119 -0
- package/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
- package/node_modules/@types/node/ts5.7/index.d.ts +119 -0
- package/node_modules/@types/node/tty.d.ts +225 -0
- package/node_modules/@types/node/url.d.ts +556 -0
- package/node_modules/@types/node/util/types.d.ts +558 -0
- package/node_modules/@types/node/util.d.ts +1677 -0
- package/node_modules/@types/node/v8.d.ts +980 -0
- package/node_modules/@types/node/vm.d.ts +1136 -0
- package/node_modules/@types/node/wasi.d.ts +131 -0
- package/node_modules/@types/node/web-globals/abortcontroller.d.ts +59 -0
- package/node_modules/@types/node/web-globals/blob.d.ts +23 -0
- package/node_modules/@types/node/web-globals/console.d.ts +9 -0
- package/node_modules/@types/node/web-globals/crypto.d.ts +39 -0
- package/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
- package/node_modules/@types/node/web-globals/encoding.d.ts +11 -0
- package/node_modules/@types/node/web-globals/events.d.ts +106 -0
- package/node_modules/@types/node/web-globals/fetch.d.ts +69 -0
- package/node_modules/@types/node/web-globals/importmeta.d.ts +13 -0
- package/node_modules/@types/node/web-globals/messaging.d.ts +23 -0
- package/node_modules/@types/node/web-globals/navigator.d.ts +25 -0
- package/node_modules/@types/node/web-globals/performance.d.ts +45 -0
- package/node_modules/@types/node/web-globals/storage.d.ts +24 -0
- package/node_modules/@types/node/web-globals/streams.d.ts +115 -0
- package/node_modules/@types/node/web-globals/timers.d.ts +44 -0
- package/node_modules/@types/node/web-globals/url.d.ts +24 -0
- package/node_modules/@types/node/worker_threads.d.ts +671 -0
- package/node_modules/@types/node/zlib/iter.d.ts +131 -0
- package/node_modules/@types/node/zlib.d.ts +589 -0
- package/node_modules/accepts/HISTORY.md +243 -0
- package/node_modules/accepts/LICENSE +23 -0
- package/node_modules/accepts/README.md +140 -0
- package/node_modules/accepts/index.js +238 -0
- package/node_modules/accepts/package.json +47 -0
- package/node_modules/ajv/.runkit_example.js +23 -0
- package/node_modules/ajv/LICENSE +22 -0
- package/node_modules/ajv/README.md +207 -0
- package/node_modules/ajv/dist/2019.d.ts +19 -0
- package/node_modules/ajv/dist/2019.js +61 -0
- package/node_modules/ajv/dist/2019.js.map +1 -0
- package/node_modules/ajv/dist/2020.d.ts +19 -0
- package/node_modules/ajv/dist/2020.js +55 -0
- package/node_modules/ajv/dist/2020.js.map +1 -0
- package/node_modules/ajv/dist/ajv.d.ts +18 -0
- package/node_modules/ajv/dist/ajv.js +50 -0
- package/node_modules/ajv/dist/ajv.js.map +1 -0
- package/node_modules/ajv/dist/compile/codegen/code.d.ts +40 -0
- package/node_modules/ajv/dist/compile/codegen/code.js +156 -0
- package/node_modules/ajv/dist/compile/codegen/code.js.map +1 -0
- package/node_modules/ajv/dist/compile/codegen/index.d.ts +79 -0
- package/node_modules/ajv/dist/compile/codegen/index.js +697 -0
- package/node_modules/ajv/dist/compile/codegen/index.js.map +1 -0
- package/node_modules/ajv/dist/compile/codegen/scope.d.ts +79 -0
- package/node_modules/ajv/dist/compile/codegen/scope.js +143 -0
- package/node_modules/ajv/dist/compile/codegen/scope.js.map +1 -0
- package/node_modules/ajv/dist/compile/errors.d.ts +13 -0
- package/node_modules/ajv/dist/compile/errors.js +123 -0
- package/node_modules/ajv/dist/compile/errors.js.map +1 -0
- package/node_modules/ajv/dist/compile/index.d.ts +80 -0
- package/node_modules/ajv/dist/compile/index.js +242 -0
- package/node_modules/ajv/dist/compile/index.js.map +1 -0
- package/node_modules/ajv/dist/compile/jtd/parse.d.ts +4 -0
- package/node_modules/ajv/dist/compile/jtd/parse.js +350 -0
- package/node_modules/ajv/dist/compile/jtd/parse.js.map +1 -0
- package/node_modules/ajv/dist/compile/jtd/serialize.d.ts +4 -0
- package/node_modules/ajv/dist/compile/jtd/serialize.js +236 -0
- package/node_modules/ajv/dist/compile/jtd/serialize.js.map +1 -0
- package/node_modules/ajv/dist/compile/jtd/types.d.ts +6 -0
- package/node_modules/ajv/dist/compile/jtd/types.js +14 -0
- package/node_modules/ajv/dist/compile/jtd/types.js.map +1 -0
- package/node_modules/ajv/dist/compile/names.d.ts +20 -0
- package/node_modules/ajv/dist/compile/names.js +28 -0
- package/node_modules/ajv/dist/compile/names.js.map +1 -0
- package/node_modules/ajv/dist/compile/ref_error.d.ts +6 -0
- package/node_modules/ajv/dist/compile/ref_error.js +12 -0
- package/node_modules/ajv/dist/compile/ref_error.js.map +1 -0
- package/node_modules/ajv/dist/compile/resolve.d.ts +12 -0
- package/node_modules/ajv/dist/compile/resolve.js +155 -0
- package/node_modules/ajv/dist/compile/resolve.js.map +1 -0
- package/node_modules/ajv/dist/compile/rules.d.ts +28 -0
- package/node_modules/ajv/dist/compile/rules.js +26 -0
- package/node_modules/ajv/dist/compile/rules.js.map +1 -0
- package/node_modules/ajv/dist/compile/util.d.ts +40 -0
- package/node_modules/ajv/dist/compile/util.js +178 -0
- package/node_modules/ajv/dist/compile/util.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/applicability.d.ts +6 -0
- package/node_modules/ajv/dist/compile/validate/applicability.js +19 -0
- package/node_modules/ajv/dist/compile/validate/applicability.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/boolSchema.d.ts +4 -0
- package/node_modules/ajv/dist/compile/validate/boolSchema.js +50 -0
- package/node_modules/ajv/dist/compile/validate/boolSchema.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/dataType.d.ts +17 -0
- package/node_modules/ajv/dist/compile/validate/dataType.js +203 -0
- package/node_modules/ajv/dist/compile/validate/dataType.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/defaults.d.ts +2 -0
- package/node_modules/ajv/dist/compile/validate/defaults.js +35 -0
- package/node_modules/ajv/dist/compile/validate/defaults.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/index.d.ts +42 -0
- package/node_modules/ajv/dist/compile/validate/index.js +520 -0
- package/node_modules/ajv/dist/compile/validate/index.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/keyword.d.ts +8 -0
- package/node_modules/ajv/dist/compile/validate/keyword.js +124 -0
- package/node_modules/ajv/dist/compile/validate/keyword.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/subschema.d.ts +47 -0
- package/node_modules/ajv/dist/compile/validate/subschema.js +81 -0
- package/node_modules/ajv/dist/compile/validate/subschema.js.map +1 -0
- package/node_modules/ajv/dist/core.d.ts +174 -0
- package/node_modules/ajv/dist/core.js +618 -0
- package/node_modules/ajv/dist/core.js.map +1 -0
- package/node_modules/ajv/dist/jtd.d.ts +47 -0
- package/node_modules/ajv/dist/jtd.js +72 -0
- package/node_modules/ajv/dist/jtd.js.map +1 -0
- package/node_modules/ajv/dist/refs/data.json +13 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts +2 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/index.js +28 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/index.js.map +1 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json +53 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json +17 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json +57 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json +14 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json +37 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json +90 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json +39 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts +2 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +30 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/index.js.map +1 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +48 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json +17 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json +51 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +37 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json +90 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json +55 -0
- package/node_modules/ajv/dist/refs/json-schema-draft-06.json +137 -0
- package/node_modules/ajv/dist/refs/json-schema-draft-07.json +151 -0
- package/node_modules/ajv/dist/refs/json-schema-secure.json +88 -0
- package/node_modules/ajv/dist/refs/jtd-schema.d.ts +3 -0
- package/node_modules/ajv/dist/refs/jtd-schema.js +118 -0
- package/node_modules/ajv/dist/refs/jtd-schema.js.map +1 -0
- package/node_modules/ajv/dist/runtime/equal.d.ts +6 -0
- package/node_modules/ajv/dist/runtime/equal.js +7 -0
- package/node_modules/ajv/dist/runtime/equal.js.map +1 -0
- package/node_modules/ajv/dist/runtime/parseJson.d.ts +18 -0
- package/node_modules/ajv/dist/runtime/parseJson.js +185 -0
- package/node_modules/ajv/dist/runtime/parseJson.js.map +1 -0
- package/node_modules/ajv/dist/runtime/quote.d.ts +5 -0
- package/node_modules/ajv/dist/runtime/quote.js +30 -0
- package/node_modules/ajv/dist/runtime/quote.js.map +1 -0
- package/node_modules/ajv/dist/runtime/re2.d.ts +6 -0
- package/node_modules/ajv/dist/runtime/re2.js +6 -0
- package/node_modules/ajv/dist/runtime/re2.js.map +1 -0
- package/node_modules/ajv/dist/runtime/timestamp.d.ts +5 -0
- package/node_modules/ajv/dist/runtime/timestamp.js +42 -0
- package/node_modules/ajv/dist/runtime/timestamp.js.map +1 -0
- package/node_modules/ajv/dist/runtime/ucs2length.d.ts +5 -0
- package/node_modules/ajv/dist/runtime/ucs2length.js +24 -0
- package/node_modules/ajv/dist/runtime/ucs2length.js.map +1 -0
- package/node_modules/ajv/dist/runtime/uri.d.ts +6 -0
- package/node_modules/ajv/dist/runtime/uri.js +6 -0
- package/node_modules/ajv/dist/runtime/uri.js.map +1 -0
- package/node_modules/ajv/dist/runtime/validation_error.d.ts +7 -0
- package/node_modules/ajv/dist/runtime/validation_error.js +11 -0
- package/node_modules/ajv/dist/runtime/validation_error.js.map +1 -0
- package/node_modules/ajv/dist/standalone/index.d.ts +6 -0
- package/node_modules/ajv/dist/standalone/index.js +90 -0
- package/node_modules/ajv/dist/standalone/index.js.map +1 -0
- package/node_modules/ajv/dist/standalone/instance.d.ts +12 -0
- package/node_modules/ajv/dist/standalone/instance.js +35 -0
- package/node_modules/ajv/dist/standalone/instance.js.map +1 -0
- package/node_modules/ajv/dist/types/index.d.ts +183 -0
- package/node_modules/ajv/dist/types/index.js +3 -0
- package/node_modules/ajv/dist/types/index.js.map +1 -0
- package/node_modules/ajv/dist/types/json-schema.d.ts +125 -0
- package/node_modules/ajv/dist/types/json-schema.js +3 -0
- package/node_modules/ajv/dist/types/json-schema.js.map +1 -0
- package/node_modules/ajv/dist/types/jtd-schema.d.ts +174 -0
- package/node_modules/ajv/dist/types/jtd-schema.js +3 -0
- package/node_modules/ajv/dist/types/jtd-schema.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +49 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +106 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/allOf.js +23 -0
- package/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts +4 -0
- package/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +12 -0
- package/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts +7 -0
- package/node_modules/ajv/dist/vocabularies/applicator/contains.js +95 -0
- package/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts +21 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +85 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +11 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/if.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/applicator/if.js +66 -0
- package/node_modules/ajv/dist/vocabularies/applicator/if.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/index.d.ts +13 -0
- package/node_modules/ajv/dist/vocabularies/applicator/index.js +44 -0
- package/node_modules/ajv/dist/vocabularies/applicator/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items.js +52 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items2020.js +30 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/not.d.ts +4 -0
- package/node_modules/ajv/dist/vocabularies/applicator/not.js +26 -0
- package/node_modules/ajv/dist/vocabularies/applicator/not.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +60 -0
- package/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +75 -0
- package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +12 -0
- package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/properties.js +54 -0
- package/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +38 -0
- package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +13 -0
- package/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/code.d.ts +17 -0
- package/node_modules/ajv/dist/vocabularies/code.js +131 -0
- package/node_modules/ajv/dist/vocabularies/code.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/core/id.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/core/id.js +10 -0
- package/node_modules/ajv/dist/vocabularies/core/id.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/core/index.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/core/index.js +16 -0
- package/node_modules/ajv/dist/vocabularies/core/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/core/ref.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/core/ref.js +122 -0
- package/node_modules/ajv/dist/vocabularies/core/ref.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/index.js +104 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts +10 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/types.js +9 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/draft2020.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/draft2020.js +23 -0
- package/node_modules/ajv/dist/vocabularies/draft2020.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/draft7.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/draft7.js +17 -0
- package/node_modules/ajv/dist/vocabularies/draft7.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +30 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +51 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/index.js +9 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +16 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +10 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/errors.d.ts +9 -0
- package/node_modules/ajv/dist/vocabularies/errors.js +3 -0
- package/node_modules/ajv/dist/vocabularies/errors.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/format/format.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/format/format.js +92 -0
- package/node_modules/ajv/dist/vocabularies/format/format.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/format/index.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/format/index.js +6 -0
- package/node_modules/ajv/dist/vocabularies/format/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/jtd/discriminator.js +71 -0
- package/node_modules/ajv/dist/vocabularies/jtd/discriminator.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/jtd/elements.js +24 -0
- package/node_modules/ajv/dist/vocabularies/jtd/elements.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/jtd/enum.js +43 -0
- package/node_modules/ajv/dist/vocabularies/jtd/enum.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/error.d.ts +9 -0
- package/node_modules/ajv/dist/vocabularies/jtd/error.js +20 -0
- package/node_modules/ajv/dist/vocabularies/jtd/error.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/index.d.ts +10 -0
- package/node_modules/ajv/dist/vocabularies/jtd/index.js +29 -0
- package/node_modules/ajv/dist/vocabularies/jtd/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/jtd/metadata.js +25 -0
- package/node_modules/ajv/dist/vocabularies/jtd/metadata.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts +4 -0
- package/node_modules/ajv/dist/vocabularies/jtd/nullable.js +22 -0
- package/node_modules/ajv/dist/vocabularies/jtd/nullable.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js +15 -0
- package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts +22 -0
- package/node_modules/ajv/dist/vocabularies/jtd/properties.js +149 -0
- package/node_modules/ajv/dist/vocabularies/jtd/properties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts +4 -0
- package/node_modules/ajv/dist/vocabularies/jtd/ref.js +67 -0
- package/node_modules/ajv/dist/vocabularies/jtd/ref.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/type.d.ts +10 -0
- package/node_modules/ajv/dist/vocabularies/jtd/type.js +69 -0
- package/node_modules/ajv/dist/vocabularies/jtd/type.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/union.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/jtd/union.js +12 -0
- package/node_modules/ajv/dist/vocabularies/jtd/union.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/values.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/jtd/values.js +51 -0
- package/node_modules/ajv/dist/vocabularies/jtd/values.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/metadata.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/metadata.js +18 -0
- package/node_modules/ajv/dist/vocabularies/metadata.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/next.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/next.js +8 -0
- package/node_modules/ajv/dist/vocabularies/next.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/index.js +7 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +40 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +65 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/const.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/validation/const.js +25 -0
- package/node_modules/ajv/dist/vocabularies/validation/const.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +12 -0
- package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/enum.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/validation/enum.js +48 -0
- package/node_modules/ajv/dist/vocabularies/validation/enum.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/index.d.ts +16 -0
- package/node_modules/ajv/dist/vocabularies/validation/index.js +33 -0
- package/node_modules/ajv/dist/vocabularies/validation/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitContains.js +15 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitContains.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitItems.js +24 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitLength.js +27 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts +11 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +27 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +24 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +26 -0
- package/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/validation/pattern.js +33 -0
- package/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/required.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/validation/required.js +79 -0
- package/node_modules/ajv/dist/vocabularies/validation/required.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts +9 -0
- package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +64 -0
- package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +1 -0
- package/node_modules/ajv/lib/2019.ts +81 -0
- package/node_modules/ajv/lib/2020.ts +75 -0
- package/node_modules/ajv/lib/ajv.ts +70 -0
- package/node_modules/ajv/lib/compile/codegen/code.ts +169 -0
- package/node_modules/ajv/lib/compile/codegen/index.ts +852 -0
- package/node_modules/ajv/lib/compile/codegen/scope.ts +215 -0
- package/node_modules/ajv/lib/compile/errors.ts +184 -0
- package/node_modules/ajv/lib/compile/index.ts +324 -0
- package/node_modules/ajv/lib/compile/jtd/parse.ts +411 -0
- package/node_modules/ajv/lib/compile/jtd/serialize.ts +277 -0
- package/node_modules/ajv/lib/compile/jtd/types.ts +16 -0
- package/node_modules/ajv/lib/compile/names.ts +27 -0
- package/node_modules/ajv/lib/compile/ref_error.ts +13 -0
- package/node_modules/ajv/lib/compile/resolve.ts +149 -0
- package/node_modules/ajv/lib/compile/rules.ts +50 -0
- package/node_modules/ajv/lib/compile/util.ts +213 -0
- package/node_modules/ajv/lib/compile/validate/applicability.ts +22 -0
- package/node_modules/ajv/lib/compile/validate/boolSchema.ts +47 -0
- package/node_modules/ajv/lib/compile/validate/dataType.ts +230 -0
- package/node_modules/ajv/lib/compile/validate/defaults.ts +32 -0
- package/node_modules/ajv/lib/compile/validate/index.ts +582 -0
- package/node_modules/ajv/lib/compile/validate/keyword.ts +171 -0
- package/node_modules/ajv/lib/compile/validate/subschema.ts +135 -0
- package/node_modules/ajv/lib/core.ts +892 -0
- package/node_modules/ajv/lib/jtd.ts +132 -0
- package/node_modules/ajv/lib/refs/data.json +13 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts +28 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json +53 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json +17 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json +57 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json +14 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json +37 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json +90 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json +39 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts +30 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json +48 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json +17 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json +51 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json +37 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json +90 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json +55 -0
- package/node_modules/ajv/lib/refs/json-schema-draft-06.json +137 -0
- package/node_modules/ajv/lib/refs/json-schema-draft-07.json +151 -0
- package/node_modules/ajv/lib/refs/json-schema-secure.json +88 -0
- package/node_modules/ajv/lib/refs/jtd-schema.ts +130 -0
- package/node_modules/ajv/lib/runtime/equal.ts +7 -0
- package/node_modules/ajv/lib/runtime/parseJson.ts +177 -0
- package/node_modules/ajv/lib/runtime/quote.ts +31 -0
- package/node_modules/ajv/lib/runtime/re2.ts +6 -0
- package/node_modules/ajv/lib/runtime/timestamp.ts +46 -0
- package/node_modules/ajv/lib/runtime/ucs2length.ts +20 -0
- package/node_modules/ajv/lib/runtime/uri.ts +6 -0
- package/node_modules/ajv/lib/runtime/validation_error.ts +13 -0
- package/node_modules/ajv/lib/standalone/index.ts +100 -0
- package/node_modules/ajv/lib/standalone/instance.ts +36 -0
- package/node_modules/ajv/lib/types/index.ts +244 -0
- package/node_modules/ajv/lib/types/json-schema.ts +187 -0
- package/node_modules/ajv/lib/types/jtd-schema.ts +273 -0
- package/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts +56 -0
- package/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +118 -0
- package/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +22 -0
- package/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts +14 -0
- package/node_modules/ajv/lib/vocabularies/applicator/contains.ts +109 -0
- package/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts +112 -0
- package/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts +11 -0
- package/node_modules/ajv/lib/vocabularies/applicator/if.ts +80 -0
- package/node_modules/ajv/lib/vocabularies/applicator/index.ts +53 -0
- package/node_modules/ajv/lib/vocabularies/applicator/items.ts +59 -0
- package/node_modules/ajv/lib/vocabularies/applicator/items2020.ts +36 -0
- package/node_modules/ajv/lib/vocabularies/applicator/not.ts +38 -0
- package/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts +82 -0
- package/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts +91 -0
- package/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts +12 -0
- package/node_modules/ajv/lib/vocabularies/applicator/properties.ts +57 -0
- package/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts +50 -0
- package/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts +13 -0
- package/node_modules/ajv/lib/vocabularies/code.ts +168 -0
- package/node_modules/ajv/lib/vocabularies/core/id.ts +10 -0
- package/node_modules/ajv/lib/vocabularies/core/index.ts +16 -0
- package/node_modules/ajv/lib/vocabularies/core/ref.ts +129 -0
- package/node_modules/ajv/lib/vocabularies/discriminator/index.ts +113 -0
- package/node_modules/ajv/lib/vocabularies/discriminator/types.ts +12 -0
- package/node_modules/ajv/lib/vocabularies/draft2020.ts +23 -0
- package/node_modules/ajv/lib/vocabularies/draft7.ts +17 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts +31 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts +51 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/index.ts +9 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts +14 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts +10 -0
- package/node_modules/ajv/lib/vocabularies/errors.ts +18 -0
- package/node_modules/ajv/lib/vocabularies/format/format.ts +120 -0
- package/node_modules/ajv/lib/vocabularies/format/index.ts +6 -0
- package/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts +89 -0
- package/node_modules/ajv/lib/vocabularies/jtd/elements.ts +32 -0
- package/node_modules/ajv/lib/vocabularies/jtd/enum.ts +45 -0
- package/node_modules/ajv/lib/vocabularies/jtd/error.ts +23 -0
- package/node_modules/ajv/lib/vocabularies/jtd/index.ts +37 -0
- package/node_modules/ajv/lib/vocabularies/jtd/metadata.ts +24 -0
- package/node_modules/ajv/lib/vocabularies/jtd/nullable.ts +21 -0
- package/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts +15 -0
- package/node_modules/ajv/lib/vocabularies/jtd/properties.ts +184 -0
- package/node_modules/ajv/lib/vocabularies/jtd/ref.ts +76 -0
- package/node_modules/ajv/lib/vocabularies/jtd/type.ts +75 -0
- package/node_modules/ajv/lib/vocabularies/jtd/union.ts +12 -0
- package/node_modules/ajv/lib/vocabularies/jtd/values.ts +58 -0
- package/node_modules/ajv/lib/vocabularies/metadata.ts +17 -0
- package/node_modules/ajv/lib/vocabularies/next.ts +8 -0
- package/node_modules/ajv/lib/vocabularies/unevaluated/index.ts +7 -0
- package/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts +47 -0
- package/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +85 -0
- package/node_modules/ajv/lib/vocabularies/validation/const.ts +28 -0
- package/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts +23 -0
- package/node_modules/ajv/lib/vocabularies/validation/enum.ts +54 -0
- package/node_modules/ajv/lib/vocabularies/validation/index.ts +49 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitContains.ts +16 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitItems.ts +26 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitLength.ts +30 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts +42 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +26 -0
- package/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts +34 -0
- package/node_modules/ajv/lib/vocabularies/validation/pattern.ts +39 -0
- package/node_modules/ajv/lib/vocabularies/validation/required.ts +98 -0
- package/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts +79 -0
- package/node_modules/ajv/package.json +126 -0
- package/node_modules/ajv-formats/LICENSE +21 -0
- package/node_modules/ajv-formats/README.md +125 -0
- package/node_modules/ajv-formats/dist/formats.d.ts +9 -0
- package/node_modules/ajv-formats/dist/formats.js +208 -0
- package/node_modules/ajv-formats/dist/formats.js.map +1 -0
- package/node_modules/ajv-formats/dist/index.d.ts +15 -0
- package/node_modules/ajv-formats/dist/index.js +37 -0
- package/node_modules/ajv-formats/dist/index.js.map +1 -0
- package/node_modules/ajv-formats/dist/limit.d.ts +10 -0
- package/node_modules/ajv-formats/dist/limit.js +69 -0
- package/node_modules/ajv-formats/dist/limit.js.map +1 -0
- package/node_modules/ajv-formats/package.json +74 -0
- package/node_modules/ajv-formats/src/formats.ts +269 -0
- package/node_modules/ajv-formats/src/index.ts +62 -0
- package/node_modules/ajv-formats/src/limit.ts +99 -0
- package/node_modules/array-flatten/LICENSE +21 -0
- package/node_modules/array-flatten/README.md +43 -0
- package/node_modules/array-flatten/array-flatten.js +64 -0
- package/node_modules/array-flatten/package.json +39 -0
- package/node_modules/body-parser/HISTORY.md +686 -0
- package/node_modules/body-parser/LICENSE +23 -0
- package/node_modules/body-parser/README.md +476 -0
- package/node_modules/body-parser/index.js +156 -0
- package/node_modules/body-parser/lib/read.js +205 -0
- package/node_modules/body-parser/lib/types/json.js +243 -0
- package/node_modules/body-parser/lib/types/raw.js +101 -0
- package/node_modules/body-parser/lib/types/text.js +121 -0
- package/node_modules/body-parser/lib/types/urlencoded.js +299 -0
- package/node_modules/body-parser/node_modules/raw-body/LICENSE +22 -0
- package/node_modules/body-parser/node_modules/raw-body/README.md +223 -0
- package/node_modules/body-parser/node_modules/raw-body/index.d.ts +87 -0
- package/node_modules/body-parser/node_modules/raw-body/index.js +336 -0
- package/node_modules/body-parser/node_modules/raw-body/package.json +47 -0
- package/node_modules/body-parser/package.json +55 -0
- package/node_modules/braces/LICENSE +21 -0
- package/node_modules/braces/README.md +586 -0
- package/node_modules/braces/index.js +170 -0
- package/node_modules/braces/lib/compile.js +60 -0
- package/node_modules/braces/lib/constants.js +57 -0
- package/node_modules/braces/lib/expand.js +113 -0
- package/node_modules/braces/lib/parse.js +331 -0
- package/node_modules/braces/lib/stringify.js +32 -0
- package/node_modules/braces/lib/utils.js +122 -0
- package/node_modules/braces/package.json +77 -0
- package/node_modules/bytes/History.md +97 -0
- package/node_modules/bytes/LICENSE +23 -0
- package/node_modules/bytes/Readme.md +152 -0
- package/node_modules/bytes/index.js +170 -0
- package/node_modules/bytes/package.json +42 -0
- package/node_modules/call-bind-apply-helpers/.eslintrc +17 -0
- package/node_modules/call-bind-apply-helpers/.github/FUNDING.yml +12 -0
- package/node_modules/call-bind-apply-helpers/.nycrc +9 -0
- package/node_modules/call-bind-apply-helpers/CHANGELOG.md +30 -0
- package/node_modules/call-bind-apply-helpers/LICENSE +21 -0
- package/node_modules/call-bind-apply-helpers/README.md +62 -0
- package/node_modules/call-bind-apply-helpers/actualApply.d.ts +1 -0
- package/node_modules/call-bind-apply-helpers/actualApply.js +10 -0
- package/node_modules/call-bind-apply-helpers/applyBind.d.ts +19 -0
- package/node_modules/call-bind-apply-helpers/applyBind.js +10 -0
- package/node_modules/call-bind-apply-helpers/functionApply.d.ts +1 -0
- package/node_modules/call-bind-apply-helpers/functionApply.js +4 -0
- package/node_modules/call-bind-apply-helpers/functionCall.d.ts +1 -0
- package/node_modules/call-bind-apply-helpers/functionCall.js +4 -0
- package/node_modules/call-bind-apply-helpers/index.d.ts +64 -0
- package/node_modules/call-bind-apply-helpers/index.js +15 -0
- package/node_modules/call-bind-apply-helpers/package.json +85 -0
- package/node_modules/call-bind-apply-helpers/reflectApply.d.ts +3 -0
- package/node_modules/call-bind-apply-helpers/reflectApply.js +4 -0
- package/node_modules/call-bind-apply-helpers/test/index.js +63 -0
- package/node_modules/call-bind-apply-helpers/tsconfig.json +9 -0
- package/node_modules/call-bound/.eslintrc +13 -0
- package/node_modules/call-bound/.github/FUNDING.yml +12 -0
- package/node_modules/call-bound/.nycrc +9 -0
- package/node_modules/call-bound/CHANGELOG.md +42 -0
- package/node_modules/call-bound/LICENSE +21 -0
- package/node_modules/call-bound/README.md +53 -0
- package/node_modules/call-bound/index.d.ts +94 -0
- package/node_modules/call-bound/index.js +19 -0
- package/node_modules/call-bound/package.json +99 -0
- package/node_modules/call-bound/test/index.js +61 -0
- package/node_modules/call-bound/tsconfig.json +10 -0
- package/node_modules/content-disposition/HISTORY.md +60 -0
- package/node_modules/content-disposition/LICENSE +22 -0
- package/node_modules/content-disposition/README.md +142 -0
- package/node_modules/content-disposition/index.js +458 -0
- package/node_modules/content-disposition/package.json +44 -0
- package/node_modules/content-type/HISTORY.md +29 -0
- package/node_modules/content-type/LICENSE +22 -0
- package/node_modules/content-type/README.md +94 -0
- package/node_modules/content-type/index.js +225 -0
- package/node_modules/content-type/package.json +42 -0
- package/node_modules/cookie/LICENSE +24 -0
- package/node_modules/cookie/README.md +317 -0
- package/node_modules/cookie/SECURITY.md +25 -0
- package/node_modules/cookie/index.js +335 -0
- package/node_modules/cookie/package.json +44 -0
- package/node_modules/cookie-signature/History.md +42 -0
- package/node_modules/cookie-signature/Readme.md +42 -0
- package/node_modules/cookie-signature/index.js +51 -0
- package/node_modules/cookie-signature/package.json +18 -0
- package/node_modules/cors/LICENSE +22 -0
- package/node_modules/cors/README.md +277 -0
- package/node_modules/cors/lib/index.js +238 -0
- package/node_modules/cors/package.json +42 -0
- package/node_modules/cross-spawn/LICENSE +21 -0
- package/node_modules/cross-spawn/README.md +89 -0
- package/node_modules/cross-spawn/index.js +39 -0
- package/node_modules/cross-spawn/lib/enoent.js +59 -0
- package/node_modules/cross-spawn/lib/parse.js +91 -0
- package/node_modules/cross-spawn/lib/util/escape.js +47 -0
- package/node_modules/cross-spawn/lib/util/readShebang.js +23 -0
- package/node_modules/cross-spawn/lib/util/resolveCommand.js +52 -0
- package/node_modules/cross-spawn/package.json +73 -0
- package/node_modules/debug/.coveralls.yml +1 -0
- package/node_modules/debug/.eslintrc +11 -0
- package/node_modules/debug/.npmignore +9 -0
- package/node_modules/debug/.travis.yml +14 -0
- package/node_modules/debug/CHANGELOG.md +362 -0
- package/node_modules/debug/LICENSE +19 -0
- package/node_modules/debug/Makefile +50 -0
- package/node_modules/debug/README.md +312 -0
- package/node_modules/debug/component.json +19 -0
- package/node_modules/debug/karma.conf.js +70 -0
- package/node_modules/debug/node.js +1 -0
- package/node_modules/debug/package.json +49 -0
- package/node_modules/debug/src/browser.js +185 -0
- package/node_modules/debug/src/debug.js +202 -0
- package/node_modules/debug/src/index.js +10 -0
- package/node_modules/debug/src/inspector-log.js +15 -0
- package/node_modules/debug/src/node.js +248 -0
- package/node_modules/depd/History.md +103 -0
- package/node_modules/depd/LICENSE +22 -0
- package/node_modules/depd/Readme.md +280 -0
- package/node_modules/depd/index.js +538 -0
- package/node_modules/depd/lib/browser/index.js +77 -0
- package/node_modules/depd/package.json +45 -0
- package/node_modules/destroy/LICENSE +23 -0
- package/node_modules/destroy/README.md +63 -0
- package/node_modules/destroy/index.js +209 -0
- package/node_modules/destroy/package.json +48 -0
- package/node_modules/dunder-proto/.eslintrc +5 -0
- package/node_modules/dunder-proto/.github/FUNDING.yml +12 -0
- package/node_modules/dunder-proto/.nycrc +13 -0
- package/node_modules/dunder-proto/CHANGELOG.md +24 -0
- package/node_modules/dunder-proto/LICENSE +21 -0
- package/node_modules/dunder-proto/README.md +54 -0
- package/node_modules/dunder-proto/get.d.ts +5 -0
- package/node_modules/dunder-proto/get.js +30 -0
- package/node_modules/dunder-proto/package.json +76 -0
- package/node_modules/dunder-proto/set.d.ts +5 -0
- package/node_modules/dunder-proto/set.js +35 -0
- package/node_modules/dunder-proto/test/get.js +34 -0
- package/node_modules/dunder-proto/test/index.js +4 -0
- package/node_modules/dunder-proto/test/set.js +50 -0
- package/node_modules/dunder-proto/tsconfig.json +9 -0
- package/node_modules/ee-first/LICENSE +22 -0
- package/node_modules/ee-first/README.md +80 -0
- package/node_modules/ee-first/index.js +95 -0
- package/node_modules/ee-first/package.json +29 -0
- package/node_modules/encodeurl/LICENSE +22 -0
- package/node_modules/encodeurl/README.md +109 -0
- package/node_modules/encodeurl/index.js +60 -0
- package/node_modules/encodeurl/package.json +40 -0
- package/node_modules/es-define-property/.eslintrc +13 -0
- package/node_modules/es-define-property/.github/FUNDING.yml +12 -0
- package/node_modules/es-define-property/.nycrc +9 -0
- package/node_modules/es-define-property/CHANGELOG.md +29 -0
- package/node_modules/es-define-property/LICENSE +21 -0
- package/node_modules/es-define-property/README.md +49 -0
- package/node_modules/es-define-property/index.d.ts +3 -0
- package/node_modules/es-define-property/index.js +14 -0
- package/node_modules/es-define-property/package.json +81 -0
- package/node_modules/es-define-property/test/index.js +56 -0
- package/node_modules/es-define-property/tsconfig.json +10 -0
- package/node_modules/es-errors/.eslintrc +5 -0
- package/node_modules/es-errors/.github/FUNDING.yml +12 -0
- package/node_modules/es-errors/CHANGELOG.md +40 -0
- package/node_modules/es-errors/LICENSE +21 -0
- package/node_modules/es-errors/README.md +55 -0
- package/node_modules/es-errors/eval.d.ts +3 -0
- package/node_modules/es-errors/eval.js +4 -0
- package/node_modules/es-errors/index.d.ts +3 -0
- package/node_modules/es-errors/index.js +4 -0
- package/node_modules/es-errors/package.json +80 -0
- package/node_modules/es-errors/range.d.ts +3 -0
- package/node_modules/es-errors/range.js +4 -0
- package/node_modules/es-errors/ref.d.ts +3 -0
- package/node_modules/es-errors/ref.js +4 -0
- package/node_modules/es-errors/syntax.d.ts +3 -0
- package/node_modules/es-errors/syntax.js +4 -0
- package/node_modules/es-errors/test/index.js +19 -0
- package/node_modules/es-errors/tsconfig.json +49 -0
- package/node_modules/es-errors/type.d.ts +3 -0
- package/node_modules/es-errors/type.js +4 -0
- package/node_modules/es-errors/uri.d.ts +3 -0
- package/node_modules/es-errors/uri.js +4 -0
- package/node_modules/es-object-atoms/.eslintrc +16 -0
- package/node_modules/es-object-atoms/.github/FUNDING.yml +12 -0
- package/node_modules/es-object-atoms/CHANGELOG.md +44 -0
- package/node_modules/es-object-atoms/LICENSE +21 -0
- package/node_modules/es-object-atoms/README.md +63 -0
- package/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +3 -0
- package/node_modules/es-object-atoms/RequireObjectCoercible.js +11 -0
- package/node_modules/es-object-atoms/ToObject.d.ts +7 -0
- package/node_modules/es-object-atoms/ToObject.js +10 -0
- package/node_modules/es-object-atoms/index.d.ts +3 -0
- package/node_modules/es-object-atoms/index.js +4 -0
- package/node_modules/es-object-atoms/isObject.d.ts +3 -0
- package/node_modules/es-object-atoms/isObject.js +6 -0
- package/node_modules/es-object-atoms/package.json +79 -0
- package/node_modules/es-object-atoms/test/index.js +38 -0
- package/node_modules/es-object-atoms/tsconfig.json +7 -0
- package/node_modules/escape-html/LICENSE +24 -0
- package/node_modules/escape-html/Readme.md +43 -0
- package/node_modules/escape-html/index.js +78 -0
- package/node_modules/escape-html/package.json +24 -0
- package/node_modules/etag/HISTORY.md +83 -0
- package/node_modules/etag/LICENSE +22 -0
- package/node_modules/etag/README.md +159 -0
- package/node_modules/etag/index.js +131 -0
- package/node_modules/etag/package.json +47 -0
- package/node_modules/eventemitter3/LICENSE +21 -0
- package/node_modules/eventemitter3/README.md +94 -0
- package/node_modules/eventemitter3/index.d.ts +134 -0
- package/node_modules/eventemitter3/index.js +336 -0
- package/node_modules/eventemitter3/package.json +56 -0
- package/node_modules/eventemitter3/umd/eventemitter3.js +340 -0
- package/node_modules/eventemitter3/umd/eventemitter3.min.js +1 -0
- package/node_modules/eventemitter3/umd/eventemitter3.min.js.map +1 -0
- package/node_modules/eventsource/LICENSE +22 -0
- package/node_modules/eventsource/README.md +167 -0
- package/node_modules/eventsource/dist/index.cjs +273 -0
- package/node_modules/eventsource/dist/index.cjs.map +1 -0
- package/node_modules/eventsource/dist/index.d.cts +332 -0
- package/node_modules/eventsource/dist/index.d.ts +332 -0
- package/node_modules/eventsource/dist/index.js +273 -0
- package/node_modules/eventsource/dist/index.js.map +1 -0
- package/node_modules/eventsource/package.json +130 -0
- package/node_modules/eventsource/src/EventSource.ts +596 -0
- package/node_modules/eventsource/src/errors.ts +141 -0
- package/node_modules/eventsource/src/index.ts +3 -0
- package/node_modules/eventsource/src/types.ts +152 -0
- package/node_modules/eventsource-parser/LICENSE +21 -0
- package/node_modules/eventsource-parser/README.md +126 -0
- package/node_modules/eventsource-parser/dist/index.cjs +166 -0
- package/node_modules/eventsource-parser/dist/index.cjs.map +1 -0
- package/node_modules/eventsource-parser/dist/index.d.cts +146 -0
- package/node_modules/eventsource-parser/dist/index.d.ts +146 -0
- package/node_modules/eventsource-parser/dist/index.js +166 -0
- package/node_modules/eventsource-parser/dist/index.js.map +1 -0
- package/node_modules/eventsource-parser/dist/stream.cjs +28 -0
- package/node_modules/eventsource-parser/dist/stream.cjs.map +1 -0
- package/node_modules/eventsource-parser/dist/stream.d.cts +121 -0
- package/node_modules/eventsource-parser/dist/stream.d.ts +121 -0
- package/node_modules/eventsource-parser/dist/stream.js +29 -0
- package/node_modules/eventsource-parser/dist/stream.js.map +1 -0
- package/node_modules/eventsource-parser/package.json +92 -0
- package/node_modules/eventsource-parser/src/errors.ts +44 -0
- package/node_modules/eventsource-parser/src/index.ts +3 -0
- package/node_modules/eventsource-parser/src/parse.ts +395 -0
- package/node_modules/eventsource-parser/src/stream.ts +88 -0
- package/node_modules/eventsource-parser/src/types.ts +97 -0
- package/node_modules/eventsource-parser/stream.js +2 -0
- package/node_modules/express/History.md +3676 -0
- package/node_modules/express/LICENSE +24 -0
- package/node_modules/express/Readme.md +260 -0
- package/node_modules/express/index.js +11 -0
- package/node_modules/express/lib/application.js +661 -0
- package/node_modules/express/lib/express.js +116 -0
- package/node_modules/express/lib/middleware/init.js +43 -0
- package/node_modules/express/lib/middleware/query.js +47 -0
- package/node_modules/express/lib/request.js +525 -0
- package/node_modules/express/lib/response.js +1179 -0
- package/node_modules/express/lib/router/index.js +673 -0
- package/node_modules/express/lib/router/layer.js +181 -0
- package/node_modules/express/lib/router/route.js +230 -0
- package/node_modules/express/lib/utils.js +304 -0
- package/node_modules/express/lib/view.js +182 -0
- package/node_modules/express/package.json +102 -0
- package/node_modules/express-rate-limit/dist/index.cjs +1016 -0
- package/node_modules/express-rate-limit/dist/index.d.cts +672 -0
- package/node_modules/express-rate-limit/dist/index.d.mts +672 -0
- package/node_modules/express-rate-limit/dist/index.d.ts +672 -0
- package/node_modules/express-rate-limit/dist/index.mjs +986 -0
- package/node_modules/express-rate-limit/license.md +20 -0
- package/node_modules/express-rate-limit/package.json +113 -0
- package/node_modules/express-rate-limit/readme.md +139 -0
- package/node_modules/express-rate-limit/tsconfig.json +8 -0
- package/node_modules/fast-deep-equal/LICENSE +21 -0
- package/node_modules/fast-deep-equal/README.md +96 -0
- package/node_modules/fast-deep-equal/es6/index.d.ts +2 -0
- package/node_modules/fast-deep-equal/es6/index.js +72 -0
- package/node_modules/fast-deep-equal/es6/react.d.ts +2 -0
- package/node_modules/fast-deep-equal/es6/react.js +79 -0
- package/node_modules/fast-deep-equal/index.d.ts +4 -0
- package/node_modules/fast-deep-equal/index.js +46 -0
- package/node_modules/fast-deep-equal/package.json +61 -0
- package/node_modules/fast-deep-equal/react.d.ts +2 -0
- package/node_modules/fast-deep-equal/react.js +53 -0
- package/node_modules/fast-uri/.gitattributes +2 -0
- package/node_modules/fast-uri/.github/dependabot.yml +13 -0
- package/node_modules/fast-uri/.github/workflows/ci.yml +106 -0
- package/node_modules/fast-uri/.github/workflows/lock-threads.yml +19 -0
- package/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +24 -0
- package/node_modules/fast-uri/LICENSE +30 -0
- package/node_modules/fast-uri/README.md +152 -0
- package/node_modules/fast-uri/benchmark/benchmark.mjs +159 -0
- package/node_modules/fast-uri/benchmark/equal.mjs +51 -0
- package/node_modules/fast-uri/benchmark/non-simple-domain.mjs +22 -0
- package/node_modules/fast-uri/benchmark/package.json +17 -0
- package/node_modules/fast-uri/benchmark/string-array-to-hex-stripped.mjs +24 -0
- package/node_modules/fast-uri/benchmark/ws-is-secure.mjs +65 -0
- package/node_modules/fast-uri/eslint.config.js +6 -0
- package/node_modules/fast-uri/index.js +406 -0
- package/node_modules/fast-uri/lib/schemes.js +267 -0
- package/node_modules/fast-uri/lib/utils.js +443 -0
- package/node_modules/fast-uri/package.json +68 -0
- package/node_modules/fast-uri/test/ajv.test.js +43 -0
- package/node_modules/fast-uri/test/equal.test.js +117 -0
- package/node_modules/fast-uri/test/fixtures/uri-js-parse.json +501 -0
- package/node_modules/fast-uri/test/fixtures/uri-js-serialize.json +120 -0
- package/node_modules/fast-uri/test/parse.test.js +323 -0
- package/node_modules/fast-uri/test/resolve.test.js +87 -0
- package/node_modules/fast-uri/test/rfc-3986.test.js +90 -0
- package/node_modules/fast-uri/test/security-normalization.test.js +39 -0
- package/node_modules/fast-uri/test/security.test.js +133 -0
- package/node_modules/fast-uri/test/serialize.test.js +151 -0
- package/node_modules/fast-uri/test/uri-js-compatibility.test.js +33 -0
- package/node_modules/fast-uri/test/uri-js.test.js +912 -0
- package/node_modules/fast-uri/test/util.test.js +38 -0
- package/node_modules/fast-uri/tsconfig.json +9 -0
- package/node_modules/fast-uri/types/index.d.ts +60 -0
- package/node_modules/fast-uri/types/index.test-d.ts +17 -0
- package/node_modules/fill-range/LICENSE +21 -0
- package/node_modules/fill-range/README.md +237 -0
- package/node_modules/fill-range/index.js +248 -0
- package/node_modules/fill-range/package.json +74 -0
- package/node_modules/finalhandler/HISTORY.md +216 -0
- package/node_modules/finalhandler/LICENSE +22 -0
- package/node_modules/finalhandler/README.md +147 -0
- package/node_modules/finalhandler/SECURITY.md +25 -0
- package/node_modules/finalhandler/index.js +341 -0
- package/node_modules/finalhandler/package.json +47 -0
- package/node_modules/follow-redirects/LICENSE +18 -0
- package/node_modules/follow-redirects/README.md +157 -0
- package/node_modules/follow-redirects/debug.js +15 -0
- package/node_modules/follow-redirects/http.js +1 -0
- package/node_modules/follow-redirects/https.js +1 -0
- package/node_modules/follow-redirects/index.js +709 -0
- package/node_modules/follow-redirects/package.json +58 -0
- package/node_modules/forwarded/HISTORY.md +21 -0
- package/node_modules/forwarded/LICENSE +22 -0
- package/node_modules/forwarded/README.md +57 -0
- package/node_modules/forwarded/index.js +90 -0
- package/node_modules/forwarded/package.json +45 -0
- package/node_modules/fresh/HISTORY.md +70 -0
- package/node_modules/fresh/LICENSE +23 -0
- package/node_modules/fresh/README.md +119 -0
- package/node_modules/fresh/index.js +137 -0
- package/node_modules/fresh/package.json +46 -0
- package/node_modules/function-bind/.eslintrc +21 -0
- package/node_modules/function-bind/.github/FUNDING.yml +12 -0
- package/node_modules/function-bind/.github/SECURITY.md +3 -0
- package/node_modules/function-bind/.nycrc +13 -0
- package/node_modules/function-bind/CHANGELOG.md +136 -0
- package/node_modules/function-bind/LICENSE +20 -0
- package/node_modules/function-bind/README.md +46 -0
- package/node_modules/function-bind/implementation.js +84 -0
- package/node_modules/function-bind/index.js +5 -0
- package/node_modules/function-bind/package.json +87 -0
- package/node_modules/function-bind/test/.eslintrc +9 -0
- package/node_modules/function-bind/test/index.js +252 -0
- package/node_modules/get-intrinsic/.eslintrc +42 -0
- package/node_modules/get-intrinsic/.github/FUNDING.yml +12 -0
- package/node_modules/get-intrinsic/.nycrc +9 -0
- package/node_modules/get-intrinsic/CHANGELOG.md +186 -0
- package/node_modules/get-intrinsic/LICENSE +21 -0
- package/node_modules/get-intrinsic/README.md +71 -0
- package/node_modules/get-intrinsic/index.js +378 -0
- package/node_modules/get-intrinsic/package.json +97 -0
- package/node_modules/get-intrinsic/test/GetIntrinsic.js +274 -0
- package/node_modules/get-proto/.eslintrc +10 -0
- package/node_modules/get-proto/.github/FUNDING.yml +12 -0
- package/node_modules/get-proto/.nycrc +9 -0
- package/node_modules/get-proto/CHANGELOG.md +21 -0
- package/node_modules/get-proto/LICENSE +21 -0
- package/node_modules/get-proto/Object.getPrototypeOf.d.ts +5 -0
- package/node_modules/get-proto/Object.getPrototypeOf.js +6 -0
- package/node_modules/get-proto/README.md +50 -0
- package/node_modules/get-proto/Reflect.getPrototypeOf.d.ts +3 -0
- package/node_modules/get-proto/Reflect.getPrototypeOf.js +4 -0
- package/node_modules/get-proto/index.d.ts +5 -0
- package/node_modules/get-proto/index.js +27 -0
- package/node_modules/get-proto/package.json +81 -0
- package/node_modules/get-proto/test/index.js +68 -0
- package/node_modules/get-proto/tsconfig.json +9 -0
- package/node_modules/gopd/.eslintrc +16 -0
- package/node_modules/gopd/.github/FUNDING.yml +12 -0
- package/node_modules/gopd/CHANGELOG.md +45 -0
- package/node_modules/gopd/LICENSE +21 -0
- package/node_modules/gopd/README.md +40 -0
- package/node_modules/gopd/gOPD.d.ts +1 -0
- package/node_modules/gopd/gOPD.js +4 -0
- package/node_modules/gopd/index.d.ts +5 -0
- package/node_modules/gopd/index.js +15 -0
- package/node_modules/gopd/package.json +77 -0
- package/node_modules/gopd/test/index.js +36 -0
- package/node_modules/gopd/tsconfig.json +9 -0
- package/node_modules/has-symbols/.eslintrc +11 -0
- package/node_modules/has-symbols/.github/FUNDING.yml +12 -0
- package/node_modules/has-symbols/.nycrc +9 -0
- package/node_modules/has-symbols/CHANGELOG.md +91 -0
- package/node_modules/has-symbols/LICENSE +21 -0
- package/node_modules/has-symbols/README.md +46 -0
- package/node_modules/has-symbols/index.d.ts +3 -0
- package/node_modules/has-symbols/index.js +14 -0
- package/node_modules/has-symbols/package.json +111 -0
- package/node_modules/has-symbols/shams.d.ts +3 -0
- package/node_modules/has-symbols/shams.js +45 -0
- package/node_modules/has-symbols/test/index.js +22 -0
- package/node_modules/has-symbols/test/shams/core-js.js +29 -0
- package/node_modules/has-symbols/test/shams/get-own-property-symbols.js +29 -0
- package/node_modules/has-symbols/test/tests.js +58 -0
- package/node_modules/has-symbols/tsconfig.json +10 -0
- package/node_modules/hasown/.github/FUNDING.yml +12 -0
- package/node_modules/hasown/.nycrc +13 -0
- package/node_modules/hasown/CHANGELOG.md +51 -0
- package/node_modules/hasown/LICENSE +21 -0
- package/node_modules/hasown/README.md +40 -0
- package/node_modules/hasown/eslint.config.mjs +6 -0
- package/node_modules/hasown/index.d.ts +4 -0
- package/node_modules/hasown/index.js +8 -0
- package/node_modules/hasown/package.json +92 -0
- package/node_modules/hasown/tsconfig.json +6 -0
- package/node_modules/hono/LICENSE +21 -0
- package/node_modules/hono/README.md +85 -0
- package/node_modules/hono/dist/adapter/aws-lambda/conninfo.js +24 -0
- package/node_modules/hono/dist/adapter/aws-lambda/handler.js +373 -0
- package/node_modules/hono/dist/adapter/aws-lambda/index.js +9 -0
- package/node_modules/hono/dist/adapter/aws-lambda/types.js +0 -0
- package/node_modules/hono/dist/adapter/bun/conninfo.js +27 -0
- package/node_modules/hono/dist/adapter/bun/index.js +16 -0
- package/node_modules/hono/dist/adapter/bun/serve-static.js +30 -0
- package/node_modules/hono/dist/adapter/bun/server.js +5 -0
- package/node_modules/hono/dist/adapter/bun/ssg.js +17 -0
- package/node_modules/hono/dist/adapter/bun/websocket.js +71 -0
- package/node_modules/hono/dist/adapter/cloudflare-pages/conninfo.js +9 -0
- package/node_modules/hono/dist/adapter/cloudflare-pages/handler.js +67 -0
- package/node_modules/hono/dist/adapter/cloudflare-pages/index.js +9 -0
- package/node_modules/hono/dist/adapter/cloudflare-workers/conninfo.js +9 -0
- package/node_modules/hono/dist/adapter/cloudflare-workers/index.js +9 -0
- package/node_modules/hono/dist/adapter/cloudflare-workers/serve-static-module.js +8 -0
- package/node_modules/hono/dist/adapter/cloudflare-workers/serve-static.js +22 -0
- package/node_modules/hono/dist/adapter/cloudflare-workers/utils.js +35 -0
- package/node_modules/hono/dist/adapter/cloudflare-workers/websocket.js +41 -0
- package/node_modules/hono/dist/adapter/deno/conninfo.js +14 -0
- package/node_modules/hono/dist/adapter/deno/deno.d.js +0 -0
- package/node_modules/hono/dist/adapter/deno/index.js +12 -0
- package/node_modules/hono/dist/adapter/deno/serve-static.js +40 -0
- package/node_modules/hono/dist/adapter/deno/ssg.js +18 -0
- package/node_modules/hono/dist/adapter/deno/websocket.js +32 -0
- package/node_modules/hono/dist/adapter/lambda-edge/conninfo.js +9 -0
- package/node_modules/hono/dist/adapter/lambda-edge/handler.js +80 -0
- package/node_modules/hono/dist/adapter/lambda-edge/index.js +7 -0
- package/node_modules/hono/dist/adapter/netlify/conninfo.js +9 -0
- package/node_modules/hono/dist/adapter/netlify/handler.js +9 -0
- package/node_modules/hono/dist/adapter/netlify/index.js +2 -0
- package/node_modules/hono/dist/adapter/netlify/mod.js +7 -0
- package/node_modules/hono/dist/adapter/service-worker/handler.js +20 -0
- package/node_modules/hono/dist/adapter/service-worker/index.js +9 -0
- package/node_modules/hono/dist/adapter/service-worker/types.js +0 -0
- package/node_modules/hono/dist/adapter/vercel/conninfo.js +10 -0
- package/node_modules/hono/dist/adapter/vercel/handler.js +7 -0
- package/node_modules/hono/dist/adapter/vercel/index.js +7 -0
- package/node_modules/hono/dist/cjs/adapter/aws-lambda/conninfo.js +46 -0
- package/node_modules/hono/dist/cjs/adapter/aws-lambda/handler.js +404 -0
- package/node_modules/hono/dist/cjs/adapter/aws-lambda/index.js +34 -0
- package/node_modules/hono/dist/cjs/adapter/aws-lambda/types.js +15 -0
- package/node_modules/hono/dist/cjs/adapter/bun/conninfo.js +49 -0
- package/node_modules/hono/dist/cjs/adapter/bun/index.js +45 -0
- package/node_modules/hono/dist/cjs/adapter/bun/serve-static.js +52 -0
- package/node_modules/hono/dist/cjs/adapter/bun/server.js +27 -0
- package/node_modules/hono/dist/cjs/adapter/bun/ssg.js +40 -0
- package/node_modules/hono/dist/cjs/adapter/bun/websocket.js +96 -0
- package/node_modules/hono/dist/cjs/adapter/cloudflare-pages/conninfo.js +31 -0
- package/node_modules/hono/dist/cjs/adapter/cloudflare-pages/handler.js +91 -0
- package/node_modules/hono/dist/cjs/adapter/cloudflare-pages/index.js +34 -0
- package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/conninfo.js +31 -0
- package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/index.js +33 -0
- package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/serve-static-module.js +30 -0
- package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/serve-static.js +44 -0
- package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/utils.js +57 -0
- package/node_modules/hono/dist/cjs/adapter/cloudflare-workers/websocket.js +63 -0
- package/node_modules/hono/dist/cjs/adapter/deno/conninfo.js +36 -0
- package/node_modules/hono/dist/cjs/adapter/deno/deno.d.js +0 -0
- package/node_modules/hono/dist/cjs/adapter/deno/index.js +38 -0
- package/node_modules/hono/dist/cjs/adapter/deno/serve-static.js +62 -0
- package/node_modules/hono/dist/cjs/adapter/deno/ssg.js +41 -0
- package/node_modules/hono/dist/cjs/adapter/deno/websocket.js +54 -0
- package/node_modules/hono/dist/cjs/adapter/lambda-edge/conninfo.js +31 -0
- package/node_modules/hono/dist/cjs/adapter/lambda-edge/handler.js +114 -0
- package/node_modules/hono/dist/cjs/adapter/lambda-edge/index.js +30 -0
- package/node_modules/hono/dist/cjs/adapter/netlify/conninfo.js +31 -0
- package/node_modules/hono/dist/cjs/adapter/netlify/handler.js +31 -0
- package/node_modules/hono/dist/cjs/adapter/netlify/index.js +21 -0
- package/node_modules/hono/dist/cjs/adapter/netlify/mod.js +30 -0
- package/node_modules/hono/dist/cjs/adapter/service-worker/handler.js +42 -0
- package/node_modules/hono/dist/cjs/adapter/service-worker/index.js +32 -0
- package/node_modules/hono/dist/cjs/adapter/service-worker/types.js +15 -0
- package/node_modules/hono/dist/cjs/adapter/vercel/conninfo.js +32 -0
- package/node_modules/hono/dist/cjs/adapter/vercel/handler.js +29 -0
- package/node_modules/hono/dist/cjs/adapter/vercel/index.js +30 -0
- package/node_modules/hono/dist/cjs/client/client.js +195 -0
- package/node_modules/hono/dist/cjs/client/fetch-result-please.js +85 -0
- package/node_modules/hono/dist/cjs/client/index.js +32 -0
- package/node_modules/hono/dist/cjs/client/types.js +15 -0
- package/node_modules/hono/dist/cjs/client/utils.js +105 -0
- package/node_modules/hono/dist/cjs/compose.js +68 -0
- package/node_modules/hono/dist/cjs/context.js +435 -0
- package/node_modules/hono/dist/cjs/helper/accepts/accepts.js +43 -0
- package/node_modules/hono/dist/cjs/helper/accepts/index.js +27 -0
- package/node_modules/hono/dist/cjs/helper/adapter/index.js +81 -0
- package/node_modules/hono/dist/cjs/helper/conninfo/index.js +15 -0
- package/node_modules/hono/dist/cjs/helper/conninfo/types.js +15 -0
- package/node_modules/hono/dist/cjs/helper/cookie/index.js +130 -0
- package/node_modules/hono/dist/cjs/helper/css/common.js +271 -0
- package/node_modules/hono/dist/cjs/helper/css/index.js +149 -0
- package/node_modules/hono/dist/cjs/helper/dev/index.js +79 -0
- package/node_modules/hono/dist/cjs/helper/factory/index.js +54 -0
- package/node_modules/hono/dist/cjs/helper/html/index.js +64 -0
- package/node_modules/hono/dist/cjs/helper/proxy/index.js +111 -0
- package/node_modules/hono/dist/cjs/helper/route/index.js +71 -0
- package/node_modules/hono/dist/cjs/helper/ssg/index.js +43 -0
- package/node_modules/hono/dist/cjs/helper/ssg/middleware.js +73 -0
- package/node_modules/hono/dist/cjs/helper/ssg/plugins.js +70 -0
- package/node_modules/hono/dist/cjs/helper/ssg/ssg.js +320 -0
- package/node_modules/hono/dist/cjs/helper/ssg/utils.js +93 -0
- package/node_modules/hono/dist/cjs/helper/streaming/index.js +35 -0
- package/node_modules/hono/dist/cjs/helper/streaming/sse.js +90 -0
- package/node_modules/hono/dist/cjs/helper/streaming/stream.js +56 -0
- package/node_modules/hono/dist/cjs/helper/streaming/text.js +34 -0
- package/node_modules/hono/dist/cjs/helper/streaming/utils.js +35 -0
- package/node_modules/hono/dist/cjs/helper/testing/index.js +33 -0
- package/node_modules/hono/dist/cjs/helper/websocket/index.js +81 -0
- package/node_modules/hono/dist/cjs/hono-base.js +405 -0
- package/node_modules/hono/dist/cjs/hono.js +43 -0
- package/node_modules/hono/dist/cjs/http-exception.js +57 -0
- package/node_modules/hono/dist/cjs/index.js +27 -0
- package/node_modules/hono/dist/cjs/jsx/base.js +380 -0
- package/node_modules/hono/dist/cjs/jsx/children.js +44 -0
- package/node_modules/hono/dist/cjs/jsx/components.js +201 -0
- package/node_modules/hono/dist/cjs/jsx/constants.js +42 -0
- package/node_modules/hono/dist/cjs/jsx/context.js +62 -0
- package/node_modules/hono/dist/cjs/jsx/dom/client.js +76 -0
- package/node_modules/hono/dist/cjs/jsx/dom/components.js +55 -0
- package/node_modules/hono/dist/cjs/jsx/dom/context.js +71 -0
- package/node_modules/hono/dist/cjs/jsx/dom/css.js +168 -0
- package/node_modules/hono/dist/cjs/jsx/dom/hooks/index.js +74 -0
- package/node_modules/hono/dist/cjs/jsx/dom/index.js +181 -0
- package/node_modules/hono/dist/cjs/jsx/dom/intrinsic-element/components.js +399 -0
- package/node_modules/hono/dist/cjs/jsx/dom/jsx-dev-runtime.js +52 -0
- package/node_modules/hono/dist/cjs/jsx/dom/jsx-runtime.js +32 -0
- package/node_modules/hono/dist/cjs/jsx/dom/render.js +641 -0
- package/node_modules/hono/dist/cjs/jsx/dom/server.js +67 -0
- package/node_modules/hono/dist/cjs/jsx/dom/utils.js +32 -0
- package/node_modules/hono/dist/cjs/jsx/hooks/index.js +370 -0
- package/node_modules/hono/dist/cjs/jsx/index.js +138 -0
- package/node_modules/hono/dist/cjs/jsx/intrinsic-element/common.js +50 -0
- package/node_modules/hono/dist/cjs/jsx/intrinsic-element/components.js +189 -0
- package/node_modules/hono/dist/cjs/jsx/intrinsic-elements.js +15 -0
- package/node_modules/hono/dist/cjs/jsx/jsx-dev-runtime.js +41 -0
- package/node_modules/hono/dist/cjs/jsx/jsx-runtime.js +71 -0
- package/node_modules/hono/dist/cjs/jsx/streaming.js +177 -0
- package/node_modules/hono/dist/cjs/jsx/types.js +15 -0
- package/node_modules/hono/dist/cjs/jsx/utils.js +200 -0
- package/node_modules/hono/dist/cjs/middleware/basic-auth/index.js +88 -0
- package/node_modules/hono/dist/cjs/middleware/bearer-auth/index.js +114 -0
- package/node_modules/hono/dist/cjs/middleware/body-limit/index.js +75 -0
- package/node_modules/hono/dist/cjs/middleware/cache/index.js +124 -0
- package/node_modules/hono/dist/cjs/middleware/combine/index.js +101 -0
- package/node_modules/hono/dist/cjs/middleware/compress/index.js +85 -0
- package/node_modules/hono/dist/cjs/middleware/context-storage/index.js +47 -0
- package/node_modules/hono/dist/cjs/middleware/cors/index.js +109 -0
- package/node_modules/hono/dist/cjs/middleware/csrf/index.js +77 -0
- package/node_modules/hono/dist/cjs/middleware/etag/digest.js +55 -0
- package/node_modules/hono/dist/cjs/middleware/etag/index.js +95 -0
- package/node_modules/hono/dist/cjs/middleware/ip-restriction/index.js +176 -0
- package/node_modules/hono/dist/cjs/middleware/jsx-renderer/index.js +82 -0
- package/node_modules/hono/dist/cjs/middleware/jwk/index.js +27 -0
- package/node_modules/hono/dist/cjs/middleware/jwk/jwk.js +134 -0
- package/node_modules/hono/dist/cjs/middleware/jwt/index.js +38 -0
- package/node_modules/hono/dist/cjs/middleware/jwt/jwt.js +140 -0
- package/node_modules/hono/dist/cjs/middleware/language/index.js +35 -0
- package/node_modules/hono/dist/cjs/middleware/language/language.js +221 -0
- package/node_modules/hono/dist/cjs/middleware/logger/index.js +72 -0
- package/node_modules/hono/dist/cjs/middleware/method-override/index.js +104 -0
- package/node_modules/hono/dist/cjs/middleware/powered-by/index.js +32 -0
- package/node_modules/hono/dist/cjs/middleware/pretty-json/index.js +37 -0
- package/node_modules/hono/dist/cjs/middleware/request-id/index.js +27 -0
- package/node_modules/hono/dist/cjs/middleware/request-id/request-id.js +43 -0
- package/node_modules/hono/dist/cjs/middleware/secure-headers/index.js +29 -0
- package/node_modules/hono/dist/cjs/middleware/secure-headers/permissions-policy.js +15 -0
- package/node_modules/hono/dist/cjs/middleware/secure-headers/secure-headers.js +189 -0
- package/node_modules/hono/dist/cjs/middleware/serve-static/index.js +99 -0
- package/node_modules/hono/dist/cjs/middleware/serve-static/path.js +40 -0
- package/node_modules/hono/dist/cjs/middleware/timeout/index.js +47 -0
- package/node_modules/hono/dist/cjs/middleware/timing/index.js +35 -0
- package/node_modules/hono/dist/cjs/middleware/timing/timing.js +128 -0
- package/node_modules/hono/dist/cjs/middleware/trailing-slash/index.js +62 -0
- package/node_modules/hono/dist/cjs/package.json +3 -0
- package/node_modules/hono/dist/cjs/preset/quick.js +38 -0
- package/node_modules/hono/dist/cjs/preset/tiny.js +34 -0
- package/node_modules/hono/dist/cjs/request/constants.js +27 -0
- package/node_modules/hono/dist/cjs/request.js +339 -0
- package/node_modules/hono/dist/cjs/router/linear-router/index.js +27 -0
- package/node_modules/hono/dist/cjs/router/linear-router/router.js +140 -0
- package/node_modules/hono/dist/cjs/router/pattern-router/index.js +27 -0
- package/node_modules/hono/dist/cjs/router/pattern-router/router.js +70 -0
- package/node_modules/hono/dist/cjs/router/reg-exp-router/index.js +34 -0
- package/node_modules/hono/dist/cjs/router/reg-exp-router/matcher.js +48 -0
- package/node_modules/hono/dist/cjs/router/reg-exp-router/node.js +134 -0
- package/node_modules/hono/dist/cjs/router/reg-exp-router/prepared-router.js +166 -0
- package/node_modules/hono/dist/cjs/router/reg-exp-router/router.js +208 -0
- package/node_modules/hono/dist/cjs/router/reg-exp-router/trie.js +81 -0
- package/node_modules/hono/dist/cjs/router/smart-router/index.js +27 -0
- package/node_modules/hono/dist/cjs/router/smart-router/router.js +80 -0
- package/node_modules/hono/dist/cjs/router/trie-router/index.js +27 -0
- package/node_modules/hono/dist/cjs/router/trie-router/node.js +201 -0
- package/node_modules/hono/dist/cjs/router/trie-router/router.js +48 -0
- package/node_modules/hono/dist/cjs/router.js +40 -0
- package/node_modules/hono/dist/cjs/types.js +28 -0
- package/node_modules/hono/dist/cjs/utils/accept.js +245 -0
- package/node_modules/hono/dist/cjs/utils/basic-auth.js +45 -0
- package/node_modules/hono/dist/cjs/utils/body.js +97 -0
- package/node_modules/hono/dist/cjs/utils/buffer.js +102 -0
- package/node_modules/hono/dist/cjs/utils/color.js +48 -0
- package/node_modules/hono/dist/cjs/utils/compress.js +27 -0
- package/node_modules/hono/dist/cjs/utils/concurrent.js +61 -0
- package/node_modules/hono/dist/cjs/utils/constants.js +27 -0
- package/node_modules/hono/dist/cjs/utils/cookie.js +198 -0
- package/node_modules/hono/dist/cjs/utils/crypto.js +69 -0
- package/node_modules/hono/dist/cjs/utils/encode.js +54 -0
- package/node_modules/hono/dist/cjs/utils/filepath.js +58 -0
- package/node_modules/hono/dist/cjs/utils/handler.js +36 -0
- package/node_modules/hono/dist/cjs/utils/headers.js +15 -0
- package/node_modules/hono/dist/cjs/utils/html.js +150 -0
- package/node_modules/hono/dist/cjs/utils/http-status.js +15 -0
- package/node_modules/hono/dist/cjs/utils/ipaddr.js +313 -0
- package/node_modules/hono/dist/cjs/utils/jwt/index.js +28 -0
- package/node_modules/hono/dist/cjs/utils/jwt/jwa.js +42 -0
- package/node_modules/hono/dist/cjs/utils/jwt/jws.js +215 -0
- package/node_modules/hono/dist/cjs/utils/jwt/jwt.js +219 -0
- package/node_modules/hono/dist/cjs/utils/jwt/types.js +161 -0
- package/node_modules/hono/dist/cjs/utils/jwt/utf8.js +30 -0
- package/node_modules/hono/dist/cjs/utils/mime.js +106 -0
- package/node_modules/hono/dist/cjs/utils/stream.js +103 -0
- package/node_modules/hono/dist/cjs/utils/types.js +15 -0
- package/node_modules/hono/dist/cjs/utils/url.js +256 -0
- package/node_modules/hono/dist/cjs/validator/index.js +27 -0
- package/node_modules/hono/dist/cjs/validator/utils.js +15 -0
- package/node_modules/hono/dist/cjs/validator/validator.js +108 -0
- package/node_modules/hono/dist/client/client.js +180 -0
- package/node_modules/hono/dist/client/fetch-result-please.js +62 -0
- package/node_modules/hono/dist/client/index.js +8 -0
- package/node_modules/hono/dist/client/types.js +0 -0
- package/node_modules/hono/dist/client/utils.js +76 -0
- package/node_modules/hono/dist/compose.js +46 -0
- package/node_modules/hono/dist/context.js +412 -0
- package/node_modules/hono/dist/helper/accepts/accepts.js +20 -0
- package/node_modules/hono/dist/helper/accepts/index.js +5 -0
- package/node_modules/hono/dist/helper/adapter/index.js +56 -0
- package/node_modules/hono/dist/helper/conninfo/index.js +0 -0
- package/node_modules/hono/dist/helper/conninfo/types.js +0 -0
- package/node_modules/hono/dist/helper/cookie/index.js +102 -0
- package/node_modules/hono/dist/helper/css/common.js +234 -0
- package/node_modules/hono/dist/helper/css/index.js +132 -0
- package/node_modules/hono/dist/helper/dev/index.js +55 -0
- package/node_modules/hono/dist/helper/factory/index.js +30 -0
- package/node_modules/hono/dist/helper/html/index.js +41 -0
- package/node_modules/hono/dist/helper/proxy/index.js +89 -0
- package/node_modules/hono/dist/helper/route/index.js +46 -0
- package/node_modules/hono/dist/helper/ssg/index.js +19 -0
- package/node_modules/hono/dist/helper/ssg/middleware.js +45 -0
- package/node_modules/hono/dist/helper/ssg/plugins.js +47 -0
- package/node_modules/hono/dist/helper/ssg/ssg.js +297 -0
- package/node_modules/hono/dist/helper/ssg/utils.js +67 -0
- package/node_modules/hono/dist/helper/streaming/index.js +10 -0
- package/node_modules/hono/dist/helper/streaming/sse.js +67 -0
- package/node_modules/hono/dist/helper/streaming/stream.js +34 -0
- package/node_modules/hono/dist/helper/streaming/text.js +12 -0
- package/node_modules/hono/dist/helper/streaming/utils.js +13 -0
- package/node_modules/hono/dist/helper/testing/index.js +11 -0
- package/node_modules/hono/dist/helper/websocket/index.js +57 -0
- package/node_modules/hono/dist/hono-base.js +383 -0
- package/node_modules/hono/dist/hono.js +21 -0
- package/node_modules/hono/dist/http-exception.js +35 -0
- package/node_modules/hono/dist/index.js +5 -0
- package/node_modules/hono/dist/jsx/base.js +342 -0
- package/node_modules/hono/dist/jsx/children.js +21 -0
- package/node_modules/hono/dist/jsx/components.js +178 -0
- package/node_modules/hono/dist/jsx/constants.js +15 -0
- package/node_modules/hono/dist/jsx/context.js +38 -0
- package/node_modules/hono/dist/jsx/dom/client.js +53 -0
- package/node_modules/hono/dist/jsx/dom/components.js +32 -0
- package/node_modules/hono/dist/jsx/dom/context.js +48 -0
- package/node_modules/hono/dist/jsx/dom/css.js +150 -0
- package/node_modules/hono/dist/jsx/dom/hooks/index.js +48 -0
- package/node_modules/hono/dist/jsx/dom/index.js +142 -0
- package/node_modules/hono/dist/jsx/dom/intrinsic-element/components.js +374 -0
- package/node_modules/hono/dist/jsx/dom/jsx-dev-runtime.js +19 -0
- package/node_modules/hono/dist/jsx/dom/jsx-runtime.js +8 -0
- package/node_modules/hono/dist/jsx/dom/render.js +617 -0
- package/node_modules/hono/dist/jsx/dom/server.js +33 -0
- package/node_modules/hono/dist/jsx/dom/utils.js +10 -0
- package/node_modules/hono/dist/jsx/hooks/index.js +328 -0
- package/node_modules/hono/dist/jsx/index.js +103 -0
- package/node_modules/hono/dist/jsx/intrinsic-element/common.js +24 -0
- package/node_modules/hono/dist/jsx/intrinsic-element/components.js +165 -0
- package/node_modules/hono/dist/jsx/intrinsic-elements.js +0 -0
- package/node_modules/hono/dist/jsx/jsx-dev-runtime.js +18 -0
- package/node_modules/hono/dist/jsx/jsx-runtime.js +44 -0
- package/node_modules/hono/dist/jsx/streaming.js +153 -0
- package/node_modules/hono/dist/jsx/types.js +0 -0
- package/node_modules/hono/dist/jsx/utils.js +175 -0
- package/node_modules/hono/dist/middleware/basic-auth/index.js +66 -0
- package/node_modules/hono/dist/middleware/bearer-auth/index.js +92 -0
- package/node_modules/hono/dist/middleware/body-limit/index.js +53 -0
- package/node_modules/hono/dist/middleware/cache/index.js +102 -0
- package/node_modules/hono/dist/middleware/combine/index.js +77 -0
- package/node_modules/hono/dist/middleware/compress/index.js +63 -0
- package/node_modules/hono/dist/middleware/context-storage/index.js +23 -0
- package/node_modules/hono/dist/middleware/cors/index.js +87 -0
- package/node_modules/hono/dist/middleware/csrf/index.js +55 -0
- package/node_modules/hono/dist/middleware/etag/digest.js +33 -0
- package/node_modules/hono/dist/middleware/etag/index.js +72 -0
- package/node_modules/hono/dist/middleware/ip-restriction/index.js +162 -0
- package/node_modules/hono/dist/middleware/jsx-renderer/index.js +58 -0
- package/node_modules/hono/dist/middleware/jwk/index.js +5 -0
- package/node_modules/hono/dist/middleware/jwk/jwk.js +112 -0
- package/node_modules/hono/dist/middleware/jwt/index.js +11 -0
- package/node_modules/hono/dist/middleware/jwt/jwt.js +114 -0
- package/node_modules/hono/dist/middleware/language/index.js +15 -0
- package/node_modules/hono/dist/middleware/language/language.js +190 -0
- package/node_modules/hono/dist/middleware/logger/index.js +44 -0
- package/node_modules/hono/dist/middleware/method-override/index.js +82 -0
- package/node_modules/hono/dist/middleware/powered-by/index.js +10 -0
- package/node_modules/hono/dist/middleware/pretty-json/index.js +15 -0
- package/node_modules/hono/dist/middleware/request-id/index.js +5 -0
- package/node_modules/hono/dist/middleware/request-id/request-id.js +21 -0
- package/node_modules/hono/dist/middleware/secure-headers/index.js +6 -0
- package/node_modules/hono/dist/middleware/secure-headers/permissions-policy.js +0 -0
- package/node_modules/hono/dist/middleware/secure-headers/secure-headers.js +166 -0
- package/node_modules/hono/dist/middleware/serve-static/index.js +77 -0
- package/node_modules/hono/dist/middleware/serve-static/path.js +18 -0
- package/node_modules/hono/dist/middleware/timeout/index.js +25 -0
- package/node_modules/hono/dist/middleware/timing/index.js +9 -0
- package/node_modules/hono/dist/middleware/timing/timing.js +102 -0
- package/node_modules/hono/dist/middleware/trailing-slash/index.js +39 -0
- package/node_modules/hono/dist/preset/quick.js +16 -0
- package/node_modules/hono/dist/preset/tiny.js +12 -0
- package/node_modules/hono/dist/request/constants.js +5 -0
- package/node_modules/hono/dist/request.js +316 -0
- package/node_modules/hono/dist/router/linear-router/index.js +5 -0
- package/node_modules/hono/dist/router/linear-router/router.js +118 -0
- package/node_modules/hono/dist/router/pattern-router/index.js +5 -0
- package/node_modules/hono/dist/router/pattern-router/router.js +48 -0
- package/node_modules/hono/dist/router/reg-exp-router/index.js +9 -0
- package/node_modules/hono/dist/router/reg-exp-router/matcher.js +25 -0
- package/node_modules/hono/dist/router/reg-exp-router/node.js +111 -0
- package/node_modules/hono/dist/router/reg-exp-router/prepared-router.js +142 -0
- package/node_modules/hono/dist/router/reg-exp-router/router.js +190 -0
- package/node_modules/hono/dist/router/reg-exp-router/trie.js +59 -0
- package/node_modules/hono/dist/router/smart-router/index.js +5 -0
- package/node_modules/hono/dist/router/smart-router/router.js +58 -0
- package/node_modules/hono/dist/router/trie-router/index.js +5 -0
- package/node_modules/hono/dist/router/trie-router/node.js +179 -0
- package/node_modules/hono/dist/router/trie-router/router.js +26 -0
- package/node_modules/hono/dist/router.js +14 -0
- package/node_modules/hono/dist/tsconfig.build.tsbuildinfo +1 -0
- package/node_modules/hono/dist/types/adapter/aws-lambda/conninfo.d.ts +27 -0
- package/node_modules/hono/dist/types/adapter/aws-lambda/handler.d.ts +184 -0
- package/node_modules/hono/dist/types/adapter/aws-lambda/index.d.ts +8 -0
- package/node_modules/hono/dist/types/adapter/aws-lambda/types.d.ts +144 -0
- package/node_modules/hono/dist/types/adapter/bun/conninfo.d.ts +7 -0
- package/node_modules/hono/dist/types/adapter/bun/index.d.ts +10 -0
- package/node_modules/hono/dist/types/adapter/bun/serve-static.d.ts +3 -0
- package/node_modules/hono/dist/types/adapter/bun/server.d.ts +12 -0
- package/node_modules/hono/dist/types/adapter/bun/ssg.d.ts +13 -0
- package/node_modules/hono/dist/types/adapter/bun/websocket.d.ts +39 -0
- package/node_modules/hono/dist/types/adapter/cloudflare-pages/conninfo.d.ts +21 -0
- package/node_modules/hono/dist/types/adapter/cloudflare-pages/handler.d.ts +33 -0
- package/node_modules/hono/dist/types/adapter/cloudflare-pages/index.d.ts +7 -0
- package/node_modules/hono/dist/types/adapter/cloudflare-workers/conninfo.d.ts +2 -0
- package/node_modules/hono/dist/types/adapter/cloudflare-workers/index.d.ts +7 -0
- package/node_modules/hono/dist/types/adapter/cloudflare-workers/serve-static-module.d.ts +4 -0
- package/node_modules/hono/dist/types/adapter/cloudflare-workers/serve-static.d.ts +16 -0
- package/node_modules/hono/dist/types/adapter/cloudflare-workers/utils.d.ts +5 -0
- package/node_modules/hono/dist/types/adapter/cloudflare-workers/websocket.d.ts +2 -0
- package/node_modules/hono/dist/types/adapter/deno/conninfo.d.ts +7 -0
- package/node_modules/hono/dist/types/adapter/deno/index.d.ts +8 -0
- package/node_modules/hono/dist/types/adapter/deno/serve-static.d.ts +3 -0
- package/node_modules/hono/dist/types/adapter/deno/ssg.d.ts +13 -0
- package/node_modules/hono/dist/types/adapter/deno/websocket.d.ts +2 -0
- package/node_modules/hono/dist/types/adapter/lambda-edge/conninfo.d.ts +2 -0
- package/node_modules/hono/dist/types/adapter/lambda-edge/handler.d.ts +87 -0
- package/node_modules/hono/dist/types/adapter/lambda-edge/index.d.ts +7 -0
- package/node_modules/hono/dist/types/adapter/netlify/conninfo.d.ts +21 -0
- package/node_modules/hono/dist/types/adapter/netlify/handler.d.ts +2 -0
- package/node_modules/hono/dist/types/adapter/netlify/index.d.ts +5 -0
- package/node_modules/hono/dist/types/adapter/netlify/mod.d.ts +2 -0
- package/node_modules/hono/dist/types/adapter/service-worker/handler.d.ts +16 -0
- package/node_modules/hono/dist/types/adapter/service-worker/index.d.ts +28 -0
- package/node_modules/hono/dist/types/adapter/service-worker/types.d.ts +12 -0
- package/node_modules/hono/dist/types/adapter/vercel/conninfo.d.ts +2 -0
- package/node_modules/hono/dist/types/adapter/vercel/handler.d.ts +2 -0
- package/node_modules/hono/dist/types/adapter/vercel/index.d.ts +6 -0
- package/node_modules/hono/dist/types/client/client.d.ts +4 -0
- package/node_modules/hono/dist/types/client/fetch-result-please.d.ts +35 -0
- package/node_modules/hono/dist/types/client/index.d.ts +7 -0
- package/node_modules/hono/dist/types/client/types.d.ts +229 -0
- package/node_modules/hono/dist/types/client/utils.d.ts +18 -0
- package/node_modules/hono/dist/types/compose.d.ts +14 -0
- package/node_modules/hono/dist/types/context.d.ts +455 -0
- package/node_modules/hono/dist/types/helper/accepts/accepts.d.ts +30 -0
- package/node_modules/hono/dist/types/helper/accepts/index.d.ts +5 -0
- package/node_modules/hono/dist/types/helper/adapter/index.d.ts +12 -0
- package/node_modules/hono/dist/types/helper/conninfo/index.d.ts +5 -0
- package/node_modules/hono/dist/types/helper/conninfo/types.d.ts +36 -0
- package/node_modules/hono/dist/types/helper/cookie/index.d.ts +24 -0
- package/node_modules/hono/dist/types/helper/css/common.d.ts +59 -0
- package/node_modules/hono/dist/types/helper/css/index.d.ts +80 -0
- package/node_modules/hono/dist/types/helper/dev/index.d.ts +20 -0
- package/node_modules/hono/dist/types/helper/factory/index.d.ts +82 -0
- package/node_modules/hono/dist/types/helper/html/index.d.ts +8 -0
- package/node_modules/hono/dist/types/helper/proxy/index.d.ts +72 -0
- package/node_modules/hono/dist/types/helper/route/index.d.ts +75 -0
- package/node_modules/hono/dist/types/helper/ssg/index.d.ts +7 -0
- package/node_modules/hono/dist/types/helper/ssg/middleware.d.ts +44 -0
- package/node_modules/hono/dist/types/helper/ssg/plugins.d.ts +27 -0
- package/node_modules/hono/dist/types/helper/ssg/ssg.d.ts +91 -0
- package/node_modules/hono/dist/types/helper/ssg/utils.d.ts +16 -0
- package/node_modules/hono/dist/types/helper/streaming/index.d.ts +8 -0
- package/node_modules/hono/dist/types/helper/streaming/sse.d.ts +13 -0
- package/node_modules/hono/dist/types/helper/streaming/stream.d.ts +3 -0
- package/node_modules/hono/dist/types/helper/streaming/text.d.ts +3 -0
- package/node_modules/hono/dist/types/helper/streaming/utils.d.ts +1 -0
- package/node_modules/hono/dist/types/helper/testing/index.d.ts +12 -0
- package/node_modules/hono/dist/types/helper/websocket/index.d.ts +69 -0
- package/node_modules/hono/dist/types/hono-base.d.ts +220 -0
- package/node_modules/hono/dist/types/hono.d.ts +19 -0
- package/node_modules/hono/dist/types/http-exception.d.ts +59 -0
- package/node_modules/hono/dist/types/index.d.ts +36 -0
- package/node_modules/hono/dist/types/jsx/base.d.ts +58 -0
- package/node_modules/hono/dist/types/jsx/children.d.ts +9 -0
- package/node_modules/hono/dist/types/jsx/components.d.ts +15 -0
- package/node_modules/hono/dist/types/jsx/constants.d.ts +6 -0
- package/node_modules/hono/dist/types/jsx/context.d.ts +12 -0
- package/node_modules/hono/dist/types/jsx/dom/client.d.ts +31 -0
- package/node_modules/hono/dist/types/jsx/dom/components.d.ts +10 -0
- package/node_modules/hono/dist/types/jsx/dom/context.d.ts +3 -0
- package/node_modules/hono/dist/types/jsx/dom/css.d.ts +83 -0
- package/node_modules/hono/dist/types/jsx/dom/hooks/index.d.ts +39 -0
- package/node_modules/hono/dist/types/jsx/dom/index.d.ts +88 -0
- package/node_modules/hono/dist/types/jsx/dom/intrinsic-element/components.d.ts +16 -0
- package/node_modules/hono/dist/types/jsx/dom/jsx-dev-runtime.d.ts +8 -0
- package/node_modules/hono/dist/types/jsx/dom/jsx-runtime.d.ts +7 -0
- package/node_modules/hono/dist/types/jsx/dom/render.d.ts +73 -0
- package/node_modules/hono/dist/types/jsx/dom/server.d.ts +106 -0
- package/node_modules/hono/dist/types/jsx/dom/utils.d.ts +1 -0
- package/node_modules/hono/dist/types/jsx/hooks/index.d.ts +45 -0
- package/node_modules/hono/dist/types/jsx/index.d.ts +75 -0
- package/node_modules/hono/dist/types/jsx/intrinsic-element/common.d.ts +6 -0
- package/node_modules/hono/dist/types/jsx/intrinsic-element/components.d.ts +13 -0
- package/node_modules/hono/dist/types/jsx/intrinsic-elements.d.ts +722 -0
- package/node_modules/hono/dist/types/jsx/jsx-dev-runtime.d.ts +8 -0
- package/node_modules/hono/dist/types/jsx/jsx-runtime.d.ts +12 -0
- package/node_modules/hono/dist/types/jsx/streaming.d.ts +36 -0
- package/node_modules/hono/dist/types/jsx/types.d.ts +35 -0
- package/node_modules/hono/dist/types/jsx/utils.d.ts +4 -0
- package/node_modules/hono/dist/types/middleware/basic-auth/index.d.ts +75 -0
- package/node_modules/hono/dist/types/middleware/bearer-auth/index.d.ts +92 -0
- package/node_modules/hono/dist/types/middleware/body-limit/index.d.ts +45 -0
- package/node_modules/hono/dist/types/middleware/cache/index.d.ts +43 -0
- package/node_modules/hono/dist/types/middleware/combine/index.d.ts +85 -0
- package/node_modules/hono/dist/types/middleware/compress/index.d.ts +30 -0
- package/node_modules/hono/dist/types/middleware/context-storage/index.d.ts +40 -0
- package/node_modules/hono/dist/types/middleware/cors/index.d.ts +55 -0
- package/node_modules/hono/dist/types/middleware/csrf/index.d.ts +78 -0
- package/node_modules/hono/dist/types/middleware/etag/digest.d.ts +1 -0
- package/node_modules/hono/dist/types/middleware/etag/index.d.ts +42 -0
- package/node_modules/hono/dist/types/middleware/ip-restriction/index.d.ts +67 -0
- package/node_modules/hono/dist/types/middleware/jsx-renderer/index.d.ts +77 -0
- package/node_modules/hono/dist/types/middleware/jwk/index.d.ts +1 -0
- package/node_modules/hono/dist/types/middleware/jwk/jwk.d.ts +54 -0
- package/node_modules/hono/dist/types/middleware/jwt/index.d.ts +8 -0
- package/node_modules/hono/dist/types/middleware/jwt/jwt.d.ts +67 -0
- package/node_modules/hono/dist/types/middleware/language/index.d.ts +7 -0
- package/node_modules/hono/dist/types/middleware/language/language.d.ts +102 -0
- package/node_modules/hono/dist/types/middleware/logger/index.d.ts +24 -0
- package/node_modules/hono/dist/types/middleware/method-override/index.d.ts +48 -0
- package/node_modules/hono/dist/types/middleware/powered-by/index.d.ts +29 -0
- package/node_modules/hono/dist/types/middleware/pretty-json/index.d.ts +42 -0
- package/node_modules/hono/dist/types/middleware/request-id/index.d.ts +7 -0
- package/node_modules/hono/dist/types/middleware/request-id/request-id.d.ts +37 -0
- package/node_modules/hono/dist/types/middleware/secure-headers/index.d.ts +8 -0
- package/node_modules/hono/dist/types/middleware/secure-headers/permissions-policy.d.ts +14 -0
- package/node_modules/hono/dist/types/middleware/secure-headers/secure-headers.d.ts +109 -0
- package/node_modules/hono/dist/types/middleware/serve-static/index.d.ts +31 -0
- package/node_modules/hono/dist/types/middleware/serve-static/path.d.ts +5 -0
- package/node_modules/hono/dist/types/middleware/timeout/index.d.ts +31 -0
- package/node_modules/hono/dist/types/middleware/timing/index.d.ts +7 -0
- package/node_modules/hono/dist/types/middleware/timing/timing.d.ts +129 -0
- package/node_modules/hono/dist/types/middleware/trailing-slash/index.d.ts +94 -0
- package/node_modules/hono/dist/types/package.json +3 -0
- package/node_modules/hono/dist/types/preset/quick.d.ts +10 -0
- package/node_modules/hono/dist/types/preset/tiny.d.ts +10 -0
- package/node_modules/hono/dist/types/request/constants.d.ts +1 -0
- package/node_modules/hono/dist/types/request.d.ts +324 -0
- package/node_modules/hono/dist/types/router/linear-router/index.d.ts +5 -0
- package/node_modules/hono/dist/types/router/linear-router/router.d.ts +7 -0
- package/node_modules/hono/dist/types/router/pattern-router/index.d.ts +5 -0
- package/node_modules/hono/dist/types/router/pattern-router/router.d.ts +7 -0
- package/node_modules/hono/dist/types/router/reg-exp-router/index.d.ts +6 -0
- package/node_modules/hono/dist/types/router/reg-exp-router/matcher.d.ts +7 -0
- package/node_modules/hono/dist/types/router/reg-exp-router/node.d.ts +10 -0
- package/node_modules/hono/dist/types/router/reg-exp-router/prepared-router.d.ts +17 -0
- package/node_modules/hono/dist/types/router/reg-exp-router/router.d.ts +11 -0
- package/node_modules/hono/dist/types/router/reg-exp-router/trie.d.ts +7 -0
- package/node_modules/hono/dist/types/router/smart-router/index.d.ts +5 -0
- package/node_modules/hono/dist/types/router/smart-router/router.d.ts +11 -0
- package/node_modules/hono/dist/types/router/trie-router/index.d.ts +5 -0
- package/node_modules/hono/dist/types/router/trie-router/node.d.ts +7 -0
- package/node_modules/hono/dist/types/router/trie-router/router.d.ts +8 -0
- package/node_modules/hono/dist/types/router.d.ts +97 -0
- package/node_modules/hono/dist/types/types.d.ts +573 -0
- package/node_modules/hono/dist/types/utils/accept.d.ts +6 -0
- package/node_modules/hono/dist/types/utils/basic-auth.d.ts +5 -0
- package/node_modules/hono/dist/types/utils/body.d.ts +79 -0
- package/node_modules/hono/dist/types/utils/buffer.d.ts +17 -0
- package/node_modules/hono/dist/types/utils/color.d.ts +21 -0
- package/node_modules/hono/dist/types/utils/compress.d.ts +8 -0
- package/node_modules/hono/dist/types/utils/concurrent.d.ts +11 -0
- package/node_modules/hono/dist/types/utils/constants.d.ts +4 -0
- package/node_modules/hono/dist/types/utils/cookie.d.ts +40 -0
- package/node_modules/hono/dist/types/utils/crypto.d.ts +15 -0
- package/node_modules/hono/dist/types/utils/encode.d.ts +8 -0
- package/node_modules/hono/dist/types/utils/filepath.d.ts +12 -0
- package/node_modules/hono/dist/types/utils/handler.d.ts +6 -0
- package/node_modules/hono/dist/types/utils/headers.d.ts +8 -0
- package/node_modules/hono/dist/types/utils/html.d.ts +44 -0
- package/node_modules/hono/dist/types/utils/http-status.d.ts +32 -0
- package/node_modules/hono/dist/types/utils/ipaddr.d.ts +56 -0
- package/node_modules/hono/dist/types/utils/jwt/index.d.ts +18 -0
- package/node_modules/hono/dist/types/utils/jwt/jwa.d.ts +23 -0
- package/node_modules/hono/dist/types/utils/jwt/jws.d.ts +12 -0
- package/node_modules/hono/dist/types/utils/jwt/jwt.d.ts +43 -0
- package/node_modules/hono/dist/types/utils/jwt/types.d.ts +86 -0
- package/node_modules/hono/dist/types/utils/jwt/utf8.d.ts +6 -0
- package/node_modules/hono/dist/types/utils/mime.d.ts +70 -0
- package/node_modules/hono/dist/types/utils/stream.d.ts +31 -0
- package/node_modules/hono/dist/types/utils/types.d.ts +74 -0
- package/node_modules/hono/dist/types/utils/url.d.ts +39 -0
- package/node_modules/hono/dist/types/validator/index.d.ts +7 -0
- package/node_modules/hono/dist/types/validator/utils.d.ts +29 -0
- package/node_modules/hono/dist/types/validator/validator.d.ts +16 -0
- package/node_modules/hono/dist/types.js +6 -0
- package/node_modules/hono/dist/utils/accept.js +223 -0
- package/node_modules/hono/dist/utils/basic-auth.js +23 -0
- package/node_modules/hono/dist/utils/body.js +75 -0
- package/node_modules/hono/dist/utils/buffer.js +77 -0
- package/node_modules/hono/dist/utils/color.js +25 -0
- package/node_modules/hono/dist/utils/compress.js +5 -0
- package/node_modules/hono/dist/utils/concurrent.js +39 -0
- package/node_modules/hono/dist/utils/constants.js +5 -0
- package/node_modules/hono/dist/utils/cookie.js +173 -0
- package/node_modules/hono/dist/utils/crypto.js +44 -0
- package/node_modules/hono/dist/utils/encode.js +29 -0
- package/node_modules/hono/dist/utils/filepath.js +35 -0
- package/node_modules/hono/dist/utils/handler.js +13 -0
- package/node_modules/hono/dist/utils/headers.js +0 -0
- package/node_modules/hono/dist/utils/html.js +123 -0
- package/node_modules/hono/dist/utils/http-status.js +0 -0
- package/node_modules/hono/dist/utils/ipaddr.js +283 -0
- package/node_modules/hono/dist/utils/jwt/index.js +6 -0
- package/node_modules/hono/dist/utils/jwt/jwa.js +20 -0
- package/node_modules/hono/dist/utils/jwt/jws.js +192 -0
- package/node_modules/hono/dist/utils/jwt/jwt.js +207 -0
- package/node_modules/hono/dist/utils/jwt/types.js +124 -0
- package/node_modules/hono/dist/utils/jwt/utf8.js +7 -0
- package/node_modules/hono/dist/utils/mime.js +82 -0
- package/node_modules/hono/dist/utils/stream.js +81 -0
- package/node_modules/hono/dist/utils/types.js +0 -0
- package/node_modules/hono/dist/utils/url.js +222 -0
- package/node_modules/hono/dist/validator/index.js +5 -0
- package/node_modules/hono/dist/validator/utils.js +0 -0
- package/node_modules/hono/dist/validator/validator.js +86 -0
- package/node_modules/hono/package.json +692 -0
- package/node_modules/http-errors/HISTORY.md +186 -0
- package/node_modules/http-errors/LICENSE +23 -0
- package/node_modules/http-errors/README.md +169 -0
- package/node_modules/http-errors/index.js +290 -0
- package/node_modules/http-errors/package.json +54 -0
- package/node_modules/http-proxy/.auto-changelog +6 -0
- package/node_modules/http-proxy/.gitattributes +1 -0
- package/node_modules/http-proxy/CHANGELOG.md +1872 -0
- package/node_modules/http-proxy/CODE_OF_CONDUCT.md +74 -0
- package/node_modules/http-proxy/LICENSE +23 -0
- package/node_modules/http-proxy/README.md +568 -0
- package/node_modules/http-proxy/codecov.yml +10 -0
- package/node_modules/http-proxy/index.js +13 -0
- package/node_modules/http-proxy/lib/http-proxy/common.js +248 -0
- package/node_modules/http-proxy/lib/http-proxy/index.js +185 -0
- package/node_modules/http-proxy/lib/http-proxy/passes/web-incoming.js +194 -0
- package/node_modules/http-proxy/lib/http-proxy/passes/web-outgoing.js +147 -0
- package/node_modules/http-proxy/lib/http-proxy/passes/ws-incoming.js +162 -0
- package/node_modules/http-proxy/lib/http-proxy.js +66 -0
- package/node_modules/http-proxy/package.json +41 -0
- package/node_modules/http-proxy/renovate.json +19 -0
- package/node_modules/http-proxy-middleware/LICENSE +22 -0
- package/node_modules/http-proxy-middleware/README.md +647 -0
- package/node_modules/http-proxy-middleware/dist/configuration.d.ts +2 -0
- package/node_modules/http-proxy-middleware/dist/configuration.js +9 -0
- package/node_modules/http-proxy-middleware/dist/debug.d.ts +5 -0
- package/node_modules/http-proxy-middleware/dist/debug.js +8 -0
- package/node_modules/http-proxy-middleware/dist/errors.d.ts +6 -0
- package/node_modules/http-proxy-middleware/dist/errors.js +10 -0
- package/node_modules/http-proxy-middleware/dist/factory.d.ts +3 -0
- package/node_modules/http-proxy-middleware/dist/factory.js +8 -0
- package/node_modules/http-proxy-middleware/dist/get-plugins.d.ts +2 -0
- package/node_modules/http-proxy-middleware/dist/get-plugins.js +13 -0
- package/node_modules/http-proxy-middleware/dist/handlers/fix-request-body.d.ts +8 -0
- package/node_modules/http-proxy-middleware/dist/handlers/fix-request-body.js +50 -0
- package/node_modules/http-proxy-middleware/dist/handlers/index.d.ts +1 -0
- package/node_modules/http-proxy-middleware/dist/handlers/index.js +17 -0
- package/node_modules/http-proxy-middleware/dist/handlers/public.d.ts +2 -0
- package/node_modules/http-proxy-middleware/dist/handlers/public.js +7 -0
- package/node_modules/http-proxy-middleware/dist/handlers/response-interceptor.d.ts +11 -0
- package/node_modules/http-proxy-middleware/dist/handlers/response-interceptor.js +94 -0
- package/node_modules/http-proxy-middleware/dist/http-proxy-middleware.d.ts +29 -0
- package/node_modules/http-proxy-middleware/dist/http-proxy-middleware.js +161 -0
- package/node_modules/http-proxy-middleware/dist/index.d.ts +11 -0
- package/node_modules/http-proxy-middleware/dist/index.js +26 -0
- package/node_modules/http-proxy-middleware/dist/legacy/create-proxy-middleware.d.ts +12 -0
- package/node_modules/http-proxy-middleware/dist/legacy/create-proxy-middleware.js +16 -0
- package/node_modules/http-proxy-middleware/dist/legacy/index.d.ts +1 -0
- package/node_modules/http-proxy-middleware/dist/legacy/index.js +17 -0
- package/node_modules/http-proxy-middleware/dist/legacy/options-adapter.d.ts +6 -0
- package/node_modules/http-proxy-middleware/dist/legacy/options-adapter.js +97 -0
- package/node_modules/http-proxy-middleware/dist/legacy/public.d.ts +2 -0
- package/node_modules/http-proxy-middleware/dist/legacy/public.js +5 -0
- package/node_modules/http-proxy-middleware/dist/legacy/types.d.ts +111 -0
- package/node_modules/http-proxy-middleware/dist/legacy/types.js +2 -0
- package/node_modules/http-proxy-middleware/dist/logger.d.ts +2 -0
- package/node_modules/http-proxy-middleware/dist/logger.js +24 -0
- package/node_modules/http-proxy-middleware/dist/path-filter.d.ts +3 -0
- package/node_modules/http-proxy-middleware/dist/path-filter.js +80 -0
- package/node_modules/http-proxy-middleware/dist/path-rewriter.d.ts +7 -0
- package/node_modules/http-proxy-middleware/dist/path-rewriter.js +65 -0
- package/node_modules/http-proxy-middleware/dist/plugins/default/debug-proxy-errors-plugin.d.ts +6 -0
- package/node_modules/http-proxy-middleware/dist/plugins/default/debug-proxy-errors-plugin.js +61 -0
- package/node_modules/http-proxy-middleware/dist/plugins/default/error-response-plugin.d.ts +2 -0
- package/node_modules/http-proxy-middleware/dist/plugins/default/error-response-plugin.js +30 -0
- package/node_modules/http-proxy-middleware/dist/plugins/default/index.d.ts +4 -0
- package/node_modules/http-proxy-middleware/dist/plugins/default/index.js +20 -0
- package/node_modules/http-proxy-middleware/dist/plugins/default/logger-plugin.d.ts +2 -0
- package/node_modules/http-proxy-middleware/dist/plugins/default/logger-plugin.js +66 -0
- package/node_modules/http-proxy-middleware/dist/plugins/default/proxy-events.d.ts +22 -0
- package/node_modules/http-proxy-middleware/dist/plugins/default/proxy-events.js +33 -0
- package/node_modules/http-proxy-middleware/dist/router.d.ts +1 -0
- package/node_modules/http-proxy-middleware/dist/router.js +45 -0
- package/node_modules/http-proxy-middleware/dist/status-code.d.ts +1 -0
- package/node_modules/http-proxy-middleware/dist/status-code.js +23 -0
- package/node_modules/http-proxy-middleware/dist/types.d.ts +122 -0
- package/node_modules/http-proxy-middleware/dist/types.js +6 -0
- package/node_modules/http-proxy-middleware/dist/utils/function.d.ts +1 -0
- package/node_modules/http-proxy-middleware/dist/utils/function.js +7 -0
- package/node_modules/http-proxy-middleware/dist/utils/logger-plugin.d.ts +7 -0
- package/node_modules/http-proxy-middleware/dist/utils/logger-plugin.js +10 -0
- package/node_modules/http-proxy-middleware/node_modules/debug/LICENSE +20 -0
- package/node_modules/http-proxy-middleware/node_modules/debug/README.md +481 -0
- package/node_modules/http-proxy-middleware/node_modules/debug/package.json +64 -0
- package/node_modules/http-proxy-middleware/node_modules/debug/src/browser.js +272 -0
- package/node_modules/http-proxy-middleware/node_modules/debug/src/common.js +292 -0
- package/node_modules/http-proxy-middleware/node_modules/debug/src/index.js +10 -0
- package/node_modules/http-proxy-middleware/node_modules/debug/src/node.js +263 -0
- package/node_modules/http-proxy-middleware/node_modules/ms/index.js +162 -0
- package/node_modules/http-proxy-middleware/node_modules/ms/license.md +21 -0
- package/node_modules/http-proxy-middleware/node_modules/ms/package.json +38 -0
- package/node_modules/http-proxy-middleware/node_modules/ms/readme.md +59 -0
- package/node_modules/http-proxy-middleware/package.json +108 -0
- package/node_modules/iconv-lite/Changelog.md +162 -0
- package/node_modules/iconv-lite/LICENSE +21 -0
- package/node_modules/iconv-lite/README.md +156 -0
- package/node_modules/iconv-lite/encodings/dbcs-codec.js +555 -0
- package/node_modules/iconv-lite/encodings/dbcs-data.js +176 -0
- package/node_modules/iconv-lite/encodings/index.js +22 -0
- package/node_modules/iconv-lite/encodings/internal.js +188 -0
- package/node_modules/iconv-lite/encodings/sbcs-codec.js +72 -0
- package/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
- package/node_modules/iconv-lite/encodings/sbcs-data.js +174 -0
- package/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
- package/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
- package/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
- package/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
- package/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
- package/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
- package/node_modules/iconv-lite/encodings/tables/gbk-added.json +55 -0
- package/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
- package/node_modules/iconv-lite/encodings/utf16.js +177 -0
- package/node_modules/iconv-lite/encodings/utf7.js +290 -0
- package/node_modules/iconv-lite/lib/bom-handling.js +52 -0
- package/node_modules/iconv-lite/lib/extend-node.js +217 -0
- package/node_modules/iconv-lite/lib/index.d.ts +24 -0
- package/node_modules/iconv-lite/lib/index.js +153 -0
- package/node_modules/iconv-lite/lib/streams.js +121 -0
- package/node_modules/iconv-lite/package.json +46 -0
- package/node_modules/inherits/LICENSE +16 -0
- package/node_modules/inherits/README.md +42 -0
- package/node_modules/inherits/inherits.js +9 -0
- package/node_modules/inherits/inherits_browser.js +27 -0
- package/node_modules/inherits/package.json +29 -0
- package/node_modules/ip-address/LICENSE +19 -0
- package/node_modules/ip-address/README.md +278 -0
- package/node_modules/ip-address/dist/address-error.d.ts +4 -0
- package/node_modules/ip-address/dist/address-error.js +12 -0
- package/node_modules/ip-address/dist/address-error.js.map +1 -0
- package/node_modules/ip-address/dist/common.d.ts +20 -0
- package/node_modules/ip-address/dist/common.js +67 -0
- package/node_modules/ip-address/dist/common.js.map +1 -0
- package/node_modules/ip-address/dist/ip-address.d.ts +7 -0
- package/node_modules/ip-address/dist/ip-address.js +35 -0
- package/node_modules/ip-address/dist/ip-address.js.map +1 -0
- package/node_modules/ip-address/dist/ipv4.d.ts +267 -0
- package/node_modules/ip-address/dist/ipv4.js +485 -0
- package/node_modules/ip-address/dist/ipv4.js.map +1 -0
- package/node_modules/ip-address/dist/ipv6.d.ts +489 -0
- package/node_modules/ip-address/dist/ipv6.js +1217 -0
- package/node_modules/ip-address/dist/ipv6.js.map +1 -0
- package/node_modules/ip-address/dist/v4/constants.d.ts +4 -0
- package/node_modules/ip-address/dist/v4/constants.js +8 -0
- package/node_modules/ip-address/dist/v4/constants.js.map +1 -0
- package/node_modules/ip-address/dist/v6/constants.d.ts +44 -0
- package/node_modules/ip-address/dist/v6/constants.js +81 -0
- package/node_modules/ip-address/dist/v6/constants.js.map +1 -0
- package/node_modules/ip-address/dist/v6/helpers.d.ts +18 -0
- package/node_modules/ip-address/dist/v6/helpers.js +54 -0
- package/node_modules/ip-address/dist/v6/helpers.js.map +1 -0
- package/node_modules/ip-address/dist/v6/regular-expressions.d.ts +5 -0
- package/node_modules/ip-address/dist/v6/regular-expressions.js +95 -0
- package/node_modules/ip-address/dist/v6/regular-expressions.js.map +1 -0
- package/node_modules/ip-address/package.json +88 -0
- package/node_modules/ipaddr.js/LICENSE +19 -0
- package/node_modules/ipaddr.js/README.md +233 -0
- package/node_modules/ipaddr.js/ipaddr.min.js +1 -0
- package/node_modules/ipaddr.js/lib/ipaddr.js +673 -0
- package/node_modules/ipaddr.js/lib/ipaddr.js.d.ts +68 -0
- package/node_modules/ipaddr.js/package.json +35 -0
- package/node_modules/is-extglob/LICENSE +21 -0
- package/node_modules/is-extglob/README.md +107 -0
- package/node_modules/is-extglob/index.js +20 -0
- package/node_modules/is-extglob/package.json +69 -0
- package/node_modules/is-glob/LICENSE +21 -0
- package/node_modules/is-glob/README.md +206 -0
- package/node_modules/is-glob/index.js +150 -0
- package/node_modules/is-glob/package.json +81 -0
- package/node_modules/is-number/LICENSE +21 -0
- package/node_modules/is-number/README.md +187 -0
- package/node_modules/is-number/index.js +18 -0
- package/node_modules/is-number/package.json +82 -0
- package/node_modules/is-plain-object/LICENSE +21 -0
- package/node_modules/is-plain-object/README.md +125 -0
- package/node_modules/is-plain-object/dist/is-plain-object.js +38 -0
- package/node_modules/is-plain-object/dist/is-plain-object.mjs +34 -0
- package/node_modules/is-plain-object/is-plain-object.d.ts +1 -0
- package/node_modules/is-plain-object/package.json +85 -0
- package/node_modules/is-promise/LICENSE +19 -0
- package/node_modules/is-promise/index.d.ts +2 -0
- package/node_modules/is-promise/index.js +6 -0
- package/node_modules/is-promise/index.mjs +3 -0
- package/node_modules/is-promise/package.json +30 -0
- package/node_modules/is-promise/readme.md +33 -0
- package/node_modules/isexe/.npmignore +2 -0
- package/node_modules/isexe/LICENSE +15 -0
- package/node_modules/isexe/README.md +51 -0
- package/node_modules/isexe/index.js +57 -0
- package/node_modules/isexe/mode.js +41 -0
- package/node_modules/isexe/package.json +31 -0
- package/node_modules/isexe/test/basic.js +221 -0
- package/node_modules/isexe/windows.js +42 -0
- package/node_modules/jose/LICENSE.md +21 -0
- package/node_modules/jose/README.md +153 -0
- package/node_modules/jose/dist/types/index.d.ts +55 -0
- package/node_modules/jose/dist/types/jwe/compact/decrypt.d.ts +31 -0
- package/node_modules/jose/dist/types/jwe/compact/encrypt.d.ts +65 -0
- package/node_modules/jose/dist/types/jwe/flattened/decrypt.d.ts +31 -0
- package/node_modules/jose/dist/types/jwe/flattened/encrypt.d.ts +83 -0
- package/node_modules/jose/dist/types/jwe/general/decrypt.d.ts +38 -0
- package/node_modules/jose/dist/types/jwe/general/encrypt.d.ts +74 -0
- package/node_modules/jose/dist/types/jwk/embedded.d.ts +17 -0
- package/node_modules/jose/dist/types/jwk/thumbprint.d.ts +32 -0
- package/node_modules/jose/dist/types/jwks/local.d.ts +29 -0
- package/node_modules/jose/dist/types/jwks/remote.d.ts +237 -0
- package/node_modules/jose/dist/types/jws/compact/sign.d.ts +36 -0
- package/node_modules/jose/dist/types/jws/compact/verify.d.ts +33 -0
- package/node_modules/jose/dist/types/jws/flattened/sign.d.ts +42 -0
- package/node_modules/jose/dist/types/jws/flattened/verify.d.ts +33 -0
- package/node_modules/jose/dist/types/jws/general/sign.d.ts +53 -0
- package/node_modules/jose/dist/types/jws/general/verify.d.ts +41 -0
- package/node_modules/jose/dist/types/jwt/decrypt.d.ts +35 -0
- package/node_modules/jose/dist/types/jwt/encrypt.d.ts +91 -0
- package/node_modules/jose/dist/types/jwt/sign.d.ts +43 -0
- package/node_modules/jose/dist/types/jwt/unsecured.d.ts +43 -0
- package/node_modules/jose/dist/types/jwt/verify.d.ts +37 -0
- package/node_modules/jose/dist/types/key/export.d.ts +33 -0
- package/node_modules/jose/dist/types/key/generate_key_pair.d.ts +47 -0
- package/node_modules/jose/dist/types/key/generate_secret.d.ts +35 -0
- package/node_modules/jose/dist/types/key/import.d.ts +83 -0
- package/node_modules/jose/dist/types/types.d.ts +852 -0
- package/node_modules/jose/dist/types/util/base64url.d.ts +9 -0
- package/node_modules/jose/dist/types/util/decode_jwt.d.ts +18 -0
- package/node_modules/jose/dist/types/util/decode_protected_header.d.ts +17 -0
- package/node_modules/jose/dist/types/util/errors.d.ts +213 -0
- package/node_modules/jose/dist/webapi/index.js +32 -0
- package/node_modules/jose/dist/webapi/jwe/compact/decrypt.js +27 -0
- package/node_modules/jose/dist/webapi/jwe/compact/encrypt.js +27 -0
- package/node_modules/jose/dist/webapi/jwe/flattened/decrypt.js +159 -0
- package/node_modules/jose/dist/webapi/jwe/flattened/encrypt.js +167 -0
- package/node_modules/jose/dist/webapi/jwe/general/decrypt.js +31 -0
- package/node_modules/jose/dist/webapi/jwe/general/encrypt.js +182 -0
- package/node_modules/jose/dist/webapi/jwk/embedded.js +17 -0
- package/node_modules/jose/dist/webapi/jwk/thumbprint.js +68 -0
- package/node_modules/jose/dist/webapi/jwks/local.js +119 -0
- package/node_modules/jose/dist/webapi/jwks/remote.js +179 -0
- package/node_modules/jose/dist/webapi/jws/compact/sign.js +18 -0
- package/node_modules/jose/dist/webapi/jws/compact/verify.js +21 -0
- package/node_modules/jose/dist/webapi/jws/flattened/sign.js +89 -0
- package/node_modules/jose/dist/webapi/jws/flattened/verify.js +110 -0
- package/node_modules/jose/dist/webapi/jws/general/sign.js +70 -0
- package/node_modules/jose/dist/webapi/jws/general/verify.js +24 -0
- package/node_modules/jose/dist/webapi/jwt/decrypt.js +23 -0
- package/node_modules/jose/dist/webapi/jwt/encrypt.js +101 -0
- package/node_modules/jose/dist/webapi/jwt/sign.js +52 -0
- package/node_modules/jose/dist/webapi/jwt/unsecured.js +63 -0
- package/node_modules/jose/dist/webapi/jwt/verify.js +15 -0
- package/node_modules/jose/dist/webapi/key/export.js +11 -0
- package/node_modules/jose/dist/webapi/key/generate_key_pair.js +97 -0
- package/node_modules/jose/dist/webapi/key/generate_secret.js +40 -0
- package/node_modules/jose/dist/webapi/key/import.js +57 -0
- package/node_modules/jose/dist/webapi/lib/aesgcmkw.js +15 -0
- package/node_modules/jose/dist/webapi/lib/aeskw.js +25 -0
- package/node_modules/jose/dist/webapi/lib/asn1.js +243 -0
- package/node_modules/jose/dist/webapi/lib/base64.js +22 -0
- package/node_modules/jose/dist/webapi/lib/buffer_utils.js +43 -0
- package/node_modules/jose/dist/webapi/lib/check_key_type.js +122 -0
- package/node_modules/jose/dist/webapi/lib/content_encryption.js +217 -0
- package/node_modules/jose/dist/webapi/lib/crypto_key.js +136 -0
- package/node_modules/jose/dist/webapi/lib/deflate.js +44 -0
- package/node_modules/jose/dist/webapi/lib/ecdhes.js +52 -0
- package/node_modules/jose/dist/webapi/lib/helpers.js +19 -0
- package/node_modules/jose/dist/webapi/lib/invalid_key_input.js +27 -0
- package/node_modules/jose/dist/webapi/lib/is_key_like.js +17 -0
- package/node_modules/jose/dist/webapi/lib/jwk_to_key.js +107 -0
- package/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +238 -0
- package/node_modules/jose/dist/webapi/lib/key_management.js +186 -0
- package/node_modules/jose/dist/webapi/lib/key_to_jwk.js +31 -0
- package/node_modules/jose/dist/webapi/lib/normalize_key.js +166 -0
- package/node_modules/jose/dist/webapi/lib/pbes2kw.js +42 -0
- package/node_modules/jose/dist/webapi/lib/rsaes.js +24 -0
- package/node_modules/jose/dist/webapi/lib/signing.js +68 -0
- package/node_modules/jose/dist/webapi/lib/type_checks.js +40 -0
- package/node_modules/jose/dist/webapi/lib/validate_algorithms.js +10 -0
- package/node_modules/jose/dist/webapi/lib/validate_crit.js +33 -0
- package/node_modules/jose/dist/webapi/util/base64url.js +30 -0
- package/node_modules/jose/dist/webapi/util/decode_jwt.js +32 -0
- package/node_modules/jose/dist/webapi/util/decode_protected_header.js +34 -0
- package/node_modules/jose/dist/webapi/util/errors.js +99 -0
- package/node_modules/jose/package.json +200 -0
- package/node_modules/json-schema-traverse/.eslintrc.yml +27 -0
- package/node_modules/json-schema-traverse/.github/FUNDING.yml +2 -0
- package/node_modules/json-schema-traverse/.github/workflows/build.yml +28 -0
- package/node_modules/json-schema-traverse/.github/workflows/publish.yml +27 -0
- package/node_modules/json-schema-traverse/LICENSE +21 -0
- package/node_modules/json-schema-traverse/README.md +95 -0
- package/node_modules/json-schema-traverse/index.d.ts +40 -0
- package/node_modules/json-schema-traverse/index.js +93 -0
- package/node_modules/json-schema-traverse/package.json +43 -0
- package/node_modules/json-schema-traverse/spec/.eslintrc.yml +6 -0
- package/node_modules/json-schema-traverse/spec/fixtures/schema.js +125 -0
- package/node_modules/json-schema-traverse/spec/index.spec.js +171 -0
- package/node_modules/json-schema-typed/LICENSE.md +57 -0
- package/node_modules/json-schema-typed/README.md +108 -0
- package/node_modules/json-schema-typed/draft_07.d.ts +882 -0
- package/node_modules/json-schema-typed/draft_07.js +328 -0
- package/node_modules/json-schema-typed/draft_2019_09.d.ts +1247 -0
- package/node_modules/json-schema-typed/draft_2019_09.js +349 -0
- package/node_modules/json-schema-typed/draft_2020_12.d.ts +1239 -0
- package/node_modules/json-schema-typed/draft_2020_12.js +352 -0
- package/node_modules/json-schema-typed/package.json +44 -0
- package/node_modules/math-intrinsics/.eslintrc +16 -0
- package/node_modules/math-intrinsics/.github/FUNDING.yml +12 -0
- package/node_modules/math-intrinsics/CHANGELOG.md +24 -0
- package/node_modules/math-intrinsics/LICENSE +21 -0
- package/node_modules/math-intrinsics/README.md +50 -0
- package/node_modules/math-intrinsics/abs.d.ts +1 -0
- package/node_modules/math-intrinsics/abs.js +4 -0
- package/node_modules/math-intrinsics/constants/maxArrayLength.d.ts +3 -0
- package/node_modules/math-intrinsics/constants/maxArrayLength.js +4 -0
- package/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts +3 -0
- package/node_modules/math-intrinsics/constants/maxSafeInteger.js +5 -0
- package/node_modules/math-intrinsics/constants/maxValue.d.ts +3 -0
- package/node_modules/math-intrinsics/constants/maxValue.js +5 -0
- package/node_modules/math-intrinsics/floor.d.ts +1 -0
- package/node_modules/math-intrinsics/floor.js +4 -0
- package/node_modules/math-intrinsics/isFinite.d.ts +3 -0
- package/node_modules/math-intrinsics/isFinite.js +12 -0
- package/node_modules/math-intrinsics/isInteger.d.ts +3 -0
- package/node_modules/math-intrinsics/isInteger.js +16 -0
- package/node_modules/math-intrinsics/isNaN.d.ts +1 -0
- package/node_modules/math-intrinsics/isNaN.js +6 -0
- package/node_modules/math-intrinsics/isNegativeZero.d.ts +3 -0
- package/node_modules/math-intrinsics/isNegativeZero.js +6 -0
- package/node_modules/math-intrinsics/max.d.ts +1 -0
- package/node_modules/math-intrinsics/max.js +4 -0
- package/node_modules/math-intrinsics/min.d.ts +1 -0
- package/node_modules/math-intrinsics/min.js +4 -0
- package/node_modules/math-intrinsics/mod.d.ts +3 -0
- package/node_modules/math-intrinsics/mod.js +9 -0
- package/node_modules/math-intrinsics/package.json +86 -0
- package/node_modules/math-intrinsics/pow.d.ts +1 -0
- package/node_modules/math-intrinsics/pow.js +4 -0
- package/node_modules/math-intrinsics/round.d.ts +1 -0
- package/node_modules/math-intrinsics/round.js +4 -0
- package/node_modules/math-intrinsics/sign.d.ts +3 -0
- package/node_modules/math-intrinsics/sign.js +11 -0
- package/node_modules/math-intrinsics/test/index.js +192 -0
- package/node_modules/math-intrinsics/tsconfig.json +3 -0
- package/node_modules/media-typer/HISTORY.md +22 -0
- package/node_modules/media-typer/LICENSE +22 -0
- package/node_modules/media-typer/README.md +81 -0
- package/node_modules/media-typer/index.js +270 -0
- package/node_modules/media-typer/package.json +26 -0
- package/node_modules/merge-descriptors/HISTORY.md +21 -0
- package/node_modules/merge-descriptors/LICENSE +23 -0
- package/node_modules/merge-descriptors/README.md +49 -0
- package/node_modules/merge-descriptors/index.js +60 -0
- package/node_modules/merge-descriptors/package.json +39 -0
- package/node_modules/methods/HISTORY.md +29 -0
- package/node_modules/methods/LICENSE +24 -0
- package/node_modules/methods/README.md +51 -0
- package/node_modules/methods/index.js +69 -0
- package/node_modules/methods/package.json +36 -0
- package/node_modules/micromatch/LICENSE +21 -0
- package/node_modules/micromatch/README.md +1024 -0
- package/node_modules/micromatch/index.js +474 -0
- package/node_modules/micromatch/package.json +119 -0
- package/node_modules/mime/.npmignore +0 -0
- package/node_modules/mime/CHANGELOG.md +164 -0
- package/node_modules/mime/LICENSE +21 -0
- package/node_modules/mime/README.md +90 -0
- package/node_modules/mime/cli.js +8 -0
- package/node_modules/mime/mime.js +108 -0
- package/node_modules/mime/package.json +44 -0
- package/node_modules/mime/src/build.js +53 -0
- package/node_modules/mime/src/test.js +60 -0
- package/node_modules/mime/types.json +1 -0
- package/node_modules/mime-db/HISTORY.md +507 -0
- package/node_modules/mime-db/LICENSE +23 -0
- package/node_modules/mime-db/README.md +100 -0
- package/node_modules/mime-db/db.json +8519 -0
- package/node_modules/mime-db/index.js +12 -0
- package/node_modules/mime-db/package.json +60 -0
- package/node_modules/mime-types/HISTORY.md +397 -0
- package/node_modules/mime-types/LICENSE +23 -0
- package/node_modules/mime-types/README.md +113 -0
- package/node_modules/mime-types/index.js +188 -0
- package/node_modules/mime-types/package.json +44 -0
- package/node_modules/ms/index.js +152 -0
- package/node_modules/ms/license.md +21 -0
- package/node_modules/ms/package.json +37 -0
- package/node_modules/ms/readme.md +51 -0
- package/node_modules/negotiator/HISTORY.md +108 -0
- package/node_modules/negotiator/LICENSE +24 -0
- package/node_modules/negotiator/README.md +203 -0
- package/node_modules/negotiator/index.js +82 -0
- package/node_modules/negotiator/lib/charset.js +169 -0
- package/node_modules/negotiator/lib/encoding.js +184 -0
- package/node_modules/negotiator/lib/language.js +179 -0
- package/node_modules/negotiator/lib/mediaType.js +294 -0
- package/node_modules/negotiator/package.json +42 -0
- package/node_modules/object-assign/index.js +90 -0
- package/node_modules/object-assign/license +21 -0
- package/node_modules/object-assign/package.json +42 -0
- package/node_modules/object-assign/readme.md +61 -0
- package/node_modules/object-inspect/.eslintrc +53 -0
- package/node_modules/object-inspect/.github/FUNDING.yml +12 -0
- package/node_modules/object-inspect/.nycrc +13 -0
- package/node_modules/object-inspect/CHANGELOG.md +424 -0
- package/node_modules/object-inspect/LICENSE +21 -0
- package/node_modules/object-inspect/example/all.js +23 -0
- package/node_modules/object-inspect/example/circular.js +6 -0
- package/node_modules/object-inspect/example/fn.js +5 -0
- package/node_modules/object-inspect/example/inspect.js +10 -0
- package/node_modules/object-inspect/index.js +544 -0
- package/node_modules/object-inspect/package-support.json +20 -0
- package/node_modules/object-inspect/package.json +105 -0
- package/node_modules/object-inspect/readme.markdown +84 -0
- package/node_modules/object-inspect/test/bigint.js +58 -0
- package/node_modules/object-inspect/test/browser/dom.js +15 -0
- package/node_modules/object-inspect/test/circular.js +16 -0
- package/node_modules/object-inspect/test/deep.js +12 -0
- package/node_modules/object-inspect/test/element.js +53 -0
- package/node_modules/object-inspect/test/err.js +48 -0
- package/node_modules/object-inspect/test/fakes.js +29 -0
- package/node_modules/object-inspect/test/fn.js +76 -0
- package/node_modules/object-inspect/test/global.js +17 -0
- package/node_modules/object-inspect/test/has.js +15 -0
- package/node_modules/object-inspect/test/holes.js +15 -0
- package/node_modules/object-inspect/test/indent-option.js +271 -0
- package/node_modules/object-inspect/test/inspect.js +139 -0
- package/node_modules/object-inspect/test/lowbyte.js +12 -0
- package/node_modules/object-inspect/test/number.js +58 -0
- package/node_modules/object-inspect/test/quoteStyle.js +26 -0
- package/node_modules/object-inspect/test/toStringTag.js +40 -0
- package/node_modules/object-inspect/test/undef.js +12 -0
- package/node_modules/object-inspect/test/values.js +261 -0
- package/node_modules/object-inspect/test-core-js.js +26 -0
- package/node_modules/object-inspect/util.inspect.js +1 -0
- package/node_modules/on-finished/HISTORY.md +98 -0
- package/node_modules/on-finished/LICENSE +23 -0
- package/node_modules/on-finished/README.md +162 -0
- package/node_modules/on-finished/index.js +234 -0
- package/node_modules/on-finished/package.json +39 -0
- package/node_modules/once/LICENSE +15 -0
- package/node_modules/once/README.md +79 -0
- package/node_modules/once/once.js +42 -0
- package/node_modules/once/package.json +33 -0
- package/node_modules/parseurl/HISTORY.md +58 -0
- package/node_modules/parseurl/LICENSE +24 -0
- package/node_modules/parseurl/README.md +133 -0
- package/node_modules/parseurl/index.js +158 -0
- package/node_modules/parseurl/package.json +40 -0
- package/node_modules/path-key/index.d.ts +40 -0
- package/node_modules/path-key/index.js +16 -0
- package/node_modules/path-key/license +9 -0
- package/node_modules/path-key/package.json +39 -0
- package/node_modules/path-key/readme.md +61 -0
- package/node_modules/path-to-regexp/LICENSE +21 -0
- package/node_modules/path-to-regexp/Readme.md +35 -0
- package/node_modules/path-to-regexp/index.js +158 -0
- package/node_modules/path-to-regexp/package.json +30 -0
- package/node_modules/picomatch/LICENSE +21 -0
- package/node_modules/picomatch/README.md +716 -0
- package/node_modules/picomatch/index.js +3 -0
- package/node_modules/picomatch/lib/constants.js +184 -0
- package/node_modules/picomatch/lib/parse.js +1392 -0
- package/node_modules/picomatch/lib/picomatch.js +342 -0
- package/node_modules/picomatch/lib/scan.js +391 -0
- package/node_modules/picomatch/lib/utils.js +64 -0
- package/node_modules/picomatch/package.json +81 -0
- package/node_modules/pkce-challenge/CHANGELOG.md +114 -0
- package/node_modules/pkce-challenge/LICENSE +21 -0
- package/node_modules/pkce-challenge/README.md +55 -0
- package/node_modules/pkce-challenge/dist/index.browser.d.ts +19 -0
- package/node_modules/pkce-challenge/dist/index.browser.js +75 -0
- package/node_modules/pkce-challenge/dist/index.node.cjs +83 -0
- package/node_modules/pkce-challenge/dist/index.node.d.cts +19 -0
- package/node_modules/pkce-challenge/dist/index.node.d.ts +19 -0
- package/node_modules/pkce-challenge/dist/index.node.js +78 -0
- package/node_modules/pkce-challenge/package.json +59 -0
- package/node_modules/proxy-addr/HISTORY.md +161 -0
- package/node_modules/proxy-addr/LICENSE +22 -0
- package/node_modules/proxy-addr/README.md +139 -0
- package/node_modules/proxy-addr/index.js +327 -0
- package/node_modules/proxy-addr/package.json +47 -0
- package/node_modules/qs/.editorconfig +46 -0
- package/node_modules/qs/.github/FUNDING.yml +12 -0
- package/node_modules/qs/.github/SECURITY.md +11 -0
- package/node_modules/qs/.github/THREAT_MODEL.md +78 -0
- package/node_modules/qs/.nycrc +13 -0
- package/node_modules/qs/CHANGELOG.md +822 -0
- package/node_modules/qs/LICENSE.md +29 -0
- package/node_modules/qs/README.md +758 -0
- package/node_modules/qs/dist/qs.js +141 -0
- package/node_modules/qs/eslint.config.mjs +57 -0
- package/node_modules/qs/lib/formats.js +23 -0
- package/node_modules/qs/lib/index.js +11 -0
- package/node_modules/qs/lib/parse.js +403 -0
- package/node_modules/qs/lib/stringify.js +363 -0
- package/node_modules/qs/lib/utils.js +342 -0
- package/node_modules/qs/package.json +94 -0
- package/node_modules/qs/test/empty-keys-cases.js +267 -0
- package/node_modules/qs/test/parse.js +1703 -0
- package/node_modules/qs/test/stringify.js +1448 -0
- package/node_modules/qs/test/utils.js +432 -0
- package/node_modules/range-parser/HISTORY.md +56 -0
- package/node_modules/range-parser/LICENSE +23 -0
- package/node_modules/range-parser/README.md +84 -0
- package/node_modules/range-parser/index.js +162 -0
- package/node_modules/range-parser/package.json +44 -0
- package/node_modules/raw-body/LICENSE +22 -0
- package/node_modules/raw-body/README.md +223 -0
- package/node_modules/raw-body/index.d.ts +85 -0
- package/node_modules/raw-body/index.js +336 -0
- package/node_modules/raw-body/node_modules/iconv-lite/LICENSE +21 -0
- package/node_modules/raw-body/node_modules/iconv-lite/README.md +138 -0
- package/node_modules/raw-body/node_modules/iconv-lite/encodings/dbcs-codec.js +532 -0
- package/node_modules/raw-body/node_modules/iconv-lite/encodings/dbcs-data.js +185 -0
- package/node_modules/raw-body/node_modules/iconv-lite/encodings/index.js +23 -0
- package/node_modules/raw-body/node_modules/iconv-lite/encodings/internal.js +218 -0
- package/node_modules/raw-body/node_modules/iconv-lite/encodings/sbcs-codec.js +75 -0
- package/node_modules/raw-body/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
- package/node_modules/raw-body/node_modules/iconv-lite/encodings/sbcs-data.js +178 -0
- package/node_modules/raw-body/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
- package/node_modules/raw-body/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
- package/node_modules/raw-body/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
- package/node_modules/raw-body/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
- package/node_modules/raw-body/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
- package/node_modules/raw-body/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
- package/node_modules/raw-body/node_modules/iconv-lite/encodings/tables/gbk-added.json +56 -0
- package/node_modules/raw-body/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
- package/node_modules/raw-body/node_modules/iconv-lite/encodings/utf16.js +187 -0
- package/node_modules/raw-body/node_modules/iconv-lite/encodings/utf32.js +307 -0
- package/node_modules/raw-body/node_modules/iconv-lite/encodings/utf7.js +283 -0
- package/node_modules/raw-body/node_modules/iconv-lite/lib/bom-handling.js +48 -0
- package/node_modules/raw-body/node_modules/iconv-lite/lib/helpers/merge-exports.js +13 -0
- package/node_modules/raw-body/node_modules/iconv-lite/lib/index.d.ts +129 -0
- package/node_modules/raw-body/node_modules/iconv-lite/lib/index.js +182 -0
- package/node_modules/raw-body/node_modules/iconv-lite/lib/streams.js +105 -0
- package/node_modules/raw-body/node_modules/iconv-lite/package.json +70 -0
- package/node_modules/raw-body/node_modules/iconv-lite/types/encodings.d.ts +423 -0
- package/node_modules/raw-body/package.json +46 -0
- package/node_modules/require-from-string/index.js +34 -0
- package/node_modules/require-from-string/license +21 -0
- package/node_modules/require-from-string/package.json +28 -0
- package/node_modules/require-from-string/readme.md +56 -0
- package/node_modules/requires-port/.npmignore +2 -0
- package/node_modules/requires-port/.travis.yml +19 -0
- package/node_modules/requires-port/LICENSE +22 -0
- package/node_modules/requires-port/README.md +47 -0
- package/node_modules/requires-port/index.js +38 -0
- package/node_modules/requires-port/package.json +47 -0
- package/node_modules/requires-port/test.js +98 -0
- package/node_modules/router/HISTORY.md +228 -0
- package/node_modules/router/LICENSE +23 -0
- package/node_modules/router/README.md +416 -0
- package/node_modules/router/index.js +748 -0
- package/node_modules/router/lib/layer.js +247 -0
- package/node_modules/router/lib/route.js +242 -0
- package/node_modules/router/node_modules/debug/LICENSE +20 -0
- package/node_modules/router/node_modules/debug/README.md +481 -0
- package/node_modules/router/node_modules/debug/package.json +64 -0
- package/node_modules/router/node_modules/debug/src/browser.js +272 -0
- package/node_modules/router/node_modules/debug/src/common.js +292 -0
- package/node_modules/router/node_modules/debug/src/index.js +10 -0
- package/node_modules/router/node_modules/debug/src/node.js +263 -0
- package/node_modules/router/node_modules/ms/index.js +162 -0
- package/node_modules/router/node_modules/ms/license.md +21 -0
- package/node_modules/router/node_modules/ms/package.json +38 -0
- package/node_modules/router/node_modules/ms/readme.md +59 -0
- package/node_modules/router/node_modules/path-to-regexp/LICENSE +21 -0
- package/node_modules/router/node_modules/path-to-regexp/Readme.md +224 -0
- package/node_modules/router/node_modules/path-to-regexp/dist/index.d.ts +147 -0
- package/node_modules/router/node_modules/path-to-regexp/dist/index.js +431 -0
- package/node_modules/router/node_modules/path-to-regexp/dist/index.js.map +1 -0
- package/node_modules/router/node_modules/path-to-regexp/package.json +64 -0
- package/node_modules/router/package.json +44 -0
- package/node_modules/safe-buffer/LICENSE +21 -0
- package/node_modules/safe-buffer/README.md +584 -0
- package/node_modules/safe-buffer/index.d.ts +187 -0
- package/node_modules/safe-buffer/index.js +65 -0
- package/node_modules/safe-buffer/package.json +51 -0
- package/node_modules/safer-buffer/LICENSE +21 -0
- package/node_modules/safer-buffer/Porting-Buffer.md +268 -0
- package/node_modules/safer-buffer/Readme.md +156 -0
- package/node_modules/safer-buffer/dangerous.js +58 -0
- package/node_modules/safer-buffer/package.json +34 -0
- package/node_modules/safer-buffer/safer.js +77 -0
- package/node_modules/safer-buffer/tests.js +406 -0
- package/node_modules/send/HISTORY.md +538 -0
- package/node_modules/send/LICENSE +23 -0
- package/node_modules/send/README.md +327 -0
- package/node_modules/send/SECURITY.md +24 -0
- package/node_modules/send/index.js +1142 -0
- package/node_modules/send/node_modules/ms/index.js +162 -0
- package/node_modules/send/node_modules/ms/license.md +21 -0
- package/node_modules/send/node_modules/ms/package.json +38 -0
- package/node_modules/send/node_modules/ms/readme.md +59 -0
- package/node_modules/send/package.json +62 -0
- package/node_modules/serve-static/HISTORY.md +493 -0
- package/node_modules/serve-static/LICENSE +25 -0
- package/node_modules/serve-static/README.md +257 -0
- package/node_modules/serve-static/index.js +209 -0
- package/node_modules/serve-static/package.json +42 -0
- package/node_modules/setprototypeof/LICENSE +13 -0
- package/node_modules/setprototypeof/README.md +31 -0
- package/node_modules/setprototypeof/index.d.ts +2 -0
- package/node_modules/setprototypeof/index.js +17 -0
- package/node_modules/setprototypeof/package.json +38 -0
- package/node_modules/setprototypeof/test/index.js +24 -0
- package/node_modules/shebang-command/index.js +19 -0
- package/node_modules/shebang-command/license +9 -0
- package/node_modules/shebang-command/package.json +34 -0
- package/node_modules/shebang-command/readme.md +34 -0
- package/node_modules/shebang-regex/index.d.ts +22 -0
- package/node_modules/shebang-regex/index.js +2 -0
- package/node_modules/shebang-regex/license +9 -0
- package/node_modules/shebang-regex/package.json +35 -0
- package/node_modules/shebang-regex/readme.md +33 -0
- package/node_modules/side-channel/.editorconfig +9 -0
- package/node_modules/side-channel/.eslintrc +12 -0
- package/node_modules/side-channel/.github/FUNDING.yml +12 -0
- package/node_modules/side-channel/.nycrc +13 -0
- package/node_modules/side-channel/CHANGELOG.md +110 -0
- package/node_modules/side-channel/LICENSE +21 -0
- package/node_modules/side-channel/README.md +61 -0
- package/node_modules/side-channel/index.d.ts +14 -0
- package/node_modules/side-channel/index.js +43 -0
- package/node_modules/side-channel/package.json +85 -0
- package/node_modules/side-channel/test/index.js +104 -0
- package/node_modules/side-channel/tsconfig.json +9 -0
- package/node_modules/side-channel-list/.editorconfig +9 -0
- package/node_modules/side-channel-list/.eslintrc +11 -0
- package/node_modules/side-channel-list/.github/FUNDING.yml +12 -0
- package/node_modules/side-channel-list/.nycrc +13 -0
- package/node_modules/side-channel-list/CHANGELOG.md +36 -0
- package/node_modules/side-channel-list/LICENSE +21 -0
- package/node_modules/side-channel-list/README.md +62 -0
- package/node_modules/side-channel-list/index.d.ts +13 -0
- package/node_modules/side-channel-list/index.js +111 -0
- package/node_modules/side-channel-list/list.d.ts +14 -0
- package/node_modules/side-channel-list/package.json +77 -0
- package/node_modules/side-channel-list/test/index.js +154 -0
- package/node_modules/side-channel-list/tsconfig.json +9 -0
- package/node_modules/side-channel-map/.editorconfig +9 -0
- package/node_modules/side-channel-map/.eslintrc +11 -0
- package/node_modules/side-channel-map/.github/FUNDING.yml +12 -0
- package/node_modules/side-channel-map/.nycrc +13 -0
- package/node_modules/side-channel-map/CHANGELOG.md +22 -0
- package/node_modules/side-channel-map/LICENSE +21 -0
- package/node_modules/side-channel-map/README.md +62 -0
- package/node_modules/side-channel-map/index.d.ts +15 -0
- package/node_modules/side-channel-map/index.js +68 -0
- package/node_modules/side-channel-map/package.json +80 -0
- package/node_modules/side-channel-map/test/index.js +114 -0
- package/node_modules/side-channel-map/tsconfig.json +9 -0
- package/node_modules/side-channel-weakmap/.editorconfig +9 -0
- package/node_modules/side-channel-weakmap/.eslintrc +12 -0
- package/node_modules/side-channel-weakmap/.github/FUNDING.yml +12 -0
- package/node_modules/side-channel-weakmap/.nycrc +13 -0
- package/node_modules/side-channel-weakmap/CHANGELOG.md +28 -0
- package/node_modules/side-channel-weakmap/LICENSE +21 -0
- package/node_modules/side-channel-weakmap/README.md +62 -0
- package/node_modules/side-channel-weakmap/index.d.ts +15 -0
- package/node_modules/side-channel-weakmap/index.js +84 -0
- package/node_modules/side-channel-weakmap/package.json +87 -0
- package/node_modules/side-channel-weakmap/test/index.js +114 -0
- package/node_modules/side-channel-weakmap/tsconfig.json +9 -0
- package/node_modules/statuses/HISTORY.md +87 -0
- package/node_modules/statuses/LICENSE +23 -0
- package/node_modules/statuses/README.md +139 -0
- package/node_modules/statuses/codes.json +65 -0
- package/node_modules/statuses/index.js +146 -0
- package/node_modules/statuses/package.json +49 -0
- package/node_modules/to-regex-range/LICENSE +21 -0
- package/node_modules/to-regex-range/README.md +305 -0
- package/node_modules/to-regex-range/index.js +288 -0
- package/node_modules/to-regex-range/package.json +88 -0
- package/node_modules/toidentifier/HISTORY.md +9 -0
- package/node_modules/toidentifier/LICENSE +21 -0
- package/node_modules/toidentifier/README.md +61 -0
- package/node_modules/toidentifier/index.js +32 -0
- package/node_modules/toidentifier/package.json +38 -0
- package/node_modules/type-is/HISTORY.md +259 -0
- package/node_modules/type-is/LICENSE +23 -0
- package/node_modules/type-is/README.md +170 -0
- package/node_modules/type-is/index.js +266 -0
- package/node_modules/type-is/package.json +45 -0
- package/node_modules/undici-types/LICENSE +21 -0
- package/node_modules/undici-types/README.md +6 -0
- package/node_modules/undici-types/agent.d.ts +32 -0
- package/node_modules/undici-types/api.d.ts +43 -0
- package/node_modules/undici-types/balanced-pool.d.ts +30 -0
- package/node_modules/undici-types/cache-interceptor.d.ts +179 -0
- package/node_modules/undici-types/cache.d.ts +36 -0
- package/node_modules/undici-types/client-stats.d.ts +15 -0
- package/node_modules/undici-types/client.d.ts +123 -0
- package/node_modules/undici-types/connector.d.ts +36 -0
- package/node_modules/undici-types/content-type.d.ts +21 -0
- package/node_modules/undici-types/cookies.d.ts +30 -0
- package/node_modules/undici-types/diagnostics-channel.d.ts +74 -0
- package/node_modules/undici-types/dispatcher.d.ts +279 -0
- package/node_modules/undici-types/env-http-proxy-agent.d.ts +22 -0
- package/node_modules/undici-types/errors.d.ts +177 -0
- package/node_modules/undici-types/eventsource.d.ts +66 -0
- package/node_modules/undici-types/fetch.d.ts +211 -0
- package/node_modules/undici-types/formdata.d.ts +108 -0
- package/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/node_modules/undici-types/global-origin.d.ts +7 -0
- package/node_modules/undici-types/h2c-client.d.ts +73 -0
- package/node_modules/undici-types/handlers.d.ts +15 -0
- package/node_modules/undici-types/header.d.ts +160 -0
- package/node_modules/undici-types/index.d.ts +91 -0
- package/node_modules/undici-types/interceptors.d.ts +80 -0
- package/node_modules/undici-types/mock-agent.d.ts +68 -0
- package/node_modules/undici-types/mock-call-history.d.ts +111 -0
- package/node_modules/undici-types/mock-client.d.ts +27 -0
- package/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/node_modules/undici-types/mock-interceptor.d.ts +94 -0
- package/node_modules/undici-types/mock-pool.d.ts +27 -0
- package/node_modules/undici-types/package.json +55 -0
- package/node_modules/undici-types/patch.d.ts +29 -0
- package/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/node_modules/undici-types/pool.d.ts +41 -0
- package/node_modules/undici-types/proxy-agent.d.ts +29 -0
- package/node_modules/undici-types/readable.d.ts +68 -0
- package/node_modules/undici-types/retry-agent.d.ts +8 -0
- package/node_modules/undici-types/retry-handler.d.ts +125 -0
- package/node_modules/undici-types/round-robin-pool.d.ts +41 -0
- package/node_modules/undici-types/snapshot-agent.d.ts +109 -0
- package/node_modules/undici-types/socks5-proxy-agent.d.ts +25 -0
- package/node_modules/undici-types/util.d.ts +18 -0
- package/node_modules/undici-types/utility.d.ts +7 -0
- package/node_modules/undici-types/webidl.d.ts +347 -0
- package/node_modules/undici-types/websocket.d.ts +188 -0
- package/node_modules/unpipe/HISTORY.md +4 -0
- package/node_modules/unpipe/LICENSE +22 -0
- package/node_modules/unpipe/README.md +43 -0
- package/node_modules/unpipe/index.js +69 -0
- package/node_modules/unpipe/package.json +27 -0
- package/node_modules/utils-merge/.npmignore +9 -0
- package/node_modules/utils-merge/LICENSE +20 -0
- package/node_modules/utils-merge/README.md +34 -0
- package/node_modules/utils-merge/index.js +23 -0
- package/node_modules/utils-merge/package.json +40 -0
- package/node_modules/vary/HISTORY.md +39 -0
- package/node_modules/vary/LICENSE +22 -0
- package/node_modules/vary/README.md +101 -0
- package/node_modules/vary/index.js +149 -0
- package/node_modules/vary/package.json +43 -0
- package/node_modules/which/CHANGELOG.md +166 -0
- package/node_modules/which/LICENSE +15 -0
- package/node_modules/which/README.md +54 -0
- package/node_modules/which/bin/node-which +52 -0
- package/node_modules/which/package.json +43 -0
- package/node_modules/which/which.js +125 -0
- package/node_modules/wrappy/LICENSE +15 -0
- package/node_modules/wrappy/README.md +36 -0
- package/node_modules/wrappy/package.json +29 -0
- package/node_modules/wrappy/wrappy.js +33 -0
- package/node_modules/zod/LICENSE +21 -0
- package/node_modules/zod/README.md +208 -0
- package/node_modules/zod/index.cjs +33 -0
- package/node_modules/zod/index.d.cts +4 -0
- package/node_modules/zod/index.d.ts +4 -0
- package/node_modules/zod/index.js +4 -0
- package/node_modules/zod/package.json +118 -0
- package/node_modules/zod/src/index.ts +4 -0
- package/node_modules/zod/src/v3/ZodError.ts +330 -0
- package/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
- package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
- package/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
- package/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
- package/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
- package/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
- package/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
- package/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
- package/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
- package/node_modules/zod/src/v3/errors.ts +13 -0
- package/node_modules/zod/src/v3/external.ts +6 -0
- package/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
- package/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
- package/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
- package/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
- package/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
- package/node_modules/zod/src/v3/helpers/util.ts +224 -0
- package/node_modules/zod/src/v3/index.ts +4 -0
- package/node_modules/zod/src/v3/locales/en.ts +124 -0
- package/node_modules/zod/src/v3/standard-schema.ts +113 -0
- package/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
- package/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
- package/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
- package/node_modules/zod/src/v3/tests/array.test.ts +71 -0
- package/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
- package/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
- package/node_modules/zod/src/v3/tests/base.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
- package/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
- package/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
- package/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
- package/node_modules/zod/src/v3/tests/complex.test.ts +56 -0
- package/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
- package/node_modules/zod/src/v3/tests/date.test.ts +32 -0
- package/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
- package/node_modules/zod/src/v3/tests/default.test.ts +112 -0
- package/node_modules/zod/src/v3/tests/description.test.ts +33 -0
- package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
- package/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
- package/node_modules/zod/src/v3/tests/error.test.ts +551 -0
- package/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
- package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
- package/node_modules/zod/src/v3/tests/function.test.ts +257 -0
- package/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
- package/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
- package/node_modules/zod/src/v3/tests/intersection.test.ts +110 -0
- package/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
- package/node_modules/zod/src/v3/tests/language-server.test.ts +207 -0
- package/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
- package/node_modules/zod/src/v3/tests/map.test.ts +110 -0
- package/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
- package/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
- package/node_modules/zod/src/v3/tests/nan.test.ts +21 -0
- package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
- package/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
- package/node_modules/zod/src/v3/tests/number.test.ts +176 -0
- package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/object.test.ts +434 -0
- package/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
- package/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
- package/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
- package/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
- package/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
- package/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
- package/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
- package/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
- package/node_modules/zod/src/v3/tests/readonly.test.ts +194 -0
- package/node_modules/zod/src/v3/tests/record.test.ts +171 -0
- package/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
- package/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
- package/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
- package/node_modules/zod/src/v3/tests/set.test.ts +142 -0
- package/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
- package/node_modules/zod/src/v3/tests/string.test.ts +916 -0
- package/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
- package/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
- package/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
- package/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
- package/node_modules/zod/src/v3/tests/void.test.ts +15 -0
- package/node_modules/zod/src/v3/types.ts +5136 -0
- package/node_modules/zod/src/v4/classic/checks.ts +30 -0
- package/node_modules/zod/src/v4/classic/coerce.ts +27 -0
- package/node_modules/zod/src/v4/classic/compat.ts +66 -0
- package/node_modules/zod/src/v4/classic/errors.ts +75 -0
- package/node_modules/zod/src/v4/classic/external.ts +50 -0
- package/node_modules/zod/src/v4/classic/index.ts +5 -0
- package/node_modules/zod/src/v4/classic/iso.ts +90 -0
- package/node_modules/zod/src/v4/classic/parse.ts +33 -0
- package/node_modules/zod/src/v4/classic/schemas.ts +2054 -0
- package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
- package/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
- package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +210 -0
- package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
- package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
- package/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
- package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +54 -0
- package/node_modules/zod/src/v4/classic/tests/brand.test.ts +63 -0
- package/node_modules/zod/src/v4/classic/tests/catch.test.ts +252 -0
- package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
- package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
- package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +352 -0
- package/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
- package/node_modules/zod/src/v4/classic/tests/date.test.ts +31 -0
- package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +296 -0
- package/node_modules/zod/src/v4/classic/tests/default.test.ts +313 -0
- package/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
- package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +619 -0
- package/node_modules/zod/src/v4/classic/tests/enum.test.ts +285 -0
- package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +527 -0
- package/node_modules/zod/src/v4/classic/tests/error.test.ts +711 -0
- package/node_modules/zod/src/v4/classic/tests/file.test.ts +91 -0
- package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +175 -0
- package/node_modules/zod/src/v4/classic/tests/function.test.ts +268 -0
- package/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
- package/node_modules/zod/src/v4/classic/tests/index.test.ts +829 -0
- package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +34 -0
- package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +171 -0
- package/node_modules/zod/src/v4/classic/tests/json.test.ts +108 -0
- package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +227 -0
- package/node_modules/zod/src/v4/classic/tests/literal.test.ts +92 -0
- package/node_modules/zod/src/v4/classic/tests/map.test.ts +196 -0
- package/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
- package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
- package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +86 -0
- package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
- package/node_modules/zod/src/v4/classic/tests/number.test.ts +247 -0
- package/node_modules/zod/src/v4/classic/tests/object.test.ts +563 -0
- package/node_modules/zod/src/v4/classic/tests/optional.test.ts +123 -0
- package/node_modules/zod/src/v4/classic/tests/partial.test.ts +147 -0
- package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +127 -0
- package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +81 -0
- package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +37 -0
- package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +298 -0
- package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
- package/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
- package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
- package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +252 -0
- package/node_modules/zod/src/v4/classic/tests/record.test.ts +342 -0
- package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +356 -0
- package/node_modules/zod/src/v4/classic/tests/refine.test.ts +532 -0
- package/node_modules/zod/src/v4/classic/tests/registries.test.ts +204 -0
- package/node_modules/zod/src/v4/classic/tests/set.test.ts +179 -0
- package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +57 -0
- package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +109 -0
- package/node_modules/zod/src/v4/classic/tests/string.test.ts +881 -0
- package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +66 -0
- package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +758 -0
- package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +2314 -0
- package/node_modules/zod/src/v4/classic/tests/transform.test.ts +250 -0
- package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +163 -0
- package/node_modules/zod/src/v4/classic/tests/union.test.ts +94 -0
- package/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
- package/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
- package/node_modules/zod/src/v4/core/api.ts +1594 -0
- package/node_modules/zod/src/v4/core/checks.ts +1283 -0
- package/node_modules/zod/src/v4/core/config.ts +15 -0
- package/node_modules/zod/src/v4/core/core.ts +134 -0
- package/node_modules/zod/src/v4/core/doc.ts +44 -0
- package/node_modules/zod/src/v4/core/errors.ts +424 -0
- package/node_modules/zod/src/v4/core/function.ts +176 -0
- package/node_modules/zod/src/v4/core/index.ts +15 -0
- package/node_modules/zod/src/v4/core/json-schema.ts +143 -0
- package/node_modules/zod/src/v4/core/parse.ts +94 -0
- package/node_modules/zod/src/v4/core/regexes.ts +135 -0
- package/node_modules/zod/src/v4/core/registries.ts +96 -0
- package/node_modules/zod/src/v4/core/schemas.ts +3842 -0
- package/node_modules/zod/src/v4/core/standard-schema.ts +64 -0
- package/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
- package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
- package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
- package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
- package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
- package/node_modules/zod/src/v4/core/to-json-schema.ts +977 -0
- package/node_modules/zod/src/v4/core/util.ts +775 -0
- package/node_modules/zod/src/v4/core/versions.ts +5 -0
- package/node_modules/zod/src/v4/core/zsf.ts +323 -0
- package/node_modules/zod/src/v4/index.ts +4 -0
- package/node_modules/zod/src/v4/locales/ar.ts +125 -0
- package/node_modules/zod/src/v4/locales/az.ts +121 -0
- package/node_modules/zod/src/v4/locales/be.ts +184 -0
- package/node_modules/zod/src/v4/locales/ca.ts +127 -0
- package/node_modules/zod/src/v4/locales/cs.ts +142 -0
- package/node_modules/zod/src/v4/locales/de.ts +124 -0
- package/node_modules/zod/src/v4/locales/en.ts +127 -0
- package/node_modules/zod/src/v4/locales/eo.ts +125 -0
- package/node_modules/zod/src/v4/locales/es.ts +125 -0
- package/node_modules/zod/src/v4/locales/fa.ts +134 -0
- package/node_modules/zod/src/v4/locales/fi.ts +131 -0
- package/node_modules/zod/src/v4/locales/fr-CA.ts +126 -0
- package/node_modules/zod/src/v4/locales/fr.ts +124 -0
- package/node_modules/zod/src/v4/locales/he.ts +125 -0
- package/node_modules/zod/src/v4/locales/hu.ts +126 -0
- package/node_modules/zod/src/v4/locales/id.ts +125 -0
- package/node_modules/zod/src/v4/locales/index.ts +39 -0
- package/node_modules/zod/src/v4/locales/it.ts +125 -0
- package/node_modules/zod/src/v4/locales/ja.ts +122 -0
- package/node_modules/zod/src/v4/locales/kh.ts +126 -0
- package/node_modules/zod/src/v4/locales/ko.ts +131 -0
- package/node_modules/zod/src/v4/locales/mk.ts +127 -0
- package/node_modules/zod/src/v4/locales/ms.ts +124 -0
- package/node_modules/zod/src/v4/locales/nl.ts +126 -0
- package/node_modules/zod/src/v4/locales/no.ts +124 -0
- package/node_modules/zod/src/v4/locales/ota.ts +125 -0
- package/node_modules/zod/src/v4/locales/pl.ts +126 -0
- package/node_modules/zod/src/v4/locales/ps.ts +133 -0
- package/node_modules/zod/src/v4/locales/pt.ts +123 -0
- package/node_modules/zod/src/v4/locales/ru.ts +184 -0
- package/node_modules/zod/src/v4/locales/sl.ts +126 -0
- package/node_modules/zod/src/v4/locales/sv.ts +127 -0
- package/node_modules/zod/src/v4/locales/ta.ts +125 -0
- package/node_modules/zod/src/v4/locales/th.ts +126 -0
- package/node_modules/zod/src/v4/locales/tr.ts +121 -0
- package/node_modules/zod/src/v4/locales/ua.ts +126 -0
- package/node_modules/zod/src/v4/locales/ur.ts +126 -0
- package/node_modules/zod/src/v4/locales/vi.ts +125 -0
- package/node_modules/zod/src/v4/locales/zh-CN.ts +123 -0
- package/node_modules/zod/src/v4/locales/zh-TW.ts +125 -0
- package/node_modules/zod/src/v4/mini/checks.ts +32 -0
- package/node_modules/zod/src/v4/mini/coerce.ts +22 -0
- package/node_modules/zod/src/v4/mini/external.ts +40 -0
- package/node_modules/zod/src/v4/mini/index.ts +3 -0
- package/node_modules/zod/src/v4/mini/iso.ts +62 -0
- package/node_modules/zod/src/v4/mini/parse.ts +1 -0
- package/node_modules/zod/src/v4/mini/schemas.ts +1579 -0
- package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +129 -0
- package/node_modules/zod/src/v4/mini/tests/brand.test.ts +51 -0
- package/node_modules/zod/src/v4/mini/tests/checks.test.ts +144 -0
- package/node_modules/zod/src/v4/mini/tests/computed.test.ts +36 -0
- package/node_modules/zod/src/v4/mini/tests/error.test.ts +22 -0
- package/node_modules/zod/src/v4/mini/tests/functions.test.ts +43 -0
- package/node_modules/zod/src/v4/mini/tests/index.test.ts +871 -0
- package/node_modules/zod/src/v4/mini/tests/number.test.ts +95 -0
- package/node_modules/zod/src/v4/mini/tests/object.test.ts +185 -0
- package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
- package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +275 -0
- package/node_modules/zod/src/v4/mini/tests/string.test.ts +299 -0
- package/node_modules/zod/src/v4-mini/index.ts +1 -0
- package/node_modules/zod/v3/ZodError.cjs +138 -0
- package/node_modules/zod/v3/ZodError.d.cts +164 -0
- package/node_modules/zod/v3/ZodError.d.ts +164 -0
- package/node_modules/zod/v3/ZodError.js +133 -0
- package/node_modules/zod/v3/errors.cjs +17 -0
- package/node_modules/zod/v3/errors.d.cts +5 -0
- package/node_modules/zod/v3/errors.d.ts +5 -0
- package/node_modules/zod/v3/errors.js +9 -0
- package/node_modules/zod/v3/external.cjs +22 -0
- package/node_modules/zod/v3/external.d.cts +6 -0
- package/node_modules/zod/v3/external.d.ts +6 -0
- package/node_modules/zod/v3/external.js +6 -0
- package/node_modules/zod/v3/helpers/enumUtil.cjs +2 -0
- package/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
- package/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
- package/node_modules/zod/v3/helpers/enumUtil.js +1 -0
- package/node_modules/zod/v3/helpers/errorUtil.cjs +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.js +6 -0
- package/node_modules/zod/v3/helpers/parseUtil.cjs +124 -0
- package/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
- package/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
- package/node_modules/zod/v3/helpers/parseUtil.js +109 -0
- package/node_modules/zod/v3/helpers/partialUtil.cjs +2 -0
- package/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
- package/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
- package/node_modules/zod/v3/helpers/partialUtil.js +1 -0
- package/node_modules/zod/v3/helpers/typeAliases.cjs +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.js +1 -0
- package/node_modules/zod/v3/helpers/util.cjs +137 -0
- package/node_modules/zod/v3/helpers/util.d.cts +85 -0
- package/node_modules/zod/v3/helpers/util.d.ts +85 -0
- package/node_modules/zod/v3/helpers/util.js +133 -0
- package/node_modules/zod/v3/index.cjs +33 -0
- package/node_modules/zod/v3/index.d.cts +4 -0
- package/node_modules/zod/v3/index.d.ts +4 -0
- package/node_modules/zod/v3/index.js +4 -0
- package/node_modules/zod/v3/locales/en.cjs +111 -0
- package/node_modules/zod/v3/locales/en.d.cts +3 -0
- package/node_modules/zod/v3/locales/en.d.ts +3 -0
- package/node_modules/zod/v3/locales/en.js +109 -0
- package/node_modules/zod/v3/standard-schema.cjs +2 -0
- package/node_modules/zod/v3/standard-schema.d.cts +102 -0
- package/node_modules/zod/v3/standard-schema.d.ts +102 -0
- package/node_modules/zod/v3/standard-schema.js +1 -0
- package/node_modules/zod/v3/types.cjs +3775 -0
- package/node_modules/zod/v3/types.d.cts +1031 -0
- package/node_modules/zod/v3/types.d.ts +1031 -0
- package/node_modules/zod/v3/types.js +3693 -0
- package/node_modules/zod/v4/classic/checks.cjs +32 -0
- package/node_modules/zod/v4/classic/checks.d.cts +1 -0
- package/node_modules/zod/v4/classic/checks.d.ts +1 -0
- package/node_modules/zod/v4/classic/checks.js +1 -0
- package/node_modules/zod/v4/classic/coerce.cjs +47 -0
- package/node_modules/zod/v4/classic/coerce.d.cts +17 -0
- package/node_modules/zod/v4/classic/coerce.d.ts +17 -0
- package/node_modules/zod/v4/classic/coerce.js +17 -0
- package/node_modules/zod/v4/classic/compat.cjs +57 -0
- package/node_modules/zod/v4/classic/compat.d.cts +46 -0
- package/node_modules/zod/v4/classic/compat.d.ts +46 -0
- package/node_modules/zod/v4/classic/compat.js +27 -0
- package/node_modules/zod/v4/classic/errors.cjs +67 -0
- package/node_modules/zod/v4/classic/errors.d.cts +30 -0
- package/node_modules/zod/v4/classic/errors.d.ts +30 -0
- package/node_modules/zod/v4/classic/errors.js +41 -0
- package/node_modules/zod/v4/classic/external.cjs +70 -0
- package/node_modules/zod/v4/classic/external.d.cts +13 -0
- package/node_modules/zod/v4/classic/external.d.ts +13 -0
- package/node_modules/zod/v4/classic/external.js +18 -0
- package/node_modules/zod/v4/classic/index.cjs +33 -0
- package/node_modules/zod/v4/classic/index.d.cts +4 -0
- package/node_modules/zod/v4/classic/index.d.ts +4 -0
- package/node_modules/zod/v4/classic/index.js +4 -0
- package/node_modules/zod/v4/classic/iso.cjs +60 -0
- package/node_modules/zod/v4/classic/iso.d.cts +22 -0
- package/node_modules/zod/v4/classic/iso.d.ts +22 -0
- package/node_modules/zod/v4/classic/iso.js +30 -0
- package/node_modules/zod/v4/classic/parse.cjs +32 -0
- package/node_modules/zod/v4/classic/parse.d.cts +23 -0
- package/node_modules/zod/v4/classic/parse.d.ts +23 -0
- package/node_modules/zod/v4/classic/parse.js +6 -0
- package/node_modules/zod/v4/classic/schemas.cjs +1109 -0
- package/node_modules/zod/v4/classic/schemas.d.cts +630 -0
- package/node_modules/zod/v4/classic/schemas.d.ts +630 -0
- package/node_modules/zod/v4/classic/schemas.js +1006 -0
- package/node_modules/zod/v4/core/api.cjs +1039 -0
- package/node_modules/zod/v4/core/api.d.cts +284 -0
- package/node_modules/zod/v4/core/api.d.ts +284 -0
- package/node_modules/zod/v4/core/api.js +906 -0
- package/node_modules/zod/v4/core/checks.cjs +591 -0
- package/node_modules/zod/v4/core/checks.d.cts +278 -0
- package/node_modules/zod/v4/core/checks.d.ts +278 -0
- package/node_modules/zod/v4/core/checks.js +565 -0
- package/node_modules/zod/v4/core/core.cjs +67 -0
- package/node_modules/zod/v4/core/core.d.cts +49 -0
- package/node_modules/zod/v4/core/core.d.ts +49 -0
- package/node_modules/zod/v4/core/core.js +61 -0
- package/node_modules/zod/v4/core/doc.cjs +39 -0
- package/node_modules/zod/v4/core/doc.d.cts +14 -0
- package/node_modules/zod/v4/core/doc.d.ts +14 -0
- package/node_modules/zod/v4/core/doc.js +35 -0
- package/node_modules/zod/v4/core/errors.cjs +226 -0
- package/node_modules/zod/v4/core/errors.d.cts +208 -0
- package/node_modules/zod/v4/core/errors.d.ts +208 -0
- package/node_modules/zod/v4/core/errors.js +195 -0
- package/node_modules/zod/v4/core/function.cjs +102 -0
- package/node_modules/zod/v4/core/function.d.cts +52 -0
- package/node_modules/zod/v4/core/function.d.ts +52 -0
- package/node_modules/zod/v4/core/function.js +75 -0
- package/node_modules/zod/v4/core/index.cjs +44 -0
- package/node_modules/zod/v4/core/index.d.cts +15 -0
- package/node_modules/zod/v4/core/index.d.ts +15 -0
- package/node_modules/zod/v4/core/index.js +15 -0
- package/node_modules/zod/v4/core/json-schema.cjs +2 -0
- package/node_modules/zod/v4/core/json-schema.d.cts +87 -0
- package/node_modules/zod/v4/core/json-schema.d.ts +87 -0
- package/node_modules/zod/v4/core/json-schema.js +1 -0
- package/node_modules/zod/v4/core/parse.cjs +87 -0
- package/node_modules/zod/v4/core/parse.d.cts +25 -0
- package/node_modules/zod/v4/core/parse.d.ts +25 -0
- package/node_modules/zod/v4/core/parse.js +57 -0
- package/node_modules/zod/v4/core/regexes.cjs +103 -0
- package/node_modules/zod/v4/core/regexes.d.cts +62 -0
- package/node_modules/zod/v4/core/regexes.d.ts +62 -0
- package/node_modules/zod/v4/core/regexes.js +95 -0
- package/node_modules/zod/v4/core/registries.cjs +56 -0
- package/node_modules/zod/v4/core/registries.d.cts +35 -0
- package/node_modules/zod/v4/core/registries.d.ts +35 -0
- package/node_modules/zod/v4/core/registries.js +51 -0
- package/node_modules/zod/v4/core/schemas.cjs +1748 -0
- package/node_modules/zod/v4/core/schemas.d.cts +1041 -0
- package/node_modules/zod/v4/core/schemas.d.ts +1041 -0
- package/node_modules/zod/v4/core/schemas.js +1717 -0
- package/node_modules/zod/v4/core/standard-schema.cjs +2 -0
- package/node_modules/zod/v4/core/standard-schema.d.cts +55 -0
- package/node_modules/zod/v4/core/standard-schema.d.ts +55 -0
- package/node_modules/zod/v4/core/standard-schema.js +1 -0
- package/node_modules/zod/v4/core/to-json-schema.cjs +854 -0
- package/node_modules/zod/v4/core/to-json-schema.d.cts +88 -0
- package/node_modules/zod/v4/core/to-json-schema.d.ts +88 -0
- package/node_modules/zod/v4/core/to-json-schema.js +849 -0
- package/node_modules/zod/v4/core/util.cjs +539 -0
- package/node_modules/zod/v4/core/util.d.cts +183 -0
- package/node_modules/zod/v4/core/util.d.ts +183 -0
- package/node_modules/zod/v4/core/util.js +493 -0
- package/node_modules/zod/v4/core/versions.cjs +8 -0
- package/node_modules/zod/v4/core/versions.d.cts +5 -0
- package/node_modules/zod/v4/core/versions.d.ts +5 -0
- package/node_modules/zod/v4/core/versions.js +5 -0
- package/node_modules/zod/v4/index.cjs +22 -0
- package/node_modules/zod/v4/index.d.cts +3 -0
- package/node_modules/zod/v4/index.d.ts +3 -0
- package/node_modules/zod/v4/index.js +3 -0
- package/node_modules/zod/v4/locales/ar.cjs +142 -0
- package/node_modules/zod/v4/locales/ar.d.cts +4 -0
- package/node_modules/zod/v4/locales/ar.d.ts +4 -0
- package/node_modules/zod/v4/locales/ar.js +116 -0
- package/node_modules/zod/v4/locales/az.cjs +141 -0
- package/node_modules/zod/v4/locales/az.d.cts +4 -0
- package/node_modules/zod/v4/locales/az.d.ts +4 -0
- package/node_modules/zod/v4/locales/az.js +115 -0
- package/node_modules/zod/v4/locales/be.cjs +190 -0
- package/node_modules/zod/v4/locales/be.d.cts +4 -0
- package/node_modules/zod/v4/locales/be.d.ts +4 -0
- package/node_modules/zod/v4/locales/be.js +164 -0
- package/node_modules/zod/v4/locales/ca.cjs +144 -0
- package/node_modules/zod/v4/locales/ca.d.cts +4 -0
- package/node_modules/zod/v4/locales/ca.d.ts +4 -0
- package/node_modules/zod/v4/locales/ca.js +118 -0
- package/node_modules/zod/v4/locales/cs.cjs +161 -0
- package/node_modules/zod/v4/locales/cs.d.cts +4 -0
- package/node_modules/zod/v4/locales/cs.d.ts +4 -0
- package/node_modules/zod/v4/locales/cs.js +135 -0
- package/node_modules/zod/v4/locales/de.cjs +142 -0
- package/node_modules/zod/v4/locales/de.d.cts +4 -0
- package/node_modules/zod/v4/locales/de.d.ts +4 -0
- package/node_modules/zod/v4/locales/de.js +116 -0
- package/node_modules/zod/v4/locales/en.cjs +145 -0
- package/node_modules/zod/v4/locales/en.d.cts +5 -0
- package/node_modules/zod/v4/locales/en.d.ts +5 -0
- package/node_modules/zod/v4/locales/en.js +117 -0
- package/node_modules/zod/v4/locales/eo.cjs +144 -0
- package/node_modules/zod/v4/locales/eo.d.cts +5 -0
- package/node_modules/zod/v4/locales/eo.d.ts +5 -0
- package/node_modules/zod/v4/locales/eo.js +116 -0
- package/node_modules/zod/v4/locales/es.cjs +143 -0
- package/node_modules/zod/v4/locales/es.d.cts +4 -0
- package/node_modules/zod/v4/locales/es.d.ts +4 -0
- package/node_modules/zod/v4/locales/es.js +117 -0
- package/node_modules/zod/v4/locales/fa.cjs +148 -0
- package/node_modules/zod/v4/locales/fa.d.cts +4 -0
- package/node_modules/zod/v4/locales/fa.d.ts +4 -0
- package/node_modules/zod/v4/locales/fa.js +122 -0
- package/node_modules/zod/v4/locales/fi.cjs +148 -0
- package/node_modules/zod/v4/locales/fi.d.cts +4 -0
- package/node_modules/zod/v4/locales/fi.d.ts +4 -0
- package/node_modules/zod/v4/locales/fi.js +122 -0
- package/node_modules/zod/v4/locales/fr-CA.cjs +143 -0
- package/node_modules/zod/v4/locales/fr-CA.d.cts +4 -0
- package/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
- package/node_modules/zod/v4/locales/fr-CA.js +117 -0
- package/node_modules/zod/v4/locales/fr.cjs +142 -0
- package/node_modules/zod/v4/locales/fr.d.cts +4 -0
- package/node_modules/zod/v4/locales/fr.d.ts +4 -0
- package/node_modules/zod/v4/locales/fr.js +116 -0
- package/node_modules/zod/v4/locales/he.cjs +143 -0
- package/node_modules/zod/v4/locales/he.d.cts +4 -0
- package/node_modules/zod/v4/locales/he.d.ts +4 -0
- package/node_modules/zod/v4/locales/he.js +117 -0
- package/node_modules/zod/v4/locales/hu.cjs +143 -0
- package/node_modules/zod/v4/locales/hu.d.cts +4 -0
- package/node_modules/zod/v4/locales/hu.d.ts +4 -0
- package/node_modules/zod/v4/locales/hu.js +117 -0
- package/node_modules/zod/v4/locales/id.cjs +142 -0
- package/node_modules/zod/v4/locales/id.d.cts +4 -0
- package/node_modules/zod/v4/locales/id.d.ts +4 -0
- package/node_modules/zod/v4/locales/id.js +116 -0
- package/node_modules/zod/v4/locales/index.cjs +84 -0
- package/node_modules/zod/v4/locales/index.d.cts +39 -0
- package/node_modules/zod/v4/locales/index.d.ts +39 -0
- package/node_modules/zod/v4/locales/index.js +39 -0
- package/node_modules/zod/v4/locales/it.cjs +143 -0
- package/node_modules/zod/v4/locales/it.d.cts +4 -0
- package/node_modules/zod/v4/locales/it.d.ts +4 -0
- package/node_modules/zod/v4/locales/it.js +117 -0
- package/node_modules/zod/v4/locales/ja.cjs +141 -0
- package/node_modules/zod/v4/locales/ja.d.cts +4 -0
- package/node_modules/zod/v4/locales/ja.d.ts +4 -0
- package/node_modules/zod/v4/locales/ja.js +115 -0
- package/node_modules/zod/v4/locales/kh.cjs +143 -0
- package/node_modules/zod/v4/locales/kh.d.cts +4 -0
- package/node_modules/zod/v4/locales/kh.d.ts +4 -0
- package/node_modules/zod/v4/locales/kh.js +117 -0
- package/node_modules/zod/v4/locales/ko.cjs +147 -0
- package/node_modules/zod/v4/locales/ko.d.cts +4 -0
- package/node_modules/zod/v4/locales/ko.d.ts +4 -0
- package/node_modules/zod/v4/locales/ko.js +121 -0
- package/node_modules/zod/v4/locales/mk.cjs +144 -0
- package/node_modules/zod/v4/locales/mk.d.cts +4 -0
- package/node_modules/zod/v4/locales/mk.d.ts +4 -0
- package/node_modules/zod/v4/locales/mk.js +118 -0
- package/node_modules/zod/v4/locales/ms.cjs +142 -0
- package/node_modules/zod/v4/locales/ms.d.cts +4 -0
- package/node_modules/zod/v4/locales/ms.d.ts +4 -0
- package/node_modules/zod/v4/locales/ms.js +116 -0
- package/node_modules/zod/v4/locales/nl.cjs +143 -0
- package/node_modules/zod/v4/locales/nl.d.cts +4 -0
- package/node_modules/zod/v4/locales/nl.d.ts +4 -0
- package/node_modules/zod/v4/locales/nl.js +117 -0
- package/node_modules/zod/v4/locales/no.cjs +142 -0
- package/node_modules/zod/v4/locales/no.d.cts +4 -0
- package/node_modules/zod/v4/locales/no.d.ts +4 -0
- package/node_modules/zod/v4/locales/no.js +116 -0
- package/node_modules/zod/v4/locales/ota.cjs +143 -0
- package/node_modules/zod/v4/locales/ota.d.cts +4 -0
- package/node_modules/zod/v4/locales/ota.d.ts +4 -0
- package/node_modules/zod/v4/locales/ota.js +117 -0
- package/node_modules/zod/v4/locales/pl.cjs +143 -0
- package/node_modules/zod/v4/locales/pl.d.cts +4 -0
- package/node_modules/zod/v4/locales/pl.d.ts +4 -0
- package/node_modules/zod/v4/locales/pl.js +117 -0
- package/node_modules/zod/v4/locales/ps.cjs +148 -0
- package/node_modules/zod/v4/locales/ps.d.cts +4 -0
- package/node_modules/zod/v4/locales/ps.d.ts +4 -0
- package/node_modules/zod/v4/locales/ps.js +122 -0
- package/node_modules/zod/v4/locales/pt.cjs +142 -0
- package/node_modules/zod/v4/locales/pt.d.cts +4 -0
- package/node_modules/zod/v4/locales/pt.d.ts +4 -0
- package/node_modules/zod/v4/locales/pt.js +116 -0
- package/node_modules/zod/v4/locales/ru.cjs +190 -0
- package/node_modules/zod/v4/locales/ru.d.cts +4 -0
- package/node_modules/zod/v4/locales/ru.d.ts +4 -0
- package/node_modules/zod/v4/locales/ru.js +164 -0
- package/node_modules/zod/v4/locales/sl.cjs +143 -0
- package/node_modules/zod/v4/locales/sl.d.cts +4 -0
- package/node_modules/zod/v4/locales/sl.d.ts +4 -0
- package/node_modules/zod/v4/locales/sl.js +117 -0
- package/node_modules/zod/v4/locales/sv.cjs +144 -0
- package/node_modules/zod/v4/locales/sv.d.cts +4 -0
- package/node_modules/zod/v4/locales/sv.d.ts +4 -0
- package/node_modules/zod/v4/locales/sv.js +118 -0
- package/node_modules/zod/v4/locales/ta.cjs +143 -0
- package/node_modules/zod/v4/locales/ta.d.cts +4 -0
- package/node_modules/zod/v4/locales/ta.d.ts +4 -0
- package/node_modules/zod/v4/locales/ta.js +117 -0
- package/node_modules/zod/v4/locales/th.cjs +143 -0
- package/node_modules/zod/v4/locales/th.d.cts +4 -0
- package/node_modules/zod/v4/locales/th.d.ts +4 -0
- package/node_modules/zod/v4/locales/th.js +117 -0
- package/node_modules/zod/v4/locales/tr.cjs +143 -0
- package/node_modules/zod/v4/locales/tr.d.cts +5 -0
- package/node_modules/zod/v4/locales/tr.d.ts +5 -0
- package/node_modules/zod/v4/locales/tr.js +115 -0
- package/node_modules/zod/v4/locales/ua.cjs +143 -0
- package/node_modules/zod/v4/locales/ua.d.cts +4 -0
- package/node_modules/zod/v4/locales/ua.d.ts +4 -0
- package/node_modules/zod/v4/locales/ua.js +117 -0
- package/node_modules/zod/v4/locales/ur.cjs +143 -0
- package/node_modules/zod/v4/locales/ur.d.cts +4 -0
- package/node_modules/zod/v4/locales/ur.d.ts +4 -0
- package/node_modules/zod/v4/locales/ur.js +117 -0
- package/node_modules/zod/v4/locales/vi.cjs +142 -0
- package/node_modules/zod/v4/locales/vi.d.cts +4 -0
- package/node_modules/zod/v4/locales/vi.d.ts +4 -0
- package/node_modules/zod/v4/locales/vi.js +116 -0
- package/node_modules/zod/v4/locales/zh-CN.cjs +142 -0
- package/node_modules/zod/v4/locales/zh-CN.d.cts +4 -0
- package/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
- package/node_modules/zod/v4/locales/zh-CN.js +116 -0
- package/node_modules/zod/v4/locales/zh-TW.cjs +143 -0
- package/node_modules/zod/v4/locales/zh-TW.d.cts +4 -0
- package/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
- package/node_modules/zod/v4/locales/zh-TW.js +117 -0
- package/node_modules/zod/v4/mini/checks.cjs +34 -0
- package/node_modules/zod/v4/mini/checks.d.cts +1 -0
- package/node_modules/zod/v4/mini/checks.d.ts +1 -0
- package/node_modules/zod/v4/mini/checks.js +1 -0
- package/node_modules/zod/v4/mini/coerce.cjs +47 -0
- package/node_modules/zod/v4/mini/coerce.d.cts +7 -0
- package/node_modules/zod/v4/mini/coerce.d.ts +7 -0
- package/node_modules/zod/v4/mini/coerce.js +17 -0
- package/node_modules/zod/v4/mini/external.cjs +62 -0
- package/node_modules/zod/v4/mini/external.d.cts +11 -0
- package/node_modules/zod/v4/mini/external.d.ts +11 -0
- package/node_modules/zod/v4/mini/external.js +13 -0
- package/node_modules/zod/v4/mini/index.cjs +32 -0
- package/node_modules/zod/v4/mini/index.d.cts +3 -0
- package/node_modules/zod/v4/mini/index.d.ts +3 -0
- package/node_modules/zod/v4/mini/index.js +3 -0
- package/node_modules/zod/v4/mini/iso.cjs +60 -0
- package/node_modules/zod/v4/mini/iso.d.cts +22 -0
- package/node_modules/zod/v4/mini/iso.d.ts +22 -0
- package/node_modules/zod/v4/mini/iso.js +30 -0
- package/node_modules/zod/v4/mini/parse.cjs +8 -0
- package/node_modules/zod/v4/mini/parse.d.cts +1 -0
- package/node_modules/zod/v4/mini/parse.d.ts +1 -0
- package/node_modules/zod/v4/mini/parse.js +1 -0
- package/node_modules/zod/v4/mini/schemas.cjs +839 -0
- package/node_modules/zod/v4/mini/schemas.d.cts +356 -0
- package/node_modules/zod/v4/mini/schemas.d.ts +356 -0
- package/node_modules/zod/v4/mini/schemas.js +732 -0
- package/node_modules/zod/v4-mini/index.cjs +17 -0
- package/node_modules/zod/v4-mini/index.d.cts +1 -0
- package/node_modules/zod/v4-mini/index.d.ts +1 -0
- package/node_modules/zod/v4-mini/index.js +1 -0
- package/node_modules/zod-to-json-schema/.github/CR_logotype-full-color.png +0 -0
- package/node_modules/zod-to-json-schema/.github/FUNDING.yml +1 -0
- package/node_modules/zod-to-json-schema/.prettierrc.json +1 -0
- package/node_modules/zod-to-json-schema/LICENSE +15 -0
- package/node_modules/zod-to-json-schema/README.md +390 -0
- package/node_modules/zod-to-json-schema/changelog.md +83 -0
- package/node_modules/zod-to-json-schema/contributing.md +9 -0
- package/node_modules/zod-to-json-schema/createIndex.ts +32 -0
- package/node_modules/zod-to-json-schema/dist/cjs/Options.js +51 -0
- package/node_modules/zod-to-json-schema/dist/cjs/Refs.js +26 -0
- package/node_modules/zod-to-json-schema/dist/cjs/errorMessages.js +19 -0
- package/node_modules/zod-to-json-schema/dist/cjs/getRelativePath.js +12 -0
- package/node_modules/zod-to-json-schema/dist/cjs/index.js +56 -0
- package/node_modules/zod-to-json-schema/dist/cjs/package.json +1 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parseDef.js +66 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parseTypes.js +2 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/any.js +21 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/array.js +30 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/bigint.js +53 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/boolean.js +9 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/branded.js +8 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/catch.js +8 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/date.js +50 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/default.js +11 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/effects.js +11 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/enum.js +10 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/intersection.js +56 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/literal.js +25 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/map.js +30 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/nativeEnum.js +20 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/never.js +15 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/null.js +14 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/nullable.js +37 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/number.js +56 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/object.js +76 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/optional.js +25 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/pipeline.js +24 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/promise.js +8 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/readonly.js +8 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/record.js +65 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/set.js +24 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/string.js +356 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/tuple.js +36 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/undefined.js +10 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/union.js +84 -0
- package/node_modules/zod-to-json-schema/dist/cjs/parsers/unknown.js +8 -0
- package/node_modules/zod-to-json-schema/dist/cjs/selectParser.js +109 -0
- package/node_modules/zod-to-json-schema/dist/cjs/zodToJsonSchema.js +90 -0
- package/node_modules/zod-to-json-schema/dist/esm/Options.js +46 -0
- package/node_modules/zod-to-json-schema/dist/esm/Refs.js +22 -0
- package/node_modules/zod-to-json-schema/dist/esm/errorMessages.js +14 -0
- package/node_modules/zod-to-json-schema/dist/esm/getRelativePath.js +8 -0
- package/node_modules/zod-to-json-schema/dist/esm/index.js +40 -0
- package/node_modules/zod-to-json-schema/dist/esm/package.json +1 -0
- package/node_modules/zod-to-json-schema/dist/esm/parseDef.js +62 -0
- package/node_modules/zod-to-json-schema/dist/esm/parseTypes.js +1 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/any.js +17 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/array.js +26 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/bigint.js +49 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/boolean.js +5 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/branded.js +4 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/catch.js +4 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/date.js +46 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/default.js +7 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/effects.js +7 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/enum.js +6 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/intersection.js +52 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/literal.js +21 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/map.js +26 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js +16 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/never.js +11 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/null.js +10 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js +33 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/number.js +52 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/object.js +72 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/optional.js +21 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/pipeline.js +20 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/promise.js +4 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js +4 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/record.js +61 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/set.js +20 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/string.js +352 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/tuple.js +32 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js +6 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/union.js +80 -0
- package/node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js +4 -0
- package/node_modules/zod-to-json-schema/dist/esm/selectParser.js +105 -0
- package/node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js +87 -0
- package/node_modules/zod-to-json-schema/dist/types/Options.d.ts +37 -0
- package/node_modules/zod-to-json-schema/dist/types/Refs.d.ts +17 -0
- package/node_modules/zod-to-json-schema/dist/types/errorMessages.d.ts +15 -0
- package/node_modules/zod-to-json-schema/dist/types/getRelativePath.d.ts +1 -0
- package/node_modules/zod-to-json-schema/dist/types/index.d.ts +40 -0
- package/node_modules/zod-to-json-schema/dist/types/parseDef.d.ts +4 -0
- package/node_modules/zod-to-json-schema/dist/types/parseTypes.d.ts +34 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/any.d.ts +5 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/array.d.ts +12 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/bigint.d.ts +14 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/boolean.d.ts +4 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/branded.d.ts +3 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/catch.d.ts +3 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/date.d.ts +15 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/default.d.ts +6 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/effects.d.ts +4 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/enum.d.ts +6 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/intersection.d.ts +8 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/literal.d.ts +9 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/map.d.ts +15 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/nativeEnum.d.ts +6 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/never.d.ts +6 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/null.d.ts +5 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/nullable.d.ts +10 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/number.d.ts +13 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/object.d.ts +10 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/optional.d.ts +4 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/pipeline.d.ts +5 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/promise.d.ts +4 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/readonly.d.ts +3 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/record.d.ts +13 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/set.d.ts +13 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/string.d.ts +73 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/tuple.d.ts +13 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/undefined.d.ts +6 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/union.d.ts +23 -0
- package/node_modules/zod-to-json-schema/dist/types/parsers/unknown.d.ts +4 -0
- package/node_modules/zod-to-json-schema/dist/types/selectParser.d.ts +5 -0
- package/node_modules/zod-to-json-schema/dist/types/zodToJsonSchema.d.ts +10 -0
- package/node_modules/zod-to-json-schema/package.json +85 -0
- package/node_modules/zod-to-json-schema/postcjs.ts +3 -0
- package/node_modules/zod-to-json-schema/postesm.ts +3 -0
- package/package.json +56 -0
- package/scripts/postinstall.js +86 -0
- package/server.js +83 -0
|
@@ -0,0 +1,2724 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
// bin/http.ts
|
|
4
|
+
import { randomUUID } from "crypto";
|
|
5
|
+
import express from "express";
|
|
6
|
+
import { SSEServerTransport } from "@modelcontextprotocol/sdk/server/sse.js";
|
|
7
|
+
import { StreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/streamableHttp.js";
|
|
8
|
+
|
|
9
|
+
// src/lib/sp-client.ts
|
|
10
|
+
var SPReceiptError = class extends Error {
|
|
11
|
+
constructor(message, statusCode, body) {
|
|
12
|
+
super(message);
|
|
13
|
+
this.statusCode = statusCode;
|
|
14
|
+
this.body = body;
|
|
15
|
+
this.name = "SPReceiptError";
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
var SPClient = class {
|
|
19
|
+
constructor(baseUrl) {
|
|
20
|
+
this.baseUrl = baseUrl;
|
|
21
|
+
}
|
|
22
|
+
sessionCookie = "";
|
|
23
|
+
apiKey = "";
|
|
24
|
+
setApiKey(key) {
|
|
25
|
+
this.apiKey = key;
|
|
26
|
+
}
|
|
27
|
+
setSessionCookie(cookie) {
|
|
28
|
+
this.sessionCookie = cookie;
|
|
29
|
+
}
|
|
30
|
+
async fetch(path, init) {
|
|
31
|
+
const url = `${this.baseUrl}${path}`;
|
|
32
|
+
const headers = {
|
|
33
|
+
"Content-Type": "application/json",
|
|
34
|
+
...init?.headers
|
|
35
|
+
};
|
|
36
|
+
if (this.sessionCookie) {
|
|
37
|
+
headers["Cookie"] = this.sessionCookie;
|
|
38
|
+
}
|
|
39
|
+
if (this.apiKey) {
|
|
40
|
+
headers["X-API-Key"] = this.apiKey;
|
|
41
|
+
}
|
|
42
|
+
return globalThis.fetch(url, {
|
|
43
|
+
...init,
|
|
44
|
+
headers
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Get SP public key.
|
|
49
|
+
*/
|
|
50
|
+
async getPublicKey() {
|
|
51
|
+
const res = await this.fetch("/api/as/pubkey");
|
|
52
|
+
if (!res.ok) throw new Error(`SP pubkey request failed: ${res.status}`);
|
|
53
|
+
const data = await res.json();
|
|
54
|
+
return data.publicKey;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Get all attestations for a frame hash.
|
|
58
|
+
*/
|
|
59
|
+
async getAttestations(frameHash) {
|
|
60
|
+
const res = await this.fetch(`/api/attestations?frame_hash=${encodeURIComponent(frameHash)}`);
|
|
61
|
+
if (!res.ok) throw new Error(`SP attestations request failed: ${res.status}`);
|
|
62
|
+
return res.json();
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Get pending attestations for a domain.
|
|
66
|
+
*/
|
|
67
|
+
async getPendingAttestations(domain) {
|
|
68
|
+
const res = await this.fetch(`/api/attestations/pending?domain=${encodeURIComponent(domain)}`);
|
|
69
|
+
if (!res.ok) throw new Error(`SP pending request failed: ${res.status}`);
|
|
70
|
+
return res.json();
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Request a signed receipt from the SP.
|
|
74
|
+
*
|
|
75
|
+
* v0.4:
|
|
76
|
+
* - For automatic-mode attestations, this is the pre-flight check before
|
|
77
|
+
* tool execution — the SP enforces bounds/limits and returns a signed
|
|
78
|
+
* receipt on success.
|
|
79
|
+
* - For review-mode attestations, the gateway first submits a proposal,
|
|
80
|
+
* waits for domain owners to commit, then calls postReceipt with the
|
|
81
|
+
* `proposalId` (and the original `toolArgs`). The SP verifies the
|
|
82
|
+
* proposal match, atomically transitions it to `executed`, and signs a
|
|
83
|
+
* receipt bound to the proposal.
|
|
84
|
+
*
|
|
85
|
+
* Response envelope (v0.4):
|
|
86
|
+
* { approved: true, receipt: {...} } — on success
|
|
87
|
+
* { approved: false, errors: [{code, message, ...}] } — on rejection
|
|
88
|
+
*
|
|
89
|
+
* Errors throw SPReceiptError with the structured `errors` array in `body`.
|
|
90
|
+
*/
|
|
91
|
+
async postReceipt(data) {
|
|
92
|
+
const res = await this.fetch("/api/as/receipt", {
|
|
93
|
+
method: "POST",
|
|
94
|
+
body: JSON.stringify(data)
|
|
95
|
+
});
|
|
96
|
+
const body = await res.json().catch(() => ({}));
|
|
97
|
+
if (!res.ok || body.approved === false) {
|
|
98
|
+
const errors = body.errors;
|
|
99
|
+
const first = errors?.[0];
|
|
100
|
+
const message = first?.message ?? first?.code ?? body.error ?? `SP receipt request failed: ${res.status}`;
|
|
101
|
+
throw new SPReceiptError(message, res.status, body);
|
|
102
|
+
}
|
|
103
|
+
return { receipt: body.receipt };
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Submit a proposal for deferred commitment review.
|
|
107
|
+
* Phase 6: accepts optional pendingApprovers and createdBy for above-cap routing.
|
|
108
|
+
*/
|
|
109
|
+
async submitProposal(data) {
|
|
110
|
+
const res = await this.fetch("/api/proposals", {
|
|
111
|
+
method: "POST",
|
|
112
|
+
body: JSON.stringify({
|
|
113
|
+
frame_hash: data.frameHash,
|
|
114
|
+
profile_id: data.profileId,
|
|
115
|
+
path: data.path,
|
|
116
|
+
pending_domains: data.pendingDomains,
|
|
117
|
+
tool: data.tool,
|
|
118
|
+
tool_args: data.toolArgs,
|
|
119
|
+
execution_context: data.executionContext,
|
|
120
|
+
// Phase 6
|
|
121
|
+
...data.pendingApprovers && data.pendingApprovers.length > 0 ? { pending_approvers: data.pendingApprovers } : {},
|
|
122
|
+
...data.createdBy ? { created_by: data.createdBy } : {}
|
|
123
|
+
})
|
|
124
|
+
});
|
|
125
|
+
if (!res.ok) {
|
|
126
|
+
const body = await res.json().catch(() => ({}));
|
|
127
|
+
throw new Error(body.error ?? `SP proposal submission failed: ${res.status}`);
|
|
128
|
+
}
|
|
129
|
+
return res.json();
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Phase 6: Fetch frame metadata for an authority by its boundsHash / frameHash.
|
|
133
|
+
* Used to read aboveCap and approversFrozen at action time.
|
|
134
|
+
*/
|
|
135
|
+
async getFrameMetadata(frameHash) {
|
|
136
|
+
const res = await this.fetch(`/api/as/frame/${encodeURIComponent(frameHash)}`);
|
|
137
|
+
if (res.status === 404) return null;
|
|
138
|
+
if (!res.ok) return null;
|
|
139
|
+
return res.json();
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Get proposals that have been fully committed and are ready for execution.
|
|
143
|
+
*/
|
|
144
|
+
async getCommittedProposals() {
|
|
145
|
+
const res = await this.fetch("/api/proposals?status=committed");
|
|
146
|
+
if (!res.ok) throw new Error(`SP committed proposals request failed: ${res.status}`);
|
|
147
|
+
const data = await res.json();
|
|
148
|
+
return data.proposals;
|
|
149
|
+
}
|
|
150
|
+
// NOTE: v0.3 used POST /api/proposals/{id}/resolve with action: 'executed'
|
|
151
|
+
// to mark a proposal as executed after the gateway ran the tool. In v0.4
|
|
152
|
+
// the committed→executed transition is atomic with receipt issuance, so
|
|
153
|
+
// this helper was removed. Use postReceipt({ proposalId }) instead.
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
// src/lib/attestation-cache.ts
|
|
157
|
+
var AttestationCache = class {
|
|
158
|
+
constructor(spClient) {
|
|
159
|
+
this.spClient = spClient;
|
|
160
|
+
}
|
|
161
|
+
spPublicKey = null;
|
|
162
|
+
spPublicKeyFetchedAt = 0;
|
|
163
|
+
SP_PUBKEY_TTL = 300;
|
|
164
|
+
// 5 minutes
|
|
165
|
+
/** Cache of authorizations by path (e.g., "payment-routine") */
|
|
166
|
+
authorizations = /* @__PURE__ */ new Map();
|
|
167
|
+
lastSync = 0;
|
|
168
|
+
/**
|
|
169
|
+
* Get the SP public key, fetching from SP if not cached or expired.
|
|
170
|
+
*/
|
|
171
|
+
async getPublicKey() {
|
|
172
|
+
const now = Math.floor(Date.now() / 1e3);
|
|
173
|
+
if (this.spPublicKey && now - this.spPublicKeyFetchedAt < this.SP_PUBKEY_TTL) {
|
|
174
|
+
return this.spPublicKey;
|
|
175
|
+
}
|
|
176
|
+
this.spPublicKey = await this.spClient.getPublicKey();
|
|
177
|
+
this.spPublicKeyFetchedAt = now;
|
|
178
|
+
return this.spPublicKey;
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Get a cached authorization by path. If not cached, returns null.
|
|
182
|
+
* Use syncAuthorization() to fetch from SP.
|
|
183
|
+
*/
|
|
184
|
+
getAuthorization(path) {
|
|
185
|
+
const auth = this.authorizations.get(path);
|
|
186
|
+
if (!auth) return null;
|
|
187
|
+
const now = Math.floor(Date.now() / 1e3);
|
|
188
|
+
const hasValid = auth.attestations.some((a) => a.expiresAt > now);
|
|
189
|
+
if (!hasValid) {
|
|
190
|
+
this.authorizations.delete(path);
|
|
191
|
+
return null;
|
|
192
|
+
}
|
|
193
|
+
return auth;
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Fetch attestation data from SP for a frame hash and cache it.
|
|
197
|
+
*/
|
|
198
|
+
async syncAuthorization(frameHash) {
|
|
199
|
+
const result = await this.spClient.getAttestations(frameHash);
|
|
200
|
+
if (!result.profile_id || !result.frame) return null;
|
|
201
|
+
const storageHash = result.frame_hash ?? result.bounds_hash;
|
|
202
|
+
const bounds = result.bounds ?? result.frame;
|
|
203
|
+
const auth = {
|
|
204
|
+
frameHash: storageHash,
|
|
205
|
+
boundsHash: result.bounds_hash,
|
|
206
|
+
// content fingerprint (undefined for pre-v0.4 records)
|
|
207
|
+
contextHash: result.context_hash,
|
|
208
|
+
profileId: result.profile_id,
|
|
209
|
+
path: result.path ?? result.profile_id,
|
|
210
|
+
frame: bounds,
|
|
211
|
+
// compat alias
|
|
212
|
+
bounds: result.bounds,
|
|
213
|
+
// v0.4 (undefined for v0.3)
|
|
214
|
+
attestations: result.attestations.map((a) => ({
|
|
215
|
+
domain: a.domain,
|
|
216
|
+
blob: a.blob,
|
|
217
|
+
expiresAt: a.expires_at
|
|
218
|
+
})),
|
|
219
|
+
requiredDomains: result.required_domains ?? [],
|
|
220
|
+
attestedDomains: result.attested_domains ?? [],
|
|
221
|
+
deferredCommitmentDomains: result.deferred_commitment_domains ?? [],
|
|
222
|
+
complete: result.complete
|
|
223
|
+
};
|
|
224
|
+
this.authorizations.set(auth.path, auth);
|
|
225
|
+
return auth;
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* Get all cached authorizations (both active and pending).
|
|
229
|
+
*/
|
|
230
|
+
getAllAuthorizations() {
|
|
231
|
+
const now = Math.floor(Date.now() / 1e3);
|
|
232
|
+
const results = [];
|
|
233
|
+
for (const [path, auth] of this.authorizations) {
|
|
234
|
+
const hasValid = auth.attestations.some((a) => a.expiresAt > now);
|
|
235
|
+
if (hasValid) {
|
|
236
|
+
results.push(auth);
|
|
237
|
+
} else {
|
|
238
|
+
this.authorizations.delete(path);
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
return results;
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* Fetch pending attestations from SP for a domain.
|
|
245
|
+
*/
|
|
246
|
+
async getPendingAttestations(domain) {
|
|
247
|
+
return this.spClient.getPendingAttestations(domain);
|
|
248
|
+
}
|
|
249
|
+
/**
|
|
250
|
+
* Cache an authorization directly (e.g., from SP response after creation).
|
|
251
|
+
*/
|
|
252
|
+
cacheAuthorization(auth) {
|
|
253
|
+
this.authorizations.set(auth.path, auth);
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* Remove a cached authorization by path. Called when the SP reports the
|
|
257
|
+
* attestation has been revoked, so subsequent list calls reflect reality.
|
|
258
|
+
*/
|
|
259
|
+
invalidate(path) {
|
|
260
|
+
this.authorizations.delete(path);
|
|
261
|
+
}
|
|
262
|
+
};
|
|
263
|
+
|
|
264
|
+
// src/lib/gate-store.ts
|
|
265
|
+
import { mkdirSync, readFileSync, writeFileSync, existsSync, unlinkSync } from "fs";
|
|
266
|
+
import { homedir } from "os";
|
|
267
|
+
import { dirname, join } from "path";
|
|
268
|
+
import { createCipheriv, createDecipheriv, randomBytes } from "crypto";
|
|
269
|
+
var DEFAULT_DIR = process.env.SUVEREN_DATA_DIR ?? join(homedir(), ".suveren");
|
|
270
|
+
var GateStore = class {
|
|
271
|
+
entries = /* @__PURE__ */ new Map();
|
|
272
|
+
baseDir;
|
|
273
|
+
vaultKey = null;
|
|
274
|
+
constructor(filePath) {
|
|
275
|
+
if (filePath && filePath.endsWith(".json")) {
|
|
276
|
+
this.baseDir = dirname(filePath);
|
|
277
|
+
} else {
|
|
278
|
+
this.baseDir = filePath ?? DEFAULT_DIR;
|
|
279
|
+
}
|
|
280
|
+
this.loadPlaintext();
|
|
281
|
+
}
|
|
282
|
+
/**
|
|
283
|
+
* Set the vault key for encryption. Triggers migration from plaintext if needed.
|
|
284
|
+
*/
|
|
285
|
+
setVaultKey(key) {
|
|
286
|
+
this.vaultKey = key;
|
|
287
|
+
if (existsSync(this.encryptedFilePath)) {
|
|
288
|
+
this.loadEncrypted();
|
|
289
|
+
} else if (this.entries.size > 0) {
|
|
290
|
+
this.persistEncrypted();
|
|
291
|
+
if (existsSync(this.plaintextFilePath)) {
|
|
292
|
+
try {
|
|
293
|
+
unlinkSync(this.plaintextFilePath);
|
|
294
|
+
} catch {
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
set(path, entry) {
|
|
300
|
+
this.entries.set(path, entry);
|
|
301
|
+
this.persist();
|
|
302
|
+
}
|
|
303
|
+
get(path) {
|
|
304
|
+
return this.entries.get(path) ?? null;
|
|
305
|
+
}
|
|
306
|
+
getAll() {
|
|
307
|
+
return Array.from(this.entries.values());
|
|
308
|
+
}
|
|
309
|
+
delete(path) {
|
|
310
|
+
this.entries.delete(path);
|
|
311
|
+
this.persist();
|
|
312
|
+
}
|
|
313
|
+
// ─── Encryption helpers ─────────────────────────────────────────────────
|
|
314
|
+
encrypt(plaintext) {
|
|
315
|
+
if (!this.vaultKey) throw new Error("No vault key");
|
|
316
|
+
const iv = randomBytes(12);
|
|
317
|
+
const cipher = createCipheriv("aes-256-gcm", this.vaultKey, iv);
|
|
318
|
+
const encrypted = Buffer.concat([cipher.update(plaintext, "utf8"), cipher.final()]);
|
|
319
|
+
const tag = cipher.getAuthTag();
|
|
320
|
+
return {
|
|
321
|
+
iv: iv.toString("hex"),
|
|
322
|
+
ciphertext: encrypted.toString("hex"),
|
|
323
|
+
tag: tag.toString("hex")
|
|
324
|
+
};
|
|
325
|
+
}
|
|
326
|
+
decrypt(blob) {
|
|
327
|
+
if (!this.vaultKey) throw new Error("No vault key");
|
|
328
|
+
const decipher = createDecipheriv(
|
|
329
|
+
"aes-256-gcm",
|
|
330
|
+
this.vaultKey,
|
|
331
|
+
Buffer.from(blob.iv, "hex")
|
|
332
|
+
);
|
|
333
|
+
decipher.setAuthTag(Buffer.from(blob.tag, "hex"));
|
|
334
|
+
const decrypted = Buffer.concat([
|
|
335
|
+
decipher.update(Buffer.from(blob.ciphertext, "hex")),
|
|
336
|
+
decipher.final()
|
|
337
|
+
]);
|
|
338
|
+
return decrypted.toString("utf8");
|
|
339
|
+
}
|
|
340
|
+
// ─── File paths ─────────────────────────────────────────────────────────
|
|
341
|
+
get plaintextFilePath() {
|
|
342
|
+
return join(this.baseDir, "gates.json");
|
|
343
|
+
}
|
|
344
|
+
get encryptedFilePath() {
|
|
345
|
+
return join(this.baseDir, "gates.enc.json");
|
|
346
|
+
}
|
|
347
|
+
// ─── Load / Persist ─────────────────────────────────────────────────────
|
|
348
|
+
loadPlaintext() {
|
|
349
|
+
if (!existsSync(this.plaintextFilePath)) {
|
|
350
|
+
mkdirSync(this.baseDir, { recursive: true });
|
|
351
|
+
return;
|
|
352
|
+
}
|
|
353
|
+
try {
|
|
354
|
+
const raw = readFileSync(this.plaintextFilePath, "utf-8");
|
|
355
|
+
const data = JSON.parse(raw);
|
|
356
|
+
this.entries = new Map(Object.entries(data.entries));
|
|
357
|
+
} catch {
|
|
358
|
+
console.error(`[GateStore] Could not parse ${this.plaintextFilePath}, starting fresh`);
|
|
359
|
+
this.entries = /* @__PURE__ */ new Map();
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
loadEncrypted() {
|
|
363
|
+
if (!existsSync(this.encryptedFilePath)) return;
|
|
364
|
+
try {
|
|
365
|
+
const raw = readFileSync(this.encryptedFilePath, "utf-8");
|
|
366
|
+
const data = JSON.parse(raw);
|
|
367
|
+
this.entries = /* @__PURE__ */ new Map();
|
|
368
|
+
for (const [key, blob] of Object.entries(data.entries)) {
|
|
369
|
+
const entry = JSON.parse(this.decrypt(blob));
|
|
370
|
+
this.entries.set(key, entry);
|
|
371
|
+
}
|
|
372
|
+
} catch (err) {
|
|
373
|
+
console.error(`[GateStore] Could not decrypt ${this.encryptedFilePath}:`, err);
|
|
374
|
+
this.entries = /* @__PURE__ */ new Map();
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
persist() {
|
|
378
|
+
if (this.vaultKey) {
|
|
379
|
+
this.persistEncrypted();
|
|
380
|
+
} else {
|
|
381
|
+
this.persistPlaintext();
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
persistPlaintext() {
|
|
385
|
+
const data = {
|
|
386
|
+
version: 1,
|
|
387
|
+
entries: Object.fromEntries(this.entries)
|
|
388
|
+
};
|
|
389
|
+
mkdirSync(this.baseDir, { recursive: true, mode: 448 });
|
|
390
|
+
writeFileSync(this.plaintextFilePath, JSON.stringify(data, null, 2), { encoding: "utf-8", mode: 384 });
|
|
391
|
+
}
|
|
392
|
+
persistEncrypted() {
|
|
393
|
+
const data = {
|
|
394
|
+
version: 1,
|
|
395
|
+
entries: {}
|
|
396
|
+
};
|
|
397
|
+
for (const [key, entry] of this.entries) {
|
|
398
|
+
data.entries[key] = this.encrypt(JSON.stringify(entry));
|
|
399
|
+
}
|
|
400
|
+
mkdirSync(this.baseDir, { recursive: true, mode: 448 });
|
|
401
|
+
writeFileSync(this.encryptedFilePath, JSON.stringify(data, null, 2), { encoding: "utf-8", mode: 384 });
|
|
402
|
+
}
|
|
403
|
+
};
|
|
404
|
+
|
|
405
|
+
// src/lib/execution-log.ts
|
|
406
|
+
import { mkdirSync as mkdirSync2, readFileSync as readFileSync2, writeFileSync as writeFileSync2, existsSync as existsSync2, unlinkSync as unlinkSync2 } from "fs";
|
|
407
|
+
import { homedir as homedir2 } from "os";
|
|
408
|
+
import { dirname as dirname2, join as join2 } from "path";
|
|
409
|
+
import { createCipheriv as createCipheriv2, createDecipheriv as createDecipheriv2, randomBytes as randomBytes2 } from "crypto";
|
|
410
|
+
var DEFAULT_DIR2 = process.env.SUVEREN_DATA_DIR ?? join2(homedir2(), ".suveren");
|
|
411
|
+
var MAX_AGE_SECONDS = 31 * 24 * 60 * 60;
|
|
412
|
+
var ExecutionLog = class {
|
|
413
|
+
entries = [];
|
|
414
|
+
baseDir;
|
|
415
|
+
vaultKey = null;
|
|
416
|
+
constructor(filePath) {
|
|
417
|
+
if (filePath && filePath.endsWith(".json")) {
|
|
418
|
+
this.baseDir = dirname2(filePath);
|
|
419
|
+
} else {
|
|
420
|
+
this.baseDir = filePath ?? DEFAULT_DIR2;
|
|
421
|
+
}
|
|
422
|
+
this.loadPlaintext();
|
|
423
|
+
}
|
|
424
|
+
/**
|
|
425
|
+
* Set the vault key for encryption. Triggers migration from plaintext if needed.
|
|
426
|
+
*/
|
|
427
|
+
setVaultKey(key) {
|
|
428
|
+
this.vaultKey = key;
|
|
429
|
+
if (existsSync2(this.encryptedFilePath)) {
|
|
430
|
+
this.loadEncrypted();
|
|
431
|
+
} else if (this.entries.length > 0) {
|
|
432
|
+
this.persistEncrypted();
|
|
433
|
+
if (existsSync2(this.plaintextFilePath)) {
|
|
434
|
+
try {
|
|
435
|
+
unlinkSync2(this.plaintextFilePath);
|
|
436
|
+
} catch {
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
/**
|
|
442
|
+
* Record an approved execution.
|
|
443
|
+
*/
|
|
444
|
+
record(entry) {
|
|
445
|
+
this.entries.push(entry);
|
|
446
|
+
this.prune();
|
|
447
|
+
this.persist();
|
|
448
|
+
}
|
|
449
|
+
/**
|
|
450
|
+
* Sum a field's values within a time window for a given profile and path.
|
|
451
|
+
*
|
|
452
|
+
* @param profileId - The profile ID to filter by
|
|
453
|
+
* @param path - The execution path to filter by
|
|
454
|
+
* @param field - The execution field to sum ("_count" for plain counting)
|
|
455
|
+
* @param window - Time window (daily, weekly, monthly)
|
|
456
|
+
* @param now - Current timestamp in seconds (for testing)
|
|
457
|
+
*/
|
|
458
|
+
sumByWindow(profileId, path, field, window, now = Math.floor(Date.now() / 1e3)) {
|
|
459
|
+
const cutoff = windowCutoff(window, now);
|
|
460
|
+
let total = 0;
|
|
461
|
+
for (const entry of this.entries) {
|
|
462
|
+
if (entry.profileId !== profileId) continue;
|
|
463
|
+
if (entry.path !== path) continue;
|
|
464
|
+
if (entry.timestamp < cutoff) continue;
|
|
465
|
+
if (field === "_count") {
|
|
466
|
+
total += 1;
|
|
467
|
+
} else {
|
|
468
|
+
const val = entry.execution[field];
|
|
469
|
+
if (typeof val === "number") {
|
|
470
|
+
total += val;
|
|
471
|
+
} else if (val !== void 0) {
|
|
472
|
+
total += Number(val) || 0;
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
return total;
|
|
477
|
+
}
|
|
478
|
+
/**
|
|
479
|
+
* Get all entries (for debugging/inspection).
|
|
480
|
+
*/
|
|
481
|
+
getAll() {
|
|
482
|
+
return [...this.entries];
|
|
483
|
+
}
|
|
484
|
+
/**
|
|
485
|
+
* Get entry count.
|
|
486
|
+
*/
|
|
487
|
+
get size() {
|
|
488
|
+
return this.entries.length;
|
|
489
|
+
}
|
|
490
|
+
// ─── Pruning ────────────────────────────────────────────────────────────
|
|
491
|
+
prune(now = Math.floor(Date.now() / 1e3)) {
|
|
492
|
+
const cutoff = now - MAX_AGE_SECONDS;
|
|
493
|
+
const before = this.entries.length;
|
|
494
|
+
this.entries = this.entries.filter((e) => e.timestamp >= cutoff);
|
|
495
|
+
if (this.entries.length < before) {
|
|
496
|
+
console.log(`[ExecutionLog] Pruned ${before - this.entries.length} expired entries`);
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
// ─── Encryption helpers ─────────────────────────────────────────────────
|
|
500
|
+
encrypt(plaintext) {
|
|
501
|
+
if (!this.vaultKey) throw new Error("No vault key");
|
|
502
|
+
const iv = randomBytes2(12);
|
|
503
|
+
const cipher = createCipheriv2("aes-256-gcm", this.vaultKey, iv);
|
|
504
|
+
const encrypted = Buffer.concat([cipher.update(plaintext, "utf8"), cipher.final()]);
|
|
505
|
+
const tag = cipher.getAuthTag();
|
|
506
|
+
return {
|
|
507
|
+
iv: iv.toString("hex"),
|
|
508
|
+
ciphertext: encrypted.toString("hex"),
|
|
509
|
+
tag: tag.toString("hex")
|
|
510
|
+
};
|
|
511
|
+
}
|
|
512
|
+
decrypt(blob) {
|
|
513
|
+
if (!this.vaultKey) throw new Error("No vault key");
|
|
514
|
+
const decipher = createDecipheriv2(
|
|
515
|
+
"aes-256-gcm",
|
|
516
|
+
this.vaultKey,
|
|
517
|
+
Buffer.from(blob.iv, "hex")
|
|
518
|
+
);
|
|
519
|
+
decipher.setAuthTag(Buffer.from(blob.tag, "hex"));
|
|
520
|
+
const decrypted = Buffer.concat([
|
|
521
|
+
decipher.update(Buffer.from(blob.ciphertext, "hex")),
|
|
522
|
+
decipher.final()
|
|
523
|
+
]);
|
|
524
|
+
return decrypted.toString("utf8");
|
|
525
|
+
}
|
|
526
|
+
// ─── File paths ─────────────────────────────────────────────────────────
|
|
527
|
+
get plaintextFilePath() {
|
|
528
|
+
return join2(this.baseDir, "execution-log.json");
|
|
529
|
+
}
|
|
530
|
+
get encryptedFilePath() {
|
|
531
|
+
return join2(this.baseDir, "execution-log.enc.json");
|
|
532
|
+
}
|
|
533
|
+
// ─── Load / Persist ─────────────────────────────────────────────────────
|
|
534
|
+
loadPlaintext() {
|
|
535
|
+
if (!existsSync2(this.plaintextFilePath)) {
|
|
536
|
+
mkdirSync2(this.baseDir, { recursive: true });
|
|
537
|
+
return;
|
|
538
|
+
}
|
|
539
|
+
try {
|
|
540
|
+
const raw = readFileSync2(this.plaintextFilePath, "utf-8");
|
|
541
|
+
const data = JSON.parse(raw);
|
|
542
|
+
this.entries = data.entries;
|
|
543
|
+
this.prune();
|
|
544
|
+
} catch {
|
|
545
|
+
console.error(`[ExecutionLog] Could not parse ${this.plaintextFilePath}, starting fresh`);
|
|
546
|
+
this.entries = [];
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
loadEncrypted() {
|
|
550
|
+
if (!existsSync2(this.encryptedFilePath)) return;
|
|
551
|
+
try {
|
|
552
|
+
const raw = readFileSync2(this.encryptedFilePath, "utf-8");
|
|
553
|
+
const data = JSON.parse(raw);
|
|
554
|
+
const decrypted = this.decrypt(data.blob);
|
|
555
|
+
const logFile = JSON.parse(decrypted);
|
|
556
|
+
this.entries = logFile.entries;
|
|
557
|
+
this.prune();
|
|
558
|
+
} catch (err) {
|
|
559
|
+
console.error(`[ExecutionLog] Could not decrypt ${this.encryptedFilePath}:`, err);
|
|
560
|
+
this.entries = [];
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
persist() {
|
|
564
|
+
if (this.vaultKey) {
|
|
565
|
+
this.persistEncrypted();
|
|
566
|
+
} else {
|
|
567
|
+
this.persistPlaintext();
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
persistPlaintext() {
|
|
571
|
+
const data = { version: 1, entries: this.entries };
|
|
572
|
+
mkdirSync2(this.baseDir, { recursive: true, mode: 448 });
|
|
573
|
+
writeFileSync2(this.plaintextFilePath, JSON.stringify(data, null, 2), { encoding: "utf-8", mode: 384 });
|
|
574
|
+
}
|
|
575
|
+
persistEncrypted() {
|
|
576
|
+
const logFile = { version: 1, entries: this.entries };
|
|
577
|
+
const data = {
|
|
578
|
+
version: 1,
|
|
579
|
+
blob: this.encrypt(JSON.stringify(logFile))
|
|
580
|
+
};
|
|
581
|
+
mkdirSync2(this.baseDir, { recursive: true, mode: 448 });
|
|
582
|
+
writeFileSync2(this.encryptedFilePath, JSON.stringify(data, null, 2), { encoding: "utf-8", mode: 384 });
|
|
583
|
+
}
|
|
584
|
+
};
|
|
585
|
+
function windowCutoff(window, now) {
|
|
586
|
+
switch (window) {
|
|
587
|
+
case "daily":
|
|
588
|
+
return now - 24 * 60 * 60;
|
|
589
|
+
case "weekly":
|
|
590
|
+
return now - 7 * 24 * 60 * 60;
|
|
591
|
+
case "monthly":
|
|
592
|
+
return now - 30 * 24 * 60 * 60;
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
// src/lib/gatekeeper.ts
|
|
597
|
+
import { verify } from "@hap/core";
|
|
598
|
+
var MCPGatekeeper = class {
|
|
599
|
+
constructor(cache, executionLog) {
|
|
600
|
+
this.cache = cache;
|
|
601
|
+
this.executionLog = executionLog;
|
|
602
|
+
}
|
|
603
|
+
/**
|
|
604
|
+
* Verify an execution request against a cached authorization.
|
|
605
|
+
*
|
|
606
|
+
* @param authorizationPath - The execution path (e.g., "payment-routine")
|
|
607
|
+
* @param execution - The agent's execution values
|
|
608
|
+
* @param override - Optional v0.4 fields (bounds, context) from the enriched auth / gate store,
|
|
609
|
+
* used when the context is not present on the SP-cached auth itself.
|
|
610
|
+
* @returns Gatekeeper result + the authorization if found
|
|
611
|
+
*/
|
|
612
|
+
async verifyExecution(authorizationPath, execution, override) {
|
|
613
|
+
const auth = this.cache.getAuthorization(authorizationPath);
|
|
614
|
+
if (!auth) {
|
|
615
|
+
return {
|
|
616
|
+
result: {
|
|
617
|
+
approved: false,
|
|
618
|
+
errors: [{
|
|
619
|
+
code: "DOMAIN_NOT_COVERED",
|
|
620
|
+
message: `No active authorization for "${authorizationPath}". A decision owner must grant authority via the Authority UI.`
|
|
621
|
+
}]
|
|
622
|
+
},
|
|
623
|
+
authorization: null
|
|
624
|
+
};
|
|
625
|
+
}
|
|
626
|
+
if (!auth.complete) {
|
|
627
|
+
const missing = auth.requiredDomains.filter((d) => !auth.attestedDomains.includes(d));
|
|
628
|
+
return {
|
|
629
|
+
result: {
|
|
630
|
+
approved: false,
|
|
631
|
+
errors: [{
|
|
632
|
+
code: "DOMAIN_NOT_COVERED",
|
|
633
|
+
message: `Authorization "${authorizationPath}" is pending. Missing domains: ${missing.join(", ")}`
|
|
634
|
+
}]
|
|
635
|
+
},
|
|
636
|
+
authorization: auth
|
|
637
|
+
};
|
|
638
|
+
}
|
|
639
|
+
const publicKeyHex = await this.cache.getPublicKey();
|
|
640
|
+
const resolvedBounds = override?.bounds ?? auth.bounds ?? auth.frame;
|
|
641
|
+
const resolvedContext = override?.context ?? auth.context;
|
|
642
|
+
const frame = { ...resolvedBounds, profile: auth.profileId };
|
|
643
|
+
const request = {
|
|
644
|
+
frame,
|
|
645
|
+
attestations: auth.attestations.map((a) => a.blob),
|
|
646
|
+
execution,
|
|
647
|
+
context: resolvedContext
|
|
648
|
+
};
|
|
649
|
+
const result = await verify(request, publicKeyHex, void 0, this.executionLog);
|
|
650
|
+
return { result, authorization: auth };
|
|
651
|
+
}
|
|
652
|
+
};
|
|
653
|
+
|
|
654
|
+
// src/lib/shared-state.ts
|
|
655
|
+
var SharedState = class {
|
|
656
|
+
spClient;
|
|
657
|
+
cache;
|
|
658
|
+
gateStore;
|
|
659
|
+
executionLog;
|
|
660
|
+
gatekeeper;
|
|
661
|
+
constructor(spUrl2, gateStorePath) {
|
|
662
|
+
this.spClient = new SPClient(spUrl2);
|
|
663
|
+
this.cache = new AttestationCache(this.spClient);
|
|
664
|
+
this.gateStore = new GateStore(gateStorePath);
|
|
665
|
+
this.executionLog = new ExecutionLog(gateStorePath);
|
|
666
|
+
this.gatekeeper = new MCPGatekeeper(this.cache, this.executionLog);
|
|
667
|
+
}
|
|
668
|
+
setGateContent(path, frameHash, profileId, content, opts) {
|
|
669
|
+
this.gateStore.set(path, {
|
|
670
|
+
frameHash,
|
|
671
|
+
boundsHash: opts?.boundsHash,
|
|
672
|
+
contextHash: opts?.contextHash,
|
|
673
|
+
path,
|
|
674
|
+
profileId,
|
|
675
|
+
gateContent: content,
|
|
676
|
+
context: opts?.context,
|
|
677
|
+
storedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
678
|
+
});
|
|
679
|
+
}
|
|
680
|
+
getGateContent(path) {
|
|
681
|
+
return this.gateStore.get(path);
|
|
682
|
+
}
|
|
683
|
+
/**
|
|
684
|
+
* Join active+complete cached authorizations with gate content from the GateStore.
|
|
685
|
+
* v0.4: also merges context/contextHash from gate store if not present on cached auth.
|
|
686
|
+
*/
|
|
687
|
+
getEnrichedAuthorizations() {
|
|
688
|
+
const authorizations = this.cache.getAllAuthorizations();
|
|
689
|
+
return authorizations.map((auth) => {
|
|
690
|
+
const gateEntry = this.gateStore.get(auth.path) ?? this.gateStore.get(auth.profileId) ?? (auth.boundsHash ? this.gateStore.get(auth.boundsHash) : null) ?? (auth.frameHash ? this.gateStore.get(auth.frameHash) : null) ?? this.gateStore.getAll().find((g) => g.profileId === auth.profileId) ?? null;
|
|
691
|
+
return {
|
|
692
|
+
...auth,
|
|
693
|
+
gateContent: gateEntry?.gateContent ?? null,
|
|
694
|
+
context: auth.context ?? gateEntry?.context,
|
|
695
|
+
contextHash: auth.contextHash ?? gateEntry?.contextHash
|
|
696
|
+
};
|
|
697
|
+
}).filter((auth) => auth.gateContent !== null);
|
|
698
|
+
}
|
|
699
|
+
};
|
|
700
|
+
|
|
701
|
+
// src/index.ts
|
|
702
|
+
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
703
|
+
import { z } from "zod";
|
|
704
|
+
|
|
705
|
+
// src/lib/mandate-brief.ts
|
|
706
|
+
import { getProfile } from "@hap/core";
|
|
707
|
+
|
|
708
|
+
// src/lib/consumption.ts
|
|
709
|
+
function getConsumptionState(auth, executionLog, profile) {
|
|
710
|
+
if (!profile?.boundsSchema?.fields) return [];
|
|
711
|
+
const entries = [];
|
|
712
|
+
const now = Math.floor(Date.now() / 1e3);
|
|
713
|
+
for (const [fieldName, rawFieldDef] of Object.entries(profile.boundsSchema.fields)) {
|
|
714
|
+
if (fieldName === "profile" || fieldName === "path") continue;
|
|
715
|
+
const fieldDef = rawFieldDef;
|
|
716
|
+
const bt = fieldDef.boundType;
|
|
717
|
+
if (!bt) continue;
|
|
718
|
+
if (bt.kind !== "cumulative_sum" && bt.kind !== "cumulative_count") continue;
|
|
719
|
+
const boundValue = auth.frame[fieldName];
|
|
720
|
+
const limit = typeof boundValue === "number" ? boundValue : null;
|
|
721
|
+
const cumulativeField = bt.kind === "cumulative_count" ? "_count" : bt.of;
|
|
722
|
+
const current = executionLog.sumByWindow(
|
|
723
|
+
auth.profileId,
|
|
724
|
+
auth.path,
|
|
725
|
+
cumulativeField,
|
|
726
|
+
bt.window,
|
|
727
|
+
now
|
|
728
|
+
);
|
|
729
|
+
entries.push({
|
|
730
|
+
label: fieldDef.description ?? fieldName,
|
|
731
|
+
current,
|
|
732
|
+
limit,
|
|
733
|
+
window: bt.window,
|
|
734
|
+
field: fieldName,
|
|
735
|
+
kind: bt.kind === "cumulative_sum" ? "sum" : "count",
|
|
736
|
+
of: bt.kind === "cumulative_sum" ? bt.of : void 0
|
|
737
|
+
});
|
|
738
|
+
}
|
|
739
|
+
return entries;
|
|
740
|
+
}
|
|
741
|
+
var CURRENCY_SUM_FIELDS = /* @__PURE__ */ new Set(["amount", "spend"]);
|
|
742
|
+
function formatConsumptionCompact(entries) {
|
|
743
|
+
if (entries.length === 0) return "";
|
|
744
|
+
const parts = [];
|
|
745
|
+
for (const entry of entries) {
|
|
746
|
+
if (entry.limit === null) continue;
|
|
747
|
+
if (entry.kind === "sum") {
|
|
748
|
+
const prefix = entry.of && CURRENCY_SUM_FIELDS.has(entry.of) ? "$" : "";
|
|
749
|
+
parts.push(`${prefix}${entry.current}/${prefix}${entry.limit} ${entry.window}`);
|
|
750
|
+
} else {
|
|
751
|
+
parts.push(`${entry.current}/${entry.limit} ${entry.window}`);
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
return parts.join(", ");
|
|
755
|
+
}
|
|
756
|
+
function formatConsumptionFull(entries) {
|
|
757
|
+
if (entries.length === 0) return "";
|
|
758
|
+
const lines = [];
|
|
759
|
+
for (const entry of entries) {
|
|
760
|
+
const limitStr = entry.limit !== null ? String(entry.limit) : "unlimited";
|
|
761
|
+
const label = `${entry.label}:`;
|
|
762
|
+
lines.push(` ${label.padEnd(30)} ${entry.current} / ${limitStr}`);
|
|
763
|
+
}
|
|
764
|
+
return lines.join("\n");
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
// src/lib/context-loader.ts
|
|
768
|
+
import { readFileSync as readFileSync3, existsSync as existsSync3 } from "fs";
|
|
769
|
+
import { homedir as homedir3 } from "os";
|
|
770
|
+
import { join as join3 } from "path";
|
|
771
|
+
var DEFAULT_DIR3 = process.env.SUVEREN_DATA_DIR ?? join3(homedir3(), ".suveren");
|
|
772
|
+
var BRIEF_MAX_CHARS = 1e3;
|
|
773
|
+
function readContextFile(dataDir) {
|
|
774
|
+
const dir = dataDir ?? DEFAULT_DIR3;
|
|
775
|
+
const filePath = join3(dir, "context.md");
|
|
776
|
+
if (!existsSync3(filePath)) return null;
|
|
777
|
+
try {
|
|
778
|
+
const content = readFileSync3(filePath, "utf-8").trim();
|
|
779
|
+
return content || null;
|
|
780
|
+
} catch {
|
|
781
|
+
return null;
|
|
782
|
+
}
|
|
783
|
+
}
|
|
784
|
+
function getContextForBrief(dataDir) {
|
|
785
|
+
const full = readContextFile(dataDir);
|
|
786
|
+
if (!full) return { brief: null, truncated: false };
|
|
787
|
+
if (full.length <= BRIEF_MAX_CHARS) {
|
|
788
|
+
return { brief: full, truncated: false };
|
|
789
|
+
}
|
|
790
|
+
const truncated = full.slice(0, BRIEF_MAX_CHARS) + "\n... (truncated \u2014 call list-authorizations for full context)";
|
|
791
|
+
return { brief: truncated, truncated: true };
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
// src/lib/mandate-brief.ts
|
|
795
|
+
function shortProfileName(profileId) {
|
|
796
|
+
const withoutVersion = profileId.replace(/@.*$/, "");
|
|
797
|
+
const parts = withoutVersion.split("/");
|
|
798
|
+
return parts[parts.length - 1];
|
|
799
|
+
}
|
|
800
|
+
function countToolsByGating(profileId, integrationManager2) {
|
|
801
|
+
if (!integrationManager2) return { gated: 0, readOnly: 0 };
|
|
802
|
+
const allTools = integrationManager2.getAllTools();
|
|
803
|
+
let gated = 0;
|
|
804
|
+
let readOnly = 0;
|
|
805
|
+
for (const tool of allTools) {
|
|
806
|
+
if (!tool.gating || !tool.gating.profile) {
|
|
807
|
+
readOnly++;
|
|
808
|
+
} else if (tool.gating.profile === profileId || tool.gating.profile === shortProfileName(profileId)) {
|
|
809
|
+
if (tool.gating.staticExecution?.action_type === "read" && Object.keys(tool.gating.executionMapping ?? {}).length === 0) {
|
|
810
|
+
readOnly++;
|
|
811
|
+
} else {
|
|
812
|
+
gated++;
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
return { gated, readOnly };
|
|
817
|
+
}
|
|
818
|
+
function buildMandateBrief(opts) {
|
|
819
|
+
const { authorizations, executionLog, integrationManager: integrationManager2, contextDir } = opts;
|
|
820
|
+
const lines = [
|
|
821
|
+
"You are an agent operating under the Human Agency Protocol (HAP).",
|
|
822
|
+
"You have bounded authorities granted by human decision owners.",
|
|
823
|
+
"You MUST stay within these bounds \u2014 the Gatekeeper will reject actions that exceed them."
|
|
824
|
+
];
|
|
825
|
+
const { brief: contextBrief } = getContextForBrief(contextDir);
|
|
826
|
+
if (contextBrief) {
|
|
827
|
+
lines.push("");
|
|
828
|
+
lines.push("=== CONTEXT ===");
|
|
829
|
+
lines.push("");
|
|
830
|
+
lines.push(contextBrief);
|
|
831
|
+
}
|
|
832
|
+
const active = authorizations.filter((a) => a.complete);
|
|
833
|
+
const pending = authorizations.filter((a) => !a.complete);
|
|
834
|
+
const now = Math.floor(Date.now() / 1e3);
|
|
835
|
+
if (active.length > 0) {
|
|
836
|
+
lines.push("");
|
|
837
|
+
lines.push("=== ACTIVE AUTHORITIES ===");
|
|
838
|
+
lines.push("");
|
|
839
|
+
for (const auth of active) {
|
|
840
|
+
const earliestExpiry = Math.min(...auth.attestations.map((a) => a.expiresAt));
|
|
841
|
+
const remainingMin = Math.max(0, Math.round((earliestExpiry - now) / 60));
|
|
842
|
+
const shortName = shortProfileName(auth.profileId);
|
|
843
|
+
const version = auth.profileId.match(/@(.+)$/)?.[1] ?? "";
|
|
844
|
+
const shortId = version ? `${shortName}@${version}` : shortName;
|
|
845
|
+
const boundsDesc = Object.entries(auth.frame).filter(([key]) => key !== "profile" && key !== "path").map(([key, value]) => `${key}:${value}`).join(" \xB7 ");
|
|
846
|
+
const parts = [];
|
|
847
|
+
if (boundsDesc) parts.push(boundsDesc);
|
|
848
|
+
if (executionLog) {
|
|
849
|
+
const profile = getProfile(auth.profileId) ?? getProfile(shortName);
|
|
850
|
+
const consumption = getConsumptionState(auth, executionLog, profile);
|
|
851
|
+
const compact = formatConsumptionCompact(consumption);
|
|
852
|
+
if (compact) parts.push(compact);
|
|
853
|
+
}
|
|
854
|
+
const { gated, readOnly } = countToolsByGating(auth.profileId, integrationManager2);
|
|
855
|
+
if (gated > 0 || readOnly > 0) parts.push(`${gated} gated tools`);
|
|
856
|
+
parts.push(`${remainingMin} min remaining`);
|
|
857
|
+
lines.push(`[${shortId}] ${parts.join(" \xB7 ")}`);
|
|
858
|
+
lines.push(` \u2192 list-authorizations(domain: "${shortName}") for intent & details`);
|
|
859
|
+
lines.push("");
|
|
860
|
+
}
|
|
861
|
+
}
|
|
862
|
+
if (pending.length > 0) {
|
|
863
|
+
lines.push("=== PENDING (awaiting attestations) ===");
|
|
864
|
+
lines.push("");
|
|
865
|
+
for (const auth of pending) {
|
|
866
|
+
const missing = auth.requiredDomains.filter((d) => !auth.attestedDomains.includes(d));
|
|
867
|
+
lines.push(`[${auth.path}] ${auth.profileId} \u2014 needs: ${missing.join(", ")}`);
|
|
868
|
+
}
|
|
869
|
+
lines.push("");
|
|
870
|
+
}
|
|
871
|
+
lines.push("When you receive a task, call list-authorizations(domain) to load full details for the relevant domain.");
|
|
872
|
+
return lines.join("\n");
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
// src/tools/authorizations.ts
|
|
876
|
+
import { getProfile as getProfile2 } from "@hap/core";
|
|
877
|
+
|
|
878
|
+
// src/lib/tool-proxy.ts
|
|
879
|
+
import { readFile } from "fs/promises";
|
|
880
|
+
import { extname } from "path";
|
|
881
|
+
var IMAGE_MIME = {
|
|
882
|
+
".jpg": "image/jpeg",
|
|
883
|
+
".jpeg": "image/jpeg",
|
|
884
|
+
".png": "image/png",
|
|
885
|
+
".gif": "image/gif",
|
|
886
|
+
".webp": "image/webp",
|
|
887
|
+
".svg": "image/svg+xml",
|
|
888
|
+
".avif": "image/avif"
|
|
889
|
+
};
|
|
890
|
+
var MAX_PREVIEW_BYTES = 1 * 1024 * 1024;
|
|
891
|
+
async function attachImagePreview(args) {
|
|
892
|
+
const imagePath = typeof args.imagePath === "string" ? args.imagePath : null;
|
|
893
|
+
if (!imagePath) return args;
|
|
894
|
+
if (args._imagePreview) return args;
|
|
895
|
+
try {
|
|
896
|
+
const mime = IMAGE_MIME[extname(imagePath).toLowerCase()];
|
|
897
|
+
if (!mime) return args;
|
|
898
|
+
const buf = await readFile(imagePath);
|
|
899
|
+
if (buf.byteLength > MAX_PREVIEW_BYTES) return args;
|
|
900
|
+
return { ...args, _imagePreview: `data:${mime};base64,${buf.toString("base64")}` };
|
|
901
|
+
} catch {
|
|
902
|
+
return args;
|
|
903
|
+
}
|
|
904
|
+
}
|
|
905
|
+
function applyMapping(m, value, execution) {
|
|
906
|
+
if (m.divisor) {
|
|
907
|
+
const numValue = typeof value === "number" ? value : Number(value);
|
|
908
|
+
execution[m.field] = numValue / m.divisor;
|
|
909
|
+
return;
|
|
910
|
+
}
|
|
911
|
+
const coerce = (v) => {
|
|
912
|
+
if (typeof v === "object" && v !== null && "email" in v) {
|
|
913
|
+
return String(v.email);
|
|
914
|
+
}
|
|
915
|
+
return String(v);
|
|
916
|
+
};
|
|
917
|
+
const arr = Array.isArray(value) ? value.map(coerce) : [coerce(value)];
|
|
918
|
+
switch (m.transform) {
|
|
919
|
+
case "length":
|
|
920
|
+
execution[m.field] = arr.length;
|
|
921
|
+
break;
|
|
922
|
+
case "join":
|
|
923
|
+
execution[m.field] = arr.join(",");
|
|
924
|
+
break;
|
|
925
|
+
case "join_domains": {
|
|
926
|
+
const domains = [...new Set(arr.map((email) => {
|
|
927
|
+
const at = email.lastIndexOf("@");
|
|
928
|
+
return at >= 0 ? email.substring(at + 1).toLowerCase() : email.toLowerCase();
|
|
929
|
+
}))].sort();
|
|
930
|
+
execution[m.field] = domains.join(",");
|
|
931
|
+
break;
|
|
932
|
+
}
|
|
933
|
+
default:
|
|
934
|
+
execution[m.field] = typeof value === "number" ? value : String(value);
|
|
935
|
+
}
|
|
936
|
+
}
|
|
937
|
+
function profileMatches(profileId, shortName) {
|
|
938
|
+
return profileId === shortName || profileId.includes("/" + shortName + "@") || profileId.endsWith("/" + shortName);
|
|
939
|
+
}
|
|
940
|
+
function createGatedToolHandler(tool, integrationManager2, state2) {
|
|
941
|
+
if (!tool.gating || !tool.gating.profile) {
|
|
942
|
+
return async () => {
|
|
943
|
+
return {
|
|
944
|
+
content: [{
|
|
945
|
+
type: "text",
|
|
946
|
+
text: `Tool "${tool.namespacedName}" has no gating configuration. All tools require authorization.`
|
|
947
|
+
}],
|
|
948
|
+
isError: true
|
|
949
|
+
};
|
|
950
|
+
};
|
|
951
|
+
}
|
|
952
|
+
const { profile, executionMapping, staticExecution, category } = tool.gating;
|
|
953
|
+
if (category === "read") {
|
|
954
|
+
return async (args) => {
|
|
955
|
+
const auths = state2.getEnrichedAuthorizations();
|
|
956
|
+
const matchingAuths = auths.filter(
|
|
957
|
+
(a) => a.complete && profileMatches(a.profileId, profile)
|
|
958
|
+
);
|
|
959
|
+
if (matchingAuths.length === 0) {
|
|
960
|
+
return {
|
|
961
|
+
content: [{
|
|
962
|
+
type: "text",
|
|
963
|
+
text: `No active authorization matching profile "${profile}". A decision owner must grant authority via the Authority UI before this tool can be used.`
|
|
964
|
+
}],
|
|
965
|
+
isError: true
|
|
966
|
+
};
|
|
967
|
+
}
|
|
968
|
+
return integrationManager2.callTool(tool.integrationId, tool.originalName, args);
|
|
969
|
+
};
|
|
970
|
+
}
|
|
971
|
+
return async (args) => {
|
|
972
|
+
const execution = { ...staticExecution };
|
|
973
|
+
for (const [argName, mapping] of Object.entries(executionMapping)) {
|
|
974
|
+
const value = args[argName];
|
|
975
|
+
if (value !== void 0 && value !== null) {
|
|
976
|
+
if (typeof mapping === "string") {
|
|
977
|
+
execution[mapping] = typeof value === "number" ? value : String(value);
|
|
978
|
+
} else if (Array.isArray(mapping)) {
|
|
979
|
+
for (const m of mapping) applyMapping(m, value, execution);
|
|
980
|
+
} else if ("divisor" in mapping) {
|
|
981
|
+
const numValue = typeof value === "number" ? value : Number(value);
|
|
982
|
+
execution[mapping.field] = numValue / mapping.divisor;
|
|
983
|
+
} else if ("transform" in mapping) {
|
|
984
|
+
applyMapping(mapping, value, execution);
|
|
985
|
+
}
|
|
986
|
+
}
|
|
987
|
+
}
|
|
988
|
+
const auths = state2.getEnrichedAuthorizations();
|
|
989
|
+
const matchingAuths = auths.filter(
|
|
990
|
+
(a) => a.complete && profileMatches(a.profileId, profile)
|
|
991
|
+
);
|
|
992
|
+
if (matchingAuths.length === 0) {
|
|
993
|
+
return {
|
|
994
|
+
content: [{
|
|
995
|
+
type: "text",
|
|
996
|
+
text: `No active authorization matching profile "${profile}". A decision owner must grant authority via the Authority UI before this tool can be used.`
|
|
997
|
+
}],
|
|
998
|
+
isError: true
|
|
999
|
+
};
|
|
1000
|
+
}
|
|
1001
|
+
const errors = [];
|
|
1002
|
+
for (const auth of matchingAuths) {
|
|
1003
|
+
const { result } = await state2.gatekeeper.verifyExecution(auth.path, execution, {
|
|
1004
|
+
bounds: auth.bounds,
|
|
1005
|
+
context: auth.context
|
|
1006
|
+
});
|
|
1007
|
+
if (!result.approved) {
|
|
1008
|
+
}
|
|
1009
|
+
if (result.approved) {
|
|
1010
|
+
const authHash = auth.frameHash ?? auth.boundsHash;
|
|
1011
|
+
if ((auth.deferredCommitmentDomains ?? []).length > 0) {
|
|
1012
|
+
try {
|
|
1013
|
+
const enrichedArgs = await attachImagePreview(args);
|
|
1014
|
+
const { proposal } = await state2.spClient.submitProposal({
|
|
1015
|
+
frameHash: authHash,
|
|
1016
|
+
profileId: auth.profileId,
|
|
1017
|
+
path: auth.path,
|
|
1018
|
+
pendingDomains: auth.deferredCommitmentDomains,
|
|
1019
|
+
tool: tool.namespacedName,
|
|
1020
|
+
toolArgs: enrichedArgs,
|
|
1021
|
+
executionContext: { ...execution }
|
|
1022
|
+
});
|
|
1023
|
+
return {
|
|
1024
|
+
content: [{
|
|
1025
|
+
type: "text",
|
|
1026
|
+
text: `Awaiting commitment from domain${auth.deferredCommitmentDomains.length > 1 ? "s" : ""} "${auth.deferredCommitmentDomains.join('", "')}" for tool ${tool.originalName}.
|
|
1027
|
+
Proposal ID: ${proposal.id}. Check status with check-pending-commitments(proposal_id: "${proposal.id}").`
|
|
1028
|
+
}]
|
|
1029
|
+
};
|
|
1030
|
+
} catch (err) {
|
|
1031
|
+
return {
|
|
1032
|
+
content: [{ type: "text", text: `Failed to submit proposal: ${err instanceof Error ? err.message : String(err)}` }],
|
|
1033
|
+
isError: true
|
|
1034
|
+
};
|
|
1035
|
+
}
|
|
1036
|
+
}
|
|
1037
|
+
try {
|
|
1038
|
+
const actionType = typeof execution.action_type === "string" ? execution.action_type : void 0;
|
|
1039
|
+
if (!actionType) {
|
|
1040
|
+
console.error(
|
|
1041
|
+
`[Suveren MCP] Warning: tool ${tool.namespacedName} has no action_type in staticExecution. Bounds check may be skipped. Fix the integration manifest.`
|
|
1042
|
+
);
|
|
1043
|
+
}
|
|
1044
|
+
await state2.spClient.postReceipt({
|
|
1045
|
+
attestationHash: authHash,
|
|
1046
|
+
profileId: auth.profileId,
|
|
1047
|
+
path: auth.path,
|
|
1048
|
+
action: tool.namespacedName,
|
|
1049
|
+
actionType,
|
|
1050
|
+
executionContext: { ...execution },
|
|
1051
|
+
amount: typeof execution.amount === "number" ? execution.amount : void 0
|
|
1052
|
+
});
|
|
1053
|
+
} catch (err) {
|
|
1054
|
+
if (err instanceof SPReceiptError && err.statusCode === 409) {
|
|
1055
|
+
const spBody = err.body;
|
|
1056
|
+
let pendingApprovers = spBody.approvers ?? [];
|
|
1057
|
+
if (pendingApprovers.length === 0) {
|
|
1058
|
+
try {
|
|
1059
|
+
const frameMeta = await state2.spClient.getFrameMetadata(authHash);
|
|
1060
|
+
if (frameMeta?.approversFrozen) {
|
|
1061
|
+
pendingApprovers = frameMeta.approversFrozen;
|
|
1062
|
+
}
|
|
1063
|
+
if (frameMeta?.createdBy) {
|
|
1064
|
+
pendingApprovers = [frameMeta.createdBy, ...pendingApprovers];
|
|
1065
|
+
}
|
|
1066
|
+
} catch {
|
|
1067
|
+
}
|
|
1068
|
+
} else {
|
|
1069
|
+
try {
|
|
1070
|
+
const frameMeta = await state2.spClient.getFrameMetadata(authHash);
|
|
1071
|
+
if (frameMeta?.createdBy) {
|
|
1072
|
+
pendingApprovers = [frameMeta.createdBy, ...pendingApprovers];
|
|
1073
|
+
}
|
|
1074
|
+
} catch {
|
|
1075
|
+
}
|
|
1076
|
+
}
|
|
1077
|
+
const uniqueApprovers = [...new Set(pendingApprovers)];
|
|
1078
|
+
try {
|
|
1079
|
+
const enrichedArgs = await attachImagePreview(args);
|
|
1080
|
+
const { proposal } = await state2.spClient.submitProposal({
|
|
1081
|
+
frameHash: authHash,
|
|
1082
|
+
profileId: auth.profileId,
|
|
1083
|
+
path: auth.path,
|
|
1084
|
+
pendingDomains: [],
|
|
1085
|
+
tool: tool.namespacedName,
|
|
1086
|
+
toolArgs: enrichedArgs,
|
|
1087
|
+
executionContext: { ...execution },
|
|
1088
|
+
pendingApprovers: uniqueApprovers
|
|
1089
|
+
});
|
|
1090
|
+
return {
|
|
1091
|
+
content: [{
|
|
1092
|
+
type: "text",
|
|
1093
|
+
text: `Action exceeds team cap. Approval required from ${uniqueApprovers.length} reviewer(s).
|
|
1094
|
+
Proposal ID: ${proposal.id}. Use check-pending-commitments to track status.`
|
|
1095
|
+
}]
|
|
1096
|
+
};
|
|
1097
|
+
} catch (proposalErr) {
|
|
1098
|
+
return {
|
|
1099
|
+
content: [{ type: "text", text: `Failed to submit approval proposal: ${proposalErr instanceof Error ? proposalErr.message : String(proposalErr)}` }],
|
|
1100
|
+
isError: true
|
|
1101
|
+
};
|
|
1102
|
+
}
|
|
1103
|
+
}
|
|
1104
|
+
if (err instanceof SPReceiptError && err.statusCode === 422) {
|
|
1105
|
+
return {
|
|
1106
|
+
content: [{ type: "text", text: `Action blocked: ${err.message} (hard team ceiling \u2014 contact the team admin)` }],
|
|
1107
|
+
isError: true
|
|
1108
|
+
};
|
|
1109
|
+
}
|
|
1110
|
+
if (err instanceof SPReceiptError && err.statusCode === 403) {
|
|
1111
|
+
if (/revoked/i.test(err.message)) {
|
|
1112
|
+
state2.cache.invalidate(auth.path);
|
|
1113
|
+
}
|
|
1114
|
+
return {
|
|
1115
|
+
content: [{ type: "text", text: `Blocked by SP: ${err.message}` }],
|
|
1116
|
+
isError: true
|
|
1117
|
+
};
|
|
1118
|
+
}
|
|
1119
|
+
return {
|
|
1120
|
+
content: [{ type: "text", text: `SP unavailable \u2014 tool call blocked. ${err instanceof Error ? err.message : ""}` }],
|
|
1121
|
+
isError: true
|
|
1122
|
+
};
|
|
1123
|
+
}
|
|
1124
|
+
state2.executionLog.record({
|
|
1125
|
+
profileId: auth.profileId,
|
|
1126
|
+
path: auth.path,
|
|
1127
|
+
execution: { ...execution },
|
|
1128
|
+
timestamp: Math.floor(Date.now() / 1e3)
|
|
1129
|
+
});
|
|
1130
|
+
return integrationManager2.callTool(tool.integrationId, tool.originalName, args);
|
|
1131
|
+
}
|
|
1132
|
+
const reasons = result.errors.map((e) => {
|
|
1133
|
+
if (e.code === "BOUND_EXCEEDED") {
|
|
1134
|
+
return `${auth.path}: ${e.field}: ${e.message}`;
|
|
1135
|
+
}
|
|
1136
|
+
return `${auth.path}: ${e.message}`;
|
|
1137
|
+
});
|
|
1138
|
+
errors.push(...reasons);
|
|
1139
|
+
}
|
|
1140
|
+
return {
|
|
1141
|
+
content: [{
|
|
1142
|
+
type: "text",
|
|
1143
|
+
text: `Tool call rejected by Gatekeeper. Tried ${matchingAuths.length} authorization(s):
|
|
1144
|
+
` + errors.map((e) => ` - ${e}`).join("\n")
|
|
1145
|
+
}],
|
|
1146
|
+
isError: true
|
|
1147
|
+
};
|
|
1148
|
+
};
|
|
1149
|
+
}
|
|
1150
|
+
function buildProxiedToolDescription(tool, state2) {
|
|
1151
|
+
if (!tool.gating || !tool.gating.profile) {
|
|
1152
|
+
return `[Suveren: no gating config] ${tool.description}`;
|
|
1153
|
+
}
|
|
1154
|
+
const profile = tool.gating.profile;
|
|
1155
|
+
const auths = state2.getEnrichedAuthorizations();
|
|
1156
|
+
const hasAuth = auths.some(
|
|
1157
|
+
(a) => a.complete && profileMatches(a.profileId, profile)
|
|
1158
|
+
);
|
|
1159
|
+
if (!hasAuth) {
|
|
1160
|
+
return `[Suveren: ${profile} \u2014 no active authorization] ${tool.description}`;
|
|
1161
|
+
}
|
|
1162
|
+
if (tool.gating.category === "read") {
|
|
1163
|
+
return `[Suveren: ${profile} \u2014 read] ${tool.description}`;
|
|
1164
|
+
}
|
|
1165
|
+
const parts = [];
|
|
1166
|
+
if (tool.gating.staticExecution?.action_type) {
|
|
1167
|
+
parts.push(String(tool.gating.staticExecution.action_type));
|
|
1168
|
+
}
|
|
1169
|
+
const mappedFields = Object.values(tool.gating.executionMapping ?? {}).flatMap(
|
|
1170
|
+
(m) => typeof m === "string" ? [m] : Array.isArray(m) ? m.map((e) => e.field) : [m.field]
|
|
1171
|
+
);
|
|
1172
|
+
if (mappedFields.length > 0) {
|
|
1173
|
+
parts.push(`${mappedFields.join(", ")} checked`);
|
|
1174
|
+
}
|
|
1175
|
+
const tag = parts.length > 0 ? parts.join(", ") : "gated";
|
|
1176
|
+
return `[Suveren: ${profile} \u2014 ${tag}] ${tool.description}`;
|
|
1177
|
+
}
|
|
1178
|
+
|
|
1179
|
+
// src/tools/authorizations.ts
|
|
1180
|
+
function shortProfileName2(profileId) {
|
|
1181
|
+
const withoutVersion = profileId.replace(/@.*$/, "");
|
|
1182
|
+
const parts = withoutVersion.split("/");
|
|
1183
|
+
return parts[parts.length - 1];
|
|
1184
|
+
}
|
|
1185
|
+
function buildCapabilityMap(profileId, toolGating, integrationManager2) {
|
|
1186
|
+
if (!integrationManager2 || !toolGating) return "";
|
|
1187
|
+
const allTools = integrationManager2.getAllTools();
|
|
1188
|
+
const shortName = shortProfileName2(profileId);
|
|
1189
|
+
const gated = [];
|
|
1190
|
+
const readOnly = [];
|
|
1191
|
+
const defaultGated = [];
|
|
1192
|
+
for (const tool of allTools) {
|
|
1193
|
+
if (!tool.gating || !tool.gating.profile) {
|
|
1194
|
+
continue;
|
|
1195
|
+
}
|
|
1196
|
+
if (!profileMatches(tool.gating.profile, shortName) && tool.gating.profile !== profileId) {
|
|
1197
|
+
continue;
|
|
1198
|
+
}
|
|
1199
|
+
const overrides = toolGating.overrides ?? {};
|
|
1200
|
+
const override = overrides[tool.originalName];
|
|
1201
|
+
if (override === null) {
|
|
1202
|
+
readOnly.push(tool.originalName);
|
|
1203
|
+
} else if (override !== void 0) {
|
|
1204
|
+
const mappingDesc = Object.entries(override.executionMapping ?? {}).map(([arg, mapping]) => {
|
|
1205
|
+
if (typeof mapping === "string") return `${mapping} from ${arg}`;
|
|
1206
|
+
return `${mapping.field} from ${arg} (/${mapping.divisor})`;
|
|
1207
|
+
}).join(", ");
|
|
1208
|
+
const actionType = override.staticExecution?.action_type ?? "unknown";
|
|
1209
|
+
gated.push(` - ${tool.originalName}: ${actionType}${mappingDesc ? `, ${mappingDesc}` : ""}`);
|
|
1210
|
+
} else {
|
|
1211
|
+
const defaultAction = toolGating.default.staticExecution?.action_type;
|
|
1212
|
+
if (defaultAction === "read" && Object.keys(toolGating.default.executionMapping ?? {}).length === 0) {
|
|
1213
|
+
defaultGated.push(tool.originalName);
|
|
1214
|
+
} else {
|
|
1215
|
+
gated.push(` - ${tool.originalName}: ${defaultAction ?? "default"} (default gating)`);
|
|
1216
|
+
}
|
|
1217
|
+
}
|
|
1218
|
+
}
|
|
1219
|
+
const lines = [];
|
|
1220
|
+
lines.push(" Capability Map:");
|
|
1221
|
+
if (gated.length > 0) {
|
|
1222
|
+
lines.push(" Gated (checked per call):");
|
|
1223
|
+
lines.push(...gated);
|
|
1224
|
+
}
|
|
1225
|
+
if (readOnly.length > 0) {
|
|
1226
|
+
lines.push(` Read-only (no authorization needed): ${readOnly.join(", ")}`);
|
|
1227
|
+
}
|
|
1228
|
+
if (defaultGated.length > 0) {
|
|
1229
|
+
lines.push(` Default-gated (action_type: ${toolGating.default.staticExecution?.action_type ?? "read"}): ${defaultGated.join(", ")}`);
|
|
1230
|
+
}
|
|
1231
|
+
if (gated.length === 0 && readOnly.length === 0 && defaultGated.length === 0) {
|
|
1232
|
+
lines.push(" No tools discovered for this profile.");
|
|
1233
|
+
}
|
|
1234
|
+
return lines.join("\n");
|
|
1235
|
+
}
|
|
1236
|
+
function listAuthorizationsHandler(state2, integrationManager2, contextDir) {
|
|
1237
|
+
return async (args) => {
|
|
1238
|
+
const authorizations = state2.getEnrichedAuthorizations();
|
|
1239
|
+
const now = Math.floor(Date.now() / 1e3);
|
|
1240
|
+
const domain = args?.domain;
|
|
1241
|
+
if (authorizations.length === 0) {
|
|
1242
|
+
return {
|
|
1243
|
+
content: [{
|
|
1244
|
+
type: "text",
|
|
1245
|
+
text: "No active authorizations. A decision owner must grant authority via the Authority UI."
|
|
1246
|
+
}]
|
|
1247
|
+
};
|
|
1248
|
+
}
|
|
1249
|
+
if (domain) {
|
|
1250
|
+
const matching = authorizations.filter((auth) => {
|
|
1251
|
+
const shortName = shortProfileName2(auth.profileId);
|
|
1252
|
+
return shortName === domain || profileMatches(auth.profileId, domain);
|
|
1253
|
+
});
|
|
1254
|
+
if (matching.length === 0) {
|
|
1255
|
+
return {
|
|
1256
|
+
content: [{
|
|
1257
|
+
type: "text",
|
|
1258
|
+
text: `No authorizations found for domain "${domain}". Active domains: ${[...new Set(authorizations.map((a) => shortProfileName2(a.profileId)))].join(", ")}`
|
|
1259
|
+
}]
|
|
1260
|
+
};
|
|
1261
|
+
}
|
|
1262
|
+
const output2 = [];
|
|
1263
|
+
for (const auth of matching) {
|
|
1264
|
+
const earliestExpiry = Math.min(...auth.attestations.map((a) => a.expiresAt));
|
|
1265
|
+
const remainingMin = Math.max(0, Math.round((earliestExpiry - now) / 60));
|
|
1266
|
+
const boundsDesc = Object.entries(auth.frame).filter(([key]) => key !== "profile" && key !== "path").map(([key, value]) => `${key}: ${value}`).join(", ");
|
|
1267
|
+
const statusLabel = auth.complete ? "" : " (PENDING)";
|
|
1268
|
+
output2.push(`[${auth.path}] ${auth.profileId} (${remainingMin} min remaining)${statusLabel}`);
|
|
1269
|
+
output2.push("");
|
|
1270
|
+
output2.push(` Bounds: ${boundsDesc}`);
|
|
1271
|
+
const shortName = shortProfileName2(auth.profileId);
|
|
1272
|
+
const profile = getProfile2(auth.profileId) ?? getProfile2(shortName);
|
|
1273
|
+
if (profile) {
|
|
1274
|
+
const consumption = getConsumptionState(auth, state2.executionLog, profile);
|
|
1275
|
+
const consumptionText = formatConsumptionFull(consumption);
|
|
1276
|
+
if (consumptionText) {
|
|
1277
|
+
output2.push("");
|
|
1278
|
+
output2.push(" Usage:");
|
|
1279
|
+
output2.push(consumptionText);
|
|
1280
|
+
}
|
|
1281
|
+
}
|
|
1282
|
+
if (auth.context) {
|
|
1283
|
+
const contextEntries = Object.entries(auth.context).filter(([, v]) => v !== "" && v !== void 0);
|
|
1284
|
+
if (contextEntries.length > 0) {
|
|
1285
|
+
output2.push("");
|
|
1286
|
+
output2.push(" Scope:");
|
|
1287
|
+
for (const [k, v] of contextEntries) {
|
|
1288
|
+
output2.push(` ${k}: ${v}`);
|
|
1289
|
+
}
|
|
1290
|
+
}
|
|
1291
|
+
}
|
|
1292
|
+
if (auth.gateContent?.intent) {
|
|
1293
|
+
output2.push("");
|
|
1294
|
+
output2.push(` Intent: ${auth.gateContent.intent}`);
|
|
1295
|
+
}
|
|
1296
|
+
if (!auth.complete) {
|
|
1297
|
+
const missing = auth.requiredDomains.filter((d) => !auth.attestedDomains.includes(d));
|
|
1298
|
+
output2.push("");
|
|
1299
|
+
output2.push(` Missing attestations: ${missing.join(", ")}`);
|
|
1300
|
+
}
|
|
1301
|
+
if (profile && integrationManager2) {
|
|
1302
|
+
output2.push("");
|
|
1303
|
+
output2.push(buildCapabilityMap(auth.profileId, profile.toolGating, integrationManager2));
|
|
1304
|
+
}
|
|
1305
|
+
output2.push("");
|
|
1306
|
+
}
|
|
1307
|
+
return {
|
|
1308
|
+
content: [{
|
|
1309
|
+
type: "text",
|
|
1310
|
+
text: output2.join("\n")
|
|
1311
|
+
}]
|
|
1312
|
+
};
|
|
1313
|
+
}
|
|
1314
|
+
const active = [];
|
|
1315
|
+
const pending = [];
|
|
1316
|
+
const context = readContextFile(contextDir);
|
|
1317
|
+
for (const auth of authorizations) {
|
|
1318
|
+
const earliestExpiry = Math.min(...auth.attestations.map((a) => a.expiresAt));
|
|
1319
|
+
const remainingMin = Math.max(0, Math.round((earliestExpiry - now) / 60));
|
|
1320
|
+
const boundsDesc = Object.entries(auth.frame).filter(([key]) => key !== "profile" && key !== "path").map(([key, value]) => `${key}: ${value}`).join(", ");
|
|
1321
|
+
if (auth.complete) {
|
|
1322
|
+
const lines = [` [${auth.path}] ${auth.profileId} \u2014 ${remainingMin} min remaining`];
|
|
1323
|
+
lines.push(` Bounds: ${boundsDesc}`);
|
|
1324
|
+
const shortName = shortProfileName2(auth.profileId);
|
|
1325
|
+
const profile = getProfile2(auth.profileId) ?? getProfile2(shortName);
|
|
1326
|
+
if (profile) {
|
|
1327
|
+
const consumption = getConsumptionState(auth, state2.executionLog, profile);
|
|
1328
|
+
const compact = formatConsumptionCompact(consumption);
|
|
1329
|
+
if (compact) {
|
|
1330
|
+
lines.push(` Usage: ${compact}`);
|
|
1331
|
+
}
|
|
1332
|
+
}
|
|
1333
|
+
lines.push(` Call list-authorizations(domain: "${shortProfileName2(auth.profileId)}") for full details`);
|
|
1334
|
+
active.push(lines.join("\n"));
|
|
1335
|
+
} else {
|
|
1336
|
+
const missing = auth.requiredDomains.filter((d) => !auth.attestedDomains.includes(d));
|
|
1337
|
+
pending.push(
|
|
1338
|
+
` ${auth.path}: ${boundsDesc} \u2014 needs ${missing.join(", ")} attestation, ${remainingMin} min remaining`
|
|
1339
|
+
);
|
|
1340
|
+
}
|
|
1341
|
+
}
|
|
1342
|
+
const output = [];
|
|
1343
|
+
if (context) {
|
|
1344
|
+
output.push("=== CONTEXT ===");
|
|
1345
|
+
output.push(context);
|
|
1346
|
+
output.push("");
|
|
1347
|
+
}
|
|
1348
|
+
if (active.length > 0) {
|
|
1349
|
+
output.push("Active authorizations:");
|
|
1350
|
+
output.push(...active);
|
|
1351
|
+
}
|
|
1352
|
+
if (pending.length > 0) {
|
|
1353
|
+
if (output.length > 0) output.push("");
|
|
1354
|
+
output.push("Pending (missing owners):");
|
|
1355
|
+
output.push(...pending);
|
|
1356
|
+
}
|
|
1357
|
+
return {
|
|
1358
|
+
content: [{
|
|
1359
|
+
type: "text",
|
|
1360
|
+
text: output.join("\n")
|
|
1361
|
+
}]
|
|
1362
|
+
};
|
|
1363
|
+
};
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1366
|
+
// src/tools/pending.ts
|
|
1367
|
+
function checkPendingHandler(cache) {
|
|
1368
|
+
return async (args) => {
|
|
1369
|
+
const { domain } = args;
|
|
1370
|
+
try {
|
|
1371
|
+
const pending = await cache.getPendingAttestations(domain);
|
|
1372
|
+
if (pending.length === 0) {
|
|
1373
|
+
return {
|
|
1374
|
+
content: [{
|
|
1375
|
+
type: "text",
|
|
1376
|
+
text: `No pending attestations for domain "${domain}".`
|
|
1377
|
+
}]
|
|
1378
|
+
};
|
|
1379
|
+
}
|
|
1380
|
+
const lines = [`Pending attestations needing your domain (${domain}):`];
|
|
1381
|
+
for (const item of pending) {
|
|
1382
|
+
const boundsDesc = Object.entries(item.frame).filter(([key]) => key !== "profile" && key !== "path").map(([key, value]) => `${key}: ${value}`).join(", ");
|
|
1383
|
+
const attested = item.attested_domains.join(", ");
|
|
1384
|
+
const missing = item.missing_domains.join(", ");
|
|
1385
|
+
const remaining = item.remaining_seconds ? `${Math.round(item.remaining_seconds / 60)} min remaining` : "unknown";
|
|
1386
|
+
lines.push(
|
|
1387
|
+
` ${item.profile_id} / ${item.path}: ${boundsDesc}
|
|
1388
|
+
Attested: ${attested} | Missing: ${missing} | ${remaining}`
|
|
1389
|
+
);
|
|
1390
|
+
}
|
|
1391
|
+
return {
|
|
1392
|
+
content: [{
|
|
1393
|
+
type: "text",
|
|
1394
|
+
text: lines.join("\n")
|
|
1395
|
+
}]
|
|
1396
|
+
};
|
|
1397
|
+
} catch (error) {
|
|
1398
|
+
return {
|
|
1399
|
+
content: [{
|
|
1400
|
+
type: "text",
|
|
1401
|
+
text: `Failed to check pending attestations: ${error}`
|
|
1402
|
+
}],
|
|
1403
|
+
isError: true
|
|
1404
|
+
};
|
|
1405
|
+
}
|
|
1406
|
+
};
|
|
1407
|
+
}
|
|
1408
|
+
|
|
1409
|
+
// src/tools/integrations.ts
|
|
1410
|
+
function shortProfileName3(profileId) {
|
|
1411
|
+
const withoutVersion = profileId.replace(/@.*$/, "");
|
|
1412
|
+
const parts = withoutVersion.split("/");
|
|
1413
|
+
return parts[parts.length - 1];
|
|
1414
|
+
}
|
|
1415
|
+
function listIntegrationsHandler(state2, integrationManager2) {
|
|
1416
|
+
return async () => {
|
|
1417
|
+
if (!integrationManager2) {
|
|
1418
|
+
return { content: [{ type: "text", text: "No integration manager available." }] };
|
|
1419
|
+
}
|
|
1420
|
+
const auths = state2.getEnrichedAuthorizations();
|
|
1421
|
+
const statuses = integrationManager2.getStatus();
|
|
1422
|
+
const integrations = statuses.filter((s) => s.running).map((s) => {
|
|
1423
|
+
const tools = integrationManager2.getAllTools().filter((t) => t.integrationId === s.id);
|
|
1424
|
+
const profile = tools[0]?.gating?.profile ?? null;
|
|
1425
|
+
const matchingAuths = profile ? auths.filter((a) => a.complete && profileMatches(a.profileId, profile)) : [];
|
|
1426
|
+
let status;
|
|
1427
|
+
if (matchingAuths.length > 0) {
|
|
1428
|
+
const soonestExpiry = Math.min(
|
|
1429
|
+
...matchingAuths.flatMap(
|
|
1430
|
+
(a) => a.attestations.map((att) => att.expires_at)
|
|
1431
|
+
)
|
|
1432
|
+
);
|
|
1433
|
+
const remainingMs = soonestExpiry * 1e3 - Date.now();
|
|
1434
|
+
const remainingMin = Math.ceil(remainingMs / 6e4);
|
|
1435
|
+
status = `authorized (${matchingAuths.length} path${matchingAuths.length > 1 ? "s" : ""}, ${remainingMin} min remaining)`;
|
|
1436
|
+
} else {
|
|
1437
|
+
const allProfileAuths = profile ? auths.filter((a) => profileMatches(a.profileId, profile)) : [];
|
|
1438
|
+
status = allProfileAuths.length > 0 ? "expired" : "no authorization";
|
|
1439
|
+
}
|
|
1440
|
+
return {
|
|
1441
|
+
id: s.id,
|
|
1442
|
+
profile: profile ? shortProfileName3(profile) : null,
|
|
1443
|
+
status
|
|
1444
|
+
};
|
|
1445
|
+
});
|
|
1446
|
+
const text = integrations.length === 0 ? "No integrations running." : integrations.map(
|
|
1447
|
+
(i) => `${i.id} [${i.profile ?? "ungated"}] \u2014 ${i.status}`
|
|
1448
|
+
).join("\n");
|
|
1449
|
+
return {
|
|
1450
|
+
content: [{ type: "text", text }]
|
|
1451
|
+
};
|
|
1452
|
+
};
|
|
1453
|
+
}
|
|
1454
|
+
|
|
1455
|
+
// src/tools/commitments.ts
|
|
1456
|
+
async function executeCommitted(proposal, state2, integrationManager2) {
|
|
1457
|
+
if (!integrationManager2) {
|
|
1458
|
+
return { text: `Proposal ${proposal.id} committed but integration manager unavailable for execution.`, isError: true };
|
|
1459
|
+
}
|
|
1460
|
+
const sep = proposal.tool.indexOf("__");
|
|
1461
|
+
if (sep < 0) {
|
|
1462
|
+
return { text: `Proposal ${proposal.id} has invalid tool name: ${proposal.tool}`, isError: true };
|
|
1463
|
+
}
|
|
1464
|
+
const integrationId = proposal.tool.slice(0, sep);
|
|
1465
|
+
const toolName = proposal.tool.slice(sep + 2);
|
|
1466
|
+
const proposalActionType = typeof proposal.executionContext.action_type === "string" ? proposal.executionContext.action_type : void 0;
|
|
1467
|
+
if (!proposalActionType) {
|
|
1468
|
+
console.error(
|
|
1469
|
+
`[Suveren MCP] Warning: proposal ${proposal.id} has no action_type in executionContext. Bounds check may be skipped. Fix the integration manifest for ${proposal.tool}.`
|
|
1470
|
+
);
|
|
1471
|
+
}
|
|
1472
|
+
try {
|
|
1473
|
+
await state2.spClient.postReceipt({
|
|
1474
|
+
attestationHash: proposal.frameHash,
|
|
1475
|
+
profileId: proposal.profileId,
|
|
1476
|
+
path: proposal.path,
|
|
1477
|
+
action: proposal.tool,
|
|
1478
|
+
actionType: proposalActionType,
|
|
1479
|
+
executionContext: proposal.executionContext,
|
|
1480
|
+
amount: typeof proposal.executionContext.amount === "number" ? proposal.executionContext.amount : void 0,
|
|
1481
|
+
proposalId: proposal.id,
|
|
1482
|
+
toolArgs: proposal.toolArgs
|
|
1483
|
+
});
|
|
1484
|
+
} catch (err) {
|
|
1485
|
+
if (err instanceof SPReceiptError) {
|
|
1486
|
+
const code = err.body.errors?.[0]?.code;
|
|
1487
|
+
if (code === "PROPOSAL_ALREADY_EXECUTED") {
|
|
1488
|
+
return {
|
|
1489
|
+
text: `Proposal ${proposal.id} has already been executed by another request.`
|
|
1490
|
+
};
|
|
1491
|
+
}
|
|
1492
|
+
return {
|
|
1493
|
+
text: `Proposal ${proposal.id}: SP rejected receipt \u2014 ${err.message}`,
|
|
1494
|
+
isError: true
|
|
1495
|
+
};
|
|
1496
|
+
}
|
|
1497
|
+
return {
|
|
1498
|
+
text: `Proposal ${proposal.id}: receipt request failed \u2014 ${err instanceof Error ? err.message : String(err)}`,
|
|
1499
|
+
isError: true
|
|
1500
|
+
};
|
|
1501
|
+
}
|
|
1502
|
+
try {
|
|
1503
|
+
const result = await integrationManager2.callTool(integrationId, toolName, proposal.toolArgs);
|
|
1504
|
+
const resultText = result.content?.[0]?.text ?? JSON.stringify(result);
|
|
1505
|
+
return { text: `Proposal ${proposal.id} committed and executed.
|
|
1506
|
+
Result: ${resultText}` };
|
|
1507
|
+
} catch (err) {
|
|
1508
|
+
const msg = err instanceof Error ? err.message : String(err);
|
|
1509
|
+
return {
|
|
1510
|
+
text: `Proposal ${proposal.id} receipt issued but tool execution failed: ${msg}`,
|
|
1511
|
+
isError: true
|
|
1512
|
+
};
|
|
1513
|
+
}
|
|
1514
|
+
}
|
|
1515
|
+
function checkPendingCommitmentsHandler(state2, integrationManager2) {
|
|
1516
|
+
return async (args) => {
|
|
1517
|
+
try {
|
|
1518
|
+
if (args.proposal_id) {
|
|
1519
|
+
const committed2 = await state2.spClient.getCommittedProposals();
|
|
1520
|
+
const match = committed2.find((p) => p.id === args.proposal_id);
|
|
1521
|
+
if (match) {
|
|
1522
|
+
if (match.status === "executed" && match.executionResult) {
|
|
1523
|
+
return {
|
|
1524
|
+
content: [{
|
|
1525
|
+
type: "text",
|
|
1526
|
+
text: `Proposal ${match.id} committed and executed.
|
|
1527
|
+
Result: ${JSON.stringify(match.executionResult, null, 2)}`
|
|
1528
|
+
}]
|
|
1529
|
+
};
|
|
1530
|
+
}
|
|
1531
|
+
if (match.status === "committed") {
|
|
1532
|
+
const { text, isError } = await executeCommitted(match, state2, integrationManager2);
|
|
1533
|
+
return {
|
|
1534
|
+
content: [{ type: "text", text }],
|
|
1535
|
+
...isError ? { isError: true } : {}
|
|
1536
|
+
};
|
|
1537
|
+
}
|
|
1538
|
+
return {
|
|
1539
|
+
content: [{
|
|
1540
|
+
type: "text",
|
|
1541
|
+
text: `Proposal ${match.id}: status=${match.status}, committed by: [${Object.keys(match.committedBy).join(", ")}], remaining: [${match.pendingDomains.filter((d) => !(d in match.committedBy)).join(", ")}]`
|
|
1542
|
+
}]
|
|
1543
|
+
};
|
|
1544
|
+
}
|
|
1545
|
+
return {
|
|
1546
|
+
content: [{
|
|
1547
|
+
type: "text",
|
|
1548
|
+
text: `Proposal ${args.proposal_id} is still pending or not found. Domain owners have not yet committed.`
|
|
1549
|
+
}]
|
|
1550
|
+
};
|
|
1551
|
+
}
|
|
1552
|
+
const committed = await state2.spClient.getCommittedProposals();
|
|
1553
|
+
if (committed.length === 0) {
|
|
1554
|
+
return {
|
|
1555
|
+
content: [{
|
|
1556
|
+
type: "text",
|
|
1557
|
+
text: "No pending commitments. All proposals are either still awaiting domain owner review, expired, or already executed."
|
|
1558
|
+
}]
|
|
1559
|
+
};
|
|
1560
|
+
}
|
|
1561
|
+
const lines = committed.map(
|
|
1562
|
+
(p) => `${p.id}: tool=${p.tool}, status=${p.status}, committed=[${Object.keys(p.committedBy).join(",")}]`
|
|
1563
|
+
);
|
|
1564
|
+
return {
|
|
1565
|
+
content: [{
|
|
1566
|
+
type: "text",
|
|
1567
|
+
text: `Proposals with commitments:
|
|
1568
|
+
${lines.join("\n")}`
|
|
1569
|
+
}]
|
|
1570
|
+
};
|
|
1571
|
+
} catch (err) {
|
|
1572
|
+
return {
|
|
1573
|
+
content: [{
|
|
1574
|
+
type: "text",
|
|
1575
|
+
text: `Failed to check commitments: ${err instanceof Error ? err.message : String(err)}`
|
|
1576
|
+
}],
|
|
1577
|
+
isError: true
|
|
1578
|
+
};
|
|
1579
|
+
}
|
|
1580
|
+
};
|
|
1581
|
+
}
|
|
1582
|
+
|
|
1583
|
+
// src/index.ts
|
|
1584
|
+
function jsonSchemaToZodShape(schema) {
|
|
1585
|
+
const properties = schema.properties ?? {};
|
|
1586
|
+
const required = new Set(schema.required ?? []);
|
|
1587
|
+
const shape = {};
|
|
1588
|
+
for (const [key, prop] of Object.entries(properties)) {
|
|
1589
|
+
let zodType;
|
|
1590
|
+
switch (prop.type) {
|
|
1591
|
+
case "string":
|
|
1592
|
+
if (prop.enum && Array.isArray(prop.enum)) {
|
|
1593
|
+
zodType = z.enum(prop.enum);
|
|
1594
|
+
} else {
|
|
1595
|
+
zodType = z.string();
|
|
1596
|
+
}
|
|
1597
|
+
break;
|
|
1598
|
+
case "number":
|
|
1599
|
+
case "integer":
|
|
1600
|
+
zodType = z.number();
|
|
1601
|
+
break;
|
|
1602
|
+
case "boolean":
|
|
1603
|
+
zodType = z.boolean();
|
|
1604
|
+
break;
|
|
1605
|
+
case "array":
|
|
1606
|
+
zodType = z.array(z.unknown());
|
|
1607
|
+
break;
|
|
1608
|
+
case "object":
|
|
1609
|
+
zodType = z.record(z.unknown());
|
|
1610
|
+
break;
|
|
1611
|
+
default:
|
|
1612
|
+
zodType = z.unknown();
|
|
1613
|
+
break;
|
|
1614
|
+
}
|
|
1615
|
+
if (typeof prop.description === "string") {
|
|
1616
|
+
zodType = zodType.describe(prop.description);
|
|
1617
|
+
}
|
|
1618
|
+
shape[key] = required.has(key) ? zodType : zodType.optional();
|
|
1619
|
+
}
|
|
1620
|
+
return shape;
|
|
1621
|
+
}
|
|
1622
|
+
function createMcpServer(state2, integrationManager2) {
|
|
1623
|
+
const { cache } = state2;
|
|
1624
|
+
const enriched = state2.getEnrichedAuthorizations();
|
|
1625
|
+
const instructions = buildMandateBrief({
|
|
1626
|
+
authorizations: enriched,
|
|
1627
|
+
executionLog: state2.executionLog,
|
|
1628
|
+
integrationManager: integrationManager2
|
|
1629
|
+
});
|
|
1630
|
+
const server = new McpServer(
|
|
1631
|
+
{ name: "suveren-gateway", version: "0.1.0" },
|
|
1632
|
+
{ instructions }
|
|
1633
|
+
);
|
|
1634
|
+
server.registerTool(
|
|
1635
|
+
"list-authorizations",
|
|
1636
|
+
{
|
|
1637
|
+
description: 'List what you are currently authorized to do. Call with no arguments for a compact overview, or with a domain (e.g., "charge") for full details including consumption, bounds, and capability map.',
|
|
1638
|
+
inputSchema: {
|
|
1639
|
+
domain: z.string().optional().describe('Profile domain to show full details for (e.g., "charge", "deploy"). Omit for compact overview.')
|
|
1640
|
+
}
|
|
1641
|
+
},
|
|
1642
|
+
listAuthorizationsHandler(state2, integrationManager2)
|
|
1643
|
+
);
|
|
1644
|
+
server.registerTool(
|
|
1645
|
+
"check-pending-attestations",
|
|
1646
|
+
{
|
|
1647
|
+
description: "Check if any attestations are waiting for your owner's approval.",
|
|
1648
|
+
inputSchema: {
|
|
1649
|
+
domain: z.string().describe(`The owner's domain (e.g., "compliance")`)
|
|
1650
|
+
}
|
|
1651
|
+
},
|
|
1652
|
+
checkPendingHandler(cache)
|
|
1653
|
+
);
|
|
1654
|
+
server.registerTool(
|
|
1655
|
+
"list-integrations",
|
|
1656
|
+
{
|
|
1657
|
+
description: "List all running integrations and their authorization status. Returns a compact overview \u2014 use list-authorizations(domain) for full details on a specific profile.",
|
|
1658
|
+
inputSchema: {}
|
|
1659
|
+
},
|
|
1660
|
+
listIntegrationsHandler(state2, integrationManager2)
|
|
1661
|
+
);
|
|
1662
|
+
server.registerTool(
|
|
1663
|
+
"check-pending-commitments",
|
|
1664
|
+
{
|
|
1665
|
+
description: "Check status of pending proposals awaiting domain owner commitment. Call with a proposal_id to check a specific proposal, or without to see all.",
|
|
1666
|
+
inputSchema: {
|
|
1667
|
+
proposal_id: z.string().optional().describe("Specific proposal ID to check. Omit to see all.")
|
|
1668
|
+
}
|
|
1669
|
+
},
|
|
1670
|
+
checkPendingCommitmentsHandler(state2, integrationManager2)
|
|
1671
|
+
);
|
|
1672
|
+
const proxiedTools = /* @__PURE__ */ new Map();
|
|
1673
|
+
function registerProxiedTools() {
|
|
1674
|
+
if (!integrationManager2) {
|
|
1675
|
+
console.error("[MCP] registerProxiedTools: no integrationManager");
|
|
1676
|
+
return;
|
|
1677
|
+
}
|
|
1678
|
+
const allTools = integrationManager2.getAllTools();
|
|
1679
|
+
for (const [name] of proxiedTools) {
|
|
1680
|
+
if (!allTools.some((t) => t.namespacedName === name)) {
|
|
1681
|
+
const entry = proxiedTools.get(name);
|
|
1682
|
+
entry?.registered.remove();
|
|
1683
|
+
proxiedTools.delete(name);
|
|
1684
|
+
}
|
|
1685
|
+
}
|
|
1686
|
+
for (const tool of allTools) {
|
|
1687
|
+
if (proxiedTools.has(tool.namespacedName)) continue;
|
|
1688
|
+
const handler = createGatedToolHandler(tool, integrationManager2, state2);
|
|
1689
|
+
const zodShape = jsonSchemaToZodShape(tool.inputSchema);
|
|
1690
|
+
const description = buildProxiedToolDescription(tool, state2);
|
|
1691
|
+
try {
|
|
1692
|
+
const registered = server.registerTool(
|
|
1693
|
+
tool.namespacedName,
|
|
1694
|
+
{
|
|
1695
|
+
description,
|
|
1696
|
+
...Object.keys(zodShape).length > 0 ? { inputSchema: zodShape } : {}
|
|
1697
|
+
},
|
|
1698
|
+
handler
|
|
1699
|
+
);
|
|
1700
|
+
proxiedTools.set(tool.namespacedName, { tool, registered });
|
|
1701
|
+
} catch (err) {
|
|
1702
|
+
console.error(`[MCP] Failed to register tool ${tool.namespacedName}:`, err);
|
|
1703
|
+
}
|
|
1704
|
+
}
|
|
1705
|
+
}
|
|
1706
|
+
function refreshTools() {
|
|
1707
|
+
const auths = state2.getEnrichedAuthorizations();
|
|
1708
|
+
for (const [, { tool, registered }] of proxiedTools) {
|
|
1709
|
+
const description = buildProxiedToolDescription(tool, state2);
|
|
1710
|
+
registered.update({ description });
|
|
1711
|
+
if (tool.gating?.profile) {
|
|
1712
|
+
const hasAuth = auths.some(
|
|
1713
|
+
(a) => a.complete && profileMatches(a.profileId, tool.gating.profile)
|
|
1714
|
+
);
|
|
1715
|
+
if (hasAuth) registered.enable();
|
|
1716
|
+
else registered.disable();
|
|
1717
|
+
} else {
|
|
1718
|
+
registered.disable();
|
|
1719
|
+
}
|
|
1720
|
+
}
|
|
1721
|
+
server.sendToolListChanged();
|
|
1722
|
+
}
|
|
1723
|
+
registerProxiedTools();
|
|
1724
|
+
refreshTools();
|
|
1725
|
+
return { server, gatekeeper: state2.gatekeeper, refreshTools, registerProxiedTools };
|
|
1726
|
+
}
|
|
1727
|
+
|
|
1728
|
+
// src/lib/gate-content.ts
|
|
1729
|
+
import { createHash } from "crypto";
|
|
1730
|
+
import { decodeAttestationBlob } from "@hap/core";
|
|
1731
|
+
function hashGateContent(text) {
|
|
1732
|
+
const hex = createHash("sha256").update(text, "utf-8").digest("hex");
|
|
1733
|
+
return `sha256:${hex}`;
|
|
1734
|
+
}
|
|
1735
|
+
function verifyGateContentHashes(content, auth) {
|
|
1736
|
+
const errors = [];
|
|
1737
|
+
if (auth.attestations.length === 0) {
|
|
1738
|
+
return { valid: false, errors: ["No attestations available to verify against"] };
|
|
1739
|
+
}
|
|
1740
|
+
const attestation = decodeAttestationBlob(auth.attestations[0].blob);
|
|
1741
|
+
const expectedHashes = attestation.payload.gate_content_hashes;
|
|
1742
|
+
if (!expectedHashes?.intent) {
|
|
1743
|
+
return { valid: false, errors: ["Attestation does not contain intent hash"] };
|
|
1744
|
+
}
|
|
1745
|
+
if (!content.intent) {
|
|
1746
|
+
return { valid: false, errors: ["Missing intent content"] };
|
|
1747
|
+
}
|
|
1748
|
+
const actual = hashGateContent(content.intent);
|
|
1749
|
+
if (actual !== expectedHashes.intent) {
|
|
1750
|
+
errors.push(`Hash mismatch for "intent": expected ${expectedHashes.intent}, got ${actual}`);
|
|
1751
|
+
}
|
|
1752
|
+
return { valid: errors.length === 0, errors };
|
|
1753
|
+
}
|
|
1754
|
+
|
|
1755
|
+
// src/lib/integration-registry.ts
|
|
1756
|
+
import { mkdirSync as mkdirSync3, readFileSync as readFileSync4, writeFileSync as writeFileSync3, existsSync as existsSync4 } from "fs";
|
|
1757
|
+
import { homedir as homedir4 } from "os";
|
|
1758
|
+
import { dirname as dirname3, join as join4 } from "path";
|
|
1759
|
+
var DEFAULT_DATA_DIR = process.env.SUVEREN_DATA_DIR ?? join4(homedir4(), ".suveren");
|
|
1760
|
+
var IntegrationRegistry = class {
|
|
1761
|
+
integrations = /* @__PURE__ */ new Map();
|
|
1762
|
+
filePath;
|
|
1763
|
+
constructor(dataDir) {
|
|
1764
|
+
const dir = dataDir ?? DEFAULT_DATA_DIR;
|
|
1765
|
+
this.filePath = join4(dir, "integrations.json");
|
|
1766
|
+
this.load();
|
|
1767
|
+
}
|
|
1768
|
+
// ─── CRUD ───────────────────────────────────────────────────────────────
|
|
1769
|
+
get(id) {
|
|
1770
|
+
return this.integrations.get(id);
|
|
1771
|
+
}
|
|
1772
|
+
getAll() {
|
|
1773
|
+
return Array.from(this.integrations.values());
|
|
1774
|
+
}
|
|
1775
|
+
getEnabled() {
|
|
1776
|
+
return this.getAll().filter((i) => i.enabled);
|
|
1777
|
+
}
|
|
1778
|
+
add(config) {
|
|
1779
|
+
this.integrations.set(config.id, config);
|
|
1780
|
+
this.save();
|
|
1781
|
+
}
|
|
1782
|
+
update(id, updates) {
|
|
1783
|
+
const existing = this.integrations.get(id);
|
|
1784
|
+
if (!existing) return false;
|
|
1785
|
+
this.integrations.set(id, { ...existing, ...updates });
|
|
1786
|
+
this.save();
|
|
1787
|
+
return true;
|
|
1788
|
+
}
|
|
1789
|
+
remove(id) {
|
|
1790
|
+
const deleted = this.integrations.delete(id);
|
|
1791
|
+
if (deleted) this.save();
|
|
1792
|
+
return deleted;
|
|
1793
|
+
}
|
|
1794
|
+
// ─── Load / Save ────────────────────────────────────────────────────────
|
|
1795
|
+
load() {
|
|
1796
|
+
if (!existsSync4(this.filePath)) {
|
|
1797
|
+
mkdirSync3(dirname3(this.filePath), { recursive: true });
|
|
1798
|
+
return;
|
|
1799
|
+
}
|
|
1800
|
+
try {
|
|
1801
|
+
const raw = readFileSync4(this.filePath, "utf-8");
|
|
1802
|
+
const data = JSON.parse(raw);
|
|
1803
|
+
const migrated = data.integrations.map((i) => {
|
|
1804
|
+
if ("toolGating" in i && !("profile" in i)) {
|
|
1805
|
+
const old = i;
|
|
1806
|
+
const toolGating = old.toolGating;
|
|
1807
|
+
const config = {
|
|
1808
|
+
id: i.id,
|
|
1809
|
+
name: i.name,
|
|
1810
|
+
command: i.command,
|
|
1811
|
+
args: i.args,
|
|
1812
|
+
envKeys: i.envKeys,
|
|
1813
|
+
profile: toolGating?.profile ?? null,
|
|
1814
|
+
enabled: i.enabled
|
|
1815
|
+
};
|
|
1816
|
+
return config;
|
|
1817
|
+
}
|
|
1818
|
+
return i;
|
|
1819
|
+
});
|
|
1820
|
+
this.integrations = new Map(migrated.map((i) => [i.id, i]));
|
|
1821
|
+
} catch {
|
|
1822
|
+
console.error(`[IntegrationRegistry] Could not parse ${this.filePath}, starting fresh`);
|
|
1823
|
+
this.integrations = /* @__PURE__ */ new Map();
|
|
1824
|
+
}
|
|
1825
|
+
}
|
|
1826
|
+
save() {
|
|
1827
|
+
const data = {
|
|
1828
|
+
version: 1,
|
|
1829
|
+
integrations: Array.from(this.integrations.values())
|
|
1830
|
+
};
|
|
1831
|
+
mkdirSync3(dirname3(this.filePath), { recursive: true });
|
|
1832
|
+
writeFileSync3(this.filePath, JSON.stringify(data, null, 2), { encoding: "utf-8" });
|
|
1833
|
+
}
|
|
1834
|
+
};
|
|
1835
|
+
|
|
1836
|
+
// src/lib/integration-manager.ts
|
|
1837
|
+
import { homedir as homedir5 } from "os";
|
|
1838
|
+
import { join as join5 } from "path";
|
|
1839
|
+
import { existsSync as existsSync5, writeFileSync as writeFileSync4, mkdirSync as mkdirSync4 } from "fs";
|
|
1840
|
+
import { execSync } from "child_process";
|
|
1841
|
+
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
|
|
1842
|
+
import { StdioClientTransport } from "@modelcontextprotocol/sdk/client/stdio.js";
|
|
1843
|
+
import { getProfile as getProfile3 } from "@hap/core";
|
|
1844
|
+
var DEFAULT_DATA_DIR2 = process.env.SUVEREN_DATA_DIR ?? join5(homedir5(), ".suveren");
|
|
1845
|
+
var INTEGRATIONS_DIR = process.env.SUVEREN_INTEGRATIONS_DIR ?? join5(DEFAULT_DATA_DIR2, "integrations");
|
|
1846
|
+
var INTEGRATIONS_BIN = join5(INTEGRATIONS_DIR, "node_modules", ".bin");
|
|
1847
|
+
function buildPath() {
|
|
1848
|
+
const base = process.env.PATH ?? "";
|
|
1849
|
+
return [INTEGRATIONS_BIN, base].join(":");
|
|
1850
|
+
}
|
|
1851
|
+
function ensureIntegrationsDir() {
|
|
1852
|
+
if (!existsSync5(INTEGRATIONS_DIR)) {
|
|
1853
|
+
mkdirSync4(INTEGRATIONS_DIR, { recursive: true });
|
|
1854
|
+
}
|
|
1855
|
+
const pkgPath = join5(INTEGRATIONS_DIR, "package.json");
|
|
1856
|
+
if (!existsSync5(pkgPath)) {
|
|
1857
|
+
writeFileSync4(pkgPath, JSON.stringify({ name: "suveren-integrations", version: "1.0.0", private: true }, null, 2));
|
|
1858
|
+
}
|
|
1859
|
+
}
|
|
1860
|
+
var RESPAWN_DELAYS = [2e3, 4e3, 6e3];
|
|
1861
|
+
var MAX_RESPAWN_ATTEMPTS = 3;
|
|
1862
|
+
var IntegrationManager = class {
|
|
1863
|
+
constructor(serviceCredentials2) {
|
|
1864
|
+
this.serviceCredentials = serviceCredentials2;
|
|
1865
|
+
}
|
|
1866
|
+
running = /* @__PURE__ */ new Map();
|
|
1867
|
+
onToolsChanged = null;
|
|
1868
|
+
/**
|
|
1869
|
+
* Register a callback invoked when the tool set changes
|
|
1870
|
+
* (integration started, stopped, or crashed).
|
|
1871
|
+
*/
|
|
1872
|
+
setOnToolsChanged(cb) {
|
|
1873
|
+
this.onToolsChanged = cb;
|
|
1874
|
+
}
|
|
1875
|
+
/**
|
|
1876
|
+
* Install an npm package into the managed integrations directory if not already present.
|
|
1877
|
+
* Called automatically before spawning when config.npmPackage is set.
|
|
1878
|
+
*/
|
|
1879
|
+
ensureInstalled(npmPackage) {
|
|
1880
|
+
ensureIntegrationsDir();
|
|
1881
|
+
const binName = npmPackage.split("/").pop()?.replace(/^@/, "") ?? npmPackage;
|
|
1882
|
+
const installed = existsSync5(join5(INTEGRATIONS_DIR, "node_modules", ...npmPackage.split("/")));
|
|
1883
|
+
if (installed) return;
|
|
1884
|
+
console.error(`[IntegrationManager] Installing ${npmPackage}...`);
|
|
1885
|
+
try {
|
|
1886
|
+
execSync(`npm install --no-fund --no-audit ${npmPackage}`, {
|
|
1887
|
+
cwd: INTEGRATIONS_DIR,
|
|
1888
|
+
stdio: ["pipe", "pipe", "pipe"],
|
|
1889
|
+
timeout: 12e4
|
|
1890
|
+
});
|
|
1891
|
+
console.error(`[IntegrationManager] Installed ${npmPackage}`);
|
|
1892
|
+
} catch (err) {
|
|
1893
|
+
const message = err instanceof Error ? err.message : String(err);
|
|
1894
|
+
throw new Error(`Failed to install ${npmPackage}: ${message}`);
|
|
1895
|
+
}
|
|
1896
|
+
}
|
|
1897
|
+
/**
|
|
1898
|
+
* Start a downstream MCP server integration.
|
|
1899
|
+
* Installs npm package on-demand if needed, resolves envKeys,
|
|
1900
|
+
* spawns the process, connects as MCP client, and discovers tools.
|
|
1901
|
+
*/
|
|
1902
|
+
async startIntegration(config) {
|
|
1903
|
+
if (this.running.has(config.id)) {
|
|
1904
|
+
await this.stopIntegration(config.id);
|
|
1905
|
+
}
|
|
1906
|
+
if (config.npmPackage) {
|
|
1907
|
+
this.ensureInstalled(config.npmPackage);
|
|
1908
|
+
}
|
|
1909
|
+
const env = this.resolveEnvKeys(config);
|
|
1910
|
+
const transport = new StdioClientTransport({
|
|
1911
|
+
command: config.command,
|
|
1912
|
+
args: config.args,
|
|
1913
|
+
env: {
|
|
1914
|
+
...process.env,
|
|
1915
|
+
PATH: buildPath(),
|
|
1916
|
+
HAP_DATA_DIR: DEFAULT_DATA_DIR2,
|
|
1917
|
+
...config.env,
|
|
1918
|
+
...env
|
|
1919
|
+
}
|
|
1920
|
+
});
|
|
1921
|
+
const client = new Client(
|
|
1922
|
+
{ name: "suveren-gateway", version: "0.1.0" },
|
|
1923
|
+
{ capabilities: {} }
|
|
1924
|
+
);
|
|
1925
|
+
await client.connect(transport);
|
|
1926
|
+
console.error(`[IntegrationManager] Connected to ${config.id} (${config.command} ${config.args.join(" ")})`);
|
|
1927
|
+
const toolsResult = await client.listTools();
|
|
1928
|
+
const profileGating = config.toolGating ?? (config.profile ? getProfile3(config.profile)?.toolGating ?? null : null);
|
|
1929
|
+
const tools = (toolsResult.tools ?? []).map((tool) => {
|
|
1930
|
+
const gating = this.resolveToolGating(config.profile, profileGating, tool.name);
|
|
1931
|
+
return {
|
|
1932
|
+
originalName: tool.name,
|
|
1933
|
+
namespacedName: `${config.id}__${tool.name}`,
|
|
1934
|
+
integrationId: config.id,
|
|
1935
|
+
description: tool.description ?? "",
|
|
1936
|
+
inputSchema: tool.inputSchema ?? {},
|
|
1937
|
+
gating
|
|
1938
|
+
};
|
|
1939
|
+
});
|
|
1940
|
+
console.error(`[IntegrationManager] Discovered ${tools.length} tools from ${config.id}`);
|
|
1941
|
+
const entry = {
|
|
1942
|
+
config,
|
|
1943
|
+
client,
|
|
1944
|
+
transport,
|
|
1945
|
+
tools,
|
|
1946
|
+
respawnAttempts: 0
|
|
1947
|
+
};
|
|
1948
|
+
this.running.set(config.id, entry);
|
|
1949
|
+
transport.onclose = () => {
|
|
1950
|
+
console.error(`[IntegrationManager] Transport closed for ${config.id}`);
|
|
1951
|
+
this.handleCrash(config.id);
|
|
1952
|
+
};
|
|
1953
|
+
this.onToolsChanged?.();
|
|
1954
|
+
return tools;
|
|
1955
|
+
}
|
|
1956
|
+
/**
|
|
1957
|
+
* Stop a running integration, closing its transport and removing its tools.
|
|
1958
|
+
*/
|
|
1959
|
+
async stopIntegration(id) {
|
|
1960
|
+
const entry = this.running.get(id);
|
|
1961
|
+
if (!entry) return;
|
|
1962
|
+
entry.transport.onclose = void 0;
|
|
1963
|
+
try {
|
|
1964
|
+
await entry.client.close();
|
|
1965
|
+
} catch {
|
|
1966
|
+
}
|
|
1967
|
+
this.running.delete(id);
|
|
1968
|
+
console.error(`[IntegrationManager] Stopped ${id}`);
|
|
1969
|
+
this.onToolsChanged?.();
|
|
1970
|
+
}
|
|
1971
|
+
/**
|
|
1972
|
+
* Proxy a tool call to a downstream MCP server.
|
|
1973
|
+
*/
|
|
1974
|
+
async callTool(integrationId, toolName, args) {
|
|
1975
|
+
const entry = this.running.get(integrationId);
|
|
1976
|
+
if (!entry) {
|
|
1977
|
+
return {
|
|
1978
|
+
content: [{ type: "text", text: `Integration "${integrationId}" is not running.` }],
|
|
1979
|
+
isError: true
|
|
1980
|
+
};
|
|
1981
|
+
}
|
|
1982
|
+
try {
|
|
1983
|
+
const result = await entry.client.callTool({ name: toolName, arguments: args });
|
|
1984
|
+
const content = result.content.map((item) => ({
|
|
1985
|
+
type: item.type,
|
|
1986
|
+
text: item.text ?? JSON.stringify(item)
|
|
1987
|
+
}));
|
|
1988
|
+
return { content, isError: result.isError };
|
|
1989
|
+
} catch (err) {
|
|
1990
|
+
const message = err instanceof Error ? err.message : String(err);
|
|
1991
|
+
return {
|
|
1992
|
+
content: [{ type: "text", text: `Tool call failed: ${message}` }],
|
|
1993
|
+
isError: true
|
|
1994
|
+
};
|
|
1995
|
+
}
|
|
1996
|
+
}
|
|
1997
|
+
/**
|
|
1998
|
+
* Get all discovered tools across all running integrations.
|
|
1999
|
+
*/
|
|
2000
|
+
getAllTools() {
|
|
2001
|
+
const tools = [];
|
|
2002
|
+
for (const entry of this.running.values()) {
|
|
2003
|
+
tools.push(...entry.tools);
|
|
2004
|
+
}
|
|
2005
|
+
return tools;
|
|
2006
|
+
}
|
|
2007
|
+
/**
|
|
2008
|
+
* Get status info for all known integrations.
|
|
2009
|
+
*/
|
|
2010
|
+
getStatus(allConfigs) {
|
|
2011
|
+
const statuses = [];
|
|
2012
|
+
for (const entry of this.running.values()) {
|
|
2013
|
+
statuses.push({
|
|
2014
|
+
id: entry.config.id,
|
|
2015
|
+
name: entry.config.name,
|
|
2016
|
+
running: true,
|
|
2017
|
+
toolCount: entry.tools.length
|
|
2018
|
+
});
|
|
2019
|
+
}
|
|
2020
|
+
if (allConfigs) {
|
|
2021
|
+
for (const config of allConfigs) {
|
|
2022
|
+
if (!this.running.has(config.id)) {
|
|
2023
|
+
statuses.push({
|
|
2024
|
+
id: config.id,
|
|
2025
|
+
name: config.name,
|
|
2026
|
+
running: false,
|
|
2027
|
+
toolCount: 0
|
|
2028
|
+
});
|
|
2029
|
+
}
|
|
2030
|
+
}
|
|
2031
|
+
}
|
|
2032
|
+
return statuses;
|
|
2033
|
+
}
|
|
2034
|
+
/**
|
|
2035
|
+
* Check if an integration is running.
|
|
2036
|
+
*/
|
|
2037
|
+
isRunning(id) {
|
|
2038
|
+
return this.running.has(id);
|
|
2039
|
+
}
|
|
2040
|
+
/**
|
|
2041
|
+
* Check if all required env keys for an integration can be resolved.
|
|
2042
|
+
*/
|
|
2043
|
+
canResolveEnvKeys(config) {
|
|
2044
|
+
for (const vaultRef of Object.values(config.envKeys)) {
|
|
2045
|
+
const [serviceId, key] = vaultRef.split(".", 2);
|
|
2046
|
+
const creds = this.serviceCredentials.get(serviceId);
|
|
2047
|
+
if (!creds || !(key in creds)) return false;
|
|
2048
|
+
}
|
|
2049
|
+
return true;
|
|
2050
|
+
}
|
|
2051
|
+
/**
|
|
2052
|
+
* Read the credentials stored in memory for a given service id. Used by
|
|
2053
|
+
* startup diagnostics to report which keys are missing when an integration
|
|
2054
|
+
* cannot start — not a general read API.
|
|
2055
|
+
*/
|
|
2056
|
+
getServiceCredentials(serviceId) {
|
|
2057
|
+
return this.serviceCredentials.get(serviceId);
|
|
2058
|
+
}
|
|
2059
|
+
/**
|
|
2060
|
+
* Gracefully shut down all running integrations.
|
|
2061
|
+
*/
|
|
2062
|
+
async shutdown() {
|
|
2063
|
+
const ids = Array.from(this.running.keys());
|
|
2064
|
+
await Promise.allSettled(ids.map((id) => this.stopIntegration(id)));
|
|
2065
|
+
console.error(`[IntegrationManager] All integrations shut down`);
|
|
2066
|
+
}
|
|
2067
|
+
// ─── Private ──────────────────────────────────────────────────────────────
|
|
2068
|
+
/**
|
|
2069
|
+
* Resolve envKeys from serviceCredentials.
|
|
2070
|
+
* Format: { "STRIPE_API_KEY": "stripe.apiKey" } → looks up serviceCredentials.get("stripe")?.apiKey
|
|
2071
|
+
*/
|
|
2072
|
+
resolveEnvKeys(config) {
|
|
2073
|
+
const env = {};
|
|
2074
|
+
for (const [envVar, vaultRef] of Object.entries(config.envKeys)) {
|
|
2075
|
+
const [serviceId, key] = vaultRef.split(".", 2);
|
|
2076
|
+
const creds = this.serviceCredentials.get(serviceId);
|
|
2077
|
+
if (creds && key in creds) {
|
|
2078
|
+
env[envVar] = creds[key];
|
|
2079
|
+
}
|
|
2080
|
+
}
|
|
2081
|
+
for (const [envVar, vaultRef] of Object.entries(config.optionalEnvKeys ?? {})) {
|
|
2082
|
+
const [serviceId, key] = vaultRef.split(".", 2);
|
|
2083
|
+
const creds = this.serviceCredentials.get(serviceId);
|
|
2084
|
+
if (creds && key in creds) {
|
|
2085
|
+
env[envVar] = creds[key];
|
|
2086
|
+
}
|
|
2087
|
+
}
|
|
2088
|
+
return env;
|
|
2089
|
+
}
|
|
2090
|
+
/**
|
|
2091
|
+
* Resolve gating config for a tool from the profile's toolGating section.
|
|
2092
|
+
* Returns the runtime ToolGatingConfig that tool-proxy.ts consumes.
|
|
2093
|
+
*/
|
|
2094
|
+
resolveToolGating(profileId, profileGating, toolName) {
|
|
2095
|
+
if (!profileId || !profileGating) return null;
|
|
2096
|
+
if (profileGating.overrides && toolName in profileGating.overrides) {
|
|
2097
|
+
const override = profileGating.overrides[toolName];
|
|
2098
|
+
if (override === null || override.category === "read") {
|
|
2099
|
+
return {
|
|
2100
|
+
profile: profileId,
|
|
2101
|
+
executionMapping: {},
|
|
2102
|
+
category: "read"
|
|
2103
|
+
};
|
|
2104
|
+
}
|
|
2105
|
+
return {
|
|
2106
|
+
profile: profileId,
|
|
2107
|
+
executionMapping: override.executionMapping,
|
|
2108
|
+
staticExecution: override.staticExecution
|
|
2109
|
+
};
|
|
2110
|
+
}
|
|
2111
|
+
return {
|
|
2112
|
+
profile: profileId,
|
|
2113
|
+
executionMapping: profileGating.default.executionMapping,
|
|
2114
|
+
staticExecution: profileGating.default.staticExecution
|
|
2115
|
+
};
|
|
2116
|
+
}
|
|
2117
|
+
/**
|
|
2118
|
+
* Handle a downstream process crash — attempt respawn with backoff.
|
|
2119
|
+
*/
|
|
2120
|
+
handleCrash(id) {
|
|
2121
|
+
const entry = this.running.get(id);
|
|
2122
|
+
if (!entry) return;
|
|
2123
|
+
const attempts = entry.respawnAttempts;
|
|
2124
|
+
this.running.delete(id);
|
|
2125
|
+
this.onToolsChanged?.();
|
|
2126
|
+
if (attempts >= MAX_RESPAWN_ATTEMPTS) {
|
|
2127
|
+
console.error(`[IntegrationManager] ${id} crashed ${MAX_RESPAWN_ATTEMPTS} times, giving up`);
|
|
2128
|
+
return;
|
|
2129
|
+
}
|
|
2130
|
+
const delay = RESPAWN_DELAYS[attempts] ?? RESPAWN_DELAYS[RESPAWN_DELAYS.length - 1];
|
|
2131
|
+
console.error(`[IntegrationManager] ${id} crashed, respawning in ${delay}ms (attempt ${attempts + 1}/${MAX_RESPAWN_ATTEMPTS})`);
|
|
2132
|
+
setTimeout(async () => {
|
|
2133
|
+
try {
|
|
2134
|
+
await this.startIntegration(entry.config);
|
|
2135
|
+
const newEntry = this.running.get(id);
|
|
2136
|
+
if (newEntry) {
|
|
2137
|
+
newEntry.respawnAttempts = attempts + 1;
|
|
2138
|
+
}
|
|
2139
|
+
} catch (err) {
|
|
2140
|
+
console.error(`[IntegrationManager] Failed to respawn ${id}:`, err);
|
|
2141
|
+
const fakeEntry = {
|
|
2142
|
+
config: entry.config,
|
|
2143
|
+
client: null,
|
|
2144
|
+
transport: null,
|
|
2145
|
+
tools: [],
|
|
2146
|
+
respawnAttempts: attempts + 1
|
|
2147
|
+
};
|
|
2148
|
+
this.running.set(id, fakeEntry);
|
|
2149
|
+
this.handleCrash(id);
|
|
2150
|
+
}
|
|
2151
|
+
}, delay);
|
|
2152
|
+
}
|
|
2153
|
+
};
|
|
2154
|
+
|
|
2155
|
+
// src/lib/profile-loader.ts
|
|
2156
|
+
import { readFileSync as readFileSync5, existsSync as existsSync6 } from "fs";
|
|
2157
|
+
import { join as join6, resolve } from "path";
|
|
2158
|
+
import { registerProfile } from "@hap/core";
|
|
2159
|
+
function loadProfiles(profilesDir) {
|
|
2160
|
+
const dir = resolve(profilesDir ?? process.env.SUVEREN_PROFILES_DIR ?? join6(import.meta.dirname ?? __dirname, "..", "..", "..", "..", "..", "hap-profiles"));
|
|
2161
|
+
const indexPath = join6(dir, "index.json");
|
|
2162
|
+
if (!existsSync6(indexPath)) {
|
|
2163
|
+
console.error(`[ProfileLoader] No index.json found at ${indexPath}, skipping profile loading`);
|
|
2164
|
+
return 0;
|
|
2165
|
+
}
|
|
2166
|
+
let index;
|
|
2167
|
+
try {
|
|
2168
|
+
index = JSON.parse(readFileSync5(indexPath, "utf-8"));
|
|
2169
|
+
} catch (err) {
|
|
2170
|
+
console.error(`[ProfileLoader] Failed to parse ${indexPath}:`, err);
|
|
2171
|
+
return 0;
|
|
2172
|
+
}
|
|
2173
|
+
let loaded = 0;
|
|
2174
|
+
for (const [profileId, relativePath] of Object.entries(index.profiles)) {
|
|
2175
|
+
const profilePath = join6(dir, relativePath);
|
|
2176
|
+
try {
|
|
2177
|
+
const profile = JSON.parse(readFileSync5(profilePath, "utf-8"));
|
|
2178
|
+
registerProfile(profileId, profile);
|
|
2179
|
+
const shortName = profileId.split("/").pop()?.replace(/@.*$/, "");
|
|
2180
|
+
if (shortName && shortName !== profileId) {
|
|
2181
|
+
registerProfile(shortName, profile);
|
|
2182
|
+
}
|
|
2183
|
+
loaded++;
|
|
2184
|
+
} catch (err) {
|
|
2185
|
+
console.error(`[ProfileLoader] Failed to load profile ${profileId} from ${profilePath}:`, err);
|
|
2186
|
+
}
|
|
2187
|
+
}
|
|
2188
|
+
console.error(`[ProfileLoader] Loaded ${loaded} profile(s) from ${dir}`);
|
|
2189
|
+
return loaded;
|
|
2190
|
+
}
|
|
2191
|
+
|
|
2192
|
+
// src/lib/manifest-loader.ts
|
|
2193
|
+
import { readFileSync as readFileSync6, existsSync as existsSync7 } from "fs";
|
|
2194
|
+
import { join as join7, resolve as resolve2 } from "path";
|
|
2195
|
+
var manifests = /* @__PURE__ */ new Map();
|
|
2196
|
+
function loadManifests(integrationsDir) {
|
|
2197
|
+
const dir = resolve2(
|
|
2198
|
+
integrationsDir ?? process.env.SUVEREN_MANIFESTS_DIR ?? join7(import.meta.dirname ?? __dirname, "..", "..", "..", "..", "content", "integrations")
|
|
2199
|
+
);
|
|
2200
|
+
const indexPath = join7(dir, "index.json");
|
|
2201
|
+
if (!existsSync7(indexPath)) {
|
|
2202
|
+
console.error(`[ManifestLoader] No index.json found at ${indexPath}, skipping manifest loading`);
|
|
2203
|
+
return 0;
|
|
2204
|
+
}
|
|
2205
|
+
let index;
|
|
2206
|
+
try {
|
|
2207
|
+
index = JSON.parse(readFileSync6(indexPath, "utf-8"));
|
|
2208
|
+
} catch (err) {
|
|
2209
|
+
console.error(`[ManifestLoader] Failed to parse ${indexPath}:`, err);
|
|
2210
|
+
return 0;
|
|
2211
|
+
}
|
|
2212
|
+
let loaded = 0;
|
|
2213
|
+
for (const [id, relativePath] of Object.entries(index.integrations)) {
|
|
2214
|
+
const manifestPath = join7(dir, relativePath);
|
|
2215
|
+
try {
|
|
2216
|
+
const manifest = JSON.parse(readFileSync6(manifestPath, "utf-8"));
|
|
2217
|
+
manifests.set(id, manifest);
|
|
2218
|
+
loaded++;
|
|
2219
|
+
} catch (err) {
|
|
2220
|
+
console.error(`[ManifestLoader] Failed to load manifest ${id} from ${manifestPath}:`, err);
|
|
2221
|
+
}
|
|
2222
|
+
}
|
|
2223
|
+
console.error(`[ManifestLoader] Loaded ${loaded} integration manifest(s) from ${dir}`);
|
|
2224
|
+
return loaded;
|
|
2225
|
+
}
|
|
2226
|
+
function getManifest(id) {
|
|
2227
|
+
return manifests.get(id);
|
|
2228
|
+
}
|
|
2229
|
+
function getAllManifests() {
|
|
2230
|
+
return Array.from(manifests.values());
|
|
2231
|
+
}
|
|
2232
|
+
|
|
2233
|
+
// bin/http.ts
|
|
2234
|
+
var spUrl = process.env.SUVEREN_AS_URL ?? "https://www.suveren.ai";
|
|
2235
|
+
var port = parseInt(process.env.SUVEREN_MCP_PORT ?? "3430", 10);
|
|
2236
|
+
var state = new SharedState(spUrl);
|
|
2237
|
+
var spApiKey = process.env.SUVEREN_AS_API_KEY ?? "";
|
|
2238
|
+
if (spApiKey) {
|
|
2239
|
+
state.spClient.setApiKey(spApiKey);
|
|
2240
|
+
}
|
|
2241
|
+
var serviceCredentials = /* @__PURE__ */ new Map();
|
|
2242
|
+
var integrationRegistry = new IntegrationRegistry();
|
|
2243
|
+
var integrationManager = new IntegrationManager(serviceCredentials);
|
|
2244
|
+
var activeSessions = /* @__PURE__ */ new Map();
|
|
2245
|
+
function refreshAllSessions() {
|
|
2246
|
+
for (const [sessionId, session] of activeSessions) {
|
|
2247
|
+
try {
|
|
2248
|
+
session.registerProxiedTools();
|
|
2249
|
+
session.refreshTools();
|
|
2250
|
+
} catch (err) {
|
|
2251
|
+
console.error(`[Suveren MCP] Failed to refresh session ${sessionId}:`, err);
|
|
2252
|
+
}
|
|
2253
|
+
}
|
|
2254
|
+
}
|
|
2255
|
+
integrationManager.setOnToolsChanged(() => {
|
|
2256
|
+
refreshAllSessions();
|
|
2257
|
+
});
|
|
2258
|
+
var app = express();
|
|
2259
|
+
app.use(express.json());
|
|
2260
|
+
app.use((_req, res, next) => {
|
|
2261
|
+
res.header("Access-Control-Allow-Origin", "http://localhost:3000");
|
|
2262
|
+
res.header("Access-Control-Allow-Methods", "GET, POST, DELETE, OPTIONS");
|
|
2263
|
+
res.header("Access-Control-Allow-Headers", "Content-Type, mcp-session-id");
|
|
2264
|
+
if (_req.method === "OPTIONS") {
|
|
2265
|
+
res.sendStatus(204);
|
|
2266
|
+
return;
|
|
2267
|
+
}
|
|
2268
|
+
next();
|
|
2269
|
+
});
|
|
2270
|
+
var INTERNAL_SECRET = process.env.SUVEREN_INTERNAL_SECRET ?? "";
|
|
2271
|
+
function internalOnly(req, res, next) {
|
|
2272
|
+
const ip = req.ip ?? req.socket.remoteAddress ?? "";
|
|
2273
|
+
const isLoopback = ip === "127.0.0.1" || ip === "::1" || ip === "::ffff:127.0.0.1";
|
|
2274
|
+
if (!isLoopback) {
|
|
2275
|
+
res.status(403).json({ error: "Internal endpoint \u2014 loopback only" });
|
|
2276
|
+
return;
|
|
2277
|
+
}
|
|
2278
|
+
const secret = req.headers["x-internal-secret"];
|
|
2279
|
+
if (INTERNAL_SECRET && secret !== INTERNAL_SECRET) {
|
|
2280
|
+
res.status(403).json({ error: "Invalid internal secret" });
|
|
2281
|
+
return;
|
|
2282
|
+
}
|
|
2283
|
+
next();
|
|
2284
|
+
}
|
|
2285
|
+
app.post("/internal/configure", internalOnly, (req, res) => {
|
|
2286
|
+
const { sessionCookie, vaultKeyHex, apiKey } = req.body;
|
|
2287
|
+
if (!sessionCookie) {
|
|
2288
|
+
res.status(400).json({ error: "Missing sessionCookie" });
|
|
2289
|
+
return;
|
|
2290
|
+
}
|
|
2291
|
+
state.spClient.setSessionCookie(sessionCookie);
|
|
2292
|
+
console.error("[Suveren MCP] Session cookie configured by control-plane");
|
|
2293
|
+
if (vaultKeyHex) {
|
|
2294
|
+
state.gateStore.setVaultKey(Buffer.from(vaultKeyHex, "hex"));
|
|
2295
|
+
console.error("[Suveren MCP] Vault key configured \u2014 gate store encryption active");
|
|
2296
|
+
}
|
|
2297
|
+
if (apiKey) {
|
|
2298
|
+
state.spClient.setApiKey(apiKey);
|
|
2299
|
+
console.error("[Suveren MCP] SP API key configured by control-plane");
|
|
2300
|
+
}
|
|
2301
|
+
res.json({ ok: true });
|
|
2302
|
+
});
|
|
2303
|
+
app.post("/internal/gate-content", internalOnly, async (req, res) => {
|
|
2304
|
+
try {
|
|
2305
|
+
const { frameHash, boundsHash, contextHash, context, path: rawPath, gateContent } = req.body;
|
|
2306
|
+
const storageHash = frameHash ?? boundsHash;
|
|
2307
|
+
const hasIntent = !!gateContent?.intent;
|
|
2308
|
+
const hasLegacy = !!gateContent?.problem && !!gateContent?.objective && !!gateContent?.tradeoffs;
|
|
2309
|
+
if (!storageHash || !hasIntent && !hasLegacy) {
|
|
2310
|
+
res.status(400).json({ error: "Missing required fields: frameHash (or boundsHash), gateContent.{intent} or gateContent.{problem,objective,tradeoffs}" });
|
|
2311
|
+
return;
|
|
2312
|
+
}
|
|
2313
|
+
const auth = await state.cache.syncAuthorization(storageHash);
|
|
2314
|
+
if (!auth) {
|
|
2315
|
+
res.status(404).json({ error: `No attestation found for frame hash ${storageHash}` });
|
|
2316
|
+
return;
|
|
2317
|
+
}
|
|
2318
|
+
const verification = verifyGateContentHashes(gateContent, auth);
|
|
2319
|
+
if (!verification.valid) {
|
|
2320
|
+
res.status(400).json({ error: "Gate content hash mismatch", details: verification.errors });
|
|
2321
|
+
return;
|
|
2322
|
+
}
|
|
2323
|
+
const path = rawPath || auth.profileId;
|
|
2324
|
+
state.setGateContent(path, storageHash, auth.profileId, gateContent, {
|
|
2325
|
+
boundsHash,
|
|
2326
|
+
contextHash,
|
|
2327
|
+
context
|
|
2328
|
+
});
|
|
2329
|
+
console.error(`[Suveren MCP] Gate content accepted for ${path}`);
|
|
2330
|
+
for (const [sessionId, session] of activeSessions) {
|
|
2331
|
+
try {
|
|
2332
|
+
session.refreshTools();
|
|
2333
|
+
} catch (err) {
|
|
2334
|
+
console.error(`[Suveren MCP] Failed to refresh session ${sessionId}:`, err);
|
|
2335
|
+
}
|
|
2336
|
+
}
|
|
2337
|
+
res.json({ ok: true, path });
|
|
2338
|
+
} catch (err) {
|
|
2339
|
+
console.error("[Suveren MCP] Error handling /internal/gate-content:", err);
|
|
2340
|
+
res.status(500).json({ error: "Internal error" });
|
|
2341
|
+
}
|
|
2342
|
+
});
|
|
2343
|
+
app.post("/internal/service-credentials", internalOnly, (req, res) => {
|
|
2344
|
+
const { serviceId, credentials } = req.body;
|
|
2345
|
+
if (!serviceId || !credentials) {
|
|
2346
|
+
res.status(400).json({ error: "Missing serviceId or credentials" });
|
|
2347
|
+
return;
|
|
2348
|
+
}
|
|
2349
|
+
serviceCredentials.set(serviceId, credentials);
|
|
2350
|
+
console.error(`[Suveren MCP] Service credentials stored for ${serviceId}`);
|
|
2351
|
+
void startIntegrationForService(serviceId);
|
|
2352
|
+
res.json({ ok: true });
|
|
2353
|
+
});
|
|
2354
|
+
app.post("/internal/start-pending-integrations", internalOnly, async (_req, res) => {
|
|
2355
|
+
try {
|
|
2356
|
+
await startPendingIntegrations();
|
|
2357
|
+
const running = integrationManager.getStatus().filter((s) => s.running).map((s) => s.id);
|
|
2358
|
+
res.json({ ok: true, running });
|
|
2359
|
+
} catch (err) {
|
|
2360
|
+
console.error("[Suveren MCP] start-pending-integrations failed:", err);
|
|
2361
|
+
res.status(500).json({ error: err instanceof Error ? err.message : String(err) });
|
|
2362
|
+
}
|
|
2363
|
+
});
|
|
2364
|
+
app.post("/internal/resync-gates", internalOnly, async (_req, res) => {
|
|
2365
|
+
const gates = state.gateStore.getAll();
|
|
2366
|
+
if (gates.length === 0) {
|
|
2367
|
+
res.json({ ok: true, synced: 0 });
|
|
2368
|
+
return;
|
|
2369
|
+
}
|
|
2370
|
+
let synced = 0;
|
|
2371
|
+
let orphaned = 0;
|
|
2372
|
+
for (const gate of gates) {
|
|
2373
|
+
try {
|
|
2374
|
+
const syncHash = gate.frameHash ?? gate.boundsHash;
|
|
2375
|
+
const auth = await state.cache.syncAuthorization(syncHash);
|
|
2376
|
+
if (auth) {
|
|
2377
|
+
state.setGateContent(gate.path, syncHash, auth.profileId, gate.gateContent, {
|
|
2378
|
+
boundsHash: gate.boundsHash,
|
|
2379
|
+
contextHash: gate.contextHash,
|
|
2380
|
+
context: gate.context
|
|
2381
|
+
});
|
|
2382
|
+
synced++;
|
|
2383
|
+
console.error(`[Suveren MCP] Re-synced gate: ${gate.path}`);
|
|
2384
|
+
} else {
|
|
2385
|
+
state.cache.invalidate(gate.path);
|
|
2386
|
+
state.gateStore.delete(gate.path);
|
|
2387
|
+
orphaned++;
|
|
2388
|
+
console.error(`[Suveren MCP] Orphan gate purged (SP attestation deleted): ${gate.path}`);
|
|
2389
|
+
}
|
|
2390
|
+
} catch (err) {
|
|
2391
|
+
console.error(`[Suveren MCP] Failed to re-sync gate ${gate.path}:`, err);
|
|
2392
|
+
}
|
|
2393
|
+
}
|
|
2394
|
+
for (const [sessionId, session] of activeSessions) {
|
|
2395
|
+
try {
|
|
2396
|
+
session.refreshTools();
|
|
2397
|
+
} catch (err) {
|
|
2398
|
+
console.error(`[Suveren MCP] Failed to refresh session ${sessionId}:`, err);
|
|
2399
|
+
}
|
|
2400
|
+
}
|
|
2401
|
+
res.json({ ok: true, synced, orphaned });
|
|
2402
|
+
});
|
|
2403
|
+
app.post("/internal/add-integration", internalOnly, async (req, res) => {
|
|
2404
|
+
try {
|
|
2405
|
+
const config = req.body;
|
|
2406
|
+
if (!config.id || !config.command) {
|
|
2407
|
+
res.status(400).json({ error: "Missing required fields: id, command" });
|
|
2408
|
+
return;
|
|
2409
|
+
}
|
|
2410
|
+
integrationRegistry.add(config);
|
|
2411
|
+
console.error(`[Suveren MCP] Integration ${config.id} added to registry`);
|
|
2412
|
+
if (config.enabled) {
|
|
2413
|
+
if (Object.keys(config.envKeys ?? {}).length === 0 || integrationManager.canResolveEnvKeys(config)) {
|
|
2414
|
+
try {
|
|
2415
|
+
const tools = await integrationManager.startIntegration(config);
|
|
2416
|
+
res.json({ ok: true, id: config.id, tools: tools.map((t) => t.namespacedName) });
|
|
2417
|
+
return;
|
|
2418
|
+
} catch (err) {
|
|
2419
|
+
const message = err instanceof Error ? err.message : String(err);
|
|
2420
|
+
console.error(`[Suveren MCP] Failed to start integration ${config.id}:`, message);
|
|
2421
|
+
res.json({ ok: true, id: config.id, tools: [], warning: `Saved but failed to start: ${message}` });
|
|
2422
|
+
return;
|
|
2423
|
+
}
|
|
2424
|
+
} else {
|
|
2425
|
+
console.error(`[Suveren MCP] Integration ${config.id} saved but waiting for credentials`);
|
|
2426
|
+
res.json({ ok: true, id: config.id, tools: [], warning: "Saved but waiting for service credentials" });
|
|
2427
|
+
return;
|
|
2428
|
+
}
|
|
2429
|
+
}
|
|
2430
|
+
res.json({ ok: true, id: config.id, tools: [] });
|
|
2431
|
+
} catch (err) {
|
|
2432
|
+
console.error("[Suveren MCP] Error adding integration:", err);
|
|
2433
|
+
res.status(500).json({ error: "Internal error" });
|
|
2434
|
+
}
|
|
2435
|
+
});
|
|
2436
|
+
app.delete("/internal/remove-integration/:id", internalOnly, async (req, res) => {
|
|
2437
|
+
const id = req.params.id;
|
|
2438
|
+
await integrationManager.stopIntegration(id);
|
|
2439
|
+
const removed = integrationRegistry.remove(id);
|
|
2440
|
+
if (!removed) {
|
|
2441
|
+
res.status(404).json({ error: `Integration "${id}" not found` });
|
|
2442
|
+
return;
|
|
2443
|
+
}
|
|
2444
|
+
console.error(`[Suveren MCP] Integration ${id} removed`);
|
|
2445
|
+
res.json({ ok: true, id });
|
|
2446
|
+
});
|
|
2447
|
+
app.get("/internal/integrations", internalOnly, (_req, res) => {
|
|
2448
|
+
const configs = integrationRegistry.getAll();
|
|
2449
|
+
const statuses = integrationManager.getStatus(configs);
|
|
2450
|
+
res.json({ integrations: statuses });
|
|
2451
|
+
});
|
|
2452
|
+
app.post("/internal/stop-all-running", internalOnly, async (_req, res) => {
|
|
2453
|
+
try {
|
|
2454
|
+
await integrationManager.shutdown();
|
|
2455
|
+
console.error("[Suveren MCP] All running integrations stopped (registry preserved)");
|
|
2456
|
+
res.json({ ok: true });
|
|
2457
|
+
} catch (err) {
|
|
2458
|
+
console.error("[Suveren MCP] stop-all-running failed:", err);
|
|
2459
|
+
res.status(500).json({ error: err instanceof Error ? err.message : "Stop failed" });
|
|
2460
|
+
}
|
|
2461
|
+
});
|
|
2462
|
+
var sseSessions = /* @__PURE__ */ new Map();
|
|
2463
|
+
app.get("/sse", async (_req, res) => {
|
|
2464
|
+
const transport = new SSEServerTransport("/messages", res);
|
|
2465
|
+
const { server, refreshTools, registerProxiedTools } = createMcpServer(state, integrationManager);
|
|
2466
|
+
const sessionId = transport.sessionId;
|
|
2467
|
+
sseSessions.set(sessionId, transport);
|
|
2468
|
+
activeSessions.set(sessionId, { refreshTools, registerProxiedTools });
|
|
2469
|
+
console.error(`[Suveren MCP] SSE session ${sessionId} connected`);
|
|
2470
|
+
res.on("close", () => {
|
|
2471
|
+
sseSessions.delete(sessionId);
|
|
2472
|
+
activeSessions.delete(sessionId);
|
|
2473
|
+
console.error(`[Suveren MCP] SSE session ${sessionId} closed`);
|
|
2474
|
+
});
|
|
2475
|
+
server.registerTool("debug_test_tool", { description: "Debug test" }, async () => ({
|
|
2476
|
+
content: [{ type: "text", text: "debug" }]
|
|
2477
|
+
}));
|
|
2478
|
+
await server.connect(transport);
|
|
2479
|
+
});
|
|
2480
|
+
app.post("/messages", async (req, res) => {
|
|
2481
|
+
const sessionId = req.query.sessionId;
|
|
2482
|
+
const transport = sseSessions.get(sessionId);
|
|
2483
|
+
if (!transport) {
|
|
2484
|
+
res.status(400).json({ error: "Unknown session" });
|
|
2485
|
+
return;
|
|
2486
|
+
}
|
|
2487
|
+
await transport.handlePostMessage(req, res, req.body);
|
|
2488
|
+
});
|
|
2489
|
+
var streamableSessions = /* @__PURE__ */ new Map();
|
|
2490
|
+
app.all("/mcp", async (req, res) => {
|
|
2491
|
+
const sessionId = req.headers["mcp-session-id"];
|
|
2492
|
+
if (req.method === "GET" || req.method === "POST" || req.method === "DELETE") {
|
|
2493
|
+
if (sessionId && streamableSessions.has(sessionId)) {
|
|
2494
|
+
const transport = streamableSessions.get(sessionId);
|
|
2495
|
+
await transport.handleRequest(req, res, req.body);
|
|
2496
|
+
return;
|
|
2497
|
+
}
|
|
2498
|
+
if (req.method === "POST" && !sessionId) {
|
|
2499
|
+
const transport = new StreamableHTTPServerTransport({
|
|
2500
|
+
sessionIdGenerator: () => randomUUID()
|
|
2501
|
+
});
|
|
2502
|
+
transport.onclose = () => {
|
|
2503
|
+
if (transport.sessionId) {
|
|
2504
|
+
streamableSessions.delete(transport.sessionId);
|
|
2505
|
+
activeSessions.delete(transport.sessionId);
|
|
2506
|
+
console.error(`[Suveren MCP] Streamable session ${transport.sessionId} closed`);
|
|
2507
|
+
}
|
|
2508
|
+
};
|
|
2509
|
+
const { server, refreshTools, registerProxiedTools } = createMcpServer(state, integrationManager);
|
|
2510
|
+
await server.connect(transport);
|
|
2511
|
+
await transport.handleRequest(req, res, req.body);
|
|
2512
|
+
if (transport.sessionId && !streamableSessions.has(transport.sessionId)) {
|
|
2513
|
+
streamableSessions.set(transport.sessionId, transport);
|
|
2514
|
+
activeSessions.set(transport.sessionId, { refreshTools, registerProxiedTools });
|
|
2515
|
+
console.error(`[Suveren MCP] Streamable session ${transport.sessionId}`);
|
|
2516
|
+
}
|
|
2517
|
+
return;
|
|
2518
|
+
}
|
|
2519
|
+
res.status(400).json({ error: "Bad request \u2014 missing or invalid session" });
|
|
2520
|
+
} else {
|
|
2521
|
+
res.status(405).json({ error: "Method not allowed" });
|
|
2522
|
+
}
|
|
2523
|
+
});
|
|
2524
|
+
app.get("/health", (_req, res) => {
|
|
2525
|
+
res.json({
|
|
2526
|
+
status: "ok",
|
|
2527
|
+
transports: ["sse", "streamable-http"],
|
|
2528
|
+
sp: spUrl,
|
|
2529
|
+
activeSessions: activeSessions.size,
|
|
2530
|
+
storedGates: state.gateStore.getAll().length,
|
|
2531
|
+
serviceCredentials: Array.from(serviceCredentials.keys()),
|
|
2532
|
+
integrations: integrationManager.getStatus(integrationRegistry.getAll())
|
|
2533
|
+
});
|
|
2534
|
+
});
|
|
2535
|
+
app.get("/internal/gate-content", internalOnly, (req, res) => {
|
|
2536
|
+
const path = req.query.path;
|
|
2537
|
+
const gates = state.gateStore.getAll();
|
|
2538
|
+
if (path) {
|
|
2539
|
+
const entry = gates.find(
|
|
2540
|
+
(g) => g.path === path || g.profileId === path || g.boundsHash === path || g.frameHash === path
|
|
2541
|
+
);
|
|
2542
|
+
res.json({ entry: entry ?? null });
|
|
2543
|
+
} else {
|
|
2544
|
+
res.json({ entries: gates });
|
|
2545
|
+
}
|
|
2546
|
+
});
|
|
2547
|
+
app.get("/internal/manifests", internalOnly, (_req, res) => {
|
|
2548
|
+
res.json({ manifests: getAllManifests() });
|
|
2549
|
+
});
|
|
2550
|
+
app.get("/internal/brief", internalOnly, (_req, res) => {
|
|
2551
|
+
try {
|
|
2552
|
+
const enriched = state.getEnrichedAuthorizations();
|
|
2553
|
+
const brief = buildMandateBrief({
|
|
2554
|
+
authorizations: enriched,
|
|
2555
|
+
executionLog: state.executionLog,
|
|
2556
|
+
integrationManager
|
|
2557
|
+
});
|
|
2558
|
+
res.json({ brief });
|
|
2559
|
+
} catch (err) {
|
|
2560
|
+
console.error("[Suveren MCP] /internal/brief failed:", err);
|
|
2561
|
+
res.status(500).json({ error: err instanceof Error ? err.message : "Brief preview failed" });
|
|
2562
|
+
}
|
|
2563
|
+
});
|
|
2564
|
+
async function startPendingIntegrations() {
|
|
2565
|
+
const configs = integrationRegistry.getEnabled();
|
|
2566
|
+
for (const config of configs) {
|
|
2567
|
+
await startOneIntegration(config);
|
|
2568
|
+
}
|
|
2569
|
+
}
|
|
2570
|
+
async function startIntegrationForService(serviceId) {
|
|
2571
|
+
const candidates = integrationRegistry.getEnabled().filter(
|
|
2572
|
+
(c) => c.id === serviceId || Object.values(c.envKeys ?? {}).some((ref) => typeof ref === "string" && ref.startsWith(`${serviceId}.`))
|
|
2573
|
+
);
|
|
2574
|
+
for (const config of candidates) {
|
|
2575
|
+
await startOneIntegration(config);
|
|
2576
|
+
}
|
|
2577
|
+
}
|
|
2578
|
+
async function startOneIntegration(config) {
|
|
2579
|
+
if (integrationManager.isRunning(config.id)) return;
|
|
2580
|
+
const needsCreds = Object.keys(config.envKeys ?? {}).length > 0;
|
|
2581
|
+
if (needsCreds && !integrationManager.canResolveEnvKeys(config)) {
|
|
2582
|
+
const missing = [];
|
|
2583
|
+
for (const [envKey, vaultRef] of Object.entries(config.envKeys ?? {})) {
|
|
2584
|
+
const [serviceId, key] = vaultRef.split(".", 2);
|
|
2585
|
+
const creds = integrationManager.getServiceCredentials(serviceId);
|
|
2586
|
+
if (!creds || !(key in creds)) {
|
|
2587
|
+
missing.push(`${envKey} <- ${vaultRef}`);
|
|
2588
|
+
}
|
|
2589
|
+
}
|
|
2590
|
+
console.error(
|
|
2591
|
+
`[Suveren MCP] ${config.id} cannot start \u2014 missing credentials: ${missing.join(", ")}`
|
|
2592
|
+
);
|
|
2593
|
+
return;
|
|
2594
|
+
}
|
|
2595
|
+
const manifest = getManifest(config.id);
|
|
2596
|
+
const effectiveConfig = manifest ? { ...config, toolGating: manifest.toolGating, npmPackage: manifest.npmPackage ?? config.npmPackage } : config;
|
|
2597
|
+
try {
|
|
2598
|
+
await integrationManager.startIntegration(effectiveConfig);
|
|
2599
|
+
} catch (err) {
|
|
2600
|
+
console.error(`[Suveren MCP] Failed to start integration ${config.id}:`, err);
|
|
2601
|
+
}
|
|
2602
|
+
}
|
|
2603
|
+
process.on("SIGTERM", async () => {
|
|
2604
|
+
console.error("[Suveren MCP] SIGTERM received, shutting down...");
|
|
2605
|
+
await integrationManager.shutdown();
|
|
2606
|
+
process.exit(0);
|
|
2607
|
+
});
|
|
2608
|
+
process.on("SIGINT", async () => {
|
|
2609
|
+
console.error("[Suveren MCP] SIGINT received, shutting down...");
|
|
2610
|
+
await integrationManager.shutdown();
|
|
2611
|
+
process.exit(0);
|
|
2612
|
+
});
|
|
2613
|
+
app.listen(port, "0.0.0.0", () => {
|
|
2614
|
+
console.error(`[Suveren MCP] HTTP server listening on http://0.0.0.0:${port}`);
|
|
2615
|
+
console.error(`[Suveren MCP] SSE: http://0.0.0.0:${port}/sse`);
|
|
2616
|
+
console.error(`[Suveren MCP] Streamable: http://0.0.0.0:${port}/mcp`);
|
|
2617
|
+
console.error(`[Suveren MCP] SP server: ${spUrl}`);
|
|
2618
|
+
loadProfiles();
|
|
2619
|
+
loadManifests();
|
|
2620
|
+
if (integrationRegistry.getEnabled().length === 0) {
|
|
2621
|
+
const personalManifests = getAllManifests().filter((m) => m.personalDefault);
|
|
2622
|
+
for (const manifest of personalManifests) {
|
|
2623
|
+
const optionalKeys = new Set(
|
|
2624
|
+
manifest.credentials.fields.filter((f) => f.optional).map((f) => f.key)
|
|
2625
|
+
);
|
|
2626
|
+
const envKeys = {};
|
|
2627
|
+
const optionalEnvKeys = {};
|
|
2628
|
+
for (const [envVar, credKey] of Object.entries(manifest.credentials.envMapping)) {
|
|
2629
|
+
if (optionalKeys.has(credKey)) {
|
|
2630
|
+
optionalEnvKeys[envVar] = `${manifest.id}.${credKey}`;
|
|
2631
|
+
} else {
|
|
2632
|
+
envKeys[envVar] = `${manifest.id}.${credKey}`;
|
|
2633
|
+
}
|
|
2634
|
+
}
|
|
2635
|
+
integrationRegistry.add({
|
|
2636
|
+
id: manifest.id,
|
|
2637
|
+
name: manifest.name,
|
|
2638
|
+
command: manifest.mcp.command,
|
|
2639
|
+
args: manifest.mcp.args,
|
|
2640
|
+
env: manifest.mcp.env,
|
|
2641
|
+
envKeys,
|
|
2642
|
+
...Object.keys(optionalEnvKeys).length > 0 ? { optionalEnvKeys } : {},
|
|
2643
|
+
profile: manifest.profile,
|
|
2644
|
+
toolGating: manifest.toolGating,
|
|
2645
|
+
npmPackage: manifest.npmPackage,
|
|
2646
|
+
enabled: true
|
|
2647
|
+
});
|
|
2648
|
+
console.error(`[Suveren MCP] Auto-registered personal integration: ${manifest.id}`);
|
|
2649
|
+
}
|
|
2650
|
+
}
|
|
2651
|
+
startPendingIntegrations().then(() => {
|
|
2652
|
+
const running = integrationManager.getStatus().filter((s) => s.running);
|
|
2653
|
+
if (running.length > 0) {
|
|
2654
|
+
console.error(`[Suveren MCP] Restored ${running.length} integration(s): ${running.map((s) => s.id).join(", ")}`);
|
|
2655
|
+
}
|
|
2656
|
+
});
|
|
2657
|
+
const PROPOSAL_POLL_INTERVAL = 5e3;
|
|
2658
|
+
async function executeCommittedProposals() {
|
|
2659
|
+
try {
|
|
2660
|
+
const committed = await state.spClient.getCommittedProposals();
|
|
2661
|
+
for (const proposal of committed) {
|
|
2662
|
+
try {
|
|
2663
|
+
let integrationId;
|
|
2664
|
+
let toolName;
|
|
2665
|
+
if (proposal.tool.includes("___")) {
|
|
2666
|
+
const parts = proposal.tool.split("___");
|
|
2667
|
+
if (parts.length !== 2) {
|
|
2668
|
+
console.error(`[Suveren MCP] Invalid tool name in proposal ${proposal.id}: ${proposal.tool}`);
|
|
2669
|
+
continue;
|
|
2670
|
+
}
|
|
2671
|
+
[integrationId, toolName] = parts;
|
|
2672
|
+
} else {
|
|
2673
|
+
const sep = proposal.tool.indexOf("__");
|
|
2674
|
+
if (sep < 0) {
|
|
2675
|
+
console.error(`[Suveren MCP] Invalid tool name in proposal ${proposal.id}: ${proposal.tool}`);
|
|
2676
|
+
continue;
|
|
2677
|
+
}
|
|
2678
|
+
integrationId = proposal.tool.slice(0, sep);
|
|
2679
|
+
toolName = proposal.tool.slice(sep + 2);
|
|
2680
|
+
}
|
|
2681
|
+
const proposalActionType = typeof proposal.executionContext.action_type === "string" ? proposal.executionContext.action_type : void 0;
|
|
2682
|
+
if (!proposalActionType) {
|
|
2683
|
+
console.error(
|
|
2684
|
+
`[Suveren MCP] Warning: proposal ${proposal.id} has no action_type in executionContext. Bounds check may be skipped. Fix the integration manifest for ${proposal.tool}.`
|
|
2685
|
+
);
|
|
2686
|
+
}
|
|
2687
|
+
try {
|
|
2688
|
+
await state.spClient.postReceipt({
|
|
2689
|
+
attestationHash: proposal.frameHash,
|
|
2690
|
+
profileId: proposal.profileId,
|
|
2691
|
+
path: proposal.path,
|
|
2692
|
+
action: proposal.tool,
|
|
2693
|
+
actionType: proposalActionType,
|
|
2694
|
+
executionContext: proposal.executionContext,
|
|
2695
|
+
amount: typeof proposal.executionContext.amount === "number" ? proposal.executionContext.amount : void 0,
|
|
2696
|
+
proposalId: proposal.id,
|
|
2697
|
+
toolArgs: proposal.toolArgs
|
|
2698
|
+
});
|
|
2699
|
+
} catch (err) {
|
|
2700
|
+
console.error(`[Suveren MCP] Receipt failed for proposal ${proposal.id}:`, err instanceof Error ? err.message : err);
|
|
2701
|
+
continue;
|
|
2702
|
+
}
|
|
2703
|
+
try {
|
|
2704
|
+
await integrationManager.callTool(integrationId, toolName, proposal.toolArgs);
|
|
2705
|
+
} catch (err) {
|
|
2706
|
+
console.error(`[Suveren MCP] Tool execution failed for proposal ${proposal.id} after receipt issued:`, err);
|
|
2707
|
+
continue;
|
|
2708
|
+
}
|
|
2709
|
+
state.executionLog.record({
|
|
2710
|
+
profileId: proposal.profileId,
|
|
2711
|
+
path: proposal.path,
|
|
2712
|
+
execution: proposal.executionContext,
|
|
2713
|
+
timestamp: Math.floor(Date.now() / 1e3)
|
|
2714
|
+
});
|
|
2715
|
+
console.error(`[Suveren MCP] Auto-executed proposal ${proposal.id}: ${proposal.tool}`);
|
|
2716
|
+
} catch (err) {
|
|
2717
|
+
console.error(`[Suveren MCP] Failed to execute proposal ${proposal.id}:`, err);
|
|
2718
|
+
}
|
|
2719
|
+
}
|
|
2720
|
+
} catch {
|
|
2721
|
+
}
|
|
2722
|
+
}
|
|
2723
|
+
setInterval(executeCommittedProposals, PROPOSAL_POLL_INTERVAL);
|
|
2724
|
+
});
|