vibora 9.0.1 → 9.0.2
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/bin/vibora.js +1 -1
- package/package.json +1 -1
- package/server/index.js +18 -3
package/bin/vibora.js
CHANGED
|
@@ -32635,7 +32635,7 @@ function installUv() {
|
|
|
32635
32635
|
var package_default = {
|
|
32636
32636
|
name: "vibora",
|
|
32637
32637
|
private: true,
|
|
32638
|
-
version: "9.0.
|
|
32638
|
+
version: "9.0.2",
|
|
32639
32639
|
description: "Harness Attention. Orchestrate Agents. Ship.",
|
|
32640
32640
|
license: "PolyForm-Shield-1.0.0",
|
|
32641
32641
|
type: "module",
|
package/package.json
CHANGED
package/server/index.js
CHANGED
|
@@ -5284,6 +5284,7 @@ function runMigrations(sqlite, drizzleDb) {
|
|
|
5284
5284
|
const journal = JSON.parse(readFileSync2(journalPath, "utf-8"));
|
|
5285
5285
|
const existingMigrations = sqlite.query("SELECT hash, created_at FROM __drizzle_migrations").all();
|
|
5286
5286
|
const existingHashes = new Set(existingMigrations.map((m) => m.hash));
|
|
5287
|
+
const hasSystemPromptAddition = sqlite.query("SELECT name FROM pragma_table_info('tasks') WHERE name='system_prompt_addition'").get();
|
|
5287
5288
|
const hasClaudeOptions = sqlite.query("SELECT name FROM pragma_table_info('tasks') WHERE name='claude_options'").get();
|
|
5288
5289
|
const hasAppsTable = sqlite.query("SELECT name FROM sqlite_master WHERE type='table' AND name='apps'").get();
|
|
5289
5290
|
const hasEnvironmentVariables = sqlite.query("SELECT name FROM pragma_table_info('apps') WHERE name='environment_variables'").get();
|
|
@@ -5301,10 +5302,12 @@ function runMigrations(sqlite, drizzleDb) {
|
|
|
5301
5302
|
if (existingHashes.has(entry.tag))
|
|
5302
5303
|
continue;
|
|
5303
5304
|
let shouldMark = false;
|
|
5304
|
-
if (entry.tag < "
|
|
5305
|
-
shouldMark = true;
|
|
5306
|
-
} else if (entry.tag.startsWith("0013") && hasClaudeOptions) {
|
|
5305
|
+
if (entry.tag < "0012_previous_norrin_radd") {
|
|
5307
5306
|
shouldMark = true;
|
|
5307
|
+
} else if (entry.tag.startsWith("0012")) {
|
|
5308
|
+
shouldMark = hasSystemPromptAddition || hasClaudeOptions || !hasSystemPromptAddition && !hasClaudeOptions;
|
|
5309
|
+
} else if (entry.tag.startsWith("0013")) {
|
|
5310
|
+
shouldMark = hasClaudeOptions || !hasSystemPromptAddition && !hasClaudeOptions;
|
|
5308
5311
|
} else if (entry.tag.startsWith("0014") && hasAppsTable) {
|
|
5309
5312
|
shouldMark = true;
|
|
5310
5313
|
} else if (entry.tag.startsWith("0015") && hasEnvironmentVariables) {
|
|
@@ -5341,6 +5344,18 @@ function runMigrations(sqlite, drizzleDb) {
|
|
|
5341
5344
|
migrations: migrationsToMark.map((m) => m.tag)
|
|
5342
5345
|
});
|
|
5343
5346
|
}
|
|
5347
|
+
if (!hasSystemPromptAddition && !hasClaudeOptions) {
|
|
5348
|
+
const repoHasClaudeOptions = sqlite.query("SELECT name FROM pragma_table_info('repositories') WHERE name='claude_options'").get();
|
|
5349
|
+
if (!repoHasClaudeOptions) {
|
|
5350
|
+
log2.db.info("Adding claude_options column to repositories for fresh database");
|
|
5351
|
+
sqlite.exec("ALTER TABLE `repositories` ADD `claude_options` text");
|
|
5352
|
+
}
|
|
5353
|
+
const tasksHasAgentOptions = sqlite.query("SELECT name FROM pragma_table_info('tasks') WHERE name='agent_options'").get();
|
|
5354
|
+
if (!tasksHasAgentOptions) {
|
|
5355
|
+
log2.db.info("Adding claude_options column to tasks for fresh database");
|
|
5356
|
+
sqlite.exec("ALTER TABLE `tasks` ADD `claude_options` text");
|
|
5357
|
+
}
|
|
5358
|
+
}
|
|
5344
5359
|
}
|
|
5345
5360
|
}
|
|
5346
5361
|
migrate(drizzleDb, { migrationsFolder: migrationsPath });
|