@basegrid_tech/mcp 0.18.10 → 0.18.12

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 +27 -3
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -2139,10 +2139,34 @@ function saveConfig(config) {
2139
2139
  h.sshOptions ?? null
2140
2140
  );
2141
2141
  }
2142
- d.prepare("DELETE FROM tasks").run();
2142
+ const nextTaskIds = new Set((config.tasks ?? []).map((t) => t.id));
2143
+ const existingTaskIds = d.prepare("SELECT id FROM tasks").all().map(
2144
+ (r) => r.id
2145
+ );
2146
+ const deleteTask = d.prepare("DELETE FROM tasks WHERE id = ?");
2147
+ for (const id of existingTaskIds) {
2148
+ if (!nextTaskIds.has(id)) deleteTask.run(id);
2149
+ }
2143
2150
  const insertTask = d.prepare(
2144
2151
  `INSERT INTO tasks (id, project_name, title, description, status, "order", assigned_session_id, assigned_agent, agent_session_id, branch, use_worktree, created_at, updated_at, completed_at, source_connector_id, source_external_url, source_external_id)
2145
- VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`
2152
+ VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
2153
+ ON CONFLICT(id) DO UPDATE SET
2154
+ project_name = excluded.project_name,
2155
+ title = excluded.title,
2156
+ description = excluded.description,
2157
+ status = excluded.status,
2158
+ "order" = excluded."order",
2159
+ assigned_session_id = excluded.assigned_session_id,
2160
+ assigned_agent = excluded.assigned_agent,
2161
+ agent_session_id = excluded.agent_session_id,
2162
+ branch = excluded.branch,
2163
+ use_worktree = excluded.use_worktree,
2164
+ created_at = excluded.created_at,
2165
+ updated_at = excluded.updated_at,
2166
+ completed_at = excluded.completed_at,
2167
+ source_connector_id = excluded.source_connector_id,
2168
+ source_external_url = excluded.source_external_url,
2169
+ source_external_id = excluded.source_external_id`
2146
2170
  );
2147
2171
  for (const t of config.tasks ?? []) {
2148
2172
  insertTask.run(
@@ -4563,7 +4587,7 @@ console.warn = (...args) => _origError("[mcp:warn]", ...args);
4563
4587
  console.error = (...args) => _origError("[mcp:error]", ...args);
4564
4588
  async function main() {
4565
4589
  configManager.init();
4566
- const version = true ? "0.18.10" : createRequire(import.meta.url)("../package.json").version;
4590
+ const version = true ? "0.18.12" : createRequire(import.meta.url)("../package.json").version;
4567
4591
  const server = createMcpServer(version);
4568
4592
  const transport = new StdioServerTransport();
4569
4593
  await server.connect(transport);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@basegrid_tech/mcp",
3
- "version": "0.18.10",
3
+ "version": "0.18.12",
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.18.10",
46
- "@basegrid/shared": "0.18.10",
45
+ "@basegrid/server": "0.18.12",
46
+ "@basegrid/shared": "0.18.12",
47
47
  "tsup": "^8.5.1",
48
48
  "tsx": "^4.21.0",
49
49
  "typescript": "^6.0.3"