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
@@ -0,0 +1,699 @@
|
|
1
|
+
import type { Args, Command, CommandDescriptor, HelpDoc, Options, Primitive } from '@effect/cli'
|
2
|
+
|
3
|
+
// ============================================================================
|
4
|
+
// Types
|
5
|
+
// ============================================================================
|
6
|
+
|
7
|
+
export interface MarkdownOptions {
|
8
|
+
/**
|
9
|
+
* The heading level to start with (1-6)
|
10
|
+
* @default 1
|
11
|
+
*/
|
12
|
+
baseHeadingLevel?: number
|
13
|
+
/**
|
14
|
+
* Whether to include the command name as a heading
|
15
|
+
* @default true
|
16
|
+
*/
|
17
|
+
includeCommandName?: boolean
|
18
|
+
}
|
19
|
+
|
20
|
+
// Internal descriptor types based on actual Effect CLI structure
|
21
|
+
interface DescriptorBase {
|
22
|
+
_tag: string
|
23
|
+
}
|
24
|
+
|
25
|
+
interface StandardDescriptor extends DescriptorBase {
|
26
|
+
_tag: 'Standard'
|
27
|
+
name: string
|
28
|
+
description: DescriptionStructure
|
29
|
+
options: OptionsStructure
|
30
|
+
args: ArgsStructure
|
31
|
+
}
|
32
|
+
|
33
|
+
interface SubcommandsDescriptor extends DescriptorBase {
|
34
|
+
_tag: 'Subcommands'
|
35
|
+
parent: {
|
36
|
+
command: StandardDescriptor
|
37
|
+
}
|
38
|
+
children: CommandWrapper[]
|
39
|
+
}
|
40
|
+
|
41
|
+
interface MapDescriptor extends DescriptorBase {
|
42
|
+
_tag: 'Map'
|
43
|
+
command: StandardDescriptor
|
44
|
+
}
|
45
|
+
|
46
|
+
interface CommandWrapper {
|
47
|
+
_tag: 'Map'
|
48
|
+
command: StandardDescriptor | MapDescriptor
|
49
|
+
}
|
50
|
+
|
51
|
+
interface DescriptionStructure {
|
52
|
+
_tag: 'Empty' | 'Paragraph'
|
53
|
+
value?: {
|
54
|
+
value: string
|
55
|
+
}
|
56
|
+
}
|
57
|
+
|
58
|
+
interface OptionsStructure extends DescriptorBase {
|
59
|
+
_tag: 'Empty' | 'Single' | 'Map' | 'Both' | 'WithDefault'
|
60
|
+
options?: OptionsStructure
|
61
|
+
left?: OptionsStructure
|
62
|
+
right?: OptionsStructure
|
63
|
+
fallback?: unknown
|
64
|
+
name?: string
|
65
|
+
fullName?: string
|
66
|
+
placeholder?: string
|
67
|
+
aliases?: string[]
|
68
|
+
primitiveType?: PrimitiveTypeStructure
|
69
|
+
description?: DescriptionStructure
|
70
|
+
}
|
71
|
+
|
72
|
+
interface ArgsStructure extends DescriptorBase {
|
73
|
+
_tag: 'Empty' | 'Single' | 'Map' | 'Both' | 'WithDefault'
|
74
|
+
args?: ArgsStructure
|
75
|
+
left?: ArgsStructure
|
76
|
+
right?: ArgsStructure
|
77
|
+
fallback?: { _tag: 'Some' | 'None'; value?: unknown }
|
78
|
+
name?: string
|
79
|
+
pseudoName?: { _tag: 'Some' | 'None'; value?: string }
|
80
|
+
primitiveType?: PrimitiveTypeStructure
|
81
|
+
description?: DescriptionStructure
|
82
|
+
}
|
83
|
+
|
84
|
+
interface PrimitiveTypeStructure extends DescriptorBase {
|
85
|
+
_tag: 'Bool' | 'Text' | 'Integer' | 'Float' | 'Choice'
|
86
|
+
defaultValue?: { _tag: 'Some' | 'None'; value?: unknown }
|
87
|
+
alternatives?: Array<[string, string]>
|
88
|
+
}
|
89
|
+
|
90
|
+
// Command with internal descriptor property
|
91
|
+
// We can't extend Command directly, so we type it as an intersection
|
92
|
+
type CommandInternal<Name extends string, R, E, A> = Command.Command<Name, R, E, A> & {
|
93
|
+
descriptor: StandardDescriptor | SubcommandsDescriptor | MapDescriptor
|
94
|
+
}
|
95
|
+
|
96
|
+
// ============================================================================
|
97
|
+
// Main Functions
|
98
|
+
// ============================================================================
|
99
|
+
|
100
|
+
/**
|
101
|
+
* Convert an Effect CLI Command to markdown documentation
|
102
|
+
*/
|
103
|
+
export const commandToMarkdown = <Name extends string, R, E, A>(
|
104
|
+
command: Command.Command<Name, R, E, A>,
|
105
|
+
options: MarkdownOptions = {},
|
106
|
+
): string => {
|
107
|
+
const {
|
108
|
+
baseHeadingLevel = 1,
|
109
|
+
includeCommandName = true,
|
110
|
+
} = options
|
111
|
+
|
112
|
+
const sections: string[] = []
|
113
|
+
|
114
|
+
// Extract command info - we need to access internal properties
|
115
|
+
const internalCommand = command as unknown as CommandInternal<Name, R, E, A>
|
116
|
+
const commandInfo = extractCommandInfo(internalCommand)
|
117
|
+
|
118
|
+
// Add command name as heading if requested
|
119
|
+
if (includeCommandName && commandInfo.name) {
|
120
|
+
sections.push(`${'#'.repeat(baseHeadingLevel)} \`${commandInfo.name}\``)
|
121
|
+
sections.push('')
|
122
|
+
}
|
123
|
+
|
124
|
+
// Add description
|
125
|
+
if (commandInfo.description) {
|
126
|
+
sections.push(commandInfo.description)
|
127
|
+
sections.push('')
|
128
|
+
}
|
129
|
+
|
130
|
+
// Add usage section
|
131
|
+
if (commandInfo.usage) {
|
132
|
+
sections.push(`${'#'.repeat(baseHeadingLevel + 1)} Usage`)
|
133
|
+
sections.push('')
|
134
|
+
sections.push('```sh')
|
135
|
+
sections.push(commandInfo.usage)
|
136
|
+
sections.push('```')
|
137
|
+
sections.push('')
|
138
|
+
}
|
139
|
+
|
140
|
+
// Add arguments section
|
141
|
+
if (commandInfo.args && commandInfo.args.length > 0) {
|
142
|
+
sections.push(`${'#'.repeat(baseHeadingLevel + 1)} Arguments`)
|
143
|
+
sections.push('')
|
144
|
+
|
145
|
+
for (const arg of commandInfo.args) {
|
146
|
+
sections.push(`- \`${arg.name}\` ${arg.required ? '(required)' : '(optional)'}`)
|
147
|
+
if (arg.description) {
|
148
|
+
sections.push(` - ${arg.description}`)
|
149
|
+
}
|
150
|
+
if (arg.type) {
|
151
|
+
sections.push(` - Type: \`${arg.type}\``)
|
152
|
+
}
|
153
|
+
if (arg.default !== undefined) {
|
154
|
+
sections.push(` - Default: \`${arg.default}\``)
|
155
|
+
}
|
156
|
+
}
|
157
|
+
sections.push('')
|
158
|
+
}
|
159
|
+
|
160
|
+
// Add options section
|
161
|
+
if (commandInfo.options && commandInfo.options.length > 0) {
|
162
|
+
sections.push(`${'#'.repeat(baseHeadingLevel + 1)} Options`)
|
163
|
+
sections.push('')
|
164
|
+
sections.push('| Option | Alias | Type | Required | Default | Description |')
|
165
|
+
sections.push('|--------|-------|------|----------|---------|-------------|')
|
166
|
+
|
167
|
+
for (const option of commandInfo.options) {
|
168
|
+
const alias = option.alias ? `-${option.alias}` : ''
|
169
|
+
const required = option.required ? 'Yes' : 'No'
|
170
|
+
const defaultVal = option.default !== undefined ? `\`${option.default}\`` : '-'
|
171
|
+
const description = option.description || '-'
|
172
|
+
|
173
|
+
sections.push(
|
174
|
+
`| \`--${option.name}\` | \`${alias}\` | ${option.type} | ${required} | ${defaultVal} | ${description} |`,
|
175
|
+
)
|
176
|
+
}
|
177
|
+
sections.push('')
|
178
|
+
}
|
179
|
+
|
180
|
+
// Add subcommands section
|
181
|
+
if (commandInfo.subcommands && commandInfo.subcommands.length > 0) {
|
182
|
+
sections.push(`${'#'.repeat(baseHeadingLevel + 1)} Subcommands`)
|
183
|
+
sections.push('')
|
184
|
+
|
185
|
+
for (const subcommand of commandInfo.subcommands) {
|
186
|
+
sections.push(`- \`${subcommand.name}\` - ${subcommand.description || 'No description'}`)
|
187
|
+
}
|
188
|
+
sections.push('')
|
189
|
+
|
190
|
+
// Add detailed subcommand documentation
|
191
|
+
for (const subcommand of commandInfo.subcommands) {
|
192
|
+
sections.push(`${'#'.repeat(baseHeadingLevel + 2)} \`${commandInfo.name} ${subcommand.name}\``)
|
193
|
+
sections.push('')
|
194
|
+
|
195
|
+
if (subcommand.description) {
|
196
|
+
sections.push(subcommand.description)
|
197
|
+
sections.push('')
|
198
|
+
}
|
199
|
+
|
200
|
+
// Recursively generate documentation for subcommand
|
201
|
+
// Note: This is simplified - in reality we'd need to handle the subcommand properly
|
202
|
+
if (subcommand.usage) {
|
203
|
+
sections.push('```sh')
|
204
|
+
sections.push(subcommand.usage)
|
205
|
+
sections.push('```')
|
206
|
+
sections.push('')
|
207
|
+
}
|
208
|
+
}
|
209
|
+
}
|
210
|
+
|
211
|
+
// Add examples section
|
212
|
+
if (commandInfo.examples && commandInfo.examples.length > 0) {
|
213
|
+
sections.push(`${'#'.repeat(baseHeadingLevel + 1)} Examples`)
|
214
|
+
sections.push('')
|
215
|
+
|
216
|
+
for (const example of commandInfo.examples) {
|
217
|
+
if (example.description) {
|
218
|
+
sections.push(example.description)
|
219
|
+
sections.push('')
|
220
|
+
}
|
221
|
+
sections.push('```sh')
|
222
|
+
sections.push(example.command)
|
223
|
+
sections.push('```')
|
224
|
+
sections.push('')
|
225
|
+
}
|
226
|
+
}
|
227
|
+
|
228
|
+
return sections.join('\n').trim()
|
229
|
+
}
|
230
|
+
|
231
|
+
// ============================================================================
|
232
|
+
// Helper Functions
|
233
|
+
// ============================================================================
|
234
|
+
|
235
|
+
interface CommandInfo {
|
236
|
+
name?: string
|
237
|
+
description?: string
|
238
|
+
usage?: string
|
239
|
+
args?: ArgumentInfo[]
|
240
|
+
options?: OptionInfo[]
|
241
|
+
subcommands?: SubcommandInfo[]
|
242
|
+
examples?: ExampleInfo[]
|
243
|
+
}
|
244
|
+
|
245
|
+
interface ArgumentInfo {
|
246
|
+
name: string
|
247
|
+
description?: string
|
248
|
+
type?: string
|
249
|
+
required: boolean
|
250
|
+
default?: unknown
|
251
|
+
}
|
252
|
+
|
253
|
+
interface OptionInfo {
|
254
|
+
name: string
|
255
|
+
alias?: string | undefined
|
256
|
+
description?: string | undefined
|
257
|
+
type: string
|
258
|
+
required: boolean
|
259
|
+
default?: unknown | undefined
|
260
|
+
}
|
261
|
+
|
262
|
+
interface SubcommandInfo {
|
263
|
+
name: string
|
264
|
+
description?: string | undefined
|
265
|
+
usage?: string | undefined
|
266
|
+
}
|
267
|
+
|
268
|
+
interface ExampleInfo {
|
269
|
+
description?: string
|
270
|
+
command: string
|
271
|
+
}
|
272
|
+
|
273
|
+
/**
|
274
|
+
* Extract command information from an Effect CLI Command
|
275
|
+
* This uses the command's descriptor property to access metadata
|
276
|
+
*/
|
277
|
+
const extractCommandInfo = <Name extends string, R, E, A>(
|
278
|
+
command: CommandInternal<Name, R, E, A>,
|
279
|
+
): CommandInfo => {
|
280
|
+
const info: CommandInfo = {}
|
281
|
+
|
282
|
+
// Access the descriptor property which contains command metadata
|
283
|
+
const descriptor = command.descriptor
|
284
|
+
|
285
|
+
if (descriptor) {
|
286
|
+
// For subcommands within a Map structure, the actual command is nested
|
287
|
+
const actualCommand = getActualCommand(descriptor)
|
288
|
+
|
289
|
+
// Extract name from descriptor
|
290
|
+
if (actualCommand.name) {
|
291
|
+
info.name = actualCommand.name
|
292
|
+
info.usage = `polen ${actualCommand.name} [options]`
|
293
|
+
}
|
294
|
+
|
295
|
+
// Extract description if available
|
296
|
+
if (actualCommand.description && actualCommand.description._tag !== 'Empty') {
|
297
|
+
// Description might be wrapped in a structure
|
298
|
+
if (actualCommand.description.value?.value) {
|
299
|
+
info.description = actualCommand.description.value.value
|
300
|
+
}
|
301
|
+
}
|
302
|
+
|
303
|
+
// Extract options from descriptor
|
304
|
+
if (actualCommand.options) {
|
305
|
+
info.options = extractOptionsFromDescriptor(actualCommand.options)
|
306
|
+
}
|
307
|
+
|
308
|
+
// Extract arguments from descriptor
|
309
|
+
if (actualCommand.args) {
|
310
|
+
info.args = extractArgsFromDescriptor(actualCommand.args)
|
311
|
+
}
|
312
|
+
}
|
313
|
+
|
314
|
+
return info
|
315
|
+
}
|
316
|
+
|
317
|
+
/**
|
318
|
+
* Get the actual command descriptor from various wrapper structures
|
319
|
+
*/
|
320
|
+
const getActualCommand = (
|
321
|
+
descriptor: StandardDescriptor | SubcommandsDescriptor | MapDescriptor,
|
322
|
+
): StandardDescriptor => {
|
323
|
+
if (descriptor._tag === 'Map' && 'command' in descriptor) {
|
324
|
+
return descriptor.command
|
325
|
+
}
|
326
|
+
if (descriptor._tag === 'Subcommands') {
|
327
|
+
return descriptor.parent.command
|
328
|
+
}
|
329
|
+
return descriptor as StandardDescriptor
|
330
|
+
}
|
331
|
+
|
332
|
+
/**
|
333
|
+
* Extract options from a descriptor's options
|
334
|
+
*/
|
335
|
+
const extractOptionsFromDescriptor = (options: OptionsStructure): OptionInfo[] => {
|
336
|
+
if (!options) return []
|
337
|
+
|
338
|
+
const result: OptionInfo[] = []
|
339
|
+
|
340
|
+
// Handle Effect CLI option structures
|
341
|
+
switch (options._tag) {
|
342
|
+
case 'Single':
|
343
|
+
// Single option
|
344
|
+
result.push(extractSingleOption(options))
|
345
|
+
break
|
346
|
+
case 'Map':
|
347
|
+
// Nested option structure
|
348
|
+
if (options.options) {
|
349
|
+
result.push(...extractOptionsFromDescriptor(options.options))
|
350
|
+
}
|
351
|
+
break
|
352
|
+
case 'Both':
|
353
|
+
// Two options combined
|
354
|
+
if (options.left) {
|
355
|
+
result.push(...extractOptionsFromDescriptor(options.left))
|
356
|
+
}
|
357
|
+
if (options.right) {
|
358
|
+
result.push(...extractOptionsFromDescriptor(options.right))
|
359
|
+
}
|
360
|
+
break
|
361
|
+
case 'WithDefault':
|
362
|
+
// Option with default value
|
363
|
+
if (options.options) {
|
364
|
+
result.push(...extractOptionsFromDescriptor(options.options))
|
365
|
+
}
|
366
|
+
break
|
367
|
+
case 'Empty':
|
368
|
+
// No options
|
369
|
+
break
|
370
|
+
}
|
371
|
+
|
372
|
+
return result
|
373
|
+
}
|
374
|
+
|
375
|
+
/**
|
376
|
+
* Extract a single option's information
|
377
|
+
*/
|
378
|
+
const extractSingleOption = (option: OptionsStructure): OptionInfo => {
|
379
|
+
// Extract description from complex structure
|
380
|
+
let description = ''
|
381
|
+
if (option.description) {
|
382
|
+
if (option.description.value?.value) {
|
383
|
+
description = option.description.value.value
|
384
|
+
}
|
385
|
+
}
|
386
|
+
|
387
|
+
// Extract type from primitiveType
|
388
|
+
let type = 'string'
|
389
|
+
if (option.primitiveType) {
|
390
|
+
switch (option.primitiveType._tag) {
|
391
|
+
case 'Bool':
|
392
|
+
type = 'boolean'
|
393
|
+
break
|
394
|
+
case 'Text':
|
395
|
+
type = 'string'
|
396
|
+
break
|
397
|
+
case 'Integer':
|
398
|
+
type = 'number'
|
399
|
+
break
|
400
|
+
case 'Float':
|
401
|
+
type = 'number'
|
402
|
+
break
|
403
|
+
case 'Choice':
|
404
|
+
const choices = option.primitiveType.alternatives?.map(alt => alt[0]).join(' | ') || ''
|
405
|
+
type = choices || 'choice'
|
406
|
+
break
|
407
|
+
default:
|
408
|
+
type = 'string' // fallback for unknown primitive types
|
409
|
+
}
|
410
|
+
}
|
411
|
+
|
412
|
+
// Extract aliases
|
413
|
+
const aliases = Array.isArray(option.aliases) ? option.aliases : []
|
414
|
+
const alias = aliases.length > 0 ? aliases[0] : undefined
|
415
|
+
|
416
|
+
// Extract default value
|
417
|
+
let defaultValue = undefined
|
418
|
+
if (option.primitiveType?.defaultValue?._tag === 'Some') {
|
419
|
+
defaultValue = option.primitiveType.defaultValue.value
|
420
|
+
}
|
421
|
+
|
422
|
+
return {
|
423
|
+
name: option.name || 'unknown',
|
424
|
+
alias,
|
425
|
+
description,
|
426
|
+
type,
|
427
|
+
required: false, // Effect CLI options are typically optional
|
428
|
+
default: defaultValue,
|
429
|
+
}
|
430
|
+
}
|
431
|
+
|
432
|
+
/**
|
433
|
+
* Extract arguments from a descriptor's args
|
434
|
+
*/
|
435
|
+
const extractArgsFromDescriptor = (args: ArgsStructure): ArgumentInfo[] => {
|
436
|
+
if (!args) return []
|
437
|
+
|
438
|
+
const result: ArgumentInfo[] = []
|
439
|
+
|
440
|
+
// Handle Effect CLI argument structures
|
441
|
+
switch (args._tag) {
|
442
|
+
case 'Single':
|
443
|
+
// Single argument
|
444
|
+
result.push(extractSingleArg(args))
|
445
|
+
break
|
446
|
+
case 'Map':
|
447
|
+
// Nested argument structure
|
448
|
+
if (args.args) {
|
449
|
+
result.push(...extractArgsFromDescriptor(args.args))
|
450
|
+
}
|
451
|
+
break
|
452
|
+
case 'Both':
|
453
|
+
// Two arguments combined
|
454
|
+
if (args.left) {
|
455
|
+
result.push(...extractArgsFromDescriptor(args.left))
|
456
|
+
}
|
457
|
+
if (args.right) {
|
458
|
+
result.push(...extractArgsFromDescriptor(args.right))
|
459
|
+
}
|
460
|
+
break
|
461
|
+
case 'WithDefault':
|
462
|
+
// Argument with default value
|
463
|
+
if (args.args) {
|
464
|
+
result.push(...extractArgsFromDescriptor(args.args))
|
465
|
+
}
|
466
|
+
break
|
467
|
+
case 'Empty':
|
468
|
+
// No arguments
|
469
|
+
break
|
470
|
+
}
|
471
|
+
|
472
|
+
return result
|
473
|
+
}
|
474
|
+
|
475
|
+
/**
|
476
|
+
* Extract a single argument's information
|
477
|
+
*/
|
478
|
+
const extractSingleArg = (arg: ArgsStructure): ArgumentInfo => {
|
479
|
+
// Extract description from complex structure
|
480
|
+
let description = ''
|
481
|
+
if (arg.description) {
|
482
|
+
if (arg.description.value?.value) {
|
483
|
+
description = arg.description.value.value
|
484
|
+
}
|
485
|
+
}
|
486
|
+
|
487
|
+
// Extract type from primitiveType
|
488
|
+
let type = 'string'
|
489
|
+
if (arg.primitiveType) {
|
490
|
+
switch (arg.primitiveType._tag) {
|
491
|
+
case 'Bool':
|
492
|
+
type = 'boolean'
|
493
|
+
break
|
494
|
+
case 'Text':
|
495
|
+
type = 'string'
|
496
|
+
break
|
497
|
+
case 'Integer':
|
498
|
+
type = 'number'
|
499
|
+
break
|
500
|
+
case 'Float':
|
501
|
+
type = 'number'
|
502
|
+
break
|
503
|
+
default:
|
504
|
+
type = arg.primitiveType._tag?.toLowerCase() || 'string'
|
505
|
+
}
|
506
|
+
}
|
507
|
+
|
508
|
+
// Use pseudoName if available for cleaner display
|
509
|
+
const displayName = arg.pseudoName?._tag === 'Some' ? arg.pseudoName.value : arg.name
|
510
|
+
|
511
|
+
return {
|
512
|
+
name: displayName || arg.name || 'unknown',
|
513
|
+
description,
|
514
|
+
type,
|
515
|
+
required: arg.fallback === undefined || arg.fallback?._tag === 'None',
|
516
|
+
default: arg.fallback?._tag === 'Some' ? arg.fallback.value : undefined,
|
517
|
+
}
|
518
|
+
}
|
519
|
+
|
520
|
+
/**
|
521
|
+
* Extract subcommands from a descriptor
|
522
|
+
*/
|
523
|
+
const extractSubcommandsFromDescriptor = (subcommands: unknown): SubcommandInfo[] => {
|
524
|
+
if (!subcommands) return []
|
525
|
+
|
526
|
+
const result: SubcommandInfo[] = []
|
527
|
+
|
528
|
+
if (Array.isArray(subcommands)) {
|
529
|
+
for (const subcommand of subcommands) {
|
530
|
+
if (subcommand && typeof subcommand === 'object' && 'name' in subcommand) {
|
531
|
+
const info: SubcommandInfo = {
|
532
|
+
name: subcommand.name as string,
|
533
|
+
description: (subcommand as { description?: string }).description,
|
534
|
+
usage: (subcommand as { usage?: string }).usage,
|
535
|
+
}
|
536
|
+
result.push(info)
|
537
|
+
}
|
538
|
+
}
|
539
|
+
} else if (typeof subcommands === 'object') {
|
540
|
+
for (const key of Object.keys(subcommands as object)) {
|
541
|
+
const subcommand = (subcommands as Record<string, unknown>)[key]
|
542
|
+
if (subcommand && typeof subcommand === 'object' && 'name' in subcommand) {
|
543
|
+
const info: SubcommandInfo = {
|
544
|
+
name: (subcommand as { name?: string }).name || key,
|
545
|
+
description: (subcommand as { description?: string }).description,
|
546
|
+
usage: (subcommand as { usage?: string }).usage,
|
547
|
+
}
|
548
|
+
result.push(info)
|
549
|
+
}
|
550
|
+
}
|
551
|
+
}
|
552
|
+
|
553
|
+
return result
|
554
|
+
}
|
555
|
+
|
556
|
+
/**
|
557
|
+
* Generate markdown documentation for a CLI with subcommands
|
558
|
+
* This function traverses the command tree and generates documentation for each subcommand
|
559
|
+
*/
|
560
|
+
export const cliToMarkdown = <Name extends string, R, E, A>(
|
561
|
+
command: Command.Command<Name, R, E, A>,
|
562
|
+
options: MarkdownOptions & {
|
563
|
+
includeGlobalOptions?: boolean
|
564
|
+
} = {},
|
565
|
+
): string => {
|
566
|
+
const sections: string[] = []
|
567
|
+
const internalCommand = command as unknown as CommandInternal<Name, R, E, A>
|
568
|
+
const descriptor = internalCommand.descriptor
|
569
|
+
|
570
|
+
// Based on debugging output, the structure is:
|
571
|
+
// descriptor._tag: "Subcommands"
|
572
|
+
// descriptor.children: array of subcommands
|
573
|
+
// descriptor.parent.command.options: global options
|
574
|
+
if (descriptor && descriptor._tag === 'Subcommands' && 'children' in descriptor) {
|
575
|
+
// Extract subcommands from the children array
|
576
|
+
const subcommands = descriptor.children
|
577
|
+
|
578
|
+
// Sort subcommands alphabetically by name for consistent output
|
579
|
+
const sortedSubcommands = [...subcommands].sort((a, b) => {
|
580
|
+
const nameA = getCommandName(a) || ''
|
581
|
+
const nameB = getCommandName(b) || ''
|
582
|
+
return nameA.localeCompare(nameB)
|
583
|
+
})
|
584
|
+
|
585
|
+
for (const subcommand of sortedSubcommands) {
|
586
|
+
if (subcommand && typeof subcommand === 'object') {
|
587
|
+
// The subcommands in children array don't have a descriptor property
|
588
|
+
// Instead they have the command structure directly
|
589
|
+
// We need to wrap it to match what commandToMarkdown expects
|
590
|
+
// Create a wrapper object that has the descriptor property
|
591
|
+
const wrappedCommand = {
|
592
|
+
descriptor: subcommand.command || subcommand,
|
593
|
+
}
|
594
|
+
|
595
|
+
// Generate markdown for each subcommand
|
596
|
+
const markdown = commandToMarkdown(
|
597
|
+
wrappedCommand as unknown as Command.Command<string, unknown, unknown, unknown>,
|
598
|
+
{
|
599
|
+
...options,
|
600
|
+
includeCommandName: true,
|
601
|
+
baseHeadingLevel: options.baseHeadingLevel || 3,
|
602
|
+
},
|
603
|
+
)
|
604
|
+
|
605
|
+
if (markdown) {
|
606
|
+
sections.push(markdown)
|
607
|
+
sections.push('')
|
608
|
+
}
|
609
|
+
}
|
610
|
+
}
|
611
|
+
}
|
612
|
+
|
613
|
+
// Add global options if requested
|
614
|
+
if (options.includeGlobalOptions !== false) {
|
615
|
+
// Extract global options from the main command
|
616
|
+
const globalOptionsMarkdown = extractGlobalOptions(internalCommand, options.baseHeadingLevel || 2)
|
617
|
+
if (globalOptionsMarkdown) {
|
618
|
+
sections.push('')
|
619
|
+
sections.push(globalOptionsMarkdown)
|
620
|
+
}
|
621
|
+
}
|
622
|
+
|
623
|
+
return sections.join('\n').trim()
|
624
|
+
}
|
625
|
+
|
626
|
+
/**
|
627
|
+
* Get command name from a command wrapper
|
628
|
+
*/
|
629
|
+
const getCommandName = (commandWrapper: CommandWrapper): string | undefined => {
|
630
|
+
if (commandWrapper.command) {
|
631
|
+
if ('name' in commandWrapper.command) {
|
632
|
+
return commandWrapper.command.name
|
633
|
+
}
|
634
|
+
if ('command' in commandWrapper.command && commandWrapper.command.command) {
|
635
|
+
return commandWrapper.command.command.name
|
636
|
+
}
|
637
|
+
}
|
638
|
+
return undefined
|
639
|
+
}
|
640
|
+
|
641
|
+
/**
|
642
|
+
* Extract and format global options from the main CLI command
|
643
|
+
*/
|
644
|
+
const extractGlobalOptions = <Name extends string, R, E, A>(
|
645
|
+
command: CommandInternal<Name, R, E, A>,
|
646
|
+
baseHeadingLevel: number = 2,
|
647
|
+
): string => {
|
648
|
+
const sections: string[] = []
|
649
|
+
const descriptor = command.descriptor
|
650
|
+
|
651
|
+
// Based on debugging, global options are at descriptor.parent.command.options
|
652
|
+
// for a Subcommands descriptor
|
653
|
+
let globalOptions: OptionsStructure | undefined = undefined
|
654
|
+
|
655
|
+
if (descriptor._tag === 'Subcommands' && 'parent' in descriptor) {
|
656
|
+
globalOptions = descriptor.parent.command.options
|
657
|
+
} else if ('options' in descriptor) {
|
658
|
+
// Fallback to descriptor.options if it's not a Subcommands type
|
659
|
+
globalOptions = descriptor.options
|
660
|
+
}
|
661
|
+
|
662
|
+
if (globalOptions) {
|
663
|
+
const optionsInfo = extractOptionsFromDescriptor(globalOptions)
|
664
|
+
|
665
|
+
if (optionsInfo.length > 0) {
|
666
|
+
sections.push(`${'#'.repeat(baseHeadingLevel)} Global Options`)
|
667
|
+
sections.push('')
|
668
|
+
sections.push('All commands support these global options:')
|
669
|
+
sections.push('')
|
670
|
+
|
671
|
+
for (const option of optionsInfo) {
|
672
|
+
const alias = option.alias ? `, -${option.alias}` : ''
|
673
|
+
const description = option.description || 'No description available'
|
674
|
+
sections.push(`- \`--${option.name}${alias}\` - ${description}`)
|
675
|
+
}
|
676
|
+
}
|
677
|
+
}
|
678
|
+
|
679
|
+
// Add standard Effect CLI options that are always available
|
680
|
+
if (sections.length > 0) {
|
681
|
+
sections.push('')
|
682
|
+
sections.push('Additionally, the following standard options are available:')
|
683
|
+
sections.push('')
|
684
|
+
sections.push('- `--help` - Show help for the command')
|
685
|
+
sections.push('- `--wizard` - Start wizard mode for guided command construction')
|
686
|
+
sections.push('- `--completions <shell>` - Generate shell completions for bash/zsh/fish')
|
687
|
+
}
|
688
|
+
|
689
|
+
return sections.join('\n')
|
690
|
+
}
|
691
|
+
|
692
|
+
// ============================================================================
|
693
|
+
// Exports
|
694
|
+
// ============================================================================
|
695
|
+
|
696
|
+
export default {
|
697
|
+
commandToMarkdown,
|
698
|
+
cliToMarkdown,
|
699
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './effect-glob.js'
|
@@ -0,0 +1 @@
|
|
1
|
+
export * as EffectGlob from './$$.js'
|