slashvibe-mcp 0.9.4 → 0.9.5
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 +14 -0
- package/package.json +1 -1
- package/store/api.js +36 -23
package/README.md
CHANGED
|
@@ -115,6 +115,20 @@ npx slashvibe-mcp mute @handle # one person stops surfacing: unmute @handle
|
|
|
115
115
|
The line that says what you are working on is yours. Tell your agent ("say I'm working on
|
|
116
116
|
the scheduler lease") and it sets it; nothing is taken from your repository.
|
|
117
117
|
|
|
118
|
+
That includes where you are working. While a session is open it tells /vibe that you are
|
|
119
|
+
here, which coding agent you are in, and the line you set. It does not send your folder
|
|
120
|
+
path, folder name, file names or branch. One exception you turn on yourself: if you use
|
|
121
|
+
Vibe Buddy's list of your own sessions, set `VIBE_SESSION_BEACON=1` in the vibe server's
|
|
122
|
+
`env`; your sessions then send their folder path, kept for an hour where only you can
|
|
123
|
+
read it. For Claude Code that is `~/.claude.json`:
|
|
124
|
+
|
|
125
|
+
```json
|
|
126
|
+
"vibe": { "command": "npx", "args": ["-y", "slashvibe-mcp@latest"],
|
|
127
|
+
"env": { "VIBE_API_URL": "https://www.slashvibe.dev", "VIBE_SESSION_BEACON": "1" } }
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
Then restart your sessions.
|
|
131
|
+
|
|
118
132
|
## The whole surface
|
|
119
133
|
|
|
120
134
|
Nine tools, for the agent (plus `vibe_init` and `vibe_token`, which only handle sign-in):
|
package/package.json
CHANGED
package/store/api.js
CHANGED
|
@@ -253,19 +253,22 @@ async function registerSession(sessionId, handle, building = null, publicKey = n
|
|
|
253
253
|
console.error(`[vibe] Registered @${handle} (legacy mode)`);
|
|
254
254
|
}
|
|
255
255
|
|
|
256
|
-
//
|
|
257
|
-
//
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
userData
|
|
256
|
+
// The person's own line, to their profile, ONLY when they set one.
|
|
257
|
+
//
|
|
258
|
+
// This used to post `building: 'something cool'` whenever no line was given,
|
|
259
|
+
// which is every time a session opens: an invented sentence about a real
|
|
260
|
+
// person, sent in their name. Nothing is said for someone who said nothing.
|
|
261
|
+
const said = typeof building === 'string' ? building.trim() : '';
|
|
262
|
+
if (said) {
|
|
263
|
+
try {
|
|
264
|
+
const userData = { username: handle, building: said };
|
|
265
|
+
if (publicKey) {
|
|
266
|
+
userData.publicKey = publicKey;
|
|
267
|
+
}
|
|
268
|
+
await request('POST', '/api/users', userData, { auth: false });
|
|
269
|
+
} catch (e) {
|
|
270
|
+
// Non-fatal if the profile update fails
|
|
265
271
|
}
|
|
266
|
-
await request('POST', '/api/users', userData, { auth: false }); // User registration doesn't need auth
|
|
267
|
-
} catch (e) {
|
|
268
|
-
// Non-fatal if user registration fails
|
|
269
272
|
}
|
|
270
273
|
|
|
271
274
|
return result;
|
|
@@ -279,11 +282,18 @@ async function heartbeat(handle, one_liner, context = null) {
|
|
|
279
282
|
try {
|
|
280
283
|
const endpoint = USE_V2_PRESENCE ? '/api/v2/presence' : '/api/presence';
|
|
281
284
|
|
|
282
|
-
//
|
|
283
|
-
//
|
|
284
|
-
|
|
285
|
-
|
|
285
|
+
// NOTHING FROM THE WORKING DIRECTORY LEAVES BY DEFAULT.
|
|
286
|
+
//
|
|
287
|
+
// Until 0.9.5 every heartbeat (one every 30 seconds) carried the full
|
|
288
|
+
// working directory path and its folder name. The platform kept the path
|
|
289
|
+
// for an hour where only its owner could read it (Buddy's "My Sessions"),
|
|
290
|
+
// and stored the folder name on the presence row, which it serves to
|
|
291
|
+
// every signed-in person. The README said nothing is taken from your
|
|
292
|
+
// repository. Now that is true: the folder name is never sent, and the
|
|
293
|
+
// path is sent only when the person asked for it, for their own session
|
|
294
|
+
// list (VIBE_SESSION_BEACON=1 in the server's env).
|
|
286
295
|
const sessionId = config.getSessionId();
|
|
296
|
+
const sessionBeacon = ['1', 'true'].includes(String(process.env.VIBE_SESSION_BEACON || '').toLowerCase());
|
|
287
297
|
|
|
288
298
|
// Which coding agent hosts this session (claude-code / codex / cursor / …)
|
|
289
299
|
// — from the MCP initialize handshake, env fingerprint fallback. Persisted
|
|
@@ -298,10 +308,12 @@ async function heartbeat(handle, one_liner, context = null) {
|
|
|
298
308
|
clientName: host.agent,
|
|
299
309
|
...(host.version ? { clientVersion: host.version } : {}),
|
|
300
310
|
ttl_seconds: 120,
|
|
301
|
-
// Session beacon fields — always sent so server can track live sessions
|
|
302
|
-
cwd,
|
|
303
|
-
project,
|
|
304
311
|
sessionId,
|
|
312
|
+
// The person's own session list, only when they turned it on. The
|
|
313
|
+
// platform derives the list's label from the path and keeps both where
|
|
314
|
+
// only the owner can read them; `project` is deliberately never sent,
|
|
315
|
+
// because that field is what lands on the presence row others can see.
|
|
316
|
+
...(sessionBeacon ? { cwd: process.cwd() } : {}),
|
|
305
317
|
};
|
|
306
318
|
|
|
307
319
|
// Fallback: if no token, send username (legacy support)
|
|
@@ -314,15 +326,16 @@ async function heartbeat(handle, one_liner, context = null) {
|
|
|
314
326
|
if (USE_V2_PRESENCE) {
|
|
315
327
|
// v2: flat structure
|
|
316
328
|
if (context.mood) payload.mood = context.mood;
|
|
317
|
-
|
|
318
|
-
|
|
329
|
+
// `file` and `project` used to ride here. Nothing derived from the
|
|
330
|
+
// working directory is sent as presence; see the note above.
|
|
319
331
|
if (context.awayMessage) payload.awayMessage = context.awayMessage;
|
|
320
332
|
if (context.sessionId) payload.sessionId = context.sessionId || sessionId;
|
|
321
333
|
if (context.availableFor !== undefined) payload.availableFor = context.availableFor;
|
|
322
334
|
if (context.model) payload.model = context.model;
|
|
323
335
|
} else {
|
|
324
|
-
// v1: nested context
|
|
325
|
-
|
|
336
|
+
// v1: nested context, minus anything derived from the working directory
|
|
337
|
+
const { file: _file, project: _project, ...rest } = context;
|
|
338
|
+
payload.context = rest;
|
|
326
339
|
}
|
|
327
340
|
}
|
|
328
341
|
|