@vornrun/mcp 0.7.0-beta.5 → 0.7.0-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.
Files changed (2) hide show
  1. package/dist/index.js +22 -3
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -888,6 +888,18 @@ function migrateSchema(d) {
888
888
  })();
889
889
  logger_default.info("[database] migrated schema to version 15 (config row revisions)");
890
890
  }
891
+ if (version < 16) {
892
+ d.transaction(() => {
893
+ const cols = d.prepare("PRAGMA table_info(sessions)").all();
894
+ if (!cols.some((c) => c.name === "shell_cwd")) {
895
+ d.exec("ALTER TABLE sessions ADD COLUMN shell_cwd TEXT");
896
+ }
897
+ d.prepare(
898
+ "INSERT OR REPLACE INTO schema_meta (key, value) VALUES ('schema_version', '16')"
899
+ ).run();
900
+ })();
901
+ logger_default.info("[database] migrated schema to version 16 (shell working directory)");
902
+ }
891
903
  }
892
904
  var REVISIONED_TABLES = [
893
905
  "projects",
@@ -930,7 +942,8 @@ function verifySchema(d) {
930
942
  ddl: "ALTER TABLE sessions ADD COLUMN sort_order INTEGER NOT NULL DEFAULT 0"
931
943
  },
932
944
  { column: "worktree_name", ddl: "ALTER TABLE sessions ADD COLUMN worktree_name TEXT" },
933
- { column: "agent_session_id", ddl: "ALTER TABLE sessions ADD COLUMN agent_session_id TEXT" }
945
+ { column: "agent_session_id", ddl: "ALTER TABLE sessions ADD COLUMN agent_session_id TEXT" },
946
+ { column: "shell_cwd", ddl: "ALTER TABLE sessions ADD COLUMN shell_cwd TEXT" }
934
947
  ],
935
948
  agent_commands: [
936
949
  {
@@ -1078,7 +1091,13 @@ function loadDefaults(d) {
1078
1091
  ...map.hasSeenOnboarding !== void 0 && {
1079
1092
  hasSeenOnboarding: map.hasSeenOnboarding
1080
1093
  },
1081
- ...map.reopenSessions !== void 0 && { reopenSessions: map.reopenSessions },
1094
+ // Default on, and that changed meaning rather than merely flipping. It used
1095
+ // to decide whether every saved session was relaunched at start-up, which
1096
+ // spends tokens and starts processes -- worth asking about, so it was off.
1097
+ // Bringing a pane back no longer does either: it shows the last screen its
1098
+ // terminal drew and waits. There is nothing to ask, and leaving it off made
1099
+ // the whole thing invisible unless somebody went looking for a toggle.
1100
+ reopenSessions: map.reopenSessions ?? true,
1082
1101
  // Saving iterates over every key in defaults, but loading is this explicit
1083
1102
  // list — so a key missing here round-trips to nothing and its feature is
1084
1103
  // silently inert.
@@ -4374,7 +4393,7 @@ console.warn = (...args) => _origError("[mcp:warn]", ...args);
4374
4393
  console.error = (...args) => _origError("[mcp:error]", ...args);
4375
4394
  async function main() {
4376
4395
  configManager.init();
4377
- const version = true ? "0.7.0-beta.5" : createRequire(import.meta.url)("../package.json").version;
4396
+ const version = true ? "0.7.0-beta.6" : createRequire(import.meta.url)("../package.json").version;
4378
4397
  const server = createMcpServer(version);
4379
4398
  const transport = new StdioServerTransport();
4380
4399
  await server.connect(transport);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vornrun/mcp",
3
- "version": "0.7.0-beta.5",
3
+ "version": "0.7.0-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.4.3"
39
39
  },
40
40
  "devDependencies": {
41
- "@vornrun/server": "0.7.0-beta.5",
42
- "@vornrun/shared": "0.7.0-beta.5",
41
+ "@vornrun/server": "0.7.0-beta.6",
42
+ "@vornrun/shared": "0.7.0-beta.6",
43
43
  "tsup": "^8.5.1",
44
44
  "tsx": "^4.23.1",
45
45
  "typescript": "^6.0.3"