| f assertNoNotesUnderPages | A page name owns `<mount>/-/<name>/` and everything below it, so a published note there would be shadowed at runtime: fail the build naming it. Notes elsewhere under `<mount>/-/` stay notes. `routes` are the vault's published routes, mount path included. |
| f assertRequiredStages | |
| f assertServerPlugins | A server plugin needs a server target (or a host app whose adapter isn't `adapter-static`), a path-segment id, an importable module and JSON options. `hostAdapter` is the host's `kit.adapter.name`. |
| f clearPublicAssets | Forget every recorded file. The CLI calls this before each build, so one vault's files never ship in the next's. |
| f createArtifactsVirtualModuleSource | |
| f createHostIndexSource | `virtual:svartz/index`: each vault's published index and site metadata, in config order. It imports no page runtime or theme, not even dynamically, so a host that only reads the index never compiles Svartz's page runtime. |
| f createHostRegistrySource | `virtual:svartz/host`: the host eagerly reads route metadata and loads runtime code only for the selected mount. It also exports SvelteKit's `base` and `assets`, which SvelteKit 3's `$app/paths` no longer does. |
| f createHostServerSource | `virtual:svartz/server` in a host app: `svartzHandle` runs every host vault's generated handle in turn, and `svartzPage` asks each vault for the plugin page at a URL. |
| f createServerRegistrySource | The vault's server-only module: its active server plugins as a registry; `svartzHandle`, the SvelteKit `handle` that routes `/_svartz/<id>/` to them; and `svartzPage`, which renders their pages under `/-/` for the plugin page route's `load`. `virtual:svartz/server` is this module in the standalone shell; host apps get one that chains every vault's. Its env imports keep it out of client bundles. `serverData` is what each plugin's hooks recorded for its server module this build, keyed by plugin id. |
| f createSvartzViteContext | |
| f createThemeVirtualModuleSource | Generates the `virtual:svartz/theme` module source. |
| f createVaultChangeEvent | |
| f getGeneratedArtifactsRoot | |
| f getGeneratedHostIndexPath | |
| f getGeneratedHostRegistryPath | |
| f getGeneratedHostServerPath | |
| f getGeneratedHostStylesPath | Use a fixed-length lowercase digest so every valid ID fits a filesystem filename. |
| f getGeneratedIndexModulePath | |
| f getGeneratedPageModulePath | |
| f getGeneratedPagesRoot | |
| f getGeneratedRuntimeArtifactsModulePath | |
| f getGeneratedRuntimeServerModulePath | |
| f getGeneratedRuntimeThemeModulePath | |
| f getGeneratedSearchModulePath | |
| f getThemePresetPlugins | |
| f getVaultBuildRoot | |
| f hostStylesPlugin | Capture CSS from SvelteKit's client build without importing every vault runtime eagerly. |
| f isSvelteKit3 | Whether the app in `root` installs SvelteKit 3 or later. Its options can't tell: SvelteKit 2.62 and later also take them in `sveltekit({ … })`. An app without a resolvable SvelteKit counts as SvelteKit 2, whose behaviour Svartz assumed before SvelteKit 3. |
| f loadThemeModule | The vault's build manifest. A `theme.base` list composes every listed theme's `extensions` with theme-minimal's `composeThemes`; a theme with a selected source loads unbuilt. |
| f loadVirtualModule | |
| f publicAssetsPlugin | Emit the recorded files in the client build, unless the Svartz plugin there already did. |
| f renderHostRss | Render a summary RSS feed for an explicit set of host vaults. |
| f renderHostSitemap | Render a sitemap for selected mounts on the same public host. |
| f resolveRuntimePlugins | Merge runtime plugins in specificity order. `config.plugins` is already the defaults→vault merge from @svartz/config. `hostAdapter` is the host app's `kit.adapter.name` when the vault targets `host`. |
| f resolveThemeExport | |
| f resolveThemeModuleIds | The theme modules a vault lists, in order. |
| f resolveThemePackageRoot | Find a package root from the host app for Vite, CLI, and Tailwind consumers. |
| f resolveThemeRuntimeImport | What `virtual:svartz/theme` imports for this vault. A theme with a selected source imports its `runtime.ts`, or its package id, which Vite aliases to the source. |
| f resolveVirtualModuleId | |
| f svartz | |
| f svelteKitBasePath | SvelteKit's `paths.base` alone, from the same definitions as `svelteKitPaths`. |
| f svelteKitPaths | Read SvelteKit's paths from the definitions it puts in Vite's resolved config, the same in SvelteKit 2 and 3. |
| f themeSourceAliases | Vite aliases that point each workspace theme at its source, by exact id. A string alias also captures subpaths, so `@svartz/theme-minimal` would rewrite another listed theme's `@svartz/theme-minimal/runtime` import. |
| f withMarkdownNegotiation | Run the shared Svartz handle ahead of the standalone adapters' static-file handlers. |
| f withSvartzHost | Preserve virtual modules and let Svelte compile packaged components in host apps. |