@kayjs/kay 0.0.0-stage → 1.104.1
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 +314 -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
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
# API routes
|
|
2
|
+
|
|
3
|
+
## Common tasks
|
|
4
|
+
|
|
5
|
+
### Add a JSON endpoint
|
|
6
|
+
|
|
7
|
+
A `.ts` module under `src/api/` exporting an `api()` instance by default is mounted at `/api` plus its path, so `src/api/notes.ts` serves `/api/notes`:
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
import { s } from 'kay'
|
|
11
|
+
import { api } from 'kay/server'
|
|
12
|
+
import { listNotes, addNote } from '../data'
|
|
13
|
+
|
|
14
|
+
export default api()
|
|
15
|
+
.get('/', () => listNotes())
|
|
16
|
+
.post(
|
|
17
|
+
'/',
|
|
18
|
+
({ body }) => addNote(body.title),
|
|
19
|
+
{ body: s.Object({ title: s.String() }) },
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### Read the signed-in user in a route
|
|
24
|
+
|
|
25
|
+
`api()` handlers read the app's locals, so a route destructures `user` as a page does:
|
|
26
|
+
|
|
27
|
+
```ts
|
|
28
|
+
import { api } from 'kay/server'
|
|
29
|
+
|
|
30
|
+
export default api()
|
|
31
|
+
.get('/me', ({ user }) => ({ name: user?.name ?? 'guest' }))
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### Open a public webhook under a guarded directory
|
|
35
|
+
|
|
36
|
+
`api({ guards: false })` runs none of the `_guard.ts` files above the module:
|
|
37
|
+
|
|
38
|
+
```ts
|
|
39
|
+
import { api } from 'kay/server'
|
|
40
|
+
import { record } from '../data'
|
|
41
|
+
|
|
42
|
+
export default api({ guards: false })
|
|
43
|
+
.post('/', ({ body }) => record(body))
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Guard a route with HTTP Basic
|
|
47
|
+
|
|
48
|
+
A device that only speaks Basic auth, a tracker say, posts to a directory whose `_guard.ts` is `basicAuth`:
|
|
49
|
+
|
|
50
|
+
```ts
|
|
51
|
+
// src/api/track/_guard.ts
|
|
52
|
+
import { basicAuth } from 'kay/server'
|
|
53
|
+
|
|
54
|
+
export default basicAuth({ user: process.env.TRACKER_USER, password: process.env.TRACKER_PASSWORD, realm: 'tracker' })
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
It answers 401 with `WWW-Authenticate: Basic realm="tracker", charset="UTF-8"` to a request without the right credentials: [Guards](server.md#basic-auth).
|
|
58
|
+
|
|
59
|
+
### Let another site's pages call a module
|
|
60
|
+
|
|
61
|
+
`cors` names the origins, `https://*.example.org` standing for any subdomain:
|
|
62
|
+
|
|
63
|
+
```ts
|
|
64
|
+
import { api } from 'kay/server'
|
|
65
|
+
import { listRooms } from '../data'
|
|
66
|
+
|
|
67
|
+
export default api({ cors: { origins: ['https://app.example.com', 'https://*.example.org'] } })
|
|
68
|
+
.get('/rooms', () => listRooms())
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### Document the API as OpenAPI
|
|
72
|
+
|
|
73
|
+
`openapi: true` in `kay.config.ts` serves the document at `/api/openapi.json`, and `reference: true` adds an HTML page at `/api/reference`:
|
|
74
|
+
|
|
75
|
+
```ts
|
|
76
|
+
import { defineConfig } from 'kay/server'
|
|
77
|
+
|
|
78
|
+
export default defineConfig({
|
|
79
|
+
openapi: { title: 'Notes API', version: '1.0.0', reference: true },
|
|
80
|
+
})
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
### Let an agent call the app
|
|
84
|
+
|
|
85
|
+
`mcp: true` in `kay.config.ts` serves an MCP endpoint at `/mcp`, a tool per action and per API route that sets `tool`:
|
|
86
|
+
|
|
87
|
+
```ts
|
|
88
|
+
// kay.config.ts
|
|
89
|
+
export default defineConfig({ mcp: true })
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
```kay
|
|
93
|
+
--- server
|
|
94
|
+
import { s, action } from 'kay'
|
|
95
|
+
|
|
96
|
+
export const addNote = action(
|
|
97
|
+
s.Object({ title: s.String({ minLength: 3, maxLength: 80 }) }),
|
|
98
|
+
async ({ title }) => ({ title }),
|
|
99
|
+
{ tool: 'Create a note' },
|
|
100
|
+
)
|
|
101
|
+
---
|
|
102
|
+
h1 Notes
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
A route opts in the same way, in its `detail`:
|
|
106
|
+
|
|
107
|
+
```ts
|
|
108
|
+
export default api()
|
|
109
|
+
.get('/:id', ({ params }) => find(params.id), { detail: { tool: 'Read a note by its id' } })
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
Point an MCP client at `https://example.com/mcp`. `addNote` is the tool `add_note`; a route is named by its `operationId`, `get_notes_id` for `GET /api/notes/{id}`.
|
|
113
|
+
|
|
114
|
+
## Reference
|
|
115
|
+
|
|
116
|
+
### API modules
|
|
117
|
+
|
|
118
|
+
Each `.ts` module under `src/api/`, the `dirs.api` option of `kay.config.ts` naming another directory, exports a `KayPlugin` by default (an Elysia instance in kay 1.x, so `api()` or `new Elysia()` both do), which `pages()` mounts at `/api` plus its path there, with nothing to register: `src/api/chat.ts` serves its routes under `/api/chat`, `src/api/index.ts` under `/api`.
|
|
119
|
+
|
|
120
|
+
Files and directories starting with `_`, and `.test.ts` files, are left out.
|
|
121
|
+
|
|
122
|
+
`serve: { apiPrefix: '/v1' }` in `kay.config.ts` mounts every module, the OpenAPI document and the reference page under `/v1` instead of `/api` (an absolute path of plain segments, no trailing slash, outside `/_kay`; `mcp.path` and the `openapi` paths keep their own), and islands, the service worker's network list, the prefetch rules and the libraries follow it. `apiUrl(module, path, options)` from `kay` gives where a route is served, its path one of the module's routes (completed in the editor) and its params typed as `route()` types a page's, a number filling one (`apiUrl(items, '/:id', { params: { id: 7 } })`), under `base` in the browser (on the server the module must be mounted, so a page using it renders per request, never prerendered), for code that needs a URL rather than a call (a handler passes its `request` instead of the module, `apiUrl(request, '/image')`, to name a route of the module it runs in, which a reference inside its own chain cannot). An unknown path (one no route answers at, a segment above deeper routes included) or a missing param is a type error. A script importing no module reads the `kay-api` meta every page carries once `serve.apiPrefix` moves it.
|
|
123
|
+
|
|
124
|
+
```ts
|
|
125
|
+
import { s } from 'kay'
|
|
126
|
+
import { api, eventStream } from 'kay/server'
|
|
127
|
+
import { complete, listRooms } from '../data'
|
|
128
|
+
|
|
129
|
+
export default api()
|
|
130
|
+
.get('/rooms', () => listRooms())
|
|
131
|
+
.ws('/:room', {
|
|
132
|
+
body: s.Object({ text: s.String() }),
|
|
133
|
+
response: s.Object({ from: s.String(), text: s.String() }),
|
|
134
|
+
message(ws, { text }) {
|
|
135
|
+
ws.send({ from: ws.data.user?.name ?? 'guest', text })
|
|
136
|
+
},
|
|
137
|
+
})
|
|
138
|
+
.post(
|
|
139
|
+
'/answer',
|
|
140
|
+
({ body }) => eventStream(complete(body.prompt)),
|
|
141
|
+
{ body: s.Object({ prompt: s.String() }) },
|
|
142
|
+
)
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
- A handler, guard or hook that throws is logged and handed to `onError`, answering 500 with `Internal Server Error` in production, its message in development; a module's own `onError` answering it comes first.
|
|
146
|
+
- A response that fails its route's `response` schema is the route's bug, not the caller's: it answers 500 (`Internal Server Error` in production), is logged and handed to `onError`, even when the module's own `onError` answers it. Refused input stays 422, as [`{ errors, status }`](api-from-islands.md#refused-input), and a thrown `status()` keeps Elysia's answer, unlogged.
|
|
147
|
+
- A route answering a plain object or array holding a bigint, as a database's bigint ids are, gives JSON with each written as its digits, `{"id":"9007199254740993"}`, where `JSON.stringify` would throw.
|
|
148
|
+
- `resource()` types such a field as a `string`.
|
|
149
|
+
- A string in a route's `body` with no `maxLength`, `enum`, `const` or date format is refused past 10,000 characters, as an action's is (see [actions](actions.md)); declare a `maxLength` on a field that takes more. A model registered by name, another library's validator and a `.ws()` route's messages are left as written.
|
|
150
|
+
- A route answering `null` gives the JSON `null` with `content-type: application/json`, which `response.json()` reads, and `undefined` an empty body.
|
|
151
|
+
- A route answers a plain object or array as JSON, and a string, `Date`, `Response`, `Blob`, bytes or stream as Elysia does.
|
|
152
|
+
- A class instance without its own `toString`, or a `Map`, such as an ORM row returned as is, answers 500 and is logged with the route and its class, as a throw is, where Elysia would send `[object Object]`.
|
|
153
|
+
- A class instance without its own `toString`, or a `Map`, passed to `status()` answers 500 the same way.
|
|
154
|
+
- On an `api()` chain, a `.ws()` route's refused `body` message is dropped, not answered (see [API from islands](live-values.md#chat-over-a-websocket)).
|
|
155
|
+
- A `.ws()` route takes 1 MB a message and 100 messages a second from one socket; a socket over either is closed, with 1009 for a message too big and 1008 for too many. `detail: { messages: { maxSize: '4mb', rateLimit: { max: 30, window: '10s' } } }` sets the route's own, counted per socket in memory. Bun is given the largest `maxSize` of the app's routes as its frame cap (`maxPayloadLength`) unless the app set one, so a bigger frame is dropped before it is buffered.
|
|
156
|
+
- One client holds at most 20 open sockets per `.ws()` route, counted by its address (the forwarded one behind a trusted `proxy`) in memory; one past it answers 429. A socket with no known address, as on a unix socket, is not counted. `detail: { messages: { connections: 5 } }` changes it, `false` removes it.
|
|
157
|
+
- `api()` is a `new Elysia()` whose handlers read the app's locals, typed as `ctx.locals` ([Locals](server.md#locals)): `({ user })`, `ws.data.user`, `guard`, `once` ([Guards](guards.md)).
|
|
158
|
+
- A plain `new Elysia()` is mounted the same way.
|
|
159
|
+
- A handler, and the `onError` of its module or route, runs in the request's locale as the guards do, so `t()`, `wording()` and `locale()` read it: the locale of the page the call came from by its `Referer`, else the browser's `Accept-Language`, the site's one language without `i18n`. An `eventStream` source is read in it too; your own `Response` stream and a websocket's `open` and `message` are not.
|
|
160
|
+
- A `_guard.ts` in `src/api/` or below runs before every route of the modules in its directory and below, outermost first, a websocket upgrade included, as it does for pages and actions.
|
|
161
|
+
- A body, query or params the route's schema refuses, or a file of the wrong type, meets the guards first, as an action's input does ([Guards](guards.md)): a caller they refuse gets their answer, never the validation error.
|
|
162
|
+
- A guard's redirect or denial answers the request; the cookies and headers it sets go out with the route's response.
|
|
163
|
+
- A route serving, by its method or `all`, the path of a page, a public file, an endpoint, a redirect or a feed stops the server.
|
|
164
|
+
- `kay check` leaves that to the boot, which `kay build` runs, since listing the routes takes running the modules.
|
|
165
|
+
- Cookies get the `security.cookies` defaults ([Sessions](server.md#sessions)).
|
|
166
|
+
- `api({ guards: false })` runs none of the guards above the module, as a public webhook under a guarded directory needs.
|
|
167
|
+
- On a site that guards some route, a module no guard covers answers 403 unless it sets `guards: false` ([Guards](guards.md)).
|
|
168
|
+
- A library's API modules, laid over `src/api` under a prefix by its extension, serve as if they were the app's, behind its guards, an app module at the same path replacing one (see [Extensions](component-libraries.md#extensions)).
|
|
169
|
+
- A websocket upgrade, or a request other than GET, HEAD and OPTIONS, another site's page sends, as its `Origin` or `Sec-Fetch-Site` header shows, is refused with 403 once the guards let it through, since a browser lets any page open a websocket or post a form to any host with the user's cookies.
|
|
170
|
+
- A request carrying neither header, such as a webhook, goes through.
|
|
171
|
+
- `kay check` checks links and redirects against the modules' GET routes, `/api/chat/rooms` here.
|
|
172
|
+
- `kay build --compile` embeds the modules, and `kay build --static` refuses them: a file such as `src/routes/llms.txt.ts` exporting `GET` serves a path a static export writes (see [Endpoint files](routing-endpoints-and-base.md#endpoint-files)).
|
|
173
|
+
|
|
174
|
+
### CORS
|
|
175
|
+
|
|
176
|
+
- `api({ cors: { origins: ['https://app.example.com', 'https://*.example.org'] } })` lets the pages of those origins call the module's routes from the browser, `https://*.example.org` standing for any of its subdomains, and `origins: '*'` for any site.
|
|
177
|
+
- A preflight `OPTIONS` is answered before the guards run, with the module's methods, the headers asked for, or `headers: [...]` alone, and `Access-Control-Max-Age`, `maxAge`, an hour by default.
|
|
178
|
+
- An origin not listed gets no grant.
|
|
179
|
+
- Its requests, websocket upgrades included, go through the guards and are not refused, their answers naming the origin, with `expose: [...]` the response headers the page may read.
|
|
180
|
+
- `credentials: true` takes the user's cookies as well; without it a request from another site carrying cookies is refused.
|
|
181
|
+
- `credentials: true` with `origins: '*'` is a type error `kay check` reports.
|
|
182
|
+
- Its answers carry the grant, a body its schema refuses, one that does not parse, or one over its `maxSize` included, so the calling page reads why.
|
|
183
|
+
- The answers of a module listing origins carry `Vary: Origin`, added to any Vary the route sets.
|
|
184
|
+
- An origin is a scheme and a host, a port if any, `capacitor://localhost` for an app's web view included.
|
|
185
|
+
- The module's rule alone grants: `Access-Control-Allow-Origin`, `-Allow-Credentials` and `-Expose-Headers` a route sets itself, on `set.headers` or on a `Response` it returns, a `fetch()` result passed on included, are replaced by the rule's, or dropped for an origin it does not list. A route needing another rule goes in a module of its own.
|
|
186
|
+
- A module without `cors` answers no preflight and keeps refusing.
|
|
187
|
+
- `cors` in kay.config.ts takes the same options and is the rule of every API module that sets none, a library's or extension's included, and of no endpoint file, which sets `page.cors`; `api({ cors: false })` keeps a module to its own site.
|
|
188
|
+
|
|
189
|
+
### Limits
|
|
190
|
+
|
|
191
|
+
- `api({ rateLimit: { max: 60, window: '1m' } })` lets one client send `max` requests to the module's routes every `window`, then answers 429 with `Retry-After` and `Too many requests; try again in N s`.
|
|
192
|
+
- A route sets its own in its `detail`, `.post('/send', send, { detail: { rateLimit: { max: 5, window: '1m' }, maxSize: '4kb' } })`: counted apart from the module's, which also applies, one limit for every value of a param, a wildcard and an optional segment, and for a route answering every method, `all`, whichever one.
|
|
193
|
+
- `rateLimit` takes a list, `key`, `store`, `window` and `onLimit` as an action's does (see [Rate limits](rate-limits.md)). The object `rateLimit(name, ...)` returns goes there too (`api({ rateLimit: visits })`) and counts in the same counter as the guards and actions using it; `visits.enforce(ctx)` in the module's guard answers its 429 in one call.
|
|
194
|
+
- It counts after the module's guards, so a caller they refuse costs no allowance and `key: ctx => ctx.locals.user?.id` reads what they and `derive` set; `ctx` also holds `request`, `locale`, `cookies` and `client`.
|
|
195
|
+
- A refusal carries the module's `cors` grant, so the calling page reads it.
|
|
196
|
+
- `maxSize` in a route's `detail` is the most it may be sent, a size or bytes, in place of the module's and the app's; a bigger request answers 413 before it is read.
|
|
197
|
+
- A body limit that is not a whole number of bytes from 1, or a `max` that is not a whole number from 1, stops the server.
|
|
198
|
+
|
|
199
|
+
### OpenAPI
|
|
200
|
+
|
|
201
|
+
- `openapi: true` in kay.config.ts serves an OpenAPI 3.1 document of every module's routes at `/api/openapi.json`, read from the schemas they declare.
|
|
202
|
+
- Path params are written in braces; `params`, `query` and `headers` are parameters; `body` is JSON, or multipart when it holds an `s.File()`; `response` is one schema or one per status.
|
|
203
|
+
- A route's `detail` gives its `summary`, `description`, `tags`, the module's path by default, and `deprecated`.
|
|
204
|
+
- `detail: { hide: true }` leaves a route out; websockets are left out.
|
|
205
|
+
- A route behind guards is marked `x-kay-guarded: true`, with no guard file named. A document no `_guard.ts` of the API directory protects leaves the guarded routes out, as it is open to anyone; behind a guard it lists all.
|
|
206
|
+
- Behind a guard, or after reading the session, an answer goes out `Cache-Control: private, no-cache` with `Vary: cookie`, a refusal included, unless the route sets its own `cache-control`.
|
|
207
|
+
- The document is served behind the guards every module runs, the API directory's own `_guard.ts`, a module setting `guards: false` aside, which get the context a module's guard gets, the app's session in `ctx.locals` included, so a private API keeps its spec private.
|
|
208
|
+
- `{ title, version }` set its `info`, the site's `seo.name` (the default locale's when it takes one text per locale, as the document is one for every locale) and `1.0.0` by default.
|
|
209
|
+
- `{ reference: true }` adds `/api/reference`, a plain HTML page listing each route with what it takes and answers, behind the same guards.
|
|
210
|
+
- `{ dev: true }` keeps both to `kay dev`.
|
|
211
|
+
- The executable serves them as the server does.
|
|
212
|
+
- Without a `_guard.ts` of the API directory itself, the document is public, guarded modules included.
|
|
213
|
+
- Schemas are read as TypeBox writes them: a model's name or another library's validator documents nothing.
|
|
214
|
+
- An optional param lists the path with and without it, and a wildcard is `{wildcard}`.
|
|
215
|
+
- `openapi: { path: '/spec.json', referencePath: '/docs/api' }` moves the document and the reference page; a path is absolute, of plain segments, without a trailing slash and outside `/_kay`, and the two differ.
|
|
216
|
+
- A module, page or file serving the document's path, or the reference page's with the page on, stops the server.
|
|
217
|
+
- Every operation has an `operationId`: the route's `detail.operationId` as written (`users.list` stays so), else its method and path, `get_notes_id`; a clash gets `_2`. A route answering every method, `.all()`, gets its id with the method as a suffix, `echo_get`, `echo_post`.
|
|
218
|
+
- An action that sets `tool` is a `POST` operation at its URL under the tag `actions`, `x-kay-action` set, marked `x-kay-guarded` when guards cover it, as the document and the MCP tools say the same. It is called as `action()` calls are, its input encoded as kay writes it, not as a plain JSON body.
|
|
219
|
+
|
|
220
|
+
### MCP
|
|
221
|
+
|
|
222
|
+
The endpoint's settings, tools and errors are in [MCP endpoint](mcp.md).
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# Browser-only code
|
|
2
|
+
|
|
3
|
+
## Common tasks
|
|
4
|
+
|
|
5
|
+
### Render a component in the browser only
|
|
6
|
+
|
|
7
|
+
`--- client` for one that cannot render on the server, such as one wrapping a map library:
|
|
8
|
+
|
|
9
|
+
```kay
|
|
10
|
+
--- client
|
|
11
|
+
import { onMount } from 'kay'
|
|
12
|
+
import { drawMap } from './map'
|
|
13
|
+
|
|
14
|
+
const { center } = props<{ center: [number, number] }>()
|
|
15
|
+
|
|
16
|
+
onMount(() => drawMap(center))
|
|
17
|
+
---
|
|
18
|
+
.map
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Reference
|
|
22
|
+
|
|
23
|
+
### Browser-only components
|
|
24
|
+
|
|
25
|
+
- Some components cannot render on the server: a package that touches `window` as it loads, such as CodeMirror or hls.js, or code reading `localStorage` while rendering.
|
|
26
|
+
- Such a component renders in the browser only: the server sends its island as a `<slot>` holding only its fallback (empty without one), props included, and the browser clears the slot and renders the island there as soon as the page loads, instead of hydrating it.
|
|
27
|
+
- Inside another island it renders nothing on the server and is built in place as its parent hydrates.
|
|
28
|
+
- An island importing a package that throws on a browser-only global as it loads renders in the browser only, with nothing to write.
|
|
29
|
+
- Each package is imported once, in a Bun process of its own, and the answer is kept per package version in `.kay/cache`.
|
|
30
|
+
- The server never loads such a package: an island's server module carries none of its script.
|
|
31
|
+
- A component whose script fence is `--- client` always renders in the browser only, and is an island even without state.
|
|
32
|
+
- Pages, layouts and special pages render on the server, so they cannot be `--- client`.
|
|
33
|
+
- `hydrate="client"` renders one use of an island in the browser only: `Map(center={center} hydrate="client")`.
|
|
34
|
+
|
|
35
|
+
### Fallback while the browser renders
|
|
36
|
+
|
|
37
|
+
- A map or an editor that renders late shifts the layout and flashes. A fallback is the markup the server sends in the island's slot, which the browser replaces when the island renders.
|
|
38
|
+
- A use writes it as an `@fallback` block: `Map(center={center} hydrate="client")` with an `@fallback` block under it holding the skeleton (`.map-skeleton` say). It reaches only that use, and is not a prop of the component: the `fallback` prop or slot a client-only component declares itself is untouched, but an `@fallback` block under such a use is the island's fallback and is not passed on to it.
|
|
39
|
+
- A `--- client` component declares its own for every use with an `@fallback` block at the root of its template, beside the markup it renders. A use's block wins over it.
|
|
40
|
+
- A component's own fallback renders on the server without the script, so it is static markup: it reads no prop or `const` of the script (`kay check` names one it reads), and takes the place the island fills. It may use the script's imports, a `Spinner` or an icon.
|
|
41
|
+
- The fallback is for the first paint: give it the island's size, so nothing moves when the island replaces it. An island inside another one renders nothing on the server, as before.
|
|
42
|
+
|
|
43
|
+
### Browser globals on the server
|
|
44
|
+
|
|
45
|
+
- A browser-only global is one lib.dom declares and Bun lacks: `window`, `document`, `localStorage`, `sessionStorage`, `innerWidth` and the like.
|
|
46
|
+
- `fetch`, `URL`, `WebSocket`, `crypto` and `navigator` exist on the server too and are never reported.
|
|
47
|
+
- `kay check` and the editor report a browser-only global read while the component renders: at the script's top level, in a `memo` or an array callback such as `.map`, in a function of the script the render calls, or in a template value.
|
|
48
|
+
- Handlers, refs, `effect`, `onMount`, the target of `listen(window, 'keydown', ...)` and other callbacks run in the browser only and report nothing.
|
|
49
|
+
- The editor offers two fixes: wrap the statement in `effect`, offered for a statement that is a plain call or assignment, since a declaration would take its name out of reach, or turn the fence into `--- client`.
|
|
50
|
+
- `kay check --fix` and the editor's fix-all apply the `effect` wrap, with its `effect` import, alone where it is safe: a call on the global or an assignment to a member of it (`localStorage.setItem(...)`, `document.title = ...`, `document.body.classList.add(...)`), which leaves nothing for the rest of the script to read. A call of a function of the script, an assignment to a local, an `await` and a declaration are offered in the editor and left for you to decide, as later code may rely on them running with the script. The wrap moves the arguments into the effect too, so a signal read there makes it run again when it changes.
|
|
51
|
+
- `typeof window` while an island renders is reported too: it is `'undefined'` on the server, so the island would render something else in the browser than the markup it hydrates.
|
|
52
|
+
- A module of the app that a page, a layout or a component imports (not a `--- client` one) and that reads such a global as it loads is the `browser-global-at-load` lint, reported by `kay check` and the build at the read, naming the component reaching it: the server throws as it evaluates the module. Only what the server renders counts: not a component a `--- client` component alone renders, one used only with `hydrate="client"`, or an island the build demotes to the browser for a package it imports. A read inside a function, under a `typeof` check of `window` or of any browser name, in a `try` with a `catch`, or after an early `return` on one passes, as does a dynamic `import()`; a package is left to the probe above, and a name read through `globalThis` (`globalThis.window.innerWidth`) counts like the bare one. `// kay-allow browser-global-at-load` allows a deliberate read.
|
|
53
|
+
- A global reached through a package, or called from a function of a module as the page renders, is not seen by the check; a server render failing on one fails with the global, the `.kay` line reading it and the same two fixes in the error's message, in development and in production alike. The log and `onError` get that message (the `stack` keeps the original `... is not defined` text), and the visitor sees the development error page, or `Internal Server Error` in production.
|
|
54
|
+
- An island reading the clock (`Date.now()`, `new Date()`), `Math.random()`, or a `toLocale*String` or `Intl` format given no locale (no `timeZone` for dates) while it renders is the `hydration-mismatch` lint: the server and the browser compute it apart. It is a lint like any other, so a deliberate read (a copyright year, an id overwritten in `onMount`) is allowed with `// kay-allow hydration-mismatch` on or above its line, `kay-allow-file` or `lints: { 'hydration-mismatch': 'warn' }`. A coarse read such as `new Date().getFullYear()` is reported too, as the year differs between the server's time zone and the visitor's for hours around New Year.
|
|
55
|
+
|
|
56
|
+
### Server globals in the browser
|
|
57
|
+
|
|
58
|
+
- A build refuses a chunk the browser loads that reads `process` or `Bun`: such a chunk throws as it evaluates, so every island in it stays dead and only the console says so.
|
|
59
|
+
- The error names the chunk and the modules whose own source reads it, a `.kay` fence included.
|
|
60
|
+
- This catches a server-only module reaching the browser through what an island imports, directly or through its page's script fence; the fix is to keep that module out of there and pass what it holds as a prop.
|
|
61
|
+
- A read a `typeof` asks about first, as a module written for both sides does, passes: inside the `typeof`, in either branch of an `if` or a `?:` testing it, after an early `return`, or through a flag the module stored that answer in.
|
|
62
|
+
- A read in the block of a `try` with a `catch` passes too, as the `catch` takes the error a missing global throws.
|
|
63
|
+
- A read through `globalThis` is not seen, nor one in a chunk carrying a `process` polyfill of its own, which binds the name.
|
|
64
|
+
- `kay dev` and `bun test` build the same way, so they refuse it too.
|
|
65
|
+
- `kay check` reports the same refusal before any build, as `server-only-in-island` at each island's import of the module, one per island reaching it, or at the read in the island's own script: an island, or a module it reaches through relative imports, `.ts` modules with an angle-bracket cast too, that reads `process` or `Bun` as the module loads. A read inside a function is left to the build, as only the build knows whether the island calls it; `process.env.NODE_ENV` and a `typeof` guard pass.
|
|
66
|
+
- In the browser kay's `s` builds inert stand-ins, so a module an island imports may build schemas as it loads and keep a schema beside its `Static` type, with no validator in the chunk. Reading a key of a schema at module scope, `Object.keys(SHAPE.properties)` say, throws as the island loads; validation stays on the server: [Schemas](schemas.md#schemas).
|
|
67
|
+
- An island reaching a builtin a browser lacks, `bun:sqlite` or `async_hooks` through a database library say, is refused with the imports leading there, one line per island: `src/counter.kay -> src/links.ts -> src/db.ts -> bun:sqlite`, cut at the first package since the fix is never inside one. The message says an island cannot import a server module: keep the constants and types an island needs in a module importing no server code. `mountComponent` in `bun test` reports the same chain.
|
|
68
|
+
- `kay check` reports it too, as `browser-builtin-import` at each of the island's imports leading there, with the same chain, once per distinct chain. It bundles the import for the browser as the build does, so a package's `browser` condition and field count, a type-only or unused import passes, and only the builtins the build refuses do: `async_hooks`, `worker_threads` and `bun:*`, not `node:path`, `events` or `node:crypto`. A package marked `sideEffects: false` is followed too, a `.kay` component the island renders is followed through its own imports and reported at the island's import of it, and an import that fails to bundle leaves the other imports' reports intact. One island gets one report per chain. Imports of `kay` and its entries are left out. In a project that never names `process` or `Bun` it follows the islands themselves, not the static components.
|
|
69
|
+
- An island bundles all of a module it imports, so a helper beside a database the module opens as it loads brings the database along: move the helper to a module importing none of it.
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# Building and starting
|
|
2
|
+
|
|
3
|
+
## Common tasks
|
|
4
|
+
|
|
5
|
+
### Build and serve for production
|
|
6
|
+
|
|
7
|
+
`kay build` bundles the islands and stylesheets into `.kay/client`, and `kay start` serves that build as the deployed server would:
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
kay build
|
|
11
|
+
kay start --port 8080
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
### Build one executable
|
|
15
|
+
|
|
16
|
+
`--compile` bundles the server, the pages and the client build into a single file that runs from anywhere:
|
|
17
|
+
|
|
18
|
+
```sh
|
|
19
|
+
kay build --compile server
|
|
20
|
+
PORT=8080 ./server
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
A server entry that never calls `listen`, as the one `kay new` writes, and kay's own server are listened on `PORT`, 3000 by default, and on `HOST` when it is set (`HOST=127.0.0.1 ./server`), every address otherwise, by `kay dev`, `kay start`, `kay render` and the executable; an entry calling `listen` itself keeps its own port and address, and one serving the app itself through `Bun.serve` (its `fetch`, or the `PORT`) before its module ends is left alone, while a second server on a port of its own does not stop the listen, and one whose top-level code never ends is never listened; `kay dev` ignores `HOST` and listens on localhost, or what `--host` opens, unless the app names a `hostname` itself.
|
|
24
|
+
|
|
25
|
+
A project with no `src/server.ts` and no `--entry` runs kay's own server of its pages on `PORT` and `HOST`, as `kay dev`, `kay start` and `kay render` do, so an app with nothing custom on its server writes no entry: it adds one to mount a plugin, a job or an `onStop` hook.
|
|
26
|
+
|
|
27
|
+
### Export a static site
|
|
28
|
+
|
|
29
|
+
`--static` writes the whole site to a directory for a host with no server:
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
kay build --static --outdir dist
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Reference
|
|
36
|
+
|
|
37
|
+
### Build and start commands
|
|
38
|
+
|
|
39
|
+
- `kay build [dir] [-p tsconfig.json] [--no-check] [--no-cache] [--analyze] [--deny-warnings] [--format text|github|json] [--quiet]`:
|
|
40
|
+
- Bundle the islands and stylesheets for production, whatever `NODE_ENV` the shell holds and with none of the server's secrets, such as `preview.secret`, needed, minified, into `.kay/client` while checking the project as `kay check` does, `-p` naming the tsconfig as there;
|
|
41
|
+
- Once the check passed, render the pages marked `prerender`, so no page, API module or guard runs before then.
|
|
42
|
+
- With the check on, a problem it reports, check-only ones included, or a build that fails leaves the last build in `.kay/client` as it was; `--no-check` skips the check and builds in place, and refuses `-p`, which names the check's tsconfig.
|
|
43
|
+
- `--no-cache` empties `.kay/cache` first (compiled components, analyses, the check's results, image variants, remote images, share cards, favicons, compressed copies, dictionary copies, content entries, the runtime chunk), so the build recompiles and re-encodes everything and fetches remote images again; the chunks kept for open tabs (`KEPT_BUILDS`) and the sizes of the last build stay, as they are not caches but what a deploy keeps working and the report compares to.
|
|
44
|
+
- Then start the server with `NODE_ENV=production`, as `kay start` does.
|
|
45
|
+
- It records the `.kay` modules the server loads (routes, layouts, components, imported assets, `import.meta.glob` calls) compiled in `.kay/client/server-modules.json` and `.kay/client/server/`, which a server started from disk imports in place of compiling them as they load, so it boots without the compiler; a module edited since the build, or one the record lacks, is compiled when it loads, and a build moved to another directory keeps working, a library above the root included. A glob a recorded module expanded stays as the build expanded it.
|
|
46
|
+
- Each page preloads the chunks of the islands it renders. kay's runtime that the entry and at least half of the app's islands use is the one chunk a page loads first, so a page with islands loads that chunk and one per island, plus one for code several islands import. The code of a `for`, an `await`, a `try` and a spread is a runtime module of its own that only the islands using it load, whatever their share. A runtime module fewer islands use, such as the action runtime behind `ActionError` or the image variants behind `img(src={...})`, is loaded with those islands only, so a text page of an app with many islands loads about what a small app's does. An island's markup names its chunk's file (`data-chunk`), which the browser imports from beside the runtime under any `base`, so the entry holds no loader for the app's other islands and a page's scripts grow with its own islands only; `kay dev` keeps a registry in its entry instead, to swap an edited island in. A page with an island hydrating on `visible` or `idle`, or a deferred server island, also preloads the chunk of the code waiting for them, which the entry would ask for only once it ran: about one round trip less before those islands hydrate (measured at 50 and 150 ms of latency: 70 and 170 ms for an island, 50 and 150 ms for a deferred server island).
|
|
47
|
+
- In a terminal, one line on stderr redrawn in place names the step running, its time, and a bar with a count for the routes it prerenders and the images it encodes, cleared before anything else prints and on Ctrl-C; with stdout or stderr piped, under `NO_COLOR`, on a `TERM=dumb` terminal or with `--format github|json`, no such line and no control code.
|
|
48
|
+
- The build prints what that weighs, gzip then minified: the entry every page with an island loads, the navigation-only entry a production page posting forms and holding no island loads instead (built only when a component renders `form(action={...})`), then what each island adds beyond it, the heaviest first; `--analyze` also names the five modules weighing most in each, a package's files counted as one, kay's runtime file by file.
|
|
49
|
+
- `budget: { js: '20kb', css: '10kb', weight: '500kb', grade: 'C' }` in kay.config.ts (sizes in bytes or a string with `b`, `kb` or `mb`; every key optional, no default) limits what one page loads, compressed: `js` and `css` its scripts and stylesheets, `weight` the whole page as the footprint table below measures it, `grade` the worst EcoIndex grade it may have (`'A'` to `'G'`). The build warns with `over-budget` for each route over it, at the route's file; for `js` and `css` it names the three modules weighing most in its scripts (it measures them for that even without `--analyze`, which only prints them), and `weight` and `grade` judge the route's heaviest prerendered page, a route with none being skipped. The lint is a warning that `lints` can set to `deny`; `--deny-warnings` fails the build on any warning of the check or a lint (not the icon-set and codec notes); a limit that is no positive size (decimals fine, zero, negatives and exponents refused) or a grade that is no letter from A to G is reported by `kay check` and fails the build.
|
|
50
|
+
- After the islands it prints one row per route, the heaviest first (at most 25, then a count): its pattern, whether it was prerendered (and how many pages), and the gzip scripts and stylesheets it loads; for a route no page of which was prerendered the scripts are marked `~`, the entry and every island its components can reach (through helpers, dynamic imports and aliases, but not a component rendered only under an `if` on a prop (`rest.onClick`, or a prop with no default) the call does not pass; a shared chunk counted once, the entry added when a form posts to an action or a server island is deferred, and the navigation-only entry instead for a route that only posts forms, with no island, server island, `await` block or `live` cached value); a route whose pages all answered a status other than 200 counts as prerendered. A route, island or entry the last build had and this one lacks is listed under `Removed since the last build:`. It then prints the time each stage took (check, bundle, prerender, route sizes, images and cards, favicons, page hooks, compress, page footprints) and, per cache under `.kay/cache`, how many entries came from it and how many were made (`components`, `analyses`, `image variants`, `share cards`, `favicons`, `compressed copies`, `dictionary copies`, `package probes`, `runtime chunk`). Each size shows its change since the last build as `[+3.2 KB]`, `[new]` for a row it did not have, nothing when it did not change; the sizes of the last successful build of the same kind (server, in `.kay/report.json`, or `--static`, in `.kay/report-static.json`) are kept, replaced only after a build succeeded. Long paths lose their middle to fit the terminal's width, and no colour or control code is printed. `--quiet` leaves all of this out.
|
|
51
|
+
- Between the route rows and the removed ones it prints what each route's heaviest prerendered page weighs whole, the heaviest first (at most 25, then a count): weight, requests, DOM elements, EcoIndex grade and score, and grams of CO2e per view, with a line under each splitting the weight into HTML, CSS, JS, images and fonts. It reads each page's HTML as the build wrote it, hooks included, and no browser runs: the DOM is the elements of the markup (a `template` or `noscript` holds none), the requests the scripts, stylesheets, images, fonts and preloads it names, and the weight what a host serves, text gzipped (the build's own `.gz` copy) and an image or a font as the file is. Images are read for a 1280 px window at one device pixel per CSS pixel, the `srcset` and `sizes` evaluated, the AVIF variant counted when `images.avif` is on; lazy images count, a font only when preloaded or declared without `unicode-range` (so a face the page never uses still counts), and a script an island loads on interaction, a CSS background image, a video, audio, an iframe and the favicon do not; a text file the build kept no compressed copy of counts as it is. A request to another site or to a file the build did not make, such as an image made on request, counts as a request of unknown weight, said so. A route with params weighs the pages its `prerender` list made, the heaviest named; a route none of whose pages was prerendered says `not measured`. The grade is EcoIndex 5.10.0 and the carbon the Sustainable Web Design model v4 ([Eco-design](eco-design.md)); `--format json` carries them as `footprints`.
|
|
52
|
+
- Every text file it writes, prerendered pages included, gets a brotli and a gzip copy, sent to a browser whose `Accept-Encoding` takes one, with `Vary: Accept-Encoding`, and a page a `.dcz` copy against the build's dictionary (the rendered 404 page, `_kay/dictionary-<hash>.txt`) for a browser holding it, kept in `.kay/cache` by the page and the dictionary, so a rebuild compresses only the pages that changed, and none with `compressionDictionary: false`; other responses are compressed by the server in production, unless `compress` is `false` (see [Production](production.md)).
|
|
53
|
+
- It writes `.kay/client/THIRD-PARTY-LICENSES.txt`, served at `/_kay/THIRD-PARTY-LICENSES.txt` and exported with the rest: the licence files of each package whose modules, stylesheets or fonts the browser build ships, and of every `@iconify-json` set the project depends on, those in a `LICENSES` folder included, with a warning for a set whose licence asks for more than that notice, such as CC BY's credit where the icons show. An executable's `./server --licenses` adds its server's packages, the licences of the codecs the AVIF encoder compiles in, and Bun's notice: Bun is MIT, and statically links JavaScriptCore and WebCore under the LGPL-2, with the pointer to oven-sh/webkit and the steps to relink a modified copy.
|
|
54
|
+
- `kay build [dir] --compile <executable> [--entry src/server.ts] [--verify | --verify-load]`:
|
|
55
|
+
- The same, then bundles the server entry, every page, layout, special page, guard and API module, `kay.config.ts` and the client build and public files into one executable, which runs from anywhere as the production server would: `PORT=8080 ./server`.
|
|
56
|
+
- `--verify` then starts the executable on a free port, waits for its health route and runs `--health`, failing the build with the server's own output: [Check the executable starts](production.md#check-the-executable-starts). `--verify-load` instead only loads its modules, needing no database or secret, for a container build stage (not with `--verify`).
|
|
57
|
+
- It carries its code as bytecode, so it starts without parsing it.
|
|
58
|
+
- It carries the maps of its code and of the browser build too, compressed (about 1.5 MB for a small app), so a stack in its logs and an island's report to `onError` point at your `.kay` lines as under `kay start`.
|
|
59
|
+
- It reads nothing of the project from disk but a `.env` and `bunfig.toml` where it runs, as `bun` would, so a file a page reads at runtime by path, rather than importing it, is not in it; the root, routes and public directory it was built with win over the options given to `pages()`.
|
|
60
|
+
- `--compile` and `--entry` are relative to the current directory.
|
|
61
|
+
- A build removes the executable the last `--compile` wrote, and the folder the last `--static` wrote (only one holding its `.kay-static` marker), before it starts: Tailwind scans every file of the project, so a leftover output would give its stylesheets the classes it names, at the cost of reading it.
|
|
62
|
+
- The public directory cannot be named `client`.
|
|
63
|
+
- The executable carries `kay.config.ts` without its `plugins`, nor the imports and top-level declarations only they used, side effects included, so a build plugin such as Tailwind's, whose native addon loads from node_modules, never runs there;
|
|
64
|
+
- Plugins set other than as a property of the object the file exports by default, or beside a spread, stay in, with a warning.
|
|
65
|
+
- `import.meta.dir`, `dirname`, `path`, `filename`, `file` and `url` in `kay.config.ts` (read as `import.meta.dir`, `import.meta?.dir` or `import.meta['dir']`, not by destructuring `import.meta`) name the config's folder and file as the build saw them, so a config reading a file beside it as it loads (`readdirSync(join(import.meta.dir, '../llms'))`) boots; `new URL('./file', import.meta.url)` still names a file the build ships. The file read is not in the executable, so it must be at that path where the executable runs, and a module other than the config sees `/$bunfs/root`.
|
|
66
|
+
- `./server --licenses` prints the licence of every package it carries: the browser build's, and every package the project's `dependencies` install, theirs included.
|
|
67
|
+
- `kay build [dir] --static [--outdir dist]`:
|
|
68
|
+
- The same, then writes the whole site to `--outdir` for a host with no server; see [Static export](prerendering.md#static-export). It refuses `--compile` beside it (pick one), and `--outdir` without it.
|
|
69
|
+
- `kay start [dir] [--entry <file>] [--port <port>] [--host <address>] [--workers <n|auto>]`:
|
|
70
|
+
- Serve the last `kay build` as the deployed server would, with `NODE_ENV=production`: the executable `--compile` wrote when that build made one (a later build without `--compile` drops it; one older than the build warns), else the server entry, else, in a project with none, kay's own server of its pages.
|
|
71
|
+
- It refuses without a build in `.kay/client`, and warns when a file the server or its build reads changed since, naming the latest; env files are left for the server to read as Bun does under `NODE_ENV=production`, `.env.production` and `.env` both, so a value only `.env` holds reaches it, the shell's variables winning.
|
|
72
|
+
- `--entry` runs another entry, relative to the current directory; `--port` sets `PORT`, over the shell's and the env files', 3000 otherwise; `--host` sets `HOST` the same way, `--host 127.0.0.1` for a server behind a proxy on this machine.
|
|
73
|
+
- Ctrl-C, `SIGTERM` and `SIGHUP` reach the server once, sent to the group or to `kay start` alone, which waits for it to drain, a second Ctrl-C stopping it at once; `SIGQUIT` is passed on and ends it at once (131).
|
|
74
|
+
- The server runs in a process group of its own: Ctrl-Z suspends `kay start` alone, and once `kay start` is gone, as after a `SIGKILL` to the group, a kay server notices within a second and drains as on `SIGTERM`, or stops once booted when it was gone already;
|
|
75
|
+
- It exits with the server's code, 0 when the server ended on a stop signal it passed on, 128 plus the signal's number when it died of another.
|
|
76
|
+
- `--workers <n|auto>` (or `KAY_WORKERS`) serves from n processes on the one port, `auto` one per core: see [Several workers](workers.md). The executable takes the same `--workers` or `KAY_WORKERS`.
|
|
77
|
+
- The `start` script `kay new` writes runs it.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# A CDN in front of prerendered pages
|
|
2
|
+
|
|
3
|
+
A prerendered page with a `ttl` tells a shared cache how long to keep it, so a CDN in front of the server serves it without reaching the origin. For everything the server caches and for how long, see [what is cached](rendering.md#what-is-cached-and-for-how-long).
|
|
4
|
+
|
|
5
|
+
## Common tasks
|
|
6
|
+
|
|
7
|
+
- Let a CDN keep a page an hour: `ttl: '1h'` in its `page` export.
|
|
8
|
+
- Send a header of your own: `cacheControl: 'public, max-age=300'`, or `false` to keep the page out of shared caches.
|
|
9
|
+
|
|
10
|
+
```kay
|
|
11
|
+
--- server
|
|
12
|
+
export const page = { prerender: true, ttl: '1h' }
|
|
13
|
+
---
|
|
14
|
+
h1 Blog
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Reference
|
|
18
|
+
|
|
19
|
+
- A public page with a `ttl` of T answers `cache-control: public, max-age=0, s-maxage=T, stale-while-revalidate=T`: the browser asks each time, a CDN keeps the page T and serves it up to T more while the server renders it again. A change reaches the CDN after its `s-maxage` at the latest, or at its own purge.
|
|
20
|
+
- `revalidate` is the name `ttl` had before 1.87 and is gone since 1.91: a page setting it fails `kay check`.
|
|
21
|
+
- A page never gets the shared header when it is behind a guard, rendered for the visitor (a context, a flash cookie, the dev tool), or the lighter copy sent to a `Save-Data` visitor: those keep `private, no-cache`, `private, no-store` or `public, max-age=0, must-revalidate`. A response that sets any cookie, from the session, kayjs-auth or kayjs-cms, or from a route of the app, is made `private, no-cache` as well (`keepCookiesPrivate` from `kay/library` does it for a plugin of your own).
|
|
22
|
+
- A page that sets a `cache-control` of its own (`ctx.headers.set(...)`) keeps it, a page answering another status than 200 gets none, and a background render that stores its own header keeps it.
|
|
23
|
+
- `cacheControl: 'public, max-age=300'` in `page` sends that text instead, `false` keeps `public, max-age=0, must-revalidate` whatever the `ttl`. A layout's `ttl` and `cacheControl` apply to every page under it, the innermost winning. A `cacheControl` that is empty, holds a line break or is no string fails the build with `page-settings-invalid`.
|
|
24
|
+
- `kay build --static` writes the same value to `_headers`, for each such page at its path under the `base`, with and without the trailing slash (the root as `/base` and `/base/`). A path holding a `*`, a `:` or a space is left out, no `_headers` is written when it would be empty, and a `public/_headers` keeps its rules, kay's block following them without a header the file names. `headers.nginx.conf` carries no `cache-control`, as an nginx `include` cannot say a header per path.
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
# Check, inspect and tool commands
|
|
2
|
+
|
|
3
|
+
## Common tasks
|
|
4
|
+
|
|
5
|
+
### Check the project
|
|
6
|
+
|
|
7
|
+
`kay check` type-checks the project, `.kay` files included, and fails on errors, and on warnings with `--deny-warnings`, which the `check` script `kay new` writes leaves out:
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
kay check --deny-warnings
|
|
11
|
+
kay check --fix
|
|
12
|
+
kay check --format github
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
### List the routes the project serves
|
|
16
|
+
|
|
17
|
+
`kay routes` lists pages, actions, endpoints and API routes without running a page or a guard:
|
|
18
|
+
|
|
19
|
+
```sh
|
|
20
|
+
kay routes
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### Check what a page renders
|
|
24
|
+
|
|
25
|
+
`kay render` prints the HTML the server answers for one URL, as `kay dev` serves it, without starting a server; what the server logs goes to stderr, and a status of 400 or above exits 1:
|
|
26
|
+
|
|
27
|
+
```sh
|
|
28
|
+
kay render /about
|
|
29
|
+
kay render /account --cookie kay_session=…
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### Screenshot a page
|
|
33
|
+
|
|
34
|
+
`kay screenshot <path>` shoots a page of the project's running `kay dev` in a headless Chrome or Chromium (`BUN_CHROME_PATH`, else the PATH) and writes PNGs under `.kay/screenshots/`, 375 and 1280 px wide by default, for a layout the HTML does not show:
|
|
35
|
+
|
|
36
|
+
```sh
|
|
37
|
+
kay screenshot /admin/posts
|
|
38
|
+
kay screenshot /admin/posts --width 375 --scheme dark --full-page
|
|
39
|
+
kay screenshot /account --cookie kay_session=abc123
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### Audit a site's accessibility
|
|
43
|
+
|
|
44
|
+
`kay a11y` has [its own page](a11y-audit.md).
|
|
45
|
+
|
|
46
|
+
### Give an agent kay's tools
|
|
47
|
+
|
|
48
|
+
`kay mcp` serves the project in the current directory as an MCP server over stdio, for an agent to call instead of running `kay` in a shell. It needs nothing in the app: the agent's client starts it from the project's root, where kay is installed.
|
|
49
|
+
|
|
50
|
+
```sh
|
|
51
|
+
claude mcp add kay -- bunx kay mcp
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Another client takes the same command in its MCP config, such as `.mcp.json` at the project's root for Claude Code (a client may name the key `servers`):
|
|
55
|
+
|
|
56
|
+
```json
|
|
57
|
+
{ "mcpServers": { "kay": { "command": "bunx", "args": ["kay", "mcp"] } } }
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
The tools are `check` (`paths`, `only`, `denyWarnings`), `routes`, `explain` (a lint or an error code, `name`), `docs` (a topic, `query`), `render` (`url`, `method`, `body`, `headers`, `cookies`), `screenshot` (`path`, `width`, `height`, `scheme`, `fullPage`, `cookies`, `diff`) and `dev_errors` and `doctor` (`port`); the resources are `kay://llms.txt` and one `kay://llms/<file>.md` per guide, each listing its sections. See [Commands](project.md#commands).
|
|
61
|
+
|
|
62
|
+
### Format the templates
|
|
63
|
+
|
|
64
|
+
`kay fmt` formats `.kay` files, and `--check` lists the unformatted ones and fails. In an app that imports Tailwind, it sorts the shorthand's classes in Tailwind's order, with the words of the `class` attribute they move into, and sorts nothing before the app is installed. It moves the shorthand classes of an element past 120 characters into a `class` attribute over several lines (see [Elements](templates-elements-slots-snippets.md#elements)):
|
|
65
|
+
|
|
66
|
+
```sh
|
|
67
|
+
kay fmt
|
|
68
|
+
kay fmt --check
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## Reference
|
|
72
|
+
|
|
73
|
+
### Check and inspect commands
|
|
74
|
+
|
|
75
|
+
- `kay check [dir] [paths...] [-p tsconfig.json] [--entry <file>] [--deny-warnings] [--fix] [--dry-run] [--only <group>] [--since <minor>] [--format text|github|json] [--watch] [--quiet]`:
|
|
76
|
+
- Type-check the project, `.kay` files included, with the app's `typescript7` ([peers](checks.md#peer-packages));
|
|
77
|
+
- The first path is the project when it is a directory holding a `kay.config.ts`, `package.json` or `tsconfig.json`, or any directory outside the current directory, so a directory given first to narrow the report must be neither;
|
|
78
|
+
- The other paths, files or directories relative to the current directory, a symlink read as what it points to, narrow the report, and `--fix`, to the problems in them, the project still checked as a whole, and one outside the project fails the check;
|
|
79
|
+
- `--watch` checks again on every change, tests included, each check a `kay check` of its own, so an edit to `kay.config.ts` counts, except that once one has reported, a change to `.kay` files alone is checked in the watch itself with the config it read, about 0.4 s faster on a large app, and the collections and messages read again only when a file they read changed, a component they name excepted as they never render it, and state outside those files going unseen, until a change to anything else follows, and a check that cannot run, or exits before reporting, leaves the watch going, clearing the previous report in a terminal, and an interrupt or a closed terminal stops the check running and what it started, a second interrupt killing them;
|
|
80
|
+
- `checks: [fn]` in kay.config.ts (a library's `extensions` config may add its own) runs the app's own checks with kay's, so they get its text, `--format json` and `github` output, the MCP `check` tool, `--watch` and its exit code. Each `fn({ root, routes, report })` may be async: `report({ level, message, file, line, column, code })` adds a problem, `level` being `'error'` (the default) or `'warning'`, `file` relative to the project (kay.config.ts by default) and `line` and `column` 1 by default; `await routes()` gives what `kay routes` lists, read once, when a check asks. A check that throws, or does not finish within 30 seconds, is one error naming it as `checks[n]`, and the others still run. They run once, after `--fix`, and `--only` and `--since` leave them out; a path given to narrow the report keeps the findings in it.
|
|
81
|
+
- `-p` is relative to `dir`, and a tsconfig that is missing or matches no files fails the check.
|
|
82
|
+
- `--dry-run` counts the fixes `--fix` would apply (`would fix 3 problems`) and writes nothing.
|
|
83
|
+
- `--since 1.46` reports and, with `--fix`, fixes the `deprecated` lints that came in that minor alone, as `kay upgrade` runs it; it does not go with `--only`.
|
|
84
|
+
- `--entry` names the server entry whose `app` types `ctx.locals` and the app routes, `src/server.ts` by default, as `kay build --entry` does (see [Locals](server.md#locals)).
|
|
85
|
+
- It fails on errors, and on warnings too with `--deny-warnings` (see [Lints and warnings](lints.md#lints-and-warnings)).
|
|
86
|
+
- `--fix` first applies the quick fixes that change nothing else, removing an unread prop or writing `onclick` as `onClick`, (with `env` in kay.config.ts, also the raw `process.env.X` reads `kay env` warns of: each is declared in the app's `export const env = defineEnv(s.Object({` or a new `src/env.ts`, a `?? 'default'` becoming its default, the reads becoming `env.X`; one assigned, destructured, in a `.kay` file or beside an `env` of its own keeps its warning, a rewritten file loads the schema, which checks the environment on import, and `kay upgrade` skips it), then reports what is left; the others, such as a key or a `maxLength` to choose, stay the editor's.
|
|
87
|
+
- `--only seo` prints one group's lints alone, as an audit (see [Lints and warnings](lints.md#lints-and-warnings)).
|
|
88
|
+
- `--format github` prints each problem as a workflow command, `::error file=...,line=...,col=...::message`, which GitHub and Forgejo Actions show on the diff, as the CI `kay new` writes does, its `file` relative to `GITHUB_WORKSPACE`, the repository's root, when set;
|
|
89
|
+
- `--format json` prints `{ errors, warnings, problems }` on stdout, each problem's `file` relative to the current directory with its `line`, `column`, `endLine`, `endColumn`, `severity`, `code` and `message`;
|
|
90
|
+
- A check that cannot run, on a path that does not exist or a `kay.config.ts` that does not load, prints one error in the format too, with no `file` but where a config does not parse;
|
|
91
|
+
- The exit code is the same in every format.
|
|
92
|
+
- It also reports what the server would refuse when it boots, with the same functions: two pages serving one path, a redirect from a path a page serves or with syntax the router refuses, a page under a locale's prefix, a public file a page serves, two files whose actions share a URL (`a b.kay` and `a_b.kay`), a `base`, `site`, `serve.shutdownTimeout`, `health.timeout`, `live`, `observe.requestIdHeader`, `images.remoteMaxSize`, `images.remoteTimeout`, `images.maxVariants` or `images.queue` it cannot read, a collection feed without `site`, and a guard, API module or matcher whose default export is not a guard, an Elysia instance or a function.
|
|
93
|
+
- `kay build` reports them as it checks, and the editor after a save or a change on disk.
|
|
94
|
+
- `kay render <url> [dir] [--method <method>] [--body <text>] [--header <name: value>]... [--cookie <name=value>]... [-i|--include] [--entry <file>] [--format text|json]`:
|
|
95
|
+
- Answer one request as the server entry answers it under `NODE_ENV=development`, as `kay dev` serves it but without the inspector's attributes, and print the body on stdout; the server runs on a Unix socket of its own, not a port, stops once it answered, or starts stopping within a second once `kay render` is killed, and builds the browser code into a directory under `.kay` it removes, never touching `kay build`'s or `kay dev`'s; the next `kay render` removes what a SIGKILLed one left.
|
|
96
|
+
- What the server logs, a page's error report included, goes to stderr; a redirect prints `kay render: 302 Found, to /login` there and exits 0, a status of 400 or above prints its line there and exits 1, and a server exiting before it serves fails with its code. `--format json` prints `{ status, headers, body, ms }` on stdout instead of the body (`headers` an object, `set-cookie` a list, `body` the response read as text, so a binary body is not preserved: take the bytes without `--format json`), with no status line, and the exit code is the same.
|
|
97
|
+
- `--body` posts as a form does, `application/x-www-form-urlencoded`, unless a `--header` names another `content-type`; `--header` and `--cookie` repeat, a guarded page rendering signed in with the session cookie a browser holds; `-i` prints the status and headers on stderr.
|
|
98
|
+
- Under `base`, a path under it is taken as the proxy in front of the server hands it over, so a link a page printed renders as it is.
|
|
99
|
+
- The whole app boots for it: its jobs and modules' top-level code run, and a `POST` to an action runs it against the app's database. The request goes to the first server the entry starts, with the host a full URL names, over plain HTTP; a server not listening after 60 seconds fails it.
|
|
100
|
+
- `kay routes [dir] [--format text|json]`:
|
|
101
|
+
- List the routes the project serves, without running a page or a guard: each page's pattern with its matchers, `/items/:id=integer`, and file, once per locale's path (`/about`, `/fr/a-propos`), with its layouts and guards, outermost first, `prerendered` with `prerender: true` or a server island, `prerendered as its prerender setting lists` with a list or a function, `open` with `guards: false` and the 403 `requireGuards` gives one with no guard;
|
|
102
|
+
- Each action, endpoint, API module route with its method, `WS` and `OPTIONS` included, and a library's with the guards of its own directory (API modules are imported, as only they know their routes, so their top-level code runs: what it writes to stdout, through the console or `process.stdout`, goes to stderr, and one that fails to load or calls `process.exit()` is listed by its mount with why), the routes of an extension's `server` given as an Elysia instance, each redirect and collection feed;
|
|
103
|
+
- And kay's own routes the config turns on, such as `/_kay/health`, the favicons and the sitemap.
|
|
104
|
+
- What the server entry adds, as a `.use(auth.plugin)`, and an extension's `server` given as a function are only known as the server starts: a last line names them, unlisted.
|
|
105
|
+
- `kay not-found [dir] [--redirect <path> [--to <target>] [--runtime] [--dry-run]] [--format text|json]`:
|
|
106
|
+
- Lists the paths visitors asked for with a GET and found nothing at, most hit first, from the database of the app's `store` (its SQLite file or its Postgres), else `data/not-found.sqlite` (or the SQLite `--file`), with the hosts they came from and a suggested target; those a `redirects` entry answers already are left out ([Redirects](routing-endpoints-and-base.md#redirects));
|
|
107
|
+
- `--redirect <path>` adds the redirect to `redirects` in kay.config.ts, to `--to` or to the suggested target, and drops the path from the list; a config with no object literal to add it to prints the line to add by hand;
|
|
108
|
+
- `--runtime` writes it to the file instead, which the running site reads with no deploy and no change to kay.config.ts; the rules are those of [Redirects](routing-endpoints-and-base.md#redirects), and `kay check` reports such a target nothing serves.
|
|
109
|
+
- `kay doctor [dir] [--port <port>] [--format text|json] [--quiet]`:
|
|
110
|
+
- Checks, one line each (`ok`, `warn` or `FAIL` with a `fix:` line under it), what can keep a project from running, and exits 1 on any failure, the others still running: `bun` (the version kay needs), `versions` (`@kayjs/kay` and each `@kayjs/*` listed in package.json installed, the libraries on the minor of kay's), `peers` (`typescript7`, `axe-core`), `tsconfig` (a tsconfig.json in the project or above it), `config` (kay.config.ts loads and its `i18n` is accepted), `env` (each variable `kay env` lists as `always` required is set in the shell or the project's `.env` files, or `production` ones too under `NODE_ENV=production`), `port` (`--port`, else `PORT`, else 3000, free to listen on at `HOST` or else on every IPv4 address and both loopback ones, `0` meaning the system picks, or held by this project's own `kay dev`) and `build` (`.kay/client` and `.kay/dev` built by this kay: `kay build` and `kay dev` stamp `kay` in their `manifest.json`, so a build by another kay or by one before the stamp fails), `browser` (a Chrome or Chromium found, as `kay screenshot` and `kay a11y` look; none is a `warn`, never a failure) and `database` (`DATABASE_URL`, from the shell or `.env`, answers a `select 1` within 3 seconds, or is a `sqlite://` file that opens read-only; unset passes) and `complete` (the shell named in `SHELL` has `kay completion` set up: fish's `kay.fish` in its completions folder, an rc line running `kay completion` for bash and zsh; none is a `warn` with the line to add, never a failure).
|
|
111
|
+
- `kay completion bash|zsh|fish`: prints the script that has the shell ask `kay __complete` for commands, options and values, as `kay --completions <shell>` does. Install it with `kay completion fish > ~/.config/fish/completions/kay.fish`, or `source <(kay completion bash)` in ~/.bashrc, or `source <(kay completion zsh)` in ~/.zshrc after `compinit`; `kay doctor` says which shell lacks it.
|
|
112
|
+
- `--format json` prints `{ checks }`, each with `name`, `ok`, `message`, `warning` on an ok check worth a look and, on a failure, `fix`; the MCP `doctor` tool answers the same document, a failing check being a result.
|
|
113
|
+
- `kay env [dir] [--compose <file>]... [--example <file>] [--write] [--format text|json] [--quiet]`:
|
|
114
|
+
- Lists the environment variables the project declares, for a deploy script to compare with a compose or an env file: each `defineEnv` schema in the modules under `src` (imported without the server's environment, so their top-level code runs and its output goes to stderr; the server entry is not run, and a schema it declares is not listed; a schema built inside a function is not seen), the `env` schema of each extension, and kay's own `PORT`, `HOST`, `SITE_URL` and `KAY_SECRET`, and `KAY_PROXY_KEY` and `KAY_PROXY_KEY_FILE` while `proxy.key` is set, and `KAY_MCP_KEY` and `KAY_MCP_KEY_FILE` while `mcp.key` asks for a key;
|
|
115
|
+
- Each with its source, type, whether it is required (`always`, `production` for a field with `requiredInProduction: true`, or `optional`) and its default; a module that does not load is named as not read.
|
|
116
|
+
- With `--compose` and `--example`, or `env` in kay.config.ts, compares them with those files, else with the project's production `compose*.yaml` and `.env.example`, and exits 1 on an error; `kay check` does the same. `--write` appends the declared variables the example lacks ([Server](server.md)).
|
|
117
|
+
- `kay i18n missing [locale] [dir] [--format text|json] [--quiet]` and `kay i18n accept <locale> [dir] [--dry-run] [--format text|json] [--quiet]`:
|
|
118
|
+
- List what each locale lacks against the default one, messages and localized entries; accept a locale's draft messages, deleting their `// draft` comments (see [Locales](locales.md#messages)).
|
|
119
|
+
- `kay i18n --help` lists every `i18n` command, those a library adds included, such as `kay i18n translate <locale>` of `@kayjs/ai`, which fills the missing messages and entries as drafts.
|
|
120
|
+
- `kay upgrade [dir] [--dry-run] [--quiet] [--format text|json]`:
|
|
121
|
+
- Move the `kay` and `@kayjs/*` ranges of `package.json` that are version ranges of the registry, `npm:@kayjs/kay@~1.45.0` or `~1.45.0` (a path, workspace or git source is left), to `~<latest>` with the registry's answer, install, then run the installed kay's `kay check --fix --since <minor>` once per minor between the version the app was on and the one it moves to, oldest first, listing them from the installed kay's `kay explain deprecated --format json`, then `kay check --fix --deny-warnings`, which prints what is left to do by hand, a warning too, and sets the exit code: it says `nothing left to do by hand` only when nothing was printed.
|
|
122
|
+
- A release that dropped the lints of a minor no longer rewrites its forms, so an app that may still hold them goes through the minor before that release first (an app on 1.70 to 1.77 installs 1.73, then 1.76, then the latest), each stop installing the ranges, rewriting its minors and moving on; `DEPRECATION_MINORS` in `src/compiler/lints.ts` lists them, and a test fails until dropping a lint's last minor writes its release there. A stop whose install fails because the registry no longer serves it or a version it pins (old minors are pruned, and `@kaynooo/cli-kit` pins of some are gone; any other failure, a network outage or a broken dependency of the app, stops the upgrade as below) is replaced by the closest older minor that still holds the lints it is there for, down to the oldest `since` among them, and the run says which one it took; when none installs, it names the deprecations left unfixed and the sections of `llms/upgrading.md` to read, skips the stop, goes on and exits 1. Only the install of the latest version failing puts `package.json` and the lockfile back at the last stop that installed.
|
|
123
|
+
- A package the app lists with a plain range that kay's own `dependencies` list too (`elysia` today) is raised, once the last install is done, to the version kay's range starts at when the app's range or its installed copy is below it, keeping its `~`, `^` or exact form (never lowering it: a range already at kay's with an older copy installed is only installed again), kay found in `node_modules` from the app up as a workspace hoists it, then installed again and printed as a `raised` step (an app already on the latest kay gets it too, from the installed kay's manifest; `--dry-run` prints `would raise` and writes nothing): kay and the app then share one copy, where two broke `kay check` on Elysia's types. A failed install of it puts `package.json` back as the phases left it.
|
|
124
|
+
- An install that leaves an npm `bun` in `node_modules` older than the installed kay's `engines.bun` (the auto-installed peer of `bun-plugin-tailwind`) is followed by `bun update bun`.
|
|
125
|
+
- `--dry-run` lists the packages it would move and writes, installs and rewrites nothing. A run that does write warns on stderr when a git working tree holds uncommitted changes to tracked files, which the rewrite would mix with its own, and goes on.
|
|
126
|
+
- `--format json` prints `{ steps, changed }` on stdout (a failure prints `{ errors, warnings, problems }` as `kay check` does, and exits 1), each step a `{ verb, rest }` and each `changed` package the `{ name, spec, section }` it moved (or would move) to, the install and the checks it runs printing on stderr; the exit code is the text output's.
|
|
127
|
+
- A last `kay check --fix` also moves a root Dockerfile's `oven/bun:<version>` to the Bun the new kay needs (`old-bun-image`). An app already on the latest is left as it is, a registry older than the app's range never moves it back, and a failed install puts `package.json` back as it was. A deprecated form is one `deprecated` lint with its `since` minor and a safe fix; a minor's breaking changes carry one when `kay check` can see the old form, see [Checks](checks.md).
|
|
128
|
+
- `kay explain [lint|error|group|island [file]] [--format text|json]`:
|
|
129
|
+
- `island <file>` says whether a component is an island, why and the rule; `island` alone lists every island of the project.
|
|
130
|
+
- List the lints with their groups and default levels and the errors with theirs, or a group's, or print one: a lint with an example it reports and the same written right, an error with where its fix is written; a name that is none names the `kay docs` section documenting it.
|
|
131
|
+
- `kay fmt [paths...] [--check | --dry-run] [--format text|json] [--quiet]`:
|
|
132
|
+
- Format `.kay` files; `--check` lists unformatted files and fails, `--dry-run` lists them and succeeds (not both).
|
|
133
|
+
- `kay fmt --from-html [file] [--format text|json]`:
|
|
134
|
+
- Print the HTML in `file`, or on stdin (`-` too), as a formatted `.kay` template, through the translation `kay migrate astro` uses: tag shorthand, static classes as `.class` and the id as `#id`, `class="..."` kept for a class the shorthand cannot hold (an unclosed `[`), the space a line break makes between inline siblings (`#[b a] #[i b]`), attributes in parentheses, text on its element's line with inline elements as `#[tag text]`, `<script>` and `<style>` as their text, an HTML comment as a `//` comment (not rendered), a document's `head` children in a `head` block.
|
|
135
|
+
- What the template cannot hold is listed on stderr as `line N: ...` and left out: an attribute JSX cannot name (`@click`, `:class`), a `lang` on `html` (set it in `kay.config.ts`), the attributes of `body` and a web component's `<slot>` (kept as a comment, as kay's `slot` renders a wrapper's children). HTML that needs an end tag it lacks (an unclosed `<p>` or `<li>`) fails with exit 1.
|
|
136
|
+
- `--format json` prints `{ code, notes }` on one line. It takes no `--check` and one file at most. The docs site has the same conversion in a box ([Migrating from HTML](https://kayjs.kaynooo.fr/migrating/from-html)).
|
|
137
|
+
- `kay lint [keslint arguments]...`:
|
|
138
|
+
- Write the types the lint of `.kay` files reads, as `kay check` does, then run the project's `keslint` with the arguments, so linting needs no check before it; `--help` opens with a kay line before keslint's, `--format json` is ESLint's JSON document and any other `--format` value is keslint's; its exit code is `keslint`'s (see [Linting](checks.md#linting)).
|
|
139
|
+
- `kay test [bun test arguments]...`:
|
|
140
|
+
- Run `bun test` in the project with `--isolate` and `kay/test/preload`, so it needs no `bunfig.toml` and no flag, and report a failure at its `.kay` line; the arguments are `bun test`'s and its exit code is the answer, `--help` opens with a kay line before `bun test`'s, and `--format json` prints `{ ok, exitCode, pass, fail, skip, tests, files }` alone on stdout with the report on stderr (see [Testing](testing.md)).
|
|
141
|
+
- `kay types [dir] [--format text|json] [--quiet]`:
|
|
142
|
+
- Write `.kay/types`, which the language server, `kay lint` and the editor's ESLint read, without checking anything; the editor's ESLint runs it through `bun` the first time it meets a component whose types are missing.
|
|
143
|
+
- `kay/compiler`, for a tool that reads `.kay` source outside kay, is in [Compiling a component](compiler-api.md).
|
|
144
|
+
- `kay lsp`, `kay screenshot`, `kay mcp` and `kay docs` are in [Language server, screenshot and MCP commands](editor-and-agent-commands.md).
|
|
145
|
+
|
|
146
|
+
- `kay fmt --stdin [path]` reads a source on stdin and prints it formatted on stdout, for an editor's formatter (conform.nvim, Helix, Zed): `path` names the file it is for, which may not exist and decides the Tailwind order; a source that does not compile prints its problems on stderr, nothing on stdout, and exits 1; `--check`, `--from-html`, `--format json` and several paths are refused.
|
|
147
|
+
- `kay fmt` refuses a path that is missing or is neither a directory nor a `.kay` file.
|
|
148
|
+
- Neovim, Helix and Zed highlight `.kay` files with the tree-sitter grammar in `editors/tree-sitter-kay` of the kay repository (queries for highlights, injections and indents; scripts and holes inject TypeScript, `--- style` CSS, `markdown` Markdown), and Zed with the extension in `editors/zed`, which also starts `kay lsp --stdio`; setup in the docs' Other editors guide.
|
|
149
|
+
- The TextMate grammar the extension highlights `.kay` files with ships as `kay/kay.tmLanguage.json`, for a highlighter such as Shiki: register it as `{ ...grammar, name: 'kay', embeddedLangs: ['typescript'] }`.
|