@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jackle.dev/zalox-plugin",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "description": "OpenClaw channel plugin for Zalo via zca-js (in-process, single login)",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -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(', ')} (Please install via npm)`);
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;