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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/runner.mjs +2 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "workflow-ai",
3
- "version": "1.0.37",
3
+ "version": "1.0.38",
4
4
  "description": "AI Agent Workflow Coordinator — kanban-based pipeline for AI coding agents",
5
5
  "type": "module",
6
6
  "bin": {
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
- // Передаём промпт через stdin вместо аргумента,
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
- // Передаём промпт через stdin или закрываем если промпт в аргументах
874
- if (stdinPrompt) {
875
- child.stdin.write(stdinPrompt);
876
- }
870
+ // Закрываем stdin чтобы агент не ждал дополнительного ввода
877
871
  child.stdin.end();
878
872
 
879
873
  let stdout = '';