@aventurevc/mcp-server 0.8.248 → 0.8.249
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-BBBlmzy2.js → cli-help-policy-Cu1ZGyLA.js} +1 -1
- package/dist/chunks/{contract-CvUiRqVa.js → contract-DwdoWsfu.js} +1 -1
- package/dist/chunks/{contract-parameter-Dr_Wgo9v.js → contract-parameter-BbwdLzJ1.js} +1 -1
- package/dist/chunks/{env-INx_D4Zq.js → env-BYmcwCk8.js} +1 -1
- package/dist/chunks/{env-CpA6E7ay.js → env-Bo0c6kod.js} +1 -1
- package/dist/chunks/{help-catalog-DBdmIvkX.js → help-catalog-DHyKVOOS.js} +1 -1
- package/dist/chunks/{help-intent-CJ71Cp-M.js → help-intent-BaNC3lKW.js} +1 -1
- package/dist/chunks/{logging-BHp-5JwI.js → logging-BVogbmFb.js} +1 -1
- package/dist/chunks/{logging-CgYAFXRk.js → logging-Bnq2q5so.js} +1 -1
- package/dist/chunks/{oauth-discovery-D1r_jQ9u.js → oauth-discovery-CzZ3NQ0l.js} +1 -1
- package/dist/chunks/{openapi-call-d5a8zDt0.js → openapi-call-R2BrPHQ_.js} +1 -1
- package/dist/chunks/{openapi-snapshot-BGWF9Zbs.js → openapi-snapshot-B7aTSbxy.js} +1 -1
- package/dist/chunks/{output-spill-CQ-IUOQG.js → output-spill-DtZCl1kP.js} +1 -1
- package/dist/chunks/{request-replay-BFjYWNP9.js → request-replay-DfLtVf5r.js} +1 -1
- package/dist/chunks/{response-problem-D7yaxq6L.js → response-problem-CbQm2h4K.js} +1 -1
- package/dist/chunks/result-envelope-BKI5CoKT.js +1 -0
- package/dist/chunks/{sentry-BDcmqXAw.js → sentry-DdsLmr8Y.js} +1 -1
- package/dist/chunks/{sentry-BbZQYSQu.js → sentry-DtrBGAOw.js} +1 -1
- package/dist/chunks/{streamable-http-CUyh1U5_.js → streamable-http-Dg_F9Kp1.js} +1 -1
- package/dist/chunks/{text-response-DCeUQOCc.js → text-response-D4OlF1gF.js} +1 -1
- package/dist/chunks/{tool-policy-DZ6Xx51O.js → tool-policy-r9b3Qpw9.js} +1 -1
- package/dist/mcp-server/index.js +1 -1
- package/package.json +3 -3
- package/dist/chunks/result-envelope-DXFbrrkt.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{C as e,E as t,S as n,_ as r,a as i,b as a,c as o,d as s,g as c,i as l,n as u,p as d,s as f,w as p}from"./iso-l1vOidnb.js";import{t as m}from"./person-owner-BRGa5Dee.js";import{t as ee}from"./type-C0VR7LD-.js";import{t as te}from"./allowance-type-COW05L2h.js";import{Buffer as h}from"node:buffer";var g=d(()=>e([n(),c(),o(),i(),f(g),a(n(),g)])),_=l([`URL_DUPLICATE`,`STRICT_URL_LOOKUP`,`DUPLICATE_CREATE_REVIEW`,`CLASSIFICATION_INACTIVE_TAG`,`NEWS_SOURCE_URL`]),v=Object.assign(e([_,n()]),{enum:_.enum}),ne=l([`REACTIVATE`,`ATTACH_INACTIVE`]),re=r({availableOverrides:f(ne),conflictType:v,slug:n(),tagId:s()}),ie=r({externalId:n().nullish(),id:s(),publicationScore:s(),reason:f(n()),score:s(),slug:n().regex(/^[a-z0-9_-]+$/).max(255).nullish()}),ae=r({externalId:n().nullish(),id:t(),name:n().nullish(),operatingStatus:n().nullish(),publicPath:n().nullish(),reason:f(n()),score:s().optional(),slug:n().regex(/^[a-z0-9_-]+$/).max(255).nullish(),typeRecord:ee.nullish()}),y=r({candidate:f(ae).nullish(),conflictType:v,newsCandidate:f(ie).nullish(),overridePath:n().nullish(),threshold:s()}),b=r({conflictingArticleId:s(),conflictingArticleSlug:n(),conflictingArticleTitle:n(),conflictType:v}),x=r({candidateEntityId:f(t()),candidatePersonId:f(t()),conflictType:v,hint:n(),normalizedUrl:n().nullish(),url:n(),urlType:n().nullish()}),S=r({owner:m,urlId:s()}),C=r({conflictType:v,existingJoin:f(S),fragmentIgnored:o(),guidance:n(),normalizedUrl:n().nullish(),requestedOwner:m,url:n(),urlType:n()}),oe=e([C,x,y,re,b]),se=r({acceptedValue:f(n()).nullish(),action:l([`setField`,`setParameter`,`removeParameter`,`useEndpoint`,`reviewCandidates`,`authenticate`]),endpoint:n().nullish(),fieldPath:n().nullish(),parameter:n().nullish(),retryable:o().nullish()}),w=l([`source`,`record`,`disclaimer`,`voice`,`marketing`,`chained`,`structured`,`tense`,`temporal`,`factList`,`mojibake`,`unsupported`,`legalSource`,`textContract`]),ce=Object.assign(e([w,n()]),{enum:w.enum}),le=r({overridable:o(),passage:n(),problem:ce,reason:n()}),T=l([`entity`,`person`,`news`,`blog`,`content`]),ue=r({deletedAt:u({offset:!0}).nullish(),id:n(),isHidden:o(),nameBrand:n().nullish(),resourceType:T,showOnSitemap:o(),slug:n()}),de=r({newUrl:n().nullish(),oldUrl:n(),targetCurrentSlug:n().nullish(),targetId:n().nullish(),targetResourceType:T.nullish()}),E=r({allowanceType:te.nullish(),circuitBreaker:n().nullish(),code:e([l(`async_lookup_sign_in_required.not_authorized.rateLimited.rate_limited.subscription_required.subscription_canceled.subscription_past_due.subscription_paused.billing_allowance_exhausted.billing_additional_usage_cap_reached.billing_credit_checkout_closed.account_exists.origin_detail_capacity.origin_detail_shutdown.query_deadline_shed.suspectedShellStrip.suspected_shell_strip.prose_rejected.cvc_inherited_headcount.source_grounding_at_capacity.url_surface_misclassification.JOBRUNR_DISABLED.jobrunr_disabled.task_plan_operation_unserved.JOBRUNR_STORAGE_UNAVAILABLE.jobrunr_storage_unavailable.rbac_lookup_unavailable.GEOCODE_PROVIDER_ERROR.geocode_provider_error.sentry_api_error.frontend_cache_epoch_mode_not_targeted.image_blocklist_match.image_monochrome.image_too_small.image_wrong_aspect.image_monogram.image_unreadable.image_processing_error.image_brand_mismatch.image_reference_unavailable.image_photographic.web_crawl_fetch_failed.source_document_fetch_busy.primary_website_missing.news_rss_feed_fetch_failed.news_rss_article_fetch_failed.callback_connection_refused.callback_timeout.callback_tls_error.callback_http_4xx.callback_http_5xx.callback_challenge_failed.news_subscription_limit.r2_fetch_failed.r2_delete_failed.r2_upload_failed.source_document_body_unavailable.source_document_capture_limit_exceeded.news_similarity_embedding_unavailable.search_provider_not_configured.search_provider_error.search_still_running.lookup_still_running.sec_edgar_fetch_failed.github_fetch_failed.INFERENCE_PROVIDER_ERROR.inference_provider_error.INFERENCE_PROVIDER_RESPONSE_EMPTY.inference_provider_response_empty.INFERENCE_PROVIDER_INVALID_JSON.inference_provider_invalid_json.INFERENCE_PROFILES_MISSING.inference_profiles_missing.INFERENCE_PROFILE_API_KEY_MISSING.inference_profile_api_key_missing`.split(`.`)),n().max(128)]).nullish(),conflictingRecord:ue.nullish(),detail:n().optional(),details:oe.nullish(),disposition:l([`TRANSIENT`,`TERMINAL`]).nullish(),error:a(n(),n()).nullish(),existingRecordId:n().nullish(),existingRedirect:de.nullish(),feId:n().nullish(),field:n().nullish(),filedRunId:f(t()).nullish(),hammingDistance:c().int().nullish(),hint:n().nullish(),instance:n().optional(),limit:c().int().nullish(),limitType:e([l([`FORM`,`GLOBAL`,`SUBNET`,`IP`,`UNKNOWN`,`RESILIENCE4J`,`WEB_SEARCH`,`AGENT_HELP`,`NATURAL_SEARCH`,`BILLING_ALLOWANCE`,`BILLING_ADDITIONAL_USAGE`,`CLERK_PUBLIC_ADMISSION`,`CLERK_SCRIPT_LOAD`,`ORIGIN_DETAIL`,`INFERENCE_PROVIDER`]),n()]).nullish(),matchedBlocklistKey:n().nullish(),mediaType:n().nullish(),moderationReason:n().nullish(),path:n().nullish(),properties:a(n(),g).optional(),proseViolation:f(le).nullish(),remaining:c().int().nullish(),requiredRole:n().nullish(),resetAt:u({offset:!0}).nullish(),resolution:se.nullish(),retryAfterSeconds:c().int().nullish(),spanId:n().nullish(),status:s().optional(),suggestion:n().nullish(),suggestions:a(n(),n()).nullish(),suspectedFragment:n().nullish(),title:n().optional(),traceId:n().nullish(),type:n().optional(),unknownParameters:f(n()).nullish(),used:c().int().nullish(),validParameters:f(n()).nullish(),value:n().nullish(),windowSeconds:c().int().nullish()}),fe=e=>e>=400&&e<500,D=e=>e>=500&&e<600,O=e([n(),c(),o()]),k=r({number:c().optional(),size:c().optional(),numberOfElements:c().optional(),totalElements:c().optional(),totalPages:c().optional(),first:o().optional(),last:o().optional(),empty:o().optional()}),A=r({byteLength:c(),maxBytes:c(),omitted:f(n()),recovery:n()}),j=r({status:c(),title:n(),type:n()}).catchall(g.optional()).and(E),M=r({ok:o(),summary:n(),httpStatus:c().optional(),operationId:n().optional(),method:n().optional(),endpoint:n().optional(),format:l([`json`,`text`]).optional(),count:c().optional(),page:k.optional(),filters:a(n(),e([O,f(O)])).optional(),truncated:o().optional(),truncation:A.optional(),omitted:f(n()).default([]),ids:f(n()).default([]),counts:a(n(),c()).default({}),references:f(n()).default([]),warnings:f(n()).default([]),problem:j.optional(),data:p()}),N=5e4,P=[50,25,10,5,1],F=320,I=`data (kept the first row of each list)`,L=[{arrayLimit:1/0,rowLimit:1/0,stringLimit:24e3},{arrayLimit:1/0,rowLimit:1/0,stringLimit:1e4},...P.map(e=>({arrayLimit:e,rowLimit:1/0})),{arrayLimit:1,rowLimit:1/0,foldRows:!0}],R=1e3,z=/^(?:bio|biography|body|content|description|evidence|fulltext|notes|snippet|summary|text)$/u,B=/(?:description|snippet|summary|text)$/u;function V(e){let t=M.safeParse(e);return t.success?t.data:null}function pe(e){let t=k.safeParse(e);return t.success&&Object.values(t.data).some(e=>e!==void 0)?t.data:void 0}function me(e,t){if(t?.numberOfElements!==void 0)return t.numberOfElements;if(Array.isArray(e))return e.length;let n=$(e)?e.content:void 0;return Array.isArray(n)?n.length:void 0}function H(e,t,n={}){return{ok:!0,summary:e,...n,omitted:n.omitted??[],ids:n.ids??[],counts:n.counts??{},references:n.references??[],warnings:n.warnings??[],data:t}}function he(e,t=[],n={}){return{...H(e,null,{...n,warnings:t}),ok:!1}}function ge(e,t={}){let n=t.maxBytes??5e4;if(G(e,n))return e;let r={byteLength:h.byteLength(JSON.stringify(e),`utf8`),maxBytes:n},i=e.httpStatus??0;if(t.write===!0&&e.ok&&i>=200&&i<300)return _e(e,r,t.exactRecovery);let a=e.ok?Y:`Refetch a narrower result through read operations using ids/references or filters; do not retry the failed operation.`,o=t.exactRecovery??t.narrowerRead??a,s=g.safeParse(JSON.parse(JSON.stringify(e.data))),c=t=>{let n=s.success?J(s.data,`data`,r,t):{value:Z(r),omitted:[`data`]};return{...e,truncated:!0,truncation:X(r,n.omitted,o),warnings:[...e.warnings,...t.rowLimit===1/0?[]:[be(t,o)],`response truncated (caps); follow truncation.recovery for the full result`],data:n.value}},l=t.foldRows!==!1,u=e;for(let e of L.filter(e=>l||e.foldRows!==!0))if(u=c(e),G(u,r.maxBytes))return u;let d=0;for(let t=2**Math.floor(Math.log2(q(e.data)));t>=1;t/=2)G(c({arrayLimit:1,rowLimit:d+t,foldRows:l}),r.maxBytes)&&(d+=t);if(d>0)return c({arrayLimit:1,rowLimit:d,foldRows:l});let f=(e,t=`data`)=>U(e,r,o,`response truncated (caps); metadata named in truncation.omitted was removed; follow truncation.recovery for the full result`,[t]),p=f(c({arrayLimit:1,rowLimit:1,foldRows:l}),I);if(q(e.data)>0&&G(p,r.maxBytes))return p;let m=Z(r);return f({...u,truncation:X(r,[`data`],o),data:m})}function _e(e,t,n=`Read the full result through the GET operation on ${e.endpoint??`this route`}.`){let r={...e.counts},i=(e,n)=>{let a={};for(let[o,s]of Object.entries($(e)?e:{}))Array.isArray(s)?r[`${n}${o}`]=s.length:typeof s==`string`?a[o]=K(s,t,F):typeof s!=`object`||!s?a[o]=s:n===``&&o===`response`&&(a[o]=i(s,`response.`));return a},a={...e,summary:`${e.method} succeeded (HTTP ${e.httpStatus}); response body omitted (${t.byteLength} bytes, over caps); do not retry the write`,truncated:!0,truncation:X(t,[`data`],n),counts:r,data:i(e.data,``)},o=a,s=[`data`],c={};for(let r of[`references`,`ids`,`warnings`]){if(G(o,t.maxBytes))return o;s.push(r),c[r]=[],o={...a,...c,omitted:[...e.omitted,...s.slice(1)],truncation:X(t,s,n)}}return G(o,t.maxBytes)?o:U({...o,data:Z(t),warnings:[`response truncated (caps); do not retry the write`]},t,n,`response truncated (caps); metadata named in truncation.omitted was removed; do not retry the write`)}function U(e,t,n,r,i=[`data`]){if(G(e,t.maxBytes))return e;let a=e.warnings.slice(0,-1),o=e;if(o.problem!==void 0){let e=W(o.problem);if(JSON.stringify(e).length<JSON.stringify(o.problem).length&&(i.push(`problem`),o={...o,problem:e,truncation:X(t,i,n)},G(o,t.maxBytes)))return o}let s=[`filters`,`omitted`,`ids`,`counts`,`references`].filter(t=>Object.keys(e[t]??{}).length>0);if(i.push(...s),o={...o,filters:void 0,truncation:X(t,i,n),omitted:[],ids:[],counts:{},references:[],warnings:s.length===0?e.warnings:[...a,r]},G(o,t.maxBytes))return o;let c=e=>e===void 0?void 0:K(e,t),l={summary:K(o.summary,t),operationId:c(o.operationId),method:c(o.method),endpoint:c(o.endpoint),warnings:o.warnings.map(e=>K(e,t)),problem:o.problem&&W(o.problem,t)},u=new Map(Object.entries(o));for(let[e,t]of Object.entries(l))JSON.stringify(t)!==JSON.stringify(u.get(e))&&i.push(e);if(o={...o,...l,truncation:X(t,i,n)},G(o,t.maxBytes))return o;i.push(`warnings`),o.page!==void 0&&i.push(`page`);let d=K(o.summary,t,F);return d!==o.summary&&i.push(`summary`),{...o,summary:d,page:void 0,truncation:X(t,i,n),warnings:[r]}}function W(e,t){let n=e=>t===void 0?e:K(e,t);return{status:e.status,title:n(e.title),type:n(e.type),...e.detail===void 0?{}:{detail:n(e.detail)},...e.instance===void 0?{}:{instance:n(e.instance)},...e.code===void 0?{}:{code:typeof e.code==`string`?n(e.code):e.code},...e.retryAfterSeconds===void 0?{}:{retryAfterSeconds:e.retryAfterSeconds},...e.disposition==null?{}:{disposition:e.disposition},...e.resetAt===void 0?{}:{resetAt:e.resetAt}}}function G(e,t=N){let n=JSON.stringify(e);return n.length<3e4&&h.byteLength(n,`utf8`)<=t}function K(e,t,n=R){if(h.byteLength(JSON.stringify(e),`utf8`)<=n)return e;let r=Q(t),i=``,a=h.byteLength(JSON.stringify(r),`utf8`);for(let t of e){let e=h.byteLength(JSON.stringify(t),`utf8`)-2;if(a+e>n)break;i+=t,a+=e}return`${i.trimEnd()}${r}`}function q(e){return Array.isArray(e)?e.length:$(e)?Math.max(0,...Object.values(e).map(q)):0}function J(e,t,n,r){if(typeof e==`string`){let i=ye(xe(t))||e.length>R,a=r.stringLimit??F;return!i||e.length<=a?{value:e,omitted:[]}:{value:`${e.slice(0,a).trimEnd()}${Q(n)}`,omitted:[t]}}if(typeof e!=`object`||!e)return{value:e,omitted:[]};if(Array.isArray(e))return ve(e,t,n,r);if(t===`data.response.entity.answer`||t===`data.response.answer`)return{value:e,omitted:[]};let i={},a=[],{foldDepth:o}=r;for(let[s,c]of Object.entries(e)){if(c===void 0)continue;let e=typeof c==`object`&&!!c;if(e&&o!==void 0&&(o===0||Array.isArray(c))){a.push(`${t.replaceAll(/\[\d+\]/gu,`[]`)}.${s} (folded)`);continue}let l=e&&o!==void 0?{...r,foldDepth:o-1}:r,u=J(c,`${t}.${s}`,n,l);i[s]=u.value,a.push(...u.omitted)}return{value:i,omitted:a}}function ve(e,t,n,r){let i=e.slice(0,r.rowLimit),a=r.foldRows===!0?1:r.foldDepth,o={...r,rowLimit:r.arrayLimit,foldDepth:a},s=i.map((e,r)=>J(e,`${t}[${r}]`,n,o)),c=s.flatMap(e=>e.omitted),l=`${t}[${i.length}..] (kept ${i.length} of ${e.length})`;return{value:s.map(e=>e.value),omitted:e.length>i.length?[...c,l]:c}}function ye(e){let t=e.toLowerCase();return z.test(t)||B.test(t)}var Y=`Save the full response with --to-file <path>, then inspect the needed section; use narrower reads, filters, or pagination only where the operation supports them.`,X=(e,t,n)=>({...e,omitted:t.length===0?[`data`]:[...new Set(t)],recovery:K(n,e)}),Z=e=>({truncated:!0,...e}),Q=e=>`\n[truncated byteLength=${e.byteLength} maxBytes=${e.maxBytes}]`,be=({rowLimit:e,foldRows:t},n)=>`kept the first ${e} ${t===!0?`rows of each list with nested sections folded`:`whole rows of each list`}; ${n}`,xe=e=>(e.split(`.`).at(-1)??e).replace(/\[\d+\]$/,``),$=e=>typeof e==`object`&&!!e&&!Array.isArray(e);export{pe as a,H as c,E as d,g as f,G as i,fe as l,ge as n,V as o,he as r,me as s,N as t,D as u};
|