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.
Files changed (834) hide show
  1. package/dist/api-exports.d.ts +5029 -698
  2. package/dist/api-exports.js +6509 -772
  3. package/dist/api-exports.js.map +1 -1
  4. package/dist/index.d.ts +0 -1
  5. package/dist/index.js +41174 -82
  6. package/dist/index.js.map +1 -1
  7. package/dist/voice/test/index.d.ts +1217 -0
  8. package/dist/voice/test/index.js +386 -0
  9. package/dist/voice/test/index.js.map +1 -0
  10. package/dist/voice-exports.d.ts +40 -0
  11. package/dist/voice-exports.js +16 -0
  12. package/dist/voice-exports.js.map +1 -0
  13. package/docs/README.md +1 -1
  14. package/package.json +38 -21
  15. package/scripts/build-vendor.mjs +6 -3
  16. package/scripts/run-api-extractor.mjs +79 -0
  17. package/template/.gitignore +21 -0
  18. package/template/package.json +1 -1
  19. package/dist/api/agent.api.service.d.ts +0 -165
  20. package/dist/api/agent.api.service.d.ts.map +0 -1
  21. package/dist/api/agent.api.service.js +0 -207
  22. package/dist/api/agent.api.service.js.map +0 -1
  23. package/dist/api/agents.api.service.d.ts +0 -21
  24. package/dist/api/agents.api.service.d.ts.map +0 -1
  25. package/dist/api/agents.api.service.js +0 -51
  26. package/dist/api/agents.api.service.js.map +0 -1
  27. package/dist/api/ai.api.service.d.ts +0 -20
  28. package/dist/api/ai.api.service.d.ts.map +0 -1
  29. package/dist/api/ai.api.service.js +0 -40
  30. package/dist/api/ai.api.service.js.map +0 -1
  31. package/dist/api/auth.api.service.d.ts +0 -49
  32. package/dist/api/auth.api.service.d.ts.map +0 -1
  33. package/dist/api/auth.api.service.js +0 -55
  34. package/dist/api/auth.api.service.js.map +0 -1
  35. package/dist/api/backup.api.service.d.ts +0 -78
  36. package/dist/api/backup.api.service.d.ts.map +0 -1
  37. package/dist/api/backup.api.service.js +0 -115
  38. package/dist/api/backup.api.service.js.map +0 -1
  39. package/dist/api/basket.api.service.d.ts +0 -85
  40. package/dist/api/basket.api.service.d.ts.map +0 -1
  41. package/dist/api/basket.api.service.js +0 -160
  42. package/dist/api/basket.api.service.js.map +0 -1
  43. package/dist/api/cdn.api.service.d.ts +0 -21
  44. package/dist/api/cdn.api.service.d.ts.map +0 -1
  45. package/dist/api/cdn.api.service.js +0 -46
  46. package/dist/api/cdn.api.service.js.map +0 -1
  47. package/dist/api/chat.api.service.d.ts +0 -40
  48. package/dist/api/chat.api.service.d.ts.map +0 -1
  49. package/dist/api/chat.api.service.js +0 -121
  50. package/dist/api/chat.api.service.js.map +0 -1
  51. package/dist/api/credentials.d.ts +0 -25
  52. package/dist/api/credentials.d.ts.map +0 -1
  53. package/dist/api/credentials.js +0 -44
  54. package/dist/api/credentials.js.map +0 -1
  55. package/dist/api/custom.data.api.service.d.ts +0 -71
  56. package/dist/api/custom.data.api.service.d.ts.map +0 -1
  57. package/dist/api/custom.data.api.service.js +0 -126
  58. package/dist/api/custom.data.api.service.js.map +0 -1
  59. package/dist/api/developer.api.service.d.ts +0 -121
  60. package/dist/api/developer.api.service.d.ts.map +0 -1
  61. package/dist/api/developer.api.service.js +0 -162
  62. package/dist/api/developer.api.service.js.map +0 -1
  63. package/dist/api/device-trigger.api.service.d.ts +0 -136
  64. package/dist/api/device-trigger.api.service.d.ts.map +0 -1
  65. package/dist/api/device-trigger.api.service.js +0 -120
  66. package/dist/api/device-trigger.api.service.js.map +0 -1
  67. package/dist/api/device.api.service.d.ts +0 -61
  68. package/dist/api/device.api.service.d.ts.map +0 -1
  69. package/dist/api/device.api.service.js +0 -72
  70. package/dist/api/device.api.service.js.map +0 -1
  71. package/dist/api/http.client.d.ts +0 -90
  72. package/dist/api/http.client.d.ts.map +0 -1
  73. package/dist/api/http.client.js +0 -265
  74. package/dist/api/http.client.js.map +0 -1
  75. package/dist/api/job.api.service.d.ts +0 -154
  76. package/dist/api/job.api.service.d.ts.map +0 -1
  77. package/dist/api/job.api.service.js +0 -230
  78. package/dist/api/job.api.service.js.map +0 -1
  79. package/dist/api/lazy-instances.d.ts +0 -107
  80. package/dist/api/lazy-instances.d.ts.map +0 -1
  81. package/dist/api/lazy-instances.js +0 -220
  82. package/dist/api/lazy-instances.js.map +0 -1
  83. package/dist/api/logs.api.service.d.ts +0 -38
  84. package/dist/api/logs.api.service.d.ts.map +0 -1
  85. package/dist/api/logs.api.service.js +0 -50
  86. package/dist/api/logs.api.service.js.map +0 -1
  87. package/dist/api/marketplace.api.service.d.ts +0 -28
  88. package/dist/api/marketplace.api.service.d.ts.map +0 -1
  89. package/dist/api/marketplace.api.service.js +0 -112
  90. package/dist/api/marketplace.api.service.js.map +0 -1
  91. package/dist/api/order.api.service.d.ts +0 -53
  92. package/dist/api/order.api.service.d.ts.map +0 -1
  93. package/dist/api/order.api.service.js +0 -94
  94. package/dist/api/order.api.service.js.map +0 -1
  95. package/dist/api/persona.api.service.d.ts +0 -56
  96. package/dist/api/persona.api.service.d.ts.map +0 -1
  97. package/dist/api/persona.api.service.js +0 -90
  98. package/dist/api/persona.api.service.js.map +0 -1
  99. package/dist/api/postprocessor.api.service.d.ts +0 -151
  100. package/dist/api/postprocessor.api.service.d.ts.map +0 -1
  101. package/dist/api/postprocessor.api.service.js +0 -109
  102. package/dist/api/postprocessor.api.service.js.map +0 -1
  103. package/dist/api/preprocessor.api.service.d.ts +0 -155
  104. package/dist/api/preprocessor.api.service.d.ts.map +0 -1
  105. package/dist/api/preprocessor.api.service.js +0 -111
  106. package/dist/api/preprocessor.api.service.js.map +0 -1
  107. package/dist/api/products.api.service.d.ts +0 -80
  108. package/dist/api/products.api.service.d.ts.map +0 -1
  109. package/dist/api/products.api.service.js +0 -126
  110. package/dist/api/products.api.service.js.map +0 -1
  111. package/dist/api/resource.api.service.d.ts +0 -77
  112. package/dist/api/resource.api.service.d.ts.map +0 -1
  113. package/dist/api/resource.api.service.js +0 -74
  114. package/dist/api/resource.api.service.js.map +0 -1
  115. package/dist/api/skills.api.service.d.ts +0 -94
  116. package/dist/api/skills.api.service.d.ts.map +0 -1
  117. package/dist/api/skills.api.service.js +0 -120
  118. package/dist/api/skills.api.service.js.map +0 -1
  119. package/dist/api/tool.api.service.d.ts +0 -53
  120. package/dist/api/tool.api.service.d.ts.map +0 -1
  121. package/dist/api/tool.api.service.js +0 -74
  122. package/dist/api/tool.api.service.js.map +0 -1
  123. package/dist/api/unifiedto.api.service.d.ts +0 -133
  124. package/dist/api/unifiedto.api.service.d.ts.map +0 -1
  125. package/dist/api/unifiedto.api.service.js +0 -166
  126. package/dist/api/unifiedto.api.service.js.map +0 -1
  127. package/dist/api/user.data.api.service.d.ts +0 -69
  128. package/dist/api/user.data.api.service.d.ts.map +0 -1
  129. package/dist/api/user.data.api.service.js +0 -158
  130. package/dist/api/user.data.api.service.js.map +0 -1
  131. package/dist/api/webhook.api.service.d.ts +0 -163
  132. package/dist/api/webhook.api.service.d.ts.map +0 -1
  133. package/dist/api/webhook.api.service.js +0 -140
  134. package/dist/api/webhook.api.service.js.map +0 -1
  135. package/dist/api/whatsapp-templates.api.service.d.ts +0 -41
  136. package/dist/api/whatsapp-templates.api.service.d.ts.map +0 -1
  137. package/dist/api/whatsapp-templates.api.service.js +0 -79
  138. package/dist/api/whatsapp-templates.api.service.js.map +0 -1
  139. package/dist/api-exports.d.ts.map +0 -1
  140. package/dist/cli/command-definitions.d.ts +0 -29
  141. package/dist/cli/command-definitions.d.ts.map +0 -1
  142. package/dist/cli/command-definitions.js +0 -943
  143. package/dist/cli/command-definitions.js.map +0 -1
  144. package/dist/commands/admin.d.ts +0 -24
  145. package/dist/commands/admin.d.ts.map +0 -1
  146. package/dist/commands/admin.js +0 -44
  147. package/dist/commands/admin.js.map +0 -1
  148. package/dist/commands/agents.d.ts +0 -23
  149. package/dist/commands/agents.d.ts.map +0 -1
  150. package/dist/commands/agents.js +0 -83
  151. package/dist/commands/agents.js.map +0 -1
  152. package/dist/commands/apiKey.d.ts +0 -8
  153. package/dist/commands/apiKey.d.ts.map +0 -1
  154. package/dist/commands/apiKey.js +0 -43
  155. package/dist/commands/apiKey.js.map +0 -1
  156. package/dist/commands/channels.d.ts +0 -13
  157. package/dist/commands/channels.d.ts.map +0 -1
  158. package/dist/commands/channels.js +0 -747
  159. package/dist/commands/channels.js.map +0 -1
  160. package/dist/commands/chat-log-probe.d.ts +0 -59
  161. package/dist/commands/chat-log-probe.d.ts.map +0 -1
  162. package/dist/commands/chat-log-probe.js +0 -87
  163. package/dist/commands/chat-log-probe.js.map +0 -1
  164. package/dist/commands/chat.d.ts +0 -20
  165. package/dist/commands/chat.d.ts.map +0 -1
  166. package/dist/commands/chat.js +0 -618
  167. package/dist/commands/chat.js.map +0 -1
  168. package/dist/commands/chatClear.d.ts +0 -25
  169. package/dist/commands/chatClear.d.ts.map +0 -1
  170. package/dist/commands/chatClear.js +0 -71
  171. package/dist/commands/chatClear.js.map +0 -1
  172. package/dist/commands/compile.d.ts +0 -48
  173. package/dist/commands/compile.d.ts.map +0 -1
  174. package/dist/commands/compile.js +0 -216
  175. package/dist/commands/compile.js.map +0 -1
  176. package/dist/commands/completion.d.ts +0 -12
  177. package/dist/commands/completion.d.ts.map +0 -1
  178. package/dist/commands/completion.js +0 -211
  179. package/dist/commands/completion.js.map +0 -1
  180. package/dist/commands/configure.d.ts +0 -42
  181. package/dist/commands/configure.d.ts.map +0 -1
  182. package/dist/commands/configure.js +0 -76
  183. package/dist/commands/configure.js.map +0 -1
  184. package/dist/commands/deploy.d.ts +0 -14
  185. package/dist/commands/deploy.d.ts.map +0 -1
  186. package/dist/commands/deploy.js +0 -517
  187. package/dist/commands/deploy.js.map +0 -1
  188. package/dist/commands/destroy.d.ts +0 -8
  189. package/dist/commands/destroy.d.ts.map +0 -1
  190. package/dist/commands/destroy.js +0 -66
  191. package/dist/commands/destroy.js.map +0 -1
  192. package/dist/commands/devices.d.ts +0 -6
  193. package/dist/commands/devices.d.ts.map +0 -1
  194. package/dist/commands/devices.js +0 -265
  195. package/dist/commands/devices.js.map +0 -1
  196. package/dist/commands/docs.d.ts +0 -20
  197. package/dist/commands/docs.d.ts.map +0 -1
  198. package/dist/commands/docs.js +0 -33
  199. package/dist/commands/docs.js.map +0 -1
  200. package/dist/commands/env.d.ts +0 -34
  201. package/dist/commands/env.d.ts.map +0 -1
  202. package/dist/commands/env.js +0 -612
  203. package/dist/commands/env.js.map +0 -1
  204. package/dist/commands/evals.d.ts +0 -9
  205. package/dist/commands/evals.d.ts.map +0 -1
  206. package/dist/commands/evals.js +0 -27
  207. package/dist/commands/evals.js.map +0 -1
  208. package/dist/commands/features.d.ts +0 -13
  209. package/dist/commands/features.d.ts.map +0 -1
  210. package/dist/commands/features.js +0 -455
  211. package/dist/commands/features.js.map +0 -1
  212. package/dist/commands/governance.d.ts +0 -7
  213. package/dist/commands/governance.d.ts.map +0 -1
  214. package/dist/commands/governance.js +0 -258
  215. package/dist/commands/governance.js.map +0 -1
  216. package/dist/commands/index.d.ts +0 -38
  217. package/dist/commands/index.d.ts.map +0 -1
  218. package/dist/commands/index.js +0 -38
  219. package/dist/commands/index.js.map +0 -1
  220. package/dist/commands/init.d.ts +0 -53
  221. package/dist/commands/init.d.ts.map +0 -1
  222. package/dist/commands/init.js +0 -992
  223. package/dist/commands/init.js.map +0 -1
  224. package/dist/commands/integrations.d.ts +0 -18
  225. package/dist/commands/integrations.d.ts.map +0 -1
  226. package/dist/commands/integrations.js +0 -2666
  227. package/dist/commands/integrations.js.map +0 -1
  228. package/dist/commands/jobs.d.ts +0 -13
  229. package/dist/commands/jobs.d.ts.map +0 -1
  230. package/dist/commands/jobs.js +0 -736
  231. package/dist/commands/jobs.js.map +0 -1
  232. package/dist/commands/log-tip.d.ts +0 -79
  233. package/dist/commands/log-tip.d.ts.map +0 -1
  234. package/dist/commands/log-tip.js +0 -83
  235. package/dist/commands/log-tip.js.map +0 -1
  236. package/dist/commands/logs.d.ts +0 -13
  237. package/dist/commands/logs.d.ts.map +0 -1
  238. package/dist/commands/logs.js +0 -493
  239. package/dist/commands/logs.js.map +0 -1
  240. package/dist/commands/marketplace.d.ts +0 -34
  241. package/dist/commands/marketplace.d.ts.map +0 -1
  242. package/dist/commands/marketplace.js +0 -2105
  243. package/dist/commands/marketplace.js.map +0 -1
  244. package/dist/commands/mcp.d.ts +0 -32
  245. package/dist/commands/mcp.d.ts.map +0 -1
  246. package/dist/commands/mcp.js +0 -395
  247. package/dist/commands/mcp.js.map +0 -1
  248. package/dist/commands/models.d.ts +0 -18
  249. package/dist/commands/models.d.ts.map +0 -1
  250. package/dist/commands/models.js +0 -207
  251. package/dist/commands/models.js.map +0 -1
  252. package/dist/commands/persona.d.ts +0 -13
  253. package/dist/commands/persona.d.ts.map +0 -1
  254. package/dist/commands/persona.js +0 -560
  255. package/dist/commands/persona.js.map +0 -1
  256. package/dist/commands/postprocessors.d.ts +0 -13
  257. package/dist/commands/postprocessors.d.ts.map +0 -1
  258. package/dist/commands/postprocessors.js +0 -558
  259. package/dist/commands/postprocessors.js.map +0 -1
  260. package/dist/commands/preprocessors.d.ts +0 -13
  261. package/dist/commands/preprocessors.d.ts.map +0 -1
  262. package/dist/commands/preprocessors.js +0 -558
  263. package/dist/commands/preprocessors.js.map +0 -1
  264. package/dist/commands/production.d.ts +0 -13
  265. package/dist/commands/production.d.ts.map +0 -1
  266. package/dist/commands/production.js +0 -588
  267. package/dist/commands/production.js.map +0 -1
  268. package/dist/commands/push-helpers.d.ts +0 -42
  269. package/dist/commands/push-helpers.d.ts.map +0 -1
  270. package/dist/commands/push-helpers.js +0 -48
  271. package/dist/commands/push-helpers.js.map +0 -1
  272. package/dist/commands/push.d.ts +0 -31
  273. package/dist/commands/push.d.ts.map +0 -1
  274. package/dist/commands/push.js +0 -1262
  275. package/dist/commands/push.js.map +0 -1
  276. package/dist/commands/pushBackup.d.ts +0 -78
  277. package/dist/commands/pushBackup.d.ts.map +0 -1
  278. package/dist/commands/pushBackup.js +0 -274
  279. package/dist/commands/pushBackup.js.map +0 -1
  280. package/dist/commands/resources.d.ts +0 -13
  281. package/dist/commands/resources.d.ts.map +0 -1
  282. package/dist/commands/resources.js +0 -377
  283. package/dist/commands/resources.js.map +0 -1
  284. package/dist/commands/skills.d.ts +0 -13
  285. package/dist/commands/skills.d.ts.map +0 -1
  286. package/dist/commands/skills.js +0 -618
  287. package/dist/commands/skills.js.map +0 -1
  288. package/dist/commands/source.d.ts +0 -72
  289. package/dist/commands/source.d.ts.map +0 -1
  290. package/dist/commands/source.js +0 -134
  291. package/dist/commands/source.js.map +0 -1
  292. package/dist/commands/status.d.ts +0 -14
  293. package/dist/commands/status.d.ts.map +0 -1
  294. package/dist/commands/status.js +0 -731
  295. package/dist/commands/status.js.map +0 -1
  296. package/dist/commands/sync.d.ts +0 -28
  297. package/dist/commands/sync.d.ts.map +0 -1
  298. package/dist/commands/sync.js +0 -802
  299. package/dist/commands/sync.js.map +0 -1
  300. package/dist/commands/telemetry.d.ts +0 -6
  301. package/dist/commands/telemetry.d.ts.map +0 -1
  302. package/dist/commands/telemetry.js +0 -42
  303. package/dist/commands/telemetry.js.map +0 -1
  304. package/dist/commands/test-output.helpers.d.ts +0 -24
  305. package/dist/commands/test-output.helpers.d.ts.map +0 -1
  306. package/dist/commands/test-output.helpers.js +0 -62
  307. package/dist/commands/test-output.helpers.js.map +0 -1
  308. package/dist/commands/test.d.ts +0 -9
  309. package/dist/commands/test.d.ts.map +0 -1
  310. package/dist/commands/test.js +0 -787
  311. package/dist/commands/test.js.map +0 -1
  312. package/dist/commands/update.d.ts +0 -14
  313. package/dist/commands/update.d.ts.map +0 -1
  314. package/dist/commands/update.js +0 -97
  315. package/dist/commands/update.js.map +0 -1
  316. package/dist/commands/webhooks.d.ts +0 -13
  317. package/dist/commands/webhooks.d.ts.map +0 -1
  318. package/dist/commands/webhooks.js +0 -691
  319. package/dist/commands/webhooks.js.map +0 -1
  320. package/dist/compiler/agent-traverser.d.ts +0 -140
  321. package/dist/compiler/agent-traverser.d.ts.map +0 -1
  322. package/dist/compiler/agent-traverser.js +0 -420
  323. package/dist/compiler/agent-traverser.js.map +0 -1
  324. package/dist/compiler/bundler.d.ts +0 -43
  325. package/dist/compiler/bundler.d.ts.map +0 -1
  326. package/dist/compiler/bundler.js +0 -188
  327. package/dist/compiler/bundler.js.map +0 -1
  328. package/dist/compiler/compiler.d.ts +0 -208
  329. package/dist/compiler/compiler.d.ts.map +0 -1
  330. package/dist/compiler/compiler.js +0 -706
  331. package/dist/compiler/compiler.js.map +0 -1
  332. package/dist/compiler/index.d.ts +0 -38
  333. package/dist/compiler/index.d.ts.map +0 -1
  334. package/dist/compiler/index.js +0 -43
  335. package/dist/compiler/index.js.map +0 -1
  336. package/dist/compiler/plugins/agent.plugin.d.ts +0 -58
  337. package/dist/compiler/plugins/agent.plugin.d.ts.map +0 -1
  338. package/dist/compiler/plugins/agent.plugin.js +0 -161
  339. package/dist/compiler/plugins/agent.plugin.js.map +0 -1
  340. package/dist/compiler/plugins/base.d.ts +0 -334
  341. package/dist/compiler/plugins/base.d.ts.map +0 -1
  342. package/dist/compiler/plugins/base.js +0 -353
  343. package/dist/compiler/plugins/base.js.map +0 -1
  344. package/dist/compiler/plugins/device-trigger.plugin.d.ts +0 -38
  345. package/dist/compiler/plugins/device-trigger.plugin.d.ts.map +0 -1
  346. package/dist/compiler/plugins/device-trigger.plugin.js +0 -107
  347. package/dist/compiler/plugins/device-trigger.plugin.js.map +0 -1
  348. package/dist/compiler/plugins/device.plugin.d.ts +0 -39
  349. package/dist/compiler/plugins/device.plugin.d.ts.map +0 -1
  350. package/dist/compiler/plugins/device.plugin.js +0 -77
  351. package/dist/compiler/plugins/device.plugin.js.map +0 -1
  352. package/dist/compiler/plugins/job.plugin.d.ts +0 -34
  353. package/dist/compiler/plugins/job.plugin.d.ts.map +0 -1
  354. package/dist/compiler/plugins/job.plugin.js +0 -108
  355. package/dist/compiler/plugins/job.plugin.js.map +0 -1
  356. package/dist/compiler/plugins/mcp-server.plugin.d.ts +0 -38
  357. package/dist/compiler/plugins/mcp-server.plugin.d.ts.map +0 -1
  358. package/dist/compiler/plugins/mcp-server.plugin.js +0 -107
  359. package/dist/compiler/plugins/mcp-server.plugin.js.map +0 -1
  360. package/dist/compiler/plugins/postprocessor.plugin.d.ts +0 -21
  361. package/dist/compiler/plugins/postprocessor.plugin.d.ts.map +0 -1
  362. package/dist/compiler/plugins/postprocessor.plugin.js +0 -36
  363. package/dist/compiler/plugins/postprocessor.plugin.js.map +0 -1
  364. package/dist/compiler/plugins/preprocessor.plugin.d.ts +0 -21
  365. package/dist/compiler/plugins/preprocessor.plugin.d.ts.map +0 -1
  366. package/dist/compiler/plugins/preprocessor.plugin.js +0 -38
  367. package/dist/compiler/plugins/preprocessor.plugin.js.map +0 -1
  368. package/dist/compiler/plugins/processor-base.d.ts +0 -17
  369. package/dist/compiler/plugins/processor-base.d.ts.map +0 -1
  370. package/dist/compiler/plugins/processor-base.js +0 -27
  371. package/dist/compiler/plugins/processor-base.js.map +0 -1
  372. package/dist/compiler/plugins/registry.d.ts +0 -62
  373. package/dist/compiler/plugins/registry.d.ts.map +0 -1
  374. package/dist/compiler/plugins/registry.js +0 -113
  375. package/dist/compiler/plugins/registry.js.map +0 -1
  376. package/dist/compiler/plugins/skill.plugin.d.ts +0 -106
  377. package/dist/compiler/plugins/skill.plugin.d.ts.map +0 -1
  378. package/dist/compiler/plugins/skill.plugin.js +0 -316
  379. package/dist/compiler/plugins/skill.plugin.js.map +0 -1
  380. package/dist/compiler/plugins/tool.plugin.d.ts +0 -69
  381. package/dist/compiler/plugins/tool.plugin.d.ts.map +0 -1
  382. package/dist/compiler/plugins/tool.plugin.js +0 -262
  383. package/dist/compiler/plugins/tool.plugin.js.map +0 -1
  384. package/dist/compiler/plugins/webhook.plugin.d.ts +0 -38
  385. package/dist/compiler/plugins/webhook.plugin.d.ts.map +0 -1
  386. package/dist/compiler/plugins/webhook.plugin.js +0 -117
  387. package/dist/compiler/plugins/webhook.plugin.js.map +0 -1
  388. package/dist/compiler/source-writer.d.ts +0 -129
  389. package/dist/compiler/source-writer.d.ts.map +0 -1
  390. package/dist/compiler/source-writer.js +0 -329
  391. package/dist/compiler/source-writer.js.map +0 -1
  392. package/dist/compiler/types.d.ts +0 -391
  393. package/dist/compiler/types.d.ts.map +0 -1
  394. package/dist/compiler/types.js +0 -30
  395. package/dist/compiler/types.js.map +0 -1
  396. package/dist/compiler/utils/ast-helpers.d.ts +0 -106
  397. package/dist/compiler/utils/ast-helpers.d.ts.map +0 -1
  398. package/dist/compiler/utils/ast-helpers.js +0 -356
  399. package/dist/compiler/utils/ast-helpers.js.map +0 -1
  400. package/dist/compiler/utils/common.d.ts +0 -22
  401. package/dist/compiler/utils/common.d.ts.map +0 -1
  402. package/dist/compiler/utils/common.js +0 -55
  403. package/dist/compiler/utils/common.js.map +0 -1
  404. package/dist/compiler/utils/file-discovery.d.ts +0 -35
  405. package/dist/compiler/utils/file-discovery.d.ts.map +0 -1
  406. package/dist/compiler/utils/file-discovery.js +0 -60
  407. package/dist/compiler/utils/file-discovery.js.map +0 -1
  408. package/dist/compiler/utils/path-resolver.d.ts +0 -83
  409. package/dist/compiler/utils/path-resolver.d.ts.map +0 -1
  410. package/dist/compiler/utils/path-resolver.js +0 -162
  411. package/dist/compiler/utils/path-resolver.js.map +0 -1
  412. package/dist/compiler/utils/reference-resolver.d.ts +0 -196
  413. package/dist/compiler/utils/reference-resolver.d.ts.map +0 -1
  414. package/dist/compiler/utils/reference-resolver.js +0 -1026
  415. package/dist/compiler/utils/reference-resolver.js.map +0 -1
  416. package/dist/compiler/utils/schema-converter.d.ts +0 -52
  417. package/dist/compiler/utils/schema-converter.d.ts.map +0 -1
  418. package/dist/compiler/utils/schema-converter.js +0 -170
  419. package/dist/compiler/utils/schema-converter.js.map +0 -1
  420. package/dist/compiler/utils/workspace.d.ts +0 -35
  421. package/dist/compiler/utils/workspace.d.ts.map +0 -1
  422. package/dist/compiler/utils/workspace.js +0 -121
  423. package/dist/compiler/utils/workspace.js.map +0 -1
  424. package/dist/config/compile.constants.d.ts +0 -75
  425. package/dist/config/compile.constants.d.ts.map +0 -1
  426. package/dist/config/compile.constants.js +0 -95
  427. package/dist/config/compile.constants.js.map +0 -1
  428. package/dist/config/constants.d.ts +0 -49
  429. package/dist/config/constants.d.ts.map +0 -1
  430. package/dist/config/constants.js +0 -69
  431. package/dist/config/constants.js.map +0 -1
  432. package/dist/errors/auth.error.d.ts +0 -34
  433. package/dist/errors/auth.error.d.ts.map +0 -1
  434. package/dist/errors/auth.error.js +0 -29
  435. package/dist/errors/auth.error.js.map +0 -1
  436. package/dist/errors/index.d.ts +0 -5
  437. package/dist/errors/index.d.ts.map +0 -1
  438. package/dist/errors/index.js +0 -5
  439. package/dist/errors/index.js.map +0 -1
  440. package/dist/index.d.ts.map +0 -1
  441. package/dist/instances/basket.instance.d.ts +0 -82
  442. package/dist/instances/basket.instance.d.ts.map +0 -1
  443. package/dist/instances/basket.instance.js +0 -245
  444. package/dist/instances/basket.instance.js.map +0 -1
  445. package/dist/instances/data.entry.instance.d.ts +0 -50
  446. package/dist/instances/data.entry.instance.d.ts.map +0 -1
  447. package/dist/instances/data.entry.instance.js +0 -163
  448. package/dist/instances/data.entry.instance.js.map +0 -1
  449. package/dist/instances/job.instance.d.ts +0 -133
  450. package/dist/instances/job.instance.d.ts.map +0 -1
  451. package/dist/instances/job.instance.js +0 -180
  452. package/dist/instances/job.instance.js.map +0 -1
  453. package/dist/instances/order.instance.d.ts +0 -50
  454. package/dist/instances/order.instance.d.ts.map +0 -1
  455. package/dist/instances/order.instance.js +0 -199
  456. package/dist/instances/order.instance.js.map +0 -1
  457. package/dist/instances/product.instance.d.ts +0 -43
  458. package/dist/instances/product.instance.d.ts.map +0 -1
  459. package/dist/instances/product.instance.js +0 -145
  460. package/dist/instances/product.instance.js.map +0 -1
  461. package/dist/instances/product.pagination.instance.d.ts +0 -102
  462. package/dist/instances/product.pagination.instance.d.ts.map +0 -1
  463. package/dist/instances/product.pagination.instance.js +0 -156
  464. package/dist/instances/product.pagination.instance.js.map +0 -1
  465. package/dist/instances/product.search.instance.d.ts +0 -81
  466. package/dist/instances/product.search.instance.d.ts.map +0 -1
  467. package/dist/instances/product.search.instance.js +0 -121
  468. package/dist/instances/product.search.instance.js.map +0 -1
  469. package/dist/instances/user.instance.d.ts +0 -56
  470. package/dist/instances/user.instance.d.ts.map +0 -1
  471. package/dist/instances/user.instance.js +0 -188
  472. package/dist/instances/user.instance.js.map +0 -1
  473. package/dist/interfaces/admin.d.ts +0 -64
  474. package/dist/interfaces/admin.d.ts.map +0 -1
  475. package/dist/interfaces/admin.js +0 -6
  476. package/dist/interfaces/admin.js.map +0 -1
  477. package/dist/interfaces/agent.d.ts +0 -399
  478. package/dist/interfaces/agent.d.ts.map +0 -1
  479. package/dist/interfaces/agent.js +0 -6
  480. package/dist/interfaces/agent.js.map +0 -1
  481. package/dist/interfaces/backup.d.ts +0 -17
  482. package/dist/interfaces/backup.d.ts.map +0 -1
  483. package/dist/interfaces/backup.js +0 -7
  484. package/dist/interfaces/backup.js.map +0 -1
  485. package/dist/interfaces/baskets.d.ts +0 -80
  486. package/dist/interfaces/baskets.d.ts.map +0 -1
  487. package/dist/interfaces/baskets.js +0 -20
  488. package/dist/interfaces/baskets.js.map +0 -1
  489. package/dist/interfaces/cdn.d.ts +0 -25
  490. package/dist/interfaces/cdn.d.ts.map +0 -1
  491. package/dist/interfaces/cdn.js +0 -6
  492. package/dist/interfaces/cdn.js.map +0 -1
  493. package/dist/interfaces/chat.d.ts +0 -98
  494. package/dist/interfaces/chat.d.ts.map +0 -1
  495. package/dist/interfaces/chat.js +0 -6
  496. package/dist/interfaces/chat.js.map +0 -1
  497. package/dist/interfaces/common.d.ts +0 -64
  498. package/dist/interfaces/common.d.ts.map +0 -1
  499. package/dist/interfaces/common.js +0 -9
  500. package/dist/interfaces/common.js.map +0 -1
  501. package/dist/interfaces/custom.data.d.ts +0 -83
  502. package/dist/interfaces/custom.data.d.ts.map +0 -1
  503. package/dist/interfaces/custom.data.js +0 -6
  504. package/dist/interfaces/custom.data.js.map +0 -1
  505. package/dist/interfaces/deploy.d.ts +0 -15
  506. package/dist/interfaces/deploy.d.ts.map +0 -1
  507. package/dist/interfaces/deploy.js +0 -5
  508. package/dist/interfaces/deploy.js.map +0 -1
  509. package/dist/interfaces/dev.d.ts +0 -54
  510. package/dist/interfaces/dev.d.ts.map +0 -1
  511. package/dist/interfaces/dev.js +0 -6
  512. package/dist/interfaces/dev.js.map +0 -1
  513. package/dist/interfaces/device-triggers.d.ts +0 -80
  514. package/dist/interfaces/device-triggers.d.ts.map +0 -1
  515. package/dist/interfaces/device-triggers.js +0 -6
  516. package/dist/interfaces/device-triggers.js.map +0 -1
  517. package/dist/interfaces/devices.d.ts +0 -74
  518. package/dist/interfaces/devices.d.ts.map +0 -1
  519. package/dist/interfaces/devices.js +0 -5
  520. package/dist/interfaces/devices.js.map +0 -1
  521. package/dist/interfaces/index.d.ts +0 -15
  522. package/dist/interfaces/index.d.ts.map +0 -1
  523. package/dist/interfaces/index.js +0 -8
  524. package/dist/interfaces/index.js.map +0 -1
  525. package/dist/interfaces/init.d.ts +0 -42
  526. package/dist/interfaces/init.d.ts.map +0 -1
  527. package/dist/interfaces/init.js +0 -5
  528. package/dist/interfaces/init.js.map +0 -1
  529. package/dist/interfaces/jobs.d.ts +0 -149
  530. package/dist/interfaces/jobs.d.ts.map +0 -1
  531. package/dist/interfaces/jobs.js +0 -6
  532. package/dist/interfaces/jobs.js.map +0 -1
  533. package/dist/interfaces/logs.d.ts +0 -44
  534. package/dist/interfaces/logs.d.ts.map +0 -1
  535. package/dist/interfaces/logs.js +0 -6
  536. package/dist/interfaces/logs.js.map +0 -1
  537. package/dist/interfaces/lua.d.ts +0 -37
  538. package/dist/interfaces/lua.d.ts.map +0 -1
  539. package/dist/interfaces/lua.js +0 -6
  540. package/dist/interfaces/lua.js.map +0 -1
  541. package/dist/interfaces/marketplace.d.ts +0 -171
  542. package/dist/interfaces/marketplace.d.ts.map +0 -1
  543. package/dist/interfaces/marketplace.js +0 -3
  544. package/dist/interfaces/marketplace.js.map +0 -1
  545. package/dist/interfaces/mcp.d.ts +0 -96
  546. package/dist/interfaces/mcp.d.ts.map +0 -1
  547. package/dist/interfaces/mcp.js +0 -9
  548. package/dist/interfaces/mcp.js.map +0 -1
  549. package/dist/interfaces/message.d.ts +0 -16
  550. package/dist/interfaces/message.d.ts.map +0 -1
  551. package/dist/interfaces/message.js +0 -2
  552. package/dist/interfaces/message.js.map +0 -1
  553. package/dist/interfaces/orders.d.ts +0 -68
  554. package/dist/interfaces/orders.d.ts.map +0 -1
  555. package/dist/interfaces/orders.js +0 -20
  556. package/dist/interfaces/orders.js.map +0 -1
  557. package/dist/interfaces/persona.d.ts +0 -44
  558. package/dist/interfaces/persona.d.ts.map +0 -1
  559. package/dist/interfaces/persona.js +0 -6
  560. package/dist/interfaces/persona.js.map +0 -1
  561. package/dist/interfaces/postprocessors.d.ts +0 -15
  562. package/dist/interfaces/postprocessors.d.ts.map +0 -1
  563. package/dist/interfaces/postprocessors.js +0 -5
  564. package/dist/interfaces/postprocessors.js.map +0 -1
  565. package/dist/interfaces/preprocessors.d.ts +0 -15
  566. package/dist/interfaces/preprocessors.d.ts.map +0 -1
  567. package/dist/interfaces/preprocessors.js +0 -5
  568. package/dist/interfaces/preprocessors.js.map +0 -1
  569. package/dist/interfaces/product.d.ts +0 -92
  570. package/dist/interfaces/product.d.ts.map +0 -1
  571. package/dist/interfaces/product.js +0 -6
  572. package/dist/interfaces/product.js.map +0 -1
  573. package/dist/interfaces/push.d.ts +0 -27
  574. package/dist/interfaces/push.d.ts.map +0 -1
  575. package/dist/interfaces/push.js +0 -5
  576. package/dist/interfaces/push.js.map +0 -1
  577. package/dist/interfaces/skills.d.ts +0 -137
  578. package/dist/interfaces/skills.d.ts.map +0 -1
  579. package/dist/interfaces/skills.js +0 -6
  580. package/dist/interfaces/skills.js.map +0 -1
  581. package/dist/interfaces/test.d.ts +0 -37
  582. package/dist/interfaces/test.d.ts.map +0 -1
  583. package/dist/interfaces/test.js +0 -5
  584. package/dist/interfaces/test.js.map +0 -1
  585. package/dist/interfaces/unifiedto.d.ts +0 -141
  586. package/dist/interfaces/unifiedto.d.ts.map +0 -1
  587. package/dist/interfaces/unifiedto.js +0 -6
  588. package/dist/interfaces/unifiedto.js.map +0 -1
  589. package/dist/interfaces/user.d.ts +0 -75
  590. package/dist/interfaces/user.d.ts.map +0 -1
  591. package/dist/interfaces/user.js +0 -2
  592. package/dist/interfaces/user.js.map +0 -1
  593. package/dist/interfaces/webhooks.d.ts +0 -97
  594. package/dist/interfaces/webhooks.d.ts.map +0 -1
  595. package/dist/interfaces/webhooks.js +0 -6
  596. package/dist/interfaces/webhooks.js.map +0 -1
  597. package/dist/interfaces/whatsapp-templates.d.ts +0 -105
  598. package/dist/interfaces/whatsapp-templates.d.ts.map +0 -1
  599. package/dist/interfaces/whatsapp-templates.js +0 -6
  600. package/dist/interfaces/whatsapp-templates.js.map +0 -1
  601. package/dist/primitives/agent.handler.d.ts +0 -71
  602. package/dist/primitives/agent.handler.d.ts.map +0 -1
  603. package/dist/primitives/agent.handler.js +0 -226
  604. package/dist/primitives/agent.handler.js.map +0 -1
  605. package/dist/primitives/base.handler.d.ts +0 -229
  606. package/dist/primitives/base.handler.d.ts.map +0 -1
  607. package/dist/primitives/base.handler.js +0 -620
  608. package/dist/primitives/base.handler.js.map +0 -1
  609. package/dist/primitives/device-trigger.handler.d.ts +0 -56
  610. package/dist/primitives/device-trigger.handler.d.ts.map +0 -1
  611. package/dist/primitives/device-trigger.handler.js +0 -99
  612. package/dist/primitives/device-trigger.handler.js.map +0 -1
  613. package/dist/primitives/device.handler.d.ts +0 -57
  614. package/dist/primitives/device.handler.d.ts.map +0 -1
  615. package/dist/primitives/device.handler.js +0 -103
  616. package/dist/primitives/device.handler.js.map +0 -1
  617. package/dist/primitives/index.d.ts +0 -51
  618. package/dist/primitives/index.d.ts.map +0 -1
  619. package/dist/primitives/index.js +0 -75
  620. package/dist/primitives/index.js.map +0 -1
  621. package/dist/primitives/job.handler.d.ts +0 -53
  622. package/dist/primitives/job.handler.d.ts.map +0 -1
  623. package/dist/primitives/job.handler.js +0 -110
  624. package/dist/primitives/job.handler.js.map +0 -1
  625. package/dist/primitives/mcp-server.handler.d.ts +0 -93
  626. package/dist/primitives/mcp-server.handler.d.ts.map +0 -1
  627. package/dist/primitives/mcp-server.handler.js +0 -216
  628. package/dist/primitives/mcp-server.handler.js.map +0 -1
  629. package/dist/primitives/postprocessor.handler.d.ts +0 -44
  630. package/dist/primitives/postprocessor.handler.d.ts.map +0 -1
  631. package/dist/primitives/postprocessor.handler.js +0 -71
  632. package/dist/primitives/postprocessor.handler.js.map +0 -1
  633. package/dist/primitives/preprocessor.handler.d.ts +0 -44
  634. package/dist/primitives/preprocessor.handler.d.ts.map +0 -1
  635. package/dist/primitives/preprocessor.handler.js +0 -72
  636. package/dist/primitives/preprocessor.handler.js.map +0 -1
  637. package/dist/primitives/skill.handler.d.ts +0 -47
  638. package/dist/primitives/skill.handler.d.ts.map +0 -1
  639. package/dist/primitives/skill.handler.js +0 -229
  640. package/dist/primitives/skill.handler.js.map +0 -1
  641. package/dist/primitives/types.d.ts +0 -91
  642. package/dist/primitives/types.d.ts.map +0 -1
  643. package/dist/primitives/types.js +0 -17
  644. package/dist/primitives/types.js.map +0 -1
  645. package/dist/primitives/webhook.handler.d.ts +0 -47
  646. package/dist/primitives/webhook.handler.d.ts.map +0 -1
  647. package/dist/primitives/webhook.handler.js +0 -87
  648. package/dist/primitives/webhook.handler.js.map +0 -1
  649. package/dist/services/analytics.d.ts +0 -57
  650. package/dist/services/analytics.d.ts.map +0 -1
  651. package/dist/services/analytics.js +0 -317
  652. package/dist/services/analytics.js.map +0 -1
  653. package/dist/services/auth.d.ts +0 -72
  654. package/dist/services/auth.d.ts.map +0 -1
  655. package/dist/services/auth.js +0 -173
  656. package/dist/services/auth.js.map +0 -1
  657. package/dist/services/sandbox.service.d.ts +0 -105
  658. package/dist/services/sandbox.service.d.ts.map +0 -1
  659. package/dist/services/sandbox.service.js +0 -531
  660. package/dist/services/sandbox.service.js.map +0 -1
  661. package/dist/types/api-contracts.d.ts +0 -287
  662. package/dist/types/api-contracts.d.ts.map +0 -1
  663. package/dist/types/api-contracts.js +0 -2
  664. package/dist/types/api-contracts.js.map +0 -1
  665. package/dist/types/index.d.ts +0 -28
  666. package/dist/types/index.d.ts.map +0 -1
  667. package/dist/types/index.js +0 -30
  668. package/dist/types/index.js.map +0 -1
  669. package/dist/types/skill.d.ts +0 -1079
  670. package/dist/types/skill.d.ts.map +0 -1
  671. package/dist/types/skill.js +0 -688
  672. package/dist/types/skill.js.map +0 -1
  673. package/dist/types/tool-validation.d.ts +0 -35
  674. package/dist/types/tool-validation.d.ts.map +0 -1
  675. package/dist/types/tool-validation.js +0 -43
  676. package/dist/types/tool-validation.js.map +0 -1
  677. package/dist/types/yaml.types.d.ts +0 -91
  678. package/dist/types/yaml.types.d.ts.map +0 -1
  679. package/dist/types/yaml.types.js +0 -5
  680. package/dist/types/yaml.types.js.map +0 -1
  681. package/dist/utils/aliases.d.ts +0 -7
  682. package/dist/utils/aliases.d.ts.map +0 -1
  683. package/dist/utils/aliases.js +0 -492
  684. package/dist/utils/aliases.js.map +0 -1
  685. package/dist/utils/artifact-loader.d.ts +0 -152
  686. package/dist/utils/artifact-loader.d.ts.map +0 -1
  687. package/dist/utils/artifact-loader.js +0 -284
  688. package/dist/utils/artifact-loader.js.map +0 -1
  689. package/dist/utils/auth-flows.d.ts +0 -55
  690. package/dist/utils/auth-flows.d.ts.map +0 -1
  691. package/dist/utils/auth-flows.js +0 -246
  692. package/dist/utils/auth-flows.js.map +0 -1
  693. package/dist/utils/backup-helpers.d.ts +0 -238
  694. package/dist/utils/backup-helpers.d.ts.map +0 -1
  695. package/dist/utils/backup-helpers.js +0 -704
  696. package/dist/utils/backup-helpers.js.map +0 -1
  697. package/dist/utils/build-manifest-from-disk.d.ts +0 -8
  698. package/dist/utils/build-manifest-from-disk.d.ts.map +0 -1
  699. package/dist/utils/build-manifest-from-disk.js +0 -21
  700. package/dist/utils/build-manifest-from-disk.js.map +0 -1
  701. package/dist/utils/bundle-upload.d.ts +0 -42
  702. package/dist/utils/bundle-upload.d.ts.map +0 -1
  703. package/dist/utils/bundle-upload.js +0 -90
  704. package/dist/utils/bundle-upload.js.map +0 -1
  705. package/dist/utils/chat-attachments.d.ts +0 -15
  706. package/dist/utils/chat-attachments.d.ts.map +0 -1
  707. package/dist/utils/chat-attachments.js +0 -116
  708. package/dist/utils/chat-attachments.js.map +0 -1
  709. package/dist/utils/cli.d.ts +0 -62
  710. package/dist/utils/cli.d.ts.map +0 -1
  711. package/dist/utils/cli.js +0 -198
  712. package/dist/utils/cli.js.map +0 -1
  713. package/dist/utils/command-utils.d.ts +0 -46
  714. package/dist/utils/command-utils.d.ts.map +0 -1
  715. package/dist/utils/command-utils.js +0 -74
  716. package/dist/utils/command-utils.js.map +0 -1
  717. package/dist/utils/deploy-helpers.d.ts +0 -40
  718. package/dist/utils/deploy-helpers.d.ts.map +0 -1
  719. package/dist/utils/deploy-helpers.js +0 -76
  720. package/dist/utils/deploy-helpers.js.map +0 -1
  721. package/dist/utils/env-loader.utils.d.ts +0 -19
  722. package/dist/utils/env-loader.utils.d.ts.map +0 -1
  723. package/dist/utils/env-loader.utils.js +0 -90
  724. package/dist/utils/env-loader.utils.js.map +0 -1
  725. package/dist/utils/files.d.ts +0 -65
  726. package/dist/utils/files.d.ts.map +0 -1
  727. package/dist/utils/files.js +0 -193
  728. package/dist/utils/files.js.map +0 -1
  729. package/dist/utils/hints.d.ts +0 -81
  730. package/dist/utils/hints.d.ts.map +0 -1
  731. package/dist/utils/hints.js +0 -81
  732. package/dist/utils/hints.js.map +0 -1
  733. package/dist/utils/init-agent.d.ts +0 -86
  734. package/dist/utils/init-agent.d.ts.map +0 -1
  735. package/dist/utils/init-agent.js +0 -201
  736. package/dist/utils/init-agent.js.map +0 -1
  737. package/dist/utils/init-helpers.d.ts +0 -37
  738. package/dist/utils/init-helpers.d.ts.map +0 -1
  739. package/dist/utils/init-helpers.js +0 -78
  740. package/dist/utils/init-helpers.js.map +0 -1
  741. package/dist/utils/init-prompts.d.ts +0 -74
  742. package/dist/utils/init-prompts.d.ts.map +0 -1
  743. package/dist/utils/init-prompts.js +0 -256
  744. package/dist/utils/init-prompts.js.map +0 -1
  745. package/dist/utils/prompt-handler.d.ts +0 -17
  746. package/dist/utils/prompt-handler.d.ts.map +0 -1
  747. package/dist/utils/prompt-handler.js +0 -49
  748. package/dist/utils/prompt-handler.js.map +0 -1
  749. package/dist/utils/sandbox-storage.d.ts +0 -83
  750. package/dist/utils/sandbox-storage.d.ts.map +0 -1
  751. package/dist/utils/sandbox-storage.js +0 -211
  752. package/dist/utils/sandbox-storage.js.map +0 -1
  753. package/dist/utils/sandbox.d.ts +0 -76
  754. package/dist/utils/sandbox.d.ts.map +0 -1
  755. package/dist/utils/sandbox.js +0 -664
  756. package/dist/utils/sandbox.js.map +0 -1
  757. package/dist/utils/semver.d.ts +0 -40
  758. package/dist/utils/semver.d.ts.map +0 -1
  759. package/dist/utils/semver.js +0 -99
  760. package/dist/utils/semver.js.map +0 -1
  761. package/dist/utils/suggest.d.ts +0 -3
  762. package/dist/utils/suggest.d.ts.map +0 -1
  763. package/dist/utils/suggest.js +0 -32
  764. package/dist/utils/suggest.js.map +0 -1
  765. package/dist/utils/sync-display.d.ts +0 -28
  766. package/dist/utils/sync-display.d.ts.map +0 -1
  767. package/dist/utils/sync-display.js +0 -168
  768. package/dist/utils/sync-display.js.map +0 -1
  769. package/dist/utils/sync-fetch.d.ts +0 -108
  770. package/dist/utils/sync-fetch.d.ts.map +0 -1
  771. package/dist/utils/sync-fetch.js +0 -294
  772. package/dist/utils/sync-fetch.js.map +0 -1
  773. package/dist/utils/sync-helpers.d.ts +0 -7
  774. package/dist/utils/sync-helpers.d.ts.map +0 -1
  775. package/dist/utils/sync-helpers.js +0 -7
  776. package/dist/utils/sync-helpers.js.map +0 -1
  777. package/dist/utils/version-check.d.ts +0 -37
  778. package/dist/utils/version-check.d.ts.map +0 -1
  779. package/dist/utils/version-check.js +0 -117
  780. package/dist/utils/version-check.js.map +0 -1
  781. package/dist/utils/write-info.d.ts +0 -9
  782. package/dist/utils/write-info.d.ts.map +0 -1
  783. package/dist/utils/write-info.js +0 -11
  784. package/dist/utils/write-info.js.map +0 -1
  785. package/node_modules/@lua/shared-source-sync/dist/index.d.mts +0 -424
  786. package/node_modules/@lua/shared-source-sync/dist/index.d.ts +0 -424
  787. package/node_modules/@lua/shared-source-sync/dist/index.js +0 -536
  788. package/node_modules/@lua/shared-source-sync/dist/index.mjs +0 -491
  789. package/node_modules/@lua/shared-source-sync/package.json +0 -26
  790. package/node_modules/@lua/shared-source-sync/src/archive.ts +0 -98
  791. package/node_modules/@lua/shared-source-sync/src/filter.ts +0 -72
  792. package/node_modules/@lua/shared-source-sync/src/hash.ts +0 -40
  793. package/node_modules/@lua/shared-source-sync/src/http.ts +0 -132
  794. package/node_modules/@lua/shared-source-sync/src/index.ts +0 -56
  795. package/node_modules/@lua/shared-source-sync/src/pull.ts +0 -50
  796. package/node_modules/@lua/shared-source-sync/src/push.ts +0 -94
  797. package/node_modules/@lua/shared-source-sync/src/restore.ts +0 -83
  798. package/node_modules/@lua/shared-source-sync/src/skill-source.ts +0 -55
  799. package/node_modules/@lua/shared-source-sync/src/transfer.ts +0 -92
  800. package/node_modules/@lua/shared-source-sync/src/types.ts +0 -88
  801. package/node_modules/@lua/shared-source-sync/src/walk.ts +0 -91
  802. package/node_modules/@lua/shared-source-sync/tests/archive.test.ts +0 -108
  803. package/node_modules/@lua/shared-source-sync/tests/hash.test.ts +0 -40
  804. package/node_modules/@lua/shared-source-sync/tests/http.test.ts +0 -77
  805. package/node_modules/@lua/shared-source-sync/tests/push.test.ts +0 -162
  806. package/node_modules/@lua/shared-source-sync/tests/walk.test.ts +0 -84
  807. package/node_modules/@lua/shared-source-sync/tsconfig.json +0 -12
  808. package/node_modules/@lua/shared-source-sync/tsup.config.ts +0 -9
  809. package/node_modules/@lua/shared-source-sync/vitest.config.ts +0 -8
  810. package/node_modules/@lua/shared-types/dist/index.d.mts +0 -619
  811. package/node_modules/@lua/shared-types/dist/index.d.ts +0 -619
  812. package/node_modules/@lua/shared-types/dist/index.js +0 -435
  813. package/node_modules/@lua/shared-types/dist/index.mjs +0 -394
  814. package/node_modules/@lua/shared-types/package.json +0 -26
  815. package/node_modules/@lua/shared-types/src/agent-config.types.ts +0 -45
  816. package/node_modules/@lua/shared-types/src/agent-invocation.types.ts +0 -73
  817. package/node_modules/@lua/shared-types/src/ai-generate.types.ts +0 -74
  818. package/node_modules/@lua/shared-types/src/ai-generate.utils.ts +0 -16
  819. package/node_modules/@lua/shared-types/src/channel.type.ts +0 -23
  820. package/node_modules/@lua/shared-types/src/chat-history.types.ts +0 -112
  821. package/node_modules/@lua/shared-types/src/chat-stream.types.ts +0 -18
  822. package/node_modules/@lua/shared-types/src/client-tools.types.ts +0 -47
  823. package/node_modules/@lua/shared-types/src/device.types.ts +0 -190
  824. package/node_modules/@lua/shared-types/src/index.ts +0 -15
  825. package/node_modules/@lua/shared-types/src/model-registry.ts +0 -26
  826. package/node_modules/@lua/shared-types/src/persona-defaults.ts +0 -59
  827. package/node_modules/@lua/shared-types/src/persona-text.type.ts +0 -92
  828. package/node_modules/@lua/shared-types/src/sandbox-contract.ts +0 -63
  829. package/node_modules/@lua/shared-types/src/unstructured-types.ts +0 -58
  830. package/node_modules/@lua/shared-types/src/vm-execution-log.types.ts +0 -41
  831. package/node_modules/@lua/shared-types/tsconfig.json +0 -12
  832. package/node_modules/@lua/shared-types/tsup.config.ts +0 -9
  833. package/scripts/resolve-workspace-deps.cjs +0 -61
  834. /package/dist/{compiler/utils/zod-runtime.mjs → zod-runtime.mjs} +0 -0
