lua-cli 3.22.0 → 3.23.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/dist/api-exports.d.ts +49 -4
- package/dist/api-exports.js +179 -25
- package/dist/api-exports.js.map +1 -1
- package/dist/index.js +225 -63
- package/dist/index.js.map +1 -1
- package/docs/README.md +2 -2
- package/docs/api/Jobs.md +1 -2
- package/docs/api/LuaJob.md +1 -1
- package/package.json +3 -3
- package/template/examples/jobs/DataMigrationJob.ts +2 -2
- package/template/package.json +1 -1
package/docs/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# lua-cli v3.
|
|
1
|
+
# lua-cli v3.23.0
|
|
2
2
|
|
|
3
|
-
Welcome to the comprehensive API documentation for lua-cli v3.
|
|
3
|
+
Welcome to the comprehensive API documentation for lua-cli v3.23.0. This guide covers every API, class, and function exported by the package.
|
|
4
4
|
|
|
5
5
|
## 📚 Documentation Index
|
|
6
6
|
|
package/docs/api/Jobs.md
CHANGED
|
@@ -486,7 +486,7 @@ await Jobs.create({
|
|
|
486
486
|
```typescript
|
|
487
487
|
await Jobs.create({
|
|
488
488
|
name: 'long-running-task',
|
|
489
|
-
timeout:
|
|
489
|
+
timeout: 300, // 5 minutes (seconds; supported range: 1-600)
|
|
490
490
|
|
|
491
491
|
execute: async (job) => {
|
|
492
492
|
// Will be terminated if exceeds 5 minutes
|
|
@@ -521,4 +521,3 @@ await Jobs.create({
|
|
|
521
521
|
- [Dynamic Job Creation Guide](../../DYNAMIC_JOB_CREATION_API.md)
|
|
522
522
|
- [Job Examples](../../template/src/jobs/)
|
|
523
523
|
- [CreateInlineJob Example](../../template/src/skills/tools/CreateInlineJob.ts)
|
|
524
|
-
|
package/docs/api/LuaJob.md
CHANGED
|
@@ -49,7 +49,7 @@ interface LuaJobConfig {
|
|
|
49
49
|
/** Function that executes the job logic */
|
|
50
50
|
execute: (job: JobInstance) => Promise<any>;
|
|
51
51
|
|
|
52
|
-
/** Optional timeout in seconds (default: 300) */
|
|
52
|
+
/** Optional timeout in seconds (default: 300, supported range: 1-600) */
|
|
53
53
|
timeout?: number;
|
|
54
54
|
|
|
55
55
|
/** Optional retry configuration */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lua-cli",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.23.0",
|
|
4
4
|
"description": "Build, test, and deploy AI agents with custom tools, webhooks, and scheduled jobs. Features LuaAgent unified configuration, streaming chat, and batch deployment.",
|
|
5
5
|
"readmeFilename": "README.md",
|
|
6
6
|
"main": "dist/api-exports.js",
|
|
@@ -109,9 +109,9 @@
|
|
|
109
109
|
"stripe": "^19.2.0",
|
|
110
110
|
"ts-node": "^10.9.2",
|
|
111
111
|
"tsup": "^8.5.1",
|
|
112
|
+
"@lua/shared-sandbox": "0.0.1",
|
|
112
113
|
"@lua/shared-source-sync": "0.0.1",
|
|
113
|
-
"@lua/shared-types": "0.0.1"
|
|
114
|
-
"@lua/shared-sandbox": "0.0.1"
|
|
114
|
+
"@lua/shared-types": "0.0.1"
|
|
115
115
|
},
|
|
116
116
|
"scripts": {
|
|
117
117
|
"clean": "rm -rf dist temp",
|
|
@@ -17,8 +17,8 @@ const dataMigrationJob = new LuaJob({
|
|
|
17
17
|
executeAt: new Date('2025-12-31T02:00:00Z'), // December 31, 2025 at 2 AM UTC
|
|
18
18
|
},
|
|
19
19
|
|
|
20
|
-
// Give it
|
|
21
|
-
timeout:
|
|
20
|
+
// Give it the supported 10-minute maximum for a large migration
|
|
21
|
+
timeout: 600,
|
|
22
22
|
|
|
23
23
|
// Retry important migrations
|
|
24
24
|
retry: {
|