chore: rename project to clawdbot
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
export const GATEWAY_LAUNCH_AGENT_LABEL = "com.clawdis.gateway";
|
||||
export const GATEWAY_SYSTEMD_SERVICE_NAME = "clawdis-gateway";
|
||||
export const GATEWAY_WINDOWS_TASK_NAME = "Clawdis Gateway";
|
||||
export const GATEWAY_LAUNCH_AGENT_LABEL = "com.clawdbot.gateway";
|
||||
export const GATEWAY_SYSTEMD_SERVICE_NAME = "clawdbot-gateway";
|
||||
export const GATEWAY_WINDOWS_TASK_NAME = "Clawdbot Gateway";
|
||||
|
||||
@@ -6,7 +6,7 @@ import { promisify } from "node:util";
|
||||
import { GATEWAY_LAUNCH_AGENT_LABEL } from "./constants.js";
|
||||
|
||||
const execFileAsync = promisify(execFile);
|
||||
const LEGACY_GATEWAY_LAUNCH_AGENT_LABEL = "com.steipete.clawdis.gateway";
|
||||
const LEGACY_GATEWAY_LAUNCH_AGENT_LABEL = "com.steipete.clawdbot.gateway";
|
||||
|
||||
function resolveHomeDir(env: Record<string, string | undefined>): string {
|
||||
const home = env.HOME?.trim() || env.USERPROFILE?.trim();
|
||||
@@ -46,7 +46,7 @@ export function resolveGatewayLogPaths(
|
||||
stderrPath: string;
|
||||
} {
|
||||
const home = resolveHomeDir(env);
|
||||
const logDir = path.join(home, ".clawdis", "logs");
|
||||
const logDir = path.join(home, ".clawdbot", "logs");
|
||||
return {
|
||||
logDir,
|
||||
stdoutPath: path.join(logDir, "gateway.log"),
|
||||
|
||||
@@ -17,7 +17,7 @@ function resolveTaskScriptPath(
|
||||
env: Record<string, string | undefined>,
|
||||
): string {
|
||||
const home = resolveHomeDir(env);
|
||||
return path.join(home, ".clawdis", "gateway.cmd");
|
||||
return path.join(home, ".clawdbot", "gateway.cmd");
|
||||
}
|
||||
|
||||
function quoteCmdArg(value: string): string {
|
||||
|
||||
@@ -61,7 +61,7 @@ function buildSystemdUnit({
|
||||
const envLines = renderEnvLines(environment);
|
||||
return [
|
||||
"[Unit]",
|
||||
"Description=Clawdis Gateway",
|
||||
"Description=Clawdbot Gateway",
|
||||
"",
|
||||
"[Service]",
|
||||
`ExecStart=${execStart}`,
|
||||
|
||||
Reference in New Issue
Block a user