lua-cli 3.15.2 → 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 (809) 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 -19
  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 -86
  116. package/dist/api/skills.api.service.d.ts.map +0 -1
  117. package/dist/api/skills.api.service.js +0 -112
  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 -935
  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 -486
  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 -19
  273. package/dist/commands/push.d.ts.map +0 -1
  274. package/dist/commands/push.js +0 -1145
  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 -38
  401. package/dist/compiler/utils/common.d.ts.map +0 -1
  402. package/dist/compiler/utils/common.js +0 -94
  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 -143
  482. package/dist/interfaces/backup.d.ts.map +0 -1
  483. package/dist/interfaces/backup.js +0 -8
  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 -290
  694. package/dist/utils/backup-helpers.d.ts.map +0 -1
  695. package/dist/utils/backup-helpers.js +0 -827
  696. package/dist/utils/backup-helpers.js.map +0 -1
  697. package/dist/utils/build-manifest-from-disk.d.ts +0 -17
  698. package/dist/utils/build-manifest-from-disk.d.ts.map +0 -1
  699. package/dist/utils/build-manifest-from-disk.js +0 -111
  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-types/dist/index.d.mts +0 -606
  786. package/node_modules/@lua/shared-types/dist/index.d.ts +0 -606
  787. package/node_modules/@lua/shared-types/dist/index.js +0 -435
  788. package/node_modules/@lua/shared-types/dist/index.mjs +0 -394
  789. package/node_modules/@lua/shared-types/package.json +0 -26
  790. package/node_modules/@lua/shared-types/src/agent-config.types.ts +0 -45
  791. package/node_modules/@lua/shared-types/src/agent-invocation.types.ts +0 -73
  792. package/node_modules/@lua/shared-types/src/ai-generate.types.ts +0 -74
  793. package/node_modules/@lua/shared-types/src/ai-generate.utils.ts +0 -16
  794. package/node_modules/@lua/shared-types/src/channel.type.ts +0 -23
  795. package/node_modules/@lua/shared-types/src/chat-history.types.ts +0 -112
  796. package/node_modules/@lua/shared-types/src/chat-stream.types.ts +0 -11
  797. package/node_modules/@lua/shared-types/src/client-tools.types.ts +0 -47
  798. package/node_modules/@lua/shared-types/src/device.types.ts +0 -190
  799. package/node_modules/@lua/shared-types/src/index.ts +0 -15
  800. package/node_modules/@lua/shared-types/src/model-registry.ts +0 -20
  801. package/node_modules/@lua/shared-types/src/persona-defaults.ts +0 -59
  802. package/node_modules/@lua/shared-types/src/persona-text.type.ts +0 -92
  803. package/node_modules/@lua/shared-types/src/sandbox-contract.ts +0 -63
  804. package/node_modules/@lua/shared-types/src/unstructured-types.ts +0 -58
  805. package/node_modules/@lua/shared-types/src/vm-execution-log.types.ts +0 -41
  806. package/node_modules/@lua/shared-types/tsconfig.json +0 -12
  807. package/node_modules/@lua/shared-types/tsup.config.ts +0 -9
  808. package/scripts/resolve-workspace-deps.cjs +0 -61
  809. /package/dist/{compiler/utils/zod-runtime.mjs → zod-runtime.mjs} +0 -0
