@peopl-health/nexus 5.13.0-dev.1160 → 5.13.0-dev.1162

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.
@@ -9,7 +9,6 @@ const { forkShadowTurn } = require('./services/shadowService');
9
9
  const { diverge } = require('./services/divergenceService');
10
10
  const { getAssistantById } = require('./services/assistantResolver');
11
11
  const { maybeSendBridge, clearBridgeState } = require('./services/bridgeService');
12
- const { getBridgePresetId } = require('./flags/bridgeConfig');
13
12
  const { ToolRuntimeContext } = require('./context/ToolRuntimeContext');
14
13
 
15
14
  class AssistantProcessor {
@@ -60,8 +59,7 @@ class AssistantProcessor {
60
59
  if (ctx && thread) thread.toolRuntimeContext = ctx;
61
60
 
62
61
  const runConfig = { ...runOptions, phiProcessor: this.phiProcessor };
63
- const isClinicalAgentTurn = thread.preset_id === getBridgePresetId();
64
- if (!runOptions.shadow && isClinicalAgentTurn && message?.body && this.sendMessage) {
62
+ if (!runOptions.shadow && message?.body && this.sendMessage) {
65
63
  let decision = null;
66
64
  runConfig.onFirstIteration = (args) => {
67
65
  decision = decision || maybeSendBridge({
@@ -4,11 +4,6 @@ function isBridgeEnabled() {
4
4
  return runtimeConfig.get('BRIDGE_ENABLED', 'false') === 'true';
5
5
  }
6
6
 
7
- function getBridgePresetId() {
8
- return runtimeConfig.get('BRIDGE_PRESET_ID', 'clinical_agent');
9
- }
10
-
11
7
  module.exports = {
12
8
  isBridgeEnabled,
13
- getBridgePresetId,
14
9
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@peopl-health/nexus",
3
- "version": "5.13.0-dev.1160",
3
+ "version": "5.13.0-dev.1162",
4
4
  "description": "Core messaging and assistant library for WhatsApp communication platforms",
5
5
  "keywords": [
6
6
  "whatsapp",