polen 0.11.0-next.15 → 0.11.0-next.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/api/{api.d.ts → $$.d.ts} +6 -3
- package/build/api/$$.d.ts.map +1 -0
- package/build/api/$$.js +13 -0
- package/build/api/$$.js.map +1 -0
- package/build/api/$.d.ts +2 -0
- package/build/api/$.d.ts.map +1 -0
- package/build/api/$.js +2 -0
- package/build/api/$.js.map +1 -0
- package/build/api/config/$$.d.ts +1 -0
- package/build/api/config/$$.d.ts.map +1 -1
- package/build/api/config/$$.js +1 -0
- package/build/api/config/$$.js.map +1 -1
- package/build/api/config/home.d.ts +639 -0
- package/build/api/config/home.d.ts.map +1 -0
- package/build/api/config/home.js +487 -0
- package/build/api/config/home.js.map +1 -0
- package/build/api/config/input.d.ts +1307 -9
- package/build/api/config/input.d.ts.map +1 -1
- package/build/api/config/input.js +102 -24
- package/build/api/config/input.js.map +1 -1
- package/build/api/config/normalized.d.ts +2261 -129
- package/build/api/config/normalized.d.ts.map +1 -1
- package/build/api/config/normalized.js +424 -27
- package/build/api/config/normalized.js.map +1 -1
- package/build/api/config-template/template.d.ts +2991 -0
- package/build/api/config-template/template.d.ts.map +1 -0
- package/build/api/config-template/template.js +53 -0
- package/build/api/config-template/template.js.map +1 -0
- package/build/api/content/$$.d.ts +1 -0
- package/build/api/content/$$.d.ts.map +1 -1
- package/build/api/content/$$.js +1 -0
- package/build/api/content/$$.js.map +1 -1
- package/build/api/content/mdx-compiler.d.ts +54 -0
- package/build/api/content/mdx-compiler.d.ts.map +1 -0
- package/build/api/content/mdx-compiler.js +68 -0
- package/build/api/content/mdx-compiler.js.map +1 -0
- package/build/api/content/navbar.js +1 -1
- package/build/api/content/navbar.js.map +1 -1
- package/build/api/examples/$$.d.ts +8 -0
- package/build/api/examples/$$.d.ts.map +1 -0
- package/build/api/examples/$$.js +8 -0
- package/build/api/examples/$$.js.map +1 -0
- package/build/api/examples/$.d.ts +2 -0
- package/build/api/examples/$.d.ts.map +1 -0
- package/build/api/examples/$.js +2 -0
- package/build/api/examples/$.js.map +1 -0
- package/build/api/examples/config.d.ts +709 -0
- package/build/api/examples/config.d.ts.map +1 -0
- package/build/api/examples/config.js +169 -0
- package/build/api/examples/config.js.map +1 -0
- package/build/api/examples/diagnostic/diagnostic.d.ts +152 -0
- package/build/api/examples/diagnostic/diagnostic.d.ts.map +1 -0
- package/build/api/examples/diagnostic/diagnostic.js +20 -0
- package/build/api/examples/diagnostic/diagnostic.js.map +1 -0
- package/build/api/examples/diagnostic/duplicate-content.d.ts +55 -0
- package/build/api/examples/diagnostic/duplicate-content.d.ts.map +1 -0
- package/build/api/examples/diagnostic/duplicate-content.js +22 -0
- package/build/api/examples/diagnostic/duplicate-content.js.map +1 -0
- package/build/api/examples/diagnostic/invalid-filename.d.ts +43 -0
- package/build/api/examples/diagnostic/invalid-filename.d.ts.map +1 -0
- package/build/api/examples/diagnostic/invalid-filename.js +16 -0
- package/build/api/examples/diagnostic/invalid-filename.js.map +1 -0
- package/build/api/examples/diagnostic/missing-versions.d.ts +52 -0
- package/build/api/examples/diagnostic/missing-versions.d.ts.map +1 -0
- package/build/api/examples/diagnostic/missing-versions.js +21 -0
- package/build/api/examples/diagnostic/missing-versions.js.map +1 -0
- package/build/api/examples/diagnostic/unknown-version.d.ts +52 -0
- package/build/api/examples/diagnostic/unknown-version.d.ts.map +1 -0
- package/build/api/examples/diagnostic/unknown-version.js +21 -0
- package/build/api/examples/diagnostic/unknown-version.js.map +1 -0
- package/build/api/examples/diagnostic/unused-default.d.ts +49 -0
- package/build/api/examples/diagnostic/unused-default.d.ts.map +1 -0
- package/build/api/examples/diagnostic/unused-default.js +19 -0
- package/build/api/examples/diagnostic/unused-default.js.map +1 -0
- package/build/api/examples/diagnostic/validation-error.d.ts +63 -0
- package/build/api/examples/diagnostic/validation-error.d.ts.map +1 -0
- package/build/api/examples/diagnostic/validation-error.js +21 -0
- package/build/api/examples/diagnostic/validation-error.js.map +1 -0
- package/build/api/examples/diagnostic/validator.d.ts +13 -0
- package/build/api/examples/diagnostic/validator.d.ts.map +1 -0
- package/build/api/examples/diagnostic/validator.js +115 -0
- package/build/api/examples/diagnostic/validator.js.map +1 -0
- package/build/api/examples/filter.d.ts +19 -0
- package/build/api/examples/filter.d.ts.map +1 -0
- package/build/api/examples/filter.js +64 -0
- package/build/api/examples/filter.js.map +1 -0
- package/build/api/examples/scanner.d.ts +18 -0
- package/build/api/examples/scanner.d.ts.map +1 -0
- package/build/api/examples/scanner.js +268 -0
- package/build/api/examples/scanner.js.map +1 -0
- package/build/api/examples/schemas/catalog.d.ts +248 -0
- package/build/api/examples/schemas/catalog.d.ts.map +1 -0
- package/build/api/examples/schemas/catalog.js +42 -0
- package/build/api/examples/schemas/catalog.js.map +1 -0
- package/build/api/examples/schemas/example/$$.d.ts +2 -0
- package/build/api/examples/schemas/example/$$.d.ts.map +1 -0
- package/build/api/examples/schemas/example/$$.js +2 -0
- package/build/api/examples/schemas/example/$$.js.map +1 -0
- package/build/api/examples/schemas/example/$.d.ts +2 -0
- package/build/api/examples/schemas/example/$.d.ts.map +1 -0
- package/build/api/examples/schemas/example/$.js +2 -0
- package/build/api/examples/schemas/example/$.js.map +1 -0
- package/build/api/examples/schemas/example/example.d.ts +134 -0
- package/build/api/examples/schemas/example/example.d.ts.map +1 -0
- package/build/api/examples/schemas/example/example.js +51 -0
- package/build/api/examples/schemas/example/example.js.map +1 -0
- package/build/api/examples/schemas/type-usage-index.d.ts +72 -0
- package/build/api/examples/schemas/type-usage-index.d.ts.map +1 -0
- package/build/api/examples/schemas/type-usage-index.js +64 -0
- package/build/api/examples/schemas/type-usage-index.js.map +1 -0
- package/build/api/examples/type-generator.d.ts +8 -0
- package/build/api/examples/type-generator.d.ts.map +1 -0
- package/build/api/examples/type-generator.js +36 -0
- package/build/api/examples/type-generator.js.map +1 -0
- package/build/api/examples/type-usage-indexer.d.ts +18 -0
- package/build/api/examples/type-usage-indexer.d.ts.map +1 -0
- package/build/api/examples/type-usage-indexer.js +219 -0
- package/build/api/examples/type-usage-indexer.js.map +1 -0
- package/build/api/iso/schema/routing.js +2 -2
- package/build/api/iso/schema/routing.js.map +1 -1
- package/build/api/project/$$.d.ts +2 -0
- package/build/api/project/$$.d.ts.map +1 -0
- package/build/api/project/$$.js +2 -0
- package/build/api/project/$$.js.map +1 -0
- package/build/api/project/$.d.ts +2 -0
- package/build/api/project/$.d.ts.map +1 -0
- package/build/api/project/$.js +2 -0
- package/build/api/project/$.js.map +1 -0
- package/build/api/schema/config-schema.d.ts +3 -3
- package/build/api/schema/input-sources/directory.d.ts +31 -31
- package/build/api/schema/input-sources/file.d.ts +31 -31
- package/build/api/schema/input-sources/introspection-file.d.ts +31 -31
- package/build/api/schema/input-sources/introspection.d.ts +31 -31
- package/build/api/schema/input-sources/memory.d.ts +31 -31
- package/build/api/schema/input-sources/versioned-directory.d.ts +68 -79
- package/build/api/schema/input-sources/versioned-directory.d.ts.map +1 -1
- package/build/api/schema/input-sources/versioned-directory.js +8 -6
- package/build/api/schema/input-sources/versioned-directory.js.map +1 -1
- package/build/api/schema/load.js +1 -1
- package/build/api/schema/load.js.map +1 -1
- package/build/api/typings/$$.d.ts +2 -0
- package/build/api/typings/$$.d.ts.map +1 -0
- package/build/api/typings/$$.js +2 -0
- package/build/api/typings/$$.js.map +1 -0
- package/build/api/typings/$.d.ts +2 -0
- package/build/api/typings/$.d.ts.map +1 -0
- package/build/api/typings/$.js +2 -0
- package/build/api/typings/$.js.map +1 -0
- package/build/api/typings/typings.d.ts +88 -0
- package/build/api/typings/typings.d.ts.map +1 -0
- package/build/api/typings/typings.js +180 -0
- package/build/api/typings/typings.js.map +1 -0
- package/build/cli/_/parameters.d.ts +4 -4
- package/build/cli/_/parameters.d.ts.map +1 -1
- package/build/cli/_/parameters.js +4 -10
- package/build/cli/_/parameters.js.map +1 -1
- package/build/cli/commands/build.d.ts +9 -10
- package/build/cli/commands/build.d.ts.map +1 -1
- package/build/cli/commands/build.js +36 -50
- package/build/cli/commands/build.js.map +1 -1
- package/build/cli/commands/cache/delete.d.ts +6 -1
- package/build/cli/commands/cache/delete.d.ts.map +1 -1
- package/build/cli/commands/cache/delete.js +12 -20
- package/build/cli/commands/cache/delete.js.map +1 -1
- package/build/cli/commands/cache/show.d.ts +5 -1
- package/build/cli/commands/cache/show.d.ts.map +1 -1
- package/build/cli/commands/cache/show.js +51 -59
- package/build/cli/commands/cache/show.js.map +1 -1
- package/build/cli/commands/cache.d.ts +10 -2
- package/build/cli/commands/cache.d.ts.map +1 -1
- package/build/cli/commands/cache.js +17 -6
- package/build/cli/commands/cache.js.map +1 -1
- package/build/cli/commands/config/create.d.ts +6 -1
- package/build/cli/commands/config/create.d.ts.map +1 -1
- package/build/cli/commands/config/create.js +27 -24
- package/build/cli/commands/config/create.js.map +1 -1
- package/build/cli/commands/config.d.ts +7 -2
- package/build/cli/commands/config.d.ts.map +1 -1
- package/build/cli/commands/config.js +15 -6
- package/build/cli/commands/config.js.map +1 -1
- package/build/cli/commands/create.d.ts +9 -1
- package/build/cli/commands/create.d.ts.map +1 -1
- package/build/cli/commands/create.js +63 -61
- package/build/cli/commands/create.js.map +1 -1
- package/build/cli/commands/dev.d.ts +9 -1
- package/build/cli/commands/dev.d.ts.map +1 -1
- package/build/cli/commands/dev.js +41 -51
- package/build/cli/commands/dev.js.map +1 -1
- package/build/cli/commands/hero-image.d.ts +8 -0
- package/build/cli/commands/hero-image.d.ts.map +1 -0
- package/build/cli/commands/hero-image.js +235 -0
- package/build/cli/commands/hero-image.js.map +1 -0
- package/build/cli/commands/open.d.ts +10 -1
- package/build/cli/commands/open.d.ts.map +1 -1
- package/build/cli/commands/open.js +93 -107
- package/build/cli/commands/open.js.map +1 -1
- package/build/cli/commands/static/rebase.d.ts +8 -1
- package/build/cli/commands/static/rebase.d.ts.map +1 -1
- package/build/cli/commands/static/rebase.js +43 -29
- package/build/cli/commands/static/rebase.js.map +1 -1
- package/build/cli/commands/static.d.ts +9 -2
- package/build/cli/commands/static.d.ts.map +1 -1
- package/build/cli/commands/static.js +28 -6
- package/build/cli/commands/static.js.map +1 -1
- package/build/cli/index.d.ts +54 -1
- package/build/cli/index.d.ts.map +1 -1
- package/build/cli/index.js +77 -8
- package/build/cli/index.js.map +1 -1
- package/build/lib/ai-image-generation/$$.d.ts +3 -0
- package/build/lib/ai-image-generation/$$.d.ts.map +1 -0
- package/build/lib/ai-image-generation/$$.js +3 -0
- package/build/lib/ai-image-generation/$$.js.map +1 -0
- package/build/lib/ai-image-generation/$.d.ts +2 -0
- package/build/lib/ai-image-generation/$.d.ts.map +1 -0
- package/build/lib/ai-image-generation/$.js +2 -0
- package/build/lib/ai-image-generation/$.js.map +1 -0
- package/build/lib/ai-image-generation/ai-image-generation.d.ts +132 -0
- package/build/lib/ai-image-generation/ai-image-generation.d.ts.map +1 -0
- package/build/lib/ai-image-generation/ai-image-generation.js +170 -0
- package/build/lib/ai-image-generation/ai-image-generation.js.map +1 -0
- package/build/lib/ai-image-generation/providers/pollinations.d.ts +22 -0
- package/build/lib/ai-image-generation/providers/pollinations.d.ts.map +1 -0
- package/build/lib/ai-image-generation/providers/pollinations.js +45 -0
- package/build/lib/ai-image-generation/providers/pollinations.js.map +1 -0
- package/build/lib/ai-image-generation/service.d.ts +42 -0
- package/build/lib/ai-image-generation/service.d.ts.map +1 -0
- package/build/lib/ai-image-generation/service.js +147 -0
- package/build/lib/ai-image-generation/service.js.map +1 -0
- package/build/lib/catalog/catalog.d.ts +7823 -717
- package/build/lib/catalog/catalog.d.ts.map +1 -1
- package/build/lib/catalog/catalog.js +25 -2
- package/build/lib/catalog/catalog.js.map +1 -1
- package/build/lib/catalog/unversioned.d.ts +245 -245
- package/build/lib/catalog/unversioned.d.ts.map +1 -1
- package/build/lib/catalog/versioned.d.ts +540 -609
- package/build/lib/catalog/versioned.d.ts.map +1 -1
- package/build/lib/catalog/versioned.js +38 -1
- package/build/lib/catalog/versioned.js.map +1 -1
- package/build/lib/catalog-statistics/$$.d.ts +5 -0
- package/build/lib/catalog-statistics/$$.d.ts.map +1 -0
- package/build/lib/catalog-statistics/$$.js +5 -0
- package/build/lib/catalog-statistics/$$.js.map +1 -0
- package/build/lib/catalog-statistics/$.d.ts +2 -0
- package/build/lib/catalog-statistics/$.d.ts.map +1 -0
- package/build/lib/catalog-statistics/$.js +2 -0
- package/build/lib/catalog-statistics/$.js.map +1 -0
- package/build/lib/catalog-statistics/analyze-catalog.d.ts +8 -0
- package/build/lib/catalog-statistics/analyze-catalog.d.ts.map +1 -0
- package/build/lib/catalog-statistics/analyze-catalog.js +132 -0
- package/build/lib/catalog-statistics/analyze-catalog.js.map +1 -0
- package/build/lib/catalog-statistics/analyze-options.d.ts +16 -0
- package/build/lib/catalog-statistics/analyze-options.d.ts.map +1 -0
- package/build/lib/catalog-statistics/analyze-options.js +2 -0
- package/build/lib/catalog-statistics/analyze-options.js.map +1 -0
- package/build/lib/catalog-statistics/analyze-schema.d.ts +8 -0
- package/build/lib/catalog-statistics/analyze-schema.d.ts.map +1 -0
- package/build/lib/catalog-statistics/analyze-schema.js +185 -0
- package/build/lib/catalog-statistics/analyze-schema.js.map +1 -0
- package/build/lib/catalog-statistics/data.d.ts +195 -0
- package/build/lib/catalog-statistics/data.d.ts.map +1 -0
- package/build/lib/catalog-statistics/data.js +176 -0
- package/build/lib/catalog-statistics/data.js.map +1 -0
- package/build/lib/catalog-statistics/report.d.ts +841 -0
- package/build/lib/catalog-statistics/report.d.ts.map +1 -0
- package/build/lib/catalog-statistics/report.js +37 -0
- package/build/lib/catalog-statistics/report.js.map +1 -0
- package/build/lib/change/change.d.ts +185 -185
- package/build/lib/change/change.d.ts.map +1 -1
- package/build/lib/change/criticality.d.ts +2 -2
- package/build/lib/change/criticality.d.ts.map +1 -1
- package/build/lib/date-only/date-only.d.ts +1 -1
- package/build/lib/date-only/date-only.d.ts.map +1 -1
- package/build/lib/diagnostic/$$.d.ts +6 -0
- package/build/lib/diagnostic/$$.d.ts.map +1 -0
- package/build/lib/diagnostic/$$.js +6 -0
- package/build/lib/diagnostic/$$.js.map +1 -0
- package/build/lib/diagnostic/$.d.ts +2 -0
- package/build/lib/diagnostic/$.d.ts.map +1 -0
- package/build/lib/diagnostic/$.js +2 -0
- package/build/lib/diagnostic/$.js.map +1 -0
- package/build/lib/diagnostic/control.d.ts +79 -0
- package/build/lib/diagnostic/control.d.ts.map +1 -0
- package/build/lib/diagnostic/control.js +107 -0
- package/build/lib/diagnostic/control.js.map +1 -0
- package/build/lib/diagnostic/diagnostic.d.ts +130 -0
- package/build/lib/diagnostic/diagnostic.d.ts.map +1 -0
- package/build/lib/diagnostic/diagnostic.js +106 -0
- package/build/lib/diagnostic/diagnostic.js.map +1 -0
- package/build/lib/diagnostic/filter.d.ts +11 -0
- package/build/lib/diagnostic/filter.d.ts.map +1 -0
- package/build/lib/diagnostic/filter.js +16 -0
- package/build/lib/diagnostic/filter.js.map +1 -0
- package/build/lib/diagnostic/reporter.d.ts +22 -0
- package/build/lib/diagnostic/reporter.d.ts.map +1 -0
- package/build/lib/diagnostic/reporter.js +66 -0
- package/build/lib/diagnostic/reporter.js.map +1 -0
- package/build/lib/diagnostic/severity.d.ts +32 -0
- package/build/lib/diagnostic/severity.d.ts.map +1 -0
- package/build/lib/diagnostic/severity.js +73 -0
- package/build/lib/diagnostic/severity.js.map +1 -0
- package/build/lib/directed-filter/$$.d.ts +2 -0
- package/build/lib/directed-filter/$$.d.ts.map +1 -0
- package/build/lib/directed-filter/$$.js +2 -0
- package/build/lib/directed-filter/$$.js.map +1 -0
- package/build/lib/directed-filter/$.d.ts +2 -0
- package/build/lib/directed-filter/$.d.ts.map +1 -0
- package/build/lib/directed-filter/$.js +2 -0
- package/build/lib/directed-filter/$.js.map +1 -0
- package/build/lib/directed-filter/directed-filter.d.ts +127 -0
- package/build/lib/directed-filter/directed-filter.d.ts.map +1 -0
- package/build/lib/directed-filter/directed-filter.js +153 -0
- package/build/lib/directed-filter/directed-filter.js.map +1 -0
- package/build/lib/document/$$.d.ts +4 -0
- package/build/lib/document/$$.d.ts.map +1 -0
- package/build/lib/document/$$.js +4 -0
- package/build/lib/document/$$.js.map +1 -0
- package/build/lib/document/$.d.ts +2 -0
- package/build/lib/document/$.d.ts.map +1 -0
- package/build/lib/document/$.js +2 -0
- package/build/lib/document/$.js.map +1 -0
- package/build/lib/document/document.d.ts +59 -0
- package/build/lib/document/document.d.ts.map +1 -0
- package/build/lib/document/document.js +23 -0
- package/build/lib/document/document.js.map +1 -0
- package/build/lib/document/unversioned.d.ts +38 -0
- package/build/lib/document/unversioned.d.ts.map +1 -0
- package/build/lib/document/unversioned.js +22 -0
- package/build/lib/document/unversioned.js.map +1 -0
- package/build/lib/document/versioned.d.ts +58 -0
- package/build/lib/document/versioned.d.ts.map +1 -0
- package/build/lib/document/versioned.js +82 -0
- package/build/lib/document/versioned.js.map +1 -0
- package/build/lib/effect-cli-help-markdown/$$.d.ts +2 -0
- package/build/lib/effect-cli-help-markdown/$$.d.ts.map +1 -0
- package/build/lib/effect-cli-help-markdown/$$.js +2 -0
- package/build/lib/effect-cli-help-markdown/$$.js.map +1 -0
- package/build/lib/effect-cli-help-markdown/$.d.ts +2 -0
- package/build/lib/effect-cli-help-markdown/$.d.ts.map +1 -0
- package/build/lib/effect-cli-help-markdown/$.js +2 -0
- package/build/lib/effect-cli-help-markdown/$.js.map +1 -0
- package/build/lib/effect-cli-help-markdown/effect-cli-help-markdown.d.ts +32 -0
- package/build/lib/effect-cli-help-markdown/effect-cli-help-markdown.d.ts.map +1 -0
- package/build/lib/effect-cli-help-markdown/effect-cli-help-markdown.js +477 -0
- package/build/lib/effect-cli-help-markdown/effect-cli-help-markdown.js.map +1 -0
- package/build/lib/effect-glob/$$.d.ts +2 -0
- package/build/lib/effect-glob/$$.d.ts.map +1 -0
- package/build/lib/effect-glob/$$.js +2 -0
- package/build/lib/effect-glob/$$.js.map +1 -0
- package/build/lib/effect-glob/$.d.ts +2 -0
- package/build/lib/effect-glob/$.d.ts.map +1 -0
- package/build/lib/effect-glob/$.js +2 -0
- package/build/lib/effect-glob/$.js.map +1 -0
- package/build/lib/effect-glob/effect-glob.d.ts +13 -0
- package/build/lib/effect-glob/effect-glob.d.ts.map +1 -0
- package/build/lib/effect-glob/effect-glob.js +18 -0
- package/build/lib/effect-glob/effect-glob.js.map +1 -0
- package/build/lib/file-path/$$.d.ts +3 -0
- package/build/lib/file-path/$$.d.ts.map +1 -1
- package/build/lib/file-path/$$.js +3 -3
- package/build/lib/file-path/$$.js.map +1 -1
- package/build/lib/file-path/$.d.ts +1 -1
- package/build/lib/file-path/$.d.ts.map +1 -1
- package/build/lib/file-path/$.js +1 -1
- package/build/lib/file-path/$.js.map +1 -1
- package/build/lib/file-path/absolute.d.ts +38 -0
- package/build/lib/file-path/absolute.d.ts.map +1 -0
- package/build/lib/file-path/absolute.js +47 -0
- package/build/lib/file-path/absolute.js.map +1 -0
- package/build/lib/file-path/file-path.d.ts +41 -43
- package/build/lib/file-path/file-path.d.ts.map +1 -1
- package/build/lib/file-path/file-path.js +15 -87
- package/build/lib/file-path/file-path.js.map +1 -1
- package/build/lib/file-path/relative.d.ts +38 -0
- package/build/lib/file-path/relative.d.ts.map +1 -0
- package/build/lib/file-path/relative.js +51 -0
- package/build/lib/file-path/relative.js.map +1 -0
- package/build/lib/file-path/segment/$.d.ts +2 -0
- package/build/lib/file-path/segment/$.d.ts.map +1 -0
- package/build/lib/file-path/segment/$.js +2 -0
- package/build/lib/file-path/segment/$.js.map +1 -0
- package/build/lib/file-path/segment/segment.d.ts +45 -0
- package/build/lib/file-path/segment/segment.d.ts.map +1 -0
- package/build/lib/file-path/segment/segment.js +96 -0
- package/build/lib/file-path/segment/segment.js.map +1 -0
- package/build/lib/file-router/linter.d.ts +214 -34
- package/build/lib/file-router/linter.d.ts.map +1 -1
- package/build/lib/file-router/linter.js +66 -12
- package/build/lib/file-router/linter.js.map +1 -1
- package/build/lib/graph/graph.d.ts +1 -1
- package/build/lib/graph/graph.d.ts.map +1 -1
- package/build/lib/graphql-error/$$.d.ts +2 -0
- package/build/lib/graphql-error/$$.d.ts.map +1 -0
- package/build/lib/graphql-error/$$.js +2 -0
- package/build/lib/graphql-error/$$.js.map +1 -0
- package/build/lib/graphql-error/$.d.ts +2 -0
- package/build/lib/graphql-error/$.d.ts.map +1 -0
- package/build/lib/graphql-error/$.js +2 -0
- package/build/lib/graphql-error/$.js.map +1 -0
- package/build/lib/graphql-error/graphql-error.d.ts +150 -0
- package/build/lib/graphql-error/graphql-error.d.ts.map +1 -0
- package/build/lib/graphql-error/graphql-error.js +57 -0
- package/build/lib/graphql-error/graphql-error.js.map +1 -0
- package/build/lib/kit-temp/effect.d.ts +14 -0
- package/build/lib/kit-temp/effect.d.ts.map +1 -1
- package/build/lib/kit-temp/effect.js +29 -0
- package/build/lib/kit-temp/effect.js.map +1 -1
- package/build/lib/kit-temp/ob.d.ts +4 -0
- package/build/lib/kit-temp/ob.d.ts.map +1 -1
- package/build/lib/kit-temp/ob.js +3 -1
- package/build/lib/kit-temp/ob.js.map +1 -1
- package/build/lib/kit-temp/resource.d.ts +1 -2
- package/build/lib/kit-temp/resource.d.ts.map +1 -1
- package/build/lib/kit-temp/resource.js +1 -2
- package/build/lib/kit-temp/resource.js.map +1 -1
- package/build/lib/lifecycles/lifecycles.js +1 -1
- package/build/lib/lifecycles/lifecycles.js.map +1 -1
- package/build/lib/react-router-effect/route-helpers.d.ts +9 -3
- package/build/lib/react-router-effect/route-helpers.d.ts.map +1 -1
- package/build/lib/react-router-effect/route-helpers.js +54 -6
- package/build/lib/react-router-effect/route-helpers.js.map +1 -1
- package/build/lib/react-router-effect/route.d.ts.map +1 -1
- package/build/lib/react-router-effect/route.js +13 -1
- package/build/lib/react-router-effect/route.js.map +1 -1
- package/build/lib/react-router-effect/types.d.ts +10 -2
- package/build/lib/react-router-effect/types.d.ts.map +1 -1
- package/build/lib/react-router-effect/use-loader-data.d.ts +3 -3
- package/build/lib/react-router-effect/use-loader-data.d.ts.map +1 -1
- package/build/lib/react-router-effect/use-loader-data.js +2 -2
- package/build/lib/react-router-effect/use-loader-data.js.map +1 -1
- package/build/lib/revision/revision.d.ts +925 -925
- package/build/lib/revision/revision.d.ts.map +1 -1
- package/build/lib/schema/schema.d.ts +553 -629
- package/build/lib/schema/schema.d.ts.map +1 -1
- package/build/lib/schema/unversioned.d.ts +865 -865
- package/build/lib/schema/unversioned.d.ts.map +1 -1
- package/build/lib/schema/versioned.d.ts +495 -583
- package/build/lib/schema/versioned.d.ts.map +1 -1
- package/build/lib/schema-definition/schema-definition.d.ts +1 -1
- package/build/lib/schema-definition/schema-definition.d.ts.map +1 -1
- package/build/lib/semver/official-release.d.ts +1 -1
- package/build/lib/semver/official-release.d.ts.map +1 -1
- package/build/lib/semver/pre-release.d.ts +1 -1
- package/build/lib/semver/pre-release.d.ts.map +1 -1
- package/build/lib/semver/semver.d.ts +1 -1
- package/build/lib/semver/semver.d.ts.map +1 -1
- package/build/lib/swiss/$$.d.ts +5 -0
- package/build/lib/swiss/$$.d.ts.map +1 -0
- package/build/lib/swiss/$$.js +6 -0
- package/build/lib/swiss/$$.js.map +1 -0
- package/build/lib/swiss/$.d.ts +2 -0
- package/build/lib/swiss/$.d.ts.map +1 -0
- package/build/lib/swiss/$.js +3 -0
- package/build/lib/swiss/$.js.map +1 -0
- package/build/lib/swiss/grid.d.ts +17 -0
- package/build/lib/swiss/grid.d.ts.map +1 -0
- package/build/lib/swiss/grid.js +30 -0
- package/build/lib/swiss/grid.js.map +1 -0
- package/build/lib/swiss/items.d.ts +53 -0
- package/build/lib/swiss/items.d.ts.map +1 -0
- package/build/lib/swiss/items.js +188 -0
- package/build/lib/swiss/items.js.map +1 -0
- package/build/lib/swiss/styles.css +298 -0
- package/build/lib/swiss/subgrid.d.ts +25 -0
- package/build/lib/swiss/subgrid.d.ts.map +1 -0
- package/build/lib/swiss/subgrid.js +48 -0
- package/build/lib/swiss/subgrid.js.map +1 -0
- package/build/lib/swiss/types.d.ts +340 -0
- package/build/lib/swiss/types.d.ts.map +1 -0
- package/build/lib/swiss/types.js +2 -0
- package/build/lib/swiss/types.js.map +1 -0
- package/build/lib/swiss/utils.d.ts +37 -0
- package/build/lib/swiss/utils.d.ts.map +1 -0
- package/build/lib/swiss/utils.js +163 -0
- package/build/lib/swiss/utils.js.map +1 -0
- package/build/lib/version/custom.d.ts +11 -30
- package/build/lib/version/custom.d.ts.map +1 -1
- package/build/lib/version/custom.js +3 -7
- package/build/lib/version/custom.js.map +1 -1
- package/build/lib/version/date.d.ts +11 -30
- package/build/lib/version/date.d.ts.map +1 -1
- package/build/lib/version/date.js +3 -7
- package/build/lib/version/date.js.map +1 -1
- package/build/lib/version/integer.d.ts +11 -30
- package/build/lib/version/integer.d.ts.map +1 -1
- package/build/lib/version/integer.js +3 -7
- package/build/lib/version/integer.js.map +1 -1
- package/build/lib/version/semver.d.ts +11 -30
- package/build/lib/version/semver.d.ts.map +1 -1
- package/build/lib/version/semver.js +3 -7
- package/build/lib/version/semver.js.map +1 -1
- package/build/lib/version/version.d.ts +17 -333
- package/build/lib/version/version.d.ts.map +1 -1
- package/build/lib/version/version.js +11 -11
- package/build/lib/version/version.js.map +1 -1
- package/build/lib/version-selection/$$.d.ts +2 -0
- package/build/lib/version-selection/$$.d.ts.map +1 -0
- package/build/lib/version-selection/$$.js +2 -0
- package/build/lib/version-selection/$$.js.map +1 -0
- package/build/lib/version-selection/$.d.ts +2 -0
- package/build/lib/version-selection/$.d.ts.map +1 -0
- package/build/lib/version-selection/$.js +2 -0
- package/build/lib/version-selection/$.js.map +1 -0
- package/build/lib/version-selection/version-selection.d.ts +42 -0
- package/build/lib/version-selection/version-selection.d.ts.map +1 -0
- package/build/lib/version-selection/version-selection.js +86 -0
- package/build/lib/version-selection/version-selection.js.map +1 -0
- package/build/lib/vite-reactive/$$.d.ts +2 -0
- package/build/lib/vite-reactive/$$.d.ts.map +1 -0
- package/build/lib/vite-reactive/$$.js +2 -0
- package/build/lib/vite-reactive/$$.js.map +1 -0
- package/build/lib/vite-reactive/$.d.ts +2 -0
- package/build/lib/vite-reactive/$.d.ts.map +1 -0
- package/build/lib/vite-reactive/$.js +2 -0
- package/build/lib/vite-reactive/$.js.map +1 -0
- package/build/lib/vite-reactive/reactive-asset-plugin.d.ts +71 -0
- package/build/lib/vite-reactive/reactive-asset-plugin.d.ts.map +1 -0
- package/build/lib/vite-reactive/reactive-asset-plugin.js +155 -0
- package/build/lib/vite-reactive/reactive-asset-plugin.js.map +1 -0
- package/build/template/components/Carousel.d.ts +25 -0
- package/build/template/components/Carousel.d.ts.map +1 -0
- package/build/template/components/Carousel.js +134 -0
- package/build/template/components/Carousel.js.map +1 -0
- package/build/template/components/CarouselPill.d.ts +19 -0
- package/build/template/components/CarouselPill.d.ts.map +1 -0
- package/build/template/components/CarouselPill.js +31 -0
- package/build/template/components/CarouselPill.js.map +1 -0
- package/build/template/components/Changelog/Changelog.d.ts.map +1 -1
- package/build/template/components/Changelog/Changelog.js +19 -13
- package/build/template/components/Changelog/Changelog.js.map +1 -1
- package/build/template/components/Changelog/groups/TypeOperation.d.ts +2 -0
- package/build/template/components/Changelog/groups/TypeOperation.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/TypeOperation.js +31 -5
- package/build/template/components/Changelog/groups/TypeOperation.js.map +1 -1
- package/build/template/components/CodeBlock.js +2 -2
- package/build/template/components/CodeBlock.js.map +1 -1
- package/build/template/components/DevelopmentTip.d.ts +13 -0
- package/build/template/components/DevelopmentTip.d.ts.map +1 -0
- package/build/template/components/DevelopmentTip.js +16 -0
- package/build/template/components/DevelopmentTip.js.map +1 -0
- package/build/template/components/ExampleLink.d.ts +11 -0
- package/build/template/components/ExampleLink.d.ts.map +1 -0
- package/build/template/components/ExampleLink.js +13 -0
- package/build/template/components/ExampleLink.js.map +1 -0
- package/build/template/components/Field.js +1 -1
- package/build/template/components/Field.js.map +1 -1
- package/build/template/components/GraphQLDocument.d.ts +25 -0
- package/build/template/components/GraphQLDocument.d.ts.map +1 -0
- package/build/template/components/GraphQLDocument.js +68 -0
- package/build/template/components/GraphQLDocument.js.map +1 -0
- package/build/template/components/GraphQLInteractive/GraphQLInteractive.d.ts +6 -2
- package/build/template/components/GraphQLInteractive/GraphQLInteractive.d.ts.map +1 -1
- package/build/template/components/GraphQLInteractive/GraphQLInteractive.js +8 -2
- package/build/template/components/GraphQLInteractive/GraphQLInteractive.js.map +1 -1
- package/build/template/components/HamburgerMenu.d.ts +11 -1
- package/build/template/components/HamburgerMenu.d.ts.map +1 -1
- package/build/template/components/HamburgerMenu.js.map +1 -1
- package/build/template/components/Logo.d.ts +8 -1
- package/build/template/components/Logo.d.ts.map +1 -1
- package/build/template/components/Logo.js +27 -12
- package/build/template/components/Logo.js.map +1 -1
- package/build/template/components/NamedType.d.ts.map +1 -1
- package/build/template/components/NamedType.js +12 -4
- package/build/template/components/NamedType.js.map +1 -1
- package/build/template/components/SimpleVersionPicker.d.ts +15 -0
- package/build/template/components/SimpleVersionPicker.d.ts.map +1 -0
- package/build/template/components/SimpleVersionPicker.js +15 -0
- package/build/template/components/SimpleVersionPicker.js.map +1 -0
- package/build/template/components/TypeAnnotation.d.ts.map +1 -1
- package/build/template/components/TypeAnnotation.js +8 -15
- package/build/template/components/TypeAnnotation.js.map +1 -1
- package/build/template/components/VersionCoveragePicker.d.ts +17 -0
- package/build/template/components/VersionCoveragePicker.d.ts.map +1 -0
- package/build/template/components/VersionCoveragePicker.js +28 -0
- package/build/template/components/VersionCoveragePicker.js.map +1 -0
- package/build/template/components/VersionPicker.d.ts.map +1 -1
- package/build/template/components/VersionPicker.js +13 -18
- package/build/template/components/VersionPicker.js.map +1 -1
- package/build/template/components/home/ExamplesSection.d.ts +13 -0
- package/build/template/components/home/ExamplesSection.d.ts.map +1 -0
- package/build/template/components/home/ExamplesSection.js +15 -0
- package/build/template/components/home/ExamplesSection.js.map +1 -0
- package/build/template/components/home/FeaturesGrid.d.ts +12 -0
- package/build/template/components/home/FeaturesGrid.d.ts.map +1 -0
- package/build/template/components/home/FeaturesGrid.js +73 -0
- package/build/template/components/home/FeaturesGrid.js.map +1 -0
- package/build/template/components/home/HeroSection.d.ts +16 -0
- package/build/template/components/home/HeroSection.d.ts.map +1 -0
- package/build/template/components/home/HeroSection.js +178 -0
- package/build/template/components/home/HeroSection.js.map +1 -0
- package/build/template/components/home/PlaygroundPreview.d.ts +9 -0
- package/build/template/components/home/PlaygroundPreview.d.ts.map +1 -0
- package/build/template/components/home/PlaygroundPreview.js +38 -0
- package/build/template/components/home/PlaygroundPreview.js.map +1 -0
- package/build/template/components/home/QuickStart.d.ts +11 -0
- package/build/template/components/home/QuickStart.d.ts.map +1 -0
- package/build/template/components/home/QuickStart.js +74 -0
- package/build/template/components/home/QuickStart.js.map +1 -0
- package/build/template/components/home/RecentChanges.d.ts +8 -0
- package/build/template/components/home/RecentChanges.d.ts.map +1 -0
- package/build/template/components/home/RecentChanges.js +61 -0
- package/build/template/components/home/RecentChanges.js.map +1 -0
- package/build/template/components/home/Resources.d.ts +24 -0
- package/build/template/components/home/Resources.d.ts.map +1 -0
- package/build/template/components/home/Resources.js +53 -0
- package/build/template/components/home/Resources.js.map +1 -0
- package/build/template/components/home/SocialProof.d.ts +13 -0
- package/build/template/components/home/SocialProof.d.ts.map +1 -0
- package/build/template/components/home/SocialProof.js +47 -0
- package/build/template/components/home/SocialProof.js.map +1 -0
- package/build/template/components/navbar/DefaultNavbar.d.ts.map +1 -1
- package/build/template/components/navbar/DefaultNavbar.js +5 -6
- package/build/template/components/navbar/DefaultNavbar.js.map +1 -1
- package/build/template/components/sidebar/Sidebar.d.ts +10 -1
- package/build/template/components/sidebar/Sidebar.d.ts.map +1 -1
- package/build/template/components/sidebar/Sidebar.js.map +1 -1
- package/build/template/components/sidebar/SidebarItem.d.ts +11 -2
- package/build/template/components/sidebar/SidebarItem.d.ts.map +1 -1
- package/build/template/components/sidebar/SidebarItem.js.map +1 -1
- package/build/template/components/swiss/SwissHeading.d.ts +10 -0
- package/build/template/components/swiss/SwissHeading.d.ts.map +1 -0
- package/build/template/components/swiss/SwissHeading.js +26 -0
- package/build/template/components/swiss/SwissHeading.js.map +1 -0
- package/build/template/components/swiss/index.d.ts +2 -0
- package/build/template/components/swiss/index.d.ts.map +1 -0
- package/build/template/components/swiss/index.js +2 -0
- package/build/template/components/swiss/index.js.map +1 -0
- package/build/template/contexts/GraphqlLifecycleContext.d.ts +1 -13
- package/build/template/contexts/GraphqlLifecycleContext.d.ts.map +1 -1
- package/build/template/entry.client.js +3 -3
- package/build/template/entry.client.js.map +1 -1
- package/build/template/hooks/use-examples.d.ts +38 -0
- package/build/template/hooks/use-examples.d.ts.map +1 -0
- package/build/template/hooks/use-examples.js +37 -0
- package/build/template/hooks/use-examples.js.map +1 -0
- package/build/template/hooks/use-highlighted.d.ts +14 -0
- package/build/template/hooks/use-highlighted.d.ts.map +1 -0
- package/build/template/hooks/use-highlighted.js +41 -0
- package/build/template/hooks/use-highlighted.js.map +1 -0
- package/build/template/layouts/SidebarLayout.d.ts +9 -1
- package/build/template/layouts/SidebarLayout.d.ts.map +1 -1
- package/build/template/layouts/SidebarLayout.js +4 -7
- package/build/template/layouts/SidebarLayout.js.map +1 -1
- package/build/template/layouts/index.d.ts +0 -1
- package/build/template/layouts/index.d.ts.map +1 -1
- package/build/template/layouts/index.js +0 -1
- package/build/template/layouts/index.js.map +1 -1
- package/build/template/lib/polen-url.js +3 -3
- package/build/template/lib/polen-url.js.map +1 -1
- package/build/template/providers/mdx.d.ts +8 -0
- package/build/template/providers/mdx.d.ts.map +1 -0
- package/build/template/providers/mdx.js +44 -0
- package/build/template/providers/mdx.js.map +1 -0
- package/build/template/routes/changelog.d.ts +4 -19
- package/build/template/routes/changelog.d.ts.map +1 -1
- package/build/template/routes/changelog.js +160 -26
- package/build/template/routes/changelog.js.map +1 -1
- package/build/template/routes/examples/_.d.ts +65 -0
- package/build/template/routes/examples/_.d.ts.map +1 -0
- package/build/template/routes/examples/_.js +56 -0
- package/build/template/routes/examples/_.js.map +1 -0
- package/build/template/routes/examples/_index.d.ts +39 -0
- package/build/template/routes/examples/_index.d.ts.map +1 -0
- package/build/template/routes/examples/_index.js +54 -0
- package/build/template/routes/examples/_index.js.map +1 -0
- package/build/template/routes/examples/name.d.ts +31 -0
- package/build/template/routes/examples/name.d.ts.map +1 -0
- package/build/template/routes/examples/name.js +50 -0
- package/build/template/routes/examples/name.js.map +1 -0
- package/build/template/routes/index.d.ts +1 -1
- package/build/template/routes/index.d.ts.map +1 -1
- package/build/template/routes/index.js +23 -3
- package/build/template/routes/index.js.map +1 -1
- package/build/template/routes/pages.d.ts.map +1 -1
- package/build/template/routes/pages.js +4 -44
- package/build/template/routes/pages.js.map +1 -1
- package/build/template/routes/reference.d.ts.map +1 -1
- package/build/template/routes/reference.js +54 -39
- package/build/template/routes/reference.js.map +1 -1
- package/build/template/routes/root.d.ts +3 -2
- package/build/template/routes/root.d.ts.map +1 -1
- package/build/template/routes/root.js +57 -17
- package/build/template/routes/root.js.map +1 -1
- package/build/template/server/create-page-html-response.js +2 -2
- package/build/template/server/create-page-html-response.js.map +1 -1
- package/build/template/server/main.js +5 -5
- package/build/template/server/main.js.map +1 -1
- package/build/template/server/view.js +3 -3
- package/build/template/server/view.js.map +1 -1
- package/build/template/stores/changelog.d.ts +31 -31
- package/build/template/stores/changelog.js +3 -3
- package/build/template/stores/changelog.js.map +1 -1
- package/build/template/stores/schema.d.ts +1 -1
- package/build/template/stores/toast.d.ts +1 -1
- package/build/template/theme/swiss-sharp.css +117 -0
- package/build/template/theme/swiss-sharp.d.ts +9 -0
- package/build/template/theme/swiss-sharp.d.ts.map +1 -0
- package/build/template/theme/swiss-sharp.js +13 -0
- package/build/template/theme/swiss-sharp.js.map +1 -0
- package/build/vite/config.d.ts +1 -1
- package/build/vite/config.d.ts.map +1 -1
- package/build/vite/logger.d.ts +2 -2
- package/build/vite/logger.d.ts.map +1 -1
- package/build/vite/logger.js +0 -1
- package/build/vite/logger.js.map +1 -1
- package/build/vite/plugins/branding.d.ts +2 -2
- package/build/vite/plugins/branding.d.ts.map +1 -1
- package/build/vite/plugins/branding.js +125 -10
- package/build/vite/plugins/branding.js.map +1 -1
- package/build/vite/plugins/build.d.ts +1 -1
- package/build/vite/plugins/build.d.ts.map +1 -1
- package/build/vite/plugins/config.d.ts +17 -0
- package/build/vite/plugins/config.d.ts.map +1 -0
- package/build/vite/plugins/config.js +33 -0
- package/build/vite/plugins/config.js.map +1 -0
- package/build/vite/plugins/core.d.ts +1 -5
- package/build/vite/plugins/core.d.ts.map +1 -1
- package/build/vite/plugins/core.js +43 -127
- package/build/vite/plugins/core.js.map +1 -1
- package/build/vite/plugins/examples.d.ts +23 -0
- package/build/vite/plugins/examples.d.ts.map +1 -0
- package/build/vite/plugins/examples.js +149 -0
- package/build/vite/plugins/examples.js.map +1 -0
- package/build/vite/plugins/hooks.d.ts +12 -0
- package/build/vite/plugins/hooks.d.ts.map +1 -0
- package/build/vite/plugins/hooks.js +41 -0
- package/build/vite/plugins/hooks.js.map +1 -0
- package/build/vite/plugins/index.d.ts +2 -1
- package/build/vite/plugins/index.d.ts.map +1 -1
- package/build/vite/plugins/index.js +2 -1
- package/build/vite/plugins/index.js.map +1 -1
- package/build/vite/plugins/main.d.ts +1 -1
- package/build/vite/plugins/main.d.ts.map +1 -1
- package/build/vite/plugins/manifest.d.ts +1 -1
- package/build/vite/plugins/manifest.d.ts.map +1 -1
- package/build/vite/plugins/navbar.d.ts +16 -0
- package/build/vite/plugins/navbar.d.ts.map +1 -0
- package/build/vite/plugins/navbar.js +60 -0
- package/build/vite/plugins/navbar.js.map +1 -0
- package/build/vite/plugins/pages.d.ts +10 -4
- package/build/vite/plugins/pages.d.ts.map +1 -1
- package/build/vite/plugins/pages.js +48 -120
- package/build/vite/plugins/pages.js.map +1 -1
- package/build/vite/plugins/routes-manifest.d.ts +1 -1
- package/build/vite/plugins/routes-manifest.d.ts.map +1 -1
- package/build/vite/plugins/routes-manifest.js +13 -16
- package/build/vite/plugins/routes-manifest.js.map +1 -1
- package/build/vite/plugins/schemas.d.ts +30 -0
- package/build/vite/plugins/schemas.d.ts.map +1 -0
- package/build/vite/plugins/schemas.js +116 -0
- package/build/vite/plugins/schemas.js.map +1 -0
- package/build/vite/plugins/serve.d.ts +1 -1
- package/build/vite/plugins/serve.d.ts.map +1 -1
- package/package.json +62 -11
- package/src/api/{api.ts → $$.ts} +6 -2
- package/src/api/$.ts +1 -0
- package/src/api/config/$$.ts +1 -0
- package/src/api/config/home.ts +542 -0
- package/src/api/config/input.ts +109 -26
- package/src/api/config/normalized.ts +474 -30
- package/src/api/config-template/template.ts +77 -0
- package/src/api/content/$$.ts +1 -0
- package/src/api/content/mdx-compiler.ts +74 -0
- package/src/api/content/navbar.test.ts +3 -3
- package/src/api/content/navbar.ts +1 -1
- package/src/api/examples/$$.ts +7 -0
- package/src/api/examples/$.test.ts +201 -0
- package/src/api/examples/$.ts +1 -0
- package/src/api/examples/config.test.ts +92 -0
- package/src/api/examples/config.ts +242 -0
- package/src/api/examples/diagnostic/diagnostic.ts +30 -0
- package/src/api/examples/diagnostic/duplicate-content.ts +25 -0
- package/src/api/examples/diagnostic/invalid-filename.ts +19 -0
- package/src/api/examples/diagnostic/missing-versions.ts +24 -0
- package/src/api/examples/diagnostic/unknown-version.ts +24 -0
- package/src/api/examples/diagnostic/unused-default.ts +22 -0
- package/src/api/examples/diagnostic/validation-error.ts +24 -0
- package/src/api/examples/diagnostic/validator.test.ts +292 -0
- package/src/api/examples/diagnostic/validator.ts +176 -0
- package/src/api/examples/filter.test.ts +56 -0
- package/src/api/examples/filter.ts +82 -0
- package/src/api/examples/scanner.ts +346 -0
- package/src/api/examples/schemas/catalog.ts +51 -0
- package/src/api/examples/schemas/example/$$.ts +1 -0
- package/src/api/examples/schemas/example/$.ts +1 -0
- package/src/api/examples/schemas/example/example.ts +73 -0
- package/src/api/examples/schemas/type-usage-index.ts +75 -0
- package/src/api/examples/type-generator.ts +49 -0
- package/src/api/examples/type-usage-indexer.test.ts +276 -0
- package/src/api/examples/type-usage-indexer.ts +291 -0
- package/src/api/iso/schema/routing.ts +2 -2
- package/src/api/project/$.ts +1 -0
- package/src/api/schema/$.test.ts +2 -2
- package/src/api/schema/input-sources/versioned-directory.ts +11 -6
- package/src/api/schema/load.ts +1 -1
- package/src/api/typings/$$.ts +1 -0
- package/src/api/typings/$.ts +1 -0
- package/src/api/typings/typings.ts +273 -0
- package/src/cli/_/parameters.ts +12 -12
- package/src/cli/commands/build.ts +58 -67
- package/src/cli/commands/cache/delete.ts +17 -24
- package/src/cli/commands/cache/show.ts +70 -72
- package/src/cli/commands/cache.ts +24 -6
- package/src/cli/commands/config/create.ts +37 -31
- package/src/cli/commands/config.ts +22 -6
- package/src/cli/commands/create.ts +104 -84
- package/src/cli/commands/dev.ts +59 -65
- package/src/cli/commands/hero-image.ts +282 -0
- package/src/cli/commands/open.ts +139 -140
- package/src/cli/commands/static/rebase.ts +61 -39
- package/src/cli/commands/static.ts +36 -6
- package/src/cli/index.ts +103 -8
- package/src/lib/ai-image-generation/$$.ts +2 -0
- package/src/lib/ai-image-generation/$.test.ts +344 -0
- package/src/lib/ai-image-generation/$.ts +1 -0
- package/src/lib/ai-image-generation/ai-image-generation.ts +231 -0
- package/src/lib/ai-image-generation/providers/pollinations.ts +65 -0
- package/src/lib/ai-image-generation/service.ts +185 -0
- package/src/lib/catalog/catalog.ts +30 -3
- package/src/lib/catalog/unversioned.ts +1 -1
- package/src/lib/catalog/versioned.ts +51 -2
- package/src/lib/catalog-statistics/$$.ts +4 -0
- package/src/lib/catalog-statistics/$.test.ts +161 -0
- package/src/lib/catalog-statistics/$.ts +1 -0
- package/src/lib/catalog-statistics/analyze-catalog.ts +158 -0
- package/src/lib/catalog-statistics/analyze-options.ts +15 -0
- package/src/lib/catalog-statistics/analyze-schema.ts +226 -0
- package/src/lib/catalog-statistics/data.ts +196 -0
- package/src/lib/catalog-statistics/report.ts +45 -0
- package/src/lib/change/change.ts +1 -1
- package/src/lib/change/criticality.ts +2 -2
- package/src/lib/date-only/date-only.ts +1 -1
- package/src/lib/diagnostic/$$.ts +5 -0
- package/src/lib/diagnostic/$.test.ts +109 -0
- package/src/lib/diagnostic/$.ts +1 -0
- package/src/lib/diagnostic/control.test.ts +75 -0
- package/src/lib/diagnostic/control.ts +140 -0
- package/src/lib/diagnostic/diagnostic.ts +144 -0
- package/src/lib/diagnostic/filter.ts +21 -0
- package/src/lib/diagnostic/reporter.ts +74 -0
- package/src/lib/diagnostic/severity.ts +93 -0
- package/src/lib/directed-filter/$$.ts +1 -0
- package/src/lib/directed-filter/$.test.ts +169 -0
- package/src/lib/directed-filter/$.ts +1 -0
- package/src/lib/directed-filter/directed-filter.ts +241 -0
- package/src/lib/document/$$.ts +3 -0
- package/src/lib/document/$.ts +1 -0
- package/src/lib/document/document.ts +37 -0
- package/src/lib/document/unversioned.ts +35 -0
- package/src/lib/document/versioned.ts +106 -0
- package/src/lib/effect-cli-help-markdown/$$.ts +1 -0
- package/src/lib/effect-cli-help-markdown/$.test.ts +49 -0
- package/src/lib/effect-cli-help-markdown/$.ts +1 -0
- package/src/lib/effect-cli-help-markdown/effect-cli-help-markdown.ts +699 -0
- package/src/lib/effect-glob/$$.ts +1 -0
- package/src/lib/effect-glob/$.ts +1 -0
- package/src/lib/effect-glob/effect-glob.ts +33 -0
- package/src/lib/file-path/$$.ts +3 -4
- package/src/lib/file-path/$.test.ts +45 -0
- package/src/lib/file-path/$.ts +1 -1
- package/src/lib/file-path/absolute.ts +66 -0
- package/src/lib/file-path/file-path.ts +17 -117
- package/src/lib/file-path/relative.ts +72 -0
- package/src/lib/file-path/segment/$.ts +1 -0
- package/src/lib/file-path/{file-path.test.ts → segment/segment.test.ts} +2 -2
- package/src/lib/file-path/segment/segment.ts +134 -0
- package/src/lib/file-router/linter.ts +82 -49
- package/src/lib/graph/graph.ts +1 -1
- package/src/lib/graphql-error/$$.ts +1 -0
- package/src/lib/graphql-error/$.ts +1 -0
- package/src/lib/graphql-error/graphql-error.ts +74 -0
- package/src/lib/kit-temp/effect.ts +69 -0
- package/src/lib/kit-temp/ob.ts +13 -0
- package/src/lib/kit-temp/other.test.ts +1 -1
- package/src/lib/kit-temp/resource.ts +1 -2
- package/src/lib/lifecycles/lifecycles.ts +1 -1
- package/src/lib/react-router-effect/route-helpers.ts +71 -8
- package/src/lib/react-router-effect/route.ts +14 -1
- package/src/lib/react-router-effect/types.ts +11 -3
- package/src/lib/react-router-effect/use-loader-data.ts +3 -3
- package/src/lib/revision/revision.ts +1 -1
- package/src/lib/schema/$.test.ts +1 -1
- package/src/lib/schema/schema.ts +1 -1
- package/src/lib/schema/unversioned.ts +1 -1
- package/src/lib/schema-definition/schema-definition.ts +1 -1
- package/src/lib/semver/official-release.ts +1 -1
- package/src/lib/semver/pre-release.ts +1 -1
- package/src/lib/semver/semver.ts +1 -1
- package/src/lib/swiss/$$.ts +5 -0
- package/src/lib/swiss/$.test.ts +89 -0
- package/src/lib/swiss/$.ts +2 -0
- package/src/lib/swiss/grid.tsx +61 -0
- package/src/lib/swiss/items.tsx +288 -0
- package/src/lib/swiss/styles.css +298 -0
- package/src/lib/swiss/subgrid.tsx +83 -0
- package/src/lib/swiss/types.ts +353 -0
- package/src/lib/swiss/utils.ts +144 -0
- package/src/lib/version/$.test.ts +2 -2
- package/src/lib/version/custom.ts +2 -13
- package/src/lib/version/date.ts +2 -13
- package/src/lib/version/integer.ts +2 -13
- package/src/lib/version/semver.ts +2 -13
- package/src/lib/version/version.ts +15 -12
- package/src/lib/version-selection/$$.ts +1 -0
- package/src/lib/version-selection/$.ts +1 -0
- package/src/lib/version-selection/version-selection.ts +117 -0
- package/src/lib/vite-reactive/$$.ts +1 -0
- package/src/lib/vite-reactive/$.ts +1 -0
- package/src/lib/vite-reactive/reactive-asset-plugin.ts +280 -0
- package/src/template/components/Carousel.tsx +224 -0
- package/src/template/components/CarouselPill.tsx +101 -0
- package/src/template/components/Changelog/Changelog.tsx +22 -12
- package/src/template/components/Changelog/groups/TypeOperation.tsx +53 -5
- package/src/template/components/CodeBlock.tsx +2 -2
- package/src/template/components/DevelopmentTip.tsx +43 -0
- package/src/template/components/ExampleLink.tsx +25 -0
- package/src/template/components/Field.tsx +1 -1
- package/src/template/components/GraphQLDocument.tsx +146 -0
- package/src/template/components/GraphQLInteractive/GraphQLInteractive.tsx +25 -3
- package/src/template/components/HamburgerMenu.tsx +14 -1
- package/src/template/components/Logo.tsx +35 -15
- package/src/template/components/NamedType.tsx +27 -3
- package/src/template/components/SimpleVersionPicker.tsx +48 -0
- package/src/template/components/TypeAnnotation.tsx +8 -26
- package/src/template/components/VersionCoveragePicker.tsx +57 -0
- package/src/template/components/VersionPicker.tsx +20 -31
- package/src/template/components/home/ExamplesSection.tsx +49 -0
- package/src/template/components/home/FeaturesGrid.tsx +135 -0
- package/src/template/components/home/HeroSection.tsx +379 -0
- package/src/template/components/home/PlaygroundPreview.tsx +138 -0
- package/src/template/components/home/QuickStart.tsx +132 -0
- package/src/template/components/home/RecentChanges.tsx +154 -0
- package/src/template/components/home/Resources.tsx +207 -0
- package/src/template/components/home/SocialProof.tsx +109 -0
- package/src/template/components/navbar/DefaultNavbar.tsx +23 -12
- package/src/template/components/sidebar/Sidebar.tsx +14 -1
- package/src/template/components/sidebar/SidebarItem.tsx +18 -6
- package/src/template/components/swiss/SwissHeading.tsx +44 -0
- package/src/template/components/swiss/index.ts +1 -0
- package/src/template/entry.client.tsx +3 -3
- package/src/template/hooks/use-examples.ts +46 -0
- package/src/template/hooks/use-highlighted.ts +57 -0
- package/src/template/layouts/SidebarLayout.tsx +34 -27
- package/src/template/layouts/index.ts +0 -1
- package/src/template/lib/polen-url.ts +3 -3
- package/src/template/providers/mdx.tsx +75 -0
- package/src/template/routes/changelog.tsx +253 -28
- package/src/template/routes/examples/_.tsx +90 -0
- package/src/template/routes/examples/_index.tsx +93 -0
- package/src/template/routes/examples/name.tsx +69 -0
- package/src/template/routes/index.tsx +48 -2
- package/src/template/routes/pages.tsx +5 -67
- package/src/template/routes/reference.tsx +41 -19
- package/src/template/routes/root.tsx +94 -38
- package/src/template/server/create-page-html-response.ts +2 -2
- package/src/template/server/main.ts +6 -6
- package/src/template/server/view.ts +3 -3
- package/src/template/stores/changelog.ts +3 -3
- package/src/template/theme/swiss-sharp.css +117 -0
- package/src/template/theme/swiss-sharp.ts +14 -0
- package/src/types/virtual-modules.d.ts +26 -19
- package/src/vite/config.ts +1 -1
- package/src/vite/logger.ts +2 -3
- package/src/vite/plugins/branding.ts +141 -12
- package/src/vite/plugins/build.ts +1 -1
- package/src/vite/plugins/config.ts +57 -0
- package/src/vite/plugins/core.ts +45 -167
- package/src/vite/plugins/examples.ts +201 -0
- package/src/vite/plugins/hooks.ts +49 -0
- package/src/vite/plugins/index.ts +2 -1
- package/src/vite/plugins/main.ts +1 -1
- package/src/vite/plugins/manifest.ts +1 -1
- package/src/vite/plugins/navbar.ts +102 -0
- package/src/vite/plugins/pages.ts +70 -155
- package/src/vite/plugins/routes-manifest.ts +16 -14
- package/src/vite/plugins/schemas.ts +145 -0
- package/src/vite/plugins/serve.ts +1 -1
- package/build/api/api.d.ts.map +0 -1
- package/build/api/api.js +0 -9
- package/build/api/api.js.map +0 -1
- package/build/api/index.d.ts +0 -2
- package/build/api/index.d.ts.map +0 -1
- package/build/api/index.js +0 -2
- package/build/api/index.js.map +0 -1
- package/build/api/project/index.d.ts +0 -2
- package/build/api/project/index.d.ts.map +0 -1
- package/build/api/project/index.js +0 -2
- package/build/api/project/index.js.map +0 -1
- package/build/cli/commands/$default.d.ts +0 -3
- package/build/cli/commands/$default.d.ts.map +0 -1
- package/build/cli/commands/$default.js +0 -89
- package/build/cli/commands/$default.js.map +0 -1
- package/build/cli/commands/cache/$default.d.ts +0 -3
- package/build/cli/commands/cache/$default.d.ts.map +0 -1
- package/build/cli/commands/cache/$default.js +0 -10
- package/build/cli/commands/cache/$default.js.map +0 -1
- package/build/cli/commands/config/$default.d.ts +0 -2
- package/build/cli/commands/config/$default.d.ts.map +0 -1
- package/build/cli/commands/config/$default.js +0 -7
- package/build/cli/commands/config/$default.js.map +0 -1
- package/build/cli/commands/static/$default.d.ts +0 -3
- package/build/cli/commands/static/$default.d.ts.map +0 -1
- package/build/cli/commands/static/$default.js +0 -38
- package/build/cli/commands/static/$default.js.map +0 -1
- package/build/cli-effect/_/parameters.d.ts +0 -7
- package/build/cli-effect/_/parameters.d.ts.map +0 -1
- package/build/cli-effect/_/parameters.js +0 -7
- package/build/cli-effect/_/parameters.js.map +0 -1
- package/build/cli-effect/commands/build.d.ts +0 -11
- package/build/cli-effect/commands/build.d.ts.map +0 -1
- package/build/cli-effect/commands/build.js +0 -40
- package/build/cli-effect/commands/build.js.map +0 -1
- package/build/cli-effect/commands/cache/delete.d.ts +0 -7
- package/build/cli-effect/commands/cache/delete.d.ts.map +0 -1
- package/build/cli-effect/commands/cache/delete.js +0 -15
- package/build/cli-effect/commands/cache/delete.js.map +0 -1
- package/build/cli-effect/commands/cache/show.d.ts +0 -6
- package/build/cli-effect/commands/cache/show.d.ts.map +0 -1
- package/build/cli-effect/commands/cache/show.js +0 -80
- package/build/cli-effect/commands/cache/show.js.map +0 -1
- package/build/cli-effect/commands/cache.d.ts +0 -11
- package/build/cli-effect/commands/cache.d.ts.map +0 -1
- package/build/cli-effect/commands/cache.js +0 -18
- package/build/cli-effect/commands/cache.js.map +0 -1
- package/build/cli-effect/commands/config/create.d.ts +0 -7
- package/build/cli-effect/commands/config/create.d.ts.map +0 -1
- package/build/cli-effect/commands/config/create.js +0 -36
- package/build/cli-effect/commands/config/create.js.map +0 -1
- package/build/cli-effect/commands/config.d.ts +0 -8
- package/build/cli-effect/commands/config.d.ts.map +0 -1
- package/build/cli-effect/commands/config.js +0 -16
- package/build/cli-effect/commands/config.js.map +0 -1
- package/build/cli-effect/commands/create.d.ts +0 -10
- package/build/cli-effect/commands/create.d.ts.map +0 -1
- package/build/cli-effect/commands/create.js +0 -112
- package/build/cli-effect/commands/create.js.map +0 -1
- package/build/cli-effect/commands/dev.d.ts +0 -10
- package/build/cli-effect/commands/dev.d.ts.map +0 -1
- package/build/cli-effect/commands/dev.js +0 -48
- package/build/cli-effect/commands/dev.js.map +0 -1
- package/build/cli-effect/commands/open.d.ts +0 -11
- package/build/cli-effect/commands/open.d.ts.map +0 -1
- package/build/cli-effect/commands/open.js +0 -131
- package/build/cli-effect/commands/open.js.map +0 -1
- package/build/cli-effect/commands/static/rebase.d.ts +0 -9
- package/build/cli-effect/commands/static/rebase.d.ts.map +0 -1
- package/build/cli-effect/commands/static/rebase.js +0 -44
- package/build/cli-effect/commands/static/rebase.js.map +0 -1
- package/build/cli-effect/commands/static.d.ts +0 -10
- package/build/cli-effect/commands/static.d.ts.map +0 -1
- package/build/cli-effect/commands/static.js +0 -29
- package/build/cli-effect/commands/static.js.map +0 -1
- package/build/cli-effect/index.d.ts +0 -3
- package/build/cli-effect/index.d.ts.map +0 -1
- package/build/cli-effect/index.js +0 -61
- package/build/cli-effect/index.js.map +0 -1
- package/build/lib/file-router/diagnostic-reporter.d.ts +0 -3
- package/build/lib/file-router/diagnostic-reporter.d.ts.map +0 -1
- package/build/lib/file-router/diagnostic-reporter.js +0 -18
- package/build/lib/file-router/diagnostic-reporter.js.map +0 -1
- package/build/lib/task/$$.d.ts +0 -3
- package/build/lib/task/$$.d.ts.map +0 -1
- package/build/lib/task/$$.js +0 -3
- package/build/lib/task/$$.js.map +0 -1
- package/build/lib/task/$.d.ts +0 -2
- package/build/lib/task/$.d.ts.map +0 -1
- package/build/lib/task/$.js +0 -2
- package/build/lib/task/$.js.map +0 -1
- package/build/lib/task/report.d.ts +0 -28
- package/build/lib/task/report.d.ts.map +0 -1
- package/build/lib/task/report.js +0 -33
- package/build/lib/task/report.js.map +0 -1
- package/build/lib/task/task.d.ts +0 -45
- package/build/lib/task/task.d.ts.map +0 -1
- package/build/lib/task/task.js +0 -71
- package/build/lib/task/task.js.map +0 -1
- package/build/project-data.d.ts +0 -10
- package/build/project-data.d.ts.map +0 -1
- package/build/project-data.js +0 -2
- package/build/project-data.js.map +0 -1
- package/build/template/catalog-bridge.d.ts +0 -1837
- package/build/template/catalog-bridge.d.ts.map +0 -1
- package/build/template/catalog-bridge.js +0 -87
- package/build/template/catalog-bridge.js.map +0 -1
- package/build/template/data/catalog.d.ts +0 -3
- package/build/template/data/catalog.d.ts.map +0 -1
- package/build/template/data/catalog.js +0 -7
- package/build/template/data/catalog.js.map +0 -1
- package/build/template/layouts/ChangelogLayout.d.ts +0 -9
- package/build/template/layouts/ChangelogLayout.d.ts.map +0 -1
- package/build/template/layouts/ChangelogLayout.js +0 -97
- package/build/template/layouts/ChangelogLayout.js.map +0 -1
- package/build/vite/plugins/schema-assets.d.ts +0 -20
- package/build/vite/plugins/schema-assets.d.ts.map +0 -1
- package/build/vite/plugins/schema-assets.js +0 -225
- package/build/vite/plugins/schema-assets.js.map +0 -1
- package/src/api/index.ts +0 -1
- package/src/cli/commands/$default.ts +0 -102
- package/src/cli/commands/cache/$default.ts +0 -10
- package/src/cli/commands/config/$default.ts +0 -7
- package/src/cli/commands/static/$default.ts +0 -43
- package/src/cli-effect/_/parameters.ts +0 -17
- package/src/cli-effect/commands/build.ts +0 -66
- package/src/cli-effect/commands/cache/delete.ts +0 -21
- package/src/cli-effect/commands/cache/show.ts +0 -99
- package/src/cli-effect/commands/cache.ts +0 -27
- package/src/cli-effect/commands/config/create.ts +0 -49
- package/src/cli-effect/commands/config.ts +0 -25
- package/src/cli-effect/commands/create.ts +0 -167
- package/src/cli-effect/commands/dev.ts +0 -72
- package/src/cli-effect/commands/open.ts +0 -183
- package/src/cli-effect/commands/static/rebase.ts +0 -66
- package/src/cli-effect/commands/static.ts +0 -39
- package/src/cli-effect/index.ts +0 -79
- package/src/lib/file-router/diagnostic-reporter.ts +0 -22
- package/src/lib/task/$$.ts +0 -2
- package/src/lib/task/$.test.ts +0 -210
- package/src/lib/task/$.ts +0 -1
- package/src/lib/task/report.ts +0 -72
- package/src/lib/task/task.ts +0 -129
- package/src/project-data.ts +0 -10
- package/src/template/catalog-bridge.ts +0 -102
- package/src/template/data/catalog.ts +0 -7
- package/src/template/layouts/ChangelogLayout.tsx +0 -185
- package/src/vite/plugins/schema-assets.ts +0 -265
- /package/src/api/project/{index.ts → $$.ts} +0 -0
package/src/lib/task/task.ts
DELETED
@@ -1,129 +0,0 @@
|
|
1
|
-
import type { Mask } from '#lib/mask'
|
2
|
-
import { Effect } from 'effect'
|
3
|
-
import type { Report } from './report.js'
|
4
|
-
import { exitWithReport } from './report.js'
|
5
|
-
|
6
|
-
// ============================================================================
|
7
|
-
// Types
|
8
|
-
// ============================================================================
|
9
|
-
|
10
|
-
export interface Definition<$Input = any, $Output = any> {
|
11
|
-
name: string
|
12
|
-
mask?: MaskOptions<$Input, $Output> | undefined
|
13
|
-
}
|
14
|
-
|
15
|
-
export interface Task<$Input, $Output, $Error = never, $Requirements = never> {
|
16
|
-
(input: $Input): Effect.Effect<Report<$Input, $Output>, $Error, $Requirements>
|
17
|
-
definition: Definition<$Input, $Output>
|
18
|
-
}
|
19
|
-
|
20
|
-
export interface MaskOptions<$Input, $Output> {
|
21
|
-
/**
|
22
|
-
* @default true
|
23
|
-
*/
|
24
|
-
input?: Mask.InferOptions<$Input>
|
25
|
-
/**
|
26
|
-
* @default true
|
27
|
-
*/
|
28
|
-
output?: Mask.InferOptions<$Output>
|
29
|
-
}
|
30
|
-
|
31
|
-
// ============================================================================
|
32
|
-
// Core Functions
|
33
|
-
// ============================================================================
|
34
|
-
|
35
|
-
export const create = <$Input, $Output, $Error = never, $Requirements = never>(
|
36
|
-
fn: (input: $Input) => Effect.Effect<$Output, $Error, $Requirements>,
|
37
|
-
options?: {
|
38
|
-
/**
|
39
|
-
* @default the fn name
|
40
|
-
*/
|
41
|
-
name?: string | undefined
|
42
|
-
/**
|
43
|
-
* An optional default mask to use for successfully returned values.
|
44
|
-
*/
|
45
|
-
mask?: MaskOptions<$Input, $Output> | undefined
|
46
|
-
},
|
47
|
-
): Task<$Input, $Output, $Error, $Requirements> => {
|
48
|
-
const definition: Definition<$Input, $Output> = {
|
49
|
-
name: options?.name ?? 'anonymous',
|
50
|
-
mask: options?.mask,
|
51
|
-
}
|
52
|
-
|
53
|
-
const task = (input: $Input): Effect.Effect<Report<$Input, $Output>, $Error, $Requirements> =>
|
54
|
-
Effect.gen(function*() {
|
55
|
-
const start = performance.now()
|
56
|
-
|
57
|
-
const result = yield* fn(input).pipe(
|
58
|
-
Effect.either,
|
59
|
-
)
|
60
|
-
|
61
|
-
const end = performance.now()
|
62
|
-
|
63
|
-
if (result._tag === 'Right') {
|
64
|
-
return {
|
65
|
-
task: definition,
|
66
|
-
execution: {
|
67
|
-
input,
|
68
|
-
output: result.right,
|
69
|
-
timings: {
|
70
|
-
start,
|
71
|
-
end,
|
72
|
-
duration: end - start,
|
73
|
-
},
|
74
|
-
},
|
75
|
-
}
|
76
|
-
} else {
|
77
|
-
return {
|
78
|
-
task: definition,
|
79
|
-
execution: {
|
80
|
-
input,
|
81
|
-
output: result.left as Error,
|
82
|
-
timings: {
|
83
|
-
start,
|
84
|
-
end,
|
85
|
-
duration: end - start,
|
86
|
-
},
|
87
|
-
},
|
88
|
-
}
|
89
|
-
}
|
90
|
-
})
|
91
|
-
|
92
|
-
task.definition = definition
|
93
|
-
|
94
|
-
return task
|
95
|
-
}
|
96
|
-
|
97
|
-
/**
|
98
|
-
* Sugar method that creates a task, executes it, and exits with the report.
|
99
|
-
* Equivalent to: create(fn, options) -> task(input) -> exitWithReport(report)
|
100
|
-
*
|
101
|
-
* @param fn - The function to wrap as a task
|
102
|
-
* @param input - Input to pass to the task
|
103
|
-
* @param options - Combined task creation and format options
|
104
|
-
*/
|
105
|
-
export const runAndExit = <$Input, $Output, $Error = never, $Requirements = never>(
|
106
|
-
fn: (input: $Input) => Effect.Effect<$Output, $Error, $Requirements>,
|
107
|
-
input: $Input,
|
108
|
-
options?: {
|
109
|
-
name?: string | undefined
|
110
|
-
mask?: MaskOptions<$Input, $Output> | undefined
|
111
|
-
debug?: boolean | undefined
|
112
|
-
},
|
113
|
-
): Effect.Effect<never, never, $Requirements> =>
|
114
|
-
Effect.gen(function*() {
|
115
|
-
const task = create(fn, {
|
116
|
-
name: options?.name,
|
117
|
-
mask: options?.mask,
|
118
|
-
})
|
119
|
-
// The task function handles errors internally and wraps them in the report
|
120
|
-
// so it should never fail - it always returns a Report
|
121
|
-
const report = yield* task(input)
|
122
|
-
// exitWithReport calls process.exit, so it never returns
|
123
|
-
exitWithReport(report, {
|
124
|
-
debug: options?.debug,
|
125
|
-
mask: options?.mask,
|
126
|
-
})
|
127
|
-
// This line will never be reached, but TypeScript needs it for the never type
|
128
|
-
return yield* Effect.die('unreachable')
|
129
|
-
}) as Effect.Effect<never, never, $Requirements>
|
package/src/project-data.ts
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
import type { Config } from '#api/config/$'
|
2
|
-
import type { NavbarItem } from '#api/content/navbar'
|
3
|
-
|
4
|
-
export interface ProjectData {
|
5
|
-
basePath: string
|
6
|
-
paths: Config.Config['paths']
|
7
|
-
navbar: NavbarItem[]
|
8
|
-
server: Config.Config['server']
|
9
|
-
warnings: Config.Config['warnings']
|
10
|
-
}
|
@@ -1,102 +0,0 @@
|
|
1
|
-
import { Catalog } from '#lib/catalog/$'
|
2
|
-
import { Effect } from 'effect'
|
3
|
-
import PROJECT_SCHEMA from 'virtual:polen/project/schema.json'
|
4
|
-
|
5
|
-
// ============================================================================
|
6
|
-
// Catalog Storage
|
7
|
-
// ============================================================================
|
8
|
-
|
9
|
-
// Store the catalog data directly in memory
|
10
|
-
let catalogData: Catalog.Catalog
|
11
|
-
|
12
|
-
if (PROJECT_SCHEMA) {
|
13
|
-
catalogData = Effect.runSync(Catalog.decode(PROJECT_SCHEMA as any))
|
14
|
-
}
|
15
|
-
|
16
|
-
// ============================================================================
|
17
|
-
// Bridge API
|
18
|
-
// ============================================================================
|
19
|
-
|
20
|
-
/**
|
21
|
-
* Create a simplified catalog bridge without hydra
|
22
|
-
*/
|
23
|
-
const createCatalogBridge = () => {
|
24
|
-
const assertCatalogLoaded = () => {
|
25
|
-
if (!catalogData) {
|
26
|
-
throw new Error(
|
27
|
-
'No schema catalog available. This page requires a GraphQL schema to be configured. '
|
28
|
-
+ 'Please ensure your Polen configuration includes a valid schema source.',
|
29
|
-
)
|
30
|
-
}
|
31
|
-
}
|
32
|
-
|
33
|
-
return {
|
34
|
-
/**
|
35
|
-
* Get the full catalog
|
36
|
-
*/
|
37
|
-
view: () => {
|
38
|
-
assertCatalogLoaded()
|
39
|
-
return Effect.succeed(catalogData)
|
40
|
-
},
|
41
|
-
|
42
|
-
/**
|
43
|
-
* Set catalog data
|
44
|
-
*/
|
45
|
-
setData: (data: Catalog.Catalog) => {
|
46
|
-
catalogData = data
|
47
|
-
return Effect.succeed(undefined)
|
48
|
-
},
|
49
|
-
|
50
|
-
/**
|
51
|
-
* Add a root value (for compatibility)
|
52
|
-
*/
|
53
|
-
addRootValue: (value: Catalog.Catalog) => {
|
54
|
-
catalogData = value
|
55
|
-
},
|
56
|
-
|
57
|
-
/**
|
58
|
-
* Export to memory (for compatibility)
|
59
|
-
*/
|
60
|
-
exportToMemory: () => {
|
61
|
-
if (!catalogData) return []
|
62
|
-
// Return as a single JSON blob instead of fragments
|
63
|
-
return [{
|
64
|
-
filename: 'catalog.json',
|
65
|
-
content: JSON.stringify(catalogData, null, 2),
|
66
|
-
}]
|
67
|
-
},
|
68
|
-
|
69
|
-
/**
|
70
|
-
* Export (for compatibility)
|
71
|
-
*/
|
72
|
-
export: () => {
|
73
|
-
// No-op in simplified version
|
74
|
-
return Effect.succeed(undefined)
|
75
|
-
},
|
76
|
-
|
77
|
-
/**
|
78
|
-
* Import (for compatibility)
|
79
|
-
*/
|
80
|
-
import: () => {
|
81
|
-
// No-op in simplified version - data is already loaded
|
82
|
-
return Effect.succeed(undefined)
|
83
|
-
},
|
84
|
-
}
|
85
|
-
}
|
86
|
-
|
87
|
-
// ============================================================================
|
88
|
-
// Exported Instance
|
89
|
-
// ============================================================================
|
90
|
-
|
91
|
-
export const catalogBridge = createCatalogBridge()
|
92
|
-
|
93
|
-
// ============================================================================
|
94
|
-
// Helper Functions
|
95
|
-
// ============================================================================
|
96
|
-
|
97
|
-
/**
|
98
|
-
* Check if catalog data is available
|
99
|
-
*/
|
100
|
-
export const hasCatalog = (): boolean => {
|
101
|
-
return catalogData !== undefined && catalogData !== null
|
102
|
-
}
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import { Catalog } from '#lib/catalog/$'
|
2
|
-
import { Effect } from 'effect'
|
3
|
-
import PROJECT_SCHEMA from 'virtual:polen/project/schema.json'
|
4
|
-
|
5
|
-
export const catalog: Catalog.Catalog | null = PROJECT_SCHEMA
|
6
|
-
? Effect.runSync(Catalog.decode(PROJECT_SCHEMA as any))
|
7
|
-
: null
|
@@ -1,185 +0,0 @@
|
|
1
|
-
import { Catalog } from '#lib/catalog/$'
|
2
|
-
import { Change } from '#lib/change/$'
|
3
|
-
import { Revision } from '#lib/revision/$'
|
4
|
-
import { Version } from '#lib/version/$'
|
5
|
-
import { Box, Flex, Text } from '@radix-ui/themes'
|
6
|
-
import React, { useEffect, useMemo, useState } from 'react'
|
7
|
-
import { useParams } from 'react-router'
|
8
|
-
import { renderDate } from '../components/Changelog/Changelog.js'
|
9
|
-
import { ChangelogVersionPicker } from '../components/Changelog/ChangelogVersionPicker.js'
|
10
|
-
|
11
|
-
interface ChangelogLayoutProps {
|
12
|
-
children: React.ReactNode
|
13
|
-
catalog: Catalog.Catalog
|
14
|
-
}
|
15
|
-
|
16
|
-
interface VersionCounts {
|
17
|
-
breaking: number
|
18
|
-
dangerous: number
|
19
|
-
safe: number
|
20
|
-
}
|
21
|
-
|
22
|
-
const calculateCounts = (revision: Revision.Revision): VersionCounts => {
|
23
|
-
return {
|
24
|
-
breaking: revision.changes.filter(Change.isBreaking).length,
|
25
|
-
dangerous: revision.changes.filter(Change.isDangerous).length,
|
26
|
-
safe: revision.changes.filter(Change.isSafe).length,
|
27
|
-
}
|
28
|
-
}
|
29
|
-
|
30
|
-
const SidebarEntry: React.FC<{
|
31
|
-
revision: Revision.Revision
|
32
|
-
counts: VersionCounts
|
33
|
-
isActive: boolean
|
34
|
-
}> = ({ revision, counts, isActive }) => {
|
35
|
-
const dateId = revision.date
|
36
|
-
|
37
|
-
return (
|
38
|
-
<Box mb='2'>
|
39
|
-
<a
|
40
|
-
href={`#${dateId}`}
|
41
|
-
style={{
|
42
|
-
textDecoration: 'none',
|
43
|
-
display: 'flex',
|
44
|
-
alignItems: 'center',
|
45
|
-
justifyContent: 'space-between',
|
46
|
-
padding: '0.5rem 0.75rem',
|
47
|
-
borderRadius: '4px',
|
48
|
-
backgroundColor: isActive ? 'var(--gray-a3)' : 'transparent',
|
49
|
-
color: 'inherit',
|
50
|
-
transition: 'background-color 0.2s',
|
51
|
-
}}
|
52
|
-
onClick={(e) => {
|
53
|
-
e.preventDefault()
|
54
|
-
// Update URL hash
|
55
|
-
window.history.pushState(null, '', `#${dateId}`)
|
56
|
-
// Dispatch custom event for pushState
|
57
|
-
window.dispatchEvent(new Event('pushstate'))
|
58
|
-
// Smooth scroll to element
|
59
|
-
document.getElementById(dateId)?.scrollIntoView({ behavior: 'smooth' })
|
60
|
-
}}
|
61
|
-
>
|
62
|
-
<Text size='2' weight={isActive ? 'medium' : 'regular'}>
|
63
|
-
{renderDate(revision.date)}
|
64
|
-
</Text>
|
65
|
-
<Flex gap='2' align='center'>
|
66
|
-
{counts.breaking > 0 && (
|
67
|
-
<Text size='1' weight='medium' style={{ color: '#ef4444' }}>
|
68
|
-
{counts.breaking}
|
69
|
-
</Text>
|
70
|
-
)}
|
71
|
-
{counts.dangerous > 0 && (
|
72
|
-
<Text size='1' weight='medium' style={{ color: '#f59e0b' }}>
|
73
|
-
{counts.dangerous}
|
74
|
-
</Text>
|
75
|
-
)}
|
76
|
-
{counts.safe > 0 && (
|
77
|
-
<Text size='1' weight='medium' style={{ color: '#10b981' }}>
|
78
|
-
{counts.safe}
|
79
|
-
</Text>
|
80
|
-
)}
|
81
|
-
</Flex>
|
82
|
-
</a>
|
83
|
-
</Box>
|
84
|
-
)
|
85
|
-
}
|
86
|
-
|
87
|
-
export const ChangelogLayout: React.FC<ChangelogLayoutProps> = ({ children, catalog }) => {
|
88
|
-
const [activeRevision, setActiveRevision] = useState<string | null>(null)
|
89
|
-
const params = useParams()
|
90
|
-
const urlVersion = params['version']
|
91
|
-
|
92
|
-
// Get available versions if catalog is versioned
|
93
|
-
const availableVersions = useMemo(() => {
|
94
|
-
if (Catalog.Versioned.is(catalog)) {
|
95
|
-
return catalog.entries.map(entry => Version.toString(entry.version))
|
96
|
-
}
|
97
|
-
return []
|
98
|
-
}, [catalog])
|
99
|
-
|
100
|
-
// Get revisions for the current version (for sidebar)
|
101
|
-
const revisions = useMemo(() => {
|
102
|
-
if (Catalog.Unversioned.is(catalog)) {
|
103
|
-
return catalog.schema.revisions
|
104
|
-
} else {
|
105
|
-
// For versioned catalogs, show only current version's revisions
|
106
|
-
if (urlVersion) {
|
107
|
-
const entry = catalog.entries.find(e => Version.toString(e.version) === urlVersion)
|
108
|
-
return entry ? entry.revisions : []
|
109
|
-
}
|
110
|
-
// No revisions if no version selected (will redirect)
|
111
|
-
return []
|
112
|
-
}
|
113
|
-
}, [catalog, urlVersion])
|
114
|
-
|
115
|
-
// Calculate counts for all revisions (SSR-safe)
|
116
|
-
const revisionsWithCounts = revisions.map(revision => ({
|
117
|
-
revision,
|
118
|
-
counts: calculateCounts(revision),
|
119
|
-
}))
|
120
|
-
|
121
|
-
// Track active revision based on URL hash
|
122
|
-
useEffect(() => {
|
123
|
-
const handleHashChange = () => {
|
124
|
-
const hash = window.location.hash.slice(1)
|
125
|
-
setActiveRevision(hash || null)
|
126
|
-
}
|
127
|
-
|
128
|
-
// Set initial active revision
|
129
|
-
handleHashChange()
|
130
|
-
|
131
|
-
// Listen for hash changes
|
132
|
-
window.addEventListener('hashchange', handleHashChange)
|
133
|
-
|
134
|
-
// Listen for pushState/replaceState (custom event we'll dispatch)
|
135
|
-
window.addEventListener('pushstate', handleHashChange)
|
136
|
-
|
137
|
-
return () => {
|
138
|
-
window.removeEventListener('hashchange', handleHashChange)
|
139
|
-
window.removeEventListener('pushstate', handleHashChange)
|
140
|
-
}
|
141
|
-
}, [])
|
142
|
-
|
143
|
-
return (
|
144
|
-
<Flex gap='6' style={{ position: 'relative' }}>
|
145
|
-
{/* Sidebar */}
|
146
|
-
<Box
|
147
|
-
style={{
|
148
|
-
position: 'sticky',
|
149
|
-
top: '2rem',
|
150
|
-
height: 'fit-content',
|
151
|
-
minWidth: '250px',
|
152
|
-
maxHeight: 'calc(100vh - 4rem)',
|
153
|
-
overflowY: 'auto',
|
154
|
-
}}
|
155
|
-
>
|
156
|
-
{/* Version picker for versioned catalogs */}
|
157
|
-
{Catalog.Versioned.is(catalog) && availableVersions.length > 1 && urlVersion && (
|
158
|
-
<Box mb='3'>
|
159
|
-
<ChangelogVersionPicker
|
160
|
-
versions={availableVersions}
|
161
|
-
currentVersion={urlVersion}
|
162
|
-
/>
|
163
|
-
</Box>
|
164
|
-
)}
|
165
|
-
|
166
|
-
<Text size='2' weight='medium' mb='3' style={{ display: 'block' }}>
|
167
|
-
Revisions
|
168
|
-
</Text>
|
169
|
-
{revisionsWithCounts.map(({ revision, counts }) => (
|
170
|
-
<SidebarEntry
|
171
|
-
key={revision.date}
|
172
|
-
revision={revision}
|
173
|
-
counts={counts}
|
174
|
-
isActive={activeRevision === revision.date}
|
175
|
-
/>
|
176
|
-
))}
|
177
|
-
</Box>
|
178
|
-
|
179
|
-
{/* Main content */}
|
180
|
-
<Box style={{ flex: 1, minWidth: 0 }}>
|
181
|
-
{children}
|
182
|
-
</Box>
|
183
|
-
</Flex>
|
184
|
-
)
|
185
|
-
}
|
@@ -1,265 +0,0 @@
|
|
1
|
-
import { Api } from '#api/index'
|
2
|
-
import type { Vite } from '#dep/vite/index'
|
3
|
-
import { Catalog } from '#lib/catalog/$'
|
4
|
-
import { debugPolen } from '#singletons/debug'
|
5
|
-
import * as NodeFileSystem from '@effect/platform-node/NodeFileSystem'
|
6
|
-
import { Cache } from '@wollybeard/kit'
|
7
|
-
import { Effect } from 'effect'
|
8
|
-
import * as NodeFs from 'node:fs/promises'
|
9
|
-
import * as NodePath from 'node:path'
|
10
|
-
|
11
|
-
/**
|
12
|
-
* Vite plugin that generates JSON assets for GraphQL schemas at build time.
|
13
|
-
*
|
14
|
-
* This plugin:
|
15
|
-
* - Reads GraphQL schema files from the project
|
16
|
-
* - Applies schema augmentations
|
17
|
-
* - Converts schemas to AST format and emits as JSON assets
|
18
|
-
* - Creates a metadata file with available versions
|
19
|
-
* - Provides a virtual module for accessing schema metadata
|
20
|
-
*
|
21
|
-
* The generated assets enable client-side loading of different schema versions
|
22
|
-
* without requiring all schemas to be bundled into the main JavaScript bundle.
|
23
|
-
*
|
24
|
-
* @param config - Polen configuration object
|
25
|
-
* @returns Vite plugin instance
|
26
|
-
*/
|
27
|
-
export const SchemaAssets = (config: Api.Config.Config): Vite.Plugin => {
|
28
|
-
const debug = debugPolen.sub(`vite-plugin:schema-assets`)
|
29
|
-
let viteServer: Vite.ViteDevServer | null = null
|
30
|
-
|
31
|
-
const schemaLoad = Cache.memoize(async () => {
|
32
|
-
return await Effect.runPromise(
|
33
|
-
Api.Schema.loadOrNull(config).pipe(
|
34
|
-
Effect.provide(NodeFileSystem.layer),
|
35
|
-
),
|
36
|
-
)
|
37
|
-
})
|
38
|
-
|
39
|
-
// Helper to check if a file is a schema file that should trigger regeneration
|
40
|
-
const isSchemaFile = (file: string): boolean => {
|
41
|
-
if (!config.schema) return false
|
42
|
-
|
43
|
-
const absoluteFile = NodePath.resolve(file)
|
44
|
-
|
45
|
-
// Check if file path matches the configured schema file
|
46
|
-
if (config.schema.sources?.file?.path) {
|
47
|
-
const absoluteSchemaFile = NodePath.resolve(
|
48
|
-
config.paths.project.rootDir,
|
49
|
-
config.schema.sources.file.path,
|
50
|
-
)
|
51
|
-
if (absoluteFile === absoluteSchemaFile) return true
|
52
|
-
}
|
53
|
-
|
54
|
-
// Check if file path is within the configured schema directory
|
55
|
-
if (config.schema.sources?.directory?.path) {
|
56
|
-
const absoluteSchemaDir = NodePath.resolve(
|
57
|
-
config.paths.project.rootDir,
|
58
|
-
config.schema.sources.directory.path,
|
59
|
-
)
|
60
|
-
if (absoluteFile.startsWith(absoluteSchemaDir + NodePath.sep)) return true
|
61
|
-
}
|
62
|
-
|
63
|
-
// Check if file is the introspection file
|
64
|
-
if (config.schema.sources?.introspection?.url) {
|
65
|
-
const absoluteIntrospectionFile = NodePath.resolve(
|
66
|
-
config.paths.project.rootDir,
|
67
|
-
`schema.introspection.json`,
|
68
|
-
)
|
69
|
-
if (absoluteFile === absoluteIntrospectionFile) return true
|
70
|
-
}
|
71
|
-
|
72
|
-
return false
|
73
|
-
}
|
74
|
-
|
75
|
-
// Helper to send HMR invalidation signal for schema changes
|
76
|
-
const sendSchemaInvalidation = (server: Vite.ViteDevServer) => {
|
77
|
-
server.ws.send({
|
78
|
-
type: 'custom',
|
79
|
-
event: 'polen:schema-invalidate',
|
80
|
-
data: { timestamp: Date.now() },
|
81
|
-
})
|
82
|
-
debug(`hmr:schemaInvalidationSent`, {})
|
83
|
-
}
|
84
|
-
|
85
|
-
// Helper to write assets
|
86
|
-
const writeDevAssets = async (
|
87
|
-
loadedCatalog: Api.Schema.InputSource.LoadedCatalog,
|
88
|
-
) => {
|
89
|
-
const { data: catalog } = loadedCatalog
|
90
|
-
if (!catalog) throw new Error('No catalog data to write')
|
91
|
-
|
92
|
-
// Encode catalog to convert GraphQLSchema to AST, then write as JSON
|
93
|
-
const devAssetsDir = config.paths.framework.devAssets.schemas
|
94
|
-
await NodeFs.mkdir(devAssetsDir, { recursive: true })
|
95
|
-
const catalogPath = NodePath.join(devAssetsDir, 'catalog.json')
|
96
|
-
|
97
|
-
const encodedCatalog = await Effect.runPromise(Catalog.encode(catalog))
|
98
|
-
|
99
|
-
await NodeFs.writeFile(catalogPath, JSON.stringify(encodedCatalog, null, 2))
|
100
|
-
|
101
|
-
debug(`devAssetsWritten`)
|
102
|
-
}
|
103
|
-
|
104
|
-
return {
|
105
|
-
name: `polen:schema-assets`,
|
106
|
-
|
107
|
-
configureServer(server) {
|
108
|
-
viteServer = server
|
109
|
-
|
110
|
-
// Clear all assets when dev server starts
|
111
|
-
const clearAssets = async () => {
|
112
|
-
try {
|
113
|
-
// Clear all assets
|
114
|
-
const devAssetsDir = config.paths.framework.devAssets.schemas
|
115
|
-
await NodeFs.rm(devAssetsDir, { recursive: true, force: true })
|
116
|
-
debug(`devAssetsCleared`, {})
|
117
|
-
} catch (error) {
|
118
|
-
// Ignore errors during clearing
|
119
|
-
debug(`devAssetsClearError`, { error })
|
120
|
-
}
|
121
|
-
}
|
122
|
-
|
123
|
-
// Clear assets immediately
|
124
|
-
void clearAssets()
|
125
|
-
|
126
|
-
// Set up file watching for schema source files
|
127
|
-
// TODO: Even when schema is disabled, we should still watch for schema file patterns
|
128
|
-
// during development. If a user enables schema in config during dev, we need to be
|
129
|
-
// ready to detect and load schema files immediately. Currently we skip file watching
|
130
|
-
// entirely when schema is disabled, which means manual dev server restart is required.
|
131
|
-
if (config.schema?.sources?.directory?.path) {
|
132
|
-
// Watch the entire directory for directory mode
|
133
|
-
server.watcher.add(config.schema.sources.directory.path)
|
134
|
-
debug(`watchingSchemaDirectory`, { path: config.schema.sources.directory.path })
|
135
|
-
}
|
136
|
-
|
137
|
-
if (config.schema?.sources?.file?.path) {
|
138
|
-
// Watch the specific file for file mode
|
139
|
-
server.watcher.add(config.schema.sources.file.path)
|
140
|
-
debug(`watchingSchemaFile`, { path: config.schema.sources.file.path })
|
141
|
-
}
|
142
|
-
|
143
|
-
if (config.schema?.sources?.introspection?.url) {
|
144
|
-
// Watch the introspection file if introspection is configured
|
145
|
-
const introspectionFilePath = NodePath.join(config.paths.project.rootDir, `schema.introspection.json`)
|
146
|
-
server.watcher.add(introspectionFilePath)
|
147
|
-
debug(`watchingIntrospectionFile`, { path: introspectionFilePath })
|
148
|
-
}
|
149
|
-
|
150
|
-
// Handle file removal
|
151
|
-
server.watcher.on('unlink', async (file) => {
|
152
|
-
const schemaFileDetected = isSchemaFile(file)
|
153
|
-
|
154
|
-
if (schemaFileDetected) {
|
155
|
-
debug(`schemaFileRemoved`, { file })
|
156
|
-
|
157
|
-
try {
|
158
|
-
// Clear cache and regenerate
|
159
|
-
schemaLoad.clear()
|
160
|
-
const loadedSchema = await schemaLoad()
|
161
|
-
if (!loadedSchema) return
|
162
|
-
|
163
|
-
// const { data: schemaData, manifest, source } = loadedSchema
|
164
|
-
|
165
|
-
// If file was deleted but can be recreated, attempt recreation
|
166
|
-
if (!loadedSchema.data && loadedSchema.source.reCreate) {
|
167
|
-
debug(`attemptingSchemaRecreation`, { sourceType: loadedSchema.source.name })
|
168
|
-
try {
|
169
|
-
const recreatedData = await loadedSchema.source.reCreate({} as any, { paths: config.paths })
|
170
|
-
if (recreatedData) {
|
171
|
-
// Clear cache again and reload after recreation
|
172
|
-
schemaLoad.clear()
|
173
|
-
const reloadResult = await schemaLoad()
|
174
|
-
if (reloadResult?.data) {
|
175
|
-
await writeDevAssets(reloadResult)
|
176
|
-
debug(`hmr:schemaRecreatedAndWritten`)
|
177
|
-
}
|
178
|
-
} else {
|
179
|
-
debug(`hmr:schemaRecreationFailed`, { reason: 'reCreate returned null' })
|
180
|
-
}
|
181
|
-
} catch (recreationError) {
|
182
|
-
debug(`hmr:schemaRecreationFailed`, { error: recreationError })
|
183
|
-
}
|
184
|
-
} else if (loadedSchema.data) {
|
185
|
-
// Write new assets without the removed file
|
186
|
-
await writeDevAssets(loadedSchema)
|
187
|
-
debug(`hmr:schemaAssetsUpdatedAfterRemoval`)
|
188
|
-
} else {
|
189
|
-
// No schema data and cannot recreate - clear catalog file
|
190
|
-
const catalogPath = NodePath.join(config.paths.framework.devAssets.schemas, 'catalog.json')
|
191
|
-
await NodeFs.rm(catalogPath, { force: true })
|
192
|
-
debug(`hmr:catalogCleared`, {})
|
193
|
-
}
|
194
|
-
} catch (error) {
|
195
|
-
debug(`hmr:schemaRemovalFailed`, { error })
|
196
|
-
}
|
197
|
-
|
198
|
-
// Send HMR invalidation signal
|
199
|
-
sendSchemaInvalidation(server)
|
200
|
-
}
|
201
|
-
})
|
202
|
-
},
|
203
|
-
|
204
|
-
async buildStart() {
|
205
|
-
debug(`buildStart`, {})
|
206
|
-
|
207
|
-
// Load and process schema data
|
208
|
-
const loadedSchema = await schemaLoad()
|
209
|
-
if (!loadedSchema) {
|
210
|
-
debug(`schemaDisabled`, {})
|
211
|
-
return
|
212
|
-
}
|
213
|
-
const { data: schemaData } = loadedSchema
|
214
|
-
|
215
|
-
if (!schemaData) {
|
216
|
-
debug(`noSchemaFound`, {})
|
217
|
-
return
|
218
|
-
}
|
219
|
-
|
220
|
-
// Handle asset generation differently for dev vs build
|
221
|
-
if (viteServer) {
|
222
|
-
// Dev mode: Write assets directly to filesystem
|
223
|
-
await writeDevAssets(loadedSchema)
|
224
|
-
debug(`devMode:schemaAssetsWritten`, {})
|
225
|
-
return
|
226
|
-
}
|
227
|
-
|
228
|
-
// Build mode: Encode and emit catalog as a single JSON file
|
229
|
-
const encodedCatalog = await Effect.runPromise(Catalog.encode(schemaData))
|
230
|
-
const catalogJson = JSON.stringify(encodedCatalog, null, 2)
|
231
|
-
this.emitFile({
|
232
|
-
type: `asset`,
|
233
|
-
fileName: `${config.paths.project.relative.build.relative.assets.root}/schemas/catalog.json`,
|
234
|
-
source: catalogJson,
|
235
|
-
})
|
236
|
-
|
237
|
-
debug(`buildMode:catalogAssetEmitted`)
|
238
|
-
},
|
239
|
-
|
240
|
-
async handleHotUpdate({ file, server }) {
|
241
|
-
const schemaFileDetected = isSchemaFile(file)
|
242
|
-
if (schemaFileDetected) {
|
243
|
-
debug(`schemaFileChanged`, { file })
|
244
|
-
|
245
|
-
// Regenerate schema assets
|
246
|
-
try {
|
247
|
-
schemaLoad.clear()
|
248
|
-
const schema = await schemaLoad()
|
249
|
-
|
250
|
-
if (schema?.data) {
|
251
|
-
debug(`hmr:schemaRegenerated`)
|
252
|
-
|
253
|
-
// Write new assets to filesystem
|
254
|
-
await writeDevAssets(schema)
|
255
|
-
}
|
256
|
-
} catch (error) {
|
257
|
-
debug(`hmr:schemaRegenerationFailed`, { error })
|
258
|
-
}
|
259
|
-
|
260
|
-
// Send HMR invalidation signal
|
261
|
-
sendSchemaInvalidation(server)
|
262
|
-
}
|
263
|
-
},
|
264
|
-
}
|
265
|
-
}
|
File without changes
|