@teamvibe/poller 0.4.1 → 0.4.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.
- package/dist/claude-spawner.js +7 -1
- package/package.json +1 -1
package/dist/claude-spawner.js
CHANGED
|
@@ -234,9 +234,15 @@ async function runClaudeCode(msg, sessionLog, cwd, sessionId, isFirstMessage = t
|
|
|
234
234
|
const slackContext = msg.response_context.slack;
|
|
235
235
|
const isCronMessage = msg.source === 'cron';
|
|
236
236
|
const isHeartbeat = msg.source === 'heartbeat';
|
|
237
|
+
const isMaintenance = msg.source === 'maintenance';
|
|
237
238
|
const isEmailMessage = msg.source === 'email';
|
|
238
239
|
const isWebhookMessage = msg.source === 'webhook';
|
|
239
|
-
if (!slackContext &&
|
|
240
|
+
if (!slackContext &&
|
|
241
|
+
!isCronMessage &&
|
|
242
|
+
!isHeartbeat &&
|
|
243
|
+
!isMaintenance &&
|
|
244
|
+
!isEmailMessage &&
|
|
245
|
+
!isWebhookMessage) {
|
|
240
246
|
throw new Error('No Slack context in message');
|
|
241
247
|
}
|
|
242
248
|
// Build resume hint
|