agentic-flow 1.8.14 ā 1.8.15
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/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,40 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [1.8.15] - 2025-11-01
|
|
9
|
+
|
|
10
|
+
### š Bug Fix - Model Configuration
|
|
11
|
+
|
|
12
|
+
Fixed model configuration issue where `DEFAULT_MODEL` environment variable was not being used, causing incorrect model selection.
|
|
13
|
+
|
|
14
|
+
### Fixed
|
|
15
|
+
|
|
16
|
+
- **Model Configuration:** `DEFAULT_MODEL` environment variable now properly respected
|
|
17
|
+
- Updated `claudeAgentDirect.ts` to check both `DEFAULT_MODEL` and `COMPLETION_MODEL`
|
|
18
|
+
- Fixed `--model` CLI flag not being passed through to agent execution
|
|
19
|
+
- Now supports both environment variable names for backward compatibility
|
|
20
|
+
- Ensures consistent model selection across all providers
|
|
21
|
+
|
|
22
|
+
### Changed
|
|
23
|
+
|
|
24
|
+
- **Model Priority Order:**
|
|
25
|
+
1. `--model` CLI flag (highest priority)
|
|
26
|
+
2. `DEFAULT_MODEL` environment variable
|
|
27
|
+
3. `COMPLETION_MODEL` environment variable (backward compatibility)
|
|
28
|
+
4. Provider-specific hardcoded default (fallback)
|
|
29
|
+
|
|
30
|
+
### Technical Details
|
|
31
|
+
|
|
32
|
+
**Files Modified:**
|
|
33
|
+
- `src/agents/claudeAgentDirect.ts` - Added `DEFAULT_MODEL` support
|
|
34
|
+
- `src/cli-proxy.ts` - Pass `options.model` to `claudeAgentDirect`
|
|
35
|
+
|
|
36
|
+
**Validation:**
|
|
37
|
+
- ā
`DEFAULT_MODEL` from .env properly used
|
|
38
|
+
- ā
`--model` flag correctly overrides default
|
|
39
|
+
- ā
Backward compatible with `COMPLETION_MODEL`
|
|
40
|
+
- ā
Works across all providers (Anthropic, OpenRouter, Gemini)
|
|
41
|
+
|
|
8
42
|
## [1.8.14] - 2025-11-01
|
|
9
43
|
|
|
10
44
|
### š Critical Bug Fix - Claude Code Dependency Removed
|
|
@@ -19,22 +19,24 @@ function getCurrentProvider() {
|
|
|
19
19
|
return 'anthropic'; // Default
|
|
20
20
|
}
|
|
21
21
|
function getModelForProvider(provider) {
|
|
22
|
+
// Use DEFAULT_MODEL or COMPLETION_MODEL from environment (both supported for backward compatibility)
|
|
23
|
+
const envModel = process.env.DEFAULT_MODEL || process.env.COMPLETION_MODEL;
|
|
22
24
|
switch (provider) {
|
|
23
25
|
case 'gemini':
|
|
24
26
|
return {
|
|
25
|
-
model:
|
|
27
|
+
model: envModel || 'gemini-2.0-flash-exp',
|
|
26
28
|
apiKey: process.env.GOOGLE_GEMINI_API_KEY || '',
|
|
27
29
|
baseURL: process.env.GEMINI_PROXY_URL || 'http://localhost:3000'
|
|
28
30
|
};
|
|
29
31
|
case 'requesty':
|
|
30
32
|
return {
|
|
31
|
-
model:
|
|
33
|
+
model: envModel || 'deepseek/deepseek-chat',
|
|
32
34
|
apiKey: process.env.REQUESTY_API_KEY || '',
|
|
33
35
|
baseURL: process.env.REQUESTY_PROXY_URL || 'http://localhost:3000'
|
|
34
36
|
};
|
|
35
37
|
case 'openrouter':
|
|
36
38
|
return {
|
|
37
|
-
model:
|
|
39
|
+
model: envModel || 'deepseek/deepseek-chat',
|
|
38
40
|
apiKey: process.env.OPENROUTER_API_KEY || '',
|
|
39
41
|
baseURL: process.env.OPENROUTER_PROXY_URL || 'http://localhost:3000'
|
|
40
42
|
};
|
|
@@ -51,7 +53,7 @@ function getModelForProvider(provider) {
|
|
|
51
53
|
throw new Error('ANTHROPIC_API_KEY is required for Anthropic provider');
|
|
52
54
|
}
|
|
53
55
|
return {
|
|
54
|
-
model:
|
|
56
|
+
model: envModel || 'claude-sonnet-4-5-20250929',
|
|
55
57
|
apiKey,
|
|
56
58
|
// Direct Anthropic API - no baseURL needed
|
|
57
59
|
};
|
package/dist/cli-proxy.js
CHANGED
|
@@ -853,7 +853,7 @@ PERFORMANCE:
|
|
|
853
853
|
const streamHandler = options.stream ? (chunk) => process.stdout.write(chunk) : undefined;
|
|
854
854
|
// FIXED: Use claudeAgentDirect (no Claude Code dependency) instead of claudeAgent
|
|
855
855
|
// This allows agentic-flow to work standalone in Docker/CI/CD without Claude Code
|
|
856
|
-
const result = await claudeAgentDirect(agent, task, streamHandler);
|
|
856
|
+
const result = await claudeAgentDirect(agent, task, streamHandler, options.model);
|
|
857
857
|
if (!options.stream) {
|
|
858
858
|
console.log('\nā
Completed!\n');
|
|
859
859
|
console.log('āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā\n');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentic-flow",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.15",
|
|
4
4
|
"description": "Production-ready AI agent orchestration platform with 66 specialized agents, 213 MCP tools, ReasoningBank learning memory, 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",
|
|
@@ -258,7 +258,7 @@ export function log(message) {
|
|
|
258
258
|
wasm.log(ptr0, len0);
|
|
259
259
|
}
|
|
260
260
|
|
|
261
|
-
function
|
|
261
|
+
function __wbg_adapter_4(arg0, arg1, arg2) {
|
|
262
262
|
wasm.__wbindgen_export_5(arg0, arg1, addHeapObject(arg2));
|
|
263
263
|
}
|
|
264
264
|
|
|
@@ -540,7 +540,7 @@ export function __wbindgen_cast_2241b6af4c4b2941(arg0, arg1) {
|
|
|
540
540
|
|
|
541
541
|
export function __wbindgen_cast_8eb6fd44e7238d11(arg0, arg1) {
|
|
542
542
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 62, function: Function { arguments: [Externref], shim_idx: 63, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
543
|
-
const ret = makeMutClosure(arg0, arg1, 62,
|
|
543
|
+
const ret = makeMutClosure(arg0, arg1, 62, __wbg_adapter_4);
|
|
544
544
|
return addHeapObject(ret);
|
|
545
545
|
};
|
|
546
546
|
|
|
Binary file
|