Soul-driven AI agent with permission-hardened tools, token budgets, and multi-channel access. Runs 24/7 from CLI, Telegram or More.
fix(service): render plist/systemd paths with posix joins
Salman Qureshi648f27b8944e
diff --git a/src/cli/service.ts b/src/cli/service.tsindex bb9a22fb..d1f7f654 100644--- a/src/cli/service.ts+++ b/src/cli/service.ts@@ -1,5 +1,5 @@import { existsSync, mkdirSync, writeFileSync, unlinkSync, realpathSync } from 'node:fs';-import { join } from 'node:path';+import { join, posix } from 'node:path';import { fileURLToPath } from 'node:url';import { homedir } from 'node:os';import chalk from 'chalk';@@ -352,8 +352,10 @@ function xmlEscape(value: string): string {/** macOS LaunchAgent plist for the given launch argv. */export function buildLaunchAgentPlist(launchArgs: string[], opts: ServiceFileOptions): string {- const logPath = join(opts.mercuryHome, 'daemon.log');- const errPath = join(opts.mercuryHome, 'daemon-error.log');+ // plist and systemd files are POSIX formats regardless of the host that+ // renders them (CI runs these builders on Windows too), so use posix joins.+ const logPath = posix.join(opts.mercuryHome, 'daemon.log');+ const errPath = posix.join(opts.mercuryHome, 'daemon-error.log');const programArgsXml = launchArgs.map((a) => ` <string>${xmlEscape(a)}</string>`).join('\n');return `<?xml version="1.0" encoding="UTF-8"?>@@ -410,8 +412,8 @@ RestartSec=5Environment=PATH=${opts.pathEnv}Environment=HOME=${opts.userHome}WorkingDirectory=${opts.userHome}-StandardOutput=append:${join(opts.mercuryHome, 'daemon.log')}-StandardError=append:${join(opts.mercuryHome, 'daemon-error.log')}+StandardOutput=append:${posix.join(opts.mercuryHome, 'daemon.log')}+StandardError=append:${posix.join(opts.mercuryHome, 'daemon-error.log')}[Install]WantedBy=default.target`;