@skmtc/core 0.0.924 → 0.0.929
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/esm/app/validate.d.ts +0 -1
- package/esm/app/validate.d.ts.map +1 -1
- package/esm/app/validate.js +0 -1
- package/esm/context/CoreContext.d.ts +2 -2
- package/esm/context/CoreContext.d.ts.map +1 -1
- package/esm/context/CoreContext.js +10 -9
- package/esm/context/GenerateContext.d.ts +1 -1
- package/esm/context/GenerateContext.d.ts.map +1 -1
- package/esm/context/GenerateContext.js +4 -5
- package/esm/context/ParseContext.d.ts +1 -134
- package/esm/context/ParseContext.d.ts.map +1 -1
- package/esm/context/ParseContext.js +11 -157
- package/esm/context/RenderContext.d.ts +3 -8
- package/esm/context/RenderContext.d.ts.map +1 -1
- package/esm/context/RenderContext.js +16 -102
- package/esm/context/StackTrail.d.ts +0 -172
- package/esm/context/StackTrail.d.ts.map +1 -1
- package/esm/context/StackTrail.js +1 -195
- package/esm/dsl/Stringable.d.ts +0 -1
- package/esm/dsl/Stringable.d.ts.map +1 -1
- package/esm/dsl/Stringable.js +1 -76
- package/esm/dsl/model/toModelBase.d.ts +2 -3
- package/esm/dsl/model/toModelBase.d.ts.map +1 -1
- package/esm/dsl/model/toModelBase.js +1 -1
- package/esm/dsl/operation/toOperationBase.d.ts +2 -2
- package/esm/dsl/operation/toOperationBase.d.ts.map +1 -1
- package/esm/dsl/operation/toOperationBase.js +1 -1
- package/esm/dsl/operation/toOperationEntry.d.ts.map +1 -1
- package/esm/dsl/operation/toOperationEntry.js +1 -1
- package/esm/helpers/ResultsLog.js +1 -1
- package/esm/helpers/collateExamples.d.ts +0 -1
- package/esm/helpers/collateExamples.d.ts.map +1 -1
- package/esm/helpers/collateExamples.js +0 -1
- package/esm/helpers/formatNumber.d.ts +0 -1
- package/esm/helpers/formatNumber.d.ts.map +1 -1
- package/esm/helpers/formatNumber.js +0 -1
- package/esm/helpers/isEmpty.d.ts +0 -60
- package/esm/helpers/isEmpty.d.ts.map +1 -1
- package/esm/helpers/isEmpty.js +1 -61
- package/esm/helpers/naming.d.ts.map +1 -1
- package/esm/helpers/naming.js +2 -2
- package/esm/helpers/refFns.d.ts +0 -1
- package/esm/helpers/refFns.d.ts.map +1 -1
- package/esm/helpers/refFns.js +0 -1
- package/esm/helpers/strings.d.ts +0 -1
- package/esm/helpers/strings.d.ts.map +1 -1
- package/esm/helpers/strings.js +0 -1
- package/esm/helpers/toResolvedArtifactPath.d.ts +0 -1
- package/esm/helpers/toResolvedArtifactPath.d.ts.map +1 -1
- package/esm/helpers/toResolvedArtifactPath.js +0 -1
- package/esm/helpers/tracer.d.ts +1 -2
- package/esm/helpers/tracer.d.ts.map +1 -1
- package/esm/helpers/tracer.js +1 -1
- package/esm/mod.d.ts +0 -14
- package/esm/mod.d.ts.map +1 -1
- package/esm/mod.js +0 -14
- package/esm/oas/_helpers/parseEnum.d.ts +8 -136
- package/esm/oas/_helpers/parseEnum.d.ts.map +1 -1
- package/esm/oas/_helpers/parseEnum.js +21 -119
- package/esm/oas/_helpers/parseNullable.d.ts.map +1 -1
- package/esm/oas/_helpers/parseNullable.js +16 -6
- package/esm/oas/_merge-all-of/merge-enum-values.js +1 -1
- package/esm/oas/array/Array.d.ts +18 -96
- package/esm/oas/array/Array.d.ts.map +1 -1
- package/esm/oas/array/Array.js +38 -102
- package/esm/oas/array/array-types.d.ts +6 -174
- package/esm/oas/array/array-types.d.ts.map +1 -1
- package/esm/oas/array/array-types.js +4 -76
- package/esm/oas/array/toArray.d.ts +0 -52
- package/esm/oas/array/toArray.d.ts.map +1 -1
- package/esm/oas/array/toArray.js +67 -72
- package/esm/oas/boolean/Boolean.d.ts +12 -133
- package/esm/oas/boolean/Boolean.d.ts.map +1 -1
- package/esm/oas/boolean/Boolean.js +28 -134
- package/esm/oas/boolean/boolean-types.d.ts +14 -1
- package/esm/oas/boolean/boolean-types.d.ts.map +1 -1
- package/esm/oas/boolean/boolean-types.js +4 -1
- package/esm/oas/boolean/toBoolean.d.ts.map +1 -1
- package/esm/oas/boolean/toBoolean.js +75 -19
- package/esm/oas/components/Components.d.ts +0 -2
- package/esm/oas/components/Components.d.ts.map +1 -1
- package/esm/oas/components/Components.js +0 -2
- package/esm/oas/components/toComponentsV3.d.ts.map +1 -1
- package/esm/oas/components/toComponentsV3.js +7 -9
- package/esm/oas/discriminator/Discriminator.d.ts +0 -1
- package/esm/oas/discriminator/Discriminator.d.ts.map +1 -1
- package/esm/oas/discriminator/Discriminator.js +0 -1
- package/esm/oas/discriminator/toDiscriminatorV3.d.ts.map +1 -1
- package/esm/oas/discriminator/toDiscriminatorV3.js +4 -1
- package/esm/oas/document/Document.d.ts +5 -1
- package/esm/oas/document/Document.d.ts.map +1 -1
- package/esm/oas/document/Document.js +7 -1
- package/esm/oas/document/toDocumentFieldsV3.d.ts.map +1 -1
- package/esm/oas/document/toDocumentFieldsV3.js +11 -8
- package/esm/oas/example/Example.d.ts +10 -85
- package/esm/oas/example/Example.d.ts.map +1 -1
- package/esm/oas/example/Example.js +36 -105
- package/esm/oas/example/toExamplesV3.d.ts +1 -1
- package/esm/oas/example/toExamplesV3.d.ts.map +1 -1
- package/esm/oas/example/toExamplesV3.js +13 -8
- package/esm/oas/externalDocs/ExternalDocs.d.ts +10 -0
- package/esm/oas/externalDocs/ExternalDocs.d.ts.map +1 -0
- package/esm/oas/externalDocs/ExternalDocs.js +18 -0
- package/esm/oas/externalDocs/externalDocsTypes.d.ts +7 -0
- package/esm/oas/externalDocs/externalDocsTypes.d.ts.map +1 -0
- package/esm/oas/externalDocs/externalDocsTypes.js +6 -0
- package/esm/oas/externalDocs/toExternalDocs.d.ts +10 -0
- package/esm/oas/externalDocs/toExternalDocs.d.ts.map +1 -0
- package/esm/oas/externalDocs/toExternalDocs.js +15 -0
- package/esm/oas/header/Header.d.ts +6 -6
- package/esm/oas/header/Header.d.ts.map +1 -1
- package/esm/oas/header/toHeadersV3.d.ts.map +1 -1
- package/esm/oas/header/toHeadersV3.js +9 -5
- package/esm/oas/info/Info.d.ts +0 -1
- package/esm/oas/info/Info.d.ts.map +1 -1
- package/esm/oas/info/Info.js +0 -1
- package/esm/oas/integer/Integer.d.ts +18 -81
- package/esm/oas/integer/Integer.d.ts.map +1 -1
- package/esm/oas/integer/Integer.js +33 -82
- package/esm/oas/integer/integer-types.d.ts +21 -1
- package/esm/oas/integer/integer-types.d.ts.map +1 -1
- package/esm/oas/integer/integer-types.js +8 -2
- package/esm/oas/integer/toInteger.d.ts.map +1 -1
- package/esm/oas/integer/toInteger.js +66 -19
- package/esm/oas/mediaType/toMediaTypeItemV3.d.ts.map +1 -1
- package/esm/oas/mediaType/toMediaTypeItemV3.js +9 -10
- package/esm/oas/number/Number.d.ts +18 -164
- package/esm/oas/number/Number.d.ts.map +1 -1
- package/esm/oas/number/Number.js +33 -165
- package/esm/oas/number/number-types.d.ts +22 -2
- package/esm/oas/number/number-types.d.ts.map +1 -1
- package/esm/oas/number/number-types.js +4 -1
- package/esm/oas/number/toNumber.d.ts +0 -62
- package/esm/oas/number/toNumber.d.ts.map +1 -1
- package/esm/oas/number/toNumber.js +66 -81
- package/esm/oas/object/Object.d.ts +0 -1
- package/esm/oas/object/Object.d.ts.map +1 -1
- package/esm/oas/object/Object.js +0 -1
- package/esm/oas/object/toObject.d.ts.map +1 -1
- package/esm/oas/object/toObject.js +38 -13
- package/esm/oas/operation/Operation.d.ts +9 -108
- package/esm/oas/operation/Operation.d.ts.map +1 -1
- package/esm/oas/operation/Operation.js +16 -108
- package/esm/oas/operation/toOperationsV3.d.ts.map +1 -1
- package/esm/oas/operation/toOperationsV3.js +12 -7
- package/esm/oas/parameter/Parameter.d.ts +12 -13
- package/esm/oas/parameter/Parameter.d.ts.map +1 -1
- package/esm/oas/parameter/Parameter.js +0 -3
- package/esm/oas/parameter/parameter-types.d.ts +0 -20
- package/esm/oas/parameter/parameter-types.d.ts.map +1 -1
- package/esm/oas/parameter/parameter-types.js +0 -20
- package/esm/oas/parameter/toParameterV3.d.ts.map +1 -1
- package/esm/oas/parameter/toParameterV3.js +14 -11
- package/esm/oas/pathItem/toPathItemV3.d.ts.map +1 -1
- package/esm/oas/pathItem/toPathItemV3.js +2 -1
- package/esm/oas/ref/Ref.d.ts +0 -1
- package/esm/oas/ref/Ref.d.ts.map +1 -1
- package/esm/oas/ref/Ref.js +0 -1
- package/esm/oas/ref/toRefV31.d.ts.map +1 -1
- package/esm/oas/ref/toRefV31.js +4 -1
- package/esm/oas/requestBody/RequestBody.d.ts +0 -1
- package/esm/oas/requestBody/RequestBody.d.ts.map +1 -1
- package/esm/oas/requestBody/RequestBody.js +0 -1
- package/esm/oas/requestBody/toRequestBodiesV3.d.ts.map +1 -1
- package/esm/oas/requestBody/toRequestBodiesV3.js +6 -2
- package/esm/oas/response/Response.d.ts +0 -1
- package/esm/oas/response/Response.d.ts.map +1 -1
- package/esm/oas/response/Response.js +0 -1
- package/esm/oas/response/toResponseV3.d.ts.map +1 -1
- package/esm/oas/response/toResponseV3.js +9 -8
- package/esm/oas/schema/Schema.d.ts +0 -1
- package/esm/oas/schema/Schema.d.ts.map +1 -1
- package/esm/oas/schema/Schema.js +1 -1
- package/esm/oas/schema/toSchemasV3.d.ts.map +1 -1
- package/esm/oas/schema/toSchemasV3.js +10 -16
- package/esm/oas/securitySchemes/toSecuritySchemes.d.ts.map +1 -1
- package/esm/oas/securitySchemes/toSecuritySchemes.js +22 -9
- package/esm/oas/server/Server.d.ts +0 -1
- package/esm/oas/server/Server.d.ts.map +1 -1
- package/esm/oas/server/Server.js +0 -1
- package/esm/oas/server/toServerV3.d.ts.map +1 -1
- package/esm/oas/server/toServerV3.js +2 -1
- package/esm/oas/specificationExtensions/toSpecificationExtensionsV3.d.ts +1 -1
- package/esm/oas/specificationExtensions/toSpecificationExtensionsV3.d.ts.map +1 -1
- package/esm/oas/specificationExtensions/toSpecificationExtensionsV3.js +17 -13
- package/esm/oas/string/String.d.ts +16 -88
- package/esm/oas/string/String.d.ts.map +1 -1
- package/esm/oas/string/String.js +33 -91
- package/esm/oas/string/string-types.d.ts +23 -80
- package/esm/oas/string/string-types.d.ts.map +1 -1
- package/esm/oas/string/string-types.js +6 -2
- package/esm/oas/string/toString.d.ts.map +1 -1
- package/esm/oas/string/toString.js +68 -18
- package/esm/oas/tag/Tag.d.ts +0 -1
- package/esm/oas/tag/Tag.d.ts.map +1 -1
- package/esm/oas/tag/Tag.js +0 -1
- package/esm/oas/union/toUnion.d.ts.map +1 -1
- package/esm/oas/union/toUnion.js +6 -2
- 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 +8 -1
- package/esm/oas/unknown/toUnknown.js +1 -1
- package/esm/oas/void/Void.d.ts +0 -1
- package/esm/oas/void/Void.d.ts.map +1 -1
- package/esm/oas/void/Void.js +0 -1
- package/esm/run/toArtifacts.d.ts +2 -2
- package/esm/run/toArtifacts.d.ts.map +1 -1
- package/esm/run/toArtifacts.js +2 -2
- package/esm/types/Brand.d.ts +0 -1
- package/esm/types/Brand.d.ts.map +1 -1
- package/esm/types/Brand.js +1 -10
- package/esm/types/CustomValue.d.ts +0 -1
- package/esm/types/CustomValue.d.ts.map +1 -1
- package/esm/types/CustomValue.js +0 -1
- package/esm/types/DenoJson.d.ts +0 -1
- package/esm/types/DenoJson.d.ts.map +1 -1
- package/esm/types/DenoJson.js +0 -1
- package/esm/types/EnrichmentRequest.d.ts +0 -1
- package/esm/types/EnrichmentRequest.d.ts.map +1 -1
- package/esm/types/EnrichmentRequest.js +1 -1
- package/esm/types/Enrichments.d.ts +0 -1
- package/esm/types/Enrichments.d.ts.map +1 -1
- package/esm/types/Enrichments.js +0 -1
- package/esm/types/GeneratorKeys.d.ts +0 -1
- package/esm/types/GeneratorKeys.d.ts.map +1 -1
- package/esm/types/GeneratorKeys.js +0 -1
- package/esm/types/Manifest.d.ts +0 -1
- package/esm/types/Manifest.d.ts.map +1 -1
- package/esm/types/Manifest.js +0 -1
- package/esm/types/Method.d.ts +0 -165
- package/esm/types/Method.d.ts.map +1 -1
- package/esm/types/Method.js +1 -141
- package/esm/types/ModuleExport.d.ts +0 -1
- package/esm/types/ModuleExport.d.ts.map +1 -1
- package/esm/types/ModuleExport.js +0 -1
- package/esm/types/PrettierConfig.d.ts +0 -1
- package/esm/types/PrettierConfig.d.ts.map +1 -1
- package/esm/types/PrettierConfig.js +0 -1
- package/esm/types/Preview.d.ts +0 -1
- package/esm/types/Preview.d.ts.map +1 -1
- package/esm/types/Preview.js +0 -1
- package/esm/types/RefName.d.ts +0 -1
- package/esm/types/RefName.d.ts.map +1 -1
- package/esm/types/RefName.js +1 -1
- package/esm/types/Results.d.ts +0 -1
- package/esm/types/Results.d.ts.map +1 -1
- package/esm/types/Results.js +0 -1
- package/esm/types/Settings.d.ts +0 -1
- package/esm/types/Settings.d.ts.map +1 -1
- package/esm/types/Settings.js +0 -1
- package/esm/types/TypeSystem.d.ts +0 -1
- package/esm/types/TypeSystem.d.ts.map +1 -1
- package/esm/types/TypeSystem.js +1 -1
- package/esm/typescript/FunctionParameter.d.ts.map +1 -1
- package/esm/typescript/FunctionParameter.js +1 -1
- package/package.json +1 -15
- package/script/app/validate.d.ts +0 -1
- package/script/app/validate.d.ts.map +1 -1
- package/script/app/validate.js +0 -1
- package/script/context/CoreContext.d.ts +2 -2
- package/script/context/CoreContext.d.ts.map +1 -1
- package/script/context/CoreContext.js +10 -9
- package/script/context/GenerateContext.d.ts +1 -1
- package/script/context/GenerateContext.d.ts.map +1 -1
- package/script/context/GenerateContext.js +4 -38
- package/script/context/ParseContext.d.ts +1 -134
- package/script/context/ParseContext.d.ts.map +1 -1
- package/script/context/ParseContext.js +12 -192
- package/script/context/RenderContext.d.ts +3 -8
- package/script/context/RenderContext.d.ts.map +1 -1
- package/script/context/RenderContext.js +16 -135
- package/script/context/StackTrail.d.ts +0 -172
- package/script/context/StackTrail.d.ts.map +1 -1
- package/script/context/StackTrail.js +1 -195
- package/script/dsl/Stringable.d.ts +0 -1
- package/script/dsl/Stringable.d.ts.map +1 -1
- package/script/dsl/Stringable.js +0 -76
- package/script/dsl/model/toModelBase.d.ts +2 -3
- package/script/dsl/model/toModelBase.d.ts.map +1 -1
- package/script/dsl/model/toModelBase.js +5 -2
- package/script/dsl/operation/toOperationBase.d.ts +2 -2
- package/script/dsl/operation/toOperationBase.d.ts.map +1 -1
- package/script/dsl/operation/toOperationBase.js +5 -2
- package/script/dsl/operation/toOperationEntry.d.ts.map +1 -1
- package/script/dsl/operation/toOperationEntry.js +5 -2
- package/script/helpers/ResultsLog.js +5 -2
- package/script/helpers/collateExamples.d.ts +0 -1
- package/script/helpers/collateExamples.d.ts.map +1 -1
- package/script/helpers/collateExamples.js +0 -1
- package/script/helpers/formatNumber.d.ts +0 -1
- package/script/helpers/formatNumber.d.ts.map +1 -1
- package/script/helpers/formatNumber.js +0 -1
- package/script/helpers/isEmpty.d.ts +0 -60
- package/script/helpers/isEmpty.d.ts.map +1 -1
- package/script/helpers/isEmpty.js +1 -61
- package/script/helpers/naming.d.ts.map +1 -1
- package/script/helpers/naming.js +3 -3
- package/script/helpers/refFns.d.ts +0 -1
- package/script/helpers/refFns.d.ts.map +1 -1
- package/script/helpers/refFns.js +0 -1
- package/script/helpers/strings.d.ts +0 -1
- package/script/helpers/strings.d.ts.map +1 -1
- package/script/helpers/strings.js +0 -1
- package/script/helpers/toResolvedArtifactPath.d.ts +0 -1
- package/script/helpers/toResolvedArtifactPath.d.ts.map +1 -1
- package/script/helpers/toResolvedArtifactPath.js +2 -3
- package/script/helpers/tracer.d.ts +1 -2
- package/script/helpers/tracer.d.ts.map +1 -1
- package/script/helpers/tracer.js +1 -1
- package/script/mod.d.ts +0 -14
- package/script/mod.d.ts.map +1 -1
- package/script/mod.js +15 -29
- package/script/oas/_helpers/parseEnum.d.ts +8 -136
- package/script/oas/_helpers/parseEnum.d.ts.map +1 -1
- package/script/oas/_helpers/parseEnum.js +21 -152
- package/script/oas/_helpers/parseNullable.d.ts.map +1 -1
- package/script/oas/_helpers/parseNullable.js +16 -39
- package/script/oas/_merge-all-of/merge-enum-values.js +1 -1
- package/script/oas/array/Array.d.ts +18 -96
- package/script/oas/array/Array.d.ts.map +1 -1
- package/script/oas/array/Array.js +38 -102
- package/script/oas/array/array-types.d.ts +6 -174
- package/script/oas/array/array-types.d.ts.map +1 -1
- package/script/oas/array/array-types.js +5 -77
- package/script/oas/array/toArray.d.ts +0 -52
- package/script/oas/array/toArray.d.ts.map +1 -1
- package/script/oas/array/toArray.js +67 -72
- package/script/oas/boolean/Boolean.d.ts +12 -133
- package/script/oas/boolean/Boolean.d.ts.map +1 -1
- package/script/oas/boolean/Boolean.js +28 -134
- package/script/oas/boolean/boolean-types.d.ts +14 -1
- package/script/oas/boolean/boolean-types.d.ts.map +1 -1
- package/script/oas/boolean/boolean-types.js +4 -1
- package/script/oas/boolean/toBoolean.d.ts.map +1 -1
- package/script/oas/boolean/toBoolean.js +75 -19
- package/script/oas/components/Components.d.ts +0 -2
- package/script/oas/components/Components.d.ts.map +1 -1
- package/script/oas/components/Components.js +0 -2
- package/script/oas/components/toComponentsV3.d.ts.map +1 -1
- package/script/oas/components/toComponentsV3.js +7 -9
- package/script/oas/discriminator/Discriminator.d.ts +0 -1
- package/script/oas/discriminator/Discriminator.d.ts.map +1 -1
- package/script/oas/discriminator/Discriminator.js +0 -1
- package/script/oas/discriminator/toDiscriminatorV3.d.ts.map +1 -1
- package/script/oas/discriminator/toDiscriminatorV3.js +4 -1
- package/script/oas/document/Document.d.ts +5 -1
- package/script/oas/document/Document.d.ts.map +1 -1
- package/script/oas/document/Document.js +7 -1
- package/script/oas/document/toDocumentFieldsV3.d.ts.map +1 -1
- package/script/oas/document/toDocumentFieldsV3.js +11 -8
- package/script/oas/example/Example.d.ts +10 -85
- package/script/oas/example/Example.d.ts.map +1 -1
- package/script/oas/example/Example.js +36 -105
- package/script/oas/example/toExamplesV3.d.ts +1 -1
- package/script/oas/example/toExamplesV3.d.ts.map +1 -1
- package/script/oas/example/toExamplesV3.js +13 -8
- package/script/oas/externalDocs/ExternalDocs.d.ts +10 -0
- package/script/oas/externalDocs/ExternalDocs.d.ts.map +1 -0
- package/script/oas/externalDocs/ExternalDocs.js +22 -0
- package/script/oas/externalDocs/externalDocsTypes.d.ts +7 -0
- package/script/oas/externalDocs/externalDocsTypes.d.ts.map +1 -0
- package/script/oas/{requestBody/requestBody-types.js → externalDocs/externalDocsTypes.js} +3 -6
- package/script/oas/externalDocs/toExternalDocs.d.ts +10 -0
- package/script/oas/externalDocs/toExternalDocs.d.ts.map +1 -0
- package/script/oas/{response/response-types.js → externalDocs/toExternalDocs.js} +16 -11
- package/script/oas/header/Header.d.ts +6 -6
- package/script/oas/header/Header.d.ts.map +1 -1
- package/script/oas/header/toHeadersV3.d.ts.map +1 -1
- package/script/oas/header/toHeadersV3.js +9 -5
- package/script/oas/info/Info.d.ts +0 -1
- package/script/oas/info/Info.d.ts.map +1 -1
- package/script/oas/info/Info.js +0 -1
- package/script/oas/integer/Integer.d.ts +18 -81
- package/script/oas/integer/Integer.d.ts.map +1 -1
- package/script/oas/integer/Integer.js +33 -82
- package/script/oas/integer/integer-types.d.ts +21 -1
- package/script/oas/integer/integer-types.d.ts.map +1 -1
- package/script/oas/integer/integer-types.js +8 -2
- package/script/oas/integer/toInteger.d.ts.map +1 -1
- package/script/oas/integer/toInteger.js +65 -18
- package/script/oas/mediaType/toMediaTypeItemV3.d.ts.map +1 -1
- package/script/oas/mediaType/toMediaTypeItemV3.js +9 -10
- package/script/oas/number/Number.d.ts +18 -164
- package/script/oas/number/Number.d.ts.map +1 -1
- package/script/oas/number/Number.js +33 -165
- package/script/oas/number/number-types.d.ts +22 -2
- package/script/oas/number/number-types.d.ts.map +1 -1
- package/script/oas/number/number-types.js +4 -1
- package/script/oas/number/toNumber.d.ts +0 -62
- package/script/oas/number/toNumber.d.ts.map +1 -1
- package/script/oas/number/toNumber.js +66 -81
- package/script/oas/object/Object.d.ts +0 -1
- package/script/oas/object/Object.d.ts.map +1 -1
- package/script/oas/object/Object.js +0 -1
- package/script/oas/object/toObject.d.ts.map +1 -1
- package/script/oas/object/toObject.js +38 -46
- package/script/oas/operation/Operation.d.ts +9 -108
- package/script/oas/operation/Operation.d.ts.map +1 -1
- package/script/oas/operation/Operation.js +16 -108
- package/script/oas/operation/toOperationsV3.d.ts.map +1 -1
- package/script/oas/operation/toOperationsV3.js +12 -7
- package/script/oas/parameter/Parameter.d.ts +12 -13
- package/script/oas/parameter/Parameter.d.ts.map +1 -1
- package/script/oas/parameter/Parameter.js +0 -3
- package/script/oas/parameter/parameter-types.d.ts +0 -20
- package/script/oas/parameter/parameter-types.d.ts.map +1 -1
- package/script/oas/parameter/parameter-types.js +1 -21
- package/script/oas/parameter/toParameterV3.d.ts.map +1 -1
- package/script/oas/parameter/toParameterV3.js +14 -11
- package/script/oas/pathItem/toPathItemV3.d.ts.map +1 -1
- package/script/oas/pathItem/toPathItemV3.js +2 -1
- package/script/oas/ref/Ref.d.ts +0 -1
- package/script/oas/ref/Ref.d.ts.map +1 -1
- package/script/oas/ref/Ref.js +0 -1
- package/script/oas/ref/toRefV31.d.ts.map +1 -1
- package/script/oas/ref/toRefV31.js +4 -1
- package/script/oas/requestBody/RequestBody.d.ts +0 -1
- package/script/oas/requestBody/RequestBody.d.ts.map +1 -1
- package/script/oas/requestBody/RequestBody.js +0 -1
- package/script/oas/requestBody/toRequestBodiesV3.d.ts.map +1 -1
- package/script/oas/requestBody/toRequestBodiesV3.js +6 -2
- package/script/oas/response/Response.d.ts +0 -1
- package/script/oas/response/Response.d.ts.map +1 -1
- package/script/oas/response/Response.js +0 -1
- package/script/oas/response/toResponseV3.d.ts.map +1 -1
- package/script/oas/response/toResponseV3.js +9 -8
- package/script/oas/schema/Schema.d.ts +0 -1
- package/script/oas/schema/Schema.d.ts.map +1 -1
- package/script/oas/schema/Schema.js +0 -1
- package/script/oas/schema/toSchemasV3.d.ts.map +1 -1
- package/script/oas/schema/toSchemasV3.js +10 -16
- package/script/oas/securitySchemes/toSecuritySchemes.d.ts.map +1 -1
- package/script/oas/securitySchemes/toSecuritySchemes.js +22 -9
- package/script/oas/server/Server.d.ts +0 -1
- package/script/oas/server/Server.d.ts.map +1 -1
- package/script/oas/server/Server.js +0 -1
- package/script/oas/server/toServerV3.d.ts.map +1 -1
- package/script/oas/server/toServerV3.js +2 -1
- package/script/oas/specificationExtensions/toSpecificationExtensionsV3.d.ts +1 -1
- package/script/oas/specificationExtensions/toSpecificationExtensionsV3.d.ts.map +1 -1
- package/script/oas/specificationExtensions/toSpecificationExtensionsV3.js +17 -13
- package/script/oas/string/String.d.ts +16 -88
- package/script/oas/string/String.d.ts.map +1 -1
- package/script/oas/string/String.js +33 -91
- package/script/oas/string/string-types.d.ts +23 -80
- package/script/oas/string/string-types.d.ts.map +1 -1
- package/script/oas/string/string-types.js +6 -2
- package/script/oas/string/toString.d.ts.map +1 -1
- package/script/oas/string/toString.js +68 -18
- package/script/oas/tag/Tag.d.ts +0 -1
- package/script/oas/tag/Tag.d.ts.map +1 -1
- package/script/oas/tag/Tag.js +0 -1
- package/script/oas/union/toUnion.d.ts.map +1 -1
- package/script/oas/union/toUnion.js +6 -2
- 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 +8 -1
- package/script/oas/unknown/toUnknown.js +1 -1
- package/script/oas/void/Void.d.ts +0 -1
- package/script/oas/void/Void.d.ts.map +1 -1
- package/script/oas/void/Void.js +0 -1
- package/script/run/toArtifacts.d.ts +2 -2
- package/script/run/toArtifacts.d.ts.map +1 -1
- package/script/run/toArtifacts.js +2 -2
- package/script/types/Brand.d.ts +0 -1
- package/script/types/Brand.d.ts.map +1 -1
- package/script/types/Brand.js +0 -10
- package/script/types/CustomValue.d.ts +0 -1
- package/script/types/CustomValue.d.ts.map +1 -1
- package/script/types/CustomValue.js +0 -1
- package/script/types/DenoJson.d.ts +0 -1
- package/script/types/DenoJson.d.ts.map +1 -1
- package/script/types/DenoJson.js +0 -1
- package/script/types/EnrichmentRequest.d.ts +0 -1
- package/script/types/EnrichmentRequest.d.ts.map +1 -1
- package/script/types/EnrichmentRequest.js +1 -2
- package/script/types/Enrichments.d.ts +0 -1
- package/script/types/Enrichments.d.ts.map +1 -1
- package/script/types/Enrichments.js +35 -36
- package/script/types/GeneratorKeys.d.ts +0 -1
- package/script/types/GeneratorKeys.d.ts.map +1 -1
- package/script/types/GeneratorKeys.js +2 -3
- package/script/types/Manifest.d.ts +0 -1
- package/script/types/Manifest.d.ts.map +1 -1
- package/script/types/Manifest.js +35 -36
- package/script/types/Method.d.ts +0 -165
- package/script/types/Method.d.ts.map +1 -1
- package/script/types/Method.js +1 -141
- package/script/types/ModuleExport.d.ts +0 -1
- package/script/types/ModuleExport.d.ts.map +1 -1
- package/script/types/ModuleExport.js +0 -1
- package/script/types/PrettierConfig.d.ts +0 -1
- package/script/types/PrettierConfig.d.ts.map +1 -1
- package/script/types/PrettierConfig.js +35 -36
- package/script/types/Preview.d.ts +0 -1
- package/script/types/Preview.d.ts.map +1 -1
- package/script/types/Preview.js +35 -36
- package/script/types/RefName.d.ts +0 -1
- package/script/types/RefName.d.ts.map +1 -1
- package/script/types/RefName.js +1 -2
- package/script/types/Results.d.ts +0 -1
- package/script/types/Results.d.ts.map +1 -1
- package/script/types/Results.js +35 -36
- package/script/types/Settings.d.ts +0 -1
- package/script/types/Settings.d.ts.map +1 -1
- package/script/types/Settings.js +35 -36
- package/script/types/TypeSystem.d.ts +0 -1
- package/script/types/TypeSystem.d.ts.map +1 -1
- package/script/types/TypeSystem.js +0 -1
- package/script/typescript/FunctionParameter.d.ts.map +1 -1
- package/script/typescript/FunctionParameter.js +2 -2
- package/esm/_dnt.polyfills.d.ts +0 -12
- package/esm/_dnt.polyfills.d.ts.map +0 -1
- package/esm/_dnt.polyfills.js +0 -15
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_chars.d.ts +0 -33
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_chars.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_chars.js +0 -48
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_loader_state.d.ts +0 -66
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_loader_state.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_loader_state.js +0 -1427
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_schema.d.ts +0 -44
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_schema.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_schema.js +0 -117
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/binary.d.ts +0 -3
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/binary.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/binary.js +0 -103
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/bool.d.ts +0 -3
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/bool.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/bool.js +0 -32
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/float.d.ts +0 -3
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/float.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/float.js +0 -96
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/int.d.ts +0 -3
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/int.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/int.js +0 -159
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/map.d.ts +0 -3
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/map.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/map.js +0 -14
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/merge.d.ts +0 -3
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/merge.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/merge.js +0 -10
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/nil.d.ts +0 -3
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/nil.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/nil.js +0 -22
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/omap.d.ts +0 -3
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/omap.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/omap.js +0 -29
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/pairs.d.ts +0 -3
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/pairs.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/pairs.js +0 -19
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/regexp.d.ts +0 -3
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/regexp.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/regexp.js +0 -30
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/seq.d.ts +0 -3
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/seq.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/seq.js +0 -10
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/set.d.ts +0 -3
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/set.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/set.js +0 -14
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/str.d.ts +0 -3
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/str.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/str.js +0 -9
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/timestamp.d.ts +0 -3
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/timestamp.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/timestamp.js +0 -81
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/undefined.d.ts +0 -3
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/undefined.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/undefined.js +0 -20
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type.d.ts +0 -32
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type.js +0 -6
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_utils.d.ts +0 -4
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_utils.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_utils.js +0 -13
- package/esm/deps/jsr.io/@std/yaml/1.0.10/parse.d.ts +0 -76
- package/esm/deps/jsr.io/@std/yaml/1.0.10/parse.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/parse.js +0 -93
- package/esm/helpers/generationStats.d.ts +0 -312
- package/esm/helpers/generationStats.d.ts.map +0 -1
- package/esm/helpers/generationStats.js +0 -330
- package/esm/oas/_helpers/parseDefault.d.ts +0 -164
- package/esm/oas/_helpers/parseDefault.d.ts.map +0 -1
- package/esm/oas/_helpers/parseDefault.js +0 -144
- package/esm/oas/_helpers/parseExample.d.ts +0 -123
- package/esm/oas/_helpers/parseExample.d.ts.map +0 -1
- package/esm/oas/_helpers/parseExample.js +0 -103
- package/esm/oas/_helpers/parseFormat.d.ts +0 -169
- package/esm/oas/_helpers/parseFormat.d.ts.map +0 -1
- package/esm/oas/_helpers/parseFormat.js +0 -154
- package/esm/oas/components/components-types.d.ts +0 -19
- package/esm/oas/components/components-types.d.ts.map +0 -1
- package/esm/oas/components/components-types.js +0 -21
- package/esm/oas/document/document-types.d.ts +0 -16
- package/esm/oas/document/document-types.d.ts.map +0 -1
- package/esm/oas/document/document-types.js +0 -18
- package/esm/oas/header/header-types.d.ts +0 -50
- package/esm/oas/header/header-types.d.ts.map +0 -1
- package/esm/oas/header/header-types.js +0 -30
- package/esm/oas/mediaType/mediaType-types.d.ts +0 -29
- package/esm/oas/mediaType/mediaType-types.d.ts.map +0 -1
- package/esm/oas/mediaType/mediaType-types.js +0 -18
- package/esm/oas/object/object-types.d.ts +0 -19
- package/esm/oas/object/object-types.d.ts.map +0 -1
- package/esm/oas/object/object-types.js +0 -23
- package/esm/oas/operation/operation-types.d.ts +0 -273
- package/esm/oas/operation/operation-types.d.ts.map +0 -1
- package/esm/oas/operation/operation-types.js +0 -133
- package/esm/oas/pathItem/pathItem-types.d.ts +0 -12
- package/esm/oas/pathItem/pathItem-types.d.ts.map +0 -1
- package/esm/oas/pathItem/pathItem-types.js +0 -12
- package/esm/oas/requestBody/requestBody-types.d.ts +0 -10
- package/esm/oas/requestBody/requestBody-types.d.ts.map +0 -1
- package/esm/oas/requestBody/requestBody-types.js +0 -9
- package/esm/oas/response/response-types.d.ts +0 -12
- package/esm/oas/response/response-types.d.ts.map +0 -1
- package/esm/oas/response/response-types.js +0 -11
- package/esm/oas/schema/schema-types.d.ts +0 -12
- package/esm/oas/schema/schema-types.d.ts.map +0 -1
- package/esm/oas/schema/schema-types.js +0 -19
- package/esm/oas/union/union-types.d.ts +0 -34
- package/esm/oas/union/union-types.d.ts.map +0 -1
- package/esm/oas/union/union-types.js +0 -19
- package/esm/run/toV3JsonDocument.d.ts +0 -151
- package/esm/run/toV3JsonDocument.d.ts.map +0 -1
- package/esm/run/toV3JsonDocument.js +0 -172
- package/script/_dnt.polyfills.d.ts +0 -12
- package/script/_dnt.polyfills.d.ts.map +0 -1
- package/script/_dnt.polyfills.js +0 -16
- package/script/deps/jsr.io/@std/yaml/1.0.10/_chars.d.ts +0 -33
- package/script/deps/jsr.io/@std/yaml/1.0.10/_chars.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_chars.js +0 -55
- package/script/deps/jsr.io/@std/yaml/1.0.10/_loader_state.d.ts +0 -66
- package/script/deps/jsr.io/@std/yaml/1.0.10/_loader_state.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_loader_state.js +0 -1431
- package/script/deps/jsr.io/@std/yaml/1.0.10/_schema.d.ts +0 -44
- package/script/deps/jsr.io/@std/yaml/1.0.10/_schema.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_schema.js +0 -121
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/binary.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/binary.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/binary.js +0 -106
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/bool.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/bool.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/bool.js +0 -35
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/float.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/float.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/float.js +0 -99
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/int.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/int.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/int.js +0 -162
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/map.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/map.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/map.js +0 -17
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/merge.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/merge.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/merge.js +0 -13
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/nil.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/nil.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/nil.js +0 -25
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/omap.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/omap.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/omap.js +0 -32
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/pairs.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/pairs.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/pairs.js +0 -22
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/regexp.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/regexp.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/regexp.js +0 -33
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/seq.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/seq.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/seq.js +0 -13
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/set.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/set.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/set.js +0 -17
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/str.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/str.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/str.js +0 -12
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/timestamp.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/timestamp.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/timestamp.js +0 -84
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/undefined.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/undefined.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/undefined.js +0 -23
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type.d.ts +0 -32
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type.js +0 -7
- package/script/deps/jsr.io/@std/yaml/1.0.10/_utils.d.ts +0 -4
- package/script/deps/jsr.io/@std/yaml/1.0.10/_utils.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_utils.js +0 -18
- package/script/deps/jsr.io/@std/yaml/1.0.10/parse.d.ts +0 -76
- package/script/deps/jsr.io/@std/yaml/1.0.10/parse.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/parse.js +0 -97
- package/script/helpers/generationStats.d.ts +0 -312
- package/script/helpers/generationStats.d.ts.map +0 -1
- package/script/helpers/generationStats.js +0 -339
- package/script/oas/_helpers/parseDefault.d.ts +0 -164
- package/script/oas/_helpers/parseDefault.d.ts.map +0 -1
- package/script/oas/_helpers/parseDefault.js +0 -181
- package/script/oas/_helpers/parseExample.d.ts +0 -123
- package/script/oas/_helpers/parseExample.d.ts.map +0 -1
- package/script/oas/_helpers/parseExample.js +0 -140
- package/script/oas/_helpers/parseFormat.d.ts +0 -169
- package/script/oas/_helpers/parseFormat.d.ts.map +0 -1
- package/script/oas/_helpers/parseFormat.js +0 -191
- package/script/oas/components/components-types.d.ts +0 -19
- package/script/oas/components/components-types.d.ts.map +0 -1
- package/script/oas/components/components-types.js +0 -57
- package/script/oas/document/document-types.d.ts +0 -16
- package/script/oas/document/document-types.d.ts.map +0 -1
- package/script/oas/document/document-types.js +0 -54
- package/script/oas/header/header-types.d.ts +0 -50
- package/script/oas/header/header-types.d.ts.map +0 -1
- package/script/oas/header/header-types.js +0 -66
- package/script/oas/mediaType/mediaType-types.d.ts +0 -29
- package/script/oas/mediaType/mediaType-types.d.ts.map +0 -1
- package/script/oas/mediaType/mediaType-types.js +0 -54
- package/script/oas/object/object-types.d.ts +0 -19
- package/script/oas/object/object-types.d.ts.map +0 -1
- package/script/oas/object/object-types.js +0 -59
- package/script/oas/operation/operation-types.d.ts +0 -273
- package/script/oas/operation/operation-types.d.ts.map +0 -1
- package/script/oas/operation/operation-types.js +0 -169
- package/script/oas/pathItem/pathItem-types.d.ts +0 -12
- package/script/oas/pathItem/pathItem-types.d.ts.map +0 -1
- package/script/oas/pathItem/pathItem-types.js +0 -48
- package/script/oas/requestBody/requestBody-types.d.ts +0 -10
- package/script/oas/requestBody/requestBody-types.d.ts.map +0 -1
- package/script/oas/response/response-types.d.ts +0 -12
- package/script/oas/response/response-types.d.ts.map +0 -1
- package/script/oas/schema/schema-types.d.ts +0 -12
- package/script/oas/schema/schema-types.d.ts.map +0 -1
- package/script/oas/schema/schema-types.js +0 -55
- package/script/oas/union/union-types.d.ts +0 -34
- package/script/oas/union/union-types.d.ts.map +0 -1
- package/script/oas/union/union-types.js +0 -55
- package/script/run/toV3JsonDocument.d.ts +0 -151
- package/script/run/toV3JsonDocument.d.ts.map +0 -1
- package/script/run/toV3JsonDocument.js +0 -180
|
@@ -1,312 +0,0 @@
|
|
|
1
|
-
import "../_dnt.polyfills.js";
|
|
2
|
-
import type { ManifestContent } from '../types/Manifest.js';
|
|
3
|
-
import type { ResultsItem, ResultType } from '../types/Results.js';
|
|
4
|
-
/**
|
|
5
|
-
* Arguments for generating comprehensive statistics from the build manifest and artifacts.
|
|
6
|
-
*/
|
|
7
|
-
type GenerationStatsArgs = {
|
|
8
|
-
/** The generation manifest containing build metadata and results */
|
|
9
|
-
manifest: ManifestContent;
|
|
10
|
-
/** Generated artifacts as a map of file paths to content */
|
|
11
|
-
artifacts: Record<string, string>;
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
* Comprehensive generation statistics extracted from build artifacts and manifest.
|
|
15
|
-
*/
|
|
16
|
-
export type GenerationStats = {
|
|
17
|
-
/** Total number of GPT tokens in generated content */
|
|
18
|
-
tokens: number;
|
|
19
|
-
/** Total number of lines generated */
|
|
20
|
-
lines: number;
|
|
21
|
-
/** Total generation time in milliseconds */
|
|
22
|
-
totalTime: number;
|
|
23
|
-
/** Error paths organized as nested arrays */
|
|
24
|
-
errors: string[][];
|
|
25
|
-
/** Total number of generated files */
|
|
26
|
-
files: number;
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
* Generates comprehensive statistics about the code generation process.
|
|
30
|
-
*
|
|
31
|
-
* This function analyzes the generation manifest and produced artifacts to create
|
|
32
|
-
* detailed statistics including token counts, lines of code, timing information,
|
|
33
|
-
* error tracking, and file counts. It's used for performance monitoring, debugging,
|
|
34
|
-
* and reporting on generation runs.
|
|
35
|
-
*
|
|
36
|
-
* The function combines multiple analysis methods to provide a complete picture
|
|
37
|
-
* of the generation process, including tokenization analysis for cost estimation,
|
|
38
|
-
* error path extraction for debugging, and timing analysis for performance optimization.
|
|
39
|
-
*
|
|
40
|
-
* @param args - Generation analysis configuration
|
|
41
|
-
* @param args.manifest - The generation manifest with metadata and results
|
|
42
|
-
* @param args.artifacts - Map of file paths to generated content
|
|
43
|
-
* @returns Comprehensive generation statistics object
|
|
44
|
-
*
|
|
45
|
-
* @example Basic usage
|
|
46
|
-
* ```typescript
|
|
47
|
-
* import { toGenerationStats } from '@skmtc/core';
|
|
48
|
-
*
|
|
49
|
-
* const stats = toGenerationStats({
|
|
50
|
-
* manifest: {
|
|
51
|
-
* startAt: 1672531200000,
|
|
52
|
-
* endAt: 1672531245000,
|
|
53
|
-
* files: {
|
|
54
|
-
* './models.ts': { lines: 150, characters: 4500 },
|
|
55
|
-
* './types.ts': { lines: 80, characters: 2100 }
|
|
56
|
-
* },
|
|
57
|
-
* results: { }
|
|
58
|
-
* },
|
|
59
|
-
* artifacts: {
|
|
60
|
-
* './models.ts': 'export interface User { id: string; name: string; }',
|
|
61
|
-
* './types.ts': 'export type Status = "active" | "inactive";'
|
|
62
|
-
* }
|
|
63
|
-
* });
|
|
64
|
-
*
|
|
65
|
-
* console.log(stats);
|
|
66
|
-
* // {
|
|
67
|
-
* // tokens: 250,
|
|
68
|
-
* // lines: 230,
|
|
69
|
-
* // totalTime: 45000,
|
|
70
|
-
* // errors: [],
|
|
71
|
-
* // files: 2
|
|
72
|
-
* // }
|
|
73
|
-
* ```
|
|
74
|
-
*
|
|
75
|
-
* @example Performance monitoring
|
|
76
|
-
* ```typescript
|
|
77
|
-
* class GenerationMonitor {
|
|
78
|
-
* analyzeGeneration(manifest: ManifestContent, artifacts: Record<string, string>) {
|
|
79
|
-
* const stats = toGenerationStats({ manifest, artifacts });
|
|
80
|
-
*
|
|
81
|
-
* console.log(`Generation completed in ${stats.totalTime}ms`);
|
|
82
|
-
* console.log(`Generated ${stats.files} files with ${stats.lines} lines`);
|
|
83
|
-
* console.log(`Token usage: ${stats.tokens} tokens`);
|
|
84
|
-
*
|
|
85
|
-
* if (stats.errors.length > 0) {
|
|
86
|
-
* console.warn(`Found ${stats.errors.length} errors:`);
|
|
87
|
-
* stats.errors.forEach((errorPath, index) => {
|
|
88
|
-
* console.warn(` ${index + 1}. ${errorPath.join(' -> ')}`);
|
|
89
|
-
* });
|
|
90
|
-
* }
|
|
91
|
-
*
|
|
92
|
-
* return stats;
|
|
93
|
-
* }
|
|
94
|
-
* }
|
|
95
|
-
* ```
|
|
96
|
-
*
|
|
97
|
-
* @example Cost estimation
|
|
98
|
-
* ```typescript
|
|
99
|
-
* function estimateGenerationCost(stats: GenerationStats): number {
|
|
100
|
-
* const tokensPerDollar = 1000000; // Example rate
|
|
101
|
-
* const estimatedCost = stats.tokens / tokensPerDollar;
|
|
102
|
-
*
|
|
103
|
-
* console.log(`Estimated cost: $${estimatedCost.toFixed(4)}`);
|
|
104
|
-
* console.log(`Efficiency: ${stats.lines / stats.tokens} lines per token`);
|
|
105
|
-
*
|
|
106
|
-
* return estimatedCost;
|
|
107
|
-
* }
|
|
108
|
-
* ```
|
|
109
|
-
*
|
|
110
|
-
* @example Build reporting
|
|
111
|
-
* ```typescript
|
|
112
|
-
* function generateBuildReport(stats: GenerationStats): string {
|
|
113
|
-
* const efficiency = stats.totalTime / stats.files;
|
|
114
|
-
* const successRate = ((stats.files - stats.errors.length) / stats.files * 100).toFixed(1);
|
|
115
|
-
*
|
|
116
|
-
* return `
|
|
117
|
-
* Build Report:
|
|
118
|
-
* -----------
|
|
119
|
-
* Files Generated: ${stats.files}
|
|
120
|
-
* Total Lines: ${stats.lines.toLocaleString()}
|
|
121
|
-
* Token Count: ${stats.tokens.toLocaleString()}
|
|
122
|
-
* Generation Time: ${(stats.totalTime / 1000).toFixed(2)}s
|
|
123
|
-
* Average per File: ${efficiency.toFixed(0)}ms
|
|
124
|
-
* Success Rate: ${successRate}%
|
|
125
|
-
* Errors: ${stats.errors.length}
|
|
126
|
-
* `.trim();
|
|
127
|
-
* }
|
|
128
|
-
* ```
|
|
129
|
-
*/
|
|
130
|
-
export declare const toGenerationStats: ({ manifest, artifacts }: GenerationStatsArgs) => GenerationStats;
|
|
131
|
-
/**
|
|
132
|
-
* Calculates the total number of GPT tokens in all generated artifacts.
|
|
133
|
-
*
|
|
134
|
-
* This function uses GPT tokenization to count the total number of tokens
|
|
135
|
-
* across all generated code artifacts. This is useful for cost estimation
|
|
136
|
-
* when using token-based pricing models and for understanding the size
|
|
137
|
-
* and complexity of generated content.
|
|
138
|
-
*
|
|
139
|
-
* @param artifacts - Map of file paths to generated content strings
|
|
140
|
-
* @returns Total number of GPT tokens across all artifacts
|
|
141
|
-
*
|
|
142
|
-
* @example
|
|
143
|
-
* ```typescript
|
|
144
|
-
* const artifacts = {
|
|
145
|
-
* './models.ts': 'export interface User { id: string; name: string; }',
|
|
146
|
-
* './types.ts': 'export type Status = "active" | "inactive";'
|
|
147
|
-
* };
|
|
148
|
-
*
|
|
149
|
-
* const tokens = toManifestTokens(artifacts);
|
|
150
|
-
* console.log(tokens); // e.g., 24 tokens
|
|
151
|
-
* ```
|
|
152
|
-
*/
|
|
153
|
-
export declare const toManifestTokens: (artifacts: Record<string, string>) => number;
|
|
154
|
-
/**
|
|
155
|
-
* Calculates the total number of lines across all generated files.
|
|
156
|
-
*
|
|
157
|
-
* This function sums up the line counts from the manifest's file metadata
|
|
158
|
-
* to provide the total lines of code generated. This metric is useful
|
|
159
|
-
* for understanding the scale of code generation and tracking productivity.
|
|
160
|
-
*
|
|
161
|
-
* @param manifest - The generation manifest containing file metadata
|
|
162
|
-
* @returns Total number of lines across all generated files
|
|
163
|
-
*
|
|
164
|
-
* @example
|
|
165
|
-
* ```typescript
|
|
166
|
-
* const manifest = {
|
|
167
|
-
* files: {
|
|
168
|
-
* './models.ts': { lines: 150, characters: 4500 },
|
|
169
|
-
* './types.ts': { lines: 80, characters: 2100 }
|
|
170
|
-
* },
|
|
171
|
-
* // ... other manifest properties
|
|
172
|
-
* };
|
|
173
|
-
*
|
|
174
|
-
* const lines = toManifestLines(manifest);
|
|
175
|
-
* console.log(lines); // 230
|
|
176
|
-
* ```
|
|
177
|
-
*/
|
|
178
|
-
export declare const toManifestLines: (manifest: ManifestContent) => number;
|
|
179
|
-
/**
|
|
180
|
-
* Calculates the total generation time from the manifest timestamps.
|
|
181
|
-
*
|
|
182
|
-
* This function computes the duration of the generation process by
|
|
183
|
-
* calculating the difference between the end and start timestamps
|
|
184
|
-
* recorded in the manifest. The result is in milliseconds.
|
|
185
|
-
*
|
|
186
|
-
* @param manifest - The generation manifest with timing information
|
|
187
|
-
* @returns Total generation time in milliseconds
|
|
188
|
-
*
|
|
189
|
-
* @example
|
|
190
|
-
* ```typescript
|
|
191
|
-
* const manifest = {
|
|
192
|
-
* startAt: 1672531200000, // January 1, 2023 00:00:00 GMT
|
|
193
|
-
* endAt: 1672531245000, // January 1, 2023 00:00:45 GMT
|
|
194
|
-
* // ... other manifest properties
|
|
195
|
-
* };
|
|
196
|
-
*
|
|
197
|
-
* const duration = toTotalTime(manifest);
|
|
198
|
-
* console.log(duration); // 45000 (45 seconds)
|
|
199
|
-
* console.log(`${duration / 1000}s`); // "45s"
|
|
200
|
-
* ```
|
|
201
|
-
*/
|
|
202
|
-
export declare const toTotalTime: (manifest: ManifestContent) => number;
|
|
203
|
-
/**
|
|
204
|
-
* Extracts and organizes error paths from the manifest results.
|
|
205
|
-
*
|
|
206
|
-
* This function recursively traverses the results structure in the manifest
|
|
207
|
-
* to identify all error conditions and their associated file paths. Errors
|
|
208
|
-
* are returned as arrays of path segments, making it easy to understand
|
|
209
|
-
* the location and context of each error.
|
|
210
|
-
*
|
|
211
|
-
* @param results - The results object from the generation manifest
|
|
212
|
-
* @returns Array of error paths, each represented as an array of path segments
|
|
213
|
-
*
|
|
214
|
-
* @example
|
|
215
|
-
* ```typescript
|
|
216
|
-
* const results = {
|
|
217
|
-
* 'models.ts': {
|
|
218
|
-
* 'User': 'success',
|
|
219
|
-
* 'Product': 'error'
|
|
220
|
-
* },
|
|
221
|
-
* 'types.ts': 'success'
|
|
222
|
-
* };
|
|
223
|
-
*
|
|
224
|
-
* const errors = toManifestErrors(results);
|
|
225
|
-
* console.log(errors); // [['models.ts', 'Product']]
|
|
226
|
-
*
|
|
227
|
-
* // Display errors in readable format
|
|
228
|
-
* errors.forEach(errorPath => {
|
|
229
|
-
* console.log(`Error at: ${errorPath.join(' -> ')}`);
|
|
230
|
-
* });
|
|
231
|
-
* // Output: "Error at: models.ts -> Product"
|
|
232
|
-
* ```
|
|
233
|
-
*/
|
|
234
|
-
export declare const toManifestErrors: (results: ManifestContent["results"]) => string[][];
|
|
235
|
-
/**
|
|
236
|
-
* Arguments for recursively checking results for error conditions.
|
|
237
|
-
*/
|
|
238
|
-
type CheckResultArgs = {
|
|
239
|
-
/** Current path segments being traversed */
|
|
240
|
-
path: string[];
|
|
241
|
-
/** The result value to check (can be nested) */
|
|
242
|
-
result: ResultsItem | (ResultsItem | null)[] | ResultType | null;
|
|
243
|
-
/** Array to accumulate error paths (mutated) */
|
|
244
|
-
errors: string[][];
|
|
245
|
-
};
|
|
246
|
-
/**
|
|
247
|
-
* Recursively checks results structure for error conditions and collects error paths.
|
|
248
|
-
*
|
|
249
|
-
* This function traverses the complex nested structure of generation results,
|
|
250
|
-
* identifying error conditions at any level and recording their full path context.
|
|
251
|
-
* It handles arrays, objects, strings, and null values, building a comprehensive
|
|
252
|
-
* map of all errors that occurred during generation.
|
|
253
|
-
*
|
|
254
|
-
* The function mutates the errors array parameter, accumulating error paths
|
|
255
|
-
* as it traverses the results structure. This approach is used for performance
|
|
256
|
-
* when processing large result sets.
|
|
257
|
-
*
|
|
258
|
-
* @param args - Arguments for result checking
|
|
259
|
-
* @param args.path - Current path segments being traversed
|
|
260
|
-
* @param args.result - The result value to check for errors
|
|
261
|
-
* @param args.errors - Array to accumulate error paths (mutated by function)
|
|
262
|
-
*
|
|
263
|
-
* @example Simple error detection
|
|
264
|
-
* ```typescript
|
|
265
|
-
* const errors: string[][] = [];
|
|
266
|
-
*
|
|
267
|
-
* checkResult({
|
|
268
|
-
* path: ['models.ts'],
|
|
269
|
-
* result: 'error',
|
|
270
|
-
* errors
|
|
271
|
-
* });
|
|
272
|
-
*
|
|
273
|
-
* console.log(errors); // [['models.ts']]
|
|
274
|
-
* ```
|
|
275
|
-
*
|
|
276
|
-
* @example Nested structure error detection
|
|
277
|
-
* ```typescript
|
|
278
|
-
* const errors: string[][] = [];
|
|
279
|
-
* const nestedResult = {
|
|
280
|
-
* 'User': 'success',
|
|
281
|
-
* 'Product': {
|
|
282
|
-
* 'validation': 'error',
|
|
283
|
-
* 'generation': 'success'
|
|
284
|
-
* }
|
|
285
|
-
* };
|
|
286
|
-
*
|
|
287
|
-
* checkResult({
|
|
288
|
-
* path: ['models.ts'],
|
|
289
|
-
* result: nestedResult,
|
|
290
|
-
* errors
|
|
291
|
-
* });
|
|
292
|
-
*
|
|
293
|
-
* console.log(errors); // [['models.ts', 'Product', 'validation']]
|
|
294
|
-
* ```
|
|
295
|
-
*
|
|
296
|
-
* @example Array handling
|
|
297
|
-
* ```typescript
|
|
298
|
-
* const errors: string[][] = [];
|
|
299
|
-
* const arrayResult = ['success', null, 'error', 'success'];
|
|
300
|
-
*
|
|
301
|
-
* checkResult({
|
|
302
|
-
* path: ['batch'],
|
|
303
|
-
* result: arrayResult,
|
|
304
|
-
* errors
|
|
305
|
-
* });
|
|
306
|
-
*
|
|
307
|
-
* console.log(errors); // [['batch']] - for the 'error' item
|
|
308
|
-
* ```
|
|
309
|
-
*/
|
|
310
|
-
export declare const checkResult: ({ path, result, errors }: CheckResultArgs) => void;
|
|
311
|
-
export {};
|
|
312
|
-
//# sourceMappingURL=generationStats.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generationStats.d.ts","sourceRoot":"","sources":["../../src/helpers/generationStats.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAIlE;;GAEG;AACH,KAAK,mBAAmB,GAAG;IACzB,oEAAoE;IACpE,QAAQ,EAAE,eAAe,CAAA;IACzB,4DAA4D;IAC5D,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAClC,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,sDAAsD;IACtD,MAAM,EAAE,MAAM,CAAA;IACd,sCAAsC;IACtC,KAAK,EAAE,MAAM,CAAA;IACb,4CAA4C;IAC5C,SAAS,EAAE,MAAM,CAAA;IACjB,6CAA6C;IAC7C,MAAM,EAAE,MAAM,EAAE,EAAE,CAAA;IAClB,sCAAsC;IACtC,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqGG;AACH,eAAO,MAAM,iBAAiB,GAAI,yBAG/B,mBAAmB,KAAG,eAcxB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,gBAAgB,GAAI,WAAW,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAG,MAOpE,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,eAAe,GAAI,UAAU,eAAe,KAAG,MAO3D,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,WAAW,GAAI,UAAU,eAAe,KAAG,MAIvD,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,eAAO,MAAM,gBAAgB,GAAI,SAAS,eAAe,CAAC,SAAS,CAAC,KAAG,MAAM,EAAE,EAQ9E,CAAA;AAED;;GAEG;AACH,KAAK,eAAe,GAAG;IACrB,4CAA4C;IAC5C,IAAI,EAAE,MAAM,EAAE,CAAA;IACd,gDAAgD;IAChD,MAAM,EAAE,WAAW,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,EAAE,GAAG,UAAU,GAAG,IAAI,CAAA;IAChE,gDAAgD;IAChD,MAAM,EAAE,MAAM,EAAE,EAAE,CAAA;CACnB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+DG;AACH,eAAO,MAAM,WAAW,GAAI,0BAA0B,eAAe,KAAG,IA0BvE,CAAA"}
|
|
@@ -1,339 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.checkResult = exports.toManifestErrors = exports.toTotalTime = exports.toManifestLines = exports.toManifestTokens = exports.toGenerationStats = void 0;
|
|
4
|
-
require("../_dnt.polyfills.js");
|
|
5
|
-
const ts_pattern_1 = require("ts-pattern");
|
|
6
|
-
const gpt_tokenizer_1 = require("gpt-tokenizer");
|
|
7
|
-
/**
|
|
8
|
-
* Generates comprehensive statistics about the code generation process.
|
|
9
|
-
*
|
|
10
|
-
* This function analyzes the generation manifest and produced artifacts to create
|
|
11
|
-
* detailed statistics including token counts, lines of code, timing information,
|
|
12
|
-
* error tracking, and file counts. It's used for performance monitoring, debugging,
|
|
13
|
-
* and reporting on generation runs.
|
|
14
|
-
*
|
|
15
|
-
* The function combines multiple analysis methods to provide a complete picture
|
|
16
|
-
* of the generation process, including tokenization analysis for cost estimation,
|
|
17
|
-
* error path extraction for debugging, and timing analysis for performance optimization.
|
|
18
|
-
*
|
|
19
|
-
* @param args - Generation analysis configuration
|
|
20
|
-
* @param args.manifest - The generation manifest with metadata and results
|
|
21
|
-
* @param args.artifacts - Map of file paths to generated content
|
|
22
|
-
* @returns Comprehensive generation statistics object
|
|
23
|
-
*
|
|
24
|
-
* @example Basic usage
|
|
25
|
-
* ```typescript
|
|
26
|
-
* import { toGenerationStats } from '@skmtc/core';
|
|
27
|
-
*
|
|
28
|
-
* const stats = toGenerationStats({
|
|
29
|
-
* manifest: {
|
|
30
|
-
* startAt: 1672531200000,
|
|
31
|
-
* endAt: 1672531245000,
|
|
32
|
-
* files: {
|
|
33
|
-
* './models.ts': { lines: 150, characters: 4500 },
|
|
34
|
-
* './types.ts': { lines: 80, characters: 2100 }
|
|
35
|
-
* },
|
|
36
|
-
* results: { }
|
|
37
|
-
* },
|
|
38
|
-
* artifacts: {
|
|
39
|
-
* './models.ts': 'export interface User { id: string; name: string; }',
|
|
40
|
-
* './types.ts': 'export type Status = "active" | "inactive";'
|
|
41
|
-
* }
|
|
42
|
-
* });
|
|
43
|
-
*
|
|
44
|
-
* console.log(stats);
|
|
45
|
-
* // {
|
|
46
|
-
* // tokens: 250,
|
|
47
|
-
* // lines: 230,
|
|
48
|
-
* // totalTime: 45000,
|
|
49
|
-
* // errors: [],
|
|
50
|
-
* // files: 2
|
|
51
|
-
* // }
|
|
52
|
-
* ```
|
|
53
|
-
*
|
|
54
|
-
* @example Performance monitoring
|
|
55
|
-
* ```typescript
|
|
56
|
-
* class GenerationMonitor {
|
|
57
|
-
* analyzeGeneration(manifest: ManifestContent, artifacts: Record<string, string>) {
|
|
58
|
-
* const stats = toGenerationStats({ manifest, artifacts });
|
|
59
|
-
*
|
|
60
|
-
* console.log(`Generation completed in ${stats.totalTime}ms`);
|
|
61
|
-
* console.log(`Generated ${stats.files} files with ${stats.lines} lines`);
|
|
62
|
-
* console.log(`Token usage: ${stats.tokens} tokens`);
|
|
63
|
-
*
|
|
64
|
-
* if (stats.errors.length > 0) {
|
|
65
|
-
* console.warn(`Found ${stats.errors.length} errors:`);
|
|
66
|
-
* stats.errors.forEach((errorPath, index) => {
|
|
67
|
-
* console.warn(` ${index + 1}. ${errorPath.join(' -> ')}`);
|
|
68
|
-
* });
|
|
69
|
-
* }
|
|
70
|
-
*
|
|
71
|
-
* return stats;
|
|
72
|
-
* }
|
|
73
|
-
* }
|
|
74
|
-
* ```
|
|
75
|
-
*
|
|
76
|
-
* @example Cost estimation
|
|
77
|
-
* ```typescript
|
|
78
|
-
* function estimateGenerationCost(stats: GenerationStats): number {
|
|
79
|
-
* const tokensPerDollar = 1000000; // Example rate
|
|
80
|
-
* const estimatedCost = stats.tokens / tokensPerDollar;
|
|
81
|
-
*
|
|
82
|
-
* console.log(`Estimated cost: $${estimatedCost.toFixed(4)}`);
|
|
83
|
-
* console.log(`Efficiency: ${stats.lines / stats.tokens} lines per token`);
|
|
84
|
-
*
|
|
85
|
-
* return estimatedCost;
|
|
86
|
-
* }
|
|
87
|
-
* ```
|
|
88
|
-
*
|
|
89
|
-
* @example Build reporting
|
|
90
|
-
* ```typescript
|
|
91
|
-
* function generateBuildReport(stats: GenerationStats): string {
|
|
92
|
-
* const efficiency = stats.totalTime / stats.files;
|
|
93
|
-
* const successRate = ((stats.files - stats.errors.length) / stats.files * 100).toFixed(1);
|
|
94
|
-
*
|
|
95
|
-
* return `
|
|
96
|
-
* Build Report:
|
|
97
|
-
* -----------
|
|
98
|
-
* Files Generated: ${stats.files}
|
|
99
|
-
* Total Lines: ${stats.lines.toLocaleString()}
|
|
100
|
-
* Token Count: ${stats.tokens.toLocaleString()}
|
|
101
|
-
* Generation Time: ${(stats.totalTime / 1000).toFixed(2)}s
|
|
102
|
-
* Average per File: ${efficiency.toFixed(0)}ms
|
|
103
|
-
* Success Rate: ${successRate}%
|
|
104
|
-
* Errors: ${stats.errors.length}
|
|
105
|
-
* `.trim();
|
|
106
|
-
* }
|
|
107
|
-
* ```
|
|
108
|
-
*/
|
|
109
|
-
const toGenerationStats = ({ manifest, artifacts }) => {
|
|
110
|
-
const tokens = (0, exports.toManifestTokens)(artifacts);
|
|
111
|
-
const lines = (0, exports.toManifestLines)(manifest);
|
|
112
|
-
const totalTime = (0, exports.toTotalTime)(manifest);
|
|
113
|
-
const errors = (0, exports.toManifestErrors)(manifest.results);
|
|
114
|
-
const files = Object.keys(artifacts).length;
|
|
115
|
-
return {
|
|
116
|
-
tokens,
|
|
117
|
-
lines,
|
|
118
|
-
totalTime,
|
|
119
|
-
errors,
|
|
120
|
-
files
|
|
121
|
-
};
|
|
122
|
-
};
|
|
123
|
-
exports.toGenerationStats = toGenerationStats;
|
|
124
|
-
/**
|
|
125
|
-
* Calculates the total number of GPT tokens in all generated artifacts.
|
|
126
|
-
*
|
|
127
|
-
* This function uses GPT tokenization to count the total number of tokens
|
|
128
|
-
* across all generated code artifacts. This is useful for cost estimation
|
|
129
|
-
* when using token-based pricing models and for understanding the size
|
|
130
|
-
* and complexity of generated content.
|
|
131
|
-
*
|
|
132
|
-
* @param artifacts - Map of file paths to generated content strings
|
|
133
|
-
* @returns Total number of GPT tokens across all artifacts
|
|
134
|
-
*
|
|
135
|
-
* @example
|
|
136
|
-
* ```typescript
|
|
137
|
-
* const artifacts = {
|
|
138
|
-
* './models.ts': 'export interface User { id: string; name: string; }',
|
|
139
|
-
* './types.ts': 'export type Status = "active" | "inactive";'
|
|
140
|
-
* };
|
|
141
|
-
*
|
|
142
|
-
* const tokens = toManifestTokens(artifacts);
|
|
143
|
-
* console.log(tokens); // e.g., 24 tokens
|
|
144
|
-
* ```
|
|
145
|
-
*/
|
|
146
|
-
const toManifestTokens = (artifacts) => {
|
|
147
|
-
const { tokens } = Object.values(artifacts).reduce((acc, artifact) => ({ tokens: acc.tokens + (0, gpt_tokenizer_1.countTokens)(artifact) }), { tokens: 0 });
|
|
148
|
-
return tokens;
|
|
149
|
-
};
|
|
150
|
-
exports.toManifestTokens = toManifestTokens;
|
|
151
|
-
/**
|
|
152
|
-
* Calculates the total number of lines across all generated files.
|
|
153
|
-
*
|
|
154
|
-
* This function sums up the line counts from the manifest's file metadata
|
|
155
|
-
* to provide the total lines of code generated. This metric is useful
|
|
156
|
-
* for understanding the scale of code generation and tracking productivity.
|
|
157
|
-
*
|
|
158
|
-
* @param manifest - The generation manifest containing file metadata
|
|
159
|
-
* @returns Total number of lines across all generated files
|
|
160
|
-
*
|
|
161
|
-
* @example
|
|
162
|
-
* ```typescript
|
|
163
|
-
* const manifest = {
|
|
164
|
-
* files: {
|
|
165
|
-
* './models.ts': { lines: 150, characters: 4500 },
|
|
166
|
-
* './types.ts': { lines: 80, characters: 2100 }
|
|
167
|
-
* },
|
|
168
|
-
* // ... other manifest properties
|
|
169
|
-
* };
|
|
170
|
-
*
|
|
171
|
-
* const lines = toManifestLines(manifest);
|
|
172
|
-
* console.log(lines); // 230
|
|
173
|
-
* ```
|
|
174
|
-
*/
|
|
175
|
-
const toManifestLines = (manifest) => {
|
|
176
|
-
const { lines } = Object.values(manifest.files).reduce((acc, file) => ({ lines: acc.lines + file.lines }), { lines: 0 });
|
|
177
|
-
return lines;
|
|
178
|
-
};
|
|
179
|
-
exports.toManifestLines = toManifestLines;
|
|
180
|
-
/**
|
|
181
|
-
* Calculates the total generation time from the manifest timestamps.
|
|
182
|
-
*
|
|
183
|
-
* This function computes the duration of the generation process by
|
|
184
|
-
* calculating the difference between the end and start timestamps
|
|
185
|
-
* recorded in the manifest. The result is in milliseconds.
|
|
186
|
-
*
|
|
187
|
-
* @param manifest - The generation manifest with timing information
|
|
188
|
-
* @returns Total generation time in milliseconds
|
|
189
|
-
*
|
|
190
|
-
* @example
|
|
191
|
-
* ```typescript
|
|
192
|
-
* const manifest = {
|
|
193
|
-
* startAt: 1672531200000, // January 1, 2023 00:00:00 GMT
|
|
194
|
-
* endAt: 1672531245000, // January 1, 2023 00:00:45 GMT
|
|
195
|
-
* // ... other manifest properties
|
|
196
|
-
* };
|
|
197
|
-
*
|
|
198
|
-
* const duration = toTotalTime(manifest);
|
|
199
|
-
* console.log(duration); // 45000 (45 seconds)
|
|
200
|
-
* console.log(`${duration / 1000}s`); // "45s"
|
|
201
|
-
* ```
|
|
202
|
-
*/
|
|
203
|
-
const toTotalTime = (manifest) => {
|
|
204
|
-
const totalTime = manifest.endAt - manifest.startAt;
|
|
205
|
-
return totalTime;
|
|
206
|
-
};
|
|
207
|
-
exports.toTotalTime = toTotalTime;
|
|
208
|
-
/**
|
|
209
|
-
* Extracts and organizes error paths from the manifest results.
|
|
210
|
-
*
|
|
211
|
-
* This function recursively traverses the results structure in the manifest
|
|
212
|
-
* to identify all error conditions and their associated file paths. Errors
|
|
213
|
-
* are returned as arrays of path segments, making it easy to understand
|
|
214
|
-
* the location and context of each error.
|
|
215
|
-
*
|
|
216
|
-
* @param results - The results object from the generation manifest
|
|
217
|
-
* @returns Array of error paths, each represented as an array of path segments
|
|
218
|
-
*
|
|
219
|
-
* @example
|
|
220
|
-
* ```typescript
|
|
221
|
-
* const results = {
|
|
222
|
-
* 'models.ts': {
|
|
223
|
-
* 'User': 'success',
|
|
224
|
-
* 'Product': 'error'
|
|
225
|
-
* },
|
|
226
|
-
* 'types.ts': 'success'
|
|
227
|
-
* };
|
|
228
|
-
*
|
|
229
|
-
* const errors = toManifestErrors(results);
|
|
230
|
-
* console.log(errors); // [['models.ts', 'Product']]
|
|
231
|
-
*
|
|
232
|
-
* // Display errors in readable format
|
|
233
|
-
* errors.forEach(errorPath => {
|
|
234
|
-
* console.log(`Error at: ${errorPath.join(' -> ')}`);
|
|
235
|
-
* });
|
|
236
|
-
* // Output: "Error at: models.ts -> Product"
|
|
237
|
-
* ```
|
|
238
|
-
*/
|
|
239
|
-
const toManifestErrors = (results) => {
|
|
240
|
-
const errors = [];
|
|
241
|
-
Object.entries(results).map(([path, result]) => {
|
|
242
|
-
return (0, exports.checkResult)({ path: [path], result, errors });
|
|
243
|
-
});
|
|
244
|
-
return errors;
|
|
245
|
-
};
|
|
246
|
-
exports.toManifestErrors = toManifestErrors;
|
|
247
|
-
/**
|
|
248
|
-
* Recursively checks results structure for error conditions and collects error paths.
|
|
249
|
-
*
|
|
250
|
-
* This function traverses the complex nested structure of generation results,
|
|
251
|
-
* identifying error conditions at any level and recording their full path context.
|
|
252
|
-
* It handles arrays, objects, strings, and null values, building a comprehensive
|
|
253
|
-
* map of all errors that occurred during generation.
|
|
254
|
-
*
|
|
255
|
-
* The function mutates the errors array parameter, accumulating error paths
|
|
256
|
-
* as it traverses the results structure. This approach is used for performance
|
|
257
|
-
* when processing large result sets.
|
|
258
|
-
*
|
|
259
|
-
* @param args - Arguments for result checking
|
|
260
|
-
* @param args.path - Current path segments being traversed
|
|
261
|
-
* @param args.result - The result value to check for errors
|
|
262
|
-
* @param args.errors - Array to accumulate error paths (mutated by function)
|
|
263
|
-
*
|
|
264
|
-
* @example Simple error detection
|
|
265
|
-
* ```typescript
|
|
266
|
-
* const errors: string[][] = [];
|
|
267
|
-
*
|
|
268
|
-
* checkResult({
|
|
269
|
-
* path: ['models.ts'],
|
|
270
|
-
* result: 'error',
|
|
271
|
-
* errors
|
|
272
|
-
* });
|
|
273
|
-
*
|
|
274
|
-
* console.log(errors); // [['models.ts']]
|
|
275
|
-
* ```
|
|
276
|
-
*
|
|
277
|
-
* @example Nested structure error detection
|
|
278
|
-
* ```typescript
|
|
279
|
-
* const errors: string[][] = [];
|
|
280
|
-
* const nestedResult = {
|
|
281
|
-
* 'User': 'success',
|
|
282
|
-
* 'Product': {
|
|
283
|
-
* 'validation': 'error',
|
|
284
|
-
* 'generation': 'success'
|
|
285
|
-
* }
|
|
286
|
-
* };
|
|
287
|
-
*
|
|
288
|
-
* checkResult({
|
|
289
|
-
* path: ['models.ts'],
|
|
290
|
-
* result: nestedResult,
|
|
291
|
-
* errors
|
|
292
|
-
* });
|
|
293
|
-
*
|
|
294
|
-
* console.log(errors); // [['models.ts', 'Product', 'validation']]
|
|
295
|
-
* ```
|
|
296
|
-
*
|
|
297
|
-
* @example Array handling
|
|
298
|
-
* ```typescript
|
|
299
|
-
* const errors: string[][] = [];
|
|
300
|
-
* const arrayResult = ['success', null, 'error', 'success'];
|
|
301
|
-
*
|
|
302
|
-
* checkResult({
|
|
303
|
-
* path: ['batch'],
|
|
304
|
-
* result: arrayResult,
|
|
305
|
-
* errors
|
|
306
|
-
* });
|
|
307
|
-
*
|
|
308
|
-
* console.log(errors); // [['batch']] - for the 'error' item
|
|
309
|
-
* ```
|
|
310
|
-
*/
|
|
311
|
-
const checkResult = ({ path, result, errors }) => {
|
|
312
|
-
(0, ts_pattern_1.match)(result)
|
|
313
|
-
.with(ts_pattern_1.P.array(), matchedResult => {
|
|
314
|
-
return matchedResult.map(item => {
|
|
315
|
-
if (item !== null) {
|
|
316
|
-
(0, exports.checkResult)({ path, result: item, errors });
|
|
317
|
-
}
|
|
318
|
-
});
|
|
319
|
-
})
|
|
320
|
-
.with(ts_pattern_1.P.string, matchedResult => {
|
|
321
|
-
if (matchedResult === 'error') {
|
|
322
|
-
errors.push(path);
|
|
323
|
-
}
|
|
324
|
-
})
|
|
325
|
-
.with(ts_pattern_1.P.nullish, matchedResult => {
|
|
326
|
-
return (0, exports.checkResult)({ path, result: matchedResult, errors });
|
|
327
|
-
})
|
|
328
|
-
.otherwise(matched => {
|
|
329
|
-
if (typeof matched === 'object') {
|
|
330
|
-
return Object.entries(matched).map(([key, value]) => {
|
|
331
|
-
return (0, exports.checkResult)({ path: [...path, key], result: value, errors });
|
|
332
|
-
});
|
|
333
|
-
}
|
|
334
|
-
else {
|
|
335
|
-
throw new Error('Invalid result type');
|
|
336
|
-
}
|
|
337
|
-
});
|
|
338
|
-
};
|
|
339
|
-
exports.checkResult = checkResult;
|