mayura 1.2.0 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (409) hide show
  1. package/README.md +2 -0
  2. package/docs/README.md +17 -4
  3. package/docs/cli/init.md +15 -3
  4. package/docs/concepts/workflows.md +60 -1
  5. package/docs/guides/choosing-a-starter.md +80 -0
  6. package/docs/guides/durable-workflows.md +1 -1
  7. package/docs/guides/framework-starters.md +5 -1
  8. package/docs/guides/hono.md +94 -0
  9. package/docs/guides/nextjs.md +94 -0
  10. package/docs/guides/nuxt.md +94 -0
  11. package/docs/guides/rag-deployment.md +48 -0
  12. package/docs/guides/rag-modal-pinecone-starter.md +63 -0
  13. package/docs/guides/rag-production.md +48 -0
  14. package/docs/guides/rag-quickstart.md +119 -0
  15. package/docs/guides/rag.md +23 -3
  16. package/docs/guides/react-router.md +94 -0
  17. package/docs/guides/release-readiness.md +78 -55
  18. package/docs/guides/sveltekit.md +94 -0
  19. package/docs/guides/tanstack-start.md +94 -0
  20. package/docs/guides/workflow-composition.md +1 -1
  21. package/docs/integrations/reranker-cohere.md +1 -0
  22. package/docs/integrations/reranker-jina.md +1 -0
  23. package/docs/integrations/reranker-voyage.md +1 -0
  24. package/docs/integrations/vector-chroma.md +1 -0
  25. package/docs/integrations/vector-libsql.md +1 -0
  26. package/docs/integrations/vector-pgvector.md +1 -0
  27. package/docs/integrations/vector-pinecone.md +4 -1
  28. package/docs/integrations/vector-qdrant.md +1 -0
  29. package/docs/integrations/vector-weaviate.md +1 -0
  30. package/docs/introduction.md +5 -0
  31. package/docs/project/whats-new.md +70 -2
  32. package/docs/quickstart.md +5 -3
  33. package/lib/adapter-code-docker/image/Dockerfile +1 -1
  34. package/lib/adapter-code-docker/package.json +1 -1
  35. package/lib/adapter-code-quickjs/package.json +1 -1
  36. package/lib/adapter-mcp/package.json +1 -1
  37. package/lib/ag-ui/package.json +1 -1
  38. package/lib/artifacts/package.json +1 -1
  39. package/lib/auth/package.json +1 -1
  40. package/lib/authz/package.json +1 -1
  41. package/lib/browser/package.json +1 -1
  42. package/lib/cli/dist/index.d.ts +1 -1
  43. package/lib/cli/dist/index.d.ts.map +1 -1
  44. package/lib/cli/dist/index.js +63 -20
  45. package/lib/cli/dist/index.js.map +1 -1
  46. package/lib/cli/dist/interactive.js +2 -2
  47. package/lib/cli/dist/interactive.js.map +1 -1
  48. package/lib/cli/dist/operations.d.ts +1 -0
  49. package/lib/cli/dist/operations.d.ts.map +1 -1
  50. package/lib/cli/dist/operations.js +13 -5
  51. package/lib/cli/dist/operations.js.map +1 -1
  52. package/lib/cli/package.json +1 -1
  53. package/lib/cli/src/index.ts +51 -12
  54. package/lib/cli/src/interactive.ts +2 -2
  55. package/lib/cli/src/operations.ts +9 -5
  56. package/lib/cli/starter-assets/manifest.json +1 -0
  57. package/lib/cli/starters/hono/package.json +2 -2
  58. package/lib/cli/starters/rag-modal-pinecone/README.md +60 -0
  59. package/lib/cli/starters/rag-modal-pinecone/dot-env.example +23 -0
  60. package/lib/cli/starters/{event-automation → rag-modal-pinecone}/dot-gitignore +2 -4
  61. package/lib/cli/starters/rag-modal-pinecone/fixtures/on-call.md +4 -0
  62. package/lib/cli/starters/rag-modal-pinecone/mayura.project.json +13 -0
  63. package/lib/cli/starters/rag-modal-pinecone/modal-app.py +110 -0
  64. package/lib/cli/starters/rag-modal-pinecone/package.json +28 -0
  65. package/lib/cli/starters/rag-modal-pinecone/src/application.ts +148 -0
  66. package/lib/cli/starters/rag-modal-pinecone/src/cli.ts +78 -0
  67. package/lib/cli/starters/rag-modal-pinecone/src/hosted.ts +137 -0
  68. package/lib/cli/starters/rag-modal-pinecone/test/modal_worker_test.py +53 -0
  69. package/lib/cli/starters/rag-modal-pinecone/test/pipeline.test.ts +137 -0
  70. package/lib/cli/starters/{cli-agent → rag-modal-pinecone}/tsconfig.json +0 -1
  71. package/lib/client/dist/index.d.ts.map +1 -1
  72. package/lib/client/dist/index.js +12 -4
  73. package/lib/client/dist/index.js.map +1 -1
  74. package/lib/client/dist/workflow-limits.d.ts +6 -0
  75. package/lib/client/dist/workflow-limits.d.ts.map +1 -0
  76. package/lib/client/dist/workflow-limits.js +15 -0
  77. package/lib/client/dist/workflow-limits.js.map +1 -0
  78. package/lib/client/dist/workflows.d.ts +3 -0
  79. package/lib/client/dist/workflows.d.ts.map +1 -1
  80. package/lib/client/dist/workflows.js +15 -7
  81. package/lib/client/dist/workflows.js.map +1 -1
  82. package/lib/client/package.json +1 -1
  83. package/lib/client/src/index.ts +7 -4
  84. package/lib/client/src/workflow-limits.ts +12 -0
  85. package/lib/client/src/workflows.ts +12 -6
  86. package/lib/client-react/package.json +1 -1
  87. package/lib/code-mode/package.json +1 -1
  88. package/lib/code-mode-workflows/package.json +1 -1
  89. package/lib/context/package.json +1 -1
  90. package/lib/core/dist/host.d.ts +1 -0
  91. package/lib/core/dist/host.d.ts.map +1 -1
  92. package/lib/core/dist/host.js +1 -0
  93. package/lib/core/dist/host.js.map +1 -1
  94. package/lib/core/dist/index.d.ts +1 -0
  95. package/lib/core/dist/index.d.ts.map +1 -1
  96. package/lib/core/dist/index.js +1 -0
  97. package/lib/core/dist/index.js.map +1 -1
  98. package/lib/core/dist/workflow-environment.d.ts +9 -0
  99. package/lib/core/dist/workflow-environment.d.ts.map +1 -0
  100. package/lib/core/dist/workflow-environment.js +15 -0
  101. package/lib/core/dist/workflow-environment.js.map +1 -0
  102. package/lib/core/dist/workflow-limits.d.ts +7 -0
  103. package/lib/core/dist/workflow-limits.d.ts.map +1 -0
  104. package/lib/core/dist/workflow-limits.js +17 -0
  105. package/lib/core/dist/workflow-limits.js.map +1 -0
  106. package/lib/core/package.json +1 -1
  107. package/lib/core/src/host.ts +1 -0
  108. package/lib/core/src/index.ts +1 -0
  109. package/lib/core/src/workflow-environment.ts +15 -0
  110. package/lib/core/src/workflow-limits.ts +16 -0
  111. package/lib/exporter-otlp/dist/otlp-http-json.js +1 -1
  112. package/lib/exporter-otlp/dist/otlp-http-json.js.map +1 -1
  113. package/lib/exporter-otlp/dist/signals.js +2 -2
  114. package/lib/exporter-otlp/dist/signals.js.map +1 -1
  115. package/lib/exporter-otlp/package.json +1 -1
  116. package/lib/exporter-otlp/src/otlp-http-json.ts +1 -1
  117. package/lib/exporter-otlp/src/signals.ts +2 -2
  118. package/lib/files/package.json +1 -1
  119. package/lib/guardrails/package.json +1 -1
  120. package/lib/helpers/package.json +1 -1
  121. package/lib/keys/package.json +1 -1
  122. package/lib/memory/package.json +1 -1
  123. package/lib/memory-remote/package.json +1 -1
  124. package/lib/observability/package.json +1 -1
  125. package/lib/provider-anthropic/package.json +1 -1
  126. package/lib/provider-openai/package.json +1 -1
  127. package/lib/rag/dist/bm25.d.ts +13 -0
  128. package/lib/rag/dist/bm25.d.ts.map +1 -0
  129. package/lib/rag/dist/bm25.js +76 -0
  130. package/lib/rag/dist/bm25.js.map +1 -0
  131. package/lib/rag/dist/document-lexical.d.ts +7 -0
  132. package/lib/rag/dist/document-lexical.d.ts.map +1 -0
  133. package/lib/rag/dist/document-lexical.js +33 -0
  134. package/lib/rag/dist/document-lexical.js.map +1 -0
  135. package/lib/rag/dist/evidence-window.d.ts +15 -0
  136. package/lib/rag/dist/evidence-window.d.ts.map +1 -0
  137. package/lib/rag/dist/evidence-window.js +52 -0
  138. package/lib/rag/dist/evidence-window.js.map +1 -0
  139. package/lib/rag/dist/retrieval.d.ts +6 -0
  140. package/lib/rag/dist/retrieval.d.ts.map +1 -1
  141. package/lib/rag/dist/retrieval.js +60 -6
  142. package/lib/rag/dist/retrieval.js.map +1 -1
  143. package/lib/rag/dist/vectors.d.ts +8 -0
  144. package/lib/rag/dist/vectors.d.ts.map +1 -1
  145. package/lib/rag/dist/vectors.js +121 -4
  146. package/lib/rag/dist/vectors.js.map +1 -1
  147. package/lib/rag/package.json +1 -1
  148. package/lib/rag/src/bm25.ts +35 -0
  149. package/lib/rag/src/document-lexical.ts +17 -0
  150. package/lib/rag/src/evidence-window.ts +41 -0
  151. package/lib/rag/src/retrieval.ts +56 -7
  152. package/lib/rag/src/vectors.ts +62 -4
  153. package/lib/runtime/package.json +1 -1
  154. package/lib/sandbox/package.json +1 -1
  155. package/lib/sdk/package.json +1 -1
  156. package/lib/server/dist/index.d.ts +2 -0
  157. package/lib/server/dist/index.d.ts.map +1 -1
  158. package/lib/server/dist/index.js +12 -4
  159. package/lib/server/dist/index.js.map +1 -1
  160. package/lib/server/dist/inspector-bundle.d.ts +1 -1
  161. package/lib/server/dist/inspector-bundle.d.ts.map +1 -1
  162. package/lib/server/dist/inspector-bundle.js +4 -4
  163. package/lib/server/dist/inspector-bundle.js.map +1 -1
  164. package/lib/server/package.json +1 -1
  165. package/lib/server/src/index.ts +9 -4
  166. package/lib/server/src/inspector-bundle.ts +4 -4
  167. package/lib/server-node/package.json +1 -1
  168. package/lib/skills/package.json +1 -1
  169. package/lib/storage/package.json +1 -1
  170. package/lib/storage-contracts/dist/scheduled-workflow-contracts.d.ts +2 -0
  171. package/lib/storage-contracts/dist/scheduled-workflow-contracts.d.ts.map +1 -1
  172. package/lib/storage-contracts/dist/scheduled-workflow-contracts.js.map +1 -1
  173. package/lib/storage-contracts/dist/workflow-format2.d.ts +2 -0
  174. package/lib/storage-contracts/dist/workflow-format2.d.ts.map +1 -1
  175. package/lib/storage-contracts/dist/workflow-format2.js +8 -7
  176. package/lib/storage-contracts/dist/workflow-format2.js.map +1 -1
  177. package/lib/storage-contracts/dist/workflow-format3.d.ts.map +1 -1
  178. package/lib/storage-contracts/dist/workflow-format3.js +9 -7
  179. package/lib/storage-contracts/dist/workflow-format3.js.map +1 -1
  180. package/lib/storage-contracts/dist/workflow-format4.d.ts +2 -0
  181. package/lib/storage-contracts/dist/workflow-format4.d.ts.map +1 -1
  182. package/lib/storage-contracts/dist/workflow-format4.js +9 -8
  183. package/lib/storage-contracts/dist/workflow-format4.js.map +1 -1
  184. package/lib/storage-contracts/dist/workflow-format5.d.ts +4 -0
  185. package/lib/storage-contracts/dist/workflow-format5.d.ts.map +1 -1
  186. package/lib/storage-contracts/dist/workflow-format5.js +9 -8
  187. package/lib/storage-contracts/dist/workflow-format5.js.map +1 -1
  188. package/lib/storage-contracts/dist/workflow-graph-contracts.d.ts +2 -0
  189. package/lib/storage-contracts/dist/workflow-graph-contracts.d.ts.map +1 -1
  190. package/lib/storage-contracts/dist/workflow-graph-contracts.js.map +1 -1
  191. package/lib/storage-contracts/dist/workflow-tree-contracts.d.ts +2 -0
  192. package/lib/storage-contracts/dist/workflow-tree-contracts.d.ts.map +1 -1
  193. package/lib/storage-contracts/dist/workflow-tree-contracts.js +5 -3
  194. package/lib/storage-contracts/dist/workflow-tree-contracts.js.map +1 -1
  195. package/lib/storage-contracts/package.json +1 -1
  196. package/lib/storage-contracts/src/scheduled-workflow-contracts.ts +2 -0
  197. package/lib/storage-contracts/src/workflow-format2.ts +10 -7
  198. package/lib/storage-contracts/src/workflow-format3.ts +9 -7
  199. package/lib/storage-contracts/src/workflow-format4.ts +11 -8
  200. package/lib/storage-contracts/src/workflow-format5.ts +13 -8
  201. package/lib/storage-contracts/src/workflow-graph-contracts.ts +2 -0
  202. package/lib/storage-contracts/src/workflow-tree-contracts.ts +7 -3
  203. package/lib/storage-postgres/package.json +1 -1
  204. package/lib/storage-sql/dist/scheduled-database.js +1 -1
  205. package/lib/storage-sql/dist/scheduled-database.js.map +1 -1
  206. package/lib/storage-sql/dist/workflow-tree-database.d.ts.map +1 -1
  207. package/lib/storage-sql/dist/workflow-tree-database.js +37 -1
  208. package/lib/storage-sql/dist/workflow-tree-database.js.map +1 -1
  209. package/lib/storage-sql/package.json +1 -1
  210. package/lib/storage-sql/src/scheduled-database.ts +1 -1
  211. package/lib/storage-sql/src/workflow-tree-database.ts +15 -1
  212. package/lib/storage-sqlite/package.json +1 -1
  213. package/lib/terminal/package.json +1 -1
  214. package/lib/testing/package.json +1 -1
  215. package/lib/threads/package.json +1 -1
  216. package/lib/tools/package.json +1 -1
  217. package/lib/voice/package.json +1 -1
  218. package/lib/workflows/dist/children-definition.d.ts +5 -1
  219. package/lib/workflows/dist/children-definition.d.ts.map +1 -1
  220. package/lib/workflows/dist/children-definition.js +6 -2
  221. package/lib/workflows/dist/children-definition.js.map +1 -1
  222. package/lib/workflows/dist/children-runtime.d.ts.map +1 -1
  223. package/lib/workflows/dist/children-runtime.js +4 -3
  224. package/lib/workflows/dist/children-runtime.js.map +1 -1
  225. package/lib/workflows/dist/definition.d.ts +4 -0
  226. package/lib/workflows/dist/definition.d.ts.map +1 -1
  227. package/lib/workflows/dist/definition.js +6 -3
  228. package/lib/workflows/dist/definition.js.map +1 -1
  229. package/lib/workflows/dist/graph-definition.d.ts +5 -1
  230. package/lib/workflows/dist/graph-definition.d.ts.map +1 -1
  231. package/lib/workflows/dist/graph-definition.js +8 -4
  232. package/lib/workflows/dist/graph-definition.js.map +1 -1
  233. package/lib/workflows/dist/lifecycle-definition.d.ts +5 -1
  234. package/lib/workflows/dist/lifecycle-definition.d.ts.map +1 -1
  235. package/lib/workflows/dist/lifecycle-definition.js +5 -2
  236. package/lib/workflows/dist/lifecycle-definition.js.map +1 -1
  237. package/lib/workflows/dist/lifecycle-runtime.d.ts.map +1 -1
  238. package/lib/workflows/dist/lifecycle-runtime.js +4 -5
  239. package/lib/workflows/dist/lifecycle-runtime.js.map +1 -1
  240. package/lib/workflows/dist/node-batches.d.ts +9 -0
  241. package/lib/workflows/dist/node-batches.d.ts.map +1 -0
  242. package/lib/workflows/dist/node-batches.js +19 -0
  243. package/lib/workflows/dist/node-batches.js.map +1 -0
  244. package/lib/workflows/dist/operator-transports.d.ts +1 -0
  245. package/lib/workflows/dist/operator-transports.d.ts.map +1 -1
  246. package/lib/workflows/dist/operator-transports.js +1 -0
  247. package/lib/workflows/dist/operator-transports.js.map +1 -1
  248. package/lib/workflows/dist/runtime.d.ts.map +1 -1
  249. package/lib/workflows/dist/runtime.js +6 -7
  250. package/lib/workflows/dist/runtime.js.map +1 -1
  251. package/lib/workflows/dist/scheduled-helpers.d.ts.map +1 -1
  252. package/lib/workflows/dist/scheduled-helpers.js +3 -2
  253. package/lib/workflows/dist/scheduled-helpers.js.map +1 -1
  254. package/lib/workflows/dist/scheduled.d.ts.map +1 -1
  255. package/lib/workflows/dist/scheduled.js +2 -1
  256. package/lib/workflows/dist/scheduled.js.map +1 -1
  257. package/lib/workflows/package.json +1 -1
  258. package/lib/workflows/src/children-definition.ts +10 -3
  259. package/lib/workflows/src/children-runtime.ts +3 -2
  260. package/lib/workflows/src/definition.ts +9 -2
  261. package/lib/workflows/src/graph-definition.ts +10 -3
  262. package/lib/workflows/src/lifecycle-definition.ts +10 -3
  263. package/lib/workflows/src/lifecycle-runtime.ts +4 -4
  264. package/lib/workflows/src/node-batches.ts +21 -0
  265. package/lib/workflows/src/operator-transports.ts +3 -1
  266. package/lib/workflows/src/runtime.ts +6 -6
  267. package/lib/workflows/src/scheduled-helpers.ts +3 -2
  268. package/lib/workflows/src/scheduled.ts +2 -1
  269. package/lib/workstream/package.json +1 -1
  270. package/llms-full.txt +1442 -281
  271. package/llms.txt +17 -3
  272. package/package.json +4 -4
  273. package/lib/cli/starters/cli-agent/dot-github/workflows/ci.yml +0 -13
  274. package/lib/cli/starters/cli-agent/dot-gitignore +0 -10
  275. package/lib/cli/starters/event-automation/dot-dockerignore +0 -7
  276. package/lib/cli/starters/event-automation/dot-github/workflows/ci.yml +0 -13
  277. package/lib/cli/starters/event-automation/src/model.ts +0 -40
  278. package/lib/cli/starters/event-automation/tsconfig.json +0 -20
  279. package/lib/cli/starters/nextjs/Dockerfile +0 -12
  280. package/lib/cli/starters/nextjs/compose.yaml +0 -19
  281. package/lib/cli/starters/nextjs/dot-dockerignore +0 -11
  282. package/lib/cli/starters/nextjs/dot-env.example +0 -7
  283. package/lib/cli/starters/nextjs/scripts/setup.mjs +0 -9
  284. package/lib/cli/starters/nextjs/server/application.mjs +0 -74
  285. package/lib/cli/starters/nextjs/server/auth.mjs +0 -24
  286. package/lib/cli/starters/nextjs/server/worker.mjs +0 -11
  287. package/lib/cli/starters/nextjs/server/workflows.mjs +0 -23
  288. package/lib/cli/starters/nextjs/src/ChatApp.jsx +0 -57
  289. package/lib/cli/starters/nextjs/src/Notebook.jsx +0 -25
  290. package/lib/cli/starters/nextjs/src/components/mayura/approval.tsx +0 -142
  291. package/lib/cli/starters/nextjs/src/components/mayura/thread-history.tsx +0 -142
  292. package/lib/cli/starters/nextjs/src/components/mayura/thread-list.tsx +0 -9
  293. package/lib/cli/starters/nextjs/src/components/mayura/ui.css +0 -14
  294. package/lib/cli/starters/nextjs/src/connect.js +0 -21
  295. package/lib/cli/starters/nextjs/src/session.js +0 -138
  296. package/lib/cli/starters/nextjs/src/style.css +0 -11
  297. package/lib/cli/starters/nextjs/test/server.test.mjs +0 -95
  298. package/lib/cli/starters/nextjs/test/session.test.mjs +0 -16
  299. package/lib/cli/starters/nuxt/compose.yaml +0 -19
  300. package/lib/cli/starters/nuxt/dot-dockerignore +0 -11
  301. package/lib/cli/starters/nuxt/dot-env.example +0 -7
  302. package/lib/cli/starters/nuxt/dot-gitignore +0 -14
  303. package/lib/cli/starters/nuxt/scripts/setup.mjs +0 -9
  304. package/lib/cli/starters/nuxt/server/application.mjs +0 -74
  305. package/lib/cli/starters/nuxt/server/auth.mjs +0 -24
  306. package/lib/cli/starters/nuxt/server/worker.mjs +0 -11
  307. package/lib/cli/starters/nuxt/server/workflows.mjs +0 -23
  308. package/lib/cli/starters/nuxt/src/connect.js +0 -21
  309. package/lib/cli/starters/nuxt/src/session.js +0 -138
  310. package/lib/cli/starters/nuxt/src/style.css +0 -11
  311. package/lib/cli/starters/nuxt/test/server.test.mjs +0 -95
  312. package/lib/cli/starters/nuxt/test/session.test.mjs +0 -16
  313. package/lib/cli/starters/react-router/Dockerfile +0 -12
  314. package/lib/cli/starters/react-router/compose.yaml +0 -19
  315. package/lib/cli/starters/react-router/dot-dockerignore +0 -11
  316. package/lib/cli/starters/react-router/dot-env.example +0 -7
  317. package/lib/cli/starters/react-router/dot-gitignore +0 -14
  318. package/lib/cli/starters/react-router/scripts/setup.mjs +0 -9
  319. package/lib/cli/starters/react-router/server/application.mjs +0 -74
  320. package/lib/cli/starters/react-router/server/auth.mjs +0 -24
  321. package/lib/cli/starters/react-router/server/worker.mjs +0 -11
  322. package/lib/cli/starters/react-router/server/workflows.mjs +0 -23
  323. package/lib/cli/starters/react-router/src/ChatApp.jsx +0 -57
  324. package/lib/cli/starters/react-router/src/Notebook.jsx +0 -25
  325. package/lib/cli/starters/react-router/src/components/mayura/approval.tsx +0 -142
  326. package/lib/cli/starters/react-router/src/components/mayura/thread-history.tsx +0 -142
  327. package/lib/cli/starters/react-router/src/components/mayura/thread-list.tsx +0 -9
  328. package/lib/cli/starters/react-router/src/components/mayura/ui.css +0 -14
  329. package/lib/cli/starters/react-router/src/connect.js +0 -21
  330. package/lib/cli/starters/react-router/src/session.js +0 -138
  331. package/lib/cli/starters/react-router/src/style.css +0 -11
  332. package/lib/cli/starters/react-router/src/vite-env.d.ts +0 -1
  333. package/lib/cli/starters/react-router/test/server.test.mjs +0 -95
  334. package/lib/cli/starters/react-router/test/session.test.mjs +0 -16
  335. package/lib/cli/starters/research-team/dot-dockerignore +0 -7
  336. package/lib/cli/starters/research-team/dot-github/workflows/ci.yml +0 -13
  337. package/lib/cli/starters/research-team/dot-gitignore +0 -10
  338. package/lib/cli/starters/research-team/src/model.ts +0 -40
  339. package/lib/cli/starters/research-team/tsconfig.json +0 -20
  340. package/lib/cli/starters/support-agent/dot-dockerignore +0 -7
  341. package/lib/cli/starters/support-agent/dot-github/workflows/ci.yml +0 -13
  342. package/lib/cli/starters/support-agent/dot-gitignore +0 -10
  343. package/lib/cli/starters/support-agent/src/model.ts +0 -40
  344. package/lib/cli/starters/support-agent/tsconfig.json +0 -20
  345. package/lib/cli/starters/sveltekit/Dockerfile +0 -12
  346. package/lib/cli/starters/sveltekit/compose.yaml +0 -19
  347. package/lib/cli/starters/sveltekit/dot-dockerignore +0 -11
  348. package/lib/cli/starters/sveltekit/dot-env.example +0 -7
  349. package/lib/cli/starters/sveltekit/dot-gitignore +0 -14
  350. package/lib/cli/starters/sveltekit/scripts/setup.mjs +0 -9
  351. package/lib/cli/starters/sveltekit/server/application.mjs +0 -74
  352. package/lib/cli/starters/sveltekit/server/auth.mjs +0 -24
  353. package/lib/cli/starters/sveltekit/server/worker.mjs +0 -11
  354. package/lib/cli/starters/sveltekit/server/workflows.mjs +0 -23
  355. package/lib/cli/starters/sveltekit/src/connect.js +0 -21
  356. package/lib/cli/starters/sveltekit/src/session.js +0 -138
  357. package/lib/cli/starters/sveltekit/src/style.css +0 -11
  358. package/lib/cli/starters/sveltekit/src/view.js +0 -49
  359. package/lib/cli/starters/sveltekit/test/server.test.mjs +0 -95
  360. package/lib/cli/starters/sveltekit/test/session.test.mjs +0 -16
  361. package/lib/cli/starters/tanstack-start/Dockerfile +0 -12
  362. package/lib/cli/starters/tanstack-start/compose.yaml +0 -19
  363. package/lib/cli/starters/tanstack-start/dot-dockerignore +0 -11
  364. package/lib/cli/starters/tanstack-start/dot-env.example +0 -7
  365. package/lib/cli/starters/tanstack-start/dot-gitignore +0 -14
  366. package/lib/cli/starters/tanstack-start/scripts/setup.mjs +0 -9
  367. package/lib/cli/starters/tanstack-start/server/application.mjs +0 -74
  368. package/lib/cli/starters/tanstack-start/server/auth.mjs +0 -24
  369. package/lib/cli/starters/tanstack-start/server/worker.mjs +0 -11
  370. package/lib/cli/starters/tanstack-start/server/workflows.mjs +0 -23
  371. package/lib/cli/starters/tanstack-start/src/ChatApp.jsx +0 -57
  372. package/lib/cli/starters/tanstack-start/src/Notebook.jsx +0 -25
  373. package/lib/cli/starters/tanstack-start/src/components/mayura/approval.tsx +0 -142
  374. package/lib/cli/starters/tanstack-start/src/components/mayura/thread-history.tsx +0 -142
  375. package/lib/cli/starters/tanstack-start/src/components/mayura/thread-list.tsx +0 -9
  376. package/lib/cli/starters/tanstack-start/src/components/mayura/ui.css +0 -14
  377. package/lib/cli/starters/tanstack-start/src/connect.js +0 -21
  378. package/lib/cli/starters/tanstack-start/src/session.js +0 -138
  379. package/lib/cli/starters/tanstack-start/src/style.css +0 -11
  380. package/lib/cli/starters/tanstack-start/test/server.test.mjs +0 -95
  381. package/lib/cli/starters/tanstack-start/test/session.test.mjs +0 -16
  382. /package/lib/cli/{starters/hono/src/components/mayura/ui.css → starter-assets/011cacc77ada0de5b447674e9fc4374a247b9a46eb169722b12649753f24188f} +0 -0
  383. /package/lib/cli/{starters/hono/test/server.test.mjs → starter-assets/0c825d6a776673ec6274cfc29cd45b1a8c56dcb880c291a91075c77e1ef1e4f3} +0 -0
  384. /package/lib/cli/{starters/hono/server/auth.mjs → starter-assets/0dd570bfacc357d23be3340250090b9a4c6193a49cdd02e9b6789e7bee8433dd} +0 -0
  385. /package/lib/cli/{starters/hono/src/components/mayura/approval.tsx → starter-assets/11292bd14cdaf27a8f8317ba4ab768d706a726b2e26474b599f3db116674b4b3} +0 -0
  386. /package/lib/cli/{starters/nextjs/dot-gitignore → starter-assets/1873b02e070347f9a449e07084242982fa6af412c45aa764985d553975b64589} +0 -0
  387. /package/lib/cli/{starters/hono/src/style.css → starter-assets/2f3869e6d69134e43be713c4590bfe48896a5c54ece6ffc1a4f204cfcfe54218} +0 -0
  388. /package/lib/cli/{starters/hono/server/worker.mjs → starter-assets/350d77757f548369beff29d658cf1620752d4e23b4b732d99a1b403ca043137f} +0 -0
  389. /package/lib/cli/{starters/approval-workflow/src/model.ts → starter-assets/37294d24c04b71eaf6d6f0bd52fd4c1cc7a5d3cb63da9c7920ed1d44276da9cb} +0 -0
  390. /package/lib/cli/{starters/approval-workflow/tsconfig.json → starter-assets/4387d6537dd5924ae62326aa3d7d8cbad1e5abd930aecc9daa6fab1ac2f6ef24} +0 -0
  391. /package/lib/cli/{starters/hono/dot-dockerignore → starter-assets/4434be031b58cc6ee680b2860b2ad1fe4089af7ee866c13223dfb621dd042ff1} +0 -0
  392. /package/lib/cli/{starters/hono/src/ChatApp.jsx → starter-assets/46e199317648a076243d6c8e7ffedc48785a6ffc0f203b88c7c4a9479b34c5b9} +0 -0
  393. /package/lib/cli/{starters/hono/src/components/mayura/thread-history.tsx → starter-assets/4741fccbca2e0d2fc6f61d11af3cf7bcc5f0238b67bb46282287207abdc6c536} +0 -0
  394. /package/lib/cli/{starters/approval-workflow/dot-dockerignore → starter-assets/4be664708b0120da5d2b73c5a27968093da06b8728f88f2bda2a1ccbf40f6891} +0 -0
  395. /package/lib/cli/{starters/hono/server/workflows.mjs → starter-assets/4d11f729672df54969a851494877a3c5aee24bb8f8c68eacaaa22e715bf5ed69} +0 -0
  396. /package/lib/cli/{starters/hono/dot-env.example → starter-assets/4f141323062660c4dc5b563300d57bb4cdbdc7fe9bfba96e43d9c64bb274474e} +0 -0
  397. /package/lib/cli/{starters/hono/Dockerfile → starter-assets/5471b74c46258d1edb00eb8f60f4219c389a252f7e224f2692f8f3e71ae43e3e} +0 -0
  398. /package/lib/cli/{starters/hono/scripts/setup.mjs → starter-assets/56e2d6db9fe4b0449c979acd06947a5b776bcc645184b54b8d3654a48bd12c38} +0 -0
  399. /package/lib/cli/{starters/hono/src/Notebook.jsx → starter-assets/6138d1e2ca4469daf4f5545d140943f6e23b0c37f865051b266ec99695cf181a} +0 -0
  400. /package/lib/cli/{starters/hono/src/vite-env.d.ts → starter-assets/65996936fbb042915f7b74a200fcdde7e410f32a669b1ab9597cfaa4b0faddb5} +0 -0
  401. /package/lib/cli/{starters/hono/server/application.mjs → starter-assets/757f43c27415654049ecf01b67d560c83d788108d1aebcf1f16a86d956bd7fb6} +0 -0
  402. /package/lib/cli/{starters/hono/src/components/mayura/thread-list.tsx → starter-assets/97601d0bf331df7bbde88f7ee269610bc8a1239f8eeb58fded6416e588a5b7dd} +0 -0
  403. /package/lib/cli/{starters/approval-workflow/dot-github/workflows/ci.yml → starter-assets/aa4182c76778ba2194ecbfde9a960c20181534fd1ab484df126278dbc6eb0186} +0 -0
  404. /package/lib/cli/{starters/hono/src/session.js → starter-assets/abcc6ebd29ba47a079befb6568054dec8f43d4c729187e4a3610af39789e77be} +0 -0
  405. /package/lib/cli/{starters/hono/compose.yaml → starter-assets/cc1df6f5ce0eebffc567ecea1d599eba97cd1b94ab01551085c0eb87a28e3a6c} +0 -0
  406. /package/lib/cli/{starters/hono/src/connect.js → starter-assets/cd3ddb959b277e7d495cc020a6f8146acfbcc9d05ececa3809e8aafcf84504d9} +0 -0
  407. /package/lib/cli/{starters/hono/test/session.test.mjs → starter-assets/dfe75fd07538427d80ba76767e037e929664c80ff5a41b7544496a789181bb73} +0 -0
  408. /package/lib/cli/{starters/approval-workflow/dot-gitignore → starter-assets/f3ef7285253ec9668732f535306beee602e91cb6e20f83d4799b3323399ce569} +0 -0
  409. /package/lib/cli/{starters/nuxt/src/view.js → starter-assets/ff840fe960683d377e78f731b5d4318adf6050384791fa20e4948d34192aa35d} +0 -0
