lua-cli 1.3.2-alpha.2 → 2.0.0

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/CHANGELOG.md CHANGED
@@ -5,6 +5,31 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.3.2-alpha.3] - 2025-09-25
9
+
10
+ ### 🚀 Major Rewrite
11
+ - **Complete compiler rewrite** using TypeScript AST (ts-morph) instead of regex
12
+ - **Self-contained tool bundling** with esbuild and minification
13
+ - **85% file size reduction** (4MB → 612KB total bundle size)
14
+ - **Zero regex usage** - pure AST-based parsing for reliability
15
+
16
+ ### ✨ New Features
17
+ - **Enhanced Zod schema parsing** for nested objects and arrays
18
+ - **Comprehensive polyfills** for browser/Node.js APIs (AbortController, FormData, TextEncoder, crypto, etc.)
19
+ - **Optimized bundling** excludes lua-cli modules (injected by VM) for smaller sizes
20
+ - **Dual output format** - both new (dist/) and legacy (.lua/) formats
21
+
22
+ ### 🔧 Improvements
23
+ - **Proper environment variable injection** from lua.skill.yaml into VM
24
+ - **Minified output** for production deployment
25
+ - **Better error handling** with proper TypeScript AST validation
26
+ - **Full backward compatibility** with existing deployment workflow
27
+
28
+ ### đŸ“Ļ Bundle Size Optimizations
29
+ - Simple tools (Weather, UserData): 545KB → 4KB (99% reduction)
30
+ - HTTP tools (CreatePost): 863KB → 232KB (73% reduction)
31
+ - AI tools (SearchMovies): 1.4MB → 364KB (74% reduction)
32
+
8
33
  ## [1.3.0-alpha.1] - 2024-12-19
9
34
 
10
35
  ### Added
package/README.md CHANGED
@@ -195,7 +195,7 @@ This command will:
195
195
  - Available at `http://localhost:3000` (opens automatically)
196
196
  - **Live Log Panel**:
197
197
  - Real-time log feed showing execution details
198
- - WebSocket connection to `wss://api.lua.dev/feed`
198
+ - WebSocket connection to `wss://api.heylua.ai/feed`
199
199
  - Console-style interface with color-coded log levels
200
200
  - Shows tool calls, errors, metrics, and execution metadata
201
201
  - Displays detailed information in expandable sections
@@ -498,7 +498,7 @@ For more details, see [USER_DATA_API.md](./USER_DATA_API.md).
498
498
 
499
499
  For support and questions:
500
500
  - Create an issue on [GitHub](https://github.com/lua-ai-global/lua-cli/issues)
501
- - Contact: stefan@lua.dev
501
+ - Contact: stefan@heylua.ai
502
502
 
503
503
  ## Changelog
504
504
 
@@ -5,7 +5,7 @@ export async function agentsCommand() {
5
5
  return withErrorHandling(async () => {
6
6
  const apiKey = await loadApiKey();
7
7
  if (!apiKey) {
8
- console.error("❌ No API key found. Run `lua configure` first.");
8
+ console.error("❌ No API key found. Run `lua auth configure` first.");
9
9
  process.exit(1);
10
10
  }
11
11
  const response = await ApiService.Agent.getOrganizations(apiKey);
@@ -1,11 +1,11 @@
1
1
  import inquirer from "inquirer";
2
2
  import { loadApiKey } from "../services/auth.js";
3
- import { withErrorHandling, clearPromptLines, writeProgress, writeSuccess } from "../utils/cli.js";
3
+ import { withErrorHandling, writeProgress, writeSuccess } from "../utils/cli.js";
4
4
  export async function apiKeyCommand() {
5
5
  return withErrorHandling(async () => {
6
6
  const apiKey = await loadApiKey();
7
7
  if (!apiKey) {
8
- writeProgress("â„šī¸ No API key found. Run `lua configure` first.");
8
+ writeProgress("â„šī¸ No API key found. Run `lua auth configure` first.");
9
9
  return;
10
10
  }
11
11
  const { confirm } = await inquirer.prompt([
@@ -16,8 +16,6 @@ export async function apiKeyCommand() {
16
16
  default: false
17
17
  }
18
18
  ]);
19
- // Clear the confirmation prompt lines
20
- clearPromptLines(2);
21
19
  if (confirm) {
22
20
  writeSuccess("🔑 Your API key:");
23
21
  console.log(apiKey);