agency-orchestrator 0.6.14 → 0.6.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.
|
@@ -102,8 +102,14 @@ export class CLIBaseConnector {
|
|
|
102
102
|
const content = this.cfg.parseOutput
|
|
103
103
|
? this.cfg.parseOutput(stdout)
|
|
104
104
|
: stdout.trim();
|
|
105
|
-
|
|
106
|
-
|
|
105
|
+
// 空内容是严重错误(LLM 应当返回内容)。区分两类原因给具体 hint,避免上层
|
|
106
|
+
// 拿到空字符串后报出迷惑性的"无效 YAML"错误。
|
|
107
|
+
if (!content) {
|
|
108
|
+
const stderrSnippet = stderr.trim().slice(0, 400);
|
|
109
|
+
const hint = stderrSnippet
|
|
110
|
+
? `stderr: ${stderrSnippet}`
|
|
111
|
+
: `进程退出码 ${code} 但 stdout/stderr 都为空。可能原因: CLI 命令格式已变(参考 issue #14 hermes 的 chat -q → -z)/ agent 或 model 配置不对 / CLI 需要先认证。建议在终端直接跑一次:\n ${this.cfg.command} ${args.slice(0, 4).join(' ')}${args.length > 4 ? ' ...' : ''}\n 看真实输出再调整 ao 配置`;
|
|
112
|
+
reject(new Error(`${this.cfg.displayName} 返回空内容。${hint}`));
|
|
107
113
|
return;
|
|
108
114
|
}
|
|
109
115
|
// 检测 CLI 输出中的 API 错误(进程 exit 0 但内容是错误信息)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agency-orchestrator",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.15",
|
|
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",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"scripts": {
|
|
65
65
|
"build": "tsc",
|
|
66
66
|
"dev": "tsc --watch",
|
|
67
|
-
"test": "npx tsx test/run.ts && npx tsx test/condition.ts && npx tsx test/cli.ts && npx tsx test/compose.ts && npx tsx test/demo.ts && npx tsx test/factory-custom.ts && npx tsx test/step-llm.ts && npx tsx test/step-llm-yaml.ts && npx tsx test/stdin-limit.ts && npx tsx test/compose-name.ts && npx tsx test/e2e.ts && npx tsx test/e2e-condition.ts && npx tsx test/e2e-loop.ts && npx tsx test/mcp.ts",
|
|
67
|
+
"test": "npx tsx test/run.ts && npx tsx test/condition.ts && npx tsx test/cli.ts && npx tsx test/cli-base.ts && npx tsx test/compose.ts && npx tsx test/demo.ts && npx tsx test/factory-custom.ts && npx tsx test/step-llm.ts && npx tsx test/step-llm-yaml.ts && npx tsx test/stdin-limit.ts && npx tsx test/compose-name.ts && npx tsx test/e2e.ts && npx tsx test/e2e-condition.ts && npx tsx test/e2e-loop.ts && npx tsx test/mcp.ts",
|
|
68
68
|
"prepublishOnly": "npm run build"
|
|
69
69
|
},
|
|
70
70
|
"files": [
|