返回 DeepSeek-Reasonix
diagnostic_store.go
根目录 / internal / skill / diagnostic_store.go
1 package skill
2
3 import (
4 "io"
5
6 "reasonix/internal/config"
7 )
8
9 // DiagnosticStore applies the same discovery policy in both doctor entrypoints.
10 // It only reads skill sources; it never starts a session or an MCP server.
11 func DiagnosticStore(root, home, reasonixHome string, cfg *config.Config) *Store {
12 return New(Options{
13 ProjectRoot: root, HomeDir: home, ReasonixHomeDir: reasonixHome,
14 CustomPaths: cfg.SkillCustomPaths(), ExcludedPaths: cfg.SkillExcludedPaths(),
15 PluginPaths: cfg.PluginPackageSkillOwners(), PluginAgentPaths: cfg.PluginPackageAgentOwners(),
16 DisabledNames: cfg.DisabledSkillNames(), MaxDepth: cfg.SkillMaxDepth(),
17 Stderr: io.Discard,
18 })
19 }
20
20 lines GO