@@ -1,112 +0,0 @@
1
- /**
2
- * Wire-format types for `GET /chat/history/:agentId` and the VM-sandbox
3
- * `User.getChatHistory()` API. Both paths return the same shape.
4
- *
5
- * Shared between lua-core (HTTP controller + VM devtools) and lua-cli
6
- * (HTTP client typing for `lua test`). Also shared with lua-api's
7
- * `thread.service.ts` (admin org-thread listing) so the parser never
8
- * diverges across services.
9
- */
10
-
11
- /**
12
- * One content part of a chat-history message.
13
- *
14
- * `text` parts carry plain text. Media parts (`image` / `video` / `audio`
15
- * / `file`) carry a URL or base64 payload in `data` (or `image` / `video`
16
- * for legacy reasons) plus a `mediaType` MIME string.
17
- */
18
- export interface ChatHistoryContent {
19
- type: 'text' | 'image' | 'video' | 'audio' | 'file';
20
- text?: string;
21
- image?: string;
22
- video?: string;
23
- data?: string;
24
- mediaType?: string;
25
- latitude?: number;
26
- longitude?: number;
27
- }
28
-
29
- /**
30
- * One message returned by chat-history endpoints.
31
- *
32
- * Only `user` and `assistant` roles surface — system / tool messages are
33
- * filtered out before transport.
34
- */
35
- export interface ChatHistoryMessage {
36
- id: string;
37
- role: 'user' | 'assistant';
38
- /** ISO-8601 timestamp string. */
39
- createdAt: string;
40
- content: ChatHistoryContent[];
41
- }
42
-
43
- /**
44
- * Strip `::: navigate …:::` blocks from a text string.
45
- *
46
- * Exposed because both lua-core's chat-history transform and any future
47
- * external transform may need it independently.
48
- */
49
- export function removeNavigateBlock(input: string): string {
50
- return input.replace(/::: navigate[\s\S]*?:::/g, '').trim();
51
- }
52
-
53
- /**
54
- * Transform raw Mastra `MastraMessageContentV2.parts[]` into the
55
- * `ChatHistoryContent[]` wire shape.
56
- *
57
- * Single source of truth for the conversion: used by lua-core's
58
- * `toChatHistoryMessage` (HTTP + VM sandbox paths) and lua-api's
59
- * `thread.service.ts` admin org-thread listing. Any future divergence
60
- * starts here.
61
- *
62
- * Parts are deliberately typed `unknown` because callers may either pass
63
- * Mastra v5 `MastraMessagePart` instances (lua-core, via `@mastra/core`)
64
- * or raw JSON parsed from a SQL row (lua-api, reading `mastra_messages`
65
- * directly). The function only inspects `.type`, `.text`, `.data`, and
66
- * `.mimeType` via property access, so both shapes work.
67
- */
68
- export function transformChatHistoryContentParts(parts: unknown[] | undefined | null): ChatHistoryContent[] {
69
- const content: ChatHistoryContent[] = [];
70
-
71
- for (const rawPart of parts ?? []) {
72
- const part = rawPart as { type?: string; text?: string; data?: string; mimeType?: string };
73
- if (part?.type !== 'text' && part?.type !== 'file') continue;
74
-
75
- if (part.type === 'text' && typeof part.text === 'string') {
76
- const rawText = part.text || '';
77
-
78
- // Filter out hidden text
79
- if (rawText.includes('::: hide')) continue;
80
-
81
- // Check for audio/video markdown patterns and surface as native
82
- // audio/video parts (matches the ChatHistoryContent type contract).
83
- const audioMatch = rawText.match(/::: audio\s*!\[(.*?)\]\((.*?)\)\s*:::/);
84
- const videoMatch = rawText.match(/::: video\s*!\[(.*?)\]\((.*?)\)\s*:::/);
85
-
86
- if (audioMatch) {
87
- content.push({ type: 'audio', data: audioMatch[2], mediaType: audioMatch[1] });
88
- } else if (videoMatch) {
89
- content.push({ type: 'video', video: videoMatch[2], mediaType: videoMatch[1] });
90
- } else {
91
- // Cleanup text: de-escape \\\\\\n and strip navigate blocks
92
- let text = rawText.replace(/\\\\\\n/g, '\n');
93
- text = removeNavigateBlock(text);
94
- content.push({ type: 'text', text });
95
- }
96
- } else if (part.type === 'file') {
97
- const mediaType = part.mimeType || '';
98
-
99
- if (mediaType.startsWith('image/')) {
100
- content.push({ type: 'image', image: part.data, mediaType });
101
- } else if (mediaType.startsWith('video/')) {
102
- content.push({ type: 'video', video: part.data, mediaType });
103
- } else if (mediaType.startsWith('audio/')) {
104
- content.push({ type: 'audio', data: part.data, mediaType });
105
- } else {
106
- content.push({ type: 'file', data: part.data, mediaType });
107
- }
108
- }
109
- }
110
-
111
- return content;
112
- }
@@ -1,11 +0,0 @@
1
- /**
2
- * Wire-format contract for `type: 'error'` chunks emitted by lua-core's chat
3
- * stream. Single source of truth — consumed by lua-whatsapp and any other
4
- * service that reads the NDJSON chat stream.
5
- */
6
- export interface ChatErrorChunk {
7
- type: 'error';
8
- textDelta: string;
9
- error: string;
10
- timestamp: number;
11
- }
@@ -1,47 +0,0 @@
1
- /**
2
- * Client-Injected Tools
3
- *
4
- * Lets a chat client (Lua Desktop, custom front-ends, future surfaces) declare
5
- * tools that the agent can call but the *client* renders/handles. Mirrors the
6
- * pattern used by Claude Code, OpenAI Apps SDK, and Anthropic's MCP — the
7
- * surface the user sees gets to add capabilities to the agent without changing
8
- * the agent itself.
9
- *
10
- * Tool calls flow through Mastra's existing `tool-call` stream chunks; the
11
- * server registers the tool with a no-op `execute` (returns `{ ok: true,
12
- * clientHandled: true }`) so the model sees a clean ack and can continue. The
13
- * actual rendering / side-effect happens on the client when it sees the
14
- * tool-call chunk.
15
- *
16
- * Tool names are namespaced server-side as `client__<name>` to avoid collisions
17
- * with built-in tools (skills, MCP, devices, voice). Same pattern as device
18
- * tools (`device__<name>__<command>`).
19
- */
20
- export interface ClientToolDef {
21
- /** Unprefixed tool name as the client refers to it (e.g. "create_artifact"). Server prefixes with `client__`. */
22
- name: string;
23
-
24
- /** Human/LLM-readable description of when to call this tool. */
25
- description: string;
26
-
27
- /**
28
- * JSON Schema for the tool's input. Hydrated server-side into a Zod schema
29
- * via the shared `jsonSchemaToZod` util. Same subset supported as device
30
- * tools — object with string/number/boolean/array properties, `required`,
31
- * `default`, `description`, `enum`.
32
- */
33
- parameters: Record<string, unknown>;
34
- }
35
-
36
- /**
37
- * Server-side prefix for client tool names. Keeps client tools from
38
- * shadowing skills, MCP tools, devices (`device__`), or voice tools.
39
- */
40
- export const CLIENT_TOOL_PREFIX = 'client__';
41
-
42
- /**
43
- * Maximum number of client tools accepted per request. Keeps the model's
44
- * tool list bounded — at this many tools the model starts losing precision
45
- * picking the right one anyway.
46
- */
47
- export const CLIENT_TOOLS_MAX = 20;
@@ -1,190 +0,0 @@
1
- /**
2
- * Device Gateway Types
3
- *
4
- * Types for bidirectional communication between AI agents and external devices.
5
- * Used across lua-api (gateway), lua-core (runtime), and lua-cli (compilation).
6
- */
7
-
8
- // =============================================================================
9
- // COMMAND (Agent → Device)
10
- // =============================================================================
11
-
12
- /** Command message sent from the server to a device */
13
- export interface DeviceCommandMessage {
14
- /** Unique identifier for this command (UUID). Used for idempotency. */
15
- commandId: string;
16
- /** Command name (must match a command defined in defineDevice) */
17
- command: string;
18
- /** Command payload (validated against inputSchema if defined) */
19
- payload: any;
20
- /** Timeout in milliseconds (defaults to 30000) */
21
- timeout?: number;
22
- }
23
-
24
- /** Response message sent from a device back to the server */
25
- export interface DeviceResponseMessage {
26
- /** Must match the commandId of the original command */
27
- commandId: string;
28
- /** Whether the command executed successfully on the device */
29
- success: boolean;
30
- /** Response data (present when success=true) */
31
- data?: any;
32
- /** Error message (present when success=false) */
33
- error?: string;
34
- }
35
-
36
- // =============================================================================
37
- // TRIGGER (Device → Agent)
38
- // =============================================================================
39
-
40
- /** Trigger message sent from a device to the server */
41
- export interface DeviceTriggerMessage {
42
- /** Trigger name (must match a trigger defined in defineDevice) */
43
- triggerName: string;
44
- /** Trigger payload (validated against payloadSchema if defined) */
45
- payload: any;
46
- }
47
-
48
- /** Acknowledgment sent from the server back to the device after receiving a trigger */
49
- export interface DeviceTriggerAckMessage {
50
- /** Server-generated unique identifier for this trigger event */
51
- triggerId: string;
52
- /** Whether the trigger was received and queued for processing */
53
- received: boolean;
54
- /** Error details if the trigger was rejected */
55
- error?: string;
56
- }
57
-
58
- // =============================================================================
59
- // STATE
60
- // =============================================================================
61
-
62
- /** Device connection status */
63
- export type DeviceStatus = 'online' | 'offline' | 'registered' | 'disabled';
64
-
65
- /** State of a command in the Valkey state machine */
66
- export type CommandState =
67
- | 'PENDING' // Command written to stream, not yet consumed
68
- | 'SENT' // Consumed by target pod, emitted to socket
69
- | 'ACK' // Device acknowledged receipt via Socket.IO ack
70
- | 'COMPLETED' // Device responded successfully
71
- | 'FAILED' // Device responded with error, or validation failed
72
- | 'TIMED_OUT'; // No response within timeout period
73
-
74
- // =============================================================================
75
- // DEVICE INFO
76
- // =============================================================================
77
-
78
- /** Device information returned by API endpoints */
79
- export interface DeviceInfo {
80
- /** Unique device name within the agent */
81
- name: string;
82
- /** Agent this device belongs to */
83
- agentId: string;
84
- /** Current connection status */
85
- status: DeviceStatus;
86
- /** Device group (optional, for fan-out commands) */
87
- group?: string;
88
- /** Device capabilities */
89
- capabilities: string[];
90
- /** Free-form device metadata */
91
- metadata: Record<string, any>;
92
- /** Last time the device was seen (heartbeat or connect) */
93
- lastSeenAt: Date | null;
94
- }
95
-
96
- // =============================================================================
97
- // VALKEY STREAM ENTRIES
98
- // =============================================================================
99
-
100
- /** Entry written to the device command stream */
101
- export interface CommandStreamEntry {
102
- commandId: string;
103
- command: string;
104
- payload: string; // JSON-serialized
105
- originPodId: string;
106
- agentId: string;
107
- deviceName: string;
108
- }
109
-
110
- /** Entry written to the device response stream */
111
- export interface ResponseStreamEntry {
112
- commandId: string;
113
- success: string; // 'true' or 'false' (Redis streams store strings)
114
- data?: string; // JSON-serialized
115
- error?: string;
116
- }
117
-
118
- /** Entry written to the device trigger stream */
119
- export interface TriggerStreamEntry {
120
- triggerId: string;
121
- agentId: string;
122
- deviceName: string;
123
- deviceId: string;
124
- triggerName: string;
125
- payload: string; // JSON-serialized
126
- timestamp: string;
127
- }
128
-
129
- // =============================================================================
130
- // VALKEY COMMAND HASH
131
- // =============================================================================
132
-
133
- /** Data stored in the Valkey hash for a command's state */
134
- export interface CommandHashData {
135
- status: CommandState;
136
- agentId: string;
137
- deviceName: string;
138
- originPodId: string;
139
- timestamp: number;
140
- }
141
-
142
- // =============================================================================
143
- // DEVICE DEFINITION (stored in lua-agents, cached in Redis)
144
- // =============================================================================
145
-
146
- /** Device definition as stored in Redis cache */
147
- export interface CachedDeviceDefinition {
148
- name: string;
149
- description?: string;
150
- group?: string;
151
- commands: CachedDeviceCommand[];
152
- triggers: CachedDeviceTrigger[];
153
- /** Compressed (gzip + base64) compiled artifact containing trigger handlers */
154
- artifact: string;
155
- /** Environment variables for the device */
156
- env: Record<string, string>;
157
- }
158
-
159
- export interface CachedDeviceCommand {
160
- name: string;
161
- description: string;
162
- inputSchema?: Record<string, any>; // JSON Schema
163
- retry?: { maxAttempts: number; backoffMs: number };
164
- timeoutMs?: number;
165
- }
166
-
167
- export interface CachedDeviceTrigger {
168
- name: string;
169
- description: string;
170
- payloadSchema?: Record<string, any>; // JSON Schema
171
- hasExecute: boolean;
172
- }
173
-
174
- /** Command definition sent by a device at connect time (self-describing) */
175
- export interface DeviceCommandDefinition {
176
- name: string;
177
- description: string;
178
- inputSchema?: Record<string, any>;
179
- timeoutMs?: number;
180
- retry?: { maxAttempts: number; backoffMs: number };
181
- }
182
-
183
- /** Standalone device trigger definition (compiled agent-side primitive) */
184
- export interface CachedDeviceTriggerDefinition {
185
- name: string;
186
- description: string;
187
- payloadSchema?: Record<string, any>;
188
- artifact: string; // Compressed execute handler
189
- env: Record<string, string>;
190
- }
@@ -1,15 +0,0 @@
1
- export * from './channel.type';
2
- export * from './persona-text.type';
3
- export * from './unstructured-types';
4
- export * from './ai-generate.types';
5
- export * from './ai-generate.utils';
6
- export * from './agent-invocation.types';
7
- export * from './chat-history.types';
8
- export * from './sandbox-contract';
9
- export * from './device.types';
10
- export * from './client-tools.types';
11
- export * from './model-registry';
12
- export * from './agent-config.types';
13
- export * from './persona-defaults';
14
- export * from './vm-execution-log.types';
15
- export * from './chat-stream.types';
@@ -1,20 +0,0 @@
1
- /**
2
- * Shared type definitions for the model registry.
3
- *
4
- * Runtime data (provider configs, context windows, approved model list) lives
5
- * exclusively in the MongoDB `approvedModels` collection. lua-core loads it at
6
- * startup via initModelRegistry() in mastra/common/model-registry.ts.
7
- */
8
-
9
- export interface ApprovedModelDef {
10
- provider: string;
11
- /** Full user-facing model string, e.g. "zhipuai/glm-5". */
12
- code: string;
13
- /** Model ID portion for display, e.g. "glm-5". */
14
- model: string;
15
- description: string;
16
- /** Advertised input token context window (raw, from provider docs). */
17
- contextWindow?: number;
18
- /** If set, route requests through a gateway instead of calling the provider directly. */
19
- gateway?: { via: string; modelPrefix: string };
20
- }
@@ -1,59 +0,0 @@
1
- const AGENT_NAME_TOKEN = '[Your Agent Name]';
2
-
3
- /**
4
- * Structured persona guide template for newly created agents.
5
- * Each section teaches the developer what to write, with a brief example.
6
- */
7
- const DEFAULT_PERSONA_GUIDE = `# ${AGENT_NAME_TOKEN} - Persona
8
-
9
- This is a starting template to help you think about your agent's persona.
10
- Use it as-is, rearrange it, or replace it entirely with your own format — whatever works best for your use case.
11
- The sections below are suggestions, not requirements.
12
-
13
- ## Identity & Role
14
- Who is your agent? What's their name and core purpose?
15
- - Give it a name and a clear one-line role
16
- - e.g. a customer support rep, a shopping assistant, an internal ops copilot, a scheduling bot
17
-
18
- ## Business Context
19
- What company, product, or service does the agent represent? What does the business do?
20
- - Describe the business in a sentence or two so the agent understands the world it operates in
21
- - Include industry, value proposition, and anything the agent should "know" about the brand
22
-
23
- ## Tone & Communication Style
24
- How should the agent sound?
25
- - Formal or casual? Concise or detailed? Empathetic or matter-of-fact?
26
- - Should it match a specific brand voice or adapt to the user's tone?
27
- - Any language or cultural considerations (e.g. greetings, local expressions)?
28
-
29
- ## Target Audience
30
- Who will the agent be talking to?
31
- - Describe the typical user: consumers, business customers, internal team members, etc.
32
- - What do they usually need help with? What matters most to them?
33
-
34
- ## Capabilities
35
- What can the agent help with? List the main things it should handle.
36
- - e.g. answering product questions, placing orders, looking up account info, scheduling meetings
37
- - Be specific — this shapes which skills and tools the agent will use
38
-
39
- ## Boundaries
40
- What should the agent NOT do? When should it escalate to a human?
41
- - e.g. cannot process refunds, should not give medical/legal advice
42
- - Define when to hand off: frustrated user, request outside scope, sensitive data
43
-
44
- ## Guidelines
45
- Any rules for how the agent behaves?
46
- - Response length limits (e.g. keep messages under 300 words)
47
- - Formatting preferences (e.g. use bullet points, avoid jargon)
48
- - Things to always or never do (e.g. always confirm before changes, never share internal IDs)
49
-
50
- ---
51
- Feel free to add, remove, or rename sections. Your persona can be a single paragraph or a detailed playbook — whatever gives your agent the context it needs.
52
- `;
53
-
54
- /**
55
- * Build a default persona guide with the agent name filled in.
56
- */
57
- export function buildDefaultPersona(agentName: string): string {
58
- return DEFAULT_PERSONA_GUIDE.replace(AGENT_NAME_TOKEN, () => agentName || 'My Agent');
59
- }
@@ -1,92 +0,0 @@
1
- /**
2
- * Polymorphic shape used by `LuaAgent.persona`. String form is the legacy
3
- * single-channel persona; object form lets the customer split prose per
4
- * channel (`base` always rendered; `voice` appended on voice; `text`
5
- * appended on text channels).
6
- */
7
- export type PersonaText = string | { base?: string; voice?: string; text?: string };
8
-
9
- /**
10
- * Same shape as `PersonaText`, exported separately because skill `context`
11
- * and agent `persona` play different semantic roles. Sharing the structural
12
- * shape today keeps the runtime lean; future divergence is a one-line change.
13
- */
14
- export type SkillContextText = string | { base?: string; voice?: string; text?: string };
15
-
16
- export function isPersonaTextObject(value: unknown): value is { base?: string; voice?: string; text?: string } {
17
- if (value === null || typeof value !== 'object' || Array.isArray(value)) return false;
18
- const obj = value as Record<string, unknown>;
19
- for (const k of Object.keys(obj)) {
20
- if (k !== 'base' && k !== 'voice' && k !== 'text') return false;
21
- if (obj[k] !== undefined && typeof obj[k] !== 'string') return false;
22
- }
23
- return true;
24
- }
25
-
26
- /**
27
- * Flatten `PersonaText` or `SkillContextText` to a plain string suitable for
28
- * LLM prompt injection. `base` is always emitted; `voice` is appended on
29
- * voice channels and `text` on text channels. Strict — missing channel keys
30
- * render nothing (no cross-channel fallback).
31
- */
32
- export function flattenPersonaText(input: PersonaText | SkillContextText | null | undefined, isVoice = false): string {
33
- if (input == null) return '';
34
- if (typeof input === 'string') return input;
35
- const parts: string[] = [];
36
- if (input.base) parts.push(input.base);
37
- const channelText = isVoice ? input.voice : input.text;
38
- if (channelText) parts.push(channelText);
39
- return parts.join('\n\n');
40
- }
41
-
42
- /**
43
- * Channel-agnostic flatten — concatenates every non-empty channel's content
44
- * (base + voice + text) for paths that aren't a render-time prompt injection,
45
- * e.g. AI persona enhancement (storytelling, instructions, website-derived).
46
- * Use this whenever the call has no channel context but still wants the full
47
- * persona content — `flattenPersonaText` would silently drop voice or text
48
- * branches because it defaults to text-channel rendering.
49
- */
50
- export function flattenPersonaTextAll(input: PersonaText | SkillContextText | null | undefined): string {
51
- if (input == null) return '';
52
- if (typeof input === 'string') return input;
53
- const parts: string[] = [];
54
- if (input.base) parts.push(input.base);
55
- if (input.voice) parts.push(input.voice);
56
- if (input.text) parts.push(input.text);
57
- return parts.join('\n\n');
58
- }
59
-
60
- /**
61
- * True when the persona has ANY non-empty content on any channel. Used at
62
- * push/skip boundaries where channel context is not yet known.
63
- */
64
- export function hasPersonaTextContent(input: PersonaText | SkillContextText | null | undefined): boolean {
65
- if (input == null) return false;
66
- if (typeof input === 'string') return input.trim().length > 0;
67
- return Boolean(input.base?.trim() || input.voice?.trim() || input.text?.trim());
68
- }
69
-
70
- /**
71
- * Convert a PersonaText into a TypeScript source-code literal suitable
72
- * for ts-morph setInitializer or template rendering.
73
- *
74
- * - String form → `"..."` (double-quoted) or template literal (when newlines present)
75
- * - Object form → `{ base: ..., voice: ..., text: ... }` with same per-key rule
76
- */
77
- export function personaToLiteral(persona: PersonaText): string {
78
- const formatValue = (v: string): string => {
79
- if (v.includes('\n')) {
80
- return '`' + v.replace(/\\/g, '\\\\').replace(/`/g, '\\`').replace(/\$/g, '\\$') + '`';
81
- }
82
- return '"' + v.replace(/\\/g, '\\\\').replace(/"/g, '\\"') + '"';
83
- };
84
-
85
- if (typeof persona === 'string') return formatValue(persona);
86
-
87
- const parts: string[] = [];
88
- if (persona.base !== undefined) parts.push(`base: ${formatValue(persona.base)}`);
89
- if (persona.voice !== undefined) parts.push(`voice: ${formatValue(persona.voice)}`);
90
- if (persona.text !== undefined) parts.push(`text: ${formatValue(persona.text)}`);
91
- return `{ ${parts.join(', ')} }`;
92
- }
@@ -1,63 +0,0 @@
1
- /**
2
- * Sandbox contract: defines what every sandbox MUST expose.
3
- * Both lua-cli and lua-core test against this contract.
4
- * Update this file when adding new globals or primitives.
5
- */
6
-
7
- // Required primitive shim names (both class-based and function-based)
8
- export const REQUIRED_PRIMITIVE_SHIMS = [
9
- // Class-based
10
- 'LuaTool',
11
- 'LuaSkill',
12
- 'LuaJob',
13
- 'LuaWebhook',
14
- 'PreProcessor',
15
- 'LuaPreprocessor',
16
- 'PostProcessor',
17
- 'LuaPostprocessor',
18
- 'LuaMCPServer',
19
- // Function-based
20
- 'defineTool',
21
- 'defineSkill',
22
- 'defineJob',
23
- 'defineWebhook',
24
- 'definePreProcessor',
25
- 'definePostProcessor',
26
- 'defineMCPServer',
27
- ] as const;
28
-
29
- // Required platform API globals with their expected methods
30
- export const REQUIRED_PLATFORM_APIS = {
31
- User: ['get', 'getChatHistory'],
32
- Products: ['get', 'create', 'delete', 'search', 'getById'],
33
- Baskets: [
34
- 'create',
35
- 'get',
36
- 'addItem',
37
- 'removeItem',
38
- 'clear',
39
- 'updateStatus',
40
- 'updateMetadata',
41
- 'placeOrder',
42
- 'getById',
43
- ],
44
- Orders: ['create', 'updateStatus', 'updateData', 'get', 'getById'],
45
- Data: ['create', 'get', 'getEntry', 'update', 'search', 'delete'],
46
- Jobs: ['create', 'getJob', 'getAll'],
47
- AI: ['generate'],
48
- CDN: ['upload', 'get'],
49
- } as const;
50
-
51
- export const REQUIRED_NESTED_APIS = {
52
- Templates: { whatsapp: ['list', 'get', 'send'] },
53
- Lua: { request: ['channel'] },
54
- } as const;
55
-
56
- // Required enums with expected keys
57
- export const REQUIRED_ENUMS = {
58
- BasketStatus: ['ACTIVE', 'CHECKED_OUT', 'ABANDONED', 'EXPIRED'],
59
- OrderStatus: ['PENDING', 'CONFIRMED', 'FULFILLED', 'CANCELLED'],
60
- } as const;
61
-
62
- // Required utility functions
63
- export const REQUIRED_UTILITIES = ['env'] as const;
@@ -1,58 +0,0 @@
1
- /**
2
- * MIME types supported by Unstructured.io for document text extraction.
3
- * Source: https://docs.unstructured.io/api-reference/supported-file-types
4
- *
5
- * Shared across lua-core (FileConversionService) and lua-agents (UnstructuredService).
6
- */
7
- export const UNSTRUCTURED_SUPPORTED_MEDIA_TYPES = new Set([
8
- // PDF
9
- 'application/pdf',
10
- // Word processing (.doc, .docx, .dot, .dotm, .zabw)
11
- 'application/msword', // .doc, .dot
12
- 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', // .docx
13
- 'application/vnd.openxmlformats-officedocument.wordprocessingml.template', // .dotm
14
- 'application/vnd.oasis.opendocument.text', // .odt
15
- 'application/rtf', // .rtf
16
- 'text/rtf',
17
- 'application/x-abiword', // .abw, .zabw
18
- // Spreadsheets (.xls, .xlsx, .fods, .csv, .tsv, .dbf, .et, .mw)
19
- 'application/vnd.ms-excel', // .xls
20
- 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', // .xlsx
21
- 'application/vnd.oasis.opendocument.spreadsheet', // .fods
22
- 'text/csv', // .csv
23
- 'text/tab-separated-values', // .tsv
24
- 'application/dbase', // .dbf
25
- 'application/x-et', // .et (WPS Spreadsheet)
26
- // Presentations (.ppt, .pptx, .pptm, .pot)
27
- 'application/vnd.ms-powerpoint', // .ppt
28
- 'application/vnd.openxmlformats-officedocument.presentationml.presentation', // .pptx
29
- 'application/vnd.openxmlformats-officedocument.presentationml.template', // .pptm, .pot
30
- // Images — OCR (.bmp, .heic, .jpeg, .jpg, .png, .prn, .tiff)
31
- 'image/jpeg',
32
- 'image/jpg',
33
- 'image/png',
34
- 'image/tiff',
35
- 'image/bmp',
36
- 'image/heic',
37
- // Email (.eml, .msg, .p7s)
38
- 'message/rfc822', // .eml
39
- 'application/vnd.ms-outlook', // .msg
40
- 'application/pkcs7-signature', // .p7s
41
- // Web/Markup (.htm, .html, .md, .rst, .xml, .org)
42
- 'text/html',
43
- 'text/markdown',
44
- 'text/x-rst', // .rst
45
- 'text/x-org', // .org (Org Mode)
46
- 'application/xml',
47
- 'text/xml',
48
- // Text (.txt)
49
- 'text/plain',
50
- // eBook (.epub)
51
- 'application/epub+zip', // .epub
52
- // Other (.hwp, .json, .cwk, .mcw, .dif, .sxg)
53
- 'application/json',
54
- 'application/x-hwp', // .hwp (Hangul)
55
- 'application/clarisworks', // .cwk, .mcw (Apple ClarisWorks)
56
- 'application/x-dif', // .dif (Data Interchange Format)
57
- 'application/vnd.sun.xml.writer.global', // .sxg (StarOffice)
58
- ]);