✨ feat(vscode): 设置面板可配置 Claude profiles 目录并修正探测顺序

This commit is contained in:
cruldra committed 2026-07-23 21:52:53 +08:00
1 parent a3e557f9ee
commit 7c67d220db
13 files changed
+335 -35

No files matched your search

+4 -5
View File
@@ -36,11 +36,8 @@ import * as worktree from './handlers/worktree'
import * as youtrackIssues from './handlers/youtrackIssues'
import { PALETTE, resolveIssueColor, themeColorIdToIconUri } from './issueColor'
export const DEFAULT_PROFILE_PATH = '/home/cruldra/Sources/cruldra-profile/claude-config/profiles/offical.json'
/** PR 变更摘要等后台内容生成任务用的 profile:DeepSeek(自带 token + base_url,
* headless 稳定,不依赖订阅 OAuth,避免 403 Request not allowed)。 */
export const PR_DIFF_SUMMARY_PROFILE_PATH = '/home/cruldra/Sources/cruldra-profile/claude-config/profiles/deepseek.json'
/** Resolved at runtime via getProfilesDir() — do not hardcode user paths. */
export { getDefaultProfilePath, getPrDiffSummaryProfilePath } from '../cc/profiles'
export class KanbanWebviewPanel {
static readonly viewType = 'superpowers.kanbanPanel'
@@ -861,6 +858,7 @@ export class KanbanWebviewPanel {
conflictResolutionProfilePath: s.conflictResolutionProfilePath,
codexModel: s.codexModel,
codexReasoningEffort: s.codexReasoningEffort,
profilesDirectory: s.profilesDirectory,
})
return
}
@@ -926,6 +924,7 @@ export class KanbanWebviewPanel {
conflictResolutionProfilePath: s.conflictResolutionProfilePath,
codexModel: s.codexModel,
codexReasoningEffort: s.codexReasoningEffort,
profilesDirectory: s.profilesDirectory,
})
return
}