1import { spawnSync } from 'node:child_process';
2import { createHash } from 'node:crypto';
⋯
28} = {}) {
29if (process.platform !== 'darwin' || runtime.credentialKind !== 'oauth'
30 || config.current_profile !== runtime.profileName
31 || !['https://api.notis.ai', 'https://api-beta.notis.ai'].includes(runtime.apiBase)) return;
32// Ordinary commands must not steal another explicitly bound account's job.
33const plist = join(homedir(), 'Library', 'LaunchAgents', `${SKILL_SYNC_SERVICE_LABEL}.plist`);
34if (existsSync(plist)) {
⋯
92const unchanged = existsSync(plistPath) && readFileSync(plistPath, 'utf8') === plist;
93const loaded = run('/bin/launchctl', ['print', target], { encoding: 'utf8', timeout: 5000 });
94if (unchanged && loaded.status === 0) retur