slashvibe-mcp 0.5.0 → 0.5.1

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.0",
3
+ "version": "0.5.1",
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
@@ -463,10 +463,19 @@ async function sendMessage(from, to, body, type = 'dm', payload = null, options
463
463
  return { error: 'auth_failed', message: 'Authentication failed. Try `vibe init` to re-register.' };
464
464
  }
465
465
 
466
- // Handle expired token
466
+ // Handle 401 — distinguish "never signed in" from "session expired".
467
+ // Sending a DM requires GitHub OAuth; reads (presence/inbox) are open.
468
+ // A misleading "expired" message here is a first-session papercut for the pilot.
467
469
  if (result.statusCode === 401) {
468
- console.error('[vibe] Auth expired. Run browser auth to refresh token.');
469
- return { error: 'auth_expired', message: 'Auth expired. Run `vibe init` to refresh token.' };
470
+ if (!config.hasOAuth()) {
471
+ console.error('[vibe] DM requires sign-in. Run `vibe init` (GitHub OAuth).');
472
+ return {
473
+ error: 'not_signed_in',
474
+ message: "You're not signed in yet — sending a DM needs a /vibe identity. Run `vibe init` to sign in with GitHub (opens a browser, no input needed), then try again.",
475
+ };
476
+ }
477
+ console.error('[vibe] Auth expired. Run `vibe init` to reconnect.');
478
+ return { error: 'auth_expired', message: 'Your /vibe session expired. Run `vibe init` to reconnect.' };
470
479
  }
471
480
 
472
481
  // Handle storage errors (KV write failed)
package/version.json CHANGED
@@ -1,15 +1,14 @@
1
1
  {
2
- "version": "0.5.0",
3
- "updated": "2026-02-19",
4
- "changelog": "Matrix multiplayer rooms: tools promoted to first-class, pair/guest/call deprecated",
2
+ "version": "0.5.1",
3
+ "updated": "2026-06-27",
4
+ "changelog": "Clearer first-session sign-in message: sending a DM before auth now says 'not signed in, run vibe init' instead of a misleading 'auth expired'",
5
5
  "features": [
6
+ "First-contact DM 401 distinguishes never-signed-in from expired session",
6
7
  "Matrix multiplayer rooms",
7
8
  "Matrix tools promoted: vibe_matrix_rooms, vibe_matrix_read, vibe_matrix_send",
8
9
  "Configurable bot port via MATRIX_BOT_PORT env var",
9
10
  "PostToolUse hook polls Matrix bot for ambient message injection",
10
- "Multi-agent collaboration: Claude + Codex + any model in shared rooms",
11
- "Planned: matrix-image tool (Nano Banana Pro inline visuals)",
12
- "Deprecated: pair, guest, call tools (replaced by Matrix rooms)"
11
+ "Multi-agent collaboration: Claude + Codex + any model in shared rooms"
13
12
  ],
14
13
  "deprecated": [
15
14
  "vibe_pair — use Matrix room invites",