workflow-ai 1.0.37 → 1.0.38
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/package.json +1 -1
- package/src/runner.mjs +2 -8
package/package.json
CHANGED
package/src/runner.mjs
CHANGED
|
@@ -840,14 +840,11 @@ class StageExecutor {
|
|
|
840
840
|
// Если args содержит -p с ролью — объединяем роль и промпт в один аргумент
|
|
841
841
|
// Иначе Claude CLI интерпретирует роль как промпт, а реальный промпт игнорирует
|
|
842
842
|
const lastPIdx = args.lastIndexOf('-p');
|
|
843
|
-
let stdinPrompt = null;
|
|
844
843
|
if (lastPIdx !== -1 && lastPIdx < args.length - 1) {
|
|
845
844
|
const role = args[lastPIdx + 1];
|
|
846
845
|
args[lastPIdx + 1] = `${prompt}\n\nТвоя роль: ${role}`;
|
|
847
846
|
} else {
|
|
848
|
-
|
|
849
|
-
// т.к. shell: true на Windows обрезает многострочные аргументы
|
|
850
|
-
stdinPrompt = prompt;
|
|
847
|
+
args.push(prompt);
|
|
851
848
|
}
|
|
852
849
|
|
|
853
850
|
// Логгируем команду перед запуском (вместо промпта — имя skill)
|
|
@@ -870,10 +867,7 @@ class StageExecutor {
|
|
|
870
867
|
shell: process.platform === 'win32' && agent.command !== 'node'
|
|
871
868
|
});
|
|
872
869
|
|
|
873
|
-
//
|
|
874
|
-
if (stdinPrompt) {
|
|
875
|
-
child.stdin.write(stdinPrompt);
|
|
876
|
-
}
|
|
870
|
+
// Закрываем stdin чтобы агент не ждал дополнительного ввода
|
|
877
871
|
child.stdin.end();
|
|
878
872
|
|
|
879
873
|
let stdout = '';
|