参考站内的解析,vibe了个Claude Code 补丁包:订阅状态强制真 + 模型验证绕过 + Auto模式等
- 内容介绍
- 文章标签
- 相关推荐
image614×740 131 KB
仅支持 2.1.89
代码:
#!/usr/bin/env node
import fs from 'fs/promises';
import path from 'path';
import readline from 'readline';
const isWindows = process.platform === 'win32';
const isMac = process.platform === 'darwin';
const useColor = process.stdout.isTTY && !process.env.NO_COLOR;
const colors = {
reset: useColor ? '\x1b[0m' : '',
bold: useColor ? '\x1b[1m' : '',
dim: useColor ? '\x1b[2m' : '',
red: useColor ? '\x1b[31m' : '',
green: useColor ? '\x1b[32m' : '',
yellow: useColor ? '\x1b[33m' : '',
cyan: useColor ? '\x1b[36m' : '',
};
class PatchDef {
constructor(name, description, searchStr, findAndReplace, defaultEnabled = true) {
this.name = name;
this.description = description;
this.searchStr = searchStr;
this.findAndReplace = findAndReplace;
this.defaultEnabled = defaultEnabled;
}
}
function padTo(prefix, suff
image614×740 131 KB
仅支持 2.1.89
代码:
#!/usr/bin/env node
import fs from 'fs/promises';
import path from 'path';
import readline from 'readline';
const isWindows = process.platform === 'win32';
const isMac = process.platform === 'darwin';
const useColor = process.stdout.isTTY && !process.env.NO_COLOR;
const colors = {
reset: useColor ? '\x1b[0m' : '',
bold: useColor ? '\x1b[1m' : '',
dim: useColor ? '\x1b[2m' : '',
red: useColor ? '\x1b[31m' : '',
green: useColor ? '\x1b[32m' : '',
yellow: useColor ? '\x1b[33m' : '',
cyan: useColor ? '\x1b[36m' : '',
};
class PatchDef {
constructor(name, description, searchStr, findAndReplace, defaultEnabled = true) {
this.name = name;
this.description = description;
this.searchStr = searchStr;
this.findAndReplace = findAndReplace;
this.defaultEnabled = defaultEnabled;
}
}
function padTo(prefix, suff

