@aventurevc/mcp-server 0.8.136 → 0.8.139
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-CL-sHf0N.js → cli-help-policy-DRmLdjkv.js} +1 -1
- package/dist/chunks/contract-CyZFpEKp.js +22 -0
- package/dist/chunks/{dist-1DJFVcsM.js → dist-CWRAVYI2.js} +2 -2
- package/dist/chunks/mcp-generation-contract-BFzpNdY_.js +1 -0
- package/dist/chunks/provider-catalog-CpLFNzTb.js +1 -0
- package/dist/chunks/{tool-policy-DmFqIb8Y.js → tool-policy-Dhw9BMIT.js} +1 -1
- package/dist/mcp-server/index.js +1 -1
- package/package.json +3 -3
- package/dist/chunks/contract-CscoE6Rw.js +0 -22
- package/dist/chunks/mcp-generation-contract-ONtt9CBX.js +0 -1
- package/dist/chunks/provider-catalog-Vn-OYk63.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{w as e,y as t}from"./person-owner-BJgNYLKX.js";import{Rr as n}from"./dist-CWRAVYI2.js";var r=t({clerkPublishableKey:e().nullish(),oauthClient:n.nullish()});export{r as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"./commander-BB7CDPLs.js";import{C as t,S as n,T as r,g as i,h as a,l as o,o as s,u as c,v as l,w as u,y as d}from"./person-owner-BJgNYLKX.js";import{r as f,s as p,u as m}from"./result-envelope-BE0edu_S.js";import{basename as h,extname as ee}from"node:path";import{AsyncLocalStorage as te}from"node:async_hooks";import{readFile as ne}from"node:fs/promises";function g(e){return new URL(e,`https://placeholder.invalid`).pathname}function _(e,t){let n=e.split(`/`).filter(Boolean),r=t.split(`/`).filter(Boolean);return n.length!==r.length||r.some(re)?!1:n.every((e,t)=>v(e)||e===r[t])}function v(e){let t=e.slice(1,-1);return e.startsWith(`{`)&&e.endsWith(`}`)&&t.length>0&&!t.includes(`/`)&&!t.includes(`{`)&&!t.includes(`}`)}function re(e){if(v(e))return!0;let t=e.toLowerCase(),n=e.slice(3,-3);return t.startsWith(`%7b`)&&t.endsWith(`%7d`)&&n.length>0&&!n.includes(`/`)&&!n.includes(`%`)&&!n.includes(`{`)&&!n.includes(`}`)}var y=new te,b=()=>y.getStore()?.requestId,ie=()=>y.getStore()?.userBearerToken;function x(e,t){return y.run({...y.getStore(),requestId:e},t)}function S(e,t){return y.run({...y.getStore(),userBearerToken:e},t)}var C=3e4;async function w(e,t,n,r){let i=E(T(e.requestBody?.content),n);if(!i.ok||i.data===null)return f(i.summary,i.warnings);let a=i.data;return e.requestBody?.required===!0&&t===void 0&&a?.kind!==`multipart`?f(`Request body is required.`):a?.kind===`multipart`?await se(e.requestBody?.required===!0,a.schema,t):p(`Request body prepared`,{body:t,contentType:a?.contentType??r})}function ae(e){if(typeof e!=`string`)return p(`Request body unchanged`,e);let t=e.trimStart().slice(0,1);if(t!==`{`&&t!==`[`)return p(`Request body unchanged`,e);try{let t=m.safeParse(JSON.parse(e));if(!t.success)throw t.error;return p(`Request body parsed`,t.data)}catch(e){return f(`Request body string must be valid JSON: ${e.message}`)}}function oe(e,t){let n=e?.schema;if(n===void 0)return!1;let r=n.$ref?.startsWith(`#/components/schemas/`)===!0?n.$ref.slice(21):void 0,i=n.type??(r===void 0?void 0:t[r]?.type);return Array.isArray(i)?i.includes(`array`):i===`array`}function T(e){let t=Object.entries(e??{});return[...t.flatMap(e=>I(e[0])?[D(e,`json`)]:[]),...t.flatMap(e=>L(e[0])?[D(e,`multipart`)]:[])]}function E(e,t){if(t===void 0)return p(`Default request content selected`,e[0]);let n=R(t),r=e.find(e=>R(e.contentType)===n);return r===void 0?f(`Request Content-Type '${t}' is not supported. Supported choices: ${e.map(({contentType:e})=>e).join(`, `)||`none`}.`):p(`Explicit request content selected`,r)}function D(e,t){return{contentType:e[0],kind:t,schema:e[1].schema}}async function se(e,t,n){if(!e&&n==null)return p(`Optional multipart body omitted`,{});let r=ce(n);if(!r.ok||r.data===null)return f(r.summary,r.warnings);let i=new FormData;for(let e of le(t)){let t=r.data[e.name];if(t==null){if(e.required)return f(`Multipart body requires '${e.name}'.`);continue}if(Array.isArray(t)&&t.length<(e.schema.minItems??0))return f(`Multipart part '${e.name}' requires more entries.`);if(Array.isArray(t)&&t.length>(e.schema.maxItems??2**53-1))return f(`Multipart part '${e.name}' has too many entries.`);if(O(e.schema)||k(e.schema)){let n=k(e.schema)?t:[t];if(!Array.isArray(n)||n.some(e=>typeof e!=`string`))return f(`Multipart part '${e.name}' must contain file paths or URLs.`);for(let t of n){if(typeof t!=`string`)continue;let n=await j(t);if(!n.ok||n.data===null)return f(n.summary,n.warnings);i.append(e.name,n.data.blob,n.data.filename)}}else if(ue(e.schema,t)){let n=JSON.stringify(t);i.append(e.name,new Blob([n],{type:`application/json`}),`${e.name}.json`)}else{let n=A(i,e.name,t);if(!n.ok)return n}}return p(`Multipart body prepared`,{body:i})}function ce(e){if(typeof e==`object`&&e&&!Array.isArray(e)){let t=Object.fromEntries(Object.entries(e));return p(`Multipart input parsed`,t)}return f(`Multipart request body must be a JSON object keyed by form part name.`)}function le(e){let t=new Set(e?.required??[]);return Object.entries(e?.properties??{}).map(([e,n])=>({name:e,schema:n,required:t.has(e)}))}function O(e){return e.type===`string`&&e.format===`binary`}function k(e){return e.type===`array`&&e.items!==void 0&&O(e.items)}function ue(e,t){return typeof t!=`object`||!t||Array.isArray(t)?!1:e.type===`object`||typeof e.$ref==`string`&&e.$ref.length>0}function A(e,t,n){if(Array.isArray(n)){for(let r of n){let n=A(e,t,r);if(!n.ok)return n}return p(`Multipart scalar array appended`,null)}return typeof n==`object`?f(`Multipart part '${t}' must be scalar.`):(e.append(t,String(n)),p(`Multipart scalar appended`,null))}async function j(e){return P(e)?await M(e):b()===void 0?await N(e):f(`MCP callers cannot upload local files: pass an http(s) URL as the multipart part, or send media by sourceUrl in a JSON body. Local file paths are CLI-only.`)}async function M(e){let t=new AbortController,n=setTimeout(()=>t.abort(),C);try{let n=new URL(e),r=await fetch(e,{signal:t.signal});if(!r.ok)return f(`Failed to fetch media URL: ${r.status} ${r.statusText}`);let i=r.headers.get(`content-type`)?.split(`;`)[0]?.trim()??F(n.pathname)??``,a=new Blob([await r.arrayBuffer()],{type:i});return p(`URL media fetched`,{blob:a,filename:h(n.pathname)||`upload`})}catch(e){return t.signal.aborted?f(`Failed to fetch media URL: timed out after ${C}ms.`):f(`Failed to fetch media URL: ${e.message}`)}finally{clearTimeout(n)}}async function N(e){try{let t=F(e)??``,n=await ne(e);return p(`File media read`,{blob:new Blob([n],{type:t}),filename:h(e)})}catch(t){return f(`Failed to read media file '${e}': ${t.message}`)}}function P(e){return e.startsWith(`http://`)||e.startsWith(`https://`)}function F(e){return z[ee(e).toLowerCase()]}function I(e){let t=R(e);return t===`*/*`||t===`application/json`||t.endsWith(`+json`)}function L(e){return R(e)===`multipart/form-data`}var R=e=>e.split(`;`)[0]?.trim().toLowerCase()??``,z={".gif":`image/gif`,".heic":`image/heic`,".heif":`image/heif`,".jpeg":`image/jpeg`,".jpg":`image/jpeg`,".png":`image/png`,".webp":`image/webp`};Object.freeze({Address:{modulePath:`address/address`,schemaName:`AddressSchema`},AddressAssociation:{modulePath:`address/association`,schemaName:`AddressAssociationSchema`},AddressAssociationRole:{modulePath:`address/association-role`,schemaName:`AddressAssociationRoleSchema`},AddressCity:{modulePath:`address/city`,schemaName:`AddressCitySchema`},AddressCountry:{modulePath:`address/country`,schemaName:`AddressCountrySchema`},AddressState:{modulePath:`address/state`,schemaName:`AddressStateSchema`},AgentHelp:{modulePath:`agent/help`,schemaName:`AgentHelpSchema`},AgentHelpQuestion:{modulePath:`agent/help-question`,schemaName:`AgentHelpQuestionSchema`},ApiKey:{modulePath:`api/key`,schemaName:`ApiKeySchema`},AuthClient:{modulePath:`auth/client`,schemaName:`AuthClientSchema`},AuthOperation:{modulePath:`auth/operation`,schemaName:`AuthOperationSchema`},AuthOperationAccess:{modulePath:`auth/operation-access`,schemaName:`AuthOperationAccessSchema`},AuthOperationAuthorization:{modulePath:`auth/operation-authorization`,schemaName:`AuthOperationAuthorizationSchema`},AuthOperationFilter:{modulePath:`auth/operation-filter`,schemaName:`AuthOperationFilterSchema`},AuthOperationMethod:{modulePath:`auth/operation-method`,schemaName:`AuthOperationMethodSchema`},AuthPermissionGrant:{modulePath:`auth/permission-grant`,schemaName:`AuthPermissionGrantSchema`},AuthProviderCatalog:{modulePath:`auth/provider-catalog`,schemaName:`AuthProviderCatalogSchema`},BillingAdditionalUsage:{modulePath:`billing/additional-usage`,schemaName:`BillingAdditionalUsageSchema`},BillingAdditionalUsageFundingType:{modulePath:`billing/additional-usage-funding-type`,schemaName:`BillingAdditionalUsageFundingTypeSchema`},BillingAdditionalUsageMeter:{modulePath:`billing/additional-usage-meter`,schemaName:`BillingAdditionalUsageMeterSchema`},BillingAdditionalUsageType:{modulePath:`billing/additional-usage-type`,schemaName:`BillingAdditionalUsageTypeSchema`},BillingCatalog:{modulePath:`billing/catalog`,schemaName:`BillingCatalogSchema`},BillingCatalogAdditionalUsage:{modulePath:`billing/catalog-additional-usage`,schemaName:`BillingCatalogAdditionalUsageSchema`},BillingCatalogAllowance:{modulePath:`billing/catalog-allowance`,schemaName:`BillingCatalogAllowanceSchema`},BillingCatalogCreditPack:{modulePath:`billing/catalog-credit-pack`,schemaName:`BillingCatalogCreditPackSchema`},BillingCatalogPlan:{modulePath:`billing/catalog-plan`,schemaName:`BillingCatalogPlanSchema`},BillingCatalogTier:{modulePath:`billing/catalog-tier`,schemaName:`BillingCatalogTierSchema`},BillingCheckout:{modulePath:`billing/checkout`,schemaName:`BillingCheckoutSchema`},BillingCheckoutMutation:{modulePath:`billing/checkout-mutation`,schemaName:`BillingCheckoutMutationSchema`},BillingCheckoutUiMode:{modulePath:`billing/checkout-ui-mode`,schemaName:`BillingCheckoutUiModeSchema`},BillingCreditPackType:{modulePath:`billing/credit-pack-type`,schemaName:`BillingCreditPackTypeSchema`},BillingPaymentMethod:{modulePath:`billing/payment-method`,schemaName:`BillingPaymentMethodSchema`},BillingPlanChange:{modulePath:`billing/plan-change`,schemaName:`BillingPlanChangeSchema`},BillingPlanChangeMutation:{modulePath:`billing/plan-change-mutation`,schemaName:`BillingPlanChangeMutationSchema`},BillingPlanChangePreview:{modulePath:`billing/plan-change-preview`,schemaName:`BillingPlanChangePreviewSchema`},BillingPlanType:{modulePath:`billing/plan-type`,schemaName:`BillingPlanTypeSchema`},BillingPortal:{modulePath:`billing/portal`,schemaName:`BillingPortalSchema`},BillingRecurringPrice:{modulePath:`billing/recurring-price`,schemaName:`BillingRecurringPriceSchema`},BillingSubscription:{modulePath:`billing/subscription`,schemaName:`BillingSubscriptionSchema`},BillingSubscriptionMutation:{modulePath:`billing/subscription-mutation`,schemaName:`BillingSubscriptionMutationSchema`},BlogPost:{modulePath:`blog/post`,schemaName:`BlogPostSchema`},BlogPostType:{modulePath:`blog/post-type`,schemaName:`BlogPostTypeSchema`},ChartBucket:{modulePath:`chart/bucket`,schemaName:`ChartBucketSchema`},Classification:{modulePath:`classification/classification`,schemaName:`ClassificationSchema`},ClassificationCatalog:{modulePath:`classification/catalog`,schemaName:`ClassificationCatalogSchema`},ClassificationCatalogBucket:{modulePath:`classification/catalog-bucket`,schemaName:`ClassificationCatalogBucketSchema`},ClassificationCatalogCategory:{modulePath:`classification/catalog-category`,schemaName:`ClassificationCatalogCategorySchema`},ClassificationInactiveTagDetails:{modulePath:`classification/inactive-tag-details`,schemaName:`ClassificationInactiveTagDetailsSchema`},CliAuthorization:{modulePath:`cli/authorization`,schemaName:`CliAuthorizationSchema`},CliAuthorizationClientPlatform:{modulePath:`cli/authorization-client-platform`,schemaName:`CliAuthorizationClientPlatformSchema`},CliAuthorizationDelivery:{modulePath:`cli/authorization-delivery`,schemaName:`CliAuthorizationDeliverySchema`},CliAuthorizationEncryptionAlgorithm:{modulePath:`cli/authorization-encryption-algorithm`,schemaName:`CliAuthorizationEncryptionAlgorithmSchema`},CliAuthorizationMutation:{modulePath:`cli/authorization-mutation`,schemaName:`CliAuthorizationMutationSchema`},CliAuthorizationPoll:{modulePath:`cli/authorization-poll`,schemaName:`CliAuthorizationPollSchema`},CliAuthorizationStart:{modulePath:`cli/authorization-start`,schemaName:`CliAuthorizationStartSchema`},CliAuthorizationStatus:{modulePath:`cli/authorization-status`,schemaName:`CliAuthorizationStatusSchema`},CliAuthorizationTerminalReason:{modulePath:`cli/authorization-terminal-reason`,schemaName:`CliAuthorizationTerminalReasonSchema`},Confidence:{modulePath:`confidence/confidence`,schemaName:`ConfidenceSchema`},ContentCompliance:{modulePath:`content/compliance`,schemaName:`ContentComplianceSchema`},ContentEmbeddingMatch:{modulePath:`content/embedding-match`,schemaName:`ContentEmbeddingMatchSchema`},ContentSourceType:{modulePath:`content/source-type`,schemaName:`ContentSourceTypeSchema`},CurrentSlugOwner:{modulePath:`redirect/current-slug-owner`,schemaName:`CurrentSlugOwnerSchema`},CursorSliceSharedSearchList:{modulePath:`cursor/slice-shared-search-list`,schemaName:`CursorSliceSharedSearchListSchema`},DatasourceDataSourceType:{modulePath:`datasource/data-source-type`,schemaName:`DatasourceDataSourceTypeSchema`},DatasourceProvenanceActorType:{modulePath:`datasource/provenance-actor-type`,schemaName:`DatasourceProvenanceActorTypeSchema`},DatasourceSourceMetadata:{modulePath:`datasource/source-metadata`,schemaName:`DatasourceSourceMetadataSchema`},DateRange:{modulePath:`date/range`,schemaName:`DateRangeSchema`},DecimalRange:{modulePath:`decimal/range`,schemaName:`DecimalRangeSchema`},DomainConflictDetails:{modulePath:`domain/conflict-details`,schemaName:`DomainConflictDetailsSchema`},DuplicateCreateReview:{modulePath:`duplicate/create-review`,schemaName:`DuplicateCreateReviewSchema`},EmployeeCount:{modulePath:`employee/count`,schemaName:`EmployeeCountSchema`},Enrichment:{modulePath:`enrichment/enrichment`,schemaName:`EnrichmentSchema`},EnrichmentBatch:{modulePath:`enrichment/batch`,schemaName:`EnrichmentBatchSchema`},EnrichmentMode:{modulePath:`enrichment/mode`,schemaName:`EnrichmentModeSchema`},EnrichmentPrompt:{modulePath:`enrichment/prompt`,schemaName:`EnrichmentPromptSchema`},EnrichmentRefusalType:{modulePath:`enrichment/refusal-type`,schemaName:`EnrichmentRefusalTypeSchema`},Entity:{modulePath:`entity/entity`,schemaName:`EntitySchema`},EntityAcceleratorParticipation:{modulePath:`entity/accelerator-participation`,schemaName:`EntityAcceleratorParticipationSchema`},EntityAcquisition:{modulePath:`entity/acquisition`,schemaName:`EntityAcquisitionSchema`},EntityAcquisitionEvidence:{modulePath:`entity/acquisition-evidence`,schemaName:`EntityAcquisitionEvidenceSchema`},EntityAcquisitionRole:{modulePath:`entity/acquisition-role`,schemaName:`EntityAcquisitionRoleSchema`},EntityAcquisitionStage:{modulePath:`entity/acquisition-stage`,schemaName:`EntityAcquisitionStageSchema`},EntityAliasType:{modulePath:`entity/alias-type`,schemaName:`EntityAliasTypeSchema`},EntityBrand:{modulePath:`entity/brand`,schemaName:`EntityBrandSchema`},EntityClassification:{modulePath:`entity/classification`,schemaName:`EntityClassificationSchema`},EntityClassificationInactiveTagOverride:{modulePath:`entity/classification-inactive-tag-override`,schemaName:`EntityClassificationInactiveTagOverrideSchema`},EntityClassificationSuggestion:{modulePath:`entity/classification-suggestion`,schemaName:`EntityClassificationSuggestionSchema`},EntityComparisonSignals:{modulePath:`entity/comparison-signals`,schemaName:`EntityComparisonSignalsSchema`},EntityDetail:{modulePath:`entity/detail`,schemaName:`EntityDetailSchema`},EntityDetailBatch:{modulePath:`entity/detail-batch`,schemaName:`EntityDetailBatchSchema`},EntityEnrichment:{modulePath:`entity/enrichment`,schemaName:`EntityEnrichmentSchema`},EntityFilter:{modulePath:`entity/filter`,schemaName:`EntityFilterSchema`},EntityFilterChoice:{modulePath:`entity/filter-choice`,schemaName:`EntityFilterChoiceSchema`},EntityFilterControlType:{modulePath:`entity/filter-control-type`,schemaName:`EntityFilterControlTypeSchema`},EntityFilterEntry:{modulePath:`entity/filter-entry`,schemaName:`EntityFilterEntrySchema`},EntityFilterHeadquartersCountry:{modulePath:`entity/filter-headquarters-country`,schemaName:`EntityFilterHeadquartersCountrySchema`},EntityFilterHeadquartersOptionSet:{modulePath:`entity/filter-headquarters-option-set`,schemaName:`EntityFilterHeadquartersOptionSetSchema`},EntityFilterHeadquartersStateCity:{modulePath:`entity/filter-headquarters-state-city`,schemaName:`EntityFilterHeadquartersStateCitySchema`},EntityFilterLogoOption:{modulePath:`entity/filter-logo-option`,schemaName:`EntityFilterLogoOptionSchema`},EntityFilterMeta:{modulePath:`entity/filter-meta`,schemaName:`EntityFilterMetaSchema`},EntityFilterOptionMode:{modulePath:`entity/filter-option-mode`,schemaName:`EntityFilterOptionModeSchema`},EntityFilterOptionSet:{modulePath:`entity/filter-option-set`,schemaName:`EntityFilterOptionSetSchema`},EntityFilterOptionSetMeta:{modulePath:`entity/filter-option-set-meta`,schemaName:`EntityFilterOptionSetMetaSchema`},EntityFilterRefinedFilters:{modulePath:`entity/filter-refined-filters`,schemaName:`EntityFilterRefinedFiltersSchema`},EntityFilterScope:{modulePath:`entity/filter-scope`,schemaName:`EntityFilterScopeSchema`},EntityFilterSearch:{modulePath:`entity/filter-search`,schemaName:`EntityFilterSearchSchema`},EntityFilterSearchResult:{modulePath:`entity/filter-search-result`,schemaName:`EntityFilterSearchResultSchema`},EntityFilterSortable:{modulePath:`entity/filter-sortable`,schemaName:`EntityFilterSortableSchema`},EntityFilterUiMeta:{modulePath:`entity/filter-ui-meta`,schemaName:`EntityFilterUiMetaSchema`},EntityFundingDetail:{modulePath:`entity/funding-detail`,schemaName:`EntityFundingDetailSchema`},EntityFundraise:{modulePath:`entity/fundraise`,schemaName:`EntityFundraiseSchema`},EntityFundraiseFilterCriteria:{modulePath:`entity/fundraise-filter-criteria`,schemaName:`EntityFundraiseFilterCriteriaSchema`},EntityFundraiseInvestorActivity:{modulePath:`entity/fundraise-investor-activity`,schemaName:`EntityFundraiseInvestorActivitySchema`},EntityFundraiseInvestorJoin:{modulePath:`entity/fundraise-investor-join`,schemaName:`EntityFundraiseInvestorJoinSchema`},EntityFundraiseTransaction:{modulePath:`entity/fundraise-transaction`,schemaName:`EntityFundraiseTransactionSchema`},EntityFundraiseTransactionEntity:{modulePath:`entity/fundraise-transaction-entity`,schemaName:`EntityFundraiseTransactionEntitySchema`},EntityImage:{modulePath:`entity/image`,schemaName:`EntityImageSchema`},EntityInvestorParticipation:{modulePath:`entity/investor-participation`,schemaName:`EntityInvestorParticipationSchema`},EntityList:{modulePath:`entity/list`,schemaName:`EntityListSchema`},EntityListFilter:{modulePath:`entity/list-filter`,schemaName:`EntityListFilterSchema`},EntityListQualityGate:{modulePath:`entity/list-quality-gate`,schemaName:`EntityListQualityGateSchema`},EntityListResearch:{modulePath:`entity/list-research`,schemaName:`EntityListResearchSchema`},EntityLogoType:{modulePath:`entity/logo-type`,schemaName:`EntityLogoTypeSchema`},EntityNameAliasEntityAliasType:{modulePath:`entity/name-alias-entity-alias-type`,schemaName:`EntityNameAliasEntityAliasTypeSchema`},EntityNameAliasPersonAliasType:{modulePath:`entity/name-alias-person-alias-type`,schemaName:`EntityNameAliasPersonAliasTypeSchema`},EntityNaturalSearch:{modulePath:`entity/natural-search`,schemaName:`EntityNaturalSearchSchema`},EntityOperatingStatus:{modulePath:`entity/operating-status`,schemaName:`EntityOperatingStatusSchema`},EntityPersonAssociation:{modulePath:`entity/person-association`,schemaName:`EntityPersonAssociationSchema`},EntityPersonOwner:{modulePath:`entity/person-owner`,schemaName:`EntityPersonOwnerSchema`},EntityRelationship:{modulePath:`entity/relationship`,schemaName:`EntityRelationshipSchema`},EntityRelationshipTypeOption:{modulePath:`entity/relationship-type-option`,schemaName:`EntityRelationshipTypeOptionSchema`},EntityResearch:{modulePath:`entity/research`,schemaName:`EntityResearchSchema`},EntityResearchDetail:{modulePath:`entity/research-detail`,schemaName:`EntityResearchDetailSchema`},EntityResearchFactValue:{modulePath:`entity/research-fact-value`,schemaName:`EntityResearchFactValueSchema`},EntityResearchPublicSource:{modulePath:`entity/research-public-source`,schemaName:`EntityResearchPublicSourceSchema`},EntityResearchSnippet:{modulePath:`entity/research-snippet`,schemaName:`EntityResearchSnippetSchema`},EntityResearchValueType:{modulePath:`entity/research-value-type`,schemaName:`EntityResearchValueTypeSchema`},EntityResolution:{modulePath:`entity/resolution`,schemaName:`EntityResolutionSchema`},EntitySimilarityContext:{modulePath:`entity/similarity-context`,schemaName:`EntitySimilarityContextSchema`},EntitySimilarityOrigin:{modulePath:`entity/similarity-origin`,schemaName:`EntitySimilarityOriginSchema`},EntitySimilarityResult:{modulePath:`entity/similarity-result`,schemaName:`EntitySimilarityResultSchema`},EntitySimilaritySummary:{modulePath:`entity/similarity-summary`,schemaName:`EntitySimilaritySummarySchema`},EntitySitemap:{modulePath:`entity/sitemap`,schemaName:`EntitySitemapSchema`},EntityTag:{modulePath:`entity/tag`,schemaName:`EntityTagSchema`},EntityText:{modulePath:`entity/text`,schemaName:`EntityTextSchema`},EntityTextBundle:{modulePath:`entity/text-bundle`,schemaName:`EntityTextBundleSchema`},EntityType:{modulePath:`entity/type`,schemaName:`EntityTypeSchema`},EntityTypeAlias:{modulePath:`entity/type-alias`,schemaName:`EntityTypeAliasSchema`},EntityTypeGroup:{modulePath:`entity/type-group`,schemaName:`EntityTypeGroupSchema`},EntityTypeGroupMembership:{modulePath:`entity/type-group-membership`,schemaName:`EntityTypeGroupMembershipSchema`},EntityUrlCrawlCdnProvider:{modulePath:`entity/url-crawl-cdn-provider`,schemaName:`EntityUrlCrawlCdnProviderSchema`},EntityUrlCrawlRenderMode:{modulePath:`entity/url-crawl-render-mode`,schemaName:`EntityUrlCrawlRenderModeSchema`},EntityUrlLink:{modulePath:`entity/url-link`,schemaName:`EntityUrlLinkSchema`},EntityUrlType:{modulePath:`entity/url-type`,schemaName:`EntityUrlTypeSchema`},EntityValuationDataConfidence:{modulePath:`entity/valuation-data-confidence`,schemaName:`EntityValuationDataConfidenceSchema`},EntityValuationDerivation:{modulePath:`entity/valuation-derivation`,schemaName:`EntityValuationDerivationSchema`},EntityValuationSource:{modulePath:`entity/valuation-source`,schemaName:`EntityValuationSourceSchema`},EntityValuationTimeSeriesPoint:{modulePath:`entity/valuation-time-series-point`,schemaName:`EntityValuationTimeSeriesPointSchema`},FederatedNaturalSearch:{modulePath:`federated/natural-search`,schemaName:`FederatedNaturalSearchSchema`},FederatedSearch:{modulePath:`federated/search`,schemaName:`FederatedSearchSchema`},FederatedSearchProvenance:{modulePath:`federated/search-provenance`,schemaName:`FederatedSearchProvenanceSchema`},FederatedSearchRejection:{modulePath:`federated/search-rejection`,schemaName:`FederatedSearchRejectionSchema`},FundingStage:{modulePath:`funding/stage`,schemaName:`FundingStageSchema`},FundraiseDataConfidence:{modulePath:`fundraise/data-confidence`,schemaName:`FundraiseDataConfidenceSchema`},FundraiseFinancialInstrumentType:{modulePath:`fundraise/financial-instrument-type`,schemaName:`FundraiseFinancialInstrumentTypeSchema`},FundraiseInvestmentAttribution:{modulePath:`fundraise/investment-attribution`,schemaName:`FundraiseInvestmentAttributionSchema`},FundraiseInvestmentAttributionType:{modulePath:`fundraise/investment-attribution-type`,schemaName:`FundraiseInvestmentAttributionTypeSchema`},FundraiseInvestmentEvidence:{modulePath:`fundraise/investment-evidence`,schemaName:`FundraiseInvestmentEvidenceSchema`},FundraiseTransactionStatus:{modulePath:`fundraise/transaction-status`,schemaName:`FundraiseTransactionStatusSchema`},GithubRepo:{modulePath:`github/repo`,schemaName:`GithubRepoSchema`},HarnessChassis:{modulePath:`harness/chassis`,schemaName:`HarnessChassisSchema`},HarnessLlmApi:{modulePath:`harness/llm-api`,schemaName:`HarnessLlmApiSchema`},HarnessRun:{modulePath:`harness/run`,schemaName:`HarnessRunSchema`},HarnessRunCreate:{modulePath:`harness/run-create`,schemaName:`HarnessRunCreateSchema`},HarnessRunDetail:{modulePath:`harness/run-detail`,schemaName:`HarnessRunDetailSchema`},HarnessRunEnvironment:{modulePath:`harness/run-environment`,schemaName:`HarnessRunEnvironmentSchema`},HarnessRunLane:{modulePath:`harness/run-lane`,schemaName:`HarnessRunLaneSchema`},HarnessRunProgress:{modulePath:`harness/run-progress`,schemaName:`HarnessRunProgressSchema`},HarnessRunStatus:{modulePath:`harness/run-status`,schemaName:`HarnessRunStatusSchema`},HarnessRunType:{modulePath:`harness/run-type`,schemaName:`HarnessRunTypeSchema`},HarnessTaskInput:{modulePath:`harness/task`,schemaName:`HarnessTaskSchema`},HarnessTaskInputType:{modulePath:`harness/task-input-type`,schemaName:`HarnessTaskInputTypeSchema`},HarnessTaskPlan:{modulePath:`harness/task-plan`,schemaName:`HarnessTaskPlanSchema`},HarnessTaskPlanStep:{modulePath:`harness/task-plan-step`,schemaName:`HarnessTaskPlanStepSchema`},HarnessTaskStep:{modulePath:`harness/task-step`,schemaName:`HarnessTaskStepSchema`},HarnessTaskWriteGuidance:{modulePath:`harness/task-write-guidance`,schemaName:`HarnessTaskWriteGuidanceSchema`},HelpCitation:{modulePath:`help/citation`,schemaName:`HelpCitationSchema`},HelpResolution:{modulePath:`help/resolution`,schemaName:`HelpResolutionSchema`},HelpResolutionOutcome:{modulePath:`help/resolution-outcome`,schemaName:`HelpResolutionOutcomeSchema`},HelpScope:{modulePath:`help/scope`,schemaName:`HelpScopeSchema`},HelpSourceType:{modulePath:`help/source-type`,schemaName:`HelpSourceTypeSchema`},Identification:{modulePath:`identification/identification`,schemaName:`IdentificationSchema`},IdentificationCandidate:{modulePath:`identification/candidate`,schemaName:`IdentificationCandidateSchema`},IdentificationSubject:{modulePath:`identification/subject`,schemaName:`IdentificationSubjectSchema`},IntRange:{modulePath:`int/range`,schemaName:`IntRangeSchema`},InvestorActivityFilter:{modulePath:`investor/activity-filter`,schemaName:`InvestorActivityFilterSchema`},JobEnqueue:{modulePath:`job/enqueue`,schemaName:`JobEnqueueSchema`},JobState:{modulePath:`job/state`,schemaName:`JobStateSchema`},JsonValue:{modulePath:`http/json-value`,schemaName:`JsonValueSchema`},LinkSearch:{modulePath:`link/search`,schemaName:`LinkSearchSchema`},LogoAccuracy:{modulePath:`logo/accuracy`,schemaName:`LogoAccuracySchema`},LogoAccuracyReference:{modulePath:`logo/accuracy-reference`,schemaName:`LogoAccuracyReferenceSchema`},LookupJob:{modulePath:`lookup/job`,schemaName:`LookupJobSchema`},LookupJobMention:{modulePath:`lookup/job-mention`,schemaName:`LookupJobMentionSchema`},LookupJobMutation:{modulePath:`lookup/job-mutation`,schemaName:`LookupJobMutationSchema`},LookupMention:{modulePath:`lookup/mention`,schemaName:`LookupMentionSchema`},MediaObjectType:{modulePath:`media/object-type`,schemaName:`MediaObjectTypeSchema`},MediaUpload:{modulePath:`media/upload`,schemaName:`MediaUploadSchema`},MentionLookup:{modulePath:`mention/lookup`,schemaName:`MentionLookupSchema`},NaturalSearch:{modulePath:`natural/search`,schemaName:`NaturalSearchSchema`},NaturalSearchResult:{modulePath:`natural/search-result`,schemaName:`NaturalSearchResultSchema`},News:{modulePath:`news/news`,schemaName:`NewsSchema`},NewsCandidateScore:{modulePath:`news/candidate-score`,schemaName:`NewsCandidateScoreSchema`},NewsDetail:{modulePath:`news/detail`,schemaName:`NewsDetailSchema`},NewsEntityMention:{modulePath:`news/entity-mention`,schemaName:`NewsEntityMentionSchema`},NewsFeedback:{modulePath:`news/feedback`,schemaName:`NewsFeedbackSchema`},NewsFeedbackAcknowledgement:{modulePath:`news/feedback-acknowledgement`,schemaName:`NewsFeedbackAcknowledgementSchema`},NewsMatchStatus:{modulePath:`news/match-status`,schemaName:`NewsMatchStatusSchema`},NewsPublishedEvent:{modulePath:`news/published-event`,schemaName:`NewsPublishedEventSchema`},NewsResolvedEntityLink:{modulePath:`news/resolved-entity-link`,schemaName:`NewsResolvedEntityLinkSchema`},NewsResolvedPersonLink:{modulePath:`news/resolved-person-link`,schemaName:`NewsResolvedPersonLinkSchema`},NewsSourceUrlConflict:{modulePath:`news/source-url-conflict`,schemaName:`NewsSourceUrlConflictSchema`},NewsSubscription:{modulePath:`news/subscription`,schemaName:`NewsSubscriptionSchema`},NewsSubscriptionArguments:{modulePath:`news/subscription-arguments`,schemaName:`NewsSubscriptionArgumentsSchema`},NewsSubscriptionDelivery:{modulePath:`news/subscription-delivery`,schemaName:`NewsSubscriptionDeliverySchema`},NewsSubscriptionDeliveryMode:{modulePath:`news/subscription-delivery-mode`,schemaName:`NewsSubscriptionDeliveryModeSchema`},NewsSubscriptionDeliveryStatus:{modulePath:`news/subscription-delivery-status`,schemaName:`NewsSubscriptionDeliveryStatusSchema`},NewsSubscriptionDetail:{modulePath:`news/subscription-detail`,schemaName:`NewsSubscriptionDetailSchema`},NewsSubscriptionEndpoint:{modulePath:`news/subscription-endpoint`,schemaName:`NewsSubscriptionEndpointSchema`},NewsSubscriptionEvent:{modulePath:`news/subscription-event`,schemaName:`NewsSubscriptionEventSchema`},NewsSubscriptionGrant:{modulePath:`news/subscription-grant`,schemaName:`NewsSubscriptionGrantSchema`},NewsSubscriptionKey:{modulePath:`news/subscription-key`,schemaName:`NewsSubscriptionKeySchema`},NewsSubscriptionTestEvent:{modulePath:`news/subscription-test-event`,schemaName:`NewsSubscriptionTestEventSchema`},PageableObject:{modulePath:`pageable/object`,schemaName:`PageableObjectSchema`},PageBlogPost:{modulePath:`pagination/schemas`,schemaName:`PageBlogPostSchema`},PageClassification:{modulePath:`pagination/schemas`,schemaName:`PageClassificationSchema`},PageEmployeeCount:{modulePath:`pagination/schemas`,schemaName:`PageEmployeeCountSchema`},PageEntity:{modulePath:`pagination/schemas`,schemaName:`PageEntitySchema`},PageEntityAcquisition:{modulePath:`pagination/schemas`,schemaName:`PageEntityAcquisitionSchema`},PageEntityDetail:{modulePath:`pagination/schemas`,schemaName:`PageEntityDetailSchema`},PageEntityFundraiseInvestorJoin:{modulePath:`pagination/schemas`,schemaName:`PageEntityFundraiseInvestorJoinSchema`},PageEntityFundraiseTransaction:{modulePath:`pagination/schemas`,schemaName:`PageEntityFundraiseTransactionSchema`},PageEntityInvestorParticipation:{modulePath:`pagination/schemas`,schemaName:`PageEntityInvestorParticipationSchema`},PageEntityList:{modulePath:`pagination/schemas`,schemaName:`PageEntityListSchema`},PageEntityPersonAssociation:{modulePath:`pagination/schemas`,schemaName:`PageEntityPersonAssociationSchema`},PageEntityRelationship:{modulePath:`pagination/schemas`,schemaName:`PageEntityRelationshipSchema`},PageEntityResearchDetail:{modulePath:`pagination/schemas`,schemaName:`PageEntityResearchDetailSchema`},PageEntityResearchSnippet:{modulePath:`pagination/schemas`,schemaName:`PageEntityResearchSnippetSchema`},PageEntitySimilarityResult:{modulePath:`pagination/schemas`,schemaName:`PageEntitySimilarityResultSchema`},PageEntitySimilaritySummary:{modulePath:`pagination/schemas`,schemaName:`PageEntitySimilaritySummarySchema`},PageEntityText:{modulePath:`pagination/schemas`,schemaName:`PageEntityTextSchema`},PageEntityUrlLink:{modulePath:`pagination/schemas`,schemaName:`PageEntityUrlLinkSchema`},PageEntityValuationTimeSeriesPoint:{modulePath:`pagination/schemas`,schemaName:`PageEntityValuationTimeSeriesPointSchema`},PageGithubRepo:{modulePath:`pagination/schemas`,schemaName:`PageGithubRepoSchema`},PageNews:{modulePath:`pagination/schemas`,schemaName:`PageNewsSchema`},PagePerson:{modulePath:`pagination/schemas`,schemaName:`PagePersonSchema`},PagePersonDetail:{modulePath:`pagination/schemas`,schemaName:`PagePersonDetailSchema`},PagePersonInvestment:{modulePath:`pagination/schemas`,schemaName:`PagePersonInvestmentSchema`},PagePersonInvestorParticipation:{modulePath:`pagination/schemas`,schemaName:`PagePersonInvestorParticipationSchema`},PagePersonSimilarityResult:{modulePath:`pagination/schemas`,schemaName:`PagePersonSimilarityResultSchema`},PagePublication:{modulePath:`pagination/schemas`,schemaName:`PagePublicationSchema`},PageResultEntityList:{modulePath:`pagination/schemas`,schemaName:`PageResultEntityListSchema`},PageResultNews:{modulePath:`pagination/schemas`,schemaName:`PageResultNewsSchema`},PageResultPerson:{modulePath:`pagination/schemas`,schemaName:`PageResultPersonSchema`},PageUniqueId:{modulePath:`pagination/schemas`,schemaName:`PageUniqueIdSchema`},Person:{modulePath:`person/person`,schemaName:`PersonSchema`},PersonAliasType:{modulePath:`person/alias-type`,schemaName:`PersonAliasTypeSchema`},PersonDetail:{modulePath:`person/detail`,schemaName:`PersonDetailSchema`},PersonEnrichment:{modulePath:`person/enrichment`,schemaName:`PersonEnrichmentSchema`},PersonFilter:{modulePath:`person/filter`,schemaName:`PersonFilterSchema`},PersonGraph:{modulePath:`person/graph`,schemaName:`PersonGraphSchema`},PersonGraphCareerContext:{modulePath:`person/graph-career-context`,schemaName:`PersonGraphCareerContextSchema`},PersonGraphCoInvestor:{modulePath:`person/graph-co-investor`,schemaName:`PersonGraphCoInvestorSchema`},PersonGraphMember:{modulePath:`person/graph-member`,schemaName:`PersonGraphMemberSchema`},PersonGraphSimilarEntity:{modulePath:`person/graph-similar-entity`,schemaName:`PersonGraphSimilarEntitySchema`},PersonImage:{modulePath:`person/image`,schemaName:`PersonImageSchema`},PersonInvestedCompany:{modulePath:`person/invested-company`,schemaName:`PersonInvestedCompanySchema`},PersonInvestment:{modulePath:`person/investment`,schemaName:`PersonInvestmentSchema`},PersonInvestorParticipation:{modulePath:`person/investor-participation`,schemaName:`PersonInvestorParticipationSchema`},PersonListArrayFilter:{modulePath:`person/list-array-filter`,schemaName:`PersonListArrayFilterSchema`},PersonLookupBatch:{modulePath:`person/lookup-batch`,schemaName:`PersonLookupBatchSchema`},PersonNaturalSearch:{modulePath:`person/natural-search`,schemaName:`PersonNaturalSearchSchema`},PersonNaturalSearchResult:{modulePath:`person/natural-search-result`,schemaName:`PersonNaturalSearchResultSchema`},PersonSearchInterpretation:{modulePath:`person/search-interpretation`,schemaName:`PersonSearchInterpretationSchema`},PersonSimilarityContext:{modulePath:`person/similarity-context`,schemaName:`PersonSimilarityContextSchema`},PersonSimilarityOrigin:{modulePath:`person/similarity-origin`,schemaName:`PersonSimilarityOriginSchema`},PersonSimilarityResult:{modulePath:`person/similarity-result`,schemaName:`PersonSimilarityResultSchema`},ProblemDetail:{modulePath:`http/problem-detail`,schemaName:`ProblemDetailSchema`},ProblemResolution:{modulePath:`problem/resolution`,schemaName:`ProblemResolutionSchema`},ProblemType:{modulePath:`problem/type`,schemaName:`ProblemTypeSchema`},ProseProblem:{modulePath:`prose/problem`,schemaName:`ProseProblemSchema`},ProseViolation:{modulePath:`prose/violation`,schemaName:`ProseViolationSchema`},Publication:{modulePath:`publication/publication`,schemaName:`PublicationSchema`},PublicationFacet:{modulePath:`publication/facet`,schemaName:`PublicationFacetSchema`},PublicationRelation:{modulePath:`publication/relation`,schemaName:`PublicationRelationSchema`},PublicationType:{modulePath:`publication/type`,schemaName:`PublicationTypeSchema`},ReasoningEffort:{modulePath:`reasoning/effort`,schemaName:`ReasoningEffortSchema`},RedirectSlugPath:{modulePath:`redirect/redirect-slug-path`,schemaName:`RedirectSlugPathSchema`},RefinementMeta:{modulePath:`refinement/meta`,schemaName:`RefinementMetaSchema`},RelationshipDirection:{modulePath:`relationship/direction`,schemaName:`RelationshipDirectionSchema`},ResearchAllowance:{modulePath:`research/allowance`,schemaName:`ResearchAllowanceSchema`},ResearchAllowanceUsage:{modulePath:`research/allowance-usage`,schemaName:`ResearchAllowanceUsageSchema`},ResearchDerivedBucket:{modulePath:`research/derived-bucket`,schemaName:`ResearchDerivedBucketSchema`},ResearchDerivedRange:{modulePath:`research/derived-range`,schemaName:`ResearchDerivedRangeSchema`},ResearchDetailType:{modulePath:`research/detail-type`,schemaName:`ResearchDetailTypeSchema`},ResearchFinding:{modulePath:`research/finding`,schemaName:`ResearchFindingSchema`},ResearchParagraphShape:{modulePath:`research/paragraph-shape`,schemaName:`ResearchParagraphShapeSchema`},ResearchSnippetType:{modulePath:`research/snippet-type`,schemaName:`ResearchSnippetTypeSchema`},ResearchValueRange:{modulePath:`research/value-range`,schemaName:`ResearchValueRangeSchema`},ResearchValueShapeType:{modulePath:`research/value-shape-type`,schemaName:`ResearchValueShapeTypeSchema`},ResolvedHandle:{modulePath:`resolved/handle`,schemaName:`ResolvedHandleSchema`},RoundLabel:{modulePath:`round/label`,schemaName:`RoundLabelSchema`},Search:{modulePath:`search/search`,schemaName:`SearchSchema`},SearchAnswer:{modulePath:`search/answer`,schemaName:`SearchAnswerSchema`},SearchAnswerCitation:{modulePath:`search/answer-citation`,schemaName:`SearchAnswerCitationSchema`},SearchAnswerParagraph:{modulePath:`search/answer-paragraph`,schemaName:`SearchAnswerParagraphSchema`},SearchCacheMode:{modulePath:`search/cache-mode`,schemaName:`SearchCacheModeSchema`},SearchDuplicateCandidateScore:{modulePath:`search/duplicate-candidate-score`,schemaName:`SearchDuplicateCandidateScoreSchema`},SearchEvidenceSource:{modulePath:`search/evidence-source`,schemaName:`SearchEvidenceSourceSchema`},SearchHit:{modulePath:`search/hit`,schemaName:`SearchHitSchema`},SearchIntent:{modulePath:`search/intent`,schemaName:`SearchIntentSchema`},SearchInterpretation:{modulePath:`search/interpretation`,schemaName:`SearchInterpretationSchema`},SearchInvestment:{modulePath:`search/investment`,schemaName:`SearchInvestmentSchema`},SearchJudgment:{modulePath:`search/judgment`,schemaName:`SearchJudgmentSchema`},SearchLayer:{modulePath:`search/layer`,schemaName:`SearchLayerSchema`},SearchMode:{modulePath:`search/mode`,schemaName:`SearchModeSchema`},SearchModeExecution:{modulePath:`search/mode-execution`,schemaName:`SearchModeExecutionSchema`},SearchOrderingEntityFilterSortable:{modulePath:`search/ordering-entity-filter-sortable`,schemaName:`SearchOrderingEntityFilterSortableSchema`},SearchOrderingPersonSortField:{modulePath:`search/ordering-person-sort-field`,schemaName:`SearchOrderingPersonSortFieldSchema`},SearchPassage:{modulePath:`search/passage`,schemaName:`SearchPassageSchema`},SearchRelevance:{modulePath:`search/relevance`,schemaName:`SearchRelevanceSchema`},SecCompany:{modulePath:`sec/company`,schemaName:`SecCompanySchema`},SecListingProspectus:{modulePath:`sec/listing-prospectus`,schemaName:`SecListingProspectusSchema`},SharedSearch:{modulePath:`shared/search`,schemaName:`SharedSearchSchema`},SharedSearchList:{modulePath:`shared/search-list`,schemaName:`SharedSearchListSchema`},SharedSearchMutation:{modulePath:`shared/search-mutation`,schemaName:`SharedSearchMutationSchema`},SlugLocation:{modulePath:`slug/location`,schemaName:`SlugLocationSchema`},SlugResource:{modulePath:`redirect/slug-resource`,schemaName:`SlugResourceSchema`},SortObject:{modulePath:`sort/object`,schemaName:`SortObjectSchema`},SortOrderEntityFilterSortable:{modulePath:`sort/order-entity-filter-sortable`,schemaName:`SortOrderEntityFilterSortableSchema`},SortOrderPersonSortField:{modulePath:`sort/order-person-sort-field`,schemaName:`SortOrderPersonSortFieldSchema`},SourceDocumentList:{modulePath:`source/document-list`,schemaName:`SourceDocumentListSchema`},StageFrequency:{modulePath:`stage/frequency`,schemaName:`StageFrequencySchema`},StandardizedClassification:{modulePath:`standardized/classification`,schemaName:`StandardizedClassificationSchema`},StrictUrlLookupConflict:{modulePath:`strict/url-lookup-conflict`,schemaName:`StrictUrlLookupConflictSchema`},SuppressionReason:{modulePath:`suppression/reason`,schemaName:`SuppressionReasonSchema`},SystemBuild:{modulePath:`system/system-build`,schemaName:`SystemBuildSchema`},SystemBuildDetail:{modulePath:`system/system-build-detail`,schemaName:`SystemBuildDetailSchema`},SystemGlobalMetrics:{modulePath:`system/global-metrics`,schemaName:`SystemGlobalMetricsSchema`},SystemStatus:{modulePath:`system/status`,schemaName:`SystemStatusSchema`},TextTypeOption:{modulePath:`text/type-option`,schemaName:`TextTypeOptionSchema`},UniqueId:{modulePath:`unique/id`,schemaName:`UniqueIdSchema`},UniqueIdOwnerScope:{modulePath:`unique/id-owner-scope`,schemaName:`UniqueIdOwnerScopeSchema`},UniqueIdType:{modulePath:`unique/id-type`,schemaName:`UniqueIdTypeSchema`},UniqueIdTypeAlias:{modulePath:`unique/id-type-alias`,schemaName:`UniqueIdTypeAliasSchema`},Uptime:{modulePath:`uptime/uptime`,schemaName:`UptimeSchema`},UrlDuplicateConflict:{modulePath:`url/duplicate-conflict`,schemaName:`UrlDuplicateConflictSchema`},UrlDuplicateJoin:{modulePath:`url/duplicate-join`,schemaName:`UrlDuplicateJoinSchema`},UrlMatchMode:{modulePath:`url/match-mode`,schemaName:`UrlMatchModeSchema`},UrlTypeAlias:{modulePath:`url/type-alias`,schemaName:`UrlTypeAliasSchema`},ValuationType:{modulePath:`valuation/type`,schemaName:`ValuationTypeSchema`},WebSearch:{modulePath:`web/search`,schemaName:`WebSearchSchema`}});var B=[`get`,`post`,`put`,`patch`,`delete`],V={get:`GET`,post:`POST`,put:`PUT`,patch:`PATCH`,delete:`DELETE`},H=e=>V[e],U=[`oauth`,`start`,`poll`,`acknowledge`,`revoke`],W=t({name:u().regex(/^[A-Z][A-Z0-9_]*$/u)}),G=r([i(`private`),d({scope:u().optional(),value:u().optional()})]),K=a(()=>d({$ref:u().optional(),description:u().optional(),type:r([u(),o(u())]).optional(),format:u().optional(),default:m.optional(),enum:o(m).optional(),"x-extensible-enum":o(m).optional(),readOnly:c().optional(),items:K.optional(),minItems:l().int().nonnegative().optional(),maxItems:l().int().nonnegative().optional(),properties:n(u(),K).optional(),required:o(u()).optional(),oneOf:o(K).optional(),anyOf:o(K).optional(),allOf:o(K).optional(),"x-aventure-visibility":G.optional(),"x-aventure-cli-conflicts":o(o(u().min(1)).min(2)).min(1).optional(),"x-aventure-env":W.optional(),"x-aventure-detail":i(!0).optional()})),de=d({in:u(),name:u(),required:c().optional(),description:u().optional(),schema:K.optional(),"x-aventure-visibility":G.optional(),"x-aventure-legacy-name":t({name:u().trim().min(1)}).optional()}).superRefine((e,t)=>{let n=e[`x-aventure-legacy-name`]?.name;n!==void 0&&(e.in!==`path`&&t.addIssue({code:`custom`,path:[`x-aventure-legacy-name`],message:`x-aventure-legacy-name is valid only for path parameters`}),n===e.name&&t.addIssue({code:`custom`,path:[`x-aventure-legacy-name`,`name`],message:`Legacy path parameter name must differ from its canonical name`}))}),q=n(u(),d({schema:K.optional()})),fe=d({description:u().optional(),content:q.optional(),"x-aventure-standard-response":c().optional()}),J=d({description:u().optional(),required:c().optional(),content:q.optional()}),pe=t({auth:s([`none`,`read`]).optional()}).optional(),Y=r([i(``),u().regex(/^(?:\/(?:[^~/]|~[01])*)+$/)]),me=t({readOperationId:u().min(1),writePointer:Y,readPointer:Y}),he=u().trim().regex(/^[a-z0-9]+(?:-[a-z0-9]+)* [a-z0-9]+(?:-[a-z0-9]+)*$/u),X=u().regex(/^[a-z][A-Za-z0-9]*$/u),ge=u().regex(/^--(?:no-)?[a-z][a-z0-9]*(?:-[a-z0-9]+)*$/u),_e=t({command:he,role:s(U),summary:u().trim().min(1).optional(),description:u().trim().min(1).optional(),bodyOption:o(X).min(1).optional(),localOption:o(t({optionKey:X,flag:ge,description:u().trim().min(1)})).min(1).optional()}).superRefine((t,n)=>{let r=[t.bodyOption??[],(t.localOption??[]).map(e=>e.optionKey),(t.localOption??[]).map(e=>e.flag)].some(e=>new Set(e).size!==e.length),i=(t.localOption??[]).some(t=>new e(t.flag).attributeName()!==t.optionKey);(r||i)&&n.addIssue({code:`custom`,message:`Composite CLI options must be unique and match their local flags`})}).optional(),ve=d({operationId:u(),summary:u().optional(),description:u().optional(),tags:o(u()).optional(),deprecated:c().optional(),hidden:c().optional(),security:o(n(u(),o(u()))).optional(),parameters:o(de).optional(),requestBody:J.optional(),responses:n(u(),fe),"x-aventure-visibility":G.optional(),"x-aventure-tool":pe,"x-aventure-mutation-readback":me.optional(),"x-aventure-cli-composite":_e}).superRefine((e,t)=>{let n=e.parameters??[];for(let[e,r]of n.entries()){let i=r[`x-aventure-legacy-name`]?.name;r.in===`path`&&i!==void 0&&n.some((t,n)=>n!==e&&t.in===`path`&&(t.name===i||t[`x-aventure-legacy-name`]?.name===i))&&t.addIssue({code:`custom`,path:[`parameters`,e,`x-aventure-legacy-name`,`name`],message:`Legacy path parameter name '${i}' collides with another declared path parameter`})}}),ye=d(Object.fromEntries(B.map(e=>[e,ve.optional()]))),be=d({$ref:u().optional(),description:u().optional(),type:r([u(),o(u())]).optional(),format:u().optional(),default:m.optional(),enum:o(m).optional(),"x-extensible-enum":o(m).optional(),readOnly:c().optional(),items:K.optional(),minItems:l().int().nonnegative().optional(),maxItems:l().int().nonnegative().optional(),oneOf:o(K).optional(),anyOf:o(K).optional(),allOf:o(K).optional(),properties:n(u(),K).optional(),required:o(u()).optional(),"x-aventure-visibility":G.optional(),"x-aventure-cli-conflicts":o(o(u().min(1)).min(2)).min(1).optional(),"x-aventure-env":W.optional(),"x-aventure-detail":i(!0).optional(),"x-aventure-noun":t({one:u().trim().min(1),other:u().trim().min(1)}).optional()});d({info:d({description:u().optional()}).optional(),tags:o(d({name:u(),description:u().optional()})).optional(),paths:n(u(),ye),webhooks:n(u(),d({post:d({description:u(),requestBody:J})})).optional(),components:d({schemas:n(u(),be)})}).superRefine((e,t)=>{for(let[n,r]of Object.entries(e.paths))for(let i of B){let a=r[i]?.[`x-aventure-mutation-readback`];a!==void 0&&Z(e.paths,a.readOperationId)===null&&t.addIssue({code:`custom`,path:[`paths`,n,i,`x-aventure-mutation-readback`,`readOperationId`],message:`mutation readback names '${a.readOperationId}', which no operation in this document emits`})}});var xe=new Set([`page`,`size`,`sort`]);function Z(e,t){for(let[n,r]of Object.entries(e))for(let e of B){let i=r[e];if(i?.operationId===t)return{method:e,template:n,operation:i}}return null}function Se(e,t,n){let r=g(n),i=e[r]?.[t];if(i)return{method:t,template:r,operation:i};for(let[n,i]of Object.entries(e)){let e=i[t];if(e&&_(n,r))return{method:t,template:n,operation:e}}return null}function Ce(e,t,n=e){return e.replace(/\{([^}]+)}/g,(...e)=>{let r=e[1],i=t[r];if(i==null)throw Error(`Missing path parameter '${r}' for ${n}`);return encodeURIComponent(String(i))})}function we(e,t,n){let r=t;for(let i of e.parameters??[]){let e=i[`x-aventure-legacy-name`]?.name;if(i.in===`path`&&e!==void 0&&Object.hasOwn(t,e)){if(Object.hasOwn(t,i.name))throw Error(`Path parameters '${i.name}' and legacy alias '${e}' were both supplied for ${n}`);r===t&&(r={...t}),r[i.name]=t[e],delete r[e]}}return r}function Te(e,t){let n={};for(let r of e.parameters??[]){if(r.in!==`query`||xe.has(r.name))continue;let e=t?.[r.name]??Ee(r.schema?.default);e!==void 0&&(n[r.name]=e)}return Object.keys(n).length===0?void 0:n}function Ee(e){if(typeof e==`string`||typeof e==`number`||typeof e==`boolean`||Array.isArray(e)&&e.every(e=>typeof e==`string`||typeof e==`number`||typeof e==`boolean`))return e}function De(e){return e?.$ref?.startsWith(`#/components/schemas/`)===!0?e.$ref.slice(21):void 0}function Oe(e){return e===`write`||e===`delete`}function Q(e,t){return e===`DELETE`||t===`delete`}var ke=`Shell-safe input: single-quote string flag values that contain $; use --from-file or stdin for JSON bodies, multiline text, and free text with currency amounts.`;function Ae(e,t){let n=e===`array`?t:e;return n===void 0||n===`string`}function je(e){return e!==`/v1/auth/api-key`&&!/^\/v1\/sitemap(?:\/|$)/u.test(e)}function Me(e){let t=Object.entries(e.responses).filter(([e])=>e.startsWith(`2`));return t.length>0&&t.every(([,e])=>Object.values(e.content??{}).some(e=>Ne(e.schema)))}function Ne(e){return e?.format===`byte`||e?.format===`binary`}function Pe(e){return`aventure_${e}`}function $(e){return e.replace(/([a-z0-9])([A-Z])/gu,`$1-$2`).replace(/[^A-Za-z0-9]+/gu,`-`).replace(/^-+|-+$/gu,``).toLowerCase()}var Fe=e=>`--${$(e)}`;export{b as C,g as D,S as E,E as S,x as T,Se as _,Q as a,T as b,je as c,B as d,H as f,Te as g,Z as h,Fe as i,$ as l,we as m,Me as n,Oe as o,Ce as p,Ae as r,Pe as s,ke as t,De as u,ae as v,ie as w,oe as x,w as y};
|
|
1
|
+
import{n as e}from"./commander-BB7CDPLs.js";import{C as t,S as n,T as r,g as i,h as a,l as o,o as s,u as c,v as l,w as u,y as d}from"./person-owner-BJgNYLKX.js";import{r as f,s as p,u as m}from"./result-envelope-BE0edu_S.js";import{basename as h,extname as ee}from"node:path";import{AsyncLocalStorage as te}from"node:async_hooks";import{readFile as ne}from"node:fs/promises";function g(e){return new URL(e,`https://placeholder.invalid`).pathname}function _(e,t){let n=e.split(`/`).filter(Boolean),r=t.split(`/`).filter(Boolean);return n.length!==r.length||r.some(re)?!1:n.every((e,t)=>v(e)||e===r[t])}function v(e){let t=e.slice(1,-1);return e.startsWith(`{`)&&e.endsWith(`}`)&&t.length>0&&!t.includes(`/`)&&!t.includes(`{`)&&!t.includes(`}`)}function re(e){if(v(e))return!0;let t=e.toLowerCase(),n=e.slice(3,-3);return t.startsWith(`%7b`)&&t.endsWith(`%7d`)&&n.length>0&&!n.includes(`/`)&&!n.includes(`%`)&&!n.includes(`{`)&&!n.includes(`}`)}var y=new te,b=()=>y.getStore()?.requestId,ie=()=>y.getStore()?.userBearerToken;function x(e,t){return y.run({...y.getStore(),requestId:e},t)}function S(e,t){return y.run({...y.getStore(),userBearerToken:e},t)}var C=3e4;async function w(e,t,n,r){let i=E(T(e.requestBody?.content),n);if(!i.ok||i.data===null)return f(i.summary,i.warnings);let a=i.data;return e.requestBody?.required===!0&&t===void 0&&a?.kind!==`multipart`?f(`Request body is required.`):a?.kind===`multipart`?await se(e.requestBody?.required===!0,a.schema,t):p(`Request body prepared`,{body:t,contentType:a?.contentType??r})}function ae(e){if(typeof e!=`string`)return p(`Request body unchanged`,e);let t=e.trimStart().slice(0,1);if(t!==`{`&&t!==`[`)return p(`Request body unchanged`,e);try{let t=m.safeParse(JSON.parse(e));if(!t.success)throw t.error;return p(`Request body parsed`,t.data)}catch(e){return f(`Request body string must be valid JSON: ${e.message}`)}}function oe(e,t){let n=e?.schema;if(n===void 0)return!1;let r=n.$ref?.startsWith(`#/components/schemas/`)===!0?n.$ref.slice(21):void 0,i=n.type??(r===void 0?void 0:t[r]?.type);return Array.isArray(i)?i.includes(`array`):i===`array`}function T(e){let t=Object.entries(e??{});return[...t.flatMap(e=>I(e[0])?[D(e,`json`)]:[]),...t.flatMap(e=>L(e[0])?[D(e,`multipart`)]:[])]}function E(e,t){if(t===void 0)return p(`Default request content selected`,e[0]);let n=R(t),r=e.find(e=>R(e.contentType)===n);return r===void 0?f(`Request Content-Type '${t}' is not supported. Supported choices: ${e.map(({contentType:e})=>e).join(`, `)||`none`}.`):p(`Explicit request content selected`,r)}function D(e,t){return{contentType:e[0],kind:t,schema:e[1].schema}}async function se(e,t,n){if(!e&&n==null)return p(`Optional multipart body omitted`,{});let r=ce(n);if(!r.ok||r.data===null)return f(r.summary,r.warnings);let i=new FormData;for(let e of le(t)){let t=r.data[e.name];if(t==null){if(e.required)return f(`Multipart body requires '${e.name}'.`);continue}if(Array.isArray(t)&&t.length<(e.schema.minItems??0))return f(`Multipart part '${e.name}' requires more entries.`);if(Array.isArray(t)&&t.length>(e.schema.maxItems??2**53-1))return f(`Multipart part '${e.name}' has too many entries.`);if(O(e.schema)||k(e.schema)){let n=k(e.schema)?t:[t];if(!Array.isArray(n)||n.some(e=>typeof e!=`string`))return f(`Multipart part '${e.name}' must contain file paths or URLs.`);for(let t of n){if(typeof t!=`string`)continue;let n=await j(t);if(!n.ok||n.data===null)return f(n.summary,n.warnings);i.append(e.name,n.data.blob,n.data.filename)}}else if(ue(e.schema,t)){let n=JSON.stringify(t);i.append(e.name,new Blob([n],{type:`application/json`}),`${e.name}.json`)}else{let n=A(i,e.name,t);if(!n.ok)return n}}return p(`Multipart body prepared`,{body:i})}function ce(e){if(typeof e==`object`&&e&&!Array.isArray(e)){let t=Object.fromEntries(Object.entries(e));return p(`Multipart input parsed`,t)}return f(`Multipart request body must be a JSON object keyed by form part name.`)}function le(e){let t=new Set(e?.required??[]);return Object.entries(e?.properties??{}).map(([e,n])=>({name:e,schema:n,required:t.has(e)}))}function O(e){return e.type===`string`&&e.format===`binary`}function k(e){return e.type===`array`&&e.items!==void 0&&O(e.items)}function ue(e,t){return typeof t!=`object`||!t||Array.isArray(t)?!1:e.type===`object`||typeof e.$ref==`string`&&e.$ref.length>0}function A(e,t,n){if(Array.isArray(n)){for(let r of n){let n=A(e,t,r);if(!n.ok)return n}return p(`Multipart scalar array appended`,null)}return typeof n==`object`?f(`Multipart part '${t}' must be scalar.`):(e.append(t,String(n)),p(`Multipart scalar appended`,null))}async function j(e){return P(e)?await M(e):b()===void 0?await N(e):f(`MCP callers cannot upload local files: pass an http(s) URL as the multipart part, or send media by sourceUrl in a JSON body. Local file paths are CLI-only.`)}async function M(e){let t=new AbortController,n=setTimeout(()=>t.abort(),C);try{let n=new URL(e),r=await fetch(e,{signal:t.signal});if(!r.ok)return f(`Failed to fetch media URL: ${r.status} ${r.statusText}`);let i=r.headers.get(`content-type`)?.split(`;`)[0]?.trim()??F(n.pathname)??``,a=new Blob([await r.arrayBuffer()],{type:i});return p(`URL media fetched`,{blob:a,filename:h(n.pathname)||`upload`})}catch(e){return t.signal.aborted?f(`Failed to fetch media URL: timed out after ${C}ms.`):f(`Failed to fetch media URL: ${e.message}`)}finally{clearTimeout(n)}}async function N(e){try{let t=F(e)??``,n=await ne(e);return p(`File media read`,{blob:new Blob([n],{type:t}),filename:h(e)})}catch(t){return f(`Failed to read media file '${e}': ${t.message}`)}}function P(e){return e.startsWith(`http://`)||e.startsWith(`https://`)}function F(e){return z[ee(e).toLowerCase()]}function I(e){let t=R(e);return t===`*/*`||t===`application/json`||t.endsWith(`+json`)}function L(e){return R(e)===`multipart/form-data`}var R=e=>e.split(`;`)[0]?.trim().toLowerCase()??``,z={".gif":`image/gif`,".heic":`image/heic`,".heif":`image/heif`,".jpeg":`image/jpeg`,".jpg":`image/jpeg`,".png":`image/png`,".webp":`image/webp`};Object.freeze({Address:{modulePath:`address/address`,schemaName:`AddressSchema`},AddressAssociation:{modulePath:`address/association`,schemaName:`AddressAssociationSchema`},AddressAssociationRole:{modulePath:`address/association-role`,schemaName:`AddressAssociationRoleSchema`},AddressCity:{modulePath:`address/city`,schemaName:`AddressCitySchema`},AddressCountry:{modulePath:`address/country`,schemaName:`AddressCountrySchema`},AddressState:{modulePath:`address/state`,schemaName:`AddressStateSchema`},AgentHelp:{modulePath:`agent/help`,schemaName:`AgentHelpSchema`},AgentHelpQuestion:{modulePath:`agent/help-question`,schemaName:`AgentHelpQuestionSchema`},ApiKey:{modulePath:`api/key`,schemaName:`ApiKeySchema`},AuthClient:{modulePath:`auth/client`,schemaName:`AuthClientSchema`},AuthOperation:{modulePath:`auth/operation`,schemaName:`AuthOperationSchema`},AuthOperationAccess:{modulePath:`auth/operation-access`,schemaName:`AuthOperationAccessSchema`},AuthOperationAuthorization:{modulePath:`auth/operation-authorization`,schemaName:`AuthOperationAuthorizationSchema`},AuthOperationFilter:{modulePath:`auth/operation-filter`,schemaName:`AuthOperationFilterSchema`},AuthOperationMethod:{modulePath:`auth/operation-method`,schemaName:`AuthOperationMethodSchema`},AuthPermissionGrant:{modulePath:`auth/permission-grant`,schemaName:`AuthPermissionGrantSchema`},AuthProviderCatalog:{modulePath:`auth/provider-catalog`,schemaName:`AuthProviderCatalogSchema`},BillingAdditionalUsage:{modulePath:`billing/additional-usage`,schemaName:`BillingAdditionalUsageSchema`},BillingAdditionalUsageFundingType:{modulePath:`billing/additional-usage-funding-type`,schemaName:`BillingAdditionalUsageFundingTypeSchema`},BillingAdditionalUsageMeter:{modulePath:`billing/additional-usage-meter`,schemaName:`BillingAdditionalUsageMeterSchema`},BillingAdditionalUsageType:{modulePath:`billing/additional-usage-type`,schemaName:`BillingAdditionalUsageTypeSchema`},BillingCatalog:{modulePath:`billing/catalog`,schemaName:`BillingCatalogSchema`},BillingCatalogAdditionalUsage:{modulePath:`billing/catalog-additional-usage`,schemaName:`BillingCatalogAdditionalUsageSchema`},BillingCatalogAllowance:{modulePath:`billing/catalog-allowance`,schemaName:`BillingCatalogAllowanceSchema`},BillingCatalogCreditPack:{modulePath:`billing/catalog-credit-pack`,schemaName:`BillingCatalogCreditPackSchema`},BillingCatalogPlan:{modulePath:`billing/catalog-plan`,schemaName:`BillingCatalogPlanSchema`},BillingCatalogTier:{modulePath:`billing/catalog-tier`,schemaName:`BillingCatalogTierSchema`},BillingCheckout:{modulePath:`billing/checkout`,schemaName:`BillingCheckoutSchema`},BillingCheckoutMutation:{modulePath:`billing/checkout-mutation`,schemaName:`BillingCheckoutMutationSchema`},BillingCheckoutUiMode:{modulePath:`billing/checkout-ui-mode`,schemaName:`BillingCheckoutUiModeSchema`},BillingCreditPackType:{modulePath:`billing/credit-pack-type`,schemaName:`BillingCreditPackTypeSchema`},BillingPaymentMethod:{modulePath:`billing/payment-method`,schemaName:`BillingPaymentMethodSchema`},BillingPlanChange:{modulePath:`billing/plan-change`,schemaName:`BillingPlanChangeSchema`},BillingPlanChangeMutation:{modulePath:`billing/plan-change-mutation`,schemaName:`BillingPlanChangeMutationSchema`},BillingPlanChangePreview:{modulePath:`billing/plan-change-preview`,schemaName:`BillingPlanChangePreviewSchema`},BillingPlanType:{modulePath:`billing/plan-type`,schemaName:`BillingPlanTypeSchema`},BillingPortal:{modulePath:`billing/portal`,schemaName:`BillingPortalSchema`},BillingRecurringPrice:{modulePath:`billing/recurring-price`,schemaName:`BillingRecurringPriceSchema`},BillingSubscription:{modulePath:`billing/subscription`,schemaName:`BillingSubscriptionSchema`},BillingSubscriptionMutation:{modulePath:`billing/subscription-mutation`,schemaName:`BillingSubscriptionMutationSchema`},BlogPost:{modulePath:`blog/post`,schemaName:`BlogPostSchema`},BlogPostType:{modulePath:`blog/post-type`,schemaName:`BlogPostTypeSchema`},ChartBucket:{modulePath:`chart/bucket`,schemaName:`ChartBucketSchema`},Classification:{modulePath:`classification/classification`,schemaName:`ClassificationSchema`},ClassificationCatalog:{modulePath:`classification/catalog`,schemaName:`ClassificationCatalogSchema`},ClassificationCatalogBucket:{modulePath:`classification/catalog-bucket`,schemaName:`ClassificationCatalogBucketSchema`},ClassificationCatalogCategory:{modulePath:`classification/catalog-category`,schemaName:`ClassificationCatalogCategorySchema`},ClassificationInactiveTagDetails:{modulePath:`classification/inactive-tag-details`,schemaName:`ClassificationInactiveTagDetailsSchema`},CliAuthorization:{modulePath:`cli/authorization`,schemaName:`CliAuthorizationSchema`},CliAuthorizationClientPlatform:{modulePath:`cli/authorization-client-platform`,schemaName:`CliAuthorizationClientPlatformSchema`},CliAuthorizationDelivery:{modulePath:`cli/authorization-delivery`,schemaName:`CliAuthorizationDeliverySchema`},CliAuthorizationEncryptionAlgorithm:{modulePath:`cli/authorization-encryption-algorithm`,schemaName:`CliAuthorizationEncryptionAlgorithmSchema`},CliAuthorizationMutation:{modulePath:`cli/authorization-mutation`,schemaName:`CliAuthorizationMutationSchema`},CliAuthorizationPoll:{modulePath:`cli/authorization-poll`,schemaName:`CliAuthorizationPollSchema`},CliAuthorizationStart:{modulePath:`cli/authorization-start`,schemaName:`CliAuthorizationStartSchema`},CliAuthorizationStatus:{modulePath:`cli/authorization-status`,schemaName:`CliAuthorizationStatusSchema`},CliAuthorizationTerminalReason:{modulePath:`cli/authorization-terminal-reason`,schemaName:`CliAuthorizationTerminalReasonSchema`},Confidence:{modulePath:`confidence/confidence`,schemaName:`ConfidenceSchema`},ContentCompliance:{modulePath:`content/compliance`,schemaName:`ContentComplianceSchema`},ContentEmbeddingMatch:{modulePath:`content/embedding-match`,schemaName:`ContentEmbeddingMatchSchema`},ContentSourceType:{modulePath:`content/source-type`,schemaName:`ContentSourceTypeSchema`},CurrentSlugOwner:{modulePath:`redirect/current-slug-owner`,schemaName:`CurrentSlugOwnerSchema`},CursorSliceSharedSearchList:{modulePath:`cursor/slice-shared-search-list`,schemaName:`CursorSliceSharedSearchListSchema`},DatasourceDataSourceType:{modulePath:`datasource/data-source-type`,schemaName:`DatasourceDataSourceTypeSchema`},DatasourceProvenanceActorType:{modulePath:`datasource/provenance-actor-type`,schemaName:`DatasourceProvenanceActorTypeSchema`},DatasourceSourceMetadata:{modulePath:`datasource/source-metadata`,schemaName:`DatasourceSourceMetadataSchema`},DateRange:{modulePath:`date/range`,schemaName:`DateRangeSchema`},DecimalRange:{modulePath:`decimal/range`,schemaName:`DecimalRangeSchema`},DomainConflictDetails:{modulePath:`domain/conflict-details`,schemaName:`DomainConflictDetailsSchema`},DuplicateCreateReview:{modulePath:`duplicate/create-review`,schemaName:`DuplicateCreateReviewSchema`},EmployeeCount:{modulePath:`employee/count`,schemaName:`EmployeeCountSchema`},Enrichment:{modulePath:`enrichment/enrichment`,schemaName:`EnrichmentSchema`},EnrichmentBatch:{modulePath:`enrichment/batch`,schemaName:`EnrichmentBatchSchema`},EnrichmentMode:{modulePath:`enrichment/mode`,schemaName:`EnrichmentModeSchema`},EnrichmentPrompt:{modulePath:`enrichment/prompt`,schemaName:`EnrichmentPromptSchema`},EnrichmentRefusalType:{modulePath:`enrichment/refusal-type`,schemaName:`EnrichmentRefusalTypeSchema`},Entity:{modulePath:`entity/entity`,schemaName:`EntitySchema`},EntityAcceleratorParticipation:{modulePath:`entity/accelerator-participation`,schemaName:`EntityAcceleratorParticipationSchema`},EntityAcquisition:{modulePath:`entity/acquisition`,schemaName:`EntityAcquisitionSchema`},EntityAcquisitionEvidence:{modulePath:`entity/acquisition-evidence`,schemaName:`EntityAcquisitionEvidenceSchema`},EntityAcquisitionRole:{modulePath:`entity/acquisition-role`,schemaName:`EntityAcquisitionRoleSchema`},EntityAcquisitionStage:{modulePath:`entity/acquisition-stage`,schemaName:`EntityAcquisitionStageSchema`},EntityAliasType:{modulePath:`entity/alias-type`,schemaName:`EntityAliasTypeSchema`},EntityBrand:{modulePath:`entity/brand`,schemaName:`EntityBrandSchema`},EntityClassification:{modulePath:`entity/classification`,schemaName:`EntityClassificationSchema`},EntityClassificationInactiveTagOverride:{modulePath:`entity/classification-inactive-tag-override`,schemaName:`EntityClassificationInactiveTagOverrideSchema`},EntityClassificationSuggestion:{modulePath:`entity/classification-suggestion`,schemaName:`EntityClassificationSuggestionSchema`},EntityComparisonSignals:{modulePath:`entity/comparison-signals`,schemaName:`EntityComparisonSignalsSchema`},EntityDetail:{modulePath:`entity/detail`,schemaName:`EntityDetailSchema`},EntityDetailBatch:{modulePath:`entity/detail-batch`,schemaName:`EntityDetailBatchSchema`},EntityEnrichment:{modulePath:`entity/enrichment`,schemaName:`EntityEnrichmentSchema`},EntityFilter:{modulePath:`entity/filter`,schemaName:`EntityFilterSchema`},EntityFilterChoice:{modulePath:`entity/filter-choice`,schemaName:`EntityFilterChoiceSchema`},EntityFilterControlType:{modulePath:`entity/filter-control-type`,schemaName:`EntityFilterControlTypeSchema`},EntityFilterEntry:{modulePath:`entity/filter-entry`,schemaName:`EntityFilterEntrySchema`},EntityFilterHeadquartersCountry:{modulePath:`entity/filter-headquarters-country`,schemaName:`EntityFilterHeadquartersCountrySchema`},EntityFilterHeadquartersOptionSet:{modulePath:`entity/filter-headquarters-option-set`,schemaName:`EntityFilterHeadquartersOptionSetSchema`},EntityFilterHeadquartersStateCity:{modulePath:`entity/filter-headquarters-state-city`,schemaName:`EntityFilterHeadquartersStateCitySchema`},EntityFilterLogoOption:{modulePath:`entity/filter-logo-option`,schemaName:`EntityFilterLogoOptionSchema`},EntityFilterMeta:{modulePath:`entity/filter-meta`,schemaName:`EntityFilterMetaSchema`},EntityFilterOptionMode:{modulePath:`entity/filter-option-mode`,schemaName:`EntityFilterOptionModeSchema`},EntityFilterOptionSet:{modulePath:`entity/filter-option-set`,schemaName:`EntityFilterOptionSetSchema`},EntityFilterOptionSetMeta:{modulePath:`entity/filter-option-set-meta`,schemaName:`EntityFilterOptionSetMetaSchema`},EntityFilterRefinedFilters:{modulePath:`entity/filter-refined-filters`,schemaName:`EntityFilterRefinedFiltersSchema`},EntityFilterScope:{modulePath:`entity/filter-scope`,schemaName:`EntityFilterScopeSchema`},EntityFilterSearch:{modulePath:`entity/filter-search`,schemaName:`EntityFilterSearchSchema`},EntityFilterSearchResult:{modulePath:`entity/filter-search-result`,schemaName:`EntityFilterSearchResultSchema`},EntityFilterSortable:{modulePath:`entity/filter-sortable`,schemaName:`EntityFilterSortableSchema`},EntityFilterUiMeta:{modulePath:`entity/filter-ui-meta`,schemaName:`EntityFilterUiMetaSchema`},EntityFundingDetail:{modulePath:`entity/funding-detail`,schemaName:`EntityFundingDetailSchema`},EntityFundraise:{modulePath:`entity/fundraise`,schemaName:`EntityFundraiseSchema`},EntityFundraiseFilterCriteria:{modulePath:`entity/fundraise-filter-criteria`,schemaName:`EntityFundraiseFilterCriteriaSchema`},EntityFundraiseInvestorActivity:{modulePath:`entity/fundraise-investor-activity`,schemaName:`EntityFundraiseInvestorActivitySchema`},EntityFundraiseInvestorJoin:{modulePath:`entity/fundraise-investor-join`,schemaName:`EntityFundraiseInvestorJoinSchema`},EntityFundraiseTransaction:{modulePath:`entity/fundraise-transaction`,schemaName:`EntityFundraiseTransactionSchema`},EntityFundraiseTransactionEntity:{modulePath:`entity/fundraise-transaction-entity`,schemaName:`EntityFundraiseTransactionEntitySchema`},EntityImage:{modulePath:`entity/image`,schemaName:`EntityImageSchema`},EntityInvestorParticipation:{modulePath:`entity/investor-participation`,schemaName:`EntityInvestorParticipationSchema`},EntityList:{modulePath:`entity/list`,schemaName:`EntityListSchema`},EntityListFilter:{modulePath:`entity/list-filter`,schemaName:`EntityListFilterSchema`},EntityListQualityGate:{modulePath:`entity/list-quality-gate`,schemaName:`EntityListQualityGateSchema`},EntityListResearch:{modulePath:`entity/list-research`,schemaName:`EntityListResearchSchema`},EntityLogoType:{modulePath:`entity/logo-type`,schemaName:`EntityLogoTypeSchema`},EntityNameAliasEntityAliasType:{modulePath:`entity/name-alias-entity-alias-type`,schemaName:`EntityNameAliasEntityAliasTypeSchema`},EntityNameAliasPersonAliasType:{modulePath:`entity/name-alias-person-alias-type`,schemaName:`EntityNameAliasPersonAliasTypeSchema`},EntityNaturalSearch:{modulePath:`entity/natural-search`,schemaName:`EntityNaturalSearchSchema`},EntityOperatingStatus:{modulePath:`entity/operating-status`,schemaName:`EntityOperatingStatusSchema`},EntityPersonAssociation:{modulePath:`entity/person-association`,schemaName:`EntityPersonAssociationSchema`},EntityPersonOwner:{modulePath:`entity/person-owner`,schemaName:`EntityPersonOwnerSchema`},EntityRelationship:{modulePath:`entity/relationship`,schemaName:`EntityRelationshipSchema`},EntityRelationshipTypeOption:{modulePath:`entity/relationship-type-option`,schemaName:`EntityRelationshipTypeOptionSchema`},EntityResearch:{modulePath:`entity/research`,schemaName:`EntityResearchSchema`},EntityResearchDetail:{modulePath:`entity/research-detail`,schemaName:`EntityResearchDetailSchema`},EntityResearchFactValue:{modulePath:`entity/research-fact-value`,schemaName:`EntityResearchFactValueSchema`},EntityResearchPublicSource:{modulePath:`entity/research-public-source`,schemaName:`EntityResearchPublicSourceSchema`},EntityResearchSnippet:{modulePath:`entity/research-snippet`,schemaName:`EntityResearchSnippetSchema`},EntityResearchValueType:{modulePath:`entity/research-value-type`,schemaName:`EntityResearchValueTypeSchema`},EntityResolution:{modulePath:`entity/resolution`,schemaName:`EntityResolutionSchema`},EntitySimilarityContext:{modulePath:`entity/similarity-context`,schemaName:`EntitySimilarityContextSchema`},EntitySimilarityOrigin:{modulePath:`entity/similarity-origin`,schemaName:`EntitySimilarityOriginSchema`},EntitySimilarityResult:{modulePath:`entity/similarity-result`,schemaName:`EntitySimilarityResultSchema`},EntitySimilaritySummary:{modulePath:`entity/similarity-summary`,schemaName:`EntitySimilaritySummarySchema`},EntitySitemap:{modulePath:`entity/sitemap`,schemaName:`EntitySitemapSchema`},EntityTag:{modulePath:`entity/tag`,schemaName:`EntityTagSchema`},EntityText:{modulePath:`entity/text`,schemaName:`EntityTextSchema`},EntityTextBundle:{modulePath:`entity/text-bundle`,schemaName:`EntityTextBundleSchema`},EntityType:{modulePath:`entity/type`,schemaName:`EntityTypeSchema`},EntityTypeAlias:{modulePath:`entity/type-alias`,schemaName:`EntityTypeAliasSchema`},EntityTypeGroup:{modulePath:`entity/type-group`,schemaName:`EntityTypeGroupSchema`},EntityTypeGroupMembership:{modulePath:`entity/type-group-membership`,schemaName:`EntityTypeGroupMembershipSchema`},EntityUrlCrawlCdnProvider:{modulePath:`entity/url-crawl-cdn-provider`,schemaName:`EntityUrlCrawlCdnProviderSchema`},EntityUrlCrawlRenderMode:{modulePath:`entity/url-crawl-render-mode`,schemaName:`EntityUrlCrawlRenderModeSchema`},EntityUrlLink:{modulePath:`entity/url-link`,schemaName:`EntityUrlLinkSchema`},EntityUrlType:{modulePath:`entity/url-type`,schemaName:`EntityUrlTypeSchema`},EntityValuationDataConfidence:{modulePath:`entity/valuation-data-confidence`,schemaName:`EntityValuationDataConfidenceSchema`},EntityValuationDerivation:{modulePath:`entity/valuation-derivation`,schemaName:`EntityValuationDerivationSchema`},EntityValuationSource:{modulePath:`entity/valuation-source`,schemaName:`EntityValuationSourceSchema`},EntityValuationTimeSeriesPoint:{modulePath:`entity/valuation-time-series-point`,schemaName:`EntityValuationTimeSeriesPointSchema`},FederatedNaturalSearch:{modulePath:`federated/natural-search`,schemaName:`FederatedNaturalSearchSchema`},FederatedSearch:{modulePath:`federated/search`,schemaName:`FederatedSearchSchema`},FederatedSearchProvenance:{modulePath:`federated/search-provenance`,schemaName:`FederatedSearchProvenanceSchema`},FederatedSearchRejection:{modulePath:`federated/search-rejection`,schemaName:`FederatedSearchRejectionSchema`},FundingStage:{modulePath:`funding/stage`,schemaName:`FundingStageSchema`},FundraiseDataConfidence:{modulePath:`fundraise/data-confidence`,schemaName:`FundraiseDataConfidenceSchema`},FundraiseFinancialInstrumentType:{modulePath:`fundraise/financial-instrument-type`,schemaName:`FundraiseFinancialInstrumentTypeSchema`},FundraiseInvestmentAttribution:{modulePath:`fundraise/investment-attribution`,schemaName:`FundraiseInvestmentAttributionSchema`},FundraiseInvestmentAttributionType:{modulePath:`fundraise/investment-attribution-type`,schemaName:`FundraiseInvestmentAttributionTypeSchema`},FundraiseInvestmentEvidence:{modulePath:`fundraise/investment-evidence`,schemaName:`FundraiseInvestmentEvidenceSchema`},FundraiseTransactionStatus:{modulePath:`fundraise/transaction-status`,schemaName:`FundraiseTransactionStatusSchema`},GithubRepo:{modulePath:`github/repo`,schemaName:`GithubRepoSchema`},HarnessChassis:{modulePath:`harness/chassis`,schemaName:`HarnessChassisSchema`},HarnessLlmApi:{modulePath:`harness/llm-api`,schemaName:`HarnessLlmApiSchema`},HarnessRun:{modulePath:`harness/run`,schemaName:`HarnessRunSchema`},HarnessRunCreate:{modulePath:`harness/run-create`,schemaName:`HarnessRunCreateSchema`},HarnessRunDetail:{modulePath:`harness/run-detail`,schemaName:`HarnessRunDetailSchema`},HarnessRunEnvironment:{modulePath:`harness/run-environment`,schemaName:`HarnessRunEnvironmentSchema`},HarnessRunLane:{modulePath:`harness/run-lane`,schemaName:`HarnessRunLaneSchema`},HarnessRunProgress:{modulePath:`harness/run-progress`,schemaName:`HarnessRunProgressSchema`},HarnessRunStatus:{modulePath:`harness/run-status`,schemaName:`HarnessRunStatusSchema`},HarnessRunType:{modulePath:`harness/run-type`,schemaName:`HarnessRunTypeSchema`},HarnessTaskInput:{modulePath:`harness/task`,schemaName:`HarnessTaskSchema`},HarnessTaskInputType:{modulePath:`harness/task-input-type`,schemaName:`HarnessTaskInputTypeSchema`},HarnessTaskPlan:{modulePath:`harness/task-plan`,schemaName:`HarnessTaskPlanSchema`},HarnessTaskPlanStep:{modulePath:`harness/task-plan-step`,schemaName:`HarnessTaskPlanStepSchema`},HarnessTaskStep:{modulePath:`harness/task-step`,schemaName:`HarnessTaskStepSchema`},HarnessTaskWriteGuidance:{modulePath:`harness/task-write-guidance`,schemaName:`HarnessTaskWriteGuidanceSchema`},HelpCitation:{modulePath:`help/citation`,schemaName:`HelpCitationSchema`},HelpResolution:{modulePath:`help/resolution`,schemaName:`HelpResolutionSchema`},HelpResolutionOutcome:{modulePath:`help/resolution-outcome`,schemaName:`HelpResolutionOutcomeSchema`},HelpScope:{modulePath:`help/scope`,schemaName:`HelpScopeSchema`},HelpSourceType:{modulePath:`help/source-type`,schemaName:`HelpSourceTypeSchema`},Identification:{modulePath:`identification/identification`,schemaName:`IdentificationSchema`},IdentificationCandidate:{modulePath:`identification/candidate`,schemaName:`IdentificationCandidateSchema`},IdentificationSubject:{modulePath:`identification/subject`,schemaName:`IdentificationSubjectSchema`},IntRange:{modulePath:`int/range`,schemaName:`IntRangeSchema`},InvestorActivityFilter:{modulePath:`investor/activity-filter`,schemaName:`InvestorActivityFilterSchema`},JobEnqueue:{modulePath:`job/enqueue`,schemaName:`JobEnqueueSchema`},JobState:{modulePath:`job/state`,schemaName:`JobStateSchema`},JsonValue:{modulePath:`http/json-value`,schemaName:`JsonValueSchema`},LinkSearch:{modulePath:`link/search`,schemaName:`LinkSearchSchema`},LogoAccuracy:{modulePath:`logo/accuracy`,schemaName:`LogoAccuracySchema`},LogoAccuracyReference:{modulePath:`logo/accuracy-reference`,schemaName:`LogoAccuracyReferenceSchema`},LookupJob:{modulePath:`lookup/job`,schemaName:`LookupJobSchema`},LookupJobMention:{modulePath:`lookup/job-mention`,schemaName:`LookupJobMentionSchema`},LookupJobMutation:{modulePath:`lookup/job-mutation`,schemaName:`LookupJobMutationSchema`},LookupMention:{modulePath:`lookup/mention`,schemaName:`LookupMentionSchema`},MediaObjectType:{modulePath:`media/object-type`,schemaName:`MediaObjectTypeSchema`},MediaUpload:{modulePath:`media/upload`,schemaName:`MediaUploadSchema`},MentionLookup:{modulePath:`mention/lookup`,schemaName:`MentionLookupSchema`},NaturalSearch:{modulePath:`natural/search`,schemaName:`NaturalSearchSchema`},NaturalSearchResult:{modulePath:`natural/search-result`,schemaName:`NaturalSearchResultSchema`},News:{modulePath:`news/news`,schemaName:`NewsSchema`},NewsCandidateScore:{modulePath:`news/candidate-score`,schemaName:`NewsCandidateScoreSchema`},NewsDetail:{modulePath:`news/detail`,schemaName:`NewsDetailSchema`},NewsEntityMention:{modulePath:`news/entity-mention`,schemaName:`NewsEntityMentionSchema`},NewsFeedback:{modulePath:`news/feedback`,schemaName:`NewsFeedbackSchema`},NewsFeedbackAcknowledgement:{modulePath:`news/feedback-acknowledgement`,schemaName:`NewsFeedbackAcknowledgementSchema`},NewsMatchStatus:{modulePath:`news/match-status`,schemaName:`NewsMatchStatusSchema`},NewsPublishedEvent:{modulePath:`news/published-event`,schemaName:`NewsPublishedEventSchema`},NewsResolvedEntityLink:{modulePath:`news/resolved-entity-link`,schemaName:`NewsResolvedEntityLinkSchema`},NewsResolvedPersonLink:{modulePath:`news/resolved-person-link`,schemaName:`NewsResolvedPersonLinkSchema`},NewsSourceUrlConflict:{modulePath:`news/source-url-conflict`,schemaName:`NewsSourceUrlConflictSchema`},NewsSubscription:{modulePath:`news/subscription`,schemaName:`NewsSubscriptionSchema`},NewsSubscriptionArguments:{modulePath:`news/subscription-arguments`,schemaName:`NewsSubscriptionArgumentsSchema`},NewsSubscriptionDelivery:{modulePath:`news/subscription-delivery`,schemaName:`NewsSubscriptionDeliverySchema`},NewsSubscriptionDeliveryMode:{modulePath:`news/subscription-delivery-mode`,schemaName:`NewsSubscriptionDeliveryModeSchema`},NewsSubscriptionDeliveryStatus:{modulePath:`news/subscription-delivery-status`,schemaName:`NewsSubscriptionDeliveryStatusSchema`},NewsSubscriptionDetail:{modulePath:`news/subscription-detail`,schemaName:`NewsSubscriptionDetailSchema`},NewsSubscriptionEndpoint:{modulePath:`news/subscription-endpoint`,schemaName:`NewsSubscriptionEndpointSchema`},NewsSubscriptionEvent:{modulePath:`news/subscription-event`,schemaName:`NewsSubscriptionEventSchema`},NewsSubscriptionGrant:{modulePath:`news/subscription-grant`,schemaName:`NewsSubscriptionGrantSchema`},NewsSubscriptionKey:{modulePath:`news/subscription-key`,schemaName:`NewsSubscriptionKeySchema`},NewsSubscriptionTestEvent:{modulePath:`news/subscription-test-event`,schemaName:`NewsSubscriptionTestEventSchema`},PageableObject:{modulePath:`pageable/object`,schemaName:`PageableObjectSchema`},PageBlogPost:{modulePath:`pagination/schemas`,schemaName:`PageBlogPostSchema`},PageClassification:{modulePath:`pagination/schemas`,schemaName:`PageClassificationSchema`},PageEmployeeCount:{modulePath:`pagination/schemas`,schemaName:`PageEmployeeCountSchema`},PageEntity:{modulePath:`pagination/schemas`,schemaName:`PageEntitySchema`},PageEntityAcquisition:{modulePath:`pagination/schemas`,schemaName:`PageEntityAcquisitionSchema`},PageEntityDetail:{modulePath:`pagination/schemas`,schemaName:`PageEntityDetailSchema`},PageEntityFundraiseInvestorJoin:{modulePath:`pagination/schemas`,schemaName:`PageEntityFundraiseInvestorJoinSchema`},PageEntityFundraiseTransaction:{modulePath:`pagination/schemas`,schemaName:`PageEntityFundraiseTransactionSchema`},PageEntityInvestorParticipation:{modulePath:`pagination/schemas`,schemaName:`PageEntityInvestorParticipationSchema`},PageEntityList:{modulePath:`pagination/schemas`,schemaName:`PageEntityListSchema`},PageEntityPersonAssociation:{modulePath:`pagination/schemas`,schemaName:`PageEntityPersonAssociationSchema`},PageEntityRelationship:{modulePath:`pagination/schemas`,schemaName:`PageEntityRelationshipSchema`},PageEntityResearchDetail:{modulePath:`pagination/schemas`,schemaName:`PageEntityResearchDetailSchema`},PageEntityResearchSnippet:{modulePath:`pagination/schemas`,schemaName:`PageEntityResearchSnippetSchema`},PageEntitySimilarityResult:{modulePath:`pagination/schemas`,schemaName:`PageEntitySimilarityResultSchema`},PageEntitySimilaritySummary:{modulePath:`pagination/schemas`,schemaName:`PageEntitySimilaritySummarySchema`},PageEntityText:{modulePath:`pagination/schemas`,schemaName:`PageEntityTextSchema`},PageEntityUrlLink:{modulePath:`pagination/schemas`,schemaName:`PageEntityUrlLinkSchema`},PageEntityValuationTimeSeriesPoint:{modulePath:`pagination/schemas`,schemaName:`PageEntityValuationTimeSeriesPointSchema`},PageGithubRepo:{modulePath:`pagination/schemas`,schemaName:`PageGithubRepoSchema`},PageNews:{modulePath:`pagination/schemas`,schemaName:`PageNewsSchema`},PagePerson:{modulePath:`pagination/schemas`,schemaName:`PagePersonSchema`},PagePersonDetail:{modulePath:`pagination/schemas`,schemaName:`PagePersonDetailSchema`},PagePersonInvestment:{modulePath:`pagination/schemas`,schemaName:`PagePersonInvestmentSchema`},PagePersonInvestorParticipation:{modulePath:`pagination/schemas`,schemaName:`PagePersonInvestorParticipationSchema`},PagePersonSimilarityResult:{modulePath:`pagination/schemas`,schemaName:`PagePersonSimilarityResultSchema`},PagePublication:{modulePath:`pagination/schemas`,schemaName:`PagePublicationSchema`},PageResultEntityList:{modulePath:`pagination/schemas`,schemaName:`PageResultEntityListSchema`},PageResultNews:{modulePath:`pagination/schemas`,schemaName:`PageResultNewsSchema`},PageResultPerson:{modulePath:`pagination/schemas`,schemaName:`PageResultPersonSchema`},PageUniqueId:{modulePath:`pagination/schemas`,schemaName:`PageUniqueIdSchema`},Person:{modulePath:`person/person`,schemaName:`PersonSchema`},PersonAliasType:{modulePath:`person/alias-type`,schemaName:`PersonAliasTypeSchema`},PersonDetail:{modulePath:`person/detail`,schemaName:`PersonDetailSchema`},PersonEnrichment:{modulePath:`person/enrichment`,schemaName:`PersonEnrichmentSchema`},PersonFilter:{modulePath:`person/filter`,schemaName:`PersonFilterSchema`},PersonGraph:{modulePath:`person/graph`,schemaName:`PersonGraphSchema`},PersonGraphCareerContext:{modulePath:`person/graph-career-context`,schemaName:`PersonGraphCareerContextSchema`},PersonGraphCoInvestor:{modulePath:`person/graph-co-investor`,schemaName:`PersonGraphCoInvestorSchema`},PersonGraphMember:{modulePath:`person/graph-member`,schemaName:`PersonGraphMemberSchema`},PersonGraphSimilarEntity:{modulePath:`person/graph-similar-entity`,schemaName:`PersonGraphSimilarEntitySchema`},PersonImage:{modulePath:`person/image`,schemaName:`PersonImageSchema`},PersonInvestedCompany:{modulePath:`person/invested-company`,schemaName:`PersonInvestedCompanySchema`},PersonInvestment:{modulePath:`person/investment`,schemaName:`PersonInvestmentSchema`},PersonInvestorParticipation:{modulePath:`person/investor-participation`,schemaName:`PersonInvestorParticipationSchema`},PersonListArrayFilter:{modulePath:`person/list-array-filter`,schemaName:`PersonListArrayFilterSchema`},PersonLookupBatch:{modulePath:`person/lookup-batch`,schemaName:`PersonLookupBatchSchema`},PersonNaturalSearch:{modulePath:`person/natural-search`,schemaName:`PersonNaturalSearchSchema`},PersonNaturalSearchResult:{modulePath:`person/natural-search-result`,schemaName:`PersonNaturalSearchResultSchema`},PersonSearchInterpretation:{modulePath:`person/search-interpretation`,schemaName:`PersonSearchInterpretationSchema`},PersonSimilarityContext:{modulePath:`person/similarity-context`,schemaName:`PersonSimilarityContextSchema`},PersonSimilarityOrigin:{modulePath:`person/similarity-origin`,schemaName:`PersonSimilarityOriginSchema`},PersonSimilarityResult:{modulePath:`person/similarity-result`,schemaName:`PersonSimilarityResultSchema`},ProblemDetail:{modulePath:`http/problem-detail`,schemaName:`ProblemDetailSchema`},ProblemResolution:{modulePath:`problem/resolution`,schemaName:`ProblemResolutionSchema`},ProblemType:{modulePath:`problem/type`,schemaName:`ProblemTypeSchema`},ProseProblem:{modulePath:`prose/problem`,schemaName:`ProseProblemSchema`},ProseViolation:{modulePath:`prose/violation`,schemaName:`ProseViolationSchema`},Publication:{modulePath:`publication/publication`,schemaName:`PublicationSchema`},PublicationFacet:{modulePath:`publication/facet`,schemaName:`PublicationFacetSchema`},PublicationRelation:{modulePath:`publication/relation`,schemaName:`PublicationRelationSchema`},PublicationType:{modulePath:`publication/type`,schemaName:`PublicationTypeSchema`},ReasoningEffort:{modulePath:`reasoning/effort`,schemaName:`ReasoningEffortSchema`},RedirectSlugPath:{modulePath:`redirect/redirect-slug-path`,schemaName:`RedirectSlugPathSchema`},RefinementMeta:{modulePath:`refinement/meta`,schemaName:`RefinementMetaSchema`},RelationshipDirection:{modulePath:`relationship/direction`,schemaName:`RelationshipDirectionSchema`},ResearchAllowance:{modulePath:`research/allowance`,schemaName:`ResearchAllowanceSchema`},ResearchAllowanceUsage:{modulePath:`research/allowance-usage`,schemaName:`ResearchAllowanceUsageSchema`},ResearchDerivedBucket:{modulePath:`research/derived-bucket`,schemaName:`ResearchDerivedBucketSchema`},ResearchDerivedRange:{modulePath:`research/derived-range`,schemaName:`ResearchDerivedRangeSchema`},ResearchDetailType:{modulePath:`research/detail-type`,schemaName:`ResearchDetailTypeSchema`},ResearchFinding:{modulePath:`research/finding`,schemaName:`ResearchFindingSchema`},ResearchParagraphShape:{modulePath:`research/paragraph-shape`,schemaName:`ResearchParagraphShapeSchema`},ResearchSnippetType:{modulePath:`research/snippet-type`,schemaName:`ResearchSnippetTypeSchema`},ResearchValueRange:{modulePath:`research/value-range`,schemaName:`ResearchValueRangeSchema`},ResearchValueShapeType:{modulePath:`research/value-shape-type`,schemaName:`ResearchValueShapeTypeSchema`},ResolvedHandle:{modulePath:`resolved/handle`,schemaName:`ResolvedHandleSchema`},RoundLabel:{modulePath:`round/label`,schemaName:`RoundLabelSchema`},Search:{modulePath:`search/search`,schemaName:`SearchSchema`},SearchAnswer:{modulePath:`search/answer`,schemaName:`SearchAnswerSchema`},SearchAnswerCitation:{modulePath:`search/answer-citation`,schemaName:`SearchAnswerCitationSchema`},SearchAnswerParagraph:{modulePath:`search/answer-paragraph`,schemaName:`SearchAnswerParagraphSchema`},SearchCacheMode:{modulePath:`search/cache-mode`,schemaName:`SearchCacheModeSchema`},SearchDuplicateCandidateScore:{modulePath:`search/duplicate-candidate-score`,schemaName:`SearchDuplicateCandidateScoreSchema`},SearchEvidenceSource:{modulePath:`search/evidence-source`,schemaName:`SearchEvidenceSourceSchema`},SearchHit:{modulePath:`search/hit`,schemaName:`SearchHitSchema`},SearchIntent:{modulePath:`search/intent`,schemaName:`SearchIntentSchema`},SearchInterpretation:{modulePath:`search/interpretation`,schemaName:`SearchInterpretationSchema`},SearchInvestment:{modulePath:`search/investment`,schemaName:`SearchInvestmentSchema`},SearchJudgment:{modulePath:`search/judgment`,schemaName:`SearchJudgmentSchema`},SearchLayer:{modulePath:`search/layer`,schemaName:`SearchLayerSchema`},SearchMode:{modulePath:`search/mode`,schemaName:`SearchModeSchema`},SearchModeExecution:{modulePath:`search/mode-execution`,schemaName:`SearchModeExecutionSchema`},SearchOrderingEntityFilterSortable:{modulePath:`search/ordering-entity-filter-sortable`,schemaName:`SearchOrderingEntityFilterSortableSchema`},SearchOrderingPersonSortField:{modulePath:`search/ordering-person-sort-field`,schemaName:`SearchOrderingPersonSortFieldSchema`},SearchPassage:{modulePath:`search/passage`,schemaName:`SearchPassageSchema`},SearchQualifier:{modulePath:`search/qualifier`,schemaName:`SearchQualifierSchema`},SearchQualifierOption:{modulePath:`search/qualifier-option`,schemaName:`SearchQualifierOptionSchema`},SearchRelevance:{modulePath:`search/relevance`,schemaName:`SearchRelevanceSchema`},SecCompany:{modulePath:`sec/company`,schemaName:`SecCompanySchema`},SecListingProspectus:{modulePath:`sec/listing-prospectus`,schemaName:`SecListingProspectusSchema`},SharedSearch:{modulePath:`shared/search`,schemaName:`SharedSearchSchema`},SharedSearchList:{modulePath:`shared/search-list`,schemaName:`SharedSearchListSchema`},SharedSearchMutation:{modulePath:`shared/search-mutation`,schemaName:`SharedSearchMutationSchema`},SlugLocation:{modulePath:`slug/location`,schemaName:`SlugLocationSchema`},SlugResource:{modulePath:`redirect/slug-resource`,schemaName:`SlugResourceSchema`},SortObject:{modulePath:`sort/object`,schemaName:`SortObjectSchema`},SortOrderEntityFilterSortable:{modulePath:`sort/order-entity-filter-sortable`,schemaName:`SortOrderEntityFilterSortableSchema`},SortOrderPersonSortField:{modulePath:`sort/order-person-sort-field`,schemaName:`SortOrderPersonSortFieldSchema`},SourceDocumentList:{modulePath:`source/document-list`,schemaName:`SourceDocumentListSchema`},StageFrequency:{modulePath:`stage/frequency`,schemaName:`StageFrequencySchema`},StandardizedClassification:{modulePath:`standardized/classification`,schemaName:`StandardizedClassificationSchema`},StrictUrlLookupConflict:{modulePath:`strict/url-lookup-conflict`,schemaName:`StrictUrlLookupConflictSchema`},SuppressionReason:{modulePath:`suppression/reason`,schemaName:`SuppressionReasonSchema`},SystemBuild:{modulePath:`system/system-build`,schemaName:`SystemBuildSchema`},SystemBuildDetail:{modulePath:`system/system-build-detail`,schemaName:`SystemBuildDetailSchema`},SystemGlobalMetrics:{modulePath:`system/global-metrics`,schemaName:`SystemGlobalMetricsSchema`},SystemStatus:{modulePath:`system/status`,schemaName:`SystemStatusSchema`},TextTypeOption:{modulePath:`text/type-option`,schemaName:`TextTypeOptionSchema`},UniqueId:{modulePath:`unique/id`,schemaName:`UniqueIdSchema`},UniqueIdOwnerScope:{modulePath:`unique/id-owner-scope`,schemaName:`UniqueIdOwnerScopeSchema`},UniqueIdType:{modulePath:`unique/id-type`,schemaName:`UniqueIdTypeSchema`},UniqueIdTypeAlias:{modulePath:`unique/id-type-alias`,schemaName:`UniqueIdTypeAliasSchema`},Uptime:{modulePath:`uptime/uptime`,schemaName:`UptimeSchema`},UrlDuplicateConflict:{modulePath:`url/duplicate-conflict`,schemaName:`UrlDuplicateConflictSchema`},UrlDuplicateJoin:{modulePath:`url/duplicate-join`,schemaName:`UrlDuplicateJoinSchema`},UrlMatchMode:{modulePath:`url/match-mode`,schemaName:`UrlMatchModeSchema`},UrlTypeAlias:{modulePath:`url/type-alias`,schemaName:`UrlTypeAliasSchema`},ValuationType:{modulePath:`valuation/type`,schemaName:`ValuationTypeSchema`},WebSearch:{modulePath:`web/search`,schemaName:`WebSearchSchema`}});var B=[`get`,`post`,`put`,`patch`,`delete`],V={get:`GET`,post:`POST`,put:`PUT`,patch:`PATCH`,delete:`DELETE`},H=e=>V[e],U=[`oauth`,`start`,`poll`,`acknowledge`,`revoke`],W=t({name:u().regex(/^[A-Z][A-Z0-9_]*$/u)}),G=r([i(`private`),d({scope:u().optional(),value:u().optional()})]),K=a(()=>d({$ref:u().optional(),description:u().optional(),type:r([u(),o(u())]).optional(),format:u().optional(),default:m.optional(),enum:o(m).optional(),"x-extensible-enum":o(m).optional(),readOnly:c().optional(),items:K.optional(),minItems:l().int().nonnegative().optional(),maxItems:l().int().nonnegative().optional(),properties:n(u(),K).optional(),required:o(u()).optional(),oneOf:o(K).optional(),anyOf:o(K).optional(),allOf:o(K).optional(),"x-aventure-visibility":G.optional(),"x-aventure-cli-conflicts":o(o(u().min(1)).min(2)).min(1).optional(),"x-aventure-env":W.optional(),"x-aventure-detail":i(!0).optional()})),de=d({in:u(),name:u(),required:c().optional(),description:u().optional(),schema:K.optional(),"x-aventure-visibility":G.optional(),"x-aventure-legacy-name":t({name:u().trim().min(1)}).optional()}).superRefine((e,t)=>{let n=e[`x-aventure-legacy-name`]?.name;n!==void 0&&(e.in!==`path`&&t.addIssue({code:`custom`,path:[`x-aventure-legacy-name`],message:`x-aventure-legacy-name is valid only for path parameters`}),n===e.name&&t.addIssue({code:`custom`,path:[`x-aventure-legacy-name`,`name`],message:`Legacy path parameter name must differ from its canonical name`}))}),q=n(u(),d({schema:K.optional()})),fe=d({description:u().optional(),content:q.optional(),"x-aventure-standard-response":c().optional()}),J=d({description:u().optional(),required:c().optional(),content:q.optional()}),pe=t({auth:s([`none`,`read`]).optional()}).optional(),Y=r([i(``),u().regex(/^(?:\/(?:[^~/]|~[01])*)+$/)]),me=t({readOperationId:u().min(1),writePointer:Y,readPointer:Y}),he=u().trim().regex(/^[a-z0-9]+(?:-[a-z0-9]+)* [a-z0-9]+(?:-[a-z0-9]+)*$/u),X=u().regex(/^[a-z][A-Za-z0-9]*$/u),ge=u().regex(/^--(?:no-)?[a-z][a-z0-9]*(?:-[a-z0-9]+)*$/u),_e=t({command:he,role:s(U),summary:u().trim().min(1).optional(),description:u().trim().min(1).optional(),bodyOption:o(X).min(1).optional(),localOption:o(t({optionKey:X,flag:ge,description:u().trim().min(1)})).min(1).optional()}).superRefine((t,n)=>{let r=[t.bodyOption??[],(t.localOption??[]).map(e=>e.optionKey),(t.localOption??[]).map(e=>e.flag)].some(e=>new Set(e).size!==e.length),i=(t.localOption??[]).some(t=>new e(t.flag).attributeName()!==t.optionKey);(r||i)&&n.addIssue({code:`custom`,message:`Composite CLI options must be unique and match their local flags`})}).optional(),ve=d({operationId:u(),summary:u().optional(),description:u().optional(),tags:o(u()).optional(),deprecated:c().optional(),hidden:c().optional(),security:o(n(u(),o(u()))).optional(),parameters:o(de).optional(),requestBody:J.optional(),responses:n(u(),fe),"x-aventure-visibility":G.optional(),"x-aventure-tool":pe,"x-aventure-mutation-readback":me.optional(),"x-aventure-cli-composite":_e}).superRefine((e,t)=>{let n=e.parameters??[];for(let[e,r]of n.entries()){let i=r[`x-aventure-legacy-name`]?.name;r.in===`path`&&i!==void 0&&n.some((t,n)=>n!==e&&t.in===`path`&&(t.name===i||t[`x-aventure-legacy-name`]?.name===i))&&t.addIssue({code:`custom`,path:[`parameters`,e,`x-aventure-legacy-name`,`name`],message:`Legacy path parameter name '${i}' collides with another declared path parameter`})}}),ye=d(Object.fromEntries(B.map(e=>[e,ve.optional()]))),be=d({$ref:u().optional(),description:u().optional(),type:r([u(),o(u())]).optional(),format:u().optional(),default:m.optional(),enum:o(m).optional(),"x-extensible-enum":o(m).optional(),readOnly:c().optional(),items:K.optional(),minItems:l().int().nonnegative().optional(),maxItems:l().int().nonnegative().optional(),oneOf:o(K).optional(),anyOf:o(K).optional(),allOf:o(K).optional(),properties:n(u(),K).optional(),required:o(u()).optional(),"x-aventure-visibility":G.optional(),"x-aventure-cli-conflicts":o(o(u().min(1)).min(2)).min(1).optional(),"x-aventure-env":W.optional(),"x-aventure-detail":i(!0).optional(),"x-aventure-noun":t({one:u().trim().min(1),other:u().trim().min(1)}).optional()});d({info:d({description:u().optional()}).optional(),tags:o(d({name:u(),description:u().optional()})).optional(),paths:n(u(),ye),webhooks:n(u(),d({post:d({description:u(),requestBody:J})})).optional(),components:d({schemas:n(u(),be)})}).superRefine((e,t)=>{for(let[n,r]of Object.entries(e.paths))for(let i of B){let a=r[i]?.[`x-aventure-mutation-readback`];a!==void 0&&Z(e.paths,a.readOperationId)===null&&t.addIssue({code:`custom`,path:[`paths`,n,i,`x-aventure-mutation-readback`,`readOperationId`],message:`mutation readback names '${a.readOperationId}', which no operation in this document emits`})}});var xe=new Set([`page`,`size`,`sort`]);function Z(e,t){for(let[n,r]of Object.entries(e))for(let e of B){let i=r[e];if(i?.operationId===t)return{method:e,template:n,operation:i}}return null}function Se(e,t,n){let r=g(n),i=e[r]?.[t];if(i)return{method:t,template:r,operation:i};for(let[n,i]of Object.entries(e)){let e=i[t];if(e&&_(n,r))return{method:t,template:n,operation:e}}return null}function Ce(e,t,n=e){return e.replace(/\{([^}]+)}/g,(...e)=>{let r=e[1],i=t[r];if(i==null)throw Error(`Missing path parameter '${r}' for ${n}`);return encodeURIComponent(String(i))})}function we(e,t,n){let r=t;for(let i of e.parameters??[]){let e=i[`x-aventure-legacy-name`]?.name;if(i.in===`path`&&e!==void 0&&Object.hasOwn(t,e)){if(Object.hasOwn(t,i.name))throw Error(`Path parameters '${i.name}' and legacy alias '${e}' were both supplied for ${n}`);r===t&&(r={...t}),r[i.name]=t[e],delete r[e]}}return r}function Te(e,t){let n={};for(let r of e.parameters??[]){if(r.in!==`query`||xe.has(r.name))continue;let e=t?.[r.name]??Ee(r.schema?.default);e!==void 0&&(n[r.name]=e)}return Object.keys(n).length===0?void 0:n}function Ee(e){if(typeof e==`string`||typeof e==`number`||typeof e==`boolean`||Array.isArray(e)&&e.every(e=>typeof e==`string`||typeof e==`number`||typeof e==`boolean`))return e}function De(e){return e?.$ref?.startsWith(`#/components/schemas/`)===!0?e.$ref.slice(21):void 0}function Oe(e){return e===`write`||e===`delete`}function Q(e,t){return e===`DELETE`||t===`delete`}var ke=`Shell-safe input: single-quote string flag values that contain $; use --from-file or stdin for JSON bodies, multiline text, and free text with currency amounts.`;function Ae(e,t){let n=e===`array`?t:e;return n===void 0||n===`string`}function je(e){return e!==`/v1/auth/api-key`&&!/^\/v1\/sitemap(?:\/|$)/u.test(e)}function Me(e){let t=Object.entries(e.responses).filter(([e])=>e.startsWith(`2`));return t.length>0&&t.every(([,e])=>Object.values(e.content??{}).some(e=>Ne(e.schema)))}function Ne(e){return e?.format===`byte`||e?.format===`binary`}function Pe(e){return`aventure_${e}`}function $(e){return e.replace(/([a-z0-9])([A-Z])/gu,`$1-$2`).replace(/[^A-Za-z0-9]+/gu,`-`).replace(/^-+|-+$/gu,``).toLowerCase()}var Fe=e=>`--${$(e)}`;export{b as C,g as D,S as E,E as S,x as T,Se as _,Q as a,T as b,je as c,B as d,H as f,Te as g,Z as h,Fe as i,$ as l,we as m,Me as n,Oe as o,Ce as p,Ae as r,Pe as s,ke as t,De as u,ae as v,ie as w,oe as x,w as y};
|
package/dist/mcp-server/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{A as e,M as t,N as n,O as r,_ as i,c as a,d as o,j as s,k as c,l,n as u,t as d,y as f}from"../chunks/esm-kgyHmk-Q.js";import{t as p}from"../chunks/commander-BB7CDPLs.js";import{A as m,B as h,C as g,E as _,F as v,I as y,N as b,O as x,P as S,R as C,S as w,T,_ as ee,a as E,b as D,d as O,f as k,g as A,h as te,i as j,j as M,k as ne,l as re,m as ie,o as N,p as ae,s as oe,t as se,u as ce,v as le,w as ue,y as de}from"../chunks/logging-wfRjU4GX.js";import{A as fe,D as pe,E as P,S as F,T as I,_ as L,b as R,c as me,d as he,f as ge,g as z,h as _e,i as ve,k as ye,l as B,m as be,o as V,p as xe,r as Se,s as Ce,u as H,v as U,w as W,x as we,y as G}from"../chunks/person-owner-BJgNYLKX.js";import{$ as Te,$n as Ee,$t as De,A as Oe,An as ke,Ar as Ae,At as je,B as Me,Bn as Ne,Bt as Pe,C as Fe,Cn as Ie,Cr as Le,Ct as Re,D as ze,Dn as Be,Dr as Ve,Dt as He,E as Ue,En as We,Er as Ge,Et as Ke,F as qe,Fn as Je,Fr as Ye,Ft as Xe,G as Ze,Gn as Qe,Gt as $e,H as et,Hn as tt,Ht as nt,I as rt,In as it,It as at,J as ot,Jn as st,Jt as ct,K as lt,Kn as ut,Kt as dt,L as ft,Ln as pt,Lr as mt,Lt as ht,Mn as gt,Mt as _t,N as vt,Nn as yt,Nr as bt,Nt as xt,O as St,On as Ct,Ot as wt,P as Tt,Pn as Et,Pr as Dt,Pt as Ot,Q as kt,Qn as At,Qt as jt,R as Mt,Rn as Nt,Rt as Pt,S as Ft,Sn as It,Sr as Lt,St as Rt,T as zt,Tn as Bt,Tr as Vt,Tt as Ht,U as Ut,Un as Wt,Ut as Gt,V as Kt,Vn as qt,Vt as Jt,W as Yt,Wn as Xt,Wt as Zt,X as Qt,Xn as $t,Xt as en,Y as tn,Yn as nn,Yt as rn,Z as an,Zn as on,Zt as sn,_ as cn,_n as ln,_r as un,_t as dn,a as fn,an as pn,ar as mn,at as hn,b as gn,bn as _n,br as vn,bt as yn,c as bn,cn as xn,cr as Sn,ct as Cn,d as wn,dn as Tn,dr as En,dt as Dn,en as On,er as kn,et as An,f as jn,fn as Mn,fr as Nn,ft as Pn,g as Fn,gn as In,gr as Ln,h as Rn,hn as zn,hr as Bn,ht as Vn,i as Hn,in as Un,ir as Wn,it as Gn,j as Kn,jn as qn,jr as Jn,jt as Yn,k as Xn,kn as Zn,kr as Qn,kt as $n,l as er,ln as tr,lr as nr,lt as rr,m as ir,mn as ar,mr as or,mt as sr,n as cr,nn as lr,nr as ur,nt as dr,o as fr,on as pr,or as mr,ot as hr,p as gr,pn as _r,pr as vr,pt as yr,q as br,qn as xr,qt as Sr,r as Cr,rn as wr,rr as Tr,rt as Er,s as Dr,sn as Or,sr as kr,st as Ar,t as jr,tn as Mr,tr as Nr,tt as Pr,u as Fr,un as Ir,ur as Lr,ut as Rr,v as zr,vn as Br,vr as Vr,vt as Hr,w as Ur,wn as Wr,wr as Gr,wt as Kr,x as qr,xn as Jr,xr as Yr,xt as Xr,y as Zr,yn as Qr,yr as $r,yt as ei,z as ti,zn as ni,zt as ri}from"../chunks/dist-1DJFVcsM.js";import{c as ii,n as ai,r as oi,s as si,u as ci}from"../chunks/result-envelope-BE0edu_S.js";import{l as li,n as ui,t as di}from"../chunks/env-CeJYsGWg.js";import{i as fi}from"../chunks/package-DfJq3Rui.js";import{t as pi}from"../chunks/provider-catalog-Vn-OYk63.js";import{C as mi,E as hi,S as gi,T as _i,p as vi,u as yi}from"../chunks/tool-policy-DmFqIb8Y.js";import{g as bi,h as xi,i as Si,p as Ci,r as wi,t as Ti}from"../chunks/contract-CscoE6Rw.js";import{n as Ei,t as Di}from"../chunks/mcp-generation-contract-ONtt9CBX.js";import Oi from"crypto";import{Readable as ki}from"stream";import{Buffer as Ai}from"node:buffer";import{fileURLToPath as ji}from"node:url";import{isIP as Mi,isIPv4 as Ni,isIPv6 as Pi}from"node:net";import{createHash as Fi,randomUUID as Ii,timingSafeEqual as Li}from"node:crypto";var Ri={name:`metric_data_point`,countItems:e=>{let t=0;for(let n of e.scopeMetrics)for(let e of n.metrics)t+=e.dataPoints.length;return t}},zi,Bi=c((()=>{(function(e){e[e.DELTA=0]=`DELTA`,e[e.CUMULATIVE=1]=`CUMULATIVE`})(zi||={})})),K,Vi,Hi=c((()=>{(function(e){e.COUNTER=`COUNTER`,e.GAUGE=`GAUGE`,e.HISTOGRAM=`HISTOGRAM`,e.UP_DOWN_COUNTER=`UP_DOWN_COUNTER`,e.OBSERVABLE_COUNTER=`OBSERVABLE_COUNTER`,e.OBSERVABLE_GAUGE=`OBSERVABLE_GAUGE`,e.OBSERVABLE_UP_DOWN_COUNTER=`OBSERVABLE_UP_DOWN_COUNTER`})(K||={}),(function(e){e[e.HISTOGRAM=0]=`HISTOGRAM`,e[e.EXPONENTIAL_HISTOGRAM=1]=`EXPONENTIAL_HISTOGRAM`,e[e.GAUGE=2]=`GAUGE`,e[e.SUM=3]=`SUM`})(Vi||={})}));function Ui(e){let t=Object.keys(e);return t.length===0?``:(t=t.sort(),JSON.stringify(t.map(t=>[t,e[t]])))}function Wi(e){return`${e.name}:${e.version??``}:${e.schemaUrl??``}`}function Gi(e,t){let n,r=new Promise(function(e,r){n=setTimeout(function(){r(new Yi(`Operation timed out.`))},t)});return Promise.race([e,r]).then(e=>(clearTimeout(n),e),e=>{throw clearTimeout(n),e})}function Ki(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function qi(e,t){let n=0,r=e.length-1,i=e.length;for(;r>=n;){let a=n+Math.trunc((r-n)/2);e[a]<t?n=a+1:(i=a,r=a-1)}return i}function Ji(e,t){return e.toLowerCase()===t.toLowerCase()}var Yi,Xi=c((()=>{Yi=class e extends Error{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}}})),Zi,Qi=c((()=>{(function(e){e[e.DROP=0]=`DROP`,e[e.SUM=1]=`SUM`,e[e.LAST_VALUE=2]=`LAST_VALUE`,e[e.HISTOGRAM=3]=`HISTOGRAM`,e[e.EXPONENTIAL_HISTOGRAM=4]=`EXPONENTIAL_HISTOGRAM`})(Zi||={})})),$i,ea=c((()=>{Qi(),$i=class{kind=Zi.DROP;createAccumulation(){}merge(e,t){}diff(e,t){}toMetricData(e,t,n,r){}}}));function ta(e){let t=e.map(()=>0);return t.push(0),{buckets:{boundaries:e,counts:t},sum:0,count:0,hasMinMax:!1,min:1/0,max:-1/0}}var na,ra,ia=c((()=>{Qi(),Hi(),Xi(),na=class{startTime;_boundaries;_recordMinMax;_current;constructor(e,t,n=!0,r=ta(t)){this.startTime=e,this._boundaries=t,this._recordMinMax=n,this._current=r}record(e){if(Number.isNaN(e))return;this._current.count+=1,this._current.sum+=e,this._recordMinMax&&(this._current.min=Math.min(e,this._current.min),this._current.max=Math.max(e,this._current.max),this._current.hasMinMax=!0);let t=qi(this._boundaries,e);this._current.buckets.counts[t]+=1}setStartTime(e){this.startTime=e}toPointValue(){return this._current}},ra=class{kind=Zi.HISTOGRAM;_boundaries;_recordMinMax;constructor(e,t){this._boundaries=e,this._recordMinMax=t}createAccumulation(e){return new na(e,this._boundaries,this._recordMinMax)}merge(e,t){let n=e.toPointValue(),r=t.toPointValue(),i=n.buckets.counts,a=r.buckets.counts,o=Array(i.length);for(let e=0;e<i.length;e++)o[e]=i[e]+a[e];let s=1/0,c=-1/0;return this._recordMinMax&&(n.hasMinMax&&r.hasMinMax?(s=Math.min(n.min,r.min),c=Math.max(n.max,r.max)):n.hasMinMax?(s=n.min,c=n.max):r.hasMinMax&&(s=r.min,c=r.max)),new na(e.startTime,n.buckets.boundaries,this._recordMinMax,{buckets:{boundaries:n.buckets.boundaries,counts:o},count:n.count+r.count,sum:n.sum+r.sum,hasMinMax:this._recordMinMax&&(n.hasMinMax||r.hasMinMax),min:s,max:c})}diff(e,t){let n=e.toPointValue(),r=t.toPointValue(),i=n.buckets.counts,a=r.buckets.counts,o=Array(i.length);for(let e=0;e<i.length;e++)o[e]=a[e]-i[e];return new na(t.startTime,n.buckets.boundaries,this._recordMinMax,{buckets:{boundaries:n.buckets.boundaries,counts:o},count:r.count-n.count,sum:r.sum-n.sum,hasMinMax:!1,min:1/0,max:-1/0})}toMetricData(e,t,n,r){return{descriptor:e,aggregationTemporality:t,dataPointType:Vi.HISTOGRAM,dataPoints:n.map(([t,n])=>{let i=n.toPointValue(),a=e.type===K.GAUGE||e.type===K.UP_DOWN_COUNTER||e.type===K.OBSERVABLE_GAUGE||e.type===K.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:t,startTime:n.startTime,endTime:r,value:{min:i.hasMinMax?i.min:void 0,max:i.hasMinMax?i.max:void 0,sum:a?void 0:i.sum,buckets:i.buckets,count:i.count}}})}}}})),aa,oa,sa=c((()=>{aa=class e{backing;indexBase;indexStart;indexEnd;constructor(e=new oa,t=0,n=0,r=0){this.backing=e,this.indexBase=t,this.indexStart=n,this.indexEnd=r}get offset(){return this.indexStart}get length(){return this.backing.length===0||this.indexEnd===this.indexStart&&this.at(0)===0?0:this.indexEnd-this.indexStart+1}counts(){return Array.from({length:this.length},(e,t)=>this.at(t))}at(e){let t=this.indexBase-this.indexStart;return e<t&&(e+=this.backing.length),e-=t,this.backing.countAt(e)}incrementBucket(e,t){this.backing.increment(e,t)}decrementBucket(e,t){this.backing.decrement(e,t)}trim(){for(let e=0;e<this.length;e++)if(this.at(e)!==0){this.indexStart+=e;break}else if(e===this.length-1){this.indexStart=this.indexEnd=this.indexBase=0;return}for(let e=this.length-1;e>=0;e--)if(this.at(e)!==0){this.indexEnd-=this.length-e-1;break}this._rotate()}downscale(e){this._rotate();let t=1+this.indexEnd-this.indexStart,n=1<<e,r=0,i=0;for(let e=this.indexStart;e<=this.indexEnd;){let a=e%n;a<0&&(a+=n);for(let o=a;o<n&&r<t;o++)this._relocateBucket(i,r),r++,e++;i++}this.indexStart>>=e,this.indexEnd>>=e,this.indexBase=this.indexStart}clone(){return new e(this.backing.clone(),this.indexBase,this.indexStart,this.indexEnd)}_rotate(){let e=this.indexBase-this.indexStart;e!==0&&(e>0?(this.backing.reverse(0,this.backing.length),this.backing.reverse(0,e),this.backing.reverse(e,this.backing.length)):(this.backing.reverse(0,this.backing.length),this.backing.reverse(0,this.backing.length+e)),this.indexBase=this.indexStart)}_relocateBucket(e,t){e!==t&&this.incrementBucket(e,this.backing.emptyBucket(t))}},oa=class e{_counts;constructor(e=[0]){this._counts=e}get length(){return this._counts.length}countAt(e){return this._counts[e]}growTo(e,t,n){let r=Array(e).fill(0);r.splice(n,this._counts.length-t,...this._counts.slice(t)),r.splice(0,t,...this._counts.slice(0,t)),this._counts=r}reverse(e,t){let n=Math.floor((e+t)/2)-e;for(let r=0;r<n;r++){let n=this._counts[e+r];this._counts[e+r]=this._counts[t-r-1],this._counts[t-r-1]=n}}emptyBucket(e){let t=this._counts[e];return this._counts[e]=0,t}increment(e,t){this._counts[e]+=t}decrement(e,t){this._counts[e]>=t?this._counts[e]-=t:this._counts[e]=0}clone(){return new e([...this._counts])}}}));function ca(e){return _a.setFloat64(0,e),{hi:_a.getUint32(0),lo:_a.getUint32(4)}}function la(e){let{hi:t}=ca(e);return((t&da)>>20)-pa}function ua(e){let{hi:t,lo:n}=ca(e);return(t&fa)===0&&n===0}var da,fa,pa,ma,ha,ga,_a,va=c((()=>{da=2146435072,fa=1048575,pa=1023,ma=-1022,ha=pa,ga=2**-1022,_a=new DataView(new ArrayBuffer(8))}));function ya(e,t){return e===0||e===1/0||e===-1/0||Number.isNaN(e)?e:e*2**t}function ba(e){return e--,e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16,e++,e}var xa=c((()=>{})),Sa,Ca=c((()=>{Sa=class extends Error{}})),wa,Ta=c((()=>{va(),xa(),Ca(),wa=class{_shift;constructor(e){this._shift=-e}mapToIndex(e){return e<ga?this._minNormalLowerBoundaryIndex():la(e)+(ua(e)?-1:0)>>this._shift}lowerBoundary(e){let t=this._minNormalLowerBoundaryIndex();if(e<t)throw new Sa(`underflow: ${e} is < minimum lower boundary: ${t}`);let n=this._maxNormalLowerBoundaryIndex();if(e>n)throw new Sa(`overflow: ${e} is > maximum lower boundary: ${n}`);return ya(1,e<<this._shift)}get scale(){return this._shift===0?0:-this._shift}_minNormalLowerBoundaryIndex(){let e=ma>>this._shift;return this._shift<2&&e--,e}_maxNormalLowerBoundaryIndex(){return ha>>this._shift}}})),Ea,Da=c((()=>{va(),xa(),Ca(),Ea=class{_scale;_scaleFactor;_inverseFactor;constructor(e){this._scale=e,this._scaleFactor=ya(Math.LOG2E,e),this._inverseFactor=ya(Math.LN2,-e)}mapToIndex(e){if(e<=ga)return this._minNormalLowerBoundaryIndex()-1;if(ua(e))return(la(e)<<this._scale)-1;let t=Math.floor(Math.log(e)*this._scaleFactor),n=this._maxNormalLowerBoundaryIndex();return t>=n?n:t}lowerBoundary(e){let t=this._maxNormalLowerBoundaryIndex();if(e>=t){if(e===t)return 2*Math.exp((e-(1<<this._scale))/this._scaleFactor);throw new Sa(`overflow: ${e} is > maximum lower boundary: ${t}`)}let n=this._minNormalLowerBoundaryIndex();if(e<=n){if(e===n)return ga;if(e===n-1)return Math.exp((e+(1<<this._scale))/this._scaleFactor)/2;throw new Sa(`overflow: ${e} is < minimum lower boundary: ${n}`)}return Math.exp(e*this._inverseFactor)}get scale(){return this._scale}_minNormalLowerBoundaryIndex(){return ma<<this._scale}_maxNormalLowerBoundaryIndex(){return(ha+1<<this._scale)-1}}}));function Oa(e){if(e>Aa||e<ka)throw new Sa(`expected scale >= ${ka} && <= ${Aa}, got: ${e}`);return ja[e+10]}var ka,Aa,ja,Ma=c((()=>{Ta(),Da(),Ca(),ka=-10,Aa=20,ja=Array.from({length:31},(e,t)=>t>10?new Ea(t-10):new wa(t-10))})),Na,Pa,Fa,Ia,La,Ra,za=c((()=>{Qi(),Hi(),u(),sa(),Ma(),xa(),Na=class e{static combine(t,n){return new e(Math.min(t.low,n.low),Math.max(t.high,n.high))}low;high;constructor(e,t){this.low=e,this.high=t}},Pa=20,Fa=160,Ia=2,La=class e{startTime;_maxSize;_recordMinMax;_sum;_count;_zeroCount;_min;_max;_positive;_negative;_mapping;constructor(e,t=Fa,n=!0,r=0,i=0,a=0,o=1/0,s=-1/0,c=new aa,u=new aa,d=Oa(Pa)){this.startTime=e,this._maxSize=t,this._recordMinMax=n,this._sum=r,this._count=i,this._zeroCount=a,this._min=o,this._max=s,this._positive=c,this._negative=u,this._mapping=d,this._maxSize<Ia&&(l.warn(`Exponential Histogram Max Size set to ${this._maxSize}, \
|
|
2
|
+
import{A as e,M as t,N as n,O as r,_ as i,c as a,d as o,j as s,k as c,l,n as u,t as d,y as f}from"../chunks/esm-kgyHmk-Q.js";import{t as p}from"../chunks/commander-BB7CDPLs.js";import{A as m,B as h,C as g,E as _,F as v,I as y,N as b,O as x,P as S,R as C,S as w,T,_ as ee,a as E,b as D,d as O,f as k,g as A,h as te,i as j,j as M,k as ne,l as re,m as ie,o as N,p as ae,s as oe,t as se,u as ce,v as le,w as ue,y as de}from"../chunks/logging-wfRjU4GX.js";import{A as fe,D as pe,E as P,S as F,T as I,_ as L,b as R,c as me,d as he,f as ge,g as z,h as _e,i as ve,k as ye,l as B,m as be,o as V,p as xe,r as Se,s as Ce,u as H,v as U,w as W,x as we,y as G}from"../chunks/person-owner-BJgNYLKX.js";import{$ as Te,$n as Ee,$t as De,A as Oe,An as ke,Ar as Ae,At as je,B as Me,Bn as Ne,Bt as Pe,C as Fe,Cn as Ie,Cr as Le,Ct as Re,D as ze,Dn as Be,Dr as Ve,Dt as He,E as Ue,En as We,Er as Ge,Et as Ke,F as qe,Fn as Je,Fr as Ye,Ft as Xe,G as Ze,Gn as Qe,Gt as $e,H as et,Hn as tt,Ht as nt,I as rt,In as it,It as at,J as ot,Jn as st,Jt as ct,K as lt,Kn as ut,Kt as dt,L as ft,Ln as pt,Lr as mt,Lt as ht,Mn as gt,Mt as _t,N as vt,Nn as yt,Nr as bt,Nt as xt,O as St,On as Ct,Ot as wt,P as Tt,Pn as Et,Pr as Dt,Pt as Ot,Q as kt,Qn as At,Qt as jt,R as Mt,Rn as Nt,Rt as Pt,S as Ft,Sn as It,Sr as Lt,St as Rt,T as zt,Tn as Bt,Tr as Vt,Tt as Ht,U as Ut,Un as Wt,Ut as Gt,V as Kt,Vn as qt,Vt as Jt,W as Yt,Wn as Xt,Wt as Zt,X as Qt,Xn as $t,Xt as en,Y as tn,Yn as nn,Yt as rn,Z as an,Zn as on,Zt as sn,_ as cn,_n as ln,_r as un,_t as dn,a as fn,an as pn,ar as mn,at as hn,b as gn,bn as _n,br as vn,bt as yn,c as bn,cn as xn,cr as Sn,ct as Cn,d as wn,dn as Tn,dr as En,dt as Dn,en as On,er as kn,et as An,f as jn,fn as Mn,fr as Nn,ft as Pn,g as Fn,gn as In,gr as Ln,h as Rn,hn as zn,hr as Bn,ht as Vn,i as Hn,in as Un,ir as Wn,it as Gn,j as Kn,jn as qn,jr as Jn,jt as Yn,k as Xn,kn as Zn,kr as Qn,kt as $n,l as er,ln as tr,lr as nr,lt as rr,m as ir,mn as ar,mr as or,mt as sr,n as cr,nn as lr,nr as ur,nt as dr,o as fr,on as pr,or as mr,ot as hr,p as gr,pn as _r,pr as vr,pt as yr,q as br,qn as xr,qt as Sr,r as Cr,rn as wr,rr as Tr,rt as Er,s as Dr,sn as Or,sr as kr,st as Ar,t as jr,tn as Mr,tr as Nr,tt as Pr,u as Fr,un as Ir,ur as Lr,ut as Rr,v as zr,vn as Br,vr as Vr,vt as Hr,w as Ur,wn as Wr,wr as Gr,wt as Kr,x as qr,xn as Jr,xr as Yr,xt as Xr,y as Zr,yn as Qr,yr as $r,yt as ei,z as ti,zn as ni,zt as ri}from"../chunks/dist-CWRAVYI2.js";import{c as ii,n as ai,r as oi,s as si,u as ci}from"../chunks/result-envelope-BE0edu_S.js";import{l as li,n as ui,t as di}from"../chunks/env-CeJYsGWg.js";import{i as fi}from"../chunks/package-DfJq3Rui.js";import{t as pi}from"../chunks/provider-catalog-CpLFNzTb.js";import{C as mi,E as hi,S as gi,T as _i,p as vi,u as yi}from"../chunks/tool-policy-Dhw9BMIT.js";import{g as bi,h as xi,i as Si,p as Ci,r as wi,t as Ti}from"../chunks/contract-CyZFpEKp.js";import{n as Ei,t as Di}from"../chunks/mcp-generation-contract-BFzpNdY_.js";import Oi from"crypto";import{Readable as ki}from"stream";import{Buffer as Ai}from"node:buffer";import{fileURLToPath as ji}from"node:url";import{isIP as Mi,isIPv4 as Ni,isIPv6 as Pi}from"node:net";import{createHash as Fi,randomUUID as Ii,timingSafeEqual as Li}from"node:crypto";var Ri={name:`metric_data_point`,countItems:e=>{let t=0;for(let n of e.scopeMetrics)for(let e of n.metrics)t+=e.dataPoints.length;return t}},zi,Bi=c((()=>{(function(e){e[e.DELTA=0]=`DELTA`,e[e.CUMULATIVE=1]=`CUMULATIVE`})(zi||={})})),K,Vi,Hi=c((()=>{(function(e){e.COUNTER=`COUNTER`,e.GAUGE=`GAUGE`,e.HISTOGRAM=`HISTOGRAM`,e.UP_DOWN_COUNTER=`UP_DOWN_COUNTER`,e.OBSERVABLE_COUNTER=`OBSERVABLE_COUNTER`,e.OBSERVABLE_GAUGE=`OBSERVABLE_GAUGE`,e.OBSERVABLE_UP_DOWN_COUNTER=`OBSERVABLE_UP_DOWN_COUNTER`})(K||={}),(function(e){e[e.HISTOGRAM=0]=`HISTOGRAM`,e[e.EXPONENTIAL_HISTOGRAM=1]=`EXPONENTIAL_HISTOGRAM`,e[e.GAUGE=2]=`GAUGE`,e[e.SUM=3]=`SUM`})(Vi||={})}));function Ui(e){let t=Object.keys(e);return t.length===0?``:(t=t.sort(),JSON.stringify(t.map(t=>[t,e[t]])))}function Wi(e){return`${e.name}:${e.version??``}:${e.schemaUrl??``}`}function Gi(e,t){let n,r=new Promise(function(e,r){n=setTimeout(function(){r(new Yi(`Operation timed out.`))},t)});return Promise.race([e,r]).then(e=>(clearTimeout(n),e),e=>{throw clearTimeout(n),e})}function Ki(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function qi(e,t){let n=0,r=e.length-1,i=e.length;for(;r>=n;){let a=n+Math.trunc((r-n)/2);e[a]<t?n=a+1:(i=a,r=a-1)}return i}function Ji(e,t){return e.toLowerCase()===t.toLowerCase()}var Yi,Xi=c((()=>{Yi=class e extends Error{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}}})),Zi,Qi=c((()=>{(function(e){e[e.DROP=0]=`DROP`,e[e.SUM=1]=`SUM`,e[e.LAST_VALUE=2]=`LAST_VALUE`,e[e.HISTOGRAM=3]=`HISTOGRAM`,e[e.EXPONENTIAL_HISTOGRAM=4]=`EXPONENTIAL_HISTOGRAM`})(Zi||={})})),$i,ea=c((()=>{Qi(),$i=class{kind=Zi.DROP;createAccumulation(){}merge(e,t){}diff(e,t){}toMetricData(e,t,n,r){}}}));function ta(e){let t=e.map(()=>0);return t.push(0),{buckets:{boundaries:e,counts:t},sum:0,count:0,hasMinMax:!1,min:1/0,max:-1/0}}var na,ra,ia=c((()=>{Qi(),Hi(),Xi(),na=class{startTime;_boundaries;_recordMinMax;_current;constructor(e,t,n=!0,r=ta(t)){this.startTime=e,this._boundaries=t,this._recordMinMax=n,this._current=r}record(e){if(Number.isNaN(e))return;this._current.count+=1,this._current.sum+=e,this._recordMinMax&&(this._current.min=Math.min(e,this._current.min),this._current.max=Math.max(e,this._current.max),this._current.hasMinMax=!0);let t=qi(this._boundaries,e);this._current.buckets.counts[t]+=1}setStartTime(e){this.startTime=e}toPointValue(){return this._current}},ra=class{kind=Zi.HISTOGRAM;_boundaries;_recordMinMax;constructor(e,t){this._boundaries=e,this._recordMinMax=t}createAccumulation(e){return new na(e,this._boundaries,this._recordMinMax)}merge(e,t){let n=e.toPointValue(),r=t.toPointValue(),i=n.buckets.counts,a=r.buckets.counts,o=Array(i.length);for(let e=0;e<i.length;e++)o[e]=i[e]+a[e];let s=1/0,c=-1/0;return this._recordMinMax&&(n.hasMinMax&&r.hasMinMax?(s=Math.min(n.min,r.min),c=Math.max(n.max,r.max)):n.hasMinMax?(s=n.min,c=n.max):r.hasMinMax&&(s=r.min,c=r.max)),new na(e.startTime,n.buckets.boundaries,this._recordMinMax,{buckets:{boundaries:n.buckets.boundaries,counts:o},count:n.count+r.count,sum:n.sum+r.sum,hasMinMax:this._recordMinMax&&(n.hasMinMax||r.hasMinMax),min:s,max:c})}diff(e,t){let n=e.toPointValue(),r=t.toPointValue(),i=n.buckets.counts,a=r.buckets.counts,o=Array(i.length);for(let e=0;e<i.length;e++)o[e]=a[e]-i[e];return new na(t.startTime,n.buckets.boundaries,this._recordMinMax,{buckets:{boundaries:n.buckets.boundaries,counts:o},count:r.count-n.count,sum:r.sum-n.sum,hasMinMax:!1,min:1/0,max:-1/0})}toMetricData(e,t,n,r){return{descriptor:e,aggregationTemporality:t,dataPointType:Vi.HISTOGRAM,dataPoints:n.map(([t,n])=>{let i=n.toPointValue(),a=e.type===K.GAUGE||e.type===K.UP_DOWN_COUNTER||e.type===K.OBSERVABLE_GAUGE||e.type===K.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:t,startTime:n.startTime,endTime:r,value:{min:i.hasMinMax?i.min:void 0,max:i.hasMinMax?i.max:void 0,sum:a?void 0:i.sum,buckets:i.buckets,count:i.count}}})}}}})),aa,oa,sa=c((()=>{aa=class e{backing;indexBase;indexStart;indexEnd;constructor(e=new oa,t=0,n=0,r=0){this.backing=e,this.indexBase=t,this.indexStart=n,this.indexEnd=r}get offset(){return this.indexStart}get length(){return this.backing.length===0||this.indexEnd===this.indexStart&&this.at(0)===0?0:this.indexEnd-this.indexStart+1}counts(){return Array.from({length:this.length},(e,t)=>this.at(t))}at(e){let t=this.indexBase-this.indexStart;return e<t&&(e+=this.backing.length),e-=t,this.backing.countAt(e)}incrementBucket(e,t){this.backing.increment(e,t)}decrementBucket(e,t){this.backing.decrement(e,t)}trim(){for(let e=0;e<this.length;e++)if(this.at(e)!==0){this.indexStart+=e;break}else if(e===this.length-1){this.indexStart=this.indexEnd=this.indexBase=0;return}for(let e=this.length-1;e>=0;e--)if(this.at(e)!==0){this.indexEnd-=this.length-e-1;break}this._rotate()}downscale(e){this._rotate();let t=1+this.indexEnd-this.indexStart,n=1<<e,r=0,i=0;for(let e=this.indexStart;e<=this.indexEnd;){let a=e%n;a<0&&(a+=n);for(let o=a;o<n&&r<t;o++)this._relocateBucket(i,r),r++,e++;i++}this.indexStart>>=e,this.indexEnd>>=e,this.indexBase=this.indexStart}clone(){return new e(this.backing.clone(),this.indexBase,this.indexStart,this.indexEnd)}_rotate(){let e=this.indexBase-this.indexStart;e!==0&&(e>0?(this.backing.reverse(0,this.backing.length),this.backing.reverse(0,e),this.backing.reverse(e,this.backing.length)):(this.backing.reverse(0,this.backing.length),this.backing.reverse(0,this.backing.length+e)),this.indexBase=this.indexStart)}_relocateBucket(e,t){e!==t&&this.incrementBucket(e,this.backing.emptyBucket(t))}},oa=class e{_counts;constructor(e=[0]){this._counts=e}get length(){return this._counts.length}countAt(e){return this._counts[e]}growTo(e,t,n){let r=Array(e).fill(0);r.splice(n,this._counts.length-t,...this._counts.slice(t)),r.splice(0,t,...this._counts.slice(0,t)),this._counts=r}reverse(e,t){let n=Math.floor((e+t)/2)-e;for(let r=0;r<n;r++){let n=this._counts[e+r];this._counts[e+r]=this._counts[t-r-1],this._counts[t-r-1]=n}}emptyBucket(e){let t=this._counts[e];return this._counts[e]=0,t}increment(e,t){this._counts[e]+=t}decrement(e,t){this._counts[e]>=t?this._counts[e]-=t:this._counts[e]=0}clone(){return new e([...this._counts])}}}));function ca(e){return _a.setFloat64(0,e),{hi:_a.getUint32(0),lo:_a.getUint32(4)}}function la(e){let{hi:t}=ca(e);return((t&da)>>20)-pa}function ua(e){let{hi:t,lo:n}=ca(e);return(t&fa)===0&&n===0}var da,fa,pa,ma,ha,ga,_a,va=c((()=>{da=2146435072,fa=1048575,pa=1023,ma=-1022,ha=pa,ga=2**-1022,_a=new DataView(new ArrayBuffer(8))}));function ya(e,t){return e===0||e===1/0||e===-1/0||Number.isNaN(e)?e:e*2**t}function ba(e){return e--,e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16,e++,e}var xa=c((()=>{})),Sa,Ca=c((()=>{Sa=class extends Error{}})),wa,Ta=c((()=>{va(),xa(),Ca(),wa=class{_shift;constructor(e){this._shift=-e}mapToIndex(e){return e<ga?this._minNormalLowerBoundaryIndex():la(e)+(ua(e)?-1:0)>>this._shift}lowerBoundary(e){let t=this._minNormalLowerBoundaryIndex();if(e<t)throw new Sa(`underflow: ${e} is < minimum lower boundary: ${t}`);let n=this._maxNormalLowerBoundaryIndex();if(e>n)throw new Sa(`overflow: ${e} is > maximum lower boundary: ${n}`);return ya(1,e<<this._shift)}get scale(){return this._shift===0?0:-this._shift}_minNormalLowerBoundaryIndex(){let e=ma>>this._shift;return this._shift<2&&e--,e}_maxNormalLowerBoundaryIndex(){return ha>>this._shift}}})),Ea,Da=c((()=>{va(),xa(),Ca(),Ea=class{_scale;_scaleFactor;_inverseFactor;constructor(e){this._scale=e,this._scaleFactor=ya(Math.LOG2E,e),this._inverseFactor=ya(Math.LN2,-e)}mapToIndex(e){if(e<=ga)return this._minNormalLowerBoundaryIndex()-1;if(ua(e))return(la(e)<<this._scale)-1;let t=Math.floor(Math.log(e)*this._scaleFactor),n=this._maxNormalLowerBoundaryIndex();return t>=n?n:t}lowerBoundary(e){let t=this._maxNormalLowerBoundaryIndex();if(e>=t){if(e===t)return 2*Math.exp((e-(1<<this._scale))/this._scaleFactor);throw new Sa(`overflow: ${e} is > maximum lower boundary: ${t}`)}let n=this._minNormalLowerBoundaryIndex();if(e<=n){if(e===n)return ga;if(e===n-1)return Math.exp((e+(1<<this._scale))/this._scaleFactor)/2;throw new Sa(`overflow: ${e} is < minimum lower boundary: ${n}`)}return Math.exp(e*this._inverseFactor)}get scale(){return this._scale}_minNormalLowerBoundaryIndex(){return ma<<this._scale}_maxNormalLowerBoundaryIndex(){return(ha+1<<this._scale)-1}}}));function Oa(e){if(e>Aa||e<ka)throw new Sa(`expected scale >= ${ka} && <= ${Aa}, got: ${e}`);return ja[e+10]}var ka,Aa,ja,Ma=c((()=>{Ta(),Da(),Ca(),ka=-10,Aa=20,ja=Array.from({length:31},(e,t)=>t>10?new Ea(t-10):new wa(t-10))})),Na,Pa,Fa,Ia,La,Ra,za=c((()=>{Qi(),Hi(),u(),sa(),Ma(),xa(),Na=class e{static combine(t,n){return new e(Math.min(t.low,n.low),Math.max(t.high,n.high))}low;high;constructor(e,t){this.low=e,this.high=t}},Pa=20,Fa=160,Ia=2,La=class e{startTime;_maxSize;_recordMinMax;_sum;_count;_zeroCount;_min;_max;_positive;_negative;_mapping;constructor(e,t=Fa,n=!0,r=0,i=0,a=0,o=1/0,s=-1/0,c=new aa,u=new aa,d=Oa(Pa)){this.startTime=e,this._maxSize=t,this._recordMinMax=n,this._sum=r,this._count=i,this._zeroCount=a,this._min=o,this._max=s,this._positive=c,this._negative=u,this._mapping=d,this._maxSize<Ia&&(l.warn(`Exponential Histogram Max Size set to ${this._maxSize}, \
|
|
3
3
|
changing to the minimum size of: ${Ia}`),this._maxSize=Ia)}record(e){this.updateByIncrement(e,1)}setStartTime(e){this.startTime=e}toPointValue(){return{hasMinMax:this._recordMinMax,min:this.min,max:this.max,sum:this.sum,positive:{offset:this.positive.offset,bucketCounts:this.positive.counts()},negative:{offset:this.negative.offset,bucketCounts:this.negative.counts()},count:this.count,scale:this.scale,zeroCount:this.zeroCount}}get sum(){return this._sum}get min(){return this._min}get max(){return this._max}get count(){return this._count}get zeroCount(){return this._zeroCount}get scale(){return this._count===this._zeroCount?0:this._mapping.scale}get positive(){return this._positive}get negative(){return this._negative}updateByIncrement(e,t){if(Number.isFinite(e)){if(e>this._max&&(this._max=e),e<this._min&&(this._min=e),this._count+=t,e===0){this._zeroCount+=t;return}this._sum+=e*t,e>0?this._updateBuckets(this._positive,e,t):this._updateBuckets(this._negative,-e,t)}}merge(e){this._count===0?(this._min=e.min,this._max=e.max):e.count!==0&&(e.min<this.min&&(this._min=e.min),e.max>this.max&&(this._max=e.max)),this.startTime=e.startTime,this._sum+=e.sum,this._count+=e.count,this._zeroCount+=e.zeroCount;let t=this._minScale(e);this._downscale(this.scale-t),this._mergeBuckets(this.positive,e,e.positive,t),this._mergeBuckets(this.negative,e,e.negative,t)}diff(e){this._min=1/0,this._max=-1/0,this._sum-=e.sum,this._count-=e.count,this._zeroCount-=e.zeroCount;let t=this._minScale(e);this._downscale(this.scale-t),this._diffBuckets(this.positive,e,e.positive,t),this._diffBuckets(this.negative,e,e.negative,t)}clone(){return new e(this.startTime,this._maxSize,this._recordMinMax,this._sum,this._count,this._zeroCount,this._min,this._max,this.positive.clone(),this.negative.clone(),this._mapping)}_updateBuckets(e,t,n){let r=this._mapping.mapToIndex(t),i=!1,a=0,o=0;if(e.length===0?(e.indexStart=r,e.indexEnd=e.indexStart,e.indexBase=e.indexStart):r<e.indexStart&&e.indexEnd-r>=this._maxSize?(i=!0,o=r,a=e.indexEnd):r>e.indexEnd&&r-e.indexStart>=this._maxSize&&(i=!0,o=e.indexStart,a=r),i){let e=this._changeScale(a,o);this._downscale(e),r=this._mapping.mapToIndex(t)}this._incrementIndexBy(e,r,n)}_incrementIndexBy(e,t,n){if(n===0)return;if(e.length===0&&(e.indexStart=e.indexEnd=e.indexBase=t),t<e.indexStart){let n=e.indexEnd-t;n>=e.backing.length&&this._grow(e,n+1),e.indexStart=t}else if(t>e.indexEnd){let n=t-e.indexStart;n>=e.backing.length&&this._grow(e,n+1),e.indexEnd=t}let r=t-e.indexBase;r<0&&(r+=e.backing.length),e.incrementBucket(r,n)}_grow(e,t){let n=e.backing.length,r=e.indexBase-e.indexStart,i=n-r,a=ba(t);a>this._maxSize&&(a=this._maxSize);let o=a-r;e.backing.growTo(a,i,o)}_changeScale(e,t){let n=0;for(;e-t>=this._maxSize;)e>>=1,t>>=1,n++;return n}_downscale(e){if(e===0)return;if(e<0)throw Error(`impossible change of scale: ${this.scale}`);let t=this._mapping.scale-e;this._positive.downscale(e),this._negative.downscale(e),this._mapping=Oa(t)}_minScale(e){let t=Math.min(this.scale,e.scale),n=Na.combine(this._highLowAtScale(this.positive,this.scale,t),this._highLowAtScale(e.positive,e.scale,t)),r=Na.combine(this._highLowAtScale(this.negative,this.scale,t),this._highLowAtScale(e.negative,e.scale,t));return Math.min(t-this._changeScale(n.high,n.low),t-this._changeScale(r.high,r.low))}_highLowAtScale(e,t,n){if(e.length===0)return new Na(0,-1);let r=t-n;return new Na(e.indexStart>>r,e.indexEnd>>r)}_mergeBuckets(e,t,n,r){let i=n.offset,a=t.scale-r;for(let t=0;t<n.length;t++)this._incrementIndexBy(e,i+t>>a,n.at(t))}_diffBuckets(e,t,n,r){let i=n.offset,a=t.scale-r;for(let t=0;t<n.length;t++){let r=(i+t>>a)-e.indexBase;r<0&&(r+=e.backing.length),e.decrementBucket(r,n.at(t))}e.trim()}},Ra=class{kind=Zi.EXPONENTIAL_HISTOGRAM;_maxSize;_recordMinMax;constructor(e,t){this._maxSize=e,this._recordMinMax=t}createAccumulation(e){return new La(e,this._maxSize,this._recordMinMax)}merge(e,t){let n=t.clone();return n.merge(e),n}diff(e,t){let n=t.clone();return n.diff(e),n}toMetricData(e,t,n,r){return{descriptor:e,aggregationTemporality:t,dataPointType:Vi.EXPONENTIAL_HISTOGRAM,dataPoints:n.map(([t,n])=>{let i=n.toPointValue(),a=e.type===K.GAUGE||e.type===K.UP_DOWN_COUNTER||e.type===K.OBSERVABLE_GAUGE||e.type===K.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:t,startTime:n.startTime,endTime:r,value:{min:i.hasMinMax?i.min:void 0,max:i.hasMinMax?i.max:void 0,sum:a?void 0:i.sum,positive:{offset:i.positive.offset,bucketCounts:i.positive.bucketCounts},negative:{offset:i.negative.offset,bucketCounts:i.negative.bucketCounts},count:i.count,scale:i.scale,zeroCount:i.zeroCount}}})}}}})),Ba,Va,Ha=c((()=>{Qi(),ue(),Hi(),Ba=class{startTime;_current;sampleTime;constructor(e,t=0,n=[0,0]){this.startTime=e,this._current=t,this.sampleTime=n}record(e){this._current=e,this.sampleTime=b(Date.now())}setStartTime(e){this.startTime=e}toPointValue(){return this._current}},Va=class{kind=Zi.LAST_VALUE;createAccumulation(e){return new Ba(e)}merge(e,t){let n=m(t.sampleTime)>=m(e.sampleTime)?t:e;return new Ba(e.startTime,n.toPointValue(),n.sampleTime)}diff(e,t){let n=m(t.sampleTime)>=m(e.sampleTime)?t:e;return new Ba(t.startTime,n.toPointValue(),n.sampleTime)}toMetricData(e,t,n,r){return{descriptor:e,aggregationTemporality:t,dataPointType:Vi.GAUGE,dataPoints:n.map(([e,t])=>({attributes:e,startTime:t.startTime,endTime:r,value:t.toPointValue()}))}}}})),Ua,Wa,Ga=c((()=>{Qi(),Hi(),Ua=class{startTime;monotonic;_current;reset;constructor(e,t,n=0,r=!1){this.startTime=e,this.monotonic=t,this._current=n,this.reset=r}record(e){this.monotonic&&e<0||(this._current+=e)}setStartTime(e){this.startTime=e}toPointValue(){return this._current}},Wa=class{kind=Zi.SUM;monotonic;constructor(e){this.monotonic=e}createAccumulation(e){return new Ua(e,this.monotonic)}merge(e,t){let n=e.toPointValue(),r=t.toPointValue();return t.reset?new Ua(t.startTime,this.monotonic,r,t.reset):new Ua(e.startTime,this.monotonic,n+r)}diff(e,t){let n=e.toPointValue(),r=t.toPointValue();return this.monotonic&&n>r?new Ua(t.startTime,this.monotonic,r,!0):new Ua(t.startTime,this.monotonic,r-n)}toMetricData(e,t,n,r){return{descriptor:e,aggregationTemporality:t,dataPointType:Vi.SUM,dataPoints:n.map(([e,t])=>({attributes:e,startTime:t.startTime,endTime:r,value:t.toPointValue()})),isMonotonic:this.monotonic}}}})),Ka=c((()=>{ea(),ia(),za(),Ha(),Ga()})),qa,Ja,Ya,Xa,Za,Qa,$a,eo,to,no,ro,io,ao=c((()=>{u(),Ka(),Hi(),qa=class e{static DEFAULT_INSTANCE=new $i;createAggregator(t){return e.DEFAULT_INSTANCE}},Ja=class e{static MONOTONIC_INSTANCE=new Wa(!0);static NON_MONOTONIC_INSTANCE=new Wa(!1);createAggregator(t){switch(t.type){case K.COUNTER:case K.OBSERVABLE_COUNTER:case K.HISTOGRAM:return e.MONOTONIC_INSTANCE;default:return e.NON_MONOTONIC_INSTANCE}}},Ya=class e{static DEFAULT_INSTANCE=new Va;createAggregator(t){return e.DEFAULT_INSTANCE}},Xa=class e{static DEFAULT_INSTANCE=new ra([0,5,10,25,50,75,100,250,500,750,1e3,2500,5e3,7500,1e4],!0);createAggregator(t){return e.DEFAULT_INSTANCE}},Za=class{_boundaries;_recordMinMax;constructor(e,t=!0){if(e==null)throw Error(`ExplicitBucketHistogramAggregation should be created with explicit boundaries, if a single bucket histogram is required, please pass an empty array`);e=e.concat(),e=e.sort((e,t)=>e-t);let n=e.lastIndexOf(-1/0),r=e.indexOf(1/0);r===-1&&(r=void 0),this._boundaries=e.slice(n+1,r),this._recordMinMax=t}createAggregator(e){return new ra(this._boundaries,this._recordMinMax)}},Qa=class{_maxSize;_recordMinMax;constructor(e=160,t=!0){this._maxSize=e,this._recordMinMax=t}createAggregator(e){return new Ra(this._maxSize,this._recordMinMax)}},$a=class{_resolve(e){switch(e.type){case K.COUNTER:case K.UP_DOWN_COUNTER:case K.OBSERVABLE_COUNTER:case K.OBSERVABLE_UP_DOWN_COUNTER:return to;case K.GAUGE:case K.OBSERVABLE_GAUGE:return no;case K.HISTOGRAM:return e.advice.explicitBucketBoundaries?new Za(e.advice.explicitBucketBoundaries):ro}return l.warn(`Unable to recognize instrument type: ${e.type}`),eo}createAggregator(e){return this._resolve(e).createAggregator(e)}},eo=new qa,to=new Ja,no=new Ya,ro=new Xa,new Qa,io=new $a}));function oo(e){switch(e.type){case so.DEFAULT:return io;case so.DROP:return eo;case so.SUM:return to;case so.LAST_VALUE:return no;case so.EXPONENTIAL_HISTOGRAM:{let t=e;return new Qa(t.options?.maxSize,t.options?.recordMinMax)}case so.EXPLICIT_BUCKET_HISTOGRAM:{let t=e;return t.options==null?ro:new Za(t.options?.boundaries,t.options?.recordMinMax)}default:throw Error(`Unsupported Aggregation`)}}var so,co=c((()=>{ao(),(function(e){e[e.DEFAULT=0]=`DEFAULT`,e[e.DROP=1]=`DROP`,e[e.SUM=2]=`SUM`,e[e.LAST_VALUE=3]=`LAST_VALUE`,e[e.EXPLICIT_BUCKET_HISTOGRAM=4]=`EXPLICIT_BUCKET_HISTOGRAM`,e[e.EXPONENTIAL_HISTOGRAM=5]=`EXPONENTIAL_HISTOGRAM`})(so||={})})),lo,uo,fo=c((()=>{Bi(),co(),lo=e=>({type:so.DEFAULT}),uo=e=>zi.CUMULATIVE})),po,mo,ho,go,_o,vo=c((()=>{po=`otel.component.name`,mo=`otel.component.type`,ho=`periodic_metric_reader`,go=`otel.sdk.metric_reader.collection.duration`,_o=`error.type`})),yo,bo,xo=c((()=>{vo(),yo=new Map,bo=class{collectionDuration;standardAttrs;constructor(e,t){let n=yo.get(e)??0;yo.set(e,n+1),this.standardAttrs={[mo]:e,[po]:`${e}/${n}`},this.collectionDuration=t.createHistogram(go,{unit:`s`,description:`The duration of the collect operation of the metric reader.`,advice:{explicitBucketBoundaries:[]}})}recordCollection(e,t){let n=t?{...this.standardAttrs,[_o]:t}:this.standardAttrs;this.collectionDuration.record(e,n)}}})),So,Co=c((()=>{So=`2.11.0`})),wo,To=c((()=>{u(),Xi(),fo(),xo(),Co(),ue(),wo=class{_shutdown=!1;_metricProducers;_sdkMetricProducer;_selfObsMetrics;_aggregationTemporalitySelector;_aggregationSelector;_cardinalitySelector;_otelComponentType;constructor(e){this._aggregationSelector=e?.aggregationSelector??lo,this._aggregationTemporalitySelector=e?.aggregationTemporalitySelector??uo,this._metricProducers=e?.metricProducers??[],this._cardinalitySelector=e?.cardinalitySelector,this._otelComponentType=e?.otelComponentType??this.constructor.name,this._selfObsMetrics=new bo(this._otelComponentType,f())}setMetricProducer(e){if(this._sdkMetricProducer)throw Error(`MetricReader can not be bound to a MeterProvider again.`);this._sdkMetricProducer=e,this.onInitialized()}_setSelfObsMeterProvider(e){let t=e.getMeter(`@opentelemetry/sdk-metrics`,So);this._selfObsMetrics=new bo(this._otelComponentType,t)}selectAggregation(e){return this._aggregationSelector(e)}selectAggregationTemporality(e){return this._aggregationTemporalitySelector(e)}selectCardinalityLimit(e){return this._cardinalitySelector?this._cardinalitySelector(e):2e3}onInitialized(){}async collect(e){if(this._sdkMetricProducer===void 0)throw Error(`MetricReader is not bound to a MetricProducer`);if(this._shutdown)throw Error(`MetricReader is shutdown`);let t=x(),[n,...r]=await Promise.all([this._sdkMetricProducer.collect({timeoutMillis:e?.timeoutMillis}),...this._metricProducers.map(t=>t.collect({timeoutMillis:e?.timeoutMillis}))]),i=x(),a=n.errors.concat(r.flatMap(e=>e.errors)),o=M(ne(t,i));return this._selfObsMetrics.recordCollection(o,a.length>0?a[0].name??`collect_error`:void 0),{resourceMetrics:{resource:n.resourceMetrics.resource,scopeMetrics:n.resourceMetrics.scopeMetrics.concat(r.flatMap(e=>e.resourceMetrics.scopeMetrics))},errors:a}}async shutdown(e){if(this._shutdown){l.error(`Cannot call shutdown twice.`);return}e?.timeoutMillis==null?await this.onShutdown():await Gi(this.onShutdown(),e.timeoutMillis),this._shutdown=!0}async forceFlush(e){if(this._shutdown){l.warn(`Cannot forceFlush on already shutdown MetricReader.`);return}if(e?.timeoutMillis==null){await this.onForceFlush();return}await Gi(this.onForceFlush(),e.timeoutMillis)}}}));function Eo(e,t){if(!Number.isInteger(t)||t<=0)throw Error(`maxExportBatchSize must be a positive integer`);let n=[],r=0,i=[];function a(){i.length>0&&(n.push({resource:e.resource,scopeMetrics:i}),i=[],r=0)}for(let n of e.scopeMetrics){let e=null;for(let o of n.metrics){let s=o.dataPoints;if(s.length===0){e||(e={scope:n.scope,metrics:[]},i.push(e)),e.metrics.push(o);continue}let c=0;for(;c<s.length;){let l=t-r,u=Math.min(l,s.length-c);e||(e={scope:n.scope,metrics:[]},i.push(e));let d={...o,dataPoints:s.slice(c,c+u)};e.metrics.push(d),c+=u,r+=u,r===t&&(a(),e=null)}}}return a(),n}var Do=c((()=>{})),Oo,ko=c((()=>{u(),ue(),To(),Xi(),Hi(),Do(),vo(),Oo=class extends wo{_interval;_exporter;_exportInterval;_exportTimeout;_maxExportBatchSize;_ongoingExportPromise=null;constructor(e){let{exporter:t,exportIntervalMillis:n=6e4,metricProducers:r,cardinalityLimits:i,maxExportBatchSize:a}=e,{exportTimeoutMillis:o=3e4}=e;if(super({aggregationSelector:t.selectAggregation?.bind(t),aggregationTemporalitySelector:t.selectAggregationTemporality?.bind(t),otelComponentType:ho,metricProducers:r,cardinalitySelector:e=>{let t={default:2e3,...i};switch(e){case K.COUNTER:return t.counter??t.default;case K.GAUGE:return t.gauge??t.default;case K.HISTOGRAM:return t.histogram??t.default;case K.OBSERVABLE_COUNTER:return t.observableCounter??t.default;case K.OBSERVABLE_UP_DOWN_COUNTER:return t.observableUpDownCounter??t.default;case K.OBSERVABLE_GAUGE:return t.observableGauge??t.default;case K.UP_DOWN_COUNTER:return t.upDownCounter??t.default;default:return t.default}}}),n<=0)throw Error(`exportIntervalMillis must be greater than 0`);if(o<=0)throw Error(`exportTimeoutMillis must be greater than 0`);if(a!==void 0&&(!Number.isInteger(a)||a<=0))throw Error(`maxExportBatchSize must be a positive integer`);if(n<o){if(`exportIntervalMillis`in e&&`exportTimeoutMillis`in e)throw Error(`exportIntervalMillis must be greater than or equal to exportTimeoutMillis`);l.info(`Timeout of ${o} exceeds the interval of ${n}. Clamping timeout to interval duration.`),o=n}this._exportInterval=n,this._exportTimeout=o,this._exporter=t,this._maxExportBatchSize=a}async _runOnce(){try{await this._doRun()}catch(e){C(e)}}async _doRun(){if(this._ongoingExportPromise){l.debug(`PeriodicExportingMetricReader: export already in progress, skipping`);return}let e=async()=>{let{resourceMetrics:e,errors:t}=await this.collect({timeoutMillis:this._exportTimeout});if(t.length>0&&l.error(`PeriodicExportingMetricReader: metrics collection errors`,...t),e.resource.asyncAttributesPending)try{await e.resource.waitForAsyncAttributes?.()}catch(e){l.debug(`Error while resolving async portion of resource: `,e),C(e)}if(e.scopeMetrics.length===0)return;let n=this._maxExportBatchSize?Eo(e,this._maxExportBatchSize):[e],r=null;for(let e of n)try{let t=await Gi(T._export(this._exporter,e),this._exportTimeout);t.code!==_.SUCCESS&&(r=Error(`PeriodicExportingMetricReader: metrics export failed (error ${t.error})`))}catch(e){if(e instanceof Yi){l.error(`PeriodicExportingMetricReader: metrics export timed out after ${this._exportTimeout}ms`);break}l.error(`PeriodicExportingMetricReader: metrics export threw error`,e),r=e instanceof Error?e:Error(String(e))}if(r)throw r};this._ongoingExportPromise=e();try{await this._ongoingExportPromise}finally{this._ongoingExportPromise=null}}onInitialized(){this._interval=setInterval(()=>{this._runOnce()},this._exportInterval),typeof this._interval!=`number`&&this._interval.unref()}async onForceFlush(){await this._awaitOngoingExport(),this._ongoingExportPromise?await this._awaitOngoingExport():await this._runOnce(),await this._exporter.forceFlush()}async _awaitOngoingExport(){if(this._ongoingExportPromise){l.debug(`PeriodicExportingMetricReader: export already in progress, awaiting ongoing export`);try{await this._ongoingExportPromise}catch{}}}async onShutdown(){this._interval&&clearInterval(this._interval),await this.onForceFlush(),await this._exporter.shutdown()}}})),Ao,jo=c((()=>{ue(),Ao=class{_shutdown=!1;_aggregationTemporality;_metrics=[];constructor(e){this._aggregationTemporality=e}export(e,t){if(this._shutdown){setTimeout(()=>t({code:_.FAILED}),0);return}this._metrics.push(e),setTimeout(()=>t({code:_.SUCCESS}),0)}getMetrics(){return this._metrics}forceFlush(){return Promise.resolve()}reset(){this._metrics=[]}selectAggregationTemporality(e){return this._aggregationTemporality}shutdown(){return this._shutdown=!0,Promise.resolve()}}})),Mo,No=c((()=>{ue(),fo(),Mo=class e{_shutdown=!1;_temporalitySelector;constructor(e){this._temporalitySelector=e?.temporalitySelector??uo}export(t,n){if(this._shutdown){n({code:_.FAILED});return}return e._sendMetrics(t,n)}forceFlush(){return Promise.resolve()}selectAggregationTemporality(e){return this._temporalitySelector(e)}shutdown(){return this._shutdown=!0,Promise.resolve()}static _sendMetrics(e,t){for(let t of e.scopeMetrics)for(let e of t.metrics)console.dir({descriptor:e.descriptor,dataPointType:e.dataPointType,dataPoints:e.dataPoints},{depth:null});t({code:_.SUCCESS})}}})),Po,Fo=c((()=>{Po=class{_registeredViews=[];addView(e){this._registeredViews.push(e)}findViews(e,t){return this._registeredViews.filter(n=>this._matchInstrument(n.instrumentSelector,e)&&this._matchMeter(n.meterSelector,t))}_matchInstrument(e,t){return(e.getType()===void 0||t.type===e.getType())&&e.getNameFilter().match(t.name)&&e.getUnitFilter().match(t.unit)}_matchMeter(e,t){return e.getNameFilter().match(t.name)&&(t.version===void 0||e.getVersionFilter().match(t.version))&&(t.schemaUrl===void 0||e.getSchemaUrlFilter().match(t.schemaUrl))}}}));function Io(e,t,n){return zo(e)||l.warn(`Invalid metric name: "${e}". The metric name should be a ASCII string with a length no greater than 255 characters.`),{name:e,type:t,description:n?.description??``,unit:n?.unit??``,valueType:n?.valueType??i.DOUBLE,advice:n?.advice??{}}}function Lo(e,t){return{name:e.name??t.name,description:e.description??t.description,type:t.type,unit:t.unit,valueType:t.valueType,advice:t.advice}}function Ro(e,t){return Ji(e.name,t.name)&&e.unit===t.unit&&e.type===t.type&&e.valueType===t.valueType}function zo(e){return Bo.test(e)}var Bo,Vo=c((()=>{u(),Xi(),Bo=/^[a-z][a-z0-9_.\-/]{0,254}$/i}));function Ho(e){return e instanceof Jo}var Uo,Wo,Go,Ko,qo,Jo,Yo,Xo,Zo,Qo=c((()=>{u(),Uo=class{_writableMetricStorage;_descriptor;constructor(e,t){this._writableMetricStorage=e,this._descriptor=t}_record(e,t={},n){if(typeof e!=`number`){l.warn(`non-number value provided to metric ${this._descriptor.name}: ${e}`);return}this._descriptor.valueType===i.INT&&!Number.isInteger(e)&&(l.warn(`INT value type cannot accept a floating-point value for ${this._descriptor.name}, ignoring the fractional digits.`),e=Math.trunc(e),!Number.isInteger(e))||this._writableMetricStorage.record(e,t,n,Date.now())}},Wo=class extends Uo{add(e,t,n){this._record(e,t,n)}},Go=class extends Uo{add(e,t,n){if(e<0){l.warn(`negative value provided to counter ${this._descriptor.name}: ${e}`);return}this._record(e,t,n)}},Ko=class extends Uo{record(e,t,n){this._record(e,t,n)}},qo=class extends Uo{record(e,t,n){if(e<0){l.warn(`negative value provided to histogram ${this._descriptor.name}: ${e}`);return}this._record(e,t,n)}},Jo=class{_metricStorages;_descriptor;_observableRegistry;constructor(e,t,n){this._descriptor=e,this._metricStorages=t,this._observableRegistry=n}addCallback(e){this._observableRegistry.addCallback(e,this)}removeCallback(e){this._observableRegistry.removeCallback(e,this)}},Yo=class extends Jo{},Xo=class extends Jo{},Zo=class extends Jo{}})),$o,es=c((()=>{Vo(),Qo(),Hi(),$o=class{_meterSharedState;constructor(e){this._meterSharedState=e}createGauge(e,t){let n=Io(e,K.GAUGE,t),r=this._meterSharedState.registerMetricStorage(n);return new Ko(r,n)}createHistogram(e,t){let n=Io(e,K.HISTOGRAM,t),r=this._meterSharedState.registerMetricStorage(n);return new qo(r,n)}createCounter(e,t){let n=Io(e,K.COUNTER,t),r=this._meterSharedState.registerMetricStorage(n);return new Go(r,n)}createUpDownCounter(e,t){let n=Io(e,K.UP_DOWN_COUNTER,t),r=this._meterSharedState.registerMetricStorage(n);return new Wo(r,n)}createObservableGauge(e,t){let n=Io(e,K.OBSERVABLE_GAUGE,t),r=this._meterSharedState.registerAsyncMetricStorage(n);return new Xo(n,r,this._meterSharedState.observableRegistry)}createObservableCounter(e,t){let n=Io(e,K.OBSERVABLE_COUNTER,t),r=this._meterSharedState.registerAsyncMetricStorage(n);return new Yo(n,r,this._meterSharedState.observableRegistry)}createObservableUpDownCounter(e,t){let n=Io(e,K.OBSERVABLE_UP_DOWN_COUNTER,t),r=this._meterSharedState.registerAsyncMetricStorage(n);return new Zo(n,r,this._meterSharedState.observableRegistry)}addBatchObservableCallback(e,t){this._meterSharedState.observableRegistry.addBatchCallback(e,t)}removeBatchObservableCallback(e,t){this._meterSharedState.observableRegistry.removeBatchCallback(e,t)}}})),ts,ns=c((()=>{Vo(),ts=class{_instrumentDescriptor;constructor(e){this._instrumentDescriptor=e}getInstrumentDescriptor(){return this._instrumentDescriptor}updateDescription(e){this._instrumentDescriptor=Io(this._instrumentDescriptor.name,this._instrumentDescriptor.type,{description:e,valueType:this._instrumentDescriptor.valueType,unit:this._instrumentDescriptor.unit,advice:this._instrumentDescriptor.advice})}}})),rs,is,as=c((()=>{Xi(),rs=class{_valueMap=new Map;_keyMap=new Map;_hash;constructor(e){this._hash=e}get(e,t){return t??=this._hash(e),this._valueMap.get(t)}getOrDefault(e,t){let n=this._hash(e);if(this._valueMap.has(n))return this._valueMap.get(n);let r=t();return this._keyMap.has(n)||this._keyMap.set(n,e),this._valueMap.set(n,r),r}set(e,t,n){n??=this._hash(e),this._keyMap.has(n)||this._keyMap.set(n,e),this._valueMap.set(n,t)}has(e,t){return t??=this._hash(e),this._valueMap.has(t)}*keys(){let e=this._keyMap.entries(),t=e.next();for(;t.done!==!0;)yield[t.value[1],t.value[0]],t=e.next()}*entries(){let e=this._valueMap.entries(),t=e.next();for(;t.done!==!0;)yield[this._keyMap.get(t.value[0]),t.value[1],t.value[0]],t=e.next()}get size(){return this._valueMap.size}},is=class extends rs{constructor(){super(Ui)}}})),os,ss=c((()=>{ue(),Xi(),as(),os=class{_activeCollectionStorage=new is;_cumulativeMemoStorage=new is;_cardinalityLimit;_overflowAttributes={"otel.metric.overflow":!0};_overflowHashCode;_aggregator;constructor(e,t){this._aggregator=e,this._cardinalityLimit=(t??2e3)-1,this._overflowHashCode=Ui(this._overflowAttributes)}record(e,t,n){let r=this._activeCollectionStorage.get(t);if(!r){let i=b(n);if(this._activeCollectionStorage.size>=this._cardinalityLimit){this._activeCollectionStorage.getOrDefault(this._overflowAttributes,()=>this._aggregator.createAccumulation(i))?.record(e);return}r=this._aggregator.createAccumulation(i),this._activeCollectionStorage.set(t,r)}r?.record(e)}batchCumulate(e,t){for(let[n,r,i]of e.entries()){let e=n,a=i,o=this._aggregator.createAccumulation(t);o?.record(r);let s=o;if(this._cumulativeMemoStorage.has(e,a)){let t=this._cumulativeMemoStorage.get(e,a);s=this._aggregator.diff(t,o)}else if(this._cumulativeMemoStorage.size>=this._cardinalityLimit&&(e=this._overflowAttributes,a=this._overflowHashCode,this._cumulativeMemoStorage.has(e,a))){let t=this._cumulativeMemoStorage.get(e,a);s=this._aggregator.diff(t,o)}if(this._activeCollectionStorage.has(e,a)){let t=this._activeCollectionStorage.get(e,a);s=this._aggregator.merge(t,s)}this._cumulativeMemoStorage.set(e,o,a),this._activeCollectionStorage.set(e,s,a)}}collect(){let e=this._activeCollectionStorage;return this._activeCollectionStorage=new is,e}}}));function cs(e){return Array.from(e.entries())}var ls,us=c((()=>{Bi(),as(),ls=class e{_aggregator;_unreportedAccumulations=new Map;_reportHistory=new Map;constructor(e,t){this._aggregator=e,t.forEach(e=>{this._unreportedAccumulations.set(e,[])})}buildMetrics(t,n,r,i){this._stashAccumulations(r);let a=this._getMergedUnreportedAccumulations(t),o=a,s;if(this._reportHistory.has(t)){let n=this._reportHistory.get(t),r=n.collectionTime;s=n.aggregationTemporality,o=s===zi.CUMULATIVE?e.merge(n.accumulations,a,this._aggregator):e.calibrateStartTime(n.accumulations,a,r)}else s=t.selectAggregationTemporality(n.type);this._reportHistory.set(t,{accumulations:o,collectionTime:i,aggregationTemporality:s});let c=cs(o);if(c.length!==0)return this._aggregator.toMetricData(n,s,c,i)}_stashAccumulations(e){let t=this._unreportedAccumulations.keys();for(let n of t){let t=this._unreportedAccumulations.get(n);t===void 0&&(t=[],this._unreportedAccumulations.set(n,t)),t.push(e)}}_getMergedUnreportedAccumulations(t){let n=new is,r=this._unreportedAccumulations.get(t);if(this._unreportedAccumulations.set(t,[]),r===void 0)return n;for(let t of r)n=e.merge(n,t,this._aggregator);return n}static merge(e,t,n){let r=e,i=t.entries(),a=i.next();for(;a.done!==!0;){let[t,o,s]=a.value;if(e.has(t,s)){let i=e.get(t,s),a=n.merge(i,o);r.set(t,a,s)}else r.set(t,o,s);a=i.next()}return r}static calibrateStartTime(e,t,n){for(let[r,i]of e.keys())t.get(r,i)?.setStartTime(n);return t}}})),ds,fs=c((()=>{ns(),ss(),us(),as(),ds=class extends ts{_aggregationCardinalityLimit;_deltaMetricStorage;_temporalMetricStorage;_attributesProcessor;constructor(e,t,n,r,i){super(e),this._aggregationCardinalityLimit=i,this._deltaMetricStorage=new os(t,this._aggregationCardinalityLimit),this._temporalMetricStorage=new ls(t,r),this._attributesProcessor=n}record(e,t){if(this._attributesProcessor===void 0){this._deltaMetricStorage.batchCumulate(e,t);return}let n=new is;for(let[t,r]of e.entries())n.set(this._attributesProcessor.process(t),r);this._deltaMetricStorage.batchCumulate(n,t)}collect(e,t){let n=this._deltaMetricStorage.collect();return this._temporalMetricStorage.buildMetrics(e,this._instrumentDescriptor,n,t)}}}));function ps(e,t){let n=``;return e.unit!==t.unit&&(n+=`\t- Unit '${e.unit}' does not match '${t.unit}'\n`),e.type!==t.type&&(n+=`\t- Type '${e.type}' does not match '${t.type}'\n`),e.valueType!==t.valueType&&(n+=`\t- Value Type '${e.valueType}' does not match '${t.valueType}'\n`),e.description!==t.description&&(n+=`\t- Description '${e.description}' does not match '${t.description}'\n`),n}function ms(e,t){return`\t- use valueType '${e.valueType}' on instrument creation or use an instrument name other than '${t.name}'`}function hs(e,t){return`\t- use unit '${e.unit}' on instrument creation or use an instrument name other than '${t.name}'`}function gs(e,t){let n={name:t.name,type:t.type,unit:t.unit},r=JSON.stringify(n);return`\t- create a new view with a name other than '${e.name}' and InstrumentSelector '${r}'`}function _s(e,t){let n={name:t.name,type:t.type,unit:t.unit},r=JSON.stringify(n);return`\t- create a new view with a name other than '${e.name}' and InstrumentSelector '${r}'
|
|
4
4
|
\t- OR - create a new view with the name ${e.name} and description '${e.description}' and InstrumentSelector ${r}
|
|
5
5
|
\t- OR - create a new view with the name ${t.name} and description '${e.description}' and InstrumentSelector ${r}`}function vs(e,t){return e.valueType===t.valueType?e.unit===t.unit?e.type===t.type?e.description===t.description?``:_s(e,t):gs(e,t):hs(e,t):ms(e,t)}var ys=c((()=>{})),bs,xs=c((()=>{Vo(),u(),ys(),bs=class e{_sharedRegistry=new Map;_perCollectorRegistry=new Map;static create(){return new e}getStorages(e){let t=[];for(let e of this._sharedRegistry.values())t=t.concat(e);let n=this._perCollectorRegistry.get(e);if(n!=null)for(let e of n.values())t=t.concat(e);return t}register(e){this._registerStorage(e,this._sharedRegistry)}registerForCollector(e,t){let n=this._perCollectorRegistry.get(e);n??(n=new Map,this._perCollectorRegistry.set(e,n)),this._registerStorage(t,n)}findOrUpdateCompatibleStorage(e){let t=this._sharedRegistry.get(e.name);return t===void 0?null:this._findOrUpdateCompatibleStorage(e,t)}findOrUpdateCompatibleCollectorStorage(e,t){let n=this._perCollectorRegistry.get(e);if(n===void 0)return null;let r=n.get(t.name);return r===void 0?null:this._findOrUpdateCompatibleStorage(t,r)}_registerStorage(e,t){let n=e.getInstrumentDescriptor(),r=t.get(n.name);if(r===void 0){t.set(n.name,[e]);return}r.push(e)}_findOrUpdateCompatibleStorage(e,t){let n=null;for(let r of t){let t=r.getInstrumentDescriptor();Ro(t,e)?(t.description!==e.description&&(e.description.length>t.description.length&&r.updateDescription(e.description),l.warn(`A view or instrument with the name `,e.name,` has already been registered, but has a different description and is incompatible with another registered view.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aventurevc/mcp-server",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.139",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "MCP server that gives AI assistants access to aVenture research data on companies, people, funding, and news.",
|
|
6
6
|
"homepage": "https://docs.aventure.vc/mcp",
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
},
|
|
29
29
|
"aventurePublicApi": {
|
|
30
30
|
"repository": "aventurevc/aventure-docs",
|
|
31
|
-
"commit": "
|
|
31
|
+
"commit": "5c294b535ff7440f04da7b0b87a9626dc5cce5a7",
|
|
32
32
|
"openapiPath": "openapi/openapi.json",
|
|
33
|
-
"openapiSha256": "
|
|
33
|
+
"openapiSha256": "1462ccd1241180920aacf4d325da2c0df1eac3d8760afdeefa1b3dde0ac778d4"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {}
|
|
36
36
|
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import{C as e,O as t,T as n,i as r,l as i,n as a,o,p as s,r as c,t as l,u,v as d,w as f,y as p}from"./person-owner-BJgNYLKX.js";import{r as m,s as ee,t as h,u as g}from"./result-envelope-BE0edu_S.js";import{i as _}from"./package-DfJq3Rui.js";import{a as te,c as ne,i as re,o as ie,s as ae}from"./tool-policy-DmFqIb8Y.js";import{C as oe,S as se,T as ce,_ as le,a as ue,b as v,c as de,d as fe,f as pe,g as y,h as me,i as b,l as he,m as ge,n as _e,o as ve,p as ye,r as x,s as be,t as S,u as xe,v as Se,w as Ce,x as we,y as Te}from"./detail-D07FzRkx.js";import{a as Ee,n as De,r as C,t as Oe}from"./text-field-r9akQrZl.js";import{a as ke,o as Ae}from"./cli-help-policy-CL-sHf0N.js";import{Buffer as je}from"node:buffer";var w=o([`HIGH`,`MEDIUM`,`LOW`]),Me=n([o([`OPERATION`,`SKILL`,`PROMPT`,`COMPLETION_GATE`,`RESEARCH_DETAIL_TYPE`,`RESEARCH_SNIPPET_TYPE`,`TEXT_TYPE`]),f()]),Ne=p({excerpt:f(),sourceId:f(),sourceType:Me,sourceVersion:f().nullish()}),Pe=p({instruction:f(),operationId:f(),stepKey:f()}),Fe=p({body:f(),expectation:f(),method:i(f()),override:f(),reject:i(f()),typeCatalog:f()}),Ie=p({cliCommand:f(),mcpTool:f().nullish(),step:Pe,writeGuidance:Fe.nullish()}),Le=n([o([`ENTITY`,`TEXT`]),f()]),Re=p({description:f(),key:f(),type:Le}),ze=p({catalogRevision:s(),gateId:i(f()),input:i(Re),step:i(Ie),taskKey:f()}),T=o([`TASK_PLAN`,`OPERATION_ADVICE`,`CLARIFY`,`ABSTAIN`]),Be=p({candidate:i(Ne),operationId:f().nullish(),outcome:T,probability:d().nullish(),taskKey:f().nullish(),taskPlan:ze.nullish()}),Ve=p({answer:f(),citation:i(Ne),confidence:w,resolution:Be.nullish()});function E(e,t,n=t.inputName){if(t.in===`body`)return n;let r=Ze.find(t=>n===t.name&&e.path.includes(t.path));return r===void 0?Xe(D(n!==`id`&&n!==`slug`?n:`${We(e.path)}${qe(n)}`),t):r.inputName}function He(e,t,n=Ke(e)){return Ue(Ge(e,t),new Set(n))}function Ue(e,t){if(!t.has(e))return e;let n=`body${qe(e)}`,r=n;for(let e=2;t.has(r);e+=1)r=`${n}${e}`;return r}function We(e){return Qe.find(([,t])=>t.test(e))?.[0]??`record`}function Ge(e,t){if(t.name===`id`&&e.path===`/v1/app/url-slug-redirects`)return`recordId`;let n=Je(t);return Xe(e.intent===`search`&&(t.name.startsWith(`filter.`)||t.name.startsWith(`search.`))?D(n.replace(/^(?:filter|search)/u,``).replace(/^./u,e=>e.toLowerCase())):n,t)}function Ke(e){return new Set(e.parameter.filter(e=>e.in===`path`||e.in===`query`||e.in===`header`).map(t=>E(e,t)))}function qe(e){return e.replace(/^./u,e=>e.toUpperCase())}function D(e){return e.replace(/^addressAddress/u,`address`).replace(/^arrayFilterAmountInvestedRange/u,`fundraiseAmountInvestedRange`).replace(/^arrayFilterAmountRaisedRange/u,`fundraiseAmountRaisedRange`).replace(/^arrayFilterEntityName$/u,`entityName`).replace(/^arrayFilterInvestedCompany$/u,`fundraiseInvestedCompanyName`).replace(/^arrayFilterPersonTitle$/u,`personTitle`).replace(/^arrayFilterRound$/u,`fundraiseRound`).replace(/^arrayFilterTotalInvestmentCount/u,`totalInvestmentCount`).replace(/^arrayFilterTypeRecord$/u,`typeRecord`).replace(/^createEntity/u,`entity`).replace(/^createUrlLink/u,`urlLink`).replace(/^fundraiseActivity/u,`fundraise`).replace(/FundraiseActivity/gu,`Fundraise`).replace(/^logoOption/u,`logo`).replace(/LogoOption/gu,`Logo`).replace(/^researchDetailTypeResearchDetail$/u,`researchDetailType`).replace(/^researchDetailValueResearchDetail$/u,`researchDetailValue`).replace(/^textText$/u,`text`).replace(/^textTextName$/u,`textName`).replace(/^textTextType$/u,`textType`)}function Je(e){let t=D(e.inputName);return/(?:^|\.)nameAlias\[\]\./u.test(e.name)?t.replace(/^entityNameAlias/u,`alias`):/(?:^|\.)urlLink\[\]\./u.test(e.name)?Ye(t):/(?:^|\.)manualLogo\./u.test(e.name)?t.replace(/^manualLogo/u,`logo`):t}function Ye(e){return e===`urlLinkUrl`?`url`:e===`urlLinkUrlType`?`urlType`:e.replace(/^urlLink/u,`url`)}function Xe(e,t){return e===`text`?/(?:^|\.)text(?:\[\])?\.text$/u.test(t.name)?`textBody`:`inputText`:e}var Ze=[{name:`detailId`,path:`/research-details/{detailId}`,inputName:`researchDetailId`},{name:`version`,path:`/instructions/`,inputName:`instructionVersion`},{name:`detailId`,path:`/financial/valuation/{detailId}`,inputName:`valuationDetailId`},{name:`joinId`,path:`/fundraise-investor-joins`,inputName:`fundraiseInvestorJoinId`}],Qe=[[`entity`,/^\/v1\/entities(?:$|\/detail|\/lookup|\/summary|\/duplicate-check)/u],[`person`,/^\/v1\/people(?:\/detail|\/lookup|\/duplicate-check|\/\{slug\})/u],[`news`,/^\/v1\/(?:news\/|jobs\/news\/)/u],[`screenshot`,/^\/v1\/media\/screenshots\//u],[`media`,/^\/v1\/media/u],[`article`,/^\/v1\/app\/blog\/articles/u],[`page`,/^\/v1\/app\/pages/u],[`contact`,/^\/v1\/contacts\//u],[`provenance`,/^\/v1\/provenance\//u],[`location`,/^\/v1\/addresses\/locations\//u]];function $e(e){let t=e.requestBody?.[0],n=e.parameter.map(t=>et(t,E(e,t))),r=(t?.parameter??[]).map(t=>et(t,He(e,t)));return{selector:n.filter(e=>e.location===`path`||tt(e)),pagination:n.filter(nt),filter:[...n.filter(rt),...r.filter(rt)],body:r.filter(e=>!rt(e))}}function et(e,t){return{name:e.in===`body`?t:e.name,flag:re(t),required:e.required,location:e.in,description:e.description||`${e.name} ${e.in} parameter`}}function tt(e){return/(^|[A-Z])(id|slug)$/u.test(e.name)}function nt(e){return[`page`,`size`,`sort`,`cursor`,`mode`,`projection`].includes(e.name)}function rt(e){return e.location!==`path`&&!tt(e)&&!nt(e)}function it(e,t){let n=e.requestBody?.[0],r={operationId:e.operationId,method:e.method,path:e.path,summary:e.summary,cli:e.projection.cliPath.join(` `),intent:e.intent,scope:e.projection.scope,requiredInput:at(e)};return t?{...r,resource:e.resource,bodySchemaName:n?.schemaName??null,bodyKind:n?.kind??null,bodyRequired:n?.required??!1,requiredBodyPath:n?.requiredPath??[],argument:$e(e)}:{...r,optionalInput:ot(e)}}function at(e){return[...e.parameter.filter(({required:e})=>e).map(({name:e})=>e),...e.requestBody?.[0]?.requiredPath??[]]}function ot(e){let t=e.requestBody?.[0],n=new Set(t?.requiredPath??[]);return{query:e.parameter.filter(e=>e.in===`query`&&!e.required).map(({name:e})=>e),body:(t?.parameter??[]).filter(({name:e})=>!n.has(e)).map(({name:e})=>e)}}var st=160;function ct(e){return!Array.isArray(e)||e.length===0||!e.every(lt)?null:`Operation catalog matches\n${e.flatMap(e=>[`${e.operationId} ${e.method} ${e.path} (aventure_${e.intent})`,` ${e.summary}`,` required: ${e.requiredInput.length===0?`none`:e.requiredInput.join(`, `)}`,...`optionalInput`in e?Object.entries(e.optionalInput).filter(([,e])=>e.length>0).map(([e,t])=>` optional ${e}: ${t.join(`, `)}`):[],...`argument`in e?Object.values(e.argument).flat().map(e=>` ${e.name} (${e.location}${e.required?`, required`:``}): ${e.description.length<=st?e.description:`${e.description.slice(0,157)}...`}`):[]]).join(`
|
|
2
|
-
`)}\n`}function lt(e){return typeof e==`object`&&!!e&&`operationId`in e&&typeof e.operationId==`string`&&`requiredInput`in e&&Array.isArray(e.requiredInput)&&`intent`in e&&`summary`in e}function ut(e){let t=t=>{let n=e.parameter.filter(e=>e.in===t&&e.required&&e.schemaDefault===void 0).map(dt);return n.length===0?void 0:Object.fromEntries(n)},n=t(`path`),r=t(`query`),i=[...new Set((e.requestBody?.[0]?.requiredPath??[]).map(e=>e.split(/[.[]/u)[0]))];return{tool:ae(e.intent),operationId:e.operationId,...n===void 0?{}:{pathParams:n},...r===void 0?{}:{query:r},...e.requestBody===void 0?{}:{body:Object.fromEntries(i.map(e=>[e,`<${e}>`]))}}}function dt(e){return[e.name,`<${e.name}>`]}function ft(e){let t=pt(e.description);return{useFor:t.useFor||e.summary||e.description||`${e.method} ${e.path}`,notFor:t.notFor}}function pt(e){let t=e.match(/USE FOR:\s*([\s\S]*?)(?:NOT FOR:|$)/iu),n=e.match(/NOT FOR:\s*([\s\S]*?)$/iu);return{useFor:t?.[1]?.trim()??``,notFor:n?.[1]?.trim()??``}}var O=2,mt=new Set(`a.an.the.and.or.for.to.of.in.on.at.by.with.from.into.is.are.be.do.does.how.what.which.that.this.these.those.i.me.my.we.our.you.your.it.its.please.want.need.can.could.should.would`.split(`.`));function k(e,t){let n=j(t);n.length!==0&&(e.add(n),(n===`individual`||n===`individuals`)&&k(e,`person`),_t(e,ht(n),n),_t(e,gt(n),n))}function ht(e){if(e===`people`)return`person`;let t=e.endsWith(`ies`)?e.slice(0,-3):``;if(t.length>=O&&!t.endsWith(`v`)&&/[^aeiou]$/u.test(t))return`${e.slice(0,-3)}y`;if(e.length>O&&e.endsWith(`s`)&&!e.endsWith(`ss`)&&!e.endsWith(`us`)&&e!==`news`)return e.slice(0,-1)}function gt(e){return e===`person`?`people`:e.length>=O&&e.endsWith(`y`)&&/[^aeiou]y$/u.test(e)?`${e.slice(0,-1)}ies`:e.endsWith(`s`)?void 0:`${e}s`}function _t(e,t,n){t!==void 0&&t!==n&&t.length>=O&&/^[a-z]+$/u.test(t)&&e.add(t)}function vt(e){let t=new Set(A(e)),n=Array.from(t);for(let e of n)k(t,e);return t}function yt(e){return A(e).map(vt)}function bt(e,t){if(e.length===0)return!1;let n=vt(t.join(` `));return e.every(e=>[...e].some(e=>n.has(e)))}function A(e){return j(e).split(/[^a-z0-9]+/u).filter(e=>e.length>0&&!mt.has(e))}function j(e){return e.trim().replace(/([a-z0-9])([A-Z])/gu,`$1 $2`).replace(/[_-]/gu,` `).replace(/\s+/gu,` `).toLowerCase().replace(/\blook up\b/gu,`lookup`)}var xt=/\b(?:https?:\/\/)?(?:[a-z0-9-]+\.)+[a-z]{2,}(?::\d+)?(?:\/\S*)?/giu,St=/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/giu,Ct=/^[a-z0-9]+(?:-[a-z0-9]+)+$/u,wt=250,Tt=40,Et=100;function Dt(e,t){let n=new Set,r=[],i=/\bslugs?\b/iu.test(e);return{text:e.replace(St,()=>(n.add(`uuid`),` `)).replace(xt,e=>{n.add(`url`);let t=e.replace(/^(?:https?:\/\/)?[^/]+/iu,``).split(/[?#]/u)[0].split(`/`).filter(e=>e.length>0).map(e=>e.toLowerCase()),i=t.at(-1);return i!==void 0&&Ct.test(i)&&(n.add(`slug`),t.pop()),r.push(...t.flatMap(e=>e.split(/[^a-z0-9]+/u))),` `}).split(/\s+/u).filter(e=>{let r=e.replace(/^[^a-z0-9]+|[^a-z0-9]+$/giu,``).toLowerCase(),a=Ct.test(r)&&!t.has(r)&&(i||/\d/u.test(r));return a&&n.add(`slug`),!a}).join(` `).trim(),kind:n,urlPathWord:r.filter(e=>e.length>0)}}function Ot(e,t,n){return e===`uuid`?/(?:^id|Id)$/u.test(t)&&n.includes(`{${t}}`):t===e}function kt(e,t){let n=new Set;for(let r of e){let e=new Set;k(e,r);let i=t.filter(({cliPath:t})=>e.has(t[0]??``)),a=i.length>0?i:t.filter(({cliPath:t})=>t.some(t=>e.has(t)));for(let{resource:e}of a)n.add(e)}return n}function At(e,t,n){if(n.intent!==`read`&&n.intent!==`lookup`)return 0;let r=new Set(A(n.summary)),i=0;for(let t of e.kind)n.directParameterName.some(e=>Ot(t,e,n.path))&&(i+=wt,r.has(t)&&(i+=Tt));if(i===0)return 0;let a=new Set(A(`${n.summary} ${n.description}`));return(t.size>0?t.has(n.resource):e.urlPathWord.some(e=>{let t=new Set;return k(t,e),[...t].some(e=>a.has(e))}))&&(i+=Et),i}var jt=5,Mt=.5,Nt=15,Pt=30,Ft=2;function It(e,t,n){let r=t.map(e=>({item:e,fields:n(e)})),i=Dt(e,new Set(r.flatMap(({fields:e})=>e.cliPath))),a=kt(i.urlPathWord,r.map(({fields:e})=>e)),o=j(i.text);if(o.length===0&&i.kind.size===0)return t.map(e=>({item:e,score:1}));let s=vt(o),c=yt(o);return r.map(({item:e,fields:t})=>({item:e,fields:t,score:(o.length===0?0:Bt(o,s,c,t))+At(i,a,t)})).filter(({score:e})=>e>0).toSorted((e,t)=>Number(e.fields.deprecated===!0)-Number(t.fields.deprecated===!0)||t.score-e.score||e.fields.cliPath.length-t.fields.cliPath.length||e.fields.cliPath.join(` `).localeCompare(t.fields.cliPath.join(` `))||e.fields.operationId.localeCompare(t.fields.operationId)).map(({item:e,score:t})=>({item:e,score:t}))}function Lt(e){let t=[...e.parameter,...(e.requestBody??[]).flatMap(e=>e.parameter)];return{...e,cliPath:e.projection.cliPath,enumParameter:t.map(e=>({values:e.itemSchemaEnum??e.schemaEnum??[],direct:e.name===e.inputName})),parameterName:t.flatMap(e=>[e.name,e.inputName]),directParameterName:e.parameter.map(e=>e.name),parameterDescription:[...e.parameter,...e.requestBody??[],...(e.requestBody??[]).flatMap(e=>e.parameter)].map(({description:e})=>e)}}function Rt(e,t){let n=It(e.q?.trim()??``,t.filter(t=>zt(e,t)),Lt),r=(n[0]?.score??0)*Mt,i=n.filter(({score:e})=>e>=r),a=e.limit===void 0||!Number.isFinite(e.limit)?jt:e.limit,o=Math.min(i.length,Math.max(0,Math.trunc(a))),s=i.slice(0,o).map(({item:e})=>e),c=s.map(e=>it(e,s.length===1));return{summary:`Operation catalog matches`,data:c,counts:{totalOperations:t.length,matched:i.length,returned:c.length}}}function zt(e,t){let n=e.root?.trim().toLowerCase();return!(e.method!==void 0&&t.method!==e.method||e.scope!==void 0&&t.projection.scope!==e.scope||n&&t.resource!==n&&t.projection.cliPath[0]!==n)}function Bt(e,t,n,r){let i=Ut(r),a=Vt(r),o=0;i.some(t=>t===e)&&(o+=100),i.some(t=>t.includes(e))&&(o+=40),o+=Ht(e,i);let s=new Set(i.flatMap(A));for(let e of t)i.some(t=>t===e)?o+=20:s.has(e)&&(o+=8);for(let e of r.cliPath){let n=new Set;k(n,e),[...n].some(e=>t.has(e))&&(o+=Nt)}bt(n,a)&&(o+=200),r.parameterName.some(t=>j(t)===e)&&(o+=Pt);let c=new Set(r.parameterDescription.flatMap(A));for(let e of t)c.has(e)&&(o+=Ft);return o+=Gt(t,r.enumParameter),[`list`,`search`,`find`,`browse`].some(e=>t.has(e))&&/^(?:list|search)[A-Z]/u.test(r.operationId)&&(o+=30),o-=Wt(e,t,r.description),o}function Vt(e){return[e.operationId,e.cliPath.join(` `),e.summary].map(j).filter(e=>e.length>0)}function Ht(e,t){let n=A(e),r=0;for(let e=0;e<n.length-1;e+=1){let i=n.slice(e,e+2).join(` `);t.some(e=>e.includes(i))&&(r+=24)}return r}function Ut(e){return[...new Set([e.operationId,e.method,e.path,e.resource,e.intent,e.cliPath.join(` `),e.summary,pt(e.description).useFor||e.description].map(j).filter(e=>e.length>0))]}function Wt(e,t,n){let r=j(pt(n).notFor);if(r.length===0)return 0;let i=r.includes(e)?40:0,a=new Set(A(r));for(let e of t)r===e?i+=20:a.has(e)&&(i+=8);return i}function Gt(e,t){let n=0;for(let{values:r,direct:i}of t)r.some(t=>Kt(e,t))&&(n+=i?40:10);return n}function Kt(e,t){let n=A(t);return n.length>0&&n.every(t=>e.has(t))}var qt=3,Jt=200;function Yt(e,t){let{operationId:n}=e;if(n===void 0||t.some(e=>e.operationId===n))return null;let r=Rt({q:[n,...Xt(e)].join(` `),limit:qt},t),i=r.summary===`Operation catalog matches`?r.data:[],a=i.map(e=>`${e.operationId} (${e.method} ${e.path})`);return m(`Operation ${n} is not in the MCP catalog.${a.length===0?``:` Closest operations: ${a.join(`, `)}.`}`,i.map(e=>`Use operationId ${e.operationId} with aventure_${e.intent}: ${e.method} ${e.path}; required inputs: ${e.requiredInput.length===0?`none`:e.requiredInput.join(`, `)}.`))}function Xt(e){let t=e.body,n=typeof t==`object`&&t&&!Array.isArray(t)?Object.entries(t):[];return[...Object.entries(e.pathParams??{}),...Object.entries(e.query??{}),...n].flatMap(([e,t])=>typeof t==`string`&&t.length<=Jt?[e,t]:[e])}function Zt(e){return typeof e.data==`object`&&e.data!==null&&`response`in e.data?e.data.response:void 0}async function Qt(e,t,n,r){let i=e.q?.trim()??``;if(i.length===0)return m(`Provide q to resolve a request to one operation.`);let a=n.find(({resource:e,intent:t,deprecated:n})=>e===`help`&&t===`search`&&n!==!0);if(a===void 0)return m(`This build ships no help resolve operation.`);let o=await r(a,{body:{question:i,resolve:!0,...e.scope===void 0?{}:{scope:e.scope===`read`?`READ`:`WRITE`},includePrivate:!1}});if(!o.ok)return{...o,data:null};let s=Ve.safeParse(Zt(o));if(!s.success||s.data.resolution==null)return m(`The help resolve operation returned no resolution.`);let{answer:c,resolution:l}=s.data,u=e=>t.find(t=>t.operationId===e),d=u(l.operationId),f=l.taskPlan??void 0,p=(f?.step??[]).map(({step:e})=>({step:e,contract:u(e.operationId)})),h=[...new Set([...l.operationId!=null&&d===void 0?[l.operationId]:[],...p.filter(({contract:e})=>e===void 0).map(({step:e})=>e.operationId)])];return ee(h.length===0?`Help resolution`:`Help resolution this connection cannot finish: it cannot run ${h.join(`, `)}.`,{outcome:l.outcome,probability:l.probability,answer:c,candidate:l.candidate.map(({sourceId:e})=>e),...d===void 0?{}:{operation:{operationId:d.operationId,apiRoute:`${d.method} ${d.path}`,...ft(d),bodySchemaName:d.requestBody?.[0]?.schemaName??null,mcpCall:ut(d)}},...l.taskKey==null?{}:{taskKey:l.taskKey},...f===void 0?{}:{taskPlan:{catalogRevision:f.catalogRevision,input:f.input,...f.gateId.length===0?{}:{gateId:f.gateId},step:p.map(({contract:e,step:{stepKey:t,instruction:n,operationId:r}})=>e===void 0?{stepKey:t,instruction:n,operationId:r}:{stepKey:t,instruction:n,mcpCall:ut(e)})}}},{warnings:h.map(e=>n.some(t=>t.operationId===e)?`Operation ${e} is in this server's catalog, but your grant does not allow it.`:`Operation ${e} is outside this server's catalog, so no credential runs it here.`)})}var $t=p({detail:f(),field:f().nullish(),scope:o([`entity`,`person`,`news`])}),en=n([o([`auto`,`exact`,`keyword`,`semantic`,`natural`,`hybrid`]),f()]),M=p({modeRequested:en,modeUsed:en}),tn=p({answerUnavailable:u(),entity:M,news:M,person:M,rejection:i($t),unavailable:i(o([`entity`,`person`,`news`]))}),nn=p({acceleratorParticipation:i(ye),detail:i(fe)}),N=p({core:v,enrichment:we,fundraiseRound:i(y),research:nn,semanticMatch:ue.nullish()}),rn=o([`curated`,`semantic`,`precomputed`,`derived`,`computed`]),an=p({compositeScore:d().nullish(),cosineScore:d().nullish(),curatedAsOf:c().nullish(),curatedRelationshipType:f().nullish(),curatedSource:f().nullish(),derivedFromEntityId:t().nullish(),matchedSectionWeight:d().nullish(),origin:rn,rank:s(),sharedSectionCount:s().nullish()}),on=p({entity:N,similarity:an}),sn=o([`aventureBlog`,`personalBlog`,`employerBlog`,`linkedin`,`xTwitter`,`medium`,`substack`,`other`]),cn=p({author:f().nullish(),createdAt:r({offset:!0}),externalId:f().nullish(),id:t(),isCurrent:u(),lastFetchedAt:r({offset:!0}).nullish(),mentionedEntityId:i(t()),mentionedPersonId:i(t()),owner:l,publishedAt:r({offset:!0}).nullish(),summary:f().nullish(),summaryGeneratedAt:r({offset:!0}).nullish(),title:f().nullish(),topic:f().nullish(),type:sn,updatedAt:r({offset:!0}),url:f()}),ln=o([`low`,`medium`,`high`]),un=p({asOfDate:r({offset:!0}).nullish(),dataConfidence:ln.nullish(),dateValue:r({offset:!0}).nullish(),numericValue:d().nullish(),referenceValue:f().nullish(),source:f().nullish(),textValue:f().nullish(),updatedAt:r({offset:!0}).nullish(),valueType:pe}),dn=p({asOfDate:r({offset:!0}),fact:un,id:f()}),fn=p({fundraiseInvestorJoin:u(),fundraiseTransaction:u(),operatingStatus:u(),relationship:u()}),pn=o([`Acquisition`,`Acquired`,`Acquired Subsidiary`]),mn=o([`Announced`,`Announced; subject to approvals and closing conditions`,`Active`,`Closed`,`Completed`,`In Progress`,`Open`]),hn=p({acquiredEntity:v,acquirerEntity:v,amount:d().int().nullish(),announcedAt:r({offset:!0}).nullish(),asOf:c().nullish(),completedAt:r({offset:!0}).nullish(),createdAt:r({offset:!0}).nullish(),currency:f().nullish(),dataConfidence:Te.nullish(),evidence:fn,fundraiseTransactionId:t().nullish(),investorJoinId:t().nullish(),publicSource:me.nullish(),relationshipId:s(),status:pn,transactionStatus:mn.nullish(),updatedAt:r({offset:!0}).nullish()}),gn=o([`SAFE`,`Convertible Note`,`Preferred Stock`,`Common Stock`,`Other Equity`,`Bond`,`Loan`,`Other Debt`,`Grant`,`Token`]),_n=p({amountInvested:d().nullish(),createdAt:r({offset:!0}),financialInstrumentType:gn.nullish(),id:t(),investor:l,leadInvestor:u(),transactionId:t(),updatedAt:r({offset:!0})}),vn=p({entity:S,investorAttribution:i(le),round:i(Se),roundCount:s()}),yn=p({core:v,similarity:an,urlLink:i(se)}),bn=p({compliance:xe.nullish(),createdAt:r({offset:!0}).nullish(),id:s(),isCurrent:u().nullish(),isPrimary:u().nullish(),language:f().nullish(),owner:l,text:f(),textName:f().nullish(),textType:f(),updatedAt:r({offset:!0}).nullish()}),xn=o([`stored`,`derivedFromPreAndRaised`,`derivedFromPostMinusRaised`,`reportedAssumedPost`]),Sn=o([`fundraiseRound`,`researchDetail`]),Cn=o([`preMoney`,`postMoney`,`reported`]),wn=p({amountRaised:d().int().nullish(),asOfDate:r({offset:!0}),confidence:ln,currency:f(),declaredBasis:Cn,derivation:xn,detailId:s().nullish(),label:f().nullish(),source:Sn,sourceRef:f(),valuationPostMoney:d().int().nullish(),valuationPreMoney:d().int().nullish()}),Tn=p({createdAt:r({offset:!0}).nullish(),description:f().nullish(),forkCount:s(),githubId:d().int(),homepageUrl:f().nullish(),id:d().int(),isArchived:u(),isFork:u(),language:f().nullish(),license:f().nullish(),name:f(),ownerLogin:f(),repoCreatedAt:r({offset:!0}).nullish(),repoPushedAt:r({offset:!0}).nullish(),stargazerCount:s(),topic:i(f()),updatedAt:r({offset:!0}).nullish(),url:f()}),P=p({empty:u().optional(),sorted:u().optional(),unsorted:u().optional()}),F=p({offset:d().int().optional(),paged:u().optional(),pageNumber:s().optional(),pageSize:s().optional(),sort:P.optional(),unpaged:u().optional()}),En=p({investorAttribution:i(le),person:x,round:i(Se),roundCount:s()}),Dn=o([`precomputed`,`live`]),On=p({compositeScore:d().nullish(),cosineScore:d().nullish(),matchedSectionWeight:d().nullish(),origin:Dn,rank:s(),sharedSectionCount:s().nullish()}),kn=p({currentRole:be.nullish(),person:b,similarity:On}),An=o([`by`,`about`]),jn=o([`newsArticle`,`blogPost`,`externalSocialPost`,`repositoryOwner`,`repository`,`webSite`,`webPage`,`researchPaper`]),Mn=p({canonicalUrl:f().nullish(),contentId:f(),contentType:jn,createdAt:r({offset:!0}).nullish(),publishedAt:r({offset:!0}).nullish(),relation:An.nullish(),sourceDomain:f().nullish(),sourceName:f().nullish(),summary:f().nullish(),title:f(),topic:f().nullish(),updatedAt:r({offset:!0}).nullish(),url:f().nullish(),year:s().nullish()});p({content:i(cn).optional(),empty:u().optional(),first:u().optional(),last:u().optional(),number:s().optional(),numberOfElements:s().optional(),pageable:F.optional(),size:s().optional(),sort:P.optional(),totalElements:d().int().optional(),totalPages:s().optional()}),p({content:i(n([ce,Ce])).optional(),empty:u().optional(),first:u().optional(),last:u().optional(),number:s().optional(),numberOfElements:s().optional(),pageable:F.optional(),size:s().optional(),sort:P.optional(),totalElements:d().int().optional(),totalPages:s().optional()}),p({content:i(dn).optional(),empty:u().optional(),first:u().optional(),last:u().optional(),number:s().optional(),numberOfElements:s().optional(),pageable:F.optional(),size:s().optional(),sort:P.optional(),totalElements:d().int().optional(),totalPages:s().optional()}),p({content:i(v).optional(),empty:u().optional(),first:u().optional(),last:u().optional(),number:s().optional(),numberOfElements:s().optional(),pageable:F.optional(),size:s().optional(),sort:P.optional(),totalElements:d().int().optional(),totalPages:s().optional()}),p({content:i(hn).optional(),empty:u().optional(),first:u().optional(),last:u().optional(),number:s().optional(),numberOfElements:s().optional(),pageable:F.optional(),size:s().optional(),sort:P.optional(),totalElements:d().int().optional(),totalPages:s().optional()}),p({content:i(S).optional(),empty:u().optional(),first:u().optional(),last:u().optional(),number:s().optional(),numberOfElements:s().optional(),pageable:F.optional(),size:s().optional(),sort:P.optional(),totalElements:d().int().optional(),totalPages:s().optional()}),p({content:i(_n).optional(),empty:u().optional(),first:u().optional(),last:u().optional(),number:s().optional(),numberOfElements:s().optional(),pageable:F.optional(),size:s().optional(),sort:P.optional(),totalElements:d().int().optional(),totalPages:s().optional()}),p({content:i(y).optional(),empty:u().optional(),first:u().optional(),last:u().optional(),number:s().optional(),numberOfElements:s().optional(),pageable:F.optional(),size:s().optional(),sort:P.optional(),totalElements:d().int().optional(),totalPages:s().optional()}),p({content:i(vn).optional(),empty:u().optional(),first:u().optional(),last:u().optional(),number:s().optional(),numberOfElements:s().optional(),pageable:F.optional(),size:s().optional(),sort:P.optional(),totalElements:d().int().optional(),totalPages:s().optional()}),p({content:i(N).optional(),empty:u().optional(),first:u().optional(),last:u().optional(),number:s().optional(),numberOfElements:s().optional(),pageable:F.optional(),size:s().optional(),sort:P.optional(),totalElements:d().int().optional(),totalPages:s().optional()}),p({content:i(be).optional(),empty:u().optional(),first:u().optional(),last:u().optional(),number:s().optional(),numberOfElements:s().optional(),pageable:F.optional(),size:s().optional(),sort:P.optional(),totalElements:d().int().optional(),totalPages:s().optional()}),p({content:i(ge).optional(),empty:u().optional(),first:u().optional(),last:u().optional(),number:s().optional(),numberOfElements:s().optional(),pageable:F.optional(),size:s().optional(),sort:P.optional(),totalElements:d().int().optional(),totalPages:s().optional()}),p({content:i(fe).optional(),empty:u().optional(),first:u().optional(),last:u().optional(),number:s().optional(),numberOfElements:s().optional(),pageable:F.optional(),size:s().optional(),sort:P.optional(),totalElements:d().int().optional(),totalPages:s().optional()}),p({content:i(he).optional(),empty:u().optional(),first:u().optional(),last:u().optional(),number:s().optional(),numberOfElements:s().optional(),pageable:F.optional(),size:s().optional(),sort:P.optional(),totalElements:d().int().optional(),totalPages:s().optional()}),p({content:i(on).optional(),empty:u().optional(),first:u().optional(),last:u().optional(),number:s().optional(),numberOfElements:s().optional(),pageable:F.optional(),size:s().optional(),sort:P.optional(),totalElements:d().int().optional(),totalPages:s().optional()}),p({content:i(yn).optional(),empty:u().optional(),first:u().optional(),last:u().optional(),number:s().optional(),numberOfElements:s().optional(),pageable:F.optional(),size:s().optional(),sort:P.optional(),totalElements:d().int().optional(),totalPages:s().optional()}),p({content:i(bn).optional(),empty:u().optional(),first:u().optional(),last:u().optional(),number:s().optional(),numberOfElements:s().optional(),pageable:F.optional(),size:s().optional(),sort:P.optional(),totalElements:d().int().optional(),totalPages:s().optional()}),p({content:i(se).optional(),empty:u().optional(),first:u().optional(),last:u().optional(),number:s().optional(),numberOfElements:s().optional(),pageable:F.optional(),size:s().optional(),sort:P.optional(),totalElements:d().int().optional(),totalPages:s().optional()}),p({content:i(wn).optional(),empty:u().optional(),first:u().optional(),last:u().optional(),number:s().optional(),numberOfElements:s().optional(),pageable:F.optional(),size:s().optional(),sort:P.optional(),totalElements:d().int().optional(),totalPages:s().optional()}),p({content:i(Tn).optional(),empty:u().optional(),first:u().optional(),last:u().optional(),number:s().optional(),numberOfElements:s().optional(),pageable:F.optional(),size:s().optional(),sort:P.optional(),totalElements:d().int().optional(),totalPages:s().optional()}),p({content:i(de).optional(),empty:u().optional(),first:u().optional(),last:u().optional(),number:s().optional(),numberOfElements:s().optional(),pageable:F.optional(),size:s().optional(),sort:P.optional(),totalElements:d().int().optional(),totalPages:s().optional()}),p({content:i(b).optional(),empty:u().optional(),first:u().optional(),last:u().optional(),number:s().optional(),numberOfElements:s().optional(),pageable:F.optional(),size:s().optional(),sort:P.optional(),totalElements:d().int().optional(),totalPages:s().optional()}),p({content:i(x).optional(),empty:u().optional(),first:u().optional(),last:u().optional(),number:s().optional(),numberOfElements:s().optional(),pageable:F.optional(),size:s().optional(),sort:P.optional(),totalElements:d().int().optional(),totalPages:s().optional()}),p({content:i(ve).optional(),empty:u().optional(),first:u().optional(),last:u().optional(),number:s().optional(),numberOfElements:s().optional(),pageable:F.optional(),size:s().optional(),sort:P.optional(),totalElements:d().int().optional(),totalPages:s().optional()}),p({content:i(En).optional(),empty:u().optional(),first:u().optional(),last:u().optional(),number:s().optional(),numberOfElements:s().optional(),pageable:F.optional(),size:s().optional(),sort:P.optional(),totalElements:d().int().optional(),totalPages:s().optional()}),p({content:i(kn).optional(),empty:u().optional(),first:u().optional(),last:u().optional(),number:s().optional(),numberOfElements:s().optional(),pageable:F.optional(),size:s().optional(),sort:P.optional(),totalElements:d().int().optional(),totalPages:s().optional()}),p({content:i(Mn).optional(),empty:u().optional(),first:u().optional(),last:u().optional(),number:s().optional(),numberOfElements:s().optional(),pageable:F.optional(),size:s().optional(),sort:P.optional(),totalElements:d().int().optional(),totalPages:s().optional()});var Nn=p({content:i(N),number:s(),size:s(),totalElements:d().int(),totalPages:s()}),Pn=p({content:i(de),number:s(),size:s(),totalElements:d().int(),totalPages:s()}),Fn=p({content:i(b),number:s(),size:s(),totalElements:d().int(),totalPages:s()});p({content:i(_e).optional(),empty:u().optional(),first:u().optional(),last:u().optional(),number:s().optional(),numberOfElements:s().optional(),pageable:F.optional(),size:s().optional(),sort:P.optional(),totalElements:d().int().optional(),totalPages:s().optional()});var In=n([o([`entityRecord`,`researchSnippet`,`newsArticle`,`personRecord`,`fundraiseTransaction`]),f()]),Ln=p({entityId:t(),source:In,sourceId:f()}),Rn=p({citation:i(Ln),text:f(),topic:f().nullish()}),zn=p({citation:i(Ln),confidence:w,description:f().nullish(),heading:f().nullish(),paragraph:i(Rn),relatedQuery:i(f()),shareable:u(),text:f(),title:f().nullish()}),Bn=p({sortPriority:o([`NONE`,`ANY_LOGO_FIRST`,`REAL_LOGO_FIRST`]).optional()}),Vn=p({max:r({offset:!0}).nullish(),min:r({offset:!0}).nullish()}),I=p({max:d().nullish(),min:d().nullish()}),L=p({max:s().nullish(),min:s().nullish()}),Hn=p({averageAmountInvestedUsdRange:i(I).optional(),largestAmountInvestedUsdRange:i(I).optional(),smallestAmountInvestedUsdRange:i(I).optional(),totalAmountInvestedUsdRange:i(I).optional(),totalInvestmentRange:i(L).optional()}),Un=p({amountInvestedRange:i(I).optional(),amountRaisedRange:i(I).optional(),dateAnnouncedRange:Vn.nullish(),investedCompanyName:i(f()).optional(),investedCountry:i(f()).optional(),investedIndustry:i(f()).optional(),investedRound:i(f()).optional(),investorActivity:Hn.optional(),investorName:i(f()).optional(),lastRoundYearRange:i(L).optional(),rankByInvestmentActivity:u().nullish(),round:i(f()).optional(),totalRaisedRange:i(I).optional(),valuationRange:i(I).optional()}),Wn=o([`NONE`,`COMPANY_LISTING_READY`]),Gn=o([`Operating`,`Acquired`,`Acquired Subsidiary`,`Closed`,`Closed (Acquihire)`,`Inactive`]),Kn=o([`hostPath`,`domain`]),qn=e({acceleratorBrand:i(f()).optional(),acceleratorCohort:i(f()).optional(),acceleratorName:i(f()).optional(),acceleratorStatus:i(f()).optional(),affinity:i(f()).optional(),closedLast:u().optional(),employeeCountRange:i(L).optional(),entityId:i(t()).optional(),entityName:i(f()).optional(),featured:u().nullish(),fundraiseActivity:Un.optional(),hasFundraising:u().nullish(),headquartersCity:i(f()).optional(),headquartersCountry:i(f()).optional(),headquartersState:i(f()).optional(),industry:i(f()).optional(),letter:f().nullish(),location:i(f()).optional(),logoOption:Bn.optional(),mainProduct:i(f()).optional(),operatingStatus:i(Gn).optional(),originCountry:i(f()).optional(),person:i(f()).optional(),portfolioHeadquartersCity:i(f()).optional(),portfolioHeadquartersCountry:i(f()).optional(),portfolioHeadquartersState:i(f()).optional(),qualityGate:Wn.optional(),rankByProminence:u().nullish(),semanticQuery:f().nullish(),slug:i(f().regex(/^[a-z0-9_-]+$/).max(255)).optional(),stage:i(f()).optional(),suppressLateStage:u().nullish(),suppressNonOperating:u().nullish(),suppressZeroTotalRaised:u().nullish(),tag:i(f()).optional(),textSearch:f().nullish(),typeCustomer:i(f()).optional(),typeModel:i(f()).optional(),typeOwnership:i(f()).optional(),typeRecord:i(a).optional(),typeRevenue:i(f()).optional(),typeTechnologyUsed:i(f()).optional(),url:f().nullish(),urlDomain:f().nullish(),urlMatchMode:Kn.nullish(),urlType:oe.nullish(),yearFoundedRange:i(L).optional()}),Jn=o([`discovery`,`profile`,`peer`,`comparison`]),Yn=o([`keyword`,`semantic`]),Xn=n([o([`ID`,`NAME_BRAND`,`YEAR_FOUNDED`,`STATUS_OPERATING`,`UPDATED_AT`,`CREATED_AT`,`NEXT_DUE_AT`,`DATA_COMPLETION_COVERAGE`,`TOTAL_RAISED`,`AMOUNT_INVESTED`,`RECENT_INVESTMENT_AT`,`STAGE`,`MOST_RECENT_AMOUNT`,`LATEST_VALUATION`,`MOST_RECENT_DATE`,`ACCELERATOR_BRAND`,`ACCELERATOR_COHORT`,`HEADQUARTERS_COUNTRY`,`EMPLOYEE_COUNT`]),f()]),Zn=p({descending:u(),field:Xn,sortKey:f().nullish()}),Qn=p({order:i(Zn),relevance:Yn.nullish()}),$n=p({confidence:w,execution:M,fallbackUsed:u(),filter:qn,intent:Jn,interpretation:f(),sort:Qn,subjectEntityName:i(f()),unsupported:f().nullish()}),R=p({changedAt:r({offset:!0}).nullish(),dataSourceUpdatedAt:r({offset:!0}).nullish(),pendingApproval:s().nullish(),sourceId:f().nullish(),status:f().nullish()}),er=p({fundManagerRelationshipSource:R.nullish(),fundraiseTransaction:y,fundraiseTransactionSource:R.nullish(),investorJoinSource:R.nullish()}),tr=p({evidence:er,investor:l,semanticMatch:ue.nullish()}),nr=p({entityId:t(),matchedOffering:v.nullish(),probability:d(),webUrl:i(f())}),rr=p({entityId:t(),label:f(),publishedAt:r({offset:!0}).nullish(),score:d(),source:In,sourceId:f(),text:f(),url:f().nullish()}),ir=p({answer:zn.nullish(),interpretation:$n,investment:i(tr),judgment:i(nr),passage:i(rr),peer:i(on),pendingWebQuery:i(f()),result:Nn,searchRequestId:t().nullish(),subject:i(N)}),ar=o([`auto-match`,`needs-review`,`approved`,`rejected`]),or=p({createdAt:r({offset:!0}),entityId:t(),href:f().nullish(),internal:u(),matchStatus:ar.nullish(),mention:f().nullish(),slug:f().regex(/^[a-z0-9_-]+$/).max(255).nullish(),typeRecord:a.nullish(),updatedAt:r({offset:!0})}),sr=p({entity:i(or),newsId:s()}),cr=e({acceleratorBrand:i(f()).optional(),acceleratorCohort:i(f()).optional(),acceleratorName:i(f()).optional(),acceleratorStatus:i(f()).optional(),affinity:i(f()).optional(),closedLast:u().optional(),employeeCountRange:i(L).optional(),entityId:i(t()).optional(),entityName:i(f()).optional(),featured:u().nullish(),fundraiseActivity:Un.optional(),hasFundraising:u().nullish(),headquartersCity:i(f()).optional(),headquartersCountry:i(f()).optional(),headquartersState:i(f()).optional(),industry:i(f()).optional(),letter:f().nullish(),location:i(f()).optional(),logoOption:Bn.optional(),mainProduct:i(f()).optional(),operatingStatus:i(Gn).optional(),originCountry:i(f()).optional(),person:i(f()).optional(),portfolioHeadquartersCity:i(f()).optional(),portfolioHeadquartersCountry:i(f()).optional(),portfolioHeadquartersState:i(f()).optional(),qualityGate:Wn.optional(),rankByProminence:u().nullish(),slug:i(f().regex(/^[a-z0-9_-]+$/).max(255)).optional(),stage:i(f()).optional(),suppressLateStage:u().nullish(),suppressNonOperating:u().nullish(),suppressZeroTotalRaised:u().nullish(),tag:i(f()).optional(),textSearch:f().nullish(),typeCustomer:i(f()).optional(),typeModel:i(f()).optional(),typeOwnership:i(f()).optional(),typeRecord:i(a).optional(),typeRevenue:i(f()).optional(),typeTechnologyUsed:i(f()).optional(),url:f().nullish(),urlDomain:f().nullish(),urlMatchMode:Kn.nullish(),urlType:oe.nullish(),yearFoundedRange:i(L).optional()}),lr=p({amountInvestedRange:i(I).nullish(),amountRaisedRange:i(I).nullish(),entityName:i(f()).nullish(),investedCompany:i(f()).nullish(),personTitle:i(f()).nullish(),round:i(f()).nullish(),totalInvestmentCount:i(L).nullish(),typeRecord:i(a).nullish()}),ur=p({arrayFilter:lr.optional(),entityFilter:cr.optional(),entityId:t().nullish(),entitySlug:f().nullish(),firstName:f().nullish(),includeAddress:u().nullish(),includeUrl:u().nullish(),investorActivity:Hn.optional(),isCurrent:u().nullish(),lastName:f().nullish(),letter:f().nullish(),personId:i(t()).max(200).optional(),personName:i(f()).optional(),role:f().nullish(),search:f().nullish(),semanticQuery:f().nullish(),status:f().nullish()}),dr=p({descending:u(),field:o([`ID`,`FIRST_NAME`,`LAST_NAME`,`FULL_NAME`,`SLUG`,`CREATED_AT`,`UPDATED_AT`,`STATUS`,`GENDER`,`AMOUNT_INVESTED`,`TOTAL_INVESTMENTS`]),sortKey:f().nullish()}),fr=p({order:i(dr),relevance:Yn.nullish()}),pr=p({confidence:w,execution:M,fallbackUsed:u(),filter:ur,interpretation:f(),sort:fr,unsupported:f().nullish()}),mr=p({interpretation:pr,investment:i(tr),result:Fn,searchRequestId:t().nullish()}),hr=p({entity:ir,entityDetail:i(S),news:Pn,newsEntityMention:i(sr),person:mr,personDetail:i(x),provenance:tn});function z(e,t){return e.map(e=>{let n=e.requestBody??[],r=[...e.parameters.map(e=>gr(e)),...n.flatMap(e=>e.parameter.map(t=>gr(t,n.length>1?e.contentType:void 0))),..._r(n)],i=[t,...e.cliPath].join(` `),a=ie(e.intent),o=n[0];return{operationId:e.operationId,method:e.method,path:e.path,resource:e.resource,intent:e.intent,scope:e.scope,mutates:a,destructive:te(e.method,e.intent),auth:e.auth,cli:{command:i,path:e.cliPath},mcpTool:e.binaryResponse||!ne(e.path)?null:ae(e.intent),body:{hasBody:o!==void 0,kind:o?.kind??null,...o!==void 0&&n.length>1?{contentType:o.contentType}:{},required:o?.required??!1,description:o?.description??``,requiredPath:o?.requiredPath??[]},flags:r,errorResponse:e.errorResponse,successResponse:e.successResponse,summary:e.summary,description:e.description,deprecated:e.deprecated}})}function gr(e,t){let n=e.flag.split(/\s+/u);return{name:n[0]??e.flag,optionKey:e.optionKey,wireName:e.name,location:e.location,required:e.required,placeholder:n.length<=1?null:n.slice(1).join(` `),description:e.description,choices:e.choices??[],...t===void 0?{}:{contentType:t}}}function _r(e){if((e?.length??0)<=1)return[];let t=e?.map(({contentType:e})=>e)??[];return[{name:`--content-type`,optionKey:`contentType`,wireName:`Content-Type`,location:`body`,required:!1,placeholder:`<media-type>`,description:`Select the request body encoding, never an uploaded file's media type; omit for ${t[0]}.`,choices:t}]}function B(e){return e.flags.filter(({contentType:t})=>t===void 0||t===e.body.contentType)}var vr=[`-id`,`-slug`,`-url`],yr=[`--id`,`--slug`,`--url`],br=`/v1/lookup`,xr=`--from-file "<path>"`;function Sr(e,t,n=_().bin[0]){let r=z(t,n),i=r.find(t=>t.operationId===e);return i===void 0?[]:Er(i,r)}function Cr(e,t,n=_().bin[0]){let r=t.find(t=>t.operationId===e),[i]=r===void 0?[]:z([r],n);return i&&Tr(i,kr(i,!1))}function wr(e,t,n,r=_().bin[0]){let i=e=>{let t=e.findIndex((e,t)=>n[t]!==e);return t===-1?e.length:t},a=`${n[0]} get`,[o,s]=t.filter(({method:t,path:n,parameters:r,cliPath:o})=>{let s=r.filter(({location:e})=>e===`path`),[c]=s;return t===`GET`&&s.length===1&&c?.flag.split(/\s+/u)[0]===e&&n.endsWith(`/{${c.name}}`)&&(i(o)>1||o.join(` `)===a)}).toSorted((e,t)=>i(t.cliPath)-i(e.cliPath));if(o!==void 0&&(s===void 0||i(s.cliPath)!==i(o.cliPath)))return Cr(o.operationId,t,r)}function Tr(e,t){return[e.cli.command,...t,`--data`].join(` `)}function Er(e,t){return[`example: ${Tr(e,kr(e))}`,...Dr(e,t)]}function Dr(e,t){return B(e).flatMap(e=>{if(!e.required||!e.optionKey.endsWith(`Id`))return[];let n=`${e.optionKey.slice(0,-2)}Slug`,r=t.find(e=>e.method===`GET`&&/\/lookup(?:-exact)?$/u.test(e.path)&&e.flags.some(e=>e.optionKey===n)),i=r?.flags.find(e=>e.optionKey===n);if(r===void 0||i===void 0)return[];let a=`${r.cli.command} ${V(i)} --data`,o=t.find(e=>e.method===`POST`&&e.path===br),s=o?.flags.find(e=>e.optionKey===`name`),c=o?.flags.find(e=>e.optionKey===`kind`),l=c?.choices.find(t=>e.optionKey.toUpperCase().startsWith(t)),u=`lookup: ${e.name} from a slug: ${a}`;return o===void 0||s===void 0||c===void 0||l===void 0?[u]:[u,`lookup: ${e.name} from a name or URL: ${o.cli.command} ${c.name} ${l} ${V(s)} --data, then match.owner.${e.optionKey} when status is MATCHED`]})}var Or=/(?:^|\.)text$/u;function kr(e,t=!0){let n=B(e).filter(e=>e.required),r=e.body.kind===`json`&&n.some(e=>e.location===`body`&&Or.test(e.wireName))?n.filter(e=>e.location!==`body`):n,i=(n.length>0||!t?r:Ar(e)).map(V);return(e.body.required||e.body.requiredPath.length>0)&&!r.some(e=>e.location===`body`)?[...i,xr]:i}function Ar(e){let t=new Set;k(t,e.resource);for(let n of vr)for(let r of t){let t=e.flags.find(e=>e.name===`--${r}${n}`);if(t!==void 0)return[t]}for(let t of yr){let n=e.flags.find(e=>e.name===t);if(n!==void 0)return[n]}return[]}function V(e){return e.placeholder===null?e.name:`${e.name} "${e.placeholder}"`}var jr=`aventure`;function Mr(e,t){let n=t.find(t=>t.operationId===e)?.cliPath;return n===void 0?void 0:`${jr} ${n.join(` `)}`}function Nr(e,t,n=e){return Cr(e,t,`aventure`)??n}function Pr(e,t){let n=Ve.safeParse(e);if(!n.success)return null;let{answer:r,citation:i,confidence:a,resolution:o}=n.data;if(o!=null)return Fr(r,o,t);let s=r.trimEnd().split(`
|
|
3
|
-
`),c=new Set(i.flatMap(({sourceType:e,sourceId:n})=>{if(e!==Me.options[0].enum.OPERATION)return[];let r=Mr(n,t);return r===void 0?[]:[r]}));return c.size>0&&s.push(``,`Commands:`,...[...c].map(e=>` ${e}`)),s.push(``,`Confidence: ${a}`),i.length===0?s:(s.push(`Sources (${i.length}):`),s.push(...i.map(({excerpt:e,sourceId:t})=>{let n=e.trim();return n.length>0?` - ${t}: ${n}`:` - ${t}`})),s)}function Fr(e,t,n){let{outcome:r,operationId:i,probability:a,candidate:o,taskKey:s,taskPlan:c}=t,l=[c==null?e.trimEnd():Lr(c)],u=[``,`Outcome: ${r}${a==null?``:` (probability ${a.toFixed(2)})`}`];switch(r){case T.enum.TASK_PLAN:return[...l,...c==null?[]:Rr(c,n),...u];case T.enum.OPERATION_ADVICE:{let e=o.filter(({sourceId:e})=>e!==i);return[...l,...i==null?[]:[``,`Command:`,` ${Nr(i,n)}`],...u,...e.length===0?[]:[`Alternatives: ${e.map(({sourceId:e})=>e).join(`, `)}`]]}case T.enum.CLARIFY:return[...l,...s==null?[]:[``,`Leading catalog task: ${s}`],...Br(`Candidates:`,o,n),...u];case T.enum.ABSTAIN:return[...l,...Br(`Nearest operations:`,o,n),...u];default:throw Error(`Unhandled help resolution outcome ${String(r)}`)}}function Ir(e,t){let n=ze.safeParse(e);return n.success?[Lr(n.data),...Rr(n.data,t)]:null}var Lr=({taskKey:e,catalogRevision:t})=>`Run catalog task ${e} (catalog revision ${t}).`;function Rr(e,t){return e.step.length===0?[``,`This catalog task has no planned steps yet.`]:[...e.input.length===0?[]:[``,`Inputs:`,...e.input.map(({key:e,type:t,description:n})=>` ${e} (${t}): ${n}`)],``,`Steps:`,...e.step.flatMap(({step:n,cliCommand:r,writeGuidance:i},a)=>[` ${a+1}. ${n.stepKey}: ${Nr(n.operationId,t,r)}`,` ${n.instruction}`,...zr(e,a,i)]),...e.gateId.length===0?[]:[``,`Completion gates: ${e.gateId.join(`, `)}`]]}function zr(e,t,n){if(n==null)return[];let r=JSON.stringify(n),i=e.step.findIndex(({writeGuidance:e})=>JSON.stringify(e)===r);return i===t?[` Write guidance:`,` - Expectation: ${n.expectation}`,` - Body: ${n.body}`,` - Read first: ${n.typeCatalog}`,` - Rejected when:`,...n.reject.map(e=>` - ${e}`),` - Override: ${n.override}`,` - Method: ${n.method.join(`; `)}`]:[` Write guidance: as step ${i+1}.`]}function Br(e,t,n){if(t.length===0)return[];let r=t.map(({sourceId:e,excerpt:t})=>({command:Mr(e,n)??e,excerpt:t})),i=Math.max(...r.map(({command:e})=>e.length));return[``,e,...r.map(({command:e,excerpt:t})=>` ${e.padEnd(i)} # ${t}`)]}var H=120,U=30,Vr=8,W=10,Hr=2,Ur=[`id`,`association.associationId`,`slug`,`name`,`nameBrand`,`nameFull`,`core.nameBrand`,`core.nameFull`,`core.slug`,`core.typeRecord`,`entity.core.nameBrand`,`entity.core.slug`,`title`,`sourceName`,`publishedAt`,`round`,`dateAnnounced`,`amountRaised`,`investorAttribution.amountInvested`,`stage`,`updatedAt`,`createdAt`],Wr=new Set([`page`,`size`,`sort`,`cursor`,`mode`,`projection`]),Gr=[`interpretation`,`confidence`,`unsupported`,`execution`,`fallbackUsed`];function Kr(e,t,n){if(typeof t==`string`)return Q(t);let r=ct(t);if(r!==null)return Q(r);let i=ri(t);if(i===null)return null;let a=e.find(({operationId:e})=>e===i.operationId),{response:o,hiddenNote:s}=Ee(a?.detailField,i.response),c={...i,response:o},l=Pr(c.response,e)??Ir(c.response,e);if(l!==null)return Q(l.join(`
|
|
4
|
-
`),!0);let u=qr(c.endpoint,c.response);if(u!==null)return Q([...u,...s].join(`
|
|
5
|
-
`),!0,s.length>0);let d=c.summary??n??c.operationId??`OpenAPI call succeeded`,f=Zr(c);return Q([...[d,`${c.method} ${c.endpoint}`,...f].filter(e=>e.length>0),...s].join(`
|
|
6
|
-
`),!0,s.length>0)}function qr(e,t){if(t===void 0||!Y(t)||!(`entity`in t&&`person`in t&&`news`in t))return null;let n=hr.safeParse(t);if(!n.success)return null;let{entity:r,person:i,news:a,provenance:o}=n.data;return[...r.answer?Jr(r.answer):[],...o.unavailable.map(e=>`${e} unavailable: retry this scope later`),...o.answerUnavailable?[`answer unavailable: retry this search later`]:[],...o.rejection.map(({scope:e,detail:t})=>C(`${e} rejected: ${t}`)),[`entities:`,...G(r.result,e)].join(`
|
|
7
|
-
`),[`people:`,...G(i.result,e)].join(`
|
|
8
|
-
`),[`news:`,...G(a,e)].join(`
|
|
9
|
-
`)]}function Jr(e){let t=`relatedQuery:\n${e.relatedQuery.map(e=>` - ${C(e)}`).join(`
|
|
10
|
-
`)}`,n=`citations:\n${e.citation.map(({source:e,sourceId:t,entityId:n})=>C(` - ${e}:${t} entity=${n}`)).join(`
|
|
11
|
-
`)}`;return[`answer:\n ${De(e.text).replaceAll(`
|
|
12
|
-
`,`
|
|
13
|
-
`)}`,...e.relatedQuery.length===0?[]:[t],...e.citation.length===0?[]:[n]]}function Yr(e){let t=ri(e)?.response,n=t!==void 0&&Y(t)?t.interpretation:void 0;if(n===void 0||!Y(n))return null;let r=M.safeParse(n.execution);if(!r.success)return null;let{modeRequested:i,modeUsed:a}=r.data,o=q(n.filter??null),{unsupported:s,fallbackUsed:c}=n;return Q([`strategy: requested=${i} used=${a}`,...o!==void 0&&Y(o)?[`constraints:`,...Object.entries(o).map(([e,t])=>` ${e}: ${Xr(t)}`)]:[],typeof s==`string`&&s.trim().length>0?`unsupported: ${s}`:``,c===!0?`fallback: semantic search over the original query`:``].filter(Boolean).join(`
|
|
14
|
-
`),!0)}var Xr=e=>X(e)?C(e):Array.isArray(e)&&e.every(X)?e.map(e=>C(e)).join(`, `):JSON.stringify(e);function Zr(e){let{response:t,method:n,endpoint:r,nextCursor:i,httpStatus:a,location:o}=e;if(t===void 0)return o!==void 0&&a!==void 0?[`status=${a} redirect=${o}`]:a===void 0?[]:[`status=${a} no response body`];let s=a===void 0||n===`GET`?``:`status=${a}`,c=Y(t)&&!ai(t)?oi(t):null,l=c===null?void 0:Y(c.context.interpretation)?q(c.context):c.context,u=l!==void 0&&Y(l)?Object.entries(l):[],d=u.filter(e=>Array.isArray(e[1])&&e[1].length>0&&e[1].every(Y)),f=new Set(d.map(([e])=>e)),p=Object.fromEntries(u.filter(([e])=>!f.has(e)));return[s,...ai(t)?G(t,r,i):c===null?ci(t)?ei(t.filter,t.meta):li(t)?ei([...t.arrayFilterEntry,...t.rangeFilterEntry],t.filtersMeta):di(t)?ti(t):K(t,``):[...G(c.page,r,i),...Object.keys(p).length===0?[]:K(p,``),...d.flatMap(([e,t])=>[`${e}:`].concat(Qr(t)))]].filter(Boolean)}function G(e,t,n){let r=ni(t);return[`rows=${e.numberOfElements??e.content.length}${e.number===void 0?``:` page=${e.number}`}${e.size===void 0?``:` size=${e.size}`}${e.totalElements===void 0?``:` total=${e.totalElements}`}${e.totalPages===void 0?``:` totalPages=${e.totalPages}`}`,r.length>0?`filters: ${r.join(` `)}`:``,n===void 0?``:`next: --cursor ${Z(n)}`,...Qr(e.content)].filter(Boolean)}function Qr(e){let t=e.filter(Y);if(t.length===0)return e.length===0?[`(empty)`]:ii(e,``);let n=$r(t);if(n.length===0)return ii(e.slice(0,U),``);let r=t.slice(0,U).map(e=>{let t=J(e);return n.map(e=>t[e]??``)}),i=n.map(e=>e.split(`.`).at(-1)??e),a=i.map((e,t)=>{let n=r.map(e=>e[t]??``),i=Math.max(e.length,...n.map(e=>e.length));return e===`id`||e.endsWith(`Id`)?i:Math.min(32,i)}),o=e=>e.map((e,t)=>pi(e,a[t]??12).padEnd(a[t]??12)).join(` `),s=[o(i),o(a.map(e=>`-`.repeat(e)))];return r.forEach(e=>s.push(o(e))),t.length>U&&s.push(`... ${t.length-U} more rows`),s}function $r(e){let t=new Set(e.flatMap(e=>Object.keys(J(e)))),n=Ur.filter(e=>t.has(e)),r=[...t].filter(e=>!n.includes(e)).filter(e=>!e.toLowerCase().includes(`logo`)).slice(0,Vr-n.length);return[...n,...r].slice(0,Vr)}function ei(e,t){let n=t!==void 0&&Y(t)?t:{},r=[`total`,`limit`].flatMap(e=>typeof n[e]==`number`?[` ${e}=${n[e]}`]:[]).join(``),i=[`filters=${e.length}${r}`];for(let t of e){let e=t.choiceOption.length,n=t.choiceOptionTotal===null?`unknown (degraded)`:t.choiceOptionTotal??e,r=t.choiceOptionTruncated===!0?` truncated`:``;i.push(`- ${t.filterKey} (${t.label}): choices ${e}/${n}${r}`),t.choiceOption.slice(0,W).forEach(e=>{i.push(` ${fi(t.filterKey)} ${Z(e.value)}`)}),e>W&&i.push(` ... ${e-W} more shown`)}return i}function ti(e){let t=fi(e.filterKey);return[`${e.filterKey}: ${e.result.length} matches`,...e.result.slice(0,W).map(e=>`${t} ${Z(e)}`),e.result.length>W?`... ${e.result.length-W} more matches`:``].filter(Boolean)}function ni(e){let t=e.indexOf(`?`);return t<0?[]:[...new URLSearchParams(e.slice(t+1)).entries()].filter(([e,t])=>!Wr.has(e)&&t.length>0).map(([e,t])=>`${fi(e)} ${Z(t)}`)}function ri(e){if(typeof e!=`object`||!e||Array.isArray(e))return null;let t=Reflect.get(e,`method`),n=Reflect.get(e,`endpoint`);if(typeof t!=`string`||typeof n!=`string`)return null;let r=Reflect.get(e,`operationId`),i=Reflect.get(e,`summary`),a=Reflect.get(e,`httpStatus`),o=Reflect.get(e,`location`),s=Reflect.get(e,`nextCursor`),c=Reflect.get(e,`response`),l=c===void 0?void 0:g.safeParse(c);return l!==void 0&&!l.success?null:{method:t,endpoint:n,httpStatus:typeof a==`number`?a:void 0,location:typeof o==`string`?o:void 0,operationId:typeof r==`string`?r:void 0,summary:typeof i==`string`?i:void 0,nextCursor:typeof s==`string`&&s.length>0?s:void 0,response:l?.data}}function K(e,t,n){if(e===void 0)return[];if(X(e))return[`${t}${Oe(e,n)}`];if(Array.isArray(e))return ii(e,t,n);let r=[];for(let[n,i]of Object.entries(e)){if(X(i)){r.push(`${t}${n}: ${Oe(i,n)}`);continue}r.push(`${t}${n}:`);for(let e of K(i,`${t} `,n))r.push(e)}return r.length===0?[`${t}(empty)`]:r}function ii(e,t,n){if(e.length===0)return[`${t}(empty)`];let r=[];for(let i of e){if(X(i)){r.push(`${t}- ${Oe(i,n)}`);continue}r.push(`${t}-`);for(let e of K(i,`${t} `))r.push(e)}return r}function q(e){if(X(e))return e===null||typeof e==`string`&&e.trim().length===0?void 0:e;if(Array.isArray(e)){let t=e.flatMap(e=>{let t=q(e);return t===void 0?[]:[t]});return t.length===0?void 0:t}let t=Object.entries(e).flatMap(([e,t])=>{let n=q(t);return n===void 0?[]:[[e,n]]});if(t.length!==0)return Object.fromEntries([...Gr.flatMap(e=>t.filter(([t])=>t===e)),...t.filter(([e])=>!Gr.includes(e))])}function J(e,t=``,n=0){return X(e)?t.length===0?{}:{[t]:C(e,t)}:n>Hr?{}:Array.isArray(e)?e.length===0?{}:J(e[0],t,n+1):Object.fromEntries(Object.entries(e).flatMap(([e,r])=>{let i=t.length===0?e:`${t}.${e}`;return X(r)?[[i,C(r,i)]]:Object.entries(J(r,i,n+1))}))}var ai=e=>Y(e)&&Array.isArray(e.content);function oi(e){let[t,...n]=Object.entries(e).filter(e=>ai(e[1])&&typeof e[1].totalElements==`number`);if(t===void 0||n.length>0)return null;let[r,i]=t;return{page:i,context:Object.fromEntries(Object.entries(e).filter(([e])=>e!==r))}}function si(e){return Y(e)&&typeof e.label==`string`&&typeof e.filterKey==`string`&&Array.isArray(e.choiceOption)}var ci=e=>Y(e)&&ui(e.filter),li=e=>Y(e)&&ui(e.arrayFilterEntry)&&ui(e.rangeFilterEntry),ui=e=>Array.isArray(e)&&e.every(si),di=e=>Y(e)&&typeof e.filterKey==`string`&&Array.isArray(e.result)&&e.result.every(e=>typeof e==`string`),Y=e=>typeof e==`object`&&!!e&&!Array.isArray(e),X=e=>typeof e!=`object`||!e,fi=e=>`--${e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase()}`,Z=e=>/^[A-Za-z0-9._:/@-]+$/.test(e)?e:`'${e.replaceAll(`'`,`'\\''`)}'`,pi=(e,t)=>e.length<=t?e:`${e.slice(0,Math.max(0,t-3))}...`,Q=(e,t=!1,n=!1,r=1)=>{let i=De(e),a=t||i.endsWith(`
|
|
15
|
-
`),o=i.endsWith(`
|
|
16
|
-
`)?i.slice(0,-1):i,s=o.length===0?[]:o.split(`
|
|
17
|
-
`),c=je.byteLength(`${s.join(`
|
|
18
|
-
`)}\n`,`utf8`);if(s.length<=H&&c<=5e4)return`${s.join(`
|
|
19
|
-
`)}${a?`
|
|
20
|
-
`:``}`;let l=n?Math.min(Math.max(1,r),118):0,u=l>0?s.slice(-l):[],d=u.length===0?s:s.slice(0,-u.length),f=[s.length>H?`${H} physical lines`:``,c>5e4?`${h} UTF-8 bytes`:``].filter(Boolean).join(` and `),p=e=>De(`... output truncated: ${e} more lines omitted to stay within ${f}; recover omitted response content with narrower server-side filters, the relevant sub-resource operation (aventure_help names it), or responseFormat json.`),m=(e,t)=>[...e,...u,t].join(`
|
|
21
|
-
`),ee=H-u.length-1,g=d.slice(0,ee),_=p(s.length-g.length-u.length);for(;je.byteLength(`${m(g,_)}\n`,`utf8`)>h;){if(g.length>0)g=g.slice(0,-1);else if(u.length>0)u=u.slice(1);else break;_=p(s.length-g.length-u.length)}return`${m(g,_)}${a?`
|
|
22
|
-
`:``}`},mi=/\{([^}]+)\}/gu;function hi(e,t){let n=t.filter(e=>e.method===`GET`),r=t=>e.endpoint!==void 0&&t.endsWith(e.endpoint),i=t.find(t=>t.operationId===e.operationId),a=e.ok&&i!==void 0&&ie(i.intent),o=[...a&&e.endpoint!==void 0?_i(e.endpoint.split(`?`)[0]??``,n,!1).map(e=>`${e} --data --to-file <path>`):[],...e.references.filter(e=>!r(e)).flatMap(gi).flatMap(e=>_i(e.pathname,n,!0)),...e.references.filter(r).flatMap(gi).flatMap(e=>vi(e,n))];return o.length===0?{write:a}:{exactRecovery:`Read the full result ${o.join(`; `)}.`,write:a}}function gi(e){return URL.canParse(e)?[new URL(e)]:[]}function _i(e,t,n){return t.flatMap(t=>{let r=[...t.path.matchAll(mi)].map(([,e])=>e),i=RegExp(`^${t.path.replace(mi,`([^/]+)`)}$`,`u`),a=n&&r.length===0?null:i.exec(e);if(a===null)return[];let o=r.flatMap((e,n)=>{let r=t.parameters.find(t=>t.name===e);return r===void 0?[]:[$(r),a[n+1]??``]});return[`${yi(t)}, ${bi(t,o)}`]})}function vi(e,t){let n=t.find(t=>t.path===e.pathname);return n===void 0?[]:t.flatMap(t=>{if(!t.path.startsWith(`${n.path}/`))return[];let r=t.parameters.find(({name:e})=>e.endsWith(`Offset`)),i=t.parameters.find(({name:e})=>e.endsWith(`Limit`));if(r===void 0||i===void 0)return[];let a=t.parameters.flatMap(t=>{let n=e.searchParams.get(t.name);return t.location!==`query`||n===null?[]:[$(t),xi(n)]}),o=[$(r),`<n>`,$(i),`<n>`];return[`${yi(t)}, in windows: ${bi(t,[...a,...o])}, advancing ${$(r)} until a window returns fewer than ${$(i)} units`]})}function yi(e){return e.auth===`write`?`with admin sign-in`:`with any sign-in`}function bi(e,t){return[jr,...e.cliPath,...t].join(` `)}function $(e){return e.flag.split(/\s+/u)[0]??e.flag}function xi(e){return`'${e.replaceAll(`'`,`'"'"'`)}'`}function Si(e){return e.toSorted((e,t)=>e.projection.cliPath.length-t.projection.cliPath.length||e.projection.cliPath.join(` `).localeCompare(t.projection.cliPath.join(` `))||e.operationId.localeCompare(t.operationId)).map(e=>{let t=e.parameter.flatMap(t=>{if(t.in!==`path`&&t.in!==`query`&&t.in!==`header`)return[];let n=t.in;return(t.in===`query`&&t.itemProperty!==void 0?t.itemProperty:[t]).map(t=>{let r=Di(t,E(e,t),n);if(t.legacyName===void 0)return r;let i=Di(t,E(e,t,t.legacyName),n).flag;return i===r.flag?r:Object.assign(r,{legacyFlag:i})})}),n=e.requestBody?.map(n=>{let r=Ti(e,t,n),i=wi(n.cliConflicts,r),a=i.length===0?{}:{cliConflicts:i};return Object.assign({},n,{parameter:r},a)}),r=e.response.find(({status:e})=>e.startsWith(`2`))?.schemaName?.replace(/Schema$/,``);return{operationId:e.operationId,method:e.method,path:e.path,resource:e.resource,intent:e.intent,cliPath:e.projection.cliPath,summary:e.summary,description:e.description,binaryResponse:e.binaryResponse?!0:void 0,explain:e.explain?!0:void 0,deprecated:e.deprecated?!0:void 0,requestBody:n,mutationReadback:e.mutationReadback,scope:e.projection.scope,auth:e.projection.auth,visibility:e.projection.visibility,errorResponse:e.errorResponse,successResponse:r,detailField:e.response.find(e=>e.detailField!==void 0)?.detailField,parameters:t}})}function Ci(e,t){let[n,r]=e.filter(e=>e.role===t);if(n===void 0||r!==void 0)throw Error(`Generated composite CLI role '${t}' is incomplete`);return n}function wi(e,t){let n=new Map(t.map(({name:e,optionKey:t})=>[e,t]));return(e??[]).map(e=>e.map(e=>{let t=n.get(e);if(t===void 0)throw Error(`x-aventure-cli-conflicts field '${e}' was removed from the generated CLI projection`);return t}))}function Ti(e,t,n){let r=new Set(t.map(e=>e.optionKey));(e.requestBody?.length??0)>1&&r.add(`contentType`);let i=new Set(t.filter(e=>e.location===`path`).map(e=>e.name));return n.parameter.toSorted((e,t)=>Ei(e.name)-Ei(t.name)).flatMap(t=>{if(!t.required&&(r.has(t.inputName)||i.has(t.name)))return[];let n=He(e,t,r);return r.add(n),[Di(t,n,`body`)]})}function Ei(e){let t=e.split(`.`).at(-1);return t===`min`?0:t===`max`?1:2}function Di(e,t,n){let r=e.itemSchemaEnum??e.schemaEnum,i=Ae(e.schemaType,e.itemSchemaType,e.schemaFormat,t);return{name:e.name,optionKey:t,flag:`${re(t)} ${e.schemaType===`boolean`?`[${i}]`:`<${i}>`}`,required:e.required&&e.schemaDefault===void 0,description:ke(e.description,r),schemaType:e.schemaType,schemaFormat:e.schemaFormat,itemSchemaType:e.itemSchemaType,defaultValue:Oi(e.schemaDefault),choices:r,...e.envName===void 0?{}:{envName:e.envName},...e.visibility&&{visibility:e.visibility},location:n}}var Oi=e=>Array.isArray(e)?e.map(String):typeof e==`number`?String(e):e;export{j as _,Q as a,B as c,Er as d,z as f,Qt as g,Rt as h,Kr as i,Sr as l,It as m,Ci as n,Yr as o,Yt as p,hi as r,Or as s,Si as t,wr as u};
|