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.
Files changed (205) hide show
  1. package/README.md +1 -0
  2. package/analytics.js +107 -0
  3. package/auth-store.js +148 -0
  4. package/auto-update.js +130 -0
  5. package/bridges/bridge-monitor.js +388 -0
  6. package/bridges/discord-bot.js +431 -0
  7. package/bridges/farcaster.js +299 -0
  8. package/bridges/telegram.js +261 -0
  9. package/bridges/webhook-health.js +420 -0
  10. package/bridges/webhook-server.js +437 -0
  11. package/bridges/whatsapp.js +441 -0
  12. package/bridges/x-webhook.js +423 -0
  13. package/config.js +154 -5
  14. package/crypto.js +3 -8
  15. package/games/arcade.js +406 -0
  16. package/games/chess.js +451 -0
  17. package/games/colorguess.js +343 -0
  18. package/games/crossword-words.js +171 -0
  19. package/games/crossword.js +461 -0
  20. package/games/drawing.js +347 -0
  21. package/games/gameroulette.js +300 -0
  22. package/games/gamerouter.js +336 -0
  23. package/games/gamestatus.js +337 -0
  24. package/games/guessnumber.js +209 -0
  25. package/games/hangman.js +279 -0
  26. package/games/memory.js +338 -0
  27. package/games/multiplayer-tictactoe.js +389 -0
  28. package/games/pixelart.js +399 -0
  29. package/games/quickduel.js +354 -0
  30. package/games/riddle.js +371 -0
  31. package/games/rockpaperscissors.js +291 -0
  32. package/games/snake.js +406 -0
  33. package/games/storybuilder.js +343 -0
  34. package/games/tictactoe.js +345 -0
  35. package/games/twentyquestions.js +286 -0
  36. package/games/twotruths.js +207 -0
  37. package/games/werewolf.js +508 -0
  38. package/games/wordassociation.js +247 -0
  39. package/games/wordchain.js +135 -0
  40. package/index.js +105 -216
  41. package/intelligence/index.js +45 -0
  42. package/intelligence/infer.js +316 -0
  43. package/intelligence/interests.js +369 -0
  44. package/intelligence/patterns.js +651 -0
  45. package/intelligence/proactive.js +358 -0
  46. package/intelligence/serendipity.js +306 -0
  47. package/memory.js +166 -0
  48. package/notification-emitter.js +77 -0
  49. package/notify.js +102 -1
  50. package/package.json +21 -7
  51. package/prompts.js +1 -1
  52. package/protocol/index.js +161 -1
  53. package/setup.js +402 -0
  54. package/store/api.js +528 -82
  55. package/store/profiles.js +160 -12
  56. package/tools/_actions.js +463 -16
  57. package/tools/_deprecated/auto-suggest-connections.js +304 -0
  58. package/tools/_deprecated/bootstrap-skills.js +231 -0
  59. package/tools/_deprecated/bridge-dashboard.js +342 -0
  60. package/tools/_deprecated/bridge-health.js +400 -0
  61. package/tools/_deprecated/bridge-live.js +384 -0
  62. package/tools/_deprecated/bridges.js +383 -0
  63. package/tools/_deprecated/colorguess.js +281 -0
  64. package/tools/_deprecated/discover-insights.js +379 -0
  65. package/tools/_deprecated/discover-momentum.js +256 -0
  66. package/tools/_deprecated/discovery-analytics.js +345 -0
  67. package/tools/_deprecated/discovery-auto-suggest.js +275 -0
  68. package/tools/_deprecated/discovery-bootstrap.js +267 -0
  69. package/tools/_deprecated/discovery-daily.js +375 -0
  70. package/tools/_deprecated/discovery-dashboard.js +385 -0
  71. package/tools/_deprecated/discovery-digest.js +314 -0
  72. package/tools/_deprecated/discovery-hub.js +357 -0
  73. package/tools/_deprecated/discovery-insights.js +384 -0
  74. package/tools/_deprecated/discovery-momentum.js +281 -0
  75. package/tools/_deprecated/discovery-monitor.js +319 -0
  76. package/tools/_deprecated/discovery-proactive.js +300 -0
  77. package/tools/_deprecated/draw.js +317 -0
  78. package/tools/_deprecated/farcaster.js +307 -0
  79. package/tools/_deprecated/forget.js +119 -0
  80. package/tools/_deprecated/games-catalog.js +376 -0
  81. package/tools/_deprecated/games.js +313 -0
  82. package/tools/_deprecated/guessnumber.js +194 -0
  83. package/tools/_deprecated/hangman.js +129 -0
  84. package/tools/_deprecated/multiplayer-tictactoe.js +303 -0
  85. package/tools/_deprecated/recall.js +147 -0
  86. package/tools/_deprecated/remember.js +86 -0
  87. package/tools/_deprecated/riddle.js +240 -0
  88. package/tools/_deprecated/run-bootstrap.js +69 -0
  89. package/tools/_deprecated/skills-analytics.js +349 -0
  90. package/tools/_deprecated/skills-bootstrap.js +301 -0
  91. package/tools/_deprecated/skills-dashboard.js +268 -0
  92. package/tools/_deprecated/skills.js +380 -0
  93. package/tools/_deprecated/smart-intro.js +353 -0
  94. package/tools/_deprecated/storybuilder.js +331 -0
  95. package/tools/_deprecated/telegram-bot.js +183 -0
  96. package/tools/_deprecated/telegram-setup.js +214 -0
  97. package/tools/_deprecated/twentyquestions.js +143 -0
  98. package/tools/_discovery-enhanced.js +290 -0
  99. package/tools/_discovery.js +439 -0
  100. package/tools/_proactive-discovery.js +301 -0
  101. package/tools/_shared/index.js +64 -0
  102. package/tools/_shared.js +234 -0
  103. package/tools/_work-context.js +338 -0
  104. package/tools/_work-context.manual-test.js +199 -0
  105. package/tools/_work-context.test.js +260 -0
  106. package/tools/activity.js +220 -0
  107. package/tools/admin-inbox.js +218 -0
  108. package/tools/agent-treasury.js +288 -0
  109. package/tools/analytics.js +191 -0
  110. package/tools/approve.js +197 -0
  111. package/tools/arcade.js +173 -0
  112. package/tools/artifact-create.js +17 -11
  113. package/tools/artifact-view.js +31 -1
  114. package/tools/artifacts-price.js +47 -43
  115. package/tools/ask-expert.js +160 -0
  116. package/tools/available.js +120 -0
  117. package/tools/become-expert.js +150 -0
  118. package/tools/broadcast.js +286 -0
  119. package/tools/chat.js +202 -0
  120. package/tools/collaborative-drawing.js +286 -0
  121. package/tools/connection-status.js +178 -0
  122. package/tools/crossword.js +17 -1
  123. package/tools/discover.js +350 -34
  124. package/tools/dm.js +115 -73
  125. package/tools/drawing.js +1 -1
  126. package/tools/earnings.js +126 -0
  127. package/tools/echo.js +16 -0
  128. package/tools/feed.js +51 -7
  129. package/tools/follow.js +224 -0
  130. package/tools/friends.js +207 -0
  131. package/tools/game.js +2 -2
  132. package/tools/genesis.js +233 -0
  133. package/tools/gig-browse.js +206 -0
  134. package/tools/gig-complete.js +144 -0
  135. package/tools/handoff.js +7 -1
  136. package/tools/help.js +4 -4
  137. package/tools/idea.js +9 -2
  138. package/tools/inbox.js +334 -28
  139. package/tools/init.js +727 -36
  140. package/tools/invite.js +15 -4
  141. package/tools/l2-bridge.js +272 -0
  142. package/tools/l2-status.js +217 -0
  143. package/tools/l2.js +206 -0
  144. package/tools/migrate.js +156 -0
  145. package/tools/mint.js +377 -0
  146. package/tools/multiplayer-game.js +1 -1
  147. package/tools/notifications.js +415 -0
  148. package/tools/observe.js +200 -0
  149. package/tools/onboarding.js +147 -0
  150. package/tools/open.js +143 -12
  151. package/tools/party-game.js +2 -2
  152. package/tools/plan.js +225 -0
  153. package/tools/presence-agent.js +7 -0
  154. package/tools/proof-of-work.js +100 -104
  155. package/tools/pulse.js +218 -0
  156. package/tools/reply.js +166 -0
  157. package/tools/report.js +2 -2
  158. package/tools/reputation.js +175 -0
  159. package/tools/request.js +17 -3
  160. package/tools/schedule.js +367 -0
  161. package/tools/search-messages.js +123 -0
  162. package/tools/session.js +420 -0
  163. package/tools/session_price.js +128 -0
  164. package/tools/settings.js +126 -3
  165. package/tools/ship.js +31 -8
  166. package/tools/shipback.js +326 -0
  167. package/tools/smart-check.js +201 -0
  168. package/tools/social-processor.js +445 -0
  169. package/tools/solo-game.js +1 -1
  170. package/tools/start.js +335 -93
  171. package/tools/status.js +53 -6
  172. package/tools/stuck.js +297 -0
  173. package/tools/subscribe.js +148 -0
  174. package/tools/subscriptions.js +134 -0
  175. package/tools/suggest-tags.js +6 -8
  176. package/tools/tag-suggestions.js +257 -0
  177. package/tools/tip.js +193 -0
  178. package/tools/token.js +103 -0
  179. package/tools/update.js +1 -1
  180. package/tools/wallet.js +239 -186
  181. package/tools/watch.js +157 -0
  182. package/tools/webhook-test.js +388 -0
  183. package/tools/who.js +54 -3
  184. package/tools/withdraw.js +145 -0
  185. package/tools/work-summary.js +96 -0
  186. package/tools/workshop.js +327 -0
  187. package/tools/x-mentions.js +1 -1
  188. package/version.json +14 -3
  189. package/tools/artifacts-buy.js +0 -111
  190. package/tools/connect.js +0 -284
  191. package/tools/gigs-apply.js +0 -99
  192. package/tools/gigs-browse.js +0 -114
  193. package/tools/gigs-complete.js +0 -128
  194. package/tools/gigs-post.js +0 -140
  195. package/tools/live-off.js +0 -109
  196. package/tools/live-watch.js +0 -176
  197. package/tools/live.js +0 -128
  198. package/tools/sessions-browse.js +0 -105
  199. package/tools/whats-happening.js +0 -125
  200. /package/tools/{away.js → _deprecated/away.js} +0 -0
  201. /package/tools/{back.js → _deprecated/back.js} +0 -0
  202. /package/tools/{mute.js → _deprecated/mute.js} +0 -0
  203. /package/tools/{skills-exchange.js → _deprecated/skills-exchange.js} +0 -0
  204. /package/tools/{tictactoe.js → _deprecated/tictactoe.js} +0 -0
  205. /package/tools/{wordassociation.js → _deprecated/wordassociation.js} +0 -0
