lua-cli 3.5.0-alpha.3 → 3.5.0-beta.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.
Files changed (465) hide show
  1. package/README.md +137 -689
  2. package/dist/api/agent.api.service.d.ts +1 -8
  3. package/dist/api/agent.api.service.js +1 -11
  4. package/dist/api/agent.api.service.js.map +1 -1
  5. package/dist/api/auth.api.service.d.ts +1 -1
  6. package/dist/api/auth.api.service.js +1 -1
  7. package/dist/api/auth.api.service.js.map +1 -1
  8. package/dist/api/backup.api.service.d.ts +80 -0
  9. package/dist/api/backup.api.service.js +101 -0
  10. package/dist/api/backup.api.service.js.map +1 -0
  11. package/dist/api/basket.api.service.d.ts +4 -5
  12. package/dist/api/basket.api.service.js +13 -18
  13. package/dist/api/basket.api.service.js.map +1 -1
  14. package/dist/api/cdn.api.service.d.ts +2 -0
  15. package/dist/api/cdn.api.service.js +2 -0
  16. package/dist/api/cdn.api.service.js.map +1 -1
  17. package/dist/api/chat.api.service.d.ts +10 -2
  18. package/dist/api/chat.api.service.js +21 -2
  19. package/dist/api/chat.api.service.js.map +1 -1
  20. package/dist/api/credentials.js +5 -8
  21. package/dist/api/credentials.js.map +1 -1
  22. package/dist/api/custom.data.api.service.d.ts +3 -3
  23. package/dist/api/custom.data.api.service.js +9 -10
  24. package/dist/api/custom.data.api.service.js.map +1 -1
  25. package/dist/api/developer.api.service.d.ts +1 -1
  26. package/dist/api/developer.api.service.js +1 -1
  27. package/dist/api/developer.api.service.js.map +1 -1
  28. package/dist/api/http.client.js.map +1 -0
  29. package/dist/api/job.api.service.d.ts +2 -2
  30. package/dist/api/job.api.service.js +2 -2
  31. package/dist/api/job.api.service.js.map +1 -1
  32. package/dist/api/logs.api.service.d.ts +1 -1
  33. package/dist/api/logs.api.service.js +1 -1
  34. package/dist/api/logs.api.service.js.map +1 -1
  35. package/dist/api/marketplace.api.service.d.ts +6 -6
  36. package/dist/api/marketplace.api.service.js.map +1 -1
  37. package/dist/api/order.api.service.d.ts +3 -4
  38. package/dist/api/order.api.service.js +8 -10
  39. package/dist/api/order.api.service.js.map +1 -1
  40. package/dist/api/persona.api.service.d.ts +1 -1
  41. package/dist/api/persona.api.service.js +1 -1
  42. package/dist/api/persona.api.service.js.map +1 -1
  43. package/dist/api/postprocessor.api.service.d.ts +1 -1
  44. package/dist/api/postprocessor.api.service.js +1 -1
  45. package/dist/api/postprocessor.api.service.js.map +1 -1
  46. package/dist/api/preprocessor.api.service.d.ts +1 -1
  47. package/dist/api/preprocessor.api.service.js +1 -1
  48. package/dist/api/preprocessor.api.service.js.map +1 -1
  49. package/dist/api/products.api.service.d.ts +4 -4
  50. package/dist/api/products.api.service.js +6 -6
  51. package/dist/api/products.api.service.js.map +1 -1
  52. package/dist/api/resource.api.service.d.ts +76 -0
  53. package/dist/api/resource.api.service.js +74 -0
  54. package/dist/api/resource.api.service.js.map +1 -0
  55. package/dist/api/skills.api.service.d.ts +7 -15
  56. package/dist/api/skills.api.service.js +1 -1
  57. package/dist/api/skills.api.service.js.map +1 -1
  58. package/dist/api/tool.api.service.d.ts +1 -1
  59. package/dist/api/tool.api.service.js +1 -1
  60. package/dist/api/tool.api.service.js.map +1 -1
  61. package/dist/api/unifiedto.api.service.d.ts +1 -1
  62. package/dist/api/unifiedto.api.service.js +1 -1
  63. package/dist/api/unifiedto.api.service.js.map +1 -1
  64. package/dist/api/user.data.api.service.d.ts +7 -8
  65. package/dist/api/user.data.api.service.js +2 -3
  66. package/dist/api/user.data.api.service.js.map +1 -1
  67. package/dist/api/webhook.api.service.d.ts +1 -1
  68. package/dist/api/webhook.api.service.js +1 -1
  69. package/dist/api/webhook.api.service.js.map +1 -1
  70. package/dist/api/whatsapp-templates.api.service.d.ts +1 -1
  71. package/dist/api/whatsapp-templates.api.service.js +1 -1
  72. package/dist/api/whatsapp-templates.api.service.js.map +1 -1
  73. package/dist/api-exports.d.ts +14 -12
  74. package/dist/api-exports.js +8 -8
  75. package/dist/api-exports.js.map +1 -1
  76. package/dist/cli/command-definitions.js +32 -17
  77. package/dist/cli/command-definitions.js.map +1 -1
  78. package/dist/commands/admin.js +3 -24
  79. package/dist/commands/admin.js.map +1 -1
  80. package/dist/commands/agents.d.ts +8 -7
  81. package/dist/commands/agents.js +63 -21
  82. package/dist/commands/agents.js.map +1 -1
  83. package/dist/commands/channels.js +11 -23
  84. package/dist/commands/channels.js.map +1 -1
  85. package/dist/commands/chat.js +33 -47
  86. package/dist/commands/chat.js.map +1 -1
  87. package/dist/commands/chatClear.js +11 -41
  88. package/dist/commands/chatClear.js.map +1 -1
  89. package/dist/commands/compile.d.ts +26 -23
  90. package/dist/commands/compile.js +98 -403
  91. package/dist/commands/compile.js.map +1 -1
  92. package/dist/commands/completion.js +1 -1
  93. package/dist/commands/completion.js.map +1 -1
  94. package/dist/commands/deploy.js +55 -25
  95. package/dist/commands/deploy.js.map +1 -1
  96. package/dist/commands/dev.js +29 -45
  97. package/dist/commands/dev.js.map +1 -1
  98. package/dist/commands/env.js +12 -25
  99. package/dist/commands/env.js.map +1 -1
  100. package/dist/commands/evals.js +3 -20
  101. package/dist/commands/evals.js.map +1 -1
  102. package/dist/commands/features.js +10 -23
  103. package/dist/commands/features.js.map +1 -1
  104. package/dist/commands/index.d.ts +1 -0
  105. package/dist/commands/index.js +1 -0
  106. package/dist/commands/index.js.map +1 -1
  107. package/dist/commands/init.d.ts +1 -0
  108. package/dist/commands/init.js +135 -19
  109. package/dist/commands/init.js.map +1 -1
  110. package/dist/commands/integrations.js +26 -37
  111. package/dist/commands/integrations.js.map +1 -1
  112. package/dist/commands/jobs.js +32 -56
  113. package/dist/commands/jobs.js.map +1 -1
  114. package/dist/commands/logs.js +9 -20
  115. package/dist/commands/logs.js.map +1 -1
  116. package/dist/commands/marketplace.js +34 -52
  117. package/dist/commands/marketplace.js.map +1 -1
  118. package/dist/commands/mcp.js +10 -23
  119. package/dist/commands/mcp.js.map +1 -1
  120. package/dist/commands/persona.js +43 -74
  121. package/dist/commands/persona.js.map +1 -1
  122. package/dist/commands/postprocessors.js +15 -28
  123. package/dist/commands/postprocessors.js.map +1 -1
  124. package/dist/commands/preprocessors.js +15 -28
  125. package/dist/commands/preprocessors.js.map +1 -1
  126. package/dist/commands/production.js +30 -63
  127. package/dist/commands/production.js.map +1 -1
  128. package/dist/commands/push.js +294 -1241
  129. package/dist/commands/push.js.map +1 -1
  130. package/dist/commands/pushBackup.d.ts +22 -0
  131. package/dist/commands/pushBackup.js +133 -0
  132. package/dist/commands/pushBackup.js.map +1 -0
  133. package/dist/commands/resources.js +29 -72
  134. package/dist/commands/resources.js.map +1 -1
  135. package/dist/commands/skills.d.ts +1 -1
  136. package/dist/commands/skills.js +58 -70
  137. package/dist/commands/skills.js.map +1 -1
  138. package/dist/commands/sync.d.ts +1 -3
  139. package/dist/commands/sync.js +12 -24
  140. package/dist/commands/sync.js.map +1 -1
  141. package/dist/commands/test.js +135 -104
  142. package/dist/commands/test.js.map +1 -1
  143. package/dist/commands/webhooks.js +15 -28
  144. package/dist/commands/webhooks.js.map +1 -1
  145. package/dist/compiler/agent-traverser.d.ts +104 -0
  146. package/dist/compiler/agent-traverser.js +311 -0
  147. package/dist/compiler/agent-traverser.js.map +1 -0
  148. package/dist/compiler/bundler.d.ts +42 -0
  149. package/dist/compiler/bundler.js +187 -0
  150. package/dist/compiler/bundler.js.map +1 -0
  151. package/dist/compiler/compiler.d.ts +177 -0
  152. package/dist/compiler/compiler.js +580 -0
  153. package/dist/compiler/compiler.js.map +1 -0
  154. package/dist/compiler/index.d.ts +36 -0
  155. package/dist/compiler/index.js +42 -0
  156. package/dist/compiler/index.js.map +1 -0
  157. package/dist/compiler/plugins/base.d.ts +264 -0
  158. package/dist/compiler/plugins/base.js +307 -0
  159. package/dist/compiler/plugins/base.js.map +1 -0
  160. package/dist/compiler/plugins/job.plugin.d.ts +33 -0
  161. package/dist/compiler/plugins/job.plugin.js +143 -0
  162. package/dist/compiler/plugins/job.plugin.js.map +1 -0
  163. package/dist/compiler/plugins/mcp-server.plugin.d.ts +50 -0
  164. package/dist/compiler/plugins/mcp-server.plugin.js +186 -0
  165. package/dist/compiler/plugins/mcp-server.plugin.js.map +1 -0
  166. package/dist/compiler/plugins/postprocessor.plugin.d.ts +20 -0
  167. package/dist/compiler/plugins/postprocessor.plugin.js +39 -0
  168. package/dist/compiler/plugins/postprocessor.plugin.js.map +1 -0
  169. package/dist/compiler/plugins/preprocessor.plugin.d.ts +20 -0
  170. package/dist/compiler/plugins/preprocessor.plugin.js +48 -0
  171. package/dist/compiler/plugins/preprocessor.plugin.js.map +1 -0
  172. package/dist/compiler/plugins/processor-base.d.ts +16 -0
  173. package/dist/compiler/plugins/processor-base.js +34 -0
  174. package/dist/compiler/plugins/processor-base.js.map +1 -0
  175. package/dist/compiler/plugins/registry.d.ts +61 -0
  176. package/dist/compiler/plugins/registry.js +107 -0
  177. package/dist/compiler/plugins/registry.js.map +1 -0
  178. package/dist/compiler/plugins/skill.plugin.d.ts +71 -0
  179. package/dist/compiler/plugins/skill.plugin.js +243 -0
  180. package/dist/compiler/plugins/skill.plugin.js.map +1 -0
  181. package/dist/compiler/plugins/tool.plugin.d.ts +67 -0
  182. package/dist/compiler/plugins/tool.plugin.js +279 -0
  183. package/dist/compiler/plugins/tool.plugin.js.map +1 -0
  184. package/dist/compiler/plugins/webhook.plugin.d.ts +37 -0
  185. package/dist/compiler/plugins/webhook.plugin.js +127 -0
  186. package/dist/compiler/plugins/webhook.plugin.js.map +1 -0
  187. package/dist/compiler/source-writer.d.ts +98 -0
  188. package/dist/compiler/source-writer.js +223 -0
  189. package/dist/compiler/source-writer.js.map +1 -0
  190. package/dist/compiler/types.d.ts +289 -0
  191. package/dist/compiler/types.js +20 -0
  192. package/dist/compiler/types.js.map +1 -0
  193. package/dist/compiler/utils/ast-helpers.d.ts +57 -0
  194. package/dist/compiler/utils/ast-helpers.js +164 -0
  195. package/dist/compiler/utils/ast-helpers.js.map +1 -0
  196. package/dist/compiler/utils/common.d.ts +23 -0
  197. package/dist/compiler/utils/common.js +66 -0
  198. package/dist/compiler/utils/common.js.map +1 -0
  199. package/dist/compiler/utils/file-discovery.d.ts +34 -0
  200. package/dist/compiler/utils/file-discovery.js +68 -0
  201. package/dist/compiler/utils/file-discovery.js.map +1 -0
  202. package/dist/compiler/utils/path-resolver.d.ts +25 -0
  203. package/dist/compiler/utils/path-resolver.js +66 -0
  204. package/dist/compiler/utils/path-resolver.js.map +1 -0
  205. package/dist/compiler/utils/schema-converter.d.ts +26 -0
  206. package/dist/compiler/utils/schema-converter.js +94 -0
  207. package/dist/compiler/utils/schema-converter.js.map +1 -0
  208. package/dist/config/compile.constants.d.ts +2 -22
  209. package/dist/config/compile.constants.js +2 -49
  210. package/dist/config/compile.constants.js.map +1 -1
  211. package/dist/config/constants.d.ts +18 -2
  212. package/dist/config/constants.js +28 -8
  213. package/dist/config/constants.js.map +1 -1
  214. package/dist/config/dev.constants.d.ts +0 -10
  215. package/dist/config/dev.constants.js +0 -10
  216. package/dist/config/dev.constants.js.map +1 -1
  217. package/dist/index.js +7 -0
  218. package/dist/index.js.map +1 -1
  219. package/dist/instances/basket.instance.js.map +1 -0
  220. package/dist/instances/data.entry.instance.js.map +1 -0
  221. package/dist/instances/job.instance.js.map +1 -0
  222. package/dist/instances/order.instance.js.map +1 -0
  223. package/dist/instances/product.instance.js.map +1 -0
  224. package/dist/instances/product.pagination.instance.js.map +1 -0
  225. package/dist/instances/product.search.instance.js.map +1 -0
  226. package/dist/instances/user.instance.js.map +1 -0
  227. package/dist/interfaces/admin.d.ts +0 -38
  228. package/dist/interfaces/backup.d.ts +125 -0
  229. package/dist/interfaces/backup.js +8 -0
  230. package/dist/interfaces/backup.js.map +1 -0
  231. package/dist/interfaces/baskets.d.ts +0 -56
  232. package/dist/interfaces/common.d.ts +1 -0
  233. package/dist/interfaces/deploy.d.ts +0 -15
  234. package/dist/interfaces/index.d.ts +1 -1
  235. package/dist/interfaces/marketplace.d.ts +51 -0
  236. package/dist/interfaces/marketplace.js +1 -1
  237. package/dist/interfaces/marketplace.js.map +1 -1
  238. package/dist/interfaces/message.d.ts +0 -3
  239. package/dist/interfaces/orders.d.ts +0 -24
  240. package/dist/interfaces/postprocessors.d.ts +0 -18
  241. package/dist/interfaces/preprocessors.d.ts +0 -18
  242. package/dist/interfaces/skills.d.ts +61 -0
  243. package/dist/interfaces/user.d.ts +25 -0
  244. package/dist/interfaces/webhooks.d.ts +0 -9
  245. package/dist/primitives/base.handler.d.ts +106 -0
  246. package/dist/primitives/base.handler.js +370 -0
  247. package/dist/primitives/base.handler.js.map +1 -0
  248. package/dist/primitives/index.d.ts +47 -0
  249. package/dist/primitives/index.js +78 -0
  250. package/dist/primitives/index.js.map +1 -0
  251. package/dist/primitives/job.handler.d.ts +52 -0
  252. package/dist/primitives/job.handler.js +118 -0
  253. package/dist/primitives/job.handler.js.map +1 -0
  254. package/dist/primitives/mcp-server.handler.d.ts +54 -0
  255. package/dist/primitives/mcp-server.handler.js +91 -0
  256. package/dist/primitives/mcp-server.handler.js.map +1 -0
  257. package/dist/primitives/postprocessor.handler.d.ts +49 -0
  258. package/dist/primitives/postprocessor.handler.js +81 -0
  259. package/dist/primitives/postprocessor.handler.js.map +1 -0
  260. package/dist/primitives/preprocessor.handler.d.ts +54 -0
  261. package/dist/primitives/preprocessor.handler.js +95 -0
  262. package/dist/primitives/preprocessor.handler.js.map +1 -0
  263. package/dist/primitives/skill.handler.d.ts +44 -0
  264. package/dist/primitives/skill.handler.js +192 -0
  265. package/dist/primitives/skill.handler.js.map +1 -0
  266. package/dist/primitives/types.d.ts +72 -0
  267. package/dist/primitives/types.js +17 -0
  268. package/dist/primitives/types.js.map +1 -0
  269. package/dist/primitives/webhook.handler.d.ts +50 -0
  270. package/dist/primitives/webhook.handler.js +96 -0
  271. package/dist/primitives/webhook.handler.js.map +1 -0
  272. package/dist/services/auth.js +1 -2
  273. package/dist/services/auth.js.map +1 -1
  274. package/dist/services/sandbox.service.d.ts +103 -0
  275. package/dist/services/sandbox.service.js +479 -0
  276. package/dist/services/sandbox.service.js.map +1 -0
  277. package/dist/types/api-contracts.d.ts +1 -1
  278. package/dist/types/index.d.ts +2 -1
  279. package/dist/types/index.js.map +1 -1
  280. package/dist/types/skill.d.ts +8 -2
  281. package/dist/types/skill.js +8 -0
  282. package/dist/types/skill.js.map +1 -1
  283. package/dist/types/yaml.types.d.ts +69 -0
  284. package/dist/types/yaml.types.js +6 -0
  285. package/dist/types/yaml.types.js.map +1 -0
  286. package/dist/utils/artifact-loader.d.ts +108 -0
  287. package/dist/utils/artifact-loader.js +188 -0
  288. package/dist/utils/artifact-loader.js.map +1 -0
  289. package/dist/utils/backup-helpers.d.ts +122 -0
  290. package/dist/utils/backup-helpers.js +274 -0
  291. package/dist/utils/backup-helpers.js.map +1 -0
  292. package/dist/utils/cli.d.ts +8 -0
  293. package/dist/utils/cli.js +19 -2
  294. package/dist/utils/cli.js.map +1 -1
  295. package/dist/utils/command-utils.d.ts +42 -0
  296. package/dist/utils/command-utils.js +83 -0
  297. package/dist/utils/command-utils.js.map +1 -0
  298. package/dist/utils/deploy-helpers.d.ts +0 -29
  299. package/dist/utils/deploy-helpers.js +0 -70
  300. package/dist/utils/deploy-helpers.js.map +1 -1
  301. package/dist/utils/dev-api.d.ts +3 -99
  302. package/dist/utils/dev-api.js +3 -430
  303. package/dist/utils/dev-api.js.map +1 -1
  304. package/dist/utils/dev-server.d.ts +3 -1
  305. package/dist/utils/dev-server.js +69 -145
  306. package/dist/utils/dev-server.js.map +1 -1
  307. package/dist/utils/dev-watcher.d.ts +0 -1
  308. package/dist/utils/dev-watcher.js +23 -8
  309. package/dist/utils/dev-watcher.js.map +1 -1
  310. package/dist/utils/env-loader.utils.d.ts +10 -1
  311. package/dist/utils/env-loader.utils.js +39 -31
  312. package/dist/utils/env-loader.utils.js.map +1 -1
  313. package/dist/utils/files.d.ts +47 -3
  314. package/dist/utils/files.js +98 -40
  315. package/dist/utils/files.js.map +1 -1
  316. package/dist/utils/init-agent.js +1 -2
  317. package/dist/utils/init-agent.js.map +1 -1
  318. package/dist/utils/init-helpers.d.ts +2 -10
  319. package/dist/utils/init-helpers.js +9 -17
  320. package/dist/utils/init-helpers.js.map +1 -1
  321. package/dist/utils/init-prompts.d.ts +0 -8
  322. package/dist/utils/init-prompts.js +0 -22
  323. package/dist/utils/init-prompts.js.map +1 -1
  324. package/dist/utils/prompt-handler.d.ts +3 -0
  325. package/dist/utils/prompt-handler.js +13 -0
  326. package/dist/utils/prompt-handler.js.map +1 -1
  327. package/dist/utils/sandbox-storage.d.ts +6 -5
  328. package/dist/utils/sandbox-storage.js +12 -12
  329. package/dist/utils/sandbox-storage.js.map +1 -1
  330. package/dist/utils/sandbox.d.ts +7 -30
  331. package/dist/utils/sandbox.js +247 -223
  332. package/dist/utils/sandbox.js.map +1 -1
  333. package/dist/utils/semver.d.ts +12 -0
  334. package/dist/utils/semver.js +23 -0
  335. package/dist/utils/semver.js.map +1 -1
  336. package/dist/utils/sync-display.d.ts +9 -0
  337. package/dist/utils/sync-display.js +67 -0
  338. package/dist/utils/sync-display.js.map +1 -0
  339. package/dist/utils/sync-fetch.d.ts +23 -0
  340. package/dist/utils/sync-fetch.js +64 -0
  341. package/dist/utils/sync-fetch.js.map +1 -0
  342. package/dist/utils/sync-helpers.d.ts +4 -59
  343. package/dist/utils/sync-helpers.js +4 -206
  344. package/dist/utils/sync-helpers.js.map +1 -1
  345. package/dist/web/app.css +912 -186
  346. package/dist/web/app.js +46 -46
  347. package/docs/API_INDEX.md +100 -0
  348. package/docs/API_REFERENCE.md +773 -0
  349. package/docs/CLI_REFERENCE.md +924 -0
  350. package/docs/GETTING_STARTED.md +862 -0
  351. package/docs/README.md +270 -0
  352. package/docs/api/AI.md +882 -0
  353. package/docs/api/Baskets.md +511 -0
  354. package/docs/api/CDN.md +524 -0
  355. package/docs/api/Data.md +446 -0
  356. package/docs/api/Jobs.md +524 -0
  357. package/docs/api/LuaAgent.md +454 -0
  358. package/docs/api/LuaJob.md +604 -0
  359. package/docs/api/LuaSkill.md +396 -0
  360. package/docs/api/LuaTool.md +521 -0
  361. package/docs/api/LuaWebhook.md +601 -0
  362. package/docs/api/Orders.md +514 -0
  363. package/docs/api/PostProcessor.md +565 -0
  364. package/docs/api/PreProcessor.md +630 -0
  365. package/docs/api/Products.md +507 -0
  366. package/docs/api/Templates.md +662 -0
  367. package/docs/api/User.md +567 -0
  368. package/docs/archive/DEVELOPMENT_GUIDE_V1.md +1294 -0
  369. package/docs/compiler-v2/ASSESSMENT.md +205 -0
  370. package/docs/compiler-v2/TEST_PLAN.md +306 -0
  371. package/package.json +3 -7
  372. package/template/tsconfig.json +1 -1
  373. package/dist/common/basket.instance.js.map +0 -1
  374. package/dist/common/data.entry.instance.js.map +0 -1
  375. package/dist/common/http.client.js.map +0 -1
  376. package/dist/common/job.instance.js.map +0 -1
  377. package/dist/common/order.instance.js.map +0 -1
  378. package/dist/common/product.instance.js.map +0 -1
  379. package/dist/common/product.pagination.instance.js.map +0 -1
  380. package/dist/common/product.search.instance.js.map +0 -1
  381. package/dist/common/user.instance.js.map +0 -1
  382. package/dist/config/auth.constants.d.ts +0 -11
  383. package/dist/config/auth.constants.js +0 -12
  384. package/dist/config/auth.constants.js.map +0 -1
  385. package/dist/config/init.constants.d.ts +0 -15
  386. package/dist/config/init.constants.js +0 -20
  387. package/dist/config/init.constants.js.map +0 -1
  388. package/dist/interfaces/compile.d.ts +0 -12
  389. package/dist/interfaces/compile.js +0 -5
  390. package/dist/interfaces/compile.js.map +0 -1
  391. package/dist/types/compile.types.d.ts +0 -131
  392. package/dist/types/compile.types.js +0 -6
  393. package/dist/types/compile.types.js.map +0 -1
  394. package/dist/utils/agent-code-utils.d.ts +0 -25
  395. package/dist/utils/agent-code-utils.js +0 -107
  396. package/dist/utils/agent-code-utils.js.map +0 -1
  397. package/dist/utils/bundling.d.ts +0 -89
  398. package/dist/utils/bundling.js +0 -1068
  399. package/dist/utils/bundling.js.map +0 -1
  400. package/dist/utils/compile.d.ts +0 -116
  401. package/dist/utils/compile.js +0 -1062
  402. package/dist/utils/compile.js.map +0 -1
  403. package/dist/utils/deploy-api.d.ts +0 -26
  404. package/dist/utils/deploy-api.js +0 -54
  405. package/dist/utils/deploy-api.js.map +0 -1
  406. package/dist/utils/deployment.d.ts +0 -26
  407. package/dist/utils/deployment.js +0 -218
  408. package/dist/utils/deployment.js.map +0 -1
  409. package/dist/utils/dev-helpers.d.ts +0 -47
  410. package/dist/utils/dev-helpers.js +0 -82
  411. package/dist/utils/dev-helpers.js.map +0 -1
  412. package/dist/utils/job-management.d.ts +0 -27
  413. package/dist/utils/job-management.js +0 -248
  414. package/dist/utils/job-management.js.map +0 -1
  415. package/dist/utils/mcp-server-management.d.ts +0 -26
  416. package/dist/utils/mcp-server-management.js +0 -197
  417. package/dist/utils/mcp-server-management.js.map +0 -1
  418. package/dist/utils/postprocessor-management.d.ts +0 -9
  419. package/dist/utils/postprocessor-management.js +0 -117
  420. package/dist/utils/postprocessor-management.js.map +0 -1
  421. package/dist/utils/pre-bundle-jobs.d.ts +0 -27
  422. package/dist/utils/pre-bundle-jobs.js +0 -189
  423. package/dist/utils/pre-bundle-jobs.js.map +0 -1
  424. package/dist/utils/preprocessor-management.d.ts +0 -9
  425. package/dist/utils/preprocessor-management.js +0 -117
  426. package/dist/utils/preprocessor-management.js.map +0 -1
  427. package/dist/utils/push-api.d.ts +0 -15
  428. package/dist/utils/push-api.js +0 -49
  429. package/dist/utils/push-api.js.map +0 -1
  430. package/dist/utils/push-helpers.d.ts +0 -82
  431. package/dist/utils/push-helpers.js +0 -246
  432. package/dist/utils/push-helpers.js.map +0 -1
  433. package/dist/utils/skill-management.d.ts +0 -39
  434. package/dist/utils/skill-management.js +0 -299
  435. package/dist/utils/skill-management.js.map +0 -1
  436. package/dist/utils/test-helpers.d.ts +0 -33
  437. package/dist/utils/test-helpers.js +0 -84
  438. package/dist/utils/test-helpers.js.map +0 -1
  439. package/dist/utils/test-prompts.d.ts +0 -23
  440. package/dist/utils/test-prompts.js +0 -187
  441. package/dist/utils/test-prompts.js.map +0 -1
  442. package/dist/utils/tool-detection.d.ts +0 -19
  443. package/dist/utils/tool-detection.js +0 -125
  444. package/dist/utils/tool-detection.js.map +0 -1
  445. package/dist/utils/webhook-management.d.ts +0 -27
  446. package/dist/utils/webhook-management.js +0 -241
  447. package/dist/utils/webhook-management.js.map +0 -1
  448. /package/dist/{common → api}/http.client.d.ts +0 -0
  449. /package/dist/{common → api}/http.client.js +0 -0
  450. /package/dist/{common → instances}/basket.instance.d.ts +0 -0
  451. /package/dist/{common → instances}/basket.instance.js +0 -0
  452. /package/dist/{common → instances}/data.entry.instance.d.ts +0 -0
  453. /package/dist/{common → instances}/data.entry.instance.js +0 -0
  454. /package/dist/{common → instances}/job.instance.d.ts +0 -0
  455. /package/dist/{common → instances}/job.instance.js +0 -0
  456. /package/dist/{common → instances}/order.instance.d.ts +0 -0
  457. /package/dist/{common → instances}/order.instance.js +0 -0
  458. /package/dist/{common → instances}/product.instance.d.ts +0 -0
  459. /package/dist/{common → instances}/product.instance.js +0 -0
  460. /package/dist/{common → instances}/product.pagination.instance.d.ts +0 -0
  461. /package/dist/{common → instances}/product.pagination.instance.js +0 -0
  462. /package/dist/{common → instances}/product.search.instance.d.ts +0 -0
  463. /package/dist/{common → instances}/product.search.instance.js +0 -0
  464. /package/dist/{common → instances}/user.instance.d.ts +0 -0
  465. /package/dist/{common → instances}/user.instance.js +0 -0
