@kayjs/kay 0.0.0-stage → 1.104.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2958) hide show
  1. package/LICENSE +21 -0
  2. package/LICENSES/Apache-2.0.txt +55 -0
  3. package/LICENSES/MPL-2.0.txt +373 -0
  4. package/LICENSES/emscripten.txt +102 -0
  5. package/LICENSES/libaom-PATENTS.txt +108 -0
  6. package/LICENSES/libaom.txt +27 -0
  7. package/LICENSES/libavif-1.4.2.txt +387 -0
  8. package/LICENSES/libavif.txt +353 -0
  9. package/LICENSES/libwebp-PATENTS.txt +23 -0
  10. package/LICENSES/libwebp.txt +30 -0
  11. package/LICENSES/musl-emscripten-6.0.12.txt +193 -0
  12. package/LICENSES/musl.txt +193 -0
  13. package/NOTICE +11 -0
  14. package/README.md +107 -2
  15. package/dist/eslint.js +17787 -0
  16. package/editors/tree-sitter-kay/queries/highlights.scm +63 -0
  17. package/editors/tree-sitter-kay/queries/indents.scm +17 -0
  18. package/editors/tree-sitter-kay/queries/injections.scm +21 -0
  19. package/editors/vscode/syntaxes/kay.tmLanguage.json +624 -0
  20. package/editors/zed/Cargo.toml +13 -0
  21. package/editors/zed/extension.toml +16 -0
  22. package/editors/zed/languages/kay/config.toml +13 -0
  23. package/editors/zed/languages/kay/highlights.scm +63 -0
  24. package/editors/zed/languages/kay/indents.scm +17 -0
  25. package/editors/zed/languages/kay/injections.scm +21 -0
  26. package/editors/zed/src/lib.rs +50 -0
  27. package/llms/a11y-audit.md +21 -0
  28. package/llms/a11y-lints.md +51 -0
  29. package/llms/action-protection.md +122 -0
  30. package/llms/actions-from-islands.md +166 -0
  31. package/llms/actions-refused-fields.md +27 -0
  32. package/llms/actions.md +254 -0
  33. package/llms/analytics.md +157 -0
  34. package/llms/api-from-islands.md +168 -0
  35. package/llms/api-routes.md +222 -0
  36. package/llms/browser-only.md +69 -0
  37. package/llms/build-and-start.md +77 -0
  38. package/llms/cdn-caching.md +24 -0
  39. package/llms/check-and-tools.md +149 -0
  40. package/llms/checks.md +133 -0
  41. package/llms/code-lints.md +37 -0
  42. package/llms/compiler-api.md +25 -0
  43. package/llms/component-libraries.md +123 -0
  44. package/llms/component-library-conventions.md +60 -0
  45. package/llms/components.md +252 -0
  46. package/llms/content-cms.md +101 -0
  47. package/llms/content-edit.md +49 -0
  48. package/llms/content-markdown-to-caching.md +96 -0
  49. package/llms/content-preview.md +79 -0
  50. package/llms/content.md +276 -0
  51. package/llms/deprecated-lints.md +21 -0
  52. package/llms/dev-server.md +74 -0
  53. package/llms/dev-tool.md +72 -0
  54. package/llms/eco-design.md +107 -0
  55. package/llms/editor-and-agent-commands.md +83 -0
  56. package/llms/effects.md +98 -0
  57. package/llms/environment.md +82 -0
  58. package/llms/errors-runtime.md +57 -0
  59. package/llms/errors.md +121 -0
  60. package/llms/events.md +42 -0
  61. package/llms/files.md +189 -0
  62. package/llms/guards.md +60 -0
  63. package/llms/head.md +211 -0
  64. package/llms/hooks.md +159 -0
  65. package/llms/images-runtime-and-remote.md +85 -0
  66. package/llms/images.md +206 -0
  67. package/llms/imported-files.md +41 -0
  68. package/llms/island-and-form-lints.md +27 -0
  69. package/llms/island-sources.md +71 -0
  70. package/llms/islands-state-to-ids.md +100 -0
  71. package/llms/islands.md +281 -0
  72. package/llms/lints.md +98 -0
  73. package/llms/live-values.md +123 -0
  74. package/llms/local-collections.md +98 -0
  75. package/llms/locales-texts.md +28 -0
  76. package/llms/locales.md +269 -0
  77. package/llms/mcp.md +56 -0
  78. package/llms/navigation-from-code.md +113 -0
  79. package/llms/navigation.md +132 -0
  80. package/llms/notifications.md +114 -0
  81. package/llms/performance-lints.md +17 -0
  82. package/llms/prerendering.md +160 -0
  83. package/llms/privacy.md +166 -0
  84. package/llms/production.md +210 -0
  85. package/llms/project-new-and-add.md +67 -0
  86. package/llms/project.md +165 -0
  87. package/llms/proxy-and-security.md +177 -0
  88. package/llms/queues.md +113 -0
  89. package/llms/rate-limits.md +108 -0
  90. package/llms/recipes.md +355 -0
  91. package/llms/rendering.md +291 -0
  92. package/llms/request-values.md +82 -0
  93. package/llms/rooms.md +130 -0
  94. package/llms/routing-endpoints-and-base.md +122 -0
  95. package/llms/routing-special-pages.md +59 -0
  96. package/llms/routing.md +280 -0
  97. package/llms/schemas.md +52 -0
  98. package/llms/security-and-i18n-lints.md +19 -0
  99. package/llms/seo-lints.md +44 -0
  100. package/llms/server-islands.md +79 -0
  101. package/llms/server.md +244 -0
  102. package/llms/site.md +402 -0
  103. package/llms/sitemap-search-fonts.md +275 -0
  104. package/llms/stores.md +45 -0
  105. package/llms/styles-and-assets.md +209 -0
  106. package/llms/templates-elements-slots-snippets.md +149 -0
  107. package/llms/templates.md +294 -0
  108. package/llms/testing-browser.md +95 -0
  109. package/llms/testing-requests-jobs-sockets.md +87 -0
  110. package/llms/testing-setup.md +54 -0
  111. package/llms/testing.md +279 -0
  112. package/llms/tracing.md +56 -0
  113. package/llms/upgrading-archive.md +164 -0
  114. package/llms/upgrading.md +169 -0
  115. package/llms/whats-new-archive.md +52 -0
  116. package/llms/whats-new.md +55 -0
  117. package/llms/workers.md +22 -0
  118. package/llms.txt +123 -0
  119. package/package.json +322 -4
  120. package/src/a11y/audit.ts +217 -0
  121. package/src/a11y/report.ts +198 -0
  122. package/src/a11y/rgaa-criteria.ts +182 -0
  123. package/src/a11y/standards.ts +90 -0
  124. package/src/a11y/targets.ts +78 -0
  125. package/src/add.ts +752 -0
  126. package/src/build/action-calls.ts +174 -0
  127. package/src/build/assets.ts +73 -0
  128. package/src/build/budget.ts +127 -0
  129. package/src/build/bun.ts +19 -0
  130. package/src/build/cache-ids.ts +66 -0
  131. package/src/build/cache.ts +110 -0
  132. package/src/build/captured-loads.ts +40 -0
  133. package/src/build/class-rules.ts +240 -0
  134. package/src/build/class-sources.ts +437 -0
  135. package/src/build/class-table.ts +331 -0
  136. package/src/build/client.ts +859 -0
  137. package/src/build/collection-components.ts +140 -0
  138. package/src/build/compile.ts +264 -0
  139. package/src/build/compressed.ts +96 -0
  140. package/src/build/direct-imports.ts +139 -0
  141. package/src/build/dynamic-classes.ts +394 -0
  142. package/src/build/favicons.ts +149 -0
  143. package/src/build/files.ts +464 -0
  144. package/src/build/fingerprint.ts +54 -0
  145. package/src/build/footprint-models.ts +90 -0
  146. package/src/build/footprint.ts +683 -0
  147. package/src/build/glob.ts +237 -0
  148. package/src/build/globbed.ts +3 -0
  149. package/src/build/header-files.ts +69 -0
  150. package/src/build/icons.ts +127 -0
  151. package/src/build/increments.ts +291 -0
  152. package/src/build/insert-ids.ts +48 -0
  153. package/src/build/kept-maps.ts +64 -0
  154. package/src/build/kept.ts +149 -0
  155. package/src/build/layer-order.ts +89 -0
  156. package/src/build/libraries.ts +604 -0
  157. package/src/build/licenses.ts +246 -0
  158. package/src/build/links.ts +119 -0
  159. package/src/build/live-ids.ts +72 -0
  160. package/src/build/manifests.ts +91 -0
  161. package/src/build/named-refresh.ts +75 -0
  162. package/src/build/navigation-locale.ts +18 -0
  163. package/src/build/page-dirs.ts +58 -0
  164. package/src/build/pipeline.ts +534 -0
  165. package/src/build/plugin.ts +359 -0
  166. package/src/build/probe.ts +158 -0
  167. package/src/build/prune.ts +160 -0
  168. package/src/build/recipe-classes.ts +193 -0
  169. package/src/build/references.ts +85 -0
  170. package/src/build/report.ts +457 -0
  171. package/src/build/route-sizes.ts +387 -0
  172. package/src/build/runtime-chunk.ts +425 -0
  173. package/src/build/runtime-config.ts +174 -0
  174. package/src/build/search.ts +350 -0
  175. package/src/build/server-only.ts +531 -0
  176. package/src/build/server-record.ts +200 -0
  177. package/src/build/signals.ts +129 -0
  178. package/src/build/source-files.ts +31 -0
  179. package/src/build/source-parses.ts +136 -0
  180. package/src/build/sourcemap.ts +335 -0
  181. package/src/build/static.ts +340 -0
  182. package/src/build/style-uses.ts +579 -0
  183. package/src/build/styles.ts +325 -0
  184. package/src/build/supports.ts +201 -0
  185. package/src/build/theme-vars.ts +72 -0
  186. package/src/build/transform.ts +293 -0
  187. package/src/build/ui-info.ts +343 -0
  188. package/src/build/ui.ts +462 -0
  189. package/src/build/variants.ts +521 -0
  190. package/src/build/verify.ts +391 -0
  191. package/src/build/warn-classes.ts +18 -0
  192. package/src/build/worker-bundle.ts +70 -0
  193. package/src/bun.ts +38 -0
  194. package/src/check/api-modules.ts +48 -0
  195. package/src/check/api-scope.ts +112 -0
  196. package/src/check/ast.ts +52 -0
  197. package/src/check/bindings.ts +72 -0
  198. package/src/check/boot.ts +214 -0
  199. package/src/check/browser-global-reads.ts +123 -0
  200. package/src/check/builtin-imports.ts +215 -0
  201. package/src/check/class-words.ts +260 -0
  202. package/src/check/config-keys.ts +63 -0
  203. package/src/check/diagnose.ts +259 -0
  204. package/src/check/dockerfile.ts +59 -0
  205. package/src/check/endpoint-exports.ts +41 -0
  206. package/src/check/env-types.ts +268 -0
  207. package/src/check/export-homes.ts +69 -0
  208. package/src/check/fixes.ts +38 -0
  209. package/src/check/generated.ts +141 -0
  210. package/src/check/guards.ts +109 -0
  211. package/src/check/index.ts +242 -0
  212. package/src/check/island-modules.ts +142 -0
  213. package/src/check/island-only.ts +104 -0
  214. package/src/check/large-images.ts +355 -0
  215. package/src/check/layout-facts.ts +43 -0
  216. package/src/check/loaded.ts +88 -0
  217. package/src/check/local-state.ts +132 -0
  218. package/src/check/loop-index-fix.ts +46 -0
  219. package/src/check/mcp-routes.ts +86 -0
  220. package/src/check/messages.ts +327 -0
  221. package/src/check/missing-imports.ts +99 -0
  222. package/src/check/open-settings.ts +33 -0
  223. package/src/check/output-schema.ts +154 -0
  224. package/src/check/page-heads.ts +241 -0
  225. package/src/check/page-structure.ts +27 -0
  226. package/src/check/persisted-storage.ts +87 -0
  227. package/src/check/project.ts +303 -0
  228. package/src/check/public-env-outside-src.ts +43 -0
  229. package/src/check/queries.ts +99 -0
  230. package/src/check/removed-ui-tokens.ts +343 -0
  231. package/src/check/renamed-call-options.ts +83 -0
  232. package/src/check/renamed-exports.ts +247 -0
  233. package/src/check/renamed-packages.ts +81 -0
  234. package/src/check/schema-type.ts +9 -0
  235. package/src/check/seo.ts +240 -0
  236. package/src/check/server-only-reads.ts +79 -0
  237. package/src/check/shadow-types.ts +613 -0
  238. package/src/check/shadow.ts +381 -0
  239. package/src/check/site-seo.ts +339 -0
  240. package/src/check/socket-routes.ts +75 -0
  241. package/src/check/status-pages.ts +30 -0
  242. package/src/check/template-hints.ts +477 -0
  243. package/src/check/tool-labels.ts +120 -0
  244. package/src/check/tool-outputs.ts +201 -0
  245. package/src/check/tsgo.ts +297 -0
  246. package/src/check/typing-stamp.ts +146 -0
  247. package/src/check/ui-tokens.ts +174 -0
  248. package/src/check/ui-types.ts +87 -0
  249. package/src/check/ui.ts +105 -0
  250. package/src/check/unmounted-jobs.ts +63 -0
  251. package/src/cli.ts +135 -0
  252. package/src/commands/a11y.ts +87 -0
  253. package/src/commands/add-peers.ts +20 -0
  254. package/src/commands/add.ts +51 -0
  255. package/src/commands/build.ts +234 -0
  256. package/src/commands/check.ts +417 -0
  257. package/src/commands/command.ts +535 -0
  258. package/src/commands/completion.ts +57 -0
  259. package/src/commands/dev.ts +131 -0
  260. package/src/commands/docs.ts +161 -0
  261. package/src/commands/doctor.ts +404 -0
  262. package/src/commands/editor.ts +56 -0
  263. package/src/commands/env-compare.ts +458 -0
  264. package/src/commands/env-declare.ts +256 -0
  265. package/src/commands/env.ts +192 -0
  266. package/src/commands/explain-island.ts +107 -0
  267. package/src/commands/explain.ts +94 -0
  268. package/src/commands/extensions.ts +87 -0
  269. package/src/commands/fix-path.ts +10 -0
  270. package/src/commands/fmt.ts +152 -0
  271. package/src/commands/generate.ts +60 -0
  272. package/src/commands/i18n.ts +153 -0
  273. package/src/commands/import-module.ts +19 -0
  274. package/src/commands/lint-cache.ts +61 -0
  275. package/src/commands/lint.ts +76 -0
  276. package/src/commands/lsp.ts +17 -0
  277. package/src/commands/mcp.ts +35 -0
  278. package/src/commands/migrate.ts +131 -0
  279. package/src/commands/new.ts +172 -0
  280. package/src/commands/not-found.ts +180 -0
  281. package/src/commands/project-checks.ts +52 -0
  282. package/src/commands/registry.ts +86 -0
  283. package/src/commands/render.ts +146 -0
  284. package/src/commands/routes.ts +295 -0
  285. package/src/commands/screenshot.ts +113 -0
  286. package/src/commands/start.ts +124 -0
  287. package/src/commands/test.ts +181 -0
  288. package/src/commands/types.ts +41 -0
  289. package/src/commands/upgrade.ts +838 -0
  290. package/src/compiler/a11y-markup.ts +352 -0
  291. package/src/compiler/a11y.ts +757 -0
  292. package/src/compiler/allow-comments.ts +68 -0
  293. package/src/compiler/aria.ts +298 -0
  294. package/src/compiler/ast.ts +960 -0
  295. package/src/compiler/browser.ts +468 -0
  296. package/src/compiler/class-name.ts +120 -0
  297. package/src/compiler/codegen.ts +1181 -0
  298. package/src/compiler/deprecated-lints.ts +97 -0
  299. package/src/compiler/deprecated-script-fence.ts +26 -0
  300. package/src/compiler/deprecated-ui-props.ts +67 -0
  301. package/src/compiler/diagnostics.ts +46 -0
  302. package/src/compiler/dom.ts +782 -0
  303. package/src/compiler/each-node.ts +20 -0
  304. package/src/compiler/else-problem.ts +28 -0
  305. package/src/compiler/errors.ts +605 -0
  306. package/src/compiler/estree-shapes.ts +44 -0
  307. package/src/compiler/estree.ts +126 -0
  308. package/src/compiler/event-modifiers.ts +96 -0
  309. package/src/compiler/expression.ts +102 -0
  310. package/src/compiler/fence-checks.ts +818 -0
  311. package/src/compiler/fence-nodes.ts +25 -0
  312. package/src/compiler/fence-redirects.ts +395 -0
  313. package/src/compiler/field-described.ts +45 -0
  314. package/src/compiler/fnv-hash.ts +9 -0
  315. package/src/compiler/format.ts +419 -0
  316. package/src/compiler/frame.ts +89 -0
  317. package/src/compiler/globals.ts +57 -0
  318. package/src/compiler/host.browser.ts +25 -0
  319. package/src/compiler/host.ts +33 -0
  320. package/src/compiler/html.ts +1024 -0
  321. package/src/compiler/i18n-lints.ts +29 -0
  322. package/src/compiler/if-alias.ts +124 -0
  323. package/src/compiler/import-edits.ts +47 -0
  324. package/src/compiler/index.ts +584 -0
  325. package/src/compiler/inspect.ts +32 -0
  326. package/src/compiler/island-arguments.ts +117 -0
  327. package/src/compiler/island-cause.ts +57 -0
  328. package/src/compiler/island-marker.ts +34 -0
  329. package/src/compiler/items.ts +245 -0
  330. package/src/compiler/jsx-class.ts +84 -0
  331. package/src/compiler/jsx-entities.ts +25 -0
  332. package/src/compiler/jsx.ts +985 -0
  333. package/src/compiler/kay-exports.ts +109 -0
  334. package/src/compiler/lints.ts +1080 -0
  335. package/src/compiler/load-facts.ts +51 -0
  336. package/src/compiler/load-plan.ts +227 -0
  337. package/src/compiler/loop-lints.ts +26 -0
  338. package/src/compiler/mapping.ts +403 -0
  339. package/src/compiler/markdown-block.ts +693 -0
  340. package/src/compiler/markup.ts +860 -0
  341. package/src/compiler/minor.ts +13 -0
  342. package/src/compiler/module-signals.ts +100 -0
  343. package/src/compiler/names.ts +39 -0
  344. package/src/compiler/native-typescript.ts +29 -0
  345. package/src/compiler/nesting.ts +111 -0
  346. package/src/compiler/object-literal.ts +136 -0
  347. package/src/compiler/own-markup.ts +75 -0
  348. package/src/compiler/page-settings.ts +12 -0
  349. package/src/compiler/parser.ts +1476 -0
  350. package/src/compiler/pattern-names.ts +31 -0
  351. package/src/compiler/plan.ts +288 -0
  352. package/src/compiler/public.ts +4 -0
  353. package/src/compiler/rewrite-reads.ts +459 -0
  354. package/src/compiler/rewrite-scan.ts +77 -0
  355. package/src/compiler/rewrite-tags.ts +95 -0
  356. package/src/compiler/rewrite-types.ts +78 -0
  357. package/src/compiler/rewrite.ts +865 -0
  358. package/src/compiler/route-lints.ts +49 -0
  359. package/src/compiler/scanner.ts +175 -0
  360. package/src/compiler/scope.ts +713 -0
  361. package/src/compiler/scoped-style.ts +480 -0
  362. package/src/compiler/script-fence.ts +257 -0
  363. package/src/compiler/script-props.ts +196 -0
  364. package/src/compiler/script-recipe.ts +152 -0
  365. package/src/compiler/script-server.ts +443 -0
  366. package/src/compiler/script-shared.ts +189 -0
  367. package/src/compiler/script-split.ts +227 -0
  368. package/src/compiler/script.ts +130 -0
  369. package/src/compiler/serial-awaits.ts +123 -0
  370. package/src/compiler/status-pages.ts +11 -0
  371. package/src/compiler/style-lints.ts +188 -0
  372. package/src/compiler/template-reads.ts +235 -0
  373. package/src/compiler/template-scopes.ts +125 -0
  374. package/src/compiler/twin.ts +6 -0
  375. package/src/compiler/unowned-effects.ts +136 -0
  376. package/src/compiler/validate-fixes.ts +74 -0
  377. package/src/compiler/validate.ts +839 -0
  378. package/src/compiler/walk.ts +70 -0
  379. package/src/config-extensions.ts +175 -0
  380. package/src/config-loader.ts +332 -0
  381. package/src/config-rules.ts +138 -0
  382. package/src/config-shape.ts +204 -0
  383. package/src/config.ts +627 -0
  384. package/src/content/claims.ts +67 -0
  385. package/src/content/drafts.ts +43 -0
  386. package/src/content/edit-entries.ts +927 -0
  387. package/src/content/edit-fields.ts +247 -0
  388. package/src/content/edit-registry.ts +47 -0
  389. package/src/content/edit-shared.ts +188 -0
  390. package/src/content/edit.ts +5 -0
  391. package/src/content/entry-head.ts +58 -0
  392. package/src/content/entry-route.ts +11 -0
  393. package/src/content/excerpt.ts +99 -0
  394. package/src/content/feed.ts +241 -0
  395. package/src/content/heading-id.ts +48 -0
  396. package/src/content/held-back.ts +15 -0
  397. package/src/content/humanize.ts +9 -0
  398. package/src/content/images.ts +203 -0
  399. package/src/content/index.ts +761 -0
  400. package/src/content/key.ts +9 -0
  401. package/src/content/load.ts +781 -0
  402. package/src/content/markdown-extensions.ts +284 -0
  403. package/src/content/markdown.ts +940 -0
  404. package/src/content/migrate.ts +195 -0
  405. package/src/content/modified.ts +75 -0
  406. package/src/content/paginate.ts +119 -0
  407. package/src/content/problems.ts +44 -0
  408. package/src/content/references.ts +72 -0
  409. package/src/content/rewrite.ts +97 -0
  410. package/src/content/server.ts +469 -0
  411. package/src/content/source-draft.ts +38 -0
  412. package/src/content/turns.ts +28 -0
  413. package/src/content/validate.ts +342 -0
  414. package/src/dev/address.ts +78 -0
  415. package/src/dev/base-proxy.ts +104 -0
  416. package/src/dev/builder.ts +104 -0
  417. package/src/dev/client.ts +158 -0
  418. package/src/dev/config-record.ts +65 -0
  419. package/src/dev/fingerprint.ts +327 -0
  420. package/src/dev/index.ts +480 -0
  421. package/src/dev/inspector.ts +248 -0
  422. package/src/dev/loopback.ts +25 -0
  423. package/src/dev/pages.ts +6 -0
  424. package/src/dev/preload.ts +425 -0
  425. package/src/dev/refuse.ts +29 -0
  426. package/src/dev/reload.ts +282 -0
  427. package/src/dev/render-server.ts +131 -0
  428. package/src/dev/render-socket.ts +53 -0
  429. package/src/dev/screenshot-diff.ts +76 -0
  430. package/src/dev/screenshot-limits.ts +17 -0
  431. package/src/dev/screenshot.ts +410 -0
  432. package/src/dev/session/client.ts +173 -0
  433. package/src/dev/session/keys.ts +51 -0
  434. package/src/dev/session/ports.ts +30 -0
  435. package/src/dev/session/queue.ts +133 -0
  436. package/src/dev/session/report.ts +172 -0
  437. package/src/dev/session/servers.ts +295 -0
  438. package/src/dev/session/types.ts +309 -0
  439. package/src/dev/sources.ts +265 -0
  440. package/src/dev/tailwind.ts +93 -0
  441. package/src/dev/types-process.ts +172 -0
  442. package/src/dev/types.ts +187 -0
  443. package/src/docs-props.ts +168 -0
  444. package/src/docs-search.ts +372 -0
  445. package/src/editors.ts +238 -0
  446. package/src/entities.ts +41 -0
  447. package/src/eslint/index.ts +455 -0
  448. package/src/features.ts +22 -0
  449. package/src/format/index.ts +75 -0
  450. package/src/format/tailwind.ts +190 -0
  451. package/src/generate-resource.ts +442 -0
  452. package/src/generate.ts +365 -0
  453. package/src/imports.ts +157 -0
  454. package/src/input-types.ts +2 -0
  455. package/src/keyword-attributes.ts +12 -0
  456. package/src/lsp/bridge.ts +80 -0
  457. package/src/lsp/code-actions.ts +71 -0
  458. package/src/lsp/completions.ts +270 -0
  459. package/src/lsp/component-props.ts +109 -0
  460. package/src/lsp/diagnostics.ts +217 -0
  461. package/src/lsp/document-links.ts +56 -0
  462. package/src/lsp/host.ts +112 -0
  463. package/src/lsp/island-lens.ts +41 -0
  464. package/src/lsp/mapping.ts +163 -0
  465. package/src/lsp/navigation.ts +207 -0
  466. package/src/lsp/outline.ts +233 -0
  467. package/src/lsp/positions.ts +13 -0
  468. package/src/lsp/project-checks.ts +119 -0
  469. package/src/lsp/protocol.ts +167 -0
  470. package/src/lsp/range-format.ts +62 -0
  471. package/src/lsp/rename.ts +115 -0
  472. package/src/lsp/renames.ts +126 -0
  473. package/src/lsp/route-links.ts +92 -0
  474. package/src/lsp/rpc.ts +185 -0
  475. package/src/lsp/semantic-tokens.ts +481 -0
  476. package/src/lsp/server.ts +557 -0
  477. package/src/lsp/template-completion.ts +361 -0
  478. package/src/lsp/ui-completion.ts +206 -0
  479. package/src/mcp/guards.ts +66 -0
  480. package/src/mcp/install.ts +7 -0
  481. package/src/mcp/protocol.ts +289 -0
  482. package/src/mcp/tools.ts +819 -0
  483. package/src/migrate/astro.ts +367 -0
  484. package/src/migrate/content.ts +242 -0
  485. package/src/migrate/html.ts +96 -0
  486. package/src/migrate/markup.ts +734 -0
  487. package/src/migrate/project.ts +365 -0
  488. package/src/native-plugins.ts +2 -0
  489. package/src/nearest.ts +23 -0
  490. package/src/new.ts +333 -0
  491. package/src/package-names.ts +25 -0
  492. package/src/peers.ts +82 -0
  493. package/src/project.ts +214 -0
  494. package/src/runtime/action-call.ts +504 -0
  495. package/src/runtime/action-encode.ts +57 -0
  496. package/src/runtime/action-error.ts +36 -0
  497. package/src/runtime/action-form.ts +332 -0
  498. package/src/runtime/action-marks.ts +10 -0
  499. package/src/runtime/action-navigate.ts +54 -0
  500. package/src/runtime/action-owner.ts +93 -0
  501. package/src/runtime/action-post.ts +146 -0
  502. package/src/runtime/action-protection.ts +49 -0
  503. package/src/runtime/action-revive.ts +21 -0
  504. package/src/runtime/action-reviver.ts +1 -0
  505. package/src/runtime/action-shared.ts +437 -0
  506. package/src/runtime/action-stream.ts +177 -0
  507. package/src/runtime/action.ts +102 -0
  508. package/src/runtime/analytics.client.ts +2 -0
  509. package/src/runtime/announce.ts +34 -0
  510. package/src/runtime/api-error-class.ts +15 -0
  511. package/src/runtime/api-error.ts +74 -0
  512. package/src/runtime/api-url.ts +82 -0
  513. package/src/runtime/arrival.ts +23 -0
  514. package/src/runtime/await.server.ts +203 -0
  515. package/src/runtime/await.ts +13 -0
  516. package/src/runtime/base.ts +144 -0
  517. package/src/runtime/build.ts +21 -0
  518. package/src/runtime/byte-count.ts +14 -0
  519. package/src/runtime/byte-size.ts +17 -0
  520. package/src/runtime/cache-live-id.ts +2 -0
  521. package/src/runtime/cache.server.ts +183 -0
  522. package/src/runtime/cache.ts +940 -0
  523. package/src/runtime/call-body.ts +29 -0
  524. package/src/runtime/call-result.ts +137 -0
  525. package/src/runtime/checks.ts +390 -0
  526. package/src/runtime/claimed.ts +20 -0
  527. package/src/runtime/class-table.ts +60 -0
  528. package/src/runtime/client.ts +439 -0
  529. package/src/runtime/connection.ts +174 -0
  530. package/src/runtime/consent.ts +87 -0
  531. package/src/runtime/core.ts +505 -0
  532. package/src/runtime/counters.ts +33 -0
  533. package/src/runtime/described.ts +76 -0
  534. package/src/runtime/dev-a11y.ts +142 -0
  535. package/src/runtime/dev-boot.ts +57 -0
  536. package/src/runtime/dev-inspector.ts +341 -0
  537. package/src/runtime/dev-patch.ts +167 -0
  538. package/src/runtime/dev-refresh.ts +14 -0
  539. package/src/runtime/dev-styles.ts +158 -0
  540. package/src/runtime/dev-tab-data.ts +197 -0
  541. package/src/runtime/dev-tab-env.ts +135 -0
  542. package/src/runtime/dev-tab-head.ts +282 -0
  543. package/src/runtime/dev-tab-i18n.ts +72 -0
  544. package/src/runtime/dev-tab-images.ts +319 -0
  545. package/src/runtime/dev-tab-jobs.ts +188 -0
  546. package/src/runtime/dev-tab-network.ts +230 -0
  547. package/src/runtime/dev-tab-not-found.ts +101 -0
  548. package/src/runtime/dev-tab-performance.ts +411 -0
  549. package/src/runtime/dev-tab-reading.ts +600 -0
  550. package/src/runtime/dev-tab-routes.ts +111 -0
  551. package/src/runtime/dev-tab-styles.ts +175 -0
  552. package/src/runtime/dev-tool-constants.ts +22 -0
  553. package/src/runtime/dev-tool-icons.ts +86 -0
  554. package/src/runtime/dev-tool-keys.ts +53 -0
  555. package/src/runtime/dev-tool-kit.ts +77 -0
  556. package/src/runtime/dev-tool-layout.ts +200 -0
  557. package/src/runtime/dev-tool-markdown.ts +144 -0
  558. package/src/runtime/dev-tool-outline.ts +44 -0
  559. package/src/runtime/dev-tool-parts.ts +332 -0
  560. package/src/runtime/dev-tool-problems.ts +310 -0
  561. package/src/runtime/dev-tool-request.ts +226 -0
  562. package/src/runtime/dev-tool-shell.ts +81 -0
  563. package/src/runtime/dev-tool-style.ts +242 -0
  564. package/src/runtime/dev-tool-swaps.ts +21 -0
  565. package/src/runtime/dev-tool-tab-order.ts +475 -0
  566. package/src/runtime/dev-tool-tabs.ts +205 -0
  567. package/src/runtime/dev-tool-vitals.ts +109 -0
  568. package/src/runtime/dev-tool-window.ts +213 -0
  569. package/src/runtime/dev-tool.public.ts +5 -0
  570. package/src/runtime/dev-tool.ts +332 -0
  571. package/src/runtime/dom-await.ts +102 -0
  572. package/src/runtime/dom-image.ts +15 -0
  573. package/src/runtime/dom-loop.ts +335 -0
  574. package/src/runtime/dom-spread.ts +106 -0
  575. package/src/runtime/dom-try.ts +58 -0
  576. package/src/runtime/dom.ts +1028 -0
  577. package/src/runtime/draft-issues.ts +23 -0
  578. package/src/runtime/duration-words.ts +21 -0
  579. package/src/runtime/duration.ts +60 -0
  580. package/src/runtime/edit.ts +108 -0
  581. package/src/runtime/element-size.ts +67 -0
  582. package/src/runtime/email.ts +65 -0
  583. package/src/runtime/ended-entry.ts +10 -0
  584. package/src/runtime/env.ts +41 -0
  585. package/src/runtime/escape.ts +47 -0
  586. package/src/runtime/fetch-island.ts +211 -0
  587. package/src/runtime/fields.ts +553 -0
  588. package/src/runtime/fills.ts +52 -0
  589. package/src/runtime/focus.ts +54 -0
  590. package/src/runtime/follow-log.ts +154 -0
  591. package/src/runtime/form-controls.ts +4 -0
  592. package/src/runtime/form-hold.ts +87 -0
  593. package/src/runtime/form-protect.ts +103 -0
  594. package/src/runtime/form-submits.ts +212 -0
  595. package/src/runtime/form.ts +178 -0
  596. package/src/runtime/forms.ts +335 -0
  597. package/src/runtime/french.ts +39 -0
  598. package/src/runtime/head.ts +502 -0
  599. package/src/runtime/html.ts +659 -0
  600. package/src/runtime/hydrate-when.ts +103 -0
  601. package/src/runtime/i18n-links.ts +44 -0
  602. package/src/runtime/i18n.client.ts +220 -0
  603. package/src/runtime/i18n.server.ts +138 -0
  604. package/src/runtime/i18n.ts +601 -0
  605. package/src/runtime/icons.ts +99 -0
  606. package/src/runtime/image.public.ts +3 -0
  607. package/src/runtime/image.ts +599 -0
  608. package/src/runtime/in-view.ts +91 -0
  609. package/src/runtime/index.ts +84 -0
  610. package/src/runtime/install-prompt.ts +97 -0
  611. package/src/runtime/internal.ts +195 -0
  612. package/src/runtime/invalid.ts +49 -0
  613. package/src/runtime/island-request.ts +48 -0
  614. package/src/runtime/island.client.ts +9 -0
  615. package/src/runtime/island.server.ts +390 -0
  616. package/src/runtime/jsx-runtime.ts +2 -0
  617. package/src/runtime/jsx.ts +257 -0
  618. package/src/runtime/keepalive.ts +21 -0
  619. package/src/runtime/lasting.ts +40 -0
  620. package/src/runtime/leave.ts +71 -0
  621. package/src/runtime/listen-with.ts +8 -0
  622. package/src/runtime/listener-set.ts +22 -0
  623. package/src/runtime/live-cache.ts +462 -0
  624. package/src/runtime/live-props.ts +48 -0
  625. package/src/runtime/live-resource.server.ts +92 -0
  626. package/src/runtime/live-value.client.ts +383 -0
  627. package/src/runtime/live-value.server.ts +696 -0
  628. package/src/runtime/live-value.shared.ts +104 -0
  629. package/src/runtime/live-value.ts +43 -0
  630. package/src/runtime/live.ts +1115 -0
  631. package/src/runtime/load-scope.ts +78 -0
  632. package/src/runtime/local-status.ts +8 -0
  633. package/src/runtime/local.ts +938 -0
  634. package/src/runtime/locale-state.ts +55 -0
  635. package/src/runtime/localized.ts +18 -0
  636. package/src/runtime/log.ts +52 -0
  637. package/src/runtime/markdown-render.client.ts +163 -0
  638. package/src/runtime/markdown-task.ts +16 -0
  639. package/src/runtime/markdown.client.ts +94 -0
  640. package/src/runtime/markdown.server.ts +25 -0
  641. package/src/runtime/markdown.ts +24 -0
  642. package/src/runtime/markers.ts +25 -0
  643. package/src/runtime/media-query.ts +30 -0
  644. package/src/runtime/mount.ts +71 -0
  645. package/src/runtime/move.ts +18 -0
  646. package/src/runtime/navigate-api.ts +117 -0
  647. package/src/runtime/navigate.ts +351 -0
  648. package/src/runtime/navigation-entry.ts +2 -0
  649. package/src/runtime/navigation-state.ts +124 -0
  650. package/src/runtime/navigation.ts +236 -0
  651. package/src/runtime/online.ts +27 -0
  652. package/src/runtime/optimistic.ts +107 -0
  653. package/src/runtime/outside.ts +68 -0
  654. package/src/runtime/page-data.ts +60 -0
  655. package/src/runtime/page-errors.ts +31 -0
  656. package/src/runtime/page-swap.ts +522 -0
  657. package/src/runtime/page-title.ts +69 -0
  658. package/src/runtime/params.ts +24 -0
  659. package/src/runtime/pending.ts +44 -0
  660. package/src/runtime/persist.ts +290 -0
  661. package/src/runtime/persisted.ts +146 -0
  662. package/src/runtime/placeholder.ts +41 -0
  663. package/src/runtime/poll-backoff.ts +85 -0
  664. package/src/runtime/prefetch.ts +149 -0
  665. package/src/runtime/presence.ts +93 -0
  666. package/src/runtime/preview.ts +65 -0
  667. package/src/runtime/push.ts +294 -0
  668. package/src/runtime/query-param.ts +292 -0
  669. package/src/runtime/queue-jobs.ts +50 -0
  670. package/src/runtime/random-id.ts +5 -0
  671. package/src/runtime/reactive-collections.ts +214 -0
  672. package/src/runtime/reactive.ts +840 -0
  673. package/src/runtime/recipe.ts +79 -0
  674. package/src/runtime/refetch-island.ts +25 -0
  675. package/src/runtime/refuse.ts +56 -0
  676. package/src/runtime/rendered.ts +17 -0
  677. package/src/runtime/report-error.ts +25 -0
  678. package/src/runtime/retry-later.ts +72 -0
  679. package/src/runtime/reveal.ts +47 -0
  680. package/src/runtime/root.ts +6 -0
  681. package/src/runtime/route.ts +83 -0
  682. package/src/runtime/safe-code.ts +25 -0
  683. package/src/runtime/safe-html.ts +51 -0
  684. package/src/runtime/sanitize.ts +375 -0
  685. package/src/runtime/save-data.ts +4 -0
  686. package/src/runtime/schema-bounds.ts +50 -0
  687. package/src/runtime/schema.client.ts +26 -0
  688. package/src/runtime/schema.ts +71 -0
  689. package/src/runtime/search-arrival.ts +107 -0
  690. package/src/runtime/search-results.ts +47 -0
  691. package/src/runtime/search.ts +325 -0
  692. package/src/runtime/send.ts +114 -0
  693. package/src/runtime/seo.ts +70 -0
  694. package/src/runtime/server-islands.ts +5 -0
  695. package/src/runtime/shortcut.ts +179 -0
  696. package/src/runtime/site.ts +37 -0
  697. package/src/runtime/size-text.ts +25 -0
  698. package/src/runtime/snapshots.ts +116 -0
  699. package/src/runtime/sqlite.server.ts +52 -0
  700. package/src/runtime/sse.ts +88 -0
  701. package/src/runtime/stale.ts +181 -0
  702. package/src/runtime/static-slots.ts +78 -0
  703. package/src/runtime/store-base.ts +11 -0
  704. package/src/runtime/store.ts +309 -0
  705. package/src/runtime/swap-fetch.ts +214 -0
  706. package/src/runtime/swap-flight.ts +84 -0
  707. package/src/runtime/swap-focus.ts +188 -0
  708. package/src/runtime/swap-head.ts +288 -0
  709. package/src/runtime/swap-held.ts +41 -0
  710. package/src/runtime/swap-kept.ts +289 -0
  711. package/src/runtime/swap-loading.ts +44 -0
  712. package/src/runtime/swap-morph.ts +198 -0
  713. package/src/runtime/swap-refusal.ts +40 -0
  714. package/src/runtime/swap-streamed.ts +161 -0
  715. package/src/runtime/swap-transition.ts +117 -0
  716. package/src/runtime/swap.ts +33 -0
  717. package/src/runtime/template-context.ts +79 -0
  718. package/src/runtime/transition.ts +227 -0
  719. package/src/runtime/ui.ts +32 -0
  720. package/src/runtime/uid.server.ts +69 -0
  721. package/src/runtime/uid.ts +56 -0
  722. package/src/runtime/upload.ts +49 -0
  723. package/src/runtime/url-attributes.ts +2 -0
  724. package/src/runtime/url-report.ts +24 -0
  725. package/src/runtime/url.ts +37 -0
  726. package/src/runtime/validate.ts +310 -0
  727. package/src/runtime/values.ts +293 -0
  728. package/src/runtime/visibility.ts +35 -0
  729. package/src/runtime/warn-once.ts +22 -0
  730. package/src/runtime/wire.ts +204 -0
  731. package/src/runtime/with-query.ts +64 -0
  732. package/src/runtime/words.client.ts +138 -0
  733. package/src/runtime/words.server.ts +53 -0
  734. package/src/runtime/work-worker.ts +4 -0
  735. package/src/runtime/work.client.ts +112 -0
  736. package/src/runtime/work.ts +85 -0
  737. package/src/server/accept-language.ts +37 -0
  738. package/src/server/action-clash.ts +7 -0
  739. package/src/server/action-hooks.ts +69 -0
  740. package/src/server/action-input.ts +58 -0
  741. package/src/server/action-iterable.ts +75 -0
  742. package/src/server/actions.ts +874 -0
  743. package/src/server/address.ts +172 -0
  744. package/src/server/analytics-script.ts +302 -0
  745. package/src/server/analytics-server.ts +563 -0
  746. package/src/server/analytics-words.ts +13 -0
  747. package/src/server/analytics.ts +423 -0
  748. package/src/server/api-modules.ts +235 -0
  749. package/src/server/api-params.ts +83 -0
  750. package/src/server/api.ts +922 -0
  751. package/src/server/app-database.ts +32 -0
  752. package/src/server/app-hooks.ts +147 -0
  753. package/src/server/app-identity.ts +70 -0
  754. package/src/server/app-stages.ts +798 -0
  755. package/src/server/app-store.ts +79 -0
  756. package/src/server/app.ts +218 -0
  757. package/src/server/auth-mails.ts +162 -0
  758. package/src/server/auto-listen.ts +177 -0
  759. package/src/server/avif-worker.ts +138 -0
  760. package/src/server/avif.ts +124 -0
  761. package/src/server/base.ts +136 -0
  762. package/src/server/basic-auth.ts +109 -0
  763. package/src/server/body.ts +179 -0
  764. package/src/server/build-files.ts +117 -0
  765. package/src/server/builtins.ts +8 -0
  766. package/src/server/bundle.ts +81 -0
  767. package/src/server/card-draw.ts +220 -0
  768. package/src/server/card-template.ts +256 -0
  769. package/src/server/card.ts +666 -0
  770. package/src/server/ceiling.ts +10 -0
  771. package/src/server/clean-context.ts +6 -0
  772. package/src/server/client.ts +607 -0
  773. package/src/server/codec/avif-enc-build.ts +2 -0
  774. package/src/server/codec/avif-enc.d.ts +15 -0
  775. package/src/server/codec/avif-enc.js +2 -0
  776. package/src/server/codec/avif-enc.wasm +0 -0
  777. package/src/server/compress-policy.ts +40 -0
  778. package/src/server/compress.ts +1010 -0
  779. package/src/server/config-error.ts +54 -0
  780. package/src/server/config-limits.ts +166 -0
  781. package/src/server/consent-cookie.ts +10 -0
  782. package/src/server/context-layout/_layout.kay +7 -0
  783. package/src/server/context-reads.ts +33 -0
  784. package/src/server/context-record.ts +58 -0
  785. package/src/server/context-values.ts +181 -0
  786. package/src/server/cookie-names.ts +10 -0
  787. package/src/server/cookies.ts +159 -0
  788. package/src/server/cors.ts +235 -0
  789. package/src/server/crop.ts +153 -0
  790. package/src/server/cross-site.ts +155 -0
  791. package/src/server/csp.ts +40 -0
  792. package/src/server/dev-data.ts +558 -0
  793. package/src/server/dev-errors.ts +270 -0
  794. package/src/server/dev-footprint.ts +19 -0
  795. package/src/server/dev-head.ts +95 -0
  796. package/src/server/dev-jobs.ts +59 -0
  797. package/src/server/dev-not-found.ts +96 -0
  798. package/src/server/dev-notes.ts +12 -0
  799. package/src/server/dev-offered.ts +13 -0
  800. package/src/server/dev-secret.ts +65 -0
  801. package/src/server/dev-sizes.ts +114 -0
  802. package/src/server/dev-sqlite-worker.ts +96 -0
  803. package/src/server/dev-ui.ts +299 -0
  804. package/src/server/dev.ts +875 -0
  805. package/src/server/dictionary.ts +190 -0
  806. package/src/server/drain.ts +40 -0
  807. package/src/server/editor.ts +79 -0
  808. package/src/server/endpoint-claims.ts +29 -0
  809. package/src/server/endpoint-verbs.ts +43 -0
  810. package/src/server/endpoints.ts +417 -0
  811. package/src/server/entry-drafts.ts +151 -0
  812. package/src/server/entry-head.ts +50 -0
  813. package/src/server/entry-urls.ts +150 -0
  814. package/src/server/env-state.ts +146 -0
  815. package/src/server/env.ts +375 -0
  816. package/src/server/error-maps.ts +137 -0
  817. package/src/server/errors.ts +109 -0
  818. package/src/server/event-stream.ts +213 -0
  819. package/src/server/face.ts +788 -0
  820. package/src/server/favicon.png +0 -0
  821. package/src/server/favicon.svg +1 -0
  822. package/src/server/favicon.ts +342 -0
  823. package/src/server/fetch-public.ts +118 -0
  824. package/src/server/field-errors.ts +136 -0
  825. package/src/server/file-limit.ts +62 -0
  826. package/src/server/file-type.ts +46 -0
  827. package/src/server/flash.ts +140 -0
  828. package/src/server/font-metrics.ts +294 -0
  829. package/src/server/fonts.ts +344 -0
  830. package/src/server/forms.ts +89 -0
  831. package/src/server/guard-requirement.ts +16 -0
  832. package/src/server/guard-runs.ts +30 -0
  833. package/src/server/guards.ts +66 -0
  834. package/src/server/handler-timing.ts +12 -0
  835. package/src/server/history.ts +3 -0
  836. package/src/server/hooks.ts +170 -0
  837. package/src/server/host-allowlist.ts +63 -0
  838. package/src/server/hydration.ts +7 -0
  839. package/src/server/i18n.ts +534 -0
  840. package/src/server/image-color.ts +79 -0
  841. package/src/server/image-format.ts +181 -0
  842. package/src/server/image-limits.ts +88 -0
  843. package/src/server/image-metadata-bmff.ts +243 -0
  844. package/src/server/image-metadata.ts +316 -0
  845. package/src/server/image.ts +833 -0
  846. package/src/server/index.ts +149 -0
  847. package/src/server/internal.ts +8 -0
  848. package/src/server/job-admin.ts +197 -0
  849. package/src/server/job-status.ts +8 -0
  850. package/src/server/job-steps.ts +2 -0
  851. package/src/server/jobs-page.ts +137 -0
  852. package/src/server/jobs.ts +403 -0
  853. package/src/server/kept-exports.ts +174 -0
  854. package/src/server/kept-pages.ts +117 -0
  855. package/src/server/kept-source.ts +609 -0
  856. package/src/server/kv.ts +201 -0
  857. package/src/server/lazy-guard.ts +71 -0
  858. package/src/server/library.ts +142 -0
  859. package/src/server/lifecycle.ts +378 -0
  860. package/src/server/limit.ts +33 -0
  861. package/src/server/link-schemes.ts +23 -0
  862. package/src/server/links.ts +238 -0
  863. package/src/server/literal-writes.ts +756 -0
  864. package/src/server/live.ts +628 -0
  865. package/src/server/load-budget.ts +69 -0
  866. package/src/server/loader.ts +180 -0
  867. package/src/server/loading-page.ts +41 -0
  868. package/src/server/local-files.ts +26 -0
  869. package/src/server/log.ts +282 -0
  870. package/src/server/maintenance.ts +141 -0
  871. package/src/server/mcp-key.ts +165 -0
  872. package/src/server/mcp.ts +731 -0
  873. package/src/server/memory-jobs.ts +168 -0
  874. package/src/server/memory-mark.ts +12 -0
  875. package/src/server/message-drafts.ts +284 -0
  876. package/src/server/metrics.ts +199 -0
  877. package/src/server/missing-hits.ts +41 -0
  878. package/src/server/module-state.ts +327 -0
  879. package/src/server/new-tab.ts +28 -0
  880. package/src/server/not-found-config.ts +160 -0
  881. package/src/server/not-found.ts +828 -0
  882. package/src/server/notifications.ts +358 -0
  883. package/src/server/offline.ts +558 -0
  884. package/src/server/openapi.ts +522 -0
  885. package/src/server/option-keys.ts +15 -0
  886. package/src/server/overlay.ts +196 -0
  887. package/src/server/own-headers.ts +221 -0
  888. package/src/server/page-error.ts +57 -0
  889. package/src/server/page-flags.ts +15 -0
  890. package/src/server/page-headers.ts +93 -0
  891. package/src/server/page-hook.ts +201 -0
  892. package/src/server/page-limits.ts +142 -0
  893. package/src/server/page-reads.ts +63 -0
  894. package/src/server/page-routes.ts +377 -0
  895. package/src/server/page-settings.ts +66 -0
  896. package/src/server/params.ts +197 -0
  897. package/src/server/parent.ts +8 -0
  898. package/src/server/personal-data.ts +47 -0
  899. package/src/server/pg-cache.ts +181 -0
  900. package/src/server/pg-data.ts +254 -0
  901. package/src/server/pg-jobs.ts +511 -0
  902. package/src/server/pg-limit.ts +51 -0
  903. package/src/server/pg-live.ts +287 -0
  904. package/src/server/pg-not-found.ts +440 -0
  905. package/src/server/pg-notify.ts +216 -0
  906. package/src/server/pg-orm.ts +26 -0
  907. package/src/server/pg-poll.ts +341 -0
  908. package/src/server/pg-redirects.ts +210 -0
  909. package/src/server/pg-rooms.ts +550 -0
  910. package/src/server/pg-sql.ts +16 -0
  911. package/src/server/pg-stores.ts +356 -0
  912. package/src/server/plugin.ts +30 -0
  913. package/src/server/plumbing.ts +90 -0
  914. package/src/server/png.ts +108 -0
  915. package/src/server/prebuilt-loader.ts +110 -0
  916. package/src/server/prerender.ts +750 -0
  917. package/src/server/prerendered.ts +162 -0
  918. package/src/server/presence.ts +251 -0
  919. package/src/server/preview.ts +703 -0
  920. package/src/server/private-dir.ts +87 -0
  921. package/src/server/protection.ts +1121 -0
  922. package/src/server/proxy-key.ts +101 -0
  923. package/src/server/public-suffix.ts +59 -0
  924. package/src/server/public-suffixes.ts +502 -0
  925. package/src/server/public.ts +299 -0
  926. package/src/server/publishing.ts +176 -0
  927. package/src/server/pure-page.ts +398 -0
  928. package/src/server/push-crypto.ts +154 -0
  929. package/src/server/push-keys-command.ts +25 -0
  930. package/src/server/push-server.ts +124 -0
  931. package/src/server/push-settings.ts +67 -0
  932. package/src/server/push-store.ts +182 -0
  933. package/src/server/push.ts +464 -0
  934. package/src/server/query.ts +265 -0
  935. package/src/server/queue-live.ts +291 -0
  936. package/src/server/queue-scheduler.ts +421 -0
  937. package/src/server/queue-telling.ts +53 -0
  938. package/src/server/queue.ts +955 -0
  939. package/src/server/raster.ts +176 -0
  940. package/src/server/rate-limit.ts +65 -0
  941. package/src/server/rate-refusal.ts +36 -0
  942. package/src/server/reach-walk.ts +65 -0
  943. package/src/server/reach.ts +124 -0
  944. package/src/server/redirect-spelling.ts +57 -0
  945. package/src/server/redirects.ts +182 -0
  946. package/src/server/reload.ts +88 -0
  947. package/src/server/remote.ts +358 -0
  948. package/src/server/render-document.ts +521 -0
  949. package/src/server/render.ts +1022 -0
  950. package/src/server/report.ts +103 -0
  951. package/src/server/request-read.ts +38 -0
  952. package/src/server/request-record.ts +105 -0
  953. package/src/server/request-scope.ts +58 -0
  954. package/src/server/request-timeout.ts +209 -0
  955. package/src/server/request-url.ts +47 -0
  956. package/src/server/request-user.ts +25 -0
  957. package/src/server/resources.ts +132 -0
  958. package/src/server/response-mismatch.ts +21 -0
  959. package/src/server/revalidate.ts +100 -0
  960. package/src/server/rewrite.ts +143 -0
  961. package/src/server/rooms.ts +646 -0
  962. package/src/server/route-table.ts +155 -0
  963. package/src/server/routes.ts +901 -0
  964. package/src/server/runtime-redirect-api.ts +227 -0
  965. package/src/server/runtime-redirects.ts +438 -0
  966. package/src/server/safe-path.ts +26 -0
  967. package/src/server/save-data.ts +150 -0
  968. package/src/server/schema-answer.ts +42 -0
  969. package/src/server/schema-check.ts +102 -0
  970. package/src/server/scope.ts +128 -0
  971. package/src/server/seal.ts +73 -0
  972. package/src/server/security.ts +289 -0
  973. package/src/server/seo.ts +234 -0
  974. package/src/server/served-paths.ts +135 -0
  975. package/src/server/server-islands.ts +175 -0
  976. package/src/server/server-record.ts +80 -0
  977. package/src/server/serving.ts +35 -0
  978. package/src/server/session.ts +782 -0
  979. package/src/server/setup.ts +252 -0
  980. package/src/server/sha256.ts +15 -0
  981. package/src/server/signals.ts +87 -0
  982. package/src/server/signed.ts +62 -0
  983. package/src/server/site-facts.ts +19 -0
  984. package/src/server/site-paths.ts +3 -0
  985. package/src/server/sitemap.ts +413 -0
  986. package/src/server/snake-case.ts +6 -0
  987. package/src/server/source.ts +169 -0
  988. package/src/server/speculation.ts +57 -0
  989. package/src/server/sqlite-data.ts +19 -0
  990. package/src/server/sqlite-live.ts +200 -0
  991. package/src/server/stale-pages.ts +105 -0
  992. package/src/server/stamp.ts +222 -0
  993. package/src/server/storage.ts +614 -0
  994. package/src/server/stream.ts +307 -0
  995. package/src/server/string.ts +79 -0
  996. package/src/server/svg-icon.ts +76 -0
  997. package/src/server/swap.ts +4 -0
  998. package/src/server/tool-outputs.ts +71 -0
  999. package/src/server/tool-settings.ts +12 -0
  1000. package/src/server/trace-context.ts +89 -0
  1001. package/src/server/trace.ts +198 -0
  1002. package/src/server/translations.ts +30 -0
  1003. package/src/server/typography.ts +248 -0
  1004. package/src/server/uncaught.ts +60 -0
  1005. package/src/server/unsafe-urls.ts +29 -0
  1006. package/src/server/violations.ts +159 -0
  1007. package/src/server/visit.ts +54 -0
  1008. package/src/server/vitals-routes/_guard.ts +12 -0
  1009. package/src/server/vitals-routes/index.kay +45 -0
  1010. package/src/server/vitals-routes/vitals.css +30 -0
  1011. package/src/server/vitals-screen.ts +24 -0
  1012. package/src/server/vitals-script.ts +102 -0
  1013. package/src/server/vitals-server.ts +134 -0
  1014. package/src/server/vitals-store.ts +233 -0
  1015. package/src/server/vitals.ts +80 -0
  1016. package/src/server/wasm.d.ts +6 -0
  1017. package/src/server/web-socket.ts +13 -0
  1018. package/src/server/wildcards.ts +87 -0
  1019. package/src/server/words.ts +145 -0
  1020. package/src/server/work-scope.ts +65 -0
  1021. package/src/server/work.ts +90 -0
  1022. package/src/server/workers.ts +293 -0
  1023. package/src/server/workflow.ts +520 -0
  1024. package/src/server/writes.ts +161 -0
  1025. package/src/server/ws-limits.ts +201 -0
  1026. package/src/svg-attributes.ts +240 -0
  1027. package/src/template-auth.ts +79 -0
  1028. package/src/template-ci.ts +156 -0
  1029. package/src/template-config.ts +36 -0
  1030. package/src/template-docker.ts +260 -0
  1031. package/src/template-pins.ts +14 -0
  1032. package/src/template-shared.ts +53 -0
  1033. package/src/template-starter.ts +110 -0
  1034. package/src/template-styles.ts +154 -0
  1035. package/src/template-ws.ts +57 -0
  1036. package/src/templates.ts +76 -0
  1037. package/src/test/browser.ts +1281 -0
  1038. package/src/test/clock.ts +121 -0
  1039. package/src/test/content.ts +345 -0
  1040. package/src/test/cookies.ts +94 -0
  1041. package/src/test/database.ts +57 -0
  1042. package/src/test/dom.ts +90 -0
  1043. package/src/test/env.ts +58 -0
  1044. package/src/test/index.ts +568 -0
  1045. package/src/test/interact.ts +134 -0
  1046. package/src/test/isolation.ts +19 -0
  1047. package/src/test/lazy-plugins.ts +269 -0
  1048. package/src/test/mount.ts +246 -0
  1049. package/src/test/natives.ts +44 -0
  1050. package/src/test/network.ts +678 -0
  1051. package/src/test/outputs.ts +54 -0
  1052. package/src/test/override-env.ts +40 -0
  1053. package/src/test/page-types.ts +150 -0
  1054. package/src/test/page.ts +338 -0
  1055. package/src/test/preload.ts +27 -0
  1056. package/src/test/reset.ts +13 -0
  1057. package/src/test/root.ts +13 -0
  1058. package/src/test/scratch.ts +12 -0
  1059. package/src/test/service.ts +174 -0
  1060. package/src/test/shared-modules.ts +328 -0
  1061. package/src/test/site-actions.ts +142 -0
  1062. package/src/test/site-api.ts +19 -0
  1063. package/src/test/site-mcp.ts +36 -0
  1064. package/src/test/site-scope.ts +35 -0
  1065. package/src/test/site-socket.ts +125 -0
  1066. package/src/test/site-types.ts +155 -0
  1067. package/src/test/sites.ts +29 -0
  1068. package/src/test/timeout.ts +45 -0
  1069. package/src/test/wait.ts +34 -0
  1070. package/src/test/writable.ts +20 -0
  1071. package/src/tsconfig.app.json +21 -0
  1072. package/src/tsgo.ts +18 -0
  1073. package/types/a11y/audit.d.ts +32 -0
  1074. package/types/a11y/audit.d.ts.map +1 -0
  1075. package/types/a11y/report.d.ts +20 -0
  1076. package/types/a11y/report.d.ts.map +1 -0
  1077. package/types/a11y/rgaa-criteria.d.ts +5 -0
  1078. package/types/a11y/rgaa-criteria.d.ts.map +1 -0
  1079. package/types/a11y/standards.d.ts +17 -0
  1080. package/types/a11y/standards.d.ts.map +1 -0
  1081. package/types/a11y/targets.d.ts +20 -0
  1082. package/types/a11y/targets.d.ts.map +1 -0
  1083. package/types/add.d.ts +56 -0
  1084. package/types/add.d.ts.map +1 -0
  1085. package/types/build/action-calls.d.ts +2 -0
  1086. package/types/build/action-calls.d.ts.map +1 -0
  1087. package/types/build/assets.d.ts +17 -0
  1088. package/types/build/assets.d.ts.map +1 -0
  1089. package/types/build/budget.d.ts +17 -0
  1090. package/types/build/budget.d.ts.map +1 -0
  1091. package/types/build/bun.d.ts +9 -0
  1092. package/types/build/bun.d.ts.map +1 -0
  1093. package/types/build/cache-ids.d.ts +2 -0
  1094. package/types/build/cache-ids.d.ts.map +1 -0
  1095. package/types/build/cache.d.ts +15 -0
  1096. package/types/build/cache.d.ts.map +1 -0
  1097. package/types/build/captured-loads.d.ts +19 -0
  1098. package/types/build/captured-loads.d.ts.map +1 -0
  1099. package/types/build/class-rules.d.ts +14 -0
  1100. package/types/build/class-rules.d.ts.map +1 -0
  1101. package/types/build/class-sources.d.ts +29 -0
  1102. package/types/build/class-sources.d.ts.map +1 -0
  1103. package/types/build/class-table.d.ts +8 -0
  1104. package/types/build/class-table.d.ts.map +1 -0
  1105. package/types/build/client.d.ts +82 -0
  1106. package/types/build/client.d.ts.map +1 -0
  1107. package/types/build/collection-components.d.ts +5 -0
  1108. package/types/build/collection-components.d.ts.map +1 -0
  1109. package/types/build/compile.d.ts +22 -0
  1110. package/types/build/compile.d.ts.map +1 -0
  1111. package/types/build/compressed.d.ts +7 -0
  1112. package/types/build/compressed.d.ts.map +1 -0
  1113. package/types/build/direct-imports.d.ts +2 -0
  1114. package/types/build/direct-imports.d.ts.map +1 -0
  1115. package/types/build/dynamic-classes.d.ts +12 -0
  1116. package/types/build/dynamic-classes.d.ts.map +1 -0
  1117. package/types/build/favicons.d.ts +4 -0
  1118. package/types/build/favicons.d.ts.map +1 -0
  1119. package/types/build/files.d.ts +56 -0
  1120. package/types/build/files.d.ts.map +1 -0
  1121. package/types/build/fingerprint.d.ts +3 -0
  1122. package/types/build/fingerprint.d.ts.map +1 -0
  1123. package/types/build/footprint-models.d.ts +24 -0
  1124. package/types/build/footprint-models.d.ts.map +1 -0
  1125. package/types/build/footprint.d.ts +44 -0
  1126. package/types/build/footprint.d.ts.map +1 -0
  1127. package/types/build/glob.d.ts +10 -0
  1128. package/types/build/glob.d.ts.map +1 -0
  1129. package/types/build/globbed.d.ts +2 -0
  1130. package/types/build/globbed.d.ts.map +1 -0
  1131. package/types/build/header-files.d.ts +4 -0
  1132. package/types/build/header-files.d.ts.map +1 -0
  1133. package/types/build/icons.d.ts +9 -0
  1134. package/types/build/icons.d.ts.map +1 -0
  1135. package/types/build/increments.d.ts +50 -0
  1136. package/types/build/increments.d.ts.map +1 -0
  1137. package/types/build/insert-ids.d.ts +10 -0
  1138. package/types/build/insert-ids.d.ts.map +1 -0
  1139. package/types/build/kept-maps.d.ts +3 -0
  1140. package/types/build/kept-maps.d.ts.map +1 -0
  1141. package/types/build/kept.d.ts +5 -0
  1142. package/types/build/kept.d.ts.map +1 -0
  1143. package/types/build/layer-order.d.ts +2 -0
  1144. package/types/build/layer-order.d.ts.map +1 -0
  1145. package/types/build/libraries.d.ts +53 -0
  1146. package/types/build/libraries.d.ts.map +1 -0
  1147. package/types/build/licenses.d.ts +16 -0
  1148. package/types/build/licenses.d.ts.map +1 -0
  1149. package/types/build/links.d.ts +3 -0
  1150. package/types/build/links.d.ts.map +1 -0
  1151. package/types/build/live-ids.d.ts +3 -0
  1152. package/types/build/live-ids.d.ts.map +1 -0
  1153. package/types/build/manifests.d.ts +26 -0
  1154. package/types/build/manifests.d.ts.map +1 -0
  1155. package/types/build/named-refresh.d.ts +3 -0
  1156. package/types/build/named-refresh.d.ts.map +1 -0
  1157. package/types/build/navigation-locale.d.ts +3 -0
  1158. package/types/build/navigation-locale.d.ts.map +1 -0
  1159. package/types/build/page-dirs.d.ts +8 -0
  1160. package/types/build/page-dirs.d.ts.map +1 -0
  1161. package/types/build/pipeline.d.ts +60 -0
  1162. package/types/build/pipeline.d.ts.map +1 -0
  1163. package/types/build/plugin.d.ts +30 -0
  1164. package/types/build/plugin.d.ts.map +1 -0
  1165. package/types/build/probe.d.ts +6 -0
  1166. package/types/build/probe.d.ts.map +1 -0
  1167. package/types/build/prune.d.ts +5 -0
  1168. package/types/build/prune.d.ts.map +1 -0
  1169. package/types/build/recipe-classes.d.ts +11 -0
  1170. package/types/build/recipe-classes.d.ts.map +1 -0
  1171. package/types/build/references.d.ts +7 -0
  1172. package/types/build/references.d.ts.map +1 -0
  1173. package/types/build/report.d.ts +95 -0
  1174. package/types/build/report.d.ts.map +1 -0
  1175. package/types/build/route-sizes.d.ts +7 -0
  1176. package/types/build/route-sizes.d.ts.map +1 -0
  1177. package/types/build/runtime-chunk.d.ts +25 -0
  1178. package/types/build/runtime-chunk.d.ts.map +1 -0
  1179. package/types/build/runtime-config.d.ts +3 -0
  1180. package/types/build/runtime-config.d.ts.map +1 -0
  1181. package/types/build/search.d.ts +7 -0
  1182. package/types/build/search.d.ts.map +1 -0
  1183. package/types/build/server-only.d.ts +40 -0
  1184. package/types/build/server-only.d.ts.map +1 -0
  1185. package/types/build/server-record.d.ts +4 -0
  1186. package/types/build/server-record.d.ts.map +1 -0
  1187. package/types/build/signals.d.ts +5 -0
  1188. package/types/build/signals.d.ts.map +1 -0
  1189. package/types/build/source-files.d.ts +15 -0
  1190. package/types/build/source-files.d.ts.map +1 -0
  1191. package/types/build/source-parses.d.ts +22 -0
  1192. package/types/build/source-parses.d.ts.map +1 -0
  1193. package/types/build/sourcemap.d.ts +29 -0
  1194. package/types/build/sourcemap.d.ts.map +1 -0
  1195. package/types/build/static.d.ts +11 -0
  1196. package/types/build/static.d.ts.map +1 -0
  1197. package/types/build/style-uses.d.ts +19 -0
  1198. package/types/build/style-uses.d.ts.map +1 -0
  1199. package/types/build/styles.d.ts +12 -0
  1200. package/types/build/styles.d.ts.map +1 -0
  1201. package/types/build/supports.d.ts +16 -0
  1202. package/types/build/supports.d.ts.map +1 -0
  1203. package/types/build/theme-vars.d.ts +2 -0
  1204. package/types/build/theme-vars.d.ts.map +1 -0
  1205. package/types/build/transform.d.ts +47 -0
  1206. package/types/build/transform.d.ts.map +1 -0
  1207. package/types/build/ui-info.d.ts +27 -0
  1208. package/types/build/ui-info.d.ts.map +1 -0
  1209. package/types/build/ui.d.ts +51 -0
  1210. package/types/build/ui.d.ts.map +1 -0
  1211. package/types/build/variants.d.ts +21 -0
  1212. package/types/build/variants.d.ts.map +1 -0
  1213. package/types/build/verify.d.ts +14 -0
  1214. package/types/build/verify.d.ts.map +1 -0
  1215. package/types/build/warn-classes.d.ts +4 -0
  1216. package/types/build/warn-classes.d.ts.map +1 -0
  1217. package/types/build/worker-bundle.d.ts +16 -0
  1218. package/types/build/worker-bundle.d.ts.map +1 -0
  1219. package/types/bun.d.ts +9 -0
  1220. package/types/bun.d.ts.map +1 -0
  1221. package/types/check/api-modules.d.ts +11 -0
  1222. package/types/check/api-modules.d.ts.map +1 -0
  1223. package/types/check/api-scope.d.ts +13 -0
  1224. package/types/check/api-scope.d.ts.map +1 -0
  1225. package/types/check/ast.d.ts +10 -0
  1226. package/types/check/ast.d.ts.map +1 -0
  1227. package/types/check/bindings.d.ts +4 -0
  1228. package/types/check/bindings.d.ts.map +1 -0
  1229. package/types/check/boot.d.ts +6 -0
  1230. package/types/check/boot.d.ts.map +1 -0
  1231. package/types/check/browser-global-reads.d.ts +8 -0
  1232. package/types/check/browser-global-reads.d.ts.map +1 -0
  1233. package/types/check/builtin-imports.d.ts +5 -0
  1234. package/types/check/builtin-imports.d.ts.map +1 -0
  1235. package/types/check/class-words.d.ts +7 -0
  1236. package/types/check/class-words.d.ts.map +1 -0
  1237. package/types/check/config-keys.d.ts +7 -0
  1238. package/types/check/config-keys.d.ts.map +1 -0
  1239. package/types/check/diagnose.d.ts +36 -0
  1240. package/types/check/diagnose.d.ts.map +1 -0
  1241. package/types/check/dockerfile.d.ts +4 -0
  1242. package/types/check/dockerfile.d.ts.map +1 -0
  1243. package/types/check/endpoint-exports.d.ts +4 -0
  1244. package/types/check/endpoint-exports.d.ts.map +1 -0
  1245. package/types/check/env-types.d.ts +8 -0
  1246. package/types/check/env-types.d.ts.map +1 -0
  1247. package/types/check/export-homes.d.ts +6 -0
  1248. package/types/check/export-homes.d.ts.map +1 -0
  1249. package/types/check/fixes.d.ts +3 -0
  1250. package/types/check/fixes.d.ts.map +1 -0
  1251. package/types/check/generated.d.ts +25 -0
  1252. package/types/check/generated.d.ts.map +1 -0
  1253. package/types/check/guards.d.ts +5 -0
  1254. package/types/check/guards.d.ts.map +1 -0
  1255. package/types/check/index.d.ts +34 -0
  1256. package/types/check/index.d.ts.map +1 -0
  1257. package/types/check/island-modules.d.ts +21 -0
  1258. package/types/check/island-modules.d.ts.map +1 -0
  1259. package/types/check/island-only.d.ts +11 -0
  1260. package/types/check/island-only.d.ts.map +1 -0
  1261. package/types/check/large-images.d.ts +5 -0
  1262. package/types/check/large-images.d.ts.map +1 -0
  1263. package/types/check/layout-facts.d.ts +8 -0
  1264. package/types/check/layout-facts.d.ts.map +1 -0
  1265. package/types/check/loaded.d.ts +8 -0
  1266. package/types/check/loaded.d.ts.map +1 -0
  1267. package/types/check/local-state.d.ts +3 -0
  1268. package/types/check/local-state.d.ts.map +1 -0
  1269. package/types/check/loop-index-fix.d.ts +4 -0
  1270. package/types/check/loop-index-fix.d.ts.map +1 -0
  1271. package/types/check/mcp-routes.d.ts +4 -0
  1272. package/types/check/mcp-routes.d.ts.map +1 -0
  1273. package/types/check/messages.d.ts +7 -0
  1274. package/types/check/messages.d.ts.map +1 -0
  1275. package/types/check/missing-imports.d.ts +5 -0
  1276. package/types/check/missing-imports.d.ts.map +1 -0
  1277. package/types/check/open-settings.d.ts +4 -0
  1278. package/types/check/open-settings.d.ts.map +1 -0
  1279. package/types/check/output-schema.d.ts +5 -0
  1280. package/types/check/output-schema.d.ts.map +1 -0
  1281. package/types/check/page-heads.d.ts +5 -0
  1282. package/types/check/page-heads.d.ts.map +1 -0
  1283. package/types/check/page-structure.d.ts +8 -0
  1284. package/types/check/page-structure.d.ts.map +1 -0
  1285. package/types/check/persisted-storage.d.ts +3 -0
  1286. package/types/check/persisted-storage.d.ts.map +1 -0
  1287. package/types/check/project.d.ts +37 -0
  1288. package/types/check/project.d.ts.map +1 -0
  1289. package/types/check/public-env-outside-src.d.ts +3 -0
  1290. package/types/check/public-env-outside-src.d.ts.map +1 -0
  1291. package/types/check/queries.d.ts +4 -0
  1292. package/types/check/queries.d.ts.map +1 -0
  1293. package/types/check/removed-ui-tokens.d.ts +3 -0
  1294. package/types/check/removed-ui-tokens.d.ts.map +1 -0
  1295. package/types/check/renamed-call-options.d.ts +14 -0
  1296. package/types/check/renamed-call-options.d.ts.map +1 -0
  1297. package/types/check/renamed-exports.d.ts +32 -0
  1298. package/types/check/renamed-exports.d.ts.map +1 -0
  1299. package/types/check/renamed-packages.d.ts +5 -0
  1300. package/types/check/renamed-packages.d.ts.map +1 -0
  1301. package/types/check/schema-type.d.ts +3 -0
  1302. package/types/check/schema-type.d.ts.map +1 -0
  1303. package/types/check/seo.d.ts +55 -0
  1304. package/types/check/seo.d.ts.map +1 -0
  1305. package/types/check/server-only-reads.d.ts +5 -0
  1306. package/types/check/server-only-reads.d.ts.map +1 -0
  1307. package/types/check/shadow-types.d.ts +48 -0
  1308. package/types/check/shadow-types.d.ts.map +1 -0
  1309. package/types/check/shadow.d.ts +62 -0
  1310. package/types/check/shadow.d.ts.map +1 -0
  1311. package/types/check/site-seo.d.ts +21 -0
  1312. package/types/check/site-seo.d.ts.map +1 -0
  1313. package/types/check/socket-routes.d.ts +4 -0
  1314. package/types/check/socket-routes.d.ts.map +1 -0
  1315. package/types/check/status-pages.d.ts +4 -0
  1316. package/types/check/status-pages.d.ts.map +1 -0
  1317. package/types/check/template-hints.d.ts +9 -0
  1318. package/types/check/template-hints.d.ts.map +1 -0
  1319. package/types/check/tool-labels.d.ts +3 -0
  1320. package/types/check/tool-labels.d.ts.map +1 -0
  1321. package/types/check/tool-outputs.d.ts +6 -0
  1322. package/types/check/tool-outputs.d.ts.map +1 -0
  1323. package/types/check/tsgo.d.ts +18 -0
  1324. package/types/check/tsgo.d.ts.map +1 -0
  1325. package/types/check/typing-stamp.d.ts +2 -0
  1326. package/types/check/typing-stamp.d.ts.map +1 -0
  1327. package/types/check/ui-tokens.d.ts +16 -0
  1328. package/types/check/ui-tokens.d.ts.map +1 -0
  1329. package/types/check/ui-types.d.ts +3 -0
  1330. package/types/check/ui-types.d.ts.map +1 -0
  1331. package/types/check/ui.d.ts +7 -0
  1332. package/types/check/ui.d.ts.map +1 -0
  1333. package/types/check/unmounted-jobs.d.ts +3 -0
  1334. package/types/check/unmounted-jobs.d.ts.map +1 -0
  1335. package/types/cli.d.ts +3 -0
  1336. package/types/cli.d.ts.map +1 -0
  1337. package/types/commands/a11y.d.ts +3 -0
  1338. package/types/commands/a11y.d.ts.map +1 -0
  1339. package/types/commands/add-peers.d.ts +2 -0
  1340. package/types/commands/add-peers.d.ts.map +1 -0
  1341. package/types/commands/add.d.ts +3 -0
  1342. package/types/commands/add.d.ts.map +1 -0
  1343. package/types/commands/build.d.ts +3 -0
  1344. package/types/commands/build.d.ts.map +1 -0
  1345. package/types/commands/check.d.ts +3 -0
  1346. package/types/commands/check.d.ts.map +1 -0
  1347. package/types/commands/command.d.ts +87 -0
  1348. package/types/commands/command.d.ts.map +1 -0
  1349. package/types/commands/completion.d.ts +5 -0
  1350. package/types/commands/completion.d.ts.map +1 -0
  1351. package/types/commands/dev.d.ts +3 -0
  1352. package/types/commands/dev.d.ts.map +1 -0
  1353. package/types/commands/docs.d.ts +3 -0
  1354. package/types/commands/docs.d.ts.map +1 -0
  1355. package/types/commands/doctor.d.ts +12 -0
  1356. package/types/commands/doctor.d.ts.map +1 -0
  1357. package/types/commands/editor.d.ts +3 -0
  1358. package/types/commands/editor.d.ts.map +1 -0
  1359. package/types/commands/env-compare.d.ts +25 -0
  1360. package/types/commands/env-compare.d.ts.map +1 -0
  1361. package/types/commands/env-declare.d.ts +5 -0
  1362. package/types/commands/env-declare.d.ts.map +1 -0
  1363. package/types/commands/env.d.ts +14 -0
  1364. package/types/commands/env.d.ts.map +1 -0
  1365. package/types/commands/explain-island.d.ts +3 -0
  1366. package/types/commands/explain-island.d.ts.map +1 -0
  1367. package/types/commands/explain.d.ts +3 -0
  1368. package/types/commands/explain.d.ts.map +1 -0
  1369. package/types/commands/extensions.d.ts +17 -0
  1370. package/types/commands/extensions.d.ts.map +1 -0
  1371. package/types/commands/fix-path.d.ts +2 -0
  1372. package/types/commands/fix-path.d.ts.map +1 -0
  1373. package/types/commands/fmt.d.ts +3 -0
  1374. package/types/commands/fmt.d.ts.map +1 -0
  1375. package/types/commands/generate.d.ts +3 -0
  1376. package/types/commands/generate.d.ts.map +1 -0
  1377. package/types/commands/i18n.d.ts +4 -0
  1378. package/types/commands/i18n.d.ts.map +1 -0
  1379. package/types/commands/import-module.d.ts +4 -0
  1380. package/types/commands/import-module.d.ts.map +1 -0
  1381. package/types/commands/lint-cache.d.ts +2 -0
  1382. package/types/commands/lint-cache.d.ts.map +1 -0
  1383. package/types/commands/lint.d.ts +3 -0
  1384. package/types/commands/lint.d.ts.map +1 -0
  1385. package/types/commands/lsp.d.ts +3 -0
  1386. package/types/commands/lsp.d.ts.map +1 -0
  1387. package/types/commands/mcp.d.ts +3 -0
  1388. package/types/commands/mcp.d.ts.map +1 -0
  1389. package/types/commands/migrate.d.ts +3 -0
  1390. package/types/commands/migrate.d.ts.map +1 -0
  1391. package/types/commands/new.d.ts +3 -0
  1392. package/types/commands/new.d.ts.map +1 -0
  1393. package/types/commands/not-found.d.ts +3 -0
  1394. package/types/commands/not-found.d.ts.map +1 -0
  1395. package/types/commands/project-checks.d.ts +4 -0
  1396. package/types/commands/project-checks.d.ts.map +1 -0
  1397. package/types/commands/registry.d.ts +13 -0
  1398. package/types/commands/registry.d.ts.map +1 -0
  1399. package/types/commands/render.d.ts +3 -0
  1400. package/types/commands/render.d.ts.map +1 -0
  1401. package/types/commands/routes.d.ts +18 -0
  1402. package/types/commands/routes.d.ts.map +1 -0
  1403. package/types/commands/screenshot.d.ts +3 -0
  1404. package/types/commands/screenshot.d.ts.map +1 -0
  1405. package/types/commands/start.d.ts +3 -0
  1406. package/types/commands/start.d.ts.map +1 -0
  1407. package/types/commands/test.d.ts +3 -0
  1408. package/types/commands/test.d.ts.map +1 -0
  1409. package/types/commands/types.d.ts +3 -0
  1410. package/types/commands/types.d.ts.map +1 -0
  1411. package/types/commands/upgrade.d.ts +43 -0
  1412. package/types/commands/upgrade.d.ts.map +1 -0
  1413. package/types/compiler/a11y-markup.d.ts +81 -0
  1414. package/types/compiler/a11y-markup.d.ts.map +1 -0
  1415. package/types/compiler/a11y.d.ts +4 -0
  1416. package/types/compiler/a11y.d.ts.map +1 -0
  1417. package/types/compiler/allow-comments.d.ts +20 -0
  1418. package/types/compiler/allow-comments.d.ts.map +1 -0
  1419. package/types/compiler/aria.d.ts +9 -0
  1420. package/types/compiler/aria.d.ts.map +1 -0
  1421. package/types/compiler/ast.d.ts +287 -0
  1422. package/types/compiler/ast.d.ts.map +1 -0
  1423. package/types/compiler/browser.d.ts +23 -0
  1424. package/types/compiler/browser.d.ts.map +1 -0
  1425. package/types/compiler/class-name.d.ts +10 -0
  1426. package/types/compiler/class-name.d.ts.map +1 -0
  1427. package/types/compiler/codegen.d.ts +62 -0
  1428. package/types/compiler/codegen.d.ts.map +1 -0
  1429. package/types/compiler/deprecated-lints.d.ts +67 -0
  1430. package/types/compiler/deprecated-lints.d.ts.map +1 -0
  1431. package/types/compiler/deprecated-script-fence.d.ts +3 -0
  1432. package/types/compiler/deprecated-script-fence.d.ts.map +1 -0
  1433. package/types/compiler/deprecated-ui-props.d.ts +14 -0
  1434. package/types/compiler/deprecated-ui-props.d.ts.map +1 -0
  1435. package/types/compiler/diagnostics.d.ts +16 -0
  1436. package/types/compiler/diagnostics.d.ts.map +1 -0
  1437. package/types/compiler/dom.d.ts +42 -0
  1438. package/types/compiler/dom.d.ts.map +1 -0
  1439. package/types/compiler/each-node.d.ts +3 -0
  1440. package/types/compiler/each-node.d.ts.map +1 -0
  1441. package/types/compiler/else-problem.d.ts +5 -0
  1442. package/types/compiler/else-problem.d.ts.map +1 -0
  1443. package/types/compiler/errors.d.ts +813 -0
  1444. package/types/compiler/errors.d.ts.map +1 -0
  1445. package/types/compiler/estree-shapes.d.ts +17 -0
  1446. package/types/compiler/estree-shapes.d.ts.map +1 -0
  1447. package/types/compiler/estree.d.ts +36 -0
  1448. package/types/compiler/estree.d.ts.map +1 -0
  1449. package/types/compiler/event-modifiers.d.ts +12 -0
  1450. package/types/compiler/event-modifiers.d.ts.map +1 -0
  1451. package/types/compiler/expression.d.ts +8 -0
  1452. package/types/compiler/expression.d.ts.map +1 -0
  1453. package/types/compiler/fence-checks.d.ts +13 -0
  1454. package/types/compiler/fence-checks.d.ts.map +1 -0
  1455. package/types/compiler/fence-nodes.d.ts +6 -0
  1456. package/types/compiler/fence-nodes.d.ts.map +1 -0
  1457. package/types/compiler/fence-redirects.d.ts +4 -0
  1458. package/types/compiler/fence-redirects.d.ts.map +1 -0
  1459. package/types/compiler/field-described.d.ts +6 -0
  1460. package/types/compiler/field-described.d.ts.map +1 -0
  1461. package/types/compiler/fnv-hash.d.ts +2 -0
  1462. package/types/compiler/fnv-hash.d.ts.map +1 -0
  1463. package/types/compiler/format.d.ts +11 -0
  1464. package/types/compiler/format.d.ts.map +1 -0
  1465. package/types/compiler/frame.d.ts +17 -0
  1466. package/types/compiler/frame.d.ts.map +1 -0
  1467. package/types/compiler/globals.d.ts +4 -0
  1468. package/types/compiler/globals.d.ts.map +1 -0
  1469. package/types/compiler/host.browser.d.ts +8 -0
  1470. package/types/compiler/host.browser.d.ts.map +1 -0
  1471. package/types/compiler/host.d.ts +13 -0
  1472. package/types/compiler/host.d.ts.map +1 -0
  1473. package/types/compiler/html.d.ts +49 -0
  1474. package/types/compiler/html.d.ts.map +1 -0
  1475. package/types/compiler/i18n-lints.d.ts +27 -0
  1476. package/types/compiler/i18n-lints.d.ts.map +1 -0
  1477. package/types/compiler/if-alias.d.ts +7 -0
  1478. package/types/compiler/if-alias.d.ts.map +1 -0
  1479. package/types/compiler/import-edits.d.ts +5 -0
  1480. package/types/compiler/import-edits.d.ts.map +1 -0
  1481. package/types/compiler/index.d.ts +62 -0
  1482. package/types/compiler/index.d.ts.map +1 -0
  1483. package/types/compiler/inspect.d.ts +3 -0
  1484. package/types/compiler/inspect.d.ts.map +1 -0
  1485. package/types/compiler/island-arguments.d.ts +13 -0
  1486. package/types/compiler/island-arguments.d.ts.map +1 -0
  1487. package/types/compiler/island-cause.d.ts +14 -0
  1488. package/types/compiler/island-cause.d.ts.map +1 -0
  1489. package/types/compiler/island-marker.d.ts +4 -0
  1490. package/types/compiler/island-marker.d.ts.map +1 -0
  1491. package/types/compiler/items.d.ts +72 -0
  1492. package/types/compiler/items.d.ts.map +1 -0
  1493. package/types/compiler/jsx-class.d.ts +7 -0
  1494. package/types/compiler/jsx-class.d.ts.map +1 -0
  1495. package/types/compiler/jsx-entities.d.ts +2 -0
  1496. package/types/compiler/jsx-entities.d.ts.map +1 -0
  1497. package/types/compiler/jsx.d.ts +49 -0
  1498. package/types/compiler/jsx.d.ts.map +1 -0
  1499. package/types/compiler/kay-exports.d.ts +5 -0
  1500. package/types/compiler/kay-exports.d.ts.map +1 -0
  1501. package/types/compiler/lints.d.ts +894 -0
  1502. package/types/compiler/lints.d.ts.map +1 -0
  1503. package/types/compiler/load-facts.d.ts +11 -0
  1504. package/types/compiler/load-facts.d.ts.map +1 -0
  1505. package/types/compiler/load-plan.d.ts +11 -0
  1506. package/types/compiler/load-plan.d.ts.map +1 -0
  1507. package/types/compiler/loop-lints.d.ts +13 -0
  1508. package/types/compiler/loop-lints.d.ts.map +1 -0
  1509. package/types/compiler/mapping.d.ts +74 -0
  1510. package/types/compiler/mapping.d.ts.map +1 -0
  1511. package/types/compiler/markdown-block.d.ts +42 -0
  1512. package/types/compiler/markdown-block.d.ts.map +1 -0
  1513. package/types/compiler/markup.d.ts +136 -0
  1514. package/types/compiler/markup.d.ts.map +1 -0
  1515. package/types/compiler/minor.d.ts +3 -0
  1516. package/types/compiler/minor.d.ts.map +1 -0
  1517. package/types/compiler/module-signals.d.ts +7 -0
  1518. package/types/compiler/module-signals.d.ts.map +1 -0
  1519. package/types/compiler/names.d.ts +22 -0
  1520. package/types/compiler/names.d.ts.map +1 -0
  1521. package/types/compiler/native-typescript.d.ts +5 -0
  1522. package/types/compiler/native-typescript.d.ts.map +1 -0
  1523. package/types/compiler/nesting.d.ts +3 -0
  1524. package/types/compiler/nesting.d.ts.map +1 -0
  1525. package/types/compiler/object-literal.d.ts +13 -0
  1526. package/types/compiler/object-literal.d.ts.map +1 -0
  1527. package/types/compiler/own-markup.d.ts +4 -0
  1528. package/types/compiler/own-markup.d.ts.map +1 -0
  1529. package/types/compiler/page-settings.d.ts +8 -0
  1530. package/types/compiler/page-settings.d.ts.map +1 -0
  1531. package/types/compiler/parser.d.ts +3 -0
  1532. package/types/compiler/parser.d.ts.map +1 -0
  1533. package/types/compiler/pattern-names.d.ts +4 -0
  1534. package/types/compiler/pattern-names.d.ts.map +1 -0
  1535. package/types/compiler/plan.d.ts +114 -0
  1536. package/types/compiler/plan.d.ts.map +1 -0
  1537. package/types/compiler/public.d.ts +4 -0
  1538. package/types/compiler/public.d.ts.map +1 -0
  1539. package/types/compiler/rewrite-reads.d.ts +61 -0
  1540. package/types/compiler/rewrite-reads.d.ts.map +1 -0
  1541. package/types/compiler/rewrite-scan.d.ts +11 -0
  1542. package/types/compiler/rewrite-scan.d.ts.map +1 -0
  1543. package/types/compiler/rewrite-tags.d.ts +4 -0
  1544. package/types/compiler/rewrite-tags.d.ts.map +1 -0
  1545. package/types/compiler/rewrite-types.d.ts +54 -0
  1546. package/types/compiler/rewrite-types.d.ts.map +1 -0
  1547. package/types/compiler/rewrite.d.ts +3 -0
  1548. package/types/compiler/rewrite.d.ts.map +1 -0
  1549. package/types/compiler/route-lints.d.ts +58 -0
  1550. package/types/compiler/route-lints.d.ts.map +1 -0
  1551. package/types/compiler/scanner.d.ts +12 -0
  1552. package/types/compiler/scanner.d.ts.map +1 -0
  1553. package/types/compiler/scope.d.ts +56 -0
  1554. package/types/compiler/scope.d.ts.map +1 -0
  1555. package/types/compiler/scoped-style.d.ts +28 -0
  1556. package/types/compiler/scoped-style.d.ts.map +1 -0
  1557. package/types/compiler/script-fence.d.ts +5 -0
  1558. package/types/compiler/script-fence.d.ts.map +1 -0
  1559. package/types/compiler/script-props.d.ts +7 -0
  1560. package/types/compiler/script-props.d.ts.map +1 -0
  1561. package/types/compiler/script-recipe.d.ts +15 -0
  1562. package/types/compiler/script-recipe.d.ts.map +1 -0
  1563. package/types/compiler/script-server.d.ts +53 -0
  1564. package/types/compiler/script-server.d.ts.map +1 -0
  1565. package/types/compiler/script-shared.d.ts +70 -0
  1566. package/types/compiler/script-shared.d.ts.map +1 -0
  1567. package/types/compiler/script-split.d.ts +21 -0
  1568. package/types/compiler/script-split.d.ts.map +1 -0
  1569. package/types/compiler/script.d.ts +12 -0
  1570. package/types/compiler/script.d.ts.map +1 -0
  1571. package/types/compiler/serial-awaits.d.ts +13 -0
  1572. package/types/compiler/serial-awaits.d.ts.map +1 -0
  1573. package/types/compiler/status-pages.d.ts +5 -0
  1574. package/types/compiler/status-pages.d.ts.map +1 -0
  1575. package/types/compiler/style-lints.d.ts +3 -0
  1576. package/types/compiler/style-lints.d.ts.map +1 -0
  1577. package/types/compiler/template-reads.d.ts +9 -0
  1578. package/types/compiler/template-reads.d.ts.map +1 -0
  1579. package/types/compiler/template-scopes.d.ts +11 -0
  1580. package/types/compiler/template-scopes.d.ts.map +1 -0
  1581. package/types/compiler/twin.d.ts +3 -0
  1582. package/types/compiler/twin.d.ts.map +1 -0
  1583. package/types/compiler/unowned-effects.d.ts +3 -0
  1584. package/types/compiler/unowned-effects.d.ts.map +1 -0
  1585. package/types/compiler/validate-fixes.d.ts +16 -0
  1586. package/types/compiler/validate-fixes.d.ts.map +1 -0
  1587. package/types/compiler/validate.d.ts +14 -0
  1588. package/types/compiler/validate.d.ts.map +1 -0
  1589. package/types/compiler/walk.d.ts +15 -0
  1590. package/types/compiler/walk.d.ts.map +1 -0
  1591. package/types/config-extensions.d.ts +20 -0
  1592. package/types/config-extensions.d.ts.map +1 -0
  1593. package/types/config-loader.d.ts +10 -0
  1594. package/types/config-loader.d.ts.map +1 -0
  1595. package/types/config-rules.d.ts +27 -0
  1596. package/types/config-rules.d.ts.map +1 -0
  1597. package/types/config-shape.d.ts +8 -0
  1598. package/types/config-shape.d.ts.map +1 -0
  1599. package/types/config.d.ts +402 -0
  1600. package/types/config.d.ts.map +1 -0
  1601. package/types/content/claims.d.ts +26 -0
  1602. package/types/content/claims.d.ts.map +1 -0
  1603. package/types/content/drafts.d.ts +10 -0
  1604. package/types/content/drafts.d.ts.map +1 -0
  1605. package/types/content/edit-entries.d.ts +73 -0
  1606. package/types/content/edit-entries.d.ts.map +1 -0
  1607. package/types/content/edit-fields.d.ts +55 -0
  1608. package/types/content/edit-fields.d.ts.map +1 -0
  1609. package/types/content/edit-registry.d.ts +9 -0
  1610. package/types/content/edit-registry.d.ts.map +1 -0
  1611. package/types/content/edit-shared.d.ts +129 -0
  1612. package/types/content/edit-shared.d.ts.map +1 -0
  1613. package/types/content/edit.d.ts +6 -0
  1614. package/types/content/edit.d.ts.map +1 -0
  1615. package/types/content/entry-head.d.ts +15 -0
  1616. package/types/content/entry-head.d.ts.map +1 -0
  1617. package/types/content/entry-route.d.ts +2 -0
  1618. package/types/content/entry-route.d.ts.map +1 -0
  1619. package/types/content/excerpt.d.ts +7 -0
  1620. package/types/content/excerpt.d.ts.map +1 -0
  1621. package/types/content/feed.d.ts +55 -0
  1622. package/types/content/feed.d.ts.map +1 -0
  1623. package/types/content/heading-id.d.ts +10 -0
  1624. package/types/content/heading-id.d.ts.map +1 -0
  1625. package/types/content/held-back.d.ts +7 -0
  1626. package/types/content/held-back.d.ts.map +1 -0
  1627. package/types/content/humanize.d.ts +2 -0
  1628. package/types/content/humanize.d.ts.map +1 -0
  1629. package/types/content/images.d.ts +23 -0
  1630. package/types/content/images.d.ts.map +1 -0
  1631. package/types/content/index.d.ts +166 -0
  1632. package/types/content/index.d.ts.map +1 -0
  1633. package/types/content/key.d.ts +5 -0
  1634. package/types/content/key.d.ts.map +1 -0
  1635. package/types/content/load.d.ts +93 -0
  1636. package/types/content/load.d.ts.map +1 -0
  1637. package/types/content/markdown-extensions.d.ts +5 -0
  1638. package/types/content/markdown-extensions.d.ts.map +1 -0
  1639. package/types/content/markdown.d.ts +92 -0
  1640. package/types/content/markdown.d.ts.map +1 -0
  1641. package/types/content/migrate.d.ts +25 -0
  1642. package/types/content/migrate.d.ts.map +1 -0
  1643. package/types/content/modified.d.ts +8 -0
  1644. package/types/content/modified.d.ts.map +1 -0
  1645. package/types/content/paginate.d.ts +24 -0
  1646. package/types/content/paginate.d.ts.map +1 -0
  1647. package/types/content/problems.d.ts +2 -0
  1648. package/types/content/problems.d.ts.map +1 -0
  1649. package/types/content/references.d.ts +16 -0
  1650. package/types/content/references.d.ts.map +1 -0
  1651. package/types/content/rewrite.d.ts +14 -0
  1652. package/types/content/rewrite.d.ts.map +1 -0
  1653. package/types/content/server.d.ts +30 -0
  1654. package/types/content/server.d.ts.map +1 -0
  1655. package/types/content/source-draft.d.ts +10 -0
  1656. package/types/content/source-draft.d.ts.map +1 -0
  1657. package/types/content/turns.d.ts +8 -0
  1658. package/types/content/turns.d.ts.map +1 -0
  1659. package/types/content/validate.d.ts +32 -0
  1660. package/types/content/validate.d.ts.map +1 -0
  1661. package/types/dev/address.d.ts +5 -0
  1662. package/types/dev/address.d.ts.map +1 -0
  1663. package/types/dev/base-proxy.d.ts +5 -0
  1664. package/types/dev/base-proxy.d.ts.map +1 -0
  1665. package/types/dev/builder.d.ts +16 -0
  1666. package/types/dev/builder.d.ts.map +1 -0
  1667. package/types/dev/client.d.ts +10 -0
  1668. package/types/dev/client.d.ts.map +1 -0
  1669. package/types/dev/config-record.d.ts +3 -0
  1670. package/types/dev/config-record.d.ts.map +1 -0
  1671. package/types/dev/fingerprint.d.ts +29 -0
  1672. package/types/dev/fingerprint.d.ts.map +1 -0
  1673. package/types/dev/index.d.ts +32 -0
  1674. package/types/dev/index.d.ts.map +1 -0
  1675. package/types/dev/inspector.d.ts +9 -0
  1676. package/types/dev/inspector.d.ts.map +1 -0
  1677. package/types/dev/loopback.d.ts +3 -0
  1678. package/types/dev/loopback.d.ts.map +1 -0
  1679. package/types/dev/pages.d.ts +2 -0
  1680. package/types/dev/pages.d.ts.map +1 -0
  1681. package/types/dev/preload.d.ts +3 -0
  1682. package/types/dev/preload.d.ts.map +1 -0
  1683. package/types/dev/refuse.d.ts +20 -0
  1684. package/types/dev/refuse.d.ts.map +1 -0
  1685. package/types/dev/reload.d.ts +20 -0
  1686. package/types/dev/reload.d.ts.map +1 -0
  1687. package/types/dev/render-server.d.ts +18 -0
  1688. package/types/dev/render-server.d.ts.map +1 -0
  1689. package/types/dev/render-socket.d.ts +2 -0
  1690. package/types/dev/render-socket.d.ts.map +1 -0
  1691. package/types/dev/screenshot-diff.d.ts +13 -0
  1692. package/types/dev/screenshot-diff.d.ts.map +1 -0
  1693. package/types/dev/screenshot-limits.d.ts +8 -0
  1694. package/types/dev/screenshot-limits.d.ts.map +1 -0
  1695. package/types/dev/screenshot.d.ts +62 -0
  1696. package/types/dev/screenshot.d.ts.map +1 -0
  1697. package/types/dev/session/client.d.ts +37 -0
  1698. package/types/dev/session/client.d.ts.map +1 -0
  1699. package/types/dev/session/keys.d.ts +8 -0
  1700. package/types/dev/session/keys.d.ts.map +1 -0
  1701. package/types/dev/session/ports.d.ts +18 -0
  1702. package/types/dev/session/ports.d.ts.map +1 -0
  1703. package/types/dev/session/queue.d.ts +30 -0
  1704. package/types/dev/session/queue.d.ts.map +1 -0
  1705. package/types/dev/session/report.d.ts +30 -0
  1706. package/types/dev/session/report.d.ts.map +1 -0
  1707. package/types/dev/session/servers.d.ts +73 -0
  1708. package/types/dev/session/servers.d.ts.map +1 -0
  1709. package/types/dev/session/types.d.ts +51 -0
  1710. package/types/dev/session/types.d.ts.map +1 -0
  1711. package/types/dev/sources.d.ts +14 -0
  1712. package/types/dev/sources.d.ts.map +1 -0
  1713. package/types/dev/tailwind.d.ts +5 -0
  1714. package/types/dev/tailwind.d.ts.map +1 -0
  1715. package/types/dev/types-process.d.ts +27 -0
  1716. package/types/dev/types-process.d.ts.map +1 -0
  1717. package/types/dev/types.d.ts +2 -0
  1718. package/types/dev/types.d.ts.map +1 -0
  1719. package/types/docs-props.d.ts +10 -0
  1720. package/types/docs-props.d.ts.map +1 -0
  1721. package/types/docs-search.d.ts +40 -0
  1722. package/types/docs-search.d.ts.map +1 -0
  1723. package/types/editors.d.ts +30 -0
  1724. package/types/editors.d.ts.map +1 -0
  1725. package/types/entities.d.ts +2 -0
  1726. package/types/entities.d.ts.map +1 -0
  1727. package/types/eslint/index.d.ts +51 -0
  1728. package/types/eslint/index.d.ts.map +1 -0
  1729. package/types/features.d.ts +10 -0
  1730. package/types/features.d.ts.map +1 -0
  1731. package/types/format/index.d.ts +16 -0
  1732. package/types/format/index.d.ts.map +1 -0
  1733. package/types/format/tailwind.d.ts +15 -0
  1734. package/types/format/tailwind.d.ts.map +1 -0
  1735. package/types/generate-resource.d.ts +27 -0
  1736. package/types/generate-resource.d.ts.map +1 -0
  1737. package/types/generate.d.ts +17 -0
  1738. package/types/generate.d.ts.map +1 -0
  1739. package/types/imports.d.ts +2 -0
  1740. package/types/imports.d.ts.map +1 -0
  1741. package/types/input-types.d.ts +2 -0
  1742. package/types/input-types.d.ts.map +1 -0
  1743. package/types/keyword-attributes.d.ts +6 -0
  1744. package/types/keyword-attributes.d.ts.map +1 -0
  1745. package/types/lsp/bridge.d.ts +14 -0
  1746. package/types/lsp/bridge.d.ts.map +1 -0
  1747. package/types/lsp/code-actions.d.ts +7 -0
  1748. package/types/lsp/code-actions.d.ts.map +1 -0
  1749. package/types/lsp/completions.d.ts +20 -0
  1750. package/types/lsp/completions.d.ts.map +1 -0
  1751. package/types/lsp/component-props.d.ts +10 -0
  1752. package/types/lsp/component-props.d.ts.map +1 -0
  1753. package/types/lsp/diagnostics.d.ts +25 -0
  1754. package/types/lsp/diagnostics.d.ts.map +1 -0
  1755. package/types/lsp/document-links.d.ts +7 -0
  1756. package/types/lsp/document-links.d.ts.map +1 -0
  1757. package/types/lsp/host.d.ts +72 -0
  1758. package/types/lsp/host.d.ts.map +1 -0
  1759. package/types/lsp/island-lens.d.ts +14 -0
  1760. package/types/lsp/island-lens.d.ts.map +1 -0
  1761. package/types/lsp/mapping.d.ts +25 -0
  1762. package/types/lsp/mapping.d.ts.map +1 -0
  1763. package/types/lsp/navigation.d.ts +29 -0
  1764. package/types/lsp/navigation.d.ts.map +1 -0
  1765. package/types/lsp/outline.d.ts +4 -0
  1766. package/types/lsp/outline.d.ts.map +1 -0
  1767. package/types/lsp/positions.d.ts +4 -0
  1768. package/types/lsp/positions.d.ts.map +1 -0
  1769. package/types/lsp/project-checks.d.ts +20 -0
  1770. package/types/lsp/project-checks.d.ts.map +1 -0
  1771. package/types/lsp/protocol.d.ts +172 -0
  1772. package/types/lsp/protocol.d.ts.map +1 -0
  1773. package/types/lsp/range-format.d.ts +7 -0
  1774. package/types/lsp/range-format.d.ts.map +1 -0
  1775. package/types/lsp/rename.d.ts +13 -0
  1776. package/types/lsp/rename.d.ts.map +1 -0
  1777. package/types/lsp/renames.d.ts +9 -0
  1778. package/types/lsp/renames.d.ts.map +1 -0
  1779. package/types/lsp/route-links.d.ts +9 -0
  1780. package/types/lsp/route-links.d.ts.map +1 -0
  1781. package/types/lsp/rpc.d.ts +40 -0
  1782. package/types/lsp/rpc.d.ts.map +1 -0
  1783. package/types/lsp/semantic-tokens.d.ts +6 -0
  1784. package/types/lsp/semantic-tokens.d.ts.map +1 -0
  1785. package/types/lsp/server.d.ts +58 -0
  1786. package/types/lsp/server.d.ts.map +1 -0
  1787. package/types/lsp/template-completion.d.ts +54 -0
  1788. package/types/lsp/template-completion.d.ts.map +1 -0
  1789. package/types/lsp/ui-completion.d.ts +19 -0
  1790. package/types/lsp/ui-completion.d.ts.map +1 -0
  1791. package/types/mcp/guards.d.ts +6 -0
  1792. package/types/mcp/guards.d.ts.map +1 -0
  1793. package/types/mcp/install.d.ts +2 -0
  1794. package/types/mcp/install.d.ts.map +1 -0
  1795. package/types/mcp/protocol.d.ts +88 -0
  1796. package/types/mcp/protocol.d.ts.map +1 -0
  1797. package/types/mcp/tools.d.ts +9 -0
  1798. package/types/mcp/tools.d.ts.map +1 -0
  1799. package/types/migrate/astro.d.ts +27 -0
  1800. package/types/migrate/astro.d.ts.map +1 -0
  1801. package/types/migrate/content.d.ts +3 -0
  1802. package/types/migrate/content.d.ts.map +1 -0
  1803. package/types/migrate/html.d.ts +7 -0
  1804. package/types/migrate/html.d.ts.map +1 -0
  1805. package/types/migrate/markup.d.ts +25 -0
  1806. package/types/migrate/markup.d.ts.map +1 -0
  1807. package/types/migrate/project.d.ts +17 -0
  1808. package/types/migrate/project.d.ts.map +1 -0
  1809. package/types/native-plugins.d.ts +2 -0
  1810. package/types/native-plugins.d.ts.map +1 -0
  1811. package/types/nearest.d.ts +2 -0
  1812. package/types/nearest.d.ts.map +1 -0
  1813. package/types/new.d.ts +34 -0
  1814. package/types/new.d.ts.map +1 -0
  1815. package/types/package-names.d.ts +6 -0
  1816. package/types/package-names.d.ts.map +1 -0
  1817. package/types/peers.d.ts +14 -0
  1818. package/types/peers.d.ts.map +1 -0
  1819. package/types/project.d.ts +63 -0
  1820. package/types/project.d.ts.map +1 -0
  1821. package/types/runtime/action-call.d.ts +11 -0
  1822. package/types/runtime/action-call.d.ts.map +1 -0
  1823. package/types/runtime/action-encode.d.ts +10 -0
  1824. package/types/runtime/action-encode.d.ts.map +1 -0
  1825. package/types/runtime/action-error.d.ts +16 -0
  1826. package/types/runtime/action-error.d.ts.map +1 -0
  1827. package/types/runtime/action-form.d.ts +29 -0
  1828. package/types/runtime/action-form.d.ts.map +1 -0
  1829. package/types/runtime/action-marks.d.ts +5 -0
  1830. package/types/runtime/action-marks.d.ts.map +1 -0
  1831. package/types/runtime/action-navigate.d.ts +6 -0
  1832. package/types/runtime/action-navigate.d.ts.map +1 -0
  1833. package/types/runtime/action-owner.d.ts +15 -0
  1834. package/types/runtime/action-owner.d.ts.map +1 -0
  1835. package/types/runtime/action-post.d.ts +8 -0
  1836. package/types/runtime/action-post.d.ts.map +1 -0
  1837. package/types/runtime/action-protection.d.ts +15 -0
  1838. package/types/runtime/action-protection.d.ts.map +1 -0
  1839. package/types/runtime/action-revive.d.ts +3 -0
  1840. package/types/runtime/action-revive.d.ts.map +1 -0
  1841. package/types/runtime/action-reviver.d.ts +2 -0
  1842. package/types/runtime/action-reviver.d.ts.map +1 -0
  1843. package/types/runtime/action-shared.d.ts +288 -0
  1844. package/types/runtime/action-shared.d.ts.map +1 -0
  1845. package/types/runtime/action-stream.d.ts +8 -0
  1846. package/types/runtime/action-stream.d.ts.map +1 -0
  1847. package/types/runtime/action.d.ts +29 -0
  1848. package/types/runtime/action.d.ts.map +1 -0
  1849. package/types/runtime/analytics.client.d.ts +3 -0
  1850. package/types/runtime/analytics.client.d.ts.map +1 -0
  1851. package/types/runtime/announce.d.ts +2 -0
  1852. package/types/runtime/announce.d.ts.map +1 -0
  1853. package/types/runtime/api-error-class.d.ts +9 -0
  1854. package/types/runtime/api-error-class.d.ts.map +1 -0
  1855. package/types/runtime/api-error.d.ts +17 -0
  1856. package/types/runtime/api-error.d.ts.map +1 -0
  1857. package/types/runtime/api-url.d.ts +24 -0
  1858. package/types/runtime/api-url.d.ts.map +1 -0
  1859. package/types/runtime/arrival.d.ts +5 -0
  1860. package/types/runtime/arrival.d.ts.map +1 -0
  1861. package/types/runtime/await.d.ts +4 -0
  1862. package/types/runtime/await.d.ts.map +1 -0
  1863. package/types/runtime/await.server.d.ts +26 -0
  1864. package/types/runtime/await.server.d.ts.map +1 -0
  1865. package/types/runtime/base.d.ts +12 -0
  1866. package/types/runtime/base.d.ts.map +1 -0
  1867. package/types/runtime/build.d.ts +2 -0
  1868. package/types/runtime/build.d.ts.map +1 -0
  1869. package/types/runtime/byte-count.d.ts +3 -0
  1870. package/types/runtime/byte-count.d.ts.map +1 -0
  1871. package/types/runtime/byte-size.d.ts +4 -0
  1872. package/types/runtime/byte-size.d.ts.map +1 -0
  1873. package/types/runtime/cache-live-id.d.ts +2 -0
  1874. package/types/runtime/cache-live-id.d.ts.map +1 -0
  1875. package/types/runtime/cache.d.ts +87 -0
  1876. package/types/runtime/cache.d.ts.map +1 -0
  1877. package/types/runtime/cache.server.d.ts +10 -0
  1878. package/types/runtime/cache.server.d.ts.map +1 -0
  1879. package/types/runtime/call-body.d.ts +6 -0
  1880. package/types/runtime/call-body.d.ts.map +1 -0
  1881. package/types/runtime/call-result.d.ts +41 -0
  1882. package/types/runtime/call-result.d.ts.map +1 -0
  1883. package/types/runtime/checks.d.ts +287 -0
  1884. package/types/runtime/checks.d.ts.map +1 -0
  1885. package/types/runtime/claimed.d.ts +3 -0
  1886. package/types/runtime/claimed.d.ts.map +1 -0
  1887. package/types/runtime/class-table.d.ts +7 -0
  1888. package/types/runtime/class-table.d.ts.map +1 -0
  1889. package/types/runtime/client.d.ts +15 -0
  1890. package/types/runtime/client.d.ts.map +1 -0
  1891. package/types/runtime/connection.d.ts +40 -0
  1892. package/types/runtime/connection.d.ts.map +1 -0
  1893. package/types/runtime/consent.d.ts +5 -0
  1894. package/types/runtime/consent.d.ts.map +1 -0
  1895. package/types/runtime/core.d.ts +172 -0
  1896. package/types/runtime/core.d.ts.map +1 -0
  1897. package/types/runtime/counters.d.ts +26 -0
  1898. package/types/runtime/counters.d.ts.map +1 -0
  1899. package/types/runtime/described.d.ts +9 -0
  1900. package/types/runtime/described.d.ts.map +1 -0
  1901. package/types/runtime/dev-a11y.d.ts +16 -0
  1902. package/types/runtime/dev-a11y.d.ts.map +1 -0
  1903. package/types/runtime/dev-boot.d.ts +14 -0
  1904. package/types/runtime/dev-boot.d.ts.map +1 -0
  1905. package/types/runtime/dev-inspector.d.ts +9 -0
  1906. package/types/runtime/dev-inspector.d.ts.map +1 -0
  1907. package/types/runtime/dev-patch.d.ts +2 -0
  1908. package/types/runtime/dev-patch.d.ts.map +1 -0
  1909. package/types/runtime/dev-refresh.d.ts +2 -0
  1910. package/types/runtime/dev-refresh.d.ts.map +1 -0
  1911. package/types/runtime/dev-styles.d.ts +3 -0
  1912. package/types/runtime/dev-styles.d.ts.map +1 -0
  1913. package/types/runtime/dev-tab-data.d.ts +3 -0
  1914. package/types/runtime/dev-tab-data.d.ts.map +1 -0
  1915. package/types/runtime/dev-tab-env.d.ts +3 -0
  1916. package/types/runtime/dev-tab-env.d.ts.map +1 -0
  1917. package/types/runtime/dev-tab-head.d.ts +3 -0
  1918. package/types/runtime/dev-tab-head.d.ts.map +1 -0
  1919. package/types/runtime/dev-tab-i18n.d.ts +3 -0
  1920. package/types/runtime/dev-tab-i18n.d.ts.map +1 -0
  1921. package/types/runtime/dev-tab-images.d.ts +3 -0
  1922. package/types/runtime/dev-tab-images.d.ts.map +1 -0
  1923. package/types/runtime/dev-tab-jobs.d.ts +3 -0
  1924. package/types/runtime/dev-tab-jobs.d.ts.map +1 -0
  1925. package/types/runtime/dev-tab-network.d.ts +3 -0
  1926. package/types/runtime/dev-tab-network.d.ts.map +1 -0
  1927. package/types/runtime/dev-tab-not-found.d.ts +3 -0
  1928. package/types/runtime/dev-tab-not-found.d.ts.map +1 -0
  1929. package/types/runtime/dev-tab-performance.d.ts +3 -0
  1930. package/types/runtime/dev-tab-performance.d.ts.map +1 -0
  1931. package/types/runtime/dev-tab-reading.d.ts +23 -0
  1932. package/types/runtime/dev-tab-reading.d.ts.map +1 -0
  1933. package/types/runtime/dev-tab-routes.d.ts +3 -0
  1934. package/types/runtime/dev-tab-routes.d.ts.map +1 -0
  1935. package/types/runtime/dev-tab-styles.d.ts +3 -0
  1936. package/types/runtime/dev-tab-styles.d.ts.map +1 -0
  1937. package/types/runtime/dev-tool-constants.d.ts +19 -0
  1938. package/types/runtime/dev-tool-constants.d.ts.map +1 -0
  1939. package/types/runtime/dev-tool-icons.d.ts +48 -0
  1940. package/types/runtime/dev-tool-icons.d.ts.map +1 -0
  1941. package/types/runtime/dev-tool-keys.d.ts +16 -0
  1942. package/types/runtime/dev-tool-keys.d.ts.map +1 -0
  1943. package/types/runtime/dev-tool-kit.d.ts +8 -0
  1944. package/types/runtime/dev-tool-kit.d.ts.map +1 -0
  1945. package/types/runtime/dev-tool-layout.d.ts +49 -0
  1946. package/types/runtime/dev-tool-layout.d.ts.map +1 -0
  1947. package/types/runtime/dev-tool-markdown.d.ts +2 -0
  1948. package/types/runtime/dev-tool-markdown.d.ts.map +1 -0
  1949. package/types/runtime/dev-tool-outline.d.ts +3 -0
  1950. package/types/runtime/dev-tool-outline.d.ts.map +1 -0
  1951. package/types/runtime/dev-tool-parts.d.ts +38 -0
  1952. package/types/runtime/dev-tool-parts.d.ts.map +1 -0
  1953. package/types/runtime/dev-tool-problems.d.ts +14 -0
  1954. package/types/runtime/dev-tool-problems.d.ts.map +1 -0
  1955. package/types/runtime/dev-tool-request.d.ts +5 -0
  1956. package/types/runtime/dev-tool-request.d.ts.map +1 -0
  1957. package/types/runtime/dev-tool-shell.d.ts +25 -0
  1958. package/types/runtime/dev-tool-shell.d.ts.map +1 -0
  1959. package/types/runtime/dev-tool-style.d.ts +2 -0
  1960. package/types/runtime/dev-tool-style.d.ts.map +1 -0
  1961. package/types/runtime/dev-tool-swaps.d.ts +10 -0
  1962. package/types/runtime/dev-tool-swaps.d.ts.map +1 -0
  1963. package/types/runtime/dev-tool-tab-order.d.ts +17 -0
  1964. package/types/runtime/dev-tool-tab-order.d.ts.map +1 -0
  1965. package/types/runtime/dev-tool-tabs.d.ts +24 -0
  1966. package/types/runtime/dev-tool-tabs.d.ts.map +1 -0
  1967. package/types/runtime/dev-tool-vitals.d.ts +13 -0
  1968. package/types/runtime/dev-tool-vitals.d.ts.map +1 -0
  1969. package/types/runtime/dev-tool-window.d.ts +18 -0
  1970. package/types/runtime/dev-tool-window.d.ts.map +1 -0
  1971. package/types/runtime/dev-tool.d.ts +75 -0
  1972. package/types/runtime/dev-tool.d.ts.map +1 -0
  1973. package/types/runtime/dev-tool.public.d.ts +4 -0
  1974. package/types/runtime/dev-tool.public.d.ts.map +1 -0
  1975. package/types/runtime/dom-await.d.ts +2 -0
  1976. package/types/runtime/dom-await.d.ts.map +1 -0
  1977. package/types/runtime/dom-image.d.ts +2 -0
  1978. package/types/runtime/dom-image.d.ts.map +1 -0
  1979. package/types/runtime/dom-loop.d.ts +3 -0
  1980. package/types/runtime/dom-loop.d.ts.map +1 -0
  1981. package/types/runtime/dom-spread.d.ts +3 -0
  1982. package/types/runtime/dom-spread.d.ts.map +1 -0
  1983. package/types/runtime/dom-try.d.ts +2 -0
  1984. package/types/runtime/dom-try.d.ts.map +1 -0
  1985. package/types/runtime/dom.d.ts +87 -0
  1986. package/types/runtime/dom.d.ts.map +1 -0
  1987. package/types/runtime/draft-issues.d.ts +19 -0
  1988. package/types/runtime/draft-issues.d.ts.map +1 -0
  1989. package/types/runtime/duration-words.d.ts +3 -0
  1990. package/types/runtime/duration-words.d.ts.map +1 -0
  1991. package/types/runtime/duration.d.ts +16 -0
  1992. package/types/runtime/duration.d.ts.map +1 -0
  1993. package/types/runtime/edit.d.ts +25 -0
  1994. package/types/runtime/edit.d.ts.map +1 -0
  1995. package/types/runtime/element-size.d.ts +7 -0
  1996. package/types/runtime/element-size.d.ts.map +1 -0
  1997. package/types/runtime/email.d.ts +3 -0
  1998. package/types/runtime/email.d.ts.map +1 -0
  1999. package/types/runtime/ended-entry.d.ts +3 -0
  2000. package/types/runtime/ended-entry.d.ts.map +1 -0
  2001. package/types/runtime/env.d.ts +26 -0
  2002. package/types/runtime/env.d.ts.map +1 -0
  2003. package/types/runtime/escape.d.ts +6 -0
  2004. package/types/runtime/escape.d.ts.map +1 -0
  2005. package/types/runtime/fetch-island.d.ts +6 -0
  2006. package/types/runtime/fetch-island.d.ts.map +1 -0
  2007. package/types/runtime/fields.d.ts +58 -0
  2008. package/types/runtime/fields.d.ts.map +1 -0
  2009. package/types/runtime/fills.d.ts +12 -0
  2010. package/types/runtime/fills.d.ts.map +1 -0
  2011. package/types/runtime/focus.d.ts +2 -0
  2012. package/types/runtime/focus.d.ts.map +1 -0
  2013. package/types/runtime/follow-log.d.ts +11 -0
  2014. package/types/runtime/follow-log.d.ts.map +1 -0
  2015. package/types/runtime/form-controls.d.ts +2 -0
  2016. package/types/runtime/form-controls.d.ts.map +1 -0
  2017. package/types/runtime/form-hold.d.ts +7 -0
  2018. package/types/runtime/form-hold.d.ts.map +1 -0
  2019. package/types/runtime/form-protect.d.ts +2 -0
  2020. package/types/runtime/form-protect.d.ts.map +1 -0
  2021. package/types/runtime/form-submits.d.ts +9 -0
  2022. package/types/runtime/form-submits.d.ts.map +1 -0
  2023. package/types/runtime/form.d.ts +19 -0
  2024. package/types/runtime/form.d.ts.map +1 -0
  2025. package/types/runtime/forms.d.ts +4 -0
  2026. package/types/runtime/forms.d.ts.map +1 -0
  2027. package/types/runtime/french.d.ts +6 -0
  2028. package/types/runtime/french.d.ts.map +1 -0
  2029. package/types/runtime/head.d.ts +40 -0
  2030. package/types/runtime/head.d.ts.map +1 -0
  2031. package/types/runtime/html.d.ts +70 -0
  2032. package/types/runtime/html.d.ts.map +1 -0
  2033. package/types/runtime/hydrate-when.d.ts +5 -0
  2034. package/types/runtime/hydrate-when.d.ts.map +1 -0
  2035. package/types/runtime/i18n-links.d.ts +9 -0
  2036. package/types/runtime/i18n-links.d.ts.map +1 -0
  2037. package/types/runtime/i18n.client.d.ts +21 -0
  2038. package/types/runtime/i18n.client.d.ts.map +1 -0
  2039. package/types/runtime/i18n.d.ts +112 -0
  2040. package/types/runtime/i18n.d.ts.map +1 -0
  2041. package/types/runtime/i18n.server.d.ts +20 -0
  2042. package/types/runtime/i18n.server.d.ts.map +1 -0
  2043. package/types/runtime/icons.d.ts +30 -0
  2044. package/types/runtime/icons.d.ts.map +1 -0
  2045. package/types/runtime/image.d.ts +103 -0
  2046. package/types/runtime/image.d.ts.map +1 -0
  2047. package/types/runtime/image.public.d.ts +3 -0
  2048. package/types/runtime/image.public.d.ts.map +1 -0
  2049. package/types/runtime/in-view.d.ts +12 -0
  2050. package/types/runtime/in-view.d.ts.map +1 -0
  2051. package/types/runtime/index.d.ts +84 -0
  2052. package/types/runtime/index.d.ts.map +1 -0
  2053. package/types/runtime/install-prompt.d.ts +17 -0
  2054. package/types/runtime/install-prompt.d.ts.map +1 -0
  2055. package/types/runtime/internal.d.ts +19 -0
  2056. package/types/runtime/internal.d.ts.map +1 -0
  2057. package/types/runtime/invalid.d.ts +3 -0
  2058. package/types/runtime/invalid.d.ts.map +1 -0
  2059. package/types/runtime/island-request.d.ts +3 -0
  2060. package/types/runtime/island-request.d.ts.map +1 -0
  2061. package/types/runtime/island.client.d.ts +4 -0
  2062. package/types/runtime/island.client.d.ts.map +1 -0
  2063. package/types/runtime/island.server.d.ts +32 -0
  2064. package/types/runtime/island.server.d.ts.map +1 -0
  2065. package/types/runtime/jsx-runtime.d.ts +2 -0
  2066. package/types/runtime/jsx-runtime.d.ts.map +1 -0
  2067. package/types/runtime/jsx.d.ts +286 -0
  2068. package/types/runtime/jsx.d.ts.map +1 -0
  2069. package/types/runtime/keepalive.d.ts +4 -0
  2070. package/types/runtime/keepalive.d.ts.map +1 -0
  2071. package/types/runtime/lasting.d.ts +2 -0
  2072. package/types/runtime/lasting.d.ts.map +1 -0
  2073. package/types/runtime/leave.d.ts +6 -0
  2074. package/types/runtime/leave.d.ts.map +1 -0
  2075. package/types/runtime/listen-with.d.ts +2 -0
  2076. package/types/runtime/listen-with.d.ts.map +1 -0
  2077. package/types/runtime/listener-set.d.ts +5 -0
  2078. package/types/runtime/listener-set.d.ts.map +1 -0
  2079. package/types/runtime/live-cache.d.ts +4 -0
  2080. package/types/runtime/live-cache.d.ts.map +1 -0
  2081. package/types/runtime/live-props.d.ts +2 -0
  2082. package/types/runtime/live-props.d.ts.map +1 -0
  2083. package/types/runtime/live-resource.server.d.ts +13 -0
  2084. package/types/runtime/live-resource.server.d.ts.map +1 -0
  2085. package/types/runtime/live-value.client.d.ts +8 -0
  2086. package/types/runtime/live-value.client.d.ts.map +1 -0
  2087. package/types/runtime/live-value.d.ts +13 -0
  2088. package/types/runtime/live-value.d.ts.map +1 -0
  2089. package/types/runtime/live-value.server.d.ts +30 -0
  2090. package/types/runtime/live-value.server.d.ts.map +1 -0
  2091. package/types/runtime/live-value.shared.d.ts +61 -0
  2092. package/types/runtime/live-value.shared.d.ts.map +1 -0
  2093. package/types/runtime/live.d.ts +292 -0
  2094. package/types/runtime/live.d.ts.map +1 -0
  2095. package/types/runtime/load-scope.d.ts +9 -0
  2096. package/types/runtime/load-scope.d.ts.map +1 -0
  2097. package/types/runtime/local-status.d.ts +4 -0
  2098. package/types/runtime/local-status.d.ts.map +1 -0
  2099. package/types/runtime/local.d.ts +75 -0
  2100. package/types/runtime/local.d.ts.map +1 -0
  2101. package/types/runtime/locale-state.d.ts +18 -0
  2102. package/types/runtime/locale-state.d.ts.map +1 -0
  2103. package/types/runtime/localized.d.ts +4 -0
  2104. package/types/runtime/localized.d.ts.map +1 -0
  2105. package/types/runtime/log.d.ts +8 -0
  2106. package/types/runtime/log.d.ts.map +1 -0
  2107. package/types/runtime/markdown-render.client.d.ts +3 -0
  2108. package/types/runtime/markdown-render.client.d.ts.map +1 -0
  2109. package/types/runtime/markdown-task.d.ts +2 -0
  2110. package/types/runtime/markdown-task.d.ts.map +1 -0
  2111. package/types/runtime/markdown.client.d.ts +6 -0
  2112. package/types/runtime/markdown.client.d.ts.map +1 -0
  2113. package/types/runtime/markdown.d.ts +8 -0
  2114. package/types/runtime/markdown.d.ts.map +1 -0
  2115. package/types/runtime/markdown.server.d.ts +6 -0
  2116. package/types/runtime/markdown.server.d.ts.map +1 -0
  2117. package/types/runtime/markers.d.ts +14 -0
  2118. package/types/runtime/markers.d.ts.map +1 -0
  2119. package/types/runtime/media-query.d.ts +3 -0
  2120. package/types/runtime/media-query.d.ts.map +1 -0
  2121. package/types/runtime/mount.d.ts +9 -0
  2122. package/types/runtime/mount.d.ts.map +1 -0
  2123. package/types/runtime/move.d.ts +3 -0
  2124. package/types/runtime/move.d.ts.map +1 -0
  2125. package/types/runtime/navigate-api.d.ts +18 -0
  2126. package/types/runtime/navigate-api.d.ts.map +1 -0
  2127. package/types/runtime/navigate.d.ts +10 -0
  2128. package/types/runtime/navigate.d.ts.map +1 -0
  2129. package/types/runtime/navigation-entry.d.ts +2 -0
  2130. package/types/runtime/navigation-entry.d.ts.map +1 -0
  2131. package/types/runtime/navigation-state.d.ts +19 -0
  2132. package/types/runtime/navigation-state.d.ts.map +1 -0
  2133. package/types/runtime/navigation.d.ts +86 -0
  2134. package/types/runtime/navigation.d.ts.map +1 -0
  2135. package/types/runtime/online.d.ts +2 -0
  2136. package/types/runtime/online.d.ts.map +1 -0
  2137. package/types/runtime/optimistic.d.ts +7 -0
  2138. package/types/runtime/optimistic.d.ts.map +1 -0
  2139. package/types/runtime/outside.d.ts +8 -0
  2140. package/types/runtime/outside.d.ts.map +1 -0
  2141. package/types/runtime/page-data.d.ts +3 -0
  2142. package/types/runtime/page-data.d.ts.map +1 -0
  2143. package/types/runtime/page-errors.d.ts +2 -0
  2144. package/types/runtime/page-errors.d.ts.map +1 -0
  2145. package/types/runtime/page-swap.d.ts +8 -0
  2146. package/types/runtime/page-swap.d.ts.map +1 -0
  2147. package/types/runtime/page-title.d.ts +2 -0
  2148. package/types/runtime/page-title.d.ts.map +1 -0
  2149. package/types/runtime/params.d.ts +4 -0
  2150. package/types/runtime/params.d.ts.map +1 -0
  2151. package/types/runtime/pending.d.ts +5 -0
  2152. package/types/runtime/pending.d.ts.map +1 -0
  2153. package/types/runtime/persist.d.ts +25 -0
  2154. package/types/runtime/persist.d.ts.map +1 -0
  2155. package/types/runtime/persisted.d.ts +71 -0
  2156. package/types/runtime/persisted.d.ts.map +1 -0
  2157. package/types/runtime/placeholder.d.ts +5 -0
  2158. package/types/runtime/placeholder.d.ts.map +1 -0
  2159. package/types/runtime/poll-backoff.d.ts +16 -0
  2160. package/types/runtime/poll-backoff.d.ts.map +1 -0
  2161. package/types/runtime/prefetch.d.ts +3 -0
  2162. package/types/runtime/prefetch.d.ts.map +1 -0
  2163. package/types/runtime/presence.d.ts +13 -0
  2164. package/types/runtime/presence.d.ts.map +1 -0
  2165. package/types/runtime/preview.d.ts +26 -0
  2166. package/types/runtime/preview.d.ts.map +1 -0
  2167. package/types/runtime/push.d.ts +19 -0
  2168. package/types/runtime/push.d.ts.map +1 -0
  2169. package/types/runtime/query-param.d.ts +14 -0
  2170. package/types/runtime/query-param.d.ts.map +1 -0
  2171. package/types/runtime/queue-jobs.d.ts +16 -0
  2172. package/types/runtime/queue-jobs.d.ts.map +1 -0
  2173. package/types/runtime/random-id.d.ts +2 -0
  2174. package/types/runtime/random-id.d.ts.map +1 -0
  2175. package/types/runtime/reactive-collections.d.ts +3 -0
  2176. package/types/runtime/reactive-collections.d.ts.map +1 -0
  2177. package/types/runtime/reactive.d.ts +112 -0
  2178. package/types/runtime/reactive.d.ts.map +1 -0
  2179. package/types/runtime/recipe.d.ts +34 -0
  2180. package/types/runtime/recipe.d.ts.map +1 -0
  2181. package/types/runtime/refetch-island.d.ts +2 -0
  2182. package/types/runtime/refetch-island.d.ts.map +1 -0
  2183. package/types/runtime/refuse.d.ts +18 -0
  2184. package/types/runtime/refuse.d.ts.map +1 -0
  2185. package/types/runtime/rendered.d.ts +9 -0
  2186. package/types/runtime/rendered.d.ts.map +1 -0
  2187. package/types/runtime/report-error.d.ts +2 -0
  2188. package/types/runtime/report-error.d.ts.map +1 -0
  2189. package/types/runtime/retry-later.d.ts +2 -0
  2190. package/types/runtime/retry-later.d.ts.map +1 -0
  2191. package/types/runtime/reveal.d.ts +2 -0
  2192. package/types/runtime/reveal.d.ts.map +1 -0
  2193. package/types/runtime/root.d.ts +3 -0
  2194. package/types/runtime/root.d.ts.map +1 -0
  2195. package/types/runtime/route.d.ts +19 -0
  2196. package/types/runtime/route.d.ts.map +1 -0
  2197. package/types/runtime/safe-code.d.ts +2 -0
  2198. package/types/runtime/safe-code.d.ts.map +1 -0
  2199. package/types/runtime/safe-html.d.ts +7 -0
  2200. package/types/runtime/safe-html.d.ts.map +1 -0
  2201. package/types/runtime/sanitize.d.ts +15 -0
  2202. package/types/runtime/sanitize.d.ts.map +1 -0
  2203. package/types/runtime/save-data.d.ts +2 -0
  2204. package/types/runtime/save-data.d.ts.map +1 -0
  2205. package/types/runtime/schema-bounds.d.ts +4 -0
  2206. package/types/runtime/schema-bounds.d.ts.map +1 -0
  2207. package/types/runtime/schema.client.d.ts +3 -0
  2208. package/types/runtime/schema.client.d.ts.map +1 -0
  2209. package/types/runtime/schema.d.ts +32 -0
  2210. package/types/runtime/schema.d.ts.map +1 -0
  2211. package/types/runtime/search-arrival.d.ts +2 -0
  2212. package/types/runtime/search-arrival.d.ts.map +1 -0
  2213. package/types/runtime/search-results.d.ts +4 -0
  2214. package/types/runtime/search-results.d.ts.map +1 -0
  2215. package/types/runtime/search.d.ts +48 -0
  2216. package/types/runtime/search.d.ts.map +1 -0
  2217. package/types/runtime/send.d.ts +3 -0
  2218. package/types/runtime/send.d.ts.map +1 -0
  2219. package/types/runtime/seo.d.ts +15 -0
  2220. package/types/runtime/seo.d.ts.map +1 -0
  2221. package/types/runtime/server-islands.d.ts +3 -0
  2222. package/types/runtime/server-islands.d.ts.map +1 -0
  2223. package/types/runtime/shortcut.d.ts +9 -0
  2224. package/types/runtime/shortcut.d.ts.map +1 -0
  2225. package/types/runtime/site.d.ts +14 -0
  2226. package/types/runtime/site.d.ts.map +1 -0
  2227. package/types/runtime/size-text.d.ts +2 -0
  2228. package/types/runtime/size-text.d.ts.map +1 -0
  2229. package/types/runtime/snapshots.d.ts +13 -0
  2230. package/types/runtime/snapshots.d.ts.map +1 -0
  2231. package/types/runtime/sqlite.server.d.ts +4 -0
  2232. package/types/runtime/sqlite.server.d.ts.map +1 -0
  2233. package/types/runtime/sse.d.ts +3 -0
  2234. package/types/runtime/sse.d.ts.map +1 -0
  2235. package/types/runtime/stale.d.ts +4 -0
  2236. package/types/runtime/stale.d.ts.map +1 -0
  2237. package/types/runtime/static-slots.d.ts +4 -0
  2238. package/types/runtime/static-slots.d.ts.map +1 -0
  2239. package/types/runtime/store-base.d.ts +6 -0
  2240. package/types/runtime/store-base.d.ts.map +1 -0
  2241. package/types/runtime/store.d.ts +12 -0
  2242. package/types/runtime/store.d.ts.map +1 -0
  2243. package/types/runtime/swap-fetch.d.ts +10 -0
  2244. package/types/runtime/swap-fetch.d.ts.map +1 -0
  2245. package/types/runtime/swap-flight.d.ts +36 -0
  2246. package/types/runtime/swap-flight.d.ts.map +1 -0
  2247. package/types/runtime/swap-focus.d.ts +6 -0
  2248. package/types/runtime/swap-focus.d.ts.map +1 -0
  2249. package/types/runtime/swap-head.d.ts +8 -0
  2250. package/types/runtime/swap-head.d.ts.map +1 -0
  2251. package/types/runtime/swap-held.d.ts +2 -0
  2252. package/types/runtime/swap-held.d.ts.map +1 -0
  2253. package/types/runtime/swap-kept.d.ts +8 -0
  2254. package/types/runtime/swap-kept.d.ts.map +1 -0
  2255. package/types/runtime/swap-loading.d.ts +6 -0
  2256. package/types/runtime/swap-loading.d.ts.map +1 -0
  2257. package/types/runtime/swap-morph.d.ts +8 -0
  2258. package/types/runtime/swap-morph.d.ts.map +1 -0
  2259. package/types/runtime/swap-refusal.d.ts +2 -0
  2260. package/types/runtime/swap-refusal.d.ts.map +1 -0
  2261. package/types/runtime/swap-streamed.d.ts +14 -0
  2262. package/types/runtime/swap-streamed.d.ts.map +1 -0
  2263. package/types/runtime/swap-transition.d.ts +4 -0
  2264. package/types/runtime/swap-transition.d.ts.map +1 -0
  2265. package/types/runtime/swap.d.ts +16 -0
  2266. package/types/runtime/swap.d.ts.map +1 -0
  2267. package/types/runtime/template-context.d.ts +28 -0
  2268. package/types/runtime/template-context.d.ts.map +1 -0
  2269. package/types/runtime/transition.d.ts +11 -0
  2270. package/types/runtime/transition.d.ts.map +1 -0
  2271. package/types/runtime/ui.d.ts +22 -0
  2272. package/types/runtime/ui.d.ts.map +1 -0
  2273. package/types/runtime/uid.d.ts +10 -0
  2274. package/types/runtime/uid.d.ts.map +1 -0
  2275. package/types/runtime/uid.server.d.ts +6 -0
  2276. package/types/runtime/uid.server.d.ts.map +1 -0
  2277. package/types/runtime/upload.d.ts +2 -0
  2278. package/types/runtime/upload.d.ts.map +1 -0
  2279. package/types/runtime/url-attributes.d.ts +2 -0
  2280. package/types/runtime/url-attributes.d.ts.map +1 -0
  2281. package/types/runtime/url-report.d.ts +5 -0
  2282. package/types/runtime/url-report.d.ts.map +1 -0
  2283. package/types/runtime/url.d.ts +5 -0
  2284. package/types/runtime/url.d.ts.map +1 -0
  2285. package/types/runtime/validate.d.ts +26 -0
  2286. package/types/runtime/validate.d.ts.map +1 -0
  2287. package/types/runtime/values.d.ts +18 -0
  2288. package/types/runtime/values.d.ts.map +1 -0
  2289. package/types/runtime/visibility.d.ts +3 -0
  2290. package/types/runtime/visibility.d.ts.map +1 -0
  2291. package/types/runtime/warn-once.d.ts +4 -0
  2292. package/types/runtime/warn-once.d.ts.map +1 -0
  2293. package/types/runtime/wire.d.ts +15 -0
  2294. package/types/runtime/wire.d.ts.map +1 -0
  2295. package/types/runtime/with-query.d.ts +5 -0
  2296. package/types/runtime/with-query.d.ts.map +1 -0
  2297. package/types/runtime/words.client.d.ts +8 -0
  2298. package/types/runtime/words.client.d.ts.map +1 -0
  2299. package/types/runtime/words.server.d.ts +7 -0
  2300. package/types/runtime/words.server.d.ts.map +1 -0
  2301. package/types/runtime/work-worker.d.ts +2 -0
  2302. package/types/runtime/work-worker.d.ts.map +1 -0
  2303. package/types/runtime/work.client.d.ts +4 -0
  2304. package/types/runtime/work.client.d.ts.map +1 -0
  2305. package/types/runtime/work.d.ts +4 -0
  2306. package/types/runtime/work.d.ts.map +1 -0
  2307. package/types/server/accept-language.d.ts +5 -0
  2308. package/types/server/accept-language.d.ts.map +1 -0
  2309. package/types/server/action-clash.d.ts +2 -0
  2310. package/types/server/action-clash.d.ts.map +1 -0
  2311. package/types/server/action-hooks.d.ts +19 -0
  2312. package/types/server/action-hooks.d.ts.map +1 -0
  2313. package/types/server/action-input.d.ts +3 -0
  2314. package/types/server/action-input.d.ts.map +1 -0
  2315. package/types/server/action-iterable.d.ts +7 -0
  2316. package/types/server/action-iterable.d.ts.map +1 -0
  2317. package/types/server/actions.d.ts +56 -0
  2318. package/types/server/actions.d.ts.map +1 -0
  2319. package/types/server/address.d.ts +20 -0
  2320. package/types/server/address.d.ts.map +1 -0
  2321. package/types/server/analytics-script.d.ts +5 -0
  2322. package/types/server/analytics-script.d.ts.map +1 -0
  2323. package/types/server/analytics-server.d.ts +12 -0
  2324. package/types/server/analytics-server.d.ts.map +1 -0
  2325. package/types/server/analytics-words.d.ts +8 -0
  2326. package/types/server/analytics-words.d.ts.map +1 -0
  2327. package/types/server/analytics.d.ts +109 -0
  2328. package/types/server/analytics.d.ts.map +1 -0
  2329. package/types/server/api-modules.d.ts +51 -0
  2330. package/types/server/api-modules.d.ts.map +1 -0
  2331. package/types/server/api-params.d.ts +16 -0
  2332. package/types/server/api-params.d.ts.map +1 -0
  2333. package/types/server/api.d.ts +50 -0
  2334. package/types/server/api.d.ts.map +1 -0
  2335. package/types/server/app-database.d.ts +13 -0
  2336. package/types/server/app-database.d.ts.map +1 -0
  2337. package/types/server/app-hooks.d.ts +26 -0
  2338. package/types/server/app-hooks.d.ts.map +1 -0
  2339. package/types/server/app-identity.d.ts +13 -0
  2340. package/types/server/app-identity.d.ts.map +1 -0
  2341. package/types/server/app-stages.d.ts +210 -0
  2342. package/types/server/app-stages.d.ts.map +1 -0
  2343. package/types/server/app-store.d.ts +33 -0
  2344. package/types/server/app-store.d.ts.map +1 -0
  2345. package/types/server/app.d.ts +122 -0
  2346. package/types/server/app.d.ts.map +1 -0
  2347. package/types/server/auth-mails.d.ts +357 -0
  2348. package/types/server/auth-mails.d.ts.map +1 -0
  2349. package/types/server/auto-listen.d.ts +6 -0
  2350. package/types/server/auto-listen.d.ts.map +1 -0
  2351. package/types/server/avif-worker.d.ts +19 -0
  2352. package/types/server/avif-worker.d.ts.map +1 -0
  2353. package/types/server/avif.d.ts +12 -0
  2354. package/types/server/avif.d.ts.map +1 -0
  2355. package/types/server/base.d.ts +9 -0
  2356. package/types/server/base.d.ts.map +1 -0
  2357. package/types/server/basic-auth.d.ts +13 -0
  2358. package/types/server/basic-auth.d.ts.map +1 -0
  2359. package/types/server/body.d.ts +23 -0
  2360. package/types/server/body.d.ts.map +1 -0
  2361. package/types/server/build-files.d.ts +8 -0
  2362. package/types/server/build-files.d.ts.map +1 -0
  2363. package/types/server/builtins.d.ts +5 -0
  2364. package/types/server/builtins.d.ts.map +1 -0
  2365. package/types/server/bundle.d.ts +26 -0
  2366. package/types/server/bundle.d.ts.map +1 -0
  2367. package/types/server/card-draw.d.ts +20 -0
  2368. package/types/server/card-draw.d.ts.map +1 -0
  2369. package/types/server/card-template.d.ts +8 -0
  2370. package/types/server/card-template.d.ts.map +1 -0
  2371. package/types/server/card.d.ts +73 -0
  2372. package/types/server/card.d.ts.map +1 -0
  2373. package/types/server/ceiling.d.ts +2 -0
  2374. package/types/server/ceiling.d.ts.map +1 -0
  2375. package/types/server/clean-context.d.ts +2 -0
  2376. package/types/server/clean-context.d.ts.map +1 -0
  2377. package/types/server/client.d.ts +91 -0
  2378. package/types/server/client.d.ts.map +1 -0
  2379. package/types/server/codec/avif-enc-build.d.ts +2 -0
  2380. package/types/server/codec/avif-enc-build.d.ts.map +1 -0
  2381. package/types/server/compress-policy.d.ts +2 -0
  2382. package/types/server/compress-policy.d.ts.map +1 -0
  2383. package/types/server/compress.d.ts +44 -0
  2384. package/types/server/compress.d.ts.map +1 -0
  2385. package/types/server/config-error.d.ts +10 -0
  2386. package/types/server/config-error.d.ts.map +1 -0
  2387. package/types/server/config-limits.d.ts +37 -0
  2388. package/types/server/config-limits.d.ts.map +1 -0
  2389. package/types/server/consent-cookie.d.ts +2 -0
  2390. package/types/server/consent-cookie.d.ts.map +1 -0
  2391. package/types/server/context-reads.d.ts +2 -0
  2392. package/types/server/context-reads.d.ts.map +1 -0
  2393. package/types/server/context-record.d.ts +10 -0
  2394. package/types/server/context-record.d.ts.map +1 -0
  2395. package/types/server/context-values.d.ts +15 -0
  2396. package/types/server/context-values.d.ts.map +1 -0
  2397. package/types/server/cookie-names.d.ts +3 -0
  2398. package/types/server/cookie-names.d.ts.map +1 -0
  2399. package/types/server/cookies.d.ts +36 -0
  2400. package/types/server/cookies.d.ts.map +1 -0
  2401. package/types/server/cors.d.ts +35 -0
  2402. package/types/server/cors.d.ts.map +1 -0
  2403. package/types/server/crop.d.ts +16 -0
  2404. package/types/server/crop.d.ts.map +1 -0
  2405. package/types/server/cross-site.d.ts +9 -0
  2406. package/types/server/cross-site.d.ts.map +1 -0
  2407. package/types/server/csp.d.ts +13 -0
  2408. package/types/server/csp.d.ts.map +1 -0
  2409. package/types/server/dev-data.d.ts +44 -0
  2410. package/types/server/dev-data.d.ts.map +1 -0
  2411. package/types/server/dev-errors.d.ts +34 -0
  2412. package/types/server/dev-errors.d.ts.map +1 -0
  2413. package/types/server/dev-footprint.d.ts +2 -0
  2414. package/types/server/dev-footprint.d.ts.map +1 -0
  2415. package/types/server/dev-head.d.ts +13 -0
  2416. package/types/server/dev-head.d.ts.map +1 -0
  2417. package/types/server/dev-jobs.d.ts +4 -0
  2418. package/types/server/dev-jobs.d.ts.map +1 -0
  2419. package/types/server/dev-not-found.d.ts +9 -0
  2420. package/types/server/dev-not-found.d.ts.map +1 -0
  2421. package/types/server/dev-notes.d.ts +3 -0
  2422. package/types/server/dev-notes.d.ts.map +1 -0
  2423. package/types/server/dev-offered.d.ts +6 -0
  2424. package/types/server/dev-offered.d.ts.map +1 -0
  2425. package/types/server/dev-secret.d.ts +2 -0
  2426. package/types/server/dev-secret.d.ts.map +1 -0
  2427. package/types/server/dev-sizes.d.ts +18 -0
  2428. package/types/server/dev-sizes.d.ts.map +1 -0
  2429. package/types/server/dev-sqlite-worker.d.ts +22 -0
  2430. package/types/server/dev-sqlite-worker.d.ts.map +1 -0
  2431. package/types/server/dev-ui.d.ts +3 -0
  2432. package/types/server/dev-ui.d.ts.map +1 -0
  2433. package/types/server/dev.d.ts +158 -0
  2434. package/types/server/dev.d.ts.map +1 -0
  2435. package/types/server/dictionary.d.ts +28 -0
  2436. package/types/server/dictionary.d.ts.map +1 -0
  2437. package/types/server/drain.d.ts +5 -0
  2438. package/types/server/drain.d.ts.map +1 -0
  2439. package/types/server/editor.d.ts +2 -0
  2440. package/types/server/editor.d.ts.map +1 -0
  2441. package/types/server/endpoint-claims.d.ts +4 -0
  2442. package/types/server/endpoint-claims.d.ts.map +1 -0
  2443. package/types/server/endpoint-verbs.d.ts +11 -0
  2444. package/types/server/endpoint-verbs.d.ts.map +1 -0
  2445. package/types/server/endpoints.d.ts +12 -0
  2446. package/types/server/endpoints.d.ts.map +1 -0
  2447. package/types/server/entry-drafts.d.ts +15 -0
  2448. package/types/server/entry-drafts.d.ts.map +1 -0
  2449. package/types/server/entry-head.d.ts +5 -0
  2450. package/types/server/entry-head.d.ts.map +1 -0
  2451. package/types/server/entry-urls.d.ts +6 -0
  2452. package/types/server/entry-urls.d.ts.map +1 -0
  2453. package/types/server/env-state.d.ts +22 -0
  2454. package/types/server/env-state.d.ts.map +1 -0
  2455. package/types/server/env.d.ts +22 -0
  2456. package/types/server/env.d.ts.map +1 -0
  2457. package/types/server/error-maps.d.ts +3 -0
  2458. package/types/server/error-maps.d.ts.map +1 -0
  2459. package/types/server/errors.d.ts +13 -0
  2460. package/types/server/errors.d.ts.map +1 -0
  2461. package/types/server/event-stream.d.ts +22 -0
  2462. package/types/server/event-stream.d.ts.map +1 -0
  2463. package/types/server/face.d.ts +16 -0
  2464. package/types/server/face.d.ts.map +1 -0
  2465. package/types/server/favicon.d.ts +60 -0
  2466. package/types/server/favicon.d.ts.map +1 -0
  2467. package/types/server/fetch-public.d.ts +12 -0
  2468. package/types/server/fetch-public.d.ts.map +1 -0
  2469. package/types/server/field-errors.d.ts +6 -0
  2470. package/types/server/field-errors.d.ts.map +1 -0
  2471. package/types/server/file-limit.d.ts +3 -0
  2472. package/types/server/file-limit.d.ts.map +1 -0
  2473. package/types/server/file-type.d.ts +4 -0
  2474. package/types/server/file-type.d.ts.map +1 -0
  2475. package/types/server/flash.d.ts +24 -0
  2476. package/types/server/flash.d.ts.map +1 -0
  2477. package/types/server/font-metrics.d.ts +22 -0
  2478. package/types/server/font-metrics.d.ts.map +1 -0
  2479. package/types/server/fonts.d.ts +26 -0
  2480. package/types/server/fonts.d.ts.map +1 -0
  2481. package/types/server/forms.d.ts +3 -0
  2482. package/types/server/forms.d.ts.map +1 -0
  2483. package/types/server/guard-requirement.d.ts +8 -0
  2484. package/types/server/guard-requirement.d.ts.map +1 -0
  2485. package/types/server/guard-runs.d.ts +5 -0
  2486. package/types/server/guard-runs.d.ts.map +1 -0
  2487. package/types/server/guards.d.ts +24 -0
  2488. package/types/server/guards.d.ts.map +1 -0
  2489. package/types/server/handler-timing.d.ts +2 -0
  2490. package/types/server/handler-timing.d.ts.map +1 -0
  2491. package/types/server/history.d.ts +2 -0
  2492. package/types/server/history.d.ts.map +1 -0
  2493. package/types/server/hooks.d.ts +28 -0
  2494. package/types/server/hooks.d.ts.map +1 -0
  2495. package/types/server/host-allowlist.d.ts +11 -0
  2496. package/types/server/host-allowlist.d.ts.map +1 -0
  2497. package/types/server/hydration.d.ts +3 -0
  2498. package/types/server/hydration.d.ts.map +1 -0
  2499. package/types/server/i18n.d.ts +70 -0
  2500. package/types/server/i18n.d.ts.map +1 -0
  2501. package/types/server/image-color.d.ts +5 -0
  2502. package/types/server/image-color.d.ts.map +1 -0
  2503. package/types/server/image-format.d.ts +18 -0
  2504. package/types/server/image-format.d.ts.map +1 -0
  2505. package/types/server/image-limits.d.ts +17 -0
  2506. package/types/server/image-limits.d.ts.map +1 -0
  2507. package/types/server/image-metadata-bmff.d.ts +3 -0
  2508. package/types/server/image-metadata-bmff.d.ts.map +1 -0
  2509. package/types/server/image-metadata.d.ts +3 -0
  2510. package/types/server/image-metadata.d.ts.map +1 -0
  2511. package/types/server/image.d.ts +98 -0
  2512. package/types/server/image.d.ts.map +1 -0
  2513. package/types/server/index.d.ts +82 -0
  2514. package/types/server/index.d.ts.map +1 -0
  2515. package/types/server/internal.d.ts +8 -0
  2516. package/types/server/internal.d.ts.map +1 -0
  2517. package/types/server/job-admin.d.ts +36 -0
  2518. package/types/server/job-admin.d.ts.map +1 -0
  2519. package/types/server/job-status.d.ts +3 -0
  2520. package/types/server/job-status.d.ts.map +1 -0
  2521. package/types/server/job-steps.d.ts +2 -0
  2522. package/types/server/job-steps.d.ts.map +1 -0
  2523. package/types/server/jobs-page.d.ts +12 -0
  2524. package/types/server/jobs-page.d.ts.map +1 -0
  2525. package/types/server/jobs.d.ts +64 -0
  2526. package/types/server/jobs.d.ts.map +1 -0
  2527. package/types/server/kept-exports.d.ts +5 -0
  2528. package/types/server/kept-exports.d.ts.map +1 -0
  2529. package/types/server/kept-pages.d.ts +9 -0
  2530. package/types/server/kept-pages.d.ts.map +1 -0
  2531. package/types/server/kept-source.d.ts +48 -0
  2532. package/types/server/kept-source.d.ts.map +1 -0
  2533. package/types/server/kv.d.ts +17 -0
  2534. package/types/server/kv.d.ts.map +1 -0
  2535. package/types/server/lazy-guard.d.ts +10 -0
  2536. package/types/server/lazy-guard.d.ts.map +1 -0
  2537. package/types/server/library.d.ts +109 -0
  2538. package/types/server/library.d.ts.map +1 -0
  2539. package/types/server/lifecycle.d.ts +18 -0
  2540. package/types/server/lifecycle.d.ts.map +1 -0
  2541. package/types/server/limit.d.ts +6 -0
  2542. package/types/server/limit.d.ts.map +1 -0
  2543. package/types/server/link-schemes.d.ts +3 -0
  2544. package/types/server/link-schemes.d.ts.map +1 -0
  2545. package/types/server/links.d.ts +4 -0
  2546. package/types/server/links.d.ts.map +1 -0
  2547. package/types/server/literal-writes.d.ts +43 -0
  2548. package/types/server/literal-writes.d.ts.map +1 -0
  2549. package/types/server/live.d.ts +34 -0
  2550. package/types/server/live.d.ts.map +1 -0
  2551. package/types/server/load-budget.d.ts +4 -0
  2552. package/types/server/load-budget.d.ts.map +1 -0
  2553. package/types/server/loader.d.ts +5 -0
  2554. package/types/server/loader.d.ts.map +1 -0
  2555. package/types/server/loading-page.d.ts +6 -0
  2556. package/types/server/loading-page.d.ts.map +1 -0
  2557. package/types/server/local-files.d.ts +4 -0
  2558. package/types/server/local-files.d.ts.map +1 -0
  2559. package/types/server/log.d.ts +51 -0
  2560. package/types/server/log.d.ts.map +1 -0
  2561. package/types/server/maintenance.d.ts +24 -0
  2562. package/types/server/maintenance.d.ts.map +1 -0
  2563. package/types/server/mcp-key.d.ts +12 -0
  2564. package/types/server/mcp-key.d.ts.map +1 -0
  2565. package/types/server/mcp.d.ts +58 -0
  2566. package/types/server/mcp.d.ts.map +1 -0
  2567. package/types/server/memory-jobs.d.ts +3 -0
  2568. package/types/server/memory-jobs.d.ts.map +1 -0
  2569. package/types/server/memory-mark.d.ts +3 -0
  2570. package/types/server/memory-mark.d.ts.map +1 -0
  2571. package/types/server/message-drafts.d.ts +13 -0
  2572. package/types/server/message-drafts.d.ts.map +1 -0
  2573. package/types/server/metrics.d.ts +14 -0
  2574. package/types/server/metrics.d.ts.map +1 -0
  2575. package/types/server/missing-hits.d.ts +16 -0
  2576. package/types/server/missing-hits.d.ts.map +1 -0
  2577. package/types/server/module-state.d.ts +9 -0
  2578. package/types/server/module-state.d.ts.map +1 -0
  2579. package/types/server/new-tab.d.ts +4 -0
  2580. package/types/server/new-tab.d.ts.map +1 -0
  2581. package/types/server/not-found-config.d.ts +5 -0
  2582. package/types/server/not-found-config.d.ts.map +1 -0
  2583. package/types/server/not-found.d.ts +79 -0
  2584. package/types/server/not-found.d.ts.map +1 -0
  2585. package/types/server/notifications.d.ts +55 -0
  2586. package/types/server/notifications.d.ts.map +1 -0
  2587. package/types/server/offline.d.ts +22 -0
  2588. package/types/server/offline.d.ts.map +1 -0
  2589. package/types/server/openapi.d.ts +84 -0
  2590. package/types/server/openapi.d.ts.map +1 -0
  2591. package/types/server/option-keys.d.ts +2 -0
  2592. package/types/server/option-keys.d.ts.map +1 -0
  2593. package/types/server/overlay.d.ts +12 -0
  2594. package/types/server/overlay.d.ts.map +1 -0
  2595. package/types/server/own-headers.d.ts +21 -0
  2596. package/types/server/own-headers.d.ts.map +1 -0
  2597. package/types/server/page-error.d.ts +7 -0
  2598. package/types/server/page-error.d.ts.map +1 -0
  2599. package/types/server/page-flags.d.ts +5 -0
  2600. package/types/server/page-flags.d.ts.map +1 -0
  2601. package/types/server/page-headers.d.ts +6 -0
  2602. package/types/server/page-headers.d.ts.map +1 -0
  2603. package/types/server/page-hook.d.ts +32 -0
  2604. package/types/server/page-hook.d.ts.map +1 -0
  2605. package/types/server/page-limits.d.ts +26 -0
  2606. package/types/server/page-limits.d.ts.map +1 -0
  2607. package/types/server/page-reads.d.ts +6 -0
  2608. package/types/server/page-reads.d.ts.map +1 -0
  2609. package/types/server/page-routes.d.ts +48 -0
  2610. package/types/server/page-routes.d.ts.map +1 -0
  2611. package/types/server/page-settings.d.ts +13 -0
  2612. package/types/server/page-settings.d.ts.map +1 -0
  2613. package/types/server/params.d.ts +20 -0
  2614. package/types/server/params.d.ts.map +1 -0
  2615. package/types/server/parent.d.ts +5 -0
  2616. package/types/server/parent.d.ts.map +1 -0
  2617. package/types/server/personal-data.d.ts +13 -0
  2618. package/types/server/personal-data.d.ts.map +1 -0
  2619. package/types/server/pg-cache.d.ts +4 -0
  2620. package/types/server/pg-cache.d.ts.map +1 -0
  2621. package/types/server/pg-data.d.ts +30 -0
  2622. package/types/server/pg-data.d.ts.map +1 -0
  2623. package/types/server/pg-jobs.d.ts +31 -0
  2624. package/types/server/pg-jobs.d.ts.map +1 -0
  2625. package/types/server/pg-limit.d.ts +10 -0
  2626. package/types/server/pg-limit.d.ts.map +1 -0
  2627. package/types/server/pg-live.d.ts +4 -0
  2628. package/types/server/pg-live.d.ts.map +1 -0
  2629. package/types/server/pg-not-found.d.ts +30 -0
  2630. package/types/server/pg-not-found.d.ts.map +1 -0
  2631. package/types/server/pg-notify.d.ts +9 -0
  2632. package/types/server/pg-notify.d.ts.map +1 -0
  2633. package/types/server/pg-orm.d.ts +32 -0
  2634. package/types/server/pg-orm.d.ts.map +1 -0
  2635. package/types/server/pg-poll.d.ts +41 -0
  2636. package/types/server/pg-poll.d.ts.map +1 -0
  2637. package/types/server/pg-redirects.d.ts +4 -0
  2638. package/types/server/pg-redirects.d.ts.map +1 -0
  2639. package/types/server/pg-rooms.d.ts +7 -0
  2640. package/types/server/pg-rooms.d.ts.map +1 -0
  2641. package/types/server/pg-sql.d.ts +6 -0
  2642. package/types/server/pg-sql.d.ts.map +1 -0
  2643. package/types/server/pg-stores.d.ts +14 -0
  2644. package/types/server/pg-stores.d.ts.map +1 -0
  2645. package/types/server/plugin.d.ts +32 -0
  2646. package/types/server/plugin.d.ts.map +1 -0
  2647. package/types/server/plumbing.d.ts +20 -0
  2648. package/types/server/plumbing.d.ts.map +1 -0
  2649. package/types/server/png.d.ts +9 -0
  2650. package/types/server/png.d.ts.map +1 -0
  2651. package/types/server/prebuilt-loader.d.ts +2 -0
  2652. package/types/server/prebuilt-loader.d.ts.map +1 -0
  2653. package/types/server/prerender.d.ts +34 -0
  2654. package/types/server/prerender.d.ts.map +1 -0
  2655. package/types/server/prerendered.d.ts +19 -0
  2656. package/types/server/prerendered.d.ts.map +1 -0
  2657. package/types/server/presence.d.ts +10 -0
  2658. package/types/server/presence.d.ts.map +1 -0
  2659. package/types/server/preview.d.ts +55 -0
  2660. package/types/server/preview.d.ts.map +1 -0
  2661. package/types/server/private-dir.d.ts +7 -0
  2662. package/types/server/private-dir.d.ts.map +1 -0
  2663. package/types/server/protection.d.ts +95 -0
  2664. package/types/server/protection.d.ts.map +1 -0
  2665. package/types/server/proxy-key.d.ts +14 -0
  2666. package/types/server/proxy-key.d.ts.map +1 -0
  2667. package/types/server/public-suffix.d.ts +2 -0
  2668. package/types/server/public-suffix.d.ts.map +1 -0
  2669. package/types/server/public-suffixes.d.ts +3 -0
  2670. package/types/server/public-suffixes.d.ts.map +1 -0
  2671. package/types/server/public.d.ts +23 -0
  2672. package/types/server/public.d.ts.map +1 -0
  2673. package/types/server/publishing.d.ts +13 -0
  2674. package/types/server/publishing.d.ts.map +1 -0
  2675. package/types/server/pure-page.d.ts +21 -0
  2676. package/types/server/pure-page.d.ts.map +1 -0
  2677. package/types/server/push-crypto.d.ts +21 -0
  2678. package/types/server/push-crypto.d.ts.map +1 -0
  2679. package/types/server/push-keys-command.d.ts +4 -0
  2680. package/types/server/push-keys-command.d.ts.map +1 -0
  2681. package/types/server/push-server.d.ts +4 -0
  2682. package/types/server/push-server.d.ts.map +1 -0
  2683. package/types/server/push-settings.d.ts +18 -0
  2684. package/types/server/push-settings.d.ts.map +1 -0
  2685. package/types/server/push-store.d.ts +19 -0
  2686. package/types/server/push-store.d.ts.map +1 -0
  2687. package/types/server/push.d.ts +48 -0
  2688. package/types/server/push.d.ts.map +1 -0
  2689. package/types/server/query.d.ts +14 -0
  2690. package/types/server/query.d.ts.map +1 -0
  2691. package/types/server/queue-live.d.ts +20 -0
  2692. package/types/server/queue-live.d.ts.map +1 -0
  2693. package/types/server/queue-scheduler.d.ts +31 -0
  2694. package/types/server/queue-scheduler.d.ts.map +1 -0
  2695. package/types/server/queue-telling.d.ts +3 -0
  2696. package/types/server/queue-telling.d.ts.map +1 -0
  2697. package/types/server/queue.d.ts +166 -0
  2698. package/types/server/queue.d.ts.map +1 -0
  2699. package/types/server/raster.d.ts +14 -0
  2700. package/types/server/raster.d.ts.map +1 -0
  2701. package/types/server/rate-limit.d.ts +9 -0
  2702. package/types/server/rate-limit.d.ts.map +1 -0
  2703. package/types/server/rate-refusal.d.ts +4 -0
  2704. package/types/server/rate-refusal.d.ts.map +1 -0
  2705. package/types/server/reach-walk.d.ts +4 -0
  2706. package/types/server/reach-walk.d.ts.map +1 -0
  2707. package/types/server/reach.d.ts +11 -0
  2708. package/types/server/reach.d.ts.map +1 -0
  2709. package/types/server/redirect-spelling.d.ts +5 -0
  2710. package/types/server/redirect-spelling.d.ts.map +1 -0
  2711. package/types/server/redirects.d.ts +27 -0
  2712. package/types/server/redirects.d.ts.map +1 -0
  2713. package/types/server/reload.d.ts +4 -0
  2714. package/types/server/reload.d.ts.map +1 -0
  2715. package/types/server/remote.d.ts +24 -0
  2716. package/types/server/remote.d.ts.map +1 -0
  2717. package/types/server/render-document.d.ts +21 -0
  2718. package/types/server/render-document.d.ts.map +1 -0
  2719. package/types/server/render.d.ts +117 -0
  2720. package/types/server/render.d.ts.map +1 -0
  2721. package/types/server/report.d.ts +7 -0
  2722. package/types/server/report.d.ts.map +1 -0
  2723. package/types/server/request-read.d.ts +15 -0
  2724. package/types/server/request-read.d.ts.map +1 -0
  2725. package/types/server/request-record.d.ts +75 -0
  2726. package/types/server/request-record.d.ts.map +1 -0
  2727. package/types/server/request-scope.d.ts +7 -0
  2728. package/types/server/request-scope.d.ts.map +1 -0
  2729. package/types/server/request-timeout.d.ts +31 -0
  2730. package/types/server/request-timeout.d.ts.map +1 -0
  2731. package/types/server/request-url.d.ts +4 -0
  2732. package/types/server/request-url.d.ts.map +1 -0
  2733. package/types/server/request-user.d.ts +4 -0
  2734. package/types/server/request-user.d.ts.map +1 -0
  2735. package/types/server/resources.d.ts +12 -0
  2736. package/types/server/resources.d.ts.map +1 -0
  2737. package/types/server/response-mismatch.d.ts +3 -0
  2738. package/types/server/response-mismatch.d.ts.map +1 -0
  2739. package/types/server/revalidate.d.ts +3 -0
  2740. package/types/server/revalidate.d.ts.map +1 -0
  2741. package/types/server/rewrite.d.ts +13 -0
  2742. package/types/server/rewrite.d.ts.map +1 -0
  2743. package/types/server/rooms.d.ts +57 -0
  2744. package/types/server/rooms.d.ts.map +1 -0
  2745. package/types/server/route-table.d.ts +26 -0
  2746. package/types/server/route-table.d.ts.map +1 -0
  2747. package/types/server/routes.d.ts +106 -0
  2748. package/types/server/routes.d.ts.map +1 -0
  2749. package/types/server/runtime-redirect-api.d.ts +35 -0
  2750. package/types/server/runtime-redirect-api.d.ts.map +1 -0
  2751. package/types/server/runtime-redirects.d.ts +74 -0
  2752. package/types/server/runtime-redirects.d.ts.map +1 -0
  2753. package/types/server/safe-path.d.ts +2 -0
  2754. package/types/server/safe-path.d.ts.map +1 -0
  2755. package/types/server/save-data.d.ts +10 -0
  2756. package/types/server/save-data.d.ts.map +1 -0
  2757. package/types/server/schema-answer.d.ts +12 -0
  2758. package/types/server/schema-answer.d.ts.map +1 -0
  2759. package/types/server/schema-check.d.ts +12 -0
  2760. package/types/server/schema-check.d.ts.map +1 -0
  2761. package/types/server/scope.d.ts +12 -0
  2762. package/types/server/scope.d.ts.map +1 -0
  2763. package/types/server/seal.d.ts +11 -0
  2764. package/types/server/seal.d.ts.map +1 -0
  2765. package/types/server/security.d.ts +20 -0
  2766. package/types/server/security.d.ts.map +1 -0
  2767. package/types/server/seo.d.ts +15 -0
  2768. package/types/server/seo.d.ts.map +1 -0
  2769. package/types/server/served-paths.d.ts +26 -0
  2770. package/types/server/served-paths.d.ts.map +1 -0
  2771. package/types/server/server-islands.d.ts +28 -0
  2772. package/types/server/server-islands.d.ts.map +1 -0
  2773. package/types/server/server-record.d.ts +23 -0
  2774. package/types/server/server-record.d.ts.map +1 -0
  2775. package/types/server/serving.d.ts +5 -0
  2776. package/types/server/serving.d.ts.map +1 -0
  2777. package/types/server/session.d.ts +110 -0
  2778. package/types/server/session.d.ts.map +1 -0
  2779. package/types/server/setup.d.ts +49 -0
  2780. package/types/server/setup.d.ts.map +1 -0
  2781. package/types/server/sha256.d.ts +7 -0
  2782. package/types/server/sha256.d.ts.map +1 -0
  2783. package/types/server/signals.d.ts +17 -0
  2784. package/types/server/signals.d.ts.map +1 -0
  2785. package/types/server/signed.d.ts +9 -0
  2786. package/types/server/signed.d.ts.map +1 -0
  2787. package/types/server/site-facts.d.ts +8 -0
  2788. package/types/server/site-facts.d.ts.map +1 -0
  2789. package/types/server/site-paths.d.ts +3 -0
  2790. package/types/server/site-paths.d.ts.map +1 -0
  2791. package/types/server/sitemap.d.ts +35 -0
  2792. package/types/server/sitemap.d.ts.map +1 -0
  2793. package/types/server/snake-case.d.ts +2 -0
  2794. package/types/server/snake-case.d.ts.map +1 -0
  2795. package/types/server/source.d.ts +33 -0
  2796. package/types/server/source.d.ts.map +1 -0
  2797. package/types/server/speculation.d.ts +4 -0
  2798. package/types/server/speculation.d.ts.map +1 -0
  2799. package/types/server/sqlite-data.d.ts +14 -0
  2800. package/types/server/sqlite-data.d.ts.map +1 -0
  2801. package/types/server/sqlite-live.d.ts +3 -0
  2802. package/types/server/sqlite-live.d.ts.map +1 -0
  2803. package/types/server/stale-pages.d.ts +17 -0
  2804. package/types/server/stale-pages.d.ts.map +1 -0
  2805. package/types/server/stamp.d.ts +24 -0
  2806. package/types/server/stamp.d.ts.map +1 -0
  2807. package/types/server/storage.d.ts +70 -0
  2808. package/types/server/storage.d.ts.map +1 -0
  2809. package/types/server/stream.d.ts +26 -0
  2810. package/types/server/stream.d.ts.map +1 -0
  2811. package/types/server/string.d.ts +9 -0
  2812. package/types/server/string.d.ts.map +1 -0
  2813. package/types/server/svg-icon.d.ts +3 -0
  2814. package/types/server/svg-icon.d.ts.map +1 -0
  2815. package/types/server/swap.d.ts +3 -0
  2816. package/types/server/swap.d.ts.map +1 -0
  2817. package/types/server/tool-outputs.d.ts +12 -0
  2818. package/types/server/tool-outputs.d.ts.map +1 -0
  2819. package/types/server/tool-settings.d.ts +3 -0
  2820. package/types/server/tool-settings.d.ts.map +1 -0
  2821. package/types/server/trace-context.d.ts +17 -0
  2822. package/types/server/trace-context.d.ts.map +1 -0
  2823. package/types/server/trace.d.ts +33 -0
  2824. package/types/server/trace.d.ts.map +1 -0
  2825. package/types/server/translations.d.ts +8 -0
  2826. package/types/server/translations.d.ts.map +1 -0
  2827. package/types/server/typography.d.ts +3 -0
  2828. package/types/server/typography.d.ts.map +1 -0
  2829. package/types/server/uncaught.d.ts +9 -0
  2830. package/types/server/uncaught.d.ts.map +1 -0
  2831. package/types/server/unsafe-urls.d.ts +2 -0
  2832. package/types/server/unsafe-urls.d.ts.map +1 -0
  2833. package/types/server/violations.d.ts +18 -0
  2834. package/types/server/violations.d.ts.map +1 -0
  2835. package/types/server/visit.d.ts +11 -0
  2836. package/types/server/visit.d.ts.map +1 -0
  2837. package/types/server/vitals-routes/_guard.d.ts +3 -0
  2838. package/types/server/vitals-routes/_guard.d.ts.map +1 -0
  2839. package/types/server/vitals-screen.d.ts +5 -0
  2840. package/types/server/vitals-screen.d.ts.map +1 -0
  2841. package/types/server/vitals-script.d.ts +3 -0
  2842. package/types/server/vitals-script.d.ts.map +1 -0
  2843. package/types/server/vitals-server.d.ts +4 -0
  2844. package/types/server/vitals-server.d.ts.map +1 -0
  2845. package/types/server/vitals-store.d.ts +41 -0
  2846. package/types/server/vitals-store.d.ts.map +1 -0
  2847. package/types/server/vitals.d.ts +20 -0
  2848. package/types/server/vitals.d.ts.map +1 -0
  2849. package/types/server/web-socket.d.ts +11 -0
  2850. package/types/server/web-socket.d.ts.map +1 -0
  2851. package/types/server/wildcards.d.ts +3 -0
  2852. package/types/server/wildcards.d.ts.map +1 -0
  2853. package/types/server/words.d.ts +49 -0
  2854. package/types/server/words.d.ts.map +1 -0
  2855. package/types/server/work-scope.d.ts +14 -0
  2856. package/types/server/work-scope.d.ts.map +1 -0
  2857. package/types/server/work.d.ts +11 -0
  2858. package/types/server/work.d.ts.map +1 -0
  2859. package/types/server/workers.d.ts +23 -0
  2860. package/types/server/workers.d.ts.map +1 -0
  2861. package/types/server/workflow.d.ts +93 -0
  2862. package/types/server/workflow.d.ts.map +1 -0
  2863. package/types/server/writes.d.ts +4 -0
  2864. package/types/server/writes.d.ts.map +1 -0
  2865. package/types/server/ws-limits.d.ts +34 -0
  2866. package/types/server/ws-limits.d.ts.map +1 -0
  2867. package/types/svg-attributes.d.ts +2 -0
  2868. package/types/svg-attributes.d.ts.map +1 -0
  2869. package/types/template-auth.d.ts +4 -0
  2870. package/types/template-auth.d.ts.map +1 -0
  2871. package/types/template-ci.d.ts +4 -0
  2872. package/types/template-ci.d.ts.map +1 -0
  2873. package/types/template-config.d.ts +4 -0
  2874. package/types/template-config.d.ts.map +1 -0
  2875. package/types/template-docker.d.ts +6 -0
  2876. package/types/template-docker.d.ts.map +1 -0
  2877. package/types/template-pins.d.ts +11 -0
  2878. package/types/template-pins.d.ts.map +1 -0
  2879. package/types/template-shared.d.ts +28 -0
  2880. package/types/template-shared.d.ts.map +1 -0
  2881. package/types/template-starter.d.ts +7 -0
  2882. package/types/template-starter.d.ts.map +1 -0
  2883. package/types/template-styles.d.ts +10 -0
  2884. package/types/template-styles.d.ts.map +1 -0
  2885. package/types/template-ws.d.ts +4 -0
  2886. package/types/template-ws.d.ts.map +1 -0
  2887. package/types/templates.d.ts +11 -0
  2888. package/types/templates.d.ts.map +1 -0
  2889. package/types/test/browser.d.ts +17 -0
  2890. package/types/test/browser.d.ts.map +1 -0
  2891. package/types/test/clock.d.ts +2 -0
  2892. package/types/test/clock.d.ts.map +1 -0
  2893. package/types/test/content.d.ts +20 -0
  2894. package/types/test/content.d.ts.map +1 -0
  2895. package/types/test/cookies.d.ts +9 -0
  2896. package/types/test/cookies.d.ts.map +1 -0
  2897. package/types/test/database.d.ts +2 -0
  2898. package/types/test/database.d.ts.map +1 -0
  2899. package/types/test/dom.d.ts +2 -0
  2900. package/types/test/dom.d.ts.map +1 -0
  2901. package/types/test/env.d.ts +2 -0
  2902. package/types/test/env.d.ts.map +1 -0
  2903. package/types/test/index.d.ts +24 -0
  2904. package/types/test/index.d.ts.map +1 -0
  2905. package/types/test/interact.d.ts +7 -0
  2906. package/types/test/interact.d.ts.map +1 -0
  2907. package/types/test/isolation.d.ts +2 -0
  2908. package/types/test/isolation.d.ts.map +1 -0
  2909. package/types/test/lazy-plugins.d.ts +8 -0
  2910. package/types/test/lazy-plugins.d.ts.map +1 -0
  2911. package/types/test/mount.d.ts +16 -0
  2912. package/types/test/mount.d.ts.map +1 -0
  2913. package/types/test/natives.d.ts +26 -0
  2914. package/types/test/natives.d.ts.map +1 -0
  2915. package/types/test/network.d.ts +62 -0
  2916. package/types/test/network.d.ts.map +1 -0
  2917. package/types/test/outputs.d.ts +5 -0
  2918. package/types/test/outputs.d.ts.map +1 -0
  2919. package/types/test/override-env.d.ts +9 -0
  2920. package/types/test/override-env.d.ts.map +1 -0
  2921. package/types/test/page-types.d.ts +108 -0
  2922. package/types/test/page-types.d.ts.map +1 -0
  2923. package/types/test/page.d.ts +19 -0
  2924. package/types/test/page.d.ts.map +1 -0
  2925. package/types/test/preload.d.ts +5 -0
  2926. package/types/test/preload.d.ts.map +1 -0
  2927. package/types/test/reset.d.ts +2 -0
  2928. package/types/test/reset.d.ts.map +1 -0
  2929. package/types/test/root.d.ts +2 -0
  2930. package/types/test/root.d.ts.map +1 -0
  2931. package/types/test/scratch.d.ts +2 -0
  2932. package/types/test/scratch.d.ts.map +1 -0
  2933. package/types/test/service.d.ts +23 -0
  2934. package/types/test/service.d.ts.map +1 -0
  2935. package/types/test/shared-modules.d.ts +3 -0
  2936. package/types/test/shared-modules.d.ts.map +1 -0
  2937. package/types/test/site-actions.d.ts +8 -0
  2938. package/types/test/site-actions.d.ts.map +1 -0
  2939. package/types/test/site-api.d.ts +4 -0
  2940. package/types/test/site-api.d.ts.map +1 -0
  2941. package/types/test/site-mcp.d.ts +4 -0
  2942. package/types/test/site-mcp.d.ts.map +1 -0
  2943. package/types/test/site-scope.d.ts +21 -0
  2944. package/types/test/site-scope.d.ts.map +1 -0
  2945. package/types/test/site-socket.d.ts +4 -0
  2946. package/types/test/site-socket.d.ts.map +1 -0
  2947. package/types/test/site-types.d.ts +123 -0
  2948. package/types/test/site-types.d.ts.map +1 -0
  2949. package/types/test/sites.d.ts +4 -0
  2950. package/types/test/sites.d.ts.map +1 -0
  2951. package/types/test/timeout.d.ts +2 -0
  2952. package/types/test/timeout.d.ts.map +1 -0
  2953. package/types/test/wait.d.ts +7 -0
  2954. package/types/test/wait.d.ts.map +1 -0
  2955. package/types/test/writable.d.ts +2 -0
  2956. package/types/test/writable.d.ts.map +1 -0
  2957. package/types/tsgo.d.ts +3 -0
  2958. package/types/tsgo.d.ts.map +1 -0
