refactor: simplify cli commands

This commit is contained in:
Peter Steinberger
2026-01-08 07:16:05 +01:00
parent 79ac0af719
commit 19595a8f99
33 changed files with 359 additions and 1427 deletions

View File

@@ -23,7 +23,7 @@ export type FindExtraGatewayServicesOptions = {
deep?: boolean;
};
const EXTRA_MARKERS = ["clawdbot", "clawdis", "gateway-daemon"];
const EXTRA_MARKERS = ["clawdbot", "clawdis"];
const execFileAsync = promisify(execFile);
export function renderGatewayServiceCleanupHints(): string[] {

View File

@@ -43,7 +43,7 @@ describe("resolveGatewayProgramArguments", () => {
expect(result.programArguments).toEqual([
process.execPath,
entryPath,
"gateway-daemon",
"gateway",
"--port",
"18789",
]);
@@ -70,7 +70,7 @@ describe("resolveGatewayProgramArguments", () => {
expect(result.programArguments).toEqual([
process.execPath,
indexPath,
"gateway-daemon",
"gateway",
"--port",
"18789",
]);

View File

@@ -147,7 +147,7 @@ export async function resolveGatewayProgramArguments(params: {
dev?: boolean;
runtime?: GatewayRuntimePreference;
}): Promise<GatewayProgramArgs> {
const gatewayArgs = ["gateway-daemon", "--port", String(params.port)];
const gatewayArgs = ["gateway", "--port", String(params.port)];
const execPath = process.execPath;
const runtime = params.runtime ?? "auto";