@@ -0,0 +1,1217 @@
1
+ import { llm } from '@livekit/agents';
2
+ import { voice } from '@livekit/agents';
3
+ import { z } from 'zod';
4
+ import { ZodType } from 'zod';
5
+
6
+ /**
7
+ * Assert the run invoked a specific tool. Optional args matcher narrows
8
+ * to a specific call shape.
9
+ */
10
+ export declare function expectCalledTool(result: RunResult, toolName: string, expectedArgs?: Record<string, unknown> | ((args: unknown) => boolean)): void;
11
+
12
+ /**
13
+ * Assert the run produced an agent handoff. By name (the LuaVoice's
14
+ * `name` field), since the test harness doesn't have access to the
15
+ * Agent constructor types LiveKit's `containsAgentHandoff` expects.
16
+ */
17
+ export declare function expectContainsHandoff(result: RunResult, voiceName: string): void;
18
+
19
+ /**
20
+ * Assert the run produced an assistant message matching the predicate.
21
+ * Predicate can be a substring, a regex, or a custom function.
22
+ */
23
+ export declare function expectContainsMessage(result: RunResult, matcher: string | RegExp | ((text: string) => boolean)): void;
24
+
25
+ /**
26
+ * Throwing variant for jest-style tests. Throws an Error with the
27
+ * judge's verdict + the original criterion when the judge says no, so
28
+ * the failure message in the test report is self-explanatory.
29
+ */
30
+ export declare function expectJudge(response: string, criterion: string, options: JudgeOptions): Promise<void>;
31
+
32
+ declare type FakeLLMResponse = voice.testing.FakeLLMResponse;
33
+
34
+ /**
35
+ * Returns true when the judge LLM concludes the response satisfies the
36
+ * criterion. False on disagreement OR on any judge failure (network,
37
+ * malformed response, timeout) — fail-closed so a flaky judge doesn't
38
+ * mask a real assertion failure.
39
+ */
40
+ export declare function judge(response: string, criterion: string, options: JudgeOptions): Promise<boolean>;
41
+
42
+ export declare interface JudgeOptions {
43
+ /** LLM instance the judge prompt runs against. */
44
+ llm: llm.LLM;
45
+ /**
46
+ * Optional system instruction override. The default keeps the judge
47
+ * strict ("answer yes or no, no explanation"). Override when you need
48
+ * the judge to score on a scale or return structured output — though
49
+ * structured output is more brittle than yes/no.
50
+ */
51
+ systemInstruction?: string;
52
+ /**
53
+ * Optional context. When set, the judge sees additional facts
54
+ * before scoring the response. Useful for "did the agent answer
55
+ * factually given these facts": pass the facts as `context`.
56
+ */
57
+ context?: string;
58
+ }
59
+
60
+ export { llm }
61
+
62
+ declare interface LuaTool<TInput extends ZodType = ZodType> {
63
+ /** Unique tool name (alphanumeric, hyphens, underscores only) */
64
+ name: string;
65
+ /** Description of what the tool does */
66
+ description: string;
67
+ /** Zod schema for input validation */
68
+ inputSchema: TInput;
69
+ /**
70
+ * Async function that executes the tool logic.
71
+ *
72
+ * `ctx` is `undefined` when the tool runs from the chat path (lua-core's
73
+ * vm-execution doesn't pass a second arg today). When the tool runs
74
+ * inside a voice session, `ctx` carries the voice runtime's delegates
75
+ * (`ctx.voice.say(...)` to emit a spoken acknowledgement, plus the
76
+ * `toolCallId` LiveKit assigned). Tools that want to bridge both modes
77
+ * read `ctx?.voice` and branch.
78
+ */
79
+ execute: (input: any, ctx?: LuaToolCtx) => Promise<any>;
80
+ /** Optional async function that determines if the tool should be available */
81
+ condition?: () => Promise<boolean>;
82
+ /**
83
+ * Optional voice-only metadata. When present, the lua-livekit worker
84
+ * applies these flags to the wrapped LiveKit `llm.tool()` registration.
85
+ * Tools without this field work in chat and voice unchanged.
86
+ */
87
+ voice?: {
88
+ flags?: ToolFlag[];
89
+ };
90
+ }
91
+
92
+ /**
93
+ * Per-call context passed to a `LuaTool.execute` running inside a voice
94
+ * session. Imported here (rather than in `voice.ts`) to break a circular
95
+ * import — `LuaVoiceTool` extends `LuaTool` and would otherwise loop.
96
+ *
97
+ * The chat path (lua-core's vm-execution) doesn't pass a second arg, so
98
+ * `ctx` is `undefined` for chat. The voice path passes `{ toolCallId,
99
+ * voice: { say } }`. Tools that want to act differently inside a voice
100
+ * call check for `ctx?.voice` and use the typed surface.
101
+ */
102
+ declare interface LuaToolCtx {
103
+ /** LiveKit's tool-call id (voice only). */
104
+ toolCallId?: string;
105
+ /** Voice-runtime delegates. Only set when the tool runs over voice. */
106
+ voice?: {
107
+ say(text: string): Promise<void>;
108
+ };
109
+ }
110
+
111
+ /**
112
+ * Code-defined voice agent. Pushed via `lua push`, attached to channels through
113
+ * the owning `LuaAgent.voice` field. Auto-dispatched into LiveKit rooms when a
114
+ * channel bound to that agent receives a voice event.
115
+ *
116
+ * @example
117
+ * ```typescript
118
+ * import { LuaVoice } from 'lua-cli';
119
+ *
120
+ * export default new LuaVoice({
121
+ * name: 'support-line',
122
+ * llm: 'openai/gpt-5.2-chat-latest',
123
+ * stt: 'deepgram/nova-3',
124
+ * tts: { model: 'cartesia/sonic-3', voice: '9626c31c-bec5-4cca-baa8-f8ba9e84c8bc' },
125
+ * vad: 'silero',
126
+ * turnDetection: 'multilingual',
127
+ * greeting: 'Hi, how can I help today?',
128
+ * maxToolSteps: 3,
129
+ * interruption: { mode: 'adaptive', falseInterruptionTimeout: 2.0 },
130
+ *
131
+ * onEnter: async (ctx) => {
132
+ * if (ctx.caller?.phoneNumber) {
133
+ * const user = await User.get({ phone: ctx.caller.phoneNumber });
134
+ * ctx.session.userdata = { user, returning: !!user };
135
+ * }
136
+ * },
137
+ *
138
+ * onUserTurnCompleted: async (turnCtx, message) => {
139
+ * const docs = await Data.search('kb', message.content, 3);
140
+ * for (const doc of docs) turnCtx.addMessage({ role: 'system', content: doc.text });
141
+ * },
142
+ * });
143
+ * ```
144
+ */
145
+ declare class LuaVoice {
146
+ readonly name: string;
147
+ readonly description?: string;
148
+ readonly llm: LuaVoiceModelInput;
149
+ readonly stt: LuaVoiceModelInput;
150
+ readonly tts: LuaVoiceModelInput;
151
+ readonly vad: LuaVoiceConfig['vad'];
152
+ readonly vadOptions: LuaVoiceConfig['vadOptions'];
153
+ readonly turnDetection: LuaVoiceConfig['turnDetection'];
154
+ readonly greeting: LuaVoiceConfig['greeting'];
155
+ readonly maxToolSteps: LuaVoiceConfig['maxToolSteps'];
156
+ readonly userAwayTimeout: LuaVoiceConfig['userAwayTimeout'];
157
+ readonly preemptiveGeneration: LuaVoiceConfig['preemptiveGeneration'];
158
+ readonly interruption: LuaVoiceConfig['interruption'];
159
+ readonly sttLanguage: LuaVoiceConfig['sttLanguage'];
160
+ readonly tools: ReadonlyArray<LuaTool<any> | LuaVoiceTool<any>>;
161
+ readonly onEnter?: LuaVoiceConfig_2['onEnter'];
162
+ readonly onUserTurnCompleted?: LuaVoiceConfig_2['onUserTurnCompleted'];
163
+ readonly onExit?: LuaVoiceConfig_2['onExit'];
164
+ constructor(config: LuaVoiceConfig_2);
165
+ }
166
+
167
+ declare type LuaVoiceConfig = z.infer<typeof LuaVoiceConfigSchema>;
168
+
169
+ /**
170
+ * Full LuaVoice config — data fields (validated by zod in shared-types)
171
+ * plus function-bearing fields (detected by the compiler via AST).
172
+ */
173
+ /**
174
+ * LuaVoice config — uses loose input types for `llm` / `stt` / `tts` so devs can
175
+ * pass either a string descriptor or a plugin class instance. The wire schema
176
+ * (validated server-side) is the discriminated union in `@lua/shared-types`;
177
+ * the compiler is what bridges the two.
178
+ */
179
+ declare interface LuaVoiceConfig_2 extends Omit<LuaVoiceConfig, 'llm' | 'stt' | 'tts'> {
180
+ llm: LuaVoiceModelInput;
181
+ stt: LuaVoiceModelInput;
182
+ tts: LuaVoiceModelInput;
183
+ /** Optional human-readable description (surfaced in manifest + admin listings). */
184
+ description?: string;
185
+ /** Voice-only tools, in addition to skills attached to the owning agent. */
186
+ tools?: Array<LuaTool<any> | LuaVoiceTool<any>>;
187
+ /**
188
+ * Fired after the session connects to the room and before the greeting.
189
+ * Use to hydrate `session.userdata` from `User`/`Data`, set up state, etc.
190
+ */
191
+ onEnter?: (ctx: LuaVoiceHookContext) => Promise<void>;
192
+ /**
193
+ * Fired after the user finishes a turn, before the LLM is invoked. Canonical
194
+ * RAG injection point — `turnCtx.addMessage(...)` adds context the LLM sees.
195
+ */
196
+ onUserTurnCompleted?: (turnCtx: LuaVoiceTurnContext, message: {
197
+ content: string;
198
+ }) => Promise<void>;
199
+ /**
200
+ * Fired when the session is closing. Use for transcript persistence or
201
+ * outcome reporting.
202
+ */
203
+ onExit?: (ctx: LuaVoiceHookContext) => Promise<void>;
204
+ }
205
+
206
+ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
207
+ name: z.ZodOptional<z.ZodString>;
208
+ llm: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
209
+ kind: z.ZodLiteral<"inference">;
210
+ /** Provider-prefixed model id (e.g. `'openai/gpt-5.2-chat-latest'`). */
211
+ model: z.ZodString;
212
+ /**
213
+ * TTS-only — provider voice id. Inference's TTS API takes voice
214
+ * separately from model; LLM and STT ignore this field.
215
+ */
216
+ voice: z.ZodOptional<z.ZodString>;
217
+ /**
218
+ * Additional Inference extras forwarded as constructor options. Loose
219
+ * record by design — LiveKit's Inference surface evolves faster than
220
+ * we want to chase, and we don't gate dev productivity on schema
221
+ * updates here.
222
+ */
223
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
224
+ }, "strip", z.ZodTypeAny, {
225
+ voice?: string;
226
+ options?: Record<string, unknown>;
227
+ kind?: "inference";
228
+ model?: string;
229
+ }, {
230
+ voice?: string;
231
+ options?: Record<string, unknown>;
232
+ kind?: "inference";
233
+ model?: string;
234
+ }>, z.ZodObject<{
235
+ kind: z.ZodLiteral<"plugin">;
236
+ provider: z.ZodEnum<["deepgram", "elevenlabs"]>;
237
+ class: z.ZodEnum<["LLM", "STT", "STTv2", "TTS"]>;
238
+ /**
239
+ * Forwarded verbatim to the plugin constructor (e.g. `new deepgram.STT(options)`).
240
+ * Loose record because each provider's option surface is its own
241
+ * schema, evolving independently. The factory passes these through
242
+ * to the LiveKit plugin which is the source of truth for shape.
243
+ */
244
+ options: z.ZodRecord<z.ZodString, z.ZodUnknown>;
245
+ }, "strip", z.ZodTypeAny, {
246
+ options?: Record<string, unknown>;
247
+ kind?: "plugin";
248
+ provider?: "deepgram" | "elevenlabs";
249
+ class?: "LLM" | "STT" | "STTv2" | "TTS";
250
+ }, {
251
+ options?: Record<string, unknown>;
252
+ kind?: "plugin";
253
+ provider?: "deepgram" | "elevenlabs";
254
+ class?: "LLM" | "STT" | "STTv2" | "TTS";
255
+ }>, z.ZodObject<{
256
+ kind: z.ZodLiteral<"realtime">;
257
+ provider: z.ZodEnum<["openai", "google", "xai"]>;
258
+ /**
259
+ * Forwarded verbatim to `<provider>.realtime.RealtimeModel(options)`.
260
+ * Each provider has its own surface (voice id, modalities, turn
261
+ * detection, etc.). Loose record so devs can pass any option the
262
+ * underlying plugin accepts without a schema chase.
263
+ */
264
+ options: z.ZodRecord<z.ZodString, z.ZodUnknown>;
265
+ }, "strip", z.ZodTypeAny, {
266
+ options?: Record<string, unknown>;
267
+ kind?: "realtime";
268
+ provider?: "openai" | "google" | "xai";
269
+ }, {
270
+ options?: Record<string, unknown>;
271
+ kind?: "realtime";
272
+ provider?: "openai" | "google" | "xai";
273
+ }>]>;
274
+ stt: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
275
+ kind: z.ZodLiteral<"inference">;
276
+ /** Provider-prefixed model id (e.g. `'openai/gpt-5.2-chat-latest'`). */
277
+ model: z.ZodString;
278
+ /**
279
+ * TTS-only — provider voice id. Inference's TTS API takes voice
280
+ * separately from model; LLM and STT ignore this field.
281
+ */
282
+ voice: z.ZodOptional<z.ZodString>;
283
+ /**
284
+ * Additional Inference extras forwarded as constructor options. Loose
285
+ * record by design — LiveKit's Inference surface evolves faster than
286
+ * we want to chase, and we don't gate dev productivity on schema
287
+ * updates here.
288
+ */
289
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
290
+ }, "strip", z.ZodTypeAny, {
291
+ voice?: string;
292
+ options?: Record<string, unknown>;
293
+ kind?: "inference";
294
+ model?: string;
295
+ }, {
296
+ voice?: string;
297
+ options?: Record<string, unknown>;
298
+ kind?: "inference";
299
+ model?: string;
300
+ }>, z.ZodObject<{
301
+ kind: z.ZodLiteral<"plugin">;
302
+ provider: z.ZodEnum<["deepgram", "elevenlabs"]>;
303
+ class: z.ZodEnum<["LLM", "STT", "STTv2", "TTS"]>;
304
+ /**
305
+ * Forwarded verbatim to the plugin constructor (e.g. `new deepgram.STT(options)`).
306
+ * Loose record because each provider's option surface is its own
307
+ * schema, evolving independently. The factory passes these through
308
+ * to the LiveKit plugin which is the source of truth for shape.
309
+ */
310
+ options: z.ZodRecord<z.ZodString, z.ZodUnknown>;
311
+ }, "strip", z.ZodTypeAny, {
312
+ options?: Record<string, unknown>;
313
+ kind?: "plugin";
314
+ provider?: "deepgram" | "elevenlabs";
315
+ class?: "LLM" | "STT" | "STTv2" | "TTS";
316
+ }, {
317
+ options?: Record<string, unknown>;
318
+ kind?: "plugin";
319
+ provider?: "deepgram" | "elevenlabs";
320
+ class?: "LLM" | "STT" | "STTv2" | "TTS";
321
+ }>, z.ZodObject<{
322
+ kind: z.ZodLiteral<"realtime">;
323
+ provider: z.ZodEnum<["openai", "google", "xai"]>;
324
+ /**
325
+ * Forwarded verbatim to `<provider>.realtime.RealtimeModel(options)`.
326
+ * Each provider has its own surface (voice id, modalities, turn
327
+ * detection, etc.). Loose record so devs can pass any option the
328
+ * underlying plugin accepts without a schema chase.
329
+ */
330
+ options: z.ZodRecord<z.ZodString, z.ZodUnknown>;
331
+ }, "strip", z.ZodTypeAny, {
332
+ options?: Record<string, unknown>;
333
+ kind?: "realtime";
334
+ provider?: "openai" | "google" | "xai";
335
+ }, {
336
+ options?: Record<string, unknown>;
337
+ kind?: "realtime";
338
+ provider?: "openai" | "google" | "xai";
339
+ }>]>>;
340
+ tts: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
341
+ kind: z.ZodLiteral<"inference">;
342
+ /** Provider-prefixed model id (e.g. `'openai/gpt-5.2-chat-latest'`). */
343
+ model: z.ZodString;
344
+ /**
345
+ * TTS-only — provider voice id. Inference's TTS API takes voice
346
+ * separately from model; LLM and STT ignore this field.
347
+ */
348
+ voice: z.ZodOptional<z.ZodString>;
349
+ /**
350
+ * Additional Inference extras forwarded as constructor options. Loose
351
+ * record by design — LiveKit's Inference surface evolves faster than
352
+ * we want to chase, and we don't gate dev productivity on schema
353
+ * updates here.
354
+ */
355
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
356
+ }, "strip", z.ZodTypeAny, {
357
+ voice?: string;
358
+ options?: Record<string, unknown>;
359
+ kind?: "inference";
360
+ model?: string;
361
+ }, {
362
+ voice?: string;
363
+ options?: Record<string, unknown>;
364
+ kind?: "inference";
365
+ model?: string;
366
+ }>, z.ZodObject<{
367
+ kind: z.ZodLiteral<"plugin">;
368
+ provider: z.ZodEnum<["deepgram", "elevenlabs"]>;
369
+ class: z.ZodEnum<["LLM", "STT", "STTv2", "TTS"]>;
370
+ /**
371
+ * Forwarded verbatim to the plugin constructor (e.g. `new deepgram.STT(options)`).
372
+ * Loose record because each provider's option surface is its own
373
+ * schema, evolving independently. The factory passes these through
374
+ * to the LiveKit plugin which is the source of truth for shape.
375
+ */
376
+ options: z.ZodRecord<z.ZodString, z.ZodUnknown>;
377
+ }, "strip", z.ZodTypeAny, {
378
+ options?: Record<string, unknown>;
379
+ kind?: "plugin";
380
+ provider?: "deepgram" | "elevenlabs";
381
+ class?: "LLM" | "STT" | "STTv2" | "TTS";
382
+ }, {
383
+ options?: Record<string, unknown>;
384
+ kind?: "plugin";
385
+ provider?: "deepgram" | "elevenlabs";
386
+ class?: "LLM" | "STT" | "STTv2" | "TTS";
387
+ }>, z.ZodObject<{
388
+ kind: z.ZodLiteral<"realtime">;
389
+ provider: z.ZodEnum<["openai", "google", "xai"]>;
390
+ /**
391
+ * Forwarded verbatim to `<provider>.realtime.RealtimeModel(options)`.
392
+ * Each provider has its own surface (voice id, modalities, turn
393
+ * detection, etc.). Loose record so devs can pass any option the
394
+ * underlying plugin accepts without a schema chase.
395
+ */
396
+ options: z.ZodRecord<z.ZodString, z.ZodUnknown>;
397
+ }, "strip", z.ZodTypeAny, {
398
+ options?: Record<string, unknown>;
399
+ kind?: "realtime";
400
+ provider?: "openai" | "google" | "xai";
401
+ }, {
402
+ options?: Record<string, unknown>;
403
+ kind?: "realtime";
404
+ provider?: "openai" | "google" | "xai";
405
+ }>]>>;
406
+ vad: z.ZodOptional<z.ZodString>;
407
+ vadOptions: z.ZodOptional<z.ZodObject<{
408
+ minSpeechDuration: z.ZodOptional<z.ZodNumber>;
409
+ minSilenceDuration: z.ZodOptional<z.ZodNumber>;
410
+ prefixPaddingDuration: z.ZodOptional<z.ZodNumber>;
411
+ activationThreshold: z.ZodOptional<z.ZodNumber>;
412
+ }, "strict", z.ZodTypeAny, {
413
+ minSpeechDuration?: number;
414
+ minSilenceDuration?: number;
415
+ prefixPaddingDuration?: number;
416
+ activationThreshold?: number;
417
+ }, {
418
+ minSpeechDuration?: number;
419
+ minSilenceDuration?: number;
420
+ prefixPaddingDuration?: number;
421
+ activationThreshold?: number;
422
+ }>>;
423
+ turnDetection: z.ZodOptional<z.ZodEnum<["multilingual", "english", "vad", "stt", "manual"]>>;
424
+ greeting: z.ZodOptional<z.ZodString>;
425
+ maxToolSteps: z.ZodOptional<z.ZodNumber>;
426
+ userAwayTimeout: z.ZodOptional<z.ZodNumber>;
427
+ preemptiveGeneration: z.ZodOptional<z.ZodBoolean>;
428
+ interruption: z.ZodOptional<z.ZodEffects<z.ZodObject<{
429
+ enabled: z.ZodOptional<z.ZodBoolean>;
430
+ mode: z.ZodOptional<z.ZodEnum<["adaptive", "vad"]>>;
431
+ falseInterruptionTimeout: z.ZodOptional<z.ZodNumber>;
432
+ resumeFalseInterruption: z.ZodOptional<z.ZodBoolean>;
433
+ minDelay: z.ZodOptional<z.ZodNumber>;
434
+ maxDelay: z.ZodOptional<z.ZodNumber>;
435
+ }, "strip", z.ZodTypeAny, {
436
+ enabled?: boolean;
437
+ mode?: "vad" | "adaptive";
438
+ falseInterruptionTimeout?: number;
439
+ resumeFalseInterruption?: boolean;
440
+ minDelay?: number;
441
+ maxDelay?: number;
442
+ }, {
443
+ enabled?: boolean;
444
+ mode?: "vad" | "adaptive";
445
+ falseInterruptionTimeout?: number;
446
+ resumeFalseInterruption?: boolean;
447
+ minDelay?: number;
448
+ maxDelay?: number;
449
+ }>, {
450
+ enabled?: boolean;
451
+ mode?: "vad" | "adaptive";
452
+ falseInterruptionTimeout?: number;
453
+ resumeFalseInterruption?: boolean;
454
+ minDelay?: number;
455
+ maxDelay?: number;
456
+ }, {
457
+ enabled?: boolean;
458
+ mode?: "vad" | "adaptive";
459
+ falseInterruptionTimeout?: number;
460
+ resumeFalseInterruption?: boolean;
461
+ minDelay?: number;
462
+ maxDelay?: number;
463
+ }>>;
464
+ sttLanguage: z.ZodOptional<z.ZodString>;
465
+ krispEnabled: z.ZodOptional<z.ZodBoolean>;
466
+ backgroundAudio: z.ZodOptional<z.ZodObject<{
467
+ ambient: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["office-ambience", "keyboard-typing", "keyboard-typing-2"]>, z.ZodObject<{
468
+ source: z.ZodEnum<["office-ambience", "keyboard-typing", "keyboard-typing-2"]>;
469
+ volume: z.ZodOptional<z.ZodNumber>;
470
+ probability: z.ZodOptional<z.ZodNumber>;
471
+ }, "strip", z.ZodTypeAny, {
472
+ source?: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
473
+ volume?: number;
474
+ probability?: number;
475
+ }, {
476
+ source?: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
477
+ volume?: number;
478
+ probability?: number;
479
+ }>, z.ZodArray<z.ZodObject<{
480
+ source: z.ZodEnum<["office-ambience", "keyboard-typing", "keyboard-typing-2"]>;
481
+ volume: z.ZodOptional<z.ZodNumber>;
482
+ probability: z.ZodOptional<z.ZodNumber>;
483
+ }, "strip", z.ZodTypeAny, {
484
+ source?: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
485
+ volume?: number;
486
+ probability?: number;
487
+ }, {
488
+ source?: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
489
+ volume?: number;
490
+ probability?: number;
491
+ }>, "many">]>>;
492
+ thinking: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["office-ambience", "keyboard-typing", "keyboard-typing-2"]>, z.ZodObject<{
493
+ source: z.ZodEnum<["office-ambience", "keyboard-typing", "keyboard-typing-2"]>;
494
+ volume: z.ZodOptional<z.ZodNumber>;
495
+ probability: z.ZodOptional<z.ZodNumber>;
496
+ }, "strip", z.ZodTypeAny, {
497
+ source?: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
498
+ volume?: number;
499
+ probability?: number;
500
+ }, {
501
+ source?: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
502
+ volume?: number;
503
+ probability?: number;
504
+ }>, z.ZodArray<z.ZodObject<{
505
+ source: z.ZodEnum<["office-ambience", "keyboard-typing", "keyboard-typing-2"]>;
506
+ volume: z.ZodOptional<z.ZodNumber>;
507
+ probability: z.ZodOptional<z.ZodNumber>;
508
+ }, "strip", z.ZodTypeAny, {
509
+ source?: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
510
+ volume?: number;
511
+ probability?: number;
512
+ }, {
513
+ source?: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
514
+ volume?: number;
515
+ probability?: number;
516
+ }>, "many">]>>;
517
+ }, "strip", z.ZodTypeAny, {
518
+ ambient?: "office-ambience" | "keyboard-typing" | "keyboard-typing-2" | {
519
+ source?: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
520
+ volume?: number;
521
+ probability?: number;
522
+ } | {
523
+ source?: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
524
+ volume?: number;
525
+ probability?: number;
526
+ }[];
527
+ thinking?: "office-ambience" | "keyboard-typing" | "keyboard-typing-2" | {
528
+ source?: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
529
+ volume?: number;
530
+ probability?: number;
531
+ } | {
532
+ source?: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
533
+ volume?: number;
534
+ probability?: number;
535
+ }[];
536
+ }, {
537
+ ambient?: "office-ambience" | "keyboard-typing" | "keyboard-typing-2" | {
538
+ source?: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
539
+ volume?: number;
540
+ probability?: number;
541
+ } | {
542
+ source?: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
543
+ volume?: number;
544
+ probability?: number;
545
+ }[];
546
+ thinking?: "office-ambience" | "keyboard-typing" | "keyboard-typing-2" | {
547
+ source?: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
548
+ volume?: number;
549
+ probability?: number;
550
+ } | {
551
+ source?: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
552
+ volume?: number;
553
+ probability?: number;
554
+ }[];
555
+ }>>;
556
+ volume: z.ZodOptional<z.ZodNumber>;
557
+ pronunciations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
558
+ persistTranscript: z.ZodOptional<z.ZodBoolean>;
559
+ }, "strip", z.ZodTypeAny, {
560
+ vad?: string;
561
+ stt?: {
562
+ voice?: string;
563
+ options?: Record<string, unknown>;
564
+ kind?: "inference";
565
+ model?: string;
566
+ } | {
567
+ options?: Record<string, unknown>;
568
+ kind?: "plugin";
569
+ provider?: "deepgram" | "elevenlabs";
570
+ class?: "LLM" | "STT" | "STTv2" | "TTS";
571
+ } | {
572
+ options?: Record<string, unknown>;
573
+ kind?: "realtime";
574
+ provider?: "openai" | "google" | "xai";
575
+ };
576
+ volume?: number;
577
+ name?: string;
578
+ llm?: {
579
+ voice?: string;
580
+ options?: Record<string, unknown>;
581
+ kind?: "inference";
582
+ model?: string;
583
+ } | {
584
+ options?: Record<string, unknown>;
585
+ kind?: "plugin";
586
+ provider?: "deepgram" | "elevenlabs";
587
+ class?: "LLM" | "STT" | "STTv2" | "TTS";
588
+ } | {
589
+ options?: Record<string, unknown>;
590
+ kind?: "realtime";
591
+ provider?: "openai" | "google" | "xai";
592
+ };
593
+ tts?: {
594
+ voice?: string;
595
+ options?: Record<string, unknown>;
596
+ kind?: "inference";
597
+ model?: string;
598
+ } | {
599
+ options?: Record<string, unknown>;
600
+ kind?: "plugin";
601
+ provider?: "deepgram" | "elevenlabs";
602
+ class?: "LLM" | "STT" | "STTv2" | "TTS";
603
+ } | {
604
+ options?: Record<string, unknown>;
605
+ kind?: "realtime";
606
+ provider?: "openai" | "google" | "xai";
607
+ };
608
+ vadOptions?: {
609
+ minSpeechDuration?: number;
610
+ minSilenceDuration?: number;
611
+ prefixPaddingDuration?: number;
612
+ activationThreshold?: number;
613
+ };
614
+ turnDetection?: "multilingual" | "english" | "vad" | "stt" | "manual";
615
+ greeting?: string;
616
+ maxToolSteps?: number;
617
+ userAwayTimeout?: number;
618
+ preemptiveGeneration?: boolean;
619
+ interruption?: {
620
+ enabled?: boolean;
621
+ mode?: "vad" | "adaptive";
622
+ falseInterruptionTimeout?: number;
623
+ resumeFalseInterruption?: boolean;
624
+ minDelay?: number;
625
+ maxDelay?: number;
626
+ };
627
+ sttLanguage?: string;
628
+ krispEnabled?: boolean;
629
+ backgroundAudio?: {
630
+ ambient?: "office-ambience" | "keyboard-typing" | "keyboard-typing-2" | {
631
+ source?: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
632
+ volume?: number;
633
+ probability?: number;
634
+ } | {
635
+ source?: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
636
+ volume?: number;
637
+ probability?: number;
638
+ }[];
639
+ thinking?: "office-ambience" | "keyboard-typing" | "keyboard-typing-2" | {
640
+ source?: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
641
+ volume?: number;
642
+ probability?: number;
643
+ } | {
644
+ source?: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
645
+ volume?: number;
646
+ probability?: number;
647
+ }[];
648
+ };
649
+ pronunciations?: Record<string, string>;
650
+ persistTranscript?: boolean;
651
+ }, {
652
+ vad?: string;
653
+ stt?: {
654
+ voice?: string;
655
+ options?: Record<string, unknown>;
656
+ kind?: "inference";
657
+ model?: string;
658
+ } | {
659
+ options?: Record<string, unknown>;
660
+ kind?: "plugin";
661
+ provider?: "deepgram" | "elevenlabs";
662
+ class?: "LLM" | "STT" | "STTv2" | "TTS";
663
+ } | {
664
+ options?: Record<string, unknown>;
665
+ kind?: "realtime";
666
+ provider?: "openai" | "google" | "xai";
667
+ };
668
+ volume?: number;
669
+ name?: string;
670
+ llm?: {
671
+ voice?: string;
672
+ options?: Record<string, unknown>;
673
+ kind?: "inference";
674
+ model?: string;
675
+ } | {
676
+ options?: Record<string, unknown>;
677
+ kind?: "plugin";
678
+ provider?: "deepgram" | "elevenlabs";
679
+ class?: "LLM" | "STT" | "STTv2" | "TTS";
680
+ } | {
681
+ options?: Record<string, unknown>;
682
+ kind?: "realtime";
683
+ provider?: "openai" | "google" | "xai";
684
+ };
685
+ tts?: {
686
+ voice?: string;
687
+ options?: Record<string, unknown>;
688
+ kind?: "inference";
689
+ model?: string;
690
+ } | {
691
+ options?: Record<string, unknown>;
692
+ kind?: "plugin";
693
+ provider?: "deepgram" | "elevenlabs";
694
+ class?: "LLM" | "STT" | "STTv2" | "TTS";
695
+ } | {
696
+ options?: Record<string, unknown>;
697
+ kind?: "realtime";
698
+ provider?: "openai" | "google" | "xai";
699
+ };
700
+ vadOptions?: {
701
+ minSpeechDuration?: number;
702
+ minSilenceDuration?: number;
703
+ prefixPaddingDuration?: number;
704
+ activationThreshold?: number;
705
+ };
706
+ turnDetection?: "multilingual" | "english" | "vad" | "stt" | "manual";
707
+ greeting?: string;
708
+ maxToolSteps?: number;
709
+ userAwayTimeout?: number;
710
+ preemptiveGeneration?: boolean;
711
+ interruption?: {
712
+ enabled?: boolean;
713
+ mode?: "vad" | "adaptive";
714
+ falseInterruptionTimeout?: number;
715
+ resumeFalseInterruption?: boolean;
716
+ minDelay?: number;
717
+ maxDelay?: number;
718
+ };
719
+ sttLanguage?: string;
720
+ krispEnabled?: boolean;
721
+ backgroundAudio?: {
722
+ ambient?: "office-ambience" | "keyboard-typing" | "keyboard-typing-2" | {
723
+ source?: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
724
+ volume?: number;
725
+ probability?: number;
726
+ } | {
727
+ source?: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
728
+ volume?: number;
729
+ probability?: number;
730
+ }[];
731
+ thinking?: "office-ambience" | "keyboard-typing" | "keyboard-typing-2" | {
732
+ source?: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
733
+ volume?: number;
734
+ probability?: number;
735
+ } | {
736
+ source?: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
737
+ volume?: number;
738
+ probability?: number;
739
+ }[];
740
+ };
741
+ pronunciations?: Record<string, string>;
742
+ persistTranscript?: boolean;
743
+ }>, {
744
+ vad?: string;
745
+ stt?: {
746
+ voice?: string;
747
+ options?: Record<string, unknown>;
748
+ kind?: "inference";
749
+ model?: string;
750
+ } | {
751
+ options?: Record<string, unknown>;
752
+ kind?: "plugin";
753
+ provider?: "deepgram" | "elevenlabs";
754
+ class?: "LLM" | "STT" | "STTv2" | "TTS";
755
+ } | {
756
+ options?: Record<string, unknown>;
757
+ kind?: "realtime";
758
+ provider?: "openai" | "google" | "xai";
759
+ };
760
+ volume?: number;
761
+ name?: string;
762
+ llm?: {
763
+ voice?: string;
764
+ options?: Record<string, unknown>;
765
+ kind?: "inference";
766
+ model?: string;
767
+ } | {
768
+ options?: Record<string, unknown>;
769
+ kind?: "plugin";
770
+ provider?: "deepgram" | "elevenlabs";
771
+ class?: "LLM" | "STT" | "STTv2" | "TTS";
772
+ } | {
773
+ options?: Record<string, unknown>;
774
+ kind?: "realtime";
775
+ provider?: "openai" | "google" | "xai";
776
+ };
777
+ tts?: {
778
+ voice?: string;
779
+ options?: Record<string, unknown>;
780
+ kind?: "inference";
781
+ model?: string;
782
+ } | {
783
+ options?: Record<string, unknown>;
784
+ kind?: "plugin";
785
+ provider?: "deepgram" | "elevenlabs";
786
+ class?: "LLM" | "STT" | "STTv2" | "TTS";
787
+ } | {
788
+ options?: Record<string, unknown>;
789
+ kind?: "realtime";
790
+ provider?: "openai" | "google" | "xai";
791
+ };
792
+ vadOptions?: {
793
+ minSpeechDuration?: number;
794
+ minSilenceDuration?: number;
795
+ prefixPaddingDuration?: number;
796
+ activationThreshold?: number;
797
+ };
798
+ turnDetection?: "multilingual" | "english" | "vad" | "stt" | "manual";
799
+ greeting?: string;
800
+ maxToolSteps?: number;
801
+ userAwayTimeout?: number;
802
+ preemptiveGeneration?: boolean;
803
+ interruption?: {
804
+ enabled?: boolean;
805
+ mode?: "vad" | "adaptive";
806
+ falseInterruptionTimeout?: number;
807
+ resumeFalseInterruption?: boolean;
808
+ minDelay?: number;
809
+ maxDelay?: number;
810
+ };
811
+ sttLanguage?: string;
812
+ krispEnabled?: boolean;
813
+ backgroundAudio?: {
814
+ ambient?: "office-ambience" | "keyboard-typing" | "keyboard-typing-2" | {
815
+ source?: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
816
+ volume?: number;
817
+ probability?: number;
818
+ } | {
819
+ source?: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
820
+ volume?: number;
821
+ probability?: number;
822
+ }[];
823
+ thinking?: "office-ambience" | "keyboard-typing" | "keyboard-typing-2" | {
824
+ source?: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
825
+ volume?: number;
826
+ probability?: number;
827
+ } | {
828
+ source?: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
829
+ volume?: number;
830
+ probability?: number;
831
+ }[];
832
+ };
833
+ pronunciations?: Record<string, string>;
834
+ persistTranscript?: boolean;
835
+ }, {
836
+ vad?: string;
837
+ stt?: {
838
+ voice?: string;
839
+ options?: Record<string, unknown>;
840
+ kind?: "inference";
841
+ model?: string;
842
+ } | {
843
+ options?: Record<string, unknown>;
844
+ kind?: "plugin";
845
+ provider?: "deepgram" | "elevenlabs";
846
+ class?: "LLM" | "STT" | "STTv2" | "TTS";
847
+ } | {
848
+ options?: Record<string, unknown>;
849
+ kind?: "realtime";
850
+ provider?: "openai" | "google" | "xai";
851
+ };
852
+ volume?: number;
853
+ name?: string;
854
+ llm?: {
855
+ voice?: string;
856
+ options?: Record<string, unknown>;
857
+ kind?: "inference";
858
+ model?: string;
859
+ } | {
860
+ options?: Record<string, unknown>;
861
+ kind?: "plugin";
862
+ provider?: "deepgram" | "elevenlabs";
863
+ class?: "LLM" | "STT" | "STTv2" | "TTS";
864
+ } | {
865
+ options?: Record<string, unknown>;
866
+ kind?: "realtime";
867
+ provider?: "openai" | "google" | "xai";
868
+ };
869
+ tts?: {
870
+ voice?: string;
871
+ options?: Record<string, unknown>;
872
+ kind?: "inference";
873
+ model?: string;
874
+ } | {
875
+ options?: Record<string, unknown>;
876
+ kind?: "plugin";
877
+ provider?: "deepgram" | "elevenlabs";
878
+ class?: "LLM" | "STT" | "STTv2" | "TTS";
879
+ } | {
880
+ options?: Record<string, unknown>;
881
+ kind?: "realtime";
882
+ provider?: "openai" | "google" | "xai";
883
+ };
884
+ vadOptions?: {
885
+ minSpeechDuration?: number;
886
+ minSilenceDuration?: number;
887
+ prefixPaddingDuration?: number;
888
+ activationThreshold?: number;
889
+ };
890
+ turnDetection?: "multilingual" | "english" | "vad" | "stt" | "manual";
891
+ greeting?: string;
892
+ maxToolSteps?: number;
893
+ userAwayTimeout?: number;
894
+ preemptiveGeneration?: boolean;
895
+ interruption?: {
896
+ enabled?: boolean;
897
+ mode?: "vad" | "adaptive";
898
+ falseInterruptionTimeout?: number;
899
+ resumeFalseInterruption?: boolean;
900
+ minDelay?: number;
901
+ maxDelay?: number;
902
+ };
903
+ sttLanguage?: string;
904
+ krispEnabled?: boolean;
905
+ backgroundAudio?: {
906
+ ambient?: "office-ambience" | "keyboard-typing" | "keyboard-typing-2" | {
907
+ source?: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
908
+ volume?: number;
909
+ probability?: number;
910
+ } | {
911
+ source?: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
912
+ volume?: number;
913
+ probability?: number;
914
+ }[];
915
+ thinking?: "office-ambience" | "keyboard-typing" | "keyboard-typing-2" | {
916
+ source?: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
917
+ volume?: number;
918
+ probability?: number;
919
+ } | {
920
+ source?: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
921
+ volume?: number;
922
+ probability?: number;
923
+ }[];
924
+ };
925
+ pronunciations?: Record<string, string>;
926
+ persistTranscript?: boolean;
927
+ }>;
928
+
929
+ /**
930
+ * Context passed to LuaVoice lifecycle hooks at runtime.
931
+ */
932
+ declare interface LuaVoiceHookContext {
933
+ sessionId: string;
934
+ channel: {
935
+ kind: string;
936
+ alias?: string;
937
+ };
938
+ caller?: {
939
+ phoneNumber?: string;
940
+ userId?: string;
941
+ isAnonymous?: boolean;
942
+ };
943
+ duration?: number;
944
+ session: {
945
+ userdata: Record<string, unknown>;
946
+ history: unknown[];
947
+ say(text: string): Promise<void>;
948
+ generateReply(opts?: {
949
+ instructions?: string;
950
+ }): unknown;
951
+ };
952
+ }
953
+
954
+ /**
955
+ * User-facing input type for `llm` / `stt` / `tts` on a LuaVoice. Accepts:
956
+ * - a string descriptor like `'cartesia/sonic-3:9626…'` — routed through Inference.
957
+ * - an instance of a LiveKit Agents plugin class such as `new deepgram.STT({...})` —
958
+ * routed through the corresponding direct plugin.
959
+ * - a struct `{ model, voice }` — sugar for the Inference TTS form.
960
+ *
961
+ * The compiler ASTs the source file and normalizes whichever shape it finds
962
+ * to the discriminated union the wire schema expects (`@lua/shared-types`).
963
+ * The constructor below stores the raw input as-is — the runtime classes
964
+ * never execute as part of the push pipeline.
965
+ */
966
+ declare type LuaVoiceModelInput = string | object;
967
+
968
+ declare class LuaVoiceTool<TInput extends ZodType = ZodType> implements LuaTool<TInput> {
969
+ readonly name: string;
970
+ readonly description: string;
971
+ readonly inputSchema: TInput;
972
+ readonly execute: (input: any, ctx?: LuaVoiceToolCtx) => Promise<any>;
973
+ readonly condition?: () => Promise<boolean>;
974
+ readonly voice?: {
975
+ flags?: ToolFlag[];
976
+ };
977
+ constructor(config: LuaVoiceToolConfig<TInput>);
978
+ }
979
+
980
+ /**
981
+ * Voice-only tool — for tools that only make sense inside a call (handoffs,
982
+ * hold-music toggles, transfer-to-human, etc.). Skill tools are still available
983
+ * to voice agents; LuaVoiceTool is for the call-only ones.
984
+ */
985
+ declare interface LuaVoiceToolConfig<TInput extends ZodType = ZodType> {
986
+ name: string;
987
+ description: string;
988
+ inputSchema: TInput;
989
+ execute: (input: any, ctx?: LuaVoiceToolCtx) => Promise<any>;
990
+ condition?: () => Promise<boolean>;
991
+ flags?: ToolFlag[];
992
+ }
993
+
994
+ /**
995
+ * Voice tool ctx — extends the base `LuaToolCtx` (from `skill.ts`) with
996
+ * voice-runtime-only delegates. The base ctx is what a `LuaTool` sees as
997
+ * its second `execute` arg whether it runs over chat or voice; this
998
+ * extension just adds the Phase-5 fields (currently optional + experimental).
999
+ *
1000
+ * `say()` is wired today and delegates to the active LiveKit `voice.AgentSession`.
1001
+ * `disallowInterruptions()` and `handoff()` are optional placeholders for
1002
+ * Phase 5 (BAC-213, the LuaVoice handoffs + test framework ticket).
1003
+ * Marked optional both because they aren't implemented yet AND so this
1004
+ * type stays structurally compatible with `LuaToolCtx` — that
1005
+ * compatibility is what lets a `LuaVoiceTool` (which extends `LuaTool`)
1006
+ * present `(ctx?: LuaVoiceToolCtx)` while satisfying the parent's
1007
+ * `(ctx?: LuaToolCtx)` signature.
1008
+ */
1009
+ declare interface LuaVoiceToolCtx {
1010
+ toolCallId?: string;
1011
+ voice?: {
1012
+ say(text: string): Promise<void>;
1013
+ /**
1014
+ * Transfer the live caller to a human at `msisdn`. Two mechanisms:
1015
+ *
1016
+ * - `'refer'` (default): SIP REFER on the caller's inbound leg.
1017
+ * Cheap (one billed leg) but depends on the inbound carrier
1018
+ * accepting REFER end-to-end — many European mobile carriers
1019
+ * strip it. Use when the carrier is known to support REFER.
1020
+ *
1021
+ * - `'bridge'`: dial the human as a second SIP participant into
1022
+ * the same room, keeping the caller attached. Two billed legs
1023
+ * but always works regardless of carrier REFER support. Use for
1024
+ * high-stakes transfers (sales, escalation) where reliability
1025
+ * matters more than per-minute cost.
1026
+ *
1027
+ * `announce` is spoken via `session.say(...)` before the transfer
1028
+ * fires (e.g. "Transferring you to our sales team — one moment").
1029
+ *
1030
+ * @example
1031
+ * ```typescript
1032
+ * await ctx.voice?.transferToHuman('+32477123456', {
1033
+ * mode: 'bridge',
1034
+ * announce: 'Transferring you to our sales team — one moment.',
1035
+ * });
1036
+ * ```
1037
+ */
1038
+ transferToHuman?(msisdn: string, opts?: {
1039
+ mode?: 'bridge' | 'refer';
1040
+ announce?: string;
1041
+ }): Promise<void>;
1042
+ /**
1043
+ * @experimental Reserved for Phase 5 (BAC-213). Optional because
1044
+ * unimplemented — the actual "lock the assistant's current
1045
+ * utterance against barge-in" plumbing lands with the broader
1046
+ * turn-handling work.
1047
+ */
1048
+ disallowInterruptions?(): void;
1049
+ /**
1050
+ * @experimental Reserved for Phase 5 (BAC-213). Optional because
1051
+ * unimplemented — handoffs require `chatCtx.copy(exclude_instructions=True)`
1052
+ * + `update_agent` plumbing that's part of the multi-LuaVoice flow ticket.
1053
+ */
1054
+ handoff?(otherVoiceName: string, opts?: {
1055
+ context?: Record<string, unknown>;
1056
+ }): unknown;
1057
+ };
1058
+ }
1059
+
1060
+ /**
1061
+ * Per-turn context passed to onUserTurnCompleted. The canonical RAG injection
1062
+ * point — call `addMessage` to seed context, then the LLM is invoked.
1063
+ */
1064
+ declare interface LuaVoiceTurnContext {
1065
+ items: unknown[];
1066
+ addMessage(message: {
1067
+ role: 'system' | 'user' | 'assistant';
1068
+ content: string;
1069
+ }): void;
1070
+ }
1071
+
1072
+ declare type RunResult = voice.testing.RunResult;
1073
+
1074
+ export declare function runVoice(luaVoice: LuaVoice, options?: RunVoiceOptions): Promise<TestSession>;
1075
+
1076
+ export declare interface RunVoiceOptions {
1077
+ /**
1078
+ * LLM mock script. Each entry is keyed by the user input text — when
1079
+ * the agent's chat loop hits that input, the FakeLLM returns the
1080
+ * paired content/toolCalls. Devs can pass a pre-built `llm.LLM`
1081
+ * instance instead for full control (custom matching, multi-turn
1082
+ * stateful responses, etc.).
1083
+ */
1084
+ llm?: FakeLLMResponse[] | llm.LLM;
1085
+ /**
1086
+ * Mock tool executions. Substitutes the dev's tool.execute for the
1087
+ * named tool — return value flows into the LLM's next turn the same
1088
+ * way a real execute would.
1089
+ */
1090
+ mockTools?: Record<string, (input: unknown, ctx?: unknown) => unknown>;
1091
+ /** Caller info passed to onEnter / onExit hook ctx. */
1092
+ caller?: {
1093
+ phoneNumber?: string;
1094
+ userId?: string;
1095
+ isAnonymous?: boolean;
1096
+ };
1097
+ channel?: 'phone' | 'meeting' | 'whatsapp' | 'webchat';
1098
+ /** Pre-seeded session.userdata. Same as the worker's initial state when onEnter hasn't run yet. */
1099
+ initialUserdata?: Record<string, unknown>;
1100
+ /**
1101
+ * Other LuaVoices the agent under test can hand off to. Pass each
1102
+ * target voice keyed by name so `ctx.voice.handoff('billing-line')`
1103
+ * resolves; assertion happens via `expectContainsHandoff(result, 'billing-line')`.
1104
+ */
1105
+ handoffTargets?: Record<string, LuaVoice>;
1106
+ /**
1107
+ * Spy on `ctx.voice.transferToHuman(...)` calls from inside the
1108
+ * voice's tools. Real SIP REFER / bridge dial never fires under
1109
+ * the test harness — pass a jest.fn() (or any callback) to assert
1110
+ * the dev's tool attempted a transfer.
1111
+ */
1112
+ onTransferToHuman?: TransferToHumanRecorder;
1113
+ /**
1114
+ * Seed `dispatchedContext` (what `Voice.call({ context })` would
1115
+ * inject in production). Stored on session.userdata under the same
1116
+ * key the worker uses, plus made available to the hook ctx.
1117
+ */
1118
+ dispatchedContext?: Record<string, unknown>;
1119
+ sessionId?: string;
1120
+ }
1121
+
1122
+ export declare interface TestSession {
1123
+ /**
1124
+ * Drive a single user turn. Returns a `RunResult` (LiveKit's
1125
+ * built-in assertion type) — chain `.expect.nextEvent()` /
1126
+ * `.expect.containsFunctionCall()` / etc. on the result.
1127
+ */
1128
+ run(userInput: string): Promise<voice.testing.RunResult>;
1129
+ /**
1130
+ * Drive multiple turns sequentially, returning all results in order.
1131
+ */
1132
+ runMany(userInputs: string[]): Promise<voice.testing.RunResult[]>;
1133
+ /** Direct access to the underlying LiveKit AgentSession. */
1134
+ readonly session: voice.AgentSession;
1135
+ /** The chat history accumulated across all turns. */
1136
+ readonly history: ReadonlyArray<unknown>;
1137
+ /** Call the LuaVoice's onExit hook (mirror end-of-session lifecycle). */
1138
+ close(): Promise<void>;
1139
+ }
1140
+
1141
+ /**
1142
+ * Lua Tool interface.
1143
+ * Defines the structure of a tool that can be added to a LuaSkill.
1144
+ *
1145
+ * @template TInput - Zod schema type for input validation
1146
+ *
1147
+ * @example
1148
+ * ```typescript
1149
+ * import { z } from 'zod';
1150
+ * import { LuaTool } from 'lua-cli';
1151
+ *
1152
+ * const weatherTool: LuaTool = {
1153
+ * name: 'get_weather',
1154
+ * description: 'Gets current weather for a city',
1155
+ * inputSchema: z.object({
1156
+ * city: z.string(),
1157
+ * units: z.enum(['metric', 'imperial']).optional()
1158
+ * }),
1159
+ * execute: async (input) => {
1160
+ * // Fetch weather data...
1161
+ * return { temperature: 72, condition: 'sunny' };
1162
+ * }
1163
+ * };
1164
+ * ```
1165
+ *
1166
+ * @example
1167
+ * ```typescript
1168
+ * // Tool with condition - only available to premium users
1169
+ * class PremiumSearchTool implements LuaTool {
1170
+ * name = "premium_search";
1171
+ * description = "Advanced search for premium users";
1172
+ * inputSchema = z.object({ query: z.string() });
1173
+ *
1174
+ * // Condition runs before tool is offered to LLM
1175
+ * condition = async () => {
1176
+ * const user = await User.get();
1177
+ * return user.data?.isPremium === true;
1178
+ * };
1179
+ *
1180
+ * execute = async (input) => { ... };
1181
+ * }
1182
+ * ```
1183
+ */
1184
+ /**
1185
+ * Tool-level flags mirrored from LiveKit's `ToolFlag`. Used by `LuaTool.voice.flags`
1186
+ * to control tool availability + interruption semantics during a voice session.
1187
+ * Defined here (not voice.ts) so LuaTool's voice metadata stays self-contained
1188
+ * with no risk of circular imports.
1189
+ */
1190
+ declare enum ToolFlag {
1191
+ NONE = "none",
1192
+ /** Tool is hidden from the LLM during the first turn after onEnter. */
1193
+ IGNORE_ON_ENTER = "ignore_on_enter",
1194
+ /** User speech does not interrupt the agent while this tool is executing. */
1195
+ DISALLOW_INTERRUPTION = "disallow_interruption"
1196
+ }
1197
+
1198
+ /**
1199
+ * Wrap each LuaTool / LuaVoiceTool in a LiveKit `llm.tool({})` so the
1200
+ * AgentSession can dispatch tool calls. The mockTools map overrides the
1201
+ * dev's `execute` when provided.
1202
+ */
1203
+ /**
1204
+ * Optional spy on `ctx.voice.transferToHuman(msisdn, opts)` calls
1205
+ * inside the test harness. Real SIP REFER / bridge dial doesn't fire
1206
+ * in tests — the harness has no SipClient — so this is the only way
1207
+ * to assert "the dev's tool tried to transfer to a human". Default is
1208
+ * a no-op log.
1209
+ */
1210
+ declare type TransferToHumanRecorder = (msisdn: string, opts?: {
1211
+ mode?: 'bridge' | 'refer';
1212
+ announce?: string;
1213
+ }) => Promise<void> | void;
1214
+
1215
+ export { voice }
1216
+
1217
+ export { }