dsh-arcvista 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/package.json +1 -1
- package/server.js +9 -0
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/server.js
CHANGED
|
@@ -33,6 +33,15 @@ const HOST = process.env.HOST || '127.0.0.1';
|
|
|
33
33
|
*/
|
|
34
34
|
export function createArcVistaApp({ dataDir = DATA_DIR, publicDir = PUBLIC_DIR, backupDir = null, llm = null } = {}) {
|
|
35
35
|
const store = openDatabase(dataDir, backupDir ? { backupDir } : {});
|
|
36
|
+
// DSH manages the model. Remove legacy standalone model settings (including
|
|
37
|
+
// any old API key) so upgrading to the plugin cannot retain a stale secret.
|
|
38
|
+
if (llm?.provider === 'dsh') {
|
|
39
|
+
try {
|
|
40
|
+
store.db.prepare("DELETE FROM settings WHERE key LIKE 'llm_%'").run();
|
|
41
|
+
} catch {
|
|
42
|
+
/* best-effort cleanup for old databases */
|
|
43
|
+
}
|
|
44
|
+
}
|
|
36
45
|
const git = new GitStore(dataDir);
|
|
37
46
|
const jobs = new JobRunner(store);
|
|
38
47
|
const interruptedJobs = store.jobs.interruptActive();
|