@aventurevc/mcp-server 0.8.402 → 0.8.404
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/dist/chunks/{cli-help-policy-DKvhxVzj.js → cli-help-policy-DTjRjUH-.js} +1 -1
- package/dist/chunks/{contract-snPxQZji.js → contract-Brqijd_7.js} +1 -1
- package/dist/chunks/{contract-parameter-Cs9iqQzY.js → contract-parameter-CKdYGNoF.js} +1 -1
- package/dist/chunks/{detail-DRp-1p_d.js → detail-B7zS45O0.js} +1 -1
- package/dist/chunks/{help-catalog-MO3v3A36.js → help-catalog-DdME0yOc.js} +1 -1
- package/dist/chunks/{help-intent-B0yMjuhN.js → help-intent-DuNcxASG.js} +1 -1
- package/dist/chunks/{oauth-discovery-TrYJokuL.js → oauth-discovery-VkZwSHzE.js} +1 -1
- package/dist/chunks/openapi-call-BdA1FVrA.js +102 -0
- package/dist/chunks/openapi-snapshot.json +1 -1
- package/dist/chunks/{output-spill-CSsMNcJa.js → output-spill-C8wO9miJ.js} +1 -1
- package/dist/chunks/{request-replay-0Qg7ktZO.js → request-replay-IoqFKMcS.js} +1 -1
- package/dist/chunks/{response-problem-DzOWyTv1.js → response-problem-CMoiDmUe.js} +1 -1
- package/dist/chunks/{streamable-http-jbK9FSKP.js → streamable-http-ZNelNU50.js} +45 -45
- package/dist/chunks/text-response-BLp1V1hP.js +18 -0
- package/dist/chunks/tool-policy-C0CH_dBK.js +1 -0
- package/dist/mcp-server/index.js +1 -1
- package/package.json +3 -3
- package/dist/chunks/openapi-call-C_hosXIF.js +0 -102
- package/dist/chunks/text-response-C40khd3L.js +0 -17
- package/dist/chunks/tool-policy-B9_QnvtY.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./result-envelope-BvVnhP83.js";import{dirname as t}from"node:path";import{mkdirSync as n,writeFileSync as r}from"node:fs";import{Buffer as i}from"node:buffer";var a;function o(e){a=e}function s(){return a}function c(e){return typeof e!=`object`||!e||Array.isArray(e)||!Reflect.has(e,`method`)||!Reflect.has(e,`endpoint`)||!(`response`in e)||e.response===void 0?e:e.response}function l(o,s){let l=a;if(l===void 0)return o;a=void 0;let d=o.data,f=o.ok?d instanceof Uint8Array?d:typeof d==`string`?i.from(d,`utf8`):u(c(d)):u(o);try{n(t(l),{recursive:!0}),r(l,f)}catch(t){return e(`could not spill output to '${l}'`,[String(t)])}
|
|
1
|
+
import{r as e}from"./result-envelope-BvVnhP83.js";import{dirname as t}from"node:path";import{mkdirSync as n,writeFileSync as r}from"node:fs";import{Buffer as i}from"node:buffer";var a;function o(e){a=e}function s(){return a}function c(e){return typeof e!=`object`||!e||Array.isArray(e)||!Reflect.has(e,`method`)||!Reflect.has(e,`endpoint`)||!(`response`in e)||e.response===void 0?e:e.response}function l(o,s){let l=a;if(l===void 0)return o;a=void 0;let d=o.data,f=o.ok?d instanceof Uint8Array?d:typeof d==`string`?i.from(d,`utf8`):u(c(d)):u(o);try{n(t(l),{recursive:!0}),r(l,f)}catch(t){return e(`could not spill output to '${l}'`,[String(t)])}let p={spilledTo:l,byteLength:f.byteLength};if(s?.(p),!o.ok)return o;if(typeof d!=`object`||!d||d instanceof Uint8Array||c(d)===d)return{...o,data:`spilled ${f.byteLength} bytes to '${l}'`};let m=c(d),h,g=!1;if(typeof m==`object`&&m&&!Array.isArray(m)&&!(`content`in m&&Array.isArray(m.content))&&!(`score`in m)&&!(`id`in m&&`core`in m)){g=`core`in m;let e=`core`in m?Object.hasOwn(m,`core`)?m.core:void 0:m;typeof e==`object`&&e&&!Array.isArray(e)&&`id`in e&&Object.hasOwn(e,`id`)&&(typeof e.id==`string`||typeof e.id==`number`&&Number.isSafeInteger(e.id))&&(h=e.id)}return{...o,data:{...d,response:{...p,...o.httpStatus===void 0?{}:{httpStatus:o.httpStatus},...h===void 0?{}:g?{core:{id:h}}:{id:h}}}}}function u(e){return i.from(JSON.stringify(e,null,2),`utf8`)}export{l as i,s as n,c as r,o as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{u as e}from"./response-problem-CMoiDmUe.js";var t=new Set([408,429,502,503,504]),n=250,r=`source_grounding_at_capacity`;function i(e,t){return e!==503||t===void 0?!1:t.code===r||t.mutationNotApplied===!0&&t.disposition===`TRANSIENT`}function a(e,n){return!t.has(e)||n.disposition===`TERMINAL`?!1:n.resetAt===void 0||n.resetAt===null}function o(e){let t=e instanceof Error?e.cause:void 0;return t instanceof TypeError||t instanceof Error&&t.name===`TimeoutError`}function s(){return n*(1+Math.random())}function c(t,n,r,o=!0){let c=e(n.retryAfterSeconds),l=c===void 0?void 0:c*1e3;if(i(t,n))return l;if(r&&a(t,n))return t===429?!o||n.detail===`Too many Clerk credential verification attempts`||l===void 0?void 0:l+s():l??s()}export{c as i,o as n,s as r,a as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{S as e,b as t}from"./iso-DzqMxtky.js";import{f as n,p as r,r as i}from"./result-envelope-BvVnhP83.js";function a(e,t,n=[]){return i(`${e}: ${t.status} ${t.title}`,[...n],{httpStatus:t.status,problem:t})}function o(e){let t=[],n=[];for(let[r,i]of Object.entries(e)){let e=r.toLowerCase();(e===`warning`||e.startsWith(`x-contract-warning-`))&&(t.push(`${s(e)}: ${i}`),e===`x-contract-warning-key`&&n.push(i))}return{warnings:t,omitted:n}}function s(e){return e.split(`-`).map(e=>e===`x`?`X`:`${e[0]?.toUpperCase()??``}${e.slice(1)}`).join(`-`)}var c=/(?:authorization|api-key|secret|token)/iu,l=/^x-cli-[a-z0-9-]*secret$/iu;function u(n,i,a={}){let o=h(a);o.length>0&&(i=d(i,o));let s=t(e(),r).safeParse(i);if(!s.success)return{status:n,title:`HTTP ${n}`,type:`about:blank`,code:void 0,detail:typeof i==`string`?i:void 0};let c=f(s.data),l=typeof c.status==`number`?c.status:n;return{...c,status:l,title:typeof c.title==`string`?c.title:`HTTP ${l}`,type:typeof c.type==`string`?c.type:`about:blank`,detail:typeof c.detail==`string`?c.detail:void 0}}function d(e,t){return typeof e==`string`?g(e,t):typeof e!=`object`||!e?e:Array.isArray(e)?e.map(e=>d(e,t)):Object.fromEntries(Object.entries(e).map(([e,n])=>[g(e,t),d(n,t)]))}function f(e){let t=n.safeParse(e);if(t.success)return e;let r=new Set(t.error.issues.map(e=>String(e.path[0])));return Object.fromEntries(Object.entries(e).filter(([e])=>!r.has(e)))}function p(e,t){if(m(t))return{status:e.status,title:`CLI authorization broker request failed`};let n=h(t),r={};for(let[t,i]of Object.entries(e))i!=null&&(r[t]=typeof i==`object`?JSON.stringify(d(i,n)):typeof i==`string`?g(i,n):i);return r}function m(e){return Object.keys(e).some(e=>l.test(e))}function h(e){let t=[];for(let[n,r]of Object.entries(e)){if(!c.test(n))continue;let e=r.trim();if(e.length===0)continue;t.push(e);let i=e.indexOf(` `);if(i>0){let n=e.slice(i+1).trim();n.length>0&&t.push(n)}}return t}function g(e,t){let n=e;for(let e of t)e!=null&&e.length>0&&(n=n.replaceAll(e,`<redacted>`));return n}function _(e,t){if(m(t))return{status:e.status,title:`CLI authorization broker request failed`,type:`about:blank`,detail:`Broker diagnostic text was suppressed at the CLI credential boundary.`,...y(e)};let n=h(t);if(n.length===0)return e;let r=t=>{let r=e[t];return typeof r==`string`?{[t]:g(r,n)}:{}},i=t=>{let r=e[t];return r==null?{}:{[t]:Object.fromEntries(Object.entries(r).map(([e,t])=>[g(e,n),g(t,n)]))}},a=t=>{let r=e[t];return Array.isArray(r)?{[t]:r.map(e=>g(e,n))}:{}};return{status:e.status,title:g(e.title,n),type:g(e.type,n),...r(`detail`),...r(`hint`),...r(`field`),...r(`suggestion`),...r(`campusProofRefusal`),...r(`requiredRole`),...r(`existingRecordId`),...i(`suggestions`),...i(`error`),...a(`unknownParameters`),...a(`validParameters`),...a(`unmetGateId`),...e.details===void 0?{}:{details:e.details},...e.resolution===void 0?{}:{resolution:e.resolution},...e.code===void 0?{}:{code:e.code},...e.disposition==null?{}:{disposition:e.disposition},...typeof e.mutationNotApplied==`boolean`?{mutationNotApplied:e.mutationNotApplied}:{},...Array.isArray(e.proseViolation)?{proseViolation:e.proseViolation.map(e=>({...e,passage:g(e.passage,n),reason:g(e.reason,n)}))}:{},...r(`traceId`),...r(`spanId`),...e.limitType===void 0?{}:{limitType:e.limitType},...e.allowanceType===void 0?{}:{allowanceType:e.allowanceType},...e.limit===void 0?{}:{limit:e.limit},...e.used===void 0?{}:{used:e.used},...e.remaining===void 0?{}:{remaining:e.remaining},...e.resetAt===void 0?{}:{resetAt:e.resetAt},...e.windowSeconds===void 0?{}:{windowSeconds:e.windowSeconds},...e.filedRunId?{filedRunId:e.filedRunId}:{},...e.coveringRunId?{coveringRunId:e.coveringRunId}:{},...y(e)}}function v(e,t){if(x(e.retryAfterSeconds)!==void 0)return e;let n=b(t.get(`retry-after`));return n===void 0?e:{...e,retryAfterSeconds:n}}function y(e){let t=x(e.retryAfterSeconds);return t===void 0?{}:{retryAfterSeconds:t}}function b(e){let t=e?.trim()??``;if(/^\d+$/u.test(t))return x(Number(t));let n=/[a-z]/iu.test(t)?new Date(t).getTime():NaN;return Number.isNaN(n)?void 0:x(Math.ceil((n-Date.now())/1e3))}function x(e){return typeof e==`number`&&Number.isInteger(e)&&e>0?e:void 0}export{
|
|
1
|
+
import{S as e,b as t}from"./iso-DzqMxtky.js";import{f as n,p as r,r as i}from"./result-envelope-BvVnhP83.js";function a(e,t,n=[]){return i(`${e}: ${t.status} ${t.title}`,[...n],{httpStatus:t.status,problem:t})}function o(e){let t=[],n=[];for(let[r,i]of Object.entries(e)){let e=r.toLowerCase();(e===`warning`||e.startsWith(`x-contract-warning-`))&&(t.push(`${s(e)}: ${i}`),e===`x-contract-warning-key`&&n.push(i))}return{warnings:t,omitted:n}}function s(e){return e.split(`-`).map(e=>e===`x`?`X`:`${e[0]?.toUpperCase()??``}${e.slice(1)}`).join(`-`)}var c=/(?:authorization|api-key|secret|token)/iu,l=/^x-cli-[a-z0-9-]*secret$/iu;function u(n,i,a={}){let o=h(a);o.length>0&&(i=d(i,o));let s=t(e(),r).safeParse(i);if(!s.success)return{status:n,title:`HTTP ${n}`,type:`about:blank`,code:void 0,detail:typeof i==`string`?i:void 0};let c=f(s.data),l=typeof c.status==`number`?c.status:n;return{...c,status:l,title:typeof c.title==`string`?c.title:`HTTP ${l}`,type:typeof c.type==`string`?c.type:`about:blank`,detail:typeof c.detail==`string`?c.detail:void 0}}function d(e,t){return typeof e==`string`?g(e,t):typeof e!=`object`||!e?e:Array.isArray(e)?e.map(e=>d(e,t)):Object.fromEntries(Object.entries(e).map(([e,n])=>[g(e,t),d(n,t)]))}function f(e){let t=n.safeParse(e);if(t.success)return e;let r=new Set(t.error.issues.map(e=>String(e.path[0])));return Object.fromEntries(Object.entries(e).filter(([e])=>!r.has(e)))}function p(e,t){if(m(t))return{status:e.status,title:`CLI authorization broker request failed`};let n=h(t),r={};for(let[t,i]of Object.entries(e))i!=null&&(r[t]=typeof i==`object`?JSON.stringify(d(i,n)):typeof i==`string`?g(i,n):i);return r}function m(e){return Object.keys(e).some(e=>l.test(e))}function h(e){let t=[];for(let[n,r]of Object.entries(e)){if(!c.test(n))continue;let e=r.trim();if(e.length===0)continue;t.push(e);let i=e.indexOf(` `);if(i>0){let n=e.slice(i+1).trim();n.length>0&&t.push(n)}}return t}function g(e,t){let n=e;for(let e of t)e!=null&&e.length>0&&(n=n.replaceAll(e,`<redacted>`));return n}function _(e,t){if(m(t))return{status:e.status,title:`CLI authorization broker request failed`,type:`about:blank`,detail:`Broker diagnostic text was suppressed at the CLI credential boundary.`,...y(e)};let n=h(t);if(n.length===0)return e;let r=t=>{let r=e[t];return typeof r==`string`?{[t]:g(r,n)}:{}},i=t=>{let r=e[t];return r==null?{}:{[t]:Object.fromEntries(Object.entries(r).map(([e,t])=>[g(e,n),g(t,n)]))}},a=t=>{let r=e[t];return Array.isArray(r)?{[t]:r.map(e=>g(e,n))}:{}};return{status:e.status,title:g(e.title,n),type:g(e.type,n),...r(`detail`),...r(`hint`),...r(`field`),...r(`suggestion`),...r(`campusProofRefusal`),...r(`requiredRole`),...r(`existingRecordId`),...i(`suggestions`),...i(`error`),...a(`unknownParameters`),...a(`validParameters`),...a(`unmetGateId`),...e.details===void 0?{}:{details:e.details},...e.resolution===void 0?{}:{resolution:e.resolution},...e.code===void 0?{}:{code:e.code},...e.disposition==null?{}:{disposition:e.disposition},...typeof e.mutationNotApplied==`boolean`?{mutationNotApplied:e.mutationNotApplied}:{},...Array.isArray(e.proseViolation)?{proseViolation:e.proseViolation.map(e=>({...e,passage:g(e.passage,n),reason:g(e.reason,n)}))}:{},...r(`traceId`),...r(`spanId`),...e.limitType===void 0?{}:{limitType:e.limitType},...e.allowanceType===void 0?{}:{allowanceType:e.allowanceType},...e.limit===void 0?{}:{limit:e.limit},...e.used===void 0?{}:{used:e.used},...e.remaining===void 0?{}:{remaining:e.remaining},...e.resetAt===void 0?{}:{resetAt:e.resetAt},...e.windowSeconds===void 0?{}:{windowSeconds:e.windowSeconds},...e.filedRunId?{filedRunId:e.filedRunId}:{},...e.coveringRunId?{coveringRunId:e.coveringRunId}:{},...y(e)}}function v(e,t){if(x(e.retryAfterSeconds)!==void 0)return e;let n=b(t.get(`retry-after`));return n===void 0?e:{...e,retryAfterSeconds:n}}function y(e){let t=x(e.retryAfterSeconds);return t===void 0?{}:{retryAfterSeconds:t}}function b(e){let t=e?.trim()??``;if(/^\d+$/u.test(t))return x(Number(t));let n=/[a-z]/iu.test(t)?new Date(t).getTime():NaN;return Number.isNaN(n)?void 0:x(Math.ceil((n-Date.now())/1e3))}function x(e){return typeof e==`number`&&Number.isInteger(e)&&e>0?e:void 0}function S(e){let t=[];typeof e.code==`string`&&t.push(` code: ${e.code}`),typeof e.detail==`string`&&t.push(` detail: ${e.detail}`),typeof e.hint==`string`&&t.push(` hint: ${e.hint}`),typeof e.suggestion==`string`&&t.push(` suggestion: ${e.suggestion}`);let n=Object.entries(e.suggestions??{});if(n.length>0){let e=n.map(([e,t])=>`${e}=${t}`).join(`; `);t.push(` suggestions: ${e}`)}return typeof e.requiredRole==`string`&&t.push(` requiredRole: ${e.requiredRole}`),t.push(...C(e),...w(`unknownParameters`,e.unknownParameters),...w(`validParameters`,e.validParameters),...T(e.resolution)),t}function C(e){let t=[];return typeof e.limitType==`string`&&t.push(`limitType=${e.limitType}`),typeof e.used==`number`&&t.push(`used=${e.used}`),typeof e.limit==`number`&&t.push(`limit=${e.limit}`),typeof e.remaining==`number`&&t.push(`remaining=${e.remaining}`),typeof e.resetAt==`string`&&t.push(`resetAt=${e.resetAt}`),typeof e.windowSeconds==`number`&&t.push(`windowSeconds=${e.windowSeconds}`),typeof e.retryAfterSeconds==`number`&&t.push(`retryAfterSeconds=${e.retryAfterSeconds}`),t.length>0?[` meter: ${t.join(` `)}`]:[]}function w(e,t){return t!=null&&t.length>0?[` ${e}: ${t.join(`, `)}`]:[]}function T(e){if(e==null)return[];let t=[`action=${e.action}`];return typeof e.parameter==`string`&&t.push(`parameter=${e.parameter}`),typeof e.fieldPath==`string`&&t.push(`fieldPath=${e.fieldPath}`),typeof e.endpoint==`string`&&t.push(`endpoint=${e.endpoint}`),e.acceptedValue!==null&&e.acceptedValue!==void 0&&e.acceptedValue.length>0&&t.push(`acceptedValue=${e.acceptedValue.join(`, `)}`),typeof e.retryable==`boolean`&&t.push(`retryable=${e.retryable}`),[` resolution: ${t.join(` `)}`]}export{g as a,o as c,v as d,a as i,b as l,u as n,h as o,S as r,_ as s,p as t,x as u};
|