Skip to content

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

823 B
Raw Blame
import { build } from 'esbuild';
import fs from 'node:fs';
import path from 'node:path';
import { fileURLToPath } from 'node:url';
const dir = path.dirname(fileURLToPath(import.meta.url));
const output = path.resolve(dir, '../../scripts/markdown-preview.js');
await build({ absWorkingDir: dir, entryPoints: ['entry.js'], outfile: output,
  bundle: true, minify: true, format: 'iife', platform: 'browser', target: ['chrome110'], legalComments: 'eof',
  banner: { js: '/* Generated by tools/markdown-preview/build.mjs; marked 18.0.14 / DOMPurify 3.4.16. */' },
});
const licenses = ['marked', 'dompurify'].map(name => name + '\n' + fs.readFileSync(path.join(dir, 'node_modules', name, 'LICENSE'), 'utf8')).join('\n\n');
fs.appendFileSync(output, '\n/* Third-party licenses:\n' + licenses.replaceAll('*/', '* /') + '\n*/\n');