quantex-cli 1.8.11 → 1.8.12
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/{agent-installation-BoKWsqnP.mjs → agent-installation-pNsgwXb9.mjs} +1 -1
- package/dist/{agents-Dx9g8ynW.mjs → agents-BX-dLvjD.mjs} +1 -1
- package/dist/{agents-D9f3aOA9.mjs → agents-DqoBOUq7.mjs} +1 -1
- package/dist/{capabilities-BSnulBhT.mjs → capabilities-BFPcyntd.mjs} +1 -1
- package/dist/capabilities-C-oWByEQ.mjs +1 -0
- package/dist/cli.mjs +1 -1
- package/dist/{commands-BbQe_ON8.mjs → commands-D1q4K0yE.mjs} +1 -1
- package/dist/commands-h2c3xqyY.mjs +1 -0
- package/dist/{config-MrVPBftr.mjs → config-BYgYHkKM.mjs} +1 -1
- package/dist/core-installation-cli-C0ae3SUn.mjs +1 -0
- package/dist/{core-read-observations-BcPmZ6hJ.mjs → core-read-observations-CHHS7xq2.mjs} +1 -1
- package/dist/{doctor-B7r6ZBdF.mjs → doctor-aF8IIiYS.mjs} +1 -1
- package/dist/ensure-B4ynayjb.mjs +1 -0
- package/dist/ensure-BgQ_jxNF.mjs +1 -0
- package/dist/errors-BsSS_i9A.mjs +1 -0
- package/dist/index.mjs +1 -1
- package/dist/{info-Dqc_WWr1.mjs → info-EVHBg1nm.mjs} +1 -1
- package/dist/inspect-Cwz0pYtQ.mjs +1 -0
- package/dist/{inspect-DqDfHKBz.mjs → inspect-DJfaLc06.mjs} +1 -1
- package/dist/install-DMpMUIwN.mjs +1 -0
- package/dist/{installation-compatibility-Dwjt5KJ4.mjs → installation-compatibility-B2FzfkdC.mjs} +1 -1
- package/dist/installation-failure-diagnostics-BJnxrzTa.mjs +1 -0
- package/dist/{installation-production-DWjxO4ah.mjs → installation-production-DnHYEiSa.mjs} +1 -1
- package/dist/{installation-provider-registry-Cs4njYSh.mjs → installation-provider-registry-AmLxw9hr.mjs} +1 -1
- package/dist/installation-routing-B1snz7YR.mjs +1 -0
- package/dist/{lifecycle-observations-BuscaBUl.mjs → lifecycle-observations-Be3ngmis.mjs} +1 -1
- package/dist/{lifecycle-policy-6lSEToTF.mjs → lifecycle-policy-B2DJsLmz.mjs} +1 -1
- package/dist/{list-C-IEbM27.mjs → list-CwjEeX3F.mjs} +1 -1
- package/dist/{output-CStNLacz.mjs → output-DXP9RqRk.mjs} +1 -1
- package/dist/{production-observation-C2NQE3L8.mjs → production-observation-3CRKMj-q.mjs} +1 -1
- package/dist/{provider-evidence-DsrZZTeP.mjs → provider-evidence-Bn54ONe7.mjs} +1 -1
- package/dist/{provider-observations-Cc63tE6E.mjs → provider-observations-wolD6I6_.mjs} +1 -1
- package/dist/{providers-DvgNZrfR.mjs → providers-AFXil8bm.mjs} +1 -1
- package/dist/{resolve-dq8p6snD.mjs → resolve-CPLHsCmS.mjs} +1 -1
- package/dist/resolve-DkwAXDXK.mjs +1 -0
- package/dist/schema-DNGyzkMA.mjs +1 -0
- package/dist/{schema-BG5mYDpo.mjs → schema-di33Hdvd.mjs} +1 -1
- package/dist/{uninstall-DPJQiKjB.mjs → uninstall-CiqF5NbQ.mjs} +1 -1
- package/dist/{unmanaged-install-compatibility-1ER3psYi.mjs → unmanaged-install-compatibility-a4mdM5HM.mjs} +1 -1
- package/dist/{update-DkNFmDA5.mjs → update-Dbrry2-1.mjs} +1 -1
- package/dist/{upgrade-DCH9zij3.mjs → upgrade-CuLiLc-z.mjs} +1 -1
- package/package.json +1 -1
- package/dist/capabilities-D4Yrva1H.mjs +0 -1
- package/dist/commands-D5plvean.mjs +0 -1
- package/dist/core-installation-cli-BdaOA0l4.mjs +0 -1
- package/dist/ensure-CZZYl1C8.mjs +0 -1
- package/dist/ensure-Ctt9j7pc.mjs +0 -1
- package/dist/errors-DR1Ig4IH.mjs +0 -1
- package/dist/inspect-B5H663Ab.mjs +0 -1
- package/dist/install-Ca5HBRPs.mjs +0 -1
- package/dist/installation-routing-CLQZ8rZo.mjs +0 -1
- package/dist/resolve-cmJqUIsH.mjs +0 -1
- package/dist/schema-BpXcR8pV.mjs +0 -1
- /package/dist/{errors-G0M6J6q-.mjs → errors-fT9JApTf.mjs} +0 -0
- /package/dist/{installation-executor-CUGhYtyj.mjs → installation-executor-pEUKT8U8.mjs} +0 -0
- /package/dist/{installation-routing-D6Zo0bsn.mjs → installation-routing-n62Du1fV.mjs} +0 -0
- /package/dist/{invocation-DDozaggZ.mjs → invocation-DXH0mQUH.mjs} +0 -0
- /package/dist/{mutation-recipe-catalog-CH1AfoI8.mjs → mutation-recipe-catalog-CAvXPw6l.mjs} +0 -0
- /package/dist/{provider-observation-registry-HX9uxCCQ.mjs → provider-observation-registry-BaeYlsr4.mjs} +0 -0
- /package/dist/{version-cache-BYowbdA-.mjs → version-cache-CvZ20yUD.mjs} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e}from"./file-store-BdnwPxOg.mjs";import{t}from"./schema-BBnWVY6R.mjs";import{i as n,n as r}from"./cli-context-DI43ouBg.mjs";import{D as i,j as a,n as o,r as s,t as c}from"./output-CStNLacz.mjs";import{l}from"./providers-DvgNZrfR.mjs";import{n as u}from"./cli-operation-context-BFEu635L.mjs";import{n as d,o as f}from"./agents-Dx9g8ynW.mjs";import{r as p}from"./provider-binding-DV5J36pp.mjs";import{n as m,t as h}from"./lifecycle-errors-BtlAp_sz.mjs";import g from"node:process";function _(e,t={}){let i=r(),a=new AbortController,o=new Set,s=t.loadExecutor??I,c=!1,l,u=()=>(l??=s(),l);i.cancelled&&a.abort(`cancelled`);let d=n(async()=>{a.abort(`cancelled`),await Promise.allSettled(o)});return{dispose(){c||(c=!0,d())},async execute(t,n={}){if(c)return O(e,t);if(a.signal.aborted)return D(e,t);let r=v(u,e,t,a.signal,n.emitStartedEvent??!1);o.add(r);try{return await r}finally{o.delete(r)}}}}async function v(e,t,n,i,a){try{let o=await e(),s=r(),c={mode:s.dryRun?`preview`:`apply`,name:n,onMutationStart:a?e=>F(t,e.before.agent):void 0,operation:t,outputPolicy:u(s.outputMode),providerTimeoutMs:s.timeoutMs,resolveAdoption:b,signal:i};return y(t,n,await o.execute(c))}catch(e){return L(t,e),A(t,n,e)}}function y(e,t,n){if(n.kind===`failure`)return n.error.code===`cancelled`?D(e,t):n.error.code===`timed-out`?k(e,t):O(e,t);let r=n.value;return r.kind===`agent-not-found`?c({action:e,error:{code:`AGENT_NOT_FOUND`,details:{input:t},message:`Unknown agent: ${t}`},target:{kind:`agent`,name:t}}):r.kind===`failed`?S(e,t,r.error):x(e,r.value)}async function b(e){let t=l([...e.methods],e.resolvedBinaryPath??e.pathExecutable.path);if(!t)return;let n=p(e.agent,t);if(n)return{binding:n,installedState:f(e.agent,t)}}function x(e,t){let n=t.before.agent;if(t.decision===`already-satisfied`)return C(e,n);if(t.decision===`external-preserved`)return t.compatibility?t.kind===`preview`?T(e,n,`adopt`):E(e,n,t):w(e,n);if(t.kind===`preview`)return T(e,n,t.decision===`reinstall`?`reinstall`:`install`);let r=t.after.installedState;return r?o({action:e,data:j(n,!0,!0,r),target:{kind:`agent`,name:n.name}}):c({action:e,data:j(n,!1,!1),error:P(e,n),target:{kind:`agent`,name:n.name}})}function S(e,t,n){let r=H(n.cause,B);if(r)return c({action:e,...h(r,{kind:`agent`,name:t})});let i=n.sideEffect===`none`?H(n.cause,z):void 0;if(i)return c({action:e,...m(i,a(),{kind:`agent`,name:t})});let o=d(t),s=n.code===`compensation-failed`?n.originCode??n.code:n.code,l=s===`recording-failed`?{code:`INSTALL_FAILED`,details:{lifecycle:`state-write-failed`},message:`Failed to record verified state for ${o?.displayName??t}.`}:s===`decision-conflict`||s===`decision-indeterminate`||s===`verification-failed`?P(e,o??N(t)):{code:`INSTALL_FAILED`,message:`Failed to install ${o?.displayName??t}.`};return c({action:e,data:o?j(o,!1,!1):M(t),error:l,target:{kind:`agent`,name:o?.name??t}})}function C(e,t){return o({action:e,data:j(t,!1,!0),target:{kind:`agent`,name:t.name},warnings:[{code:`ALREADY_INSTALLED`,message:`${t.displayName} is already installed.`}]})}function w(e,t){return o({action:e,data:j(t,!1,!0),target:{kind:`agent`,name:t.name},warnings:[{code:`UNTRACKED_EXISTING_INSTALL`,message:`${t.displayName} is already installed but not tracked by Quantex. Quantex could not safely determine the supported install source, so the existing install remains unmanaged.`}]})}function T(e,t,n){return o({action:e,data:j(t,!1,n===`adopt`),target:{kind:`agent`,name:t.name},warnings:[{code:`DRY_RUN`,message:n===`adopt`?`Dry run: would record the existing ${t.displayName} install in Quantex state.`:n===`reinstall`?`Dry run: would reinstall ${t.displayName} only if its recorded provider target is confirmed absent.`:`Dry run: would install ${t.displayName}.`}]})}function E(e,t,n){let r=n.after.installedState;return r?o({action:e,data:j(t,n.changed,!0,r),target:{kind:`agent`,name:t.name},warnings:[{code:`TRACKED_EXISTING_INSTALL`,message:`${t.displayName} is already installed. Quantex is now tracking the existing install.`}]}):c({action:e,data:j(t,!1,!0),error:P(e,t),target:{kind:`agent`,name:t.name}})}function D(e,t){return c({action:e,data:M(t),error:{code:`CANCELLED`,message:`${e===`ensure`?`Ensure`:`Install`} was cancelled before tracking could complete.`},target:{kind:`agent`,name:t}})}function O(e,t){return c({action:e,data:M(t),error:{code:`INSTALL_FAILED`,message:`Failed to initialize the ${e} lifecycle engine.`},target:{kind:`agent`,name:t}})}function k(e,t){let n=d(t);return c({action:e,data:n?j(n,!1,!1):M(t),error:{code:`INSTALL_FAILED`,message:`Failed to install ${n?.displayName??t}.`},target:{kind:`agent`,name:n?.name??t}})}function A(e,t,n){let r=H(n,B);if(r)return c({action:e,...h(r,{kind:`agent`,name:t})});let i=H(n,z);return i?c({action:e,...m(i,a(),{kind:`agent`,name:t})}):O(e,t)}function j(e,t,n,r){return{agent:{displayName:e.displayName,name:e.name},changed:t,...r?{installState:{installType:r.installType,...r.packageName===void 0?{}:{packageName:r.packageName}}}:{},installed:n}}function M(e){return j(d(e)??N(e),!1,!1)}function N(e){return{displayName:e,name:e}}function P(e,t){return{code:`INSTALL_FAILED`,details:{lifecycle:`verification-failed`},message:e===`ensure`?`${t.displayName} could not be verified after ensure completed.`:`${t.displayName} could not be verified after installation.`}}function F(e,t){s({action:e,data:{agent:{displayName:t.displayName,name:t.name}},target:{kind:`agent`,name:t.name},type:`started`})}async function I(){return(await import(`./installation-compatibility-Dwjt5KJ4.mjs`)).createCoreInstallationCompatibilityExecutor()}function L(e,t){r().logLevel===`debug`&&g.stderr.write(`[quantex:debug] ${e} core engine failure: ${R(t)}\n`)}function R(e){return e instanceof Error&&e.message.trim()?e.message:`unknown failure`}function z(e){if(e instanceof i)return e;if(e instanceof t)return new i(`Failed to read Quantex state file: ${e.message}`,{cause:e});if(V(e))return new i(`Failed to read Quantex state file.`,{cause:e})}function B(t){return e(t)?t:void 0}function V(e){return!!(e&&typeof e==`object`&&`path`in e&&String(e.path)===a())}function H(e,t){let n=new Set,r=[e];for(;r.length>0;){let e=r.shift();if(e==null||n.has(e))continue;n.add(e);let i=t(e);if(i)return i;e instanceof AggregateError&&r.push(...e.errors),typeof e==`object`&&`cause`in e&&r.push(e.cause)}}export{_ as createCoreInstallationCliSession};
|
package/dist/ensure-CZZYl1C8.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,t}from"./ensure-Ctt9j7pc.mjs";export{t as ensureCommand,e as ensureCommandWithRoute};
|
package/dist/ensure-Ctt9j7pc.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e}from"./file-store-BdnwPxOg.mjs";import{i as t,n,r,t as i}from"./output-CStNLacz.mjs";import{l as a}from"./providers-DvgNZrfR.mjs";import{t as o}from"./color-iQl4CJwm.mjs";import{g as s,n as c}from"./agents-Dx9g8ynW.mjs";import{t as l}from"./agent-installation-BoKWsqnP.mjs";import{n as u}from"./lifecycle-observations-BuscaBUl.mjs";import{t as d}from"./lifecycle-errors-BtlAp_sz.mjs";import{a as f,i as p,n as m,r as h}from"./user-output-DLbKXqDm.mjs";import{n as g,r as _}from"./installation-routing-D6Zo0bsn.mjs";import{t as v}from"./unmanaged-install-compatibility-1ER3psYi.mjs";async function y(e){return await b(e,_(`ensure`))}async function b(n,r){if(g(`ensure`,r),r.engine===`core`){let e=await v(n);if(e)return t(T(e),D);let{createCoreInstallationCliSession:r}=await import(`./core-installation-cli-BdaOA0l4.mjs`),i=r(`ensure`);try{return t(await i.execute(n,{emitStartedEvent:!0}),D)}finally{i.dispose()}}if(!c(n)||m())return x(n);try{return await s(()=>x(n))}catch(r){if(e(r))return t(i({action:`ensure`,...d(r,{kind:`agent`,name:n}),target:{kind:`agent`,name:n}}),D);throw r}}async function x(n){let r=await u(n);if(!r)return t(i({action:`ensure`,error:{code:`AGENT_NOT_FOUND`,details:{input:n},message:`Unknown agent: ${n}`},target:{kind:`agent`,name:n}}),D);let{agent:o}=r,s=r.pathExecutable.present,c=r.installedState,f=s&&!c?a(r.methods,r.resolvedBinaryPath??r.pathExecutable.path):void 0;if(s&&!c&&!f)return t(T(o),D);let p=c&&s?`satisfied`:f?`adopt`:`install`;if(m())return t(p===`satisfied`?w(o):C(o,p===`adopt`,!!c),D);p!==`satisfied`&&S(o);try{return t(E(o,p,await l({adoptableMethod:f,agent:o,observation:{inPath:s,installedState:c,lifecycle:r.observation,methods:r.methods},operation:`ensure`,route:p})),D)}catch(n){if(e(n))return t(i({action:`ensure`,data:{agent:{displayName:o.displayName,name:o.name},changed:!1,installed:s},...d(n,{kind:`agent`,name:o.name})}),D);throw n}}function S(e){r({action:`ensure`,data:{agent:{displayName:e.displayName,name:e.name}},target:{kind:`agent`,name:e.name},type:`started`})}function C(e,t,r){return n({action:`ensure`,data:{agent:{displayName:e.displayName,name:e.name},changed:!1,installed:t},target:{kind:`agent`,name:e.name},warnings:[{code:`DRY_RUN`,message:t?`Dry run: would record the existing ${e.displayName} install in Quantex state.`:r?`Dry run: would reinstall ${e.displayName} only if its recorded provider target is confirmed absent.`:`Dry run: would install ${e.displayName}.`}]})}function w(e){return n({action:`ensure`,data:{agent:{displayName:e.displayName,name:e.name},changed:!1,installed:!0},target:{kind:`agent`,name:e.name},warnings:[{code:`ALREADY_INSTALLED`,message:`${e.displayName} is already installed.`}]})}function T(e){return n({action:`ensure`,data:{agent:{displayName:e.displayName,name:e.name},changed:!1,installed:!0},target:{kind:`agent`,name:e.name},warnings:[{code:`UNTRACKED_EXISTING_INSTALL`,message:`${e.displayName} is already installed but not tracked by Quantex. Quantex could not safely determine the supported install source, so the existing install remains unmanaged.`}]})}function E(e,t,r){if(r.kind===`success`){if(t===`satisfied`)return w(e);let i=r.value.value.installedState;return n({action:`ensure`,data:{agent:{displayName:e.displayName,name:e.name},changed:r.value.changed,installState:r.value.changed?{installType:i.installType,packageName:i.packageName}:void 0,installed:!0},target:{kind:`agent`,name:e.name},warnings:t===`adopt`?[{code:`TRACKED_EXISTING_INSTALL`,message:`${e.displayName} is already installed. Quantex is now tracking the existing install.`}]:[]})}let a=r.kind===`cancelled`?{code:`CANCELLED`,message:`Ensure was cancelled before tracking could complete.`}:r.kind===`failed`&&r.reason===`receipt-write-failed`?{code:`INSTALL_FAILED`,details:{lifecycle:`state-write-failed`},message:`Failed to record verified state for ${e.displayName}.`}:r.kind===`failed`&&r.reason.endsWith(`-after-ensure`)||r.kind===`indeterminate`?{code:`INSTALL_FAILED`,details:{lifecycle:`verification-failed`},message:`${e.displayName} could not be verified after ensure completed.`}:{code:`INSTALL_FAILED`,message:`Failed to install ${e.displayName}.`};return i({action:`ensure`,data:{agent:{displayName:e.displayName,name:e.name},changed:!1,installed:!1},error:a,target:{kind:`agent`,name:e.name}})}function D(e){if(e.error){h(o.red(e.error.message));return}if(e.data){if(e.warnings.length>0){for(let t of e.warnings){if(t.code===`TRACKED_EXISTING_INSTALL`){p(o.green(t.message));continue}if(t.code===`DRY_RUN`){f(o.cyan(t.message));continue}f(o.yellow(t.message))}return}if(e.data.changed){p(o.cyan(`Installing ${e.data.agent.displayName}...`)),p(o.green(`${e.data.agent.displayName} is now installed.`));return}p(o.green(`${e.data.agent.displayName} is already installed.`))}}export{b as n,y as t};
|
package/dist/errors-DR1Ig4IH.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./errors-G0M6J6q-.mjs";export{e as getExitCodeForResult};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./inspect-DqDfHKBz.mjs";export{e as inspectCommand};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e}from"./file-store-BdnwPxOg.mjs";import{n as t}from"./cli-context-DI43ouBg.mjs";import{i as n,n as r,r as i,t as a}from"./output-CStNLacz.mjs";import{l as o}from"./providers-DvgNZrfR.mjs";import{t as s}from"./color-iQl4CJwm.mjs";import{g as c,n as l}from"./agents-Dx9g8ynW.mjs";import{t as u}from"./agent-installation-BoKWsqnP.mjs";import{n as d}from"./lifecycle-observations-BuscaBUl.mjs";import{t as f}from"./lifecycle-errors-BtlAp_sz.mjs";import{a as p,i as m,n as h,r as g}from"./user-output-DLbKXqDm.mjs";import{n as _,r as v}from"./installation-routing-D6Zo0bsn.mjs";import{t as y}from"./unmanaged-install-compatibility-1ER3psYi.mjs";import{o as b}from"./lifecycle-policy-6lSEToTF.mjs";async function x(e){return await S(e,v(`install`))}async function S(e,t){_(`install`,t);let n=t.engine===`core`?(await import(`./core-installation-cli-BdaOA0l4.mjs`)).createCoreInstallationCliSession(`install`):void 0;try{return await C(e,n)}finally{n?.dispose()}}async function C(e,o){let s=b(Array.isArray(e)?e:[e]);if(s.length<=1)return n(await w(s[0],{emitStartedEvent:!0},o),F);i({action:`install`,data:{scope:`batch`},target:{kind:`agent`},type:`started`});let c=[];for(let e of s){if(t().cancelled)break;let n=j(e,await w(e,{},o));if(c.push(n),i({action:`install`,data:n,target:{kind:`agent`,name:n.agent.name},type:`progress`}),t().cancelled)break}let l={results:c,scope:`batch`,summary:N(c)};return t().cancelled&&c.length<s.length?n(a({action:`install`,data:l,error:{code:`CANCELLED`,message:`Install was cancelled before all agents could be installed.`},target:{kind:`agent`}}),I):n(c.some(e=>!e.ok)?a({action:`install`,data:l,error:P(c),target:{kind:`agent`}}):r({action:`install`,data:l,target:{kind:`agent`}}),I)}async function w(n,r={},i){if(i){let e=await y(n);return e?k(e):await i.execute(n,r)}if(t().cancelled||!l(n)||h())return T(n,r);try{return await c(()=>T(n,r))}catch(t){if(e(t))return a({action:`install`,...f(t,{kind:`agent`,name:n}),target:{kind:`agent`,name:n}});throw t}}async function T(n,r){if(t().cancelled)return a({action:`install`,error:{code:`CANCELLED`,message:`Install was cancelled before it could start.`},target:{kind:`agent`,name:n}});let i=await d(n);if(!i)return a({action:`install`,error:{code:`AGENT_NOT_FOUND`,details:{input:n},message:`Unknown agent: ${n}`},target:{kind:`agent`,name:n}});let{agent:s}=i,c=i.pathExecutable.present,l=i.installedState,p=c&&!l?o(i.methods,i.resolvedBinaryPath??i.pathExecutable.path):void 0;if(c&&!l&&!p)return k(s);let m=l&&c?`satisfied`:p?`adopt`:`install`;if(h())return m===`satisfied`?D(s):O(s,m===`adopt`,!!l);m!==`satisfied`&&A(s,r.emitStartedEvent);try{return E(s,m,await u({adoptableMethod:p,agent:s,observation:{inPath:c,installedState:l,lifecycle:i.observation,methods:i.methods},operation:`install`,route:m}))}catch(t){if(e(t))return a({action:`install`,data:{agent:{displayName:s.displayName,name:s.name},changed:!1,installed:c},...f(t,{kind:`agent`,name:s.name})});throw t}}function E(e,t,n){if(n.kind===`success`){if(t===`satisfied`)return D(e);let i=n.value.value.installedState;return r({action:`install`,data:{agent:{displayName:e.displayName,name:e.name},changed:n.value.changed,installState:{installType:i.installType,packageName:i.packageName},installed:!0},target:{kind:`agent`,name:e.name},warnings:t===`adopt`?[{code:`TRACKED_EXISTING_INSTALL`,message:`${e.displayName} is already installed. Quantex is now tracking the existing install.`}]:[]})}let i=n.kind===`cancelled`?{code:`CANCELLED`,message:`Install was cancelled before tracking could complete.`}:n.kind===`failed`&&n.reason===`receipt-write-failed`?{code:`INSTALL_FAILED`,details:{lifecycle:`state-write-failed`},message:`Failed to record verified state for ${e.displayName}.`}:n.kind===`failed`&&n.reason.endsWith(`-after-install`)||n.kind===`indeterminate`?{code:`INSTALL_FAILED`,details:{lifecycle:`verification-failed`},message:`${e.displayName} could not be verified after installation.`}:{code:`INSTALL_FAILED`,message:`Failed to install ${e.displayName}.`};return a({action:`install`,data:{agent:{displayName:e.displayName,name:e.name},changed:!1,installed:!1},error:i,target:{kind:`agent`,name:e.name}})}function D(e){return r({action:`install`,data:{agent:{displayName:e.displayName,name:e.name},changed:!1,installed:!0},target:{kind:`agent`,name:e.name},warnings:[{code:`ALREADY_INSTALLED`,message:`${e.displayName} is already installed.`}]})}function O(e,t,n){return r({action:`install`,data:{agent:{displayName:e.displayName,name:e.name},changed:!1,installed:t},target:{kind:`agent`,name:e.name},warnings:[{code:`DRY_RUN`,message:t?`Dry run: would record the existing ${e.displayName} install in Quantex state.`:n?`Dry run: would reinstall ${e.displayName} only if its recorded provider target is confirmed absent.`:`Dry run: would install ${e.displayName}.`}]})}function k(e){return r({action:`install`,data:{agent:{displayName:e.displayName,name:e.name},changed:!1,installed:!0},target:{kind:`agent`,name:e.name},warnings:[{code:`UNTRACKED_EXISTING_INSTALL`,message:`${e.displayName} is already installed but not tracked by Quantex. Quantex could not safely determine the supported install source, so the existing install remains unmanaged.`}]})}function A(e,t=!1){t&&i({action:`install`,data:{agent:{displayName:e.displayName,name:e.name}},target:{kind:`agent`,name:e.name},type:`started`})}function j(e,t){let n=t.data,r=t.warnings.map(e=>({code:e.code,message:e.message}));return{agent:n?.agent??{displayName:e,name:t.target?.name??e},changed:n?.changed??!1,error:t.error?{code:t.error.code,message:t.error.message}:void 0,input:e,installState:n?.installState,installed:n?.installed??!1,ok:t.ok,status:M(t),warnings:r}}function M(e){return e.ok?e.warnings.some(e=>e.code===`TRACKED_EXISTING_INSTALL`)?`tracked-existing-install`:e.warnings.some(e=>e.code===`UNTRACKED_EXISTING_INSTALL`)?`untracked-existing-install`:e.warnings.some(e=>e.code===`ALREADY_INSTALLED`)?`already-installed`:e.warnings.some(e=>e.code===`DRY_RUN`)?`planned`:`installed`:e.error?.code===`RESOURCE_LOCKED`?`locked`:`failed`}function N(e){let t={alreadyInstalled:0,failed:0,installed:0,locked:0,planned:0,trackedExistingInstall:0,untrackedExistingInstall:0};for(let n of e)switch(n.status){case`already-installed`:t.alreadyInstalled+=1;break;case`failed`:t.failed+=1;break;case`installed`:t.installed+=1;break;case`locked`:t.locked+=1;break;case`planned`:t.planned+=1;break;case`tracked-existing-install`:t.trackedExistingInstall+=1;break;case`untracked-existing-install`:t.untrackedExistingInstall+=1;break}return t}function P(e){let t=e.filter(e=>!e.ok),n=new Set(t.map(e=>e.error?.code));return n.size===1&&n.has(`RESOURCE_LOCKED`)?{code:`RESOURCE_LOCKED`,details:{failedAgents:t.map(e=>e.input)},message:`One or more agents could not be installed because another Quantex process is already using the agent lifecycle lock.`}:{code:`INSTALL_FAILED`,details:{failedAgents:t.map(e=>e.input)},message:`One or more agents failed to install.`}}function F(e){if(e.error){g(s.red(e.error.message));return}if(e.data){if(e.warnings.length>0){for(let t of e.warnings){if(t.code===`TRACKED_EXISTING_INSTALL`){m(s.green(t.message));continue}if(t.code===`DRY_RUN`){p(s.cyan(t.message));continue}p(s.yellow(t.message))}return}m(s.cyan(`Installing ${e.data.agent.displayName}...`)),m(s.green(`${e.data.agent.displayName} installed successfully!`))}}function I(e){if(!e.data){e.error&&g(s.red(e.error.message));return}for(let t of e.data.results)switch(t.status){case`installed`:m(s.cyan(`Installing ${t.agent.displayName}...`)),m(s.green(`${t.agent.displayName} installed successfully!`));break;case`tracked-existing-install`:m(s.green(L(t.warnings,`${t.agent.displayName} is already installed.`)));break;case`already-installed`:case`untracked-existing-install`:p(s.yellow(L(t.warnings,`${t.agent.displayName} is already installed.`)));break;case`planned`:p(s.cyan(L(t.warnings,`Dry run: would install ${t.agent.displayName}.`)));break;case`locked`:p(s.yellow(t.error?.message??`Another quantex process is already installing ${t.agent.displayName}.`));break;case`failed`:g(s.red(t.error?.message??`Failed to install ${t.agent.displayName}.`));break}R(e.data.summary)}function L(e,t){return e[0]?.message??t}function R(e){let t=[e.installed?`installed ${e.installed}`:void 0,e.alreadyInstalled?`already installed ${e.alreadyInstalled}`:void 0,e.trackedExistingInstall?`tracked existing ${e.trackedExistingInstall}`:void 0,e.untrackedExistingInstall?`untracked existing ${e.untrackedExistingInstall}`:void 0,e.failed?`failed ${e.failed}`:void 0,e.locked?`locked ${e.locked}`:void 0,e.planned?`planned ${e.planned}`:void 0].filter(Boolean);t.length>0&&m(s.bold(`Summary: ${t.join(`, `)}`))}export{x as installCommand,S as installCommandWithRoute};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,r as t,t as n}from"./installation-routing-D6Zo0bsn.mjs";export{n as createCoreInstallationTestRoute,e as reportInstallationEngineRoute,t as selectInstallationEngineRoute};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./resolve-dq8p6snD.mjs";export{e as resolveCommand};
|
package/dist/schema-BpXcR8pV.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./schema-BG5mYDpo.mjs";export{e as schemaCommand};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|