package/README.md CHANGED
@@ -34,6 +34,8 @@ with a CLI that scaffolds, runs and operates your project.
34
34
  run.
35
35
  - **Memory and context.** Native memory with keyword, semantic and hybrid search, plus Mem0, Supermemory and
36
36
  OpenViking adapters.
37
+ - **Retrieval with citations.** Publish scoped documents through durable ingestion, retrieve exact evidence and
38
+ revoke source visibility before cleanup. [RAG quickstart](docs/guides/rag-quickstart.md)
37
39
  - **Skills, MCP and Code Mode.** Load `SKILL.md` skills on demand, call MCP tools, and run model-written code in a
38
40
  QuickJS or Docker sandbox.
39
41
  - **Multi-agent.** Child agents, agents as tools and speculative branches under one shared budget.
package/docs/README.md CHANGED
@@ -11,7 +11,8 @@ Mayura is a TypeScript framework for building AI agents, typed tools and durable
11
11
  - [Introduction](introduction.md): what Mayura is and how its parts fit together.
12
12
  - [Quickstart](quickstart.md): create a project, or add a first agent to your own.
13
13
  - [Installation](installation.md): requirements, optional packages and TypeScript settings.
14
- - [V1.2 release validation status](guides/release-readiness.md): completed local and CI checks, limitations and remaining release gates.
14
+ - [V1.2 release validation status](guides/release-readiness.md): stable publication, all 106 trusted publishers, preserved prerelease tags and remaining limits.
15
+ - [Choose a starter](guides/choosing-a-starter.md): pick a complete application, a framework notebook or a focused template.
15
16
  - [Using Mayura with AI coding agents](ai-agents.md): documentation your assistant can read offline.
