@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
package/dist/build.d.ts
ADDED
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import type { Declarable } from "./declarable.js";
|
|
2
|
+
import type { Serializer, SerializerResult } from "./serializer.js";
|
|
3
|
+
import type { OwnershipMarker } from "./ownership.js";
|
|
4
|
+
import type { DiscoveryError, BuildError } from "./errors.js";
|
|
5
|
+
import { LexiconOutput } from "./lexicon-output.js";
|
|
6
|
+
/**
|
|
7
|
+
* Build manifest describing cross-lexicon outputs and deployment order
|
|
8
|
+
*/
|
|
9
|
+
export interface BuildManifest {
|
|
10
|
+
lexicons: string[];
|
|
11
|
+
outputs: Record<string, {
|
|
12
|
+
source: string;
|
|
13
|
+
entity: string;
|
|
14
|
+
attribute: string;
|
|
15
|
+
}>;
|
|
16
|
+
deployOrder: string[];
|
|
17
|
+
/** Cross-stack apply-ordering graph (see {@link computeStackGraph}). */
|
|
18
|
+
stackGraph: StackGraph;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* The cross-stack (cross-lexicon) apply-ordering graph chant already computes
|
|
22
|
+
* while resolving cross-lexicon references — surfaced as tool-agnostic data for
|
|
23
|
+
* an orchestrator to consume. chant exposes the order; it does not drive the
|
|
24
|
+
* apply.
|
|
25
|
+
*/
|
|
26
|
+
export interface StackGraph {
|
|
27
|
+
/** Stacks (lexicon partitions) in the build. */
|
|
28
|
+
nodes: string[];
|
|
29
|
+
/**
|
|
30
|
+
* Consumer→producer edges: `from` imports a value `to` exports, so `to` must
|
|
31
|
+
* apply before `from`. Inferred from cross-lexicon references.
|
|
32
|
+
*/
|
|
33
|
+
edges: Array<{
|
|
34
|
+
from: string;
|
|
35
|
+
to: string;
|
|
36
|
+
}>;
|
|
37
|
+
/** A flat applicable sequence — every producer before its consumers. */
|
|
38
|
+
order: string[];
|
|
39
|
+
/**
|
|
40
|
+
* Levels: stacks in the same wave have no inter-dependency and may apply
|
|
41
|
+
* concurrently. `order` flattened with parallelism made explicit.
|
|
42
|
+
*/
|
|
43
|
+
waves: string[][];
|
|
44
|
+
/** Dependency cycles, if any (each a list of stacks). Normally empty. */
|
|
45
|
+
cycles: string[][];
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Compute the cross-stack apply-ordering graph from resolved entities. Edges are
|
|
49
|
+
* inferred from cross-lexicon attribute references (a resource in lexicon A
|
|
50
|
+
* referencing an attribute of a resource in lexicon B ⇒ A depends on B). Returns
|
|
51
|
+
* the edge set plus a topological order, parallel-safe waves, and any cycles.
|
|
52
|
+
*/
|
|
53
|
+
export declare function computeStackGraph(entities: Map<string, Declarable>, lexiconNames: string[]): StackGraph;
|
|
54
|
+
/**
|
|
55
|
+
* Result of the build process
|
|
56
|
+
*/
|
|
57
|
+
/**
|
|
58
|
+
* Optional inputs to the build pipeline.
|
|
59
|
+
*/
|
|
60
|
+
export interface BuildOptions {
|
|
61
|
+
/**
|
|
62
|
+
* When set, serializers stamp this ownership marker into each resource's
|
|
63
|
+
* native metadata channel. Resolved from project config by the caller.
|
|
64
|
+
*/
|
|
65
|
+
ownership?: OwnershipMarker;
|
|
66
|
+
/**
|
|
67
|
+
* The resolved project configuration, passed through to each serializer's
|
|
68
|
+
* {@link SerializeContext} so a dialect can read its lexicon-scoped settings.
|
|
69
|
+
*/
|
|
70
|
+
config?: Record<string, unknown>;
|
|
71
|
+
}
|
|
72
|
+
export interface BuildResult {
|
|
73
|
+
/** Map of lexicon name to serialized output (string or multi-file result) */
|
|
74
|
+
outputs: Map<string, string | SerializerResult>;
|
|
75
|
+
/** Map of entity name to Declarable entity */
|
|
76
|
+
entities: Map<string, Declarable>;
|
|
77
|
+
/** Resource-level dependency graph from discovery */
|
|
78
|
+
dependencies: Map<string, Set<string>>;
|
|
79
|
+
/** Array of warnings encountered during the build */
|
|
80
|
+
warnings: string[];
|
|
81
|
+
/** Array of errors encountered during discovery and build */
|
|
82
|
+
errors: Array<DiscoveryError | BuildError>;
|
|
83
|
+
/** Build manifest with cross-lexicon dependency info */
|
|
84
|
+
manifest: BuildManifest;
|
|
85
|
+
/** Number of source files processed */
|
|
86
|
+
sourceFileCount: number;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Partitions entities by their lexicon field.
|
|
90
|
+
* Property-kind Declarables are included in the same partition as their parent
|
|
91
|
+
* (they get inlined during serialization).
|
|
92
|
+
*
|
|
93
|
+
* @param entities - Map of entity name to Declarable
|
|
94
|
+
* @returns Map of lexicon name to Map of entity name to Declarable
|
|
95
|
+
*/
|
|
96
|
+
export declare function partitionByLexicon(entities: Map<string, Declarable>): Map<string, Map<string, Declarable>>;
|
|
97
|
+
/**
|
|
98
|
+
* Collect LexiconOutput instances from all entity property trees.
|
|
99
|
+
* Walks entity properties recursively to find LexiconOutput values.
|
|
100
|
+
*/
|
|
101
|
+
export declare function collectLexiconOutputs(entities: Map<string, Declarable>): LexiconOutput[];
|
|
102
|
+
/**
|
|
103
|
+
* Detect cross-lexicon AttrRefs by walking each entity's property tree.
|
|
104
|
+
* For each AttrRef whose parent entity belongs to a different lexicon than
|
|
105
|
+
* the consuming entity, auto-create a LexiconOutput.
|
|
106
|
+
*
|
|
107
|
+
* @param entities - Map of entity name to Declarable
|
|
108
|
+
* @returns Array of auto-detected LexiconOutput instances
|
|
109
|
+
*/
|
|
110
|
+
export declare function detectCrossLexiconRefs(entities: Map<string, Declarable>): LexiconOutput[];
|
|
111
|
+
/**
|
|
112
|
+
* Builds a lexicon specification by discovering entities, sorting them
|
|
113
|
+
* topologically, and serializing them using the lexicon serializers.
|
|
114
|
+
*
|
|
115
|
+
* @param path - The directory path containing the specification files
|
|
116
|
+
* @param serializers - The serializers to use for serialization
|
|
117
|
+
* @returns BuildResult with outputs, entities, warnings, and errors
|
|
118
|
+
*/
|
|
119
|
+
export declare function build(path: string, serializers: Serializer[], parentBuildStack?: Set<string>, options?: BuildOptions): Promise<BuildResult>;
|
|
120
|
+
//# sourceMappingURL=build.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../src/build.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AACjE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3D,OAAO,EAAE,aAAa,EAAmB,MAAM,kBAAkB,CAAC;AAOlE;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,OAAO,EAAE,MAAM,CACb,MAAM,EACN;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CACtD,CAAC;IACF,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,wEAAwE;IACxE,UAAU,EAAE,UAAU,CAAC;CACxB;AAED;;;;;GAKG;AACH,MAAM,WAAW,UAAU;IACzB,gDAAgD;IAChD,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB;;;OAGG;IACH,KAAK,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC3C,wEAAwE;IACxE,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB;;;OAGG;IACH,KAAK,EAAE,MAAM,EAAE,EAAE,CAAC;IAClB,yEAAyE;IACzE,MAAM,EAAE,MAAM,EAAE,EAAE,CAAC;CACpB;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,EACjC,YAAY,EAAE,MAAM,EAAE,GACrB,UAAU,CAuEZ;AAED;;GAEG;AACH;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;;OAGG;IACH,SAAS,CAAC,EAAE,eAAe,CAAC;IAE5B;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC;AAED,MAAM,WAAW,WAAW;IAC1B,6EAA6E;IAC7E,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,GAAG,gBAAgB,CAAC,CAAC;IAChD,8CAA8C;IAC9C,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IAClC,qDAAqD;IACrD,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC;IACvC,qDAAqD;IACrD,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,6DAA6D;IAC7D,MAAM,EAAE,KAAK,CAAC,cAAc,GAAG,UAAU,CAAC,CAAC;IAC3C,wDAAwD;IACxD,QAAQ,EAAE,aAAa,CAAC;IACxB,uCAAuC;IACvC,eAAe,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,GAChC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CActC;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,GAChC,aAAa,EAAE,CA4DjB;AAED;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CACpC,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,GAChC,aAAa,EAAE,CA8EjB;AA6ED;;;;;;;GAOG;AACH,wBAAsB,KAAK,CACzB,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,UAAU,EAAE,EACzB,gBAAgB,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,EAC9B,OAAO,CAAC,EAAE,YAAY,GACrB,OAAO,CAAC,WAAW,CAAC,CAkJtB"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { Declarable } from "./declarable.js";
|
|
2
|
+
/**
|
|
3
|
+
* Base class for builder pattern implementations
|
|
4
|
+
*
|
|
5
|
+
* Provides a fluent API for constructing Declarable entities.
|
|
6
|
+
* Subclasses should implement the build() method to return
|
|
7
|
+
* a fully constructed Declarable entity.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* class ResourceBuilder extends Builder<MyResource> {
|
|
12
|
+
* private name?: string;
|
|
13
|
+
* private type?: string;
|
|
14
|
+
*
|
|
15
|
+
* withName(name: string): this {
|
|
16
|
+
* this.name = name;
|
|
17
|
+
* return this;
|
|
18
|
+
* }
|
|
19
|
+
*
|
|
20
|
+
* withType(type: string): this {
|
|
21
|
+
* this.type = type;
|
|
22
|
+
* return this;
|
|
23
|
+
* }
|
|
24
|
+
*
|
|
25
|
+
* build(): MyResource {
|
|
26
|
+
* if (!this.name || !this.type) {
|
|
27
|
+
* throw new Error("Name and type are required");
|
|
28
|
+
* }
|
|
29
|
+
* return {
|
|
30
|
+
* entityType: "MyResource",
|
|
31
|
+
* [DECLARABLE_MARKER]: true,
|
|
32
|
+
* name: this.name,
|
|
33
|
+
* type: this.type,
|
|
34
|
+
* };
|
|
35
|
+
* }
|
|
36
|
+
* }
|
|
37
|
+
*
|
|
38
|
+
* const resource = new ResourceBuilder()
|
|
39
|
+
* .withName("myResource")
|
|
40
|
+
* .withType("custom")
|
|
41
|
+
* .build();
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
export declare abstract class Builder<T extends Declarable> {
|
|
45
|
+
/**
|
|
46
|
+
* Builds and returns the final Declarable entity
|
|
47
|
+
*
|
|
48
|
+
* Subclasses must implement this method to construct
|
|
49
|
+
* and return the entity with all configured properties.
|
|
50
|
+
*
|
|
51
|
+
* @returns The constructed Declarable entity
|
|
52
|
+
* @throws Error if required properties are not set
|
|
53
|
+
*/
|
|
54
|
+
abstract build(): T;
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=builder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"builder.d.ts","sourceRoot":"","sources":["../src/builder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,8BAAsB,OAAO,CAAC,CAAC,SAAS,UAAU;IAChD;;;;;;;;OAQG;IACH,QAAQ,CAAC,KAAK,IAAI,CAAC;CACpB"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Child Project — represents a nested project directory that gets built
|
|
3
|
+
* independently and referenced from a parent as a single deployment unit.
|
|
4
|
+
*
|
|
5
|
+
* Lexicons create ChildProjectInstance via their own factory (e.g. `nestedStack()`).
|
|
6
|
+
* The core build pipeline detects these and recursively builds children.
|
|
7
|
+
*/
|
|
8
|
+
import { DECLARABLE_MARKER, type Declarable } from "./declarable.js";
|
|
9
|
+
import type { BuildResult } from "./build.js";
|
|
10
|
+
/**
|
|
11
|
+
* Marker symbol for child project identification.
|
|
12
|
+
*/
|
|
13
|
+
export declare const CHILD_PROJECT_MARKER: unique symbol;
|
|
14
|
+
/**
|
|
15
|
+
* A child project instance — a Declarable representing a separately-built
|
|
16
|
+
* project directory referenced from a parent.
|
|
17
|
+
*/
|
|
18
|
+
export interface ChildProjectInstance extends Declarable {
|
|
19
|
+
readonly [CHILD_PROJECT_MARKER]: true;
|
|
20
|
+
readonly [DECLARABLE_MARKER]: true;
|
|
21
|
+
readonly lexicon: string;
|
|
22
|
+
readonly entityType: string;
|
|
23
|
+
readonly kind: "resource";
|
|
24
|
+
readonly projectPath: string;
|
|
25
|
+
readonly logicalName: string;
|
|
26
|
+
readonly outputs: Record<string, unknown>;
|
|
27
|
+
readonly options: Record<string, unknown>;
|
|
28
|
+
buildResult?: BuildResult;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Type guard for ChildProjectInstance.
|
|
32
|
+
*/
|
|
33
|
+
export declare function isChildProject(value: unknown): value is ChildProjectInstance;
|
|
34
|
+
//# sourceMappingURL=child-project.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"child-project.d.ts","sourceRoot":"","sources":["../src/child-project.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,iBAAiB,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAClE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C;;GAEG;AACH,eAAO,MAAM,oBAAoB,eAAmC,CAAC;AAErE;;;GAGG;AACH,MAAM,WAAW,oBAAqB,SAAQ,UAAU;IACtD,QAAQ,CAAC,CAAC,oBAAoB,CAAC,EAAE,IAAI,CAAC;IACtC,QAAQ,CAAC,CAAC,iBAAiB,CAAC,EAAE,IAAI,CAAC;IACnC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAC1B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC1C,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC1C,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,oBAAoB,CAO5E"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `chant audit` — run chant's security, correctness, and best-practice checks against an existing repo's
|
|
3
|
+
* pipeline YAML and emit a tiered report. Does not require a chant project;
|
|
4
|
+
* it reads `.github/workflows`, `.gitlab-ci.yml`, and `.forgejo/workflows`
|
|
5
|
+
* directly and runs the real post-synth checks via the audit core.
|
|
6
|
+
*/
|
|
7
|
+
import { type AuditInput, type AuditFinding, type ChecksProvider } from "../../audit/core.js";
|
|
8
|
+
import { type ReportTheme } from "../../audit/report-html.js";
|
|
9
|
+
export type AuditFormat = "stylish" | "json" | "sarif" | "markdown" | "html";
|
|
10
|
+
export type AuditTier = "merge-worthy" | "all";
|
|
11
|
+
export type AuditFailOn = "merge-worthy" | "warning" | "none";
|
|
12
|
+
export interface AuditCommandOptions {
|
|
13
|
+
/** Repo root/dir to scan, or an https:// repo URL to fetch and audit. */
|
|
14
|
+
path: string;
|
|
15
|
+
format?: AuditFormat;
|
|
16
|
+
/** Restrict findings to a tier (default "all"). */
|
|
17
|
+
tier?: AuditTier;
|
|
18
|
+
/** Exit-code policy (default "none" — read-only friendly). */
|
|
19
|
+
failOn?: AuditFailOn;
|
|
20
|
+
/** Server-side token for remote fetch (defaults to env). */
|
|
21
|
+
token?: string;
|
|
22
|
+
/** Injectable fetch for testing remote audits. */
|
|
23
|
+
fetchImpl?: typeof fetch;
|
|
24
|
+
/** Write the rendered report to this file instead of returning it for stdout. */
|
|
25
|
+
output?: string;
|
|
26
|
+
/** Injectable post-synth checks provider (testing). */
|
|
27
|
+
checksProvider?: ChecksProvider;
|
|
28
|
+
/** HTML report: theme knobs (title, logo, accent, footer). */
|
|
29
|
+
theme?: ReportTheme;
|
|
30
|
+
/** HTML report: full template override. */
|
|
31
|
+
template?: string;
|
|
32
|
+
/** Snapshot timestamp (ISO); defaults to now. Injectable for deterministic output. */
|
|
33
|
+
now?: string;
|
|
34
|
+
/** Tool version recorded in the HTML snapshot. */
|
|
35
|
+
toolVersion?: string;
|
|
36
|
+
}
|
|
37
|
+
export interface AuditCommandResult {
|
|
38
|
+
success: boolean;
|
|
39
|
+
/** Rendered report in the requested format. */
|
|
40
|
+
output: string;
|
|
41
|
+
findings: AuditFinding[];
|
|
42
|
+
/** Files that were scanned (relative to the root). */
|
|
43
|
+
scanned: string[];
|
|
44
|
+
exitCode: number;
|
|
45
|
+
error?: string;
|
|
46
|
+
/** Set when the report was written to a file (via `output`). */
|
|
47
|
+
wroteTo?: string;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Select the fetch token for a repo host. Tokens are host-specific — a GitHub
|
|
51
|
+
* PAT sent to GitLab/Codeberg is rejected (401) — so we never cross hosts.
|
|
52
|
+
*/
|
|
53
|
+
export declare function tokenForHost(url: string, env?: NodeJS.ProcessEnv): string | undefined;
|
|
54
|
+
/** Coverage caveats about what the audit could and couldn't see. */
|
|
55
|
+
export declare function coverageNotes(inputs: AuditInput[]): string[];
|
|
56
|
+
/** Run the audit and produce a rendered result. */
|
|
57
|
+
export declare function auditCommand(options: AuditCommandOptions): Promise<AuditCommandResult>;
|
|
58
|
+
/** Print an audit result to stdout. */
|
|
59
|
+
export declare function printAuditResult(result: AuditCommandResult): void;
|
|
60
|
+
//# sourceMappingURL=audit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audit.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/audit.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAc,KAAK,UAAU,EAAE,KAAK,YAAY,EAAE,KAAK,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAIvG,OAAO,EAAc,KAAK,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAOvE,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,MAAM,CAAC;AAC7E,MAAM,MAAM,SAAS,GAAG,cAAc,GAAG,KAAK,CAAC;AAC/C,MAAM,MAAM,WAAW,GAAG,cAAc,GAAG,SAAS,GAAG,MAAM,CAAC;AAE9D,MAAM,WAAW,mBAAmB;IAClC,yEAAyE;IACzE,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,mDAAmD;IACnD,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,8DAA8D;IAC9D,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,4DAA4D;IAC5D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kDAAkD;IAClD,SAAS,CAAC,EAAE,OAAO,KAAK,CAAC;IACzB,iFAAiF;IACjF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,uDAAuD;IACvD,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,8DAA8D;IAC9D,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,2CAA2C;IAC3C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,sFAAsF;IACtF,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,kDAAkD;IAClD,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,+CAA+C;IAC/C,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,YAAY,EAAE,CAAC;IACzB,sDAAsD;IACtD,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gEAAgE;IAChE,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,GAAE,MAAM,CAAC,UAAwB,GAAG,MAAM,GAAG,SAAS,CAiBlG;AAuBD,oEAAoE;AACpE,wBAAgB,aAAa,CAAC,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,EAAE,CAS5D;AAmFD,mDAAmD;AACnD,wBAAsB,YAAY,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAkI5F;AAED,uCAAuC;AACvC,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,kBAAkB,GAAG,IAAI,CAUjE"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import type { Serializer } from "../../serializer.js";
|
|
2
|
+
import type { LexiconPlugin } from "../../lexicon.js";
|
|
3
|
+
/**
|
|
4
|
+
* Build command options
|
|
5
|
+
*/
|
|
6
|
+
export interface BuildOptions {
|
|
7
|
+
/** Path to infrastructure directory */
|
|
8
|
+
path: string;
|
|
9
|
+
/** Output file path (undefined = stdout) */
|
|
10
|
+
output?: string;
|
|
11
|
+
/** Output format */
|
|
12
|
+
format: "json" | "yaml";
|
|
13
|
+
/** Serializers to use for serialization */
|
|
14
|
+
serializers: Serializer[];
|
|
15
|
+
/** Lexicon plugins (for post-synth checks) */
|
|
16
|
+
plugins?: LexiconPlugin[];
|
|
17
|
+
/** Print summary to stderr */
|
|
18
|
+
verbose?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Environment/stack to evaluate policy against (`--env`). Falls back to the
|
|
21
|
+
* project's `ownership.env`. Passed into post-synth checks so organizational
|
|
22
|
+
* policy can branch on environment.
|
|
23
|
+
*/
|
|
24
|
+
env?: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Resolve the output format for `chant build`.
|
|
28
|
+
*
|
|
29
|
+
* When `--format` is not given, infer it from the `-o` file extension
|
|
30
|
+
* (`.yaml`/`.yml` → yaml, `.json` → json); fall back to json when there is no
|
|
31
|
+
* extension to infer from. An explicit `--format` always wins, but a mismatch
|
|
32
|
+
* with the output extension is surfaced as a warning.
|
|
33
|
+
*/
|
|
34
|
+
export declare function resolveBuildFormat(explicit: string | undefined, output: string | undefined): {
|
|
35
|
+
format: "json" | "yaml";
|
|
36
|
+
warning?: string;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Build command result
|
|
40
|
+
*/
|
|
41
|
+
export interface BuildResult {
|
|
42
|
+
/** Whether the build succeeded */
|
|
43
|
+
success: boolean;
|
|
44
|
+
/** Number of resources built */
|
|
45
|
+
resourceCount: number;
|
|
46
|
+
/** Number of source files processed */
|
|
47
|
+
fileCount: number;
|
|
48
|
+
/** Error messages */
|
|
49
|
+
errors: string[];
|
|
50
|
+
/** Warning messages */
|
|
51
|
+
warnings: string[];
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Execute the build command
|
|
55
|
+
*/
|
|
56
|
+
export declare function buildCommand(options: BuildOptions): Promise<BuildResult>;
|
|
57
|
+
/**
|
|
58
|
+
* Print errors to stderr
|
|
59
|
+
*/
|
|
60
|
+
export declare function printErrors(errors: string[]): void;
|
|
61
|
+
/**
|
|
62
|
+
* Print warnings to stderr
|
|
63
|
+
*/
|
|
64
|
+
export declare function printWarnings(warnings: string[]): void;
|
|
65
|
+
/**
|
|
66
|
+
* Run build in watch mode. Runs an initial build, then watches for changes
|
|
67
|
+
* and triggers rebuilds. Returns a cleanup function.
|
|
68
|
+
*/
|
|
69
|
+
export declare function buildCommandWatch(options: BuildOptions, onRebuild?: (result: BuildResult) => void): () => void;
|
|
70
|
+
//# sourceMappingURL=build.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/build.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAoB,MAAM,kBAAkB,CAAC;AACrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AASnD;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,uCAAuC;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,4CAA4C;IAC5C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,oBAAoB;IACpB,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,2CAA2C;IAC3C,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,8CAA8C;IAC9C,OAAO,CAAC,EAAE,aAAa,EAAE,CAAC;IAC1B,8BAA8B;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,MAAM,EAAE,MAAM,GAAG,SAAS,GACzB;IAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CAoB/C;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,kCAAkC;IAClC,OAAO,EAAE,OAAO,CAAC;IACjB,gCAAgC;IAChC,aAAa,EAAE,MAAM,CAAC;IACtB,uCAAuC;IACvC,SAAS,EAAE,MAAM,CAAC;IAClB,qBAAqB;IACrB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,uBAAuB;IACvB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAED;;GAEG;AACH,wBAAsB,YAAY,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,WAAW,CAAC,CAsP9E;AAiDD;;GAEG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CAIlD;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,IAAI,CAItD;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,YAAY,EACrB,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,GACxC,MAAM,IAAI,CAmCZ"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface CheckItem {
|
|
2
|
+
name: string;
|
|
3
|
+
tier: 1 | 2 | 3;
|
|
4
|
+
pass: boolean;
|
|
5
|
+
detail?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface CheckResult {
|
|
8
|
+
items: CheckItem[];
|
|
9
|
+
tier1Pass: boolean;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Run all completeness checks against a lexicon directory.
|
|
13
|
+
*/
|
|
14
|
+
export declare function checkLexicon(dir: string): CheckResult;
|
|
15
|
+
/**
|
|
16
|
+
* Print the check result as a colored table or JSON.
|
|
17
|
+
*/
|
|
18
|
+
export declare function printCheckResult(result: CheckResult, json: boolean): void;
|
|
19
|
+
//# sourceMappingURL=check-lexicon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check-lexicon.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/check-lexicon.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAChB,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;CACpB;AAiDD;;GAEG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,CAiSrD;AAqBD;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,GAAG,IAAI,CAmDzE"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `chant describe <component>` — project the effective, fully-resolved
|
|
3
|
+
* configuration for one named component, offline (source only; no live calls).
|
|
4
|
+
*
|
|
5
|
+
* `chant list` shows inventory and `chant graph` shows edges; neither shows the
|
|
6
|
+
* resolved property bag for a single thing. `describe` does: for a layered
|
|
7
|
+
* config (see the layered-config guide) it answers "what is the effective config
|
|
8
|
+
* for this component, after every spread/override?" without merging the layers
|
|
9
|
+
* by hand.
|
|
10
|
+
*/
|
|
11
|
+
export interface DescribeOptions {
|
|
12
|
+
/** The component to describe — a named export (declarable or composite instance). */
|
|
13
|
+
component: string;
|
|
14
|
+
/** Path to the infrastructure directory. */
|
|
15
|
+
path: string;
|
|
16
|
+
/** Output format. */
|
|
17
|
+
format: "text" | "json";
|
|
18
|
+
}
|
|
19
|
+
/** One resolved resource produced by the component. */
|
|
20
|
+
export interface DescribedResource {
|
|
21
|
+
name: string;
|
|
22
|
+
lexicon: string;
|
|
23
|
+
entityType: string;
|
|
24
|
+
kind: string;
|
|
25
|
+
/** The resolved (post-merge, post-composite-expansion) property bag. */
|
|
26
|
+
props: unknown;
|
|
27
|
+
}
|
|
28
|
+
export interface DescribeResult {
|
|
29
|
+
success: boolean;
|
|
30
|
+
component: string;
|
|
31
|
+
/** True when the component is a composite instance (≥1 produced resource by prefix). */
|
|
32
|
+
composite: boolean;
|
|
33
|
+
resources: DescribedResource[];
|
|
34
|
+
output: string;
|
|
35
|
+
}
|
|
36
|
+
export declare function describeCommand(options: DescribeOptions): Promise<DescribeResult>;
|
|
37
|
+
/** Print a describe result to the console. */
|
|
38
|
+
export declare function printDescribeResult(result: DescribeResult): void;
|
|
39
|
+
//# sourceMappingURL=describe.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"describe.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/describe.ts"],"names":[],"mappings":"AAKA;;;;;;;;;GASG;AACH,MAAM,WAAW,eAAe;IAC9B,qFAAqF;IACrF,SAAS,EAAE,MAAM,CAAC;IAClB,4CAA4C;IAC5C,IAAI,EAAE,MAAM,CAAC;IACb,qBAAqB;IACrB,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;CACzB;AAED,uDAAuD;AACvD,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,wEAAwE;IACxE,KAAK,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,wFAAwF;IACxF,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,iBAAiB,EAAE,CAAC;IAC/B,MAAM,EAAE,MAAM,CAAC;CAChB;AA+BD,wBAAsB,eAAe,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,cAAc,CAAC,CAyCvF;AAqBD,8CAA8C;AAC9C,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,cAAc,GAAG,IAAI,CAKhE"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { Serializer } from "../../serializer.js";
|
|
2
|
+
/**
|
|
3
|
+
* Diff command options
|
|
4
|
+
*/
|
|
5
|
+
export interface DiffOptions {
|
|
6
|
+
/** Path to infrastructure directory */
|
|
7
|
+
path: string;
|
|
8
|
+
/** Existing output file to diff against */
|
|
9
|
+
output?: string;
|
|
10
|
+
/** Serializers to use for serialization */
|
|
11
|
+
serializers: Serializer[];
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Diff command result
|
|
15
|
+
*/
|
|
16
|
+
export interface DiffResult {
|
|
17
|
+
/** Whether the diff succeeded (no build errors) */
|
|
18
|
+
success: boolean;
|
|
19
|
+
/** Whether there are changes between current and previous */
|
|
20
|
+
hasChanges: boolean;
|
|
21
|
+
/** Unified diff output */
|
|
22
|
+
diff: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Execute the diff command
|
|
26
|
+
*/
|
|
27
|
+
export declare function diffCommand(options: DiffOptions): Promise<DiffResult>;
|
|
28
|
+
/**
|
|
29
|
+
* Print diff result to console
|
|
30
|
+
*/
|
|
31
|
+
export declare function printDiffResult(result: DiffResult): void;
|
|
32
|
+
//# sourceMappingURL=diff.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"diff.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/diff.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAGnD;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,uCAAuC;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,2CAA2C;IAC3C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,2CAA2C;IAC3C,WAAW,EAAE,UAAU,EAAE,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,mDAAmD;IACnD,OAAO,EAAE,OAAO,CAAC;IACjB,6DAA6D;IAC7D,UAAU,EAAE,OAAO,CAAC;IACpB,0BAA0B;IAC1B,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,wBAAsB,WAAW,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,UAAU,CAAC,CAkC3E;AA6ID;;GAEG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI,CAUxD"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface DoctorCheck {
|
|
2
|
+
name: string;
|
|
3
|
+
status: "pass" | "fail" | "warn";
|
|
4
|
+
message?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface DoctorReport {
|
|
7
|
+
checks: DoctorCheck[];
|
|
8
|
+
success: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare function doctorCommand(path: string): Promise<DoctorReport>;
|
|
11
|
+
//# sourceMappingURL=doctor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"doctor.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/doctor.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,WAAW,EAAE,CAAC;IACtB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,wBAAsB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,CAgNvE"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import type { LexiconPlugin, ResourceSelector } from "../../lexicon.js";
|
|
2
|
+
/**
|
|
3
|
+
* Import command options
|
|
4
|
+
*/
|
|
5
|
+
export interface ImportOptions {
|
|
6
|
+
/** Path to template file */
|
|
7
|
+
templatePath: string;
|
|
8
|
+
/** Output directory (defaults to ./infra/) */
|
|
9
|
+
output?: string;
|
|
10
|
+
/** Force overwrite existing files */
|
|
11
|
+
force?: boolean;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Import command result
|
|
15
|
+
*/
|
|
16
|
+
export interface ImportResult {
|
|
17
|
+
/** Whether import succeeded */
|
|
18
|
+
success: boolean;
|
|
19
|
+
/** Generated files */
|
|
20
|
+
generatedFiles: string[];
|
|
21
|
+
/** Warning messages */
|
|
22
|
+
warnings: string[];
|
|
23
|
+
/** Error message if failed */
|
|
24
|
+
error?: string;
|
|
25
|
+
/** Detected lexicon */
|
|
26
|
+
lexicon?: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Execute the import command
|
|
30
|
+
*/
|
|
31
|
+
export declare function importCommand(options: ImportOptions): Promise<ImportResult>;
|
|
32
|
+
/**
|
|
33
|
+
* Live import options — read from a running cloud/cluster instead of a file.
|
|
34
|
+
*/
|
|
35
|
+
export interface LiveImportOptions {
|
|
36
|
+
/** Environment to resolve (passed to each lexicon's exportResources). */
|
|
37
|
+
environment: string;
|
|
38
|
+
/** Restrict to one lexicon by name (e.g. "aws", "k8s"). */
|
|
39
|
+
lexicon?: string;
|
|
40
|
+
/** Output directory (defaults to ./infra/). */
|
|
41
|
+
output?: string;
|
|
42
|
+
/** Force overwrite existing files. */
|
|
43
|
+
force?: boolean;
|
|
44
|
+
/** Selector forwarded to the lexicon. */
|
|
45
|
+
selector?: ResourceSelector;
|
|
46
|
+
/** Restrict to chant-owned resources (inert until ownership marking lands). */
|
|
47
|
+
owned?: boolean;
|
|
48
|
+
/** Keep server-defaulted fields instead of stripping to declared shape. */
|
|
49
|
+
verbatim?: boolean;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Import directly from a live environment: ask each lexicon's exportResources
|
|
53
|
+
* for full-fidelity IR, then generate chant TypeScript from it.
|
|
54
|
+
*
|
|
55
|
+
* Unlike file import, the live config may contain secrets — the caller prints a
|
|
56
|
+
* warning. Reuses the same by-category output organization as file import.
|
|
57
|
+
*/
|
|
58
|
+
export declare function importFromLive(options: LiveImportOptions): Promise<ImportResult>;
|
|
59
|
+
/**
|
|
60
|
+
* Live-import core: given resolved plugins, export and generate. Split from
|
|
61
|
+
* plugin resolution so it can be tested with fake exporters (no cloud calls).
|
|
62
|
+
*/
|
|
63
|
+
export declare function liveImportFromPlugins(plugins: LexiconPlugin[], options: LiveImportOptions): Promise<ImportResult>;
|
|
64
|
+
/**
|
|
65
|
+
* Print import result
|
|
66
|
+
*/
|
|
67
|
+
export declare function printImportResult(result: ImportResult): void;
|
|
68
|
+
//# sourceMappingURL=import.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"import.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/import.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAErE;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,4BAA4B;IAC5B,YAAY,EAAE,MAAM,CAAC;IACrB,8CAA8C;IAC9C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,qCAAqC;IACrC,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,+BAA+B;IAC/B,OAAO,EAAE,OAAO,CAAC;IACjB,sBAAsB;IACtB,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,uBAAuB;IACvB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,8BAA8B;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uBAAuB;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAmID;;GAEG;AACH,wBAAsB,aAAa,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,YAAY,CAAC,CA8IjF;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,yEAAyE;IACzE,WAAW,EAAE,MAAM,CAAC;IACpB,2DAA2D;IAC3D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,+CAA+C;IAC/C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,sCAAsC;IACtC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,yCAAyC;IACzC,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B,+EAA+E;IAC/E,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,2EAA2E;IAC3E,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAkBD;;;;;;GAMG;AACH,wBAAsB,cAAc,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,YAAY,CAAC,CAatF;AAED;;;GAGG;AACH,wBAAsB,qBAAqB,CACzC,OAAO,EAAE,aAAa,EAAE,EACxB,OAAO,EAAE,iBAAiB,GACzB,OAAO,CAAC,YAAY,CAAC,CAmFvB;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,YAAY,GAAG,IAAI,CAsB5D"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Codegen template generators for init-lexicon scaffold.
|
|
3
|
+
*/
|
|
4
|
+
export declare function generateCodegenGenerateTs(): string;
|
|
5
|
+
export declare function generateCodegenGenerateCliTs(): string;
|
|
6
|
+
export declare function generateCodegenNamingTs(): string;
|
|
7
|
+
export declare function generateCodegenPackageTs(name: string): string;
|
|
8
|
+
export declare function generateCodegenDocsTs(name: string): string;
|
|
9
|
+
//# sourceMappingURL=codegen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codegen.d.ts","sourceRoot":"","sources":["../../../../../src/cli/commands/init-lexicon/templates/codegen.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,wBAAgB,yBAAyB,IAAI,MAAM,CA4ElD;AAED,wBAAgB,4BAA4B,IAAI,MAAM,CAUrD;AAED,wBAAgB,uBAAuB,IAAI,MAAM,CAmChD;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CA2B7D;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CA2B1D"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Docs site template generators for init-lexicon scaffold.
|
|
3
|
+
*/
|
|
4
|
+
export declare function generateDocsPackageJson(name: string): string;
|
|
5
|
+
export declare function generateDocsTsConfig(): string;
|
|
6
|
+
export declare function generateDocsAstroConfig(name: string): string;
|
|
7
|
+
export declare function generateDocsContentConfig(): string;
|
|
8
|
+
export declare function generateDocsIndexMdx(name: string): string;
|
|
9
|
+
//# sourceMappingURL=docs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"docs.d.ts","sourceRoot":"","sources":["../../../../../src/cli/commands/init-lexicon/templates/docs.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAqB5D;AAED,wBAAgB,oBAAoB,IAAI,MAAM,CAU7C;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAiB5D;AAED,wBAAgB,yBAAyB,IAAI,MAAM,CASlD;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAWzD"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Example template generators for init-lexicon scaffold.
|
|
3
|
+
*/
|
|
4
|
+
export declare function generateExamplePackageJson(name: string): string;
|
|
5
|
+
export declare function generateExampleInfraTs(name: string, names: {
|
|
6
|
+
packageName: string;
|
|
7
|
+
}): string;
|
|
8
|
+
//# sourceMappingURL=examples.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"examples.d.ts","sourceRoot":"","sources":["../../../../../src/cli/commands/init-lexicon/templates/examples.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAc/D;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE;IAAE,WAAW,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CAc3F"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lint.d.ts","sourceRoot":"","sources":["../../../../../src/cli/commands/init-lexicon/templates/lint.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE;IAAE,UAAU,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CAoB1E;AAED,wBAAgB,wBAAwB,IAAI,MAAM,CAGjD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lsp.d.ts","sourceRoot":"","sources":["../../../../../src/cli/commands/init-lexicon/templates/lsp.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAgB7D;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAgBvD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Plugin and index template generators for init-lexicon scaffold.
|
|
3
|
+
*/
|
|
4
|
+
export declare function generatePluginTs(name: string, names: {
|
|
5
|
+
pluginVarName: string;
|
|
6
|
+
serializerVarName: string;
|
|
7
|
+
}): string;
|
|
8
|
+
export declare function generateIndexTs(names: {
|
|
9
|
+
pluginVarName: string;
|
|
10
|
+
serializerVarName: string;
|
|
11
|
+
}): string;
|
|
12
|
+
//# sourceMappingURL=plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../src/cli/commands/init-lexicon/templates/plugin.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE;IAAE,aAAa,EAAE,MAAM,CAAC;IAAC,iBAAiB,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CA4FlH;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE;IAAE,aAAa,EAAE,MAAM,CAAC;IAAC,iBAAiB,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CAWnG"}
|