@zuplo/cli 6.73.23 → 6.73.25
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/node_modules/@posthog/core/dist/surveys/activation.d.ts +8 -0
- package/node_modules/@posthog/core/dist/surveys/activation.d.ts.map +1 -1
- package/node_modules/@posthog/core/dist/surveys/activation.js +7 -1
- package/node_modules/@posthog/core/dist/surveys/activation.mjs +4 -1
- package/node_modules/@posthog/core/dist/surveys/index.d.ts +1 -1
- package/node_modules/@posthog/core/dist/surveys/index.d.ts.map +1 -1
- package/node_modules/@posthog/core/dist/surveys/index.js +3 -0
- package/node_modules/@posthog/core/dist/surveys/index.mjs +2 -2
- package/node_modules/@posthog/core/package.json +1 -1
- package/node_modules/@posthog/core/src/surveys/activation.ts +12 -0
- package/node_modules/@posthog/core/src/surveys/index.ts +1 -1
- package/node_modules/@zuplo/core/customer.cli.minified.js +205 -205
- package/node_modules/@zuplo/core/index.minified.js +210 -210
- package/node_modules/@zuplo/core/package.json +1 -1
- package/node_modules/@zuplo/graphql/package.json +1 -1
- package/node_modules/@zuplo/openapi-tools/package.json +1 -1
- package/node_modules/@zuplo/otel/package.json +1 -1
- package/node_modules/@zuplo/runtime/out/esm/chunk-A3425Z75.js +26 -0
- package/node_modules/@zuplo/runtime/out/esm/chunk-A3425Z75.js.map +1 -0
- package/node_modules/@zuplo/runtime/out/esm/{chunk-FPZAMUNA.js → chunk-PEUB7LX7.js} +2 -2
- package/node_modules/@zuplo/runtime/out/esm/chunk-PEUB7LX7.js.map +1 -0
- package/node_modules/@zuplo/runtime/out/esm/chunk-RB2LCXBX.js +26 -0
- package/node_modules/@zuplo/runtime/out/esm/chunk-RB2LCXBX.js.map +1 -0
- package/node_modules/@zuplo/runtime/out/esm/{chunk-SNZSLL63.js → chunk-SL6SOWIV.js} +2 -2
- package/node_modules/@zuplo/runtime/out/esm/chunk-TRBIM47E.js +26 -0
- package/node_modules/@zuplo/runtime/out/esm/chunk-TRBIM47E.js.map +1 -0
- package/node_modules/@zuplo/runtime/out/esm/{chunk-QWO5UTVQ.js → chunk-V4X24KCQ.js} +4 -4
- package/node_modules/@zuplo/runtime/out/esm/chunk-V4X24KCQ.js.map +1 -0
- package/node_modules/@zuplo/runtime/out/esm/{chunk-R7PMDIH4.js → chunk-WK5G5RKI.js} +108 -108
- package/node_modules/@zuplo/runtime/out/esm/chunk-WK5G5RKI.js.map +1 -0
- package/node_modules/@zuplo/runtime/out/esm/index.js +1 -1
- package/node_modules/@zuplo/runtime/out/esm/index.js.map +1 -1
- package/node_modules/@zuplo/runtime/out/esm/internal/index.js +1 -1
- package/node_modules/@zuplo/runtime/out/esm/mcp/messages/index.js +1 -1
- package/node_modules/@zuplo/runtime/out/esm/mcp-gateway/index.js +1 -1
- package/node_modules/@zuplo/runtime/out/esm/mcp-gateway/index.js.map +1 -1
- package/node_modules/@zuplo/runtime/out/esm/sdks/aws/index.js +1 -1
- package/node_modules/@zuplo/runtime/out/esm/sdks/aws/index.js.map +1 -1
- package/node_modules/@zuplo/runtime/out/types/index.d.ts +28 -21
- package/node_modules/@zuplo/runtime/out/types/internal/index.d.ts +787 -0
- package/node_modules/@zuplo/runtime/package.json +2 -2
- package/package.json +6 -6
- package/node_modules/@zuplo/runtime/out/esm/chunk-FPZAMUNA.js.map +0 -1
- package/node_modules/@zuplo/runtime/out/esm/chunk-QWO5UTVQ.js.map +0 -1
- package/node_modules/@zuplo/runtime/out/esm/chunk-R7PMDIH4.js.map +0 -1
- package/node_modules/@zuplo/runtime/out/esm/chunk-US6ITPGV.js +0 -26
- package/node_modules/@zuplo/runtime/out/esm/chunk-US6ITPGV.js.map +0 -1
- /package/node_modules/@zuplo/runtime/out/esm/{chunk-SNZSLL63.js.map → chunk-SL6SOWIV.js.map} +0 -0
- /package/node_modules/@zuplo/runtime/out/esm/{chunk-R7PMDIH4.js.LEGAL.txt → chunk-WK5G5RKI.js.LEGAL.txt} +0 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
|
|
2
|
+
/*---------------------------------------------------------------------------------------------
|
|
3
|
+
* Copyright (c) Zuplo, Inc. All rights reserved.
|
|
4
|
+
*
|
|
5
|
+
* This software and associated documentation files (the "Software") is intended to be used
|
|
6
|
+
* only by Zuplo customers solely to develop and test applications that will be deployed
|
|
7
|
+
* to Zuplo hosted services. You and others in your organization may use these files on your
|
|
8
|
+
* Development Devices solely for the above stated purpose.
|
|
9
|
+
*
|
|
10
|
+
* Outside of uses stated above, no license is granted for any other purpose including
|
|
11
|
+
* without limitation the rights to use, copy, modify, merge, publish, distribute,
|
|
12
|
+
* sublicense, host, and/or sell copies of the Software.
|
|
13
|
+
*
|
|
14
|
+
* The software may include third party components with separate legal notices or governed by
|
|
15
|
+
* other agreements, as described in licenses either embedded in or accompanying the Software.
|
|
16
|
+
*
|
|
17
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
|
18
|
+
* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
|
19
|
+
* PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
|
|
20
|
+
* FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
21
|
+
* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
22
|
+
* DEALINGS IN THE SOFTWARE.
|
|
23
|
+
*--------------------------------------------------------------------------------------------*/
|
|
24
|
+
|
|
25
|
+
import{a as c}from"./chunk-PEUB7LX7.js";import{a as p}from"./chunk-TRBIM47E.js";import{Y as o}from"./chunk-VCMIY3WJ.js";import{a as r}from"./chunk-2WLR6ZDZ.js";var l=["ZUPLO_USER_LOGGER_DATA_DOG_API_KEY","ZUPLO_USER_LOGGER_DATA_DOG_URL","ZUPLO_LOG_LEVEL","ZUPLO_HANDLER_WRITE_LOG_LEVEL"];function u(e){return e.startsWith("__ZUPLO")||e.startsWith("ZUPLO_")?!l.includes(e)&&!e.startsWith("ZUPLO_PUBLIC_"):e.startsWith("ZUDOKU_")?!e.startsWith("ZUDOKU_PUBLIC_"):!1}r(u,"isRestrictedEnvVariableName");function _(e){return!!e.startsWith("ZUPLO_")}r(_,"isZuploReadableEnvVariableName");var O=new Proxy({},{get(e,t){let n=String(t);switch(n){case"ZUPLO_ENVIRONMENT_TYPE":return o.instance.loggingEnvironmentType;case"ZUPLO_ENVIRONMENT_STAGE":return o.instance.loggingEnvironmentStage;case"ZUPLO_ENVIRONMENT_NAME":return o.instance.runtime.__ZUPLO_DEPLOYMENT_NAME;case"ZUPLO_ACCOUNT_NAME":return o.instance.accountName;case"ZUPLO_PROJECT_NAME":return o.instance.projectName;case"ZUPLO_BUILD_ID":return o.instance.build.BUILD_ID;case"ZUPLO_COMPATIBILITY_DATE":return o.instance.build.COMPATIBILITY_DATE}if(!(u(n)&&!_(n)))return o.instance.runtime[n]}});var d=(i=>(i.Build="build-data",i.CorsPreflight="cors-preflight",i.DeveloperPortal="developer-portal",i.ZudokuPortal="zudoku-portal",i.DeveloperPortalLegacy="developer-portal-legacy",i.EmptyGatewayCatchall="empty-gateway-catchall",i.Ping="ping",i.UnmatchedPath="unmatched-path",i))(d||{});var s=new p(Symbol("ai-gateway-app-configuration")),f={set(e,t){let n=t!==null&&typeof t=="object"&&!Object.isFrozen(t)?c(t):t;s.set(e,{configuration:n})},has(e){return s.get(e)!==void 0},get(e){return s.get(e)?.configuration},getId(e){let t=f.get(e);if(t===null||typeof t!="object")return;let n=Reflect.get(t,"id");return typeof n=="string"&&n!==""?n:void 0}};function A(e,t,n){return`_${a(`${e}_${t}_${n}`)}`}r(A,"getRawOperationDataIdentifierName");function I(e,t,n,g){return`_${a(e.toLowerCase())}_${t.toLowerCase()}_${n.toLowerCase()}_${g.toLowerCase()}`}r(I,"getIdForParameterSchema");function R(e,t,n){return`_${a(e.toLowerCase())}_${t.toLowerCase()}_rb_${a(n.toLowerCase())}`}r(R,"getIdForRequestBodySchema");function D(e,t){return`_${a(e)}_${a(t)}`}r(D,"getIdForRefSchema");function a(e){let t=e.replace(/\[/g,"_LBRACKET_").replace(/\]/g,"_RBRACKET_").replace(/\{/g,"_LCURLY_").replace(/\}/g,"_RCURLY_").replace(/\//g,"_SLASH_").replace(/-/g,"_DASH_").replace(/\./g,"_DOT_").replace(/\+/g,"_PLUS_").replace(/:/g,"_COLON_").replace(/@/g,"_AT_").replace(/\$/g,"_DOLLAR_").replace(/[^a-zA-Z0-9_]/g,"_");return/^[a-zA-Z_]/.test(t)||(t=`_${t}`),t}r(a,"sanitizedIdentifierName");export{u as a,_ as b,O as c,d,f as e,A as f,I as g,R as h,D as i,a as j};
|
|
26
|
+
//# sourceMappingURL=chunk-A3425Z75.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["@zuplo/runtime/environment.ts","@zuplo/runtime/router/interfaces.ts","@zuplo/runtime/ai-gateway/app-configuration-context.ts","@zuplo/runtime/utils/open-api-utils.ts"],"mappings":"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","names":["ALLOWED_WRITABLE_ZUPLO_VARIABLES","isRestrictedEnvVariableName","name","__name","isZuploReadableEnvVariableName","environment","target","prop","envName","Environment","SystemRouteName","appConfiguration","ContextData","AIGatewayConfiguration","context","configuration","storedConfiguration","deepFreeze","id","getRawOperationDataIdentifierName","oasFileName","path","operation","sanitizedIdentifierName","__name","getIdForParameterSchema","type","name","getIdForRequestBodySchema","contentType","getIdForRefSchema","ref","encodedName"]}
|
|
@@ -22,5 +22,5 @@
|
|
|
22
22
|
* DEALINGS IN THE SOFTWARE.
|
|
23
23
|
*--------------------------------------------------------------------------------------------*/
|
|
24
24
|
|
|
25
|
-
import{a}from"./chunk-2WLR6ZDZ.js";function
|
|
26
|
-
//# sourceMappingURL=chunk-
|
|
25
|
+
import{a as o}from"./chunk-2WLR6ZDZ.js";function t(e){for(let r in e){let n=e[r];n&&typeof n=="object"&&t(n)}return Object.freeze(e)}o(t,"deepFreeze");export{t as a};
|
|
26
|
+
//# sourceMappingURL=chunk-PEUB7LX7.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["@zuplo/runtime/utils/freeze.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;wCAKO,SAASA,EAAoBC,EAAwB,CAC1D,QAAWC,KAAQD,EAAQ,CACzB,IAAME,EAAQF,EAAOC,CAAI,EACrBC,GAAS,OAAOA,GAAU,UAC5BH,EAAWG,CAAK,CAEpB,CACA,OAAO,OAAO,OAAUF,CAAM,CAChC,CARgBG,EAAAJ,EAAA","names":["deepFreeze","object","name","value","__name"]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
|
|
2
|
+
/*---------------------------------------------------------------------------------------------
|
|
3
|
+
* Copyright (c) Zuplo, Inc. All rights reserved.
|
|
4
|
+
*
|
|
5
|
+
* This software and associated documentation files (the "Software") is intended to be used
|
|
6
|
+
* only by Zuplo customers solely to develop and test applications that will be deployed
|
|
7
|
+
* to Zuplo hosted services. You and others in your organization may use these files on your
|
|
8
|
+
* Development Devices solely for the above stated purpose.
|
|
9
|
+
*
|
|
10
|
+
* Outside of uses stated above, no license is granted for any other purpose including
|
|
11
|
+
* without limitation the rights to use, copy, modify, merge, publish, distribute,
|
|
12
|
+
* sublicense, host, and/or sell copies of the Software.
|
|
13
|
+
*
|
|
14
|
+
* The software may include third party components with separate legal notices or governed by
|
|
15
|
+
* other agreements, as described in licenses either embedded in or accompanying the Software.
|
|
16
|
+
*
|
|
17
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
|
18
|
+
* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
|
19
|
+
* PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
|
|
20
|
+
* FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
21
|
+
* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
22
|
+
* DEALINGS IN THE SOFTWARE.
|
|
23
|
+
*--------------------------------------------------------------------------------------------*/
|
|
24
|
+
|
|
25
|
+
import{a}from"./chunk-PEUB7LX7.js";import{a as i}from"./chunk-2WLR6ZDZ.js";var R=class u extends Request{static{i(this,"ZuploRequest")}#s=void 0;#e;#t;constructor(e,s,r){super(e,s);let t=s?.params;this.#t=r,t?this.#e=t:e instanceof u?this.#e=e.#e:this.#e={};let n=s?.user;n?this.user=n:e instanceof u&&(this.user=e.user)}get originalRequest(){return this.#t??null}get query(){if(this.#s===void 0){let e={},s=new URL(this.url).searchParams;for(let[r,t]of s.entries())e[r]=t;this.#s=e}return a(this.#s)}get params(){return a(this.#e)}user};export{R as a};
|
|
26
|
+
//# sourceMappingURL=chunk-RB2LCXBX.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["@zuplo/runtime/request.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;2EA0JO,IAAMA,EAAN,MAAMC,UAEH,OAAQ,CA5JlB,MA4JkB,CAAAC,EAAA,qBAChBC,GAAkD,OAClDC,GACAC,GAEA,YACEC,EACAC,EACAC,EACA,CACA,MAAMF,EAAOC,CAAI,EACjB,IAAME,EAASF,GAAM,OACrB,KAAKF,GAAmBG,EAIpBC,EACF,KAAKL,GAAUK,EACNH,aAAiBL,EAC1B,KAAKG,GAAUE,EAAMF,GAErB,KAAKA,GAAU,CAAC,EAGlB,IAAMM,EAAOH,GAAM,KACfG,EACF,KAAK,KAAOA,EACHJ,aAAiBL,IAC1B,KAAK,KAAOK,EAAM,KAEtB,CAWA,IAAI,iBAAkC,CACpC,OAAO,KAAKD,IAAoB,IAClC,CAeA,IAAI,OAA0D,CAE5D,GAAI,KAAKF,KAAW,OAAW,CAC7B,IAAMQ,EAA6B,CAAC,EAE9BC,EAAe,IAAI,IAAI,KAAK,GAAG,EAAE,aAEvC,OAAW,CAACC,EAAKC,CAAK,IAAKF,EAAa,QAAQ,EAC9CD,EAAME,CAAG,EAAIC,EAEf,KAAKX,GAASQ,CAChB,CAEA,OAAOI,EAAW,KAAKZ,EAAgD,CACzE,CAiBA,IAAI,QAA6D,CAC/D,OAAOY,EAAW,KAAKX,EAAO,CAChC,CAgBA,IACF","names":["ZuploRequest","_ZuploRequest","__name","#query","#params","#originalRequest","input","init","originalRequest","params","user","query","searchParams","key","value","deepFreeze"]}
|
|
@@ -22,5 +22,5 @@
|
|
|
22
22
|
* DEALINGS IN THE SOFTWARE.
|
|
23
23
|
*--------------------------------------------------------------------------------------------*/
|
|
24
24
|
|
|
25
|
-
import{a as T}from"./chunk-FPZAMUNA.js";import{a as i}from"./chunk-2WLR6ZDZ.js";function l(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}i(l,"isRecord");function N(e){return typeof e=="string"||typeof e=="number"}i(N,"isRequestId");function k(e){return e===null?"null":Array.isArray(e)?"an array":typeof e=="object"?"an object":typeof e=="string"?JSON.stringify(e.length>40?`${e.slice(0,40)}\u2026`:e):String(e)}i(k,"describeValue");function g(e){if(!(e===void 0||l(e)))return`params must be an object when present (got ${k(e)}).`}i(g,"optionalObjectParams");function E(e,n){return s=>{if(!l(s))return`params must be an object with a string \`${e}\` (got ${k(s)}). Example: ${n}`;if(typeof s[e]!="string")return`params.${e} must be a string (got ${k(s[e])}). Example: ${n}`}}i(E,"requireStringField");var j={initialize:g,ping:g,"tools/list":g,"tools/call":E("name",'{"name":"my_tool","arguments":{}}'),"prompts/list":g,"prompts/get":E("name",'{"name":"my_prompt"}'),"resources/list":g,"resources/templates/list":g,"resources/read":E("uri",'{"uri":"file:///a.txt"}'),"resources/subscribe":E("uri",'{"uri":"file:///a.txt"}'),"resources/unsubscribe":E("uri",'{"uri":"file:///a.txt"}'),"completion/complete":g,"logging/setLevel":E("level",'{"level":"info"}')},_={"notifications/initialized":g,"notifications/cancelled":g,"notifications/progress":g,"notifications/roots/list_changed":g};function U(e){return Object.hasOwn(j,e)}i(U,"isKnownRequestMethod");function J(e){return Object.hasOwn(_,e)}i(J,"isKnownNotificationMethod");function I(e){return{type:"invalid",...e.method===void 0?{}:{method:e.method},id:e.id,error:{code:e.code,message:e.message},raw:e.raw}}i(I,"invalidMessage");function P(e){return N(e)?e:null}i(P,"usableId");function L(e,n,s){if(U(n)){let r=j[n](e.params);if(r!==void 0)return I({raw:e,method:n,id:s,code:-32602,message:`Invalid params for \`${n}\`: ${r}`});let o=e.params===void 0?{}:e.params;return{type:"request",method:n,id:s,params:o,raw:e}}return{type:"request",method:n,id:s,params:e.params,raw:e}}i(L,"classifyRequest");function Q(e,n){if(J(n)){let s=_[n](e.params);if(s!==void 0)return I({raw:e,method:n,id:null,code:-32602,message:`Invalid params for \`${n}\`: ${s}`});let r=e.params===void 0?{}:e.params;return{type:"notification",method:n,params:r,raw:e}}return{type:"notification",method:n,params:e.params,raw:e}}i(Q,"classifyNotification");function H(e){if(!l(e)||e.jsonrpc!=="2.0")return I({raw:e,id:P(l(e)?e.id:void 0),code:-32600,message:`Invalid Request: batch member is not a JSON-RPC 2.0 message (got ${k(e)}). Every member must include \`"jsonrpc":"2.0"\`.`});let n=e.method;if(typeof n=="string"){if(!("id"in e))return Q(e,n);let s=e.id;return N(s)?L(e,n,s):I({raw:e,method:n,id:null,code:-32600,message:`Invalid Request: request id must be a string or number (got ${k(s)}). The gateway cannot correlate a reply to this id \u2014 omit \`id\` to send a notification instead.`})}if(n!==void 0)return I({raw:e,id:P(e.id),code:-32600,message:`Invalid Request: method must be a string (got ${k(n)}).`});if("result"in e&&N(e.id)&&l(e.result))return{type:"result",id:e.id,result:e.result,raw:e};if("error"in e){let s=e.error;if(l(s)&&typeof s.code=="number"&&typeof s.message=="string"){let r={code:s.code,message:s.message,...s.data===void 0?{}:{data:s.data}};return{type:"error",id:P(e.id),error:r,raw:e}}}return I({raw:e,id:P(e.id),code:-32600,message:"Invalid Request: message has no `method` and is not a valid JSON-RPC result or error."})}i(H,"classifyMember");var $=new WeakMap;async function Z(e){let n=e.headers.get("content-type");if(n===null||!n.toLowerCase().includes("json"))return null;let s=e.headers.get("content-length");if(s!==null&&Number(s)>10485760)return null;let r;try{r=await e.clone().text()}catch{return null}if(r.length>10485760)return null;let o;try{o=JSON.parse(r)}catch{return null}let a=e.headers.get("mcp-protocol-version");return Array.isArray(o)?o.length>0&&!o.some(u=>l(u)&&u.jsonrpc==="2.0")?null:{transport:"json",shape:"batch",messages:o.map(H),...a===null?{}:{protocolVersion:a}}:!l(o)||o.jsonrpc!=="2.0"?null:{transport:"json",shape:"single",messages:[H(o)],...a===null?{}:{protocolVersion:a}}}i(Z,"parseEnvelope");function C(e){let n=$.get(e);return n===void 0&&(n=Z(e),$.set(e,n)),n}i(C,"getRequest");function R(e,n){return{jsonrpc:"2.0",id:e,error:{code:n.code,message:n.message,...n.data===void 0?{}:{data:n.data}}}}i(R,"errorReply");function x(e,n){return{jsonrpc:"2.0",id:e,result:n}}i(x,"resultReply");function b(e,n){return n.length===0?new Response(null,{status:202}):Response.json(e==="single"?n[0]:n)}i(b,"replyResponse");function B(e){return e.type==="request"}i(B,"isRequestType");function F(e,n,s){let r=s===void 0?void 0:n,o=s===void 0?n:s;if(r!==void 0&&!e.messages.includes(r))throw new Error("createErrorResponse: the message must be one of envelope.messages from the same getRequest() parse.");let a=[];for(let u of e.messages)if(u.type==="request"){let c=r===void 0||u===r?o:{code:-32001,message:"Not processed"};a.push(R(u.id,c))}else u.type==="invalid"&&a.push(R(u.id,u.error));return b(e.shape,a)}i(F,"createErrorResponse");function X(e,n,s){let r=e.messages.filter(B);if(r.length!==1||r[0]!==n)throw new Error("createResultResponse: the message must be the envelope's only request. For batches with multiple requests use processMessages, which forwards the rest and stitches replies by id.");let o=[];for(let a of e.messages)a===n?o.push(x(n.id,s)):a.type==="invalid"&&o.push(R(a.id,a.error));return b(e.shape,o)}i(X,"createResultResponse");function Y(e,n){if(e===void 0)return;let s=e,r=Object.hasOwn(e,n)?s[n]:void 0;return r!==void 0?r:Object.hasOwn(e,"*")?s["*"]:void 0}i(Y,"pickHandler");function v(e){return typeof e=="string"?`s:${e}`:`n:${e}`}i(v,"idKey");function G(e){let n=new Set;for(let s of e.messages){if(s.type!=="request")continue;let r=v(s.id);if(n.has(r))return s.id;n.add(r)}}i(G,"findDuplicateRequestId");async function W(e){let{response:n,plan:s,context:r,policyName:o}=e,a=(n.headers.get("content-type")??"").toLowerCase(),u=[];if(a.includes("json"))try{let p=await n.clone().text();if(p.trim().length>0){let f=JSON.parse(p);u=Array.isArray(f)?f:[f]}}catch{return r.log.warn(`MCP policy "${o}": upstream JSON response could not be parsed; locally generated replies were not merged.`),n}else if(n.body!==null)return r.log.warn(`MCP policy "${o}": upstream response is "${a||"unknown"}"; locally generated replies were not merged.`),n;if(u.length>0&&!u.every(p=>l(p)&&p.jsonrpc==="2.0"))return r.log.warn(`MCP policy "${o}": upstream response body is not JSON-RPC; locally generated replies were not merged.`),n;let c=new Map,y=[];for(let p of u){let f=l(p)?p.id:void 0,t=N(f)?v(f):void 0;t===void 0||c.has(t)?y.push(p):c.set(t,p)}let d=[];for(let p of s)if(p.action==="local")d.push(p.reply);else if(p.action==="forward"&&p.replyId!==void 0){let f=v(p.replyId),t=c.get(f);t===void 0?r.log.warn(`MCP policy "${o}": upstream returned no reply for request id ${JSON.stringify(p.replyId)}; the gateway does not synthesize results, so the gap is passed through.`):(c.delete(f),d.push(t))}let h=[...c.values(),...y];h.length>0&&(r.log.warn(`MCP policy "${o}": upstream returned ${h.length} repl${h.length===1?"y":"ies"} with unexpected or duplicate ids; appended after the correlated replies.`),d.push(...h));let w=new Headers(n.headers);w.delete("content-length"),w.set("content-type","application/json");let A=n.status===202||n.status===204?200:n.status;return new Response(JSON.stringify(d),{status:A,headers:w})}i(W,"stitchResponse");function ee(e){return async(n,s,r,o)=>{let a=await C(n);if(a===null)return n;if(a.shape==="batch"&&a.messages.length===0)return Response.json(R(null,{code:-32600,message:"Invalid Request: batch must not be empty."}));let u=G(a);if(u!==void 0){let t=a.messages.filter(m=>m.type==="request").map(m=>R(m.id??null,{code:-32600,message:`Invalid Request: duplicate request id ${JSON.stringify(u)} in batch. Ids must be unique so replies can be correlated.`}));return b(a.shape,t)}let c=[],y=0,d=!1;for(let t of a.messages)switch(t.type){case"invalid":{c.push({action:"local",reply:R(t.id,t.error)}),y+=1,d=!0;break}case"result":case"error":{c.push({action:"forward",wire:t.raw,replyId:void 0});break}case"request":case"notification":{let m=Y(e.requests,t.method),q=t.type==="request",O=q?t.id:void 0;if(m===void 0){c.push({action:"forward",wire:t.raw,replyId:O});break}let M;try{M=await m({message:t,request:n,context:s,envelope:a,options:r,policyName:o})}catch(S){if(s.log.error(`MCP message handler for "${t.method}" threw in policy "${o}"; failing only this message.`,S),M=q?{error:{code:-32603,message:"Internal error"}}:void 0,!q){c.push({action:"drop"}),d=!0;break}}if(M===void 0)c.push({action:"forward",wire:t.raw,replyId:O});else if("params"in M){if(!l(M.params)){s.log.error(`MCP message handler for "${t.method}" in policy "${o}" returned a non-object params verdict; failing only this message.`),q?(c.push({action:"local",reply:R(t.id,{code:-32603,message:"Internal error"})}),y+=1):c.push({action:"drop"}),d=!0;break}let S=l(t.raw)?t.raw:{};c.push({action:"forward",wire:{...S,params:M.params},replyId:O}),d=!0}else"error"in M?(q?(c.push({action:"local",reply:R(t.id,M.error)}),y+=1):c.push({action:"drop"}),d=!0):"result"in M?(q?(c.push({action:"local",reply:x(t.id,M.result)}),y+=1):(s.log.warn(`MCP message handler for "${t.method}" in policy "${o}" returned a result for a notification; notifications have no replies, dropping the message.`),c.push({action:"drop"})),d=!0):c.push({action:"forward",wire:t.raw,replyId:O});break}}let h=c.filter(t=>t.action==="forward");if(h.length===0){let t=[];for(let m of c)m.action==="local"&&t.push(m.reply);return b(a.shape,t)}if(!d)return n;let w=h.map(t=>t.wire),A=JSON.stringify(a.shape==="single"?w[0]:w),p=new Headers(n.headers);p.delete("content-length");let f=new T(n,{body:A,headers:p});return y>0&&s.addResponseSendingHook(t=>W({response:t,plan:c,context:s,policyName:o})),f}}i(ee,"processMessages");export{C as a,F as b,X as c,ee as d};
|
|
26
|
-
//# sourceMappingURL=chunk-
|
|
25
|
+
import{a as T}from"./chunk-RB2LCXBX.js";import{a as i}from"./chunk-2WLR6ZDZ.js";function l(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}i(l,"isRecord");function N(e){return typeof e=="string"||typeof e=="number"}i(N,"isRequestId");function k(e){return e===null?"null":Array.isArray(e)?"an array":typeof e=="object"?"an object":typeof e=="string"?JSON.stringify(e.length>40?`${e.slice(0,40)}\u2026`:e):String(e)}i(k,"describeValue");function g(e){if(!(e===void 0||l(e)))return`params must be an object when present (got ${k(e)}).`}i(g,"optionalObjectParams");function E(e,n){return s=>{if(!l(s))return`params must be an object with a string \`${e}\` (got ${k(s)}). Example: ${n}`;if(typeof s[e]!="string")return`params.${e} must be a string (got ${k(s[e])}). Example: ${n}`}}i(E,"requireStringField");var j={initialize:g,ping:g,"tools/list":g,"tools/call":E("name",'{"name":"my_tool","arguments":{}}'),"prompts/list":g,"prompts/get":E("name",'{"name":"my_prompt"}'),"resources/list":g,"resources/templates/list":g,"resources/read":E("uri",'{"uri":"file:///a.txt"}'),"resources/subscribe":E("uri",'{"uri":"file:///a.txt"}'),"resources/unsubscribe":E("uri",'{"uri":"file:///a.txt"}'),"completion/complete":g,"logging/setLevel":E("level",'{"level":"info"}')},_={"notifications/initialized":g,"notifications/cancelled":g,"notifications/progress":g,"notifications/roots/list_changed":g};function U(e){return Object.hasOwn(j,e)}i(U,"isKnownRequestMethod");function J(e){return Object.hasOwn(_,e)}i(J,"isKnownNotificationMethod");function I(e){return{type:"invalid",...e.method===void 0?{}:{method:e.method},id:e.id,error:{code:e.code,message:e.message},raw:e.raw}}i(I,"invalidMessage");function P(e){return N(e)?e:null}i(P,"usableId");function L(e,n,s){if(U(n)){let r=j[n](e.params);if(r!==void 0)return I({raw:e,method:n,id:s,code:-32602,message:`Invalid params for \`${n}\`: ${r}`});let o=e.params===void 0?{}:e.params;return{type:"request",method:n,id:s,params:o,raw:e}}return{type:"request",method:n,id:s,params:e.params,raw:e}}i(L,"classifyRequest");function Q(e,n){if(J(n)){let s=_[n](e.params);if(s!==void 0)return I({raw:e,method:n,id:null,code:-32602,message:`Invalid params for \`${n}\`: ${s}`});let r=e.params===void 0?{}:e.params;return{type:"notification",method:n,params:r,raw:e}}return{type:"notification",method:n,params:e.params,raw:e}}i(Q,"classifyNotification");function H(e){if(!l(e)||e.jsonrpc!=="2.0")return I({raw:e,id:P(l(e)?e.id:void 0),code:-32600,message:`Invalid Request: batch member is not a JSON-RPC 2.0 message (got ${k(e)}). Every member must include \`"jsonrpc":"2.0"\`.`});let n=e.method;if(typeof n=="string"){if(!("id"in e))return Q(e,n);let s=e.id;return N(s)?L(e,n,s):I({raw:e,method:n,id:null,code:-32600,message:`Invalid Request: request id must be a string or number (got ${k(s)}). The gateway cannot correlate a reply to this id \u2014 omit \`id\` to send a notification instead.`})}if(n!==void 0)return I({raw:e,id:P(e.id),code:-32600,message:`Invalid Request: method must be a string (got ${k(n)}).`});if("result"in e&&N(e.id)&&l(e.result))return{type:"result",id:e.id,result:e.result,raw:e};if("error"in e){let s=e.error;if(l(s)&&typeof s.code=="number"&&typeof s.message=="string"){let r={code:s.code,message:s.message,...s.data===void 0?{}:{data:s.data}};return{type:"error",id:P(e.id),error:r,raw:e}}}return I({raw:e,id:P(e.id),code:-32600,message:"Invalid Request: message has no `method` and is not a valid JSON-RPC result or error."})}i(H,"classifyMember");var $=new WeakMap;async function Z(e){let n=e.headers.get("content-type");if(n===null||!n.toLowerCase().includes("json"))return null;let s=e.headers.get("content-length");if(s!==null&&Number(s)>10485760)return null;let r;try{r=await e.clone().text()}catch{return null}if(r.length>10485760)return null;let o;try{o=JSON.parse(r)}catch{return null}let a=e.headers.get("mcp-protocol-version");return Array.isArray(o)?o.length>0&&!o.some(u=>l(u)&&u.jsonrpc==="2.0")?null:{transport:"json",shape:"batch",messages:o.map(H),...a===null?{}:{protocolVersion:a}}:!l(o)||o.jsonrpc!=="2.0"?null:{transport:"json",shape:"single",messages:[H(o)],...a===null?{}:{protocolVersion:a}}}i(Z,"parseEnvelope");function C(e){let n=$.get(e);return n===void 0&&(n=Z(e),$.set(e,n)),n}i(C,"getRequest");function R(e,n){return{jsonrpc:"2.0",id:e,error:{code:n.code,message:n.message,...n.data===void 0?{}:{data:n.data}}}}i(R,"errorReply");function x(e,n){return{jsonrpc:"2.0",id:e,result:n}}i(x,"resultReply");function b(e,n){return n.length===0?new Response(null,{status:202}):Response.json(e==="single"?n[0]:n)}i(b,"replyResponse");function B(e){return e.type==="request"}i(B,"isRequestType");function F(e,n,s){let r=s===void 0?void 0:n,o=s===void 0?n:s;if(r!==void 0&&!e.messages.includes(r))throw new Error("createErrorResponse: the message must be one of envelope.messages from the same getRequest() parse.");let a=[];for(let u of e.messages)if(u.type==="request"){let c=r===void 0||u===r?o:{code:-32001,message:"Not processed"};a.push(R(u.id,c))}else u.type==="invalid"&&a.push(R(u.id,u.error));return b(e.shape,a)}i(F,"createErrorResponse");function X(e,n,s){let r=e.messages.filter(B);if(r.length!==1||r[0]!==n)throw new Error("createResultResponse: the message must be the envelope's only request. For batches with multiple requests use processMessages, which forwards the rest and stitches replies by id.");let o=[];for(let a of e.messages)a===n?o.push(x(n.id,s)):a.type==="invalid"&&o.push(R(a.id,a.error));return b(e.shape,o)}i(X,"createResultResponse");function Y(e,n){if(e===void 0)return;let s=e,r=Object.hasOwn(e,n)?s[n]:void 0;return r!==void 0?r:Object.hasOwn(e,"*")?s["*"]:void 0}i(Y,"pickHandler");function v(e){return typeof e=="string"?`s:${e}`:`n:${e}`}i(v,"idKey");function G(e){let n=new Set;for(let s of e.messages){if(s.type!=="request")continue;let r=v(s.id);if(n.has(r))return s.id;n.add(r)}}i(G,"findDuplicateRequestId");async function W(e){let{response:n,plan:s,context:r,policyName:o}=e,a=(n.headers.get("content-type")??"").toLowerCase(),u=[];if(a.includes("json"))try{let p=await n.clone().text();if(p.trim().length>0){let f=JSON.parse(p);u=Array.isArray(f)?f:[f]}}catch{return r.log.warn(`MCP policy "${o}": upstream JSON response could not be parsed; locally generated replies were not merged.`),n}else if(n.body!==null)return r.log.warn(`MCP policy "${o}": upstream response is "${a||"unknown"}"; locally generated replies were not merged.`),n;if(u.length>0&&!u.every(p=>l(p)&&p.jsonrpc==="2.0"))return r.log.warn(`MCP policy "${o}": upstream response body is not JSON-RPC; locally generated replies were not merged.`),n;let c=new Map,y=[];for(let p of u){let f=l(p)?p.id:void 0,t=N(f)?v(f):void 0;t===void 0||c.has(t)?y.push(p):c.set(t,p)}let d=[];for(let p of s)if(p.action==="local")d.push(p.reply);else if(p.action==="forward"&&p.replyId!==void 0){let f=v(p.replyId),t=c.get(f);t===void 0?r.log.warn(`MCP policy "${o}": upstream returned no reply for request id ${JSON.stringify(p.replyId)}; the gateway does not synthesize results, so the gap is passed through.`):(c.delete(f),d.push(t))}let h=[...c.values(),...y];h.length>0&&(r.log.warn(`MCP policy "${o}": upstream returned ${h.length} repl${h.length===1?"y":"ies"} with unexpected or duplicate ids; appended after the correlated replies.`),d.push(...h));let w=new Headers(n.headers);w.delete("content-length"),w.set("content-type","application/json");let A=n.status===202||n.status===204?200:n.status;return new Response(JSON.stringify(d),{status:A,headers:w})}i(W,"stitchResponse");function ee(e){return async(n,s,r,o)=>{let a=await C(n);if(a===null)return n;if(a.shape==="batch"&&a.messages.length===0)return Response.json(R(null,{code:-32600,message:"Invalid Request: batch must not be empty."}));let u=G(a);if(u!==void 0){let t=a.messages.filter(m=>m.type==="request").map(m=>R(m.id??null,{code:-32600,message:`Invalid Request: duplicate request id ${JSON.stringify(u)} in batch. Ids must be unique so replies can be correlated.`}));return b(a.shape,t)}let c=[],y=0,d=!1;for(let t of a.messages)switch(t.type){case"invalid":{c.push({action:"local",reply:R(t.id,t.error)}),y+=1,d=!0;break}case"result":case"error":{c.push({action:"forward",wire:t.raw,replyId:void 0});break}case"request":case"notification":{let m=Y(e.requests,t.method),q=t.type==="request",O=q?t.id:void 0;if(m===void 0){c.push({action:"forward",wire:t.raw,replyId:O});break}let M;try{M=await m({message:t,request:n,context:s,envelope:a,options:r,policyName:o})}catch(S){if(s.log.error(`MCP message handler for "${t.method}" threw in policy "${o}"; failing only this message.`,S),M=q?{error:{code:-32603,message:"Internal error"}}:void 0,!q){c.push({action:"drop"}),d=!0;break}}if(M===void 0)c.push({action:"forward",wire:t.raw,replyId:O});else if("params"in M){if(!l(M.params)){s.log.error(`MCP message handler for "${t.method}" in policy "${o}" returned a non-object params verdict; failing only this message.`),q?(c.push({action:"local",reply:R(t.id,{code:-32603,message:"Internal error"})}),y+=1):c.push({action:"drop"}),d=!0;break}let S=l(t.raw)?t.raw:{};c.push({action:"forward",wire:{...S,params:M.params},replyId:O}),d=!0}else"error"in M?(q?(c.push({action:"local",reply:R(t.id,M.error)}),y+=1):c.push({action:"drop"}),d=!0):"result"in M?(q?(c.push({action:"local",reply:x(t.id,M.result)}),y+=1):(s.log.warn(`MCP message handler for "${t.method}" in policy "${o}" returned a result for a notification; notifications have no replies, dropping the message.`),c.push({action:"drop"})),d=!0):c.push({action:"forward",wire:t.raw,replyId:O});break}}let h=c.filter(t=>t.action==="forward");if(h.length===0){let t=[];for(let m of c)m.action==="local"&&t.push(m.reply);return b(a.shape,t)}if(!d)return n;let w=h.map(t=>t.wire),A=JSON.stringify(a.shape==="single"?w[0]:w),p=new Headers(n.headers);p.delete("content-length");let f=new T(n,{body:A,headers:p});return y>0&&s.addResponseSendingHook(t=>W({response:t,plan:c,context:s,policyName:o})),f}}i(ee,"processMessages");export{C as a,F as b,X as c,ee as d};
|
|
26
|
+
//# sourceMappingURL=chunk-SL6SOWIV.js.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
|
|
2
|
+
/*---------------------------------------------------------------------------------------------
|
|
3
|
+
* Copyright (c) Zuplo, Inc. All rights reserved.
|
|
4
|
+
*
|
|
5
|
+
* This software and associated documentation files (the "Software") is intended to be used
|
|
6
|
+
* only by Zuplo customers solely to develop and test applications that will be deployed
|
|
7
|
+
* to Zuplo hosted services. You and others in your organization may use these files on your
|
|
8
|
+
* Development Devices solely for the above stated purpose.
|
|
9
|
+
*
|
|
10
|
+
* Outside of uses stated above, no license is granted for any other purpose including
|
|
11
|
+
* without limitation the rights to use, copy, modify, merge, publish, distribute,
|
|
12
|
+
* sublicense, host, and/or sell copies of the Software.
|
|
13
|
+
*
|
|
14
|
+
* The software may include third party components with separate legal notices or governed by
|
|
15
|
+
* other agreements, as described in licenses either embedded in or accompanying the Software.
|
|
16
|
+
*
|
|
17
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
|
18
|
+
* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
|
19
|
+
* PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
|
|
20
|
+
* FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
21
|
+
* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
22
|
+
* DEALINGS IN THE SOFTWARE.
|
|
23
|
+
*--------------------------------------------------------------------------------------------*/
|
|
24
|
+
|
|
25
|
+
import{a as o}from"./chunk-2WLR6ZDZ.js";var i=class e{static{o(this,"ContextData")}static#t;#e;constructor(t){this.#e=t}get(t){return e.get(t,this.#e)}static get(t,n){return e.#t||(e.#t=new WeakMap),e.#t.get(t)?.get(n)}set(t,n){e.set(t,this.#e,n)}static set(t,n,a){e.#t||(e.#t=new WeakMap);let s=e.#t.get(t);s||(s=new Map),s.set(n,a),e.#t.set(t,s)}};export{i as a};
|
|
26
|
+
//# sourceMappingURL=chunk-TRBIM47E.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["@zuplo/runtime/context-data.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;wCAuEO,IAAMA,EAAN,MAAMC,CAAqB,CAvElC,MAuEkC,CAAAC,EAAA,oBAChC,MAAOC,GAEPC,GAMA,YAAYC,EAAuB,CACjC,KAAKD,GAAQC,CACf,CAOA,IAAIC,EAAsC,CACxC,OAAOL,EAAY,IAAIK,EAAS,KAAKF,EAAK,CAC5C,CAQA,OAAO,IACLE,EACAD,EACe,CACf,OAAKJ,EAAYE,KACfF,EAAYE,GAAW,IAAI,SAEtBF,EAAYE,GAAS,IAAIG,CAAO,GAAG,IAAID,CAAI,CACpD,CAOA,IAAIC,EAAuBC,EAAS,CAClCN,EAAY,IAAIK,EAAS,KAAKF,GAAOG,CAAI,CAC3C,CAQA,OAAO,IAAaD,EAAuBD,EAAuBE,EAAS,CACpEN,EAAYE,KACfF,EAAYE,GAAW,IAAI,SAE7B,IAAIK,EAAMP,EAAYE,GAAS,IAAIG,CAAO,EACrCE,IACHA,EAAM,IAAI,KAEZA,EAAI,IAAIH,EAAME,CAAI,EAClBN,EAAYE,GAAS,IAAIG,EAASE,CAAG,CACvC,CACF","names":["ContextData","_ContextData","__name","#storage","#name","name","context","data","map"]}
|