mayura 1.0.0-rc.2 → 1.1.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 (837) hide show
  1. package/README.md +19 -6
  2. package/adapter-code-docker/index.d.ts +1 -0
  3. package/adapter-code-docker/index.js +1 -0
  4. package/adapter-code-quickjs/index.d.ts +1 -0
  5. package/adapter-code-quickjs/index.js +1 -0
  6. package/adapter-mcp/index.d.ts +1 -0
  7. package/adapter-mcp/index.js +1 -0
  8. package/artifacts/files/index.d.ts +1 -0
  9. package/artifacts/files/index.js +1 -0
  10. package/artifacts/index.d.ts +1 -0
  11. package/artifacts/index.js +1 -0
  12. package/auth/better-auth/index.d.ts +1 -0
  13. package/auth/better-auth/index.js +1 -0
  14. package/auth/index.d.ts +1 -0
  15. package/auth/index.js +1 -0
  16. package/auth/testing/index.d.ts +1 -0
  17. package/auth/testing/index.js +1 -0
  18. package/browser/index.d.ts +1 -0
  19. package/browser/index.js +1 -0
  20. package/browser/local/index.d.ts +1 -0
  21. package/browser/local/index.js +1 -0
  22. package/browser/testing/index.d.ts +1 -0
  23. package/browser/testing/index.js +1 -0
  24. package/cli/deploy/index.d.ts +1 -0
  25. package/cli/deploy/index.js +1 -0
  26. package/cli/index.d.ts +1 -0
  27. package/cli/index.js +1 -0
  28. package/client/forms/index.d.ts +1 -0
  29. package/client/forms/index.js +1 -0
  30. package/client/headless/index.d.ts +1 -0
  31. package/client/headless/index.js +1 -0
  32. package/client/index.d.ts +1 -0
  33. package/client/index.js +1 -0
  34. package/client/workflows/index.d.ts +1 -0
  35. package/client/workflows/index.js +1 -0
  36. package/client-react/components/index.d.ts +1 -0
  37. package/client-react/components/index.js +1 -0
  38. package/client-react/index.d.ts +1 -0
  39. package/client-react/index.js +1 -0
  40. package/code-mode/index.d.ts +1 -0
  41. package/code-mode/index.js +1 -0
  42. package/code-mode-workflows/index.d.ts +1 -0
  43. package/code-mode-workflows/index.js +1 -0
  44. package/context/index.d.ts +1 -0
  45. package/context/index.js +1 -0
  46. package/core/host/index.d.ts +1 -0
  47. package/core/host/index.js +1 -0
  48. package/core/index.d.ts +1 -0
  49. package/core/index.js +1 -0
  50. package/docs/README.md +10 -1
  51. package/docs/cli/deploy.md +154 -0
  52. package/docs/cli/overview.md +1 -0
  53. package/docs/cli/run.md +182 -182
  54. package/docs/guides/artifacts.md +29 -4
  55. package/docs/guides/authentication.md +246 -0
  56. package/docs/guides/browsers.md +189 -0
  57. package/docs/guides/deployment.md +45 -4
  58. package/docs/guides/files.md +188 -0
  59. package/docs/guides/model-providers.md +3 -0
  60. package/docs/guides/model-registry.md +184 -0
  61. package/docs/guides/observability.md +78 -1
  62. package/docs/guides/sandboxes.md +242 -0
  63. package/docs/guides/storage.md +195 -1
  64. package/docs/guides/testing.md +1 -0
  65. package/docs/guides/voice.md +100 -0
  66. package/docs/installation.md +16 -1
  67. package/docs/introduction.md +10 -5
  68. package/docs/project/security.md +8 -4
  69. package/docs/project/support.md +28 -7
  70. package/docs/project/versioning.md +9 -7
  71. package/docs/project/whats-new.md +78 -0
  72. package/docs/reference/entry-points.md +19 -1
  73. package/docs/reference/integrations.md +169 -0
  74. package/exporter-otlp/index.d.ts +1 -0
  75. package/exporter-otlp/index.js +1 -0
  76. package/exporter-otlp/opentelemetry/index.d.ts +1 -0
  77. package/exporter-otlp/opentelemetry/index.js +1 -0
  78. package/files/index.d.ts +1 -0
  79. package/files/index.js +1 -0
  80. package/guardrails/index.d.ts +1 -0
  81. package/guardrails/index.js +1 -0
  82. package/helpers/index.d.ts +1 -0
  83. package/helpers/index.js +1 -0
  84. package/keys/index.d.ts +1 -0
  85. package/keys/index.js +1 -0
  86. package/keys/testing/index.d.ts +1 -0
  87. package/keys/testing/index.js +1 -0
  88. package/lib/adapter-code-docker/image/Dockerfile +1 -1
  89. package/lib/adapter-code-docker/package.json +1 -1
  90. package/lib/adapter-code-quickjs/package.json +1 -1
  91. package/lib/adapter-mcp/package.json +1 -1
  92. package/lib/artifacts/dist/files-store.d.ts +27 -0
  93. package/lib/artifacts/dist/files-store.d.ts.map +1 -0
  94. package/lib/artifacts/dist/files-store.js +390 -0
  95. package/lib/artifacts/dist/files-store.js.map +1 -0
  96. package/lib/artifacts/dist/files.d.ts +3 -0
  97. package/lib/artifacts/dist/files.d.ts.map +1 -0
  98. package/lib/artifacts/dist/files.js +2 -0
  99. package/lib/artifacts/dist/files.js.map +1 -0
  100. package/lib/artifacts/dist/index.d.ts +1 -0
  101. package/lib/artifacts/dist/index.d.ts.map +1 -1
  102. package/lib/artifacts/dist/index.js +1 -0
  103. package/lib/artifacts/dist/index.js.map +1 -1
  104. package/lib/artifacts/dist/local-store.d.ts.map +1 -1
  105. package/lib/artifacts/dist/local-store.js +14 -415
  106. package/lib/artifacts/dist/local-store.js.map +1 -1
  107. package/lib/artifacts/dist/shared.d.ts +86 -0
  108. package/lib/artifacts/dist/shared.d.ts.map +1 -0
  109. package/lib/artifacts/dist/shared.js +437 -0
  110. package/lib/artifacts/dist/shared.js.map +1 -0
  111. package/lib/artifacts/package.json +1 -1
  112. package/lib/artifacts/src/files-store.ts +352 -0
  113. package/lib/artifacts/src/files.ts +7 -0
  114. package/lib/artifacts/src/index.ts +1 -0
  115. package/lib/artifacts/src/local-store.ts +18 -359
  116. package/lib/artifacts/src/shared.ts +413 -0
  117. package/lib/auth/dist/better-auth.d.ts +103 -0
  118. package/lib/auth/dist/better-auth.d.ts.map +1 -0
  119. package/lib/auth/dist/better-auth.js +113 -0
  120. package/lib/auth/dist/better-auth.js.map +1 -0
  121. package/lib/auth/dist/identity.d.ts +68 -0
  122. package/lib/auth/dist/identity.d.ts.map +1 -0
  123. package/lib/auth/dist/identity.js +123 -0
  124. package/lib/auth/dist/identity.js.map +1 -0
  125. package/lib/auth/dist/index.d.ts +7 -0
  126. package/lib/auth/dist/index.d.ts.map +1 -0
  127. package/lib/auth/dist/index.js +4 -0
  128. package/lib/auth/dist/index.js.map +1 -0
  129. package/lib/auth/dist/jwt.d.ts +65 -0
  130. package/lib/auth/dist/jwt.d.ts.map +1 -0
  131. package/lib/auth/dist/jwt.js +120 -0
  132. package/lib/auth/dist/jwt.js.map +1 -0
  133. package/lib/auth/dist/keys.d.ts +80 -0
  134. package/lib/auth/dist/keys.d.ts.map +1 -0
  135. package/lib/auth/dist/keys.js +252 -0
  136. package/lib/auth/dist/keys.js.map +1 -0
  137. package/lib/auth/dist/testing.d.ts +32 -0
  138. package/lib/auth/dist/testing.d.ts.map +1 -0
  139. package/lib/auth/dist/testing.js +61 -0
  140. package/lib/auth/dist/testing.js.map +1 -0
  141. package/lib/auth/package.json +5 -0
  142. package/lib/auth/src/better-auth.ts +151 -0
  143. package/lib/auth/src/identity.ts +142 -0
  144. package/lib/auth/src/index.ts +6 -0
  145. package/lib/auth/src/jwt.ts +126 -0
  146. package/lib/auth/src/keys.ts +238 -0
  147. package/lib/auth/src/testing.ts +74 -0
  148. package/lib/browser/dist/browsers.d.ts +141 -0
  149. package/lib/browser/dist/browsers.d.ts.map +1 -0
  150. package/lib/browser/dist/browsers.js +639 -0
  151. package/lib/browser/dist/browsers.js.map +1 -0
  152. package/lib/browser/dist/cdp.d.ts +67 -0
  153. package/lib/browser/dist/cdp.d.ts.map +1 -0
  154. package/lib/browser/dist/cdp.js +176 -0
  155. package/lib/browser/dist/cdp.js.map +1 -0
  156. package/lib/browser/dist/connect.d.ts +17 -0
  157. package/lib/browser/dist/connect.d.ts.map +1 -0
  158. package/lib/browser/dist/connect.js +28 -0
  159. package/lib/browser/dist/connect.js.map +1 -0
  160. package/lib/browser/dist/contracts.d.ts +70 -0
  161. package/lib/browser/dist/contracts.d.ts.map +1 -0
  162. package/lib/browser/dist/contracts.js +48 -0
  163. package/lib/browser/dist/contracts.js.map +1 -0
  164. package/lib/browser/dist/index.d.ts +14 -0
  165. package/lib/browser/dist/index.d.ts.map +1 -0
  166. package/lib/browser/dist/index.js +8 -0
  167. package/lib/browser/dist/index.js.map +1 -0
  168. package/lib/browser/dist/keys.d.ts +13 -0
  169. package/lib/browser/dist/keys.d.ts.map +1 -0
  170. package/lib/browser/dist/keys.js +37 -0
  171. package/lib/browser/dist/keys.js.map +1 -0
  172. package/lib/browser/dist/local/fixtures.d.ts +18 -0
  173. package/lib/browser/dist/local/fixtures.d.ts.map +1 -0
  174. package/lib/browser/dist/local/fixtures.js +40 -0
  175. package/lib/browser/dist/local/fixtures.js.map +1 -0
  176. package/lib/browser/dist/local/index.d.ts +23 -0
  177. package/lib/browser/dist/local/index.d.ts.map +1 -0
  178. package/lib/browser/dist/local/index.js +136 -0
  179. package/lib/browser/dist/local/index.js.map +1 -0
  180. package/lib/browser/dist/origins.d.ts +12 -0
  181. package/lib/browser/dist/origins.d.ts.map +1 -0
  182. package/lib/browser/dist/origins.js +47 -0
  183. package/lib/browser/dist/origins.js.map +1 -0
  184. package/lib/browser/dist/per-run.d.ts +31 -0
  185. package/lib/browser/dist/per-run.d.ts.map +1 -0
  186. package/lib/browser/dist/per-run.js +46 -0
  187. package/lib/browser/dist/per-run.js.map +1 -0
  188. package/lib/browser/dist/snapshot.d.ts +35 -0
  189. package/lib/browser/dist/snapshot.d.ts.map +1 -0
  190. package/lib/browser/dist/snapshot.js +74 -0
  191. package/lib/browser/dist/snapshot.js.map +1 -0
  192. package/lib/browser/dist/testing.d.ts +31 -0
  193. package/lib/browser/dist/testing.d.ts.map +1 -0
  194. package/lib/browser/dist/testing.js +145 -0
  195. package/lib/browser/dist/testing.js.map +1 -0
  196. package/lib/browser/dist/tools.d.ts +34 -0
  197. package/lib/browser/dist/tools.d.ts.map +1 -0
  198. package/lib/browser/dist/tools.js +119 -0
  199. package/lib/browser/dist/tools.js.map +1 -0
  200. package/lib/browser/package.json +5 -0
  201. package/lib/browser/src/browsers.ts +599 -0
  202. package/lib/browser/src/cdp.ts +161 -0
  203. package/lib/browser/src/connect.ts +40 -0
  204. package/lib/browser/src/contracts.ts +100 -0
  205. package/lib/browser/src/index.ts +13 -0
  206. package/lib/browser/src/keys.ts +39 -0
  207. package/lib/browser/src/local/fixtures.ts +41 -0
  208. package/lib/browser/src/local/index.ts +121 -0
  209. package/lib/browser/src/origins.ts +49 -0
  210. package/lib/browser/src/per-run.ts +54 -0
  211. package/lib/browser/src/snapshot.ts +73 -0
  212. package/lib/browser/src/testing.ts +155 -0
  213. package/lib/browser/src/tools.ts +156 -0
  214. package/lib/cli/dist/bin.js +52 -0
  215. package/lib/cli/dist/bin.js.map +1 -1
  216. package/lib/cli/dist/deploy-index.d.ts +4 -0
  217. package/lib/cli/dist/deploy-index.d.ts.map +1 -0
  218. package/lib/cli/dist/deploy-index.js +5 -0
  219. package/lib/cli/dist/deploy-index.js.map +1 -0
  220. package/lib/cli/dist/deploy-targets.d.ts +36 -0
  221. package/lib/cli/dist/deploy-targets.d.ts.map +1 -0
  222. package/lib/cli/dist/deploy-targets.js +276 -0
  223. package/lib/cli/dist/deploy-targets.js.map +1 -0
  224. package/lib/cli/dist/deploy.d.ts +161 -0
  225. package/lib/cli/dist/deploy.d.ts.map +1 -0
  226. package/lib/cli/dist/deploy.js +452 -0
  227. package/lib/cli/dist/deploy.js.map +1 -0
  228. package/lib/cli/dist/files.d.ts +26 -0
  229. package/lib/cli/dist/files.d.ts.map +1 -0
  230. package/lib/cli/dist/files.js +179 -0
  231. package/lib/cli/dist/files.js.map +1 -0
  232. package/lib/cli/dist/index.d.ts.map +1 -1
  233. package/lib/cli/dist/index.js +4 -174
  234. package/lib/cli/dist/index.js.map +1 -1
  235. package/lib/cli/dist/output.d.ts.map +1 -1
  236. package/lib/cli/dist/output.js +54 -0
  237. package/lib/cli/dist/output.js.map +1 -1
  238. package/lib/cli/package.json +1 -1
  239. package/lib/cli/src/bin.ts +35 -0
  240. package/lib/cli/src/deploy-index.ts +11 -0
  241. package/lib/cli/src/deploy-targets.ts +277 -0
  242. package/lib/cli/src/deploy.ts +419 -0
  243. package/lib/cli/src/files.ts +137 -0
  244. package/lib/cli/src/index.ts +4 -122
  245. package/lib/cli/src/output.ts +44 -0
  246. package/lib/client/package.json +1 -1
  247. package/lib/client-react/package.json +1 -1
  248. package/lib/code-mode/dist/index.d.ts.map +1 -1
  249. package/lib/code-mode/dist/index.js +3 -3
  250. package/lib/code-mode/dist/index.js.map +1 -1
  251. package/lib/code-mode/package.json +1 -1
  252. package/lib/code-mode/src/index.ts +3 -3
  253. package/lib/code-mode-workflows/dist/index.d.ts.map +1 -1
  254. package/lib/code-mode-workflows/dist/index.js +2 -2
  255. package/lib/code-mode-workflows/dist/index.js.map +1 -1
  256. package/lib/code-mode-workflows/package.json +1 -1
  257. package/lib/code-mode-workflows/src/index.ts +2 -2
  258. package/lib/context/package.json +1 -1
  259. package/lib/core/dist/bytes.d.ts +13 -0
  260. package/lib/core/dist/bytes.d.ts.map +1 -0
  261. package/lib/core/dist/bytes.js +128 -0
  262. package/lib/core/dist/bytes.js.map +1 -0
  263. package/lib/core/dist/contracts.d.ts +4 -0
  264. package/lib/core/dist/contracts.d.ts.map +1 -1
  265. package/lib/core/dist/contracts.js.map +1 -1
  266. package/lib/core/dist/host.d.ts +2 -0
  267. package/lib/core/dist/host.d.ts.map +1 -1
  268. package/lib/core/dist/host.js +2 -0
  269. package/lib/core/dist/host.js.map +1 -1
  270. package/lib/core/dist/pricing.d.ts +20 -0
  271. package/lib/core/dist/pricing.d.ts.map +1 -0
  272. package/lib/core/dist/pricing.js +10 -0
  273. package/lib/core/dist/pricing.js.map +1 -0
  274. package/lib/core/package.json +1 -1
  275. package/lib/core/src/bytes.ts +101 -0
  276. package/lib/core/src/contracts.ts +7 -1
  277. package/lib/core/src/host.ts +2 -0
  278. package/lib/core/src/pricing.ts +24 -0
  279. package/lib/exporter-otlp/dist/contracts.d.ts +25 -3
  280. package/lib/exporter-otlp/dist/contracts.d.ts.map +1 -1
  281. package/lib/exporter-otlp/dist/contracts.js.map +1 -1
  282. package/lib/exporter-otlp/dist/index.d.ts +2 -2
  283. package/lib/exporter-otlp/dist/index.d.ts.map +1 -1
  284. package/lib/exporter-otlp/dist/index.js +1 -1
  285. package/lib/exporter-otlp/dist/index.js.map +1 -1
  286. package/lib/exporter-otlp/dist/opentelemetry.d.ts +53 -0
  287. package/lib/exporter-otlp/dist/opentelemetry.d.ts.map +1 -0
  288. package/lib/exporter-otlp/dist/opentelemetry.js +209 -0
  289. package/lib/exporter-otlp/dist/opentelemetry.js.map +1 -0
  290. package/lib/exporter-otlp/dist/otlp-http-json.d.ts.map +1 -1
  291. package/lib/exporter-otlp/dist/otlp-http-json.js +11 -4
  292. package/lib/exporter-otlp/dist/otlp-http-json.js.map +1 -1
  293. package/lib/exporter-otlp/dist/protobuf.d.ts +9 -0
  294. package/lib/exporter-otlp/dist/protobuf.d.ts.map +1 -0
  295. package/lib/exporter-otlp/dist/protobuf.js +188 -0
  296. package/lib/exporter-otlp/dist/protobuf.js.map +1 -0
  297. package/lib/exporter-otlp/dist/run-traces.d.ts +3 -1
  298. package/lib/exporter-otlp/dist/run-traces.d.ts.map +1 -1
  299. package/lib/exporter-otlp/dist/run-traces.js +31 -4
  300. package/lib/exporter-otlp/dist/run-traces.js.map +1 -1
  301. package/lib/exporter-otlp/dist/signals.d.ts +8 -1
  302. package/lib/exporter-otlp/dist/signals.d.ts.map +1 -1
  303. package/lib/exporter-otlp/dist/signals.js +93 -26
  304. package/lib/exporter-otlp/dist/signals.js.map +1 -1
  305. package/lib/exporter-otlp/package.json +1 -1
  306. package/lib/exporter-otlp/src/contracts.ts +30 -3
  307. package/lib/exporter-otlp/src/index.ts +4 -1
  308. package/lib/exporter-otlp/src/opentelemetry.ts +157 -0
  309. package/lib/exporter-otlp/src/otlp-http-json.ts +10 -3
  310. package/lib/exporter-otlp/src/protobuf.ts +123 -0
  311. package/lib/exporter-otlp/src/run-traces.ts +24 -5
  312. package/lib/exporter-otlp/src/signals.ts +86 -25
  313. package/lib/files/dist/contracts.d.ts +155 -0
  314. package/lib/files/dist/contracts.d.ts.map +1 -0
  315. package/lib/files/dist/contracts.js +41 -0
  316. package/lib/files/dist/contracts.js.map +1 -0
  317. package/lib/files/dist/index.d.ts +7 -0
  318. package/lib/files/dist/index.d.ts.map +1 -0
  319. package/lib/files/dist/index.js +7 -0
  320. package/lib/files/dist/index.js.map +1 -0
  321. package/lib/files/dist/memory.d.ts +9 -0
  322. package/lib/files/dist/memory.d.ts.map +1 -0
  323. package/lib/files/dist/memory.js +70 -0
  324. package/lib/files/dist/memory.js.map +1 -0
  325. package/lib/files/dist/s3.d.ts +34 -0
  326. package/lib/files/dist/s3.d.ts.map +1 -0
  327. package/lib/files/dist/s3.js +232 -0
  328. package/lib/files/dist/s3.js.map +1 -0
  329. package/lib/files/dist/sigv4.d.ts +31 -0
  330. package/lib/files/dist/sigv4.d.ts.map +1 -0
  331. package/lib/files/dist/sigv4.js +47 -0
  332. package/lib/files/dist/sigv4.js.map +1 -0
  333. package/lib/files/dist/store.d.ts +19 -0
  334. package/lib/files/dist/store.d.ts.map +1 -0
  335. package/lib/files/dist/store.js +257 -0
  336. package/lib/files/dist/store.js.map +1 -0
  337. package/lib/files/dist/tools.d.ts +21 -0
  338. package/lib/files/dist/tools.d.ts.map +1 -0
  339. package/lib/files/dist/tools.js +155 -0
  340. package/lib/files/dist/tools.js.map +1 -0
  341. package/lib/files/dist/transport.d.ts +9 -0
  342. package/lib/files/dist/transport.d.ts.map +1 -0
  343. package/lib/files/dist/transport.js +53 -0
  344. package/lib/files/dist/transport.js.map +1 -0
  345. package/lib/files/package.json +5 -0
  346. package/lib/files/src/contracts.ts +174 -0
  347. package/lib/files/src/index.ts +6 -0
  348. package/lib/files/src/memory.ts +65 -0
  349. package/lib/files/src/s3.ts +196 -0
  350. package/lib/files/src/sigv4.ts +65 -0
  351. package/lib/files/src/store.ts +216 -0
  352. package/lib/files/src/tools.ts +140 -0
  353. package/lib/files/src/transport.ts +33 -0
  354. package/lib/guardrails/package.json +1 -1
  355. package/lib/helpers/package.json +1 -1
  356. package/lib/keys/dist/conformance.d.ts +14 -0
  357. package/lib/keys/dist/conformance.d.ts.map +1 -0
  358. package/lib/keys/dist/conformance.js +141 -0
  359. package/lib/keys/dist/conformance.js.map +1 -0
  360. package/lib/keys/dist/format.d.ts +19 -0
  361. package/lib/keys/dist/format.d.ts.map +1 -0
  362. package/lib/keys/dist/format.js +62 -0
  363. package/lib/keys/dist/format.js.map +1 -0
  364. package/lib/keys/dist/index.d.ts +6 -0
  365. package/lib/keys/dist/index.d.ts.map +1 -0
  366. package/lib/keys/dist/index.js +4 -0
  367. package/lib/keys/dist/index.js.map +1 -0
  368. package/lib/keys/dist/manager.d.ts +142 -0
  369. package/lib/keys/dist/manager.d.ts.map +1 -0
  370. package/lib/keys/dist/manager.js +430 -0
  371. package/lib/keys/dist/manager.js.map +1 -0
  372. package/lib/keys/dist/testing.d.ts +11 -0
  373. package/lib/keys/dist/testing.d.ts.map +1 -0
  374. package/lib/keys/dist/testing.js +68 -0
  375. package/lib/keys/dist/testing.js.map +1 -0
  376. package/lib/keys/dist/verifier.d.ts +40 -0
  377. package/lib/keys/dist/verifier.d.ts.map +1 -0
  378. package/lib/keys/dist/verifier.js +28 -0
  379. package/lib/keys/dist/verifier.js.map +1 -0
  380. package/lib/keys/package.json +5 -0
  381. package/lib/keys/src/conformance.ts +141 -0
  382. package/lib/keys/src/format.ts +63 -0
  383. package/lib/keys/src/index.ts +5 -0
  384. package/lib/keys/src/manager.ts +450 -0
  385. package/lib/keys/src/testing.ts +56 -0
  386. package/lib/keys/src/verifier.ts +49 -0
  387. package/lib/memory/dist/index.js +3 -3
  388. package/lib/memory/dist/index.js.map +1 -1
  389. package/lib/memory/dist/native.js +4 -4
  390. package/lib/memory/dist/native.js.map +1 -1
  391. package/lib/memory/dist/validation.d.ts.map +1 -1
  392. package/lib/memory/dist/validation.js +3 -3
  393. package/lib/memory/dist/validation.js.map +1 -1
  394. package/lib/memory/dist/vectors.d.ts.map +1 -1
  395. package/lib/memory/dist/vectors.js +16 -8
  396. package/lib/memory/dist/vectors.js.map +1 -1
  397. package/lib/memory/package.json +1 -1
  398. package/lib/memory/src/index.ts +3 -3
  399. package/lib/memory/src/native.ts +4 -4
  400. package/lib/memory/src/validation.ts +3 -3
  401. package/lib/memory/src/vectors.ts +10 -8
  402. package/lib/memory-remote/dist/index.d.ts.map +1 -1
  403. package/lib/memory-remote/dist/index.js +4 -5
  404. package/lib/memory-remote/dist/index.js.map +1 -1
  405. package/lib/memory-remote/package.json +1 -1
  406. package/lib/memory-remote/src/index.ts +4 -5
  407. package/lib/observability/dist/validation.d.ts.map +1 -1
  408. package/lib/observability/dist/validation.js +10 -3
  409. package/lib/observability/dist/validation.js.map +1 -1
  410. package/lib/observability/package.json +1 -1
  411. package/lib/observability/src/validation.ts +6 -3
  412. package/lib/provider-anthropic/dist/index.d.ts.map +1 -1
  413. package/lib/provider-anthropic/dist/index.js +4 -1
  414. package/lib/provider-anthropic/dist/index.js.map +1 -1
  415. package/lib/provider-anthropic/package.json +1 -1
  416. package/lib/provider-anthropic/src/index.ts +3 -1
  417. package/lib/provider-openai/dist/index.js +3 -3
  418. package/lib/provider-openai/dist/index.js.map +1 -1
  419. package/lib/provider-openai/package.json +1 -1
  420. package/lib/provider-openai/src/index.ts +3 -3
  421. package/lib/runtime/dist/agent.d.ts +2 -0
  422. package/lib/runtime/dist/agent.d.ts.map +1 -1
  423. package/lib/runtime/dist/agent.js +6 -1
  424. package/lib/runtime/dist/agent.js.map +1 -1
  425. package/lib/runtime/dist/index.d.ts +1 -0
  426. package/lib/runtime/dist/index.d.ts.map +1 -1
  427. package/lib/runtime/dist/index.js +1 -0
  428. package/lib/runtime/dist/index.js.map +1 -1
  429. package/lib/runtime/dist/models.d.ts +110 -0
  430. package/lib/runtime/dist/models.d.ts.map +1 -0
  431. package/lib/runtime/dist/models.js +246 -0
  432. package/lib/runtime/dist/models.js.map +1 -0
  433. package/lib/runtime/dist/response.d.ts +5 -0
  434. package/lib/runtime/dist/response.d.ts.map +1 -1
  435. package/lib/runtime/dist/response.js +34 -4
  436. package/lib/runtime/dist/response.js.map +1 -1
  437. package/lib/runtime/dist/router.d.ts +4 -0
  438. package/lib/runtime/dist/router.d.ts.map +1 -1
  439. package/lib/runtime/dist/router.js +9 -9
  440. package/lib/runtime/dist/router.js.map +1 -1
  441. package/lib/runtime/dist/runtime.d.ts +0 -1
  442. package/lib/runtime/dist/runtime.d.ts.map +1 -1
  443. package/lib/runtime/dist/runtime.js +10 -3
  444. package/lib/runtime/dist/runtime.js.map +1 -1
  445. package/lib/runtime/package.json +1 -1
  446. package/lib/runtime/src/agent.ts +6 -1
  447. package/lib/runtime/src/index.ts +1 -0
  448. package/lib/runtime/src/models.ts +310 -0
  449. package/lib/runtime/src/response.ts +28 -4
  450. package/lib/runtime/src/router.ts +9 -9
  451. package/lib/runtime/src/runtime.ts +10 -3
  452. package/lib/sandbox/dist/command-backend.d.ts +29 -0
  453. package/lib/sandbox/dist/command-backend.d.ts.map +1 -0
  454. package/lib/sandbox/dist/command-backend.js +208 -0
  455. package/lib/sandbox/dist/command-backend.js.map +1 -0
  456. package/lib/sandbox/dist/contracts.d.ts +173 -0
  457. package/lib/sandbox/dist/contracts.d.ts.map +1 -0
  458. package/lib/sandbox/dist/contracts.js +48 -0
  459. package/lib/sandbox/dist/contracts.js.map +1 -0
  460. package/lib/sandbox/dist/docker/api.d.ts +12 -0
  461. package/lib/sandbox/dist/docker/api.d.ts.map +1 -0
  462. package/lib/sandbox/dist/docker/api.js +228 -0
  463. package/lib/sandbox/dist/docker/api.js.map +1 -0
  464. package/lib/sandbox/dist/docker/cli.d.ts +4 -0
  465. package/lib/sandbox/dist/docker/cli.d.ts.map +1 -0
  466. package/lib/sandbox/dist/docker/cli.js +128 -0
  467. package/lib/sandbox/dist/docker/cli.js.map +1 -0
  468. package/lib/sandbox/dist/docker/engine.d.ts +58 -0
  469. package/lib/sandbox/dist/docker/engine.d.ts.map +1 -0
  470. package/lib/sandbox/dist/docker/engine.js +30 -0
  471. package/lib/sandbox/dist/docker/engine.js.map +1 -0
  472. package/lib/sandbox/dist/docker/index.d.ts +39 -0
  473. package/lib/sandbox/dist/docker/index.d.ts.map +1 -0
  474. package/lib/sandbox/dist/docker/index.js +187 -0
  475. package/lib/sandbox/dist/docker/index.js.map +1 -0
  476. package/lib/sandbox/dist/docker/scripts.d.ts +15 -0
  477. package/lib/sandbox/dist/docker/scripts.d.ts.map +1 -0
  478. package/lib/sandbox/dist/docker/scripts.js +32 -0
  479. package/lib/sandbox/dist/docker/scripts.js.map +1 -0
  480. package/lib/sandbox/dist/index.d.ts +7 -0
  481. package/lib/sandbox/dist/index.d.ts.map +1 -0
  482. package/lib/sandbox/dist/index.js +7 -0
  483. package/lib/sandbox/dist/index.js.map +1 -0
  484. package/lib/sandbox/dist/per-run.d.ts +28 -0
  485. package/lib/sandbox/dist/per-run.d.ts.map +1 -0
  486. package/lib/sandbox/dist/per-run.js +46 -0
  487. package/lib/sandbox/dist/per-run.js.map +1 -0
  488. package/lib/sandbox/dist/sandboxes.d.ts +166 -0
  489. package/lib/sandbox/dist/sandboxes.d.ts.map +1 -0
  490. package/lib/sandbox/dist/sandboxes.js +538 -0
  491. package/lib/sandbox/dist/sandboxes.js.map +1 -0
  492. package/lib/sandbox/dist/scripts.d.ts +25 -0
  493. package/lib/sandbox/dist/scripts.d.ts.map +1 -0
  494. package/lib/sandbox/dist/scripts.js +72 -0
  495. package/lib/sandbox/dist/scripts.js.map +1 -0
  496. package/lib/sandbox/dist/testing.d.ts +53 -0
  497. package/lib/sandbox/dist/testing.d.ts.map +1 -0
  498. package/lib/sandbox/dist/testing.js +148 -0
  499. package/lib/sandbox/dist/testing.js.map +1 -0
  500. package/lib/sandbox/dist/tools.d.ts +41 -0
  501. package/lib/sandbox/dist/tools.d.ts.map +1 -0
  502. package/lib/sandbox/dist/tools.js +280 -0
  503. package/lib/sandbox/dist/tools.js.map +1 -0
  504. package/lib/sandbox/package.json +5 -0
  505. package/lib/sandbox/src/command-backend.ts +194 -0
  506. package/lib/sandbox/src/contracts.ts +168 -0
  507. package/lib/sandbox/src/docker/api.ts +172 -0
  508. package/lib/sandbox/src/docker/cli.ts +98 -0
  509. package/lib/sandbox/src/docker/engine.ts +69 -0
  510. package/lib/sandbox/src/docker/index.ts +192 -0
  511. package/lib/sandbox/src/docker/scripts.ts +36 -0
  512. package/lib/sandbox/src/index.ts +9 -0
  513. package/lib/sandbox/src/per-run.ts +54 -0
  514. package/lib/sandbox/src/sandboxes.ts +521 -0
  515. package/lib/sandbox/src/scripts.ts +76 -0
  516. package/lib/sandbox/src/testing.ts +166 -0
  517. package/lib/sandbox/src/tools.ts +284 -0
  518. package/lib/sdk/package.json +1 -1
  519. package/lib/server/package.json +1 -1
  520. package/lib/server-node/package.json +1 -1
  521. package/lib/skills/dist/index.d.ts.map +1 -1
  522. package/lib/skills/dist/index.js +2 -2
  523. package/lib/skills/dist/index.js.map +1 -1
  524. package/lib/skills/package.json +1 -1
  525. package/lib/skills/src/index.ts +2 -2
  526. package/lib/storage/package.json +1 -1
  527. package/lib/storage-contracts/dist/schema-digest.d.ts +3 -5
  528. package/lib/storage-contracts/dist/schema-digest.d.ts.map +1 -1
  529. package/lib/storage-contracts/dist/schema-digest.js +3 -58
  530. package/lib/storage-contracts/dist/schema-digest.js.map +1 -1
  531. package/lib/storage-contracts/package.json +1 -1
  532. package/lib/storage-contracts/src/schema-digest.ts +3 -40
  533. package/lib/storage-postgres/dist/driver.d.ts +18 -0
  534. package/lib/storage-postgres/dist/driver.d.ts.map +1 -0
  535. package/lib/storage-postgres/dist/driver.js +22 -0
  536. package/lib/storage-postgres/dist/driver.js.map +1 -0
  537. package/lib/storage-postgres/dist/postgres.d.ts +5 -2
  538. package/lib/storage-postgres/dist/postgres.d.ts.map +1 -1
  539. package/lib/storage-postgres/dist/postgres.js +8 -223
  540. package/lib/storage-postgres/dist/postgres.js.map +1 -1
  541. package/lib/storage-postgres/dist/store.d.ts +25 -0
  542. package/lib/storage-postgres/dist/store.d.ts.map +1 -0
  543. package/lib/storage-postgres/dist/store.js +237 -0
  544. package/lib/storage-postgres/dist/store.js.map +1 -0
  545. package/lib/storage-postgres/package.json +1 -1
  546. package/lib/storage-postgres/src/driver.ts +35 -0
  547. package/lib/storage-postgres/src/postgres.ts +10 -211
  548. package/lib/storage-postgres/src/store.ts +242 -0
  549. package/lib/storage-sql/dist/aggregate-session.d.ts.map +1 -1
  550. package/lib/storage-sql/dist/aggregate-session.js +13 -8
  551. package/lib/storage-sql/dist/aggregate-session.js.map +1 -1
  552. package/lib/storage-sql/dist/dialect.d.ts +29 -0
  553. package/lib/storage-sql/dist/dialect.d.ts.map +1 -0
  554. package/lib/storage-sql/dist/dialect.js +63 -0
  555. package/lib/storage-sql/dist/dialect.js.map +1 -0
  556. package/lib/storage-sql/dist/document/budget-rows.d.ts +5 -0
  557. package/lib/storage-sql/dist/document/budget-rows.d.ts.map +1 -0
  558. package/lib/storage-sql/dist/document/budget-rows.js +36 -0
  559. package/lib/storage-sql/dist/document/budget-rows.js.map +1 -0
  560. package/lib/storage-sql/dist/document/execution-wait-rows.d.ts +5 -0
  561. package/lib/storage-sql/dist/document/execution-wait-rows.d.ts.map +1 -0
  562. package/lib/storage-sql/dist/document/execution-wait-rows.js +66 -0
  563. package/lib/storage-sql/dist/document/execution-wait-rows.js.map +1 -0
  564. package/lib/storage-sql/dist/document/keys.d.ts +26 -0
  565. package/lib/storage-sql/dist/document/keys.d.ts.map +1 -0
  566. package/lib/storage-sql/dist/document/keys.js +74 -0
  567. package/lib/storage-sql/dist/document/keys.js.map +1 -0
  568. package/lib/storage-sql/dist/document/layout.d.ts +66 -0
  569. package/lib/storage-sql/dist/document/layout.d.ts.map +1 -0
  570. package/lib/storage-sql/dist/document/layout.js +43 -0
  571. package/lib/storage-sql/dist/document/layout.js.map +1 -0
  572. package/lib/storage-sql/dist/document/memory-backend.d.ts +11 -0
  573. package/lib/storage-sql/dist/document/memory-backend.d.ts.map +1 -0
  574. package/lib/storage-sql/dist/document/memory-backend.js +48 -0
  575. package/lib/storage-sql/dist/document/memory-backend.js.map +1 -0
  576. package/lib/storage-sql/dist/document/memory.d.ts +5 -0
  577. package/lib/storage-sql/dist/document/memory.d.ts.map +1 -0
  578. package/lib/storage-sql/dist/document/memory.js +372 -0
  579. package/lib/storage-sql/dist/document/memory.js.map +1 -0
  580. package/lib/storage-sql/dist/document/scheduled-rows.d.ts +31 -0
  581. package/lib/storage-sql/dist/document/scheduled-rows.d.ts.map +1 -0
  582. package/lib/storage-sql/dist/document/scheduled-rows.js +155 -0
  583. package/lib/storage-sql/dist/document/scheduled-rows.js.map +1 -0
  584. package/lib/storage-sql/dist/document/scheduler-rows.d.ts +12 -0
  585. package/lib/storage-sql/dist/document/scheduler-rows.d.ts.map +1 -0
  586. package/lib/storage-sql/dist/document/scheduler-rows.js +227 -0
  587. package/lib/storage-sql/dist/document/scheduler-rows.js.map +1 -0
  588. package/lib/storage-sql/dist/document/session.d.ts +119 -0
  589. package/lib/storage-sql/dist/document/session.d.ts.map +1 -0
  590. package/lib/storage-sql/dist/document/session.js +203 -0
  591. package/lib/storage-sql/dist/document/session.js.map +1 -0
  592. package/lib/storage-sql/dist/document/store.d.ts +17 -0
  593. package/lib/storage-sql/dist/document/store.d.ts.map +1 -0
  594. package/lib/storage-sql/dist/document/store.js +133 -0
  595. package/lib/storage-sql/dist/document/store.js.map +1 -0
  596. package/lib/storage-sql/dist/document/tree-rows.d.ts +5 -0
  597. package/lib/storage-sql/dist/document/tree-rows.d.ts.map +1 -0
  598. package/lib/storage-sql/dist/document/tree-rows.js +97 -0
  599. package/lib/storage-sql/dist/document/tree-rows.js.map +1 -0
  600. package/lib/storage-sql/dist/durable-budget-database.d.ts +7 -6
  601. package/lib/storage-sql/dist/durable-budget-database.d.ts.map +1 -1
  602. package/lib/storage-sql/dist/durable-budget-database.js +34 -40
  603. package/lib/storage-sql/dist/durable-budget-database.js.map +1 -1
  604. package/lib/storage-sql/dist/durable-budget-persistence.d.ts +53 -0
  605. package/lib/storage-sql/dist/durable-budget-persistence.d.ts.map +1 -0
  606. package/lib/storage-sql/dist/durable-budget-persistence.js +43 -0
  607. package/lib/storage-sql/dist/durable-budget-persistence.js.map +1 -0
  608. package/lib/storage-sql/dist/execution-completions.d.ts +19 -1
  609. package/lib/storage-sql/dist/execution-completions.d.ts.map +1 -1
  610. package/lib/storage-sql/dist/execution-completions.js +21 -9
  611. package/lib/storage-sql/dist/execution-completions.js.map +1 -1
  612. package/lib/storage-sql/dist/execution-wait-database.d.ts +3 -3
  613. package/lib/storage-sql/dist/execution-wait-database.d.ts.map +1 -1
  614. package/lib/storage-sql/dist/execution-wait-database.js +36 -60
  615. package/lib/storage-sql/dist/execution-wait-database.js.map +1 -1
  616. package/lib/storage-sql/dist/execution-wait-persistence.d.ts +71 -0
  617. package/lib/storage-sql/dist/execution-wait-persistence.d.ts.map +1 -0
  618. package/lib/storage-sql/dist/execution-wait-persistence.js +71 -0
  619. package/lib/storage-sql/dist/execution-wait-persistence.js.map +1 -0
  620. package/lib/storage-sql/dist/host.d.ts +22 -0
  621. package/lib/storage-sql/dist/host.d.ts.map +1 -1
  622. package/lib/storage-sql/dist/host.js +9 -0
  623. package/lib/storage-sql/dist/host.js.map +1 -1
  624. package/lib/storage-sql/dist/memory-database.d.ts.map +1 -1
  625. package/lib/storage-sql/dist/memory-database.js +7 -8
  626. package/lib/storage-sql/dist/memory-database.js.map +1 -1
  627. package/lib/storage-sql/dist/scheduled-database.d.ts +3 -3
  628. package/lib/storage-sql/dist/scheduled-database.d.ts.map +1 -1
  629. package/lib/storage-sql/dist/scheduled-database.js +50 -77
  630. package/lib/storage-sql/dist/scheduled-database.js.map +1 -1
  631. package/lib/storage-sql/dist/scheduled-persistence.d.ts +81 -0
  632. package/lib/storage-sql/dist/scheduled-persistence.d.ts.map +1 -0
  633. package/lib/storage-sql/dist/scheduled-persistence.js +83 -0
  634. package/lib/storage-sql/dist/scheduled-persistence.js.map +1 -0
  635. package/lib/storage-sql/dist/scheduler-database.d.ts +17 -8
  636. package/lib/storage-sql/dist/scheduler-database.d.ts.map +1 -1
  637. package/lib/storage-sql/dist/scheduler-database.js +70 -113
  638. package/lib/storage-sql/dist/scheduler-database.js.map +1 -1
  639. package/lib/storage-sql/dist/scheduler-persistence.d.ts +87 -0
  640. package/lib/storage-sql/dist/scheduler-persistence.d.ts.map +1 -0
  641. package/lib/storage-sql/dist/scheduler-persistence.js +103 -0
  642. package/lib/storage-sql/dist/scheduler-persistence.js.map +1 -0
  643. package/lib/storage-sql/dist/scheduler-validation.d.ts.map +1 -1
  644. package/lib/storage-sql/dist/scheduler-validation.js +2 -2
  645. package/lib/storage-sql/dist/scheduler-validation.js.map +1 -1
  646. package/lib/storage-sql/dist/validation.d.ts.map +1 -1
  647. package/lib/storage-sql/dist/validation.js +4 -4
  648. package/lib/storage-sql/dist/validation.js.map +1 -1
  649. package/lib/storage-sql/dist/workflow-graph-discovery-index.d.ts.map +1 -1
  650. package/lib/storage-sql/dist/workflow-graph-discovery-index.js +16 -0
  651. package/lib/storage-sql/dist/workflow-graph-discovery-index.js.map +1 -1
  652. package/lib/storage-sql/dist/workflow-tree-database.d.ts +4 -4
  653. package/lib/storage-sql/dist/workflow-tree-database.d.ts.map +1 -1
  654. package/lib/storage-sql/dist/workflow-tree-database.js +216 -235
  655. package/lib/storage-sql/dist/workflow-tree-database.js.map +1 -1
  656. package/lib/storage-sql/dist/workflow-tree-persistence.d.ts +69 -0
  657. package/lib/storage-sql/dist/workflow-tree-persistence.d.ts.map +1 -0
  658. package/lib/storage-sql/dist/workflow-tree-persistence.js +77 -0
  659. package/lib/storage-sql/dist/workflow-tree-persistence.js.map +1 -0
  660. package/lib/storage-sql/dist/workflow-tree-validation.d.ts.map +1 -1
  661. package/lib/storage-sql/dist/workflow-tree-validation.js +2 -2
  662. package/lib/storage-sql/dist/workflow-tree-validation.js.map +1 -1
  663. package/lib/storage-sql/package.json +1 -1
  664. package/lib/storage-sql/src/aggregate-session.ts +15 -9
  665. package/lib/storage-sql/src/dialect.ts +63 -0
  666. package/lib/storage-sql/src/document/budget-rows.ts +35 -0
  667. package/lib/storage-sql/src/document/execution-wait-rows.ts +61 -0
  668. package/lib/storage-sql/src/document/keys.ts +63 -0
  669. package/lib/storage-sql/src/document/layout.ts +44 -0
  670. package/lib/storage-sql/src/document/memory-backend.ts +42 -0
  671. package/lib/storage-sql/src/document/memory.ts +294 -0
  672. package/lib/storage-sql/src/document/scheduled-rows.ts +138 -0
  673. package/lib/storage-sql/src/document/scheduler-rows.ts +188 -0
  674. package/lib/storage-sql/src/document/session.ts +204 -0
  675. package/lib/storage-sql/src/document/store.ts +131 -0
  676. package/lib/storage-sql/src/document/tree-rows.ts +88 -0
  677. package/lib/storage-sql/src/durable-budget-database.ts +36 -52
  678. package/lib/storage-sql/src/durable-budget-persistence.ts +82 -0
  679. package/lib/storage-sql/src/execution-completions.ts +28 -11
  680. package/lib/storage-sql/src/execution-wait-database.ts +47 -73
  681. package/lib/storage-sql/src/execution-wait-persistence.ts +114 -0
  682. package/lib/storage-sql/src/host.ts +22 -0
  683. package/lib/storage-sql/src/memory-database.ts +11 -8
  684. package/lib/storage-sql/src/scheduled-database.ts +67 -100
  685. package/lib/storage-sql/src/scheduled-persistence.ts +146 -0
  686. package/lib/storage-sql/src/scheduler-database.ts +79 -122
  687. package/lib/storage-sql/src/scheduler-persistence.ts +157 -0
  688. package/lib/storage-sql/src/scheduler-validation.ts +2 -2
  689. package/lib/storage-sql/src/validation.ts +4 -4
  690. package/lib/storage-sql/src/workflow-graph-discovery-index.ts +15 -0
  691. package/lib/storage-sql/src/workflow-tree-database.ts +118 -132
  692. package/lib/storage-sql/src/workflow-tree-persistence.ts +129 -0
  693. package/lib/storage-sql/src/workflow-tree-validation.ts +2 -2
  694. package/lib/storage-sqlite/package.json +1 -1
  695. package/lib/terminal/package.json +1 -1
  696. package/lib/testing/dist/files-conformance.d.ts +21 -0
  697. package/lib/testing/dist/files-conformance.d.ts.map +1 -0
  698. package/lib/testing/dist/files-conformance.js +155 -0
  699. package/lib/testing/dist/files-conformance.js.map +1 -0
  700. package/lib/testing/dist/index.d.ts +3 -0
  701. package/lib/testing/dist/index.d.ts.map +1 -1
  702. package/lib/testing/dist/index.js +3 -0
  703. package/lib/testing/dist/index.js.map +1 -1
  704. package/lib/testing/dist/model-conformance.d.ts +88 -0
  705. package/lib/testing/dist/model-conformance.d.ts.map +1 -0
  706. package/lib/testing/dist/model-conformance.js +177 -0
  707. package/lib/testing/dist/model-conformance.js.map +1 -0
  708. package/lib/testing/dist/voice-conformance.d.ts +61 -0
  709. package/lib/testing/dist/voice-conformance.d.ts.map +1 -0
  710. package/lib/testing/dist/voice-conformance.js +128 -0
  711. package/lib/testing/dist/voice-conformance.js.map +1 -0
  712. package/lib/testing/package.json +1 -1
  713. package/lib/testing/src/files-conformance.ts +153 -0
  714. package/lib/testing/src/index.ts +3 -0
  715. package/lib/testing/src/model-conformance.ts +217 -0
  716. package/lib/testing/src/voice-conformance.ts +139 -0
  717. package/lib/tools/package.json +1 -1
  718. package/lib/voice/dist/audio.d.ts +10 -0
  719. package/lib/voice/dist/audio.d.ts.map +1 -0
  720. package/lib/voice/dist/audio.js +44 -0
  721. package/lib/voice/dist/audio.js.map +1 -0
  722. package/lib/voice/dist/contracts.d.ts +140 -0
  723. package/lib/voice/dist/contracts.d.ts.map +1 -0
  724. package/lib/voice/dist/contracts.js +58 -0
  725. package/lib/voice/dist/contracts.js.map +1 -0
  726. package/lib/voice/dist/index.d.ts +6 -0
  727. package/lib/voice/dist/index.d.ts.map +1 -0
  728. package/lib/voice/dist/index.js +6 -0
  729. package/lib/voice/dist/index.js.map +1 -0
  730. package/lib/voice/dist/registry.d.ts +53 -0
  731. package/lib/voice/dist/registry.d.ts.map +1 -0
  732. package/lib/voice/dist/registry.js +218 -0
  733. package/lib/voice/dist/registry.js.map +1 -0
  734. package/lib/voice/dist/tools.d.ts +29 -0
  735. package/lib/voice/dist/tools.d.ts.map +1 -0
  736. package/lib/voice/dist/tools.js +92 -0
  737. package/lib/voice/dist/tools.js.map +1 -0
  738. package/lib/voice/dist/transport.d.ts +24 -0
  739. package/lib/voice/dist/transport.d.ts.map +1 -0
  740. package/lib/voice/dist/transport.js +90 -0
  741. package/lib/voice/dist/transport.js.map +1 -0
  742. package/lib/voice/package.json +5 -0
  743. package/lib/voice/src/audio.ts +38 -0
  744. package/lib/voice/src/contracts.ts +167 -0
  745. package/lib/voice/src/index.ts +5 -0
  746. package/lib/voice/src/registry.ts +215 -0
  747. package/lib/voice/src/tools.ts +91 -0
  748. package/lib/voice/src/transport.ts +73 -0
  749. package/lib/workflows/dist/definition.d.ts.map +1 -1
  750. package/lib/workflows/dist/definition.js +2 -2
  751. package/lib/workflows/dist/definition.js.map +1 -1
  752. package/lib/workflows/dist/operator-transports.d.ts.map +1 -1
  753. package/lib/workflows/dist/operator-transports.js +2 -1
  754. package/lib/workflows/dist/operator-transports.js.map +1 -1
  755. package/lib/workflows/package.json +1 -1
  756. package/lib/workflows/src/definition.ts +2 -2
  757. package/lib/workflows/src/operator-transports.ts +2 -1
  758. package/lib/workstream/package.json +1 -1
  759. package/llms-full.txt +2069 -76
  760. package/llms.txt +11 -2
  761. package/memory/index.d.ts +1 -0
  762. package/memory/index.js +1 -0
  763. package/memory-remote/index.d.ts +1 -0
  764. package/memory-remote/index.js +1 -0
  765. package/observability/index.d.ts +1 -0
  766. package/observability/index.js +1 -0
  767. package/package.json +166 -54
  768. package/provider-anthropic/index.d.ts +1 -0
  769. package/provider-anthropic/index.js +1 -0
  770. package/provider-openai/index.d.ts +1 -0
  771. package/provider-openai/index.js +1 -0
  772. package/runtime/index.d.ts +1 -0
  773. package/runtime/index.js +1 -0
  774. package/sandbox/docker/index.d.ts +1 -0
  775. package/sandbox/docker/index.js +1 -0
  776. package/sandbox/index.d.ts +1 -0
  777. package/sandbox/index.js +1 -0
  778. package/sandbox/testing/index.d.ts +1 -0
  779. package/sandbox/testing/index.js +1 -0
  780. package/sdk/index.d.ts +1 -0
  781. package/sdk/index.js +1 -0
  782. package/server/index.d.ts +1 -0
  783. package/server/index.js +1 -0
  784. package/server-node/index.d.ts +1 -0
  785. package/server-node/index.js +1 -0
  786. package/skills/index.d.ts +1 -0
  787. package/skills/index.js +1 -0
  788. package/storage/index.d.ts +1 -0
  789. package/storage/index.js +1 -0
  790. package/storage-contracts/index.d.ts +1 -0
  791. package/storage-contracts/index.js +1 -0
  792. package/storage-postgres/driver/index.d.ts +1 -0
  793. package/storage-postgres/driver/index.js +1 -0
  794. package/storage-postgres/index.d.ts +1 -0
  795. package/storage-postgres/index.js +1 -0
  796. package/storage-sql/host/index.d.ts +1 -0
  797. package/storage-sql/host/index.js +1 -0
  798. package/storage-sqlite/index.d.ts +1 -0
  799. package/storage-sqlite/index.js +1 -0
  800. package/terminal/index.d.ts +1 -0
  801. package/terminal/index.js +1 -0
  802. package/testing/index.d.ts +1 -0
  803. package/testing/index.js +1 -0
  804. package/tools/host/index.d.ts +1 -0
  805. package/tools/host/index.js +1 -0
  806. package/tools/index.d.ts +1 -0
  807. package/tools/index.js +1 -0
  808. package/voice/index.d.ts +1 -0
  809. package/voice/index.js +1 -0
  810. package/workflows/agents/index.d.ts +1 -0
  811. package/workflows/agents/index.js +1 -0
  812. package/workflows/children/index.d.ts +1 -0
  813. package/workflows/children/index.js +1 -0
  814. package/workflows/composites/index.d.ts +1 -0
  815. package/workflows/composites/index.js +1 -0
  816. package/workflows/ephemeral/index.d.ts +1 -0
  817. package/workflows/ephemeral/index.js +1 -0
  818. package/workflows/graphs/index.d.ts +1 -0
  819. package/workflows/graphs/index.js +1 -0
  820. package/workflows/index.d.ts +1 -0
  821. package/workflows/index.js +1 -0
  822. package/workflows/lifecycle/index.d.ts +1 -0
  823. package/workflows/lifecycle/index.js +1 -0
  824. package/workflows/loops/index.d.ts +1 -0
  825. package/workflows/loops/index.js +1 -0
  826. package/workflows/sagas/index.d.ts +1 -0
  827. package/workflows/sagas/index.js +1 -0
  828. package/workstream/executions/index.d.ts +1 -0
  829. package/workstream/executions/index.js +1 -0
  830. package/workstream/humans/index.d.ts +1 -0
  831. package/workstream/humans/index.js +1 -0
  832. package/workstream/index.d.ts +1 -0
  833. package/workstream/index.js +1 -0
  834. package/workstream/timers/index.d.ts +1 -0
  835. package/workstream/timers/index.js +1 -0
  836. package/workstream/webhooks/index.d.ts +1 -0
  837. package/workstream/webhooks/index.js +1 -0
