refactor: simplify cli commands
This commit is contained in:
@@ -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[] {
|
||||
|
||||
@@ -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",
|
||||
]);
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user