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
@@ -0,0 +1,63 @@
1
+ ---
2
+ title: Run the Modal + Pinecone RAG starter
3
+ description: Generate the Mayura RAG starter, run its offline demo, and connect private Modal inference and a scoped Pinecone index.
4
+ ---
5
+
6
+ The `rag-modal-pinecone` starter ingests Markdown through a durable workflow and returns an answer with exact
7
+ source revisions and offsets. It has an offline demo and a hosted mode using Nomic embeddings on Modal,
8
+ Pinecone vectors, and Modal DeepSeek for reranking and generation.
9
+
10
+ ## Generate and run the demo
11
+
12
+ The starter is included in Mayura 1.2.2. Once that version is available on npm, generate the project with the
13
+ published CLI.
14
+
15
+ ```sh
16
+ npx mayura@1.2.2 init --starter rag-modal-pinecone --directory ./mayura-rag-starter --apply
17
+ cd mayura-rag-starter
18
+ npm install
19
+ npm run dev
20
+ npm test
21
+ ```
22
+
23
+ For a source checkout, run `pnpm build` and use the built CLI from the workspace root.
24
+
25
+ ```sh
26
+ node packages/cli/dist/bin.js init --starter rag-modal-pinecone --directory ../mayura-rag-starter --apply
27
+ cd ../mayura-rag-starter
28
+ npm install
29
+ npm run dev
30
+ npm test
31
+ ```
32
+
33
+ The demo requires no API key and uses an in-memory vector store. It reads `fixtures/on-call.md` and prints a
34
+ JSON answer that includes the incident-summary deadline and a citation with its document, revision, chunk ID,
35
+ reference and exact offsets. The tests exercise the hosted protocol with local fixtures.
36
+
37
+ ## Connect Modal and Pinecone
38
+
39
+ Follow the generated README to deploy `modal-app.py` as a private Modal Function and create a Modal workspace
40
+ proxy token before setting up a Shared Endpoint for DeepSeek V4.1 Flash 1017. In
41
+ [Pinecone](../integrations/vector-pinecone.md), create a dedicated
42
+ 768-dimensional cosine index with self-provided vectors. The starter uses the `2025-10` data-plane API.
43
+
44
+ On Windows PowerShell, set `$env:PYTHONIOENCODING = 'utf-8'` before running `modal deploy` if your console
45
+ uses a legacy encoding. Modal streams the model pull's progress characters during the first image build.
46
+
47
+ Copy the generated `.env.example` to `.env`. Set the data-plane host and key, the Modal environment and SDK
48
+ credentials, the Modal inference endpoint hostname and proxy token, and the per-operation USD-micro bounds.
49
+ Use a stable principal ID, project ID and persistent SQLite path. Test with the sample public corpus first.
50
+
51
+ ```sh
52
+ npm run build
53
+ npm run ingest -- --hosted on-call fixtures/on-call.md
54
+ npm run ask -- --hosted "When should the incident summary be posted?"
55
+ ```
56
+
57
+ Pinecone can acknowledge changes before queries see them. Let the index catch up if the first search abstains.
58
+ When updating a source, ingest under its existing source ID and retain the same catalog. If an ingestion
59
+ acknowledgement is lost, keep the journal and run ID for [reconciliation](rag.md#durable-ingestion).
60
+
61
+ The starter shares the embedding model and provider choices of the [qualified Loki profile](rag-production.md).
62
+ Its example corpus, prompts and deployment have their own quality and capacity characteristics. Follow
63
+ [Build and deploy a retrieval agent](rag-deployment.md) to qualify your actual corpus, concurrency and scope policy.
@@ -0,0 +1,48 @@
1
+ ---
2
+ title: RAG production qualification
3
+ description: Compare the qualified Modal and Pinecone Loki v28 profile with experimental RAG configurations, and see measured scale, recall, and latency.
4
+ ---
5
+
6
+ ## Qualification matrix
7
+
8
+ | Configuration | Embeddings | Retrieval and ranking | Release status |
9
+ | --- | --- | --- | --- |
10
+ | Registered Modal + Pinecone Loki v28 | Pinned Nomic Embed Text v1.5 on Modal, 768 dimensions | Pinecone cosine with self-provided vectors. Modal DeepSeek V4.1 Flash 1017 for candidate ranking and answer generation | **Production-qualified** for the registered Loki software-operations corpus and configuration |
11
+ | Modal + Pinecone starter | Nomic Embed Text v1.5 on Modal | Pinecone cosine. Modal DeepSeek for reranking and generation | **Experimental deployment profile**. The starter has its own sample corpus, configuration and smoke test. [Starter guide](rag-modal-pinecone-starter.md) |
12
+ | Built-in local stores | Deterministic hashing for offline examples. Host-supplied embeddings through the adapter contract | In-memory exact cosine with lexical scoring or BM25. Native memory with bounded exact vector scans and BM25 | **Local development and conformance**. Production use remains experimental. [RAG API guide](rag.md#architecture) |
13
+ | Other vector stores and model combinations | Host-supplied embedders, including OpenAI, Google, Mistral, Azure, Ollama and Bedrock adapters | [pgvector](../integrations/vector-pgvector.md), [libSQL](../integrations/vector-libsql.md), [Qdrant](../integrations/vector-qdrant.md), [Weaviate](../integrations/vector-weaviate.md), [Chroma](../integrations/vector-chroma.md), or Pinecone with a different profile. This includes Cohere, Voyage, Jina and other rerankers | **Experimental**. Evidence varies by adapter. [Vector conformance and model adapters](rag.md#vector-adapters-and-qualification) |
14
+
15
+ Changing the corpus, model, index, ranker, serving configuration, or operating load calls for separate qualification.
16
+
17
+ ## Qualified production profile
18
+
19
+ The registered catalog contains 24 normalized documents from 22 Loki documentation source families and
20
+ 426 verified document embeddings. The semantic holdout contains 16 single-source cases, 16 multi-source cases
21
+ and eight abstention cases.
22
+
23
+ | Check | Scale | Quality | Timing |
24
+ | --- | --- | --- | --- |
25
+ | Source-reviewed semantic evaluation | 40 Loki cases | Required-fact coverage at three results averaged 98.4375% across answerable cases. Answer fact coverage averaged 98.4375%. All eight abstentions passed. Source review recorded zero unsupported claims. | Acquisition and ranking p95 upper bound of 4.725 s against the 5 s limit |
26
+ | Nomic acquisition load | 120/120 queries on the registered Loki catalog | 99.833% mean recall, 90% minimum | 417.127 ms acquisition p95 |
27
+ | Pinecone native load | 600/600 timed queries in the separate native vector load profile with observed concurrency of one | 98.333% mean recall, 90% minimum | 45.095 ms native query p95 |
28
+ | Recovery and scope security | Seven production recovery checkpoints and the scope security check | Passed | 25.428 s maximum observed recovery |
29
+
30
+ The semantic gate counts required facts supported within the top three results. The load checks measure recall against
31
+ their registered reference neighbors. Each latency figure covers the named phase. Document-level MRR and full-answer
32
+ p95 are unpublished for this profile. Use workload-specific
33
+ quality and latency targets for your deployment. [Deployment qualification](rag-deployment.md#qualify-the-deployment-you-intend-to-operate)
34
+
35
+ ## Recovery and cleanup evidence
36
+
37
+ Document preparation reused the verified registered checkpoint. The original 600-query request archive was recovered
38
+ and checked. Provider evidence covers 14 owned apps and 23 sandboxes. No owned Pinecone indexes remained.
39
+ The pre-existing Modal app was verified by exact ID.
40
+
41
+ The revised cleanup verifier uses retained provider observations for current owners and original
42
+ shutdown receipts for historical owners. Missing records alone provide no cleanup credit. The
43
+ original incomplete audit remains in the evidence, including its completed archive verification.
44
+ The offline release check made no provider calls and reran no queries. The original quality,
45
+ latency, recovery, security and 600-query gates still apply.
46
+
47
+ The versioned release receipt records the passed gates, phase digests and measured latency.
48
+ [Loki v28 release receipt](https://github.com/KartikeyAI/mayura/blob/ff69ac1e559b4360f2befffe35f13aece1b4ba89/compatibility/rag-modal-pinecone-loki-production-v1.json)
@@ -0,0 +1,119 @@
1
+ ---
2
+ title: RAG quickstart
3
+ description: Install Mayura, ingest Markdown, retrieve and verify an exact citation, then delete the source locally.
4
+ ---
5
+
6
+ Use `mayura/rag` to publish a Markdown source, retrieve a passage with a citation, and revoke the source's
7
+ visibility. This example uses SQLite for the workflow journal and catalog, a deterministic hashing embedder,
8
+ and an in-memory vector store. It runs without API keys or model calls.
9
+
10
+ ## Install and run
11
+
12
+ Use [a supported Node.js version](../installation.md). From an empty project directory, install Mayura and its
13
+ optional SQLite dependency.
14
+
15
+ ```sh
16
+ npm init -y
17
+ npm install mayura better-sqlite3@13
18
+ ```
19
+
20
+ Save this as `rag-quickstart.mts`.
21
+
22
+ ```ts
23
+ import { hashingEmbedder } from 'mayura/memory';
24
+ import {
25
+ aggregateRagCatalog, createRetriever, defineRagIngestion, deleteRagDocument,
26
+ inMemoryVectorStore, loadMarkdown, ragEmbedder, ragIndexSpace, type RagAccess,
27
+ } from 'mayura/rag';
28
+ import { createSqliteStore } from 'mayura/storage-sqlite';
29
+ import { createWorkflowRuntime } from 'mayura/workflows';
30
+
31
+ const scope = { principalId: 'demo-reader', projectId: 'handbook' };
32
+ const readAccess: RagAccess = {
33
+ scope, permissions: { allow: ['rag:read'] }, allowedSensitivities: ['internal'],
34
+ };
35
+ const writeAccess: RagAccess = {
36
+ scope, permissions: { allow: ['rag:index'] }, allowedSensitivities: ['internal'],
37
+ };
38
+ const db = createSqliteStore({ filename: ':memory:' });
39
+ const catalog = aggregateRagCatalog(db);
40
+ const embedder = ragEmbedder(hashingEmbedder({ dimensions: 64 }), { costMicros: 0 });
41
+ const vectors = inMemoryVectorStore({ dimensions: 64, maxVectors: 100 });
42
+ const chunking = { mode: 'markdown', maxChars: 512, overlapChars: 64, maxChunks: 8 } as const;
43
+ const document = loadMarkdown('## Returns\nUnopened items can be returned within 30 days with a receipt.', {
44
+ id: 'returns', reference: 'handbook/returns.md', sensitivity: 'internal',
45
+ });
46
+
47
+ await db.initialize();
48
+ const runtime = createWorkflowRuntime({
49
+ store: db, scope, policyVersion: 'handbook-v1', maxCostMicros: 0,
50
+ permissions: { allow: ['effect:write', 'rag:index', 'tool:handbook.ingest.stage', 'tool:handbook.ingest.publish'] },
51
+ });
52
+ try {
53
+ const ingestion = defineRagIngestion({
54
+ ...writeAccess, id: 'handbook.ingest', version: '1', journal: db, catalog,
55
+ store: vectors, embedder, chunking, maxCostMicros: 0, timeoutMs: 5_000,
56
+ });
57
+ const submission = await runtime.submit(ingestion, {
58
+ input: { document, expectedRevision: null },
59
+ idempotencyKey: 'returns-v1',
60
+ });
61
+ const outcome = await runtime.runUntilSettled(ingestion, submission.id);
62
+ if (outcome.status !== 'succeeded') throw new Error('Ingestion did not publish.');
63
+
64
+ const retriever = createRetriever({
65
+ ...readAccess, catalog, store: vectors, embedder, space: ragIndexSpace(embedder, chunking),
66
+ mode: 'hybrid', limit: 3, candidateLimit: 10, maxQueries: 1, maxCostMicros: 0,
67
+ timeoutMs: 5_000, maxConcurrent: 2,
68
+ });
69
+ const query = 'returns receipt';
70
+ const { hits } = await retriever.retrieve(query);
71
+ const hit = hits[0];
72
+ if (!hit) throw new Error('Expected a returns passage.');
73
+ const { chunk } = hit;
74
+ const citation = {
75
+ documentId: chunk.documentId, revision: chunk.revision, chunkId: chunk.id,
76
+ reference: chunk.reference, start: chunk.start, end: chunk.end,
77
+ };
78
+ const passage = document.text.slice(citation.start, citation.end);
79
+ if (passage !== chunk.text) throw new Error('Citation did not match the source.');
80
+ console.log(JSON.stringify({ passage, citation }, null, 2));
81
+
82
+ const active = await catalog.read(scope, document.id, AbortSignal.timeout(5_000));
83
+ if (!active || active.deleted || active.revision !== citation.revision) {
84
+ throw new Error('The cited revision is no longer active.');
85
+ }
86
+ const tombstone = await deleteRagDocument({
87
+ ...writeAccess, catalog, documentId: document.id, expectedRevision: active.revision,
88
+ signal: AbortSignal.timeout(5_000),
89
+ });
90
+ if ((await retriever.retrieve(query)).hits.length !== 0) {
91
+ throw new Error('The deleted source is still visible.');
92
+ }
93
+ await vectors.delete(scope, tombstone.space, tombstone.chunkIds, AbortSignal.timeout(5_000));
94
+ console.log('Source hidden and vectors removed.');
95
+ } finally {
96
+ try { await runtime.close(); } finally { await db.close(); }
97
+ }
98
+ ```
99
+
100
+ ```sh
101
+ node --experimental-strip-types rag-quickstart.mts
102
+ ```
103
+
104
+ The first output contains the returns passage and its document, revision, chunk ID, source reference and exact UTF-16
105
+ offsets in the normalized Markdown. The second confirms the catalog tombstone hid the passage before vector cleanup.
106
+
107
+ ## Connect an agent or persist the corpus
108
+
109
+ Bind `defineRetrievalTool` to the scoped retriever to expose a query-only search tool. Derive the scope on the host
110
+ from trusted request identity. Treat returned passages as untrusted evidence and verify access to the cited revision
111
+ again when displaying it. [Scoped retrieval and tools](rag.md#scoped-retrieval-and-tools)
112
+
113
+ For restart recovery, use a file-backed journal and catalog plus a persistent vector store. Reuse the same submission
114
+ key, storage, index space and workflow version when recovering known work. Keep the journal for reconciliation when
115
+ an acknowledgement is uncertain. Catalog deletion changes what readers can see before vector cleanup. Configure
116
+ retention separately for workflow inputs and journal history. [Durable ingestion](rag.md#durable-ingestion)
117
+
118
+ To try a hosted setup, follow the [deployment guide](rag-deployment.md) and check which exact configurations the
119
+ [qualification matrix](rag-production.md#qualification-matrix) covers.
@@ -5,8 +5,21 @@ description: "Scoped retrieval tools, durable content-addressed ingestion, vecto
5
5
 
6
6
  `mayura/rag` adds retrieval without giving a model a database connection or letting it choose a principal, project,
7
7
  index or filter. Host code loads documents, stages embeddings and publishes a revision. A retrieval tool returns
8
- only authorized evidence and exact citation identities. This is an experimental 1.2 surface; source, examples and
9
- regression cases pass local offline validation, including builds, documentation and package checks. Real service qualification remains outstanding; see [release validation status](release-readiness.md).
8
+ only authorized evidence and exact citation identities. The [qualified Modal + Pinecone Loki v28
9
+ profile](rag-production.md#qualified-production-profile) is stable within its tested scope. Other RAG profiles
10
+ remain experimental. See [release validation status](release-readiness.md) for the limits of the available evidence.
11
+
12
+ Follow the [RAG quickstart](rag-quickstart.md) to ingest, retrieve, verify a citation and delete a source from a
13
+ registry install. Then use the [deployment guide](rag-deployment.md) to prepare a hosted setup.
14
+
15
+ ## Retrieval configuration
16
+
17
+ Chunk-level fusion remains the default. Use `fusionLevel: 'document'` to combine ranks by document and
18
+ return a real passage as the citation witness. Use `distinctDocuments: true` to return at most one
19
+ passage per document. Parent context still depends on published, authorized evidence.
20
+
21
+ The in-memory vector store supports optional BM25, document-level lexical and semantic candidates,
22
+ and max or mean aggregation of document cosine scores. The default stays chunk-level.
10
23
 
11
24
  ## Architecture
12
25
 
@@ -163,6 +176,11 @@ macro-averages test-set recall and MRR. `citationCoverage` checks that cited chu
163
176
  it does not establish semantic entailment. Retrieval result metrics contain admitted query/candidate/result counts,
164
177
  declared cost reservation and duration, without raw query text, denied document identities or source content.
165
178
 
179
+ For grounded answers, score citation correctness against the document revision and the exact evidence span. Then
180
+ judge each claim against independently labeled support in those spans. Measure the unsupported-claim rate and
181
+ answer faithfulness alongside retrieval recall and MRR. The package qualification uses deterministic fixtures for
182
+ these distinctions. Use a representative held-out corpus and reviewed claims to evaluate your deployment.
183
+
166
184
  ## Vector adapters and qualification
167
185
 
168
186
  Built-in exact stores plus six optional integrations share the `VectorStore` contract:
@@ -177,4 +195,6 @@ The shared offline conformance suite passes locally for all eight stores: scope/
177
195
  ID replacement, scoped deletion, invalid dimensions and cancellation. Native protocol tests use fake transports;
178
196
  SQL protocol tests use fake executors, while native-memory tests use local in-memory SQLite. These cases, the offline runnable example, package checks and edge/runtime checks passed locally. Frozen dependency installation also passed with strict peers and lifecycle scripts disabled. Fake transports and executors do not qualify real service compatibility, SQL query plans or deployment limits.
179
197
 
180
- Remote indexes may acknowledge writes before making them searchable. Publication does not promise immediate full recall across eventually consistent services. Real service readiness and deployment behavior remain unqualified.
198
+ Remote indexes may acknowledge writes before making them searchable. Give eventually consistent indexes time to
199
+ catch up before evaluating recall. See the [qualification matrix](rag-production.md#qualification-matrix) for the
200
+ pinned production profile and the status of other adapters and model combinations.
@@ -0,0 +1,94 @@
1
+ ---
2
+ title: "Mayura with React Router"
3
+ description: "Run the React Router notebook starter with persistent threads, exact tool approvals, a scoped server and a separate durable worker."
4
+ ---
5
+
6
+ Use the `react-router` starter to build a React Router 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 react-router --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 resource route forwards loader requests and action requests to the same native handler. The home route hosts the React notebook. Keep the resource route separate from page data loaders so authenticated run responses and event streams are not transformed into page data.
48
+
49
+ | Part | Generated location |
50
+ | --- | --- |
51
+ | HTTP bridge | `app/routes/api.ts` |
52
+ | Notebook interface | `app/routes/home.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. Use React Router for navigation and Mayura stores for thread/run observation. Unmounting a route disposes its observers; it must not automatically resubmit the previous message or approve the captured call. Preserve the exact submission key when explicitly recovering a lost response.
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
+ Build and serve the generated React Router Node application with its separate worker. A persistent single-host deployment can share the SQLite volume; replicas need shared PostgreSQL. Route actions do not replace the background worker or guarantee that a remote write was cancelled when navigation stops.
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.
@@ -1,43 +1,80 @@
1
1
  ---
2
- title: "V1.2 release validation status"
3
- description: "Completed local and CI qualification, experimental surfaces and the checks still required before releasing Mayura V1.2."
2
+ title: "V1.2.1 release validation status"
3
+ description: "Verified publication of all 106 packages, the scoped production RAG qualification, and remaining interoperability limits."
4
4
  ---
5
5
 
6
- Stable V1.2 is prepared for review and is not yet published. The implementation and full-release safeguards are
7
- merged into `main`, whose full qualification passed on **2026-10-23** at
8
- `a9b5c565167170e4b35b5f42cf7df58a64b485e8`. The coordinated **1.2.0** version PR needs its own qualification and
9
- green main checks after merging. The reviewed 22-package set was previously published as
10
- **1.2.0-rc.1 under `next`**, through trusted publishing, with all existing `latest` tags unchanged. The local and
11
- earlier release-branch snapshots below remain historical evidence; none establishes interoperability with
12
- unqualified real external services.
6
+ ## V1.2.1 publication
7
+
8
+ **1.2.1 was published on November 23, 2026.** The [qualification on main](https://github.com/KartikeyAI/mayura/actions/runs/45084310737)
9
+ passed all 39 jobs at `ff69ac1e559b4360f2befffe35f13aece1b4ba89`. The
10
+ [106-package rehearsal](https://github.com/KartikeyAI/mayura/actions/runs/45087206578) passed on the same commit.
11
+ The [protected publication](https://github.com/KartikeyAI/mayura/actions/runs/45088101597) published all 106 packages
12
+ under `latest` with npm trusted publishing. All tarball hashes and provenance were verified, and all 22 existing
13
+ `next` tags were preserved. The [V1.2.1 GitHub release](https://github.com/KartikeyAI/mayura/releases/tag/v1.2.1)
14
+ retains the manifests and publication receipt.
15
+
16
+ The [Modal and Pinecone Loki v28 profile](rag-production.md) passed production RAG qualification for its
17
+ registered workload. Other RAG profiles and the bounded AG-UI profile remain experimental.
18
+
19
+ ## V1.2.0 publication history
20
+
21
+ Stable **1.2.0 was published on 2026-10-23** for `mayura` and all **105 extensions** under `latest`, through
22
+ `release.yml` and the protected `release` environment using npm trusted publishing. All **106 packages** have
23
+ verified archive integrity and provenance, and every existing `next` tag was preserved. The
24
+ [stable GitHub Release and v1.2.0 tag](https://github.com/KartikeyAI/mayura/releases/tag/v1.2.0) identify the qualified
25
+ source commit, `ac32daa412d7209066530cfdc9542d820d054b86`.
26
+ The local and earlier release-branch snapshots below remain historical evidence; publication does not establish
27
+ interoperability with unqualified real external services.
13
28
 
14
29
  ## Completed CI qualification
15
30
 
16
- The [main qualification run 39903621300](https://github.com/KartikeyAI/mayura/actions/runs/39903621300) passed all
31
+ The [main qualification run 39928903180](https://github.com/KartikeyAI/mayura/actions/runs/39928903180) passed all
17
32
  **39 jobs**, including the required **Qualification gate**: shared checks, six OS/Node consumer lanes, 12 unit-test
18
33
  shards, 12 bundle shards, four database integration shards, shared runtimes and two container lanes. Linux, macOS and
19
34
  Windows retain Node 22.23.2 and 24.14.1 coverage. Branch protection requires the aggregate gate. The
20
- [main website run 39903621303](https://github.com/KartikeyAI/mayura/actions/runs/39903621303) also passed.
21
-
22
- [PR #21](https://github.com/KartikeyAI/mayura/pull/21) passed all 39 qualification jobs before merging at the main
23
- commit above. The full publisher now requires a committed version, exact-main qualification and source-bound
24
- archive/receipt verification, and creates only the version tag and GitHub Release after publication. It does not
25
- commit, rebase or push main. A local 1.2.0 rehearsal passed build, upgrade from V1.1.0, all 106 archive checks,
26
- 450-component SBOM checks with no license findings, and 106 offline npm dry runs. These local archives are rehearsal
27
- evidence, not the final stable publication artifacts.
35
+ [main website run 39914438301](https://github.com/KartikeyAI/mayura/actions/runs/39914438301) also passed at the
36
+ version-preparation commit `0ba32b038ba8b8a8de6b40e1f4781f36f6a9ba00`, before the final workflow/test-fixture follow-up.
37
+
38
+ [PR #22](https://github.com/KartikeyAI/mayura/pull/22) prepared the coordinated version and
39
+ [PR #23](https://github.com/KartikeyAI/mayura/pull/23) corrected artifact retention and a Windows graph stress fixture.
40
+ Each passed all 39 qualification jobs before merging. The final main run above qualifies the published source.
41
+ The full publisher requires a committed version, exact-main qualification and source-bound archive/receipt
42
+ verification, and creates only the version tag and GitHub Release after publication. It does not commit, rebase or
43
+ push main.
44
+
45
+ The [full workflow rehearsal 39932634159](https://github.com/KartikeyAI/mayura/actions/runs/39932634159) passed at
46
+ that same source with `version=1.2.0`, `package_set=all` and `dry_run=true`: build, upgrade from V1.1.0, all 106 archive
47
+ checks, 450-component SBOM checks with no license findings, and 106 offline npm dry runs. Its downloaded
48
+ `release-rehearsal-1.2.0` artifact was verified independently. This rehearsal preceded live publication.
49
+
50
+ ## Completed stable publication
51
+
52
+ The [stable release run 39934428405](https://github.com/KartikeyAI/mayura/actions/runs/39934428405) succeeded with
53
+ `version=1.2.0`, `package_set=all` and `dry_run=false`, after approval of the protected `release` environment.
54
+ All **106 OIDC uploads were accepted** and the publisher verified all versions, provenance and distribution tags
55
+ before creating the source-bound `v1.2.0` tag and stable GitHub Release. This establishes successful trusted publishing
56
+ for every package, superseding the earlier 22-package RC-only evidence and 84 configuration-only readbacks.
57
+
58
+ Independent public registry checks confirmed all 106 package identities and versions, SHA-512 archive integrity,
59
+ provenance and `latest=1.2.0` against the saved publication archives and receipt. Every `next` value matched the
60
+ pre-publication baseline: the reviewed 22-package set remains at `1.2.0-rc.1`, and packages without `next` still have
61
+ no such tag. Stable publication did not promote or replace the prerelease channel.
62
+
63
+ The [release evidence artifact](https://github.com/KartikeyAI/mayura/actions/runs/39934428405/artifacts/12494296045),
64
+ `release-all-1.2.0`, contains all 106 archives, their manifest, the complete published receipt, exact-main
65
+ qualification, the 450-component SBOM and release notes. Its downloaded ZIP matched SHA-256
66
+ `cc0c2d22b23c9ccfdf7856378cb5234f6980efe13c92a2b4945554a65236a39f`.
67
+ The receipt and qualification both identify the published source and successful main run `39928903180`.
68
+
69
+ ### Historical RC1 publication
28
70
 
29
71
  The [RC1 release run 39884720470](https://github.com/KartikeyAI/mayura/actions/runs/39884720470) succeeded through
30
72
  `release.yml` and the protected `release` environment at `ba4a1e868904453e533e57e2876d64ab8536c454`, after
31
73
  [its 39-job main qualification](https://github.com/KartikeyAI/mayura/actions/runs/39879429442). All 22 selected archives matched
32
74
  their public npm integrity metadata, every version had provenance, and `next` resolved to `1.2.0-rc.1`. Existing
33
75
  `latest` values remained `1.1.0` for `mayura` and the OpenAI provider, and `1.2.0-rc.0` for the 20 newly introduced
34
- extensions. This proves OIDC publication for those 22 packages, not the full 106-package stable release.
35
-
36
- On **2026-10-23**, read-only npm checks confirmed that all other **84 packages** have the expected trusted-publisher
37
- configuration: `KartikeyAI/mayura`, `release.yml`, environment `release`, and direct publishing allowed. No trust
38
- settings were changed. The CLI readback does not expose activation or expiry status and is not proof of a successful
39
- OIDC exchange; the first live publication remains unproven for those packages. Recheck eligibility at release time
40
- and recreate any expired configurations. Public registry preflight also found all 106 stable `1.2.0` versions unused.
76
+ extensions. Those `latest` values describe the RC1 snapshot; stable publication subsequently advanced all 106
77
+ packages to `1.2.0` while preserving their `next` tags, as verified above.
41
78
 
42
79
  ### Historical release-branch run
43
80
 
@@ -83,8 +120,8 @@ Node 24.15.0 for framework starter qualification.
83
120
  | Frozen installation, secret scan and licenses/SBOM | Passed; 450 SBOM components, no license findings |
84
121
 
85
122
  These counts describe the completed qualification snapshot before this status page was added. Documentation edits
86
- are checked again during release preparation. The archives were staged for verification, not published; the release
87
- workflow must generate new archives bound to the final source commit and V1.2 version.
123
+ were checked again during release preparation. These local archives were staged for verification; the completed
124
+ workflow rehearsal and stable publication generated their own archives bound to the final source and V1.2 version.
88
125
 
89
126
  The integration result combines the latest execution of each case. The original all-service run had 54 failures
90
127
  and 313 skipped cases. Focused reruns cleared all executed failures, including a final serial run of 107 cases
@@ -94,19 +131,14 @@ concurrent builds and unit-suite load. The subsequent complete CI pass is record
94
131
 
95
132
  ## Remaining qualifications and limitations
96
133
 
97
- - **Stable publication:** full-release safeguards passed PR and main qualification at the recorded source; scoped
98
- RC1 publication passed at its separately recorded source. The stable version PR still needs review, qualification
99
- and green main checks, then a final-source workflow rehearsal and publication approval. All other 84 publisher
100
- configurations matched in read-only checks, but were not exercised by RC1 and their activation/expiry status was
101
- not exposed by the CLI. Recheck eligibility and replace any expired configurations before full publication.
102
134
  - **Providers and gateways:** offline transports and the provider harness dry run passed. Paid inference, real
103
135
  embedding endpoints, gateway accounting and remote discovery behavior have not been qualified.
104
136
  - **Authorization:** OpenFGA, Cedar, Permit.io and Oso passed offline tests and package checks. Real provider/native
105
137
  engine interoperability, deployed policies and revision consistency remain host responsibilities and unqualified
106
138
  here. Amazon Verified Permissions is outside the implemented Cedar adapter.
107
- - **RAG:** the [experimental RAG surface](rag.md) passed offline tests, including fake vector transports/SQL executors
108
- and local SQLite native-memory checks. This does not establish real vector/reranker service compatibility, SQL
109
- query plans, deployment limits or read-after-write visibility on eventually consistent services.
139
+ - **RAG:** the [qualified Modal and Pinecone profile](rag-production.md) covers one pinned Loki workload. Other
140
+ configurations have offline or narrower test evidence. Check the vector store, index behavior, workload and
141
+ security requirements for the deployment you plan to operate.
110
142
  - **AG-UI:** the [experimental bounded profile](ag-ui.md) passed adapter and native server tests. The opt-in reference
111
143
  HttpAgent/schema harness, CopilotKit compatibility and the notebook's rendered browser flow remain unqualified.
112
144
  Arbitrary in-flight paid-operation recovery, conversation branching, audio/video media and reasoning disclosure
@@ -116,23 +148,14 @@ concurrent builds and unit-suite load. The subsequent complete CI pass is record
116
148
  Rendered browser interaction, visual/accessibility checks and live deployment qualification remain outstanding.
117
149
  See [framework starters](framework-starters.md) and [copy-in UI](copy-in-ui.md).
118
150
 
119
- Retain the experimental labels and these limits when publishing. Any claim of stable external interoperability
120
- requires the corresponding real-service or reference-client qualification before release; an offline pass is not
121
- sufficient evidence for that claim.
122
-
123
- ## Release preparation
124
-
125
- 1. Full-release publisher/recovery changes are merged and qualified on main; review these updated release records.
126
- 2. Review the prepared coordinated **1.2.0** version/changelog PR, committed without `[skip ci]`, merge through normal branch
127
- protection and require the pushed main commit's complete qualification to pass. The publisher does not write main.
128
- 3. Verify trusted publishing for all 106 packages, the protected `release` environment, tag creation permission and
129
- publishing enablement. Preserve the experimental labels and limitations above.
130
- 4. Rehearse **1.2.0** with `package_set=all` and `dry_run=true`, regenerating archives, checksums, SBOM and notes from
131
- the final source. Dry runs do not validate unexercised package trust.
132
- 5. Approve publication from that qualified main commit with `dry_run=false`. Verify all 106 versions, `latest` tags,
133
- provenance and the source-bound tag/GitHub Release. Recover partial publication from the original run's saved
134
- archives and receipt, without replaying accepted or uncertain uploads.
135
-
136
- This version PR sets source manifests and version references to **1.2.0** and prepares the changelog. It does not
137
- publish to npm, change distribution tags, create `v1.2.0` or create a stable GitHub Release. Stable publication and
138
- deployment remain outstanding; RC1 availability is not evidence of live-service or rendered browser qualification.
151
+ The published release retains the experimental labels and these limits. Any future claim of stable external
152
+ interoperability requires the corresponding real-service or reference-client qualification; an offline pass or
153
+ successful npm publication is not sufficient evidence for that claim.
154
+
155
+ ## Release completion
156
+
157
+ The coordinated version PR, artifact/fixture follow-up, full main qualification, final-source rehearsal, protected
158
+ environment approval, 106-package stable publication and source-bound tag/GitHub Release are complete.
159
+ Trusted publishing is verified by successful OIDC publication for all 106 packages, rather than configuration
160
+ readback alone. The remaining work concerns the explicitly unqualified integrations, rendered browser flows and
161
+ deployments listed above; stable package availability does not qualify those application paths.