@aventurevc/aventure-cli 0.8.355 → 0.8.356
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/aventure-cli/index.js +1 -1
- package/dist/aventure-cli/unified-operations.json +1 -1
- package/dist/chunks/{api-key-bearer-credential-BTe7-LGM.js → api-key-bearer-credential-C083He5o.js} +1 -1
- package/dist/chunks/{api-key-bearer-credential-BI8w0hX-.js → api-key-bearer-credential-DrHjIq_y.js} +1 -1
- package/dist/chunks/{api-key-credential-NrgurKNt.js → api-key-credential-C0dIiwpQ.js} +1 -1
- package/dist/chunks/{api-key-credential-CxYRBUmr.js → api-key-credential-LdCfwlmZ.js} +1 -1
- package/dist/chunks/{api-key-credential-verification-HE2AOOnP.js → api-key-credential-verification-Bctt_dVJ.js} +1 -1
- package/dist/chunks/{api-key-credential-verification-DvzoReC5.js → api-key-credential-verification-Di4cXd3V.js} +1 -1
- package/dist/chunks/{api-key-login-Bx8mjMMw.js → api-key-login-BsHmeKN2.js} +1 -1
- package/dist/chunks/{auth-resolver-VGA49dj0.js → auth-resolver-BqwhwJAb.js} +1 -1
- package/dist/chunks/auth-resolver-Db4L9bhB.js +1 -0
- package/dist/chunks/{auth-status-check-TwE1DIYp.js → auth-status-check-DjJhwsfN.js} +1 -1
- package/dist/chunks/{auth-status-check-Pgk2Qi3b.js → auth-status-check-ZaHPB0i5.js} +1 -1
- package/dist/chunks/{auth-status-render-Db_frkD1.js → auth-status-render-DFszvObT.js} +1 -1
- package/dist/chunks/{aventure-cli-Brx7UrIf.js → aventure-cli-qGQhq5QC.js} +5 -5
- package/dist/chunks/{batch-io-C2xw6Urm.js → batch-io-CeYeA6ee.js} +1 -1
- package/dist/chunks/{builtin-auth-CsbJsgPU.js → builtin-auth-BdJcV3rU.js} +4 -4
- package/dist/chunks/{builtin-run-wait-Ct-ENyWD.js → builtin-run-wait-Dq-prZ1d.js} +1 -1
- package/dist/chunks/{builtin-update-aIXwC3JK.js → builtin-update-CN1CkT3Q.js} +1 -1
- package/dist/chunks/{cli-help-policy-DM93xQBN.js → cli-help-policy-DTEXkYXH.js} +1 -1
- package/dist/chunks/{completion-BRhVnyNn.js → completion-CuCBKS9K.js} +1 -1
- package/dist/chunks/{contract-CL_1J0t-.js → contract-V7AlMHKi.js} +1 -1
- package/dist/chunks/{contract-parameter-D7XdHpxo.js → contract-parameter-Blfw7MO2.js} +1 -1
- package/dist/chunks/{credential-redaction-CChuC5zm.js → credential-redaction-BtlCCACb.js} +1 -1
- package/dist/chunks/{credential-store-CHAtOfzF.js → credential-store-CAamXkXE.js} +1 -1
- package/dist/chunks/detail-Bc47WSZN.js +1 -0
- package/dist/chunks/detail-bzk9j-1_.js +1 -0
- package/dist/chunks/{env-Bz8PbShj.js → env-CFzWAaru.js} +1 -1
- package/dist/chunks/{generated-option-order-DORUUsXw.js → generated-option-order-Dz6KmtFN.js} +1 -1
- package/dist/chunks/{help-catalog-UQSb-arM.js → help-catalog-B3odkC_k.js} +1 -1
- package/dist/chunks/{help-intent-Dnau0gEj.js → help-intent-Blk4hyT2.js} +1 -1
- package/dist/chunks/{logging-BzgsydvI.js → logging-CBFTXIXL.js} +1 -1
- package/dist/chunks/{logging-BADeP0Ep.js → logging-EG29wy2l.js} +1 -1
- package/dist/chunks/logout-BErkfOhl.js +1 -0
- package/dist/chunks/{logout-BImYjNQB.js → logout-Cj1SHwv9.js} +1 -1
- package/dist/chunks/{mcp-generation-contract-CWsCiv-7.js → mcp-generation-contract-Benaj3L-.js} +1 -1
- package/dist/chunks/{mcp-generation-contract-DEyhrEEM.js → mcp-generation-contract-DJ7XkCWt.js} +1 -1
- package/dist/chunks/oauth-bearer-credential-BUzY55pZ.js +1 -0
- package/dist/chunks/{oauth-bearer-credential-BhkfdgL_.js → oauth-bearer-credential-D6SvsZlr.js} +1 -1
- package/dist/chunks/{oauth-credential-HF9907Cq.js → oauth-credential-BI-8dUCp.js} +1 -1
- package/dist/chunks/{oauth-credential-BTu7N2kk.js → oauth-credential-EzxD4m3r.js} +1 -1
- package/dist/chunks/{oauth-login-fSrcRkVo.js → oauth-login-DDPJxDeu.js} +1 -1
- package/dist/chunks/{oauth-login-SlHVP1JS.js → oauth-login-DrJwZyZt.js} +1 -1
- package/dist/chunks/{openapi-call-DIBw8SgX.js → openapi-call-Jz01ShiX.js} +1 -1
- package/dist/chunks/{openapi-call-BkkEKNHI.js → openapi-call-nDQnfSQ7.js} +1 -1
- package/dist/chunks/{openapi-commands-BNBkny73.js → openapi-commands-BinL8IDT.js} +1 -1
- package/dist/chunks/openapi-commands-CwNhf1Pw.js +1 -0
- package/dist/chunks/openapi-snapshot.json +1 -1
- package/dist/chunks/{operations-CKAjkWKx.js → operations-C0WBpNQU.js} +2 -2
- package/dist/chunks/operations-catalog-C91nQpxs.js +1 -0
- package/dist/chunks/{operations-catalog-CitQOhek.js → operations-catalog-DdMZfkSC.js} +1 -1
- package/dist/chunks/{operations-metadata-CrxFdzdH.js → operations-metadata-BS-0vMU7.js} +1 -1
- package/dist/chunks/{output-CTruTSkq.js → output-1CWHSvPS.js} +1 -1
- package/dist/chunks/{output-BzdyHrAh.js → output-LZ3AU2J0.js} +1 -1
- package/dist/chunks/output-mode-BcS0To0s.js +1 -0
- package/dist/chunks/{output-mode-XU_xWgzA.js → output-mode-CZl0ZlaH.js} +1 -1
- package/dist/chunks/{output-spill-ALt5qnmM.js → output-spill-Cvb6jThF.js} +1 -1
- package/dist/chunks/{parse-error-hint-vUNg5HuW.js → parse-error-hint-4d8_fAxn.js} +1 -1
- package/dist/chunks/{payload-operand-guard-CsoJogzz.js → payload-operand-guard-xPlEJoX9.js} +1 -1
- package/dist/chunks/{request-replay-CSRcGoLC.js → request-replay-6F571j6k.js} +1 -1
- package/dist/chunks/{request-replay-BjPCCZkY.js → request-replay-B2u_2cTi.js} +1 -1
- package/dist/chunks/{response-problem-Dc0gQEpE.js → response-problem-Bme4mgy3.js} +1 -1
- package/dist/chunks/response-problem-D5xCnJlT.js +1 -0
- package/dist/chunks/result-envelope-DnsIr3gF.js +1 -0
- package/dist/chunks/{startup-auth-B27uWvJj.js → startup-auth-BmBtrGgc.js} +1 -1
- package/dist/chunks/{startup-auth-DLq94KsA.js → startup-auth-Gmt4-LsU.js} +1 -1
- package/dist/chunks/{text-response-KgVdCQU4.js → text-response-9gH00EmT.js} +1 -1
- package/dist/chunks/{tool-policy-CuHk01pW.js → tool-policy-Bbmx_QTI.js} +1 -1
- package/package.json +3 -3
- package/dist/chunks/auth-resolver-DpGC0ocO.js +0 -1
- package/dist/chunks/detail-C5EKE3OV.js +0 -1
- package/dist/chunks/detail-Ok42wzJI.js +0 -1
- package/dist/chunks/logout-CBqK_i0s.js +0 -1
- package/dist/chunks/oauth-bearer-credential-B420Mhrd.js +0 -1
- package/dist/chunks/openapi-commands-mmUy_E8v.js +0 -1
- package/dist/chunks/operations-catalog-Bt7i3vBg.js +0 -1
- package/dist/chunks/output-mode-DNzpyshX.js +0 -1
- package/dist/chunks/response-problem-BIg_jtDN.js +0 -1
- package/dist/chunks/result-envelope-YindKZt1.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{s as writeShowResult}from"./operations-catalog-CitQOhek.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{n as cliMachineOutputSelected}from"./output-mode-XU_xWgzA.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{l as retrySeconds}from"./response-problem-Dc0gQEpE.js";
|
|
@@ -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{n as h,t as g}from"./allowance-type-DBLLduSR.js";import{Buffer as _}from"node:buffer";var v=d(()=>e([n(),c(),o(),i(),f(v),a(n(),v)])),y=l([`URL_DUPLICATE`,`STRICT_URL_LOOKUP`,`DUPLICATE_CREATE_REVIEW`,`CLASSIFICATION_INACTIVE_TAG`,`NEWS_SOURCE_URL`]),b=Object.assign(e([y,n()]),{enum:y.enum}),ee=l([`REACTIVATE`,`ATTACH_INACTIVE`]),te=r({availableOverrides:f(ee),conflictType:b,slug:n(),tagId:s()}),ne=r({externalId:n().nullish(),id:s(),publicationScore:s(),reason:f(n()),score:s(),slug:n().regex(/^[a-z0-9_-]+$/).max(255).nullish()}),re=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()}),ie=r({candidate:f(re).nullish(),conflictType:b,newsCandidate:f(ne).nullish(),overridePath:n().nullish(),threshold:s()}),ae=r({conflictingArticleId:s(),conflictingArticleSlug:n(),conflictingArticleTitle:n(),conflictType:b}),x=r({candidateEntityId:f(t()),candidatePersonId:f(t()),conflictType:b,hint:n(),normalizedUrl:n().nullish(),url:n(),urlType:n().nullish()}),oe=r({owner:m,urlId:s()}),S=r({conflictType:b,existingJoin:f(oe),fragmentIgnored:o(),guidance:n(),normalizedUrl:n().nullish(),requestedOwner:m,url:n(),urlType:n()}),C=e([S,x,ie,te,ae]),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`,`markup`,`unsupported`,`legalSource`,`textContract`,`evidenceAuthority`,`internalRepetition`,`analysis`]),T=Object.assign(e([w,n()]),{enum:w.enum}),E=r({overridable:o(),passage:n(),problem:T,reason:n()}),D=l([`entity`,`person`,`news`,`blog`,`content`]),O=r({deletedAt:u({offset:!0}).nullish(),id:n(),isHidden:o(),nameBrand:n().nullish(),resourceType:D,showOnSitemap:o(),slug:n()}),ce=r({newUrl:n().nullish(),oldUrl:n(),targetCurrentSlug:n().nullish(),targetId:n().nullish(),targetResourceType:D.nullish()}),k=r({allowanceType:g.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.billing_plan_change_required.account_exists.origin_detail_capacity.origin_detail_shutdown.query_deadline_shed.primary_read_saturated.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.clerk_oauth_unavailable.researchly_usage_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:O.nullish(),detail:n().optional(),details:C.nullish(),disposition:l([`TRANSIENT`,`TERMINAL`]).nullish(),error:a(n(),n()).nullish(),existingRecordId:n().nullish(),existingRedirect:ce.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(),v).optional(),proseViolation:f(E).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(),unmetGateId:f(n()).nullish(),used:c().int().nullish(),validParameters:f(n()).nullish(),value:n().nullish(),windowSeconds:c().int().nullish()}),le=e=>e>=400&&e<500,ue=e=>e>=500&&e<600,de=1048576;function A(e){return e.ok&&e.operationId===`searchFederated`}function j(e,t=de){if(!A(e))return;let n=`Search exceeds the ${t}-byte transport budget; the full result was retained without trimming.`;return e.warnings.includes(n)||_.byteLength(JSON.stringify(e),`utf8`)<=t?e:{...e,warnings:[...e.warnings,n]}}var M=e([n(),c(),o()]),N=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()}),P=r({byteLength:c(),maxBytes:c(),omitted:f(n()),recovery:n(),spill:r({spilledTo:n().min(1),byteLength:s().nonnegative()}).optional()}),F=r({status:c(),title:n(),type:n()}).catchall(v.optional()).and(k),I=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:N.optional(),filters:a(n(),e([M,f(M)])).optional(),truncated:o().optional(),trimmed:f(n()).optional(),truncation:P.optional(),omitted:f(n()).default([]),ids:f(n()).default([]),counts:a(n(),c()).default({}),references:f(n()).default([]),warnings:f(n()).default([]),problem:F.optional(),data:p()}),L=5e4,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},...[50,25,10,5,1].map(e=>({arrayLimit:e,rowLimit:1/0})),{arrayLimit:1,rowLimit:1/0,foldRows:!0}],V=1e3,H=/^(?:bio|biography|body|content|description|evidence|fulltext|notes|snippet|summary|text)$/u,fe=/(?:description|snippet|summary|text)$/u;function pe(e){let t=I.safeParse(e);return t.success?t.data:null}function me(e){let t=N.safeParse(e);return t.success&&Object.values(t.data).some(e=>e!==void 0)?t.data:void 0}function he(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 U(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 ge(e,t=[],n={}){return{...U(e,null,{...n,warnings:t}),ok:!1}}function _e(e,t={}){let n=j(e);if(n!==void 0)return n;let r=t.maxBytes??5e4;if(K(e,r))return e;let i={byteLength:_.byteLength(JSON.stringify(e),`utf8`),maxBytes:r,spill:t.spill??e.truncation?.spill},a=e.httpStatus??0;if(t.write===!0&&e.ok&&a>=200&&a<300)return ve(e,i,t.exactRecovery);let o=e.ok?be:`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=v.safeParse(JSON.parse(JSON.stringify(e.data))),l=t=>{let n=c.success?Y(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?[]:[xe(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),K(d,i.maxBytes))return d;let f=0;for(let t=2**Math.floor(Math.log2(J(e.data)));t>=1;t/=2)K(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`)=>W(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(J(e.data)>0&&K(m,i.maxBytes))return m;let h=Z(i);return p({...d,truncation:X(i,[`data`],s),data:h})}function ve(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]=q(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(K(a,t.maxBytes))return a;o.push(r),Object.assign(a,{[r]:[],omitted:[...e.omitted,...o.slice(1)],truncation:X(t,o,n)})}return K(a,t.maxBytes)?a:W({...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 W(e,t,n,r,i=[`data`]){if(K(e,t.maxBytes))return e;let a=e.warnings.slice(0,-1),o=e;if(o.problem!==void 0){let e=G(o.problem);if(JSON.stringify(e).length<JSON.stringify(o.problem).length&&(i.push(`problem`),o={...o,problem:e,truncation:X(t,i,n)},K(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]},K(o,t.maxBytes))return o;let c=e=>e===void 0?void 0:q(e,t),l={summary:q(o.summary,t),operationId:c(o.operationId),method:c(o.method),endpoint:c(o.endpoint),warnings:o.warnings.map(e=>q(e,t)),problem:o.problem&&G(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)},K(o,t.maxBytes))return o;i.push(`warnings`),o.page!==void 0&&i.push(`page`);let d=q(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 G(e,t){let n=e=>t===void 0?e:q(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 K(e,t=L){let n=JSON.stringify(e);return n.length<3e4&&_.byteLength(n,`utf8`)<=t}function q(e,t,n=V){if(_.byteLength(JSON.stringify(e),`utf8`)<=n)return e;let r=Q(t),i=``,a=_.byteLength(JSON.stringify(r),`utf8`);for(let t of e){let e=_.byteLength(JSON.stringify(t),`utf8`)-2;if(a+e>n)break;i+=t,a+=e}return`${i.trimEnd()}${r}`}function J(e){return Array.isArray(e)?e.length:$(e)?Math.max(0,...Object.values(e).map(J)):0}function Y(e,t,n,r){if(typeof e==`string`){let i=(t.split(`.`).at(-1)??t).replace(/\[\d+\]$/,``).toLowerCase(),a=H.test(i)||fe.test(i)||e.length>V,o=r.stringLimit??R;return!a||e.length<=o?{value:e,omitted:[]}:{value:`${e.slice(0,o).trimEnd()}${Q(n)}`,omitted:[t]}}if(typeof e!=`object`||!e)return{value:e,omitted:[]};if(Array.isArray(e))return ye(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=Y(c,`${t}.${s}`,n,l);i[s]=u.value,a.push(...u.omitted)}return{value:i,omitted:a}}function ye(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)=>Y(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}}var be=`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:q(n,e)}),Z=({byteLength:e,maxBytes:t})=>({truncated:!0,byteLength:e,maxBytes:t}),Q=e=>`\n[truncated byteLength=${e.byteLength} maxBytes=${e.maxBytes}]`,xe=({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}`,$=e=>typeof e==`object`&&!!e&&!Array.isArray(e);export{me as a,U as c,ue as d,k as f,K as i,A as l,_e as n,pe as o,v as p,ge as r,he as s,L as t,le as u};
|