@aventurevc/aventure-cli 0.8.151 → 0.8.156
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/aventure-cli/command-catalog.compact.txt +1 -1
- package/dist/aventure-cli/index.js +1 -1
- package/dist/aventure-cli/unified-operations.json +1 -1
- package/dist/chunks/{api-key-bearer-credential-CW5W3VVg.js → api-key-bearer-credential-4LScynXy.js} +1 -1
- package/dist/chunks/api-key-bearer-credential-CA4OpfsH.js +1 -0
- package/dist/chunks/{aventure-cli-CVESmjdZ.js → aventure-cli-BemgrYF3.js} +42 -42
- package/dist/chunks/{cli-help-policy-DeeUkwZr.js → cli-help-policy-3jSdulx3.js} +1 -1
- package/dist/chunks/contract-HStzXwji.js +22 -0
- package/dist/chunks/detail-D09DdW-w.js +1 -0
- package/dist/chunks/detail-Dobtzmp5.js +1 -0
- package/dist/chunks/dist-Q4PISeeD.js +96 -0
- package/dist/chunks/{env-ClsLmXWa.js → env-XeZDJpn3.js} +1 -1
- package/dist/chunks/logging-BRs4ijNm.js +1 -0
- package/dist/chunks/{logging-sKoOD-tO.js → logging-DAGOYqaQ.js} +1 -1
- package/dist/chunks/mcp-generation-contract-C9hxM3KU.js +1 -0
- package/dist/chunks/{mcp-generation-contract-CbYroncj.js → mcp-generation-contract-w-3v3hhH.js} +1 -1
- package/dist/chunks/oauth-bearer-credential-Danq0Rcg.js +1 -0
- package/dist/chunks/{oauth-bearer-credential-Dl70QtZU.js → oauth-bearer-credential-kUzaF0hp.js} +2 -2
- package/dist/chunks/oauth-login-CVIyq_3x.js +6 -0
- package/dist/chunks/oauth-login-DdhJJOVp.js +1 -0
- package/dist/chunks/openapi-commands-BegEQVj4.js +1 -0
- package/dist/chunks/openapi-commands-BrF8nKmC.js +1 -0
- package/dist/chunks/{output-mode-sM_EbDW_.js → output-mode-CRxIcJgT.js} +1 -1
- package/dist/chunks/output-mode-DMWG6UcE.js +1 -0
- package/dist/chunks/{output-spill-D0GZ7YT_.js → output-spill-CtnznV5-.js} +1 -1
- package/dist/chunks/provider-catalog-BcVhP5ot.js +1 -0
- package/dist/chunks/response-problem-BoXoN3go.js +1 -0
- package/dist/chunks/{result-envelope-DTzTOcab.js → result-envelope-q4j0rGDr.js} +1 -1
- package/dist/chunks/startup-auth-ByS4CwxH.js +1 -0
- package/dist/chunks/{startup-auth-CV6hp2Sq.js → startup-auth-ChbX0MJF.js} +1 -1
- package/dist/chunks/{text-field-r9akQrZl.js → text-field-BoNdbrtA.js} +1 -1
- package/dist/chunks/text-field-CxrRvM47.js +1 -0
- package/dist/chunks/tool-policy-aPyLxMku.js +1 -0
- package/package.json +3 -3
- package/scripts/install-zsh-completion-loader.mjs +0 -1
- package/dist/chunks/api-key-bearer-credential-DNxYcBcd.js +0 -1
- package/dist/chunks/contract-7P1f8pdV.js +0 -22
- package/dist/chunks/detail-BAUbCLgG.js +0 -1
- package/dist/chunks/detail-BnHDsTdz.js +0 -1
- package/dist/chunks/dist-Di4hxilB.js +0 -96
- package/dist/chunks/logging-B3nxJH8H.js +0 -1
- package/dist/chunks/mcp-generation-contract-BaBopyxz.js +0 -1
- package/dist/chunks/oauth-bearer-credential-gfrbc6Cg.js +0 -1
- package/dist/chunks/oauth-login-DhWe9HRK.js +0 -6
- package/dist/chunks/oauth-login-ffckAlph.js +0 -1
- package/dist/chunks/openapi-commands-FazHU2ge.js +0 -1
- package/dist/chunks/openapi-commands-pQCTDMM6.js +0 -1
- package/dist/chunks/output-mode-Bispjv2H.js +0 -1
- package/dist/chunks/provider-catalog-7akuaOeA.js +0 -1
- package/dist/chunks/response-problem-DCBMY8Lr.js +0 -1
- package/dist/chunks/startup-auth-BAxM8H3Q.js +0 -1
- package/dist/chunks/text-field-CJvckkTy.js +0 -1
- package/dist/chunks/tool-policy-XDNFtgnS.js +0 -1
|
@@ -22,7 +22,7 @@ aventure people list · List People · -
|
|
|
22
22
|
aventure people lookup · Deprecated: Find Which Person a Name Refers to, or Confirm They Are New · -
|
|
23
23
|
aventure people lookup-batch · Look Up People in Bulk by ID or Slug · -
|
|
24
24
|
aventure people search · Search People · -
|
|
25
|
-
aventure resolve get · Deprecated:
|
|
25
|
+
aventure resolve get · Deprecated: Resolve an Entity or Person by Identifier Token · --token
|
|
26
26
|
aventure search link · Search From a Page URL · --url
|
|
27
27
|
aventure unique-ids lookup · Look Up an Identifier Owner · --id-type --identifier
|
|
28
28
|
aventure url-types list · List URL Types · -
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{enableCompileCache as e}from"node:module";e();var{CommanderError:t}=await import(`../chunks/commander-Cj79cOD4.js`),{logWarn:n,setStderrLogging:r}=await import(`../chunks/logging-
|
|
2
|
+
import{enableCompileCache as e}from"node:module";e();var{CommanderError:t}=await import(`../chunks/commander-Cj79cOD4.js`),{logWarn:n,setStderrLogging:r}=await import(`../chunks/logging-BRs4ijNm.js`),{readRuntimePackage:i}=await import(`../chunks/package-N5oYCiVc.js`),{locateRuntimeManifest:a}=await import(`../chunks/runtime-identity-Bva_KyCh.js`),{materializeCliOAuthBearerCredential:o,materializeSavedCliOAuthBearerCredential:s}=await import(`../chunks/oauth-bearer-credential-Danq0Rcg.js`),{materializeCliApiKeyBearerCredential:c}=await import(`../chunks/api-key-bearer-credential-CA4OpfsH.js`),{commandAuthMaterializationMode:l}=await import(`../chunks/startup-auth-ByS4CwxH.js`),{setTextAllFields:u}=await import(`../chunks/text-field-CxrRvM47.js`),{cliMachineOutputSelected:d}=await import(`../chunks/output-mode-DMWG6UcE.js`),{GENERATED_OPENAPI_COMMAND_SPECS:f}=await import(`../chunks/openapi-commands-BegEQVj4.js`),p=process.argv.slice(2);d(p)&&r(!1),p.includes(`--all-fields`)&&u(!0);try{a();let e=l(p,f);if(e===`stored`||e===`optional`)try{await(e===`stored`?s():o()),await c()}catch(e){n({component:i().bin[0],event:`optional_auth_materialization_failed`,message:`saved credential unavailable; continuing with credential-optional command`,error:e})}await import(`../chunks/aventure-cli-BemgrYF3.js`)}catch(e){if(!(e instanceof t))throw e;process.stderr.write(`${e.message}\n`),process.exitCode=e.exitCode}export{};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"generatedFrom": "MCP_GENERATION_CONTRACT",
|
|
4
|
-
"generatedAt": "2026-10-
|
|
4
|
+
"generatedAt": "2026-10-11T06:25:32.092Z",
|
|
5
5
|
"totalOperations": 141,
|
|
6
6
|
"note": "Projection of MCP_GENERATION_CONTRACT - see mcp/scripts/build-unified-operations.ts header for SSOT rules.",
|
|
7
7
|
"operations": [
|
package/dist/chunks/{api-key-bearer-credential-CW5W3VVg.js → api-key-bearer-credential-4LScynXy.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{o as e,r as t}from"./logging-
|
|
1
|
+
import{o as e,r as t}from"./logging-DAGOYqaQ.js";import{i as n,l as r,o as i,w as a,y as o}from"./person-owner-BJgNYLKX.js";import{a as s,l as c,t as l}from"./env-XeZDJpn3.js";import{a as u}from"./package-DPDX5zmx.js";import{r as d}from"./response-problem-BoXoN3go.js";import{execFile as f}from"node:child_process";import{dirname as p,join as m}from"node:path";import{homedir as h,platform as g}from"node:os";import{setTimeout as ee}from"node:timers/promises";import{randomUUID as _}from"node:crypto";import{AsyncLocalStorage as te}from"node:async_hooks";import{chmod as ne,mkdir as v,readFile as y,rename as b,rm as x,stat as re,writeFile as S}from"node:fs/promises";function C(e){let t=e.trim();if(t.length===0)throw Error(`API host must not be blank`);let n=new URL(E(t)?t:`${ae(t)}://${t}`),r=D(n.hostname);if(n.protocol!==`https:`&&n.protocol!==`http:`||n.username.length>0||n.password.length>0||n.pathname!==`/`&&n.pathname!==``||n.search.length>0||n.hash.length>0)throw Error(`API host must contain only an HTTP(S) host and optional port`);if(n.protocol===`http:`&&!r)throw Error(`stored credentials require HTTPS except for loopback API hosts`);return{host:n.host.toLowerCase(),origin:n.origin,isLoopback:r}}function w(e){let t=C(e);return t.isLoopback?C(s()).host:t.host}function T(e){return{...e,host:C(e.host).origin}}function ie(e){let t=C(e);if(t.isLoopback)return`http://localhost:3000`;if(t.host===`api.aventure.vc`)return`https://aventure.vc`;throw Error(`no first-party browser origin is configured for API host ${t.host}`)}function E(e){return/^[a-z][a-z\d+.-]*:\/\//iu.test(e)}function ae(e){let t=e.split(`/`,1)[0]?.toLowerCase()??``;try{return D(new URL(`http://${t}`).hostname)?`http`:`https`}catch{return`https`}}function D(e){let t=e.toLowerCase();return t===`localhost`||t===`127.0.0.1`||t===`0.0.0.0`||t===`[::1]`}var O=o({createdAt:n({offset:!0}),description:a().nullish(),expiresAt:n({offset:!0}).nullish(),id:a().regex(/^ak_[0-9A-Fa-f]{32}$/),lastUsedAt:n({offset:!0}).nullish(),name:a(),revocationReason:a().nullish(),scopes:r(a()),status:i([`ACTIVE`,`REVOKED`,`EXPIRED`]),subject:a(),updatedAt:n({offset:!0})});function k(e,t=[]){let n=e instanceof Error?e.message:String(e);return d(n,t)}function oe(e,t=[]){let n=d(e.title,t),r=d(e.detail?.trim()??``,t);return`${e.status} ${n}${r?` — ${r}`:``}`}function se(){if(g()===`win32`){let e=process.env.APPDATA??m(h(),`AppData`,`Roaming`);return m(e,`aventure`,`config.json`)}let e=process.env.XDG_CONFIG_HOME??m(h(),`.config`);return m(e,`aventure`,`config.json`)}function ce(){let e=process.env[l.authToken];return typeof e==`string`&&e.length>0?{present:!0,source:`env`}:{present:!1,source:null}}function A(e,t){return typeof e==`object`&&!!e&&`code`in e&&e.code===t}var le=2;function ue(e,t){return M(e,t).redactedUrl}async function de(e,t,n){let r=M(e,t);return await j(new URL(r.openerUrl),n)}async function j(e,t){let n=t.environment??process.env,r=t.operatingSystem??g(),i=N(t.noBrowser,n,r);if(i!==null)return{state:`skipped`,reason:i};let a=fe(r,e.toString());if(a===null)return{state:`failed`,reason:`unsupported browser-opening platform: ${r}`};try{return await pe(a.command,a.arguments),{state:`opened`,reason:null}}catch{return{state:`failed`,reason:`browser opener failed`}}}function M(e,t){let{id:n,verificationUrl:r,pollSecret:i}=e,a,o;try{a=new URL(r),o=new URL(t)}catch{throw Error(`broker returned an invalid browser verification URL`)}if(o.username.length>0||o.password.length>0||o.pathname!==`/`||o.search.length>0||o.hash.length>0)throw Error(`configured browser origin must contain only an origin`);let s=D(o.hostname);if(o.protocol!==`https:`&&!(o.protocol===`http:`&&s))throw Error(`configured browser origin must use HTTPS except for loopback development`);let c=new URLSearchParams(a.hash.slice(1)),l=[...c.keys()],u=c.getAll(`cliAuthorizationId`),d=c.getAll(`browserSecret`),f=d[0]??``;if(a.origin!==o.origin||a.protocol!==o.protocol||a.username.length>0||a.password.length>0||a.pathname!==`/settings/developer`||a.search.length>0||l.length!==le||u.length!==1||u[0]!==n||d.length!==1||f.length===0||i.length===0||f===i)throw Error(`broker returned a browser verification URL outside the configured first-party approval flow`);let p;try{p=decodeURIComponent(r)}catch{throw Error(`broker returned a browser verification URL outside the configured first-party approval flow`)}if(r.includes(i)||p.includes(i))throw Error(`broker returned a browser verification URL outside the configured first-party approval flow`);let m=new URL(a);return m.hash=new URLSearchParams({cliAuthorizationId:n,browserSecret:`<redacted>`}).toString(),{openerUrl:r,redactedUrl:m.toString()}}function N(e,t,n){return e?`--no-browser was set`:n===`darwin`&&t.CODEX_SESSION_ID?`macOS Codex browser process boundary`:t.SSH_CONNECTION||t.SSH_CLIENT||t.SSH_TTY?`SSH/headless session detected`:(n===`linux`||n===`freebsd`)&&!t.DISPLAY&&!t.WAYLAND_DISPLAY?`no graphical display detected`:null}function fe(e,t){return e===`darwin`?{command:`open`,arguments:[t]}:e===`win32`?{command:`rundll32.exe`,arguments:[`url.dll,FileProtocolHandler`,t]}:e===`linux`||e===`freebsd`?{command:`xdg-open`,arguments:[t]}:null}function pe(e,t){return new Promise((n,r)=>{f(e,[...t],{timeout:5e3,windowsHide:!0},e=>e?r(e):n())})}var me=100,he=3e4,ge=6e4,P=new te;function F(){return m(p(se()),`credentials.json`)}function I(e){return`OS keyring is unusable (${e}); the credential will be stored in ${F()} (mode 0600).\n`}async function L(e,t){let n=(await W())[e]?.[t];if(n!==void 0)return{record:{provider:`file`,value:n}};try{let n=await(await U(e,t)).getPassword()??void 0;return n===void 0?{}:{record:{provider:`keyring`,value:n}}}catch(e){return{keyringFailure:H(e)}}}async function R(e,t,n){if((await W())[e]?.[t]!==void 0)return await z(e,t,n,`file store holds this account`);let r;try{let i=await U(e,t);if(await i.setPassword(n),await i.getPassword()===n)return await q(e,t,void 0),`keyring`;r=`Error: keyring readback did not match`}catch(e){r=H(e,[n])}return await z(e,t,n,r)}async function z(e,t,n,r){if(await q(e,t,n),(await W())[e]?.[t]!==n)throw Error(`credential storage did not confirm a durable write (keyring: ${r}; file: readback did not match)`);return`file`}async function B(e,t){try{let n=await U(e,t),r;try{await n.deleteCredential()}catch(e){r=e}let i;try{i=await n.getPassword()??void 0}catch(e){throw Error(`OS keyring removal outcome is unknown (${H(r??e)})`,{cause:e})}if(i!==void 0)throw Error(`OS keyring did not confirm removal (${H(r)})`,r===void 0?void 0:{cause:r})}finally{await q(e,t,void 0)}}async function V(e,t){let n=`${t}:probe:${_()}`,r=`aventure-cli-credential-probe:${_()}`,i;try{let t=await U(e,n);await t.setPassword(r);let a=await(await U(e,n)).getPassword(),o=await t.deleteCredential(),s=await(await U(e,n)).getPassword()??void 0;if(a!==r)i=`Error: probe readback did not match`;else if(!o||s!==void 0)i=`Error: probe cleanup was not confirmed`;else return{provider:`keyring`}}catch(e){i=H(e,[r])}try{await K(async()=>{await q(e,n,r);let t=(await W())[e]?.[n];if(await q(e,n,void 0),t!==r)throw Error(`probe readback did not match`)})}catch(e){throw Error(`credential storage is unavailable (keyring: ${i}; file ${F()}: ${H(e,[r])})`,{cause:e})}return{provider:`file`,keyringFailure:i}}function H(e,t=[]){if(!(e instanceof Error))return`Error`;let n=e.name||`Error`,[r=``]=k(e,t).trim().split(`
|
|
2
2
|
`,1);return r&&r!==n?`${n}: ${r}`:n}async function U(e,t){let n=g(),r=n===`linux`||n===`freebsd`?N(!1,process.env,n):null;if(r!==null)throw Error(`OS keyring unlock prompt is unreachable (${r})`);let{AsyncEntry:i}=await import(`@napi-rs/keyring`);return new i(e,t)}async function W(){let e=F(),t;try{t=await y(e,`utf8`)}catch(e){if(A(e,`ENOENT`))return{};throw e}let n;try{n=JSON.parse(t)}catch(t){return await G(e,t)}return ve(n)?n:await G(e,void 0)}async function G(t,n){let r=`${t}.corrupt-${new Date().toISOString().replace(/[:.]/gu,`-`)}`;try{await b(t,r)}catch(e){if(A(e,`ENOENT`))return{};throw Error(`${t} is not a valid credential file and could not be moved aside`,{cause:e})}return e({component:u().bin[0],event:`credential_file_quarantined`,message:`${t} is not a valid credential file; moved it to ${r} and continuing with an empty file store`,...n===void 0?{}:{error:n}}),{}}async function K(e){if(P.getStore()===!0)return await e();let t=`${F()}.lock`;await v(p(t),{recursive:!0,mode:448});let n=Date.now()+he,r=_();for(;;){try{await S(t,r,{flag:`wx`,mode:384});break}catch(e){if(!A(e,`EEXIST`))throw e}if(await re(t).then(e=>Date.now()-e.mtimeMs,()=>0)>ge)await x(t,{force:!0});else if(Date.now()>n)throw Error(`credential store is locked by another CLI process (${t})`);else await ee(me)}try{return await P.run(!0,e)}finally{await y(t,`utf8`).catch(()=>``)===r&&await x(t,{force:!0})}}async function q(e,t,n){await K(async()=>await _e(e,t,n))}async function _e(e,t,n){let r=F(),i=await W(),a={...i[e]};if(n===void 0?delete a[t]:a[t]=n,Object.keys(a).length===0?delete i[e]:i[e]=a,Object.keys(i).length===0){await x(r,{force:!0});return}await v(p(r),{recursive:!0,mode:448});let o=`${r}.${_()}.tmp`;await S(o,`${JSON.stringify(i,null,2)}\n`,{mode:384}),await ne(o,384),await b(o,r)}function ve(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&Object.values(e).every(e=>typeof e==`object`&&!!e&&!Array.isArray(e)&&Object.values(e).every(e=>typeof e==`string`))}var J=`vc.aventure.aventure-cli`,Y=`aventure-cli-personal-v1`;async function ye(e,t,n){let r=w(e),i=Se(t,n),a;try{a=await R(J,r,i)}catch(e){throw Error(`${k(e,[i,t.secret])}; broker acknowledgment was withheld. Re-run auth status before retrying.`,{cause:e})}return{host:r,provider:a,activation:n,credential:t}}async function X(e){let t=w(e),n;try{n=await L(J,t)}catch(e){return Z(k(e))}let{record:r,keyringFailure:i}=n;return r===void 0?i===void 0?{state:`missing`}:{state:`missing`,keyringFailure:i}:{state:`found`,stored:{host:t,provider:r.provider,...Ce(r.value)}}}async function be(e){let t=await X(e);if(t.state!==`missing`)return t;try{let{keyringFailure:t}=await V(J,w(e));return t===void 0?{state:`missing`}:{state:`missing`,keyringFailure:t}}catch(e){return Z(k(e))}}async function xe(e){await B(J,w(e))}function Z(e){return{state:`unavailable`,summary:e,cause:`storage`}}function Se(e,t){return`${Y}:${t}\n${JSON.stringify(e.apiKey)}\n${e.secret}`}function Ce(e){let t=e.indexOf(`
|
|
3
3
|
`),n=t<0?-1:e.indexOf(`
|
|
4
4
|
`,t+1),r=t<0?e:e.slice(0,t),i=r===`${Y}:active`?`active`:`pending`;if(t<0||n<0||r!==`${Y}:pending`&&r!==`${Y}:active`)throw Error(`OS credential entry has an unsupported format`);let a=e.slice(n+1);if(a.length===0)throw Error(`OS credential entry has an empty secret`);let o;try{o=JSON.parse(e.slice(t+1,n))}catch(e){throw Error(`OS credential entry failed canonical schema validation`,{cause:e})}let s=O.safeParse(o);if(!s.success)throw Error(`OS credential entry failed canonical schema validation`,{cause:s.error});return{activation:i,credential:{apiKey:s.data,secret:a}}}async function we(n){if(Q())return;let r=w(c().host);try{let e=await X(r);if(e.state===`unavailable`){t($(`keyring`,Error(e.summary)));return}e.state===`found`&&e.stored.activation===`active`&&!Q()&&(process.env[l.authToken]=e.stored.credential.secret,n?.(`api-key`))}catch(t){e($(`parse`,t))}}function Q(){return(process.env[l.authToken]?.trim().length??0)>0}function $(e,t){return{component:u().bin[0],event:`api_key_materialization_unavailable`,message:`saved API key could not be loaded; continuing with environment auth`,fields:{source:e},error:t}}export{T as S,oe as _,ye as a,C as b,V as c,R as d,j as f,k as g,ce as h,X as i,L as l,ue as m,xe as n,B as o,de as p,be as r,I as s,we as t,K as u,O as v,w as x,ie as y};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./api-key-bearer-credential-4LScynXy.js";export{e as materializeCliApiKeyBearerCredential};
|