workflow-ai 1.0.33 → 1.0.35

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 +3 -15
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "workflow-ai",
3
- "version": "1.0.33",
3
+ "version": "1.0.35",
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
@@ -289,19 +289,7 @@ class PromptBuilder {
289
289
  * @returns {string} Промпт для агента
290
290
  */
291
291
  build(stage, stageId) {
292
- const skillName = stage.skill || stageId;
293
- const ticketId = this.context.ticket_id;
294
- const parts = [];
295
-
296
- // Директивная первая строка — агент сразу понимает задание
297
- if (ticketId) {
298
- const skillPath = `.workflow/src/skills/${skillName}/SKILL.md`;
299
- parts.push(`Выполни скилл "${skillName}" для тикета ${ticketId}.`);
300
- parts.push(`Инструкция скилла: ${skillPath}`);
301
- parts.push(`Прочитай инструкцию и выполни все шаги.`);
302
- } else {
303
- parts.push(skillName);
304
- }
292
+ const parts = [stage.skill || stageId];
305
293
 
306
294
  // Добавляем контекст если есть непустые значения
307
295
  const contextEntries = Object.entries(this.context)
@@ -853,8 +841,8 @@ class StageExecutor {
853
841
  // Иначе Claude CLI интерпретирует роль как промпт, а реальный промпт игнорирует
854
842
  const lastPIdx = args.lastIndexOf('-p');
855
843
  if (lastPIdx !== -1 && lastPIdx < args.length - 1) {
856
- const rolePrompt = args[lastPIdx + 1];
857
- args[lastPIdx + 1] = `${rolePrompt}\n\n${prompt}`;
844
+ const role = args[lastPIdx + 1];
845
+ args[lastPIdx + 1] = `${prompt}\n\nТвоя роль: ${role}`;
858
846
  } else {
859
847
  args.push(prompt);
860
848
  }