package/README.md CHANGED
@@ -16,14 +16,15 @@ with a CLI that scaffolds, runs and operates your project.
16
16
 
17
17
  - **Typed agents and tools.** Schemas for inputs and outputs with the built-in `z` (Zod), or any Standard Schema
18
18
  validator, validated at runtime and inferred in TypeScript.
19
- - **Any model.** OpenAI, Anthropic, and OpenAI-compatible providers such as Groq, Gemini, Mistral, DeepSeek, xAI,
20
- OpenRouter, Together, Fireworks, Azure OpenAI and local servers. Route between providers with automatic failover.
19
+ - **Any model.** A model registry with `provider/model` names, dated prices, retries and fallback chains. Packages for
20
+ OpenAI, Anthropic, Google Gemini, Amazon Bedrock, Azure OpenAI, Mistral, Groq and Ollama, and any OpenAI-compatible
21
+ provider such as DeepSeek, xAI, OpenRouter, Together, Fireworks and local servers.
21
22
  - **Explicit permissions.** A run can use only the models, tools and effects you grant; nothing is implied by
22
23
  registering a tool.
23
24
  - **Cost control.** Model prices, per-call and per-run cost caps, and step, tool-call and time limits on every run;
24
25
  budgets shared across agents and workflows.
25
- - **Durable workflows.** Steps, approvals, timers, signals, fan-out, sagas and loops that survive restarts, on SQLite
26
- or PostgreSQL.
26
+ - **Durable workflows.** Steps, approvals, timers, signals, fan-out, sagas and loops that survive restarts, on SQLite,
27
+ PostgreSQL, libSQL (Turso), MySQL, MongoDB, Cloudflare D1 or DynamoDB.
27
28
  - **People in the loop.** Approvals and typed questions for people, answered from code, the CLI, a React form or the
