@jackle.dev/zalox-plugin 1.0.10 ā 1.0.11
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/tools-scenario.ts +9 -2
package/package.json
CHANGED
package/src/tools-scenario.ts
CHANGED
|
@@ -46,10 +46,11 @@ export const zaloxScenarioTool = {
|
|
|
46
46
|
// Analyze Requirements (Playbook Logic)
|
|
47
47
|
const reqs = data.requirements || {};
|
|
48
48
|
const flow = data.flow || [];
|
|
49
|
+
const setup = data.setup || {};
|
|
49
50
|
const warnings = [];
|
|
50
51
|
|
|
51
52
|
if (reqs.packages && reqs.packages.length > 0) {
|
|
52
|
-
warnings.push(`š¦ Packages required: ${reqs.packages.join(', ')}
|
|
53
|
+
warnings.push(`š¦ Packages required: ${reqs.packages.join(', ')}`);
|
|
53
54
|
}
|
|
54
55
|
if (reqs.env && reqs.env.length > 0) {
|
|
55
56
|
warnings.push(`š Environment variables needed: ${reqs.env.join(', ')}`);
|
|
@@ -60,8 +61,14 @@ export const zaloxScenarioTool = {
|
|
|
60
61
|
|
|
61
62
|
if (warnings.length > 0 || flow.length > 0) {
|
|
62
63
|
report += `\n\nšØ PLAYBOOK REQUIREMENTS:\n${warnings.join('\n')}`;
|
|
64
|
+
|
|
65
|
+
if (setup.commands && setup.commands.length > 0) {
|
|
66
|
+
report += `\n\nš ļø SETUP GUIDE (Ask user to run/confirm):\n`;
|
|
67
|
+
if (setup.guide) report += `ā¹ļø ${setup.guide}\n`;
|
|
68
|
+
report += `Commands:\n${setup.commands.map((c: string) => `> ${c}`).join('\n')}`;
|
|
69
|
+
}
|
|
70
|
+
|
|
63
71
|
report += `\n\nš EXECUTION FLOW (SOP):\n${flow.join('\n')}`;
|
|
64
|
-
report += `\n\nš Agent: Please read the flow above and ask user to fulfill requirements if missing.`;
|
|
65
72
|
}
|
|
66
73
|
|
|
67
74
|
return report;
|