lua-cli 2.2.0 → 2.2.1

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/dist/skill.js CHANGED
@@ -21,6 +21,10 @@ export const env = (key) => {
21
21
  // Look for lua.skill.yaml in current directory and parent directories
22
22
  let currentDir = process.cwd();
23
23
  let yamlPath = null;
24
+ //check if in .env file
25
+ if (process.env[key]) {
26
+ return process.env[key];
27
+ }
24
28
  while (currentDir !== path.dirname(currentDir)) {
25
29
  const potentialPath = path.join(currentDir, 'lua.skill.yaml');
26
30
  if (fs.existsSync(potentialPath)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lua-cli",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "description": "Command-line interface for Lua AI platform - develop, test, and deploy LuaSkills with custom tools",
5
5
  "readmeFilename": "README.md",
6
6
  "main": "dist/index.js",
@@ -19,7 +19,7 @@
19
19
  "axios": "^1.6.0",
20
20
  "inquirer": "^12.9.6",
21
21
  "js-yaml": "^4.1.0",
22
- "lua-cli": "2.2.0",
22
+ "lua-cli": "2.2.1",
23
23
  "openai": "^5.23.0",
24
24
  "uuid": "^13.0.0",
25
25
  "zod": "^3.24.1"