28
29
  operator console.
29
30
  - **Streaming.** Stream an agent's answer as it is written, with guards on every batch.
@@ -36,15 +37,27 @@ with a CLI that scaffolds, runs and operates your project.
36
37
  - **Skills, MCP and Code Mode.** Load `SKILL.md` skills on demand, call MCP tools, and run model-written code in a
37
38
  QuickJS or Docker sandbox.
38
39
  - **Multi-agent.** Child agents, agents as tools and speculative branches under one shared budget.
40
+ - **Sandboxes and browsers.** Isolated Linux machines (Docker built in, or E2B, Vercel, Daytona, Modal and eight more)
41
+ and real browsers kept to the origins you allow (local Chrome, or Browserbase, Steel, Kernel and seven more).
42
+ - **Voice and files.** Speech to text and text to speech with seven providers, and file storage on S3, R2, GCS,
43
+ Azure Blob, Vercel Blob, Google Drive and more.
44
+ - **Sign-in and API keys.** Verify tokens from Clerk, Auth0, Supabase, Firebase, WorkOS, Entra ID, Okta, Cognito and
45
+ others, and issue, rotate and revoke your own API keys with scopes, rate limits and credits.
39
46
  - **Serve it anywhere.** An authenticated HTTP server with live events, a browser client, React hooks and components,
