WorkBuddy、CodeBuddy 桌面端增强助手:签到猫猫旅行成长计划查询、多账号独立备份、点切即用;免打扰模式让 AI 无人值守跑长任务;跨账号会话迁移、异常中断自动续接;暂存/快捷提示词;毛玻璃主题与更多实用功能。
'use strict';
const assert = require('node:assert/strict');
const fs = require('node:fs');
const path = require('node:path');
const test = require('node:test');
const daemon = fs.readFileSync(path.join(__dirname, '..', 'scripts', 'daemon.js'), 'utf8');
test('the generic scheduler remains available with no implicit check-in trigger', () => {
assert.match(daemon, /createScheduleTicker\(DATA_DIR\)/);
assert.match(daemon, /automationScheduleTimer\.unref && automationScheduleTimer\.unref\(\)/);
assert.doesNotMatch(daemon, /startupCheckinTimer|periodicCheckinTimer|claimDailyForAll/);
assert.match(daemon, /daily-account-checkin\.json/);
});
test('check-in refreshes expired credentials only after checking confirmed daily records', () => {
const body = daemon.slice(daemon.indexOf('async function performAccountCheckin'), daemon.indexOf('/** 通过 CDP 把右下角组件'));
assert.ok(body.indexOf('getDailyCheckin') < body.indexOf('refreshAccountBackupToken(uid)'));
assert.ok(body.indexOf('return migrated') < body.indexOf('refreshAccountBackupToken(uid)'));
assert.doesNotMatch(body, /dailyKeepalive/);
});