@aventurevc/aventure-cli 0.8.375 → 0.8.376

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/aventure-cli/command-catalog.compact.txt +4 -4
  2. package/dist/aventure-cli/index.js +1 -1
  3. package/dist/aventure-cli/unified-operations.json +1 -1
  4. package/dist/chunks/{api-key-login-CyC8mPzO.js → api-key-login-HxO90zZg.js} +1 -1
  5. package/dist/chunks/{auth-status-check-BYJ8IgaI.js → auth-status-check-CIx9z_pu.js} +1 -1
  6. package/dist/chunks/{auth-status-check-BNlKGio3.js → auth-status-check-CXOj01pw.js} +1 -1
  7. package/dist/chunks/{aventure-cli-xGo1j8TD.js → aventure-cli-sOtxxh1c.js} +5 -5
  8. package/dist/chunks/{batch-io-YwyP0QnX.js → batch-io-7hJMsmDC.js} +1 -1
  9. package/dist/chunks/{builtin-auth-BQYtyqcc.js → builtin-auth-CgttP9u0.js} +3 -3
  10. package/dist/chunks/{builtin-run-wait-gPZaj8qk.js → builtin-run-wait-DDh71hpc.js} +1 -1
  11. package/dist/chunks/{builtin-update-DEcqizpu.js → builtin-update-D1BZSSOn.js} +1 -1
  12. package/dist/chunks/{completion-BbM2zJBc.js → completion-CAe_6CIF.js} +1 -1
  13. package/dist/chunks/{contract-BIzf16k0.js → contract-DOJ1nOWe.js} +1 -1
  14. package/dist/chunks/{help-catalog-Db3ruw_w.js → help-catalog-D4POjaKy.js} +1 -1
  15. package/dist/chunks/{help-intent-BeaPBtNB.js → help-intent-y-RYgFLl.js} +1 -1
  16. package/dist/chunks/logout-C8Va35A4.js +1 -0
  17. package/dist/chunks/{logout-CeZ-vvDH.js → logout-D6h-V6G1.js} +1 -1
  18. package/dist/chunks/mcp-generation-contract-DfjetwNi.js +1 -0
  19. package/dist/chunks/{mcp-generation-contract-Bh6gDna7.js → mcp-generation-contract-EFfzrDNP.js} +1 -1
  20. package/dist/chunks/{openapi-commands-DERQN9jw.js → openapi-commands-CkL2tQoJ.js} +1 -1
  21. package/dist/chunks/openapi-commands-JVo-o2Vb.js +1 -0
  22. package/dist/chunks/openapi-composites-IdxI7cAF.js +1 -0
  23. package/dist/chunks/openapi-snapshot.json +1 -1
  24. package/dist/chunks/{operations-Bc5t9zxG.js → operations-EN7jyvSy.js} +2 -2
  25. package/dist/chunks/operations-catalog-AjUYlOwM.js +1 -0
  26. package/dist/chunks/{operations-catalog-nJlhk-sF.js → operations-catalog-CWV3yzo0.js} +1 -1
  27. package/dist/chunks/{operations-metadata-CauJAAOi.js → operations-metadata-BNjc1gvF.js} +1 -1
  28. package/dist/chunks/{output-CVKmUFCg.js → output-BEf0IdUR.js} +1 -1
  29. package/dist/chunks/{output-K4fvXMJs.js → output-hUJnjnwU.js} +1 -1
  30. package/dist/chunks/{parse-error-hint-Dolrr-18.js → parse-error-hint-CNgmSmMm.js} +1 -1
  31. package/dist/chunks/{startup-auth-h5LTZHnK.js → startup-auth-5RU9GcrY.js} +1 -1
  32. package/dist/chunks/startup-auth-CY7esllD.js +1 -0
  33. package/dist/chunks/{text-response-CPmezbdP.js → text-response-BHunsqe0.js} +1 -1
  34. package/package.json +3 -3
  35. package/dist/chunks/logout-Dwb_0wIa.js +0 -1
  36. package/dist/chunks/mcp-generation-contract-BDR47TM9.js +0 -1
  37. package/dist/chunks/openapi-commands-7CICQJgh.js +0 -1
  38. package/dist/chunks/openapi-composites-CO9Q6ihp.js +0 -1
  39. package/dist/chunks/operations-catalog-qNCvacp4.js +0 -1
  40. package/dist/chunks/startup-auth-TXsHk23I.js +0 -1
