agency-orchestrator 0.6.4 → 0.6.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.
@@ -66,6 +66,9 @@ function buildComposeSystemPromptEn(catalog, options) {
66
66
  const autoRun = options?.autoRun ?? false;
67
67
  const provider = options?.provider || 'deepseek';
68
68
  const model = options?.model;
69
+ const isLocal = provider === 'ollama';
70
+ const maxTokens = isLocal ? 8192 : 4096;
71
+ const timeoutMs = isLocal ? 600000 : 120000;
69
72
  const inputsSection = autoRun
70
73
  ? `
71
74
  ## Important: Direct Run Mode
@@ -109,8 +112,8 @@ agents_dir: "agency-agents"
109
112
  llm:
110
113
  provider: ${provider}
111
114
  ${model ? `model: ${model}` : ''}
112
- max_tokens: 4096
113
- timeout: 120000
115
+ max_tokens: ${maxTokens}
116
+ timeout: ${timeoutMs}
114
117
  retry: 2
115
118
 
116
119
  concurrency: 2
@@ -155,6 +158,9 @@ function buildComposeSystemPromptZh(catalog, options) {
155
158
  const autoRun = options?.autoRun ?? false;
156
159
  const provider = options?.provider || 'deepseek';
157
160
  const model = options?.model;
161
+ const isLocal = provider === 'ollama';
162
+ const maxTokens = isLocal ? 8192 : 4096;
163
+ const timeoutMs = isLocal ? 600000 : 120000;
158
164
  const inputsSection = autoRun
159
165
  ? `
160
166
  ## 重要:直接运行模式
@@ -198,8 +204,8 @@ agents_dir: "agency-agents-zh"
198
204
  llm:
199
205
  provider: ${provider}
200
206
  ${model ? `model: ${model}` : ''}
201
- max_tokens: 4096
202
- timeout: 120000
207
+ max_tokens: ${maxTokens}
208
+ timeout: ${timeoutMs}
203
209
  retry: 2
204
210
 
205
211
  concurrency: 2
@@ -18,7 +18,7 @@ export class OllamaConnector {
18
18
  ],
19
19
  stream: false,
20
20
  options: {
21
- num_predict: config.max_tokens || 2048,
21
+ num_predict: config.max_tokens || 8192,
22
22
  },
23
23
  }),
24
24
  });
@@ -10,7 +10,8 @@ export async function executeDAG(dag, options) {
10
10
  const startTime = Date.now();
11
11
  const stepResults = [];
12
12
  const isCLI = llmConfig.provider.endsWith('-cli') || llmConfig.provider === 'claude-code';
13
- const timeout = llmConfig.timeout || (isCLI ? 600_000 : 120_000); // CLI 10分钟(gateway/MiniMax 等可能单步 5+ 分钟),API 2分钟
13
+ const isLocal = llmConfig.provider === 'ollama';
14
+ const timeout = llmConfig.timeout || (isCLI ? 600_000 : isLocal ? 600_000 : 120_000);
14
15
  const maxRetry = llmConfig.retry ?? 5;
15
16
  // CLI provider 强制串行:共享同一账户额度,并发会触发限速反而更慢
16
17
  const effectiveConcurrency = isCLI ? 1 : concurrency;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agency-orchestrator",
3
- "version": "0.6.4",
3
+ "version": "0.6.5",
4
4
  "description": "Multi-agent YAML workflow engine — 211 AI roles, auto DAG parallelism, zero code. One sentence → multiple AI roles collaborate → complete plan in minutes. 10 LLM providers, 7 need no API key.",
5
5
  "keywords": [
6
6
  "multi-agent",