UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

7 lines • 3.51 kB
import{t as formatErrorMessage}from"../errors-D37BJTfI.mjs";import{n as createLazyRuntimeMethodBinder}from"../lazy-runtime-Ds6M7vp4.mjs";import{r as theme}from"../theme-DS2CtI9X.mjs";import{o as finishUpdateRun}from"../update-run-write-3s9ZgQE7.mjs";import{h as recordUpdateRunVerification,l as recordUpdateRunDiagnostic,m as recordUpdateRunStep,n as adoptUpdateRun}from"../update-run-ledger-De5a4xOk.mjs";import{i as getUpdateRun,l as listUpdateRuns}from"../update-run-reader-Nkn3I5Fr.mjs";import{t as formatDocsLink}from"../links-C_FK9uVv.mjs";import{t as addGatewayServiceCommands}from"../register-service-commands-DXqs3aGW.mjs";import{o as refreshUpdateRunReportArtifact}from"../update-failure-report-artifact-_3N8pjaR.mjs";import{n as sendUpdateResultTelemetry}from"../update-result-telemetry-BQzA-nyd.mjs";import{i as createManagedUpdateRequesterAuthority}from"../update-requester-authority-Clp57_eG.mjs"; //!src/cli/daemon-cli/register.ts function registerDaemonCli(e){const t=e.command(`daemon`).description(`Manage the Gateway service (launchd/systemd/schtasks)`).option(`--json`,`Output JSON`,false).addHelpText(`after`,()=>`\n${theme.muted(`Docs:`)} ${formatDocsLink(`/cli/gateway`,`docs.openclaw.ai/cli/gateway`)}\n`);addGatewayServiceCommands(t,{statusDescription:`Show service install status + check connectivity/capability`})} //!src/cli/daemon-cli/update-run.ts async function finishDaemonUpdateRun(e,t,n={}){const r=finishUpdateRun(e,t,n,e=>void sendUpdateResultTelemetry(e,{env:n.env}));try{await refreshUpdateRunReportArtifact(r,n)}catch(e){console.warn(`Update report could not be saved: ${formatErrorMessage(e)}`)}return r} //!src/cli/daemon-cli.ts const install=createLazyRuntimeMethodBinder(()=>import(`../install-CVW-M___.mjs`));const lifecycle=createLazyRuntimeMethodBinder(()=>import(`../lifecycle-Ch_id9bq.mjs`));const status=createLazyRuntimeMethodBinder(()=>import(`../status-BOb1cxSJ.mjs`));const lifecycleContext=createLazyRuntimeMethodBinder(()=>import(`../lifecycle-context-Brq2Lxq1.mjs`));const serviceHandoff=createLazyRuntimeMethodBinder(()=>import(`../update-managed-service-handoff-DPUntC7B.mjs`));const runDaemonInstall=install(e=>e.runDaemonInstall);const runDaemonRestart=lifecycle(e=>e.runDaemonRestart);const runDaemonStart=lifecycle(e=>e.runDaemonStart);const runDaemonStop=lifecycle(e=>e.runDaemonStop);const runDaemonUninstall=lifecycle(e=>e.runDaemonUninstall);const runDaemonStatus=status(e=>e.runDaemonStatus);const isManagedUpdateRequesterOwner=lifecycleContext(e=>e.isManagedUpdateRequesterOwner);const prepareManagedUpdateRequesterIdentity=lifecycleContext(e=>e.prepareManagedUpdateRequesterIdentity);const waitForGatewayUpdateRecovery=lifecycleContext(e=>e.waitForGatewayUpdateRecovery);const assertForegroundUpdateOrigin=serviceHandoff(e=>e.assertForegroundUpdateOrigin);const runManagedHandoffSentinelChild=createLazyRuntimeMethodBinder(()=>import(`../update-managed-service-handoff-sentinel-BmSqTOPs.mjs`))(e=>e.executeInstalledHandoffSentinelOperation);export{addGatewayServiceCommands,adoptUpdateRun,assertForegroundUpdateOrigin,createManagedUpdateRequesterAuthority,finishDaemonUpdateRun as finishUpdateRun,getUpdateRun,isManagedUpdateRequesterOwner,listUpdateRuns,prepareManagedUpdateRequesterIdentity,recordUpdateRunDiagnostic,recordUpdateRunStep,recordUpdateRunVerification,registerDaemonCli,runDaemonInstall,runDaemonRestart,runDaemonStart,runDaemonStatus,runDaemonStop,runDaemonUninstall,runManagedHandoffSentinelChild,waitForGatewayUpdateRecovery};