agentic-flow 1.0.2 → 1.0.3

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.
Files changed (2) hide show
  1. package/dist/cli-proxy.js +20 -0
  2. package/package.json +1 -1
package/dist/cli-proxy.js CHANGED
@@ -130,6 +130,26 @@ class AgenticFlowCLI {
130
130
  this.printHelp();
131
131
  process.exit(1);
132
132
  }
133
+ // Check for API key (unless using ONNX)
134
+ const isOnnx = options.provider === 'onnx' || process.env.USE_ONNX === 'true' || process.env.PROVIDER === 'onnx';
135
+ if (!isOnnx && !useOpenRouter && !process.env.ANTHROPIC_API_KEY) {
136
+ console.error('\n❌ Error: ANTHROPIC_API_KEY is required\n');
137
+ console.error('Please set your API key:');
138
+ console.error(' export ANTHROPIC_API_KEY=sk-ant-xxxxx\n');
139
+ console.error('Or use alternative providers:');
140
+ console.error(' --provider openrouter (requires OPENROUTER_API_KEY)');
141
+ console.error(' --provider onnx (free local inference)\n');
142
+ process.exit(1);
143
+ }
144
+ if (!isOnnx && useOpenRouter && !process.env.OPENROUTER_API_KEY) {
145
+ console.error('\n❌ Error: OPENROUTER_API_KEY is required for OpenRouter\n');
146
+ console.error('Please set your API key:');
147
+ console.error(' export OPENROUTER_API_KEY=sk-or-v1-xxxxx\n');
148
+ console.error('Or use alternative providers:');
149
+ console.error(' --provider anthropic (requires ANTHROPIC_API_KEY)');
150
+ console.error(' --provider onnx (free local inference)\n');
151
+ process.exit(1);
152
+ }
133
153
  const agent = getAgent(agentName);
134
154
  if (!agent) {
135
155
  const available = listAgents();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentic-flow",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
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",