@protobase/cli 0.58.8 → 0.59.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/package.js +1 -1
- package/dist/dev/api-websockets.js +1 -1
- package/package.json +7 -7
- package/skills/protobase/SKILL.md +1 -0
- package/skills/protobase/references/features/access.md +1 -1
- package/skills/protobase/references/features/actions.md +1 -1
- package/skills/protobase/references/features/ai.md +1 -1
- package/skills/protobase/references/features/api-functions.md +1 -1
- package/skills/protobase/references/features/build-and-run.md +1 -1
- package/skills/protobase/references/features/calls.md +1 -1
- package/skills/protobase/references/features/compatibility.md +1 -1
- package/skills/protobase/references/features/composed-pages.md +1 -1
- package/skills/protobase/references/features/data-model.md +1 -1
- package/skills/protobase/references/features/email-and-public-forms.md +1 -1
- package/skills/protobase/references/features/events-webhooks-and-jobs.md +1 -1
- package/skills/protobase/references/features/files-and-images.md +1 -1
- package/skills/protobase/references/features/history-comments-and-live-updates.md +3 -1
- package/skills/protobase/references/features/list-displays.md +1 -1
- package/skills/protobase/references/features/lists.md +1 -1
- package/skills/protobase/references/features/look-and-language.md +1 -1
- package/skills/protobase/references/features/navigation.md +1 -1
- package/skills/protobase/references/features/notifications.md +1 -1
- package/skills/protobase/references/features/record-pages.md +1 -1
- package/skills/protobase/references/features/releases.md +1 -1
- package/skills/protobase/references/features/rest-api.md +1 -1
- package/skills/protobase/references/features/several-apps.md +1 -1
- package/skills/protobase/references/features/sign-in-and-accounts.md +1 -1
- package/skills/protobase/references/features/start-a-project.md +1 -1
- package/skills/protobase/references/features/your-own-code.md +1 -1
- package/skills/protobase/references/features.md +1 -1
- package/skills/protobase/references/getting-started.md +2 -2
- package/skills/protobase/references/guides/api-functions.md +3 -2
- package/skills/protobase/references/guides/billing-page.md +1 -1
- package/skills/protobase/references/guides/create-page.md +1 -1
- package/skills/protobase/references/guides/deploy.md +1 -1
- package/skills/protobase/references/guides/existing-database.md +1 -1
- package/skills/protobase/references/guides/export-a-list.md +1 -1
- package/skills/protobase/references/guides/field-type.md +1 -1
- package/skills/protobase/references/guides/first-composed-page.md +1 -1
- package/skills/protobase/references/guides/first-plugin.md +1 -1
- package/skills/protobase/references/guides/import-records.md +1 -1
- package/skills/protobase/references/guides/mobile-app.md +1 -1
- package/skills/protobase/references/guides/personal-setting.md +1 -1
- package/skills/protobase/references/guides/plugin-build.md +1 -1
- package/skills/protobase/references/guides/push-notifications.md +1 -1
- package/skills/protobase/references/guides/record-card.md +1 -1
- package/skills/protobase/references/guides/remote-resources.md +1 -1
- package/skills/protobase/references/guides/table-to-admin.md +1 -1
- package/skills/protobase/references/guides/theme-an-app.md +1 -1
- package/skills/protobase/references/reference/access.md +1 -1
- package/skills/protobase/references/reference/ai.md +1 -1
- package/skills/protobase/references/reference/api.md +1 -1
- package/skills/protobase/references/reference/app-identity.md +1 -1
- package/skills/protobase/references/reference/architecture.md +3 -3
- package/skills/protobase/references/reference/assistant.md +1 -1
- package/skills/protobase/references/reference/auth.md +1 -1
- package/skills/protobase/references/reference/blocks.md +1 -1
- package/skills/protobase/references/reference/bottom-bar.md +1 -1
- package/skills/protobase/references/reference/calls.md +1 -1
- package/skills/protobase/references/reference/channels.md +93 -0
- package/skills/protobase/references/reference/cli.md +1 -1
- package/skills/protobase/references/reference/client.md +2 -2
- package/skills/protobase/references/reference/comments.md +1 -1
- package/skills/protobase/references/reference/config/admin-app.md +1 -1
- package/skills/protobase/references/reference/config/api.md +2 -2
- package/skills/protobase/references/reference/config/app.md +1 -1
- package/skills/protobase/references/reference/config/files.md +1 -1
- package/skills/protobase/references/reference/config/jobs-and-events.md +1 -1
- package/skills/protobase/references/reference/config/sign-in.md +1 -1
- package/skills/protobase/references/reference/config.md +1 -1
- package/skills/protobase/references/reference/custom-components.md +1 -1
- package/skills/protobase/references/reference/data-config.md +1 -1
- package/skills/protobase/references/reference/email.md +1 -1
- package/skills/protobase/references/reference/events.md +1 -1
- package/skills/protobase/references/reference/files.md +1 -1
- package/skills/protobase/references/reference/forms.md +1 -1
- package/skills/protobase/references/reference/history.md +1 -1
- package/skills/protobase/references/reference/installable-app.md +1 -1
- package/skills/protobase/references/reference/jobs.md +1 -1
- package/skills/protobase/references/reference/languages.md +1 -1
- package/skills/protobase/references/reference/layouts.md +1 -1
- package/skills/protobase/references/reference/live.md +4 -2
- package/skills/protobase/references/reference/mcp.md +1 -1
- package/skills/protobase/references/reference/notifications.md +1 -1
- package/skills/protobase/references/reference/plugins.md +1 -1
- package/skills/protobase/references/reference/remote-resources.md +1 -1
- package/skills/protobase/references/reference/sidebar.md +1 -1
- package/skills/protobase/references/reference/supabase-realtime.md +2 -2
- package/skills/protobase/references/reference/supabase-rest.md +1 -1
- package/skills/protobase/references/reference/supabase-storage.md +1 -1
- package/skills/protobase/references/reference/theme.md +1 -1
- package/skills/protobase/references/reference/ui-config.md +1 -1
- package/skills/protobase/references/reference/user-menu.md +1 -1
- package/skills/protobase/references/reference/versioning.md +1 -1
- package/skills/protobase/references/reference/webhooks.md +1 -1
package/dist/cli/package.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isAllowedHost } from "./allowed-host.js";
|
|
2
2
|
//#region src/dev/api-websockets.ts
|
|
3
|
-
const isApiWebSocket = (url) => /^\/api\/sb\/realtime\/v1\/websocket(\?|$)/.test(url) || /^\/api\/functions\/[^/?#]+(\/|\?|$)/.test(url);
|
|
3
|
+
const isApiWebSocket = (url) => /^\/api\/sb\/realtime\/v1\/websocket(\?|$)/.test(url) || /^\/api\/channels(\?|$)/.test(url) || /^\/api\/functions\/[^/?#]+(\/|\?|$)/.test(url);
|
|
4
4
|
/**
|
|
5
5
|
* The listener for Vite's `upgrade` event: an API socket goes to `forward` once its Host passes Vite's host check, as
|
|
6
6
|
* every other dev request does, and is refused with 403 otherwise; any other upgrade is left to Vite.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@protobase/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.59.0",
|
|
4
4
|
"description": "The protobase command: scaffold, doctor, dev, build and serve a Protobase project.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -42,12 +42,12 @@
|
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@better-auth/core": "^1.7.12",
|
|
44
44
|
"@hono/node-server": "^2.1.3",
|
|
45
|
-
"@protobase/config": "0.
|
|
46
|
-
"@protobase/layout": "0.
|
|
47
|
-
"@protobase/query": "0.
|
|
48
|
-
"@protobase/schema": "0.
|
|
49
|
-
"@protobase/server": "0.
|
|
50
|
-
"@protobase/ui": "0.
|
|
45
|
+
"@protobase/config": "0.59.0",
|
|
46
|
+
"@protobase/layout": "0.59.0",
|
|
47
|
+
"@protobase/query": "0.59.0",
|
|
48
|
+
"@protobase/schema": "0.59.0",
|
|
49
|
+
"@protobase/server": "0.59.0",
|
|
50
|
+
"@protobase/ui": "0.59.0",
|
|
51
51
|
"@react-email/render": "^2.1.0",
|
|
52
52
|
"@scalar/hono-api-reference": "^0.12.10",
|
|
53
53
|
"@tailwindcss/vite": "^4.3.3",
|
|
@@ -82,6 +82,7 @@ Reference:
|
|
|
82
82
|
- When keeping or showing the changes of records → read [Record history](references/reference/history.md)
|
|
83
83
|
- When adding comments to records → read [Record comments](references/reference/comments.md)
|
|
84
84
|
- When open pages should refresh as records change → read [Live updates](references/reference/live.md)
|
|
85
|
+
- When pages on a record should see who else is there or send each other short-lived events (presence, broadcast) → read [Channels](references/reference/channels.md)
|
|
85
86
|
- When an app uses supabase-js Realtime (`postgres_changes` under RLS, broadcast, presence) → read [Supabase Realtime](references/reference/supabase-realtime.md)
|
|
86
87
|
- When filling fields with a model → read [AI fields and actions](references/reference/ai.md)
|
|
87
88
|
- When letting people without an account create records → read [Public forms](references/reference/forms.md)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/features/access.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/features/access.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Access
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/features/actions.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/features/actions.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Actions
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/features/ai.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/features/ai.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# AI
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/features/api-functions.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/features/api-functions.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# API functions
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/features/build-and-run.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/features/build-and-run.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Build and run
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/features/calls.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/features/calls.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Calls
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/features/compatibility.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/features/compatibility.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Compatibility and moving from other systems
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/features/composed-pages.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/features/composed-pages.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Composed pages
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/features/data-model.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/features/data-model.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Data model
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/features/email-and-public-forms.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/features/email-and-public-forms.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Email and public forms
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/features/events-webhooks-and-jobs.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/features/events-webhooks-and-jobs.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Events, webhooks and jobs
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/features/files-and-images.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/features/files-and-images.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Files and images
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/features/history-comments-and-live-updates.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/features/history-comments-and-live-updates.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# History, comments and live updates
|
|
4
4
|
|
|
@@ -12,3 +12,5 @@ The changes of each record, comments on it, and pages that refresh as records ch
|
|
|
12
12
|
- [Comment moderation](../reference/comments.md#moderation): Admins find and delete comments across the app.
|
|
13
13
|
- [Live updates](../reference/live.md#what-a-page-hears): Open lists and record pages refresh within seconds when a record changes, including changes made outside the API.
|
|
14
14
|
- [Change stream](../reference/live.md#the-stream): Apps follow record changes over a stream that catches up after a reconnect.
|
|
15
|
+
- [Presence](../reference/channels.md#presence) (beta): Apps see who else has a record open and what each of them tracks, such as online or away, for whoever may read the record.
|
|
16
|
+
- [Broadcasts](../reference/channels.md#broadcasts) (beta): Apps on a record send each other short-lived events, such as typing, which are never stored; the app's own code sends them too.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/features/list-displays.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/features/list-displays.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# List displays
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/features/lists.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/features/lists.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Lists
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/features/look-and-language.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/features/look-and-language.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Look and language
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/features/navigation.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/features/navigation.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Navigation
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/features/notifications.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/features/notifications.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Notifications
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/features/record-pages.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/features/record-pages.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Record pages
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/features/releases.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/features/releases.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Releases
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/features/rest-api.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/features/rest-api.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# REST API
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/features/several-apps.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/features/several-apps.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Several apps
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/features/sign-in-and-accounts.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/features/sign-in-and-accounts.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Sign-in and accounts
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/features/start-a-project.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/features/start-a-project.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Start a project
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/features/your-own-code.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/features/your-own-code.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Your own code
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/features.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/features.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Features
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/getting-started.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/getting-started.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Getting started
|
|
4
4
|
|
|
@@ -143,7 +143,7 @@ bun run --cwd tests/apps/property-portal dev # http://localhost:517
|
|
|
143
143
|
| `bun run screenshots` / `bun run screenshots:dark` | screenshots of the stories tagged `website`, in light into `screenshots/`, in dark into `screenshots/dark/` |
|
|
144
144
|
| `bun run build:serve` | the serve runtime, `dist/protobase-serve.js` (see [Deploy](guides/deploy.md)) |
|
|
145
145
|
| `bun run docs:dev` | this site on port 4321 |
|
|
146
|
-
| `bun run docs:build` | this site, built into `website/dist/`; fails on broken links |
|
|
146
|
+
| `bun run docs:build` | this site, built into `docs/website/dist/`; fails on broken links |
|
|
147
147
|
| `bun run release --dry-run` | the next version and its changelog, from the commits since the last release (see [Versioning](reference/versioning.md)) |
|
|
148
148
|
| `bun run docs:check` | opens every page of the built site in Chromium and fails on console errors and failed requests; `BASE=https://docs.protobase.net` checks the live site |
|
|
149
149
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/guides/api-functions.mdx: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/guides/api-functions.mdx: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Your own API functions
|
|
4
4
|
|
|
@@ -53,9 +53,10 @@ The second argument of a handler (`c.env` in a [Hono app](#hono-apps)):
|
|
|
53
53
|
| `decryptField(resource, key, field)` | An [encrypted field](../reference/data-config.md#reading-in-jobs-and-functions)'s value, skipping access rules like `db`; each read is audited, naming the function and the caller. |
|
|
54
54
|
| `acceptWebSocket(events)` | Answers a WebSocket upgrade with a socket; return its response. See [WebSockets](#websockets). |
|
|
55
55
|
| `calls.join(member)` | The events of a member's socket in a call, for `acceptWebSocket`. See [Calls](../reference/calls.md). |
|
|
56
|
+
| `channels` | `channels.broadcast({ resource, key, event, payload })` sends to whoever is on a record's [channel](../reference/channels.md#from-the-server), as the server. |
|
|
56
57
|
| `name` | The function's name. |
|
|
57
58
|
|
|
58
|
-
A [public function](#public-functions-and-webhooks) has only `db`, `caller()`, `acceptWebSocket`, `calls` and `name`.
|
|
59
|
+
A [public function](#public-functions-and-webhooks) has only `db`, `caller()`, `acceptWebSocket`, `calls`, `channels` and `name`.
|
|
59
60
|
|
|
60
61
|
## Reading and writing records as the caller
|
|
61
62
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/guides/billing-page.mdx: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/guides/billing-page.mdx: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# A billing page
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/guides/create-page.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/guides/create-page.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# A create page of your own
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/guides/deploy.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/guides/deploy.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Deploy
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/guides/existing-database.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/guides/existing-database.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Admin over an existing database
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/guides/export-a-list.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/guides/export-a-list.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Exporting a list
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/guides/field-type.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/guides/field-type.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Adding a field type
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/guides/first-composed-page.mdx: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/guides/first-composed-page.mdx: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Your first composed page
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/guides/first-plugin.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/guides/first-plugin.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Your first plugin
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/guides/import-records.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/guides/import-records.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Importing records from a spreadsheet
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/guides/mobile-app.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/guides/mobile-app.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# A mobile app
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/guides/personal-setting.mdx: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/guides/personal-setting.mdx: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Add a personal setting
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/guides/plugin-build.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/guides/plugin-build.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Moving onto the plugin build
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/guides/push-notifications.mdx: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/guides/push-notifications.mdx: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Send notifications
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/guides/record-card.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/guides/record-card.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# A custom record card
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/guides/remote-resources.mdx: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/guides/remote-resources.mdx: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Showing another app's records
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/guides/table-to-admin.mdx: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/guides/table-to-admin.mdx: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# From a table to an admin
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/guides/theme-an-app.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/guides/theme-an-app.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Theming an app
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/reference/access.mdx: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/reference/access.mdx: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Access
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/reference/ai.mdx: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/reference/ai.mdx: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# AI fields and actions
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/reference/api.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/reference/api.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# REST API
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/reference/app-identity.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/reference/app-identity.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# App identity
|
|
4
4
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/reference/architecture.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/reference/architecture.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Architecture
|
|
4
4
|
|
|
5
5
|
How the packages are laid out, which package may import which, and where tests and stories live.
|
|
6
6
|
|
|
7
|
-
A Bun workspace of npm packages under the `@protobase` scope, in `packages/<name>`, all released together at one version. `tests/apps/*`, the example apps the tests run on and the presets are written from, are workspace members that consume the packages; `website` is this documentation site (Astro with Starlight), also a workspace member. The workspace root is private and is not published.
|
|
7
|
+
A Bun workspace of npm packages under the `@protobase` scope, in `packages/<name>`, all released together at one version. `tests/apps/*`, the example apps the tests run on and the presets are written from, are workspace members that consume the packages; `docs/website` is this documentation site (Astro with Starlight), also a workspace member. The workspace root is private and is not published.
|
|
8
8
|
|
|
9
9
|
## Packages
|
|
10
10
|
|
|
@@ -63,6 +63,6 @@ Filters are Google AIP-160 text. Parsing, printing, `order_by` and the generic c
|
|
|
63
63
|
|
|
64
64
|
## Documentation
|
|
65
65
|
|
|
66
|
-
`website/` is this site. `bun run docs:dev` serves it on port 4321; `bun run docs:build` writes `website/dist/` and fails on a broken internal link or anchor, so CI runs it on every pull request, followed by `bun run docs:check`, which opens every page in Chromium and fails on a console error or a failed request. Pages are Markdown or MDX in `website/src/content/docs/`, and the sidebar is listed in `website/sidebar.mjs`.
|
|
66
|
+
`docs/website/` is this site. `bun run docs:dev` serves it on port 4321; `bun run docs:build` writes `docs/website/dist/` and fails on a broken internal link or anchor, so CI runs it on every pull request, followed by `bun run docs:check`, which opens every page in Chromium and fails on a console error or a failed request. Pages are Markdown or MDX in `docs/website/src/content/docs/`, and the sidebar is listed in `docs/website/sidebar.mjs`.
|
|
67
67
|
|
|
68
68
|
Every push to `main` builds the site and deploys it, and so does running the workflow by hand (`gh workflow run docs.yml`); either way it deploys to the Cloudflare Pages project `protobase-docs`, served at `docs.protobase.net` (`.github/workflows/docs.yml`). The workflow reads the Cloudflare account id from the repository variable `CLOUDFLARE_ACCOUNT_ID` and a token with Cloudflare Pages edit permission from the repository secret `CLOUDFLARE_API_TOKEN`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/reference/assistant.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/reference/assistant.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Assistant
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/reference/auth.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/reference/auth.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Login with Better Auth
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/reference/blocks.mdx: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/reference/blocks.mdx: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Blocks
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/reference/bottom-bar.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/reference/bottom-bar.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Bottom bar
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/reference/calls.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/reference/calls.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Calls
|
|
4
4
|
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/reference/channels.mdx: run `bun run docs:skill`, do not edit. -->
|
|
2
|
+
|
|
3
|
+
# Channels
|
|
4
|
+
|
|
5
|
+
Every record has a channel, where the pages that have it open see who else is there and send each other short-lived events, for whoever may read the record.
|
|
6
|
+
|
|
7
|
+
Every record of the app has a channel. The pages on it see who else is there and what each of them tracks, such as online or away (presence), and send each other events that are never stored, such as typing (broadcasts). Whoever may read the record may join its channel; nothing else needs to be set up. A record everyone may read, a visitor of the anonymous role included, makes an open channel.
|
|
8
|
+
|
|
9
|
+
:::caution[Beta]
|
|
10
|
+
SQL cannot send to a channel, and a broadcast carries JSON only, not binary bytes.
|
|
11
|
+
:::
|
|
12
|
+
|
|
13
|
+
## From a page
|
|
14
|
+
|
|
15
|
+
`client.channel(resource, key)` of [`@protobase/client`](client.md) joins the record's channel:
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
const room = client.channel('rooms', 42)
|
|
19
|
+
|
|
20
|
+
room.onStatus((status) => console.log(status.state))
|
|
21
|
+
room.onPresence((entries) => console.log(entries.map((entry) => `${entry.user}: ${JSON.stringify(entry.state)}`)))
|
|
22
|
+
room.on('typing', ({ user, payload }) => console.log(user, 'is typing', payload))
|
|
23
|
+
|
|
24
|
+
await room.track({ status: 'online' })
|
|
25
|
+
await room.send('typing', { on: true })
|
|
26
|
+
|
|
27
|
+
room.leave()
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
| | |
|
|
31
|
+
| --- | --- |
|
|
32
|
+
| `status()`, `onStatus(listener)` | `joining`, also while the connection is down; `joined`; `refused`, with its `error`, for a record there is none of or the caller may not read; `closed`, with its `error`, when the server left the channel, such as once the caller may no longer read the record. A refused or closed channel is not joined again. |
|
|
33
|
+
| `presence()`, `onPresence(listener)` | Every connection on the channel that tracks a state, this one included, as `{ id, user, state }`; the listener gets the whole presence and, for a change, its `{ joins, updates, leaves }`. |
|
|
34
|
+
| `track(state)`, `untrack()` | Tracks this connection's JSON state on the channel, replaces it, or takes it out. A state tracked before the channel joined is tracked once it does, and again after a reconnect. |
|
|
35
|
+
| `send(event, payload, { self?, ack? })` | Broadcasts a JSON payload to the others on the channel; `self` hears it too, and with `ack` it resolves once the server took it, or rejects with a `ChannelRefusal`. |
|
|
36
|
+
| `on(event, listener)` | Hears the channel's broadcasts of `event`, each `{ event, payload, user }`, and `server: true` for one the app's own code sent. |
|
|
37
|
+
| `leave()` | Lets the channel go. |
|
|
38
|
+
|
|
39
|
+
Every channel of one client shares one WebSocket, opened with the first channel and closed after the last, and connects again by itself after a drop, joining its channels again. With [live updates](live.md#the-stream), a page holds two connections however many live views and channels it has.
|
|
40
|
+
|
|
41
|
+
## Access
|
|
42
|
+
|
|
43
|
+
A caller may join a record's channel when they may read the record, as `GET /api/v1/<resource>/<key>` decides it: the resource's read access, the tenant, the row filter and a record-level read rule. Anyone else is refused with `not-found`, `There is no such record`, exactly as for a key or a resource the app does not have, so a channel tells nobody which records there are. A soft-deleted record has no channel.
|
|
44
|
+
|
|
45
|
+
Access holds while joined. A broadcast or a track trusts the last check for 5 seconds, and is checked again after that. Every 10 seconds, the server checks the connection's session again, and the read access to each of its channels' records. A member who may no longer read a record is out of its channel within 10 seconds: it gets `closed` with `not-found`, its presence leaves, and it hears nothing more. A session that signs in nobody any more, or someone else, closes the socket with `1008`.
|
|
46
|
+
|
|
47
|
+
`user` on every presence and broadcast is the user's id, from the session, `null` for a visitor; the server never takes it from what the client sends.
|
|
48
|
+
|
|
49
|
+
## Presence
|
|
50
|
+
|
|
51
|
+
A connection tracks one state on each channel, at most 10 000 bytes of JSON, and an entry keeps its `id` while it is tracked: tracking again is an update. A joining connection gets the channel's whole presence, then each join, update and leave.
|
|
52
|
+
|
|
53
|
+
An entry leaves at once when its connection leaves the channel or closes, as when its page closes, and within 12 seconds when its connection drops without closing, as when the network goes away: the client pings every 5 seconds, and the server closes a connection it heard nothing from for 12 seconds. A client that hears no answer to its pings for 10 seconds connects again.
|
|
54
|
+
|
|
55
|
+
## Broadcasts
|
|
56
|
+
|
|
57
|
+
A broadcast reaches every other connection on the channel, and the sender's own with `self`, at once. Nothing is stored: a broadcast reaches who is on the channel when it is sent, and nobody else. <gap>A broadcast cannot carry binary bytes because binary frames on record channels are not implemented.</gap>
|
|
58
|
+
|
|
59
|
+
## From the server
|
|
60
|
+
|
|
61
|
+
An [API function](../guides/api-functions.md) broadcasts with its context's `channels`, as the server: its broadcasts have `user: null` and `server: true`, and it needs no read access. It rejects with a `404` problem for a resource or key the app does not have, `422` for an event over 255 bytes or a payload over 256 KiB, and `429` over the channel's broadcasts.
|
|
62
|
+
|
|
63
|
+
```ts
|
|
64
|
+
import { defineFunction } from '@protobase/server'
|
|
65
|
+
|
|
66
|
+
export default defineFunction(async (request, { channels }) => {
|
|
67
|
+
await channels.broadcast({ resource: 'rooms', key: '42', event: 'announcement', payload: { text: 'Standup in 5 minutes' } })
|
|
68
|
+
return new Response(null, { status: 204 })
|
|
69
|
+
})
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
`POST /api/channels/<resource>/<key>/broadcast` with `{ "event": "…", "payload": … }` broadcasts as its caller, who must read the record, under the same limits, answered `202`. <gap>SQL cannot broadcast to a channel because a database send for record channels is not implemented.</gap>
|
|
73
|
+
|
|
74
|
+
## The socket
|
|
75
|
+
|
|
76
|
+
`GET /api/channels` is the WebSocket `@protobase/client` opens, with the subprotocol `protobase.channels`. A browser opens it with its session cookie; a client with a bearer token offers it as a second subprotocol, `bearer.<token>`, and hands over a new one with `{ "type": "token", "token": "…" }`, which the next check of the session uses. A page of another origin than the app's is refused with `403`. Each frame is JSON text:
|
|
77
|
+
|
|
78
|
+
| The client sends | |
|
|
79
|
+
| --- | --- |
|
|
80
|
+
| `{ type: 'join', ref, resource, key }` | Its reply names the `channel`, `<resource>/<key>`, that the other messages use, then a `presence` message has the whole presence. |
|
|
81
|
+
| `{ type: 'track', ref, channel, state }`, `{ type: 'untrack', ref, channel }` | |
|
|
82
|
+
| `{ type: 'send', ref, channel, event, payload, self?, ack? }` | Gets a reply when refused, and with `ack` when taken. |
|
|
83
|
+
| `{ type: 'leave', ref, channel }`, `{ type: 'ping' }` | A ping is answered with `{ type: 'pong' }`. |
|
|
84
|
+
|
|
85
|
+
The server sends `reply` (`{ ref, ok: true }` or `{ ref, ok: false, error: { code, message } }`), `presence` (`{ channel, entries }`), `presence_diff` (`{ channel, joins, updates, leaves }`), `broadcast` (`{ channel, event, payload, user, server? }`), `closed` (`{ channel, error }`) and `error` for a frame that is no message.
|
|
86
|
+
|
|
87
|
+
## Limits
|
|
88
|
+
|
|
89
|
+
They are the limits of the [Realtime-compatible socket](supabase-realtime.md#broadcast-and-presence), apart from the shorter idle time. A connection sends at most 100 broadcasts and presence updates a second (`too-many-messages`), joins at most 100 times a second (`too-many-joins`) and holds at most 100 channels (`too-many-channels`); on each channel it tracks or untracks at most 5 times in 30 seconds (`too-many-presence-updates`). A channel takes 100 broadcasts a second, every sender's together (`channel-too-busy`). A channel name, `<resource>/<key>`, is at most 255 bytes (`name-too-long`), an event at most 255 bytes (`event-too-long`) and a tracked state at most 10 000 bytes of JSON (`presence-too-large`). A refused message goes to no one. A frame over 256 KiB closes the socket with `1009`; it closes with `1008` when the client leaves more than 4 MiB unread, or sends more than 300 messages or 4 MiB while earlier ones wait.
|
|
90
|
+
|
|
91
|
+
## Several processes
|
|
92
|
+
|
|
93
|
+
With [`realtime: { processes: 'many' }`](config/api.md#realtime), the channels of a record meet whichever process each connection joined: presence and broadcasts go between the processes through the `realtime_relay` schema, as the [Realtime-compatible socket's do](supabase-realtime.md#several-processes), within about 100 ms, and a channel's 100 broadcasts a second are counted across all of them. The record channels and the compatible socket's topics never hear each other, whatever their names. The presence of a process that is killed leaves about 15 to 20 seconds after its last heartbeat. The serve runtime needs WebSockets of npm `ws`, as for the compatible socket: `protobase dev` and `protobase serve` have them.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/reference/cli.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/reference/cli.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# CLI
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/reference/client.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/reference/client.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Client and live UI
|
|
4
4
|
|
|
@@ -17,7 +17,7 @@ const { record, etag } = await api.get(orders, id)
|
|
|
17
17
|
await api.update(orders, id, { status: 'shipped' }, etag) // 412 rejects with PreconditionFailedError
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
Pass a resource builder to get its record type ([`InferRecord`](https://docs.protobase.net/api/schema/type-aliases/inferrecord/)), or a name for loose records. Filters are AIP-160 text or [`where`](https://docs.protobase.net/api/schema/variables/where/) results (printed with [`printFilter`](https://docs.protobase.net/api/schema/functions/printfilter/)). Errors are `ApiError` (`status`, `slug`, `errors`, `filterErrors` with spans, `blockedBy` for a delete other records point at), which `isApiError(error)` tells apart. Also: `search`, `create`, `remove`, `facets`, `series`, `histogram`, `map(resource, { latitude, longitude, zoom, filter?, orderBy?, fields? })` (the records in a map's view, or buckets of them, see [`:map`](api.md#maps)), `seek`, `reveal(resource, key, field)` (a [sensitive field](data-config.md#sensitive-fields)'s value), `generate(resource, key, action)` (runs an [AI action](ai.md#ai-actions) and resolves to the record as written), `meta(etag?, { signal? })`, `invoke(name, { body?, method?, path?, query? })` (one of the app's [API functions](../guides/api-functions.md#calling-a-function)), `upload(resource, field, file, { onProgress?, signal? })` (a file for a [file field](files.md#uploading); its `value` goes in the next write, and `onProgress` uses XMLHttpRequest, since fetch reports no upload progress), `live({ onChanges, onResync, onRetry? })` (hears which records of the [live](live.md) resources change until the function it returns is called, connecting again by itself).
|
|
20
|
+
Pass a resource builder to get its record type ([`InferRecord`](https://docs.protobase.net/api/schema/type-aliases/inferrecord/)), or a name for loose records. Filters are AIP-160 text or [`where`](https://docs.protobase.net/api/schema/variables/where/) results (printed with [`printFilter`](https://docs.protobase.net/api/schema/functions/printfilter/)). Errors are `ApiError` (`status`, `slug`, `errors`, `filterErrors` with spans, `blockedBy` for a delete other records point at), which `isApiError(error)` tells apart. Also: `search`, `create`, `remove`, `facets`, `series`, `histogram`, `map(resource, { latitude, longitude, zoom, filter?, orderBy?, fields? })` (the records in a map's view, or buckets of them, see [`:map`](api.md#maps)), `seek`, `reveal(resource, key, field)` (a [sensitive field](data-config.md#sensitive-fields)'s value), `generate(resource, key, action)` (runs an [AI action](ai.md#ai-actions) and resolves to the record as written), `meta(etag?, { signal? })`, `invoke(name, { body?, method?, path?, query? })` (one of the app's [API functions](../guides/api-functions.md#calling-a-function)), `upload(resource, field, file, { onProgress?, signal? })` (a file for a [file field](files.md#uploading); its `value` goes in the next write, and `onProgress` uses XMLHttpRequest, since fetch reports no upload progress), `live({ onChanges, onResync, onRetry? })` (hears which records of the [live](live.md) resources change until the function it returns is called, connecting again by itself; every caller of one client shares one stream), `channel(resource, key)` (a record's [channel](channels.md#from-a-page), with its presence and broadcasts, every channel of the client on one socket).
|
|
21
21
|
|
|
22
22
|
With an absolute `baseUrl`, such as another app's `https://desk.example.com/api/v1`, the `url` of each [file](files.md) in a record the client answers is absolute too, on that API's origin, where the API answers a path on its own origin. `routedClient(own, sourceOf)` is one client over several APIs: each call about a resource goes to the client `sourceOf(resource)` gives, else to `own`, as the admin app does for [remote resources](remote-resources.md), and `sourceMeta(meta, source)` keeps the part of another API's `/meta` an app draws.
|
|
23
23
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/reference/comments.mdx: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/reference/comments.mdx: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Record comments
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/reference/config/admin-app.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/reference/config/admin-app.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Admin app options
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/reference/config/api.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/reference/config/api.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# API options
|
|
4
4
|
|
|
@@ -154,7 +154,7 @@ export default defineConfig({ runtimeUpdates: false })
|
|
|
154
154
|
- **Type:** `{ processes?: 'one' | 'many' }`
|
|
155
155
|
- **Default:** `{ processes: 'one' }`
|
|
156
156
|
|
|
157
|
-
How [Supabase Realtime](../supabase-realtime.md)
|
|
157
|
+
How [channels](../channels.md) and [Supabase Realtime](../supabase-realtime.md) are served. With `'one'`, one process serves the app, and broadcasts and presence go between its channels in memory. Set `'many'` when several processes serve the app behind one address: broadcasts and presence then go between the processes through the `realtime_relay` schema of the app's database, which [`protobase migration`](../cli.md#migration) writes and the server checks at start. See [Several processes](../channels.md#several-processes).
|
|
158
158
|
|
|
159
159
|
```ts
|
|
160
160
|
export default defineConfig({ realtime: { processes: 'many' } })
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/reference/config/app.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/reference/config/app.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# App options
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/reference/config/files.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/reference/config/files.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Files options
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/reference/config/jobs-and-events.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/reference/config/jobs-and-events.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Jobs and events options
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/reference/config/sign-in.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/reference/config/sign-in.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Sign-in options
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/reference/config.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/reference/config.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Configuring Protobase
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/reference/custom-components.mdx: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/reference/custom-components.mdx: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Custom components
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/reference/data-config.mdx: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/reference/data-config.mdx: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Data config
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/reference/email.mdx: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/reference/email.mdx: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Email
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/reference/events.mdx: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/reference/events.mdx: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Events
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/reference/files.mdx: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/reference/files.mdx: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Files
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/reference/forms.mdx: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/reference/forms.mdx: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Public forms
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/reference/history.mdx: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/reference/history.mdx: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Record history
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/reference/installable-app.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/reference/installable-app.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Installable app
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/reference/jobs.mdx: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/reference/jobs.mdx: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Jobs
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/reference/languages.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/reference/languages.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Languages
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/reference/layouts.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/reference/layouts.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Layouts
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/reference/live.mdx: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/reference/live.mdx: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Live updates
|
|
4
4
|
|
|
@@ -41,7 +41,9 @@ It is live data, not multiplayer editing: two people editing the same record sti
|
|
|
41
41
|
| `changes` | `changes`: `[{ resource, key, operation }]` in commit order, `operation` being `create`, `update`, `delete` or `undelete`. |
|
|
42
42
|
| `resync` | Changes went by that are no longer kept: read everything shown again. |
|
|
43
43
|
|
|
44
|
-
Connecting again with `?after=<cursor>` catches up on what was missed while disconnected. [`client.live({ onChanges, onResync })`](client.md) of `@protobase/client` follows the stream and connects again by itself, as the app does.
|
|
44
|
+
Connecting again with `?after=<cursor>` catches up on what was missed while disconnected. [`client.live({ onChanges, onResync })`](client.md) of `@protobase/client` follows the stream and connects again by itself, as the app does. However many callers of one client follow it, they share one stream, so a page with many live views holds one connection, which matters under HTTP/1.1, where a browser opens at most six to a host.
|
|
45
|
+
|
|
46
|
+
Who is on a record's page and what they send each other, which no change of a record says, goes over the record's [channel](channels.md).
|
|
45
47
|
|
|
46
48
|
## The table
|
|
47
49
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/reference/mcp.mdx: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/reference/mcp.mdx: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# MCP
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/reference/notifications.mdx: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/reference/notifications.mdx: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Notifications
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/reference/plugins.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/reference/plugins.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Plugins
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/reference/remote-resources.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/reference/remote-resources.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Remote resources
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/reference/sidebar.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/reference/sidebar.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Sidebar
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/reference/supabase-realtime.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/reference/supabase-realtime.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Supabase Realtime
|
|
4
4
|
|
|
@@ -28,7 +28,7 @@ A channel may listen to the tables of the resources with [`.live()`](live.md), b
|
|
|
28
28
|
|
|
29
29
|
## Broadcast and presence
|
|
30
30
|
|
|
31
|
-
Channels on the same topic exchange broadcasts and see each other's presence, as on Supabase, private channels among themselves and public ones among themselves
|
|
31
|
+
Channels on the same topic exchange broadcasts and see each other's presence, as on Supabase, private channels among themselves and public ones among themselves. A new app has Protobase's own [channels](channels.md) for this, which belong to records and admit whoever may read the record, with no policies to write; the two never hear each other.
|
|
32
32
|
|
|
33
33
|
```ts
|
|
34
34
|
const room = supabase.channel('room', { config: { broadcast: { self: false, ack: true }, presence: { key: 'alice' } } })
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/reference/supabase-rest.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/reference/supabase-rest.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Supabase client API
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/reference/supabase-storage.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/reference/supabase-storage.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Supabase Storage API
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/reference/theme.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/reference/theme.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Theme
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/reference/ui-config.mdx: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/reference/ui-config.mdx: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# UI config
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/reference/user-menu.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/reference/user-menu.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# User menu
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/reference/versioning.md: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/reference/versioning.md: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Versioning
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- Generated by scripts/protobase-skill.ts from website/src/content/docs/reference/webhooks.mdx: run `bun run docs:skill`, do not edit. -->
|
|
1
|
+
<!-- Generated by scripts/protobase-skill.ts from docs/website/src/content/docs/reference/webhooks.mdx: run `bun run docs:skill`, do not edit. -->
|
|
2
2
|
|
|
3
3
|
# Webhooks
|
|
4
4
|
|