slashvibe-mcp 0.5.14 → 0.5.15
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 +1 -1
- package/tools/weave.js +89 -3
- package/version.json +3 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "slashvibe-mcp",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.15",
|
|
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/tools/weave.js
CHANGED
|
@@ -30,15 +30,16 @@ const definition = {
|
|
|
30
30
|
'Spin the strand from what the user is ACTUALLY doing this session, inferred from their files/project/recent work — not a status they typed. ' +
|
|
31
31
|
'Fields: `building` (one specific line on the current work), `stuck_on` (the wall they keep hitting, if any — an error signature or repeated symptom), `last_ship` (most recent thing that landed), `voice_sample` (2-3 sentences in the user\'s actual writing voice, so Fable can later draft replies that sound like them), `tags` (a few topic keywords). ' +
|
|
32
32
|
'Everything is a distillation — never send raw source. ' +
|
|
33
|
-
'Use `action:"held"` to check whether anyone replied to a thread the user left hanging; if so it hands you the context to draft their half.'
|
|
33
|
+
'Use `action:"held"` to check whether anyone replied to a thread the user left hanging; if so it hands you the context to draft their half. ' +
|
|
34
|
+
'Use `action:"stuck"` when the user is blocked: it returns builders whose live work or shipped history may be the SAME problem already solved — you judge which candidate is truly the same problem, surface the shape of their fix, and offer a warm intro thread.',
|
|
34
35
|
inputSchema: {
|
|
35
36
|
type: 'object',
|
|
36
37
|
properties: {
|
|
37
38
|
action: {
|
|
38
39
|
type: 'string',
|
|
39
|
-
enum: ['attach', 'held', 'quiet'],
|
|
40
|
+
enum: ['attach', 'held', 'stuck', 'quiet'],
|
|
40
41
|
description:
|
|
41
|
-
"'attach' (default): spin/refresh your strand. 'held': surface any conversation where someone replied and you haven't answered, so you can draft the user's half. 'quiet': leave the weave (removes your strand).",
|
|
42
|
+
"'attach' (default): spin/refresh your strand. 'held': surface any conversation where someone replied and you haven't answered, so you can draft the user's half. 'stuck': find builders whose live work or shipped history is the same problem the user is blocked on (pass the wall as `stuck_on`, or it falls back to the attached strand). 'quiet': leave the weave (removes your strand).",
|
|
42
43
|
},
|
|
43
44
|
building: {
|
|
44
45
|
type: 'string',
|
|
@@ -97,6 +98,30 @@ async function postStrand({ digest, posture }) {
|
|
|
97
98
|
}
|
|
98
99
|
}
|
|
99
100
|
|
|
101
|
+
// Ask the loom for candidate SOLVERS — builders whose live work or shipped
|
|
102
|
+
// history may be the same problem the user is stuck on. Actor derived server-side
|
|
103
|
+
// from the token; we send only the stuck_on signature (or let the server fall
|
|
104
|
+
// back to the user's own stored strand when we omit it).
|
|
105
|
+
async function postSolve({ stuck_on } = {}) {
|
|
106
|
+
const token = config.getAuthToken();
|
|
107
|
+
if (!token) return { ok: false, error: 'no_token' };
|
|
108
|
+
try {
|
|
109
|
+
const resp = await fetch(`${apiBase()}/api/weave/solve`, {
|
|
110
|
+
method: 'POST',
|
|
111
|
+
headers: {
|
|
112
|
+
'Content-Type': 'application/json',
|
|
113
|
+
Authorization: `Bearer ${token}`,
|
|
114
|
+
},
|
|
115
|
+
body: JSON.stringify(stuck_on ? { stuck_on } : {}),
|
|
116
|
+
});
|
|
117
|
+
const json = await resp.json().catch(() => ({}));
|
|
118
|
+
if (!resp.ok) return { ok: false, error: json.error || `http_${resp.status}` };
|
|
119
|
+
return { ok: true, data: json.data || {} };
|
|
120
|
+
} catch (e) {
|
|
121
|
+
return { ok: false, error: e.message };
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
100
125
|
/**
|
|
101
126
|
* Find conversations where the other person replied and the user hasn't answered
|
|
102
127
|
* yet — the "you moved on, a reply landed" signal. Uses unread count as the
|
|
@@ -198,6 +223,67 @@ async function handler(args = {}) {
|
|
|
198
223
|
};
|
|
199
224
|
}
|
|
200
225
|
|
|
226
|
+
// ── Stuck: find a solver whose work is the same problem, already solved ────
|
|
227
|
+
if (action === 'stuck') {
|
|
228
|
+
const result = await postSolve({ stuck_on: args.stuck_on || '' });
|
|
229
|
+
if (!result.ok) {
|
|
230
|
+
if (result.error === 'no_token' || result.error === 'unauthenticated') {
|
|
231
|
+
return {
|
|
232
|
+
display:
|
|
233
|
+
"⚠️ Couldn't reach the loom — your /vibe session isn't authenticated. Run `vibe init` first.",
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
return {
|
|
237
|
+
display: `⚠️ Couldn't search the weave for solvers (${result.error}). Best-effort — try again.`,
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
const data = result.data || {};
|
|
242
|
+
const candidates = Array.isArray(data.candidates) ? data.candidates : [];
|
|
243
|
+
if (!data.stuck_on) {
|
|
244
|
+
return {
|
|
245
|
+
display:
|
|
246
|
+
"No stuck-signal to match on. Pass what the user is fighting as `stuck_on`, " +
|
|
247
|
+
'or attach a strand with a `stuck_on` first (`vibe_weave` with the wall they keep hitting).',
|
|
248
|
+
};
|
|
249
|
+
}
|
|
250
|
+
if (candidates.length === 0) {
|
|
251
|
+
return {
|
|
252
|
+
display:
|
|
253
|
+
`Searched the weave against _"${truncate(data.stuck_on, 120)}"_ — ` +
|
|
254
|
+
`no builder's live work or shipped history looks like the same problem yet. ` +
|
|
255
|
+
`Nothing to surface; don't invent a match.`,
|
|
256
|
+
};
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
// Hand the raw recall pool to the model. The model IS Fable here: it decides
|
|
260
|
+
// which candidate (if any) is TRULY the same problem, describes the shape of
|
|
261
|
+
// the fix from their work, and offers a warm intro thread — never fabricates.
|
|
262
|
+
const lines = candidates.slice(0, 8).map((c) => {
|
|
263
|
+
const where = c.online ? 'live now' : 'shipped';
|
|
264
|
+
const matched = Array.isArray(c.matched) && c.matched.length
|
|
265
|
+
? ` · overlaps: ${c.matched.slice(0, 5).join(', ')}`
|
|
266
|
+
: '';
|
|
267
|
+
return `• @${c.handle} (${where}${matched}): ${truncate(c.text || '', 200)}`;
|
|
268
|
+
});
|
|
269
|
+
|
|
270
|
+
return {
|
|
271
|
+
display:
|
|
272
|
+
`🧵 **The user is stuck on:** _"${truncate(data.stuck_on, 160)}"_\n\n` +
|
|
273
|
+
`Candidate solvers from the weave (${candidates.length} found · ${data.live || 0} live):\n` +
|
|
274
|
+
lines.join('\n') +
|
|
275
|
+
`\n\n**Your job (you are Fable at read time):** judge which candidate — if any — is ` +
|
|
276
|
+
`truly the *same problem*, not just shared keywords. Two different error messages can be ` +
|
|
277
|
+
`the same root cause; only you can see that. If one genuinely matches:\n` +
|
|
278
|
+
` 1. Name the shape of what worked for them (from their text above), so the user gets ` +
|
|
279
|
+
`unstuck even without talking.\n` +
|
|
280
|
+
` 2. Offer a warm thread: "@${'{handle}'} hit this and shipped a fix — want me to open a ` +
|
|
281
|
+
`thread so you can ask? (y)". On yes, send with \`vibe_dm @{handle}\` in the user's voice.\n` +
|
|
282
|
+
`If NONE is truly the same problem, say so plainly — never fabricate a match or a fix.`,
|
|
283
|
+
_solvers: candidates,
|
|
284
|
+
};
|
|
285
|
+
}
|
|
286
|
+
|
|
201
287
|
// ── Quiet: leave the weave ────────────────────────────────────────────────
|
|
202
288
|
if (action === 'quiet' || args.posture === 'quiet') {
|
|
203
289
|
await postStrand({ digest: {}, posture: 'quiet' });
|
package/version.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.5.
|
|
2
|
+
"version": "0.5.15",
|
|
3
3
|
"updated": "2026-07-04",
|
|
4
|
-
"changelog": "
|
|
4
|
+
"changelog": "The Weave gets its most useful moment: when you're stuck, Fable finds the builder whose live work or shipped history is the SAME problem — already solved — and hands you the shape of the fix, not just an introduction. Two different error messages can be the same root cause; only Fable can see that. Ask with `vibe_weave stuck`, or let it surface when you keep circling the same wall.",
|
|
5
5
|
"features": [
|
|
6
|
+
"Stuck-signatures (vibe_weave stuck) — blocked on something? Fable searches the weave for whoever already solved your exact problem — matching by the wall you're hitting, not keywords — surfaces the shape of their fix so you get unstuck, and offers to open a warm thread so you can ask. Never invents a match",
|
|
6
7
|
"The Weave (vibe_weave) — attach this session's strand (what you're building, what you're stuck on, your voice) so /vibe can bring social moments INTO your terminal. Nothing to visit; the magic comes to you. Weave in full, receive-only, or quiet — opting out is first-class",
|
|
7
8
|
"Fable holds your half — when someone replies to a thread you haven't answered, vibe start surfaces it and drafts your reply in your voice from what you were building. Send it with one word. Never auto-sends",
|
|
8
9
|
"Received collaboration (vibe_intro) — after sign-in, your agent summarizes what you're building and /vibe matches you to a real human online whose current work or recent ship overlaps, then drafts a two-sided opener you send with one word. The signal only /vibe can see — what's inside two people's live coding sessions at once — becomes the introduction",
|