workflow-ai 1.0.33 → 1.0.34
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 +1 -13
package/package.json
CHANGED
package/src/runner.mjs
CHANGED
|
@@ -289,19 +289,7 @@ class PromptBuilder {
|
|
|
289
289
|
* @returns {string} Промпт для агента
|
|
290
290
|
*/
|
|
291
291
|
build(stage, stageId) {
|
|
292
|
-
const
|
|
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)
|