@basegrid_tech/mcp 0.8.0 → 0.10.0

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 +43 -53
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -596,6 +596,7 @@ function createSchema() {
596
596
  alias TEXT,
597
597
  alias_generated_at INTEGER,
598
598
  sort_order INTEGER NOT NULL DEFAULT 0,
599
+ is_auto_generated INTEGER,
599
600
  updated_at INTEGER NOT NULL,
600
601
  PRIMARY KEY (project_path, worktree_path)
601
602
  );
@@ -1180,6 +1181,18 @@ function migrateSchema(d) {
1180
1181
  "[database] migrated schema to version 25 (task_source_links unique includes external_url)"
1181
1182
  );
1182
1183
  }
1184
+ if (version < 26) {
1185
+ d.transaction(() => {
1186
+ const cols = d.prepare("PRAGMA table_info(worktree_list_cache)").all();
1187
+ if (!cols.some((c) => c.name === "is_auto_generated")) {
1188
+ d.exec("ALTER TABLE worktree_list_cache ADD COLUMN is_auto_generated INTEGER");
1189
+ }
1190
+ d.prepare(
1191
+ "INSERT OR REPLACE INTO schema_meta (key, value) VALUES ('schema_version', '26')"
1192
+ ).run();
1193
+ })();
1194
+ logger_default.info("[database] migrated schema to version 26 (worktree is_auto_generated flag)");
1195
+ }
1183
1196
  }