@@ -0,0 +1,165 @@
1
+ # Project setup and scaffolding
2
+
3
+ ## Common tasks
4
+
5
+ ### Start a project
6
+
7
+ `kay new` scaffolds a project that already checks, builds and runs, from a preset (`blank`, `server`, `site` or `app`) plus the features added or dropped:
8
+
9
+ ```sh
10
+ bunx -p @kayjs/kay kay new my-app --template app --without ws
11
+ ```
12
+
13
+ ### Set the project's settings
14
+
15
+ Settings live in a `kay.config.ts` at the root that `export default`s its config:
16
+
17
+ ```ts
18
+ import { defineConfig } from 'kay/server'
19
+
20
+ export default defineConfig({
21
+ dirs: { routes: 'src/routes' },
22
+ lang: 'en',
23
+ minify: true,
24
+ client: { prefetch: 'moderate' },
25
+ plugins: [],
26
+ })
27
+ ```
28
+
29
+ ### Serve the app's own routes next to the pages
30
+
31
+ Exporting `app` from the server entry lets links and redirects point at its GET routes and types `ctx.locals`:
32
+
33
+ ```ts
34
+ import { Elysia } from 'elysia'
35
+ import { pages } from 'kay/server'
36
+
37
+ export const app = new Elysia()
38
+ .get('/feed.xml', () => '<feed/>')
39
+ .use(await pages())
40
+ ```
41
+
42
+ ### Move an Astro project over
43
+
44
+ `kay migrate astro` translates the `.astro` files into `.kay` ones, writing into `--outdir` and never over a file that exists:
45
+
46
+ ```sh
47
+ kay migrate astro ../my-astro-site --outdir ../my-kay-site
48
+ ```
49
+
50
+ ## Reference
51
+
52
+ ### Project setup
53
+
54
+ - kay is published as `@kayjs/kay` to npm and to the registry at `https://git.kaynooo.fr/api/packages/kaynooo/npm/`, its libraries as `@kayjs/ui`, `@kayjs/auth`, `@kayjs/mail`, `@kayjs/cms` and `@kayjs/ai` (`@kaynooo/kayjs*` up to 1.103, which `kay upgrade` moves an app off), and installed under the name its imports use: `"kay": "npm:@kayjs/kay@~<version>"` in `package.json`, a tilde since a minor release may break what the one before it took, each break listed in [Upgrading](upgrading.md) and every one `kay check` can recognise a `deprecated` lint with a fix, which `kay upgrade` applies as it moves the app, and a major is a rewrite, with `@kaynooo:registry=https://git.kaynooo.fr/api/packages/kaynooo/npm/` in the project's `.npmrc`.
55
+ - Before the first `kay new`, Bun is told once where the `@kaynooo` scope lives (pg-orm and the other `@kaynooo` packages of a project are on the Forgejo registry only), in `~/.bunfig.toml`: `[install.scopes]` with `"@kaynooo" = "https://git.kaynooo.fr/api/packages/kaynooo/npm/"`.
56
+ - `bunx -p @kayjs/kay kay new my-app` writes a project that, after `cd my-app && bun install`, checks, builds and runs (`bun run dev`), both of those included: this setup, a layout, a page, a `_404.kay` and islands, or only what is picked of them (see [Commands](#commands) for the presets and features).
57
+
58
+ - kay runs on Bun 1.4.4 or later, as its `engines` says: the CLI and `pages()` refuse an older one, naming its version, its path and the fix, `bun update bun` when it is the project's npm `bun` package, which a plugin's peer dependency installs and package scripts run ahead of the system Bun.
59
+
60
+ - A folder of the project holding its own `package.json` or `kay.config.ts`, such as a workspace package or a second kay app, is a project of its own: `kay check` and `kay build` leave its files out of the app's, and the app reaches a package there through `node_modules`, as it would one installed.
61
+
62
+ - By hand, the server entry is:
63
+
64
+ ```ts
65
+ import { Elysia } from 'elysia'
66
+ import { pages } from 'kay/server'
67
+
68
+ export const app = new Elysia()
69
+ .get('/feed.xml', feed)
70
+ .use(await pages())
71
+ ```
72
+
73
+ - The entry never calls `listen`: it is listened on `PORT` and `HOST` by `kay dev`, `kay start` and the executable, and one calling `listen` itself keeps its own call ([Build and start](build-and-start.md)).
74
+ - Plugins (sessions, jobs, a derive) go in `src/plugins/<name>.ts` instead, each default-exporting the plugin, so a project with only those needs no server entry ([Mount a server plugin](server.md#mount-a-server-plugin)).
75
+ - Exporting `app` lets links and redirects point at the app's own GET routes, such as `/feed.xml`, which `kay check` otherwise reports as served by no page, and types `ctx.locals` (see [Locals](server.md#locals)).
76
+ - An entry other than `src/server.ts` is named once, as `entry: 'src/main.ts'` in `kay.config.ts`, which `kay dev`, `start`, `render`, `check`, `build` and `build --compile` all read; `--entry` on a command wins over it, `kay build --entry` also pointing its check step at that entry.
77
+ - An entry `kay check` does not read registers it instead: `declare module 'kay' { interface Register { app: typeof app } }`.
78
+
79
+ - A key kay does not know in `kay.config.ts`, at its top or in any option bag (`security`, `i18n`, `images`, `markdown`, `jobs`, `cors`, `links` and the rest), stops every command with the nearest known name (`` `trailingslash`, did you mean `trailingSlash`? ``), and `defineConfig` types it as an error, since a mistyped key would otherwise leave kay's default in place with nothing said.
80
+ - A value that is not the kind its key takes (`trailingSlash: 'sometimes'`, `compress: 7`, `lang: 5`, a `defaultLocale` outside the `locales`) stops them the same way, once, as the config loads: `` `trailingSlash` is "sometimes", expected one of "never", "always" or "ignore" ``, the path through bags and lists, with the nearest allowed value for a mistyped text. The options of `pages()` and `testSite()` are checked as they merge, and an extension's `config` as it loads.
81
+ - `auth()`, `cms()`, `mail()` and `ai()` refuse an option they do not take with the nearest one, as `kay.config.ts` does; a library adds the same to its own factory with `checkOptionKeys` from `kay/library`, over a `Record<keyof ItsOptions, true>`.
82
+ - Project settings live in an optional `kay.config.ts` at the root, read by `pages()` and every command; options passed to `pages()` or `testSite()` win over it key by key, an `undefined` option leaving the file's value, and in an executable `kay build --compile` wrote, the root, routes and public directory it was built with win over both.
83
+ - It must `export default` its config, or the command fails with a message saying so.
84
+
85
+ ```ts
86
+ import { defineConfig } from 'kay/server'
87
+
88
+ export default defineConfig({
89
+ dirs: { routes: 'src/routes' },
90
+ lang: 'en',
91
+ minify: true,
92
+ client: { prefetch: 'moderate' },
93
+ plugins: [],
94
+ })
95
+ ```
96
+
97
+ - A directory inside the project holding a `kay.config.ts` of its own, such as an example app or a documentation site, is another project: its components are never the outer one's islands, and it checks and builds from its own root.
98
+
99
+ - `proxy: false` is none, `proxy: true` is one proxy in front, `proxy: 2` two, `{ header }` a header the proxy sets, `{ key: 'x-upstream-key', open }` refuses requests without the shared key ([Production](proxy-and-security.md#behind-a-proxy)).
100
+ - `extensions` lists what libraries add to the app, one value each, such as `extensions: [auth()]`: pages laid over `src/routes` and API modules over `src/api` under a prefix, message catalogs under `src/messages`, an app file at the same path or an app key winning, config laid under the app's, such as Bun plugins or head tags (see [Extensions](component-libraries.md#extensions)), and a hook rewriting each prerendered page (see [Page hooks](prerendering.md#page-hooks)).
101
+
102
+ - `minify` is on for `kay build` unless set to `false`, and off for `kay dev` and a server bundling at boot unless set to `true`.
103
+ - `lang`, the `<html lang>` of every page when `i18n` is not set, defaults to `en`.
104
+ - `timeZone: 'Europe/Paris'` is the zone `formatDate` and message dates write in, on the server and in islands alike, instead of the server's and the visitor's ([Locales](locales.md)).
105
+ - `typography: false` leaves a French page's spaces before `: ; ! ?` and inside `« »` as typed instead of making them non-breaking ([Locales](locales.md#french-typography)).
106
+ - `links: { outside: 'same-tab' }` keeps a link to another origin in the same tab, where it opens in a new one by default ([Navigation](navigation.md#navigation)); `links: { schemes: ['webcal'] }` lets a bound URL keep a scheme beyond the web's, mail, phone and sms ([Security](proxy-and-security.md)).
107
+
108
+ - A page without kay's script carries speculation rules, and one shipping it a `kay-prefetch` meta naming the setting alone, as the swap prefetches its links itself (see [Navigation](navigation.md#navigation)): Chromium, or the swap, prefetches the page a link points at once it is hovered (`prefetch: 'moderate'`), on press with `'conservative'`, as soon as it can with `'eager'` (every link on a page without the script, the links scrolled into view, three at a time, on one with it), never with `false`; `data-prefetch="eager|moderate|conservative"` on a link or a container sets its own level where the script runs, `data-prefetch="false"` opts out everywhere; a page with no `data-prefetch` in it carries the shorter rules without the selector that follows the nearest one.
109
+ - Links under `/_kay/` or `/api/`, with `download` or with `rel="nofollow"` are never prefetched; any other link that changes something on GET, such as a logout, takes `data-no-prefetch`.
110
+ - A stylesheet holding `@view-transition { navigation: auto; }` animates from page to page where the browser supports it, swaps included; `kay new` writes one inside `@media (prefers-reduced-motion: no-preference)`.
111
+
112
+ - `pages()` also takes `root`, `dev` (default: `NODE_ENV` is `development`) and `prebuilt` (default: `NODE_ENV` is `production`), which serves what `kay build` wrote instead of bundling at boot.
113
+ - A `.ts` file imports a component as `import Card from './card.kay'`, typed through the generated `.kay/types` tree, which `kay dev` writes again on every restart, from `kay.config.ts` as it is once it changed, the modules it imports as they were.
114
+ - `.kay/` also holds the client build and the compile cache.
115
+ - List it in `.gitignore`.
116
+ - `tsconfig.json` extends kay's, which merges that tree with the sources and is as strict as kay itself:
117
+
118
+ ```json
119
+ { "extends": "kay/tsconfig.json" }
120
+ ```
121
+
122
+ - Kay's tsconfig is as strict as kay itself: `noUncheckedIndexedAccess` types `cells[index]` as `Cell | undefined`, and `exactOptionalPropertyTypes` makes an optional field passed `undefined` say `?: T | undefined`, so plain TypeScript written without them reports errors in files no `.kay` touches. Add `"noUncheckedIndexedAccess": false` (or `"exactOptionalPropertyTypes": false`) to the app's `compilerOptions` to keep such code as it is, or write the `!` or the `?.` where the index is known to exist.
123
+ - It includes `src`, `tests`, `scripts`, the `*.config.ts` files beside it, such as `kay.config.ts`, `eslint.config.ts` and `pg-orm.config.ts`, and `.kay/types`, relative to the project's tsconfig.
124
+ - A project adds its own `compilerOptions` beside `extends`, and an `include` of its own replaces kay's, so it lists `.kay/types` again; one setting up its tsconfig by hand needs `"jsx": "preserve"`, `"jsxImportSource": "kay"`, `"module": "Preserve"`, `"moduleResolution": "bundler"` and `"rootDirs": [".", ".kay/types"]`.
125
+
126
+ - `kay/html`, `kay/dom`, `kay/dom-loop`, `kay/dom-await`, `kay/dom-try`, `kay/dom-spread`, `kay/dom-image`, `kay/pending`, `kay/i18n-links`, `kay/island`, `kay/await`, `kay/client`, `kay/arrival`, `kay/internal`, `kay/internal/title` and `kay/internal/server` are what compiled `.kay` files and kay's generated entries import, and `kay/jsx-runtime` is where TypeScript finds the JSX types of `jsxImportSource: "kay"`: the compiler's output contract rather than API, free to change in any release, never imported by an app. The root `kay` export also holds the compile-time types behind the generated shadow types, none of them for an app to name: `BindableMark`, `IslandBrand`, `HandedPart`, `HandsPart`, `HandedSignal`, `UnresolvedParameter`, `WidenedProps`, `CheckedHref`, `CheckedHtml`, `CheckedComputedHtml`, `BoundProp`, `BoundValue`, `PlainIslandProp`, `FunctionProp`, `Inferred`, `TemplateHelpers`, `TemplateValues` and `Truthy`, free to change in any release too.
127
+ - A few entries also hold plumbing no page tells an app to call, free to change in any release: the paths, providers and tracker tags of `kay/analytics` (`ANALYTICS_PATH`, `ANALYTICS_SCRIPT_PATH`, `ANALYTICS_PROVIDERS`, `CUSTOM_COLLECT_PATH`, `CUSTOM_SCRIPT_PATH`, `NOTICE_SCRIPT_PATH`, `INTEGRITY`, `TRACKER_TAGS`, `isGated`, `LazyGuard`), the collection marker, publish times and cache key of `kay/content`, and the preview session reader of `kay/server`.
128
+ - A name has one home: an entry beside a package's root exists for browser safety (`@kayjs/auth/rules`, `@kayjs/cms/form`, which an island imports without the server) and the root does not repeat its names, apart from `mount` (`kay`, `kay/mount`) and `sqliteCache` (`kay/server`, `kay/cache`).
129
+ - `kay/library` is what kay's own libraries (kayjs-auth, kayjs-ui, kayjs-mail, kayjs-cms, kayjs-ai) share with kay for their server code, such as the sanitizer's lists, sealing, locale matching, escaping and the user a library names for a request (`nameUser(request, () => id)`, read back by `userOf(request)`: kayjs-auth names the signed-in user and kayjs-ai counts them) and `configError(option, value, takes)`, the `config-invalid` `KayError` a library throws for a setting it refuses at boot, so neither keeps a copy: not API either, free to change with any minor, never imported by an app. The libraries are released in lockstep with kay, each one's peer range on kay's minor, so the same holds for what a library imports from it.
130
+
131
+ ### Reserved paths
132
+
133
+ - Naming rule: a file kay reads for one thing is singular (`server.ts`, `auth.ts`, `mail.ts`, `ui.ts`, `context.ts`, `env.ts`, `theme.ts`); a folder with one file per page, plugin, template, matcher or catalog is plural (`routes/`, `plugins/`, `mails/`, `messages/`, `params/`); a mass noun or acronym stays as is (`api/`, `content/`, `db/`); a file inside a plural folder is named after what it holds (`plugins/jobs.ts`). A route is `/_kay/<noun>` for an endpoint and `/_kay/<nouns>/` for files; the image resizer shares its variants' prefix, `/_kay/images` and `/_kay/images/<file>`.
134
+ - At the root: `kay.config.ts`, `public/` (served as is), `data/` (default SQLite and file stores, ignored by git and docker).
135
+ - Under `src/`: `routes/` (pages, layouts, endpoints, `_guard.ts`), `api/`, `plugins/` (server plugins; `plugins/jobs.ts` is the one home of queues, workflows and schedules), `messages/<locale>.ts`, `params/<name>.ts`, `content/` with `content.config.ts`, `mails/<name>.kay` with `<name>.preview.ts` beside it and `mail.ts` for the mailer, `db/index.ts` and `tables.ts`, `server.ts`, `auth.ts`, `ui.ts`, `context.ts`, `env.ts`, `theme.ts`, `app.css`, `logo.svg` (the card logo, where `card.logo` names it).
136
+ - Under `/_kay/`: `assets/` (browser build, imported files), `images` and `images/` (resizer, variants), `card`, `files/`, `action/`, `live`, `health`, `jobs` (with `jobs: { guard }`), `error`, `csp`, `vitals`, `analytics`, `push`, `search.json` and `search/`, `preview`, `draft`, `env.js`.
137
+
138
+ ### Commands
139
+
140
+ - `kay new`, `kay add` and `kay generate` are in [Scaffold with kay new and kay add](project-new-and-add.md).
141
+
142
+ - The other commands: `kay dev` is in [The dev server](dev-server.md), `kay build` and `kay start` in [Building and starting](build-and-start.md), and `kay check`, `kay render`, `kay screenshot`, `kay a11y`, `kay routes`, `kay env`, `kay doctor`, `kay completion`, `kay i18n`, `kay upgrade`, `kay explain`, `kay fmt`, `kay lint`, `kay types`, `kay lsp`, `kay mcp` and `kay docs` in [Check, inspect and tool commands](check-and-tools.md).
143
+ - `kay migrate astro [dir] [--outdir <dir>] [--dry-run] [--format text|json] [--quiet]`:
144
+ - Translate an Astro project's `.astro` files into `.kay` ones, `src/pages` into `src/routes` (`404` as `_404`, `500` as `_error`), components and layouts kept in their folder with kebab-case names and the imports of them rewritten, and `src/content.config.ts` into kay's, its zod schemas written in `s`.
145
+ - The frontmatter becomes the fence, a page's `--- server` with `Astro.url`, `params`, `cookies` and `redirect` read from `ctx`, `Astro.props` becomes `props<Props>()`, and the markup the indented template: static classes as the `.class` shorthand, `class:list` as `class`, `&&`, ternaries and `.map` as `if` and `for`, slots as `slot` and `@name` blocks, `client:idle` and `client:visible` as `hydrate`, `set:html` as `innerHTML` through `trustHtml`, a layout's `head` as a `head` block.
146
+ - It writes into the project, or into `--outdir`, never over a file that exists, formats what it writes, and lists what it could not translate at its line in the Astro file: a script Astro bundles, an `await` or `Astro.url` in a component, an endpoint, markup written another way, each commented out under a `// kay migrate:` line where it stays in the code, and Tailwind 3, as kay builds with Tailwind 4.
147
+ - An `--outdir` directory with no `package.json` gets the kay project around the pages, as `kay new` writes it without its home page, layout and stylesheet: a `package.json` with kay's scripts and the Astro project's packages, Astro's own left out, a `kay.config.ts` with the `site` and `base` of the Astro config and the layout's `<html lang>`, without `seo` defaults since the pages write their own head, a `tsconfig.json` keeping its `paths`, a server entry when the Astro config renders on demand (`output: 'server'` or an `adapter`), a static site otherwise, and Tailwind, ESLint, the Forgejo workflow and the Dockerfile when the Astro project had them;
148
+ - Its other files under `src` and `public` are copied as they are, but for `src/env.d.ts`, which only Astro reads, those beside the pages moving with them into `src/routes`, where kay routes only `.kay` and endpoint files.
149
+ - Beyond the `.astro` files: a script or markup after the layout's `</html>` is kept, `<Icon name="set:name" />` from astro-icon becomes the icon imported from `~icons/set/name`, a `?raw` import takes `with { type: 'text' }`, and the Fontsource stylesheets a file imports become `fonts` entries in the `kay.config.ts` it writes (listed instead when migrated in place); `Astro.self`, `import.meta.env` (in `.astro` files and in `src` modules), a script from another host (kay's Content-Security-Policy blocks it until `security.csp` allows it) and UnoCSS (its packages are left out, its classes pass through) are listed. The `.gitignore` it writes keeps the Astro project's own entries, its ESLint packages are left out for `@kaynooo/eslint`, and a carried `@kaynooo/*` range is listed, as the registry may hold no version in it.
150
+ - A Markdown page in `src/pages` is listed, to become a content collection's entry, and so is a `site` or `base` written as anything but a string.
151
+ - Migrated in place, the Astro project's `package.json` stays as it is, listed with the Astro packages to remove, and the `lang`, `site`, `base` and tsconfig `paths` are listed to carry over by hand.
152
+ - `kay migrate content [dir] [--dry-run]`: rewrites the files of folder collections whose `migrations` carried entries over ([details](content-cms.md#loaded-collections)).
153
+ - Every command prints its usage and options for `--help` or `-h`, and `kay --help` lists every command; `kay --version` prints the version, `--plain` or `--color never|always` set the colour of any command but `lint` and `test`, which pass every argument on, `kay` alone prints the help, and `kay __complete <words>` answers a shell's completion, which `kay completion bash|zsh|fish` wires up (`source <(kay completion bash)` in ~/.bashrc, `kay completion fish > ~/.config/fish/completions/kay.fish`, `source <(kay completion zsh)` in ~/.zshrc after `compinit`).
154
+ - A usage error, an unknown command, an option or argument a command does not take or a `refuse(reason)` from a command, prints `error: kay <command>: <reason>` with a `hint:` line (the nearest command or option for a typo, else where `--help` is) and exits 2; a command that ran and failed exits 1.
155
+ - Every command takes `--quiet`, `--format json` and `--dry-run`, or refuses it for a reason `SHARED_REFUSALS` in `src/commands/command.ts` lists, and `tests/command-options.test.ts` holds both: `--quiet` prints the problems and one summary line, without the size report, the files one by one or the next step; `--format json` prints one JSON document on one line; `--dry-run` lists what the command would write and writes nothing. A command refuses what it has nothing to do with: `kay lint` and `kay test` pass every argument on but `--format json`, and refuse `--quiet` and `--dry-run`, `kay lsp` and `kay mcp` speak a protocol, `kay types`, `kay build` and `kay dev` write generated output only, `--quiet` of `kay doctor`, `kay env` and `kay i18n missing` leaves out what passes, and `kay fmt --check` stays the verify-only form and refuses `--dry-run` beside it. `kay <command> --help` lists the options it takes.
156
+ - Colour only goes to a terminal, never under `NO_COLOR` or `TERM=dumb`, and `FORCE_COLOR` brings it back to a pipe; a redrawn line or a cleared screen only ever goes to a terminal.
157
+ - `kay build`, `kay routes`, `kay env`, `kay doctor`, `kay i18n missing`, `kay explain`, `kay fmt`, `kay migrate`, `kay not-found`, `kay screenshot` and `kay a11y` take `--format json`, as `kay check` does: stdout holds one JSON document on one line, what the app's own code prints through the console or `process.stdout` going to stderr (a write straight to file descriptor 1 is not caught), and the exit code is the text output's.
158
+ - `kay build`: `{ errors, warnings, problems }` as `kay check` prints them, a template that does not compile at its place and any other failure as one problem with `code: null`, then `failed: { stage }` when a stage stopped it, `built: { islands, stylesheets, prerendered, entries, ms, sizes, routes, stages, caches }` (`sizes` the entry's and each island's `raw` and `gzip` bytes, `modules` under `--analyze`, and per island `why` it is one, and its `cause` (`kind`, `name`, `line`); `routes` each route's `js` and `css` gzip bytes, the `islands` its pages render, `pages` prerendered, `kept` pages the build kept on its own and for a route rendered per request the `stop` that decided it and whether the scripts are an `estimated` reach; `stages` `{ name, ms }`; `caches` `{ name, cached, made }`), `exported: { pages, files, dir, ms }` and `compiled: { executable, ms }`; code that ends the process mid-build leaves the problems so far, one saying it ended and the stage, and exit code 1 for its `process.exit(0)`; `--format github` annotates the check's problems as `kay check` does, and a template that does not compile or a failed stage too.
159
+ - `kay routes`: `{ routes, unlisted }`, each route's `methods`, `path`, `kind`, `by`, and `file`, `notes`, `layouts`, `guards` when it has them, every locale's copy with its chains.
160
+ - `kay doctor`: `{ checks }`, each check's `name`, `ok`, `message`, `warning` (ok, but worth a look: no browser) and, on a failure, `fix`.
161
+ - `kay env`: `{ variables, unread }`, and `findings` (problems, as `kay check` prints them) with `--compose`, `--example` or `env` in the config, each variable's `name`, `source`, `type`, `required` (`'always'`, `'production'` or `false`), and `default`, `description` and `secret: true` when it has them; `unread` the `file` and `error` of each module that failed to load.
162
+ - `kay explain`: `{ groups, lints, errorGroups, errors }` with each lint's `name`, `group`, `level`, `since` when it has one and whole `summary`, and each error code's `name`, `group`, `summary` and `fix`; the errors only without a lint group named; or one lint's fields, its `wrong` and `right` examples included.
163
+ - `kay fmt`: `{ errors, warnings, problems, written, changed }`, what does not parse as problems.
164
+ - `kay migrate`: `{ written, kept, copied, notes }`, each note's `file`, `line`, `target` and `message`.
165
+ - A command that cannot run, options that do not go together included, prints `{ errors: 1, warnings: 0, problems: [{ severity, code: null, message }] }`.
@@ -0,0 +1,177 @@
1
+ # Proxies, security headers and compression
2
+
3
+ ## Common tasks
4
+
5
+ ### Read the visitor's address behind a proxy
6
+
7
+ `proxy` in kay.config.ts says how many proxies sit in front, so `rateLimit` and `clientAddress` count the visitor and not the proxy, `true` for one:
8
+
9
+ ```ts
10
+ export default defineConfig({
11
+ proxy: true,
12
+ })
13
+ ```
14
+
15
+ ### Allow another image host in the Content-Security-Policy
16
+
17
+ `security.csp` merges directives over kay's, `permissions` features over its `Permissions-Policy`, and `headers` adds a header such as a longer HSTS:
18
+
19
+ ```ts
20
+ import { defineConfig } from 'kay/server'
21
+
22
+ export default defineConfig({
23
+ security: {
24
+ csp: { 'img-src': ['\'self\'', 'https://images.example.com'] },
25
+ permissions: { microphone: 'self' },
26
+ headers: { 'strict-transport-security': 'max-age=63072000; includeSubDomains' },
27
+ },
28
+ })
29
+ ```
30
+
31
+ ### Try a stricter policy before enforcing it
32
+
33
+ `reportOnly` sends the merged policy as `Content-Security-Policy-Report-Only`, and `reports: true` has browsers report what it would have blocked to kay's own route:
34
+
35
+ ```ts
36
+ export default defineConfig({
37
+ security: {
38
+ reportOnly: { 'style-src': ['\'self\''] },
39
+ reports: true,
40
+ },
41
+ })
42
+ ```
43
+
44
+ ### Compress responses
45
+
46
+ In production kay compresses pages, action results and routes' responses with zstd, brotli or gzip on its own; `compress: false` turns it off behind a proxy or CDN that compresses already, and `compress: true` turns it on elsewhere:
47
+
48
+ ```ts
49
+ export default defineConfig({
50
+ serve: { compress: false },
51
+ })
52
+ ```
53
+
54
+ A server build also sends a page to a browser holding its compression dictionary, the build's 404 page, as the difference from it ([Compression](#compression)); `compressionDictionary: false` builds none, so no page names it:
55
+
56
+ ```ts
57
+ export default defineConfig({
58
+ serve: { compressionDictionary: false },
59
+ })
60
+ ```
61
+
62
+ ## Reference
63
+
64
+ ### Behind a proxy
65
+
66
+ - A server behind nginx, Caddy or Cloudflare is reached from the proxy rather than from the visitor, so the address `rateLimit` and `clientAddress` count is the proxy's for every visitor until `proxy` in kay.config.ts says how to read the visitor's:
67
+
68
+ ```ts
69
+ export default defineConfig({
70
+ proxy: true,
71
+ })
72
+ ```
73
+
74
+ - `proxy: false` is none, as left out; `proxy: true` is one proxy in front, `proxy: 2` two: the short forms of `{ hops: 1 }` and `{ hops: 2 }`.
75
+ - `hops` is the number of proxies in front, each appending the address it was reached from to `X-Forwarded-For`, so the visitor is the entry `hops` from its end: 1 for nginx or Caddy alone, 2 for Cloudflare then nginx.
76
+ - A request with fewer entries skipped an outer proxy, and its first entry is who reached the inner one.
77
+ - `header` names a header a proxy sets to the visitor's address, read instead: `{ header: 'cf-connecting-ip' }`, or `{ header: 'x-real-ip' }` for nginx's `proxy_set_header X-Real-IP $remote_addr`.
78
+ - Only a proxy every request goes through can be trusted with it: a server reachable past that proxy lets a visitor write their own, and the same goes for `hops` when an outer proxy can be skipped.
79
+ - Either is read only from a request coming from this machine, a private network (loopback, private, shared and link-local ranges) or a range `trusted` lists, so a visitor reaching the server directly is counted by their own address whatever headers they send.
80
+ - A server a CDN reaches directly from its public addresses lists them: `proxy: { header: 'cf-connecting-ip', trusted: ['173.245.48.0/20', '2400:cb00::/32', ...] }` with every range Cloudflare publishes, each entry an IPv4 or IPv6 range or a single address; nginx or a tunnel such as cloudflared in front does as well.
81
+ - `trustPrivate: false` with `trusted` trusts those ranges alone, not this machine and private networks too, for a server whose private neighbours are not all its proxies.
82
+ - A forwarded entry that is no IP address (a port is dropped, `[v6]:port` too) is ignored, and the client counts by the address it reached the server from.
83
+ - A request from a public address outside them that carries the header warns once, as such a CDN setup misses its `trusted`, and counts by its own address.
84
+ - A setting holding both `hops` and `header` stops the server, and so does one holding neither without a `key`.
85
+ - `key` names a header the proxy sets to a key shared with the server, `proxy: { key: 'x-upstream-key' }`: a request without it, or with another value, answers 403 with the security headers before anything else runs (the refusal is logged with its request id, never the key), so a process or container reaching the port directly skips nothing the proxy does. The proxy sends the key (nginx: `proxy_set_header X-Upstream-Key $upstream_key`). `key` alone counts as one proxy in front.
86
+ - The key is read from `KAY_PROXY_KEY`, else from the trimmed file `KAY_PROXY_KEY_FILE` names (a container secret), at boot, and compared in constant time. A production server with `key` and neither, or an empty one, does not boot. Off under `kay dev`, in `kay build --static`, and outside production when none is given (a warning says so, except in a test run, where an unset key is expected); `testSite({ proxyKey })` turns it on for one test site without touching the environment, sending the header by default ([Testing](testing.md)). `kay build --compile --verify` stands in a throwaway key when the build has none, as the health route it asks is open. The server's own requests (an MCP tool call, a CMS edit-URL probe) pass.
87
+ - The health route (`health.path`) is open, as the container asks it without the key, and so is the `metrics` route, which answers by its own rule (see [Metrics for a collector](production.md#metrics-for-a-collector)). `open: ['/api/push']` lists more paths, each open with what is under it; they are read after the `base` is taken off, whether the proxy did or not, and a path that merely starts like one (`/api/pushy`) stays closed. The MCP endpoint is open to this check too while `mcp.key` guards it with a bearer, its path alone ([API routes](mcp.md)).
88
+ - The proxy passes `X-Forwarded-Proto` on every location, websockets included (nginx: `proxy_set_header X-Forwarded-Proto $scheme`), as kay's cookies are `Secure` and the session's named `__Host-kay_session` over https: a request that says `http` reads no session.
89
+ - A request without the header counts as https in production when `site` is https; with no `site`, production warns once that cookies go out without `Secure`.
90
+ - A post goes back to its page as a path and never reads a forwarded header for it, so the swap works behind a proxy that ends TLS with nothing declared for it.
91
+ - Without `proxy`, a production server counts one proxy in front for a request from a private address that carries `X-Forwarded-For` (the setting `proxy: true` makes), warning once that it does, since a server reached directly through a private peer (a Docker bridge or userland proxy, an L4 balancer) would let a client pick its own address: set `proxy: 1` to confirm one proxy in front, or `proxy: false` for none; a request from a public address, or with no header, counts by the address it came from. `proxy: false` says none is in front.
92
+ - Outside production, without `proxy`, the address the request came from is the client, and a server getting requests from a private address that carry `X-Forwarded-For` warns once that every visitor counts as the proxy.
93
+ - In a plain Elysia app that `pages()` does not serve, `clientAddress(request, server, { hops: 1 })` takes the setting itself.
94
+
95
+ ### Security headers
96
+
97
+ - Every response the app sends, its own routes included, carries a Content-Security-Policy, `X-Content-Type-Options: nosniff`, `Referrer-Policy: strict-origin-when-cross-origin`, `X-Frame-Options: SAMEORIGIN` (following `frame-ancestors`, below), `Cross-Origin-Opener-Policy: same-origin`, `Cross-Origin-Resource-Policy: same-site`, `X-Permitted-Cross-Domain-Policies: none` and `Permissions-Policy: camera=(), microphone=(), geolocation=(), payment=(), usb=(), browsing-topics=()`.
98
+ - The policy:
99
+
100
+ ```text
101
+ default-src 'self';
102
+ script-src 'self' <kay's hashes>;
103
+ style-src 'self' 'unsafe-inline';
104
+ img-src 'self' data: https:;
105
+ font-src 'self';
106
+ connect-src 'self';
107
+ object-src 'none';
108
+ base-uri 'self';
109
+ form-action 'self';
110
+ frame-ancestors 'self'
111
+ ```
112
+
113
+ - Every inline script kay writes is the same on every page: the hydration bootstrap, the speculation rules, the swap of streamed blocks, with `offline` the service worker's registration, and, in development, live reload and what keeps the problems kay logs, the errors nothing caught and the sources the policy blocked until the dev tool loads. The speculation rules are the one script that comes in two forms, the short one for a page with no `data-prefetch` and the full one otherwise, and the policy hashes both.
114
+ - The policy allows them by hash, with no `'unsafe-inline'` and no nonce.
115
+ - `security` in `kay.config.ts` adjusts it:
116
+
117
+ ```ts
118
+ import { defineConfig } from 'kay/server'
119
+
120
+ export default defineConfig({
121
+ security: {
122
+ csp: {
123
+ 'img-src': ['\'self\'', 'https://images.example.com'],
124
+ 'frame-ancestors': false,
125
+ },
126
+ reportOnly: { 'style-src': ['\'self\''] },
127
+ reports: true,
128
+ headers: {
129
+ 'strict-transport-security': 'max-age=63072000; includeSubDomains',
130
+ },
131
+ },
132
+ })
133
+ ```
134
+
135
+ - `csp` merges directives over kay's, one given `false` left out.
136
+ - `'wasm-unsafe-eval'` and `worker-src 'self' blob:` join kay's directives and the app's when the islands need them, unless the app sets that directive to `false` or `'none'` (see [Wasm and workers](imported-files.md#wasm-and-workers)).
137
+ - `script-src`, and `script-src-elem` when the app sets one, keep kay's hashes whatever they list.
138
+ - With `fonts`, a `style-src` or `style-src-elem` without `'unsafe-inline'` gets the hash of their inline `@font-face` rules, and with stylesheets a page may inline (see [Styles](styles-and-assets.md#styles)) the hash of each of them, one with `'unsafe-inline'` none, since a hash would switch it off.
139
+ - `'script-src': false` leaves kay's inline scripts to `default-src`, which blocks them, islands and streamed blocks with them.
140
+ - `csp: false` sends no policy, and `security: false` none of these headers.
141
+ - `cookies` gives every cookie the app sets with `ctx.cookies.set` `HttpOnly`, `SameSite=Lax`, `Secure` over https and the `base` as its path, with no setting; `cookies: false` turns it off: see [Sessions](server.md#sessions).
142
+ - In production with `site` set, `security.hosts` is `true` unless set: a request whose `Host` is neither the site's, a locale host of `i18n`, nor listed in `hosts: ['www.example.com', '*.preview.example.com']` (a `*.` entry is one label under the domain, never the bare domain) gets a 421 with these headers, against DNS rebinding and a `ctx.url.origin` poisoned by the header; localhost and IP addresses always pass, so a health check does. `hosts: false` (or `security: false`) trusts every `Host`; with no `site` nothing is refused. `kay dev` has `KAY_DEV_HOSTS`.
143
+ - `X-Frame-Options`, for browsers that predate `frame-ancestors`, follows the policy's, a page's own sources included: `DENY` for `'none'` or no source, `SAMEORIGIN` for `'self'` alone, and none for any other source, or without the directive.
144
+ - An app's `x-frame-options` in `headers` still wins; with `csp: false` it stays `SAMEORIGIN`.
145
+ - `reports: true` has browsers report what the policy blocks to kay's own route, `/_kay/csp` under the site's `base`, through `report-to` and its `Reporting-Endpoints` header, and `report-uri` for browsers that predate them; a client may send 30 requests a minute and all clients together 600.
146
+ - The route takes both formats, logs each violation once per process for its directive, what it blocked and the page, and hands it to `onError` as a `CspViolationError` from `kay/server`, with `directive`, `blocked`, a URL or `inline` or `eval`, `url`, the page without query or hash, `disposition`, `enforce` or `report`, and, when the browser says, `source`, the script that tried as `file:line:column`, and `sample`, the start of a blocked inline script or style when the directive lists `'report-sample'`.
147
+ - A client posting more than 30 reports a minute or 64 KB at once is refused, and with `site` set, a report about a page of neither the `site` nor the request's own origin is answered `204` but neither logged nor handed to `onError`, as anyone can post one; with `i18n.domains` no report is filtered. It is noise filtering, not authentication.
148
+ - `reports: 'https://...'` sends them to that collector instead, and kay serves no route.
149
+ - `reportOnly` merges directives over the enforced policy and sends the result as `Content-Security-Policy-Report-Only`: the browser blocks nothing it allows, but reports what that stricter policy would have blocked, with `disposition: 'report'`, to try it before moving it into `csp`.
150
+ - With `csp: false`, it merges over kay's directives.
151
+ - `headers` merges headers over kay's, one given `false` not sent.
152
+ - `Strict-Transport-Security: max-age=31536000` (a year, no `includeSubDomains`, no `preload`) is sent on every response the app serves in production when `site` (or `SITE_URL`) is https, behind a `proxy` too, and never in development, for an http or unset `site`, or with `security: false`. `'strict-transport-security': false` in `headers` (or a page's `security.headers`) turns it off, and a value replaces it: `'max-age=63072000; includeSubDomains'`. A static export writes the security headers as `_headers` and `headers.nginx.conf` ([Static export](prerendering.md#static-export)), HSTS in the first only: the scaffold's `nginx.conf` sends it itself, always with one year, so a server in front of your own export sets it, in each `location` that has an `add_header` of its own too, as nginx drops the server-level ones there.
153
+ - `Cross-Origin-Resource-Policy: same-site` keeps another site from loading the images, scripts and files the app serves, so an app whose files another site embeds sends `'cross-origin-resource-policy': 'cross-origin'`.
154
+ - `Cross-Origin-Opener-Policy: same-origin` cuts a page off from a window of another site it opened, or that opened it, so a sign-in or payment popup that answers through `window.opener` needs `'cross-origin-opener-policy': 'same-origin-allow-popups'`.
155
+ - A site using a feature `Permissions-Policy` refuses, such as the microphone, grants it with `security.permissions`, merged over kay's list: `{ microphone: 'self' }` sends `microphone=(self)`, `{ geolocation: ['self', 'https://maps.example.com'] }` an allowlist (`self` is a keyword, other sources are quoted origins), `{ camera: '*' }` every origin, and `false` leaves a feature out of the policy so the browser's default applies. A `permissions-policy` in `headers` replaces the whole header.
156
+ - A header the app sets itself, in an Elysia `onRequest` or a handler, wins over kay's.
157
+ - The build's files under `/_kay/` and the image route carry kay's headers in their own responses, which Elysia does not let a later hook override: change them there through `headers`.
158
+ - A page, or a layout for every page under it, adds to them for its own responses with `security` in its `page`: `export const page = { security: { csp: { 'script-src': ['https://cdn.example.com'], 'worker-src': ['blob:'] }, headers: { 'cross-origin-embedder-policy': 'require-corp' } } }` isolates an emulator page and lets its CDN script in, the rest of the site keeping the strict policy.
159
+ - Its `csp` adds sources to the site's directives rather than replacing them, a directive the policy lacks starting from the one the browser falls back to, `worker-src` from `child-src` then `script-src`, `frame-src` from `child-src`, and `'none'` dropping out, so a page cannot tighten a directive the site sets; `false` leaves a directive out, `'script-src': false` blocking kay's inline scripts and hydration with them, as in `kay.config.ts`; `csp: false` as a page's whole value sends that page, and the pages under a layout setting it, no policy at all, as `security: { csp: false }` does the site.
160
+ - Its `headers` merge over the site's, `false` not sending one, and go out even with `security: false`.
161
+ - A layout's apply first, the page's over them.
162
+ - The swap loads a page whose cross-origin isolation differs from the current one fully, so going to and from an isolated page needs no `data-reload`.
163
+ - A static export has no server to send them: `kay build --static` writes the page without its `security` and `reload`, which the host's own headers stand in for.
164
+ - `inlineScriptHashes({ prefetch, dev, base, offline })` from `kay/server` gives the hashes, for a policy written elsewhere, such as by a proxy.
165
+ - Whatever the policy, a URL with any scheme but `http`, `https`, `mailto`, `tel`, `sms` and `blob` (and `data:` image, audio and video but not SVG, which passes only on `src` and `poster`, plain text, CSV, PDF and JSON), such as `javascript:`, bound to an `href`, `src`, `action`, `formaction`, `xlink:href`, `poster` or `data`, as a user-supplied link would be, goes out prefixed with `unsafe:`, on the server and in islands, so following it does nothing. A relative URL has no scheme and is kept.
166
+ - `links: { schemes: ['webcal', 'geo'] }` in `kay.config.ts` lists the other schemes the app trusts in a bound URL (`whatsapp`, `webcal`, `geo`, `spotify`, its own `myapp`), on the server and in islands, which read the list from a `kay-link-schemes` meta; a name is lowercase with no colon, and `javascript`, `vbscript` and `data` are refused when the config loads. A literal `a(href="webcal://...")` was never rewritten. `kay dev` logs, once per attribute, URL and page, each bound URL rewritten to `unsafe:`, naming the scheme and this option; an island's own rewrite is not logged.
167
+ - One written out as text in the template is left as it is.
168
+
169
+ ### Compression
170
+
171
+ - With NODE_ENV production, kay compresses responses itself unless kay.config.ts sets `serve: { compress: false }`, as behind a proxy or CDN that compresses already (`serve: { compress: true }` turns it on elsewhere): pages rendered per request, action results, and any `Response` the app's routes registered after `.use(await pages())` return go out (text, JSON, JavaScript, XML, SVG, ndjson and `ttf` and `otf` fonts) with zstd, brotli or gzip, whichever the browser's `Accept-Encoding` prefers (zstd, then gzip, then brotli on a tie), and `Vary: Accept-Encoding`.
172
+ - A response whose body is whole within a tick, as a rendered page is, is compressed in one go at zstd 3, brotli 4 or gzip 6, within its request's tick up to 128 KB and at most four at once off the main thread past it, the copy of a body rendered alike a second time kept (2 MB in all) so later ones are not compressed again, and a streamed body or a reply compressed once (sitemap, worker) as brotli or gzip, except a page carrying inlined stylesheets, which goes as gzip to a browser taking it, whatever weight it gives zstd or brotli, only what lies around them compressed, and its copy kept like any other's when the same bytes lie around them again, found from the pieces the render put the page together from without reading its body (see [Styles](styles-and-assets.md#styles)). A page draws its `uid()` ids, island prefixes and `await` block numbers from its route and URL, so every visit to a URL renders the same bytes unless the page reads the visitor (a name, a form carrying a fresh token), and only that kind of page is compressed again on each visit.
173
+ - A server build sends a page as its difference from a dictionary, Compression Dictionary Transport (RFC 9842, `Content-Encoding: dcz`): the dictionary is the 404 page of the build (default locale, rendered with its layouts, only when a page is prerendered and the render succeeds), written by `kay build` as `_kay/dictionary-<hash>.txt` with `Use-As-Dictionary: match="/*"` (`match="<base>{/*}?"` under a `base`, with no `match-dest`, which Chromium reads as no `Available-Dictionary` on a `fetch()` page swap) and the immutable cache, and every HTML response carries `Link: <_kay/dictionary-<hash>.txt>; rel="compression-dictionary"` and `Vary: Accept-Encoding, Available-Dictionary`. A browser fetching it once idle sends `Available-Dictionary: :<sha256>:` and `Accept-Encoding: ..., dcz` for pages under the mount point, a navigation or a `fetch()` alike, and gets `dcz` when the header names this build's dictionary exactly and `dcz` has a weight; anything else (another build's dictionary, a malformed or oversized value) gets the encodings above. A prerendered page is served from its `.dcz` copy written beside `.br` at build time (zstd 19, kept only when smaller than the `.br`, tag suffix `-dcz`); a page rendered per request is compressed on the fly at zstd 3 through `node:zlib`, whole bodies only, with its kept copies keyed by the dictionary, while a streamed page stays brotli or gzip. Off in development, with `compress: false` (no link, no `.dcz` served), with `compressionDictionary: false` in kay.config.ts (the build renders no dictionary and writes no `.dcz` copy, so the manifest names none and no page links one), in `kay build --static` and in an export, which have no dictionary; the browser fetches the dictionary under `connect-src`, so kay adds `'self'` to the app's own `connect-src` as it adds what islands need, unless the app removed the directive or set it to `'none'`, which keeps today's encodings, and no response whose own `Content-Security-Policy` sets `connect-src` (or `default-src` when it has none) to `'none'` names the dictionary, so a page with a policy of its own logs no violation.
174
+ - A public text file of up to 256 KB is kept in memory once asked for (8 MB in all) and read again only when its size or date changes, so a request for it does not read the file; a range request and a larger file stream from disk. Development reads every request. Every request looks at the file's size and date: a public file deleted under a running server answers the 404 an unknown path gets (the routes directory's `_404.kay`, else its `_error.kay`, in the visitor's locale), a runtime redirect added for its path answers, and the visit is counted as any missing path is, except for a file that goes between that look and the opening of its body to stream or compress it, which answers a plain 404 of Elysia's with no page and no count (an app giving `new Elysia({ serve: { error } })` its own handler answers it instead), and a replaced one answers its new bytes under a tag taken from its new size and date.
175
+ - A streamed page is flushed chunk by chunk, so what it sends early still arrives early.
176
+ - A strong ETag becomes weak.
177
+ - Left alone: a response encoded already, such as the build's copies, one under 256 bytes, its length known or not, one with `Cache-Control: no-transform`, and anything but text, JSON, JavaScript, XML and SVG.
package/llms/queues.md ADDED
@@ -0,0 +1,113 @@
1
+ # Queues
2
+
3
+ A `queue` runs jobs in the background, a `workflow` is a multi-step flow that sleeps and waits for events, both surviving restarts; `schedule` and `background` are in [Running in production](production.md#background-jobs).
4
+
5
+ ## Common tasks
6
+
7
+ ### Run a job in the background
8
+
9
+ A queue holds jobs that must not be lost: an action enqueues one and goes on, and the server runs it:
10
+
11
+ ```ts
12
+ // src/plugins/jobs.ts
13
+ import { queue } from 'kay/server'
14
+
15
+ export const welcomeMails = queue(
16
+ 'welcome-mails',
17
+ async ({ to }: { to: string }) => sendWelcome(to),
18
+ { attempts: 5, backoff: '30s' },
19
+ )
20
+
21
+ export default welcomeMails
22
+ ```
23
+
24
+ `src/plugins/jobs.ts` is the one home of jobs: `pages()` mounts its default export (`new Elysia().use(a).use(b)` for several), and an action imports the queue from it. `kay check` warns of a `src/jobs.ts` nothing imports.
25
+
26
+ ### Delay a job or keep one per key
27
+
28
+ `enqueue` takes a `delay`, and a `key` keeps one job per key:
29
+
30
+ ```ts
31
+ await welcomeMails.enqueue({ to: email }, { delay: '1h', key: email })
32
+ ```
33
+
34
+ ### Show a queue's jobs on a page
35
+
36
+ `live` on a queue lets an island list its waiting and running jobs, following them as they change, with no route or `live()` value written:
37
+
38
+ ```ts
39
+ // src/plugins/jobs.ts: `live: true` would send the whole payload, key, progress and last error
40
+ export const scans = queue('scans', scan, { live: ({ target }: { target: string }) => ({ target }) })
41
+ ```
42
+
43
+ ```kay
44
+ ---
45
+ import { jobs } from 'kay'
46
+ ---
47
+ for job of jobs<{ target: string }>('scans')
48
+ p {job.payload.target}: {job.status}
49
+ ```
50
+
51
+ ### Write a flow that sleeps and waits
52
+
53
+ A `workflow` runs steps, keeps their results in the job store and survives restarts. `start` and `send` are one call, the `id` names the run, and it is mounted like a queue.
54
+
55
+ ```ts
56
+ // src/plugins/jobs.ts
57
+ import { workflow } from 'kay/server'
58
+
59
+ export const onboarding = workflow<{ userId: string }, { visited: undefined }>('onboarding', async ({ input, step }) => {
60
+ await step.run('welcome', () => sendWelcome(input.userId))
61
+
62
+ const visit = await step.waitFor('visited', { timeout: '3d' })
63
+
64
+ if (!visit.ok)
65
+ await step.run('reminder', () => sendReminder(input.userId))
66
+ })
67
+ ```
68
+
69
+ ```ts
70
+ await onboarding.start({ userId }, { key: userId })
71
+ await onboarding.send(userId, 'visited')
72
+ ```
73
+
74
+ ## Reference
75
+
76
+ - `workflow<Input, Events>(name, ({ id, input, step }) => ..., options)` is an Elysia plugin like `queue`, `options` those of a queue (`store`, `attempts`, `backoff`, `concurrency`, `lostAfter`, `idlePoll`, `failedTtl`) and the run hooks below. A run is one job of the queue `workflow:<name>`, kept under its id as its `key`, on the same stores as queues, each result a row beside the job, so a step writes what its result weighs: no table of its own.
77
+ - `start(input, { key?, delay? })` resolves with the run's id (random unless a `key` is given, as for `enqueue`; the old `id` works): while a run with that `key` is live it starts nothing. `send(id, event, data?)` resolves with whether the run was waiting for that event, waking it at once in this process and within `idlePoll` in others; an event sent while the run waits for another, sleeps or has not started is kept in the run for the wait that names it, one sent while a worker holds the run is dropped; `send` resolves with whether it was taken. `status(id)` resolves with `{ status: 'running' | 'sleeping' | 'waiting' | 'failed', steps, event?, error? }`, undefined once completed. `cancel(id)` ends a run, a running one at its next step. `drain()` is a queue's.
78
+ - The function runs again from its top each time a process takes the run, and a finished step returns its kept result: so code between steps must be deterministic. Await a step before the next (two at once throw); a renamed or reordered step under a live run fails it at once, naming the step, with no retry; a result devalue cannot keep throws.
79
+ - `step.run(name, work)` runs `work(signal, { key })` and keeps its result: at least once, as a crash before the result is written runs `work` again, so pass `key` (run id and step place, stable across runs) as a charge's or mail's idempotency key. `step.sleep('3d')` and `step.waitFor(event, { timeout? })` write the run's state and give its hold back (due at the wake time, never for a wait without timeout), so the code after them runs in whichever process takes the run; their promise never settles in the claim that suspended, so a `try` around it catches nothing. `waitFor(event)` resolves with the data, with `timeout` with `{ ok: true, data }` or `{ ok: false, error }` (`timedOut` is `!ok`). `Events` types `waitFor` and `send`.
80
+ - A step that throws, or a run that dies, uses the queue's retries: a stop hands the run back at once, a dead process holds it until `lostAfter`, and a retry replays from the first step with no kept result. A kept step starts the attempts count again, so a long flow does not spend its attempts across steps. A stop or lost hold ends the run before its next step. A run keeps at most 50 events no wait named yet, the oldest dropped and logged, and a flow edited to end earlier than its kept steps completes without an error. `lostAfter` bounds the time between two sleeps or waits. `retryLater` works in a step. A worker reads every result when it takes the run, so a run keeps 2 MB of them at most (past it the run fails, no retry: return an id, keep a large result elsewhere) and no secrets. An error is kept to 2,000 characters. In tests `site.runJobs()` runs the due steps, and `setSystemTime` moves a sleep or a timeout along.
81
+ - A `JobStore` needs `update`, `release` and `state` for a workflow, as `memoryJobs`, `sqliteJobs` and `pgJobs` have (no schema change): `update(id, { payload, runAt? }, { until })` writes only while `until` is the job's hold and counts the run as started once, `update(id, change, { payload, now })` writes only while the job is not held and its payload is still that text, which is how an event wakes a run once against a timeout. `steps(id)` and `update`'s `change.steps` (`{ from, values }`, dropped with the job) keep each result once; a store without them keeps them in the payload, and a run kept so moves to rows at its next step.
82
+
83
+ - An action calls `await welcomeMails.enqueue({ to: email })`, or `enqueue(payload, { delay: '1h' })` to run it later.
84
+ - `queue(name, handler, options)` is an Elysia plugin: the server using it runs the queue's jobs from start to stop, `concurrency` at a time, 1 by default, and waits on stop for the runs in progress.
85
+ - A process that only enqueues, a script say, need not use it.
86
+ - Jobs wait in a store shared by every process of the machine opening it: `sqliteJobs('data/jobs.sqlite')` by default, its file and directory created by the first job enqueued or schedule locked, which every schedule of a production server does by default, so its `data/` must be writable there; a dev or test server whose queues never get a job writes nothing.
87
+ - `sqliteJobs(path)` and `memoryJobs()` from `kay/server` make a `store` of another file or one kept in the process, and `JobStore` is the shape of an app's own.
88
+ - `pgJobs(db)` keeps the jobs in Postgres, for replicas on several machines: `db` is a Bun `SQL`, a pg-orm `Database` or a connection URL, and `store: { jobs: pgJobs(db) }` in kay.config.ts gives it to every queue and locked schedule. On pg-orm it needs nothing but the tables in the app's schema: `import { jobTables } from 'kay/pg-orm'` and `new Database({ tables: [...yourTables, ...jobTables] })` (pg-orm is an optional peer of kay, which installs and builds without it), and `db.sync()` or `pg-orm generate` creates `kay_jobs` and `kay_locks` with their indexes, matching what the store expects, for the owner's migration to run, so the app template's `app_rw`, which creates nothing, finds them (`import { pgJobs } from 'kay/server'` then `pgJobs(db)`). Without pg-orm migrations, `pgJobs` looks for them and creates them only when missing, which takes a role that may create tables, else the owner runs `import { createJobTables } from 'kay/server'` then `await createJobTables(db)` (idempotent, safe from replicas at once: an index missing on tables already there is built by one replica at a time, under a Postgres session lock, and the others wait for the unique ones before enqueuing, which needs a direct or session-mode connection, not a transaction-mode pooler) in a boot script; pg-orm then sees those two as unknown tables, so name them in `ignoreTables`: `import { jobTableNames } from 'kay/server'` lists their names, `ignoreTables: [...jobTableNames]`. A claim is one `UPDATE` over `FOR UPDATE SKIP LOCKED`, and a hold lasts from the database's clock, whichever replica claims, so replicas' clocks need not agree.
89
+ - `pgData(db)` is `sqliteData(path)` on Postgres, for replicas on several machines: `import { pgData } from 'kay/server'` then `store: pgData(db)` in kay.config.ts keeps the sessions, `cached` values, jobs, schedule locks, rate counts, presence members, `live()` values, Web Vitals, `store.kv`, the 404 log and the redirects added while the site runs in `kay_*` tables of the same database, `db` a Bun `SQL`, a pg-orm `Database` or a connection URL as `pgJobs` takes. The tables are created when missing, which takes a role that may create tables; else the owner awaits `createDataTables(db)` from `kay/server` (idempotent, safe from replicas at once, the jobs' tables included) in a boot script and names `dataTableNames` from `kay/server` in pg-orm's `ignoreTables`. Replicas hear each other's `invalidate`, `live()` changes, room messages and queued jobs within a second through `NOTIFY`, polling as the fallback ([Stores](stores.md#postgres-notifications)), so a pooler in front of Postgres is fine (a missing index is built on a session connection). One timer per connection serves all three, a read or write that takes over 30 seconds is given up, and live writes waiting behind a database that stopped answering are dropped (logged) past 10,000. Every call of the job, session, rate, cache, notification, vitals and rooms stores is given up after 8 seconds (inside the default `serve.shutdownTimeout`) with a logged error rather than hanging, the sweeps, `deleteWhere`, `prune` and the job listings after 150 seconds as they scan a table, a rooms `state` or `update` within 8 seconds however many writes are queued before it, room writes waiting behind it are dropped past 1,000, and a connection `pgData` or `pgJobs` opens from a URL times out connecting after 10 seconds, closes when idle for 60 and is replaced after 30 minutes. A silent database holds no 404 over 1 second (the redirects last read answer, one warning logged), and `kay dev` makes no table. A room's state is kept in `kay_room_state` too, changed one update at a time across replicas, so `rooms({ store: pgData(db).rooms, state })` works with `state` and `update` resolving promises ([Rooms](rooms.md)). One database belongs to one app: the first app to boot on it records its package.json `name` in `kay_meta`, and another app starting on it fails its boot naming both, since `kay_*` tables carry no app scope and a `mail` queue, a `live()` id or a cache key would be shared; give each app its own database. A renamed app takes its database over by starting once with `KAY_ADOPT_DATABASE=<the old name>`; an app with no package.json name claims nothing. Rate keys are pseudonymised by the app secret, else by a random key in `kay_meta` every replica reads. `pgData(db).sessions` has `deleteWhere` like `sqliteSessions`. A store opened outside `kay dev` (a script, a test, a one-off process) is closed with `await store.close()`, or `await using store = pgData(url)`, which ends the polling, timers and room membership of every kind and closes the pool when `db` was a URL, within about 5 seconds whatever a statement in flight holds; a `SQL` or a pg-orm `Database` handed in stays open, as it is the caller's. A `kay dev` reload closes the store of the module that ran again by itself.
90
+ - `jobs: { guard }` in kay.config.ts serves `/_kay/jobs` in production: each queue's waiting, running and failed jobs with payload and error, and forms to retry or delete one. A `workflow()` run shows its state (running, sleeping until a time, waiting for an event, failed) and its kept steps, with a form to send the event it waits for (a field takes its data as JSON) and one to cancel it, in the Jobs tab and on this page alike. `guard` is a guard, a list or `{ load }`, such as `ctx => ctx.locals.auth.requireAdmin()`, run on every request; without one the boot stops. The page is plain HTML with no script, answers `no-store` and `noindex`, `jobs: { guard, path }` moves it, and `kay dev` serves none (its Jobs tab covers it).
91
+ - A `JobStore` may also have `revive(id, runAt)`, which puts a failed job back to wait with its attempts given back and resolves with whether it did (false for a job not failed, or whose key a live job holds since), as `sqliteJobs`, `memoryJobs` and `pgJobs` do: the dev tool's Jobs tab retries a failed job with it ([The dev tool](dev-tool.md#reference)). `jobs(queue, { limit?, failed? })` and `failed(queue, limit?)` list the jobs by when they are due, the earliest first, and may cut their result in the store's query: the Jobs tab and page ask for 101 of each, so a long queue is not read whole, and a store ignoring the options is cut after.
92
+ - A `JobStore` may also have `state(queue, ref, now)`, `progress(id, until, progress)` and `release(id, until, runAt?)`, and its `add(job)` may resolve with the id of the live job already holding `job.key`, in which case it stored nothing: `sqliteJobs` and `memoryJobs` do all of these. A file made by an older kay gains the columns on first open. A run's writes about its job are matched against the hold it was claimed with, so one that outlived its hold changes nothing of the job another process holds: `claim` may return the hold it stored in the job's `heldUntil` (`pgJobs` does, from the database's clock; the `until` asked for stands otherwise), and `complete(id, until?)`, `retry(id, runAt, error, until?)` and `fail(id, error, payload?, until?)` write only while `until` is still the job's, `remove()` and the purge naming none. A store ignoring the extra argument keeps working, without the guard. `retry` and `fail` may resolve with `false` for a write the guard refused, and the run then logs nothing and calls no `onError`, the job being the other process's now; resolving with nothing counts as applied.
93
+ - `store` in kay.config.ts is the one store of the app, `import { sqliteData } from 'kay/server'` then `store: sqliteData('data/app.sqlite')`, which keeps the data of every `session()`, the values of every `cached` and `live()`, the jobs of every queue and locked schedule, and the counts of every rate limit, each naming no `store` of its own, the members of presence rooms and the Web Vitals of `vitals()`, in one SQLite file, so replicas sharing it count together. `store: { sessions, cache, live, jobs, rates, rooms, vitals, notifications }` takes a `SessionStore`, a `CacheStore`, a `LiveStore`, a `JobStore`, a `RateStore`, a `RoomStore`, a `VitalsStore` and a `NotificationStore` of your own, each optional, Redis say; `rooms` is where `presence()` keeps who has a page open ([Presence](live-values.md#presence)). A `store` on a session, a `cached` call, a queue, a schedule or a limit wins, the proof-of-work solutions already used count there too, a `store.rates` needs `peek` for a limit counting only the posts that went through, kay's limits (actions, API routes, `rateLimit()`, proof of work, its own routes) and kayjs-auth's count in memory when their rates store fails, and for ten seconds after one takes over 8 seconds ([Rate limits](rate-limits.md#reference)), and a `bun test` site keeps all of them in memory.
94
+ - `enqueue(payload, { key })` keeps one job per key: while a job of the queue with that key is waiting or running, it stores nothing and resolves with that job's id, whichever process holds it; the duplicate's payload is dropped, even one enqueued while the run goes, so an app that needs a rerun after it enqueues without a key. Once the job completed or was kept as failed the key is free. The key is a non-empty string, apart per queue, and needs a store with `state`, which `sqliteJobs`, `memoryJobs` and `pgJobs` have; a custom store without it throws a `config-invalid` error rather than not dedupe.
95
+ - `job(key)` or `job({ id })` resolves with `{ id, status, attempts, error? }`, `status` `'waiting'` (due, or waiting for a retry, its `error` the last run's), `'running'` or `'failed'`: the live job of the key, else its last failed one, `undefined` once it completed. An action returning it is what a page polls.
96
+ - `throw retryLater('30s')` from a handler (`retryLater(wait)` from `kay/server`, a positive duration) runs the job again after the wait without spending an attempt: the store's `release(id, until, runAt)` gives the claim's attempt back and makes it due then, so a job asking 10 times with `attempts: 3` is still waiting, logged at info, never `onError`. It repeats as long as the handler throws it, so one that should stop throws an error of its own; a store without `release` counts it as a failed attempt, with a warning.
97
+ - A handler is `(payload, signal, job)`: `job.id`, `job.attempts` (runs started, this one included) and `job.progress(value)`, which reports how far the run is, any devalue value, typed by `queue<Payload, Progress>`'s second argument. Reports are written in the background, one write at a time with the latest waiting, so reporting per item is cheap; `job(key)` reads the latest back as `progress` while the job runs, after it failed too, and a retried job's next claim clears it. A report after the run ended is dropped, as the store writes it only while the run's hold is the job's; a failed write is logged, not thrown. A store without `progress` logs once that nothing is kept.
98
+ - To show it, an action returns `job(key)` and a page or island polls it, as `export const syncState = action(async () => sync.job('anilist'))` called from an island: kay adds no route of its own, so the app decides who may see a job. The method is `job`, not `state`, which Elysia's own `.state()` already is.
99
+ - `live: true` on a queue lets `jobs<Payload, Progress>(name)` from `kay` read its waiting and running jobs in an island, the earliest due first, 100 at most: `{ id, key?, status: 'waiting' | 'running', attempts, runAt, error?, progress?, payload }`, `runAt` a `Date`. `live: (payload, { key, error, progress }) => shown` sends `{ id, status, attempts, runAt, payload: shown }` alone, so a secret in the payload, the key or a run's error stays on the server; a job whose function throws is left out of the list, logged once. The page proves the queue it read as any live value ([Live values](live-values.md#live-values)), so whoever may render the page may follow the list, its guard deciding; a queue without `live` cannot be read, a `config-invalid` error at the render. The process changing a job tells its tabs within 50 ms, a burst of changes read once; one a tab follows the list through reads the store again every second, which is how what another worker or replica did reaches it. A render after a change, or of a list older than a second, reads it again: at once from `memoryJobs` and `sqliteJobs`, while a render on `pgJobs` or a store answering with promises shows the list as last read, the page's connection then bringing it up to date. A `JobStore` may have `live(queue, now, limit?)`, the waiting and running jobs with their status in one query, as `sqliteJobs`, `memoryJobs` and `pgJobs` do; a store without it is listed with `jobs` and asked `state` job by job. No start time is kept: `status` and `attempts` tell a run started. A `workflow()` has no `live`.
100
+ - Under `bun test` the default is in memory.
101
+ - Each job runs in one process.
102
+ - The payload goes through devalue, as cached values do: dates, maps and sets survive, a function or a class instance throws from `enqueue`.
103
+ - A run that throws is retried: `backoff` after the first failure, 10 seconds by default, twice as long after each next one, until `attempts` runs in all, 5 by default, each failure retried logged as a one-line warning with its attempt, its wait and the error's message.
104
+ - Hooks, told as [hooks](hooks.md) say (a throw is reported with source `queue.onStart` and never fails the job): `onStart({ id, payload, attempts })` before each run, `onSuccess({ id, payload, attempts })` once it ran, `onRetry({ id, payload, attempts, error, wait })` for a failed attempt that runs again, and `onError({ id, payload, attempts, error })` after the last. A workflow's (source `workflow.*`) get `{ id, input }` (`onRetry` and `onError` also `attempts` and `error`, `onRetry` `wait`), `onStart` once per run, not after a sleep, a wait or a retry; a stop in the first attempt before any step is kept, or a run from an older kay, may tell it again. A schedule takes `onStart({ schedule, boot })`, `onSuccess` and `onError` (with `duration` ms, `onError` also `error`) in its options, source `schedule.*`. Hooks are awaited (10 s each) in the worker slot and spend `lostAfter`, counted from the claim; a job's hooks share one `payload`, read-only; and with `concurrency` above 1 a retry's `onStart` may run before the previous `onRetry` finished; `context.request` is undefined in a job, and an `AsyncLocalStorage` or OpenTelemetry span the app entered around `listen()` does not reach workers.
105
+ - The last failure keeps the job as failed, logs it with its stack and hands `{ payload, error }` to `onError`; `failed()` lists the failed jobs, oldest first.
106
+ - `lazy: true` starts no worker with the server: the first `enqueue`, or `queue.activate()`, does, so a queue an app may never use has no idle poll; a job already stored waits until then (kayjs-mail's list queue).
107
+ - A failed job is kept 30 days from when its last attempt was due, payload included, then dropped by the workers, and by any `enqueue`, `failed()` or `remove()` of the queue in a process running none; `failedTtl` sets another duration, or `false` to keep it until removed. `redact(payload)` gives what a job keeps in place of its payload once it is given up, such as a mail without its body; `onError` still gets the whole payload. A custom `JobStore.fail(id, error, payload?)` stores that payload, and a store ignoring it keeps the job whole.
108
+ - `remove(id)` removes a job, and `remove(match)` every waiting or failed job whose payload `match` returns true for, such as a person's mails once they asked to be erased, resolving with how many went; an app's own `JobStore` takes a function only when it has `jobs(queue)`.
109
+ - An idle queue looks at the store from one worker, which is how a job another process enqueued is noticed: 1 second after a job, then twice as long after each empty look up to `idlePoll`, 10 seconds by default, so such a job waits 10 seconds at worst. On Postgres it is told within a second. A job enqueued in this process, or delayed to a time the store knows, still runs at once, and a retry is picked up when due. `idlePoll: '1s'` looks every second, `'30s'` asks the database less often; it takes at least `1s`. A custom `JobStore` may have `prune(queue, before)` to drop the expired failed jobs in one call.
110
+ - A store that fails, a SQLite file locked past its timeout say, is logged once as the outage starts and once as it ends, its workers asking it again later and later meanwhile, up to a minute apart.
111
+ - A handler takes `(payload, signal, job)`, `job` below: the `AbortSignal` aborts at `lostAfter`, so a handler passing it on stops instead of running beside the retry, and as the server stops, when a job it gives up on is released with `release(id, until)` of the `JobStore`, clearing the hold only while `until`, the one it was claimed with, is still the job's (optional): back without waiting out `lostAfter`, its attempt not counted, instead of held until `lostAfter` and retried after its backoff. Without `release` the job is retried as before.
112
+ - A process that dies running a job leaves it held: it runs again once `lostAfter` has passed since it started, 10 minutes by default. A run still going as `lostAfter` ends counts as a failed attempt, so its worker moves on, its handler's signal aborted, so a handler ignoring it runs on beside the retry, and a job longer than `lostAfter` needs a longer one, and a job whose process died during each of its `attempts` is kept as failed without running again, rather than crash every process that takes it.
113
+ - `drain()` runs every job whose time has come, here and now, until none is left, and waits for a run a worker already took (up to its `lostAfter` for one that never ends), except inside a job, which includes work the job spawned (a timer, a promise left running) and then does not wait, and a run counts once however many drains waited for it; in tests `site.runJobs()` from `kay/test` does it for every queue.