@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,252 @@
1
+ # Components
2
+
3
+ ## Common tasks
4
+
5
+ ### Write a component taking props
6
+
7
+ Props are declared once, with the `props<T>()` macro, destructured with their defaults:
8
+
9
+ ```kay
10
+ ---
11
+ import type { Todo } from './todo'
12
+
13
+ const { todo, size = 'md', onToggle } = props<{
14
+ todo: Todo
15
+ size?: 'sm' | 'md'
16
+ onToggle?: (id: number) => void
17
+ }>()
18
+ ---
19
+ li(class={size})
20
+ input(
21
+ type="checkbox"
22
+ checked={todo.done}
23
+ onChange={() => onToggle?.(todo.id)}
24
+ )
25
+ span {todo.title}
26
+ ```
27
+
28
+ ### Let a caller style the parts of a component
29
+
30
+ `part="head"` on an element, or a component call, lets the caller style it by name: `Card(class={{ root: 'mt-4', head: 'p-6' }})`, or a string for the root. The component declares nothing, see [Style a part of a component](styles-and-assets.md#style-a-part-of-a-component).
31
+
32
+ ### Give a component variants
33
+
34
+ `const card = recipe({ parts, variants, defaults })` from `kay` holds the classes by part and variant, and the variants become typed props with no declaration: see [Give a component variants](styles-and-assets.md#give-a-component-variants).
35
+
36
+ ### Restyle any component from the app
37
+
38
+ `src/ui.ts` with `defineUi` sets the parts and variants of any component, a library's included, without touching it: see [Restyle a component from src/ui.ts](styles-and-assets.md#restyle-a-component-from-srcuits).
39
+
40
+ ### Keep state that changes
41
+
42
+ A signal holds it, read by calling it and written by assigning it, in the template as in the script; a memo derives a value from it:
43
+
44
+ ```kay
45
+ ---
46
+ import { signal, memo } from 'kay'
47
+
48
+ const count = signal(0)
49
+ const double = memo(() => count() * 2)
50
+ ---
51
+ button(onClick={() => count++}) Clicked {count()} times, {double()} doubled
52
+ ```
53
+
54
+ ### Bind a prop to the parent's signal
55
+
56
+ A child that writes the parent's state types the prop `Bindable<T>` from `kay`, and reads and assigns it as a plain name, with no call. The parent binds it to a signal with `bind:`, and an assignment in the child writes that signal; with a plain value, `Toggle(open={false})`, the assignment stays in the child until the parent's value changes:
57
+
58
+ ```kay
59
+ ---
60
+ import type { Bindable } from 'kay'
61
+
62
+ const { open } = props<{ open: Bindable<boolean> }>()
63
+ ---
64
+ button(onClick={() => open = !open}) {open ? 'Hide' : 'Show'}
65
+ ```
66
+
67
+ ```kay
68
+ ---
69
+ import { signal } from 'kay'
70
+ import Toggle from './toggle.kay'
71
+
72
+ const open = signal(false)
73
+ ---
74
+ Toggle(bind:open={open})
75
+ if open()
76
+ p Details
77
+ ```
78
+
79
+ ### Run code when a value changes, on a timer or on an event
80
+
81
+ `effect`, `watch`, `debounced`, `every` and `listen` each have their task in [Effects and lifecycle](effects.md#common-tasks).
82
+
83
+ ### Read data on the server
84
+
85
+ A page or a layout reads it in a `--- server` fence, which never reaches the browser, and hands it to the template by name:
86
+
87
+ ```kay
88
+ --- server
89
+ const greeting = 'Hello'
90
+ --- script
91
+ import { signal } from 'kay'
92
+
93
+ const count = signal(0)
94
+ ---
95
+ p {greeting}
96
+ button(onClick={() => count++}) Clicked {count()} times
97
+ ```
98
+
99
+ ### Render every component of a folder
100
+
101
+ `import.meta.glob` imports every file a pattern matches, as Vite's does:
102
+
103
+ ```kay
104
+ ---
105
+ import type { Component } from 'kay'
106
+
107
+ const cards = import.meta.glob<Component>('../cards/*.kay', { eager: true, import: 'default' })
108
+ ---
109
+ for Card of Object.values(cards)
110
+ Card
111
+ ```
112
+
113
+ ### Make a component generic
114
+
115
+ Type parameters on the script fence line, inferred at each use from its props:
116
+
117
+ ```kay
118
+ --- <T extends { id: number }>
119
+ const { items, show } = props<{ items: T[], show: (item: T) => string }>()
120
+ ---
121
+ ul
122
+ for item of items
123
+ li {show(item)}
124
+ ```
125
+
126
+ ## Reference
127
+
128
+ ### File layout
129
+
130
+ - Fences come first, in any order, one of each, then the template. All are optional.
131
+
132
+ | Fence | What it is | Allowed on |
133
+ | --- | --- | --- |
134
+ | `---` | The component script, run wherever the component renders | Every `.kay` file; written `--- <T>` for a generic component |
135
+ | `--- script` | The same fence, for a script that follows a `--- server`, `--- module` or `--- style` fence, where a bare `---` would close that one; as a file's first fence it is the `deprecated-script-fence` lint | After another fence |
136
+ | `--- server` | Code run on the server for each request, never sent to the browser | Pages, layouts and the other `_` route files; `fence-invalid` on a component |
137
+ | `--- client` | Replaces `---`: the component renders in the browser only, `--- client <T>` when generic | Components; `client-route-fence` on a page, a layout or a special page, `fence-invalid` beside `--- module` |
138
+ | `--- island`, `--- static` | Replace `---`: pin the component as an island, or hold it to not being one | Components; `island-marker` for `--- island` on a page, a layout or a special page |
139
+ | `--- module` | Module-level code, run once per bundle, whose exports other files import | Every file; no props, and not on a `--- client` component |
140
+ | `--- style` | CSS scoped to the component | Every file |
141
+
142
+ - `---` holds the component script: imports, props, signals, functions. It runs wherever the component renders.
143
+ - `--- server` runs on the server for each request and never reaches the browser. A component has none: it takes its values as props, which the page or layout computes in its own `--- server`.
144
+ - `--- client` in place of `---` makes the component render in the browser only, generic ones written `--- client <T>`; see [Islands](islands.md#islands). `--- island` makes it an island and `--- static` holds it to staying one that is not, in the same place and with the same generic form.
145
+ - `--- module` holds module-level code, run once per bundle rather than per render: `export const visits = signal(0)` or `export function label(n: number)` there are values other files import from the `.kay` file, typed as written (`import { label } from './counter.kay'`). It takes no props and no default export, and a `--- client` component has none. Module state is per bundle: the server's copy and the browser's are not shared. A signal exported from it is read by an importer as `visits()` and written as `visits = 1`, as one a `.ts` module exports.
146
+ - `--- style` holds CSS scoped to the component: kay adds a `data-k-<id>` attribute to every element the template writes and ends each selector on it (before a pseudo-element, which keeps its place), so `.card { color: red }` reaches this file's `.card` alone, and the rule weighs one attribute more. `:global(.x)` is the escape, `:global(body) .card` scoping `.card`, a list `:global(.a, .b) .card` global in each entry, and `@media`, `@supports`, `@layer` and `@container` bodies are scoped alike; a rule nested inside another is scoped on its own selector, and a `@keyframes` name is scoped to the component with the `animation` and `animation-name` values that use it (`@keyframes :global(spin)` keeps `spin` for other components to use). A component called from the template keeps its root unscoped, reached through `class` and parts, and slotted content carries its writer's attribute. The CSS joins the page stylesheet as an imported one does (Tailwind's `@apply` works, unused classes are cut).
147
+ - `kay check` reads the style fence for `unused-selector` (warn: a rule no element of the template can match) and `unreachable-selector` (error, `:global(...)` its offered fix: a rule ending on `:root`, `html` or `body`).
148
+ - A fence ends on a `---` line, or on a `--- server`, `--- client`, `--- island`, `--- static`, `--- script`, `--- module` or `--- style` line, which opens the next fence.
149
+ - Imports, `type` and `interface` declarations are module level, except a type taking the `typeof` a name the script declares, which stays inside the component.
150
+ - Both fences may import the same name; the server fence's copy is dropped.
151
+ - A fence holds TypeScript only: markup goes in the template, and JSX in a fence is reported.
152
+
153
+ ### Every name is imported
154
+
155
+ - Every name is imported where it is used, in a `.kay` file and in a `.ts` module alike: `import { signal, memo } from 'kay'` in a script, `import { t } from 'kay/i18n'` for the translation, `import { cached } from 'kay/cache'` in a server fence. A name used with no import is a type error, `Cannot find name 'signal'`, and `kay check --fix` writes the import of any name a `kay/*` entry exports (`files` of `kay/server`, `cached` of `kay/cache`) that a `.kay` or `.ts` file uses with none, which the editor offers as a quick fix. The import line is what makes a component an island or keeps it static: a script importing only the values that compute the same on both sides (`route`, `localPath`, `withBase`, `s`, `apiUrl`, `ApiError`, `publicEnv` and the rest listed in [Islands](islands.md#islands)) keeps the component static. A type is imported with `import type { Signal } from 'kay'`.
156
+ - `kay/server` also exports `s`, so a server module (`env.ts`, an API route) imports `defineEnv` and `s` from one path; a module an island also imports takes `s` from `kay`, which has the lighter browser build.
157
+
158
+ ### Props
159
+
160
+ - Props are declared once, at the top level, with the `props<T>()` macro.
161
+ - Destructure one level deep and read nested fields as `todo.title`. `const all = props<T>()` also works and reads as `all.todo`.
162
+ - Defaults go in the destructuring. A default applies only to an `undefined` prop (`null` stays `null`), and runs only then, once per component, the first time the prop is read.
163
+ - Props stay reactive: the compiler turns each destructured name into a live read. A read at the top of the script, outside a function, `memo` or `effect`, runs once, so `const last = items.length - 1` keeps the first length: write `const last = () => items.length - 1` and read `last()`.
164
+ - Props are read-only.
165
+ - To require children or a block a template only passes on with `slot`, type it and destructure nothing: `const {} = props<{ children: Snippet }>()`, as a destructured name nothing reads is `unread-name`.
166
+ - A prop holding an action is typed `Action<never, unknown>`, or `NoInputAction<unknown>` for one without input; see [Pass an action to a component](actions-from-islands.md#pass-an-action-to-a-component).
167
+ - A prop holding a component is typed `Component<Props>` from `kay` and drawn by its capitalised name, one holding an icon with `svg({...icon})`; see [Draw an icon or a component chosen by a value](templates.md#draw-an-icon-or-a-component-chosen-by-a-value).
168
+ - A page has no props: its data comes from its `--- server` fence.
169
+ - A prop is a plain name in the template, `{title}`, not `{title()}`.
170
+
171
+ ### Signals
172
+
173
+ - `signal(value)` from `kay` makes state; `signal<T>()` starts as `undefined`.
174
+ - A signal or a memo is read by calling it, `count()`, in the template as in the script.
175
+ - In the template, one named bare where its value goes, `{count}` or `if count > 1`, is an error, `uncalled-signal`, which `kay check --fix` calls.
176
+ - Named bare as a function's argument it passes the signal itself; an argument typed `unknown` or `any`, `String(count)`, is `uncalled-signal`: call it there, or write `count as Signal<number>` to hand it on on purpose.
177
+ - `bind:value={query}` and `.set`, `count.set(c => c * 2)`, take the signal itself too.
178
+ - A signal is written by assigning it, in the template and the script alike: `count = 0` compiles to `count.set(0)`.
179
+ - `count += step` and `count++` compile to an updater, `count.set((c) => c + step)`, so an effect writing it does not track it.
180
+ - `.set` stays for an updater of your own, `count.set(c => c * 2)`; `count.set(0)` is reported as `signal-set-call`, which `kay check --fix` assigns, for `consent` from `kay/analytics` too, when the file imports it from `kay/analytics` itself: one re-exported through a module of the app (`export { consent } from 'kay/analytics'`) is read as that module's, which the check does not follow. A signal held in a member, `state.open.set(true)`, is not: without types it looks like a `Map`'s `set`.
181
+ - Assigning works on any signal a `const` or an import holds, wherever it was made: the script's own, a module's, a re-export, one a function returns or a destructuring gives, and a prop typed `Bindable<T>`.
182
+ - `kay check` reports assigning a memo, or a `const` or an import holding no signal, at its name; a `const` plainly holding none, `const n = 1` or `const seen = new Set()`, is a compile error.
183
+ - Assigning writes a signal wherever it sits: one a `const`, an import, a `let` or `var` set to `signal(...)` holds, and also one in an object's property or an array element, `box.count = 1`, `list[2]++`, or in a `let` set from a function's result. The compiler cannot tell those from a plain write, so the runtime does: a signal there is written, anything else assigned, and `kay check` types the write by what the target holds, `box.count = 'x'` being a type error for a `Signal<number>`. A function assigned there, a signal included, replaces what was held. A target kay sees holds no signal, a literal or `new Map()`, is assigned as written, and so is a field of `this`, a write beside another write, a `let` written with an `await`, a compound write holding an `await`, and a `let` update whose value is read: use `.set` there. A `readonly` property or array element holding no signal, written this way, is a `kay check` error, as in plain code.
184
+ - `bind:name={signal}` on a component needs a signal and a prop typed `Bindable<T>`; a child hands it on with `bind:name={name}`, through any number of levels. `bind:` on a component makes the parent an island. `...rest` and a props spread hand a `Bindable` prop on whole; a member of `rest` is a value and `bind:` refuses it. `kay check` reports a prop not typed `Bindable`, and a memo or a value that is no signal.
185
+ - A prop is always a value: a parent hands a signal's or a memo's value, `Toggle(open={open()})`, kept current through a getter, or binds a `Bindable<T>` prop with `bind:`.
186
+ - `persisted`, `queryParam` and `linked` signals read and write as `signal` ones do; a `selection`, a `resource` or a `socket` is called or read through its members.
187
+ - `kay check` narrows a signal or memo a template expression calls within that expression: `{error() && error().message}`, with `error` a `signal<Error>()`, checks.
188
+ - A write in between, as by a function the expression calls, is not seen by that narrowing.
189
+ - Reads inside a function the template writes, a handler or a `.map` callback, run later and are not narrowed at all: copy the value into a `const` in the script, or assert it, `sent()!`.
190
+
191
+ ### State mutated in place
192
+
193
+ - `store(obj)` from `kay` returns a proxy over a plain object or array that tracks every read per property and notifies on every write: `game.coins += 1`, `game.miners.push(m)`, `delete game.flags.x`, no setter and no copy. It suits state a loop mutates, such as a simulation at 20 ticks a second.
194
+ - A read subscribes to exactly the property it reads, at any depth, so `{game.miners[0].ore}` re-runs only when that `ore` changes. Reading a key that does not exist yet subscribes to it, and adding it notifies; `in` subscribes to its key, `Object.keys`, spread and array iteration to the key set, an array to its `length` too.
195
+ - Writing the value a property already holds notifies nothing. Writes coalesce into one run per flush like a signal's, and inside `batch(() => ...)` readers run once at its end. `push`, `splice`, `sort` and the other array mutators work as written, and an effect calling one is not subscribed to the array.
196
+ - Only plain objects and arrays are tracked, deeply and lazily. A `Map`, a `Set`, a `Date`, a class instance and a function are kept as written and not tracked, and a dev build warns once for a Map, a Set or a Date held in a store or given to `store()`.
197
+ - For a collection use `reactiveMap(entries?)` or `reactiveSet(values?)` from `kay`, a real `Map` or `Set` that tracks its reads and notifies on its writes: `const picked = reactiveSet<number>()`, `picked.add(id)`, `{picked.has(row.id)}`. It also sits inside a store as a value, `store({ picked })`, kept as it is. It costs nothing on a page that does not import it, which is why `store()` does not track a Map or Set itself.
198
+ - `has(x)` and `get(x)` re-run only when `x` is added, removed or (for `get`) set to another value; `size` and a Map's `keys()` re-run as entries come and go; iteration, `values()`, `entries()`, `forEach` and a Set's native algebra (`union` and the rest) re-run on any change. A plain object held reads back tracked as in a store, and an object key is found by the object as read. An iterator runs over the collection as it was when it was asked for, so an entry added during a loop is not visited.
199
+ - A Date's setters (`setHours`, `setTime`) notify nothing: assign a new one, `game.due = new Date(ms)`, or hold the time as a number or in a `signal`. A Date is not wrapped because it is replaced far more often than mutated.
200
+ - A store is not a signal: read and write it as the plain object, with no call and no `.set`. It is a plain value for a prop, so a child island typed with the object reads it tracked; assigned into another store it stores the raw object, and `includes` on an array of objects needs the object as read from the store.
201
+ - `snapshot(store)` from `kay` is a plain deep copy with no proxy in it and nothing tracked, for saving or sending. A `reactiveMap` or `reactiveSet` inside is copied to a plain `Map` or `Set`, any other `Map` or a `Date` is kept by reference.
202
+ - A store made while an island renders keeps its state across a `kay dev` hot swap, as a signal does. A key read in an effect and then gone, such as an entity id that despawned, leaves nothing behind once the effect is disposed. An `undoable` optimistic change does not cover store writes: a store changes in place and is not rolled back.
203
+ - On the server a store reads as the plain values, and one made at module level is shared by every request like any module state.
204
+
205
+ ```kay
206
+ ---
207
+ import { store, every } from 'kay'
208
+
209
+ const game = store({ coins: 0, miners: [{ id: 1, ore: 0 }] })
210
+
211
+ every('50ms', () => game.miners[0].ore += 1)
212
+ ---
213
+ button(onClick={() => game.coins += 5}) Earn {game.coins}
214
+ p {game.miners[0].ore}
215
+ ```
216
+
217
+ ### Derived values
218
+
219
+ - A derived value is a `memo`, or a plain function the template calls: `const shown = () => todos.filter(t => !t.done)`, read as `shown()`.
220
+ - `memo(fn)` caches a derived value until what it read changes.
221
+ - `linked(() => board.tiers)` from `kay` is a writable signal that follows its source: an island edits it locally, and it takes its source's value again whenever that changes: `tiers = moved` shows the edit, and once a refresh or the next page gives a new `board`, `tiers()` reads its tiers.
222
+ - A `linked` signal drops its edit when its source changes, even when the source comes back to the value it was edited over.
223
+ - `linked` reads a prop of a component inside an island, or of an island marked `persist`, the ones whose props change in place, a prop given unchanged keeping its edit.
224
+ - A top-level island whose props changed on a refresh renders afresh from them, its dialogs and focus lost: one whose state should outlive a refresh, such as an editor, is marked `persist`, so it stays and takes the new props.
225
+ - `selection<Key>(initial?)` from `kay` holds one selected string or number key among many rows, or none. It reads as `selected()` and writes as `selected.set(id)`.
226
+ - `selected.is(row.id)` re-runs only for the rows a change selects or unselects, not every row: `tr(class={{ danger: selected.is(row.id) }})`.
227
+
228
+ ### Effects and lifecycle
229
+
230
+ - `effect`, `watch`, `every`, `listen` and the other lifetime helpers, what each runs and how it stops: [Effects and lifecycle](effects.md).
231
+
232
+ ### Generic components
233
+
234
+ - Type parameters on the script fence line make a component generic, written as TypeScript writes them; each use infers them from its props, islands included.
235
+ - `List(items={todos} show={todo => todo.title})` types `todo` as one of `todos`.
236
+ - `kay fmt` writes the line `--- <T ...>`.
237
+ - A page has no props, so it takes no type parameters.
238
+
239
+ ### Glob imports
240
+
241
+ - `import.meta.glob` works in a component script, a server fence or a TypeScript module.
242
+ - It gives a record of the files by their path as the pattern writes it, `'../cards/one.kay'`, sorted.
243
+ - With `eager: true` each value is the file's module, imported along with the importer; without, a function importing it, `() => Promise<module>`, a chunk of its own in the browser.
244
+ - `import: 'default'` gives that export of each instead of the module, and `T` types what each gives, `unknown` by default.
245
+ - A pattern starts with `./` or `../`, from the importer, or `/`, from the project's root, and its keys start the same way.
246
+ - A pattern `~icons/<set>/<name>` matches the icons of the installed sets ([Icons](images.md#icons)) and keys them `~icons/<set>/<name>`.
247
+ - A list of patterns adds up their files, one starting with `!` leaving its own out: `['./demos/*.kay', '!./demos/draft.kay']`.
248
+ - `node_modules` is only searched by a pattern naming it, and the importer never matches itself.
249
+ - The build expands the call, so its patterns and options are written in it: a pattern built at run time, or another option, is a build error.
250
+ - The stylesheets of the components it imports reach the page as a static import's do.
251
+ - `kay dev` restarts when a matching file is added or removed, so the record follows with nothing to rerun.
252
+ - A server run from source outside `kay dev` registers kay's loader in `pages()`: the entry, and what it imports before calling it, has no `import.meta.glob` there, nor imports a `.kay` file. `kay dev` and `kay build --compile` have them everywhere.
@@ -0,0 +1,101 @@
1
+ # Loaded collections, with the first steps of preview mode
2
+
3
+ Preview mode in full, share links and the CMS editor: [Preview mode and CMS editing](content-preview.md).
4
+
5
+ ## Common tasks
6
+
7
+ ### Load entries from a headless CMS
8
+
9
+ A collection takes a `load` function in place of a folder, and a webhook refreshes it through an API route, `src/api/cms.ts`, one `news.invalidate()` for the entries and every prerendered page that read them:
10
+
11
+ ```ts
12
+ import { api } from 'kay/server'
13
+ import { news } from '../content.config'
14
+
15
+ export default api().post('/', ({ headers, status }) => {
16
+ if (headers['x-webhook-secret'] !== process.env.CMS_WEBHOOK_SECRET)
17
+ return status(401)
18
+
19
+ news.invalidate()
20
+
21
+ return new Response(null, { status: 204 })
22
+ })
23
+ ```
24
+
25
+ ### Let an editor see drafts on the live site
26
+
27
+ `preview` in kay.config.ts (`false` for none) takes a secret, and `previewUrl` from `kay/server` gives a signed link to a page, valid an hour:
28
+
29
+ ```ts
30
+ import { defineConfig } from 'kay/server'
31
+
32
+ export default defineConfig({
33
+ preview: {},
34
+ })
35
+ ```
36
+
37
+ ## Reference
38
+
39
+ ### Loaded collections
40
+
41
+ A collection whose entries live in a headless CMS, an API or a database takes a loader instead of a folder, and is read, typed and used as a folder's is:
42
+
43
+ ```ts
44
+ import { s } from 'kay'
45
+ import { collection } from 'kay/content'
46
+ import { listPosts } from './cms'
47
+
48
+ export const news = collection({
49
+ name: 'news',
50
+ load: async ({ preview }) => (await listPosts({ drafts: preview }))
51
+ .map(post => ({
52
+ slug: post.slug,
53
+ data: { title: post.title, published: post.status === 'published' },
54
+ html: post.content,
55
+ })),
56
+ ttl: '15m',
57
+ }, {
58
+ schema: s.Object({ title: s.String(), published: s.Boolean() }),
59
+ draft: post => !post.data.published,
60
+ })
61
+ ```
62
+
63
+ - `load` gives an array of `{ slug, data, body }` or `{ slug, data, html }` (a slug with no part `.` or `..`, no backslash and no control character, else a content problem; an empty part, `?` and `#` are kept, a route encoding them or leaving the entry out): `data` is read against the schema, defaults filled in and dates decoded; `body` is Markdown, compiled as a file's body, headings listed, code highlighted and the collection's components usable; `html` is HTML. Both are sanitized as a user's Markdown is (formatted text, links, images and tables kept; scripts, handlers, styles, iframes, comments and `javascript:` links dropped; heading anchors, code languages, components and relative URLs kept, and a `rel="nofollow ugc"` only on a link written with an http(s) URL, since the site is not known when the body compiles; component props are the body's own, so a collection's components should not trust them), since a loader often reads content its author did not write. `trusted: true` in the collection's options keeps both as they are, raw HTML included, as a folder's files always are.
64
+ - `count({ preview })` gives how many entries `load` would, `body: false` says they hold `html` rather than a Markdown `body` (true when left out), and `get(place, { preview })` gives the one entry at a place, its slug with the locale before it in a localized collection, `fr/launch`, or undefined: a CMS (`collections()`, `collectionInfo()` and `entries(name, { slug })` from `kay/content`) asks them in place of running `load` for every entry.
65
+ - An entry's `file` is the collection's name and its slug, `news/launch`.
66
+ - One with no slug or with another entry's, or a load giving anything but an array, fails the read with every problem named, and the next read loads again.
67
+ - An entry the schema refuses, or that sits outside a locale folder in a localized collection, is left out of `all()`, `get()` and `translation()` and logged as a warning naming each problem at its full path (`packs.0.price: ...`), so one stale row never hides the others; the admin still lists it (`entries()` gives its data, migrated when the collection has `migrations`), opens it with the schema's issues and saves it fixed, and the pages show it from that save. A folder's entry the schema refuses still fails `kay check`, `kay build` and the read, since its file is fixed in the repository.
68
+ - `migrations: [...]` on the collection's options carries stored entries over after a schema change, each step taking an entry's data in its old shape and giving the new one: `renameField(from, to)`, `setField(name, value)` and `convertField(name, convert)` from `kay/content` build the common steps (`setField` fills a field only when it is missing, from a value or a `(data) => value`, `convertField` changes it only when present, `convert(value, data)`), any `(data) => data` is one. Steps run in order, on a copy, only on an entry the schema refuses (defaults filled first), stopping once it accepts it, so write a step to leave data already in the new shape alone; an entry no step brings to the schema stays refused, and a step that throws is logged and leaves its entry as it was. A folder collection's entries migrate as they are read and their files stay; `kay migrate content [dir] [--format text|json] [--quiet]` rewrites the files of every folder collection with `migrations` whose entries a step carried over, keeping each file's format (JSON indentation, YAML, a Markdown body byte for byte, a `# draft` mark), a file that cannot be read listed and the exit code 1. A folder entry the schema refuses with no `migrations` declared is reported with a line naming `migrations` and `kay migrate content`. `unique()` reads a field of an `Intersect` too.
69
+ - A loaded entry that migrated is handed to the loader's `save` once as `{ slug, locale?, data, body? }` (the body as the loader gave it), so the next read finds it in the new shape; a `save` that throws is logged and the entry stays migrated for that read, tried again at the next. A loader without `save` is migrated at each load. A folder's entry is migrated as read, by the build too, and its file kept until a CMS saves it. The admin's `entries()` gives the migrated data, so a save writes the new shape.
70
+ - `load` gets `preview: true` for a visitor in preview mode and in development (`kay dev`, or the server's `dev` option), for a CMS that serves drafts apart.
71
+ - `save(entry)` and `remove(entry)` beside `load` write an entry back to the CMS, `{ slug, locale?, data, body?, create? }` and `{ slug, locale? }` (`save`'s `data` is typed from the collection's `schema`, which kay has checked it against: each missing default is filled in and a date is its ISO text, as the JSON a CMS sends holds it, so it needs no cast), which `saveEntry` and `removeEntry` from `kay/content` call (see [A CMS editing the collections](content-preview.md#a-cms-editing-the-collections)).
72
+ - `create: true` comes with an entry the CMS creates: `save` throws when the entry exists, as a `save` that ignores it overwrites an entry another process created since, unnoticed.
73
+ - `saveMany(entries)` is optional: it writes several entries a CMS saves together (a reorder swaps two), all or none, as `saveEntries(name, entries)` from `kay/content` hands them on after checking each; a loader without it gets them one `save` at a time. An entry given `expect: { field, was }` is a compare-and-swap of one number field: the loader writes that field alone, leaving the rest as stored, and throws `ContentChangedError` from `kay/content` with nothing written when the stored entry is gone or holds another number there (`undefined` for none), which `saveEntries` answers as `{ changed: true }`; a loader ignoring `expect` writes the whole entry. kayjs-cms ships SQLite and Postgres loaders with it ([loaders](../../cms/llms/loaders.md)).
74
+ - `sibling(kind)` is optional: it gives a loader for a hidden collection of that kind in the same store (`'history'`, `'trash'`, `'activity'`), whose entries never show in this one, where kayjs-cms keeps an entry's revisions, its deleted entries and who did what ([History, the trash and the activity log](../../cms/llms/history.md)); a loader without it has none. kayjs-cms's SQLite and Postgres loaders have it, and `collectionLoader(name)` from `kay/content` gives the loader of a loaded collection.
75
+ - `save`, `saveMany` and `remove` never call `saveEntry`, `saveEntries` or `removeEntry` for their own collection: that call waits for them to finish, so it deadlocks.
76
+ - The entries are loaded on the first read and kept as `cached` keeps a value (see [Caching](rendering.md#caching)): concurrent first reads share one load; with `ttl`, a read past it gets them as they were and refreshes them in the background; without, they are kept until `invalidate()` or a restart.
77
+ - `store: sqliteCache(path)` keeps them across restarts and has `invalidate()` reach every process sharing it.
78
+ - `prerender`, `sitemap` and a feed take a loaded collection as a folder's: `kay build` loads it to prerender, so it needs the CMS to answer.
79
+ - `kay check` types it from the schema but never calls the loader, and `kay build` writes nothing of it for production, which reads it when the server runs.
80
+ - A CMS's webhook refreshes it through an API route, `news.invalidate()` also refreshing the prerendered pages that read it; the route refuses a request while the secret is unset, and compares it in constant time:
81
+
82
+ ```ts
83
+ // src/api/cms.ts
84
+ import { createHash, timingSafeEqual } from 'node:crypto'
85
+ import { api } from 'kay/server'
86
+ import { news } from '../content.config'
87
+
88
+ const digest = (text: string) => createHash('sha256').update(text).digest()
89
+
90
+ export default api().post('/', ({ headers, status }) => {
91
+ const secret = process.env.CMS_WEBHOOK_SECRET
92
+ const sent = headers['x-webhook-secret']
93
+ if (!secret || !sent || !timingSafeEqual(digest(sent), digest(secret)))
94
+ return status(401)
95
+
96
+ news.invalidate()
97
+
98
+ return new Response(null, { status: 204 })
99
+ })
100
+ ```
101
+
@@ -0,0 +1,49 @@
1
+ # Edit mode and the CMS editor
2
+
3
+ ## Common tasks
4
+
5
+ ### Enter edit mode
6
+
7
+ A CMS's guarded route enters edit mode, signed apart from preview, and `exitPreview` leaves it:
8
+
9
+ ```ts
10
+ enterPreview(ctx, { edit: true })
11
+ ```
12
+
13
+ ### Show unsaved edits on the page
14
+
15
+ The editor's island calls `showDraft` with the entries it has not saved, and the page swaps them in place:
16
+
17
+ ```ts
18
+ import { showDraft } from 'kay/edit'
19
+
20
+ await showDraft([{ collection: 'posts', slug: 'hello', data: { title: 'Hi' } }])
21
+ ```
22
+
23
+ ## Reference
24
+
25
+ ### Edit mode
26
+
27
+ - Edit mode is preview mode for a CMS editing content on the page: `enterPreview(ctx, { edit: true })` from the CMS's guarded route or `previewUrl(path, { edit: true })` enter it, signed apart so no preview link or cookie becomes one, and `exitPreview` leaves both.
28
+ - Everything preview mode does holds, and `editing()` from `kay` is true while the server renders for such a visitor; `editRequested(request)` from `kay/server` tells the same of any request, for the CMS's own API modules and guards. `editedEntry(request, collection, slug)` from `kay/server` tells whether a page rendered in edit mode for the request's cookie read that entry, its collection named as the content config exports it, so a CMS's API serves an edit cookie, tied to no user, only those entries and not a customer or order collection. It is kept in memory per server until the cookie expires, so it is false on another server or after a restart until the page is loaded again.
29
+ - In edit mode the page marks what each entry's fields render, with nothing to declare: an element a field's text or number fills whole takes `data-kay-field="<collection>:<slug>[@locale]:<path>"`, the collection named as the content config exports it and the path dotted with indexes (`tags.0`); an attribute a field gives takes `data-kay-field-<name>`; text mixed with other text sits between `<!--kay-field ...-->` and `<!--/kay-field-->`; the element a `for` over a field's array fills takes `data-kay-list`; the element `Content` fills takes `data-kay-body="<collection>:<slug>[@locale]"`, else `<!--kay-body ...-->` comments.
30
+ - Islands, the static slots passed to them and the deferred parts of a streamed page stay unmarked, and outside edit mode the markup is unchanged.
31
+ - A field is marked wherever the data is read, in the page's fence or in a component, a loop or a snippet the entry's data was handed down to, whole (`Crew({...data})`) or by field (`Echo(text={entry.data.title})`), whatever the fence itself read; a frozen object's fields stay unmarked.
32
+ - A field is told apart by its value: a text is marked when it equals one a field gave and that is not rendered yet, the first read when several fields give the same text read together, else the latest one, and the earlier reads of that text are forgotten (a field read up front and rendered after a render and a later read of an equal text goes unmarked), so a field read only in a condition marks no later equal text; a number when it equals one read since a render no field gave, a literal text after a number in the same child (`{from} to {to}`) not counting, as is a number written in the tag (`aria-valuemin={0}`, never a field's) while a computed or prop number (`{max}`, `{value + 1}`) that is no field's still forgets the reads, so a number is marked though a sibling field is read after it; each part of a mixed child (`{age} ans`) is marked on its own.
33
+ - A transformed value (`toUpperCase()`, a formatted date, a joined list) goes unmarked and a blank text is never marked; the editor is told which fields the page read and left unclickable, the transformed ones, those in an island, its props or slots, in the head or in a frozen object, as `unclickable` (see The editor); a string or number read only for logic, a condition or a class say, is listed too, as nothing shows it.
34
+ - A text read but never rendered, such as `status` in `if status === 'draft'`, marks a literal `"draft"` rendered right after it, with no field read between, as that field; a number computed equal to one just read is marked as it.
35
+ - A collection the content config does not export is named by its folder or loader name.
36
+
37
+ ### The editor
38
+
39
+ - A CMS's extension gives its editor as `editor: `${import.meta.dir}/editor.kay``, absolute or relative to the project root: an island every page renders at the end of its body in edit mode alone, kept alive across navigations and drafts (`persist`), and given `{ entries, unclickable }`, typed `EditorProps` from `kay/edit`: `entries`, each entry the page read, `{ collection, slug, locale? }`, its head and attributes included, those of the next page once the swap shows it, and `unclickable`, `{ collection, slug, locale?, path, frozen? }` for each field the page read that no marker on its body reaches (a field a marker or a marked list around it covers is left out), `frozen` for one in a frozen object, kayjs-cms naming them in the entry's form. They come in the order the page shows each one's first marked field, not the order the reads resolved in, so a draft render keeps every form in place; an entry showing no marked field, one whose field a draft emptied say, comes after the others, by name.
40
+ - An entry read only in a deferred part of a streamed page is missing.
41
+ - The pages that extension's own `routes` serve render no editor: its screens and the `_error` or `_404` page one fails with or a guard refuses with, its own or the app's.
42
+ - An app page replacing one of its screens renders it, as another extension's pages do; a URL no page serves, `/nope` or `/admin/nope` under its prefix alike, renders none, as kay answers it outside preview mode, its `_404` showing no draft either.
43
+ - The editor needs a script the browser runs, and one extension at most gives one.
44
+ - The app's `kay check` reports the editor's errors, and those of what it imports, as its own when the extension is linked rather than installed, as a library's fixture app lists it.
45
+ - `showDraft(entries)` from `kay/edit`, called from the editor's island, shows the page with entries the editor has not saved in place of theirs, through the page swap, keeping scroll, focus and every island whose props did not change. An entry failing its collection's schema is left out of the render (the page shows its saved text, the other drafts in place) and `showDraft` resolves `{ ok: false, error, issues }` for it, `{ ok: true }` otherwise; the server alone answers 422 `{ issues }` to `/_kay/draft` when any posted entry fails, and 429 past 300 drafts a minute from one client.
46
+ - Each entry is `{ collection, slug, locale?, data, body? }`, `collection` the config's export name and `body` Markdown.
47
+ - It resolves `{}` once shown, or `{ issues: [{ collection, slug, locale?, path, message }] }` with the entry left out of the render (the others still show) when its data fails the schema, `path` dotted (`tags.0`), `''` with `body: true` for a body that does not compile or uses a component the collection does not name, `''` with `key: 'locale'` for a locale missing from an entry of a localized collection, given to another's or not served by the site, `key: 'slug'` for a slug naming another folder, and a plain `''` for the data as a whole.
48
+ - A newer call cancels an older one, and going to another page cancels it too; either resolves `{}`.
49
+ - It throws outside edit mode (403), on a body over `maxSize` (413) and when the page fails to render (500).
@@ -0,0 +1,96 @@
1
+ # Content collections: Markdown to caching
2
+
3
+ ## Common tasks
4
+
5
+ - Define a collection, list its entries or render one as a page: the tasks of [Content collections](content.md#common-tasks).
6
+
7
+ ## Reference
8
+
9
+ ### Markdown files
10
+
11
+ - A Markdown file starts with YAML frontmatter between `---` lines.
12
+ - Every entry's data is read against the schema: defaults filled in, an `s.Date()` decoded from its text. A date that names no day, `2024-02-30` or `T24:00`, or that cannot be decoded, `2024-03-10 10:00` (seconds are needed), is refused at its field's line.
13
+ - An entry it refuses, or one that does not parse, fails `kay check` at the field's line, naming the field's whole path (`packs.0.price`), and fails `kay build` and the first load; a loader's refused entry is instead left out and logged ([Loaded collections](content-cms.md#loaded-collections)).
14
+ - Defaults fill nested objects and list items too, and `migrations: [renameField(...), convertField(...), setField(...)]` on the collection carries entries over after a schema change ([Loaded collections](content-cms.md#loaded-collections)).
15
+ - Headings get ids, unique in the entry, and link to themselves: an ASCII title keeps the lowercase words joined by `-` (`Don’t stop` is `dont-stop`), a title with letters beyond ASCII keeps them (`Été & Café` is `été-café`, `日本語` is `日本語`), a title with no letter or digit is `heading`, and a repeat takes `-1`, `-2` (`a`, `a-1`, `a-1-1`).
16
+ - Bare URLs become links.
17
+ - A link leaving the site gets `target="_blank" rel="noopener"` as each page renders against its `site`, and `renderMarkdown` writes it too, unless the tag writes its own `target` ([Navigation](navigation.md#navigation)).
18
+ - `markdown: { highlight, transform, preprocess, containers, footnotes, headingLinks, readingSpeed, imageSizes }` in `kay.config.ts` sets these once for every collection; a collection's option of the same name wins. `headingLinks: false` leaves a heading's text plain, its id kept, and `readingSpeed` is the words a minute `readingTime` counts at, 230 by default.
19
+ - A relative image of an entry's body, `![A cat](./cat.png)` or `<img src="../cat.png">`, that sits inside the collection's folder and is a PNG, JPEG, WebP, GIF or AVIF is built as an asset and rendered as `image()` renders an imported one: a `srcset` of WebP and AVIF variants over `images.widths`, `sizes` of `100vw`, `width` and `height`, and lazy loading. `markdown: { imageSizes }` in `kay.config.ts`, or `imageSizes` on a collection, sets the `sizes` of all of them, such as `(min-width: 60rem) 40rem, 100vw`, and a `sizes="..."` on a tag sets its own and keeps the rest. An image the tag sizes itself (`width`, `height` or `srcset`), an animated GIF, an SVG, a URL, an absolute path, a missing file or one outside the folder (a `..` out of it, a symlink) is left as written.
20
+ - `highlight: (code, language) => html` highlights code blocks as entries compile, at build time: it returns the whole `<pre>`, such as Shiki's `codeToHtml`, which the site depends on itself. kayjs-ai's chat also calls the `markdown.highlight` of `kay.config.ts` on the server, at runtime, for the code of its answers, so it must work then too.
21
+ - Without a highlighter, a block renders as `<pre><code class="language-ts">`.
22
+ - `transform: (html, entry) => html` rewrites each entry's rendered HTML once as it compiles, for link, image and heading rewriting: Bun's `HTMLRewriter` edits it by selector (`new HTMLRewriter().on('a', { element(link) { ... } }).transform(html)`, sync for a string). `preprocess: (markdown, entry) => markdown` does the same on the source before components are read. Either may be async. `entry` is `{ file, slug, locale? }` (`MarkdownSource`): `file` the path from the project root of a folder's entry, `collection/locale/slug` for a loader's, the locale of a localized collection's entry set and its slug without it. `bodyHtml(body, { collection, slug, locale })`, which a CMS preview and `scriptInBody` call, renders with the collection's hooks and switches and the same `entry`; `renderMarkdown(text, { transform, preprocess, containers, footnotes, entry })` takes the same functions, `entry` defaulting to `{ file: 'renderMarkdown', slug: '' }`.
23
+ - The transform runs on Bun.markdown's HTML before the headings are read and code is highlighted: a shifted heading is listed at its new depth (keep `<hN id="x"><a href="#x">…</a></hN>`), code is `<pre><code class="language-ts">` and the highlighter has the last word. Component tags stand as `<kay-component n="0">` elements, which it leaves alone: one dropped, added or reordered fails the entry.
24
+ - A throw, a rejection or a non-text result fails the entry as `markdown-invalid`, naming the entry's file once, with the thrown error as `cause`. A loader's body without `trusted` is sanitized after both hooks, so they add nothing that runs (nor a `class`); a folder's entries keep what they write, as they keep raw tags. A loader entry giving `html` skips them. A link written to the site's pages gets the base as an authored one does. The CMS preview sanitizes with its own kept list, so a `class` may differ from the page's.
25
+ - `markdown: { containers: true }` turns `:::note Title` … `:::` (at the left edge, nesting to 8; openers nothing closes and fenced ones stay text) into `<aside class="admonition note">` with the title, escaped, in `<p class="admonition-title">`, its inside Markdown. `footnotes: true` turns `[^id]` into `<sup id="fnref:1"><a href="#fn:1">1</a></sup>`, numbered by first reference, and `[^id]: text` (the line and its indented lines, one paragraph) into a closing `<section class="footnotes">` list with links back; a reference with no definition stays written, a definition with no reference is dropped, code spans, fences, indented code, link text and headings are left alone. Both work per collection too, are off by default and read the source in linear time.
26
+ - A hook's source, the switches, the modules and JSON files the config imports and the lockfile are in the entry cache key; a bound function is refused (`config-invalid`), and a hook reading `process.env` or a file at run time needs `.kay/cache/content` cleared, as a highlighter does.
27
+
28
+ ### Components in Markdown
29
+
30
+ - A Markdown entry uses the components its collection's `components` names, written with a capital as in a template: `<Callout type="warn">` on its own line, Markdown inside after a blank line, then `</Callout>` on its own line; `<Badge text="new" />` inline.
31
+ - Attributes are text (`type="warn"`), JSON in braces (`count={3}`, `items={["a", "b"]}`), or bare for `true`, and may spread over several lines.
32
+ - Their text never becomes markup: an `innerHTML` attribute, or JSON holding an object with a string `t` (how kay marks markup), fails the build.
33
+ - An interactive component renders as an island and hydrates as in any page.
34
+ - A page rendering an entry's `Content` links the stylesheets those components import, for every collection its `--- server` fence imports.
35
+ - A tag in a code span, a fenced code block or an indented one stays text.
36
+ - Attributes take JSON of any depth; quoted text may hold `>` or `}`.
37
+ - A component the collection does not name, a tag left open, or a capitalized tag kay cannot read (stray text after a JSON value, a quote or brace never closed) fails `kay check`, the build and `bodyHtml` at its line (`markdown-invalid`), rather than reaching the page as text; so does a closing tag holding more than its name.
38
+ - In prose, `<` before a capital reads as a tag once it sets an attribute value or a `>` follows it in the paragraph, code spans and blockquote `>` markers left out and a blank line ending the paragraph, so `if 1<A then` and `<Chart stray` at the end of a body stay text, escaped: write `&lt;` for a literal one. Attribute text holds no backtick, which opens code.
39
+
40
+ ### Pages from a collection
41
+
42
+ - `export const page = { prerender: posts }` in a page with one param prerenders a page per entry, its slug as the param; `sitemap` takes a collection the same way. That page's head takes the entry's `title`, `description` and date unless the page sets them ([Head](head.md)).
43
+ - A slug with a slash needs a catch-all page, `[...slug].kay`.
44
+
45
+ ### Pagination
46
+
47
+ - `isCollection` and `isPaginated` from `kay/content`, and the symbol marking a collection, are how kay recognizes a collection or a paginated result in a module's exports: kay's own, not API for an app.
48
+ - `paginate(posts, 10)` from `kay/content` splits a collection, an array, or a function returning one into pages, for a page whose one param is optional, `blog/[[page=integer]].kay`: `const blog = paginate(posts, 10)`, `export const page = { prerender: blog }`, then `const list = await blog.page(ctx.params.page) ?? ctx.notFound()`; `blog.pageSize` is the 10.
49
+ - `list` has `items`, `page` and `pages`, from 1, `prev` and `next`, links undefined at the ends, and `href(n)`.
50
+ - Page 1 is the list's own path, `/blog`, and `page()` gives `undefined` for `/blog/1`, a page past the last, or anything but a whole number from 1.
51
+ - Its links are in the request's locale, under `base`, with a trailing slash under `trailingSlash: 'always'`.
52
+ - As the `prerender` or `sitemap` key of `page` it lists every page; a localized collection counts each locale's entries, the default locale's standing in for those it lacks, so a locale with more entries has more pages, listed in it alone.
53
+ - kayjs-ui's `Pagination(of={list})` draws its links.
54
+
55
+ ### Rendering Markdown
56
+
57
+ - `renderMarkdown(text, { highlight })` from `kay/content` renders Markdown the app has at runtime, such as a user's note or a feed, as entries render, headings anchored and code highlighted when given a highlighter, and gives `{ html, headings }`.
58
+ - The HTML is the writer's, raw tags included, so a user's goes through `sanitizeHtml` before `innerHTML`, and a user may add headings by typing their tags.
59
+ - The highlighter gets a fence's language as the user typed it, so it falls back for one it does not know rather than throw.
60
+ - `bodyHtml(body)` from `kay/content` gives the HTML an entry's body puts on the page, each component standing as a `<kay-component>` element around what it wraps, for a CMS to check what an editor wrote before saving it, and throws `MarkdownError` from `kay/content` (its `line` set) for components kay cannot read.
61
+ - `highlightCode(code, 'ts', { highlight })` from `kay/content` renders one code block the same way, `<pre><code class="language-ts">` without a highlighter, as a `SafeHtml`: `const snippet = await highlightCode(source, 'ts', { highlight })` in a server fence, then `div(innerHTML={snippet})`.
62
+ - Both run on the server.
63
+ - `markdownHtml(text)` from `kay/markdown` renders Markdown a user writes as it comes, in an island too, such as a chat reply streaming in or an editor's preview: `div(innerHTML={markdownHtml(text())})`.
64
+ - Markdown or sanitized HTML set through `innerHTML` is unstyled under Tailwind's preflight: with kayjs-ui, give its container the `kui-prose` class, which styles headings, lists, links, quotes, code, tables and images from the theme tokens and scrolls a wide table or code block inside itself.
65
+ - It is `renderMarkdown`'s HTML put through `sanitizeHtml`, keeping tables, their `align`, images (`src`, `alt`, `title`) and the disabled checkboxes of task lists as well (every Markdown body, an entry's too, wraps each checkbox in a `label` with its item's text, so it has an accessible name; the box of an item with no text is `aria-hidden`), with plain headings, no id or anchor, and no code classes, so it is a `SafeHtml`; it is sync and fast enough to run again on every chunk.
66
+ - On the server it is Bun.markdown; in an island marked, with a renderer writing the same HTML, which only the islands importing it load, about 15 KB gzipped, plus `sanitizeHtml` in the runtime every page with an island loads, 1.3 KB, unless something already uses it.
67
+ - The two differ only where Bun.markdown is odd: a named reference such as `&copy;` stays written in the island, which the browser shows the same; a URL with parentheses or a `"` in its path, and one still being typed, without a dot yet or ending in `=`, is a link in the island alone; a task item whose text the next line underlines as a heading is not a task in the island.
68
+ - The island keeps marked linear: an emphasis or a strikethrough closes within 1,000 characters there, and text past 100,000 characters, or nested too deep for marked, shows as it is written.
69
+
70
+ ### Feeds
71
+
72
+ - `feed` serves an RSS 2.0 feed at its path, `format: 'atom'` for Atom or `'json'` for JSON Feed 1.1, its `author` the feed's title unless set: the newest `limit` items, 20 by default, that `item` returns (by default the entry's fields, see [Serve an RSS feed](content.md#serve-an-rss-feed)), links and guids absolute on the `site` kay.config.ts sets, which a feed needs, written as `trailingSlash` writes each page's canonical URL.
73
+ - `content: true` carries each entry's rendered body (`content:encoded`, Atom `content`, `content_html`), its links and images from the site's root written out in full; an item's own `content` wins. An item also takes `categories`, an `image` (RSS `enclosure`, Atom `link rel="enclosure"`, JSON `image`) and `updated` (the entry's `modified` field by default).
74
+ - `format: ['rss', 'atom', 'json']` serves each from the one collection: the first at `path`, each other beside it with the extension replaced, `/blog/rss.json`, `/blog/rss.atom`.
75
+ - Every page showing an entry of a collection with a feed carries its `link rel="alternate"` in its head, one per format, in the page's locale and under the base; `page = { feed: posts }` adds the links to any other page, such as the list, and `feed: false` leaves them out.
76
+ - A link to its path, such as `link(rel="alternate" href="/blog/rss.xml")` in a layout, passes `kay check` when the path is written as a literal.
77
+
78
+ ### Localized collections
79
+
80
+ - `localized: true` keeps each entry in a folder named after its locale, `fr/hello.md` and `en/hello.md` being translations of one entry, slug `hello`, with `i18n` in kay.config.ts (see locales).
81
+ - `all()` and `get(slug)` read the request's locale, the default locale's entry standing in for one the locale lacks or keeps as a draft; `entry.locale` names the folder it came from and `entry.translations` the locales holding the slug.
82
+ - `translation(entry, locale)` gives the entry of that locale paired with `entry` by slug or `translationKey`, whatever its own slug, or undefined, with no fallback: a language switcher links `entry.translations` through it.
83
+ - Either takes a locale as last argument; outside a request `all()` gives every locale's entries and `get(slug, locale)` reads that locale's alone, with no fallback.
84
+ - A page prerendering or listing the collection in its sitemap gets each slug once, in every locale.
85
+ - A feed carries an ETag and answers 304 to a reader holding it, for an hour in production.
86
+ - The feed is served once per locale, `/en/blog/rss.xml`, listing only the entries written in it, its links in that locale; with domains each host serves its own at the path.
87
+ - `kay i18n translate <locale>` (kayjs-ai) creates the entries a locale lacks as drafts: the collection's `draft: '<field>'` field set to `true`, or a `# draft` first line in the entry's YAML when it has none.
88
+ - An entry outside a locale folder fails `kay check` and the build.
89
+
90
+ ### Caching
91
+
92
+ - `posts.invalidate()` loads the entries afresh on the next read; it also marks the prerendered pages that read the collection stale (`kay build` keeps a page over a folder collection by itself, not one over a loader: add `prerender: true` for that), in every process sharing a `sqliteCache`; for a folder it matters in development, where the files change.
93
+ - Each entry compiles once and is cached in `.kay/cache/content`, one file per entry holding the content's hash, kay's compiler and Bun's version, the highlighter's source and the source of every project module the content config imports (a highlighter's helpers) it was compiled with, so a change to an entry recompiles that entry only, and a change to a module the config imports recompiles them all when the collection has a highlighter.
94
+ - A collection with a `load` function caches its Markdown `body` entries in one file per collection there too (`<hash>.loaded.json`), keyed by each body's hash plus the same settings and kay's compiler and Bun's version, outside a prebuilt server and a draft preview; `html` entries are not cached.
95
+ - A highlighter whose output changes with no change to its source, such as a new theme passed in, a `.kay` file or a data file (JSON, YAML) it reads, needs that folder cleared (a hook too): only `.ts` and `.js` modules the config imports are hashed.
96
+ - `kay build` compiles every collection into `.kay/client/content`, which production reads, an executable included, instead of the files.