@peopl-health/nexus 3.8.15 → 3.8.16

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.
@@ -97,7 +97,7 @@ const listAssistantController = async (req, res) => {
97
97
  try {
98
98
  const nodeEnv = process.env.NODE_ENV;
99
99
  const airtableStatus = nodeEnv === 'production' ? 'prod' : nodeEnv === 'development' ? 'dev' : nodeEnv;
100
- const assistants = await getRecordByFilter(Config_ID, process.env.VARIANT, `status="${airtableStatus}"`);
100
+ const assistants = await getRecordByFilter(Config_ID, process.env.VARIANT, '1', airtableStatus);
101
101
  return res.status(200).json({ success: true, assistants });
102
102
  } catch (error) {
103
103
  logger.error('[AssistantController] List error', { error: error.message });
@@ -131,7 +131,7 @@ async function composePrompt({ presetId = null, promptId = null, variables = nul
131
131
 
132
132
  if (sorted.length > 0) {
133
133
  const snippetTexts = sorted.map(s => s.content);
134
- baseContent = [baseContent, ...snippetTexts].join('\n\n');
134
+ baseContent = [...snippetTexts, baseContent].join('\n\n');
135
135
  }
136
136
 
137
137
  const resolvedPrompt = applyVariables(baseContent, variables);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@peopl-health/nexus",
3
- "version": "3.8.15",
3
+ "version": "3.8.16",
4
4
  "description": "Core messaging and assistant library for WhatsApp communication platforms",
5
5
  "keywords": [
6
6
  "whatsapp",