agentic-flow 1.1.3 → 1.1.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/dist/agents/directApiAgent.js +2 -1
- package/dist/cli-proxy.js +4 -0
- package/dist/router/router.js +8 -0
- package/dist/utils/cli.js +4 -0
- package/dist/utils/logger.js +12 -0
- package/package.json +1 -1
|
@@ -253,7 +253,8 @@ export async function directApiAgent(agent, input, onStream) {
|
|
|
253
253
|
: (process.env.COMPLETION_MODEL || 'meta-llama/llama-3.1-8b-instruct'),
|
|
254
254
|
messages: messagesWithSystem,
|
|
255
255
|
maxTokens: 8192,
|
|
256
|
-
temperature: 0.7
|
|
256
|
+
temperature: 0.7,
|
|
257
|
+
provider: provider // Force the router to use this specific provider
|
|
257
258
|
};
|
|
258
259
|
const routerResponse = await routerInstance.chat(params);
|
|
259
260
|
// Convert router response to Anthropic format
|
package/dist/cli-proxy.js
CHANGED
package/dist/router/router.js
CHANGED
|
@@ -196,6 +196,14 @@ export class ModelRouter {
|
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
198
|
async selectProvider(params, agentType) {
|
|
199
|
+
// If provider is explicitly specified in params, use it
|
|
200
|
+
if (params.provider) {
|
|
201
|
+
const forcedProvider = this.providers.get(params.provider);
|
|
202
|
+
if (forcedProvider) {
|
|
203
|
+
return forcedProvider;
|
|
204
|
+
}
|
|
205
|
+
console.warn(`⚠️ Requested provider '${params.provider}' not available, falling back to routing logic`);
|
|
206
|
+
}
|
|
199
207
|
const routingMode = this.config.routing?.mode || 'manual';
|
|
200
208
|
switch (routingMode) {
|
|
201
209
|
case 'manual':
|
package/dist/utils/cli.js
CHANGED
package/dist/utils/logger.js
CHANGED
|
@@ -4,6 +4,10 @@ class Logger {
|
|
|
4
4
|
this.context = { ...this.context, ...ctx };
|
|
5
5
|
}
|
|
6
6
|
log(level, message, data) {
|
|
7
|
+
// Skip all logs if QUIET mode is enabled (unless it's an error)
|
|
8
|
+
if (process.env.QUIET === 'true' && level !== 'error') {
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
7
11
|
const timestamp = new Date().toISOString();
|
|
8
12
|
const logEntry = {
|
|
9
13
|
timestamp,
|
|
@@ -33,9 +37,17 @@ class Logger {
|
|
|
33
37
|
this.log('debug', message, data);
|
|
34
38
|
}
|
|
35
39
|
info(message, data) {
|
|
40
|
+
// Skip info logs unless VERBOSE is set
|
|
41
|
+
if (!process.env.DEBUG && !process.env.VERBOSE) {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
36
44
|
this.log('info', message, data);
|
|
37
45
|
}
|
|
38
46
|
warn(message, data) {
|
|
47
|
+
// Skip warnings unless VERBOSE is set
|
|
48
|
+
if (!process.env.DEBUG && !process.env.VERBOSE) {
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
39
51
|
this.log('warn', message, data);
|
|
40
52
|
}
|
|
41
53
|
error(message, data) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentic-flow",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.5",
|
|
4
4
|
"description": "Production-ready AI agent orchestration platform with 66 specialized agents, 111 MCP tools, and autonomous multi-agent swarms. Built by @ruvnet with Claude Agent SDK, neural networks, memory persistence, GitHub integration, and distributed consensus protocols.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|