@skmtc/core 0.16.3 → 0.26.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/README.md +0 -1
- package/esm/anchors/buildSidecar.js +1 -1
- package/esm/anchors/postPass.d.ts +1 -1
- package/esm/anchors/postPass.js +1 -1
- package/esm/anchors/sidecar.d.ts +2 -2
- package/esm/anchors/sidecar.js +1 -1
- package/esm/context/CoreContext.d.ts +7 -1
- package/esm/context/CoreContext.d.ts.map +1 -1
- package/esm/context/CoreContext.js +17 -11
- package/esm/context/GenerateContext.d.ts +28 -7
- package/esm/context/GenerateContext.d.ts.map +1 -1
- package/esm/context/GenerateContext.js +164 -86
- package/esm/context/ParseContext.d.ts +16 -0
- package/esm/context/ParseContext.d.ts.map +1 -1
- package/esm/context/ParseContext.js +16 -0
- package/esm/context/ParseIssue.d.ts +1 -1
- package/esm/context/RenderContext.d.ts +2 -6
- package/esm/context/RenderContext.d.ts.map +1 -1
- package/esm/context/RenderContext.js +4 -14
- package/esm/context/generateTypes.d.ts +35 -8
- package/esm/context/generateTypes.d.ts.map +1 -1
- package/{script/deps/jsr.io/@std/fs/1.0.23 → esm/deps/jsr.io/@std/fs/1.0.24}/exists.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/internal/1.0.14/_os.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.14/_os.js +14 -0
- package/esm/deps/jsr.io/@std/internal/{1.0.13 → 1.0.14}/os.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/log/0.224.14/rotating_file_handler.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/assert_path.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/assert_path.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/constants.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/constants.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/from_file_url.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/from_file_url.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/normalize.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/normalize.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/normalize_string.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/normalize_string.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/join.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/join.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/normalize.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/normalize.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/_util.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/_util.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/from_file_url.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/from_file_url.js +1 -1
- package/{script/deps/jsr.io/@std/path/1.1.4 → esm/deps/jsr.io/@std/path/1.1.6}/posix/join.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/join.js +1 -1
- package/{script/deps/jsr.io/@std/path/1.1.4 → esm/deps/jsr.io/@std/path/1.1.6}/posix/normalize.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/normalize.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/_util.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/_util.js +1 -1
- package/{script/deps/jsr.io/@std/path/1.1.4 → esm/deps/jsr.io/@std/path/1.1.6}/windows/from_file_url.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/from_file_url.js +1 -1
- package/{script/deps/jsr.io/@std/path/1.1.4 → esm/deps/jsr.io/@std/path/1.1.6}/windows/join.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/join.js +1 -1
- package/{script/deps/jsr.io/@std/path/1.1.4 → esm/deps/jsr.io/@std/path/1.1.6}/windows/normalize.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/normalize.js +1 -1
- package/esm/dsl/CodeFileBase.d.ts +57 -24
- package/esm/dsl/CodeFileBase.d.ts.map +1 -1
- package/esm/dsl/CodeFileBase.js +35 -53
- package/esm/dsl/FileBase.d.ts +21 -25
- package/esm/dsl/FileBase.d.ts.map +1 -1
- package/esm/dsl/FileBase.js +20 -29
- package/esm/dsl/GeneratorKeys.d.ts +19 -19
- package/esm/dsl/GeneratorKeys.d.ts.map +1 -1
- package/esm/dsl/GeneratorKeys.js +6 -5
- package/esm/dsl/IdentifierBase.d.ts +19 -5
- package/esm/dsl/IdentifierBase.d.ts.map +1 -1
- package/esm/dsl/IdentifierBase.js +21 -5
- package/esm/dsl/IdentifierType.d.ts +8 -14
- package/esm/dsl/IdentifierType.d.ts.map +1 -1
- package/esm/dsl/Lang.d.ts +18 -38
- package/esm/dsl/Lang.d.ts.map +1 -1
- package/esm/dsl/MarkdownFile.d.ts +55 -0
- package/esm/dsl/MarkdownFile.d.ts.map +1 -0
- package/esm/dsl/MarkdownFile.js +58 -0
- package/esm/dsl/model/ModelDriver.d.ts +3 -1
- package/esm/dsl/model/ModelDriver.d.ts.map +1 -1
- package/esm/dsl/model/ModelDriver.js +29 -2
- package/esm/dsl/model/toModelEntry.d.ts +24 -14
- package/esm/dsl/model/toModelEntry.d.ts.map +1 -1
- package/esm/dsl/model/toModelEntry.js +7 -3
- package/esm/dsl/model/toModelProjectionBase.d.ts +31 -18
- package/esm/dsl/model/toModelProjectionBase.d.ts.map +1 -1
- package/esm/dsl/model/toModelProjectionBase.js +3 -3
- package/esm/dsl/model/types.d.ts +23 -27
- package/esm/dsl/model/types.d.ts.map +1 -1
- package/esm/dsl/operation/gql/GqlOperationDriver.d.ts +3 -1
- package/esm/dsl/operation/gql/GqlOperationDriver.d.ts.map +1 -1
- package/esm/dsl/operation/gql/GqlOperationDriver.js +12 -9
- package/esm/dsl/operation/gql/toGqlOperationEntry.d.ts +20 -15
- package/esm/dsl/operation/gql/toGqlOperationEntry.d.ts.map +1 -1
- package/esm/dsl/operation/gql/toGqlOperationEntry.js +3 -25
- package/esm/dsl/operation/gql/toGqlOperationProjectionBase.d.ts +11 -10
- package/esm/dsl/operation/gql/toGqlOperationProjectionBase.d.ts.map +1 -1
- package/esm/dsl/operation/gql/types.d.ts +1 -28
- package/esm/dsl/operation/gql/types.d.ts.map +1 -1
- package/esm/dsl/operation/oas/OasOperationDriver.d.ts +3 -1
- package/esm/dsl/operation/oas/OasOperationDriver.d.ts.map +1 -1
- package/esm/dsl/operation/oas/OasOperationDriver.js +12 -9
- package/esm/dsl/operation/oas/toOasOperationEntry.d.ts +21 -17
- package/esm/dsl/operation/oas/toOasOperationEntry.d.ts.map +1 -1
- package/esm/dsl/operation/oas/toOasOperationEntry.js +3 -32
- package/esm/dsl/operation/oas/toOasOperationProjectionBase.d.ts +11 -10
- package/esm/dsl/operation/oas/toOasOperationProjectionBase.d.ts.map +1 -1
- package/esm/dsl/operation/oas/types.d.ts +1 -38
- package/esm/dsl/operation/oas/types.d.ts.map +1 -1
- package/esm/dsl/webhook/WebhookDriver.d.ts +3 -1
- package/esm/dsl/webhook/WebhookDriver.d.ts.map +1 -1
- package/esm/dsl/webhook/WebhookDriver.js +12 -9
- package/esm/dsl/webhook/toWebhookEntry.d.ts +21 -16
- package/esm/dsl/webhook/toWebhookEntry.d.ts.map +1 -1
- package/esm/dsl/webhook/toWebhookEntry.js +3 -32
- package/esm/dsl/webhook/toWebhookProjectionBase.d.ts +11 -10
- package/esm/dsl/webhook/toWebhookProjectionBase.d.ts.map +1 -1
- package/esm/dsl/webhook/types.d.ts +1 -36
- package/esm/dsl/webhook/types.d.ts.map +1 -1
- package/esm/enrichments/toEnrichmentDescriptor.d.ts +72 -27
- package/esm/enrichments/toEnrichmentDescriptor.d.ts.map +1 -1
- package/esm/enrichments/toEnrichmentDescriptor.js +57 -31
- package/esm/enrichments/validateConfig.d.ts +60 -0
- package/esm/enrichments/validateConfig.d.ts.map +1 -0
- package/esm/enrichments/validateConfig.js +176 -0
- package/esm/helpers/isImported.js +1 -1
- package/esm/helpers/toResolvedArtifactPath.js +1 -1
- package/esm/mod.d.ts +8 -1
- package/esm/mod.d.ts.map +1 -1
- package/esm/mod.js +8 -1
- package/esm/oas/array/Array.d.ts +2 -0
- package/esm/oas/array/Array.d.ts.map +1 -1
- package/esm/oas/array/Array.js +4 -0
- package/esm/oas/boolean/Boolean.d.ts +3 -1
- package/esm/oas/boolean/Boolean.d.ts.map +1 -1
- package/esm/oas/boolean/Boolean.js +4 -0
- package/esm/oas/components/Components.d.ts +5 -0
- package/esm/oas/components/Components.d.ts.map +1 -1
- package/esm/oas/components/Components.js +6 -1
- package/esm/oas/integer/Integer.d.ts +3 -1
- package/esm/oas/integer/Integer.d.ts.map +1 -1
- package/esm/oas/integer/Integer.js +4 -0
- package/esm/oas/link/Link.d.ts +68 -0
- package/esm/oas/link/Link.d.ts.map +1 -0
- package/esm/oas/link/Link.js +107 -0
- package/esm/oas/number/Number.d.ts +3 -1
- package/esm/oas/number/Number.d.ts.map +1 -1
- package/esm/oas/number/Number.js +4 -0
- package/esm/oas/object/Object.d.ts +9 -0
- package/esm/oas/object/Object.d.ts.map +1 -1
- package/esm/oas/object/Object.js +14 -0
- package/esm/oas/operation/Operation.d.ts +15 -0
- package/esm/oas/operation/Operation.d.ts.map +1 -1
- package/esm/oas/operation/Operation.js +33 -0
- package/esm/oas/ref/Ref.d.ts +23 -1
- package/esm/oas/ref/Ref.d.ts.map +1 -1
- package/esm/oas/ref/Ref.js +32 -0
- package/esm/oas/ref/ref-types.d.ts +18 -1
- package/esm/oas/ref/ref-types.d.ts.map +1 -1
- package/esm/oas/ref/ref-types.js +12 -1
- package/esm/oas/response/Response.d.ts +4 -0
- package/esm/oas/response/Response.d.ts.map +1 -1
- package/esm/oas/response/Response.js +7 -0
- package/esm/oas/schemaPath/traverseSchema.d.ts +31 -0
- package/esm/oas/schemaPath/traverseSchema.d.ts.map +1 -0
- package/esm/oas/schemaPath/traverseSchema.js +113 -0
- package/esm/oas/string/String.d.ts +3 -1
- package/esm/oas/string/String.d.ts.map +1 -1
- package/esm/oas/string/String.js +4 -0
- package/esm/oas/union/Union.d.ts +9 -0
- package/esm/oas/union/Union.d.ts.map +1 -1
- package/esm/oas/union/Union.js +14 -0
- package/esm/oas/unknown/Unknown.d.ts +3 -1
- package/esm/oas/unknown/Unknown.d.ts.map +1 -1
- package/esm/oas/unknown/Unknown.js +4 -0
- package/esm/parse/v3-0/_merge-all-of/decompose-union.d.ts.map +1 -1
- package/esm/parse/v3-0/_merge-all-of/decompose-union.js +8 -12
- package/esm/parse/v3-0/_merge-all-of/merge-union.d.ts.map +1 -1
- package/esm/parse/v3-0/_merge-all-of/merge-union.js +0 -8
- package/esm/parse/v3-0/components/toComponentsV3.d.ts.map +1 -1
- package/esm/parse/v3-0/components/toComponentsV3.js +3 -1
- package/esm/parse/v3-0/link/toLinksV3.d.ts +17 -0
- package/esm/parse/v3-0/link/toLinksV3.d.ts.map +1 -0
- package/esm/parse/v3-0/link/toLinksV3.js +40 -0
- package/esm/parse/v3-0/object/toObject.d.ts.map +1 -1
- package/esm/parse/v3-0/object/toObject.js +3 -1
- package/esm/parse/v3-0/response/toResponseV3.d.ts.map +1 -1
- package/esm/parse/v3-0/response/toResponseV3.js +4 -1
- package/esm/parse/v3-0/schema/toSchemasV3.d.ts.map +1 -1
- package/esm/parse/v3-0/schema/toSchemasV3.js +8 -0
- package/esm/parse/v3-0/union/toUnion.d.ts.map +1 -1
- package/esm/parse/v3-0/union/toUnion.js +3 -1
- package/esm/parse/v3-1/_merge-all-of/decompose-union.d.ts.map +1 -1
- package/esm/parse/v3-1/_merge-all-of/decompose-union.js +8 -12
- package/esm/parse/v3-1/_merge-all-of/merge-union.d.ts.map +1 -1
- package/esm/parse/v3-1/_merge-all-of/merge-union.js +0 -8
- package/esm/parse/v3-1/components/toComponentsV3.d.ts.map +1 -1
- package/esm/parse/v3-1/components/toComponentsV3.js +3 -1
- package/esm/parse/v3-1/link/toLinksV3.d.ts +17 -0
- package/esm/parse/v3-1/link/toLinksV3.d.ts.map +1 -0
- package/esm/parse/v3-1/link/toLinksV3.js +40 -0
- package/esm/parse/v3-1/object/toObject.d.ts.map +1 -1
- package/esm/parse/v3-1/object/toObject.js +3 -1
- package/esm/parse/v3-1/response/toResponseV3.d.ts.map +1 -1
- package/esm/parse/v3-1/response/toResponseV3.js +4 -1
- package/esm/parse/v3-1/schema/toSchemasV3.d.ts.map +1 -1
- package/esm/parse/v3-1/schema/toSchemasV3.js +8 -0
- package/esm/parse/v3-1/union/toUnion.d.ts.map +1 -1
- package/esm/parse/v3-1/union/toUnion.js +3 -1
- package/esm/run/toArtifacts.d.ts +8 -1
- package/esm/run/toArtifacts.d.ts.map +1 -1
- package/esm/run/toArtifacts.js +5 -5
- package/esm/run/toInspection.d.ts +8 -0
- package/esm/run/toInspection.d.ts.map +1 -0
- package/esm/run/toInspection.js +78 -0
- package/esm/types/Enrichments.d.ts +19 -8
- package/esm/types/Enrichments.d.ts.map +1 -1
- package/esm/types/Enrichments.js +4 -3
- package/esm/types/GeneratorType.d.ts +5 -5
- package/esm/types/GeneratorType.d.ts.map +1 -1
- package/esm/types/Manifest.d.ts +1 -2
- package/esm/types/Manifest.d.ts.map +1 -1
- package/esm/types/Manifest.js +1 -2
- package/esm/types/ModuleSelect.d.ts +81 -0
- package/esm/types/ModuleSelect.d.ts.map +1 -0
- package/esm/types/ModuleSelect.js +63 -0
- package/esm/types/Preview.d.ts +4 -27
- package/esm/types/Preview.d.ts.map +1 -1
- package/esm/types/Preview.js +4 -25
- package/esm/types/SchemaPath.d.ts +17 -0
- package/esm/types/SchemaPath.d.ts.map +1 -0
- package/esm/types/SchemaPath.js +9 -0
- package/esm/types/Settings.d.ts +24 -3
- package/esm/types/Settings.d.ts.map +1 -1
- package/esm/types/Settings.js +20 -13
- package/esm/types/SkmtcDocument.d.ts +1 -1
- package/esm/types/SupportedSubjects.d.ts +1 -1
- package/package.json +1 -1
- package/script/anchors/buildSidecar.js +1 -1
- package/script/anchors/postPass.d.ts +1 -1
- package/script/anchors/postPass.js +1 -1
- package/script/anchors/sidecar.d.ts +2 -2
- package/script/anchors/sidecar.js +1 -1
- package/script/context/CoreContext.d.ts +7 -1
- package/script/context/CoreContext.d.ts.map +1 -1
- package/script/context/CoreContext.js +17 -11
- package/script/context/GenerateContext.d.ts +28 -7
- package/script/context/GenerateContext.d.ts.map +1 -1
- package/script/context/GenerateContext.js +164 -86
- package/script/context/ParseContext.d.ts +16 -0
- package/script/context/ParseContext.d.ts.map +1 -1
- package/script/context/ParseContext.js +16 -0
- package/script/context/ParseIssue.d.ts +1 -1
- package/script/context/RenderContext.d.ts +2 -6
- package/script/context/RenderContext.d.ts.map +1 -1
- package/script/context/RenderContext.js +4 -14
- package/script/context/generateTypes.d.ts +35 -8
- package/script/context/generateTypes.d.ts.map +1 -1
- package/{esm/deps/jsr.io/@std/fs/1.0.23 → script/deps/jsr.io/@std/fs/1.0.24}/exists.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/internal/1.0.14/_os.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/internal/{1.0.13 → 1.0.14}/_os.js +7 -5
- package/script/deps/jsr.io/@std/internal/{1.0.13 → 1.0.14}/os.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/log/0.224.14/rotating_file_handler.js +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/assert_path.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/assert_path.js +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/constants.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/constants.js +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/from_file_url.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/from_file_url.js +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/normalize.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/normalize.js +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/normalize_string.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/normalize_string.js +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/join.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/join.js +2 -2
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/normalize.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/normalize.js +2 -2
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/_util.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/_util.js +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/from_file_url.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/from_file_url.js +1 -1
- package/{esm/deps/jsr.io/@std/path/1.1.4 → script/deps/jsr.io/@std/path/1.1.6}/posix/join.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/join.js +1 -1
- package/{esm/deps/jsr.io/@std/path/1.1.4 → script/deps/jsr.io/@std/path/1.1.6}/posix/normalize.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/normalize.js +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/_util.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/_util.js +1 -1
- package/{esm/deps/jsr.io/@std/path/1.1.4 → script/deps/jsr.io/@std/path/1.1.6}/windows/from_file_url.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/from_file_url.js +1 -1
- package/{esm/deps/jsr.io/@std/path/1.1.4 → script/deps/jsr.io/@std/path/1.1.6}/windows/join.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/join.js +1 -1
- package/{esm/deps/jsr.io/@std/path/1.1.4 → script/deps/jsr.io/@std/path/1.1.6}/windows/normalize.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/normalize.js +1 -1
- package/script/dsl/CodeFileBase.d.ts +57 -24
- package/script/dsl/CodeFileBase.d.ts.map +1 -1
- package/script/dsl/CodeFileBase.js +37 -54
- package/script/dsl/FileBase.d.ts +21 -25
- package/script/dsl/FileBase.d.ts.map +1 -1
- package/script/dsl/FileBase.js +20 -29
- package/script/dsl/GeneratorKeys.d.ts +19 -19
- package/script/dsl/GeneratorKeys.d.ts.map +1 -1
- package/script/dsl/GeneratorKeys.js +6 -5
- package/script/dsl/IdentifierBase.d.ts +19 -5
- package/script/dsl/IdentifierBase.d.ts.map +1 -1
- package/script/dsl/IdentifierBase.js +21 -5
- package/script/dsl/IdentifierType.d.ts +8 -14
- package/script/dsl/IdentifierType.d.ts.map +1 -1
- package/script/dsl/Lang.d.ts +18 -38
- package/script/dsl/Lang.d.ts.map +1 -1
- package/script/dsl/MarkdownFile.d.ts +55 -0
- package/script/dsl/MarkdownFile.d.ts.map +1 -0
- package/script/dsl/MarkdownFile.js +62 -0
- package/script/dsl/model/ModelDriver.d.ts +3 -1
- package/script/dsl/model/ModelDriver.d.ts.map +1 -1
- package/script/dsl/model/ModelDriver.js +29 -2
- package/script/dsl/model/toModelEntry.d.ts +24 -14
- package/script/dsl/model/toModelEntry.d.ts.map +1 -1
- package/script/dsl/model/toModelEntry.js +7 -3
- package/script/dsl/model/toModelProjectionBase.d.ts +31 -18
- package/script/dsl/model/toModelProjectionBase.d.ts.map +1 -1
- package/script/dsl/model/toModelProjectionBase.js +3 -3
- package/script/dsl/model/types.d.ts +23 -27
- package/script/dsl/model/types.d.ts.map +1 -1
- package/script/dsl/operation/gql/GqlOperationDriver.d.ts +3 -1
- package/script/dsl/operation/gql/GqlOperationDriver.d.ts.map +1 -1
- package/script/dsl/operation/gql/GqlOperationDriver.js +12 -9
- package/script/dsl/operation/gql/toGqlOperationEntry.d.ts +20 -15
- package/script/dsl/operation/gql/toGqlOperationEntry.d.ts.map +1 -1
- package/script/dsl/operation/gql/toGqlOperationEntry.js +3 -61
- package/script/dsl/operation/gql/toGqlOperationProjectionBase.d.ts +11 -10
- package/script/dsl/operation/gql/toGqlOperationProjectionBase.d.ts.map +1 -1
- package/script/dsl/operation/gql/types.d.ts +1 -28
- package/script/dsl/operation/gql/types.d.ts.map +1 -1
- package/script/dsl/operation/oas/OasOperationDriver.d.ts +3 -1
- package/script/dsl/operation/oas/OasOperationDriver.d.ts.map +1 -1
- package/script/dsl/operation/oas/OasOperationDriver.js +12 -9
- package/script/dsl/operation/oas/toOasOperationEntry.d.ts +21 -17
- package/script/dsl/operation/oas/toOasOperationEntry.d.ts.map +1 -1
- package/script/dsl/operation/oas/toOasOperationEntry.js +3 -68
- package/script/dsl/operation/oas/toOasOperationProjectionBase.d.ts +11 -10
- package/script/dsl/operation/oas/toOasOperationProjectionBase.d.ts.map +1 -1
- package/script/dsl/operation/oas/types.d.ts +1 -38
- package/script/dsl/operation/oas/types.d.ts.map +1 -1
- package/script/dsl/webhook/WebhookDriver.d.ts +3 -1
- package/script/dsl/webhook/WebhookDriver.d.ts.map +1 -1
- package/script/dsl/webhook/WebhookDriver.js +12 -9
- package/script/dsl/webhook/toWebhookEntry.d.ts +21 -16
- package/script/dsl/webhook/toWebhookEntry.d.ts.map +1 -1
- package/script/dsl/webhook/toWebhookEntry.js +3 -68
- package/script/dsl/webhook/toWebhookProjectionBase.d.ts +11 -10
- package/script/dsl/webhook/toWebhookProjectionBase.d.ts.map +1 -1
- package/script/dsl/webhook/types.d.ts +1 -36
- package/script/dsl/webhook/types.d.ts.map +1 -1
- package/script/enrichments/toEnrichmentDescriptor.d.ts +72 -27
- package/script/enrichments/toEnrichmentDescriptor.d.ts.map +1 -1
- package/script/enrichments/toEnrichmentDescriptor.js +57 -31
- package/script/enrichments/validateConfig.d.ts +60 -0
- package/script/enrichments/validateConfig.d.ts.map +1 -0
- package/script/enrichments/validateConfig.js +213 -0
- package/script/helpers/isImported.js +1 -1
- package/script/helpers/toResolvedArtifactPath.js +1 -1
- package/script/mod.d.ts +8 -1
- package/script/mod.d.ts.map +1 -1
- package/script/mod.js +8 -1
- package/script/oas/array/Array.d.ts +2 -0
- package/script/oas/array/Array.d.ts.map +1 -1
- package/script/oas/array/Array.js +4 -0
- package/script/oas/boolean/Boolean.d.ts +3 -1
- package/script/oas/boolean/Boolean.d.ts.map +1 -1
- package/script/oas/boolean/Boolean.js +4 -0
- package/script/oas/components/Components.d.ts +5 -0
- package/script/oas/components/Components.d.ts.map +1 -1
- package/script/oas/components/Components.js +6 -1
- package/script/oas/integer/Integer.d.ts +3 -1
- package/script/oas/integer/Integer.d.ts.map +1 -1
- package/script/oas/integer/Integer.js +4 -0
- package/script/oas/link/Link.d.ts +68 -0
- package/script/oas/link/Link.d.ts.map +1 -0
- package/script/oas/link/Link.js +111 -0
- package/script/oas/number/Number.d.ts +3 -1
- package/script/oas/number/Number.d.ts.map +1 -1
- package/script/oas/number/Number.js +4 -0
- package/script/oas/object/Object.d.ts +9 -0
- package/script/oas/object/Object.d.ts.map +1 -1
- package/script/oas/object/Object.js +14 -0
- package/script/oas/operation/Operation.d.ts +15 -0
- package/script/oas/operation/Operation.d.ts.map +1 -1
- package/script/oas/operation/Operation.js +33 -0
- package/script/oas/ref/Ref.d.ts +23 -1
- package/script/oas/ref/Ref.d.ts.map +1 -1
- package/script/oas/ref/Ref.js +32 -0
- package/script/oas/ref/ref-types.d.ts +18 -1
- package/script/oas/ref/ref-types.d.ts.map +1 -1
- package/script/oas/ref/ref-types.js +13 -2
- package/script/oas/response/Response.d.ts +4 -0
- package/script/oas/response/Response.d.ts.map +1 -1
- package/script/oas/response/Response.js +7 -0
- package/script/oas/schemaPath/traverseSchema.d.ts +31 -0
- package/script/oas/schemaPath/traverseSchema.d.ts.map +1 -0
- package/script/oas/schemaPath/traverseSchema.js +117 -0
- package/script/oas/string/String.d.ts +3 -1
- package/script/oas/string/String.d.ts.map +1 -1
- package/script/oas/string/String.js +4 -0
- package/script/oas/union/Union.d.ts +9 -0
- package/script/oas/union/Union.d.ts.map +1 -1
- package/script/oas/union/Union.js +14 -0
- package/script/oas/unknown/Unknown.d.ts +3 -1
- package/script/oas/unknown/Unknown.d.ts.map +1 -1
- package/script/oas/unknown/Unknown.js +4 -0
- package/script/parse/v3-0/_merge-all-of/decompose-union.d.ts.map +1 -1
- package/script/parse/v3-0/_merge-all-of/decompose-union.js +8 -12
- package/script/parse/v3-0/_merge-all-of/merge-union.d.ts.map +1 -1
- package/script/parse/v3-0/_merge-all-of/merge-union.js +0 -8
- package/script/parse/v3-0/components/toComponentsV3.d.ts.map +1 -1
- package/script/parse/v3-0/components/toComponentsV3.js +3 -1
- package/script/parse/v3-0/link/toLinksV3.d.ts +17 -0
- package/script/parse/v3-0/link/toLinksV3.d.ts.map +1 -0
- package/script/parse/v3-0/link/toLinksV3.js +44 -0
- package/script/parse/v3-0/object/toObject.d.ts.map +1 -1
- package/script/parse/v3-0/object/toObject.js +3 -1
- package/script/parse/v3-0/response/toResponseV3.d.ts.map +1 -1
- package/script/parse/v3-0/response/toResponseV3.js +4 -1
- package/script/parse/v3-0/schema/toSchemasV3.d.ts.map +1 -1
- package/script/parse/v3-0/schema/toSchemasV3.js +8 -0
- package/script/parse/v3-0/union/toUnion.d.ts.map +1 -1
- package/script/parse/v3-0/union/toUnion.js +3 -1
- package/script/parse/v3-1/_merge-all-of/decompose-union.d.ts.map +1 -1
- package/script/parse/v3-1/_merge-all-of/decompose-union.js +8 -12
- package/script/parse/v3-1/_merge-all-of/merge-union.d.ts.map +1 -1
- package/script/parse/v3-1/_merge-all-of/merge-union.js +0 -8
- package/script/parse/v3-1/components/toComponentsV3.d.ts.map +1 -1
- package/script/parse/v3-1/components/toComponentsV3.js +3 -1
- package/script/parse/v3-1/link/toLinksV3.d.ts +17 -0
- package/script/parse/v3-1/link/toLinksV3.d.ts.map +1 -0
- package/script/parse/v3-1/link/toLinksV3.js +44 -0
- package/script/parse/v3-1/object/toObject.d.ts.map +1 -1
- package/script/parse/v3-1/object/toObject.js +3 -1
- package/script/parse/v3-1/response/toResponseV3.d.ts.map +1 -1
- package/script/parse/v3-1/response/toResponseV3.js +4 -1
- package/script/parse/v3-1/schema/toSchemasV3.d.ts.map +1 -1
- package/script/parse/v3-1/schema/toSchemasV3.js +8 -0
- package/script/parse/v3-1/union/toUnion.d.ts.map +1 -1
- package/script/parse/v3-1/union/toUnion.js +3 -1
- package/script/run/toArtifacts.d.ts +8 -1
- package/script/run/toArtifacts.d.ts.map +1 -1
- package/script/run/toArtifacts.js +5 -5
- package/script/run/toInspection.d.ts +8 -0
- package/script/run/toInspection.d.ts.map +1 -0
- package/script/run/toInspection.js +82 -0
- package/script/types/Enrichments.d.ts +19 -8
- package/script/types/Enrichments.d.ts.map +1 -1
- package/script/types/Enrichments.js +5 -4
- package/script/types/GeneratorType.d.ts +5 -5
- package/script/types/GeneratorType.d.ts.map +1 -1
- package/script/types/Manifest.d.ts +1 -2
- package/script/types/Manifest.d.ts.map +1 -1
- package/script/types/Manifest.js +0 -1
- package/script/types/ModuleSelect.d.ts +81 -0
- package/script/types/ModuleSelect.d.ts.map +1 -0
- package/script/types/ModuleSelect.js +101 -0
- package/script/types/Preview.d.ts +4 -27
- package/script/types/Preview.d.ts.map +1 -1
- package/script/types/Preview.js +5 -26
- package/script/types/SchemaPath.d.ts +17 -0
- package/script/types/SchemaPath.d.ts.map +1 -0
- package/script/types/{AccessorPath.js → SchemaPath.js} +7 -7
- package/script/types/Settings.d.ts +24 -3
- package/script/types/Settings.d.ts.map +1 -1
- package/script/types/Settings.js +17 -10
- package/script/types/SkmtcDocument.d.ts +1 -1
- package/script/types/SupportedSubjects.d.ts +1 -1
- package/esm/deps/jsr.io/@std/internal/1.0.13/_os.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.13/_os.js +0 -12
- package/esm/types/AccessorPath.d.ts +0 -17
- package/esm/types/AccessorPath.d.ts.map +0 -1
- package/esm/types/AccessorPath.js +0 -9
- package/script/deps/jsr.io/@std/internal/1.0.13/_os.d.ts.map +0 -1
- package/script/types/AccessorPath.d.ts +0 -17
- package/script/types/AccessorPath.d.ts.map +0 -1
- /package/esm/deps/jsr.io/@std/fs/{1.0.23 → 1.0.24}/exists.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.23 → 1.0.24}/exists.js +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.13 → 1.0.14}/_os.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.13 → 1.0.14}/os.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.13 → 1.0.14}/os.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/assert_path.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/constants.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/from_file_url.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/normalize.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/normalize_string.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/join.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/normalize.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/_util.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/from_file_url.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/join.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/normalize.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/_util.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/from_file_url.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/join.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/normalize.d.ts +0 -0
- /package/script/deps/jsr.io/@std/fs/{1.0.23 → 1.0.24}/exists.d.ts +0 -0
- /package/script/deps/jsr.io/@std/fs/{1.0.23 → 1.0.24}/exists.js +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.13 → 1.0.14}/_os.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.13 → 1.0.14}/os.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.13 → 1.0.14}/os.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/assert_path.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/constants.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/from_file_url.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/normalize.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/normalize_string.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/join.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/normalize.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/_util.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/from_file_url.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/join.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/normalize.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/_util.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/from_file_url.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/join.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/normalize.d.ts +0 -0
package/esm/types/Settings.js
CHANGED
|
@@ -49,15 +49,15 @@
|
|
|
49
49
|
* @module Settings
|
|
50
50
|
*/
|
|
51
51
|
import "../_dnt.polyfills.js";
|
|
52
|
-
import { generatorEnrichments } from
|
|
53
|
-
import * as v from
|
|
54
|
-
import { method } from
|
|
52
|
+
import { generatorEnrichments, } from "./Enrichments.js";
|
|
53
|
+
import * as v from "valibot";
|
|
54
|
+
import { method } from "./Method.js";
|
|
55
55
|
/**
|
|
56
56
|
* Whether a relative path contains a `..` parent-reference segment.
|
|
57
57
|
* `..` is a parent reference only as a whole path segment — a
|
|
58
58
|
* directory name that merely contains dots is not flagged.
|
|
59
59
|
*/
|
|
60
|
-
const hasParentSegment = (path) => path.split(/[/\\]/).some(segment => segment ===
|
|
60
|
+
const hasParentSegment = (path) => path.split(/[/\\]/).some((segment) => segment === "..");
|
|
61
61
|
/**
|
|
62
62
|
* Valibot schema for {@link ModulePackage}.
|
|
63
63
|
*
|
|
@@ -67,10 +67,10 @@ const hasParentSegment = (path) => path.split(/[/\\]/).some(segment => segment =
|
|
|
67
67
|
* that otherwise misplaces every artifact silently.
|
|
68
68
|
*/
|
|
69
69
|
export const modulePackage = v.object({
|
|
70
|
-
rootPath: v.pipe(v.string(), v.check(rootPath => !hasParentSegment(rootPath), 'package rootPath must be a forward path with no ".." segments — ' +
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
moduleName: v.optional(v.string())
|
|
70
|
+
rootPath: v.pipe(v.string(), v.check((rootPath) => !hasParentSegment(rootPath), 'package rootPath must be a forward path with no ".." segments — ' +
|
|
71
|
+
"set client.json basePath to a common ancestor of every package " +
|
|
72
|
+
"so each rootPath is written forward from it")),
|
|
73
|
+
moduleName: v.optional(v.string()),
|
|
74
74
|
});
|
|
75
75
|
/**
|
|
76
76
|
* Valibot schema for validating skip paths configuration.
|
|
@@ -100,7 +100,11 @@ export const skipModelRefs = v.record(v.string(), v.array(v.string()));
|
|
|
100
100
|
* models and variants by generator.
|
|
101
101
|
*/
|
|
102
102
|
export const skipModels = v.record(v.string(), skipModelRefs);
|
|
103
|
-
const skip = v.union([
|
|
103
|
+
const skip = v.union([
|
|
104
|
+
skipOperations,
|
|
105
|
+
skipModels,
|
|
106
|
+
v.string(),
|
|
107
|
+
]);
|
|
104
108
|
/**
|
|
105
109
|
* Valibot schema for {@link IncludePaths}. Structurally identical to
|
|
106
110
|
* {@link skipPaths} — both map a path to a `method → variant[]` record
|
|
@@ -128,7 +132,7 @@ export const includeModels = v.record(v.string(), includeModelRefs);
|
|
|
128
132
|
const include = v.union([
|
|
129
133
|
includeOperations,
|
|
130
134
|
includeModels,
|
|
131
|
-
v.string()
|
|
135
|
+
v.string(),
|
|
132
136
|
]);
|
|
133
137
|
/**
|
|
134
138
|
* Valibot schema for validating client settings configuration.
|
|
@@ -143,7 +147,7 @@ const include = v.union([
|
|
|
143
147
|
*/
|
|
144
148
|
export const anchorsSettings = v.object({
|
|
145
149
|
enabled: v.boolean(),
|
|
146
|
-
out: v.optional(v.string())
|
|
150
|
+
out: v.optional(v.string()),
|
|
147
151
|
});
|
|
148
152
|
export const clientSettings = v.object({
|
|
149
153
|
basePath: v.optional(v.string()),
|
|
@@ -152,7 +156,8 @@ export const clientSettings = v.object({
|
|
|
152
156
|
enrichments: v.optional(generatorEnrichments),
|
|
153
157
|
include: v.optional(v.array(include)),
|
|
154
158
|
skip: v.optional(v.array(skip)),
|
|
155
|
-
anchors: v.optional(anchorsSettings)
|
|
159
|
+
anchors: v.optional(anchorsSettings),
|
|
160
|
+
inputDirs: v.optional(v.array(v.string())),
|
|
156
161
|
});
|
|
157
162
|
/**
|
|
158
163
|
* Valibot schema for validating SKMTC client configuration.
|
|
@@ -163,6 +168,8 @@ export const clientSettings = v.object({
|
|
|
163
168
|
export const skmtcClientConfig = v.object({
|
|
164
169
|
serverUrl: v.optional(v.string()),
|
|
165
170
|
projectKey: v.optional(v.string()),
|
|
171
|
+
project: v.optional(v.string()),
|
|
172
|
+
api: v.optional(v.string()),
|
|
166
173
|
source: v.optional(v.string()),
|
|
167
|
-
settings: clientSettings
|
|
174
|
+
settings: clientSettings,
|
|
168
175
|
});
|
|
@@ -55,7 +55,7 @@ export declare const toGqlParsedDocument: (value: GqlDocument) => SkmtcParsedDoc
|
|
|
55
55
|
/**
|
|
56
56
|
* Discriminated union representing a *raw* source document accepted by
|
|
57
57
|
* `CoreContext.toArtifacts`. This is the public input shape — callers
|
|
58
|
-
* supply the schema as the protocol-specific source
|
|
58
|
+
* supply the schema as the protocol-specific source type, and the
|
|
59
59
|
* pipeline runs the protocol-appropriate parser before handing the
|
|
60
60
|
* post-parse {@link SkmtcParsedDocument} to the generate phase.
|
|
61
61
|
*
|
|
@@ -22,7 +22,7 @@ export type SupportedGqlOperation = {
|
|
|
22
22
|
rootKind: string;
|
|
23
23
|
fieldName: string;
|
|
24
24
|
};
|
|
25
|
-
/** What one generator supports, discriminated by its subject
|
|
25
|
+
/** What one generator supports, discriminated by its subject type. */
|
|
26
26
|
export type GeneratorSupport = {
|
|
27
27
|
type: 'oasOperation';
|
|
28
28
|
operations: SupportedOasOperation[];
|
package/package.json
CHANGED
|
@@ -45,7 +45,7 @@ const buildSidecar = ({ filePath, schemaSrc, parser, anchors }) => {
|
|
|
45
45
|
const internRegistry = (() => {
|
|
46
46
|
const cache = new Map();
|
|
47
47
|
return (entry) => {
|
|
48
|
-
const key = `${entry.
|
|
48
|
+
const key = `${entry.type}|${entry.host}`;
|
|
49
49
|
const hit = cache.get(key);
|
|
50
50
|
if (hit !== undefined)
|
|
51
51
|
return hit;
|
|
@@ -17,7 +17,7 @@ import type { Span } from './types.js';
|
|
|
17
17
|
* Lookup contract for per-generator metadata. Phase D's CLI builds
|
|
18
18
|
* this once from the project's lockfile + `deno.json` import map and
|
|
19
19
|
* passes it in. Generators not in the map fall back to `version: ''`
|
|
20
|
-
* + `registry: { host: 'jsr.io',
|
|
20
|
+
* + `registry: { host: 'jsr.io', type: 'jsr' }` — the sidecar still
|
|
21
21
|
* builds, just with degraded provenance.
|
|
22
22
|
*/
|
|
23
23
|
export type GeneratorMetaLookup = (generatorId: string) => {
|
|
@@ -16,7 +16,7 @@ const attribute_js_1 = require("./attribute.js");
|
|
|
16
16
|
const buildSidecar_js_1 = require("./buildSidecar.js");
|
|
17
17
|
const defaultLookup = () => ({
|
|
18
18
|
version: '',
|
|
19
|
-
registry: { host: 'jsr.io',
|
|
19
|
+
registry: { host: 'jsr.io', type: 'jsr' }
|
|
20
20
|
});
|
|
21
21
|
/**
|
|
22
22
|
* Run the post-render attribution pass for one file and return the
|
|
@@ -16,7 +16,7 @@ import * as v from 'valibot';
|
|
|
16
16
|
*/
|
|
17
17
|
export declare const registryEntry: v.ObjectSchema<{
|
|
18
18
|
readonly host: v.StringSchema<undefined>;
|
|
19
|
-
readonly
|
|
19
|
+
readonly type: v.UnionSchema<[v.LiteralSchema<"jsr", undefined>, v.LiteralSchema<"jsr-private", undefined>], undefined>;
|
|
20
20
|
}, undefined>;
|
|
21
21
|
/**
|
|
22
22
|
* Generator pool entry. `r` indexes into the registry pool so the
|
|
@@ -61,7 +61,7 @@ export declare const sidecarSchema: v.ObjectSchema<{
|
|
|
61
61
|
readonly parser: v.StringSchema<undefined>;
|
|
62
62
|
readonly R: v.ArraySchema<v.ObjectSchema<{
|
|
63
63
|
readonly host: v.StringSchema<undefined>;
|
|
64
|
-
readonly
|
|
64
|
+
readonly type: v.UnionSchema<[v.LiteralSchema<"jsr", undefined>, v.LiteralSchema<"jsr-private", undefined>], undefined>;
|
|
65
65
|
}, undefined>, undefined>;
|
|
66
66
|
readonly G: v.ArraySchema<v.ObjectSchema<{
|
|
67
67
|
readonly name: v.StringSchema<undefined>;
|
|
@@ -52,7 +52,7 @@ const v = __importStar(require("valibot"));
|
|
|
52
52
|
*/
|
|
53
53
|
exports.registryEntry = v.object({
|
|
54
54
|
host: v.string(),
|
|
55
|
-
|
|
55
|
+
type: v.union([v.literal('jsr'), v.literal('jsr-private')])
|
|
56
56
|
});
|
|
57
57
|
/**
|
|
58
58
|
* Generator pool entry. `r` indexes into the registry pool so the
|
|
@@ -99,6 +99,12 @@ export type ToArtifactsArgs = {
|
|
|
99
99
|
* {@link AttributionState}.
|
|
100
100
|
*/
|
|
101
101
|
attribution?: AttributionState;
|
|
102
|
+
/**
|
|
103
|
+
* When `true`, serialize the live `inspectedFiles` graph into the result's
|
|
104
|
+
* `inspection` field (see {@link toInspection}). Off by default; the pipeline
|
|
105
|
+
* is otherwise untouched.
|
|
106
|
+
*/
|
|
107
|
+
inspect?: boolean;
|
|
102
108
|
};
|
|
103
109
|
/**
|
|
104
110
|
* The main orchestration class for the SKMTC transformation pipeline.
|
|
@@ -276,7 +282,7 @@ export declare class CoreContext {
|
|
|
276
282
|
*
|
|
277
283
|
* @throws Will throw an error if any phase of the pipeline fails
|
|
278
284
|
*/
|
|
279
|
-
toArtifacts({ document, settings, toGeneratorConfigMap, stackTrail, attribution }: ToArtifactsArgs): ToArtifactsResult;
|
|
285
|
+
toArtifacts({ document, settings, toGeneratorConfigMap, stackTrail, attribution, inspect }: ToArtifactsArgs): ToArtifactsResult;
|
|
280
286
|
/**
|
|
281
287
|
* Capability-only sibling of {@link toArtifacts}: parse the document, then
|
|
282
288
|
* evaluate each generator's `isSupported` over its subjects — no transform,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoreContext.d.ts","sourceRoot":"","sources":["../../src/context/CoreContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"CoreContext.d.ts","sourceRoot":"","sources":["../../src/context/CoreContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAEtD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAChD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAErD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAEhD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAKjD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAA;AAEvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe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AAoB,EACpB,UAAU,EACX,EAAE,IAAI,CACL,eAAe,EACf,UAAU,GAAG,UAAU,GAAG,sBAAsB,GAAG,YAAY,CAChE,GAAG;QAAE,kBAAkB,EAAE,kBAAkB,CAAC;QAAC,WAAW,EAAE,UAAU,EAAE,CAAA;KAAE;IA0EzE;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,oBAAoB,CAAC,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,GAAG,IAAI;CAuBvE;AAED;;;;;GAKG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,sEAAsE;IACtE,SAAS,EAAE;QACT,yBAAyB;QACzB,SAAS,EAAE,MAAM,CAAA;QACjB,6CAA6C;QAC7C,QAAQ,EAAE,IAAI,CAAA;QACd,sBAAsB;QACtB,GAAG,EAAE,MAAM,CAAA;QACX,+BAA+B;QAC/B,IAAI,EAAE,OAAO,EAAE,CAAA;KAChB,CAAA;IACD,gEAAgE;IAChE,UAAU,EAAE,MAAM,CAAA;CACnB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,cAAc,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,EAAE,iBAAiB,GAAG,MAAM,CAmCnF;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,kBAAkB,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,EAAE,iBAAiB,GAAG,MAAM,CAQvF"}
|
|
@@ -49,12 +49,13 @@ exports.CoreContext = void 0;
|
|
|
49
49
|
exports.skmtcFormatter = skmtcFormatter;
|
|
50
50
|
exports.skmtcJsonFormatter = skmtcJsonFormatter;
|
|
51
51
|
const GenerateContext_js_1 = require("./GenerateContext.js");
|
|
52
|
+
const toInspection_js_1 = require("../run/toInspection.js");
|
|
52
53
|
const RenderContext_js_1 = require("./RenderContext.js");
|
|
53
54
|
const ParseContext_js_1 = require("./ParseContext.js");
|
|
54
55
|
const log = __importStar(require("../deps/jsr.io/@std/log/0.224.14/mod.js"));
|
|
55
56
|
const ResultsHandler_js_1 = require("./ResultsHandler.js");
|
|
56
57
|
const ResultsLog_js_1 = require("../helpers/ResultsLog.js");
|
|
57
|
-
const join_js_1 = require("../deps/jsr.io/@std/path/1.1.
|
|
58
|
+
const join_js_1 = require("../deps/jsr.io/@std/path/1.1.6/join.js");
|
|
58
59
|
const colors_js_1 = require("../deps/jsr.io/@std/fmt/1.0.10/colors.js");
|
|
59
60
|
/**
|
|
60
61
|
* The main orchestration class for the SKMTC transformation pipeline.
|
|
@@ -258,7 +259,7 @@ class CoreContext {
|
|
|
258
259
|
*
|
|
259
260
|
* @throws Will throw an error if any phase of the pipeline fails
|
|
260
261
|
*/
|
|
261
|
-
toArtifacts({ document, settings, toGeneratorConfigMap, stackTrail, attribution }) {
|
|
262
|
+
toArtifacts({ document, settings, toGeneratorConfigMap, stackTrail, attribution, inspect }) {
|
|
262
263
|
try {
|
|
263
264
|
// Parse phase: one unified ParseContext handles both protocols
|
|
264
265
|
// via its internal protocol-discriminated state. `parse()` returns
|
|
@@ -271,14 +272,21 @@ class CoreContext {
|
|
|
271
272
|
// reads this slot; RenderContext flips it around the one capturing
|
|
272
273
|
// render. One object per run wires the two phases together.
|
|
273
274
|
const captureChannel = { sink: undefined };
|
|
274
|
-
const { files, previews,
|
|
275
|
-
|
|
275
|
+
const { files, previews, inspection } = stackTrail.trace('generate', st => {
|
|
276
|
+
const generatePhase = __classPrivateFieldGet(this, _CoreContext_instances, "m", _CoreContext_setupGeneratePhase).call(this, {
|
|
276
277
|
toGeneratorConfigMap,
|
|
277
278
|
document: parsedDocument,
|
|
278
279
|
settings,
|
|
279
280
|
captureChannel
|
|
280
|
-
})
|
|
281
|
-
|
|
281
|
+
});
|
|
282
|
+
__classPrivateFieldSet(this, _CoreContext_phase, generatePhase, "f");
|
|
283
|
+
const generated = generatePhase.context.toArtifacts(st);
|
|
284
|
+
// Opt-in snapshot of the live files graph, taken after generate populates
|
|
285
|
+
// it and before render replaces the phase. Off unless `inspect` is set.
|
|
286
|
+
return {
|
|
287
|
+
...generated,
|
|
288
|
+
inspection: inspect ? (0, toInspection_js_1.toInspection)(generatePhase.context.inspectedFiles) : undefined
|
|
289
|
+
};
|
|
282
290
|
});
|
|
283
291
|
// Render is a single capture pass: it renders each File once and,
|
|
284
292
|
// when `attribution.postPass` is configured, simultaneously captures
|
|
@@ -290,7 +298,6 @@ class CoreContext {
|
|
|
290
298
|
__classPrivateFieldSet(this, _CoreContext_phase, __classPrivateFieldGet(this, _CoreContext_instances, "m", _CoreContext_setupRenderPhase).call(this, {
|
|
291
299
|
files,
|
|
292
300
|
previews,
|
|
293
|
-
mappings,
|
|
294
301
|
basePath: settings?.basePath,
|
|
295
302
|
attribution,
|
|
296
303
|
captureChannel
|
|
@@ -300,7 +307,8 @@ class CoreContext {
|
|
|
300
307
|
return {
|
|
301
308
|
...renderOutput,
|
|
302
309
|
results: __classPrivateFieldGet(this, _CoreContext_results, "f").toTree(),
|
|
303
|
-
parseIssues: phase.context.issues
|
|
310
|
+
parseIssues: phase.context.issues,
|
|
311
|
+
inspection
|
|
304
312
|
};
|
|
305
313
|
}
|
|
306
314
|
catch (error) {
|
|
@@ -334,7 +342,6 @@ class CoreContext {
|
|
|
334
342
|
artifacts: {},
|
|
335
343
|
files: {},
|
|
336
344
|
previews: {},
|
|
337
|
-
mappings: {},
|
|
338
345
|
results: __classPrivateFieldGet(this, _CoreContext_results, "f").toTree(),
|
|
339
346
|
parseIssues: [...priorIssues, fatalIssue]
|
|
340
347
|
};
|
|
@@ -524,11 +531,10 @@ _CoreContext_phase = new WeakMap(), _CoreContext_results = new WeakMap(), _CoreC
|
|
|
524
531
|
captureChannel
|
|
525
532
|
});
|
|
526
533
|
return { type: 'generate', context: generateContext };
|
|
527
|
-
}, _CoreContext_setupRenderPhase = function _CoreContext_setupRenderPhase({ files, previews,
|
|
534
|
+
}, _CoreContext_setupRenderPhase = function _CoreContext_setupRenderPhase({ files, previews, basePath, attribution, captureChannel }) {
|
|
528
535
|
const renderContext = new RenderContext_js_1.RenderContext({
|
|
529
536
|
files,
|
|
530
537
|
previews,
|
|
531
|
-
mappings,
|
|
532
538
|
basePath,
|
|
533
539
|
logger: this.logger,
|
|
534
540
|
captureCurrentResult: this.captureCurrentResult.bind(this),
|
|
@@ -4,12 +4,11 @@ import type { OasRef } from '../oas/ref/Ref.js';
|
|
|
4
4
|
import type { SkmtcParsedDocument } from '../types/SkmtcDocument.js';
|
|
5
5
|
import type { SupportedSubjects } from '../types/SupportedSubjects.js';
|
|
6
6
|
import type { EnrichmentDefaults } from '../types/EnrichmentDefaults.js';
|
|
7
|
-
import type { BuildModelSettingsArgs, GenerateContextType, GenerateResult, InsertModelOptions, InsertNormalizedModelArgs, InsertNormalizedModelOptions, InsertNormalizedModelReturn, InsertOperationArgs, InsertWebhookArgs, PickArgs, ContextRegisterArgs, RegisterJsonArgs, ToOperationSettingsArgs, ToWebhookSettingsArgs } from './generateTypes.js';
|
|
7
|
+
import type { BuildModelSettingsArgs, GenerateContextType, GenerateResult, InsertModelOptions, InsertNormalizedModelArgs, InsertNormalizedModelOptions, InsertNormalizedModelReturn, InsertOperationArgs, InsertWebhookArgs, PickArgs, ContextRegisterArgs, RegisterJsonArgs, RegisterMarkdownArgs, ToOperationSettingsArgs, ToWebhookSettingsArgs } from './generateTypes.js';
|
|
8
8
|
import type { ClientSettings } from '../types/Settings.js';
|
|
9
9
|
import type { Method } from '../types/Method.js';
|
|
10
10
|
import type { OasOperation } from '../oas/operation/Operation.js';
|
|
11
11
|
import type { OasWebhook } from '../oas/webhook/Webhook.js';
|
|
12
|
-
import type { ModelProjection } from '../dsl/model/types.js';
|
|
13
12
|
import type { GeneratedValue } from '../dsl/GeneratedValue.js';
|
|
14
13
|
import { ContentSettings } from '../dsl/ContentSettings.js';
|
|
15
14
|
import type { RefName } from '../types/RefName.js';
|
|
@@ -26,6 +25,7 @@ import type { GeneratorsMapContainer } from '../types/GeneratorType.js';
|
|
|
26
25
|
import type { OasOperationSource, WebhookSource, GqlOperationSource, ModelSource } from '../types/Preview.js';
|
|
27
26
|
import type { GqlOperation } from '../gql/operation/GqlOperation.js';
|
|
28
27
|
import type { OasVoid } from '../oas/void/Void.js';
|
|
28
|
+
import type { ModelProjection } from '../dsl/model/types.js';
|
|
29
29
|
type ConstructorArgs = {
|
|
30
30
|
/**
|
|
31
31
|
* Source document for generation, wrapped in the {@link SkmtcParsedDocument}
|
|
@@ -165,9 +165,9 @@ export declare class GenerateContext implements GenerateContextType {
|
|
|
165
165
|
* Evaluate each generator's `isSupported` over the parsed document's subjects
|
|
166
166
|
* and report the subjects each generator supports — capability only, no
|
|
167
167
|
* transform and no render. Operation generators report the operations their
|
|
168
|
-
* `isSupported` accepts; model generators report
|
|
169
|
-
*
|
|
170
|
-
* other protocol reports nothing.
|
|
168
|
+
* `isSupported` accepts; model generators report the models theirs accepts
|
|
169
|
+
* (a generator that declares no `isSupported` defaults to every subject). A
|
|
170
|
+
* generator targeting the other protocol reports nothing.
|
|
171
171
|
*/
|
|
172
172
|
toSupportedSubjects(): SupportedSubjects;
|
|
173
173
|
/**
|
|
@@ -194,6 +194,17 @@ export declare class GenerateContext implements GenerateContextType {
|
|
|
194
194
|
* language-constructed file, use {@link addFile}.
|
|
195
195
|
*/
|
|
196
196
|
getFile(filePath: string): FileBase | undefined;
|
|
197
|
+
/**
|
|
198
|
+
* Read-only view of every file generated so far, keyed by (normalized)
|
|
199
|
+
* export path. An **inspection / tooling** seam — NOT a coordination
|
|
200
|
+
* surface: generators must still register via `register` / `insert*`, and
|
|
201
|
+
* the storage stays `#`-private so nothing outside can mutate or re-bind it.
|
|
202
|
+
*
|
|
203
|
+
* Unlike {@link getFile} (which needs a path) this lets tooling *enumerate*
|
|
204
|
+
* the files map — e.g. a debugger visualiser snapshotting the in-progress
|
|
205
|
+
* state at a breakpoint. The `ReadonlyMap` type signals look-don't-touch.
|
|
206
|
+
*/
|
|
207
|
+
get inspectedFiles(): ReadonlyMap<string, FileBase>;
|
|
197
208
|
/**
|
|
198
209
|
* Store a language-constructed file. The engine never constructs a
|
|
199
210
|
* concrete (language) `File`; the language's `register` builds its own
|
|
@@ -208,6 +219,16 @@ export declare class GenerateContext implements GenerateContextType {
|
|
|
208
219
|
* @param args - Registration arguments with destination path and JSON content
|
|
209
220
|
*/
|
|
210
221
|
registerJson({ destinationPath, json }: RegisterJsonArgs): void;
|
|
222
|
+
/**
|
|
223
|
+
* Registers Markdown content for output to a file.
|
|
224
|
+
*
|
|
225
|
+
* The Markdown counterpart of {@link registerJson} — create-or-replace, last
|
|
226
|
+
* write wins. The `markdown` is any {@link Stringable} (typically a composed
|
|
227
|
+
* snippet tree), rendered verbatim into a {@link MarkdownFile}.
|
|
228
|
+
*
|
|
229
|
+
* @experimental This method is experimental and may change in future versions
|
|
230
|
+
*/
|
|
231
|
+
registerMarkdown({ destinationPath, markdown }: RegisterMarkdownArgs): void;
|
|
211
232
|
/**
|
|
212
233
|
* Insert supplied `imports` and `definitions` into file at `destinationPath`.
|
|
213
234
|
*
|
|
@@ -219,7 +240,7 @@ export declare class GenerateContext implements GenerateContextType {
|
|
|
219
240
|
*
|
|
220
241
|
* @mutates this.files
|
|
221
242
|
*/
|
|
222
|
-
register({ imports, reExports, definitions, destinationPath }: ContextRegisterArgs): void;
|
|
243
|
+
register({ imports, reExports, definitions, custom, destinationPath }: ContextRegisterArgs): void;
|
|
223
244
|
/**
|
|
224
245
|
* Insert operation into the output file with path `destinationPath`.
|
|
225
246
|
*
|
|
@@ -270,7 +291,7 @@ export declare class GenerateContext implements GenerateContextType {
|
|
|
270
291
|
/**
|
|
271
292
|
* Build content settings for a model projection by calling its statics
|
|
272
293
|
* `toIdentifierName` (pure, for the name) + `toIdentifierType`
|
|
273
|
-
* (context-aware, for
|
|
294
|
+
* (context-aware, for type/typeName/exported), `toExportPath`, and
|
|
274
295
|
* `toEnrichments` against the given `refName` and `variant`. The full
|
|
275
296
|
* identifier is assembled through the projection's language
|
|
276
297
|
* (`lang.toIdentifier`).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenerateContext.d.ts","sourceRoot":"","sources":["../../src/context/GenerateContext.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAE1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAE/C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAA;AACtE,OAAO,KAAK,EACV,kBAAkB,EAKnB,MAAM,gCAAgC,CAAA;AACvC,OAAO,KAAK,EACV,sBAAsB,EACtB,mBAAmB,EACnB,cAAc,EAEd,kBAAkB,EAClB,yBAAyB,EACzB,4BAA4B,EAC5B,2BAA2B,EAC3B,mBAAmB,EACnB,iBAAiB,EACjB,QAAQ,EACR,mBAAmB,EACnB,gBAAgB,
|
|
1
|
+
{"version":3,"file":"GenerateContext.d.ts","sourceRoot":"","sources":["../../src/context/GenerateContext.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAE1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAE/C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAA;AACtE,OAAO,KAAK,EACV,kBAAkB,EAKnB,MAAM,gCAAgC,CAAA;AACvC,OAAO,KAAK,EACV,sBAAsB,EACtB,mBAAmB,EACnB,cAAc,EAEd,kBAAkB,EAClB,yBAAyB,EACzB,4BAA4B,EAC5B,2BAA2B,EAC3B,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