@vornrun/mcp 0.7.1-beta.5 → 0.7.1-beta.6
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 +26 -2
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -535,6 +535,8 @@ function createSchema() {
|
|
|
535
535
|
round INTEGER,
|
|
536
536
|
feedback TEXT,
|
|
537
537
|
rejected_at TEXT,
|
|
538
|
+
editable_text TEXT,
|
|
539
|
+
edited_text TEXT,
|
|
538
540
|
FOREIGN KEY (run_id) REFERENCES workflow_runs(id) ON DELETE CASCADE
|
|
539
541
|
);
|
|
540
542
|
|
|
@@ -1119,6 +1121,20 @@ function migrateSchema(d) {
|
|
|
1119
1121
|
})();
|
|
1120
1122
|
logger_default.info("[database] migrated schema to version 23 (what an approval gate asked and heard)");
|
|
1121
1123
|
}
|
|
1124
|
+
if (version < 24) {
|
|
1125
|
+
d.transaction(() => {
|
|
1126
|
+
const nodeCols = d.prepare("PRAGMA table_info(workflow_run_nodes)").all();
|
|
1127
|
+
for (const [column, type] of GATE_EDIT_COLUMNS) {
|
|
1128
|
+
if (!nodeCols.some((c) => c.name === column)) {
|
|
1129
|
+
d.exec(`ALTER TABLE workflow_run_nodes ADD COLUMN ${column} ${type}`);
|
|
1130
|
+
}
|
|
1131
|
+
}
|
|
1132
|
+
d.prepare(
|
|
1133
|
+
"INSERT OR REPLACE INTO schema_meta (key, value) VALUES ('schema_version', '24')"
|
|
1134
|
+
).run();
|
|
1135
|
+
})();
|
|
1136
|
+
logger_default.info("[database] migrated schema to version 24 (the text a reviewer edited at a gate)");
|
|
1137
|
+
}
|
|
1122
1138
|
}
|
|
1123
1139
|
var GATE_COLUMNS = [
|
|
1124
1140
|
["message", "TEXT"],
|
|
@@ -1127,6 +1143,10 @@ var GATE_COLUMNS = [
|
|
|
1127
1143
|
["feedback", "TEXT"],
|
|
1128
1144
|
["rejected_at", "TEXT"]
|
|
1129
1145
|
];
|
|
1146
|
+
var GATE_EDIT_COLUMNS = [
|
|
1147
|
+
["editable_text", "TEXT"],
|
|
1148
|
+
["edited_text", "TEXT"]
|
|
1149
|
+
];
|
|
1130
1150
|
var REVISIONED_TABLES = [
|
|
1131
1151
|
"projects",
|
|
1132
1152
|
"tasks",
|
|
@@ -3863,6 +3883,9 @@ The run is stopped by the instance holding it, so confirm with list_workflow_run
|
|
|
3863
3883
|
comment: z5.string().max(2e4).optional().describe(
|
|
3864
3884
|
"Required for changes: what to change. Optional on approve and reject; kept with the run."
|
|
3865
3885
|
),
|
|
3886
|
+
edited: z5.string().max(2e5).optional().describe(
|
|
3887
|
+
"Your rewrite of the gate's editable text, when it has one. Kept beside the original, and read by later steps as {{steps.<gate>.text}}. Ignored on reject."
|
|
3888
|
+
),
|
|
3866
3889
|
node_id: V.id.optional().describe("The waiting node, when a run has more than one gate open")
|
|
3867
3890
|
},
|
|
3868
3891
|
async (args) => {
|
|
@@ -3911,7 +3934,8 @@ The run is stopped by the instance holding it, so confirm with list_workflow_run
|
|
|
3911
3934
|
runId: args.run_id,
|
|
3912
3935
|
nodeId: target.nodeId,
|
|
3913
3936
|
decision: args.decision,
|
|
3914
|
-
...args.comment?.trim() && { comment: args.comment.trim() }
|
|
3937
|
+
...args.comment?.trim() && { comment: args.comment.trim() },
|
|
3938
|
+
...args.edited?.trim() && { edited: args.edited.trim() }
|
|
3915
3939
|
});
|
|
3916
3940
|
if (answer?.accepted === false) {
|
|
3917
3941
|
return {
|
|
@@ -5111,7 +5135,7 @@ console.warn = (...args) => _origError("[mcp:warn]", ...args);
|
|
|
5111
5135
|
console.error = (...args) => _origError("[mcp:error]", ...args);
|
|
5112
5136
|
async function main() {
|
|
5113
5137
|
configManager.init();
|
|
5114
|
-
const version = true ? "0.7.1-beta.
|
|
5138
|
+
const version = true ? "0.7.1-beta.6" : createRequire(import.meta.url)("../package.json").version;
|
|
5115
5139
|
const server = createMcpServer(version);
|
|
5116
5140
|
const transport = new StdioServerTransport();
|
|
5117
5141
|
await server.connect(transport);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vornrun/mcp",
|
|
3
|
-
"version": "0.7.1-beta.
|
|
3
|
+
"version": "0.7.1-beta.6",
|
|
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.7.1-beta.
|
|
42
|
-
"@vornrun/shared": "0.7.1-beta.
|
|
41
|
+
"@vornrun/server": "0.7.1-beta.6",
|
|
42
|
+
"@vornrun/shared": "0.7.1-beta.6",
|
|
43
43
|
"tsup": "^8.5.1",
|
|
44
44
|
"tsx": "^4.23.1",
|
|
45
45
|
"typescript": "^6.0.3"
|