liminal 0.1.0-beta.25
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 +202 -0
- package/README.md +26 -0
- package/esm/_dnt.shims.d.ts +2 -0
- package/esm/_dnt.shims.d.ts.map +1 -0
- package/esm/_dnt.shims.js +58 -0
- package/esm/_dnt.shims.js.map +1 -0
- package/esm/client/Adapter.d.ts +46 -0
- package/esm/client/Adapter.d.ts.map +1 -0
- package/esm/client/Adapter.js +2 -0
- package/esm/client/Adapter.js.map +1 -0
- package/esm/client/Liminal.d.ts +19 -0
- package/esm/client/Liminal.d.ts.map +1 -0
- package/esm/client/Liminal.js +154 -0
- package/esm/client/Liminal.js.map +1 -0
- package/esm/client/Tool.d.ts +15 -0
- package/esm/client/Tool.d.ts.map +1 -0
- package/esm/client/Tool.js +23 -0
- package/esm/client/Tool.js.map +1 -0
- package/esm/client/constants.d.ts +2 -0
- package/esm/client/constants.d.ts.map +1 -0
- package/esm/client/constants.js +7 -0
- package/esm/client/constants.js.map +1 -0
- package/esm/client/mod.d.ts +5 -0
- package/esm/client/mod.d.ts.map +1 -0
- package/esm/client/mod.js +6 -0
- package/esm/client/mod.js.map +1 -0
- package/esm/core/DescriptionContext.d.ts +11 -0
- package/esm/core/DescriptionContext.d.ts.map +1 -0
- package/esm/core/DescriptionContext.js +103 -0
- package/esm/core/DescriptionContext.js.map +1 -0
- package/esm/core/L.d.ts +4 -0
- package/esm/core/L.d.ts.map +1 -0
- package/esm/core/L.js +4 -0
- package/esm/core/L.js.map +1 -0
- package/esm/core/ReduceDependencies.d.ts +6 -0
- package/esm/core/ReduceDependencies.d.ts.map +1 -0
- package/esm/core/ReduceDependencies.js +2 -0
- package/esm/core/ReduceDependencies.js.map +1 -0
- package/esm/core/Type.d.ts +30 -0
- package/esm/core/Type.d.ts.map +1 -0
- package/esm/core/Type.js +2 -0
- package/esm/core/Type.js.map +1 -0
- package/esm/core/TypeVisitor.d.ts +15 -0
- package/esm/core/TypeVisitor.d.ts.map +1 -0
- package/esm/core/TypeVisitor.js +12 -0
- package/esm/core/TypeVisitor.js.map +1 -0
- package/esm/core/annotations/Annotation.d.ts +7 -0
- package/esm/core/annotations/Annotation.d.ts.map +1 -0
- package/esm/core/annotations/Annotation.js +2 -0
- package/esm/core/annotations/Annotation.js.map +1 -0
- package/esm/core/annotations/Assertion.d.ts +8 -0
- package/esm/core/annotations/Assertion.d.ts.map +1 -0
- package/esm/core/annotations/Assertion.js +8 -0
- package/esm/core/annotations/Assertion.js.map +1 -0
- package/esm/core/annotations/Description.d.ts +7 -0
- package/esm/core/annotations/Description.d.ts.map +1 -0
- package/esm/core/annotations/Description.js +8 -0
- package/esm/core/annotations/Description.js.map +1 -0
- package/esm/core/annotations/Param.d.ts +13 -0
- package/esm/core/annotations/Param.d.ts.map +1 -0
- package/esm/core/annotations/Param.js +11 -0
- package/esm/core/annotations/Param.js.map +1 -0
- package/esm/core/annotations/Template.d.ts +10 -0
- package/esm/core/annotations/Template.d.ts.map +1 -0
- package/esm/core/annotations/Template.js +2 -0
- package/esm/core/annotations/Template.js.map +1 -0
- package/esm/core/annotations/mod.d.ts +6 -0
- package/esm/core/annotations/mod.d.ts.map +1 -0
- package/esm/core/annotations/mod.js +7 -0
- package/esm/core/annotations/mod.js.map +1 -0
- package/esm/core/assert.d.ts +22 -0
- package/esm/core/assert.d.ts.map +1 -0
- package/esm/core/assert.js +155 -0
- package/esm/core/assert.js.map +1 -0
- package/esm/core/declareIntrinsic.d.ts +4 -0
- package/esm/core/declareIntrinsic.d.ts.map +1 -0
- package/esm/core/declareIntrinsic.js +26 -0
- package/esm/core/declareIntrinsic.js.map +1 -0
- package/esm/core/deserialize.d.ts +3 -0
- package/esm/core/deserialize.d.ts.map +1 -0
- package/esm/core/deserialize.js +32 -0
- package/esm/core/deserialize.js.map +1 -0
- package/esm/core/display.d.ts +3 -0
- package/esm/core/display.d.ts.map +1 -0
- package/esm/core/display.js +75 -0
- package/esm/core/display.js.map +1 -0
- package/esm/core/inspect.node.d.ts +5 -0
- package/esm/core/inspect.node.d.ts.map +1 -0
- package/esm/core/inspect.node.js +7 -0
- package/esm/core/inspect.node.js.map +1 -0
- package/esm/core/intrinsics.d.ts +19 -0
- package/esm/core/intrinsics.d.ts.map +1 -0
- package/esm/core/intrinsics.js +64 -0
- package/esm/core/intrinsics.js.map +1 -0
- package/esm/core/intrinsics_util.d.ts +6 -0
- package/esm/core/intrinsics_util.d.ts.map +1 -0
- package/esm/core/intrinsics_util.js +46 -0
- package/esm/core/intrinsics_util.js.map +1 -0
- package/esm/core/isType.d.ts +4 -0
- package/esm/core/isType.d.ts.map +1 -0
- package/esm/core/isType.js +18 -0
- package/esm/core/isType.js.map +1 -0
- package/esm/core/mod.d.ts +13 -0
- package/esm/core/mod.d.ts.map +1 -0
- package/esm/core/mod.js +14 -0
- package/esm/core/mod.js.map +1 -0
- package/esm/core/signature.d.ts +4 -0
- package/esm/core/signature.d.ts.map +1 -0
- package/esm/core/signature.js +93 -0
- package/esm/core/signature.js.map +1 -0
- package/esm/core/utility/Flatten.d.ts +8 -0
- package/esm/core/utility/Flatten.d.ts.map +1 -0
- package/esm/core/utility/Flatten.js +6 -0
- package/esm/core/utility/Flatten.js.map +1 -0
- package/esm/core/utility/Intersection.d.ts +12 -0
- package/esm/core/utility/Intersection.d.ts.map +1 -0
- package/esm/core/utility/Intersection.js +5 -0
- package/esm/core/utility/Intersection.js.map +1 -0
- package/esm/core/utility/Option.d.ts +3 -0
- package/esm/core/utility/Option.d.ts.map +1 -0
- package/esm/core/utility/Option.js +5 -0
- package/esm/core/utility/Option.js.map +1 -0
- package/esm/core/utility/Record.d.ts +3 -0
- package/esm/core/utility/Record.d.ts.map +1 -0
- package/esm/core/utility/Record.js +6 -0
- package/esm/core/utility/Record.js.map +1 -0
- package/esm/core/utility/Set.d.ts +4 -0
- package/esm/core/utility/Set.d.ts.map +1 -0
- package/esm/core/utility/Set.js +7 -0
- package/esm/core/utility/Set.js.map +1 -0
- package/esm/core/utility/TaggedUnion.d.ts +13 -0
- package/esm/core/utility/TaggedUnion.d.ts.map +1 -0
- package/esm/core/utility/TaggedUnion.js +8 -0
- package/esm/core/utility/TaggedUnion.js.map +1 -0
- package/esm/core/utility/Tuple.d.ts +9 -0
- package/esm/core/utility/Tuple.d.ts.map +1 -0
- package/esm/core/utility/Tuple.js +11 -0
- package/esm/core/utility/Tuple.js.map +1 -0
- package/esm/core/utility/mod.d.ts +8 -0
- package/esm/core/utility/mod.d.ts.map +1 -0
- package/esm/core/utility/mod.js +9 -0
- package/esm/core/utility/mod.js.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/almost_equals.d.ts +29 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/almost_equals.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/almost_equals.js +47 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/almost_equals.js.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/array_includes.d.ts +24 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/array_includes.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/array_includes.js +47 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/array_includes.js.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/assert.d.ts +16 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/assert.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/assert.js +23 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/assert.js.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/assertion_error.d.ts +26 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/assertion_error.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/assertion_error.js +31 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/assertion_error.js.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/equal.d.ts +17 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/equal.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/equal.js +184 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/equal.js.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/equals.d.ts +35 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/equals.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/equals.js +59 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/equals.js.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/exists.d.ts +18 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/exists.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/exists.js +28 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/exists.js.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/fail.d.ts +15 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/fail.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/fail.js +21 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/fail.js.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/false.d.ts +18 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/false.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/false.js +23 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/false.js.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/greater.d.ts +20 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/greater.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/greater.js +30 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/greater.js.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/greater_or_equal.d.ts +20 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/greater_or_equal.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/greater_or_equal.js +30 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/greater_or_equal.js.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/instance_of.d.ts +23 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/instance_of.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/instance_of.js +53 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/instance_of.js.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/is_error.d.ts +25 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/is_error.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/is_error.js +54 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/is_error.js.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/less.d.ts +19 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/less.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/less.js +29 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/less.js.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/less_or_equal.d.ts +20 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/less_or_equal.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/less_or_equal.js +30 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/less_or_equal.js.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/match.d.ts +18 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/match.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/match.js +27 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/match.js.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/mod.d.ts +44 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/mod.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/mod.js +46 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/mod.js.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/not_equals.d.ts +21 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/not_equals.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/not_equals.js +34 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/not_equals.js.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/not_instance_of.d.ts +20 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/not_instance_of.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/not_instance_of.js +30 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/not_instance_of.js.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/not_match.d.ts +18 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/not_match.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/not_match.js +27 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/not_match.js.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/not_strict_equals.d.ts +23 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/not_strict_equals.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/not_strict_equals.js +33 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/not_strict_equals.js.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/object_match.d.ts +29 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/object_match.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/object_match.js +161 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/object_match.js.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/rejects.d.ts +42 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/rejects.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/rejects.js +54 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/rejects.js.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/strict_equals.d.ts +24 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/strict_equals.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/strict_equals.js +58 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/strict_equals.js.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/string_includes.d.ts +18 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/string_includes.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/string_includes.js +27 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/string_includes.js.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/throws.d.ts +45 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/throws.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/throws.js +45 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/throws.js.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/unimplemented.d.ts +15 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/unimplemented.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/unimplemented.js +21 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/unimplemented.js.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/unreachable.d.ts +15 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/unreachable.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/unreachable.js +21 -0
- package/esm/deps/jsr.io/@std/assert/1.0.10/unreachable.js.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/_base32_common.d.ts +17 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/_base32_common.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/_base32_common.js +184 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/_base32_common.js.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/_validate_binary_like.d.ts +2 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/_validate_binary_like.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/_validate_binary_like.js +27 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/_validate_binary_like.js.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/ascii85.d.ts +59 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/ascii85.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/ascii85.js +153 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/ascii85.js.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/base32.d.ts +38 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/base32.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/base32.js +70 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/base32.js.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/base58.d.ts +38 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/base58.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/base58.js +132 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/base58.js.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/base64.d.ts +38 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/base64.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/base64.js +164 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/base64.js.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/base64url.d.ts +38 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/base64url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/base64url.js +82 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/base64url.js.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/hex.d.ts +37 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/hex.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/hex.js +110 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/hex.js.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/mod.d.ts +22 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/mod.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/mod.js +23 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/mod.js.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/varint.d.ts +118 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/varint.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/varint.js +208 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.6/varint.js.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/build_message.d.ts +82 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/build_message.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/build_message.js +111 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/build_message.js.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/diff.d.ts +140 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/diff.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/diff.js +277 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/diff.js.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/diff_str.d.ts +99 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/diff_str.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/diff_str.js +180 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/diff_str.js.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/format.d.ts +2 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/format.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/format.js +38 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/format.js.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/styles.d.ts +159 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/styles.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/styles.js +208 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/styles.js.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/types.d.ts +16 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/types.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/types.js +3 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/types.js.map +1 -0
- package/esm/json_schema/Hydrated.d.ts +4 -0
- package/esm/json_schema/Hydrated.d.ts.map +1 -0
- package/esm/json_schema/Hydrated.js +49 -0
- package/esm/json_schema/Hydrated.js.map +1 -0
- package/esm/json_schema/JSONSchema.d.ts +50 -0
- package/esm/json_schema/JSONSchema.d.ts.map +1 -0
- package/esm/json_schema/JSONSchema.js +46 -0
- package/esm/json_schema/JSONSchema.js.map +1 -0
- package/esm/json_schema/MetaType.d.ts +4 -0
- package/esm/json_schema/MetaType.d.ts.map +1 -0
- package/esm/json_schema/MetaType.js +25 -0
- package/esm/json_schema/MetaType.js.map +1 -0
- package/esm/json_schema/MetaTypeMigration.d.ts +19 -0
- package/esm/json_schema/MetaTypeMigration.d.ts.map +1 -0
- package/esm/json_schema/MetaTypeMigration.js +15 -0
- package/esm/json_schema/MetaTypeMigration.js.map +1 -0
- package/esm/json_schema/PathLike.d.ts +4 -0
- package/esm/json_schema/PathLike.d.ts.map +1 -0
- package/esm/json_schema/PathLike.js +3 -0
- package/esm/json_schema/PathLike.js.map +1 -0
- package/esm/json_schema/mod.d.ts +7 -0
- package/esm/json_schema/mod.d.ts.map +1 -0
- package/esm/json_schema/mod.js +8 -0
- package/esm/json_schema/mod.js.map +1 -0
- package/esm/json_schema/toJSONSchema.d.ts +4 -0
- package/esm/json_schema/toJSONSchema.d.ts.map +1 -0
- package/esm/json_schema/toJSONSchema.js +117 -0
- package/esm/json_schema/toJSONSchema.js.map +1 -0
- package/esm/mod.d.ts +4 -0
- package/esm/mod.d.ts.map +1 -0
- package/esm/mod.js +4 -0
- package/esm/mod.js.map +1 -0
- package/esm/package.json +3 -0
- package/esm/providers/OpenAI/OpenAIAdapter.d.ts +17 -0
- package/esm/providers/OpenAI/OpenAIAdapter.d.ts.map +1 -0
- package/esm/providers/OpenAI/OpenAIAdapter.js +56 -0
- package/esm/providers/OpenAI/OpenAIAdapter.js.map +1 -0
- package/esm/providers/OpenAI/OpenAIResponseFormat.d.ts +18 -0
- package/esm/providers/OpenAI/OpenAIResponseFormat.d.ts.map +1 -0
- package/esm/providers/OpenAI/OpenAIResponseFormat.js +26 -0
- package/esm/providers/OpenAI/OpenAIResponseFormat.js.map +1 -0
- package/esm/providers/OpenAI/TokenAllowance.d.ts +17 -0
- package/esm/providers/OpenAI/TokenAllowance.d.ts.map +1 -0
- package/esm/providers/OpenAI/TokenAllowance.js +32 -0
- package/esm/providers/OpenAI/TokenAllowance.js.map +1 -0
- package/esm/providers/OpenAI/mod.d.ts +6 -0
- package/esm/providers/OpenAI/mod.d.ts.map +1 -0
- package/esm/providers/OpenAI/mod.js +7 -0
- package/esm/providers/OpenAI/mod.js.map +1 -0
- package/esm/providers/OpenAI/openai_util.d.ts +4 -0
- package/esm/providers/OpenAI/openai_util.d.ts.map +1 -0
- package/esm/providers/OpenAI/openai_util.js +14 -0
- package/esm/providers/OpenAI/openai_util.js.map +1 -0
- package/esm/providers/OpenAI/refine.d.ts +2 -0
- package/esm/providers/OpenAI/refine.d.ts.map +1 -0
- package/esm/providers/OpenAI/refine.js +166 -0
- package/esm/providers/OpenAI/refine.js.map +1 -0
- package/esm/util/ArrayOfLength.d.ts +2 -0
- package/esm/util/ArrayOfLength.d.ts.map +1 -0
- package/esm/util/ArrayOfLength.js +2 -0
- package/esm/util/ArrayOfLength.js.map +1 -0
- package/esm/util/PromiseOr.d.ts +2 -0
- package/esm/util/PromiseOr.d.ts.map +1 -0
- package/esm/util/PromiseOr.js +2 -0
- package/esm/util/PromiseOr.js.map +1 -0
- package/esm/util/WeakMemo.d.ts +7 -0
- package/esm/util/WeakMemo.d.ts.map +1 -0
- package/esm/util/WeakMemo.js +32 -0
- package/esm/util/WeakMemo.js.map +1 -0
- package/esm/util/collect.d.ts +2 -0
- package/esm/util/collect.d.ts.map +1 -0
- package/esm/util/collect.js +8 -0
- package/esm/util/collect.js.map +1 -0
- package/esm/util/isPromise.d.ts +2 -0
- package/esm/util/isPromise.d.ts.map +1 -0
- package/esm/util/isPromise.js +7 -0
- package/esm/util/isPromise.js.map +1 -0
- package/esm/util/isTemplateStringsArray.d.ts +2 -0
- package/esm/util/isTemplateStringsArray.d.ts.map +1 -0
- package/esm/util/isTemplateStringsArray.js +4 -0
- package/esm/util/isTemplateStringsArray.js.map +1 -0
- package/esm/util/mod.d.ts +10 -0
- package/esm/util/mod.d.ts.map +1 -0
- package/esm/util/mod.js +11 -0
- package/esm/util/mod.js.map +1 -0
- package/esm/util/recombine.d.ts +2 -0
- package/esm/util/recombine.d.ts.map +1 -0
- package/esm/util/recombine.js +11 -0
- package/esm/util/recombine.js.map +1 -0
- package/esm/util/splitLast.d.ts +2 -0
- package/esm/util/splitLast.d.ts.map +1 -0
- package/esm/util/splitLast.js +8 -0
- package/esm/util/splitLast.js.map +1 -0
- package/esm/util/type_util.d.ts +5 -0
- package/esm/util/type_util.d.ts.map +1 -0
- package/esm/util/type_util.js +2 -0
- package/esm/util/type_util.js.map +1 -0
- package/package.json +22 -0
- package/src/_dnt.shims.ts +60 -0
- package/src/client/Adapter.ts +50 -0
- package/src/client/Liminal.ts +113 -0
- package/src/client/Tool.ts +17 -0
- package/src/client/constants.ts +6 -0
- package/src/client/mod.ts +6 -0
- package/src/core/DescriptionContext.ts +89 -0
- package/src/core/L.ts +3 -0
- package/src/core/ReduceDependencies.ts +9 -0
- package/src/core/Type.ts +45 -0
- package/src/core/TypeVisitor.ts +44 -0
- package/src/core/annotations/Annotation.ts +14 -0
- package/src/core/annotations/Assertion.ts +18 -0
- package/src/core/annotations/Description.ts +16 -0
- package/src/core/annotations/Param.ts +30 -0
- package/src/core/annotations/Template.ts +11 -0
- package/src/core/annotations/mod.ts +7 -0
- package/src/core/assert.ts +145 -0
- package/src/core/declareIntrinsic.ts +45 -0
- package/src/core/deserialize.ts +36 -0
- package/src/core/display.ts +68 -0
- package/src/core/inspect.node.ts +13 -0
- package/src/core/intrinsics.ts +86 -0
- package/src/core/intrinsics_util.ts +50 -0
- package/src/core/isType.ts +20 -0
- package/src/core/mod.ts +15 -0
- package/src/core/signature.ts +90 -0
- package/src/core/utility/Flatten.ts +14 -0
- package/src/core/utility/Intersection.ts +24 -0
- package/src/core/utility/Option.ts +6 -0
- package/src/core/utility/Record.ts +7 -0
- package/src/core/utility/Set.ts +8 -0
- package/src/core/utility/TaggedUnion.ts +23 -0
- package/src/core/utility/Tuple.ts +24 -0
- package/src/core/utility/mod.ts +9 -0
- package/src/deps/jsr.io/@std/assert/1.0.10/almost_equals.ts +55 -0
- package/src/deps/jsr.io/@std/assert/1.0.10/array_includes.ts +57 -0
- package/src/deps/jsr.io/@std/assert/1.0.10/assert.ts +23 -0
- package/src/deps/jsr.io/@std/assert/1.0.10/assertion_error.ts +31 -0
- package/src/deps/jsr.io/@std/assert/1.0.10/equal.ts +210 -0
- package/src/deps/jsr.io/@std/assert/1.0.10/equals.ts +65 -0
- package/src/deps/jsr.io/@std/assert/1.0.10/exists.ts +31 -0
- package/src/deps/jsr.io/@std/assert/1.0.10/fail.ts +21 -0
- package/src/deps/jsr.io/@std/assert/1.0.10/false.ts +26 -0
- package/src/deps/jsr.io/@std/assert/1.0.10/greater.ts +30 -0
- package/src/deps/jsr.io/@std/assert/1.0.10/greater_or_equal.ts +36 -0
- package/src/deps/jsr.io/@std/assert/1.0.10/instance_of.ts +64 -0
- package/src/deps/jsr.io/@std/assert/1.0.10/is_error.ts +65 -0
- package/src/deps/jsr.io/@std/assert/1.0.10/less.ts +29 -0
- package/src/deps/jsr.io/@std/assert/1.0.10/less_or_equal.ts +36 -0
- package/src/deps/jsr.io/@std/assert/1.0.10/match.ts +30 -0
- package/src/deps/jsr.io/@std/assert/1.0.10/mod.ts +47 -0
- package/src/deps/jsr.io/@std/assert/1.0.10/not_equals.ts +37 -0
- package/src/deps/jsr.io/@std/assert/1.0.10/not_instance_of.ts +33 -0
- package/src/deps/jsr.io/@std/assert/1.0.10/not_match.ts +30 -0
- package/src/deps/jsr.io/@std/assert/1.0.10/not_strict_equals.ts +42 -0
- package/src/deps/jsr.io/@std/assert/1.0.10/object_match.ts +203 -0
- package/src/deps/jsr.io/@std/assert/1.0.10/rejects.ts +123 -0
- package/src/deps/jsr.io/@std/assert/1.0.10/strict_equals.ts +67 -0
- package/src/deps/jsr.io/@std/assert/1.0.10/string_includes.ts +30 -0
- package/src/deps/jsr.io/@std/assert/1.0.10/throws.ts +111 -0
- package/src/deps/jsr.io/@std/assert/1.0.10/unimplemented.ts +21 -0
- package/src/deps/jsr.io/@std/assert/1.0.10/unreachable.ts +21 -0
- package/src/deps/jsr.io/@std/encoding/1.0.6/_base32_common.ts +218 -0
- package/src/deps/jsr.io/@std/encoding/1.0.6/_validate_binary_like.ts +29 -0
- package/src/deps/jsr.io/@std/encoding/1.0.6/ascii85.ts +203 -0
- package/src/deps/jsr.io/@std/encoding/1.0.6/base32.ts +73 -0
- package/src/deps/jsr.io/@std/encoding/1.0.6/base58.ts +173 -0
- package/src/deps/jsr.io/@std/encoding/1.0.6/base64.ts +174 -0
- package/src/deps/jsr.io/@std/encoding/1.0.6/base64url.ts +88 -0
- package/src/deps/jsr.io/@std/encoding/1.0.6/hex.ts +120 -0
- package/src/deps/jsr.io/@std/encoding/1.0.6/mod.ts +24 -0
- package/src/deps/jsr.io/@std/encoding/1.0.6/varint.ts +242 -0
- package/src/deps/jsr.io/@std/internal/1.0.5/build_message.ts +134 -0
- package/src/deps/jsr.io/@std/internal/1.0.5/diff.ts +317 -0
- package/src/deps/jsr.io/@std/internal/1.0.5/diff_str.ts +204 -0
- package/src/deps/jsr.io/@std/internal/1.0.5/format.ts +39 -0
- package/src/deps/jsr.io/@std/internal/1.0.5/styles.ts +233 -0
- package/src/deps/jsr.io/@std/internal/1.0.5/types.ts +18 -0
- package/src/json_schema/Hydrated.ts +52 -0
- package/src/json_schema/JSONSchema.ts +95 -0
- package/src/json_schema/MetaType.ts +32 -0
- package/src/json_schema/MetaTypeMigration.ts +31 -0
- package/src/json_schema/PathLike.ts +9 -0
- package/src/json_schema/mod.ts +8 -0
- package/src/json_schema/toJSONSchema.ts +114 -0
- package/src/mod.ts +3 -0
- package/src/providers/OpenAI/OpenAIAdapter.ts +89 -0
- package/src/providers/OpenAI/OpenAIResponseFormat.ts +54 -0
- package/src/providers/OpenAI/TokenAllowance.ts +29 -0
- package/src/providers/OpenAI/mod.ts +7 -0
- package/src/providers/OpenAI/openai_util.ts +19 -0
- package/src/providers/OpenAI/refine.ts +171 -0
- package/src/util/ArrayOfLength.ts +5 -0
- package/src/util/PromiseOr.ts +1 -0
- package/src/util/WeakMemo.ts +13 -0
- package/src/util/collect.ts +7 -0
- package/src/util/isPromise.ts +8 -0
- package/src/util/isTemplateStringsArray.ts +3 -0
- package/src/util/mod.ts +11 -0
- package/src/util/recombine.ts +10 -0
- package/src/util/splitLast.ts +7 -0
- package/src/util/type_util.ts +3 -0
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sets the style of text to be printed to bold.
|
|
3
|
+
*
|
|
4
|
+
* Disable by setting the `NO_COLOR` environmental variable.
|
|
5
|
+
*
|
|
6
|
+
* @param str Text to make bold
|
|
7
|
+
*
|
|
8
|
+
* @returns Bold text for printing
|
|
9
|
+
*
|
|
10
|
+
* @example Usage
|
|
11
|
+
* ```ts no-assert
|
|
12
|
+
* import { bold } from "@std/internal/styles";
|
|
13
|
+
*
|
|
14
|
+
* console.log(bold("Hello, world!")); // Prints "Hello, world!" in bold
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
export declare function bold(str: string): string;
|
|
18
|
+
/**
|
|
19
|
+
* Sets the color of text to be printed to red.
|
|
20
|
+
*
|
|
21
|
+
* Disable by setting the `NO_COLOR` environmental variable.
|
|
22
|
+
*
|
|
23
|
+
* @param str Text to make red
|
|
24
|
+
*
|
|
25
|
+
* @returns Red text for printing
|
|
26
|
+
*
|
|
27
|
+
* @example Usage
|
|
28
|
+
* ```ts no-assert
|
|
29
|
+
* import { red } from "@std/internal/styles";
|
|
30
|
+
*
|
|
31
|
+
* console.log(red("Hello, world!")); // Prints "Hello, world!" in red
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
export declare function red(str: string): string;
|
|
35
|
+
/**
|
|
36
|
+
* Sets the color of text to be printed to green.
|
|
37
|
+
*
|
|
38
|
+
* Disable by setting the `NO_COLOR` environmental variable.
|
|
39
|
+
*
|
|
40
|
+
* @param str Text to make green
|
|
41
|
+
*
|
|
42
|
+
* @returns Green text for print
|
|
43
|
+
*
|
|
44
|
+
* @example Usage
|
|
45
|
+
* ```ts no-assert
|
|
46
|
+
* import { green } from "@std/internal/styles";
|
|
47
|
+
*
|
|
48
|
+
* console.log(green("Hello, world!")); // Prints "Hello, world!" in green
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
export declare function green(str: string): string;
|
|
52
|
+
/**
|
|
53
|
+
* Sets the color of text to be printed to yellow.
|
|
54
|
+
*
|
|
55
|
+
* Disable by setting the `NO_COLOR` environmental variable.
|
|
56
|
+
*
|
|
57
|
+
* @param str Text to make yellow
|
|
58
|
+
*
|
|
59
|
+
* @returns Yellow text for print
|
|
60
|
+
*
|
|
61
|
+
* @example Usage
|
|
62
|
+
* ```ts no-assert
|
|
63
|
+
* import { yellow } from "@std/internal/styles";
|
|
64
|
+
*
|
|
65
|
+
* console.log(yellow("Hello, world!")); // Prints "Hello, world!" in yellow
|
|
66
|
+
* ```
|
|
67
|
+
*/
|
|
68
|
+
export declare function yellow(str: string): string;
|
|
69
|
+
/**
|
|
70
|
+
* Sets the color of text to be printed to white.
|
|
71
|
+
*
|
|
72
|
+
* @param str Text to make white
|
|
73
|
+
*
|
|
74
|
+
* @returns White text for print
|
|
75
|
+
*
|
|
76
|
+
* @example Usage
|
|
77
|
+
* ```ts no-assert
|
|
78
|
+
* import { white } from "@std/internal/styles";
|
|
79
|
+
*
|
|
80
|
+
* console.log(white("Hello, world!")); // Prints "Hello, world!" in white
|
|
81
|
+
* ```
|
|
82
|
+
*/
|
|
83
|
+
export declare function white(str: string): string;
|
|
84
|
+
/**
|
|
85
|
+
* Sets the color of text to be printed to gray.
|
|
86
|
+
*
|
|
87
|
+
* @param str Text to make gray
|
|
88
|
+
*
|
|
89
|
+
* @returns Gray text for print
|
|
90
|
+
*
|
|
91
|
+
* @example Usage
|
|
92
|
+
* ```ts no-assert
|
|
93
|
+
* import { gray } from "@std/internal/styles";
|
|
94
|
+
*
|
|
95
|
+
* console.log(gray("Hello, world!")); // Prints "Hello, world!" in gray
|
|
96
|
+
* ```
|
|
97
|
+
*/
|
|
98
|
+
export declare function gray(str: string): string;
|
|
99
|
+
/**
|
|
100
|
+
* Sets the color of text to be printed to bright-black.
|
|
101
|
+
*
|
|
102
|
+
* @param str Text to make bright-black
|
|
103
|
+
*
|
|
104
|
+
* @returns Bright-black text for print
|
|
105
|
+
*
|
|
106
|
+
* @example Usage
|
|
107
|
+
* ```ts no-assert
|
|
108
|
+
* import { brightBlack } from "@std/internal/styles";
|
|
109
|
+
*
|
|
110
|
+
* console.log(brightBlack("Hello, world!")); // Prints "Hello, world!" in bright-black
|
|
111
|
+
* ```
|
|
112
|
+
*/
|
|
113
|
+
export declare function brightBlack(str: string): string;
|
|
114
|
+
/**
|
|
115
|
+
* Sets the background color of text to be printed to red.
|
|
116
|
+
*
|
|
117
|
+
* @param str Text to make its background red
|
|
118
|
+
*
|
|
119
|
+
* @returns Red background text for print
|
|
120
|
+
*
|
|
121
|
+
* @example Usage
|
|
122
|
+
* ```ts no-assert
|
|
123
|
+
* import { bgRed } from "@std/internal/styles";
|
|
124
|
+
*
|
|
125
|
+
* console.log(bgRed("Hello, world!")); // Prints "Hello, world!" with red background
|
|
126
|
+
* ```
|
|
127
|
+
*/
|
|
128
|
+
export declare function bgRed(str: string): string;
|
|
129
|
+
/**
|
|
130
|
+
* Sets the background color of text to be printed to green.
|
|
131
|
+
*
|
|
132
|
+
* @param str Text to make its background green
|
|
133
|
+
*
|
|
134
|
+
* @returns Green background text for print
|
|
135
|
+
*
|
|
136
|
+
* @example Usage
|
|
137
|
+
* ```ts no-assert
|
|
138
|
+
* import { bgGreen } from "@std/internal/styles";
|
|
139
|
+
*
|
|
140
|
+
* console.log(bgGreen("Hello, world!")); // Prints "Hello, world!" with green background
|
|
141
|
+
* ```
|
|
142
|
+
*/
|
|
143
|
+
export declare function bgGreen(str: string): string;
|
|
144
|
+
/**
|
|
145
|
+
* Remove ANSI escape codes from the string.
|
|
146
|
+
*
|
|
147
|
+
* @param string Text to remove ANSI escape codes from
|
|
148
|
+
*
|
|
149
|
+
* @returns Text without ANSI escape codes
|
|
150
|
+
*
|
|
151
|
+
* @example Usage
|
|
152
|
+
* ```ts no-assert
|
|
153
|
+
* import { red, stripAnsiCode } from "@std/internal/styles";
|
|
154
|
+
*
|
|
155
|
+
* console.log(stripAnsiCode(red("Hello, world!"))); // Prints "Hello, world!"
|
|
156
|
+
* ```
|
|
157
|
+
*/
|
|
158
|
+
export declare function stripAnsiCode(string: string): string;
|
|
159
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.5/styles.ts"],"names":[],"mappings":"AAqCA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAExC;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEvC;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEzC;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE1C;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEzC;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAExC;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE/C;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEzC;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE3C;AAWD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEpD"}
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
2
|
+
// This module is browser compatible.
|
|
3
|
+
// A module to print ANSI terminal colors. Inspired by chalk, kleur, and colors
|
|
4
|
+
// on npm.
|
|
5
|
+
// This code is vendored from `fmt/colors.ts`.
|
|
6
|
+
// deno-lint-ignore no-explicit-any
|
|
7
|
+
import * as dntShim from "../../../../../_dnt.shims.js";
|
|
8
|
+
const { Deno } = dntShim.dntGlobalThis;
|
|
9
|
+
const noColor = typeof Deno?.noColor === "boolean"
|
|
10
|
+
? Deno.noColor
|
|
11
|
+
: false;
|
|
12
|
+
const enabled = !noColor;
|
|
13
|
+
function code(open, close) {
|
|
14
|
+
return {
|
|
15
|
+
open: `\x1b[${open.join(";")}m`,
|
|
16
|
+
close: `\x1b[${close}m`,
|
|
17
|
+
regexp: new RegExp(`\\x1b\\[${close}m`, "g"),
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
function run(str, code) {
|
|
21
|
+
return enabled
|
|
22
|
+
? `${code.open}${str.replace(code.regexp, code.open)}${code.close}`
|
|
23
|
+
: str;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Sets the style of text to be printed to bold.
|
|
27
|
+
*
|
|
28
|
+
* Disable by setting the `NO_COLOR` environmental variable.
|
|
29
|
+
*
|
|
30
|
+
* @param str Text to make bold
|
|
31
|
+
*
|
|
32
|
+
* @returns Bold text for printing
|
|
33
|
+
*
|
|
34
|
+
* @example Usage
|
|
35
|
+
* ```ts no-assert
|
|
36
|
+
* import { bold } from "@std/internal/styles";
|
|
37
|
+
*
|
|
38
|
+
* console.log(bold("Hello, world!")); // Prints "Hello, world!" in bold
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
export function bold(str) {
|
|
42
|
+
return run(str, code([1], 22));
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Sets the color of text to be printed to red.
|
|
46
|
+
*
|
|
47
|
+
* Disable by setting the `NO_COLOR` environmental variable.
|
|
48
|
+
*
|
|
49
|
+
* @param str Text to make red
|
|
50
|
+
*
|
|
51
|
+
* @returns Red text for printing
|
|
52
|
+
*
|
|
53
|
+
* @example Usage
|
|
54
|
+
* ```ts no-assert
|
|
55
|
+
* import { red } from "@std/internal/styles";
|
|
56
|
+
*
|
|
57
|
+
* console.log(red("Hello, world!")); // Prints "Hello, world!" in red
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
export function red(str) {
|
|
61
|
+
return run(str, code([31], 39));
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Sets the color of text to be printed to green.
|
|
65
|
+
*
|
|
66
|
+
* Disable by setting the `NO_COLOR` environmental variable.
|
|
67
|
+
*
|
|
68
|
+
* @param str Text to make green
|
|
69
|
+
*
|
|
70
|
+
* @returns Green text for print
|
|
71
|
+
*
|
|
72
|
+
* @example Usage
|
|
73
|
+
* ```ts no-assert
|
|
74
|
+
* import { green } from "@std/internal/styles";
|
|
75
|
+
*
|
|
76
|
+
* console.log(green("Hello, world!")); // Prints "Hello, world!" in green
|
|
77
|
+
* ```
|
|
78
|
+
*/
|
|
79
|
+
export function green(str) {
|
|
80
|
+
return run(str, code([32], 39));
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Sets the color of text to be printed to yellow.
|
|
84
|
+
*
|
|
85
|
+
* Disable by setting the `NO_COLOR` environmental variable.
|
|
86
|
+
*
|
|
87
|
+
* @param str Text to make yellow
|
|
88
|
+
*
|
|
89
|
+
* @returns Yellow text for print
|
|
90
|
+
*
|
|
91
|
+
* @example Usage
|
|
92
|
+
* ```ts no-assert
|
|
93
|
+
* import { yellow } from "@std/internal/styles";
|
|
94
|
+
*
|
|
95
|
+
* console.log(yellow("Hello, world!")); // Prints "Hello, world!" in yellow
|
|
96
|
+
* ```
|
|
97
|
+
*/
|
|
98
|
+
export function yellow(str) {
|
|
99
|
+
return run(str, code([33], 39));
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Sets the color of text to be printed to white.
|
|
103
|
+
*
|
|
104
|
+
* @param str Text to make white
|
|
105
|
+
*
|
|
106
|
+
* @returns White text for print
|
|
107
|
+
*
|
|
108
|
+
* @example Usage
|
|
109
|
+
* ```ts no-assert
|
|
110
|
+
* import { white } from "@std/internal/styles";
|
|
111
|
+
*
|
|
112
|
+
* console.log(white("Hello, world!")); // Prints "Hello, world!" in white
|
|
113
|
+
* ```
|
|
114
|
+
*/
|
|
115
|
+
export function white(str) {
|
|
116
|
+
return run(str, code([37], 39));
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Sets the color of text to be printed to gray.
|
|
120
|
+
*
|
|
121
|
+
* @param str Text to make gray
|
|
122
|
+
*
|
|
123
|
+
* @returns Gray text for print
|
|
124
|
+
*
|
|
125
|
+
* @example Usage
|
|
126
|
+
* ```ts no-assert
|
|
127
|
+
* import { gray } from "@std/internal/styles";
|
|
128
|
+
*
|
|
129
|
+
* console.log(gray("Hello, world!")); // Prints "Hello, world!" in gray
|
|
130
|
+
* ```
|
|
131
|
+
*/
|
|
132
|
+
export function gray(str) {
|
|
133
|
+
return brightBlack(str);
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Sets the color of text to be printed to bright-black.
|
|
137
|
+
*
|
|
138
|
+
* @param str Text to make bright-black
|
|
139
|
+
*
|
|
140
|
+
* @returns Bright-black text for print
|
|
141
|
+
*
|
|
142
|
+
* @example Usage
|
|
143
|
+
* ```ts no-assert
|
|
144
|
+
* import { brightBlack } from "@std/internal/styles";
|
|
145
|
+
*
|
|
146
|
+
* console.log(brightBlack("Hello, world!")); // Prints "Hello, world!" in bright-black
|
|
147
|
+
* ```
|
|
148
|
+
*/
|
|
149
|
+
export function brightBlack(str) {
|
|
150
|
+
return run(str, code([90], 39));
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Sets the background color of text to be printed to red.
|
|
154
|
+
*
|
|
155
|
+
* @param str Text to make its background red
|
|
156
|
+
*
|
|
157
|
+
* @returns Red background text for print
|
|
158
|
+
*
|
|
159
|
+
* @example Usage
|
|
160
|
+
* ```ts no-assert
|
|
161
|
+
* import { bgRed } from "@std/internal/styles";
|
|
162
|
+
*
|
|
163
|
+
* console.log(bgRed("Hello, world!")); // Prints "Hello, world!" with red background
|
|
164
|
+
* ```
|
|
165
|
+
*/
|
|
166
|
+
export function bgRed(str) {
|
|
167
|
+
return run(str, code([41], 49));
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Sets the background color of text to be printed to green.
|
|
171
|
+
*
|
|
172
|
+
* @param str Text to make its background green
|
|
173
|
+
*
|
|
174
|
+
* @returns Green background text for print
|
|
175
|
+
*
|
|
176
|
+
* @example Usage
|
|
177
|
+
* ```ts no-assert
|
|
178
|
+
* import { bgGreen } from "@std/internal/styles";
|
|
179
|
+
*
|
|
180
|
+
* console.log(bgGreen("Hello, world!")); // Prints "Hello, world!" with green background
|
|
181
|
+
* ```
|
|
182
|
+
*/
|
|
183
|
+
export function bgGreen(str) {
|
|
184
|
+
return run(str, code([42], 49));
|
|
185
|
+
}
|
|
186
|
+
// https://github.com/chalk/ansi-regex/blob/02fa893d619d3da85411acc8fd4e2eea0e95a9d9/index.js
|
|
187
|
+
const ANSI_PATTERN = new RegExp([
|
|
188
|
+
"[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
|
|
189
|
+
"(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TXZcf-nq-uy=><~]))",
|
|
190
|
+
].join("|"), "g");
|
|
191
|
+
/**
|
|
192
|
+
* Remove ANSI escape codes from the string.
|
|
193
|
+
*
|
|
194
|
+
* @param string Text to remove ANSI escape codes from
|
|
195
|
+
*
|
|
196
|
+
* @returns Text without ANSI escape codes
|
|
197
|
+
*
|
|
198
|
+
* @example Usage
|
|
199
|
+
* ```ts no-assert
|
|
200
|
+
* import { red, stripAnsiCode } from "@std/internal/styles";
|
|
201
|
+
*
|
|
202
|
+
* console.log(stripAnsiCode(red("Hello, world!"))); // Prints "Hello, world!"
|
|
203
|
+
* ```
|
|
204
|
+
*/
|
|
205
|
+
export function stripAnsiCode(string) {
|
|
206
|
+
return string.replace(ANSI_PATTERN, "");
|
|
207
|
+
}
|
|
208
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.5/styles.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,qCAAqC;AACrC,+EAA+E;AAC/E,UAAU;AAEV,8CAA8C;AAE9C,mCAAmC;AACnC,OAAO,KAAK,OAAO,MAAM,8BAA8B,CAAC;AAExD,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,aAAoB,CAAC;AAC9C,MAAM,OAAO,GAAG,OAAO,IAAI,EAAE,OAAO,KAAK,SAAS;IAChD,CAAC,CAAC,IAAI,CAAC,OAAkB;IACzB,CAAC,CAAC,KAAK,CAAC;AAQV,MAAM,OAAO,GAAG,CAAC,OAAO,CAAC;AAEzB,SAAS,IAAI,CAAC,IAAc,EAAE,KAAa;IACzC,OAAO;QACL,IAAI,EAAE,QAAQ,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG;QAC/B,KAAK,EAAE,QAAQ,KAAK,GAAG;QACvB,MAAM,EAAE,IAAI,MAAM,CAAC,WAAW,KAAK,GAAG,EAAE,GAAG,CAAC;KAC7C,CAAC;AACJ,CAAC;AAED,SAAS,GAAG,CAAC,GAAW,EAAE,IAAU;IAClC,OAAO,OAAO;QACZ,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,KAAK,EAAE;QACnE,CAAC,CAAC,GAAG,CAAC;AACV,CAAC;AAED;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,IAAI,CAAC,GAAW;IAC9B,OAAO,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;AACjC,CAAC;AAED;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,GAAG,CAAC,GAAW;IAC7B,OAAO,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;AAClC,CAAC;AAED;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,KAAK,CAAC,GAAW;IAC/B,OAAO,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;AAClC,CAAC;AAED;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,MAAM,CAAC,GAAW;IAChC,OAAO,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;AAClC,CAAC;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,KAAK,CAAC,GAAW;IAC/B,OAAO,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;AAClC,CAAC;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,IAAI,CAAC,GAAW;IAC9B,OAAO,WAAW,CAAC,GAAG,CAAC,CAAC;AAC1B,CAAC;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,WAAW,CAAC,GAAW;IACrC,OAAO,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;AAClC,CAAC;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,KAAK,CAAC,GAAW;IAC/B,OAAO,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;AAClC,CAAC;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,OAAO,CAAC,GAAW;IACjC,OAAO,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;AAClC,CAAC;AAED,6FAA6F;AAC7F,MAAM,YAAY,GAAG,IAAI,MAAM,CAC7B;IACE,8HAA8H;IAC9H,2DAA2D;CAC5D,CAAC,IAAI,CAAC,GAAG,CAAC,EACX,GAAG,CACJ,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,aAAa,CAAC,MAAc;IAC1C,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;AAC1C,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** Ways that lines in a diff can be different. */
|
|
2
|
+
export type DiffType = "removed" | "common" | "added";
|
|
3
|
+
/**
|
|
4
|
+
* Represents the result of a diff operation.
|
|
5
|
+
*
|
|
6
|
+
* @typeParam T The type of the value in the diff result.
|
|
7
|
+
*/
|
|
8
|
+
export interface DiffResult<T> {
|
|
9
|
+
/** The type of the diff. */
|
|
10
|
+
type: DiffType;
|
|
11
|
+
/** The value of the diff. */
|
|
12
|
+
value: T;
|
|
13
|
+
/** The details of the diff. */
|
|
14
|
+
details?: DiffResult<T>[];
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.5/types.ts"],"names":[],"mappings":"AAEA,kDAAkD;AAClD,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEtD;;;;GAIG;AACH,MAAM,WAAW,UAAU,CAAC,CAAC;IAC3B,4BAA4B;IAC5B,IAAI,EAAE,QAAQ,CAAC;IACf,6BAA6B;IAC7B,KAAK,EAAE,CAAC,CAAC;IACT,+BAA+B;IAC/B,OAAO,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC;CAC3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.5/types.ts"],"names":[],"mappings":"AAAA,0EAA0E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Hydrated.d.ts","sourceRoot":"","sources":["../../src/json_schema/Hydrated.ts"],"names":[],"mappings":"AAAA,OAAO,EAAK,KAAK,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAE/C,wBAAgB,QAAQ,CAAC,IAAI,EAAE,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,CAgDtD"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { L } from "../core/mod.js";
|
|
2
|
+
export function Hydrated(type) {
|
|
3
|
+
const types = {};
|
|
4
|
+
return visit(type);
|
|
5
|
+
function visit(type) {
|
|
6
|
+
const initial = (() => {
|
|
7
|
+
if ("$defs" in type && type.$defs) {
|
|
8
|
+
Object.entries(type.$defs).forEach(([id, jsonType]) => {
|
|
9
|
+
if (!(id in types)) {
|
|
10
|
+
types[id] = undefined;
|
|
11
|
+
types[id] = visit(jsonType);
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
if ("$ref" in type) {
|
|
16
|
+
const id = type.$ref.split("#/$defs/").pop();
|
|
17
|
+
return L.ref(() => types[id]);
|
|
18
|
+
}
|
|
19
|
+
else if ("anyOf" in type) {
|
|
20
|
+
return L.union(...type.anyOf.map(visit));
|
|
21
|
+
}
|
|
22
|
+
switch (type.type) {
|
|
23
|
+
case "null": {
|
|
24
|
+
return L.null;
|
|
25
|
+
}
|
|
26
|
+
case "boolean": {
|
|
27
|
+
return L.boolean;
|
|
28
|
+
}
|
|
29
|
+
case "integer": {
|
|
30
|
+
return L.integer;
|
|
31
|
+
}
|
|
32
|
+
case "number": {
|
|
33
|
+
return L.number;
|
|
34
|
+
}
|
|
35
|
+
case "string": {
|
|
36
|
+
return type.enum ? L.enum(...type.enum) : L.string;
|
|
37
|
+
}
|
|
38
|
+
case "array": {
|
|
39
|
+
return L.array(visit(type.items));
|
|
40
|
+
}
|
|
41
|
+
case "object": {
|
|
42
|
+
return L.object(Object.fromEntries(Object.entries(type.properties).map(([k, v]) => [k, visit(v)])));
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
})()(type.description);
|
|
46
|
+
return type.const ? L.const(initial, type.const) : initial;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=Hydrated.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Hydrated.js","sourceRoot":"","sources":["../../src/json_schema/Hydrated.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAa,MAAM,gBAAgB,CAAA;AAG7C,MAAM,UAAU,QAAQ,CAAC,IAAc;IACrC,MAAM,KAAK,GAA8C,EAAE,CAAA;IAC3D,OAAO,KAAK,CAAC,IAAI,CAAU,CAAA;IAE3B,SAAS,KAAK,CAAC,IAAc;QAC3B,MAAM,OAAO,GAAG,CAAC,GAAkB,EAAE;YACnC,IAAI,OAAO,IAAI,IAAI,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;gBAClC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,QAAQ,CAAC,EAAE,EAAE;oBACpD,IAAI,CAAC,CAAC,EAAE,IAAI,KAAK,CAAC,EAAE,CAAC;wBACnB,KAAK,CAAC,EAAE,CAAC,GAAG,SAAS,CAAA;wBACrB,KAAK,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAA;oBAC7B,CAAC;gBACH,CAAC,CAAC,CAAA;YACJ,CAAC;YACD,IAAI,MAAM,IAAI,IAAI,EAAE,CAAC;gBACnB,MAAM,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,GAAG,EAAG,CAAA;gBAC7C,OAAO,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,EAAE,CAAE,CAAC,CAAA;YAChC,CAAC;iBAAM,IAAI,OAAO,IAAI,IAAI,EAAE,CAAC;gBAC3B,OAAO,CAAC,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAA;YAC1C,CAAC;YACD,QAAQ,IAAI,CAAC,IAAI,EAAE,CAAC;gBAClB,KAAK,MAAM,CAAC,CAAC,CAAC;oBACZ,OAAO,CAAC,CAAC,IAAI,CAAA;gBACf,CAAC;gBACD,KAAK,SAAS,CAAC,CAAC,CAAC;oBACf,OAAO,CAAC,CAAC,OAAO,CAAA;gBAClB,CAAC;gBACD,KAAK,SAAS,CAAC,CAAC,CAAC;oBACf,OAAO,CAAC,CAAC,OAAO,CAAA;gBAClB,CAAC;gBACD,KAAK,QAAQ,CAAC,CAAC,CAAC;oBACd,OAAO,CAAC,CAAC,MAAM,CAAA;gBACjB,CAAC;gBACD,KAAK,QAAQ,CAAC,CAAC,CAAC;oBACd,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAA;gBACpD,CAAC;gBACD,KAAK,OAAO,CAAC,CAAC,CAAC;oBACb,OAAO,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAA;gBACnC,CAAC;gBACD,KAAK,QAAQ,CAAC,CAAC,CAAC;oBACd,OAAO,CAAC,CAAC,MAAM,CACb,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CACnF,CAAA;gBACH,CAAC;YACH,CAAC;QACH,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA;QACtB,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAA;IAC5D,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { type PartialType } from "../core/mod.js";
|
|
2
|
+
import type { Expand } from "../util/mod.js";
|
|
3
|
+
export type JSONType = JSONTypes[JSONTypeName];
|
|
4
|
+
export type JSONTypeName = keyof JSONTypes;
|
|
5
|
+
export type JSONTypes = JSONTypes.Make<{
|
|
6
|
+
null: {
|
|
7
|
+
type: "null";
|
|
8
|
+
};
|
|
9
|
+
boolean: {
|
|
10
|
+
type: "boolean";
|
|
11
|
+
};
|
|
12
|
+
integer: {
|
|
13
|
+
type: "integer";
|
|
14
|
+
};
|
|
15
|
+
number: {
|
|
16
|
+
type: "number";
|
|
17
|
+
};
|
|
18
|
+
string: {
|
|
19
|
+
type: "string";
|
|
20
|
+
enum?: Array<string>;
|
|
21
|
+
};
|
|
22
|
+
array: {
|
|
23
|
+
type: "array";
|
|
24
|
+
items: JSONType;
|
|
25
|
+
};
|
|
26
|
+
object: {
|
|
27
|
+
type: "object";
|
|
28
|
+
properties: Record<string, JSONType>;
|
|
29
|
+
additionalProperties: false;
|
|
30
|
+
required: Array<string>;
|
|
31
|
+
$defs?: Record<string, JSONType>;
|
|
32
|
+
};
|
|
33
|
+
union: {
|
|
34
|
+
anyOf: Array<JSONType>;
|
|
35
|
+
};
|
|
36
|
+
ref: {
|
|
37
|
+
$ref: string;
|
|
38
|
+
};
|
|
39
|
+
}>;
|
|
40
|
+
declare namespace JSONTypes {
|
|
41
|
+
type Make<T> = {
|
|
42
|
+
[K in keyof T]: Expand<T[K] & {
|
|
43
|
+
description?: string;
|
|
44
|
+
const?: unknown;
|
|
45
|
+
}>;
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
export declare function jsonTypeName(type: PartialType): JSONTypeName;
|
|
49
|
+
export {};
|
|
50
|
+
//# sourceMappingURL=JSONSchema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JSONSchema.d.ts","sourceRoot":"","sources":["../../src/json_schema/JSONSchema.ts"],"names":[],"mappings":"AACA,OAAO,EAAK,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAA;AACpD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AAE5C,MAAM,MAAM,QAAQ,GAAG,SAAS,CAAC,YAAY,CAAC,CAAA;AAC9C,MAAM,MAAM,YAAY,GAAG,MAAM,SAAS,CAAA;AAC1C,MAAM,MAAM,SAAS,GAAG,SAAS,CAAC,IAAI,CAAC;IACrC,IAAI,EAAE;QACJ,IAAI,EAAE,MAAM,CAAA;KACb,CAAA;IACD,OAAO,EAAE;QACP,IAAI,EAAE,SAAS,CAAA;KAChB,CAAA;IACD,OAAO,EAAE;QACP,IAAI,EAAE,SAAS,CAAA;KAChB,CAAA;IACD,MAAM,EAAE;QACN,IAAI,EAAE,QAAQ,CAAA;KACf,CAAA;IACD,MAAM,EAAE;QACN,IAAI,EAAE,QAAQ,CAAA;QACd,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;KACrB,CAAA;IACD,KAAK,EAAE;QACL,IAAI,EAAE,OAAO,CAAA;QACb,KAAK,EAAE,QAAQ,CAAA;KAChB,CAAA;IACD,MAAM,EAAE;QACN,IAAI,EAAE,QAAQ,CAAA;QACd,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAA;QACpC,oBAAoB,EAAE,KAAK,CAAA;QAC3B,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;QACvB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAA;KACjC,CAAA;IACD,KAAK,EAAE;QACL,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAA;KACvB,CAAA;IACD,GAAG,EAAE;QACH,IAAI,EAAE,MAAM,CAAA;KACb,CAAA;CACF,CAAC,CAAA;AACF,kBAAU,SAAS,CAAC;IAClB,KAAY,IAAI,CAAC,CAAC,IAAI;SACnB,CAAC,IAAI,MAAM,CAAC,GAAG,MAAM,CACpB,CAAC,CAAC,CAAC,CAAC,GAAG;YACL,WAAW,CAAC,EAAE,MAAM,CAAA;YACpB,KAAK,CAAC,EAAE,OAAO,CAAA;SAChB,CACF;KACF,CAAA;CACF;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,WAAW,GAAG,YAAY,CA0C5D"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { unreachable } from "../deps/jsr.io/@std/assert/1.0.10/mod.js";
|
|
2
|
+
import { L } from "../core/mod.js";
|
|
3
|
+
export function jsonTypeName(type) {
|
|
4
|
+
switch (type.declaration.getAtom?.()) {
|
|
5
|
+
case L.null: {
|
|
6
|
+
return "null";
|
|
7
|
+
}
|
|
8
|
+
case L.boolean: {
|
|
9
|
+
return "boolean";
|
|
10
|
+
}
|
|
11
|
+
case L.number: {
|
|
12
|
+
return "number";
|
|
13
|
+
}
|
|
14
|
+
case L.integer: {
|
|
15
|
+
return "integer";
|
|
16
|
+
}
|
|
17
|
+
case L.string: {
|
|
18
|
+
return "string";
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
switch (type.declaration.factory) {
|
|
22
|
+
case L.const: {
|
|
23
|
+
return jsonTypeName(type.declaration.args[0]);
|
|
24
|
+
}
|
|
25
|
+
case L.array: {
|
|
26
|
+
return "array";
|
|
27
|
+
}
|
|
28
|
+
case L.object: {
|
|
29
|
+
return "object";
|
|
30
|
+
}
|
|
31
|
+
case L.enum: {
|
|
32
|
+
return "string";
|
|
33
|
+
}
|
|
34
|
+
case L.union: {
|
|
35
|
+
return "union";
|
|
36
|
+
}
|
|
37
|
+
case L.ref: {
|
|
38
|
+
return "ref";
|
|
39
|
+
}
|
|
40
|
+
case L.transform: {
|
|
41
|
+
return jsonTypeName(type.declaration.args[0]);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
unreachable();
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=JSONSchema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JSONSchema.js","sourceRoot":"","sources":["../../src/json_schema/JSONSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAA;AACtE,OAAO,EAAE,CAAC,EAAoB,MAAM,gBAAgB,CAAA;AAmDpD,MAAM,UAAU,YAAY,CAAC,IAAiB;IAC5C,QAAQ,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,EAAE,EAAE,CAAC;QACrC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;YACZ,OAAO,MAAM,CAAA;QACf,CAAC;QACD,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;YACf,OAAO,SAAS,CAAA;QAClB,CAAC;QACD,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;YACd,OAAO,QAAQ,CAAA;QACjB,CAAC;QACD,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;YACf,OAAO,SAAS,CAAA;QAClB,CAAC;QACD,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;YACd,OAAO,QAAQ,CAAA;QACjB,CAAC;IACH,CAAC;IACD,QAAQ,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,CAAC;QACjC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;YACb,OAAO,YAAY,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAgB,CAAC,CAAA;QAC9D,CAAC;QACD,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;YACb,OAAO,OAAO,CAAA;QAChB,CAAC;QACD,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;YACd,OAAO,QAAQ,CAAA;QACjB,CAAC;QACD,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;YACZ,OAAO,QAAQ,CAAA;QACjB,CAAC;QACD,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;YACb,OAAO,OAAO,CAAA;QAChB,CAAC;QACD,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;YACX,OAAO,KAAK,CAAA;QACd,CAAC;QACD,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;YACjB,OAAO,YAAY,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAgB,CAAC,CAAA;QAC9D,CAAC;IACH,CAAC;IACD,WAAW,EAAE,CAAA;AACf,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MetaType.d.ts","sourceRoot":"","sources":["../../src/json_schema/MetaType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,IAAI,EAAE,MAAM,gBAAgB,CAAA;AA6B/D,MAAM,MAAM,QAAQ,CAAC,CAAC,SAAS,MAAM,IAAI,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAA;AAE/D,eAAO,MAAM,QAAQ,EAAE,QAAQ,CAAC,KAAK,CAAoC,CAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { L } from "../core/mod.js";
|
|
2
|
+
import { Hydrated } from "./Hydrated.js";
|
|
3
|
+
const JSONType_ = L.transform(L.TaggedUnion({
|
|
4
|
+
null: null,
|
|
5
|
+
boolean: null,
|
|
6
|
+
integer: null,
|
|
7
|
+
number: null,
|
|
8
|
+
string: null,
|
|
9
|
+
array: L.object({
|
|
10
|
+
items: L.ref(() => JSONType_),
|
|
11
|
+
}),
|
|
12
|
+
object: L.transform(L.Record(L.ref(() => JSONType_)), (properties) => ({
|
|
13
|
+
properties,
|
|
14
|
+
required: Object.keys(properties),
|
|
15
|
+
additionalProperties: false,
|
|
16
|
+
})),
|
|
17
|
+
union: L.object({
|
|
18
|
+
anyOf: L.ref(() => JSONType_),
|
|
19
|
+
}),
|
|
20
|
+
}), ({ type, value }) => ({
|
|
21
|
+
...type === "union" ? {} : { type },
|
|
22
|
+
...value ? value : {},
|
|
23
|
+
}));
|
|
24
|
+
export const MetaType = L.transform(JSONType_, Hydrated);
|
|
25
|
+
//# sourceMappingURL=MetaType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MetaType.js","sourceRoot":"","sources":["../../src/json_schema/MetaType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAA+B,MAAM,gBAAgB,CAAA;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAGxC,MAAM,SAAS,GAAmB,CAAC,CAAC,SAAS,CAC3C,CAAC,CAAC,WAAW,CAAC;IACZ,IAAI,EAAE,IAAI;IACV,OAAO,EAAE,IAAI;IACb,OAAO,EAAE,IAAI;IACb,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,IAAI;IACZ,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,KAAK,EAAE,CAAC,CAAC,GAAG,CAAC,GAAgB,EAAE,CAAC,SAAS,CAAC;KAC3C,CAAC;IACF,MAAM,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,GAAgB,EAAE,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;QAClF,UAAU;QACV,QAAQ,EAAE,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC;QACjC,oBAAoB,EAAE,KAAK;KAC5B,CAAC,CAAC;IACH,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,KAAK,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC;KAC9B,CAAC;CACH,CAAC,EACF,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IACpB,GAAG,IAAI,KAAK,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE;IACnC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE;CACtB,CAAC,CACM,CAAA;AAIV,MAAM,CAAC,MAAM,QAAQ,GAAoB,CAAC,CAAC,SAAS,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type Type } from "../core/mod.js";
|
|
2
|
+
import { PathLike } from "./PathLike.js";
|
|
3
|
+
export type MetaTypeMigration<P extends symbol> = Type<{
|
|
4
|
+
id: string;
|
|
5
|
+
defId: string;
|
|
6
|
+
path: PathLike;
|
|
7
|
+
change: {
|
|
8
|
+
type: "Create";
|
|
9
|
+
value: Type<unknown>;
|
|
10
|
+
} | {
|
|
11
|
+
type: "Update";
|
|
12
|
+
value: Type<unknown>;
|
|
13
|
+
} | {
|
|
14
|
+
type: "Delete";
|
|
15
|
+
};
|
|
16
|
+
rationale: string;
|
|
17
|
+
}, P>;
|
|
18
|
+
export declare const MetaTypeMigration: MetaTypeMigration<never>;
|
|
19
|
+
//# sourceMappingURL=MetaTypeMigration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MetaTypeMigration.d.ts","sourceRoot":"","sources":["../../src/json_schema/MetaTypeMigration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAK,KAAK,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAE7C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAExC,MAAM,MAAM,iBAAiB,CAAC,CAAC,SAAS,MAAM,IAAI,IAAI,CAAC;IACrD,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,QAAQ,CAAA;IACd,MAAM,EAAE;QACN,IAAI,EAAE,QAAQ,CAAA;QACd,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,CAAA;KACrB,GAAG;QACF,IAAI,EAAE,QAAQ,CAAA;QACd,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,CAAA;KACrB,GAAG;QACF,IAAI,EAAE,QAAQ,CAAA;KACf,CAAA;IACD,SAAS,EAAE,MAAM,CAAA;CAClB,EAAE,CAAC,CAAC,CAAA;AAEL,eAAO,MAAM,iBAAiB,EAAE,iBAAiB,CAAC,KAAK,CAUrD,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { L } from "../core/mod.js";
|
|
2
|
+
import { MetaType } from "./MetaType.js";
|
|
3
|
+
import { PathLike } from "./PathLike.js";
|
|
4
|
+
export const MetaTypeMigration = L.object({
|
|
5
|
+
id: L.string,
|
|
6
|
+
defId: L.string,
|
|
7
|
+
path: PathLike,
|
|
8
|
+
change: L.TaggedUnion({
|
|
9
|
+
Create: MetaType,
|
|
10
|
+
Update: MetaType,
|
|
11
|
+
Delete: null,
|
|
12
|
+
}),
|
|
13
|
+
rationale: L.string,
|
|
14
|
+
});
|
|
15
|
+
//# sourceMappingURL=MetaTypeMigration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MetaTypeMigration.js","sourceRoot":"","sources":["../../src/json_schema/MetaTypeMigration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAa,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAkBxC,MAAM,CAAC,MAAM,iBAAiB,GAA6B,CAAC,CAAC,MAAM,CAAC;IAClE,EAAE,EAAE,CAAC,CAAC,MAAM;IACZ,KAAK,EAAE,CAAC,CAAC,MAAM;IACf,IAAI,EAAE,QAAQ;IACd,MAAM,EAAE,CAAC,CAAC,WAAW,CAAC;QACpB,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE,IAAI;KACb,CAAC;IACF,SAAS,EAAE,CAAC,CAAC,MAAM;CACpB,CAAC,CAAA"}
|