moeba-claude-channel 0.0.1 → 0.0.2

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.
@@ -177,16 +177,30 @@ function connectSSE(c, mcp) {
177
177
  if (eventType === 'message') {
178
178
  try {
179
179
  const event = JSON.parse(eventData);
180
+ const connId = event.connectionId || c.connectionId;
180
181
  const content = event.message?.text || '';
181
182
  const meta = {
182
183
  sender_email: event.senderEmail || '',
183
184
  sender_name: event.senderName || '',
184
- connection_id: event.connectionId || c.connectionId,
185
+ connection_id: connId,
185
186
  conversation_id: event.conversationId || '',
186
187
  };
187
188
  if (event.type === 'action') {
188
189
  meta.type = 'action';
189
190
  }
191
+ // Show progress indicator immediately so user sees typing
192
+ fetch(`${MOEBA_API_URL}/api/agent/send`, {
193
+ method: 'POST',
194
+ headers: {
195
+ 'Content-Type': 'application/json',
196
+ 'X-Moeba-Agent-Key': c.agentApiKey,
197
+ },
198
+ body: JSON.stringify({
199
+ connectionId: connId,
200
+ message: { text: 'Working on it...' },
201
+ type: 'progress',
202
+ }),
203
+ }).catch(() => { });
190
204
  mcp
191
205
  .notification({
192
206
  method: 'notifications/claude/channel',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "moeba-claude-channel",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "Claude Code channel for Moeba — chat with Claude Code from the Moeba app",
5
5
  "type": "module",
6
6
  "main": "dist/moeba-channel.js",