@teamvibe/poller 0.1.33 → 0.1.35

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.
@@ -26,6 +26,8 @@ const TOOL_STATUS_MAP = [
26
26
  { pattern: 'Write', status: 'Writing code...' },
27
27
  { pattern: 'Bash', status: 'Running a command...' },
28
28
  { pattern: 'Agent', status: 'Delegating to a sub-agent...' },
29
+ // TeamVibe API tools
30
+ { pattern: /^mcp__teamvibe-api__/, status: 'Managing schedules...' },
29
31
  // Generic MCP fallback
30
32
  { pattern: /^mcp__/, status: 'Using an integration...' },
31
33
  ];
@@ -185,9 +187,11 @@ async function runClaudeCode(msg, sessionLog, cwd, sessionId, isFirstMessage = t
185
187
  const prompt = buildPrompt(msg, resumeHint);
186
188
  // MCP server config passed via --mcp-config flag (no temp files needed)
187
189
  const mcpServerPath = join(getBaseBrainPath(), 'mcp', 'slack.mjs');
190
+ const teamvibeApiServerPath = join(getBaseBrainPath(), 'mcp', 'teamvibe-api.mjs');
188
191
  const mcpConfig = JSON.stringify({
189
192
  mcpServers: {
190
193
  slack: { command: 'node', args: [mcpServerPath] },
194
+ 'teamvibe-api': { command: 'node', args: [teamvibeApiServerPath] },
191
195
  },
192
196
  });
193
197
  const args = [
@@ -236,6 +240,11 @@ async function runClaudeCode(msg, sessionLog, cwd, sessionId, isFirstMessage = t
236
240
  SLACK_THREAD_TS: slackContext.thread_ts,
237
241
  SLACK_MESSAGE_TS: slackContext.message_ts,
238
242
  }),
243
+ // TeamVibe API env vars for scheduled messages MCP server
244
+ TEAMVIBE_API_URL: config.TEAMVIBE_API_URL,
245
+ TEAMVIBE_POLLER_TOKEN: config.TEAMVIBE_POLLER_TOKEN || '',
246
+ TEAMVIBE_WORKSPACE_ID: msg.teamvibe.workspaceId,
247
+ TEAMVIBE_CHANNEL_ID: msg.teamvibe.channelId,
239
248
  },
240
249
  stdio: ['pipe', 'pipe', 'pipe'],
241
250
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamvibe/poller",
3
- "version": "0.1.33",
3
+ "version": "0.1.35",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "bin": {