@kayjs/kay 1.112.2 → 2.0.0-alpha.4
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/package.json +28 -321
- package/src/ambient.d.ts +6 -0
- package/src/build/compile.ts +112 -253
- package/src/build/index.ts +890 -0
- package/src/cli/check.ts +89 -0
- package/src/cli/index.ts +104 -0
- package/src/cli/new.ts +496 -0
- package/src/compiler/analyze.ts +242 -0
- package/src/compiler/dom.ts +861 -686
- package/src/compiler/index.ts +6 -632
- package/src/compiler/patch.ts +54 -0
- package/src/compiler/ssr.ts +560 -0
- package/src/dev/index.ts +138 -455
- package/src/dom/action.ts +37 -0
- package/src/dom/extras.ts +258 -0
- package/src/dom/index.ts +252 -0
- package/src/dom/island.ts +102 -0
- package/src/dom/loop.ts +294 -0
- package/src/index.ts +31 -0
- package/src/jsx-runtime.ts +176 -0
- package/src/plugins/index.ts +85 -0
- package/src/reactivity/index.ts +551 -0
- package/src/reactivity/selector.ts +57 -0
- package/src/reactivity/store.ts +114 -0
- package/src/server/action.ts +151 -0
- package/src/server/cookies.ts +69 -140
- package/src/server/env.ts +26 -382
- package/src/server/http.ts +123 -0
- package/src/server/index.ts +651 -147
- package/src/server/router.ts +110 -0
- package/src/server/security.ts +34 -279
- package/src/server/standard-schema.ts +56 -0
- package/src/ssr/context.ts +89 -0
- package/src/ssr/index.ts +190 -0
- package/src/test/index.ts +108 -547
- package/LICENSE +0 -21
- package/LICENSES/Apache-2.0.txt +0 -55
- package/LICENSES/MPL-2.0.txt +0 -373
- package/LICENSES/emscripten.txt +0 -102
- package/LICENSES/libaom-PATENTS.txt +0 -108
- package/LICENSES/libaom.txt +0 -27
- package/LICENSES/libavif-1.4.2.txt +0 -387
- package/LICENSES/libavif.txt +0 -353
- package/LICENSES/libwebp-PATENTS.txt +0 -23
- package/LICENSES/libwebp.txt +0 -30
- package/LICENSES/musl-emscripten-6.0.12.txt +0 -193
- package/LICENSES/musl.txt +0 -193
- package/NOTICE +0 -11
- package/README.md +0 -103
- package/dist/eslint.js +0 -19703
- package/editors/tree-sitter-kay/queries/highlights.scm +0 -63
- package/editors/tree-sitter-kay/queries/indents.scm +0 -17
- package/editors/tree-sitter-kay/queries/injections.scm +0 -21
- package/editors/vscode/syntaxes/kay.tmLanguage.json +0 -624
- package/editors/zed/Cargo.toml +0 -13
- package/editors/zed/extension.toml +0 -16
- package/editors/zed/languages/kay/config.toml +0 -13
- package/editors/zed/languages/kay/highlights.scm +0 -63
- package/editors/zed/languages/kay/indents.scm +0 -17
- package/editors/zed/languages/kay/injections.scm +0 -21
- package/editors/zed/src/lib.rs +0 -50
- package/llms/a11y-audit.md +0 -21
- package/llms/a11y-lints.md +0 -51
- package/llms/action-protection.md +0 -122
- package/llms/actions-from-islands.md +0 -163
- package/llms/actions-refused-fields.md +0 -63
- package/llms/actions.md +0 -246
- package/llms/analytics.md +0 -157
- package/llms/api-from-islands.md +0 -167
- package/llms/api-routes.md +0 -224
- package/llms/browser-only.md +0 -71
- package/llms/build-and-start.md +0 -77
- package/llms/cdn-caching.md +0 -25
- package/llms/check-and-tools.md +0 -151
- package/llms/checks.md +0 -134
- package/llms/code-lints.md +0 -37
- package/llms/commands.md +0 -42
- package/llms/compiler-api.md +0 -25
- package/llms/component-libraries.md +0 -124
- package/llms/component-library-conventions.md +0 -66
- package/llms/components.md +0 -252
- package/llms/content-cms.md +0 -101
- package/llms/content-edit.md +0 -49
- package/llms/content-markdown-to-caching.md +0 -96
- package/llms/content-preview.md +0 -79
- package/llms/content.md +0 -276
- package/llms/deprecated-lints.md +0 -17
- package/llms/dev-server.md +0 -74
- package/llms/dev-tool.md +0 -72
- package/llms/eco-design.md +0 -107
- package/llms/editor-and-agent-commands.md +0 -83
- package/llms/effects.md +0 -99
- package/llms/environment.md +0 -83
- package/llms/errors-runtime.md +0 -57
- package/llms/errors.md +0 -125
- package/llms/events.md +0 -45
- package/llms/files.md +0 -191
- package/llms/guards.md +0 -63
- package/llms/head.md +0 -243
- package/llms/hooks.md +0 -161
- package/llms/images-runtime-and-remote.md +0 -85
- package/llms/images.md +0 -208
- package/llms/imported-files.md +0 -41
- package/llms/island-and-form-lints.md +0 -30
- package/llms/island-sources.md +0 -78
- package/llms/islands-lazy-components.md +0 -23
- package/llms/islands-state-to-ids.md +0 -99
- package/llms/islands.md +0 -284
- package/llms/lints.md +0 -98
- package/llms/live-values.md +0 -126
- package/llms/local-collections.md +0 -98
- package/llms/locales-texts.md +0 -28
- package/llms/locales.md +0 -270
- package/llms/mcp.md +0 -57
- package/llms/metrics.md +0 -24
- package/llms/navigation-from-code.md +0 -114
- package/llms/navigation.md +0 -137
- package/llms/notifications.md +0 -116
- package/llms/performance-lints.md +0 -18
- package/llms/prerendering.md +0 -161
- package/llms/privacy.md +0 -166
- package/llms/production.md +0 -200
- package/llms/project-new-and-add.md +0 -67
- package/llms/project.md +0 -141
- package/llms/proxy-and-security.md +0 -177
- package/llms/queues.md +0 -108
- package/llms/rate-limits.md +0 -119
- package/llms/recipes.md +0 -356
- package/llms/rendering.md +0 -292
- package/llms/request-values.md +0 -82
- package/llms/rooms.md +0 -130
- package/llms/routing-endpoints-and-base.md +0 -122
- package/llms/routing-special-pages.md +0 -59
- package/llms/routing.md +0 -278
- package/llms/schemas.md +0 -59
- package/llms/security-and-i18n-lints.md +0 -19
- package/llms/seo-lints.md +0 -44
- package/llms/server-islands.md +0 -84
- package/llms/server.md +0 -259
- package/llms/site.md +0 -404
- package/llms/sitemap-search-fonts.md +0 -283
- package/llms/stores.md +0 -47
- package/llms/styles-and-assets.md +0 -210
- package/llms/templates-elements-slots-snippets.md +0 -145
- package/llms/templates.md +0 -294
- package/llms/testing-browser.md +0 -117
- package/llms/testing-mount.md +0 -49
- package/llms/testing-requests-jobs-sockets.md +0 -110
- package/llms/testing-setup.md +0 -54
- package/llms/testing.md +0 -238
- package/llms/tracing.md +0 -58
- package/llms/upgrading-1-105-config.md +0 -71
- package/llms/upgrading-archive.md +0 -163
- package/llms/upgrading.md +0 -40
- package/llms/whats-new-archive.md +0 -89
- package/llms/whats-new.md +0 -47
- package/llms/workers.md +0 -22
- package/llms.txt +0 -128
- package/src/a11y/audit.ts +0 -217
- package/src/a11y/report.ts +0 -198
- package/src/a11y/rgaa-criteria.ts +0 -182
- package/src/a11y/standards.ts +0 -90
- package/src/a11y/targets.ts +0 -78
- package/src/add.ts +0 -754
- package/src/build/action-calls.ts +0 -174
- package/src/build/assets.ts +0 -73
- package/src/build/await-alert.ts +0 -34
- package/src/build/budget.ts +0 -127
- package/src/build/bun.ts +0 -19
- package/src/build/cache-ids.ts +0 -66
- package/src/build/cache.ts +0 -110
- package/src/build/captured-loads.ts +0 -40
- package/src/build/class-rules.ts +0 -248
- package/src/build/class-sources.ts +0 -437
- package/src/build/class-table.ts +0 -331
- package/src/build/client.ts +0 -864
- package/src/build/collection-components.ts +0 -140
- package/src/build/compressed.ts +0 -96
- package/src/build/direct-imports.ts +0 -139
- package/src/build/dynamic-classes.ts +0 -394
- package/src/build/entry-files.ts +0 -19
- package/src/build/favicons.ts +0 -149
- package/src/build/files.ts +0 -464
- package/src/build/fingerprint.ts +0 -54
- package/src/build/footprint-models.ts +0 -90
- package/src/build/footprint.ts +0 -683
- package/src/build/glob.ts +0 -237
- package/src/build/globbed.ts +0 -3
- package/src/build/header-files.ts +0 -69
- package/src/build/icon-slots.ts +0 -140
- package/src/build/icons.ts +0 -127
- package/src/build/increments.ts +0 -291
- package/src/build/insert-ids.ts +0 -48
- package/src/build/island-images.ts +0 -277
- package/src/build/kept-maps.ts +0 -64
- package/src/build/kept.ts +0 -149
- package/src/build/layer-order.ts +0 -89
- package/src/build/lazy-components.ts +0 -130
- package/src/build/lazy-manifest.ts +0 -56
- package/src/build/lazy-stubs.ts +0 -31
- package/src/build/libraries.ts +0 -626
- package/src/build/licenses.ts +0 -246
- package/src/build/links.ts +0 -119
- package/src/build/live-ids.ts +0 -72
- package/src/build/manifests.ts +0 -91
- package/src/build/named-refresh.ts +0 -75
- package/src/build/navigation-locale.ts +0 -18
- package/src/build/page-dirs.ts +0 -58
- package/src/build/pipeline.ts +0 -543
- package/src/build/plugin.ts +0 -374
- package/src/build/probe.ts +0 -158
- package/src/build/prune.ts +0 -160
- package/src/build/recipe-classes.ts +0 -203
- package/src/build/recipe-utilities.ts +0 -183
- package/src/build/references.ts +0 -85
- package/src/build/report.ts +0 -457
- package/src/build/route-sizes.ts +0 -386
- package/src/build/runtime-chunk.ts +0 -425
- package/src/build/runtime-config.ts +0 -174
- package/src/build/search.ts +0 -350
- package/src/build/server-only.ts +0 -531
- package/src/build/server-record.ts +0 -201
- package/src/build/signals.ts +0 -228
- package/src/build/source-files.ts +0 -36
- package/src/build/source-parses.ts +0 -136
- package/src/build/sourcemap.ts +0 -335
- package/src/build/static.ts +0 -417
- package/src/build/style-uses.ts +0 -580
- package/src/build/styles.ts +0 -331
- package/src/build/supports.ts +0 -201
- package/src/build/theme-vars.ts +0 -72
- package/src/build/transform.ts +0 -306
- package/src/build/ui-info.ts +0 -343
- package/src/build/ui-layers.ts +0 -30
- package/src/build/ui.ts +0 -559
- package/src/build/variants.ts +0 -803
- package/src/build/verify.ts +0 -394
- package/src/build/warn-classes.ts +0 -18
- package/src/build/worker-bundle.ts +0 -76
- package/src/bun.ts +0 -38
- package/src/check/action-options.ts +0 -56
- package/src/check/api-modules.ts +0 -48
- package/src/check/api-scope.ts +0 -112
- package/src/check/ast.ts +0 -52
- package/src/check/bindings.ts +0 -72
- package/src/check/boot.ts +0 -236
- package/src/check/browser-global-reads.ts +0 -123
- package/src/check/builtin-imports.ts +0 -215
- package/src/check/class-words.ts +0 -260
- package/src/check/config-keys.ts +0 -63
- package/src/check/config-objects.ts +0 -98
- package/src/check/diagnose.ts +0 -269
- package/src/check/dockerfile.ts +0 -59
- package/src/check/endpoint-exports.ts +0 -41
- package/src/check/env-types.ts +0 -270
- package/src/check/export-homes.ts +0 -69
- package/src/check/fixes.ts +0 -38
- package/src/check/generated.ts +0 -160
- package/src/check/guards.ts +0 -109
- package/src/check/index.ts +0 -257
- package/src/check/island-modules.ts +0 -142
- package/src/check/island-only.ts +0 -104
- package/src/check/large-images.ts +0 -355
- package/src/check/layout-facts.ts +0 -43
- package/src/check/loaded.ts +0 -88
- package/src/check/loop-index-fix.ts +0 -46
- package/src/check/mcp-routes.ts +0 -86
- package/src/check/messages.ts +0 -327
- package/src/check/missing-imports.ts +0 -99
- package/src/check/moved-keys.ts +0 -49
- package/src/check/open-settings.ts +0 -33
- package/src/check/output-schema.ts +0 -156
- package/src/check/page-heads.ts +0 -267
- package/src/check/page-structure.ts +0 -27
- package/src/check/project.ts +0 -307
- package/src/check/public-env-outside-src.ts +0 -43
- package/src/check/queries.ts +0 -99
- package/src/check/regroup.ts +0 -94
- package/src/check/removed-ui-tokens.ts +0 -343
- package/src/check/renamed-call-options.ts +0 -83
- package/src/check/renamed-exports.ts +0 -247
- package/src/check/renamed-packages.ts +0 -97
- package/src/check/route-shadow.ts +0 -174
- package/src/check/schema-builders.ts +0 -460
- package/src/check/schema-json.ts +0 -226
- package/src/check/seo.ts +0 -240
- package/src/check/server-only-reads.ts +0 -79
- package/src/check/shadow-types.ts +0 -625
- package/src/check/shadow.ts +0 -384
- package/src/check/site-seo.ts +0 -339
- package/src/check/socket-routes.ts +0 -75
- package/src/check/status-pages.ts +0 -30
- package/src/check/template-hints.ts +0 -541
- package/src/check/text-size-colour.ts +0 -57
- package/src/check/tool-labels.ts +0 -122
- package/src/check/tool-outputs.ts +0 -201
- package/src/check/tsgo.ts +0 -297
- package/src/check/typing-stamp.ts +0 -146
- package/src/check/ui-tokens.ts +0 -174
- package/src/check/ui-types.ts +0 -88
- package/src/check/ui.ts +0 -108
- package/src/check/unmounted-jobs.ts +0 -63
- package/src/cli.ts +0 -135
- package/src/commands/a11y.ts +0 -87
- package/src/commands/add-peers.ts +0 -20
- package/src/commands/add.ts +0 -51
- package/src/commands/build.ts +0 -234
- package/src/commands/check.ts +0 -419
- package/src/commands/command.ts +0 -535
- package/src/commands/completion.ts +0 -57
- package/src/commands/dev.ts +0 -131
- package/src/commands/docs.ts +0 -161
- package/src/commands/doctor.ts +0 -404
- package/src/commands/editor.ts +0 -56
- package/src/commands/env-compare.ts +0 -458
- package/src/commands/env-declare.ts +0 -268
- package/src/commands/env.ts +0 -217
- package/src/commands/explain-island.ts +0 -133
- package/src/commands/explain.ts +0 -94
- package/src/commands/extensions.ts +0 -87
- package/src/commands/fix-path.ts +0 -10
- package/src/commands/fmt.ts +0 -152
- package/src/commands/generate.ts +0 -60
- package/src/commands/i18n.ts +0 -153
- package/src/commands/import-module.ts +0 -19
- package/src/commands/lint-cache.ts +0 -61
- package/src/commands/lint.ts +0 -76
- package/src/commands/lsp.ts +0 -17
- package/src/commands/mcp.ts +0 -35
- package/src/commands/migrate.ts +0 -131
- package/src/commands/new.ts +0 -182
- package/src/commands/not-found.ts +0 -180
- package/src/commands/project-checks.ts +0 -52
- package/src/commands/registry.ts +0 -86
- package/src/commands/render.ts +0 -146
- package/src/commands/routes.ts +0 -301
- package/src/commands/screenshot.ts +0 -113
- package/src/commands/start.ts +0 -124
- package/src/commands/test.ts +0 -181
- package/src/commands/types.ts +0 -41
- package/src/commands/upgrade-majors.ts +0 -26
- package/src/commands/upgrade-manifest.ts +0 -23
- package/src/commands/upgrade-messages.ts +0 -16
- package/src/commands/upgrade-peers.ts +0 -89
- package/src/commands/upgrade.ts +0 -871
- package/src/compiler/a11y-markup.ts +0 -352
- package/src/compiler/a11y.ts +0 -779
- package/src/compiler/allow-comments.ts +0 -104
- package/src/compiler/aria.ts +0 -298
- package/src/compiler/ast.ts +0 -880
- package/src/compiler/bound-props.ts +0 -75
- package/src/compiler/browser.ts +0 -457
- package/src/compiler/button-forms.ts +0 -33
- package/src/compiler/class-items.ts +0 -16
- package/src/compiler/class-name.ts +0 -120
- package/src/compiler/codegen.ts +0 -1085
- package/src/compiler/dead-code.ts +0 -22
- package/src/compiler/deprecated-library.ts +0 -8
- package/src/compiler/deprecated-lints-1-106.ts +0 -14
- package/src/compiler/deprecated-lints-1-107.ts +0 -14
- package/src/compiler/deprecated-lints.ts +0 -54
- package/src/compiler/deprecated-ui-props.ts +0 -67
- package/src/compiler/diagnostics.ts +0 -46
- package/src/compiler/dom-fields.ts +0 -67
- package/src/compiler/dom-here.ts +0 -72
- package/src/compiler/dom-property.ts +0 -23
- package/src/compiler/each-node.ts +0 -20
- package/src/compiler/else-problem.ts +0 -28
- package/src/compiler/errors.ts +0 -615
- package/src/compiler/estree-shapes.ts +0 -44
- package/src/compiler/estree.ts +0 -126
- package/src/compiler/event-modifiers.ts +0 -96
- package/src/compiler/expression.ts +0 -102
- package/src/compiler/fence-checks.ts +0 -660
- package/src/compiler/fence-nodes.ts +0 -25
- package/src/compiler/fence-redirects.ts +0 -395
- package/src/compiler/field-described.ts +0 -45
- package/src/compiler/fnv-hash.ts +0 -9
- package/src/compiler/form-action.ts +0 -18
- package/src/compiler/form-info.ts +0 -154
- package/src/compiler/format.ts +0 -419
- package/src/compiler/frame.ts +0 -89
- package/src/compiler/globals.ts +0 -57
- package/src/compiler/hand-parts.ts +0 -83
- package/src/compiler/handed-data.ts +0 -15
- package/src/compiler/head-shorthand.ts +0 -118
- package/src/compiler/head-tags.ts +0 -64
- package/src/compiler/helper-imports.ts +0 -33
- package/src/compiler/host.browser.ts +0 -25
- package/src/compiler/host.ts +0 -33
- package/src/compiler/html-fields.ts +0 -92
- package/src/compiler/html-initial.ts +0 -70
- package/src/compiler/html-parts.ts +0 -40
- package/src/compiler/html.ts +0 -953
- package/src/compiler/i18n-lints.ts +0 -29
- package/src/compiler/if-alias.ts +0 -79
- package/src/compiler/image-attributes.ts +0 -67
- package/src/compiler/import-edits.ts +0 -62
- package/src/compiler/inspect.ts +0 -32
- package/src/compiler/island-arguments.ts +0 -67
- package/src/compiler/island-cause.ts +0 -60
- package/src/compiler/island-declaration.ts +0 -190
- package/src/compiler/island-lints.ts +0 -19
- package/src/compiler/island-marker.ts +0 -29
- package/src/compiler/island-problems.ts +0 -25
- package/src/compiler/items.ts +0 -424
- package/src/compiler/jsx-class.ts +0 -84
- package/src/compiler/jsx-entities.ts +0 -25
- package/src/compiler/jsx-field.ts +0 -58
- package/src/compiler/jsx.ts +0 -979
- package/src/compiler/kay-exports.ts +0 -111
- package/src/compiler/lazy-imports.ts +0 -357
- package/src/compiler/link-flags.ts +0 -78
- package/src/compiler/lints.ts +0 -1039
- package/src/compiler/live-reads.ts +0 -160
- package/src/compiler/load-facts.ts +0 -51
- package/src/compiler/load-plan.ts +0 -227
- package/src/compiler/loop-lints.ts +0 -27
- package/src/compiler/mapping.ts +0 -403
- package/src/compiler/markdown-block.ts +0 -693
- package/src/compiler/markup-fields.ts +0 -34
- package/src/compiler/markup.ts +0 -857
- package/src/compiler/minor.ts +0 -13
- package/src/compiler/module-signals.ts +0 -203
- package/src/compiler/names.ts +0 -45
- package/src/compiler/native-typescript.ts +0 -29
- package/src/compiler/nesting.ts +0 -118
- package/src/compiler/object-literal.ts +0 -136
- package/src/compiler/own-markup.ts +0 -75
- package/src/compiler/page-settings.ts +0 -25
- package/src/compiler/parser.ts +0 -1473
- package/src/compiler/pattern-names.ts +0 -31
- package/src/compiler/plan.ts +0 -298
- package/src/compiler/public.ts +0 -4
- package/src/compiler/removed-lints.ts +0 -90
- package/src/compiler/rest-omits.ts +0 -15
- package/src/compiler/rewrite-reads.ts +0 -488
- package/src/compiler/rewrite-scan.ts +0 -77
- package/src/compiler/rewrite-tags.ts +0 -95
- package/src/compiler/rewrite-types.ts +0 -82
- package/src/compiler/rewrite.ts +0 -854
- package/src/compiler/route-lints.ts +0 -69
- package/src/compiler/scanner.ts +0 -175
- package/src/compiler/schema-lints.ts +0 -13
- package/src/compiler/scope.ts +0 -713
- package/src/compiler/scoped-style.ts +0 -480
- package/src/compiler/script-fence.ts +0 -257
- package/src/compiler/script-props.ts +0 -242
- package/src/compiler/script-recipe.ts +0 -152
- package/src/compiler/script-server.ts +0 -474
- package/src/compiler/script-shared.ts +0 -198
- package/src/compiler/script-split.ts +0 -227
- package/src/compiler/script.ts +0 -137
- package/src/compiler/serial-awaits.ts +0 -123
- package/src/compiler/server-imports.ts +0 -52
- package/src/compiler/signal-from-prop.ts +0 -141
- package/src/compiler/slot-types.ts +0 -46
- package/src/compiler/status-pages.ts +0 -11
- package/src/compiler/style-arguments.ts +0 -20
- package/src/compiler/style-lints.ts +0 -188
- package/src/compiler/template-reads.ts +0 -251
- package/src/compiler/template-scopes.ts +0 -125
- package/src/compiler/template-walk.ts +0 -73
- package/src/compiler/twin.ts +0 -6
- package/src/compiler/type-parameters.ts +0 -45
- package/src/compiler/unowned-effects.ts +0 -136
- package/src/compiler/validate-fields.ts +0 -68
- package/src/compiler/validate-fixes.ts +0 -74
- package/src/compiler/validate.ts +0 -840
- package/src/compiler/walk.ts +0 -70
- package/src/config-extensions.ts +0 -222
- package/src/config-loader.ts +0 -365
- package/src/config-resolve.ts +0 -72
- package/src/config-rules.ts +0 -138
- package/src/config-shape.ts +0 -260
- package/src/config-switch.ts +0 -14
- package/src/config.ts +0 -724
- package/src/content/claims.ts +0 -67
- package/src/content/drafts.ts +0 -43
- package/src/content/edit-entries.ts +0 -927
- package/src/content/edit-fields.ts +0 -247
- package/src/content/edit-registry.ts +0 -47
- package/src/content/edit-shared.ts +0 -188
- package/src/content/edit.ts +0 -5
- package/src/content/entry-head.ts +0 -58
- package/src/content/entry-route.ts +0 -11
- package/src/content/excerpt.ts +0 -99
- package/src/content/feed.ts +0 -241
- package/src/content/heading-id.ts +0 -48
- package/src/content/held-back.ts +0 -15
- package/src/content/humanize.ts +0 -9
- package/src/content/images.ts +0 -203
- package/src/content/index.ts +0 -761
- package/src/content/key.ts +0 -9
- package/src/content/load.ts +0 -781
- package/src/content/markdown-extensions.ts +0 -284
- package/src/content/markdown.ts +0 -939
- package/src/content/migrate.ts +0 -195
- package/src/content/modified.ts +0 -75
- package/src/content/paginate.ts +0 -119
- package/src/content/problems.ts +0 -44
- package/src/content/references.ts +0 -72
- package/src/content/rewrite.ts +0 -97
- package/src/content/server.ts +0 -469
- package/src/content/source-draft.ts +0 -38
- package/src/content/turns.ts +0 -28
- package/src/content/validate.ts +0 -342
- package/src/dev/address.ts +0 -78
- package/src/dev/base-proxy.ts +0 -104
- package/src/dev/builder.ts +0 -104
- package/src/dev/client.ts +0 -158
- package/src/dev/config-record.ts +0 -65
- package/src/dev/fingerprint.ts +0 -327
- package/src/dev/inspector.ts +0 -248
- package/src/dev/loopback.ts +0 -25
- package/src/dev/pages.ts +0 -6
- package/src/dev/preload.ts +0 -428
- package/src/dev/refuse.ts +0 -29
- package/src/dev/reload.ts +0 -282
- package/src/dev/render-server.ts +0 -131
- package/src/dev/render-socket.ts +0 -53
- package/src/dev/screenshot-diff.ts +0 -76
- package/src/dev/screenshot-limits.ts +0 -17
- package/src/dev/screenshot.ts +0 -410
- package/src/dev/session/client.ts +0 -173
- package/src/dev/session/keys.ts +0 -51
- package/src/dev/session/ports.ts +0 -30
- package/src/dev/session/queue.ts +0 -133
- package/src/dev/session/report.ts +0 -172
- package/src/dev/session/servers.ts +0 -295
- package/src/dev/session/types.ts +0 -309
- package/src/dev/sources.ts +0 -265
- package/src/dev/tailwind.ts +0 -93
- package/src/dev/types-process.ts +0 -172
- package/src/dev/types.ts +0 -187
- package/src/docs-props.ts +0 -168
- package/src/docs-search.ts +0 -372
- package/src/editors.ts +0 -238
- package/src/entities.ts +0 -41
- package/src/eslint/index.ts +0 -472
- package/src/features.ts +0 -22
- package/src/format/index.ts +0 -75
- package/src/format/tailwind.ts +0 -190
- package/src/generate-resource.ts +0 -443
- package/src/generate.ts +0 -365
- package/src/imports.ts +0 -157
- package/src/input-types.ts +0 -2
- package/src/keyword-attributes.ts +0 -12
- package/src/lsp/bridge.ts +0 -80
- package/src/lsp/code-actions.ts +0 -71
- package/src/lsp/completions.ts +0 -270
- package/src/lsp/component-props.ts +0 -109
- package/src/lsp/diagnostics.ts +0 -219
- package/src/lsp/document-links.ts +0 -56
- package/src/lsp/host.ts +0 -112
- package/src/lsp/island-lens.ts +0 -41
- package/src/lsp/mapping.ts +0 -163
- package/src/lsp/navigation.ts +0 -207
- package/src/lsp/outline.ts +0 -233
- package/src/lsp/positions.ts +0 -13
- package/src/lsp/project-checks.ts +0 -119
- package/src/lsp/protocol.ts +0 -167
- package/src/lsp/range-format.ts +0 -62
- package/src/lsp/rename.ts +0 -115
- package/src/lsp/renames.ts +0 -126
- package/src/lsp/route-documents.ts +0 -21
- package/src/lsp/route-links.ts +0 -92
- package/src/lsp/rpc.ts +0 -185
- package/src/lsp/semantic-tokens.ts +0 -481
- package/src/lsp/server.ts +0 -613
- package/src/lsp/template-completion.ts +0 -361
- package/src/lsp/ui-completion.ts +0 -206
- package/src/mcp/guards.ts +0 -66
- package/src/mcp/install.ts +0 -7
- package/src/mcp/protocol.ts +0 -289
- package/src/mcp/tools.ts +0 -819
- package/src/migrate/astro.ts +0 -367
- package/src/migrate/content.ts +0 -248
- package/src/migrate/html.ts +0 -96
- package/src/migrate/markup.ts +0 -737
- package/src/migrate/project.ts +0 -365
- package/src/native-plugins.ts +0 -2
- package/src/nearest.ts +0 -23
- package/src/new.ts +0 -351
- package/src/package-names.ts +0 -25
- package/src/peers.ts +0 -82
- package/src/project.ts +0 -223
- package/src/runtime/action-call.ts +0 -346
- package/src/runtime/action-encode.ts +0 -84
- package/src/runtime/action-error.ts +0 -29
- package/src/runtime/action-form.ts +0 -474
- package/src/runtime/action-marks.ts +0 -10
- package/src/runtime/action-navigate.ts +0 -73
- package/src/runtime/action-owner.ts +0 -95
- package/src/runtime/action-post.ts +0 -164
- package/src/runtime/action-protection.ts +0 -50
- package/src/runtime/action-revive.ts +0 -21
- package/src/runtime/action-reviver.ts +0 -1
- package/src/runtime/action-run.ts +0 -332
- package/src/runtime/action-shared.ts +0 -472
- package/src/runtime/action-stream.ts +0 -210
- package/src/runtime/action.ts +0 -150
- package/src/runtime/analytics.client.ts +0 -2
- package/src/runtime/announce.ts +0 -34
- package/src/runtime/api-error-class.ts +0 -15
- package/src/runtime/api-error.ts +0 -74
- package/src/runtime/api-url.ts +0 -83
- package/src/runtime/arrival.ts +0 -23
- package/src/runtime/await-failed.ts +0 -9
- package/src/runtime/await.server.ts +0 -215
- package/src/runtime/await.ts +0 -13
- package/src/runtime/base.ts +0 -144
- package/src/runtime/build.ts +0 -21
- package/src/runtime/button-form.ts +0 -5
- package/src/runtime/byte-count.ts +0 -14
- package/src/runtime/byte-size.ts +0 -17
- package/src/runtime/cache-hooks.ts +0 -54
- package/src/runtime/cache-live-id.ts +0 -5
- package/src/runtime/cache.server.ts +0 -183
- package/src/runtime/cache.ts +0 -916
- package/src/runtime/call-body.ts +0 -29
- package/src/runtime/call-result.ts +0 -194
- package/src/runtime/checks.ts +0 -416
- package/src/runtime/claimed.ts +0 -20
- package/src/runtime/class-table.ts +0 -60
- package/src/runtime/client.ts +0 -445
- package/src/runtime/connection.ts +0 -174
- package/src/runtime/consent.ts +0 -88
- package/src/runtime/core.ts +0 -559
- package/src/runtime/counters.ts +0 -33
- package/src/runtime/described.ts +0 -76
- package/src/runtime/dev-a11y.ts +0 -142
- package/src/runtime/dev-boot.ts +0 -57
- package/src/runtime/dev-inspector.ts +0 -341
- package/src/runtime/dev-patch.ts +0 -167
- package/src/runtime/dev-refresh.ts +0 -14
- package/src/runtime/dev-styles.ts +0 -158
- package/src/runtime/dev-tab-data.ts +0 -197
- package/src/runtime/dev-tab-env.ts +0 -160
- package/src/runtime/dev-tab-head.ts +0 -282
- package/src/runtime/dev-tab-i18n.ts +0 -72
- package/src/runtime/dev-tab-images.ts +0 -319
- package/src/runtime/dev-tab-jobs.ts +0 -188
- package/src/runtime/dev-tab-network.ts +0 -230
- package/src/runtime/dev-tab-not-found.ts +0 -101
- package/src/runtime/dev-tab-performance.ts +0 -411
- package/src/runtime/dev-tab-reading.ts +0 -600
- package/src/runtime/dev-tab-routes.ts +0 -111
- package/src/runtime/dev-tab-styles.ts +0 -175
- package/src/runtime/dev-tool-constants.ts +0 -22
- package/src/runtime/dev-tool-icons.ts +0 -86
- package/src/runtime/dev-tool-keys.ts +0 -53
- package/src/runtime/dev-tool-kit.ts +0 -77
- package/src/runtime/dev-tool-layout.ts +0 -200
- package/src/runtime/dev-tool-markdown.ts +0 -144
- package/src/runtime/dev-tool-outline.ts +0 -44
- package/src/runtime/dev-tool-parts.ts +0 -332
- package/src/runtime/dev-tool-problems.ts +0 -310
- package/src/runtime/dev-tool-request.ts +0 -226
- package/src/runtime/dev-tool-shell.ts +0 -81
- package/src/runtime/dev-tool-style.ts +0 -242
- package/src/runtime/dev-tool-swaps.ts +0 -21
- package/src/runtime/dev-tool-tab-order.ts +0 -475
- package/src/runtime/dev-tool-tabs.ts +0 -205
- package/src/runtime/dev-tool-vitals.ts +0 -109
- package/src/runtime/dev-tool-window.ts +0 -213
- package/src/runtime/dev-tool.public.ts +0 -5
- package/src/runtime/dev-tool.ts +0 -332
- package/src/runtime/dispatch.ts +0 -11
- package/src/runtime/dom-await.ts +0 -132
- package/src/runtime/dom-image.ts +0 -15
- package/src/runtime/dom-lazy.ts +0 -276
- package/src/runtime/dom-loop.ts +0 -333
- package/src/runtime/dom-spread.ts +0 -106
- package/src/runtime/dom-try.ts +0 -58
- package/src/runtime/dom.ts +0 -1027
- package/src/runtime/draft-issues.ts +0 -23
- package/src/runtime/duration-words.ts +0 -22
- package/src/runtime/duration.ts +0 -62
- package/src/runtime/edit.ts +0 -109
- package/src/runtime/element-size.ts +0 -67
- package/src/runtime/email.ts +0 -65
- package/src/runtime/ended-entry.ts +0 -10
- package/src/runtime/env.ts +0 -42
- package/src/runtime/escape.ts +0 -47
- package/src/runtime/fetch-island.ts +0 -211
- package/src/runtime/field-errors.ts +0 -58
- package/src/runtime/field-refusal.ts +0 -179
- package/src/runtime/fields.ts +0 -553
- package/src/runtime/fills.ts +0 -52
- package/src/runtime/focus.ts +0 -54
- package/src/runtime/follow-log.ts +0 -154
- package/src/runtime/form-controls.ts +0 -4
- package/src/runtime/form-hold.ts +0 -87
- package/src/runtime/form-protect.ts +0 -103
- package/src/runtime/form-submits.ts +0 -212
- package/src/runtime/form-types.ts +0 -99
- package/src/runtime/form.ts +0 -194
- package/src/runtime/forms.ts +0 -345
- package/src/runtime/french.ts +0 -39
- package/src/runtime/head.ts +0 -504
- package/src/runtime/html.ts +0 -745
- package/src/runtime/hydrate-when.ts +0 -103
- package/src/runtime/i18n-links.ts +0 -44
- package/src/runtime/i18n.client.ts +0 -223
- package/src/runtime/i18n.server.ts +0 -141
- package/src/runtime/i18n.ts +0 -621
- package/src/runtime/icons.ts +0 -99
- package/src/runtime/image.public.ts +0 -3
- package/src/runtime/image.ts +0 -598
- package/src/runtime/in-view.ts +0 -91
- package/src/runtime/index.ts +0 -87
- package/src/runtime/install-prompt.ts +0 -97
- package/src/runtime/internal.ts +0 -196
- package/src/runtime/invalid.ts +0 -49
- package/src/runtime/invalidated-keys.ts +0 -11
- package/src/runtime/island-request.ts +0 -48
- package/src/runtime/island.client.ts +0 -9
- package/src/runtime/island.server.ts +0 -507
- package/src/runtime/jsx-runtime.ts +0 -2
- package/src/runtime/jsx.ts +0 -262
- package/src/runtime/kay-error.ts +0 -29
- package/src/runtime/keepalive.ts +0 -21
- package/src/runtime/lasting.ts +0 -40
- package/src/runtime/leave.ts +0 -72
- package/src/runtime/listen-with.ts +0 -8
- package/src/runtime/listener-set.ts +0 -22
- package/src/runtime/live-cache.ts +0 -469
- package/src/runtime/live-props.ts +0 -48
- package/src/runtime/live-resource.server.ts +0 -92
- package/src/runtime/live-revalidate.ts +0 -53
- package/src/runtime/live-value.client.ts +0 -416
- package/src/runtime/live-value.server.ts +0 -700
- package/src/runtime/live-value.shared.ts +0 -131
- package/src/runtime/live-value.ts +0 -55
- package/src/runtime/live.ts +0 -1059
- package/src/runtime/load-scope.ts +0 -78
- package/src/runtime/local-status.ts +0 -8
- package/src/runtime/local-types.ts +0 -96
- package/src/runtime/local.ts +0 -850
- package/src/runtime/locale-state.ts +0 -55
- package/src/runtime/localized.ts +0 -18
- package/src/runtime/log.ts +0 -54
- package/src/runtime/markdown-autolink.ts +0 -69
- package/src/runtime/markdown-render.client.ts +0 -199
- package/src/runtime/markdown-task.ts +0 -16
- package/src/runtime/markdown.client.ts +0 -97
- package/src/runtime/markdown.server.ts +0 -28
- package/src/runtime/markdown.ts +0 -148
- package/src/runtime/markers.ts +0 -25
- package/src/runtime/media-query.ts +0 -30
- package/src/runtime/mount.ts +0 -71
- package/src/runtime/move.ts +0 -18
- package/src/runtime/navigate-api.ts +0 -128
- package/src/runtime/navigate.ts +0 -365
- package/src/runtime/navigation-entry.ts +0 -2
- package/src/runtime/navigation-state.ts +0 -149
- package/src/runtime/navigation.ts +0 -244
- package/src/runtime/online.ts +0 -27
- package/src/runtime/optimistic.ts +0 -107
- package/src/runtime/outside.ts +0 -68
- package/src/runtime/page-data.ts +0 -60
- package/src/runtime/page-errors.ts +0 -31
- package/src/runtime/page-swap.ts +0 -530
- package/src/runtime/page-title.ts +0 -69
- package/src/runtime/params.ts +0 -24
- package/src/runtime/pending.ts +0 -44
- package/src/runtime/persist.ts +0 -299
- package/src/runtime/persisted.ts +0 -125
- package/src/runtime/placeholder.ts +0 -41
- package/src/runtime/poll-backoff.ts +0 -85
- package/src/runtime/prefetch.ts +0 -149
- package/src/runtime/presence.ts +0 -98
- package/src/runtime/preview.ts +0 -65
- package/src/runtime/push.ts +0 -294
- package/src/runtime/query-param.ts +0 -300
- package/src/runtime/queue-jobs.ts +0 -51
- package/src/runtime/random-id.ts +0 -5
- package/src/runtime/reactive-collections.ts +0 -214
- package/src/runtime/reactive.ts +0 -927
- package/src/runtime/recipe.ts +0 -79
- package/src/runtime/refetch-island.ts +0 -25
- package/src/runtime/refuse.ts +0 -59
- package/src/runtime/rendered.ts +0 -17
- package/src/runtime/report-error.ts +0 -25
- package/src/runtime/resource-tags.ts +0 -35
- package/src/runtime/retry-later.ts +0 -72
- package/src/runtime/reveal.ts +0 -47
- package/src/runtime/root.ts +0 -6
- package/src/runtime/route.ts +0 -84
- package/src/runtime/row-key.ts +0 -4
- package/src/runtime/safe-code.ts +0 -25
- package/src/runtime/safe-html.ts +0 -51
- package/src/runtime/sanitize.ts +0 -378
- package/src/runtime/save-data.ts +0 -4
- package/src/runtime/schema-bounds.ts +0 -50
- package/src/runtime/schema-record.ts +0 -32
- package/src/runtime/schema.client.ts +0 -114
- package/src/runtime/schema.ts +0 -374
- package/src/runtime/search-arrival.ts +0 -107
- package/src/runtime/search-results.ts +0 -47
- package/src/runtime/search.ts +0 -325
- package/src/runtime/send.ts +0 -115
- package/src/runtime/seo.ts +0 -70
- package/src/runtime/server-islands.ts +0 -5
- package/src/runtime/shortcut.ts +0 -186
- package/src/runtime/site.ts +0 -37
- package/src/runtime/size-text.ts +0 -25
- package/src/runtime/snapshots.ts +0 -116
- package/src/runtime/socket-message.ts +0 -26
- package/src/runtime/sqlite.server.ts +0 -52
- package/src/runtime/sse.ts +0 -88
- package/src/runtime/stale.ts +0 -181
- package/src/runtime/standard-schema.ts +0 -32
- package/src/runtime/static-slots.ts +0 -78
- package/src/runtime/store-base.ts +0 -31
- package/src/runtime/store.ts +0 -309
- package/src/runtime/swap-fetch.ts +0 -215
- package/src/runtime/swap-flight.ts +0 -84
- package/src/runtime/swap-focus.ts +0 -283
- package/src/runtime/swap-head.ts +0 -355
- package/src/runtime/swap-held.ts +0 -41
- package/src/runtime/swap-kept.ts +0 -357
- package/src/runtime/swap-loading.ts +0 -44
- package/src/runtime/swap-morph.ts +0 -238
- package/src/runtime/swap-refusal.ts +0 -40
- package/src/runtime/swap-streamed.ts +0 -161
- package/src/runtime/swap-transition.ts +0 -117
- package/src/runtime/swap.ts +0 -37
- package/src/runtime/template-context.ts +0 -81
- package/src/runtime/text-hash.ts +0 -17
- package/src/runtime/transition.ts +0 -227
- package/src/runtime/ui.ts +0 -32
- package/src/runtime/uid.server.ts +0 -71
- package/src/runtime/uid.ts +0 -56
- package/src/runtime/upload.ts +0 -49
- package/src/runtime/url-attributes.ts +0 -2
- package/src/runtime/url-report.ts +0 -24
- package/src/runtime/url.ts +0 -37
- package/src/runtime/validate-run.client.ts +0 -179
- package/src/runtime/validate.client.ts +0 -11
- package/src/runtime/validate.ts +0 -177
- package/src/runtime/values.ts +0 -340
- package/src/runtime/visibility.ts +0 -35
- package/src/runtime/warn-once.ts +0 -22
- package/src/runtime/wire.ts +0 -214
- package/src/runtime/with-query.ts +0 -74
- package/src/runtime/words.client.ts +0 -138
- package/src/runtime/words.server.ts +0 -53
- package/src/runtime/work-worker.ts +0 -4
- package/src/runtime/work.client.ts +0 -112
- package/src/runtime/work.ts +0 -87
- package/src/server/accept-language.ts +0 -37
- package/src/server/action-clash.ts +0 -7
- package/src/server/action-hooks.ts +0 -76
- package/src/server/action-input.ts +0 -58
- package/src/server/action-iterable.ts +0 -90
- package/src/server/action-module.ts +0 -16
- package/src/server/actions.ts +0 -883
- package/src/server/address.ts +0 -172
- package/src/server/analytics-script.ts +0 -302
- package/src/server/analytics-server.ts +0 -564
- package/src/server/analytics-words.ts +0 -13
- package/src/server/analytics.ts +0 -423
- package/src/server/answer.ts +0 -102
- package/src/server/api-input.ts +0 -166
- package/src/server/api-modules.ts +0 -246
- package/src/server/api-params.ts +0 -83
- package/src/server/api.ts +0 -823
- package/src/server/app-database.ts +0 -43
- package/src/server/app-hooks.ts +0 -166
- package/src/server/app-identity.ts +0 -70
- package/src/server/app-stages.ts +0 -823
- package/src/server/app-store.ts +0 -79
- package/src/server/app.ts +0 -238
- package/src/server/auth-mails.ts +0 -162
- package/src/server/auto-listen.ts +0 -177
- package/src/server/avif-worker.ts +0 -138
- package/src/server/avif.ts +0 -124
- package/src/server/base.ts +0 -136
- package/src/server/basic-auth.ts +0 -129
- package/src/server/body.ts +0 -179
- package/src/server/build-files.ts +0 -117
- package/src/server/builtins.ts +0 -8
- package/src/server/bundle.ts +0 -83
- package/src/server/button-form-rule.ts +0 -20
- package/src/server/card-draw.ts +0 -220
- package/src/server/card-template.ts +0 -256
- package/src/server/card.ts +0 -666
- package/src/server/ceiling.ts +0 -10
- package/src/server/clean-context.ts +0 -6
- package/src/server/client.ts +0 -612
- package/src/server/codec/avif-enc-build.ts +0 -2
- package/src/server/codec/avif-enc.d.ts +0 -15
- package/src/server/codec/avif-enc.js +0 -2
- package/src/server/codec/avif-enc.wasm +0 -0
- package/src/server/compress-policy.ts +0 -40
- package/src/server/compress.ts +0 -1010
- package/src/server/config-error.ts +0 -54
- package/src/server/config-limits.ts +0 -186
- package/src/server/consent-cookie.ts +0 -10
- package/src/server/context-layout/_layout.kay +0 -7
- package/src/server/context-reads.ts +0 -33
- package/src/server/context-record.ts +0 -58
- package/src/server/context-values.ts +0 -182
- package/src/server/cookie-names.ts +0 -10
- package/src/server/cors.ts +0 -235
- package/src/server/crop.ts +0 -153
- package/src/server/cross-site.ts +0 -155
- package/src/server/csp.ts +0 -40
- package/src/server/dev-data.ts +0 -558
- package/src/server/dev-errors.ts +0 -270
- package/src/server/dev-footprint.ts +0 -19
- package/src/server/dev-head.ts +0 -95
- package/src/server/dev-jobs.ts +0 -59
- package/src/server/dev-not-found.ts +0 -96
- package/src/server/dev-notes.ts +0 -12
- package/src/server/dev-offered.ts +0 -13
- package/src/server/dev-secret.ts +0 -65
- package/src/server/dev-sizes.ts +0 -114
- package/src/server/dev-sqlite-worker.ts +0 -96
- package/src/server/dev-ui.ts +0 -299
- package/src/server/dev.ts +0 -875
- package/src/server/dictionary.ts +0 -190
- package/src/server/drain.ts +0 -40
- package/src/server/editor.ts +0 -79
- package/src/server/endpoint-claims.ts +0 -29
- package/src/server/endpoint-verbs.ts +0 -43
- package/src/server/endpoints.ts +0 -420
- package/src/server/entry-drafts.ts +0 -151
- package/src/server/entry-head.ts +0 -50
- package/src/server/entry-urls.ts +0 -150
- package/src/server/env-state.ts +0 -176
- package/src/server/error-maps.ts +0 -137
- package/src/server/errors.ts +0 -110
- package/src/server/event-stream.ts +0 -216
- package/src/server/face.ts +0 -788
- package/src/server/favicon.png +0 -0
- package/src/server/favicon.svg +0 -1
- package/src/server/favicon.ts +0 -437
- package/src/server/fetch-public.ts +0 -119
- package/src/server/file-answer.ts +0 -89
- package/src/server/file-limit.ts +0 -68
- package/src/server/file-type.ts +0 -46
- package/src/server/flash.ts +0 -140
- package/src/server/font-metrics.ts +0 -294
- package/src/server/fonts.ts +0 -344
- package/src/server/forms.ts +0 -89
- package/src/server/guard-requirement.ts +0 -23
- package/src/server/guard-runs.ts +0 -30
- package/src/server/guards.ts +0 -138
- package/src/server/handler-timing.ts +0 -12
- package/src/server/history.ts +0 -3
- package/src/server/hooks.ts +0 -170
- package/src/server/host-allowlist.ts +0 -63
- package/src/server/hydration.ts +0 -7
- package/src/server/i18n.ts +0 -533
- package/src/server/image-color.ts +0 -79
- package/src/server/image-format.ts +0 -181
- package/src/server/image-limits.ts +0 -89
- package/src/server/image-metadata-bmff.ts +0 -243
- package/src/server/image-metadata.ts +0 -316
- package/src/server/image.ts +0 -835
- package/src/server/internal.ts +0 -8
- package/src/server/job-admin.ts +0 -197
- package/src/server/job-context.ts +0 -35
- package/src/server/job-status.ts +0 -8
- package/src/server/job-steps.ts +0 -2
- package/src/server/jobs-page.ts +0 -143
- package/src/server/jobs.ts +0 -434
- package/src/server/kay-routes.ts +0 -221
- package/src/server/kay-server.ts +0 -228
- package/src/server/kept-exports.ts +0 -176
- package/src/server/kept-pages.ts +0 -117
- package/src/server/kept-source.ts +0 -609
- package/src/server/kv.ts +0 -214
- package/src/server/lazy-guard.ts +0 -74
- package/src/server/library.ts +0 -143
- package/src/server/lifecycle.ts +0 -378
- package/src/server/limit.ts +0 -33
- package/src/server/link-schemes.ts +0 -23
- package/src/server/links.ts +0 -238
- package/src/server/literal-writes.ts +0 -756
- package/src/server/live.ts +0 -700
- package/src/server/load-budget.ts +0 -69
- package/src/server/loader.ts +0 -182
- package/src/server/loading-page.ts +0 -41
- package/src/server/local-files.ts +0 -26
- package/src/server/log.ts +0 -297
- package/src/server/maintenance.ts +0 -141
- package/src/server/mcp-key.ts +0 -168
- package/src/server/mcp.ts +0 -739
- package/src/server/memory-jobs.ts +0 -168
- package/src/server/memory-mark.ts +0 -12
- package/src/server/message-drafts.ts +0 -284
- package/src/server/metrics.ts +0 -225
- package/src/server/missing-hits.ts +0 -41
- package/src/server/module-state.ts +0 -327
- package/src/server/new-tab.ts +0 -28
- package/src/server/not-found-config.ts +0 -161
- package/src/server/not-found.ts +0 -828
- package/src/server/notifications.ts +0 -360
- package/src/server/offline.ts +0 -575
- package/src/server/openapi.ts +0 -527
- package/src/server/option-keys.ts +0 -15
- package/src/server/over-limit.ts +0 -29
- package/src/server/overlay.ts +0 -196
- package/src/server/own-headers.ts +0 -221
- package/src/server/page-error.ts +0 -57
- package/src/server/page-flags.ts +0 -15
- package/src/server/page-headers.ts +0 -93
- package/src/server/page-hook.ts +0 -201
- package/src/server/page-limits.ts +0 -142
- package/src/server/page-reads.ts +0 -63
- package/src/server/page-routes.ts +0 -377
- package/src/server/page-seo.ts +0 -29
- package/src/server/page-settings.ts +0 -118
- package/src/server/params.ts +0 -197
- package/src/server/parent.ts +0 -8
- package/src/server/personal-data.ts +0 -47
- package/src/server/pg-cache.ts +0 -181
- package/src/server/pg-data.ts +0 -255
- package/src/server/pg-jobs.ts +0 -512
- package/src/server/pg-limit.ts +0 -52
- package/src/server/pg-live.ts +0 -289
- package/src/server/pg-not-found.ts +0 -441
- package/src/server/pg-notify.ts +0 -216
- package/src/server/pg-orm.ts +0 -26
- package/src/server/pg-poll.ts +0 -341
- package/src/server/pg-redirects.ts +0 -211
- package/src/server/pg-rooms.ts +0 -550
- package/src/server/pg-sql.ts +0 -16
- package/src/server/pg-stores.ts +0 -358
- package/src/server/phases.ts +0 -249
- package/src/server/plugin.ts +0 -30
- package/src/server/plumbing.ts +0 -90
- package/src/server/png.ts +0 -108
- package/src/server/prebuilt-loader.ts +0 -110
- package/src/server/prerender.ts +0 -778
- package/src/server/prerendered.ts +0 -162
- package/src/server/presence.ts +0 -251
- package/src/server/preview.ts +0 -705
- package/src/server/private-dir.ts +0 -87
- package/src/server/protection.ts +0 -1094
- package/src/server/proxy-key.ts +0 -79
- package/src/server/public-suffix.ts +0 -59
- package/src/server/public-suffixes.ts +0 -502
- package/src/server/public.ts +0 -299
- package/src/server/publishing.ts +0 -176
- package/src/server/pure-page.ts +0 -371
- package/src/server/push-crypto.ts +0 -155
- package/src/server/push-keys-command.ts +0 -25
- package/src/server/push-server.ts +0 -125
- package/src/server/push-settings.ts +0 -81
- package/src/server/push-store.ts +0 -182
- package/src/server/push.ts +0 -472
- package/src/server/query.ts +0 -251
- package/src/server/queue-live.ts +0 -291
- package/src/server/queue-scheduler.ts +0 -426
- package/src/server/queue-telling.ts +0 -53
- package/src/server/queue.ts +0 -944
- package/src/server/raster.ts +0 -176
- package/src/server/rate-limit.ts +0 -70
- package/src/server/rate-refusal.ts +0 -36
- package/src/server/rate-windows.ts +0 -14
- package/src/server/reach-walk.ts +0 -65
- package/src/server/reach.ts +0 -124
- package/src/server/receive.ts +0 -43
- package/src/server/redirect-spelling.ts +0 -57
- package/src/server/redirects.ts +0 -209
- package/src/server/reload.ts +0 -88
- package/src/server/remote.ts +0 -359
- package/src/server/render-document.ts +0 -555
- package/src/server/render.ts +0 -1022
- package/src/server/report.ts +0 -103
- package/src/server/request-context.ts +0 -137
- package/src/server/request-read.ts +0 -38
- package/src/server/request-record.ts +0 -107
- package/src/server/request-scope.ts +0 -58
- package/src/server/request-timeout.ts +0 -209
- package/src/server/request-url.ts +0 -47
- package/src/server/request-user.ts +0 -25
- package/src/server/resources.ts +0 -133
- package/src/server/response-mismatch.ts +0 -21
- package/src/server/revalidate.ts +0 -100
- package/src/server/rewrite.ts +0 -143
- package/src/server/rooms.ts +0 -800
- package/src/server/route-settings.ts +0 -236
- package/src/server/route-table.ts +0 -155
- package/src/server/routes.ts +0 -735
- package/src/server/runtime-redirect-api.ts +0 -227
- package/src/server/runtime-redirects.ts +0 -438
- package/src/server/safe-path.ts +0 -26
- package/src/server/save-data.ts +0 -150
- package/src/server/schema-answer.ts +0 -42
- package/src/server/schema-check.ts +0 -102
- package/src/server/scope.ts +0 -136
- package/src/server/seal.ts +0 -73
- package/src/server/secret.ts +0 -76
- package/src/server/seo.ts +0 -246
- package/src/server/served-paths.ts +0 -136
- package/src/server/server-islands.ts +0 -175
- package/src/server/server-record.ts +0 -80
- package/src/server/serving.ts +0 -35
- package/src/server/session.ts +0 -802
- package/src/server/setup.ts +0 -259
- package/src/server/sha256.ts +0 -15
- package/src/server/signals.ts +0 -117
- package/src/server/signed.ts +0 -63
- package/src/server/site-facts.ts +0 -19
- package/src/server/site-paths.ts +0 -3
- package/src/server/sitemap.ts +0 -415
- package/src/server/snake-case.ts +0 -6
- package/src/server/socket.ts +0 -343
- package/src/server/source.ts +0 -191
- package/src/server/speculation.ts +0 -57
- package/src/server/sqlite-data.ts +0 -19
- package/src/server/sqlite-live.ts +0 -202
- package/src/server/stale-pages.ts +0 -105
- package/src/server/stamp.ts +0 -222
- package/src/server/storage.ts +0 -582
- package/src/server/stream.ts +0 -316
- package/src/server/string.ts +0 -79
- package/src/server/svg-icon.ts +0 -76
- package/src/server/swap.ts +0 -4
- package/src/server/tool-outputs.ts +0 -71
- package/src/server/tool-settings.ts +0 -12
- package/src/server/trace-context.ts +0 -89
- package/src/server/trace.ts +0 -198
- package/src/server/translations.ts +0 -30
- package/src/server/typography.ts +0 -248
- package/src/server/uncaught.ts +0 -60
- package/src/server/unsafe-urls.ts +0 -29
- package/src/server/validate.ts +0 -346
- package/src/server/violations.ts +0 -160
- package/src/server/visit.ts +0 -54
- package/src/server/vitals-routes/_guard.ts +0 -12
- package/src/server/vitals-routes/index.kay +0 -45
- package/src/server/vitals-routes/vitals.css +0 -30
- package/src/server/vitals-screen.ts +0 -24
- package/src/server/vitals-script.ts +0 -102
- package/src/server/vitals-server.ts +0 -135
- package/src/server/vitals-store.ts +0 -233
- package/src/server/vitals.ts +0 -81
- package/src/server/wasm.d.ts +0 -6
- package/src/server/web-socket.ts +0 -13
- package/src/server/wildcards.ts +0 -87
- package/src/server/words.ts +0 -149
- package/src/server/work-scope.ts +0 -65
- package/src/server/work.ts +0 -91
- package/src/server/workers.ts +0 -294
- package/src/server/workflow.ts +0 -528
- package/src/server/writes.ts +0 -161
- package/src/server/ws-limits.ts +0 -183
- package/src/svg-attributes.ts +0 -240
- package/src/template-auth.ts +0 -79
- package/src/template-ci.ts +0 -156
- package/src/template-config.ts +0 -43
- package/src/template-docker.ts +0 -260
- package/src/template-pins.ts +0 -14
- package/src/template-shared.ts +0 -56
- package/src/template-starter.ts +0 -131
- package/src/template-styles.ts +0 -166
- package/src/template-ws.ts +0 -57
- package/src/templates.ts +0 -74
- package/src/test/a11y-dom.ts +0 -70
- package/src/test/a11y.ts +0 -55
- package/src/test/browser.ts +0 -1235
- package/src/test/clock.ts +0 -121
- package/src/test/content.ts +0 -345
- package/src/test/cookies.ts +0 -94
- package/src/test/database.ts +0 -57
- package/src/test/dom.ts +0 -90
- package/src/test/env.ts +0 -58
- package/src/test/html-snapshot.ts +0 -103
- package/src/test/interact.ts +0 -134
- package/src/test/isolation.ts +0 -19
- package/src/test/lazy-plugins.ts +0 -269
- package/src/test/mount.ts +0 -258
- package/src/test/natives.ts +0 -44
- package/src/test/network.ts +0 -678
- package/src/test/outgoing.ts +0 -138
- package/src/test/outputs.ts +0 -54
- package/src/test/override-env.ts +0 -40
- package/src/test/page-checks.ts +0 -12
- package/src/test/page-types.ts +0 -153
- package/src/test/page.ts +0 -338
- package/src/test/preload.ts +0 -27
- package/src/test/reset.ts +0 -13
- package/src/test/root.ts +0 -13
- package/src/test/scratch.ts +0 -12
- package/src/test/screenshot-match.ts +0 -69
- package/src/test/service.ts +0 -180
- package/src/test/shared-modules.ts +0 -350
- package/src/test/site-actions.ts +0 -155
- package/src/test/site-api.ts +0 -19
- package/src/test/site-keys.ts +0 -44
- package/src/test/site-mcp.ts +0 -36
- package/src/test/site-scope.ts +0 -35
- package/src/test/site-socket.ts +0 -128
- package/src/test/site-types.ts +0 -180
- package/src/test/site-world.ts +0 -86
- package/src/test/sites.ts +0 -29
- package/src/test/text-match.ts +0 -44
- package/src/test/timeout.ts +0 -45
- package/src/test/wait.ts +0 -34
- package/src/test/writable.ts +0 -20
- package/src/tsconfig.app.json +0 -21
- package/src/tsgo.ts +0 -18
- package/types/a11y/audit.d.ts +0 -32
- package/types/a11y/audit.d.ts.map +0 -1
- package/types/a11y/report.d.ts +0 -20
- package/types/a11y/report.d.ts.map +0 -1
- package/types/a11y/rgaa-criteria.d.ts +0 -5
- package/types/a11y/rgaa-criteria.d.ts.map +0 -1
- package/types/a11y/standards.d.ts +0 -17
- package/types/a11y/standards.d.ts.map +0 -1
- package/types/a11y/targets.d.ts +0 -20
- package/types/a11y/targets.d.ts.map +0 -1
- package/types/add.d.ts +0 -56
- package/types/add.d.ts.map +0 -1
- package/types/build/action-calls.d.ts +0 -2
- package/types/build/action-calls.d.ts.map +0 -1
- package/types/build/assets.d.ts +0 -17
- package/types/build/assets.d.ts.map +0 -1
- package/types/build/await-alert.d.ts +0 -4
- package/types/build/await-alert.d.ts.map +0 -1
- package/types/build/budget.d.ts +0 -17
- package/types/build/budget.d.ts.map +0 -1
- package/types/build/bun.d.ts +0 -9
- package/types/build/bun.d.ts.map +0 -1
- package/types/build/cache-ids.d.ts +0 -2
- package/types/build/cache-ids.d.ts.map +0 -1
- package/types/build/cache.d.ts +0 -15
- package/types/build/cache.d.ts.map +0 -1
- package/types/build/captured-loads.d.ts +0 -19
- package/types/build/captured-loads.d.ts.map +0 -1
- package/types/build/class-rules.d.ts +0 -15
- package/types/build/class-rules.d.ts.map +0 -1
- package/types/build/class-sources.d.ts +0 -29
- package/types/build/class-sources.d.ts.map +0 -1
- package/types/build/class-table.d.ts +0 -8
- package/types/build/class-table.d.ts.map +0 -1
- package/types/build/client.d.ts +0 -89
- package/types/build/client.d.ts.map +0 -1
- package/types/build/collection-components.d.ts +0 -5
- package/types/build/collection-components.d.ts.map +0 -1
- package/types/build/compile.d.ts +0 -23
- package/types/build/compile.d.ts.map +0 -1
- package/types/build/compressed.d.ts +0 -7
- package/types/build/compressed.d.ts.map +0 -1
- package/types/build/direct-imports.d.ts +0 -2
- package/types/build/direct-imports.d.ts.map +0 -1
- package/types/build/dynamic-classes.d.ts +0 -12
- package/types/build/dynamic-classes.d.ts.map +0 -1
- package/types/build/entry-files.d.ts +0 -4
- package/types/build/entry-files.d.ts.map +0 -1
- package/types/build/favicons.d.ts +0 -4
- package/types/build/favicons.d.ts.map +0 -1
- package/types/build/files.d.ts +0 -56
- package/types/build/files.d.ts.map +0 -1
- package/types/build/fingerprint.d.ts +0 -3
- package/types/build/fingerprint.d.ts.map +0 -1
- package/types/build/footprint-models.d.ts +0 -24
- package/types/build/footprint-models.d.ts.map +0 -1
- package/types/build/footprint.d.ts +0 -44
- package/types/build/footprint.d.ts.map +0 -1
- package/types/build/glob.d.ts +0 -10
- package/types/build/glob.d.ts.map +0 -1
- package/types/build/globbed.d.ts +0 -2
- package/types/build/globbed.d.ts.map +0 -1
- package/types/build/header-files.d.ts +0 -4
- package/types/build/header-files.d.ts.map +0 -1
- package/types/build/icon-slots.d.ts +0 -7
- package/types/build/icon-slots.d.ts.map +0 -1
- package/types/build/icons.d.ts +0 -9
- package/types/build/icons.d.ts.map +0 -1
- package/types/build/increments.d.ts +0 -50
- package/types/build/increments.d.ts.map +0 -1
- package/types/build/insert-ids.d.ts +0 -10
- package/types/build/insert-ids.d.ts.map +0 -1
- package/types/build/island-images.d.ts +0 -45
- package/types/build/island-images.d.ts.map +0 -1
- package/types/build/kept-maps.d.ts +0 -3
- package/types/build/kept-maps.d.ts.map +0 -1
- package/types/build/kept.d.ts +0 -5
- package/types/build/kept.d.ts.map +0 -1
- package/types/build/layer-order.d.ts +0 -2
- package/types/build/layer-order.d.ts.map +0 -1
- package/types/build/lazy-components.d.ts +0 -6
- package/types/build/lazy-components.d.ts.map +0 -1
- package/types/build/lazy-manifest.d.ts +0 -19
- package/types/build/lazy-manifest.d.ts.map +0 -1
- package/types/build/lazy-stubs.d.ts +0 -5
- package/types/build/lazy-stubs.d.ts.map +0 -1
- package/types/build/libraries.d.ts +0 -55
- package/types/build/libraries.d.ts.map +0 -1
- package/types/build/licenses.d.ts +0 -16
- package/types/build/licenses.d.ts.map +0 -1
- package/types/build/links.d.ts +0 -3
- package/types/build/links.d.ts.map +0 -1
- package/types/build/live-ids.d.ts +0 -3
- package/types/build/live-ids.d.ts.map +0 -1
- package/types/build/manifests.d.ts +0 -26
- package/types/build/manifests.d.ts.map +0 -1
- package/types/build/named-refresh.d.ts +0 -3
- package/types/build/named-refresh.d.ts.map +0 -1
- package/types/build/navigation-locale.d.ts +0 -3
- package/types/build/navigation-locale.d.ts.map +0 -1
- package/types/build/page-dirs.d.ts +0 -8
- package/types/build/page-dirs.d.ts.map +0 -1
- package/types/build/pipeline.d.ts +0 -60
- package/types/build/pipeline.d.ts.map +0 -1
- package/types/build/plugin.d.ts +0 -32
- package/types/build/plugin.d.ts.map +0 -1
- package/types/build/probe.d.ts +0 -6
- package/types/build/probe.d.ts.map +0 -1
- package/types/build/prune.d.ts +0 -5
- package/types/build/prune.d.ts.map +0 -1
- package/types/build/recipe-classes.d.ts +0 -13
- package/types/build/recipe-classes.d.ts.map +0 -1
- package/types/build/recipe-utilities.d.ts +0 -4
- package/types/build/recipe-utilities.d.ts.map +0 -1
- package/types/build/references.d.ts +0 -7
- package/types/build/references.d.ts.map +0 -1
- package/types/build/report.d.ts +0 -95
- package/types/build/report.d.ts.map +0 -1
- package/types/build/route-sizes.d.ts +0 -7
- package/types/build/route-sizes.d.ts.map +0 -1
- package/types/build/runtime-chunk.d.ts +0 -25
- package/types/build/runtime-chunk.d.ts.map +0 -1
- package/types/build/runtime-config.d.ts +0 -3
- package/types/build/runtime-config.d.ts.map +0 -1
- package/types/build/search.d.ts +0 -7
- package/types/build/search.d.ts.map +0 -1
- package/types/build/server-only.d.ts +0 -40
- package/types/build/server-only.d.ts.map +0 -1
- package/types/build/server-record.d.ts +0 -4
- package/types/build/server-record.d.ts.map +0 -1
- package/types/build/signals.d.ts +0 -5
- package/types/build/signals.d.ts.map +0 -1
- package/types/build/source-files.d.ts +0 -15
- package/types/build/source-files.d.ts.map +0 -1
- package/types/build/source-parses.d.ts +0 -22
- package/types/build/source-parses.d.ts.map +0 -1
- package/types/build/sourcemap.d.ts +0 -29
- package/types/build/sourcemap.d.ts.map +0 -1
- package/types/build/static.d.ts +0 -11
- package/types/build/static.d.ts.map +0 -1
- package/types/build/style-uses.d.ts +0 -20
- package/types/build/style-uses.d.ts.map +0 -1
- package/types/build/styles.d.ts +0 -12
- package/types/build/styles.d.ts.map +0 -1
- package/types/build/supports.d.ts +0 -16
- package/types/build/supports.d.ts.map +0 -1
- package/types/build/theme-vars.d.ts +0 -2
- package/types/build/theme-vars.d.ts.map +0 -1
- package/types/build/transform.d.ts +0 -50
- package/types/build/transform.d.ts.map +0 -1
- package/types/build/ui-info.d.ts +0 -27
- package/types/build/ui-info.d.ts.map +0 -1
- package/types/build/ui-layers.d.ts +0 -5
- package/types/build/ui-layers.d.ts.map +0 -1
- package/types/build/ui.d.ts +0 -58
- package/types/build/ui.d.ts.map +0 -1
- package/types/build/variants.d.ts +0 -29
- package/types/build/variants.d.ts.map +0 -1
- package/types/build/verify.d.ts +0 -15
- package/types/build/verify.d.ts.map +0 -1
- package/types/build/warn-classes.d.ts +0 -4
- package/types/build/warn-classes.d.ts.map +0 -1
- package/types/build/worker-bundle.d.ts +0 -17
- package/types/build/worker-bundle.d.ts.map +0 -1
- package/types/bun.d.ts +0 -9
- package/types/bun.d.ts.map +0 -1
- package/types/check/action-options.d.ts +0 -3
- package/types/check/action-options.d.ts.map +0 -1
- package/types/check/api-modules.d.ts +0 -11
- package/types/check/api-modules.d.ts.map +0 -1
- package/types/check/api-scope.d.ts +0 -13
- package/types/check/api-scope.d.ts.map +0 -1
- package/types/check/ast.d.ts +0 -10
- package/types/check/ast.d.ts.map +0 -1
- package/types/check/bindings.d.ts +0 -4
- package/types/check/bindings.d.ts.map +0 -1
- package/types/check/boot.d.ts +0 -6
- package/types/check/boot.d.ts.map +0 -1
- package/types/check/browser-global-reads.d.ts +0 -8
- package/types/check/browser-global-reads.d.ts.map +0 -1
- package/types/check/builtin-imports.d.ts +0 -5
- package/types/check/builtin-imports.d.ts.map +0 -1
- package/types/check/class-words.d.ts +0 -7
- package/types/check/class-words.d.ts.map +0 -1
- package/types/check/config-keys.d.ts +0 -7
- package/types/check/config-keys.d.ts.map +0 -1
- package/types/check/config-objects.d.ts +0 -16
- package/types/check/config-objects.d.ts.map +0 -1
- package/types/check/diagnose.d.ts +0 -36
- package/types/check/diagnose.d.ts.map +0 -1
- package/types/check/dockerfile.d.ts +0 -4
- package/types/check/dockerfile.d.ts.map +0 -1
- package/types/check/endpoint-exports.d.ts +0 -4
- package/types/check/endpoint-exports.d.ts.map +0 -1
- package/types/check/env-types.d.ts +0 -8
- package/types/check/env-types.d.ts.map +0 -1
- package/types/check/export-homes.d.ts +0 -6
- package/types/check/export-homes.d.ts.map +0 -1
- package/types/check/fixes.d.ts +0 -3
- package/types/check/fixes.d.ts.map +0 -1
- package/types/check/generated.d.ts +0 -27
- package/types/check/generated.d.ts.map +0 -1
- package/types/check/guards.d.ts +0 -5
- package/types/check/guards.d.ts.map +0 -1
- package/types/check/index.d.ts +0 -37
- package/types/check/index.d.ts.map +0 -1
- package/types/check/island-modules.d.ts +0 -21
- package/types/check/island-modules.d.ts.map +0 -1
- package/types/check/island-only.d.ts +0 -11
- package/types/check/island-only.d.ts.map +0 -1
- package/types/check/large-images.d.ts +0 -5
- package/types/check/large-images.d.ts.map +0 -1
- package/types/check/layout-facts.d.ts +0 -8
- package/types/check/layout-facts.d.ts.map +0 -1
- package/types/check/loaded.d.ts +0 -8
- package/types/check/loaded.d.ts.map +0 -1
- package/types/check/loop-index-fix.d.ts +0 -4
- package/types/check/loop-index-fix.d.ts.map +0 -1
- package/types/check/mcp-routes.d.ts +0 -4
- package/types/check/mcp-routes.d.ts.map +0 -1
- package/types/check/messages.d.ts +0 -7
- package/types/check/messages.d.ts.map +0 -1
- package/types/check/missing-imports.d.ts +0 -5
- package/types/check/missing-imports.d.ts.map +0 -1
- package/types/check/moved-keys.d.ts +0 -10
- package/types/check/moved-keys.d.ts.map +0 -1
- package/types/check/open-settings.d.ts +0 -4
- package/types/check/open-settings.d.ts.map +0 -1
- package/types/check/output-schema.d.ts +0 -5
- package/types/check/output-schema.d.ts.map +0 -1
- package/types/check/page-heads.d.ts +0 -5
- package/types/check/page-heads.d.ts.map +0 -1
- package/types/check/page-structure.d.ts +0 -8
- package/types/check/page-structure.d.ts.map +0 -1
- package/types/check/project.d.ts +0 -37
- package/types/check/project.d.ts.map +0 -1
- package/types/check/public-env-outside-src.d.ts +0 -3
- package/types/check/public-env-outside-src.d.ts.map +0 -1
- package/types/check/queries.d.ts +0 -4
- package/types/check/queries.d.ts.map +0 -1
- package/types/check/regroup.d.ts +0 -8
- package/types/check/regroup.d.ts.map +0 -1
- package/types/check/removed-ui-tokens.d.ts +0 -5
- package/types/check/removed-ui-tokens.d.ts.map +0 -1
- package/types/check/renamed-call-options.d.ts +0 -14
- package/types/check/renamed-call-options.d.ts.map +0 -1
- package/types/check/renamed-exports.d.ts +0 -32
- package/types/check/renamed-exports.d.ts.map +0 -1
- package/types/check/renamed-packages.d.ts +0 -3
- package/types/check/renamed-packages.d.ts.map +0 -1
- package/types/check/route-shadow.d.ts +0 -12
- package/types/check/route-shadow.d.ts.map +0 -1
- package/types/check/schema-builders.d.ts +0 -3
- package/types/check/schema-builders.d.ts.map +0 -1
- package/types/check/schema-json.d.ts +0 -3
- package/types/check/schema-json.d.ts.map +0 -1
- package/types/check/seo.d.ts +0 -57
- package/types/check/seo.d.ts.map +0 -1
- package/types/check/server-only-reads.d.ts +0 -5
- package/types/check/server-only-reads.d.ts.map +0 -1
- package/types/check/shadow-types.d.ts +0 -49
- package/types/check/shadow-types.d.ts.map +0 -1
- package/types/check/shadow.d.ts +0 -63
- package/types/check/shadow.d.ts.map +0 -1
- package/types/check/site-seo.d.ts +0 -21
- package/types/check/site-seo.d.ts.map +0 -1
- package/types/check/socket-routes.d.ts +0 -4
- package/types/check/socket-routes.d.ts.map +0 -1
- package/types/check/status-pages.d.ts +0 -4
- package/types/check/status-pages.d.ts.map +0 -1
- package/types/check/template-hints.d.ts +0 -12
- package/types/check/template-hints.d.ts.map +0 -1
- package/types/check/text-size-colour.d.ts +0 -3
- package/types/check/text-size-colour.d.ts.map +0 -1
- package/types/check/tool-labels.d.ts +0 -3
- package/types/check/tool-labels.d.ts.map +0 -1
- package/types/check/tool-outputs.d.ts +0 -6
- package/types/check/tool-outputs.d.ts.map +0 -1
- package/types/check/tsgo.d.ts +0 -18
- package/types/check/tsgo.d.ts.map +0 -1
- package/types/check/typing-stamp.d.ts +0 -2
- package/types/check/typing-stamp.d.ts.map +0 -1
- package/types/check/ui-tokens.d.ts +0 -16
- package/types/check/ui-tokens.d.ts.map +0 -1
- package/types/check/ui-types.d.ts +0 -3
- package/types/check/ui-types.d.ts.map +0 -1
- package/types/check/ui.d.ts +0 -7
- package/types/check/ui.d.ts.map +0 -1
- package/types/check/unmounted-jobs.d.ts +0 -3
- package/types/check/unmounted-jobs.d.ts.map +0 -1
- package/types/cli.d.ts +0 -3
- package/types/cli.d.ts.map +0 -1
- package/types/commands/a11y.d.ts +0 -3
- package/types/commands/a11y.d.ts.map +0 -1
- package/types/commands/add-peers.d.ts +0 -2
- package/types/commands/add-peers.d.ts.map +0 -1
- package/types/commands/add.d.ts +0 -3
- package/types/commands/add.d.ts.map +0 -1
- package/types/commands/build.d.ts +0 -3
- package/types/commands/build.d.ts.map +0 -1
- package/types/commands/check.d.ts +0 -3
- package/types/commands/check.d.ts.map +0 -1
- package/types/commands/command.d.ts +0 -87
- package/types/commands/command.d.ts.map +0 -1
- package/types/commands/completion.d.ts +0 -5
- package/types/commands/completion.d.ts.map +0 -1
- package/types/commands/dev.d.ts +0 -3
- package/types/commands/dev.d.ts.map +0 -1
- package/types/commands/docs.d.ts +0 -3
- package/types/commands/docs.d.ts.map +0 -1
- package/types/commands/doctor.d.ts +0 -12
- package/types/commands/doctor.d.ts.map +0 -1
- package/types/commands/editor.d.ts +0 -3
- package/types/commands/editor.d.ts.map +0 -1
- package/types/commands/env-compare.d.ts +0 -25
- package/types/commands/env-compare.d.ts.map +0 -1
- package/types/commands/env-declare.d.ts +0 -5
- package/types/commands/env-declare.d.ts.map +0 -1
- package/types/commands/env.d.ts +0 -14
- package/types/commands/env.d.ts.map +0 -1
- package/types/commands/explain-island.d.ts +0 -3
- package/types/commands/explain-island.d.ts.map +0 -1
- package/types/commands/explain.d.ts +0 -3
- package/types/commands/explain.d.ts.map +0 -1
- package/types/commands/extensions.d.ts +0 -17
- package/types/commands/extensions.d.ts.map +0 -1
- package/types/commands/fix-path.d.ts +0 -2
- package/types/commands/fix-path.d.ts.map +0 -1
- package/types/commands/fmt.d.ts +0 -3
- package/types/commands/fmt.d.ts.map +0 -1
- package/types/commands/generate.d.ts +0 -3
- package/types/commands/generate.d.ts.map +0 -1
- package/types/commands/i18n.d.ts +0 -4
- package/types/commands/i18n.d.ts.map +0 -1
- package/types/commands/import-module.d.ts +0 -4
- package/types/commands/import-module.d.ts.map +0 -1
- package/types/commands/lint-cache.d.ts +0 -2
- package/types/commands/lint-cache.d.ts.map +0 -1
- package/types/commands/lint.d.ts +0 -3
- package/types/commands/lint.d.ts.map +0 -1
- package/types/commands/lsp.d.ts +0 -3
- package/types/commands/lsp.d.ts.map +0 -1
- package/types/commands/mcp.d.ts +0 -3
- package/types/commands/mcp.d.ts.map +0 -1
- package/types/commands/migrate.d.ts +0 -3
- package/types/commands/migrate.d.ts.map +0 -1
- package/types/commands/new.d.ts +0 -3
- package/types/commands/new.d.ts.map +0 -1
- package/types/commands/not-found.d.ts +0 -3
- package/types/commands/not-found.d.ts.map +0 -1
- package/types/commands/project-checks.d.ts +0 -4
- package/types/commands/project-checks.d.ts.map +0 -1
- package/types/commands/registry.d.ts +0 -13
- package/types/commands/registry.d.ts.map +0 -1
- package/types/commands/render.d.ts +0 -3
- package/types/commands/render.d.ts.map +0 -1
- package/types/commands/routes.d.ts +0 -18
- package/types/commands/routes.d.ts.map +0 -1
- package/types/commands/screenshot.d.ts +0 -3
- package/types/commands/screenshot.d.ts.map +0 -1
- package/types/commands/start.d.ts +0 -3
- package/types/commands/start.d.ts.map +0 -1
- package/types/commands/test.d.ts +0 -3
- package/types/commands/test.d.ts.map +0 -1
- package/types/commands/types.d.ts +0 -3
- package/types/commands/types.d.ts.map +0 -1
- package/types/commands/upgrade-majors.d.ts +0 -7
- package/types/commands/upgrade-majors.d.ts.map +0 -1
- package/types/commands/upgrade-manifest.d.ts +0 -6
- package/types/commands/upgrade-manifest.d.ts.map +0 -1
- package/types/commands/upgrade-messages.d.ts +0 -4
- package/types/commands/upgrade-messages.d.ts.map +0 -1
- package/types/commands/upgrade-peers.d.ts +0 -23
- package/types/commands/upgrade-peers.d.ts.map +0 -1
- package/types/commands/upgrade.d.ts +0 -50
- package/types/commands/upgrade.d.ts.map +0 -1
- package/types/compiler/a11y-markup.d.ts +0 -81
- package/types/compiler/a11y-markup.d.ts.map +0 -1
- package/types/compiler/a11y.d.ts +0 -4
- package/types/compiler/a11y.d.ts.map +0 -1
- package/types/compiler/allow-comments.d.ts +0 -22
- package/types/compiler/allow-comments.d.ts.map +0 -1
- package/types/compiler/aria.d.ts +0 -10
- package/types/compiler/aria.d.ts.map +0 -1
- package/types/compiler/ast.d.ts +0 -283
- package/types/compiler/ast.d.ts.map +0 -1
- package/types/compiler/bound-props.d.ts +0 -17
- package/types/compiler/bound-props.d.ts.map +0 -1
- package/types/compiler/browser.d.ts +0 -23
- package/types/compiler/browser.d.ts.map +0 -1
- package/types/compiler/button-forms.d.ts +0 -3
- package/types/compiler/button-forms.d.ts.map +0 -1
- package/types/compiler/class-items.d.ts +0 -7
- package/types/compiler/class-items.d.ts.map +0 -1
- package/types/compiler/class-name.d.ts +0 -10
- package/types/compiler/class-name.d.ts.map +0 -1
- package/types/compiler/codegen.d.ts +0 -66
- package/types/compiler/codegen.d.ts.map +0 -1
- package/types/compiler/dead-code.d.ts +0 -9
- package/types/compiler/dead-code.d.ts.map +0 -1
- package/types/compiler/deprecated-library.d.ts +0 -4
- package/types/compiler/deprecated-library.d.ts.map +0 -1
- package/types/compiler/deprecated-lints-1-106.d.ts +0 -12
- package/types/compiler/deprecated-lints-1-106.d.ts.map +0 -1
- package/types/compiler/deprecated-lints-1-107.d.ts +0 -12
- package/types/compiler/deprecated-lints-1-107.d.ts.map +0 -1
- package/types/compiler/deprecated-lints.d.ts +0 -33
- package/types/compiler/deprecated-lints.d.ts.map +0 -1
- package/types/compiler/deprecated-ui-props.d.ts +0 -7
- package/types/compiler/deprecated-ui-props.d.ts.map +0 -1
- package/types/compiler/diagnostics.d.ts +0 -16
- package/types/compiler/diagnostics.d.ts.map +0 -1
- package/types/compiler/dom-fields.d.ts +0 -7
- package/types/compiler/dom-fields.d.ts.map +0 -1
- package/types/compiler/dom-here.d.ts +0 -14
- package/types/compiler/dom-here.d.ts.map +0 -1
- package/types/compiler/dom-property.d.ts +0 -9
- package/types/compiler/dom-property.d.ts.map +0 -1
- package/types/compiler/dom.d.ts +0 -47
- package/types/compiler/dom.d.ts.map +0 -1
- package/types/compiler/each-node.d.ts +0 -3
- package/types/compiler/each-node.d.ts.map +0 -1
- package/types/compiler/else-problem.d.ts +0 -5
- package/types/compiler/else-problem.d.ts.map +0 -1
- package/types/compiler/errors.d.ts +0 -838
- package/types/compiler/errors.d.ts.map +0 -1
- package/types/compiler/estree-shapes.d.ts +0 -17
- package/types/compiler/estree-shapes.d.ts.map +0 -1
- package/types/compiler/estree.d.ts +0 -36
- package/types/compiler/estree.d.ts.map +0 -1
- package/types/compiler/event-modifiers.d.ts +0 -12
- package/types/compiler/event-modifiers.d.ts.map +0 -1
- package/types/compiler/expression.d.ts +0 -8
- package/types/compiler/expression.d.ts.map +0 -1
- package/types/compiler/fence-checks.d.ts +0 -12
- package/types/compiler/fence-checks.d.ts.map +0 -1
- package/types/compiler/fence-nodes.d.ts +0 -6
- package/types/compiler/fence-nodes.d.ts.map +0 -1
- package/types/compiler/fence-redirects.d.ts +0 -4
- package/types/compiler/fence-redirects.d.ts.map +0 -1
- package/types/compiler/field-described.d.ts +0 -6
- package/types/compiler/field-described.d.ts.map +0 -1
- package/types/compiler/fnv-hash.d.ts +0 -2
- package/types/compiler/fnv-hash.d.ts.map +0 -1
- package/types/compiler/form-action.d.ts +0 -8
- package/types/compiler/form-action.d.ts.map +0 -1
- package/types/compiler/form-info.d.ts +0 -29
- package/types/compiler/form-info.d.ts.map +0 -1
- package/types/compiler/format.d.ts +0 -11
- package/types/compiler/format.d.ts.map +0 -1
- package/types/compiler/frame.d.ts +0 -17
- package/types/compiler/frame.d.ts.map +0 -1
- package/types/compiler/globals.d.ts +0 -4
- package/types/compiler/globals.d.ts.map +0 -1
- package/types/compiler/hand-parts.d.ts +0 -10
- package/types/compiler/hand-parts.d.ts.map +0 -1
- package/types/compiler/handed-data.d.ts +0 -5
- package/types/compiler/handed-data.d.ts.map +0 -1
- package/types/compiler/head-shorthand.d.ts +0 -16
- package/types/compiler/head-shorthand.d.ts.map +0 -1
- package/types/compiler/head-tags.d.ts +0 -7
- package/types/compiler/head-tags.d.ts.map +0 -1
- package/types/compiler/helper-imports.d.ts +0 -5
- package/types/compiler/helper-imports.d.ts.map +0 -1
- package/types/compiler/host.browser.d.ts +0 -8
- package/types/compiler/host.browser.d.ts.map +0 -1
- package/types/compiler/host.d.ts +0 -13
- package/types/compiler/host.d.ts.map +0 -1
- package/types/compiler/html-fields.d.ts +0 -19
- package/types/compiler/html-fields.d.ts.map +0 -1
- package/types/compiler/html-initial.d.ts +0 -17
- package/types/compiler/html-initial.d.ts.map +0 -1
- package/types/compiler/html-parts.d.ts +0 -13
- package/types/compiler/html-parts.d.ts.map +0 -1
- package/types/compiler/html.d.ts +0 -50
- package/types/compiler/html.d.ts.map +0 -1
- package/types/compiler/i18n-lints.d.ts +0 -27
- package/types/compiler/i18n-lints.d.ts.map +0 -1
- package/types/compiler/if-alias.d.ts +0 -7
- package/types/compiler/if-alias.d.ts.map +0 -1
- package/types/compiler/image-attributes.d.ts +0 -21
- package/types/compiler/image-attributes.d.ts.map +0 -1
- package/types/compiler/import-edits.d.ts +0 -6
- package/types/compiler/import-edits.d.ts.map +0 -1
- package/types/compiler/index.d.ts +0 -67
- package/types/compiler/index.d.ts.map +0 -1
- package/types/compiler/inspect.d.ts +0 -3
- package/types/compiler/inspect.d.ts.map +0 -1
- package/types/compiler/island-arguments.d.ts +0 -14
- package/types/compiler/island-arguments.d.ts.map +0 -1
- package/types/compiler/island-cause.d.ts +0 -14
- package/types/compiler/island-cause.d.ts.map +0 -1
- package/types/compiler/island-declaration.d.ts +0 -33
- package/types/compiler/island-declaration.d.ts.map +0 -1
- package/types/compiler/island-lints.d.ts +0 -17
- package/types/compiler/island-lints.d.ts.map +0 -1
- package/types/compiler/island-marker.d.ts +0 -4
- package/types/compiler/island-marker.d.ts.map +0 -1
- package/types/compiler/island-problems.d.ts +0 -7
- package/types/compiler/island-problems.d.ts.map +0 -1
- package/types/compiler/items.d.ts +0 -92
- package/types/compiler/items.d.ts.map +0 -1
- package/types/compiler/jsx-class.d.ts +0 -7
- package/types/compiler/jsx-class.d.ts.map +0 -1
- package/types/compiler/jsx-entities.d.ts +0 -2
- package/types/compiler/jsx-entities.d.ts.map +0 -1
- package/types/compiler/jsx-field.d.ts +0 -13
- package/types/compiler/jsx-field.d.ts.map +0 -1
- package/types/compiler/jsx.d.ts +0 -50
- package/types/compiler/jsx.d.ts.map +0 -1
- package/types/compiler/kay-exports.d.ts +0 -5
- package/types/compiler/kay-exports.d.ts.map +0 -1
- package/types/compiler/lazy-imports.d.ts +0 -33
- package/types/compiler/lazy-imports.d.ts.map +0 -1
- package/types/compiler/link-flags.d.ts +0 -12
- package/types/compiler/link-flags.d.ts.map +0 -1
- package/types/compiler/lints.d.ts +0 -891
- package/types/compiler/lints.d.ts.map +0 -1
- package/types/compiler/live-reads.d.ts +0 -13
- package/types/compiler/live-reads.d.ts.map +0 -1
- package/types/compiler/load-facts.d.ts +0 -11
- package/types/compiler/load-facts.d.ts.map +0 -1
- package/types/compiler/load-plan.d.ts +0 -11
- package/types/compiler/load-plan.d.ts.map +0 -1
- package/types/compiler/loop-lints.d.ts +0 -13
- package/types/compiler/loop-lints.d.ts.map +0 -1
- package/types/compiler/mapping.d.ts +0 -74
- package/types/compiler/mapping.d.ts.map +0 -1
- package/types/compiler/markdown-block.d.ts +0 -42
- package/types/compiler/markdown-block.d.ts.map +0 -1
- package/types/compiler/markup-fields.d.ts +0 -8
- package/types/compiler/markup-fields.d.ts.map +0 -1
- package/types/compiler/markup.d.ts +0 -142
- package/types/compiler/markup.d.ts.map +0 -1
- package/types/compiler/minor.d.ts +0 -3
- package/types/compiler/minor.d.ts.map +0 -1
- package/types/compiler/module-signals.d.ts +0 -20
- package/types/compiler/module-signals.d.ts.map +0 -1
- package/types/compiler/names.d.ts +0 -26
- package/types/compiler/names.d.ts.map +0 -1
- package/types/compiler/native-typescript.d.ts +0 -5
- package/types/compiler/native-typescript.d.ts.map +0 -1
- package/types/compiler/nesting.d.ts +0 -3
- package/types/compiler/nesting.d.ts.map +0 -1
- package/types/compiler/object-literal.d.ts +0 -13
- package/types/compiler/object-literal.d.ts.map +0 -1
- package/types/compiler/own-markup.d.ts +0 -4
- package/types/compiler/own-markup.d.ts.map +0 -1
- package/types/compiler/page-settings.d.ts +0 -13
- package/types/compiler/page-settings.d.ts.map +0 -1
- package/types/compiler/parser.d.ts +0 -3
- package/types/compiler/parser.d.ts.map +0 -1
- package/types/compiler/pattern-names.d.ts +0 -4
- package/types/compiler/pattern-names.d.ts.map +0 -1
- package/types/compiler/plan.d.ts +0 -115
- package/types/compiler/plan.d.ts.map +0 -1
- package/types/compiler/public.d.ts +0 -4
- package/types/compiler/public.d.ts.map +0 -1
- package/types/compiler/removed-lints.d.ts +0 -3
- package/types/compiler/removed-lints.d.ts.map +0 -1
- package/types/compiler/rest-omits.d.ts +0 -4
- package/types/compiler/rest-omits.d.ts.map +0 -1
- package/types/compiler/rewrite-reads.d.ts +0 -69
- package/types/compiler/rewrite-reads.d.ts.map +0 -1
- package/types/compiler/rewrite-scan.d.ts +0 -11
- package/types/compiler/rewrite-scan.d.ts.map +0 -1
- package/types/compiler/rewrite-tags.d.ts +0 -4
- package/types/compiler/rewrite-tags.d.ts.map +0 -1
- package/types/compiler/rewrite-types.d.ts +0 -56
- package/types/compiler/rewrite-types.d.ts.map +0 -1
- package/types/compiler/rewrite.d.ts +0 -3
- package/types/compiler/rewrite.d.ts.map +0 -1
- package/types/compiler/route-lints.d.ts +0 -89
- package/types/compiler/route-lints.d.ts.map +0 -1
- package/types/compiler/scanner.d.ts +0 -12
- package/types/compiler/scanner.d.ts.map +0 -1
- package/types/compiler/schema-lints.d.ts +0 -11
- package/types/compiler/schema-lints.d.ts.map +0 -1
- package/types/compiler/scope.d.ts +0 -56
- package/types/compiler/scope.d.ts.map +0 -1
- package/types/compiler/scoped-style.d.ts +0 -28
- package/types/compiler/scoped-style.d.ts.map +0 -1
- package/types/compiler/script-fence.d.ts +0 -5
- package/types/compiler/script-fence.d.ts.map +0 -1
- package/types/compiler/script-props.d.ts +0 -7
- package/types/compiler/script-props.d.ts.map +0 -1
- package/types/compiler/script-recipe.d.ts +0 -15
- package/types/compiler/script-recipe.d.ts.map +0 -1
- package/types/compiler/script-server.d.ts +0 -53
- package/types/compiler/script-server.d.ts.map +0 -1
- package/types/compiler/script-shared.d.ts +0 -79
- package/types/compiler/script-shared.d.ts.map +0 -1
- package/types/compiler/script-split.d.ts +0 -21
- package/types/compiler/script-split.d.ts.map +0 -1
- package/types/compiler/script.d.ts +0 -12
- package/types/compiler/script.d.ts.map +0 -1
- package/types/compiler/serial-awaits.d.ts +0 -13
- package/types/compiler/serial-awaits.d.ts.map +0 -1
- package/types/compiler/server-imports.d.ts +0 -4
- package/types/compiler/server-imports.d.ts.map +0 -1
- package/types/compiler/signal-from-prop.d.ts +0 -4
- package/types/compiler/signal-from-prop.d.ts.map +0 -1
- package/types/compiler/slot-types.d.ts +0 -13
- package/types/compiler/slot-types.d.ts.map +0 -1
- package/types/compiler/status-pages.d.ts +0 -5
- package/types/compiler/status-pages.d.ts.map +0 -1
- package/types/compiler/style-arguments.d.ts +0 -6
- package/types/compiler/style-arguments.d.ts.map +0 -1
- package/types/compiler/style-lints.d.ts +0 -3
- package/types/compiler/style-lints.d.ts.map +0 -1
- package/types/compiler/template-reads.d.ts +0 -10
- package/types/compiler/template-reads.d.ts.map +0 -1
- package/types/compiler/template-scopes.d.ts +0 -11
- package/types/compiler/template-scopes.d.ts.map +0 -1
- package/types/compiler/template-walk.d.ts +0 -7
- package/types/compiler/template-walk.d.ts.map +0 -1
- package/types/compiler/twin.d.ts +0 -3
- package/types/compiler/twin.d.ts.map +0 -1
- package/types/compiler/type-parameters.d.ts +0 -3
- package/types/compiler/type-parameters.d.ts.map +0 -1
- package/types/compiler/unowned-effects.d.ts +0 -3
- package/types/compiler/unowned-effects.d.ts.map +0 -1
- package/types/compiler/validate-fields.d.ts +0 -10
- package/types/compiler/validate-fields.d.ts.map +0 -1
- package/types/compiler/validate-fixes.d.ts +0 -16
- package/types/compiler/validate-fixes.d.ts.map +0 -1
- package/types/compiler/validate.d.ts +0 -14
- package/types/compiler/validate.d.ts.map +0 -1
- package/types/compiler/walk.d.ts +0 -15
- package/types/compiler/walk.d.ts.map +0 -1
- package/types/config-extensions.d.ts +0 -22
- package/types/config-extensions.d.ts.map +0 -1
- package/types/config-loader.d.ts +0 -10
- package/types/config-loader.d.ts.map +0 -1
- package/types/config-resolve.d.ts +0 -3
- package/types/config-resolve.d.ts.map +0 -1
- package/types/config-rules.d.ts +0 -27
- package/types/config-rules.d.ts.map +0 -1
- package/types/config-shape.d.ts +0 -9
- package/types/config-shape.d.ts.map +0 -1
- package/types/config-switch.d.ts +0 -10
- package/types/config-switch.d.ts.map +0 -1
- package/types/config.d.ts +0 -478
- package/types/config.d.ts.map +0 -1
- package/types/content/claims.d.ts +0 -26
- package/types/content/claims.d.ts.map +0 -1
- package/types/content/drafts.d.ts +0 -10
- package/types/content/drafts.d.ts.map +0 -1
- package/types/content/edit-entries.d.ts +0 -73
- package/types/content/edit-entries.d.ts.map +0 -1
- package/types/content/edit-fields.d.ts +0 -55
- package/types/content/edit-fields.d.ts.map +0 -1
- package/types/content/edit-registry.d.ts +0 -9
- package/types/content/edit-registry.d.ts.map +0 -1
- package/types/content/edit-shared.d.ts +0 -129
- package/types/content/edit-shared.d.ts.map +0 -1
- package/types/content/edit.d.ts +0 -6
- package/types/content/edit.d.ts.map +0 -1
- package/types/content/entry-head.d.ts +0 -15
- package/types/content/entry-head.d.ts.map +0 -1
- package/types/content/entry-route.d.ts +0 -2
- package/types/content/entry-route.d.ts.map +0 -1
- package/types/content/excerpt.d.ts +0 -7
- package/types/content/excerpt.d.ts.map +0 -1
- package/types/content/feed.d.ts +0 -55
- package/types/content/feed.d.ts.map +0 -1
- package/types/content/heading-id.d.ts +0 -10
- package/types/content/heading-id.d.ts.map +0 -1
- package/types/content/held-back.d.ts +0 -7
- package/types/content/held-back.d.ts.map +0 -1
- package/types/content/humanize.d.ts +0 -2
- package/types/content/humanize.d.ts.map +0 -1
- package/types/content/images.d.ts +0 -23
- package/types/content/images.d.ts.map +0 -1
- package/types/content/index.d.ts +0 -166
- package/types/content/index.d.ts.map +0 -1
- package/types/content/key.d.ts +0 -5
- package/types/content/key.d.ts.map +0 -1
- package/types/content/load.d.ts +0 -93
- package/types/content/load.d.ts.map +0 -1
- package/types/content/markdown-extensions.d.ts +0 -5
- package/types/content/markdown-extensions.d.ts.map +0 -1
- package/types/content/markdown.d.ts +0 -92
- package/types/content/markdown.d.ts.map +0 -1
- package/types/content/migrate.d.ts +0 -25
- package/types/content/migrate.d.ts.map +0 -1
- package/types/content/modified.d.ts +0 -8
- package/types/content/modified.d.ts.map +0 -1
- package/types/content/paginate.d.ts +0 -24
- package/types/content/paginate.d.ts.map +0 -1
- package/types/content/problems.d.ts +0 -2
- package/types/content/problems.d.ts.map +0 -1
- package/types/content/references.d.ts +0 -16
- package/types/content/references.d.ts.map +0 -1
- package/types/content/rewrite.d.ts +0 -14
- package/types/content/rewrite.d.ts.map +0 -1
- package/types/content/server.d.ts +0 -30
- package/types/content/server.d.ts.map +0 -1
- package/types/content/source-draft.d.ts +0 -10
- package/types/content/source-draft.d.ts.map +0 -1
- package/types/content/turns.d.ts +0 -8
- package/types/content/turns.d.ts.map +0 -1
- package/types/content/validate.d.ts +0 -32
- package/types/content/validate.d.ts.map +0 -1
- package/types/dev/address.d.ts +0 -5
- package/types/dev/address.d.ts.map +0 -1
- package/types/dev/base-proxy.d.ts +0 -5
- package/types/dev/base-proxy.d.ts.map +0 -1
- package/types/dev/builder.d.ts +0 -16
- package/types/dev/builder.d.ts.map +0 -1
- package/types/dev/client.d.ts +0 -10
- package/types/dev/client.d.ts.map +0 -1
- package/types/dev/config-record.d.ts +0 -3
- package/types/dev/config-record.d.ts.map +0 -1
- package/types/dev/fingerprint.d.ts +0 -29
- package/types/dev/fingerprint.d.ts.map +0 -1
- package/types/dev/index.d.ts +0 -32
- package/types/dev/index.d.ts.map +0 -1
- package/types/dev/inspector.d.ts +0 -9
- package/types/dev/inspector.d.ts.map +0 -1
- package/types/dev/loopback.d.ts +0 -3
- package/types/dev/loopback.d.ts.map +0 -1
- package/types/dev/pages.d.ts +0 -2
- package/types/dev/pages.d.ts.map +0 -1
- package/types/dev/preload.d.ts +0 -3
- package/types/dev/preload.d.ts.map +0 -1
- package/types/dev/refuse.d.ts +0 -20
- package/types/dev/refuse.d.ts.map +0 -1
- package/types/dev/reload.d.ts +0 -20
- package/types/dev/reload.d.ts.map +0 -1
- package/types/dev/render-server.d.ts +0 -18
- package/types/dev/render-server.d.ts.map +0 -1
- package/types/dev/render-socket.d.ts +0 -2
- package/types/dev/render-socket.d.ts.map +0 -1
- package/types/dev/screenshot-diff.d.ts +0 -13
- package/types/dev/screenshot-diff.d.ts.map +0 -1
- package/types/dev/screenshot-limits.d.ts +0 -8
- package/types/dev/screenshot-limits.d.ts.map +0 -1
- package/types/dev/screenshot.d.ts +0 -62
- package/types/dev/screenshot.d.ts.map +0 -1
- package/types/dev/session/client.d.ts +0 -37
- package/types/dev/session/client.d.ts.map +0 -1
- package/types/dev/session/keys.d.ts +0 -8
- package/types/dev/session/keys.d.ts.map +0 -1
- package/types/dev/session/ports.d.ts +0 -18
- package/types/dev/session/ports.d.ts.map +0 -1
- package/types/dev/session/queue.d.ts +0 -30
- package/types/dev/session/queue.d.ts.map +0 -1
- package/types/dev/session/report.d.ts +0 -30
- package/types/dev/session/report.d.ts.map +0 -1
- package/types/dev/session/servers.d.ts +0 -73
- package/types/dev/session/servers.d.ts.map +0 -1
- package/types/dev/session/types.d.ts +0 -51
- package/types/dev/session/types.d.ts.map +0 -1
- package/types/dev/sources.d.ts +0 -14
- package/types/dev/sources.d.ts.map +0 -1
- package/types/dev/tailwind.d.ts +0 -5
- package/types/dev/tailwind.d.ts.map +0 -1
- package/types/dev/types-process.d.ts +0 -27
- package/types/dev/types-process.d.ts.map +0 -1
- package/types/dev/types.d.ts +0 -2
- package/types/dev/types.d.ts.map +0 -1
- package/types/docs-props.d.ts +0 -10
- package/types/docs-props.d.ts.map +0 -1
- package/types/docs-search.d.ts +0 -40
- package/types/docs-search.d.ts.map +0 -1
- package/types/editors.d.ts +0 -30
- package/types/editors.d.ts.map +0 -1
- package/types/entities.d.ts +0 -2
- package/types/entities.d.ts.map +0 -1
- package/types/eslint/index.d.ts +0 -51
- package/types/eslint/index.d.ts.map +0 -1
- package/types/features.d.ts +0 -10
- package/types/features.d.ts.map +0 -1
- package/types/format/index.d.ts +0 -16
- package/types/format/index.d.ts.map +0 -1
- package/types/format/tailwind.d.ts +0 -15
- package/types/format/tailwind.d.ts.map +0 -1
- package/types/generate-resource.d.ts +0 -27
- package/types/generate-resource.d.ts.map +0 -1
- package/types/generate.d.ts +0 -17
- package/types/generate.d.ts.map +0 -1
- package/types/imports.d.ts +0 -2
- package/types/imports.d.ts.map +0 -1
- package/types/input-types.d.ts +0 -2
- package/types/input-types.d.ts.map +0 -1
- package/types/keyword-attributes.d.ts +0 -6
- package/types/keyword-attributes.d.ts.map +0 -1
- package/types/lsp/bridge.d.ts +0 -14
- package/types/lsp/bridge.d.ts.map +0 -1
- package/types/lsp/code-actions.d.ts +0 -7
- package/types/lsp/code-actions.d.ts.map +0 -1
- package/types/lsp/completions.d.ts +0 -20
- package/types/lsp/completions.d.ts.map +0 -1
- package/types/lsp/component-props.d.ts +0 -10
- package/types/lsp/component-props.d.ts.map +0 -1
- package/types/lsp/diagnostics.d.ts +0 -25
- package/types/lsp/diagnostics.d.ts.map +0 -1
- package/types/lsp/document-links.d.ts +0 -7
- package/types/lsp/document-links.d.ts.map +0 -1
- package/types/lsp/host.d.ts +0 -72
- package/types/lsp/host.d.ts.map +0 -1
- package/types/lsp/island-lens.d.ts +0 -14
- package/types/lsp/island-lens.d.ts.map +0 -1
- package/types/lsp/mapping.d.ts +0 -25
- package/types/lsp/mapping.d.ts.map +0 -1
- package/types/lsp/navigation.d.ts +0 -29
- package/types/lsp/navigation.d.ts.map +0 -1
- package/types/lsp/outline.d.ts +0 -4
- package/types/lsp/outline.d.ts.map +0 -1
- package/types/lsp/positions.d.ts +0 -4
- package/types/lsp/positions.d.ts.map +0 -1
- package/types/lsp/project-checks.d.ts +0 -20
- package/types/lsp/project-checks.d.ts.map +0 -1
- package/types/lsp/protocol.d.ts +0 -172
- package/types/lsp/protocol.d.ts.map +0 -1
- package/types/lsp/range-format.d.ts +0 -7
- package/types/lsp/range-format.d.ts.map +0 -1
- package/types/lsp/rename.d.ts +0 -13
- package/types/lsp/rename.d.ts.map +0 -1
- package/types/lsp/renames.d.ts +0 -9
- package/types/lsp/renames.d.ts.map +0 -1
- package/types/lsp/route-documents.d.ts +0 -4
- package/types/lsp/route-documents.d.ts.map +0 -1
- package/types/lsp/route-links.d.ts +0 -9
- package/types/lsp/route-links.d.ts.map +0 -1
- package/types/lsp/rpc.d.ts +0 -40
- package/types/lsp/rpc.d.ts.map +0 -1
- package/types/lsp/semantic-tokens.d.ts +0 -6
- package/types/lsp/semantic-tokens.d.ts.map +0 -1
- package/types/lsp/server.d.ts +0 -61
- package/types/lsp/server.d.ts.map +0 -1
- package/types/lsp/template-completion.d.ts +0 -54
- package/types/lsp/template-completion.d.ts.map +0 -1
- package/types/lsp/ui-completion.d.ts +0 -19
- package/types/lsp/ui-completion.d.ts.map +0 -1
- package/types/mcp/guards.d.ts +0 -6
- package/types/mcp/guards.d.ts.map +0 -1
- package/types/mcp/install.d.ts +0 -2
- package/types/mcp/install.d.ts.map +0 -1
- package/types/mcp/protocol.d.ts +0 -88
- package/types/mcp/protocol.d.ts.map +0 -1
- package/types/mcp/tools.d.ts +0 -9
- package/types/mcp/tools.d.ts.map +0 -1
- package/types/migrate/astro.d.ts +0 -27
- package/types/migrate/astro.d.ts.map +0 -1
- package/types/migrate/content.d.ts +0 -3
- package/types/migrate/content.d.ts.map +0 -1
- package/types/migrate/html.d.ts +0 -7
- package/types/migrate/html.d.ts.map +0 -1
- package/types/migrate/markup.d.ts +0 -25
- package/types/migrate/markup.d.ts.map +0 -1
- package/types/migrate/project.d.ts +0 -17
- package/types/migrate/project.d.ts.map +0 -1
- package/types/native-plugins.d.ts +0 -2
- package/types/native-plugins.d.ts.map +0 -1
- package/types/nearest.d.ts +0 -2
- package/types/nearest.d.ts.map +0 -1
- package/types/new.d.ts +0 -35
- package/types/new.d.ts.map +0 -1
- package/types/package-names.d.ts +0 -6
- package/types/package-names.d.ts.map +0 -1
- package/types/peers.d.ts +0 -14
- package/types/peers.d.ts.map +0 -1
- package/types/project.d.ts +0 -66
- package/types/project.d.ts.map +0 -1
- package/types/runtime/action-call.d.ts +0 -19
- package/types/runtime/action-call.d.ts.map +0 -1
- package/types/runtime/action-encode.d.ts +0 -11
- package/types/runtime/action-encode.d.ts.map +0 -1
- package/types/runtime/action-error.d.ts +0 -15
- package/types/runtime/action-error.d.ts.map +0 -1
- package/types/runtime/action-form.d.ts +0 -36
- package/types/runtime/action-form.d.ts.map +0 -1
- package/types/runtime/action-marks.d.ts +0 -5
- package/types/runtime/action-marks.d.ts.map +0 -1
- package/types/runtime/action-navigate.d.ts +0 -7
- package/types/runtime/action-navigate.d.ts.map +0 -1
- package/types/runtime/action-owner.d.ts +0 -16
- package/types/runtime/action-owner.d.ts.map +0 -1
- package/types/runtime/action-post.d.ts +0 -8
- package/types/runtime/action-post.d.ts.map +0 -1
- package/types/runtime/action-protection.d.ts +0 -15
- package/types/runtime/action-protection.d.ts.map +0 -1
- package/types/runtime/action-revive.d.ts +0 -3
- package/types/runtime/action-revive.d.ts.map +0 -1
- package/types/runtime/action-reviver.d.ts +0 -2
- package/types/runtime/action-reviver.d.ts.map +0 -1
- package/types/runtime/action-run.d.ts +0 -23
- package/types/runtime/action-run.d.ts.map +0 -1
- package/types/runtime/action-shared.d.ts +0 -323
- package/types/runtime/action-shared.d.ts.map +0 -1
- package/types/runtime/action-stream.d.ts +0 -8
- package/types/runtime/action-stream.d.ts.map +0 -1
- package/types/runtime/action.d.ts +0 -57
- package/types/runtime/action.d.ts.map +0 -1
- package/types/runtime/analytics.client.d.ts +0 -3
- package/types/runtime/analytics.client.d.ts.map +0 -1
- package/types/runtime/announce.d.ts +0 -2
- package/types/runtime/announce.d.ts.map +0 -1
- package/types/runtime/api-error-class.d.ts +0 -9
- package/types/runtime/api-error-class.d.ts.map +0 -1
- package/types/runtime/api-error.d.ts +0 -17
- package/types/runtime/api-error.d.ts.map +0 -1
- package/types/runtime/api-url.d.ts +0 -24
- package/types/runtime/api-url.d.ts.map +0 -1
- package/types/runtime/arrival.d.ts +0 -5
- package/types/runtime/arrival.d.ts.map +0 -1
- package/types/runtime/await-failed.d.ts +0 -8
- package/types/runtime/await-failed.d.ts.map +0 -1
- package/types/runtime/await.d.ts +0 -4
- package/types/runtime/await.d.ts.map +0 -1
- package/types/runtime/await.server.d.ts +0 -29
- package/types/runtime/await.server.d.ts.map +0 -1
- package/types/runtime/base.d.ts +0 -12
- package/types/runtime/base.d.ts.map +0 -1
- package/types/runtime/build.d.ts +0 -2
- package/types/runtime/build.d.ts.map +0 -1
- package/types/runtime/button-form.d.ts +0 -3
- package/types/runtime/button-form.d.ts.map +0 -1
- package/types/runtime/byte-count.d.ts +0 -3
- package/types/runtime/byte-count.d.ts.map +0 -1
- package/types/runtime/byte-size.d.ts +0 -4
- package/types/runtime/byte-size.d.ts.map +0 -1
- package/types/runtime/cache-hooks.d.ts +0 -10
- package/types/runtime/cache-hooks.d.ts.map +0 -1
- package/types/runtime/cache-live-id.d.ts +0 -5
- package/types/runtime/cache-live-id.d.ts.map +0 -1
- package/types/runtime/cache.d.ts +0 -83
- package/types/runtime/cache.d.ts.map +0 -1
- package/types/runtime/cache.server.d.ts +0 -10
- package/types/runtime/cache.server.d.ts.map +0 -1
- package/types/runtime/call-body.d.ts +0 -6
- package/types/runtime/call-body.d.ts.map +0 -1
- package/types/runtime/call-result.d.ts +0 -40
- package/types/runtime/call-result.d.ts.map +0 -1
- package/types/runtime/checks.d.ts +0 -294
- package/types/runtime/checks.d.ts.map +0 -1
- package/types/runtime/claimed.d.ts +0 -3
- package/types/runtime/claimed.d.ts.map +0 -1
- package/types/runtime/class-table.d.ts +0 -7
- package/types/runtime/class-table.d.ts.map +0 -1
- package/types/runtime/client.d.ts +0 -15
- package/types/runtime/client.d.ts.map +0 -1
- package/types/runtime/connection.d.ts +0 -40
- package/types/runtime/connection.d.ts.map +0 -1
- package/types/runtime/consent.d.ts +0 -5
- package/types/runtime/consent.d.ts.map +0 -1
- package/types/runtime/core.d.ts +0 -193
- package/types/runtime/core.d.ts.map +0 -1
- package/types/runtime/counters.d.ts +0 -26
- package/types/runtime/counters.d.ts.map +0 -1
- package/types/runtime/described.d.ts +0 -9
- package/types/runtime/described.d.ts.map +0 -1
- package/types/runtime/dev-a11y.d.ts +0 -16
- package/types/runtime/dev-a11y.d.ts.map +0 -1
- package/types/runtime/dev-boot.d.ts +0 -14
- package/types/runtime/dev-boot.d.ts.map +0 -1
- package/types/runtime/dev-inspector.d.ts +0 -9
- package/types/runtime/dev-inspector.d.ts.map +0 -1
- package/types/runtime/dev-patch.d.ts +0 -2
- package/types/runtime/dev-patch.d.ts.map +0 -1
- package/types/runtime/dev-refresh.d.ts +0 -2
- package/types/runtime/dev-refresh.d.ts.map +0 -1
- package/types/runtime/dev-styles.d.ts +0 -3
- package/types/runtime/dev-styles.d.ts.map +0 -1
- package/types/runtime/dev-tab-data.d.ts +0 -3
- package/types/runtime/dev-tab-data.d.ts.map +0 -1
- package/types/runtime/dev-tab-env.d.ts +0 -3
- package/types/runtime/dev-tab-env.d.ts.map +0 -1
- package/types/runtime/dev-tab-head.d.ts +0 -3
- package/types/runtime/dev-tab-head.d.ts.map +0 -1
- package/types/runtime/dev-tab-i18n.d.ts +0 -3
- package/types/runtime/dev-tab-i18n.d.ts.map +0 -1
- package/types/runtime/dev-tab-images.d.ts +0 -3
- package/types/runtime/dev-tab-images.d.ts.map +0 -1
- package/types/runtime/dev-tab-jobs.d.ts +0 -3
- package/types/runtime/dev-tab-jobs.d.ts.map +0 -1
- package/types/runtime/dev-tab-network.d.ts +0 -3
- package/types/runtime/dev-tab-network.d.ts.map +0 -1
- package/types/runtime/dev-tab-not-found.d.ts +0 -3
- package/types/runtime/dev-tab-not-found.d.ts.map +0 -1
- package/types/runtime/dev-tab-performance.d.ts +0 -3
- package/types/runtime/dev-tab-performance.d.ts.map +0 -1
- package/types/runtime/dev-tab-reading.d.ts +0 -23
- package/types/runtime/dev-tab-reading.d.ts.map +0 -1
- package/types/runtime/dev-tab-routes.d.ts +0 -3
- package/types/runtime/dev-tab-routes.d.ts.map +0 -1
- package/types/runtime/dev-tab-styles.d.ts +0 -3
- package/types/runtime/dev-tab-styles.d.ts.map +0 -1
- package/types/runtime/dev-tool-constants.d.ts +0 -19
- package/types/runtime/dev-tool-constants.d.ts.map +0 -1
- package/types/runtime/dev-tool-icons.d.ts +0 -48
- package/types/runtime/dev-tool-icons.d.ts.map +0 -1
- package/types/runtime/dev-tool-keys.d.ts +0 -16
- package/types/runtime/dev-tool-keys.d.ts.map +0 -1
- package/types/runtime/dev-tool-kit.d.ts +0 -8
- package/types/runtime/dev-tool-kit.d.ts.map +0 -1
- package/types/runtime/dev-tool-layout.d.ts +0 -49
- package/types/runtime/dev-tool-layout.d.ts.map +0 -1
- package/types/runtime/dev-tool-markdown.d.ts +0 -2
- package/types/runtime/dev-tool-markdown.d.ts.map +0 -1
- package/types/runtime/dev-tool-outline.d.ts +0 -3
- package/types/runtime/dev-tool-outline.d.ts.map +0 -1
- package/types/runtime/dev-tool-parts.d.ts +0 -38
- package/types/runtime/dev-tool-parts.d.ts.map +0 -1
- package/types/runtime/dev-tool-problems.d.ts +0 -14
- package/types/runtime/dev-tool-problems.d.ts.map +0 -1
- package/types/runtime/dev-tool-request.d.ts +0 -5
- package/types/runtime/dev-tool-request.d.ts.map +0 -1
- package/types/runtime/dev-tool-shell.d.ts +0 -25
- package/types/runtime/dev-tool-shell.d.ts.map +0 -1
- package/types/runtime/dev-tool-style.d.ts +0 -2
- package/types/runtime/dev-tool-style.d.ts.map +0 -1
- package/types/runtime/dev-tool-swaps.d.ts +0 -10
- package/types/runtime/dev-tool-swaps.d.ts.map +0 -1
- package/types/runtime/dev-tool-tab-order.d.ts +0 -17
- package/types/runtime/dev-tool-tab-order.d.ts.map +0 -1
- package/types/runtime/dev-tool-tabs.d.ts +0 -24
- package/types/runtime/dev-tool-tabs.d.ts.map +0 -1
- package/types/runtime/dev-tool-vitals.d.ts +0 -13
- package/types/runtime/dev-tool-vitals.d.ts.map +0 -1
- package/types/runtime/dev-tool-window.d.ts +0 -18
- package/types/runtime/dev-tool-window.d.ts.map +0 -1
- package/types/runtime/dev-tool.d.ts +0 -75
- package/types/runtime/dev-tool.d.ts.map +0 -1
- package/types/runtime/dev-tool.public.d.ts +0 -4
- package/types/runtime/dev-tool.public.d.ts.map +0 -1
- package/types/runtime/dispatch.d.ts +0 -8
- package/types/runtime/dispatch.d.ts.map +0 -1
- package/types/runtime/dom-await.d.ts +0 -2
- package/types/runtime/dom-await.d.ts.map +0 -1
- package/types/runtime/dom-image.d.ts +0 -2
- package/types/runtime/dom-image.d.ts.map +0 -1
- package/types/runtime/dom-lazy.d.ts +0 -6
- package/types/runtime/dom-lazy.d.ts.map +0 -1
- package/types/runtime/dom-loop.d.ts +0 -4
- package/types/runtime/dom-loop.d.ts.map +0 -1
- package/types/runtime/dom-spread.d.ts +0 -3
- package/types/runtime/dom-spread.d.ts.map +0 -1
- package/types/runtime/dom-try.d.ts +0 -2
- package/types/runtime/dom-try.d.ts.map +0 -1
- package/types/runtime/dom.d.ts +0 -88
- package/types/runtime/dom.d.ts.map +0 -1
- package/types/runtime/draft-issues.d.ts +0 -19
- package/types/runtime/draft-issues.d.ts.map +0 -1
- package/types/runtime/duration-words.d.ts +0 -3
- package/types/runtime/duration-words.d.ts.map +0 -1
- package/types/runtime/duration.d.ts +0 -16
- package/types/runtime/duration.d.ts.map +0 -1
- package/types/runtime/edit.d.ts +0 -25
- package/types/runtime/edit.d.ts.map +0 -1
- package/types/runtime/element-size.d.ts +0 -7
- package/types/runtime/element-size.d.ts.map +0 -1
- package/types/runtime/email.d.ts +0 -3
- package/types/runtime/email.d.ts.map +0 -1
- package/types/runtime/ended-entry.d.ts +0 -3
- package/types/runtime/ended-entry.d.ts.map +0 -1
- package/types/runtime/env.d.ts +0 -26
- package/types/runtime/env.d.ts.map +0 -1
- package/types/runtime/escape.d.ts +0 -6
- package/types/runtime/escape.d.ts.map +0 -1
- package/types/runtime/fetch-island.d.ts +0 -6
- package/types/runtime/fetch-island.d.ts.map +0 -1
- package/types/runtime/field-errors.d.ts +0 -4
- package/types/runtime/field-errors.d.ts.map +0 -1
- package/types/runtime/field-refusal.d.ts +0 -37
- package/types/runtime/field-refusal.d.ts.map +0 -1
- package/types/runtime/fields.d.ts +0 -58
- package/types/runtime/fields.d.ts.map +0 -1
- package/types/runtime/fills.d.ts +0 -12
- package/types/runtime/fills.d.ts.map +0 -1
- package/types/runtime/focus.d.ts +0 -2
- package/types/runtime/focus.d.ts.map +0 -1
- package/types/runtime/follow-log.d.ts +0 -11
- package/types/runtime/follow-log.d.ts.map +0 -1
- package/types/runtime/form-controls.d.ts +0 -2
- package/types/runtime/form-controls.d.ts.map +0 -1
- package/types/runtime/form-hold.d.ts +0 -7
- package/types/runtime/form-hold.d.ts.map +0 -1
- package/types/runtime/form-protect.d.ts +0 -2
- package/types/runtime/form-protect.d.ts.map +0 -1
- package/types/runtime/form-submits.d.ts +0 -9
- package/types/runtime/form-submits.d.ts.map +0 -1
- package/types/runtime/form-types.d.ts +0 -6
- package/types/runtime/form-types.d.ts.map +0 -1
- package/types/runtime/form.d.ts +0 -21
- package/types/runtime/form.d.ts.map +0 -1
- package/types/runtime/forms.d.ts +0 -4
- package/types/runtime/forms.d.ts.map +0 -1
- package/types/runtime/french.d.ts +0 -6
- package/types/runtime/french.d.ts.map +0 -1
- package/types/runtime/head.d.ts +0 -40
- package/types/runtime/head.d.ts.map +0 -1
- package/types/runtime/html.d.ts +0 -77
- package/types/runtime/html.d.ts.map +0 -1
- package/types/runtime/hydrate-when.d.ts +0 -5
- package/types/runtime/hydrate-when.d.ts.map +0 -1
- package/types/runtime/i18n-links.d.ts +0 -9
- package/types/runtime/i18n-links.d.ts.map +0 -1
- package/types/runtime/i18n.client.d.ts +0 -23
- package/types/runtime/i18n.client.d.ts.map +0 -1
- package/types/runtime/i18n.d.ts +0 -127
- package/types/runtime/i18n.d.ts.map +0 -1
- package/types/runtime/i18n.server.d.ts +0 -22
- package/types/runtime/i18n.server.d.ts.map +0 -1
- package/types/runtime/icons.d.ts +0 -30
- package/types/runtime/icons.d.ts.map +0 -1
- package/types/runtime/image.d.ts +0 -103
- package/types/runtime/image.d.ts.map +0 -1
- package/types/runtime/image.public.d.ts +0 -3
- package/types/runtime/image.public.d.ts.map +0 -1
- package/types/runtime/in-view.d.ts +0 -12
- package/types/runtime/in-view.d.ts.map +0 -1
- package/types/runtime/index.d.ts +0 -87
- package/types/runtime/index.d.ts.map +0 -1
- package/types/runtime/install-prompt.d.ts +0 -17
- package/types/runtime/install-prompt.d.ts.map +0 -1
- package/types/runtime/internal.d.ts +0 -20
- package/types/runtime/internal.d.ts.map +0 -1
- package/types/runtime/invalid.d.ts +0 -3
- package/types/runtime/invalid.d.ts.map +0 -1
- package/types/runtime/invalidated-keys.d.ts +0 -2
- package/types/runtime/invalidated-keys.d.ts.map +0 -1
- package/types/runtime/island-request.d.ts +0 -3
- package/types/runtime/island-request.d.ts.map +0 -1
- package/types/runtime/island.client.d.ts +0 -4
- package/types/runtime/island.client.d.ts.map +0 -1
- package/types/runtime/island.server.d.ts +0 -36
- package/types/runtime/island.server.d.ts.map +0 -1
- package/types/runtime/jsx-runtime.d.ts +0 -2
- package/types/runtime/jsx-runtime.d.ts.map +0 -1
- package/types/runtime/jsx.d.ts +0 -293
- package/types/runtime/jsx.d.ts.map +0 -1
- package/types/runtime/kay-error.d.ts +0 -14
- package/types/runtime/kay-error.d.ts.map +0 -1
- package/types/runtime/keepalive.d.ts +0 -4
- package/types/runtime/keepalive.d.ts.map +0 -1
- package/types/runtime/lasting.d.ts +0 -2
- package/types/runtime/lasting.d.ts.map +0 -1
- package/types/runtime/leave.d.ts +0 -6
- package/types/runtime/leave.d.ts.map +0 -1
- package/types/runtime/listen-with.d.ts +0 -2
- package/types/runtime/listen-with.d.ts.map +0 -1
- package/types/runtime/listener-set.d.ts +0 -5
- package/types/runtime/listener-set.d.ts.map +0 -1
- package/types/runtime/live-cache.d.ts +0 -5
- package/types/runtime/live-cache.d.ts.map +0 -1
- package/types/runtime/live-props.d.ts +0 -2
- package/types/runtime/live-props.d.ts.map +0 -1
- package/types/runtime/live-resource.server.d.ts +0 -13
- package/types/runtime/live-resource.server.d.ts.map +0 -1
- package/types/runtime/live-revalidate.d.ts +0 -9
- package/types/runtime/live-revalidate.d.ts.map +0 -1
- package/types/runtime/live-value.client.d.ts +0 -8
- package/types/runtime/live-value.client.d.ts.map +0 -1
- package/types/runtime/live-value.d.ts +0 -16
- package/types/runtime/live-value.d.ts.map +0 -1
- package/types/runtime/live-value.server.d.ts +0 -30
- package/types/runtime/live-value.server.d.ts.map +0 -1
- package/types/runtime/live-value.shared.d.ts +0 -85
- package/types/runtime/live-value.shared.d.ts.map +0 -1
- package/types/runtime/live.d.ts +0 -280
- package/types/runtime/live.d.ts.map +0 -1
- package/types/runtime/load-scope.d.ts +0 -9
- package/types/runtime/load-scope.d.ts.map +0 -1
- package/types/runtime/local-status.d.ts +0 -4
- package/types/runtime/local-status.d.ts.map +0 -1
- package/types/runtime/local-types.d.ts +0 -72
- package/types/runtime/local-types.d.ts.map +0 -1
- package/types/runtime/local.d.ts +0 -6
- package/types/runtime/local.d.ts.map +0 -1
- package/types/runtime/locale-state.d.ts +0 -18
- package/types/runtime/locale-state.d.ts.map +0 -1
- package/types/runtime/localized.d.ts +0 -4
- package/types/runtime/localized.d.ts.map +0 -1
- package/types/runtime/log.d.ts +0 -8
- package/types/runtime/log.d.ts.map +0 -1
- package/types/runtime/markdown-autolink.d.ts +0 -11
- package/types/runtime/markdown-autolink.d.ts.map +0 -1
- package/types/runtime/markdown-render.client.d.ts +0 -4
- package/types/runtime/markdown-render.client.d.ts.map +0 -1
- package/types/runtime/markdown-task.d.ts +0 -2
- package/types/runtime/markdown-task.d.ts.map +0 -1
- package/types/runtime/markdown.client.d.ts +0 -8
- package/types/runtime/markdown.client.d.ts.map +0 -1
- package/types/runtime/markdown.d.ts +0 -19
- package/types/runtime/markdown.d.ts.map +0 -1
- package/types/runtime/markdown.server.d.ts +0 -8
- package/types/runtime/markdown.server.d.ts.map +0 -1
- package/types/runtime/markers.d.ts +0 -14
- package/types/runtime/markers.d.ts.map +0 -1
- package/types/runtime/media-query.d.ts +0 -3
- package/types/runtime/media-query.d.ts.map +0 -1
- package/types/runtime/mount.d.ts +0 -9
- package/types/runtime/mount.d.ts.map +0 -1
- package/types/runtime/move.d.ts +0 -3
- package/types/runtime/move.d.ts.map +0 -1
- package/types/runtime/navigate-api.d.ts +0 -20
- package/types/runtime/navigate-api.d.ts.map +0 -1
- package/types/runtime/navigate.d.ts +0 -10
- package/types/runtime/navigate.d.ts.map +0 -1
- package/types/runtime/navigation-entry.d.ts +0 -2
- package/types/runtime/navigation-entry.d.ts.map +0 -1
- package/types/runtime/navigation-state.d.ts +0 -34
- package/types/runtime/navigation-state.d.ts.map +0 -1
- package/types/runtime/navigation.d.ts +0 -90
- package/types/runtime/navigation.d.ts.map +0 -1
- package/types/runtime/online.d.ts +0 -2
- package/types/runtime/online.d.ts.map +0 -1
- package/types/runtime/optimistic.d.ts +0 -7
- package/types/runtime/optimistic.d.ts.map +0 -1
- package/types/runtime/outside.d.ts +0 -8
- package/types/runtime/outside.d.ts.map +0 -1
- package/types/runtime/page-data.d.ts +0 -3
- package/types/runtime/page-data.d.ts.map +0 -1
- package/types/runtime/page-errors.d.ts +0 -2
- package/types/runtime/page-errors.d.ts.map +0 -1
- package/types/runtime/page-swap.d.ts +0 -8
- package/types/runtime/page-swap.d.ts.map +0 -1
- package/types/runtime/page-title.d.ts +0 -2
- package/types/runtime/page-title.d.ts.map +0 -1
- package/types/runtime/params.d.ts +0 -4
- package/types/runtime/params.d.ts.map +0 -1
- package/types/runtime/pending.d.ts +0 -5
- package/types/runtime/pending.d.ts.map +0 -1
- package/types/runtime/persist.d.ts +0 -26
- package/types/runtime/persist.d.ts.map +0 -1
- package/types/runtime/persisted.d.ts +0 -52
- package/types/runtime/persisted.d.ts.map +0 -1
- package/types/runtime/placeholder.d.ts +0 -5
- package/types/runtime/placeholder.d.ts.map +0 -1
- package/types/runtime/poll-backoff.d.ts +0 -16
- package/types/runtime/poll-backoff.d.ts.map +0 -1
- package/types/runtime/prefetch.d.ts +0 -3
- package/types/runtime/prefetch.d.ts.map +0 -1
- package/types/runtime/presence.d.ts +0 -14
- package/types/runtime/presence.d.ts.map +0 -1
- package/types/runtime/preview.d.ts +0 -26
- package/types/runtime/preview.d.ts.map +0 -1
- package/types/runtime/push.d.ts +0 -19
- package/types/runtime/push.d.ts.map +0 -1
- package/types/runtime/query-param.d.ts +0 -14
- package/types/runtime/query-param.d.ts.map +0 -1
- package/types/runtime/queue-jobs.d.ts +0 -16
- package/types/runtime/queue-jobs.d.ts.map +0 -1
- package/types/runtime/random-id.d.ts +0 -2
- package/types/runtime/random-id.d.ts.map +0 -1
- package/types/runtime/reactive-collections.d.ts +0 -3
- package/types/runtime/reactive-collections.d.ts.map +0 -1
- package/types/runtime/reactive.d.ts +0 -121
- package/types/runtime/reactive.d.ts.map +0 -1
- package/types/runtime/recipe.d.ts +0 -34
- package/types/runtime/recipe.d.ts.map +0 -1
- package/types/runtime/refetch-island.d.ts +0 -2
- package/types/runtime/refetch-island.d.ts.map +0 -1
- package/types/runtime/refuse.d.ts +0 -18
- package/types/runtime/refuse.d.ts.map +0 -1
- package/types/runtime/rendered.d.ts +0 -9
- package/types/runtime/rendered.d.ts.map +0 -1
- package/types/runtime/report-error.d.ts +0 -2
- package/types/runtime/report-error.d.ts.map +0 -1
- package/types/runtime/resource-tags.d.ts +0 -4
- package/types/runtime/resource-tags.d.ts.map +0 -1
- package/types/runtime/retry-later.d.ts +0 -2
- package/types/runtime/retry-later.d.ts.map +0 -1
- package/types/runtime/reveal.d.ts +0 -2
- package/types/runtime/reveal.d.ts.map +0 -1
- package/types/runtime/root.d.ts +0 -3
- package/types/runtime/root.d.ts.map +0 -1
- package/types/runtime/route.d.ts +0 -19
- package/types/runtime/route.d.ts.map +0 -1
- package/types/runtime/row-key.d.ts +0 -2
- package/types/runtime/row-key.d.ts.map +0 -1
- package/types/runtime/safe-code.d.ts +0 -2
- package/types/runtime/safe-code.d.ts.map +0 -1
- package/types/runtime/safe-html.d.ts +0 -7
- package/types/runtime/safe-html.d.ts.map +0 -1
- package/types/runtime/sanitize.d.ts +0 -15
- package/types/runtime/sanitize.d.ts.map +0 -1
- package/types/runtime/save-data.d.ts +0 -2
- package/types/runtime/save-data.d.ts.map +0 -1
- package/types/runtime/schema-bounds.d.ts +0 -4
- package/types/runtime/schema-bounds.d.ts.map +0 -1
- package/types/runtime/schema-record.d.ts +0 -9
- package/types/runtime/schema-record.d.ts.map +0 -1
- package/types/runtime/schema.client.d.ts +0 -3
- package/types/runtime/schema.client.d.ts.map +0 -1
- package/types/runtime/schema.d.ts +0 -121
- package/types/runtime/schema.d.ts.map +0 -1
- package/types/runtime/search-arrival.d.ts +0 -2
- package/types/runtime/search-arrival.d.ts.map +0 -1
- package/types/runtime/search-results.d.ts +0 -4
- package/types/runtime/search-results.d.ts.map +0 -1
- package/types/runtime/search.d.ts +0 -48
- package/types/runtime/search.d.ts.map +0 -1
- package/types/runtime/send.d.ts +0 -3
- package/types/runtime/send.d.ts.map +0 -1
- package/types/runtime/seo.d.ts +0 -15
- package/types/runtime/seo.d.ts.map +0 -1
- package/types/runtime/server-islands.d.ts +0 -3
- package/types/runtime/server-islands.d.ts.map +0 -1
- package/types/runtime/shortcut.d.ts +0 -10
- package/types/runtime/shortcut.d.ts.map +0 -1
- package/types/runtime/site.d.ts +0 -14
- package/types/runtime/site.d.ts.map +0 -1
- package/types/runtime/size-text.d.ts +0 -2
- package/types/runtime/size-text.d.ts.map +0 -1
- package/types/runtime/snapshots.d.ts +0 -13
- package/types/runtime/snapshots.d.ts.map +0 -1
- package/types/runtime/socket-message.d.ts +0 -7
- package/types/runtime/socket-message.d.ts.map +0 -1
- package/types/runtime/sqlite.server.d.ts +0 -4
- package/types/runtime/sqlite.server.d.ts.map +0 -1
- package/types/runtime/sse.d.ts +0 -3
- package/types/runtime/sse.d.ts.map +0 -1
- package/types/runtime/stale.d.ts +0 -4
- package/types/runtime/stale.d.ts.map +0 -1
- package/types/runtime/standard-schema.d.ts +0 -37
- package/types/runtime/standard-schema.d.ts.map +0 -1
- package/types/runtime/static-slots.d.ts +0 -4
- package/types/runtime/static-slots.d.ts.map +0 -1
- package/types/runtime/store-base.d.ts +0 -9
- package/types/runtime/store-base.d.ts.map +0 -1
- package/types/runtime/store.d.ts +0 -12
- package/types/runtime/store.d.ts.map +0 -1
- package/types/runtime/swap-fetch.d.ts +0 -10
- package/types/runtime/swap-fetch.d.ts.map +0 -1
- package/types/runtime/swap-flight.d.ts +0 -36
- package/types/runtime/swap-flight.d.ts.map +0 -1
- package/types/runtime/swap-focus.d.ts +0 -8
- package/types/runtime/swap-focus.d.ts.map +0 -1
- package/types/runtime/swap-head.d.ts +0 -8
- package/types/runtime/swap-head.d.ts.map +0 -1
- package/types/runtime/swap-held.d.ts +0 -2
- package/types/runtime/swap-held.d.ts.map +0 -1
- package/types/runtime/swap-kept.d.ts +0 -8
- package/types/runtime/swap-kept.d.ts.map +0 -1
- package/types/runtime/swap-loading.d.ts +0 -6
- package/types/runtime/swap-loading.d.ts.map +0 -1
- package/types/runtime/swap-morph.d.ts +0 -8
- package/types/runtime/swap-morph.d.ts.map +0 -1
- package/types/runtime/swap-refusal.d.ts +0 -2
- package/types/runtime/swap-refusal.d.ts.map +0 -1
- package/types/runtime/swap-streamed.d.ts +0 -14
- package/types/runtime/swap-streamed.d.ts.map +0 -1
- package/types/runtime/swap-transition.d.ts +0 -4
- package/types/runtime/swap-transition.d.ts.map +0 -1
- package/types/runtime/swap.d.ts +0 -18
- package/types/runtime/swap.d.ts.map +0 -1
- package/types/runtime/template-context.d.ts +0 -28
- package/types/runtime/template-context.d.ts.map +0 -1
- package/types/runtime/text-hash.d.ts +0 -2
- package/types/runtime/text-hash.d.ts.map +0 -1
- package/types/runtime/transition.d.ts +0 -11
- package/types/runtime/transition.d.ts.map +0 -1
- package/types/runtime/ui.d.ts +0 -22
- package/types/runtime/ui.d.ts.map +0 -1
- package/types/runtime/uid.d.ts +0 -10
- package/types/runtime/uid.d.ts.map +0 -1
- package/types/runtime/uid.server.d.ts +0 -6
- package/types/runtime/uid.server.d.ts.map +0 -1
- package/types/runtime/upload.d.ts +0 -2
- package/types/runtime/upload.d.ts.map +0 -1
- package/types/runtime/url-attributes.d.ts +0 -2
- package/types/runtime/url-attributes.d.ts.map +0 -1
- package/types/runtime/url-report.d.ts +0 -5
- package/types/runtime/url-report.d.ts.map +0 -1
- package/types/runtime/url.d.ts +0 -5
- package/types/runtime/url.d.ts.map +0 -1
- package/types/runtime/validate-run.client.d.ts +0 -4
- package/types/runtime/validate-run.client.d.ts.map +0 -1
- package/types/runtime/validate.client.d.ts +0 -4
- package/types/runtime/validate.client.d.ts.map +0 -1
- package/types/runtime/validate.d.ts +0 -6
- package/types/runtime/validate.d.ts.map +0 -1
- package/types/runtime/values.d.ts +0 -23
- package/types/runtime/values.d.ts.map +0 -1
- package/types/runtime/visibility.d.ts +0 -3
- package/types/runtime/visibility.d.ts.map +0 -1
- package/types/runtime/warn-once.d.ts +0 -4
- package/types/runtime/warn-once.d.ts.map +0 -1
- package/types/runtime/wire.d.ts +0 -16
- package/types/runtime/wire.d.ts.map +0 -1
- package/types/runtime/with-query.d.ts +0 -7
- package/types/runtime/with-query.d.ts.map +0 -1
- package/types/runtime/words.client.d.ts +0 -8
- package/types/runtime/words.client.d.ts.map +0 -1
- package/types/runtime/words.server.d.ts +0 -7
- package/types/runtime/words.server.d.ts.map +0 -1
- package/types/runtime/work-worker.d.ts +0 -2
- package/types/runtime/work-worker.d.ts.map +0 -1
- package/types/runtime/work.client.d.ts +0 -4
- package/types/runtime/work.client.d.ts.map +0 -1
- package/types/runtime/work.d.ts +0 -4
- package/types/runtime/work.d.ts.map +0 -1
- package/types/server/accept-language.d.ts +0 -5
- package/types/server/accept-language.d.ts.map +0 -1
- package/types/server/action-clash.d.ts +0 -2
- package/types/server/action-clash.d.ts.map +0 -1
- package/types/server/action-hooks.d.ts +0 -19
- package/types/server/action-hooks.d.ts.map +0 -1
- package/types/server/action-input.d.ts +0 -3
- package/types/server/action-input.d.ts.map +0 -1
- package/types/server/action-iterable.d.ts +0 -8
- package/types/server/action-iterable.d.ts.map +0 -1
- package/types/server/action-module.d.ts +0 -2
- package/types/server/action-module.d.ts.map +0 -1
- package/types/server/actions.d.ts +0 -58
- package/types/server/actions.d.ts.map +0 -1
- package/types/server/address.d.ts +0 -20
- package/types/server/address.d.ts.map +0 -1
- package/types/server/analytics-script.d.ts +0 -5
- package/types/server/analytics-script.d.ts.map +0 -1
- package/types/server/analytics-server.d.ts +0 -12
- package/types/server/analytics-server.d.ts.map +0 -1
- package/types/server/analytics-words.d.ts +0 -8
- package/types/server/analytics-words.d.ts.map +0 -1
- package/types/server/analytics.d.ts +0 -109
- package/types/server/analytics.d.ts.map +0 -1
- package/types/server/answer.d.ts +0 -6
- package/types/server/answer.d.ts.map +0 -1
- package/types/server/api-input.d.ts +0 -19
- package/types/server/api-input.d.ts.map +0 -1
- package/types/server/api-modules.d.ts +0 -53
- package/types/server/api-modules.d.ts.map +0 -1
- package/types/server/api-params.d.ts +0 -16
- package/types/server/api-params.d.ts.map +0 -1
- package/types/server/api.d.ts +0 -53
- package/types/server/api.d.ts.map +0 -1
- package/types/server/app-database.d.ts +0 -15
- package/types/server/app-database.d.ts.map +0 -1
- package/types/server/app-hooks.d.ts +0 -34
- package/types/server/app-hooks.d.ts.map +0 -1
- package/types/server/app-identity.d.ts +0 -13
- package/types/server/app-identity.d.ts.map +0 -1
- package/types/server/app-stages.d.ts +0 -203
- package/types/server/app-stages.d.ts.map +0 -1
- package/types/server/app-store.d.ts +0 -33
- package/types/server/app-store.d.ts.map +0 -1
- package/types/server/app.d.ts +0 -118
- package/types/server/app.d.ts.map +0 -1
- package/types/server/auth-mails.d.ts +0 -357
- package/types/server/auth-mails.d.ts.map +0 -1
- package/types/server/auto-listen.d.ts +0 -6
- package/types/server/auto-listen.d.ts.map +0 -1
- package/types/server/avif-worker.d.ts +0 -19
- package/types/server/avif-worker.d.ts.map +0 -1
- package/types/server/avif.d.ts +0 -12
- package/types/server/avif.d.ts.map +0 -1
- package/types/server/base.d.ts +0 -9
- package/types/server/base.d.ts.map +0 -1
- package/types/server/basic-auth.d.ts +0 -10
- package/types/server/basic-auth.d.ts.map +0 -1
- package/types/server/body.d.ts +0 -23
- package/types/server/body.d.ts.map +0 -1
- package/types/server/build-files.d.ts +0 -8
- package/types/server/build-files.d.ts.map +0 -1
- package/types/server/builtins.d.ts +0 -5
- package/types/server/builtins.d.ts.map +0 -1
- package/types/server/bundle.d.ts +0 -27
- package/types/server/bundle.d.ts.map +0 -1
- package/types/server/button-form-rule.d.ts +0 -4
- package/types/server/button-form-rule.d.ts.map +0 -1
- package/types/server/card-draw.d.ts +0 -20
- package/types/server/card-draw.d.ts.map +0 -1
- package/types/server/card-template.d.ts +0 -8
- package/types/server/card-template.d.ts.map +0 -1
- package/types/server/card.d.ts +0 -73
- package/types/server/card.d.ts.map +0 -1
- package/types/server/ceiling.d.ts +0 -2
- package/types/server/ceiling.d.ts.map +0 -1
- package/types/server/clean-context.d.ts +0 -2
- package/types/server/clean-context.d.ts.map +0 -1
- package/types/server/client.d.ts +0 -94
- package/types/server/client.d.ts.map +0 -1
- package/types/server/codec/avif-enc-build.d.ts +0 -2
- package/types/server/codec/avif-enc-build.d.ts.map +0 -1
- package/types/server/compress-policy.d.ts +0 -2
- package/types/server/compress-policy.d.ts.map +0 -1
- package/types/server/compress.d.ts +0 -44
- package/types/server/compress.d.ts.map +0 -1
- package/types/server/config-error.d.ts +0 -10
- package/types/server/config-error.d.ts.map +0 -1
- package/types/server/config-limits.d.ts +0 -37
- package/types/server/config-limits.d.ts.map +0 -1
- package/types/server/consent-cookie.d.ts +0 -2
- package/types/server/consent-cookie.d.ts.map +0 -1
- package/types/server/context-reads.d.ts +0 -2
- package/types/server/context-reads.d.ts.map +0 -1
- package/types/server/context-record.d.ts +0 -10
- package/types/server/context-record.d.ts.map +0 -1
- package/types/server/context-values.d.ts +0 -15
- package/types/server/context-values.d.ts.map +0 -1
- package/types/server/cookie-names.d.ts +0 -3
- package/types/server/cookie-names.d.ts.map +0 -1
- package/types/server/cookies.d.ts +0 -36
- package/types/server/cookies.d.ts.map +0 -1
- package/types/server/cors.d.ts +0 -35
- package/types/server/cors.d.ts.map +0 -1
- package/types/server/crop.d.ts +0 -16
- package/types/server/crop.d.ts.map +0 -1
- package/types/server/cross-site.d.ts +0 -9
- package/types/server/cross-site.d.ts.map +0 -1
- package/types/server/csp.d.ts +0 -13
- package/types/server/csp.d.ts.map +0 -1
- package/types/server/dev-data.d.ts +0 -44
- package/types/server/dev-data.d.ts.map +0 -1
- package/types/server/dev-errors.d.ts +0 -34
- package/types/server/dev-errors.d.ts.map +0 -1
- package/types/server/dev-footprint.d.ts +0 -2
- package/types/server/dev-footprint.d.ts.map +0 -1
- package/types/server/dev-head.d.ts +0 -13
- package/types/server/dev-head.d.ts.map +0 -1
- package/types/server/dev-jobs.d.ts +0 -4
- package/types/server/dev-jobs.d.ts.map +0 -1
- package/types/server/dev-not-found.d.ts +0 -9
- package/types/server/dev-not-found.d.ts.map +0 -1
- package/types/server/dev-notes.d.ts +0 -3
- package/types/server/dev-notes.d.ts.map +0 -1
- package/types/server/dev-offered.d.ts +0 -6
- package/types/server/dev-offered.d.ts.map +0 -1
- package/types/server/dev-secret.d.ts +0 -2
- package/types/server/dev-secret.d.ts.map +0 -1
- package/types/server/dev-sizes.d.ts +0 -18
- package/types/server/dev-sizes.d.ts.map +0 -1
- package/types/server/dev-sqlite-worker.d.ts +0 -22
- package/types/server/dev-sqlite-worker.d.ts.map +0 -1
- package/types/server/dev-ui.d.ts +0 -3
- package/types/server/dev-ui.d.ts.map +0 -1
- package/types/server/dev.d.ts +0 -159
- package/types/server/dev.d.ts.map +0 -1
- package/types/server/dictionary.d.ts +0 -28
- package/types/server/dictionary.d.ts.map +0 -1
- package/types/server/drain.d.ts +0 -5
- package/types/server/drain.d.ts.map +0 -1
- package/types/server/editor.d.ts +0 -2
- package/types/server/editor.d.ts.map +0 -1
- package/types/server/endpoint-claims.d.ts +0 -4
- package/types/server/endpoint-claims.d.ts.map +0 -1
- package/types/server/endpoint-verbs.d.ts +0 -11
- package/types/server/endpoint-verbs.d.ts.map +0 -1
- package/types/server/endpoints.d.ts +0 -12
- package/types/server/endpoints.d.ts.map +0 -1
- package/types/server/entry-drafts.d.ts +0 -15
- package/types/server/entry-drafts.d.ts.map +0 -1
- package/types/server/entry-head.d.ts +0 -5
- package/types/server/entry-head.d.ts.map +0 -1
- package/types/server/entry-urls.d.ts +0 -6
- package/types/server/entry-urls.d.ts.map +0 -1
- package/types/server/env-state.d.ts +0 -23
- package/types/server/env-state.d.ts.map +0 -1
- package/types/server/env.d.ts +0 -26
- package/types/server/env.d.ts.map +0 -1
- package/types/server/error-maps.d.ts +0 -3
- package/types/server/error-maps.d.ts.map +0 -1
- package/types/server/errors.d.ts +0 -13
- package/types/server/errors.d.ts.map +0 -1
- package/types/server/event-stream.d.ts +0 -22
- package/types/server/event-stream.d.ts.map +0 -1
- package/types/server/face.d.ts +0 -16
- package/types/server/face.d.ts.map +0 -1
- package/types/server/favicon.d.ts +0 -66
- package/types/server/favicon.d.ts.map +0 -1
- package/types/server/fetch-public.d.ts +0 -12
- package/types/server/fetch-public.d.ts.map +0 -1
- package/types/server/file-answer.d.ts +0 -17
- package/types/server/file-answer.d.ts.map +0 -1
- package/types/server/file-limit.d.ts +0 -3
- package/types/server/file-limit.d.ts.map +0 -1
- package/types/server/file-type.d.ts +0 -4
- package/types/server/file-type.d.ts.map +0 -1
- package/types/server/flash.d.ts +0 -24
- package/types/server/flash.d.ts.map +0 -1
- package/types/server/font-metrics.d.ts +0 -22
- package/types/server/font-metrics.d.ts.map +0 -1
- package/types/server/fonts.d.ts +0 -26
- package/types/server/fonts.d.ts.map +0 -1
- package/types/server/forms.d.ts +0 -3
- package/types/server/forms.d.ts.map +0 -1
- package/types/server/guard-requirement.d.ts +0 -13
- package/types/server/guard-requirement.d.ts.map +0 -1
- package/types/server/guard-runs.d.ts +0 -5
- package/types/server/guard-runs.d.ts.map +0 -1
- package/types/server/guards.d.ts +0 -35
- package/types/server/guards.d.ts.map +0 -1
- package/types/server/handler-timing.d.ts +0 -2
- package/types/server/handler-timing.d.ts.map +0 -1
- package/types/server/history.d.ts +0 -2
- package/types/server/history.d.ts.map +0 -1
- package/types/server/hooks.d.ts +0 -28
- package/types/server/hooks.d.ts.map +0 -1
- package/types/server/host-allowlist.d.ts +0 -11
- package/types/server/host-allowlist.d.ts.map +0 -1
- package/types/server/hydration.d.ts +0 -3
- package/types/server/hydration.d.ts.map +0 -1
- package/types/server/i18n.d.ts +0 -70
- package/types/server/i18n.d.ts.map +0 -1
- package/types/server/image-color.d.ts +0 -5
- package/types/server/image-color.d.ts.map +0 -1
- package/types/server/image-format.d.ts +0 -18
- package/types/server/image-format.d.ts.map +0 -1
- package/types/server/image-limits.d.ts +0 -17
- package/types/server/image-limits.d.ts.map +0 -1
- package/types/server/image-metadata-bmff.d.ts +0 -3
- package/types/server/image-metadata-bmff.d.ts.map +0 -1
- package/types/server/image-metadata.d.ts +0 -3
- package/types/server/image-metadata.d.ts.map +0 -1
- package/types/server/image.d.ts +0 -92
- package/types/server/image.d.ts.map +0 -1
- package/types/server/index.d.ts +0 -86
- package/types/server/index.d.ts.map +0 -1
- package/types/server/internal.d.ts +0 -8
- package/types/server/internal.d.ts.map +0 -1
- package/types/server/job-admin.d.ts +0 -36
- package/types/server/job-admin.d.ts.map +0 -1
- package/types/server/job-context.d.ts +0 -16
- package/types/server/job-context.d.ts.map +0 -1
- package/types/server/job-status.d.ts +0 -3
- package/types/server/job-status.d.ts.map +0 -1
- package/types/server/job-steps.d.ts +0 -2
- package/types/server/job-steps.d.ts.map +0 -1
- package/types/server/jobs-page.d.ts +0 -12
- package/types/server/jobs-page.d.ts.map +0 -1
- package/types/server/jobs.d.ts +0 -78
- package/types/server/jobs.d.ts.map +0 -1
- package/types/server/kay-routes.d.ts +0 -47
- package/types/server/kay-routes.d.ts.map +0 -1
- package/types/server/kay-server.d.ts +0 -25
- package/types/server/kay-server.d.ts.map +0 -1
- package/types/server/kept-exports.d.ts +0 -5
- package/types/server/kept-exports.d.ts.map +0 -1
- package/types/server/kept-pages.d.ts +0 -9
- package/types/server/kept-pages.d.ts.map +0 -1
- package/types/server/kept-source.d.ts +0 -48
- package/types/server/kept-source.d.ts.map +0 -1
- package/types/server/kv.d.ts +0 -18
- package/types/server/kv.d.ts.map +0 -1
- package/types/server/lazy-guard.d.ts +0 -11
- package/types/server/lazy-guard.d.ts.map +0 -1
- package/types/server/library.d.ts +0 -111
- package/types/server/library.d.ts.map +0 -1
- package/types/server/lifecycle.d.ts +0 -18
- package/types/server/lifecycle.d.ts.map +0 -1
- package/types/server/limit.d.ts +0 -6
- package/types/server/limit.d.ts.map +0 -1
- package/types/server/link-schemes.d.ts +0 -3
- package/types/server/link-schemes.d.ts.map +0 -1
- package/types/server/links.d.ts +0 -4
- package/types/server/links.d.ts.map +0 -1
- package/types/server/literal-writes.d.ts +0 -43
- package/types/server/literal-writes.d.ts.map +0 -1
- package/types/server/live.d.ts +0 -39
- package/types/server/live.d.ts.map +0 -1
- package/types/server/load-budget.d.ts +0 -4
- package/types/server/load-budget.d.ts.map +0 -1
- package/types/server/loader.d.ts +0 -5
- package/types/server/loader.d.ts.map +0 -1
- package/types/server/loading-page.d.ts +0 -6
- package/types/server/loading-page.d.ts.map +0 -1
- package/types/server/local-files.d.ts +0 -4
- package/types/server/local-files.d.ts.map +0 -1
- package/types/server/log.d.ts +0 -57
- package/types/server/log.d.ts.map +0 -1
- package/types/server/maintenance.d.ts +0 -24
- package/types/server/maintenance.d.ts.map +0 -1
- package/types/server/mcp-key.d.ts +0 -11
- package/types/server/mcp-key.d.ts.map +0 -1
- package/types/server/mcp.d.ts +0 -58
- package/types/server/mcp.d.ts.map +0 -1
- package/types/server/memory-jobs.d.ts +0 -3
- package/types/server/memory-jobs.d.ts.map +0 -1
- package/types/server/memory-mark.d.ts +0 -3
- package/types/server/memory-mark.d.ts.map +0 -1
- package/types/server/message-drafts.d.ts +0 -13
- package/types/server/message-drafts.d.ts.map +0 -1
- package/types/server/metrics.d.ts +0 -16
- package/types/server/metrics.d.ts.map +0 -1
- package/types/server/missing-hits.d.ts +0 -16
- package/types/server/missing-hits.d.ts.map +0 -1
- package/types/server/module-state.d.ts +0 -9
- package/types/server/module-state.d.ts.map +0 -1
- package/types/server/new-tab.d.ts +0 -4
- package/types/server/new-tab.d.ts.map +0 -1
- package/types/server/not-found-config.d.ts +0 -5
- package/types/server/not-found-config.d.ts.map +0 -1
- package/types/server/not-found.d.ts +0 -79
- package/types/server/not-found.d.ts.map +0 -1
- package/types/server/notifications.d.ts +0 -56
- package/types/server/notifications.d.ts.map +0 -1
- package/types/server/offline.d.ts +0 -22
- package/types/server/offline.d.ts.map +0 -1
- package/types/server/openapi.d.ts +0 -84
- package/types/server/openapi.d.ts.map +0 -1
- package/types/server/option-keys.d.ts +0 -2
- package/types/server/option-keys.d.ts.map +0 -1
- package/types/server/over-limit.d.ts +0 -9
- package/types/server/over-limit.d.ts.map +0 -1
- package/types/server/overlay.d.ts +0 -12
- package/types/server/overlay.d.ts.map +0 -1
- package/types/server/own-headers.d.ts +0 -21
- package/types/server/own-headers.d.ts.map +0 -1
- package/types/server/page-error.d.ts +0 -7
- package/types/server/page-error.d.ts.map +0 -1
- package/types/server/page-flags.d.ts +0 -5
- package/types/server/page-flags.d.ts.map +0 -1
- package/types/server/page-headers.d.ts +0 -6
- package/types/server/page-headers.d.ts.map +0 -1
- package/types/server/page-hook.d.ts +0 -32
- package/types/server/page-hook.d.ts.map +0 -1
- package/types/server/page-limits.d.ts +0 -26
- package/types/server/page-limits.d.ts.map +0 -1
- package/types/server/page-reads.d.ts +0 -6
- package/types/server/page-reads.d.ts.map +0 -1
- package/types/server/page-routes.d.ts +0 -48
- package/types/server/page-routes.d.ts.map +0 -1
- package/types/server/page-seo.d.ts +0 -3
- package/types/server/page-seo.d.ts.map +0 -1
- package/types/server/page-settings.d.ts +0 -17
- package/types/server/page-settings.d.ts.map +0 -1
- package/types/server/params.d.ts +0 -20
- package/types/server/params.d.ts.map +0 -1
- package/types/server/parent.d.ts +0 -5
- package/types/server/parent.d.ts.map +0 -1
- package/types/server/personal-data.d.ts +0 -13
- package/types/server/personal-data.d.ts.map +0 -1
- package/types/server/pg-cache.d.ts +0 -4
- package/types/server/pg-cache.d.ts.map +0 -1
- package/types/server/pg-data.d.ts +0 -30
- package/types/server/pg-data.d.ts.map +0 -1
- package/types/server/pg-jobs.d.ts +0 -31
- package/types/server/pg-jobs.d.ts.map +0 -1
- package/types/server/pg-limit.d.ts +0 -10
- package/types/server/pg-limit.d.ts.map +0 -1
- package/types/server/pg-live.d.ts +0 -4
- package/types/server/pg-live.d.ts.map +0 -1
- package/types/server/pg-not-found.d.ts +0 -30
- package/types/server/pg-not-found.d.ts.map +0 -1
- package/types/server/pg-notify.d.ts +0 -9
- package/types/server/pg-notify.d.ts.map +0 -1
- package/types/server/pg-orm.d.ts +0 -32
- package/types/server/pg-orm.d.ts.map +0 -1
- package/types/server/pg-poll.d.ts +0 -41
- package/types/server/pg-poll.d.ts.map +0 -1
- package/types/server/pg-redirects.d.ts +0 -4
- package/types/server/pg-redirects.d.ts.map +0 -1
- package/types/server/pg-rooms.d.ts +0 -7
- package/types/server/pg-rooms.d.ts.map +0 -1
- package/types/server/pg-sql.d.ts +0 -6
- package/types/server/pg-sql.d.ts.map +0 -1
- package/types/server/pg-stores.d.ts +0 -14
- package/types/server/pg-stores.d.ts.map +0 -1
- package/types/server/phases.d.ts +0 -36
- package/types/server/phases.d.ts.map +0 -1
- package/types/server/plugin.d.ts +0 -32
- package/types/server/plugin.d.ts.map +0 -1
- package/types/server/plumbing.d.ts +0 -20
- package/types/server/plumbing.d.ts.map +0 -1
- package/types/server/png.d.ts +0 -9
- package/types/server/png.d.ts.map +0 -1
- package/types/server/prebuilt-loader.d.ts +0 -2
- package/types/server/prebuilt-loader.d.ts.map +0 -1
- package/types/server/prerender.d.ts +0 -34
- package/types/server/prerender.d.ts.map +0 -1
- package/types/server/prerendered.d.ts +0 -19
- package/types/server/prerendered.d.ts.map +0 -1
- package/types/server/presence.d.ts +0 -10
- package/types/server/presence.d.ts.map +0 -1
- package/types/server/preview.d.ts +0 -55
- package/types/server/preview.d.ts.map +0 -1
- package/types/server/private-dir.d.ts +0 -7
- package/types/server/private-dir.d.ts.map +0 -1
- package/types/server/protection.d.ts +0 -95
- package/types/server/protection.d.ts.map +0 -1
- package/types/server/proxy-key.d.ts +0 -14
- package/types/server/proxy-key.d.ts.map +0 -1
- package/types/server/public-suffix.d.ts +0 -2
- package/types/server/public-suffix.d.ts.map +0 -1
- package/types/server/public-suffixes.d.ts +0 -3
- package/types/server/public-suffixes.d.ts.map +0 -1
- package/types/server/public.d.ts +0 -23
- package/types/server/public.d.ts.map +0 -1
- package/types/server/publishing.d.ts +0 -13
- package/types/server/publishing.d.ts.map +0 -1
- package/types/server/pure-page.d.ts +0 -21
- package/types/server/pure-page.d.ts.map +0 -1
- package/types/server/push-crypto.d.ts +0 -21
- package/types/server/push-crypto.d.ts.map +0 -1
- package/types/server/push-keys-command.d.ts +0 -4
- package/types/server/push-keys-command.d.ts.map +0 -1
- package/types/server/push-server.d.ts +0 -4
- package/types/server/push-server.d.ts.map +0 -1
- package/types/server/push-settings.d.ts +0 -18
- package/types/server/push-settings.d.ts.map +0 -1
- package/types/server/push-store.d.ts +0 -19
- package/types/server/push-store.d.ts.map +0 -1
- package/types/server/push.d.ts +0 -49
- package/types/server/push.d.ts.map +0 -1
- package/types/server/query.d.ts +0 -14
- package/types/server/query.d.ts.map +0 -1
- package/types/server/queue-live.d.ts +0 -20
- package/types/server/queue-live.d.ts.map +0 -1
- package/types/server/queue-scheduler.d.ts +0 -32
- package/types/server/queue-scheduler.d.ts.map +0 -1
- package/types/server/queue-telling.d.ts +0 -3
- package/types/server/queue-telling.d.ts.map +0 -1
- package/types/server/queue.d.ts +0 -163
- package/types/server/queue.d.ts.map +0 -1
- package/types/server/raster.d.ts +0 -14
- package/types/server/raster.d.ts.map +0 -1
- package/types/server/rate-limit.d.ts +0 -12
- package/types/server/rate-limit.d.ts.map +0 -1
- package/types/server/rate-refusal.d.ts +0 -4
- package/types/server/rate-refusal.d.ts.map +0 -1
- package/types/server/rate-windows.d.ts +0 -3
- package/types/server/rate-windows.d.ts.map +0 -1
- package/types/server/reach-walk.d.ts +0 -4
- package/types/server/reach-walk.d.ts.map +0 -1
- package/types/server/reach.d.ts +0 -11
- package/types/server/reach.d.ts.map +0 -1
- package/types/server/receive.d.ts +0 -9
- package/types/server/receive.d.ts.map +0 -1
- package/types/server/redirect-spelling.d.ts +0 -5
- package/types/server/redirect-spelling.d.ts.map +0 -1
- package/types/server/redirects.d.ts +0 -27
- package/types/server/redirects.d.ts.map +0 -1
- package/types/server/reload.d.ts +0 -4
- package/types/server/reload.d.ts.map +0 -1
- package/types/server/remote.d.ts +0 -24
- package/types/server/remote.d.ts.map +0 -1
- package/types/server/render-document.d.ts +0 -22
- package/types/server/render-document.d.ts.map +0 -1
- package/types/server/render.d.ts +0 -117
- package/types/server/render.d.ts.map +0 -1
- package/types/server/report.d.ts +0 -7
- package/types/server/report.d.ts.map +0 -1
- package/types/server/request-context.d.ts +0 -29
- package/types/server/request-context.d.ts.map +0 -1
- package/types/server/request-read.d.ts +0 -15
- package/types/server/request-read.d.ts.map +0 -1
- package/types/server/request-record.d.ts +0 -76
- package/types/server/request-record.d.ts.map +0 -1
- package/types/server/request-scope.d.ts +0 -7
- package/types/server/request-scope.d.ts.map +0 -1
- package/types/server/request-timeout.d.ts +0 -31
- package/types/server/request-timeout.d.ts.map +0 -1
- package/types/server/request-url.d.ts +0 -4
- package/types/server/request-url.d.ts.map +0 -1
- package/types/server/request-user.d.ts +0 -4
- package/types/server/request-user.d.ts.map +0 -1
- package/types/server/resources.d.ts +0 -12
- package/types/server/resources.d.ts.map +0 -1
- package/types/server/response-mismatch.d.ts +0 -3
- package/types/server/response-mismatch.d.ts.map +0 -1
- package/types/server/revalidate.d.ts +0 -3
- package/types/server/revalidate.d.ts.map +0 -1
- package/types/server/rewrite.d.ts +0 -13
- package/types/server/rewrite.d.ts.map +0 -1
- package/types/server/rooms.d.ts +0 -87
- package/types/server/rooms.d.ts.map +0 -1
- package/types/server/route-settings.d.ts +0 -9
- package/types/server/route-settings.d.ts.map +0 -1
- package/types/server/route-table.d.ts +0 -26
- package/types/server/route-table.d.ts.map +0 -1
- package/types/server/routes.d.ts +0 -101
- package/types/server/routes.d.ts.map +0 -1
- package/types/server/runtime-redirect-api.d.ts +0 -35
- package/types/server/runtime-redirect-api.d.ts.map +0 -1
- package/types/server/runtime-redirects.d.ts +0 -74
- package/types/server/runtime-redirects.d.ts.map +0 -1
- package/types/server/safe-path.d.ts +0 -2
- package/types/server/safe-path.d.ts.map +0 -1
- package/types/server/save-data.d.ts +0 -10
- package/types/server/save-data.d.ts.map +0 -1
- package/types/server/schema-answer.d.ts +0 -12
- package/types/server/schema-answer.d.ts.map +0 -1
- package/types/server/schema-check.d.ts +0 -13
- package/types/server/schema-check.d.ts.map +0 -1
- package/types/server/scope.d.ts +0 -12
- package/types/server/scope.d.ts.map +0 -1
- package/types/server/seal.d.ts +0 -11
- package/types/server/seal.d.ts.map +0 -1
- package/types/server/secret.d.ts +0 -12
- package/types/server/secret.d.ts.map +0 -1
- package/types/server/security.d.ts +0 -19
- package/types/server/security.d.ts.map +0 -1
- package/types/server/seo.d.ts +0 -15
- package/types/server/seo.d.ts.map +0 -1
- package/types/server/served-paths.d.ts +0 -26
- package/types/server/served-paths.d.ts.map +0 -1
- package/types/server/server-islands.d.ts +0 -28
- package/types/server/server-islands.d.ts.map +0 -1
- package/types/server/server-record.d.ts +0 -23
- package/types/server/server-record.d.ts.map +0 -1
- package/types/server/serving.d.ts +0 -5
- package/types/server/serving.d.ts.map +0 -1
- package/types/server/session.d.ts +0 -116
- package/types/server/session.d.ts.map +0 -1
- package/types/server/setup.d.ts +0 -49
- package/types/server/setup.d.ts.map +0 -1
- package/types/server/sha256.d.ts +0 -7
- package/types/server/sha256.d.ts.map +0 -1
- package/types/server/signals.d.ts +0 -19
- package/types/server/signals.d.ts.map +0 -1
- package/types/server/signed.d.ts +0 -9
- package/types/server/signed.d.ts.map +0 -1
- package/types/server/site-facts.d.ts +0 -8
- package/types/server/site-facts.d.ts.map +0 -1
- package/types/server/site-paths.d.ts +0 -3
- package/types/server/site-paths.d.ts.map +0 -1
- package/types/server/sitemap.d.ts +0 -36
- package/types/server/sitemap.d.ts.map +0 -1
- package/types/server/snake-case.d.ts +0 -2
- package/types/server/snake-case.d.ts.map +0 -1
- package/types/server/socket.d.ts +0 -49
- package/types/server/socket.d.ts.map +0 -1
- package/types/server/source.d.ts +0 -34
- package/types/server/source.d.ts.map +0 -1
- package/types/server/speculation.d.ts +0 -4
- package/types/server/speculation.d.ts.map +0 -1
- package/types/server/sqlite-data.d.ts +0 -14
- package/types/server/sqlite-data.d.ts.map +0 -1
- package/types/server/sqlite-live.d.ts +0 -3
- package/types/server/sqlite-live.d.ts.map +0 -1
- package/types/server/stale-pages.d.ts +0 -17
- package/types/server/stale-pages.d.ts.map +0 -1
- package/types/server/stamp.d.ts +0 -24
- package/types/server/stamp.d.ts.map +0 -1
- package/types/server/storage.d.ts +0 -74
- package/types/server/storage.d.ts.map +0 -1
- package/types/server/stream.d.ts +0 -26
- package/types/server/stream.d.ts.map +0 -1
- package/types/server/string.d.ts +0 -9
- package/types/server/string.d.ts.map +0 -1
- package/types/server/svg-icon.d.ts +0 -3
- package/types/server/svg-icon.d.ts.map +0 -1
- package/types/server/swap.d.ts +0 -3
- package/types/server/swap.d.ts.map +0 -1
- package/types/server/tool-outputs.d.ts +0 -12
- package/types/server/tool-outputs.d.ts.map +0 -1
- package/types/server/tool-settings.d.ts +0 -3
- package/types/server/tool-settings.d.ts.map +0 -1
- package/types/server/trace-context.d.ts +0 -17
- package/types/server/trace-context.d.ts.map +0 -1
- package/types/server/trace.d.ts +0 -33
- package/types/server/trace.d.ts.map +0 -1
- package/types/server/translations.d.ts +0 -8
- package/types/server/translations.d.ts.map +0 -1
- package/types/server/typography.d.ts +0 -3
- package/types/server/typography.d.ts.map +0 -1
- package/types/server/uncaught.d.ts +0 -9
- package/types/server/uncaught.d.ts.map +0 -1
- package/types/server/unsafe-urls.d.ts +0 -2
- package/types/server/unsafe-urls.d.ts.map +0 -1
- package/types/server/validate.d.ts +0 -26
- package/types/server/validate.d.ts.map +0 -1
- package/types/server/violations.d.ts +0 -18
- package/types/server/violations.d.ts.map +0 -1
- package/types/server/visit.d.ts +0 -11
- package/types/server/visit.d.ts.map +0 -1
- package/types/server/vitals-routes/_guard.d.ts +0 -3
- package/types/server/vitals-routes/_guard.d.ts.map +0 -1
- package/types/server/vitals-screen.d.ts +0 -5
- package/types/server/vitals-screen.d.ts.map +0 -1
- package/types/server/vitals-script.d.ts +0 -3
- package/types/server/vitals-script.d.ts.map +0 -1
- package/types/server/vitals-server.d.ts +0 -4
- package/types/server/vitals-server.d.ts.map +0 -1
- package/types/server/vitals-store.d.ts +0 -41
- package/types/server/vitals-store.d.ts.map +0 -1
- package/types/server/vitals.d.ts +0 -20
- package/types/server/vitals.d.ts.map +0 -1
- package/types/server/web-socket.d.ts +0 -11
- package/types/server/web-socket.d.ts.map +0 -1
- package/types/server/wildcards.d.ts +0 -3
- package/types/server/wildcards.d.ts.map +0 -1
- package/types/server/words.d.ts +0 -52
- package/types/server/words.d.ts.map +0 -1
- package/types/server/work-scope.d.ts +0 -14
- package/types/server/work-scope.d.ts.map +0 -1
- package/types/server/work.d.ts +0 -11
- package/types/server/work.d.ts.map +0 -1
- package/types/server/workers.d.ts +0 -23
- package/types/server/workers.d.ts.map +0 -1
- package/types/server/workflow.d.ts +0 -92
- package/types/server/workflow.d.ts.map +0 -1
- package/types/server/writes.d.ts +0 -4
- package/types/server/writes.d.ts.map +0 -1
- package/types/server/ws-limits.d.ts +0 -43
- package/types/server/ws-limits.d.ts.map +0 -1
- package/types/svg-attributes.d.ts +0 -2
- package/types/svg-attributes.d.ts.map +0 -1
- package/types/template-auth.d.ts +0 -4
- package/types/template-auth.d.ts.map +0 -1
- package/types/template-ci.d.ts +0 -4
- package/types/template-ci.d.ts.map +0 -1
- package/types/template-config.d.ts +0 -4
- package/types/template-config.d.ts.map +0 -1
- package/types/template-docker.d.ts +0 -6
- package/types/template-docker.d.ts.map +0 -1
- package/types/template-pins.d.ts +0 -11
- package/types/template-pins.d.ts.map +0 -1
- package/types/template-shared.d.ts +0 -28
- package/types/template-shared.d.ts.map +0 -1
- package/types/template-starter.d.ts +0 -7
- package/types/template-starter.d.ts.map +0 -1
- package/types/template-styles.d.ts +0 -10
- package/types/template-styles.d.ts.map +0 -1
- package/types/template-ws.d.ts +0 -4
- package/types/template-ws.d.ts.map +0 -1
- package/types/templates.d.ts +0 -11
- package/types/templates.d.ts.map +0 -1
- package/types/test/a11y-dom.d.ts +0 -20
- package/types/test/a11y-dom.d.ts.map +0 -1
- package/types/test/a11y.d.ts +0 -3
- package/types/test/a11y.d.ts.map +0 -1
- package/types/test/browser.d.ts +0 -17
- package/types/test/browser.d.ts.map +0 -1
- package/types/test/clock.d.ts +0 -2
- package/types/test/clock.d.ts.map +0 -1
- package/types/test/content.d.ts +0 -20
- package/types/test/content.d.ts.map +0 -1
- package/types/test/cookies.d.ts +0 -9
- package/types/test/cookies.d.ts.map +0 -1
- package/types/test/database.d.ts +0 -2
- package/types/test/database.d.ts.map +0 -1
- package/types/test/dom.d.ts +0 -2
- package/types/test/dom.d.ts.map +0 -1
- package/types/test/env.d.ts +0 -2
- package/types/test/env.d.ts.map +0 -1
- package/types/test/html-snapshot.d.ts +0 -4
- package/types/test/html-snapshot.d.ts.map +0 -1
- package/types/test/index.d.ts +0 -30
- package/types/test/index.d.ts.map +0 -1
- package/types/test/interact.d.ts +0 -7
- package/types/test/interact.d.ts.map +0 -1
- package/types/test/isolation.d.ts +0 -2
- package/types/test/isolation.d.ts.map +0 -1
- package/types/test/lazy-plugins.d.ts +0 -8
- package/types/test/lazy-plugins.d.ts.map +0 -1
- package/types/test/mount.d.ts +0 -19
- package/types/test/mount.d.ts.map +0 -1
- package/types/test/natives.d.ts +0 -26
- package/types/test/natives.d.ts.map +0 -1
- package/types/test/network.d.ts +0 -62
- package/types/test/network.d.ts.map +0 -1
- package/types/test/outgoing.d.ts +0 -12
- package/types/test/outgoing.d.ts.map +0 -1
- package/types/test/outputs.d.ts +0 -5
- package/types/test/outputs.d.ts.map +0 -1
- package/types/test/override-env.d.ts +0 -9
- package/types/test/override-env.d.ts.map +0 -1
- package/types/test/page-checks.d.ts +0 -6
- package/types/test/page-checks.d.ts.map +0 -1
- package/types/test/page-types.d.ts +0 -110
- package/types/test/page-types.d.ts.map +0 -1
- package/types/test/page.d.ts +0 -19
- package/types/test/page.d.ts.map +0 -1
- package/types/test/preload.d.ts +0 -5
- package/types/test/preload.d.ts.map +0 -1
- package/types/test/reset.d.ts +0 -2
- package/types/test/reset.d.ts.map +0 -1
- package/types/test/root.d.ts +0 -2
- package/types/test/root.d.ts.map +0 -1
- package/types/test/scratch.d.ts +0 -2
- package/types/test/scratch.d.ts.map +0 -1
- package/types/test/screenshot-match.d.ts +0 -7
- package/types/test/screenshot-match.d.ts.map +0 -1
- package/types/test/service.d.ts +0 -25
- package/types/test/service.d.ts.map +0 -1
- package/types/test/shared-modules.d.ts +0 -3
- package/types/test/shared-modules.d.ts.map +0 -1
- package/types/test/site-actions.d.ts +0 -8
- package/types/test/site-actions.d.ts.map +0 -1
- package/types/test/site-api.d.ts +0 -4
- package/types/test/site-api.d.ts.map +0 -1
- package/types/test/site-keys.d.ts +0 -10
- package/types/test/site-keys.d.ts.map +0 -1
- package/types/test/site-mcp.d.ts +0 -4
- package/types/test/site-mcp.d.ts.map +0 -1
- package/types/test/site-scope.d.ts +0 -21
- package/types/test/site-scope.d.ts.map +0 -1
- package/types/test/site-socket.d.ts +0 -4
- package/types/test/site-socket.d.ts.map +0 -1
- package/types/test/site-types.d.ts +0 -140
- package/types/test/site-types.d.ts.map +0 -1
- package/types/test/site-world.d.ts +0 -11
- package/types/test/site-world.d.ts.map +0 -1
- package/types/test/sites.d.ts +0 -4
- package/types/test/sites.d.ts.map +0 -1
- package/types/test/text-match.d.ts +0 -13
- package/types/test/text-match.d.ts.map +0 -1
- package/types/test/timeout.d.ts +0 -2
- package/types/test/timeout.d.ts.map +0 -1
- package/types/test/wait.d.ts +0 -7
- package/types/test/wait.d.ts.map +0 -1
- package/types/test/writable.d.ts +0 -2
- package/types/test/writable.d.ts.map +0 -1
- package/types/tsgo.d.ts +0 -3
- package/types/tsgo.d.ts.map +0 -1
package/src/server/api.ts
DELETED
|
@@ -1,823 +0,0 @@
|
|
|
1
|
-
import type { Server } from 'bun'
|
|
2
|
-
import type { Context, TSchema } from 'elysia'
|
|
3
|
-
import type { ExtensionApp } from '../config'
|
|
4
|
-
import type { Guard, Locals } from '../runtime'
|
|
5
|
-
import type { ActionTool, RateLimit } from '../runtime/action'
|
|
6
|
-
import type { ByteSize } from '../runtime/byte-size'
|
|
7
|
-
import type { Once } from '../runtime/core'
|
|
8
|
-
import type { Duration } from '../runtime/duration'
|
|
9
|
-
import type { ActionOptions } from './actions'
|
|
10
|
-
import type { ApiModule } from './api-modules'
|
|
11
|
-
import type { BodyLimit, RouteBodyLimit } from './body'
|
|
12
|
-
import type { CorsOptions, CorsRule } from './cors'
|
|
13
|
-
import type { GuardOption, LoadedGuard, OwnGuardValues } from './guards'
|
|
14
|
-
import type { MountedApi } from './openapi'
|
|
15
|
-
import type { KayPlugin } from './plugin'
|
|
16
|
-
import type { SocketOptions } from './socket'
|
|
17
|
-
import type { SocketLimits } from './ws-limits'
|
|
18
|
-
import { Cookie, Elysia, ElysiaCustomStatusResponse, ElysiaFile, StatusMap } from 'elysia'
|
|
19
|
-
import { KayError } from '../compiler/errors'
|
|
20
|
-
import { TRAILING_SLASH } from '../runtime/base'
|
|
21
|
-
import { API_MOUNT } from '../runtime/live'
|
|
22
|
-
import { runInLocale } from '../runtime/locale-state'
|
|
23
|
-
import { withDefaultBounds } from '../runtime/schema-bounds'
|
|
24
|
-
import { contextLocale, guardsFirst, passGuards, requestState } from './actions'
|
|
25
|
-
import { InputRefusedError, validatingInputs } from './api-input'
|
|
26
|
-
import { withDecodedParams } from './api-params'
|
|
27
|
-
import { importModule } from './bundle'
|
|
28
|
-
import { timeoutMs } from './config-limits'
|
|
29
|
-
import { cookieJar } from './cookies'
|
|
30
|
-
import { corsAdmits, corsResponse, corsRule, dropOwnGrant, grantedByKay, preflight, varyByOrigin, withCors, withoutOwnGrant } from './cors'
|
|
31
|
-
import { admitCrossSite, crossSiteRefused, crossSiteResponse } from './cross-site'
|
|
32
|
-
import { streamReporters } from './event-stream'
|
|
33
|
-
import { keepOwnGuards, loadApiGuards, requiredGuards } from './guards'
|
|
34
|
-
import { handlerTiming } from './handler-timing'
|
|
35
|
-
import { inRouteReads, LIVE_HEADER, routeProof } from './live'
|
|
36
|
-
import { answeringRequest, statusOf } from './log'
|
|
37
|
-
import { kayPlugin } from './plugin'
|
|
38
|
-
import { apiLimitWait, requestId, tooManyRequests } from './protection'
|
|
39
|
-
import { checkApiLimit } from './rate-refusal'
|
|
40
|
-
import { sharedContext } from './render'
|
|
41
|
-
import { isUncaught, reportServerError } from './report'
|
|
42
|
-
import { recordOf, requestRecord } from './request-record'
|
|
43
|
-
import { guardValues, onceOf } from './request-scope'
|
|
44
|
-
import { requestSignal, RequestTimeoutError, timedOutResponse, withTimeout } from './request-timeout'
|
|
45
|
-
import { requestUrl } from './request-url'
|
|
46
|
-
import { mismatchOf } from './response-mismatch'
|
|
47
|
-
import { apiRoutePath, withoutSlash } from './routes'
|
|
48
|
-
import { markPrivate, wasReadPersonally } from './scope'
|
|
49
|
-
import { carriedNames, carryContext } from './security'
|
|
50
|
-
import { holdToLimits, socketOptions } from './socket'
|
|
51
|
-
import { answered, failed, replyTrace, SERVER_SPAN, startSpan, tracedUnder, tracing } from './trace'
|
|
52
|
-
import { messagesOf } from './validate'
|
|
53
|
-
import { socketLimits } from './ws-limits'
|
|
54
|
-
|
|
55
|
-
// What a body Elysia streams, awaits or asks for its response has: a generator, a thenable, an object with `toResponse()`.
|
|
56
|
-
const STREAMED = ['next', 'then', 'toResponse']
|
|
57
|
-
const TEXT = { 'content-type': 'text/plain; charset=utf-8' }
|
|
58
|
-
// Where `api({ maxSize })` keeps its limit on the instance it makes.
|
|
59
|
-
const BODY_LIMIT = Symbol.for('kay.bodyLimit')
|
|
60
|
-
// Where `api({ cors })` keeps the origins it lets in, or `false` for a module that lets none in.
|
|
61
|
-
const CORS = Symbol.for('kay.cors')
|
|
62
|
-
// Where `api({ rateLimit })` keeps the limits of the module.
|
|
63
|
-
const RATE_LIMIT = Symbol.for('kay.rateLimit')
|
|
64
|
-
// Where `api({ timeout })` keeps the module's timeout.
|
|
65
|
-
const TIMEOUT = Symbol.for('kay.timeout')
|
|
66
|
-
// The requests the guards of their module let through, whose later errors are no refused input.
|
|
67
|
-
const admitted = new WeakSet<Request>()
|
|
68
|
-
|
|
69
|
-
// Mounts each module's default export, an Elysia instance, under its path: its guards run first, then a websocket upgrade or an unsafe request from another site is refused, unless the module's `cors` lets that site in.
|
|
70
|
-
// An extension's module may export a function building the instance instead, called with what `appOf` gives for the extension, as its `server` function is.
|
|
71
|
-
// Gives back the body limit of each module by the path it is mounted at, and the modules as mounted.
|
|
72
|
-
export async function serveApi(app: Elysia, modules: ApiModule[], options: ActionOptions, appOf?: (extension: string) => Promise<ExtensionApp>): Promise<{ limits: Map<string, BodyLimit>, routeLimits: RouteBodyLimit[], mounted: MountedApi[] }> {
|
|
73
|
-
const limits = new Map<string, BodyLimit>()
|
|
74
|
-
const routeLimits: RouteBodyLimit[] = []
|
|
75
|
-
const mounted: MountedApi[] = []
|
|
76
|
-
// The app's `cors`, the rule of every module that sets none.
|
|
77
|
-
const appCors = options.cors === undefined ? undefined : corsRule(options.cors)
|
|
78
|
-
|
|
79
|
-
// Global: a group's own afterResponse hook never runs once the app holds a global one, as the request log does; with no module no span starts.
|
|
80
|
-
if (modules.length > 0) {
|
|
81
|
-
app.onAfterResponse({ as: 'global' }, ({ request, set, responseValue }) => {
|
|
82
|
-
const record = recordOf(request)
|
|
83
|
-
const span = record?.apiSpan
|
|
84
|
-
|
|
85
|
-
if (!span)
|
|
86
|
-
return
|
|
87
|
-
|
|
88
|
-
record.apiSpan = undefined
|
|
89
|
-
answered(span, statusOf(responseValue, set))
|
|
90
|
-
span.end()
|
|
91
|
-
})
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
for (const module of modules) {
|
|
95
|
-
const instance = await moduleInstance(module, appOf)
|
|
96
|
-
|
|
97
|
-
if (!(instance instanceof Elysia))
|
|
98
|
-
throw new KayError('route-invalid', `kay: ${module.file} must export a KayPlugin by default: export default api().get('/', () => ...)${module.extension === undefined ? '' : ', or a function of the ExtensionApp building one'}`)
|
|
99
|
-
|
|
100
|
-
Object.defineProperty(instance, API_MOUNT, { value: module.mount, configurable: true })
|
|
101
|
-
mounted.push({ ...module, instance })
|
|
102
|
-
const own = (instance as { [CORS]?: CorsRule | false })[CORS]
|
|
103
|
-
const cors = own === false ? undefined : own ?? appCors
|
|
104
|
-
|
|
105
|
-
const bytes = (instance as { [BODY_LIMIT]?: ByteSize | (() => ByteSize) })[BODY_LIMIT]
|
|
106
|
-
const refuse: BodyLimit['refuse'] = cors ? request => corsResponse(cors, request, tooLarge()) : tooLarge
|
|
107
|
-
|
|
108
|
-
limits.set(module.mount, { bytes: typeof bytes === 'function' ? bytes() : bytes, refuse })
|
|
109
|
-
|
|
110
|
-
const moduleLimits = rateLimitsOf((instance as { [RATE_LIMIT]?: RateLimit | RateLimit[] })[RATE_LIMIT], module.mount)
|
|
111
|
-
const routeRates = new Map<string, { name: string, limit: RateLimit }[]>()
|
|
112
|
-
|
|
113
|
-
// What a route sets for itself in its `detail`, by the method and path it answers.
|
|
114
|
-
for (const route of instance.routes) {
|
|
115
|
-
const detail = (route.hooks as { detail?: { maxSize?: ByteSize, rateLimit?: RateLimit | RateLimit[] } } | undefined)?.detail
|
|
116
|
-
const method = route.method.toUpperCase()
|
|
117
|
-
const path = withoutSlash(apiRoutePath(module.mount, route.path))
|
|
118
|
-
|
|
119
|
-
// Every route is listed, so a static sibling of a route with a limit of its own is not taken for it.
|
|
120
|
-
const routeMax = detail?.maxSize
|
|
121
|
-
|
|
122
|
-
routeLimits.push({ method, path, limit: routeMax === undefined ? undefined : { bytes: routeMax, refuse } })
|
|
123
|
-
|
|
124
|
-
if (detail?.rateLimit !== undefined)
|
|
125
|
-
routeRates.set(`${method} ${path}`, rateLimitsOf(detail.rateLimit, `${method} ${path}`))
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
// The handlers and error hooks run in Elysia's call, so each is wrapped to run in the request's locale, as the guards do.
|
|
129
|
-
const moduleTimeout = (instance as { [TIMEOUT]?: number | false })[TIMEOUT]
|
|
130
|
-
|
|
131
|
-
for (const route of instance.routes) {
|
|
132
|
-
if (typeof route.handler === 'function') {
|
|
133
|
-
const own = (route.hooks as { detail?: { timeout?: Duration | false } } | undefined)?.detail?.timeout
|
|
134
|
-
const routeTimeout = own === undefined ? moduleTimeout : timeoutMs(own, `the timeout of ${route.method} ${route.path}`) ?? false
|
|
135
|
-
const located = inRequestLocale(route.handler as Handler, options, route.method === 'GET')
|
|
136
|
-
|
|
137
|
-
route.handler = route.method === 'WS' ? located : timedHandler(observed(located, `${route.method} ${withoutSlash(apiRoutePath(module.mount, route.path))}`, options), routeTimeout, options)
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
const hooks = withDecodedParams(route) as { body?: unknown, error?: unknown, beforeHandle?: unknown, detail?: { messages?: SocketLimits } } | undefined
|
|
141
|
-
|
|
142
|
-
// A string in a route's body takes the default bound an action's does; a model named by a string, another library's validator and a websocket's messages, which have limits of their own, are left as written.
|
|
143
|
-
if (hooks && route.method !== 'WS' && typeof hooks.body === 'object' && hooks.body !== null && !('~standard' in hooks.body))
|
|
144
|
-
hooks.body = withDefaultBounds(hooks.body as TSchema)
|
|
145
|
-
|
|
146
|
-
// The route's input schemas are checked by kay, in the request's locale, not by Elysia.
|
|
147
|
-
if (route.method !== 'WS')
|
|
148
|
-
validatingInputs(hooks, (request, run) => inApiLocale(request, options, run))
|
|
149
|
-
|
|
150
|
-
// Whichever way the module chains its `.ws()` (in a group, a guard or a used plugin), every websocket route is held to its limits.
|
|
151
|
-
if (hooks && route.method === 'WS')
|
|
152
|
-
hooks.beforeHandle = [socketLimits(route.path, hooks.detail?.messages, app, (request, run) => inApiLocale(request, options, run)), holdToLimits(app), ...[hooks.beforeHandle ?? []].flat()]
|
|
153
|
-
|
|
154
|
-
if (hooks?.error !== undefined)
|
|
155
|
-
hooks.error = [hooks.error].flat().map(hook => localizedHook(hook, options))
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
const guards = requiredGuards(await loadApiGuards(module, instance), module, {}, options.requireGuards)
|
|
159
|
-
const methods = [...new Set(instance.routes.map(route => route.method.toUpperCase()).filter(method => method !== 'OPTIONS' && method !== 'WS'))]
|
|
160
|
-
|
|
161
|
-
app.group(module.mount, (group) => {
|
|
162
|
-
// Registered before the hooks, so a preflight, which carries no credentials, never meets the guards.
|
|
163
|
-
if (cors)
|
|
164
|
-
group.options('/', ({ request }) => preflight(cors, methods, request)).options('/*', ({ request }) => preflight(cors, methods, request))
|
|
165
|
-
|
|
166
|
-
const guarded = group
|
|
167
|
-
// A span from the guards to the response; the handler runs in Elysia's call, so `observed` runs it in a span under this one.
|
|
168
|
-
.onBeforeHandle(({ request, route: mounted, set }) => {
|
|
169
|
-
// The module a request matched, as the first hook of its group saw it.
|
|
170
|
-
const record = requestRecord(request)
|
|
171
|
-
|
|
172
|
-
record.apiOwner = instance
|
|
173
|
-
// What `apiUrl(request, path)` in a handler reads to name the route of the module it runs in.
|
|
174
|
-
Object.defineProperty(request, API_MOUNT, { value: module.mount, configurable: true })
|
|
175
|
-
|
|
176
|
-
// Without a tracer, its name and attributes are never built.
|
|
177
|
-
if (tracing()) {
|
|
178
|
-
// `/api/echo` rather than the `/api/echo/` a module's `/` route is mounted at.
|
|
179
|
-
const route = mounted.length > 1 ? mounted.replace(TRAILING_SLASH, '') : mounted
|
|
180
|
-
const span = startSpan(`${request.method} ${route}`, { kind: SERVER_SPAN, attributes: { 'http.request.method': request.method, 'http.route': route, 'url.path': requestUrl(request).pathname, 'kay.request.id': requestId(request) } }, request)
|
|
181
|
-
|
|
182
|
-
if (span)
|
|
183
|
-
record.apiSpan = span
|
|
184
|
-
|
|
185
|
-
replyTrace(request, set)
|
|
186
|
-
}
|
|
187
|
-
})
|
|
188
|
-
|
|
189
|
-
// A route of the module's own answering OPTIONS, `.all()` included, leaves a browser's preflight to kay.
|
|
190
|
-
if (cors)
|
|
191
|
-
guarded.onBeforeHandle(({ request }) => request.method === 'OPTIONS' && request.headers.has('access-control-request-method') ? preflight(cors, methods, request) : undefined)
|
|
192
|
-
|
|
193
|
-
// A module with no limit of its own or of a route has nothing to count.
|
|
194
|
-
const limited = moduleLimits.length > 0 || routeRates.size > 0
|
|
195
|
-
const overLimit = async (request: Request, route: string, server: Server<unknown> | null, locals: () => Locals) => apiOverLimit(request, route, server, locals, moduleLimits, routeRates, options)
|
|
196
|
-
|
|
197
|
-
// The guards are kay's call, so what they log carries the request; the handler runs in Elysia's.
|
|
198
|
-
// With no guard and no cors rule nothing runs in the request's scope, so only the cross-site check is left.
|
|
199
|
-
if (guards.length === 0 && !cors) {
|
|
200
|
-
guarded.onBeforeHandle(({ request }) => crossSiteRefused(request) ? crossSiteResponse(request, 'request') : undefined)
|
|
201
|
-
}
|
|
202
|
-
else {
|
|
203
|
-
// What the guards handed on replaces the empty `guard` the derive of `api()` set, for the handler to read; set as a property, as handing `context` to a function would have Elysia parse the cookies, query and headers of the route.
|
|
204
|
-
guarded.onBeforeHandle(async (context) => {
|
|
205
|
-
const refused = await answeringRequest(context.request, async () => inApiLocale(context.request, options, async () => admit(guards, sharedContext(context.request, () => ({ ...context })), options, cors)))
|
|
206
|
-
|
|
207
|
-
;(context as { guard?: unknown }).guard = guardValues(context.request)
|
|
208
|
-
|
|
209
|
-
// A refused request counts too, so a password is not guessed at full speed; over the limit it gets the 429 in place of the refusal.
|
|
210
|
-
return refused !== undefined && limited ? await overLimit(context.request, context.route, context.server, () => ({ ...context }) as unknown as Locals) ?? refused : refused
|
|
211
|
-
})
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
// After the guards, so a `key` reads what they set up.
|
|
215
|
-
if (limited) {
|
|
216
|
-
guarded.onBeforeHandle(async context => overLimit(context.request, context.route, context.server, () => ({ ...context }) as unknown as Locals))
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
const mounting = guarded
|
|
220
|
-
// Elysia runs the `mapResponse` of every module registered before the one matched, so only the matched module's, which knows its cors rule, acts.
|
|
221
|
-
.mapResponse(({ request, responseValue, set }) => {
|
|
222
|
-
const owner = recordOf(request)?.apiOwner
|
|
223
|
-
|
|
224
|
-
if (owner !== undefined && owner !== instance)
|
|
225
|
-
return undefined
|
|
226
|
-
|
|
227
|
-
// An answer to a request whose guards or session read who sent it is for that caller alone, unless the route set its own caching; a Response of the route's own keeps its headers, as the context's never overwrite them.
|
|
228
|
-
if (owner === instance && wasReadPersonally(request))
|
|
229
|
-
markPrivate(set.headers)
|
|
230
|
-
|
|
231
|
-
const value = sendable(responseValue)
|
|
232
|
-
|
|
233
|
-
return value instanceof Response ? carriedOver(set, value, cors !== undefined && owner === instance) : jsonReply(value, set)
|
|
234
|
-
})
|
|
235
|
-
.onError(({ request, error, code, set }) => {
|
|
236
|
-
const span = recordOf(request)?.apiSpan
|
|
237
|
-
|
|
238
|
-
const mismatch = isResponseMismatch(error, code)
|
|
239
|
-
|
|
240
|
-
// A response failing its own schema is the route's mistake, not the caller's: reported here, before the module's own `onError` may answer it.
|
|
241
|
-
if (mismatch)
|
|
242
|
-
reportServerError(mismatchOf(error), request, options.onError)
|
|
243
|
-
|
|
244
|
-
// Input refused before the guards ran gets the headers too, so the calling page can read why.
|
|
245
|
-
if (cors)
|
|
246
|
-
withCors(cors, request, set.headers)
|
|
247
|
-
|
|
248
|
-
if (span)
|
|
249
|
-
failed(span, mismatch ? mismatchOf(error) : error)
|
|
250
|
-
})
|
|
251
|
-
// Before the module's own `onError`, so no custom answer to refused input reaches a caller the guards refuse.
|
|
252
|
-
.onError(async (context) => {
|
|
253
|
-
// Past the guards, a failing response schema or a handler's own throw is no input to keep from a refused caller.
|
|
254
|
-
if (!(context.error instanceof InputRefusedError) || guards.length === 0 || admitted.has(context.request))
|
|
255
|
-
return undefined
|
|
256
|
-
|
|
257
|
-
const refusal = await answeringRequest(context.request, async () => inApiLocale(context.request, options, async () => guardsFirst(guards, sharedContext(context.request, () => ({ ...context })), (context as { params?: Record<string, unknown> }).params ?? {}, undefined, options)))
|
|
258
|
-
|
|
259
|
-
if (refusal && cors) {
|
|
260
|
-
withCors(cors, context.request, refusal.headers)
|
|
261
|
-
grantedByKay.add(refusal)
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
return refusal
|
|
265
|
-
})
|
|
266
|
-
.onAfterHandle(({ request, responseValue, set }) => {
|
|
267
|
-
// A Vary the route set itself keeps Origin; a Response of the route's own gets only that, as the grant is on the context, which `mapResponse` carries over.
|
|
268
|
-
if (cors) {
|
|
269
|
-
// Over what the route put on the context, so its own grant never reaches a Response it returns.
|
|
270
|
-
withCors(cors, request, set.headers)
|
|
271
|
-
|
|
272
|
-
if (responseValue instanceof Response)
|
|
273
|
-
varyByOrigin(cors, responseValue.headers, set.headers)
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
// Only an answer the route gave: a refusal or a failure holds no proof, and a guard's refusal never reached the handler.
|
|
277
|
-
if (answerStatus(responseValue, set) < 400) {
|
|
278
|
-
const proof = routeProof(request)
|
|
279
|
-
|
|
280
|
-
if (proof !== undefined)
|
|
281
|
-
set.headers[LIVE_HEADER] = proof
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
const reporter = responseValue instanceof Response ? streamReporters.get(responseValue) : undefined
|
|
285
|
-
|
|
286
|
-
if (reporter)
|
|
287
|
-
reporter.report = error => reportServerError(error, request, options.onError)
|
|
288
|
-
})
|
|
289
|
-
.use(instance)
|
|
290
|
-
// After the module's own `onError`, which may answer the error itself.
|
|
291
|
-
.onError(({ request, error, code, set }) => {
|
|
292
|
-
const refused = { request, error, code, set }
|
|
293
|
-
|
|
294
|
-
return refusedInput(refused) ?? reportThrown(refused, options)
|
|
295
|
-
})
|
|
296
|
-
|
|
297
|
-
letGoOfParent(instance, app)
|
|
298
|
-
|
|
299
|
-
return mounting
|
|
300
|
-
})
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
return { limits, routeLimits, mounted }
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
// What Elysia's `.use` binds a plugin to in its parent: members its public types leave out.
|
|
307
|
-
interface Parent {
|
|
308
|
-
getServer: () => unknown
|
|
309
|
-
getGlobalRoutes: () => unknown
|
|
310
|
-
getGlobalDefinitions: () => unknown
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
// A module's default export, or what the function an extension's module exports builds. The function is told where it is served too, as the server render of an island hands `call()` and `apiUrl()` the module's default export.
|
|
314
|
-
async function moduleInstance(module: ApiModule, appOf: ((extension: string) => Promise<ExtensionApp>) | undefined): Promise<unknown> {
|
|
315
|
-
const exported = (await importModule<{ default?: unknown }>(module.file)).default
|
|
316
|
-
|
|
317
|
-
if (typeof exported !== 'function' || module.extension === undefined || appOf === undefined)
|
|
318
|
-
return exported
|
|
319
|
-
|
|
320
|
-
Object.defineProperty(exported, API_MOUNT, { value: module.mount, configurable: true })
|
|
321
|
-
|
|
322
|
-
return (exported as (app: ExtensionApp) => unknown)(await appOf(module.extension))
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
// `.use(instance)` leaves closures on the module's instance, which the module cache keeps for the process, pointing at the group and so the whole app (kaynooo/kayjs#1895): they are rebound to the app through a weak reference, so an app nothing else holds can be collected while one that is running keeps answering them.
|
|
326
|
-
function letGoOfParent(instance: object, app: object): void {
|
|
327
|
-
const parent = new WeakRef(app as unknown as Parent)
|
|
328
|
-
|
|
329
|
-
Object.assign(instance, {
|
|
330
|
-
getParent: () => parent.deref() ?? null,
|
|
331
|
-
getServer: () => parent.deref()?.getServer() ?? null,
|
|
332
|
-
getGlobalRoutes: () => parent.deref()?.getGlobalRoutes() ?? [],
|
|
333
|
-
getGlobalDefinitions: () => parent.deref()?.getGlobalDefinitions() ?? { type: {}, error: {} },
|
|
334
|
-
})
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
// A status as a number: Elysia accepts its names (`'Bad Request'`) too, and a name it does not know counts as a failure.
|
|
338
|
-
function statusCode(status: number | string): number {
|
|
339
|
-
if (typeof status === 'number')
|
|
340
|
-
return status
|
|
341
|
-
|
|
342
|
-
return StatusMap[status as keyof typeof StatusMap] ?? (Number.isNaN(Number(status)) ? 500 : Number(status))
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
// The status a handler answered with: the one of a `status()` or a Response it returned, else the context's.
|
|
346
|
-
function answerStatus(value: unknown, set: { status?: number | string }): number {
|
|
347
|
-
if (value instanceof ElysiaCustomStatusResponse)
|
|
348
|
-
return statusCode(value.code as number | string)
|
|
349
|
-
|
|
350
|
-
if (value instanceof Response)
|
|
351
|
-
return value.status
|
|
352
|
-
|
|
353
|
-
return set.status === undefined ? 200 : statusCode(set.status)
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
// The locale state of each API request, resolved once for its guards, rate limits, handler and error hooks.
|
|
357
|
-
function inApiLocale<T>(request: Request, options: ActionOptions, run: () => T): T {
|
|
358
|
-
const record = requestRecord(request)
|
|
359
|
-
|
|
360
|
-
return runInLocale(record.apiLocale ??= requestState(request, options), run)
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
type Handler = (context: { request: Request }, ...rest: unknown[]) => unknown
|
|
364
|
-
|
|
365
|
-
// Where a wrapped function keeps the one it wraps, so a module mounted by a second app is wrapped again from the original.
|
|
366
|
-
const WRAPPED = Symbol.for('kay.localized')
|
|
367
|
-
|
|
368
|
-
// A handler or an error hook that runs in the request's locale, a generator it returns read there too.
|
|
369
|
-
// It reads as the function it wraps, as Elysia infers from its source what the route needs of the context.
|
|
370
|
-
// A GET route's handler also runs where the live keys it reads are noted, for the proof its answer carries.
|
|
371
|
-
export function inRequestLocale(fn: Handler, options: ActionOptions, following = false): Handler {
|
|
372
|
-
const original = (fn as { [WRAPPED]?: Handler })[WRAPPED] ?? fn
|
|
373
|
-
|
|
374
|
-
const wrapped: Handler = function (this: unknown, context, ...rest) {
|
|
375
|
-
const run = () => inApiLocale(context.request, options, () => inStream(original.call(this, context, ...rest), context.request, options))
|
|
376
|
-
|
|
377
|
-
return following ? inRouteReads(context.request, run) : run()
|
|
378
|
-
}
|
|
379
|
-
|
|
380
|
-
// Elysia tells a generator or an async handler by its `constructor`, and a handler's `name` shows in traces and errors.
|
|
381
|
-
Object.defineProperties(wrapped, { toString: { value: () => original.toString() }, constructor: { value: original.constructor }, name: { value: original.name }, [WRAPPED]: { value: original } })
|
|
382
|
-
|
|
383
|
-
return wrapped
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
// A handler that runs in a span nested under its request's, which Elysia's call would leave it outside of, and whose time goes in the `Server-Timing` header when `serverTiming` asks.
|
|
387
|
-
// A generator's stream, which outlives the call, is not timed, and a span covers what it takes to start it.
|
|
388
|
-
export function observed(fn: Handler, route: string, { serverTiming }: ActionOptions): Handler {
|
|
389
|
-
// The tracer is set before the routes are, so an app with neither keeps its handler as written.
|
|
390
|
-
if (serverTiming !== true && !tracing())
|
|
391
|
-
return fn
|
|
392
|
-
|
|
393
|
-
const original = (fn as { [WRAPPED]?: Handler })[WRAPPED] ?? fn
|
|
394
|
-
|
|
395
|
-
const wrapped: Handler = function (this: unknown, context, ...rest) {
|
|
396
|
-
const { request } = context
|
|
397
|
-
const parent = tracing() ? recordOf(request)?.apiSpan : undefined
|
|
398
|
-
const run = () => parent ? tracedUnder(parent, () => `kay.handler ${route}`, () => fn.call(this, context, ...rest)) : fn.call(this, context, ...rest)
|
|
399
|
-
|
|
400
|
-
if (serverTiming !== true)
|
|
401
|
-
return run()
|
|
402
|
-
|
|
403
|
-
const started = performance.now()
|
|
404
|
-
// Only an answer: a handler that threw carries no timing, as an action's and an endpoint's.
|
|
405
|
-
const stamp = () => {
|
|
406
|
-
requestRecord(request).handlerTook = performance.now() - started
|
|
407
|
-
|
|
408
|
-
const timing = handlerTiming(request)
|
|
409
|
-
const { set } = context as { request: Request, set?: { headers: Record<string, string> } }
|
|
410
|
-
|
|
411
|
-
if (timing !== undefined && set)
|
|
412
|
-
set.headers['server-timing'] = set.headers['server-timing'] === undefined ? timing : `${set.headers['server-timing']}, ${timing}`
|
|
413
|
-
}
|
|
414
|
-
const result = run()
|
|
415
|
-
|
|
416
|
-
if (!(result instanceof Promise)) {
|
|
417
|
-
stamp()
|
|
418
|
-
|
|
419
|
-
return result
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
return (async (): Promise<unknown> => {
|
|
423
|
-
const answer = await result
|
|
424
|
-
|
|
425
|
-
stamp()
|
|
426
|
-
|
|
427
|
-
return answer
|
|
428
|
-
})()
|
|
429
|
-
}
|
|
430
|
-
|
|
431
|
-
Object.defineProperties(wrapped, { toString: { value: () => fn.toString() }, constructor: { value: fn.constructor }, name: { value: fn.name }, [WRAPPED]: { value: original } })
|
|
432
|
-
|
|
433
|
-
return wrapped
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
// A route that ran out of time is reported as any server error and answers 504, as a Response its module's hooks carry over.
|
|
437
|
-
async function answeredLate(request: Request, onError: ActionOptions['onError'], run: () => Promise<unknown>): Promise<unknown> {
|
|
438
|
-
try {
|
|
439
|
-
return await run()
|
|
440
|
-
}
|
|
441
|
-
catch (error) {
|
|
442
|
-
if (!(error instanceof RequestTimeoutError))
|
|
443
|
-
throw error
|
|
444
|
-
|
|
445
|
-
reportServerError(error, request, onError)
|
|
446
|
-
|
|
447
|
-
return timedOutResponse()
|
|
448
|
-
}
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
// A handler held to its timeout: a promise it returns is raced against the clock, and `request.signal` reads as `ctx.signal` does, aborting at the timeout too. A synchronous answer and a generator, whose stream the timeout does not cut, run as they were.
|
|
452
|
-
function timedHandler(fn: Handler, own: number | false | undefined, { timeout: fallback, onError }: ActionOptions): Handler {
|
|
453
|
-
if (own === false || (own === undefined && fallback === undefined))
|
|
454
|
-
return fn
|
|
455
|
-
|
|
456
|
-
const wrapped: Handler = function (this: unknown, context, ...rest) {
|
|
457
|
-
const { request } = context
|
|
458
|
-
|
|
459
|
-
Object.defineProperty(request, 'signal', { value: requestSignal(request), configurable: true })
|
|
460
|
-
|
|
461
|
-
const result: unknown = fn.call(this, context, ...rest)
|
|
462
|
-
|
|
463
|
-
return result instanceof Promise ? answeredLate(request, onError, async () => withTimeout<unknown>(request, own, fallback, async () => result)) : result
|
|
464
|
-
}
|
|
465
|
-
|
|
466
|
-
// A module served by a second app in the same process starts again from the handler as written.
|
|
467
|
-
Object.defineProperties(wrapped, { toString: { value: () => fn.toString() }, constructor: { value: fn.constructor }, name: { value: fn.name }, [WRAPPED]: { value: (fn as { [WRAPPED]?: Handler })[WRAPPED] ?? fn } })
|
|
468
|
-
|
|
469
|
-
return wrapped
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
function localizedHook(hook: unknown, options: ActionOptions): unknown {
|
|
473
|
-
if (typeof hook === 'function')
|
|
474
|
-
return inRequestLocale(hook as Handler, options)
|
|
475
|
-
|
|
476
|
-
const container = hook as { fn?: unknown }
|
|
477
|
-
|
|
478
|
-
if (typeof container?.fn === 'function')
|
|
479
|
-
container.fn = inRequestLocale(container.fn as Handler, options)
|
|
480
|
-
|
|
481
|
-
return hook
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
// A generator a handler answers is read by Elysia after the handler returned, so each step runs in the locale again.
|
|
485
|
-
function inStream(value: unknown, request: Request, options: ActionOptions): unknown {
|
|
486
|
-
const stream = value as Partial<AsyncGenerator> | null
|
|
487
|
-
|
|
488
|
-
if (typeof stream !== 'object' || stream === null || typeof stream.next !== 'function' || (!(Symbol.asyncIterator in stream) && !(Symbol.iterator in stream)))
|
|
489
|
-
return value
|
|
490
|
-
|
|
491
|
-
const step = (name: 'next' | 'return' | 'throw') => (argument?: never) => inApiLocale(request, options, () => (stream[name] as ((argument?: never) => unknown) | undefined)?.call(stream, argument))
|
|
492
|
-
|
|
493
|
-
// Not a plain object, which a JSON answer would take it for.
|
|
494
|
-
return new LocalizedStream({ next: step('next'), return: step('return'), throw: step('throw') }, Symbol.asyncIterator in stream)
|
|
495
|
-
}
|
|
496
|
-
|
|
497
|
-
class LocalizedStream {
|
|
498
|
-
next: () => unknown
|
|
499
|
-
return: () => unknown
|
|
500
|
-
throw: () => unknown
|
|
501
|
-
|
|
502
|
-
constructor(read: Record<'next' | 'return' | 'throw', () => unknown>, asynchronous: boolean) {
|
|
503
|
-
this.next = read.next
|
|
504
|
-
this.return = read.return
|
|
505
|
-
this.throw = read.throw
|
|
506
|
-
Object.defineProperty(this, asynchronous ? Symbol.asyncIterator : Symbol.iterator, { value: () => this })
|
|
507
|
-
}
|
|
508
|
-
}
|
|
509
|
-
|
|
510
|
-
const answeredBefore = new WeakSet<Response>()
|
|
511
|
-
|
|
512
|
-
// A Response of the route's own that carries everything the context held, which leaves Elysia nothing to copy it for; undefined when `carryContext` left something on the context, a cookie or a status, for Elysia to merge.
|
|
513
|
-
function carriedOver(set: { status?: number | string, headers: Record<string, unknown>, cookie?: object }, given: Response, underCors: boolean): Response | undefined {
|
|
514
|
-
// Nothing on the context: a page route's response, which carried it already and must not be stripped of it by a second pass.
|
|
515
|
-
if (Object.keys(set.headers).length === 0)
|
|
516
|
-
return undefined
|
|
517
|
-
|
|
518
|
-
let response = given
|
|
519
|
-
|
|
520
|
-
// A Response answered before is answered again as a copy, so two requests in flight never share one object whose headers each rewrites; the first request's headers come off the copy.
|
|
521
|
-
if (answeredBefore.has(given)) {
|
|
522
|
-
try {
|
|
523
|
-
response = given.clone()
|
|
524
|
-
}
|
|
525
|
-
catch {
|
|
526
|
-
// A body already sent cannot be copied: the headers of the earlier request come off the original, for Elysia to merge this one's.
|
|
527
|
-
for (const name of carriedNames(given))
|
|
528
|
-
given.headers.delete(name)
|
|
529
|
-
|
|
530
|
-
if (underCors && !grantedByKay.has(given))
|
|
531
|
-
dropOwnGrant(given.headers)
|
|
532
|
-
|
|
533
|
-
return undefined
|
|
534
|
-
}
|
|
535
|
-
|
|
536
|
-
for (const name of carriedNames(given))
|
|
537
|
-
response.headers.delete(name)
|
|
538
|
-
}
|
|
539
|
-
else {
|
|
540
|
-
answeredBefore.add(given)
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
// The module's rule grants alone: the route's own grant headers would win over the context's, the caller's origin included.
|
|
544
|
-
if (underCors && !grantedByKay.has(response))
|
|
545
|
-
response = withoutOwnGrant(response, set.headers.vary)
|
|
546
|
-
|
|
547
|
-
carryContext(set as Context['set'], response)
|
|
548
|
-
|
|
549
|
-
// Left on the context, Elysia merges it into the copy, which no earlier request's headers are on.
|
|
550
|
-
return Object.keys(set.headers).length > 0 && response === given ? undefined : response
|
|
551
|
-
}
|
|
552
|
-
|
|
553
|
-
// Input the route's `body`, `query`, `params`, `headers` or `cookie` refused, answered as an action answers it: `{ errors, status }`, a message per field in the request's locale.
|
|
554
|
-
// A mismatch of the route's own response is the route's bug and is left to the caller.
|
|
555
|
-
function refusedInput({ error, set }: { request: Request, error: unknown, code: unknown, set: { status?: number | string } }): { errors: Record<string, string>, status: 422 } | undefined {
|
|
556
|
-
if (!(error instanceof InputRefusedError))
|
|
557
|
-
return undefined
|
|
558
|
-
|
|
559
|
-
set.status = 422
|
|
560
|
-
|
|
561
|
-
return { errors: messagesOf(error.errors), status: 422 }
|
|
562
|
-
}
|
|
563
|
-
|
|
564
|
-
// Elysia answers a response that fails its schema as validation (422), a client error for what is the route's own bug.
|
|
565
|
-
function isResponseMismatch(error: unknown, code: unknown): boolean {
|
|
566
|
-
return code === 'VALIDATION' && (error as { type?: unknown } | null)?.type === 'response'
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
// Logs an error a route threw and hands it to `onError`, keeping its message out of a production answer, where Elysia would send it.
|
|
570
|
-
// Refused input, an unknown route or a status the handler threw are answered as Elysia means them.
|
|
571
|
-
function reportThrown({ request, error, code, set }: { request: Request, error: unknown, code: unknown, set: { status?: number | string, headers: Record<string, unknown> } }, options: ActionOptions): string | undefined {
|
|
572
|
-
const mismatch = isResponseMismatch(error, code)
|
|
573
|
-
|
|
574
|
-
if (!mismatch && !isUncaught(error, code))
|
|
575
|
-
return undefined
|
|
576
|
-
|
|
577
|
-
reportServerError(mismatch ? mismatchOf(error) : error, request, options.onError)
|
|
578
|
-
|
|
579
|
-
if (options.dev) {
|
|
580
|
-
if (!mismatch)
|
|
581
|
-
return undefined
|
|
582
|
-
|
|
583
|
-
set.status = 500
|
|
584
|
-
|
|
585
|
-
return (error as Error).message
|
|
586
|
-
}
|
|
587
|
-
|
|
588
|
-
set.status = 500
|
|
589
|
-
set.headers['content-type'] = TEXT['content-type']
|
|
590
|
-
|
|
591
|
-
return 'Internal Server Error'
|
|
592
|
-
}
|
|
593
|
-
|
|
594
|
-
// A class instance or a Map, which Elysia would answer as `200 [object Object]`, is a mistake in the route: thrown, so it is logged and answers 500. A `status()` answer's body is checked the same way.
|
|
595
|
-
function sendable(value: unknown): unknown {
|
|
596
|
-
if (value instanceof ElysiaCustomStatusResponse) {
|
|
597
|
-
sendable(value.response)
|
|
598
|
-
|
|
599
|
-
return value
|
|
600
|
-
}
|
|
601
|
-
|
|
602
|
-
if (typeof value !== 'object' || value === null || Array.isArray(value) || Object.getPrototypeOf(value) === Object.prototype || (value).toString !== Object.prototype.toString || sentAsIs(value))
|
|
603
|
-
return value
|
|
604
|
-
|
|
605
|
-
throw new KayError('api-answer-invalid', `kay: an API route answered a ${value.constructor?.name ?? 'value'}, which would reach the client as "${Object.prototype.toString.call(value)}": answer a plain object or array, or a Response`)
|
|
606
|
-
}
|
|
607
|
-
|
|
608
|
-
// Bodies Elysia or `Response` send as they are, though they write as `[object ...]`.
|
|
609
|
-
function sentAsIs(value: object): boolean {
|
|
610
|
-
if (value instanceof Response || value instanceof Blob || value instanceof FormData || value instanceof ReadableStream || value instanceof ArrayBuffer || value instanceof SharedArrayBuffer || ArrayBuffer.isView(value))
|
|
611
|
-
return true
|
|
612
|
-
|
|
613
|
-
if (value instanceof ElysiaFile || value instanceof Cookie)
|
|
614
|
-
return true
|
|
615
|
-
|
|
616
|
-
return STREAMED.some(method => typeof (value as Record<string, unknown>)[method] === 'function')
|
|
617
|
-
}
|
|
618
|
-
|
|
619
|
-
// A status that carries no body is left to Elysia, which answers it empty.
|
|
620
|
-
const NULL_BODY = new Set([204, 205, 304])
|
|
621
|
-
|
|
622
|
-
// A plain object, an array or `null` is serialized here, once, rather than by Elysia: JSON has no bigint, which JSON.stringify throws on, so one holding a bigint is answered with each written as its digits, as a database's bigint ids usually are.
|
|
623
|
-
// Anything the plain pass cannot settle, a cycle, a status given by name or a cookie Elysia's jar holds, is left to Elysia.
|
|
624
|
-
function jsonReply(value: unknown, set: { status?: number | string, headers: Record<string, unknown>, cookie?: object }): Response | undefined {
|
|
625
|
-
if (typeof value !== 'object' || (value !== null && Object.getPrototypeOf(value) !== Object.prototype && !Array.isArray(value)) || (set.status !== undefined && typeof set.status !== 'number') || NULL_BODY.has(set.status as number) || (set.cookie !== undefined && Object.keys(set.cookie).length > 0))
|
|
626
|
-
return undefined
|
|
627
|
-
|
|
628
|
-
const text = serialized(value)
|
|
629
|
-
|
|
630
|
-
if (text === undefined)
|
|
631
|
-
return undefined
|
|
632
|
-
|
|
633
|
-
const headers = new Headers()
|
|
634
|
-
|
|
635
|
-
// Several cookies stay several headers.
|
|
636
|
-
for (const [name, header] of Object.entries(set.headers)) {
|
|
637
|
-
for (const item of [header].flat())
|
|
638
|
-
headers.append(name, String(item))
|
|
639
|
-
}
|
|
640
|
-
|
|
641
|
-
if (!headers.has('content-type'))
|
|
642
|
-
headers.set('content-type', 'application/json;charset=utf-8')
|
|
643
|
-
|
|
644
|
-
const response = new Response(text, { status: set.status ?? 200, headers })
|
|
645
|
-
|
|
646
|
-
// Everything the context held is on the response, so Elysia has nothing to copy it for.
|
|
647
|
-
set.headers = {}
|
|
648
|
-
set.status = 200
|
|
649
|
-
|
|
650
|
-
return response
|
|
651
|
-
}
|
|
652
|
-
|
|
653
|
-
// Plain first, the bigint-aware pass only for a value the plain one threw on; undefined for a cycle, which Elysia's own pass names.
|
|
654
|
-
function serialized(value: object | null): string | undefined {
|
|
655
|
-
try {
|
|
656
|
-
return JSON.stringify(value)
|
|
657
|
-
}
|
|
658
|
-
catch {
|
|
659
|
-
if (!holdsBigint(value))
|
|
660
|
-
return undefined
|
|
661
|
-
|
|
662
|
-
return JSON.stringify(value, (_key, item: unknown) => typeof item === 'bigint' ? item.toString() : item)
|
|
663
|
-
}
|
|
664
|
-
}
|
|
665
|
-
|
|
666
|
-
// A value met twice is walked once, so a cycle reaches JSON.stringify, which names it.
|
|
667
|
-
function holdsBigint(value: unknown, seen = new WeakSet<object>()): boolean {
|
|
668
|
-
if (typeof value === 'bigint')
|
|
669
|
-
return true
|
|
670
|
-
|
|
671
|
-
if (typeof value !== 'object' || value === null || seen.has(value))
|
|
672
|
-
return false
|
|
673
|
-
|
|
674
|
-
seen.add(value)
|
|
675
|
-
|
|
676
|
-
return Object.values(value).some(item => holdsBigint(item, seen))
|
|
677
|
-
}
|
|
678
|
-
|
|
679
|
-
// The 429 of the module's and the route's `rateLimit` when the request is over one, counting it.
|
|
680
|
-
async function apiOverLimit(request: Request, matched: string, server: Server<unknown> | null, locals: () => Locals, moduleLimits: { name: string, limit: RateLimit }[], routeRates: Map<string, { name: string, limit: RateLimit }[]>, options: ActionOptions): Promise<Response | undefined> {
|
|
681
|
-
const route = withoutSlash(matched)
|
|
682
|
-
const limits = [...moduleLimits, ...routeRates.get(`${request.method} ${route}`) ?? routeRates.get(`${request.method === 'HEAD' ? 'GET' : 'ALL'} ${route}`) ?? routeRates.get(`ALL ${route}`) ?? []]
|
|
683
|
-
|
|
684
|
-
if (limits.length === 0)
|
|
685
|
-
return undefined
|
|
686
|
-
|
|
687
|
-
const wait = await answeringRequest(request, async () => inApiLocale(request, options, async () => apiLimitWait(limits, request, server, () => ({
|
|
688
|
-
request,
|
|
689
|
-
locale: contextLocale(options),
|
|
690
|
-
get cookies() {
|
|
691
|
-
return cookieJar(request).cookies
|
|
692
|
-
},
|
|
693
|
-
locals: locals(),
|
|
694
|
-
}))))
|
|
695
|
-
|
|
696
|
-
return wait === undefined ? undefined : tooManyRequests(wait)
|
|
697
|
-
}
|
|
698
|
-
|
|
699
|
-
// The limits of a module or a route, each counted under its own name: the first under the place's, the others under their place in the list.
|
|
700
|
-
function rateLimitsOf(given: RateLimit | RateLimit[] | undefined, place: string): { name: string, limit: RateLimit }[] {
|
|
701
|
-
return [given ?? []].flat().map((limit, index) => {
|
|
702
|
-
const name = index === 0 ? place : `${place}#${index}`
|
|
703
|
-
|
|
704
|
-
checkApiLimit(place, limit)
|
|
705
|
-
|
|
706
|
-
return { name, limit }
|
|
707
|
-
})
|
|
708
|
-
}
|
|
709
|
-
|
|
710
|
-
function tooLarge(): Response {
|
|
711
|
-
return new Response('Request body too large', { status: 413, headers: TEXT })
|
|
712
|
-
}
|
|
713
|
-
|
|
714
|
-
// Guards first, so a request without credentials gets their answer whatever its origin; what they set on the response goes out with the route's.
|
|
715
|
-
// They read the params of the module's route the request matched.
|
|
716
|
-
async function admit(guards: LoadedGuard[], context: { request: Request, params?: Record<string, unknown>, set: { headers: Record<string, unknown> } }, options: ActionOptions, cors: CorsRule | undefined): Promise<Response | undefined> {
|
|
717
|
-
if (cors)
|
|
718
|
-
withCors(cors, context.request, context.set.headers)
|
|
719
|
-
|
|
720
|
-
// Before the guards, so a library reading the session for them, such as kayjs-auth, knows the origin is let in.
|
|
721
|
-
if (cors && corsAdmits(cors, context.request))
|
|
722
|
-
admitCrossSite(context.request)
|
|
723
|
-
|
|
724
|
-
const passed = guards.length > 0 ? await passGuards(guards, context, context.params ?? {}, options) : undefined
|
|
725
|
-
|
|
726
|
-
if (passed instanceof Response)
|
|
727
|
-
return passed
|
|
728
|
-
|
|
729
|
-
if (passed)
|
|
730
|
-
admitted.add(context.request)
|
|
731
|
-
|
|
732
|
-
// A browser lets any page open a websocket or post a form to any host, the user's cookies attached; a request with neither header, such as a webhook, is no browser's.
|
|
733
|
-
if (crossSiteRefused(context.request))
|
|
734
|
-
return crossSiteResponse(context.request, 'request')
|
|
735
|
-
|
|
736
|
-
if (!passed)
|
|
737
|
-
return undefined
|
|
738
|
-
|
|
739
|
-
const { headers } = context.set
|
|
740
|
-
|
|
741
|
-
const cookies = new Headers()
|
|
742
|
-
|
|
743
|
-
for (const [name, value] of passed.headers) {
|
|
744
|
-
if (name === 'set-cookie')
|
|
745
|
-
cookies.append(name, value)
|
|
746
|
-
else
|
|
747
|
-
headers[name] = value
|
|
748
|
-
}
|
|
749
|
-
|
|
750
|
-
passed.jar.writeTo(cookies)
|
|
751
|
-
|
|
752
|
-
if (cookies.getSetCookie().length > 0)
|
|
753
|
-
headers['set-cookie'] = [...[headers['set-cookie'] ?? []].flat(), ...cookies.getSetCookie()]
|
|
754
|
-
|
|
755
|
-
return undefined
|
|
756
|
-
}
|
|
757
|
-
|
|
758
|
-
declare module 'elysia' {
|
|
759
|
-
interface DocumentDecoration {
|
|
760
|
-
// The most a request to this route may send, bytes or a size such as `'20mb'`, in place of the module's and the app's `maxSize`; a bigger one answers 413 before it is read.
|
|
761
|
-
maxSize?: ByteSize | undefined
|
|
762
|
-
// The longest this route may take, in place of the module's and the app's `timeout`: a string such as '30s', or `false` for none. Past it the request answers 504 and `request.signal` aborts.
|
|
763
|
-
timeout?: Duration | false | undefined
|
|
764
|
-
// At most `max` requests to this route from one client, or from whatever `key` names, every `window`; past that it answers 429 with `Retry-After`. Counted after the module's guards, beside the module's own `rateLimit`.
|
|
765
|
-
rateLimit?: RateLimit | RateLimit[] | undefined
|
|
766
|
-
// Offers the route to agents as an MCP tool when `mcp` is set in kay.config.ts: `true`, its description, or `{ name, description, text }`, as an action's `tool` is, `text` taking the route's parsed JSON answer. A route without it is in the OpenAPI document and never offered.
|
|
767
|
-
tool?: boolean | string | Omit<ActionTool<unknown>, 'output'> | undefined
|
|
768
|
-
// On a websocket route: the most one message may weigh (`maxSize`, 1 MB by default) and how many a socket may send in a window (`rateLimit`, 100 a second by default). A socket over either is closed, with 1009 or 1008. `connections` is how many sockets one client may have open on the route (20 by default, `false` for no limit); one past it answers 429.
|
|
769
|
-
messages?: SocketLimits | undefined
|
|
770
|
-
}
|
|
771
|
-
}
|
|
772
|
-
|
|
773
|
-
// Mapped, so the locals read as the record Elysia's context takes, nothing registered included.
|
|
774
|
-
type ApiLocals = { [Key in keyof Locals]: Locals[Key] }
|
|
775
|
-
|
|
776
|
-
export interface ApiOptions {
|
|
777
|
-
// The most a request to the module's routes may send, bytes or a size such as `'20mb'`, in place of the app's `maxSize`; a function is read once the server mounts the module, after the config's extensions ran.
|
|
778
|
-
maxSize?: ByteSize | (() => ByteSize) | undefined
|
|
779
|
-
// The longest a route of the module may take, in place of `serve.timeout`: a string such as '30s', or `false` for none. Past it the request answers 504 and `request.signal` aborts.
|
|
780
|
-
timeout?: Duration | false | undefined
|
|
781
|
-
// Lets other sites' pages call the module's routes from the browser: `cors: { origins: ['https://app.example.com'], credentials: true }`. `false` keeps the module to its own site where the app's `cors` in kay.config.ts opens the others.
|
|
782
|
-
cors?: CorsOptions | false | undefined
|
|
783
|
-
// At most `max` requests to any route of the module from one client, or from whatever `key` names, every `window`; past that they answer 429 with `Retry-After`. Counted after the module's guards.
|
|
784
|
-
rateLimit?: RateLimit | RateLimit[] | undefined
|
|
785
|
-
// `false` runs none of the guards above the module, as a page's `guards: false` does, read from the call as written; a guard, a list of them or `{ load }` returning one runs after the `_guard.ts` files above it.
|
|
786
|
-
guards?: GuardOption | boolean | undefined
|
|
787
|
-
}
|
|
788
|
-
|
|
789
|
-
// What a route of an `api()` module reads besides the app's locals: the values the `_guard.ts` files above it handed on, and `ctx.once`.
|
|
790
|
-
type ApiRequest<Guarded extends object> = ApiLocals & { guard: Guarded, once: Once }
|
|
791
|
-
|
|
792
|
-
// An Elysia instance for a module under `src/api` whose handlers read what the app's `derive` and `resolve` add, typed through `Register` as `ctx.locals` is, and `ctx.guard` and `ctx.once` as a page does.
|
|
793
|
-
// What the module's own `guards` return is typed from the option; `Guarded` names what the guards above the module return, `api<{ org: Org }>()`, which the editor needs and `kay check` types from the file tree when it is left out.
|
|
794
|
-
export function api<Guarded extends object = object, const Own extends GuardOption | readonly Guard[] | boolean | undefined = GuardOption | boolean | undefined>(options: Omit<ApiOptions, 'guards'> & { guards?: Own } = {}): KayPlugin<ApiRequest<Guarded & OwnGuardValues<Own>>> {
|
|
795
|
-
const instance = new Elysia()
|
|
796
|
-
|
|
797
|
-
// `guard` is empty until the module's guards run, which set it, so a `derive` or `resolve` of the module's own reads none; only `request` is read, so Elysia parses nothing more for it.
|
|
798
|
-
instance.derive(({ request }) => ({ guard: guardValues(request), once: onceOf(request) }))
|
|
799
|
-
|
|
800
|
-
const maxSize = options.maxSize
|
|
801
|
-
|
|
802
|
-
if (maxSize !== undefined)
|
|
803
|
-
Object.defineProperty(instance, BODY_LIMIT, { value: maxSize })
|
|
804
|
-
|
|
805
|
-
if (options.timeout !== undefined)
|
|
806
|
-
Object.defineProperty(instance, TIMEOUT, { value: timeoutMs(options.timeout, 'the timeout of an api() module') ?? false })
|
|
807
|
-
|
|
808
|
-
if (options.cors !== undefined)
|
|
809
|
-
Object.defineProperty(instance, CORS, { value: options.cors === false ? false : corsRule(options.cors) })
|
|
810
|
-
|
|
811
|
-
if (options.rateLimit !== undefined)
|
|
812
|
-
Object.defineProperty(instance, RATE_LIMIT, { value: options.rateLimit })
|
|
813
|
-
|
|
814
|
-
keepOwnGuards(instance, options.guards)
|
|
815
|
-
|
|
816
|
-
const socketRoute = instance.ws.bind(instance) as (path: string, options: SocketOptions) => unknown
|
|
817
|
-
const named = (path: string) => () => withoutSlash(apiRoutePath((instance as { [API_MOUNT]?: string })[API_MOUNT] ?? '', path))
|
|
818
|
-
|
|
819
|
-
// `.ws()` returns the instance, so the chain goes on as it was written.
|
|
820
|
-
instance.ws = ((path: string, routeOptions: SocketOptions) => socketRoute(path, socketOptions(instance, routeOptions, named(path)))) as typeof instance.ws
|
|
821
|
-
|
|
822
|
-
return kayPlugin(instance) as unknown as KayPlugin<ApiRequest<Guarded & OwnGuardValues<Own>>>
|
|
823
|
-
}
|