neoagent 1.4.6 → 1.4.8
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.
package/package.json
CHANGED
|
@@ -11,7 +11,8 @@ const PACKS = {
|
|
|
11
11
|
images: ['generate_image', 'analyze_image'],
|
|
12
12
|
tables: ['generate_table', 'generate_graph'],
|
|
13
13
|
subagents: ['spawn_subagent'],
|
|
14
|
-
mcpAdmin: ['mcp_add_server', 'mcp_list_servers', 'mcp_remove_server']
|
|
14
|
+
mcpAdmin: ['mcp_add_server', 'mcp_list_servers', 'mcp_remove_server'],
|
|
15
|
+
health: ['read_health_data']
|
|
15
16
|
};
|
|
16
17
|
|
|
17
18
|
function containsAny(text, patterns) {
|
|
@@ -100,6 +101,10 @@ function detectRequestedPacks(task = '', options = {}) {
|
|
|
100
101
|
packs.add('images');
|
|
101
102
|
}
|
|
102
103
|
|
|
104
|
+
if (containsAny(text, [/\bhealth\b/, /\bfitness\b/, /\bsteps\b/, /\bsleep\b/, /\bheart rate\b/, /\bworkout\b/, /\bblood\b/, /\bsamsung health\b/, /\bhealth connect\b/])) {
|
|
105
|
+
packs.add('health');
|
|
106
|
+
}
|
|
107
|
+
|
|
103
108
|
return packs;
|
|
104
109
|
}
|
|
105
110
|
|
|
@@ -107,8 +107,8 @@ async function startServices(app, io) {
|
|
|
107
107
|
: '';
|
|
108
108
|
|
|
109
109
|
const prompt = isVoiceCall
|
|
110
|
-
? `You are on a live phone call. The caller (${msg.senderName || msg.sender}) said:\n<caller_speech>\n${msg.content}\n</caller_speech>\n\nRespond via send_message with platform="telnyx" and to="${msg.chatId}".`
|
|
111
|
-
: `You received a ${msg.platform} message from ${msg.senderName || msg.sender} (chat: ${msg.chatId}):\n<external_message>\n${msg.content}\n</external_message>${mediaNote}${discordContext}${sttNote}\n\nReply via send_message with platform="${msg.platform}" and to="${msg.chatId}".`;
|
|
110
|
+
? `You are on a live phone call. The caller (${msg.senderName || msg.sender}) said:\n<caller_speech>\n${msg.content}\n</caller_speech>\n\nRespond via send_message with platform="telnyx" and to="${msg.chatId}". Note: once you successfully send your voice response, end the tool loop and output exactly [NO RESPONSE] as your final text.`
|
|
111
|
+
: `You received a ${msg.platform} message from ${msg.senderName || msg.sender} (chat: ${msg.chatId}):\n<external_message>\n${msg.content}\n</external_message>${mediaNote}${discordContext}${sttNote}\n\nReply via send_message with platform="${msg.platform}" and to="${msg.chatId}". Note: once you successfully send your reply, end the tool loop and output exactly [NO RESPONSE] as your final text to prevent double-notifications.`;
|
|
112
112
|
|
|
113
113
|
let convRow = db.prepare(
|
|
114
114
|
'SELECT id FROM conversations WHERE user_id = ? AND platform = ? AND platform_chat_id = ?'
|