@peopl-health/nexus 1.7.4 → 1.7.5

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.
@@ -7,9 +7,8 @@ const { getLastNMessages } = require('../helpers/assistantHelper');
7
7
  * and supports dynamic tool registration.
8
8
  */
9
9
  class BaseAssistant {
10
- constructor(input = {}) {
11
- const options = this._normalizeOptions(input);
12
-
10
+ constructor(options = {}) {
11
+ console.log('options', options);
13
12
  this.assistantId = options.assistantId || null;
14
13
  this.thread = options.thread || null;
15
14
  this.status = options.status || 'idle';
@@ -53,18 +52,6 @@ class BaseAssistant {
53
52
  }
54
53
  }
55
54
 
56
- _normalizeOptions(input) {
57
- if (!input || typeof input !== 'object') {
58
- return { thread: input };
59
- }
60
-
61
- if (input && input._id && !input.assistantId && !input.client && !input.tools) {
62
- return { thread: input };
63
- }
64
-
65
- return input;
66
- }
67
-
68
55
  _ensureClient() {
69
56
  if (!this.client) {
70
57
  throw new Error('LLM client not configured. Ensure openaiClient is initialized.');
package/lib/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  declare module '@peopl-health/nexus' {
2
- import { EventEmitter } from 'events';
3
2
  import mongoose from 'mongoose';
4
3
 
5
4
  // Core Types
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@peopl-health/nexus",
3
- "version": "1.7.4",
3
+ "version": "1.7.5",
4
4
  "description": "Core messaging and assistant library for WhatsApp communication platforms",
5
5
  "keywords": [
6
6
  "whatsapp",