lua-cli 3.15.3 → 3.16.2
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 +41667 -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 +2 -2
- 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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"skill.d.ts","sourceRoot":"","sources":["../../src/types/skill.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAE9B,OAAO,gBAAgB,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAEvE;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,GAAG,GAAI,KAAK,MAAM,KAAG,MAAM,GAAG,SAM1C,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,MAAM,WAAW,OAAO,CAAC,MAAM,SAAS,OAAO,GAAG,OAAO;IACvD,iEAAiE;IACjE,IAAI,EAAE,MAAM,CAAC;IACb,wCAAwC;IACxC,WAAW,EAAE,MAAM,CAAC;IACpB,sCAAsC;IACtC,WAAW,EAAE,MAAM,CAAC;IACpB,kDAAkD;IAClD,OAAO,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IACtC,8EAA8E;IAC9E,SAAS,CAAC,EAAE,MAAM,OAAO,CAAC,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AAC;gBAEjF,MAAM,EAAE,sBAAsB;CAMlD"}
|
package/dist/types/skill.js
DELETED
|
@@ -1,688 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Lua Skill System
|
|
3
|
-
* Core types and classes for building Lua AI skills
|
|
4
|
-
*/
|
|
5
|
-
import { assertValidToolName } from './tool-validation.js';
|
|
6
|
-
/**
|
|
7
|
-
* Safe environment variable access function.
|
|
8
|
-
* Gets injected at runtime with skill-specific environment variables.
|
|
9
|
-
*
|
|
10
|
-
* Checks process environment variables (.env file)
|
|
11
|
-
*
|
|
12
|
-
* @param key - The environment variable key to retrieve
|
|
13
|
-
* @returns The environment variable value or undefined if not found
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* ```typescript
|
|
17
|
-
* const baseUrl = env('BASE_URL');
|
|
18
|
-
* const apiKey = env('API_KEY');
|
|
19
|
-
* ```
|
|
20
|
-
*/
|
|
21
|
-
export const env = (key) => {
|
|
22
|
-
if (process.env[key]) {
|
|
23
|
-
return process.env[key];
|
|
24
|
-
}
|
|
25
|
-
return undefined;
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
* Lua Skill class.
|
|
29
|
-
* Main class for building AI skills with tools.
|
|
30
|
-
*
|
|
31
|
-
* A skill is a collection of tools that the AI agent can use to accomplish tasks.
|
|
32
|
-
* Tools are functions with validated inputs and well-defined outputs.
|
|
33
|
-
*
|
|
34
|
-
* @example
|
|
35
|
-
* ```typescript
|
|
36
|
-
* import { LuaSkill } from 'lua-cli';
|
|
37
|
-
*
|
|
38
|
-
* const skill = new LuaSkill({
|
|
39
|
-
* name: 'weather-skill',
|
|
40
|
-
* description: "Weather and calculator utilities",
|
|
41
|
-
* context: "This skill provides weather information and math operations. " +
|
|
42
|
-
* "Use get_weather for current conditions and calculator for arithmetic.",
|
|
43
|
-
* tools: [weatherTool, calculatorTool]
|
|
44
|
-
* });
|
|
45
|
-
*
|
|
46
|
-
* // Or add tools after construction
|
|
47
|
-
* skill.addTool(anotherTool);
|
|
48
|
-
* ```
|
|
49
|
-
*/
|
|
50
|
-
export class LuaSkill {
|
|
51
|
-
/**
|
|
52
|
-
* Creates a new LuaSkill instance.
|
|
53
|
-
*
|
|
54
|
-
* @param config - Configuration object containing skill metadata
|
|
55
|
-
* @param config.name - Skill name (optional, defaults to 'unnamed-skill')
|
|
56
|
-
* @param config.description - Short description of what the skill does (1-2 sentences)
|
|
57
|
-
* @param config.context - Detailed explanation of how the agent should use the tools
|
|
58
|
-
* @param config.tools - Optional array of tools to add immediately
|
|
59
|
-
*/
|
|
60
|
-
constructor(config) {
|
|
61
|
-
this.tools = [];
|
|
62
|
-
this.name = config.name || 'unnamed-skill';
|
|
63
|
-
this.description = config.description;
|
|
64
|
-
this.context = config.context;
|
|
65
|
-
if (typeof this.context === 'object') {
|
|
66
|
-
if (!this.context.base && !this.context.voice && !this.context.text) {
|
|
67
|
-
throw new Error('Skill context object must have at least one of: base, voice, text');
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
// Add tools from constructor if provided
|
|
71
|
-
if (config.tools) {
|
|
72
|
-
this.addTools(config.tools);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
getContext() {
|
|
76
|
-
return this.context;
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Adds a single tool to the skill.
|
|
80
|
-
* Tool name is validated before being added.
|
|
81
|
-
*
|
|
82
|
-
* @param tool - Tool to add
|
|
83
|
-
* @throws Error if tool name is invalid
|
|
84
|
-
*/
|
|
85
|
-
addTool(tool) {
|
|
86
|
-
assertValidToolName(tool.name);
|
|
87
|
-
this.tools.push(tool);
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* Adds multiple tools to the skill.
|
|
91
|
-
* All tool names are validated before being added.
|
|
92
|
-
*
|
|
93
|
-
* @param tools - Array of tools to add
|
|
94
|
-
* @throws Error if any tool name is invalid
|
|
95
|
-
*/
|
|
96
|
-
addTools(tools) {
|
|
97
|
-
// Validate all tool names before adding them
|
|
98
|
-
for (const tool of tools) {
|
|
99
|
-
assertValidToolName(tool.name);
|
|
100
|
-
}
|
|
101
|
-
this.tools.push(...tools);
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* Executes a tool by name with provided input.
|
|
105
|
-
* Input is validated against the tool's Zod schema.
|
|
106
|
-
*
|
|
107
|
-
* @param input - Input object containing tool name and parameters
|
|
108
|
-
* @param input.tool - Name of the tool to execute
|
|
109
|
-
* @returns Promise resolving to tool execution result
|
|
110
|
-
* @throws Error if tool not found or input validation fails
|
|
111
|
-
*/
|
|
112
|
-
async run(input) {
|
|
113
|
-
const tool = this.tools.find((tool) => tool.name === input.tool);
|
|
114
|
-
if (!tool) {
|
|
115
|
-
throw new Error(`Tool ${input.tool} not found`);
|
|
116
|
-
}
|
|
117
|
-
// Validate input against the tool's schema
|
|
118
|
-
const validatedInput = tool.inputSchema.parse(input);
|
|
119
|
-
return tool.execute(validatedInput);
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
/**
|
|
123
|
-
* Lua Job class.
|
|
124
|
-
* Main class for building scheduled jobs (cron jobs, one-time tasks, intervals).
|
|
125
|
-
*
|
|
126
|
-
* A job is a scheduled task that executes at specific times or intervals.
|
|
127
|
-
* Jobs can run once, on a recurring schedule (cron), or at fixed intervals.
|
|
128
|
-
*
|
|
129
|
-
* @example
|
|
130
|
-
* ```typescript
|
|
131
|
-
* import { LuaJob } from 'lua-cli';
|
|
132
|
-
*
|
|
133
|
-
* // Daily cleanup job at 2 AM
|
|
134
|
-
* const dailyCleanup = new LuaJob({
|
|
135
|
-
* name: 'daily-cleanup',
|
|
136
|
-
* description: "Daily database cleanup job",
|
|
137
|
-
* schedule: {
|
|
138
|
-
* type: 'cron',
|
|
139
|
-
* expression: '0 2 * * *', // 2 AM every day
|
|
140
|
-
* timezone: 'America/New_York'
|
|
141
|
-
* },
|
|
142
|
-
* timeout: 600, // 10 minutes
|
|
143
|
-
* retry: {
|
|
144
|
-
* maxAttempts: 3,
|
|
145
|
-
* backoffSeconds: 60
|
|
146
|
-
* },
|
|
147
|
-
* execute: async () => {
|
|
148
|
-
* // Cleanup logic
|
|
149
|
-
* console.log('Running cleanup...');
|
|
150
|
-
* return { recordsDeleted: 150 };
|
|
151
|
-
* }
|
|
152
|
-
* });
|
|
153
|
-
*
|
|
154
|
-
* // One-time job
|
|
155
|
-
* const sendWelcome = new LuaJob({
|
|
156
|
-
* name: 'send-welcome',
|
|
157
|
-
* description: "Send welcome email to new users",
|
|
158
|
-
* schedule: {
|
|
159
|
-
* type: 'once',
|
|
160
|
-
* executeAt: new Date('2025-12-31T10:00:00Z')
|
|
161
|
-
* },
|
|
162
|
-
* execute: async () => {
|
|
163
|
-
* console.log('Sending welcome emails...');
|
|
164
|
-
* return { emailsSent: 100 };
|
|
165
|
-
* }
|
|
166
|
-
* });
|
|
167
|
-
*
|
|
168
|
-
* // Interval-based job (every 5 minutes)
|
|
169
|
-
* const healthCheck = new LuaJob({
|
|
170
|
-
* name: 'health-check',
|
|
171
|
-
* description: "System health check",
|
|
172
|
-
* schedule: {
|
|
173
|
-
* type: 'interval',
|
|
174
|
-
* seconds: 300 // 5 minutes
|
|
175
|
-
* },
|
|
176
|
-
* execute: async () => {
|
|
177
|
-
* return { status: 'healthy' };
|
|
178
|
-
* }
|
|
179
|
-
* });
|
|
180
|
-
* ```
|
|
181
|
-
*/
|
|
182
|
-
export class LuaJob {
|
|
183
|
-
/**
|
|
184
|
-
* Creates a new LuaJob instance.
|
|
185
|
-
*
|
|
186
|
-
* @param config - Configuration object containing job metadata
|
|
187
|
-
* @param config.name - Job name (optional, defaults to 'unnamed-job')
|
|
188
|
-
* @param config.description - Short description of what the job does (1-2 sentences)
|
|
189
|
-
* @param config.schedule - Schedule configuration (cron, once, or interval)
|
|
190
|
-
* @param config.timeout - Optional timeout in seconds (default: 300)
|
|
191
|
-
* @param config.retry - Optional retry configuration
|
|
192
|
-
* @param config.metadata - Optional metadata for the job
|
|
193
|
-
* @param config.execute - Function that processes the job (receives job instance as parameter)
|
|
194
|
-
*/
|
|
195
|
-
constructor(config) {
|
|
196
|
-
this.name = config.name || 'unnamed-job';
|
|
197
|
-
this.description = config.description;
|
|
198
|
-
this.schedule = config.schedule;
|
|
199
|
-
this.timeout = config.timeout || 300;
|
|
200
|
-
this.retry = config.retry;
|
|
201
|
-
this.metadata = config.metadata;
|
|
202
|
-
this.executeFunction = config.execute;
|
|
203
|
-
}
|
|
204
|
-
/**
|
|
205
|
-
* Gets the job name.
|
|
206
|
-
*/
|
|
207
|
-
getName() {
|
|
208
|
-
return this.name;
|
|
209
|
-
}
|
|
210
|
-
/**
|
|
211
|
-
* Gets the job description.
|
|
212
|
-
*/
|
|
213
|
-
getDescription() {
|
|
214
|
-
return this.description;
|
|
215
|
-
}
|
|
216
|
-
/**
|
|
217
|
-
* Gets the job schedule.
|
|
218
|
-
*/
|
|
219
|
-
getSchedule() {
|
|
220
|
-
return this.schedule;
|
|
221
|
-
}
|
|
222
|
-
/**
|
|
223
|
-
* Gets the job timeout in seconds.
|
|
224
|
-
*/
|
|
225
|
-
getTimeout() {
|
|
226
|
-
return this.timeout;
|
|
227
|
-
}
|
|
228
|
-
/**
|
|
229
|
-
* Gets the retry configuration.
|
|
230
|
-
*/
|
|
231
|
-
getRetry() {
|
|
232
|
-
return this.retry;
|
|
233
|
-
}
|
|
234
|
-
/**
|
|
235
|
-
* Gets the job metadata.
|
|
236
|
-
*/
|
|
237
|
-
getMetadata() {
|
|
238
|
-
return this.metadata;
|
|
239
|
-
}
|
|
240
|
-
/**
|
|
241
|
-
* Executes the job with the provided job instance.
|
|
242
|
-
* @param job - Job instance with metadata and context
|
|
243
|
-
* @returns Promise resolving to job execution result
|
|
244
|
-
*/
|
|
245
|
-
async execute(job) {
|
|
246
|
-
return this.executeFunction(job);
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
/**
|
|
250
|
-
* Lua Webhook class.
|
|
251
|
-
* Main class for building webhooks with validated inputs.
|
|
252
|
-
*
|
|
253
|
-
* A webhook is an HTTP endpoint that can receive requests with validated
|
|
254
|
-
* query parameters, headers, and body. The execute function processes the
|
|
255
|
-
* validated input and returns a response.
|
|
256
|
-
*
|
|
257
|
-
* @example
|
|
258
|
-
* ```typescript
|
|
259
|
-
* import { LuaWebhook } from 'lua-cli';
|
|
260
|
-
* import { z } from 'zod';
|
|
261
|
-
*
|
|
262
|
-
* const webhook = new LuaWebhook({
|
|
263
|
-
* name: 'user-created',
|
|
264
|
-
* description: "Webhook that handles user creation events",
|
|
265
|
-
* querySchema: z.object({
|
|
266
|
-
* source: z.string().optional()
|
|
267
|
-
* }),
|
|
268
|
-
* headerSchema: z.object({
|
|
269
|
-
* 'x-api-key': z.string(),
|
|
270
|
-
* 'content-type': z.string().optional()
|
|
271
|
-
* }),
|
|
272
|
-
* bodySchema: z.object({
|
|
273
|
-
* userId: z.string(),
|
|
274
|
-
* email: z.string().email(),
|
|
275
|
-
* name: z.string()
|
|
276
|
-
* }),
|
|
277
|
-
* execute: async (event) => {
|
|
278
|
-
* const { query, headers, body } = event;
|
|
279
|
-
* // Process the webhook...
|
|
280
|
-
* console.log('New user:', body.email);
|
|
281
|
-
* return { success: true, userId: body.userId };
|
|
282
|
-
* }
|
|
283
|
-
* });
|
|
284
|
-
*
|
|
285
|
-
* // Execute the webhook with validated inputs
|
|
286
|
-
* const result = await webhook.execute(
|
|
287
|
-
* { source: 'mobile' },
|
|
288
|
-
* { 'x-api-key': 'secret-key' },
|
|
289
|
-
* { userId: '123', email: 'user@example.com', name: 'John' }
|
|
290
|
-
* );
|
|
291
|
-
* ```
|
|
292
|
-
*/
|
|
293
|
-
export class LuaWebhook {
|
|
294
|
-
/**
|
|
295
|
-
* Creates a new LuaWebhook instance.
|
|
296
|
-
*
|
|
297
|
-
* @param config - Configuration object containing webhook metadata
|
|
298
|
-
* @param config.name - Webhook name (optional, defaults to 'unnamed-webhook')
|
|
299
|
-
* @param config.description - Short description of what the webhook does (1-2 sentences)
|
|
300
|
-
* @param config.querySchema - Optional Zod schema for query parameter validation
|
|
301
|
-
* @param config.headerSchema - Optional Zod schema for header validation
|
|
302
|
-
* @param config.bodySchema - Optional Zod schema for body validation
|
|
303
|
-
* @param config.execute - Function that processes the webhook request
|
|
304
|
-
*/
|
|
305
|
-
constructor(config) {
|
|
306
|
-
this.name = config.name || 'unnamed-webhook';
|
|
307
|
-
this.description = config.description;
|
|
308
|
-
this.querySchema = config.querySchema;
|
|
309
|
-
this.headerSchema = config.headerSchema;
|
|
310
|
-
this.bodySchema = config.bodySchema;
|
|
311
|
-
this.executeFunction = config.execute;
|
|
312
|
-
}
|
|
313
|
-
/**
|
|
314
|
-
* Gets the webhook name.
|
|
315
|
-
*/
|
|
316
|
-
getName() {
|
|
317
|
-
return this.name;
|
|
318
|
-
}
|
|
319
|
-
/**
|
|
320
|
-
* Gets the webhook description.
|
|
321
|
-
*/
|
|
322
|
-
getDescription() {
|
|
323
|
-
return this.description;
|
|
324
|
-
}
|
|
325
|
-
/**
|
|
326
|
-
* Executes the webhook with validated input.
|
|
327
|
-
* Validates query parameters, headers, and body against their respective schemas
|
|
328
|
-
* before executing the webhook function.
|
|
329
|
-
*
|
|
330
|
-
* @param query - Query parameters object
|
|
331
|
-
* @param headers - Headers object
|
|
332
|
-
* @param body - Request body
|
|
333
|
-
* @returns Promise resolving to webhook execution result
|
|
334
|
-
* @throws Error if validation fails for any input
|
|
335
|
-
*
|
|
336
|
-
* @example
|
|
337
|
-
* ```typescript
|
|
338
|
-
* const result = await webhook.execute(
|
|
339
|
-
* { limit: '10' },
|
|
340
|
-
* { 'x-api-key': 'secret' },
|
|
341
|
-
* { data: 'value' }
|
|
342
|
-
* );
|
|
343
|
-
* ```
|
|
344
|
-
*/
|
|
345
|
-
async execute(query, headers, body) {
|
|
346
|
-
let validatedQuery = query;
|
|
347
|
-
let validatedHeaders = headers;
|
|
348
|
-
let validatedBody = body;
|
|
349
|
-
// Validate query parameters if schema is provided
|
|
350
|
-
if (this.querySchema) {
|
|
351
|
-
try {
|
|
352
|
-
validatedQuery = this.querySchema.parse(query || {});
|
|
353
|
-
}
|
|
354
|
-
catch (error) {
|
|
355
|
-
throw new Error(`Query parameter validation failed: ${error}`);
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
// Validate headers if schema is provided
|
|
359
|
-
if (this.headerSchema) {
|
|
360
|
-
try {
|
|
361
|
-
validatedHeaders = this.headerSchema.parse(headers || {});
|
|
362
|
-
}
|
|
363
|
-
catch (error) {
|
|
364
|
-
throw new Error(`Header validation failed: ${error}`);
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
// Validate body if schema is provided
|
|
368
|
-
if (this.bodySchema) {
|
|
369
|
-
try {
|
|
370
|
-
validatedBody = this.bodySchema.parse(body);
|
|
371
|
-
}
|
|
372
|
-
catch (error) {
|
|
373
|
-
throw new Error(`Body validation failed: ${error}`);
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
const event = {
|
|
377
|
-
query: validatedQuery || {},
|
|
378
|
-
headers: validatedHeaders || {},
|
|
379
|
-
body: validatedBody,
|
|
380
|
-
timestamp: new Date().toISOString(),
|
|
381
|
-
};
|
|
382
|
-
return this.executeFunction(event);
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
/**
|
|
386
|
-
* PreProcessor class.
|
|
387
|
-
* Processes user messages before they reach the agent.
|
|
388
|
-
* Can handle rich content (text, images, files).
|
|
389
|
-
*
|
|
390
|
-
* @example
|
|
391
|
-
* ```typescript
|
|
392
|
-
* const contentFilter = new PreProcessor({
|
|
393
|
-
* name: 'content-filter',
|
|
394
|
-
* description: 'Filters and processes message content',
|
|
395
|
-
* priority: 10,
|
|
396
|
-
* execute: async (user, messages, channel) => {
|
|
397
|
-
* // Check for spam
|
|
398
|
-
* const hasSpam = messages.some(msg =>
|
|
399
|
-
* msg.type === 'text' && msg.text.includes('spam')
|
|
400
|
-
* );
|
|
401
|
-
*
|
|
402
|
-
* if (hasSpam) {
|
|
403
|
-
* return {
|
|
404
|
-
* action: 'block',
|
|
405
|
-
* response: "Message blocked due to spam content"
|
|
406
|
-
* };
|
|
407
|
-
* }
|
|
408
|
-
*
|
|
409
|
-
* // Return messages to proceed
|
|
410
|
-
* return { action: 'proceed' };
|
|
411
|
-
* }
|
|
412
|
-
* });
|
|
413
|
-
* ```
|
|
414
|
-
*/
|
|
415
|
-
export class PreProcessor {
|
|
416
|
-
constructor(config) {
|
|
417
|
-
this.name = config.name || 'unnamed-preprocessor';
|
|
418
|
-
this.description = config.description;
|
|
419
|
-
this.asyncMode = config.async ?? false; // Default to synchronous
|
|
420
|
-
this.priority = config.priority ?? 100;
|
|
421
|
-
this.executeFunction = config.execute;
|
|
422
|
-
}
|
|
423
|
-
getName() {
|
|
424
|
-
return this.name;
|
|
425
|
-
}
|
|
426
|
-
getDescription() {
|
|
427
|
-
return this.description;
|
|
428
|
-
}
|
|
429
|
-
getAsync() {
|
|
430
|
-
return this.asyncMode;
|
|
431
|
-
}
|
|
432
|
-
getPriority() {
|
|
433
|
-
return this.priority;
|
|
434
|
-
}
|
|
435
|
-
async execute(user, messages, channel) {
|
|
436
|
-
return this.executeFunction(user, messages, channel);
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
/**
|
|
440
|
-
* PostProcessor class.
|
|
441
|
-
* Processes agent responses before they reach the user.
|
|
442
|
-
*
|
|
443
|
-
* @example
|
|
444
|
-
* ```typescript
|
|
445
|
-
* const responseFormatter = new PostProcessor({
|
|
446
|
-
* name: 'response-formatter',
|
|
447
|
-
* description: 'Formats responses with branding',
|
|
448
|
-
* execute: async (user, message, response, channel) => {
|
|
449
|
-
* return { modifiedResponse: response + '\n\n---\nPowered by Acme Corp' };
|
|
450
|
-
* }
|
|
451
|
-
* });
|
|
452
|
-
* ```
|
|
453
|
-
*/
|
|
454
|
-
export class PostProcessor {
|
|
455
|
-
constructor(config) {
|
|
456
|
-
this.name = config.name || 'unnamed-postprocessor';
|
|
457
|
-
this.description = config.description;
|
|
458
|
-
this.priority = config.priority ?? 100;
|
|
459
|
-
this.executeFunction = config.execute;
|
|
460
|
-
}
|
|
461
|
-
getName() {
|
|
462
|
-
return this.name;
|
|
463
|
-
}
|
|
464
|
-
getDescription() {
|
|
465
|
-
return this.description;
|
|
466
|
-
}
|
|
467
|
-
getPriority() {
|
|
468
|
-
return this.priority;
|
|
469
|
-
}
|
|
470
|
-
async execute(user, message, response, channel) {
|
|
471
|
-
return this.executeFunction(user, message, response, channel);
|
|
472
|
-
}
|
|
473
|
-
}
|
|
474
|
-
/**
|
|
475
|
-
* LuaMCPServer class.
|
|
476
|
-
* Defines an MCP (Model Context Protocol) server connection.
|
|
477
|
-
*
|
|
478
|
-
* MCP servers provide tools that can be used by your agent at runtime.
|
|
479
|
-
* Connect to remote MCP servers via Streamable HTTP (recommended) or SSE (legacy).
|
|
480
|
-
*
|
|
481
|
-
* Environment variables can be provided as static values or as functions that
|
|
482
|
-
* resolve at runtime using the env() API (consistent with tool execute functions).
|
|
483
|
-
*
|
|
484
|
-
* @example
|
|
485
|
-
* ```typescript
|
|
486
|
-
* import { LuaMCPServer, env } from 'lua-cli';
|
|
487
|
-
*
|
|
488
|
-
* // Remote MCP server via Streamable HTTP (recommended)
|
|
489
|
-
* const docsServer = new LuaMCPServer({
|
|
490
|
-
* name: 'docs',
|
|
491
|
-
* transport: 'streamable-http',
|
|
492
|
-
* url: 'https://mcp.example.com/mcp',
|
|
493
|
-
* headers: () => ({
|
|
494
|
-
* 'Authorization': `Bearer ${env("MCP_API_TOKEN")}`
|
|
495
|
-
* })
|
|
496
|
-
* });
|
|
497
|
-
*
|
|
498
|
-
* // Remote MCP server via SSE (legacy)
|
|
499
|
-
* const legacyServer = new LuaMCPServer({
|
|
500
|
-
* name: 'legacy-api',
|
|
501
|
-
* transport: 'sse',
|
|
502
|
-
* url: 'https://old-mcp.example.com/sse',
|
|
503
|
-
* headers: () => ({
|
|
504
|
-
* 'Authorization': `Bearer ${env("API_KEY")}`
|
|
505
|
-
* })
|
|
506
|
-
* });
|
|
507
|
-
* ```
|
|
508
|
-
*/
|
|
509
|
-
export class LuaMCPServer {
|
|
510
|
-
constructor(config) {
|
|
511
|
-
if (!config.name) {
|
|
512
|
-
throw new Error('MCP server name is required');
|
|
513
|
-
}
|
|
514
|
-
// Reject stdio transport (not supported yet) with helpful error message
|
|
515
|
-
if (config.transport === 'stdio') {
|
|
516
|
-
throw new Error(`stdio transport is not supported yet. ` +
|
|
517
|
-
`Please use 'streamable-http' (recommended) or 'sse' transport instead. ` +
|
|
518
|
-
`See https://docs.heylua.ai/overview/mcp-servers for migration guide.`);
|
|
519
|
-
}
|
|
520
|
-
if ((config.transport === 'sse' || config.transport === 'streamable-http') && !config.url) {
|
|
521
|
-
throw new Error(`URL is required for ${config.transport} transport`);
|
|
522
|
-
}
|
|
523
|
-
this.config = config;
|
|
524
|
-
}
|
|
525
|
-
getName() {
|
|
526
|
-
return this.config.name;
|
|
527
|
-
}
|
|
528
|
-
getTransport() {
|
|
529
|
-
return this.config.transport;
|
|
530
|
-
}
|
|
531
|
-
getTimeout() {
|
|
532
|
-
return this.config.timeout;
|
|
533
|
-
}
|
|
534
|
-
getConfig() {
|
|
535
|
-
return this.config;
|
|
536
|
-
}
|
|
537
|
-
/**
|
|
538
|
-
* Returns the server configuration in a format suitable for serialization.
|
|
539
|
-
* Environment variable references (${env.VAR_NAME}) are preserved for runtime resolution.
|
|
540
|
-
*/
|
|
541
|
-
toJSON() {
|
|
542
|
-
const base = {
|
|
543
|
-
name: this.config.name,
|
|
544
|
-
transport: this.config.transport,
|
|
545
|
-
};
|
|
546
|
-
if (this.config.timeout) {
|
|
547
|
-
base.timeout = this.config.timeout;
|
|
548
|
-
}
|
|
549
|
-
// Both sse and streamable-http transports use the same fields
|
|
550
|
-
base.url = this.config.url;
|
|
551
|
-
if (this.config.headers) {
|
|
552
|
-
base.headers = this.config.headers;
|
|
553
|
-
}
|
|
554
|
-
return base;
|
|
555
|
-
}
|
|
556
|
-
}
|
|
557
|
-
/**
|
|
558
|
-
* LuaAgent class.
|
|
559
|
-
* Unified agent configuration that consolidates skills, webhooks, jobs, and processors.
|
|
560
|
-
*
|
|
561
|
-
* This is the simplest way to define an agent. Instead of exporting multiple separate
|
|
562
|
-
* components, you create one LuaAgent that contains everything.
|
|
563
|
-
*
|
|
564
|
-
* @example
|
|
565
|
-
* ```typescript
|
|
566
|
-
* import { LuaAgent, LuaSkill, LuaJob, LuaWebhook } from 'lua-cli';
|
|
567
|
-
*
|
|
568
|
-
* // Define your skills, jobs, webhooks in separate files
|
|
569
|
-
* import { userSkill } from './skills/user-skill';
|
|
570
|
-
* import { healthCheckJob } from './jobs/health-check';
|
|
571
|
-
* import { webhookHandler } from './webhooks/handler';
|
|
572
|
-
*
|
|
573
|
-
* // Create a single agent configuration
|
|
574
|
-
* export const agent = new LuaAgent({
|
|
575
|
-
* name: 'my-assistant',
|
|
576
|
-
* persona: 'You are a helpful AI assistant that can manage users and products.',
|
|
577
|
-
* skills: [userSkill],
|
|
578
|
-
* jobs: [healthCheckJob],
|
|
579
|
-
* webhooks: [webhookHandler],
|
|
580
|
-
* preProcessors: [],
|
|
581
|
-
* postProcessors: []
|
|
582
|
-
* });
|
|
583
|
-
* ```
|
|
584
|
-
*/
|
|
585
|
-
export class LuaAgent {
|
|
586
|
-
/**
|
|
587
|
-
* Creates a new LuaAgent instance.
|
|
588
|
-
*
|
|
589
|
-
* @param config - Agent configuration
|
|
590
|
-
* @param config.name - Agent name
|
|
591
|
-
* @param config.persona - Agent persona (behavior and personality)
|
|
592
|
-
* @param config.model - Optional LLM model ('provider/model' string or resolver function)
|
|
593
|
-
* @param config.skills - Optional array of skills
|
|
594
|
-
* @param config.webhooks - Optional array of webhooks
|
|
595
|
-
* @param config.jobs - Optional array of jobs
|
|
596
|
-
* @param config.preProcessors - Optional array of preprocessors
|
|
597
|
-
* @param config.postProcessors - Optional array of postprocessors
|
|
598
|
-
* @param config.mcpServers - Optional array of MCP servers
|
|
599
|
-
* @param config.devices - Optional array of devices (external hardware)
|
|
600
|
-
* @param config.batching - Optional per-agent batching/debounce configuration
|
|
601
|
-
*/
|
|
602
|
-
constructor(config) {
|
|
603
|
-
this.name = config.name;
|
|
604
|
-
this.persona = config.persona;
|
|
605
|
-
this.model = config.model;
|
|
606
|
-
if (typeof this.persona === 'object') {
|
|
607
|
-
if (!this.persona.base && !this.persona.voice && !this.persona.text) {
|
|
608
|
-
throw new Error('Agent persona object must have at least one of: base, voice, text');
|
|
609
|
-
}
|
|
610
|
-
}
|
|
611
|
-
this.skills = config.skills || [];
|
|
612
|
-
this.webhooks = config.webhooks || [];
|
|
613
|
-
this.jobs = config.jobs || [];
|
|
614
|
-
this.preProcessors = config.preProcessors || [];
|
|
615
|
-
this.postProcessors = config.postProcessors || [];
|
|
616
|
-
this.mcpServers = config.mcpServers || [];
|
|
617
|
-
this.devices = config.devices || [];
|
|
618
|
-
this.deviceTriggers = config.deviceTriggers || [];
|
|
619
|
-
this.batching = config.batching;
|
|
620
|
-
this.governance = config.governance;
|
|
621
|
-
}
|
|
622
|
-
getName() {
|
|
623
|
-
return this.name;
|
|
624
|
-
}
|
|
625
|
-
getPersona() {
|
|
626
|
-
return this.persona;
|
|
627
|
-
}
|
|
628
|
-
getModel() {
|
|
629
|
-
return this.model;
|
|
630
|
-
}
|
|
631
|
-
getSkills() {
|
|
632
|
-
return this.skills;
|
|
633
|
-
}
|
|
634
|
-
getWebhooks() {
|
|
635
|
-
return this.webhooks;
|
|
636
|
-
}
|
|
637
|
-
getJobs() {
|
|
638
|
-
return this.jobs;
|
|
639
|
-
}
|
|
640
|
-
getPreProcessors() {
|
|
641
|
-
return this.preProcessors;
|
|
642
|
-
}
|
|
643
|
-
getPostProcessors() {
|
|
644
|
-
return this.postProcessors;
|
|
645
|
-
}
|
|
646
|
-
getMCPServers() {
|
|
647
|
-
return this.mcpServers;
|
|
648
|
-
}
|
|
649
|
-
getBatching() {
|
|
650
|
-
return this.batching;
|
|
651
|
-
}
|
|
652
|
-
getDevices() {
|
|
653
|
-
return this.devices;
|
|
654
|
-
}
|
|
655
|
-
}
|
|
656
|
-
/**
|
|
657
|
-
* LuaDevice class — represents an external device that an agent can communicate with.
|
|
658
|
-
*
|
|
659
|
-
* Used in two ways:
|
|
660
|
-
* - Class-based: `export default new LuaDevice({ ... })`
|
|
661
|
-
* - Function-based: `export const myDevice = defineDevice({ ... })` (preferred)
|
|
662
|
-
*/
|
|
663
|
-
export class LuaDevice {
|
|
664
|
-
constructor(config) {
|
|
665
|
-
this.name = config.name;
|
|
666
|
-
this.description = config.description || '';
|
|
667
|
-
this.group = config.group;
|
|
668
|
-
this.commands = config.commands || {};
|
|
669
|
-
this.triggers = config.triggers || {};
|
|
670
|
-
}
|
|
671
|
-
}
|
|
672
|
-
/**
|
|
673
|
-
* Lua Device Trigger class.
|
|
674
|
-
*
|
|
675
|
-
* Standalone device trigger primitive. Can be used with either:
|
|
676
|
-
* - Class-based: `export default new LuaDeviceTrigger({ ... })`
|
|
677
|
-
* - Function-based: `export const myTrigger = defineDeviceTrigger({ ... })` (preferred)
|
|
678
|
-
*/
|
|
679
|
-
export class LuaDeviceTrigger {
|
|
680
|
-
constructor(config) {
|
|
681
|
-
this.config = config;
|
|
682
|
-
this.name = config.name;
|
|
683
|
-
this.description = config.description || '';
|
|
684
|
-
this.payloadSchema = config.payloadSchema;
|
|
685
|
-
this.execute = config.execute;
|
|
686
|
-
}
|
|
687
|
-
}
|
|
688
|
-
//# sourceMappingURL=skill.js.map
|