@aventurevc/aventure-cli 0.8.381 → 0.8.383
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-Bxc3XNHl.js → api-key-bearer-credential-BB4N6Moa.js} +1 -1
- package/dist/chunks/{api-key-bearer-credential-eB_3mzjD.js → api-key-bearer-credential-DpuLoYkG.js} +1 -1
- package/dist/chunks/{api-key-credential--nYcdfDK.js → api-key-credential-CvGuNqg7.js} +1 -1
- package/dist/chunks/{api-key-credential-Dxdr5XLK.js → api-key-credential-v7YT_b1y.js} +1 -1
- package/dist/chunks/{api-key-credential-verification-DNbIwLhr.js → api-key-credential-verification-CJ5CCGAA.js} +1 -1
- package/dist/chunks/{api-key-credential-verification-CZJQVXrk.js → api-key-credential-verification-TNvdeeGh.js} +1 -1
- package/dist/chunks/{api-key-login-DrDabgeH.js → api-key-login-C70ptWkf.js} +1 -1
- package/dist/chunks/{auth-resolver-DecSzwXW.js → auth-resolver-CRpJNNB2.js} +1 -1
- package/dist/chunks/auth-resolver-DNfIzKg-.js +1 -0
- package/dist/chunks/{auth-status-check-C6pNoWKY.js → auth-status-check-W8rkgIvv.js} +1 -1
- package/dist/chunks/{auth-status-check-CUumrWh-.js → auth-status-check-oJLDd2a7.js} +1 -1
- package/dist/chunks/{auth-status-render-ClpXRkPk.js → auth-status-render-BIHZs1Fl.js} +1 -1
- package/dist/chunks/{aventure-cli-C4npYbYw.js → aventure-cli-CgIcnt5d.js} +5 -5
- package/dist/chunks/{batch-io-7hJMsmDC.js → batch-io-D3B-dxmh.js} +1 -1
- package/dist/chunks/{builtin-auth-Bx3NZMsz.js → builtin-auth-8D5ET0Cp.js} +4 -4
- package/dist/chunks/{builtin-run-wait-H8nl_hRS.js → builtin-run-wait-bdVye6Ce.js} +1 -1
- package/dist/chunks/{builtin-update-cmN6zNn_.js → builtin-update-DJT_3I5O.js} +1 -1
- package/dist/chunks/{cli-help-policy-DpJK4TlK.js → cli-help-policy-DCn_wXe1.js} +1 -1
- package/dist/chunks/{completion-8JpJDcOT.js → completion-CnY6V98Y.js} +1 -1
- package/dist/chunks/{contract-DOJ1nOWe.js → contract-SAu4Y_Kd.js} +1 -1
- package/dist/chunks/{contract-parameter-CKMCz644.js → contract-parameter-BjPYOnhE.js} +1 -1
- package/dist/chunks/{credential-redaction-LUKCeVZr.js → credential-redaction-Cl6Eny3X.js} +1 -1
- package/dist/chunks/{credential-store-Cfe8gPWB.js → credential-store-xkwn77zF.js} +1 -1
- package/dist/chunks/{env-mczLNx0e.js → env-DGAe95Xm.js} +1 -1
- package/dist/chunks/{generated-option-order-CUW9Kkar.js → generated-option-order-DYmytWyF.js} +1 -1
- package/dist/chunks/{help-catalog-D4POjaKy.js → help-catalog-PSifyPm6.js} +1 -1
- package/dist/chunks/{help-intent-y-RYgFLl.js → help-intent-GX3-dXkS.js} +1 -1
- package/dist/chunks/{logging-uOqeHYV_.js → logging-CNg4ihxv.js} +1 -1
- package/dist/chunks/{logging-DjleD1u2.js → logging-DYzy2g8p.js} +1 -1
- package/dist/chunks/{logout-DJSnTLGh.js → logout-Du693hU1.js} +1 -1
- package/dist/chunks/logout-oTmMJssP.js +1 -0
- package/dist/chunks/{mcp-generation-contract-C8g4NCW7.js → mcp-generation-contract-C3gxk0Nn.js} +1 -1
- package/dist/chunks/{mcp-generation-contract-BcvNw27m.js → mcp-generation-contract-ChnZOROF.js} +1 -1
- package/dist/chunks/{oauth-bearer-credential-ElOSxrzq.js → oauth-bearer-credential-DlyXyoGr.js} +1 -1
- package/dist/chunks/oauth-bearer-credential-DvY2H2LR.js +1 -0
- package/dist/chunks/{oauth-credential-BkcLdA2u.js → oauth-credential-CYLRKH91.js} +1 -1
- package/dist/chunks/{oauth-credential-CEkxrHAe.js → oauth-credential-D5ioBfGK.js} +1 -1
- package/dist/chunks/{oauth-login-DLOI-2SV.js → oauth-login-CJo685tl.js} +1 -1
- package/dist/chunks/{oauth-login-g7fWv_sY.js → oauth-login-D7bKxIzU.js} +1 -1
- package/dist/chunks/{openapi-call-9536MDVN.js → openapi-call-BN_q73Gl.js} +1 -1
- package/dist/chunks/{openapi-call-B8bcNTW_.js → openapi-call-DrJ9I2I1.js} +2 -2
- package/dist/chunks/openapi-commands-B2dIDk9o.js +1 -0
- package/dist/chunks/{openapi-commands-BFlTgAzO.js → openapi-commands-CHYNuWml.js} +1 -1
- package/dist/chunks/openapi-snapshot.json +1 -1
- package/dist/chunks/{operations-OGVeD_iY.js → operations-Dger9pq7.js} +2 -2
- package/dist/chunks/{operations-catalog-B6Bgn7Mf.js → operations-catalog-BV65bfY8.js} +1 -1
- package/dist/chunks/operations-catalog-BfuHbIDu.js +1 -0
- package/dist/chunks/{operations-metadata-BNjc1gvF.js → operations-metadata-CzOMH0PS.js} +1 -1
- package/dist/chunks/{output-COgo98P5.js → output-D8SD_tSW.js} +1 -1
- package/dist/chunks/{output-ByOAnesh.js → output-XyvDx9ok.js} +1 -1
- package/dist/chunks/{output-mode-BTvVMe2M.js → output-mode-DIt-t4Fu.js} +1 -1
- package/dist/chunks/output-mode-U1V43dYf.js +1 -0
- package/dist/chunks/{output-spill-CyN6xeGJ.js → output-spill-DysSe1O-.js} +1 -1
- package/dist/chunks/{parse-error-hint-DX6PL9TV.js → parse-error-hint-tpmLXK21.js} +1 -1
- package/dist/chunks/{payload-operand-guard-CMRWjXtt.js → payload-operand-guard-Cne4mq9F.js} +1 -1
- package/dist/chunks/{request-replay-4Qz5eA2T.js → request-replay-B9m7PAs2.js} +1 -1
- package/dist/chunks/{request-replay-C71zEiDg.js → request-replay-DGlQLFjp.js} +1 -1
- package/dist/chunks/response-problem-BbI2mj-6.js +1 -0
- package/dist/chunks/{response-problem-Dhi8PGOi.js → response-problem-Dr3Yy1lJ.js} +1 -1
- package/dist/chunks/result-envelope-BMqcRDpc.js +1 -0
- package/dist/chunks/{startup-auth-BHDXXovv.js → startup-auth-DIefBEfE.js} +1 -1
- package/dist/chunks/{startup-auth-CVaGGPd6.js → startup-auth-DVq1dO3o.js} +1 -1
- package/dist/chunks/{text-response-DtnDhLSw.js → text-response-DP30fs3r.js} +1 -1
- package/dist/chunks/{tool-policy-tF_fUufj.js → tool-policy-DG8pafmI.js} +1 -1
- package/package.json +3 -3
- package/dist/chunks/auth-resolver-B2zF1gjB.js +0 -1
- package/dist/chunks/logout-C2Wl1Khl.js +0 -1
- package/dist/chunks/oauth-bearer-credential-bPIVkDJm.js +0 -1
- package/dist/chunks/openapi-commands-FfekG196.js +0 -1
- package/dist/chunks/operations-catalog-CYlSXtBw.js +0 -1
- package/dist/chunks/output-mode-BntYSLOV.js +0 -1
- package/dist/chunks/response-problem-CUQJVJ1m.js +0 -1
- package/dist/chunks/result-envelope-gysspwld.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{s as writeShowResult}from"./operations-catalog-B6Bgn7Mf.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{n as cliMachineOutputSelected}from"./output-mode-BTvVMe2M.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{l as retrySeconds}from"./response-problem-Dhi8PGOi.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-DzqMxtky.js";import{t as m}from"./person-owner-BW4xz8uH.js";import{n as h,t as ee}from"./allowance-type-BVr12WiL.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`]),b=r({availableOverrides:f(te),conflictType:y,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()}),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()}),re=r({candidate:f(x).nullish(),conflictType:y,newsCandidate:f(ne).nullish(),overridePath:n().nullish(),threshold:s()}),ie=r({conflictingArticleId:s(),conflictingArticleSlug:n(),conflictingArticleTitle:n(),conflictType:y}),ae=r({candidateEntityId:f(t()),candidatePersonId:f(t()),conflictType:y,hint:n(),normalizedUrl:n().nullish(),url:n(),urlType:n().nullish()}),S=r({owner:m,urlId:s()}),C=r({conflictType:y,existingJoin:f(S),fragmentIgnored:o(),guidance:n(),normalizedUrl:n().nullish(),requestedOwner:m,url:n(),urlType:n()}),w=e([C,ae,re,b,ie]),T=l([`NAME_NOT_DECLARED`,`REGISTRY_CONTACT_MISSING`,`REGISTRY_CONTACT_NOT_STATED`,`SITE_UNREADABLE`]),E=Object.assign(e([T,n()]),{enum:T.enum}),oe=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()}),D=l([`source`,`record`,`disclaimer`,`voice`,`marketing`,`chained`,`structured`,`tense`,`temporal`,`factList`,`mojibake`,`markup`,`unsupported`,`legalSource`,`textContract`,`evidenceAuthority`,`internalRepetition`,`analysis`]),se=Object.assign(e([D,n()]),{enum:D.enum}),ce=r({overridable:o(),passage:n(),problem:se,reason:n()}),O=l([`entity`,`person`,`news`,`blog`,`content`]),le=r({deletedAt:u({offset:!0}).nullish(),id:n(),isHidden:o(),nameBrand:n().nullish(),resourceType:O,showOnSitemap:o(),slug:n()}),ue=r({newUrl:n().nullish(),oldUrl:n(),targetCurrentSlug:n().nullish(),targetId:n().nullish(),targetResourceType:O.nullish()}),k=r({allowanceType:ee.nullish(),campusProofRefusal:E.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.entity_name_casing_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:le.nullish(),coveringRunId:t().nullish(),detail:n().optional(),details:w.nullish(),disposition:l([`TRANSIENT`,`TERMINAL`]).nullish(),error:a(n(),n()).nullish(),existingRecordId:n().nullish(),existingRedirect:ue.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(),mutationNotApplied:o().nullish(),path:n().nullish(),properties:a(n(),_).optional(),proseViolation:f(ce).nullish(),remaining:c().int().nullish(),requiredRole:n().nullish(),resetAt:u({offset:!0}).nullish(),resolution:oe.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()}),de=e=>e>=400&&e<500,fe=e=>e>=500&&e<600,A=1048576;function j(e){return e.ok&&e.operationId===`searchFederated`}function M(e,t=A){if(!j(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 N=e([n(),c(),o()]),P=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()}),F=r({byteLength:c(),maxBytes:c(),omitted:f(n()),recovery:n(),spill:r({spilledTo:n().min(1),byteLength:s().nonnegative()}).optional()}),I=r({status:c(),title:n(),type:n()}).catchall(_.optional()).and(k),L=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:P.optional(),filters:a(n(),e([N,f(N)])).optional(),truncated:o().optional(),trimmed:f(n()).optional(),truncation:F.optional(),omitted:f(n()).default([]),ids:f(n()).default([]),counts:a(n(),c()).default({}),references:f(n()).default([]),warnings:f(n()).default([]),problem:I.optional(),data:p()}),R=5e4,z=320,B=`data (kept the first row of each list)`,V=[{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}],H=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=L.safeParse(e);return t.success?t.data:null}function ge(e){let t=P.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 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 ve(e,t=[],n={}){return{...U(e,null,{...n,warnings:t}),ok:!1}}function ye(e,t={}){let n=M(e);if(n!==void 0)return n;let r=t.maxBytes??5e4;if(K(e,r))return e;let i={byteLength:g.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 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?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?[]:[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 V.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}),B);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 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]=q(s,t,z):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,z);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},mutationNotApplied:e.mutationNotApplied??void 0,...e.resetAt===void 0?{}:{resetAt:e.resetAt}}}function K(e,t=R){let n=JSON.stringify(e);return n.length<3e4&&g.byteLength(n,`utf8`)<=t}function q(e,t,n=H){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 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=pe.test(i)||me.test(i)||e.length>H,o=r.stringLimit??z;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 xe(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 xe(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 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:q(n,e)}),Z=({byteLength:e,maxBytes:t})=>({truncated:!0,byteLength:e,maxBytes:t}),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}`,$=e=>typeof e==`object`&&!!e&&!Array.isArray(e);export{ge as a,U as c,fe as d,k as f,K as i,j as l,ye as n,he as o,_ as p,ve as r,_e as s,R as t,de as u};
|