@the-agenticflow/openflows 0.1.6 → 0.1.9
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/.env.example +10 -8
- package/bin/openflows.js +13 -10
- package/package.json +3 -3
package/.env.example
CHANGED
|
@@ -4,15 +4,17 @@
|
|
|
4
4
|
# Quick Start Options:
|
|
5
5
|
# ===================
|
|
6
6
|
#
|
|
7
|
-
# Option 1:
|
|
8
|
-
#
|
|
9
|
-
# Get your key from: https://fireworks.ai
|
|
10
|
-
FIREWORKS_API_KEY=your-fireworks-api-key
|
|
11
|
-
|
|
12
|
-
# Option 2: Anthropic Direct
|
|
13
|
-
# --------------------------
|
|
7
|
+
# Option 1: Anthropic Direct (Recommended - no proxy needed)
|
|
8
|
+
# ---------------------------------------------------------
|
|
14
9
|
# Get your key from: https://console.anthropic.com
|
|
15
|
-
|
|
10
|
+
ANTHROPIC_API_KEY=your-anthropic-api-key
|
|
11
|
+
|
|
12
|
+
# Option 2: Fireworks AI (proxy auto-starts for Claude CLI agents)
|
|
13
|
+
# ----------------------------------------------------------------
|
|
14
|
+
# Get your key from: https://fireworks.ai
|
|
15
|
+
# FIREWORKS_API_KEY=your-fireworks-api-key
|
|
16
|
+
# NOTE: Fireworks doesn't have a native Anthropic endpoint,
|
|
17
|
+
# so the proxy auto-starts to translate Anthropic→OpenAI for Claude CLI
|
|
16
18
|
|
|
17
19
|
# Option 3: Custom Gateway (requires built-in proxy)
|
|
18
20
|
# --------------------------------------------------
|
package/bin/openflows.js
CHANGED
|
@@ -40,23 +40,23 @@ function isPortInUse(port) {
|
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
// Check if user needs proxy (
|
|
43
|
+
// Check if user needs proxy (for LLM API translation if needed)
|
|
44
44
|
function needsProxy() {
|
|
45
45
|
// If user explicitly set PROXY_URL, respect it
|
|
46
46
|
if (process.env.PROXY_URL) {
|
|
47
47
|
return { needed: false, reason: 'PROXY_URL already set' };
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
// If user has Fireworks API key, they can use it directly
|
|
51
|
-
if (process.env.FIREWORKS_API_KEY) {
|
|
52
|
-
return { needed: false, reason: 'Fireworks direct mode' };
|
|
53
|
-
}
|
|
54
|
-
|
|
55
50
|
// If user has Anthropic API key, they can use it directly
|
|
56
51
|
if (process.env.ANTHROPIC_API_KEY) {
|
|
57
52
|
return { needed: false, reason: 'Anthropic direct mode' };
|
|
58
53
|
}
|
|
59
54
|
|
|
55
|
+
// Fireworks users need proxy for Claude CLI agents (no native Anthropic endpoint)
|
|
56
|
+
if (process.env.FIREWORKS_API_KEY) {
|
|
57
|
+
return { needed: true, reason: 'Fireworks requires proxy for Claude CLI compatibility' };
|
|
58
|
+
}
|
|
59
|
+
|
|
60
60
|
// If user has Gateway config but no direct keys, they need proxy
|
|
61
61
|
if (process.env.GATEWAY_URL || process.env.GATEWAY_API_KEY) {
|
|
62
62
|
return { needed: true, reason: 'Gateway configured, no direct keys' };
|
|
@@ -175,15 +175,18 @@ Commands:
|
|
|
175
175
|
openflows-dashboard Live monitoring TUI
|
|
176
176
|
openflows-doctor Diagnostic checks
|
|
177
177
|
|
|
178
|
-
Environment Variables:
|
|
179
|
-
|
|
180
|
-
|
|
178
|
+
Environment Variables:
|
|
179
|
+
ANTHROPIC_API_KEY Use Anthropic directly (no proxy needed)
|
|
180
|
+
FIREWORKS_API_KEY Use Fireworks AI (proxy auto-starts for Claude CLI)
|
|
181
181
|
GATEWAY_URL Custom gateway URL (requires proxy)
|
|
182
182
|
GATEWAY_API_KEY Custom gateway API key
|
|
183
183
|
PROXY_PORT Port for built-in proxy (default: 8765)
|
|
184
184
|
|
|
185
185
|
Examples:
|
|
186
|
-
# Quick start with
|
|
186
|
+
# Quick start with Anthropic (no proxy needed)
|
|
187
|
+
ANTHROPIC_API_KEY=your-key openflows
|
|
188
|
+
|
|
189
|
+
# Use Fireworks (proxy auto-starts for Claude CLI agents)
|
|
187
190
|
FIREWORKS_API_KEY=your-key openflows
|
|
188
191
|
|
|
189
192
|
# Use custom gateway (proxy auto-starts)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@the-agenticflow/openflows",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"description": "Autonomous AI development team — turns GitHub issues into working PRs",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"repository": {
|
|
16
16
|
"type": "git",
|
|
17
|
-
"url": "git+https://github.com/The-AgenticFlow/
|
|
17
|
+
"url": "git+https://github.com/The-AgenticFlow/OpenFlows.git"
|
|
18
18
|
},
|
|
19
19
|
"keywords": [
|
|
20
20
|
"ai",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"author": "The AgenticFlow Team",
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"bugs": {
|
|
32
|
-
"url": "https://github.com/The-AgenticFlow/
|
|
32
|
+
"url": "https://github.com/The-AgenticFlow/OpenFlows/issues"
|
|
33
33
|
},
|
|
34
34
|
"homepage": "https://openflows.dev",
|
|
35
35
|
"files": [
|