@peopl-health/nexus 4.5.21 → 4.5.22

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.
@@ -58,10 +58,11 @@ class AssistantProcessor {
58
58
  return result;
59
59
  }
60
60
 
61
- async _executeViaQueue({ code, runOptions }) {
61
+ async _executeViaQueue({ code, runOptions = {} }) {
62
62
  if (!this.queueAdapter) throw new Error('queueAdapter is required for queue mode');
63
+ const timeoutMs = runOptions.queueTimeoutMs || 120000;
63
64
  const jobId = await this.queueAdapter.enqueue('assistant.process', { code, runOptions });
64
- return await this.queueAdapter.waitForResult(jobId, 120000);
65
+ return await this.queueAdapter.waitForResult(jobId, timeoutMs);
65
66
  }
66
67
 
67
68
  async sendResponse(code, result) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@peopl-health/nexus",
3
- "version": "4.5.21",
3
+ "version": "4.5.22",
4
4
  "description": "Core messaging and assistant library for WhatsApp communication platforms",
5
5
  "keywords": [
6
6
  "whatsapp",