16
17
 
17
18
  ## Concepts
@@ -24,9 +25,21 @@ Mayura is a TypeScript framework for building AI agents, typed tools and durable
24
25
  - [Costs and budgets](concepts/costs-and-budgets.md): prices, cost caps and shared budgets.
25
26
  - [Workflows](concepts/workflows.md): multi-step work, in memory or durable.
26
27
 
27
- - [Framework starters](guides/framework-starters.md): six notebook applications with scoped threads, exact approvals and workers.
28
-
28
+ - [RAG quickstart](guides/rag-quickstart.md): ingest Markdown, retrieve a cited passage and delete the source locally.
29
29
  - [Retrieval augmented generation](guides/rag.md): scoped evidence, durable ingestion, vector stores and reranking.
30
+ - [RAG production qualification](guides/rag-production.md): the qualification matrix, measured recall and latency, and experimental configurations.
31
+ - [Build and deploy a retrieval agent](guides/rag-deployment.md): from offline testing to a scoped hosted deployment.
32
+ - [Modal + Pinecone RAG starter](guides/rag-modal-pinecone-starter.md): run the demo and connect scoped hosted retrieval.
33
+
34
+ ## Frameworks and starters
35
+
36
+ - [Framework starters](guides/framework-starters.md): shared notebook architecture, identity, persistence and workers.
37
+ - [Next.js](guides/nextjs.md): App Router, React thread history and tool approvals.
38
+ - [Hono](guides/hono.md): Fetch routing, Vite React and alternate runtime source.
39
+ - [React Router](guides/react-router.md): resource routes and owned React conversation controls.
40
+ - [TanStack Start](guides/tanstack-start.md): server routes, a React notebook and a separate worker.
41
+ - [SvelteKit](guides/sveltekit.md): native Svelte controls and headless conversation stores.
42
+ - [Nuxt](guides/nuxt.md): Nitro routing and native Vue conversation controls.
30
43
 
