@vornrun/mcp 0.7.5 → 0.8.0-beta.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/dist/index.js +30 -2
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -590,6 +590,7 @@ function createSchema() {
|
|
|
590
590
|
ON connector_inbox(connection_id, created_at);
|
|
591
591
|
`);
|
|
592
592
|
d.exec(ARTIFACT_DDL);
|
|
593
|
+
d.exec(EFFECT_RECEIPTS_DDL);
|
|
593
594
|
migrateSchema(d);
|
|
594
595
|
verifySchema(d);
|
|
595
596
|
seedLegacyConnectorPollState(d);
|
|
@@ -1145,7 +1146,25 @@ function migrateSchema(d) {
|
|
|
1145
1146
|
})();
|
|
1146
1147
|
logger_default.info("[database] migrated schema to version 25 (published artifacts and their comments)");
|
|
1147
1148
|
}
|
|
1149
|
+
if (version < 26) {
|
|
1150
|
+
d.transaction(() => {
|
|
1151
|
+
d.exec(EFFECT_RECEIPTS_DDL);
|
|
1152
|
+
d.prepare(
|
|
1153
|
+
"INSERT OR REPLACE INTO schema_meta (key, value) VALUES ('schema_version', '26')"
|
|
1154
|
+
).run();
|
|
1155
|
+
})();
|
|
1156
|
+
logger_default.info("[database] migrated schema to version 26 (receipts for session effects)");
|
|
1157
|
+
}
|
|
1148
1158
|
}
|
|
1159
|
+
var EFFECT_RECEIPTS_DDL = `
|
|
1160
|
+
CREATE TABLE IF NOT EXISTS effect_receipts (
|
|
1161
|
+
effect_id TEXT PRIMARY KEY,
|
|
1162
|
+
kind TEXT NOT NULL,
|
|
1163
|
+
received_at INTEGER NOT NULL
|
|
1164
|
+
);
|
|
1165
|
+
|
|
1166
|
+
CREATE INDEX IF NOT EXISTS idx_effect_receipts_received ON effect_receipts(received_at);
|
|
1167
|
+
`;
|
|
1149
1168
|
var ARTIFACT_DDL = `
|
|
1150
1169
|
CREATE TABLE IF NOT EXISTS artifacts (
|
|
1151
1170
|
id TEXT PRIMARY KEY,
|
|
@@ -1488,9 +1507,18 @@ function loadDefaults(d) {
|
|
|
1488
1507
|
},
|
|
1489
1508
|
...map.worktreeRetention !== void 0 && {
|
|
1490
1509
|
worktreeRetention: map.worktreeRetention
|
|
1491
|
-
}
|
|
1510
|
+
},
|
|
1511
|
+
...isPlainObject(map.experimental) && { experimental: experimentalFlags(map.experimental) }
|
|
1492
1512
|
};
|
|
1493
1513
|
}
|
|
1514
|
+
function isPlainObject(value) {
|
|
1515
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
1516
|
+
}
|
|
1517
|
+
function experimentalFlags(raw) {
|
|
1518
|
+
const flags = {};
|
|
1519
|
+
for (const [key, value] of Object.entries(raw)) if (typeof value === "boolean") flags[key] = value;
|
|
1520
|
+
return flags;
|
|
1521
|
+
}
|
|
1494
1522
|
function loadProjects(d) {
|
|
1495
1523
|
const rows = d.prepare("SELECT * FROM projects").all();
|
|
1496
1524
|
return rows.map(rowToProject);
|
|
@@ -5952,7 +5980,7 @@ console.warn = (...args) => _origError("[mcp:warn]", ...args);
|
|
|
5952
5980
|
console.error = (...args) => _origError("[mcp:error]", ...args);
|
|
5953
5981
|
async function main() {
|
|
5954
5982
|
configManager.init();
|
|
5955
|
-
const version = true ? "0.
|
|
5983
|
+
const version = true ? "0.8.0-beta.2" : createRequire(import.meta.url)("../package.json").version;
|
|
5956
5984
|
const server = createMcpServer(version);
|
|
5957
5985
|
const transport = new StdioServerTransport();
|
|
5958
5986
|
await server.connect(transport);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vornrun/mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0-beta.2",
|
|
4
4
|
"description": "Vorn MCP server — task management, git, and workflow tools for AI coding agents",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"zod": "^4.5.4"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@vornrun/server": "0.
|
|
42
|
-
"@vornrun/shared": "0.
|
|
41
|
+
"@vornrun/server": "0.8.0-beta.2",
|
|
42
|
+
"@vornrun/shared": "0.8.0-beta.2",
|
|
43
43
|
"tsup": "^8.5.1",
|
|
44
44
|
"tsx": "^4.23.1",
|
|
45
45
|
"typescript": "^6.0.3"
|