@tiangong-lca/pcr 0.0.0-stage → 0.1.2
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/LICENSE +21 -0
- package/NOTICE.md +5 -0
- package/README.md +86 -2
- package/node_modules/ajv/.runkit_example.js +23 -0
- package/node_modules/ajv/LICENSE +22 -0
- package/node_modules/ajv/README.md +207 -0
- package/node_modules/ajv/dist/2019.d.ts +19 -0
- package/node_modules/ajv/dist/2019.js +61 -0
- package/node_modules/ajv/dist/2019.js.map +1 -0
- package/node_modules/ajv/dist/2020.d.ts +19 -0
- package/node_modules/ajv/dist/2020.js +55 -0
- package/node_modules/ajv/dist/2020.js.map +1 -0
- package/node_modules/ajv/dist/ajv.d.ts +18 -0
- package/node_modules/ajv/dist/ajv.js +50 -0
- package/node_modules/ajv/dist/ajv.js.map +1 -0
- package/node_modules/ajv/dist/compile/codegen/code.d.ts +40 -0
- package/node_modules/ajv/dist/compile/codegen/code.js +156 -0
- package/node_modules/ajv/dist/compile/codegen/code.js.map +1 -0
- package/node_modules/ajv/dist/compile/codegen/index.d.ts +79 -0
- package/node_modules/ajv/dist/compile/codegen/index.js +697 -0
- package/node_modules/ajv/dist/compile/codegen/index.js.map +1 -0
- package/node_modules/ajv/dist/compile/codegen/scope.d.ts +79 -0
- package/node_modules/ajv/dist/compile/codegen/scope.js +143 -0
- package/node_modules/ajv/dist/compile/codegen/scope.js.map +1 -0
- package/node_modules/ajv/dist/compile/errors.d.ts +13 -0
- package/node_modules/ajv/dist/compile/errors.js +123 -0
- package/node_modules/ajv/dist/compile/errors.js.map +1 -0
- package/node_modules/ajv/dist/compile/index.d.ts +80 -0
- package/node_modules/ajv/dist/compile/index.js +242 -0
- package/node_modules/ajv/dist/compile/index.js.map +1 -0
- package/node_modules/ajv/dist/compile/jtd/parse.d.ts +4 -0
- package/node_modules/ajv/dist/compile/jtd/parse.js +350 -0
- package/node_modules/ajv/dist/compile/jtd/parse.js.map +1 -0
- package/node_modules/ajv/dist/compile/jtd/serialize.d.ts +4 -0
- package/node_modules/ajv/dist/compile/jtd/serialize.js +236 -0
- package/node_modules/ajv/dist/compile/jtd/serialize.js.map +1 -0
- package/node_modules/ajv/dist/compile/jtd/types.d.ts +6 -0
- package/node_modules/ajv/dist/compile/jtd/types.js +14 -0
- package/node_modules/ajv/dist/compile/jtd/types.js.map +1 -0
- package/node_modules/ajv/dist/compile/names.d.ts +20 -0
- package/node_modules/ajv/dist/compile/names.js +28 -0
- package/node_modules/ajv/dist/compile/names.js.map +1 -0
- package/node_modules/ajv/dist/compile/ref_error.d.ts +6 -0
- package/node_modules/ajv/dist/compile/ref_error.js +12 -0
- package/node_modules/ajv/dist/compile/ref_error.js.map +1 -0
- package/node_modules/ajv/dist/compile/resolve.d.ts +12 -0
- package/node_modules/ajv/dist/compile/resolve.js +155 -0
- package/node_modules/ajv/dist/compile/resolve.js.map +1 -0
- package/node_modules/ajv/dist/compile/rules.d.ts +28 -0
- package/node_modules/ajv/dist/compile/rules.js +26 -0
- package/node_modules/ajv/dist/compile/rules.js.map +1 -0
- package/node_modules/ajv/dist/compile/util.d.ts +40 -0
- package/node_modules/ajv/dist/compile/util.js +178 -0
- package/node_modules/ajv/dist/compile/util.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/applicability.d.ts +6 -0
- package/node_modules/ajv/dist/compile/validate/applicability.js +19 -0
- package/node_modules/ajv/dist/compile/validate/applicability.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/boolSchema.d.ts +4 -0
- package/node_modules/ajv/dist/compile/validate/boolSchema.js +50 -0
- package/node_modules/ajv/dist/compile/validate/boolSchema.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/dataType.d.ts +17 -0
- package/node_modules/ajv/dist/compile/validate/dataType.js +203 -0
- package/node_modules/ajv/dist/compile/validate/dataType.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/defaults.d.ts +2 -0
- package/node_modules/ajv/dist/compile/validate/defaults.js +35 -0
- package/node_modules/ajv/dist/compile/validate/defaults.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/index.d.ts +42 -0
- package/node_modules/ajv/dist/compile/validate/index.js +520 -0
- package/node_modules/ajv/dist/compile/validate/index.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/keyword.d.ts +8 -0
- package/node_modules/ajv/dist/compile/validate/keyword.js +124 -0
- package/node_modules/ajv/dist/compile/validate/keyword.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/subschema.d.ts +47 -0
- package/node_modules/ajv/dist/compile/validate/subschema.js +81 -0
- package/node_modules/ajv/dist/compile/validate/subschema.js.map +1 -0
- package/node_modules/ajv/dist/core.d.ts +174 -0
- package/node_modules/ajv/dist/core.js +618 -0
- package/node_modules/ajv/dist/core.js.map +1 -0
- package/node_modules/ajv/dist/jtd.d.ts +47 -0
- package/node_modules/ajv/dist/jtd.js +72 -0
- package/node_modules/ajv/dist/jtd.js.map +1 -0
- package/node_modules/ajv/dist/refs/data.json +13 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts +2 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/index.js +28 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/index.js.map +1 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json +53 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json +17 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json +57 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json +14 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json +37 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json +90 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json +39 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts +2 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +30 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/index.js.map +1 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +48 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json +17 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json +51 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +37 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json +90 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json +55 -0
- package/node_modules/ajv/dist/refs/json-schema-draft-06.json +137 -0
- package/node_modules/ajv/dist/refs/json-schema-draft-07.json +151 -0
- package/node_modules/ajv/dist/refs/json-schema-secure.json +88 -0
- package/node_modules/ajv/dist/refs/jtd-schema.d.ts +3 -0
- package/node_modules/ajv/dist/refs/jtd-schema.js +118 -0
- package/node_modules/ajv/dist/refs/jtd-schema.js.map +1 -0
- package/node_modules/ajv/dist/runtime/equal.d.ts +6 -0
- package/node_modules/ajv/dist/runtime/equal.js +7 -0
- package/node_modules/ajv/dist/runtime/equal.js.map +1 -0
- package/node_modules/ajv/dist/runtime/parseJson.d.ts +18 -0
- package/node_modules/ajv/dist/runtime/parseJson.js +185 -0
- package/node_modules/ajv/dist/runtime/parseJson.js.map +1 -0
- package/node_modules/ajv/dist/runtime/quote.d.ts +5 -0
- package/node_modules/ajv/dist/runtime/quote.js +30 -0
- package/node_modules/ajv/dist/runtime/quote.js.map +1 -0
- package/node_modules/ajv/dist/runtime/re2.d.ts +6 -0
- package/node_modules/ajv/dist/runtime/re2.js +6 -0
- package/node_modules/ajv/dist/runtime/re2.js.map +1 -0
- package/node_modules/ajv/dist/runtime/timestamp.d.ts +5 -0
- package/node_modules/ajv/dist/runtime/timestamp.js +42 -0
- package/node_modules/ajv/dist/runtime/timestamp.js.map +1 -0
- package/node_modules/ajv/dist/runtime/ucs2length.d.ts +5 -0
- package/node_modules/ajv/dist/runtime/ucs2length.js +24 -0
- package/node_modules/ajv/dist/runtime/ucs2length.js.map +1 -0
- package/node_modules/ajv/dist/runtime/uri.d.ts +6 -0
- package/node_modules/ajv/dist/runtime/uri.js +6 -0
- package/node_modules/ajv/dist/runtime/uri.js.map +1 -0
- package/node_modules/ajv/dist/runtime/validation_error.d.ts +7 -0
- package/node_modules/ajv/dist/runtime/validation_error.js +11 -0
- package/node_modules/ajv/dist/runtime/validation_error.js.map +1 -0
- package/node_modules/ajv/dist/standalone/index.d.ts +6 -0
- package/node_modules/ajv/dist/standalone/index.js +90 -0
- package/node_modules/ajv/dist/standalone/index.js.map +1 -0
- package/node_modules/ajv/dist/standalone/instance.d.ts +12 -0
- package/node_modules/ajv/dist/standalone/instance.js +35 -0
- package/node_modules/ajv/dist/standalone/instance.js.map +1 -0
- package/node_modules/ajv/dist/types/index.d.ts +183 -0
- package/node_modules/ajv/dist/types/index.js +3 -0
- package/node_modules/ajv/dist/types/index.js.map +1 -0
- package/node_modules/ajv/dist/types/json-schema.d.ts +125 -0
- package/node_modules/ajv/dist/types/json-schema.js +3 -0
- package/node_modules/ajv/dist/types/json-schema.js.map +1 -0
- package/node_modules/ajv/dist/types/jtd-schema.d.ts +174 -0
- package/node_modules/ajv/dist/types/jtd-schema.js +3 -0
- package/node_modules/ajv/dist/types/jtd-schema.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +49 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +106 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/allOf.js +23 -0
- package/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts +4 -0
- package/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +12 -0
- package/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts +7 -0
- package/node_modules/ajv/dist/vocabularies/applicator/contains.js +95 -0
- package/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts +21 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +85 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +11 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/if.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/applicator/if.js +66 -0
- package/node_modules/ajv/dist/vocabularies/applicator/if.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/index.d.ts +13 -0
- package/node_modules/ajv/dist/vocabularies/applicator/index.js +44 -0
- package/node_modules/ajv/dist/vocabularies/applicator/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items.js +52 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items2020.js +30 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/not.d.ts +4 -0
- package/node_modules/ajv/dist/vocabularies/applicator/not.js +26 -0
- package/node_modules/ajv/dist/vocabularies/applicator/not.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +60 -0
- package/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +75 -0
- package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +12 -0
- package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/properties.js +54 -0
- package/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +38 -0
- package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +13 -0
- package/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/code.d.ts +17 -0
- package/node_modules/ajv/dist/vocabularies/code.js +131 -0
- package/node_modules/ajv/dist/vocabularies/code.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/core/id.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/core/id.js +10 -0
- package/node_modules/ajv/dist/vocabularies/core/id.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/core/index.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/core/index.js +16 -0
- package/node_modules/ajv/dist/vocabularies/core/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/core/ref.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/core/ref.js +122 -0
- package/node_modules/ajv/dist/vocabularies/core/ref.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/index.js +104 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts +10 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/types.js +9 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/draft2020.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/draft2020.js +23 -0
- package/node_modules/ajv/dist/vocabularies/draft2020.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/draft7.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/draft7.js +17 -0
- package/node_modules/ajv/dist/vocabularies/draft7.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +30 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +51 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/index.js +9 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +16 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +10 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/errors.d.ts +9 -0
- package/node_modules/ajv/dist/vocabularies/errors.js +3 -0
- package/node_modules/ajv/dist/vocabularies/errors.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/format/format.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/format/format.js +92 -0
- package/node_modules/ajv/dist/vocabularies/format/format.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/format/index.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/format/index.js +6 -0
- package/node_modules/ajv/dist/vocabularies/format/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/jtd/discriminator.js +71 -0
- package/node_modules/ajv/dist/vocabularies/jtd/discriminator.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/jtd/elements.js +24 -0
- package/node_modules/ajv/dist/vocabularies/jtd/elements.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/jtd/enum.js +43 -0
- package/node_modules/ajv/dist/vocabularies/jtd/enum.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/error.d.ts +9 -0
- package/node_modules/ajv/dist/vocabularies/jtd/error.js +20 -0
- package/node_modules/ajv/dist/vocabularies/jtd/error.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/index.d.ts +10 -0
- package/node_modules/ajv/dist/vocabularies/jtd/index.js +29 -0
- package/node_modules/ajv/dist/vocabularies/jtd/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/jtd/metadata.js +25 -0
- package/node_modules/ajv/dist/vocabularies/jtd/metadata.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts +4 -0
- package/node_modules/ajv/dist/vocabularies/jtd/nullable.js +22 -0
- package/node_modules/ajv/dist/vocabularies/jtd/nullable.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js +15 -0
- package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts +22 -0
- package/node_modules/ajv/dist/vocabularies/jtd/properties.js +149 -0
- package/node_modules/ajv/dist/vocabularies/jtd/properties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts +4 -0
- package/node_modules/ajv/dist/vocabularies/jtd/ref.js +67 -0
- package/node_modules/ajv/dist/vocabularies/jtd/ref.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/type.d.ts +10 -0
- package/node_modules/ajv/dist/vocabularies/jtd/type.js +69 -0
- package/node_modules/ajv/dist/vocabularies/jtd/type.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/union.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/jtd/union.js +12 -0
- package/node_modules/ajv/dist/vocabularies/jtd/union.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/values.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/jtd/values.js +51 -0
- package/node_modules/ajv/dist/vocabularies/jtd/values.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/metadata.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/metadata.js +18 -0
- package/node_modules/ajv/dist/vocabularies/metadata.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/next.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/next.js +8 -0
- package/node_modules/ajv/dist/vocabularies/next.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/index.js +7 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +40 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +65 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/const.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/validation/const.js +25 -0
- package/node_modules/ajv/dist/vocabularies/validation/const.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +12 -0
- package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/enum.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/validation/enum.js +48 -0
- package/node_modules/ajv/dist/vocabularies/validation/enum.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/index.d.ts +16 -0
- package/node_modules/ajv/dist/vocabularies/validation/index.js +33 -0
- package/node_modules/ajv/dist/vocabularies/validation/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitContains.js +15 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitContains.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitItems.js +24 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitLength.js +27 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts +11 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +27 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +24 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +26 -0
- package/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/validation/pattern.js +33 -0
- package/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/required.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/validation/required.js +79 -0
- package/node_modules/ajv/dist/vocabularies/validation/required.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts +9 -0
- package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +64 -0
- package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +1 -0
- package/node_modules/ajv/lib/2019.ts +81 -0
- package/node_modules/ajv/lib/2020.ts +75 -0
- package/node_modules/ajv/lib/ajv.ts +70 -0
- package/node_modules/ajv/lib/compile/codegen/code.ts +169 -0
- package/node_modules/ajv/lib/compile/codegen/index.ts +852 -0
- package/node_modules/ajv/lib/compile/codegen/scope.ts +215 -0
- package/node_modules/ajv/lib/compile/errors.ts +184 -0
- package/node_modules/ajv/lib/compile/index.ts +324 -0
- package/node_modules/ajv/lib/compile/jtd/parse.ts +411 -0
- package/node_modules/ajv/lib/compile/jtd/serialize.ts +277 -0
- package/node_modules/ajv/lib/compile/jtd/types.ts +16 -0
- package/node_modules/ajv/lib/compile/names.ts +27 -0
- package/node_modules/ajv/lib/compile/ref_error.ts +13 -0
- package/node_modules/ajv/lib/compile/resolve.ts +149 -0
- package/node_modules/ajv/lib/compile/rules.ts +50 -0
- package/node_modules/ajv/lib/compile/util.ts +213 -0
- package/node_modules/ajv/lib/compile/validate/applicability.ts +22 -0
- package/node_modules/ajv/lib/compile/validate/boolSchema.ts +47 -0
- package/node_modules/ajv/lib/compile/validate/dataType.ts +230 -0
- package/node_modules/ajv/lib/compile/validate/defaults.ts +32 -0
- package/node_modules/ajv/lib/compile/validate/index.ts +582 -0
- package/node_modules/ajv/lib/compile/validate/keyword.ts +171 -0
- package/node_modules/ajv/lib/compile/validate/subschema.ts +135 -0
- package/node_modules/ajv/lib/core.ts +892 -0
- package/node_modules/ajv/lib/jtd.ts +132 -0
- package/node_modules/ajv/lib/refs/data.json +13 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts +28 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json +53 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json +17 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json +57 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json +14 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json +37 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json +90 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json +39 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts +30 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json +48 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json +17 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json +51 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json +37 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json +90 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json +55 -0
- package/node_modules/ajv/lib/refs/json-schema-draft-06.json +137 -0
- package/node_modules/ajv/lib/refs/json-schema-draft-07.json +151 -0
- package/node_modules/ajv/lib/refs/json-schema-secure.json +88 -0
- package/node_modules/ajv/lib/refs/jtd-schema.ts +130 -0
- package/node_modules/ajv/lib/runtime/equal.ts +7 -0
- package/node_modules/ajv/lib/runtime/parseJson.ts +177 -0
- package/node_modules/ajv/lib/runtime/quote.ts +31 -0
- package/node_modules/ajv/lib/runtime/re2.ts +6 -0
- package/node_modules/ajv/lib/runtime/timestamp.ts +46 -0
- package/node_modules/ajv/lib/runtime/ucs2length.ts +20 -0
- package/node_modules/ajv/lib/runtime/uri.ts +6 -0
- package/node_modules/ajv/lib/runtime/validation_error.ts +13 -0
- package/node_modules/ajv/lib/standalone/index.ts +100 -0
- package/node_modules/ajv/lib/standalone/instance.ts +36 -0
- package/node_modules/ajv/lib/types/index.ts +244 -0
- package/node_modules/ajv/lib/types/json-schema.ts +187 -0
- package/node_modules/ajv/lib/types/jtd-schema.ts +273 -0
- package/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts +56 -0
- package/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +118 -0
- package/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +22 -0
- package/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts +14 -0
- package/node_modules/ajv/lib/vocabularies/applicator/contains.ts +109 -0
- package/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts +112 -0
- package/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts +11 -0
- package/node_modules/ajv/lib/vocabularies/applicator/if.ts +80 -0
- package/node_modules/ajv/lib/vocabularies/applicator/index.ts +53 -0
- package/node_modules/ajv/lib/vocabularies/applicator/items.ts +59 -0
- package/node_modules/ajv/lib/vocabularies/applicator/items2020.ts +36 -0
- package/node_modules/ajv/lib/vocabularies/applicator/not.ts +38 -0
- package/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts +82 -0
- package/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts +91 -0
- package/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts +12 -0
- package/node_modules/ajv/lib/vocabularies/applicator/properties.ts +57 -0
- package/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts +50 -0
- package/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts +13 -0
- package/node_modules/ajv/lib/vocabularies/code.ts +168 -0
- package/node_modules/ajv/lib/vocabularies/core/id.ts +10 -0
- package/node_modules/ajv/lib/vocabularies/core/index.ts +16 -0
- package/node_modules/ajv/lib/vocabularies/core/ref.ts +129 -0
- package/node_modules/ajv/lib/vocabularies/discriminator/index.ts +113 -0
- package/node_modules/ajv/lib/vocabularies/discriminator/types.ts +12 -0
- package/node_modules/ajv/lib/vocabularies/draft2020.ts +23 -0
- package/node_modules/ajv/lib/vocabularies/draft7.ts +17 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts +31 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts +51 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/index.ts +9 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts +14 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts +10 -0
- package/node_modules/ajv/lib/vocabularies/errors.ts +18 -0
- package/node_modules/ajv/lib/vocabularies/format/format.ts +120 -0
- package/node_modules/ajv/lib/vocabularies/format/index.ts +6 -0
- package/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts +89 -0
- package/node_modules/ajv/lib/vocabularies/jtd/elements.ts +32 -0
- package/node_modules/ajv/lib/vocabularies/jtd/enum.ts +45 -0
- package/node_modules/ajv/lib/vocabularies/jtd/error.ts +23 -0
- package/node_modules/ajv/lib/vocabularies/jtd/index.ts +37 -0
- package/node_modules/ajv/lib/vocabularies/jtd/metadata.ts +24 -0
- package/node_modules/ajv/lib/vocabularies/jtd/nullable.ts +21 -0
- package/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts +15 -0
- package/node_modules/ajv/lib/vocabularies/jtd/properties.ts +184 -0
- package/node_modules/ajv/lib/vocabularies/jtd/ref.ts +76 -0
- package/node_modules/ajv/lib/vocabularies/jtd/type.ts +75 -0
- package/node_modules/ajv/lib/vocabularies/jtd/union.ts +12 -0
- package/node_modules/ajv/lib/vocabularies/jtd/values.ts +58 -0
- package/node_modules/ajv/lib/vocabularies/metadata.ts +17 -0
- package/node_modules/ajv/lib/vocabularies/next.ts +8 -0
- package/node_modules/ajv/lib/vocabularies/unevaluated/index.ts +7 -0
- package/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts +47 -0
- package/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +85 -0
- package/node_modules/ajv/lib/vocabularies/validation/const.ts +28 -0
- package/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts +23 -0
- package/node_modules/ajv/lib/vocabularies/validation/enum.ts +54 -0
- package/node_modules/ajv/lib/vocabularies/validation/index.ts +49 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitContains.ts +16 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitItems.ts +26 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitLength.ts +30 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts +42 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +26 -0
- package/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts +34 -0
- package/node_modules/ajv/lib/vocabularies/validation/pattern.ts +39 -0
- package/node_modules/ajv/lib/vocabularies/validation/required.ts +98 -0
- package/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts +79 -0
- package/node_modules/ajv/package.json +126 -0
- package/node_modules/fast-deep-equal/LICENSE +21 -0
- package/node_modules/fast-deep-equal/README.md +96 -0
- package/node_modules/fast-deep-equal/es6/index.d.ts +2 -0
- package/node_modules/fast-deep-equal/es6/index.js +72 -0
- package/node_modules/fast-deep-equal/es6/react.d.ts +2 -0
- package/node_modules/fast-deep-equal/es6/react.js +79 -0
- package/node_modules/fast-deep-equal/index.d.ts +4 -0
- package/node_modules/fast-deep-equal/index.js +46 -0
- package/node_modules/fast-deep-equal/package.json +61 -0
- package/node_modules/fast-deep-equal/react.d.ts +2 -0
- package/node_modules/fast-deep-equal/react.js +53 -0
- package/node_modules/fast-uri/.gitattributes +2 -0
- package/node_modules/fast-uri/.github/dependabot.yml +13 -0
- package/node_modules/fast-uri/.github/workflows/ci.yml +106 -0
- package/node_modules/fast-uri/.github/workflows/lock-threads.yml +19 -0
- package/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +24 -0
- package/node_modules/fast-uri/LICENSE +30 -0
- package/node_modules/fast-uri/README.md +152 -0
- package/node_modules/fast-uri/benchmark/benchmark.mjs +159 -0
- package/node_modules/fast-uri/benchmark/equal.mjs +51 -0
- package/node_modules/fast-uri/benchmark/non-simple-domain.mjs +22 -0
- package/node_modules/fast-uri/benchmark/package.json +17 -0
- package/node_modules/fast-uri/benchmark/string-array-to-hex-stripped.mjs +24 -0
- package/node_modules/fast-uri/benchmark/ws-is-secure.mjs +65 -0
- package/node_modules/fast-uri/eslint.config.js +6 -0
- package/node_modules/fast-uri/index.js +627 -0
- package/node_modules/fast-uri/lib/schemes.js +272 -0
- package/node_modules/fast-uri/lib/utils.js +747 -0
- package/node_modules/fast-uri/package.json +68 -0
- package/node_modules/fast-uri/test/ajv.test.js +43 -0
- package/node_modules/fast-uri/test/component-safe-serialization.test.js +163 -0
- package/node_modules/fast-uri/test/equal.test.js +145 -0
- package/node_modules/fast-uri/test/fixtures/uri-js-parse.json +503 -0
- package/node_modules/fast-uri/test/fixtures/uri-js-serialize.json +120 -0
- package/node_modules/fast-uri/test/ipv6-canonical.test.js +34 -0
- package/node_modules/fast-uri/test/ipv6-validation.test.js +124 -0
- package/node_modules/fast-uri/test/malformed-percent.test.js +77 -0
- package/node_modules/fast-uri/test/malformed-urn.test.js +61 -0
- package/node_modules/fast-uri/test/parse.test.js +327 -0
- package/node_modules/fast-uri/test/query-fragment-normalization.test.js +33 -0
- package/node_modules/fast-uri/test/reserved-path-normalization.test.js +109 -0
- package/node_modules/fast-uri/test/resolve.test.js +87 -0
- package/node_modules/fast-uri/test/rfc-3986.test.js +90 -0
- package/node_modules/fast-uri/test/scheme-validation.test.js +124 -0
- package/node_modules/fast-uri/test/security-normalization.test.js +140 -0
- package/node_modules/fast-uri/test/security.test.js +431 -0
- package/node_modules/fast-uri/test/serialize.test.js +151 -0
- package/node_modules/fast-uri/test/uri-js-compatibility.test.js +33 -0
- package/node_modules/fast-uri/test/uri-js.test.js +912 -0
- package/node_modules/fast-uri/test/urn-full-input.test.js +29 -0
- package/node_modules/fast-uri/test/util.test.js +38 -0
- package/node_modules/fast-uri/test/websocket-query-preservation.test.js +24 -0
- package/node_modules/fast-uri/tsconfig.json +9 -0
- package/node_modules/fast-uri/types/index.d.ts +60 -0
- package/node_modules/fast-uri/types/index.test-d.ts +17 -0
- package/node_modules/json-schema-traverse/.eslintrc.yml +27 -0
- package/node_modules/json-schema-traverse/.github/FUNDING.yml +2 -0
- package/node_modules/json-schema-traverse/.github/workflows/build.yml +28 -0
- package/node_modules/json-schema-traverse/.github/workflows/publish.yml +27 -0
- package/node_modules/json-schema-traverse/LICENSE +21 -0
- package/node_modules/json-schema-traverse/README.md +95 -0
- package/node_modules/json-schema-traverse/index.d.ts +40 -0
- package/node_modules/json-schema-traverse/index.js +93 -0
- package/node_modules/json-schema-traverse/package.json +43 -0
- package/node_modules/json-schema-traverse/spec/.eslintrc.yml +6 -0
- package/node_modules/json-schema-traverse/spec/fixtures/schema.js +125 -0
- package/node_modules/json-schema-traverse/spec/index.spec.js +171 -0
- package/node_modules/require-from-string/index.js +34 -0
- package/node_modules/require-from-string/license +21 -0
- package/node_modules/require-from-string/package.json +28 -0
- package/node_modules/require-from-string/readme.md +56 -0
- package/package.json +33 -4
- package/packages/pcr-core/schemas/classification-coverage.schema.json +187 -0
- package/packages/pcr-core/schemas/controlled-vocabulary.schema.json +189 -0
- package/packages/pcr-core/schemas/dataset-validation-input.schema.json +7 -0
- package/packages/pcr-core/schemas/feedback-draft-output.schema.json +12 -0
- package/packages/pcr-core/schemas/feedback.schema.json +27 -0
- package/packages/pcr-core/schemas/guidance-output.schema.json +97 -0
- package/packages/pcr-core/schemas/model-validation-input.schema.json +10 -0
- package/packages/pcr-core/schemas/pcr-id-aliases.schema.json +120 -0
- package/packages/pcr-core/schemas/readiness.schema.json +100 -0
- package/packages/pcr-core/schemas/structured-projection.schema.json +269 -0
- package/packages/pcr-core/schemas/validation-output.schema.json +117 -0
- package/packages/pcr-core/src/classification-coverage.mjs +732 -0
- package/packages/pcr-core/src/contracts.mjs +193 -0
- package/packages/pcr-core/src/generated/controlled-vocabulary.mjs +41 -0
- package/packages/pcr-core/src/index.mjs +2101 -0
- package/packages/pcr-core/src/languages.mjs +86 -0
- package/packages/pcr-core/src/offline-library.mjs +121 -0
- package/packages/pcr-core/src/output-semantics.mjs +228 -0
- package/packages/pcr-core/src/pcr-id-aliases.mjs +949 -0
- package/packages/pcr-core/src/projection-completeness.mjs +284 -0
- package/packages/pcr-core/src/projection-integrity.mjs +208 -0
- package/packages/pcr-core/src/read-context.mjs +505 -0
- package/packages/pcr-core/src/schema-validation.mjs +142 -0
- package/packages/pcr-core/src/source-context.mjs +13 -0
- package/packages/pcr-core/src/yaml-lite.mjs +261 -0
- package/packages/tiangong-pcr-cli/bin/tiangong-pcr.mjs +12 -0
- package/packages/tiangong-pcr-cli/src/commands.mjs +1486 -0
- package/skills/tiangong-pcr/SKILL.md +117 -0
- package/skills/tiangong-pcr/references/cli-usage.md +19 -0
- package/skills/tiangong-pcr/references/feedback-loop.md +16 -0
- package/skills/tiangong-pcr/references/model-authoring-loop.md +13 -0
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
const FUNCTIONAL_UNIT_FIELDS = [
|
|
2
|
+
"what",
|
|
3
|
+
"how_much",
|
|
4
|
+
"how_well",
|
|
5
|
+
"how_long_or_cycle",
|
|
6
|
+
"reference_flow_link",
|
|
7
|
+
];
|
|
8
|
+
|
|
9
|
+
const BOUNDARY_ABSTRACTION_FIELDS = [
|
|
10
|
+
"declared_starting_condition",
|
|
11
|
+
"starting_condition_role",
|
|
12
|
+
"product_classification_scope",
|
|
13
|
+
"recursive_input_rule",
|
|
14
|
+
"upstream_dataset_requirement",
|
|
15
|
+
"disclosure",
|
|
16
|
+
];
|
|
17
|
+
|
|
18
|
+
const PUBLISHED_DATASET_PROFILE_FIELDS = [
|
|
19
|
+
"dataset_role",
|
|
20
|
+
"downstream_use",
|
|
21
|
+
"allowed_use",
|
|
22
|
+
"excluded_use",
|
|
23
|
+
"required_metadata",
|
|
24
|
+
"required_quality_disclosure",
|
|
25
|
+
"update_trigger",
|
|
26
|
+
];
|
|
27
|
+
|
|
28
|
+
const REFERENCE_FLOW_FIELDS = [
|
|
29
|
+
["reference_amount"],
|
|
30
|
+
["product_flow_ref", "name"],
|
|
31
|
+
["product_flow_ref", "uuid"],
|
|
32
|
+
["flow_property_ref", "uuid"],
|
|
33
|
+
["unit_group_ref", "uuid"],
|
|
34
|
+
["reference_unit"],
|
|
35
|
+
];
|
|
36
|
+
|
|
37
|
+
function meaningfulScalar(value) {
|
|
38
|
+
return value !== undefined && value !== null && String(value).trim() !== "";
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function valueAtPath(value, segments) {
|
|
42
|
+
return segments.reduce((current, segment) => current?.[segment], value);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
function missingFieldIssue(codePath, displayPath, message) {
|
|
46
|
+
return {
|
|
47
|
+
code: `material_projection.${codePath}`,
|
|
48
|
+
message: message ?? `Material PCR projection requires non-empty ${displayPath}.`,
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
function inventoryFlowRowCount(processInventory) {
|
|
53
|
+
let count = 0;
|
|
54
|
+
for (const processEntry of Array.isArray(processInventory) ? processInventory : []) {
|
|
55
|
+
for (const direction of ["inputs", "outputs"]) {
|
|
56
|
+
for (const flowType of ["product", "waste", "elementary"]) {
|
|
57
|
+
count += Array.isArray(processEntry?.[direction]?.[flowType])
|
|
58
|
+
? processEntry[direction][flowType].length
|
|
59
|
+
: 0;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
return count;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Checks content that must be present before a material projection can guide data production.
|
|
68
|
+
* JSON Schema owns stable shape; this function owns state-sensitive methodology completeness.
|
|
69
|
+
*/
|
|
70
|
+
export function hasDeclaredUnresolvedReferenceProductFlow(projection, manifest) {
|
|
71
|
+
if (
|
|
72
|
+
manifest?.status !== "candidate" ||
|
|
73
|
+
manifest?.content_maturity !== "authored_methodology"
|
|
74
|
+
) {
|
|
75
|
+
return false;
|
|
76
|
+
}
|
|
77
|
+
const productName = String(
|
|
78
|
+
projection?.reference_flow_definition?.product_flow_ref?.name ?? "",
|
|
79
|
+
).trim();
|
|
80
|
+
if (!productName) {
|
|
81
|
+
return false;
|
|
82
|
+
}
|
|
83
|
+
const reviewMetadata = manifest?.review_metadata ?? {};
|
|
84
|
+
const hasLegacyReferenceProductDeclaration =
|
|
85
|
+
(Array.isArray(reviewMetadata.unresolved) &&
|
|
86
|
+
reviewMetadata.unresolved.some((entry) =>
|
|
87
|
+
/reference[_ -]?product[_ -]?flow/iu.test(
|
|
88
|
+
String(entry?.code ?? entry?.issue_id ?? ""),
|
|
89
|
+
),
|
|
90
|
+
)) ||
|
|
91
|
+
(reviewMetadata.reference_flow_identity?.status === "unresolved" &&
|
|
92
|
+
(reviewMetadata.reference_flow_identity?.unresolved_support_fields ?? []).some(
|
|
93
|
+
(field) => String(field) === "reference_product_flow_uuid",
|
|
94
|
+
));
|
|
95
|
+
const unresolvedEntries = [
|
|
96
|
+
...(Array.isArray(reviewMetadata.unresolved?.inventory_flow_uuids)
|
|
97
|
+
? reviewMetadata.unresolved.inventory_flow_uuids
|
|
98
|
+
: []),
|
|
99
|
+
...(Array.isArray(reviewMetadata.unresolved_flow_identities)
|
|
100
|
+
? reviewMetadata.unresolved_flow_identities
|
|
101
|
+
: []),
|
|
102
|
+
...(Array.isArray(reviewMetadata.unresolved)
|
|
103
|
+
? reviewMetadata.unresolved
|
|
104
|
+
.filter((entry) =>
|
|
105
|
+
/reference[_ -]?product[_ -]?flow(?:[_ -]?uuid)?/iu.test(
|
|
106
|
+
String(entry?.code ?? entry?.issue_id ?? ""),
|
|
107
|
+
),
|
|
108
|
+
)
|
|
109
|
+
.map(() => "reference product flow")
|
|
110
|
+
: []),
|
|
111
|
+
...(reviewMetadata.reference_flow_identity?.status === "unresolved" &&
|
|
112
|
+
(reviewMetadata.reference_flow_identity?.unresolved_support_fields ?? []).some(
|
|
113
|
+
(field) => String(field) === "reference_product_flow_uuid",
|
|
114
|
+
)
|
|
115
|
+
? ["reference product flow"]
|
|
116
|
+
: []),
|
|
117
|
+
];
|
|
118
|
+
if (!Array.isArray(unresolvedEntries) || unresolvedEntries.length === 0) {
|
|
119
|
+
return false;
|
|
120
|
+
}
|
|
121
|
+
for (const processEntry of Array.isArray(projection?.process_inventory)
|
|
122
|
+
? projection.process_inventory
|
|
123
|
+
: []) {
|
|
124
|
+
for (const row of Array.isArray(processEntry?.outputs?.product)
|
|
125
|
+
? processEntry.outputs.product
|
|
126
|
+
: []) {
|
|
127
|
+
const rowId = String(row?.row_id ?? "").trim();
|
|
128
|
+
if (
|
|
129
|
+
hasLegacyReferenceProductDeclaration &&
|
|
130
|
+
/^reference_product(?:_|$)/u.test(rowId)
|
|
131
|
+
) {
|
|
132
|
+
return true;
|
|
133
|
+
}
|
|
134
|
+
if (String(row?.name ?? "").trim() !== productName) {
|
|
135
|
+
continue;
|
|
136
|
+
}
|
|
137
|
+
const normalizedProductName = productName.toLocaleLowerCase("en-US");
|
|
138
|
+
const hasMatchingDeclaration = unresolvedEntries.some((entry) => {
|
|
139
|
+
if (typeof entry === "object" && entry !== null) {
|
|
140
|
+
return String(entry.row_id ?? "").trim() === rowId;
|
|
141
|
+
}
|
|
142
|
+
const declaration = String(entry ?? "").trim();
|
|
143
|
+
const normalizedDeclaration = declaration.toLocaleLowerCase("en-US");
|
|
144
|
+
return (
|
|
145
|
+
declaration === rowId ||
|
|
146
|
+
(rowId && declaration.includes(rowId)) ||
|
|
147
|
+
declaration.startsWith("reference_product_") ||
|
|
148
|
+
normalizedDeclaration.includes(normalizedProductName) ||
|
|
149
|
+
/\breference product(?: flow)?\b|参考产品(?:流)?/iu.test(declaration)
|
|
150
|
+
);
|
|
151
|
+
});
|
|
152
|
+
if (hasMatchingDeclaration) {
|
|
153
|
+
return true;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
return false;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export function materialProjectionCompletenessIssues(
|
|
161
|
+
projection,
|
|
162
|
+
{ expectedPcrId, allowUnresolvedProductFlowUuid = false } = {},
|
|
163
|
+
) {
|
|
164
|
+
const issues = [];
|
|
165
|
+
const canonicalPcrId = projection?.product_category_identity?.canonical_pcr_id;
|
|
166
|
+
if (!meaningfulScalar(canonicalPcrId)) {
|
|
167
|
+
issues.push(
|
|
168
|
+
missingFieldIssue(
|
|
169
|
+
"product_category_identity.canonical_pcr_id",
|
|
170
|
+
"product_category_identity.canonical_pcr_id",
|
|
171
|
+
"Product Category Identity requires canonical_pcr_id.",
|
|
172
|
+
),
|
|
173
|
+
);
|
|
174
|
+
} else if (meaningfulScalar(expectedPcrId) && canonicalPcrId !== expectedPcrId) {
|
|
175
|
+
issues.push({
|
|
176
|
+
code: "material_projection.product_category_identity.id_mismatch",
|
|
177
|
+
message: `canonical_pcr_id "${canonicalPcrId}" does not match manifest id "${expectedPcrId}".`,
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
for (const field of FUNCTIONAL_UNIT_FIELDS) {
|
|
182
|
+
if (!meaningfulScalar(projection?.functional_unit?.[field])) {
|
|
183
|
+
issues.push(
|
|
184
|
+
missingFieldIssue(
|
|
185
|
+
`functional_unit.${field}`,
|
|
186
|
+
`functional_unit.${field}`,
|
|
187
|
+
`Functional Unit is missing ${field}.`,
|
|
188
|
+
),
|
|
189
|
+
);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
for (const segments of REFERENCE_FLOW_FIELDS) {
|
|
194
|
+
if (
|
|
195
|
+
allowUnresolvedProductFlowUuid &&
|
|
196
|
+
segments.length === 2 &&
|
|
197
|
+
segments[0] === "product_flow_ref" &&
|
|
198
|
+
segments[1] === "uuid"
|
|
199
|
+
) {
|
|
200
|
+
continue;
|
|
201
|
+
}
|
|
202
|
+
if (!meaningfulScalar(valueAtPath(projection?.reference_flow_definition, segments))) {
|
|
203
|
+
const field = segments.join(".");
|
|
204
|
+
issues.push(
|
|
205
|
+
missingFieldIssue(
|
|
206
|
+
`reference_flow_definition.${field}`,
|
|
207
|
+
`reference_flow_definition.${field}`,
|
|
208
|
+
`Reference Flow Definition is missing ${field}.`,
|
|
209
|
+
),
|
|
210
|
+
);
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
if (!Array.isArray(projection?.measurement_rules) || projection.measurement_rules.length === 0) {
|
|
215
|
+
issues.push(
|
|
216
|
+
missingFieldIssue(
|
|
217
|
+
"measurement_rules",
|
|
218
|
+
"measurement_rules",
|
|
219
|
+
"material PCR requires at least one Measurement and Unit rule.",
|
|
220
|
+
),
|
|
221
|
+
);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
for (const [label, rules, code] of [
|
|
225
|
+
["System Boundary", projection?.system_boundary?.rules, "system_boundary.rules"],
|
|
226
|
+
["Allocation", projection?.allocation_rules, "allocation_rules"],
|
|
227
|
+
["Validation", projection?.validation_rules, "validation_rules"],
|
|
228
|
+
]) {
|
|
229
|
+
if (!Array.isArray(rules) || rules.length === 0) {
|
|
230
|
+
issues.push(
|
|
231
|
+
missingFieldIssue(
|
|
232
|
+
code,
|
|
233
|
+
code,
|
|
234
|
+
`material PCR requires at least one ${label} rule.`,
|
|
235
|
+
),
|
|
236
|
+
);
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
for (const field of BOUNDARY_ABSTRACTION_FIELDS) {
|
|
241
|
+
if (!meaningfulScalar(projection?.boundary_abstraction?.[field])) {
|
|
242
|
+
issues.push(
|
|
243
|
+
missingFieldIssue(
|
|
244
|
+
`boundary_abstraction.${field}`,
|
|
245
|
+
`boundary_abstraction.${field}`,
|
|
246
|
+
`Boundary Abstraction is missing ${field}.`,
|
|
247
|
+
),
|
|
248
|
+
);
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
if (!Array.isArray(projection?.process_map) || projection.process_map.length === 0) {
|
|
253
|
+
issues.push(
|
|
254
|
+
missingFieldIssue(
|
|
255
|
+
"process_map",
|
|
256
|
+
"process_map",
|
|
257
|
+
"material PCR is missing a Process Map.",
|
|
258
|
+
),
|
|
259
|
+
);
|
|
260
|
+
}
|
|
261
|
+
if (inventoryFlowRowCount(projection?.process_inventory) === 0) {
|
|
262
|
+
issues.push(
|
|
263
|
+
missingFieldIssue(
|
|
264
|
+
"process_inventory.flow_rows",
|
|
265
|
+
"process_inventory",
|
|
266
|
+
"material PCR has no process inventory flow rows.",
|
|
267
|
+
),
|
|
268
|
+
);
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
for (const field of PUBLISHED_DATASET_PROFILE_FIELDS) {
|
|
272
|
+
if (!meaningfulScalar(projection?.published_dataset_profile?.[field])) {
|
|
273
|
+
issues.push(
|
|
274
|
+
missingFieldIssue(
|
|
275
|
+
`published_dataset_profile.${field}`,
|
|
276
|
+
`published_dataset_profile.${field}`,
|
|
277
|
+
`Published Dataset Profile is missing ${field}.`,
|
|
278
|
+
),
|
|
279
|
+
);
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
return issues;
|
|
284
|
+
}
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
import { createHash } from "node:crypto";
|
|
2
|
+
|
|
3
|
+
export const PROJECTION_CONTRACT_VERSION = "1";
|
|
4
|
+
export const PROJECTION_GENERATOR = "tiangong-pcr-builder/markdown-projection";
|
|
5
|
+
export const PROJECTION_SOURCE_PATH = "pcr.en-US.md";
|
|
6
|
+
export const PROJECTION_SOURCE_NORMALIZATION = "utf8-lf-v1";
|
|
7
|
+
export const PROJECTION_HASH_ALGORITHM = "sha256";
|
|
8
|
+
|
|
9
|
+
const SHA256_PATTERN = /^sha256:[0-9a-f]{64}$/u;
|
|
10
|
+
const METADATA_MARKER = "projection_metadata:";
|
|
11
|
+
|
|
12
|
+
export function normalizeFingerprintText(value) {
|
|
13
|
+
return String(value ?? "")
|
|
14
|
+
.replace(/^\uFEFF/u, "")
|
|
15
|
+
.replace(/\r\n?/gu, "\n");
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export function sha256Fingerprint(value) {
|
|
19
|
+
return `sha256:${createHash("sha256").update(normalizeFingerprintText(value), "utf8").digest("hex")}`;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export function buildProjectionMetadata({ sourceMarkdown, generatedContent }) {
|
|
23
|
+
return {
|
|
24
|
+
contract_version: PROJECTION_CONTRACT_VERSION,
|
|
25
|
+
generator: PROJECTION_GENERATOR,
|
|
26
|
+
canonical_markdown: {
|
|
27
|
+
path: PROJECTION_SOURCE_PATH,
|
|
28
|
+
normalization: PROJECTION_SOURCE_NORMALIZATION,
|
|
29
|
+
hash_algorithm: PROJECTION_HASH_ALGORITHM,
|
|
30
|
+
sha256: sha256Fingerprint(sourceMarkdown),
|
|
31
|
+
},
|
|
32
|
+
generated_content_sha256: sha256Fingerprint(generatedContent),
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export function splitProjectionDocument(structuredText) {
|
|
37
|
+
const normalized = normalizeFingerprintText(structuredText);
|
|
38
|
+
const lines = normalized.split("\n");
|
|
39
|
+
const markerIndexes = [];
|
|
40
|
+
let offset = 0;
|
|
41
|
+
|
|
42
|
+
for (const [index, line] of lines.entries()) {
|
|
43
|
+
if (line === METADATA_MARKER) {
|
|
44
|
+
markerIndexes.push({ index, offset });
|
|
45
|
+
}
|
|
46
|
+
offset += line.length + 1;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
if (markerIndexes.length !== 1) {
|
|
50
|
+
return {
|
|
51
|
+
valid: false,
|
|
52
|
+
generatedContent: null,
|
|
53
|
+
error: markerIndexes.length === 0
|
|
54
|
+
? "projection_metadata must be present as the final top-level block"
|
|
55
|
+
: "projection_metadata must appear exactly once",
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
const marker = markerIndexes[0];
|
|
60
|
+
for (const line of lines.slice(marker.index + 1)) {
|
|
61
|
+
if (line.trim() && !/^ {2,}\S/u.test(line)) {
|
|
62
|
+
return {
|
|
63
|
+
valid: false,
|
|
64
|
+
generatedContent: null,
|
|
65
|
+
error: "projection_metadata must be the final top-level block",
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
const generatedContent = normalized.slice(0, marker.offset);
|
|
71
|
+
if (!generatedContent.endsWith("\n")) {
|
|
72
|
+
return {
|
|
73
|
+
valid: false,
|
|
74
|
+
generatedContent: null,
|
|
75
|
+
error: "generated projection content must end with a newline before projection_metadata",
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
return { valid: true, generatedContent, error: null };
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function inspectProjectionIntegrity({ sourceMarkdown, structuredText, metadata }) {
|
|
83
|
+
const issues = [];
|
|
84
|
+
const contractVersion = scalarOrNull(metadata?.contract_version);
|
|
85
|
+
const sourceHash = scalarOrNull(metadata?.canonical_markdown?.sha256);
|
|
86
|
+
const generatedContentHash = scalarOrNull(metadata?.generated_content_sha256);
|
|
87
|
+
|
|
88
|
+
if (!metadata || typeof metadata !== "object" || Array.isArray(metadata)) {
|
|
89
|
+
issues.push(issue(
|
|
90
|
+
"projection_fingerprint_missing",
|
|
91
|
+
"structured.yaml is missing projection_metadata.",
|
|
92
|
+
));
|
|
93
|
+
}
|
|
94
|
+
if (contractVersion !== PROJECTION_CONTRACT_VERSION) {
|
|
95
|
+
issues.push(issue(
|
|
96
|
+
"projection_contract_unsupported",
|
|
97
|
+
`Projection contract must be ${PROJECTION_CONTRACT_VERSION}; found ${contractVersion ?? "(missing)"}.`,
|
|
98
|
+
));
|
|
99
|
+
}
|
|
100
|
+
if (metadata?.generator !== PROJECTION_GENERATOR) {
|
|
101
|
+
issues.push(issue(
|
|
102
|
+
"projection_fingerprint_invalid",
|
|
103
|
+
`Projection generator must be ${PROJECTION_GENERATOR}.`,
|
|
104
|
+
));
|
|
105
|
+
}
|
|
106
|
+
if (metadata?.canonical_markdown?.path !== PROJECTION_SOURCE_PATH) {
|
|
107
|
+
issues.push(issue(
|
|
108
|
+
"projection_fingerprint_invalid",
|
|
109
|
+
`Canonical Markdown path must be ${PROJECTION_SOURCE_PATH}.`,
|
|
110
|
+
));
|
|
111
|
+
}
|
|
112
|
+
if (metadata?.canonical_markdown?.normalization !== PROJECTION_SOURCE_NORMALIZATION) {
|
|
113
|
+
issues.push(issue(
|
|
114
|
+
"projection_fingerprint_invalid",
|
|
115
|
+
`Canonical Markdown normalization must be ${PROJECTION_SOURCE_NORMALIZATION}.`,
|
|
116
|
+
));
|
|
117
|
+
}
|
|
118
|
+
if (metadata?.canonical_markdown?.hash_algorithm !== PROJECTION_HASH_ALGORITHM) {
|
|
119
|
+
issues.push(issue(
|
|
120
|
+
"projection_fingerprint_invalid",
|
|
121
|
+
`Canonical Markdown hash algorithm must be ${PROJECTION_HASH_ALGORITHM}.`,
|
|
122
|
+
));
|
|
123
|
+
}
|
|
124
|
+
if (!SHA256_PATTERN.test(sourceHash ?? "") || !SHA256_PATTERN.test(generatedContentHash ?? "")) {
|
|
125
|
+
issues.push(issue(
|
|
126
|
+
"projection_fingerprint_invalid",
|
|
127
|
+
"Projection SHA-256 values must use sha256:<64 lowercase hex>.",
|
|
128
|
+
));
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
const sourceHashValid = SHA256_PATTERN.test(sourceHash ?? "")
|
|
132
|
+
? sourceHash === sha256Fingerprint(sourceMarkdown)
|
|
133
|
+
: null;
|
|
134
|
+
if (sourceHashValid === false) {
|
|
135
|
+
issues.push(issue(
|
|
136
|
+
"projection_source_mismatch",
|
|
137
|
+
"Canonical Markdown SHA-256 does not match projection metadata; regenerate structured.yaml.",
|
|
138
|
+
));
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
const split = splitProjectionDocument(structuredText);
|
|
142
|
+
let contentHashValid = null;
|
|
143
|
+
if (!split.valid) {
|
|
144
|
+
issues.push(issue("projection_fingerprint_invalid", split.error));
|
|
145
|
+
} else if (SHA256_PATTERN.test(generatedContentHash ?? "")) {
|
|
146
|
+
contentHashValid = generatedContentHash === sha256Fingerprint(split.generatedContent);
|
|
147
|
+
if (!contentHashValid) {
|
|
148
|
+
issues.push(issue(
|
|
149
|
+
"projection_content_mismatch",
|
|
150
|
+
"Generated structured projection content SHA-256 does not match projection metadata.",
|
|
151
|
+
));
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
return {
|
|
156
|
+
required: true,
|
|
157
|
+
status: integrityStatus(issues),
|
|
158
|
+
contract_version: contractVersion,
|
|
159
|
+
source_sha256: sourceHash,
|
|
160
|
+
generated_content_sha256: generatedContentHash,
|
|
161
|
+
source_hash_valid: sourceHashValid,
|
|
162
|
+
content_hash_valid: contentHashValid,
|
|
163
|
+
issues: deduplicateIssues(issues),
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
export function projectionNotRequiredState() {
|
|
168
|
+
return {
|
|
169
|
+
required: false,
|
|
170
|
+
status: "not_required",
|
|
171
|
+
contract_version: null,
|
|
172
|
+
source_sha256: null,
|
|
173
|
+
generated_content_sha256: null,
|
|
174
|
+
source_hash_valid: null,
|
|
175
|
+
content_hash_valid: null,
|
|
176
|
+
issues: [],
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
function scalarOrNull(value) {
|
|
181
|
+
return value === undefined || value === null || typeof value === "object"
|
|
182
|
+
? null
|
|
183
|
+
: String(value);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
function issue(code, message) {
|
|
187
|
+
return { code, message };
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
function deduplicateIssues(issues) {
|
|
191
|
+
return [...new Map(issues.map((entry) => [`${entry.code}\0${entry.message}`, entry])).values()];
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
function integrityStatus(issues) {
|
|
195
|
+
const codes = new Set(issues.map((entry) => entry.code));
|
|
196
|
+
for (const [code, status] of [
|
|
197
|
+
["projection_fingerprint_missing", "missing"],
|
|
198
|
+
["projection_contract_unsupported", "unsupported_contract"],
|
|
199
|
+
["projection_source_mismatch", "source_mismatch"],
|
|
200
|
+
["projection_content_mismatch", "content_mismatch"],
|
|
201
|
+
["projection_fingerprint_invalid", "invalid"],
|
|
202
|
+
]) {
|
|
203
|
+
if (codes.has(code)) {
|
|
204
|
+
return status;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
return "current";
|
|
208
|
+
}
|