@@ -0,0 +1,96 @@
1
+ /**
2
+ * vibe_work_summary — Standalone tool for explicit context gathering
3
+ *
4
+ * Use this when you need to:
5
+ * - Draft a message about what you're working on
6
+ * - Share your progress with someone
7
+ * - Get context for composing a "ship" post
8
+ *
9
+ * This tool returns structured data about:
10
+ * - Git state (branch, recent commits, changed files)
11
+ * - Project info (name, type)
12
+ * - Pre-formatted suggestions ready for messages/presence
13
+ */
14
+
15
+ const { gatherWorkContext } = require('./_work-context');
16
+
17
+ const definition = {
18
+ name: 'vibe_work_summary',
19
+ description: 'Get a summary of what you\'re working on (git state, project info). Use before composing messages about your work.',
20
+ inputSchema: {
21
+ type: 'object',
22
+ properties: {
23
+ detail_level: {
24
+ type: 'string',
25
+ enum: ['brief', 'detailed'],
26
+ description: 'brief = one-liner, detailed = include commits/files'
27
+ }
28
+ }
29
+ }
30
+ };
31
+
32
+ async function handler(args) {
33
+ const { detail_level = 'brief' } = args;
34
+
35
+ // Gather all context
36
+ const context = gatherWorkContext();
37
+
38
+ // Build display based on detail level
39
+ let display = '## Work Context\n\n';
40
+
41
+ // Project info
42
+ display += `**Project:** ${context.project.name}`;
43
+ if (context.project.type !== 'unknown') {
44
+ display += ` (${context.project.type})`;
45
+ }
46
+ display += '\n';
47
+
48
+ // Git info
49
+ if (context.git) {
50
+ display += `**Branch:** ${context.git.branch}\n`;
51
+
52
+ if (detail_level === 'detailed') {
53
+ // Show recent commits
54
+ if (context.git.recentCommits.length > 0) {
55
+ display += '\n**Recent commits:**\n';
56
+ context.git.recentCommits.forEach(c => {
57
+ display += `- \`${c.hash}\` ${c.message}\n`;
58
+ });
59
+ }
60
+
61
+ // Show changed files
62
+ if (context.git.changedFiles.length > 0) {
63
+ display += '\n**Changed files:**\n';
64
+ context.git.changedFiles.forEach(f => {
65
+ display += `- ${f}\n`;
66
+ });
67
+ }
68
+
69
+ // Uncommitted changes indicator
70
+ if (context.git.hasUncommitted) {
71
+ display += '\n⚠️ _Uncommitted changes_\n';
72
+ }
73
+ }
74
+ } else {
75
+ display += '_Not in a git repository_\n';
76
+ }
77
+
78
+ // Suggestions
79
+ display += '\n---\n\n';
80
+ display += '**Ready to use:**\n';
81
+ display += `- Brief: "${context.suggestions.brief}"\n`;
82
+ if (detail_level === 'detailed' && context.suggestions.detailed !== context.suggestions.brief) {
83
+ display += `- Detailed: "${context.suggestions.detailed}"\n`;
84
+ }
85
+
86
+ display += '\n_Use these in messages, status updates, or ship posts._';
87
+
88
+ return {
89
+ display,
90
+ // Structured data for Claude to use programmatically
91
+ ...context,
92
+ usage_hint: 'Use suggestions.brief for messages, suggestions.detailed for updates.'
93
+ };
94
+ }
95
+
96
+ module.exports = { definition, handler };
@@ -0,0 +1,327 @@
1
+ /**
2
+ * vibe workshop — Access the /vibe game workshop and arcade
3
+ *
4
+ * Play solo games, join multiplayer sessions, browse the game collection
5
+ */
6
+
7
+ const config = require('../config');
8
+ const store = require('../store');
9
+ const { createGamePayload } = require('../protocol');
10
+ const { requireInit, normalizeHandle } = require('./_shared');
11
+
12
+ // Import game implementations
13
+ const arcade = require('../games/arcade');
14
+ const drawing = require('../games/drawing');
15
+ const hangman = require('../games/hangman');
16
+ const wordchain = require('../games/wordchain');
17
+ const twentyquestions = require('../games/twentyquestions');
18
+ const snake = require('../games/snake');
19
+ const memory = require('../games/memory');
20
+ const rockpaperscissors = require('../games/rockpaperscissors');
21
+
22
+ // Workshop shared game sessions (in-memory for now)
23
+ const gameSessions = new Map();
24
+
25
+ const definition = {
26
+ name: 'vibe_workshop',
27
+ description: 'Access the /vibe game workshop and arcade. Play games, join collaborative sessions, browse the collection',
28
+ inputSchema: {
29
+ type: 'object',
30
+ properties: {
31
+ game: {
32
+ type: 'string',
33
+ description: 'Game to play or "arcade" to browse all games',
34
+ enum: ['arcade', 'drawing', 'hangman', 'wordchain', 'twentyquestions', 'snake', 'memory', 'rockpaperscissors']
35
+ },
36
+ action: {
37
+ type: 'string',
38
+ description: 'Action to take (join, move, draw, guess, etc.)'
39
+ },
40
+ x: {
41
+ type: 'number',
42
+ description: 'X coordinate for drawing games'
43
+ },
44
+ y: {
45
+ type: 'number',
46
+ description: 'Y coordinate for drawing games'
47
+ },
48
+ char: {
49
+ type: 'string',
50
+ description: 'Character to draw (use character names like "dot", "star", "heart")'
51
+ },
52
+ guess: {
53
+ type: 'string',
54
+ description: 'Letter or word to guess'
55
+ },
56
+ command: {
57
+ type: 'string',
58
+ description: 'Game-specific command or arcade navigation'
59
+ }
60
+ },
61
+ required: ['game']
62
+ }
63
+ };
64
+
65
+ /**
66
+ * Get or create a shared game session
67
+ */
68
+ function getGameSession(gameType, sessionId = 'default') {
69
+ const key = `${gameType}:${sessionId}`;
70
+
71
+ if (!gameSessions.has(key)) {
72
+ let initialState;
73
+
74
+ switch (gameType) {
75
+ case 'drawing':
76
+ initialState = drawing.createInitialDrawingState();
77
+ break;
78
+ case 'hangman':
79
+ initialState = require('../games/hangman').createInitialHangmanState();
80
+ break;
81
+ case 'wordchain':
82
+ initialState = require('../games/wordchain').createInitialWordChainState();
83
+ break;
84
+ case 'twentyquestions':
85
+ initialState = require('../games/twentyquestions').createInitialTwentyQuestionsState();
86
+ break;
87
+ case 'snake':
88
+ initialState = require('../games/snake').createInitialSnakeState();
89
+ break;
90
+ case 'memory':
91
+ initialState = require('../games/memory').createInitialMemoryState();
92
+ break;
93
+ case 'rockpaperscissors':
94
+ initialState = require('../games/rockpaperscissors').createInitialRPSState();
95
+ break;
96
+ case 'arcade':
97
+ initialState = arcade.createInitialArcadeState();
98
+ break;
99
+ default:
100
+ throw new Error(`Unknown game type: ${gameType}`);
101
+ }
102
+
103
+ gameSessions.set(key, initialState);
104
+ }
105
+
106
+ return gameSessions.get(key);
107
+ }
108
+
109
+ /**
110
+ * Update a game session
111
+ */
112
+ function updateGameSession(gameType, newState, sessionId = 'default') {
113
+ const key = `${gameType}:${sessionId}`;
114
+ gameSessions.set(key, newState);
115
+ }
116
+
117
+ /**
118
+ * Post activity to board when someone ships something cool
119
+ */
120
+ async function postToBoard(content) {
121
+ const API_URL = process.env.VIBE_API_URL || 'https://www.slashvibe.dev';
122
+
123
+ try {
124
+ await fetch(`${API_URL}/api/board`, {
125
+ method: 'POST',
126
+ headers: { 'Content-Type': 'application/json' },
127
+ body: JSON.stringify({
128
+ author: 'games-agent',
129
+ content,
130
+ category: 'general'
131
+ })
132
+ });
133
+ } catch (e) {
134
+ console.error('[workshop] Failed to post to board:', e.message);
135
+ }
136
+ }
137
+
138
+ async function handler(args) {
139
+ const initCheck = requireInit();
140
+ if (initCheck) return initCheck;
141
+
142
+ const { game, action, x, y, char, guess, command } = args;
143
+ const myHandle = config.getHandle();
144
+
145
+ try {
146
+ // Handle arcade browsing
147
+ if (game === 'arcade') {
148
+ const gameState = getGameSession('arcade');
149
+
150
+ if (command) {
151
+ const result = arcade.handleArcadeCommand(gameState, command);
152
+ if (result.error) {
153
+ return { display: `❌ ${result.error}` };
154
+ }
155
+ updateGameSession('arcade', result.gameState);
156
+ return { display: arcade.formatArcadeDisplay(result.gameState) };
157
+ }
158
+
159
+ return { display: arcade.formatArcadeDisplay(gameState) };
160
+ }
161
+
162
+ // Handle collaborative drawing
163
+ if (game === 'drawing') {
164
+ const gameState = getGameSession('drawing');
165
+
166
+ // Join the drawing session
167
+ if (!gameState.players.includes(myHandle)) {
168
+ const joinResult = drawing.addPlayer(gameState, myHandle);
169
+ if (joinResult.error) {
170
+ return { display: `❌ ${joinResult.error}` };
171
+ }
172
+ updateGameSession('drawing', joinResult.gameState);
173
+
174
+ // Announce new artist
175
+ postToBoard(`🎨 @${myHandle} joined the collaborative drawing session!`);
176
+ }
177
+
178
+ const currentGameState = getGameSession('drawing');
179
+
180
+ // Handle drawing actions
181
+ if (action === 'draw' && x !== undefined && y !== undefined && char) {
182
+ // Convert character name to actual character
183
+ const drawChar = drawing.DRAWING_CHARS[char] || char;
184
+ const result = drawing.makeMove(currentGameState, x, y, drawChar, myHandle);
185
+
186
+ if (result.error) {
187
+ return { display: `❌ ${result.error}` };
188
+ }
189
+
190
+ updateGameSession('drawing', result.gameState);
191
+ return {
192
+ display: `✏️ Drew ${drawChar} at (${x},${y})\n\n${drawing.formatDrawingDisplay(result.gameState)}`
193
+ };
194
+ }
195
+
196
+ if (action === 'line' && command) {
197
+ // Parse line command: "x0,y0 to x1,y1 with char"
198
+ const match = command.match(/(\d+),(\d+)\s+to\s+(\d+),(\d+)\s+with\s+(\w+)/);
199
+ if (match) {
200
+ const [, x0, y0, x1, y1, charName] = match;
201
+ const drawChar = drawing.DRAWING_CHARS[charName] || charName;
202
+ const result = drawing.drawLine(currentGameState, parseInt(x0), parseInt(y0), parseInt(x1), parseInt(y1), drawChar, myHandle);
203
+
204
+ if (result.error) {
205
+ return { display: `❌ ${result.error}` };
206
+ }
207
+
208
+ updateGameSession('drawing', result.gameState);
209
+ return {
210
+ display: `✏️ Drew line from (${x0},${y0}) to (${x1},${y1})\n\n${drawing.formatDrawingDisplay(result.gameState)}`
211
+ };
212
+ }
213
+ }
214
+
215
+ if (action === 'clear' && command) {
216
+ // Parse clear command: "x0,y0 to x1,y1"
217
+ const match = command.match(/(\d+),(\d+)\s+to\s+(\d+),(\d+)/);
218
+ if (match) {
219
+ const [, x0, y0, x1, y1] = match;
220
+ const result = drawing.clearRegion(currentGameState, parseInt(x0), parseInt(y0), parseInt(x1), parseInt(y1), myHandle);
221
+
222
+ if (result.error) {
223
+ return { display: `❌ ${result.error}` };
224
+ }
225
+
226
+ updateGameSession('drawing', result.gameState);
227
+ return {
228
+ display: `🧹 Cleared region (${x0},${y0}) to (${x1},${y1})\n\n${drawing.formatDrawingDisplay(result.gameState)}`
229
+ };
230
+ }
231
+ }
232
+
233
+ if (action === 'theme' && command) {
234
+ const result = drawing.setTheme(currentGameState, command, myHandle);
235
+ if (result.error) {
236
+ return { display: `❌ ${result.error}` };
237
+ }
238
+
239
+ updateGameSession('drawing', result.gameState);
240
+ const tips = drawing.getDrawingTips(command);
241
+ return {
242
+ display: `🎯 Set theme: ${command}\n\n**Tips:** ${tips.join(', ')}\n\n${drawing.formatDrawingDisplay(result.gameState)}`
243
+ };
244
+ }
245
+
246
+ if (action === 'stats') {
247
+ const stats = drawing.getCanvasStats(currentGameState);
248
+ return {
249
+ display: `📊 **Canvas Statistics**\n\n` +
250
+ `• Total moves: ${stats.totalMoves}\n` +
251
+ `• Canvas filled: ${stats.fillPercentage}%\n` +
252
+ `• Characters used: ${stats.uniqueCharsUsed}\n` +
253
+ `• Most popular: ${stats.mostUsedChar?.[0] || 'none'} (${stats.mostUsedChar?.[1] || 0} times)\n\n` +
254
+ `${drawing.formatDrawingDisplay(currentGameState)}`
255
+ };
256
+ }
257
+
258
+ // Default: show drawing canvas
259
+ return { display: drawing.formatDrawingDisplay(currentGameState) };
260
+ }
261
+
262
+ // Handle solo hangman
263
+ if (game === 'hangman') {
264
+ const gameState = getGameSession('hangman', myHandle); // Personal session
265
+
266
+ if (action === 'guess' && guess) {
267
+ const hangmanModule = require('../games/hangman');
268
+ const result = hangmanModule.makeGuess(gameState, guess);
269
+
270
+ if (result.error) {
271
+ return { display: `❌ ${result.error}` };
272
+ }
273
+
274
+ updateGameSession('hangman', result.gameState, myHandle);
275
+
276
+ let response = hangmanModule.formatHangmanDisplay(result.gameState);
277
+
278
+ if (result.gameState.won) {
279
+ response += '\n\n🎉 **You won!** Starting a new game...';
280
+ // Start new game
281
+ const newState = hangmanModule.createInitialHangmanState();
282
+ updateGameSession('hangman', newState, myHandle);
283
+ } else if (result.gameState.lost) {
284
+ response += '\n\n💀 **Game over!** Starting a new game...';
285
+ // Start new game
286
+ const newState = hangmanModule.createInitialHangmanState();
287
+ updateGameSession('hangman', newState, myHandle);
288
+ }
289
+
290
+ return { display: response };
291
+ }
292
+
293
+ if (action === 'new') {
294
+ const hangmanModule = require('../games/hangman');
295
+ const newState = hangmanModule.createInitialHangmanState();
296
+ updateGameSession('hangman', newState, myHandle);
297
+ return { display: hangmanModule.formatHangmanDisplay(newState) };
298
+ }
299
+
300
+ // Default: show current game
301
+ const hangmanModule = require('../games/hangman');
302
+ return { display: hangmanModule.formatHangmanDisplay(gameState) };
303
+ }
304
+
305
+ // Handle other games similarly...
306
+ // For now, return a helpful message for unsupported games
307
+ const supportedGames = ['arcade', 'drawing', 'hangman'];
308
+ if (!supportedGames.includes(game)) {
309
+ return {
310
+ display: `🎮 **${game.charAt(0).toUpperCase() + game.slice(1)}** game support coming soon!\n\n` +
311
+ `Currently available:\n` +
312
+ `• **arcade** - Browse all games\n` +
313
+ `• **drawing** - Collaborative drawing canvas\n` +
314
+ `• **hangman** - Solo word guessing\n\n` +
315
+ `Use \`vibe workshop arcade\` to explore all games!`
316
+ };
317
+ }
318
+
319
+ return { display: 'Use --action to interact with the game!' };
320
+
321
+ } catch (error) {
322
+ console.error('[workshop] Error:', error);
323
+ return { display: `❌ Workshop error: ${error.message}` };
324
+ }
325
+ }
326
+
327
+ module.exports = { definition, handler };
@@ -9,7 +9,7 @@ const { requireInit, header, divider, formatTimeAgo } = require('./_shared');
9
9
 
