navada-edge-cli 3.5.4 → 3.5.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.
- package/lib/agent.js +6 -6
- package/package.json +1 -1
package/lib/agent.js
CHANGED
|
@@ -801,6 +801,12 @@ function detectIntent(message) {
|
|
|
801
801
|
// Anthropic Claude API — conversational agent with tool use
|
|
802
802
|
// ---------------------------------------------------------------------------
|
|
803
803
|
async function chat(userMessage, conversationHistory = []) {
|
|
804
|
+
// Local action interceptor — file/folder ops work on ALL tiers without LLM
|
|
805
|
+
const localResult = tryLocalAction(userMessage);
|
|
806
|
+
if (localResult) {
|
|
807
|
+
return `${localResult}\n\nWhat would you like to do next?`;
|
|
808
|
+
}
|
|
809
|
+
|
|
804
810
|
const anthropicKey = config.get('anthropicKey') || process.env.ANTHROPIC_API_KEY || '';
|
|
805
811
|
const openaiKey = config.get('openaiKey') || process.env.OPENAI_API_KEY || '';
|
|
806
812
|
const nvidiaKey = config.get('nvidiaKey') || process.env.NVIDIA_API_KEY || '';
|
|
@@ -1170,12 +1176,6 @@ function tryLocalAction(userMessage) {
|
|
|
1170
1176
|
}
|
|
1171
1177
|
|
|
1172
1178
|
async function grokChat(userMessage, conversationHistory = []) {
|
|
1173
|
-
// Try local action first — enables file ops on free tier
|
|
1174
|
-
const localResult = tryLocalAction(userMessage);
|
|
1175
|
-
if (localResult) {
|
|
1176
|
-
return `${localResult}\n\nWhat would you like to do next?`;
|
|
1177
|
-
}
|
|
1178
|
-
|
|
1179
1179
|
const messages = [
|
|
1180
1180
|
...conversationHistory.slice(-20).map(m => ({
|
|
1181
1181
|
role: m.role,
|
package/package.json
CHANGED