31
44
  ## Agents and models
32
45
 
@@ -246,7 +259,7 @@ Mayura is a TypeScript framework for building AI agents, typed tools and durable
246
259
 
247
260
  ## Project
248
261
 
249
- - [What's new in 1.1](project/whats-new.md): the capabilities and integration packages that 1.1 adds.
262
+ - [What's new in 1.2.1](project/whats-new.md): qualified RAG, configurable workflow limits and release history.
250
263
  - [Versioning and stability](project/versioning.md): what each release promises.
251
264
  - [Supported platforms](project/support.md): Node.js versions, operating systems and getting help.
252
265
  - [Security model](project/security.md): what Mayura protects against, and reporting vulnerabilities.
package/docs/cli/init.md CHANGED
@@ -6,8 +6,8 @@ description: "Create a Mayura project from a starter or a template with mayura i
6
6
  `mayura init` creates a new project. You choose between two kinds of starting point:
7
7
 
8
8
  - A **starter** is a complete application you can run, test and ship: configuration read from the environment,
9
- tests and CI. Four are servers, with a worker, a Dockerfile and a compose file; `cli-agent` is a command-line
10
- assistant. Start here for a real project.
9
+ tests and CI. Choose four server applications, six framework notebooks with persistent chat and exact approvals,
10
+ or the `cli-agent` command-line assistant. See [Choose a starter](../guides/choosing-a-starter.md).
11
11
  - A **template** is one small file that shows one feature, with a `package.json` and `tsconfig.json` around it. Start
12
12
  here to learn a single idea.
13
13
 
@@ -43,7 +43,8 @@ below instead.
43
43
 
44
44
  ### Choosing a model provider
45
45
 
46
- For a starter, the wizard offers:
46
+ The model-provider wizard offers the choices below. The [RAG starter](../guides/rag-modal-pinecone-starter.md)
47
+ starts offline and uses its generated README to configure both hosted services.
47
48
 
48
49
  | Choice | What it asks for |
49
50
  |---|---|
@@ -126,6 +127,17 @@ it does not do. The server starters use SQLite locally and PostgreSQL when `DATA
126
127
  | `research-team` | Multi-agent research as one durable workflow: a planner, up to four parallel researchers over a source library and a writer whose citations are checked, under one shared budget. The report is stored as a content-addressed artifact, with optional OpenTelemetry traces. |
127
128
  | `event-automation` | Signed webhooks start durable workflow runs in which a triage agent acts on a ticket tracker through MCP tools under explicit permissions. Forged, stale and replayed deliveries start nothing, and assigning an urgent ticket waits for operator approval. |
128
129
  | `cli-agent` | A command-line assistant: `assistant chat`, or one request such as `assistant list files in src`, about the folder you run it in. File tools stay inside that folder and never open `.env` files, you confirm every write, skills load from `skills/`, and replies stream. `npm run dev` starts the chat. |
130
+ | [`rag-modal-pinecone`](../guides/rag-modal-pinecone-starter.md) | A retrieval agent with durable Markdown ingestion and exact citations. `npm run dev` runs the offline demo. Use the generated README to configure Modal and Pinecone. |
131
+ | `nextjs` | App Router notebook with persistent threads, exact note approvals and a separate indexing worker. |
132
+ | `hono` | Hono/Vite React notebook with a Node path and additional Bun, Deno and Workers source. |
133
+ | `react-router` | React Router resource routes and an owned React notebook interface. |
134
+ | `tanstack-start` | TanStack Start server routes, React notebook and separate worker. |
135
+ | `sveltekit` | Native Svelte controls with the headless conversation stores. |
136
+ | `nuxt` | Nitro server bridge and native Vue conversation controls. |
137
+
138
+ The framework notebooks first use `npm run setup` to create a local session, then `npm run dev` and a separate
139
+ `npm run worker`. See [framework starters](../guides/framework-starters.md) for the shared architecture and the
140
+ dedicated guide for your framework. This demonstration identity must be replaced before opening the app to customers.
129
141
 
130
142
  Browse the source at
131
143
  [packages/cli/starters](https://github.com/KartikeyAI/mayura/blob/main/packages/cli/starters).
@@ -66,10 +66,69 @@ The pieces:
66
66
  are done run together.
67
67
  - **`result`** is a binding that picks the workflow's output, checked against the `output` schema.
68
68
 
69
- The graph is fixed when you define it: at most 128 nodes, no cycles, and no code runs between steps. Logic lives in the
69
+ The graph is fixed when you define it: 128 nodes by default, no cycles, and no code runs between steps. Logic lives in the
70
70
  tools. For work whose width depends on data, a durable workflow can declare up to a fixed number of parallel slots
71
71
  (`fanOut`) and skip steps with a condition (`when`). See [Durable workflows](../guides/durable-workflows.md).
72
72
 
73
+ ## Configuring graph size
74
+
75
+ Starting in V1.2.1, `defineWorkflow`, `defineWorkflowLifecycle`, `defineWorkflowGraph` and `defineWorkflowTree` accept
76
+ an optional `maxNodes`: `false` or an integer from 1 through 512. Omission retains the 128-node admission limit. Set the bound
77
+ explicitly when defining a larger graph; it does not automatically increase to match the supplied nodes.
78
+
79
+ ```ts
80
+ import { z } from 'mayura';
81
+ import { defineWorkflowLifecycle } from 'mayura/workflows/lifecycle';
82
+
83
+ const workflow = defineWorkflowLifecycle({
84
+ id: 'wide-review', version: '1', input: z.null(), output: z.null(), maxNodes: 256,
85
+ nodes: Array.from({ length: 256 }, (_, index) => ({
86
+ kind: 'join' as const, id: `step${index}`, dependsOn: [],
87
+ })),
88
+ result: { kind: 'input', path: [] },
89
+ });
90
+ void workflow;
91
+ ```
92
+
93
+ To disable the per-graph node-count constraint through environment configuration, set
94
+ `MAYURA_WORKFLOW_DISABLE_MAX_NODES=true` (or `1`) and explicitly wire the host helper into each definition:
95
+
96
+ ```ts
97
+ import { z } from 'mayura';
98
+ import { workflowNodeLimitsFromEnv } from 'mayura/core/host';
99
+ import { defineWorkflowLifecycle } from 'mayura/workflows/lifecycle';
100
+
101
+ const workflow = defineWorkflowLifecycle({
102
+ id: 'unbounded-graph', version: '1', input: z.null(), output: z.null(),
103
+ ...workflowNodeLimitsFromEnv(process.env),
104
+ nodes: [{ kind: 'join', id: 'ready', dependsOn: [] }],
105
+ result: { kind: 'input', path: [] },
106
+ });
107
+ void workflow;
108
+ ```
109
+
110
+ The helper accepts a host-owned environment map without reading ambient globals. Unset, empty, `false` and `0`
111
+ return no override; other values are rejected. Its opt-in becomes the JSON-safe `maxNodes: false`, included in
112
+ the definition identity and stored state. Changing the environment never changes an already-pinned run. Browser
113
+ and edge hosts may pass their own configuration map, or set `maxNodes: false` explicitly. To override a numeric
114
+ setting, spread the helper **after** that setting. Roll out matching workers and readers before submitting runs.
115
+
116
+ The explicit bound becomes part of the definition digest and persisted state. Restarted workers validate the same
117
+ bound; changing it for an existing run requires the normal reviewed migration process. Definitions that omit it keep
118
+ their existing hashes and stored representation. Deploy readers, workers and clients from V1.2.1 together before
119
+ submitting larger graphs: V1.2.0 readers reject the additional metadata.
120
+
121
+ Increasing `maxNodes` does not increase spending, tool calls, output sizes, human/timer/signal counts or concurrency.
122
+ The server and client graph views allow at most four dependency edges per configured node in total (per actual node
123
+ when `maxNodes` is `false`); a node may depend
124
+ on at most `maxNodes - 1` other nodes. Existing JSON byte limits still apply, so a dense graph or large accumulated
125
+ outputs may reach a byte limit before reaching the node ceiling. Larger in-process and lifecycle graphs execute in
126
+ small batches to bound storage queues and contention.
127
+
128
+ Workflow trees still allow at most 16 children, 256 total nodes across root and children, and 128 tool nodes. A
129
+ root's `maxNodes` does not raise these tree-wide limits, and each leaf declares its own per-graph bound. Saga step
130
+ counts, loop iteration counts and graph wait-target limits are separate and retain their existing bounds.
131
+
73
132
  ## In-process or durable
74
133
 
75
134
  Mayura runs workflows in two ways.
@@ -0,0 +1,80 @@
1
+ ---
2
+ title: "Choose a starter"
3
+ description: "Choose among runnable Mayura applications, six framework notebooks and focused templates, then follow the right setup path."
4
+ ---
5
+
6
+ Start with the application shape you need. A **starter** includes an application, tests and configuration;
7
+ a **template** demonstrates one capability in a smaller project. Both can begin with offline model fixtures.
8
+ You do not need a model API key to learn the approval and persistence flow.
9
+
10
+ ## Pick an application
11
+
12
+ | Your goal | Starter | What you start with |
13
+ | --- | --- | --- |
14
+ | Chat inside Next.js | `nextjs` | App Router, React notebook, exact note approvals and indexing worker |
15
+ | Fetch routing with a separate frontend | `hono` | Hono, Vite React and additional runtime source |
16
+ | Chat in React Router | `react-router` | Resource routes and React notebook controls |
17
+ | Chat in TanStack Start | `tanstack-start` | Server routes and React notebook controls |
18
+ | Native Svelte chat | `sveltekit` | Svelte controls over the headless conversation stores |
19
+ | Native Vue chat | `nuxt` | Nitro routing and Vue conversation controls |
20
+ | A customer support service | `support-agent` | Scoped support chat and server deployment source |
21
+ | A durable review process | `approval-workflow` | A refund workflow that waits for human approval |
22
+ | Parallel research | `research-team` | Planner, researchers and writer with bounded shared spending |
23
+ | Webhook-driven work | `event-automation` | Signed webhook admission and durable MCP tool work |
24
+ | Interactive terminal use | `cli-agent` | Terminal conversation with confirmation for writes |
25
+ | A retrieval agent with citations | [`rag-modal-pinecone`](rag-modal-pinecone-starter.md) | Durable Markdown ingestion, an offline demo and optional hosted retrieval |
26
+
27
+ The six framework notebooks share one portable server application and the same scope, approval and recovery
28
+ contract. Choose the framework your team already operates; choosing a framework does not change an agent's authority.
29
+ Use [Next.js](nextjs.md), [Hono](hono.md), [React Router](react-router.md), [TanStack Start](tanstack-start.md),
30
+ [SvelteKit](sveltekit.md) or [Nuxt](nuxt.md) for exact setup and generated file locations.
31
+
32
+ ## Generate a reviewed directory
33
+
34
+ ```sh
35
+ npx mayura@1.2.1 init --starter nextjs --directory ./my-notebook --apply
36
+ ```
37
+
38
+ Replace `nextjs` with the selected starter ID. The [initializer](../cli/init.md) supports a plan before writing and
39
+ refuses unapproved replacement of existing files. Run from a directory you own; use the generated README for that
40
+ starter's install, build and environment commands.
41
+
42
+ For a framework notebook:
43
+
44
+ ```sh
45
+ cd my-notebook
46
+ npm install
47
+ npm run setup
48
+ npm run dev
49
+ ```
50
+
51
+ Use Node 24.14.1 or a later supported 24.x release; the Nuxt toolchain requires 24.15.0 or later.
52
+ Read the local token from ignored `.data/login-token`, enter it in the notebook and start `npm run worker` in another
53
+ terminal. Setup never prints that credential and does not overwrite existing credentials. Other starter families
54
+ have their own setup instructions; do not assume the notebook login flow applies to a CLI or support service.
55
+
56
+ ## What to verify first
57
+
58
+ Send a note, inspect the proposed input, approve once and inspect its recorded outcome. Reject another proposal
59
+ and confirm that it did not write. Let the separate worker process indexing, then reload and reconnect to inspect
60
+ the saved thread. If submission is uncertain, retain its original input and key for explicit recovery.
61
+
62
+ The notebook is a local, single-user identity demonstration. Before exposing it to customers, replace its
63
+ authenticator with verified per-tenant identity. The host owns scope, route capabilities, tools and budgets;
64
+ browser data never grants authority. Keep secrets on the server and configure the exact public origin.
65
+
66
+ ## Choose a template for one concept
67
+
68
+ Use the interactive initializer to see the current template catalog when you want a small example rather than a
69
+ complete service. Templates suit learning a tool schema, a model call or a workflow primitive. When adapting one
70
+ for customers, supply your own identity, persistence, server lifecycle, deployment and operational recovery.
71
+
72
+ ## Before adding paid work
73
+
74
+ Select a [model provider](model-providers.md) or [AI gateway](ai-gateways.md), declare prices and a finite model-call
75
+ cap, and grant only the model/tools needed for the application. Preserve separate worker permissions and
76
+ [authorization](authorization.md). A UI approval does not authorize an unrelated workflow tool.
77
+
78
+ The V1.2 package release and cross-platform checks passed. Rendered browser, external provider and live deployment
79
+ qualification remain separate from offline fixture checks. Follow [framework architecture](framework-starters.md),
80
+ [deployment](deployment.md) and [release evidence](release-readiness.md) before production rollout.
@@ -453,7 +453,7 @@ const runtime = createWorkflowLifecycleFleetRuntime({
453
453
  - **Errors.** Every error the runtimes and stores throw is a `MayuraError` with a stable `code`. Reusing an
454
454
  idempotency key with other input, another definition version or other runtime settings is `CONFLICT`; resubmit the
455
455
  identical request to get the existing run. See [Storage](storage.md#errors).
456
- - **Limits.** At most 128 steps, 32 human steps, 64 timers and 64 signal steps per definition; prompts up to 1 KiB.
456
+ - **Limits.** 128 steps by default; V1.2.1 adds an explicit `maxNodes` up to 512 (see [graph size](../concepts/workflows.md#configuring-graph-size)). At most 32 human steps, 64 timers and 64 signal steps per definition; prompts up to 1 KiB.
457
457
  - `runUntilSettled` runs steps in the calling process. A plain runtime starts no background timers; waiting runs move
458
458
  only when something calls it again.
459
459
 
@@ -16,6 +16,10 @@ scripted offline tests, a separate workflow worker, deployment files and an envi
16
16
  | `sveltekit` | Catch-all `+server.ts` | Native Svelte with headless stores | Node worker |
17
17
  | `nuxt` | Nitro catch-all with a Web Request/Response bridge | Native Vue with headless stores | Node worker |
18
18
 
19
+ Follow the dedicated setup for [Next.js](nextjs.md), [Hono](hono.md), [React Router](react-router.md),
20
+ [TanStack Start](tanstack-start.md), [SvelteKit](sveltekit.md) or [Nuxt](nuxt.md).
21
+ For other application shapes, see [Choose a starter](choosing-a-starter.md).
22
+
19
23
  ## Generate and connect
20
24
 
21
25
  ```sh
@@ -84,7 +88,7 @@ and generates, packs, installs and tests each server contract offline. Like the
84
88
  are qualified in the workspace; generated packed installs qualify the Mayura server contract separately.
85
89
  The shared runtime checks passed on Bun, Deno, workerd and Vercel Edge; they do not qualify the Hono-specific Bun/Deno entry points or a deployed Workers/D1 application. Those profiles and rendered browser interaction checks remain outstanding.
86
90
 
87
- Tests, type checks, framework builds and mounted HTTP approval/worker flows passed locally on Windows using Node 24.15.0 for framework qualification. Rendered browser checks, live deployments and the full Linux/macOS and Node 22/24 CI matrix remain outstanding. TanStack's Node adapter uses a pinned Nitro beta; framework compiler integrations use TypeScript 6 tooling. Keep the starter's declared Node version and repeat qualification on the target deployment. See [release validation status](release-readiness.md).
91
+ Tests, type checks, framework builds and mounted HTTP approval/worker flows passed locally on Windows using Node 24.15.0 for framework qualification. The final V1.2 main qualification passed all 39 jobs, including Linux/macOS/Windows Node 22/24 consumer lanes. This does not establish rendered browser or live deployment qualification. TanStack's Node adapter uses a pinned Nitro beta; framework compiler integrations use TypeScript 6 tooling. Keep the starter's declared Node version and repeat qualification on the target deployment. See [release validation status](release-readiness.md).
88
92
 
89
93
  The Stagehand/OpenAI/Zod and Mistral/OpenTelemetry peer conflicts are resolved in the workspace lockfile. An exact
90
94
  local pnpm metadata hook gives the legacy OpenAI 4 SDK its own supported Zod 3 dependency; Mayura, Stagehand and
@@ -0,0 +1,94 @@
1
+ ---
2
+ title: "Mayura with Hono"
3
+ description: "Run the Hono notebook starter with persistent threads, exact tool approvals, a scoped server and a separate durable worker."
4
+ ---
5
+
6
+ Use the `hono` starter to build a Hono application with a working approval flow before adding a paid model.
7
+ It includes persistent scoped chat, a deterministic note agent, an explicit approve/reject interface and a separate
8
+ durable indexing worker. This is runnable application source, not a hosted service.
9
+
10
+ ## Generate and run
11
+
12
+ Use Node 24.14.1 or a later supported 24.x version. Run the initializer from a directory you own;
13
+ inspect its plan before applying it to an existing project.
14
+
15
+ ```sh
16
+ npx mayura@1.2.1 init --starter hono --directory ./my-notebook --apply
17
+ cd my-notebook
18
+ npm install
19
+ npm run setup
20
+ npm run dev
21
+ ```
22
+
23
+ Open `http://localhost:3000`. Read the generated ignored `.data/login-token` file locally and enter its value in
24
+ the notebook's password field. Setup creates an eight-hour local session, never prints its token, and refuses to
25
+ replace existing credentials. Keep `.env` and `.data` out of source control.
26
+
27
+ In another terminal, inside the generated project:
28
+
29
+ ```sh
30
+ npm run worker
31
+ ```
32
+
33
+ ## Follow a complete conversation
34
+
35
+ 1. Connect with the local session and create a thread.
36
+ 2. Send a note. Inspect the exact proposed input before approving or rejecting it.
37
+ 3. Approve once: the note is saved and a separate durable indexing workflow is submitted.
38
+ 4. Let the worker process the index job. Reload, re-enter the session and inspect the persisted history.
39
+ 5. If a response is lost, inspect the saved run before using the explicit recovery action. Do not send the note again
40
+ with a new key to repair an uncertain write.
41
+
42
+ The fixture needs no provider API key, model billing or external write. A rejected proposal must not save a note.
43
+ Thread history and approval controls remain scoped to the identity verified by the server.
44
+
45
+ ## Framework boundary
46
+
47
+ Hono mounts the native Fetch handler while Vite builds the React notebook. The Node entry point and the separate worker share the application configuration. Keep the API prefix and the origin-pinned browser transport in agreement when mounting behind another router.
48
+
49
+ | Part | Generated location |
50
+ | --- | --- |
51
+ | HTTP bridge | `server/hono-node.mjs` |
52
+ | Notebook interface | `src/` |
53
+ | Application and tool configuration | `server/application.mjs` |
54
+ | Session verification | `server/auth.mjs` |
55
+ | Background processing | `server/worker.mjs` |
56
+
57
+ The API is mounted at `/api/mayura/*`; the browser's origin-pinned transport preserves the native Mayura route
58
+ contract while adding that prefix. Start with the Node path before selecting another runtime. Review the generated start:bun, start:deno, dev:workers and deploy:workers scripts rather than reusing Node SQLite imports at the edge. Workers needs a configured D1 binding and secret identity directory; serve only built frontend assets.
59
+
60
+ ## Customize identity, tools and storage
61
+
62
+ Replace the single-user demonstration authenticator with verified application identity before opening the app to
63
+ customers. The host fixes principal, project, route capabilities and agent permissions. Browser input cannot choose
64
+ a tenant or grant itself a capability. Never distribute one shared owner token to multiple customers.
65
+
66
+ The note agent and indexing worker have separate grants. If you replace the fixture model, declare the model grant,
67
+ prices, finite per-call cost cap and run budget. A gateway subscription does not remove those limits. See
68
+ [AI gateways](ai-gateways.md) and [authorization](authorization.md).
69
+
70
+ The starter also ships Bun and Deno entry points using PostgreSQL, and Workers source with a D1 binding, assets and a scheduled handler. Those application-specific profiles still need qualification on the target host; shared runtime CI is not a live Workers deployment check.
71
+
72
+ A note write and workflow submission are separate operations. If scheduling is unconfirmed after the note was saved,
73
+ reconcile the missing index job using the note's identity; never replay the browser write to repair scheduling.
74
+ See [framework starter architecture](framework-starters.md) for worker leadership, retention and recovery details.
75
+
76
+ ## Verify your changes
77
+
78
+ ```sh
79
+ npm test
80
+ npm run typecheck
81
+ npm run build
82
+ ```
83
+
84
+ The V1.2 release passed the complete cross-platform qualification matrix, including generated packed server
85
+ contracts and workspace framework builds/HTTP approval flows. Rendered browser interaction and actual framework
86
+ deployments are separate checks; qualify your target before exposing customer data. See
87
+ [release validation status](release-readiness.md) and [deployment](deployment.md).
88
+
89
+ ## Continue building
90
+
91
+ - [Threads and compaction](threads.md): history, recording and bounded summaries.
92
+ - [Approvals and human input](approvals-and-human-input.md): exact-call decisions and durable resumption.
93
+ - [Copy-in UI](copy-in-ui.md) and [headless stores](react.md): customize the conversation interface.
94
+ - [Choose a starter](choosing-a-starter.md): compare this notebook with the other application shapes.
@@ -0,0 +1,94 @@
1
+ ---
2
+ title: "Mayura with Next.js"
3
+ description: "Run the Next.js notebook starter with persistent threads, exact tool approvals, a scoped server and a separate durable worker."
4
+ ---
5
+
6
+ Use the `nextjs` starter to build a Next.js application with a working approval flow before adding a paid model.
7
+ It includes persistent scoped chat, a deterministic note agent, an explicit approve/reject interface and a separate
8
+ durable indexing worker. This is runnable application source, not a hosted service.
9
+
10
+ ## Generate and run
11
+
12
+ Use Node 24.14.1 or a later supported 24.x version. Run the initializer from a directory you own;
13
+ inspect its plan before applying it to an existing project.
14
+
15
+ ```sh
16
+ npx mayura@1.2.1 init --starter nextjs --directory ./my-notebook --apply
17
+ cd my-notebook
18
+ npm install
19
+ npm run setup
20
+ npm run dev
21
+ ```
22
+
23
+ Open `http://localhost:3000`. Read the generated ignored `.data/login-token` file locally and enter its value in
24
+ the notebook's password field. Setup creates an eight-hour local session, never prints its token, and refuses to
25
+ replace existing credentials. Keep `.env` and `.data` out of source control.
26
+
27
+ In another terminal, inside the generated project:
28
+
29
+ ```sh
30
+ npm run worker
31
+ ```
32
+
33
+ ## Follow a complete conversation
34
+
35
+ 1. Connect with the local session and create a thread.
36
+ 2. Send a note. Inspect the exact proposed input before approving or rejecting it.
37
+ 3. Approve once: the note is saved and a separate durable indexing workflow is submitted.
38
+ 4. Let the worker process the index job. Reload, re-enter the session and inspect the persisted history.
39
+ 5. If a response is lost, inspect the saved run before using the explicit recovery action. Do not send the note again
40
+ with a new key to repair an uncertain write.
41
+
42
+ The fixture needs no provider API key, model billing or external write. A rejected proposal must not save a note.
43
+ Thread history and approval controls remain scoped to the identity verified by the server.
44
+
45
+ ## Framework boundary
46
+
47
+ The App Router catch-all exports the native HTTP methods and uses the Node runtime. Keep the Mayura host in the server module; never import it into a client component. The page renders the React notebook while browser transport adds the API mount prefix.
48
+
49
+ | Part | Generated location |
50
+ | --- | --- |
51
+ | HTTP bridge | `app/api/mayura/[[...path]]/route.ts` |
52
+ | Notebook interface | `app/page.tsx` |
53
+ | Application and tool configuration | `server/application.mjs` |
54
+ | Session verification | `server/auth.mjs` |
55
+ | Background processing | `server/worker.mjs` |
56
+
57
+ The API is mounted at `/api/mayura/*`; the browser's origin-pinned transport preserves the native Mayura route
58
+ contract while adding that prefix. Keep interactive controls inside the existing client boundary. Customize the copied React components rather than sending the private session directory through page props. The server route must preserve event-stream response bodies and avoid caching authenticated run responses.
59
+
60
+ ## Customize identity, tools and storage
61
+
62
+ Replace the single-user demonstration authenticator with verified application identity before opening the app to
63
+ customers. The host fixes principal, project, route capabilities and agent permissions. Browser input cannot choose
64
+ a tenant or grant itself a capability. Never distribute one shared owner token to multiple customers.
65
+
66
+ The note agent and indexing worker have separate grants. If you replace the fixture model, declare the model grant,
67
+ prices, finite per-call cost cap and run budget. A gateway subscription does not remove those limits. See
68
+ [AI gateways](ai-gateways.md) and [authorization](authorization.md).
69
+
70
+ Use the generated Node deployment first. A serverless Next.js host needs shared PostgreSQL and a trusted worker or scheduler outside the request lifecycle. A local SQLite file is not shared across function instances. The starter is not a React Server Actions transport: approvals go through the scoped HTTP API.
71
+
72
+ A note write and workflow submission are separate operations. If scheduling is unconfirmed after the note was saved,
73
+ reconcile the missing index job using the note's identity; never replay the browser write to repair scheduling.
74
+ See [framework starter architecture](framework-starters.md) for worker leadership, retention and recovery details.
75
+
76
+ ## Verify your changes
77
+
78
+ ```sh
79
+ npm test
80
+ npm run typecheck
81
+ npm run build
82
+ ```
83
+
84
+ The V1.2 release passed the complete cross-platform qualification matrix, including generated packed server
85
+ contracts and workspace framework builds/HTTP approval flows. Rendered browser interaction and actual framework
86
+ deployments are separate checks; qualify your target before exposing customer data. See
87
+ [release validation status](release-readiness.md) and [deployment](deployment.md).
88
+
89
+ ## Continue building
90
+
91
+ - [Threads and compaction](threads.md): history, recording and bounded summaries.
92
+ - [Approvals and human input](approvals-and-human-input.md): exact-call decisions and durable resumption.
93
+ - [Copy-in UI](copy-in-ui.md) and [headless stores](react.md): customize the conversation interface.
94
+ - [Choose a starter](choosing-a-starter.md): compare this notebook with the other application shapes.
@@ -0,0 +1,94 @@
1
+ ---
2
+ title: "Mayura with Nuxt"
3
+ description: "Run the Nuxt notebook starter with persistent threads, exact tool approvals, a scoped server and a separate durable worker."
4
+ ---
5
+
6
+ Use the `nuxt` starter to build a Nuxt application with a working approval flow before adding a paid model.
7
+ It includes persistent scoped chat, a deterministic note agent, an explicit approve/reject interface and a separate
8
+ durable indexing worker. This is runnable application source, not a hosted service.
9
+
10
+ ## Generate and run
11
+
12
+ Use Node 24.15.0 or a later supported 24.x version. Run the initializer from a directory you own;
13
+ inspect its plan before applying it to an existing project.
14
+
15
+ ```sh
16
+ npx mayura@1.2.1 init --starter nuxt --directory ./my-notebook --apply
17
+ cd my-notebook
18
+ npm install
19
+ npm run setup
20
+ npm run dev
21
+ ```
22
+
23
+ Open `http://localhost:3000`. Read the generated ignored `.data/login-token` file locally and enter its value in
24
+ the notebook's password field. Setup creates an eight-hour local session, never prints its token, and refuses to
25
+ replace existing credentials. Keep `.env` and `.data` out of source control.
26
+
27
+ In another terminal, inside the generated project:
28
+
29
+ ```sh
30
+ npm run worker
31
+ ```
32
+
33
+ ## Follow a complete conversation
34
+
35
+ 1. Connect with the local session and create a thread.
36
+ 2. Send a note. Inspect the exact proposed input before approving or rejecting it.
37
+ 3. Approve once: the note is saved and a separate durable indexing workflow is submitted.
38
+ 4. Let the worker process the index job. Reload, re-enter the session and inspect the persisted history.
39
+ 5. If a response is lost, inspect the saved run before using the explicit recovery action. Do not send the note again
40
+ with a new key to repair an uncertain write.
41
+
42
+ The fixture needs no provider API key, model billing or external write. A rejected proposal must not save a note.
43
+ Thread history and approval controls remain scoped to the identity verified by the server.
44
+
45
+ ## Framework boundary
46
+
47
+ The Nitro route converts the H3 event to a Web Request and returns the native Web Response through the H3 bridge. The Vue page uses headless stores and explicit controls. Keep credentials and the application host in private server configuration, outside public runtime config.
48
+
49
+ | Part | Generated location |
50
+ | --- | --- |
51
+ | HTTP bridge | `server/routes/api/mayura/[...path].ts` |
52
+ | Notebook interface | `app/app.vue` |
53
+ | Application and tool configuration | `server/application.mjs` |
54
+ | Session verification | `server/auth.mjs` |
55
+ | Background processing | `server/worker.mjs` |
56
+
57
+ The API is mounted at `/api/mayura/*`; the browser's origin-pinned transport preserves the native Mayura route
58
+ contract while adding that prefix. Retain the native Request/Response bridge when customizing Nitro middleware. Avoid reading and rebuilding approval payloads or buffering event streams in a page API wrapper. The React copy-in registry does not generate Vue components in 1.2; customize the supplied native Vue controls.
59
+
60
+ ## Customize identity, tools and storage
61
+
62
+ Replace the single-user demonstration authenticator with verified application identity before opening the app to
63
+ customers. The host fixes principal, project, route capabilities and agent permissions. Browser input cannot choose
64
+ a tenant or grant itself a capability. Never distribute one shared owner token to multiple customers.
65
+
66
+ The note agent and indexing worker have separate grants. If you replace the fixture model, declare the model grant,
67
+ prices, finite per-call cost cap and run budget. A gateway subscription does not remove those limits. See
68
+ [AI gateways](ai-gateways.md) and [authorization](authorization.md).
69
+
70
+ Use Node 24.15.0 or a later supported 24.x version for the generated Nuxt toolchain. Build the Nitro application and run the separate worker against the same store. Select a deployment preset deliberately; the Node/SQLite application is not automatically portable to edge presets.
71
+
72
+ A note write and workflow submission are separate operations. If scheduling is unconfirmed after the note was saved,
73
+ reconcile the missing index job using the note's identity; never replay the browser write to repair scheduling.
74
+ See [framework starter architecture](framework-starters.md) for worker leadership, retention and recovery details.
75
+
76
+ ## Verify your changes
77
+
78
+ ```sh
79
+ npm test
80
+ npm run typecheck
81
+ npm run build
82
+ ```
83
+
84
+ The V1.2 release passed the complete cross-platform qualification matrix, including generated packed server
85
+ contracts and workspace framework builds/HTTP approval flows. Rendered browser interaction and actual framework
86
+ deployments are separate checks; qualify your target before exposing customer data. See
87
+ [release validation status](release-readiness.md) and [deployment](deployment.md).
88
+
89
+ ## Continue building
90
+
91
+ - [Threads and compaction](threads.md): history, recording and bounded summaries.
92
+ - [Approvals and human input](approvals-and-human-input.md): exact-call decisions and durable resumption.
93
+ - [Copy-in UI](copy-in-ui.md) and [headless stores](react.md): customize the conversation interface.
94
+ - [Choose a starter](choosing-a-starter.md): compare this notebook with the other application shapes.
@@ -0,0 +1,48 @@
1
+ ---
2
+ title: Build and deploy a retrieval agent
3
+ description: Start offline, connect a scoped vector store, and qualify retrieval and citations on your own workload.
4
+ ---
5
+
6
+ Start with the [RAG quickstart](rag-quickstart.md) to ingest, retrieve, verify citations and delete a source
7
+ from an npm install. The [Modal + Pinecone starter](rag-modal-pinecone-starter.md) adds an offline demo
8
+ and an opt-in hosted walkthrough.
9
+
10
+ The repository also includes a single-file example in `examples/rag.mjs`. It ingests Markdown in a durable workflow, then answers with
11
+ citation identities using a scripted model and a deterministic hashing embedder. After building the workspace, run:
12
+
13
+ ```bash
14
+ node examples/rag.mjs
15
+ ```
16
+
17
+ This exercises the ingestion, publication and retrieval paths without an API key. Use the
18
+ [RAG API guide](rag.md) to adapt the example to your application.
19
+
20
+ ## Move from the example to your application
21
+
22
+ 1. **Resolve scope on the server.** Derive the principal and project from the authenticated request. Create the
23
+ [retrieval tool](rag.md#scoped-retrieval-and-tools) with that scope and its permissions. Keep provider credentials in
24
+ host configuration, and keep scope and index selection out of the model's tool arguments.
25
+ 2. **Pin the index space.** Record the embedder, dimensions, chunking settings and catalog scope together.
26
+ When changing any of these, prepare a new index space. For Pinecone, provision a cosine index with self-provided
27
+ vectors and matching dimensions. See the [Pinecone integration](../integrations/vector-pinecone.md).
28
+ 3. **Publish from a separate ingestion workflow.** Stage embeddings first, then activate the exact revision through
29
+ the catalog. Keep ingestion credentials and write permission out of the answering path. Preserve the durable
30
+ journal so a restart can reuse completed work and surface uncertain results for reconciliation.
31
+ 4. **Return evidence the viewer can open.** Resolve citations to the active source revision and check access at
32
+ display time. Keep citation IDs paired with their source offsets. Ask the agent to abstain when it lacks enough
33
+ evidence, and review generated claims against the cited passages.
34
+
35
+ ## Qualify the deployment you intend to operate
36
+
37
+ Use representative documents and independently reviewed questions. Include single-source and multi-source
38
+ answers, insufficient-evidence cases, unpublished revisions and access denials. Evaluate evidence coverage and
39
+ answer grounding separately. Measure retrieval latency and full answer latency under expected concurrent load.
40
+
41
+ Exercise recovery by interrupting ingestion and retrieval. Verify which operations resume, which results are
42
+ reused, and how uncertain paid work is reconciled. Check that cleanup receipts account for every resource
43
+ allocated by the qualification run and preserve pre-existing resources.
44
+
45
+ Mayura V1.2.1 qualifies the [registered Modal and Pinecone Loki v28 profile](rag-production.md) within its
46
+ tested software-operations workload. Other combinations of corpus, models, providers and deployment settings
47
+ need their own evidence. The 4.725-second p95 upper bound applies to acquisition and ranking in the 40-case
48
+ evaluation. Use your own end-to-end measurements for an answer-latency target.