@aventurevc/aventure-cli 0.8.323 → 0.8.325

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.
Files changed (76) hide show
  1. package/dist/aventure-cli/index.js +1 -1
  2. package/dist/aventure-cli/unified-operations.json +1 -1
  3. package/dist/chunks/{api-key-bearer-credential-Ccf0nJcl.js → api-key-bearer-credential-ClDt1UDV.js} +1 -1
  4. package/dist/chunks/{api-key-bearer-credential-7x0UboFl.js → api-key-bearer-credential-DcaLiQ-v.js} +1 -1
  5. package/dist/chunks/{api-key-credential-D7fRAujM.js → api-key-credential-DJv4qYo7.js} +1 -1
  6. package/dist/chunks/{api-key-credential-tTBQD0Sd.js → api-key-credential-DRDdXnmz.js} +1 -1
  7. package/dist/chunks/{api-key-credential-verification-DWLq9Brh.js → api-key-credential-verification-CyhB8DyP.js} +1 -1
  8. package/dist/chunks/{api-key-credential-verification-BuCNZFxn.js → api-key-credential-verification-DUXWKagC.js} +1 -1
  9. package/dist/chunks/{api-key-login-7kGtJH5e.js → api-key-login-YHer6RNK.js} +1 -1
  10. package/dist/chunks/auth-resolver-BiObm06b.js +1 -0
  11. package/dist/chunks/{auth-resolver-B3R6QM5_.js → auth-resolver-CKHwBK0f.js} +1 -1
  12. package/dist/chunks/{auth-status-check-XeVpPIfx.js → auth-status-check-CaFuASkg.js} +1 -1
  13. package/dist/chunks/{auth-status-check-qN4qIkHd.js → auth-status-check-CjchOBfC.js} +1 -1
  14. package/dist/chunks/{auth-status-render-DdDUhYa7.js → auth-status-render-BqszJ3-h.js} +1 -1
  15. package/dist/chunks/{aventure-cli-5O5lZe9P.js → aventure-cli-CYUQSRJm.js} +5 -5
  16. package/dist/chunks/{batch-io-mmIE7Axw.js → batch-io-C5NLz4UB.js} +1 -1
  17. package/dist/chunks/{builtin-auth-D6bed-Ya.js → builtin-auth-CTdxS7QW.js} +4 -4
  18. package/dist/chunks/{builtin-run-wait-DoS0xZG2.js → builtin-run-wait-B71qiMcO.js} +1 -1
  19. package/dist/chunks/{builtin-update-C62pgbIP.js → builtin-update-BY173jnM.js} +1 -1
  20. package/dist/chunks/{cli-help-policy-5T0mxEz6.js → cli-help-policy-D6ss_UCY.js} +1 -1
  21. package/dist/chunks/{completion-DdwJFJE1.js → completion-CzBZdX47.js} +1 -1
  22. package/dist/chunks/{contract-cxYya5S6.js → contract-CIrD_98s.js} +1 -1
  23. package/dist/chunks/{contract-parameter-CjTXDz90.js → contract-parameter-CzKOX171.js} +1 -1
  24. package/dist/chunks/{credential-redaction-aWY5YB8b.js → credential-redaction-CuCJhq7N.js} +1 -1
  25. package/dist/chunks/{credential-store-BarfO8cl.js → credential-store-D6P7huD_.js} +1 -1
  26. package/dist/chunks/{env-Ce449KU1.js → env-CaqpUeqN.js} +1 -1
  27. package/dist/chunks/{generated-option-order-vloUArJ1.js → generated-option-order-CW6-QQ6v.js} +1 -1
  28. package/dist/chunks/{help-catalog-C9U6moeX.js → help-catalog-DHivcvKU.js} +1 -1
  29. package/dist/chunks/{help-intent-3nAXE-bo.js → help-intent-DxyW9VSn.js} +1 -1
  30. package/dist/chunks/{logging-BogfikDB.js → logging-BYIL836e.js} +1 -1
  31. package/dist/chunks/{logging-Bd94NGUe.js → logging-CiZXbRK5.js} +1 -1
  32. package/dist/chunks/logout-C2dw7cmT.js +1 -0
  33. package/dist/chunks/{logout-CwgcrdZo.js → logout-CBzfRjpb.js} +1 -1
  34. package/dist/chunks/{mcp-generation-contract-CKYSJELe.js → mcp-generation-contract-Cb8xs2vs.js} +1 -1
  35. package/dist/chunks/{mcp-generation-contract-DRjj9nZH.js → mcp-generation-contract-I403fV6e.js} +1 -1
  36. package/dist/chunks/oauth-bearer-credential-eKXjBLMQ.js +1 -0
  37. package/dist/chunks/{oauth-bearer-credential-D2qCBA2b.js → oauth-bearer-credential-g17fcdkI.js} +1 -1
  38. package/dist/chunks/{oauth-credential-CL8CVDY3.js → oauth-credential-DkpAgG_p.js} +1 -1
  39. package/dist/chunks/{oauth-credential-D3IURW6K.js → oauth-credential-kSAiGqH4.js} +1 -1
  40. package/dist/chunks/{oauth-login-By4te7Kd.js → oauth-login-6IQbySSn.js} +1 -1
  41. package/dist/chunks/{oauth-login-Brdpyuqm.js → oauth-login-BXccJUSM.js} +1 -1
  42. package/dist/chunks/{openapi-call-Csf4wtXQ.js → openapi-call-CiaaYNqH.js} +2 -2
  43. package/dist/chunks/{openapi-call-oH78wgYX.js → openapi-call-hVAQEKR9.js} +1 -1
  44. package/dist/chunks/openapi-commands-Dl7iihhP.js +1 -0
  45. package/dist/chunks/{openapi-commands-CMMRlQKV.js → openapi-commands-yLuWPzSd.js} +1 -1
  46. package/dist/chunks/openapi-snapshot.json +1 -1
  47. package/dist/chunks/{operations-Doe43ET1.js → operations-CGBtjqVN.js} +2 -2
  48. package/dist/chunks/operations-catalog-BATaz04Q.js +1 -0
  49. package/dist/chunks/{operations-catalog-KVgWzvjb.js → operations-catalog-C1iAdQKu.js} +1 -1
  50. package/dist/chunks/{operations-metadata-D12vxYvD.js → operations-metadata-DX1mu3Jm.js} +1 -1
  51. package/dist/chunks/{output-fkE8k5be.js → output-BmCdJAzx.js} +2 -2
  52. package/dist/chunks/{output-CJ8MdPxU.js → output-CWrWqz_S.js} +1 -1
  53. package/dist/chunks/output-mode-BoNttclI.js +1 -0
  54. package/dist/chunks/{output-mode-Cz6_3UFR.js → output-mode-fGjpw49W.js} +1 -1
  55. package/dist/chunks/output-spill-BxmvuwHv.js +1 -0
  56. package/dist/chunks/{parse-error-hint-C7CycWBn.js → parse-error-hint-iw6Kl0KD.js} +1 -1
  57. package/dist/chunks/{payload-operand-guard-D-wmTCka.js → payload-operand-guard-DUQD7NZZ.js} +1 -1
  58. package/dist/chunks/{request-replay-D7z3yiuy.js → request-replay-ByyO0adZ.js} +1 -1
  59. package/dist/chunks/{request-replay-_7kmSBGI.js → request-replay-DOm30SVC.js} +1 -1
  60. package/dist/chunks/response-problem-BK7708gf.js +1 -0
  61. package/dist/chunks/{response-problem-6WskNLfD.js → response-problem-fMrHQriP.js} +1 -1
  62. package/dist/chunks/result-envelope-D0HcstPt.js +1 -0
  63. package/dist/chunks/{startup-auth-6DjLdT3-.js → startup-auth-C2rVAABU.js} +1 -1
  64. package/dist/chunks/{startup-auth-DDFIVEdZ.js → startup-auth-CFfDyL6s.js} +1 -1
  65. package/dist/chunks/{text-response-CBMYZ9vu.js → text-response-9mQ2fuXS.js} +1 -1
  66. package/dist/chunks/{tool-policy-DkBuVxaK.js → tool-policy-I-rWtesr.js} +1 -1
  67. package/package.json +3 -3
  68. package/dist/chunks/auth-resolver-YtaFuL6d.js +0 -1
  69. package/dist/chunks/logout-CIG9Zinq.js +0 -1
  70. package/dist/chunks/oauth-bearer-credential-Ck1OGM_j.js +0 -1
  71. package/dist/chunks/openapi-commands-EumjFIGY.js +0 -1
  72. package/dist/chunks/operations-catalog-zsZHSvjr.js +0 -1
  73. package/dist/chunks/output-mode-lSwgzLqf.js +0 -1
  74. package/dist/chunks/output-spill-C4I_O67X.js +0 -1
  75. package/dist/chunks/response-problem-D22h6pRx.js +0 -1
  76. package/dist/chunks/result-envelope-D7zeUodi.js +0 -1
@@ -1 +0,0 @@
1
- export{s as writeShowResult}from"./operations-catalog-KVgWzvjb.js";
@@ -1 +0,0 @@
1
- export{n as cliMachineOutputSelected}from"./output-mode-Cz6_3UFR.js";
@@ -1 +0,0 @@
1
- import{r as e}from"./result-envelope-D7zeUodi.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};
@@ -1 +0,0 @@
1
- export{l as retrySeconds}from"./response-problem-6WskNLfD.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 ee}from"./allowance-type-DBLLduSR.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.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: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(),unmetGateId: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};