@raybase/cli 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/dist/admin-assets.d.ts +22 -0
- package/dist/admin-assets.d.ts.map +1 -0
- package/dist/admin-assets.js +285 -0
- package/dist/admin-assets.js.map +1 -0
- package/dist/agent-remote-mcp-cli.d.ts +71 -0
- package/dist/agent-remote-mcp-cli.d.ts.map +1 -0
- package/dist/agent-remote-mcp-cli.js +466 -0
- package/dist/agent-remote-mcp-cli.js.map +1 -0
- package/dist/agent-skills-cli.d.ts +4 -0
- package/dist/agent-skills-cli.d.ts.map +1 -0
- package/dist/agent-skills-cli.js +144 -0
- package/dist/agent-skills-cli.js.map +1 -0
- package/dist/agent.d.ts +169 -0
- package/dist/agent.d.ts.map +1 -0
- package/dist/agent.js +531 -0
- package/dist/agent.js.map +1 -0
- package/dist/app-manifest.d.ts +41 -0
- package/dist/app-manifest.d.ts.map +1 -0
- package/dist/app-manifest.js +294 -0
- package/dist/app-manifest.js.map +1 -0
- package/dist/dev-cron-backstop.d.ts +53 -0
- package/dist/dev-cron-backstop.d.ts.map +1 -0
- package/dist/dev-cron-backstop.js +364 -0
- package/dist/dev-cron-backstop.js.map +1 -0
- package/dist/dev-do-watchdog.d.ts +37 -0
- package/dist/dev-do-watchdog.d.ts.map +1 -0
- package/dist/dev-do-watchdog.js +75 -0
- package/dist/dev-do-watchdog.js.map +1 -0
- package/dist/dev-inference-tape.d.ts +35 -0
- package/dist/dev-inference-tape.d.ts.map +1 -0
- package/dist/dev-inference-tape.js +502 -0
- package/dist/dev-inference-tape.js.map +1 -0
- package/dist/dev-ports.d.ts +25 -0
- package/dist/dev-ports.d.ts.map +1 -0
- package/dist/dev-ports.js +84 -0
- package/dist/dev-ports.js.map +1 -0
- package/dist/dev-project-lock.d.ts +24 -0
- package/dist/dev-project-lock.d.ts.map +1 -0
- package/dist/dev-project-lock.js +307 -0
- package/dist/dev-project-lock.js.map +1 -0
- package/dist/env-files.d.ts +10 -0
- package/dist/env-files.d.ts.map +1 -0
- package/dist/env-files.js +108 -0
- package/dist/env-files.js.map +1 -0
- package/dist/external-json.d.ts +3 -0
- package/dist/external-json.d.ts.map +1 -0
- package/dist/external-json.js +21 -0
- package/dist/external-json.js.map +1 -0
- package/dist/frameworks.d.ts +67 -0
- package/dist/frameworks.d.ts.map +1 -0
- package/dist/frameworks.js +210 -0
- package/dist/frameworks.js.map +1 -0
- package/dist/guide-corpus-doctor.d.ts +24 -0
- package/dist/guide-corpus-doctor.d.ts.map +1 -0
- package/dist/guide-corpus-doctor.js +111 -0
- package/dist/guide-corpus-doctor.js.map +1 -0
- package/dist/hosting.d.ts +85 -0
- package/dist/hosting.d.ts.map +1 -0
- package/dist/hosting.js +136 -0
- package/dist/hosting.js.map +1 -0
- package/dist/index.d.ts +253 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +11475 -0
- package/dist/index.js.map +1 -0
- package/dist/kit-doctor.d.ts +19 -0
- package/dist/kit-doctor.d.ts.map +1 -0
- package/dist/kit-doctor.js +255 -0
- package/dist/kit-doctor.js.map +1 -0
- package/dist/kit-install.d.ts +67 -0
- package/dist/kit-install.d.ts.map +1 -0
- package/dist/kit-install.js +409 -0
- package/dist/kit-install.js.map +1 -0
- package/dist/kit-manifest.d.ts +154 -0
- package/dist/kit-manifest.d.ts.map +1 -0
- package/dist/kit-manifest.js +252 -0
- package/dist/kit-manifest.js.map +1 -0
- package/dist/kit-registry.d.ts +42 -0
- package/dist/kit-registry.d.ts.map +1 -0
- package/dist/kit-registry.js +231 -0
- package/dist/kit-registry.js.map +1 -0
- package/dist/kit-spec.d.ts +37 -0
- package/dist/kit-spec.d.ts.map +1 -0
- package/dist/kit-spec.js +48 -0
- package/dist/kit-spec.js.map +1 -0
- package/dist/kit-state.d.ts +57 -0
- package/dist/kit-state.d.ts.map +1 -0
- package/dist/kit-state.js +31 -0
- package/dist/kit-state.js.map +1 -0
- package/dist/kits.d.ts +82 -0
- package/dist/kits.d.ts.map +1 -0
- package/dist/kits.js +255 -0
- package/dist/kits.js.map +1 -0
- package/dist/license-keys.d.ts +3 -0
- package/dist/license-keys.d.ts.map +1 -0
- package/dist/license-keys.js +10 -0
- package/dist/license-keys.js.map +1 -0
- package/dist/licensing.d.ts +269 -0
- package/dist/licensing.d.ts.map +1 -0
- package/dist/licensing.js +474 -0
- package/dist/licensing.js.map +1 -0
- package/dist/local-codex-relay.d.ts +19 -0
- package/dist/local-codex-relay.d.ts.map +1 -0
- package/dist/local-codex-relay.js +203 -0
- package/dist/local-codex-relay.js.map +1 -0
- package/dist/module-doctor.d.ts +35 -0
- package/dist/module-doctor.d.ts.map +1 -0
- package/dist/module-doctor.js +966 -0
- package/dist/module-doctor.js.map +1 -0
- package/dist/module-install.d.ts +71 -0
- package/dist/module-install.d.ts.map +1 -0
- package/dist/module-install.js +1133 -0
- package/dist/module-install.js.map +1 -0
- package/dist/module-manifest.d.ts +33 -0
- package/dist/module-manifest.d.ts.map +1 -0
- package/dist/module-manifest.js +301 -0
- package/dist/module-manifest.js.map +1 -0
- package/dist/module-state.d.ts +76 -0
- package/dist/module-state.d.ts.map +1 -0
- package/dist/module-state.js +162 -0
- package/dist/module-state.js.map +1 -0
- package/dist/modules.d.ts +52 -0
- package/dist/modules.d.ts.map +1 -0
- package/dist/modules.js +110 -0
- package/dist/modules.js.map +1 -0
- package/dist/palette-check.d.ts +42 -0
- package/dist/palette-check.d.ts.map +1 -0
- package/dist/palette-check.js +217 -0
- package/dist/palette-check.js.map +1 -0
- package/dist/palette-compile.d.ts +30 -0
- package/dist/palette-compile.d.ts.map +1 -0
- package/dist/palette-compile.js +149 -0
- package/dist/palette-compile.js.map +1 -0
- package/dist/pm.d.ts +11 -0
- package/dist/pm.d.ts.map +1 -0
- package/dist/pm.js +30 -0
- package/dist/pm.js.map +1 -0
- package/dist/project-local-codex-relay.d.ts +11 -0
- package/dist/project-local-codex-relay.d.ts.map +1 -0
- package/dist/project-local-codex-relay.js +95 -0
- package/dist/project-local-codex-relay.js.map +1 -0
- package/dist/shared.d.ts +4 -0
- package/dist/shared.d.ts.map +1 -0
- package/dist/shared.js +38 -0
- package/dist/shared.js.map +1 -0
- package/dist/shell-match.d.ts +29 -0
- package/dist/shell-match.d.ts.map +1 -0
- package/dist/shell-match.js +160 -0
- package/dist/shell-match.js.map +1 -0
- package/dist/template-doctor.d.ts +40 -0
- package/dist/template-doctor.d.ts.map +1 -0
- package/dist/template-doctor.js +722 -0
- package/dist/template-doctor.js.map +1 -0
- package/dist/template-install.d.ts +135 -0
- package/dist/template-install.d.ts.map +1 -0
- package/dist/template-install.js +1311 -0
- package/dist/template-install.js.map +1 -0
- package/dist/template-manifest.d.ts +328 -0
- package/dist/template-manifest.d.ts.map +1 -0
- package/dist/template-manifest.js +533 -0
- package/dist/template-manifest.js.map +1 -0
- package/dist/template-registry.d.ts +76 -0
- package/dist/template-registry.d.ts.map +1 -0
- package/dist/template-registry.js +365 -0
- package/dist/template-registry.js.map +1 -0
- package/dist/template-spec.d.ts +24 -0
- package/dist/template-spec.d.ts.map +1 -0
- package/dist/template-spec.js +38 -0
- package/dist/template-spec.js.map +1 -0
- package/dist/template-state.d.ts +108 -0
- package/dist/template-state.d.ts.map +1 -0
- package/dist/template-state.js +93 -0
- package/dist/template-state.js.map +1 -0
- package/dist/templates.d.ts +123 -0
- package/dist/templates.d.ts.map +1 -0
- package/dist/templates.js +541 -0
- package/dist/templates.js.map +1 -0
- package/dist/theme-match.d.ts +41 -0
- package/dist/theme-match.d.ts.map +1 -0
- package/dist/theme-match.js +92 -0
- package/dist/theme-match.js.map +1 -0
- package/dist/wrangler-secrets.d.ts +15 -0
- package/dist/wrangler-secrets.d.ts.map +1 -0
- package/dist/wrangler-secrets.js +97 -0
- package/dist/wrangler-secrets.js.map +1 -0
- package/kits/datasheet-grid/file-manifest.json +65 -0
- package/kits/datasheet-grid/files/AGENTS.md +6 -0
- package/kits/datasheet-grid/files/docs/datasheet-grid.md +15 -0
- package/kits/datasheet-grid/files/files/src/kits/datasheet-grid/DatasheetGridRoute.tsx +35 -0
- package/kits/datasheet-grid/files/files/src/kits/datasheet-grid/README.md +10 -0
- package/kits/datasheet-grid/files/files/src/kits/datasheet-grid/grid-adapter.ts +30 -0
- package/kits/datasheet-grid/files/files/src/kits/datasheet-grid/grid-metadata.ts +19 -0
- package/kits/datasheet-grid/files/files/src/kits/datasheet-grid/grid-state.ts +24 -0
- package/kits/datasheet-grid/files/kit.json +119 -0
- package/kits/datasheet-grid/files/skills/datasheet-grid/SKILL.md +16 -0
- package/kits/datasheet-grid/files/tests/datasheet-grid.test.ts +15 -0
- package/kits/datasheet-grid/kit.json +146 -0
- package/kits/index.json +71 -0
- package/kits/resend-email/file-manifest.json +47 -0
- package/kits/resend-email/files/AGENTS.md +7 -0
- package/kits/resend-email/files/docs/resend-email.md +13 -0
- package/kits/resend-email/files/files/src/kits/resend-email/README.md +17 -0
- package/kits/resend-email/files/files/src/kits/resend-email/send-email.ts +44 -0
- package/kits/resend-email/files/kit.json +128 -0
- package/kits/resend-email/files/skills/resend-email/SKILL.md +20 -0
- package/kits/resend-email/files/tests/resend-email.test.ts +54 -0
- package/kits/resend-email/kit.json +159 -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/README.md +0 -3
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
{
|
|
2
|
+
"categories": [
|
|
3
|
+
"email",
|
|
4
|
+
"notifications"
|
|
5
|
+
],
|
|
6
|
+
"compatibility": {
|
|
7
|
+
"frameworks": [
|
|
8
|
+
"tanstack-start",
|
|
9
|
+
"react-router"
|
|
10
|
+
],
|
|
11
|
+
"node": ">=20.0.0",
|
|
12
|
+
"raybaseCli": ">=0.2.0 <0.4.0",
|
|
13
|
+
"raybaseCore": ">=0.2.0 <0.4.0",
|
|
14
|
+
"requiresPro": false
|
|
15
|
+
},
|
|
16
|
+
"description": "Adds source-owned Resend email delivery helpers.",
|
|
17
|
+
"id": "resend-email",
|
|
18
|
+
"install": {
|
|
19
|
+
"agentInstructions": [
|
|
20
|
+
"AGENTS.md"
|
|
21
|
+
],
|
|
22
|
+
"bindings": [],
|
|
23
|
+
"docs": [
|
|
24
|
+
"docs/resend-email.md"
|
|
25
|
+
],
|
|
26
|
+
"env": [
|
|
27
|
+
{
|
|
28
|
+
"description": "Resend API key used for outbound email delivery.",
|
|
29
|
+
"name": "RESEND_API_KEY",
|
|
30
|
+
"required": true,
|
|
31
|
+
"secret": true
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"files": [
|
|
35
|
+
{
|
|
36
|
+
"frameworks": [
|
|
37
|
+
"tanstack-start"
|
|
38
|
+
],
|
|
39
|
+
"mode": "copyDir",
|
|
40
|
+
"source": "files/src/kits/resend-email",
|
|
41
|
+
"target": "src/kits/resend-email"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"frameworks": [
|
|
45
|
+
"react-router"
|
|
46
|
+
],
|
|
47
|
+
"mode": "copyDir",
|
|
48
|
+
"source": "files/src/kits/resend-email",
|
|
49
|
+
"target": "app/kits/resend-email"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"mode": "copy",
|
|
53
|
+
"source": "docs/resend-email.md",
|
|
54
|
+
"target": "docs/kits/resend-email.md"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"mode": "copy",
|
|
58
|
+
"source": "tests/resend-email.test.ts",
|
|
59
|
+
"target": "tests/kits/resend-email.test.ts"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"frameworks": [
|
|
63
|
+
"tanstack-start"
|
|
64
|
+
],
|
|
65
|
+
"mode": "copy",
|
|
66
|
+
"source": "AGENTS.md",
|
|
67
|
+
"target": "src/kits/resend-email/AGENTS.md"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"frameworks": [
|
|
71
|
+
"react-router"
|
|
72
|
+
],
|
|
73
|
+
"mode": "copy",
|
|
74
|
+
"source": "AGENTS.md",
|
|
75
|
+
"target": "app/kits/resend-email/AGENTS.md"
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
"manualChanges": [
|
|
79
|
+
{
|
|
80
|
+
"instructions": [
|
|
81
|
+
"Add \"resend\": \"^3.5.0\" to dependencies if the app does not already declare a compatible Resend version.",
|
|
82
|
+
"Run the app's package manager install command after editing package.json."
|
|
83
|
+
],
|
|
84
|
+
"reason": "Install the Resend client dependency.",
|
|
85
|
+
"target": "package.json"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"instructions": [
|
|
89
|
+
"Add RESEND_API_KEY to local development secrets or .dev.vars.",
|
|
90
|
+
"Add the deployment secret in the target Cloudflare environment before sending live email."
|
|
91
|
+
],
|
|
92
|
+
"reason": "Provide the local secret needed by the email helper.",
|
|
93
|
+
"target": ".dev.vars"
|
|
94
|
+
}
|
|
95
|
+
],
|
|
96
|
+
"nextSteps": [
|
|
97
|
+
"Add RESEND_API_KEY as a local secret in .dev.vars or your deployment secret store.",
|
|
98
|
+
"Import sendEmail from the installed kit source and pass your Worker env when sending email.",
|
|
99
|
+
"Run raybase kits doctor, then raybase doctor."
|
|
100
|
+
],
|
|
101
|
+
"skills": [
|
|
102
|
+
{
|
|
103
|
+
"description": "Use before changing the installed Resend email kit source.",
|
|
104
|
+
"name": "resend-email",
|
|
105
|
+
"source": "skills/resend-email"
|
|
106
|
+
}
|
|
107
|
+
],
|
|
108
|
+
"tests": [
|
|
109
|
+
{
|
|
110
|
+
"command": "pnpm test -- tests/kits/resend-email.test.ts",
|
|
111
|
+
"path": "tests/kits/resend-email.test.ts"
|
|
112
|
+
}
|
|
113
|
+
]
|
|
114
|
+
},
|
|
115
|
+
"name": "Resend Email",
|
|
116
|
+
"schemaVersion": 1,
|
|
117
|
+
"security": {
|
|
118
|
+
"capabilities": [
|
|
119
|
+
"outbound-email",
|
|
120
|
+
"external-network"
|
|
121
|
+
],
|
|
122
|
+
"dataTouched": [
|
|
123
|
+
"email recipient addresses",
|
|
124
|
+
"email subject and body"
|
|
125
|
+
],
|
|
126
|
+
"envSecrets": [
|
|
127
|
+
"RESEND_API_KEY"
|
|
128
|
+
],
|
|
129
|
+
"outboundHosts": [
|
|
130
|
+
"api.resend.com"
|
|
131
|
+
],
|
|
132
|
+
"publicRoutes": [],
|
|
133
|
+
"reviewChecklist": [
|
|
134
|
+
"Confirm email recipients are authorized for the app workflow.",
|
|
135
|
+
"Keep RESEND_API_KEY out of source, docs, settings tables, and logs.",
|
|
136
|
+
"Do not send live email from tests or seed scripts."
|
|
137
|
+
],
|
|
138
|
+
"sensitive": true,
|
|
139
|
+
"summary": "Adds outbound email capability and requires RESEND_API_KEY."
|
|
140
|
+
},
|
|
141
|
+
"source": {
|
|
142
|
+
"origin": "https://registry.raybase.dev/kits/v1/index.json",
|
|
143
|
+
"path": "kits/resend-email",
|
|
144
|
+
"type": "first-party"
|
|
145
|
+
},
|
|
146
|
+
"tags": [
|
|
147
|
+
"resend",
|
|
148
|
+
"email"
|
|
149
|
+
],
|
|
150
|
+
"update": {
|
|
151
|
+
"advisories": [],
|
|
152
|
+
"breaking": false,
|
|
153
|
+
"notes": "Email delivery changes should be reviewed before updating.",
|
|
154
|
+
"securitySensitive": true,
|
|
155
|
+
"strategy": "replace-owned-files"
|
|
156
|
+
},
|
|
157
|
+
"updatedAt": "2026-06-16T20:09:00.000Z",
|
|
158
|
+
"version": "0.1.0"
|
|
159
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Opening the CMS
|
|
3
|
+
description: Sign in and start editing pages.
|
|
4
|
+
public: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Sign in with the account your team gave you, then open the public site and choose CMS from the signed-in menu.
|
|
8
|
+
|
|
9
|
+
Start with Pages. Open an existing draft to review the editing pattern, or create a page when you need a new public URL.
|
|
10
|
+
|
|
11
|
+
Use the page content field to arrange reusable sections. Each section owns its own copy, media, links, and display options.
|
|
12
|
+
|
|
13
|
+
Preview before publishing. If a page needs a new reusable section or a layout change, note the goal clearly and ask the project maintainer to add the building block.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Editing the site
|
|
3
|
+
description: A quick map for signed-in content editors.
|
|
4
|
+
public: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
The CMS is where signed-in editors manage public site pages, drafts, media, and reusable page sections.
|
|
8
|
+
|
|
9
|
+
Use the CMS link in the signed-in site menu to open the editing workspace. If the link is not visible, ask the person who manages access to invite you or adjust your role.
|
|
10
|
+
|
|
11
|
+
Most pages are built from a title, slug, metadata, and a sequence of reusable sections. Edit copy and media in the CMS, preview changes, then publish when the page is ready.
|
|
12
|
+
|
|
13
|
+
Keep structural changes deliberate. If you need a new section type, navigation pattern, layout, or data-backed block, ask the project maintainer to add it safely.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Connecting an assistant
|
|
3
|
+
description: How signed-in members can connect an approved assistant.
|
|
4
|
+
public: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Some apps let signed-in members connect an approved AI assistant through the app's `/mcp` endpoint.
|
|
8
|
+
|
|
9
|
+
Only connect assistants you trust. The assistant should explain what it can read or change before you approve a task.
|
|
10
|
+
|
|
11
|
+
If the connection fails, confirm you are signed in and ask the project maintainer whether assistant access is enabled for your role.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Finding and updating pages
|
|
3
|
+
description: Navigate published pages and make safe CMS edits.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Use the site navigation to find published pages. Editors can sign in, open the CMS from the site menu, and work with drafts before publishing.
|
|
7
|
+
|
|
8
|
+
Start with Pages. Open an existing draft to review the editing pattern, or create a page when you need a new public URL.
|
|
9
|
+
|
|
10
|
+
Use the page content field to arrange reusable sections. Each section owns its own copy, media, links, and display options.
|
|
11
|
+
|
|
12
|
+
Preview before publishing. If a page needs a new reusable section or a layout change, note the goal clearly and ask the project maintainer to add the building block.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Using the site
|
|
3
|
+
description: A quick map for readers and signed-in editors.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
The site is built from pages, reusable sections, and published media. Visitors can read published pages, while signed-in editors can open the CMS to manage drafts and updates.
|
|
7
|
+
|
|
8
|
+
Editors use the CMS link in the signed-in site menu. If the link is not visible, ask the person who manages access to invite you or adjust your role.
|
|
9
|
+
|
|
10
|
+
Most pages are built from a title, slug, metadata, and a sequence of reusable sections. Edit copy and media in the CMS, preview changes, then publish when the page is ready.
|
|
11
|
+
|
|
12
|
+
Keep structural changes deliberate. If you need a new section type, navigation pattern, layout, or data-backed block, ask the project maintainer to add it safely.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Connecting an assistant
|
|
3
|
+
description: How signed-in members can connect an approved assistant.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Some apps let signed-in members connect an approved AI assistant through the app's `/mcp` endpoint.
|
|
7
|
+
|
|
8
|
+
Only connect assistants you trust. The assistant should explain what it can read or change before you approve a task.
|
|
9
|
+
|
|
10
|
+
If the connection fails, confirm you are signed in and ask the project maintainer whether assistant access is enabled for your role.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const docsClientScriptSrc = import.meta.env.DEV ? "/src/docs/docs-client.tsx" : "/assets/raybase-docs-client.js";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import "@vitejs/plugin-react/preamble";
|
|
2
|
+
import { StrictMode, startTransition } from "react";
|
|
3
|
+
import { hydrateRoot } from "react-dom/client";
|
|
4
|
+
import { DocsRoot, preloadDocsContent, type DocsPageData } from "./docs-page";
|
|
5
|
+
|
|
6
|
+
const root = document.getElementById("raybase-docs-root");
|
|
7
|
+
const dataScript = document.getElementById("raybase-docs-page-data");
|
|
8
|
+
|
|
9
|
+
if (root && dataScript?.textContent) {
|
|
10
|
+
const data = JSON.parse(dataScript.textContent) as DocsPageData;
|
|
11
|
+
|
|
12
|
+
startTransition(() => {
|
|
13
|
+
void preloadDocsContent(data).then(() => {
|
|
14
|
+
hydrateRoot(
|
|
15
|
+
root,
|
|
16
|
+
<StrictMode>
|
|
17
|
+
<DocsRoot data={data} />
|
|
18
|
+
</StrictMode>
|
|
19
|
+
);
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { SerializedPageTree } from "fumadocs-core/source/client";
|
|
2
|
+
import type { DocsPageData } from "./docs-page";
|
|
3
|
+
import { preloadDocsContent } from "./docs-page";
|
|
4
|
+
import { source } from "./source";
|
|
5
|
+
|
|
6
|
+
export async function loadDocsPageTree(): Promise<SerializedPageTree> {
|
|
7
|
+
return source.serializePageTree(source.getPageTree());
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export async function loadDocsPageData(slugs: string[]): Promise<DocsPageData | null> {
|
|
11
|
+
const page = source.getPage(slugs);
|
|
12
|
+
if (!page) return null;
|
|
13
|
+
|
|
14
|
+
const data = {
|
|
15
|
+
path: page.path,
|
|
16
|
+
url: page.url,
|
|
17
|
+
title: page.data.title,
|
|
18
|
+
description: page.data.description,
|
|
19
|
+
pageTree: await loadDocsPageTree()
|
|
20
|
+
} satisfies DocsPageData;
|
|
21
|
+
|
|
22
|
+
await preloadDocsContent(data);
|
|
23
|
+
return data;
|
|
24
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { createFromSource } from "fumadocs-core/search/server";
|
|
2
|
+
import { renderToReadableStream } from "react-dom/server";
|
|
3
|
+
import docsCss from "../styles-docs.css?inline";
|
|
4
|
+
import { docsClientScriptSrc } from "./docs-assets";
|
|
5
|
+
import { loadDocsPageData, loadDocsPageTree } from "./docs-data";
|
|
6
|
+
import { DocsRoot, type DocsPageData } from "./docs-page";
|
|
7
|
+
import { getDocsMarkdownResponse, getDocsSlugs } from "./llm-text";
|
|
8
|
+
import { source } from "./source";
|
|
9
|
+
|
|
10
|
+
const docsThemeInitScript =
|
|
11
|
+
"(function(){try{var t=localStorage.getItem('theme');var d=t==='dark'||((!t||t==='system')&&matchMedia('(prefers-color-scheme: dark)').matches);document.documentElement.classList.toggle('dark',d);}catch(e){}})();";
|
|
12
|
+
|
|
13
|
+
const search = createFromSource(source, {
|
|
14
|
+
language: "english"
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
export async function handleDocsRequest(request: Request): Promise<Response> {
|
|
18
|
+
const url = new URL(request.url);
|
|
19
|
+
|
|
20
|
+
if (url.pathname === "/docs/api/search") {
|
|
21
|
+
return search.GET(request);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
if (url.pathname === "/docs/api/markdown") {
|
|
25
|
+
const response = await getDocsMarkdownResponse(url.searchParams.get("path"));
|
|
26
|
+
return response ?? new Response("Not found", { status: 404 });
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
if (/\.mdx?$/.test(url.pathname)) {
|
|
30
|
+
const response = await getDocsMarkdownResponse(url.pathname);
|
|
31
|
+
return response ?? new Response("Not found", { status: 404 });
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
const data = await loadDocsPageData(getDocsSlugs(url.pathname));
|
|
35
|
+
if (!data) {
|
|
36
|
+
return docsHtmlResponse(
|
|
37
|
+
{
|
|
38
|
+
path: "",
|
|
39
|
+
url: url.pathname,
|
|
40
|
+
title: "Docs page not found",
|
|
41
|
+
pageTree: await loadDocsPageTree()
|
|
42
|
+
},
|
|
43
|
+
"<main class=\"mx-auto flex min-h-screen max-w-3xl flex-col justify-center px-6 py-16\"><p class=\"text-sm font-medium text-fd-muted-foreground\">404</p><h1 class=\"mt-3 text-3xl font-semibold text-fd-foreground\">Docs page not found</h1><p class=\"mt-3 text-fd-muted-foreground\">The requested documentation page does not exist.</p><a class=\"mt-6 inline-flex text-sm font-medium text-fd-primary underline-offset-4 hover:underline\" href=\"/docs\">Back to docs</a></main>",
|
|
44
|
+
404
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
return docsHtmlResponse(data, await renderDocsBody(data));
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
async function renderDocsBody(data: DocsPageData): Promise<string> {
|
|
52
|
+
const stream = await renderToReadableStream(<DocsRoot data={cloneDocsPageData(data)} />);
|
|
53
|
+
await stream.allReady;
|
|
54
|
+
return new Response(stream).text();
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
function cloneDocsPageData(data: DocsPageData): DocsPageData {
|
|
58
|
+
return JSON.parse(JSON.stringify(data)) as DocsPageData;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
function docsHtmlResponse(data: DocsPageData, body: string, status = 200): Response {
|
|
62
|
+
const html = `<!doctype html>
|
|
63
|
+
<html lang="en">
|
|
64
|
+
<head>
|
|
65
|
+
<meta charset="utf-8" />
|
|
66
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
67
|
+
<title>${escapeHtml(data.title)}</title>
|
|
68
|
+
<script>${docsThemeInitScript}</script>
|
|
69
|
+
<style id="raybase-docs-styles">${docsCss}</style>
|
|
70
|
+
</head>
|
|
71
|
+
<body>
|
|
72
|
+
<div id="raybase-docs-root">${body}</div>
|
|
73
|
+
<script type="application/json" id="raybase-docs-page-data">${escapeJson(data)}</script>
|
|
74
|
+
<script type="module" async src="${docsClientScriptSrc}"></script>
|
|
75
|
+
</body>
|
|
76
|
+
</html>`;
|
|
77
|
+
|
|
78
|
+
return new Response(html, {
|
|
79
|
+
status,
|
|
80
|
+
headers: {
|
|
81
|
+
"content-type": "text/html; charset=utf-8"
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
function escapeJson(value: unknown): string {
|
|
87
|
+
return JSON.stringify(value).replace(/</g, "\\u003c");
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
function escapeHtml(value: string): string {
|
|
91
|
+
return value.replace(/[&<>"']/g, (char) => {
|
|
92
|
+
switch (char) {
|
|
93
|
+
case "&":
|
|
94
|
+
return "&";
|
|
95
|
+
case "<":
|
|
96
|
+
return "<";
|
|
97
|
+
case ">":
|
|
98
|
+
return ">";
|
|
99
|
+
case "\"":
|
|
100
|
+
return """;
|
|
101
|
+
default:
|
|
102
|
+
return "'";
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { DocsLayoutProps } from "fumadocs-ui/layouts/docs";
|
|
2
|
+
import type { ComponentProps } from "react";
|
|
3
|
+
import { ThemeSwitch } from "fumadocs-ui/layouts/shared/slots/theme-switch";
|
|
4
|
+
import { ArrowLeft } from "lucide-react";
|
|
5
|
+
import { appConfig } from "../raybase.config";
|
|
6
|
+
|
|
7
|
+
const appHomeHref = "/";
|
|
8
|
+
|
|
9
|
+
export function baseOptions(): Omit<DocsLayoutProps, "children" | "tree"> {
|
|
10
|
+
return {
|
|
11
|
+
nav: {
|
|
12
|
+
title: DocsNavTitle,
|
|
13
|
+
url: appHomeHref
|
|
14
|
+
},
|
|
15
|
+
sidebar: {
|
|
16
|
+
footer: <DocsSidebarFooter />
|
|
17
|
+
},
|
|
18
|
+
themeSwitch: {
|
|
19
|
+
enabled: false
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
function DocsNavTitle({ className, href = appHomeHref, ...props }: ComponentProps<"a">) {
|
|
25
|
+
return (
|
|
26
|
+
<div className={className}>
|
|
27
|
+
<div className="inline-flex min-w-0 flex-col items-start gap-0.5 leading-none">
|
|
28
|
+
<a
|
|
29
|
+
{...props}
|
|
30
|
+
href={href}
|
|
31
|
+
title={`Back to ${appConfig.appName}`}
|
|
32
|
+
className="max-w-44 truncate rounded-sm text-[0.9375rem] font-semibold leading-none text-fd-foreground underline-offset-4 transition-colors hover:text-fd-primary hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fd-ring"
|
|
33
|
+
>
|
|
34
|
+
{appConfig.appName}
|
|
35
|
+
</a>
|
|
36
|
+
<span className="text-[0.6875rem] font-medium leading-none text-fd-muted-foreground">Docs</span>
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
function DocsSidebarFooter() {
|
|
43
|
+
return (
|
|
44
|
+
<div className="mt-2 flex min-w-0 items-center justify-between gap-3 border-t pt-3">
|
|
45
|
+
<a
|
|
46
|
+
href={appHomeHref}
|
|
47
|
+
title={`Back to ${appConfig.appName}`}
|
|
48
|
+
className="inline-flex min-w-0 items-center gap-1.5 rounded-md px-1 py-1 text-xs font-medium text-fd-muted-foreground transition-colors hover:text-fd-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fd-ring"
|
|
49
|
+
>
|
|
50
|
+
<ArrowLeft className="size-3.5 shrink-0" aria-hidden="true" />
|
|
51
|
+
<span className="truncate">Back to app</span>
|
|
52
|
+
</a>
|
|
53
|
+
<ThemeSwitch className="shrink-0 p-0" />
|
|
54
|
+
</div>
|
|
55
|
+
);
|
|
56
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { CodeBlock, Pre } from "fumadocs-ui/components/codeblock";
|
|
2
|
+
import defaultMdxComponents from "fumadocs-ui/mdx";
|
|
3
|
+
import type { MDXComponents } from "mdx/types";
|
|
4
|
+
|
|
5
|
+
interface McpServerUrlProps {
|
|
6
|
+
path?: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
interface ClaudeMcpAddCommandProps extends McpServerUrlProps {
|
|
10
|
+
name?: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
interface CodexMcpAddCommandProps extends McpServerUrlProps {
|
|
14
|
+
name?: string;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
function browserOrigin() {
|
|
18
|
+
return typeof window === "undefined" ? "" : window.location.origin;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
function currentUrl(path = "/mcp") {
|
|
22
|
+
const origin = browserOrigin();
|
|
23
|
+
return origin ? new URL(path, origin).toString() : path;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
function McpServerUrl(props: McpServerUrlProps) {
|
|
27
|
+
return <code suppressHydrationWarning>{currentUrl(props.path)}</code>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
function McpServerUrlBlock(props: McpServerUrlProps) {
|
|
31
|
+
return (
|
|
32
|
+
<CodeBlock>
|
|
33
|
+
<Pre>
|
|
34
|
+
<code suppressHydrationWarning>{currentUrl(props.path)}</code>
|
|
35
|
+
</Pre>
|
|
36
|
+
</CodeBlock>
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function ClaudeMcpAddCommand(props: ClaudeMcpAddCommandProps) {
|
|
41
|
+
const command = `claude mcp add --transport http ${props.name ?? "this-app"} "${currentUrl(props.path)}"`;
|
|
42
|
+
|
|
43
|
+
return (
|
|
44
|
+
<CodeBlock>
|
|
45
|
+
<Pre>
|
|
46
|
+
<code suppressHydrationWarning>{command}</code>
|
|
47
|
+
</Pre>
|
|
48
|
+
</CodeBlock>
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
function CodexMcpAddCommand(props: CodexMcpAddCommandProps) {
|
|
53
|
+
const command = `codex mcp add ${props.name ?? "this-app"} --url "${currentUrl(props.path)}"`;
|
|
54
|
+
|
|
55
|
+
return (
|
|
56
|
+
<CodeBlock>
|
|
57
|
+
<Pre>
|
|
58
|
+
<code suppressHydrationWarning>{command}</code>
|
|
59
|
+
</Pre>
|
|
60
|
+
</CodeBlock>
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function getMDXComponents(components?: MDXComponents) {
|
|
65
|
+
return {
|
|
66
|
+
...defaultMdxComponents,
|
|
67
|
+
McpServerUrl,
|
|
68
|
+
McpServerUrlBlock,
|
|
69
|
+
ClaudeMcpAddCommand,
|
|
70
|
+
CodexMcpAddCommand,
|
|
71
|
+
...components
|
|
72
|
+
} satisfies MDXComponents;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export const useMDXComponents = getMDXComponents;
|
|
76
|
+
|
|
77
|
+
declare global {
|
|
78
|
+
type MDXProvidedComponents = ReturnType<typeof getMDXComponents>;
|
|
79
|
+
}
|