session-collab-mcp 0.8.0 → 0.8.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/README.md CHANGED
@@ -30,20 +30,12 @@ Session Collab MCP provides a **Work-in-Progress (WIP) Registry** that allows se
30
30
 
31
31
  Install as a Claude Code plugin for automatic MCP server setup, hooks, and skills:
32
32
 
33
- ```bash
34
- # Add the marketplace
35
- /plugin marketplace add YOUR_USERNAME/session-collab-plugin
36
-
37
- # Install the plugin
38
- /plugin install session-collab@session-collab-plugins
39
- ```
40
-
41
- Or test locally:
42
-
43
33
  ```bash
44
34
  claude --plugin-dir ./plugin
45
35
  ```
46
36
 
37
+ > **Note**: Marketplace publishing coming soon. For now, clone the repo and use the local plugin directory.
38
+
47
39
  The plugin includes:
48
40
  - **MCP Server**: Automatically configured
49
41
  - **Hooks**: SessionStart and PreToolUse reminders
@@ -256,7 +248,8 @@ session-collab-mcp/
256
248
  │ ├── 0007_priority.sql # Claim priority
257
249
  │ ├── 0008_history.sql # Audit history
258
250
  │ ├── 0009_queue.sql # Claim queue
259
- └── 0010_notifications.sql # Notifications
251
+ ├── 0010_notifications.sql # Notifications
252
+ │ └── 0011_working_memory.sql # Working memory & plan protection
260
253
  ├── plugin/ # Claude Code Plugin
261
254
  │ ├── .claude-plugin/
262
255
  │ │ ├── plugin.json # Plugin manifest
@@ -295,6 +288,15 @@ session-collab-mcp/
295
288
 
296
289
  ## Changelog
297
290
 
291
+ ### v0.8.0
292
+
293
+ - Add working memory system for context persistence (`collab_memory_*` tools)
294
+ - Add plan protection (`collab_plan_register`, `collab_plan_update_status`)
295
+ - Add file protection (`collab_file_register`, `collab_file_check_protected`)
296
+ - Memory categories: finding, decision, state, todo, important, context
297
+ - Pinned memories survive context compaction
298
+ - Plan lifecycle: draft → approved → in_progress → completed → archived
299
+
298
300
  ### v0.7.1
299
301
 
300
302
  - Add `collab_auto_release` tool for releasing claims after editing
package/dist/cli.js CHANGED
@@ -94,11 +94,27 @@ var SqliteDatabase = class {
94
94
  return results;
95
95
  }
96
96
  // Initialize database schema
97
+ // Handles upgrades gracefully by ignoring "already exists" and "duplicate column" errors
97
98
  initSchema(migrations) {
98
99
  for (const migration of migrations) {
99
- this.db.exec(migration);
100
+ const statements = migration.split(";").map((s) => s.trim()).filter((s) => s.length > 0 && !s.startsWith("--"));
101
+ for (const stmt of statements) {
102
+ try {
103
+ this.runSql(stmt);
104
+ } catch (error) {
105
+ const message = error instanceof Error ? error.message : String(error);
106
+ const isIgnorable = message.includes("already exists") || message.includes("duplicate column name") || message.includes("UNIQUE constraint failed");
107
+ if (!isIgnorable) {
108
+ throw error;
109
+ }
110
+ }
111
+ }
100
112
  }
101
113
  }
114
+ // Run a single SQL statement (used by initSchema for granular error handling)
115
+ runSql(sql) {
116
+ this.db.prepare(sql).run();
117
+ }
102
118
  close() {
103
119
  this.db.close();
104
120
  }