@kayjs/kay 0.0.0-stage → 1.104.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/LICENSES/Apache-2.0.txt +55 -0
- package/LICENSES/MPL-2.0.txt +373 -0
- package/LICENSES/emscripten.txt +102 -0
- package/LICENSES/libaom-PATENTS.txt +108 -0
- package/LICENSES/libaom.txt +27 -0
- package/LICENSES/libavif-1.4.2.txt +387 -0
- package/LICENSES/libavif.txt +353 -0
- package/LICENSES/libwebp-PATENTS.txt +23 -0
- package/LICENSES/libwebp.txt +30 -0
- package/LICENSES/musl-emscripten-6.0.12.txt +193 -0
- package/LICENSES/musl.txt +193 -0
- package/NOTICE +11 -0
- package/README.md +107 -2
- package/dist/eslint.js +17787 -0
- package/editors/tree-sitter-kay/queries/highlights.scm +63 -0
- package/editors/tree-sitter-kay/queries/indents.scm +17 -0
- package/editors/tree-sitter-kay/queries/injections.scm +21 -0
- package/editors/vscode/syntaxes/kay.tmLanguage.json +624 -0
- package/editors/zed/Cargo.toml +13 -0
- package/editors/zed/extension.toml +16 -0
- package/editors/zed/languages/kay/config.toml +13 -0
- package/editors/zed/languages/kay/highlights.scm +63 -0
- package/editors/zed/languages/kay/indents.scm +17 -0
- package/editors/zed/languages/kay/injections.scm +21 -0
- package/editors/zed/src/lib.rs +50 -0
- package/llms/a11y-audit.md +21 -0
- package/llms/a11y-lints.md +51 -0
- package/llms/action-protection.md +122 -0
- package/llms/actions-from-islands.md +166 -0
- package/llms/actions-refused-fields.md +27 -0
- package/llms/actions.md +254 -0
- package/llms/analytics.md +157 -0
- package/llms/api-from-islands.md +168 -0
- package/llms/api-routes.md +222 -0
- package/llms/browser-only.md +69 -0
- package/llms/build-and-start.md +77 -0
- package/llms/cdn-caching.md +24 -0
- package/llms/check-and-tools.md +149 -0
- package/llms/checks.md +133 -0
- package/llms/code-lints.md +37 -0
- package/llms/compiler-api.md +25 -0
- package/llms/component-libraries.md +123 -0
- package/llms/component-library-conventions.md +60 -0
- package/llms/components.md +252 -0
- package/llms/content-cms.md +101 -0
- package/llms/content-edit.md +49 -0
- package/llms/content-markdown-to-caching.md +96 -0
- package/llms/content-preview.md +79 -0
- package/llms/content.md +276 -0
- package/llms/deprecated-lints.md +21 -0
- package/llms/dev-server.md +74 -0
- package/llms/dev-tool.md +72 -0
- package/llms/eco-design.md +107 -0
- package/llms/editor-and-agent-commands.md +83 -0
- package/llms/effects.md +98 -0
- package/llms/environment.md +82 -0
- package/llms/errors-runtime.md +57 -0
- package/llms/errors.md +121 -0
- package/llms/events.md +42 -0
- package/llms/files.md +189 -0
- package/llms/guards.md +60 -0
- package/llms/head.md +211 -0
- package/llms/hooks.md +159 -0
- package/llms/images-runtime-and-remote.md +85 -0
- package/llms/images.md +206 -0
- package/llms/imported-files.md +41 -0
- package/llms/island-and-form-lints.md +27 -0
- package/llms/island-sources.md +71 -0
- package/llms/islands-state-to-ids.md +100 -0
- package/llms/islands.md +281 -0
- package/llms/lints.md +98 -0
- package/llms/live-values.md +123 -0
- package/llms/local-collections.md +98 -0
- package/llms/locales-texts.md +28 -0
- package/llms/locales.md +269 -0
- package/llms/mcp.md +56 -0
- package/llms/navigation-from-code.md +113 -0
- package/llms/navigation.md +132 -0
- package/llms/notifications.md +114 -0
- package/llms/performance-lints.md +17 -0
- package/llms/prerendering.md +160 -0
- package/llms/privacy.md +166 -0
- package/llms/production.md +210 -0
- package/llms/project-new-and-add.md +67 -0
- package/llms/project.md +165 -0
- package/llms/proxy-and-security.md +177 -0
- package/llms/queues.md +113 -0
- package/llms/rate-limits.md +108 -0
- package/llms/recipes.md +355 -0
- package/llms/rendering.md +291 -0
- package/llms/request-values.md +82 -0
- package/llms/rooms.md +130 -0
- package/llms/routing-endpoints-and-base.md +122 -0
- package/llms/routing-special-pages.md +59 -0
- package/llms/routing.md +280 -0
- package/llms/schemas.md +52 -0
- package/llms/security-and-i18n-lints.md +19 -0
- package/llms/seo-lints.md +44 -0
- package/llms/server-islands.md +79 -0
- package/llms/server.md +244 -0
- package/llms/site.md +402 -0
- package/llms/sitemap-search-fonts.md +275 -0
- package/llms/stores.md +45 -0
- package/llms/styles-and-assets.md +209 -0
- package/llms/templates-elements-slots-snippets.md +149 -0
- package/llms/templates.md +294 -0
- package/llms/testing-browser.md +95 -0
- package/llms/testing-requests-jobs-sockets.md +87 -0
- package/llms/testing-setup.md +54 -0
- package/llms/testing.md +279 -0
- package/llms/tracing.md +56 -0
- package/llms/upgrading-archive.md +164 -0
- package/llms/upgrading.md +169 -0
- package/llms/whats-new-archive.md +52 -0
- package/llms/whats-new.md +55 -0
- package/llms/workers.md +22 -0
- package/llms.txt +123 -0
- package/package.json +322 -4
- package/src/a11y/audit.ts +217 -0
- package/src/a11y/report.ts +198 -0
- package/src/a11y/rgaa-criteria.ts +182 -0
- package/src/a11y/standards.ts +90 -0
- package/src/a11y/targets.ts +78 -0
- package/src/add.ts +752 -0
- package/src/build/action-calls.ts +174 -0
- package/src/build/assets.ts +73 -0
- package/src/build/budget.ts +127 -0
- package/src/build/bun.ts +19 -0
- package/src/build/cache-ids.ts +66 -0
- package/src/build/cache.ts +110 -0
- package/src/build/captured-loads.ts +40 -0
- package/src/build/class-rules.ts +240 -0
- package/src/build/class-sources.ts +437 -0
- package/src/build/class-table.ts +331 -0
- package/src/build/client.ts +859 -0
- package/src/build/collection-components.ts +140 -0
- package/src/build/compile.ts +264 -0
- package/src/build/compressed.ts +96 -0
- package/src/build/direct-imports.ts +139 -0
- package/src/build/dynamic-classes.ts +394 -0
- package/src/build/favicons.ts +149 -0
- package/src/build/files.ts +464 -0
- package/src/build/fingerprint.ts +54 -0
- package/src/build/footprint-models.ts +90 -0
- package/src/build/footprint.ts +683 -0
- package/src/build/glob.ts +237 -0
- package/src/build/globbed.ts +3 -0
- package/src/build/header-files.ts +69 -0
- package/src/build/icons.ts +127 -0
- package/src/build/increments.ts +291 -0
- package/src/build/insert-ids.ts +48 -0
- package/src/build/kept-maps.ts +64 -0
- package/src/build/kept.ts +149 -0
- package/src/build/layer-order.ts +89 -0
- package/src/build/libraries.ts +604 -0
- package/src/build/licenses.ts +246 -0
- package/src/build/links.ts +119 -0
- package/src/build/live-ids.ts +72 -0
- package/src/build/manifests.ts +91 -0
- package/src/build/named-refresh.ts +75 -0
- package/src/build/navigation-locale.ts +18 -0
- package/src/build/page-dirs.ts +58 -0
- package/src/build/pipeline.ts +534 -0
- package/src/build/plugin.ts +359 -0
- package/src/build/probe.ts +158 -0
- package/src/build/prune.ts +160 -0
- package/src/build/recipe-classes.ts +193 -0
- package/src/build/references.ts +85 -0
- package/src/build/report.ts +457 -0
- package/src/build/route-sizes.ts +387 -0
- package/src/build/runtime-chunk.ts +425 -0
- package/src/build/runtime-config.ts +174 -0
- package/src/build/search.ts +350 -0
- package/src/build/server-only.ts +531 -0
- package/src/build/server-record.ts +200 -0
- package/src/build/signals.ts +129 -0
- package/src/build/source-files.ts +31 -0
- package/src/build/source-parses.ts +136 -0
- package/src/build/sourcemap.ts +335 -0
- package/src/build/static.ts +340 -0
- package/src/build/style-uses.ts +579 -0
- package/src/build/styles.ts +325 -0
- package/src/build/supports.ts +201 -0
- package/src/build/theme-vars.ts +72 -0
- package/src/build/transform.ts +293 -0
- package/src/build/ui-info.ts +343 -0
- package/src/build/ui.ts +462 -0
- package/src/build/variants.ts +521 -0
- package/src/build/verify.ts +391 -0
- package/src/build/warn-classes.ts +18 -0
- package/src/build/worker-bundle.ts +70 -0
- package/src/bun.ts +38 -0
- package/src/check/api-modules.ts +48 -0
- package/src/check/api-scope.ts +112 -0
- package/src/check/ast.ts +52 -0
- package/src/check/bindings.ts +72 -0
- package/src/check/boot.ts +214 -0
- package/src/check/browser-global-reads.ts +123 -0
- package/src/check/builtin-imports.ts +215 -0
- package/src/check/class-words.ts +260 -0
- package/src/check/config-keys.ts +63 -0
- package/src/check/diagnose.ts +259 -0
- package/src/check/dockerfile.ts +59 -0
- package/src/check/endpoint-exports.ts +41 -0
- package/src/check/env-types.ts +268 -0
- package/src/check/export-homes.ts +69 -0
- package/src/check/fixes.ts +38 -0
- package/src/check/generated.ts +141 -0
- package/src/check/guards.ts +109 -0
- package/src/check/index.ts +242 -0
- package/src/check/island-modules.ts +142 -0
- package/src/check/island-only.ts +104 -0
- package/src/check/large-images.ts +355 -0
- package/src/check/layout-facts.ts +43 -0
- package/src/check/loaded.ts +88 -0
- package/src/check/local-state.ts +132 -0
- package/src/check/loop-index-fix.ts +46 -0
- package/src/check/mcp-routes.ts +86 -0
- package/src/check/messages.ts +327 -0
- package/src/check/missing-imports.ts +99 -0
- package/src/check/open-settings.ts +33 -0
- package/src/check/output-schema.ts +154 -0
- package/src/check/page-heads.ts +241 -0
- package/src/check/page-structure.ts +27 -0
- package/src/check/persisted-storage.ts +87 -0
- package/src/check/project.ts +303 -0
- package/src/check/public-env-outside-src.ts +43 -0
- package/src/check/queries.ts +99 -0
- package/src/check/removed-ui-tokens.ts +343 -0
- package/src/check/renamed-call-options.ts +83 -0
- package/src/check/renamed-exports.ts +247 -0
- package/src/check/renamed-packages.ts +81 -0
- package/src/check/schema-type.ts +9 -0
- package/src/check/seo.ts +240 -0
- package/src/check/server-only-reads.ts +79 -0
- package/src/check/shadow-types.ts +613 -0
- package/src/check/shadow.ts +381 -0
- package/src/check/site-seo.ts +339 -0
- package/src/check/socket-routes.ts +75 -0
- package/src/check/status-pages.ts +30 -0
- package/src/check/template-hints.ts +477 -0
- package/src/check/tool-labels.ts +120 -0
- package/src/check/tool-outputs.ts +201 -0
- package/src/check/tsgo.ts +297 -0
- package/src/check/typing-stamp.ts +146 -0
- package/src/check/ui-tokens.ts +174 -0
- package/src/check/ui-types.ts +87 -0
- package/src/check/ui.ts +105 -0
- package/src/check/unmounted-jobs.ts +63 -0
- package/src/cli.ts +135 -0
- package/src/commands/a11y.ts +87 -0
- package/src/commands/add-peers.ts +20 -0
- package/src/commands/add.ts +51 -0
- package/src/commands/build.ts +234 -0
- package/src/commands/check.ts +417 -0
- package/src/commands/command.ts +535 -0
- package/src/commands/completion.ts +57 -0
- package/src/commands/dev.ts +131 -0
- package/src/commands/docs.ts +161 -0
- package/src/commands/doctor.ts +404 -0
- package/src/commands/editor.ts +56 -0
- package/src/commands/env-compare.ts +458 -0
- package/src/commands/env-declare.ts +256 -0
- package/src/commands/env.ts +192 -0
- package/src/commands/explain-island.ts +107 -0
- package/src/commands/explain.ts +94 -0
- package/src/commands/extensions.ts +87 -0
- package/src/commands/fix-path.ts +10 -0
- package/src/commands/fmt.ts +152 -0
- package/src/commands/generate.ts +60 -0
- package/src/commands/i18n.ts +153 -0
- package/src/commands/import-module.ts +19 -0
- package/src/commands/lint-cache.ts +61 -0
- package/src/commands/lint.ts +76 -0
- package/src/commands/lsp.ts +17 -0
- package/src/commands/mcp.ts +35 -0
- package/src/commands/migrate.ts +131 -0
- package/src/commands/new.ts +172 -0
- package/src/commands/not-found.ts +180 -0
- package/src/commands/project-checks.ts +52 -0
- package/src/commands/registry.ts +86 -0
- package/src/commands/render.ts +146 -0
- package/src/commands/routes.ts +295 -0
- package/src/commands/screenshot.ts +113 -0
- package/src/commands/start.ts +124 -0
- package/src/commands/test.ts +181 -0
- package/src/commands/types.ts +41 -0
- package/src/commands/upgrade.ts +838 -0
- package/src/compiler/a11y-markup.ts +352 -0
- package/src/compiler/a11y.ts +757 -0
- package/src/compiler/allow-comments.ts +68 -0
- package/src/compiler/aria.ts +298 -0
- package/src/compiler/ast.ts +960 -0
- package/src/compiler/browser.ts +468 -0
- package/src/compiler/class-name.ts +120 -0
- package/src/compiler/codegen.ts +1181 -0
- package/src/compiler/deprecated-lints.ts +97 -0
- package/src/compiler/deprecated-script-fence.ts +26 -0
- package/src/compiler/deprecated-ui-props.ts +67 -0
- package/src/compiler/diagnostics.ts +46 -0
- package/src/compiler/dom.ts +782 -0
- package/src/compiler/each-node.ts +20 -0
- package/src/compiler/else-problem.ts +28 -0
- package/src/compiler/errors.ts +605 -0
- package/src/compiler/estree-shapes.ts +44 -0
- package/src/compiler/estree.ts +126 -0
- package/src/compiler/event-modifiers.ts +96 -0
- package/src/compiler/expression.ts +102 -0
- package/src/compiler/fence-checks.ts +818 -0
- package/src/compiler/fence-nodes.ts +25 -0
- package/src/compiler/fence-redirects.ts +395 -0
- package/src/compiler/field-described.ts +45 -0
- package/src/compiler/fnv-hash.ts +9 -0
- package/src/compiler/format.ts +419 -0
- package/src/compiler/frame.ts +89 -0
- package/src/compiler/globals.ts +57 -0
- package/src/compiler/host.browser.ts +25 -0
- package/src/compiler/host.ts +33 -0
- package/src/compiler/html.ts +1024 -0
- package/src/compiler/i18n-lints.ts +29 -0
- package/src/compiler/if-alias.ts +124 -0
- package/src/compiler/import-edits.ts +47 -0
- package/src/compiler/index.ts +584 -0
- package/src/compiler/inspect.ts +32 -0
- package/src/compiler/island-arguments.ts +117 -0
- package/src/compiler/island-cause.ts +57 -0
- package/src/compiler/island-marker.ts +34 -0
- package/src/compiler/items.ts +245 -0
- package/src/compiler/jsx-class.ts +84 -0
- package/src/compiler/jsx-entities.ts +25 -0
- package/src/compiler/jsx.ts +985 -0
- package/src/compiler/kay-exports.ts +109 -0
- package/src/compiler/lints.ts +1080 -0
- package/src/compiler/load-facts.ts +51 -0
- package/src/compiler/load-plan.ts +227 -0
- package/src/compiler/loop-lints.ts +26 -0
- package/src/compiler/mapping.ts +403 -0
- package/src/compiler/markdown-block.ts +693 -0
- package/src/compiler/markup.ts +860 -0
- package/src/compiler/minor.ts +13 -0
- package/src/compiler/module-signals.ts +100 -0
- package/src/compiler/names.ts +39 -0
- package/src/compiler/native-typescript.ts +29 -0
- package/src/compiler/nesting.ts +111 -0
- package/src/compiler/object-literal.ts +136 -0
- package/src/compiler/own-markup.ts +75 -0
- package/src/compiler/page-settings.ts +12 -0
- package/src/compiler/parser.ts +1476 -0
- package/src/compiler/pattern-names.ts +31 -0
- package/src/compiler/plan.ts +288 -0
- package/src/compiler/public.ts +4 -0
- package/src/compiler/rewrite-reads.ts +459 -0
- package/src/compiler/rewrite-scan.ts +77 -0
- package/src/compiler/rewrite-tags.ts +95 -0
- package/src/compiler/rewrite-types.ts +78 -0
- package/src/compiler/rewrite.ts +865 -0
- package/src/compiler/route-lints.ts +49 -0
- package/src/compiler/scanner.ts +175 -0
- package/src/compiler/scope.ts +713 -0
- package/src/compiler/scoped-style.ts +480 -0
- package/src/compiler/script-fence.ts +257 -0
- package/src/compiler/script-props.ts +196 -0
- package/src/compiler/script-recipe.ts +152 -0
- package/src/compiler/script-server.ts +443 -0
- package/src/compiler/script-shared.ts +189 -0
- package/src/compiler/script-split.ts +227 -0
- package/src/compiler/script.ts +130 -0
- package/src/compiler/serial-awaits.ts +123 -0
- package/src/compiler/status-pages.ts +11 -0
- package/src/compiler/style-lints.ts +188 -0
- package/src/compiler/template-reads.ts +235 -0
- package/src/compiler/template-scopes.ts +125 -0
- package/src/compiler/twin.ts +6 -0
- package/src/compiler/unowned-effects.ts +136 -0
- package/src/compiler/validate-fixes.ts +74 -0
- package/src/compiler/validate.ts +839 -0
- package/src/compiler/walk.ts +70 -0
- package/src/config-extensions.ts +175 -0
- package/src/config-loader.ts +332 -0
- package/src/config-rules.ts +138 -0
- package/src/config-shape.ts +204 -0
- package/src/config.ts +627 -0
- package/src/content/claims.ts +67 -0
- package/src/content/drafts.ts +43 -0
- package/src/content/edit-entries.ts +927 -0
- package/src/content/edit-fields.ts +247 -0
- package/src/content/edit-registry.ts +47 -0
- package/src/content/edit-shared.ts +188 -0
- package/src/content/edit.ts +5 -0
- package/src/content/entry-head.ts +58 -0
- package/src/content/entry-route.ts +11 -0
- package/src/content/excerpt.ts +99 -0
- package/src/content/feed.ts +241 -0
- package/src/content/heading-id.ts +48 -0
- package/src/content/held-back.ts +15 -0
- package/src/content/humanize.ts +9 -0
- package/src/content/images.ts +203 -0
- package/src/content/index.ts +761 -0
- package/src/content/key.ts +9 -0
- package/src/content/load.ts +781 -0
- package/src/content/markdown-extensions.ts +284 -0
- package/src/content/markdown.ts +940 -0
- package/src/content/migrate.ts +195 -0
- package/src/content/modified.ts +75 -0
- package/src/content/paginate.ts +119 -0
- package/src/content/problems.ts +44 -0
- package/src/content/references.ts +72 -0
- package/src/content/rewrite.ts +97 -0
- package/src/content/server.ts +469 -0
- package/src/content/source-draft.ts +38 -0
- package/src/content/turns.ts +28 -0
- package/src/content/validate.ts +342 -0
- package/src/dev/address.ts +78 -0
- package/src/dev/base-proxy.ts +104 -0
- package/src/dev/builder.ts +104 -0
- package/src/dev/client.ts +158 -0
- package/src/dev/config-record.ts +65 -0
- package/src/dev/fingerprint.ts +327 -0
- package/src/dev/index.ts +480 -0
- package/src/dev/inspector.ts +248 -0
- package/src/dev/loopback.ts +25 -0
- package/src/dev/pages.ts +6 -0
- package/src/dev/preload.ts +425 -0
- package/src/dev/refuse.ts +29 -0
- package/src/dev/reload.ts +282 -0
- package/src/dev/render-server.ts +131 -0
- package/src/dev/render-socket.ts +53 -0
- package/src/dev/screenshot-diff.ts +76 -0
- package/src/dev/screenshot-limits.ts +17 -0
- package/src/dev/screenshot.ts +410 -0
- package/src/dev/session/client.ts +173 -0
- package/src/dev/session/keys.ts +51 -0
- package/src/dev/session/ports.ts +30 -0
- package/src/dev/session/queue.ts +133 -0
- package/src/dev/session/report.ts +172 -0
- package/src/dev/session/servers.ts +295 -0
- package/src/dev/session/types.ts +309 -0
- package/src/dev/sources.ts +265 -0
- package/src/dev/tailwind.ts +93 -0
- package/src/dev/types-process.ts +172 -0
- package/src/dev/types.ts +187 -0
- package/src/docs-props.ts +168 -0
- package/src/docs-search.ts +372 -0
- package/src/editors.ts +238 -0
- package/src/entities.ts +41 -0
- package/src/eslint/index.ts +455 -0
- package/src/features.ts +22 -0
- package/src/format/index.ts +75 -0
- package/src/format/tailwind.ts +190 -0
- package/src/generate-resource.ts +442 -0
- package/src/generate.ts +365 -0
- package/src/imports.ts +157 -0
- package/src/input-types.ts +2 -0
- package/src/keyword-attributes.ts +12 -0
- package/src/lsp/bridge.ts +80 -0
- package/src/lsp/code-actions.ts +71 -0
- package/src/lsp/completions.ts +270 -0
- package/src/lsp/component-props.ts +109 -0
- package/src/lsp/diagnostics.ts +217 -0
- package/src/lsp/document-links.ts +56 -0
- package/src/lsp/host.ts +112 -0
- package/src/lsp/island-lens.ts +41 -0
- package/src/lsp/mapping.ts +163 -0
- package/src/lsp/navigation.ts +207 -0
- package/src/lsp/outline.ts +233 -0
- package/src/lsp/positions.ts +13 -0
- package/src/lsp/project-checks.ts +119 -0
- package/src/lsp/protocol.ts +167 -0
- package/src/lsp/range-format.ts +62 -0
- package/src/lsp/rename.ts +115 -0
- package/src/lsp/renames.ts +126 -0
- package/src/lsp/route-links.ts +92 -0
- package/src/lsp/rpc.ts +185 -0
- package/src/lsp/semantic-tokens.ts +481 -0
- package/src/lsp/server.ts +557 -0
- package/src/lsp/template-completion.ts +361 -0
- package/src/lsp/ui-completion.ts +206 -0
- package/src/mcp/guards.ts +66 -0
- package/src/mcp/install.ts +7 -0
- package/src/mcp/protocol.ts +289 -0
- package/src/mcp/tools.ts +819 -0
- package/src/migrate/astro.ts +367 -0
- package/src/migrate/content.ts +242 -0
- package/src/migrate/html.ts +96 -0
- package/src/migrate/markup.ts +734 -0
- package/src/migrate/project.ts +365 -0
- package/src/native-plugins.ts +2 -0
- package/src/nearest.ts +23 -0
- package/src/new.ts +333 -0
- package/src/package-names.ts +25 -0
- package/src/peers.ts +82 -0
- package/src/project.ts +214 -0
- package/src/runtime/action-call.ts +504 -0
- package/src/runtime/action-encode.ts +57 -0
- package/src/runtime/action-error.ts +36 -0
- package/src/runtime/action-form.ts +332 -0
- package/src/runtime/action-marks.ts +10 -0
- package/src/runtime/action-navigate.ts +54 -0
- package/src/runtime/action-owner.ts +93 -0
- package/src/runtime/action-post.ts +146 -0
- package/src/runtime/action-protection.ts +49 -0
- package/src/runtime/action-revive.ts +21 -0
- package/src/runtime/action-reviver.ts +1 -0
- package/src/runtime/action-shared.ts +437 -0
- package/src/runtime/action-stream.ts +177 -0
- package/src/runtime/action.ts +102 -0
- package/src/runtime/analytics.client.ts +2 -0
- package/src/runtime/announce.ts +34 -0
- package/src/runtime/api-error-class.ts +15 -0
- package/src/runtime/api-error.ts +74 -0
- package/src/runtime/api-url.ts +82 -0
- package/src/runtime/arrival.ts +23 -0
- package/src/runtime/await.server.ts +203 -0
- package/src/runtime/await.ts +13 -0
- package/src/runtime/base.ts +144 -0
- package/src/runtime/build.ts +21 -0
- package/src/runtime/byte-count.ts +14 -0
- package/src/runtime/byte-size.ts +17 -0
- package/src/runtime/cache-live-id.ts +2 -0
- package/src/runtime/cache.server.ts +183 -0
- package/src/runtime/cache.ts +940 -0
- package/src/runtime/call-body.ts +29 -0
- package/src/runtime/call-result.ts +137 -0
- package/src/runtime/checks.ts +390 -0
- package/src/runtime/claimed.ts +20 -0
- package/src/runtime/class-table.ts +60 -0
- package/src/runtime/client.ts +439 -0
- package/src/runtime/connection.ts +174 -0
- package/src/runtime/consent.ts +87 -0
- package/src/runtime/core.ts +505 -0
- package/src/runtime/counters.ts +33 -0
- package/src/runtime/described.ts +76 -0
- package/src/runtime/dev-a11y.ts +142 -0
- package/src/runtime/dev-boot.ts +57 -0
- package/src/runtime/dev-inspector.ts +341 -0
- package/src/runtime/dev-patch.ts +167 -0
- package/src/runtime/dev-refresh.ts +14 -0
- package/src/runtime/dev-styles.ts +158 -0
- package/src/runtime/dev-tab-data.ts +197 -0
- package/src/runtime/dev-tab-env.ts +135 -0
- package/src/runtime/dev-tab-head.ts +282 -0
- package/src/runtime/dev-tab-i18n.ts +72 -0
- package/src/runtime/dev-tab-images.ts +319 -0
- package/src/runtime/dev-tab-jobs.ts +188 -0
- package/src/runtime/dev-tab-network.ts +230 -0
- package/src/runtime/dev-tab-not-found.ts +101 -0
- package/src/runtime/dev-tab-performance.ts +411 -0
- package/src/runtime/dev-tab-reading.ts +600 -0
- package/src/runtime/dev-tab-routes.ts +111 -0
- package/src/runtime/dev-tab-styles.ts +175 -0
- package/src/runtime/dev-tool-constants.ts +22 -0
- package/src/runtime/dev-tool-icons.ts +86 -0
- package/src/runtime/dev-tool-keys.ts +53 -0
- package/src/runtime/dev-tool-kit.ts +77 -0
- package/src/runtime/dev-tool-layout.ts +200 -0
- package/src/runtime/dev-tool-markdown.ts +144 -0
- package/src/runtime/dev-tool-outline.ts +44 -0
- package/src/runtime/dev-tool-parts.ts +332 -0
- package/src/runtime/dev-tool-problems.ts +310 -0
- package/src/runtime/dev-tool-request.ts +226 -0
- package/src/runtime/dev-tool-shell.ts +81 -0
- package/src/runtime/dev-tool-style.ts +242 -0
- package/src/runtime/dev-tool-swaps.ts +21 -0
- package/src/runtime/dev-tool-tab-order.ts +475 -0
- package/src/runtime/dev-tool-tabs.ts +205 -0
- package/src/runtime/dev-tool-vitals.ts +109 -0
- package/src/runtime/dev-tool-window.ts +213 -0
- package/src/runtime/dev-tool.public.ts +5 -0
- package/src/runtime/dev-tool.ts +332 -0
- package/src/runtime/dom-await.ts +102 -0
- package/src/runtime/dom-image.ts +15 -0
- package/src/runtime/dom-loop.ts +335 -0
- package/src/runtime/dom-spread.ts +106 -0
- package/src/runtime/dom-try.ts +58 -0
- package/src/runtime/dom.ts +1028 -0
- package/src/runtime/draft-issues.ts +23 -0
- package/src/runtime/duration-words.ts +21 -0
- package/src/runtime/duration.ts +60 -0
- package/src/runtime/edit.ts +108 -0
- package/src/runtime/element-size.ts +67 -0
- package/src/runtime/email.ts +65 -0
- package/src/runtime/ended-entry.ts +10 -0
- package/src/runtime/env.ts +41 -0
- package/src/runtime/escape.ts +47 -0
- package/src/runtime/fetch-island.ts +211 -0
- package/src/runtime/fields.ts +553 -0
- package/src/runtime/fills.ts +52 -0
- package/src/runtime/focus.ts +54 -0
- package/src/runtime/follow-log.ts +154 -0
- package/src/runtime/form-controls.ts +4 -0
- package/src/runtime/form-hold.ts +87 -0
- package/src/runtime/form-protect.ts +103 -0
- package/src/runtime/form-submits.ts +212 -0
- package/src/runtime/form.ts +178 -0
- package/src/runtime/forms.ts +335 -0
- package/src/runtime/french.ts +39 -0
- package/src/runtime/head.ts +502 -0
- package/src/runtime/html.ts +659 -0
- package/src/runtime/hydrate-when.ts +103 -0
- package/src/runtime/i18n-links.ts +44 -0
- package/src/runtime/i18n.client.ts +220 -0
- package/src/runtime/i18n.server.ts +138 -0
- package/src/runtime/i18n.ts +601 -0
- package/src/runtime/icons.ts +99 -0
- package/src/runtime/image.public.ts +3 -0
- package/src/runtime/image.ts +599 -0
- package/src/runtime/in-view.ts +91 -0
- package/src/runtime/index.ts +84 -0
- package/src/runtime/install-prompt.ts +97 -0
- package/src/runtime/internal.ts +195 -0
- package/src/runtime/invalid.ts +49 -0
- package/src/runtime/island-request.ts +48 -0
- package/src/runtime/island.client.ts +9 -0
- package/src/runtime/island.server.ts +390 -0
- package/src/runtime/jsx-runtime.ts +2 -0
- package/src/runtime/jsx.ts +257 -0
- package/src/runtime/keepalive.ts +21 -0
- package/src/runtime/lasting.ts +40 -0
- package/src/runtime/leave.ts +71 -0
- package/src/runtime/listen-with.ts +8 -0
- package/src/runtime/listener-set.ts +22 -0
- package/src/runtime/live-cache.ts +462 -0
- package/src/runtime/live-props.ts +48 -0
- package/src/runtime/live-resource.server.ts +92 -0
- package/src/runtime/live-value.client.ts +383 -0
- package/src/runtime/live-value.server.ts +696 -0
- package/src/runtime/live-value.shared.ts +104 -0
- package/src/runtime/live-value.ts +43 -0
- package/src/runtime/live.ts +1115 -0
- package/src/runtime/load-scope.ts +78 -0
- package/src/runtime/local-status.ts +8 -0
- package/src/runtime/local.ts +938 -0
- package/src/runtime/locale-state.ts +55 -0
- package/src/runtime/localized.ts +18 -0
- package/src/runtime/log.ts +52 -0
- package/src/runtime/markdown-render.client.ts +163 -0
- package/src/runtime/markdown-task.ts +16 -0
- package/src/runtime/markdown.client.ts +94 -0
- package/src/runtime/markdown.server.ts +25 -0
- package/src/runtime/markdown.ts +24 -0
- package/src/runtime/markers.ts +25 -0
- package/src/runtime/media-query.ts +30 -0
- package/src/runtime/mount.ts +71 -0
- package/src/runtime/move.ts +18 -0
- package/src/runtime/navigate-api.ts +117 -0
- package/src/runtime/navigate.ts +351 -0
- package/src/runtime/navigation-entry.ts +2 -0
- package/src/runtime/navigation-state.ts +124 -0
- package/src/runtime/navigation.ts +236 -0
- package/src/runtime/online.ts +27 -0
- package/src/runtime/optimistic.ts +107 -0
- package/src/runtime/outside.ts +68 -0
- package/src/runtime/page-data.ts +60 -0
- package/src/runtime/page-errors.ts +31 -0
- package/src/runtime/page-swap.ts +522 -0
- package/src/runtime/page-title.ts +69 -0
- package/src/runtime/params.ts +24 -0
- package/src/runtime/pending.ts +44 -0
- package/src/runtime/persist.ts +290 -0
- package/src/runtime/persisted.ts +146 -0
- package/src/runtime/placeholder.ts +41 -0
- package/src/runtime/poll-backoff.ts +85 -0
- package/src/runtime/prefetch.ts +149 -0
- package/src/runtime/presence.ts +93 -0
- package/src/runtime/preview.ts +65 -0
- package/src/runtime/push.ts +294 -0
- package/src/runtime/query-param.ts +292 -0
- package/src/runtime/queue-jobs.ts +50 -0
- package/src/runtime/random-id.ts +5 -0
- package/src/runtime/reactive-collections.ts +214 -0
- package/src/runtime/reactive.ts +840 -0
- package/src/runtime/recipe.ts +79 -0
- package/src/runtime/refetch-island.ts +25 -0
- package/src/runtime/refuse.ts +56 -0
- package/src/runtime/rendered.ts +17 -0
- package/src/runtime/report-error.ts +25 -0
- package/src/runtime/retry-later.ts +72 -0
- package/src/runtime/reveal.ts +47 -0
- package/src/runtime/root.ts +6 -0
- package/src/runtime/route.ts +83 -0
- package/src/runtime/safe-code.ts +25 -0
- package/src/runtime/safe-html.ts +51 -0
- package/src/runtime/sanitize.ts +375 -0
- package/src/runtime/save-data.ts +4 -0
- package/src/runtime/schema-bounds.ts +50 -0
- package/src/runtime/schema.client.ts +26 -0
- package/src/runtime/schema.ts +71 -0
- package/src/runtime/search-arrival.ts +107 -0
- package/src/runtime/search-results.ts +47 -0
- package/src/runtime/search.ts +325 -0
- package/src/runtime/send.ts +114 -0
- package/src/runtime/seo.ts +70 -0
- package/src/runtime/server-islands.ts +5 -0
- package/src/runtime/shortcut.ts +179 -0
- package/src/runtime/site.ts +37 -0
- package/src/runtime/size-text.ts +25 -0
- package/src/runtime/snapshots.ts +116 -0
- package/src/runtime/sqlite.server.ts +52 -0
- package/src/runtime/sse.ts +88 -0
- package/src/runtime/stale.ts +181 -0
- package/src/runtime/static-slots.ts +78 -0
- package/src/runtime/store-base.ts +11 -0
- package/src/runtime/store.ts +309 -0
- package/src/runtime/swap-fetch.ts +214 -0
- package/src/runtime/swap-flight.ts +84 -0
- package/src/runtime/swap-focus.ts +188 -0
- package/src/runtime/swap-head.ts +288 -0
- package/src/runtime/swap-held.ts +41 -0
- package/src/runtime/swap-kept.ts +289 -0
- package/src/runtime/swap-loading.ts +44 -0
- package/src/runtime/swap-morph.ts +198 -0
- package/src/runtime/swap-refusal.ts +40 -0
- package/src/runtime/swap-streamed.ts +161 -0
- package/src/runtime/swap-transition.ts +117 -0
- package/src/runtime/swap.ts +33 -0
- package/src/runtime/template-context.ts +79 -0
- package/src/runtime/transition.ts +227 -0
- package/src/runtime/ui.ts +32 -0
- package/src/runtime/uid.server.ts +69 -0
- package/src/runtime/uid.ts +56 -0
- package/src/runtime/upload.ts +49 -0
- package/src/runtime/url-attributes.ts +2 -0
- package/src/runtime/url-report.ts +24 -0
- package/src/runtime/url.ts +37 -0
- package/src/runtime/validate.ts +310 -0
- package/src/runtime/values.ts +293 -0
- package/src/runtime/visibility.ts +35 -0
- package/src/runtime/warn-once.ts +22 -0
- package/src/runtime/wire.ts +204 -0
- package/src/runtime/with-query.ts +64 -0
- package/src/runtime/words.client.ts +138 -0
- package/src/runtime/words.server.ts +53 -0
- package/src/runtime/work-worker.ts +4 -0
- package/src/runtime/work.client.ts +112 -0
- package/src/runtime/work.ts +85 -0
- package/src/server/accept-language.ts +37 -0
- package/src/server/action-clash.ts +7 -0
- package/src/server/action-hooks.ts +69 -0
- package/src/server/action-input.ts +58 -0
- package/src/server/action-iterable.ts +75 -0
- package/src/server/actions.ts +874 -0
- package/src/server/address.ts +172 -0
- package/src/server/analytics-script.ts +302 -0
- package/src/server/analytics-server.ts +563 -0
- package/src/server/analytics-words.ts +13 -0
- package/src/server/analytics.ts +423 -0
- package/src/server/api-modules.ts +235 -0
- package/src/server/api-params.ts +83 -0
- package/src/server/api.ts +922 -0
- package/src/server/app-database.ts +32 -0
- package/src/server/app-hooks.ts +147 -0
- package/src/server/app-identity.ts +70 -0
- package/src/server/app-stages.ts +798 -0
- package/src/server/app-store.ts +79 -0
- package/src/server/app.ts +218 -0
- package/src/server/auth-mails.ts +162 -0
- package/src/server/auto-listen.ts +177 -0
- package/src/server/avif-worker.ts +138 -0
- package/src/server/avif.ts +124 -0
- package/src/server/base.ts +136 -0
- package/src/server/basic-auth.ts +109 -0
- package/src/server/body.ts +179 -0
- package/src/server/build-files.ts +117 -0
- package/src/server/builtins.ts +8 -0
- package/src/server/bundle.ts +81 -0
- package/src/server/card-draw.ts +220 -0
- package/src/server/card-template.ts +256 -0
- package/src/server/card.ts +666 -0
- package/src/server/ceiling.ts +10 -0
- package/src/server/clean-context.ts +6 -0
- package/src/server/client.ts +607 -0
- package/src/server/codec/avif-enc-build.ts +2 -0
- package/src/server/codec/avif-enc.d.ts +15 -0
- package/src/server/codec/avif-enc.js +2 -0
- package/src/server/codec/avif-enc.wasm +0 -0
- package/src/server/compress-policy.ts +40 -0
- package/src/server/compress.ts +1010 -0
- package/src/server/config-error.ts +54 -0
- package/src/server/config-limits.ts +166 -0
- package/src/server/consent-cookie.ts +10 -0
- package/src/server/context-layout/_layout.kay +7 -0
- package/src/server/context-reads.ts +33 -0
- package/src/server/context-record.ts +58 -0
- package/src/server/context-values.ts +181 -0
- package/src/server/cookie-names.ts +10 -0
- package/src/server/cookies.ts +159 -0
- package/src/server/cors.ts +235 -0
- package/src/server/crop.ts +153 -0
- package/src/server/cross-site.ts +155 -0
- package/src/server/csp.ts +40 -0
- package/src/server/dev-data.ts +558 -0
- package/src/server/dev-errors.ts +270 -0
- package/src/server/dev-footprint.ts +19 -0
- package/src/server/dev-head.ts +95 -0
- package/src/server/dev-jobs.ts +59 -0
- package/src/server/dev-not-found.ts +96 -0
- package/src/server/dev-notes.ts +12 -0
- package/src/server/dev-offered.ts +13 -0
- package/src/server/dev-secret.ts +65 -0
- package/src/server/dev-sizes.ts +114 -0
- package/src/server/dev-sqlite-worker.ts +96 -0
- package/src/server/dev-ui.ts +299 -0
- package/src/server/dev.ts +875 -0
- package/src/server/dictionary.ts +190 -0
- package/src/server/drain.ts +40 -0
- package/src/server/editor.ts +79 -0
- package/src/server/endpoint-claims.ts +29 -0
- package/src/server/endpoint-verbs.ts +43 -0
- package/src/server/endpoints.ts +417 -0
- package/src/server/entry-drafts.ts +151 -0
- package/src/server/entry-head.ts +50 -0
- package/src/server/entry-urls.ts +150 -0
- package/src/server/env-state.ts +146 -0
- package/src/server/env.ts +375 -0
- package/src/server/error-maps.ts +137 -0
- package/src/server/errors.ts +109 -0
- package/src/server/event-stream.ts +213 -0
- package/src/server/face.ts +788 -0
- package/src/server/favicon.png +0 -0
- package/src/server/favicon.svg +1 -0
- package/src/server/favicon.ts +342 -0
- package/src/server/fetch-public.ts +118 -0
- package/src/server/field-errors.ts +136 -0
- package/src/server/file-limit.ts +62 -0
- package/src/server/file-type.ts +46 -0
- package/src/server/flash.ts +140 -0
- package/src/server/font-metrics.ts +294 -0
- package/src/server/fonts.ts +344 -0
- package/src/server/forms.ts +89 -0
- package/src/server/guard-requirement.ts +16 -0
- package/src/server/guard-runs.ts +30 -0
- package/src/server/guards.ts +66 -0
- package/src/server/handler-timing.ts +12 -0
- package/src/server/history.ts +3 -0
- package/src/server/hooks.ts +170 -0
- package/src/server/host-allowlist.ts +63 -0
- package/src/server/hydration.ts +7 -0
- package/src/server/i18n.ts +534 -0
- package/src/server/image-color.ts +79 -0
- package/src/server/image-format.ts +181 -0
- package/src/server/image-limits.ts +88 -0
- package/src/server/image-metadata-bmff.ts +243 -0
- package/src/server/image-metadata.ts +316 -0
- package/src/server/image.ts +833 -0
- package/src/server/index.ts +149 -0
- package/src/server/internal.ts +8 -0
- package/src/server/job-admin.ts +197 -0
- package/src/server/job-status.ts +8 -0
- package/src/server/job-steps.ts +2 -0
- package/src/server/jobs-page.ts +137 -0
- package/src/server/jobs.ts +403 -0
- package/src/server/kept-exports.ts +174 -0
- package/src/server/kept-pages.ts +117 -0
- package/src/server/kept-source.ts +609 -0
- package/src/server/kv.ts +201 -0
- package/src/server/lazy-guard.ts +71 -0
- package/src/server/library.ts +142 -0
- package/src/server/lifecycle.ts +378 -0
- package/src/server/limit.ts +33 -0
- package/src/server/link-schemes.ts +23 -0
- package/src/server/links.ts +238 -0
- package/src/server/literal-writes.ts +756 -0
- package/src/server/live.ts +628 -0
- package/src/server/load-budget.ts +69 -0
- package/src/server/loader.ts +180 -0
- package/src/server/loading-page.ts +41 -0
- package/src/server/local-files.ts +26 -0
- package/src/server/log.ts +282 -0
- package/src/server/maintenance.ts +141 -0
- package/src/server/mcp-key.ts +165 -0
- package/src/server/mcp.ts +731 -0
- package/src/server/memory-jobs.ts +168 -0
- package/src/server/memory-mark.ts +12 -0
- package/src/server/message-drafts.ts +284 -0
- package/src/server/metrics.ts +199 -0
- package/src/server/missing-hits.ts +41 -0
- package/src/server/module-state.ts +327 -0
- package/src/server/new-tab.ts +28 -0
- package/src/server/not-found-config.ts +160 -0
- package/src/server/not-found.ts +828 -0
- package/src/server/notifications.ts +358 -0
- package/src/server/offline.ts +558 -0
- package/src/server/openapi.ts +522 -0
- package/src/server/option-keys.ts +15 -0
- package/src/server/overlay.ts +196 -0
- package/src/server/own-headers.ts +221 -0
- package/src/server/page-error.ts +57 -0
- package/src/server/page-flags.ts +15 -0
- package/src/server/page-headers.ts +93 -0
- package/src/server/page-hook.ts +201 -0
- package/src/server/page-limits.ts +142 -0
- package/src/server/page-reads.ts +63 -0
- package/src/server/page-routes.ts +377 -0
- package/src/server/page-settings.ts +66 -0
- package/src/server/params.ts +197 -0
- package/src/server/parent.ts +8 -0
- package/src/server/personal-data.ts +47 -0
- package/src/server/pg-cache.ts +181 -0
- package/src/server/pg-data.ts +254 -0
- package/src/server/pg-jobs.ts +511 -0
- package/src/server/pg-limit.ts +51 -0
- package/src/server/pg-live.ts +287 -0
- package/src/server/pg-not-found.ts +440 -0
- package/src/server/pg-notify.ts +216 -0
- package/src/server/pg-orm.ts +26 -0
- package/src/server/pg-poll.ts +341 -0
- package/src/server/pg-redirects.ts +210 -0
- package/src/server/pg-rooms.ts +550 -0
- package/src/server/pg-sql.ts +16 -0
- package/src/server/pg-stores.ts +356 -0
- package/src/server/plugin.ts +30 -0
- package/src/server/plumbing.ts +90 -0
- package/src/server/png.ts +108 -0
- package/src/server/prebuilt-loader.ts +110 -0
- package/src/server/prerender.ts +750 -0
- package/src/server/prerendered.ts +162 -0
- package/src/server/presence.ts +251 -0
- package/src/server/preview.ts +703 -0
- package/src/server/private-dir.ts +87 -0
- package/src/server/protection.ts +1121 -0
- package/src/server/proxy-key.ts +101 -0
- package/src/server/public-suffix.ts +59 -0
- package/src/server/public-suffixes.ts +502 -0
- package/src/server/public.ts +299 -0
- package/src/server/publishing.ts +176 -0
- package/src/server/pure-page.ts +398 -0
- package/src/server/push-crypto.ts +154 -0
- package/src/server/push-keys-command.ts +25 -0
- package/src/server/push-server.ts +124 -0
- package/src/server/push-settings.ts +67 -0
- package/src/server/push-store.ts +182 -0
- package/src/server/push.ts +464 -0
- package/src/server/query.ts +265 -0
- package/src/server/queue-live.ts +291 -0
- package/src/server/queue-scheduler.ts +421 -0
- package/src/server/queue-telling.ts +53 -0
- package/src/server/queue.ts +955 -0
- package/src/server/raster.ts +176 -0
- package/src/server/rate-limit.ts +65 -0
- package/src/server/rate-refusal.ts +36 -0
- package/src/server/reach-walk.ts +65 -0
- package/src/server/reach.ts +124 -0
- package/src/server/redirect-spelling.ts +57 -0
- package/src/server/redirects.ts +182 -0
- package/src/server/reload.ts +88 -0
- package/src/server/remote.ts +358 -0
- package/src/server/render-document.ts +521 -0
- package/src/server/render.ts +1022 -0
- package/src/server/report.ts +103 -0
- package/src/server/request-read.ts +38 -0
- package/src/server/request-record.ts +105 -0
- package/src/server/request-scope.ts +58 -0
- package/src/server/request-timeout.ts +209 -0
- package/src/server/request-url.ts +47 -0
- package/src/server/request-user.ts +25 -0
- package/src/server/resources.ts +132 -0
- package/src/server/response-mismatch.ts +21 -0
- package/src/server/revalidate.ts +100 -0
- package/src/server/rewrite.ts +143 -0
- package/src/server/rooms.ts +646 -0
- package/src/server/route-table.ts +155 -0
- package/src/server/routes.ts +901 -0
- package/src/server/runtime-redirect-api.ts +227 -0
- package/src/server/runtime-redirects.ts +438 -0
- package/src/server/safe-path.ts +26 -0
- package/src/server/save-data.ts +150 -0
- package/src/server/schema-answer.ts +42 -0
- package/src/server/schema-check.ts +102 -0
- package/src/server/scope.ts +128 -0
- package/src/server/seal.ts +73 -0
- package/src/server/security.ts +289 -0
- package/src/server/seo.ts +234 -0
- package/src/server/served-paths.ts +135 -0
- package/src/server/server-islands.ts +175 -0
- package/src/server/server-record.ts +80 -0
- package/src/server/serving.ts +35 -0
- package/src/server/session.ts +782 -0
- package/src/server/setup.ts +252 -0
- package/src/server/sha256.ts +15 -0
- package/src/server/signals.ts +87 -0
- package/src/server/signed.ts +62 -0
- package/src/server/site-facts.ts +19 -0
- package/src/server/site-paths.ts +3 -0
- package/src/server/sitemap.ts +413 -0
- package/src/server/snake-case.ts +6 -0
- package/src/server/source.ts +169 -0
- package/src/server/speculation.ts +57 -0
- package/src/server/sqlite-data.ts +19 -0
- package/src/server/sqlite-live.ts +200 -0
- package/src/server/stale-pages.ts +105 -0
- package/src/server/stamp.ts +222 -0
- package/src/server/storage.ts +614 -0
- package/src/server/stream.ts +307 -0
- package/src/server/string.ts +79 -0
- package/src/server/svg-icon.ts +76 -0
- package/src/server/swap.ts +4 -0
- package/src/server/tool-outputs.ts +71 -0
- package/src/server/tool-settings.ts +12 -0
- package/src/server/trace-context.ts +89 -0
- package/src/server/trace.ts +198 -0
- package/src/server/translations.ts +30 -0
- package/src/server/typography.ts +248 -0
- package/src/server/uncaught.ts +60 -0
- package/src/server/unsafe-urls.ts +29 -0
- package/src/server/violations.ts +159 -0
- package/src/server/visit.ts +54 -0
- package/src/server/vitals-routes/_guard.ts +12 -0
- package/src/server/vitals-routes/index.kay +45 -0
- package/src/server/vitals-routes/vitals.css +30 -0
- package/src/server/vitals-screen.ts +24 -0
- package/src/server/vitals-script.ts +102 -0
- package/src/server/vitals-server.ts +134 -0
- package/src/server/vitals-store.ts +233 -0
- package/src/server/vitals.ts +80 -0
- package/src/server/wasm.d.ts +6 -0
- package/src/server/web-socket.ts +13 -0
- package/src/server/wildcards.ts +87 -0
- package/src/server/words.ts +145 -0
- package/src/server/work-scope.ts +65 -0
- package/src/server/work.ts +90 -0
- package/src/server/workers.ts +293 -0
- package/src/server/workflow.ts +520 -0
- package/src/server/writes.ts +161 -0
- package/src/server/ws-limits.ts +201 -0
- package/src/svg-attributes.ts +240 -0
- package/src/template-auth.ts +79 -0
- package/src/template-ci.ts +156 -0
- package/src/template-config.ts +36 -0
- package/src/template-docker.ts +260 -0
- package/src/template-pins.ts +14 -0
- package/src/template-shared.ts +53 -0
- package/src/template-starter.ts +110 -0
- package/src/template-styles.ts +154 -0
- package/src/template-ws.ts +57 -0
- package/src/templates.ts +76 -0
- package/src/test/browser.ts +1281 -0
- package/src/test/clock.ts +121 -0
- package/src/test/content.ts +345 -0
- package/src/test/cookies.ts +94 -0
- package/src/test/database.ts +57 -0
- package/src/test/dom.ts +90 -0
- package/src/test/env.ts +58 -0
- package/src/test/index.ts +568 -0
- package/src/test/interact.ts +134 -0
- package/src/test/isolation.ts +19 -0
- package/src/test/lazy-plugins.ts +269 -0
- package/src/test/mount.ts +246 -0
- package/src/test/natives.ts +44 -0
- package/src/test/network.ts +678 -0
- package/src/test/outputs.ts +54 -0
- package/src/test/override-env.ts +40 -0
- package/src/test/page-types.ts +150 -0
- package/src/test/page.ts +338 -0
- package/src/test/preload.ts +27 -0
- package/src/test/reset.ts +13 -0
- package/src/test/root.ts +13 -0
- package/src/test/scratch.ts +12 -0
- package/src/test/service.ts +174 -0
- package/src/test/shared-modules.ts +328 -0
- package/src/test/site-actions.ts +142 -0
- package/src/test/site-api.ts +19 -0
- package/src/test/site-mcp.ts +36 -0
- package/src/test/site-scope.ts +35 -0
- package/src/test/site-socket.ts +125 -0
- package/src/test/site-types.ts +155 -0
- package/src/test/sites.ts +29 -0
- package/src/test/timeout.ts +45 -0
- package/src/test/wait.ts +34 -0
- package/src/test/writable.ts +20 -0
- package/src/tsconfig.app.json +21 -0
- package/src/tsgo.ts +18 -0
- package/types/a11y/audit.d.ts +32 -0
- package/types/a11y/audit.d.ts.map +1 -0
- package/types/a11y/report.d.ts +20 -0
- package/types/a11y/report.d.ts.map +1 -0
- package/types/a11y/rgaa-criteria.d.ts +5 -0
- package/types/a11y/rgaa-criteria.d.ts.map +1 -0
- package/types/a11y/standards.d.ts +17 -0
- package/types/a11y/standards.d.ts.map +1 -0
- package/types/a11y/targets.d.ts +20 -0
- package/types/a11y/targets.d.ts.map +1 -0
- package/types/add.d.ts +56 -0
- package/types/add.d.ts.map +1 -0
- package/types/build/action-calls.d.ts +2 -0
- package/types/build/action-calls.d.ts.map +1 -0
- package/types/build/assets.d.ts +17 -0
- package/types/build/assets.d.ts.map +1 -0
- package/types/build/budget.d.ts +17 -0
- package/types/build/budget.d.ts.map +1 -0
- package/types/build/bun.d.ts +9 -0
- package/types/build/bun.d.ts.map +1 -0
- package/types/build/cache-ids.d.ts +2 -0
- package/types/build/cache-ids.d.ts.map +1 -0
- package/types/build/cache.d.ts +15 -0
- package/types/build/cache.d.ts.map +1 -0
- package/types/build/captured-loads.d.ts +19 -0
- package/types/build/captured-loads.d.ts.map +1 -0
- package/types/build/class-rules.d.ts +14 -0
- package/types/build/class-rules.d.ts.map +1 -0
- package/types/build/class-sources.d.ts +29 -0
- package/types/build/class-sources.d.ts.map +1 -0
- package/types/build/class-table.d.ts +8 -0
- package/types/build/class-table.d.ts.map +1 -0
- package/types/build/client.d.ts +82 -0
- package/types/build/client.d.ts.map +1 -0
- package/types/build/collection-components.d.ts +5 -0
- package/types/build/collection-components.d.ts.map +1 -0
- package/types/build/compile.d.ts +22 -0
- package/types/build/compile.d.ts.map +1 -0
- package/types/build/compressed.d.ts +7 -0
- package/types/build/compressed.d.ts.map +1 -0
- package/types/build/direct-imports.d.ts +2 -0
- package/types/build/direct-imports.d.ts.map +1 -0
- package/types/build/dynamic-classes.d.ts +12 -0
- package/types/build/dynamic-classes.d.ts.map +1 -0
- package/types/build/favicons.d.ts +4 -0
- package/types/build/favicons.d.ts.map +1 -0
- package/types/build/files.d.ts +56 -0
- package/types/build/files.d.ts.map +1 -0
- package/types/build/fingerprint.d.ts +3 -0
- package/types/build/fingerprint.d.ts.map +1 -0
- package/types/build/footprint-models.d.ts +24 -0
- package/types/build/footprint-models.d.ts.map +1 -0
- package/types/build/footprint.d.ts +44 -0
- package/types/build/footprint.d.ts.map +1 -0
- package/types/build/glob.d.ts +10 -0
- package/types/build/glob.d.ts.map +1 -0
- package/types/build/globbed.d.ts +2 -0
- package/types/build/globbed.d.ts.map +1 -0
- package/types/build/header-files.d.ts +4 -0
- package/types/build/header-files.d.ts.map +1 -0
- package/types/build/icons.d.ts +9 -0
- package/types/build/icons.d.ts.map +1 -0
- package/types/build/increments.d.ts +50 -0
- package/types/build/increments.d.ts.map +1 -0
- package/types/build/insert-ids.d.ts +10 -0
- package/types/build/insert-ids.d.ts.map +1 -0
- package/types/build/kept-maps.d.ts +3 -0
- package/types/build/kept-maps.d.ts.map +1 -0
- package/types/build/kept.d.ts +5 -0
- package/types/build/kept.d.ts.map +1 -0
- package/types/build/layer-order.d.ts +2 -0
- package/types/build/layer-order.d.ts.map +1 -0
- package/types/build/libraries.d.ts +53 -0
- package/types/build/libraries.d.ts.map +1 -0
- package/types/build/licenses.d.ts +16 -0
- package/types/build/licenses.d.ts.map +1 -0
- package/types/build/links.d.ts +3 -0
- package/types/build/links.d.ts.map +1 -0
- package/types/build/live-ids.d.ts +3 -0
- package/types/build/live-ids.d.ts.map +1 -0
- package/types/build/manifests.d.ts +26 -0
- package/types/build/manifests.d.ts.map +1 -0
- package/types/build/named-refresh.d.ts +3 -0
- package/types/build/named-refresh.d.ts.map +1 -0
- package/types/build/navigation-locale.d.ts +3 -0
- package/types/build/navigation-locale.d.ts.map +1 -0
- package/types/build/page-dirs.d.ts +8 -0
- package/types/build/page-dirs.d.ts.map +1 -0
- package/types/build/pipeline.d.ts +60 -0
- package/types/build/pipeline.d.ts.map +1 -0
- package/types/build/plugin.d.ts +30 -0
- package/types/build/plugin.d.ts.map +1 -0
- package/types/build/probe.d.ts +6 -0
- package/types/build/probe.d.ts.map +1 -0
- package/types/build/prune.d.ts +5 -0
- package/types/build/prune.d.ts.map +1 -0
- package/types/build/recipe-classes.d.ts +11 -0
- package/types/build/recipe-classes.d.ts.map +1 -0
- package/types/build/references.d.ts +7 -0
- package/types/build/references.d.ts.map +1 -0
- package/types/build/report.d.ts +95 -0
- package/types/build/report.d.ts.map +1 -0
- package/types/build/route-sizes.d.ts +7 -0
- package/types/build/route-sizes.d.ts.map +1 -0
- package/types/build/runtime-chunk.d.ts +25 -0
- package/types/build/runtime-chunk.d.ts.map +1 -0
- package/types/build/runtime-config.d.ts +3 -0
- package/types/build/runtime-config.d.ts.map +1 -0
- package/types/build/search.d.ts +7 -0
- package/types/build/search.d.ts.map +1 -0
- package/types/build/server-only.d.ts +40 -0
- package/types/build/server-only.d.ts.map +1 -0
- package/types/build/server-record.d.ts +4 -0
- package/types/build/server-record.d.ts.map +1 -0
- package/types/build/signals.d.ts +5 -0
- package/types/build/signals.d.ts.map +1 -0
- package/types/build/source-files.d.ts +15 -0
- package/types/build/source-files.d.ts.map +1 -0
- package/types/build/source-parses.d.ts +22 -0
- package/types/build/source-parses.d.ts.map +1 -0
- package/types/build/sourcemap.d.ts +29 -0
- package/types/build/sourcemap.d.ts.map +1 -0
- package/types/build/static.d.ts +11 -0
- package/types/build/static.d.ts.map +1 -0
- package/types/build/style-uses.d.ts +19 -0
- package/types/build/style-uses.d.ts.map +1 -0
- package/types/build/styles.d.ts +12 -0
- package/types/build/styles.d.ts.map +1 -0
- package/types/build/supports.d.ts +16 -0
- package/types/build/supports.d.ts.map +1 -0
- package/types/build/theme-vars.d.ts +2 -0
- package/types/build/theme-vars.d.ts.map +1 -0
- package/types/build/transform.d.ts +47 -0
- package/types/build/transform.d.ts.map +1 -0
- package/types/build/ui-info.d.ts +27 -0
- package/types/build/ui-info.d.ts.map +1 -0
- package/types/build/ui.d.ts +51 -0
- package/types/build/ui.d.ts.map +1 -0
- package/types/build/variants.d.ts +21 -0
- package/types/build/variants.d.ts.map +1 -0
- package/types/build/verify.d.ts +14 -0
- package/types/build/verify.d.ts.map +1 -0
- package/types/build/warn-classes.d.ts +4 -0
- package/types/build/warn-classes.d.ts.map +1 -0
- package/types/build/worker-bundle.d.ts +16 -0
- package/types/build/worker-bundle.d.ts.map +1 -0
- package/types/bun.d.ts +9 -0
- package/types/bun.d.ts.map +1 -0
- package/types/check/api-modules.d.ts +11 -0
- package/types/check/api-modules.d.ts.map +1 -0
- package/types/check/api-scope.d.ts +13 -0
- package/types/check/api-scope.d.ts.map +1 -0
- package/types/check/ast.d.ts +10 -0
- package/types/check/ast.d.ts.map +1 -0
- package/types/check/bindings.d.ts +4 -0
- package/types/check/bindings.d.ts.map +1 -0
- package/types/check/boot.d.ts +6 -0
- package/types/check/boot.d.ts.map +1 -0
- package/types/check/browser-global-reads.d.ts +8 -0
- package/types/check/browser-global-reads.d.ts.map +1 -0
- package/types/check/builtin-imports.d.ts +5 -0
- package/types/check/builtin-imports.d.ts.map +1 -0
- package/types/check/class-words.d.ts +7 -0
- package/types/check/class-words.d.ts.map +1 -0
- package/types/check/config-keys.d.ts +7 -0
- package/types/check/config-keys.d.ts.map +1 -0
- package/types/check/diagnose.d.ts +36 -0
- package/types/check/diagnose.d.ts.map +1 -0
- package/types/check/dockerfile.d.ts +4 -0
- package/types/check/dockerfile.d.ts.map +1 -0
- package/types/check/endpoint-exports.d.ts +4 -0
- package/types/check/endpoint-exports.d.ts.map +1 -0
- package/types/check/env-types.d.ts +8 -0
- package/types/check/env-types.d.ts.map +1 -0
- package/types/check/export-homes.d.ts +6 -0
- package/types/check/export-homes.d.ts.map +1 -0
- package/types/check/fixes.d.ts +3 -0
- package/types/check/fixes.d.ts.map +1 -0
- package/types/check/generated.d.ts +25 -0
- package/types/check/generated.d.ts.map +1 -0
- package/types/check/guards.d.ts +5 -0
- package/types/check/guards.d.ts.map +1 -0
- package/types/check/index.d.ts +34 -0
- package/types/check/index.d.ts.map +1 -0
- package/types/check/island-modules.d.ts +21 -0
- package/types/check/island-modules.d.ts.map +1 -0
- package/types/check/island-only.d.ts +11 -0
- package/types/check/island-only.d.ts.map +1 -0
- package/types/check/large-images.d.ts +5 -0
- package/types/check/large-images.d.ts.map +1 -0
- package/types/check/layout-facts.d.ts +8 -0
- package/types/check/layout-facts.d.ts.map +1 -0
- package/types/check/loaded.d.ts +8 -0
- package/types/check/loaded.d.ts.map +1 -0
- package/types/check/local-state.d.ts +3 -0
- package/types/check/local-state.d.ts.map +1 -0
- package/types/check/loop-index-fix.d.ts +4 -0
- package/types/check/loop-index-fix.d.ts.map +1 -0
- package/types/check/mcp-routes.d.ts +4 -0
- package/types/check/mcp-routes.d.ts.map +1 -0
- package/types/check/messages.d.ts +7 -0
- package/types/check/messages.d.ts.map +1 -0
- package/types/check/missing-imports.d.ts +5 -0
- package/types/check/missing-imports.d.ts.map +1 -0
- package/types/check/open-settings.d.ts +4 -0
- package/types/check/open-settings.d.ts.map +1 -0
- package/types/check/output-schema.d.ts +5 -0
- package/types/check/output-schema.d.ts.map +1 -0
- package/types/check/page-heads.d.ts +5 -0
- package/types/check/page-heads.d.ts.map +1 -0
- package/types/check/page-structure.d.ts +8 -0
- package/types/check/page-structure.d.ts.map +1 -0
- package/types/check/persisted-storage.d.ts +3 -0
- package/types/check/persisted-storage.d.ts.map +1 -0
- package/types/check/project.d.ts +37 -0
- package/types/check/project.d.ts.map +1 -0
- package/types/check/public-env-outside-src.d.ts +3 -0
- package/types/check/public-env-outside-src.d.ts.map +1 -0
- package/types/check/queries.d.ts +4 -0
- package/types/check/queries.d.ts.map +1 -0
- package/types/check/removed-ui-tokens.d.ts +3 -0
- package/types/check/removed-ui-tokens.d.ts.map +1 -0
- package/types/check/renamed-call-options.d.ts +14 -0
- package/types/check/renamed-call-options.d.ts.map +1 -0
- package/types/check/renamed-exports.d.ts +32 -0
- package/types/check/renamed-exports.d.ts.map +1 -0
- package/types/check/renamed-packages.d.ts +5 -0
- package/types/check/renamed-packages.d.ts.map +1 -0
- package/types/check/schema-type.d.ts +3 -0
- package/types/check/schema-type.d.ts.map +1 -0
- package/types/check/seo.d.ts +55 -0
- package/types/check/seo.d.ts.map +1 -0
- package/types/check/server-only-reads.d.ts +5 -0
- package/types/check/server-only-reads.d.ts.map +1 -0
- package/types/check/shadow-types.d.ts +48 -0
- package/types/check/shadow-types.d.ts.map +1 -0
- package/types/check/shadow.d.ts +62 -0
- package/types/check/shadow.d.ts.map +1 -0
- package/types/check/site-seo.d.ts +21 -0
- package/types/check/site-seo.d.ts.map +1 -0
- package/types/check/socket-routes.d.ts +4 -0
- package/types/check/socket-routes.d.ts.map +1 -0
- package/types/check/status-pages.d.ts +4 -0
- package/types/check/status-pages.d.ts.map +1 -0
- package/types/check/template-hints.d.ts +9 -0
- package/types/check/template-hints.d.ts.map +1 -0
- package/types/check/tool-labels.d.ts +3 -0
- package/types/check/tool-labels.d.ts.map +1 -0
- package/types/check/tool-outputs.d.ts +6 -0
- package/types/check/tool-outputs.d.ts.map +1 -0
- package/types/check/tsgo.d.ts +18 -0
- package/types/check/tsgo.d.ts.map +1 -0
- package/types/check/typing-stamp.d.ts +2 -0
- package/types/check/typing-stamp.d.ts.map +1 -0
- package/types/check/ui-tokens.d.ts +16 -0
- package/types/check/ui-tokens.d.ts.map +1 -0
- package/types/check/ui-types.d.ts +3 -0
- package/types/check/ui-types.d.ts.map +1 -0
- package/types/check/ui.d.ts +7 -0
- package/types/check/ui.d.ts.map +1 -0
- package/types/check/unmounted-jobs.d.ts +3 -0
- package/types/check/unmounted-jobs.d.ts.map +1 -0
- package/types/cli.d.ts +3 -0
- package/types/cli.d.ts.map +1 -0
- package/types/commands/a11y.d.ts +3 -0
- package/types/commands/a11y.d.ts.map +1 -0
- package/types/commands/add-peers.d.ts +2 -0
- package/types/commands/add-peers.d.ts.map +1 -0
- package/types/commands/add.d.ts +3 -0
- package/types/commands/add.d.ts.map +1 -0
- package/types/commands/build.d.ts +3 -0
- package/types/commands/build.d.ts.map +1 -0
- package/types/commands/check.d.ts +3 -0
- package/types/commands/check.d.ts.map +1 -0
- package/types/commands/command.d.ts +87 -0
- package/types/commands/command.d.ts.map +1 -0
- package/types/commands/completion.d.ts +5 -0
- package/types/commands/completion.d.ts.map +1 -0
- package/types/commands/dev.d.ts +3 -0
- package/types/commands/dev.d.ts.map +1 -0
- package/types/commands/docs.d.ts +3 -0
- package/types/commands/docs.d.ts.map +1 -0
- package/types/commands/doctor.d.ts +12 -0
- package/types/commands/doctor.d.ts.map +1 -0
- package/types/commands/editor.d.ts +3 -0
- package/types/commands/editor.d.ts.map +1 -0
- package/types/commands/env-compare.d.ts +25 -0
- package/types/commands/env-compare.d.ts.map +1 -0
- package/types/commands/env-declare.d.ts +5 -0
- package/types/commands/env-declare.d.ts.map +1 -0
- package/types/commands/env.d.ts +14 -0
- package/types/commands/env.d.ts.map +1 -0
- package/types/commands/explain-island.d.ts +3 -0
- package/types/commands/explain-island.d.ts.map +1 -0
- package/types/commands/explain.d.ts +3 -0
- package/types/commands/explain.d.ts.map +1 -0
- package/types/commands/extensions.d.ts +17 -0
- package/types/commands/extensions.d.ts.map +1 -0
- package/types/commands/fix-path.d.ts +2 -0
- package/types/commands/fix-path.d.ts.map +1 -0
- package/types/commands/fmt.d.ts +3 -0
- package/types/commands/fmt.d.ts.map +1 -0
- package/types/commands/generate.d.ts +3 -0
- package/types/commands/generate.d.ts.map +1 -0
- package/types/commands/i18n.d.ts +4 -0
- package/types/commands/i18n.d.ts.map +1 -0
- package/types/commands/import-module.d.ts +4 -0
- package/types/commands/import-module.d.ts.map +1 -0
- package/types/commands/lint-cache.d.ts +2 -0
- package/types/commands/lint-cache.d.ts.map +1 -0
- package/types/commands/lint.d.ts +3 -0
- package/types/commands/lint.d.ts.map +1 -0
- package/types/commands/lsp.d.ts +3 -0
- package/types/commands/lsp.d.ts.map +1 -0
- package/types/commands/mcp.d.ts +3 -0
- package/types/commands/mcp.d.ts.map +1 -0
- package/types/commands/migrate.d.ts +3 -0
- package/types/commands/migrate.d.ts.map +1 -0
- package/types/commands/new.d.ts +3 -0
- package/types/commands/new.d.ts.map +1 -0
- package/types/commands/not-found.d.ts +3 -0
- package/types/commands/not-found.d.ts.map +1 -0
- package/types/commands/project-checks.d.ts +4 -0
- package/types/commands/project-checks.d.ts.map +1 -0
- package/types/commands/registry.d.ts +13 -0
- package/types/commands/registry.d.ts.map +1 -0
- package/types/commands/render.d.ts +3 -0
- package/types/commands/render.d.ts.map +1 -0
- package/types/commands/routes.d.ts +18 -0
- package/types/commands/routes.d.ts.map +1 -0
- package/types/commands/screenshot.d.ts +3 -0
- package/types/commands/screenshot.d.ts.map +1 -0
- package/types/commands/start.d.ts +3 -0
- package/types/commands/start.d.ts.map +1 -0
- package/types/commands/test.d.ts +3 -0
- package/types/commands/test.d.ts.map +1 -0
- package/types/commands/types.d.ts +3 -0
- package/types/commands/types.d.ts.map +1 -0
- package/types/commands/upgrade.d.ts +43 -0
- package/types/commands/upgrade.d.ts.map +1 -0
- package/types/compiler/a11y-markup.d.ts +81 -0
- package/types/compiler/a11y-markup.d.ts.map +1 -0
- package/types/compiler/a11y.d.ts +4 -0
- package/types/compiler/a11y.d.ts.map +1 -0
- package/types/compiler/allow-comments.d.ts +20 -0
- package/types/compiler/allow-comments.d.ts.map +1 -0
- package/types/compiler/aria.d.ts +9 -0
- package/types/compiler/aria.d.ts.map +1 -0
- package/types/compiler/ast.d.ts +287 -0
- package/types/compiler/ast.d.ts.map +1 -0
- package/types/compiler/browser.d.ts +23 -0
- package/types/compiler/browser.d.ts.map +1 -0
- package/types/compiler/class-name.d.ts +10 -0
- package/types/compiler/class-name.d.ts.map +1 -0
- package/types/compiler/codegen.d.ts +62 -0
- package/types/compiler/codegen.d.ts.map +1 -0
- package/types/compiler/deprecated-lints.d.ts +67 -0
- package/types/compiler/deprecated-lints.d.ts.map +1 -0
- package/types/compiler/deprecated-script-fence.d.ts +3 -0
- package/types/compiler/deprecated-script-fence.d.ts.map +1 -0
- package/types/compiler/deprecated-ui-props.d.ts +14 -0
- package/types/compiler/deprecated-ui-props.d.ts.map +1 -0
- package/types/compiler/diagnostics.d.ts +16 -0
- package/types/compiler/diagnostics.d.ts.map +1 -0
- package/types/compiler/dom.d.ts +42 -0
- package/types/compiler/dom.d.ts.map +1 -0
- package/types/compiler/each-node.d.ts +3 -0
- package/types/compiler/each-node.d.ts.map +1 -0
- package/types/compiler/else-problem.d.ts +5 -0
- package/types/compiler/else-problem.d.ts.map +1 -0
- package/types/compiler/errors.d.ts +813 -0
- package/types/compiler/errors.d.ts.map +1 -0
- package/types/compiler/estree-shapes.d.ts +17 -0
- package/types/compiler/estree-shapes.d.ts.map +1 -0
- package/types/compiler/estree.d.ts +36 -0
- package/types/compiler/estree.d.ts.map +1 -0
- package/types/compiler/event-modifiers.d.ts +12 -0
- package/types/compiler/event-modifiers.d.ts.map +1 -0
- package/types/compiler/expression.d.ts +8 -0
- package/types/compiler/expression.d.ts.map +1 -0
- package/types/compiler/fence-checks.d.ts +13 -0
- package/types/compiler/fence-checks.d.ts.map +1 -0
- package/types/compiler/fence-nodes.d.ts +6 -0
- package/types/compiler/fence-nodes.d.ts.map +1 -0
- package/types/compiler/fence-redirects.d.ts +4 -0
- package/types/compiler/fence-redirects.d.ts.map +1 -0
- package/types/compiler/field-described.d.ts +6 -0
- package/types/compiler/field-described.d.ts.map +1 -0
- package/types/compiler/fnv-hash.d.ts +2 -0
- package/types/compiler/fnv-hash.d.ts.map +1 -0
- package/types/compiler/format.d.ts +11 -0
- package/types/compiler/format.d.ts.map +1 -0
- package/types/compiler/frame.d.ts +17 -0
- package/types/compiler/frame.d.ts.map +1 -0
- package/types/compiler/globals.d.ts +4 -0
- package/types/compiler/globals.d.ts.map +1 -0
- package/types/compiler/host.browser.d.ts +8 -0
- package/types/compiler/host.browser.d.ts.map +1 -0
- package/types/compiler/host.d.ts +13 -0
- package/types/compiler/host.d.ts.map +1 -0
- package/types/compiler/html.d.ts +49 -0
- package/types/compiler/html.d.ts.map +1 -0
- package/types/compiler/i18n-lints.d.ts +27 -0
- package/types/compiler/i18n-lints.d.ts.map +1 -0
- package/types/compiler/if-alias.d.ts +7 -0
- package/types/compiler/if-alias.d.ts.map +1 -0
- package/types/compiler/import-edits.d.ts +5 -0
- package/types/compiler/import-edits.d.ts.map +1 -0
- package/types/compiler/index.d.ts +62 -0
- package/types/compiler/index.d.ts.map +1 -0
- package/types/compiler/inspect.d.ts +3 -0
- package/types/compiler/inspect.d.ts.map +1 -0
- package/types/compiler/island-arguments.d.ts +13 -0
- package/types/compiler/island-arguments.d.ts.map +1 -0
- package/types/compiler/island-cause.d.ts +14 -0
- package/types/compiler/island-cause.d.ts.map +1 -0
- package/types/compiler/island-marker.d.ts +4 -0
- package/types/compiler/island-marker.d.ts.map +1 -0
- package/types/compiler/items.d.ts +72 -0
- package/types/compiler/items.d.ts.map +1 -0
- package/types/compiler/jsx-class.d.ts +7 -0
- package/types/compiler/jsx-class.d.ts.map +1 -0
- package/types/compiler/jsx-entities.d.ts +2 -0
- package/types/compiler/jsx-entities.d.ts.map +1 -0
- package/types/compiler/jsx.d.ts +49 -0
- package/types/compiler/jsx.d.ts.map +1 -0
- package/types/compiler/kay-exports.d.ts +5 -0
- package/types/compiler/kay-exports.d.ts.map +1 -0
- package/types/compiler/lints.d.ts +894 -0
- package/types/compiler/lints.d.ts.map +1 -0
- package/types/compiler/load-facts.d.ts +11 -0
- package/types/compiler/load-facts.d.ts.map +1 -0
- package/types/compiler/load-plan.d.ts +11 -0
- package/types/compiler/load-plan.d.ts.map +1 -0
- package/types/compiler/loop-lints.d.ts +13 -0
- package/types/compiler/loop-lints.d.ts.map +1 -0
- package/types/compiler/mapping.d.ts +74 -0
- package/types/compiler/mapping.d.ts.map +1 -0
- package/types/compiler/markdown-block.d.ts +42 -0
- package/types/compiler/markdown-block.d.ts.map +1 -0
- package/types/compiler/markup.d.ts +136 -0
- package/types/compiler/markup.d.ts.map +1 -0
- package/types/compiler/minor.d.ts +3 -0
- package/types/compiler/minor.d.ts.map +1 -0
- package/types/compiler/module-signals.d.ts +7 -0
- package/types/compiler/module-signals.d.ts.map +1 -0
- package/types/compiler/names.d.ts +22 -0
- package/types/compiler/names.d.ts.map +1 -0
- package/types/compiler/native-typescript.d.ts +5 -0
- package/types/compiler/native-typescript.d.ts.map +1 -0
- package/types/compiler/nesting.d.ts +3 -0
- package/types/compiler/nesting.d.ts.map +1 -0
- package/types/compiler/object-literal.d.ts +13 -0
- package/types/compiler/object-literal.d.ts.map +1 -0
- package/types/compiler/own-markup.d.ts +4 -0
- package/types/compiler/own-markup.d.ts.map +1 -0
- package/types/compiler/page-settings.d.ts +8 -0
- package/types/compiler/page-settings.d.ts.map +1 -0
- package/types/compiler/parser.d.ts +3 -0
- package/types/compiler/parser.d.ts.map +1 -0
- package/types/compiler/pattern-names.d.ts +4 -0
- package/types/compiler/pattern-names.d.ts.map +1 -0
- package/types/compiler/plan.d.ts +114 -0
- package/types/compiler/plan.d.ts.map +1 -0
- package/types/compiler/public.d.ts +4 -0
- package/types/compiler/public.d.ts.map +1 -0
- package/types/compiler/rewrite-reads.d.ts +61 -0
- package/types/compiler/rewrite-reads.d.ts.map +1 -0
- package/types/compiler/rewrite-scan.d.ts +11 -0
- package/types/compiler/rewrite-scan.d.ts.map +1 -0
- package/types/compiler/rewrite-tags.d.ts +4 -0
- package/types/compiler/rewrite-tags.d.ts.map +1 -0
- package/types/compiler/rewrite-types.d.ts +54 -0
- package/types/compiler/rewrite-types.d.ts.map +1 -0
- package/types/compiler/rewrite.d.ts +3 -0
- package/types/compiler/rewrite.d.ts.map +1 -0
- package/types/compiler/route-lints.d.ts +58 -0
- package/types/compiler/route-lints.d.ts.map +1 -0
- package/types/compiler/scanner.d.ts +12 -0
- package/types/compiler/scanner.d.ts.map +1 -0
- package/types/compiler/scope.d.ts +56 -0
- package/types/compiler/scope.d.ts.map +1 -0
- package/types/compiler/scoped-style.d.ts +28 -0
- package/types/compiler/scoped-style.d.ts.map +1 -0
- package/types/compiler/script-fence.d.ts +5 -0
- package/types/compiler/script-fence.d.ts.map +1 -0
- package/types/compiler/script-props.d.ts +7 -0
- package/types/compiler/script-props.d.ts.map +1 -0
- package/types/compiler/script-recipe.d.ts +15 -0
- package/types/compiler/script-recipe.d.ts.map +1 -0
- package/types/compiler/script-server.d.ts +53 -0
- package/types/compiler/script-server.d.ts.map +1 -0
- package/types/compiler/script-shared.d.ts +70 -0
- package/types/compiler/script-shared.d.ts.map +1 -0
- package/types/compiler/script-split.d.ts +21 -0
- package/types/compiler/script-split.d.ts.map +1 -0
- package/types/compiler/script.d.ts +12 -0
- package/types/compiler/script.d.ts.map +1 -0
- package/types/compiler/serial-awaits.d.ts +13 -0
- package/types/compiler/serial-awaits.d.ts.map +1 -0
- package/types/compiler/status-pages.d.ts +5 -0
- package/types/compiler/status-pages.d.ts.map +1 -0
- package/types/compiler/style-lints.d.ts +3 -0
- package/types/compiler/style-lints.d.ts.map +1 -0
- package/types/compiler/template-reads.d.ts +9 -0
- package/types/compiler/template-reads.d.ts.map +1 -0
- package/types/compiler/template-scopes.d.ts +11 -0
- package/types/compiler/template-scopes.d.ts.map +1 -0
- package/types/compiler/twin.d.ts +3 -0
- package/types/compiler/twin.d.ts.map +1 -0
- package/types/compiler/unowned-effects.d.ts +3 -0
- package/types/compiler/unowned-effects.d.ts.map +1 -0
- package/types/compiler/validate-fixes.d.ts +16 -0
- package/types/compiler/validate-fixes.d.ts.map +1 -0
- package/types/compiler/validate.d.ts +14 -0
- package/types/compiler/validate.d.ts.map +1 -0
- package/types/compiler/walk.d.ts +15 -0
- package/types/compiler/walk.d.ts.map +1 -0
- package/types/config-extensions.d.ts +20 -0
- package/types/config-extensions.d.ts.map +1 -0
- package/types/config-loader.d.ts +10 -0
- package/types/config-loader.d.ts.map +1 -0
- package/types/config-rules.d.ts +27 -0
- package/types/config-rules.d.ts.map +1 -0
- package/types/config-shape.d.ts +8 -0
- package/types/config-shape.d.ts.map +1 -0
- package/types/config.d.ts +402 -0
- package/types/config.d.ts.map +1 -0
- package/types/content/claims.d.ts +26 -0
- package/types/content/claims.d.ts.map +1 -0
- package/types/content/drafts.d.ts +10 -0
- package/types/content/drafts.d.ts.map +1 -0
- package/types/content/edit-entries.d.ts +73 -0
- package/types/content/edit-entries.d.ts.map +1 -0
- package/types/content/edit-fields.d.ts +55 -0
- package/types/content/edit-fields.d.ts.map +1 -0
- package/types/content/edit-registry.d.ts +9 -0
- package/types/content/edit-registry.d.ts.map +1 -0
- package/types/content/edit-shared.d.ts +129 -0
- package/types/content/edit-shared.d.ts.map +1 -0
- package/types/content/edit.d.ts +6 -0
- package/types/content/edit.d.ts.map +1 -0
- package/types/content/entry-head.d.ts +15 -0
- package/types/content/entry-head.d.ts.map +1 -0
- package/types/content/entry-route.d.ts +2 -0
- package/types/content/entry-route.d.ts.map +1 -0
- package/types/content/excerpt.d.ts +7 -0
- package/types/content/excerpt.d.ts.map +1 -0
- package/types/content/feed.d.ts +55 -0
- package/types/content/feed.d.ts.map +1 -0
- package/types/content/heading-id.d.ts +10 -0
- package/types/content/heading-id.d.ts.map +1 -0
- package/types/content/held-back.d.ts +7 -0
- package/types/content/held-back.d.ts.map +1 -0
- package/types/content/humanize.d.ts +2 -0
- package/types/content/humanize.d.ts.map +1 -0
- package/types/content/images.d.ts +23 -0
- package/types/content/images.d.ts.map +1 -0
- package/types/content/index.d.ts +166 -0
- package/types/content/index.d.ts.map +1 -0
- package/types/content/key.d.ts +5 -0
- package/types/content/key.d.ts.map +1 -0
- package/types/content/load.d.ts +93 -0
- package/types/content/load.d.ts.map +1 -0
- package/types/content/markdown-extensions.d.ts +5 -0
- package/types/content/markdown-extensions.d.ts.map +1 -0
- package/types/content/markdown.d.ts +92 -0
- package/types/content/markdown.d.ts.map +1 -0
- package/types/content/migrate.d.ts +25 -0
- package/types/content/migrate.d.ts.map +1 -0
- package/types/content/modified.d.ts +8 -0
- package/types/content/modified.d.ts.map +1 -0
- package/types/content/paginate.d.ts +24 -0
- package/types/content/paginate.d.ts.map +1 -0
- package/types/content/problems.d.ts +2 -0
- package/types/content/problems.d.ts.map +1 -0
- package/types/content/references.d.ts +16 -0
- package/types/content/references.d.ts.map +1 -0
- package/types/content/rewrite.d.ts +14 -0
- package/types/content/rewrite.d.ts.map +1 -0
- package/types/content/server.d.ts +30 -0
- package/types/content/server.d.ts.map +1 -0
- package/types/content/source-draft.d.ts +10 -0
- package/types/content/source-draft.d.ts.map +1 -0
- package/types/content/turns.d.ts +8 -0
- package/types/content/turns.d.ts.map +1 -0
- package/types/content/validate.d.ts +32 -0
- package/types/content/validate.d.ts.map +1 -0
- package/types/dev/address.d.ts +5 -0
- package/types/dev/address.d.ts.map +1 -0
- package/types/dev/base-proxy.d.ts +5 -0
- package/types/dev/base-proxy.d.ts.map +1 -0
- package/types/dev/builder.d.ts +16 -0
- package/types/dev/builder.d.ts.map +1 -0
- package/types/dev/client.d.ts +10 -0
- package/types/dev/client.d.ts.map +1 -0
- package/types/dev/config-record.d.ts +3 -0
- package/types/dev/config-record.d.ts.map +1 -0
- package/types/dev/fingerprint.d.ts +29 -0
- package/types/dev/fingerprint.d.ts.map +1 -0
- package/types/dev/index.d.ts +32 -0
- package/types/dev/index.d.ts.map +1 -0
- package/types/dev/inspector.d.ts +9 -0
- package/types/dev/inspector.d.ts.map +1 -0
- package/types/dev/loopback.d.ts +3 -0
- package/types/dev/loopback.d.ts.map +1 -0
- package/types/dev/pages.d.ts +2 -0
- package/types/dev/pages.d.ts.map +1 -0
- package/types/dev/preload.d.ts +3 -0
- package/types/dev/preload.d.ts.map +1 -0
- package/types/dev/refuse.d.ts +20 -0
- package/types/dev/refuse.d.ts.map +1 -0
- package/types/dev/reload.d.ts +20 -0
- package/types/dev/reload.d.ts.map +1 -0
- package/types/dev/render-server.d.ts +18 -0
- package/types/dev/render-server.d.ts.map +1 -0
- package/types/dev/render-socket.d.ts +2 -0
- package/types/dev/render-socket.d.ts.map +1 -0
- package/types/dev/screenshot-diff.d.ts +13 -0
- package/types/dev/screenshot-diff.d.ts.map +1 -0
- package/types/dev/screenshot-limits.d.ts +8 -0
- package/types/dev/screenshot-limits.d.ts.map +1 -0
- package/types/dev/screenshot.d.ts +62 -0
- package/types/dev/screenshot.d.ts.map +1 -0
- package/types/dev/session/client.d.ts +37 -0
- package/types/dev/session/client.d.ts.map +1 -0
- package/types/dev/session/keys.d.ts +8 -0
- package/types/dev/session/keys.d.ts.map +1 -0
- package/types/dev/session/ports.d.ts +18 -0
- package/types/dev/session/ports.d.ts.map +1 -0
- package/types/dev/session/queue.d.ts +30 -0
- package/types/dev/session/queue.d.ts.map +1 -0
- package/types/dev/session/report.d.ts +30 -0
- package/types/dev/session/report.d.ts.map +1 -0
- package/types/dev/session/servers.d.ts +73 -0
- package/types/dev/session/servers.d.ts.map +1 -0
- package/types/dev/session/types.d.ts +51 -0
- package/types/dev/session/types.d.ts.map +1 -0
- package/types/dev/sources.d.ts +14 -0
- package/types/dev/sources.d.ts.map +1 -0
- package/types/dev/tailwind.d.ts +5 -0
- package/types/dev/tailwind.d.ts.map +1 -0
- package/types/dev/types-process.d.ts +27 -0
- package/types/dev/types-process.d.ts.map +1 -0
- package/types/dev/types.d.ts +2 -0
- package/types/dev/types.d.ts.map +1 -0
- package/types/docs-props.d.ts +10 -0
- package/types/docs-props.d.ts.map +1 -0
- package/types/docs-search.d.ts +40 -0
- package/types/docs-search.d.ts.map +1 -0
- package/types/editors.d.ts +30 -0
- package/types/editors.d.ts.map +1 -0
- package/types/entities.d.ts +2 -0
- package/types/entities.d.ts.map +1 -0
- package/types/eslint/index.d.ts +51 -0
- package/types/eslint/index.d.ts.map +1 -0
- package/types/features.d.ts +10 -0
- package/types/features.d.ts.map +1 -0
- package/types/format/index.d.ts +16 -0
- package/types/format/index.d.ts.map +1 -0
- package/types/format/tailwind.d.ts +15 -0
- package/types/format/tailwind.d.ts.map +1 -0
- package/types/generate-resource.d.ts +27 -0
- package/types/generate-resource.d.ts.map +1 -0
- package/types/generate.d.ts +17 -0
- package/types/generate.d.ts.map +1 -0
- package/types/imports.d.ts +2 -0
- package/types/imports.d.ts.map +1 -0
- package/types/input-types.d.ts +2 -0
- package/types/input-types.d.ts.map +1 -0
- package/types/keyword-attributes.d.ts +6 -0
- package/types/keyword-attributes.d.ts.map +1 -0
- package/types/lsp/bridge.d.ts +14 -0
- package/types/lsp/bridge.d.ts.map +1 -0
- package/types/lsp/code-actions.d.ts +7 -0
- package/types/lsp/code-actions.d.ts.map +1 -0
- package/types/lsp/completions.d.ts +20 -0
- package/types/lsp/completions.d.ts.map +1 -0
- package/types/lsp/component-props.d.ts +10 -0
- package/types/lsp/component-props.d.ts.map +1 -0
- package/types/lsp/diagnostics.d.ts +25 -0
- package/types/lsp/diagnostics.d.ts.map +1 -0
- package/types/lsp/document-links.d.ts +7 -0
- package/types/lsp/document-links.d.ts.map +1 -0
- package/types/lsp/host.d.ts +72 -0
- package/types/lsp/host.d.ts.map +1 -0
- package/types/lsp/island-lens.d.ts +14 -0
- package/types/lsp/island-lens.d.ts.map +1 -0
- package/types/lsp/mapping.d.ts +25 -0
- package/types/lsp/mapping.d.ts.map +1 -0
- package/types/lsp/navigation.d.ts +29 -0
- package/types/lsp/navigation.d.ts.map +1 -0
- package/types/lsp/outline.d.ts +4 -0
- package/types/lsp/outline.d.ts.map +1 -0
- package/types/lsp/positions.d.ts +4 -0
- package/types/lsp/positions.d.ts.map +1 -0
- package/types/lsp/project-checks.d.ts +20 -0
- package/types/lsp/project-checks.d.ts.map +1 -0
- package/types/lsp/protocol.d.ts +172 -0
- package/types/lsp/protocol.d.ts.map +1 -0
- package/types/lsp/range-format.d.ts +7 -0
- package/types/lsp/range-format.d.ts.map +1 -0
- package/types/lsp/rename.d.ts +13 -0
- package/types/lsp/rename.d.ts.map +1 -0
- package/types/lsp/renames.d.ts +9 -0
- package/types/lsp/renames.d.ts.map +1 -0
- package/types/lsp/route-links.d.ts +9 -0
- package/types/lsp/route-links.d.ts.map +1 -0
- package/types/lsp/rpc.d.ts +40 -0
- package/types/lsp/rpc.d.ts.map +1 -0
- package/types/lsp/semantic-tokens.d.ts +6 -0
- package/types/lsp/semantic-tokens.d.ts.map +1 -0
- package/types/lsp/server.d.ts +58 -0
- package/types/lsp/server.d.ts.map +1 -0
- package/types/lsp/template-completion.d.ts +54 -0
- package/types/lsp/template-completion.d.ts.map +1 -0
- package/types/lsp/ui-completion.d.ts +19 -0
- package/types/lsp/ui-completion.d.ts.map +1 -0
- package/types/mcp/guards.d.ts +6 -0
- package/types/mcp/guards.d.ts.map +1 -0
- package/types/mcp/install.d.ts +2 -0
- package/types/mcp/install.d.ts.map +1 -0
- package/types/mcp/protocol.d.ts +88 -0
- package/types/mcp/protocol.d.ts.map +1 -0
- package/types/mcp/tools.d.ts +9 -0
- package/types/mcp/tools.d.ts.map +1 -0
- package/types/migrate/astro.d.ts +27 -0
- package/types/migrate/astro.d.ts.map +1 -0
- package/types/migrate/content.d.ts +3 -0
- package/types/migrate/content.d.ts.map +1 -0
- package/types/migrate/html.d.ts +7 -0
- package/types/migrate/html.d.ts.map +1 -0
- package/types/migrate/markup.d.ts +25 -0
- package/types/migrate/markup.d.ts.map +1 -0
- package/types/migrate/project.d.ts +17 -0
- package/types/migrate/project.d.ts.map +1 -0
- package/types/native-plugins.d.ts +2 -0
- package/types/native-plugins.d.ts.map +1 -0
- package/types/nearest.d.ts +2 -0
- package/types/nearest.d.ts.map +1 -0
- package/types/new.d.ts +34 -0
- package/types/new.d.ts.map +1 -0
- package/types/package-names.d.ts +6 -0
- package/types/package-names.d.ts.map +1 -0
- package/types/peers.d.ts +14 -0
- package/types/peers.d.ts.map +1 -0
- package/types/project.d.ts +63 -0
- package/types/project.d.ts.map +1 -0
- package/types/runtime/action-call.d.ts +11 -0
- package/types/runtime/action-call.d.ts.map +1 -0
- package/types/runtime/action-encode.d.ts +10 -0
- package/types/runtime/action-encode.d.ts.map +1 -0
- package/types/runtime/action-error.d.ts +16 -0
- package/types/runtime/action-error.d.ts.map +1 -0
- package/types/runtime/action-form.d.ts +29 -0
- package/types/runtime/action-form.d.ts.map +1 -0
- package/types/runtime/action-marks.d.ts +5 -0
- package/types/runtime/action-marks.d.ts.map +1 -0
- package/types/runtime/action-navigate.d.ts +6 -0
- package/types/runtime/action-navigate.d.ts.map +1 -0
- package/types/runtime/action-owner.d.ts +15 -0
- package/types/runtime/action-owner.d.ts.map +1 -0
- package/types/runtime/action-post.d.ts +8 -0
- package/types/runtime/action-post.d.ts.map +1 -0
- package/types/runtime/action-protection.d.ts +15 -0
- package/types/runtime/action-protection.d.ts.map +1 -0
- package/types/runtime/action-revive.d.ts +3 -0
- package/types/runtime/action-revive.d.ts.map +1 -0
- package/types/runtime/action-reviver.d.ts +2 -0
- package/types/runtime/action-reviver.d.ts.map +1 -0
- package/types/runtime/action-shared.d.ts +288 -0
- package/types/runtime/action-shared.d.ts.map +1 -0
- package/types/runtime/action-stream.d.ts +8 -0
- package/types/runtime/action-stream.d.ts.map +1 -0
- package/types/runtime/action.d.ts +29 -0
- package/types/runtime/action.d.ts.map +1 -0
- package/types/runtime/analytics.client.d.ts +3 -0
- package/types/runtime/analytics.client.d.ts.map +1 -0
- package/types/runtime/announce.d.ts +2 -0
- package/types/runtime/announce.d.ts.map +1 -0
- package/types/runtime/api-error-class.d.ts +9 -0
- package/types/runtime/api-error-class.d.ts.map +1 -0
- package/types/runtime/api-error.d.ts +17 -0
- package/types/runtime/api-error.d.ts.map +1 -0
- package/types/runtime/api-url.d.ts +24 -0
- package/types/runtime/api-url.d.ts.map +1 -0
- package/types/runtime/arrival.d.ts +5 -0
- package/types/runtime/arrival.d.ts.map +1 -0
- package/types/runtime/await.d.ts +4 -0
- package/types/runtime/await.d.ts.map +1 -0
- package/types/runtime/await.server.d.ts +26 -0
- package/types/runtime/await.server.d.ts.map +1 -0
- package/types/runtime/base.d.ts +12 -0
- package/types/runtime/base.d.ts.map +1 -0
- package/types/runtime/build.d.ts +2 -0
- package/types/runtime/build.d.ts.map +1 -0
- package/types/runtime/byte-count.d.ts +3 -0
- package/types/runtime/byte-count.d.ts.map +1 -0
- package/types/runtime/byte-size.d.ts +4 -0
- package/types/runtime/byte-size.d.ts.map +1 -0
- package/types/runtime/cache-live-id.d.ts +2 -0
- package/types/runtime/cache-live-id.d.ts.map +1 -0
- package/types/runtime/cache.d.ts +87 -0
- package/types/runtime/cache.d.ts.map +1 -0
- package/types/runtime/cache.server.d.ts +10 -0
- package/types/runtime/cache.server.d.ts.map +1 -0
- package/types/runtime/call-body.d.ts +6 -0
- package/types/runtime/call-body.d.ts.map +1 -0
- package/types/runtime/call-result.d.ts +41 -0
- package/types/runtime/call-result.d.ts.map +1 -0
- package/types/runtime/checks.d.ts +287 -0
- package/types/runtime/checks.d.ts.map +1 -0
- package/types/runtime/claimed.d.ts +3 -0
- package/types/runtime/claimed.d.ts.map +1 -0
- package/types/runtime/class-table.d.ts +7 -0
- package/types/runtime/class-table.d.ts.map +1 -0
- package/types/runtime/client.d.ts +15 -0
- package/types/runtime/client.d.ts.map +1 -0
- package/types/runtime/connection.d.ts +40 -0
- package/types/runtime/connection.d.ts.map +1 -0
- package/types/runtime/consent.d.ts +5 -0
- package/types/runtime/consent.d.ts.map +1 -0
- package/types/runtime/core.d.ts +172 -0
- package/types/runtime/core.d.ts.map +1 -0
- package/types/runtime/counters.d.ts +26 -0
- package/types/runtime/counters.d.ts.map +1 -0
- package/types/runtime/described.d.ts +9 -0
- package/types/runtime/described.d.ts.map +1 -0
- package/types/runtime/dev-a11y.d.ts +16 -0
- package/types/runtime/dev-a11y.d.ts.map +1 -0
- package/types/runtime/dev-boot.d.ts +14 -0
- package/types/runtime/dev-boot.d.ts.map +1 -0
- package/types/runtime/dev-inspector.d.ts +9 -0
- package/types/runtime/dev-inspector.d.ts.map +1 -0
- package/types/runtime/dev-patch.d.ts +2 -0
- package/types/runtime/dev-patch.d.ts.map +1 -0
- package/types/runtime/dev-refresh.d.ts +2 -0
- package/types/runtime/dev-refresh.d.ts.map +1 -0
- package/types/runtime/dev-styles.d.ts +3 -0
- package/types/runtime/dev-styles.d.ts.map +1 -0
- package/types/runtime/dev-tab-data.d.ts +3 -0
- package/types/runtime/dev-tab-data.d.ts.map +1 -0
- package/types/runtime/dev-tab-env.d.ts +3 -0
- package/types/runtime/dev-tab-env.d.ts.map +1 -0
- package/types/runtime/dev-tab-head.d.ts +3 -0
- package/types/runtime/dev-tab-head.d.ts.map +1 -0
- package/types/runtime/dev-tab-i18n.d.ts +3 -0
- package/types/runtime/dev-tab-i18n.d.ts.map +1 -0
- package/types/runtime/dev-tab-images.d.ts +3 -0
- package/types/runtime/dev-tab-images.d.ts.map +1 -0
- package/types/runtime/dev-tab-jobs.d.ts +3 -0
- package/types/runtime/dev-tab-jobs.d.ts.map +1 -0
- package/types/runtime/dev-tab-network.d.ts +3 -0
- package/types/runtime/dev-tab-network.d.ts.map +1 -0
- package/types/runtime/dev-tab-not-found.d.ts +3 -0
- package/types/runtime/dev-tab-not-found.d.ts.map +1 -0
- package/types/runtime/dev-tab-performance.d.ts +3 -0
- package/types/runtime/dev-tab-performance.d.ts.map +1 -0
- package/types/runtime/dev-tab-reading.d.ts +23 -0
- package/types/runtime/dev-tab-reading.d.ts.map +1 -0
- package/types/runtime/dev-tab-routes.d.ts +3 -0
- package/types/runtime/dev-tab-routes.d.ts.map +1 -0
- package/types/runtime/dev-tab-styles.d.ts +3 -0
- package/types/runtime/dev-tab-styles.d.ts.map +1 -0
- package/types/runtime/dev-tool-constants.d.ts +19 -0
- package/types/runtime/dev-tool-constants.d.ts.map +1 -0
- package/types/runtime/dev-tool-icons.d.ts +48 -0
- package/types/runtime/dev-tool-icons.d.ts.map +1 -0
- package/types/runtime/dev-tool-keys.d.ts +16 -0
- package/types/runtime/dev-tool-keys.d.ts.map +1 -0
- package/types/runtime/dev-tool-kit.d.ts +8 -0
- package/types/runtime/dev-tool-kit.d.ts.map +1 -0
- package/types/runtime/dev-tool-layout.d.ts +49 -0
- package/types/runtime/dev-tool-layout.d.ts.map +1 -0
- package/types/runtime/dev-tool-markdown.d.ts +2 -0
- package/types/runtime/dev-tool-markdown.d.ts.map +1 -0
- package/types/runtime/dev-tool-outline.d.ts +3 -0
- package/types/runtime/dev-tool-outline.d.ts.map +1 -0
- package/types/runtime/dev-tool-parts.d.ts +38 -0
- package/types/runtime/dev-tool-parts.d.ts.map +1 -0
- package/types/runtime/dev-tool-problems.d.ts +14 -0
- package/types/runtime/dev-tool-problems.d.ts.map +1 -0
- package/types/runtime/dev-tool-request.d.ts +5 -0
- package/types/runtime/dev-tool-request.d.ts.map +1 -0
- package/types/runtime/dev-tool-shell.d.ts +25 -0
- package/types/runtime/dev-tool-shell.d.ts.map +1 -0
- package/types/runtime/dev-tool-style.d.ts +2 -0
- package/types/runtime/dev-tool-style.d.ts.map +1 -0
- package/types/runtime/dev-tool-swaps.d.ts +10 -0
- package/types/runtime/dev-tool-swaps.d.ts.map +1 -0
- package/types/runtime/dev-tool-tab-order.d.ts +17 -0
- package/types/runtime/dev-tool-tab-order.d.ts.map +1 -0
- package/types/runtime/dev-tool-tabs.d.ts +24 -0
- package/types/runtime/dev-tool-tabs.d.ts.map +1 -0
- package/types/runtime/dev-tool-vitals.d.ts +13 -0
- package/types/runtime/dev-tool-vitals.d.ts.map +1 -0
- package/types/runtime/dev-tool-window.d.ts +18 -0
- package/types/runtime/dev-tool-window.d.ts.map +1 -0
- package/types/runtime/dev-tool.d.ts +75 -0
- package/types/runtime/dev-tool.d.ts.map +1 -0
- package/types/runtime/dev-tool.public.d.ts +4 -0
- package/types/runtime/dev-tool.public.d.ts.map +1 -0
- package/types/runtime/dom-await.d.ts +2 -0
- package/types/runtime/dom-await.d.ts.map +1 -0
- package/types/runtime/dom-image.d.ts +2 -0
- package/types/runtime/dom-image.d.ts.map +1 -0
- package/types/runtime/dom-loop.d.ts +3 -0
- package/types/runtime/dom-loop.d.ts.map +1 -0
- package/types/runtime/dom-spread.d.ts +3 -0
- package/types/runtime/dom-spread.d.ts.map +1 -0
- package/types/runtime/dom-try.d.ts +2 -0
- package/types/runtime/dom-try.d.ts.map +1 -0
- package/types/runtime/dom.d.ts +87 -0
- package/types/runtime/dom.d.ts.map +1 -0
- package/types/runtime/draft-issues.d.ts +19 -0
- package/types/runtime/draft-issues.d.ts.map +1 -0
- package/types/runtime/duration-words.d.ts +3 -0
- package/types/runtime/duration-words.d.ts.map +1 -0
- package/types/runtime/duration.d.ts +16 -0
- package/types/runtime/duration.d.ts.map +1 -0
- package/types/runtime/edit.d.ts +25 -0
- package/types/runtime/edit.d.ts.map +1 -0
- package/types/runtime/element-size.d.ts +7 -0
- package/types/runtime/element-size.d.ts.map +1 -0
- package/types/runtime/email.d.ts +3 -0
- package/types/runtime/email.d.ts.map +1 -0
- package/types/runtime/ended-entry.d.ts +3 -0
- package/types/runtime/ended-entry.d.ts.map +1 -0
- package/types/runtime/env.d.ts +26 -0
- package/types/runtime/env.d.ts.map +1 -0
- package/types/runtime/escape.d.ts +6 -0
- package/types/runtime/escape.d.ts.map +1 -0
- package/types/runtime/fetch-island.d.ts +6 -0
- package/types/runtime/fetch-island.d.ts.map +1 -0
- package/types/runtime/fields.d.ts +58 -0
- package/types/runtime/fields.d.ts.map +1 -0
- package/types/runtime/fills.d.ts +12 -0
- package/types/runtime/fills.d.ts.map +1 -0
- package/types/runtime/focus.d.ts +2 -0
- package/types/runtime/focus.d.ts.map +1 -0
- package/types/runtime/follow-log.d.ts +11 -0
- package/types/runtime/follow-log.d.ts.map +1 -0
- package/types/runtime/form-controls.d.ts +2 -0
- package/types/runtime/form-controls.d.ts.map +1 -0
- package/types/runtime/form-hold.d.ts +7 -0
- package/types/runtime/form-hold.d.ts.map +1 -0
- package/types/runtime/form-protect.d.ts +2 -0
- package/types/runtime/form-protect.d.ts.map +1 -0
- package/types/runtime/form-submits.d.ts +9 -0
- package/types/runtime/form-submits.d.ts.map +1 -0
- package/types/runtime/form.d.ts +19 -0
- package/types/runtime/form.d.ts.map +1 -0
- package/types/runtime/forms.d.ts +4 -0
- package/types/runtime/forms.d.ts.map +1 -0
- package/types/runtime/french.d.ts +6 -0
- package/types/runtime/french.d.ts.map +1 -0
- package/types/runtime/head.d.ts +40 -0
- package/types/runtime/head.d.ts.map +1 -0
- package/types/runtime/html.d.ts +70 -0
- package/types/runtime/html.d.ts.map +1 -0
- package/types/runtime/hydrate-when.d.ts +5 -0
- package/types/runtime/hydrate-when.d.ts.map +1 -0
- package/types/runtime/i18n-links.d.ts +9 -0
- package/types/runtime/i18n-links.d.ts.map +1 -0
- package/types/runtime/i18n.client.d.ts +21 -0
- package/types/runtime/i18n.client.d.ts.map +1 -0
- package/types/runtime/i18n.d.ts +112 -0
- package/types/runtime/i18n.d.ts.map +1 -0
- package/types/runtime/i18n.server.d.ts +20 -0
- package/types/runtime/i18n.server.d.ts.map +1 -0
- package/types/runtime/icons.d.ts +30 -0
- package/types/runtime/icons.d.ts.map +1 -0
- package/types/runtime/image.d.ts +103 -0
- package/types/runtime/image.d.ts.map +1 -0
- package/types/runtime/image.public.d.ts +3 -0
- package/types/runtime/image.public.d.ts.map +1 -0
- package/types/runtime/in-view.d.ts +12 -0
- package/types/runtime/in-view.d.ts.map +1 -0
- package/types/runtime/index.d.ts +84 -0
- package/types/runtime/index.d.ts.map +1 -0
- package/types/runtime/install-prompt.d.ts +17 -0
- package/types/runtime/install-prompt.d.ts.map +1 -0
- package/types/runtime/internal.d.ts +19 -0
- package/types/runtime/internal.d.ts.map +1 -0
- package/types/runtime/invalid.d.ts +3 -0
- package/types/runtime/invalid.d.ts.map +1 -0
- package/types/runtime/island-request.d.ts +3 -0
- package/types/runtime/island-request.d.ts.map +1 -0
- package/types/runtime/island.client.d.ts +4 -0
- package/types/runtime/island.client.d.ts.map +1 -0
- package/types/runtime/island.server.d.ts +32 -0
- package/types/runtime/island.server.d.ts.map +1 -0
- package/types/runtime/jsx-runtime.d.ts +2 -0
- package/types/runtime/jsx-runtime.d.ts.map +1 -0
- package/types/runtime/jsx.d.ts +286 -0
- package/types/runtime/jsx.d.ts.map +1 -0
- package/types/runtime/keepalive.d.ts +4 -0
- package/types/runtime/keepalive.d.ts.map +1 -0
- package/types/runtime/lasting.d.ts +2 -0
- package/types/runtime/lasting.d.ts.map +1 -0
- package/types/runtime/leave.d.ts +6 -0
- package/types/runtime/leave.d.ts.map +1 -0
- package/types/runtime/listen-with.d.ts +2 -0
- package/types/runtime/listen-with.d.ts.map +1 -0
- package/types/runtime/listener-set.d.ts +5 -0
- package/types/runtime/listener-set.d.ts.map +1 -0
- package/types/runtime/live-cache.d.ts +4 -0
- package/types/runtime/live-cache.d.ts.map +1 -0
- package/types/runtime/live-props.d.ts +2 -0
- package/types/runtime/live-props.d.ts.map +1 -0
- package/types/runtime/live-resource.server.d.ts +13 -0
- package/types/runtime/live-resource.server.d.ts.map +1 -0
- package/types/runtime/live-value.client.d.ts +8 -0
- package/types/runtime/live-value.client.d.ts.map +1 -0
- package/types/runtime/live-value.d.ts +13 -0
- package/types/runtime/live-value.d.ts.map +1 -0
- package/types/runtime/live-value.server.d.ts +30 -0
- package/types/runtime/live-value.server.d.ts.map +1 -0
- package/types/runtime/live-value.shared.d.ts +61 -0
- package/types/runtime/live-value.shared.d.ts.map +1 -0
- package/types/runtime/live.d.ts +292 -0
- package/types/runtime/live.d.ts.map +1 -0
- package/types/runtime/load-scope.d.ts +9 -0
- package/types/runtime/load-scope.d.ts.map +1 -0
- package/types/runtime/local-status.d.ts +4 -0
- package/types/runtime/local-status.d.ts.map +1 -0
- package/types/runtime/local.d.ts +75 -0
- package/types/runtime/local.d.ts.map +1 -0
- package/types/runtime/locale-state.d.ts +18 -0
- package/types/runtime/locale-state.d.ts.map +1 -0
- package/types/runtime/localized.d.ts +4 -0
- package/types/runtime/localized.d.ts.map +1 -0
- package/types/runtime/log.d.ts +8 -0
- package/types/runtime/log.d.ts.map +1 -0
- package/types/runtime/markdown-render.client.d.ts +3 -0
- package/types/runtime/markdown-render.client.d.ts.map +1 -0
- package/types/runtime/markdown-task.d.ts +2 -0
- package/types/runtime/markdown-task.d.ts.map +1 -0
- package/types/runtime/markdown.client.d.ts +6 -0
- package/types/runtime/markdown.client.d.ts.map +1 -0
- package/types/runtime/markdown.d.ts +8 -0
- package/types/runtime/markdown.d.ts.map +1 -0
- package/types/runtime/markdown.server.d.ts +6 -0
- package/types/runtime/markdown.server.d.ts.map +1 -0
- package/types/runtime/markers.d.ts +14 -0
- package/types/runtime/markers.d.ts.map +1 -0
- package/types/runtime/media-query.d.ts +3 -0
- package/types/runtime/media-query.d.ts.map +1 -0
- package/types/runtime/mount.d.ts +9 -0
- package/types/runtime/mount.d.ts.map +1 -0
- package/types/runtime/move.d.ts +3 -0
- package/types/runtime/move.d.ts.map +1 -0
- package/types/runtime/navigate-api.d.ts +18 -0
- package/types/runtime/navigate-api.d.ts.map +1 -0
- package/types/runtime/navigate.d.ts +10 -0
- package/types/runtime/navigate.d.ts.map +1 -0
- package/types/runtime/navigation-entry.d.ts +2 -0
- package/types/runtime/navigation-entry.d.ts.map +1 -0
- package/types/runtime/navigation-state.d.ts +19 -0
- package/types/runtime/navigation-state.d.ts.map +1 -0
- package/types/runtime/navigation.d.ts +86 -0
- package/types/runtime/navigation.d.ts.map +1 -0
- package/types/runtime/online.d.ts +2 -0
- package/types/runtime/online.d.ts.map +1 -0
- package/types/runtime/optimistic.d.ts +7 -0
- package/types/runtime/optimistic.d.ts.map +1 -0
- package/types/runtime/outside.d.ts +8 -0
- package/types/runtime/outside.d.ts.map +1 -0
- package/types/runtime/page-data.d.ts +3 -0
- package/types/runtime/page-data.d.ts.map +1 -0
- package/types/runtime/page-errors.d.ts +2 -0
- package/types/runtime/page-errors.d.ts.map +1 -0
- package/types/runtime/page-swap.d.ts +8 -0
- package/types/runtime/page-swap.d.ts.map +1 -0
- package/types/runtime/page-title.d.ts +2 -0
- package/types/runtime/page-title.d.ts.map +1 -0
- package/types/runtime/params.d.ts +4 -0
- package/types/runtime/params.d.ts.map +1 -0
- package/types/runtime/pending.d.ts +5 -0
- package/types/runtime/pending.d.ts.map +1 -0
- package/types/runtime/persist.d.ts +25 -0
- package/types/runtime/persist.d.ts.map +1 -0
- package/types/runtime/persisted.d.ts +71 -0
- package/types/runtime/persisted.d.ts.map +1 -0
- package/types/runtime/placeholder.d.ts +5 -0
- package/types/runtime/placeholder.d.ts.map +1 -0
- package/types/runtime/poll-backoff.d.ts +16 -0
- package/types/runtime/poll-backoff.d.ts.map +1 -0
- package/types/runtime/prefetch.d.ts +3 -0
- package/types/runtime/prefetch.d.ts.map +1 -0
- package/types/runtime/presence.d.ts +13 -0
- package/types/runtime/presence.d.ts.map +1 -0
- package/types/runtime/preview.d.ts +26 -0
- package/types/runtime/preview.d.ts.map +1 -0
- package/types/runtime/push.d.ts +19 -0
- package/types/runtime/push.d.ts.map +1 -0
- package/types/runtime/query-param.d.ts +14 -0
- package/types/runtime/query-param.d.ts.map +1 -0
- package/types/runtime/queue-jobs.d.ts +16 -0
- package/types/runtime/queue-jobs.d.ts.map +1 -0
- package/types/runtime/random-id.d.ts +2 -0
- package/types/runtime/random-id.d.ts.map +1 -0
- package/types/runtime/reactive-collections.d.ts +3 -0
- package/types/runtime/reactive-collections.d.ts.map +1 -0
- package/types/runtime/reactive.d.ts +112 -0
- package/types/runtime/reactive.d.ts.map +1 -0
- package/types/runtime/recipe.d.ts +34 -0
- package/types/runtime/recipe.d.ts.map +1 -0
- package/types/runtime/refetch-island.d.ts +2 -0
- package/types/runtime/refetch-island.d.ts.map +1 -0
- package/types/runtime/refuse.d.ts +18 -0
- package/types/runtime/refuse.d.ts.map +1 -0
- package/types/runtime/rendered.d.ts +9 -0
- package/types/runtime/rendered.d.ts.map +1 -0
- package/types/runtime/report-error.d.ts +2 -0
- package/types/runtime/report-error.d.ts.map +1 -0
- package/types/runtime/retry-later.d.ts +2 -0
- package/types/runtime/retry-later.d.ts.map +1 -0
- package/types/runtime/reveal.d.ts +2 -0
- package/types/runtime/reveal.d.ts.map +1 -0
- package/types/runtime/root.d.ts +3 -0
- package/types/runtime/root.d.ts.map +1 -0
- package/types/runtime/route.d.ts +19 -0
- package/types/runtime/route.d.ts.map +1 -0
- package/types/runtime/safe-code.d.ts +2 -0
- package/types/runtime/safe-code.d.ts.map +1 -0
- package/types/runtime/safe-html.d.ts +7 -0
- package/types/runtime/safe-html.d.ts.map +1 -0
- package/types/runtime/sanitize.d.ts +15 -0
- package/types/runtime/sanitize.d.ts.map +1 -0
- package/types/runtime/save-data.d.ts +2 -0
- package/types/runtime/save-data.d.ts.map +1 -0
- package/types/runtime/schema-bounds.d.ts +4 -0
- package/types/runtime/schema-bounds.d.ts.map +1 -0
- package/types/runtime/schema.client.d.ts +3 -0
- package/types/runtime/schema.client.d.ts.map +1 -0
- package/types/runtime/schema.d.ts +32 -0
- package/types/runtime/schema.d.ts.map +1 -0
- package/types/runtime/search-arrival.d.ts +2 -0
- package/types/runtime/search-arrival.d.ts.map +1 -0
- package/types/runtime/search-results.d.ts +4 -0
- package/types/runtime/search-results.d.ts.map +1 -0
- package/types/runtime/search.d.ts +48 -0
- package/types/runtime/search.d.ts.map +1 -0
- package/types/runtime/send.d.ts +3 -0
- package/types/runtime/send.d.ts.map +1 -0
- package/types/runtime/seo.d.ts +15 -0
- package/types/runtime/seo.d.ts.map +1 -0
- package/types/runtime/server-islands.d.ts +3 -0
- package/types/runtime/server-islands.d.ts.map +1 -0
- package/types/runtime/shortcut.d.ts +9 -0
- package/types/runtime/shortcut.d.ts.map +1 -0
- package/types/runtime/site.d.ts +14 -0
- package/types/runtime/site.d.ts.map +1 -0
- package/types/runtime/size-text.d.ts +2 -0
- package/types/runtime/size-text.d.ts.map +1 -0
- package/types/runtime/snapshots.d.ts +13 -0
- package/types/runtime/snapshots.d.ts.map +1 -0
- package/types/runtime/sqlite.server.d.ts +4 -0
- package/types/runtime/sqlite.server.d.ts.map +1 -0
- package/types/runtime/sse.d.ts +3 -0
- package/types/runtime/sse.d.ts.map +1 -0
- package/types/runtime/stale.d.ts +4 -0
- package/types/runtime/stale.d.ts.map +1 -0
- package/types/runtime/static-slots.d.ts +4 -0
- package/types/runtime/static-slots.d.ts.map +1 -0
- package/types/runtime/store-base.d.ts +6 -0
- package/types/runtime/store-base.d.ts.map +1 -0
- package/types/runtime/store.d.ts +12 -0
- package/types/runtime/store.d.ts.map +1 -0
- package/types/runtime/swap-fetch.d.ts +10 -0
- package/types/runtime/swap-fetch.d.ts.map +1 -0
- package/types/runtime/swap-flight.d.ts +36 -0
- package/types/runtime/swap-flight.d.ts.map +1 -0
- package/types/runtime/swap-focus.d.ts +6 -0
- package/types/runtime/swap-focus.d.ts.map +1 -0
- package/types/runtime/swap-head.d.ts +8 -0
- package/types/runtime/swap-head.d.ts.map +1 -0
- package/types/runtime/swap-held.d.ts +2 -0
- package/types/runtime/swap-held.d.ts.map +1 -0
- package/types/runtime/swap-kept.d.ts +8 -0
- package/types/runtime/swap-kept.d.ts.map +1 -0
- package/types/runtime/swap-loading.d.ts +6 -0
- package/types/runtime/swap-loading.d.ts.map +1 -0
- package/types/runtime/swap-morph.d.ts +8 -0
- package/types/runtime/swap-morph.d.ts.map +1 -0
- package/types/runtime/swap-refusal.d.ts +2 -0
- package/types/runtime/swap-refusal.d.ts.map +1 -0
- package/types/runtime/swap-streamed.d.ts +14 -0
- package/types/runtime/swap-streamed.d.ts.map +1 -0
- package/types/runtime/swap-transition.d.ts +4 -0
- package/types/runtime/swap-transition.d.ts.map +1 -0
- package/types/runtime/swap.d.ts +16 -0
- package/types/runtime/swap.d.ts.map +1 -0
- package/types/runtime/template-context.d.ts +28 -0
- package/types/runtime/template-context.d.ts.map +1 -0
- package/types/runtime/transition.d.ts +11 -0
- package/types/runtime/transition.d.ts.map +1 -0
- package/types/runtime/ui.d.ts +22 -0
- package/types/runtime/ui.d.ts.map +1 -0
- package/types/runtime/uid.d.ts +10 -0
- package/types/runtime/uid.d.ts.map +1 -0
- package/types/runtime/uid.server.d.ts +6 -0
- package/types/runtime/uid.server.d.ts.map +1 -0
- package/types/runtime/upload.d.ts +2 -0
- package/types/runtime/upload.d.ts.map +1 -0
- package/types/runtime/url-attributes.d.ts +2 -0
- package/types/runtime/url-attributes.d.ts.map +1 -0
- package/types/runtime/url-report.d.ts +5 -0
- package/types/runtime/url-report.d.ts.map +1 -0
- package/types/runtime/url.d.ts +5 -0
- package/types/runtime/url.d.ts.map +1 -0
- package/types/runtime/validate.d.ts +26 -0
- package/types/runtime/validate.d.ts.map +1 -0
- package/types/runtime/values.d.ts +18 -0
- package/types/runtime/values.d.ts.map +1 -0
- package/types/runtime/visibility.d.ts +3 -0
- package/types/runtime/visibility.d.ts.map +1 -0
- package/types/runtime/warn-once.d.ts +4 -0
- package/types/runtime/warn-once.d.ts.map +1 -0
- package/types/runtime/wire.d.ts +15 -0
- package/types/runtime/wire.d.ts.map +1 -0
- package/types/runtime/with-query.d.ts +5 -0
- package/types/runtime/with-query.d.ts.map +1 -0
- package/types/runtime/words.client.d.ts +8 -0
- package/types/runtime/words.client.d.ts.map +1 -0
- package/types/runtime/words.server.d.ts +7 -0
- package/types/runtime/words.server.d.ts.map +1 -0
- package/types/runtime/work-worker.d.ts +2 -0
- package/types/runtime/work-worker.d.ts.map +1 -0
- package/types/runtime/work.client.d.ts +4 -0
- package/types/runtime/work.client.d.ts.map +1 -0
- package/types/runtime/work.d.ts +4 -0
- package/types/runtime/work.d.ts.map +1 -0
- package/types/server/accept-language.d.ts +5 -0
- package/types/server/accept-language.d.ts.map +1 -0
- package/types/server/action-clash.d.ts +2 -0
- package/types/server/action-clash.d.ts.map +1 -0
- package/types/server/action-hooks.d.ts +19 -0
- package/types/server/action-hooks.d.ts.map +1 -0
- package/types/server/action-input.d.ts +3 -0
- package/types/server/action-input.d.ts.map +1 -0
- package/types/server/action-iterable.d.ts +7 -0
- package/types/server/action-iterable.d.ts.map +1 -0
- package/types/server/actions.d.ts +56 -0
- package/types/server/actions.d.ts.map +1 -0
- package/types/server/address.d.ts +20 -0
- package/types/server/address.d.ts.map +1 -0
- package/types/server/analytics-script.d.ts +5 -0
- package/types/server/analytics-script.d.ts.map +1 -0
- package/types/server/analytics-server.d.ts +12 -0
- package/types/server/analytics-server.d.ts.map +1 -0
- package/types/server/analytics-words.d.ts +8 -0
- package/types/server/analytics-words.d.ts.map +1 -0
- package/types/server/analytics.d.ts +109 -0
- package/types/server/analytics.d.ts.map +1 -0
- package/types/server/api-modules.d.ts +51 -0
- package/types/server/api-modules.d.ts.map +1 -0
- package/types/server/api-params.d.ts +16 -0
- package/types/server/api-params.d.ts.map +1 -0
- package/types/server/api.d.ts +50 -0
- package/types/server/api.d.ts.map +1 -0
- package/types/server/app-database.d.ts +13 -0
- package/types/server/app-database.d.ts.map +1 -0
- package/types/server/app-hooks.d.ts +26 -0
- package/types/server/app-hooks.d.ts.map +1 -0
- package/types/server/app-identity.d.ts +13 -0
- package/types/server/app-identity.d.ts.map +1 -0
- package/types/server/app-stages.d.ts +210 -0
- package/types/server/app-stages.d.ts.map +1 -0
- package/types/server/app-store.d.ts +33 -0
- package/types/server/app-store.d.ts.map +1 -0
- package/types/server/app.d.ts +122 -0
- package/types/server/app.d.ts.map +1 -0
- package/types/server/auth-mails.d.ts +357 -0
- package/types/server/auth-mails.d.ts.map +1 -0
- package/types/server/auto-listen.d.ts +6 -0
- package/types/server/auto-listen.d.ts.map +1 -0
- package/types/server/avif-worker.d.ts +19 -0
- package/types/server/avif-worker.d.ts.map +1 -0
- package/types/server/avif.d.ts +12 -0
- package/types/server/avif.d.ts.map +1 -0
- package/types/server/base.d.ts +9 -0
- package/types/server/base.d.ts.map +1 -0
- package/types/server/basic-auth.d.ts +13 -0
- package/types/server/basic-auth.d.ts.map +1 -0
- package/types/server/body.d.ts +23 -0
- package/types/server/body.d.ts.map +1 -0
- package/types/server/build-files.d.ts +8 -0
- package/types/server/build-files.d.ts.map +1 -0
- package/types/server/builtins.d.ts +5 -0
- package/types/server/builtins.d.ts.map +1 -0
- package/types/server/bundle.d.ts +26 -0
- package/types/server/bundle.d.ts.map +1 -0
- package/types/server/card-draw.d.ts +20 -0
- package/types/server/card-draw.d.ts.map +1 -0
- package/types/server/card-template.d.ts +8 -0
- package/types/server/card-template.d.ts.map +1 -0
- package/types/server/card.d.ts +73 -0
- package/types/server/card.d.ts.map +1 -0
- package/types/server/ceiling.d.ts +2 -0
- package/types/server/ceiling.d.ts.map +1 -0
- package/types/server/clean-context.d.ts +2 -0
- package/types/server/clean-context.d.ts.map +1 -0
- package/types/server/client.d.ts +91 -0
- package/types/server/client.d.ts.map +1 -0
- package/types/server/codec/avif-enc-build.d.ts +2 -0
- package/types/server/codec/avif-enc-build.d.ts.map +1 -0
- package/types/server/compress-policy.d.ts +2 -0
- package/types/server/compress-policy.d.ts.map +1 -0
- package/types/server/compress.d.ts +44 -0
- package/types/server/compress.d.ts.map +1 -0
- package/types/server/config-error.d.ts +10 -0
- package/types/server/config-error.d.ts.map +1 -0
- package/types/server/config-limits.d.ts +37 -0
- package/types/server/config-limits.d.ts.map +1 -0
- package/types/server/consent-cookie.d.ts +2 -0
- package/types/server/consent-cookie.d.ts.map +1 -0
- package/types/server/context-reads.d.ts +2 -0
- package/types/server/context-reads.d.ts.map +1 -0
- package/types/server/context-record.d.ts +10 -0
- package/types/server/context-record.d.ts.map +1 -0
- package/types/server/context-values.d.ts +15 -0
- package/types/server/context-values.d.ts.map +1 -0
- package/types/server/cookie-names.d.ts +3 -0
- package/types/server/cookie-names.d.ts.map +1 -0
- package/types/server/cookies.d.ts +36 -0
- package/types/server/cookies.d.ts.map +1 -0
- package/types/server/cors.d.ts +35 -0
- package/types/server/cors.d.ts.map +1 -0
- package/types/server/crop.d.ts +16 -0
- package/types/server/crop.d.ts.map +1 -0
- package/types/server/cross-site.d.ts +9 -0
- package/types/server/cross-site.d.ts.map +1 -0
- package/types/server/csp.d.ts +13 -0
- package/types/server/csp.d.ts.map +1 -0
- package/types/server/dev-data.d.ts +44 -0
- package/types/server/dev-data.d.ts.map +1 -0
- package/types/server/dev-errors.d.ts +34 -0
- package/types/server/dev-errors.d.ts.map +1 -0
- package/types/server/dev-footprint.d.ts +2 -0
- package/types/server/dev-footprint.d.ts.map +1 -0
- package/types/server/dev-head.d.ts +13 -0
- package/types/server/dev-head.d.ts.map +1 -0
- package/types/server/dev-jobs.d.ts +4 -0
- package/types/server/dev-jobs.d.ts.map +1 -0
- package/types/server/dev-not-found.d.ts +9 -0
- package/types/server/dev-not-found.d.ts.map +1 -0
- package/types/server/dev-notes.d.ts +3 -0
- package/types/server/dev-notes.d.ts.map +1 -0
- package/types/server/dev-offered.d.ts +6 -0
- package/types/server/dev-offered.d.ts.map +1 -0
- package/types/server/dev-secret.d.ts +2 -0
- package/types/server/dev-secret.d.ts.map +1 -0
- package/types/server/dev-sizes.d.ts +18 -0
- package/types/server/dev-sizes.d.ts.map +1 -0
- package/types/server/dev-sqlite-worker.d.ts +22 -0
- package/types/server/dev-sqlite-worker.d.ts.map +1 -0
- package/types/server/dev-ui.d.ts +3 -0
- package/types/server/dev-ui.d.ts.map +1 -0
- package/types/server/dev.d.ts +158 -0
- package/types/server/dev.d.ts.map +1 -0
- package/types/server/dictionary.d.ts +28 -0
- package/types/server/dictionary.d.ts.map +1 -0
- package/types/server/drain.d.ts +5 -0
- package/types/server/drain.d.ts.map +1 -0
- package/types/server/editor.d.ts +2 -0
- package/types/server/editor.d.ts.map +1 -0
- package/types/server/endpoint-claims.d.ts +4 -0
- package/types/server/endpoint-claims.d.ts.map +1 -0
- package/types/server/endpoint-verbs.d.ts +11 -0
- package/types/server/endpoint-verbs.d.ts.map +1 -0
- package/types/server/endpoints.d.ts +12 -0
- package/types/server/endpoints.d.ts.map +1 -0
- package/types/server/entry-drafts.d.ts +15 -0
- package/types/server/entry-drafts.d.ts.map +1 -0
- package/types/server/entry-head.d.ts +5 -0
- package/types/server/entry-head.d.ts.map +1 -0
- package/types/server/entry-urls.d.ts +6 -0
- package/types/server/entry-urls.d.ts.map +1 -0
- package/types/server/env-state.d.ts +22 -0
- package/types/server/env-state.d.ts.map +1 -0
- package/types/server/env.d.ts +22 -0
- package/types/server/env.d.ts.map +1 -0
- package/types/server/error-maps.d.ts +3 -0
- package/types/server/error-maps.d.ts.map +1 -0
- package/types/server/errors.d.ts +13 -0
- package/types/server/errors.d.ts.map +1 -0
- package/types/server/event-stream.d.ts +22 -0
- package/types/server/event-stream.d.ts.map +1 -0
- package/types/server/face.d.ts +16 -0
- package/types/server/face.d.ts.map +1 -0
- package/types/server/favicon.d.ts +60 -0
- package/types/server/favicon.d.ts.map +1 -0
- package/types/server/fetch-public.d.ts +12 -0
- package/types/server/fetch-public.d.ts.map +1 -0
- package/types/server/field-errors.d.ts +6 -0
- package/types/server/field-errors.d.ts.map +1 -0
- package/types/server/file-limit.d.ts +3 -0
- package/types/server/file-limit.d.ts.map +1 -0
- package/types/server/file-type.d.ts +4 -0
- package/types/server/file-type.d.ts.map +1 -0
- package/types/server/flash.d.ts +24 -0
- package/types/server/flash.d.ts.map +1 -0
- package/types/server/font-metrics.d.ts +22 -0
- package/types/server/font-metrics.d.ts.map +1 -0
- package/types/server/fonts.d.ts +26 -0
- package/types/server/fonts.d.ts.map +1 -0
- package/types/server/forms.d.ts +3 -0
- package/types/server/forms.d.ts.map +1 -0
- package/types/server/guard-requirement.d.ts +8 -0
- package/types/server/guard-requirement.d.ts.map +1 -0
- package/types/server/guard-runs.d.ts +5 -0
- package/types/server/guard-runs.d.ts.map +1 -0
- package/types/server/guards.d.ts +24 -0
- package/types/server/guards.d.ts.map +1 -0
- package/types/server/handler-timing.d.ts +2 -0
- package/types/server/handler-timing.d.ts.map +1 -0
- package/types/server/history.d.ts +2 -0
- package/types/server/history.d.ts.map +1 -0
- package/types/server/hooks.d.ts +28 -0
- package/types/server/hooks.d.ts.map +1 -0
- package/types/server/host-allowlist.d.ts +11 -0
- package/types/server/host-allowlist.d.ts.map +1 -0
- package/types/server/hydration.d.ts +3 -0
- package/types/server/hydration.d.ts.map +1 -0
- package/types/server/i18n.d.ts +70 -0
- package/types/server/i18n.d.ts.map +1 -0
- package/types/server/image-color.d.ts +5 -0
- package/types/server/image-color.d.ts.map +1 -0
- package/types/server/image-format.d.ts +18 -0
- package/types/server/image-format.d.ts.map +1 -0
- package/types/server/image-limits.d.ts +17 -0
- package/types/server/image-limits.d.ts.map +1 -0
- package/types/server/image-metadata-bmff.d.ts +3 -0
- package/types/server/image-metadata-bmff.d.ts.map +1 -0
- package/types/server/image-metadata.d.ts +3 -0
- package/types/server/image-metadata.d.ts.map +1 -0
- package/types/server/image.d.ts +98 -0
- package/types/server/image.d.ts.map +1 -0
- package/types/server/index.d.ts +82 -0
- package/types/server/index.d.ts.map +1 -0
- package/types/server/internal.d.ts +8 -0
- package/types/server/internal.d.ts.map +1 -0
- package/types/server/job-admin.d.ts +36 -0
- package/types/server/job-admin.d.ts.map +1 -0
- package/types/server/job-status.d.ts +3 -0
- package/types/server/job-status.d.ts.map +1 -0
- package/types/server/job-steps.d.ts +2 -0
- package/types/server/job-steps.d.ts.map +1 -0
- package/types/server/jobs-page.d.ts +12 -0
- package/types/server/jobs-page.d.ts.map +1 -0
- package/types/server/jobs.d.ts +64 -0
- package/types/server/jobs.d.ts.map +1 -0
- package/types/server/kept-exports.d.ts +5 -0
- package/types/server/kept-exports.d.ts.map +1 -0
- package/types/server/kept-pages.d.ts +9 -0
- package/types/server/kept-pages.d.ts.map +1 -0
- package/types/server/kept-source.d.ts +48 -0
- package/types/server/kept-source.d.ts.map +1 -0
- package/types/server/kv.d.ts +17 -0
- package/types/server/kv.d.ts.map +1 -0
- package/types/server/lazy-guard.d.ts +10 -0
- package/types/server/lazy-guard.d.ts.map +1 -0
- package/types/server/library.d.ts +109 -0
- package/types/server/library.d.ts.map +1 -0
- package/types/server/lifecycle.d.ts +18 -0
- package/types/server/lifecycle.d.ts.map +1 -0
- package/types/server/limit.d.ts +6 -0
- package/types/server/limit.d.ts.map +1 -0
- package/types/server/link-schemes.d.ts +3 -0
- package/types/server/link-schemes.d.ts.map +1 -0
- package/types/server/links.d.ts +4 -0
- package/types/server/links.d.ts.map +1 -0
- package/types/server/literal-writes.d.ts +43 -0
- package/types/server/literal-writes.d.ts.map +1 -0
- package/types/server/live.d.ts +34 -0
- package/types/server/live.d.ts.map +1 -0
- package/types/server/load-budget.d.ts +4 -0
- package/types/server/load-budget.d.ts.map +1 -0
- package/types/server/loader.d.ts +5 -0
- package/types/server/loader.d.ts.map +1 -0
- package/types/server/loading-page.d.ts +6 -0
- package/types/server/loading-page.d.ts.map +1 -0
- package/types/server/local-files.d.ts +4 -0
- package/types/server/local-files.d.ts.map +1 -0
- package/types/server/log.d.ts +51 -0
- package/types/server/log.d.ts.map +1 -0
- package/types/server/maintenance.d.ts +24 -0
- package/types/server/maintenance.d.ts.map +1 -0
- package/types/server/mcp-key.d.ts +12 -0
- package/types/server/mcp-key.d.ts.map +1 -0
- package/types/server/mcp.d.ts +58 -0
- package/types/server/mcp.d.ts.map +1 -0
- package/types/server/memory-jobs.d.ts +3 -0
- package/types/server/memory-jobs.d.ts.map +1 -0
- package/types/server/memory-mark.d.ts +3 -0
- package/types/server/memory-mark.d.ts.map +1 -0
- package/types/server/message-drafts.d.ts +13 -0
- package/types/server/message-drafts.d.ts.map +1 -0
- package/types/server/metrics.d.ts +14 -0
- package/types/server/metrics.d.ts.map +1 -0
- package/types/server/missing-hits.d.ts +16 -0
- package/types/server/missing-hits.d.ts.map +1 -0
- package/types/server/module-state.d.ts +9 -0
- package/types/server/module-state.d.ts.map +1 -0
- package/types/server/new-tab.d.ts +4 -0
- package/types/server/new-tab.d.ts.map +1 -0
- package/types/server/not-found-config.d.ts +5 -0
- package/types/server/not-found-config.d.ts.map +1 -0
- package/types/server/not-found.d.ts +79 -0
- package/types/server/not-found.d.ts.map +1 -0
- package/types/server/notifications.d.ts +55 -0
- package/types/server/notifications.d.ts.map +1 -0
- package/types/server/offline.d.ts +22 -0
- package/types/server/offline.d.ts.map +1 -0
- package/types/server/openapi.d.ts +84 -0
- package/types/server/openapi.d.ts.map +1 -0
- package/types/server/option-keys.d.ts +2 -0
- package/types/server/option-keys.d.ts.map +1 -0
- package/types/server/overlay.d.ts +12 -0
- package/types/server/overlay.d.ts.map +1 -0
- package/types/server/own-headers.d.ts +21 -0
- package/types/server/own-headers.d.ts.map +1 -0
- package/types/server/page-error.d.ts +7 -0
- package/types/server/page-error.d.ts.map +1 -0
- package/types/server/page-flags.d.ts +5 -0
- package/types/server/page-flags.d.ts.map +1 -0
- package/types/server/page-headers.d.ts +6 -0
- package/types/server/page-headers.d.ts.map +1 -0
- package/types/server/page-hook.d.ts +32 -0
- package/types/server/page-hook.d.ts.map +1 -0
- package/types/server/page-limits.d.ts +26 -0
- package/types/server/page-limits.d.ts.map +1 -0
- package/types/server/page-reads.d.ts +6 -0
- package/types/server/page-reads.d.ts.map +1 -0
- package/types/server/page-routes.d.ts +48 -0
- package/types/server/page-routes.d.ts.map +1 -0
- package/types/server/page-settings.d.ts +13 -0
- package/types/server/page-settings.d.ts.map +1 -0
- package/types/server/params.d.ts +20 -0
- package/types/server/params.d.ts.map +1 -0
- package/types/server/parent.d.ts +5 -0
- package/types/server/parent.d.ts.map +1 -0
- package/types/server/personal-data.d.ts +13 -0
- package/types/server/personal-data.d.ts.map +1 -0
- package/types/server/pg-cache.d.ts +4 -0
- package/types/server/pg-cache.d.ts.map +1 -0
- package/types/server/pg-data.d.ts +30 -0
- package/types/server/pg-data.d.ts.map +1 -0
- package/types/server/pg-jobs.d.ts +31 -0
- package/types/server/pg-jobs.d.ts.map +1 -0
- package/types/server/pg-limit.d.ts +10 -0
- package/types/server/pg-limit.d.ts.map +1 -0
- package/types/server/pg-live.d.ts +4 -0
- package/types/server/pg-live.d.ts.map +1 -0
- package/types/server/pg-not-found.d.ts +30 -0
- package/types/server/pg-not-found.d.ts.map +1 -0
- package/types/server/pg-notify.d.ts +9 -0
- package/types/server/pg-notify.d.ts.map +1 -0
- package/types/server/pg-orm.d.ts +32 -0
- package/types/server/pg-orm.d.ts.map +1 -0
- package/types/server/pg-poll.d.ts +41 -0
- package/types/server/pg-poll.d.ts.map +1 -0
- package/types/server/pg-redirects.d.ts +4 -0
- package/types/server/pg-redirects.d.ts.map +1 -0
- package/types/server/pg-rooms.d.ts +7 -0
- package/types/server/pg-rooms.d.ts.map +1 -0
- package/types/server/pg-sql.d.ts +6 -0
- package/types/server/pg-sql.d.ts.map +1 -0
- package/types/server/pg-stores.d.ts +14 -0
- package/types/server/pg-stores.d.ts.map +1 -0
- package/types/server/plugin.d.ts +32 -0
- package/types/server/plugin.d.ts.map +1 -0
- package/types/server/plumbing.d.ts +20 -0
- package/types/server/plumbing.d.ts.map +1 -0
- package/types/server/png.d.ts +9 -0
- package/types/server/png.d.ts.map +1 -0
- package/types/server/prebuilt-loader.d.ts +2 -0
- package/types/server/prebuilt-loader.d.ts.map +1 -0
- package/types/server/prerender.d.ts +34 -0
- package/types/server/prerender.d.ts.map +1 -0
- package/types/server/prerendered.d.ts +19 -0
- package/types/server/prerendered.d.ts.map +1 -0
- package/types/server/presence.d.ts +10 -0
- package/types/server/presence.d.ts.map +1 -0
- package/types/server/preview.d.ts +55 -0
- package/types/server/preview.d.ts.map +1 -0
- package/types/server/private-dir.d.ts +7 -0
- package/types/server/private-dir.d.ts.map +1 -0
- package/types/server/protection.d.ts +95 -0
- package/types/server/protection.d.ts.map +1 -0
- package/types/server/proxy-key.d.ts +14 -0
- package/types/server/proxy-key.d.ts.map +1 -0
- package/types/server/public-suffix.d.ts +2 -0
- package/types/server/public-suffix.d.ts.map +1 -0
- package/types/server/public-suffixes.d.ts +3 -0
- package/types/server/public-suffixes.d.ts.map +1 -0
- package/types/server/public.d.ts +23 -0
- package/types/server/public.d.ts.map +1 -0
- package/types/server/publishing.d.ts +13 -0
- package/types/server/publishing.d.ts.map +1 -0
- package/types/server/pure-page.d.ts +21 -0
- package/types/server/pure-page.d.ts.map +1 -0
- package/types/server/push-crypto.d.ts +21 -0
- package/types/server/push-crypto.d.ts.map +1 -0
- package/types/server/push-keys-command.d.ts +4 -0
- package/types/server/push-keys-command.d.ts.map +1 -0
- package/types/server/push-server.d.ts +4 -0
- package/types/server/push-server.d.ts.map +1 -0
- package/types/server/push-settings.d.ts +18 -0
- package/types/server/push-settings.d.ts.map +1 -0
- package/types/server/push-store.d.ts +19 -0
- package/types/server/push-store.d.ts.map +1 -0
- package/types/server/push.d.ts +48 -0
- package/types/server/push.d.ts.map +1 -0
- package/types/server/query.d.ts +14 -0
- package/types/server/query.d.ts.map +1 -0
- package/types/server/queue-live.d.ts +20 -0
- package/types/server/queue-live.d.ts.map +1 -0
- package/types/server/queue-scheduler.d.ts +31 -0
- package/types/server/queue-scheduler.d.ts.map +1 -0
- package/types/server/queue-telling.d.ts +3 -0
- package/types/server/queue-telling.d.ts.map +1 -0
- package/types/server/queue.d.ts +166 -0
- package/types/server/queue.d.ts.map +1 -0
- package/types/server/raster.d.ts +14 -0
- package/types/server/raster.d.ts.map +1 -0
- package/types/server/rate-limit.d.ts +9 -0
- package/types/server/rate-limit.d.ts.map +1 -0
- package/types/server/rate-refusal.d.ts +4 -0
- package/types/server/rate-refusal.d.ts.map +1 -0
- package/types/server/reach-walk.d.ts +4 -0
- package/types/server/reach-walk.d.ts.map +1 -0
- package/types/server/reach.d.ts +11 -0
- package/types/server/reach.d.ts.map +1 -0
- package/types/server/redirect-spelling.d.ts +5 -0
- package/types/server/redirect-spelling.d.ts.map +1 -0
- package/types/server/redirects.d.ts +27 -0
- package/types/server/redirects.d.ts.map +1 -0
- package/types/server/reload.d.ts +4 -0
- package/types/server/reload.d.ts.map +1 -0
- package/types/server/remote.d.ts +24 -0
- package/types/server/remote.d.ts.map +1 -0
- package/types/server/render-document.d.ts +21 -0
- package/types/server/render-document.d.ts.map +1 -0
- package/types/server/render.d.ts +117 -0
- package/types/server/render.d.ts.map +1 -0
- package/types/server/report.d.ts +7 -0
- package/types/server/report.d.ts.map +1 -0
- package/types/server/request-read.d.ts +15 -0
- package/types/server/request-read.d.ts.map +1 -0
- package/types/server/request-record.d.ts +75 -0
- package/types/server/request-record.d.ts.map +1 -0
- package/types/server/request-scope.d.ts +7 -0
- package/types/server/request-scope.d.ts.map +1 -0
- package/types/server/request-timeout.d.ts +31 -0
- package/types/server/request-timeout.d.ts.map +1 -0
- package/types/server/request-url.d.ts +4 -0
- package/types/server/request-url.d.ts.map +1 -0
- package/types/server/request-user.d.ts +4 -0
- package/types/server/request-user.d.ts.map +1 -0
- package/types/server/resources.d.ts +12 -0
- package/types/server/resources.d.ts.map +1 -0
- package/types/server/response-mismatch.d.ts +3 -0
- package/types/server/response-mismatch.d.ts.map +1 -0
- package/types/server/revalidate.d.ts +3 -0
- package/types/server/revalidate.d.ts.map +1 -0
- package/types/server/rewrite.d.ts +13 -0
- package/types/server/rewrite.d.ts.map +1 -0
- package/types/server/rooms.d.ts +57 -0
- package/types/server/rooms.d.ts.map +1 -0
- package/types/server/route-table.d.ts +26 -0
- package/types/server/route-table.d.ts.map +1 -0
- package/types/server/routes.d.ts +106 -0
- package/types/server/routes.d.ts.map +1 -0
- package/types/server/runtime-redirect-api.d.ts +35 -0
- package/types/server/runtime-redirect-api.d.ts.map +1 -0
- package/types/server/runtime-redirects.d.ts +74 -0
- package/types/server/runtime-redirects.d.ts.map +1 -0
- package/types/server/safe-path.d.ts +2 -0
- package/types/server/safe-path.d.ts.map +1 -0
- package/types/server/save-data.d.ts +10 -0
- package/types/server/save-data.d.ts.map +1 -0
- package/types/server/schema-answer.d.ts +12 -0
- package/types/server/schema-answer.d.ts.map +1 -0
- package/types/server/schema-check.d.ts +12 -0
- package/types/server/schema-check.d.ts.map +1 -0
- package/types/server/scope.d.ts +12 -0
- package/types/server/scope.d.ts.map +1 -0
- package/types/server/seal.d.ts +11 -0
- package/types/server/seal.d.ts.map +1 -0
- package/types/server/security.d.ts +20 -0
- package/types/server/security.d.ts.map +1 -0
- package/types/server/seo.d.ts +15 -0
- package/types/server/seo.d.ts.map +1 -0
- package/types/server/served-paths.d.ts +26 -0
- package/types/server/served-paths.d.ts.map +1 -0
- package/types/server/server-islands.d.ts +28 -0
- package/types/server/server-islands.d.ts.map +1 -0
- package/types/server/server-record.d.ts +23 -0
- package/types/server/server-record.d.ts.map +1 -0
- package/types/server/serving.d.ts +5 -0
- package/types/server/serving.d.ts.map +1 -0
- package/types/server/session.d.ts +110 -0
- package/types/server/session.d.ts.map +1 -0
- package/types/server/setup.d.ts +49 -0
- package/types/server/setup.d.ts.map +1 -0
- package/types/server/sha256.d.ts +7 -0
- package/types/server/sha256.d.ts.map +1 -0
- package/types/server/signals.d.ts +17 -0
- package/types/server/signals.d.ts.map +1 -0
- package/types/server/signed.d.ts +9 -0
- package/types/server/signed.d.ts.map +1 -0
- package/types/server/site-facts.d.ts +8 -0
- package/types/server/site-facts.d.ts.map +1 -0
- package/types/server/site-paths.d.ts +3 -0
- package/types/server/site-paths.d.ts.map +1 -0
- package/types/server/sitemap.d.ts +35 -0
- package/types/server/sitemap.d.ts.map +1 -0
- package/types/server/snake-case.d.ts +2 -0
- package/types/server/snake-case.d.ts.map +1 -0
- package/types/server/source.d.ts +33 -0
- package/types/server/source.d.ts.map +1 -0
- package/types/server/speculation.d.ts +4 -0
- package/types/server/speculation.d.ts.map +1 -0
- package/types/server/sqlite-data.d.ts +14 -0
- package/types/server/sqlite-data.d.ts.map +1 -0
- package/types/server/sqlite-live.d.ts +3 -0
- package/types/server/sqlite-live.d.ts.map +1 -0
- package/types/server/stale-pages.d.ts +17 -0
- package/types/server/stale-pages.d.ts.map +1 -0
- package/types/server/stamp.d.ts +24 -0
- package/types/server/stamp.d.ts.map +1 -0
- package/types/server/storage.d.ts +70 -0
- package/types/server/storage.d.ts.map +1 -0
- package/types/server/stream.d.ts +26 -0
- package/types/server/stream.d.ts.map +1 -0
- package/types/server/string.d.ts +9 -0
- package/types/server/string.d.ts.map +1 -0
- package/types/server/svg-icon.d.ts +3 -0
- package/types/server/svg-icon.d.ts.map +1 -0
- package/types/server/swap.d.ts +3 -0
- package/types/server/swap.d.ts.map +1 -0
- package/types/server/tool-outputs.d.ts +12 -0
- package/types/server/tool-outputs.d.ts.map +1 -0
- package/types/server/tool-settings.d.ts +3 -0
- package/types/server/tool-settings.d.ts.map +1 -0
- package/types/server/trace-context.d.ts +17 -0
- package/types/server/trace-context.d.ts.map +1 -0
- package/types/server/trace.d.ts +33 -0
- package/types/server/trace.d.ts.map +1 -0
- package/types/server/translations.d.ts +8 -0
- package/types/server/translations.d.ts.map +1 -0
- package/types/server/typography.d.ts +3 -0
- package/types/server/typography.d.ts.map +1 -0
- package/types/server/uncaught.d.ts +9 -0
- package/types/server/uncaught.d.ts.map +1 -0
- package/types/server/unsafe-urls.d.ts +2 -0
- package/types/server/unsafe-urls.d.ts.map +1 -0
- package/types/server/violations.d.ts +18 -0
- package/types/server/violations.d.ts.map +1 -0
- package/types/server/visit.d.ts +11 -0
- package/types/server/visit.d.ts.map +1 -0
- package/types/server/vitals-routes/_guard.d.ts +3 -0
- package/types/server/vitals-routes/_guard.d.ts.map +1 -0
- package/types/server/vitals-screen.d.ts +5 -0
- package/types/server/vitals-screen.d.ts.map +1 -0
- package/types/server/vitals-script.d.ts +3 -0
- package/types/server/vitals-script.d.ts.map +1 -0
- package/types/server/vitals-server.d.ts +4 -0
- package/types/server/vitals-server.d.ts.map +1 -0
- package/types/server/vitals-store.d.ts +41 -0
- package/types/server/vitals-store.d.ts.map +1 -0
- package/types/server/vitals.d.ts +20 -0
- package/types/server/vitals.d.ts.map +1 -0
- package/types/server/web-socket.d.ts +11 -0
- package/types/server/web-socket.d.ts.map +1 -0
- package/types/server/wildcards.d.ts +3 -0
- package/types/server/wildcards.d.ts.map +1 -0
- package/types/server/words.d.ts +49 -0
- package/types/server/words.d.ts.map +1 -0
- package/types/server/work-scope.d.ts +14 -0
- package/types/server/work-scope.d.ts.map +1 -0
- package/types/server/work.d.ts +11 -0
- package/types/server/work.d.ts.map +1 -0
- package/types/server/workers.d.ts +23 -0
- package/types/server/workers.d.ts.map +1 -0
- package/types/server/workflow.d.ts +93 -0
- package/types/server/workflow.d.ts.map +1 -0
- package/types/server/writes.d.ts +4 -0
- package/types/server/writes.d.ts.map +1 -0
- package/types/server/ws-limits.d.ts +34 -0
- package/types/server/ws-limits.d.ts.map +1 -0
- package/types/svg-attributes.d.ts +2 -0
- package/types/svg-attributes.d.ts.map +1 -0
- package/types/template-auth.d.ts +4 -0
- package/types/template-auth.d.ts.map +1 -0
- package/types/template-ci.d.ts +4 -0
- package/types/template-ci.d.ts.map +1 -0
- package/types/template-config.d.ts +4 -0
- package/types/template-config.d.ts.map +1 -0
- package/types/template-docker.d.ts +6 -0
- package/types/template-docker.d.ts.map +1 -0
- package/types/template-pins.d.ts +11 -0
- package/types/template-pins.d.ts.map +1 -0
- package/types/template-shared.d.ts +28 -0
- package/types/template-shared.d.ts.map +1 -0
- package/types/template-starter.d.ts +7 -0
- package/types/template-starter.d.ts.map +1 -0
- package/types/template-styles.d.ts +10 -0
- package/types/template-styles.d.ts.map +1 -0
- package/types/template-ws.d.ts +4 -0
- package/types/template-ws.d.ts.map +1 -0
- package/types/templates.d.ts +11 -0
- package/types/templates.d.ts.map +1 -0
- package/types/test/browser.d.ts +17 -0
- package/types/test/browser.d.ts.map +1 -0
- package/types/test/clock.d.ts +2 -0
- package/types/test/clock.d.ts.map +1 -0
- package/types/test/content.d.ts +20 -0
- package/types/test/content.d.ts.map +1 -0
- package/types/test/cookies.d.ts +9 -0
- package/types/test/cookies.d.ts.map +1 -0
- package/types/test/database.d.ts +2 -0
- package/types/test/database.d.ts.map +1 -0
- package/types/test/dom.d.ts +2 -0
- package/types/test/dom.d.ts.map +1 -0
- package/types/test/env.d.ts +2 -0
- package/types/test/env.d.ts.map +1 -0
- package/types/test/index.d.ts +24 -0
- package/types/test/index.d.ts.map +1 -0
- package/types/test/interact.d.ts +7 -0
- package/types/test/interact.d.ts.map +1 -0
- package/types/test/isolation.d.ts +2 -0
- package/types/test/isolation.d.ts.map +1 -0
- package/types/test/lazy-plugins.d.ts +8 -0
- package/types/test/lazy-plugins.d.ts.map +1 -0
- package/types/test/mount.d.ts +16 -0
- package/types/test/mount.d.ts.map +1 -0
- package/types/test/natives.d.ts +26 -0
- package/types/test/natives.d.ts.map +1 -0
- package/types/test/network.d.ts +62 -0
- package/types/test/network.d.ts.map +1 -0
- package/types/test/outputs.d.ts +5 -0
- package/types/test/outputs.d.ts.map +1 -0
- package/types/test/override-env.d.ts +9 -0
- package/types/test/override-env.d.ts.map +1 -0
- package/types/test/page-types.d.ts +108 -0
- package/types/test/page-types.d.ts.map +1 -0
- package/types/test/page.d.ts +19 -0
- package/types/test/page.d.ts.map +1 -0
- package/types/test/preload.d.ts +5 -0
- package/types/test/preload.d.ts.map +1 -0
- package/types/test/reset.d.ts +2 -0
- package/types/test/reset.d.ts.map +1 -0
- package/types/test/root.d.ts +2 -0
- package/types/test/root.d.ts.map +1 -0
- package/types/test/scratch.d.ts +2 -0
- package/types/test/scratch.d.ts.map +1 -0
- package/types/test/service.d.ts +23 -0
- package/types/test/service.d.ts.map +1 -0
- package/types/test/shared-modules.d.ts +3 -0
- package/types/test/shared-modules.d.ts.map +1 -0
- package/types/test/site-actions.d.ts +8 -0
- package/types/test/site-actions.d.ts.map +1 -0
- package/types/test/site-api.d.ts +4 -0
- package/types/test/site-api.d.ts.map +1 -0
- package/types/test/site-mcp.d.ts +4 -0
- package/types/test/site-mcp.d.ts.map +1 -0
- package/types/test/site-scope.d.ts +21 -0
- package/types/test/site-scope.d.ts.map +1 -0
- package/types/test/site-socket.d.ts +4 -0
- package/types/test/site-socket.d.ts.map +1 -0
- package/types/test/site-types.d.ts +123 -0
- package/types/test/site-types.d.ts.map +1 -0
- package/types/test/sites.d.ts +4 -0
- package/types/test/sites.d.ts.map +1 -0
- package/types/test/timeout.d.ts +2 -0
- package/types/test/timeout.d.ts.map +1 -0
- package/types/test/wait.d.ts +7 -0
- package/types/test/wait.d.ts.map +1 -0
- package/types/test/writable.d.ts +2 -0
- package/types/test/writable.d.ts.map +1 -0
- package/types/tsgo.d.ts +3 -0
- package/types/tsgo.d.ts.map +1 -0
package/llms/actions.md
ADDED
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
# Actions
|
|
2
|
+
|
|
3
|
+
- [Actions](actions.md): declaring an action and posting a form to it.
|
|
4
|
+
- [Calling actions from islands](actions-from-islands.md): `pending()`, `track()`, optimistic changes and streaming answers.
|
|
5
|
+
- [Protecting actions](action-protection.md): cross-site posts, honeypot, minimum time and proof of work; [Rate limits](rate-limits.md) holds every rate limit.
|
|
6
|
+
|
|
7
|
+
## Common tasks
|
|
8
|
+
|
|
9
|
+
### Post a form to the server
|
|
10
|
+
|
|
11
|
+
An action is an Elysia schema and a handler a page's server fence exports, and `form(action={subscribe})` posts to it, with or without JavaScript:
|
|
12
|
+
|
|
13
|
+
```kay
|
|
14
|
+
--- server
|
|
15
|
+
import { s, action } from 'kay'
|
|
16
|
+
|
|
17
|
+
export const subscribe = action(
|
|
18
|
+
s.Object({ email: s.String({ minLength: 3, maxLength: 200 }) }),
|
|
19
|
+
async ({ email }) => email.toLowerCase(),
|
|
20
|
+
)
|
|
21
|
+
---
|
|
22
|
+
form(action={subscribe})
|
|
23
|
+
input(field="email" type="email")
|
|
24
|
+
button Subscribe
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### Show why a post was refused
|
|
28
|
+
|
|
29
|
+
An `error` line inside the form shows the message of the field, the schema's `error` option when set, and a bare `error` the form's own:
|
|
30
|
+
|
|
31
|
+
```kay
|
|
32
|
+
--- server
|
|
33
|
+
import { s, action } from 'kay'
|
|
34
|
+
|
|
35
|
+
export const rename = action(
|
|
36
|
+
s.Object({ name: s.String({ minLength: 1, maxLength: 80, error: 'Write a name' }) }),
|
|
37
|
+
async ({ name }, ctx) => {
|
|
38
|
+
if (name === 'admin')
|
|
39
|
+
return ctx.fail(409, 'That name is taken')
|
|
40
|
+
|
|
41
|
+
return name
|
|
42
|
+
},
|
|
43
|
+
)
|
|
44
|
+
---
|
|
45
|
+
form(action={rename})
|
|
46
|
+
error
|
|
47
|
+
input(field="name")
|
|
48
|
+
error name
|
|
49
|
+
button Rename
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
A field's `error` is a text, or a function such as `error: () => t('names.required')` that kay calls in the request's locale, for the server's refusal and for the rules rendered into the page, so a visitor reads their language with or without JavaScript. A function that throws or returns no string leaves the field its default wording. A `query` or `defineEnv` schema field reads its `error` the same way.
|
|
53
|
+
|
|
54
|
+
### Show that a form is posting
|
|
55
|
+
|
|
56
|
+
A `pending` block inside the form shows only while that form posts, in a static page too:
|
|
57
|
+
|
|
58
|
+
```kay
|
|
59
|
+
form(action={subscribe})
|
|
60
|
+
input(field="email")
|
|
61
|
+
button Subscribe
|
|
62
|
+
pending
|
|
63
|
+
p Subscribing...
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
### Show what a post returned
|
|
67
|
+
|
|
68
|
+
The handler's result comes back on the next render of the page, once, through `createToken.succeeded()`:
|
|
69
|
+
|
|
70
|
+
```kay
|
|
71
|
+
--- server
|
|
72
|
+
import { s, action } from 'kay'
|
|
73
|
+
|
|
74
|
+
export const createToken = action(s.Object({ label: s.String({ maxLength: 80 }) }), async () => crypto.randomUUID())
|
|
75
|
+
|
|
76
|
+
const done = createToken.succeeded()
|
|
77
|
+
---
|
|
78
|
+
if done
|
|
79
|
+
p Your token: {done.data}
|
|
80
|
+
form(action={createToken})
|
|
81
|
+
input(field="label")
|
|
82
|
+
button Create
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
### Go to another page after a post
|
|
86
|
+
|
|
87
|
+
`ctx.redirect` sends the browser to a location instead of back to the page:
|
|
88
|
+
|
|
89
|
+
```kay
|
|
90
|
+
--- server
|
|
91
|
+
import { s, action } from 'kay'
|
|
92
|
+
|
|
93
|
+
export const create = action(s.Object({ title: s.String({ maxLength: 200 }) }), async ({ title }, ctx) => {
|
|
94
|
+
const id = crypto.randomUUID()
|
|
95
|
+
return ctx.redirect(`/posts/${id}`)
|
|
96
|
+
})
|
|
97
|
+
---
|
|
98
|
+
form(action={create})
|
|
99
|
+
input(field="title")
|
|
100
|
+
button Create
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
### Accept a file
|
|
104
|
+
|
|
105
|
+
`s.File()` in the schema, `input(type="file" name="avatar")` in the form, and the handler gets a `File`:
|
|
106
|
+
|
|
107
|
+
```kay
|
|
108
|
+
--- server
|
|
109
|
+
import { s, action } from 'kay'
|
|
110
|
+
|
|
111
|
+
export const upload = action(
|
|
112
|
+
s.Object({ avatar: s.File({ type: 'image/png' }) }),
|
|
113
|
+
async ({ avatar }) => avatar.size,
|
|
114
|
+
{ maxSize: '10mb' },
|
|
115
|
+
)
|
|
116
|
+
---
|
|
117
|
+
form(action={upload})
|
|
118
|
+
input(type="file" name="avatar")
|
|
119
|
+
error avatar
|
|
120
|
+
button Upload
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
## Reference
|
|
124
|
+
|
|
125
|
+
### Declaring an action
|
|
126
|
+
|
|
127
|
+
A page's or a layout's server fence exports actions: an Elysia schema and a handler. Each one becomes `POST /_kay/action/<file>/<name>`, with its input validated.
|
|
128
|
+
|
|
129
|
+
```kay
|
|
130
|
+
--- server
|
|
131
|
+
import { s, action } from 'kay'
|
|
132
|
+
import { addTodo, listTodos } from '../data'
|
|
133
|
+
|
|
134
|
+
const newTodo = s.Object({
|
|
135
|
+
title: s.String({ minLength: 1, maxLength: 200, error: 'Write a title' }),
|
|
136
|
+
})
|
|
137
|
+
|
|
138
|
+
export const add = action(newTodo, async ({ title }, ctx) => {
|
|
139
|
+
if ((await listTodos()).some(todo => todo.title === title))
|
|
140
|
+
return ctx.fail(409, { message: 'Already on the list' })
|
|
141
|
+
|
|
142
|
+
return (await addTodo(title)).id
|
|
143
|
+
})
|
|
144
|
+
|
|
145
|
+
const todos = await listTodos()
|
|
146
|
+
---
|
|
147
|
+
ul
|
|
148
|
+
for todo of todos
|
|
149
|
+
li: a(href={`/todos/${todo.id}`}) {todo.title}
|
|
150
|
+
form(action={add})
|
|
151
|
+
input(field="title" placeholder="New todo")
|
|
152
|
+
error title
|
|
153
|
+
if add.failed()?.data then data
|
|
154
|
+
p.error {data.message}
|
|
155
|
+
button Add
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
- `actions: { protect, maxSize, messages }` in `kay.config.ts` is the default of every action, `protect` key by key: an action's own `rateLimit` replaces the app's, and `protect: false` takes none of the app's checks (the app's `maxSize` and `messages` still apply). `actions: { beforeRun, onSuccess, onError }` hook every run, before the action's own hooks of the same name: [hooks](hooks.md#the-apps-own-hooks).
|
|
159
|
+
- An action with no input leaves the schema out: `action(async (ctx) => { ... }, protection?)`, validated as an empty object, its handler getting the context alone, called as `signOut()`, `signOut(undefined, { refresh: false })` or `site.call(signOut)`, and posted by `form(action={signOut})`.
|
|
160
|
+
- An action several pages and components share lives in an `_actions.kay` of a routes directory, a `--- server` fence alone, no closing `---` needed: it is served like a layout's actions, behind the guards of its directory and above, reading the params of every page below it, and `page = { guards: false }` opens it as a layout's.
|
|
161
|
+
- A page or a component imports it by its path, `import { removeTissue } from '../routes/admin/_actions.kay'`, in the server fence of a page or an island alike; no route file is imported, and `kay build`, `kay check` and `kay routes` see it as they see a layout's actions.
|
|
162
|
+
- `s.String({ format: 'email' })` accepts one plain address, the same check in the browser, on the server, in kayjs-auth and in kayjs-mail: letters and digits of any script, `+tag`, an internationalised domain; a local part up to 64 characters, labels up to 63, no quotes, comments, IP domain, name with angle brackets, list, line break or space around it, 254 characters at most, a host typed as is (no soft hyphen, zero-width space, fullwidth letter or ideographic full stop). Non-ASCII local parts and IDN domains pass for every app field; kayjs-auth alone also refuses a Latin, Cyrillic or Greek mix. `isEmail(value)` from `kay` is that check, `normalizeAddress(value)` from `kay/library` the form to store (trimmed, lower case, punycode domain).
|
|
163
|
+
- A string field with no `maxLength` of its own is refused past 10,000 characters, with the error of a declared `maxLength`, and carries that bound to the form's `maxlength` and to the tool's schema; whatever builder wrote it, `t.Record` values, tuples and a string in an API route's `body` included. A field with an `enum`, a `const`, or a secret name such as `password` keeps none. Declare a tighter one for a name, an email or a title, which `kay check` warns of (`unbounded-string`), and a longer one for a field that takes more.
|
|
164
|
+
- `s` from `kay` builds the schema. A schema shared by API modules, server fences and islands, and the types an island reads off it, are in [Schemas](schemas.md).
|
|
165
|
+
- The handler's second argument is the request context every route shares (see routing, "The request context"), `request`, `url`, `locale`, `params`, `cookies`, `locals`, `headers`, `redirect`, `notFound` and `deny`, with `status(code)` and `fail(status, data)`, whose status is an error status, 400 to 599.
|
|
166
|
+
- `ctx.redirect`, `ctx.notFound()` and `ctx.deny()` throw, as in a page, and a handler writes `return ctx.redirect(...)`, as a guard does; a call or a form post is answered with the redirect, a 404 or the denial as plain text, `redirect` with 303 unless given.
|
|
167
|
+
- Its `url` is the page's the post came from, as its guards read it, and its `locale` that page's, or the site's `lang` without `i18n`.
|
|
168
|
+
- A location outside ASCII, such as `/blog/日本語`, goes out percent-encoded, from pages and guards too.
|
|
169
|
+
- A location holding a control character, or a scheme other than `http:` and `https:`, such as `javascript:`, throws.
|
|
170
|
+
|
|
171
|
+
### Forms
|
|
172
|
+
|
|
173
|
+
- `form(action={add})` posts without JavaScript.
|
|
174
|
+
- Inside it, `input(field="title")`, on an `input`, `textarea` or `select`, renders `name="title"` plus the constraints the browser checks without JavaScript that the schema gives `title`: `required` where the server would refuse the field left blank (never for a boolean, so a checkbox stays optional, nor a list), `minlength`, `maxlength`, `pattern` (matched anywhere, as the schema matches it, and left out when the browser could not read it), `min`, `max` and `type="email"`, each unless the template writes it.
|
|
175
|
+
- `s.UnionEnum(values)` has no `default` unless the options give one: an optional enum field left out reads `undefined` and a required one is refused with a 422, where Elysia's own fills the first value in.
|
|
176
|
+
- `s.UnionKeys(TOPICS)` is a `UnionEnum` of a record's keys, typed as their union with no cast, for a `select(field="topic")` whose options come from `Object.entries(TOPICS)`.
|
|
177
|
+
- `field` takes written text, never both `field` and `name`, and only inside such a form.
|
|
178
|
+
- `kay check` verifies every `field` and `name` against the schema.
|
|
179
|
+
- Once kay's script runs it sets `novalidate` on every form posting to an action and checks the form against the schema itself, so the schema's `error` messages show rather than the browser's, then the constraints the template wrote itself. `validate` (or `validate="blur"`) on the `form` shows them as text instead, in the `data-field="<name>"` elements outside islands (a FormField's); `blur` checks each field as it loses focus too.
|
|
180
|
+
- An island renders its fields without the constraints, kay's check covering them.
|
|
181
|
+
- `form(action={move.with({ id, to: 2 })})` posts those fields as hidden inputs would, with or without JavaScript, from a page or an island, with no input for them in the form: they travel in the form's action URL, `?kay_with=` holding them URL-encoded, and the server reads them as the form's own fields, coerced by the schema, standing over a posted field of the same name.
|
|
182
|
+
- `with` takes the schema's fields, text, numbers, booleans, dates or lists of them, `undefined` and `null` left out; a call from an island sends its input as it is and reads none of it.
|
|
183
|
+
- `with` on a `with` adds to its fields; they are in the URL, so in logs and referrers: no secrets.
|
|
184
|
+
- An `_actions.kay` is served for the pages at or below its directory, so it sits at or above a page.
|
|
185
|
+
- A button alone is one such form: `form(action={move.with({ id, to: 2 })}) button(aria-label="Move up") ↑`.
|
|
186
|
+
- After the post the browser goes back to the page, or wherever the handler's `ctx.redirect` points.
|
|
187
|
+
- The page it goes back to is answered as a path (`/shop/cart?x=1`), never an absolute URL, so behind a proxy that ends TLS and reaches kay over http the browser stays on its own https origin and the page swap updates the page in place, with or without `proxy` or `X-Forwarded-Proto`.
|
|
188
|
+
- A visitor following a link to another page while the post is under way stays where it led, what the post answers dropped.
|
|
189
|
+
- A line break a form posts, CRLF per the standard, is read as `\n`, the one character the `textarea` the visitor typed in counts, so a `maxLength` matches what the browser let them write.
|
|
190
|
+
|
|
191
|
+
### Form values
|
|
192
|
+
|
|
193
|
+
- A plain form posts text, read against the schema before it validates.
|
|
194
|
+
- An `s.Number()`, `s.Integer()` or `s.Boolean()` field becomes one, a number only from decimal text such as `-1.5` or `2e3`, never `0x10`.
|
|
195
|
+
- A ticked checkbox posts `on`, read as `true`, and an unticked one nothing, read as `false` when the field is required.
|
|
196
|
+
- An `s.Array()` field takes a single value or none as a list.
|
|
197
|
+
- The spaces around each text are dropped, so `minLength: 10` counts what was typed and ten spaces fill nothing.
|
|
198
|
+
- An optional field left blank counts as left out, `undefined` for `s.Optional(s.String())`.
|
|
199
|
+
- A field named like a password or a secret keeps its spaces, as does one whose schema says so, `s.String({ trim: false })` for a code block.
|
|
200
|
+
- A call from an island with its input, not a form's fields, reaches the schema as sent.
|
|
201
|
+
- An island holding a form may call the action with its fields instead, `await add(new FormData(form))`: the server reads them as it reads a plain form post, numbers, booleans and arrays coerced from their text, spaces around text dropped and a blank optional field left out, files and the honeypot included, and answers as a call, so the island shows the field errors of the `ActionError` and goes on once it resolves.
|
|
202
|
+
- To check a form in the browser with rules of its own, showing their messages as text rather than the browser's bubbles, an island holding the form gives it `onSubmit` and `novalidate`.
|
|
203
|
+
- The island's handler runs before kay's listener on the document, so `event.preventDefault()` keeps kay from posting, `novalidate` skips kay's own check against the schema, and once the fields pass the island posts them, `await add(new FormData(form), { refresh: false })`.
|
|
204
|
+
- The handler checks the same rules from a module both import, so the form holds without JavaScript too.
|
|
205
|
+
- See [Forms](site.md#forms) for the whole form.
|
|
206
|
+
|
|
207
|
+
### Refused posts
|
|
208
|
+
|
|
209
|
+
- `ctx.fail` returns the failure where `ctx.deny`, `ctx.notFound` and `ctx.redirect` throw, so write `return ctx.fail(status, data, errors)` (the same answer as `refuse(message, { errors, data })`, which throws): a statement without `return` does nothing, which `kay check` reports as `unreturned-fail` and `--fix` repairs.
|
|
210
|
+
- A post the schema refuses, or whose handler returns `ctx.fail(status, data)`, is answered with the page it came from, rendered with the failure's status, rather than with a redirect.
|
|
211
|
+
- There `add.failed()` returns `{ status, message, values, errors, data }`, typed from the action, or `undefined`.
|
|
212
|
+
- `values` is what the form posted (fields named like a password left out).
|
|
213
|
+
- `errors` is a message per refused field, the schema's `error` option when set.
|
|
214
|
+
- `data` is what `ctx.fail` received.
|
|
215
|
+
- `return ctx.fail(409, undefined, { email: 'Already taken' })` puts a message on a field, typed from the schema's keys, with `''` for the form's own (a string `data` is that too), so `error email`, `aria-invalid`, `add.error('email')`, the value re-fill and an island's `ActionError.errors` (and a kayjs-ui `FormField` named `email`) follow it with and without JavaScript.
|
|
216
|
+
- A string passed to `ctx.fail` is the form's message too, under `errors['']` where a rate limit's refusal sits: `return ctx.fail(502, 'Not sent; try again later')`, read by `add.error()`.
|
|
217
|
+
- The page renders as a visit of it would, through the app's plugins and the page's guards, and nothing the visitor typed is lost however long it is.
|
|
218
|
+
- Reloading it posts again, as after any form a server answers in place.
|
|
219
|
+
- The page is the one the post was sent from, as `ctx.params` reads it below, the home page when it names none or another site.
|
|
220
|
+
- Without the page swap the browser shows the action's URL, so the page carries a `base` naming its own URL, and its relative links lead where they did.
|
|
221
|
+
- Each form on it posting to an action names that page in a `kay_back` query parameter, so a post refused again renders the same page, however many times in a row, and one that goes through goes back to it.
|
|
222
|
+
- A handler that throws, a mail server down say, is logged as any server error, `onError` included, and answered as a refusal with status 500.
|
|
223
|
+
- A plain form post then renders its page with the message under the form and what was typed kept, read by `add.error()`, and a call throws `ActionError` with it in `errors['']`.
|
|
224
|
+
- The message is `Something went wrong on our side; try again later` unless the site words it as `kay.action.serverError` ([Locales](locales-texts.md)) or the action words its own, `action(schema, handler, { messages: { serverError: 'Not sent; write to hello@example.com instead' } })`, so a handler needs no `try`/`catch` of its own to tell the visitor.
|
|
225
|
+
- `serverError` may be a function given the error and `ctx`, sync or async, to word it from what is loaded per request or the page's `ctx.locale`: `serverError: async () => 'Write to ' + (await settings.one()).email`. Its text is answered with the same status 500; one that throws, or answers a blank text, leaves kay's message (a throw logged beside the handler's error), and a redirect or denial thrown from it is no answer either.
|
|
226
|
+
- An action past its `timeout` (`serve.timeout` or the action's own) answers 504 the same way, worded `kay.action.timeout` (`This took too long; try again later`) and reported as a server error.
|
|
227
|
+
- A redirect or a guard's denial thrown is no error.
|
|
228
|
+
|
|
229
|
+
### Params of the posting page
|
|
230
|
+
|
|
231
|
+
- `ctx.params` holds the params of the page the action was posted from, matched against the route of the page exporting it, as its guards read them. In an action declared in a page, `kay check` types it from that page's route, a matcher's value as it gives it and an optional param `| undefined`, so `ctx.params.id` is a `number` under `[id=integer]` and a misspelled one is an error; a layout's or an `_actions.kay` action, and a guard, cover several routes and read `unknown`.
|
|
232
|
+
- A layout's action gets the ones every page it wraps names.
|
|
233
|
+
- The page is the one a refused post's form names in `kay_back`, else the one kay's script names in an `x-kay-page` header on a call or a form the page swap posts, else the post's `Referer`.
|
|
234
|
+
- An action whose route has params, posted from no page of that route, is refused with 400: before any guard or the handler runs when guards cover its file, so a guard reading them is never skipped, else once the handler first reads `ctx.params`, so an action reading none, such as a save a page of another route calls, runs from any page.
|
|
235
|
+
- A `referrer-policy` hiding the path from the site itself (`no-referrer`, `origin`, `strict-origin`) leaves a form posted without JavaScript in that case.
|
|
236
|
+
- The guards checked the visitor against those params, not against the input, which the visitor chooses, so the handler scopes what it touches by them: `projects.remove({ org: ctx.params.org, id })`.
|
|
237
|
+
|
|
238
|
+
### Reading the outcome
|
|
239
|
+
|
|
240
|
+
- `add.failed()`, `add.succeeded()` and `add.error('title')` read the outcome from any template, layout, component or island, and from the server fence.
|
|
241
|
+
- `error()` without a field is the form-wide message, `errors['']`.
|
|
242
|
+
- The field name is typed from the schema.
|
|
243
|
+
- An island reads them in the browser too, as its server render did, but for `values`, which stay on the server, so no field the server cannot tell is a secret reaches the page's source: the fields hold what was sent.
|
|
244
|
+
- Once the page shown called the action, they read how its last call went instead, reactively, a call clearing them as it starts: an island calling `add({ title })` catches the `ActionError` and `add.error('title')` shows the message, the field marked invalid.
|
|
245
|
+
- `await add.validate(form, field?)` checks a form against the action's schema, writing what it refuses into `add.error(field)` and `add.failed()` in place of the last outcome (`succeeded()` too), for every field or `field` alone; it resolves whether it is accepted, posts nothing, and accepts a form with no schema on the page (a client-only island's). kayjs-ui's `Form`, `SaveForm` and `FormDialog` take `validate="submit" | "blur"`.
|
|
246
|
+
- A post that succeeds goes back to the page with what the handler returned: `add.succeeded()` returns `{ data }`, typed from the action, or `undefined`, on that one render only.
|
|
247
|
+
- `data` travels in a cookie, sealed (AES-GCM under a key derived from [the app secret](environment.md#the-app-secret), else a key of the process, which a restart changes), so a secret shown once, such as a new API token, can be neither read nor altered in it.
|
|
248
|
+
- Data too big for it, over about 3.5 KB sealed, is left out with a warning, and `succeeded()` returns `undefined`, as it does for a cookie that does not open, forged or sealed before a restart.
|
|
249
|
+
- A prerendered page reads both too: the request carrying that cookie renders it afresh, see [Prerendering](prerendering.md#prerendering).
|
|
250
|
+
- The cookie carrying `succeeded()` back is `HttpOnly`, `SameSite=Lax`, and `Secure` when the request came over https, `X-Forwarded-Proto` included, as is every request in production when `site` is https.
|
|
251
|
+
|
|
252
|
+
### Files
|
|
253
|
+
|
|
254
|
+
- What an action takes of a file, `s.File()`, `s.Files()`, the form encoding and the body limit, is in [Stored files](files.md#files-posted-to-an-action).
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
# Analytics and Web Vitals
|
|
2
|
+
|
|
3
|
+
Count visits and measure real page loads through your own origin, and ask for the visitor's consent. What kay keeps otherwise, and erasing a person, is in [Privacy and personal data](privacy.md).
|
|
4
|
+
|
|
5
|
+
## Common tasks
|
|
6
|
+
|
|
7
|
+
### Count visits through your own origin
|
|
8
|
+
|
|
9
|
+
`analytics()` from `kay/analytics` serves a small tracker from the app and forwards each visit to the provider from the server, so the CSP needs no third-party host and an ad blocker has no provider domain to match:
|
|
10
|
+
|
|
11
|
+
```ts
|
|
12
|
+
import { defineConfig } from 'kay/server'
|
|
13
|
+
import { analytics } from 'kay/analytics'
|
|
14
|
+
|
|
15
|
+
export default defineConfig({
|
|
16
|
+
extensions: [analytics({ provider: 'plausible', site: 'example.com' })],
|
|
17
|
+
})
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
### Measure how fast pages load for real visitors
|
|
21
|
+
|
|
22
|
+
`vitals()` from `kay/analytics` reports the LCP, CLS and INP of real visits from your own origin and shows a 75th percentile per route, with no script, route or table on your side:
|
|
23
|
+
|
|
24
|
+
```ts
|
|
25
|
+
import { defineConfig, sqliteData } from 'kay/server'
|
|
26
|
+
import { vitals } from 'kay/analytics'
|
|
27
|
+
|
|
28
|
+
export default defineConfig({
|
|
29
|
+
store: sqliteData('data/app.sqlite'),
|
|
30
|
+
extensions: [vitals({ guard: { load: async () => (await import('./src/auth')).auth.guard({ require: 'admin' }) } })],
|
|
31
|
+
})
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### Count a signup, a download or any named event
|
|
35
|
+
|
|
36
|
+
`kayAnalytics.track(name, props)` in the browser, a `data-analytics-event` element, or `track(ctx, name, props)` on the server count a named event through the same provider, consent and `exclude`:
|
|
37
|
+
|
|
38
|
+
```ts
|
|
39
|
+
import { track } from 'kay/analytics'
|
|
40
|
+
|
|
41
|
+
export const signup = action(s.Object({ plan: s.String() }), async ({ plan }, ctx) => {
|
|
42
|
+
await track(ctx, 'signup', { plan })
|
|
43
|
+
})
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
```kay
|
|
47
|
+
button(data-analytics-event="signup" data-analytics-prop-plan="pro") Start
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
`events: { outbound: true, downloads: true }` on `analytics()` counts links to other sites and to files with no markup.
|
|
51
|
+
|
|
52
|
+
### Ask for analytics consent in your own UI
|
|
53
|
+
|
|
54
|
+
`consent` from `kay/analytics` is a signal holding the visitor's answer to `analytics({ awaitConsent })`: `'yes'`, `'no'` or `''` while they have not chosen. Read it as `consent()`, answer with `consent = 'yes'`, `'no'`, or `''` to ask again. It reads and writes the `kay_analytics` cookie kay's own notice uses, so the two never disagree and the server still forwards nothing without the yes. Pass `awaitConsent: { notice: false }` to show no notice of kay's (a `data-analytics-consent` click opens none either) and ask in your own UI:
|
|
55
|
+
|
|
56
|
+
```ts
|
|
57
|
+
import { defineConfig } from 'kay/server'
|
|
58
|
+
import { analytics } from 'kay/analytics'
|
|
59
|
+
|
|
60
|
+
export default defineConfig({
|
|
61
|
+
extensions: [analytics({ provider: 'ga4', measurementId: 'G-ABC123XYZ', apiSecret: 'secret', awaitConsent: { notice: false } })],
|
|
62
|
+
})
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
```kay
|
|
66
|
+
---
|
|
67
|
+
import { consent } from 'kay/analytics'
|
|
68
|
+
---
|
|
69
|
+
if consent() === ''
|
|
70
|
+
aside(aria-label="Visit statistics")
|
|
71
|
+
p We count visits only if you agree.
|
|
72
|
+
button(onClick={() => consent = 'yes'}) Agree
|
|
73
|
+
button(onClick={() => consent = 'no'}) Refuse
|
|
74
|
+
else
|
|
75
|
+
button(onClick={() => consent = ''}) Visit statistics: {consent() === 'yes' ? 'on' : 'off'}, change
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
## Reference
|
|
79
|
+
|
|
80
|
+
### Rules: Count visits through your own origin
|
|
81
|
+
|
|
82
|
+
- `provider` is `'plausible'` (`site`, else the visited host), `'umami'` (`websiteId`; Umami Cloud, with no `url`, asks for consent by default, see `awaitConsent`), `'simpleanalytics'` (`site`, else the visited host) or `'matomo'` (`siteId`, `url`, optional `tokenAuth`); each but Matomo takes `url` for a self-hosted instance or another endpoint, Matomo requires it. `url` is the service's address and `hosts` the page hostnames a visit may name, so the two never mean one thing. All four are cookieless and take visits from the server, so they count at once (Umami Cloud waits for a yes), with an information line and an opt-out (see the `info` bullet). Matomo gets the visitor's address (`cip`) only with a `tokenAuth` of a user with write access, else it sees this server's.
|
|
83
|
+
- The site is named by one option per provider, `site` where the provider's id is only a hostname and the provider's own word where it has one:
|
|
84
|
+
|
|
85
|
+
| Provider | Option for the site | Needed |
|
|
86
|
+
| --- | --- | --- |
|
|
87
|
+
| `plausible` | `site` (Plausible's domain) | no, the page's host |
|
|
88
|
+
| `simpleanalytics` | `site` (the hostname) | no, the page's host |
|
|
89
|
+
| `umami` | `websiteId` | yes |
|
|
90
|
+
| `matomo` | `siteId` | yes |
|
|
91
|
+
| `fathom` | `siteId` | yes |
|
|
92
|
+
| `ga4` | `measurementId` | yes |
|
|
93
|
+
| `cloudflare` | `token` | yes |
|
|
94
|
+
|
|
95
|
+
- `'fathom'` (`siteId`, `spa`) and `'cloudflare'` (`token`) take data only from their own scripts (Cloudflare says so for its endpoint), so they are the exception to "through your origin": their script is added to the head and the CSP opened for their domains (`cdn.usefathom.com`; `static.cloudflareinsights.com` and `cloudflareinsights.com`). With `awaitConsent`, kay's script loads theirs after the yes, and a refusal after it loaded reloads the page without it; with `awaitConsent: false` it loads theirs until the visitor opts out on the information line.
|
|
96
|
+
- `'custom'` (`script`, `endpoint`, optional `address: true`, `integrity: 'sha256-...'`) is any tracker that is a script posting to an endpoint: kay fetches `script` (an hour cached, 512 KB at most), serves it at `/_kay/analytics/script.js` with every `endpoint` written in it replaced by `/_kay/analytics/collect`, and passes what it posts to `endpoint`: a body of 64 KB at most, JSON, text or form content only, the visitor's `User-Agent` and, with `address: true`, `X-Forwarded-For`. The tracker counts page swaps itself, and the endpoint must appear in the script as written. `integrity` pins the script by its hash as a `script` tag writes it (`sha256-`, `sha384-` or `sha512-` then the base64 digest): a script that differs answers 502 instead of running on every page, and the boot warns of a `custom` provider without one.
|
|
97
|
+
- `'ga4'` (`measurementId` as `G-XXXXXXXXXX`, `apiSecret` from the data stream's Measurement Protocol API secrets, optional `url` such as `https://region1.google-analytics.com` for EU collection, optional `address: true`) sends a `page_view` to `/mp/collect` from the server: no Google script, cookie or CSP exception, and the secret stays on the server. There is no browser cookie to hold Google's `client_id`, so the server makes one (`<digits>.<digits>`) as a keyed hash of the visitor's address and `User-Agent` with a random key that changes every UTC day and lives in the process: it tells a visitor apart for a day, cannot be turned back into an address, and exists only for a visit that passed the consent check. Two processes behind a balancer count a visitor twice. `session_id` is the half hour the visit falls in and `engagement_time_msec` a fixed 100. The address is not passed on unless `address: true`, which sends it as `ip_override` so Google places the visit; otherwise Google places visits at this server. Behind a CDN set `proxy`, else every visitor shares the proxy's address and one id. Keep `url` on https, as the secret is in the request. Google reports Measurement Protocol events without a tag only in part (Realtime and engagement metrics are the ones to check), and a long `page_location` may be cut by Google's 100 character value limit.
|
|
98
|
+
- The tracker is `/_kay/analytics.js`, added to every page's head, and counts the page on load and on each page swap (`kay:navigate`), the page the visitor left as referrer. Visits go to `POST /_kay/analytics` under the `base`.
|
|
99
|
+
- It needs a running server (Fathom and Cloudflare with a notice or the information line work in a `kay build --static` export, which writes `/_kay/analytics.js` beside the pages): `kay build --static` warns, since the exported pages would call a route that answers 404. Only `NODE_ENV=production` forwards; `kay dev` and tests answer the same and send nothing.
|
|
100
|
+
- A visit is answered at once and passed on in the background (200 waiting at most, then dropped).
|
|
101
|
+
- `awaitConsent` is `true` (or `{ text, agree, refuse }`, each a string or one per language: `{ text: { en: 'Count?', fr: 'Compter ?' } }`) to wait for the visitor's yes, and left out it is `true` for `ga4`, `fathom`, `cloudflare`, `custom` and `umami` without a `url` (or on `cloud.umami.is`), which are not self-hostable cookieless counters or send the address to a third party: write `awaitConsent: false` to count them without asking, which the app then answers for. Nothing is counted before the yes: a notice kay builds (its code is `/_kay/analytics/notice.js`, fetched only when the visitor has to be asked) (a labelled `section` at the end of the body, reached by Tab, focus not moved to it on load; a click on `data-analytics-consent` opens it on its first button and the answer gives focus back; it survives a page swap) asks until they choose, the answer is the `kay_analytics` cookie (`yes` or `no`, 180 days for a refusal as for a yes, `SameSite=Lax`, for the `base` path; `awaitConsent: { maxAge }` seconds, 13 months at most), and the server forwards nothing without `yes`, whatever the request claims. The cookie in the visitor's browser is the only record of the answer: kay keeps no list of who agreed, so an app that must prove a consent (GDPR art. 7(1)) records it itself, from the handler that assigns `consent`.
|
|
102
|
+
- The notice and the information line take the site's look: kayjs-ui's tokens when present (surface, text, accent, border, radius, following its color scheme), else the page's background and text; `--kay-notice-background`, `-color`, `-border`, `-radius`, `-shadow`, `-accent` and `-on-accent` on `:root` override them. The agree and refuse buttons are drawn the same (the accent colors, one size), so refusing is as easy to see as agreeing.
|
|
103
|
+
- Any element with `data-analytics-consent` reopens the notice, so a visitor changes their mind as easily as they chose. The notice is a script of its own, fetched on the first ask and again on the next one when the fetch failed; the notice and a provider's script copy the nonce of the tracker tag, so an app with a nonce-only CSP puts its nonce on that tag.
|
|
104
|
+
- `plausible`, `umami` (with its own `url`), `simpleanalytics` and `matomo` count at once unless `awaitConsent` asks, and show an information line (a labelled `section` like the notice) with `OK` and `Opt out`; `Opt out` writes `kay_analytics=no` and the server forwards nothing for that visitor, from any page. `info: { text, ok, optOut }` (strings or one per language) words it, `info: false` leaves it out for an app that informs and lets visitors object itself (`ga4`, `fathom`, `cloudflare` and `custom` with `awaitConsent: false` show it too); an `info` object is refused when `awaitConsent` asks, where nothing shows it. Fathom, Cloudflare and `custom` with `awaitConsent: false` and no `info: false` get the line through kay's loader: it adds their script after its own and not at all once `kay_analytics=no` is set, and `Opt out` after it ran reloads the page without it (the page view of that load was already counted by the script, as with the counters). With `info: false` their script goes in the head as it is, and the app lets visitors object itself. A static export writes the loader and the line's files for them.
|
|
105
|
+
- The notice and the information line read in English, or in kay's French on a page whose `lang` is `fr` (`fr-CA` too); the app's `awaitConsent` / `info` strings win (a plain one for every language). They name the provider (`with Plausible`, `{provider}` in the app's `text` becomes it, the endpoint's host for `custom`) and link `privacy` (a path without the `base`, or an http(s) address) as `Privacy policy` (`policy` in `awaitConsent` or `info`, a string or one per language). Kay's own labels are bound with no-break spaces, so a narrow screen never leaves one word of a link or button alone; bind an own label of several words the same way.
|
|
106
|
+
- `exclude: ['/account', '/*/admin']` leaves pages out: the tracker counts nothing for a path with those leading segments (under the `base`, `*` for one segment such as a locale: list `/admin` and `/*/admin`) or for a page whose head says `noindex`, or for a page a guard covers (the page carries `<meta name="kay-guarded">`, so `/account` behind a guard needs no `exclude`); the server drops a visit to an `exclude` path too, so a tracker cached from before counts nothing for it either, unless a proxy takes the `base` off and the tracker predates this. It and `titles` are for the providers kay counts for, not Fathom, Cloudflare or `custom`, where they are type errors (and refused at start). Without `titles: true` a visit carries the path alone.
|
|
107
|
+
- `window.kayAnalytics.consent()` reads the answer (`'yes'`, `'no'` or `''`) and `kay:consent` fires on `document` when it changes. An app with its own banner or settings page uses `consent` instead, see the next section.
|
|
108
|
+
- A visit is refused unless the page it names is on the host the request came to, or one in `hosts: ['www.example.com']`, which a proxy rewriting `Host` needs for the real one (a dropped visit logs a warning, once a minute at most); a body past 4 KB (413), a cross-site post (403) and more than 120 visits a minute from one address (429) are refused too.
|
|
109
|
+
- What a provider gets: the page URL without its hash and with only the `utm_*`, `ref` and `source` parameters of its query, the referrer without its query, the title only with `titles: true`, the screen size and language, and the visitor's `User-Agent`, cleaned of control characters. No cookie, `Referer` or `Authorization` of the visitor goes with it.
|
|
110
|
+
- A provider answering 4xx or 5xx to a visit (a wrong site id, domain or secret) logs one warning per provider and status a minute, naming the status and no URL, so lost stats show in the log.
|
|
111
|
+
- The visitor's address is sent only to a provider that needs it to tell visitors apart or place them: Plausible as `X-Forwarded-For`, Umami as `ip` in the payload, Matomo as `cip` with a `tokenAuth`, GA4 as `ip_override` and `custom` as `X-Forwarded-For`, the last two only with `address: true`; Simple Analytics not at all. It is the one `proxy` yields, so set `proxy` behind a CDN: without it every visitor shares the proxy's address, Plausible counts one visitor and the 120 a minute limit is shared by the whole site.
|
|
112
|
+
|
|
113
|
+
### Rules: Count a signup, a download or any named event
|
|
114
|
+
|
|
115
|
+
- Three ways in: `window.kayAnalytics.track(name, props)` (an island or a script), a click on an element with `data-analytics-event="name"` whose `data-analytics-prop-*` attributes are the props (`data-analytics-prop-seat-count` is `seat-count`), which needs `events: true` (or the `events` object) on `analytics()`, and `await track(ctx, name, props)` from `kay/analytics` in an action or an endpoint (anything with a `request`). The browser ones post to the same route as a visit (`e` and `p` beside `u`), so the checks are the visit's: 4 KB body, same host, cross-site 403, 120 a minute from one address, the `kay_analytics` yes where consent is asked, an opt-out, a `noindex` or guarded page, `exclude`, a user agent, production only.
|
|
116
|
+
- `track(ctx, ...)` takes the page from the request's URL without its query, the user agent and the address from the request (set `proxy` behind a CDN), and the consent cookie. It applies `exclude` to the path as the request names it, `base` included. It does nothing in development, with no analytics on the site or with `fathom`, `cloudflare` or `custom` (their own script counts; `kayAnalytics.track` does nothing there either), and returns once the event is queued: the provider is called in the background.
|
|
117
|
+
- A name is 1 to 120 characters with no control character: `track` throws an error for any other, the route answers 400. Props keep the first 10 entries whose key is `[\w.:-]` up to 40 characters and whose value is a string (control characters turned to spaces, cut at 300), a finite number or a boolean; nested values, `null` and the rest are dropped, and props that are no object count as none.
|
|
118
|
+
- Per provider: Plausible `name` and `props`; Umami `name` and `data`; Simple Analytics `type: 'event'`, `event` and `metadata`; GA4 an event named with every non-word character turned into `_` (prefixed `e_` unless it starts with a letter, 40 characters), the first 20 props as parameters under the same rule with a string value cut at 100 characters (Google's limit), the page ones kept; Matomo `e_c=Event`, `e_a` the name and `e_n` the props as JSON. An event carries the visit's page, referrer-less, and no title.
|
|
119
|
+
- A browser event is as forgeable as a page view: anything that is no browser can post any name to the route, and a provider caps or bills the distinct names. `events: { names: ['Signup'] }` (the object form, which `true` and the outbound and download options also take) drops with 204 any browser event not listed, kay's two built-in names always allowed and `track(ctx, ...)` never limited by it. A count that matters (a signup, a sale) belongs in server `track`, behind the action that did it.
|
|
120
|
+
- The tracker tag is `/_kay/analytics.js?v=<hash of the built script>`, served with a one-year immutable cache for that hash, so a new kay or a changed `events` never leaves a page with an old tracker. Server `track` has a rate allowance of its own, not the visit's.
|
|
121
|
+
- A link that is a file and goes to another site is a `File Download` when `downloads` is on, else an `Outbound Link: Click`.
|
|
122
|
+
- `events: true | { outbound?: boolean, downloads?: boolean | string[], names?: string[] }` on `analytics()` (a type error for `fathom`, `cloudflare` and `custom`) turns on the `data-analytics-event` clicks, and the object also counts clicks with no markup: a link to another site is `Outbound Link: Click` (with `outbound: true`) and a link to a file, or one with a `download` attribute, `File Download` (with `downloads: true` for pdf, zip, office, audio, video and archive extensions, or a list such as `['pdf']`), each with `url` the target's origin and path without query or hash. The tracker is built for the config: without `events` it is 116 B of gzip over a tracker with no event code (`kayAnalytics.track` alone), `events: true` adds about 145 B, outbound about 95 B and downloads about 150 B.
|
|
123
|
+
|
|
124
|
+
### Rules: Measure how fast pages load for real visitors
|
|
125
|
+
|
|
126
|
+
- Every page's head gets `/_kay/vitals.js`, about 700 bytes of gzip, `defer`, so it is off the critical path, and is revalidated on every load (a 304 while unchanged) as its body follows the consent gate; a site without `vitals()` loads none. It sends one `POST /_kay/vitals` (through `sendBeacon`, under the `base`) per view, when the tab is hidden: no request at load, and once per view: what a tab gathers after it was hidden and shown again is not sent. A page swap (`kay:navigate`) sends the view it replaced and starts a new one with no LCP, and a page restored from the back-forward cache starts a new view too.
|
|
127
|
+
- The body is `{ p, l, c, i }` (path, LCP in ms, CLS score, INP in ms; a metric the view lacks is left out). The server matches the path to the page's route (`/blog/:slug`), so the store never holds a row per URL.
|
|
128
|
+
- `store.vitals` keeps counts per UTC day, route, metric and log bucket (about 10 % wide), seven days back; `sqliteData(path)` holds it, so replicas sharing the file add up, and another store implements `VitalsStore` (`add`, `counts`). Without one it is this process's memory, and a production start warns.
|
|
129
|
+
- The screen is `prefix` (`/vitals` by default), a table per route of LCP, CLS and INP with their view count, rated `good` up to 2.5 s, 0.1 and 200 ms, `poor` past 4 s, 0.25 and 500 ms. It answers 403 without a `guard` (a function like `auth.guard({ require: 'admin' })`, a list of them, or `{ load }` returning one, run on the first request; `false` opens the screen); the numbers are collected either way. `vitalsReport()` from `kay/analytics` reads the same numbers in code. Under `trailingSlash` and `i18n` a route shows as the first shape it is served at, such as `/fr/about`, every locale counted together.
|
|
130
|
+
- No cookie, address, title or user agent is kept. `awaitConsent: true` waits for `kay_analytics=yes` (kay's notice writes it with `analytics({ awaitConsent })`, else your own banner sets it with `consent = 'yes'`, which works without a tracker), `awaitConsent: false` never waits; unset it follows `analytics({ awaitConsent })` when the site has it, and counts at once otherwise, with no notice. A visitor with `kay_analytics=no` is never counted, from any page. The script served carries the gate, so a visitor who has not said yes sends nothing.
|
|
131
|
+
- A report is refused when cross-site (403), over 512 bytes (413), malformed or out of range (400), or past 300 a minute from one address (429). `kay dev`, a declined visitor and a path no page serves get 204 and keep nothing.
|
|
132
|
+
- It needs a running server: `kay build --static` refuses it, as the screen cannot be guarded in an export.
|
|
133
|
+
|
|
134
|
+
### Consent, legal basis and processors per provider
|
|
135
|
+
|
|
136
|
+
Reading the device (screen, language, title) and storing on it fall under ePrivacy art. 5(3), cookie or not, so a cookieless id does not remove the need for consent by itself. The CNIL exempts audience measurement only when all hold: the purpose is anonymous statistics for the site's own account, the provider reuses the data for nothing else and tracks no one across sites, visitors are told and can object easily, and the data is not kept past 25 months. That is one regulator's position: other EU states may ask for consent. Raw addresses reach `plausible`, `umami` and `matomo` for visitor counting, so the exemption holds only if that tool drops them (self-hosted, or its DPA says so). `ga4` is never exempt. kay shows the information line and opt-out in the ungated mode, which is the notice and objection the exemption asks for, not the whole exemption.
|
|
137
|
+
|
|
138
|
+
| Provider | Basis kay assumes | Role | DPA and transfer (check the provider's current terms) |
|
|
139
|
+
| --- | --- | --- | --- |
|
|
140
|
+
| `plausible`, `umami`, `matomo` with your own `url` | CNIL exemption (ungated) or consent | the app runs it, no third party | none to sign, no transfer if the host is in the EU |
|
|
141
|
+
| Plausible Cloud, Matomo Cloud, Simple Analytics | the same | processor for the app | DPA offered by the provider, an EU region available; Simple Analytics gets no visitor address from kay |
|
|
142
|
+
| Umami Cloud | consent by default, `awaitConsent: false` to count at once | processor | DPA offered, check its hosting region for a transfer |
|
|
143
|
+
| `ga4` | consent, always | Google a processor (and for some uses a controller) | Google's data processing terms accepted in the account, US transfer under the Data Privacy Framework or SCCs |
|
|
144
|
+
| `fathom` | consent | processor (Fathom Analytics, Canada) | DPA offered, check the transfer to Canada |
|
|
145
|
+
| `cloudflare` | consent | Cloudflare a processor | Cloudflare's DPA in its customer agreement, US transfer under the Data Privacy Framework or SCCs |
|
|
146
|
+
| `custom` | consent | whoever runs the endpoint | the app's own DPA with it |
|
|
147
|
+
|
|
148
|
+
The table is kay's conservative default, not a finding that a provider cannot be exempt: Fathom and Cloudflare call themselves cookieless, and `awaitConsent: false` is the app's to answer for, kay supplying the line and the opt-out. The CNIL also caps a tracer's life at 13 months (`kay_analytics` lasts 180 days, `awaitConsent.maxAge` up to 13 months) and wants an address truncated or dropped. Terms change: check each before relying on the table.
|
|
149
|
+
|
|
150
|
+
The privacy notice names the provider, the purpose and the retention, and the app signs the DPA before counting a visit.
|
|
151
|
+
|
|
152
|
+
### Rules: Ask for analytics consent in your own UI
|
|
153
|
+
|
|
154
|
+
- A page renders with the answer in the request's cookie and an island starts with the same, so nothing flashes; the signal follows `kay:consent`, so a change made anywhere, a page swap included, reaches every island reading it.
|
|
155
|
+
- `consent` needs the `awaitConsent` option on `analytics()`; `consent = 'yes'` starts counting at once (a Fathom or Cloudflare script loads); `'no'` or `''` after a yes reloads the page when a provider's script already ran, and `''` shows kay's notice again unless `notice: false`.
|
|
156
|
+
- A page that calls `consent()` renders per visitor, so one in a shared layout is no longer served from a CDN cache or prerendered with an answer; read it in the island that needs it.
|
|
157
|
+
- Assigning `consent` is for the browser, in a handler or an effect; on the server it throws, and `consent()` only reads.
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
# Calling API routes from islands, event streams, live values and websockets
|
|
2
|
+
|
|
3
|
+
## Common tasks
|
|
4
|
+
|
|
5
|
+
### Read a route's answer in an island
|
|
6
|
+
|
|
7
|
+
`resource(module, path, options)` reads a GET route, reactively when its options are a function:
|
|
8
|
+
|
|
9
|
+
```kay
|
|
10
|
+
---
|
|
11
|
+
import { resource, signal } from 'kay'
|
|
12
|
+
import rooms from '../api/chat'
|
|
13
|
+
|
|
14
|
+
const search = signal('')
|
|
15
|
+
const list = resource(rooms, '/rooms', () => ({ query: { prefix: search() } }))
|
|
16
|
+
---
|
|
17
|
+
input(bind:value={search} aria-label="Search")
|
|
18
|
+
p {list.status()}
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
### Call a route from an event handler
|
|
22
|
+
|
|
23
|
+
`call(module, path, options)` calls any route over HTTP, and a refusal throws `ApiError`:
|
|
24
|
+
|
|
25
|
+
```kay
|
|
26
|
+
---
|
|
27
|
+
import { call, ApiError, signal } from 'kay'
|
|
28
|
+
import notes from '../api/notes'
|
|
29
|
+
|
|
30
|
+
const title = signal('')
|
|
31
|
+
---
|
|
32
|
+
input(bind:value={title} aria-label="Title")
|
|
33
|
+
button(onClick={async () => {
|
|
34
|
+
try {
|
|
35
|
+
await call(notes, '/', { method: 'post', body: { title: title() } })
|
|
36
|
+
} catch (error) {
|
|
37
|
+
if (error instanceof ApiError) console.error(error.status, error.message)
|
|
38
|
+
}
|
|
39
|
+
}}) Add
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### Stream server-sent events
|
|
43
|
+
|
|
44
|
+
`eventStream(source)` answers with one event per value an async iterable, a generator or an array gives:
|
|
45
|
+
|
|
46
|
+
```ts
|
|
47
|
+
import { s } from 'kay'
|
|
48
|
+
import { api, eventStream } from 'kay/server'
|
|
49
|
+
import { complete } from '../data'
|
|
50
|
+
|
|
51
|
+
export default api()
|
|
52
|
+
.post(
|
|
53
|
+
'/answer',
|
|
54
|
+
({ body }) => eventStream(complete(body.prompt)),
|
|
55
|
+
{ body: s.Object({ prompt: s.String() }) },
|
|
56
|
+
)
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
A library's own server streams through the same helper, `eventStream` from `kay/library`, so its stream beats and drains with the server's as an app's does. A source blocked on a quiet feed is freed by a signal: pass a function, `eventStream(signal => watch(signal))`, and its `signal` aborts when the visitor leaves, to hand to what the source waits on. An action's handler reads the same from `ctx.request.signal`.
|
|
60
|
+
|
|
61
|
+
#### Resume after a drop
|
|
62
|
+
|
|
63
|
+
`eventStream(source, { id })` sends `id(value)` with each event. `stream()` keeps the id of the last event it took and sends it as `Last-Event-ID` when it reconnects, after a drop or a 502, 503 or 504 while the server restarts (any other refusal, a 401 or 404, ends the stream as failed), so the route continues after it:
|
|
64
|
+
|
|
65
|
+
```ts
|
|
66
|
+
import { api, eventStream, lastEventId } from 'kay/server'
|
|
67
|
+
|
|
68
|
+
const DIGITS = /^\d{1,15}$/
|
|
69
|
+
|
|
70
|
+
export default api().get('/feed', ({ request }) => {
|
|
71
|
+
const sent = lastEventId(request)
|
|
72
|
+
const after = sent !== undefined && DIGITS.test(sent) ? Number(sent) : 0
|
|
73
|
+
|
|
74
|
+
return eventStream(signal => feedSince(after, signal), { id: item => item.seq })
|
|
75
|
+
})
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
- `lastEventId(request)` gives the header only when it is printable ASCII with no space at either end and at most 1 KB, else `undefined`. It is still the browser's text: parse it strictly, as above, and start from the beginning when it is missing or names nothing the route keeps.
|
|
79
|
+
- An id that is not printable ASCII, has a space at either end or exceeds 1 KB fails the stream, as the browser would not send it back.
|
|
80
|
+
- A route with no `id` sends none, and `stream()` reconnects as before. A new `start()` of a `start: false` stream forgets the id.
|
|
81
|
+
- Ids do not survive a page swap or a reload: a new mount starts with no id, so the route sends from the beginning.
|
|
82
|
+
- To catch up without ids, `feed.onOpen(({ reconnected }) => reconnected && refetch())` runs on every open after the first.
|
|
83
|
+
|
|
84
|
+
### Stream an action's answer
|
|
85
|
+
|
|
86
|
+
An action whose handler is an `async function*` streams its answer to the island calling it: [Stream an answer to an island](actions-from-islands.md#stream-an-answer-to-an-island).
|
|
87
|
+
|
|
88
|
+
## Reference
|
|
89
|
+
|
|
90
|
+
- Live values, following cached values and presence are in [Live values, cached values and presence](live-values.md).
|
|
91
|
+
|
|
92
|
+
### Calling modules from an island
|
|
93
|
+
|
|
94
|
+
An island imports a module for its routes:
|
|
95
|
+
|
|
96
|
+
```kay
|
|
97
|
+
---
|
|
98
|
+
import { socket, stream, signal } from 'kay'
|
|
99
|
+
import chat from '../api/chat'
|
|
100
|
+
|
|
101
|
+
const { room } = props<{ room: string }>()
|
|
102
|
+
const messages = socket(chat, '/:room', { params: { room } })
|
|
103
|
+
const text = signal('')
|
|
104
|
+
---
|
|
105
|
+
p {messages.status()}
|
|
106
|
+
p {messages.last()?.text}
|
|
107
|
+
input(bind:value={text})
|
|
108
|
+
button(onClick={() => messages.send({ text: text() })}) Send
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
- `socket(module, path, options)` opens one of the module's websocket routes, the path written as the module writes it, `params` and `query` filling it in, all typed from the route.
|
|
112
|
+
- `send` takes the route's `body`, `last()` reads the last message reactively, typed from its `response`, `onData(({ value }) => ...)` gets each one and returns what stops it, and `status()` is `connecting`, `open`, `failed` or `closed`: a server closing with a code from 4000 to 4999 (`ws.close(4403, 'Not yours')`) fails it, `error()` an `ApiError` with the code minus 4000 as `status` (403; 4000 gives 0, 4001 to 4099 give a status below 100, so refuse with 4400 and up) and the reason as `message`, and it does not reconnect.
|
|
113
|
+
- Messages travel as Elysia sends them, as JSON.
|
|
114
|
+
- A route sending through `rooms()` takes `response: chats.response` to type `last()` and `onData()` as the rooms' `Message` ([Rooms](rooms.md)); without a `response` they are `unknown`, which `kay check` reports on a route with a `body` (`untyped-socket`).
|
|
115
|
+
- What is sent before the connection opens goes once it does, the last 50 messages kept while it is down; after `close()` nothing is.
|
|
116
|
+
- A connection that drops reconnects, waiting longer each time up to 30 seconds, less up to half of that at random so the clients a restart dropped come back apart, and not while the tab is hidden or offline, unless the server closed it with code 1000; a visible tab the browser calls offline still tries each minute, as `navigator.onLine` can be wrong, and the clients a network coming back wakes together reconnect up to half a second apart.
|
|
117
|
+
- `close()` closes it for good.
|
|
118
|
+
- `onOpen(listener)` is called each time the connection opens, a reconnect included, before what was queued goes; it is told `{ reconnected }`, true after the first open, so `onOpen(({ reconnected }) => reconnected && refetch())` catches up on what the drop lost. `stream()` has the same `onOpen`.
|
|
119
|
+
- A client joining rooms by message joins them there, `messages.onOpen(() => messages.send({ type: 'join', room }))`, so it is back in them after a drop.
|
|
120
|
+
- Hooks: a socket, a stream (a route or an iterable) and a streaming action's answer take `onOpen`, `onData`, `onError` and `onClose` as methods, and `socket(module, path, options)` and `stream(...)` take the same four as options (`stream(source, hooks)` for an iterable): `socket(chat, '/:room', { params, onData: ({ value }) => add(value), onError: ({ error }) => toast.error(error.message) })`. What each means is in [Island sources](island-sources.md#hooks). `onClose({ status: 'closed' })` also runs when the component ends and closes the source, even one that never started; the answer of a streaming action is open before a listener can attach, so its `onOpen` runs only after a `retry()`.
|
|
121
|
+
- `stream(module, path, options)` reads one of its routes answering with `eventStream()`, with `last()`, `onData(({ value }) => ...)` (which returns what stops it) and `status()` the same way. A stream and the stream a streaming action answers with are both a `Connection` from `kay`, and `stream()` gives a `Stream`, a `Connection` with `start()`.
|
|
122
|
+
- `await feed.ended()` resolves with the last value once the stream ran to its end (undefined for none) and rejects with the `ApiError` it failed with, or an `AbortError` when `close()` came first.
|
|
123
|
+
- Its `status()` is `done` once the stream ran to its end and `failed` when a guard or the route refused it or its source threw, `error()` then an `ApiError` with the refusal's `status`, `message` and `data`.
|
|
124
|
+
- Every source an island reads, `resource`, `stream`, `socket`, `track()` and `call.track` here, shares `status()`, `pending()`, `error()` and `retry()`, and the same hooks; [Island sources](island-sources.md) describes that shape once, with each source's statuses and hooks.
|
|
125
|
+
- `{ method: 'post', body }` reads a route taking a body, such as an AI answer.
|
|
126
|
+
- A GET stream that drops reconnects; any other ends as failed.
|
|
127
|
+
- `stream()` sends `Last-Event-ID` when it reconnects to a route whose `eventStream(source, { id })` gave ids, and has `onOpen(listener)` as `socket()` does ([resume after a drop](#resume-after-a-drop)); it takes the hooks of a socket as options too.
|
|
128
|
+
- `stream(module, path, { start: false })` stays `idle` until a handler calls `start(options)`, typed by the route; every stream has `start()`, which a stream that starts by itself ignores unless it is given options.
|
|
129
|
+
- Each start opens a run with those params, query and body, which may hold a `File` or be a `FormData`, closing the one going and forgetting its `last()`.
|
|
130
|
+
- `close()` aborts the request, which stops the route's source; a later `start()` opens it again.
|
|
131
|
+
- `resource(module, path, options)` from `kay` reads one of its GET routes answering a value, typed from the route's `response` as JSON leaves it, a Date as its ISO text.
|
|
132
|
+
- `onData({ value })` and `onError({ error })` are options of a resource and methods of it: `onData` runs each time the route answers, a quiet reload and `mutate()` included, not for `initial` or the value the server rendered, nor when a changed key joins a value another resource already holds, and `onError` each time a request fails, not for a quiet reload that keeps the value it has; a hook that throws is logged.
|
|
133
|
+
- `value()` is the last answer, kept while the route is asked again, `status()` is `loading`, `ready` or `failed`, `error()` is the `ApiError` a route refused with, status 0 when no answer came, `refresh()` asks again even when ready, `retry()` only after a failure, and `pending()` also reads a quiet reload that keeps `ready`.
|
|
134
|
+
- Options given as a function, `() => ({ query: { prefix: search() } })`, are read reactively: a signal they read changing asks the route again, and an answer a newer request overtook is dropped.
|
|
135
|
+
- The server renders the island with the route's answer: it asks the route in process as the visitor (their cookies and headers, so the route's guards run), and the island is `ready` in the HTML and hydrates `ready` without a request. A route that refuses, throws or takes over 5 seconds leaves the island `loading` for the browser to ask, with nothing of the refusal in the page. A page that reads a cookie or an `Authorization` header with a `resource()` is not shared by a cache. A route answering `cache-control: private`/`no-store` or a `set-cookie`, or an answer over 64 KB as JSON (`SEED_LIMIT`), is not seeded and stays `loading`. `seed: false` keeps the server from asking a route at all (`loading`, the browser asks), for one whose read has an effect of its own, such as admitting an editor to a room; every resource of that route or key on the page needs it, and it applies to routes only, read from the first options. A prerendered page and a server island render `loading` as before (give a server island's resources their own `key`); an `await` block reads the page's seeds. Finding the routes takes a discarded first render, so an `await` expression runs once per render (three at most) on a page with a `resource()`.
|
|
136
|
+
- `resource()` reading one route and arguments share one request and one value; `key: 'rooms'` names another, so routes with the same key share. `initial: value` is a value the app already has, shown `ready` on the server and in the browser with no request until `refresh()` (a `load` function runs once, quietly, to follow its signals). `revalidate: 'focus' | 'reconnect' | '30s'` (or an array) asks again quietly, the value and `ready` kept, and stops with the component.
|
|
137
|
+
- `list.mutate(value)` (or `mutate(current => next)`) sets the value for every resource sharing the key and asks the route again to settle it, dropping a request still in flight so an older answer never overwrites it; `mutate(value, { refresh: false })` keeps the value as set.
|
|
138
|
+
- `resource(load)` reads anything else the same way, such as a WebSocket call or a `fetch` to another server: `load(signal)` returns a value or a promise, the signals it reads before its first await are tracked so it runs again when one changes, `signal` aborts when a newer run supersedes it or the component is gone, and a throw is `error()` with status 0 unless it is an `ApiError`.
|
|
139
|
+
- `stream(source)` reads an async iterable, `source(signal)` returning it, with `last()`, `onData()`, `status()` and `close()`: `done` once it ends, `failed` when it throws, and it opens once the island is in the page, and `source` stops on its `signal`.
|
|
140
|
+
- `call(module, path, options)` from `kay` calls any of its routes over HTTP from an event handler, or any code running in the browser, a module several islands share included: `await call(notes, '/', { method: 'post', body: { title } })`.
|
|
141
|
+
- `method` is GET unless named, and named where the path answers no GET.
|
|
142
|
+
- `params`, `query` and `body` are typed from the route, and the answer as `resource()` reads it, a number or a boolean arriving as the text Elysia sends, `null` as `null` and nothing (`undefined`, a 204) as `''`, so `run !== null` is a check the type allows.
|
|
143
|
+
- A param is encoded as one path segment, each segment of a `*` too, and an empty param or a param or a `*` segment that is `.` or `..` is refused with a `TypeError` (thrown by `call()`, by `stream()` and `socket()` at the call or at `start()`, and failing the request of `resource()`), as it would reach the collection or the parent route. A `*` may be empty. Pass a `*` value decoded.
|
|
144
|
+
- A file or a `Blob` the route answers arrives as a `Blob`, or as text when its type is text, and a `Response` it builds is typed `unknown`, read as JSON, text or a `Blob` by its content type.
|
|
145
|
+
- A refusal throws `ApiError` from `kay` with `status`, `message`, `errors` and `data`: `data` is the answer, its text when its JSON does not parse, and `message` reads, in this order, `errors['']`, the field messages joined, `data.message`, the text the route answered, its status text, `HTTP 503` when it says nothing. `errors` is the message per field a refused route answers in `{ errors, status }`, else the message under `''`. Status 0 (no answer came or it was cut off) has the message `The server could not be reached` and the browser's own error as `cause`, so `error.message` is always safe to show. `answer` is the old name of `data` (and, on an `ActionError`, of `body`). `ErrorShape<Data>` from `kay` is these four fields, `{ status, message, errors, data }`, as every failure reads them: the `ApiError` itself, a `track()` result that is not ok, a `FormFailure` and a `LocalIssue` all satisfy it.
|
|
146
|
+
- `const save = call.track(notes, '/')` is a handle for one route, as an action's `track()` is for an action: `await save({ method: 'post', body })` resolves `{ ok: true, data }` or, for any refusal, `{ ok: false, status, message, errors, data, error }` (`error` repeats the four) with no `try`, and `save.pending()`, `save.status()` (`idle` before the first call), `save.error()`, `save.retry()` and `save.settled()` read only its own calls. `data` is the answer the route refused with and `errors` a message per field, read from the route's `{ errors }` answer (`errors.title`), else the refusal's message under `''`; a call with no answer (status 0) or aborted still throws. `call.track(notes, '/', { onSuccess, onError })` and `save.onSuccess(fn)` / `save.onError(fn)` take the callbacks of an action's `track()`, with `input` the options the call was given ([the action form](actions-from-islands.md)).
|
|
147
|
+
- An `ApiError`'s `message` is always the text to show, an `ActionError` included, so write `error = e instanceof ApiError ? e.message : 'Sync failed.'`.
|
|
148
|
+
- A frequent write that should not refresh the page can be an action called with `{ refresh: false }` rather than a route, see [Calling from an island](actions-from-islands.md#calling-from-an-island).
|
|
149
|
+
- `signal` aborts the call, which rejects with the signal's reason, while the answer is read too.
|
|
150
|
+
- A body holding a `File` or a `Blob`, or a `FormData`, goes as a multipart form, its other fields as text, a Date as its ISO text, an object as JSON and null left out, as in a `query`.
|
|
151
|
+
- `progress: sent => ...` gets how much of it went, from 0 to 1.
|
|
152
|
+
- `keepalive: true` lets a call made from `pagehide` or `beforeunload` outlive the page, as on an action ([the limits](actions-from-islands.md)): `call(notes, '/', { method: 'post', body, keepalive: true })`. A JSON body over the browser's 64 KB cap (shared by the keepalive calls in flight), and a body with files, go as a plain call instead of failing.
|
|
153
|
+
- `socket` and `stream` open once the island is in the page, never on the server, and a `resource` asks the browser once it has no server value; all close with the component that opened them.
|
|
154
|
+
- The browser build gives the island the module's mount and none of its code, so its other exports never reach the browser.
|
|
155
|
+
- An island importing any other file under `src/api/`, such as a `_schemas.ts`, fails the build: code an island shares with a module lives outside it.
|
|
156
|
+
- A refused upgrade looks like a dropped connection to the browser, so a socket a guard refuses keeps retrying, `connecting`, every 30 seconds at most.
|
|
157
|
+
|
|
158
|
+
### Refused input
|
|
159
|
+
|
|
160
|
+
- A route whose `body`, `query`, `params`, `headers` or `cookie` refuses a request answers 422 `{ errors, status }` as an action does: a message per field, the schema's own `error` else the `kay.invalid.*` text, in the request's locale, unlogged. A Standard Schema validator names the field by the first segment of its path and speaks with its own message; a file of the wrong type answers `kay.action.invalidFile`. The OpenAPI document lists that 422.
|
|
161
|
+
- A module's own `onError` that answers it comes first.
|
|
162
|
+
|
|
163
|
+
### Event streams
|
|
164
|
+
|
|
165
|
+
- `eventStream(source)` answers with server-sent events, one per value an async iterable, a generator or an array gives, crossing as island props do, Dates, Maps and Sets included.
|
|
166
|
+
- The source is read once the browser reads the response and stopped when it goes away.
|
|
167
|
+
- A source that throws ends the stream as failed, the error logged and handed to `onError`.
|
|
168
|
+
- A comment line every 5 seconds keeps a quiet stream open past Bun's `idleTimeout` and a proxy's.
|