@aventurevc/mcp-server 0.8.204 → 0.8.206

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.
@@ -1 +1 @@
1
- import{u as e}from"./tool-policy-xrLBjAjh.js";function t(t,n,r,i){let a=t===`array`?n:t,o=t===`array`?`...`:``;return r===`uuid`||r===`date-time`||r===`date`?`${r}${o}`:a===`boolean`?`true|false${o}`:a===`integer`||a===`number`?`${a}${o}`:`${e(i)}${o}`}function n(e,t){let n=s(e);if(t===void 0||t.length===0)return n;let r=`Allowed values: ${t.join(`, `)}`;return n===``?`${r}.`:`${n} ${r}.`}var r={path:{heading:`Path parameters:`,rank:0},header:{heading:`Request headers:`,rank:1},input:{heading:`Input:`,rank:2},body:{heading:`Body fields:`,rank:3},option:{heading:`Options:`,rank:1/0}};function i(e){return o(e).rank}function a(e){return o(e).heading}function o(e){return e.location===`path`?r.path:e.location===`header`?r.header:e.inputType===`file`||e.schemaFormat===`binary`?r.input:e.location===`body`?r.body:r.option}var s=e=>e===``||/[.!?]$/u.test(e)?e:`${e}.`,c={researchData:{heading:`Research data commands:`,rank:0},account:{heading:`Account commands:`,rank:1},administration:{heading:`Administration commands:`,rank:2},cli:{heading:`CLI commands:`,rank:3}};function l(e,t){return e!==void 0&&u(e,t)===`administration`}function u(e,t){return t?.[e]?.section??d[e]}var d={app:`account`,auth:`account`,entities:`researchData`,people:`researchData`,enrichments:`researchData`,news:`researchData`,search:`researchData`,directory:`researchData`,resolve:`researchData`,lookup:`researchData`,"lookup-jobs":`researchData`,"lookup-mentions":`researchData`,"research-runs":`researchData`,provenance:`administration`,billing:`account`,harness:`administration`,jobs:`administration`,operations:`administration`,metrics:`cli`,inference:`administration`,web:`researchData`,contacts:`administration`,"url-types":`researchData`,"unique-ids":`researchData`,research:`administration`,status:`cli`,agents:`cli`,help:`cli`},f=new Set([`metrics`]);export{n as a,a as c,u as i,s as l,f as n,t as o,l as r,i as s,c as t};
1
+ import{u as e}from"./tool-policy-DkhiYpLq.js";function t(t,n,r,i){let a=t===`array`?n:t,o=t===`array`?`...`:``;return r===`uuid`||r===`date-time`||r===`date`?`${r}${o}`:a===`boolean`?`true|false${o}`:a===`integer`||a===`number`?`${a}${o}`:`${e(i)}${o}`}function n(e,t){let n=s(e);if(t===void 0||t.length===0)return n;let r=`Allowed values: ${t.join(`, `)}`;return n===``?`${r}.`:`${n} ${r}.`}var r={path:{heading:`Path parameters:`,rank:0},header:{heading:`Request headers:`,rank:1},input:{heading:`Input:`,rank:2},body:{heading:`Body fields:`,rank:3},option:{heading:`Options:`,rank:1/0}};function i(e){return o(e).rank}function a(e){return o(e).heading}function o(e){return e.location===`path`?r.path:e.location===`header`?r.header:e.inputType===`file`||e.schemaFormat===`binary`?r.input:e.location===`body`?r.body:r.option}var s=e=>e===``||/[.!?]$/u.test(e)?e:`${e}.`,c={researchData:{heading:`Research data commands:`,rank:0},account:{heading:`Account commands:`,rank:1},administration:{heading:`Administration commands:`,rank:2},cli:{heading:`CLI commands:`,rank:3}};function l(e,t){return e!==void 0&&u(e,t)===`administration`}function u(e,t){return t?.[e]?.section??d[e]}var d={app:`account`,auth:`account`,entities:`researchData`,people:`researchData`,enrichments:`researchData`,news:`researchData`,search:`researchData`,directory:`researchData`,resolve:`researchData`,lookup:`researchData`,"lookup-jobs":`researchData`,"lookup-mentions":`researchData`,"research-runs":`researchData`,provenance:`administration`,billing:`account`,harness:`administration`,jobs:`administration`,operations:`administration`,metrics:`cli`,inference:`administration`,web:`researchData`,contacts:`administration`,"url-types":`researchData`,"unique-ids":`researchData`,research:`administration`,status:`cli`,agents:`cli`,help:`cli`},f=new Set([`metrics`]);export{n as a,a as c,u as i,s as l,f as n,t as o,l as r,i as s,c as t};
@@ -1,4 +1,4 @@
1
- import{n as e}from"./commander-BB7CDPLs.js";import{S as t,a as n,c as r,d as i,f as a,l as o,n as s,o as c,s as l}from"./tool-policy-xrLBjAjh.js";import{C as u,O as d,T as f,i as p,l as m,n as h,o as g,p as _,t as ee,u as v,v as y,w as b,y as x}from"./person-owner-BJgNYLKX.js";import{Ir as te}from"./dist-Cn2ws-sh.js";import{i as S,o as ne,p as re,u as ie}from"./result-envelope-BxszSiek.js";import{a as ae}from"./package-DPDX5zmx.js";import{a as oe,n as se,r as C,t as ce}from"./text-field-BoNdbrtA.js";import{A as le,C as ue,D as de,E as fe,O as pe,S as me,T as he,_ as ge,a as _e,b as ve,c as ye,d as be,f as xe,g as Se,h as Ce,i as we,k as Te,l as Ee,m as De,n as Oe,o as ke,p as Ae,r as je,s as Me,t as Ne,u as Pe,v as Fe,w,x as Ie,y as Le}from"./detail-BSc8LbOr.js";import{a as Re,o as ze}from"./cli-help-policy-u-XeYbEo.js";import{Buffer as Be}from"node:buffer";var Ve=g([`HIGH`,`MEDIUM`,`LOW`]),He=g([`OPERATION`,`SKILL`,`PROMPT`,`COMPLETION_GATE`,`RESEARCH_DETAIL_TYPE`,`RESEARCH_SNIPPET_TYPE`,`TEXT_TYPE`]),Ue=Object.assign(f([He,b()]),{enum:He.enum}),We=x({excerpt:b(),sourceId:b(),sourceType:Ue,sourceVersion:b().nullish()}),Ge=x({instruction:b(),operationId:b(),planTaskKey:m(b()).optional(),stepKey:b().optional()}),Ke=x({body:b(),expectation:b(),method:m(b()),override:b(),reject:m(b()),typeCatalog:b()}),qe=x({cliCommand:b(),mcpTool:b().nullish(),step:Ge,writeGuidance:Ke.nullish()}),Je=g([`ENTITY`,`TEXT`,`WRITER_BRIEF`]),Ye=Object.assign(f([Je,b()]),{enum:Je.enum}),Xe=x({allowedValue:b().nullish(),description:b(),key:b(),required:v().default(!0).optional(),type:Ye}),Ze=x({catalogRevision:_().optional(),gateId:m(b()).optional(),input:m(Xe),step:m(qe),taskKey:b().optional()}),T=g([`TASK_PLAN`,`OPERATION_ADVICE`,`CLARIFY`,`ABSTAIN`]),Qe=x({candidate:m(We),operationId:b().nullish(),outcome:T,probability:y().nullish(),taskKey:b().nullish(),taskPlan:Ze.nullish()}),$e=x({answer:b(),citation:m(We),confidence:Ve,resolution:Qe.nullish()});function E(e,t,n=t.inputName){if(t.in===`body`)return n;let r=dt.find(t=>n===t.name&&e.path.includes(t.path));return r===void 0?ut(st(n!==`id`&&n!==`slug`?n:`${rt(e.path)}${ot(n)}`),t):r.inputName}function et(e,t,n=at(e)){return tt(it(e,t),new Set(n))}function tt(e,t){if(!t.has(e))return e;let n=`body${ot(e)}`,r=n;for(let e=2;t.has(r);e+=1)r=`${n}${e}`;return r}function nt(e,t,n){return`${e}[${t}].${n}`}function rt(e){return ft.find(([,t])=>t.test(e))?.[0]??`record`}function it(e,t){if(t.name===`id`&&e.path===`/v1/app/url-slug-redirects`)return`recordId`;let n=ct(t);return ut(e.intent===`search`&&(t.name.startsWith(`filter.`)||t.name.startsWith(`search.`))?st(n.replace(/^(?:filter|search)/u,``).replace(/^./u,e=>e.toLowerCase())):n,t)}function at(e){return new Set(e.parameter.filter(e=>e.in===`path`||e.in===`query`||e.in===`header`).map(t=>E(e,t)))}function ot(e){return e.replace(/^./u,e=>e.toUpperCase())}function st(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 ct(e){let t=st(e.inputName);return/(?:^|\.)nameAlias\[\]\./u.test(e.name)?t.replace(/^entityNameAlias/u,`alias`):/(?:^|\.)urlLink\[\]\./u.test(e.name)?lt(t):/(?:^|\.)manualLogo\./u.test(e.name)?t.replace(/^manualLogo/u,`logo`):t}function lt(e){return e===`urlLinkUrl`?`url`:e===`urlLinkUrlType`?`urlType`:e.replace(/^urlLink/u,`url`)}function ut(e,t){return e===`text`?/(?:^|\.)text(?:\[\])?\.text$/u.test(t.name)?`textBody`:`inputText`:e}var dt=[{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`}],ft=[[`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 pt(e){let t=e.requestBody?.[0],n=e.parameter.map(t=>mt(t,E(e,t))),r=(t?.parameter??[]).map(t=>mt(t,et(e,t)));return{selector:n.filter(e=>e.location===`path`||ht(e)),pagination:n.filter(gt),filter:[...n.filter(_t),...r.filter(_t)],body:r.filter(e=>!_t(e))}}function mt(e,t){let{in:r,inputName:i,...a}=e;return{...a,flag:n(t),location:r,description:e.description||`${e.name} ${e.in} parameter`}}function ht(e){return/(^|[A-Z])(id|slug)$/u.test(e.name)}function gt(e){return[`page`,`size`,`sort`,`cursor`,`mode`,`projection`].includes(e.name)}function _t(e){return e.location!==`path`&&!ht(e)&&!gt(e)}var D=16e3,vt=(e,t=D)=>e.length<=120&&Be.byteLength(`${e.join(`
1
+ import{n as e}from"./commander-BB7CDPLs.js";import{S as t,a as n,c as r,d as i,f as a,l as o,n as s,o as c,s as l}from"./tool-policy-DkhiYpLq.js";import{C as u,O as d,T as f,i as p,l as m,n as h,o as g,p as _,t as ee,u as v,v as y,w as b,y as x}from"./person-owner-BJgNYLKX.js";import{Ir as te}from"./dist-CkrxZGUz.js";import{i as S,o as ne,p as re,u as ie}from"./result-envelope-BhUzhqlb.js";import{a as ae}from"./package-DPDX5zmx.js";import{a as oe,n as se,r as C,t as ce}from"./text-field-BoNdbrtA.js";import{A as le,C as ue,D as de,E as fe,O as pe,S as me,T as he,_ as ge,a as _e,b as ve,c as ye,d as be,f as xe,g as Se,h as Ce,i as we,k as Te,l as Ee,m as De,n as Oe,o as ke,p as Ae,r as je,s as Me,t as Ne,u as Pe,v as Fe,w,x as Ie,y as Le}from"./detail-BSc8LbOr.js";import{a as Re,o as ze}from"./cli-help-policy-CGuGxY5G.js";import{Buffer as Be}from"node:buffer";var Ve=g([`HIGH`,`MEDIUM`,`LOW`]),He=g([`OPERATION`,`SKILL`,`PROMPT`,`COMPLETION_GATE`,`RESEARCH_DETAIL_TYPE`,`RESEARCH_SNIPPET_TYPE`,`TEXT_TYPE`]),Ue=Object.assign(f([He,b()]),{enum:He.enum}),We=x({excerpt:b(),sourceId:b(),sourceType:Ue,sourceVersion:b().nullish()}),Ge=x({instruction:b(),operationId:b(),planTaskKey:m(b()).optional(),stepKey:b().optional()}),Ke=x({body:b(),expectation:b(),method:m(b()),override:b(),reject:m(b()),typeCatalog:b()}),qe=x({cliCommand:b(),mcpTool:b().nullish(),step:Ge,writeGuidance:Ke.nullish()}),Je=g([`ENTITY`,`TEXT`,`WRITER_BRIEF`]),Ye=Object.assign(f([Je,b()]),{enum:Je.enum}),Xe=x({allowedValue:b().nullish(),description:b(),key:b(),required:v().default(!0).optional(),type:Ye}),Ze=x({catalogRevision:_().optional(),gateId:m(b()).optional(),input:m(Xe),step:m(qe),taskKey:b().optional()}),T=g([`TASK_PLAN`,`OPERATION_ADVICE`,`CLARIFY`,`ABSTAIN`]),Qe=x({candidate:m(We),operationId:b().nullish(),outcome:T,probability:y().nullish(),taskKey:b().nullish(),taskPlan:Ze.nullish()}),$e=x({answer:b(),citation:m(We),confidence:Ve,resolution:Qe.nullish()});function E(e,t,n=t.inputName){if(t.in===`body`)return n;let r=dt.find(t=>n===t.name&&e.path.includes(t.path));return r===void 0?ut(st(n!==`id`&&n!==`slug`?n:`${rt(e.path)}${ot(n)}`),t):r.inputName}function et(e,t,n=at(e)){return tt(it(e,t),new Set(n))}function tt(e,t){if(!t.has(e))return e;let n=`body${ot(e)}`,r=n;for(let e=2;t.has(r);e+=1)r=`${n}${e}`;return r}function nt(e,t,n){return`${e}[${t}].${n}`}function rt(e){return ft.find(([,t])=>t.test(e))?.[0]??`record`}function it(e,t){if(t.name===`id`&&e.path===`/v1/app/url-slug-redirects`)return`recordId`;let n=ct(t);return ut(e.intent===`search`&&(t.name.startsWith(`filter.`)||t.name.startsWith(`search.`))?st(n.replace(/^(?:filter|search)/u,``).replace(/^./u,e=>e.toLowerCase())):n,t)}function at(e){return new Set(e.parameter.filter(e=>e.in===`path`||e.in===`query`||e.in===`header`).map(t=>E(e,t)))}function ot(e){return e.replace(/^./u,e=>e.toUpperCase())}function st(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 ct(e){let t=st(e.inputName);return/(?:^|\.)nameAlias\[\]\./u.test(e.name)?t.replace(/^entityNameAlias/u,`alias`):/(?:^|\.)urlLink\[\]\./u.test(e.name)?lt(t):/(?:^|\.)manualLogo\./u.test(e.name)?t.replace(/^manualLogo/u,`logo`):t}function lt(e){return e===`urlLinkUrl`?`url`:e===`urlLinkUrlType`?`urlType`:e.replace(/^urlLink/u,`url`)}function ut(e,t){return e===`text`?/(?:^|\.)text(?:\[\])?\.text$/u.test(t.name)?`textBody`:`inputText`:e}var dt=[{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`}],ft=[[`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 pt(e){let t=e.requestBody?.[0],n=e.parameter.map(t=>mt(t,E(e,t))),r=(t?.parameter??[]).map(t=>mt(t,et(e,t)));return{selector:n.filter(e=>e.location===`path`||ht(e)),pagination:n.filter(gt),filter:[...n.filter(_t),...r.filter(_t)],body:r.filter(e=>!_t(e))}}function mt(e,t){let{in:r,inputName:i,...a}=e;return{...a,flag:n(t),location:r,description:e.description||`${e.name} ${e.in} parameter`}}function ht(e){return/(^|[A-Z])(id|slug)$/u.test(e.name)}function gt(e){return[`page`,`size`,`sort`,`cursor`,`mode`,`projection`].includes(e.name)}function _t(e){return e.location!==`path`&&!ht(e)&&!gt(e)}var D=16e3,vt=(e,t=D)=>e.length<=120&&Be.byteLength(`${e.join(`
2
2
  `)}\n`,`utf8`)<=t,O=(e,t=!1,n=!1,r=1)=>{let i=se(e),a=t||i.endsWith(`
3
3
  `),o=i.endsWith(`
4
4
  `)?i.slice(0,-1):i,s=o.length===0?[]:o.split(`