@nextclaw/service 0.2.13 → 0.2.14
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/app/nextclaw-service-runtime.d.ts +41 -0
- package/dist/app/nextclaw-service-runtime.d.ts.map +1 -0
- package/dist/app/nextclaw-service-runtime.js +136 -0
- package/dist/app/nextclaw-service-runtime.js.map +1 -0
- package/dist/controllers/commands/agent-command.controller.d.ts +3 -0
- package/dist/controllers/commands/agent-command.controller.js +3 -0
- package/dist/controllers/commands/channel-command.controller.d.ts +21 -0
- package/dist/controllers/commands/channel-command.controller.d.ts.map +1 -0
- package/dist/controllers/commands/channel-command.controller.js +115 -0
- package/dist/controllers/commands/channel-command.controller.js.map +1 -0
- package/dist/controllers/commands/config-command.controller.d.ts +2 -0
- package/dist/controllers/commands/config-command.controller.js +2 -0
- package/dist/controllers/commands/cron-command.controller.d.ts +2 -0
- package/dist/controllers/commands/cron-command.controller.js +2 -0
- package/dist/controllers/commands/diagnostics-command.controller.d.ts +2 -0
- package/dist/controllers/commands/diagnostics-command.controller.js +2 -0
- package/dist/controllers/commands/gateway-command.controller.d.ts +15 -0
- package/dist/controllers/commands/gateway-command.controller.d.ts.map +1 -0
- package/dist/controllers/commands/gateway-command.controller.js +17 -0
- package/dist/controllers/commands/gateway-command.controller.js.map +1 -0
- package/dist/controllers/commands/logs-command.controller.d.ts +13 -0
- package/dist/controllers/commands/logs-command.controller.d.ts.map +1 -0
- package/dist/controllers/commands/logs-command.controller.js +31 -0
- package/dist/controllers/commands/logs-command.controller.js.map +1 -0
- package/dist/controllers/commands/marketplace-skill-command.controller.d.ts +28 -0
- package/dist/controllers/commands/marketplace-skill-command.controller.d.ts.map +1 -0
- package/dist/controllers/commands/marketplace-skill-command.controller.js +170 -0
- package/dist/controllers/commands/marketplace-skill-command.controller.js.map +1 -0
- package/dist/controllers/commands/mcp-command.controller.d.ts +15 -0
- package/dist/controllers/commands/mcp-command.controller.d.ts.map +1 -0
- package/dist/controllers/commands/mcp-command.controller.js +195 -0
- package/dist/controllers/commands/mcp-command.controller.js.map +1 -0
- package/dist/controllers/commands/platform-auth-command.controller.d.ts +2 -0
- package/dist/controllers/commands/platform-auth-command.controller.js +2 -0
- package/dist/controllers/commands/remote-command.controller.d.ts +48 -0
- package/dist/controllers/commands/remote-command.controller.d.ts.map +1 -0
- package/dist/controllers/commands/remote-command.controller.js +176 -0
- package/dist/controllers/commands/remote-command.controller.js.map +1 -0
- package/dist/controllers/commands/restart-command.controller.d.ts +21 -0
- package/dist/controllers/commands/restart-command.controller.d.ts.map +1 -0
- package/dist/controllers/commands/restart-command.controller.js +90 -0
- package/dist/controllers/commands/restart-command.controller.js.map +1 -0
- package/dist/controllers/commands/secrets-command.controller.d.ts +23 -0
- package/dist/controllers/commands/secrets-command.controller.d.ts.map +1 -0
- package/dist/controllers/commands/secrets-command.controller.js +282 -0
- package/dist/controllers/commands/secrets-command.controller.js.map +1 -0
- package/dist/controllers/commands/serve-command.controller.d.ts +15 -0
- package/dist/controllers/commands/serve-command.controller.d.ts.map +1 -0
- package/dist/controllers/commands/serve-command.controller.js +21 -0
- package/dist/controllers/commands/serve-command.controller.js.map +1 -0
- package/dist/controllers/commands/service-command.controller.d.ts +17 -0
- package/dist/controllers/commands/service-command.controller.d.ts.map +1 -0
- package/dist/controllers/commands/service-command.controller.js +33 -0
- package/dist/controllers/commands/service-command.controller.js.map +1 -0
- package/dist/controllers/commands/start-command.controller.d.ts +19 -0
- package/dist/controllers/commands/start-command.controller.d.ts.map +1 -0
- package/dist/controllers/commands/start-command.controller.js +27 -0
- package/dist/controllers/commands/start-command.controller.js.map +1 -0
- package/dist/controllers/commands/stop-command.controller.d.ts +13 -0
- package/dist/controllers/commands/stop-command.controller.d.ts.map +1 -0
- package/dist/controllers/commands/stop-command.controller.js +13 -0
- package/dist/controllers/commands/stop-command.controller.js.map +1 -0
- package/dist/controllers/commands/ui-command.controller.d.ts +15 -0
- package/dist/controllers/commands/ui-command.controller.d.ts.map +1 -0
- package/dist/controllers/commands/ui-command.controller.js +19 -0
- package/dist/controllers/commands/ui-command.controller.js.map +1 -0
- package/dist/controllers/commands/usage-command.controller.d.ts +2 -0
- package/dist/controllers/commands/usage-command.controller.js +2 -0
- package/dist/controllers/gateway.controller.d.ts +54 -0
- package/dist/controllers/gateway.controller.d.ts.map +1 -0
- package/dist/controllers/gateway.controller.js +162 -0
- package/dist/controllers/gateway.controller.js.map +1 -0
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2 -2
- package/dist/launcher/npm-runtime-launcher.service.d.ts +1 -1
- package/dist/launcher/npm-runtime-launcher.service.js +6 -6
- package/dist/launcher/npm-runtime-launcher.service.js.map +1 -1
- package/dist/managers/gateway-extension.manager.d.ts +29 -0
- package/dist/managers/gateway-extension.manager.d.ts.map +1 -0
- package/dist/managers/gateway-extension.manager.js +78 -0
- package/dist/managers/gateway-extension.manager.js.map +1 -0
- package/dist/managers/gateway-remote.manager.d.ts +23 -0
- package/dist/managers/gateway-remote.manager.d.ts.map +1 -0
- package/dist/managers/gateway-remote.manager.js +28 -0
- package/dist/managers/gateway-remote.manager.js.map +1 -0
- package/dist/managers/managed-service.manager.d.ts +42 -0
- package/dist/managers/managed-service.manager.d.ts.map +1 -0
- package/dist/managers/managed-service.manager.js +195 -0
- package/dist/managers/managed-service.manager.js.map +1 -0
- package/dist/managers/runtime-update.manager.d.ts +43 -0
- package/dist/managers/runtime-update.manager.d.ts.map +1 -0
- package/dist/managers/runtime-update.manager.js +185 -0
- package/dist/managers/runtime-update.manager.js.map +1 -0
- package/dist/managers/service-command.manager.d.ts +67 -0
- package/dist/managers/service-command.manager.d.ts.map +1 -0
- package/dist/managers/service-command.manager.js +94 -0
- package/dist/managers/service-command.manager.js.map +1 -0
- package/dist/managers/service-gateway.manager.d.ts +85 -0
- package/dist/managers/service-gateway.manager.d.ts.map +1 -0
- package/dist/managers/service-gateway.manager.js +278 -0
- package/dist/managers/service-gateway.manager.js.map +1 -0
- package/dist/managers/service-restart.manager.d.ts +22 -0
- package/dist/managers/service-restart.manager.d.ts.map +1 -0
- package/dist/managers/service-restart.manager.js +183 -0
- package/dist/managers/service-restart.manager.js.map +1 -0
- package/dist/managers/service-workspace.manager.d.ts +14 -0
- package/dist/managers/service-workspace.manager.d.ts.map +1 -0
- package/dist/managers/service-workspace.manager.js +86 -0
- package/dist/managers/service-workspace.manager.js.map +1 -0
- package/dist/services/agent/agent-commands.service.d.ts +17 -0
- package/dist/services/agent/agent-commands.service.d.ts.map +1 -0
- package/dist/services/agent/agent-commands.service.js +111 -0
- package/dist/services/agent/agent-commands.service.js.map +1 -0
- package/dist/services/autostart/host-autostart-command.service.d.ts +30 -0
- package/dist/services/autostart/host-autostart-command.service.d.ts.map +1 -0
- package/dist/services/autostart/host-autostart-command.service.js +160 -0
- package/dist/services/autostart/host-autostart-command.service.js.map +1 -0
- package/dist/services/autostart/host-autostart-runtime.service.d.ts +24 -0
- package/dist/services/autostart/host-autostart-runtime.service.d.ts.map +1 -0
- package/dist/services/autostart/host-autostart-runtime.service.js +55 -0
- package/dist/services/autostart/host-autostart-runtime.service.js.map +1 -0
- package/dist/services/autostart/host-autostart.service.d.ts +42 -0
- package/dist/services/autostart/host-autostart.service.d.ts.map +1 -0
- package/dist/services/autostart/host-autostart.service.js +50 -0
- package/dist/services/autostart/host-autostart.service.js.map +1 -0
- package/dist/services/autostart/linux-systemd-autostart.service.d.ts +49 -0
- package/dist/services/autostart/linux-systemd-autostart.service.d.ts.map +1 -0
- package/dist/services/autostart/linux-systemd-autostart.service.js +435 -0
- package/dist/services/autostart/linux-systemd-autostart.service.js.map +1 -0
- package/dist/services/autostart/macos-launch-agent-autostart.service.d.ts +55 -0
- package/dist/services/autostart/macos-launch-agent-autostart.service.d.ts.map +1 -0
- package/dist/services/autostart/macos-launch-agent-autostart.service.js +407 -0
- package/dist/services/autostart/macos-launch-agent-autostart.service.js.map +1 -0
- package/dist/services/autostart/windows-task-autostart.service.d.ts +55 -0
- package/dist/services/autostart/windows-task-autostart.service.d.ts.map +1 -0
- package/dist/services/autostart/windows-task-autostart.service.js +406 -0
- package/dist/services/autostart/windows-task-autostart.service.js.map +1 -0
- package/dist/services/channel/channel-list-view.service.d.ts +29 -0
- package/dist/services/channel/channel-list-view.service.d.ts.map +1 -0
- package/dist/services/channel/channel-list-view.service.js +53 -0
- package/dist/services/channel/channel-list-view.service.js.map +1 -0
- package/dist/services/config/config-commands.service.d.ts +17 -0
- package/dist/services/config/config-commands.service.d.ts.map +1 -0
- package/dist/services/config/config-commands.service.js +117 -0
- package/dist/services/config/config-commands.service.js.map +1 -0
- package/dist/services/cron/cron-commands.service.d.ts +23 -0
- package/dist/services/cron/cron-commands.service.d.ts.map +1 -0
- package/dist/services/cron/cron-commands.service.js +109 -0
- package/dist/services/cron/cron-commands.service.js.map +1 -0
- package/dist/services/cron/cron-local.service.d.ts +26 -0
- package/dist/services/cron/cron-local.service.d.ts.map +1 -0
- package/dist/services/cron/cron-local.service.js +89 -0
- package/dist/services/cron/cron-local.service.js.map +1 -0
- package/dist/services/diagnostics/diagnostics-commands.service.d.ts +25 -0
- package/dist/services/diagnostics/diagnostics-commands.service.d.ts.map +1 -0
- package/dist/services/diagnostics/diagnostics-commands.service.js +345 -0
- package/dist/services/diagnostics/diagnostics-commands.service.js.map +1 -0
- package/dist/services/gateway/gateway-restart-wake.service.d.ts +13 -0
- package/dist/services/gateway/gateway-restart-wake.service.d.ts.map +1 -0
- package/dist/services/gateway/gateway-restart-wake.service.js +99 -0
- package/dist/services/gateway/gateway-restart-wake.service.js.map +1 -0
- package/dist/services/gateway/nextclaw-app.service.d.ts +18 -0
- package/dist/services/gateway/nextclaw-app.service.d.ts.map +1 -0
- package/dist/services/gateway/nextclaw-app.service.js +44 -0
- package/dist/services/gateway/nextclaw-app.service.js.map +1 -0
- package/dist/services/gateway/service-bootstrap-status.service.d.ts +33 -0
- package/dist/services/gateway/service-bootstrap-status.service.d.ts.map +1 -0
- package/dist/services/gateway/service-bootstrap-status.service.js +144 -0
- package/dist/services/gateway/service-bootstrap-status.service.js.map +1 -0
- package/dist/services/gateway/service-startup-support.service.d.ts +35 -0
- package/dist/services/gateway/service-startup-support.service.d.ts.map +1 -0
- package/dist/services/gateway/service-startup-support.service.js +83 -0
- package/dist/services/gateway/service-startup-support.service.js.map +1 -0
- package/dist/services/marketplace/service-marketplace-installer.service.d.ts +29 -0
- package/dist/services/marketplace/service-marketplace-installer.service.d.ts.map +1 -0
- package/dist/services/marketplace/service-marketplace-installer.service.js +87 -0
- package/dist/services/marketplace/service-marketplace-installer.service.js.map +1 -0
- package/dist/services/marketplace/service-mcp-marketplace-ops.service.d.ts +40 -0
- package/dist/services/marketplace/service-mcp-marketplace-ops.service.d.ts.map +1 -0
- package/dist/services/marketplace/service-mcp-marketplace-ops.service.js +69 -0
- package/dist/services/marketplace/service-mcp-marketplace-ops.service.js.map +1 -0
- package/dist/services/marketplace/skills-query.service.d.ts +110 -0
- package/dist/services/marketplace/skills-query.service.d.ts.map +1 -0
- package/dist/services/marketplace/skills-query.service.js +132 -0
- package/dist/services/marketplace/skills-query.service.js.map +1 -0
- package/dist/services/platform-auth/account-status.service.d.ts +20 -0
- package/dist/services/platform-auth/account-status.service.d.ts.map +1 -0
- package/dist/services/platform-auth/account-status.service.js +36 -0
- package/dist/services/platform-auth/account-status.service.js.map +1 -0
- package/dist/services/platform-auth/platform-auth-commands.service.d.ts +78 -0
- package/dist/services/platform-auth/platform-auth-commands.service.d.ts.map +1 -0
- package/dist/services/platform-auth/platform-auth-commands.service.js +297 -0
- package/dist/services/platform-auth/platform-auth-commands.service.js.map +1 -0
- package/dist/services/remote/remote-access-host.service.d.ts +42 -0
- package/dist/services/remote/remote-access-host.service.d.ts.map +1 -0
- package/dist/services/remote/remote-access-host.service.js +128 -0
- package/dist/services/remote/remote-access-host.service.js.map +1 -0
- package/dist/services/remote/remote-service-control.service.d.ts +34 -0
- package/dist/services/remote/remote-service-control.service.d.ts.map +1 -0
- package/dist/services/remote/remote-service-control.service.js +247 -0
- package/dist/services/remote/remote-service-control.service.js.map +1 -0
- package/dist/services/restart/restart-coordinator.service.d.ts +31 -0
- package/dist/services/restart/restart-coordinator.service.d.ts.map +1 -0
- package/dist/services/restart/restart-coordinator.service.js +53 -0
- package/dist/services/restart/restart-coordinator.service.js.map +1 -0
- package/dist/services/runtime/managed-service-supervisor.service.d.ts +85 -0
- package/dist/services/runtime/managed-service-supervisor.service.d.ts.map +1 -0
- package/dist/services/runtime/managed-service-supervisor.service.js +271 -0
- package/dist/services/runtime/managed-service-supervisor.service.js.map +1 -0
- package/dist/services/runtime/nextclaw-distribution.service.d.ts +11 -0
- package/dist/services/runtime/nextclaw-distribution.service.d.ts.map +1 -0
- package/dist/services/runtime/nextclaw-distribution.service.js +15 -0
- package/dist/services/runtime/nextclaw-distribution.service.js.map +1 -0
- package/dist/services/runtime/npm-runtime-bundle-manifest.service.d.ts +10 -0
- package/dist/services/runtime/npm-runtime-bundle-manifest.service.d.ts.map +1 -0
- package/dist/services/runtime/npm-runtime-bundle-manifest.service.js +41 -0
- package/dist/services/runtime/npm-runtime-bundle-manifest.service.js.map +1 -0
- package/dist/services/runtime/npm-runtime-bundle.service.d.ts +48 -0
- package/dist/services/runtime/npm-runtime-bundle.service.d.ts.map +1 -0
- package/dist/services/runtime/npm-runtime-bundle.service.js +152 -0
- package/dist/services/runtime/npm-runtime-bundle.service.js.map +1 -0
- package/dist/services/runtime/npm-runtime-update-command.service.d.ts +16 -0
- package/dist/services/runtime/npm-runtime-update-command.service.d.ts.map +1 -0
- package/dist/services/runtime/npm-runtime-update-command.service.js +120 -0
- package/dist/services/runtime/npm-runtime-update-command.service.js.map +1 -0
- package/dist/services/runtime/npm-runtime-update-host.service.d.ts +41 -0
- package/dist/services/runtime/npm-runtime-update-host.service.d.ts.map +1 -0
- package/dist/services/runtime/npm-runtime-update-host.service.js +189 -0
- package/dist/services/runtime/npm-runtime-update-host.service.js.map +1 -0
- package/dist/services/runtime/npm-runtime-update-source.service.d.ts +22 -0
- package/dist/services/runtime/npm-runtime-update-source.service.d.ts.map +1 -0
- package/dist/services/runtime/npm-runtime-update-source.service.js +61 -0
- package/dist/services/runtime/npm-runtime-update-source.service.js.map +1 -0
- package/dist/services/runtime/npm-runtime-update.service.d.ts +55 -0
- package/dist/services/runtime/npm-runtime-update.service.d.ts.map +1 -0
- package/dist/services/runtime/npm-runtime-update.service.js +185 -0
- package/dist/services/runtime/npm-runtime-update.service.js.map +1 -0
- package/dist/services/runtime/runtime-config-init.service.d.ts +5 -0
- package/dist/services/runtime/runtime-config-init.service.d.ts.map +1 -0
- package/dist/services/runtime/runtime-config-init.service.js +12 -0
- package/dist/services/runtime/runtime-config-init.service.js.map +1 -0
- package/dist/services/runtime/service-managed-startup.service.d.ts +95 -0
- package/dist/services/runtime/service-managed-startup.service.d.ts.map +1 -0
- package/dist/services/runtime/service-managed-startup.service.js +341 -0
- package/dist/services/runtime/service-managed-startup.service.js.map +1 -0
- package/dist/services/ui/companion-runtime.service.d.ts +36 -0
- package/dist/services/ui/companion-runtime.service.d.ts.map +1 -0
- package/dist/services/ui/companion-runtime.service.js +180 -0
- package/dist/services/ui/companion-runtime.service.js.map +1 -0
- package/dist/services/ui/local-ui-discovery.service.d.ts +20 -0
- package/dist/services/ui/local-ui-discovery.service.d.ts.map +1 -0
- package/dist/services/ui/local-ui-discovery.service.js +43 -0
- package/dist/services/ui/local-ui-discovery.service.js.map +1 -0
- package/dist/services/ui/runtime-control-host.service.d.ts +29 -0
- package/dist/services/ui/runtime-control-host.service.d.ts.map +1 -0
- package/dist/services/ui/runtime-control-host.service.js +91 -0
- package/dist/services/ui/runtime-control-host.service.js.map +1 -0
- package/dist/services/ui/service-remote-access.service.d.ts +26 -0
- package/dist/services/ui/service-remote-access.service.d.ts.map +1 -0
- package/dist/services/ui/service-remote-access.service.js +40 -0
- package/dist/services/ui/service-remote-access.service.js.map +1 -0
- package/dist/services/ui/ui-bridge-api.service.d.ts +17 -0
- package/dist/services/ui/ui-bridge-api.service.d.ts.map +1 -0
- package/dist/services/ui/ui-bridge-api.service.js +45 -0
- package/dist/services/ui/ui-bridge-api.service.js.map +1 -0
- package/dist/services/usage/llm-usage-command.service.d.ts +21 -0
- package/dist/services/usage/llm-usage-command.service.d.ts.map +1 -0
- package/dist/services/usage/llm-usage-command.service.js +152 -0
- package/dist/services/usage/llm-usage-command.service.js.map +1 -0
- package/dist/stores/companion-runtime.store.d.ts +16 -0
- package/dist/stores/companion-runtime.store.d.ts.map +1 -0
- package/dist/stores/companion-runtime.store.js +29 -0
- package/dist/stores/companion-runtime.store.js.map +1 -0
- package/dist/stores/local-ui-runtime.store.d.ts +26 -0
- package/dist/stores/local-ui-runtime.store.d.ts.map +1 -0
- package/dist/stores/local-ui-runtime.store.js +56 -0
- package/dist/stores/local-ui-runtime.store.js.map +1 -0
- package/dist/stores/managed-service-state.store.d.ts +46 -0
- package/dist/stores/managed-service-state.store.d.ts.map +1 -0
- package/dist/stores/managed-service-state.store.js +40 -0
- package/dist/stores/managed-service-state.store.js.map +1 -0
- package/dist/stores/marketplace-install-state.store.d.ts +39 -0
- package/dist/stores/marketplace-install-state.store.d.ts.map +1 -0
- package/dist/stores/marketplace-install-state.store.js +58 -0
- package/dist/stores/marketplace-install-state.store.js.map +1 -0
- package/dist/stores/npm-runtime-bundle-layout.store.d.ts +24 -0
- package/dist/stores/npm-runtime-bundle-layout.store.d.ts.map +1 -0
- package/dist/stores/npm-runtime-bundle-layout.store.js +39 -0
- package/dist/stores/npm-runtime-bundle-layout.store.js.map +1 -0
- package/dist/stores/npm-runtime-update-state.store.d.ts +18 -0
- package/dist/stores/npm-runtime-update-state.store.d.ts.map +1 -0
- package/dist/stores/npm-runtime-update-state.store.js +94 -0
- package/dist/stores/npm-runtime-update-state.store.js.map +1 -0
- package/dist/stores/pending-restart.store.d.ts +22 -0
- package/dist/stores/pending-restart.store.d.ts.map +1 -0
- package/dist/stores/pending-restart.store.js +37 -0
- package/dist/stores/pending-restart.store.js.map +1 -0
- package/dist/types/cli.types.d.ts +304 -0
- package/dist/types/cli.types.d.ts.map +1 -0
- package/dist/types/distribution.types.d.ts +11 -0
- package/dist/types/distribution.types.d.ts.map +1 -0
- package/dist/types/host-autostart.types.d.ts +65 -0
- package/dist/types/host-autostart.types.d.ts.map +1 -0
- package/dist/types/npm-runtime-bundle.types.d.ts +50 -0
- package/dist/types/npm-runtime-bundle.types.d.ts.map +1 -0
- package/dist/utils/agent-runtime.utils.d.ts +15 -0
- package/dist/utils/agent-runtime.utils.d.ts.map +1 -0
- package/dist/utils/agent-runtime.utils.js +40 -0
- package/dist/utils/agent-runtime.utils.js.map +1 -0
- package/dist/utils/channel-config-view.utils.d.ts +7 -0
- package/dist/utils/channel-config-view.utils.d.ts.map +1 -0
- package/dist/utils/channel-config-view.utils.js +9 -0
- package/dist/utils/channel-config-view.utils.js.map +1 -0
- package/dist/utils/cli-agent-runner.utils.d.ts +14 -0
- package/dist/utils/cli-agent-runner.utils.d.ts.map +1 -0
- package/dist/utils/cli-agent-runner.utils.js +94 -0
- package/dist/utils/cli-agent-runner.utils.js.map +1 -0
- package/dist/utils/cli.utils.d.ts +32 -0
- package/dist/utils/cli.utils.d.ts.map +1 -0
- package/dist/utils/cli.utils.js +254 -0
- package/dist/utils/cli.utils.js.map +1 -0
- package/dist/utils/config-path.utils.d.ts +16 -0
- package/dist/utils/config-path.utils.d.ts.map +1 -0
- package/dist/utils/config-path.utils.js +169 -0
- package/dist/utils/config-path.utils.js.map +1 -0
- package/dist/utils/cron/cron-job.utils.d.ts +28 -0
- package/dist/utils/cron/cron-job.utils.d.ts.map +1 -0
- package/dist/utils/cron/cron-job.utils.js +17 -0
- package/dist/utils/cron/cron-job.utils.js.map +1 -0
- package/dist/utils/diagnostics/diagnostics-render.utils.d.ts +24 -0
- package/dist/utils/diagnostics/diagnostics-render.utils.d.ts.map +1 -0
- package/dist/utils/diagnostics/diagnostics-render.utils.js +74 -0
- package/dist/utils/diagnostics/diagnostics-render.utils.js.map +1 -0
- package/dist/utils/gateway-cron-job-handler.utils.d.ts +18 -0
- package/dist/utils/gateway-cron-job-handler.utils.d.ts.map +1 -0
- package/dist/utils/gateway-cron-job-handler.utils.js +56 -0
- package/dist/utils/gateway-cron-job-handler.utils.js.map +1 -0
- package/dist/utils/gateway-runtime-lifecycle.utils.d.ts +10 -0
- package/dist/utils/gateway-runtime-lifecycle.utils.d.ts.map +1 -0
- package/dist/utils/gateway-runtime-lifecycle.utils.js +12 -0
- package/dist/utils/gateway-runtime-lifecycle.utils.js.map +1 -0
- package/dist/utils/marketplace/cli-subcommand-launch.utils.d.ts +17 -0
- package/dist/utils/marketplace/cli-subcommand-launch.utils.d.ts.map +1 -0
- package/dist/utils/marketplace/cli-subcommand-launch.utils.js +48 -0
- package/dist/utils/marketplace/cli-subcommand-launch.utils.js.map +1 -0
- package/dist/utils/marketplace/marketplace-client.utils.d.ts +46 -0
- package/dist/utils/marketplace/marketplace-client.utils.d.ts.map +1 -0
- package/dist/utils/marketplace/marketplace-client.utils.js +137 -0
- package/dist/utils/marketplace/marketplace-client.utils.js.map +1 -0
- package/dist/utils/marketplace/marketplace-command-options.utils.d.ts +26 -0
- package/dist/utils/marketplace/marketplace-command-options.utils.d.ts.map +1 -0
- package/dist/utils/marketplace/marketplace-command-options.utils.js +33 -0
- package/dist/utils/marketplace/marketplace-command-options.utils.js.map +1 -0
- package/dist/utils/marketplace/marketplace-identity.utils.d.ts +15 -0
- package/dist/utils/marketplace/marketplace-identity.utils.d.ts.map +1 -0
- package/dist/utils/marketplace/marketplace-identity.utils.js +79 -0
- package/dist/utils/marketplace/marketplace-identity.utils.js.map +1 -0
- package/dist/utils/marketplace/marketplace-metadata.utils.d.ts +21 -0
- package/dist/utils/marketplace/marketplace-metadata.utils.d.ts.map +1 -0
- package/dist/utils/marketplace/marketplace-metadata.utils.js +74 -0
- package/dist/utils/marketplace/marketplace-metadata.utils.js.map +1 -0
- package/dist/utils/marketplace/marketplace-network-retry.utils.d.ts +5 -0
- package/dist/utils/marketplace/marketplace-network-retry.utils.d.ts.map +1 -0
- package/dist/utils/marketplace/marketplace-network-retry.utils.js +34 -0
- package/dist/utils/marketplace/marketplace-network-retry.utils.js.map +1 -0
- package/dist/utils/marketplace/marketplace-skill-lifecycle.utils.d.ts +27 -0
- package/dist/utils/marketplace/marketplace-skill-lifecycle.utils.d.ts.map +1 -0
- package/dist/utils/marketplace/marketplace-skill-lifecycle.utils.js +206 -0
- package/dist/utils/marketplace/marketplace-skill-lifecycle.utils.js.map +1 -0
- package/dist/utils/marketplace/marketplace.utils.d.ts +34 -0
- package/dist/utils/marketplace/marketplace.utils.d.ts.map +1 -0
- package/dist/utils/marketplace/marketplace.utils.js +77 -0
- package/dist/utils/marketplace/marketplace.utils.js.map +1 -0
- package/dist/utils/marketplace/service-marketplace-helpers.utils.d.ts +15 -0
- package/dist/utils/marketplace/service-marketplace-helpers.utils.d.ts.map +1 -0
- package/dist/utils/marketplace/service-marketplace-helpers.utils.js +47 -0
- package/dist/utils/marketplace/service-marketplace-helpers.utils.js.map +1 -0
- package/dist/utils/package/package-manifest.utils.d.ts +5 -0
- package/dist/utils/package/package-manifest.utils.d.ts.map +1 -0
- package/dist/utils/package/package-manifest.utils.js +40 -0
- package/dist/utils/package/package-manifest.utils.js.map +1 -0
- package/dist/utils/panel-app-client-sdk/panel-app-client-sdk-script.utils.d.ts +5 -0
- package/dist/utils/panel-app-client-sdk/panel-app-client-sdk-script.utils.d.ts.map +1 -0
- package/dist/utils/panel-app-client-sdk/panel-app-client-sdk-script.utils.js +37 -0
- package/dist/utils/panel-app-client-sdk/panel-app-client-sdk-script.utils.js.map +1 -0
- package/dist/utils/platform-auth/payload.utils.d.ts +30 -0
- package/dist/utils/platform-auth/payload.utils.d.ts.map +1 -0
- package/dist/utils/platform-auth/payload.utils.js +89 -0
- package/dist/utils/platform-auth/payload.utils.js.map +1 -0
- package/dist/utils/remote/platform-api-base.utils.d.ts +15 -0
- package/dist/utils/remote/platform-api-base.utils.d.ts.map +1 -0
- package/dist/utils/remote/platform-api-base.utils.js +41 -0
- package/dist/utils/remote/platform-api-base.utils.js.map +1 -0
- package/dist/utils/remote/remote-runtime-support.utils.d.ts +16 -0
- package/dist/utils/remote/remote-runtime-support.utils.d.ts.map +1 -0
- package/dist/utils/remote/remote-runtime-support.utils.js +82 -0
- package/dist/utils/remote/remote-runtime-support.utils.js.map +1 -0
- package/dist/utils/restart-sentinel.utils.d.ts +37 -0
- package/dist/utils/restart-sentinel.utils.d.ts.map +1 -0
- package/dist/utils/restart-sentinel.utils.js +76 -0
- package/dist/utils/restart-sentinel.utils.js.map +1 -0
- package/dist/utils/runtime/managed-service-routing.utils.d.ts +31 -0
- package/dist/utils/runtime/managed-service-routing.utils.d.ts.map +1 -0
- package/dist/utils/runtime/managed-service-routing.utils.js +64 -0
- package/dist/utils/runtime/managed-service-routing.utils.js.map +1 -0
- package/dist/utils/runtime/service-remote-runtime.utils.d.ts +58 -0
- package/dist/utils/runtime/service-remote-runtime.utils.d.ts.map +1 -0
- package/dist/utils/runtime/service-remote-runtime.utils.js +184 -0
- package/dist/utils/runtime/service-remote-runtime.utils.js.map +1 -0
- package/dist/utils/runtime-helpers.utils.d.ts +15 -0
- package/dist/utils/runtime-helpers.utils.d.ts.map +1 -0
- package/dist/utils/runtime-helpers.utils.js +28 -0
- package/dist/utils/runtime-helpers.utils.js.map +1 -0
- package/dist/utils/service-port-probe.utils.d.ts +42 -0
- package/dist/utils/service-port-probe.utils.d.ts.map +1 -0
- package/dist/utils/service-port-probe.utils.js +166 -0
- package/dist/utils/service-port-probe.utils.js.map +1 -0
- package/dist/utils/startup-trace.utils.d.ts +8 -0
- package/dist/utils/startup-trace.utils.d.ts.map +1 -0
- package/dist/utils/startup-trace.utils.js +39 -0
- package/dist/utils/startup-trace.utils.js.map +1 -0
- package/dist/utils/top-level-nextclaw-command-env.utils.d.ts +5 -0
- package/dist/utils/top-level-nextclaw-command-env.utils.d.ts.map +1 -0
- package/dist/utils/top-level-nextclaw-command-env.utils.js +12 -0
- package/dist/utils/top-level-nextclaw-command-env.utils.js.map +1 -0
- package/package.json +26 -26
- package/dist/cli/commands/agent/agent-runtime.utils.d.ts +0 -15
- package/dist/cli/commands/agent/agent-runtime.utils.d.ts.map +0 -1
- package/dist/cli/commands/agent/agent-runtime.utils.js +0 -43
- package/dist/cli/commands/agent/agent-runtime.utils.js.map +0 -1
- package/dist/cli/commands/agent/cli-agent-runner.utils.d.ts +0 -14
- package/dist/cli/commands/agent/cli-agent-runner.utils.d.ts.map +0 -1
- package/dist/cli/commands/agent/cli-agent-runner.utils.js +0 -94
- package/dist/cli/commands/agent/cli-agent-runner.utils.js.map +0 -1
- package/dist/cli/commands/agent/index.d.ts +0 -3
- package/dist/cli/commands/agent/index.js +0 -3
- package/dist/cli/commands/agent/services/agent-commands.service.d.ts +0 -18
- package/dist/cli/commands/agent/services/agent-commands.service.d.ts.map +0 -1
- package/dist/cli/commands/agent/services/agent-commands.service.js +0 -113
- package/dist/cli/commands/agent/services/agent-commands.service.js.map +0 -1
- package/dist/cli/commands/config/index.d.ts +0 -2
- package/dist/cli/commands/config/index.js +0 -2
- package/dist/cli/commands/config/services/config-commands.service.d.ts +0 -17
- package/dist/cli/commands/config/services/config-commands.service.d.ts.map +0 -1
- package/dist/cli/commands/config/services/config-commands.service.js +0 -117
- package/dist/cli/commands/config/services/config-commands.service.js.map +0 -1
- package/dist/cli/commands/cron/index.d.ts +0 -2
- package/dist/cli/commands/cron/index.js +0 -2
- package/dist/cli/commands/cron/services/cron-commands.service.d.ts +0 -23
- package/dist/cli/commands/cron/services/cron-commands.service.d.ts.map +0 -1
- package/dist/cli/commands/cron/services/cron-commands.service.js +0 -109
- package/dist/cli/commands/cron/services/cron-commands.service.js.map +0 -1
- package/dist/cli/commands/cron/services/cron-local.service.d.ts +0 -26
- package/dist/cli/commands/cron/services/cron-local.service.d.ts.map +0 -1
- package/dist/cli/commands/cron/services/cron-local.service.js +0 -89
- package/dist/cli/commands/cron/services/cron-local.service.js.map +0 -1
- package/dist/cli/commands/cron/utils/cron-job.utils.d.ts +0 -28
- package/dist/cli/commands/cron/utils/cron-job.utils.d.ts.map +0 -1
- package/dist/cli/commands/cron/utils/cron-job.utils.js +0 -17
- package/dist/cli/commands/cron/utils/cron-job.utils.js.map +0 -1
- package/dist/cli/commands/diagnostics/index.d.ts +0 -2
- package/dist/cli/commands/diagnostics/index.js +0 -2
- package/dist/cli/commands/diagnostics/services/diagnostics-commands.service.d.ts +0 -25
- package/dist/cli/commands/diagnostics/services/diagnostics-commands.service.d.ts.map +0 -1
- package/dist/cli/commands/diagnostics/services/diagnostics-commands.service.js +0 -345
- package/dist/cli/commands/diagnostics/services/diagnostics-commands.service.js.map +0 -1
- package/dist/cli/commands/diagnostics/utils/diagnostics-render.utils.d.ts +0 -24
- package/dist/cli/commands/diagnostics/utils/diagnostics-render.utils.d.ts.map +0 -1
- package/dist/cli/commands/diagnostics/utils/diagnostics-render.utils.js +0 -74
- package/dist/cli/commands/diagnostics/utils/diagnostics-render.utils.js.map +0 -1
- package/dist/cli/commands/gateway/index.d.ts +0 -15
- package/dist/cli/commands/gateway/index.d.ts.map +0 -1
- package/dist/cli/commands/gateway/index.js +0 -17
- package/dist/cli/commands/gateway/index.js.map +0 -1
- package/dist/cli/commands/logs/index.d.ts +0 -13
- package/dist/cli/commands/logs/index.d.ts.map +0 -1
- package/dist/cli/commands/logs/index.js +0 -31
- package/dist/cli/commands/logs/index.js.map +0 -1
- package/dist/cli/commands/mcp/index.d.ts +0 -15
- package/dist/cli/commands/mcp/index.d.ts.map +0 -1
- package/dist/cli/commands/mcp/index.js +0 -195
- package/dist/cli/commands/mcp/index.js.map +0 -1
- package/dist/cli/commands/restart/index.d.ts +0 -21
- package/dist/cli/commands/restart/index.d.ts.map +0 -1
- package/dist/cli/commands/restart/index.js +0 -90
- package/dist/cli/commands/restart/index.js.map +0 -1
- package/dist/cli/commands/secrets/index.d.ts +0 -23
- package/dist/cli/commands/secrets/index.d.ts.map +0 -1
- package/dist/cli/commands/secrets/index.js +0 -282
- package/dist/cli/commands/secrets/index.js.map +0 -1
- package/dist/cli/commands/serve/index.d.ts +0 -15
- package/dist/cli/commands/serve/index.d.ts.map +0 -1
- package/dist/cli/commands/serve/index.js +0 -21
- package/dist/cli/commands/serve/index.js.map +0 -1
- package/dist/cli/commands/skills/index.d.ts +0 -28
- package/dist/cli/commands/skills/index.d.ts.map +0 -1
- package/dist/cli/commands/skills/index.js +0 -170
- package/dist/cli/commands/skills/index.js.map +0 -1
- package/dist/cli/commands/skills/marketplace-client.d.ts +0 -46
- package/dist/cli/commands/skills/marketplace-client.d.ts.map +0 -1
- package/dist/cli/commands/skills/marketplace-client.js +0 -137
- package/dist/cli/commands/skills/marketplace-client.js.map +0 -1
- package/dist/cli/commands/skills/marketplace-command-options.utils.d.ts +0 -26
- package/dist/cli/commands/skills/marketplace-command-options.utils.d.ts.map +0 -1
- package/dist/cli/commands/skills/marketplace-command-options.utils.js +0 -33
- package/dist/cli/commands/skills/marketplace-command-options.utils.js.map +0 -1
- package/dist/cli/commands/skills/marketplace-identity.utils.d.ts +0 -15
- package/dist/cli/commands/skills/marketplace-identity.utils.d.ts.map +0 -1
- package/dist/cli/commands/skills/marketplace-identity.utils.js +0 -79
- package/dist/cli/commands/skills/marketplace-identity.utils.js.map +0 -1
- package/dist/cli/commands/skills/marketplace-network-retry.d.ts +0 -5
- package/dist/cli/commands/skills/marketplace-network-retry.d.ts.map +0 -1
- package/dist/cli/commands/skills/marketplace-network-retry.js +0 -34
- package/dist/cli/commands/skills/marketplace-network-retry.js.map +0 -1
- package/dist/cli/commands/skills/marketplace.metadata.d.ts +0 -21
- package/dist/cli/commands/skills/marketplace.metadata.d.ts.map +0 -1
- package/dist/cli/commands/skills/marketplace.metadata.js +0 -74
- package/dist/cli/commands/skills/marketplace.metadata.js.map +0 -1
- package/dist/cli/commands/skills/marketplace.utils.d.ts +0 -34
- package/dist/cli/commands/skills/marketplace.utils.d.ts.map +0 -1
- package/dist/cli/commands/skills/marketplace.utils.js +0 -77
- package/dist/cli/commands/skills/marketplace.utils.js.map +0 -1
- package/dist/cli/commands/skills/skills-query.service.d.ts +0 -110
- package/dist/cli/commands/skills/skills-query.service.d.ts.map +0 -1
- package/dist/cli/commands/skills/skills-query.service.js +0 -132
- package/dist/cli/commands/skills/skills-query.service.js.map +0 -1
- package/dist/cli/commands/skills/stores/marketplace-install-state.store.d.ts +0 -39
- package/dist/cli/commands/skills/stores/marketplace-install-state.store.d.ts.map +0 -1
- package/dist/cli/commands/skills/stores/marketplace-install-state.store.js +0 -58
- package/dist/cli/commands/skills/stores/marketplace-install-state.store.js.map +0 -1
- package/dist/cli/commands/skills/utils/marketplace-skill-lifecycle.utils.d.ts +0 -27
- package/dist/cli/commands/skills/utils/marketplace-skill-lifecycle.utils.d.ts.map +0 -1
- package/dist/cli/commands/skills/utils/marketplace-skill-lifecycle.utils.js +0 -206
- package/dist/cli/commands/skills/utils/marketplace-skill-lifecycle.utils.js.map +0 -1
- package/dist/cli/commands/start/index.d.ts +0 -19
- package/dist/cli/commands/start/index.d.ts.map +0 -1
- package/dist/cli/commands/start/index.js +0 -27
- package/dist/cli/commands/start/index.js.map +0 -1
- package/dist/cli/commands/stop/index.d.ts +0 -13
- package/dist/cli/commands/stop/index.d.ts.map +0 -1
- package/dist/cli/commands/stop/index.js +0 -13
- package/dist/cli/commands/stop/index.js.map +0 -1
- package/dist/cli/commands/ui/index.d.ts +0 -15
- package/dist/cli/commands/ui/index.d.ts.map +0 -1
- package/dist/cli/commands/ui/index.js +0 -19
- package/dist/cli/commands/ui/index.js.map +0 -1
- package/dist/cli/commands/usage/index.d.ts +0 -2
- package/dist/cli/commands/usage/index.js +0 -2
- package/dist/cli/commands/usage/services/llm-usage-command.service.d.ts +0 -21
- package/dist/cli/commands/usage/services/llm-usage-command.service.d.ts.map +0 -1
- package/dist/cli/commands/usage/services/llm-usage-command.service.js +0 -152
- package/dist/cli/commands/usage/services/llm-usage-command.service.js.map +0 -1
- package/dist/commands/channel/channel-config-view.utils.d.ts +0 -7
- package/dist/commands/channel/channel-config-view.utils.d.ts.map +0 -1
- package/dist/commands/channel/channel-config-view.utils.js +0 -9
- package/dist/commands/channel/channel-config-view.utils.js.map +0 -1
- package/dist/commands/channel/channel-list-view.service.d.ts +0 -29
- package/dist/commands/channel/channel-list-view.service.d.ts.map +0 -1
- package/dist/commands/channel/channel-list-view.service.js +0 -53
- package/dist/commands/channel/channel-list-view.service.js.map +0 -1
- package/dist/commands/channel/index.d.ts +0 -21
- package/dist/commands/channel/index.d.ts.map +0 -1
- package/dist/commands/channel/index.js +0 -115
- package/dist/commands/channel/index.js.map +0 -1
- package/dist/commands/platform-auth/index.d.ts +0 -2
- package/dist/commands/platform-auth/index.js +0 -2
- package/dist/commands/platform-auth/services/account-status.service.d.ts +0 -19
- package/dist/commands/platform-auth/services/account-status.service.d.ts.map +0 -1
- package/dist/commands/platform-auth/services/account-status.service.js +0 -36
- package/dist/commands/platform-auth/services/account-status.service.js.map +0 -1
- package/dist/commands/platform-auth/services/platform-auth-commands.service.d.ts +0 -78
- package/dist/commands/platform-auth/services/platform-auth-commands.service.d.ts.map +0 -1
- package/dist/commands/platform-auth/services/platform-auth-commands.service.js +0 -297
- package/dist/commands/platform-auth/services/platform-auth-commands.service.js.map +0 -1
- package/dist/commands/platform-auth/utils/payload.utils.d.ts +0 -29
- package/dist/commands/platform-auth/utils/payload.utils.d.ts.map +0 -1
- package/dist/commands/platform-auth/utils/payload.utils.js +0 -89
- package/dist/commands/platform-auth/utils/payload.utils.js.map +0 -1
- package/dist/commands/remote/index.d.ts +0 -48
- package/dist/commands/remote/index.d.ts.map +0 -1
- package/dist/commands/remote/index.js +0 -176
- package/dist/commands/remote/index.js.map +0 -1
- package/dist/commands/remote/services/remote-access-host.service.d.ts +0 -42
- package/dist/commands/remote/services/remote-access-host.service.d.ts.map +0 -1
- package/dist/commands/remote/services/remote-access-host.service.js +0 -128
- package/dist/commands/remote/services/remote-access-host.service.js.map +0 -1
- package/dist/commands/remote/services/remote-service-control.service.d.ts +0 -34
- package/dist/commands/remote/services/remote-service-control.service.d.ts.map +0 -1
- package/dist/commands/remote/services/remote-service-control.service.js +0 -247
- package/dist/commands/remote/services/remote-service-control.service.js.map +0 -1
- package/dist/commands/remote/utils/platform-api-base.utils.d.ts +0 -15
- package/dist/commands/remote/utils/platform-api-base.utils.d.ts.map +0 -1
- package/dist/commands/remote/utils/platform-api-base.utils.js +0 -41
- package/dist/commands/remote/utils/platform-api-base.utils.js.map +0 -1
- package/dist/commands/remote/utils/remote-runtime-support.utils.d.ts +0 -16
- package/dist/commands/remote/utils/remote-runtime-support.utils.d.ts.map +0 -1
- package/dist/commands/remote/utils/remote-runtime-support.utils.js +0 -82
- package/dist/commands/remote/utils/remote-runtime-support.utils.js.map +0 -1
- package/dist/commands/service/index.d.ts +0 -17
- package/dist/commands/service/index.d.ts.map +0 -1
- package/dist/commands/service/index.js +0 -33
- package/dist/commands/service/index.js.map +0 -1
- package/dist/commands/service/services/autostart/host-autostart-command.service.d.ts +0 -30
- package/dist/commands/service/services/autostart/host-autostart-command.service.d.ts.map +0 -1
- package/dist/commands/service/services/autostart/host-autostart-command.service.js +0 -160
- package/dist/commands/service/services/autostart/host-autostart-command.service.js.map +0 -1
- package/dist/commands/service/services/autostart/host-autostart-runtime.service.d.ts +0 -24
- package/dist/commands/service/services/autostart/host-autostart-runtime.service.d.ts.map +0 -1
- package/dist/commands/service/services/autostart/host-autostart-runtime.service.js +0 -55
- package/dist/commands/service/services/autostart/host-autostart-runtime.service.js.map +0 -1
- package/dist/commands/service/services/autostart/host-autostart.service.d.ts +0 -42
- package/dist/commands/service/services/autostart/host-autostart.service.d.ts.map +0 -1
- package/dist/commands/service/services/autostart/host-autostart.service.js +0 -50
- package/dist/commands/service/services/autostart/host-autostart.service.js.map +0 -1
- package/dist/commands/service/services/autostart/linux-systemd-autostart.service.d.ts +0 -49
- package/dist/commands/service/services/autostart/linux-systemd-autostart.service.d.ts.map +0 -1
- package/dist/commands/service/services/autostart/linux-systemd-autostart.service.js +0 -435
- package/dist/commands/service/services/autostart/linux-systemd-autostart.service.js.map +0 -1
- package/dist/commands/service/services/autostart/macos-launch-agent-autostart.service.d.ts +0 -55
- package/dist/commands/service/services/autostart/macos-launch-agent-autostart.service.d.ts.map +0 -1
- package/dist/commands/service/services/autostart/macos-launch-agent-autostart.service.js +0 -407
- package/dist/commands/service/services/autostart/macos-launch-agent-autostart.service.js.map +0 -1
- package/dist/commands/service/services/autostart/windows-task-autostart.service.d.ts +0 -55
- package/dist/commands/service/services/autostart/windows-task-autostart.service.d.ts.map +0 -1
- package/dist/commands/service/services/autostart/windows-task-autostart.service.js +0 -406
- package/dist/commands/service/services/autostart/windows-task-autostart.service.js.map +0 -1
- package/dist/commands/service/types/autostart/host-autostart.types.d.ts +0 -65
- package/dist/commands/service/types/autostart/host-autostart.types.d.ts.map +0 -1
- package/dist/launcher/npm-runtime-bundle-layout.store.d.ts +0 -24
- package/dist/launcher/npm-runtime-bundle-layout.store.d.ts.map +0 -1
- package/dist/launcher/npm-runtime-bundle-layout.store.js +0 -39
- package/dist/launcher/npm-runtime-bundle-layout.store.js.map +0 -1
- package/dist/launcher/npm-runtime-bundle-manifest.service.d.ts +0 -10
- package/dist/launcher/npm-runtime-bundle-manifest.service.d.ts.map +0 -1
- package/dist/launcher/npm-runtime-bundle-manifest.service.js +0 -41
- package/dist/launcher/npm-runtime-bundle-manifest.service.js.map +0 -1
- package/dist/launcher/npm-runtime-bundle.service.d.ts +0 -48
- package/dist/launcher/npm-runtime-bundle.service.d.ts.map +0 -1
- package/dist/launcher/npm-runtime-bundle.service.js +0 -152
- package/dist/launcher/npm-runtime-bundle.service.js.map +0 -1
- package/dist/launcher/npm-runtime-bundle.types.d.ts +0 -50
- package/dist/launcher/npm-runtime-bundle.types.d.ts.map +0 -1
- package/dist/launcher/npm-runtime-update-command.service.d.ts +0 -16
- package/dist/launcher/npm-runtime-update-command.service.d.ts.map +0 -1
- package/dist/launcher/npm-runtime-update-command.service.js +0 -120
- package/dist/launcher/npm-runtime-update-command.service.js.map +0 -1
- package/dist/launcher/npm-runtime-update-source.service.d.ts +0 -22
- package/dist/launcher/npm-runtime-update-source.service.d.ts.map +0 -1
- package/dist/launcher/npm-runtime-update-source.service.js +0 -61
- package/dist/launcher/npm-runtime-update-source.service.js.map +0 -1
- package/dist/launcher/npm-runtime-update-state.store.d.ts +0 -18
- package/dist/launcher/npm-runtime-update-state.store.d.ts.map +0 -1
- package/dist/launcher/npm-runtime-update-state.store.js +0 -94
- package/dist/launcher/npm-runtime-update-state.store.js.map +0 -1
- package/dist/launcher/npm-runtime-update.manager.d.ts +0 -43
- package/dist/launcher/npm-runtime-update.manager.d.ts.map +0 -1
- package/dist/launcher/npm-runtime-update.manager.js +0 -185
- package/dist/launcher/npm-runtime-update.manager.js.map +0 -1
- package/dist/launcher/npm-runtime-update.service.d.ts +0 -55
- package/dist/launcher/npm-runtime-update.service.d.ts.map +0 -1
- package/dist/launcher/npm-runtime-update.service.js +0 -185
- package/dist/launcher/npm-runtime-update.service.js.map +0 -1
- package/dist/service-runtime.service.d.ts +0 -88
- package/dist/service-runtime.service.d.ts.map +0 -1
- package/dist/service-runtime.service.js +0 -366
- package/dist/service-runtime.service.js.map +0 -1
- package/dist/shared/controllers/gateway.controller.d.ts +0 -54
- package/dist/shared/controllers/gateway.controller.d.ts.map +0 -1
- package/dist/shared/controllers/gateway.controller.js +0 -162
- package/dist/shared/controllers/gateway.controller.js.map +0 -1
- package/dist/shared/services/gateway/gateway-restart-wake.service.d.ts +0 -13
- package/dist/shared/services/gateway/gateway-restart-wake.service.d.ts.map +0 -1
- package/dist/shared/services/gateway/gateway-restart-wake.service.js +0 -99
- package/dist/shared/services/gateway/gateway-restart-wake.service.js.map +0 -1
- package/dist/shared/services/gateway/managers/gateway-extension.manager.d.ts +0 -29
- package/dist/shared/services/gateway/managers/gateway-extension.manager.d.ts.map +0 -1
- package/dist/shared/services/gateway/managers/gateway-extension.manager.js +0 -78
- package/dist/shared/services/gateway/managers/gateway-extension.manager.js.map +0 -1
- package/dist/shared/services/gateway/managers/gateway-remote.manager.d.ts +0 -23
- package/dist/shared/services/gateway/managers/gateway-remote.manager.d.ts.map +0 -1
- package/dist/shared/services/gateway/managers/gateway-remote.manager.js +0 -28
- package/dist/shared/services/gateway/managers/gateway-remote.manager.js.map +0 -1
- package/dist/shared/services/gateway/nextclaw-app.service.d.ts +0 -18
- package/dist/shared/services/gateway/nextclaw-app.service.d.ts.map +0 -1
- package/dist/shared/services/gateway/nextclaw-app.service.js +0 -44
- package/dist/shared/services/gateway/nextclaw-app.service.js.map +0 -1
- package/dist/shared/services/gateway/nextclaw-gateway-runtime.service.d.ts +0 -85
- package/dist/shared/services/gateway/nextclaw-gateway-runtime.service.d.ts.map +0 -1
- package/dist/shared/services/gateway/nextclaw-gateway-runtime.service.js +0 -278
- package/dist/shared/services/gateway/nextclaw-gateway-runtime.service.js.map +0 -1
- package/dist/shared/services/gateway/service-bootstrap-status.service.d.ts +0 -33
- package/dist/shared/services/gateway/service-bootstrap-status.service.d.ts.map +0 -1
- package/dist/shared/services/gateway/service-bootstrap-status.service.js +0 -144
- package/dist/shared/services/gateway/service-bootstrap-status.service.js.map +0 -1
- package/dist/shared/services/gateway/service-startup-support.service.d.ts +0 -35
- package/dist/shared/services/gateway/service-startup-support.service.d.ts.map +0 -1
- package/dist/shared/services/gateway/service-startup-support.service.js +0 -85
- package/dist/shared/services/gateway/service-startup-support.service.js.map +0 -1
- package/dist/shared/services/gateway/utils/cron-job-handler.utils.d.ts +0 -18
- package/dist/shared/services/gateway/utils/cron-job-handler.utils.d.ts.map +0 -1
- package/dist/shared/services/gateway/utils/cron-job-handler.utils.js +0 -56
- package/dist/shared/services/gateway/utils/cron-job-handler.utils.js.map +0 -1
- package/dist/shared/services/gateway/utils/gateway-runtime-lifecycle.utils.d.ts +0 -10
- package/dist/shared/services/gateway/utils/gateway-runtime-lifecycle.utils.d.ts.map +0 -1
- package/dist/shared/services/gateway/utils/gateway-runtime-lifecycle.utils.js +0 -12
- package/dist/shared/services/gateway/utils/gateway-runtime-lifecycle.utils.js.map +0 -1
- package/dist/shared/services/marketplace/service-marketplace-installer.service.d.ts +0 -29
- package/dist/shared/services/marketplace/service-marketplace-installer.service.d.ts.map +0 -1
- package/dist/shared/services/marketplace/service-marketplace-installer.service.js +0 -87
- package/dist/shared/services/marketplace/service-marketplace-installer.service.js.map +0 -1
- package/dist/shared/services/marketplace/service-mcp-marketplace-ops.d.ts +0 -40
- package/dist/shared/services/marketplace/service-mcp-marketplace-ops.d.ts.map +0 -1
- package/dist/shared/services/marketplace/service-mcp-marketplace-ops.js +0 -69
- package/dist/shared/services/marketplace/service-mcp-marketplace-ops.js.map +0 -1
- package/dist/shared/services/restart/restart-coordinator.service.d.ts +0 -31
- package/dist/shared/services/restart/restart-coordinator.service.d.ts.map +0 -1
- package/dist/shared/services/restart/restart-coordinator.service.js +0 -53
- package/dist/shared/services/restart/restart-coordinator.service.js.map +0 -1
- package/dist/shared/services/restart/runtime-restart-request.service.d.ts +0 -25
- package/dist/shared/services/restart/runtime-restart-request.service.d.ts.map +0 -1
- package/dist/shared/services/restart/runtime-restart-request.service.js +0 -44
- package/dist/shared/services/restart/runtime-restart-request.service.js.map +0 -1
- package/dist/shared/services/runtime/managed-service-supervisor.service.d.ts +0 -85
- package/dist/shared/services/runtime/managed-service-supervisor.service.d.ts.map +0 -1
- package/dist/shared/services/runtime/managed-service-supervisor.service.js +0 -271
- package/dist/shared/services/runtime/managed-service-supervisor.service.js.map +0 -1
- package/dist/shared/services/runtime/nextclaw-distribution.service.d.ts +0 -11
- package/dist/shared/services/runtime/nextclaw-distribution.service.d.ts.map +0 -1
- package/dist/shared/services/runtime/nextclaw-distribution.service.js +0 -15
- package/dist/shared/services/runtime/nextclaw-distribution.service.js.map +0 -1
- package/dist/shared/services/runtime/runtime-command.service.d.ts +0 -42
- package/dist/shared/services/runtime/runtime-command.service.d.ts.map +0 -1
- package/dist/shared/services/runtime/runtime-command.service.js +0 -195
- package/dist/shared/services/runtime/runtime-command.service.js.map +0 -1
- package/dist/shared/services/runtime/runtime-config-init.service.d.ts +0 -5
- package/dist/shared/services/runtime/runtime-config-init.service.d.ts.map +0 -1
- package/dist/shared/services/runtime/runtime-config-init.service.js +0 -12
- package/dist/shared/services/runtime/runtime-config-init.service.js.map +0 -1
- package/dist/shared/services/runtime/service-managed-startup.service.d.ts +0 -95
- package/dist/shared/services/runtime/service-managed-startup.service.d.ts.map +0 -1
- package/dist/shared/services/runtime/service-managed-startup.service.js +0 -341
- package/dist/shared/services/runtime/service-managed-startup.service.js.map +0 -1
- package/dist/shared/services/runtime/utils/managed-service-routing.utils.d.ts +0 -31
- package/dist/shared/services/runtime/utils/managed-service-routing.utils.d.ts.map +0 -1
- package/dist/shared/services/runtime/utils/managed-service-routing.utils.js +0 -64
- package/dist/shared/services/runtime/utils/managed-service-routing.utils.js.map +0 -1
- package/dist/shared/services/runtime/utils/service-remote-runtime.utils.d.ts +0 -58
- package/dist/shared/services/runtime/utils/service-remote-runtime.utils.d.ts.map +0 -1
- package/dist/shared/services/runtime/utils/service-remote-runtime.utils.js +0 -184
- package/dist/shared/services/runtime/utils/service-remote-runtime.utils.js.map +0 -1
- package/dist/shared/services/ui/companion-runtime.service.d.ts +0 -36
- package/dist/shared/services/ui/companion-runtime.service.d.ts.map +0 -1
- package/dist/shared/services/ui/companion-runtime.service.js +0 -180
- package/dist/shared/services/ui/companion-runtime.service.js.map +0 -1
- package/dist/shared/services/ui/local-ui-discovery.service.d.ts +0 -20
- package/dist/shared/services/ui/local-ui-discovery.service.d.ts.map +0 -1
- package/dist/shared/services/ui/local-ui-discovery.service.js +0 -43
- package/dist/shared/services/ui/local-ui-discovery.service.js.map +0 -1
- package/dist/shared/services/ui/npm-runtime-update-host.service.d.ts +0 -41
- package/dist/shared/services/ui/npm-runtime-update-host.service.d.ts.map +0 -1
- package/dist/shared/services/ui/npm-runtime-update-host.service.js +0 -189
- package/dist/shared/services/ui/npm-runtime-update-host.service.js.map +0 -1
- package/dist/shared/services/ui/runtime-control-host.service.d.ts +0 -29
- package/dist/shared/services/ui/runtime-control-host.service.d.ts.map +0 -1
- package/dist/shared/services/ui/runtime-control-host.service.js +0 -91
- package/dist/shared/services/ui/runtime-control-host.service.js.map +0 -1
- package/dist/shared/services/ui/service-remote-access.service.d.ts +0 -26
- package/dist/shared/services/ui/service-remote-access.service.d.ts.map +0 -1
- package/dist/shared/services/ui/service-remote-access.service.js +0 -40
- package/dist/shared/services/ui/service-remote-access.service.js.map +0 -1
- package/dist/shared/services/ui/ui-bridge-api.service.d.ts +0 -17
- package/dist/shared/services/ui/ui-bridge-api.service.d.ts.map +0 -1
- package/dist/shared/services/ui/ui-bridge-api.service.js +0 -45
- package/dist/shared/services/ui/ui-bridge-api.service.js.map +0 -1
- package/dist/shared/services/workspace/workspace-manager.service.d.ts +0 -14
- package/dist/shared/services/workspace/workspace-manager.service.d.ts.map +0 -1
- package/dist/shared/services/workspace/workspace-manager.service.js +0 -86
- package/dist/shared/services/workspace/workspace-manager.service.js.map +0 -1
- package/dist/shared/stores/companion-runtime.store.d.ts +0 -16
- package/dist/shared/stores/companion-runtime.store.d.ts.map +0 -1
- package/dist/shared/stores/companion-runtime.store.js +0 -29
- package/dist/shared/stores/companion-runtime.store.js.map +0 -1
- package/dist/shared/stores/local-ui-runtime.store.d.ts +0 -26
- package/dist/shared/stores/local-ui-runtime.store.d.ts.map +0 -1
- package/dist/shared/stores/local-ui-runtime.store.js +0 -56
- package/dist/shared/stores/local-ui-runtime.store.js.map +0 -1
- package/dist/shared/stores/managed-service-state.store.d.ts +0 -46
- package/dist/shared/stores/managed-service-state.store.d.ts.map +0 -1
- package/dist/shared/stores/managed-service-state.store.js +0 -40
- package/dist/shared/stores/managed-service-state.store.js.map +0 -1
- package/dist/shared/stores/pending-restart.store.d.ts +0 -22
- package/dist/shared/stores/pending-restart.store.d.ts.map +0 -1
- package/dist/shared/stores/pending-restart.store.js +0 -37
- package/dist/shared/stores/pending-restart.store.js.map +0 -1
- package/dist/shared/types/cli.types.d.ts +0 -304
- package/dist/shared/types/cli.types.d.ts.map +0 -1
- package/dist/shared/types/distribution.types.d.ts +0 -11
- package/dist/shared/types/distribution.types.d.ts.map +0 -1
- package/dist/shared/utils/cli.utils.d.ts +0 -32
- package/dist/shared/utils/cli.utils.d.ts.map +0 -1
- package/dist/shared/utils/cli.utils.js +0 -254
- package/dist/shared/utils/cli.utils.js.map +0 -1
- package/dist/shared/utils/config-path.d.ts +0 -16
- package/dist/shared/utils/config-path.d.ts.map +0 -1
- package/dist/shared/utils/config-path.js +0 -169
- package/dist/shared/utils/config-path.js.map +0 -1
- package/dist/shared/utils/marketplace/cli-subcommand-launch.utils.d.ts +0 -17
- package/dist/shared/utils/marketplace/cli-subcommand-launch.utils.d.ts.map +0 -1
- package/dist/shared/utils/marketplace/cli-subcommand-launch.utils.js +0 -48
- package/dist/shared/utils/marketplace/cli-subcommand-launch.utils.js.map +0 -1
- package/dist/shared/utils/marketplace/service-marketplace-helpers.utils.d.ts +0 -15
- package/dist/shared/utils/marketplace/service-marketplace-helpers.utils.d.ts.map +0 -1
- package/dist/shared/utils/marketplace/service-marketplace-helpers.utils.js +0 -47
- package/dist/shared/utils/marketplace/service-marketplace-helpers.utils.js.map +0 -1
- package/dist/shared/utils/package/package-manifest.utils.d.ts +0 -5
- package/dist/shared/utils/package/package-manifest.utils.d.ts.map +0 -1
- package/dist/shared/utils/package/package-manifest.utils.js +0 -40
- package/dist/shared/utils/package/package-manifest.utils.js.map +0 -1
- package/dist/shared/utils/panel-app-client-sdk/panel-app-client-sdk-script.utils.d.ts +0 -5
- package/dist/shared/utils/panel-app-client-sdk/panel-app-client-sdk-script.utils.d.ts.map +0 -1
- package/dist/shared/utils/panel-app-client-sdk/panel-app-client-sdk-script.utils.js +0 -37
- package/dist/shared/utils/panel-app-client-sdk/panel-app-client-sdk-script.utils.js.map +0 -1
- package/dist/shared/utils/restart/restart-sentinel.utils.d.ts +0 -37
- package/dist/shared/utils/restart/restart-sentinel.utils.d.ts.map +0 -1
- package/dist/shared/utils/restart/restart-sentinel.utils.js +0 -76
- package/dist/shared/utils/restart/restart-sentinel.utils.js.map +0 -1
- package/dist/shared/utils/runtime-helpers.d.ts +0 -15
- package/dist/shared/utils/runtime-helpers.d.ts.map +0 -1
- package/dist/shared/utils/runtime-helpers.js +0 -28
- package/dist/shared/utils/runtime-helpers.js.map +0 -1
- package/dist/shared/utils/service-port-probe.utils.d.ts +0 -42
- package/dist/shared/utils/service-port-probe.utils.d.ts.map +0 -1
- package/dist/shared/utils/service-port-probe.utils.js +0 -166
- package/dist/shared/utils/service-port-probe.utils.js.map +0 -1
- package/dist/shared/utils/startup-trace.d.ts +0 -8
- package/dist/shared/utils/startup-trace.d.ts.map +0 -1
- package/dist/shared/utils/startup-trace.js +0 -39
- package/dist/shared/utils/startup-trace.js.map +0 -1
- package/dist/shared/utils/top-level-nextclaw-command-env.utils.d.ts +0 -5
- package/dist/shared/utils/top-level-nextclaw-command-env.utils.d.ts.map +0 -1
- package/dist/shared/utils/top-level-nextclaw-command-env.utils.js +0 -12
- package/dist/shared/utils/top-level-nextclaw-command-env.utils.js.map +0 -1
- /package/dist/{shared/types → types}/cli.types.js +0 -0
- /package/dist/{shared/types → types}/distribution.types.js +0 -0
- /package/dist/{commands/service/types/autostart → types}/host-autostart.types.js +0 -0
- /package/dist/{launcher → types}/npm-runtime-bundle.types.js +0 -0
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import { getPackageVersion } from "../utils/package/package-manifest.utils.js";
|
|
2
|
+
import "../utils/cli.utils.js";
|
|
3
|
+
import { resolveEffectiveNpmRuntimeVersion } from "../services/runtime/npm-runtime-bundle.service.js";
|
|
4
|
+
//#region src/managers/runtime-update.manager.ts
|
|
5
|
+
var RuntimeUpdateManager = class {
|
|
6
|
+
launcherVersion;
|
|
7
|
+
now;
|
|
8
|
+
availableManifest = null;
|
|
9
|
+
constructor(options) {
|
|
10
|
+
this.options = options;
|
|
11
|
+
this.launcherVersion = options.launcherVersion ?? getPackageVersion();
|
|
12
|
+
this.now = options.now ?? (() => /* @__PURE__ */ new Date());
|
|
13
|
+
this.options.layout.ensureLauncherDirs();
|
|
14
|
+
this.syncStateFromCurrentPointer();
|
|
15
|
+
}
|
|
16
|
+
getSnapshot = () => this.toSnapshotFromState(this.options.stateStore.read(), { status: this.options.stateStore.read().downloadedVersion ? "downloaded" : "idle" });
|
|
17
|
+
run = async (options = {}) => {
|
|
18
|
+
if (options.apply) return this.applyDownloadedUpdate();
|
|
19
|
+
const applyAfterDownload = options.applyAfterDownload ?? true;
|
|
20
|
+
const checkedSnapshot = await this.checkForUpdate();
|
|
21
|
+
if (options.checkOnly) return checkedSnapshot;
|
|
22
|
+
if (applyAfterDownload && checkedSnapshot.status === "downloaded") return this.applyDownloadedUpdate();
|
|
23
|
+
if (checkedSnapshot.status !== "update-available") return checkedSnapshot;
|
|
24
|
+
const downloadedSnapshot = await this.downloadUpdate(options.onProgress);
|
|
25
|
+
if (!applyAfterDownload || downloadedSnapshot.status !== "downloaded") return downloadedSnapshot;
|
|
26
|
+
return this.applyDownloadedUpdate();
|
|
27
|
+
};
|
|
28
|
+
checkForUpdate = async () => {
|
|
29
|
+
const manifestUrl = this.options.resolveManifestUrl(this.options.channel);
|
|
30
|
+
if (!this.options.updateService.hasSignatureVerifier()) return this.toSnapshotFromState(this.options.stateStore.read(), {
|
|
31
|
+
status: "blocked",
|
|
32
|
+
installationKind: "npm-runtime-bundle",
|
|
33
|
+
blockReason: "signature-verification-unavailable",
|
|
34
|
+
recoveryCommand: "Set NEXTCLAW_UPDATE_BUNDLE_PUBLIC_KEY or NEXTCLAW_UPDATE_BUNDLE_PUBLIC_KEY_PATH",
|
|
35
|
+
errorMessage: "Runtime bundle updates require a configured update public key."
|
|
36
|
+
});
|
|
37
|
+
if (!manifestUrl) return this.toSnapshotFromState(this.options.stateStore.read(), {
|
|
38
|
+
status: "blocked",
|
|
39
|
+
installationKind: "npm-runtime-bundle",
|
|
40
|
+
blockReason: "unsupported-installation",
|
|
41
|
+
recoveryCommand: "Set NEXTCLAW_UPDATE_MANIFEST_URL or NEXTCLAW_UPDATE_MANIFEST_BASE_URL",
|
|
42
|
+
errorMessage: "Runtime bundle update manifest URL is not configured."
|
|
43
|
+
});
|
|
44
|
+
const checkedAt = this.now().toISOString();
|
|
45
|
+
const state = this.options.stateStore.update((current) => ({
|
|
46
|
+
...current,
|
|
47
|
+
channel: this.options.channel,
|
|
48
|
+
lastUpdateCheckAt: checkedAt
|
|
49
|
+
}));
|
|
50
|
+
const availableUpdate = await this.options.updateService.checkForUpdate(manifestUrl, state.currentVersion, state.badVersions);
|
|
51
|
+
return this.toSnapshotAfterCheck(availableUpdate, this.options.stateStore.read());
|
|
52
|
+
};
|
|
53
|
+
downloadUpdate = async (onProgress) => {
|
|
54
|
+
const manifest = this.availableManifest ?? await this.ensureAvailableManifest();
|
|
55
|
+
const downloaded = await this.options.updateService.downloadAndInstallUpdate(manifest, onProgress);
|
|
56
|
+
const state = this.options.stateStore.update((current) => ({
|
|
57
|
+
...current,
|
|
58
|
+
downloadedVersion: downloaded.downloadedVersion,
|
|
59
|
+
downloadedReleaseNotesUrl: downloaded.manifest.releaseNotesUrl
|
|
60
|
+
}));
|
|
61
|
+
await this.options.bundleService.pruneRetainedArtifacts();
|
|
62
|
+
return this.toSnapshotFromState(state, {
|
|
63
|
+
status: "downloaded",
|
|
64
|
+
availableVersion: downloaded.downloadedVersion,
|
|
65
|
+
downloadedVersion: downloaded.downloadedVersion,
|
|
66
|
+
minimumHostVersion: downloaded.manifest.minimumLauncherVersion,
|
|
67
|
+
releaseNotesUrl: downloaded.manifest.releaseNotesUrl,
|
|
68
|
+
canApplyInApp: true,
|
|
69
|
+
requiresRestart: false
|
|
70
|
+
});
|
|
71
|
+
};
|
|
72
|
+
applyDownloadedUpdate = () => {
|
|
73
|
+
const downloadedVersion = this.options.stateStore.read().downloadedVersion?.trim();
|
|
74
|
+
if (!downloadedVersion) throw new Error("No downloaded npm runtime update is ready to apply.");
|
|
75
|
+
this.options.bundleService.activateVersion(downloadedVersion);
|
|
76
|
+
this.availableManifest = null;
|
|
77
|
+
return this.toSnapshotFromState(this.options.stateStore.read(), {
|
|
78
|
+
status: "restart-required",
|
|
79
|
+
availableVersion: null,
|
|
80
|
+
downloadedVersion: null,
|
|
81
|
+
releaseNotesUrl: null,
|
|
82
|
+
canApplyInApp: false,
|
|
83
|
+
requiresRestart: true
|
|
84
|
+
});
|
|
85
|
+
};
|
|
86
|
+
ensureAvailableManifest = async () => {
|
|
87
|
+
const snapshot = await this.checkForUpdate();
|
|
88
|
+
if (!this.availableManifest) {
|
|
89
|
+
if (snapshot.downloadedVersion) throw new Error(`Version ${snapshot.downloadedVersion} has already been downloaded and is ready to apply.`);
|
|
90
|
+
throw new Error("No npm runtime update is currently available.");
|
|
91
|
+
}
|
|
92
|
+
return this.availableManifest;
|
|
93
|
+
};
|
|
94
|
+
toSnapshotAfterCheck = (availableUpdate, state) => {
|
|
95
|
+
if (state.downloadedVersion) {
|
|
96
|
+
this.availableManifest = availableUpdate?.kind === "runtime-bundle-update" ? availableUpdate.manifest : this.availableManifest;
|
|
97
|
+
return this.toSnapshotFromState(state, {
|
|
98
|
+
status: "downloaded",
|
|
99
|
+
availableVersion: availableUpdate?.kind === "runtime-bundle-update" ? availableUpdate.manifest.latestVersion : state.downloadedVersion,
|
|
100
|
+
minimumHostVersion: availableUpdate?.kind === "runtime-bundle-update" ? availableUpdate.manifest.minimumLauncherVersion : null,
|
|
101
|
+
canApplyInApp: true,
|
|
102
|
+
requiresRestart: false
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
if (!availableUpdate) {
|
|
106
|
+
this.availableManifest = null;
|
|
107
|
+
return this.toSnapshotFromState(state, {
|
|
108
|
+
status: "up-to-date",
|
|
109
|
+
availableVersion: null,
|
|
110
|
+
downloadedVersion: null,
|
|
111
|
+
releaseNotesUrl: null
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
if (availableUpdate.kind === "host-update-required") {
|
|
115
|
+
this.availableManifest = null;
|
|
116
|
+
return this.toSnapshotFromState(state, {
|
|
117
|
+
status: "blocked",
|
|
118
|
+
availableVersion: availableUpdate.manifest.latestVersion,
|
|
119
|
+
minimumHostVersion: availableUpdate.manifest.minimumLauncherVersion,
|
|
120
|
+
releaseNotesUrl: availableUpdate.manifest.releaseNotesUrl,
|
|
121
|
+
blockReason: "host-too-old",
|
|
122
|
+
recoveryCommand: "npm install -g nextclaw@latest",
|
|
123
|
+
errorMessage: `NextClaw npm launcher ${this.launcherVersion} is too old for runtime bundle ${availableUpdate.manifest.latestVersion}.`
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
if (availableUpdate.kind === "quarantined-bad-version") {
|
|
127
|
+
this.availableManifest = null;
|
|
128
|
+
return this.toSnapshotFromState(state, {
|
|
129
|
+
status: "failed",
|
|
130
|
+
availableVersion: availableUpdate.manifest.latestVersion,
|
|
131
|
+
minimumHostVersion: availableUpdate.manifest.minimumLauncherVersion,
|
|
132
|
+
releaseNotesUrl: availableUpdate.manifest.releaseNotesUrl,
|
|
133
|
+
errorMessage: `Version ${availableUpdate.manifest.latestVersion} was quarantined after a failed launch.`
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
this.availableManifest = availableUpdate.manifest;
|
|
137
|
+
return this.toSnapshotFromState(state, {
|
|
138
|
+
status: "update-available",
|
|
139
|
+
availableVersion: availableUpdate.manifest.latestVersion,
|
|
140
|
+
minimumHostVersion: availableUpdate.manifest.minimumLauncherVersion,
|
|
141
|
+
releaseNotesUrl: availableUpdate.manifest.releaseNotesUrl
|
|
142
|
+
});
|
|
143
|
+
};
|
|
144
|
+
syncStateFromCurrentPointer = () => {
|
|
145
|
+
const currentPointer = this.options.layout.readCurrentPointer();
|
|
146
|
+
const effectiveCurrentVersion = resolveEffectiveNpmRuntimeVersion({
|
|
147
|
+
launcherVersion: this.launcherVersion,
|
|
148
|
+
currentBundleVersion: currentPointer?.version ?? null
|
|
149
|
+
});
|
|
150
|
+
if (!effectiveCurrentVersion) return;
|
|
151
|
+
this.options.stateStore.update((state) => ({
|
|
152
|
+
...state,
|
|
153
|
+
currentVersion: effectiveCurrentVersion
|
|
154
|
+
}));
|
|
155
|
+
};
|
|
156
|
+
toSnapshotFromState = (state, patch) => {
|
|
157
|
+
const hasDownloadedVersion = Boolean(state.downloadedVersion);
|
|
158
|
+
const { status } = patch;
|
|
159
|
+
return {
|
|
160
|
+
installationKind: "npm-runtime-bundle",
|
|
161
|
+
channel: state.channel,
|
|
162
|
+
hostVersion: this.launcherVersion,
|
|
163
|
+
currentVersion: state.currentVersion,
|
|
164
|
+
availableVersion: null,
|
|
165
|
+
downloadedVersion: state.downloadedVersion,
|
|
166
|
+
minimumHostVersion: null,
|
|
167
|
+
releaseNotesUrl: state.downloadedReleaseNotesUrl,
|
|
168
|
+
lastCheckedAt: state.lastUpdateCheckAt,
|
|
169
|
+
progress: null,
|
|
170
|
+
canAutoDownload: state.updatePreferences.autoDownload,
|
|
171
|
+
canApplyInApp: hasDownloadedVersion,
|
|
172
|
+
requiresRestart: false,
|
|
173
|
+
blockReason: null,
|
|
174
|
+
recoveryCommand: null,
|
|
175
|
+
errorMessage: null,
|
|
176
|
+
preferences: { ...state.updatePreferences },
|
|
177
|
+
...patch,
|
|
178
|
+
status
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
//#endregion
|
|
183
|
+
export { RuntimeUpdateManager };
|
|
184
|
+
|
|
185
|
+
//# sourceMappingURL=runtime-update.manager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime-update.manager.js","names":[],"sources":["../../src/managers/runtime-update.manager.ts"],"sourcesContent":["import type { UpdateManifest, UpdateProgress, UpdateSnapshot } from \"@nextclaw/kernel\";\nimport { getPackageVersion } from \"@nextclaw-service/utils/cli.utils.js\";\nimport { resolveEffectiveNpmRuntimeVersion } from \"@nextclaw-service/services/runtime/npm-runtime-bundle.service.js\";\nimport type { NpmRuntimeBundleService } from \"@nextclaw-service/services/runtime/npm-runtime-bundle.service.js\";\nimport type { NpmRuntimeBundleLayoutStore } from \"@nextclaw-service/stores/npm-runtime-bundle-layout.store.js\";\nimport type { NpmRuntimeUpdateService, NpmRuntimeAvailableUpdate } from \"@nextclaw-service/services/runtime/npm-runtime-update.service.js\";\nimport type { NpmRuntimeUpdateStateStore } from \"@nextclaw-service/stores/npm-runtime-update-state.store.js\";\nimport type { NpmRuntimeReleaseChannel } from \"@nextclaw-service/services/runtime/npm-runtime-update-source.service.js\";\nimport type { NpmRuntimeUpdateState } from \"@nextclaw-service/types/npm-runtime-bundle.types.js\";\n\ntype RuntimeUpdateManagerOptions = {\n layout: NpmRuntimeBundleLayoutStore;\n stateStore: NpmRuntimeUpdateStateStore;\n bundleService: NpmRuntimeBundleService;\n updateService: NpmRuntimeUpdateService;\n resolveManifestUrl: (channel: NpmRuntimeReleaseChannel) => string | null;\n launcherVersion?: string;\n channel: NpmRuntimeReleaseChannel;\n now?: () => Date;\n};\n\ntype NpmRuntimeUpdateActionOptions = {\n apply?: boolean;\n applyAfterDownload?: boolean;\n checkOnly?: boolean;\n onProgress?: (progress: UpdateProgress) => void;\n};\n\nexport class RuntimeUpdateManager {\n private readonly launcherVersion: string;\n private readonly now: () => Date;\n private availableManifest: UpdateManifest | null = null;\n\n constructor(private readonly options: RuntimeUpdateManagerOptions) {\n this.launcherVersion = options.launcherVersion ?? getPackageVersion();\n this.now = options.now ?? (() => new Date());\n this.options.layout.ensureLauncherDirs();\n this.syncStateFromCurrentPointer();\n }\n\n getSnapshot = (): UpdateSnapshot => this.toSnapshotFromState(this.options.stateStore.read(), {\n status: this.options.stateStore.read().downloadedVersion ? \"downloaded\" : \"idle\"\n });\n\n run = async (options: NpmRuntimeUpdateActionOptions = {}): Promise<UpdateSnapshot> => {\n if (options.apply) {\n return this.applyDownloadedUpdate();\n }\n\n const applyAfterDownload = options.applyAfterDownload ?? true;\n const checkedSnapshot = await this.checkForUpdate();\n if (options.checkOnly) {\n return checkedSnapshot;\n }\n if (applyAfterDownload && checkedSnapshot.status === \"downloaded\") {\n return this.applyDownloadedUpdate();\n }\n if (checkedSnapshot.status !== \"update-available\") {\n return checkedSnapshot;\n }\n const downloadedSnapshot = await this.downloadUpdate(options.onProgress);\n if (!applyAfterDownload || downloadedSnapshot.status !== \"downloaded\") {\n return downloadedSnapshot;\n }\n return this.applyDownloadedUpdate();\n };\n\n checkForUpdate = async (): Promise<UpdateSnapshot> => {\n const manifestUrl = this.options.resolveManifestUrl(this.options.channel);\n if (!this.options.updateService.hasSignatureVerifier()) {\n return this.toSnapshotFromState(this.options.stateStore.read(), {\n status: \"blocked\",\n installationKind: \"npm-runtime-bundle\",\n blockReason: \"signature-verification-unavailable\",\n recoveryCommand: \"Set NEXTCLAW_UPDATE_BUNDLE_PUBLIC_KEY or NEXTCLAW_UPDATE_BUNDLE_PUBLIC_KEY_PATH\",\n errorMessage: \"Runtime bundle updates require a configured update public key.\"\n });\n }\n if (!manifestUrl) {\n return this.toSnapshotFromState(this.options.stateStore.read(), {\n status: \"blocked\",\n installationKind: \"npm-runtime-bundle\",\n blockReason: \"unsupported-installation\",\n recoveryCommand: \"Set NEXTCLAW_UPDATE_MANIFEST_URL or NEXTCLAW_UPDATE_MANIFEST_BASE_URL\",\n errorMessage: \"Runtime bundle update manifest URL is not configured.\"\n });\n }\n\n const checkedAt = this.now().toISOString();\n const state = this.options.stateStore.update((current) => ({\n ...current,\n channel: this.options.channel,\n lastUpdateCheckAt: checkedAt\n }));\n const availableUpdate = await this.options.updateService.checkForUpdate(manifestUrl, state.currentVersion, state.badVersions);\n return this.toSnapshotAfterCheck(availableUpdate, this.options.stateStore.read());\n };\n\n downloadUpdate = async (onProgress?: (progress: UpdateProgress) => void): Promise<UpdateSnapshot> => {\n const manifest = this.availableManifest ?? await this.ensureAvailableManifest();\n const downloaded = await this.options.updateService.downloadAndInstallUpdate(manifest, onProgress);\n const state = this.options.stateStore.update((current) => ({\n ...current,\n downloadedVersion: downloaded.downloadedVersion,\n downloadedReleaseNotesUrl: downloaded.manifest.releaseNotesUrl\n }));\n await this.options.bundleService.pruneRetainedArtifacts();\n return this.toSnapshotFromState(state, {\n status: \"downloaded\",\n availableVersion: downloaded.downloadedVersion,\n downloadedVersion: downloaded.downloadedVersion,\n minimumHostVersion: downloaded.manifest.minimumLauncherVersion,\n releaseNotesUrl: downloaded.manifest.releaseNotesUrl,\n canApplyInApp: true,\n requiresRestart: false\n });\n };\n\n applyDownloadedUpdate = (): UpdateSnapshot => {\n const downloadedVersion = this.options.stateStore.read().downloadedVersion?.trim();\n if (!downloadedVersion) {\n throw new Error(\"No downloaded npm runtime update is ready to apply.\");\n }\n this.options.bundleService.activateVersion(downloadedVersion);\n this.availableManifest = null;\n return this.toSnapshotFromState(this.options.stateStore.read(), {\n status: \"restart-required\",\n availableVersion: null,\n downloadedVersion: null,\n releaseNotesUrl: null,\n canApplyInApp: false,\n requiresRestart: true\n });\n };\n\n private ensureAvailableManifest = async (): Promise<UpdateManifest> => {\n const snapshot = await this.checkForUpdate();\n if (!this.availableManifest) {\n if (snapshot.downloadedVersion) {\n throw new Error(`Version ${snapshot.downloadedVersion} has already been downloaded and is ready to apply.`);\n }\n throw new Error(\"No npm runtime update is currently available.\");\n }\n return this.availableManifest;\n };\n\n private toSnapshotAfterCheck = (\n availableUpdate: NpmRuntimeAvailableUpdate | null,\n state: NpmRuntimeUpdateState\n ): UpdateSnapshot => {\n if (state.downloadedVersion) {\n this.availableManifest = availableUpdate?.kind === \"runtime-bundle-update\" ? availableUpdate.manifest : this.availableManifest;\n return this.toSnapshotFromState(state, {\n status: \"downloaded\",\n availableVersion: availableUpdate?.kind === \"runtime-bundle-update\" ? availableUpdate.manifest.latestVersion : state.downloadedVersion,\n minimumHostVersion: availableUpdate?.kind === \"runtime-bundle-update\" ? availableUpdate.manifest.minimumLauncherVersion : null,\n canApplyInApp: true,\n requiresRestart: false\n });\n }\n if (!availableUpdate) {\n this.availableManifest = null;\n return this.toSnapshotFromState(state, {\n status: \"up-to-date\",\n availableVersion: null,\n downloadedVersion: null,\n releaseNotesUrl: null\n });\n }\n if (availableUpdate.kind === \"host-update-required\") {\n this.availableManifest = null;\n return this.toSnapshotFromState(state, {\n status: \"blocked\",\n availableVersion: availableUpdate.manifest.latestVersion,\n minimumHostVersion: availableUpdate.manifest.minimumLauncherVersion,\n releaseNotesUrl: availableUpdate.manifest.releaseNotesUrl,\n blockReason: \"host-too-old\",\n recoveryCommand: \"npm install -g nextclaw@latest\",\n errorMessage: `NextClaw npm launcher ${this.launcherVersion} is too old for runtime bundle ${availableUpdate.manifest.latestVersion}.`\n });\n }\n if (availableUpdate.kind === \"quarantined-bad-version\") {\n this.availableManifest = null;\n return this.toSnapshotFromState(state, {\n status: \"failed\",\n availableVersion: availableUpdate.manifest.latestVersion,\n minimumHostVersion: availableUpdate.manifest.minimumLauncherVersion,\n releaseNotesUrl: availableUpdate.manifest.releaseNotesUrl,\n errorMessage: `Version ${availableUpdate.manifest.latestVersion} was quarantined after a failed launch.`\n });\n }\n this.availableManifest = availableUpdate.manifest;\n return this.toSnapshotFromState(state, {\n status: \"update-available\",\n availableVersion: availableUpdate.manifest.latestVersion,\n minimumHostVersion: availableUpdate.manifest.minimumLauncherVersion,\n releaseNotesUrl: availableUpdate.manifest.releaseNotesUrl\n });\n };\n\n private syncStateFromCurrentPointer = (): void => {\n const currentPointer = this.options.layout.readCurrentPointer();\n const effectiveCurrentVersion = resolveEffectiveNpmRuntimeVersion({\n launcherVersion: this.launcherVersion,\n currentBundleVersion: currentPointer?.version ?? null\n });\n if (!effectiveCurrentVersion) {\n return;\n }\n this.options.stateStore.update((state) => ({\n ...state,\n currentVersion: effectiveCurrentVersion\n }));\n };\n\n private toSnapshotFromState = (\n state: NpmRuntimeUpdateState,\n patch: Partial<UpdateSnapshot> & Pick<UpdateSnapshot, \"status\">\n ): UpdateSnapshot => {\n const hasDownloadedVersion = Boolean(state.downloadedVersion);\n const { status } = patch;\n return {\n installationKind: \"npm-runtime-bundle\",\n channel: state.channel,\n hostVersion: this.launcherVersion,\n currentVersion: state.currentVersion,\n availableVersion: null,\n downloadedVersion: state.downloadedVersion,\n minimumHostVersion: null,\n releaseNotesUrl: state.downloadedReleaseNotesUrl,\n lastCheckedAt: state.lastUpdateCheckAt,\n progress: null,\n canAutoDownload: state.updatePreferences.autoDownload,\n canApplyInApp: hasDownloadedVersion,\n requiresRestart: false,\n blockReason: null,\n recoveryCommand: null,\n errorMessage: null,\n preferences: { ...state.updatePreferences },\n ...patch,\n status\n };\n };\n}\n"],"mappings":";;;;AA4BA,IAAa,uBAAb,MAAkC;CAChC;CACA;CACA,oBAAmD;CAEnD,YAAY,SAAuD;AAAtC,OAAA,UAAA;AAC3B,OAAK,kBAAkB,QAAQ,mBAAmB,mBAAmB;AACrE,OAAK,MAAM,QAAQ,8BAAc,IAAI,MAAM;AAC3C,OAAK,QAAQ,OAAO,oBAAoB;AACxC,OAAK,6BAA6B;;CAGpC,oBAAoC,KAAK,oBAAoB,KAAK,QAAQ,WAAW,MAAM,EAAE,EAC3F,QAAQ,KAAK,QAAQ,WAAW,MAAM,CAAC,oBAAoB,eAAe,QAC3E,CAAC;CAEF,MAAM,OAAO,UAAyC,EAAE,KAA8B;AACpF,MAAI,QAAQ,MACV,QAAO,KAAK,uBAAuB;EAGrC,MAAM,qBAAqB,QAAQ,sBAAsB;EACzD,MAAM,kBAAkB,MAAM,KAAK,gBAAgB;AACnD,MAAI,QAAQ,UACV,QAAO;AAET,MAAI,sBAAsB,gBAAgB,WAAW,aACnD,QAAO,KAAK,uBAAuB;AAErC,MAAI,gBAAgB,WAAW,mBAC7B,QAAO;EAET,MAAM,qBAAqB,MAAM,KAAK,eAAe,QAAQ,WAAW;AACxE,MAAI,CAAC,sBAAsB,mBAAmB,WAAW,aACvD,QAAO;AAET,SAAO,KAAK,uBAAuB;;CAGrC,iBAAiB,YAAqC;EACpD,MAAM,cAAc,KAAK,QAAQ,mBAAmB,KAAK,QAAQ,QAAQ;AACzE,MAAI,CAAC,KAAK,QAAQ,cAAc,sBAAsB,CACpD,QAAO,KAAK,oBAAoB,KAAK,QAAQ,WAAW,MAAM,EAAE;GAC9D,QAAQ;GACR,kBAAkB;GAClB,aAAa;GACb,iBAAiB;GACjB,cAAc;GACf,CAAC;AAEJ,MAAI,CAAC,YACH,QAAO,KAAK,oBAAoB,KAAK,QAAQ,WAAW,MAAM,EAAE;GAC9D,QAAQ;GACR,kBAAkB;GAClB,aAAa;GACb,iBAAiB;GACjB,cAAc;GACf,CAAC;EAGJ,MAAM,YAAY,KAAK,KAAK,CAAC,aAAa;EAC1C,MAAM,QAAQ,KAAK,QAAQ,WAAW,QAAQ,aAAa;GACzD,GAAG;GACH,SAAS,KAAK,QAAQ;GACtB,mBAAmB;GACpB,EAAE;EACH,MAAM,kBAAkB,MAAM,KAAK,QAAQ,cAAc,eAAe,aAAa,MAAM,gBAAgB,MAAM,YAAY;AAC7H,SAAO,KAAK,qBAAqB,iBAAiB,KAAK,QAAQ,WAAW,MAAM,CAAC;;CAGnF,iBAAiB,OAAO,eAA6E;EACnG,MAAM,WAAW,KAAK,qBAAqB,MAAM,KAAK,yBAAyB;EAC/E,MAAM,aAAa,MAAM,KAAK,QAAQ,cAAc,yBAAyB,UAAU,WAAW;EAClG,MAAM,QAAQ,KAAK,QAAQ,WAAW,QAAQ,aAAa;GACzD,GAAG;GACH,mBAAmB,WAAW;GAC9B,2BAA2B,WAAW,SAAS;GAChD,EAAE;AACH,QAAM,KAAK,QAAQ,cAAc,wBAAwB;AACzD,SAAO,KAAK,oBAAoB,OAAO;GACrC,QAAQ;GACR,kBAAkB,WAAW;GAC7B,mBAAmB,WAAW;GAC9B,oBAAoB,WAAW,SAAS;GACxC,iBAAiB,WAAW,SAAS;GACrC,eAAe;GACf,iBAAiB;GAClB,CAAC;;CAGJ,8BAA8C;EAC5C,MAAM,oBAAoB,KAAK,QAAQ,WAAW,MAAM,CAAC,mBAAmB,MAAM;AAClF,MAAI,CAAC,kBACH,OAAM,IAAI,MAAM,sDAAsD;AAExE,OAAK,QAAQ,cAAc,gBAAgB,kBAAkB;AAC7D,OAAK,oBAAoB;AACzB,SAAO,KAAK,oBAAoB,KAAK,QAAQ,WAAW,MAAM,EAAE;GAC9D,QAAQ;GACR,kBAAkB;GAClB,mBAAmB;GACnB,iBAAiB;GACjB,eAAe;GACf,iBAAiB;GAClB,CAAC;;CAGJ,0BAAkC,YAAqC;EACrE,MAAM,WAAW,MAAM,KAAK,gBAAgB;AAC5C,MAAI,CAAC,KAAK,mBAAmB;AAC3B,OAAI,SAAS,kBACX,OAAM,IAAI,MAAM,WAAW,SAAS,kBAAkB,qDAAqD;AAE7G,SAAM,IAAI,MAAM,gDAAgD;;AAElE,SAAO,KAAK;;CAGd,wBACE,iBACA,UACmB;AACnB,MAAI,MAAM,mBAAmB;AAC3B,QAAK,oBAAoB,iBAAiB,SAAS,0BAA0B,gBAAgB,WAAW,KAAK;AAC7G,UAAO,KAAK,oBAAoB,OAAO;IACrC,QAAQ;IACR,kBAAkB,iBAAiB,SAAS,0BAA0B,gBAAgB,SAAS,gBAAgB,MAAM;IACrH,oBAAoB,iBAAiB,SAAS,0BAA0B,gBAAgB,SAAS,yBAAyB;IAC1H,eAAe;IACf,iBAAiB;IAClB,CAAC;;AAEJ,MAAI,CAAC,iBAAiB;AACpB,QAAK,oBAAoB;AACzB,UAAO,KAAK,oBAAoB,OAAO;IACrC,QAAQ;IACR,kBAAkB;IAClB,mBAAmB;IACnB,iBAAiB;IAClB,CAAC;;AAEJ,MAAI,gBAAgB,SAAS,wBAAwB;AACnD,QAAK,oBAAoB;AACzB,UAAO,KAAK,oBAAoB,OAAO;IACrC,QAAQ;IACR,kBAAkB,gBAAgB,SAAS;IAC3C,oBAAoB,gBAAgB,SAAS;IAC7C,iBAAiB,gBAAgB,SAAS;IAC1C,aAAa;IACb,iBAAiB;IACjB,cAAc,yBAAyB,KAAK,gBAAgB,iCAAiC,gBAAgB,SAAS,cAAc;IACrI,CAAC;;AAEJ,MAAI,gBAAgB,SAAS,2BAA2B;AACtD,QAAK,oBAAoB;AACzB,UAAO,KAAK,oBAAoB,OAAO;IACrC,QAAQ;IACR,kBAAkB,gBAAgB,SAAS;IAC3C,oBAAoB,gBAAgB,SAAS;IAC7C,iBAAiB,gBAAgB,SAAS;IAC1C,cAAc,WAAW,gBAAgB,SAAS,cAAc;IACjE,CAAC;;AAEJ,OAAK,oBAAoB,gBAAgB;AACzC,SAAO,KAAK,oBAAoB,OAAO;GACrC,QAAQ;GACR,kBAAkB,gBAAgB,SAAS;GAC3C,oBAAoB,gBAAgB,SAAS;GAC7C,iBAAiB,gBAAgB,SAAS;GAC3C,CAAC;;CAGJ,oCAAkD;EAChD,MAAM,iBAAiB,KAAK,QAAQ,OAAO,oBAAoB;EAC/D,MAAM,0BAA0B,kCAAkC;GAChE,iBAAiB,KAAK;GACtB,sBAAsB,gBAAgB,WAAW;GAClD,CAAC;AACF,MAAI,CAAC,wBACH;AAEF,OAAK,QAAQ,WAAW,QAAQ,WAAW;GACzC,GAAG;GACH,gBAAgB;GACjB,EAAE;;CAGL,uBACE,OACA,UACmB;EACnB,MAAM,uBAAuB,QAAQ,MAAM,kBAAkB;EAC7D,MAAM,EAAE,WAAW;AACnB,SAAO;GACL,kBAAkB;GAClB,SAAS,MAAM;GACf,aAAa,KAAK;GAClB,gBAAgB,MAAM;GACtB,kBAAkB;GAClB,mBAAmB,MAAM;GACzB,oBAAoB;GACpB,iBAAiB,MAAM;GACvB,eAAe,MAAM;GACrB,UAAU;GACV,iBAAiB,MAAM,kBAAkB;GACzC,eAAe;GACf,iBAAiB;GACjB,aAAa;GACb,iBAAiB;GACjB,cAAc;GACd,aAAa,EAAE,GAAG,MAAM,mBAAmB;GAC3C,GAAG;GACH;GACD"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { AgentCommands } from "../services/agent/agent-commands.service.js";
|
|
2
|
+
import { runCliAgentCommand } from "../utils/cli-agent-runner.utils.js";
|
|
3
|
+
import { ChannelCommands } from "../controllers/commands/channel-command.controller.js";
|
|
4
|
+
import { ConfigCommands } from "../services/config/config-commands.service.js";
|
|
5
|
+
import { CronCommands } from "../services/cron/cron-commands.service.js";
|
|
6
|
+
import { DiagnosticsCommands } from "../services/diagnostics/diagnostics-commands.service.js";
|
|
7
|
+
import { ManagedServiceManager } from "./managed-service.manager.js";
|
|
8
|
+
import { GatewayCommands } from "../controllers/commands/gateway-command.controller.js";
|
|
9
|
+
import { LogsCommands } from "../controllers/commands/logs-command.controller.js";
|
|
10
|
+
import { SkillsCommands } from "../controllers/commands/marketplace-skill-command.controller.js";
|
|
11
|
+
import { McpCommands } from "../controllers/commands/mcp-command.controller.js";
|
|
12
|
+
import { PlatformAuthCommands } from "../services/platform-auth/platform-auth-commands.service.js";
|
|
13
|
+
import { RemoteCommands } from "../controllers/commands/remote-command.controller.js";
|
|
14
|
+
import { StartCommands } from "../controllers/commands/start-command.controller.js";
|
|
15
|
+
import { RestartCommands } from "../controllers/commands/restart-command.controller.js";
|
|
16
|
+
import { SecretsCommands } from "../controllers/commands/secrets-command.controller.js";
|
|
17
|
+
import { ServeCommands } from "../controllers/commands/serve-command.controller.js";
|
|
18
|
+
import { ServiceCommands } from "../controllers/commands/service-command.controller.js";
|
|
19
|
+
import { StopCommands } from "../controllers/commands/stop-command.controller.js";
|
|
20
|
+
import { UiCommands } from "../controllers/commands/ui-command.controller.js";
|
|
21
|
+
import { LlmUsageCommandService } from "../services/usage/llm-usage-command.service.js";
|
|
22
|
+
import { ServiceRestartManager } from "./service-restart.manager.js";
|
|
23
|
+
import { ServiceWorkspaceManager } from "./service-workspace.manager.js";
|
|
24
|
+
import { RemoteRuntimeActions } from "@nextclaw/remote";
|
|
25
|
+
|
|
26
|
+
//#region src/managers/service-command.manager.d.ts
|
|
27
|
+
type NextclawServiceCommands = {
|
|
28
|
+
remote: RemoteRuntimeActions;
|
|
29
|
+
skills: SkillsCommands;
|
|
30
|
+
service: ServiceCommands;
|
|
31
|
+
config: ConfigCommands;
|
|
32
|
+
mcp: McpCommands;
|
|
33
|
+
secrets: SecretsCommands;
|
|
34
|
+
agents: AgentCommands;
|
|
35
|
+
channels: ChannelCommands;
|
|
36
|
+
cron: CronCommands;
|
|
37
|
+
diagnostics: DiagnosticsCommands;
|
|
38
|
+
logs: LogsCommands;
|
|
39
|
+
gateway: GatewayCommands;
|
|
40
|
+
ui: UiCommands;
|
|
41
|
+
start: StartCommands;
|
|
42
|
+
restart: RestartCommands;
|
|
43
|
+
serve: ServeCommands;
|
|
44
|
+
stop: StopCommands;
|
|
45
|
+
usage: LlmUsageCommandService;
|
|
46
|
+
};
|
|
47
|
+
type ServiceCommandManagerDeps = {
|
|
48
|
+
logo: string;
|
|
49
|
+
init: (params: {
|
|
50
|
+
source?: string;
|
|
51
|
+
auto?: boolean;
|
|
52
|
+
force?: boolean;
|
|
53
|
+
}) => Promise<void>;
|
|
54
|
+
managedService: ManagedServiceManager;
|
|
55
|
+
restart: ServiceRestartManager;
|
|
56
|
+
workspace: ServiceWorkspaceManager;
|
|
57
|
+
};
|
|
58
|
+
declare class ServiceCommandManager {
|
|
59
|
+
private readonly deps;
|
|
60
|
+
readonly commands: NextclawServiceCommands;
|
|
61
|
+
readonly platformAuth: PlatformAuthCommands;
|
|
62
|
+
readonly remote: RemoteCommands;
|
|
63
|
+
constructor(deps: ServiceCommandManagerDeps);
|
|
64
|
+
}
|
|
65
|
+
//#endregion
|
|
66
|
+
export { NextclawServiceCommands, ServiceCommandManager, runCliAgentCommand };
|
|
67
|
+
//# sourceMappingURL=service-command.manager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service-command.manager.d.ts","names":[],"sources":["../../src/managers/service-command.manager.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;KA8BY,uBAAA;EACV,MAAA,EAAQ,oBAAA;EACR,MAAA,EAAQ,cAAA;EACR,OAAA,EAAS,eAAA;EACT,MAAA,EAAQ,cAAA;EACR,GAAA,EAAK,WAAA;EACL,OAAA,EAAS,eAAA;EACT,MAAA,EAAQ,aAAA;EACR,QAAA,EAAU,eAAA;EACV,IAAA,EAAM,YAAA;EACN,WAAA,EAAa,mBAAA;EACb,IAAA,EAAM,YAAA;EACN,OAAA,EAAS,eAAA;EACT,EAAA,EAAI,UAAA;EACJ,KAAA,EAAO,aAAA;EACP,OAAA,EAAS,eAAA;EACT,KAAA,EAAO,aAAA;EACP,IAAA,EAAM,YAAA;EACN,KAAA,EAAO,sBAAA;AAAA;AAAA,KAGJ,yBAAA;EACH,IAAA;EACA,IAAA,GAAO,MAAA;IAAU,MAAA;IAAiB,IAAA;IAAgB,KAAA;EAAA,MAAsB,OAAA;EACxE,cAAA,EAAgB,qBAAA;EAChB,OAAA,EAAS,qBAAA;EACT,SAAA,EAAW,uBAAA;AAAA;AAAA,cAGA,qBAAA;EAAA,iBAKkB,IAAA;EAAA,SAJpB,QAAA,EAAU,uBAAA;EAAA,SACV,YAAA,EAAc,oBAAA;EAAA,SACd,MAAA,EAAQ,cAAA;cAEY,IAAA,EAAM,yBAAA;AAAA"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { hasRunningNextclawManagedService } from "../utils/remote/remote-runtime-support.utils.js";
|
|
2
|
+
import { RemoteCommands } from "../controllers/commands/remote-command.controller.js";
|
|
3
|
+
import { PlatformAuthCommands } from "../services/platform-auth/platform-auth-commands.service.js";
|
|
4
|
+
import "../controllers/commands/platform-auth-command.controller.js";
|
|
5
|
+
import { AgentCommands } from "../services/agent/agent-commands.service.js";
|
|
6
|
+
import { runCliAgentCommand } from "../utils/cli-agent-runner.utils.js";
|
|
7
|
+
import "../controllers/commands/agent-command.controller.js";
|
|
8
|
+
import { ChannelCommands } from "../controllers/commands/channel-command.controller.js";
|
|
9
|
+
import { ConfigCommands } from "../services/config/config-commands.service.js";
|
|
10
|
+
import "../controllers/commands/config-command.controller.js";
|
|
11
|
+
import { CronCommands } from "../services/cron/cron-commands.service.js";
|
|
12
|
+
import "../controllers/commands/cron-command.controller.js";
|
|
13
|
+
import { DiagnosticsCommands } from "../services/diagnostics/diagnostics-commands.service.js";
|
|
14
|
+
import "../controllers/commands/diagnostics-command.controller.js";
|
|
15
|
+
import { GatewayCommands } from "../controllers/commands/gateway-command.controller.js";
|
|
16
|
+
import { LogsCommands } from "../controllers/commands/logs-command.controller.js";
|
|
17
|
+
import { SkillsCommands } from "../controllers/commands/marketplace-skill-command.controller.js";
|
|
18
|
+
import { McpCommands } from "../controllers/commands/mcp-command.controller.js";
|
|
19
|
+
import { RestartCommands } from "../controllers/commands/restart-command.controller.js";
|
|
20
|
+
import { SecretsCommands } from "../controllers/commands/secrets-command.controller.js";
|
|
21
|
+
import { ServeCommands } from "../controllers/commands/serve-command.controller.js";
|
|
22
|
+
import { ServiceCommands } from "../controllers/commands/service-command.controller.js";
|
|
23
|
+
import { StartCommands } from "../controllers/commands/start-command.controller.js";
|
|
24
|
+
import { StopCommands } from "../controllers/commands/stop-command.controller.js";
|
|
25
|
+
import { UiCommands } from "../controllers/commands/ui-command.controller.js";
|
|
26
|
+
import { LlmUsageCommandService } from "../services/usage/llm-usage-command.service.js";
|
|
27
|
+
import "../controllers/commands/usage-command.controller.js";
|
|
28
|
+
import { APP_NAME } from "@nextclaw/core";
|
|
29
|
+
import { AgentManager } from "@nextclaw/kernel";
|
|
30
|
+
import { RemoteRuntimeActions } from "@nextclaw/remote";
|
|
31
|
+
//#region src/managers/service-command.manager.ts
|
|
32
|
+
const FORCED_PUBLIC_UI_HOST = "0.0.0.0";
|
|
33
|
+
var ServiceCommandManager = class {
|
|
34
|
+
commands;
|
|
35
|
+
platformAuth;
|
|
36
|
+
remote;
|
|
37
|
+
constructor(deps) {
|
|
38
|
+
this.deps = deps;
|
|
39
|
+
const start = new StartCommands({
|
|
40
|
+
runtimeCommandService: this.deps.managedService,
|
|
41
|
+
forcedPublicHost: FORCED_PUBLIC_UI_HOST,
|
|
42
|
+
init: (params) => this.deps.init(params)
|
|
43
|
+
});
|
|
44
|
+
this.platformAuth = new PlatformAuthCommands();
|
|
45
|
+
this.remote = new RemoteCommands();
|
|
46
|
+
this.commands = {
|
|
47
|
+
remote: new RemoteRuntimeActions({
|
|
48
|
+
appName: APP_NAME,
|
|
49
|
+
initAuto: (source) => this.deps.init({
|
|
50
|
+
source,
|
|
51
|
+
auto: true
|
|
52
|
+
}),
|
|
53
|
+
remoteCommands: this.remote,
|
|
54
|
+
restartBackgroundService: (reason) => this.deps.restart.restartBackgroundService(reason),
|
|
55
|
+
hasRunningManagedService: hasRunningNextclawManagedService
|
|
56
|
+
}),
|
|
57
|
+
skills: new SkillsCommands(),
|
|
58
|
+
service: new ServiceCommands(),
|
|
59
|
+
config: new ConfigCommands({ requestRestart: (params) => this.deps.restart.requestRestart(params) }),
|
|
60
|
+
mcp: new McpCommands(),
|
|
61
|
+
secrets: new SecretsCommands({ requestRestart: (params) => this.deps.restart.requestRestart(params) }),
|
|
62
|
+
agents: new AgentCommands(new AgentManager(void 0, { initializeAgentHomeDirectory: (homeDirectory) => this.deps.workspace.createWorkspaceTemplates(homeDirectory) })),
|
|
63
|
+
channels: new ChannelCommands({ requestRestart: (params) => this.deps.restart.requestRestart(params) }),
|
|
64
|
+
cron: new CronCommands(),
|
|
65
|
+
diagnostics: new DiagnosticsCommands({ logo: this.deps.logo }),
|
|
66
|
+
logs: new LogsCommands(),
|
|
67
|
+
gateway: new GatewayCommands({
|
|
68
|
+
runtimeCommandService: this.deps.managedService,
|
|
69
|
+
forcedPublicHost: FORCED_PUBLIC_UI_HOST
|
|
70
|
+
}),
|
|
71
|
+
ui: new UiCommands({
|
|
72
|
+
runtimeCommandService: this.deps.managedService,
|
|
73
|
+
forcedPublicHost: FORCED_PUBLIC_UI_HOST
|
|
74
|
+
}),
|
|
75
|
+
start,
|
|
76
|
+
restart: new RestartCommands({
|
|
77
|
+
runtimeCommandService: this.deps.managedService,
|
|
78
|
+
startCommands: start,
|
|
79
|
+
forcedPublicHost: FORCED_PUBLIC_UI_HOST,
|
|
80
|
+
writeRestartSentinelFromExecContext: (reason) => this.deps.restart.writeRestartSentinelFromExecContext(reason)
|
|
81
|
+
}),
|
|
82
|
+
serve: new ServeCommands({
|
|
83
|
+
runtimeCommandService: this.deps.managedService,
|
|
84
|
+
forcedPublicHost: FORCED_PUBLIC_UI_HOST
|
|
85
|
+
}),
|
|
86
|
+
stop: new StopCommands({ runtimeCommandService: this.deps.managedService }),
|
|
87
|
+
usage: new LlmUsageCommandService()
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
//#endregion
|
|
92
|
+
export { ServiceCommandManager, runCliAgentCommand };
|
|
93
|
+
|
|
94
|
+
//# sourceMappingURL=service-command.manager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service-command.manager.js","names":[],"sources":["../../src/managers/service-command.manager.ts"],"sourcesContent":["import { APP_NAME } from \"@nextclaw/core\";\nimport { AgentManager } from \"@nextclaw/kernel\";\nimport { RemoteRuntimeActions } from \"@nextclaw/remote\";\nimport { AgentCommands, runCliAgentCommand } from \"@nextclaw-service/controllers/commands/agent-command.controller.js\";\nimport { ChannelCommands } from \"@nextclaw-service/controllers/commands/channel-command.controller.js\";\nimport { ConfigCommands } from \"@nextclaw-service/controllers/commands/config-command.controller.js\";\nimport { CronCommands } from \"@nextclaw-service/controllers/commands/cron-command.controller.js\";\nimport { DiagnosticsCommands } from \"@nextclaw-service/controllers/commands/diagnostics-command.controller.js\";\nimport { GatewayCommands } from \"@nextclaw-service/controllers/commands/gateway-command.controller.js\";\nimport { LogsCommands } from \"@nextclaw-service/controllers/commands/logs-command.controller.js\";\nimport { SkillsCommands } from \"@nextclaw-service/controllers/commands/marketplace-skill-command.controller.js\";\nimport { McpCommands } from \"@nextclaw-service/controllers/commands/mcp-command.controller.js\";\nimport { PlatformAuthCommands } from \"@nextclaw-service/controllers/commands/platform-auth-command.controller.js\";\nimport { RemoteCommands, hasRunningNextclawManagedService } from \"@nextclaw-service/controllers/commands/remote-command.controller.js\";\nimport { RestartCommands } from \"@nextclaw-service/controllers/commands/restart-command.controller.js\";\nimport { SecretsCommands } from \"@nextclaw-service/controllers/commands/secrets-command.controller.js\";\nimport { ServeCommands } from \"@nextclaw-service/controllers/commands/serve-command.controller.js\";\nimport { ServiceCommands } from \"@nextclaw-service/controllers/commands/service-command.controller.js\";\nimport { StartCommands } from \"@nextclaw-service/controllers/commands/start-command.controller.js\";\nimport { StopCommands } from \"@nextclaw-service/controllers/commands/stop-command.controller.js\";\nimport { UiCommands } from \"@nextclaw-service/controllers/commands/ui-command.controller.js\";\nimport { LlmUsageCommandService } from \"@nextclaw-service/controllers/commands/usage-command.controller.js\";\nimport type { ManagedServiceManager } from \"@nextclaw-service/managers/managed-service.manager.js\";\nimport type { ServiceRestartManager } from \"@nextclaw-service/managers/service-restart.manager.js\";\nimport type { ServiceWorkspaceManager } from \"@nextclaw-service/managers/service-workspace.manager.js\";\n\nconst FORCED_PUBLIC_UI_HOST = \"0.0.0.0\";\n\nexport { runCliAgentCommand };\n\nexport type NextclawServiceCommands = {\n remote: RemoteRuntimeActions;\n skills: SkillsCommands;\n service: ServiceCommands;\n config: ConfigCommands;\n mcp: McpCommands;\n secrets: SecretsCommands;\n agents: AgentCommands;\n channels: ChannelCommands;\n cron: CronCommands;\n diagnostics: DiagnosticsCommands;\n logs: LogsCommands;\n gateway: GatewayCommands;\n ui: UiCommands;\n start: StartCommands;\n restart: RestartCommands;\n serve: ServeCommands;\n stop: StopCommands;\n usage: LlmUsageCommandService;\n};\n\ntype ServiceCommandManagerDeps = {\n logo: string;\n init: (params: { source?: string; auto?: boolean; force?: boolean }) => Promise<void>;\n managedService: ManagedServiceManager;\n restart: ServiceRestartManager;\n workspace: ServiceWorkspaceManager;\n};\n\nexport class ServiceCommandManager {\n readonly commands: NextclawServiceCommands;\n readonly platformAuth: PlatformAuthCommands;\n readonly remote: RemoteCommands;\n\n constructor(private readonly deps: ServiceCommandManagerDeps) {\n const start = new StartCommands({\n runtimeCommandService: this.deps.managedService,\n forcedPublicHost: FORCED_PUBLIC_UI_HOST,\n init: (params) => this.deps.init(params)\n });\n this.platformAuth = new PlatformAuthCommands();\n this.remote = new RemoteCommands();\n this.commands = {\n remote: new RemoteRuntimeActions({\n appName: APP_NAME,\n initAuto: (source) => this.deps.init({ source, auto: true }),\n remoteCommands: this.remote,\n restartBackgroundService: (reason) => this.deps.restart.restartBackgroundService(reason),\n hasRunningManagedService: hasRunningNextclawManagedService\n }),\n skills: new SkillsCommands(),\n service: new ServiceCommands(),\n config: new ConfigCommands({\n requestRestart: (params) => this.deps.restart.requestRestart(params),\n }),\n mcp: new McpCommands(),\n secrets: new SecretsCommands({\n requestRestart: (params) => this.deps.restart.requestRestart(params),\n }),\n agents: new AgentCommands(new AgentManager(undefined, {\n initializeAgentHomeDirectory: (homeDirectory) =>\n this.deps.workspace.createWorkspaceTemplates(homeDirectory),\n })),\n channels: new ChannelCommands({\n requestRestart: (params) => this.deps.restart.requestRestart(params),\n }),\n cron: new CronCommands(),\n diagnostics: new DiagnosticsCommands({ logo: this.deps.logo }),\n logs: new LogsCommands(),\n gateway: new GatewayCommands({\n runtimeCommandService: this.deps.managedService,\n forcedPublicHost: FORCED_PUBLIC_UI_HOST\n }),\n ui: new UiCommands({\n runtimeCommandService: this.deps.managedService,\n forcedPublicHost: FORCED_PUBLIC_UI_HOST\n }),\n start,\n restart: new RestartCommands({\n runtimeCommandService: this.deps.managedService,\n startCommands: start,\n forcedPublicHost: FORCED_PUBLIC_UI_HOST,\n writeRestartSentinelFromExecContext: (reason) => this.deps.restart.writeRestartSentinelFromExecContext(reason)\n }),\n serve: new ServeCommands({\n runtimeCommandService: this.deps.managedService,\n forcedPublicHost: FORCED_PUBLIC_UI_HOST\n }),\n stop: new StopCommands({\n runtimeCommandService: this.deps.managedService\n }),\n usage: new LlmUsageCommandService(),\n };\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BA,MAAM,wBAAwB;AAiC9B,IAAa,wBAAb,MAAmC;CACjC;CACA;CACA;CAEA,YAAY,MAAkD;AAAjC,OAAA,OAAA;EAC3B,MAAM,QAAQ,IAAI,cAAc;GAC9B,uBAAuB,KAAK,KAAK;GACjC,kBAAkB;GAClB,OAAO,WAAW,KAAK,KAAK,KAAK,OAAO;GACzC,CAAC;AACF,OAAK,eAAe,IAAI,sBAAsB;AAC9C,OAAK,SAAS,IAAI,gBAAgB;AAClC,OAAK,WAAW;GACd,QAAQ,IAAI,qBAAqB;IAC/B,SAAS;IACT,WAAW,WAAW,KAAK,KAAK,KAAK;KAAE;KAAQ,MAAM;KAAM,CAAC;IAC5D,gBAAgB,KAAK;IACrB,2BAA2B,WAAW,KAAK,KAAK,QAAQ,yBAAyB,OAAO;IACxF,0BAA0B;IAC3B,CAAC;GACF,QAAQ,IAAI,gBAAgB;GAC5B,SAAS,IAAI,iBAAiB;GAC9B,QAAQ,IAAI,eAAe,EACzB,iBAAiB,WAAW,KAAK,KAAK,QAAQ,eAAe,OAAO,EACrE,CAAC;GACF,KAAK,IAAI,aAAa;GACtB,SAAS,IAAI,gBAAgB,EAC3B,iBAAiB,WAAW,KAAK,KAAK,QAAQ,eAAe,OAAO,EACrE,CAAC;GACF,QAAQ,IAAI,cAAc,IAAI,aAAa,KAAA,GAAW,EACpD,+BAA+B,kBAC7B,KAAK,KAAK,UAAU,yBAAyB,cAAc,EAC9D,CAAC,CAAC;GACH,UAAU,IAAI,gBAAgB,EAC5B,iBAAiB,WAAW,KAAK,KAAK,QAAQ,eAAe,OAAO,EACrE,CAAC;GACF,MAAM,IAAI,cAAc;GACxB,aAAa,IAAI,oBAAoB,EAAE,MAAM,KAAK,KAAK,MAAM,CAAC;GAC9D,MAAM,IAAI,cAAc;GACxB,SAAS,IAAI,gBAAgB;IAC3B,uBAAuB,KAAK,KAAK;IACjC,kBAAkB;IACnB,CAAC;GACF,IAAI,IAAI,WAAW;IACjB,uBAAuB,KAAK,KAAK;IACjC,kBAAkB;IACnB,CAAC;GACF;GACA,SAAS,IAAI,gBAAgB;IAC3B,uBAAuB,KAAK,KAAK;IACjC,eAAe;IACf,kBAAkB;IAClB,sCAAsC,WAAW,KAAK,KAAK,QAAQ,oCAAoC,OAAO;IAC/G,CAAC;GACF,OAAO,IAAI,cAAc;IACvB,uBAAuB,KAAK,KAAK;IACjC,kBAAkB;IACnB,CAAC;GACF,MAAM,IAAI,aAAa,EACrB,uBAAuB,KAAK,KAAK,gBAClC,CAAC;GACF,OAAO,IAAI,wBAAwB;GACpC"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { RequestRestartParams } from "../types/cli.types.js";
|
|
2
|
+
import { GatewayControllerImpl } from "../controllers/gateway.controller.js";
|
|
3
|
+
import { NextclawDistribution } from "../types/distribution.types.js";
|
|
4
|
+
import { GatewayRemoteManager } from "./gateway-remote.manager.js";
|
|
5
|
+
import { GatewayRestartWakeService } from "../services/gateway/gateway-restart-wake.service.js";
|
|
6
|
+
import { UiStartupHandle } from "../services/gateway/nextclaw-app.service.js";
|
|
7
|
+
import { ServiceBootstrapStatusStore } from "../services/gateway/service-bootstrap-status.service.js";
|
|
8
|
+
import { ServiceFileWatcherRegistry } from "../services/gateway/service-startup-support.service.js";
|
|
9
|
+
import { GatewayExtensionManager } from "./gateway-extension.manager.js";
|
|
10
|
+
import * as NextclawCore from "@nextclaw/core";
|
|
11
|
+
import { AgentRunClient, AutomationManager, ConfigManager, LlmProviderManager, NextclawKernel, SessionManager } from "@nextclaw/kernel";
|
|
12
|
+
import { MarketplaceApiConfig, UiRuntimeControlHost, UiRuntimeUpdateHost } from "@nextclaw/server";
|
|
13
|
+
import { EventBus, Ingress } from "@nextclaw/shared";
|
|
14
|
+
|
|
15
|
+
//#region src/managers/service-gateway.manager.d.ts
|
|
16
|
+
type Config$1 = NextclawCore.Config;
|
|
17
|
+
type MessageBus = NextclawCore.MessageBus;
|
|
18
|
+
type GatewayRuntimeOptions = {
|
|
19
|
+
uiOverrides?: Partial<Config$1["ui"]>;
|
|
20
|
+
uiStaticDir?: string | null;
|
|
21
|
+
};
|
|
22
|
+
type GatewayRuntimeDeps = {
|
|
23
|
+
requestRestart: (params: RequestRestartParams) => Promise<void>;
|
|
24
|
+
initializeAgentHomeDirectory: (homeDirectory: string) => void;
|
|
25
|
+
startService: (options: {
|
|
26
|
+
uiOverrides: Record<string, unknown>;
|
|
27
|
+
open: boolean;
|
|
28
|
+
}) => Promise<void>;
|
|
29
|
+
stopService: () => Promise<void>;
|
|
30
|
+
runCliSubcommand: (args: string[]) => Promise<string>;
|
|
31
|
+
installBuiltinMarketplaceSkill: (slug: string, force: boolean | undefined) => {
|
|
32
|
+
message: string;
|
|
33
|
+
output?: string;
|
|
34
|
+
} | null;
|
|
35
|
+
};
|
|
36
|
+
declare class ServiceGatewayManager {
|
|
37
|
+
private readonly deps;
|
|
38
|
+
private readonly options;
|
|
39
|
+
readonly kernel: NextclawKernel;
|
|
40
|
+
readonly appEventBus: EventBus;
|
|
41
|
+
readonly messageBus: MessageBus;
|
|
42
|
+
readonly sessionManager: SessionManager;
|
|
43
|
+
readonly automation: AutomationManager;
|
|
44
|
+
readonly agentRunClient: AgentRunClient;
|
|
45
|
+
readonly runtimeControl: UiRuntimeControlHost;
|
|
46
|
+
readonly runtimeUpdate: UiRuntimeUpdateHost | null;
|
|
47
|
+
readonly ingress: Ingress;
|
|
48
|
+
readonly distribution: NextclawDistribution;
|
|
49
|
+
readonly productVersion: string;
|
|
50
|
+
readonly providerManager: LlmProviderManager;
|
|
51
|
+
readonly gatewayController: GatewayControllerImpl;
|
|
52
|
+
readonly configManager: ConfigManager;
|
|
53
|
+
readonly uiConfig: Config$1["ui"];
|
|
54
|
+
readonly uiStaticDir: string | null;
|
|
55
|
+
readonly workspace: string;
|
|
56
|
+
readonly remoteManager: GatewayRemoteManager;
|
|
57
|
+
readonly marketplace: MarketplaceApiConfig;
|
|
58
|
+
readonly extensions: GatewayExtensionManager;
|
|
59
|
+
readonly restartWake: GatewayRestartWakeService;
|
|
60
|
+
bootstrapStatus: ServiceBootstrapStatusStore;
|
|
61
|
+
uiStartup: UiStartupHandle;
|
|
62
|
+
readonly fileWatchers: ServiceFileWatcherRegistry;
|
|
63
|
+
private deferredChannelStarter;
|
|
64
|
+
constructor(deps: GatewayRuntimeDeps, options: GatewayRuntimeOptions);
|
|
65
|
+
start: () => Promise<void>;
|
|
66
|
+
private reset;
|
|
67
|
+
private createBootstrapStatus;
|
|
68
|
+
private createDisabledUiStartup;
|
|
69
|
+
private startUiRuntime;
|
|
70
|
+
private createUiRouterOptions;
|
|
71
|
+
private runRuntimeLoop;
|
|
72
|
+
private startDeferredRuntime;
|
|
73
|
+
readonly startDeferredChannels: () => Promise<void>;
|
|
74
|
+
private readonly startChannels;
|
|
75
|
+
private createMarketplace;
|
|
76
|
+
private cleanup;
|
|
77
|
+
private markUiRuntimeReady;
|
|
78
|
+
private createGatewayController;
|
|
79
|
+
private startSupportServices;
|
|
80
|
+
private installConfigHostHooks;
|
|
81
|
+
private configureIngressHandlers;
|
|
82
|
+
}
|
|
83
|
+
//#endregion
|
|
84
|
+
export { GatewayRuntimeDeps, ServiceGatewayManager };
|
|
85
|
+
//# sourceMappingURL=service-gateway.manager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service-gateway.manager.d.ts","names":[],"sources":["../../src/managers/service-gateway.manager.ts"],"mappings":";;;;;;;;;;;;;;;KA8DK,QAAA,GAAS,YAAA,CAAa,MAAA;AAAA,KACtB,UAAA,GAAa,YAAA,CAAa,UAAA;AAAA,KAE1B,qBAAA;EACH,WAAA,GAAc,OAAA,CAAQ,QAAA;EACtB,WAAA;AAAA;AAAA,KAGU,kBAAA;EACV,cAAA,GAAiB,MAAA,EAAQ,oBAAA,KAAyB,OAAA;EAClD,4BAAA,GAA+B,aAAA;EAC/B,YAAA,GAAe,OAAA;IAAW,WAAA,EAAa,MAAA;IAAyB,IAAA;EAAA,MAAoB,OAAA;EACpF,WAAA,QAAmB,OAAA;EACnB,gBAAA,GAAmB,IAAA,eAAmB,OAAA;EACtC,8BAAA,GAAiC,IAAA,UAAc,KAAA;IAAiC,OAAA;IAAiB,MAAA;EAAA;AAAA;AAAA,cAGtF,qBAAA;EAAA,iBA6BQ,IAAA;EAAA,iBACA,OAAA;EAAA,SA7BV,MAAA,EAAQ,cAAA;EAAA,SACR,WAAA,EAAa,QAAA;EAAA,SACb,UAAA,EAAY,UAAA;EAAA,SACZ,cAAA,EAAgB,cAAA;EAAA,SAChB,UAAA,EAAY,iBAAA;EAAA,SACZ,cAAA,EAAgB,cAAA;EAAA,SAChB,cAAA,EAAgB,oBAAA;EAAA,SAChB,aAAA,EAAe,mBAAA;EAAA,SACf,OAAA,EAAS,OAAA;EAAA,SACT,YAAA,EADgB,oBAAA;EAAA,SAEhB,cAAA;EAAA,SACA,eAAA,EAAiB,kBAAA;EAAA,SACjB,iBAAA,EAAmB,qBAAA;EAAA,SAEnB,aAAA,EAAe,aAAA;EAAA,SACf,QAAA,EAAU,QAAA;EAAA,SACV,WAAA;EAAA,SACA,SAAA;EAAA,SACA,aAAA,EAAe,oBAAA;EAAA,SACf,WAAA,EAAa,oBAAA;EAAA,SACb,UAAA,EAAY,uBAAA;EAAA,SACZ,WAAA,EAAa,yBAAA;EACtB,eAAA,EAAiB,2BAAA;EACjB,SAAA,EAAW,eAAA;EAAA,SACF,YAAA,EAAY,0BAAA;EAAA,QACb,sBAAA;cAGW,IAAA,EAAM,kBAAA,EACN,OAAA,EAAS,qBAAA;EA4D5B,KAAA,QAAkB,OAAA;EAAA,QAaV,KAAA;EAAA,QAOA,qBAAA;EAAA,QAOA,uBAAA;EAAA,QAIA,cAAA;EAAA,QAiCA,qBAAA;EAAA,QAmBA,cAAA;EAAA,QAmBA,oBAAA;EAAA,SAKC,qBAAA,QAAkC,OAAA;EAAA,iBAI1B,aAAA;EAAA,QAWT,iBAAA;EAAA,QASA,OAAA;EAAA,QAOA,kBAAA;EAAA,QAKA,uBAAA;EAAA,QAqBA,oBAAA;EAAA,QAgBA,sBAAA;EAAA,QAiBA,wBAAA;AAAA"}
|