@raybase/create 0.0.1 → 0.3.3
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/LICENSE +21 -0
- package/THIRD_PARTY_NOTICES.md +38 -0
- package/assets/apple-touch-icons/0.png +0 -0
- package/assets/apple-touch-icons/1.png +0 -0
- package/assets/apple-touch-icons/2.png +0 -0
- package/assets/apple-touch-icons/3.png +0 -0
- package/assets/apple-touch-icons/4.png +0 -0
- package/assets/apple-touch-icons/5.png +0 -0
- package/assets/apple-touch-icons/6.png +0 -0
- package/assets/apple-touch-icons/7.png +0 -0
- package/assets/apple-touch-icons/8.png +0 -0
- package/assets/apple-touch-icons/9.png +0 -0
- package/assets/apple-touch-icons/A.png +0 -0
- package/assets/apple-touch-icons/B.png +0 -0
- package/assets/apple-touch-icons/C.png +0 -0
- package/assets/apple-touch-icons/D.png +0 -0
- package/assets/apple-touch-icons/E.png +0 -0
- package/assets/apple-touch-icons/F.png +0 -0
- package/assets/apple-touch-icons/G.png +0 -0
- package/assets/apple-touch-icons/H.png +0 -0
- package/assets/apple-touch-icons/I.png +0 -0
- package/assets/apple-touch-icons/J.png +0 -0
- package/assets/apple-touch-icons/K.png +0 -0
- package/assets/apple-touch-icons/L.png +0 -0
- package/assets/apple-touch-icons/M.png +0 -0
- package/assets/apple-touch-icons/N.png +0 -0
- package/assets/apple-touch-icons/O.png +0 -0
- package/assets/apple-touch-icons/P.png +0 -0
- package/assets/apple-touch-icons/Q.png +0 -0
- package/assets/apple-touch-icons/R.png +0 -0
- package/assets/apple-touch-icons/S.png +0 -0
- package/assets/apple-touch-icons/T.png +0 -0
- package/assets/apple-touch-icons/U.png +0 -0
- package/assets/apple-touch-icons/V.png +0 -0
- package/assets/apple-touch-icons/W.png +0 -0
- package/assets/apple-touch-icons/X.png +0 -0
- package/assets/apple-touch-icons/Y.png +0 -0
- package/assets/apple-touch-icons/Z.png +0 -0
- package/assets/apple-touch-icons/default.png +0 -0
- package/dist/.source-hash +1 -0
- package/dist/index.d.ts +56 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2351 -0
- package/dist/index.js.map +1 -0
- package/dist/raybase-package-ranges.d.ts +11 -0
- package/dist/raybase-package-ranges.d.ts.map +1 -0
- package/dist/raybase-package-ranges.js +11 -0
- package/dist/raybase-package-ranges.js.map +1 -0
- package/dist/source-fetch.d.ts +91 -0
- package/dist/source-fetch.d.ts.map +1 -0
- package/dist/source-fetch.js +325 -0
- package/dist/source-fetch.js.map +1 -0
- package/dist/source-hash.d.ts +2 -0
- package/dist/source-hash.d.ts.map +1 -0
- package/dist/source-hash.js +23 -0
- package/dist/source-hash.js.map +1 -0
- package/dist/starter-description.d.ts +44 -0
- package/dist/starter-description.d.ts.map +1 -0
- package/dist/starter-description.js +273 -0
- package/dist/starter-description.js.map +1 -0
- package/dist/starter-source.d.ts +43 -0
- package/dist/starter-source.d.ts.map +1 -0
- package/dist/starter-source.js +156 -0
- package/dist/starter-source.js.map +1 -0
- package/dist/store-app-apply.d.ts +27 -0
- package/dist/store-app-apply.d.ts.map +1 -0
- package/dist/store-app-apply.js +100 -0
- package/dist/store-app-apply.js.map +1 -0
- package/dist/store-app-manifest.d.ts +86 -0
- package/dist/store-app-manifest.d.ts.map +1 -0
- package/dist/store-app-manifest.js +110 -0
- package/dist/store-app-manifest.js.map +1 -0
- package/dist/store-app-registry.d.ts +30 -0
- package/dist/store-app-registry.d.ts.map +1 -0
- package/dist/store-app-registry.js +232 -0
- package/dist/store-app-registry.js.map +1 -0
- package/models/recommended.json +42 -0
- package/modules/api/templates/react-router/app/api/operations.ts +8 -0
- package/modules/api/templates/tanstack-start/src/api/operations.ts +15 -0
- package/modules/docs/templates/astro-emdash/content/docs/getting-started.mdx +13 -0
- package/modules/docs/templates/astro-emdash/content/docs/index.mdx +13 -0
- package/modules/docs/templates/astro-emdash/content/docs/mcp.mdx +11 -0
- package/modules/docs/templates/astro-emdash/content/docs/meta.json +4 -0
- package/modules/docs/templates/astro-emdash/site/content/docs/getting-started.mdx +12 -0
- package/modules/docs/templates/astro-emdash/site/content/docs/index.mdx +12 -0
- package/modules/docs/templates/astro-emdash/site/content/docs/mcp.mdx +10 -0
- package/modules/docs/templates/astro-emdash/site/content/docs/meta.json +4 -0
- package/modules/docs/templates/astro-emdash/site/source.config.ts +10 -0
- package/modules/docs/templates/astro-emdash/site/src/docs/docs-assets.ts +1 -0
- package/modules/docs/templates/astro-emdash/site/src/docs/docs-client.tsx +22 -0
- package/modules/docs/templates/astro-emdash/site/src/docs/docs-data.ts +24 -0
- package/modules/docs/templates/astro-emdash/site/src/docs/docs-handler.tsx +105 -0
- package/modules/docs/templates/astro-emdash/site/src/docs/docs-layout.tsx +56 -0
- package/modules/docs/templates/astro-emdash/site/src/docs/docs-mdx.tsx +79 -0
- package/modules/docs/templates/astro-emdash/site/src/docs/docs-page-actions.tsx +146 -0
- package/modules/docs/templates/astro-emdash/site/src/docs/docs-page.tsx +70 -0
- package/modules/docs/templates/astro-emdash/site/src/docs/llm-text.ts +61 -0
- package/modules/docs/templates/astro-emdash/site/src/docs/source.ts +7 -0
- package/modules/docs/templates/astro-emdash/site/src/pages/docs/[...slug].ts +6 -0
- package/modules/docs/templates/astro-emdash/site/src/pages/docs/api/markdown.ts +4 -0
- package/modules/docs/templates/astro-emdash/site/src/pages/docs/api/search.ts +4 -0
- package/modules/docs/templates/astro-emdash/site/src/pages/llms.txt.ts +8 -0
- package/modules/docs/templates/astro-emdash/site/src/styles-docs.css +3 -0
- package/modules/docs/templates/astro-emdash/source.config.ts +10 -0
- package/modules/docs/templates/astro-emdash/src/docs/docs-assets.ts +1 -0
- package/modules/docs/templates/astro-emdash/src/docs/docs-client.tsx +22 -0
- package/modules/docs/templates/astro-emdash/src/docs/docs-data.ts +24 -0
- package/modules/docs/templates/astro-emdash/src/docs/docs-handler.tsx +105 -0
- package/modules/docs/templates/astro-emdash/src/docs/docs-layout.tsx +56 -0
- package/modules/docs/templates/astro-emdash/src/docs/docs-mdx.tsx +79 -0
- package/modules/docs/templates/astro-emdash/src/docs/docs-page-actions.tsx +146 -0
- package/modules/docs/templates/astro-emdash/src/docs/docs-page.tsx +70 -0
- package/modules/docs/templates/astro-emdash/src/docs/llm-text.ts +61 -0
- package/modules/docs/templates/astro-emdash/src/docs/source.ts +7 -0
- package/modules/docs/templates/astro-emdash/src/routes/docs/$.tsx +22 -0
- package/modules/docs/templates/astro-emdash/src/routes/docs/api/markdown.ts +12 -0
- package/modules/docs/templates/astro-emdash/src/routes/docs/api/search.ts +12 -0
- package/modules/docs/templates/astro-emdash/src/routes/docs.index.tsx +22 -0
- package/modules/docs/templates/astro-emdash/src/routes/docs.tsx +22 -0
- package/modules/docs/templates/astro-emdash/src/styles-docs.css +3 -0
- package/modules/docs/templates/react-router/app/components/mdx.tsx +79 -0
- package/modules/docs/templates/react-router/app/lib/layout.shared.tsx +54 -0
- package/modules/docs/templates/react-router/app/lib/source.ts +7 -0
- package/modules/docs/templates/react-router/app/routes/docs.$.tsx +49 -0
- package/modules/docs/templates/react-router/app/routes/docs.api.search.ts +10 -0
- package/modules/docs/templates/react-router/app/routes/docs.tsx +13 -0
- package/modules/docs/templates/react-router/content/docs/getting-started.mdx +8 -0
- package/modules/docs/templates/react-router/content/docs/index.mdx +8 -0
- package/modules/docs/templates/react-router/content/docs/mcp.mdx +121 -0
- package/modules/docs/templates/react-router/content/docs/meta.json +4 -0
- package/modules/docs/templates/react-router/source.config.ts +5 -0
- package/modules/docs/templates/tanstack-start/content/docs/getting-started.mdx +10 -0
- package/modules/docs/templates/tanstack-start/content/docs/index.mdx +8 -0
- package/modules/docs/templates/tanstack-start/content/docs/mcp.mdx +121 -0
- package/modules/docs/templates/tanstack-start/content/docs/meta.json +4 -0
- package/modules/docs/templates/tanstack-start/source.config.ts +10 -0
- package/modules/docs/templates/tanstack-start/src/docs/docs-assets.ts +1 -0
- package/modules/docs/templates/tanstack-start/src/docs/docs-client.tsx +22 -0
- package/modules/docs/templates/tanstack-start/src/docs/docs-data.ts +24 -0
- package/modules/docs/templates/tanstack-start/src/docs/docs-handler.tsx +105 -0
- package/modules/docs/templates/tanstack-start/src/docs/docs-layout.tsx +56 -0
- package/modules/docs/templates/tanstack-start/src/docs/docs-mdx.tsx +79 -0
- package/modules/docs/templates/tanstack-start/src/docs/docs-page-actions.tsx +146 -0
- package/modules/docs/templates/tanstack-start/src/docs/docs-page.tsx +70 -0
- package/modules/docs/templates/tanstack-start/src/docs/llm-text.ts +61 -0
- package/modules/docs/templates/tanstack-start/src/docs/source.ts +7 -0
- package/modules/docs/templates/tanstack-start/src/routes/docs/$.tsx +22 -0
- package/modules/docs/templates/tanstack-start/src/routes/docs/api/markdown.ts +12 -0
- package/modules/docs/templates/tanstack-start/src/routes/docs/api/search.ts +12 -0
- package/modules/docs/templates/tanstack-start/src/routes/docs.index.tsx +22 -0
- package/modules/docs/templates/tanstack-start/src/routes/docs.tsx +22 -0
- package/modules/docs/templates/tanstack-start/src/styles-docs.css +3 -0
- package/modules/guide/templates/astro-emdash/content/guide/capability-map.md +17 -0
- package/modules/guide/templates/astro-emdash/src/components/guide-widget.tsx +41 -0
- package/modules/guide/templates/astro-emdash/src/guide/actions.ts +8 -0
- package/modules/guide/templates/astro-emdash/src/guide/config.ts +21 -0
- package/modules/guide/templates/astro-emdash/src/guide/corpus.gen.ts +4 -0
- package/modules/guide/templates/astro-emdash/src/guide/corpus.manifest.json +72 -0
- package/modules/guide/templates/astro-emdash/src/guide/corpus.ts +4 -0
- package/modules/guide/templates/astro-emdash/src/guide/resources.json +4 -0
- package/modules/guide/templates/react-router/app/components/guide-widget.tsx +29 -0
- package/modules/guide/templates/react-router/app/guide/actions.ts +3 -0
- package/modules/guide/templates/react-router/app/guide/config.ts +21 -0
- package/modules/guide/templates/react-router/app/guide/corpus.gen.ts +4 -0
- package/modules/guide/templates/react-router/app/guide/corpus.manifest.json +22 -0
- package/modules/guide/templates/react-router/app/guide/corpus.ts +4 -0
- package/modules/guide/templates/react-router/app/guide/resources.json +4 -0
- package/modules/guide/templates/react-router/content/guide/capability-map.md +13 -0
- package/modules/guide/templates/tanstack-start/content/guide/capability-map.md +17 -0
- package/modules/guide/templates/tanstack-start/src/components/guide-widget.tsx +41 -0
- package/modules/guide/templates/tanstack-start/src/guide/actions.ts +17 -0
- package/modules/guide/templates/tanstack-start/src/guide/config.ts +21 -0
- package/modules/guide/templates/tanstack-start/src/guide/corpus.gen.ts +4 -0
- package/modules/guide/templates/tanstack-start/src/guide/corpus.manifest.json +22 -0
- package/modules/guide/templates/tanstack-start/src/guide/corpus.ts +4 -0
- package/modules/guide/templates/tanstack-start/src/guide/resources.json +4 -0
- package/modules/openai-subscription/templates/astro-emdash/.agents/skills/raybase-openai-subscription/SKILL.md +57 -0
- package/modules/openai-subscription/templates/astro-emdash/.agents/skills/raybase-openai-subscription/references/compatibility-and-testing.md +129 -0
- package/modules/openai-subscription/templates/astro-emdash/.agents/skills/raybase-openai-subscription/references/module-contract.md +133 -0
- package/modules/openai-subscription/templates/astro-emdash/.agents/skills/raybase-openai-subscription/references/structured-outputs.md +159 -0
- package/modules/openai-subscription/templates/astro-emdash/src/openai-subscription.ts +11 -0
- package/modules/openai-subscription/templates/react-router/.agents/skills/raybase-openai-subscription/SKILL.md +57 -0
- package/modules/openai-subscription/templates/react-router/.agents/skills/raybase-openai-subscription/references/compatibility-and-testing.md +129 -0
- package/modules/openai-subscription/templates/react-router/.agents/skills/raybase-openai-subscription/references/module-contract.md +133 -0
- package/modules/openai-subscription/templates/react-router/.agents/skills/raybase-openai-subscription/references/structured-outputs.md +159 -0
- package/modules/openai-subscription/templates/react-router/app/openai-subscription.ts +11 -0
- package/modules/openai-subscription/templates/tanstack-start/.agents/skills/raybase-openai-subscription/SKILL.md +57 -0
- package/modules/openai-subscription/templates/tanstack-start/.agents/skills/raybase-openai-subscription/references/compatibility-and-testing.md +129 -0
- package/modules/openai-subscription/templates/tanstack-start/.agents/skills/raybase-openai-subscription/references/module-contract.md +133 -0
- package/modules/openai-subscription/templates/tanstack-start/.agents/skills/raybase-openai-subscription/references/structured-outputs.md +159 -0
- package/modules/openai-subscription/templates/tanstack-start/src/openai-subscription.ts +11 -0
- package/package.json +34 -8
- package/skills/README.md +122 -0
- package/skills/raybase-actions/SKILL.md +223 -0
- package/skills/raybase-actions/references/action-patterns.md +190 -0
- package/skills/raybase-actions/references/adapting-actions.md +93 -0
- package/skills/raybase-actions/references/testing-actions.md +48 -0
- package/skills/raybase-agent-debugging/SKILL.md +230 -0
- package/skills/raybase-ai/SKILL.md +1310 -0
- package/skills/raybase-api/SKILL.md +45 -0
- package/skills/raybase-astro-emdash/SKILL.md +143 -0
- package/skills/raybase-astro-emdash-content-model/SKILL.md +217 -0
- package/skills/raybase-astro-emdash-content-model/references/LICENSE-emdash +9 -0
- package/skills/raybase-astro-emdash-content-model/references/emdash-collections.md +265 -0
- package/skills/raybase-astro-emdash-design/LICENSE-impeccable +60 -0
- package/skills/raybase-astro-emdash-design/SKILL.md +170 -0
- package/skills/raybase-astro-emdash-design/reference/color.md +91 -0
- package/skills/raybase-astro-emdash-design/reference/copy.md +73 -0
- package/skills/raybase-astro-emdash-design/reference/direction.md +115 -0
- package/skills/raybase-astro-emdash-design/reference/imagery.md +84 -0
- package/skills/raybase-astro-emdash-design/reference/layout.md +69 -0
- package/skills/raybase-astro-emdash-design/reference/motion.md +75 -0
- package/skills/raybase-astro-emdash-design/reference/polish.md +75 -0
- package/skills/raybase-astro-emdash-design/reference/typography.md +72 -0
- package/skills/raybase-astro-emdash-galley/SKILL.md +265 -0
- package/skills/raybase-astro-emdash-migration/SKILL.md +218 -0
- package/skills/raybase-astro-emdash-migration/references/inventory-and-conversion.md +242 -0
- package/skills/raybase-astro-emdash-security-review/SKILL.md +68 -0
- package/skills/raybase-astro-emdash-theme-selection/SKILL.md +216 -0
- package/skills/raybase-auth/SKILL.md +358 -0
- package/skills/raybase-background-jobs/SKILL.md +774 -0
- package/skills/raybase-building/SKILL.md +409 -0
- package/skills/raybase-building/references/interview-and-spec.md +87 -0
- package/skills/raybase-building/references/planning-docs.md +26 -0
- package/skills/raybase-building/references/schema-and-config.md +70 -0
- package/skills/raybase-changing-a-live-app/SKILL.md +119 -0
- package/skills/raybase-data-and-policies/SKILL.md +377 -0
- package/skills/raybase-deploy/SKILL.md +136 -0
- package/skills/raybase-docs-writing/SKILL.md +119 -0
- package/skills/raybase-guide/SKILL.md +235 -0
- package/skills/raybase-mcp/SKILL.md +309 -0
- package/skills/raybase-mcp/agents/openai.yaml +4 -0
- package/skills/raybase-notifications/SKILL.md +138 -0
- package/skills/raybase-pro-migration/SKILL.md +28 -0
- package/skills/raybase-react-router/SKILL.md +241 -0
- package/skills/raybase-react-router-design/LICENSE-impeccable +60 -0
- package/skills/raybase-react-router-design/SKILL.md +135 -0
- package/skills/raybase-react-router-design/reference/color.md +87 -0
- package/skills/raybase-react-router-design/reference/copy.md +83 -0
- package/skills/raybase-react-router-design/reference/delight.md +48 -0
- package/skills/raybase-react-router-design/reference/interaction.md +91 -0
- package/skills/raybase-react-router-design/reference/layout.md +82 -0
- package/skills/raybase-react-router-design/reference/motion.md +86 -0
- package/skills/raybase-react-router-design/reference/polish.md +79 -0
- package/skills/raybase-react-router-design/reference/typography.md +71 -0
- package/skills/raybase-react-router-security-review/LICENSE +22 -0
- package/skills/raybase-react-router-security-review/SKILL.md +190 -0
- package/skills/raybase-react-router-security-review/agents/openai.yaml +4 -0
- package/skills/raybase-react-router-security-review/references/api-security.md +519 -0
- package/skills/raybase-react-router-security-review/references/authentication.md +353 -0
- package/skills/raybase-react-router-security-review/references/authorization.md +372 -0
- package/skills/raybase-react-router-security-review/references/business-logic.md +443 -0
- package/skills/raybase-react-router-security-review/references/cryptography.md +329 -0
- package/skills/raybase-react-router-security-review/references/csrf.md +398 -0
- package/skills/raybase-react-router-security-review/references/data-protection.md +378 -0
- package/skills/raybase-react-router-security-review/references/deserialization.md +410 -0
- package/skills/raybase-react-router-security-review/references/error-handling.md +436 -0
- package/skills/raybase-react-router-security-review/references/file-security.md +457 -0
- package/skills/raybase-react-router-security-review/references/injection.md +259 -0
- package/skills/raybase-react-router-security-review/references/logging.md +433 -0
- package/skills/raybase-react-router-security-review/references/misconfiguration.md +435 -0
- package/skills/raybase-react-router-security-review/references/modern-threats.md +475 -0
- package/skills/raybase-react-router-security-review/references/raybase-react-router-security.md +235 -0
- package/skills/raybase-react-router-security-review/references/ssrf.md +413 -0
- package/skills/raybase-react-router-security-review/references/supply-chain.md +405 -0
- package/skills/raybase-react-router-security-review/references/xss.md +336 -0
- package/skills/raybase-realtime/SKILL.md +158 -0
- package/skills/raybase-realtime/agents/openai.yaml +4 -0
- package/skills/raybase-schema/SKILL.md +209 -0
- package/skills/raybase-search/SKILL.md +137 -0
- package/skills/raybase-search/agents/openai.yaml +4 -0
- package/skills/raybase-settings/SKILL.md +139 -0
- package/skills/raybase-settings/agents/openai.yaml +4 -0
- package/skills/raybase-tanstack-start/SKILL.md +166 -0
- package/skills/raybase-tanstack-start-design/LICENSE-impeccable +60 -0
- package/skills/raybase-tanstack-start-design/SKILL.md +140 -0
- package/skills/raybase-tanstack-start-design/reference/color.md +80 -0
- package/skills/raybase-tanstack-start-design/reference/copy.md +83 -0
- package/skills/raybase-tanstack-start-design/reference/delight.md +48 -0
- package/skills/raybase-tanstack-start-design/reference/interaction.md +91 -0
- package/skills/raybase-tanstack-start-design/reference/layout.md +82 -0
- package/skills/raybase-tanstack-start-design/reference/motion.md +86 -0
- package/skills/raybase-tanstack-start-design/reference/polish.md +79 -0
- package/skills/raybase-tanstack-start-design/reference/typography.md +71 -0
- package/skills/raybase-tanstack-start-security-review/LICENSE +22 -0
- package/skills/raybase-tanstack-start-security-review/SKILL.md +194 -0
- package/skills/raybase-tanstack-start-security-review/agents/openai.yaml +4 -0
- package/skills/raybase-tanstack-start-security-review/references/api-security.md +519 -0
- package/skills/raybase-tanstack-start-security-review/references/authentication.md +353 -0
- package/skills/raybase-tanstack-start-security-review/references/authorization.md +372 -0
- package/skills/raybase-tanstack-start-security-review/references/business-logic.md +443 -0
- package/skills/raybase-tanstack-start-security-review/references/cryptography.md +329 -0
- package/skills/raybase-tanstack-start-security-review/references/csrf.md +398 -0
- package/skills/raybase-tanstack-start-security-review/references/data-protection.md +378 -0
- package/skills/raybase-tanstack-start-security-review/references/deserialization.md +410 -0
- package/skills/raybase-tanstack-start-security-review/references/error-handling.md +436 -0
- package/skills/raybase-tanstack-start-security-review/references/file-security.md +457 -0
- package/skills/raybase-tanstack-start-security-review/references/injection.md +259 -0
- package/skills/raybase-tanstack-start-security-review/references/logging.md +433 -0
- package/skills/raybase-tanstack-start-security-review/references/misconfiguration.md +435 -0
- package/skills/raybase-tanstack-start-security-review/references/modern-threats.md +475 -0
- package/skills/raybase-tanstack-start-security-review/references/raybase-tanstack-security.md +208 -0
- package/skills/raybase-tanstack-start-security-review/references/ssrf.md +413 -0
- package/skills/raybase-tanstack-start-security-review/references/supply-chain.md +405 -0
- package/skills/raybase-tanstack-start-security-review/references/xss.md +336 -0
- package/skills-manifest.json +41 -0
- package/templates/astro-emdash/.dev.vars.example +7 -0
- package/templates/astro-emdash/AGENTS.md +122 -0
- package/templates/astro-emdash/DESIGN.md +90 -0
- package/templates/astro-emdash/components.json +21 -0
- package/templates/astro-emdash/content/docs/getting-started.mdx +20 -0
- package/templates/astro-emdash/content/docs/index.mdx +13 -0
- package/templates/astro-emdash/content/docs/mcp.mdx +11 -0
- package/templates/astro-emdash/content/docs/meta.json +4 -0
- package/templates/astro-emdash/content/docs/site-templates.mdx +62 -0
- package/templates/astro-emdash/dev/CODEBASE-MAP.md +46 -0
- package/templates/astro-emdash/dev/SPEC-OVERVIEW.md +15 -0
- package/templates/astro-emdash/dev/SPEC.md +84 -0
- package/templates/astro-emdash/dev/features/archive/.gitkeep +1 -0
- package/templates/astro-emdash/docs/theme-previews/base.svg +24 -0
- package/templates/astro-emdash/docs/theme-previews/steel.svg +24 -0
- package/templates/astro-emdash/docs/theme-previews/zen.svg +24 -0
- package/templates/astro-emdash/docs/themes.md +106 -0
- package/templates/astro-emdash/drizzle.config.ts +5 -0
- package/templates/astro-emdash/gitignore +11 -0
- package/templates/astro-emdash/migrations/app/meta/_journal.json +5 -0
- package/templates/astro-emdash/package.json +79 -0
- package/templates/astro-emdash/pnpm-workspace.yaml +71 -0
- package/templates/astro-emdash/public/_headers +4 -0
- package/templates/astro-emdash/site/astro.config.mjs +120 -0
- package/templates/astro-emdash/site/demo/README.md +72 -0
- package/templates/astro-emdash/site/demo/content/collection.json +43 -0
- package/templates/astro-emdash/site/demo/content/entries.json +120 -0
- package/templates/astro-emdash/site/demo/templates/demo-article-card/manifest.json +51 -0
- package/templates/astro-emdash/site/demo/templates/demo-article-card/sample-content.json +5 -0
- package/templates/astro-emdash/site/demo/templates/demo-article-card/template.liquid +48 -0
- package/templates/astro-emdash/site/demo/templates/demo-article-page/host.json +9 -0
- package/templates/astro-emdash/site/demo/templates/demo-article-page/manifest.json +38 -0
- package/templates/astro-emdash/site/demo/templates/demo-article-page/sample-content.json +34 -0
- package/templates/astro-emdash/site/demo/templates/demo-article-page/template.liquid +84 -0
- package/templates/astro-emdash/site/demo/templates/demo-articles-index/manifest.json +64 -0
- package/templates/astro-emdash/site/demo/templates/demo-articles-index/page.json +7 -0
- package/templates/astro-emdash/site/demo/templates/demo-articles-index/sample-content.json +24 -0
- package/templates/astro-emdash/site/demo/templates/demo-articles-index/template.liquid +100 -0
- package/templates/astro-emdash/site/demo/templates/demo-menu-nav/manifest.json +51 -0
- package/templates/astro-emdash/site/demo/templates/demo-menu-nav/sample-content.json +5 -0
- package/templates/astro-emdash/site/demo/templates/demo-menu-nav/template.liquid +70 -0
- package/templates/astro-emdash/site/gitignore +1 -0
- package/templates/astro-emdash/site/package.json +56 -0
- package/templates/astro-emdash/site/scripts/apply-site-templates.mjs +560 -0
- package/templates/astro-emdash/site/scripts/galley-demo.mjs +298 -0
- package/templates/astro-emdash/site/scripts/seed-galley-starter.mjs +360 -0
- package/templates/astro-emdash/site/scripts/site-origin.mjs +45 -0
- package/templates/astro-emdash/site/seed/seed.json +154 -0
- package/templates/astro-emdash/site/seed/templates/.gitkeep +1 -0
- package/templates/astro-emdash/site/src/components/RaybaseSignedInMenu.astro +163 -0
- package/templates/astro-emdash/site/src/components/blocks/RaybaseActionIsland.astro +41 -0
- package/templates/astro-emdash/site/src/content-door/raybase-routes.ts +738 -0
- package/templates/astro-emdash/site/src/content-door/resolve-page.ts +142 -0
- package/templates/astro-emdash/site/src/content-door/seed.ts +85 -0
- package/templates/astro-emdash/site/src/env.d.ts +12 -0
- package/templates/astro-emdash/site/src/layouts/SiteLayout.astro +68 -0
- package/templates/astro-emdash/site/src/lib/palettes.gen.ts +7 -0
- package/templates/astro-emdash/site/src/lib/site-motion.ts +169 -0
- package/templates/astro-emdash/site/src/lib/site-shell.ts +294 -0
- package/templates/astro-emdash/site/src/live.config.ts +8 -0
- package/templates/astro-emdash/site/src/middleware.ts +20 -0
- package/templates/astro-emdash/site/src/pages/[...slug].astro +113 -0
- package/templates/astro-emdash/site/src/pages/_raybase/handoff/consume.ts +6 -0
- package/templates/astro-emdash/site/src/pages/_raybase/islands/action.ts +8 -0
- package/templates/astro-emdash/site/src/pages/_raybase/sign-out/index.ts +6 -0
- package/templates/astro-emdash/site/src/styles/palette-fonts.gen.css +1 -0
- package/templates/astro-emdash/site/src/styles/palettes.gen.css +3 -0
- package/templates/astro-emdash/site/src/styles.css +607 -0
- package/templates/astro-emdash/site/tsconfig.json +12 -0
- package/templates/astro-emdash/site/wrangler.jsonc +34 -0
- package/templates/astro-emdash/source.config.ts +10 -0
- package/templates/astro-emdash/src/actions.ts +58 -0
- package/templates/astro-emdash/src/ai/agents.ts +20 -0
- package/templates/astro-emdash/src/ai/retrieval.ts +36 -0
- package/templates/astro-emdash/src/auth-door.ts +18 -0
- package/templates/astro-emdash/src/client.tsx +25 -0
- package/templates/astro-emdash/src/components/.gitkeep +1 -0
- package/templates/astro-emdash/src/components/account-menu.tsx +91 -0
- package/templates/astro-emdash/src/components/auth-shell.tsx +69 -0
- package/templates/astro-emdash/src/components/mode-toggle.tsx +32 -0
- package/templates/astro-emdash/src/components/search-command-palette.tsx +107 -0
- package/templates/astro-emdash/src/components/setup-token-page.tsx +196 -0
- package/templates/astro-emdash/src/components/ui/avatar.tsx +107 -0
- package/templates/astro-emdash/src/components/ui/badge.tsx +52 -0
- package/templates/astro-emdash/src/components/ui/button.tsx +69 -0
- package/templates/astro-emdash/src/components/ui/checkbox.tsx +29 -0
- package/templates/astro-emdash/src/components/ui/dialog.tsx +158 -0
- package/templates/astro-emdash/src/components/ui/dropdown-menu.tsx +303 -0
- package/templates/astro-emdash/src/components/ui/input.tsx +20 -0
- package/templates/astro-emdash/src/components/ui/label.tsx +20 -0
- package/templates/astro-emdash/src/components/ui/scroll-area.tsx +53 -0
- package/templates/astro-emdash/src/components/ui/select.tsx +215 -0
- package/templates/astro-emdash/src/components/ui/separator.tsx +23 -0
- package/templates/astro-emdash/src/components/ui/sheet.tsx +138 -0
- package/templates/astro-emdash/src/components/ui/sidebar.tsx +728 -0
- package/templates/astro-emdash/src/components/ui/skeleton.tsx +13 -0
- package/templates/astro-emdash/src/components/ui/textarea.tsx +18 -0
- package/templates/astro-emdash/src/components/ui/tooltip.tsx +66 -0
- package/templates/astro-emdash/src/db/migrations.gen.ts +6 -0
- package/templates/astro-emdash/src/db/schema.ts +6 -0
- package/templates/astro-emdash/src/db/seed.ts +16 -0
- package/templates/astro-emdash/src/db/storage.ts +32 -0
- package/templates/astro-emdash/src/docs/docs-assets.ts +1 -0
- package/templates/astro-emdash/src/docs/docs-client.tsx +22 -0
- package/templates/astro-emdash/src/docs/docs-data.ts +24 -0
- package/templates/astro-emdash/src/docs/docs-handler.tsx +105 -0
- package/templates/astro-emdash/src/docs/docs-layout.tsx +56 -0
- package/templates/astro-emdash/src/docs/docs-mdx.tsx +79 -0
- package/templates/astro-emdash/src/docs/docs-page-actions.tsx +146 -0
- package/templates/astro-emdash/src/docs/docs-page.tsx +70 -0
- package/templates/astro-emdash/src/docs/llm-text.ts +61 -0
- package/templates/astro-emdash/src/docs/source.ts +7 -0
- package/templates/astro-emdash/src/guide/corpus.gen.ts +4 -0
- package/templates/astro-emdash/src/guide/corpus.manifest.json +72 -0
- package/templates/astro-emdash/src/hooks/use-mobile.ts +19 -0
- package/templates/astro-emdash/src/jobs.example.ts +48 -0
- package/templates/astro-emdash/src/lib/account.ts +12 -0
- package/templates/astro-emdash/src/lib/auth-client.ts +181 -0
- package/templates/astro-emdash/src/lib/utils.ts +6 -0
- package/templates/astro-emdash/src/mcp-app.ts +57 -0
- package/templates/astro-emdash/src/notifications.example.ts +37 -0
- package/templates/astro-emdash/src/raybase.auth.ts +70 -0
- package/templates/astro-emdash/src/raybase.config.ts +49 -0
- package/templates/astro-emdash/src/raybase.server.ts +56 -0
- package/templates/astro-emdash/src/realtime.example.ts +18 -0
- package/templates/astro-emdash/src/router.tsx +19 -0
- package/templates/astro-emdash/src/routes/__root.tsx +56 -0
- package/templates/astro-emdash/src/routes/_app/admin.tsx +13 -0
- package/templates/astro-emdash/src/routes/_app/forgot-password.tsx +97 -0
- package/templates/astro-emdash/src/routes/_app/index.tsx +169 -0
- package/templates/astro-emdash/src/routes/_app/invite.$token.tsx +11 -0
- package/templates/astro-emdash/src/routes/_app/login.tsx +193 -0
- package/templates/astro-emdash/src/routes/_app/profile.tsx +98 -0
- package/templates/astro-emdash/src/routes/_app/reset-password.$token.tsx +15 -0
- package/templates/astro-emdash/src/routes/_app/reset-password.tsx +115 -0
- package/templates/astro-emdash/src/routes/_app/setup.$token.tsx +11 -0
- package/templates/astro-emdash/src/routes/_app/signup.tsx +141 -0
- package/templates/astro-emdash/src/routes/_app/verify-email.$token.tsx +15 -0
- package/templates/astro-emdash/src/routes/_app/verify-email.tsx +154 -0
- package/templates/astro-emdash/src/routes/_app.tsx +33 -0
- package/templates/astro-emdash/src/routes/admin/$.ts +20 -0
- package/templates/astro-emdash/src/routes/api/$.ts +19 -0
- package/templates/astro-emdash/src/routes/docs/$.tsx +22 -0
- package/templates/astro-emdash/src/routes/docs/api/markdown.ts +12 -0
- package/templates/astro-emdash/src/routes/docs/api/search.ts +12 -0
- package/templates/astro-emdash/src/routes/docs.index.tsx +22 -0
- package/templates/astro-emdash/src/routes/docs.tsx +22 -0
- package/templates/astro-emdash/src/search.ts +6 -0
- package/templates/astro-emdash/src/settings.ts +12 -0
- package/templates/astro-emdash/src/styles-docs.css +3 -0
- package/templates/astro-emdash/src/styles.css +101 -0
- package/templates/astro-emdash/src/themes/base.css +76 -0
- package/templates/astro-emdash/src/themes/carbon.css +76 -0
- package/templates/astro-emdash/src/themes/fonts.css +25 -0
- package/templates/astro-emdash/src/themes/sage.css +76 -0
- package/templates/astro-emdash/src/themes/sand.css +76 -0
- package/templates/astro-emdash/src/themes/slate.css +81 -0
- package/templates/astro-emdash/src/themes/ultra.css +76 -0
- package/templates/astro-emdash/src/themes/zen.css +76 -0
- package/templates/astro-emdash/src/worker-entry.ts +31 -0
- package/templates/astro-emdash/tests/raybase-patterns.test.ts +29 -0
- package/templates/astro-emdash/tsconfig.json +36 -0
- package/templates/astro-emdash/vite.config.ts +130 -0
- package/templates/astro-emdash/vitest.config.ts +8 -0
- package/templates/astro-emdash/wrangler.jsonc +112 -0
- package/templates/react-router/.dev.vars.example +5 -0
- package/templates/react-router/.editorconfig +15 -0
- package/templates/react-router/AGENTS.md +54 -0
- package/templates/react-router/README.md +52 -0
- package/templates/react-router/app/app.css +44 -0
- package/templates/react-router/app/components/mdx.tsx +79 -0
- package/templates/react-router/app/components/ui/button.tsx +45 -0
- package/templates/react-router/app/components/ui/card.tsx +87 -0
- package/templates/react-router/app/components/ui/separator.tsx +22 -0
- package/templates/react-router/app/db/migrations.gen.ts +6 -0
- package/templates/react-router/app/db/schema.ts +56 -0
- package/templates/react-router/app/db/seed.ts +14 -0
- package/templates/react-router/app/entry.server.tsx +41 -0
- package/templates/react-router/app/globals.d.ts +1 -0
- package/templates/react-router/app/lib/layout.shared.tsx +52 -0
- package/templates/react-router/app/lib/source.ts +7 -0
- package/templates/react-router/app/lib/utils.ts +6 -0
- package/templates/react-router/app/raybase.server.ts +65 -0
- package/templates/react-router/app/root.tsx +23 -0
- package/templates/react-router/app/routes/_index.tsx +53 -0
- package/templates/react-router/app/routes/docs.$.tsx +49 -0
- package/templates/react-router/app/routes/docs.api.search.ts +10 -0
- package/templates/react-router/app/routes/docs.tsx +13 -0
- package/templates/react-router/app/routes.ts +3 -0
- package/templates/react-router/components.json +22 -0
- package/templates/react-router/content/docs/getting-started.mdx +15 -0
- package/templates/react-router/content/docs/index.mdx +8 -0
- package/templates/react-router/content/docs/mcp.mdx +121 -0
- package/templates/react-router/content/docs/meta.json +4 -0
- package/templates/react-router/dev/CODEBASE-MAP.md +48 -0
- package/templates/react-router/dev/SPEC-OVERVIEW.md +35 -0
- package/templates/react-router/dev/SPEC.md +93 -0
- package/templates/react-router/dev/features/archive/.gitkeep +1 -0
- package/templates/react-router/drizzle.config.ts +5 -0
- package/templates/react-router/env.d.ts +53 -0
- package/templates/react-router/gitignore +23 -0
- package/templates/react-router/migrations/app/meta/_journal.json +1 -0
- package/templates/react-router/package.json +70 -0
- package/templates/react-router/public/_headers +4 -0
- package/templates/react-router/public/favicon.ico +0 -0
- package/templates/react-router/react-router.config.ts +9 -0
- package/templates/react-router/source.config.ts +5 -0
- package/templates/react-router/tests/raybase-patterns.test.ts +23 -0
- package/templates/react-router/tsconfig.json +27 -0
- package/templates/react-router/vite.config.ts +59 -0
- package/templates/react-router/vitest.config.ts +8 -0
- package/templates/react-router/workers/app.ts +40 -0
- package/templates/react-router/wrangler.jsonc +111 -0
- package/templates/tanstack-start/.dev.vars.example +5 -0
- package/templates/tanstack-start/AGENTS.md +95 -0
- package/templates/tanstack-start/DESIGN.md +65 -0
- package/templates/tanstack-start/components.json +21 -0
- package/templates/tanstack-start/content/docs/getting-started.mdx +65 -0
- package/templates/tanstack-start/content/docs/index.mdx +10 -0
- package/templates/tanstack-start/content/docs/mcp.mdx +122 -0
- package/templates/tanstack-start/content/docs/meta.json +4 -0
- package/templates/tanstack-start/dev/CODEBASE-MAP.md +84 -0
- package/templates/tanstack-start/dev/SPEC-OVERVIEW.md +46 -0
- package/templates/tanstack-start/dev/SPEC.md +213 -0
- package/templates/tanstack-start/dev/features/archive/.gitkeep +1 -0
- package/templates/tanstack-start/docs/theme-previews/base.svg +24 -0
- package/templates/tanstack-start/docs/theme-previews/steel.svg +24 -0
- package/templates/tanstack-start/docs/theme-previews/zen.svg +24 -0
- package/templates/tanstack-start/docs/themes.md +116 -0
- package/templates/tanstack-start/drizzle.config.ts +5 -0
- package/templates/tanstack-start/gitignore +11 -0
- package/templates/tanstack-start/migrations/app/0000_low_karen_page.sql +26 -0
- package/templates/tanstack-start/migrations/app/meta/0000_snapshot.json +196 -0
- package/templates/tanstack-start/migrations/app/meta/_journal.json +13 -0
- package/templates/tanstack-start/package.json +77 -0
- package/templates/tanstack-start/public/_headers +8 -0
- package/templates/tanstack-start/public/icons/app-icon-maskable.svg +1 -0
- package/templates/tanstack-start/public/icons/app-icon.svg +1 -0
- package/templates/tanstack-start/public/icons/apple-touch-icon.png +0 -0
- package/templates/tanstack-start/public/manifest.webmanifest +14 -0
- package/templates/tanstack-start/public/raybase-push-sw.js +32 -0
- package/templates/tanstack-start/source.config.ts +10 -0
- package/templates/tanstack-start/src/actions.ts +560 -0
- package/templates/tanstack-start/src/ai/agents.ts +78 -0
- package/templates/tanstack-start/src/ai/retrieval.ts +36 -0
- package/templates/tanstack-start/src/auth-door.ts +18 -0
- package/templates/tanstack-start/src/client.tsx +25 -0
- package/templates/tanstack-start/src/components/.gitkeep +1 -0
- package/templates/tanstack-start/src/components/account-menu.tsx +127 -0
- package/templates/tanstack-start/src/components/auth-shell.tsx +69 -0
- package/templates/tanstack-start/src/components/install-app.tsx +35 -0
- package/templates/tanstack-start/src/components/mode-toggle.tsx +32 -0
- package/templates/tanstack-start/src/components/search-command-palette.tsx +107 -0
- package/templates/tanstack-start/src/components/setup-token-page.tsx +197 -0
- package/templates/tanstack-start/src/components/ui/avatar.tsx +107 -0
- package/templates/tanstack-start/src/components/ui/badge.tsx +52 -0
- package/templates/tanstack-start/src/components/ui/button.tsx +69 -0
- package/templates/tanstack-start/src/components/ui/checkbox.tsx +29 -0
- package/templates/tanstack-start/src/components/ui/dialog.tsx +158 -0
- package/templates/tanstack-start/src/components/ui/dropdown-menu.tsx +303 -0
- package/templates/tanstack-start/src/components/ui/input.tsx +20 -0
- package/templates/tanstack-start/src/components/ui/label.tsx +20 -0
- package/templates/tanstack-start/src/components/ui/scroll-area.tsx +53 -0
- package/templates/tanstack-start/src/components/ui/select.tsx +215 -0
- package/templates/tanstack-start/src/components/ui/separator.tsx +23 -0
- package/templates/tanstack-start/src/components/ui/sheet.tsx +138 -0
- package/templates/tanstack-start/src/components/ui/sidebar.tsx +728 -0
- package/templates/tanstack-start/src/components/ui/skeleton.tsx +13 -0
- package/templates/tanstack-start/src/components/ui/textarea.tsx +18 -0
- package/templates/tanstack-start/src/components/ui/tooltip.tsx +66 -0
- package/templates/tanstack-start/src/db/migrations.gen.ts +6 -0
- package/templates/tanstack-start/src/db/schema.ts +90 -0
- package/templates/tanstack-start/src/db/seed.ts +106 -0
- package/templates/tanstack-start/src/db/storage.ts +32 -0
- package/templates/tanstack-start/src/docs/docs-assets.ts +1 -0
- package/templates/tanstack-start/src/docs/docs-client.tsx +22 -0
- package/templates/tanstack-start/src/docs/docs-data.ts +24 -0
- package/templates/tanstack-start/src/docs/docs-handler.tsx +105 -0
- package/templates/tanstack-start/src/docs/docs-layout.tsx +56 -0
- package/templates/tanstack-start/src/docs/docs-mdx.tsx +79 -0
- package/templates/tanstack-start/src/docs/docs-page-actions.tsx +146 -0
- package/templates/tanstack-start/src/docs/docs-page.tsx +70 -0
- package/templates/tanstack-start/src/docs/llm-text.ts +61 -0
- package/templates/tanstack-start/src/docs/source.ts +7 -0
- package/templates/tanstack-start/src/hooks/use-mobile.ts +19 -0
- package/templates/tanstack-start/src/hooks/use-pwa-install.ts +77 -0
- package/templates/tanstack-start/src/jobs.example.ts +56 -0
- package/templates/tanstack-start/src/lib/account.ts +13 -0
- package/templates/tanstack-start/src/lib/auth-client.ts +187 -0
- package/templates/tanstack-start/src/lib/push-client.ts +98 -0
- package/templates/tanstack-start/src/lib/utils.ts +6 -0
- package/templates/tanstack-start/src/mcp-app.ts +74 -0
- package/templates/tanstack-start/src/notifications.example.ts +37 -0
- package/templates/tanstack-start/src/raybase.auth.ts +86 -0
- package/templates/tanstack-start/src/raybase.config.ts +86 -0
- package/templates/tanstack-start/src/raybase.server.ts +155 -0
- package/templates/tanstack-start/src/realtime.example.ts +46 -0
- package/templates/tanstack-start/src/router.tsx +19 -0
- package/templates/tanstack-start/src/routes/__root.tsx +73 -0
- package/templates/tanstack-start/src/routes/_app/admin.tsx +13 -0
- package/templates/tanstack-start/src/routes/_app/forgot-password.tsx +97 -0
- package/templates/tanstack-start/src/routes/_app/index.tsx +1316 -0
- package/templates/tanstack-start/src/routes/_app/invite.$token.tsx +11 -0
- package/templates/tanstack-start/src/routes/_app/login.tsx +193 -0
- package/templates/tanstack-start/src/routes/_app/profile.tsx +98 -0
- package/templates/tanstack-start/src/routes/_app/reset-password.$token.tsx +16 -0
- package/templates/tanstack-start/src/routes/_app/reset-password.tsx +115 -0
- package/templates/tanstack-start/src/routes/_app/setup.$token.tsx +11 -0
- package/templates/tanstack-start/src/routes/_app/signup.tsx +141 -0
- package/templates/tanstack-start/src/routes/_app/verify-email.$token.tsx +15 -0
- package/templates/tanstack-start/src/routes/_app/verify-email.tsx +154 -0
- package/templates/tanstack-start/src/routes/_app.tsx +33 -0
- package/templates/tanstack-start/src/routes/admin/$.ts +20 -0
- package/templates/tanstack-start/src/routes/api/$.ts +19 -0
- package/templates/tanstack-start/src/routes/docs/$.tsx +22 -0
- package/templates/tanstack-start/src/routes/docs/api/markdown.ts +12 -0
- package/templates/tanstack-start/src/routes/docs/api/search.ts +12 -0
- package/templates/tanstack-start/src/routes/docs.index.tsx +22 -0
- package/templates/tanstack-start/src/routes/docs.tsx +22 -0
- package/templates/tanstack-start/src/search.ts +26 -0
- package/templates/tanstack-start/src/settings.ts +12 -0
- package/templates/tanstack-start/src/styles-docs.css +3 -0
- package/templates/tanstack-start/src/styles.css +73 -0
- package/templates/tanstack-start/src/themes/base.css +76 -0
- package/templates/tanstack-start/src/themes/carbon.css +76 -0
- package/templates/tanstack-start/src/themes/fonts.css +18 -0
- package/templates/tanstack-start/src/themes/sage.css +76 -0
- package/templates/tanstack-start/src/themes/sand.css +76 -0
- package/templates/tanstack-start/src/themes/slate.css +76 -0
- package/templates/tanstack-start/src/themes/ultra.css +76 -0
- package/templates/tanstack-start/src/themes/zen.css +76 -0
- package/templates/tanstack-start/src/worker-entry.ts +30 -0
- package/templates/tanstack-start/tests/raybase-patterns.test.ts +247 -0
- package/templates/tanstack-start/tsconfig.json +33 -0
- package/templates/tanstack-start/vite.config.ts +132 -0
- package/templates/tanstack-start/vitest.config.ts +8 -0
- package/templates/tanstack-start/wrangler.jsonc +112 -0
- package/README.md +0 -3
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://ui.shadcn.com/schema.json",
|
|
3
|
+
"style": "new-york",
|
|
4
|
+
"rsc": false,
|
|
5
|
+
"tsx": true,
|
|
6
|
+
"tailwind": {
|
|
7
|
+
"config": "",
|
|
8
|
+
"css": "app/app.css",
|
|
9
|
+
"baseColor": "neutral",
|
|
10
|
+
"cssVariables": true,
|
|
11
|
+
"prefix": ""
|
|
12
|
+
},
|
|
13
|
+
"iconLibrary": "lucide",
|
|
14
|
+
"rtl": false,
|
|
15
|
+
"aliases": {
|
|
16
|
+
"components": "@/components",
|
|
17
|
+
"utils": "@/lib/utils",
|
|
18
|
+
"ui": "@/components/ui",
|
|
19
|
+
"lib": "@/lib",
|
|
20
|
+
"hooks": "@/hooks"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Getting started
|
|
3
|
+
description: Replace this page with the first real workflow guide.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Replace this placeholder with the first workflow a real user or operator needs.
|
|
7
|
+
|
|
8
|
+
Document behavior only after it exists in the app. Avoid promising screens, APIs, permissions, or automations that have not been implemented.
|
|
9
|
+
## Local time travel
|
|
10
|
+
|
|
11
|
+
In local development, use the fixed dev chrome or `POST /api/dev/time` with `{"now":"2030-08-12T09:00:00.000Z"}` to move the application clock. `GET /api/dev/time` reports virtual and real time; `{"reset":true}` returns to wall time. Forward jumps start bounded catch-up for Jobs, Agent schedules, wakes, and follow-ups. Repeating schedules coalesce to one run, while one-shot work drains without waiting for the HTTP response. Auth, leases, retries, tokens, provider calls, and diagnostics remain on real time. Moving backward or resetting does not rewrite future-dated rows; reset and reseed when a QA scenario crosses that edge.
|
|
12
|
+
|
|
13
|
+
Local tooling can restore app-owned tables with `POST /api/dev/seed` and `{"reset":true}` or apply the starter `empty-app` variant with `{"variant":"empty-app"}`. Reset is destructive for Raybase app tables. Apply multiple demo variants through sequential calls, and restore after time travel leaves future-dated local rows.
|
|
14
|
+
|
|
15
|
+
`GET /api/dev/manifest` serves the exact validated `manifestVersion: 1` checkpoint written to `.raybase/app.manifest.json` at dev startup. Route sources are project-relative POSIX paths. Restart `raybase dev` after changing routes, schema, policies, or personas. The endpoint is local-only.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Welcome to the docs
|
|
3
|
+
description: Start here when replacing the placeholder documentation.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Use this space for product, operator, and API documentation once those workflows exist.
|
|
7
|
+
|
|
8
|
+
Keep docs in `content/docs`, and update the page tree as the documentation grows.
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Connecting to this app with AI
|
|
3
|
+
description: Add this app's MCP server to ChatGPT, Claude, Codex CLI, Claude Code, or another AI agent.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Use this page when you want an AI Agent to work with this app through its MCP server.
|
|
7
|
+
|
|
8
|
+
Server URL:
|
|
9
|
+
|
|
10
|
+
<McpServerUrlBlock />
|
|
11
|
+
|
|
12
|
+
Use the deployed HTTPS URL for ChatGPT and Claude web/desktop connectors. If you are testing from Codex CLI or Claude Code on your own machine, `http://localhost:3000/mcp` can work. For ChatGPT, Claude web, and Claude Desktop remote connectors, expose local development through a secure HTTPS tunnel or deploy first; those products connect from provider infrastructure, not from your laptop.
|
|
13
|
+
|
|
14
|
+
## ChatGPT web
|
|
15
|
+
|
|
16
|
+
ChatGPT custom MCP apps are configured from ChatGPT web.
|
|
17
|
+
|
|
18
|
+
1. Open ChatGPT web and go to **Settings -> Apps & Connectors** or **Settings -> Apps**, depending on the current UI.
|
|
19
|
+
2. Open **Advanced settings** and turn on **Developer mode** if it is available for your account or workspace.
|
|
20
|
+
3. Return to **Apps & Connectors** or **Apps** and click **Create**.
|
|
21
|
+
4. Enter an app name, a short description, and the server URL above.
|
|
22
|
+
5. Choose the authentication option this app uses. For OAuth, complete the authorization prompt when ChatGPT scans tools.
|
|
23
|
+
6. Click **Create** after the tool scan succeeds and the expected tools appear.
|
|
24
|
+
7. In a new chat, click **+** by the composer, choose **More**, select this app, and ask ChatGPT to use it.
|
|
25
|
+
|
|
26
|
+
For Business, Enterprise, or Edu workspaces, an admin or owner may need to create, enable, publish, or allow this app from **Workspace settings -> Apps** before other members can connect it.
|
|
27
|
+
|
|
28
|
+
ChatGPT may ask for confirmation before actions that change data, depending on your workspace settings and the action being requested.
|
|
29
|
+
|
|
30
|
+
## ChatGPT desktop
|
|
31
|
+
|
|
32
|
+
Create and manage the custom MCP app in ChatGPT web first. There is no separate documented desktop creation flow for custom MCP apps. If this app appears in the desktop app's composer tools menu after web setup, select it there; otherwise use ChatGPT web for MCP conversations with this app.
|
|
33
|
+
|
|
34
|
+
## Claude web and desktop
|
|
35
|
+
|
|
36
|
+
Claude custom connectors are remote MCP connectors. The setup is the same in Claude web and Claude Desktop, and the connection to this app comes from Anthropic's cloud. Use the deployed HTTPS URL or an internet-reachable tunnel; `localhost` is only for separate local Claude Desktop or Claude Code configuration.
|
|
37
|
+
|
|
38
|
+
For individual plans, including Free, Pro, and Max:
|
|
39
|
+
|
|
40
|
+
1. Open **Customize -> Connectors**.
|
|
41
|
+
2. Click **+**, then **Add custom connector**.
|
|
42
|
+
3. Enter a name and the server URL above.
|
|
43
|
+
4. Open **Advanced settings** only if this app requires a fixed OAuth Client ID or Client Secret.
|
|
44
|
+
5. Click **Add**, then **Connect** and complete authentication.
|
|
45
|
+
6. In a chat, click **+**, choose **Connectors**, and toggle this connector on for the conversation.
|
|
46
|
+
|
|
47
|
+
For Team or Enterprise plans:
|
|
48
|
+
|
|
49
|
+
1. An Owner opens **Organization settings -> Connectors**.
|
|
50
|
+
2. Clicks **Add**, hovers **Custom**, selects **Web**, enters the server URL, and clicks **Add**.
|
|
51
|
+
3. Each member opens **Customize -> Connectors**, finds the custom connector, clicks **Connect**, and authenticates before enabling it in a conversation.
|
|
52
|
+
|
|
53
|
+
## Codex CLI
|
|
54
|
+
|
|
55
|
+
Codex supports streamable HTTP MCP servers. Add this app:
|
|
56
|
+
|
|
57
|
+
<CodexMcpAddCommand />
|
|
58
|
+
|
|
59
|
+
For local development:
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
codex mcp add this-app-local --url http://localhost:3000/mcp
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
If the server requires OAuth, authenticate after adding it:
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
codex mcp login this-app
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
Start `codex`, then type `/mcp` at the Codex prompt to confirm the server and tools loaded. Codex CLI and the Codex IDE extension share the same MCP configuration.
|
|
72
|
+
|
|
73
|
+
## Claude Code CLI
|
|
74
|
+
|
|
75
|
+
Claude Code's CLI supports remote HTTP MCP servers. Add this app:
|
|
76
|
+
|
|
77
|
+
<ClaudeMcpAddCommand />
|
|
78
|
+
|
|
79
|
+
For local development:
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
claude mcp add --transport http this-app-local http://localhost:3000/mcp
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
Add `--scope user` if every Claude Code project should see the server. Otherwise Claude Code stores it in the current local scope. Then start Claude Code and type `/mcp` at the Claude Code prompt; if the server needs OAuth, select it there and complete the browser authorization flow. Use `claude mcp list`, `claude mcp get this-app`, or `claude mcp remove this-app` to manage the configuration.
|
|
86
|
+
|
|
87
|
+
## Connect from another AI agent
|
|
88
|
+
|
|
89
|
+
1. Choose **Add MCP server** or the closest equivalent in your agent.
|
|
90
|
+
2. Use **HTTP** or **Streamable HTTP** transport.
|
|
91
|
+
3. Name the server after this app.
|
|
92
|
+
4. Enter the server URL above.
|
|
93
|
+
5. Complete the sign-in and authorization flow.
|
|
94
|
+
6. Ask the agent to list available tools so you can confirm what it can access.
|
|
95
|
+
|
|
96
|
+
## What the AI can do
|
|
97
|
+
|
|
98
|
+
Replace this section before shipping the app.
|
|
99
|
+
|
|
100
|
+
- **Read access** (`mcp:read`): describe the records, search results, summaries, or workflow context the AI can read for the signed-in member.
|
|
101
|
+
- **Write access** (`mcp:write`): describe the specific actions the AI can perform, such as creating records, updating statuses, or running workflow steps.
|
|
102
|
+
- **Tool-specific access**: note any important per-tool permissions that users may see during authorization.
|
|
103
|
+
- **Not available through AI**: list important boundaries, such as account management, billing, security settings, or destructive workflows that are not exposed.
|
|
104
|
+
|
|
105
|
+
The detailed tool names and input fields are discoverable by the AI client after connection, so keep this page focused on the scope of access and the workflows a person should expect.
|
|
106
|
+
|
|
107
|
+
## Headless use: CLIs, CI, and agents without a browser
|
|
108
|
+
|
|
109
|
+
When the client cannot complete the browser sign-in above, sign in to this app yourself and register a machine credential for it:
|
|
110
|
+
|
|
111
|
+
```bash
|
|
112
|
+
curl -X POST https://your-app.example/api/auth/oauth/register \
|
|
113
|
+
-H "content-type: application/json" -b "<your session cookie>" \
|
|
114
|
+
-d '{"client_name":"CI runner","grant_types":["client_credentials"],"scope":"mcp:read"}'
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
The response includes a `client_id` and a one-time `client_secret`. Give both to the client; it requests access tokens with `grant_type=client_credentials` and HTTP Basic authentication, and the tokens act as you with only the scope you registered. Revoke the credential at any time with `DELETE /api/auth/oauth/clients/<client_id>` while signed in.
|
|
118
|
+
|
|
119
|
+
## Disconnect access
|
|
120
|
+
|
|
121
|
+
Disconnect the app from your AI client when you no longer want it to use these tools. If this app includes a connected AI clients page or integrations settings page, revoke access there as well. Otherwise, contact the app owner to revoke the connection.
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# Codebase Map
|
|
2
|
+
|
|
3
|
+
This is a curated orientation map for agents working on this generated
|
|
4
|
+
React Router app. Keep it useful, not exhaustive. Update it when route
|
|
5
|
+
boundaries, schema ownership, integrations, runtime handlers, app modules, or
|
|
6
|
+
generated-file rules change in a way future work needs to know.
|
|
7
|
+
|
|
8
|
+
## Product And Planning
|
|
9
|
+
|
|
10
|
+
- `dev/SPEC.md` - authoritative app contract.
|
|
11
|
+
- `dev/SPEC-OVERVIEW.md` - readable product story and tradeoffs.
|
|
12
|
+
- `dev/features/<feature-slug>/` - temporary proposal specs for substantial
|
|
13
|
+
in-flight work.
|
|
14
|
+
- `dev/features/archive/` - completed feature proposals after durable facts
|
|
15
|
+
have been folded back into the canonical planning docs.
|
|
16
|
+
|
|
17
|
+
## Runtime And Data
|
|
18
|
+
|
|
19
|
+
- `workers/app.ts` - Cloudflare Worker entry. Raybase-owned paths such as
|
|
20
|
+
`/admin`, `/api`, `/login`, `/signup`, `/setup`, `/invite`, and `/mcp` route
|
|
21
|
+
to Raybase; everything else goes to React Router.
|
|
22
|
+
- `app/raybase.server.ts` - Raybase handler, modules, search, app migrations,
|
|
23
|
+
and `currentUser()`, which loaders use to read the Raybase session.
|
|
24
|
+
- `app/db/schema.ts` - app config and app-owned Raybase tables and policies.
|
|
25
|
+
- `app/db/migrations.gen.ts` - generated by `raybase migrate`; do not hand
|
|
26
|
+
edit.
|
|
27
|
+
|
|
28
|
+
## App Surfaces
|
|
29
|
+
|
|
30
|
+
- `app/routes/` - React Router file routes (`@react-router/fs-routes`).
|
|
31
|
+
`app/routes/_index.tsx` is the signed-in home page.
|
|
32
|
+
- `app/components/ui/` - small Tailwind UI kit (button, card, separator).
|
|
33
|
+
- `content/docs/` - app user documentation served at `/docs`.
|
|
34
|
+
- `.source/` and generated docs outputs - generated by Fumadocs; do not hand
|
|
35
|
+
edit.
|
|
36
|
+
|
|
37
|
+
## Routing And Ownership
|
|
38
|
+
|
|
39
|
+
```mermaid
|
|
40
|
+
flowchart LR
|
|
41
|
+
Browser["Browser"] --> Worker["workers/app.ts"]
|
|
42
|
+
Worker --> Raybase["Raybase-owned paths"]
|
|
43
|
+
Worker --> Router["React Router"]
|
|
44
|
+
Router --> AppRoutes["app/routes/*"]
|
|
45
|
+
AppRoutes --> CurrentUser["currentUser()"]
|
|
46
|
+
CurrentUser --> Raybase
|
|
47
|
+
Raybase --> Data["RAYBASE_DATA Durable Object"]
|
|
48
|
+
```
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# App Story Overview
|
|
2
|
+
|
|
3
|
+
`dev/SPEC.md` is the authoritative contract for this app. This overview is the
|
|
4
|
+
human-readable product story agents maintain as the app becomes real.
|
|
5
|
+
|
|
6
|
+
Use this file to explain what the app does for its users, why it matters to the
|
|
7
|
+
owner, which workflows Raybase stores, the real tradeoffs, and what is
|
|
8
|
+
deliberately not in scope. Make it both useful and entertaining: warm,
|
|
9
|
+
specific, a bit witty, and usefully opinionated. It is not allowed to invent
|
|
10
|
+
scope beyond the approved `dev/SPEC.md`.
|
|
11
|
+
|
|
12
|
+
For a new app, write this overview alongside the initial `dev/SPEC.md` before
|
|
13
|
+
asking the owner to approve the plan. If the approved spec changes
|
|
14
|
+
materially, update this overview when the product story, user experience,
|
|
15
|
+
business outcome, tradeoffs, or explicit exclusions also changed.
|
|
16
|
+
|
|
17
|
+
## Starter Notes
|
|
18
|
+
|
|
19
|
+
- Source of truth: `dev/SPEC.md`
|
|
20
|
+
- Current status: placeholder, waiting for an approved spec
|
|
21
|
+
- Default access posture: invite-only; app pages send signed-out visitors to
|
|
22
|
+
Raybase's `/login`, and Raybase `/admin` remains invite/operator-only
|
|
23
|
+
- Agent skills, App MCP tools, remote MCP, jobs, notifications, files, and
|
|
24
|
+
external integrations default to none until the approved spec opts in
|
|
25
|
+
|
|
26
|
+
## Feature Proposals
|
|
27
|
+
|
|
28
|
+
For substantial in-flight work, keep proposal notes under:
|
|
29
|
+
|
|
30
|
+
- `dev/features/<feature-slug>/SPEC.md`
|
|
31
|
+
- `dev/features/<feature-slug>/SPEC-OVERVIEW.md`
|
|
32
|
+
|
|
33
|
+
When the feature is implemented, fold durable facts into `dev/SPEC.md`, this
|
|
34
|
+
overview, and `dev/CODEBASE-MAP.md`, then move the feature folder to
|
|
35
|
+
`dev/features/archive/<feature-slug>`.
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# __APP_NAME__ Spec
|
|
2
|
+
|
|
3
|
+
Status: Draft placeholder - not approved for implementation.
|
|
4
|
+
|
|
5
|
+
This file is the owner-facing source of truth for the app the agent will build. Replace this placeholder with an approved plain-language spec that explains why the app exists and what value it should produce before writing app-specific schema, policies, screens, docs, jobs, notifications, MCP tools, or Store app customizations. Write dev/SPEC-OVERVIEW.md from the same app facts at the same time, paste that overview into the approval message, and link dev/SPEC.md as the full spec.
|
|
6
|
+
|
|
7
|
+
## Purpose And Business Value
|
|
8
|
+
|
|
9
|
+
TBD
|
|
10
|
+
|
|
11
|
+
Describe the problem this app solves, why that problem matters to the owner and
|
|
12
|
+
users, and what success should look like.
|
|
13
|
+
|
|
14
|
+
Security default: this is an internal app. Only invited users can sign in, and uninvited visitors see a login wall.
|
|
15
|
+
|
|
16
|
+
## Access
|
|
17
|
+
|
|
18
|
+
Signup mode: invite-only
|
|
19
|
+
Cloudflare email capability: free-compatible
|
|
20
|
+
Auth email features: none
|
|
21
|
+
Invite delivery: admin-shared links
|
|
22
|
+
Password recovery: admin-assisted
|
|
23
|
+
|
|
24
|
+
Default: only invited users can sign in. For provider and password signup, use
|
|
25
|
+
`Signup mode: public self-signup` with `auth.signupMode: "public"`. For
|
|
26
|
+
provider signup with the password door closed, use `Signup mode: provider-only
|
|
27
|
+
self-signup` with `auth.signupMode: "provider-only"`. Both public modes
|
|
28
|
+
create normal `user` users only; password sign-in stays available to existing
|
|
29
|
+
accounts, and Raybase `/admin` remains invite/operator-only.
|
|
30
|
+
|
|
31
|
+
The default Cloudflare email capability is Free-compatible: Raybase generates
|
|
32
|
+
single-use setup and invite links, but admins copy and share invite links
|
|
33
|
+
manually. There is no self-service password reset, magic-link/passwordless
|
|
34
|
+
auth, public-signup email verification, invite email, welcome email, or other
|
|
35
|
+
auth email to arbitrary recipients.
|
|
36
|
+
|
|
37
|
+
Use `Cloudflare email capability: transactional-email` only after the owner
|
|
38
|
+
has confirmed Workers Paid plus Cloudflare Email Sending/domain onboarding.
|
|
39
|
+
Then list only approved `Auth email features` from `password-reset`,
|
|
40
|
+
`invite-email`, `welcome-email`, `public-signup-email-verification`, and
|
|
41
|
+
`magic-link`, and align `Invite delivery` and `Password recovery` with
|
|
42
|
+
the app config. Cloudflare verified destination addresses may be used for
|
|
43
|
+
operator/admin notifications or intentional test sends only; they are not a
|
|
44
|
+
Raybase auth mode for end-user verification, reset, invites, or magic links.
|
|
45
|
+
|
|
46
|
+
## Public Surface / Documentation
|
|
47
|
+
|
|
48
|
+
Public surface: none
|
|
49
|
+
Documentation: in-app docs
|
|
50
|
+
Docs exposure: public
|
|
51
|
+
|
|
52
|
+
Docs are public by default: `/docs` and `/docs/api/search` answer signed-out
|
|
53
|
+
visitors. `Docs exposure: signed-in only` is a choice; write it here only
|
|
54
|
+
together with the sign-in check on the docs routes that the framework skill
|
|
55
|
+
describes.
|
|
56
|
+
|
|
57
|
+
## What The App Does
|
|
58
|
+
|
|
59
|
+
TBD
|
|
60
|
+
|
|
61
|
+
## Users And Roles
|
|
62
|
+
|
|
63
|
+
TBD
|
|
64
|
+
|
|
65
|
+
Use business role names such as manager, approver, or operations. Operator access to /admin is separate from app roles.
|
|
66
|
+
|
|
67
|
+
## Data Model
|
|
68
|
+
|
|
69
|
+
TBD
|
|
70
|
+
|
|
71
|
+
## Permissions
|
|
72
|
+
|
|
73
|
+
TBD
|
|
74
|
+
|
|
75
|
+
Describe who can read, create, update, and delete each kind of record. Every app table must have explicit read, create, update, and delete policies.
|
|
76
|
+
|
|
77
|
+
## Workflows
|
|
78
|
+
|
|
79
|
+
TBD
|
|
80
|
+
|
|
81
|
+
Describe the important business workflows, approvals, state changes, imports, exports, reminders, and reports the app must support.
|
|
82
|
+
|
|
83
|
+
## Integrations, Files, AI, And MCP
|
|
84
|
+
|
|
85
|
+
TBD
|
|
86
|
+
|
|
87
|
+
Name any external systems, uploads, generated files, AI/Guide behavior, search, notifications, jobs, or MCP tools the app needs.
|
|
88
|
+
|
|
89
|
+
## Open Questions
|
|
90
|
+
|
|
91
|
+
- What owner-approved purpose, business value, users, data, permissions, and workflows should replace this placeholder?
|
|
92
|
+
|
|
93
|
+
Agents must stop here until the owner has approved a real spec. Do not infer business value, roles, data, permissions, workflows, Store app fit, docs, jobs, notifications, or MCP tools from this placeholder.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/// <reference types="vite/client" />
|
|
2
|
+
|
|
3
|
+
// Hand-maintained Worker types instead of `wrangler types` or
|
|
4
|
+
// @cloudflare/workers-types: both declare HTMLRewriter's Element/Document
|
|
5
|
+
// globally, which clobbers the DOM types the app's pages rely on. These are the minimal shapes this template and @raybase/core's
|
|
6
|
+
// public API surface actually use. Keep Env in sync with wrangler.jsonc
|
|
7
|
+
// vars/bindings and .dev.vars.
|
|
8
|
+
|
|
9
|
+
interface DurableObjectId {
|
|
10
|
+
toString(): string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
interface DurableObjectStub {
|
|
14
|
+
fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
interface DurableObjectNamespace {
|
|
18
|
+
idFromName(name: string): DurableObjectId;
|
|
19
|
+
get(id: DurableObjectId): DurableObjectStub;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
interface ExecutionContext {
|
|
23
|
+
waitUntil(promise: Promise<unknown>): void;
|
|
24
|
+
passThroughOnException(): void;
|
|
25
|
+
props?: unknown;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
type ExportedHandler<Env = unknown> = {
|
|
29
|
+
fetch?(request: Request, env: Env, ctx: ExecutionContext): Response | Promise<Response>;
|
|
30
|
+
queue?(batch: unknown, env: Env, ctx: ExecutionContext): void | Promise<void>;
|
|
31
|
+
scheduled?(controller: unknown, env: Env, ctx: ExecutionContext): void | Promise<void>;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
// Satisfies @raybase/core/do's `import { DurableObject } from
|
|
35
|
+
// "cloudflare:workers"` without pulling in workers-types globals.
|
|
36
|
+
declare module "cloudflare:workers" {
|
|
37
|
+
export class DurableObject {
|
|
38
|
+
constructor(...args: unknown[]);
|
|
39
|
+
protected ctx: unknown;
|
|
40
|
+
protected env: unknown;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
interface Env {
|
|
45
|
+
// Raybase SQLite Durable Object: Raybase auth, sessions, audit and app data.
|
|
46
|
+
RAYBASE_DATA?: DurableObjectNamespace;
|
|
47
|
+
RAYBASE_AI_CHAT_AGENT?: DurableObjectNamespace;
|
|
48
|
+
RAYBASE_THREAD_ARCHIVE?: R2Bucket;
|
|
49
|
+
RAYBASE_VECTORIZE?: VectorizeIndex;
|
|
50
|
+
RAYBASE_ENV?: string;
|
|
51
|
+
BETTER_AUTH_SECRET?: string;
|
|
52
|
+
BETTER_AUTH_URL?: string;
|
|
53
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
node_modules
|
|
2
|
+
.source/
|
|
3
|
+
# Local Workers state: the app's local database, sessions and audit log
|
|
4
|
+
.wrangler/
|
|
5
|
+
|
|
6
|
+
# macOS
|
|
7
|
+
.DS_Store
|
|
8
|
+
|
|
9
|
+
/.cache
|
|
10
|
+
/build
|
|
11
|
+
/public/build/
|
|
12
|
+
/public/raybase-admin/
|
|
13
|
+
|
|
14
|
+
.env
|
|
15
|
+
.env.*
|
|
16
|
+
!.env.example
|
|
17
|
+
.dev.vars
|
|
18
|
+
|
|
19
|
+
# Raybase working state (backups, generated drizzle schema, auth secret)
|
|
20
|
+
.raybase/
|
|
21
|
+
|
|
22
|
+
# Hide files auto-generated by react router
|
|
23
|
+
.react-router/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":"7","dialect":"sqlite","entries":[]}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "__PACKAGE_NAME__",
|
|
3
|
+
"private": true,
|
|
4
|
+
"raybase": {
|
|
5
|
+
"framework": "react-router",
|
|
6
|
+
"modules": {
|
|
7
|
+
"docs": {
|
|
8
|
+
"enabled": true,
|
|
9
|
+
"package": "@raybase/docs"
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"scripts": {
|
|
14
|
+
"build": "raybase admin-assets sync && react-router build",
|
|
15
|
+
"dev": "raybase dev",
|
|
16
|
+
"doctor": "raybase doctor",
|
|
17
|
+
"test": "vitest run --config vitest.config.ts",
|
|
18
|
+
"migrate": "raybase migrate",
|
|
19
|
+
"backup": "raybase backup",
|
|
20
|
+
"deploy": "raybase deploy",
|
|
21
|
+
"deploy:wrangler": "pnpm run build && wrangler deploy",
|
|
22
|
+
"cf-typegen": "wrangler types",
|
|
23
|
+
"preview": "pnpm run build && vite preview",
|
|
24
|
+
"vite": "vite",
|
|
25
|
+
"typecheck": "react-router typegen && tsc --noEmit",
|
|
26
|
+
"check": "react-router typegen && tsc --noEmit && raybase admin-assets sync && react-router build"
|
|
27
|
+
},
|
|
28
|
+
"type": "module",
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"@ai-sdk/react": "3.0.210",
|
|
31
|
+
"@cloudflare/ai-chat": "0.8.6",
|
|
32
|
+
"@raybase/cli": "link:../../packages/cli",
|
|
33
|
+
"@raybase/core": "link:../../packages/core",
|
|
34
|
+
"@raybase/docs": "link:../../packages/docs",
|
|
35
|
+
"@react-router/dev": "^7.18.0",
|
|
36
|
+
"@react-router/fs-routes": "^7.18.0",
|
|
37
|
+
"agents": "0.16.2",
|
|
38
|
+
"ai": "6.0.208",
|
|
39
|
+
"@tailwindcss/vite": "^4.3.0",
|
|
40
|
+
"clsx": "^2.1.1",
|
|
41
|
+
"drizzle-orm": "0.45.2",
|
|
42
|
+
"fumadocs-core": "16.10.3",
|
|
43
|
+
"fumadocs-ui": "16.10.3",
|
|
44
|
+
"isbot": "^5.1.31",
|
|
45
|
+
"lucide-react": "^1.18.0",
|
|
46
|
+
"react": "^19.2.7",
|
|
47
|
+
"react-dom": "^19.2.7",
|
|
48
|
+
"react-router": "^7.18.0",
|
|
49
|
+
"tailwind-merge": "^3.6.0",
|
|
50
|
+
"tailwindcss": "^4.3.0",
|
|
51
|
+
"workers-ai-provider": "^3.2.0",
|
|
52
|
+
"zod": "^4.4.3"
|
|
53
|
+
},
|
|
54
|
+
"devDependencies": {
|
|
55
|
+
"@cloudflare/vite-plugin": "^1.42.1",
|
|
56
|
+
"@types/mdx": "^2.0.14",
|
|
57
|
+
"@types/node": "^22.18.8",
|
|
58
|
+
"@types/react": "^19.2.17",
|
|
59
|
+
"@types/react-dom": "^19.2.3",
|
|
60
|
+
"drizzle-kit": "0.31.10",
|
|
61
|
+
"fumadocs-mdx": "15.0.12",
|
|
62
|
+
"node-addon-api": "^8.5.0",
|
|
63
|
+
"node-gyp": "^12.1.0",
|
|
64
|
+
"tsx": "^4.20.3",
|
|
65
|
+
"typescript": "^5.9.3",
|
|
66
|
+
"vite": "^8.0.16",
|
|
67
|
+
"vitest": "^4.1.8",
|
|
68
|
+
"wrangler": "^4.103.0"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { readFileSync } from "node:fs";
|
|
2
|
+
import { describe, expect, it } from "vitest";
|
|
3
|
+
|
|
4
|
+
// Starter checks that need no install: the worker hands Raybase's own paths
|
|
5
|
+
// to Raybase and app pages ask Raybase who is signed in. Replace these with
|
|
6
|
+
// tests for the app's own workflows as they are built.
|
|
7
|
+
const read = (path: string) => readFileSync(new URL(`../${path}`, import.meta.url), "utf8");
|
|
8
|
+
|
|
9
|
+
describe("Raybase React Router starter", () => {
|
|
10
|
+
it("routes Raybase's sign-in, setup, invite and admin paths to Raybase", () => {
|
|
11
|
+
const server = read("app/raybase.server.ts");
|
|
12
|
+
for (const prefix of ["/admin", "/api", "/login", "/setup", "/invite", "/mcp"]) {
|
|
13
|
+
expect(server).toContain(`"${prefix}"`);
|
|
14
|
+
}
|
|
15
|
+
expect(read("workers/app.ts")).toContain("isRaybaseRequest(url)");
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
it("gates the home page on the Raybase session", () => {
|
|
19
|
+
const home = read("app/routes/_index.tsx");
|
|
20
|
+
expect(home).toContain("currentUser(");
|
|
21
|
+
expect(home).toContain("/login?next=");
|
|
22
|
+
});
|
|
23
|
+
});
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"include": ["env.d.ts", "**/*.ts", "**/*.tsx", "**/*.mdx", ".source/**/*", ".react-router/types/**/*"],
|
|
3
|
+
"exclude": ["node_modules", "build", ".wrangler"],
|
|
4
|
+
"compilerOptions": {
|
|
5
|
+
"lib": ["DOM", "DOM.Iterable", "ES2022"],
|
|
6
|
+
"strict": true,
|
|
7
|
+
"skipLibCheck": true,
|
|
8
|
+
"isolatedModules": true,
|
|
9
|
+
"allowSyntheticDefaultImports": true,
|
|
10
|
+
"removeComments": false,
|
|
11
|
+
"forceConsistentCasingInFileNames": true,
|
|
12
|
+
"noEmit": true,
|
|
13
|
+
"allowJs": true,
|
|
14
|
+
"resolveJsonModule": true,
|
|
15
|
+
"jsx": "react-jsx",
|
|
16
|
+
"module": "ESNext",
|
|
17
|
+
"moduleResolution": "Bundler",
|
|
18
|
+
"target": "ES2022",
|
|
19
|
+
"baseUrl": ".",
|
|
20
|
+
"paths": {
|
|
21
|
+
"@/*": ["./app/*"],
|
|
22
|
+
"collections/*": ["./.source/*"]
|
|
23
|
+
},
|
|
24
|
+
"types": ["node", "vite/client"],
|
|
25
|
+
"rootDirs": [".", "./.react-router/types"]
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import path from "node:path";
|
|
2
|
+
import { fileURLToPath } from "node:url";
|
|
3
|
+
import { reactRouter } from "@react-router/dev/vite";
|
|
4
|
+
import { cloudflare } from "@cloudflare/vite-plugin";
|
|
5
|
+
import { raybaseDevRestartGuard } from "@raybase/core/vite";
|
|
6
|
+
import tailwindcss from "@tailwindcss/vite";
|
|
7
|
+
import mdx from "fumadocs-mdx/vite";
|
|
8
|
+
import { defineConfig, type UserConfig } from "vite";
|
|
9
|
+
|
|
10
|
+
export default defineConfig({
|
|
11
|
+
resolve: {
|
|
12
|
+
tsconfigPaths: true,
|
|
13
|
+
alias: [
|
|
14
|
+
{
|
|
15
|
+
find: "@",
|
|
16
|
+
replacement: path.resolve(
|
|
17
|
+
path.dirname(fileURLToPath(import.meta.url)),
|
|
18
|
+
"./app",
|
|
19
|
+
),
|
|
20
|
+
},
|
|
21
|
+
],
|
|
22
|
+
// @assistant-ui/react is a peer dependency of @raybase/agent-ui; without
|
|
23
|
+
// dedupe a build can bundle two module instances and the Guide widget's
|
|
24
|
+
// contexts stop matching.
|
|
25
|
+
dedupe: ["react", "react-dom", "react/jsx-runtime", "react/jsx-dev-runtime", "lucide-react", "@assistant-ui/react"],
|
|
26
|
+
},
|
|
27
|
+
server: {
|
|
28
|
+
// `raybase dev` passes the port it chose as PORT.
|
|
29
|
+
port: Number(process.env.PORT || 3000),
|
|
30
|
+
fs: {
|
|
31
|
+
// See https://vitejs.dev/config/server-options.html#server-fs-allow for more information
|
|
32
|
+
allow: ["app", "content", ".source", "node_modules"],
|
|
33
|
+
},
|
|
34
|
+
watch: {
|
|
35
|
+
// Local Durable Object state lives under .wrangler; writes during local
|
|
36
|
+
// dev would otherwise trigger full server reloads mid-request. Raybase
|
|
37
|
+
// and Fumadocs generated output also stay out of Vite's reload loop.
|
|
38
|
+
ignored: [
|
|
39
|
+
"**/.wrangler/**",
|
|
40
|
+
"**/.source/**",
|
|
41
|
+
"**/.raybase/**",
|
|
42
|
+
"**/public/raybase-admin/**",
|
|
43
|
+
],
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
plugins: [
|
|
47
|
+
mdx(),
|
|
48
|
+
tailwindcss(),
|
|
49
|
+
// Runs the SSR environment inside workerd (locally and for builds).
|
|
50
|
+
cloudflare({ viteEnvironment: { name: "ssr" } }),
|
|
51
|
+
reactRouter(),
|
|
52
|
+
// Last, so its wrapper is the outermost one: a restart waits for a live
|
|
53
|
+
// agent turn or job run to land before anything else tears the server down.
|
|
54
|
+
raybaseDevRestartGuard(),
|
|
55
|
+
],
|
|
56
|
+
build: {
|
|
57
|
+
assetsInlineLimit: 0,
|
|
58
|
+
},
|
|
59
|
+
}) satisfies UserConfig;
|