@vibegrid/mcp 0.4.0-beta.6 → 0.4.0-beta.8
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/dist/index.js +21 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -427,6 +427,18 @@ function migrateSchema(d) {
|
|
|
427
427
|
})();
|
|
428
428
|
logger_default.info("[database] migrated schema to version 5 (headless args)");
|
|
429
429
|
}
|
|
430
|
+
if (version < 6) {
|
|
431
|
+
d.transaction(() => {
|
|
432
|
+
const sessionCols = d.prepare("PRAGMA table_info(sessions)").all();
|
|
433
|
+
if (!sessionCols.some((c) => c.name === "claude_session_id")) {
|
|
434
|
+
d.exec("ALTER TABLE sessions ADD COLUMN claude_session_id TEXT");
|
|
435
|
+
}
|
|
436
|
+
d.prepare(
|
|
437
|
+
"INSERT OR REPLACE INTO schema_meta (key, value) VALUES ('schema_version', '6')"
|
|
438
|
+
).run();
|
|
439
|
+
})();
|
|
440
|
+
logger_default.info("[database] migrated schema to version 6 (claude session id)");
|
|
441
|
+
}
|
|
430
442
|
}
|
|
431
443
|
function verifySchema(d) {
|
|
432
444
|
const expectedByTable = {
|
|
@@ -455,7 +467,8 @@ function verifySchema(d) {
|
|
|
455
467
|
column: "sort_order",
|
|
456
468
|
ddl: "ALTER TABLE sessions ADD COLUMN sort_order INTEGER NOT NULL DEFAULT 0"
|
|
457
469
|
},
|
|
458
|
-
{ column: "worktree_name", ddl: "ALTER TABLE sessions ADD COLUMN worktree_name TEXT" }
|
|
470
|
+
{ column: "worktree_name", ddl: "ALTER TABLE sessions ADD COLUMN worktree_name TEXT" },
|
|
471
|
+
{ column: "claude_session_id", ddl: "ALTER TABLE sessions ADD COLUMN claude_session_id TEXT" }
|
|
459
472
|
],
|
|
460
473
|
agent_commands: [
|
|
461
474
|
{
|
|
@@ -542,6 +555,12 @@ function loadDefaults(d) {
|
|
|
542
555
|
},
|
|
543
556
|
...map.networkAccessEnabled !== void 0 && {
|
|
544
557
|
networkAccessEnabled: map.networkAccessEnabled
|
|
558
|
+
},
|
|
559
|
+
...map.showHeadlessAgents !== void 0 && {
|
|
560
|
+
showHeadlessAgents: map.showHeadlessAgents
|
|
561
|
+
},
|
|
562
|
+
...map.headlessRetentionMinutes !== void 0 && {
|
|
563
|
+
headlessRetentionMinutes: map.headlessRetentionMinutes
|
|
545
564
|
}
|
|
546
565
|
};
|
|
547
566
|
}
|
|
@@ -2470,7 +2489,7 @@ console.warn = (...args) => _origError("[mcp:warn]", ...args);
|
|
|
2470
2489
|
console.error = (...args) => _origError("[mcp:error]", ...args);
|
|
2471
2490
|
async function main() {
|
|
2472
2491
|
configManager.init();
|
|
2473
|
-
const version = true ? "0.4.0-beta.
|
|
2492
|
+
const version = true ? "0.4.0-beta.8" : createRequire(import.meta.url)("../package.json").version;
|
|
2474
2493
|
const server = createMcpServer(version);
|
|
2475
2494
|
const transport = new StdioServerTransport();
|
|
2476
2495
|
await server.connect(transport);
|