slashvibe-mcp 0.2.9 ā 0.3.13
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 +1 -0
- package/analytics.js +107 -0
- package/auth-store.js +148 -0
- package/auto-update.js +130 -0
- package/bridges/bridge-monitor.js +388 -0
- package/bridges/discord-bot.js +431 -0
- package/bridges/farcaster.js +299 -0
- package/bridges/telegram.js +261 -0
- package/bridges/webhook-health.js +420 -0
- package/bridges/webhook-server.js +437 -0
- package/bridges/whatsapp.js +441 -0
- package/bridges/x-webhook.js +423 -0
- package/config.js +154 -5
- package/crypto.js +3 -8
- package/games/arcade.js +406 -0
- package/games/chess.js +451 -0
- package/games/colorguess.js +343 -0
- package/games/crossword-words.js +171 -0
- package/games/crossword.js +461 -0
- package/games/drawing.js +347 -0
- package/games/gameroulette.js +300 -0
- package/games/gamerouter.js +336 -0
- package/games/gamestatus.js +337 -0
- package/games/guessnumber.js +209 -0
- package/games/hangman.js +279 -0
- package/games/memory.js +338 -0
- package/games/multiplayer-tictactoe.js +389 -0
- package/games/pixelart.js +399 -0
- package/games/quickduel.js +354 -0
- package/games/riddle.js +371 -0
- package/games/rockpaperscissors.js +291 -0
- package/games/snake.js +406 -0
- package/games/storybuilder.js +343 -0
- package/games/tictactoe.js +345 -0
- package/games/twentyquestions.js +286 -0
- package/games/twotruths.js +207 -0
- package/games/werewolf.js +508 -0
- package/games/wordassociation.js +247 -0
- package/games/wordchain.js +135 -0
- package/index.js +105 -216
- package/intelligence/index.js +45 -0
- package/intelligence/infer.js +316 -0
- package/intelligence/interests.js +369 -0
- package/intelligence/patterns.js +651 -0
- package/intelligence/proactive.js +358 -0
- package/intelligence/serendipity.js +306 -0
- package/memory.js +166 -0
- package/notification-emitter.js +77 -0
- package/notify.js +102 -1
- package/package.json +21 -7
- package/prompts.js +1 -1
- package/protocol/index.js +161 -1
- package/setup.js +402 -0
- package/store/api.js +528 -82
- package/store/profiles.js +160 -12
- package/tools/_actions.js +463 -16
- package/tools/_deprecated/auto-suggest-connections.js +304 -0
- package/tools/_deprecated/bootstrap-skills.js +231 -0
- package/tools/_deprecated/bridge-dashboard.js +342 -0
- package/tools/_deprecated/bridge-health.js +400 -0
- package/tools/_deprecated/bridge-live.js +384 -0
- package/tools/_deprecated/bridges.js +383 -0
- package/tools/_deprecated/colorguess.js +281 -0
- package/tools/_deprecated/discover-insights.js +379 -0
- package/tools/_deprecated/discover-momentum.js +256 -0
- package/tools/_deprecated/discovery-analytics.js +345 -0
- package/tools/_deprecated/discovery-auto-suggest.js +275 -0
- package/tools/_deprecated/discovery-bootstrap.js +267 -0
- package/tools/_deprecated/discovery-daily.js +375 -0
- package/tools/_deprecated/discovery-dashboard.js +385 -0
- package/tools/_deprecated/discovery-digest.js +314 -0
- package/tools/_deprecated/discovery-hub.js +357 -0
- package/tools/_deprecated/discovery-insights.js +384 -0
- package/tools/_deprecated/discovery-momentum.js +281 -0
- package/tools/_deprecated/discovery-monitor.js +319 -0
- package/tools/_deprecated/discovery-proactive.js +300 -0
- package/tools/_deprecated/draw.js +317 -0
- package/tools/_deprecated/farcaster.js +307 -0
- package/tools/_deprecated/forget.js +119 -0
- package/tools/_deprecated/games-catalog.js +376 -0
- package/tools/_deprecated/games.js +313 -0
- package/tools/_deprecated/guessnumber.js +194 -0
- package/tools/_deprecated/hangman.js +129 -0
- package/tools/_deprecated/multiplayer-tictactoe.js +303 -0
- package/tools/_deprecated/recall.js +147 -0
- package/tools/_deprecated/remember.js +86 -0
- package/tools/_deprecated/riddle.js +240 -0
- package/tools/_deprecated/run-bootstrap.js +69 -0
- package/tools/_deprecated/skills-analytics.js +349 -0
- package/tools/_deprecated/skills-bootstrap.js +301 -0
- package/tools/_deprecated/skills-dashboard.js +268 -0
- package/tools/_deprecated/skills.js +380 -0
- package/tools/_deprecated/smart-intro.js +353 -0
- package/tools/_deprecated/storybuilder.js +331 -0
- package/tools/_deprecated/telegram-bot.js +183 -0
- package/tools/_deprecated/telegram-setup.js +214 -0
- package/tools/_deprecated/twentyquestions.js +143 -0
- package/tools/_discovery-enhanced.js +290 -0
- package/tools/_discovery.js +439 -0
- package/tools/_proactive-discovery.js +301 -0
- package/tools/_shared/index.js +64 -0
- package/tools/_shared.js +234 -0
- package/tools/_work-context.js +338 -0
- package/tools/_work-context.manual-test.js +199 -0
- package/tools/_work-context.test.js +260 -0
- package/tools/activity.js +220 -0
- package/tools/admin-inbox.js +218 -0
- package/tools/agent-treasury.js +288 -0
- package/tools/analytics.js +191 -0
- package/tools/approve.js +197 -0
- package/tools/arcade.js +173 -0
- package/tools/artifact-create.js +17 -11
- package/tools/artifact-view.js +31 -1
- package/tools/artifacts-price.js +47 -43
- package/tools/ask-expert.js +160 -0
- package/tools/available.js +120 -0
- package/tools/become-expert.js +150 -0
- package/tools/broadcast.js +286 -0
- package/tools/chat.js +202 -0
- package/tools/collaborative-drawing.js +286 -0
- package/tools/connection-status.js +178 -0
- package/tools/crossword.js +17 -1
- package/tools/discover.js +350 -34
- package/tools/dm.js +115 -73
- package/tools/drawing.js +1 -1
- package/tools/earnings.js +126 -0
- package/tools/echo.js +16 -0
- package/tools/feed.js +51 -7
- package/tools/follow.js +224 -0
- package/tools/friends.js +207 -0
- package/tools/game.js +2 -2
- package/tools/genesis.js +233 -0
- package/tools/gig-browse.js +206 -0
- package/tools/gig-complete.js +144 -0
- package/tools/handoff.js +7 -1
- package/tools/help.js +4 -4
- package/tools/idea.js +9 -2
- package/tools/inbox.js +334 -28
- package/tools/init.js +727 -36
- package/tools/invite.js +15 -4
- package/tools/l2-bridge.js +272 -0
- package/tools/l2-status.js +217 -0
- package/tools/l2.js +206 -0
- package/tools/migrate.js +156 -0
- package/tools/mint.js +377 -0
- package/tools/multiplayer-game.js +1 -1
- package/tools/notifications.js +415 -0
- package/tools/observe.js +200 -0
- package/tools/onboarding.js +147 -0
- package/tools/open.js +143 -12
- package/tools/party-game.js +2 -2
- package/tools/plan.js +225 -0
- package/tools/presence-agent.js +7 -0
- package/tools/proof-of-work.js +100 -104
- package/tools/pulse.js +218 -0
- package/tools/reply.js +166 -0
- package/tools/report.js +2 -2
- package/tools/reputation.js +175 -0
- package/tools/request.js +17 -3
- package/tools/schedule.js +367 -0
- package/tools/search-messages.js +123 -0
- package/tools/session.js +420 -0
- package/tools/session_price.js +128 -0
- package/tools/settings.js +126 -3
- package/tools/ship.js +31 -8
- package/tools/shipback.js +326 -0
- package/tools/smart-check.js +201 -0
- package/tools/social-processor.js +445 -0
- package/tools/solo-game.js +1 -1
- package/tools/start.js +335 -93
- package/tools/status.js +53 -6
- package/tools/stuck.js +297 -0
- package/tools/subscribe.js +148 -0
- package/tools/subscriptions.js +134 -0
- package/tools/suggest-tags.js +6 -8
- package/tools/tag-suggestions.js +257 -0
- package/tools/tip.js +193 -0
- package/tools/token.js +103 -0
- package/tools/update.js +1 -1
- package/tools/wallet.js +239 -186
- package/tools/watch.js +157 -0
- package/tools/webhook-test.js +388 -0
- package/tools/who.js +54 -3
- package/tools/withdraw.js +145 -0
- package/tools/work-summary.js +96 -0
- package/tools/workshop.js +327 -0
- package/tools/x-mentions.js +1 -1
- package/version.json +14 -3
- package/tools/artifacts-buy.js +0 -111
- package/tools/connect.js +0 -284
- package/tools/gigs-apply.js +0 -99
- package/tools/gigs-browse.js +0 -114
- package/tools/gigs-complete.js +0 -128
- package/tools/gigs-post.js +0 -140
- package/tools/live-off.js +0 -109
- package/tools/live-watch.js +0 -176
- package/tools/live.js +0 -128
- package/tools/sessions-browse.js +0 -105
- package/tools/whats-happening.js +0 -125
- /package/tools/{away.js ā _deprecated/away.js} +0 -0
- /package/tools/{back.js ā _deprecated/back.js} +0 -0
- /package/tools/{mute.js ā _deprecated/mute.js} +0 -0
- /package/tools/{skills-exchange.js ā _deprecated/skills-exchange.js} +0 -0
- /package/tools/{tictactoe.js ā _deprecated/tictactoe.js} +0 -0
- /package/tools/{wordassociation.js ā _deprecated/wordassociation.js} +0 -0
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* vibe_gig_browse - Browse and filter the gig marketplace
|
|
3
|
+
*
|
|
4
|
+
* Search for gigs by category, skills, budget range, etc.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
const config = require('../config');
|
|
8
|
+
const { requireInit, displayHandle, header, divider, emptyState, formatTimeAgo } = require('./_shared');
|
|
9
|
+
|
|
10
|
+
const BASE_URL = process.env.VIBE_API_URL || 'https://www.slashvibe.dev';
|
|
11
|
+
|
|
12
|
+
const definition = {
|
|
13
|
+
name: 'vibe_gig_browse',
|
|
14
|
+
description: 'Browse the gig marketplace. Filter by category, skills, budget, or search by keyword.',
|
|
15
|
+
inputSchema: {
|
|
16
|
+
type: 'object',
|
|
17
|
+
properties: {
|
|
18
|
+
category: {
|
|
19
|
+
type: 'string',
|
|
20
|
+
enum: ['build', 'fix', 'design', 'review', 'teach', 'consult', 'other'],
|
|
21
|
+
description: 'Filter by gig category'
|
|
22
|
+
},
|
|
23
|
+
skill: {
|
|
24
|
+
type: 'string',
|
|
25
|
+
description: 'Filter by required skill (e.g., "react", "python", "api")'
|
|
26
|
+
},
|
|
27
|
+
min_budget: {
|
|
28
|
+
type: 'number',
|
|
29
|
+
description: 'Minimum budget in dollars'
|
|
30
|
+
},
|
|
31
|
+
max_budget: {
|
|
32
|
+
type: 'number',
|
|
33
|
+
description: 'Maximum budget in dollars'
|
|
34
|
+
},
|
|
35
|
+
search: {
|
|
36
|
+
type: 'string',
|
|
37
|
+
description: 'Search in title and description'
|
|
38
|
+
},
|
|
39
|
+
limit: {
|
|
40
|
+
type: 'number',
|
|
41
|
+
description: 'Number of results (default: 10, max: 50)'
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
async function handler(args) {
|
|
48
|
+
const initCheck = requireInit();
|
|
49
|
+
if (initCheck) return initCheck;
|
|
50
|
+
|
|
51
|
+
const {
|
|
52
|
+
category,
|
|
53
|
+
skill,
|
|
54
|
+
min_budget,
|
|
55
|
+
max_budget,
|
|
56
|
+
search,
|
|
57
|
+
limit = 10
|
|
58
|
+
} = args;
|
|
59
|
+
|
|
60
|
+
try {
|
|
61
|
+
// Build query string
|
|
62
|
+
const params = new URLSearchParams();
|
|
63
|
+
params.set('status', 'open');
|
|
64
|
+
params.set('limit', Math.min(limit, 50).toString());
|
|
65
|
+
|
|
66
|
+
// Note: API may not support all filters yet, but we include them
|
|
67
|
+
if (category) params.set('category', category);
|
|
68
|
+
if (skill) params.set('skill', skill);
|
|
69
|
+
if (min_budget) params.set('min_budget', min_budget.toString());
|
|
70
|
+
if (max_budget) params.set('max_budget', max_budget.toString());
|
|
71
|
+
if (search) params.set('search', search);
|
|
72
|
+
|
|
73
|
+
const response = await fetch(`${BASE_URL}/api/gigs?${params.toString()}`);
|
|
74
|
+
const data = await response.json();
|
|
75
|
+
|
|
76
|
+
// Handle coming soon state
|
|
77
|
+
if (data.coming_soon) {
|
|
78
|
+
return {
|
|
79
|
+
display: header('š Gigs Marketplace', 2) + '\n\n' +
|
|
80
|
+
'āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā\n' +
|
|
81
|
+
'ā LAUNCHING WEDNESDAY JAN 22 ā\n' +
|
|
82
|
+
'āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā\n\n' +
|
|
83
|
+
'The gigs marketplace is almost ready!\n\n' +
|
|
84
|
+
'⢠Post gigs to hire builders\n' +
|
|
85
|
+
'⢠Apply to gigs and get paid\n' +
|
|
86
|
+
'⢠Build your proof-of-work reputation\n\n' +
|
|
87
|
+
'Stay tuned for the launch!'
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
if (!data.success) {
|
|
92
|
+
return { display: `ā ${data.error || 'Failed to browse gigs'}` };
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
const gigs = data.gigs || [];
|
|
96
|
+
|
|
97
|
+
// Filter client-side if API doesn't support all filters
|
|
98
|
+
let filteredGigs = gigs;
|
|
99
|
+
|
|
100
|
+
// Client-side category filter
|
|
101
|
+
if (category) {
|
|
102
|
+
filteredGigs = filteredGigs.filter(g => g.category === category);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
// Client-side skill filter (API uses skills_needed)
|
|
106
|
+
if (skill) {
|
|
107
|
+
const lowerSkill = skill.toLowerCase();
|
|
108
|
+
filteredGigs = filteredGigs.filter(g => {
|
|
109
|
+
const skills = g.skills_needed || [];
|
|
110
|
+
return skills.some(s => s.toLowerCase().includes(lowerSkill));
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
// Client-side budget filter (API uses budget object with min/max in dollars)
|
|
115
|
+
if (min_budget) {
|
|
116
|
+
filteredGigs = filteredGigs.filter(g => {
|
|
117
|
+
const budgetMin = g.budget?.min || 0;
|
|
118
|
+
return budgetMin >= min_budget;
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
if (max_budget) {
|
|
122
|
+
filteredGigs = filteredGigs.filter(g => {
|
|
123
|
+
const budgetMax = g.budget?.max || Infinity;
|
|
124
|
+
return budgetMax <= max_budget;
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
// Client-side search
|
|
129
|
+
if (search) {
|
|
130
|
+
const lowerSearch = search.toLowerCase();
|
|
131
|
+
filteredGigs = filteredGigs.filter(g =>
|
|
132
|
+
(g.title || '').toLowerCase().includes(lowerSearch) ||
|
|
133
|
+
(g.description || '').toLowerCase().includes(lowerSearch)
|
|
134
|
+
);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
if (filteredGigs.length === 0) {
|
|
138
|
+
let hint = 'Try broadening your search criteria.';
|
|
139
|
+
if (category || skill) {
|
|
140
|
+
hint = `No gigs found matching your filters. Try removing some filters.`;
|
|
141
|
+
}
|
|
142
|
+
return { display: emptyState('No open gigs found', hint) };
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
// Build display
|
|
146
|
+
let display = header('šÆ Open Gigs', 2) + '\n\n';
|
|
147
|
+
|
|
148
|
+
// Show active filters
|
|
149
|
+
const filters = [];
|
|
150
|
+
if (category) filters.push(`category: ${category}`);
|
|
151
|
+
if (skill) filters.push(`skill: ${skill}`);
|
|
152
|
+
if (min_budget || max_budget) {
|
|
153
|
+
const budgetStr = min_budget && max_budget
|
|
154
|
+
? `$${min_budget}-$${max_budget}`
|
|
155
|
+
: min_budget ? `ā„$${min_budget}` : `ā¤$${max_budget}`;
|
|
156
|
+
filters.push(`budget: ${budgetStr}`);
|
|
157
|
+
}
|
|
158
|
+
if (search) filters.push(`search: "${search}"`);
|
|
159
|
+
|
|
160
|
+
if (filters.length > 0) {
|
|
161
|
+
display += `_Filters: ${filters.join(', ')}_\n\n`;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
display += `Found **${filteredGigs.length}** gig${filteredGigs.length !== 1 ? 's' : ''}\n\n`;
|
|
165
|
+
|
|
166
|
+
// List gigs (API returns: poster, budget{min,max}, skills_needed, applicants as count)
|
|
167
|
+
filteredGigs.forEach((gig, i) => {
|
|
168
|
+
display += `**${i + 1}. ${gig.title}**\n`;
|
|
169
|
+
display += ` ${displayHandle(gig.poster)} ⢠`;
|
|
170
|
+
|
|
171
|
+
// Budget is an object with min/max in dollars
|
|
172
|
+
const budgetDisplay = gig.budget
|
|
173
|
+
? `$${gig.budget.min || 0}-$${gig.budget.max || '?'}`
|
|
174
|
+
: 'TBD';
|
|
175
|
+
display += `${budgetDisplay} ⢠`;
|
|
176
|
+
display += `${gig.category || 'other'}\n`;
|
|
177
|
+
|
|
178
|
+
if (gig.skills_needed && gig.skills_needed.length > 0) {
|
|
179
|
+
display += ` Skills: ${gig.skills_needed.slice(0, 5).join(', ')}\n`;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
if (gig.description) {
|
|
183
|
+
const shortDesc = gig.description.slice(0, 100);
|
|
184
|
+
display += ` _${shortDesc}${gig.description.length > 100 ? '...' : ''}_\n`;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
// API returns applicants as a count (number), not array
|
|
188
|
+
const applicantCount = typeof gig.applicants === 'number' ? gig.applicants : 0;
|
|
189
|
+
display += ` ${applicantCount} applicant${applicantCount !== 1 ? 's' : ''} ⢠`;
|
|
190
|
+
display += `posted ${formatTimeAgo(gig.created_at)}\n`;
|
|
191
|
+
|
|
192
|
+
display += ` **ID:** ${gig.id}\n\n`;
|
|
193
|
+
});
|
|
194
|
+
|
|
195
|
+
display += divider();
|
|
196
|
+
display += 'š” Apply to a gig with: `apply to gig [gig_id]`';
|
|
197
|
+
|
|
198
|
+
return { display };
|
|
199
|
+
|
|
200
|
+
} catch (e) {
|
|
201
|
+
console.error('[gig-browse] Error:', e);
|
|
202
|
+
return { display: `ā Failed to browse gigs: ${e.message}` };
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
module.exports = { definition, handler };
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* vibe_gig_complete - Mark a gig as completed
|
|
3
|
+
*
|
|
4
|
+
* When a gig is completed:
|
|
5
|
+
* - Links deliverables (session, artifacts, notes)
|
|
6
|
+
* - Boosts hired person's reputation
|
|
7
|
+
* - Auto-posts celebration to the board
|
|
8
|
+
* - Records rating
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
const config = require('../config');
|
|
12
|
+
const { requireInit, normalizeHandle, displayHandle, success, error, header, divider } = require('./_shared');
|
|
13
|
+
const { actions, formatActions } = require('./_actions');
|
|
14
|
+
|
|
15
|
+
const BASE_URL = process.env.VIBE_API_URL || 'https://www.slashvibe.dev';
|
|
16
|
+
|
|
17
|
+
const definition = {
|
|
18
|
+
name: 'vibe_gig_complete',
|
|
19
|
+
description: 'Mark a gig as completed with deliverables and rating. Boosts reputation and posts to board.',
|
|
20
|
+
inputSchema: {
|
|
21
|
+
type: 'object',
|
|
22
|
+
properties: {
|
|
23
|
+
gig_id: {
|
|
24
|
+
type: 'string',
|
|
25
|
+
description: 'The gig ID to complete (e.g., gig_abc123)'
|
|
26
|
+
},
|
|
27
|
+
session_id: {
|
|
28
|
+
type: 'string',
|
|
29
|
+
description: 'Optional: Link a session as primary deliverable'
|
|
30
|
+
},
|
|
31
|
+
artifact_ids: {
|
|
32
|
+
type: 'array',
|
|
33
|
+
items: { type: 'string' },
|
|
34
|
+
description: 'Optional: Array of artifact IDs created during the gig'
|
|
35
|
+
},
|
|
36
|
+
notes: {
|
|
37
|
+
type: 'string',
|
|
38
|
+
description: 'Optional: Completion notes or summary'
|
|
39
|
+
},
|
|
40
|
+
rating: {
|
|
41
|
+
type: 'number',
|
|
42
|
+
minimum: 1,
|
|
43
|
+
maximum: 5,
|
|
44
|
+
description: 'Rating for the hired person (1-5 stars)'
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
required: ['gig_id', 'rating']
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
async function handler(args) {
|
|
52
|
+
const initCheck = requireInit();
|
|
53
|
+
if (initCheck) return initCheck;
|
|
54
|
+
|
|
55
|
+
// Check if gigs are enabled by making a quick check
|
|
56
|
+
try {
|
|
57
|
+
const checkResponse = await fetch(`${BASE_URL}/api/gigs`);
|
|
58
|
+
const checkData = await checkResponse.json();
|
|
59
|
+
if (checkData.coming_soon) {
|
|
60
|
+
return {
|
|
61
|
+
display: header('š Gigs Marketplace', 2) + '\n\n' +
|
|
62
|
+
'Launching Wednesday Jan 22!\n\n' +
|
|
63
|
+
'Gig completion will be available after launch.'
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
} catch (e) {
|
|
67
|
+
// Continue with request if check fails
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
const {
|
|
71
|
+
gig_id,
|
|
72
|
+
session_id = null,
|
|
73
|
+
artifact_ids = [],
|
|
74
|
+
notes = null,
|
|
75
|
+
rating
|
|
76
|
+
} = args;
|
|
77
|
+
|
|
78
|
+
const handle = config.getHandle();
|
|
79
|
+
|
|
80
|
+
// Validate rating
|
|
81
|
+
if (rating < 1 || rating > 5) {
|
|
82
|
+
return { display: error('Rating must be between 1 and 5 stars') };
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
try {
|
|
86
|
+
const response = await fetch(`${BASE_URL}/api/gigs/complete`, {
|
|
87
|
+
method: 'POST',
|
|
88
|
+
headers: { 'Content-Type': 'application/json' },
|
|
89
|
+
body: JSON.stringify({
|
|
90
|
+
gig_id,
|
|
91
|
+
completed_by: handle,
|
|
92
|
+
deliverables: {
|
|
93
|
+
session_id,
|
|
94
|
+
artifact_ids,
|
|
95
|
+
notes
|
|
96
|
+
},
|
|
97
|
+
rating
|
|
98
|
+
})
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
const data = await response.json();
|
|
102
|
+
|
|
103
|
+
if (!data.success) {
|
|
104
|
+
return { display: error(data.error || 'Failed to complete gig') };
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
// Format success display
|
|
108
|
+
let display = success('Gig Completed!') + '\n\n';
|
|
109
|
+
|
|
110
|
+
display += header('Gig Details', 3) + '\n';
|
|
111
|
+
display += `**Title:** ${data.gig?.title || gig_id}\n`;
|
|
112
|
+
display += `**Hired:** ${displayHandle(data.gig?.hired_handle)}\n`;
|
|
113
|
+
display += `**Rating:** ${'ā'.repeat(rating)}\n`;
|
|
114
|
+
|
|
115
|
+
if (session_id) {
|
|
116
|
+
display += `**Session:** ${session_id}\n`;
|
|
117
|
+
}
|
|
118
|
+
if (artifact_ids.length > 0) {
|
|
119
|
+
display += `**Artifacts:** ${artifact_ids.length} linked\n`;
|
|
120
|
+
}
|
|
121
|
+
if (notes) {
|
|
122
|
+
display += `**Notes:** ${notes}\n`;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
display += divider();
|
|
126
|
+
display += `${displayHandle(data.gig?.hired_handle)} earned **+50 vibe points** for completing this gig!\n`;
|
|
127
|
+
|
|
128
|
+
if (data.posted_to_board) {
|
|
129
|
+
display += `\nš Celebration posted to the board`;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
// Build result with bonus tip action
|
|
133
|
+
const result = { display };
|
|
134
|
+
result.actions = formatActions(actions.afterGigComplete(data.gig));
|
|
135
|
+
|
|
136
|
+
return result;
|
|
137
|
+
|
|
138
|
+
} catch (e) {
|
|
139
|
+
console.error('[gig-complete] Error:', e);
|
|
140
|
+
return { display: error(`Failed to complete gig: ${e.message}`) };
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
module.exports = { definition, handler };
|
package/tools/handoff.js
CHANGED
|
@@ -15,7 +15,13 @@ const HANDOFF_VERSION = '1.0';
|
|
|
15
15
|
|
|
16
16
|
const definition = {
|
|
17
17
|
name: 'vibe_handoff',
|
|
18
|
-
description:
|
|
18
|
+
description: `Hand off a task to another agent with full context. Use when:
|
|
19
|
+
- You're stuck and need another agent to continue
|
|
20
|
+
- Shifting to a different domain/expertise
|
|
21
|
+
- Ending your session but work needs to continue
|
|
22
|
+
- Delegating a subtask
|
|
23
|
+
|
|
24
|
+
The receiving agent gets structured context to resume work immediately.`,
|
|
19
25
|
inputSchema: {
|
|
20
26
|
type: 'object',
|
|
21
27
|
properties: {
|
package/tools/help.js
CHANGED
|
@@ -192,12 +192,12 @@ Presence updates every 5 minutes. Run \`vibe who\` for fresh data.
|
|
|
192
192
|
|
|
193
193
|
### Need help?
|
|
194
194
|
- DM \`@echo\` with your question
|
|
195
|
-
- DM \`@
|
|
195
|
+
- DM \`@vibe\` for support
|
|
196
196
|
- DM \`@discovery-agent\` for connection help
|
|
197
197
|
- Post on the board with category "question"
|
|
198
198
|
|
|
199
199
|
### Report Issues
|
|
200
|
-
- GitHub: https://github.com/
|
|
200
|
+
- GitHub: https://github.com/VibeCodingInc/vibe-mcp/issues
|
|
201
201
|
- Or: \`vibe echo "your feedback"\``;
|
|
202
202
|
|
|
203
203
|
async function handler(args) {
|
|
@@ -236,7 +236,7 @@ Available topics:
|
|
|
236
236
|
}
|
|
237
237
|
|
|
238
238
|
// Default: overview
|
|
239
|
-
|
|
239
|
+
const display = `## /vibe Help
|
|
240
240
|
|
|
241
241
|
${isInitialized ? `You're **@${handle}**` : 'ā ļø Not initialized yet ā run `vibe init @yourhandle`'}
|
|
242
242
|
|
|
@@ -260,7 +260,7 @@ ${isInitialized ? `You're **@${handle}**` : 'ā ļø Not initialized yet ā run
|
|
|
260
260
|
|
|
261
261
|
### Links
|
|
262
262
|
- Docs: https://slashvibe.dev/llms.txt
|
|
263
|
-
- Issues: https://github.com/
|
|
263
|
+
- Issues: https://github.com/VibeCodingInc/vibe-mcp/issues
|
|
264
264
|
- Feedback: \`vibe echo "message"\``;
|
|
265
265
|
|
|
266
266
|
return { display };
|
package/tools/idea.js
CHANGED
|
@@ -84,9 +84,16 @@ async function handler(args) {
|
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
try {
|
|
87
|
+
// Include auth token for API authorization
|
|
88
|
+
const authToken = config.getAuthToken();
|
|
89
|
+
const headers = { 'Content-Type': 'application/json' };
|
|
90
|
+
if (authToken) {
|
|
91
|
+
headers['Authorization'] = `Bearer ${authToken}`;
|
|
92
|
+
}
|
|
93
|
+
|
|
87
94
|
const response = await fetch(`${apiUrl}/api/board`, {
|
|
88
95
|
method: 'POST',
|
|
89
|
-
headers
|
|
96
|
+
headers,
|
|
90
97
|
body: JSON.stringify(entry)
|
|
91
98
|
});
|
|
92
99
|
|
|
@@ -123,7 +130,7 @@ async function handler(args) {
|
|
|
123
130
|
// Browse ideas
|
|
124
131
|
try {
|
|
125
132
|
const limit = Math.min(args.limit || 10, 30);
|
|
126
|
-
|
|
133
|
+
const url = `${apiUrl}/api/board?limit=${limit}&category=idea`;
|
|
127
134
|
|
|
128
135
|
// Also fetch riffs
|
|
129
136
|
const riffUrl = `${apiUrl}/api/board?limit=${limit}&category=riff`;
|