mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-24 22:28:10 +09:00
End users on Anthropic Max (which doesn't expose ANTHROPIC_API_KEY) +
Ollama Cloud were locked out of workflow_execute because both
agent-execute paths hardcoded Anthropic. The 4-provider tier-shim in
agentic-flow upstream is a separate fix; this commit closes the gap on
the claude-flow side so Ollama is a first-class Tier-2 option.
src/commands/providers.ts:
- Added 'Ollama' to PROVIDER_CATALOG (LLM, OLLAMA_API_KEY env,
'gpt-oss:120b-cloud, llama3:70b-cloud, qwen2.5-coder:32b-cloud').
- Added 'ollama' to envMapping in resolveApiKey.
- Added ollama endpoint to testProviderConnectivity (tags endpoint).
`claude-flow providers configure -p ollama -k <key>` now accepts
the value; `providers test -p ollama` round-trips the API key.
src/mcp-tools/agent-execute-core.ts:
callAnthropicMessages now picks provider per:
1. RUFLO_PROVIDER=ollama (explicit) OR
2. ANTHROPIC_API_KEY unset AND OLLAMA_API_KEY set (auto-fallback)
When Ollama is selected, callOllamaCompat() runs:
- POST <OLLAMA_BASE_URL or https://ollama.com>/v1/chat/completions
- Bearer auth if apiKey is non-empty AND not the literal 'local'
sentinel (sentinel skips header for self-hosted bind-no-auth)
- OpenAI-compat request shape (messages array w/ system role)
- Normalizes response back to AnthropicCallResult so callers see
the same { success, model, output, usage, durationMs } regardless
of provider.
resolveOllamaModel maps logical names (haiku/sonnet/opus) to the
cloud default 'gpt-oss:120b-cloud'; passes through 'ollama:<model>'
prefix or bare provider-native names like 'llama3.2:1b'.
Validated end-to-end against ruvultra over tailscale:
- Installed ollama 0.23.0 on ruvultra (Ubuntu 24.04)
- Daemon bound to 0.0.0.0:11434
- Pulled llama3.2:1b
- From local Mac: callAnthropicMessages({ prompt, model:
'ollama:llama3.2:1b', timeoutMs: 30000 }) with OLLAMA_BASE_URL=
http://ruvultra:11434 / OLLAMA_API_KEY=local / RUFLO_PROVIDER=ollama
- success: true, 611ms, 49 tokens, response normalized to
AnthropicCallResult shape
Same code path supports Ollama Cloud (default endpoint) when users
set OLLAMA_API_KEY=<real-key>. workflow_execute, which dispatches
through executeAgentTask → callAnthropicMessages, picks up the new
routing automatically — no MCP wire-format change required.
Bump 3.6.26 → 3.6.27 across CLI + claude-flow + ruflo umbrellas.
128 lines
3.5 KiB
JSON
128 lines
3.5 KiB
JSON
{
|
|
"name": "@claude-flow/cli",
|
|
"version": "3.6.27",
|
|
"type": "module",
|
|
"description": "Ruflo CLI - Enterprise AI agent orchestration with 60+ specialized agents, swarm coordination, MCP server, self-learning hooks, and vector memory for Claude Code",
|
|
"main": "dist/src/index.js",
|
|
"types": "dist/src/index.d.ts",
|
|
"sideEffects": false,
|
|
"bin": {
|
|
"cli": "./bin/cli.js",
|
|
"claude-flow": "./bin/cli.js",
|
|
"claude-flow-mcp": "./bin/mcp-server.js"
|
|
},
|
|
"homepage": "https://github.com/ruvnet/claude-flow#readme",
|
|
"bugs": {
|
|
"url": "https://github.com/ruvnet/claude-flow/issues"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/ruvnet/claude-flow.git",
|
|
"directory": "v3/@claude-flow/cli"
|
|
},
|
|
"keywords": [
|
|
"claude",
|
|
"claude-code",
|
|
"anthropic",
|
|
"ai-agents",
|
|
"multi-agent",
|
|
"swarm",
|
|
"mcp",
|
|
"model-context-protocol",
|
|
"llm",
|
|
"cli",
|
|
"orchestration",
|
|
"automation",
|
|
"developer-tools",
|
|
"coding-assistant",
|
|
"vector-database",
|
|
"embeddings",
|
|
"self-learning",
|
|
"enterprise"
|
|
],
|
|
"author": {
|
|
"name": "RuvNet",
|
|
"email": "ruv@ruv.io",
|
|
"url": "https://ruv.io"
|
|
},
|
|
"license": "MIT",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/src/index.d.ts",
|
|
"import": "./dist/src/index.js"
|
|
},
|
|
"./dist/*": "./dist/*",
|
|
"./ruvector": {
|
|
"types": "./dist/src/ruvector/index.d.ts",
|
|
"import": "./dist/src/ruvector/index.js"
|
|
},
|
|
"./ruvector/*": {
|
|
"types": "./dist/src/ruvector/*.d.ts",
|
|
"import": "./dist/src/ruvector/*.js"
|
|
},
|
|
"./mcp-tools": {
|
|
"types": "./dist/src/mcp-tools/index.d.ts",
|
|
"import": "./dist/src/mcp-tools/index.js"
|
|
},
|
|
"./memory": {
|
|
"types": "./dist/src/memory/memory-initializer.d.ts",
|
|
"import": "./dist/src/memory/memory-initializer.js"
|
|
},
|
|
"./intelligence": {
|
|
"types": "./dist/src/memory/intelligence.d.ts",
|
|
"import": "./dist/src/memory/intelligence.js"
|
|
}
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"bin",
|
|
"scripts",
|
|
".claude",
|
|
"README.md"
|
|
],
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"test": "vitest run",
|
|
"test:plugin-store": "npx tsx src/plugins/tests/standalone-test.ts",
|
|
"test:pattern-store": "npx tsx src/transfer/store/tests/standalone-test.ts",
|
|
"postinstall": "node ./scripts/postinstall.cjs",
|
|
"prepublishOnly": "cp ../../../README.md ./README.md",
|
|
"release": "npm version prerelease --preid=alpha && npm run publish:all",
|
|
"publish:all": "./scripts/publish.sh"
|
|
},
|
|
"devDependencies": {
|
|
"typescript": "^5.3.0",
|
|
"vitest": "^4.0.16"
|
|
},
|
|
"dependencies": {
|
|
"@claude-flow/mcp": "^3.0.0-alpha.8",
|
|
"@claude-flow/shared": "^3.0.0-alpha.7",
|
|
"@noble/ed25519": "^2.1.0",
|
|
"@ruvector/rabitq-wasm": "^0.1.0",
|
|
"semver": "^7.6.0"
|
|
},
|
|
"optionalDependencies": {
|
|
"@claude-flow/aidefence": "^3.0.2",
|
|
"@claude-flow/codex": "^3.0.0-alpha.8",
|
|
"@claude-flow/embeddings": "^3.0.0-alpha.12",
|
|
"@claude-flow/guidance": "^3.0.0-alpha.1",
|
|
"@claude-flow/memory": "^3.0.0-alpha.12",
|
|
"@claude-flow/plugin-gastown-bridge": "^0.1.3",
|
|
"@claude-flow/security": "^3.0.0-alpha.1",
|
|
"@ruvector/attention": "^0.1.32",
|
|
"@ruvector/attention-darwin-arm64": "0.1.32",
|
|
"@ruvector/diskann": "^0.1.0",
|
|
"@ruvector/learning-wasm": "^0.1.29",
|
|
"@ruvector/router": "^0.1.30",
|
|
"@ruvector/ruvllm-wasm": "^2.0.2",
|
|
"@ruvector/rvagent-wasm": "^0.1.0",
|
|
"@ruvector/sona": "^0.1.5",
|
|
"agentdb": "^3.0.0-alpha.11",
|
|
"agentic-flow": "^3.0.0-alpha.1"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public",
|
|
"tag": "latest"
|
|
}
|
|
}
|