@peopl-health/nexus 4.4.0 → 4.4.1

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.
@@ -256,7 +256,11 @@ class OpenAIResponsesProvider {
256
256
 
257
257
  logger.info('[executeRun] Context built', { conversationId, messageCount: context?.length || 0 });
258
258
 
259
- const clinicalData = await this.conversationManager.getClinicalData(thread.code);
259
+ // config.clinicalData, when given, fully replaces the fetched bundle (all four fields).
260
+ // Must be a complete, non-empty object; anything else falls through to the normal fetch.
261
+ const override = config.clinicalData;
262
+ const hasOverride = override && typeof override === 'object' && Object.keys(override).length > 0;
263
+ const clinicalData = hasOverride ? override : await this.conversationManager.getClinicalData(thread.code);
260
264
  const promptVariables = {
261
265
  clinical_context: clinicalData?.clinicalContext ?? '',
262
266
  last_symptoms: clinicalData?.lastSymptoms ?? '',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@peopl-health/nexus",
3
- "version": "4.4.0",
3
+ "version": "4.4.1",
4
4
  "description": "Core messaging and assistant library for WhatsApp communication platforms",
5
5
  "keywords": [
6
6
  "whatsapp",