1184
1197
  function verifySchema(d) {
1185
1198
  const expectedTables = [
@@ -1338,6 +1351,10 @@ function verifySchema(d) {
1338
1351
  {
1339
1352
  column: "sort_order",
1340
1353
  ddl: "ALTER TABLE worktree_list_cache ADD COLUMN sort_order INTEGER NOT NULL DEFAULT 0"
1354
+ },
1355
+ {
1356
+ column: "is_auto_generated",
1357
+ ddl: "ALTER TABLE worktree_list_cache ADD COLUMN is_auto_generated INTEGER"
1341
1358
  }
1342
1359
  ]
1343
1360
  };
@@ -1383,12 +1400,11 @@ var DEFAULTS_KEYS_MAP = {
1383
1400
  theme: true,
1384
1401
  rowHeight: true,
1385
1402
  defaultAgent: true,
1403
+ defaultSessionView: true,
1386
1404
  notifications: true,
1387
1405
  hasSeenOnboarding: true,
1388
1406
  widgetEnabled: true,
1389
1407
  minimizeToTray: true,
1390
- dashboardEnabled: true,
1391
- canvasEnabled: true,
1392
1408
  slashCommandFallbackDescription: true,
1393
1409
  taskViewMode: true,
1394
1410
  taskListCollapsedStatuses: true,
@@ -1412,7 +1428,6 @@ var DEFAULTS_KEYS_MAP = {
1412
1428
  defaultSpinnerVariant: true,
1413
1429
  dragFilesFromChanges: true,
1414
1430
  taskGithubIssueEnabled: true,
1415
- dashboardCollapsedColumns: true,
1416
1431
  perfOverlayEnabled: true,
1417
1432
  sidebarSnapPointsEnabled: true,
1418
1433
  sidebarWidth: true,
@@ -1423,7 +1438,12 @@ var DEFAULTS_KEYS_MAP = {
1423
1438
  reviewAgent: true,
1424
1439
  reviewClaudeModel: true,
1425
1440
  reviewCodexModel: true,
1426
- reviewCodexEffort: true
1441
+ reviewCodexEffort: true,
1442
+ aiCommitModel: true,
1443
+ aiCommitThinkingLevel: true,
1444
+ aiCommitCustomPrompt: true,
1445
+ voiceDictationEnabled: true,
1446
+ voiceInputDeviceId: true
1427
1447
  };
1428
1448
  var DEFAULTS_KEYS = Object.keys(DEFAULTS_KEYS_MAP);
1429
1449
  var INTERNAL_DEFAULTS_KEYS = /* @__PURE__ */ new Set([
@@ -1680,65 +1700,35 @@ function dbInsertTask(task) {
1680
1700
  task.sourceExternalId ?? null
1681
1701
  );
1682
1702
  }
1703
+ function addSet(sets, params, column, value) {
1704
+ if (value !== void 0) {
1705
+ sets.push(`${column} = ?`);
1706
+ params.push(value);
1707
+ }
1708
+ }
1683
1709
  function dbUpdateTask(id, updates) {
1684
1710
  const sets = [];
1685
1711
  const params = [];
1686
- if (updates.title !== void 0) {
1687
- sets.push("title = ?");
1688
- params.push(updates.title);
1689
- }
1690
- if (updates.description !== void 0) {
1691
- sets.push("description = ?");
1692
- params.push(updates.description);
1693
- }
1694
- if (updates.status !== void 0) {
1695
- sets.push("status = ?");
1696
- params.push(updates.status);
1697
- }
1698
- if (updates.order !== void 0) {
1699
- sets.push('"order" = ?');
1700
- params.push(updates.order);
1701
- }
1702
- if (updates.branch !== void 0) {
1703
- sets.push("branch = ?");
1704
- params.push(updates.branch);
1705
- }
1712
+ addSet(sets, params, "title", updates.title);
1713
+ addSet(sets, params, "description", updates.description);
1714
+ addSet(sets, params, "status", updates.status);
1715
+ addSet(sets, params, '"order"', updates.order);
1716
+ addSet(sets, params, "branch", updates.branch);
1706
1717
  if (updates.useWorktree !== void 0) {
1707
1718
  sets.push("use_worktree = ?");
1708
1719
  params.push(updates.useWorktree ? 1 : 0);
1709
1720
  }
1710
- if (updates.assignedAgent !== void 0) {
1711
- sets.push("assigned_agent = ?");
1712
- params.push(updates.assignedAgent);
1713
- }
1714
- if (updates.assignedSessionId !== void 0) {
1715
- sets.push("assigned_session_id = ?");
1716
- params.push(updates.assignedSessionId);
1717
- }
1718
- if (updates.agentSessionId !== void 0) {
1719
- sets.push("agent_session_id = ?");
1720
- params.push(updates.agentSessionId);
1721
- }
1722
- if (updates.updatedAt !== void 0) {
1723
- sets.push("updated_at = ?");
1724
- params.push(updates.updatedAt);
1725
- }
1721
+ addSet(sets, params, "assigned_agent", updates.assignedAgent);
1722
+ addSet(sets, params, "assigned_session_id", updates.assignedSessionId);
1723
+ addSet(sets, params, "agent_session_id", updates.agentSessionId);
1724
+ addSet(sets, params, "updated_at", updates.updatedAt);
1726
1725
  if ("completedAt" in updates) {
1727
1726
  sets.push("completed_at = ?");
1728
1727
  params.push(updates.completedAt ?? null);
1729
1728
  }
1730
- if (updates.sourceConnectorId !== void 0) {
1731
- sets.push("source_connector_id = ?");
1732
- params.push(updates.sourceConnectorId);
1733
- }
1734
- if (updates.sourceExternalUrl !== void 0) {
1735
- sets.push("source_external_url = ?");
1736
- params.push(updates.sourceExternalUrl);
1737
- }
1738
- if (updates.sourceExternalId !== void 0) {
1739
- sets.push("source_external_id = ?");
1740
- params.push(updates.sourceExternalId);
1741
- }
1729
+ addSet(sets, params, "source_connector_id", updates.sourceConnectorId);
1730
+ addSet(sets, params, "source_external_url", updates.sourceExternalUrl);
1731
+ addSet(sets, params, "source_external_id", updates.sourceExternalId);
1742
1732
  if (sets.length === 0) return;
1743
1733
  params.push(id);
1744
1734
  getDb().prepare(`UPDATE tasks SET ${sets.join(", ")} WHERE id = ?`).run(...params);
@@ -3597,7 +3587,7 @@ console.warn = (...args) => _origError("[mcp:warn]", ...args);
3597
3587
  console.error = (...args) => _origError("[mcp:error]", ...args);
3598
3588
  async function main() {
3599
3589
  configManager.init();
3600
- const version = true ? "0.8.0" : createRequire(import.meta.url)("../package.json").version;
3590
+ const version = true ? "0.10.0" : createRequire(import.meta.url)("../package.json").version;
3601
3591
  const server = createMcpServer(version);
3602
3592
  const transport = new StdioServerTransport();
3603
3593
  await server.connect(transport);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@basegrid_tech/mcp",
3
- "version": "0.8.0",
3
+ "version": "0.10.0",
4
4
  "description": "BaseGrid MCP server — task management, git, and workflow tools for AI coding agents",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -42,8 +42,8 @@
42
42
  "zod": "^4.3.6"
43
43
  },
44
44
  "devDependencies": {
45
- "@basegrid/server": "0.8.0",
46
- "@basegrid/shared": "0.8.0",
45
+ "@basegrid/server": "0.10.0",
46
+ "@basegrid/shared": "0.10.0",
47
47
  "tsup": "^8.5.1",
48
48
  "tsx": "^4.21.0",
49
49
  "typescript": "^6.0.3"