@@ -1 +0,0 @@
1
- var e=[{command:`auth login`,role:`oauth`,summary:`Sign In Through Your Browser`,description:`Sign in through your browser and save verified CLI access in the credential store. If automatic opening is unavailable, open the private sign-in URL manually while the same loopback callback waits; device authorization is attempted only after timeout. Use --no-browser for OAuth device authorization only when the issuer advertises device-grant support; otherwise use --key --no-browser for API-key approval.`,operationId:`getAuthProviderCatalog`,method:`GET`,path:`/v1/auth/providers`,bodyOption:[],localOption:[{optionKey:`browser`,flag:`--no-browser`,description:`Use OAuth device authorization only when the issuer advertises device-grant support: print a sign-in URL and code, then wait for approval. Otherwise use --key --no-browser for API-key approval.`}]},{command:`auth login`,role:`start`,summary:`Sign In With a Browser-Approved aVenture API Key`,description:`Creates a short-lived browser approval request and returns its poll credential once.`,operationId:`createCliAuthorization`,method:`POST`,path:`/v1/auth/cli-authorizations`,bodyOption:[{name:`clientLabel`,optionKey:`clientLabel`,flag:`--client-label <client-label>`,required:!1,description:`Label for this CLI installation.`}],localOption:[{optionKey:`key`,flag:`--key`,description:`Sign in with a browser-approved aVenture API key instead of OAuth; the approval URL opens on any device.`},{optionKey:`browser`,flag:`--no-browser`,description:`Print the API-key approval URL and wait for approval without opening a browser.`}]},{command:`auth login`,role:`poll`,summary:`Poll CLI Authorization`,description:`Returns pending state, a terminal state, or an encrypted one-time credential delivery.`,operationId:`pollCliAuthorization`,method:`POST`,path:`/v1/auth/cli-authorizations/{cliAuthorizationId}/poll`,bodyOption:[],localOption:[]},{command:`auth login`,role:`acknowledge`,summary:`Acknowledge CLI Credential Delivery`,description:`Confirms the CLI stored the delivered API key in its credential store and clears transient delivery material.`,operationId:`acknowledgeCliAuthorization`,method:`POST`,path:`/v1/auth/cli-authorizations/{cliAuthorizationId}/acknowledge`,bodyOption:[],localOption:[]},{command:`auth logout`,role:`revoke`,summary:`Sign Out: Revoke the API Key and Forget Stored OAuth`,description:`Revokes the aVenture API key authenticating this request and returns its metadata so the CLI can confirm revocation before deleting its saved copy.`,operationId:`revokeCurrentApiKey`,method:`DELETE`,path:`/v1/auth/api-key`,bodyOption:[],localOption:[{optionKey:`forgetLocal`,flag:`--forget-local`,description:`Delete the saved key even when revocation cannot be confirmed.`}]}];export{e as t};
@@ -1 +0,0 @@
1
- export{s as writeShowResult}from"./operations-catalog-nJlhk-sF.js";
@@ -1 +0,0 @@
1
- import{n as e,o as t,t as n}from"./commander-DEj7N1b9.js";import{c as r,f as i,t as a}from"./env-mczLNx0e.js";import{c as o,r as s}from"./result-envelope-gysspwld.js";import{y as c}from"./tool-policy-tF_fUufj.js";import{n as l}from"./cli-help-policy-DpJK4TlK.js";function u(e,t){return e.parameters.filter(e=>e.required&&t[e.optionKey]===void 0).map(e=>e.flag)}function d(e,t){return(e.requestBody?.length??0)>1&&typeof t.contentType==`string`?t.contentType:void 0}var f=e=>typeof e==`string`&&e.trim()===``;function p(e,t){let n=new Set([...t.parameters,...(t.requestBody??[]).flatMap(({parameter:e})=>e)].filter(e=>e.required).map(e=>e.optionKey));for(let t of e.options){let r=t.attributeName(),i=e.getOptionValue(r);if(!(Array.isArray(i)?i.some(f):f(i)))continue;let a=Array.isArray(i)?i.filter(e=>!f(e)):[];a.length>0?e.setOptionValue(r,a):(n.has(r)&&e.error(`error: option '${t.flags}' requires a value`),e.setOptionValue(r,void 0))}}function m(e){return e.split(` `)[0]??e}function h(e){if(e.requestBody===void 0||e.requestBody.length===0){let[t,n]=e.parameters.filter(e=>e.required);return n===void 0&&t?.schemaType===`string`?t:void 0}if(e.requestBody.length!==1||e.parameters.some(e=>e.required))return;let t=e.requestBody[0]?.parameter??[],n=t.filter(e=>e.required);if(n.length===1&&n[0]?.schemaType===`string`)return n[0];if(n.length!==0||e.intent!==`search`)return;let r=t.filter(e=>{let t=e.name.split(`.`).at(-1);return e.schemaType===`string`&&(t===`query`||t===`search`)});return r.length===1?r[0]:void 0}function g(e,t,n){let r=t.join(` `).trim();return r.length===0?o(`No positional text`,n):n[e.optionKey]===void 0?o(`Positional text parsed`,{...n,[e.optionKey]:r}):s(`Unexpected argument "${r}": ${m(e.flag)} already sets this value, and this command has no subcommand by that name. Drop "${r}".`)}var _={addresses:{summary:`List Address Links`,section:`administration`},"addresses links":{summary:`Returns entity and person association ids, owner ids, and nullable roles for a physical address, including historical associations`},auth:{summary:`Sign-in, session, API key, and CLI authorization endpoints`,section:`account`},"auth api-key":{summary:`Get Current API Key`},"auth me":{summary:`Current User Permissions`},"auth me permissions":{summary:`Returns the current caller's resolved roles and permissions`},billing:{summary:`Plans, prices, subscription, usage, and upgrades`,section:`account`},"billing additional-usage":{summary:`Update Additional Usage Settings`},"billing ai-credits":{summary:`Read the Current AI Credit Allowance`},"billing checkout-sessions":{summary:`Create or Recover a Checkout Session`},"billing credit-purchases":{summary:`Read a Prepaid Credit Purchase Confirmation`},"billing plan-change-previews":{summary:`Preview a Subscription Plan Change`},"billing plan-changes":{summary:`Change the Subscription Plan`},"billing plans":{summary:`List Subscription Tiers and Plans`},"billing portal-sessions":{summary:`Create a Hosted Billing Portal Session`},"billing subscription":{summary:`Read the Current Billing Subscription`},"billing subscription next-charge":{summary:`Preview the Next Subscription Charge`},"billing subscription payment-profile":{summary:`Read Your Card on File and Introductory Offer`},content:{summary:`Publications about one company or person, and platform-wide publication search`,section:`researchData`},"content facets":{summary:`Count One Owner's Publications`},directory:{summary:`Views of the public directories: publish, list, and read shared views by slug, and export a view's rows as JSON, CSV, or XLSX`,section:`researchData`},"directory exports":{summary:`Export Directory Records`},"directory shared":{summary:`List Shared Directory Views`},"directory shared slug":{summary:`Read a Shared Directory View by Slug`},enrichments:{summary:`Enrich Companies, People, or a News Article's Mentions`,section:`researchData`},entities:{summary:`Companies and funds: people, funding, and news`,section:`researchData`},"entities acquisitions":{summary:`Acquisitions a company made or was part of`},"entities addresses":{summary:`A company's recorded office and headquarters addresses`},"entities analysis-replay":{summary:`Get Entity Analysis Replay`},"entities blog-posts":{summary:`External blog and article links for entities and people`},"entities brand":{summary:`Get a Company's Names, Logos, Links, and Tags`},"entities classifications":{summary:`Classification tags on a company, and suggested tags`},"entities classifications catalog":{summary:`Get the Company Classification Taxonomy`},"entities classifications suggestions":{summary:`Suggest Classifications for a Company`},"entities classifications tags":{summary:`List Classification Tags`},"entities contact-details":{summary:`List a Company's Contact Details`},"entities employee-counts":{summary:`List a Company's Headcount Over Time`},"entities enrichments":{summary:`Enrich One Company, Product, or Service`},"entities filters":{summary:`Filter options for company listings: available values, refinement, and option search`},"entities fundraise-investor-joins":{summary:`List the Investors in a Funding Round`},"entities fundraise-rounds":{summary:`List a Company's Funding Rounds`},"entities investments":{summary:`List the Investments a Company Made`},"entities investor-activity":{summary:`Get Investor Portfolio Counts, Sectors and Recipients`},"entities investors":{summary:`List a Company's Investors`},"entities investors people":{summary:`List Person Investors`},"entities logo":{summary:`Get a Company Logo`},"entities lookup-exact":{summary:`Read Full Entity Detail by aVenture Profile URL, Slug, Website, or Domain`},"entities people":{summary:`People linked to companies, and the role each one holds`},"entities relationships":{summary:`Relationships between companies, investors, and other organizations`},"entities relationships types":{summary:`List Entity Relationship Types`},"entities repositories":{summary:`List a Company's GitHub Repositories`},"entities research":{summary:`Get the Research Gathered About a Company`},"entities research-details":{summary:`List Research Details`},"entities research-details types":{summary:`List the Accepted Research Detail Types`},"entities research-snippets":{summary:`List Research Snippets`},"entities research-snippets types":{summary:`List the Accepted Research Snippet Types`},"entities search":{summary:`Search Companies, Products, and Services`},"entities search jobs":{summary:`Get an Async Semantic Entity Search`},"entities sec":{summary:`Get SEC EDGAR Facts for an SEC Registrant`},"entities similar":{summary:`Similar companies and lean similar-company summaries by id`},"entities similar summary":{summary:`Get Similar Company Summaries by ID`},"entities slug":{summary:`Get a Company's Slug`},"entities texts":{summary:`Descriptions and other written text for companies and people`},"entities texts types":{summary:`List the Accepted Company Text Types`},"entities trending-news":{summary:`List Trending News About a Company`},"entities types":{summary:`List the Accepted typeRecord Values`},"entities unique-ids":{summary:`External identifiers and the records they name`},"entities urls":{summary:`Websites, social profiles, and other URLs for companies and people`},"entities valuations":{summary:`List a Company's Valuation Over Time`},help:{summary:`Answer a Natural-Language Platform Help Question`,section:`cli`},lookup:{summary:`Identify a Company, Product, Service, or Person by Name, URL, or ID`,section:`researchData`},"lookup jobs":{summary:`Get a Lookup Job's State and the Records Its Article Names`},metrics:{summary:`Get Platform Totals for Companies, Funding, and People`,section:`cli`,listed:!1},news:{summary:`News linked to the companies and people in it`,section:`researchData`},"news feedback":{summary:`Submit News Feedback`},"news related-entities":{summary:`List the Entities a News Article Is About`},"news subscriptions":{summary:`List Entity News Subscriptions`},"news subscriptions test-events":{summary:`Send a Test News Event`},"news thumbnail":{summary:`Get News Thumbnail`},people:{summary:`Founders and investors, and what they back`,section:`researchData`},"people addresses":{summary:`A person's recorded addresses`},"people blog-posts":{summary:`External blog and article links for entities and people`},"people contact-details":{summary:`List a Person's Contact Details`},"people enrichments":{summary:`Enrich One Person`},"people entities":{summary:`People linked to companies, and the role each one holds`},"people filters":{summary:`Filter options for people listings and option search`},"people graph":{summary:`Get Person Graph`},"people investments":{summary:`List a Person's Investments`},"people investor-activity":{summary:`Get Person Investor Activity`},"people lookup-exact":{summary:`Read One Person's Full Detail by aVenture Profile URL, Slug, or URL`},"people photo":{summary:`Get Person Photo`},"people repositories":{summary:`List a Person's GitHub Repositories`},"people similar":{summary:`List People Similar to One Person`},"people unique-ids":{summary:`External identifiers and the records they name`},"people urls":{summary:`Websites, social profiles, and other URLs for companies and people`},research:{summary:`Research requests you file for a company, Product, Service, or person, and their progress`,section:`researchData`},"research runs":{summary:`List Your Research Runs`},"research runs draft":{summary:`Get a Research Run Draft`},"research runs draft sections":{summary:`Edit a Research Draft Section`},"research runs draft sources":{summary:`Get a Research Draft's Sources`},"research runs events":{summary:`Read a Research Run's Events`},"research runs presets":{summary:`List Research Presets`},"research runs turns":{summary:`Continue a Research Session`},search:{summary:`Search Companies, People, and News Together`,section:`researchData`},"search link":{summary:`Search From a Page URL`},"search link jobs":{summary:`Get a Link Search Job`},"search natural":{summary:`Find companies and people in natural language`},"search shared":{summary:`Search companies, people, and news, or by URL`},"search shared slug":{summary:`Read a Shared Search by Slug`},"unique-ids":{summary:`External identifiers and the records they name`,section:`researchData`},"unique-ids types":{summary:`List the Accepted Unique Identifier Types`},"url-types":{summary:`List URL Types`,section:`researchData`},web:{summary:`Search companies, people, and news, or by URL`,section:`researchData`},"web searches":{summary:`Get an Async Web Search Job`},"web searches jobs":{summary:"Reads the web-search job a `Prefer: respond-async` search accepted"}};function v(e){return x(e,y())}function y(){return!!i().userBearerToken?.trim()}function b(e){return y()||!l(e,_)}function x(e,t){return t?e:e.filter(e=>!l(e.cliPath[0],_)||e.visibility!==`private`).map(S)}function S(e){let t=e.parameters.filter(C),n=e.requestBody?.map(e=>{let t=e.parameter.filter(C);return t.length===e.parameter.length?e:{...e,parameter:t}}),r=n?.every((t,n)=>t===e.requestBody?.[n]);return t.length===e.parameters.length&&r!==!1?e:{...e,parameters:t,requestBody:n}}var C=e=>e.visibility!==`private`;async function w(e){if(e===`none`||process.env[a.authToken]?.trim())return;let{materializeCliOAuthBearerCredential:t,materializeSavedCliOAuthBearerCredential:n}=await import(`./oauth-bearer-credential-DWt52dzz.js`),{materializeCliApiKeyBearerCredential:r}=await import(`./api-key-bearer-credential-CZJ90toU.js`);await(e===`stored`?n():t()),await r()}function T(t){let r=t.findIndex(e=>e===`--version`||e===`-V`);if(r===-1)return!1;let i=new n().passThroughOptions().addOption(new e(`--environment <environment>`)).addOption(new e(`-h, --help`)).addOption(new e(`-V, --version`));return i.parseOptions(t.slice(0,r+1)),i.opts().version===!0}function E(t,i){let a=t.indexOf(`--`),o=t.slice(0,a===-1?t.length:a),s=new n().exitOverride().configureOutput({writeErr:()=>void 0}).addOption(new e(`--environment <environment>`)).parseOptions([...o]).operands,c=i.filter(e=>O(s,e.cliPath)).toSorted((e,t)=>t.cliPath.length-e.cliPath.length)[0],l=c!==void 0&&[...c.parameters,...c.requestBody?.flatMap(({parameter:e})=>e)??[]].some(e=>e.optionKey===`environment`),u=new n().exitOverride().configureOutput({writeErr:()=>void 0}).passThroughOptions(l).addOption(new e(`--environment <environment>`).choices([...r()])),{operands:d,unknown:f}=u.parseOptions([...o]);return{environment:u.opts().environment,commandArgv:[...d,...f,...a===-1?[]:t.slice(a)],positionalOptions:l}}function D(r,i){let a=r.indexOf(`--`),o=r.slice(0,a===-1?r.length:a);if(T(r))return`none`;let s=E(r,i),u=new n().exitOverride().configureOutput({writeErr:()=>void 0}).addOption(new e(`--content-type <media-type>`)),f=u.parseOptions([...s.commandArgv]).operands;s.environment!==void 0&&(process.env.API_ENV=s.environment);let p=i.find(e=>O(f,e.cliPath)),m=p===void 0?void 0:d(p,u.opts());if(p!==void 0&&m!==void 0){let e=c(p.requestBody??[],m);if(!e.ok)throw new t(e.summary)}let h=f.at(0);return h===void 0?`stored`:h===`update`||h===`auth`&&p===void 0?`none`:o.some(e=>e===`--help`||e===`-h`)?(p??(h===`help`?i.find(e=>O(f.slice(1),e.cliPath)):void 0))!==void 0||l(h,_)?`stored`:`none`:l(h,_)?`required`:h===`help`&&f[1]===`catalog`?`optional`:h===`help`?p===void 0?`stored`:`required`:h===`agents`&&f[1]===`setup`?`required`:[`command-catalog`,`completion`].includes(h)?`optional`:h===`batch`?`required`:p===void 0?`optional`:`required`}function O(e,t){return t.every((t,n)=>e[n]===t)}export{T as a,_ as c,u as d,p as f,E as i,d as l,g as m,D as n,x as o,h as p,w as r,v as s,b as t,m as u};