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,394 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
-
|
|
4
|
-
// src/persona-text.type.ts
|
|
5
|
-
function isPersonaTextObject(value) {
|
|
6
|
-
if (value === null || typeof value !== "object" || Array.isArray(value)) return false;
|
|
7
|
-
const obj = value;
|
|
8
|
-
for (const k of Object.keys(obj)) {
|
|
9
|
-
if (k !== "base" && k !== "voice" && k !== "text") return false;
|
|
10
|
-
if (obj[k] !== void 0 && typeof obj[k] !== "string") return false;
|
|
11
|
-
}
|
|
12
|
-
return true;
|
|
13
|
-
}
|
|
14
|
-
__name(isPersonaTextObject, "isPersonaTextObject");
|
|
15
|
-
function flattenPersonaText(input, isVoice = false) {
|
|
16
|
-
if (input == null) return "";
|
|
17
|
-
if (typeof input === "string") return input;
|
|
18
|
-
const parts = [];
|
|
19
|
-
if (input.base) parts.push(input.base);
|
|
20
|
-
const channelText = isVoice ? input.voice : input.text;
|
|
21
|
-
if (channelText) parts.push(channelText);
|
|
22
|
-
return parts.join("\n\n");
|
|
23
|
-
}
|
|
24
|
-
__name(flattenPersonaText, "flattenPersonaText");
|
|
25
|
-
function flattenPersonaTextAll(input) {
|
|
26
|
-
if (input == null) return "";
|
|
27
|
-
if (typeof input === "string") return input;
|
|
28
|
-
const parts = [];
|
|
29
|
-
if (input.base) parts.push(input.base);
|
|
30
|
-
if (input.voice) parts.push(input.voice);
|
|
31
|
-
if (input.text) parts.push(input.text);
|
|
32
|
-
return parts.join("\n\n");
|
|
33
|
-
}
|
|
34
|
-
__name(flattenPersonaTextAll, "flattenPersonaTextAll");
|
|
35
|
-
function hasPersonaTextContent(input) {
|
|
36
|
-
if (input == null) return false;
|
|
37
|
-
if (typeof input === "string") return input.trim().length > 0;
|
|
38
|
-
return Boolean(input.base?.trim() || input.voice?.trim() || input.text?.trim());
|
|
39
|
-
}
|
|
40
|
-
__name(hasPersonaTextContent, "hasPersonaTextContent");
|
|
41
|
-
function personaToLiteral(persona) {
|
|
42
|
-
const formatValue = /* @__PURE__ */ __name((v) => {
|
|
43
|
-
if (v.includes("\n")) {
|
|
44
|
-
return "`" + v.replace(/\\/g, "\\\\").replace(/`/g, "\\`").replace(/\$/g, "\\$") + "`";
|
|
45
|
-
}
|
|
46
|
-
return '"' + v.replace(/\\/g, "\\\\").replace(/"/g, '\\"') + '"';
|
|
47
|
-
}, "formatValue");
|
|
48
|
-
if (typeof persona === "string") return formatValue(persona);
|
|
49
|
-
const parts = [];
|
|
50
|
-
if (persona.base !== void 0) parts.push(`base: ${formatValue(persona.base)}`);
|
|
51
|
-
if (persona.voice !== void 0) parts.push(`voice: ${formatValue(persona.voice)}`);
|
|
52
|
-
if (persona.text !== void 0) parts.push(`text: ${formatValue(persona.text)}`);
|
|
53
|
-
return `{ ${parts.join(", ")} }`;
|
|
54
|
-
}
|
|
55
|
-
__name(personaToLiteral, "personaToLiteral");
|
|
56
|
-
|
|
57
|
-
// src/unstructured-types.ts
|
|
58
|
-
var UNSTRUCTURED_SUPPORTED_MEDIA_TYPES = /* @__PURE__ */ new Set([
|
|
59
|
-
// PDF
|
|
60
|
-
"application/pdf",
|
|
61
|
-
// Word processing (.doc, .docx, .dot, .dotm, .zabw)
|
|
62
|
-
"application/msword",
|
|
63
|
-
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
64
|
-
"application/vnd.openxmlformats-officedocument.wordprocessingml.template",
|
|
65
|
-
"application/vnd.oasis.opendocument.text",
|
|
66
|
-
"application/rtf",
|
|
67
|
-
"text/rtf",
|
|
68
|
-
"application/x-abiword",
|
|
69
|
-
// Spreadsheets (.xls, .xlsx, .fods, .csv, .tsv, .dbf, .et, .mw)
|
|
70
|
-
"application/vnd.ms-excel",
|
|
71
|
-
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
72
|
-
"application/vnd.oasis.opendocument.spreadsheet",
|
|
73
|
-
"text/csv",
|
|
74
|
-
"text/tab-separated-values",
|
|
75
|
-
"application/dbase",
|
|
76
|
-
"application/x-et",
|
|
77
|
-
// Presentations (.ppt, .pptx, .pptm, .pot)
|
|
78
|
-
"application/vnd.ms-powerpoint",
|
|
79
|
-
"application/vnd.openxmlformats-officedocument.presentationml.presentation",
|
|
80
|
-
"application/vnd.openxmlformats-officedocument.presentationml.template",
|
|
81
|
-
// Images — OCR (.bmp, .heic, .jpeg, .jpg, .png, .prn, .tiff)
|
|
82
|
-
"image/jpeg",
|
|
83
|
-
"image/jpg",
|
|
84
|
-
"image/png",
|
|
85
|
-
"image/tiff",
|
|
86
|
-
"image/bmp",
|
|
87
|
-
"image/heic",
|
|
88
|
-
// Email (.eml, .msg, .p7s)
|
|
89
|
-
"message/rfc822",
|
|
90
|
-
"application/vnd.ms-outlook",
|
|
91
|
-
"application/pkcs7-signature",
|
|
92
|
-
// Web/Markup (.htm, .html, .md, .rst, .xml, .org)
|
|
93
|
-
"text/html",
|
|
94
|
-
"text/markdown",
|
|
95
|
-
"text/x-rst",
|
|
96
|
-
"text/x-org",
|
|
97
|
-
"application/xml",
|
|
98
|
-
"text/xml",
|
|
99
|
-
// Text (.txt)
|
|
100
|
-
"text/plain",
|
|
101
|
-
// eBook (.epub)
|
|
102
|
-
"application/epub+zip",
|
|
103
|
-
// Other (.hwp, .json, .cwk, .mcw, .dif, .sxg)
|
|
104
|
-
"application/json",
|
|
105
|
-
"application/x-hwp",
|
|
106
|
-
"application/clarisworks",
|
|
107
|
-
"application/x-dif",
|
|
108
|
-
"application/vnd.sun.xml.writer.global"
|
|
109
|
-
]);
|
|
110
|
-
|
|
111
|
-
// src/ai-generate.utils.ts
|
|
112
|
-
function aiGenerateInputFromSimplified(prompt, content) {
|
|
113
|
-
if (content === void 0) {
|
|
114
|
-
return {
|
|
115
|
-
prompt
|
|
116
|
-
};
|
|
117
|
-
}
|
|
118
|
-
return {
|
|
119
|
-
system: prompt,
|
|
120
|
-
messages: [
|
|
121
|
-
{
|
|
122
|
-
role: "user",
|
|
123
|
-
content
|
|
124
|
-
}
|
|
125
|
-
]
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
__name(aiGenerateInputFromSimplified, "aiGenerateInputFromSimplified");
|
|
129
|
-
|
|
130
|
-
// src/chat-history.types.ts
|
|
131
|
-
function removeNavigateBlock(input) {
|
|
132
|
-
return input.replace(/::: navigate[\s\S]*?:::/g, "").trim();
|
|
133
|
-
}
|
|
134
|
-
__name(removeNavigateBlock, "removeNavigateBlock");
|
|
135
|
-
function transformChatHistoryContentParts(parts) {
|
|
136
|
-
const content = [];
|
|
137
|
-
for (const rawPart of parts ?? []) {
|
|
138
|
-
const part = rawPart;
|
|
139
|
-
if (part?.type !== "text" && part?.type !== "file") continue;
|
|
140
|
-
if (part.type === "text" && typeof part.text === "string") {
|
|
141
|
-
const rawText = part.text || "";
|
|
142
|
-
if (rawText.includes("::: hide")) continue;
|
|
143
|
-
const audioMatch = rawText.match(/::: audio\s*!\[(.*?)\]\((.*?)\)\s*:::/);
|
|
144
|
-
const videoMatch = rawText.match(/::: video\s*!\[(.*?)\]\((.*?)\)\s*:::/);
|
|
145
|
-
if (audioMatch) {
|
|
146
|
-
content.push({
|
|
147
|
-
type: "audio",
|
|
148
|
-
data: audioMatch[2],
|
|
149
|
-
mediaType: audioMatch[1]
|
|
150
|
-
});
|
|
151
|
-
} else if (videoMatch) {
|
|
152
|
-
content.push({
|
|
153
|
-
type: "video",
|
|
154
|
-
video: videoMatch[2],
|
|
155
|
-
mediaType: videoMatch[1]
|
|
156
|
-
});
|
|
157
|
-
} else {
|
|
158
|
-
let text = rawText.replace(/\\\\\\n/g, "\n");
|
|
159
|
-
text = removeNavigateBlock(text);
|
|
160
|
-
content.push({
|
|
161
|
-
type: "text",
|
|
162
|
-
text
|
|
163
|
-
});
|
|
164
|
-
}
|
|
165
|
-
} else if (part.type === "file") {
|
|
166
|
-
const mediaType = part.mimeType || "";
|
|
167
|
-
if (mediaType.startsWith("image/")) {
|
|
168
|
-
content.push({
|
|
169
|
-
type: "image",
|
|
170
|
-
image: part.data,
|
|
171
|
-
mediaType
|
|
172
|
-
});
|
|
173
|
-
} else if (mediaType.startsWith("video/")) {
|
|
174
|
-
content.push({
|
|
175
|
-
type: "video",
|
|
176
|
-
video: part.data,
|
|
177
|
-
mediaType
|
|
178
|
-
});
|
|
179
|
-
} else if (mediaType.startsWith("audio/")) {
|
|
180
|
-
content.push({
|
|
181
|
-
type: "audio",
|
|
182
|
-
data: part.data,
|
|
183
|
-
mediaType
|
|
184
|
-
});
|
|
185
|
-
} else {
|
|
186
|
-
content.push({
|
|
187
|
-
type: "file",
|
|
188
|
-
data: part.data,
|
|
189
|
-
mediaType
|
|
190
|
-
});
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
return content;
|
|
195
|
-
}
|
|
196
|
-
__name(transformChatHistoryContentParts, "transformChatHistoryContentParts");
|
|
197
|
-
|
|
198
|
-
// src/sandbox-contract.ts
|
|
199
|
-
var REQUIRED_PRIMITIVE_SHIMS = [
|
|
200
|
-
// Class-based
|
|
201
|
-
"LuaTool",
|
|
202
|
-
"LuaSkill",
|
|
203
|
-
"LuaJob",
|
|
204
|
-
"LuaWebhook",
|
|
205
|
-
"PreProcessor",
|
|
206
|
-
"LuaPreprocessor",
|
|
207
|
-
"PostProcessor",
|
|
208
|
-
"LuaPostprocessor",
|
|
209
|
-
"LuaMCPServer",
|
|
210
|
-
// Function-based
|
|
211
|
-
"defineTool",
|
|
212
|
-
"defineSkill",
|
|
213
|
-
"defineJob",
|
|
214
|
-
"defineWebhook",
|
|
215
|
-
"definePreProcessor",
|
|
216
|
-
"definePostProcessor",
|
|
217
|
-
"defineMCPServer"
|
|
218
|
-
];
|
|
219
|
-
var REQUIRED_PLATFORM_APIS = {
|
|
220
|
-
User: [
|
|
221
|
-
"get",
|
|
222
|
-
"getChatHistory"
|
|
223
|
-
],
|
|
224
|
-
Products: [
|
|
225
|
-
"get",
|
|
226
|
-
"create",
|
|
227
|
-
"delete",
|
|
228
|
-
"search",
|
|
229
|
-
"getById"
|
|
230
|
-
],
|
|
231
|
-
Baskets: [
|
|
232
|
-
"create",
|
|
233
|
-
"get",
|
|
234
|
-
"addItem",
|
|
235
|
-
"removeItem",
|
|
236
|
-
"clear",
|
|
237
|
-
"updateStatus",
|
|
238
|
-
"updateMetadata",
|
|
239
|
-
"placeOrder",
|
|
240
|
-
"getById"
|
|
241
|
-
],
|
|
242
|
-
Orders: [
|
|
243
|
-
"create",
|
|
244
|
-
"updateStatus",
|
|
245
|
-
"updateData",
|
|
246
|
-
"get",
|
|
247
|
-
"getById"
|
|
248
|
-
],
|
|
249
|
-
Data: [
|
|
250
|
-
"create",
|
|
251
|
-
"get",
|
|
252
|
-
"getEntry",
|
|
253
|
-
"update",
|
|
254
|
-
"search",
|
|
255
|
-
"delete"
|
|
256
|
-
],
|
|
257
|
-
Jobs: [
|
|
258
|
-
"create",
|
|
259
|
-
"getJob",
|
|
260
|
-
"getAll"
|
|
261
|
-
],
|
|
262
|
-
AI: [
|
|
263
|
-
"generate"
|
|
264
|
-
],
|
|
265
|
-
CDN: [
|
|
266
|
-
"upload",
|
|
267
|
-
"get"
|
|
268
|
-
]
|
|
269
|
-
};
|
|
270
|
-
var REQUIRED_NESTED_APIS = {
|
|
271
|
-
Templates: {
|
|
272
|
-
whatsapp: [
|
|
273
|
-
"list",
|
|
274
|
-
"get",
|
|
275
|
-
"send"
|
|
276
|
-
]
|
|
277
|
-
},
|
|
278
|
-
Lua: {
|
|
279
|
-
request: [
|
|
280
|
-
"channel"
|
|
281
|
-
]
|
|
282
|
-
}
|
|
283
|
-
};
|
|
284
|
-
var REQUIRED_ENUMS = {
|
|
285
|
-
BasketStatus: [
|
|
286
|
-
"ACTIVE",
|
|
287
|
-
"CHECKED_OUT",
|
|
288
|
-
"ABANDONED",
|
|
289
|
-
"EXPIRED"
|
|
290
|
-
],
|
|
291
|
-
OrderStatus: [
|
|
292
|
-
"PENDING",
|
|
293
|
-
"CONFIRMED",
|
|
294
|
-
"FULFILLED",
|
|
295
|
-
"CANCELLED"
|
|
296
|
-
]
|
|
297
|
-
};
|
|
298
|
-
var REQUIRED_UTILITIES = [
|
|
299
|
-
"env"
|
|
300
|
-
];
|
|
301
|
-
|
|
302
|
-
// src/client-tools.types.ts
|
|
303
|
-
var CLIENT_TOOL_PREFIX = "client__";
|
|
304
|
-
var CLIENT_TOOLS_MAX = 20;
|
|
305
|
-
|
|
306
|
-
// src/persona-defaults.ts
|
|
307
|
-
var AGENT_NAME_TOKEN = "[Your Agent Name]";
|
|
308
|
-
var DEFAULT_PERSONA_GUIDE = `# ${AGENT_NAME_TOKEN} - Persona
|
|
309
|
-
|
|
310
|
-
This is a starting template to help you think about your agent's persona.
|
|
311
|
-
Use it as-is, rearrange it, or replace it entirely with your own format \u2014 whatever works best for your use case.
|
|
312
|
-
The sections below are suggestions, not requirements.
|
|
313
|
-
|
|
314
|
-
## Identity & Role
|
|
315
|
-
Who is your agent? What's their name and core purpose?
|
|
316
|
-
- Give it a name and a clear one-line role
|
|
317
|
-
- e.g. a customer support rep, a shopping assistant, an internal ops copilot, a scheduling bot
|
|
318
|
-
|
|
319
|
-
## Business Context
|
|
320
|
-
What company, product, or service does the agent represent? What does the business do?
|
|
321
|
-
- Describe the business in a sentence or two so the agent understands the world it operates in
|
|
322
|
-
- Include industry, value proposition, and anything the agent should "know" about the brand
|
|
323
|
-
|
|
324
|
-
## Tone & Communication Style
|
|
325
|
-
How should the agent sound?
|
|
326
|
-
- Formal or casual? Concise or detailed? Empathetic or matter-of-fact?
|
|
327
|
-
- Should it match a specific brand voice or adapt to the user's tone?
|
|
328
|
-
- Any language or cultural considerations (e.g. greetings, local expressions)?
|
|
329
|
-
|
|
330
|
-
## Target Audience
|
|
331
|
-
Who will the agent be talking to?
|
|
332
|
-
- Describe the typical user: consumers, business customers, internal team members, etc.
|
|
333
|
-
- What do they usually need help with? What matters most to them?
|
|
334
|
-
|
|
335
|
-
## Capabilities
|
|
336
|
-
What can the agent help with? List the main things it should handle.
|
|
337
|
-
- e.g. answering product questions, placing orders, looking up account info, scheduling meetings
|
|
338
|
-
- Be specific \u2014 this shapes which skills and tools the agent will use
|
|
339
|
-
|
|
340
|
-
## Boundaries
|
|
341
|
-
What should the agent NOT do? When should it escalate to a human?
|
|
342
|
-
- e.g. cannot process refunds, should not give medical/legal advice
|
|
343
|
-
- Define when to hand off: frustrated user, request outside scope, sensitive data
|
|
344
|
-
|
|
345
|
-
## Guidelines
|
|
346
|
-
Any rules for how the agent behaves?
|
|
347
|
-
- Response length limits (e.g. keep messages under 300 words)
|
|
348
|
-
- Formatting preferences (e.g. use bullet points, avoid jargon)
|
|
349
|
-
- Things to always or never do (e.g. always confirm before changes, never share internal IDs)
|
|
350
|
-
|
|
351
|
-
---
|
|
352
|
-
Feel free to add, remove, or rename sections. Your persona can be a single paragraph or a detailed playbook \u2014 whatever gives your agent the context it needs.
|
|
353
|
-
`;
|
|
354
|
-
function buildDefaultPersona(agentName) {
|
|
355
|
-
return DEFAULT_PERSONA_GUIDE.replace(AGENT_NAME_TOKEN, () => agentName || "My Agent");
|
|
356
|
-
}
|
|
357
|
-
__name(buildDefaultPersona, "buildDefaultPersona");
|
|
358
|
-
|
|
359
|
-
// src/vm-execution-log.types.ts
|
|
360
|
-
var AGENT_LOG_SOURCES = [
|
|
361
|
-
"skill",
|
|
362
|
-
"job",
|
|
363
|
-
"webhook",
|
|
364
|
-
"preprocessor",
|
|
365
|
-
"postprocessor",
|
|
366
|
-
"user_message",
|
|
367
|
-
"agent_response",
|
|
368
|
-
"agent_error",
|
|
369
|
-
"runtime",
|
|
370
|
-
"mcp",
|
|
371
|
-
"rag",
|
|
372
|
-
"device",
|
|
373
|
-
"device-trigger"
|
|
374
|
-
];
|
|
375
|
-
export {
|
|
376
|
-
AGENT_LOG_SOURCES,
|
|
377
|
-
CLIENT_TOOLS_MAX,
|
|
378
|
-
CLIENT_TOOL_PREFIX,
|
|
379
|
-
REQUIRED_ENUMS,
|
|
380
|
-
REQUIRED_NESTED_APIS,
|
|
381
|
-
REQUIRED_PLATFORM_APIS,
|
|
382
|
-
REQUIRED_PRIMITIVE_SHIMS,
|
|
383
|
-
REQUIRED_UTILITIES,
|
|
384
|
-
UNSTRUCTURED_SUPPORTED_MEDIA_TYPES,
|
|
385
|
-
aiGenerateInputFromSimplified,
|
|
386
|
-
buildDefaultPersona,
|
|
387
|
-
flattenPersonaText,
|
|
388
|
-
flattenPersonaTextAll,
|
|
389
|
-
hasPersonaTextContent,
|
|
390
|
-
isPersonaTextObject,
|
|
391
|
-
personaToLiteral,
|
|
392
|
-
removeNavigateBlock,
|
|
393
|
-
transformChatHistoryContentParts
|
|
394
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@lua/shared-types",
|
|
3
|
-
"version": "0.0.1",
|
|
4
|
-
"private": true,
|
|
5
|
-
"main": "./dist/index.js",
|
|
6
|
-
"module": "./dist/index.mjs",
|
|
7
|
-
"types": "./dist/index.d.ts",
|
|
8
|
-
"exports": {
|
|
9
|
-
".": {
|
|
10
|
-
"types": "./dist/index.d.ts",
|
|
11
|
-
"import": "./dist/index.mjs",
|
|
12
|
-
"require": "./dist/index.js"
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
"scripts": {
|
|
16
|
-
"build": "tsup",
|
|
17
|
-
"clean": "rm -rf dist"
|
|
18
|
-
},
|
|
19
|
-
"peerDependencies": {
|
|
20
|
-
"ai": "^5.0.0"
|
|
21
|
-
},
|
|
22
|
-
"devDependencies": {
|
|
23
|
-
"tsup": "^8.5.1",
|
|
24
|
-
"typescript": "^5.8.2"
|
|
25
|
-
}
|
|
26
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Per-agent message batching/debounce configuration.
|
|
3
|
-
* Overrides platform-wide env var defaults for this specific agent.
|
|
4
|
-
*/
|
|
5
|
-
export interface BatchingConfig {
|
|
6
|
-
/** Hold first message N ms before processing, to allow rapid follow-ups to batch together. 0 = disabled. */
|
|
7
|
-
firstMessageDelayMs?: number;
|
|
8
|
-
/** Window to collect subsequent messages while one is in-flight (ms). 0 = batching disabled. */
|
|
9
|
-
debounceWindowMs?: number;
|
|
10
|
-
/** Maximum messages collected in a single batch. */
|
|
11
|
-
maxBatchMessages?: number;
|
|
12
|
-
/**
|
|
13
|
-
* Strict sequential turn execution. When `true`, a new message arriving while a turn is
|
|
14
|
-
* in-flight does NOT abort the running turn — it waits in a batch until the current turn
|
|
15
|
-
* completes, then runs against the post-reply state. Trades latency for correctness:
|
|
16
|
-
* eliminates duplicate/contradictory replies and side-effect-then-no-reply failures from
|
|
17
|
-
* mid-tool aborts. No effect when `debounceWindowMs` is 0 (batching disabled).
|
|
18
|
-
*
|
|
19
|
-
* Most useful with the stream endpoint. Generate callers (e.g. lua-whatsapp, sync HTTP)
|
|
20
|
-
* may hit ingress / client timeouts on long waits regardless of backend serialization.
|
|
21
|
-
*
|
|
22
|
-
* Per-agent only — there is no platform-wide env var override (deliberate: a global
|
|
23
|
-
* switch would silently flip every batching-enabled agent at once). Default: `false`.
|
|
24
|
-
*/
|
|
25
|
-
serializeProcessing?: boolean;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Governance SDK configuration persisted on the SubAgent document.
|
|
30
|
-
*
|
|
31
|
-
* The API-mode bearer token is NEVER stored here. At runtime the
|
|
32
|
-
* platform resolves it from the `GOVERNANCE_API_KEY` env var. This
|
|
33
|
-
* keeps secrets out of MongoDB, support logs, and backups.
|
|
34
|
-
*/
|
|
35
|
-
export interface GovernanceConfig {
|
|
36
|
-
mode: 'sdk' | 'api';
|
|
37
|
-
/** SDK mode — local in-memory policy rules */
|
|
38
|
-
rules?: {
|
|
39
|
-
blockTools?: string[];
|
|
40
|
-
requireApproval?: string[];
|
|
41
|
-
tokenBudget?: number;
|
|
42
|
-
};
|
|
43
|
-
/** API mode — remote enforcement server URL */
|
|
44
|
-
serverUrl?: string;
|
|
45
|
-
}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import type { UserContent } from 'ai';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Wire-format input for sandbox `Agents.invoke` / `POST /chat/generate/:agentId`
|
|
5
|
-
* when triggered programmatically by another agent/skill/tool.
|
|
6
|
-
*
|
|
7
|
-
* Intentionally a narrow, safe subset of the public `ChatMessageDto` — omits
|
|
8
|
-
* sandbox-only overrides (`skillOverride`, `preprocessorOverride`, etc.),
|
|
9
|
-
* webhook payloads, navigation hints, and persona override.
|
|
10
|
-
*
|
|
11
|
-
* Either `prompt` or `messages` must be provided. When `prompt` is given, it is
|
|
12
|
-
* converted into a single `{ role: 'user', content: [{ type: 'text', text: prompt }] }`
|
|
13
|
-
* message downstream.
|
|
14
|
-
*/
|
|
15
|
-
export interface AgentInvocationInput {
|
|
16
|
-
/** Shortcut: plain-text prompt. Mutually exclusive with `messages`. */
|
|
17
|
-
prompt?: string;
|
|
18
|
-
/** AI SDK `UserContent` (text/image/file parts). Mutually exclusive with `prompt`. */
|
|
19
|
-
messages?: UserContent;
|
|
20
|
-
/** Override the target agent's system prompt for this invocation. */
|
|
21
|
-
systemPrompt?: string;
|
|
22
|
-
/** Additional runtime context attached to the request. */
|
|
23
|
-
runtimeContext?: string;
|
|
24
|
-
/**
|
|
25
|
-
* Optional thread ID suffix for conversation scoping. When omitted, the
|
|
26
|
-
* invocation flows into the caller-user's default chat thread with the
|
|
27
|
-
* target agent (same behavior as a direct `POST /chat/generate/:agentId`
|
|
28
|
-
* call with no `threadId`). Pass a custom value to isolate invocations.
|
|
29
|
-
*/
|
|
30
|
-
threadId?: string;
|
|
31
|
-
/** Channel identifier, defaults to `'agent-invocation'`. */
|
|
32
|
-
channel?: string;
|
|
33
|
-
/** Free-form request tag persisted on the stored Message record (e.g. a UUID
|
|
34
|
-
* or external trace id for correlation). Not a user identifier. Omitted
|
|
35
|
-
* by default. */
|
|
36
|
-
identifier?: string;
|
|
37
|
-
/**
|
|
38
|
-
* Explicit user to invoke as. Use from context-less triggers (webhooks,
|
|
39
|
-
* pre-defined jobs) where there is no ambient user — mirrors the `User.get(userId)`
|
|
40
|
-
* contract. When omitted from a webhook/pre-defined job, the invocation runs in
|
|
41
|
-
* system scope (no per-user identity, no conversation history). Ignored during
|
|
42
|
-
* a user-authenticated turn — the turn's user is always used, no impersonation.
|
|
43
|
-
*/
|
|
44
|
-
userId?: string;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Narrowed, wire-safe output for `Agents.invoke`. A slice of the internal
|
|
49
|
-
* `FullOutput` shape — raw Mastra steps / tripwire payloads are intentionally
|
|
50
|
-
* not exposed to skill code.
|
|
51
|
-
*/
|
|
52
|
-
export interface AgentInvocationOutput {
|
|
53
|
-
/** Final response text (post-processor-modified, if applicable). */
|
|
54
|
-
text: string;
|
|
55
|
-
/** AI SDK `FinishReason` (or `'preprocessor_blocked'` / `'governance_blocked'`). */
|
|
56
|
-
finishReason?: string;
|
|
57
|
-
/** Token usage summary. */
|
|
58
|
-
usage?: {
|
|
59
|
-
inputTokens?: number;
|
|
60
|
-
outputTokens?: number;
|
|
61
|
-
totalTokens?: number;
|
|
62
|
-
reasoningTokens?: number;
|
|
63
|
-
cachedInputTokens?: number;
|
|
64
|
-
};
|
|
65
|
-
/** Names of tools invoked during generation. */
|
|
66
|
-
toolsUsed?: string[];
|
|
67
|
-
/**
|
|
68
|
-
* Echoes back the `threadId` suffix the caller passed in (if any). When the
|
|
69
|
-
* caller omitted `threadId`, this is undefined — the invocation ran in the
|
|
70
|
-
* user's default chat thread with the target agent.
|
|
71
|
-
*/
|
|
72
|
-
threadId?: string;
|
|
73
|
-
}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import type { FinishReason, LanguageModelUsage, CallWarning, ReasoningOutput } from 'ai';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Wire-format input for sandbox `AI.generate` / `POST .../generate` (JSON-serializable).
|
|
5
|
-
* Serializable subset of AI SDK `generateText` parameters.
|
|
6
|
-
* `messages` is untyped over HTTP; callers typically send AI SDK `ModelMessage[]`.
|
|
7
|
-
*/
|
|
8
|
-
export interface AiGenerateInput {
|
|
9
|
-
model?: string;
|
|
10
|
-
system?: string;
|
|
11
|
-
prompt?: string;
|
|
12
|
-
messages?: unknown[];
|
|
13
|
-
temperature?: number;
|
|
14
|
-
maxOutputTokens?: number;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* URL source from Google Search grounding.
|
|
19
|
-
* Mirrors `LanguageModelV2Source` (AI SDK `Source` type — not exported from `ai` as of v5).
|
|
20
|
-
*/
|
|
21
|
-
export interface AiGenerateSource {
|
|
22
|
-
sourceType: 'url';
|
|
23
|
-
id: string;
|
|
24
|
-
url: string;
|
|
25
|
-
title?: string;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Serializable tool call. Mirrors `TypedToolCall` without generics.
|
|
30
|
-
* `input` matches the AI SDK field name (renamed from `args` in v5).
|
|
31
|
-
*/
|
|
32
|
-
export interface AiGenerateToolCall {
|
|
33
|
-
type: 'tool-call';
|
|
34
|
-
toolCallId: string;
|
|
35
|
-
toolName: string;
|
|
36
|
-
input: unknown;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Serializable tool result. Mirrors `TypedToolResult` without generics.
|
|
41
|
-
* `output` matches the AI SDK field name.
|
|
42
|
-
*/
|
|
43
|
-
export interface AiGenerateToolResult {
|
|
44
|
-
type: 'tool-result';
|
|
45
|
-
toolCallId: string;
|
|
46
|
-
toolName: string;
|
|
47
|
-
output: unknown;
|
|
48
|
-
isError?: boolean;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Wire-format output from `AI.generate` / `POST .../generate`.
|
|
53
|
-
* Fields mirror AI SDK `GenerateTextResult` — uses AI SDK types where exported.
|
|
54
|
-
* See https://ai-sdk.dev/docs/reference/ai-sdk-core/generate-text
|
|
55
|
-
*/
|
|
56
|
-
export interface AiGenerateOutput {
|
|
57
|
-
text: string;
|
|
58
|
-
/** AI SDK `FinishReason` */
|
|
59
|
-
finishReason: FinishReason;
|
|
60
|
-
/** AI SDK `LanguageModelUsage` */
|
|
61
|
-
usage: LanguageModelUsage;
|
|
62
|
-
/** Model reasoning steps (e.g. Gemini thinking) */
|
|
63
|
-
reasoning?: ReasoningOutput[];
|
|
64
|
-
/** Concatenated reasoning text */
|
|
65
|
-
reasoningText?: string;
|
|
66
|
-
/** URL sources from Google Search grounding */
|
|
67
|
-
sources?: AiGenerateSource[];
|
|
68
|
-
/** Tool calls made during generation */
|
|
69
|
-
toolCalls?: AiGenerateToolCall[];
|
|
70
|
-
/** Tool results from generation */
|
|
71
|
-
toolResults?: AiGenerateToolResult[];
|
|
72
|
-
/** Provider warnings (e.g. unsupported settings) — AI SDK `CallWarning[]` */
|
|
73
|
-
warnings?: CallWarning[];
|
|
74
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { UserContent } from 'ai';
|
|
2
|
-
import type { AiGenerateInput } from './ai-generate.types';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Maps simplified `AI.generate(prompt, content?)` calls to wire-format input.
|
|
6
|
-
*/
|
|
7
|
-
export function aiGenerateInputFromSimplified(prompt: string, content?: UserContent): AiGenerateInput {
|
|
8
|
-
if (content === undefined) {
|
|
9
|
-
return { prompt };
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
return {
|
|
13
|
-
system: prompt,
|
|
14
|
-
messages: [{ role: 'user', content }],
|
|
15
|
-
};
|
|
16
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Channel type.
|
|
3
|
-
* Represents the communication channel through which a request originated.
|
|
4
|
-
* Known channels are typed as string literals, unrecognized channels are unknown.
|
|
5
|
-
*/
|
|
6
|
-
export type Channel =
|
|
7
|
-
| 'web' // Chat widget on a website
|
|
8
|
-
| 'meeting' // Recall.ai-backed meeting transport
|
|
9
|
-
| 'whatsapp' // WhatsApp integration
|
|
10
|
-
| 'facebook' // Facebook Messenger integration
|
|
11
|
-
| 'instagram' // Instagram integration
|
|
12
|
-
| 'slack' // Slack integration
|
|
13
|
-
| 'teams' // Microsoft Teams integration
|
|
14
|
-
| 'messagebird' // MessageBird integration
|
|
15
|
-
| 'front' // Front integration
|
|
16
|
-
| 'api' // Direct HTTP API call
|
|
17
|
-
| 'dev' // Local development / CLI testing
|
|
18
|
-
| 'email' // Email integration
|
|
19
|
-
| 'rcs' // RCS (Rich Communication Services) integration
|
|
20
|
-
| 'sms' // SMS via Vonage Messages API
|
|
21
|
-
| 'mms' // MMS via Vonage Messages API
|
|
22
|
-
| 'device' // Device trigger execution context
|
|
23
|
-
| string;
|