40
47
  an operator console, and terminal chat or one-shot commands.
41
- - **Observability.** Run events, workflow tracing and OpenTelemetry (OTLP) export. Nothing is sent anywhere unless you
48
+ - **Observability.** Run events, workflow tracing and OpenTelemetry (OTLP) export with GenAI attributes, and packages
49
+ for Langfuse, LangSmith, Datadog, Arize, Sentry, Better Stack and PostHog. Nothing is sent anywhere unless you
42
50
  configure it.
51
+ - **Deploy anywhere.** `mayura deploy` to Docker, Compose, Kubernetes and eleven platforms, from Fly.io and Cloud Run
52
+ to AWS Lambda and Cloudflare. Runs on Node.js, Bun, Deno, Cloudflare Workers and Vercel Edge.
53
+ - **85 integration packages.** Optional `@mayurajs/*` packages, released with `mayura`: see the
54
+ [list](docs/reference/integrations.md).
43
55
  - **Test offline.** Scripted models run agents, tools and workflows without a network or an API key.
44
56
 
45
57
  ## Quickstart
46
58
 
47
- Mayura runs on Node.js 22 (22.12 or later) or 24 (24.14.1 or later).
59
+ Mayura runs on Node.js 22 (22.12 or later) or 24 (24.14.1 or later). Apart from the CLI and other Node-only entry
60
+ points, it also runs on Bun, Deno, Cloudflare Workers and Vercel Edge.
48
61
 
