chore: 移除旧的 .claude/settings.json 权限配置并将账号目录迁移到项目根目录
- 删除 `.claude/settings.json` 中的大量 `Bash` 和 `Edit` 权限许可 - 将 `accounts/` 目录从技能脚本子目录迁移到项目根目录 - 更新所有技能文档和脚本中引用 `accounts/` 的路径为项目根目录 - 移除 `forbidden-emperor` 账号中多余的中文提示词配置文件
This commit is contained in:
@@ -644,7 +644,7 @@ function loadSubtitleStyle(manifest) {
|
||||
const account = manifest.account
|
||||
if (!account) return {}
|
||||
const scriptDir = __dirname
|
||||
const accountFile = path.join(scriptDir, '..', 'accounts', account, 'account.json')
|
||||
const accountFile = path.join(scriptDir, '..', '..', '..', 'accounts', account, 'account.json')
|
||||
if (!fs.existsSync(accountFile)) return {}
|
||||
try {
|
||||
const accountData = JSON.parse(fs.readFileSync(accountFile, 'utf-8'))
|
||||
|
||||
@@ -17,8 +17,9 @@ const path = require('path')
|
||||
|
||||
const SCRIPTS_DIR = __dirname
|
||||
const SKILLS_DIR = path.join(SCRIPTS_DIR, '..')
|
||||
const PROJECT_ROOT = path.join(SKILLS_DIR, '..', '..')
|
||||
const CONFIG_PATH = path.join(SKILLS_DIR, 'config.json')
|
||||
const ACCOUNTS_DIR = path.join(SCRIPTS_DIR, '..', 'accounts')
|
||||
const ACCOUNTS_DIR = path.join(PROJECT_ROOT, 'accounts')
|
||||
|
||||
// ============================================================================
|
||||
// 工具函数
|
||||
|
||||
Reference in New Issue
Block a user