feat: update chat, settings, prompts and system info modules

This commit is contained in:
2026-06-16 10:33:54 +08:00
parent b86c29c6a4
commit dd13d21c6a
18 changed files with 1362 additions and 43 deletions

View File

@@ -26,6 +26,7 @@ type Config struct {
SkillsDir string
SkillsDisabledDir string
ExtensionsDir string
PromptsDir string
FrontendDist string // ../frontend/dist 相对于可执行文件
}
@@ -88,6 +89,7 @@ func (c *Config) derivePaths() {
c.SkillsDir = filepath.Join(a, "skills")
c.SkillsDisabledDir = filepath.Join(a, "skills-disabled")
c.ExtensionsDir = filepath.Join(a, "extensions")
c.PromptsDir = filepath.Join(a, "prompts")
// frontend/dist 相对于二进制所在目录的上级
exe, err := os.Executable()