49
62
  ```bash
50
63
  npm install mayura
@@ -0,0 +1 @@
1
+ export * from '../lib/adapter-code-docker/dist/index.js';
@@ -0,0 +1 @@
1
+ export * from '../lib/adapter-code-docker/dist/index.js';
@@ -0,0 +1 @@
1
+ export * from '../lib/adapter-code-quickjs/dist/index.js';
@@ -0,0 +1 @@
1
+ export * from '../lib/adapter-code-quickjs/dist/index.js';
@@ -0,0 +1 @@
1
+ export * from '../lib/adapter-mcp/dist/index.js';
@@ -0,0 +1 @@
1
+ export * from '../lib/adapter-mcp/dist/index.js';
@@ -0,0 +1 @@
1
+ export * from '../../lib/artifacts/dist/files.js';
@@ -0,0 +1 @@
1
+ export * from '../../lib/artifacts/dist/files.js';
@@ -0,0 +1 @@
1
+ export * from '../lib/artifacts/dist/index.js';
@@ -0,0 +1 @@
1
+ export * from '../lib/artifacts/dist/index.js';
@@ -0,0 +1 @@
1
+ export * from '../../lib/auth/dist/better-auth.js';
@@ -0,0 +1 @@
1
+ export * from '../../lib/auth/dist/better-auth.js';
@@ -0,0 +1 @@
1
+ export * from '../lib/auth/dist/index.js';
package/auth/index.js ADDED
@@ -0,0 +1 @@
1
+ export * from '../lib/auth/dist/index.js';
@@ -0,0 +1 @@
1
+ export * from '../../lib/auth/dist/testing.js';
@@ -0,0 +1 @@
1
+ export * from '../../lib/auth/dist/testing.js';
@@ -0,0 +1 @@
1
+ export * from '../lib/browser/dist/index.js';
@@ -0,0 +1 @@
1
+ export * from '../lib/browser/dist/index.js';
@@ -0,0 +1 @@
1
+ export * from '../../lib/browser/dist/local/index.js';
@@ -0,0 +1 @@
1
+ export * from '../../lib/browser/dist/local/index.js';
@@ -0,0 +1 @@
1
+ export * from '../../lib/browser/dist/testing.js';
@@ -0,0 +1 @@
1
+ export * from '../../lib/browser/dist/testing.js';
@@ -0,0 +1 @@
1
+ export * from '../../lib/cli/dist/deploy-index.js';
@@ -0,0 +1 @@
1
+ export * from '../../lib/cli/dist/deploy-index.js';
package/cli/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from '../lib/cli/dist/index.js';
package/cli/index.js ADDED
@@ -0,0 +1 @@
1
+ export * from '../lib/cli/dist/index.js';
@@ -0,0 +1 @@
1
+ export * from '../../lib/client/dist/forms.js';
@@ -0,0 +1 @@
1
+ export * from '../../lib/client/dist/forms.js';
@@ -0,0 +1 @@
1
+ export * from '../../lib/client/dist/headless.js';
@@ -0,0 +1 @@
1
+ export * from '../../lib/client/dist/headless.js';
@@ -0,0 +1 @@
1
+ export * from '../lib/client/dist/index.js';
@@ -0,0 +1 @@
1
+ export * from '../lib/client/dist/index.js';
@@ -0,0 +1 @@
1
+ export * from '../../lib/client/dist/workflows.js';
@@ -0,0 +1 @@
1
+ export * from '../../lib/client/dist/workflows.js';
@@ -0,0 +1 @@
1
+ export * from '../../lib/client-react/dist/components.js';
@@ -0,0 +1 @@
1
+ export * from '../../lib/client-react/dist/components.js';
@@ -0,0 +1 @@
1
+ export * from '../lib/client-react/dist/index.js';
@@ -0,0 +1 @@
1
+ export * from '../lib/client-react/dist/index.js';
@@ -0,0 +1 @@
1
+ export * from '../lib/code-mode/dist/index.js';
@@ -0,0 +1 @@
1
+ export * from '../lib/code-mode/dist/index.js';
@@ -0,0 +1 @@
1
+ export * from '../lib/code-mode-workflows/dist/index.js';
@@ -0,0 +1 @@
1
+ export * from '../lib/code-mode-workflows/dist/index.js';
@@ -0,0 +1 @@
1
+ export * from '../lib/context/dist/index.js';
@@ -0,0 +1 @@
1
+ export * from '../lib/context/dist/index.js';
@@ -0,0 +1 @@
1
+ export * from '../../lib/core/dist/host.js';
@@ -0,0 +1 @@
1
+ export * from '../../lib/core/dist/host.js';
@@ -0,0 +1 @@
1
+ export * from '../lib/core/dist/index.js';
package/core/index.js ADDED
@@ -0,0 +1 @@
1
+ export * from '../lib/core/dist/index.js';
package/docs/README.md CHANGED
@@ -26,9 +26,11 @@ Mayura is a TypeScript framework for building AI agents, typed tools and durable
26
26
  ## Agents and models
27
27
 
28
28
  - [Model providers](guides/model-providers.md): OpenAI, Anthropic and OpenAI-compatible providers.
29
+ - [Model registry](guides/model-registry.md): models as provider/model from @mayurajs provider packages, with prices, retries and chains.
29
30
  - [Model routing](guides/model-routing.md): failover between providers.
30
31
  - [Streaming](guides/streaming.md): show an answer while it is written.
31
32
  - [Vision](guides/vision.md): agents that see images and PDFs, from the input or from tools.
33
+ - [Voice](guides/voice.md): transcribe speech and speak text, with prices and per-call bounds.
32
34
  - [Child agents](guides/child-agents.md): agents that delegate to other agents.
33
35
  - [Skills](guides/skills.md): `SKILL.md` folders an agent loads on demand.
34
36
  - [MCP tools](guides/mcp.md): call tools on an MCP server.
@@ -46,17 +48,21 @@ Mayura is a TypeScript framework for building AI agents, typed tools and durable
46
48
 
47
49
  ## Data, safety and extensions
48
50
 
49
- - [Storage](guides/storage.md): SQLite and PostgreSQL.
51
+ - [Storage](guides/storage.md): SQLite, PostgreSQL, libSQL (Turso), MySQL, MongoDB, D1 and DynamoDB.
50
52
  - [Memory and context](guides/memory-and-context.md): what an agent remembers and sees.
51
53
  - [Guardrails](guides/guardrails.md): check, block or redact inputs and outputs.
52
54
  - [Lifecycle hooks](guides/lifecycle-hooks.md): code that can stop a run at defined points.
53
55
  - [Artifacts](guides/artifacts.md): store files that runs produce.
56
+ - [Files](guides/files.md): files in S3, R2 and other object stores, with versions, tenant views and file tools.
57
+ - [Sandboxes](guides/sandboxes.md): isolated Linux machines for agents to run commands and handle files in, on Docker or a hosted provider.
58
+ - [Browsers](guides/browsers.md): real browsers for agents to read and use web pages in, on the Chrome or Edge installed here or a hosted service, kept to allowed origins.
54
59
  - [Code Mode](guides/code-mode.md): run model-written code in a sandbox.
55
60
  - [Helpers](guides/helpers.md): configuration, secrets, retries and other utilities.
56
61
 
57
62
  ## Serve, observe and deploy
58
63
 
59
64
  - [Server and client](guides/server-and-client.md): serve agents and workflows over HTTP.
65
+ - [Authentication and API keys](guides/authentication.md): tokens from identity providers and API keys on your own storage, mapped to what callers may do.
60
66
  - [React](guides/react.md): hooks, components and forms.
61
67
  - [Observability](guides/observability.md): events, tracing and OpenTelemetry.
62
68
  - [Operator console](guides/operator-console.md): a UI for runs, workflows and approvals.
@@ -68,14 +74,17 @@ Mayura is a TypeScript framework for building AI agents, typed tools and durable
68
74
  - [mayura init](cli/init.md): starters and templates.
69
75
  - [mayura dev](cli/dev.md): develop with rebuild and restart.
70
76
  - [serve, worker and migrate](cli/run.md): run an application.
77
+ - [mayura deploy](cli/deploy.md): deploy with Docker, Compose, Kubernetes or a platform package.
71
78
  - [Operator commands](cli/operations.md): manage a running server.
72
79
 
73
80
  ## Reference
74
81
 
75
82
  - [Entry points](reference/entry-points.md): every `mayura/...` import.
83
+ - [Integration packages](reference/integrations.md): every `@mayurajs/*` package, by area.
76
84
 
77
85
  ## Project
78
86
 
87
+ - [What's new in 1.1](project/whats-new.md): the capabilities and integration packages that 1.1 adds.
79
88
  - [Versioning and stability](project/versioning.md): what each release promises.
80
89
  - [Supported platforms](project/support.md): Node.js versions, operating systems and getting help.
81
90
  - [Security model](project/security.md): what Mayura protects against, and reporting vulnerabilities.
@@ -0,0 +1,154 @@
1
+ ---
2
+ title: "Deploy with mayura deploy"
3
+ description: "Write a target's deployment files, plan a release and run it with the tools you already use: Docker, Docker Compose, Kubernetes, or a platform package."
4
+ ---
5
+
6
+ `mayura deploy` deploys a [Mayura application](../guides/deployment.md) in two steps, each one shown before anything
7
+ happens:
8
+
9
+ 1. `mayura deploy init --target <id>` writes the files the target needs (a `Dockerfile`, a `compose.yaml`, Kubernetes
10
+ manifests) for you to review and commit. It never overwrites a file without your confirmation.
11
+ 2. `mayura deploy --target <id>` plans one release: every command, in order, with everything it is given. Run it
12
+ with `--apply` and the plan's digest. Each command is one of the tools you already use and are logged in to:
13
+ `docker`, `kubectl` or a platform's own CLI. Mayura reads no credentials and runs no shell.
14
+
15
+ ```bash
16
+ mayura deploy init --target kubernetes # plan the files
17
+ mayura deploy init --target kubernetes --apply # write them; review and commit
18
+ mayura deploy --target kubernetes --tag v42 # plan the release and print its digest
19
+ mayura deploy --target kubernetes --tag v42 --apply --confirm <digest>
20
+ ```
21
+
22
+ ## Targets
23
+
24
+ | Target | Writes | A release |
25
+ |---|---|---|
26
+ | `docker` | `Dockerfile`, `.dockerignore` | builds the image and pushes it |
27
+ | `compose` | `Dockerfile`, `.dockerignore`, `compose.yaml` (PostgreSQL, migration, server, worker) | builds, runs the migration once, then starts or updates the server and worker and waits until they are healthy |
28
+ | `kubernetes` | `Dockerfile`, `.dockerignore`, `deploy/kubernetes/` (migration Job, server Deployment and Service, worker Deployment) | builds and pushes the image, runs the migration Job and waits for its outcome, then rolls out the server and worker and waits for both |
29
+
30
+ Platforms come as packages named `@mayurajs/deploy-<id>`: install one in the project and use its id as the target.
31
+ `mayura deploy targets` lists the built-in targets and the installed packages. Packages are loaded only from the
32
+ project's own dependencies.
33
+
34
+ | Package | Target | Platform |
35
+ |---|---|---|
36
+ | `@mayurajs/deploy-agentcore` | `agentcore` | [Amazon Bedrock AgentCore Runtime](https://aws.amazon.com/bedrock/agentcore/): an ARM64 image serving its HTTP contract (`/invocations` calls your `invoke`, `/ping` reports busy while it runs), then the runtime updated and awaited |
37
+ | `@mayurajs/deploy-aws-ecs` | `aws-ecs` | [Amazon ECS on Fargate](https://aws.amazon.com/ecs/): task definitions at the release's image, a one-off migration task whose exit code is checked, then both services rolled out and awaited |
38
+ | `@mayurajs/deploy-aws-lambda` | `aws-lambda` | [AWS Lambda](https://aws.amazon.com/lambda/) (experimental): one container image for the API, workflows and migration functions; the migration runs and is checked before the others update |
39
+ | `@mayurajs/deploy-azure` | `azure` | [Azure Container Apps](https://azure.microsoft.com/products/container-apps): a migration job run to success, then the server and worker apps, each new revision awaited |
40
+ | `@mayurajs/deploy-cloudflare` | `cloudflare` | [Cloudflare](https://www.cloudflare.com): the app in Containers (server containers behind a Worker, a worker container kept awake by a cron), or the serverless module on Workers with a cron advancing workflows |
41
+ | `@mayurajs/deploy-cloudrun` | `cloudrun` | [Google Cloud Run](https://cloud.google.com/run): a migration job run to completion, then the server and an always-on internal worker as services, secrets from Secret Manager |
42
+ | `@mayurajs/deploy-digitalocean` | `digitalocean` | [DigitalOcean App Platform](https://www.digitalocean.com/products/app-platform): an app spec with the server, a worker, a pre-deploy migration and PostgreSQL; each release pushes the image to the app's tag and waits for the deployment |
43
+ | `@mayurajs/deploy-fly` | `fly` | [Fly.io](https://fly.io): `serve` and `worker` process groups, the migration as the release command, built by Fly's builders, your Docker, or pushed to your registry |
44
+ | `@mayurajs/deploy-railway` | `railway` | [Railway](https://railway.com): a server service and a worker service with config-as-code files, each migrating before it goes live |
45
+ | `@mayurajs/deploy-render` | `render` | [Render](https://render.com): a Blueprint with a web service, a background worker and PostgreSQL, each service migrating first; released with `render deploys create --wait` |
46
+ | `@mayurajs/deploy-vercel` | `vercel` | [Vercel Functions](https://vercel.com/docs/functions): the API behind a `/v1` rewrite, workflows advanced by Vercel Cron with `CRON_SECRET`, storage migrated from your machine before each deploy |
47
+
48
+ ## mayura.deploy.json
49
+
50
+ `deploy init` writes `mayura.deploy.json` when the project has none. Everything in it has a default except the image:
51
+
52
+ ```json
53
+ {
54
+ "format": "mayura.deploy.v1",
55
+ "name": "refunds",
56
+ "app": "dist/src/app.js",
57
+ "image": "registry.example.com/acme/refunds",
58
+ "port": 8080,
59
+ "probePort": 9090,
60
+ "env": ["OPENAI_API_KEY", "MAYURA_OPERATOR_TOKEN_SHA256"],
61
+ "targets": {
62
+ "kubernetes": { "namespace": "agents", "context": "prod-eu", "serverReplicas": 2, "workerReplicas": 2 }
63
+ }
64
+ }
65
+ ```
66
+
67
+ - `name` names services, Jobs and Secrets: lowercase letters, digits and hyphens. It defaults to the package name.
68
+ - `app` is the compiled [application module](../guides/deployment.md#the-application-module). It defaults to
69
+ `dist/app.js` when `src` is the TypeScript root directory, and `dist/src/app.js` otherwise.
70
+ - `image` is the image repository, without a tag. A release's tag is `--tag`, or the `package.json` version.
71
+ - `env` lists the names of the variables the application reads. Their values never appear in a plan.
72
+ - `targets.<id>` holds each target's settings. For `kubernetes`: `namespace` (`default`), `context` (a kubeconfig
73
+ context; set it, so a release never goes to whichever cluster happens to be current), `secret` (`<name>-env`),
74
+ `serverReplicas` and `workerReplicas` (2), and `timeoutSeconds` (600). For `compose`: `projectName`.
75
+
76
+ ## Plans and confirmation
77
+
78
+ A plan lists each step with its tool and arguments. Steps that apply rendered manifests show them in `--json`. The
79
+ plan's digest covers all of it: the target, the release, every argument and every manifest. `--apply` runs the
80
+ plan only when `--confirm` gives that digest, so what runs is exactly what you reviewed. If anything changed in
81
+ between, such as an edited manifest or a different tag, the digest differs and nothing runs.
82
+
83
+ During a run, each tool's output goes to standard error, and the result (each step's status and exit code) goes to
84
+ standard output. A run stops at the first failing step and skips the rest, so a failed migration never rolls out.
85
+ Ctrl+C stops the running tool and skips the remaining steps.
86
+
87
+ ## Credentials and secrets
88
+
89
+ Mayura reads no credentials. Each tool uses its own login and configuration: `docker login`, your kubeconfig, or a
90
+ platform CLI's own login. The application's secrets stay where the platform keeps them:
91
+
92
+ - **Compose:** the project's `.env`, which `deploy init` never writes.
93
+ - **Kubernetes:** a Secret, by default `<name>-env`, that the manifests load with `envFrom`. Create it before the
94
+ first release, for example with `kubectl create secret generic refunds-env --from-env-file=.env.production`.
95
+
96
+ ## Kubernetes manifests
97
+
98
+ The manifests under `deploy/kubernetes/` are yours to edit: resources, probes, node selectors, annotations. They
99
+ contain two placeholders that a release fills in, and that must stay:
100
+
101
+ - `mayura-app-image`, the image, which becomes `<image>:<tag>`;
102
+ - `mayura-release` in the Job's name, which becomes the tag (lowercase, at most 13 characters), so each release runs
103
+ its own migration Job.
104
+
105
+ The rendered manifests are given to `kubectl apply -f -`; the files on disk stay unchanged. The migration Job has
106
+ `backoffLimit: 0`, and the release waits for its outcome before anything rolls out.
107
+
108
+ ## Write a target
109
+
110
+ A platform package exports a target as its default export:
111
+
112
+ ```ts
113
+ import { defineDeployTarget, imageSteps } from 'mayura/cli/deploy';
114
+
115
+ export default defineDeployTarget({
116
+ id: 'acme',
117
+ description: 'Deploy to Acme Cloud.',
118
+ tools: ['docker', 'acme'],
119
+ settings: () => ({}),
120
+ files: ({ project }) => ({ 'acme.toml': `app = "${project.name}"\n` }),
121
+ plan: ({ release }) => [
122
+ ...imageSteps(release, 'acme'),
123
+ { id: 'deploy', description: 'Deploy the release', tool: 'acme', args: ['deploy', '--image', release.image ?? ''] },
124
+ ],
125
+ });
126
+ ```
127
+
128
+ A target may run only the tools it declares, by name; a step naming any other program is refused when the release
129
+ is planned. Arguments are passed as given, without a shell.
130
+
131
+ A step can check what its tool prints with `output: { match, as }`. The tool's standard output, trimmed, must fully
132
+ match the regular expression `match`, or the step fails. Use it for a result the exit code does not carry, such as a
133
+ task's exit code. With `as`, later steps' arguments can use the output as `{{name}}`, such as the id of a task an
134
+ earlier step started. A step may use only names captured before it, and only output that matched its pattern is
135
+ passed on.
136
+
137
+ To wait for something its tool cannot wait for, a step adds `retry: { while, attempts, intervalSeconds }` to its
138
+ output check. While the output matches `while`, a status still in progress such as `Running`, the step runs again
139
+ after the interval, up to `attempts` times and at most an hour. Any answer that matches neither pattern fails the
140
+ step at once.
141
+
142
+ ## Good to know
143
+
144
+ - On Windows, `.exe` tools start directly. Tools that are `.cmd` scripts (gcloud, az, and CLIs installed with npm)
145
+ start through cmd.exe with each argument quoted. An argument cmd.exe would interpret (`" % ! ^ & | < > ( )` or a
146
+ trailing backslash) is refused, not escaped. Ctrl+C stops the tool and everything it started.
147
+ - `deploy init` writes files atomically and refuses links and paths outside the project, like
148
+ [mayura init](init.md).
149
+ - Use `--directory <dir>` to work on a project other than the current directory.
150
+
151
+ ## Related
152
+
153
+ - [Deployment](../guides/deployment.md): the targets, roles and production settings behind these files.
154
+ - [Serve, worker and migrate](run.md): the commands each container runs.
@@ -46,6 +46,7 @@ The CLI needs Node.js 22 (22.12 or later) or 24 (24.14.1 or later). See [Support
46
46
  | Create | `init`, `starters`, `templates`, `validate`, `inspect` | [Create a project](init.md) |
47
47
  | Run an application | `dev` | [Develop with mayura dev](dev.md) |
48
48
  | Run an application | `serve`, `worker`, `migrate` | [Serve, worker and migrate](run.md) |
49
+ | Deploy | `deploy targets`, `deploy init`, `deploy` | [Deploy with mayura deploy](deploy.md) |
49
50
  | Operate a server | `server-health`, `server-tools`, `run-get`, `run-wait`, `run-cancel`, `human-list`, `human-get`, `human-respond`, `workflow-list`, `workflow-get`, `workflow-approve`, `workflow-cancel`, `workflow-pause`, `workflow-resume`, `workflow-signal`, `fleet-get`, `fleet-hold`, `fleet-release`, `fleet-sweep` | [Operate a server](operations.md) |
50
51
 
51
52
  Options take the form `--name value`, or just `--name` for switches such as `--apply`. An unknown option, or the