WorkBuddy、CodeBuddy 桌面端增强助手:签到猫猫旅行成长计划查询、多账号独立备份、点切即用;免打扰模式让 AI 无人值守跑长任务;跨账号会话迁移、异常中断自动续接;暂存/快捷提示词;毛玻璃主题与更多实用功能。
'use strict';
const test = require('node:test');
const assert = require('node:assert/strict');
const fs = require('node:fs');
const path = require('node:path');
test('macOS staging copies every top-level daemon module dependency', () => {
const root = path.join(__dirname, '..', 'scripts');
const daemon = fs.readFileSync(path.join(root, 'daemon.js'), 'utf8');
const build = fs.readFileSync(path.join(root, 'build-mac-dmg.sh'), 'utf8');
const list = build.match(/for f in ([^\n]+); do/)[1].split(/\s+/);
for (const match of daemon.matchAll(/^.*require\(['"]\.\/([^'"]+\.js)['"]\).*$/gm)) {
if (/^\s/.test(match[0])) continue; // Nested optional/platform-specific imports.
assert.ok(list.includes(match[1]), `macOS staging missing ${match[1]}`);
}
});