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.
@@ -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
@@ -41,6 +41,10 @@ class AgenticFlowCLI {
41
41
  proxyPort = 3000;
42
42
  async start() {
43
43
  const options = parseArgs();
44
+ if (options.version) {
45
+ console.log(`agentic-flow v${VERSION}`);
46
+ process.exit(0);
47
+ }
44
48
  if (options.help) {
45
49
  this.printHelp();
46
50
  process.exit(0);
@@ -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
@@ -28,6 +28,10 @@ export function parseArgs() {
28
28
  case '-h':
29
29
  options.help = true;
30
30
  break;
31
+ case '--version':
32
+ case '-v':
33
+ options.version = true;
34
+ break;
31
35
  case '--agent':
32
36
  case '-a':
33
37
  options.mode = 'agent';
@@ -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",
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",