feat: register embedding_model_path in ConfigRegistry instead of JSON config

- Add core.agent.embedding_model_path to seedDBValues and seedCoreDefs
- Wire cfgReg.GetString in main.go to AgentConfig.EmbeddingModelPath
- Follow existing core.agent.* ConfigRegistry pattern
This commit is contained in:
2026-07-17 21:07:54 +08:00
parent 7892d7b0f2
commit 69ceedf0ab
4 changed files with 2628 additions and 4 deletions

2606
cmd/gui/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -11,6 +11,25 @@
"electron": "^33.0.0"
},
"devDependencies": {
"asar": "^3.2.0",
"electron-builder": "^26.15.3",
"electron-packager": "^17.1.2"
},
"build": {
"appId": "com.homeagent.gui",
"productName": "HomeAgent",
"linux": {
"target": [
"deb"
],
"category": "Utility"
},
"files": [
"main.js",
"preload.js",
"renderer/**/*",
"node_modules/**/*",
"!node_modules/electron-builder/**"
]
}
}

View File

@ -385,8 +385,9 @@ func main() {
Personality: personality,
PluginReg: pluginReg,
PluginDir: cfg.Plugin.Dir,
ContextSavePath: filepath.Join(cfg.Daemon.DataDir, "memory", "context.json"),
StageHost: stageHost,
ContextSavePath: filepath.Join(cfg.Daemon.DataDir, "memory", "context.json"),
EmbeddingModelPath: cfgReg.GetString("core.agent.embedding_model_path", ""),
StageHost: stageHost,
EventBus: evBus,
ThinkingEnabled: cfg.LLM.ThinkingEnabled,
InputProcessing: cfg.InputProcessing,