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 +25 -0
- package/README.md +2 -2
- package/dist/commands/agents.js +1 -1
- package/dist/commands/apiKey.js +2 -4
- package/dist/commands/compile.js +632 -973
- package/dist/commands/deploy.js +1 -1
- package/dist/commands/dev.js +352 -81
- package/dist/commands/init.js +52 -78
- package/dist/commands/push.js +1 -1
- package/dist/commands/test.js +49 -11
- package/dist/index.js +7 -9
- package/dist/services/api.d.ts +4 -1
- package/dist/services/api.js +7 -6
- package/dist/services/auth.d.ts +0 -4
- package/dist/services/auth.js +2 -129
- package/dist/skill.d.ts +5 -0
- package/dist/skill.js +6 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/utils/files.d.ts +1 -1
- package/dist/utils/files.js +13 -28
- package/dist/utils/sandbox.d.ts +8 -70
- package/dist/utils/sandbox.js +153 -7
- package/dist/web/app.css +4709 -796
- package/dist/web/app.js +22 -20
- package/dist/web/tools-page.css +0 -13
- package/package.json +4 -2
- package/template/env.example +17 -0
- package/template/lua.skill.yaml +14 -15
- package/template/package.json +3 -1
- package/template/src/index.ts +46 -6
- package/template/src/seed.ts +46 -0
- package/template/src/tools/GetWeatherTool.ts +32 -15
- package/template/src/tools/PaymentTool.ts +51 -0
- package/template/src/tools/SearchProducts.ts +43 -0
- package/dist/commands/deploy-new.d.ts +0 -0
- package/dist/commands/deploy-new.js +0 -130
- package/template/package-lock.json +0 -1523
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.
|
|
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@
|
|
501
|
+
- Contact: stefan@heylua.ai
|
|
502
502
|
|
|
503
503
|
## Changelog
|
|
504
504
|
|
package/dist/commands/agents.js
CHANGED
|
@@ -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);
|
package/dist/commands/apiKey.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import inquirer from "inquirer";
|
|
2
2
|
import { loadApiKey } from "../services/auth.js";
|
|
3
|
-
import { withErrorHandling,
|
|
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);
|