@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 @@
|
|
|
1
|
+
{"version":3,"file":"service-workspace.manager.js","names":[],"sources":["../../src/managers/service-workspace.manager.ts"],"sourcesContent":["import { existsSync, mkdirSync, readFileSync, writeFileSync } from \"node:fs\";\nimport { dirname, join, resolve } from \"node:path\";\nimport { fileURLToPath } from \"node:url\";\nimport { APP_NAME, DEFAULT_PANELS_DIR, DEFAULT_SKILLS_DIR } from \"@nextclaw/core\";\n\nexport class ServiceWorkspaceManager {\n private readonly pkgRoot = resolve(\n fileURLToPath(new URL(\".\", import.meta.url)),\n \"..\",\n \"..\",\n \"..\",\n \"..\",\n \"..\"\n );\n\n readonly createWorkspaceTemplates = (workspace: string, options: { force?: boolean } = {}): { created: string[] } => {\n const created: string[] = [];\n const force = Boolean(options.force);\n const templateDir = this.resolveTemplateDir();\n if (!templateDir) {\n console.warn(\"Warning: Template directory not found. Skipping workspace templates.\");\n }\n const templateFiles = [\n { source: \"AGENTS.md\", target: \"AGENTS.md\" },\n { source: \"SOUL.md\", target: \"SOUL.md\" },\n { source: \"USER.md\", target: \"USER.md\" },\n { source: \"IDENTITY.md\", target: \"IDENTITY.md\" },\n { source: \"TOOLS.md\", target: \"TOOLS.md\" },\n { source: \"BOOT.md\", target: \"BOOT.md\" },\n { source: \"BOOTSTRAP.md\", target: \"BOOTSTRAP.md\" },\n { source: \"MEMORY.md\", target: \"MEMORY.md\" },\n { source: \"memory/MEMORY.md\", target: \"memory/MEMORY.md\" }\n ];\n\n if (templateDir) {\n for (const entry of templateFiles) {\n const filePath = join(workspace, entry.target);\n if (!force && existsSync(filePath)) {\n continue;\n }\n const templatePath = join(templateDir, entry.source);\n if (!existsSync(templatePath)) {\n console.warn(`Warning: Template file missing: ${templatePath}`);\n continue;\n }\n const raw = readFileSync(templatePath, \"utf-8\");\n const content = raw.replace(/\\$\\{APP_NAME\\}/g, APP_NAME);\n mkdirSync(dirname(filePath), { recursive: true });\n writeFileSync(filePath, content);\n created.push(entry.target);\n }\n }\n\n this.ensureWorkspaceDir(workspace, \"memory\", created);\n this.ensureWorkspaceDir(workspace, DEFAULT_SKILLS_DIR, created);\n this.ensureWorkspaceDir(workspace, DEFAULT_PANELS_DIR, created);\n return { created };\n };\n\n private readonly ensureWorkspaceDir = (\n workspace: string,\n dirName: string,\n created: string[],\n ): void => {\n const dir = join(workspace, dirName);\n if (existsSync(dir)) {\n return;\n }\n mkdirSync(dir, { recursive: true });\n created.push(join(dirName, \"\"));\n };\n\n private readonly resolveTemplateDir = (): string | null => {\n const override = process.env.NEXTCLAW_TEMPLATE_DIR?.trim();\n if (override) {\n return override;\n }\n const candidates = [join(this.pkgRoot, \"templates\")];\n for (const candidate of candidates) {\n if (existsSync(candidate)) {\n return candidate;\n }\n }\n return null;\n };\n\n}\n"],"mappings":";;;;;AAKA,IAAa,0BAAb,MAAqC;CACnC,UAA2B,QACzB,cAAc,IAAI,IAAI,KAAK,OAAO,KAAK,IAAI,CAAC,EAC5C,MACA,MACA,MACA,MACA,KACD;CAED,4BAAqC,WAAmB,UAA+B,EAAE,KAA4B;EACnH,MAAM,UAAoB,EAAE;EAC5B,MAAM,QAAQ,QAAQ,QAAQ,MAAM;EACpC,MAAM,cAAc,KAAK,oBAAoB;AAC7C,MAAI,CAAC,YACH,SAAQ,KAAK,uEAAuE;EAEtF,MAAM,gBAAgB;GACpB;IAAE,QAAQ;IAAa,QAAQ;IAAa;GAC5C;IAAE,QAAQ;IAAW,QAAQ;IAAW;GACxC;IAAE,QAAQ;IAAW,QAAQ;IAAW;GACxC;IAAE,QAAQ;IAAe,QAAQ;IAAe;GAChD;IAAE,QAAQ;IAAY,QAAQ;IAAY;GAC1C;IAAE,QAAQ;IAAW,QAAQ;IAAW;GACxC;IAAE,QAAQ;IAAgB,QAAQ;IAAgB;GAClD;IAAE,QAAQ;IAAa,QAAQ;IAAa;GAC5C;IAAE,QAAQ;IAAoB,QAAQ;IAAoB;GAC3D;AAED,MAAI,YACF,MAAK,MAAM,SAAS,eAAe;GACjC,MAAM,WAAW,KAAK,WAAW,MAAM,OAAO;AAC9C,OAAI,CAAC,SAAS,WAAW,SAAS,CAChC;GAEF,MAAM,eAAe,KAAK,aAAa,MAAM,OAAO;AACpD,OAAI,CAAC,WAAW,aAAa,EAAE;AAC7B,YAAQ,KAAK,mCAAmC,eAAe;AAC/D;;GAGF,MAAM,UADM,aAAa,cAAc,QAAQ,CAC3B,QAAQ,mBAAmB,SAAS;AACxD,aAAU,QAAQ,SAAS,EAAE,EAAE,WAAW,MAAM,CAAC;AACjD,iBAAc,UAAU,QAAQ;AAChC,WAAQ,KAAK,MAAM,OAAO;;AAI9B,OAAK,mBAAmB,WAAW,UAAU,QAAQ;AACrD,OAAK,mBAAmB,WAAW,oBAAoB,QAAQ;AAC/D,OAAK,mBAAmB,WAAW,oBAAoB,QAAQ;AAC/D,SAAO,EAAE,SAAS;;CAGpB,sBACE,WACA,SACA,YACS;EACT,MAAM,MAAM,KAAK,WAAW,QAAQ;AACpC,MAAI,WAAW,IAAI,CACjB;AAEF,YAAU,KAAK,EAAE,WAAW,MAAM,CAAC;AACnC,UAAQ,KAAK,KAAK,SAAS,GAAG,CAAC;;CAGjC,2BAA2D;EACzD,MAAM,WAAW,QAAQ,IAAI,uBAAuB,MAAM;AAC1D,MAAI,SACF,QAAO;EAET,MAAM,aAAa,CAAC,KAAK,KAAK,SAAS,YAAY,CAAC;AACpD,OAAK,MAAM,aAAa,WACtB,KAAI,WAAW,UAAU,CACvB,QAAO;AAGX,SAAO"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AgentsListCommandOptions, AgentsNewCommandOptions, AgentsRemoveCommandOptions, AgentsRuntimesCommandOptions, AgentsUpdateCommandOptions } from "../../types/cli.types.js";
|
|
2
|
+
import { AgentManager } from "@nextclaw/kernel";
|
|
3
|
+
|
|
4
|
+
//#region src/services/agent/agent-commands.service.d.ts
|
|
5
|
+
declare class AgentCommands {
|
|
6
|
+
private readonly agentManager;
|
|
7
|
+
constructor(agentManager: AgentManager);
|
|
8
|
+
list: (opts?: AgentsListCommandOptions) => void;
|
|
9
|
+
runtimes: (opts?: AgentsRuntimesCommandOptions) => Promise<void>;
|
|
10
|
+
create: (agentId: string, opts?: AgentsNewCommandOptions) => Promise<void>;
|
|
11
|
+
update: (agentId: string, opts?: AgentsUpdateCommandOptions) => Promise<void>;
|
|
12
|
+
remove: (agentId: string, opts?: AgentsRemoveCommandOptions) => Promise<void>;
|
|
13
|
+
private toAgentListEntry;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { AgentCommands };
|
|
17
|
+
//# sourceMappingURL=agent-commands.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-commands.service.d.ts","names":[],"sources":["../../../src/services/agent/agent-commands.service.ts"],"mappings":";;;;cAKa,aAAA;EAAA,iBACkB,YAAA;cAAA,YAAA,EAAc,YAAA;EAE3C,IAAA,GAAQ,IAAA,GAAM,wBAAA;EAiBd,QAAA,GAAkB,IAAA,GAAM,4BAAA,KAAoC,OAAA;EAyB5D,MAAA,GAAgB,OAAA,UAAiB,IAAA,GAAM,uBAAA,KAA+B,OAAA;EAuBtE,MAAA,GAAgB,OAAA,UAAiB,IAAA,GAAM,0BAAA,KAAkC,OAAA;EAsBzE,MAAA,GAAgB,OAAA,UAAiB,IAAA,GAAM,0BAAA,KAAkC,OAAA;EAAA,QAejE,gBAAA;AAAA"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { listAvailableAgentRuntimes } from "../../utils/agent-runtime.utils.js";
|
|
2
|
+
//#region src/services/agent/agent-commands.service.ts
|
|
3
|
+
var AgentCommands = class {
|
|
4
|
+
constructor(agentManager) {
|
|
5
|
+
this.agentManager = agentManager;
|
|
6
|
+
}
|
|
7
|
+
list = (opts = {}) => {
|
|
8
|
+
const agents = this.agentManager.listAgents().map((agent) => this.toAgentListEntry(agent));
|
|
9
|
+
if (opts.json) {
|
|
10
|
+
console.log(JSON.stringify(agents, null, 2));
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
for (const agent of agents) {
|
|
14
|
+
const head = agent.builtIn ? `${agent.id} (built-in)` : agent.id;
|
|
15
|
+
console.log(head);
|
|
16
|
+
console.log(` name: ${agent.displayName ?? "-"}`);
|
|
17
|
+
console.log(` description: ${agent.description ?? "-"}`);
|
|
18
|
+
console.log(` home: ${agent.workspace}`);
|
|
19
|
+
console.log(` avatar: ${agent.avatar ?? "-"}`);
|
|
20
|
+
console.log(` runtime: ${agent.runtime ?? "-"}`);
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
runtimes = async (opts = {}) => {
|
|
24
|
+
const describeMode = opts.probe ? "probe" : "observation";
|
|
25
|
+
const listed = await listAvailableAgentRuntimes({ describeMode });
|
|
26
|
+
if (opts.json) {
|
|
27
|
+
console.log(JSON.stringify({
|
|
28
|
+
defaultRuntime: listed.defaultRuntime,
|
|
29
|
+
describeMode,
|
|
30
|
+
runtimes: listed.runtimes
|
|
31
|
+
}, null, 2));
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
for (const runtime of listed.runtimes) {
|
|
35
|
+
const head = runtime.default ? `${runtime.value} (default)` : runtime.value;
|
|
36
|
+
console.log(head);
|
|
37
|
+
console.log(` label: ${runtime.label}`);
|
|
38
|
+
console.log(` source: ${runtime.source}`);
|
|
39
|
+
console.log(` ready: ${runtime.ready === false ? "no" : "yes"}`);
|
|
40
|
+
console.log(` reason: ${runtime.reason ?? "-"}`);
|
|
41
|
+
console.log(` reasonMessage: ${runtime.reasonMessage ?? "-"}`);
|
|
42
|
+
console.log(` recommendedModel: ${runtime.recommendedModel ?? "-"}`);
|
|
43
|
+
console.log(` supportedModels: ${runtime.supportedModels?.join(", ") ?? "-"}`);
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
create = async (agentId, opts = {}) => {
|
|
47
|
+
const created = await this.agentManager.createAgent({
|
|
48
|
+
id: agentId,
|
|
49
|
+
displayName: opts.name,
|
|
50
|
+
description: opts.description,
|
|
51
|
+
avatar: opts.avatar,
|
|
52
|
+
home: opts.home,
|
|
53
|
+
runtime: opts.runtime
|
|
54
|
+
});
|
|
55
|
+
if (opts.json) {
|
|
56
|
+
console.log(JSON.stringify({ agent: created }, null, 2));
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
console.log(`✓ Created agent ${created.id}`);
|
|
60
|
+
console.log(` name: ${created.displayName ?? "-"}`);
|
|
61
|
+
console.log(` description: ${created.description ?? "-"}`);
|
|
62
|
+
console.log(` home: ${created.workspace}`);
|
|
63
|
+
console.log(` avatar: ${created.avatar ?? "-"}`);
|
|
64
|
+
console.log(` runtime: ${created.runtime ?? created.engine ?? "-"}`);
|
|
65
|
+
};
|
|
66
|
+
update = async (agentId, opts = {}) => {
|
|
67
|
+
const updated = await this.agentManager.updateAgent({
|
|
68
|
+
id: agentId,
|
|
69
|
+
displayName: opts.name,
|
|
70
|
+
description: opts.description,
|
|
71
|
+
avatar: opts.avatar,
|
|
72
|
+
runtime: opts.runtime
|
|
73
|
+
});
|
|
74
|
+
if (opts.json) {
|
|
75
|
+
console.log(JSON.stringify({ agent: updated }, null, 2));
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
console.log(`✓ Updated agent ${updated.id}`);
|
|
79
|
+
console.log(` name: ${updated.displayName ?? "-"}`);
|
|
80
|
+
console.log(` description: ${updated.description ?? "-"}`);
|
|
81
|
+
console.log(` home: ${updated.workspace}`);
|
|
82
|
+
console.log(` avatar: ${updated.avatar ?? "-"}`);
|
|
83
|
+
console.log(` runtime: ${updated.runtime ?? updated.engine ?? "-"}`);
|
|
84
|
+
};
|
|
85
|
+
remove = async (agentId, opts = {}) => {
|
|
86
|
+
if (!await this.agentManager.removeAgent(agentId)) throw new Error(`agent '${agentId}' not found`);
|
|
87
|
+
if (opts.json) {
|
|
88
|
+
console.log(JSON.stringify({
|
|
89
|
+
removed: true,
|
|
90
|
+
agentId
|
|
91
|
+
}, null, 2));
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
console.log(`✓ Removed agent ${agentId}`);
|
|
95
|
+
};
|
|
96
|
+
toAgentListEntry = (agent) => {
|
|
97
|
+
return {
|
|
98
|
+
id: agent.id,
|
|
99
|
+
displayName: agent.displayName ?? null,
|
|
100
|
+
description: agent.description ?? null,
|
|
101
|
+
avatar: agent.avatar ?? null,
|
|
102
|
+
workspace: agent.workspace,
|
|
103
|
+
runtime: agent.runtime ?? agent.engine ?? null,
|
|
104
|
+
builtIn: agent.builtIn === true
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
//#endregion
|
|
109
|
+
export { AgentCommands };
|
|
110
|
+
|
|
111
|
+
//# sourceMappingURL=agent-commands.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-commands.service.js","names":[],"sources":["../../../src/services/agent/agent-commands.service.ts"],"sourcesContent":["import type { EffectiveAgentProfile } from \"@nextclaw/core\";\nimport type { AgentManager } from \"@nextclaw/kernel\";\nimport { listAvailableAgentRuntimes } from \"@nextclaw-service/utils/agent-runtime.utils.js\";\nimport type { AgentsListCommandOptions, AgentsNewCommandOptions, AgentsRemoveCommandOptions, AgentsRuntimesCommandOptions, AgentsUpdateCommandOptions } from \"@nextclaw-service/types/cli.types.js\";\n\nexport class AgentCommands {\n constructor(private readonly agentManager: AgentManager) {}\n\n list = (opts: AgentsListCommandOptions = {}): void => {\n const agents = this.agentManager.listAgents().map((agent) => this.toAgentListEntry(agent));\n if (opts.json) {\n console.log(JSON.stringify(agents, null, 2));\n return;\n }\n for (const agent of agents) {\n const head = agent.builtIn ? `${agent.id} (built-in)` : agent.id;\n console.log(head);\n console.log(` name: ${agent.displayName ?? \"-\"}`);\n console.log(` description: ${agent.description ?? \"-\"}`);\n console.log(` home: ${agent.workspace}`);\n console.log(` avatar: ${agent.avatar ?? \"-\"}`);\n console.log(` runtime: ${agent.runtime ?? \"-\"}`);\n }\n };\n\n runtimes = async (opts: AgentsRuntimesCommandOptions = {}): Promise<void> => {\n const describeMode = opts.probe ? \"probe\" : \"observation\";\n const listed = await listAvailableAgentRuntimes({ describeMode });\n if (opts.json) {\n console.log(JSON.stringify({\n defaultRuntime: listed.defaultRuntime,\n describeMode,\n runtimes: listed.runtimes,\n }, null, 2));\n return;\n }\n\n for (const runtime of listed.runtimes) {\n const head = runtime.default ? `${runtime.value} (default)` : runtime.value;\n console.log(head);\n console.log(` label: ${runtime.label}`);\n console.log(` source: ${runtime.source}`);\n console.log(` ready: ${runtime.ready === false ? \"no\" : \"yes\"}`);\n console.log(` reason: ${runtime.reason ?? \"-\"}`);\n console.log(` reasonMessage: ${runtime.reasonMessage ?? \"-\"}`);\n console.log(` recommendedModel: ${runtime.recommendedModel ?? \"-\"}`);\n console.log(` supportedModels: ${runtime.supportedModels?.join(\", \") ?? \"-\"}`);\n }\n };\n\n create = async (agentId: string, opts: AgentsNewCommandOptions = {}): Promise<void> => {\n const created = await this.agentManager.createAgent({\n id: agentId,\n displayName: opts.name,\n description: opts.description,\n avatar: opts.avatar,\n home: opts.home,\n runtime: opts.runtime\n });\n if (opts.json) {\n console.log(JSON.stringify({\n agent: created\n }, null, 2));\n return;\n }\n console.log(`✓ Created agent ${created.id}`);\n console.log(` name: ${created.displayName ?? \"-\"}`);\n console.log(` description: ${created.description ?? \"-\"}`);\n console.log(` home: ${created.workspace}`);\n console.log(` avatar: ${created.avatar ?? \"-\"}`);\n console.log(` runtime: ${created.runtime ?? created.engine ?? \"-\"}`);\n };\n\n update = async (agentId: string, opts: AgentsUpdateCommandOptions = {}): Promise<void> => {\n const updated = await this.agentManager.updateAgent({\n id: agentId,\n displayName: opts.name,\n description: opts.description,\n avatar: opts.avatar,\n runtime: opts.runtime\n });\n if (opts.json) {\n console.log(JSON.stringify({\n agent: updated\n }, null, 2));\n return;\n }\n console.log(`✓ Updated agent ${updated.id}`);\n console.log(` name: ${updated.displayName ?? \"-\"}`);\n console.log(` description: ${updated.description ?? \"-\"}`);\n console.log(` home: ${updated.workspace}`);\n console.log(` avatar: ${updated.avatar ?? \"-\"}`);\n console.log(` runtime: ${updated.runtime ?? updated.engine ?? \"-\"}`);\n };\n\n remove = async (agentId: string, opts: AgentsRemoveCommandOptions = {}): Promise<void> => {\n const removed = await this.agentManager.removeAgent(agentId);\n if (!removed) {\n throw new Error(`agent '${agentId}' not found`);\n }\n if (opts.json) {\n console.log(JSON.stringify({\n removed: true,\n agentId\n }, null, 2));\n return;\n }\n console.log(`✓ Removed agent ${agentId}`);\n };\n\n private toAgentListEntry = (agent: EffectiveAgentProfile) => {\n return {\n id: agent.id,\n displayName: agent.displayName ?? null,\n description: agent.description ?? null,\n avatar: agent.avatar ?? null,\n workspace: agent.workspace,\n runtime: agent.runtime ?? agent.engine ?? null,\n builtIn: agent.builtIn === true\n };\n };\n}\n"],"mappings":"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"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ServiceAutostartCommandOptions } from "../../types/cli.types.js";
|
|
2
|
+
import { HostAutostartService } from "./host-autostart.service.js";
|
|
3
|
+
|
|
4
|
+
//#region src/services/autostart/host-autostart-command.service.d.ts
|
|
5
|
+
type HostAutostartCommandServiceOptions = {
|
|
6
|
+
hostAutostartService?: HostAutostartService;
|
|
7
|
+
};
|
|
8
|
+
declare class HostAutostartCommandService {
|
|
9
|
+
private readonly hostAutostartService;
|
|
10
|
+
constructor(options?: HostAutostartCommandServiceOptions);
|
|
11
|
+
installSystemd: (options?: ServiceAutostartCommandOptions) => Promise<void>;
|
|
12
|
+
uninstallSystemd: (options?: ServiceAutostartCommandOptions) => Promise<void>;
|
|
13
|
+
installLaunchAgent: (options?: ServiceAutostartCommandOptions) => Promise<void>;
|
|
14
|
+
uninstallLaunchAgent: (options?: ServiceAutostartCommandOptions) => Promise<void>;
|
|
15
|
+
installWindowsTask: (options?: ServiceAutostartCommandOptions) => Promise<void>;
|
|
16
|
+
uninstallWindowsTask: (options?: ServiceAutostartCommandOptions) => Promise<void>;
|
|
17
|
+
autostartStatus: (options?: ServiceAutostartCommandOptions) => Promise<void>;
|
|
18
|
+
autostartDoctor: (options?: ServiceAutostartCommandOptions) => Promise<void>;
|
|
19
|
+
private handleInstallResult;
|
|
20
|
+
private handleUninstallResult;
|
|
21
|
+
private printInstallLikeResult;
|
|
22
|
+
private resolveRequiredSystemdScope;
|
|
23
|
+
private resolveOptionalSystemdScope;
|
|
24
|
+
private printAutostartStatus;
|
|
25
|
+
private printAutostartDoctor;
|
|
26
|
+
private formatOwner;
|
|
27
|
+
}
|
|
28
|
+
//#endregion
|
|
29
|
+
export { HostAutostartCommandService };
|
|
30
|
+
//# sourceMappingURL=host-autostart-command.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"host-autostart-command.service.d.ts","names":[],"sources":["../../../src/services/autostart/host-autostart-command.service.ts"],"mappings":";;;;KAYK,kCAAA;EACH,oBAAA,GAAuB,oBAAA;AAAA;AAAA,cAGZ,2BAAA;EAAA,iBACM,oBAAA;cAEL,OAAA,GAAS,kCAAA;EAIrB,cAAA,GAAwB,OAAA,GAAS,8BAAA,KAAsC,OAAA;EAYvE,gBAAA,GAA0B,OAAA,GAAS,8BAAA,KAAsC,OAAA;EAYzE,kBAAA,GAA4B,OAAA,GAAS,8BAAA,KAAsC,OAAA;EAO3E,oBAAA,GAA8B,OAAA,GAAS,8BAAA,KAAsC,OAAA;EAO7E,kBAAA,GAA4B,OAAA,GAAS,8BAAA,KAAsC,OAAA;EAO3E,oBAAA,GAA8B,OAAA,GAAS,8BAAA,KAAsC,OAAA;EAO7E,eAAA,GAAyB,OAAA,GAAS,8BAAA,KAAsC,OAAA;EAgBxE,eAAA,GAAyB,OAAA,GAAS,8BAAA,KAAsC,OAAA;EAAA,QAgBhE,mBAAA;EAAA,QAoBA,qBAAA;EAAA,QAuBA,sBAAA;EAAA,QA6BA,2BAAA;EAAA,QAQA,2BAAA;EAAA,QAeA,oBAAA;EAAA,QAoCA,oBAAA;EAAA,QAQA,WAAA;AAAA"}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import { HostAutostartService } from "./host-autostart.service.js";
|
|
2
|
+
//#region src/services/autostart/host-autostart-command.service.ts
|
|
3
|
+
var HostAutostartCommandService = class {
|
|
4
|
+
hostAutostartService;
|
|
5
|
+
constructor(options = {}) {
|
|
6
|
+
this.hostAutostartService = options.hostAutostartService ?? new HostAutostartService();
|
|
7
|
+
}
|
|
8
|
+
installSystemd = async (options = {}) => {
|
|
9
|
+
const scope = this.resolveRequiredSystemdScope(options);
|
|
10
|
+
if (!scope) {
|
|
11
|
+
process.exitCode = 1;
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
const result = await this.hostAutostartService.installSystemd(scope, { dryRun: Boolean(options.dryRun) });
|
|
15
|
+
this.handleInstallResult(result, options, "systemd autostart installed.");
|
|
16
|
+
};
|
|
17
|
+
uninstallSystemd = async (options = {}) => {
|
|
18
|
+
const scope = this.resolveRequiredSystemdScope(options);
|
|
19
|
+
if (!scope) {
|
|
20
|
+
process.exitCode = 1;
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
const result = await this.hostAutostartService.uninstallSystemd(scope, { dryRun: Boolean(options.dryRun) });
|
|
24
|
+
this.handleUninstallResult(result, options, "systemd autostart uninstalled.");
|
|
25
|
+
};
|
|
26
|
+
installLaunchAgent = async (options = {}) => {
|
|
27
|
+
const result = await this.hostAutostartService.installLaunchAgent({ dryRun: Boolean(options.dryRun) });
|
|
28
|
+
this.handleInstallResult(result, options, "LaunchAgent autostart installed.");
|
|
29
|
+
};
|
|
30
|
+
uninstallLaunchAgent = async (options = {}) => {
|
|
31
|
+
const result = await this.hostAutostartService.uninstallLaunchAgent({ dryRun: Boolean(options.dryRun) });
|
|
32
|
+
this.handleUninstallResult(result, options, "LaunchAgent autostart uninstalled.");
|
|
33
|
+
};
|
|
34
|
+
installWindowsTask = async (options = {}) => {
|
|
35
|
+
const result = await this.hostAutostartService.installWindowsTask({ dryRun: Boolean(options.dryRun) });
|
|
36
|
+
this.handleInstallResult(result, options, "Windows task autostart installed.");
|
|
37
|
+
};
|
|
38
|
+
uninstallWindowsTask = async (options = {}) => {
|
|
39
|
+
const result = await this.hostAutostartService.uninstallWindowsTask({ dryRun: Boolean(options.dryRun) });
|
|
40
|
+
this.handleUninstallResult(result, options, "Windows task autostart uninstalled.");
|
|
41
|
+
};
|
|
42
|
+
autostartStatus = async (options = {}) => {
|
|
43
|
+
const scope = this.resolveOptionalSystemdScope(options);
|
|
44
|
+
if (scope === "invalid") {
|
|
45
|
+
process.exitCode = 1;
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
const status = await this.hostAutostartService.status(scope ?? void 0);
|
|
49
|
+
if (options.json) {
|
|
50
|
+
console.log(JSON.stringify(status, null, 2));
|
|
51
|
+
process.exitCode = 0;
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
this.printAutostartStatus(status);
|
|
55
|
+
process.exitCode = 0;
|
|
56
|
+
};
|
|
57
|
+
autostartDoctor = async (options = {}) => {
|
|
58
|
+
const scope = this.resolveOptionalSystemdScope(options);
|
|
59
|
+
if (scope === "invalid") {
|
|
60
|
+
process.exitCode = 1;
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
const report = await this.hostAutostartService.doctor(scope ?? void 0);
|
|
64
|
+
if (options.json) {
|
|
65
|
+
console.log(JSON.stringify(report, null, 2));
|
|
66
|
+
process.exitCode = report.exitCode;
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
this.printAutostartDoctor(report);
|
|
70
|
+
process.exitCode = report.exitCode;
|
|
71
|
+
};
|
|
72
|
+
handleInstallResult = (result, options, successMessage) => {
|
|
73
|
+
if (options.json) {
|
|
74
|
+
console.log(JSON.stringify(result, null, 2));
|
|
75
|
+
process.exitCode = result.ok ? 0 : 1;
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
if (!result.ok) {
|
|
79
|
+
process.exitCode = 1;
|
|
80
|
+
console.error(`Error: ${result.reasonIfUnavailable ?? "host autostart install failed."}`);
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
this.printInstallLikeResult(result);
|
|
84
|
+
console.log(result.dryRun ? "Dry run complete." : successMessage);
|
|
85
|
+
process.exitCode = 0;
|
|
86
|
+
};
|
|
87
|
+
handleUninstallResult = (result, options, successMessage) => {
|
|
88
|
+
if (options.json) {
|
|
89
|
+
console.log(JSON.stringify(result, null, 2));
|
|
90
|
+
process.exitCode = result.ok ? 0 : 1;
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
if (!result.ok) {
|
|
94
|
+
process.exitCode = 1;
|
|
95
|
+
console.error(`Error: ${result.reasonIfUnavailable ?? "host autostart uninstall failed."}`);
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
this.printInstallLikeResult(result);
|
|
99
|
+
if (!result.removed) console.log("No installed host autostart resource was found.");
|
|
100
|
+
console.log(result.dryRun ? "Dry run complete." : successMessage);
|
|
101
|
+
process.exitCode = 0;
|
|
102
|
+
};
|
|
103
|
+
printInstallLikeResult = (result) => {
|
|
104
|
+
if (result.hostOwner) console.log(`Host autostart owner: ${this.formatOwner(result.hostOwner)}`);
|
|
105
|
+
if (result.scope) console.log(`Scope: ${result.scope}`);
|
|
106
|
+
if (result.resourceName) console.log(`Resource: ${result.resourceName}`);
|
|
107
|
+
if (result.resourcePath) console.log(`Resource path: ${result.resourcePath}`);
|
|
108
|
+
if ("homeDir" in result && result.homeDir) console.log(`Home: ${result.homeDir}`);
|
|
109
|
+
if ("command" in result && result.command) console.log(`Command: ${result.command}`);
|
|
110
|
+
if (result.logHint) console.log(`Logs: ${result.logHint}`);
|
|
111
|
+
for (const action of result.actions) console.log(`- ${action}`);
|
|
112
|
+
};
|
|
113
|
+
resolveRequiredSystemdScope = (options) => {
|
|
114
|
+
if (Boolean(options.user) === Boolean(options.system)) {
|
|
115
|
+
console.error("Error: Choose exactly one scope: --user or --system.");
|
|
116
|
+
return null;
|
|
117
|
+
}
|
|
118
|
+
return options.system ? "system" : "user";
|
|
119
|
+
};
|
|
120
|
+
resolveOptionalSystemdScope = (options) => {
|
|
121
|
+
const { system, user } = options;
|
|
122
|
+
if (user && system) {
|
|
123
|
+
console.error("Error: Choose at most one scope: --user or --system.");
|
|
124
|
+
return "invalid";
|
|
125
|
+
}
|
|
126
|
+
if (system) return "system";
|
|
127
|
+
if (user) return "user";
|
|
128
|
+
return null;
|
|
129
|
+
};
|
|
130
|
+
printAutostartStatus = (status) => {
|
|
131
|
+
console.log("Host autostart status:");
|
|
132
|
+
console.log(`- Supported: ${status.supported ? "yes" : "no"}`);
|
|
133
|
+
console.log(`- Installed: ${status.installed ? "yes" : "no"}`);
|
|
134
|
+
if (status.scope) console.log(`- Scope: ${status.scope}`);
|
|
135
|
+
if (status.hostOwner) console.log(`- Owner: ${this.formatOwner(status.hostOwner)}`);
|
|
136
|
+
if (status.resourceName) console.log(`- Resource: ${status.resourceName}`);
|
|
137
|
+
if (status.resourcePath) console.log(`- Resource path: ${status.resourcePath}`);
|
|
138
|
+
if (status.homeDir) console.log(`- Home: ${status.homeDir}`);
|
|
139
|
+
if (status.command) console.log(`- Command: ${status.command}`);
|
|
140
|
+
if (status.enabled !== null) console.log(`- Enabled: ${status.enabled ? "yes" : "no"}`);
|
|
141
|
+
if (status.active !== null) console.log(`- Active: ${status.active ? "yes" : "no"}`);
|
|
142
|
+
if (status.logHint) console.log(`- Logs: ${status.logHint}`);
|
|
143
|
+
if (status.reasonIfUnavailable) console.log(`- Note: ${status.reasonIfUnavailable}`);
|
|
144
|
+
};
|
|
145
|
+
printAutostartDoctor = (report) => {
|
|
146
|
+
this.printAutostartStatus(report.status);
|
|
147
|
+
console.log("Autostart doctor:");
|
|
148
|
+
for (const check of report.checks) console.log(`- [${check.status}] ${check.name}: ${check.detail}`);
|
|
149
|
+
};
|
|
150
|
+
formatOwner = (owner) => {
|
|
151
|
+
if (owner === "systemd-user-service") return "systemd user service";
|
|
152
|
+
if (owner === "systemd-system-service") return "systemd system service";
|
|
153
|
+
if (owner === "launchd-launch-agent") return "launchd LaunchAgent";
|
|
154
|
+
return "Windows Scheduled Task";
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
//#endregion
|
|
158
|
+
export { HostAutostartCommandService };
|
|
159
|
+
|
|
160
|
+
//# sourceMappingURL=host-autostart-command.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"host-autostart-command.service.js","names":[],"sources":["../../../src/services/autostart/host-autostart-command.service.ts"],"sourcesContent":["import type { ServiceAutostartCommandOptions } from \"@nextclaw-service/types/cli.types.js\";\nimport { HostAutostartService } from \"./host-autostart.service.js\";\nimport type {\n HostAutostartDoctorReport,\n HostAutostartInstallResult,\n HostAutostartOwner,\n HostAutostartScope,\n HostAutostartStatus,\n HostAutostartUninstallResult,\n SystemdScopeFlags,\n} from \"@nextclaw-service/types/host-autostart.types.js\";\n\ntype HostAutostartCommandServiceOptions = {\n hostAutostartService?: HostAutostartService;\n};\n\nexport class HostAutostartCommandService {\n private readonly hostAutostartService: HostAutostartService;\n\n constructor(options: HostAutostartCommandServiceOptions = {}) {\n this.hostAutostartService = options.hostAutostartService ?? new HostAutostartService();\n }\n\n installSystemd = async (options: ServiceAutostartCommandOptions = {}): Promise<void> => {\n const scope = this.resolveRequiredSystemdScope(options);\n if (!scope) {\n process.exitCode = 1;\n return;\n }\n const result = await this.hostAutostartService.installSystemd(scope, {\n dryRun: Boolean(options.dryRun),\n });\n this.handleInstallResult(result, options, \"systemd autostart installed.\");\n };\n\n uninstallSystemd = async (options: ServiceAutostartCommandOptions = {}): Promise<void> => {\n const scope = this.resolveRequiredSystemdScope(options);\n if (!scope) {\n process.exitCode = 1;\n return;\n }\n const result = await this.hostAutostartService.uninstallSystemd(scope, {\n dryRun: Boolean(options.dryRun),\n });\n this.handleUninstallResult(result, options, \"systemd autostart uninstalled.\");\n };\n\n installLaunchAgent = async (options: ServiceAutostartCommandOptions = {}): Promise<void> => {\n const result = await this.hostAutostartService.installLaunchAgent({\n dryRun: Boolean(options.dryRun),\n });\n this.handleInstallResult(result, options, \"LaunchAgent autostart installed.\");\n };\n\n uninstallLaunchAgent = async (options: ServiceAutostartCommandOptions = {}): Promise<void> => {\n const result = await this.hostAutostartService.uninstallLaunchAgent({\n dryRun: Boolean(options.dryRun),\n });\n this.handleUninstallResult(result, options, \"LaunchAgent autostart uninstalled.\");\n };\n\n installWindowsTask = async (options: ServiceAutostartCommandOptions = {}): Promise<void> => {\n const result = await this.hostAutostartService.installWindowsTask({\n dryRun: Boolean(options.dryRun),\n });\n this.handleInstallResult(result, options, \"Windows task autostart installed.\");\n };\n\n uninstallWindowsTask = async (options: ServiceAutostartCommandOptions = {}): Promise<void> => {\n const result = await this.hostAutostartService.uninstallWindowsTask({\n dryRun: Boolean(options.dryRun),\n });\n this.handleUninstallResult(result, options, \"Windows task autostart uninstalled.\");\n };\n\n autostartStatus = async (options: ServiceAutostartCommandOptions = {}): Promise<void> => {\n const scope = this.resolveOptionalSystemdScope(options);\n if (scope === \"invalid\") {\n process.exitCode = 1;\n return;\n }\n const status = await this.hostAutostartService.status(scope ?? undefined);\n if (options.json) {\n console.log(JSON.stringify(status, null, 2));\n process.exitCode = 0;\n return;\n }\n this.printAutostartStatus(status);\n process.exitCode = 0;\n };\n\n autostartDoctor = async (options: ServiceAutostartCommandOptions = {}): Promise<void> => {\n const scope = this.resolveOptionalSystemdScope(options);\n if (scope === \"invalid\") {\n process.exitCode = 1;\n return;\n }\n const report = await this.hostAutostartService.doctor(scope ?? undefined);\n if (options.json) {\n console.log(JSON.stringify(report, null, 2));\n process.exitCode = report.exitCode;\n return;\n }\n this.printAutostartDoctor(report);\n process.exitCode = report.exitCode;\n };\n\n private handleInstallResult = (\n result: HostAutostartInstallResult,\n options: ServiceAutostartCommandOptions,\n successMessage: string,\n ): void => {\n if (options.json) {\n console.log(JSON.stringify(result, null, 2));\n process.exitCode = result.ok ? 0 : 1;\n return;\n }\n if (!result.ok) {\n process.exitCode = 1;\n console.error(`Error: ${result.reasonIfUnavailable ?? \"host autostart install failed.\"}`);\n return;\n }\n this.printInstallLikeResult(result);\n console.log(result.dryRun ? \"Dry run complete.\" : successMessage);\n process.exitCode = 0;\n };\n\n private handleUninstallResult = (\n result: HostAutostartUninstallResult,\n options: ServiceAutostartCommandOptions,\n successMessage: string,\n ): void => {\n if (options.json) {\n console.log(JSON.stringify(result, null, 2));\n process.exitCode = result.ok ? 0 : 1;\n return;\n }\n if (!result.ok) {\n process.exitCode = 1;\n console.error(`Error: ${result.reasonIfUnavailable ?? \"host autostart uninstall failed.\"}`);\n return;\n }\n this.printInstallLikeResult(result);\n if (!result.removed) {\n console.log(\"No installed host autostart resource was found.\");\n }\n console.log(result.dryRun ? \"Dry run complete.\" : successMessage);\n process.exitCode = 0;\n };\n\n private printInstallLikeResult = (\n result: HostAutostartInstallResult | HostAutostartUninstallResult,\n ): void => {\n if (result.hostOwner) {\n console.log(`Host autostart owner: ${this.formatOwner(result.hostOwner)}`);\n }\n if (result.scope) {\n console.log(`Scope: ${result.scope}`);\n }\n if (result.resourceName) {\n console.log(`Resource: ${result.resourceName}`);\n }\n if (result.resourcePath) {\n console.log(`Resource path: ${result.resourcePath}`);\n }\n if (\"homeDir\" in result && result.homeDir) {\n console.log(`Home: ${result.homeDir}`);\n }\n if (\"command\" in result && result.command) {\n console.log(`Command: ${result.command}`);\n }\n if (result.logHint) {\n console.log(`Logs: ${result.logHint}`);\n }\n for (const action of result.actions) {\n console.log(`- ${action}`);\n }\n };\n\n private resolveRequiredSystemdScope = (options: SystemdScopeFlags): HostAutostartScope | null => {\n if (Boolean(options.user) === Boolean(options.system)) {\n console.error(\"Error: Choose exactly one scope: --user or --system.\");\n return null;\n }\n return options.system ? \"system\" : \"user\";\n };\n\n private resolveOptionalSystemdScope = (options: SystemdScopeFlags): HostAutostartScope | \"invalid\" | null => {\n const { system, user } = options;\n if (user && system) {\n console.error(\"Error: Choose at most one scope: --user or --system.\");\n return \"invalid\";\n }\n if (system) {\n return \"system\";\n }\n if (user) {\n return \"user\";\n }\n return null;\n };\n\n private printAutostartStatus = (status: HostAutostartStatus): void => {\n console.log(\"Host autostart status:\");\n console.log(`- Supported: ${status.supported ? \"yes\" : \"no\"}`);\n console.log(`- Installed: ${status.installed ? \"yes\" : \"no\"}`);\n if (status.scope) {\n console.log(`- Scope: ${status.scope}`);\n }\n if (status.hostOwner) {\n console.log(`- Owner: ${this.formatOwner(status.hostOwner)}`);\n }\n if (status.resourceName) {\n console.log(`- Resource: ${status.resourceName}`);\n }\n if (status.resourcePath) {\n console.log(`- Resource path: ${status.resourcePath}`);\n }\n if (status.homeDir) {\n console.log(`- Home: ${status.homeDir}`);\n }\n if (status.command) {\n console.log(`- Command: ${status.command}`);\n }\n if (status.enabled !== null) {\n console.log(`- Enabled: ${status.enabled ? \"yes\" : \"no\"}`);\n }\n if (status.active !== null) {\n console.log(`- Active: ${status.active ? \"yes\" : \"no\"}`);\n }\n if (status.logHint) {\n console.log(`- Logs: ${status.logHint}`);\n }\n if (status.reasonIfUnavailable) {\n console.log(`- Note: ${status.reasonIfUnavailable}`);\n }\n };\n\n private printAutostartDoctor = (report: HostAutostartDoctorReport): void => {\n this.printAutostartStatus(report.status);\n console.log(\"Autostart doctor:\");\n for (const check of report.checks) {\n console.log(`- [${check.status}] ${check.name}: ${check.detail}`);\n }\n };\n\n private formatOwner = (owner: HostAutostartOwner): string => {\n if (owner === \"systemd-user-service\") {\n return \"systemd user service\";\n }\n if (owner === \"systemd-system-service\") {\n return \"systemd system service\";\n }\n if (owner === \"launchd-launch-agent\") {\n return \"launchd LaunchAgent\";\n }\n return \"Windows Scheduled Task\";\n };\n}\n"],"mappings":"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"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
//#region src/services/autostart/host-autostart-runtime.service.d.ts
|
|
2
|
+
type HostAutostartRuntimeServiceOptions = {
|
|
3
|
+
nodePath?: string;
|
|
4
|
+
argvEntry?: string;
|
|
5
|
+
importMetaUrl?: string;
|
|
6
|
+
getDataDir?: () => string;
|
|
7
|
+
};
|
|
8
|
+
type HostAutostartLaunchPlan = {
|
|
9
|
+
homeDir: string;
|
|
10
|
+
command: string;
|
|
11
|
+
args: string[];
|
|
12
|
+
};
|
|
13
|
+
declare class HostAutostartRuntimeService {
|
|
14
|
+
private readonly nodePath;
|
|
15
|
+
private readonly argvEntry;
|
|
16
|
+
private readonly importMetaUrl;
|
|
17
|
+
private readonly getResolvedDataDir;
|
|
18
|
+
constructor(options?: HostAutostartRuntimeServiceOptions);
|
|
19
|
+
resolveForegroundServeLaunch: () => HostAutostartLaunchPlan;
|
|
20
|
+
private resolveCliEntry;
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
export { HostAutostartLaunchPlan, HostAutostartRuntimeService };
|
|
24
|
+
//# sourceMappingURL=host-autostart-runtime.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"host-autostart-runtime.service.d.ts","names":[],"sources":["../../../src/services/autostart/host-autostart-runtime.service.ts"],"mappings":";KAKK,kCAAA;EACH,QAAA;EACA,SAAA;EACA,aAAA;EACA,UAAA;AAAA;AAAA,KAGU,uBAAA;EACV,OAAA;EACA,OAAA;EACA,IAAA;AAAA;AAAA,cAkBW,2BAAA;EAAA,iBACM,QAAA;EAAA,iBACA,SAAA;EAAA,iBACA,aAAA;EAAA,iBACA,kBAAA;cAEL,OAAA,GAAS,kCAAA;EAOrB,4BAAA,QAAmC,uBAAA;EAAA,QAW3B,eAAA;AAAA"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { createRequire } from "node:module";
|
|
2
|
+
import { getDataDir } from "@nextclaw/core";
|
|
3
|
+
import { extname, isAbsolute, resolve, win32 } from "node:path";
|
|
4
|
+
import { fileURLToPath } from "node:url";
|
|
5
|
+
//#region src/services/autostart/host-autostart-runtime.service.ts
|
|
6
|
+
const TYPESCRIPT_EXTENSIONS = new Set([
|
|
7
|
+
".ts",
|
|
8
|
+
".tsx",
|
|
9
|
+
".mts",
|
|
10
|
+
".cts"
|
|
11
|
+
]);
|
|
12
|
+
const require = createRequire(import.meta.url);
|
|
13
|
+
const resolveCliAppEntryFromImportMeta = (importMetaUrl) => {
|
|
14
|
+
const modulePath = fileURLToPath(importMetaUrl);
|
|
15
|
+
const cliRootIndex = modulePath.replace(/\\/g, "/").lastIndexOf("/cli/");
|
|
16
|
+
if (cliRootIndex === -1) return fileURLToPath(new URL("../../../app/index.js", importMetaUrl));
|
|
17
|
+
const extension = extname(modulePath) || ".js";
|
|
18
|
+
return resolve(modulePath.slice(0, cliRootIndex + 5), "app", `index${extension}`);
|
|
19
|
+
};
|
|
20
|
+
var HostAutostartRuntimeService = class {
|
|
21
|
+
nodePath;
|
|
22
|
+
argvEntry;
|
|
23
|
+
importMetaUrl;
|
|
24
|
+
getResolvedDataDir;
|
|
25
|
+
constructor(options = {}) {
|
|
26
|
+
this.nodePath = options.nodePath ?? process.execPath;
|
|
27
|
+
this.argvEntry = options.argvEntry ?? process.argv[1];
|
|
28
|
+
this.importMetaUrl = options.importMetaUrl ?? import.meta.url;
|
|
29
|
+
this.getResolvedDataDir = options.getDataDir ?? getDataDir;
|
|
30
|
+
}
|
|
31
|
+
resolveForegroundServeLaunch = () => {
|
|
32
|
+
const cliEntry = this.resolveCliEntry();
|
|
33
|
+
return {
|
|
34
|
+
homeDir: this.getResolvedDataDir(),
|
|
35
|
+
command: this.nodePath,
|
|
36
|
+
args: TYPESCRIPT_EXTENSIONS.has(extname(cliEntry).toLowerCase()) ? [
|
|
37
|
+
require.resolve("tsx/cli"),
|
|
38
|
+
cliEntry,
|
|
39
|
+
"serve"
|
|
40
|
+
] : [cliEntry, "serve"]
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
resolveCliEntry = () => {
|
|
44
|
+
const argvEntry = this.argvEntry?.trim();
|
|
45
|
+
if (argvEntry) {
|
|
46
|
+
if (isAbsolute(argvEntry) || win32.isAbsolute(argvEntry)) return argvEntry;
|
|
47
|
+
return resolve(argvEntry);
|
|
48
|
+
}
|
|
49
|
+
return resolveCliAppEntryFromImportMeta(this.importMetaUrl);
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
//#endregion
|
|
53
|
+
export { HostAutostartRuntimeService };
|
|
54
|
+
|
|
55
|
+
//# sourceMappingURL=host-autostart-runtime.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"host-autostart-runtime.service.js","names":["windowsPath"],"sources":["../../../src/services/autostart/host-autostart-runtime.service.ts"],"sourcesContent":["import { createRequire } from \"node:module\";\nimport { extname, isAbsolute, resolve, win32 as windowsPath } from \"node:path\";\nimport { fileURLToPath } from \"node:url\";\nimport { getDataDir } from \"@nextclaw/core\";\n\ntype HostAutostartRuntimeServiceOptions = {\n nodePath?: string;\n argvEntry?: string;\n importMetaUrl?: string;\n getDataDir?: () => string;\n};\n\nexport type HostAutostartLaunchPlan = {\n homeDir: string;\n command: string;\n args: string[];\n};\n\nconst TYPESCRIPT_EXTENSIONS = new Set([\".ts\", \".tsx\", \".mts\", \".cts\"]);\nconst require = createRequire(import.meta.url);\n\nconst resolveCliAppEntryFromImportMeta = (importMetaUrl: string): string => {\n const modulePath = fileURLToPath(importMetaUrl);\n const normalizedPath = modulePath.replace(/\\\\/g, \"/\");\n const cliRootIndex = normalizedPath.lastIndexOf(\"/cli/\");\n if (cliRootIndex === -1) {\n return fileURLToPath(new URL(\"../../../app/index.js\", importMetaUrl));\n }\n const extension = extname(modulePath) || \".js\";\n const cliRootPath = modulePath.slice(0, cliRootIndex + \"/cli/\".length);\n return resolve(cliRootPath, \"app\", `index${extension}`);\n};\n\nexport class HostAutostartRuntimeService {\n private readonly nodePath: string;\n private readonly argvEntry: string | undefined;\n private readonly importMetaUrl: string;\n private readonly getResolvedDataDir: () => string;\n\n constructor(options: HostAutostartRuntimeServiceOptions = {}) {\n this.nodePath = options.nodePath ?? process.execPath;\n this.argvEntry = options.argvEntry ?? process.argv[1];\n this.importMetaUrl = options.importMetaUrl ?? import.meta.url;\n this.getResolvedDataDir = options.getDataDir ?? getDataDir;\n }\n\n resolveForegroundServeLaunch = (): HostAutostartLaunchPlan => {\n const cliEntry = this.resolveCliEntry();\n return {\n homeDir: this.getResolvedDataDir(),\n command: this.nodePath,\n args: TYPESCRIPT_EXTENSIONS.has(extname(cliEntry).toLowerCase())\n ? [require.resolve(\"tsx/cli\"), cliEntry, \"serve\"]\n : [cliEntry, \"serve\"],\n };\n };\n\n private resolveCliEntry = (): string => {\n const argvEntry = this.argvEntry?.trim();\n if (argvEntry) {\n if (isAbsolute(argvEntry) || windowsPath.isAbsolute(argvEntry)) {\n return argvEntry;\n }\n return resolve(argvEntry);\n }\n return resolveCliAppEntryFromImportMeta(this.importMetaUrl);\n };\n}\n"],"mappings":";;;;;AAkBA,MAAM,wBAAwB,IAAI,IAAI;CAAC;CAAO;CAAQ;CAAQ;CAAO,CAAC;AACtE,MAAM,UAAU,cAAc,OAAO,KAAK,IAAI;AAE9C,MAAM,oCAAoC,kBAAkC;CAC1E,MAAM,aAAa,cAAc,cAAc;CAE/C,MAAM,eADiB,WAAW,QAAQ,OAAO,IAAI,CACjB,YAAY,QAAQ;AACxD,KAAI,iBAAiB,GACnB,QAAO,cAAc,IAAI,IAAI,yBAAyB,cAAc,CAAC;CAEvE,MAAM,YAAY,QAAQ,WAAW,IAAI;AAEzC,QAAO,QADa,WAAW,MAAM,GAAG,eAAe,EAAe,EAC1C,OAAO,QAAQ,YAAY;;AAGzD,IAAa,8BAAb,MAAyC;CACvC;CACA;CACA;CACA;CAEA,YAAY,UAA8C,EAAE,EAAE;AAC5D,OAAK,WAAW,QAAQ,YAAY,QAAQ;AAC5C,OAAK,YAAY,QAAQ,aAAa,QAAQ,KAAK;AACnD,OAAK,gBAAgB,QAAQ,iBAAiB,OAAO,KAAK;AAC1D,OAAK,qBAAqB,QAAQ,cAAc;;CAGlD,qCAA8D;EAC5D,MAAM,WAAW,KAAK,iBAAiB;AACvC,SAAO;GACL,SAAS,KAAK,oBAAoB;GAClC,SAAS,KAAK;GACd,MAAM,sBAAsB,IAAI,QAAQ,SAAS,CAAC,aAAa,CAAC,GAC5D;IAAC,QAAQ,QAAQ,UAAU;IAAE;IAAU;IAAQ,GAC/C,CAAC,UAAU,QAAQ;GACxB;;CAGH,wBAAwC;EACtC,MAAM,YAAY,KAAK,WAAW,MAAM;AACxC,MAAI,WAAW;AACb,OAAI,WAAW,UAAU,IAAIA,MAAY,WAAW,UAAU,CAC5D,QAAO;AAET,UAAO,QAAQ,UAAU;;AAE3B,SAAO,iCAAiC,KAAK,cAAc"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { HostAutostartDoctorReport, HostAutostartInstallResult, HostAutostartScope, HostAutostartStatus, HostAutostartUninstallResult } from "../../types/host-autostart.types.js";
|
|
2
|
+
import { LinuxSystemdAutostartService } from "./linux-systemd-autostart.service.js";
|
|
3
|
+
import { MacosLaunchAgentAutostartService } from "./macos-launch-agent-autostart.service.js";
|
|
4
|
+
import { WindowsTaskAutostartService } from "./windows-task-autostart.service.js";
|
|
5
|
+
|
|
6
|
+
//#region src/services/autostart/host-autostart.service.d.ts
|
|
7
|
+
type HostAutostartServiceOptions = {
|
|
8
|
+
linuxSystemdService?: LinuxSystemdAutostartService;
|
|
9
|
+
macosLaunchAgentService?: MacosLaunchAgentAutostartService;
|
|
10
|
+
windowsTaskService?: WindowsTaskAutostartService;
|
|
11
|
+
platform?: NodeJS.Platform;
|
|
12
|
+
};
|
|
13
|
+
declare class HostAutostartService {
|
|
14
|
+
private readonly platform;
|
|
15
|
+
private readonly linuxSystemdService;
|
|
16
|
+
private readonly macosLaunchAgentService;
|
|
17
|
+
private readonly windowsTaskService;
|
|
18
|
+
constructor(options?: HostAutostartServiceOptions);
|
|
19
|
+
installSystemd: (scope: HostAutostartScope, options?: {
|
|
20
|
+
dryRun?: boolean;
|
|
21
|
+
}) => Promise<HostAutostartInstallResult>;
|
|
22
|
+
uninstallSystemd: (scope: HostAutostartScope, options?: {
|
|
23
|
+
dryRun?: boolean;
|
|
24
|
+
}) => Promise<HostAutostartUninstallResult>;
|
|
25
|
+
installLaunchAgent: (options?: {
|
|
26
|
+
dryRun?: boolean;
|
|
27
|
+
}) => Promise<HostAutostartInstallResult>;
|
|
28
|
+
uninstallLaunchAgent: (options?: {
|
|
29
|
+
dryRun?: boolean;
|
|
30
|
+
}) => Promise<HostAutostartUninstallResult>;
|
|
31
|
+
installWindowsTask: (options?: {
|
|
32
|
+
dryRun?: boolean;
|
|
33
|
+
}) => Promise<HostAutostartInstallResult>;
|
|
34
|
+
uninstallWindowsTask: (options?: {
|
|
35
|
+
dryRun?: boolean;
|
|
36
|
+
}) => Promise<HostAutostartUninstallResult>;
|
|
37
|
+
status: (scope?: HostAutostartScope) => Promise<HostAutostartStatus>;
|
|
38
|
+
doctor: (scope?: HostAutostartScope) => Promise<HostAutostartDoctorReport>;
|
|
39
|
+
}
|
|
40
|
+
//#endregion
|
|
41
|
+
export { HostAutostartService };
|
|
42
|
+
//# sourceMappingURL=host-autostart.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"host-autostart.service.d.ts","names":[],"sources":["../../../src/services/autostart/host-autostart.service.ts"],"mappings":";;;;;;KAWK,2BAAA;EACH,mBAAA,GAAsB,4BAAA;EACtB,uBAAA,GAA0B,gCAAA;EAC1B,kBAAA,GAAqB,2BAAA;EACrB,QAAA,GAAW,MAAA,CAAO,QAAA;AAAA;AAAA,cAGP,oBAAA;EAAA,iBACM,QAAA;EAAA,iBACA,mBAAA;EAAA,iBACA,uBAAA;EAAA,iBACA,kBAAA;cAEL,OAAA,GAAS,2BAAA;EAOrB,cAAA,GAAwB,KAAA,EAAO,kBAAA,EAAoB,OAAA;IAAW,MAAA;EAAA,MAA0B,OAAA,CAAQ,0BAAA;EAIhG,gBAAA,GAA0B,KAAA,EAAO,kBAAA,EAAoB,OAAA;IAAW,MAAA;EAAA,MAA0B,OAAA,CAAQ,4BAAA;EAIlG,kBAAA,GAA4B,OAAA;IAAW,MAAA;EAAA,MAA0B,OAAA,CAAQ,0BAAA;EAIzE,oBAAA,GAA8B,OAAA;IAAW,MAAA;EAAA,MAA0B,OAAA,CAAQ,4BAAA;EAI3E,kBAAA,GAA4B,OAAA;IAAW,MAAA;EAAA,MAA0B,OAAA,CAAQ,0BAAA;EAIzE,oBAAA,GAA8B,OAAA;IAAW,MAAA;EAAA,MAA0B,OAAA,CAAQ,4BAAA;EAI3E,MAAA,GAAgB,KAAA,GAAQ,kBAAA,KAAqB,OAAA,CAAQ,mBAAA;EAarD,MAAA,GAAgB,KAAA,GAAQ,kBAAA,KAAqB,OAAA,CAAQ,yBAAA;AAAA"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { LinuxSystemdAutostartService } from "./linux-systemd-autostart.service.js";
|
|
2
|
+
import { MacosLaunchAgentAutostartService } from "./macos-launch-agent-autostart.service.js";
|
|
3
|
+
import { WindowsTaskAutostartService } from "./windows-task-autostart.service.js";
|
|
4
|
+
//#region src/services/autostart/host-autostart.service.ts
|
|
5
|
+
var HostAutostartService = class {
|
|
6
|
+
platform;
|
|
7
|
+
linuxSystemdService;
|
|
8
|
+
macosLaunchAgentService;
|
|
9
|
+
windowsTaskService;
|
|
10
|
+
constructor(options = {}) {
|
|
11
|
+
this.platform = options.platform ?? process.platform;
|
|
12
|
+
this.linuxSystemdService = options.linuxSystemdService ?? new LinuxSystemdAutostartService();
|
|
13
|
+
this.macosLaunchAgentService = options.macosLaunchAgentService ?? new MacosLaunchAgentAutostartService();
|
|
14
|
+
this.windowsTaskService = options.windowsTaskService ?? new WindowsTaskAutostartService();
|
|
15
|
+
}
|
|
16
|
+
installSystemd = async (scope, options = {}) => {
|
|
17
|
+
return await this.linuxSystemdService.install(scope, options);
|
|
18
|
+
};
|
|
19
|
+
uninstallSystemd = async (scope, options = {}) => {
|
|
20
|
+
return await this.linuxSystemdService.uninstall(scope, options);
|
|
21
|
+
};
|
|
22
|
+
installLaunchAgent = async (options = {}) => {
|
|
23
|
+
return await this.macosLaunchAgentService.install("user", options);
|
|
24
|
+
};
|
|
25
|
+
uninstallLaunchAgent = async (options = {}) => {
|
|
26
|
+
return await this.macosLaunchAgentService.uninstall("user", options);
|
|
27
|
+
};
|
|
28
|
+
installWindowsTask = async (options = {}) => {
|
|
29
|
+
return await this.windowsTaskService.install("user", options);
|
|
30
|
+
};
|
|
31
|
+
uninstallWindowsTask = async (options = {}) => {
|
|
32
|
+
return await this.windowsTaskService.uninstall("user", options);
|
|
33
|
+
};
|
|
34
|
+
status = async (scope) => {
|
|
35
|
+
if (this.platform === "linux") return await this.linuxSystemdService.status(scope);
|
|
36
|
+
if (this.platform === "darwin") return await this.macosLaunchAgentService.status(scope);
|
|
37
|
+
if (this.platform === "win32") return await this.windowsTaskService.status(scope);
|
|
38
|
+
return await this.linuxSystemdService.status(scope);
|
|
39
|
+
};
|
|
40
|
+
doctor = async (scope) => {
|
|
41
|
+
if (this.platform === "linux") return await this.linuxSystemdService.doctor(scope);
|
|
42
|
+
if (this.platform === "darwin") return await this.macosLaunchAgentService.doctor(scope);
|
|
43
|
+
if (this.platform === "win32") return await this.windowsTaskService.doctor(scope);
|
|
44
|
+
return await this.linuxSystemdService.doctor(scope);
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
//#endregion
|
|
48
|
+
export { HostAutostartService };
|
|
49
|
+
|
|
50
|
+
//# sourceMappingURL=host-autostart.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"host-autostart.service.js","names":[],"sources":["../../../src/services/autostart/host-autostart.service.ts"],"sourcesContent":["import type {\n HostAutostartDoctorReport,\n HostAutostartInstallResult,\n HostAutostartScope,\n HostAutostartStatus,\n HostAutostartUninstallResult,\n} from \"@nextclaw-service/types/host-autostart.types.js\";\nimport { LinuxSystemdAutostartService } from \"./linux-systemd-autostart.service.js\";\nimport { MacosLaunchAgentAutostartService } from \"./macos-launch-agent-autostart.service.js\";\nimport { WindowsTaskAutostartService } from \"./windows-task-autostart.service.js\";\n\ntype HostAutostartServiceOptions = {\n linuxSystemdService?: LinuxSystemdAutostartService;\n macosLaunchAgentService?: MacosLaunchAgentAutostartService;\n windowsTaskService?: WindowsTaskAutostartService;\n platform?: NodeJS.Platform;\n};\n\nexport class HostAutostartService {\n private readonly platform: NodeJS.Platform;\n private readonly linuxSystemdService: LinuxSystemdAutostartService;\n private readonly macosLaunchAgentService: MacosLaunchAgentAutostartService;\n private readonly windowsTaskService: WindowsTaskAutostartService;\n\n constructor(options: HostAutostartServiceOptions = {}) {\n this.platform = options.platform ?? process.platform;\n this.linuxSystemdService = options.linuxSystemdService ?? new LinuxSystemdAutostartService();\n this.macosLaunchAgentService = options.macosLaunchAgentService ?? new MacosLaunchAgentAutostartService();\n this.windowsTaskService = options.windowsTaskService ?? new WindowsTaskAutostartService();\n }\n\n installSystemd = async (scope: HostAutostartScope, options: { dryRun?: boolean } = {}): Promise<HostAutostartInstallResult> => {\n return await this.linuxSystemdService.install(scope, options);\n };\n\n uninstallSystemd = async (scope: HostAutostartScope, options: { dryRun?: boolean } = {}): Promise<HostAutostartUninstallResult> => {\n return await this.linuxSystemdService.uninstall(scope, options);\n };\n\n installLaunchAgent = async (options: { dryRun?: boolean } = {}): Promise<HostAutostartInstallResult> => {\n return await this.macosLaunchAgentService.install(\"user\", options);\n };\n\n uninstallLaunchAgent = async (options: { dryRun?: boolean } = {}): Promise<HostAutostartUninstallResult> => {\n return await this.macosLaunchAgentService.uninstall(\"user\", options);\n };\n\n installWindowsTask = async (options: { dryRun?: boolean } = {}): Promise<HostAutostartInstallResult> => {\n return await this.windowsTaskService.install(\"user\", options);\n };\n\n uninstallWindowsTask = async (options: { dryRun?: boolean } = {}): Promise<HostAutostartUninstallResult> => {\n return await this.windowsTaskService.uninstall(\"user\", options);\n };\n\n status = async (scope?: HostAutostartScope): Promise<HostAutostartStatus> => {\n if (this.platform === \"linux\") {\n return await this.linuxSystemdService.status(scope);\n }\n if (this.platform === \"darwin\") {\n return await this.macosLaunchAgentService.status(scope);\n }\n if (this.platform === \"win32\") {\n return await this.windowsTaskService.status(scope);\n }\n return await this.linuxSystemdService.status(scope);\n };\n\n doctor = async (scope?: HostAutostartScope): Promise<HostAutostartDoctorReport> => {\n if (this.platform === \"linux\") {\n return await this.linuxSystemdService.doctor(scope);\n }\n if (this.platform === \"darwin\") {\n return await this.macosLaunchAgentService.doctor(scope);\n }\n if (this.platform === \"win32\") {\n return await this.windowsTaskService.doctor(scope);\n }\n return await this.linuxSystemdService.doctor(scope);\n };\n}\n"],"mappings":";;;;AAkBA,IAAa,uBAAb,MAAkC;CAChC;CACA;CACA;CACA;CAEA,YAAY,UAAuC,EAAE,EAAE;AACrD,OAAK,WAAW,QAAQ,YAAY,QAAQ;AAC5C,OAAK,sBAAsB,QAAQ,uBAAuB,IAAI,8BAA8B;AAC5F,OAAK,0BAA0B,QAAQ,2BAA2B,IAAI,kCAAkC;AACxG,OAAK,qBAAqB,QAAQ,sBAAsB,IAAI,6BAA6B;;CAG3F,iBAAiB,OAAO,OAA2B,UAAgC,EAAE,KAA0C;AAC7H,SAAO,MAAM,KAAK,oBAAoB,QAAQ,OAAO,QAAQ;;CAG/D,mBAAmB,OAAO,OAA2B,UAAgC,EAAE,KAA4C;AACjI,SAAO,MAAM,KAAK,oBAAoB,UAAU,OAAO,QAAQ;;CAGjE,qBAAqB,OAAO,UAAgC,EAAE,KAA0C;AACtG,SAAO,MAAM,KAAK,wBAAwB,QAAQ,QAAQ,QAAQ;;CAGpE,uBAAuB,OAAO,UAAgC,EAAE,KAA4C;AAC1G,SAAO,MAAM,KAAK,wBAAwB,UAAU,QAAQ,QAAQ;;CAGtE,qBAAqB,OAAO,UAAgC,EAAE,KAA0C;AACtG,SAAO,MAAM,KAAK,mBAAmB,QAAQ,QAAQ,QAAQ;;CAG/D,uBAAuB,OAAO,UAAgC,EAAE,KAA4C;AAC1G,SAAO,MAAM,KAAK,mBAAmB,UAAU,QAAQ,QAAQ;;CAGjE,SAAS,OAAO,UAA6D;AAC3E,MAAI,KAAK,aAAa,QACpB,QAAO,MAAM,KAAK,oBAAoB,OAAO,MAAM;AAErD,MAAI,KAAK,aAAa,SACpB,QAAO,MAAM,KAAK,wBAAwB,OAAO,MAAM;AAEzD,MAAI,KAAK,aAAa,QACpB,QAAO,MAAM,KAAK,mBAAmB,OAAO,MAAM;AAEpD,SAAO,MAAM,KAAK,oBAAoB,OAAO,MAAM;;CAGrD,SAAS,OAAO,UAAmE;AACjF,MAAI,KAAK,aAAa,QACpB,QAAO,MAAM,KAAK,oBAAoB,OAAO,MAAM;AAErD,MAAI,KAAK,aAAa,SACpB,QAAO,MAAM,KAAK,wBAAwB,OAAO,MAAM;AAEzD,MAAI,KAAK,aAAa,QACpB,QAAO,MAAM,KAAK,mBAAmB,OAAO,MAAM;AAEpD,SAAO,MAAM,KAAK,oBAAoB,OAAO,MAAM"}
|