@aventurevc/mcp-server 0.8.294 → 0.8.296
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-EqwYSBOi.js → cli-help-policy-Deq2HK0N.js} +1 -1
- package/dist/chunks/{contract-B6QqVAgo.js → contract-CX9HAGHi.js} +1 -1
- package/dist/chunks/{contract-parameter-DZFV8Cs1.js → contract-parameter-mZS0c0XX.js} +1 -1
- package/dist/chunks/{env-nPHH8Y1V.js → env-IO7LXlXt.js} +1 -1
- package/dist/chunks/{env-B0nFdXns.js → env-PI64cCwx.js} +1 -1
- package/dist/chunks/{help-catalog-B8JUR6zB.js → help-catalog-C6fkJKH5.js} +1 -1
- package/dist/chunks/{help-intent-CGB8sWuW.js → help-intent-BC2IFohN.js} +1 -1
- package/dist/chunks/{logging-D5jL7iVk.js → logging-ButsTw7E.js} +1 -1
- package/dist/chunks/{logging-BLz3ITZ8.js → logging-zxCFTikI.js} +1 -1
- package/dist/chunks/{mcp-generation-contract-BHut-X7K.js → mcp-generation-contract-nMZywnyM.js} +1 -1
- package/dist/chunks/{oauth-discovery-z7QeRYlm.js → oauth-discovery-DrK2P4VB.js} +1 -1
- package/dist/chunks/{openapi-call-Ch3_9dpf.js → openapi-call-B9Cka6Gj.js} +2 -2
- package/dist/chunks/openapi-snapshot.json +1 -1
- package/dist/chunks/{output-spill-CuQ24_Xn.js → output-spill-BF9ZDkbV.js} +1 -1
- package/dist/chunks/private-readback-BFTYnRsK.js +1 -0
- package/dist/chunks/{request-replay-zWu_6Sak.js → request-replay-kYYWaojV.js} +1 -1
- package/dist/chunks/{response-problem-B6bUo9co.js → response-problem-DYOsRJri.js} +1 -1
- package/dist/chunks/result-envelope-C32KU3bV.js +1 -0
- package/dist/chunks/{sentry-DPdcv0tK.js → sentry-DbaEE272.js} +1 -1
- package/dist/chunks/{sentry-DKiL1mSi.js → sentry-DmtQl7sX.js} +1 -1
- package/dist/chunks/{streamable-http-Sw8dPwbH.js → streamable-http-DEtkJv_f.js} +39 -39
- package/dist/chunks/{text-response-BJlg35WC.js → text-response-B-gFFhrz.js} +1 -1
- package/dist/chunks/{tool-policy-BnoDi0Yk.js → tool-policy-D9D165gJ.js} +1 -1
- package/dist/mcp-server/index.js +1 -1
- package/package.json +3 -3
- package/dist/chunks/private-readback-DX42Bf2b.js +0 -1
- package/dist/chunks/result-envelope-5DwGbGQt.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./result-envelope-
|
|
1
|
+
import{r as e}from"./result-envelope-C32KU3bV.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){let s=a;if(s===void 0)return o;a=void 0;let l=o.data,d=o.ok?l instanceof Uint8Array?l:typeof l==`string`?i.from(l,`utf8`):u(c(l)):u(o);try{n(t(s),{recursive:!0}),r(s,d)}catch(t){return e(`could not spill output to '${s}'`,[String(t)])}if(!o.ok)return o;if(typeof l!=`object`||!l||l instanceof Uint8Array||c(l)===l)return{...o,data:`spilled ${d.byteLength} bytes to '${s}'`};let f=c(l),p,m=!1;if(typeof f==`object`&&f&&!Array.isArray(f)&&!(`content`in f&&Array.isArray(f.content))&&!(`score`in f)&&!(`id`in f&&`core`in f)){m=`core`in f;let e=`core`in f?Object.hasOwn(f,`core`)?f.core:void 0:f;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))&&(p=e.id)}return{...o,data:{...l,response:{spilledTo:s,byteLength:d.byteLength,...o.httpStatus===void 0?{}:{httpStatus:o.httpStatus},...p===void 0?{}:m?{core:{id:p}}:{id:p}}}}}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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e,t,r){return c(t?.includePrivate)||c(a(r))?`required`:s(e,n)?`preferred`:`none`}function t(e,t,n,i){return t?.scheduleEnrichment===void 0&&s(e,r)?{...t,scheduleEnrichment:!1}:t}var n=`includePrivate`,r=`scheduleEnrichment`;function i(e,t){let n=t.hasParseDefault||t.location!==`query`?void 0:t.optionKey===r?`This client sends false when omitted; pass true to queue research.`:void 0;return n===void 0||e.endsWith(n)?e:`${e} ${n}`}var a=e=>typeof e==`object`&&e&&!Array.isArray(e)?e.includePrivate:void 0,o=(e,t)=>(e.parameters??[]).find(e=>e.in===`query`&&e.name===t),s=(e,t)=>o(e,t)!==void 0;function c(e){return e===null||typeof e==`object`?Array.isArray(e)&&e.some(c):e===!0||e===1||typeof e==`string`&&/^(true|on|yes|1)$/i.test(e.trim())}export{e as n,t as r,i as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as e}from"./response-problem-
|
|
1
|
+
import{l as e}from"./response-problem-DYOsRJri.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?.code===r}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-l1vOidnb.js";import{f as n,p as r,r as i}from"./result-envelope-
|
|
1
|
+
import{S as e,b as t}from"./iso-l1vOidnb.js";import{f as n,p as r,r as i}from"./result-envelope-C32KU3bV.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(`requiredRole`),...r(`existingRecordId`),...i(`suggestions`),...i(`error`),...a(`unknownParameters`),...a(`validParameters`),...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},...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}:{},...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{h as a,b as c,g as i,x as l,u as n,_ as o,a as r,o as s,p as t,v as u};
|
|
@@ -0,0 +1 @@
|
|
|
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 h}from"./type-C0VR7LD-.js";import{t as ee}from"./allowance-type-COW05L2h.js";import{Buffer as g}from"node:buffer";var _=d(()=>e([n(),c(),o(),i(),f(_),a(n(),_)])),v=l([`URL_DUPLICATE`,`STRICT_URL_LOOKUP`,`DUPLICATE_CREATE_REVIEW`,`CLASSIFICATION_INACTIVE_TAG`,`NEWS_SOURCE_URL`]),y=Object.assign(e([v,n()]),{enum:v.enum}),te=l([`REACTIVATE`,`ATTACH_INACTIVE`]),ne=r({availableOverrides:f(te),conflictType:y,slug:n(),tagId:s()}),b=r({externalId:n().nullish(),id:s(),publicationScore:s(),reason:f(n()),score:s(),slug:n().regex(/^[a-z0-9_-]+$/).max(255).nullish()}),x=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:h.nullish()}),S=r({candidate:f(x).nullish(),conflictType:y,newsCandidate:f(b).nullish(),overridePath:n().nullish(),threshold:s()}),C=r({conflictingArticleId:s(),conflictingArticleSlug:n(),conflictingArticleTitle:n(),conflictType:y}),w=r({candidateEntityId:f(t()),candidatePersonId:f(t()),conflictType:y,hint:n(),normalizedUrl:n().nullish(),url:n(),urlType:n().nullish()}),T=r({owner:m,urlId:s()}),re=r({conflictType:y,existingJoin:f(T),fragmentIgnored:o(),guidance:n(),normalizedUrl:n().nullish(),requestedOwner:m,url:n(),urlType:n()}),ie=e([re,w,S,ne,C]),ae=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()}),E=l([`source`,`record`,`disclaimer`,`voice`,`marketing`,`chained`,`structured`,`tense`,`temporal`,`factList`,`mojibake`,`markup`,`unsupported`,`legalSource`,`textContract`,`evidenceAuthority`,`internalRepetition`,`analysis`]),oe=Object.assign(e([E,n()]),{enum:E.enum}),se=r({overridable:o(),passage:n(),problem:oe,reason:n()}),D=l([`entity`,`person`,`news`,`blog`,`content`]),ce=r({deletedAt:u({offset:!0}).nullish(),id:n(),isHidden:o(),nameBrand:n().nullish(),resourceType:D,showOnSitemap:o(),slug:n()}),le=r({newUrl:n().nullish(),oldUrl:n(),targetCurrentSlug:n().nullish(),targetId:n().nullish(),targetResourceType:D.nullish()}),O=r({allowanceType:ee.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.fundraise_evidence_unsupported.website_not_own_live_site.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.logo_first_party_missing.logo_source_dead.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.clerk_m2m_unavailable.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:ce.nullish(),detail:n().optional(),details:ie.nullish(),disposition:l([`TRANSIENT`,`TERMINAL`]).nullish(),error:a(n(),n()).nullish(),existingRecordId:n().nullish(),existingRedirect:le.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(),_).optional(),proseViolation:f(se).nullish(),remaining:c().int().nullish(),requiredRole:n().nullish(),resetAt:u({offset:!0}).nullish(),resolution:ae.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()}),ue=e=>e>=400&&e<500,de=e=>e>=500&&e<600,fe=1048576;function k(e){return e.ok&&e.operationId===`searchFederated`}function A(e,t=fe){if(!k(e))return;let n=`Search exceeds the ${t}-byte transport budget; the full result was retained without trimming.`;return e.warnings.includes(n)||g.byteLength(JSON.stringify(e),`utf8`)<=t?e:{...e,warnings:[...e.warnings,n]}}var j=e([n(),c(),o()]),M=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()}),N=r({byteLength:c(),maxBytes:c(),omitted:f(n()),recovery:n()}),P=r({status:c(),title:n(),type:n()}).catchall(_.optional()).and(O),F=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:M.optional(),filters:a(n(),e([j,f(j)])).optional(),truncated:o().optional(),trimmed:f(n()).optional(),truncation:N.optional(),omitted:f(n()).default([]),ids:f(n()).default([]),counts:a(n(),c()).default({}),references:f(n()).default([]),warnings:f(n()).default([]),problem:P.optional(),data:p()}),I=5e4,L=[50,25,10,5,1],R=320,z=`data (kept the first row of each list)`,B=[{arrayLimit:1/0,rowLimit:1/0,stringLimit:24e3},{arrayLimit:1/0,rowLimit:1/0,stringLimit:1e4},...L.map(e=>({arrayLimit:e,rowLimit:1/0})),{arrayLimit:1,rowLimit:1/0,foldRows:!0}],V=1e3,pe=/^(?:bio|biography|body|content|description|evidence|fulltext|notes|snippet|summary|text)$/u,me=/(?:description|snippet|summary|text)$/u;function he(e){let t=F.safeParse(e);return t.success?t.data:null}function ge(e){let t=M.safeParse(e);return t.success&&Object.values(t.data).some(e=>e!==void 0)?t.data:void 0}function _e(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 ve(e,t=[],n={}){return{...H(e,null,{...n,warnings:t}),ok:!1}}function ye(e,t={}){let n=A(e);if(n!==void 0)return n;let r=t.maxBytes??5e4;if(G(e,r))return e;let i={byteLength:g.byteLength(JSON.stringify(e),`utf8`),maxBytes:r},a=e.httpStatus??0;if(t.write===!0&&e.ok&&a>=200&&a<300)return be(e,i,t.exactRecovery);let o=e.ok?Se:`Refetch a narrower result through read operations using ids/references or filters; do not retry the failed operation.`,s=t.exactRecovery??t.narrowerRead??o,c=_.safeParse(JSON.parse(JSON.stringify(e.data))),l=t=>{let n=c.success?J(c.data,`data`,i,t):{value:Z(i),omitted:[`data`]};return{...e,truncated:!0,truncation:X(i,n.omitted,s),warnings:[...e.warnings,...t.rowLimit===1/0?[]:[Ce(t,s)],`response truncated (caps); follow truncation.recovery for the full result`],data:n.value}},u=t.foldRows!==!1,d=e;for(let e of B.filter(e=>u||e.foldRows!==!0))if(d=l(e),G(d,i.maxBytes))return d;let f=0;for(let t=2**Math.floor(Math.log2(q(e.data)));t>=1;t/=2)G(l({arrayLimit:1,rowLimit:f+t,foldRows:u}),i.maxBytes)&&(f+=t);if(f>0)return l({arrayLimit:1,rowLimit:f,foldRows:u});let p=(e,t=`data`)=>U(e,i,s,`response truncated (caps); metadata named in truncation.omitted was removed; follow truncation.recovery for the full result`,[t]),m=p(l({arrayLimit:1,rowLimit:1,foldRows:u}),z);if(q(e.data)>0&&G(m,i.maxBytes))return m;let h=Z(i);return p({...d,truncation:X(i,[`data`],s),data:h})}function be(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,R):typeof s!=`object`||!s?a[o]=s:n===``&&o===`response`?a[o]=i(s,`response.`):o===`core`&&$(s)&&(a[o]={id:s.id});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=[`data`];for(let r of[`references`,`ids`,`warnings`]){if(G(a,t.maxBytes))return a;o.push(r),Object.assign(a,{[r]:[],omitted:[...e.omitted,...o.slice(1)],truncation:X(t,o,n)})}return G(a,t.maxBytes)?a:U({...a,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,R);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=I){let n=JSON.stringify(e);return n.length<3e4&&g.byteLength(n,`utf8`)<=t}function K(e,t,n=V){if(g.byteLength(JSON.stringify(e),`utf8`)<=n)return e;let r=Q(t),i=``,a=g.byteLength(JSON.stringify(r),`utf8`);for(let t of e){let e=g.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=xe(we(t))||e.length>V,a=r.stringLimit??R;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 Y(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 Y(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 xe(e){let t=e.toLowerCase();return pe.test(t)||me.test(t)}var Se=`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}]`,Ce=({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}`,we=e=>(e.split(`.`).at(-1)??e).replace(/\[\d+\]$/,``),$=e=>typeof e==`object`&&!!e&&!Array.isArray(e);export{ge as a,H as c,de as d,O as f,G as i,k as l,ye as n,he as o,_ as p,ve as r,_e as s,I as t,ue as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as e}from"./logging-
|
|
1
|
+
import{s as e}from"./logging-zxCFTikI.js";var t=2e3,n={userInfo:!1,cookies:!1,httpHeaders:{request:!1,response:!1},httpBodies:[],urlQueryParams:!1,graphQL:{document:!1,variables:!1},genAI:{inputs:!1,outputs:!1},databaseQueryData:!1,stackFrameVariables:!1,frameContextLines:0},r;async function i(){let t=s(process.env.SENTRY_DSN),i=s(process.env.SENTRY_RELEASE);if(t===void 0||i===void 0)return;let a=await import(`./esm-BB5k_Epe.js`);a.init({dsn:t,environment:e()[`deployment.environment.name`],release:i,dataCollection:n,beforeBreadcrumb:()=>null,beforeSend:e=>{let t=e.tags?.failure;return delete e.request,delete e.user,delete e.breadcrumbs,delete e.contexts,delete e.extra,delete e.transaction,delete e.tags,(t===`authentication_unavailable`||t===`server_start_failed`||t===`transport_error`)&&(e.tags={failure:t}),e}}),r=a}function a(e,t){return r?.captureException(e,{tags:{failure:t}})}async function o(){let e=r;r=void 0,e!==void 0&&await e.close(t)}function s(e){return e?.trim()||void 0}export{i as n,o as r,a as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{t as captureSentryException,n as initializeSentry,r as shutdownSentry}from"./sentry-
|
|
1
|
+
export{t as captureSentryException,n as initializeSentry,r as shutdownSentry}from"./sentry-DbaEE272.js";
|