Files
classhelper-island-refactor…/scripts/fix2.mjs
T
ClassIsland Prompt Kit 22c1784bab feat: ClassIsland / ClassHelper 灵动岛提示词套件
- 重构版主提示词(14 parts,面向 ClassHelper 灵动岛重构)
- ClassIsland 全量规格提示词(20 parts,含分卷与逐章版本)
- 投喂指南、分卷、逐节文件
- 调研记录、一致性基线、生成与质检脚本
2026-11-12 21:59:58 +08:00

16 lines
1004 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { readFileSync, writeFileSync } from 'node:fs';
function patch(p, fn) {
const f = 'parts/' + p;
const t = readFileSync(f, 'utf8');
const n = fn(t);
if (n !== t) { writeFileSync(f, n, 'utf8'); console.log('patched ' + p); } else console.log('nochange ' + p);
}
patch('01-overview.md', (t) => t.replace('OOBE 完成后写 `settings.json` 的', 'OOBE 完成后写 `config.json`(并兼容导出 ClassIsland 的 `Settings.json`)的'));
patch('07-notifications.md', (t) => t.replace('持久化在 `Settings.json`(字段', '持久化在 `config.json`(ClassIsland 原生写入 `Settings.json`,字段'));
patch('10-settings.md', (t) =>
t
.replace('必须**立刻**把整个 `Settings.json` 写盘', '必须**立刻**把整个配置(`config.json`,ClassIsland 对应 `Settings.json`)写盘')
.replace('且 `Settings.json` 中 `Opacity` 为', '且 `config.json` 中 `opacity` 为')
.replace('可用 `Settings.json` 全文比对', '可用 `config.json` 全文比对'),
);