@@ -0,0 +1,924 @@
1
+ # CLI Command Reference
2
+
3
+ Complete reference for all lua-cli commands.
4
+
5
+ ---
6
+
7
+ ## Table of Contents
8
+
9
+ - [Authentication](#authentication)
10
+ - [Project Setup](#project-setup)
11
+ - [Development](#development)
12
+ - [Deployment](#deployment)
13
+ - [Management](#management)
14
+ - [Marketplace](#marketplace)
15
+ - [Utilities](#utilities)
16
+ - [Global Flags](#global-flags)
17
+
18
+ ---
19
+
20
+ ## Authentication
21
+
22
+ ### `lua auth configure`
23
+
24
+ Set up API authentication.
25
+
26
+ **Usage:**
27
+ ```bash
28
+ lua auth configure
29
+ ```
30
+
31
+ **Description:**
32
+ Prompts for your API key and stores it securely in the system keychain (macOS Keychain, Windows Credential Vault, Linux libsecret).
33
+
34
+ **Example:**
35
+ ```bash
36
+ $ lua auth configure
37
+ ? Enter your Lua API key: **********************
38
+ ✅ API key configured successfully
39
+ ```
40
+
41
+ **Alternative Authentication:**
42
+ - Environment variable: `export LUA_API_KEY=your-api-key`
43
+ - `.env` file: `LUA_API_KEY=your-api-key`
44
+
45
+ ---
46
+
47
+ ## Project Setup
48
+
49
+ ### `lua init`
50
+
51
+ Initialize a new Lua agent project.
52
+
53
+ **Usage:**
54
+ ```bash
55
+ lua init [options]
56
+ ```
57
+
58
+ **Description:**
59
+ Creates project structure, configures agent, and sets up development environment.
60
+
61
+ **Interactive Prompts:**
62
+ - Select or create an agent
63
+ - Configure persona and welcome message
64
+ - Set up project directory structure
65
+
66
+ **Example:**
67
+ ```bash
68
+ $ lua init
69
+ ? Select an agent: (Use arrow keys)
70
+ ❯ Create new agent
71
+ my-assistant (existing)
72
+
73
+ ? Agent name: customer-support-bot
74
+ ? Persona: You are a helpful customer support assistant...
75
+ ? Welcome message: Hello! How can I help you today?
76
+
77
+ ✅ Project initialized successfully
78
+ ```
79
+
80
+ ---
81
+
82
+ ## Development
83
+
84
+ ### `lua compile`
85
+
86
+ Compile TypeScript source code to deployable format.
87
+
88
+ **Usage:**
89
+ ```bash
90
+ lua compile [options]
91
+ ```
92
+
93
+ **Options:**
94
+ - `--debug` - Show detailed compilation output
95
+
96
+ **Description:**
97
+ Compiles TypeScript to JavaScript bundles, validates primitives (tools, skills, webhooks, jobs, processors), and generates manifest.
98
+
99
+ **Output:**
100
+ - `.lua/artifacts/` - Bundled JavaScript files
101
+ - `.lua/manifest.json` - Compilation manifest
102
+
103
+ **Example:**
104
+ ```bash
105
+ $ lua compile
106
+ ⏳ Compiling agent...
107
+ ✅ Compiled 5 tools, 2 skills, 1 webhook
108
+ ✅ Compilation complete
109
+
110
+ $ lua compile --debug
111
+ 🔍 Scanning src/...
112
+ 🔍 Found: src/skills/tools/WeatherTool.ts (TOOL)
113
+ 🔍 Found: src/skills/general.skill.ts (SKILL)
114
+ 📦 Bundling...
115
+ ✅ Compilation complete
116
+ ```
117
+
118
+ ---
119
+
120
+ ### `lua test`
121
+
122
+ Test tools, webhooks, and jobs interactively.
123
+
124
+ **Usage:**
125
+ ```bash
126
+ lua test [options]
127
+ ```
128
+
129
+ **Description:**
130
+ Interactive testing environment for individual primitives. Runs code in local sandbox with full API access.
131
+
132
+ **Interactive Flow:**
133
+ 1. Select primitive type (Tool / Webhook / Job)
134
+ 2. Select specific primitive to test
135
+ 3. Provide test input
136
+ 4. View execution results
137
+
138
+ **Example:**
139
+ ```bash
140
+ $ lua test
141
+ ? Select type: Tool
142
+ ? Select tool: get_weather
143
+ ? Input (JSON): { "city": "London" }
144
+
145
+ ⏳ Executing...
146
+ ✅ Result:
147
+ {
148
+ "temperature": 15,
149
+ "condition": "cloudy",
150
+ "city": "London"
151
+ }
152
+ ```
153
+
154
+ ---
155
+
156
+ ### `lua chat`
157
+
158
+ Interactive chat interface with your agent.
159
+
160
+ **Usage:**
161
+ ```bash
162
+ lua chat [options]
163
+ ```
164
+
165
+ **Options:**
166
+ - `--production` - Chat with production environment (default: sandbox)
167
+
168
+ **Description:**
169
+ Real-time streaming chat interface for testing agent behavior.
170
+
171
+ **Features:**
172
+ - ✅ Animated typing indicator
173
+ - ✅ Character-by-character streaming
174
+ - ✅ Tool execution visibility
175
+ - ✅ Environment selection (sandbox/production)
176
+
177
+ **Example:**
178
+ ```bash
179
+ $ lua chat
180
+ 🤖 Welcome! How can I help you today?
181
+
182
+ You: What's the weather in Paris?
183
+ 🔄 Calling tool: get_weather...
184
+ Agent: The current weather in Paris is 18°C and sunny.
185
+
186
+ You: /exit
187
+ 👋 Goodbye!
188
+ ```
189
+
190
+ ---
191
+
192
+ ### `lua dev`
193
+
194
+ Start development server with live reload.
195
+
196
+ **Usage:**
197
+ ```bash
198
+ lua dev [options]
199
+ ```
200
+
201
+ **Options:**
202
+ - `--port <number>` - Server port (default: 3100)
203
+
204
+ **Description:**
205
+ Starts local development server with file watching and live reload. Includes chat UI and sandbox environment.
206
+
207
+ **Example:**
208
+ ```bash
209
+ $ lua dev
210
+ 🚀 Dev server running on http://localhost:3100
211
+ 📂 Watching for changes...
212
+
213
+ [10:30:15] File changed: src/skills/tools/WeatherTool.ts
214
+ [10:30:15] Recompiling...
215
+ ✅ Compilation complete
216
+ ```
217
+
218
+ ---
219
+
220
+ ## Deployment
221
+
222
+ ### `lua push`
223
+
224
+ Push primitives to the server.
225
+
226
+ **Usage:**
227
+ ```bash
228
+ lua push [type] [options]
229
+ ```
230
+
231
+ **Arguments:**
232
+ - `type` - Primitive type to push: `skill`, `webhook`, `job`, `preprocessor`, `postprocessor`, `mcp`, `all`
233
+
234
+ **Options:**
235
+ - `--name <name>` - Specific primitive name
236
+ - `--force` - Skip confirmation prompts
237
+ - `--auto-deploy` - Automatically deploy after push (only with `all`)
238
+
239
+ **Description:**
240
+ Uploads compiled artifacts to the server, creates new versions, and optionally deploys to production.
241
+
242
+ **Interactive Mode:**
243
+ ```bash
244
+ $ lua push
245
+ ? Select type: Skill
246
+ ? Select skill: general-skill
247
+ ? Confirm push? Yes
248
+
249
+ ⏳ Pushing general-skill...
250
+ ✅ Pushed v1.0.1
251
+ ? Deploy to production? Yes
252
+ ✅ Deployed to production
253
+ ```
254
+
255
+ **Batch Mode (CI/CD):**
256
+ ```bash
257
+ $ lua push all --force --auto-deploy
258
+ ⏳ Pushing all primitives...
259
+ ✅ Pushed 2 skills (v1.0.1)
260
+ ✅ Pushed 1 webhook (v1.0.1)
261
+ ✅ Pushed 1 job (v1.0.1)
262
+ ✅ Deployed to production
263
+ ```
264
+
265
+ **Examples:**
266
+ ```bash
267
+ # Push specific skill interactively
268
+ lua push skill
269
+
270
+ # Push specific skill by name without prompts
271
+ lua push skill --name weather-skill --force
272
+
273
+ # Push all and deploy to production (CI/CD)
274
+ lua push all --force --auto-deploy
275
+ ```
276
+
277
+ ---
278
+
279
+ ### `lua deploy`
280
+
281
+ Deploy a primitive version to production.
282
+
283
+ **Usage:**
284
+ ```bash
285
+ lua deploy [type] [options]
286
+ ```
287
+
288
+ **Arguments:**
289
+ - `type` - Primitive type: `skill`, `webhook`, `job`, `preprocessor`, `postprocessor`, `mcp`
290
+
291
+ **Options:**
292
+ - `--name <name>` - Specific primitive name
293
+ - `--version <version>` - Specific version (default: latest)
294
+
295
+ **Description:**
296
+ Activates a specific version in production environment.
297
+
298
+ **Example:**
299
+ ```bash
300
+ $ lua deploy skill
301
+ ? Select skill: general-skill
302
+ ? Select version: v1.0.1
303
+ ✅ Deployed general-skill v1.0.1 to production
304
+ ```
305
+
306
+ ---
307
+
308
+ ## Management
309
+
310
+ ### `lua production`
311
+
312
+ View production environment status.
313
+
314
+ **Usage:**
315
+ ```bash
316
+ lua production [options]
317
+ ```
318
+
319
+ **Description:**
320
+ Displays current production state for all primitives (skills, webhooks, jobs, processors).
321
+
322
+ **Example:**
323
+ ```bash
324
+ $ lua production
325
+ 📊 Production Status
326
+
327
+ Skills:
328
+ ✅ general-skill v1.0.1
329
+ ✅ weather-skill v1.0.0
330
+
331
+ Webhooks:
332
+ ✅ payment-webhook v1.0.0
333
+
334
+ Jobs:
335
+ ✅ daily-cleanup v1.0.0
336
+ ```
337
+
338
+ ---
339
+
340
+ ### `lua env`
341
+
342
+ Manage environment variables.
343
+
344
+ **Usage:**
345
+ ```bash
346
+ lua env [command]
347
+ ```
348
+
349
+ **Commands:**
350
+ - `list` - List all environment variables
351
+ - `set <key> <value>` - Set environment variable
352
+ - `delete <key>` - Delete environment variable
353
+
354
+ **Description:**
355
+ Manage server-side environment variables (stored encrypted, available in tools/webhooks/jobs).
356
+
357
+ **Example:**
358
+ ```bash
359
+ $ lua env list
360
+ 🔑 Environment Variables:
361
+ OPENAI_API_KEY=sk-...
362
+ STRIPE_SECRET_KEY=sk_live_...
363
+
364
+ $ lua env set WEATHER_API_KEY abc123
365
+ ✅ Set WEATHER_API_KEY
366
+
367
+ $ lua env delete OLD_KEY
368
+ ✅ Deleted OLD_KEY
369
+ ```
370
+
371
+ ---
372
+
373
+ ### `lua persona`
374
+
375
+ Update agent persona.
376
+
377
+ **Usage:**
378
+ ```bash
379
+ lua persona [options]
380
+ ```
381
+
382
+ **Options:**
383
+ - `--set <text>` - Set persona text directly
384
+
385
+ **Description:**
386
+ Updates agent personality/instructions.
387
+
388
+ **Example:**
389
+ ```bash
390
+ $ lua persona
391
+ ? Agent persona: You are a friendly customer support agent specialized in e-commerce...
392
+ ✅ Persona updated
393
+
394
+ $ lua persona --set "You are a technical support specialist..."
395
+ ✅ Persona updated
396
+ ```
397
+
398
+ ---
399
+
400
+ ### `lua logs`
401
+
402
+ View and filter agent logs.
403
+
404
+ **Usage:**
405
+ ```bash
406
+ lua logs [options]
407
+ ```
408
+
409
+ **Options:**
410
+ - `--limit <number>` - Number of logs to fetch (default: 50)
411
+ - `--follow` - Follow logs in real-time
412
+
413
+ **Description:**
414
+ Interactive log viewer with filtering, search, and real-time streaming.
415
+
416
+ **Example:**
417
+ ```bash
418
+ $ lua logs
419
+ 📋 Recent Logs (50)
420
+
421
+ [2026-02-06 10:30:15] INFO Tool execution: get_weather
422
+ [2026-02-06 10:30:16] INFO API call: weather.com
423
+ [2026-02-06 10:30:17] INFO Response sent
424
+
425
+ ? Filter by level: (Use arrow keys)
426
+ All
427
+ ❯ Info
428
+ Warning
429
+ Error
430
+ ```
431
+
432
+ ---
433
+
434
+ ### `lua skills`
435
+
436
+ Manage skills.
437
+
438
+ **Usage:**
439
+ ```bash
440
+ lua skills [command]
441
+ ```
442
+
443
+ **Commands:**
444
+ - `list` - List all skills
445
+ - `versions <name>` - View skill versions
446
+ - `delete <name>` - Delete a skill
447
+
448
+ **Example:**
449
+ ```bash
450
+ $ lua skills list
451
+ 📚 Skills:
452
+ - general-skill (v1.0.1)
453
+ - weather-skill (v1.0.0)
454
+
455
+ $ lua skills versions general-skill
456
+ 📦 Versions for general-skill:
457
+ - v1.0.1 (production)
458
+ - v1.0.0
459
+ - v0.9.0
460
+ ```
461
+
462
+ ---
463
+
464
+ ### `lua webhooks`
465
+
466
+ Manage webhooks.
467
+
468
+ **Usage:**
469
+ ```bash
470
+ lua webhooks [command]
471
+ ```
472
+
473
+ **Commands:**
474
+ - `list` - List all webhooks
475
+ - `url <name>` - Get webhook URL
476
+
477
+ **Example:**
478
+ ```bash
479
+ $ lua webhooks list
480
+ 🪝 Webhooks:
481
+ - payment-webhook (v1.0.0)
482
+ URL: https://api.heylua.ai/webhooks/hook_123
483
+
484
+ $ lua webhooks url payment-webhook
485
+ 🔗 Webhook URL:
486
+ https://api.heylua.ai/webhooks/hook_123
487
+ ```
488
+
489
+ ---
490
+
491
+ ### `lua jobs`
492
+
493
+ Manage scheduled jobs.
494
+
495
+ **Usage:**
496
+ ```bash
497
+ lua jobs [command]
498
+ ```
499
+
500
+ **Commands:**
501
+ - `list` - List all jobs
502
+ - `run <name>` - Manually trigger a job
503
+
504
+ **Example:**
505
+ ```bash
506
+ $ lua jobs list
507
+ ⏰ Scheduled Jobs:
508
+ - daily-cleanup (v1.0.0)
509
+ Schedule: 0 0 * * * (daily at midnight)
510
+ Status: Active
511
+
512
+ $ lua jobs run daily-cleanup
513
+ ✅ Job daily-cleanup executed successfully
514
+ ```
515
+
516
+ ---
517
+
518
+ ### `lua integrations`
519
+
520
+ Connect third-party accounts and services.
521
+
522
+ **Usage:**
523
+ ```bash
524
+ lua integrations [command]
525
+ ```
526
+
527
+ **Commands:**
528
+ - `list` - List available integrations
529
+ - `connect <name>` - Connect an integration
530
+ - `disconnect <name>` - Disconnect an integration
531
+
532
+ **Description:**
533
+ Authenticate and connect third-party services (Linear, Discord, Google Calendar, etc.). Automatically creates MCP servers for connected integrations.
534
+
535
+ **Supported Integrations:**
536
+ - Linear - Project management
537
+ - Discord - Bot integration
538
+ - Google Calendar - Calendar access
539
+ - Slack - Workspace integration
540
+ - GitHub - Repository access
541
+ - Notion - Workspace data
542
+ - And more...
543
+
544
+ **Example:**
545
+ ```bash
546
+ $ lua integrations list
547
+ 🔌 Available Integrations:
548
+ - Linear
549
+ - Discord
550
+ - Google Calendar
551
+ - Slack
552
+
553
+ $ lua integrations connect linear
554
+ 🔗 Opening browser for authentication...
555
+ ✅ Linear connected
556
+ ✅ MCP server created: linear-integration
557
+ ```
558
+
559
+ ---
560
+
561
+ ### `lua channels`
562
+
563
+ Manage chat channels (WhatsApp, Web, etc.).
564
+
565
+ **Usage:**
566
+ ```bash
567
+ lua channels [command]
568
+ ```
569
+
570
+ **Commands:**
571
+ - `list` - List all channels
572
+ - `configure <channel>` - Configure channel settings
573
+
574
+ **Example:**
575
+ ```bash
576
+ $ lua channels list
577
+ 💬 Active Channels:
578
+ - WhatsApp (configured)
579
+ - Web Chat (configured)
580
+ - API (configured)
581
+ ```
582
+
583
+ ---
584
+
585
+ ## Marketplace
586
+
587
+ ### `lua marketplace`
588
+
589
+ Access the skills marketplace.
590
+
591
+ **Usage:**
592
+ ```bash
593
+ lua marketplace [options]
594
+ ```
595
+
596
+ **Description:**
597
+ Interactive marketplace for discovering and installing community skills. Also allows publishing your own skills.
598
+
599
+ **Features:**
600
+ - 🔍 Browse verified skills
601
+ - 📥 Install skills to your agent
602
+ - 📤 Publish your own skills
603
+ - ⭐ View ratings and reviews
604
+
605
+ **Example:**
606
+ ```bash
607
+ $ lua marketplace
608
+ ? What would you like to do?
609
+ ❯ Browse Skills (Installer)
610
+ Publish Skill (Creator)
611
+
612
+ ? Select category:
613
+ - E-commerce
614
+ - Productivity
615
+ - Data Analysis
616
+ - Communication
617
+
618
+ ? Install "Advanced Calculator"? Yes
619
+ ✅ Skill installed successfully
620
+ ```
621
+
622
+ ---
623
+
624
+ ## Utilities
625
+
626
+ ### `lua admin`
627
+
628
+ Open the admin dashboard.
629
+
630
+ **Usage:**
631
+ ```bash
632
+ lua admin
633
+ ```
634
+
635
+ **Description:**
636
+ Opens https://admin.heylua.ai in your default browser.
637
+
638
+ ---
639
+
640
+ ### `lua docs`
641
+
642
+ Open documentation.
643
+
644
+ **Usage:**
645
+ ```bash
646
+ lua docs
647
+ ```
648
+
649
+ **Description:**
650
+ Opens https://docs.heylua.ai in your default browser.
651
+
652
+ ---
653
+
654
+ ### `lua --version`
655
+
656
+ Show CLI version.
657
+
658
+ **Usage:**
659
+ ```bash
660
+ lua --version
661
+ ```
662
+
663
+ **Example:**
664
+ ```bash
665
+ $ lua --version
666
+ lua-cli v3.5.0-alpha.3
667
+ ```
668
+
669
+ ---
670
+
671
+ ### `lua --help`
672
+
673
+ Show help information.
674
+
675
+ **Usage:**
676
+ ```bash
677
+ lua --help
678
+ lua <command> --help
679
+ ```
680
+
681
+ **Example:**
682
+ ```bash
683
+ $ lua --help
684
+ Usage: lua [command] [options]
685
+
686
+ Commands:
687
+ auth Authentication commands
688
+ init Initialize new project
689
+ compile Compile source code
690
+ ...
691
+
692
+ $ lua push --help
693
+ Usage: lua push [type] [options]
694
+
695
+ Arguments:
696
+ type Primitive type to push
697
+ ...
698
+ ```
699
+
700
+ ---
701
+
702
+ ## Global Flags
703
+
704
+ These flags can be used with any command:
705
+
706
+ ### `--ci`
707
+
708
+ Enable CI/CD mode (fail loudly on missing required flags).
709
+
710
+ **Usage:**
711
+ ```bash
712
+ lua <command> --ci
713
+ ```
714
+
715
+ **Description:**
716
+ In CI/CD environments (non-TTY), interactive prompts fail silently. The `--ci` flag makes the CLI fail loudly with clear error messages when required flags are missing.
717
+
718
+ **Example:**
719
+ ```bash
720
+ # Without --ci flag (silent failure in CI)
721
+ $ lua push skill
722
+ # Command cancels silently
723
+
724
+ # With --ci flag (loud failure with clear message)
725
+ $ lua push skill --ci
726
+ ❌ Error: Interactive prompt required but --ci flag is set.
727
+ Provide all required flags or arguments.
728
+ Missing: --name
729
+
730
+ # Correct usage in CI
731
+ $ lua push skill --ci --name weather-skill --force
732
+ ✅ Pushed weather-skill v1.0.1
733
+ ```
734
+
735
+ **Best Practice:**
736
+ Always use `--ci` in CI/CD pipelines:
737
+ ```yaml
738
+ # .github/workflows/deploy.yml
739
+ - name: Deploy
740
+ run: lua push all --ci --force --auto-deploy
741
+ ```
742
+
743
+ ---
744
+
745
+ ## Environment Variables
746
+
747
+ ### `LUA_API_KEY`
748
+
749
+ API authentication key.
750
+
751
+ **Priority:**
752
+ 1. System keychain (set via `lua auth configure`)
753
+ 2. `LUA_API_KEY` environment variable
754
+ 3. `LUA_API_KEY` in `.env` file
755
+
756
+ **Example:**
757
+ ```bash
758
+ export LUA_API_KEY=your-api-key
759
+ lua push all --force
760
+ ```
761
+
762
+ ---
763
+
764
+ ## Exit Codes
765
+
766
+ - `0` - Success
767
+ - `1` - Error (general failure)
768
+ - `2` - Authentication error
769
+ - `130` - User cancelled (Ctrl+C)
770
+
771
+ ---
772
+
773
+ ## Tips & Best Practices
774
+
775
+ ### Development Workflow
776
+ ```bash
777
+ # 1. Make changes
778
+ vim src/skills/tools/MyTool.ts
779
+
780
+ # 2. Test locally
781
+ lua test
782
+
783
+ # 3. Test with chat
784
+ lua chat
785
+
786
+ # 4. Compile
787
+ lua compile
788
+
789
+ # 5. Push to server
790
+ lua push skill --name my-skill
791
+
792
+ # 6. Deploy to production
793
+ lua deploy skill --name my-skill
794
+ ```
795
+
796
+ ### CI/CD Workflow
797
+ ```bash
798
+ # Single command deployment
799
+ lua push all --ci --force --auto-deploy
800
+ ```
801
+
802
+ ### Testing Before Deploy
803
+ ```bash
804
+ # Always test in sandbox first
805
+ lua chat # Sandbox mode
806
+
807
+ # Then deploy to production
808
+ lua push all --force --auto-deploy
809
+ ```
810
+
811
+ ### Version Management
812
+ ```bash
813
+ # View versions
814
+ lua skills versions my-skill
815
+
816
+ # Deploy specific version
817
+ lua deploy skill --name my-skill --version 1.0.0
818
+
819
+ # Rollback
820
+ lua deploy skill --name my-skill --version 0.9.0
821
+ ```
822
+
823
+ ---
824
+
825
+ ## Common Patterns
826
+
827
+ ### Create and Deploy New Skill
828
+ ```bash
829
+ # 1. Create tool file
830
+ # src/skills/tools/MyTool.ts
831
+
832
+ # 2. Add to skill
833
+ # src/skills/my.skill.ts
834
+
835
+ # 3. Test
836
+ lua test
837
+
838
+ # 4. Deploy
839
+ lua compile
840
+ lua push skill --name my-skill --force
841
+ lua deploy skill --name my-skill
842
+ ```
843
+
844
+ ### Update Agent Persona
845
+ ```bash
846
+ lua persona --set "You are a helpful assistant specializing in..."
847
+ ```
848
+
849
+ ### Monitor Production
850
+ ```bash
851
+ # View status
852
+ lua production
853
+
854
+ # Watch logs
855
+ lua logs --follow
856
+
857
+ # Check specific skill versions
858
+ lua skills versions my-skill
859
+ ```
860
+
861
+ ### Environment Variables
862
+ ```bash
863
+ # Set environment variables
864
+ lua env set OPENAI_API_KEY sk-...
865
+ lua env set STRIPE_SECRET_KEY sk_live_...
866
+
867
+ # List all
868
+ lua env list
869
+
870
+ # Delete
871
+ lua env delete OLD_KEY
872
+ ```
873
+
874
+ ---
875
+
876
+ ## Troubleshooting
877
+
878
+ ### "Authentication failed"
879
+ ```bash
880
+ # Reconfigure API key
881
+ lua auth configure
882
+
883
+ # Or use environment variable
884
+ export LUA_API_KEY=your-api-key
885
+ ```
886
+
887
+ ### "Compilation failed"
888
+ ```bash
889
+ # Check for errors
890
+ lua compile --debug
891
+
892
+ # Common issues:
893
+ # - TypeScript syntax errors
894
+ # - Missing imports
895
+ # - Invalid Zod schemas
896
+ ```
897
+
898
+ ### "Command hangs in CI"
899
+ ```bash
900
+ # Use --ci flag to fail loudly
901
+ lua push all --ci --force --auto-deploy
902
+ ```
903
+
904
+ ### "Version conflict"
905
+ ```bash
906
+ # View current versions
907
+ lua production
908
+
909
+ # Deploy specific version
910
+ lua deploy skill --name my-skill --version 1.0.0
911
+ ```
912
+
913
+ ---
914
+
915
+ ## See Also
916
+
917
+ - [Getting Started Guide](./GETTING_STARTED.md) - Step-by-step tutorial
918
+ - [API Reference](./API_REFERENCE.md) - Platform APIs
919
+ - [Main README](../README.md) - Project overview
920
+
921
+ ---
922
+
923
+ **Version:** 3.5.0-alpha.3
924
+ **Last Updated:** February 2026