lua-cli 3.12.2 → 3.14.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/README.md +14 -13
- package/dist/api/agent.api.service.d.ts +20 -20
- package/dist/api/agent.api.service.d.ts.map +1 -1
- package/dist/api/agent.api.service.js +1 -1
- package/dist/api/agent.api.service.js.map +1 -1
- package/dist/api/agents.api.service.d.ts +3 -3
- package/dist/api/agents.api.service.d.ts.map +1 -1
- package/dist/api/agents.api.service.js +11 -9
- package/dist/api/agents.api.service.js.map +1 -1
- package/dist/api/ai.api.service.d.ts +4 -4
- package/dist/api/ai.api.service.d.ts.map +1 -1
- package/dist/api/ai.api.service.js +10 -8
- package/dist/api/ai.api.service.js.map +1 -1
- package/dist/api/auth.api.service.d.ts +3 -3
- package/dist/api/auth.api.service.d.ts.map +1 -1
- package/dist/api/auth.api.service.js +1 -1
- package/dist/api/auth.api.service.js.map +1 -1
- package/dist/api/backup.api.service.d.ts.map +1 -1
- package/dist/api/backup.api.service.js +21 -7
- package/dist/api/backup.api.service.js.map +1 -1
- package/dist/api/basket.api.service.d.ts +5 -5
- package/dist/api/basket.api.service.d.ts.map +1 -1
- package/dist/api/basket.api.service.js +4 -4
- package/dist/api/basket.api.service.js.map +1 -1
- package/dist/api/cdn.api.service.d.ts +1 -1
- package/dist/api/cdn.api.service.js +3 -3
- package/dist/api/cdn.api.service.js.map +1 -1
- package/dist/api/chat.api.service.d.ts +4 -4
- package/dist/api/chat.api.service.js +3 -3
- package/dist/api/chat.api.service.js.map +1 -1
- package/dist/api/credentials.js +3 -3
- package/dist/api/custom.data.api.service.d.ts +4 -4
- package/dist/api/custom.data.api.service.d.ts.map +1 -1
- package/dist/api/custom.data.api.service.js +2 -2
- package/dist/api/custom.data.api.service.js.map +1 -1
- package/dist/api/developer.api.service.d.ts +3 -3
- package/dist/api/developer.api.service.d.ts.map +1 -1
- package/dist/api/developer.api.service.js +7 -3
- package/dist/api/developer.api.service.js.map +1 -1
- package/dist/api/device-trigger.api.service.d.ts +3 -3
- package/dist/api/device-trigger.api.service.d.ts.map +1 -1
- package/dist/api/device-trigger.api.service.js +1 -1
- package/dist/api/device-trigger.api.service.js.map +1 -1
- package/dist/api/device.api.service.d.ts +3 -3
- package/dist/api/device.api.service.d.ts.map +1 -1
- package/dist/api/device.api.service.js +1 -1
- package/dist/api/device.api.service.js.map +1 -1
- package/dist/api/http.client.d.ts +1 -1
- package/dist/api/http.client.d.ts.map +1 -1
- package/dist/api/http.client.js +6 -6
- package/dist/api/http.client.js.map +1 -1
- package/dist/api/job.api.service.d.ts +13 -14
- package/dist/api/job.api.service.d.ts.map +1 -1
- package/dist/api/job.api.service.js +12 -20
- package/dist/api/job.api.service.js.map +1 -1
- package/dist/api/lazy-instances.d.ts +12 -12
- package/dist/api/lazy-instances.js +14 -14
- package/dist/api/logs.api.service.d.ts +9 -6
- package/dist/api/logs.api.service.d.ts.map +1 -1
- package/dist/api/logs.api.service.js +12 -11
- package/dist/api/logs.api.service.js.map +1 -1
- package/dist/api/marketplace.api.service.d.ts +1 -1
- package/dist/api/marketplace.api.service.d.ts.map +1 -1
- package/dist/api/marketplace.api.service.js +18 -18
- package/dist/api/marketplace.api.service.js.map +1 -1
- package/dist/api/order.api.service.d.ts +4 -4
- package/dist/api/order.api.service.d.ts.map +1 -1
- package/dist/api/order.api.service.js +2 -2
- package/dist/api/order.api.service.js.map +1 -1
- package/dist/api/persona.api.service.d.ts +3 -3
- package/dist/api/persona.api.service.d.ts.map +1 -1
- package/dist/api/persona.api.service.js +2 -2
- package/dist/api/persona.api.service.js.map +1 -1
- package/dist/api/postprocessor.api.service.d.ts +8 -9
- package/dist/api/postprocessor.api.service.d.ts.map +1 -1
- package/dist/api/postprocessor.api.service.js +1 -2
- package/dist/api/postprocessor.api.service.js.map +1 -1
- package/dist/api/preprocessor.api.service.d.ts +8 -9
- package/dist/api/preprocessor.api.service.d.ts.map +1 -1
- package/dist/api/preprocessor.api.service.js +1 -2
- package/dist/api/preprocessor.api.service.js.map +1 -1
- package/dist/api/products.api.service.d.ts +9 -9
- package/dist/api/products.api.service.d.ts.map +1 -1
- package/dist/api/products.api.service.js +10 -10
- package/dist/api/products.api.service.js.map +1 -1
- package/dist/api/resource.api.service.d.ts +2 -2
- package/dist/api/resource.api.service.js +1 -1
- package/dist/api/skills.api.service.d.ts +4 -4
- package/dist/api/skills.api.service.d.ts.map +1 -1
- package/dist/api/skills.api.service.js +1 -1
- package/dist/api/skills.api.service.js.map +1 -1
- package/dist/api/tool.api.service.d.ts +2 -2
- package/dist/api/tool.api.service.js +1 -1
- package/dist/api/unifiedto.api.service.d.ts +3 -3
- package/dist/api/unifiedto.api.service.d.ts.map +1 -1
- package/dist/api/unifiedto.api.service.js +28 -10
- package/dist/api/unifiedto.api.service.js.map +1 -1
- package/dist/api/user.data.api.service.d.ts +6 -6
- package/dist/api/user.data.api.service.d.ts.map +1 -1
- package/dist/api/user.data.api.service.js +5 -5
- package/dist/api/user.data.api.service.js.map +1 -1
- package/dist/api/webhook.api.service.d.ts +3 -3
- package/dist/api/webhook.api.service.d.ts.map +1 -1
- package/dist/api/webhook.api.service.js +1 -1
- package/dist/api/webhook.api.service.js.map +1 -1
- package/dist/api/whatsapp-templates.api.service.d.ts +3 -3
- package/dist/api/whatsapp-templates.api.service.js +1 -1
- package/dist/api-exports.d.ts +25 -25
- package/dist/api-exports.d.ts.map +1 -1
- package/dist/api-exports.js +26 -26
- package/dist/api-exports.js.map +1 -1
- package/dist/cli/command-definitions.d.ts +1 -1
- package/dist/cli/command-definitions.d.ts.map +1 -1
- package/dist/cli/command-definitions.js +209 -196
- package/dist/cli/command-definitions.js.map +1 -1
- package/dist/commands/agents.js +2 -2
- package/dist/commands/apiKey.js +12 -12
- package/dist/commands/channels.d.ts.map +1 -1
- package/dist/commands/channels.js +165 -174
- package/dist/commands/channels.js.map +1 -1
- package/dist/commands/chat-log-probe.d.ts +59 -0
- package/dist/commands/chat-log-probe.d.ts.map +1 -0
- package/dist/commands/chat-log-probe.js +87 -0
- package/dist/commands/chat-log-probe.js.map +1 -0
- package/dist/commands/chat.d.ts.map +1 -1
- package/dist/commands/chat.js +143 -40
- package/dist/commands/chat.js.map +1 -1
- package/dist/commands/chatClear.d.ts.map +1 -1
- package/dist/commands/chatClear.js +10 -6
- package/dist/commands/chatClear.js.map +1 -1
- package/dist/commands/compile.d.ts +7 -0
- package/dist/commands/compile.d.ts.map +1 -1
- package/dist/commands/compile.js +49 -12
- package/dist/commands/compile.js.map +1 -1
- package/dist/commands/completion.d.ts.map +1 -1
- package/dist/commands/completion.js +8 -9
- package/dist/commands/completion.js.map +1 -1
- package/dist/commands/configure.js +5 -5
- package/dist/commands/deploy.d.ts.map +1 -1
- package/dist/commands/deploy.js +132 -35
- package/dist/commands/deploy.js.map +1 -1
- package/dist/commands/destroy.d.ts.map +1 -1
- package/dist/commands/destroy.js +27 -17
- package/dist/commands/destroy.js.map +1 -1
- package/dist/commands/devices.d.ts.map +1 -1
- package/dist/commands/devices.js +4 -5
- package/dist/commands/devices.js.map +1 -1
- package/dist/commands/env.d.ts.map +1 -1
- package/dist/commands/env.js +101 -80
- package/dist/commands/env.js.map +1 -1
- package/dist/commands/features.d.ts.map +1 -1
- package/dist/commands/features.js +71 -82
- package/dist/commands/features.js.map +1 -1
- package/dist/commands/governance.d.ts.map +1 -1
- package/dist/commands/governance.js +17 -15
- package/dist/commands/governance.js.map +1 -1
- package/dist/commands/index.d.ts +37 -36
- package/dist/commands/index.d.ts.map +1 -1
- package/dist/commands/index.js +37 -36
- package/dist/commands/index.js.map +1 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +80 -70
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/integrations.d.ts.map +1 -1
- package/dist/commands/integrations.js +373 -341
- package/dist/commands/integrations.js.map +1 -1
- package/dist/commands/jobs.d.ts.map +1 -1
- package/dist/commands/jobs.js +110 -78
- package/dist/commands/jobs.js.map +1 -1
- package/dist/commands/log-tip.d.ts +79 -0
- package/dist/commands/log-tip.d.ts.map +1 -0
- package/dist/commands/log-tip.js +83 -0
- package/dist/commands/log-tip.js.map +1 -0
- package/dist/commands/logs.d.ts.map +1 -1
- package/dist/commands/logs.js +166 -198
- package/dist/commands/logs.js.map +1 -1
- package/dist/commands/marketplace.d.ts.map +1 -1
- package/dist/commands/marketplace.js +381 -427
- package/dist/commands/marketplace.js.map +1 -1
- package/dist/commands/mcp.d.ts.map +1 -1
- package/dist/commands/mcp.js +54 -56
- package/dist/commands/mcp.js.map +1 -1
- package/dist/commands/models.d.ts.map +1 -1
- package/dist/commands/models.js +4 -3
- package/dist/commands/models.js.map +1 -1
- package/dist/commands/persona.d.ts.map +1 -1
- package/dist/commands/persona.js +100 -126
- package/dist/commands/persona.js.map +1 -1
- package/dist/commands/postprocessors.d.ts.map +1 -1
- package/dist/commands/postprocessors.js +87 -61
- package/dist/commands/postprocessors.js.map +1 -1
- package/dist/commands/preprocessors.d.ts.map +1 -1
- package/dist/commands/preprocessors.js +87 -61
- package/dist/commands/preprocessors.js.map +1 -1
- package/dist/commands/production.d.ts.map +1 -1
- package/dist/commands/production.js +101 -113
- package/dist/commands/production.js.map +1 -1
- package/dist/commands/push-helpers.d.ts +42 -0
- package/dist/commands/push-helpers.d.ts.map +1 -0
- package/dist/commands/push-helpers.js +48 -0
- package/dist/commands/push-helpers.js.map +1 -0
- package/dist/commands/push.d.ts +2 -0
- package/dist/commands/push.d.ts.map +1 -1
- package/dist/commands/push.js +388 -124
- package/dist/commands/push.js.map +1 -1
- package/dist/commands/pushBackup.d.ts.map +1 -1
- package/dist/commands/pushBackup.js +8 -4
- package/dist/commands/pushBackup.js.map +1 -1
- package/dist/commands/resources.d.ts.map +1 -1
- package/dist/commands/resources.js +47 -60
- package/dist/commands/resources.js.map +1 -1
- package/dist/commands/skills.d.ts.map +1 -1
- package/dist/commands/skills.js +117 -89
- package/dist/commands/skills.js.map +1 -1
- package/dist/commands/status.d.ts +14 -0
- package/dist/commands/status.d.ts.map +1 -0
- package/dist/commands/status.js +731 -0
- package/dist/commands/status.js.map +1 -0
- package/dist/commands/sync.d.ts.map +1 -1
- package/dist/commands/sync.js +70 -30
- package/dist/commands/sync.js.map +1 -1
- package/dist/commands/telemetry.d.ts.map +1 -1
- package/dist/commands/telemetry.js +4 -0
- package/dist/commands/telemetry.js.map +1 -1
- package/dist/commands/test-output.helpers.d.ts +24 -0
- package/dist/commands/test-output.helpers.d.ts.map +1 -0
- package/dist/commands/test-output.helpers.js +62 -0
- package/dist/commands/test-output.helpers.js.map +1 -0
- package/dist/commands/test.d.ts.map +1 -1
- package/dist/commands/test.js +291 -121
- package/dist/commands/test.js.map +1 -1
- package/dist/commands/update.d.ts.map +1 -1
- package/dist/commands/update.js +15 -3
- package/dist/commands/update.js.map +1 -1
- package/dist/commands/webhooks.d.ts.map +1 -1
- package/dist/commands/webhooks.js +94 -87
- package/dist/commands/webhooks.js.map +1 -1
- package/dist/compiler/agent-traverser.d.ts +50 -14
- package/dist/compiler/agent-traverser.d.ts.map +1 -1
- package/dist/compiler/agent-traverser.js +189 -86
- package/dist/compiler/agent-traverser.js.map +1 -1
- package/dist/compiler/bundler.d.ts.map +1 -1
- package/dist/compiler/bundler.js +5 -5
- package/dist/compiler/bundler.js.map +1 -1
- package/dist/compiler/compiler.d.ts +32 -0
- package/dist/compiler/compiler.d.ts.map +1 -1
- package/dist/compiler/compiler.js +154 -28
- package/dist/compiler/compiler.js.map +1 -1
- package/dist/compiler/index.d.ts +3 -3
- package/dist/compiler/index.d.ts.map +1 -1
- package/dist/compiler/index.js +3 -3
- package/dist/compiler/index.js.map +1 -1
- package/dist/compiler/plugins/agent.plugin.d.ts.map +1 -1
- package/dist/compiler/plugins/agent.plugin.js +2 -4
- package/dist/compiler/plugins/agent.plugin.js.map +1 -1
- package/dist/compiler/plugins/base.d.ts +21 -0
- package/dist/compiler/plugins/base.d.ts.map +1 -1
- package/dist/compiler/plugins/base.js +13 -3
- package/dist/compiler/plugins/base.js.map +1 -1
- package/dist/compiler/plugins/device-trigger.plugin.d.ts.map +1 -1
- package/dist/compiler/plugins/device-trigger.plugin.js +8 -4
- package/dist/compiler/plugins/device-trigger.plugin.js.map +1 -1
- package/dist/compiler/plugins/device.plugin.d.ts.map +1 -1
- package/dist/compiler/plugins/device.plugin.js +4 -4
- package/dist/compiler/plugins/device.plugin.js.map +1 -1
- package/dist/compiler/plugins/job.plugin.d.ts.map +1 -1
- package/dist/compiler/plugins/job.plugin.js +15 -11
- package/dist/compiler/plugins/job.plugin.js.map +1 -1
- package/dist/compiler/plugins/mcp-server.plugin.d.ts.map +1 -1
- package/dist/compiler/plugins/mcp-server.plugin.js +10 -4
- package/dist/compiler/plugins/mcp-server.plugin.js.map +1 -1
- package/dist/compiler/plugins/registry.js +2 -2
- package/dist/compiler/plugins/registry.js.map +1 -1
- package/dist/compiler/plugins/skill.plugin.d.ts +35 -9
- package/dist/compiler/plugins/skill.plugin.d.ts.map +1 -1
- package/dist/compiler/plugins/skill.plugin.js +129 -87
- package/dist/compiler/plugins/skill.plugin.js.map +1 -1
- package/dist/compiler/plugins/tool.plugin.d.ts.map +1 -1
- package/dist/compiler/plugins/tool.plugin.js +13 -9
- package/dist/compiler/plugins/tool.plugin.js.map +1 -1
- package/dist/compiler/plugins/webhook.plugin.d.ts.map +1 -1
- package/dist/compiler/plugins/webhook.plugin.js +7 -5
- package/dist/compiler/plugins/webhook.plugin.js.map +1 -1
- package/dist/compiler/source-writer.d.ts.map +1 -1
- package/dist/compiler/source-writer.js +2 -4
- package/dist/compiler/source-writer.js.map +1 -1
- package/dist/compiler/types.d.ts +33 -0
- package/dist/compiler/types.d.ts.map +1 -1
- package/dist/compiler/types.js.map +1 -1
- package/dist/compiler/utils/ast-helpers.d.ts +1 -16
- package/dist/compiler/utils/ast-helpers.d.ts.map +1 -1
- package/dist/compiler/utils/ast-helpers.js +14 -38
- package/dist/compiler/utils/ast-helpers.js.map +1 -1
- package/dist/compiler/utils/common.d.ts +14 -0
- package/dist/compiler/utils/common.d.ts.map +1 -1
- package/dist/compiler/utils/common.js +39 -11
- package/dist/compiler/utils/common.js.map +1 -1
- package/dist/compiler/utils/file-discovery.d.ts.map +1 -1
- package/dist/compiler/utils/file-discovery.js +2 -10
- package/dist/compiler/utils/file-discovery.js.map +1 -1
- package/dist/compiler/utils/path-resolver.d.ts +67 -10
- package/dist/compiler/utils/path-resolver.d.ts.map +1 -1
- package/dist/compiler/utils/path-resolver.js +120 -24
- package/dist/compiler/utils/path-resolver.js.map +1 -1
- package/dist/compiler/utils/reference-resolver.d.ts +196 -0
- package/dist/compiler/utils/reference-resolver.d.ts.map +1 -0
- package/dist/compiler/utils/reference-resolver.js +1026 -0
- package/dist/compiler/utils/reference-resolver.js.map +1 -0
- package/dist/compiler/utils/schema-converter.d.ts +25 -0
- package/dist/compiler/utils/schema-converter.d.ts.map +1 -1
- package/dist/compiler/utils/schema-converter.js +80 -4
- package/dist/compiler/utils/schema-converter.js.map +1 -1
- package/dist/compiler/utils/workspace.d.ts +35 -0
- package/dist/compiler/utils/workspace.d.ts.map +1 -0
- package/dist/compiler/utils/workspace.js +121 -0
- package/dist/compiler/utils/workspace.js.map +1 -0
- package/dist/compiler/utils/zod-runtime.mjs +5334 -0
- package/dist/config/compile.constants.d.ts.map +1 -1
- package/dist/config/compile.constants.js +3 -1
- package/dist/config/compile.constants.js.map +1 -1
- package/dist/config/constants.d.ts.map +1 -1
- package/dist/config/constants.js +1 -5
- package/dist/config/constants.js.map +1 -1
- package/dist/errors/auth.error.d.ts.map +1 -1
- package/dist/errors/auth.error.js +3 -5
- package/dist/errors/auth.error.js.map +1 -1
- package/dist/errors/index.d.ts +1 -1
- package/dist/errors/index.js +1 -1
- package/dist/index.js +9 -8
- package/dist/index.js.map +1 -1
- package/dist/instances/basket.instance.d.ts +3 -3
- package/dist/instances/basket.instance.d.ts.map +1 -1
- package/dist/instances/basket.instance.js +26 -8
- package/dist/instances/basket.instance.js.map +1 -1
- package/dist/instances/data.entry.instance.d.ts +2 -2
- package/dist/instances/data.entry.instance.d.ts.map +1 -1
- package/dist/instances/data.entry.instance.js +5 -5
- package/dist/instances/data.entry.instance.js.map +1 -1
- package/dist/instances/order.instance.d.ts +2 -2
- package/dist/instances/order.instance.d.ts.map +1 -1
- package/dist/instances/order.instance.js +20 -9
- package/dist/instances/order.instance.js.map +1 -1
- package/dist/instances/product.instance.d.ts +1 -1
- package/dist/instances/product.instance.d.ts.map +1 -1
- package/dist/instances/product.instance.js +3 -3
- package/dist/instances/product.instance.js.map +1 -1
- package/dist/instances/product.pagination.instance.d.ts +2 -2
- package/dist/instances/product.pagination.instance.d.ts.map +1 -1
- package/dist/instances/product.pagination.instance.js +6 -7
- package/dist/instances/product.pagination.instance.js.map +1 -1
- package/dist/instances/product.search.instance.d.ts +3 -3
- package/dist/instances/product.search.instance.d.ts.map +1 -1
- package/dist/instances/product.search.instance.js +3 -4
- package/dist/instances/product.search.instance.js.map +1 -1
- package/dist/instances/user.instance.d.ts +3 -3
- package/dist/instances/user.instance.d.ts.map +1 -1
- package/dist/instances/user.instance.js +19 -36
- package/dist/instances/user.instance.js.map +1 -1
- package/dist/interfaces/agent.d.ts +8 -8
- package/dist/interfaces/agent.d.ts.map +1 -1
- package/dist/interfaces/backup.d.ts +19 -1
- package/dist/interfaces/backup.d.ts.map +1 -1
- package/dist/interfaces/device-triggers.d.ts +0 -2
- package/dist/interfaces/device-triggers.d.ts.map +1 -1
- package/dist/interfaces/devices.d.ts +0 -1
- package/dist/interfaces/devices.d.ts.map +1 -1
- package/dist/interfaces/index.d.ts +8 -8
- package/dist/interfaces/index.d.ts.map +1 -1
- package/dist/interfaces/jobs.d.ts +2 -3
- package/dist/interfaces/jobs.d.ts.map +1 -1
- package/dist/interfaces/logs.d.ts +7 -4
- package/dist/interfaces/logs.d.ts.map +1 -1
- package/dist/interfaces/message.d.ts +3 -3
- package/dist/interfaces/message.d.ts.map +1 -1
- package/dist/interfaces/orders.d.ts +1 -1
- package/dist/interfaces/webhooks.d.ts +2 -2
- package/dist/interfaces/webhooks.d.ts.map +1 -1
- package/dist/primitives/agent.handler.d.ts.map +1 -1
- package/dist/primitives/agent.handler.js +1 -1
- package/dist/primitives/agent.handler.js.map +1 -1
- package/dist/primitives/base.handler.d.ts +12 -2
- package/dist/primitives/base.handler.d.ts.map +1 -1
- package/dist/primitives/base.handler.js +104 -73
- package/dist/primitives/base.handler.js.map +1 -1
- package/dist/primitives/device-trigger.handler.d.ts +1 -1
- package/dist/primitives/device-trigger.handler.d.ts.map +1 -1
- package/dist/primitives/device-trigger.handler.js +2 -3
- package/dist/primitives/device-trigger.handler.js.map +1 -1
- package/dist/primitives/device.handler.d.ts +1 -1
- package/dist/primitives/device.handler.d.ts.map +1 -1
- package/dist/primitives/device.handler.js +2 -3
- package/dist/primitives/device.handler.js.map +1 -1
- package/dist/primitives/index.d.ts +1 -1
- package/dist/primitives/index.d.ts.map +1 -1
- package/dist/primitives/index.js +2 -3
- package/dist/primitives/index.js.map +1 -1
- package/dist/primitives/job.handler.d.ts +6 -1
- package/dist/primitives/job.handler.d.ts.map +1 -1
- package/dist/primitives/job.handler.js +9 -3
- package/dist/primitives/job.handler.js.map +1 -1
- package/dist/primitives/mcp-server.handler.d.ts.map +1 -1
- package/dist/primitives/mcp-server.handler.js +2 -2
- package/dist/primitives/mcp-server.handler.js.map +1 -1
- package/dist/primitives/postprocessor.handler.d.ts.map +1 -1
- package/dist/primitives/postprocessor.handler.js.map +1 -1
- package/dist/primitives/preprocessor.handler.d.ts +1 -1
- package/dist/primitives/preprocessor.handler.d.ts.map +1 -1
- package/dist/primitives/preprocessor.handler.js +2 -3
- package/dist/primitives/preprocessor.handler.js.map +1 -1
- package/dist/primitives/skill.handler.d.ts +1 -1
- package/dist/primitives/skill.handler.d.ts.map +1 -1
- package/dist/primitives/skill.handler.js +34 -13
- package/dist/primitives/skill.handler.js.map +1 -1
- package/dist/primitives/types.d.ts +1 -1
- package/dist/primitives/types.d.ts.map +1 -1
- package/dist/primitives/types.js.map +1 -1
- package/dist/primitives/webhook.handler.d.ts +3 -2
- package/dist/primitives/webhook.handler.d.ts.map +1 -1
- package/dist/primitives/webhook.handler.js +9 -4
- package/dist/primitives/webhook.handler.js.map +1 -1
- package/dist/services/analytics.d.ts.map +1 -1
- package/dist/services/analytics.js +4 -5
- package/dist/services/analytics.js.map +1 -1
- package/dist/services/auth.d.ts +9 -1
- package/dist/services/auth.d.ts.map +1 -1
- package/dist/services/auth.js +26 -7
- package/dist/services/auth.js.map +1 -1
- package/dist/services/sandbox.service.d.ts.map +1 -1
- package/dist/services/sandbox.service.js +132 -80
- package/dist/services/sandbox.service.js.map +1 -1
- package/dist/types/api-contracts.d.ts +4 -4
- package/dist/types/api-contracts.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types/skill.d.ts +7 -7
- package/dist/types/skill.d.ts.map +1 -1
- package/dist/types/skill.js +2 -2
- package/dist/types/skill.js.map +1 -1
- package/dist/types/tool-validation.js.map +1 -1
- package/dist/types/yaml.types.js +0 -1
- package/dist/types/yaml.types.js.map +1 -1
- package/dist/utils/aliases.d.ts +7 -0
- package/dist/utils/aliases.d.ts.map +1 -0
- package/dist/utils/aliases.js +492 -0
- package/dist/utils/aliases.js.map +1 -0
- package/dist/utils/artifact-loader.d.ts +9 -0
- package/dist/utils/artifact-loader.d.ts.map +1 -1
- package/dist/utils/artifact-loader.js +16 -6
- package/dist/utils/artifact-loader.js.map +1 -1
- package/dist/utils/auth-flows.d.ts.map +1 -1
- package/dist/utils/auth-flows.js +54 -54
- package/dist/utils/auth-flows.js.map +1 -1
- package/dist/utils/backup-helpers.d.ts +24 -0
- package/dist/utils/backup-helpers.d.ts.map +1 -1
- package/dist/utils/backup-helpers.js +102 -22
- package/dist/utils/backup-helpers.js.map +1 -1
- package/dist/utils/bundle-upload.d.ts +42 -0
- package/dist/utils/bundle-upload.d.ts.map +1 -0
- package/dist/utils/bundle-upload.js +90 -0
- package/dist/utils/bundle-upload.js.map +1 -0
- package/dist/utils/chat-attachments.js +1 -1
- package/dist/utils/chat-attachments.js.map +1 -1
- package/dist/utils/cli.d.ts +24 -6
- package/dist/utils/cli.d.ts.map +1 -1
- package/dist/utils/cli.js +26 -14
- package/dist/utils/cli.js.map +1 -1
- package/dist/utils/command-utils.d.ts.map +1 -1
- package/dist/utils/command-utils.js +4 -4
- package/dist/utils/command-utils.js.map +1 -1
- package/dist/utils/deploy-helpers.d.ts.map +1 -1
- package/dist/utils/deploy-helpers.js +13 -13
- package/dist/utils/deploy-helpers.js.map +1 -1
- package/dist/utils/env-loader.utils.d.ts +1 -1
- package/dist/utils/env-loader.utils.d.ts.map +1 -1
- package/dist/utils/env-loader.utils.js +15 -22
- package/dist/utils/env-loader.utils.js.map +1 -1
- package/dist/utils/files.d.ts.map +1 -1
- package/dist/utils/files.js +23 -13
- package/dist/utils/files.js.map +1 -1
- package/dist/utils/hints.d.ts +81 -0
- package/dist/utils/hints.d.ts.map +1 -0
- package/dist/utils/hints.js +81 -0
- package/dist/utils/hints.js.map +1 -0
- package/dist/utils/init-agent.d.ts.map +1 -1
- package/dist/utils/init-agent.js +18 -20
- package/dist/utils/init-agent.js.map +1 -1
- package/dist/utils/init-helpers.d.ts.map +1 -1
- package/dist/utils/init-helpers.js +11 -11
- package/dist/utils/init-helpers.js.map +1 -1
- package/dist/utils/init-prompts.d.ts.map +1 -1
- package/dist/utils/init-prompts.js +34 -36
- package/dist/utils/init-prompts.js.map +1 -1
- package/dist/utils/prompt-handler.js +1 -1
- package/dist/utils/prompt-handler.js.map +1 -1
- package/dist/utils/sandbox-storage.d.ts.map +1 -1
- package/dist/utils/sandbox-storage.js.map +1 -1
- package/dist/utils/sandbox.d.ts +1 -1
- package/dist/utils/sandbox.d.ts.map +1 -1
- package/dist/utils/sandbox.js +107 -106
- package/dist/utils/sandbox.js.map +1 -1
- package/dist/utils/semver.js +1 -1
- package/dist/utils/semver.js.map +1 -1
- package/dist/utils/suggest.d.ts +3 -0
- package/dist/utils/suggest.d.ts.map +1 -0
- package/dist/utils/suggest.js +32 -0
- package/dist/utils/suggest.js.map +1 -0
- package/dist/utils/sync-display.d.ts.map +1 -1
- package/dist/utils/sync-display.js +15 -13
- package/dist/utils/sync-display.js.map +1 -1
- package/dist/utils/sync-fetch.d.ts.map +1 -1
- package/dist/utils/sync-fetch.js +33 -24
- package/dist/utils/sync-fetch.js.map +1 -1
- package/dist/utils/version-check.js +1 -1
- package/dist/utils/version-check.js.map +1 -1
- package/dist/utils/write-info.d.ts +9 -0
- package/dist/utils/write-info.d.ts.map +1 -0
- package/dist/utils/write-info.js +11 -0
- package/dist/utils/write-info.js.map +1 -0
- package/docs/README.md +1 -1
- package/node_modules/@lua/shared-types/dist/index.d.mts +76 -2
- package/node_modules/@lua/shared-types/dist/index.d.ts +76 -2
- package/node_modules/@lua/shared-types/dist/index.js +27 -0
- package/node_modules/@lua/shared-types/dist/index.mjs +24 -0
- package/node_modules/@lua/shared-types/src/ai-generate.types.ts +1 -6
- package/node_modules/@lua/shared-types/src/ai-generate.utils.ts +1 -4
- package/node_modules/@lua/shared-types/src/channel.type.ts +1 -0
- package/node_modules/@lua/shared-types/src/chat-stream.types.ts +11 -0
- package/node_modules/@lua/shared-types/src/client-tools.types.ts +47 -0
- package/node_modules/@lua/shared-types/src/device.types.ts +6 -6
- package/node_modules/@lua/shared-types/src/index.ts +3 -0
- package/node_modules/@lua/shared-types/src/sandbox-contract.ts +26 -5
- package/node_modules/@lua/shared-types/src/vm-execution-log.types.ts +41 -0
- package/package.json +10 -6
- package/scripts/build-vendor.mjs +53 -0
- package/scripts/vendor-entry.mjs +11 -0
- package/template/QUICKSTART.md +33 -33
- package/template/README.md +35 -34
- package/template/examples/README.md +44 -38
- package/template/examples/jobs/AbandonedBasketProcessorJob.ts +30 -31
- package/template/examples/jobs/DailyCleanupJob.ts +17 -18
- package/template/examples/jobs/DataMigrationJob.ts +18 -23
- package/template/examples/jobs/HealthCheckJob.ts +13 -14
- package/template/examples/postprocessors/modifyResponse.ts +14 -15
- package/template/examples/preprocessors/messageMatching.ts +28 -29
- package/template/examples/services/ApiService.ts +68 -64
- package/template/examples/services/GetWeather.ts +39 -33
- package/template/examples/skills/basket.skill.ts +27 -7
- package/template/examples/skills/product.skill.ts +21 -8
- package/template/examples/skills/tools/BasketTool.ts +97 -98
- package/template/examples/skills/tools/CreateInlineJob.ts +38 -36
- package/template/examples/skills/tools/CreatePostTool.ts +27 -28
- package/template/examples/skills/tools/CustomDataTool.ts +72 -67
- package/template/examples/skills/tools/GameScoreTrackerTool.ts +72 -78
- package/template/examples/skills/tools/GetWeatherTool.ts +43 -45
- package/template/examples/skills/tools/OrderTool.ts +58 -58
- package/template/examples/skills/tools/PaymentTool.ts +43 -43
- package/template/examples/skills/tools/PremiumFeatureTool.ts +81 -79
- package/template/examples/skills/tools/ProductsTool.ts +68 -69
- package/template/examples/skills/tools/SmartBasketTool.ts +43 -44
- package/template/examples/skills/tools/UserDataTool.ts +97 -98
- package/template/examples/skills/user.skill.ts +7 -8
- package/template/examples/webhooks/FileUploadWebhook.ts +38 -31
- package/template/examples/webhooks/PaymentWebhook.ts +23 -22
- package/template/examples/webhooks/UserEventWebhook.ts +16 -19
- package/template/lua.skill.yaml +2 -2
- package/template/package.json +1 -1
- package/template/src/index.ts +28 -28
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Command Definitions
|
|
3
3
|
* Centralized command structure for the CLI
|
|
4
4
|
*/
|
|
5
|
-
import { configureCommand, initCommand, destroyCommand, apiKeyCommand, compileCommand, testCommand, pushCommand, deployCommand, chatCommand, chatClearCommand, envCommand, personaCommand, productionCommand, resourcesCommand, adminCommand, evalsCommand, docsCommand, channelsCommand, logsCommand, completionCommand, skillsCommand, webhooksCommand, devicesCommand, jobsCommand, featuresCommand, preprocessorsCommand, postprocessorsCommand, marketplaceCommand, mcpCommand, syncCommand, integrationsCommand, agentsCommand, updateCommand, telemetryCommand, governanceCommand, modelsCommand } from
|
|
5
|
+
import { configureCommand, initCommand, destroyCommand, apiKeyCommand, compileCommand, testCommand, pushCommand, deployCommand, chatCommand, chatClearCommand, envCommand, personaCommand, productionCommand, resourcesCommand, adminCommand, evalsCommand, docsCommand, channelsCommand, logsCommand, completionCommand, skillsCommand, webhooksCommand, devicesCommand, jobsCommand, featuresCommand, preprocessorsCommand, postprocessorsCommand, marketplaceCommand, mcpCommand, syncCommand, integrationsCommand, agentsCommand, updateCommand, telemetryCommand, governanceCommand, modelsCommand, statusCommand, } from '../commands/index.js';
|
|
6
6
|
/**
|
|
7
7
|
* Sets up authentication-related commands.
|
|
8
8
|
*
|
|
@@ -15,8 +15,8 @@ import { configureCommand, initCommand, destroyCommand, apiKeyCommand, compileCo
|
|
|
15
15
|
*/
|
|
16
16
|
export function setupAuthCommands(program) {
|
|
17
17
|
const authCommand = program
|
|
18
|
-
.command(
|
|
19
|
-
.description(
|
|
18
|
+
.command('auth')
|
|
19
|
+
.description('🔐 Authentication management')
|
|
20
20
|
.addHelpText('after', `
|
|
21
21
|
Examples:
|
|
22
22
|
$ lua auth configure Interactive setup (choose API key or email)
|
|
@@ -29,11 +29,11 @@ Examples:
|
|
|
29
29
|
$ lua auth logout --force Remove stored credentials without confirmation
|
|
30
30
|
`);
|
|
31
31
|
authCommand
|
|
32
|
-
.command(
|
|
33
|
-
.description(
|
|
34
|
-
.option(
|
|
35
|
-
.option(
|
|
36
|
-
.option(
|
|
32
|
+
.command('configure')
|
|
33
|
+
.description('Set up your API key')
|
|
34
|
+
.option('--api-key <key>', 'Set API key directly (non-interactive)')
|
|
35
|
+
.option('--email <email>', 'Email address for OTP authentication')
|
|
36
|
+
.option('--otp <code>', 'OTP code received via email (use with --email)')
|
|
37
37
|
.addHelpText('after', `
|
|
38
38
|
Non-Interactive Modes:
|
|
39
39
|
--api-key <key> Set API key directly (for CI/CD or when you have a key from dashboard)
|
|
@@ -48,14 +48,14 @@ Examples:
|
|
|
48
48
|
`)
|
|
49
49
|
.action(configureCommand);
|
|
50
50
|
authCommand
|
|
51
|
-
.command(
|
|
52
|
-
.description(
|
|
53
|
-
.option(
|
|
51
|
+
.command('logout')
|
|
52
|
+
.description('Delete your stored API key')
|
|
53
|
+
.option('--force', 'Skip confirmation prompt')
|
|
54
54
|
.action(destroyCommand);
|
|
55
55
|
authCommand
|
|
56
|
-
.command(
|
|
57
|
-
.description(
|
|
58
|
-
.option(
|
|
56
|
+
.command('key')
|
|
57
|
+
.description('Display your stored API key')
|
|
58
|
+
.option('--force', 'Skip confirmation prompt')
|
|
59
59
|
.action(apiKeyCommand);
|
|
60
60
|
}
|
|
61
61
|
/**
|
|
@@ -65,20 +65,20 @@ Examples:
|
|
|
65
65
|
*/
|
|
66
66
|
export function setupMarketplaceCommands(program) {
|
|
67
67
|
program
|
|
68
|
-
.command(
|
|
69
|
-
.description(
|
|
70
|
-
.option(
|
|
71
|
-
.option(
|
|
72
|
-
.option(
|
|
73
|
-
.option(
|
|
74
|
-
.option(
|
|
75
|
-
.option(
|
|
76
|
-
.option(
|
|
77
|
-
.option(
|
|
78
|
-
.option(
|
|
79
|
-
.option(
|
|
80
|
-
.option(
|
|
81
|
-
.option(
|
|
68
|
+
.command('marketplace [role] [action]')
|
|
69
|
+
.description('🛍️ Browse, install, and manage marketplace skills')
|
|
70
|
+
.option('--skill-name <name>', 'Skill name (for creator list, installer update/uninstall)')
|
|
71
|
+
.option('--display-name <name>', 'Display name (for creator list/update)')
|
|
72
|
+
.option('--marketplace-id <id>', 'Marketplace skill ID')
|
|
73
|
+
.option('--version-id <id>', 'Version ID (for publish/install)')
|
|
74
|
+
.option('--changelog <text>', 'Changelog for version (for publish)')
|
|
75
|
+
.option('--env-vars-json <json>', 'JSON string with env var metadata (for creator publish)')
|
|
76
|
+
.option('--env-vars <pairs>', 'Comma-separated key=value pairs (for installer)')
|
|
77
|
+
.option('--query <text>', 'Search query (for search)')
|
|
78
|
+
.option('--page <n>', 'Page number (for search)')
|
|
79
|
+
.option('--limit <n>', 'Results per page (for search)')
|
|
80
|
+
.option('--json', 'Output as JSON')
|
|
81
|
+
.option('--force', 'Skip confirmation prompts')
|
|
82
82
|
.addHelpText('after', `
|
|
83
83
|
Arguments:
|
|
84
84
|
role Optional: 'create' or 'install' (prompts if not provided)
|
|
@@ -123,17 +123,17 @@ Examples:
|
|
|
123
123
|
export function setupSkillCommands(program) {
|
|
124
124
|
// Project Setup
|
|
125
125
|
program
|
|
126
|
-
.command(
|
|
127
|
-
.description(
|
|
128
|
-
.option(
|
|
129
|
-
.option(
|
|
130
|
-
.option(
|
|
131
|
-
.option(
|
|
132
|
-
.option(
|
|
133
|
-
.option(
|
|
134
|
-
.option(
|
|
135
|
-
.option(
|
|
136
|
-
.option(
|
|
126
|
+
.command('init')
|
|
127
|
+
.description('🚀 Initialize a new Lua skill project')
|
|
128
|
+
.option('--with-examples', 'Include example skills, tools, jobs, and webhooks')
|
|
129
|
+
.option('--agent-id <id>', 'Use existing agent by ID (non-interactive)')
|
|
130
|
+
.option('--agent-name <name>', 'Name for new agent (requires --org-id or --org-name)')
|
|
131
|
+
.option('--org-id <id>', 'Use existing organization by ID')
|
|
132
|
+
.option('--org-name <name>', 'Create new organization with this name')
|
|
133
|
+
.option('--model <model>', "LLM model code to use (e.g. 'openai/gpt-4o')")
|
|
134
|
+
.option('--force', 'Skip confirmations / overwrite existing project')
|
|
135
|
+
.option('--restore-sources', 'Restore project source files from backup (with --agent-id)')
|
|
136
|
+
.option('--promo-code <code>', 'Apply a promo code for bonus credits')
|
|
137
137
|
.addHelpText('after', `
|
|
138
138
|
Non-Interactive Mode:
|
|
139
139
|
--agent-id <id> Use existing agent
|
|
@@ -157,20 +157,20 @@ Examples:
|
|
|
157
157
|
.action(initCommand);
|
|
158
158
|
// Development Commands
|
|
159
159
|
program
|
|
160
|
-
.command(
|
|
161
|
-
.description(
|
|
162
|
-
.option(
|
|
163
|
-
.option(
|
|
164
|
-
.option(
|
|
165
|
-
.action(compileCommand);
|
|
166
|
-
program
|
|
167
|
-
.command(
|
|
168
|
-
.description(
|
|
169
|
-
.option(
|
|
170
|
-
.option(
|
|
171
|
-
.option(
|
|
172
|
-
.option(
|
|
173
|
-
.option(
|
|
160
|
+
.command('compile')
|
|
161
|
+
.description('📦 Compile skill to deployable format')
|
|
162
|
+
.option('--verbose', 'Show detailed progress output')
|
|
163
|
+
.option('--debug', 'Enable debug mode with extra verbose logging and temp file preservation')
|
|
164
|
+
.option('--sync', 'Run drift detection check before compiling')
|
|
165
|
+
.action((opts) => compileCommand({ ...opts, topLevel: true }));
|
|
166
|
+
program
|
|
167
|
+
.command('sync')
|
|
168
|
+
.description('🔄 Sync local code with server state')
|
|
169
|
+
.option('--check', 'Check for drift only, exit code 1 if drift found')
|
|
170
|
+
.option('--pull', 'Pull server state to local without prompting')
|
|
171
|
+
.option('--accept', 'Alias for --pull (kept for backwards compatibility)')
|
|
172
|
+
.option('--push', 'Push local changes to server without prompting')
|
|
173
|
+
.option('--force', 'Skip the local-changes conflict check (use with --pull / --accept)')
|
|
174
174
|
.addHelpText('after', `
|
|
175
175
|
Detects drift between server-deployed state and local code.
|
|
176
176
|
Resolves drift by syncing in either direction.
|
|
@@ -200,10 +200,11 @@ Examples:
|
|
|
200
200
|
`)
|
|
201
201
|
.action((opts) => syncCommand({ ...opts, accept: opts.pull || opts.accept }));
|
|
202
202
|
program
|
|
203
|
-
.command(
|
|
204
|
-
.description(
|
|
205
|
-
.option(
|
|
206
|
-
.option(
|
|
203
|
+
.command('test [type]')
|
|
204
|
+
.description('🧪 Test skills, webhooks, or jobs interactively')
|
|
205
|
+
.option('--name <name>', 'Entity name to test')
|
|
206
|
+
.option('--input <json>', 'JSON input string for testing')
|
|
207
|
+
.option('--json', 'Output result as raw JSON (useful for scripting and piping)')
|
|
207
208
|
.addHelpText('after', `
|
|
208
209
|
Arguments:
|
|
209
210
|
type Optional: 'skill', 'webhook', or 'job' (prompts if not provided)
|
|
@@ -211,6 +212,7 @@ Arguments:
|
|
|
211
212
|
Options:
|
|
212
213
|
--name <name> Entity name to test (non-interactive selection)
|
|
213
214
|
--input <json> JSON input string for testing (non-interactive input)
|
|
215
|
+
--json Output result as raw JSON instead of formatted inspect output
|
|
214
216
|
|
|
215
217
|
Examples:
|
|
216
218
|
$ lua test Interactive selection
|
|
@@ -220,16 +222,17 @@ Examples:
|
|
|
220
222
|
$ lua test skill --name mySkill --input '{}' Test skill with JSON input
|
|
221
223
|
$ lua test webhook --name myWebhook --input '{...}' Test webhook with data
|
|
222
224
|
$ lua test job --name myJob Test job execution
|
|
225
|
+
$ lua test skill --name mySkill --json Output raw JSON for scripting
|
|
223
226
|
`)
|
|
224
227
|
.action(testCommand);
|
|
225
228
|
// Deployment Commands
|
|
226
229
|
program
|
|
227
|
-
.command(
|
|
228
|
-
.description(
|
|
230
|
+
.command('push [type]')
|
|
231
|
+
.description('☁️ Push skill, agent, webhook, job, MCP server, or backup to server')
|
|
229
232
|
.option('--force', 'Skip all confirmation prompts (auto-confirm)')
|
|
230
233
|
.option('--auto-deploy', 'Automatically deploy to production after push')
|
|
231
|
-
.option(
|
|
232
|
-
.option(
|
|
234
|
+
.option('--name <name>', 'Entity name to push')
|
|
235
|
+
.option('--set-version <version>', 'Version to set (e.g., 1.0.5)')
|
|
233
236
|
.addHelpText('after', `
|
|
234
237
|
Arguments:
|
|
235
238
|
type Optional: 'skill', 'agent', 'persona', 'webhook', 'job', 'preprocessor', 'postprocessor', 'mcp', 'backup', or 'all' (prompts if not provided)
|
|
@@ -256,14 +259,14 @@ Examples:
|
|
|
256
259
|
`)
|
|
257
260
|
.action(pushCommand);
|
|
258
261
|
program
|
|
259
|
-
.command(
|
|
260
|
-
.description(
|
|
261
|
-
.option(
|
|
262
|
-
.option(
|
|
263
|
-
.option(
|
|
262
|
+
.command('deploy [type]')
|
|
263
|
+
.description('🚀 Deploy a version to production')
|
|
264
|
+
.option('--name <name>', 'Entity name to deploy (non-interactive selection)')
|
|
265
|
+
.option('--set-version <ver>', "Version to deploy, or 'latest' for newest version")
|
|
266
|
+
.option('--force', 'Skip confirmation prompt')
|
|
264
267
|
// Deprecated aliases kept for backward compatibility
|
|
265
|
-
.option(
|
|
266
|
-
.option(
|
|
268
|
+
.option('--skill-name <name>', 'Deprecated: use --name')
|
|
269
|
+
.option('--skill-version <ver>', 'Deprecated: use --set-version')
|
|
267
270
|
.addHelpText('after', `
|
|
268
271
|
Arguments:
|
|
269
272
|
type Optional: skill | webhook | job | preprocessor | postprocessor | persona | all (prompts if not provided)
|
|
@@ -286,15 +289,15 @@ Examples:
|
|
|
286
289
|
.action(deployCommand);
|
|
287
290
|
// Chat Commands
|
|
288
291
|
const chatCmd = program
|
|
289
|
-
.command(
|
|
290
|
-
.description(
|
|
291
|
-
.option(
|
|
292
|
-
.option(
|
|
293
|
-
.option(
|
|
294
|
-
.option(
|
|
295
|
-
.option(
|
|
296
|
-
.option(
|
|
297
|
-
.option(
|
|
292
|
+
.command('chat')
|
|
293
|
+
.description('💬 Interactive chat with your agent')
|
|
294
|
+
.option('-e, --env <environment>', 'Environment: sandbox or production')
|
|
295
|
+
.option('-m, --message <text>', 'Message to send (non-interactive mode)')
|
|
296
|
+
.option('-b, --batch <messages...>', 'Send multiple messages concurrently to test batching')
|
|
297
|
+
.option('-d, --delay <ms>', 'Delay between batch messages in ms (default: 100)')
|
|
298
|
+
.option('-t, --thread [id]', 'Thread ID for conversation scoping. If no ID is provided, a UUID is auto-generated. Displayed at session start so you can reuse it later.')
|
|
299
|
+
.option('--clear', 'Automatically clear chat history when session ends (clears thread if -t is used, otherwise clears all history)')
|
|
300
|
+
.option('--clear-thread', 'Alias for --clear')
|
|
298
301
|
.addHelpText('after', `
|
|
299
302
|
Examples:
|
|
300
303
|
$ lua chat Start interactive chat session
|
|
@@ -311,11 +314,11 @@ Examples:
|
|
|
311
314
|
`)
|
|
312
315
|
.action(chatCommand);
|
|
313
316
|
chatCmd
|
|
314
|
-
.command(
|
|
315
|
-
.description(
|
|
316
|
-
.option(
|
|
317
|
-
.option(
|
|
318
|
-
.option(
|
|
317
|
+
.command('clear')
|
|
318
|
+
.description('Clear conversation history')
|
|
319
|
+
.option('--user <identifier>', 'User ID, email, or mobile number of the user whose history to clear')
|
|
320
|
+
.option('-t, --thread <id>', "Clear a specific thread's history instead of all history")
|
|
321
|
+
.option('--force', 'Skip confirmation prompt')
|
|
319
322
|
.addHelpText('after', `
|
|
320
323
|
Examples:
|
|
321
324
|
$ lua chat clear Clear history
|
|
@@ -334,12 +337,12 @@ Notes:
|
|
|
334
337
|
.action(chatClearCommand);
|
|
335
338
|
// Configuration Commands
|
|
336
339
|
program
|
|
337
|
-
.command(
|
|
338
|
-
.description(
|
|
339
|
-
.option(
|
|
340
|
-
.option(
|
|
341
|
-
.option(
|
|
342
|
-
.option(
|
|
340
|
+
.command('env [environment]')
|
|
341
|
+
.description('⚙️ Manage environment variables')
|
|
342
|
+
.option('-k, --key <name>', 'Environment variable key')
|
|
343
|
+
.option('-v, --value <value>', 'Environment variable value')
|
|
344
|
+
.option('-d, --delete', 'Delete the specified key')
|
|
345
|
+
.option('--list', 'List all environment variables')
|
|
343
346
|
.addHelpText('after', `
|
|
344
347
|
Arguments:
|
|
345
348
|
environment Optional: 'sandbox', 'staging', or 'production' (prompts if not provided)
|
|
@@ -357,10 +360,10 @@ Examples:
|
|
|
357
360
|
`)
|
|
358
361
|
.action(envCommand);
|
|
359
362
|
program
|
|
360
|
-
.command(
|
|
361
|
-
.description(
|
|
362
|
-
.option(
|
|
363
|
-
.option(
|
|
363
|
+
.command('persona [env] [action]')
|
|
364
|
+
.description('🤖 Manage agent persona')
|
|
365
|
+
.option('--persona-version <version>', "Version number or 'latest' for deploy")
|
|
366
|
+
.option('--force', 'Skip confirmation prompt')
|
|
364
367
|
.addHelpText('after', `
|
|
365
368
|
Arguments:
|
|
366
369
|
env Optional: 'sandbox', 'staging', or 'production' (prompts if not provided)
|
|
@@ -381,8 +384,8 @@ Examples:
|
|
|
381
384
|
`)
|
|
382
385
|
.action(personaCommand);
|
|
383
386
|
program
|
|
384
|
-
.command(
|
|
385
|
-
.description(
|
|
387
|
+
.command('production [action]')
|
|
388
|
+
.description('🚀 View and manage production environment')
|
|
386
389
|
.addHelpText('after', `
|
|
387
390
|
Arguments:
|
|
388
391
|
action Optional: 'overview', 'persona', 'skills', 'env' (prompts if not provided)
|
|
@@ -396,9 +399,9 @@ Examples:
|
|
|
396
399
|
`)
|
|
397
400
|
.action(productionCommand);
|
|
398
401
|
program
|
|
399
|
-
.command(
|
|
400
|
-
.description(
|
|
401
|
-
.option(
|
|
402
|
+
.command('resources [action]')
|
|
403
|
+
.description('📚 Manage agent resources and knowledge base')
|
|
404
|
+
.option('--resource-name <name>', 'Resource name')
|
|
402
405
|
.addHelpText('after', `
|
|
403
406
|
Arguments:
|
|
404
407
|
action Optional: 'list', 'view', 'delete' (prompts if not provided)
|
|
@@ -415,21 +418,12 @@ Examples:
|
|
|
415
418
|
$ lua resources delete --resource-name "Old Doc" Delete a resource
|
|
416
419
|
`)
|
|
417
420
|
.action(resourcesCommand);
|
|
421
|
+
program.command('admin').description('🔧 Open Lua Admin Dashboard in browser').action(adminCommand);
|
|
422
|
+
program.command('evals').description('📊 Open Lua Evaluations Dashboard in browser').action(evalsCommand);
|
|
423
|
+
program.command('docs').description('📖 Open Lua documentation in browser').action(docsCommand);
|
|
418
424
|
program
|
|
419
|
-
.command(
|
|
420
|
-
.description(
|
|
421
|
-
.action(adminCommand);
|
|
422
|
-
program
|
|
423
|
-
.command("evals")
|
|
424
|
-
.description("📊 Open Lua Evaluations Dashboard in browser")
|
|
425
|
-
.action(evalsCommand);
|
|
426
|
-
program
|
|
427
|
-
.command("docs")
|
|
428
|
-
.description("📖 Open Lua documentation in browser")
|
|
429
|
-
.action(docsCommand);
|
|
430
|
-
program
|
|
431
|
-
.command("channels [action]")
|
|
432
|
-
.description("📡 Manage agent communication channels")
|
|
425
|
+
.command('channels [action]')
|
|
426
|
+
.description('📡 Manage agent communication channels')
|
|
433
427
|
.addHelpText('after', `
|
|
434
428
|
Arguments:
|
|
435
429
|
action Optional: 'list' (prompts if not provided)
|
|
@@ -442,14 +436,14 @@ Examples:
|
|
|
442
436
|
`)
|
|
443
437
|
.action(channelsCommand);
|
|
444
438
|
program
|
|
445
|
-
.command(
|
|
446
|
-
.description(
|
|
447
|
-
.option(
|
|
448
|
-
.option(
|
|
449
|
-
.option(
|
|
450
|
-
.option(
|
|
451
|
-
.option(
|
|
452
|
-
.option(
|
|
439
|
+
.command('logs')
|
|
440
|
+
.description('📊 View agent and skill logs')
|
|
441
|
+
.option('--type <type>', 'Filter by type: all, skill, job, webhook, preprocessor, postprocessor, user_message, agent_response, mcp, mastra')
|
|
442
|
+
.option('--name <name>', 'Entity name to filter (requires --type)')
|
|
443
|
+
.option('--user-id <userId>', 'Filter logs by user ID')
|
|
444
|
+
.option('--limit <n>', 'Number of logs to show (default: 20)')
|
|
445
|
+
.option('--page <n>', 'Page number for pagination')
|
|
446
|
+
.option('--json', 'Output as JSON (for scripting)')
|
|
453
447
|
.addHelpText('after', `
|
|
454
448
|
Options:
|
|
455
449
|
--type <type> Filter by type: all, skill, job, webhook, preprocessor, postprocessor, user_message, agent_response, mcp, mastra
|
|
@@ -472,10 +466,10 @@ Examples:
|
|
|
472
466
|
`)
|
|
473
467
|
.action(logsCommand);
|
|
474
468
|
program
|
|
475
|
-
.command(
|
|
476
|
-
.description(
|
|
477
|
-
.option(
|
|
478
|
-
.option(
|
|
469
|
+
.command('skills [actionOrEnv] [action]')
|
|
470
|
+
.description('⚙️ Manage and view skills')
|
|
471
|
+
.option('--skill-name <name>', 'Skill name')
|
|
472
|
+
.option('--skill-version <version>', "Version for deploy action (or 'latest')")
|
|
479
473
|
.addHelpText('after', `
|
|
480
474
|
Arguments:
|
|
481
475
|
actionOrEnv Optional: environment ('sandbox', 'production') or action ('view', 'versions', 'deploy', 'delete')
|
|
@@ -496,11 +490,11 @@ Examples:
|
|
|
496
490
|
`)
|
|
497
491
|
.action(skillsCommand);
|
|
498
492
|
program
|
|
499
|
-
.command(
|
|
500
|
-
.description(
|
|
501
|
-
.option(
|
|
502
|
-
.option(
|
|
503
|
-
.option(
|
|
493
|
+
.command('webhooks [action]')
|
|
494
|
+
.description('🪝 Manage and view webhooks')
|
|
495
|
+
.option('--webhook-name <name>', 'Webhook name')
|
|
496
|
+
.option('--webhook-version <version>', "Version for deploy action (or 'latest')")
|
|
497
|
+
.option('--event <eventType>', 'Event type for subscribe/unsubscribe (e.g. message.delivered)')
|
|
504
498
|
.addHelpText('after', `
|
|
505
499
|
Arguments:
|
|
506
500
|
action Optional: 'view', 'versions', 'deploy', 'activate', 'deactivate', 'delete',
|
|
@@ -526,13 +520,13 @@ Examples:
|
|
|
526
520
|
`)
|
|
527
521
|
.action(webhooksCommand);
|
|
528
522
|
program
|
|
529
|
-
.command(
|
|
530
|
-
.description(
|
|
531
|
-
.option(
|
|
532
|
-
.option(
|
|
533
|
-
.option(
|
|
534
|
-
.option(
|
|
535
|
-
.option(
|
|
523
|
+
.command('devices [action]')
|
|
524
|
+
.description('📡 Manage connected devices')
|
|
525
|
+
.option('--device-name <name>', 'Device name')
|
|
526
|
+
.option('--group <group>', 'Filter by device group')
|
|
527
|
+
.option('--payload <json>', 'JSON payload for test/test-trigger', '{}')
|
|
528
|
+
.option('--timeout <ms>', 'Timeout in milliseconds', '30000')
|
|
529
|
+
.option('--force', 'Skip confirmation prompts')
|
|
536
530
|
.addHelpText('after', `
|
|
537
531
|
Arguments:
|
|
538
532
|
action Optional: list, status, enable, disable, remove, test, test-trigger
|
|
@@ -558,10 +552,10 @@ Examples:
|
|
|
558
552
|
`)
|
|
559
553
|
.action(devicesCommand);
|
|
560
554
|
program
|
|
561
|
-
.command(
|
|
562
|
-
.description(
|
|
563
|
-
.option(
|
|
564
|
-
.option(
|
|
555
|
+
.command('jobs [action]')
|
|
556
|
+
.description('⏰ Manage and view scheduled jobs')
|
|
557
|
+
.option('-i, --job-name <name>', 'Job name')
|
|
558
|
+
.option('-v, --job-version <version>', "Version for deploy action (or 'latest')")
|
|
565
559
|
.addHelpText('after', `
|
|
566
560
|
Arguments:
|
|
567
561
|
action Optional: view, versions, deploy, activate, deactivate, trigger, history, delete
|
|
@@ -584,9 +578,9 @@ Examples:
|
|
|
584
578
|
`)
|
|
585
579
|
.action(jobsCommand);
|
|
586
580
|
program
|
|
587
|
-
.command(
|
|
588
|
-
.description(
|
|
589
|
-
.option(
|
|
581
|
+
.command('features [action]')
|
|
582
|
+
.description('🎯 Manage agent features (RAG, webSearch, inquiry)')
|
|
583
|
+
.option('--feature-name <name>', 'Feature name')
|
|
590
584
|
.addHelpText('after', `
|
|
591
585
|
Arguments:
|
|
592
586
|
action Optional: 'list', 'enable', 'disable', 'view' (prompts if not provided)
|
|
@@ -603,10 +597,10 @@ Examples:
|
|
|
603
597
|
`)
|
|
604
598
|
.action(featuresCommand);
|
|
605
599
|
program
|
|
606
|
-
.command(
|
|
607
|
-
.description(
|
|
608
|
-
.option(
|
|
609
|
-
.option(
|
|
600
|
+
.command('preprocessors [action]')
|
|
601
|
+
.description('📥 Manage message preprocessors')
|
|
602
|
+
.option('--preprocessor-name <name>', 'PreProcessor name')
|
|
603
|
+
.option('--preprocessor-version <version>', "Version for deploy action (or 'latest')")
|
|
610
604
|
.addHelpText('after', `
|
|
611
605
|
Arguments:
|
|
612
606
|
action Optional: 'view', 'versions', 'deploy', 'activate', 'deactivate', 'delete' (prompts if not provided)
|
|
@@ -627,10 +621,10 @@ Examples:
|
|
|
627
621
|
`)
|
|
628
622
|
.action(preprocessorsCommand);
|
|
629
623
|
program
|
|
630
|
-
.command(
|
|
631
|
-
.description(
|
|
632
|
-
.option(
|
|
633
|
-
.option(
|
|
624
|
+
.command('postprocessors [action]')
|
|
625
|
+
.description('📤 Manage response postprocessors')
|
|
626
|
+
.option('--postprocessor-name <name>', 'PostProcessor name')
|
|
627
|
+
.option('--postprocessor-version <version>', "Version for deploy action (or 'latest')")
|
|
634
628
|
.addHelpText('after', `
|
|
635
629
|
Arguments:
|
|
636
630
|
action Optional: 'view', 'versions', 'deploy', 'activate', 'deactivate', 'delete' (prompts if not provided)
|
|
@@ -651,9 +645,9 @@ Examples:
|
|
|
651
645
|
`)
|
|
652
646
|
.action(postprocessorsCommand);
|
|
653
647
|
program
|
|
654
|
-
.command(
|
|
655
|
-
.description(
|
|
656
|
-
.option(
|
|
648
|
+
.command('mcp [action] [name]')
|
|
649
|
+
.description('🔌 Manage MCP (Model Context Protocol) servers')
|
|
650
|
+
.option('--server-name <name>', 'MCP server name')
|
|
657
651
|
.addHelpText('after', `
|
|
658
652
|
Arguments:
|
|
659
653
|
action Optional: 'list', 'activate', 'deactivate', or 'delete'
|
|
@@ -672,23 +666,23 @@ Examples:
|
|
|
672
666
|
`)
|
|
673
667
|
.action(mcpCommand);
|
|
674
668
|
program
|
|
675
|
-
.command(
|
|
676
|
-
.description(
|
|
677
|
-
.option(
|
|
678
|
-
.option(
|
|
679
|
-
.option(
|
|
680
|
-
.option(
|
|
681
|
-
.option(
|
|
682
|
-
.option(
|
|
683
|
-
.option(
|
|
684
|
-
.option(
|
|
685
|
-
.option(
|
|
686
|
-
.option(
|
|
687
|
-
.option(
|
|
688
|
-
.option(
|
|
689
|
-
.option(
|
|
690
|
-
.option(
|
|
691
|
-
.option(
|
|
669
|
+
.command('integrations [action] [subaction]')
|
|
670
|
+
.description('🔗 Connect third-party integrations via Unified.to')
|
|
671
|
+
.option('--integration <type>', 'Integration type (e.g., linear, googlecalendar)')
|
|
672
|
+
.option('--auth-method <method>', "Authentication method: 'oauth' or 'token'")
|
|
673
|
+
.option('--scopes <scopes>', "Comma-separated OAuth scopes (or 'all' for all scopes)")
|
|
674
|
+
.option('--hide-sensitive <bool>', 'Hide sensitive data from MCP tools (default: true)')
|
|
675
|
+
.option('--connection-id <id>', 'Connection ID to disconnect or pause/resume')
|
|
676
|
+
.option('--connection <id>', 'Connection ID for trigger')
|
|
677
|
+
.option('--webhook-id <id>', 'Trigger ID to delete/pause/resume')
|
|
678
|
+
.option('--object <type>', 'Object type for webhook (e.g., task_task, calendar_event)')
|
|
679
|
+
.option('--event <type>', 'Event type for webhook: created, updated, or deleted')
|
|
680
|
+
.option('--hook-url <url>', 'Custom webhook URL (default: agent trigger)')
|
|
681
|
+
.option('--interval <minutes>', 'Polling interval for virtual webhooks (60, 120, 240, 480, 720, 1440, 2880)')
|
|
682
|
+
.option('--triggers <events>', 'Comma-separated triggers (e.g., task_task.created,task_task.updated)')
|
|
683
|
+
.option('--custom-webhook', 'Use custom webhook URL instead of agent trigger')
|
|
684
|
+
.option('--json', 'Output as JSON (for info and webhooks events commands)')
|
|
685
|
+
.option('--reason <text>', 'Optional reason for pausing a trigger')
|
|
692
686
|
.addHelpText('after', `
|
|
693
687
|
Arguments:
|
|
694
688
|
action Optional: 'connect', 'update', 'list', 'available', 'info', 'disconnect', 'webhooks', or 'mcp'
|
|
@@ -747,17 +741,17 @@ MCP Server Examples:
|
|
|
747
741
|
.action(integrationsCommand);
|
|
748
742
|
// 'lua triggers' — top-level alias for 'lua integrations webhooks' (discoverability)
|
|
749
743
|
program
|
|
750
|
-
.command(
|
|
751
|
-
.description(
|
|
752
|
-
.option(
|
|
753
|
-
.option(
|
|
754
|
-
.option(
|
|
755
|
-
.option(
|
|
756
|
-
.option(
|
|
757
|
-
.option(
|
|
758
|
-
.option(
|
|
759
|
-
.option(
|
|
760
|
-
.option(
|
|
744
|
+
.command('triggers [action]')
|
|
745
|
+
.description('⚡ Manage integration triggers (alias for: lua integrations webhooks)')
|
|
746
|
+
.option('--connection-id <id>', 'Connection ID to pause/resume all triggers')
|
|
747
|
+
.option('--connection <id>', 'Connection ID for creating a trigger')
|
|
748
|
+
.option('--webhook-id <id>', 'Trigger ID to delete/pause/resume')
|
|
749
|
+
.option('--object <type>', 'Object type for webhook (e.g., task_task, calendar_event)')
|
|
750
|
+
.option('--event <type>', 'Event type: created, updated, or deleted')
|
|
751
|
+
.option('--hook-url <url>', 'Custom webhook URL (default: agent trigger)')
|
|
752
|
+
.option('--interval <minutes>', 'Polling interval for virtual webhooks')
|
|
753
|
+
.option('--json', 'Output as JSON')
|
|
754
|
+
.option('--reason <text>', 'Optional reason for pausing')
|
|
761
755
|
.addHelpText('after', `
|
|
762
756
|
This is a shortcut for: lua integrations webhooks <action>
|
|
763
757
|
|
|
@@ -782,8 +776,8 @@ Examples:
|
|
|
782
776
|
return integrationsCommand('webhooks', action || '', opts);
|
|
783
777
|
});
|
|
784
778
|
program
|
|
785
|
-
.command(
|
|
786
|
-
.description(
|
|
779
|
+
.command('completion [shell]')
|
|
780
|
+
.description('🎯 Generate shell completion script')
|
|
787
781
|
.addHelpText('after', `
|
|
788
782
|
Arguments:
|
|
789
783
|
shell Optional: 'bash', 'zsh', or 'fish' (shows instructions if not provided)
|
|
@@ -797,9 +791,9 @@ Examples:
|
|
|
797
791
|
`)
|
|
798
792
|
.action(completionCommand);
|
|
799
793
|
program
|
|
800
|
-
.command(
|
|
801
|
-
.description(
|
|
802
|
-
.option(
|
|
794
|
+
.command('agents')
|
|
795
|
+
.description('👥 List all organizations and agents you have access to')
|
|
796
|
+
.option('--json', 'Output as JSON')
|
|
803
797
|
.addHelpText('after', `
|
|
804
798
|
Examples:
|
|
805
799
|
$ lua agents List all orgs and agents (formatted)
|
|
@@ -807,10 +801,10 @@ Examples:
|
|
|
807
801
|
`)
|
|
808
802
|
.action(agentsCommand);
|
|
809
803
|
program
|
|
810
|
-
.command(
|
|
811
|
-
.description(
|
|
812
|
-
.option(
|
|
813
|
-
.option(
|
|
804
|
+
.command('models [action]')
|
|
805
|
+
.description('🧠 List and manage LLM models for your agent')
|
|
806
|
+
.option('--model <code>', "Model code for 'set' action (e.g. 'openai/gpt-4o')")
|
|
807
|
+
.option('--json', 'Output as JSON')
|
|
814
808
|
.addHelpText('after', `
|
|
815
809
|
Arguments:
|
|
816
810
|
action Optional: 'list', 'set', or 'unset' (default: list)
|
|
@@ -829,16 +823,35 @@ Examples:
|
|
|
829
823
|
`)
|
|
830
824
|
.action(modelsCommand);
|
|
831
825
|
program
|
|
832
|
-
.command(
|
|
833
|
-
.
|
|
826
|
+
.command('status')
|
|
827
|
+
.alias('describe')
|
|
828
|
+
.description('📋 Show full state: env, auth, project, updates, sync state')
|
|
829
|
+
.option('--json', 'Output as machine-readable JSON')
|
|
830
|
+
.addHelpText('after', `
|
|
831
|
+
Shows full diagnostics in one shot: CLI version + updates, install method,
|
|
832
|
+
auth state and server reachability, project config, per-primitive sync state
|
|
833
|
+
(local vs deployed), persona/backup status, and telemetry. Degrades gracefully
|
|
834
|
+
when run outside a project or unauthenticated.
|
|
835
|
+
|
|
836
|
+
Use --json for machine consumption (LLM agents).
|
|
837
|
+
|
|
838
|
+
Examples:
|
|
839
|
+
$ lua status Full status report
|
|
840
|
+
$ lua describe Same (alias)
|
|
841
|
+
$ lua status --json Stable JSON for automation
|
|
842
|
+
`)
|
|
843
|
+
.action(statusCommand);
|
|
844
|
+
program
|
|
845
|
+
.command('update')
|
|
846
|
+
.description('🔄 Update lua-cli to the latest version')
|
|
834
847
|
.addHelpText('after', `
|
|
835
848
|
Examples:
|
|
836
849
|
$ lua update Check for updates and install the latest version
|
|
837
850
|
`)
|
|
838
851
|
.action(updateCommand);
|
|
839
852
|
program
|
|
840
|
-
.command(
|
|
841
|
-
.description(
|
|
853
|
+
.command('telemetry [action]')
|
|
854
|
+
.description('📊 Manage usage telemetry')
|
|
842
855
|
.addHelpText('after', `
|
|
843
856
|
Arguments:
|
|
844
857
|
action Optional: 'on', 'off', or 'status' (default: status)
|
|
@@ -850,8 +863,8 @@ Examples:
|
|
|
850
863
|
`)
|
|
851
864
|
.action(telemetryCommand);
|
|
852
865
|
program
|
|
853
|
-
.command(
|
|
854
|
-
.description(
|
|
866
|
+
.command('governance [action]')
|
|
867
|
+
.description('🛡️ Manage governance for your agent project')
|
|
855
868
|
.addHelpText('after', `
|
|
856
869
|
Arguments:
|
|
857
870
|
action Optional: 'add' or 'remove' (default: interactive setup)
|