10
10
  const definition = {
11
11
  name: 'vibe_x_mentions',
12
- description: 'See your X/Twitter mentions. Search triggers: "twitter", "X", "mentions", "social media", "notifications". Pulls recent @mentions from X/Twitter into /vibe for triage and response.',
12
+ description: 'See your recent X/Twitter mentions. Brings X activity into /vibe.',
13
13
  inputSchema: {
14
14
  type: 'object',
15
15
  properties: {
package/version.json CHANGED
@@ -1,5 +1,16 @@
1
1
  {
2
- "version": "0.2.3",
3
- "updated": "2026-01-09",
4
- "changelog": "Postgres funnel tracking, KV rate limit fixes, stats accuracy"
2
+ "version": "0.3.13",
3
+ "updated": "2026-01-22",
4
+ "changelog": "Platform polish: smart inbox, streaks, leaderboards, gig recommendations, mobile dashboard",
5
+ "features": [
6
+ "Smart inbox checking - triggers on commits, tests, builds, natural breaks",
7
+ "Tech stack auto-detection for better connection matching",
8
+ "Enhanced streak system - 5 badge tiers, freeze preservation",
9
+ "Leaderboard 2.1 - category rankings, position tracking, movers",
10
+ "Featured sessions in browse",
11
+ "Gig recommendations based on proven skills",
12
+ "Mobile dashboard API for fast loading"
13
+ ],
14
+ "breaking": false,
15
+ "updateUrl": "https://www.slashvibe.dev/api/version"
5
16
  }
@@ -1,111 +0,0 @@
1
- /**
2
- * vibe artifacts-buy — Purchase an artifact
3
- *
4
- * Buy artifacts from other developers. Part of the proof-of-work monetization layer.
5
- * PAST (artifacts for sale) ← PRESENT (watch me code) → FUTURE (gigs)
6
- */
7
-
8
- const config = require('../config');
9
- const { requireInit } = require('./_shared');
10
-
11
- const API_URL = process.env.VIBE_API_URL || 'https://www.slashvibe.dev';
12
-
13
- const definition = {
14
- name: 'vibe_artifacts_buy',
15
- description: 'Purchase an artifact from another developer. Part of the proof-of-work monetization layer. Search triggers: "buy artifact", "purchase artifact", "get artifact".',
16
- inputSchema: {
17
- type: 'object',
18
- properties: {
19
- artifact_id: {
20
- type: 'string',
21
- description: 'The artifact ID to purchase (e.g., "artifact_xxx")'
22
- },
23
- amount_cents: {
24
- type: 'number',
25
- description: 'Optional: Amount to pay in cents. Required for pay_what_you_want, defaults to artifact price otherwise.'
26
- }
27
- },
28
- required: ['artifact_id']
29
- }
30
- };
31
-
32
- async function handler(args) {
33
- const initCheck = requireInit();
34
- if (initCheck) return initCheck;
35
-
36
- const { artifact_id, amount_cents } = args;
37
- const buyer = config.getHandle();
38
-
39
- if (!artifact_id) {
40
- return {
41
- display: '❌ Missing artifact_id. Provide the ID of the artifact to buy.'
42
- };
43
- }
44
-
45
- try {
46
- // First, get artifact details to show price
47
- const artifactResponse = await fetch(`${API_URL}/api/artifacts?id=${encodeURIComponent(artifact_id)}`);
48
- const artifactData = await artifactResponse.json();
49
-
50
- if (!artifactData.success || !artifactData.artifact) {
51
- return {
52
- display: `❌ Artifact not found: ${artifact_id}`
53
- };
54
- }
55
-
56
- const artifact = artifactData.artifact;
57
-
58
- if (!artifact.is_for_sale) {
59
- return {
60
- display: `❌ This artifact is not for sale.`
61
- };
62
- }
63
-
64
- if (artifact.created_by === buyer) {
65
- return {
66
- display: `❌ You can't buy your own artifact!`
67
- };
68
- }
69
-
70
- // Calculate final amount
71
- const finalAmount = amount_cents || artifact.price_cents;
72
- const priceDisplay = `$${(finalAmount / 100).toFixed(2)}`;
73
-
74
- // Make purchase
75
- const response = await fetch(`${API_URL}/api/artifacts/purchase`, {
76
- method: 'POST',
77
- headers: { 'Content-Type': 'application/json' },
78
- body: JSON.stringify({
79
- artifact_id,
80
- buyer,
81
- amount_cents: finalAmount
82
- })
83
- });
84
-
85
- const data = await response.json();
86
-
87
- if (!data.success) {
88
- return {
89
- display: `❌ Purchase failed: ${data.error || 'Unknown error'}`
90
- };
91
- }
92
-
93
- let display = `## 🎉 Artifact Purchased!\n\n`;
94
- display += `**${artifact.title}**\n`;
95
- display += `by @${artifact.created_by}\n\n`;
96
- display += `**Amount paid:** ${priceDisplay}\n`;
97
- display += `**View at:** https://slashvibe.dev/a/${artifact.slug}\n\n`;
98
- display += `---\n`;
99
- display += `You now have access to this artifact.\n`;
100
- display += `The seller @${artifact.created_by} has been credited.`;
101
-
102
- return { display };
103
-
104
- } catch (e) {
105
- return {
106
- display: `❌ Error purchasing artifact: ${e.message}`
107
- };
108
- }
109
- }
110
-
111
- module.exports = { definition, handler };