Skip to content

WorkBuddy、CodeBuddy 桌面端增强助手:签到猫猫旅行成长计划查询、多账号独立备份、点切即用;免打扰模式让 AI 无人值守跑长任务;跨账号会话迁移、异常中断自动续接;暂存/快捷提示词;毛玻璃主题与更多实用功能。

741 B
Raw Blame
'use strict';

const assert = require('node:assert/strict');
const fs = require('node:fs');
const path = require('node:path');
const test = require('node:test');

const root = path.join(__dirname, '..');

test('macOS launchers never expand an empty native argument array under bash nounset', () => {
  const files = [
    path.join(root, 'scripts', 'relaunch-with-cdp.sh'),
    path.join(root, 'scripts', 'relaunch-with-cdp-linux.sh'),
    path.join(root, 'scripts', 'build-mac-dmg.sh'),
  ];
  for (const file of files) {
    const source = fs.readFileSync(file, 'utf8');
    assert.doesNotMatch(
      source,
      /"\$\{NATIVE_ARGS\[@\]\}"/,
      `${path.basename(file)} must not expand an empty array with bash set -u`,
    );
  }
});