mayura 1.2.1 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/docs/README.md +22 -5
- package/docs/cli/init.md +15 -3
- package/docs/guides/authentication.md +3 -1
- package/docs/guides/browsers.md +1 -0
- package/docs/guides/choosing-a-starter.md +83 -0
- package/docs/guides/copy-in-ui.md +36 -4
- package/docs/guides/framework-starters.md +7 -2
- package/docs/guides/hono.md +94 -0
- package/docs/guides/nextjs.md +94 -0
- package/docs/guides/nuxt.md +94 -0
- package/docs/guides/rag-deployment.md +49 -0
- package/docs/guides/rag-modal-pinecone-starter.md +65 -0
- package/docs/guides/rag-production.md +34 -15
- package/docs/guides/rag-quickstart.md +119 -0
- package/docs/guides/rag.md +11 -1
- package/docs/guides/react-router.md +94 -0
- package/docs/guides/release-readiness.md +98 -39
- package/docs/guides/sandboxes.md +1 -1
- package/docs/guides/server-and-client.md +8 -3
- package/docs/guides/sveltekit.md +94 -0
- package/docs/guides/tanstack-start.md +94 -0
- package/docs/integrations/browser-stagehand.md +5 -1
- package/docs/integrations/reranker-cohere.md +1 -0
- package/docs/integrations/reranker-jina.md +1 -0
- package/docs/integrations/reranker-voyage.md +1 -0
- package/docs/integrations/sandbox-codesandbox.md +4 -0
- package/docs/integrations/ui.md +82 -0
- package/docs/integrations/vector-chroma.md +1 -0
- package/docs/integrations/vector-libsql.md +1 -0
- package/docs/integrations/vector-pgvector.md +1 -0
- package/docs/integrations/vector-pinecone.md +4 -1
- package/docs/integrations/vector-qdrant.md +1 -0
- package/docs/integrations/vector-weaviate.md +1 -0
- package/docs/introduction.md +5 -0
- package/docs/project/changelog.md +48 -0
- package/docs/project/whats-new.md +79 -2
- package/docs/quickstart.md +5 -3
- package/docs/reference/integrations.md +11 -3
- package/lib/adapter-code-docker/image/Dockerfile +1 -1
- package/lib/adapter-code-docker/package.json +1 -1
- package/lib/adapter-code-quickjs/package.json +1 -1
- package/lib/adapter-mcp/package.json +1 -1
- package/lib/ag-ui/package.json +1 -1
- package/lib/artifacts/package.json +1 -1
- package/lib/auth/dist/identity.d.ts +2 -5
- package/lib/auth/dist/identity.d.ts.map +1 -1
- package/lib/auth/dist/identity.js.map +1 -1
- package/lib/auth/package.json +1 -1
- package/lib/auth/src/identity.ts +3 -3
- package/lib/authz/package.json +1 -1
- package/lib/browser/package.json +1 -1
- package/lib/cli/dist/deploy-targets.js +1 -1
- package/lib/cli/dist/deploy-targets.js.map +1 -1
- package/lib/cli/dist/index.d.ts +1 -1
- package/lib/cli/dist/index.d.ts.map +1 -1
- package/lib/cli/dist/index.js +63 -20
- package/lib/cli/dist/index.js.map +1 -1
- package/lib/cli/dist/interactive.js +2 -2
- package/lib/cli/dist/interactive.js.map +1 -1
- package/lib/cli/package.json +1 -1
- package/lib/cli/src/deploy-targets.ts +1 -1
- package/lib/cli/src/index.ts +51 -12
- package/lib/cli/src/interactive.ts +2 -2
- package/lib/cli/starter-assets/manifest.json +1 -0
- package/lib/cli/starters/hono/package.json +2 -2
- package/lib/cli/starters/rag-modal-pinecone/README.md +60 -0
- package/lib/cli/starters/rag-modal-pinecone/dot-env.example +23 -0
- package/lib/cli/starters/{event-automation → rag-modal-pinecone}/dot-gitignore +2 -4
- package/lib/cli/starters/rag-modal-pinecone/fixtures/on-call.md +4 -0
- package/lib/cli/starters/rag-modal-pinecone/mayura.project.json +13 -0
- package/lib/cli/starters/rag-modal-pinecone/modal-app.py +110 -0
- package/lib/cli/starters/rag-modal-pinecone/package.json +28 -0
- package/lib/cli/starters/rag-modal-pinecone/src/application.ts +148 -0
- package/lib/cli/starters/rag-modal-pinecone/src/cli.ts +78 -0
- package/lib/cli/starters/rag-modal-pinecone/src/hosted.ts +137 -0
- package/lib/cli/starters/rag-modal-pinecone/test/modal_worker_test.py +53 -0
- package/lib/cli/starters/rag-modal-pinecone/test/pipeline.test.ts +137 -0
- package/lib/cli/starters/{cli-agent → rag-modal-pinecone}/tsconfig.json +0 -1
- package/lib/cli/starters/support-agent/src/dev-request.ts +18 -0
- package/lib/cli/starters/support-agent/src/dev.ts +7 -4
- package/lib/cli/starters/support-agent/test/dev-request.test.ts +19 -0
- package/lib/client/dist/index.js +2 -2
- package/lib/client/dist/index.js.map +1 -1
- package/lib/client/package.json +1 -1
- package/lib/client/src/index.ts +2 -2
- package/lib/client-react/package.json +1 -1
- package/lib/code-mode/package.json +1 -1
- package/lib/code-mode-workflows/package.json +1 -1
- package/lib/context/package.json +1 -1
- package/lib/core/package.json +1 -1
- package/lib/exporter-otlp/dist/otlp-http-json.js +1 -1
- package/lib/exporter-otlp/dist/otlp-http-json.js.map +1 -1
- package/lib/exporter-otlp/dist/signals.js +2 -2
- package/lib/exporter-otlp/dist/signals.js.map +1 -1
- package/lib/exporter-otlp/package.json +1 -1
- package/lib/exporter-otlp/src/otlp-http-json.ts +1 -1
- package/lib/exporter-otlp/src/signals.ts +2 -2
- package/lib/files/dist/store.d.ts.map +1 -1
- package/lib/files/dist/store.js +15 -2
- package/lib/files/dist/store.js.map +1 -1
- package/lib/files/package.json +1 -1
- package/lib/files/src/store.ts +15 -2
- package/lib/guardrails/package.json +1 -1
- package/lib/helpers/package.json +1 -1
- package/lib/keys/dist/manager.d.ts +1 -4
- package/lib/keys/dist/manager.d.ts.map +1 -1
- package/lib/keys/dist/manager.js +6 -4
- package/lib/keys/dist/manager.js.map +1 -1
- package/lib/keys/dist/verifier.d.ts +2 -1
- package/lib/keys/dist/verifier.d.ts.map +1 -1
- package/lib/keys/dist/verifier.js +2 -2
- package/lib/keys/dist/verifier.js.map +1 -1
- package/lib/keys/package.json +1 -1
- package/lib/keys/src/manager.ts +8 -6
- package/lib/keys/src/verifier.ts +4 -4
- package/lib/memory/package.json +1 -1
- package/lib/memory-remote/package.json +1 -1
- package/lib/observability/package.json +1 -1
- package/lib/provider-anthropic/package.json +1 -1
- package/lib/provider-openai/package.json +1 -1
- package/lib/rag/package.json +1 -1
- package/lib/runtime/package.json +1 -1
- package/lib/sandbox/package.json +1 -1
- package/lib/sdk/package.json +1 -1
- package/lib/server/dist/index.d.ts +2 -1
- package/lib/server/dist/index.d.ts.map +1 -1
- package/lib/server/dist/index.js +29 -24
- package/lib/server/dist/index.js.map +1 -1
- package/lib/server/dist/inspector-bundle.d.ts +1 -1
- package/lib/server/dist/inspector-bundle.d.ts.map +1 -1
- package/lib/server/dist/inspector-bundle.js +4 -4
- package/lib/server/dist/inspector-bundle.js.map +1 -1
- package/lib/server/package.json +1 -1
- package/lib/server/src/index.ts +26 -20
- package/lib/server/src/inspector-bundle.ts +4 -4
- package/lib/server-node/package.json +1 -1
- package/lib/skills/package.json +1 -1
- package/lib/storage/package.json +1 -1
- package/lib/storage-contracts/package.json +1 -1
- package/lib/storage-postgres/package.json +1 -1
- package/lib/storage-sql/package.json +1 -1
- package/lib/storage-sqlite/package.json +1 -1
- package/lib/terminal/package.json +1 -1
- package/lib/testing/package.json +1 -1
- package/lib/threads/package.json +1 -1
- package/lib/tools/package.json +1 -1
- package/lib/voice/package.json +1 -1
- package/lib/workflows/package.json +1 -1
- package/lib/workstream/package.json +1 -1
- package/llms-full.txt +1595 -292
- package/llms.txt +23 -5
- package/package.json +4 -4
- package/lib/cli/starters/cli-agent/dot-github/workflows/ci.yml +0 -13
- package/lib/cli/starters/cli-agent/dot-gitignore +0 -10
- package/lib/cli/starters/event-automation/dot-dockerignore +0 -7
- package/lib/cli/starters/event-automation/dot-github/workflows/ci.yml +0 -13
- package/lib/cli/starters/event-automation/src/model.ts +0 -40
- package/lib/cli/starters/event-automation/tsconfig.json +0 -20
- package/lib/cli/starters/nextjs/Dockerfile +0 -12
- package/lib/cli/starters/nextjs/compose.yaml +0 -19
- package/lib/cli/starters/nextjs/dot-dockerignore +0 -11
- package/lib/cli/starters/nextjs/dot-env.example +0 -7
- package/lib/cli/starters/nextjs/scripts/setup.mjs +0 -9
- package/lib/cli/starters/nextjs/server/application.mjs +0 -74
- package/lib/cli/starters/nextjs/server/auth.mjs +0 -24
- package/lib/cli/starters/nextjs/server/worker.mjs +0 -11
- package/lib/cli/starters/nextjs/server/workflows.mjs +0 -23
- package/lib/cli/starters/nextjs/src/ChatApp.jsx +0 -57
- package/lib/cli/starters/nextjs/src/Notebook.jsx +0 -25
- package/lib/cli/starters/nextjs/src/components/mayura/approval.tsx +0 -142
- package/lib/cli/starters/nextjs/src/components/mayura/thread-history.tsx +0 -142
- package/lib/cli/starters/nextjs/src/components/mayura/thread-list.tsx +0 -9
- package/lib/cli/starters/nextjs/src/components/mayura/ui.css +0 -14
- package/lib/cli/starters/nextjs/src/connect.js +0 -21
- package/lib/cli/starters/nextjs/src/session.js +0 -138
- package/lib/cli/starters/nextjs/src/style.css +0 -11
- package/lib/cli/starters/nextjs/test/server.test.mjs +0 -95
- package/lib/cli/starters/nextjs/test/session.test.mjs +0 -16
- package/lib/cli/starters/nuxt/compose.yaml +0 -19
- package/lib/cli/starters/nuxt/dot-dockerignore +0 -11
- package/lib/cli/starters/nuxt/dot-env.example +0 -7
- package/lib/cli/starters/nuxt/dot-gitignore +0 -14
- package/lib/cli/starters/nuxt/scripts/setup.mjs +0 -9
- package/lib/cli/starters/nuxt/server/application.mjs +0 -74
- package/lib/cli/starters/nuxt/server/auth.mjs +0 -24
- package/lib/cli/starters/nuxt/server/worker.mjs +0 -11
- package/lib/cli/starters/nuxt/server/workflows.mjs +0 -23
- package/lib/cli/starters/nuxt/src/connect.js +0 -21
- package/lib/cli/starters/nuxt/src/session.js +0 -138
- package/lib/cli/starters/nuxt/src/style.css +0 -11
- package/lib/cli/starters/nuxt/test/server.test.mjs +0 -95
- package/lib/cli/starters/nuxt/test/session.test.mjs +0 -16
- package/lib/cli/starters/react-router/Dockerfile +0 -12
- package/lib/cli/starters/react-router/compose.yaml +0 -19
- package/lib/cli/starters/react-router/dot-dockerignore +0 -11
- package/lib/cli/starters/react-router/dot-env.example +0 -7
- package/lib/cli/starters/react-router/dot-gitignore +0 -14
- package/lib/cli/starters/react-router/scripts/setup.mjs +0 -9
- package/lib/cli/starters/react-router/server/application.mjs +0 -74
- package/lib/cli/starters/react-router/server/auth.mjs +0 -24
- package/lib/cli/starters/react-router/server/worker.mjs +0 -11
- package/lib/cli/starters/react-router/server/workflows.mjs +0 -23
- package/lib/cli/starters/react-router/src/ChatApp.jsx +0 -57
- package/lib/cli/starters/react-router/src/Notebook.jsx +0 -25
- package/lib/cli/starters/react-router/src/components/mayura/approval.tsx +0 -142
- package/lib/cli/starters/react-router/src/components/mayura/thread-history.tsx +0 -142
- package/lib/cli/starters/react-router/src/components/mayura/thread-list.tsx +0 -9
- package/lib/cli/starters/react-router/src/components/mayura/ui.css +0 -14
- package/lib/cli/starters/react-router/src/connect.js +0 -21
- package/lib/cli/starters/react-router/src/session.js +0 -138
- package/lib/cli/starters/react-router/src/style.css +0 -11
- package/lib/cli/starters/react-router/src/vite-env.d.ts +0 -1
- package/lib/cli/starters/react-router/test/server.test.mjs +0 -95
- package/lib/cli/starters/react-router/test/session.test.mjs +0 -16
- package/lib/cli/starters/research-team/dot-dockerignore +0 -7
- package/lib/cli/starters/research-team/dot-github/workflows/ci.yml +0 -13
- package/lib/cli/starters/research-team/dot-gitignore +0 -10
- package/lib/cli/starters/research-team/src/model.ts +0 -40
- package/lib/cli/starters/research-team/tsconfig.json +0 -20
- package/lib/cli/starters/support-agent/dot-dockerignore +0 -7
- package/lib/cli/starters/support-agent/dot-github/workflows/ci.yml +0 -13
- package/lib/cli/starters/support-agent/dot-gitignore +0 -10
- package/lib/cli/starters/support-agent/src/model.ts +0 -40
- package/lib/cli/starters/support-agent/tsconfig.json +0 -20
- package/lib/cli/starters/sveltekit/Dockerfile +0 -12
- package/lib/cli/starters/sveltekit/compose.yaml +0 -19
- package/lib/cli/starters/sveltekit/dot-dockerignore +0 -11
- package/lib/cli/starters/sveltekit/dot-env.example +0 -7
- package/lib/cli/starters/sveltekit/dot-gitignore +0 -14
- package/lib/cli/starters/sveltekit/scripts/setup.mjs +0 -9
- package/lib/cli/starters/sveltekit/server/application.mjs +0 -74
- package/lib/cli/starters/sveltekit/server/auth.mjs +0 -24
- package/lib/cli/starters/sveltekit/server/worker.mjs +0 -11
- package/lib/cli/starters/sveltekit/server/workflows.mjs +0 -23
- package/lib/cli/starters/sveltekit/src/connect.js +0 -21
- package/lib/cli/starters/sveltekit/src/session.js +0 -138
- package/lib/cli/starters/sveltekit/src/style.css +0 -11
- package/lib/cli/starters/sveltekit/src/view.js +0 -49
- package/lib/cli/starters/sveltekit/test/server.test.mjs +0 -95
- package/lib/cli/starters/sveltekit/test/session.test.mjs +0 -16
- package/lib/cli/starters/tanstack-start/Dockerfile +0 -12
- package/lib/cli/starters/tanstack-start/compose.yaml +0 -19
- package/lib/cli/starters/tanstack-start/dot-dockerignore +0 -11
- package/lib/cli/starters/tanstack-start/dot-env.example +0 -7
- package/lib/cli/starters/tanstack-start/dot-gitignore +0 -14
- package/lib/cli/starters/tanstack-start/scripts/setup.mjs +0 -9
- package/lib/cli/starters/tanstack-start/server/application.mjs +0 -74
- package/lib/cli/starters/tanstack-start/server/auth.mjs +0 -24
- package/lib/cli/starters/tanstack-start/server/worker.mjs +0 -11
- package/lib/cli/starters/tanstack-start/server/workflows.mjs +0 -23
- package/lib/cli/starters/tanstack-start/src/ChatApp.jsx +0 -57
- package/lib/cli/starters/tanstack-start/src/Notebook.jsx +0 -25
- package/lib/cli/starters/tanstack-start/src/components/mayura/approval.tsx +0 -142
- package/lib/cli/starters/tanstack-start/src/components/mayura/thread-history.tsx +0 -142
- package/lib/cli/starters/tanstack-start/src/components/mayura/thread-list.tsx +0 -9
- package/lib/cli/starters/tanstack-start/src/components/mayura/ui.css +0 -14
- package/lib/cli/starters/tanstack-start/src/connect.js +0 -21
- package/lib/cli/starters/tanstack-start/src/session.js +0 -138
- package/lib/cli/starters/tanstack-start/src/style.css +0 -11
- package/lib/cli/starters/tanstack-start/test/server.test.mjs +0 -95
- package/lib/cli/starters/tanstack-start/test/session.test.mjs +0 -16
- /package/lib/cli/{starters/hono/src/components/mayura/ui.css → starter-assets/011cacc77ada0de5b447674e9fc4374a247b9a46eb169722b12649753f24188f} +0 -0
- /package/lib/cli/{starters/hono/test/server.test.mjs → starter-assets/0c825d6a776673ec6274cfc29cd45b1a8c56dcb880c291a91075c77e1ef1e4f3} +0 -0
- /package/lib/cli/{starters/hono/server/auth.mjs → starter-assets/0dd570bfacc357d23be3340250090b9a4c6193a49cdd02e9b6789e7bee8433dd} +0 -0
- /package/lib/cli/{starters/hono/src/components/mayura/approval.tsx → starter-assets/11292bd14cdaf27a8f8317ba4ab768d706a726b2e26474b599f3db116674b4b3} +0 -0
- /package/lib/cli/{starters/nextjs/dot-gitignore → starter-assets/1873b02e070347f9a449e07084242982fa6af412c45aa764985d553975b64589} +0 -0
- /package/lib/cli/{starters/hono/src/style.css → starter-assets/2f3869e6d69134e43be713c4590bfe48896a5c54ece6ffc1a4f204cfcfe54218} +0 -0
- /package/lib/cli/{starters/hono/server/worker.mjs → starter-assets/350d77757f548369beff29d658cf1620752d4e23b4b732d99a1b403ca043137f} +0 -0
- /package/lib/cli/{starters/approval-workflow/src/model.ts → starter-assets/37294d24c04b71eaf6d6f0bd52fd4c1cc7a5d3cb63da9c7920ed1d44276da9cb} +0 -0
- /package/lib/cli/{starters/approval-workflow/tsconfig.json → starter-assets/4387d6537dd5924ae62326aa3d7d8cbad1e5abd930aecc9daa6fab1ac2f6ef24} +0 -0
- /package/lib/cli/{starters/hono/dot-dockerignore → starter-assets/4434be031b58cc6ee680b2860b2ad1fe4089af7ee866c13223dfb621dd042ff1} +0 -0
- /package/lib/cli/{starters/hono/src/ChatApp.jsx → starter-assets/46e199317648a076243d6c8e7ffedc48785a6ffc0f203b88c7c4a9479b34c5b9} +0 -0
- /package/lib/cli/{starters/hono/src/components/mayura/thread-history.tsx → starter-assets/4741fccbca2e0d2fc6f61d11af3cf7bcc5f0238b67bb46282287207abdc6c536} +0 -0
- /package/lib/cli/{starters/approval-workflow/dot-dockerignore → starter-assets/4be664708b0120da5d2b73c5a27968093da06b8728f88f2bda2a1ccbf40f6891} +0 -0
- /package/lib/cli/{starters/hono/server/workflows.mjs → starter-assets/4d11f729672df54969a851494877a3c5aee24bb8f8c68eacaaa22e715bf5ed69} +0 -0
- /package/lib/cli/{starters/hono/dot-env.example → starter-assets/4f141323062660c4dc5b563300d57bb4cdbdc7fe9bfba96e43d9c64bb274474e} +0 -0
- /package/lib/cli/{starters/hono/Dockerfile → starter-assets/5471b74c46258d1edb00eb8f60f4219c389a252f7e224f2692f8f3e71ae43e3e} +0 -0
- /package/lib/cli/{starters/hono/scripts/setup.mjs → starter-assets/56e2d6db9fe4b0449c979acd06947a5b776bcc645184b54b8d3654a48bd12c38} +0 -0
- /package/lib/cli/{starters/hono/src/Notebook.jsx → starter-assets/6138d1e2ca4469daf4f5545d140943f6e23b0c37f865051b266ec99695cf181a} +0 -0
- /package/lib/cli/{starters/hono/src/vite-env.d.ts → starter-assets/65996936fbb042915f7b74a200fcdde7e410f32a669b1ab9597cfaa4b0faddb5} +0 -0
- /package/lib/cli/{starters/hono/server/application.mjs → starter-assets/757f43c27415654049ecf01b67d560c83d788108d1aebcf1f16a86d956bd7fb6} +0 -0
- /package/lib/cli/{starters/hono/src/components/mayura/thread-list.tsx → starter-assets/97601d0bf331df7bbde88f7ee269610bc8a1239f8eeb58fded6416e588a5b7dd} +0 -0
- /package/lib/cli/{starters/approval-workflow/dot-github/workflows/ci.yml → starter-assets/aa4182c76778ba2194ecbfde9a960c20181534fd1ab484df126278dbc6eb0186} +0 -0
- /package/lib/cli/{starters/hono/src/session.js → starter-assets/abcc6ebd29ba47a079befb6568054dec8f43d4c729187e4a3610af39789e77be} +0 -0
- /package/lib/cli/{starters/hono/compose.yaml → starter-assets/cc1df6f5ce0eebffc567ecea1d599eba97cd1b94ab01551085c0eb87a28e3a6c} +0 -0
- /package/lib/cli/{starters/hono/src/connect.js → starter-assets/cd3ddb959b277e7d495cc020a6f8146acfbcc9d05ececa3809e8aafcf84504d9} +0 -0
- /package/lib/cli/{starters/hono/test/session.test.mjs → starter-assets/dfe75fd07538427d80ba76767e037e929664c80ff5a41b7544496a789181bb73} +0 -0
- /package/lib/cli/{starters/approval-workflow/dot-gitignore → starter-assets/f3ef7285253ec9668732f535306beee602e91cb6e20f83d4799b3323399ce569} +0 -0
- /package/lib/cli/{starters/nuxt/src/view.js → starter-assets/ff840fe960683d377e78f731b5d4318adf6050384791fa20e4948d34192aa35d} +0 -0
|
@@ -0,0 +1,49 @@
|
|
|
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. To start with a complete application, generate the
|
|
8
|
+
[Modal + Pinecone starter](rag-modal-pinecone-starter.md) with the Mayura 1.2.2 CLI. It includes an offline demo
|
|
9
|
+
and an opt-in hosted walkthrough.
|
|
10
|
+
|
|
11
|
+
The repository also includes a single-file example in `examples/rag.mjs`. It ingests Markdown in a durable workflow, then answers with
|
|
12
|
+
citation identities using a scripted model and a deterministic hashing embedder. After building the workspace, run:
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
node examples/rag.mjs
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
This exercises the ingestion, publication and retrieval paths without an API key. Use the
|
|
19
|
+
[RAG API guide](rag.md) to adapt the example to your application.
|
|
20
|
+
|
|
21
|
+
## Move from the example to your application
|
|
22
|
+
|
|
23
|
+
1. **Resolve scope on the server.** Derive the principal and project from the authenticated request. Create the
|
|
24
|
+
[retrieval tool](rag.md#scoped-retrieval-and-tools) with that scope and its permissions. Keep provider credentials in
|
|
25
|
+
host configuration, and keep scope and index selection out of the model's tool arguments.
|
|
26
|
+
2. **Pin the index space.** Record the embedder, dimensions, chunking settings and catalog scope together.
|
|
27
|
+
When changing any of these, prepare a new index space. For Pinecone, provision a cosine index with self-provided
|
|
28
|
+
vectors and matching dimensions. See the [Pinecone integration](../integrations/vector-pinecone.md).
|
|
29
|
+
3. **Publish from a separate ingestion workflow.** Stage embeddings first, then activate the exact revision through
|
|
30
|
+
the catalog. Keep ingestion credentials and write permission out of the answering path. Preserve the durable
|
|
31
|
+
journal so a restart can reuse completed work and surface uncertain results for reconciliation.
|
|
32
|
+
4. **Return evidence the viewer can open.** Resolve citations to the active source revision and check access at
|
|
33
|
+
display time. Keep citation IDs paired with their source offsets. Ask the agent to abstain when it lacks enough
|
|
34
|
+
evidence, and review generated claims against the cited passages.
|
|
35
|
+
|
|
36
|
+
## Qualify the deployment you intend to operate
|
|
37
|
+
|
|
38
|
+
Use representative documents and independently reviewed questions. Include single-source and multi-source
|
|
39
|
+
answers, insufficient-evidence cases, unpublished revisions and access denials. Evaluate evidence coverage and
|
|
40
|
+
answer grounding separately. Measure retrieval latency and full answer latency under expected concurrent load.
|
|
41
|
+
|
|
42
|
+
Exercise recovery by interrupting ingestion and retrieval. Verify which operations resume, which results are
|
|
43
|
+
reused, and how uncertain paid work is reconciled. Check that cleanup receipts account for every resource
|
|
44
|
+
allocated by the qualification run and preserve pre-existing resources.
|
|
45
|
+
|
|
46
|
+
Mayura V1.2.1 qualifies the [registered Modal and Pinecone Loki v28 profile](rag-production.md) within its
|
|
47
|
+
tested software-operations workload. Other combinations of corpus, models, providers and deployment settings
|
|
48
|
+
need their own evidence. The 4.725-second p95 upper bound applies to acquisition and ranking in the 40-case
|
|
49
|
+
evaluation. Use your own end-to-end measurements for an answer-latency target.
|
|
@@ -0,0 +1,65 @@
|
|
|
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
|
+
Use Node.js 24.14.1 or a later supported 24.x release. Generate the project directly from the published Mayura 1.2.2
|
|
13
|
+
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. Use the offsets to locate the passage in the fixture. The tests exercise the hosted
|
|
36
|
+
protocol with local fixtures. For an example that also deletes a source and checks that it stops appearing in
|
|
37
|
+
retrieval, see the [RAG quickstart](rag-quickstart.md).
|
|
38
|
+
|
|
39
|
+
## Connect Modal and Pinecone
|
|
40
|
+
|
|
41
|
+
Follow the generated README to deploy `modal-app.py` as a private Modal Function and create a Modal workspace
|
|
42
|
+
proxy token before setting up a Shared Endpoint for DeepSeek V4.1 Flash 1017. In
|
|
43
|
+
[Pinecone](../integrations/vector-pinecone.md), create a dedicated
|
|
44
|
+
768-dimensional cosine index with self-provided vectors. The starter uses the `2025-10` data-plane API.
|
|
45
|
+
|
|
46
|
+
On Windows PowerShell, set `$env:PYTHONIOENCODING = 'utf-8'` before running `modal deploy` if your console
|
|
47
|
+
uses a legacy encoding. Modal streams the model pull's progress characters during the first image build.
|
|
48
|
+
|
|
49
|
+
Copy the generated `.env.example` to `.env`. Set the data-plane host and key, the Modal environment and SDK
|
|
50
|
+
credentials, the Modal inference endpoint hostname and proxy token, and the per-operation USD-micro bounds.
|
|
51
|
+
Use a stable principal ID, project ID and persistent SQLite path. Test with the sample public corpus first.
|
|
52
|
+
|
|
53
|
+
```sh
|
|
54
|
+
npm run build
|
|
55
|
+
npm run ingest -- --hosted on-call fixtures/on-call.md
|
|
56
|
+
npm run ask -- --hosted "When should the incident summary be posted?"
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Pinecone can acknowledge changes before queries see them. Let the index catch up if the first search abstains.
|
|
60
|
+
When updating a source, ingest under its existing source ID and retain the same catalog. If an ingestion
|
|
61
|
+
acknowledgement is lost, keep the journal and run ID for [reconciliation](rag.md#durable-ingestion).
|
|
62
|
+
|
|
63
|
+
The starter shares the embedding model and provider choices of the [qualified Loki profile](rag-production.md).
|
|
64
|
+
Its example corpus, prompts and deployment have their own quality and capacity characteristics. Follow
|
|
65
|
+
[Build and deploy a retrieval agent](rag-deployment.md) to qualify your actual corpus, concurrency and scope policy.
|
|
@@ -1,22 +1,42 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: RAG production qualification
|
|
3
|
-
description:
|
|
3
|
+
description: Compare the qualified Modal and Pinecone Loki v28 profile with experimental RAG configurations, and see measured scale, recall, and latency.
|
|
4
4
|
---
|
|
5
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
|
+
|
|
6
17
|
## Qualified production profile
|
|
7
18
|
|
|
8
|
-
|
|
9
|
-
The
|
|
10
|
-
|
|
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
|
|
11
36
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
| Semantic quality and latency | All 40 Loki cases passed the source-reviewed release gate. Acquisition and ranking p95 upper bound was 4.725 s against the 5 s limit |
|
|
16
|
-
| Nomic acquisition load | 120/120 queries on the registered Loki catalog, 417.127 ms acquisition p95 |
|
|
17
|
-
| Pinecone native load | 600/600 timed queries, 45.095 ms p95, complete original request archive recovered |
|
|
18
|
-
| Recovery and scope security | Seven production recovery checkpoints passed, maximum 25.428 s. Scope security passed |
|
|
19
|
-
| Campaign cleanup | Provider evidence covers 14 owned apps and 23 sandboxes. No owned Pinecone indexes remained. The pre-existing Modal app was verified by exact ID |
|
|
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.
|
|
20
40
|
|
|
21
41
|
The revised cleanup verifier uses retained provider observations for current owners and original
|
|
22
42
|
shutdown receipts for historical owners. Missing records alone provide no cleanup credit. The
|
|
@@ -24,6 +44,5 @@ original incomplete audit remains in the evidence, including its completed archi
|
|
|
24
44
|
The offline release check made no provider calls and reran no queries. The original quality,
|
|
25
45
|
latency, recovery, security and 600-query gates still apply.
|
|
26
46
|
|
|
27
|
-
The release receipt
|
|
28
|
-
|
|
29
|
-
for other corpora, providers, models, or deployments.
|
|
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.
|
package/docs/guides/rag.md
CHANGED
|
@@ -9,6 +9,9 @@ only authorized evidence and exact citation identities. The [qualified Modal + P
|
|
|
9
9
|
profile](rag-production.md#qualified-production-profile) is stable within its tested scope. Other RAG profiles
|
|
10
10
|
remain experimental. See [release validation status](release-readiness.md) for the limits of the available evidence.
|
|
11
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
|
+
|
|
12
15
|
## Retrieval configuration
|
|
13
16
|
|
|
14
17
|
Chunk-level fusion remains the default. Use `fusionLevel: 'document'` to combine ranks by document and
|
|
@@ -173,6 +176,11 @@ macro-averages test-set recall and MRR. `citationCoverage` checks that cited chu
|
|
|
173
176
|
it does not establish semantic entailment. Retrieval result metrics contain admitted query/candidate/result counts,
|
|
174
177
|
declared cost reservation and duration, without raw query text, denied document identities or source content.
|
|
175
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
|
+
|
|
176
184
|
## Vector adapters and qualification
|
|
177
185
|
|
|
178
186
|
Built-in exact stores plus six optional integrations share the `VectorStore` contract:
|
|
@@ -187,4 +195,6 @@ The shared offline conformance suite passes locally for all eight stores: scope/
|
|
|
187
195
|
ID replacement, scoped deletion, invalid dimensions and cancellation. Native protocol tests use fake transports;
|
|
188
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.
|
|
189
197
|
|
|
190
|
-
Remote indexes may acknowledge writes before making them searchable.
|
|
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.2 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,39 +1,102 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: "V1.2 release validation status"
|
|
3
|
-
description: "
|
|
2
|
+
title: "V1.2.2 release validation status"
|
|
3
|
+
description: "Main CI, npm publication, registry verification, production RAG qualification and remaining interoperability limits."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
## V1.2.2 publication
|
|
7
|
+
|
|
8
|
+
**1.2.2 was published on November 23, 2026.** All 39 checks, including the Qualification gate, passed on
|
|
9
|
+
[`main`](https://github.com/KartikeyAI/mayura/actions/runs/45167460889) at
|
|
10
|
+
`01911fa26d4f21a2485c42a54b5b935b3d3701a6`. The
|
|
11
|
+
[106-package rehearsal](https://github.com/KartikeyAI/mayura/actions/runs/45167517830) passed on that commit,
|
|
12
|
+
including an upgrade from 1.2.1, secret scanning, and an SBOM with 450 components and no license findings.
|
|
13
|
+
|
|
14
|
+
The [protected release workflow](https://github.com/KartikeyAI/mayura/actions/runs/45172105288) published all 106
|
|
15
|
+
packages under `latest` through npm trusted publishing. It verified archive integrity, provenance, registry
|
|
16
|
+
signatures and clean installation, including installed-package RAG acceptance. A temporary tarball 404
|
|
17
|
+
interrupted the first clean-install check. The successful workflow attempt reused the saved publication
|
|
18
|
+
receipt and qualified the same archives.
|
|
19
|
+
|
|
20
|
+
The protected [`v1.2.2` tag and release](https://github.com/KartikeyAI/mayura/releases/tag/v1.2.2)
|
|
21
|
+
identify the qualified commit and retain the archive manifest, SBOM and verification reports. A separate
|
|
22
|
+
registry check confirmed that all 22 stale `next` tags moved from `1.2.0-rc.1` to `1.2.2`.
|
|
23
|
+
|
|
24
|
+
The [RAG starter](rag-modal-pinecone-starter.md) is available through the published CLI. The
|
|
25
|
+
[registered Modal and Pinecone Loki v28 profile](rag-production.md) retains its scoped production qualification.
|
|
26
|
+
Other RAG profiles and the bounded AG-UI profile remain experimental.
|
|
27
|
+
|
|
28
|
+
## V1.2.1 publication
|
|
29
|
+
|
|
30
|
+
**1.2.1 was published on November 23, 2026.** The [qualification on main](https://github.com/KartikeyAI/mayura/actions/runs/45084310737)
|
|
31
|
+
passed all 39 jobs at `ff69ac1e559b4360f2befffe35f13aece1b4ba89`. The
|
|
32
|
+
[106-package rehearsal](https://github.com/KartikeyAI/mayura/actions/runs/45087206578) passed on the same commit.
|
|
33
|
+
The [protected publication](https://github.com/KartikeyAI/mayura/actions/runs/45088101597) published all 106 packages
|
|
34
|
+
under `latest` with npm trusted publishing. All tarball hashes and provenance were verified, and all 22 existing
|
|
35
|
+
`next` tags were preserved. The [V1.2.1 GitHub release](https://github.com/KartikeyAI/mayura/releases/tag/v1.2.1)
|
|
36
|
+
retains the manifests and publication receipt.
|
|
37
|
+
|
|
38
|
+
The [Modal and Pinecone Loki v28 profile](rag-production.md) passed production RAG qualification for its
|
|
39
|
+
registered workload. Other RAG profiles and the bounded AG-UI profile remain experimental.
|
|
40
|
+
|
|
41
|
+
## V1.2.0 publication history
|
|
42
|
+
|
|
43
|
+
Stable **1.2.0 was published on 2026-10-23** for `mayura` and all **105 extensions** under `latest`, through
|
|
44
|
+
`release.yml` and the protected `release` environment using npm trusted publishing. All **106 packages** have
|
|
45
|
+
verified archive integrity and provenance, and every existing `next` tag was preserved. The
|
|
46
|
+
[stable GitHub Release and v1.2.0 tag](https://github.com/KartikeyAI/mayura/releases/tag/v1.2.0) identify the qualified
|
|
47
|
+
source commit, `ac32daa412d7209066530cfdc9542d820d054b86`.
|
|
48
|
+
The local and earlier release-branch snapshots below remain historical evidence; publication does not establish
|
|
49
|
+
interoperability with unqualified real external services.
|
|
9
50
|
|
|
10
51
|
## Completed CI qualification
|
|
11
52
|
|
|
12
|
-
The [main qualification run
|
|
53
|
+
The [main qualification run 39928903180](https://github.com/KartikeyAI/mayura/actions/runs/39928903180) passed all
|
|
13
54
|
**39 jobs**, including the required **Qualification gate**: shared checks, six OS/Node consumer lanes, 12 unit-test
|
|
14
55
|
shards, 12 bundle shards, four database integration shards, shared runtimes and two container lanes. Linux, macOS and
|
|
15
56
|
Windows retain Node 22.23.2 and 24.14.1 coverage. Branch protection requires the aggregate gate. The
|
|
16
|
-
[main website run
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
57
|
+
[main website run 39914438301](https://github.com/KartikeyAI/mayura/actions/runs/39914438301) also passed at the
|
|
58
|
+
version-preparation commit `0ba32b038ba8b8a8de6b40e1f4781f36f6a9ba00`, before the final workflow/test-fixture follow-up.
|
|
59
|
+
|
|
60
|
+
[PR #22](https://github.com/KartikeyAI/mayura/pull/22) prepared the coordinated version and
|
|
61
|
+
[PR #23](https://github.com/KartikeyAI/mayura/pull/23) corrected artifact retention and a Windows graph stress fixture.
|
|
62
|
+
Each passed all 39 qualification jobs before merging. The final main run above qualifies the published source.
|
|
63
|
+
The full publisher requires a committed version, exact-main qualification and source-bound archive/receipt
|
|
64
|
+
verification, and creates only the version tag and GitHub Release after publication. It does not commit, rebase or
|
|
65
|
+
push main.
|
|
66
|
+
|
|
67
|
+
The [full workflow rehearsal 39932634159](https://github.com/KartikeyAI/mayura/actions/runs/39932634159) passed at
|
|
68
|
+
that same source with `version=1.2.0`, `package_set=all` and `dry_run=true`: build, upgrade from V1.1.0, all 106 archive
|
|
69
|
+
checks, 450-component SBOM checks with no license findings, and 106 offline npm dry runs. Its downloaded
|
|
70
|
+
`release-rehearsal-1.2.0` artifact was verified independently. This rehearsal preceded live publication.
|
|
71
|
+
|
|
72
|
+
## Completed stable publication
|
|
73
|
+
|
|
74
|
+
The [stable release run 39934428405](https://github.com/KartikeyAI/mayura/actions/runs/39934428405) succeeded with
|
|
75
|
+
`version=1.2.0`, `package_set=all` and `dry_run=false`, after approval of the protected `release` environment.
|
|
76
|
+
All **106 OIDC uploads were accepted** and the publisher verified all versions, provenance and distribution tags
|
|
77
|
+
before creating the source-bound `v1.2.0` tag and stable GitHub Release. This establishes successful trusted publishing
|
|
78
|
+
for every package, superseding the earlier 22-package RC-only evidence and 84 configuration-only readbacks.
|
|
79
|
+
|
|
80
|
+
Independent public registry checks confirmed all 106 package identities and versions, SHA-512 archive integrity,
|
|
81
|
+
provenance and `latest=1.2.0` against the saved publication archives and receipt. Every `next` value matched the
|
|
82
|
+
pre-publication baseline: the reviewed 22-package set remains at `1.2.0-rc.1`, and packages without `next` still have
|
|
83
|
+
no such tag. Stable publication did not promote or replace the prerelease channel.
|
|
84
|
+
|
|
85
|
+
The [release evidence artifact](https://github.com/KartikeyAI/mayura/actions/runs/39934428405/artifacts/12494296045),
|
|
86
|
+
`release-all-1.2.0`, contains all 106 archives, their manifest, the complete published receipt, exact-main
|
|
87
|
+
qualification, the 450-component SBOM and release notes. Its downloaded ZIP matched SHA-256
|
|
88
|
+
`cc0c2d22b23c9ccfdf7856378cb5234f6980efe13c92a2b4945554a65236a39f`.
|
|
89
|
+
The receipt and qualification both identify the published source and successful main run `39928903180`.
|
|
90
|
+
|
|
91
|
+
### Historical RC1 publication
|
|
24
92
|
|
|
25
93
|
The [RC1 release run 39884720470](https://github.com/KartikeyAI/mayura/actions/runs/39884720470) succeeded through
|
|
26
94
|
`release.yml` and the protected `release` environment at `ba4a1e868904453e533e57e2876d64ab8536c454`, after
|
|
27
95
|
[its 39-job main qualification](https://github.com/KartikeyAI/mayura/actions/runs/39879429442). All 22 selected archives matched
|
|
28
96
|
their public npm integrity metadata, every version had provenance, and `next` resolved to `1.2.0-rc.1`. Existing
|
|
29
97
|
`latest` values remained `1.1.0` for `mayura` and the OpenAI provider, and `1.2.0-rc.0` for the 20 newly introduced
|
|
30
|
-
extensions.
|
|
31
|
-
|
|
32
|
-
On **2026-10-23**, read-only npm checks confirmed that all other **84 packages** have the expected trusted-publisher
|
|
33
|
-
configuration: `KartikeyAI/mayura`, `release.yml`, environment `release`, and direct publishing allowed. No trust
|
|
34
|
-
settings were changed. The CLI readback does not expose activation or expiry status and is not proof of a successful
|
|
35
|
-
OIDC exchange; the first live publication remains unproven for those packages. Recheck eligibility at release time
|
|
36
|
-
and recreate any expired configurations. Public registry preflight also found all 106 stable `1.2.0` versions unused.
|
|
98
|
+
extensions. Those `latest` values describe the RC1 snapshot; stable publication subsequently advanced all 106
|
|
99
|
+
packages to `1.2.0` while preserving their `next` tags, as verified above.
|
|
37
100
|
|
|
38
101
|
### Historical release-branch run
|
|
39
102
|
|
|
@@ -79,8 +142,8 @@ Node 24.15.0 for framework starter qualification.
|
|
|
79
142
|
| Frozen installation, secret scan and licenses/SBOM | Passed; 450 SBOM components, no license findings |
|
|
80
143
|
|
|
81
144
|
These counts describe the completed qualification snapshot before this status page was added. Documentation edits
|
|
82
|
-
|
|
83
|
-
workflow
|
|
145
|
+
were checked again during release preparation. These local archives were staged for verification; the completed
|
|
146
|
+
workflow rehearsal and stable publication generated their own archives bound to the final source and V1.2 version.
|
|
84
147
|
|
|
85
148
|
The integration result combines the latest execution of each case. The original all-service run had 54 failures
|
|
86
149
|
and 313 skipped cases. Focused reruns cleared all executed failures, including a final serial run of 107 cases
|
|
@@ -90,19 +153,14 @@ concurrent builds and unit-suite load. The subsequent complete CI pass is record
|
|
|
90
153
|
|
|
91
154
|
## Remaining qualifications and limitations
|
|
92
155
|
|
|
93
|
-
- **Stable publication:** full-release safeguards passed PR and main qualification at the recorded source; scoped
|
|
94
|
-
RC1 publication passed at its separately recorded source. The stable version PR still needs review, qualification
|
|
95
|
-
and green main checks, then a final-source workflow rehearsal and publication approval. All other 84 publisher
|
|
96
|
-
configurations matched in read-only checks, but were not exercised by RC1 and their activation/expiry status was
|
|
97
|
-
not exposed by the CLI. Recheck eligibility and replace any expired configurations before full publication.
|
|
98
156
|
- **Providers and gateways:** offline transports and the provider harness dry run passed. Paid inference, real
|
|
99
157
|
embedding endpoints, gateway accounting and remote discovery behavior have not been qualified.
|
|
100
158
|
- **Authorization:** OpenFGA, Cedar, Permit.io and Oso passed offline tests and package checks. Real provider/native
|
|
101
159
|
engine interoperability, deployed policies and revision consistency remain host responsibilities and unqualified
|
|
102
160
|
here. Amazon Verified Permissions is outside the implemented Cedar adapter.
|
|
103
|
-
- **RAG:** the [
|
|
104
|
-
|
|
105
|
-
|
|
161
|
+
- **RAG:** the [qualified Modal and Pinecone profile](rag-production.md) covers one pinned Loki workload. Other
|
|
162
|
+
configurations have offline or narrower test evidence. Check the vector store, index behavior, workload and
|
|
163
|
+
security requirements for the deployment you plan to operate.
|
|
106
164
|
- **AG-UI:** the [experimental bounded profile](ag-ui.md) passed adapter and native server tests. The opt-in reference
|
|
107
165
|
HttpAgent/schema harness, CopilotKit compatibility and the notebook's rendered browser flow remain unqualified.
|
|
108
166
|
Arbitrary in-flight paid-operation recovery, conversation branching, audio/video media and reasoning disclosure
|
|
@@ -112,13 +170,14 @@ concurrent builds and unit-suite load. The subsequent complete CI pass is record
|
|
|
112
170
|
Rendered browser interaction, visual/accessibility checks and live deployment qualification remain outstanding.
|
|
113
171
|
See [framework starters](framework-starters.md) and [copy-in UI](copy-in-ui.md).
|
|
114
172
|
|
|
115
|
-
|
|
116
|
-
requires the corresponding real-service or reference-client qualification
|
|
117
|
-
sufficient evidence for that claim.
|
|
173
|
+
The published release retains the experimental labels and these limits. Any future claim of stable external
|
|
174
|
+
interoperability requires the corresponding real-service or reference-client qualification; an offline pass or
|
|
175
|
+
successful npm publication is not sufficient evidence for that claim.
|
|
118
176
|
|
|
119
|
-
## Release
|
|
177
|
+
## Release completion
|
|
120
178
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
179
|
+
The coordinated version PR, artifact/fixture follow-up, full main qualification, final-source rehearsal, protected
|
|
180
|
+
environment approval, 106-package stable publication and source-bound tag/GitHub Release are complete.
|
|
181
|
+
Trusted publishing is verified by successful OIDC publication for all 106 packages, rather than configuration
|
|
182
|
+
readback alone. The remaining work concerns the explicitly unqualified integrations, rendered browser flows and
|
|
183
|
+
deployments listed above; stable package availability does not qualify those application paths.
|
package/docs/guides/sandboxes.md
CHANGED
|
@@ -204,7 +204,7 @@ the container's configuration or on the host's command lines.
|
|
|
204
204
|
| `@mayurajs/sandbox-modal` | [Modal](https://modal.com/docs/guide/sandboxes) gVisor or VM sandboxes; Node, Deno and Bun | none, all, domains | tunnel URL | no |
|
|
205
205
|
| `@mayurajs/sandbox-railway` | [Railway](https://docs.railway.com/sandboxes) Linux VMs from Railway's default image | all only | Railway domain | no |
|
|
206
206
|
| `@mayurajs/sandbox-northflank` | [Northflank](https://northflank.com/docs/v1/application/sandboxes) microVM services; Node | all only | no | no |
|
|
207
|
-
| `@mayurajs/sandbox-codesandbox` | [CodeSandbox](
|
|
207
|
+
| `@mayurajs/sandbox-codesandbox` | [CodeSandbox](../integrations/sandbox-codesandbox.md) private microVMs from a template; Node; isolated development only | all only | host-token URL | no |
|
|
208
208
|
| `@mayurajs/sandbox-cloudflare` | [Cloudflare Sandboxes](https://developers.cloudflare.com/sandbox/) through your sandbox bridge Worker; any runtime | all only | no | no |
|
|
209
209
|
| `@mayurajs/sandbox-apple-container` | [Apple `container`](https://github.com/apple/container) VMs on this Mac (macOS 26, Apple silicon); Node | all; none as a host-only network you name | no | no |
|
|
210
210
|
|