@zibby/cli 0.1.13 → 0.1.14

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": "@zibby/cli",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "description": "Zibby CLI - Test automation generator and runner",
5
5
  "type": "module",
6
6
  "bin": {
@@ -33,7 +33,7 @@
33
33
  "dependencies": {
34
34
  "@aws-sdk/client-sqs": "^3.1000.0",
35
35
  "@zibby/skills": "^0.1.0",
36
- "@zibby/core": "^0.1.10",
36
+ "@zibby/core": "^0.1.11",
37
37
  "chalk": "^5.3.0",
38
38
  "commander": "^12.0.0",
39
39
  "dotenv": "^17.2.3",
@@ -169,7 +169,16 @@ export async function initCommand(projectName, options) {
169
169
  const { readdirSync } = await import('fs');
170
170
  const nodeFiles = readdirSync(nodesPath);
171
171
  for (const file of nodeFiles) {
172
- const content = await readFile(join(nodesPath, file), 'utf-8');
172
+ let content = await readFile(join(nodesPath, file), 'utf-8');
173
+
174
+ // If --mem flag NOT used, remove memory skill from execute-live.mjs
175
+ if (!options.mem && file === 'execute-live.mjs') {
176
+ content = content.replace(
177
+ /skills: \[SKILLS\.BROWSER, \.\.\.\(process\.env\.ZIBBY_MEMORY \? \[SKILLS\.MEMORY\] : \[\]\)\],/,
178
+ 'skills: [SKILLS.BROWSER],'
179
+ );
180
+ }
181
+
173
182
  await writeFile(join(targetZibbyDir, 'nodes', file), content);
174
183
  }
175
184
  } catch (error) {