@nextclaw/service 0.1.7 → 0.1.9
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/cli/commands/agent/agent-runtime.utils.js +2 -2
- package/dist/cli/commands/agent/cli-agent-runner.utils.js +2 -2
- package/dist/cli/commands/agent/index.js +1 -1
- package/dist/cli/commands/config/services/config-commands.service.js +1 -1
- package/dist/cli/commands/cron/services/cron-commands.service.js +2 -2
- package/dist/cli/commands/cron/services/cron-local.service.d.ts +1 -1
- package/dist/cli/commands/cron/services/cron-local.service.js +1 -1
- package/dist/cli/commands/restart/index.js +2 -2
- package/dist/cli/commands/skills/marketplace.metadata.js +1 -1
- package/dist/cli/commands/skills/marketplace.service.js +2 -2
- package/dist/cli/commands/skills/skills-query.service.js +1 -1
- package/dist/commands/channel/index.js +2 -2
- package/dist/commands/plugin/development-source/dev-plugin-overrides.utils.js +3 -3
- package/dist/commands/plugin/development-source/{first-party-plugin-load-paths.d.ts → first-party-plugin-load-paths.utils.d.ts} +1 -1
- package/dist/commands/plugin/development-source/{first-party-plugin-load-paths.js → first-party-plugin-load-paths.utils.js} +3 -3
- package/dist/commands/plugin/index.d.ts +1 -1
- package/dist/commands/plugin/index.js +5 -5
- package/dist/commands/plugin/plugin-command-utils.d.ts +1 -1
- package/dist/commands/plugin/plugin-mutation-actions.js +2 -2
- package/dist/commands/plugin/{plugin-registry-loader.d.ts → plugin-registry-loader.utils.d.ts} +1 -1
- package/dist/commands/plugin/{plugin-registry-loader.js → plugin-registry-loader.utils.js} +2 -2
- package/dist/commands/remote/services/remote-service-control.service.js +1 -1
- package/dist/commands/remote/utils/remote-runtime-support.utils.js +1 -1
- package/dist/commands/service/services/autostart/host-autostart-runtime.service.js +2 -2
- package/dist/commands/service/services/autostart/linux-systemd-autostart.service.js +2 -2
- package/dist/commands/service/services/autostart/macos-launch-agent-autostart.service.js +2 -2
- package/dist/commands/service/services/autostart/windows-task-autostart.service.js +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/launcher/npm-runtime-bundle-layout.store.js +1 -1
- package/dist/launcher/npm-runtime-bundle.service.js +1 -1
- package/dist/launcher/npm-runtime-bundle.types.d.ts +1 -1
- package/dist/launcher/npm-runtime-launcher.service.js +5 -5
- package/dist/launcher/npm-runtime-update-command.service.js +4 -3
- package/dist/launcher/npm-runtime-update-source.service.js +2 -2
- package/dist/launcher/npm-runtime-update-state.store.js +1 -1
- package/dist/launcher/npm-runtime-update.manager.d.ts +2 -2
- package/dist/launcher/npm-runtime-update.manager.js +8 -4
- package/dist/launcher/npm-runtime-update.service.d.ts +1 -1
- package/dist/launcher/npm-runtime-update.service.js +3 -3
- package/dist/service-runtime.service.d.ts +0 -2
- package/dist/service-runtime.service.js +31 -33
- package/dist/shared/controllers/gateway.controller.js +7 -9
- package/dist/shared/services/extensions/extension-lifecycle.service.js +1 -1
- package/dist/shared/services/extensions/service-extension-runtime.service.d.ts +1 -1
- package/dist/shared/services/extensions/service-extension-runtime.service.js +7 -6
- package/dist/shared/services/gateway/gateway-restart-wake.service.js +2 -1
- package/dist/shared/services/gateway/managers/gateway-plugin.manager.js +17 -3
- package/dist/shared/services/gateway/managers/gateway-remote.manager.d.ts +2 -2
- package/dist/shared/services/gateway/managers/gateway-remote.manager.js +1 -1
- package/dist/shared/services/gateway/nextclaw-gateway-runtime.service.d.ts +1 -1
- package/dist/shared/services/gateway/nextclaw-gateway-runtime.service.js +10 -10
- package/dist/shared/services/gateway/service-bootstrap-status.service.d.ts +1 -1
- package/dist/shared/services/gateway/service-startup-support.service.d.ts +1 -1
- package/dist/shared/services/marketplace/service-marketplace-installer.service.js +2 -2
- package/dist/shared/services/plugin/utils/plugin-runtime-bridge.utils.js +1 -1
- package/dist/shared/services/restart/restart-sentinel.service.js +1 -1
- package/dist/shared/services/runtime/runtime-command.service.d.ts +3 -0
- package/dist/shared/services/runtime/runtime-command.service.js +27 -3
- package/dist/shared/services/runtime/service-managed-startup.service.d.ts +4 -28
- package/dist/shared/services/runtime/service-managed-startup.service.js +61 -65
- package/dist/shared/services/runtime/utils/managed-service-routing.utils.d.ts +30 -0
- package/dist/shared/services/runtime/utils/managed-service-routing.utils.js +62 -0
- package/dist/shared/services/runtime/utils/service-remote-runtime.utils.js +2 -2
- package/dist/shared/services/session/service-deferred-ncp-agent.service.d.ts +1 -1
- package/dist/shared/services/ui/companion-runtime.service.d.ts +2 -0
- package/dist/shared/services/ui/companion-runtime.service.js +40 -8
- package/dist/shared/services/ui/local-ui-discovery.service.js +1 -1
- package/dist/shared/services/ui/npm-runtime-update-host.service.js +2 -2
- package/dist/shared/services/ui/runtime-control-host.service.js +1 -1
- package/dist/shared/services/ui/service-remote-access.service.js +1 -1
- package/dist/shared/services/workspace/workspace-manager.service.js +3 -3
- package/dist/shared/stores/companion-runtime.store.js +1 -1
- package/dist/shared/stores/local-ui-runtime.store.js +1 -1
- package/dist/shared/stores/managed-service-state.store.js +1 -1
- package/dist/shared/types/cli.types.d.ts +2 -14
- package/dist/shared/utils/cli.utils.js +2 -2
- package/dist/shared/utils/marketplace/cli-subcommand-launch.utils.js +1 -1
- package/dist/shared/utils/package/package-manifest.utils.js +2 -2
- package/package.json +21 -19
- package/dist/cli/commands/companion/index.d.ts +0 -15
- package/dist/cli/commands/companion/index.js +0 -24
- package/dist/cli/commands/companion/services/companion-process.service.d.ts +0 -17
- package/dist/cli/commands/companion/services/companion-process.service.js +0 -49
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { CompanionProcessService } from "./services/companion-process.service.js";
|
|
2
|
-
//#region src/cli/commands/companion/index.ts
|
|
3
|
-
var CompanionCommands = class {
|
|
4
|
-
constructor(companionProcessService = new CompanionProcessService()) {
|
|
5
|
-
this.companionProcessService = companionProcessService;
|
|
6
|
-
}
|
|
7
|
-
start = async (options = {}) => {
|
|
8
|
-
await this.companionProcessService.start(options);
|
|
9
|
-
};
|
|
10
|
-
enable = async (options = {}) => {
|
|
11
|
-
await this.companionProcessService.enable(options);
|
|
12
|
-
};
|
|
13
|
-
disable = async (options = {}) => {
|
|
14
|
-
await this.companionProcessService.disable(options);
|
|
15
|
-
};
|
|
16
|
-
status = async (options = {}) => {
|
|
17
|
-
await this.companionProcessService.status(options);
|
|
18
|
-
};
|
|
19
|
-
stop = async (options = {}) => {
|
|
20
|
-
await this.companionProcessService.stop(options);
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
//#endregion
|
|
24
|
-
export { CompanionCommands };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { CompanionDisableCommandOptions, CompanionEnableCommandOptions, CompanionStartCommandOptions, CompanionStatusCommandOptions, CompanionStopCommandOptions } from "../../../../shared/types/cli.types.js";
|
|
2
|
-
import { CompanionRuntimeService } from "../../../../shared/services/ui/companion-runtime.service.js";
|
|
3
|
-
|
|
4
|
-
//#region src/cli/commands/companion/services/companion-process.service.d.ts
|
|
5
|
-
declare class CompanionProcessService {
|
|
6
|
-
private readonly runtimeService;
|
|
7
|
-
constructor(runtimeService?: CompanionRuntimeService);
|
|
8
|
-
readonly start: (options?: CompanionStartCommandOptions) => Promise<void>;
|
|
9
|
-
readonly status: (options?: CompanionStatusCommandOptions) => Promise<void>;
|
|
10
|
-
readonly stop: (options?: CompanionStopCommandOptions) => Promise<void>;
|
|
11
|
-
readonly enable: (options?: CompanionEnableCommandOptions) => Promise<void>;
|
|
12
|
-
readonly disable: (_options?: CompanionDisableCommandOptions) => Promise<void>;
|
|
13
|
-
private readonly resolveBaseUrl;
|
|
14
|
-
private readonly printConfigEnabled;
|
|
15
|
-
}
|
|
16
|
-
//#endregion
|
|
17
|
-
export { CompanionProcessService };
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { companionRuntimeService } from "../../../../shared/services/ui/companion-runtime.service.js";
|
|
2
|
-
import "@nextclaw/core";
|
|
3
|
-
//#region src/cli/commands/companion/services/companion-process.service.ts
|
|
4
|
-
var CompanionProcessService = class {
|
|
5
|
-
constructor(runtimeService = companionRuntimeService) {
|
|
6
|
-
this.runtimeService = runtimeService;
|
|
7
|
-
}
|
|
8
|
-
start = async (options = {}) => {
|
|
9
|
-
const state = await this.runtimeService.ensureStarted({ baseUrl: this.resolveBaseUrl(options) });
|
|
10
|
-
this.runtimeService.printStarted(state);
|
|
11
|
-
};
|
|
12
|
-
status = async (options = {}) => {
|
|
13
|
-
this.runtimeService.printStatus(options);
|
|
14
|
-
};
|
|
15
|
-
stop = async (options = {}) => {
|
|
16
|
-
const stopped = await this.runtimeService.ensureStopped(options);
|
|
17
|
-
this.runtimeService.printStopped(stopped);
|
|
18
|
-
};
|
|
19
|
-
enable = async (options = {}) => {
|
|
20
|
-
const nextConfig = await this.runtimeService.updateEnabled(true, options);
|
|
21
|
-
this.printConfigEnabled(nextConfig, options.baseUrl);
|
|
22
|
-
};
|
|
23
|
-
disable = async (_options = {}) => {
|
|
24
|
-
const nextConfig = await this.runtimeService.updateEnabled(false);
|
|
25
|
-
console.log(nextConfig.companion.enabled ? "Companion remains enabled." : "Companion feature disabled. It will stay off until you enable it again.");
|
|
26
|
-
};
|
|
27
|
-
resolveBaseUrl = (options) => {
|
|
28
|
-
const explicitBaseUrl = options.baseUrl?.trim();
|
|
29
|
-
if (explicitBaseUrl) return explicitBaseUrl.replace(/\/+$/, "");
|
|
30
|
-
const discoveredBaseUrl = this.runtimeService.resolveDiscoveredBaseUrl();
|
|
31
|
-
if (discoveredBaseUrl) return discoveredBaseUrl;
|
|
32
|
-
const runningState = this.runtimeService.getRunningState();
|
|
33
|
-
if (runningState) return runningState.baseUrl;
|
|
34
|
-
throw new Error("Cannot resolve NextClaw UI base URL. Start NextClaw first or pass --base-url.");
|
|
35
|
-
};
|
|
36
|
-
printConfigEnabled = (config, baseUrl) => {
|
|
37
|
-
if (this.runtimeService.getRunningState()) {
|
|
38
|
-
console.log("Companion feature enabled and companion started.");
|
|
39
|
-
return;
|
|
40
|
-
}
|
|
41
|
-
if (baseUrl?.trim()) {
|
|
42
|
-
console.log("Companion feature enabled.");
|
|
43
|
-
return;
|
|
44
|
-
}
|
|
45
|
-
console.log(config.companion.enabled ? "Companion feature enabled. It will auto-start the next time a local NextClaw runtime is available." : "Companion feature is not enabled.");
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
//#endregion
|
|
49
|
-
export { CompanionProcessService };
|