slashvibe-mcp 0.5.17 → 0.5.18

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "slashvibe-mcp",
3
- "version": "0.5.17",
3
+ "version": "0.5.18",
4
4
  "mcpName": "io.github.vibecodinginc/vibe",
5
5
  "description": "Social layer for Claude Code - DMs, presence, Matrix multiplayer rooms, and connection between AI-assisted developers",
6
6
  "main": "index.js",
package/store/api.js CHANGED
@@ -269,8 +269,22 @@ async function heartbeat(handle, one_liner, context = null) {
269
269
  try {
270
270
  const endpoint = USE_V2_PRESENCE ? '/api/v2/presence' : '/api/presence';
271
271
 
272
+ // Always include cwd + sessionId so the server can record a per-session beacon
273
+ // for the "My Sessions" feature. path.basename is CJS-safe here.
274
+ const cwd = process.cwd();
275
+ const project = require('path').basename(cwd);
276
+ const sessionId = config.getSessionId();
277
+
272
278
  // Build payload
273
- const payload = { workingOn: one_liner, source: 'mcp', ttl_seconds: 120 };
279
+ const payload = {
280
+ workingOn: one_liner,
281
+ source: 'mcp',
282
+ ttl_seconds: 120,
283
+ // Session beacon fields — always sent so server can track live sessions
284
+ cwd,
285
+ project,
286
+ sessionId,
287
+ };
274
288
 
275
289
  // Fallback: if no token, send username (legacy support)
276
290
  if (!config.getAuthToken()) {
@@ -283,10 +297,11 @@ async function heartbeat(handle, one_liner, context = null) {
283
297
  // v2: flat structure
284
298
  if (context.mood) payload.mood = context.mood;
285
299
  if (context.file) payload.file = context.file;
286
- if (context.project) payload.project = context.project;
300
+ if (context.project) payload.project = context.project || project;
287
301
  if (context.awayMessage) payload.awayMessage = context.awayMessage;
288
- if (context.sessionId) payload.sessionId = context.sessionId;
302
+ if (context.sessionId) payload.sessionId = context.sessionId || sessionId;
289
303
  if (context.availableFor !== undefined) payload.availableFor = context.availableFor;
304
+ if (context.model) payload.model = context.model;
290
305
  } else {
291
306
  // v1: nested context
292
307
  payload.context = context;
package/version.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.5.17",
2
+ "version": "0.5.18",
3
3
  "updated": "2026-07-05",
4
4
  "changelog": "Your first five minutes just got clearer. `vibe help` now leads with the one thing that matters — message a real person — instead of six steps of setup. `vibe who` puts humans first with agents in their own lane. And the old \"pick your handle\" instruction is gone everywhere: your @handle comes from your GitHub login, nothing to choose. Say hi to someone: `vibe who` then `vibe dm @handle \"hey\"`.",
5
5
  "features": [