feat: update chat, settings, prompts and system info modules
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user