lua-cli 3.15.3 → 3.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api-exports.d.ts +5029 -698
- package/dist/api-exports.js +6509 -772
- package/dist/api-exports.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +41174 -82
- package/dist/index.js.map +1 -1
- package/dist/voice/test/index.d.ts +1217 -0
- package/dist/voice/test/index.js +386 -0
- package/dist/voice/test/index.js.map +1 -0
- package/dist/voice-exports.d.ts +40 -0
- package/dist/voice-exports.js +16 -0
- package/dist/voice-exports.js.map +1 -0
- package/docs/README.md +1 -1
- package/package.json +38 -21
- package/scripts/build-vendor.mjs +6 -3
- package/scripts/run-api-extractor.mjs +79 -0
- package/template/.gitignore +21 -0
- package/template/package.json +1 -1
- package/dist/api/agent.api.service.d.ts +0 -165
- package/dist/api/agent.api.service.d.ts.map +0 -1
- package/dist/api/agent.api.service.js +0 -207
- package/dist/api/agent.api.service.js.map +0 -1
- package/dist/api/agents.api.service.d.ts +0 -21
- package/dist/api/agents.api.service.d.ts.map +0 -1
- package/dist/api/agents.api.service.js +0 -51
- package/dist/api/agents.api.service.js.map +0 -1
- package/dist/api/ai.api.service.d.ts +0 -20
- package/dist/api/ai.api.service.d.ts.map +0 -1
- package/dist/api/ai.api.service.js +0 -40
- package/dist/api/ai.api.service.js.map +0 -1
- package/dist/api/auth.api.service.d.ts +0 -49
- package/dist/api/auth.api.service.d.ts.map +0 -1
- package/dist/api/auth.api.service.js +0 -55
- package/dist/api/auth.api.service.js.map +0 -1
- package/dist/api/backup.api.service.d.ts +0 -78
- package/dist/api/backup.api.service.d.ts.map +0 -1
- package/dist/api/backup.api.service.js +0 -115
- package/dist/api/backup.api.service.js.map +0 -1
- package/dist/api/basket.api.service.d.ts +0 -85
- package/dist/api/basket.api.service.d.ts.map +0 -1
- package/dist/api/basket.api.service.js +0 -160
- package/dist/api/basket.api.service.js.map +0 -1
- package/dist/api/cdn.api.service.d.ts +0 -21
- package/dist/api/cdn.api.service.d.ts.map +0 -1
- package/dist/api/cdn.api.service.js +0 -46
- package/dist/api/cdn.api.service.js.map +0 -1
- package/dist/api/chat.api.service.d.ts +0 -40
- package/dist/api/chat.api.service.d.ts.map +0 -1
- package/dist/api/chat.api.service.js +0 -121
- package/dist/api/chat.api.service.js.map +0 -1
- package/dist/api/credentials.d.ts +0 -25
- package/dist/api/credentials.d.ts.map +0 -1
- package/dist/api/credentials.js +0 -44
- package/dist/api/credentials.js.map +0 -1
- package/dist/api/custom.data.api.service.d.ts +0 -71
- package/dist/api/custom.data.api.service.d.ts.map +0 -1
- package/dist/api/custom.data.api.service.js +0 -126
- package/dist/api/custom.data.api.service.js.map +0 -1
- package/dist/api/developer.api.service.d.ts +0 -121
- package/dist/api/developer.api.service.d.ts.map +0 -1
- package/dist/api/developer.api.service.js +0 -162
- package/dist/api/developer.api.service.js.map +0 -1
- package/dist/api/device-trigger.api.service.d.ts +0 -136
- package/dist/api/device-trigger.api.service.d.ts.map +0 -1
- package/dist/api/device-trigger.api.service.js +0 -120
- package/dist/api/device-trigger.api.service.js.map +0 -1
- package/dist/api/device.api.service.d.ts +0 -61
- package/dist/api/device.api.service.d.ts.map +0 -1
- package/dist/api/device.api.service.js +0 -72
- package/dist/api/device.api.service.js.map +0 -1
- package/dist/api/http.client.d.ts +0 -90
- package/dist/api/http.client.d.ts.map +0 -1
- package/dist/api/http.client.js +0 -265
- package/dist/api/http.client.js.map +0 -1
- package/dist/api/job.api.service.d.ts +0 -154
- package/dist/api/job.api.service.d.ts.map +0 -1
- package/dist/api/job.api.service.js +0 -230
- package/dist/api/job.api.service.js.map +0 -1
- package/dist/api/lazy-instances.d.ts +0 -107
- package/dist/api/lazy-instances.d.ts.map +0 -1
- package/dist/api/lazy-instances.js +0 -220
- package/dist/api/lazy-instances.js.map +0 -1
- package/dist/api/logs.api.service.d.ts +0 -38
- package/dist/api/logs.api.service.d.ts.map +0 -1
- package/dist/api/logs.api.service.js +0 -50
- package/dist/api/logs.api.service.js.map +0 -1
- package/dist/api/marketplace.api.service.d.ts +0 -28
- package/dist/api/marketplace.api.service.d.ts.map +0 -1
- package/dist/api/marketplace.api.service.js +0 -112
- package/dist/api/marketplace.api.service.js.map +0 -1
- package/dist/api/order.api.service.d.ts +0 -53
- package/dist/api/order.api.service.d.ts.map +0 -1
- package/dist/api/order.api.service.js +0 -94
- package/dist/api/order.api.service.js.map +0 -1
- package/dist/api/persona.api.service.d.ts +0 -56
- package/dist/api/persona.api.service.d.ts.map +0 -1
- package/dist/api/persona.api.service.js +0 -90
- package/dist/api/persona.api.service.js.map +0 -1
- package/dist/api/postprocessor.api.service.d.ts +0 -151
- package/dist/api/postprocessor.api.service.d.ts.map +0 -1
- package/dist/api/postprocessor.api.service.js +0 -109
- package/dist/api/postprocessor.api.service.js.map +0 -1
- package/dist/api/preprocessor.api.service.d.ts +0 -155
- package/dist/api/preprocessor.api.service.d.ts.map +0 -1
- package/dist/api/preprocessor.api.service.js +0 -111
- package/dist/api/preprocessor.api.service.js.map +0 -1
- package/dist/api/products.api.service.d.ts +0 -80
- package/dist/api/products.api.service.d.ts.map +0 -1
- package/dist/api/products.api.service.js +0 -126
- package/dist/api/products.api.service.js.map +0 -1
- package/dist/api/resource.api.service.d.ts +0 -77
- package/dist/api/resource.api.service.d.ts.map +0 -1
- package/dist/api/resource.api.service.js +0 -74
- package/dist/api/resource.api.service.js.map +0 -1
- package/dist/api/skills.api.service.d.ts +0 -94
- package/dist/api/skills.api.service.d.ts.map +0 -1
- package/dist/api/skills.api.service.js +0 -120
- package/dist/api/skills.api.service.js.map +0 -1
- package/dist/api/tool.api.service.d.ts +0 -53
- package/dist/api/tool.api.service.d.ts.map +0 -1
- package/dist/api/tool.api.service.js +0 -74
- package/dist/api/tool.api.service.js.map +0 -1
- package/dist/api/unifiedto.api.service.d.ts +0 -133
- package/dist/api/unifiedto.api.service.d.ts.map +0 -1
- package/dist/api/unifiedto.api.service.js +0 -166
- package/dist/api/unifiedto.api.service.js.map +0 -1
- package/dist/api/user.data.api.service.d.ts +0 -69
- package/dist/api/user.data.api.service.d.ts.map +0 -1
- package/dist/api/user.data.api.service.js +0 -158
- package/dist/api/user.data.api.service.js.map +0 -1
- package/dist/api/webhook.api.service.d.ts +0 -163
- package/dist/api/webhook.api.service.d.ts.map +0 -1
- package/dist/api/webhook.api.service.js +0 -140
- package/dist/api/webhook.api.service.js.map +0 -1
- package/dist/api/whatsapp-templates.api.service.d.ts +0 -41
- package/dist/api/whatsapp-templates.api.service.d.ts.map +0 -1
- package/dist/api/whatsapp-templates.api.service.js +0 -79
- package/dist/api/whatsapp-templates.api.service.js.map +0 -1
- package/dist/api-exports.d.ts.map +0 -1
- package/dist/cli/command-definitions.d.ts +0 -29
- package/dist/cli/command-definitions.d.ts.map +0 -1
- package/dist/cli/command-definitions.js +0 -943
- package/dist/cli/command-definitions.js.map +0 -1
- package/dist/commands/admin.d.ts +0 -24
- package/dist/commands/admin.d.ts.map +0 -1
- package/dist/commands/admin.js +0 -44
- package/dist/commands/admin.js.map +0 -1
- package/dist/commands/agents.d.ts +0 -23
- package/dist/commands/agents.d.ts.map +0 -1
- package/dist/commands/agents.js +0 -83
- package/dist/commands/agents.js.map +0 -1
- package/dist/commands/apiKey.d.ts +0 -8
- package/dist/commands/apiKey.d.ts.map +0 -1
- package/dist/commands/apiKey.js +0 -43
- package/dist/commands/apiKey.js.map +0 -1
- package/dist/commands/channels.d.ts +0 -13
- package/dist/commands/channels.d.ts.map +0 -1
- package/dist/commands/channels.js +0 -747
- package/dist/commands/channels.js.map +0 -1
- package/dist/commands/chat-log-probe.d.ts +0 -59
- package/dist/commands/chat-log-probe.d.ts.map +0 -1
- package/dist/commands/chat-log-probe.js +0 -87
- package/dist/commands/chat-log-probe.js.map +0 -1
- package/dist/commands/chat.d.ts +0 -20
- package/dist/commands/chat.d.ts.map +0 -1
- package/dist/commands/chat.js +0 -618
- package/dist/commands/chat.js.map +0 -1
- package/dist/commands/chatClear.d.ts +0 -25
- package/dist/commands/chatClear.d.ts.map +0 -1
- package/dist/commands/chatClear.js +0 -71
- package/dist/commands/chatClear.js.map +0 -1
- package/dist/commands/compile.d.ts +0 -48
- package/dist/commands/compile.d.ts.map +0 -1
- package/dist/commands/compile.js +0 -216
- package/dist/commands/compile.js.map +0 -1
- package/dist/commands/completion.d.ts +0 -12
- package/dist/commands/completion.d.ts.map +0 -1
- package/dist/commands/completion.js +0 -211
- package/dist/commands/completion.js.map +0 -1
- package/dist/commands/configure.d.ts +0 -42
- package/dist/commands/configure.d.ts.map +0 -1
- package/dist/commands/configure.js +0 -76
- package/dist/commands/configure.js.map +0 -1
- package/dist/commands/deploy.d.ts +0 -14
- package/dist/commands/deploy.d.ts.map +0 -1
- package/dist/commands/deploy.js +0 -517
- package/dist/commands/deploy.js.map +0 -1
- package/dist/commands/destroy.d.ts +0 -8
- package/dist/commands/destroy.d.ts.map +0 -1
- package/dist/commands/destroy.js +0 -66
- package/dist/commands/destroy.js.map +0 -1
- package/dist/commands/devices.d.ts +0 -6
- package/dist/commands/devices.d.ts.map +0 -1
- package/dist/commands/devices.js +0 -265
- package/dist/commands/devices.js.map +0 -1
- package/dist/commands/docs.d.ts +0 -20
- package/dist/commands/docs.d.ts.map +0 -1
- package/dist/commands/docs.js +0 -33
- package/dist/commands/docs.js.map +0 -1
- package/dist/commands/env.d.ts +0 -34
- package/dist/commands/env.d.ts.map +0 -1
- package/dist/commands/env.js +0 -612
- package/dist/commands/env.js.map +0 -1
- package/dist/commands/evals.d.ts +0 -9
- package/dist/commands/evals.d.ts.map +0 -1
- package/dist/commands/evals.js +0 -27
- package/dist/commands/evals.js.map +0 -1
- package/dist/commands/features.d.ts +0 -13
- package/dist/commands/features.d.ts.map +0 -1
- package/dist/commands/features.js +0 -455
- package/dist/commands/features.js.map +0 -1
- package/dist/commands/governance.d.ts +0 -7
- package/dist/commands/governance.d.ts.map +0 -1
- package/dist/commands/governance.js +0 -258
- package/dist/commands/governance.js.map +0 -1
- package/dist/commands/index.d.ts +0 -38
- package/dist/commands/index.d.ts.map +0 -1
- package/dist/commands/index.js +0 -38
- package/dist/commands/index.js.map +0 -1
- package/dist/commands/init.d.ts +0 -53
- package/dist/commands/init.d.ts.map +0 -1
- package/dist/commands/init.js +0 -992
- package/dist/commands/init.js.map +0 -1
- package/dist/commands/integrations.d.ts +0 -18
- package/dist/commands/integrations.d.ts.map +0 -1
- package/dist/commands/integrations.js +0 -2666
- package/dist/commands/integrations.js.map +0 -1
- package/dist/commands/jobs.d.ts +0 -13
- package/dist/commands/jobs.d.ts.map +0 -1
- package/dist/commands/jobs.js +0 -736
- package/dist/commands/jobs.js.map +0 -1
- package/dist/commands/log-tip.d.ts +0 -79
- package/dist/commands/log-tip.d.ts.map +0 -1
- package/dist/commands/log-tip.js +0 -83
- package/dist/commands/log-tip.js.map +0 -1
- package/dist/commands/logs.d.ts +0 -13
- package/dist/commands/logs.d.ts.map +0 -1
- package/dist/commands/logs.js +0 -493
- package/dist/commands/logs.js.map +0 -1
- package/dist/commands/marketplace.d.ts +0 -34
- package/dist/commands/marketplace.d.ts.map +0 -1
- package/dist/commands/marketplace.js +0 -2105
- package/dist/commands/marketplace.js.map +0 -1
- package/dist/commands/mcp.d.ts +0 -32
- package/dist/commands/mcp.d.ts.map +0 -1
- package/dist/commands/mcp.js +0 -395
- package/dist/commands/mcp.js.map +0 -1
- package/dist/commands/models.d.ts +0 -18
- package/dist/commands/models.d.ts.map +0 -1
- package/dist/commands/models.js +0 -207
- package/dist/commands/models.js.map +0 -1
- package/dist/commands/persona.d.ts +0 -13
- package/dist/commands/persona.d.ts.map +0 -1
- package/dist/commands/persona.js +0 -560
- package/dist/commands/persona.js.map +0 -1
- package/dist/commands/postprocessors.d.ts +0 -13
- package/dist/commands/postprocessors.d.ts.map +0 -1
- package/dist/commands/postprocessors.js +0 -558
- package/dist/commands/postprocessors.js.map +0 -1
- package/dist/commands/preprocessors.d.ts +0 -13
- package/dist/commands/preprocessors.d.ts.map +0 -1
- package/dist/commands/preprocessors.js +0 -558
- package/dist/commands/preprocessors.js.map +0 -1
- package/dist/commands/production.d.ts +0 -13
- package/dist/commands/production.d.ts.map +0 -1
- package/dist/commands/production.js +0 -588
- package/dist/commands/production.js.map +0 -1
- package/dist/commands/push-helpers.d.ts +0 -42
- package/dist/commands/push-helpers.d.ts.map +0 -1
- package/dist/commands/push-helpers.js +0 -48
- package/dist/commands/push-helpers.js.map +0 -1
- package/dist/commands/push.d.ts +0 -31
- package/dist/commands/push.d.ts.map +0 -1
- package/dist/commands/push.js +0 -1262
- package/dist/commands/push.js.map +0 -1
- package/dist/commands/pushBackup.d.ts +0 -78
- package/dist/commands/pushBackup.d.ts.map +0 -1
- package/dist/commands/pushBackup.js +0 -274
- package/dist/commands/pushBackup.js.map +0 -1
- package/dist/commands/resources.d.ts +0 -13
- package/dist/commands/resources.d.ts.map +0 -1
- package/dist/commands/resources.js +0 -377
- package/dist/commands/resources.js.map +0 -1
- package/dist/commands/skills.d.ts +0 -13
- package/dist/commands/skills.d.ts.map +0 -1
- package/dist/commands/skills.js +0 -618
- package/dist/commands/skills.js.map +0 -1
- package/dist/commands/source.d.ts +0 -72
- package/dist/commands/source.d.ts.map +0 -1
- package/dist/commands/source.js +0 -134
- package/dist/commands/source.js.map +0 -1
- package/dist/commands/status.d.ts +0 -14
- package/dist/commands/status.d.ts.map +0 -1
- package/dist/commands/status.js +0 -731
- package/dist/commands/status.js.map +0 -1
- package/dist/commands/sync.d.ts +0 -28
- package/dist/commands/sync.d.ts.map +0 -1
- package/dist/commands/sync.js +0 -802
- package/dist/commands/sync.js.map +0 -1
- package/dist/commands/telemetry.d.ts +0 -6
- package/dist/commands/telemetry.d.ts.map +0 -1
- package/dist/commands/telemetry.js +0 -42
- package/dist/commands/telemetry.js.map +0 -1
- package/dist/commands/test-output.helpers.d.ts +0 -24
- package/dist/commands/test-output.helpers.d.ts.map +0 -1
- package/dist/commands/test-output.helpers.js +0 -62
- package/dist/commands/test-output.helpers.js.map +0 -1
- package/dist/commands/test.d.ts +0 -9
- package/dist/commands/test.d.ts.map +0 -1
- package/dist/commands/test.js +0 -787
- package/dist/commands/test.js.map +0 -1
- package/dist/commands/update.d.ts +0 -14
- package/dist/commands/update.d.ts.map +0 -1
- package/dist/commands/update.js +0 -97
- package/dist/commands/update.js.map +0 -1
- package/dist/commands/webhooks.d.ts +0 -13
- package/dist/commands/webhooks.d.ts.map +0 -1
- package/dist/commands/webhooks.js +0 -691
- package/dist/commands/webhooks.js.map +0 -1
- package/dist/compiler/agent-traverser.d.ts +0 -140
- package/dist/compiler/agent-traverser.d.ts.map +0 -1
- package/dist/compiler/agent-traverser.js +0 -420
- package/dist/compiler/agent-traverser.js.map +0 -1
- package/dist/compiler/bundler.d.ts +0 -43
- package/dist/compiler/bundler.d.ts.map +0 -1
- package/dist/compiler/bundler.js +0 -188
- package/dist/compiler/bundler.js.map +0 -1
- package/dist/compiler/compiler.d.ts +0 -208
- package/dist/compiler/compiler.d.ts.map +0 -1
- package/dist/compiler/compiler.js +0 -706
- package/dist/compiler/compiler.js.map +0 -1
- package/dist/compiler/index.d.ts +0 -38
- package/dist/compiler/index.d.ts.map +0 -1
- package/dist/compiler/index.js +0 -43
- package/dist/compiler/index.js.map +0 -1
- package/dist/compiler/plugins/agent.plugin.d.ts +0 -58
- package/dist/compiler/plugins/agent.plugin.d.ts.map +0 -1
- package/dist/compiler/plugins/agent.plugin.js +0 -161
- package/dist/compiler/plugins/agent.plugin.js.map +0 -1
- package/dist/compiler/plugins/base.d.ts +0 -334
- package/dist/compiler/plugins/base.d.ts.map +0 -1
- package/dist/compiler/plugins/base.js +0 -353
- package/dist/compiler/plugins/base.js.map +0 -1
- package/dist/compiler/plugins/device-trigger.plugin.d.ts +0 -38
- package/dist/compiler/plugins/device-trigger.plugin.d.ts.map +0 -1
- package/dist/compiler/plugins/device-trigger.plugin.js +0 -107
- package/dist/compiler/plugins/device-trigger.plugin.js.map +0 -1
- package/dist/compiler/plugins/device.plugin.d.ts +0 -39
- package/dist/compiler/plugins/device.plugin.d.ts.map +0 -1
- package/dist/compiler/plugins/device.plugin.js +0 -77
- package/dist/compiler/plugins/device.plugin.js.map +0 -1
- package/dist/compiler/plugins/job.plugin.d.ts +0 -34
- package/dist/compiler/plugins/job.plugin.d.ts.map +0 -1
- package/dist/compiler/plugins/job.plugin.js +0 -108
- package/dist/compiler/plugins/job.plugin.js.map +0 -1
- package/dist/compiler/plugins/mcp-server.plugin.d.ts +0 -38
- package/dist/compiler/plugins/mcp-server.plugin.d.ts.map +0 -1
- package/dist/compiler/plugins/mcp-server.plugin.js +0 -107
- package/dist/compiler/plugins/mcp-server.plugin.js.map +0 -1
- package/dist/compiler/plugins/postprocessor.plugin.d.ts +0 -21
- package/dist/compiler/plugins/postprocessor.plugin.d.ts.map +0 -1
- package/dist/compiler/plugins/postprocessor.plugin.js +0 -36
- package/dist/compiler/plugins/postprocessor.plugin.js.map +0 -1
- package/dist/compiler/plugins/preprocessor.plugin.d.ts +0 -21
- package/dist/compiler/plugins/preprocessor.plugin.d.ts.map +0 -1
- package/dist/compiler/plugins/preprocessor.plugin.js +0 -38
- package/dist/compiler/plugins/preprocessor.plugin.js.map +0 -1
- package/dist/compiler/plugins/processor-base.d.ts +0 -17
- package/dist/compiler/plugins/processor-base.d.ts.map +0 -1
- package/dist/compiler/plugins/processor-base.js +0 -27
- package/dist/compiler/plugins/processor-base.js.map +0 -1
- package/dist/compiler/plugins/registry.d.ts +0 -62
- package/dist/compiler/plugins/registry.d.ts.map +0 -1
- package/dist/compiler/plugins/registry.js +0 -113
- package/dist/compiler/plugins/registry.js.map +0 -1
- package/dist/compiler/plugins/skill.plugin.d.ts +0 -106
- package/dist/compiler/plugins/skill.plugin.d.ts.map +0 -1
- package/dist/compiler/plugins/skill.plugin.js +0 -316
- package/dist/compiler/plugins/skill.plugin.js.map +0 -1
- package/dist/compiler/plugins/tool.plugin.d.ts +0 -69
- package/dist/compiler/plugins/tool.plugin.d.ts.map +0 -1
- package/dist/compiler/plugins/tool.plugin.js +0 -262
- package/dist/compiler/plugins/tool.plugin.js.map +0 -1
- package/dist/compiler/plugins/webhook.plugin.d.ts +0 -38
- package/dist/compiler/plugins/webhook.plugin.d.ts.map +0 -1
- package/dist/compiler/plugins/webhook.plugin.js +0 -117
- package/dist/compiler/plugins/webhook.plugin.js.map +0 -1
- package/dist/compiler/source-writer.d.ts +0 -129
- package/dist/compiler/source-writer.d.ts.map +0 -1
- package/dist/compiler/source-writer.js +0 -329
- package/dist/compiler/source-writer.js.map +0 -1
- package/dist/compiler/types.d.ts +0 -391
- package/dist/compiler/types.d.ts.map +0 -1
- package/dist/compiler/types.js +0 -30
- package/dist/compiler/types.js.map +0 -1
- package/dist/compiler/utils/ast-helpers.d.ts +0 -106
- package/dist/compiler/utils/ast-helpers.d.ts.map +0 -1
- package/dist/compiler/utils/ast-helpers.js +0 -356
- package/dist/compiler/utils/ast-helpers.js.map +0 -1
- package/dist/compiler/utils/common.d.ts +0 -22
- package/dist/compiler/utils/common.d.ts.map +0 -1
- package/dist/compiler/utils/common.js +0 -55
- package/dist/compiler/utils/common.js.map +0 -1
- package/dist/compiler/utils/file-discovery.d.ts +0 -35
- package/dist/compiler/utils/file-discovery.d.ts.map +0 -1
- package/dist/compiler/utils/file-discovery.js +0 -60
- package/dist/compiler/utils/file-discovery.js.map +0 -1
- package/dist/compiler/utils/path-resolver.d.ts +0 -83
- package/dist/compiler/utils/path-resolver.d.ts.map +0 -1
- package/dist/compiler/utils/path-resolver.js +0 -162
- package/dist/compiler/utils/path-resolver.js.map +0 -1
- package/dist/compiler/utils/reference-resolver.d.ts +0 -196
- package/dist/compiler/utils/reference-resolver.d.ts.map +0 -1
- package/dist/compiler/utils/reference-resolver.js +0 -1026
- package/dist/compiler/utils/reference-resolver.js.map +0 -1
- package/dist/compiler/utils/schema-converter.d.ts +0 -52
- package/dist/compiler/utils/schema-converter.d.ts.map +0 -1
- package/dist/compiler/utils/schema-converter.js +0 -170
- package/dist/compiler/utils/schema-converter.js.map +0 -1
- package/dist/compiler/utils/workspace.d.ts +0 -35
- package/dist/compiler/utils/workspace.d.ts.map +0 -1
- package/dist/compiler/utils/workspace.js +0 -121
- package/dist/compiler/utils/workspace.js.map +0 -1
- package/dist/config/compile.constants.d.ts +0 -75
- package/dist/config/compile.constants.d.ts.map +0 -1
- package/dist/config/compile.constants.js +0 -95
- package/dist/config/compile.constants.js.map +0 -1
- package/dist/config/constants.d.ts +0 -49
- package/dist/config/constants.d.ts.map +0 -1
- package/dist/config/constants.js +0 -69
- package/dist/config/constants.js.map +0 -1
- package/dist/errors/auth.error.d.ts +0 -34
- package/dist/errors/auth.error.d.ts.map +0 -1
- package/dist/errors/auth.error.js +0 -29
- package/dist/errors/auth.error.js.map +0 -1
- package/dist/errors/index.d.ts +0 -5
- package/dist/errors/index.d.ts.map +0 -1
- package/dist/errors/index.js +0 -5
- package/dist/errors/index.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/instances/basket.instance.d.ts +0 -82
- package/dist/instances/basket.instance.d.ts.map +0 -1
- package/dist/instances/basket.instance.js +0 -245
- package/dist/instances/basket.instance.js.map +0 -1
- package/dist/instances/data.entry.instance.d.ts +0 -50
- package/dist/instances/data.entry.instance.d.ts.map +0 -1
- package/dist/instances/data.entry.instance.js +0 -163
- package/dist/instances/data.entry.instance.js.map +0 -1
- package/dist/instances/job.instance.d.ts +0 -133
- package/dist/instances/job.instance.d.ts.map +0 -1
- package/dist/instances/job.instance.js +0 -180
- package/dist/instances/job.instance.js.map +0 -1
- package/dist/instances/order.instance.d.ts +0 -50
- package/dist/instances/order.instance.d.ts.map +0 -1
- package/dist/instances/order.instance.js +0 -199
- package/dist/instances/order.instance.js.map +0 -1
- package/dist/instances/product.instance.d.ts +0 -43
- package/dist/instances/product.instance.d.ts.map +0 -1
- package/dist/instances/product.instance.js +0 -145
- package/dist/instances/product.instance.js.map +0 -1
- package/dist/instances/product.pagination.instance.d.ts +0 -102
- package/dist/instances/product.pagination.instance.d.ts.map +0 -1
- package/dist/instances/product.pagination.instance.js +0 -156
- package/dist/instances/product.pagination.instance.js.map +0 -1
- package/dist/instances/product.search.instance.d.ts +0 -81
- package/dist/instances/product.search.instance.d.ts.map +0 -1
- package/dist/instances/product.search.instance.js +0 -121
- package/dist/instances/product.search.instance.js.map +0 -1
- package/dist/instances/user.instance.d.ts +0 -56
- package/dist/instances/user.instance.d.ts.map +0 -1
- package/dist/instances/user.instance.js +0 -188
- package/dist/instances/user.instance.js.map +0 -1
- package/dist/interfaces/admin.d.ts +0 -64
- package/dist/interfaces/admin.d.ts.map +0 -1
- package/dist/interfaces/admin.js +0 -6
- package/dist/interfaces/admin.js.map +0 -1
- package/dist/interfaces/agent.d.ts +0 -399
- package/dist/interfaces/agent.d.ts.map +0 -1
- package/dist/interfaces/agent.js +0 -6
- package/dist/interfaces/agent.js.map +0 -1
- package/dist/interfaces/backup.d.ts +0 -17
- package/dist/interfaces/backup.d.ts.map +0 -1
- package/dist/interfaces/backup.js +0 -7
- package/dist/interfaces/backup.js.map +0 -1
- package/dist/interfaces/baskets.d.ts +0 -80
- package/dist/interfaces/baskets.d.ts.map +0 -1
- package/dist/interfaces/baskets.js +0 -20
- package/dist/interfaces/baskets.js.map +0 -1
- package/dist/interfaces/cdn.d.ts +0 -25
- package/dist/interfaces/cdn.d.ts.map +0 -1
- package/dist/interfaces/cdn.js +0 -6
- package/dist/interfaces/cdn.js.map +0 -1
- package/dist/interfaces/chat.d.ts +0 -98
- package/dist/interfaces/chat.d.ts.map +0 -1
- package/dist/interfaces/chat.js +0 -6
- package/dist/interfaces/chat.js.map +0 -1
- package/dist/interfaces/common.d.ts +0 -64
- package/dist/interfaces/common.d.ts.map +0 -1
- package/dist/interfaces/common.js +0 -9
- package/dist/interfaces/common.js.map +0 -1
- package/dist/interfaces/custom.data.d.ts +0 -83
- package/dist/interfaces/custom.data.d.ts.map +0 -1
- package/dist/interfaces/custom.data.js +0 -6
- package/dist/interfaces/custom.data.js.map +0 -1
- package/dist/interfaces/deploy.d.ts +0 -15
- package/dist/interfaces/deploy.d.ts.map +0 -1
- package/dist/interfaces/deploy.js +0 -5
- package/dist/interfaces/deploy.js.map +0 -1
- package/dist/interfaces/dev.d.ts +0 -54
- package/dist/interfaces/dev.d.ts.map +0 -1
- package/dist/interfaces/dev.js +0 -6
- package/dist/interfaces/dev.js.map +0 -1
- package/dist/interfaces/device-triggers.d.ts +0 -80
- package/dist/interfaces/device-triggers.d.ts.map +0 -1
- package/dist/interfaces/device-triggers.js +0 -6
- package/dist/interfaces/device-triggers.js.map +0 -1
- package/dist/interfaces/devices.d.ts +0 -74
- package/dist/interfaces/devices.d.ts.map +0 -1
- package/dist/interfaces/devices.js +0 -5
- package/dist/interfaces/devices.js.map +0 -1
- package/dist/interfaces/index.d.ts +0 -15
- package/dist/interfaces/index.d.ts.map +0 -1
- package/dist/interfaces/index.js +0 -8
- package/dist/interfaces/index.js.map +0 -1
- package/dist/interfaces/init.d.ts +0 -42
- package/dist/interfaces/init.d.ts.map +0 -1
- package/dist/interfaces/init.js +0 -5
- package/dist/interfaces/init.js.map +0 -1
- package/dist/interfaces/jobs.d.ts +0 -149
- package/dist/interfaces/jobs.d.ts.map +0 -1
- package/dist/interfaces/jobs.js +0 -6
- package/dist/interfaces/jobs.js.map +0 -1
- package/dist/interfaces/logs.d.ts +0 -44
- package/dist/interfaces/logs.d.ts.map +0 -1
- package/dist/interfaces/logs.js +0 -6
- package/dist/interfaces/logs.js.map +0 -1
- package/dist/interfaces/lua.d.ts +0 -37
- package/dist/interfaces/lua.d.ts.map +0 -1
- package/dist/interfaces/lua.js +0 -6
- package/dist/interfaces/lua.js.map +0 -1
- package/dist/interfaces/marketplace.d.ts +0 -171
- package/dist/interfaces/marketplace.d.ts.map +0 -1
- package/dist/interfaces/marketplace.js +0 -3
- package/dist/interfaces/marketplace.js.map +0 -1
- package/dist/interfaces/mcp.d.ts +0 -96
- package/dist/interfaces/mcp.d.ts.map +0 -1
- package/dist/interfaces/mcp.js +0 -9
- package/dist/interfaces/mcp.js.map +0 -1
- package/dist/interfaces/message.d.ts +0 -16
- package/dist/interfaces/message.d.ts.map +0 -1
- package/dist/interfaces/message.js +0 -2
- package/dist/interfaces/message.js.map +0 -1
- package/dist/interfaces/orders.d.ts +0 -68
- package/dist/interfaces/orders.d.ts.map +0 -1
- package/dist/interfaces/orders.js +0 -20
- package/dist/interfaces/orders.js.map +0 -1
- package/dist/interfaces/persona.d.ts +0 -44
- package/dist/interfaces/persona.d.ts.map +0 -1
- package/dist/interfaces/persona.js +0 -6
- package/dist/interfaces/persona.js.map +0 -1
- package/dist/interfaces/postprocessors.d.ts +0 -15
- package/dist/interfaces/postprocessors.d.ts.map +0 -1
- package/dist/interfaces/postprocessors.js +0 -5
- package/dist/interfaces/postprocessors.js.map +0 -1
- package/dist/interfaces/preprocessors.d.ts +0 -15
- package/dist/interfaces/preprocessors.d.ts.map +0 -1
- package/dist/interfaces/preprocessors.js +0 -5
- package/dist/interfaces/preprocessors.js.map +0 -1
- package/dist/interfaces/product.d.ts +0 -92
- package/dist/interfaces/product.d.ts.map +0 -1
- package/dist/interfaces/product.js +0 -6
- package/dist/interfaces/product.js.map +0 -1
- package/dist/interfaces/push.d.ts +0 -27
- package/dist/interfaces/push.d.ts.map +0 -1
- package/dist/interfaces/push.js +0 -5
- package/dist/interfaces/push.js.map +0 -1
- package/dist/interfaces/skills.d.ts +0 -137
- package/dist/interfaces/skills.d.ts.map +0 -1
- package/dist/interfaces/skills.js +0 -6
- package/dist/interfaces/skills.js.map +0 -1
- package/dist/interfaces/test.d.ts +0 -37
- package/dist/interfaces/test.d.ts.map +0 -1
- package/dist/interfaces/test.js +0 -5
- package/dist/interfaces/test.js.map +0 -1
- package/dist/interfaces/unifiedto.d.ts +0 -141
- package/dist/interfaces/unifiedto.d.ts.map +0 -1
- package/dist/interfaces/unifiedto.js +0 -6
- package/dist/interfaces/unifiedto.js.map +0 -1
- package/dist/interfaces/user.d.ts +0 -75
- package/dist/interfaces/user.d.ts.map +0 -1
- package/dist/interfaces/user.js +0 -2
- package/dist/interfaces/user.js.map +0 -1
- package/dist/interfaces/webhooks.d.ts +0 -97
- package/dist/interfaces/webhooks.d.ts.map +0 -1
- package/dist/interfaces/webhooks.js +0 -6
- package/dist/interfaces/webhooks.js.map +0 -1
- package/dist/interfaces/whatsapp-templates.d.ts +0 -105
- package/dist/interfaces/whatsapp-templates.d.ts.map +0 -1
- package/dist/interfaces/whatsapp-templates.js +0 -6
- package/dist/interfaces/whatsapp-templates.js.map +0 -1
- package/dist/primitives/agent.handler.d.ts +0 -71
- package/dist/primitives/agent.handler.d.ts.map +0 -1
- package/dist/primitives/agent.handler.js +0 -226
- package/dist/primitives/agent.handler.js.map +0 -1
- package/dist/primitives/base.handler.d.ts +0 -229
- package/dist/primitives/base.handler.d.ts.map +0 -1
- package/dist/primitives/base.handler.js +0 -620
- package/dist/primitives/base.handler.js.map +0 -1
- package/dist/primitives/device-trigger.handler.d.ts +0 -56
- package/dist/primitives/device-trigger.handler.d.ts.map +0 -1
- package/dist/primitives/device-trigger.handler.js +0 -99
- package/dist/primitives/device-trigger.handler.js.map +0 -1
- package/dist/primitives/device.handler.d.ts +0 -57
- package/dist/primitives/device.handler.d.ts.map +0 -1
- package/dist/primitives/device.handler.js +0 -103
- package/dist/primitives/device.handler.js.map +0 -1
- package/dist/primitives/index.d.ts +0 -51
- package/dist/primitives/index.d.ts.map +0 -1
- package/dist/primitives/index.js +0 -75
- package/dist/primitives/index.js.map +0 -1
- package/dist/primitives/job.handler.d.ts +0 -53
- package/dist/primitives/job.handler.d.ts.map +0 -1
- package/dist/primitives/job.handler.js +0 -110
- package/dist/primitives/job.handler.js.map +0 -1
- package/dist/primitives/mcp-server.handler.d.ts +0 -93
- package/dist/primitives/mcp-server.handler.d.ts.map +0 -1
- package/dist/primitives/mcp-server.handler.js +0 -216
- package/dist/primitives/mcp-server.handler.js.map +0 -1
- package/dist/primitives/postprocessor.handler.d.ts +0 -44
- package/dist/primitives/postprocessor.handler.d.ts.map +0 -1
- package/dist/primitives/postprocessor.handler.js +0 -71
- package/dist/primitives/postprocessor.handler.js.map +0 -1
- package/dist/primitives/preprocessor.handler.d.ts +0 -44
- package/dist/primitives/preprocessor.handler.d.ts.map +0 -1
- package/dist/primitives/preprocessor.handler.js +0 -72
- package/dist/primitives/preprocessor.handler.js.map +0 -1
- package/dist/primitives/skill.handler.d.ts +0 -47
- package/dist/primitives/skill.handler.d.ts.map +0 -1
- package/dist/primitives/skill.handler.js +0 -229
- package/dist/primitives/skill.handler.js.map +0 -1
- package/dist/primitives/types.d.ts +0 -91
- package/dist/primitives/types.d.ts.map +0 -1
- package/dist/primitives/types.js +0 -17
- package/dist/primitives/types.js.map +0 -1
- package/dist/primitives/webhook.handler.d.ts +0 -47
- package/dist/primitives/webhook.handler.d.ts.map +0 -1
- package/dist/primitives/webhook.handler.js +0 -87
- package/dist/primitives/webhook.handler.js.map +0 -1
- package/dist/services/analytics.d.ts +0 -57
- package/dist/services/analytics.d.ts.map +0 -1
- package/dist/services/analytics.js +0 -317
- package/dist/services/analytics.js.map +0 -1
- package/dist/services/auth.d.ts +0 -72
- package/dist/services/auth.d.ts.map +0 -1
- package/dist/services/auth.js +0 -173
- package/dist/services/auth.js.map +0 -1
- package/dist/services/sandbox.service.d.ts +0 -105
- package/dist/services/sandbox.service.d.ts.map +0 -1
- package/dist/services/sandbox.service.js +0 -531
- package/dist/services/sandbox.service.js.map +0 -1
- package/dist/types/api-contracts.d.ts +0 -287
- package/dist/types/api-contracts.d.ts.map +0 -1
- package/dist/types/api-contracts.js +0 -2
- package/dist/types/api-contracts.js.map +0 -1
- package/dist/types/index.d.ts +0 -28
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/index.js +0 -30
- package/dist/types/index.js.map +0 -1
- package/dist/types/skill.d.ts +0 -1079
- package/dist/types/skill.d.ts.map +0 -1
- package/dist/types/skill.js +0 -688
- package/dist/types/skill.js.map +0 -1
- package/dist/types/tool-validation.d.ts +0 -35
- package/dist/types/tool-validation.d.ts.map +0 -1
- package/dist/types/tool-validation.js +0 -43
- package/dist/types/tool-validation.js.map +0 -1
- package/dist/types/yaml.types.d.ts +0 -91
- package/dist/types/yaml.types.d.ts.map +0 -1
- package/dist/types/yaml.types.js +0 -5
- package/dist/types/yaml.types.js.map +0 -1
- package/dist/utils/aliases.d.ts +0 -7
- package/dist/utils/aliases.d.ts.map +0 -1
- package/dist/utils/aliases.js +0 -492
- package/dist/utils/aliases.js.map +0 -1
- package/dist/utils/artifact-loader.d.ts +0 -152
- package/dist/utils/artifact-loader.d.ts.map +0 -1
- package/dist/utils/artifact-loader.js +0 -284
- package/dist/utils/artifact-loader.js.map +0 -1
- package/dist/utils/auth-flows.d.ts +0 -55
- package/dist/utils/auth-flows.d.ts.map +0 -1
- package/dist/utils/auth-flows.js +0 -246
- package/dist/utils/auth-flows.js.map +0 -1
- package/dist/utils/backup-helpers.d.ts +0 -238
- package/dist/utils/backup-helpers.d.ts.map +0 -1
- package/dist/utils/backup-helpers.js +0 -704
- package/dist/utils/backup-helpers.js.map +0 -1
- package/dist/utils/build-manifest-from-disk.d.ts +0 -8
- package/dist/utils/build-manifest-from-disk.d.ts.map +0 -1
- package/dist/utils/build-manifest-from-disk.js +0 -21
- package/dist/utils/build-manifest-from-disk.js.map +0 -1
- package/dist/utils/bundle-upload.d.ts +0 -42
- package/dist/utils/bundle-upload.d.ts.map +0 -1
- package/dist/utils/bundle-upload.js +0 -90
- package/dist/utils/bundle-upload.js.map +0 -1
- package/dist/utils/chat-attachments.d.ts +0 -15
- package/dist/utils/chat-attachments.d.ts.map +0 -1
- package/dist/utils/chat-attachments.js +0 -116
- package/dist/utils/chat-attachments.js.map +0 -1
- package/dist/utils/cli.d.ts +0 -62
- package/dist/utils/cli.d.ts.map +0 -1
- package/dist/utils/cli.js +0 -198
- package/dist/utils/cli.js.map +0 -1
- package/dist/utils/command-utils.d.ts +0 -46
- package/dist/utils/command-utils.d.ts.map +0 -1
- package/dist/utils/command-utils.js +0 -74
- package/dist/utils/command-utils.js.map +0 -1
- package/dist/utils/deploy-helpers.d.ts +0 -40
- package/dist/utils/deploy-helpers.d.ts.map +0 -1
- package/dist/utils/deploy-helpers.js +0 -76
- package/dist/utils/deploy-helpers.js.map +0 -1
- package/dist/utils/env-loader.utils.d.ts +0 -19
- package/dist/utils/env-loader.utils.d.ts.map +0 -1
- package/dist/utils/env-loader.utils.js +0 -90
- package/dist/utils/env-loader.utils.js.map +0 -1
- package/dist/utils/files.d.ts +0 -65
- package/dist/utils/files.d.ts.map +0 -1
- package/dist/utils/files.js +0 -193
- package/dist/utils/files.js.map +0 -1
- package/dist/utils/hints.d.ts +0 -81
- package/dist/utils/hints.d.ts.map +0 -1
- package/dist/utils/hints.js +0 -81
- package/dist/utils/hints.js.map +0 -1
- package/dist/utils/init-agent.d.ts +0 -86
- package/dist/utils/init-agent.d.ts.map +0 -1
- package/dist/utils/init-agent.js +0 -201
- package/dist/utils/init-agent.js.map +0 -1
- package/dist/utils/init-helpers.d.ts +0 -37
- package/dist/utils/init-helpers.d.ts.map +0 -1
- package/dist/utils/init-helpers.js +0 -78
- package/dist/utils/init-helpers.js.map +0 -1
- package/dist/utils/init-prompts.d.ts +0 -74
- package/dist/utils/init-prompts.d.ts.map +0 -1
- package/dist/utils/init-prompts.js +0 -256
- package/dist/utils/init-prompts.js.map +0 -1
- package/dist/utils/prompt-handler.d.ts +0 -17
- package/dist/utils/prompt-handler.d.ts.map +0 -1
- package/dist/utils/prompt-handler.js +0 -49
- package/dist/utils/prompt-handler.js.map +0 -1
- package/dist/utils/sandbox-storage.d.ts +0 -83
- package/dist/utils/sandbox-storage.d.ts.map +0 -1
- package/dist/utils/sandbox-storage.js +0 -211
- package/dist/utils/sandbox-storage.js.map +0 -1
- package/dist/utils/sandbox.d.ts +0 -76
- package/dist/utils/sandbox.d.ts.map +0 -1
- package/dist/utils/sandbox.js +0 -664
- package/dist/utils/sandbox.js.map +0 -1
- package/dist/utils/semver.d.ts +0 -40
- package/dist/utils/semver.d.ts.map +0 -1
- package/dist/utils/semver.js +0 -99
- package/dist/utils/semver.js.map +0 -1
- package/dist/utils/suggest.d.ts +0 -3
- package/dist/utils/suggest.d.ts.map +0 -1
- package/dist/utils/suggest.js +0 -32
- package/dist/utils/suggest.js.map +0 -1
- package/dist/utils/sync-display.d.ts +0 -28
- package/dist/utils/sync-display.d.ts.map +0 -1
- package/dist/utils/sync-display.js +0 -168
- package/dist/utils/sync-display.js.map +0 -1
- package/dist/utils/sync-fetch.d.ts +0 -108
- package/dist/utils/sync-fetch.d.ts.map +0 -1
- package/dist/utils/sync-fetch.js +0 -294
- package/dist/utils/sync-fetch.js.map +0 -1
- package/dist/utils/sync-helpers.d.ts +0 -7
- package/dist/utils/sync-helpers.d.ts.map +0 -1
- package/dist/utils/sync-helpers.js +0 -7
- package/dist/utils/sync-helpers.js.map +0 -1
- package/dist/utils/version-check.d.ts +0 -37
- package/dist/utils/version-check.d.ts.map +0 -1
- package/dist/utils/version-check.js +0 -117
- package/dist/utils/version-check.js.map +0 -1
- package/dist/utils/write-info.d.ts +0 -9
- package/dist/utils/write-info.d.ts.map +0 -1
- package/dist/utils/write-info.js +0 -11
- package/dist/utils/write-info.js.map +0 -1
- package/node_modules/@lua/shared-source-sync/dist/index.d.mts +0 -424
- package/node_modules/@lua/shared-source-sync/dist/index.d.ts +0 -424
- package/node_modules/@lua/shared-source-sync/dist/index.js +0 -536
- package/node_modules/@lua/shared-source-sync/dist/index.mjs +0 -491
- package/node_modules/@lua/shared-source-sync/package.json +0 -26
- package/node_modules/@lua/shared-source-sync/src/archive.ts +0 -98
- package/node_modules/@lua/shared-source-sync/src/filter.ts +0 -72
- package/node_modules/@lua/shared-source-sync/src/hash.ts +0 -40
- package/node_modules/@lua/shared-source-sync/src/http.ts +0 -132
- package/node_modules/@lua/shared-source-sync/src/index.ts +0 -56
- package/node_modules/@lua/shared-source-sync/src/pull.ts +0 -50
- package/node_modules/@lua/shared-source-sync/src/push.ts +0 -94
- package/node_modules/@lua/shared-source-sync/src/restore.ts +0 -83
- package/node_modules/@lua/shared-source-sync/src/skill-source.ts +0 -55
- package/node_modules/@lua/shared-source-sync/src/transfer.ts +0 -92
- package/node_modules/@lua/shared-source-sync/src/types.ts +0 -88
- package/node_modules/@lua/shared-source-sync/src/walk.ts +0 -91
- package/node_modules/@lua/shared-source-sync/tests/archive.test.ts +0 -108
- package/node_modules/@lua/shared-source-sync/tests/hash.test.ts +0 -40
- package/node_modules/@lua/shared-source-sync/tests/http.test.ts +0 -77
- package/node_modules/@lua/shared-source-sync/tests/push.test.ts +0 -162
- package/node_modules/@lua/shared-source-sync/tests/walk.test.ts +0 -84
- package/node_modules/@lua/shared-source-sync/tsconfig.json +0 -12
- package/node_modules/@lua/shared-source-sync/tsup.config.ts +0 -9
- package/node_modules/@lua/shared-source-sync/vitest.config.ts +0 -8
- package/node_modules/@lua/shared-types/dist/index.d.mts +0 -619
- package/node_modules/@lua/shared-types/dist/index.d.ts +0 -619
- package/node_modules/@lua/shared-types/dist/index.js +0 -435
- package/node_modules/@lua/shared-types/dist/index.mjs +0 -394
- package/node_modules/@lua/shared-types/package.json +0 -26
- package/node_modules/@lua/shared-types/src/agent-config.types.ts +0 -45
- package/node_modules/@lua/shared-types/src/agent-invocation.types.ts +0 -73
- package/node_modules/@lua/shared-types/src/ai-generate.types.ts +0 -74
- package/node_modules/@lua/shared-types/src/ai-generate.utils.ts +0 -16
- package/node_modules/@lua/shared-types/src/channel.type.ts +0 -23
- package/node_modules/@lua/shared-types/src/chat-history.types.ts +0 -112
- package/node_modules/@lua/shared-types/src/chat-stream.types.ts +0 -18
- package/node_modules/@lua/shared-types/src/client-tools.types.ts +0 -47
- package/node_modules/@lua/shared-types/src/device.types.ts +0 -190
- package/node_modules/@lua/shared-types/src/index.ts +0 -15
- package/node_modules/@lua/shared-types/src/model-registry.ts +0 -26
- package/node_modules/@lua/shared-types/src/persona-defaults.ts +0 -59
- package/node_modules/@lua/shared-types/src/persona-text.type.ts +0 -92
- package/node_modules/@lua/shared-types/src/sandbox-contract.ts +0 -63
- package/node_modules/@lua/shared-types/src/unstructured-types.ts +0 -58
- package/node_modules/@lua/shared-types/src/vm-execution-log.types.ts +0 -41
- package/node_modules/@lua/shared-types/tsconfig.json +0 -12
- package/node_modules/@lua/shared-types/tsup.config.ts +0 -9
- package/scripts/resolve-workspace-deps.cjs +0 -61
- /package/dist/{compiler/utils/zod-runtime.mjs → zod-runtime.mjs} +0 -0
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Chat Clear Command
|
|
3
|
-
* Clears conversation history for the agent
|
|
4
|
-
*/
|
|
5
|
-
import { Command } from 'commander';
|
|
6
|
-
/**
|
|
7
|
-
* Chat clear command - clears conversation history
|
|
8
|
-
*
|
|
9
|
-
* Features:
|
|
10
|
-
* - Warning message about data loss
|
|
11
|
-
* - Confirmation prompt (unless --force)
|
|
12
|
-
* - Calls DELETE endpoint to clear history
|
|
13
|
-
* - Optional: clear a specific user's history by identifier
|
|
14
|
-
* - Optional: clear a specific thread for a user
|
|
15
|
-
*
|
|
16
|
-
* @param options - Command options including optional user identifier and force flag
|
|
17
|
-
* @param command - The Commander command instance
|
|
18
|
-
* @returns Promise that resolves when history is cleared
|
|
19
|
-
*/
|
|
20
|
-
export declare function chatClearCommand(options?: {
|
|
21
|
-
user?: string;
|
|
22
|
-
thread?: string;
|
|
23
|
-
force?: boolean;
|
|
24
|
-
}, command?: Command): Promise<void>;
|
|
25
|
-
//# sourceMappingURL=chatClear.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chatClear.d.ts","sourceRoot":"","sources":["../../src/commands/chatClear.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAQH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC;;;;;;;;;;;;;GAaG;AACH,wBAAsB,gBAAgB,CACpC,OAAO,CAAC,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,OAAO,CAAA;CAAE,EAC7D,OAAO,CAAC,EAAE,OAAO,GAChB,OAAO,CAAC,IAAI,CAAC,CAwDf"}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Chat Clear Command
|
|
3
|
-
* Clears conversation history for the agent
|
|
4
|
-
*/
|
|
5
|
-
import { withErrorHandling, writeProgress, writeSuccess } from '../utils/cli.js';
|
|
6
|
-
import { BASE_URLS } from '../config/constants.js';
|
|
7
|
-
import { safePrompt } from '../utils/prompt-handler.js';
|
|
8
|
-
import { initializeCommand } from '../utils/command-utils.js';
|
|
9
|
-
import ChatApi from '../api/chat.api.service.js';
|
|
10
|
-
import { trackEvent } from '../services/analytics.js';
|
|
11
|
-
/**
|
|
12
|
-
* Chat clear command - clears conversation history
|
|
13
|
-
*
|
|
14
|
-
* Features:
|
|
15
|
-
* - Warning message about data loss
|
|
16
|
-
* - Confirmation prompt (unless --force)
|
|
17
|
-
* - Calls DELETE endpoint to clear history
|
|
18
|
-
* - Optional: clear a specific user's history by identifier
|
|
19
|
-
* - Optional: clear a specific thread for a user
|
|
20
|
-
*
|
|
21
|
-
* @param options - Command options including optional user identifier and force flag
|
|
22
|
-
* @param command - The Commander command instance
|
|
23
|
-
* @returns Promise that resolves when history is cleared
|
|
24
|
-
*/
|
|
25
|
-
export async function chatClearCommand(options, command) {
|
|
26
|
-
return withErrorHandling(async () => {
|
|
27
|
-
const resolvedOptions = options ?? {};
|
|
28
|
-
// Initialize command (validates config + auth)
|
|
29
|
-
const { agentId, apiKey } = await initializeCommand();
|
|
30
|
-
// Prepare target context info
|
|
31
|
-
const targetIdentifier = resolvedOptions.user;
|
|
32
|
-
// Commander intercepts parent options if they overlap with subcommand options,
|
|
33
|
-
// so we check both the subcommand options and the parent's options to safely resolve the thread ID.
|
|
34
|
-
const threadId = resolvedOptions.thread ?? command?.parent?.opts()?.thread;
|
|
35
|
-
const force = !!resolvedOptions.force;
|
|
36
|
-
const userContext = targetIdentifier ? `for user ${targetIdentifier}` : 'for your current user';
|
|
37
|
-
const threadContext = threadId ? ` in thread "${threadId}"` : '';
|
|
38
|
-
const context = `${userContext}${threadContext}`;
|
|
39
|
-
// Show warning and confirm (skip if --force)
|
|
40
|
-
if (!force) {
|
|
41
|
-
console.log(`\n⚠️ WARNING: This will clear conversation history ${context}!`);
|
|
42
|
-
console.log('⚠️ This action cannot be undone.\n');
|
|
43
|
-
const confirmAnswer = await safePrompt([
|
|
44
|
-
{
|
|
45
|
-
type: 'confirm',
|
|
46
|
-
name: 'confirm',
|
|
47
|
-
message: `Are you sure you want to clear the conversation history ${context}?`,
|
|
48
|
-
default: false,
|
|
49
|
-
},
|
|
50
|
-
]);
|
|
51
|
-
if (!confirmAnswer || !confirmAnswer.confirm) {
|
|
52
|
-
return;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
// Clear history via API
|
|
56
|
-
writeProgress('🔄 Clearing conversation history...');
|
|
57
|
-
const chatApi = new ChatApi(BASE_URLS.CHAT, apiKey);
|
|
58
|
-
const response = await chatApi.clearHistory(agentId, targetIdentifier, threadId);
|
|
59
|
-
if (!response.success) {
|
|
60
|
-
throw new Error(response.error?.message || 'Failed to clear conversation history');
|
|
61
|
-
}
|
|
62
|
-
writeSuccess(`✅ Conversation history cleared successfully ${context}`);
|
|
63
|
-
console.log(`💡 The chat history has been completely removed ${context}.\n`);
|
|
64
|
-
trackEvent('cli_chat_cleared', {
|
|
65
|
-
force_mode: force,
|
|
66
|
-
has_user_target: !!targetIdentifier,
|
|
67
|
-
has_thread_target: !!threadId,
|
|
68
|
-
});
|
|
69
|
-
}, 'chat clear');
|
|
70
|
-
}
|
|
71
|
-
//# sourceMappingURL=chatClear.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chatClear.js","sour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|
|
5
|
-
/**
|
|
6
|
-
* Main compile command - uses the plugin-based compiler.
|
|
7
|
-
*
|
|
8
|
-
* This command performs the following steps:
|
|
9
|
-
* 1. (with --sync) Runs drift detection check
|
|
10
|
-
* 2. Discovers primitives via LuaAgent traversal or file scanning
|
|
11
|
-
* 3. Validates all primitives using type-specific plugins
|
|
12
|
-
* 4. Bundles each primitive in parallel using esbuild
|
|
13
|
-
* 5. Writes artifacts and generates manifest.json
|
|
14
|
-
* 6. Syncs lua.skill.yaml with compiled manifest
|
|
15
|
-
* 7. Syncs server state with YAML
|
|
16
|
-
*
|
|
17
|
-
* Output:
|
|
18
|
-
* - dist-v2/manifest.json - Central manifest with all primitive metadata
|
|
19
|
-
* - dist-v2/artifacts/ - Bundled primitive files by kind (tool/, skill/, webhook/, etc.)
|
|
20
|
-
* - dist-v2/sources/ - Original source files (for backup/reconstruction)
|
|
21
|
-
*
|
|
22
|
-
* Supported primitives:
|
|
23
|
-
* - Skills (LuaSkill) - collections of tools with shared context
|
|
24
|
-
* - Tools (LuaTool) - individual callable functions with schemas
|
|
25
|
-
* - Webhooks (LuaWebhook) - HTTP endpoints with validation schemas
|
|
26
|
-
* - Jobs (LuaJob) - scheduled tasks with cron/interval schedules
|
|
27
|
-
* - PreProcessors (LuaPreProcessor) - message preprocessing hooks
|
|
28
|
-
* - PostProcessors (LuaPostProcessor) - response postprocessing hooks
|
|
29
|
-
* - MCP Servers - Model Context Protocol server configurations
|
|
30
|
-
*
|
|
31
|
-
* @param options - Command options
|
|
32
|
-
* @param options.debug - Enable debug mode (preserves temp files, verbose esbuild)
|
|
33
|
-
* @param options.verbose - Show detailed progress output
|
|
34
|
-
* @param options.sync - Run drift detection check before compiling (default: off)
|
|
35
|
-
* @param options.topLevel - When true, emit a post-compile next-step hint.
|
|
36
|
-
* Sub-invocations (from `lua push`, `lua chat`, `lua test`) must pass
|
|
37
|
-
* `topLevel: false` (or omit — it defaults to false) so the hint is
|
|
38
|
-
* suppressed; otherwise users see a spurious "run `lua test`" suggestion
|
|
39
|
-
* mid-flow during `lua push` or, worse, mid `lua test` itself.
|
|
40
|
-
* The hint fires only when the user explicitly runs `lua compile`.
|
|
41
|
-
*/
|
|
42
|
-
export declare function compileCommand(options?: {
|
|
43
|
-
debug?: boolean;
|
|
44
|
-
verbose?: boolean;
|
|
45
|
-
sync?: boolean;
|
|
46
|
-
topLevel?: boolean;
|
|
47
|
-
}): Promise<void>;
|
|
48
|
-
//# sourceMappingURL=compile.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"compile.d.ts","sourceRoot":"","sources":["../../src/commands/compile.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAoBH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,wBAAsB,cAAc,CAAC,OAAO,CAAC,EAAE;IAC7C,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,iBAoLA"}
|
package/dist/commands/compile.js
DELETED
|
@@ -1,216 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Compile Command
|
|
3
|
-
* Uses the plugin-based compiler to compile all primitives
|
|
4
|
-
*/
|
|
5
|
-
import path from 'path';
|
|
6
|
-
import { withErrorHandling, writeProgress, writeSuccess, writeError, writeInfo, writeNextStep, writeHintBlock, } from '../utils/cli.js';
|
|
7
|
-
import { readYamlConfig, ensureGitignored } from '../utils/files.js';
|
|
8
|
-
import { getToken } from '../services/auth.js';
|
|
9
|
-
import { runSyncCheck } from './sync.js';
|
|
10
|
-
import { compile } from '../compiler/index.js';
|
|
11
|
-
import { versionedHandlers, syncableHandlers } from '../primitives/index.js';
|
|
12
|
-
import { calculateProjectHash, isBackupOutOfSync } from '../utils/backup-helpers.js';
|
|
13
|
-
import { trackEvent } from '../services/analytics.js';
|
|
14
|
-
/**
|
|
15
|
-
* Main compile command - uses the plugin-based compiler.
|
|
16
|
-
*
|
|
17
|
-
* This command performs the following steps:
|
|
18
|
-
* 1. (with --sync) Runs drift detection check
|
|
19
|
-
* 2. Discovers primitives via LuaAgent traversal or file scanning
|
|
20
|
-
* 3. Validates all primitives using type-specific plugins
|
|
21
|
-
* 4. Bundles each primitive in parallel using esbuild
|
|
22
|
-
* 5. Writes artifacts and generates manifest.json
|
|
23
|
-
* 6. Syncs lua.skill.yaml with compiled manifest
|
|
24
|
-
* 7. Syncs server state with YAML
|
|
25
|
-
*
|
|
26
|
-
* Output:
|
|
27
|
-
* - dist-v2/manifest.json - Central manifest with all primitive metadata
|
|
28
|
-
* - dist-v2/artifacts/ - Bundled primitive files by kind (tool/, skill/, webhook/, etc.)
|
|
29
|
-
* - dist-v2/sources/ - Original source files (for backup/reconstruction)
|
|
30
|
-
*
|
|
31
|
-
* Supported primitives:
|
|
32
|
-
* - Skills (LuaSkill) - collections of tools with shared context
|
|
33
|
-
* - Tools (LuaTool) - individual callable functions with schemas
|
|
34
|
-
* - Webhooks (LuaWebhook) - HTTP endpoints with validation schemas
|
|
35
|
-
* - Jobs (LuaJob) - scheduled tasks with cron/interval schedules
|
|
36
|
-
* - PreProcessors (LuaPreProcessor) - message preprocessing hooks
|
|
37
|
-
* - PostProcessors (LuaPostProcessor) - response postprocessing hooks
|
|
38
|
-
* - MCP Servers - Model Context Protocol server configurations
|
|
39
|
-
*
|
|
40
|
-
* @param options - Command options
|
|
41
|
-
* @param options.debug - Enable debug mode (preserves temp files, verbose esbuild)
|
|
42
|
-
* @param options.verbose - Show detailed progress output
|
|
43
|
-
* @param options.sync - Run drift detection check before compiling (default: off)
|
|
44
|
-
* @param options.topLevel - When true, emit a post-compile next-step hint.
|
|
45
|
-
* Sub-invocations (from `lua push`, `lua chat`, `lua test`) must pass
|
|
46
|
-
* `topLevel: false` (or omit — it defaults to false) so the hint is
|
|
47
|
-
* suppressed; otherwise users see a spurious "run `lua test`" suggestion
|
|
48
|
-
* mid-flow during `lua push` or, worse, mid `lua test` itself.
|
|
49
|
-
* The hint fires only when the user explicitly runs `lua compile`.
|
|
50
|
-
*/
|
|
51
|
-
export async function compileCommand(options) {
|
|
52
|
-
return withErrorHandling(async () => {
|
|
53
|
-
const debugMode = options?.debug || process.env.LUA_DEBUG === 'true';
|
|
54
|
-
const verboseMode = options?.verbose || debugMode;
|
|
55
|
-
const doSync = options?.sync === true;
|
|
56
|
-
if (debugMode) {
|
|
57
|
-
console.log('🐛 Debug mode enabled');
|
|
58
|
-
}
|
|
59
|
-
// Step 0: Run sync check (only with --sync)
|
|
60
|
-
if (doSync) {
|
|
61
|
-
try {
|
|
62
|
-
const config = readYamlConfig();
|
|
63
|
-
const agentId = config?.agent?.agentId;
|
|
64
|
-
let apiKey = null;
|
|
65
|
-
try {
|
|
66
|
-
apiKey = getToken();
|
|
67
|
-
}
|
|
68
|
-
catch {
|
|
69
|
-
/* no key — skip sync */
|
|
70
|
-
}
|
|
71
|
-
if (apiKey && agentId) {
|
|
72
|
-
const shouldContinue = await runSyncCheck(apiKey, agentId);
|
|
73
|
-
if (!shouldContinue) {
|
|
74
|
-
return;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
catch (error) {
|
|
79
|
-
if (debugMode) {
|
|
80
|
-
console.warn('⚠️ Sync check failed, continuing with compilation:', error);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
writeProgress('🔨 Compiling...');
|
|
85
|
-
// Step 1: Run the compiler
|
|
86
|
-
const rootDir = process.cwd();
|
|
87
|
-
const outDir = path.join(rootDir, 'dist-v2');
|
|
88
|
-
const result = await compile({
|
|
89
|
-
rootDir,
|
|
90
|
-
outDir,
|
|
91
|
-
sourceMaps: true,
|
|
92
|
-
minify: true,
|
|
93
|
-
debug: debugMode,
|
|
94
|
-
verbose: verboseMode,
|
|
95
|
-
runtimeValidation: false, // Runtime handles validation
|
|
96
|
-
});
|
|
97
|
-
// Step 2: Handle compilation errors
|
|
98
|
-
if (!result.success) {
|
|
99
|
-
writeError('❌ Compilation failed:');
|
|
100
|
-
for (const error of result.errors) {
|
|
101
|
-
const location = error.line ? `:${error.line}` : '';
|
|
102
|
-
const file = error.file ? `${error.file}${location}` : '';
|
|
103
|
-
writeError(` ${file} - ${error.message}`);
|
|
104
|
-
if (error.suggestion) {
|
|
105
|
-
console.log(` 💡 ${error.suggestion}`);
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
trackEvent('cli_compile_failed', {
|
|
109
|
-
errors_count: result.errors.length,
|
|
110
|
-
first_error: result.errors[0]?.message?.substring(0, 200) || null,
|
|
111
|
-
debug_mode: debugMode,
|
|
112
|
-
});
|
|
113
|
-
// B12: only show the compile-specific debug hint when this is a top-level
|
|
114
|
-
// `lua compile` invocation. Sub-invocations from lua push/chat/test should
|
|
115
|
-
// not tell users to run `lua compile --verbose` mid-flow.
|
|
116
|
-
if (options?.topLevel) {
|
|
117
|
-
writeHintBlock({
|
|
118
|
-
headline: 'Compilation failed. Debug options:',
|
|
119
|
-
lines: [
|
|
120
|
-
{ label: 'More context:', command: 'lua compile --verbose' },
|
|
121
|
-
{ label: 'Full esbuild output:', command: 'lua compile --debug' },
|
|
122
|
-
],
|
|
123
|
-
when: 'error',
|
|
124
|
-
});
|
|
125
|
-
}
|
|
126
|
-
throw new Error('Compilation failed — see errors above.');
|
|
127
|
-
}
|
|
128
|
-
// Ensure dist-v2/ is in .gitignore
|
|
129
|
-
ensureGitignored(rootDir, 'dist-v2/', 'dist/');
|
|
130
|
-
// Step 3: Show warnings
|
|
131
|
-
if (result.warnings.length > 0) {
|
|
132
|
-
for (const warning of result.warnings) {
|
|
133
|
-
console.warn(`⚠️ ${warning.message}`);
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
// Step 4: Sync YAML with manifest (all versioned primitives)
|
|
137
|
-
writeProgress('🔄 Syncing YAML with manifest...');
|
|
138
|
-
let config = readYamlConfig();
|
|
139
|
-
for (const handler of versionedHandlers) {
|
|
140
|
-
handler.syncYamlWithManifest(result.manifest, config);
|
|
141
|
-
config = readYamlConfig(); // Re-read after each handler writes
|
|
142
|
-
}
|
|
143
|
-
// Step 5: Sync server with YAML using primitive handlers
|
|
144
|
-
let apiKey = null;
|
|
145
|
-
try {
|
|
146
|
-
apiKey = getToken();
|
|
147
|
-
}
|
|
148
|
-
catch {
|
|
149
|
-
/* no key — skip server sync */
|
|
150
|
-
}
|
|
151
|
-
let syncConfig = readYamlConfig();
|
|
152
|
-
const agentId = syncConfig?.agent?.agentId;
|
|
153
|
-
if (apiKey && agentId) {
|
|
154
|
-
writeProgress('🔄 Syncing with server...');
|
|
155
|
-
// Phase 1: Fetch all server state in parallel (6 HTTP calls at once)
|
|
156
|
-
const fetchResults = await Promise.all(syncableHandlers.map((h) => h.fetchServerState(apiKey, agentId)));
|
|
157
|
-
// Phase 2: Apply YAML changes sequentially (each handler writes to its own YAML key)
|
|
158
|
-
for (let i = 0; i < syncableHandlers.length; i++) {
|
|
159
|
-
const applyResult = await syncableHandlers[i].applySyncToYaml(fetchResults[i], syncConfig, result.manifest, {
|
|
160
|
-
apiKey,
|
|
161
|
-
agentId,
|
|
162
|
-
});
|
|
163
|
-
if (applyResult.yamlUpdated) {
|
|
164
|
-
syncConfig = readYamlConfig(); // Re-read only if changed
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
else {
|
|
169
|
-
console.log('⚠️ Skipping server sync (no API key or agent ID configured)');
|
|
170
|
-
}
|
|
171
|
-
// Step 6: Print summary
|
|
172
|
-
const { stats } = result;
|
|
173
|
-
const parts = Object.entries(stats.byKind)
|
|
174
|
-
.map(([kind, count]) => `${count} ${kind}${count > 1 ? 's' : ''}`)
|
|
175
|
-
.join(', ');
|
|
176
|
-
writeSuccess(`✅ Compiled ${stats.totalPrimitives} primitives (${parts}) in ${stats.duration}ms`);
|
|
177
|
-
// Emit next-step hint only when called as a top-level `lua compile`
|
|
178
|
-
// invocation. Sub-invocations from `lua push`, `lua chat`, and `lua test`
|
|
179
|
-
// must not print "run `lua test`" mid-flow — especially not during
|
|
180
|
-
// `lua test` itself. Fixes Bugbot issue f45d2169.
|
|
181
|
-
if (options?.topLevel) {
|
|
182
|
-
writeNextStep({
|
|
183
|
-
command: 'lua test',
|
|
184
|
-
rationale: 'to verify your tools work locally before pushing',
|
|
185
|
-
when: 'success',
|
|
186
|
-
});
|
|
187
|
-
}
|
|
188
|
-
if (debugMode) {
|
|
189
|
-
console.log(`📊 Output: ${outDir}`);
|
|
190
|
-
console.log(` Total size: ${(stats.totalSize / 1024).toFixed(1)}KB`);
|
|
191
|
-
}
|
|
192
|
-
// Step 7: Check for backup changes
|
|
193
|
-
let backupOutOfSync = false;
|
|
194
|
-
const finalConfig = readYamlConfig();
|
|
195
|
-
if (finalConfig?.agent?.agentId && result.manifest.projectFiles.length > 0) {
|
|
196
|
-
const currentProjectHash = calculateProjectHash(result.manifest.projectFiles);
|
|
197
|
-
backupOutOfSync = isBackupOutOfSync(currentProjectHash, finalConfig.backup);
|
|
198
|
-
if (backupOutOfSync) {
|
|
199
|
-
writeInfo('📦 Project sources changed. Run `lua push backup` to sync.');
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
trackEvent('cli_compile_completed', {
|
|
203
|
-
primitives_count: stats.totalPrimitives,
|
|
204
|
-
primitives_by_kind: stats.byKind,
|
|
205
|
-
compile_duration_ms: stats.duration,
|
|
206
|
-
total_size_kb: Math.round(stats.totalSize / 1024),
|
|
207
|
-
debug_mode: debugMode,
|
|
208
|
-
verbose_mode: verboseMode,
|
|
209
|
-
sync_enabled: doSync,
|
|
210
|
-
warnings_count: result.warnings.length,
|
|
211
|
-
server_sync_performed: !!(apiKey && agentId),
|
|
212
|
-
backup_out_of_sync: backupOutOfSync,
|
|
213
|
-
});
|
|
214
|
-
}, 'compilation');
|
|
215
|
-
}
|
|
216
|
-
//# sourceMappingURL=compile.js.map
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AE,CAAC;QACrC,IAAI,WAAW,EAAE,KAAK,EAAE,OAAO,IAAI,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC3E,MAAM,kBAAkB,GAAG,oBAAoB,CAAC,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;YAC9E,eAAe,GAAG,iBAAiB,CAAC,kBAAkB,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;YAC5E,IAAI,eAAe,EAAE,CAAC;gBACpB,SAAS,CAAC,4DAA4D,CAAC,CAAC;YAC1E,CAAC;QACH,CAAC;QAED,UAAU,CAAC,uBAAuB,EAAE;YAClC,gBAAgB,EAAE,KAAK,CAAC,eAAe;YACvC,kBAAkB,EAAE,KAAK,CAAC,MAAM;YAChC,mBAAmB,EAAE,KAAK,CAAC,QAAQ;YACnC,aAAa,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,SAAS,GAAG,IAAI,CAAC;YACjD,UAAU,EAAE,SAAS;YACrB,YAAY,EAAE,WAAW;YACzB,YAAY,EAAE,MAAM;YACpB,cAAc,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM;YACtC,qBAAqB,EAAE,CAAC,CAAC,CAAC,MAAM,IAAI,OAAO,CAAC;YAC5C,kBAAkB,EAAE,eAAe;SACpC,CAAC,CAAC;IACL,CAAC,EAAE,aAAa,CAAC,CAAC;AACpB,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Completion Command
|
|
3
|
-
* Generates shell completion scripts for the Lua CLI
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* Main completion command - generates shell completion scripts
|
|
7
|
-
*
|
|
8
|
-
* @param shell - Shell type (bash, zsh, fish)
|
|
9
|
-
* @returns Promise that resolves when command completes
|
|
10
|
-
*/
|
|
11
|
-
export declare function completionCommand(shell?: string): Promise<void>;
|
|
12
|
-
//# sourceMappingURL=completion.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"completion.d.ts","sourceRoot":"","sources":["../../src/commands/completion.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAgKH;;;;;GAKG;AACH,wBAAsB,iBAAiB,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CA+CrE"}
|
|
@@ -1,211 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Completion Command
|
|
3
|
-
* Generates shell completion scripts for the Lua CLI
|
|
4
|
-
*/
|
|
5
|
-
import { withErrorHandling } from '../utils/cli.js';
|
|
6
|
-
import { trackEvent } from '../services/analytics.js';
|
|
7
|
-
import { validateOrSuggest } from '../utils/aliases.js';
|
|
8
|
-
/**
|
|
9
|
-
* Bash completion script
|
|
10
|
-
*/
|
|
11
|
-
const BASH_COMPLETION = `# Bash completion for lua CLI
|
|
12
|
-
_lua_completion() {
|
|
13
|
-
local cur prev commands
|
|
14
|
-
COMPREPLY=()
|
|
15
|
-
cur="\${COMP_WORDS[COMP_CWORD]}"
|
|
16
|
-
prev="\${COMP_WORDS[COMP_CWORD-1]}"
|
|
17
|
-
|
|
18
|
-
# Main commands
|
|
19
|
-
commands="admin auth channels chat compile completion deploy describe docs env features init logs persona production push resources skills status test"
|
|
20
|
-
|
|
21
|
-
# Subcommands
|
|
22
|
-
case "\${prev}" in
|
|
23
|
-
lua)
|
|
24
|
-
COMPREPLY=( $(compgen -W "\${commands}" -- \${cur}) )
|
|
25
|
-
return 0
|
|
26
|
-
;;
|
|
27
|
-
auth)
|
|
28
|
-
COMPREPLY=( $(compgen -W "configure logout key" -- \${cur}) )
|
|
29
|
-
return 0
|
|
30
|
-
;;
|
|
31
|
-
push)
|
|
32
|
-
COMPREPLY=( $(compgen -W "skill persona" -- \${cur}) )
|
|
33
|
-
return 0
|
|
34
|
-
;;
|
|
35
|
-
env)
|
|
36
|
-
COMPREPLY=( $(compgen -W "sandbox staging production" -- \${cur}) )
|
|
37
|
-
return 0
|
|
38
|
-
;;
|
|
39
|
-
persona)
|
|
40
|
-
COMPREPLY=( $(compgen -W "sandbox staging production" -- \${cur}) )
|
|
41
|
-
return 0
|
|
42
|
-
;;
|
|
43
|
-
skills)
|
|
44
|
-
COMPREPLY=( $(compgen -W "sandbox staging production" -- \${cur}) )
|
|
45
|
-
return 0
|
|
46
|
-
;;
|
|
47
|
-
chat)
|
|
48
|
-
COMPREPLY=( $(compgen -W "clear" -- \${cur}) )
|
|
49
|
-
return 0
|
|
50
|
-
;;
|
|
51
|
-
completion)
|
|
52
|
-
COMPREPLY=( $(compgen -W "bash zsh fish" -- \${cur}) )
|
|
53
|
-
return 0
|
|
54
|
-
;;
|
|
55
|
-
esac
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
complete -F _lua_completion lua
|
|
59
|
-
`;
|
|
60
|
-
/**
|
|
61
|
-
* Zsh completion script
|
|
62
|
-
*/
|
|
63
|
-
const ZSH_COMPLETION = `#compdef lua
|
|
64
|
-
|
|
65
|
-
# Zsh completion for lua CLI
|
|
66
|
-
_lua() {
|
|
67
|
-
local line state
|
|
68
|
-
|
|
69
|
-
_arguments -C \\
|
|
70
|
-
"1: :(admin auth channels chat compile completion deploy describe docs env features init logs persona production push resources skills status test)" \\
|
|
71
|
-
"*::arg:->args"
|
|
72
|
-
|
|
73
|
-
case $line[1] in
|
|
74
|
-
auth)
|
|
75
|
-
_arguments "1: :(configure logout key)"
|
|
76
|
-
;;
|
|
77
|
-
push)
|
|
78
|
-
_arguments "1: :(skill persona)"
|
|
79
|
-
;;
|
|
80
|
-
env)
|
|
81
|
-
_arguments "1: :(sandbox staging production)"
|
|
82
|
-
;;
|
|
83
|
-
persona)
|
|
84
|
-
_arguments "1: :(sandbox staging production)"
|
|
85
|
-
;;
|
|
86
|
-
skills)
|
|
87
|
-
_arguments "1: :(sandbox staging production)"
|
|
88
|
-
;;
|
|
89
|
-
chat)
|
|
90
|
-
_arguments "1: :(clear)"
|
|
91
|
-
;;
|
|
92
|
-
completion)
|
|
93
|
-
_arguments "1: :(bash zsh fish)"
|
|
94
|
-
;;
|
|
95
|
-
esac
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
_lua
|
|
99
|
-
`;
|
|
100
|
-
/**
|
|
101
|
-
* Fish completion script
|
|
102
|
-
*/
|
|
103
|
-
const FISH_COMPLETION = `# Fish completion for lua CLI
|
|
104
|
-
|
|
105
|
-
# Main commands
|
|
106
|
-
complete -c lua -f -n "__fish_use_subcommand" -a "auth" -d "Authentication management"
|
|
107
|
-
complete -c lua -f -n "__fish_use_subcommand" -a "init" -d "Initialize a new project"
|
|
108
|
-
complete -c lua -f -n "__fish_use_subcommand" -a "compile" -d "Compile skill"
|
|
109
|
-
complete -c lua -f -n "__fish_use_subcommand" -a "test" -d "Test skill tools"
|
|
110
|
-
complete -c lua -f -n "__fish_use_subcommand" -a "push" -d "Push skill or persona"
|
|
111
|
-
complete -c lua -f -n "__fish_use_subcommand" -a "deploy" -d "Deploy to production"
|
|
112
|
-
complete -c lua -f -n "__fish_use_subcommand" -a "chat" -d "Interactive chat"
|
|
113
|
-
complete -c lua -f -n "__fish_use_subcommand" -a "env" -d "Manage environment"
|
|
114
|
-
complete -c lua -f -n "__fish_use_subcommand" -a "persona" -d "Manage persona"
|
|
115
|
-
complete -c lua -f -n "__fish_use_subcommand" -a "production" -d "View production"
|
|
116
|
-
complete -c lua -f -n "__fish_use_subcommand" -a "resources" -d "Manage resources"
|
|
117
|
-
complete -c lua -f -n "__fish_use_subcommand" -a "admin" -d "Open admin dashboard"
|
|
118
|
-
complete -c lua -f -n "__fish_use_subcommand" -a "docs" -d "Open documentation"
|
|
119
|
-
complete -c lua -f -n "__fish_use_subcommand" -a "channels" -d "Manage channels"
|
|
120
|
-
complete -c lua -f -n "__fish_use_subcommand" -a "logs" -d "View logs"
|
|
121
|
-
complete -c lua -f -n "__fish_use_subcommand" -a "skills" -d "Manage skills"
|
|
122
|
-
complete -c lua -f -n "__fish_use_subcommand" -a "features" -d "Manage agent features"
|
|
123
|
-
complete -c lua -f -n "__fish_use_subcommand" -a "status" -d "Show project status"
|
|
124
|
-
complete -c lua -f -n "__fish_use_subcommand" -a "describe" -d "Describe project state"
|
|
125
|
-
complete -c lua -f -n "__fish_use_subcommand" -a "completion" -d "Generate completion script"
|
|
126
|
-
|
|
127
|
-
# Auth subcommands
|
|
128
|
-
complete -c lua -f -n "__fish_seen_subcommand_from auth" -a "configure" -d "Set up API key"
|
|
129
|
-
complete -c lua -f -n "__fish_seen_subcommand_from auth" -a "logout" -d "Delete API key"
|
|
130
|
-
complete -c lua -f -n "__fish_seen_subcommand_from auth" -a "key" -d "Display API key"
|
|
131
|
-
|
|
132
|
-
# Push subcommands
|
|
133
|
-
complete -c lua -f -n "__fish_seen_subcommand_from push" -a "skill" -d "Push a skill"
|
|
134
|
-
complete -c lua -f -n "__fish_seen_subcommand_from push" -a "persona" -d "Push a persona"
|
|
135
|
-
|
|
136
|
-
# Env subcommands
|
|
137
|
-
complete -c lua -f -n "__fish_seen_subcommand_from env" -a "sandbox" -d "Manage sandbox env vars"
|
|
138
|
-
complete -c lua -f -n "__fish_seen_subcommand_from env" -a "staging" -d "Manage staging env vars"
|
|
139
|
-
complete -c lua -f -n "__fish_seen_subcommand_from env" -a "production" -d "Manage production env vars"
|
|
140
|
-
|
|
141
|
-
# Persona subcommands
|
|
142
|
-
complete -c lua -f -n "__fish_seen_subcommand_from persona" -a "sandbox" -d "Manage sandbox persona"
|
|
143
|
-
complete -c lua -f -n "__fish_seen_subcommand_from persona" -a "staging" -d "Manage staging persona"
|
|
144
|
-
complete -c lua -f -n "__fish_seen_subcommand_from persona" -a "production" -d "Manage production persona"
|
|
145
|
-
|
|
146
|
-
# Skills subcommands
|
|
147
|
-
complete -c lua -f -n "__fish_seen_subcommand_from skills" -a "sandbox" -d "View sandbox skills"
|
|
148
|
-
complete -c lua -f -n "__fish_seen_subcommand_from skills" -a "staging" -d "View staging skills"
|
|
149
|
-
complete -c lua -f -n "__fish_seen_subcommand_from skills" -a "production" -d "Manage production skills"
|
|
150
|
-
|
|
151
|
-
# Chat subcommands
|
|
152
|
-
complete -c lua -f -n "__fish_seen_subcommand_from chat" -a "clear" -d "Clear history"
|
|
153
|
-
|
|
154
|
-
# Completion subcommands
|
|
155
|
-
complete -c lua -f -n "__fish_seen_subcommand_from completion" -a "bash" -d "Generate bash completion"
|
|
156
|
-
complete -c lua -f -n "__fish_seen_subcommand_from completion" -a "zsh" -d "Generate zsh completion"
|
|
157
|
-
complete -c lua -f -n "__fish_seen_subcommand_from completion" -a "fish" -d "Generate fish completion"
|
|
158
|
-
`;
|
|
159
|
-
/**
|
|
160
|
-
* Main completion command - generates shell completion scripts
|
|
161
|
-
*
|
|
162
|
-
* @param shell - Shell type (bash, zsh, fish)
|
|
163
|
-
* @returns Promise that resolves when command completes
|
|
164
|
-
*/
|
|
165
|
-
export async function completionCommand(shell) {
|
|
166
|
-
return withErrorHandling(async () => {
|
|
167
|
-
// If no shell specified, show instructions
|
|
168
|
-
if (!shell) {
|
|
169
|
-
console.log(`
|
|
170
|
-
🎯 Lua CLI Shell Completion
|
|
171
|
-
|
|
172
|
-
To enable autocomplete, run one of the following commands based on your shell:
|
|
173
|
-
|
|
174
|
-
Bash:
|
|
175
|
-
$ lua completion bash >> ~/.bashrc
|
|
176
|
-
$ source ~/.bashrc
|
|
177
|
-
|
|
178
|
-
Zsh:
|
|
179
|
-
$ lua completion zsh >> ~/.zshrc
|
|
180
|
-
$ source ~/.zshrc
|
|
181
|
-
|
|
182
|
-
Fish:
|
|
183
|
-
$ lua completion fish > ~/.config/fish/completions/lua.fish
|
|
184
|
-
|
|
185
|
-
Or manually:
|
|
186
|
-
$ lua completion bash # Output bash completion script
|
|
187
|
-
$ lua completion zsh # Output zsh completion script
|
|
188
|
-
$ lua completion fish # Output fish completion script
|
|
189
|
-
|
|
190
|
-
Then follow the instructions above to add it to your shell configuration.
|
|
191
|
-
`);
|
|
192
|
-
return;
|
|
193
|
-
}
|
|
194
|
-
// Validate shell type
|
|
195
|
-
shell = validateOrSuggest('completion.shell', shell);
|
|
196
|
-
// Output the appropriate completion script
|
|
197
|
-
switch (shell) {
|
|
198
|
-
case 'bash':
|
|
199
|
-
console.log(BASH_COMPLETION);
|
|
200
|
-
break;
|
|
201
|
-
case 'zsh':
|
|
202
|
-
console.log(ZSH_COMPLETION);
|
|
203
|
-
break;
|
|
204
|
-
case 'fish':
|
|
205
|
-
console.log(FISH_COMPLETION);
|
|
206
|
-
break;
|
|
207
|
-
}
|
|
208
|
-
trackEvent('cli_completion_generated', { shell_type: shell || null });
|
|
209
|
-
}, 'completion');
|
|
210
|
-
}
|
|
211
|
-
//# sourceMappingURL=completion.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"completion.js","sourceRoot":"","sources":["../../src/commands/completion.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD;;GAEG;AACH,MAAM,eAAe,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgDvB,CAAC;AAEF;;GAEG;AACH,MAAM,cAAc,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCtB,CAAC;AAEF;;GAEG;AACH,MAAM,eAAe,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuDvB,CAAC;AAEF;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,iBAAiB,CAAC,KAAc;IACpD,OAAO,iBAAiB,CAAC,KAAK,IAAI,EAAE;QAClC,2CAA2C;QAC3C,IAAI,CAAC,KAAK,EAAE,CAAC;YACX,OAAO,CAAC,GAAG,CAAC;;;;;;;;;;;;;;;;;;;;;;CAsBjB,CAAC,CAAC;YACG,OAAO;QACT,CAAC;QAED,sBAAsB;QACtB,KAAK,GAAG,iBAAiB,CAAC,kBAAkB,EAAE,KAAK,CAAC,CAAC;QAErD,2CAA2C;QAC3C,QAAQ,KAAK,EAAE,CAAC;YACd,KAAK,MAAM;gBACT,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;gBAC7B,MAAM;YACR,KAAK,KAAK;gBACR,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;gBAC5B,MAAM;YACR,KAAK,MAAM;gBACT,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;gBAC7B,MAAM;QACV,CAAC;QACD,UAAU,CAAC,0BAA0B,EAAE,EAAE,UAAU,EAAE,KAAK,IAAI,IAAI,EAAE,CAAC,CAAC;IACxE,CAAC,EAAE,YAAY,CAAC,CAAC;AACnB,CAAC"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Configure Command
|
|
3
|
-
* Orchestrates the authentication setup process
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* Options for the configure command
|
|
7
|
-
*/
|
|
8
|
-
interface ConfigureCommandOptions {
|
|
9
|
-
apiKey?: string;
|
|
10
|
-
email?: string;
|
|
11
|
-
otp?: string;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Main configure command - sets up authentication credentials.
|
|
15
|
-
*
|
|
16
|
-
* This command performs the following steps:
|
|
17
|
-
* 1. Prompts user to choose authentication method (API key or email)
|
|
18
|
-
* 2. Executes the appropriate authentication flow
|
|
19
|
-
* 3. Saves credentials to ~/.lua-cli/credentials
|
|
20
|
-
*
|
|
21
|
-
* Authentication Methods:
|
|
22
|
-
* - **API Key**: Direct entry of existing API key
|
|
23
|
-
* - **Email**: OTP-based authentication that generates a new API key
|
|
24
|
-
*
|
|
25
|
-
* Non-Interactive Modes:
|
|
26
|
-
* - **--api-key <key>**: Set API key directly without prompts
|
|
27
|
-
* - **--email <email>**: Request OTP to be sent to email
|
|
28
|
-
* - **--email <email> --otp <code>**: Verify OTP and generate API key
|
|
29
|
-
*
|
|
30
|
-
* Features:
|
|
31
|
-
* - Credential storage in ~/.lua-cli/credentials (owner-only permissions)
|
|
32
|
-
* - Email validation
|
|
33
|
-
* - OTP verification with retry logic
|
|
34
|
-
* - Automatic API key generation for email auth
|
|
35
|
-
* - Full non-interactive mode for CI/CD and automation
|
|
36
|
-
*
|
|
37
|
-
* @param options - Command options for non-interactive mode
|
|
38
|
-
* @returns Promise that resolves when configuration is complete
|
|
39
|
-
*/
|
|
40
|
-
export declare function configureCommand(options?: ConfigureCommandOptions): Promise<void>;
|
|
41
|
-
export {};
|
|
42
|
-
//# sourceMappingURL=configure.d.ts.map
|