@intentius/chant 0.7.0 → 0.8.0
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/dist/attrref.d.ts +35 -0
- package/dist/attrref.d.ts.map +1 -0
- package/dist/audit/catalog.d.ts +65 -0
- package/dist/audit/catalog.d.ts.map +1 -0
- package/dist/audit/core.d.ts +76 -0
- package/dist/audit/core.d.ts.map +1 -0
- package/dist/audit/discover.d.ts +76 -0
- package/dist/audit/discover.d.ts.map +1 -0
- package/dist/audit/fetch.d.ts +90 -0
- package/dist/audit/fetch.d.ts.map +1 -0
- package/dist/audit/proof.d.ts +53 -0
- package/dist/audit/proof.d.ts.map +1 -0
- package/dist/audit/report-html.d.ts +32 -0
- package/dist/audit/report-html.d.ts.map +1 -0
- package/dist/audit/report-model.d.ts +119 -0
- package/dist/audit/report-model.d.ts.map +1 -0
- package/dist/audit/report.d.ts +31 -0
- package/dist/audit/report.d.ts.map +1 -0
- package/dist/audit/rules-doc.d.ts +11 -0
- package/dist/audit/rules-doc.d.ts.map +1 -0
- package/dist/build.d.ts +120 -0
- package/dist/build.d.ts.map +1 -0
- package/dist/builder.d.ts +56 -0
- package/dist/builder.d.ts.map +1 -0
- package/dist/child-project.d.ts +34 -0
- package/dist/child-project.d.ts.map +1 -0
- package/dist/cli/commands/audit.d.ts +60 -0
- package/dist/cli/commands/audit.d.ts.map +1 -0
- package/dist/cli/commands/build.d.ts +70 -0
- package/dist/cli/commands/build.d.ts.map +1 -0
- package/dist/cli/commands/check-lexicon.d.ts +19 -0
- package/dist/cli/commands/check-lexicon.d.ts.map +1 -0
- package/dist/cli/commands/describe.d.ts +39 -0
- package/dist/cli/commands/describe.d.ts.map +1 -0
- package/dist/cli/commands/diff.d.ts +32 -0
- package/dist/cli/commands/diff.d.ts.map +1 -0
- package/dist/cli/commands/doctor.d.ts +11 -0
- package/dist/cli/commands/doctor.d.ts.map +1 -0
- package/dist/cli/commands/import.d.ts +68 -0
- package/dist/cli/commands/import.d.ts.map +1 -0
- package/dist/cli/commands/init-lexicon/templates/codegen.d.ts +9 -0
- package/dist/cli/commands/init-lexicon/templates/codegen.d.ts.map +1 -0
- package/dist/cli/commands/init-lexicon/templates/docs.d.ts +9 -0
- package/dist/cli/commands/init-lexicon/templates/docs.d.ts.map +1 -0
- package/dist/cli/commands/init-lexicon/templates/examples.d.ts +8 -0
- package/dist/cli/commands/init-lexicon/templates/examples.d.ts.map +1 -0
- package/dist/cli/commands/init-lexicon/templates/lint.d.ts +8 -0
- package/dist/cli/commands/init-lexicon/templates/lint.d.ts.map +1 -0
- package/dist/cli/commands/init-lexicon/templates/lsp.d.ts +6 -0
- package/dist/cli/commands/init-lexicon/templates/lsp.d.ts.map +1 -0
- package/dist/cli/commands/init-lexicon/templates/plugin.d.ts +12 -0
- package/dist/cli/commands/init-lexicon/templates/plugin.d.ts.map +1 -0
- package/dist/cli/commands/init-lexicon/templates/project.d.ts +19 -0
- package/dist/cli/commands/init-lexicon/templates/project.d.ts.map +1 -0
- package/dist/cli/commands/init-lexicon/templates/spec.d.ts +6 -0
- package/dist/cli/commands/init-lexicon/templates/spec.d.ts.map +1 -0
- package/dist/cli/commands/init-lexicon/templates/tests.d.ts +12 -0
- package/dist/cli/commands/init-lexicon/templates/tests.d.ts.map +1 -0
- package/dist/cli/commands/init-lexicon.d.ts +37 -0
- package/dist/cli/commands/init-lexicon.d.ts.map +1 -0
- package/dist/cli/commands/init.d.ts +48 -0
- package/dist/cli/commands/init.d.ts.map +1 -0
- package/dist/cli/commands/licenses.d.ts +23 -0
- package/dist/cli/commands/licenses.d.ts.map +1 -0
- package/dist/cli/commands/lint.d.ts +52 -0
- package/dist/cli/commands/lint.d.ts.map +1 -0
- package/dist/cli/commands/list.d.ts +38 -0
- package/dist/cli/commands/list.d.ts.map +1 -0
- package/dist/cli/commands/migrate.d.ts +51 -0
- package/dist/cli/commands/migrate.d.ts.map +1 -0
- package/dist/cli/commands/onboard.d.ts +19 -0
- package/dist/cli/commands/onboard.d.ts.map +1 -0
- package/dist/cli/commands/update.d.ts +29 -0
- package/dist/cli/commands/update.d.ts.map +1 -0
- package/dist/cli/commands/vendor.d.ts +84 -0
- package/dist/cli/commands/vendor.d.ts.map +1 -0
- package/dist/cli/conflict-check.d.ts +18 -0
- package/dist/cli/conflict-check.d.ts.map +1 -0
- package/dist/cli/debug.d.ts +5 -0
- package/dist/cli/debug.d.ts.map +1 -0
- package/dist/cli/format.d.ts +36 -0
- package/dist/cli/format.d.ts.map +1 -0
- package/dist/cli/handlers/build.d.ts +3 -0
- package/dist/cli/handlers/build.d.ts.map +1 -0
- package/dist/cli/handlers/dev.d.ts +7 -0
- package/dist/cli/handlers/dev.d.ts.map +1 -0
- package/dist/cli/handlers/graph.d.ts +8 -0
- package/dist/cli/handlers/graph.d.ts.map +1 -0
- package/dist/cli/handlers/init.d.ts +4 -0
- package/dist/cli/handlers/init.d.ts.map +1 -0
- package/dist/cli/handlers/lifecycle.d.ts +39 -0
- package/dist/cli/handlers/lifecycle.d.ts.map +1 -0
- package/dist/cli/handlers/lint.d.ts +3 -0
- package/dist/cli/handlers/lint.d.ts.map +1 -0
- package/dist/cli/handlers/migrate.d.ts +3 -0
- package/dist/cli/handlers/migrate.d.ts.map +1 -0
- package/dist/cli/handlers/misc.d.ts +8 -0
- package/dist/cli/handlers/misc.d.ts.map +1 -0
- package/dist/cli/handlers/run-client.d.ts +107 -0
- package/dist/cli/handlers/run-client.d.ts.map +1 -0
- package/dist/cli/handlers/run-report.d.ts +5 -0
- package/dist/cli/handlers/run-report.d.ts.map +1 -0
- package/dist/cli/handlers/run.d.ts +27 -0
- package/dist/cli/handlers/run.d.ts.map +1 -0
- package/dist/cli/handlers/serve.d.ts +5 -0
- package/dist/cli/handlers/serve.d.ts.map +1 -0
- package/dist/cli/handlers/vendor.d.ts +9 -0
- package/dist/cli/handlers/vendor.d.ts.map +1 -0
- package/dist/cli/index.d.ts +4 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/lsp/capabilities.d.ts +21 -0
- package/dist/cli/lsp/capabilities.d.ts.map +1 -0
- package/dist/cli/lsp/diagnostics.d.ts +30 -0
- package/dist/cli/lsp/diagnostics.d.ts.map +1 -0
- package/dist/cli/lsp/server.d.ts +106 -0
- package/dist/cli/lsp/server.d.ts.map +1 -0
- package/dist/cli/main.d.ts +7 -0
- package/dist/cli/main.d.ts.map +1 -0
- package/dist/cli/mcp/lifecycle-tools.d.ts +15 -0
- package/dist/cli/mcp/lifecycle-tools.d.ts.map +1 -0
- package/dist/cli/mcp/op-tools.d.ts +7 -0
- package/dist/cli/mcp/op-tools.d.ts.map +1 -0
- package/dist/cli/mcp/resource-handlers.d.ts +28 -0
- package/dist/cli/mcp/resource-handlers.d.ts.map +1 -0
- package/dist/cli/mcp/resources/context.d.ts +6 -0
- package/dist/cli/mcp/resources/context.d.ts.map +1 -0
- package/dist/cli/mcp/server.d.ts +44 -0
- package/dist/cli/mcp/server.d.ts.map +1 -0
- package/dist/cli/mcp/tools/build.d.ts +31 -0
- package/dist/cli/mcp/tools/build.d.ts.map +1 -0
- package/dist/cli/mcp/tools/explain.d.ts +27 -0
- package/dist/cli/mcp/tools/explain.d.ts.map +1 -0
- package/dist/cli/mcp/tools/import.d.ts +26 -0
- package/dist/cli/mcp/tools/import.d.ts.map +1 -0
- package/dist/cli/mcp/tools/lint.d.ts +26 -0
- package/dist/cli/mcp/tools/lint.d.ts.map +1 -0
- package/dist/cli/mcp/tools/scaffold.d.ts +31 -0
- package/dist/cli/mcp/tools/scaffold.d.ts.map +1 -0
- package/dist/cli/mcp/tools/search.d.ts +31 -0
- package/dist/cli/mcp/tools/search.d.ts.map +1 -0
- package/dist/cli/mcp/types.d.ts +42 -0
- package/dist/cli/mcp/types.d.ts.map +1 -0
- package/dist/cli/plugins.d.ts +21 -0
- package/dist/cli/plugins.d.ts.map +1 -0
- package/dist/cli/registry.d.ts +100 -0
- package/dist/cli/registry.d.ts.map +1 -0
- package/dist/cli/reporters/stylish.d.ts +26 -0
- package/dist/cli/reporters/stylish.d.ts.map +1 -0
- package/dist/cli/watch.d.ts +29 -0
- package/dist/cli/watch.d.ts.map +1 -0
- package/dist/codegen/bound-property-types.d.ts +38 -0
- package/dist/codegen/bound-property-types.d.ts.map +1 -0
- package/dist/codegen/coverage.d.ts +57 -0
- package/dist/codegen/coverage.d.ts.map +1 -0
- package/dist/codegen/docs-file-markers.d.ts +16 -0
- package/dist/codegen/docs-file-markers.d.ts.map +1 -0
- package/dist/codegen/docs-rule-scanning.d.ts +14 -0
- package/dist/codegen/docs-rule-scanning.d.ts.map +1 -0
- package/dist/codegen/docs-rules.d.ts +17 -0
- package/dist/codegen/docs-rules.d.ts.map +1 -0
- package/dist/codegen/docs-sections.d.ts +11 -0
- package/dist/codegen/docs-sections.d.ts.map +1 -0
- package/dist/codegen/docs-sidebar.d.ts +6 -0
- package/dist/codegen/docs-sidebar.d.ts.map +1 -0
- package/dist/codegen/docs-types.d.ts +84 -0
- package/dist/codegen/docs-types.d.ts.map +1 -0
- package/dist/codegen/docs.d.ts +28 -0
- package/dist/codegen/docs.d.ts.map +1 -0
- package/dist/codegen/fetch.d.ts +76 -0
- package/dist/codegen/fetch.d.ts.map +1 -0
- package/dist/codegen/generate-post-synth-barrel.d.ts +32 -0
- package/dist/codegen/generate-post-synth-barrel.d.ts.map +1 -0
- package/dist/codegen/generate-registry.d.ts +40 -0
- package/dist/codegen/generate-registry.d.ts.map +1 -0
- package/dist/codegen/generate-runtime-index.d.ts +40 -0
- package/dist/codegen/generate-runtime-index.d.ts.map +1 -0
- package/dist/codegen/generate-typescript.d.ts +48 -0
- package/dist/codegen/generate-typescript.d.ts.map +1 -0
- package/dist/codegen/generate.d.ts +92 -0
- package/dist/codegen/generate.d.ts.map +1 -0
- package/dist/codegen/json-patch.d.ts +12 -0
- package/dist/codegen/json-patch.d.ts.map +1 -0
- package/dist/codegen/json-schema.d.ts +82 -0
- package/dist/codegen/json-schema.d.ts.map +1 -0
- package/dist/codegen/naming.d.ts +64 -0
- package/dist/codegen/naming.d.ts.map +1 -0
- package/dist/codegen/package.d.ts +64 -0
- package/dist/codegen/package.d.ts.map +1 -0
- package/dist/codegen/topo-sort.d.ts +13 -0
- package/dist/codegen/topo-sort.d.ts.map +1 -0
- package/dist/codegen/typecheck.d.ts +10 -0
- package/dist/codegen/typecheck.d.ts.map +1 -0
- package/dist/codegen/validate.d.ts +45 -0
- package/dist/codegen/validate.d.ts.map +1 -0
- package/dist/composite.d.ts +116 -0
- package/dist/composite.d.ts.map +1 -0
- package/dist/config.d.ts +78 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/declarable.d.ts +34 -0
- package/dist/declarable.d.ts.map +1 -0
- package/dist/detectLexicon.d.ts +10 -0
- package/dist/detectLexicon.d.ts.map +1 -0
- package/dist/discovery/cache.d.ts +36 -0
- package/dist/discovery/cache.d.ts.map +1 -0
- package/dist/discovery/collect.d.ts +17 -0
- package/dist/discovery/collect.d.ts.map +1 -0
- package/dist/discovery/cycles.d.ts +23 -0
- package/dist/discovery/cycles.d.ts.map +1 -0
- package/dist/discovery/files.d.ts +7 -0
- package/dist/discovery/files.d.ts.map +1 -0
- package/dist/discovery/graph.d.ts +8 -0
- package/dist/discovery/graph.d.ts.map +1 -0
- package/dist/discovery/import.d.ts +9 -0
- package/dist/discovery/import.d.ts.map +1 -0
- package/dist/discovery/index.d.ts +25 -0
- package/dist/discovery/index.d.ts.map +1 -0
- package/dist/discovery/resolve.d.ts +10 -0
- package/dist/discovery/resolve.d.ts.map +1 -0
- package/dist/errors.d.ts +49 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/import/base-parser.d.ts +19 -0
- package/dist/import/base-parser.d.ts.map +1 -0
- package/dist/import/generator.d.ts +20 -0
- package/dist/import/generator.d.ts.map +1 -0
- package/dist/import/ir-utils.d.ts +25 -0
- package/dist/import/ir-utils.d.ts.map +1 -0
- package/dist/import/parser.d.ts +39 -0
- package/dist/import/parser.d.ts.map +1 -0
- package/dist/index.d.ts +66 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/intrinsic-interpolation.d.ts +24 -0
- package/dist/intrinsic-interpolation.d.ts.map +1 -0
- package/dist/intrinsic.d.ts +24 -0
- package/dist/intrinsic.d.ts.map +1 -0
- package/dist/lexicon-integrity.d.ts +25 -0
- package/dist/lexicon-integrity.d.ts.map +1 -0
- package/dist/lexicon-manifest.d.ts +9 -0
- package/dist/lexicon-manifest.d.ts.map +1 -0
- package/dist/lexicon-output.d.ts +66 -0
- package/dist/lexicon-output.d.ts.map +1 -0
- package/dist/lexicon-plugin-helpers.d.ts +59 -0
- package/dist/lexicon-plugin-helpers.d.ts.map +1 -0
- package/dist/lexicon-schema.d.ts +82 -0
- package/dist/lexicon-schema.d.ts.map +1 -0
- package/dist/lexicon.d.ts +383 -0
- package/dist/lexicon.d.ts.map +1 -0
- package/dist/lifecycle/affected.d.ts +57 -0
- package/dist/lifecycle/affected.d.ts.map +1 -0
- package/dist/lifecycle/change-set.d.ts +90 -0
- package/dist/lifecycle/change-set.d.ts.map +1 -0
- package/dist/lifecycle/digest.d.ts +21 -0
- package/dist/lifecycle/digest.d.ts.map +1 -0
- package/dist/lifecycle/git.d.ts +72 -0
- package/dist/lifecycle/git.d.ts.map +1 -0
- package/dist/lifecycle/index.d.ts +8 -0
- package/dist/lifecycle/index.d.ts.map +1 -0
- package/dist/lifecycle/live-diff.d.ts +67 -0
- package/dist/lifecycle/live-diff.d.ts.map +1 -0
- package/dist/lifecycle/snapshot.d.ts +20 -0
- package/dist/lifecycle/snapshot.d.ts.map +1 -0
- package/dist/lifecycle/types.d.ts +61 -0
- package/dist/lifecycle/types.d.ts.map +1 -0
- package/dist/lint/config.d.ts +100 -0
- package/dist/lint/config.d.ts.map +1 -0
- package/dist/lint/declarative.d.ts +56 -0
- package/dist/lint/declarative.d.ts.map +1 -0
- package/dist/lint/discover.d.ts +35 -0
- package/dist/lint/discover.d.ts.map +1 -0
- package/dist/lint/engine.d.ts +21 -0
- package/dist/lint/engine.d.ts.map +1 -0
- package/dist/lint/named-checks.d.ts +19 -0
- package/dist/lint/named-checks.d.ts.map +1 -0
- package/dist/lint/parser.d.ts +9 -0
- package/dist/lint/parser.d.ts.map +1 -0
- package/dist/lint/policy.d.ts +22 -0
- package/dist/lint/policy.d.ts.map +1 -0
- package/dist/lint/post-synth.d.ts +69 -0
- package/dist/lint/post-synth.d.ts.map +1 -0
- package/dist/lint/presets/strict.json +19 -0
- package/dist/lint/rule-loader.d.ts +16 -0
- package/dist/lint/rule-loader.d.ts.map +1 -0
- package/dist/lint/rule-registry.d.ts +37 -0
- package/dist/lint/rule-registry.d.ts.map +1 -0
- package/dist/lint/rule.d.ts +82 -0
- package/dist/lint/rule.d.ts.map +1 -0
- package/dist/lint/rules/composite-scope.d.ts +18 -0
- package/dist/lint/rules/composite-scope.d.ts.map +1 -0
- package/dist/lint/rules/cor017-composite-name-match.d.ts +3 -0
- package/dist/lint/rules/cor017-composite-name-match.d.ts.map +1 -0
- package/dist/lint/rules/cor018-composite-prefer-lexicon-type.d.ts +3 -0
- package/dist/lint/rules/cor018-composite-prefer-lexicon-type.d.ts.map +1 -0
- package/dist/lint/rules/declarable-naming-convention.d.ts +3 -0
- package/dist/lint/rules/declarable-naming-convention.d.ts.map +1 -0
- package/dist/lint/rules/evl001-non-literal-expression.d.ts +3 -0
- package/dist/lint/rules/evl001-non-literal-expression.d.ts.map +1 -0
- package/dist/lint/rules/evl002-control-flow-resource.d.ts +3 -0
- package/dist/lint/rules/evl002-control-flow-resource.d.ts.map +1 -0
- package/dist/lint/rules/evl003-dynamic-property-access.d.ts +3 -0
- package/dist/lint/rules/evl003-dynamic-property-access.d.ts.map +1 -0
- package/dist/lint/rules/evl004-spread-non-const.d.ts +3 -0
- package/dist/lint/rules/evl004-spread-non-const.d.ts.map +1 -0
- package/dist/lint/rules/evl005-resource-block-body.d.ts +3 -0
- package/dist/lint/rules/evl005-resource-block-body.d.ts.map +1 -0
- package/dist/lint/rules/evl007-invalid-siblings.d.ts +3 -0
- package/dist/lint/rules/evl007-invalid-siblings.d.ts.map +1 -0
- package/dist/lint/rules/evl009-composite-no-constant.d.ts +3 -0
- package/dist/lint/rules/evl009-composite-no-constant.d.ts.map +1 -0
- package/dist/lint/rules/evl010-composite-no-transform.d.ts +3 -0
- package/dist/lint/rules/evl010-composite-no-transform.d.ts.map +1 -0
- package/dist/lint/rules/export-required.d.ts +3 -0
- package/dist/lint/rules/export-required.d.ts.map +1 -0
- package/dist/lint/rules/file-declarable-limit.d.ts +3 -0
- package/dist/lint/rules/file-declarable-limit.d.ts.map +1 -0
- package/dist/lint/rules/flat-declarations.d.ts +3 -0
- package/dist/lint/rules/flat-declarations.d.ts.map +1 -0
- package/dist/lint/rules/index.d.ts +31 -0
- package/dist/lint/rules/index.d.ts.map +1 -0
- package/dist/lint/rules/no-cyclic-declarable-ref.d.ts +3 -0
- package/dist/lint/rules/no-cyclic-declarable-ref.d.ts.map +1 -0
- package/dist/lint/rules/no-redundant-type-import.d.ts +10 -0
- package/dist/lint/rules/no-redundant-type-import.d.ts.map +1 -0
- package/dist/lint/rules/no-redundant-value-cast.d.ts +3 -0
- package/dist/lint/rules/no-redundant-value-cast.d.ts.map +1 -0
- package/dist/lint/rules/no-string-ref.d.ts +3 -0
- package/dist/lint/rules/no-string-ref.d.ts.map +1 -0
- package/dist/lint/rules/no-unused-declarable-import.d.ts +3 -0
- package/dist/lint/rules/no-unused-declarable-import.d.ts.map +1 -0
- package/dist/lint/rules/no-unused-declarable.d.ts +3 -0
- package/dist/lint/rules/no-unused-declarable.d.ts.map +1 -0
- package/dist/lint/rules/single-concern-file.d.ts +3 -0
- package/dist/lint/rules/single-concern-file.d.ts.map +1 -0
- package/dist/lint/selectors.d.ts +21 -0
- package/dist/lint/selectors.d.ts.map +1 -0
- package/dist/lsp/lexicon-providers.d.ts +61 -0
- package/dist/lsp/lexicon-providers.d.ts.map +1 -0
- package/dist/lsp/types.d.ts +64 -0
- package/dist/lsp/types.d.ts.map +1 -0
- package/dist/mcp/types.d.ts +21 -0
- package/dist/mcp/types.d.ts.map +1 -0
- package/dist/op/activity-registry.d.ts +57 -0
- package/dist/op/activity-registry.d.ts.map +1 -0
- package/dist/op/builders.d.ts +69 -0
- package/dist/op/builders.d.ts.map +1 -0
- package/dist/op/discover.d.ts +16 -0
- package/dist/op/discover.d.ts.map +1 -0
- package/dist/op/index.d.ts +11 -0
- package/dist/op/index.d.ts.map +1 -0
- package/dist/op/local-executor.d.ts +54 -0
- package/dist/op/local-executor.d.ts.map +1 -0
- package/dist/op/local-output.d.ts +16 -0
- package/dist/op/local-output.d.ts.map +1 -0
- package/dist/op/resource.d.ts +7 -0
- package/dist/op/resource.d.ts.map +1 -0
- package/dist/op/types.d.ts +71 -0
- package/dist/op/types.d.ts.map +1 -0
- package/dist/ownership.d.ts +75 -0
- package/dist/ownership.d.ts.map +1 -0
- package/dist/project-validation.d.ts +28 -0
- package/dist/project-validation.d.ts.map +1 -0
- package/dist/provenance.d.ts +26 -0
- package/dist/provenance.d.ts.map +1 -0
- package/dist/pseudo-parameter.d.ts +32 -0
- package/dist/pseudo-parameter.d.ts.map +1 -0
- package/dist/resource-attributes.d.ts +17 -0
- package/dist/resource-attributes.d.ts.map +1 -0
- package/dist/runtime-adapter.d.ts +41 -0
- package/dist/runtime-adapter.d.ts.map +1 -0
- package/dist/runtime.d.ts +23 -0
- package/dist/runtime.d.ts.map +1 -0
- package/dist/serializer-walker.d.ts +21 -0
- package/dist/serializer-walker.d.ts.map +1 -0
- package/dist/serializer.d.ts +64 -0
- package/dist/serializer.d.ts.map +1 -0
- package/dist/sort.d.ts +8 -0
- package/dist/sort.d.ts.map +1 -0
- package/dist/stack-output.d.ts +52 -0
- package/dist/stack-output.d.ts.map +1 -0
- package/dist/toml-emit.d.ts +22 -0
- package/dist/toml-emit.d.ts.map +1 -0
- package/dist/toml-parse.d.ts +14 -0
- package/dist/toml-parse.d.ts.map +1 -0
- package/dist/toml-utils.d.ts +20 -0
- package/dist/toml-utils.d.ts.map +1 -0
- package/dist/toml.d.ts +9 -0
- package/dist/toml.d.ts.map +1 -0
- package/dist/types.d.ts +47 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/utils.d.ts +30 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/validation.d.ts +42 -0
- package/dist/validation.d.ts.map +1 -0
- package/dist/yaml.d.ts +42 -0
- package/dist/yaml.d.ts.map +1 -0
- package/package.json +31 -6
- package/src/audit/bundle-decoupling.test.ts +56 -0
- package/src/audit/catalog.test.ts +16 -1
- package/src/audit/catalog.ts +244 -4
- package/src/audit/core.test.ts +15 -0
- package/src/audit/core.ts +0 -0
- package/src/audit/detect-bundle.test.ts +35 -0
- package/src/audit/discover.test.ts +72 -0
- package/src/audit/discover.ts +329 -0
- package/src/audit/edge-init-safety.test.ts +43 -0
- package/src/audit/fetch.test.ts +86 -55
- package/src/audit/fetch.ts +118 -87
- package/src/audit/remote-discovery.test.ts +80 -0
- package/src/audit/report-html.ts +14 -6
- package/src/audit/report-model.ts +13 -1
- package/src/audit/report.test.ts +3 -1
- package/src/audit/report.ts +13 -5
- package/src/cli/commands/__fixtures__/audit-mixed/.github/workflows/ci.yml +5 -0
- package/src/cli/commands/__fixtures__/audit-mixed/Dockerfile +2 -0
- package/src/cli/commands/__fixtures__/audit-mixed/cfn/template.json +1 -0
- package/src/cli/commands/__fixtures__/audit-mixed/k8s/deploy.yaml +12 -0
- package/src/cli/commands/audit.test.ts +27 -19
- package/src/cli/commands/audit.ts +28 -272
- package/src/codegen/bound-property-types.test.ts +57 -0
- package/src/codegen/bound-property-types.ts +110 -0
- package/src/codegen/generate-post-synth-barrel.test.ts +37 -0
- package/src/codegen/generate-post-synth-barrel.ts +75 -0
- package/src/codegen/post-synth-barrel-guards.test.ts +63 -0
- package/src/codegen/validate.ts +13 -1
- package/src/lint/discover.ts +1 -1
- package/src/meta/peer-deps.test.ts +29 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lint tool definition for MCP
|
|
3
|
+
*/
|
|
4
|
+
export declare const lintTool: {
|
|
5
|
+
name: string;
|
|
6
|
+
description: string;
|
|
7
|
+
inputSchema: {
|
|
8
|
+
type: "object";
|
|
9
|
+
properties: {
|
|
10
|
+
path: {
|
|
11
|
+
type: string;
|
|
12
|
+
description: string;
|
|
13
|
+
};
|
|
14
|
+
fix: {
|
|
15
|
+
type: string;
|
|
16
|
+
description: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
required: string[];
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Handle lint tool invocation
|
|
24
|
+
*/
|
|
25
|
+
export declare function handleLint(params: Record<string, unknown>): Promise<unknown>;
|
|
26
|
+
//# sourceMappingURL=lint.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lint.d.ts","sourceRoot":"","sources":["../../../../src/cli/mcp/tools/lint.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;CAiBpB,CAAC;AAEF;;GAEG;AACH,wBAAsB,UAAU,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,OAAO,CAAC,CAiBlF"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { LexiconPlugin } from "../../../lexicon.js";
|
|
2
|
+
/**
|
|
3
|
+
* Scaffold tool definition for MCP
|
|
4
|
+
*/
|
|
5
|
+
export declare const scaffoldTool: {
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
inputSchema: {
|
|
9
|
+
type: "object";
|
|
10
|
+
properties: {
|
|
11
|
+
pattern: {
|
|
12
|
+
type: string;
|
|
13
|
+
description: string;
|
|
14
|
+
};
|
|
15
|
+
lexicon: {
|
|
16
|
+
type: string;
|
|
17
|
+
description: string;
|
|
18
|
+
};
|
|
19
|
+
template: {
|
|
20
|
+
type: string;
|
|
21
|
+
description: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
required: string[];
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Create a scaffold handler with access to loaded plugins
|
|
29
|
+
*/
|
|
30
|
+
export declare function createScaffoldHandler(plugins: LexiconPlugin[]): (params: Record<string, unknown>) => Promise<unknown>;
|
|
31
|
+
//# sourceMappingURL=scaffold.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scaffold.d.ts","sourceRoot":"","sources":["../../../../src/cli/mcp/tools/scaffold.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;CAqBxB,CAAC;AAEF;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,aAAa,EAAE,GACvB,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,OAAO,CAAC,OAAO,CAAC,CAoFvD"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { LexiconPlugin } from "../../../lexicon.js";
|
|
2
|
+
/**
|
|
3
|
+
* Search tool definition for MCP
|
|
4
|
+
*/
|
|
5
|
+
export declare const searchTool: {
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
inputSchema: {
|
|
9
|
+
type: "object";
|
|
10
|
+
properties: {
|
|
11
|
+
query: {
|
|
12
|
+
type: string;
|
|
13
|
+
description: string;
|
|
14
|
+
};
|
|
15
|
+
lexicon: {
|
|
16
|
+
type: string;
|
|
17
|
+
description: string;
|
|
18
|
+
};
|
|
19
|
+
limit: {
|
|
20
|
+
type: string;
|
|
21
|
+
description: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
required: string[];
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Create a search handler with access to loaded plugins
|
|
29
|
+
*/
|
|
30
|
+
export declare function createSearchHandler(plugins: LexiconPlugin[]): (params: Record<string, unknown>) => Promise<unknown>;
|
|
31
|
+
//# sourceMappingURL=search.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../../../src/cli/mcp/tools/search.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;CAqBtB,CAAC;AAQF;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,aAAa,EAAE,GACvB,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,OAAO,CAAC,OAAO,CAAC,CA+DvD"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MCP message types
|
|
3
|
+
*/
|
|
4
|
+
export interface McpRequest {
|
|
5
|
+
jsonrpc: "2.0";
|
|
6
|
+
id: string | number;
|
|
7
|
+
method: string;
|
|
8
|
+
params?: Record<string, unknown>;
|
|
9
|
+
}
|
|
10
|
+
export interface McpResponse {
|
|
11
|
+
jsonrpc: "2.0";
|
|
12
|
+
id: string | number;
|
|
13
|
+
result?: unknown;
|
|
14
|
+
error?: {
|
|
15
|
+
code: number;
|
|
16
|
+
message: string;
|
|
17
|
+
data?: unknown;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Tool definition for MCP
|
|
22
|
+
*/
|
|
23
|
+
export interface ToolDefinition {
|
|
24
|
+
name: string;
|
|
25
|
+
description: string;
|
|
26
|
+
inputSchema: {
|
|
27
|
+
type: "object";
|
|
28
|
+
properties: Record<string, unknown>;
|
|
29
|
+
required?: string[];
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Resource definition for MCP
|
|
34
|
+
*/
|
|
35
|
+
export interface ResourceDefinition {
|
|
36
|
+
uri: string;
|
|
37
|
+
name: string;
|
|
38
|
+
description: string;
|
|
39
|
+
mimeType?: string;
|
|
40
|
+
}
|
|
41
|
+
export type ToolHandler = (params: Record<string, unknown>) => Promise<unknown>;
|
|
42
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/cli/mcp/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,KAAK,CAAC;IACf,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC;AAED,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,KAAK,CAAC;IACf,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;QAChB,IAAI,CAAC,EAAE,OAAO,CAAC;KAChB,CAAC;CACH;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ,CAAC;QACf,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QACpC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;KACrB,CAAC;CACH;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,MAAM,WAAW,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type LexiconPlugin } from "../lexicon.js";
|
|
2
|
+
/**
|
|
3
|
+
* Load a single lexicon plugin by lexicon name.
|
|
4
|
+
*
|
|
5
|
+
* Dynamically imports `@intentius/chant-lexicon-{name}` and looks for a
|
|
6
|
+
* LexiconPlugin export. Falls back to wrapping a raw Serializer export.
|
|
7
|
+
*/
|
|
8
|
+
export declare function loadPlugin(lexiconName: string): Promise<LexiconPlugin>;
|
|
9
|
+
/**
|
|
10
|
+
* Load plugins for all detected lexicon names.
|
|
11
|
+
* Calls `init()` on each plugin if present.
|
|
12
|
+
*/
|
|
13
|
+
export declare function loadPlugins(lexiconNames: string[]): Promise<LexiconPlugin[]>;
|
|
14
|
+
/**
|
|
15
|
+
* Resolve lexicon names for a project directory.
|
|
16
|
+
*
|
|
17
|
+
* Reads `lexicons` from `chant.config.ts` / `chant.config.json` if present.
|
|
18
|
+
* Falls back to source-file detection via `detectLexicons()`.
|
|
19
|
+
*/
|
|
20
|
+
export declare function resolveProjectLexicons(projectPath: string): Promise<string[]>;
|
|
21
|
+
//# sourceMappingURL=plugins.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../src/cli/plugins.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAKjE;;;;;GAKG;AACH,wBAAsB,UAAU,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CA6B5E;AAED;;;GAGG;AACH,wBAAsB,WAAW,CAAC,YAAY,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC,CA6BlF;AAED;;;;;GAKG;AACH,wBAAsB,sBAAsB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAUnF"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import type { LexiconPlugin } from "../lexicon.js";
|
|
2
|
+
import type { Serializer } from "../serializer.js";
|
|
3
|
+
/**
|
|
4
|
+
* Parsed CLI arguments (output of parseArgs).
|
|
5
|
+
*/
|
|
6
|
+
export interface ParsedArgs {
|
|
7
|
+
command: string;
|
|
8
|
+
path: string;
|
|
9
|
+
extraPositional?: string;
|
|
10
|
+
extraPositional2?: string;
|
|
11
|
+
output?: string;
|
|
12
|
+
format: string;
|
|
13
|
+
force?: boolean;
|
|
14
|
+
fix: boolean;
|
|
15
|
+
lexicon?: string;
|
|
16
|
+
template?: string;
|
|
17
|
+
watch: boolean;
|
|
18
|
+
verbose: boolean;
|
|
19
|
+
help: boolean;
|
|
20
|
+
profile?: string;
|
|
21
|
+
report?: boolean;
|
|
22
|
+
/** `chant run` — force the local in-process executor (the default). */
|
|
23
|
+
local?: boolean;
|
|
24
|
+
/** `chant run` — run via a Temporal cluster instead of the local executor. */
|
|
25
|
+
temporal?: boolean;
|
|
26
|
+
/** `chant run` — emit the structured OpRunResult as JSON on stdout. */
|
|
27
|
+
json?: boolean;
|
|
28
|
+
live: boolean;
|
|
29
|
+
/** `chant migrate --from <name>` (default "github") */
|
|
30
|
+
migrateFrom?: string;
|
|
31
|
+
/** `chant migrate --to <name>` (default "gitlab") */
|
|
32
|
+
migrateTo?: string;
|
|
33
|
+
/** `chant migrate --emit yaml|ts` */
|
|
34
|
+
emit?: string;
|
|
35
|
+
/** Escalate needs-review diagnostics to errors (migrate command) */
|
|
36
|
+
strict?: boolean;
|
|
37
|
+
/** Run glci/glab after emit (migrate command) */
|
|
38
|
+
validate?: boolean;
|
|
39
|
+
/** Recognise composite patterns in output (migrate command) */
|
|
40
|
+
useComposites?: boolean;
|
|
41
|
+
/** Write SARIF report to this path (migrate command); distinct from boolean --report */
|
|
42
|
+
reportFile?: string;
|
|
43
|
+
/** `chant init --skill <name>` filter (added in #95 commit) */
|
|
44
|
+
skill?: string;
|
|
45
|
+
/** `chant import --type <ResourceType>` selector */
|
|
46
|
+
selectType?: string;
|
|
47
|
+
/** `chant import --name <name>` selector */
|
|
48
|
+
selectName?: string;
|
|
49
|
+
/** `chant import --owned` — restrict live import to chant-owned resources */
|
|
50
|
+
owned?: boolean;
|
|
51
|
+
/** `chant import --verbatim` — keep server-defaulted fields in live import */
|
|
52
|
+
verbatim?: boolean;
|
|
53
|
+
/** `chant lifecycle … --src <dir>` — build root override for lifecycle commands */
|
|
54
|
+
src?: string;
|
|
55
|
+
/** `chant build --env <name>` — environment for organizational policy evaluation */
|
|
56
|
+
env?: string;
|
|
57
|
+
/** `chant graph --stacks` — render the cross-stack apply-ordering graph */
|
|
58
|
+
stacks?: boolean;
|
|
59
|
+
/** `chant lifecycle affected --base <ref>` — base git ref to diff against */
|
|
60
|
+
base?: string;
|
|
61
|
+
/** `chant lifecycle affected --head <ref>` — head git ref (default: working tree) */
|
|
62
|
+
head?: string;
|
|
63
|
+
/** `chant lifecycle affected --include-dependents` — add downstream consumers */
|
|
64
|
+
includeDependents?: boolean;
|
|
65
|
+
/** `chant audit --tier merge-worthy|all` */
|
|
66
|
+
tier?: string;
|
|
67
|
+
/** `chant audit --fail-on merge-worthy|warning|none` */
|
|
68
|
+
failOn?: string;
|
|
69
|
+
/** `chant audit --theme <file>` — JSON theme knobs for the HTML report */
|
|
70
|
+
theme?: string;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Declarative command definition for the CLI registry.
|
|
74
|
+
*/
|
|
75
|
+
export interface CommandDef {
|
|
76
|
+
/** Primary command name, e.g. "build", "dev generate", "serve lsp" */
|
|
77
|
+
name: string;
|
|
78
|
+
/** If true, load lexicon plugins before calling handler */
|
|
79
|
+
requiresPlugins?: boolean;
|
|
80
|
+
/** Command handler — returns exit code */
|
|
81
|
+
handler: (ctx: CommandContext) => Promise<number>;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Context passed to each command handler.
|
|
85
|
+
*/
|
|
86
|
+
export interface CommandContext {
|
|
87
|
+
args: ParsedArgs;
|
|
88
|
+
plugins: LexiconPlugin[];
|
|
89
|
+
serializers: Serializer[];
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Result of resolving a command from CLI args against the registry.
|
|
93
|
+
*/
|
|
94
|
+
export interface ResolvedCommand {
|
|
95
|
+
def: CommandDef;
|
|
96
|
+
/** True if this was matched as a compound command (args.path was consumed as subcommand) */
|
|
97
|
+
compound: boolean;
|
|
98
|
+
}
|
|
99
|
+
export declare function resolveCommand(args: ParsedArgs, registry: CommandDef[]): ResolvedCommand | null;
|
|
100
|
+
//# sourceMappingURL=registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/cli/registry.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { LintDiagnostic, LintRule } from "../../lint/rule.js";
|
|
2
|
+
/**
|
|
3
|
+
* Format diagnostics in stylish format (similar to ESLint)
|
|
4
|
+
* Groups by file, shows severity, message, and rule ID
|
|
5
|
+
*/
|
|
6
|
+
export declare function formatStylish(diagnostics: LintDiagnostic[]): string;
|
|
7
|
+
/**
|
|
8
|
+
* Format the summary line
|
|
9
|
+
*/
|
|
10
|
+
export declare function formatSummary(errorCount: number, warningCount: number): string;
|
|
11
|
+
/**
|
|
12
|
+
* Format diagnostics as JSON
|
|
13
|
+
*/
|
|
14
|
+
export declare function formatJson(diagnostics: LintDiagnostic[]): string;
|
|
15
|
+
/**
|
|
16
|
+
* Format diagnostics as SARIF (Static Analysis Results Interchange Format)
|
|
17
|
+
*
|
|
18
|
+
* @param diagnostics - Active (non-suppressed) diagnostics
|
|
19
|
+
* @param rules - Full list of loaded LintRules for rich metadata (optional)
|
|
20
|
+
* @param suppressed - Suppressed diagnostics with optional reason (optional)
|
|
21
|
+
* @param version - Tool version string (optional, defaults to "0.1.0")
|
|
22
|
+
*/
|
|
23
|
+
export declare function formatSarif(diagnostics: LintDiagnostic[], rules?: LintRule[], suppressed?: Array<LintDiagnostic & {
|
|
24
|
+
reason?: string;
|
|
25
|
+
}>, version?: string): string;
|
|
26
|
+
//# sourceMappingURL=stylish.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stylish.d.ts","sourceRoot":"","sources":["../../../src/cli/reporters/stylish.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAY,MAAM,iBAAiB,CAAC;AAgC1E;;;GAGG;AACH,wBAAgB,aAAa,CAAC,WAAW,EAAE,cAAc,EAAE,GAAG,MAAM,CAyDnE;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,UAAU,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,MAAM,CAiB9E;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,WAAW,EAAE,cAAc,EAAE,GAAG,MAAM,CAEhE;AAkDD;;;;;;;GAOG;AACH,wBAAgB,WAAW,CACzB,WAAW,EAAE,cAAc,EAAE,EAC7B,KAAK,CAAC,EAAE,QAAQ,EAAE,EAClB,UAAU,CAAC,EAAE,KAAK,CAAC,cAAc,GAAG;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,EACxD,OAAO,CAAC,EAAE,MAAM,GACf,MAAM,CA0CR"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Watch options
|
|
3
|
+
*/
|
|
4
|
+
export interface WatchOptions {
|
|
5
|
+
/** Debounce delay in milliseconds (default: 300) */
|
|
6
|
+
debounceMs?: number;
|
|
7
|
+
/** File extensions to include (default: [".ts"]) */
|
|
8
|
+
extensions?: string[];
|
|
9
|
+
/** Directory names to ignore */
|
|
10
|
+
ignoreDirs?: string[];
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Check if a file path should be watched
|
|
14
|
+
*/
|
|
15
|
+
export declare function shouldWatch(filePath: string, options: Required<WatchOptions>): boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Format a timestamp as HH:MM:SS
|
|
18
|
+
*/
|
|
19
|
+
export declare function formatTimestamp(date?: Date): string;
|
|
20
|
+
/**
|
|
21
|
+
* Format changed files for display (relative paths, truncated if many)
|
|
22
|
+
*/
|
|
23
|
+
export declare function formatChangedFiles(files: string[], basePath: string, maxShow?: number): string;
|
|
24
|
+
/**
|
|
25
|
+
* Watch a directory for file changes with debouncing.
|
|
26
|
+
* Returns a cleanup function to stop watching.
|
|
27
|
+
*/
|
|
28
|
+
export declare function watchDirectory(path: string, callback: (changedFiles: string[]) => void, options?: WatchOptions): () => void;
|
|
29
|
+
//# sourceMappingURL=watch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"watch.d.ts","sourceRoot":"","sources":["../../src/cli/watch.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,oDAAoD;IACpD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oDAAoD;IACpD,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,gCAAgC;IAChC,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACvB;AAQD;;GAEG;AACH,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,CAAC,YAAY,CAAC,GAAG,OAAO,CAatF;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,IAAI,GAAE,IAAiB,GAAG,MAAM,CAK/D;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,SAAI,GAAG,MAAM,CASzF;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,IAAI,EAC1C,OAAO,CAAC,EAAE,YAAY,GACrB,MAAM,IAAI,CA6BZ"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bound the set of generated property-type interfaces a lexicon emits.
|
|
3
|
+
*
|
|
4
|
+
* Cloud provider schemas (ARM, CloudFormation, …) embed a named definition for
|
|
5
|
+
* every nested object. Fully expanding all of them per-resource produces huge
|
|
6
|
+
* `.d.ts` declarations (azure was ~273MB — see #438). This helper keeps only
|
|
7
|
+
* the property types reachable from a resource's top-level properties within a
|
|
8
|
+
* depth bound, plus a curated force-keep set; references that fall outside the
|
|
9
|
+
* kept set are rewritten to `Record<string, unknown>`. Enum references are
|
|
10
|
+
* preserved. The input property refs are mutated in place. (#438, #440)
|
|
11
|
+
*/
|
|
12
|
+
/** A reference carrying a TypeScript type string, mutated in place when loosened. */
|
|
13
|
+
export interface BoundablePropertyRef {
|
|
14
|
+
tsType: string;
|
|
15
|
+
}
|
|
16
|
+
/** A generated property type (named interface) and its properties. */
|
|
17
|
+
export interface BoundablePropertyType {
|
|
18
|
+
name: string;
|
|
19
|
+
specType: string;
|
|
20
|
+
properties: BoundablePropertyRef[];
|
|
21
|
+
}
|
|
22
|
+
export interface BoundPropertyTypeOptions {
|
|
23
|
+
/** Maximum nesting depth of emitted property-type interfaces. */
|
|
24
|
+
maxDepth: number;
|
|
25
|
+
/**
|
|
26
|
+
* Definition-name substrings to always keep regardless of reachability/depth
|
|
27
|
+
* (e.g. common nested shapes worth typing for authoring ergonomics). Matched
|
|
28
|
+
* by substring against each property type's `specType`.
|
|
29
|
+
*/
|
|
30
|
+
curatedDefs?: Iterable<string>;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Filter `propertyTypes` to the bounded set and loosen out-of-set references.
|
|
34
|
+
* Mutates the `tsType` of `resourceProps` and retained property types; returns
|
|
35
|
+
* the retained property types.
|
|
36
|
+
*/
|
|
37
|
+
export declare function boundPropertyTypes<PT extends BoundablePropertyType>(shortName: string, resourceProps: BoundablePropertyRef[], propertyTypes: PT[], enumNames: Set<string>, options: BoundPropertyTypeOptions): PT[];
|
|
38
|
+
//# sourceMappingURL=bound-property-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bound-property-types.d.ts","sourceRoot":"","sources":["../../src/codegen/bound-property-types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,qFAAqF;AACrF,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,sEAAsE;AACtE,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,oBAAoB,EAAE,CAAC;CACpC;AAED,MAAM,WAAW,wBAAwB;IACvC,iEAAiE;IACjE,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,WAAW,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;CAChC;AAYD;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,EAAE,SAAS,qBAAqB,EACjE,SAAS,EAAE,MAAM,EACjB,aAAa,EAAE,oBAAoB,EAAE,EACrC,aAAa,EAAE,EAAE,EAAE,EACnB,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,EACtB,OAAO,EAAE,wBAAwB,GAChC,EAAE,EAAE,CAqDN"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Coverage analysis for lexicon artifacts.
|
|
3
|
+
*
|
|
4
|
+
* Analyzes a generated lexicon JSON to measure coverage across dimensions:
|
|
5
|
+
* property constraints, lifecycle attributes, return attributes, and extension constraints.
|
|
6
|
+
*/
|
|
7
|
+
export interface ResourceCoverage {
|
|
8
|
+
name: string;
|
|
9
|
+
resourceType: string;
|
|
10
|
+
hasPropertyConstraints: boolean;
|
|
11
|
+
hasLifecycle: boolean;
|
|
12
|
+
hasAttrs: boolean;
|
|
13
|
+
hasConstraints: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface CoverageReport {
|
|
16
|
+
resourceCount: number;
|
|
17
|
+
propertyPct: number;
|
|
18
|
+
lifecyclePct: number;
|
|
19
|
+
attrPct: number;
|
|
20
|
+
constraintPct: number;
|
|
21
|
+
resources: ResourceCoverage[];
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Compute coverage from lexicon JSON content.
|
|
25
|
+
*/
|
|
26
|
+
export declare function computeCoverage(lexiconJSON: string): CoverageReport;
|
|
27
|
+
/**
|
|
28
|
+
* Overall coverage percentage (average of all dimensions).
|
|
29
|
+
*/
|
|
30
|
+
export declare function overallPct(report: CoverageReport): number;
|
|
31
|
+
/**
|
|
32
|
+
* Format a human-readable coverage summary.
|
|
33
|
+
*/
|
|
34
|
+
export declare function formatSummary(report: CoverageReport): string;
|
|
35
|
+
/**
|
|
36
|
+
* Threshold configuration for coverage enforcement.
|
|
37
|
+
*/
|
|
38
|
+
export interface CoverageThresholds {
|
|
39
|
+
minPropertyPct?: number;
|
|
40
|
+
minLifecyclePct?: number;
|
|
41
|
+
minAttrPct?: number;
|
|
42
|
+
minConstraintPct?: number;
|
|
43
|
+
minOverallPct?: number;
|
|
44
|
+
}
|
|
45
|
+
export interface ThresholdResult {
|
|
46
|
+
ok: boolean;
|
|
47
|
+
violations: string[];
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check coverage report against thresholds.
|
|
51
|
+
*/
|
|
52
|
+
export declare function checkThresholds(report: CoverageReport, thresholds: CoverageThresholds): ThresholdResult;
|
|
53
|
+
/**
|
|
54
|
+
* Format verbose per-resource coverage details.
|
|
55
|
+
*/
|
|
56
|
+
export declare function formatVerbose(report: CoverageReport): string;
|
|
57
|
+
//# sourceMappingURL=coverage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coverage.d.ts","sourceRoot":"","sources":["../../src/codegen/coverage.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,sBAAsB,EAAE,OAAO,CAAC;IAChC,YAAY,EAAE,OAAO,CAAC;IACtB,QAAQ,EAAE,OAAO,CAAC;IAClB,cAAc,EAAE,OAAO,CAAC;CACzB;AAED,MAAM,WAAW,cAAc;IAC7B,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,gBAAgB,EAAE,CAAC;CAC/B;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,WAAW,EAAE,MAAM,GAAG,cAAc,CA+CnE;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM,CAIzD;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM,CAS5D;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,OAAO,CAAC;IACZ,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,kBAAkB,GAAG,eAAe,CAoBvG;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM,CAoB5D"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* File marker interpolation and MDX escaping utilities.
|
|
3
|
+
*/
|
|
4
|
+
/** Escape curly braces so MDX doesn't treat them as JSX expressions. */
|
|
5
|
+
export declare function escapeMdx(text: string): string;
|
|
6
|
+
/**
|
|
7
|
+
* Expand `{{file:path.ts}}` markers in content with fenced code blocks.
|
|
8
|
+
*
|
|
9
|
+
* Supported forms:
|
|
10
|
+
* - `{{file:path.ts}}` — full file
|
|
11
|
+
* - `{{file:path.ts:5-12}}` — lines 5–12 (1-based, inclusive)
|
|
12
|
+
* - `{{file:path.ts|title=custom.ts}}` — override the code block title
|
|
13
|
+
* - `{{file:path.ts:5-12|title=custom.ts}}` — both
|
|
14
|
+
*/
|
|
15
|
+
export declare function expandFileMarkers(content: string, examplesDir: string): string;
|
|
16
|
+
//# sourceMappingURL=docs-file-markers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"docs-file-markers.d.ts","sourceRoot":"","sources":["../../src/codegen/docs-file-markers.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,wEAAwE;AACxE,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE9C;AAED;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,CA+C9E"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Rule scanning and rule page generation for lexicon documentation.
|
|
3
|
+
*
|
|
4
|
+
* Scans lint rule and post-synth check source files to extract metadata,
|
|
5
|
+
* and generates an MDX page listing them.
|
|
6
|
+
*/
|
|
7
|
+
import type { DocsConfig, RuleMeta } from "./docs-types.js";
|
|
8
|
+
/**
|
|
9
|
+
* Scan lint rule and post-synth check source files to extract metadata.
|
|
10
|
+
* Uses regex to find id, severity, category, and description from source.
|
|
11
|
+
*/
|
|
12
|
+
export declare function scanRules(srcDir: string): RuleMeta[];
|
|
13
|
+
export declare function generateRules(config: DocsConfig, rules: RuleMeta[]): string;
|
|
14
|
+
//# sourceMappingURL=docs-rule-scanning.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"docs-rule-scanning.d.ts","sourceRoot":"","sources":["../../src/codegen/docs-rule-scanning.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAEzD;;;GAGG;AACH,wBAAgB,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,QAAQ,EAAE,CAUpD;AAoFD,wBAAgB,aAAa,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,MAAM,CA+C3E"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Rule documentation auto-generation.
|
|
3
|
+
*
|
|
4
|
+
* Generates MDX pages from a RuleEntry registry:
|
|
5
|
+
* - A catalog page with all rules grouped by category
|
|
6
|
+
* - Per-rule detail pages with configuration examples and disable syntax
|
|
7
|
+
*/
|
|
8
|
+
import type { RuleEntry } from "../lint/rule-registry.js";
|
|
9
|
+
/**
|
|
10
|
+
* Generate a rule catalog MDX page with all rules grouped by category.
|
|
11
|
+
*/
|
|
12
|
+
export declare function generateRuleCatalog(entries: RuleEntry[], displayName?: string): string;
|
|
13
|
+
/**
|
|
14
|
+
* Generate a per-rule detail MDX page.
|
|
15
|
+
*/
|
|
16
|
+
export declare function generateRuleDetailPage(entry: RuleEntry): string;
|
|
17
|
+
//# sourceMappingURL=docs-rules.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"docs-rules.d.ts","sourceRoot":"","sources":["../../src/codegen/docs-rules.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAEvD;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,SAAS,EAAE,EACpB,WAAW,SAAU,GACpB,MAAM,CAmDR;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,SAAS,GAAG,MAAM,CAwD/D"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Section content generators for lexicon documentation pages.
|
|
3
|
+
*
|
|
4
|
+
* Each function produces a complete MDX page string with frontmatter.
|
|
5
|
+
*/
|
|
6
|
+
import type { DocsConfig, ManifestJSON, MetaEntry, RuleMeta } from "./docs-types.js";
|
|
7
|
+
export declare function generateOverview(config: DocsConfig, manifest: ManifestJSON, resources: Map<string, MetaEntry>, properties: Map<string, MetaEntry>, serviceGroups: Map<string, Map<string, MetaEntry>>, rules: RuleMeta[]): string;
|
|
8
|
+
export declare function generateIntrinsics(config: DocsConfig, manifest: ManifestJSON): string;
|
|
9
|
+
export declare function generatePseudoParameters(config: DocsConfig, manifest: ManifestJSON): string;
|
|
10
|
+
export declare function generateSerialization(config: DocsConfig): string;
|
|
11
|
+
//# sourceMappingURL=docs-sections.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"docs-sections.d.ts","sourceRoot":"","sources":["../../src/codegen/docs-sections.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAElF,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,UAAU,EAClB,QAAQ,EAAE,YAAY,EACtB,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,EACjC,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,EAClC,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,EAClD,KAAK,EAAE,QAAQ,EAAE,GAChB,MAAM,CAiER;AAED,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,UAAU,EAClB,QAAQ,EAAE,YAAY,GACrB,MAAM,CAuBR;AAED,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,UAAU,EAClB,QAAQ,EAAE,YAAY,GACrB,MAAM,CAqBR;AAED,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,CAqBhE"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sidebar generation for Starlight docs sites.
|
|
3
|
+
*/
|
|
4
|
+
import type { DocsConfig, DocsResult } from "./docs-types.js";
|
|
5
|
+
export declare function buildSidebar(config: DocsConfig, result: DocsResult): Array<Record<string, unknown>>;
|
|
6
|
+
//# sourceMappingURL=docs-sidebar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"docs-sidebar.d.ts","sourceRoot":"","sources":["../../src/codegen/docs-sidebar.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE3D,wBAAgB,YAAY,CAC1B,MAAM,EAAE,UAAU,EAClB,MAAM,EAAE,UAAU,GACjB,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CA8ChC"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type definitions for the documentation pipeline.
|
|
3
|
+
*/
|
|
4
|
+
export interface DocsConfig {
|
|
5
|
+
/** Lexicon name (used for page titles and paths) */
|
|
6
|
+
name: string;
|
|
7
|
+
/** Display name (e.g. "AWS CloudFormation") */
|
|
8
|
+
displayName: string;
|
|
9
|
+
/** Short description of what this lexicon targets */
|
|
10
|
+
description: string;
|
|
11
|
+
/** Path to dist/ directory containing manifest.json and meta.json */
|
|
12
|
+
distDir: string;
|
|
13
|
+
/** Output directory for generated .mdx files */
|
|
14
|
+
outDir: string;
|
|
15
|
+
/** Lexicon-specific overview content (markdown) */
|
|
16
|
+
overview?: string;
|
|
17
|
+
/** Output format description (e.g. "CloudFormation JSON template") */
|
|
18
|
+
outputFormat?: string;
|
|
19
|
+
/** Custom service grouping from resource type (e.g. "AWS::S3::Bucket" → "S3") */
|
|
20
|
+
serviceFromType?: (resourceType: string) => string;
|
|
21
|
+
/** Custom sections to append to overview page */
|
|
22
|
+
extraSections?: Array<{
|
|
23
|
+
title: string;
|
|
24
|
+
content: string;
|
|
25
|
+
}>;
|
|
26
|
+
/** Standalone pages added to the sidebar after Overview */
|
|
27
|
+
extraPages?: Array<{
|
|
28
|
+
slug: string;
|
|
29
|
+
title: string;
|
|
30
|
+
description?: string;
|
|
31
|
+
content: string;
|
|
32
|
+
sidebar?: boolean;
|
|
33
|
+
}>;
|
|
34
|
+
/** Slugs of auto-generated pages to suppress (e.g. "pseudo-parameters") */
|
|
35
|
+
suppressPages?: string[];
|
|
36
|
+
/** Source directory for scanning rule files (defaults to srcDir sibling of distDir) */
|
|
37
|
+
srcDir?: string;
|
|
38
|
+
/** Base path for the generated Astro site (e.g. '/lexicons/aws/') */
|
|
39
|
+
basePath?: string;
|
|
40
|
+
/** Root directory for resolving {{file:...}} markers in extra page content */
|
|
41
|
+
examplesDir?: string;
|
|
42
|
+
/** Extra sidebar entries appended after extraPages (supports Starlight groups) */
|
|
43
|
+
sidebarExtra?: Array<Record<string, unknown>>;
|
|
44
|
+
}
|
|
45
|
+
export interface DocsResult {
|
|
46
|
+
pages: Map<string, string>;
|
|
47
|
+
stats: {
|
|
48
|
+
resources: number;
|
|
49
|
+
properties: number;
|
|
50
|
+
services: number;
|
|
51
|
+
rules: number;
|
|
52
|
+
intrinsics: number;
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
export interface ManifestJSON {
|
|
56
|
+
name: string;
|
|
57
|
+
version: string;
|
|
58
|
+
namespace?: string;
|
|
59
|
+
intrinsics?: Array<{
|
|
60
|
+
name: string;
|
|
61
|
+
description?: string;
|
|
62
|
+
outputKey?: string;
|
|
63
|
+
isTag?: boolean;
|
|
64
|
+
}>;
|
|
65
|
+
pseudoParameters?: Record<string, string>;
|
|
66
|
+
}
|
|
67
|
+
export interface MetaEntry {
|
|
68
|
+
resourceType: string;
|
|
69
|
+
kind: "resource" | "property";
|
|
70
|
+
lexicon: string;
|
|
71
|
+
attrs?: Record<string, string>;
|
|
72
|
+
propertyConstraints?: Record<string, unknown>;
|
|
73
|
+
createOnly?: string[];
|
|
74
|
+
writeOnly?: string[];
|
|
75
|
+
primaryIdentifier?: string[];
|
|
76
|
+
}
|
|
77
|
+
export interface RuleMeta {
|
|
78
|
+
id: string;
|
|
79
|
+
severity: string;
|
|
80
|
+
category: string;
|
|
81
|
+
description: string;
|
|
82
|
+
type: "lint" | "post-synth";
|
|
83
|
+
}
|
|
84
|
+
//# sourceMappingURL=docs-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"docs-types.d.ts","sourceRoot":"","sources":["../../src/codegen/docs-types.ts"],"names":[],"mappings":"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"}
|