workflow-ai 1.0.66 → 1.0.68
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/configs/pipeline.yaml +6 -6
- package/package.json +1 -1
- package/src/lib/logger.mjs +19 -5
- package/src/runner.mjs +26 -0
- package/src/skills/coach/tests/cases/TC-COACH-001/current/meta.json +1 -1
- package/src/skills/coach/tests/cases/TC-COACH-002/current/meta.json +2 -2
- package/src/skills/decompose-plan/tests/cases/TC-DECOMPOSE-PLAN-005/current/meta.json +2 -2
- package/src/skills/execute-task/tests/cases/TC-EXECUTE-TASK-001/current/meta.json +1 -1
- package/src/skills/execute-task/tests/cases/TC-EXECUTE-TASK-005/current/meta.json +2 -2
package/configs/pipeline.yaml
CHANGED
|
@@ -64,42 +64,42 @@ pipeline:
|
|
|
64
64
|
|
|
65
65
|
kilo-code:
|
|
66
66
|
command: "kilo"
|
|
67
|
-
args: ["-m", "kilo/kilo-auto/free", "--agent", "orchestrator", "--print-logs", "--log-level", "ERROR", "run"]
|
|
67
|
+
args: ["-m", "kilo/kilo-auto/free", "--agent", "orchestrator", "--print-logs", "--log-level", "ERROR", "run", "--auto"]
|
|
68
68
|
workdir: "."
|
|
69
69
|
capabilities: [text]
|
|
70
70
|
description: "Kilo мульти-режимный (architect, code, debug)"
|
|
71
71
|
|
|
72
72
|
kilo-glm:
|
|
73
73
|
command: "kilo"
|
|
74
|
-
args: ["-m", "zai/glm-5.1", "--agent", "code", "--print-logs", "--log-level", "ERROR", "run"]
|
|
74
|
+
args: ["-m", "zai/glm-5.1", "--agent", "code", "--print-logs", "--log-level", "ERROR", "run", "--auto"]
|
|
75
75
|
workdir: "."
|
|
76
76
|
capabilities: [text]
|
|
77
77
|
description: "Kilo GLM"
|
|
78
78
|
|
|
79
79
|
kilo-glm-air:
|
|
80
80
|
command: "kilo"
|
|
81
|
-
args: ["-m", "zai/glm-4.5-air", "--agent", "code", "--print-logs", "--log-level", "ERROR", "run"]
|
|
81
|
+
args: ["-m", "zai/glm-4.5-air", "--agent", "code", "--print-logs", "--log-level", "ERROR", "run", "--auto"]
|
|
82
82
|
workdir: "."
|
|
83
83
|
capabilities: [text]
|
|
84
84
|
description: "Kilo GLM air"
|
|
85
85
|
|
|
86
86
|
kilo-deepseek:
|
|
87
87
|
command: "kilo"
|
|
88
|
-
args: ["-m", "deepseek/deepseek-reasoner", "--agent", "code", "--print-logs", "--log-level", "ERROR", "run"]
|
|
88
|
+
args: ["-m", "deepseek/deepseek-reasoner", "--agent", "code", "--print-logs", "--log-level", "ERROR", "run", "--auto"]
|
|
89
89
|
workdir: "."
|
|
90
90
|
capabilities: [text]
|
|
91
91
|
description: "Kilo deepseek"
|
|
92
92
|
|
|
93
93
|
kilo-minimax:
|
|
94
94
|
command: "kilo"
|
|
95
|
-
args: ["-m", "kilo/minimax/minimax-m2.7", "--agent", "code", "--print-logs", "--log-level", "ERROR", "run"]
|
|
95
|
+
args: ["-m", "kilo/minimax/minimax-m2.7", "--agent", "code", "--print-logs", "--log-level", "ERROR", "run", "--auto"]
|
|
96
96
|
workdir: "."
|
|
97
97
|
capabilities: [text]
|
|
98
98
|
description: "Kilo minimax"
|
|
99
99
|
|
|
100
100
|
kilo-free:
|
|
101
101
|
command: "kilo"
|
|
102
|
-
args: ["-m", "kilo/kilo-auto/free", "--agent", "code", "--print-logs", "--log-level", "ERROR", "run"]
|
|
102
|
+
args: ["-m", "kilo/kilo-auto/free", "--agent", "code", "--print-logs", "--log-level", "ERROR", "run", "--auto"]
|
|
103
103
|
workdir: "."
|
|
104
104
|
capabilities: [text]
|
|
105
105
|
description: "Kilo free"
|
package/package.json
CHANGED
package/src/lib/logger.mjs
CHANGED
|
@@ -30,13 +30,27 @@ function ensureLogDir(logFilePath) {
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
function createLogger(logFilePath = null, consoleLevel = LEVELS.INFO) {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
let resolvedLogPath = logFilePath;
|
|
34
|
+
let logDirEnsured = false;
|
|
35
|
+
|
|
36
|
+
function resolveLogPath() {
|
|
37
|
+
if (resolvedLogPath) return resolvedLogPath;
|
|
38
|
+
try {
|
|
39
|
+
const projectRoot = findProjectRoot();
|
|
40
|
+
resolvedLogPath = path.join(projectRoot, '.workflow/logs/pipeline.log');
|
|
41
|
+
return resolvedLogPath;
|
|
42
|
+
} catch {
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
38
46
|
|
|
39
47
|
function writeToFile(formatted) {
|
|
48
|
+
const logPath = resolveLogPath();
|
|
49
|
+
if (!logPath) return;
|
|
50
|
+
if (!logDirEnsured) {
|
|
51
|
+
ensureLogDir(logPath);
|
|
52
|
+
logDirEnsured = true;
|
|
53
|
+
}
|
|
40
54
|
fs.appendFileSync(logPath, formatted + '\n', 'utf8');
|
|
41
55
|
}
|
|
42
56
|
|
package/src/runner.mjs
CHANGED
|
@@ -1350,6 +1350,32 @@ class StageExecutor {
|
|
|
1350
1350
|
return;
|
|
1351
1351
|
}
|
|
1352
1352
|
|
|
1353
|
+
// Детекция silent-failure: CLI-агент (kilo и т.п.) auto-rejected permission-
|
|
1354
|
+
// запросы, exit=0, структурированного RESULT нет. Без этой проверки pipeline
|
|
1355
|
+
// получает status=default и идёт дальше, а стейдж фактически не выполнен
|
|
1356
|
+
// (см. incident 2026-04-22: create-report/analyze-report в PulseProxy).
|
|
1357
|
+
// Маппим в ошибку, чтобы executeWithFallback переключился на следующего агента.
|
|
1358
|
+
if (code === 0 && !result.parsed && stderr) {
|
|
1359
|
+
const rejectMatches = stderr.match(/(?:auto-rejecting|rejected permission|permission denied)/gi) || [];
|
|
1360
|
+
if (rejectMatches.length > 0) {
|
|
1361
|
+
const err = new Error(
|
|
1362
|
+
`Agent "${agentId}" exited 0 but auto-rejected ${rejectMatches.length} permission request(s) and produced no RESULT`
|
|
1363
|
+
);
|
|
1364
|
+
err.code = 'PERMISSION_REJECTED';
|
|
1365
|
+
err.exitCode = -1;
|
|
1366
|
+
err.stderr = stderr;
|
|
1367
|
+
err.rejectCount = rejectMatches.length;
|
|
1368
|
+
if (this.logger) {
|
|
1369
|
+
this.logger.error(
|
|
1370
|
+
`Agent "${agentId}" silent-failure: ${rejectMatches.length} auto-rejected permission(s), no RESULT — mapping to status=error`,
|
|
1371
|
+
stageId
|
|
1372
|
+
);
|
|
1373
|
+
}
|
|
1374
|
+
reject(err);
|
|
1375
|
+
return;
|
|
1376
|
+
}
|
|
1377
|
+
}
|
|
1378
|
+
|
|
1353
1379
|
resolve({
|
|
1354
1380
|
status: result.status || 'default',
|
|
1355
1381
|
output: stdout,
|