@voxgig/sdkgen 4.47.0 → 4.48.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/voxgig-sdkgen +1 -1
- package/dist/action/check.js +4 -1
- package/dist/action/check.js.map +1 -1
- package/dist/action/doctor.js +7 -2
- package/dist/action/doctor.js.map +1 -1
- package/dist/action/target.js +55 -29
- package/dist/action/target.js.map +1 -1
- package/dist/cmp/AgentGuide.js +26 -17
- package/dist/cmp/AgentGuide.js.map +1 -1
- package/dist/cmp/AgentGuideContent.js +4 -8
- package/dist/cmp/AgentGuideContent.js.map +1 -1
- package/dist/cmp/AgentGuideTop.js +14 -13
- package/dist/cmp/AgentGuideTop.js.map +1 -1
- package/dist/cmp/Deploy.js +18 -8
- package/dist/cmp/Deploy.js.map +1 -1
- package/dist/cmp/FeatureDocs.d.ts +1 -0
- package/dist/cmp/FeatureDocs.js +2 -1
- package/dist/cmp/FeatureDocs.js.map +1 -1
- package/dist/cmp/License.d.ts +3 -1
- package/dist/cmp/License.js +25 -7
- package/dist/cmp/License.js.map +1 -1
- package/dist/cmp/Readme.js +0 -2
- package/dist/cmp/Readme.js.map +1 -1
- package/dist/cmp/ReadmeErrors.js +77 -77
- package/dist/cmp/ReadmeErrors.js.map +1 -1
- package/dist/cmp/ReadmeExplanation.js +5 -10
- package/dist/cmp/ReadmeExplanation.js.map +1 -1
- package/dist/cmp/ReadmeFeatures.js +13 -9
- package/dist/cmp/ReadmeFeatures.js.map +1 -1
- package/dist/cmp/ReadmeModel.js +13 -9
- package/dist/cmp/ReadmeModel.js.map +1 -1
- package/dist/cmp/ReadmeOptions.js +3 -11
- package/dist/cmp/ReadmeOptions.js.map +1 -1
- package/dist/cmp/ReadmeQuick.js +10 -2
- package/dist/cmp/ReadmeQuick.js.map +1 -1
- package/dist/cmp/ReadmeRefFeatures.js +34 -30
- package/dist/cmp/ReadmeRefFeatures.js.map +1 -1
- package/dist/cmp/ReadmeTop.js +82 -47
- package/dist/cmp/ReadmeTop.js.map +1 -1
- package/dist/helpers/canonSpec.d.ts +5 -1
- package/dist/helpers/canonSpec.js +44 -10
- package/dist/helpers/canonSpec.js.map +1 -1
- package/dist/helpers/clientOptions.d.ts +9 -0
- package/dist/helpers/clientOptions.js +44 -0
- package/dist/helpers/clientOptions.js.map +1 -0
- package/dist/helpers/consumer.d.ts +10 -0
- package/dist/helpers/consumer.js +42 -0
- package/dist/helpers/consumer.js.map +1 -0
- package/dist/helpers/doctext.js +9 -1
- package/dist/helpers/doctext.js.map +1 -1
- package/dist/helpers/facts.js +25 -1
- package/dist/helpers/facts.js.map +1 -1
- package/dist/helpers/flowGuard.js +1 -1
- package/dist/helpers/flowGuard.js.map +1 -1
- package/dist/helpers/mcpTools.d.ts +1 -1
- package/dist/helpers/mcpTools.js +2 -3
- package/dist/helpers/mcpTools.js.map +1 -1
- package/dist/helpers/naming.js +3 -2
- package/dist/helpers/naming.js.map +1 -1
- package/dist/helpers/opShape.d.ts +8 -2
- package/dist/helpers/opShape.js +32 -2
- package/dist/helpers/opShape.js.map +1 -1
- package/dist/helpers/optional.d.ts +0 -1
- package/dist/helpers/optional.js +0 -1
- package/dist/helpers/optional.js.map +1 -1
- package/dist/helpers/optspec.js +16 -4
- package/dist/helpers/optspec.js.map +1 -1
- package/dist/helpers/packageMeta.d.ts +2 -1
- package/dist/helpers/packageMeta.js +62 -1
- package/dist/helpers/packageMeta.js.map +1 -1
- package/dist/helpers/readerdir.d.ts +4 -0
- package/dist/helpers/readerdir.js +26 -0
- package/dist/helpers/readerdir.js.map +1 -0
- package/dist/helpers/sourcestring.d.ts +2 -1
- package/dist/helpers/sourcestring.js +6 -0
- package/dist/helpers/sourcestring.js.map +1 -1
- package/dist/helpers/stdrep.js +3 -3
- package/dist/helpers/stdrep.js.map +1 -1
- package/dist/helpers/surface.d.ts +6 -1
- package/dist/helpers/surface.js +17 -5
- package/dist/helpers/surface.js.map +1 -1
- package/dist/helpers/testPolicy.js +3 -3
- package/dist/helpers/testPolicy.js.map +1 -1
- package/dist/helpers/title.js +1 -1
- package/dist/helpers/title.js.map +1 -1
- package/dist/sdkgen.d.ts +13 -7
- package/dist/sdkgen.js +22 -6
- package/dist/sdkgen.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utility.js +12 -4
- package/dist/utility.js.map +1 -1
- package/model/fact.aontu +1 -1
- package/model/sdkgen.aontu +2 -0
- package/package.json +1 -1
- package/project/.sdk/model/feature/netsim.aontu +1 -1
- package/project/.sdk/model/feature/secrets.aontu +1 -0
- package/project/.sdk/model/feature/test.aontu +1 -1
- package/project/.sdk/model/feature/validate.aontu +1 -1
- package/project/.sdk/model/target/c.aontu +1 -0
- package/project/.sdk/model/target/clojure.aontu +1 -0
- package/project/.sdk/model/target/cpp.aontu +1 -0
- package/project/.sdk/model/target/csharp.aontu +1 -0
- package/project/.sdk/model/target/elixir.aontu +1 -0
- package/project/.sdk/model/target/go-cli.aontu +5 -5
- package/project/.sdk/model/target/go-mcp.aontu +6 -8
- package/project/.sdk/model/target/go.aontu +1 -1
- package/project/.sdk/model/target/java.aontu +1 -0
- package/project/.sdk/model/target/kotlin.aontu +1 -0
- package/project/.sdk/model/target/ocaml.aontu +1 -0
- package/project/.sdk/model/target/perl.aontu +1 -0
- package/project/.sdk/model/target/py-data.aontu +2 -0
- package/project/.sdk/model/target/rust.aontu +1 -0
- package/project/.sdk/model/target/scala.aontu +1 -0
- package/project/.sdk/model/target/zig.aontu +1 -0
- package/project/.sdk/src/cmp/c/Config_c.ts +8 -33
- package/project/.sdk/src/cmp/c/EntityTypes_c.ts +6 -5
- package/project/.sdk/src/cmp/c/Main_c.ts +4 -0
- package/project/.sdk/src/cmp/c/PrepareAuth_c.ts +9 -19
- package/project/.sdk/src/cmp/c/ReadmeEntity_c.ts +8 -10
- package/project/.sdk/src/cmp/c/ReadmeExamplesTest_c.ts +12 -4
- package/project/.sdk/src/cmp/c/ReadmeExplanation_c.ts +4 -2
- package/project/.sdk/src/cmp/c/ReadmeHowto_c.ts +18 -22
- package/project/.sdk/src/cmp/c/ReadmeInstall_c.ts +19 -15
- package/project/.sdk/src/cmp/c/ReadmeIntro_c.ts +5 -7
- package/project/.sdk/src/cmp/c/ReadmeModel_c.ts +32 -33
- package/project/.sdk/src/cmp/c/ReadmeQuick_c.ts +28 -11
- package/project/.sdk/src/cmp/c/ReadmeRef_c.ts +35 -26
- package/project/.sdk/src/cmp/c/ReadmeTopHowto_c.ts +5 -4
- package/project/.sdk/src/cmp/c/ReadmeTopQuick_c.ts +19 -6
- package/project/.sdk/src/cmp/c/TestClean_c.ts +298 -22
- package/project/.sdk/src/cmp/c/TestDirect_c.ts +1 -1
- package/project/.sdk/src/cmp/c/fragment/Entity.fragment.c +9 -9
- package/project/.sdk/src/cmp/c/fragment/EntityCreateOp.fragment.c +0 -1
- package/project/.sdk/src/cmp/c/fragment/EntityLoadOp.fragment.c +0 -1
- package/project/.sdk/src/cmp/c/fragment/EntityPatchOp.fragment.c +0 -1
- package/project/.sdk/src/cmp/c/fragment/EntityRemoveOp.fragment.c +0 -1
- package/project/.sdk/src/cmp/c/fragment/EntityUpdateOp.fragment.c +0 -1
- package/project/.sdk/src/cmp/c/fragment/Main.fragment.c +19 -7
- package/project/.sdk/src/cmp/clojure/Config_clojure.ts +4 -25
- package/project/.sdk/src/cmp/clojure/Main_clojure.ts +4 -0
- package/project/.sdk/src/cmp/clojure/PrepareAuth_clojure.ts +10 -21
- package/project/.sdk/src/cmp/clojure/ReadmeEntity_clojure.ts +8 -10
- package/project/.sdk/src/cmp/clojure/ReadmeExamplesTest_clojure.ts +13 -5
- package/project/.sdk/src/cmp/clojure/ReadmeExplanation_clojure.ts +13 -3
- package/project/.sdk/src/cmp/clojure/ReadmeHowto_clojure.ts +9 -8
- package/project/.sdk/src/cmp/clojure/ReadmeInstall_clojure.ts +13 -11
- package/project/.sdk/src/cmp/clojure/ReadmeIntro_clojure.ts +5 -7
- package/project/.sdk/src/cmp/clojure/ReadmeModel_clojure.ts +24 -33
- package/project/.sdk/src/cmp/clojure/ReadmeQuick_clojure.ts +20 -9
- package/project/.sdk/src/cmp/clojure/ReadmeRef_clojure.ts +23 -23
- package/project/.sdk/src/cmp/clojure/ReadmeTopHowto_clojure.ts +5 -4
- package/project/.sdk/src/cmp/clojure/ReadmeTopQuick_clojure.ts +11 -4
- package/project/.sdk/src/cmp/clojure/Schema_clojure.ts +2 -1
- package/project/.sdk/src/cmp/clojure/TestClean_clojure.ts +177 -12
- package/project/.sdk/src/cmp/clojure/fragment/Entity.fragment.clj +11 -12
- package/project/.sdk/src/cmp/clojure/fragment/EntityLoadOp.fragment.clj +1 -1
- package/project/.sdk/src/cmp/clojure/fragment/EntityRemoveOp.fragment.clj +2 -2
- package/project/.sdk/src/cmp/cpp/Config_cpp.ts +2 -17
- package/project/.sdk/src/cmp/cpp/EntityTypes_cpp.ts +4 -9
- package/project/.sdk/src/cmp/cpp/Main_cpp.ts +4 -0
- package/project/.sdk/src/cmp/cpp/PrepareAuth_cpp.ts +10 -21
- package/project/.sdk/src/cmp/cpp/ReadmeEntity_cpp.ts +10 -12
- package/project/.sdk/src/cmp/cpp/ReadmeExamplesTest_cpp.ts +12 -4
- package/project/.sdk/src/cmp/cpp/ReadmeExplanation_cpp.ts +5 -2
- package/project/.sdk/src/cmp/cpp/ReadmeHowto_cpp.ts +28 -11
- package/project/.sdk/src/cmp/cpp/ReadmeInstall_cpp.ts +16 -11
- package/project/.sdk/src/cmp/cpp/ReadmeIntro_cpp.ts +5 -7
- package/project/.sdk/src/cmp/cpp/ReadmeModel_cpp.ts +26 -35
- package/project/.sdk/src/cmp/cpp/ReadmeQuick_cpp.ts +22 -12
- package/project/.sdk/src/cmp/cpp/ReadmeRef_cpp.ts +30 -29
- package/project/.sdk/src/cmp/cpp/ReadmeTopHowto_cpp.ts +5 -4
- package/project/.sdk/src/cmp/cpp/ReadmeTopQuick_cpp.ts +13 -7
- package/project/.sdk/src/cmp/cpp/TestClean_cpp.ts +285 -14
- package/project/.sdk/src/cmp/cpp/TestEntity_cpp.ts +44 -24
- package/project/.sdk/src/cmp/cpp/fragment/EntityCreateOp.fragment.cpp +0 -1
- package/project/.sdk/src/cmp/cpp/fragment/EntityLoadOp.fragment.cpp +0 -1
- package/project/.sdk/src/cmp/cpp/fragment/EntityPatchOp.fragment.cpp +0 -1
- package/project/.sdk/src/cmp/cpp/fragment/EntityRemoveOp.fragment.cpp +0 -1
- package/project/.sdk/src/cmp/cpp/fragment/EntityUpdateOp.fragment.cpp +0 -1
- package/project/.sdk/src/cmp/csharp/Config_csharp.ts +5 -27
- package/project/.sdk/src/cmp/csharp/EntityTypes_csharp.ts +4 -5
- package/project/.sdk/src/cmp/csharp/Main_csharp.ts +5 -1
- package/project/.sdk/src/cmp/csharp/Package_csharp.ts +2 -1
- package/project/.sdk/src/cmp/csharp/PrepareAuth_csharp.ts +9 -20
- package/project/.sdk/src/cmp/csharp/ReadmeEntity_csharp.ts +10 -12
- package/project/.sdk/src/cmp/csharp/ReadmeExamplesTest_csharp.ts +18 -10
- package/project/.sdk/src/cmp/csharp/ReadmeExplanation_csharp.ts +1 -1
- package/project/.sdk/src/cmp/csharp/ReadmeHowto_csharp.ts +24 -12
- package/project/.sdk/src/cmp/csharp/ReadmeInstall_csharp.ts +9 -6
- package/project/.sdk/src/cmp/csharp/ReadmeIntro_csharp.ts +4 -6
- package/project/.sdk/src/cmp/csharp/ReadmeModel_csharp.ts +25 -35
- package/project/.sdk/src/cmp/csharp/ReadmeQuick_csharp.ts +21 -10
- package/project/.sdk/src/cmp/csharp/ReadmeRef_csharp.ts +25 -25
- package/project/.sdk/src/cmp/csharp/ReadmeTopHowto_csharp.ts +5 -4
- package/project/.sdk/src/cmp/csharp/ReadmeTopQuick_csharp.ts +11 -4
- package/project/.sdk/src/cmp/csharp/TestClean_csharp.ts +420 -27
- package/project/.sdk/src/cmp/csharp/TestDirect_csharp.ts +13 -13
- package/project/.sdk/src/cmp/csharp/TestEntity_csharp.ts +34 -35
- package/project/.sdk/src/cmp/csharp/fragment/EntityBase.fragment.cs +8 -7
- package/project/.sdk/src/cmp/csharp/fragment/Main.fragment.cs +4 -4
- package/project/.sdk/src/cmp/elixir/Config_elixir.ts +5 -26
- package/project/.sdk/src/cmp/elixir/EntityTypes_elixir.ts +8 -6
- package/project/.sdk/src/cmp/elixir/Main_elixir.ts +8 -2
- package/project/.sdk/src/cmp/elixir/Package_elixir.ts +3 -3
- package/project/.sdk/src/cmp/elixir/PrepareAuth_elixir.ts +10 -18
- package/project/.sdk/src/cmp/elixir/ReadmeEntity_elixir.ts +10 -12
- package/project/.sdk/src/cmp/elixir/ReadmeExamplesTest_elixir.ts +12 -5
- package/project/.sdk/src/cmp/elixir/ReadmeExplanation_elixir.ts +4 -2
- package/project/.sdk/src/cmp/elixir/ReadmeHowto_elixir.ts +13 -21
- package/project/.sdk/src/cmp/elixir/ReadmeInstall_elixir.ts +12 -8
- package/project/.sdk/src/cmp/elixir/ReadmeIntro_elixir.ts +5 -7
- package/project/.sdk/src/cmp/elixir/ReadmeModel_elixir.ts +24 -35
- package/project/.sdk/src/cmp/elixir/ReadmeQuick_elixir.ts +21 -10
- package/project/.sdk/src/cmp/elixir/ReadmeRef_elixir.ts +24 -24
- package/project/.sdk/src/cmp/elixir/ReadmeTopHowto_elixir.ts +5 -4
- package/project/.sdk/src/cmp/elixir/ReadmeTopQuick_elixir.ts +11 -4
- package/project/.sdk/src/cmp/elixir/Schema_elixir.ts +2 -1
- package/project/.sdk/src/cmp/elixir/TestClean_elixir.ts +231 -12
- package/project/.sdk/src/cmp/elixir/TestEntity_elixir.ts +3 -3
- package/project/.sdk/src/cmp/elixir/app_elixir.ts +14 -0
- package/project/.sdk/src/cmp/elixir/fragment/Main.fragment.ex +4 -4
- package/project/.sdk/src/cmp/go/Config_go.ts +16 -31
- package/project/.sdk/src/cmp/go/EntityTypes_go.ts +13 -7
- package/project/.sdk/src/cmp/go/Main_go.ts +10 -12
- package/project/.sdk/src/cmp/go/PrepareAuth_go.ts +12 -21
- package/project/.sdk/src/cmp/go/ReadmeEntity_go.ts +5 -5
- package/project/.sdk/src/cmp/go/ReadmeExamplesTest_go.ts +20 -9
- package/project/.sdk/src/cmp/go/ReadmeExplanation_go.ts +4 -2
- package/project/.sdk/src/cmp/go/ReadmeHowto_go.ts +28 -13
- package/project/.sdk/src/cmp/go/ReadmeInstall_go.ts +11 -6
- package/project/.sdk/src/cmp/go/ReadmeIntro_go.ts +5 -4
- package/project/.sdk/src/cmp/go/ReadmeModel_go.ts +32 -34
- package/project/.sdk/src/cmp/go/ReadmeQuick_go.ts +15 -11
- package/project/.sdk/src/cmp/go/ReadmeRef_go.ts +32 -22
- package/project/.sdk/src/cmp/go/ReadmeTopHowto_go.ts +5 -4
- package/project/.sdk/src/cmp/go/ReadmeTopQuick_go.ts +7 -4
- package/project/.sdk/src/cmp/go/Schema_go.ts +2 -1
- package/project/.sdk/src/cmp/go/TestClean_go.ts +484 -45
- package/project/.sdk/src/cmp/go/TestDirect_go.ts +15 -13
- package/project/.sdk/src/cmp/go/TestEntity_go.ts +35 -35
- package/project/.sdk/src/cmp/go/fragment/Entity.fragment.go +1 -1
- package/project/.sdk/src/cmp/go/fragment/Main.fragment.go +14 -6
- package/project/.sdk/src/cmp/go-cli/Main_go-cli.ts +238 -96
- package/project/.sdk/src/cmp/go-cli/fragment/main.fragment.go +13 -12
- package/project/.sdk/src/cmp/go-cli/fragment/words.fragment.go +3 -8
- package/project/.sdk/src/cmp/go-mcp/Main_go-mcp.ts +183 -66
- package/project/.sdk/src/cmp/go-mcp/fragment/main.fragment.go +7 -7
- package/project/.sdk/src/cmp/java/Config_java.ts +8 -32
- package/project/.sdk/src/cmp/java/EntityTypes_java.ts +4 -5
- package/project/.sdk/src/cmp/java/Main_java.ts +5 -1
- package/project/.sdk/src/cmp/java/Package_java.ts +4 -7
- package/project/.sdk/src/cmp/java/PrepareAuth_java.ts +13 -11
- package/project/.sdk/src/cmp/java/ReadmeEntity_java.ts +10 -12
- package/project/.sdk/src/cmp/java/ReadmeExamplesTest_java.ts +17 -9
- package/project/.sdk/src/cmp/java/ReadmeExplanation_java.ts +1 -1
- package/project/.sdk/src/cmp/java/ReadmeHowto_java.ts +24 -12
- package/project/.sdk/src/cmp/java/ReadmeInstall_java.ts +8 -10
- package/project/.sdk/src/cmp/java/ReadmeIntro_java.ts +5 -7
- package/project/.sdk/src/cmp/java/ReadmeModel_java.ts +24 -35
- package/project/.sdk/src/cmp/java/ReadmeQuick_java.ts +11 -9
- package/project/.sdk/src/cmp/java/ReadmeRef_java.ts +25 -25
- package/project/.sdk/src/cmp/java/ReadmeTopHowto_java.ts +5 -4
- package/project/.sdk/src/cmp/java/ReadmeTopQuick_java.ts +3 -3
- package/project/.sdk/src/cmp/java/Schema_java.ts +2 -1
- package/project/.sdk/src/cmp/java/TestClean_java.ts +386 -19
- package/project/.sdk/src/cmp/java/TestDirect_java.ts +12 -11
- package/project/.sdk/src/cmp/java/TestEntity_java.ts +27 -27
- package/project/.sdk/src/cmp/java/fragment/EntityBase.fragment.java +8 -7
- package/project/.sdk/src/cmp/java/utility_java.ts +7 -23
- package/project/.sdk/src/cmp/js/Config_js.ts +13 -35
- package/project/.sdk/src/cmp/js/EntityBase_js.ts +1 -1
- package/project/.sdk/src/cmp/js/EntityTypes_js.ts +4 -5
- package/project/.sdk/src/cmp/js/Entity_js.ts +1 -1
- package/project/.sdk/src/cmp/js/Main_js.ts +6 -9
- package/project/.sdk/src/cmp/js/Package_js.ts +3 -2
- package/project/.sdk/src/cmp/js/PrepareAuth_js.ts +9 -17
- package/project/.sdk/src/cmp/js/ReadmeEntity_js.ts +12 -14
- package/project/.sdk/src/cmp/js/ReadmeExplanation_js.ts +1 -1
- package/project/.sdk/src/cmp/js/ReadmeHowto_js.ts +41 -16
- package/project/.sdk/src/cmp/js/ReadmeInstall_js.ts +9 -6
- package/project/.sdk/src/cmp/js/ReadmeIntro_js.ts +6 -3
- package/project/.sdk/src/cmp/js/ReadmeModel_js.ts +23 -37
- package/project/.sdk/src/cmp/js/ReadmeQuick_js.ts +14 -4
- package/project/.sdk/src/cmp/js/ReadmeRef_js.ts +31 -35
- package/project/.sdk/src/cmp/js/ReadmeTopHowto_js.ts +5 -4
- package/project/.sdk/src/cmp/js/ReadmeTopQuick_js.ts +12 -4
- package/project/.sdk/src/cmp/js/Schema_js.ts +2 -1
- package/project/.sdk/src/cmp/js/TestClean_js.ts +229 -13
- package/project/.sdk/src/cmp/js/TestDirect_js.ts +16 -14
- package/project/.sdk/src/cmp/js/TestEntity_js.ts +30 -28
- package/project/.sdk/src/cmp/js/TestLive_js.ts +7 -6
- package/project/.sdk/src/cmp/js/fragment/Direct.test.fragment.js +1 -1
- package/project/.sdk/src/cmp/js/fragment/Entity.test.fragment.js +1 -1
- package/project/.sdk/src/cmp/js/fragment/EntityBase.fragment.js +5 -4
- package/project/.sdk/src/cmp/js/fragment/EntityCreateOp.fragment.js +1 -2
- package/project/.sdk/src/cmp/js/fragment/EntityLoadOp.fragment.js +1 -2
- package/project/.sdk/src/cmp/js/fragment/EntityPatchOp.fragment.js +1 -2
- package/project/.sdk/src/cmp/js/fragment/EntityRemoveOp.fragment.js +1 -2
- package/project/.sdk/src/cmp/js/fragment/EntityUpdateOp.fragment.js +1 -2
- package/project/.sdk/src/cmp/js/fragment/Main.fragment.js +4 -4
- package/project/.sdk/src/cmp/kotlin/Config_kotlin.ts +3 -25
- package/project/.sdk/src/cmp/kotlin/EntityTypes_kotlin.ts +4 -5
- package/project/.sdk/src/cmp/kotlin/Main_kotlin.ts +5 -1
- package/project/.sdk/src/cmp/kotlin/Package_kotlin.ts +5 -5
- package/project/.sdk/src/cmp/kotlin/PrepareAuth_kotlin.ts +13 -12
- package/project/.sdk/src/cmp/kotlin/ReadmeEntity_kotlin.ts +10 -12
- package/project/.sdk/src/cmp/kotlin/ReadmeExamplesTest_kotlin.ts +17 -9
- package/project/.sdk/src/cmp/kotlin/ReadmeExplanation_kotlin.ts +1 -1
- package/project/.sdk/src/cmp/kotlin/ReadmeHowto_kotlin.ts +24 -12
- package/project/.sdk/src/cmp/kotlin/ReadmeInstall_kotlin.ts +8 -10
- package/project/.sdk/src/cmp/kotlin/ReadmeIntro_kotlin.ts +5 -7
- package/project/.sdk/src/cmp/kotlin/ReadmeModel_kotlin.ts +24 -35
- package/project/.sdk/src/cmp/kotlin/ReadmeQuick_kotlin.ts +22 -23
- package/project/.sdk/src/cmp/kotlin/ReadmeRef_kotlin.ts +25 -25
- package/project/.sdk/src/cmp/kotlin/ReadmeTopHowto_kotlin.ts +5 -4
- package/project/.sdk/src/cmp/kotlin/ReadmeTopQuick_kotlin.ts +12 -10
- package/project/.sdk/src/cmp/kotlin/Schema_kotlin.ts +2 -1
- package/project/.sdk/src/cmp/kotlin/TestClean_kotlin.ts +306 -18
- package/project/.sdk/src/cmp/kotlin/TestDirect_kotlin.ts +19 -8
- package/project/.sdk/src/cmp/kotlin/TestEntity_kotlin.ts +34 -24
- package/project/.sdk/src/cmp/kotlin/fragment/EntityBase.fragment.kt +8 -7
- package/project/.sdk/src/cmp/kotlin/utility_kotlin.ts +7 -23
- package/project/.sdk/src/cmp/lua/Config_lua.ts +16 -26
- package/project/.sdk/src/cmp/lua/EntityTypes_lua.ts +4 -5
- package/project/.sdk/src/cmp/lua/Main_lua.ts +5 -4
- package/project/.sdk/src/cmp/lua/Package_lua.ts +12 -6
- package/project/.sdk/src/cmp/lua/PrepareAuth_lua.ts +13 -12
- package/project/.sdk/src/cmp/lua/ReadmeEntity_lua.ts +10 -12
- package/project/.sdk/src/cmp/lua/ReadmeExamplesTest_lua.ts +12 -5
- package/project/.sdk/src/cmp/lua/ReadmeExplanation_lua.ts +5 -3
- package/project/.sdk/src/cmp/lua/ReadmeHowto_lua.ts +25 -13
- package/project/.sdk/src/cmp/lua/ReadmeInstall_lua.ts +5 -4
- package/project/.sdk/src/cmp/lua/ReadmeIntro_lua.ts +6 -5
- package/project/.sdk/src/cmp/lua/ReadmeModel_lua.ts +32 -43
- package/project/.sdk/src/cmp/lua/ReadmeQuick_lua.ts +21 -10
- package/project/.sdk/src/cmp/lua/ReadmeRef_lua.ts +22 -26
- package/project/.sdk/src/cmp/lua/ReadmeTopHowto_lua.ts +5 -4
- package/project/.sdk/src/cmp/lua/ReadmeTopQuick_lua.ts +11 -4
- package/project/.sdk/src/cmp/lua/Schema_lua.ts +2 -1
- package/project/.sdk/src/cmp/lua/TestClean_lua.ts +297 -13
- package/project/.sdk/src/cmp/lua/TestDirect_lua.ts +13 -12
- package/project/.sdk/src/cmp/lua/TestEntity_lua.ts +30 -30
- package/project/.sdk/src/cmp/lua/fragment/Entity.fragment.lua +10 -10
- package/project/.sdk/src/cmp/lua/fragment/Main.fragment.lua +4 -4
- package/project/.sdk/src/cmp/ocaml/Config_ocaml.ts +4 -20
- package/project/.sdk/src/cmp/ocaml/Main_ocaml.ts +4 -0
- package/project/.sdk/src/cmp/ocaml/Package_ocaml.ts +8 -5
- package/project/.sdk/src/cmp/ocaml/PrepareAuth_ocaml.ts +11 -24
- package/project/.sdk/src/cmp/ocaml/ReadmeEntity_ocaml.ts +8 -10
- package/project/.sdk/src/cmp/ocaml/ReadmeExamplesTest_ocaml.ts +11 -4
- package/project/.sdk/src/cmp/ocaml/ReadmeExplanation_ocaml.ts +1 -1
- package/project/.sdk/src/cmp/ocaml/ReadmeHowto_ocaml.ts +12 -20
- package/project/.sdk/src/cmp/ocaml/ReadmeInstall_ocaml.ts +12 -11
- package/project/.sdk/src/cmp/ocaml/ReadmeIntro_ocaml.ts +8 -10
- package/project/.sdk/src/cmp/ocaml/ReadmeModel_ocaml.ts +26 -35
- package/project/.sdk/src/cmp/ocaml/ReadmeQuick_ocaml.ts +21 -10
- package/project/.sdk/src/cmp/ocaml/ReadmeRef_ocaml.ts +24 -23
- package/project/.sdk/src/cmp/ocaml/ReadmeTopHowto_ocaml.ts +5 -4
- package/project/.sdk/src/cmp/ocaml/ReadmeTopQuick_ocaml.ts +11 -4
- package/project/.sdk/src/cmp/ocaml/TestClean_ocaml.ts +179 -14
- package/project/.sdk/src/cmp/ocaml/TestEntity_ocaml.ts +1 -1
- package/project/.sdk/src/cmp/ocaml/utility_ocaml.ts +0 -9
- package/project/.sdk/src/cmp/perl/Config_perl.ts +2 -16
- package/project/.sdk/src/cmp/perl/Main_perl.ts +3 -1
- package/project/.sdk/src/cmp/perl/PrepareAuth_perl.ts +12 -10
- package/project/.sdk/src/cmp/perl/ReadmeEntity_perl.ts +8 -10
- package/project/.sdk/src/cmp/perl/ReadmeExamplesTest_perl.ts +16 -10
- package/project/.sdk/src/cmp/perl/ReadmeExplanation_perl.ts +1 -1
- package/project/.sdk/src/cmp/perl/ReadmeHowto_perl.ts +25 -13
- package/project/.sdk/src/cmp/perl/ReadmeInstall_perl.ts +10 -9
- package/project/.sdk/src/cmp/perl/ReadmeIntro_perl.ts +4 -6
- package/project/.sdk/src/cmp/perl/ReadmeModel_perl.ts +24 -35
- package/project/.sdk/src/cmp/perl/ReadmeQuick_perl.ts +21 -10
- package/project/.sdk/src/cmp/perl/ReadmeRef_perl.ts +23 -23
- package/project/.sdk/src/cmp/perl/ReadmeTopHowto_perl.ts +5 -4
- package/project/.sdk/src/cmp/perl/ReadmeTopQuick_perl.ts +11 -4
- package/project/.sdk/src/cmp/perl/TestClean_perl.ts +407 -26
- package/project/.sdk/src/cmp/perl/TestDirect_perl.ts +13 -12
- package/project/.sdk/src/cmp/perl/TestEntity_perl.ts +29 -30
- package/project/.sdk/src/cmp/perl/fragment/Entity.fragment.pm +20 -11
- package/project/.sdk/src/cmp/perl/fragment/EntityLoadOp.fragment.pm +5 -5
- package/project/.sdk/src/cmp/perl/fragment/EntityRemoveOp.fragment.pm +3 -3
- package/project/.sdk/src/cmp/perl/fragment/Main.fragment.pm +10 -5
- package/project/.sdk/src/cmp/php/Config_php.ts +18 -33
- package/project/.sdk/src/cmp/php/EntityTypes_php.ts +4 -5
- package/project/.sdk/src/cmp/php/Main_php.ts +5 -9
- package/project/.sdk/src/cmp/php/PrepareAuth_php.ts +7 -17
- package/project/.sdk/src/cmp/php/ReadmeEntity_php.ts +10 -12
- package/project/.sdk/src/cmp/php/ReadmeExamplesTest_php.ts +15 -9
- package/project/.sdk/src/cmp/php/ReadmeExplanation_php.ts +5 -3
- package/project/.sdk/src/cmp/php/ReadmeHowto_php.ts +24 -12
- package/project/.sdk/src/cmp/php/ReadmeInstall_php.ts +8 -5
- package/project/.sdk/src/cmp/php/ReadmeIntro_php.ts +1 -1
- package/project/.sdk/src/cmp/php/ReadmeModel_php.ts +31 -37
- package/project/.sdk/src/cmp/php/ReadmeQuick_php.ts +21 -10
- package/project/.sdk/src/cmp/php/ReadmeRef_php.ts +32 -29
- package/project/.sdk/src/cmp/php/ReadmeTopHowto_php.ts +5 -4
- package/project/.sdk/src/cmp/php/ReadmeTopQuick_php.ts +11 -4
- package/project/.sdk/src/cmp/php/Schema_php.ts +2 -1
- package/project/.sdk/src/cmp/php/TestClean_php.ts +416 -39
- package/project/.sdk/src/cmp/php/TestDirect_php.ts +13 -12
- package/project/.sdk/src/cmp/php/TestEntity_php.ts +56 -31
- package/project/.sdk/src/cmp/php/fragment/Entity.fragment.php +8 -8
- package/project/.sdk/src/cmp/php/fragment/EntityCreateOp.fragment.php +1 -1
- package/project/.sdk/src/cmp/php/fragment/EntityListOp.fragment.php +1 -1
- package/project/.sdk/src/cmp/php/fragment/EntityLoadOp.fragment.php +3 -3
- package/project/.sdk/src/cmp/php/fragment/EntityPatchOp.fragment.php +1 -1
- package/project/.sdk/src/cmp/php/fragment/EntityRemoveOp.fragment.php +3 -3
- package/project/.sdk/src/cmp/php/fragment/EntityUpdateOp.fragment.php +1 -1
- package/project/.sdk/src/cmp/php/fragment/Main.fragment.php +4 -4
- package/project/.sdk/src/cmp/py/Config_py.ts +18 -33
- package/project/.sdk/src/cmp/py/EntityTypes_py.ts +4 -5
- package/project/.sdk/src/cmp/py/Main_py.ts +3 -9
- package/project/.sdk/src/cmp/py/PrepareAuth_py.ts +8 -19
- package/project/.sdk/src/cmp/py/ReadmeEntity_py.ts +10 -12
- package/project/.sdk/src/cmp/py/ReadmeExamplesTest_py.ts +21 -14
- package/project/.sdk/src/cmp/py/ReadmeExplanation_py.ts +25 -15
- package/project/.sdk/src/cmp/py/ReadmeHowto_py.ts +25 -13
- package/project/.sdk/src/cmp/py/ReadmeInstall_py.ts +5 -4
- package/project/.sdk/src/cmp/py/ReadmeIntro_py.ts +4 -6
- package/project/.sdk/src/cmp/py/ReadmeModel_py.ts +25 -36
- package/project/.sdk/src/cmp/py/ReadmeQuick_py.ts +10 -8
- package/project/.sdk/src/cmp/py/ReadmeRef_py.ts +28 -28
- package/project/.sdk/src/cmp/py/ReadmeTopHowto_py.ts +5 -4
- package/project/.sdk/src/cmp/py/ReadmeTopQuick_py.ts +3 -3
- package/project/.sdk/src/cmp/py/Schema_py.ts +2 -1
- package/project/.sdk/src/cmp/py/TestClean_py.ts +342 -28
- package/project/.sdk/src/cmp/py/TestDirect_py.ts +12 -11
- package/project/.sdk/src/cmp/py/TestEntity_py.ts +31 -31
- package/project/.sdk/src/cmp/py/fragment/Entity.fragment.py +10 -9
- package/project/.sdk/src/cmp/py/fragment/Main.fragment.py +4 -6
- package/project/.sdk/src/cmp/py-data/Main_py-data.ts +280 -145
- package/project/.sdk/src/cmp/rb/Config_rb.ts +16 -26
- package/project/.sdk/src/cmp/rb/Main_rb.ts +3 -9
- package/project/.sdk/src/cmp/rb/PrepareAuth_rb.ts +9 -18
- package/project/.sdk/src/cmp/rb/ReadmeEntity_rb.ts +10 -12
- package/project/.sdk/src/cmp/rb/ReadmeExamplesTest_rb.ts +15 -10
- package/project/.sdk/src/cmp/rb/ReadmeExplanation_rb.ts +5 -3
- package/project/.sdk/src/cmp/rb/ReadmeHowto_rb.ts +24 -12
- package/project/.sdk/src/cmp/rb/ReadmeInstall_rb.ts +8 -5
- package/project/.sdk/src/cmp/rb/ReadmeIntro_rb.ts +1 -1
- package/project/.sdk/src/cmp/rb/ReadmeModel_rb.ts +28 -37
- package/project/.sdk/src/cmp/rb/ReadmeQuick_rb.ts +21 -10
- package/project/.sdk/src/cmp/rb/ReadmeRef_rb.ts +27 -27
- package/project/.sdk/src/cmp/rb/ReadmeTopHowto_rb.ts +5 -4
- package/project/.sdk/src/cmp/rb/ReadmeTopQuick_rb.ts +11 -4
- package/project/.sdk/src/cmp/rb/Schema_rb.ts +2 -1
- package/project/.sdk/src/cmp/rb/TestClean_rb.ts +270 -23
- package/project/.sdk/src/cmp/rb/TestDirect_rb.ts +13 -12
- package/project/.sdk/src/cmp/rb/TestEntity_rb.ts +30 -30
- package/project/.sdk/src/cmp/rb/fragment/Entity.fragment.rb +9 -9
- package/project/.sdk/src/cmp/rb/fragment/EntityLoadOp.fragment.rb +1 -1
- package/project/.sdk/src/cmp/rb/fragment/EntityRemoveOp.fragment.rb +1 -1
- package/project/.sdk/src/cmp/rb/fragment/Main.fragment.rb +4 -4
- package/project/.sdk/src/cmp/rust/Config_rust.ts +4 -34
- package/project/.sdk/src/cmp/rust/EntityTypes_rust.ts +3 -4
- package/project/.sdk/src/cmp/rust/Main_rust.ts +6 -2
- package/project/.sdk/src/cmp/rust/Package_rust.ts +6 -3
- package/project/.sdk/src/cmp/rust/PrepareAuth_rust.ts +13 -12
- package/project/.sdk/src/cmp/rust/ReadmeEntity_rust.ts +10 -12
- package/project/.sdk/src/cmp/rust/ReadmeExamplesTest_rust.ts +13 -6
- package/project/.sdk/src/cmp/rust/ReadmeExplanation_rust.ts +4 -2
- package/project/.sdk/src/cmp/rust/ReadmeHowto_rust.ts +26 -13
- package/project/.sdk/src/cmp/rust/ReadmeInstall_rust.ts +11 -10
- package/project/.sdk/src/cmp/rust/ReadmeIntro_rust.ts +5 -7
- package/project/.sdk/src/cmp/rust/ReadmeModel_rust.ts +35 -37
- package/project/.sdk/src/cmp/rust/ReadmeQuick_rust.ts +21 -9
- package/project/.sdk/src/cmp/rust/ReadmeRef_rust.ts +41 -32
- package/project/.sdk/src/cmp/rust/ReadmeTopHowto_rust.ts +5 -4
- package/project/.sdk/src/cmp/rust/ReadmeTopQuick_rust.ts +12 -4
- package/project/.sdk/src/cmp/rust/TestClean_rust.ts +391 -18
- package/project/.sdk/src/cmp/rust/TestDirect_rust.ts +17 -14
- package/project/.sdk/src/cmp/rust/TestEntity_rust.ts +35 -34
- package/project/.sdk/src/cmp/rust/fragment/Entity.fragment.rs +2 -2
- package/project/.sdk/src/cmp/rust/fragment/EntityCreateOp.fragment.rs +0 -1
- package/project/.sdk/src/cmp/rust/fragment/EntityListOp.fragment.rs +1 -1
- package/project/.sdk/src/cmp/rust/fragment/EntityLoadOp.fragment.rs +0 -1
- package/project/.sdk/src/cmp/rust/fragment/EntityPatchOp.fragment.rs +0 -1
- package/project/.sdk/src/cmp/rust/fragment/EntityUpdateOp.fragment.rs +0 -1
- package/project/.sdk/src/cmp/rust/fragment/Main.fragment.rs +5 -4
- package/project/.sdk/src/cmp/rust/utility_rust.ts +0 -8
- package/project/.sdk/src/cmp/scala/Config_scala.ts +5 -26
- package/project/.sdk/src/cmp/scala/EntityTypes_scala.ts +4 -5
- package/project/.sdk/src/cmp/scala/Main_scala.ts +5 -1
- package/project/.sdk/src/cmp/scala/PrepareAuth_scala.ts +13 -13
- package/project/.sdk/src/cmp/scala/ReadmeEntity_scala.ts +10 -12
- package/project/.sdk/src/cmp/scala/ReadmeExamplesTest_scala.ts +11 -4
- package/project/.sdk/src/cmp/scala/ReadmeExplanation_scala.ts +3 -3
- package/project/.sdk/src/cmp/scala/ReadmeHowto_scala.ts +12 -20
- package/project/.sdk/src/cmp/scala/ReadmeInstall_scala.ts +11 -15
- package/project/.sdk/src/cmp/scala/ReadmeIntro_scala.ts +5 -7
- package/project/.sdk/src/cmp/scala/ReadmeModel_scala.ts +24 -35
- package/project/.sdk/src/cmp/scala/ReadmeQuick_scala.ts +23 -23
- package/project/.sdk/src/cmp/scala/ReadmeRef_scala.ts +25 -25
- package/project/.sdk/src/cmp/scala/ReadmeTopHowto_scala.ts +5 -4
- package/project/.sdk/src/cmp/scala/ReadmeTopQuick_scala.ts +13 -10
- package/project/.sdk/src/cmp/scala/Schema_scala.ts +2 -1
- package/project/.sdk/src/cmp/scala/TestClean_scala.ts +324 -20
- package/project/.sdk/src/cmp/scala/TestEntity_scala.ts +16 -16
- package/project/.sdk/src/cmp/scala/fragment/EntityBase.fragment.scala +8 -7
- package/project/.sdk/src/cmp/scala/utility_scala.ts +4 -19
- package/project/.sdk/src/cmp/swift/Config_swift.ts +3 -14
- package/project/.sdk/src/cmp/swift/EntityTypes_swift.ts +3 -4
- package/project/.sdk/src/cmp/swift/Main_swift.ts +4 -0
- package/project/.sdk/src/cmp/swift/PrepareAuth_swift.ts +14 -14
- package/project/.sdk/src/cmp/swift/ReadmeEntity_swift.ts +10 -12
- package/project/.sdk/src/cmp/swift/ReadmeExamplesTest_swift.ts +14 -7
- package/project/.sdk/src/cmp/swift/ReadmeExplanation_swift.ts +3 -3
- package/project/.sdk/src/cmp/swift/ReadmeHowto_swift.ts +12 -20
- package/project/.sdk/src/cmp/swift/ReadmeInstall_swift.ts +13 -13
- package/project/.sdk/src/cmp/swift/ReadmeIntro_swift.ts +4 -6
- package/project/.sdk/src/cmp/swift/ReadmeModel_swift.ts +24 -35
- package/project/.sdk/src/cmp/swift/ReadmeQuick_swift.ts +24 -25
- package/project/.sdk/src/cmp/swift/ReadmeRef_swift.ts +25 -25
- package/project/.sdk/src/cmp/swift/ReadmeTopHowto_swift.ts +5 -4
- package/project/.sdk/src/cmp/swift/ReadmeTopQuick_swift.ts +13 -11
- package/project/.sdk/src/cmp/swift/TestClean_swift.ts +352 -23
- package/project/.sdk/src/cmp/swift/fragment/EntityBase.fragment.swift +8 -7
- package/project/.sdk/src/cmp/swift/fragment/Main.fragment.swift +5 -5
- package/project/.sdk/src/cmp/ts/Config_ts.ts +13 -35
- package/project/.sdk/src/cmp/ts/EntityBase_ts.ts +1 -1
- package/project/.sdk/src/cmp/ts/EntityTypes_ts.ts +4 -5
- package/project/.sdk/src/cmp/ts/Entity_ts.ts +1 -1
- package/project/.sdk/src/cmp/ts/Main_ts.ts +6 -9
- package/project/.sdk/src/cmp/ts/Package_ts.ts +3 -2
- package/project/.sdk/src/cmp/ts/PrepareAuth_ts.ts +11 -10
- package/project/.sdk/src/cmp/ts/ReadmeEntity_ts.ts +9 -11
- package/project/.sdk/src/cmp/ts/ReadmeExampleTest_ts.ts +33 -9
- package/project/.sdk/src/cmp/ts/ReadmeExamplesTest_ts.ts +35 -7
- package/project/.sdk/src/cmp/ts/ReadmeExplanation_ts.ts +1 -1
- package/project/.sdk/src/cmp/ts/ReadmeHowto_ts.ts +38 -18
- package/project/.sdk/src/cmp/ts/ReadmeInstall_ts.ts +9 -5
- package/project/.sdk/src/cmp/ts/ReadmeIntro_ts.ts +6 -3
- package/project/.sdk/src/cmp/ts/ReadmeModel_ts.ts +32 -53
- package/project/.sdk/src/cmp/ts/ReadmeQuick_ts.ts +10 -8
- package/project/.sdk/src/cmp/ts/ReadmeRef_ts.ts +22 -26
- package/project/.sdk/src/cmp/ts/ReadmeTopHowto_ts.ts +5 -4
- package/project/.sdk/src/cmp/ts/ReadmeTopQuick_ts.ts +6 -6
- package/project/.sdk/src/cmp/ts/Schema_ts.ts +2 -1
- package/project/.sdk/src/cmp/ts/TestClean_ts.ts +229 -13
- package/project/.sdk/src/cmp/ts/TestDirect_ts.ts +17 -17
- package/project/.sdk/src/cmp/ts/TestEntity_ts.ts +30 -30
- package/project/.sdk/src/cmp/ts/TestLive_ts.ts +7 -6
- package/project/.sdk/src/cmp/ts/fragment/Direct.test.fragment.ts +1 -1
- package/project/.sdk/src/cmp/ts/fragment/Entity.test.fragment.ts +1 -1
- package/project/.sdk/src/cmp/ts/fragment/EntityBase.fragment.ts +3 -3
- package/project/.sdk/src/cmp/ts/fragment/Main.fragment.ts +2 -2
- package/project/.sdk/src/cmp/zig/Config_zig.ts +5 -21
- package/project/.sdk/src/cmp/zig/Main_zig.ts +4 -0
- package/project/.sdk/src/cmp/zig/Package_zig.ts +3 -2
- package/project/.sdk/src/cmp/zig/PrepareAuth_zig.ts +10 -21
- package/project/.sdk/src/cmp/zig/ReadmeEntity_zig.ts +9 -11
- package/project/.sdk/src/cmp/zig/ReadmeExamplesTest_zig.ts +8 -7
- package/project/.sdk/src/cmp/zig/ReadmeExplanation_zig.ts +1 -1
- package/project/.sdk/src/cmp/zig/ReadmeHowto_zig.ts +17 -22
- package/project/.sdk/src/cmp/zig/ReadmeInstall_zig.ts +12 -9
- package/project/.sdk/src/cmp/zig/ReadmeIntro_zig.ts +5 -7
- package/project/.sdk/src/cmp/zig/ReadmeModel_zig.ts +40 -37
- package/project/.sdk/src/cmp/zig/ReadmeQuick_zig.ts +24 -10
- package/project/.sdk/src/cmp/zig/ReadmeRef_zig.ts +46 -30
- package/project/.sdk/src/cmp/zig/ReadmeTopHowto_zig.ts +5 -4
- package/project/.sdk/src/cmp/zig/ReadmeTopQuick_zig.ts +15 -5
- package/project/.sdk/src/cmp/zig/TestClean_zig.ts +259 -26
- package/project/.sdk/src/cmp/zig/fragment/Build.fragment.zig +1 -0
- package/project/.sdk/src/cmp/zig/fragment/Entity.fragment.zig +16 -17
- package/project/.sdk/src/cmp/zig/fragment/Main.fragment.zig +23 -12
- package/project/.sdk/src/cmp/zig/fragment/Root.fragment.zig +2 -1
- package/project/.sdk/src/cmp/zig/utility_zig.ts +0 -13
- package/project/.sdk/tm/c/Makefile +2 -1
- package/project/.sdk/tm/c/core/response.c +27 -4
- package/project/.sdk/tm/c/core/sdk.h +14 -7
- package/project/.sdk/tm/c/feature/secrets/plugin/capability.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/capability.h +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/catalog.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/catalog.h +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/config.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/config.h +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/depend.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/depend.h +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/env.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/env.h +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/export.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/export.h +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/graph.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/graph.h +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/host.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/host.h +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/order.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/order.h +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/point.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/point.h +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/ref.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/ref.h +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/resolve.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/resolve.h +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/types.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/types.h +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/value.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/value.h +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/version.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugin/version.h +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugins/aws.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugins/azuresecrets.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugins/boru.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugins/clock.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugins/doppler.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugins/encode.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugins/gcpsecrets.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugins/hashicorp.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugins/httpjson.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugins/infisical.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugins/minivault.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugins/onepassword.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugins/proc.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugins/secretspec.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugins/sekretoplugins.h +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugins/sha256.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugins/sigv4.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugins/support.h +2 -2
- package/project/.sdk/tm/c/feature/secrets/plugins/tls.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/sekreto/internal.h +2 -2
- package/project/.sdk/tm/c/feature/secrets/sekreto/json.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/sekreto/providers.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/sekreto/sekreto.c +2 -2
- package/project/.sdk/tm/c/feature/secrets/sekreto/sekreto.h +2 -2
- package/project/.sdk/tm/c/feature/secrets/sekreto/util.c +2 -2
- package/project/.sdk/tm/c/feature/secrets.c +4 -2
- package/project/.sdk/tm/c/feature/validate.c +5 -5
- package/project/.sdk/tm/c/tests/feature/secrets/secrets_test.c +200 -1
- package/project/.sdk/tm/c/tests/pipeline_test.c +1 -1
- package/project/.sdk/tm/c/tests/primary_corpus_test.c +17 -4
- package/project/.sdk/tm/c/tests/primary_utility_test.c +7 -7
- package/project/.sdk/tm/c/tests/sdk_pipeline_test.c +2 -2
- package/project/.sdk/tm/c/tests/server_variable_test.c +10 -48
- package/project/.sdk/tm/c/tests/struct_corpus_test.c +68 -2
- package/project/.sdk/tm/c/tests/transport_test.c +161 -3
- package/project/.sdk/tm/c/tests/vendor/omni/json.c +65 -26
- package/project/.sdk/tm/c/tests/vendor/omni/omni.h +2 -2
- package/project/.sdk/tm/c/tests/vendor/omni/runner.c +2 -2
- package/project/.sdk/tm/c/tests/vendor/omni/util.c +2 -2
- package/project/.sdk/tm/c/utility/clean.c +94 -12
- package/project/.sdk/tm/c/utility/fetcher.c +22 -6
- package/project/.sdk/tm/c/utility/make_error.c +4 -4
- package/project/.sdk/tm/c/utility/make_options.c +22 -16
- package/project/.sdk/tm/c/utility/struct/inject.c +23 -2
- package/project/.sdk/tm/c/utility/struct/re_util.c +3 -0
- package/project/.sdk/tm/c/utility/struct/regex.c +43 -22
- package/project/.sdk/tm/c/utility/struct/regex.h +4 -1
- package/project/.sdk/tm/c/utility/struct/transform.c +982 -296
- package/project/.sdk/tm/c/utility/struct/utility.c +712 -136
- package/project/.sdk/tm/c/utility/struct/value.c +3 -0
- package/project/.sdk/tm/c/utility/struct/value.h +3 -0
- package/project/.sdk/tm/c/utility/struct/value_io.c +3 -0
- package/project/.sdk/tm/c/utility/struct/value_io.h +3 -0
- package/project/.sdk/tm/c/utility/struct/voxgig_struct.h +36 -1
- package/project/.sdk/tm/clojure/feature/secrets/sdk/feature/secrets.clj +3 -1
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin/capability.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin/catalog.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin/config.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin/depend.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin/env.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin/export.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin/graph.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin/host.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin/json.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin/order.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin/point.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin/ref.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin/resolve.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin/types.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin/version.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/plugin.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/addr.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/chain.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/core.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/json.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/plugins/aws.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/plugins/azuresecrets.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/plugins/boru.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/plugins/doppler.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/plugins/gcpsecrets.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/plugins/hashicorp.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/plugins/httpjson.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/plugins/infisical.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/plugins/minivault.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/plugins/onepassword.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/plugins/proc.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/plugins/secretspec.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/plugins/sigv4.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/provider.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto/providers.clj +2 -2
- package/project/.sdk/tm/clojure/feature/secrets/voxgig/sekreto.clj +2 -2
- package/project/.sdk/tm/clojure/src/sdk/client.clj +4 -4
- package/project/.sdk/tm/clojure/src/sdk/core.clj +175 -32
- package/project/.sdk/tm/clojure/src/sdk/features.clj +6 -7
- package/project/.sdk/tm/clojure/src/voxgig/struct.clj +866 -186
- package/project/.sdk/tm/clojure/test/sdk/test/feature/secrets.clj +85 -2
- package/project/.sdk/tm/clojure/test/sdk/test/feature.clj +1 -1
- package/project/.sdk/tm/clojure/test/sdk/test/omni_smoke.clj +1 -1
- package/project/.sdk/tm/clojure/test/sdk/test/pipeline.clj +98 -3
- package/project/.sdk/tm/clojure/test/sdk/test/primary.clj +7 -2
- package/project/.sdk/tm/clojure/test/sdk/test/struct_corpus.clj +22 -9
- package/project/.sdk/tm/clojure/test/sdk/test_runner.clj +15 -14
- package/project/.sdk/tm/clojure/test/vendor/omni/voxgig/omni/json.clj +2 -2
- package/project/.sdk/tm/clojure/test/vendor/omni/voxgig/omni/runner.clj +2 -2
- package/project/.sdk/tm/clojure/test/vendor/omni/voxgig/omni/util.clj +2 -2
- package/project/.sdk/tm/cpp/Makefile +3 -3
- package/project/.sdk/tm/cpp/core/types.hpp +49 -30
- package/project/.sdk/tm/cpp/feature/secrets/plugin/capability.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/capability.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/catalog.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/catalog.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/config.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/config.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/depend.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/depend.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/env.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/env.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/export.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/export.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/graph.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/graph.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/host.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/host.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/order.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/order.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/point.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/point.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/ref.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/ref.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/resolve.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/resolve.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/types.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/types.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/value.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/value.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/version.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugin/version.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Aws.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Aws.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Azuresecrets.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Azuresecrets.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Boru.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Boru.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Crypto.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Crypto.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Doppler.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Doppler.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Gcpsecrets.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Gcpsecrets.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Hashicorp.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Hashicorp.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Httpjson.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Httpjson.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Infisical.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Infisical.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Minivault.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Minivault.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Onepassword.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Onepassword.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Proc.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Proc.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Secretspec.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Secretspec.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Sigv4.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Sigv4.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Tls.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/plugins/Tls.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/sekreto/Json.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/sekreto/Json.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/sekreto/Provider.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/sekreto/Provider.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/sekreto/Providers.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/sekreto/Providers.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/sekreto/Sekreto.cpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets/sekreto/Sekreto.hpp +2 -2
- package/project/.sdk/tm/cpp/feature/secrets.hpp +3 -1
- package/project/.sdk/tm/cpp/feature/validate.hpp +5 -5
- package/project/.sdk/tm/cpp/test/custom_utility_test.cpp +1 -1
- package/project/.sdk/tm/cpp/test/feature/secrets/secrets_test.cpp +226 -0
- package/project/.sdk/tm/cpp/test/omni_resolver.hpp +1 -1
- package/project/.sdk/tm/cpp/test/primary_utility_test.cpp +9 -3
- package/project/.sdk/tm/cpp/test/runner_support.hpp +25 -4
- package/project/.sdk/tm/cpp/test/struct_corpus_test.cpp +32 -3
- package/project/.sdk/tm/cpp/test/vendor/omni/json.hpp +55 -17
- package/project/.sdk/tm/cpp/test/vendor/omni/omni.hpp +2 -2
- package/project/.sdk/tm/cpp/test/vendor/omni/util.hpp +2 -2
- package/project/.sdk/tm/cpp/utility/pipeline.hpp +96 -20
- package/project/.sdk/tm/cpp/utility/voxgigstruct/value.hpp +3 -0
- package/project/.sdk/tm/cpp/utility/voxgigstruct/value_io.hpp +3 -0
- package/project/.sdk/tm/cpp/utility/voxgigstruct/voxgig_struct.hpp +1374 -371
- package/project/.sdk/tm/csharp/Makefile +6 -6
- package/project/.sdk/tm/csharp/core/Response.cs +21 -2
- package/project/.sdk/tm/csharp/core/Result.cs +2 -2
- package/project/.sdk/tm/csharp/core/Utility.cs +2 -0
- package/project/.sdk/tm/csharp/feature/SecretsFeature.cs +7 -6
- package/project/.sdk/tm/csharp/feature/ValidateFeature.cs +4 -5
- package/project/.sdk/tm/csharp/feature/secrets/plugin/Capability.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugin/Catalog.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugin/Config.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugin/Definition.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugin/Depend.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugin/Entry.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugin/Env.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugin/Export.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugin/Graph.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugin/Host.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugin/Inst.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugin/Json.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugin/Order.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugin/Plugin.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugin/Point.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugin/Refs.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugin/Resolve.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugin/Types.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugin/Version.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugins/Aws.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugins/AzureSecrets.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugins/Boru.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugins/Child.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugins/Doppler.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugins/GcpSecrets.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugins/Hashicorp.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugins/HttpJson.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugins/Infisical.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugins/MiniVault.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugins/OnePassword.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugins/SecretSpec.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/plugins/Sigv4.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/sekreto/Json.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/sekreto/Providers.cs +2 -2
- package/project/.sdk/tm/csharp/feature/secrets/sekreto/Sekreto.cs +2 -2
- package/project/.sdk/tm/csharp/test/PipelineTest.cs +1 -1
- package/project/.sdk/tm/csharp/test/PrimaryUtilityTest.cs +242 -1
- package/project/.sdk/tm/csharp/test/Runner.cs +4 -4
- package/project/.sdk/tm/csharp/test/StructUtilityTest.cs +38 -38
- package/project/.sdk/tm/csharp/test/feature/secrets/SecretsFeatureTest.cs +267 -0
- package/project/.sdk/tm/csharp/test/vendor/omni/Runner.cs +2 -2
- package/project/.sdk/tm/csharp/test/vendor/omni/Util.cs +2 -2
- package/project/.sdk/tm/csharp/utility/Clean.cs +139 -12
- package/project/.sdk/tm/csharp/utility/Fetcher.cs +115 -35
- package/project/.sdk/tm/csharp/utility/MakeError.cs +4 -5
- package/project/.sdk/tm/csharp/utility/MakeOptions.cs +5 -5
- package/project/.sdk/tm/csharp/utility/Register.cs +1 -0
- package/project/.sdk/tm/csharp/utility/struct/Struct.cs +1587 -325
- package/project/.sdk/tm/elixir/lib/projectname/entity_base.ex +9 -11
- package/project/.sdk/tm/elixir/lib/projectname/error.ex +1 -1
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/capability.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/catalog.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/config.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/depend.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/env.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/error.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/export.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/graph.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/host.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/inst.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/json.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/order.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/point.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/ref.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/resolve.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/types.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/version.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/plugin/voxgig_plugin.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/json.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/plugins/aws.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/plugins/azuresecrets.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/plugins/boru.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/plugins/doppler.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/plugins/gcpsecrets.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/plugins/hashicorp.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/plugins/http.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/plugins/httpjson.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/plugins/infisical.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/plugins/minivault.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/plugins/onepassword.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/plugins/proc.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/plugins/secretspec.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/plugins/sigv4.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/provider.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/providers.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets/sekreto/sekreto.ex +2 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/secrets.ex +4 -2
- package/project/.sdk/tm/elixir/lib/projectname/feature/validate.ex +4 -5
- package/project/.sdk/tm/elixir/lib/projectname/utility.ex +219 -37
- package/project/.sdk/tm/elixir/lib/utility/struct/voxgig_struct.ex +1088 -253
- package/project/.sdk/tm/elixir/test/feature/secrets/secrets_test.exs +147 -1
- package/project/.sdk/tm/elixir/test/pipeline_test.exs +167 -1
- package/project/.sdk/tm/elixir/test/primary_utility_test.exs +12 -1
- package/project/.sdk/tm/elixir/test/struct_corpus_test.exs +43 -21
- package/project/.sdk/tm/elixir/test/support/omni.ex +2 -2
- package/project/.sdk/tm/elixir/test/vendor/omni/json.ex +33 -5
- package/project/.sdk/tm/elixir/test/vendor/omni/runner.ex +2 -2
- package/project/.sdk/tm/elixir/test/vendor/omni/util.ex +2 -2
- package/project/.sdk/tm/go/Makefile +4 -4
- package/project/.sdk/tm/go/core/response.go +17 -4
- package/project/.sdk/tm/go/core/result.go +2 -2
- package/project/.sdk/tm/go/core/utility_type.go +2 -1
- package/project/.sdk/tm/go/feature/secrets/plugin/capability.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugin/catalog.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugin/config.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugin/depend.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugin/env.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugin/export.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugin/graph.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugin/host.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugin/order.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugin/point.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugin/ref.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugin/resolve.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugin/types.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugin/util.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugin/version.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugins/aws/aws.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugins/aws/sigv4.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugins/azuresecrets/azuresecrets.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugins/boru/boru.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugins/doppler/doppler.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugins/gcpsecrets/gcpsecrets.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugins/hashicorp/hashicorp.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugins/httpjson/httpjson.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugins/infisical/infisical.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugins/minivault/format.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugins/minivault/minivault.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugins/onepassword/onepassword.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugins/secretspec/secretspec.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/sekreto/addr.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/sekreto/providers.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/sekreto/sekreto.go +2 -2
- package/project/.sdk/tm/go/feature/secrets_feature.go +8 -1
- package/project/.sdk/tm/go/test/concurrency_test.go +1 -1
- package/project/.sdk/tm/go/test/custom_utility_test.go +5 -5
- package/project/.sdk/tm/go/test/feature/secrets/secrets_feature_test.go +160 -7
- package/project/.sdk/tm/go/test/feature_corpus_test.go +1 -1
- package/project/.sdk/tm/go/test/feature_test.go +5 -1
- package/project/.sdk/tm/go/test/omni/omni.go +2 -2
- package/project/.sdk/tm/go/test/omni/util.go +12 -5
- package/project/.sdk/tm/go/test/omniresolver_test.go +1 -1
- package/project/.sdk/tm/go/test/pipeline_test.go +4 -1
- package/project/.sdk/tm/go/test/primary_utility_test.go +181 -5
- package/project/.sdk/tm/go/test/server_variable_test.go +50 -0
- package/project/.sdk/tm/go/test/struct_utility_test.go +59 -56
- package/project/.sdk/tm/go/test/testsupport_test.go +13 -3
- package/project/.sdk/tm/go/utility/clean.go +223 -6
- package/project/.sdk/tm/go/utility/fetcher.go +59 -10
- package/project/.sdk/tm/go/utility/make_error.go +4 -4
- package/project/.sdk/tm/go/utility/make_options.go +12 -5
- package/project/.sdk/tm/go/utility/register.go +12 -1
- package/project/.sdk/tm/go/utility/struct/voxgigstruct.go +1510 -430
- package/project/.sdk/tm/java/Makefile +7 -6
- package/project/.sdk/tm/java/core/Response.java +16 -2
- package/project/.sdk/tm/java/core/Result.java +2 -2
- package/project/.sdk/tm/java/core/SdkClient.java +4 -4
- package/project/.sdk/tm/java/core/Utility.java +7 -0
- package/project/.sdk/tm/java/feature/SecretsFeature.java +3 -0
- package/project/.sdk/tm/java/feature/ValidateFeature.java +4 -5
- package/project/.sdk/tm/java/feature/secrets/plugin/Capability.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/plugin/Catalog.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/plugin/Config.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/plugin/Definition.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/plugin/Depend.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/plugin/Entry.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/plugin/Env.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/plugin/Export.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/plugin/Graph.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/plugin/Host.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/plugin/Inst.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/plugin/Json.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/plugin/Order.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/plugin/Plugin.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/plugin/PluginException.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/plugin/Point.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/plugin/Refs.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/plugin/Resolve.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/plugin/Types.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/plugin/Version.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/sekreto/Addr.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/sekreto/Builtins.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/sekreto/Json.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/sekreto/Provider.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/sekreto/Sekreto.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/sekreto/Support.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/sekreto/plugins/Aws.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/sekreto/plugins/Azuresecrets.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/sekreto/plugins/Boru.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/sekreto/plugins/Doppler.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/sekreto/plugins/Gcpsecrets.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/sekreto/plugins/Hashicorp.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/sekreto/plugins/Httpjson.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/sekreto/plugins/Infisical.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/sekreto/plugins/Minivault.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/sekreto/plugins/Onepassword.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/sekreto/plugins/Proc.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/sekreto/plugins/Secretspec.java +2 -2
- package/project/.sdk/tm/java/feature/secrets/sekreto/plugins/Sigv4.java +2 -2
- package/project/.sdk/tm/java/test/PipelineTest.java +1 -1
- package/project/.sdk/tm/java/test/PrimaryUtilityTest.java +199 -2
- package/project/.sdk/tm/java/test/RunnerSupport.java +4 -4
- package/project/.sdk/tm/java/test/StructCorpusTest.java +32 -3
- package/project/.sdk/tm/java/test/feature/secrets/SecretsFeatureTest.java +111 -2
- package/project/.sdk/tm/java/test/vendor/omni/Json.java +2 -2
- package/project/.sdk/tm/java/test/vendor/omni/Runner.java +2 -2
- package/project/.sdk/tm/java/test/vendor/omni/Util.java +2 -2
- package/project/.sdk/tm/java/utility/Clean.java +186 -19
- package/project/.sdk/tm/java/utility/Fetcher.java +109 -14
- package/project/.sdk/tm/java/utility/MakeError.java +4 -4
- package/project/.sdk/tm/java/utility/MakeOptions.java +5 -5
- package/project/.sdk/tm/java/utility/Register.java +4 -0
- package/project/.sdk/tm/java/utility/TransformResponse.java +5 -0
- package/project/.sdk/tm/java/utility/struct/Struct.java +1239 -229
- package/project/.sdk/tm/js/Makefile +5 -4
- package/project/.sdk/tm/js/src/feature/secrets/SecretsFeature.js +2 -0
- package/project/.sdk/tm/js/src/feature/secrets/plugin/capability.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/plugin/catalog.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/plugin/config.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/plugin/depend.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/plugin/env.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/plugin/export.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/plugin/graph.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/plugin/host.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/plugin/index.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/plugin/order.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/plugin/point.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/plugin/ref.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/plugin/resolve.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/plugin/types.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/plugin/version.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/Sekreto.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/index.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/plugins/aws.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/plugins/azuresecrets.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/plugins/boru.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/plugins/doppler.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/plugins/gcpsecrets.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/plugins/hashicorp.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/plugins/httpjson.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/plugins/infisical.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/plugins/minivault.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/plugins/onepassword.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/plugins/secretspec.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/plugins/sigv4.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/provider/addr.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/provider/builtin.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/provider/dotenv.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/provider/env.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/provider/file.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/provider/memory.js +1 -1
- package/project/.sdk/tm/js/src/feature/secrets/sekreto/provider/support.js +1 -1
- package/project/.sdk/tm/js/src/feature/validate/ValidateFeature.js +4 -5
- package/project/.sdk/tm/js/src/utility/CleanUtility.js +104 -10
- package/project/.sdk/tm/js/src/utility/FetcherUtility.js +99 -1
- package/project/.sdk/tm/js/src/utility/MakeErrorUtility.js +4 -4
- package/project/.sdk/tm/js/src/utility/MakeOptionsUtility.js +5 -5
- package/project/.sdk/tm/js/src/utility/MediaUtility.js +32 -0
- package/project/.sdk/tm/js/src/utility/ResultBodyUtility.js +6 -14
- package/project/.sdk/tm/js/src/utility/StructUtility.js +972 -180
- package/project/.sdk/tm/js/src/utility/Utility.js +2 -1
- package/project/.sdk/tm/js/test/feature/harness.js +6 -7
- package/project/.sdk/tm/js/test/feature/secrets/Secrets.test.js +92 -2
- package/project/.sdk/tm/js/test/live-entity.js +8 -8
- package/project/.sdk/tm/js/test/utility/PrimaryUtility.test.js +9 -1
- package/project/.sdk/tm/js/test/utility/StructUtility.test.js +32 -27
- package/project/.sdk/tm/js/test/utility/index.js +1 -1
- package/project/.sdk/tm/js/test/vendor/omni/index.js +1 -1
- package/project/.sdk/tm/js/test/vendor/omni/runner.js +1 -1
- package/project/.sdk/tm/js/test/vendor/omni/util.js +1 -1
- package/project/.sdk/tm/kotlin/Makefile +7 -6
- package/project/.sdk/tm/kotlin/core/Response.kt +17 -2
- package/project/.sdk/tm/kotlin/core/Result.kt +2 -2
- package/project/.sdk/tm/kotlin/core/SdkClient.kt +4 -4
- package/project/.sdk/tm/kotlin/core/Utility.kt +4 -2
- package/project/.sdk/tm/kotlin/feature/SecretsFeature.kt +2 -0
- package/project/.sdk/tm/kotlin/feature/ValidateFeature.kt +4 -5
- package/project/.sdk/tm/kotlin/feature/secrets/plugin/Capability.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/plugin/Catalog.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/plugin/Config.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/plugin/Depend.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/plugin/Env.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/plugin/Export.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/plugin/Graph.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/plugin/Host.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/plugin/Json.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/plugin/Order.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/plugin/Plugin.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/plugin/Point.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/plugin/Refs.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/plugin/Resolve.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/plugin/Types.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/plugin/Version.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/sekreto/Json.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/sekreto/Provider.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/sekreto/Providers.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/sekreto/Sekreto.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/sekreto/Spec.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/sekreto/Support.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/sekreto/plugins/Aws.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/sekreto/plugins/Azuresecrets.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/sekreto/plugins/Boru.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/sekreto/plugins/Doppler.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/sekreto/plugins/Gcpsecrets.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/sekreto/plugins/Hashicorp.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/sekreto/plugins/Httpjson.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/sekreto/plugins/Infisical.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/sekreto/plugins/Minivault.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/sekreto/plugins/Onepassword.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/sekreto/plugins/Secretspec.kt +2 -2
- package/project/.sdk/tm/kotlin/feature/secrets/sekreto/plugins/Sigv4.kt +2 -2
- package/project/.sdk/tm/kotlin/test/PipelineTest.kt +1 -1
- package/project/.sdk/tm/kotlin/test/PrimaryUtilityTest.kt +188 -2
- package/project/.sdk/tm/kotlin/test/RunnerSupport.kt +23 -4
- package/project/.sdk/tm/kotlin/test/StructCorpusTest.kt +23 -3
- package/project/.sdk/tm/kotlin/test/feature/secrets/SecretsTest.kt +110 -1
- package/project/.sdk/tm/kotlin/test/vendor/omni/Json.kt +2 -2
- package/project/.sdk/tm/kotlin/test/vendor/omni/Runner.kt +2 -2
- package/project/.sdk/tm/kotlin/test/vendor/omni/Util.kt +2 -2
- package/project/.sdk/tm/kotlin/utility/CoreUtil.kt +142 -16
- package/project/.sdk/tm/kotlin/utility/Fetcher.kt +113 -14
- package/project/.sdk/tm/kotlin/utility/MakeOptions.kt +5 -5
- package/project/.sdk/tm/kotlin/utility/Register.kt +1 -0
- package/project/.sdk/tm/kotlin/utility/struct/Struct.kt +1074 -164
- package/project/.sdk/tm/lua/Makefile +4 -3
- package/project/.sdk/tm/lua/core/utility_type.lua +2 -0
- package/project/.sdk/tm/lua/feature/secrets/native/sekretonet.c +2 -2
- package/project/.sdk/tm/lua/feature/secrets/native/sekretovault.c +2 -2
- package/project/.sdk/tm/lua/feature/secrets/plugin/capability.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/plugin/catalog.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/plugin/config.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/plugin/depend.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/plugin/env.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/plugin/export.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/plugin/graph.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/plugin/host.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/plugin/json.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/plugin/order.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/plugin/point.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/plugin/ref.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/plugin/resolve.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/plugin/types.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/plugin/version.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/plugin.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto/addr.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto/err.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto/name.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/aws.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/azuresecrets.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/boru.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/crypto.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/doppler.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/gcpsecrets.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/hashicorp.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/httpjson.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/infisical.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/json.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/minivault.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/net.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/onepassword.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/secretspec.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/sigv4.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto/plugins/support.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto/providers.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets/sekreto.lua +2 -2
- package/project/.sdk/tm/lua/feature/secrets_feature.lua +3 -0
- package/project/.sdk/tm/lua/feature/validate_feature.lua +5 -6
- package/project/.sdk/tm/lua/test/feature/secrets/secrets_feature_test.lua +115 -2
- package/project/.sdk/tm/lua/test/omni.lua +1 -1
- package/project/.sdk/tm/lua/test/pipeline_test.lua +1 -1
- package/project/.sdk/tm/lua/test/primary_utility_test.lua +160 -1
- package/project/.sdk/tm/lua/test/runner.lua +3 -1
- package/project/.sdk/tm/lua/test/struct_utility_test.lua +152 -44
- package/project/.sdk/tm/lua/test/vendor/omni/json.lua +26 -6
- package/project/.sdk/tm/lua/test/vendor/omni/regex.lua +2 -2
- package/project/.sdk/tm/lua/test/vendor/omni/runner.lua +2 -2
- package/project/.sdk/tm/lua/test/vendor/omni/util.lua +2 -2
- package/project/.sdk/tm/lua/utility/clean.lua +86 -6
- package/project/.sdk/tm/lua/utility/fetcher.lua +19 -5
- package/project/.sdk/tm/lua/utility/make_error.lua +4 -5
- package/project/.sdk/tm/lua/utility/make_options.lua +5 -5
- package/project/.sdk/tm/lua/utility/media.lua +36 -0
- package/project/.sdk/tm/lua/utility/register.lua +1 -0
- package/project/.sdk/tm/lua/utility/struct/regex.lua +26 -9
- package/project/.sdk/tm/lua/utility/struct/struct.lua +1289 -245
- package/project/.sdk/tm/lua/utility/unreadable_body.lua +6 -16
- package/project/.sdk/tm/ocaml/Makefile +1 -1
- package/project/.sdk/tm/ocaml/feature/secrets/plugin/capability.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugin/catalog.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugin/config.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugin/defs.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugin/depend.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugin/env.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugin/export.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugin/graph.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugin/host.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugin/order.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugin/point.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugin/ref.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugin/resolve.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugin/types.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugin/value.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugin/version.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugins/aws.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugins/azuresecrets.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugins/boru.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugins/crypto.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugins/doppler.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugins/gcpsecrets.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugins/hashicorp.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugins/http.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugins/httpjson.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugins/infisical.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugins/minivault.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugins/minivault_stubs.c +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugins/onepassword.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugins/runcmd.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugins/secretspec.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugins/sigv4.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugins/tls.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/plugins/tls_stubs.c +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/sekreto/json.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/sekreto/provider.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/sekreto/secret.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets/sekreto/sekreto.ml +2 -2
- package/project/.sdk/tm/ocaml/feature/secrets_feature.ml +3 -1
- package/project/.sdk/tm/ocaml/sdk_features.ml +9 -10
- package/project/.sdk/tm/ocaml/sdk_runtime.ml +78 -15
- package/project/.sdk/tm/ocaml/sdk_types.ml +1 -1
- package/project/.sdk/tm/ocaml/test/feature/secrets/t_secrets.ml +154 -3
- package/project/.sdk/tm/ocaml/test/primary_utility_test.ml +14 -9
- package/project/.sdk/tm/ocaml/test/struct_corpus.ml +24 -15
- package/project/.sdk/tm/ocaml/test/vendor/omni/omni.ml +34 -28
- package/project/.sdk/tm/ocaml/utility/voxgig_struct.ml +807 -157
- package/project/.sdk/tm/ocaml/utility/vregex.ml +190 -60
- package/project/.sdk/tm/perl/Makefile +8 -7
- package/project/.sdk/tm/perl/core/control.pm +1 -1
- package/project/.sdk/tm/perl/core/error.pm +14 -1
- package/project/.sdk/tm/perl/core/helpers.pm +8 -7
- package/project/.sdk/tm/perl/feature/secrets/plugin/Voxgig/Plugin/Capability.pm +2 -2
- package/project/.sdk/tm/perl/feature/secrets/plugin/Voxgig/Plugin/Catalog.pm +2 -2
- package/project/.sdk/tm/perl/feature/secrets/plugin/Voxgig/Plugin/Config.pm +2 -2
- package/project/.sdk/tm/perl/feature/secrets/plugin/Voxgig/Plugin/Depend.pm +2 -2
- package/project/.sdk/tm/perl/feature/secrets/plugin/Voxgig/Plugin/Env.pm +2 -2
- package/project/.sdk/tm/perl/feature/secrets/plugin/Voxgig/Plugin/Export.pm +2 -2
- package/project/.sdk/tm/perl/feature/secrets/plugin/Voxgig/Plugin/Graph.pm +2 -2
- package/project/.sdk/tm/perl/feature/secrets/plugin/Voxgig/Plugin/Host.pm +2 -2
- package/project/.sdk/tm/perl/feature/secrets/plugin/Voxgig/Plugin/Order.pm +2 -2
- package/project/.sdk/tm/perl/feature/secrets/plugin/Voxgig/Plugin/Point.pm +2 -2
- package/project/.sdk/tm/perl/feature/secrets/plugin/Voxgig/Plugin/Ref.pm +2 -2
- package/project/.sdk/tm/perl/feature/secrets/plugin/Voxgig/Plugin/Resolve.pm +2 -2
- package/project/.sdk/tm/perl/feature/secrets/plugin/Voxgig/Plugin/Types.pm +2 -2
- package/project/.sdk/tm/perl/feature/secrets/plugin/Voxgig/Plugin/Version.pm +2 -2
- package/project/.sdk/tm/perl/feature/secrets/plugin/Voxgig/Plugin.pm +2 -2
- package/project/.sdk/tm/perl/feature/secrets/plugins/Voxgig/Sekreto/Plugins/Aws.pm +1 -1
- package/project/.sdk/tm/perl/feature/secrets/plugins/Voxgig/Sekreto/Plugins/Azuresecrets.pm +1 -1
- package/project/.sdk/tm/perl/feature/secrets/plugins/Voxgig/Sekreto/Plugins/Boru.pm +1 -1
- package/project/.sdk/tm/perl/feature/secrets/plugins/Voxgig/Sekreto/Plugins/Doppler.pm +1 -1
- package/project/.sdk/tm/perl/feature/secrets/plugins/Voxgig/Sekreto/Plugins/Gcpsecrets.pm +1 -1
- package/project/.sdk/tm/perl/feature/secrets/plugins/Voxgig/Sekreto/Plugins/Hashicorp.pm +1 -1
- package/project/.sdk/tm/perl/feature/secrets/plugins/Voxgig/Sekreto/Plugins/Httpjson.pm +1 -1
- package/project/.sdk/tm/perl/feature/secrets/plugins/Voxgig/Sekreto/Plugins/Infisical.pm +1 -1
- package/project/.sdk/tm/perl/feature/secrets/plugins/Voxgig/Sekreto/Plugins/Minivault.pm +1 -1
- package/project/.sdk/tm/perl/feature/secrets/plugins/Voxgig/Sekreto/Plugins/Onepassword.pm +1 -1
- package/project/.sdk/tm/perl/feature/secrets/plugins/Voxgig/Sekreto/Plugins/Proc.pm +1 -1
- package/project/.sdk/tm/perl/feature/secrets/plugins/Voxgig/Sekreto/Plugins/Secretspec.pm +1 -1
- package/project/.sdk/tm/perl/feature/secrets/plugins/Voxgig/Sekreto/Plugins/Sigv4.pm +1 -1
- package/project/.sdk/tm/perl/feature/secrets/sekreto/Voxgig/Sekreto/Addr.pm +1 -1
- package/project/.sdk/tm/perl/feature/secrets/sekreto/Voxgig/Sekreto/Providers.pm +1 -1
- package/project/.sdk/tm/perl/feature/secrets/sekreto/Voxgig/Sekreto.pm +1 -1
- package/project/.sdk/tm/perl/feature/secrets_feature.pm +2 -0
- package/project/.sdk/tm/perl/feature/validate_feature.pm +4 -5
- package/project/.sdk/tm/perl/lib/Voxgig/Struct.pm +1082 -149
- package/project/.sdk/tm/perl/t/feature/secrets/secrets.t +105 -0
- package/project/.sdk/tm/perl/t/feature_corpus.t +1 -1
- package/project/.sdk/tm/perl/t/omni.pm +16 -6
- package/project/.sdk/tm/perl/t/primary_utility.t +151 -2
- package/project/.sdk/tm/perl/t/runner.pm +1 -1
- package/project/.sdk/tm/perl/t/struct_utility.t +19 -11
- package/project/.sdk/tm/perl/t/vendor/omni/Voxgig/Omni/Runner.pm +1 -1
- package/project/.sdk/tm/perl/t/vendor/omni/Voxgig/Omni/Util.pm +1 -1
- package/project/.sdk/tm/perl/t/vendor/omni/Voxgig/Omni.pm +1 -1
- package/project/.sdk/tm/perl/utility/clean.pm +130 -15
- package/project/.sdk/tm/perl/utility/fetcher.pm +18 -5
- package/project/.sdk/tm/perl/utility/make_error.pm +4 -4
- package/project/.sdk/tm/perl/utility/make_options.pm +5 -5
- package/project/.sdk/tm/perl/utility/media.pm +29 -0
- package/project/.sdk/tm/perl/utility/result_body.pm +6 -13
- package/project/.sdk/tm/perl/utility/transform_response.pm +3 -0
- package/project/.sdk/tm/php/Makefile +4 -3
- package/project/.sdk/tm/php/core/Control.php +3 -2
- package/project/.sdk/tm/php/core/Helpers.php +49 -0
- package/project/.sdk/tm/php/core/UtilityType.php +2 -0
- package/project/.sdk/tm/php/feature/SecretsFeature.php +2 -0
- package/project/.sdk/tm/php/feature/ValidateFeature.php +6 -5
- package/project/.sdk/tm/php/feature/secrets/plugin/Capability.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/plugin/Catalog.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/plugin/Config.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/plugin/Depend.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/plugin/Env.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/plugin/Export.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/plugin/Graph.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/plugin/Host.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/plugin/Order.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/plugin/Point.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/plugin/Ref.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/plugin/Resolve.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/plugin/Types.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/plugin/Version.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/plugin/plugin.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/sekreto/plugins/aws.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/sekreto/plugins/azuresecrets.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/sekreto/plugins/boru.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/sekreto/plugins/doppler.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/sekreto/plugins/gcpsecrets.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/sekreto/plugins/hashicorp.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/sekreto/plugins/httpjson.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/sekreto/plugins/infisical.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/sekreto/plugins/minivault.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/sekreto/plugins/onepassword.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/sekreto/plugins/runcmd.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/sekreto/plugins/secretspec.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/sekreto/plugins/sigv4.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/sekreto/src/Addr.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/sekreto/src/Providers.php +2 -2
- package/project/.sdk/tm/php/feature/secrets/sekreto/src/Sekreto.php +2 -2
- package/project/.sdk/tm/php/test/FeatureCorpusTest.php +1 -1
- package/project/.sdk/tm/php/test/Omni.php +1 -1
- package/project/.sdk/tm/php/test/PipelineTest.php +146 -1
- package/project/.sdk/tm/php/test/PrimaryUtilityTest.php +23 -1
- package/project/.sdk/tm/php/test/Runner.php +1 -1
- package/project/.sdk/tm/php/test/StructUtilityTest.php +65 -116
- package/project/.sdk/tm/php/test/feature/secrets/SecretsTest.php +117 -1
- package/project/.sdk/tm/php/test/vendor/omni/Runner.php +2 -2
- package/project/.sdk/tm/php/test/vendor/omni/Util.php +2 -2
- package/project/.sdk/tm/php/utility/Clean.php +119 -19
- package/project/.sdk/tm/php/utility/Fetcher.php +24 -7
- package/project/.sdk/tm/php/utility/MakeError.php +4 -5
- package/project/.sdk/tm/php/utility/MakeOptions.php +9 -5
- package/project/.sdk/tm/php/utility/Media.php +29 -0
- package/project/.sdk/tm/php/utility/PrepareBody.php +7 -5
- package/project/.sdk/tm/php/utility/Register.php +1 -0
- package/project/.sdk/tm/php/utility/ResultBody.php +6 -16
- package/project/.sdk/tm/php/utility/TransformResponse.php +5 -0
- package/project/.sdk/tm/php/utility/struct/Struct.php +1933 -530
- package/project/.sdk/tm/py/Makefile +3 -2
- package/project/.sdk/tm/py/pkg/core/utility_type.py +2 -0
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/__init__.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/capability.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/catalog.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/config.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/depend.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/env.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/export.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/graph.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/host.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/order.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/point.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/ref.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/resolve.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/types.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/version.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/__init__.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/addr.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/plugins/aws.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/plugins/azuresecrets.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/plugins/boru.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/plugins/doppler.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/plugins/gcpsecrets.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/plugins/hashicorp.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/plugins/httpjson.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/plugins/infisical.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/plugins/minivault.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/plugins/onepassword.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/plugins/secretspec.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/plugins/sigv4.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/providers.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/sekreto.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets_feature.py +12 -1
- package/project/.sdk/tm/py/pkg/feature/validate_feature.py +4 -5
- package/project/.sdk/tm/py/pkg/utility/clean.py +104 -16
- package/project/.sdk/tm/py/pkg/utility/fetcher.py +64 -4
- package/project/.sdk/tm/py/pkg/utility/make_error.py +4 -4
- package/project/.sdk/tm/py/pkg/utility/make_options.py +5 -5
- package/project/.sdk/tm/py/pkg/utility/media.py +24 -0
- package/project/.sdk/tm/py/pkg/utility/register.py +2 -1
- package/project/.sdk/tm/py/pkg/utility/result_body.py +7 -12
- package/project/.sdk/tm/py/pkg/utility/voxgig_struct/voxgig_struct.py +1057 -198
- package/project/.sdk/tm/py/test/feature/secrets/test_secrets.py +124 -0
- package/project/.sdk/tm/py/test/feature_harness.py +6 -6
- package/project/.sdk/tm/py/test/omni.py +1 -1
- package/project/.sdk/tm/py/test/runner.py +6 -4
- package/project/.sdk/tm/py/test/test_feature_corpus.py +2 -2
- package/project/.sdk/tm/py/test/test_pipeline.py +1 -1
- package/project/.sdk/tm/py/test/test_primary_utility.py +135 -1
- package/project/.sdk/tm/py/test/test_struct_utility.py +29 -30
- package/project/.sdk/tm/py/test/voxgig_omni/__init__.py +1 -1
- package/project/.sdk/tm/py/test/voxgig_omni/runner.py +1 -1
- package/project/.sdk/tm/py/test/voxgig_omni/util.py +1 -1
- package/project/.sdk/tm/py-data/Makefile +5 -4
- package/project/.sdk/tm/py-data/pkg/auth.py +8 -5
- package/project/.sdk/tm/py-data/pkg/fetch.py +8 -8
- package/project/.sdk/tm/py-data/test/conftest.py +6 -7
- package/project/.sdk/tm/py-data/test/test_auth.py +5 -0
- package/project/.sdk/tm/rb/Makefile +3 -2
- package/project/.sdk/tm/rb/core/control.rb +1 -1
- package/project/.sdk/tm/rb/core/utility_type.rb +2 -1
- package/project/.sdk/tm/rb/feature/secrets/voxgig_plugin/capability.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_plugin/catalog.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_plugin/config.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_plugin/depend.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_plugin/env.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_plugin/export.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_plugin/graph.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_plugin/host.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_plugin/order.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_plugin/point.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_plugin/ref.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_plugin/resolve.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_plugin/types.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_plugin/version.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_plugin.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto/addr.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto/plugins/aws.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto/plugins/azuresecrets.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto/plugins/boru.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto/plugins/doppler.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto/plugins/gcpsecrets.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto/plugins/hashicorp.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto/plugins/httpjson.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto/plugins/infisical.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto/plugins/minivault.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto/plugins/onepassword.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto/plugins/secretspec.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto/plugins/sigv4.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto/providers.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto/sekreto.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets/voxgig_sekreto.rb +2 -2
- package/project/.sdk/tm/rb/feature/secrets_feature.rb +3 -0
- package/project/.sdk/tm/rb/feature/validate_feature.rb +4 -5
- package/project/.sdk/tm/rb/test/feature/secrets/secrets_feature_test.rb +117 -0
- package/project/.sdk/tm/rb/test/feature_corpus_test.rb +1 -1
- package/project/.sdk/tm/rb/test/omni.rb +1 -1
- package/project/.sdk/tm/rb/test/pipeline_test.rb +1 -1
- package/project/.sdk/tm/rb/test/primary_utility_test.rb +121 -1
- package/project/.sdk/tm/rb/test/runner.rb +1 -1
- package/project/.sdk/tm/rb/test/struct_utility_test.rb +30 -34
- package/project/.sdk/tm/rb/test/vendor/omni/runner.rb +2 -2
- package/project/.sdk/tm/rb/test/vendor/omni/util.rb +2 -2
- package/project/.sdk/tm/rb/test/vendor/omni/voxgig_omni.rb +2 -2
- package/project/.sdk/tm/rb/utility/clean.rb +94 -14
- package/project/.sdk/tm/rb/utility/fetcher.rb +12 -3
- package/project/.sdk/tm/rb/utility/make_error.rb +4 -4
- package/project/.sdk/tm/rb/utility/make_options.rb +5 -5
- package/project/.sdk/tm/rb/utility/media.rb +21 -0
- package/project/.sdk/tm/rb/utility/register.rb +1 -0
- package/project/.sdk/tm/rb/utility/result_body.rb +7 -9
- package/project/.sdk/tm/rb/utility/struct/voxgig_struct.rb +1569 -678
- package/project/.sdk/tm/rust/Makefile +5 -5
- package/project/.sdk/tm/rust/core/helpers.rs +1 -1
- package/project/.sdk/tm/rust/core/response.rs +18 -2
- package/project/.sdk/tm/rust/core/result.rs +4 -4
- package/project/.sdk/tm/rust/core/utility_type.rs +5 -1
- package/project/.sdk/tm/rust/feature/secrets/plugin/capability.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugin/catalog.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugin/config.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugin/depend.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugin/env.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugin/export.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugin/graph.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugin/host.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugin/mod.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugin/order.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugin/point.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugin/refs.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugin/resolve.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugin/types.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugin/value.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugin/version.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugins/aws/crypto.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugins/aws/sigv4.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugins/aws.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugins/azuresecrets.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugins/boru.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugins/doppler.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugins/gcpsecrets.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugins/hashicorp.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugins/httpjson/http.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugins/httpjson/json.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugins/httpjson.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugins/infisical.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugins/minivault/format.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugins/minivault.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugins/onepassword.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/plugins/secretspec.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/sekreto/addr.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/sekreto/mod.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/sekreto/providers.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets/sekreto/sekreto.rs +1 -1
- package/project/.sdk/tm/rust/feature/secrets.rs +10 -1
- package/project/.sdk/tm/rust/tests/common/mod.rs +3 -3
- package/project/.sdk/tm/rust/tests/feature/secrets/main.rs +309 -10
- package/project/.sdk/tm/rust/tests/omni_resolver/mod.rs +1 -1
- package/project/.sdk/tm/rust/tests/pipeline_test.rs +5 -2
- package/project/.sdk/tm/rust/tests/primary_utility_test.rs +281 -13
- package/project/.sdk/tm/rust/tests/server_variable_test.rs +48 -0
- package/project/.sdk/tm/rust/tests/struct_utility_test.rs +9 -1
- package/project/.sdk/tm/rust/tests/vendor/omni/json.rs +27 -11
- package/project/.sdk/tm/rust/tests/vendor/omni/mod.rs +1 -1
- package/project/.sdk/tm/rust/tests/vendor/omni/regex.rs +1 -1
- package/project/.sdk/tm/rust/tests/vendor/omni/runner.rs +1 -1
- package/project/.sdk/tm/rust/tests/vendor/omni/util.rs +1 -1
- package/project/.sdk/tm/rust/utility/clean.rs +128 -9
- package/project/.sdk/tm/rust/utility/fetcher.rs +107 -44
- package/project/.sdk/tm/rust/utility/make_error.rs +4 -4
- package/project/.sdk/tm/rust/utility/make_options.rs +12 -8
- package/project/.sdk/tm/rust/utility/voxgigstruct/consts.rs +18 -20
- package/project/.sdk/tm/rust/utility/voxgigstruct/major.rs +1328 -227
- package/project/.sdk/tm/rust/utility/voxgigstruct/mini.rs +90 -95
- package/project/.sdk/tm/rust/utility/voxgigstruct/mod.rs +12 -8
- package/project/.sdk/tm/rust/utility/voxgigstruct/ordered_map.rs +3 -1
- package/project/.sdk/tm/rust/utility/voxgigstruct/re.rs +49 -6
- package/project/.sdk/tm/rust/utility/voxgigstruct/value.rs +5 -2
- package/project/.sdk/tm/scala/Makefile +4 -4
- package/project/.sdk/tm/scala/core/Response.scala +19 -2
- package/project/.sdk/tm/scala/core/Result.scala +2 -2
- package/project/.sdk/tm/scala/core/SdkClient.scala +4 -4
- package/project/.sdk/tm/scala/core/Types.scala +3 -0
- package/project/.sdk/tm/scala/core/Utility.scala +2 -0
- package/project/.sdk/tm/scala/feature/SecretsFeature.scala +2 -0
- package/project/.sdk/tm/scala/feature/ValidateFeature.scala +4 -5
- package/project/.sdk/tm/scala/feature/secrets/plugin/Capability.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/plugin/Config.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/plugin/Depend.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/plugin/Env.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/plugin/Export.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/plugin/Graph.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/plugin/Host.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/plugin/Json.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/plugin/Order.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/plugin/Plugin.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/plugin/Point.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/plugin/Refs.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/plugin/Resolve.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/plugin/Types.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/plugin/Value.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/plugin/Version.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/sekreto/Json.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/sekreto/Provider.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/sekreto/Providers.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/sekreto/Sekreto.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/sekreto/Spec.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/sekreto/Support.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/sekreto/plugins/Aws.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/sekreto/plugins/Azuresecrets.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/sekreto/plugins/Boru.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/sekreto/plugins/Doppler.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/sekreto/plugins/Gcpsecrets.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/sekreto/plugins/Hashicorp.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/sekreto/plugins/Httpjson.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/sekreto/plugins/Infisical.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/sekreto/plugins/Minivault.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/sekreto/plugins/Onepassword.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/sekreto/plugins/Secretspec.scala +2 -2
- package/project/.sdk/tm/scala/feature/secrets/sekreto/plugins/Sigv4.scala +2 -2
- package/project/.sdk/tm/scala/sdktest/PrimaryCorpus.scala +10 -4
- package/project/.sdk/tm/scala/sdktest/SdkTestMain.scala +219 -3
- package/project/.sdk/tm/scala/sdktest/StructCorpus.scala +20 -14
- package/project/.sdk/tm/scala/sdktest/feature/secrets/SecretsTestMain.scala +108 -0
- package/project/.sdk/tm/scala/sdktest/vendor/omni/Json.scala +2 -2
- package/project/.sdk/tm/scala/sdktest/vendor/omni/Runner.scala +2 -2
- package/project/.sdk/tm/scala/sdktest/vendor/omni/Util.scala +2 -2
- package/project/.sdk/tm/scala/utility/Fetcher.scala +101 -14
- package/project/.sdk/tm/scala/utility/Make.scala +4 -4
- package/project/.sdk/tm/scala/utility/Misc.scala +133 -13
- package/project/.sdk/tm/scala/utility/Register.scala +1 -0
- package/project/.sdk/tm/scala/utility/Transform.scala +6 -1
- package/project/.sdk/tm/scala/utility/struct/Struct.java +1267 -253
- package/project/.sdk/tm/scala/utility/struct/voxgig_struct.scala +909 -202
- package/project/.sdk/tm/swift/Makefile +5 -5
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Condense.swift +351 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Constants.swift +7 -4
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Inject.swift +39 -24
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Injection.swift +51 -14
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/JSON.swift +4 -1
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Merge.swift +3 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Minor.swift +190 -77
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/OrderedDictionary.swift +3 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Path.swift +37 -8
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Select.swift +37 -20
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Transform.swift +67 -46
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Validate.swift +602 -110
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Value.swift +22 -16
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/Struct/Walk.swift +9 -1
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/core/Response.swift +20 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/core/Result.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/core/Support.swift +15 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/core/Utility.swift +2 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/SecretsFeature.swift +2 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/TestFeature.swift +6 -6
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/ValidateFeature.swift +5 -6
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Capability.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Catalog.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Config.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Depend.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Env.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Export.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Graph.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Host.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Json.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Order.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Point.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Refs.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Resolve.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Types.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Value.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugin/Version.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugins/Aws.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugins/Azuresecrets.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugins/Boru.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugins/Crypto.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugins/Doppler.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugins/Gcpsecrets.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugins/Hashicorp.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugins/Httpjson.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugins/Infisical.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugins/Onepassword.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugins/Proc.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugins/Secretspec.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/plugins/Sigv4.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/sekreto/Addr.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/sekreto/Json.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/sekreto/Provider.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/sekreto/Providers.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/secrets/sekreto/Sekreto.swift +2 -2
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/Fetcher.swift +24 -8
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/MakeError.swift +4 -4
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/MakeOptions.swift +7 -7
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/Register.swift +1 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/ResultUtil.swift +130 -30
- package/project/.sdk/tm/swift/Tests/ProjectNameSDKTests/OmniResolver.swift +2 -2
- package/project/.sdk/tm/swift/Tests/ProjectNameSDKTests/PipelineTest.swift +1 -1
- package/project/.sdk/tm/swift/Tests/ProjectNameSDKTests/PrimaryUtilityTest.swift +191 -1
- package/project/.sdk/tm/swift/Tests/ProjectNameSDKTests/Runner.swift +3 -3
- package/project/.sdk/tm/swift/Tests/ProjectNameSDKTests/StructUtilityTest.swift +36 -14
- package/project/.sdk/tm/swift/Tests/ProjectNameSDKTests/feature/secrets/SecretsFeatureTest.swift +167 -1
- package/project/.sdk/tm/swift/Tests/vendor/omni/Json.swift +32 -8
- package/project/.sdk/tm/swift/Tests/vendor/omni/Runner.swift +2 -2
- package/project/.sdk/tm/swift/Tests/vendor/omni/Util.swift +2 -2
- package/project/.sdk/tm/ts/Makefile +3 -2
- package/project/.sdk/tm/ts/src/feature/secrets/SecretsFeature.ts +2 -0
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/Capability.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/Catalog.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/Config.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/Depend.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/Env.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/Export.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/FeatureHost.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/Graph.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/Host.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/Order.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/Point.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/Ref.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/Resolve.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/Types.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/Version.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/index.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/Sekreto.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/index.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/plugins/aws.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/plugins/azuresecrets.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/plugins/boru.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/plugins/doppler.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/plugins/gcpsecrets.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/plugins/hashicorp.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/plugins/httpjson.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/plugins/infisical.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/plugins/minivault.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/plugins/onepassword.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/plugins/secretspec.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/plugins/sigv4.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/provider/addr.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/provider/builtin.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/provider/dotenv.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/provider/env.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/provider/file.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/provider/memory.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/provider/support.ts +1 -1
- package/project/.sdk/tm/ts/src/utility/CleanUtility.ts +115 -10
- package/project/.sdk/tm/ts/src/utility/FetcherUtility.ts +100 -1
- package/project/.sdk/tm/ts/src/utility/MakeErrorUtility.ts +2 -1
- package/project/.sdk/tm/ts/src/utility/MediaUtility.ts +32 -0
- package/project/.sdk/tm/ts/src/utility/ResultBodyUtility.ts +5 -14
- package/project/.sdk/tm/ts/src/utility/StructUtility.ts +708 -199
- package/project/.sdk/tm/ts/src/utility/Utility.ts +2 -1
- package/project/.sdk/tm/ts/test/feature/secrets/Secrets.test.ts +93 -2
- package/project/.sdk/tm/ts/test/live-entity.ts +8 -8
- package/project/.sdk/tm/ts/test/utility/PrimaryUtility.test.ts +9 -1
- package/project/.sdk/tm/ts/test/utility/StructUtility.test.ts +32 -27
- package/project/.sdk/tm/ts/test/utility/index.ts +1 -1
- package/project/.sdk/tm/ts/test/vendor/omni/Runner.ts +1 -1
- package/project/.sdk/tm/ts/test/vendor/omni/Util.ts +1 -1
- package/project/.sdk/tm/ts/test/vendor/omni/index.ts +1 -1
- package/project/.sdk/tm/zig/core/helpers.zig +2 -2
- package/project/.sdk/tm/zig/core/result.zig +2 -2
- package/project/.sdk/tm/zig/core/types.zig +2 -2
- package/project/.sdk/tm/zig/core/utility.zig +96 -20
- package/project/.sdk/tm/zig/feature/netsim.zig +1 -1
- package/project/.sdk/tm/zig/feature/rbac.zig +1 -1
- package/project/.sdk/tm/zig/feature/secrets/plugin/capability.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugin/catalog.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugin/config.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugin/depend.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugin/env.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugin/export.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugin/graph.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugin/host.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugin/inst.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugin/order.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugin/plugin.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugin/point.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugin/ref.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugin/resolve.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugin/types.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugin/value.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugin/version.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugins/aws.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugins/azuresecrets.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugins/boru.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugins/doppler.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugins/gcpsecrets.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugins/hashicorp.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugins/httpjson.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugins/infisical.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugins/minivault.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugins/onepassword.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugins/secretspec.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/plugins/sigv4.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/sekreto/addr.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/sekreto/builtins.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/sekreto/provider.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets/sekreto/sekreto.zig +2 -2
- package/project/.sdk/tm/zig/feature/secrets.zig +3 -1
- package/project/.sdk/tm/zig/feature/validate.zig +4 -5
- package/project/.sdk/tm/zig/test/feature/secrets/secrets_test.zig +188 -37
- package/project/.sdk/tm/zig/test/fh.zig +11 -0
- package/project/.sdk/tm/zig/test/gotcha_test.zig +11 -10
- package/project/.sdk/tm/zig/test/omniresolver.zig +1 -1
- package/project/.sdk/tm/zig/test/pipeline_test.zig +1 -1
- package/project/.sdk/tm/zig/test/primary_utility_test.zig +17 -9
- package/project/.sdk/tm/zig/test/server_variable_test.zig +46 -0
- package/project/.sdk/tm/zig/test/struct_corpus.zig +54 -34
- package/project/.sdk/tm/zig/test/vendor/omni/omni.zig +2 -2
- package/project/.sdk/tm/zig/test/vendor/omni/regex.zig +2 -2
- package/project/.sdk/tm/zig/utility/voxgigstruct/regex.zig +35 -16
- package/project/.sdk/tm/zig/utility/voxgigstruct/struct.zig +1680 -563
- package/project/sdkgen-package.json +1 -1
- package/src/action/check.ts +5 -1
- package/src/action/doctor.ts +8 -2
- package/src/action/target.ts +75 -32
- package/src/cmp/AgentGuide.ts +29 -17
- package/src/cmp/AgentGuideContent.ts +4 -8
- package/src/cmp/AgentGuideTop.ts +17 -14
- package/src/cmp/Deploy.ts +20 -8
- package/src/cmp/FeatureDocs.ts +4 -2
- package/src/cmp/License.ts +33 -10
- package/src/cmp/Readme.ts +0 -2
- package/src/cmp/ReadmeErrors.ts +82 -81
- package/src/cmp/ReadmeExplanation.ts +7 -11
- package/src/cmp/ReadmeFeatures.ts +16 -9
- package/src/cmp/ReadmeModel.ts +15 -9
- package/src/cmp/ReadmeOptions.ts +3 -16
- package/src/cmp/ReadmeQuick.ts +11 -2
- package/src/cmp/ReadmeRefFeatures.ts +38 -33
- package/src/cmp/ReadmeTop.ts +90 -47
- package/src/helpers/canonSpec.ts +56 -10
- package/src/helpers/clientOptions.ts +67 -0
- package/src/helpers/consumer.ts +62 -0
- package/src/helpers/doctext.ts +9 -1
- package/src/helpers/facts.ts +31 -2
- package/src/helpers/flowGuard.ts +1 -1
- package/src/helpers/mcpTools.ts +5 -3
- package/src/helpers/naming.ts +3 -2
- package/src/helpers/opShape.ts +40 -2
- package/src/helpers/optional.ts +0 -1
- package/src/helpers/optspec.ts +22 -5
- package/src/helpers/packageMeta.ts +75 -2
- package/src/helpers/readerdir.ts +33 -0
- package/src/helpers/sourcestring.ts +8 -0
- package/src/helpers/stdrep.ts +3 -3
- package/src/helpers/surface.ts +23 -5
- package/src/helpers/testPolicy.ts +3 -3
- package/src/helpers/title.ts +1 -1
- package/src/sdkgen.ts +25 -4
- package/src/utility.ts +12 -5
- package/project/.sdk/src/cmp/c/ReadmeOptions_c.ts +0 -65
- package/project/.sdk/src/cmp/clojure/ReadmeOptions_clojure.ts +0 -61
- package/project/.sdk/src/cmp/cpp/ReadmeOptions_cpp.ts +0 -62
- package/project/.sdk/src/cmp/csharp/ReadmeOptions_csharp.ts +0 -60
- package/project/.sdk/src/cmp/elixir/ReadmeOptions_elixir.ts +0 -62
- package/project/.sdk/src/cmp/go/ReadmeOptions_go.ts +0 -59
- package/project/.sdk/src/cmp/java/ReadmeOptions_java.ts +0 -61
- package/project/.sdk/src/cmp/js/ReadmeOptions_js.ts +0 -59
- package/project/.sdk/src/cmp/kotlin/ReadmeOptions_kotlin.ts +0 -61
- package/project/.sdk/src/cmp/lua/ReadmeOptions_lua.ts +0 -59
- package/project/.sdk/src/cmp/ocaml/ReadmeOptions_ocaml.ts +0 -59
- package/project/.sdk/src/cmp/perl/ReadmeOptions_perl.ts +0 -59
- package/project/.sdk/src/cmp/php/ReadmeOptions_php.ts +0 -59
- package/project/.sdk/src/cmp/py/ReadmeOptions_py.ts +0 -59
- package/project/.sdk/src/cmp/rb/ReadmeOptions_rb.ts +0 -59
- package/project/.sdk/src/cmp/rust/ReadmeOptions_rust.ts +0 -60
- package/project/.sdk/src/cmp/scala/ReadmeOptions_scala.ts +0 -61
- package/project/.sdk/src/cmp/swift/ReadmeOptions_swift.ts +0 -62
- package/project/.sdk/src/cmp/ts/ReadmeOptions_ts.ts +0 -59
- package/project/.sdk/src/cmp/zig/ReadmeOptions_zig.ts +0 -60
- package/project/.sdk/tm/c/LICENSE +0 -22
- package/project/.sdk/tm/c/VERSION +0 -1
- package/project/.sdk/tm/clojure/LICENSE +0 -22
- package/project/.sdk/tm/clojure/VERSION +0 -1
- package/project/.sdk/tm/cpp/LICENSE +0 -22
- package/project/.sdk/tm/cpp/VERSION +0 -1
- package/project/.sdk/tm/csharp/LICENSE +0 -22
- package/project/.sdk/tm/csharp/VERSION +0 -1
- package/project/.sdk/tm/elixir/LICENSE +0 -21
- package/project/.sdk/tm/elixir/VERSION +0 -1
- package/project/.sdk/tm/go/LICENSE +0 -22
- package/project/.sdk/tm/go/VERSION +0 -1
- package/project/.sdk/tm/java/LICENSE +0 -22
- package/project/.sdk/tm/java/VERSION +0 -1
- package/project/.sdk/tm/js/LICENSE +0 -22
- package/project/.sdk/tm/kotlin/LICENSE +0 -22
- package/project/.sdk/tm/kotlin/VERSION +0 -1
- package/project/.sdk/tm/lua/LICENSE +0 -22
- package/project/.sdk/tm/ocaml/LICENSE +0 -21
- package/project/.sdk/tm/ocaml/VERSION +0 -1
- package/project/.sdk/tm/perl/LICENSE +0 -22
- package/project/.sdk/tm/php/LICENSE +0 -22
- package/project/.sdk/tm/php/VERSION +0 -1
- package/project/.sdk/tm/py/LICENSE +0 -22
- package/project/.sdk/tm/py-data/LICENSE +0 -22
- package/project/.sdk/tm/rb/LICENSE +0 -22
- package/project/.sdk/tm/rust/LICENSE +0 -22
- package/project/.sdk/tm/rust/VERSION +0 -1
- package/project/.sdk/tm/scala/LICENSE +0 -22
- package/project/.sdk/tm/scala/VERSION +0 -1
- package/project/.sdk/tm/swift/LICENSE +0 -22
- package/project/.sdk/tm/swift/VERSION +0 -1
- package/project/.sdk/tm/ts/LICENSE +0 -22
- package/project/.sdk/tm/zig/LICENSE +0 -21
- package/project/.sdk/tm/zig/VERSION +0 -1
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
(* VENDORED: @voxgig/struct 0.1.1 (ocaml/src/voxgig_struct.ml) *)
|
|
2
|
+
(* Source: https://github.com/voxgig/struct @ 358af9d51c90b589a295a70b2165dbe4629eaf8e [tag: sdk-20261125-1959-0] *)
|
|
3
|
+
(* License: MIT (c) voxgig - see repository LICENSE. Do not edit: resync from upstream. *)
|
|
1
4
|
(* Copyright (c) 2025-2026 Voxgig Ltd. MIT LICENSE.
|
|
2
5
|
*
|
|
3
6
|
* Voxgig Struct — OCaml port.
|
|
@@ -8,7 +11,7 @@
|
|
|
8
11
|
* port mirrors the canonical TS logic directly. Nodes are mutable and
|
|
9
12
|
* reference-stable: lists are `value list ref`, maps are an in-tree ordered
|
|
10
13
|
* map (insertion order preserved). Zero third-party runtime dependencies; the
|
|
11
|
-
* regex helper is the in-tree Vregex engine (RE2 subset). *)
|
|
14
|
+
* regex helper is the in-tree Vregex engine (RE2 subset, captures tracked). *)
|
|
12
15
|
|
|
13
16
|
(* ---------------------------------------------------------------------------
|
|
14
17
|
* Value model
|
|
@@ -50,6 +53,7 @@ and inj = {
|
|
|
50
53
|
mutable modify : modifyfn option;
|
|
51
54
|
mutable prior : inj option;
|
|
52
55
|
mutable extra : value;
|
|
56
|
+
mutable named : bool; (* map node names keys of its own, not $ commands *)
|
|
53
57
|
}
|
|
54
58
|
|
|
55
59
|
(* injdef: the loose Partial<Injection> the public API accepts. *)
|
|
@@ -128,6 +132,25 @@ let delete = Sentinel "delete"
|
|
|
128
132
|
|
|
129
133
|
let maxdepth = 32
|
|
130
134
|
|
|
135
|
+
let condense_version = 1.0
|
|
136
|
+
|
|
137
|
+
(* Encoding kinds: the first element of every node table entry. *)
|
|
138
|
+
let condense_map = 0.0
|
|
139
|
+
let condense_list = 1.0
|
|
140
|
+
let condense_str = 2.0
|
|
141
|
+
let condense_num = 3.0
|
|
142
|
+
let condense_true = 4.0
|
|
143
|
+
let condense_false = 5.0
|
|
144
|
+
let condense_null = 6.0
|
|
145
|
+
|
|
146
|
+
let s_condense = "$condense"
|
|
147
|
+
let s_condsym = "sym"
|
|
148
|
+
let s_condnode = "node"
|
|
149
|
+
let s_condroot = "root"
|
|
150
|
+
|
|
151
|
+
let s_condimmutable =
|
|
152
|
+
"struct: condensed structures are immutable - expand() first, then modify the copy"
|
|
153
|
+
|
|
131
154
|
(* ---------------------------------------------------------------------------
|
|
132
155
|
* Small helpers
|
|
133
156
|
* ------------------------------------------------------------------------- *)
|
|
@@ -147,6 +170,8 @@ let is_integer_f n = Float.is_finite n && Float.rem n 1.0 = 0.0
|
|
|
147
170
|
|
|
148
171
|
let num_to_string n =
|
|
149
172
|
if Float.is_nan n then "NaN"
|
|
173
|
+
(* -0 included: String(-0) is "0". *)
|
|
174
|
+
else if n = 0.0 then "0"
|
|
150
175
|
else if Float.is_integer n && Float.abs n < 1e16 then Printf.sprintf "%.0f" n
|
|
151
176
|
else begin
|
|
152
177
|
let rec try_prec p =
|
|
@@ -171,14 +196,22 @@ let rec js_string v =
|
|
|
171
196
|
| Func _ -> "function"
|
|
172
197
|
| Sentinel s -> s
|
|
173
198
|
|
|
174
|
-
|
|
199
|
+
(* A canonical integer key, as String(n) prints one: 0, or digits with no
|
|
200
|
+
leading zero after an optional minus. *)
|
|
201
|
+
let is_canon_index s =
|
|
175
202
|
let n = String.length s in
|
|
176
|
-
n > 0
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
203
|
+
let d = if n > 1 && s.[0] = '-' then 1 else 0 in
|
|
204
|
+
s = "0" ||
|
|
205
|
+
(n > d && s.[d] >= '1' && s.[d] <= '9'
|
|
206
|
+
&& String.for_all (fun c -> c >= '0' && c <= '9') (String.sub s d (n - d)))
|
|
207
|
+
|
|
208
|
+
(* The canonical _listkey: a whole number, or a string is_canon_index accepts.
|
|
209
|
+
A float, so that a key past the end of any list still compares. *)
|
|
210
|
+
let list_key k =
|
|
211
|
+
match k with
|
|
212
|
+
| Num n when is_integer_f n -> Some n
|
|
213
|
+
| Str s when is_canon_index s -> float_of_string_opt s
|
|
214
|
+
| _ -> None
|
|
182
215
|
|
|
183
216
|
let clz32 n =
|
|
184
217
|
let n = n land 0xFFFFFFFF in
|
|
@@ -189,6 +222,24 @@ let clz32 n =
|
|
|
189
222
|
!r
|
|
190
223
|
end
|
|
191
224
|
|
|
225
|
+
(* R_CHECKER_NAME: a dollar sign then capitals, nothing else. *)
|
|
226
|
+
let is_checker_name s =
|
|
227
|
+
let n = String.length s in
|
|
228
|
+
n > 1 && s.[0] = '$' &&
|
|
229
|
+
(let ok = ref true in
|
|
230
|
+
for i = 1 to n - 1 do if s.[i] < 'A' || s.[i] > 'Z' then ok := false done;
|
|
231
|
+
!ok)
|
|
232
|
+
|
|
233
|
+
(* Code points in a UTF-8 string: the bytes that do not continue a sequence. *)
|
|
234
|
+
let utf8_length s =
|
|
235
|
+
let n = ref 0 in
|
|
236
|
+
String.iter (fun c -> if Char.code c land 0xC0 <> 0x80 then incr n) s;
|
|
237
|
+
!n
|
|
238
|
+
|
|
239
|
+
(* Names a validate spec may use besides its checkers: transform's that it keeps, and $OPEN. *)
|
|
240
|
+
let validate_names =
|
|
241
|
+
["$TOP"; "$SPEC"; "$BT"; "$DS"; "$WHEN"; "$ANNO"; "$REF"; "$FORMAT"; "$APPLY"; "$OPEN"]
|
|
242
|
+
|
|
192
243
|
(* ----- ordered map ops ----- *)
|
|
193
244
|
let omap_get m k = try Some (List.assoc k m.entries) with Not_found -> None
|
|
194
245
|
let omap_has m k = List.mem_assoc k m.entries
|
|
@@ -262,30 +313,30 @@ and keysof v =
|
|
|
262
313
|
| List r -> List.mapi (fun i _ -> string_of_int i) !r
|
|
263
314
|
| _ -> []
|
|
264
315
|
|
|
265
|
-
(* internal: list
|
|
316
|
+
(* internal: a list read as JS reads an array: a list_key from 0, so 01, +1,
|
|
317
|
+
-0 and -1 miss. Noval if oob. *)
|
|
266
318
|
and list_index lr key =
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
|
319
|
+
match list_key key with
|
|
320
|
+
| Some k when 0.0 <= k && k < float_of_int (List.length !lr) -> List.nth !lr (int_of_float k)
|
|
321
|
+
| _ -> Noval
|
|
322
|
+
|
|
323
|
+
(* internal: the stored value at a key, as the canonical _readprop. A map
|
|
324
|
+
reads only a string or number key. *)
|
|
325
|
+
and readprop v key =
|
|
326
|
+
match v, key with
|
|
327
|
+
| List r, _ -> list_index r key
|
|
328
|
+
| Map m, (Str _ | Num _) -> (match omap_get m (js_string key) with Some x -> x | None -> Noval)
|
|
270
329
|
| _ -> Noval
|
|
271
330
|
|
|
272
331
|
and getprop ?(alt = Noval) v key =
|
|
273
332
|
if is_noval v || is_noval key then alt
|
|
274
333
|
else
|
|
275
|
-
let out =
|
|
276
|
-
match v with
|
|
277
|
-
| Map m -> (match omap_get m (js_string key) with Some x -> x | None -> Noval)
|
|
278
|
-
| List r -> list_index r key
|
|
279
|
-
| _ -> Noval
|
|
280
|
-
in
|
|
334
|
+
let out = readprop v key in
|
|
281
335
|
if is_nullish out then alt else out
|
|
282
336
|
|
|
283
337
|
and lookup_ v key =
|
|
284
338
|
if is_noval v || is_noval key then Noval
|
|
285
|
-
else
|
|
286
|
-
| Map m -> (match omap_get m (js_string key) with Some x -> x | None -> Noval)
|
|
287
|
-
| List r -> list_index r key
|
|
288
|
-
| _ -> Noval
|
|
339
|
+
else readprop v key
|
|
289
340
|
|
|
290
341
|
and haskey v key = not (is_nullish (getprop v key))
|
|
291
342
|
|
|
@@ -295,13 +346,11 @@ and getelem ?(alt = Noval) v key =
|
|
|
295
346
|
let out = ref Noval in
|
|
296
347
|
(match v with
|
|
297
348
|
| List r ->
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
if nk >= 0 && nk < len then out := List.nth !r nk
|
|
304
|
-
end
|
|
349
|
+
(* A negative key counts from the end; any other reads as getprop does. *)
|
|
350
|
+
(match list_key key with
|
|
351
|
+
| Some k when k < 0.0 -> out := list_index r (Num (float_of_int (List.length !r) +. k))
|
|
352
|
+
| Some _ -> out := list_index r key
|
|
353
|
+
| None -> ())
|
|
305
354
|
| _ -> ());
|
|
306
355
|
if is_nullish !out then
|
|
307
356
|
(match alt with
|
|
@@ -350,18 +399,16 @@ and filter v check =
|
|
|
350
399
|
and setprop parent key v =
|
|
351
400
|
if not (iskey key) then parent
|
|
352
401
|
else begin
|
|
402
|
+
condense_guard parent;
|
|
353
403
|
(match parent with
|
|
354
404
|
| Map m -> omap_set m (js_string key) v
|
|
355
405
|
| List r ->
|
|
356
|
-
|
|
357
|
-
(match int_of_string_opt ks with
|
|
406
|
+
(match list_key key with
|
|
358
407
|
| None -> ()
|
|
359
|
-
| Some
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
let ki = if
|
|
363
|
-
if ki >= len then r := !r @ [v]
|
|
364
|
-
else r := List.mapi (fun i x -> if i = ki then v else x) !r
|
|
408
|
+
| Some k ->
|
|
409
|
+
if k >= 0.0 then begin
|
|
410
|
+
if k >= float_of_int (List.length !r) then r := !r @ [v]
|
|
411
|
+
else let ki = int_of_float k in r := List.mapi (fun i x -> if i = ki then v else x) !r
|
|
365
412
|
end else r := v :: !r)
|
|
366
413
|
| _ -> ());
|
|
367
414
|
parent
|
|
@@ -370,12 +417,13 @@ and setprop parent key v =
|
|
|
370
417
|
and delprop parent key =
|
|
371
418
|
if not (iskey key) then parent
|
|
372
419
|
else begin
|
|
420
|
+
condense_guard parent;
|
|
373
421
|
(match parent with
|
|
374
422
|
| Map m -> omap_del m (js_string key)
|
|
375
423
|
| List r ->
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
424
|
+
(match list_key key with
|
|
425
|
+
| Some k when 0.0 <= k && k < float_of_int (List.length !r) ->
|
|
426
|
+
let ki = int_of_float k in
|
|
379
427
|
r := List.filteri (fun i _ -> i <> ki) !r
|
|
380
428
|
| _ -> ())
|
|
381
429
|
| _ -> ());
|
|
@@ -432,11 +480,14 @@ and slice ?(start = Noval) ?(stop = Noval) ?(mutate = false) v =
|
|
|
432
480
|
and re_compile ?flags:_ p = (match p with Str _ -> p | _ -> Str (js_string p))
|
|
433
481
|
and re_str p = (match p with Str s -> s | _ -> js_string p)
|
|
434
482
|
and re_find p input =
|
|
435
|
-
(match Vregex.
|
|
436
|
-
| Some
|
|
483
|
+
(match Vregex.find (Vregex.compile (re_str p)) (re_str input) with
|
|
484
|
+
| Some groups -> lst (List.map (fun g -> Str g) groups)
|
|
437
485
|
| None -> Null)
|
|
438
|
-
and re_find_all
|
|
439
|
-
|
|
486
|
+
and re_find_all p input =
|
|
487
|
+
lst (List.map (fun m -> lst (List.map (fun g -> Str g) m))
|
|
488
|
+
(Vregex.find_all (Vregex.compile (re_str p)) (re_str input)))
|
|
489
|
+
and re_replace p input r =
|
|
490
|
+
Str (Vregex.replace_all (Vregex.compile (re_str p)) (re_str input) (re_str r))
|
|
440
491
|
and re_test p input = Bool (Vregex.test_str (re_str p) (re_str input))
|
|
441
492
|
and re_escape s = escre s
|
|
442
493
|
|
|
@@ -526,11 +577,19 @@ and json_encode ?(sort = false) ?indent v =
|
|
|
526
577
|
enc v 0; Buffer.contents buf
|
|
527
578
|
|
|
528
579
|
and has_cycle v =
|
|
580
|
+
(* Track only the current recursion PATH (push on entry, pop on exit) rather
|
|
581
|
+
than every node ever seen. `memq` then scans a depth-sized list, so this is
|
|
582
|
+
O(n * depth) instead of O(n^2). A node reachable on its own ancestor path
|
|
583
|
+
is a genuine cycle; a shared-but-acyclic subtree is simply revisited. *)
|
|
529
584
|
let seen = ref [] in
|
|
530
585
|
let rec go v =
|
|
531
586
|
match v with
|
|
532
|
-
| List r ->
|
|
533
|
-
|
|
587
|
+
| List r ->
|
|
588
|
+
if List.memq v !seen then true
|
|
589
|
+
else (seen := v :: !seen; let c = List.exists go !r in seen := List.tl !seen; c)
|
|
590
|
+
| Map m ->
|
|
591
|
+
if List.memq v !seen then true
|
|
592
|
+
else (seen := v :: !seen; let c = List.exists (fun (_, x) -> go x) m.entries in seen := List.tl !seen; c)
|
|
534
593
|
| _ -> false
|
|
535
594
|
in go v
|
|
536
595
|
|
|
@@ -810,14 +869,25 @@ and ia_is_some = function INone -> false | _ -> true
|
|
|
810
869
|
and getpath ?(inj = INone) store path =
|
|
811
870
|
let pa =
|
|
812
871
|
match path with
|
|
813
|
-
|
|
872
|
+
(* A number part reads as String(n); any other part misses the path. *)
|
|
873
|
+
| List r when List.for_all (function Str _ | Num _ -> true | _ -> false) !r ->
|
|
874
|
+
Some (Array.of_list (List.map (function Num n -> Str (num_to_string n) | p -> p) !r))
|
|
814
875
|
| Str s -> Some (Array.of_list (List.map (fun x -> Str x) (String.split_on_char '.' s)))
|
|
815
|
-
| Num n -> Some [| Str (
|
|
876
|
+
| Num n -> Some [| Str (num_to_string n) |]
|
|
816
877
|
| _ -> None
|
|
817
878
|
in
|
|
818
879
|
match pa with
|
|
819
880
|
| None -> Noval
|
|
881
|
+
(* A condensed store answers as the node it was built from, touching only
|
|
882
|
+
the nodes on the path. base would change what the walk resolves against,
|
|
883
|
+
so with one the store is expanded instead. *)
|
|
884
|
+
| Some pa when iscondensed store && is_nullish (ia_base inj) ->
|
|
885
|
+
let found = condense_resolve store (condense_root store) (lst (Array.to_list pa)) in
|
|
886
|
+
let v = if found < 0 then Noval else condense_materialise store found in
|
|
887
|
+
(* Group A: an ordinary getpath reads a stored null as absent. *)
|
|
888
|
+
if is_nullish v then Noval else v
|
|
820
889
|
| Some pa ->
|
|
890
|
+
let store = expand store in
|
|
821
891
|
let base = ia_base inj in
|
|
822
892
|
let dparent = ia_dparent inj in
|
|
823
893
|
let inj_meta = ia_meta inj in
|
|
@@ -856,8 +926,10 @@ and getpath ?(inj = INone) store path =
|
|
|
856
926
|
Str (stringify (getpath ~inj:INone inj_meta (slice ~start:(Num 6.0) ~stop:(Num (-1.0)) (Str s))))
|
|
857
927
|
| _ -> raw
|
|
858
928
|
in
|
|
929
|
+
(* $$ escapes $; skip replace_all (which rebuilds via a Buffer) when
|
|
930
|
+
the segment has no '$' at all — the common case. *)
|
|
859
931
|
let part = (match part with
|
|
860
|
-
| Str s -> Str (replace_all s "$$" "$")
|
|
932
|
+
| Str s -> Str (if String.contains s '$' then replace_all s "$$" "$" else s)
|
|
861
933
|
| _ -> Str (strkey ~key:part ())) in
|
|
862
934
|
if part = Str s_mt then begin
|
|
863
935
|
let ascends = ref 0 in
|
|
@@ -887,6 +959,7 @@ and getpath ?(inj = INone) store path =
|
|
|
887
959
|
!v
|
|
888
960
|
|
|
889
961
|
and setpath ?(inj = INone) store path v =
|
|
962
|
+
condense_guard store;
|
|
890
963
|
let ptype = typify path in
|
|
891
964
|
let parts =
|
|
892
965
|
if (t_list land ptype) > 0 then (match path with List r -> lst !r | _ -> empty_list ())
|
|
@@ -1007,7 +1080,7 @@ and new_inj v parent =
|
|
|
1007
1080
|
keys = lst [Str s_dtop]; key = Str s_dtop; ival = v; parent;
|
|
1008
1081
|
path = lst [Str s_dtop]; nodes = lst [parent]; handler = inject_handler;
|
|
1009
1082
|
errs = empty_list (); meta = empty_map (); dparent = Noval; dpath = lst [Str s_dtop];
|
|
1010
|
-
base = Str s_dtop; modify = None; prior = None; extra = Noval }
|
|
1083
|
+
base = Str s_dtop; modify = None; prior = None; extra = Noval; named = false }
|
|
1011
1084
|
|
|
1012
1085
|
and inj_descend inj =
|
|
1013
1086
|
(match inj.meta with Map m ->
|
|
@@ -1037,7 +1110,7 @@ and inj_child inj keyi keys =
|
|
|
1037
1110
|
handler = inj.handler; errs = inj.errs; meta = inj.meta; base = inj.base;
|
|
1038
1111
|
modify = inj.modify; prior = Some inj;
|
|
1039
1112
|
dpath = (match inj.dpath with List r -> lst !r | _ -> inj.dpath);
|
|
1040
|
-
dparent = inj.dparent; extra = inj.extra;
|
|
1113
|
+
dparent = inj.dparent; extra = inj.extra; named = false;
|
|
1041
1114
|
} in
|
|
1042
1115
|
cinj
|
|
1043
1116
|
|
|
@@ -1046,7 +1119,9 @@ and inj_setval ?(ancestor = 1) inj v =
|
|
|
1046
1119
|
if ancestor < 2 then inj.parent, inj.key
|
|
1047
1120
|
else getelem inj.nodes (Num (float_of_int (- ancestor))), getelem inj.path (Num (float_of_int (- ancestor)))
|
|
1048
1121
|
in
|
|
1049
|
-
|
|
1122
|
+
(* A list keeps the removed slot as a hole until inject's loop ends. *)
|
|
1123
|
+
if is_noval v then (if ancestor < 2 && islist target then setprop target key skip else delprop target key)
|
|
1124
|
+
else setprop target key v
|
|
1050
1125
|
|
|
1051
1126
|
(* ----- inject ----- *)
|
|
1052
1127
|
|
|
@@ -1070,6 +1145,7 @@ and inject ?(inj = INone) v store =
|
|
|
1070
1145
|
i
|
|
1071
1146
|
in
|
|
1072
1147
|
ignore (inj_descend state);
|
|
1148
|
+
state.named <- false;
|
|
1073
1149
|
let v =
|
|
1074
1150
|
if isnode v then begin
|
|
1075
1151
|
let nodekeys = ref (
|
|
@@ -1078,6 +1154,7 @@ and inject ?(inj = INone) v store =
|
|
|
1078
1154
|
let ks = List.map fst m.entries in
|
|
1079
1155
|
let normal = List.sort compare (List.filter (fun k -> not (String.contains k '$')) ks) in
|
|
1080
1156
|
let trans = List.sort compare (List.filter (fun k -> String.contains k '$') ks) in
|
|
1157
|
+
state.named <- normal <> [];
|
|
1081
1158
|
normal @ trans
|
|
1082
1159
|
| List r -> List.mapi (fun i _ -> string_of_int i) !r
|
|
1083
1160
|
| _ -> [])
|
|
@@ -1102,6 +1179,7 @@ and inject ?(inj = INone) v store =
|
|
|
1102
1179
|
nki := childinj.keyi + 1;
|
|
1103
1180
|
ignore continue
|
|
1104
1181
|
done;
|
|
1182
|
+
(match v with List r -> r := List.filter (fun x -> not (is_skip x)) !r | _ -> ());
|
|
1105
1183
|
v
|
|
1106
1184
|
end else if (match v with Str _ -> true | _ -> false) then begin
|
|
1107
1185
|
state.mode <- m_val;
|
|
@@ -1113,7 +1191,7 @@ and inject ?(inj = INone) v store =
|
|
|
1113
1191
|
(match state.modify with
|
|
1114
1192
|
| Some f when not (is_skip v) ->
|
|
1115
1193
|
let mkey = state.key in let mparent = state.parent in let mval = getprop mparent mkey in
|
|
1116
|
-
f mval mkey mparent state
|
|
1194
|
+
f (if is_skip mval then Noval else mval) mkey mparent state
|
|
1117
1195
|
| _ -> ());
|
|
1118
1196
|
state.ival <- v;
|
|
1119
1197
|
lookup_ state.parent (Str s_dtop)
|
|
@@ -1162,7 +1240,7 @@ and isfunc_handler _i = true
|
|
|
1162
1240
|
|
|
1163
1241
|
(* ----- transform commands ----- *)
|
|
1164
1242
|
|
|
1165
|
-
and transform_delete inj _v _ref _store = ignore (
|
|
1243
|
+
and transform_delete inj _v _ref _store = ignore (inj_setval inj Noval); Noval
|
|
1166
1244
|
|
|
1167
1245
|
and transform_copy inj _v _ref _store =
|
|
1168
1246
|
if inj.mode = m_keypre || inj.mode = m_keypost then inj.key
|
|
@@ -1341,40 +1419,41 @@ and transform_pack inj _v _ref store =
|
|
|
1341
1419
|
end
|
|
1342
1420
|
end
|
|
1343
1421
|
|
|
1344
|
-
and transform_ref inj
|
|
1422
|
+
and transform_ref inj _v _ref store =
|
|
1345
1423
|
if inj.mode <> m_val then Noval
|
|
1346
1424
|
else begin
|
|
1347
|
-
let nodes = inj.nodes in
|
|
1348
1425
|
let refpath = lookup_ inj.parent (Num 1.0) in
|
|
1349
1426
|
inj.keyi <- size inj.keys;
|
|
1350
1427
|
let spec_func = getprop store (Str s_dspec) in
|
|
1351
1428
|
(match spec_func with
|
|
1352
1429
|
| Func f ->
|
|
1353
1430
|
let spec = f inj Noval "" Noval in
|
|
1354
|
-
|
|
1431
|
+
(* A relative path starts where this slot is, so .x is a sibling. *)
|
|
1432
|
+
let dpath = slice ~start:(Num 1.0) ~stop:(Num (-2.0)) inj.path in
|
|
1433
|
+
let dparent = getpath ~inj:INone spec dpath in
|
|
1434
|
+
let refinj = IDef { (default_injdef ()) with d_dpath = dpath; d_dparent = dparent } in
|
|
1435
|
+
let found = getpath ~inj:refinj spec refpath in
|
|
1436
|
+
(* A chain of references that comes back to a path it has named names nothing. *)
|
|
1437
|
+
let rec cycles seen next =
|
|
1438
|
+
islist next && lookup_ next (Num 0.0) = Str "`$REF`"
|
|
1439
|
+
&& (let np = lookup_ next (Num 1.0) in
|
|
1440
|
+
List.exists (deepequal np) seen || cycles (np :: seen) (getpath ~inj:refinj spec np))
|
|
1441
|
+
in
|
|
1442
|
+
let refv = if cycles [refpath] found then Noval else found in
|
|
1355
1443
|
let has_sub = ref false in
|
|
1356
1444
|
(if isnode refv then ignore (walk ~before:(fun _k v2 _p _path -> (if v2 = Str "`$REF`" then has_sub := true); v2) refv));
|
|
1357
|
-
|
|
1358
|
-
let
|
|
1359
|
-
let
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
let
|
|
1363
|
-
(if not (is_noval refv) && (not !has_sub || not (is_noval tval)) then begin
|
|
1364
|
-
let cs = inj_child inj 0 (lst [getelem tpath (Num (-1.0))]) in
|
|
1365
|
-
cs.path <- tpath;
|
|
1366
|
-
cs.nodes <- slice ~start:(Num 0.0) ~stop:(Num (float_of_int (size inj.nodes - 1))) inj.nodes;
|
|
1367
|
-
cs.parent <- getelem nodes (Num (-2.0));
|
|
1368
|
-
cs.ival <- tref;
|
|
1369
|
-
cs.dparent <- tcur;
|
|
1370
|
-
ignore (inject ~inj:(IInj cs) tref store);
|
|
1371
|
-
rval := cs.ival
|
|
1372
|
-
end);
|
|
1373
|
-
ignore (inj_setval ~ancestor:2 inj !rval);
|
|
1445
|
+
(* A recursive reference stops where the data does. *)
|
|
1446
|
+
let tval = getpath ~inj:INone store (slice ~start:(Num (-1.0)) inj.path) in
|
|
1447
|
+
let rval = if not !has_sub || not (is_noval tval) then clone refv else Noval in
|
|
1448
|
+
(* The enclosing loop injects the referenced spec in this list's place, so
|
|
1449
|
+
neither this pass nor this element leaves a value for modify to check. *)
|
|
1450
|
+
let grandparent = inj_setval ~ancestor:2 inj rval in
|
|
1374
1451
|
(match inj.prior with
|
|
1375
|
-
| Some p
|
|
1376
|
-
|
|
1377
|
-
|
|
1452
|
+
| Some p ->
|
|
1453
|
+
p.modify <- None;
|
|
1454
|
+
if islist grandparent || not (is_noval rval) then p.keyi <- p.keyi - 1
|
|
1455
|
+
| None -> ());
|
|
1456
|
+
skip
|
|
1378
1457
|
| _ -> Noval)
|
|
1379
1458
|
end
|
|
1380
1459
|
|
|
@@ -1544,8 +1623,8 @@ and invalid_type_msg path needtype vt v _whence =
|
|
|
1544
1623
|
and validate_string inj _v _ref _store =
|
|
1545
1624
|
let out = lookup_ inj.dparent inj.key in
|
|
1546
1625
|
let t = typify out in
|
|
1547
|
-
if (t_string land t) = 0 then (push_err inj (invalid_type_msg inj.path s_string t out "V1010");
|
|
1548
|
-
else if out = Str s_mt then (push_err inj ("Empty string at " ^ pathify ~startin:(Num 1.0) inj.path);
|
|
1626
|
+
if (t_string land t) = 0 then (push_err inj (invalid_type_msg inj.path s_string t out "V1010"); out)
|
|
1627
|
+
else if out = Str s_mt then (push_err inj ("Empty string at " ^ pathify ~startin:(Num 1.0) inj.path); out)
|
|
1549
1628
|
else out
|
|
1550
1629
|
|
|
1551
1630
|
and push_err inj msg = ignore (setprop inj.errs (Num (float_of_int (size inj.errs))) (Str msg))
|
|
@@ -1557,7 +1636,7 @@ and validate_type inj _v refstr _store =
|
|
|
1557
1636
|
let typev = if tname = s_nil then typev0 lor t_null else typev0 in
|
|
1558
1637
|
let out = lookup_ inj.dparent inj.key in
|
|
1559
1638
|
let t = typify out in
|
|
1560
|
-
if (t land typev) = 0 then (push_err inj (invalid_type_msg inj.path tname t out "V1001");
|
|
1639
|
+
if (t land typev) = 0 then (push_err inj (invalid_type_msg inj.path tname t out "V1001"); out)
|
|
1561
1640
|
else out
|
|
1562
1641
|
|
|
1563
1642
|
and validate_any inj _v _ref _store = lookup_ inj.dparent inj.key
|
|
@@ -1572,7 +1651,8 @@ and validate_child inj _v _ref _store =
|
|
|
1572
1651
|
List.iter (fun ckey -> ignore (setprop parent (Str ckey) (clone childtm)); ignore (setprop keys (Num (float_of_int (size keys))) (Str ckey))) (keysof (empty_map ()));
|
|
1573
1652
|
ignore (delprop parent key); Noval
|
|
1574
1653
|
end else if not (ismap tval) then
|
|
1575
|
-
(
|
|
1654
|
+
(* validation reports the mismatch, once. *)
|
|
1655
|
+
Noval
|
|
1576
1656
|
else begin
|
|
1577
1657
|
List.iter (fun ckey -> ignore (setprop parent (Str ckey) (clone childtm)); ignore (setprop keys (Num (float_of_int (size keys))) (Str ckey))) (keysof tval);
|
|
1578
1658
|
ignore (delprop parent key); Noval
|
|
@@ -1582,50 +1662,69 @@ and validate_child inj _v _ref _store =
|
|
|
1582
1662
|
if not (islist parent) then (push_err inj "Invalid $CHILD as value"; Noval)
|
|
1583
1663
|
else if is_noval inj.dparent then (match parent with List r -> r := []; Noval | _ -> Noval)
|
|
1584
1664
|
else if not (islist inj.dparent) then begin
|
|
1585
|
-
push_err inj (invalid_type_msg (slice ~start:(Num 0.0) ~stop:(Num (float_of_int (size path - 1))) path) s_list (typify inj.dparent) inj.dparent "V0230");
|
|
1586
1665
|
inj.keyi <- size parent; inj.dparent
|
|
1587
1666
|
end else begin
|
|
1588
1667
|
List.iter (fun (k, _) -> ignore (setprop parent (Str k) (clone childtm))) (items_pairs inj.dparent);
|
|
1589
1668
|
(match parent with List r -> let n = size inj.dparent in r := (let a = Array.of_list !r in Array.to_list (Array.sub a 0 (min n (Array.length a)))) | _ -> ());
|
|
1590
|
-
inj
|
|
1591
|
-
|
|
1669
|
+
(* NOTE: modifying inj! This extends the child value loop in inject
|
|
1670
|
+
to cover every cloned child. *)
|
|
1671
|
+
for ckeyi = size keys to size parent - 1 do
|
|
1672
|
+
ignore (setprop keys (Num (float_of_int (size keys))) (Str (strkey ~key:(Num (float_of_int ckeyi)) ())))
|
|
1673
|
+
done;
|
|
1674
|
+
(* Restart the child value loop at the first element (the loop
|
|
1675
|
+
increments keyi on resume) so that the first element is also
|
|
1676
|
+
validated against the child template. *)
|
|
1677
|
+
inj.keyi <- -1;
|
|
1678
|
+
(* skip leaves the cloned child template in place at the first
|
|
1679
|
+
element so the resumed loop can validate it. *)
|
|
1680
|
+
skip
|
|
1592
1681
|
end
|
|
1593
1682
|
end else Noval
|
|
1594
1683
|
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1684
|
+
(* The members a spec does not name: the map form is a key, the list form a
|
|
1685
|
+
tuple's last item. Each places clones of its spec for the loop to check. *)
|
|
1686
|
+
and validate_rest inj _v _ref _store =
|
|
1687
|
+
let parent = inj.parent in let key = inj.key in let path = inj.path in let keys = inj.keys in
|
|
1688
|
+
if inj.mode = m_keypre then begin
|
|
1689
|
+
let resttm = lookup_ parent key in
|
|
1690
|
+
let tval = getprop inj.dparent (getelem path (Num (-2.0))) in
|
|
1691
|
+
(if ismap tval then
|
|
1692
|
+
List.iter (fun ckey ->
|
|
1693
|
+
if not (List.mem (Str ckey) (match keys with List r -> !r | _ -> [])) then begin
|
|
1694
|
+
ignore (setprop parent (Str ckey) (clone resttm));
|
|
1695
|
+
ignore (setprop keys (Num (float_of_int (size keys))) (Str ckey))
|
|
1696
|
+
end) (keysof tval));
|
|
1697
|
+
ignore (inj_setval inj Noval);
|
|
1698
|
+
Noval
|
|
1699
|
+
end else
|
|
1700
|
+
match inj.prior with
|
|
1701
|
+
| Some prior when inj.mode = m_val && islist prior.parent && inj.keyi = 0 ->
|
|
1702
|
+
inj.keyi <- size keys;
|
|
1703
|
+
prior.modify <- None;
|
|
1704
|
+
let tuple = prior.parent in
|
|
1705
|
+
let dlist = prior.dparent in
|
|
1706
|
+
let numitems = if islist dlist then size dlist else 0 in
|
|
1707
|
+
(match list_key prior.key with
|
|
1708
|
+
| Some slot when float_of_int numitems <= slot -> ignore (inj_setval ~ancestor:2 inj Noval)
|
|
1709
|
+
| slot ->
|
|
1710
|
+
let resttm = lookup_ parent (Num 1.0) in
|
|
1711
|
+
(match slot with
|
|
1712
|
+
| Some s ->
|
|
1713
|
+
for i = int_of_float s to numitems - 1 do
|
|
1714
|
+
ignore (setprop tuple (Num (float_of_int i)) (clone resttm))
|
|
1715
|
+
done
|
|
1716
|
+
| None -> ());
|
|
1717
|
+
for i = size prior.keys to numitems - 1 do
|
|
1718
|
+
ignore (setprop prior.keys (Num (float_of_int (size prior.keys)))
|
|
1719
|
+
(Str (strkey ~key:(Num (float_of_int i)) ())))
|
|
1720
|
+
done;
|
|
1721
|
+
prior.keyi <- prior.keyi - 1);
|
|
1722
|
+
skip
|
|
1723
|
+
| _ ->
|
|
1724
|
+
push_err inj (restmsg (slice ~start:(Num 1.0) path) " must be the last element of an array.");
|
|
1725
|
+
Noval
|
|
1726
|
+
|
|
1727
|
+
and restmsg path problem = "The $REST validator at field " ^ pathify path ^ problem
|
|
1629
1728
|
|
|
1630
1729
|
and validate_exact inj _v _ref _store =
|
|
1631
1730
|
if inj.mode = m_val then begin
|
|
@@ -1633,43 +1732,313 @@ and validate_exact inj _v _ref _store =
|
|
|
1633
1732
|
if not (islist parent) || inj.keyi <> 0 then
|
|
1634
1733
|
(push_err inj ("The $EXACT validator at field " ^ pathify ~startin:(Num 1.0) ~endin:(Num 1.0) inj.path ^ " must be the first element of an array."); Noval)
|
|
1635
1734
|
else begin
|
|
1735
|
+
let cval = slotval inj in
|
|
1636
1736
|
inj.keyi <- size inj.keys;
|
|
1637
|
-
|
|
1737
|
+
(* Replace [$EXACT, ...] with the data value; skip keeps inject off the detached list. *)
|
|
1738
|
+
ignore (inj_setval ~ancestor:2 inj cval);
|
|
1638
1739
|
inj.path <- slice ~start:(Num 0.0) ~stop:(Num (float_of_int (size inj.path - 1))) inj.path;
|
|
1639
|
-
inj.key <- getelem inj.path (Num (-1.0));
|
|
1640
1740
|
let tvals = slice ~start:(Num 1.0) parent in
|
|
1641
1741
|
if size tvals = 0 then
|
|
1642
|
-
(push_err inj ("The $EXACT validator at field " ^ pathify ~startin:(Num 1.0) ~endin:(Num 1.0) inj.path ^ " must have at least one argument.");
|
|
1742
|
+
(push_err inj ("The $EXACT validator at field " ^ pathify ~startin:(Num 1.0) ~endin:(Num 1.0) inj.path ^ " must have at least one argument."); skip)
|
|
1643
1743
|
else begin
|
|
1644
|
-
|
|
1645
|
-
List.iter (fun tval -> if not !matched && veq tval inj.dparent then matched := true)
|
|
1646
|
-
(match tvals with List r -> !r | _ -> []);
|
|
1647
|
-
if not !matched then begin
|
|
1744
|
+
if not (List.exists (fun tval -> deepequal tval cval) (match tvals with List r -> !r | _ -> [])) then begin
|
|
1648
1745
|
let valdesc = String.concat ", " (List.map (fun (_, x) -> stringify x) (items_pairs tvals)) in
|
|
1649
1746
|
let valdesc = replace_transform_names valdesc in
|
|
1650
1747
|
push_err inj (invalid_type_msg inj.path
|
|
1651
1748
|
((if size inj.path > 1 then "" else "value ") ^ "exactly equal to " ^ (if size tvals = 1 then "" else "one of ") ^ valdesc)
|
|
1652
|
-
(typify
|
|
1749
|
+
(typify cval) cval "V0110")
|
|
1653
1750
|
end;
|
|
1654
|
-
|
|
1751
|
+
skip
|
|
1655
1752
|
end
|
|
1656
1753
|
end
|
|
1657
1754
|
end else (ignore (delprop inj.parent inj.key); Noval)
|
|
1658
1755
|
|
|
1659
|
-
|
|
1756
|
+
(* Count the specs that admit the value: [`$NOF`, count, spec, ...], where
|
|
1757
|
+
count is an integer, or a map holding min, max or both. *)
|
|
1758
|
+
and validate_nof inj _v _ref store = validatecount inj store "$NOF" true
|
|
1759
|
+
|
|
1760
|
+
(* Every spec admits the value: [`$ALL`, spec, ...]. *)
|
|
1761
|
+
and validate_all inj _v _ref store = validatecount inj store "$ALL" false
|
|
1762
|
+
|
|
1763
|
+
(* The counting list directives. Without a count, every spec has to admit. *)
|
|
1764
|
+
and validatecount inj store name counted =
|
|
1765
|
+
if inj.mode <> m_val then Noval
|
|
1766
|
+
else if not (islist inj.parent) || inj.keyi <> 0 then begin
|
|
1767
|
+
push_err inj ("The " ^ name ^ " validator at field " ^ pathify ~startin:(Num 1.0) ~endin:(Num 1.0) inj.path ^ " must be the first element of an array.");
|
|
1768
|
+
Noval
|
|
1769
|
+
end else begin
|
|
1770
|
+
let parent = inj.parent in
|
|
1771
|
+
let cval = slotval inj in
|
|
1772
|
+
inj.keyi <- size inj.keys;
|
|
1773
|
+
(* Replace the directive's list with the data value. Each return is skip, so
|
|
1774
|
+
that inject leaves the detached list alone and validates nothing in it. *)
|
|
1775
|
+
ignore (inj_setval ~ancestor:2 inj cval);
|
|
1776
|
+
inj.path <- slice ~start:(Num (-1.0)) inj.path;
|
|
1777
|
+
let count = if counted then lookup_ parent (Num 1.0) else Noval in
|
|
1778
|
+
let tvals = slice ~start:(Num (if counted then 2.0 else 1.0)) parent in
|
|
1779
|
+
let numtvals = size tvals in
|
|
1780
|
+
let field = "The " ^ name ^ " validator at field " ^ pathify ~startin:(Num 1.0) inj.path in
|
|
1781
|
+
(if numtvals = 0 then
|
|
1782
|
+
push_err inj (field ^ (if counted then " must have a count and" else " must have") ^ " at least one argument.")
|
|
1783
|
+
else begin
|
|
1784
|
+
let lo, hi, countdesc =
|
|
1785
|
+
if counted then nofcount count (float_of_int numtvals)
|
|
1786
|
+
else (float_of_int numtvals, float_of_int numtvals, Some "all") in
|
|
1787
|
+
match countdesc with
|
|
1788
|
+
| None -> push_err inj (field ^ " has an invalid count: " ^ stringify count ^ ".")
|
|
1789
|
+
| Some countdesc ->
|
|
1790
|
+
let tarr = Array.of_list (match tvals with List r -> !r | _ -> []) in
|
|
1791
|
+
let admitted = ref 0.0 in
|
|
1792
|
+
let ti = ref 0 in
|
|
1793
|
+
(* Stop once the specs left cannot change the verdict. *)
|
|
1794
|
+
let decided () =
|
|
1795
|
+
let left = float_of_int (numtvals - !ti) in
|
|
1796
|
+
hi < !admitted || !admitted +. left < lo || (lo <= !admitted && !admitted +. left <= hi) in
|
|
1797
|
+
while !ti < numtvals && not (decided ()) do
|
|
1798
|
+
if admits cval tarr.(!ti) inj store then admitted := !admitted +. 1.0;
|
|
1799
|
+
incr ti
|
|
1800
|
+
done;
|
|
1801
|
+
if !admitted < lo || hi < !admitted then begin
|
|
1802
|
+
let valdesc = String.concat ", " (List.map (fun (_, x) -> stringify x) (items_pairs tvals)) in
|
|
1803
|
+
let valdesc = replace_transform_names valdesc in
|
|
1804
|
+
push_err inj (invalid_type_msg inj.path (countdesc ^ " of " ^ valdesc) (typify cval) cval "V0310")
|
|
1805
|
+
end
|
|
1806
|
+
end);
|
|
1807
|
+
skip
|
|
1808
|
+
end
|
|
1809
|
+
|
|
1810
|
+
(* The value's length is within a bound: [`$LEN`, bound, spec?], where the
|
|
1811
|
+
bound is as for a $NOF count. A string's length is in code points. *)
|
|
1812
|
+
and validate_len inj _v _ref store = validatebound inj store "$LEN"
|
|
1813
|
+
|
|
1814
|
+
(* The value is a number within a bound: [`$RANGE`, bound, spec?], where the
|
|
1815
|
+
bound holds min or gt, max or lt, or one of each. *)
|
|
1816
|
+
and validate_range inj _v _ref store = validatebound inj store "$RANGE"
|
|
1817
|
+
|
|
1818
|
+
and validate_like inj _v _ref store = validatebound inj store "$LIKE"
|
|
1819
|
+
|
|
1820
|
+
(* The bounding list directives: a bound or pattern, then at most one spec that also admits. *)
|
|
1821
|
+
and validatebound inj store name =
|
|
1822
|
+
if inj.mode <> m_val then Noval
|
|
1823
|
+
else if not (islist inj.parent) || inj.keyi <> 0 then begin
|
|
1824
|
+
push_err inj ("The " ^ name ^ " validator at field " ^ pathify ~startin:(Num 1.0) ~endin:(Num 1.0) inj.path ^ " must be the first element of an array.");
|
|
1825
|
+
Noval
|
|
1826
|
+
end else begin
|
|
1827
|
+
let parent = inj.parent in
|
|
1828
|
+
let cval = slotval inj in
|
|
1829
|
+
inj.keyi <- size inj.keys;
|
|
1830
|
+
(* As for the counting directives: skip keeps inject off the detached list. *)
|
|
1831
|
+
ignore (inj_setval ~ancestor:2 inj cval);
|
|
1832
|
+
inj.path <- slice ~start:(Num (-1.0)) inj.path;
|
|
1833
|
+
let field = "The " ^ name ^ " validator at field " ^ pathify ~startin:(Num 1.0) inj.path in
|
|
1834
|
+
let nargs = size parent - 1 in
|
|
1835
|
+
let islen = (name = "$LEN") in
|
|
1836
|
+
let islike = (name = "$LIKE") in
|
|
1837
|
+
let argname = if islike then "pattern" else "bound" in
|
|
1838
|
+
(if nargs < 1 || 2 < nargs then push_err inj (field ^ " must have a " ^ argname ^ " and at most one spec.")
|
|
1839
|
+
else begin
|
|
1840
|
+
let bound = lookup_ parent (Num 1.0) in
|
|
1841
|
+
let like = if islike then likere bound else None in
|
|
1842
|
+
let lo, hi, desc =
|
|
1843
|
+
if islen then lenbound bound
|
|
1844
|
+
else (0.0, 0.0,
|
|
1845
|
+
if islike then (match bound, like with Str p, Some _ -> Some ("like /" ^ p ^ "/") | _ -> None)
|
|
1846
|
+
else rangedesc bound) in
|
|
1847
|
+
match desc with
|
|
1848
|
+
| None -> push_err inj (field ^ " has an invalid " ^ argname ^ ": " ^ stringify bound ^ ".")
|
|
1849
|
+
| Some desc ->
|
|
1850
|
+
let ctype = typify cval in
|
|
1851
|
+
let spec = lookup_ parent (Num 2.0) in
|
|
1852
|
+
if nargs = 2 && not (admits cval spec inj store) then
|
|
1853
|
+
push_err inj (invalid_type_msg inj.path (replace_transform_names (stringify spec)) ctype cval "V0410")
|
|
1854
|
+
else if (if islen then t_string lor t_list lor t_map else if islike then t_string else t_number) land ctype = 0 then
|
|
1855
|
+
push_err inj (invalid_type_msg inj.path
|
|
1856
|
+
(if islen then "string, list or map" else if islike then s_string else "number")
|
|
1857
|
+
ctype cval "V0420")
|
|
1858
|
+
else begin
|
|
1859
|
+
let inbound =
|
|
1860
|
+
if islen then
|
|
1861
|
+
let len = float_of_int (match cval with Str s -> utf8_length s | _ -> size cval) in
|
|
1862
|
+
lo <= len && (hi = -1.0 || len <= hi)
|
|
1863
|
+
else if islike then (match like, cval with Some re, Str s -> Vregex.test re s | _ -> false)
|
|
1864
|
+
else inrange bound cval in
|
|
1865
|
+
if not inbound then
|
|
1866
|
+
push_err inj (invalid_type_msg inj.path ((if size inj.path > 1 then "" else "value ") ^ desc) ctype cval "V0430")
|
|
1867
|
+
end
|
|
1868
|
+
end);
|
|
1869
|
+
skip
|
|
1870
|
+
end
|
|
1871
|
+
|
|
1872
|
+
(* The bounds of a $LEN bound, with -1 for no maximum, and the words for it,
|
|
1873
|
+
which are absent when the bound is invalid. *)
|
|
1874
|
+
and lenbound bound =
|
|
1875
|
+
match nofcount bound (-1.0) with
|
|
1876
|
+
| _, _, None -> (0.0, 0.0, None)
|
|
1877
|
+
| lo, hi, Some _ ->
|
|
1878
|
+
let words =
|
|
1879
|
+
if lo = hi then num_to_string lo
|
|
1880
|
+
else if hi = -1.0 then "at least " ^ num_to_string lo
|
|
1881
|
+
else if lo = 0.0 then "at most " ^ num_to_string hi
|
|
1882
|
+
else num_to_string lo ^ " to " ^ num_to_string hi in
|
|
1883
|
+
(lo, hi, Some ("of length " ^ words))
|
|
1884
|
+
|
|
1885
|
+
(* A $LIKE pattern compiled by the port's own regex engine; absent unless it compiles. *)
|
|
1886
|
+
and likere pattern =
|
|
1887
|
+
match pattern with
|
|
1888
|
+
| Str p -> (try Some (Vregex.compile p) with _ -> None)
|
|
1889
|
+
| _ -> None
|
|
1890
|
+
|
|
1891
|
+
(* The words for a $RANGE bound, which are absent when the bound is invalid. *)
|
|
1892
|
+
and rangedesc bound =
|
|
1893
|
+
if not (ismap bound) then None
|
|
1894
|
+
else begin
|
|
1895
|
+
let mn = lookup_ bound (Str "min") and mx = lookup_ bound (Str "max") in
|
|
1896
|
+
let gt = lookup_ bound (Str "gt") and lt = lookup_ bound (Str "lt") in
|
|
1897
|
+
let lower = if is_noval mn then gt else mn in
|
|
1898
|
+
let upper = if is_noval mx then lt else mx in
|
|
1899
|
+
let isnum n = is_noval n || (t_number land typify n) > 0 in
|
|
1900
|
+
let num n = (match n with Num x -> x | _ -> 0.0) in
|
|
1901
|
+
let valid =
|
|
1902
|
+
size bound > 0
|
|
1903
|
+
&& size bound = List.length (List.filter (fun n -> not (is_noval n)) [mn; mx; gt; lt])
|
|
1904
|
+
&& (is_noval mn || is_noval gt)
|
|
1905
|
+
&& (is_noval mx || is_noval lt)
|
|
1906
|
+
&& isnum mn && isnum mx && isnum gt && isnum lt
|
|
1907
|
+
&& (is_noval lower || is_noval upper || num lower <= num upper) in
|
|
1908
|
+
let part a awords b bwords =
|
|
1909
|
+
if not (is_noval a) then Str (awords ^ stringify a)
|
|
1910
|
+
else if not (is_noval b) then Str (bwords ^ stringify b)
|
|
1911
|
+
else Noval in
|
|
1912
|
+
if not valid then None
|
|
1913
|
+
else Some (join ~sep:(Str " and ")
|
|
1914
|
+
(lst [part mn "at least " gt "greater than "; part mx "at most " lt "less than "]))
|
|
1915
|
+
end
|
|
1916
|
+
|
|
1917
|
+
(* A number within a valid $RANGE bound. *)
|
|
1918
|
+
and inrange bound v =
|
|
1919
|
+
let mn = lookup_ bound (Str "min") and mx = lookup_ bound (Str "max") in
|
|
1920
|
+
let gt = lookup_ bound (Str "gt") and lt = lookup_ bound (Str "lt") in
|
|
1921
|
+
let num n = (match n with Num x -> x | _ -> Float.nan) in
|
|
1922
|
+
let x = num v in
|
|
1923
|
+
(is_noval mn || num mn <= x) && (is_noval mx || x <= num mx)
|
|
1924
|
+
&& (is_noval gt || num gt < x) && (is_noval lt || x < num lt)
|
|
1925
|
+
|
|
1926
|
+
(* The bounds of a $NOF count, and the words for it, which are absent when
|
|
1927
|
+
the count is invalid. Without a max, the bound is the number of specs. *)
|
|
1928
|
+
and nofcount count numtvals =
|
|
1929
|
+
let isnat n = (t_integer land typify n) > 0 && (match n with Num x -> 0.0 <= x | _ -> false) in
|
|
1930
|
+
let num n = (match n with Num x -> x | _ -> 0.0) in
|
|
1931
|
+
if isnat count then
|
|
1932
|
+
let c = num count in
|
|
1933
|
+
(c, c, Some (if c = 0.0 then "none" else "exactly " ^ num_to_string c))
|
|
1934
|
+
else begin
|
|
1935
|
+
let mn = lookup_ count (Str "min") in
|
|
1936
|
+
let mx = lookup_ count (Str "max") in
|
|
1937
|
+
let valid =
|
|
1938
|
+
ismap count && size count > 0
|
|
1939
|
+
&& size count = (if is_noval mn then 0 else 1) + (if is_noval mx then 0 else 1)
|
|
1940
|
+
&& (is_noval mn || isnat mn)
|
|
1941
|
+
&& (is_noval mx || isnat mx)
|
|
1942
|
+
&& (is_noval mn || is_noval mx || num mn <= num mx) in
|
|
1943
|
+
if not valid then (0.0, 0.0, None)
|
|
1944
|
+
else begin
|
|
1945
|
+
let lo = if is_noval mn then 0.0 else num mn in
|
|
1946
|
+
let hi = if is_noval mx then numtvals else num mx in
|
|
1947
|
+
let desc =
|
|
1948
|
+
if is_noval mx then "at least " ^ num_to_string lo
|
|
1949
|
+
else if hi = 0.0 then "none"
|
|
1950
|
+
else if is_noval mn then "at most " ^ num_to_string hi
|
|
1951
|
+
else if lo = hi then "exactly " ^ num_to_string lo
|
|
1952
|
+
else num_to_string lo ^ " to " ^ num_to_string hi in
|
|
1953
|
+
(lo, hi, Some desc)
|
|
1954
|
+
end
|
|
1955
|
+
end
|
|
1956
|
+
|
|
1957
|
+
(* A spec admits a value when validating the value against it finds no error
|
|
1958
|
+
and gives back the value as it is. *)
|
|
1959
|
+
and admits v spec inj store =
|
|
1960
|
+
let terrs = empty_list () in
|
|
1961
|
+
let vstore = merge ~maxdepth:(Num 1.0) (lst [empty_map (); store]) in
|
|
1962
|
+
ignore (setprop vstore (Str s_dtop) v);
|
|
1963
|
+
let idef = { (default_injdef ()) with d_extra = vstore; d_errs = terrs; d_meta = inj.meta } in
|
|
1964
|
+
let out = validate ~inj:(IDef idef) v spec in
|
|
1965
|
+
size terrs = 0 && keeps v out
|
|
1966
|
+
|
|
1967
|
+
(* Every member v has is in out, unchanged. A member only out has is a
|
|
1968
|
+
default the spec supplied, and is ignored. *)
|
|
1969
|
+
and keeps v out =
|
|
1970
|
+
if is_noval v then true
|
|
1971
|
+
else if (t_list lor t_map) land typify v = 0 || islist v <> islist out || not (isnode out) then
|
|
1972
|
+
deepequal v out
|
|
1973
|
+
else List.for_all (fun k -> keeps (lookup_ v (Str k)) (lookup_ out (Str k))) (keysof v)
|
|
1974
|
+
|
|
1975
|
+
(* JSON equality: numbers by value, lists in order, maps by key in any order. *)
|
|
1976
|
+
and deepequal a b =
|
|
1660
1977
|
match a, b with
|
|
1661
|
-
| Noval, Noval -> true
|
|
1662
|
-
| Null, Null -> true
|
|
1978
|
+
| Noval, Noval | Null, Null -> true
|
|
1663
1979
|
| Bool x, Bool y -> x = y
|
|
1664
1980
|
| Num x, Num y -> x = y
|
|
1665
1981
|
| Str x, Str y -> x = y
|
|
1982
|
+
| Func f, Func g -> f == g
|
|
1666
1983
|
| Sentinel x, Sentinel y -> x = y
|
|
1667
|
-
| List x, List y -> List.length !x = List.length !y && List.for_all2
|
|
1984
|
+
| List x, List y -> x == y || (List.length !x = List.length !y && List.for_all2 deepequal !x !y)
|
|
1668
1985
|
| Map x, Map y ->
|
|
1669
|
-
|
|
1670
|
-
|
|
1986
|
+
x == y ||
|
|
1987
|
+
(let ks = keysof a in
|
|
1988
|
+
ks = keysof b && List.for_all (fun k -> deepequal (lookup_ a (Str k)) (lookup_ b (Str k))) ks)
|
|
1671
1989
|
| _ -> false
|
|
1672
1990
|
|
|
1991
|
+
(* The data value at a list directive's slot. The directive's own dparent was
|
|
1992
|
+
read with getprop, which reports a stored null as absent. *)
|
|
1993
|
+
and slotval inj =
|
|
1994
|
+
match inj.prior with
|
|
1995
|
+
| None -> inj.dparent
|
|
1996
|
+
| Some prior -> lookup_ prior.dparent prior.key
|
|
1997
|
+
|
|
1998
|
+
(* Report each checker the spec names that validate lacks, and each misplaced
|
|
1999
|
+
$REST; $EXACT's arguments are literals. Last: spec is a list's last item. *)
|
|
2000
|
+
and checknames ?(last = false) spec store path errs =
|
|
2001
|
+
let push msg = ignore (setprop errs (Num (float_of_int (size errs))) (Str msg)) in
|
|
2002
|
+
match refname spec with
|
|
2003
|
+
| Some name ->
|
|
2004
|
+
if unknownname name store then
|
|
2005
|
+
push ("Unknown validator " ^ name ^ " at field " ^ pathify (lst path) ^ ".")
|
|
2006
|
+
else if name = "$REST" then
|
|
2007
|
+
push (restmsg (lst path) " must be the last element of an array.")
|
|
2008
|
+
| None ->
|
|
2009
|
+
let head = if islist spec then refname (lookup_ spec (Num 0.0)) else None in
|
|
2010
|
+
if head = Some "$EXACT" then ()
|
|
2011
|
+
else if head = Some "$REST" then begin
|
|
2012
|
+
if not last then push (restmsg (lst path) " must be the last element of an array.")
|
|
2013
|
+
else if size spec <> 2 then push (restmsg (lst path) " must have exactly one spec.");
|
|
2014
|
+
checknames (lookup_ spec (Num 1.0)) store (path @ [Num 1.0]) errs
|
|
2015
|
+
end else begin
|
|
2016
|
+
let restkey = "`$REST`" in
|
|
2017
|
+
if ismap spec && not (is_noval (lookup_ spec (Str restkey)))
|
|
2018
|
+
&& not (is_noval (lookup_ spec (Str "`$CHILD`"))) then
|
|
2019
|
+
push (restmsg (lst path) " cannot be used with $CHILD.");
|
|
2020
|
+
let lastkey = if islist spec then Some (strkey ~key:(Num (float_of_int (size spec - 1))) ()) else None in
|
|
2021
|
+
List.iter (fun k ->
|
|
2022
|
+
if ismap spec && k <> restkey then checknames (Str k) store path errs;
|
|
2023
|
+
checknames ~last:(lastkey = Some k) (lookup_ spec (Str k)) store (path @ [Str k]) errs)
|
|
2024
|
+
(keysof spec)
|
|
2025
|
+
end
|
|
2026
|
+
|
|
2027
|
+
(* The name a whole-string reference gives, when it is a checker name in any case. *)
|
|
2028
|
+
and refname v =
|
|
2029
|
+
match v with
|
|
2030
|
+
| Str s ->
|
|
2031
|
+
(match injection_full s with
|
|
2032
|
+
| Some name when is_checker_name (String.uppercase_ascii name) -> Some name
|
|
2033
|
+
| _ -> None)
|
|
2034
|
+
| _ -> None
|
|
2035
|
+
|
|
2036
|
+
(* Unknown: undefined and upper case, or a defined name in another case. Null disables a name. *)
|
|
2037
|
+
and unknownname name store =
|
|
2038
|
+
let known n = List.mem n validate_names || not (is_nullish (lookup_ store (Str n))) in
|
|
2039
|
+
let upper = String.uppercase_ascii name in
|
|
2040
|
+
not (known name) && (upper = name || known upper)
|
|
2041
|
+
|
|
1673
2042
|
and validation pval key parent inj =
|
|
1674
2043
|
if not (is_skip pval) then begin
|
|
1675
2044
|
let exact = getprop ~alt:(Bool false) inj.meta (Str s_bexact) in
|
|
@@ -1686,7 +2055,8 @@ and validation pval key parent inj =
|
|
|
1686
2055
|
else begin
|
|
1687
2056
|
let ckeys = keysof cval in
|
|
1688
2057
|
let pkeys = keysof pval in
|
|
1689
|
-
|
|
2058
|
+
(* Only a spec written as {} is open, even if named keys resolved away. *)
|
|
2059
|
+
if (List.length pkeys > 0 || inj.named) && not (getprop pval (Str s_bopen) = Bool true) then begin
|
|
1690
2060
|
let badkeys = List.filter (fun ck -> is_noval (lookup_ pval (Str ck))) ckeys in
|
|
1691
2061
|
if List.length badkeys > 0 then
|
|
1692
2062
|
push_err inj ("Unexpected keys at field " ^ pathify ~startin:(Num 1.0) inj.path ^ s_viz ^ String.concat ", " badkeys)
|
|
@@ -1695,10 +2065,20 @@ and validation pval key parent inj =
|
|
|
1695
2065
|
if isnode pval then ignore (delprop pval (Str s_bopen))
|
|
1696
2066
|
end
|
|
1697
2067
|
end
|
|
1698
|
-
end else if islist cval then
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
2068
|
+
end else if islist cval then begin
|
|
2069
|
+
if not (islist pval) then push_err inj (invalid_type_msg inj.path (typename ptype) ctype cval "V0030")
|
|
2070
|
+
else if size pval > 0 then begin
|
|
2071
|
+
(* Closed list, so reject items past the end of the shape. *)
|
|
2072
|
+
let psz = size pval in
|
|
2073
|
+
let badkeys = List.init (max 0 (size cval - psz))
|
|
2074
|
+
(fun i -> strkey ~key:(Num (float_of_int (psz + i))) ()) in
|
|
2075
|
+
if List.length badkeys > 0 then
|
|
2076
|
+
push_err inj ("Unexpected keys at field " ^ pathify ~startin:(Num 1.0) inj.path ^ s_viz ^ String.concat ", " badkeys)
|
|
2077
|
+
end else
|
|
2078
|
+
(* Empty spec list [] means list can be open (any items). *)
|
|
2079
|
+
ignore (merge (lst [pval; cval]))
|
|
2080
|
+
end else if exact_b then
|
|
2081
|
+
(if not (deepequal cval pval) then
|
|
1702
2082
|
let pathmsg = if size inj.path > 1 then "at field " ^ pathify ~startin:(Num 1.0) inj.path ^ ": " else "" in
|
|
1703
2083
|
push_err inj ("Value " ^ pathmsg ^ js_string cval ^ " should equal " ^ js_string pval ^ "."))
|
|
1704
2084
|
else ignore (setprop parent key cval)
|
|
@@ -1725,13 +2105,21 @@ and validate ?(inj = INone) data spec =
|
|
|
1725
2105
|
["$NUMBER"; "$INTEGER"; "$DECIMAL"; "$BOOLEAN"; "$NULL"; "$NIL"; "$MAP"; "$LIST"; "$FUNCTION"; "$INSTANCE"];
|
|
1726
2106
|
put "$ANY" (Func validate_any);
|
|
1727
2107
|
put "$CHILD" (Func validate_child);
|
|
1728
|
-
put "$ONE" (Func validate_one);
|
|
1729
2108
|
put "$EXACT" (Func validate_exact);
|
|
2109
|
+
put "$NOF" (Func validate_nof);
|
|
2110
|
+
put "$ALL" (Func validate_all);
|
|
2111
|
+
put "$LEN" (Func validate_len);
|
|
2112
|
+
put "$RANGE" (Func validate_range);
|
|
2113
|
+
put "$LIKE" (Func validate_like);
|
|
2114
|
+
put "$REST" (Func validate_rest);
|
|
1730
2115
|
let store = merge ~maxdepth:(Num 1.0) (lst [base; (if is_noval extra then empty_map () else extra); Map { entries = [(s_derrs, errs)] }]) in
|
|
1731
2116
|
let meta = (match inj with IDef d when not (is_noval d.d_meta) -> d.d_meta | _ -> empty_map ()) in
|
|
1732
2117
|
ignore (setprop meta (Str s_bexact) (getprop ~alt:(Bool false) meta (Str s_bexact)));
|
|
1733
2118
|
let idef = { (default_injdef ()) with d_meta = meta; d_extra = store; d_modify = Some validation; d_handler = Some validate_handler; d_errs = errs } in
|
|
1734
|
-
|
|
2119
|
+
(* A spec that names an unknown checker validates nothing. *)
|
|
2120
|
+
let numerrs = size errs in
|
|
2121
|
+
checknames spec store [] errs;
|
|
2122
|
+
let out = if numerrs < size errs then clone data else transform ~inj:(IDef idef) data spec in
|
|
1735
2123
|
if size errs > 0 && not collect then raise (Struct_error (join ~sep:(Str " | ") errs));
|
|
1736
2124
|
out
|
|
1737
2125
|
|
|
@@ -1797,22 +2185,26 @@ and num_cmp a b op =
|
|
|
1797
2185
|
| Num x, Num y -> (match op with `Gt -> x > y | `Lt -> x < y | `Gte -> x >= y | `Lte -> x <= y)
|
|
1798
2186
|
| _ -> false
|
|
1799
2187
|
|
|
1800
|
-
and select_cmp inj
|
|
1801
|
-
(
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
2188
|
+
and select_cmp inj v refstr store =
|
|
2189
|
+
(* The list form of $LIKE is validate's checker; the key form is this operator. *)
|
|
2190
|
+
if inj.mode = m_val && refstr = "$LIKE" then validate_like inj v refstr store
|
|
2191
|
+
else begin
|
|
2192
|
+
(if inj.mode = m_keypre then begin
|
|
2193
|
+
let term = getprop inj.parent inj.key in
|
|
2194
|
+
let gkey = getelem inj.path (Num (-2.0)) in
|
|
2195
|
+
let ppath = slice ~start:(Num (-1.0)) inj.path in
|
|
2196
|
+
let point = getpath ~inj:INone store ppath in
|
|
2197
|
+
let pass =
|
|
2198
|
+
if refstr = "$GT" then num_cmp point term `Gt
|
|
2199
|
+
else if refstr = "$LT" then num_cmp point term `Lt
|
|
2200
|
+
else if refstr = "$GTE" then num_cmp point term `Gte
|
|
2201
|
+
else if refstr = "$LTE" then num_cmp point term `Lte
|
|
2202
|
+
else if refstr = "$LIKE" then (match term with Str t -> Vregex.test_str t (stringify point) | _ -> false)
|
|
2203
|
+
else false in
|
|
2204
|
+
if pass then (let gp = getelem inj.nodes (Num (-2.0)) in ignore (setprop gp gkey point))
|
|
2205
|
+
else push_err inj ("CMP: " ^ pathify ppath ^ "\xe2\xa8\xaf" ^ stringify point ^ " fail:" ^ refstr ^ " " ^ stringify term)
|
|
2206
|
+
end); Noval
|
|
2207
|
+
end
|
|
1816
2208
|
|
|
1817
2209
|
and select children query =
|
|
1818
2210
|
if not (isnode children) then empty_list ()
|
|
@@ -1829,7 +2221,7 @@ and select children query =
|
|
|
1829
2221
|
[("$AND", select_and); ("$OR", select_or); ("$NOT", select_not);
|
|
1830
2222
|
("$GT", select_cmp); ("$LT", select_cmp); ("$GTE", select_cmp); ("$LTE", select_cmp); ("$LIKE", select_cmp)];
|
|
1831
2223
|
let q = clone query in
|
|
1832
|
-
|
|
2224
|
+
openquery q;
|
|
1833
2225
|
List.iter (fun child ->
|
|
1834
2226
|
let errs = empty_list () in
|
|
1835
2227
|
let idef = { (default_injdef ()) with d_errs = errs; d_meta = (let m = empty_map () in ignore (setprop m (Str s_bexact) (Bool true)); m); d_extra = extra } in
|
|
@@ -1839,6 +2231,21 @@ and select children query =
|
|
|
1839
2231
|
results
|
|
1840
2232
|
end
|
|
1841
2233
|
|
|
2234
|
+
(* Open every map in a select query, so a child may hold keys the query does
|
|
2235
|
+
not name, but leave a directive's literals as written: what $EXACT
|
|
2236
|
+
compares, and the count or bound of $NOF, $LEN and $RANGE. *)
|
|
2237
|
+
and openquery q =
|
|
2238
|
+
match q with
|
|
2239
|
+
| Map _ ->
|
|
2240
|
+
ignore (setprop q (Str s_bopen) (getprop ~alt:(Bool true) q (Str s_bopen)));
|
|
2241
|
+
List.iter (fun (_, v) -> openquery v) (items_pairs q)
|
|
2242
|
+
| List r ->
|
|
2243
|
+
let head = lookup_ q (Num 0.0) in
|
|
2244
|
+
let exact = (head = Str s_bexact) in
|
|
2245
|
+
let bounded = List.mem head [Str "`$NOF`"; Str "`$LEN`"; Str "`$RANGE`"] in
|
|
2246
|
+
List.iteri (fun i v -> if i = 0 || not (exact || (bounded && i = 1)) then openquery v) !r
|
|
2247
|
+
| _ -> ()
|
|
2248
|
+
|
|
1842
2249
|
(* ----- builders ----- *)
|
|
1843
2250
|
|
|
1844
2251
|
and jm kv =
|
|
@@ -1855,6 +2262,249 @@ and jm kv =
|
|
|
1855
2262
|
|
|
1856
2263
|
and jt v = lst v
|
|
1857
2264
|
|
|
2265
|
+
(* ----- condense ----- *)
|
|
2266
|
+
|
|
2267
|
+
and condense_guard v =
|
|
2268
|
+
if iscondensed v then raise (Struct_error s_condimmutable)
|
|
2269
|
+
|
|
2270
|
+
(* The version must match, not merely be numeric: a future profile would
|
|
2271
|
+
otherwise be decoded under this one's schema. *)
|
|
2272
|
+
and iscondensed v =
|
|
2273
|
+
match v with
|
|
2274
|
+
| Map m ->
|
|
2275
|
+
(match omap_get m s_condense, omap_get m s_condsym, omap_get m s_condnode,
|
|
2276
|
+
omap_get m s_condroot with
|
|
2277
|
+
| Some (Num n), Some (List _), Some (List _), Some (Num _) -> n = condense_version
|
|
2278
|
+
| _ -> false)
|
|
2279
|
+
| _ -> false
|
|
2280
|
+
|
|
2281
|
+
(* Pure: the same input gives byte-identical output, on every port. *)
|
|
2282
|
+
and condense v =
|
|
2283
|
+
let symset = Hashtbl.create 64 in
|
|
2284
|
+
let rec collect n =
|
|
2285
|
+
match n with
|
|
2286
|
+
| Map m -> List.iter (fun (k, x) -> Hashtbl.replace symset k (); collect x) m.entries
|
|
2287
|
+
| List r -> List.iter collect !r
|
|
2288
|
+
| Str s -> Hashtbl.replace symset s ()
|
|
2289
|
+
| _ -> ()
|
|
2290
|
+
in
|
|
2291
|
+
collect v;
|
|
2292
|
+
let sym = List.sort compare (Hashtbl.fold (fun s () acc -> s :: acc) symset []) in
|
|
2293
|
+
let symid = Hashtbl.create 64 in
|
|
2294
|
+
List.iteri (fun i s -> Hashtbl.replace symid s i) sym;
|
|
2295
|
+
let symref s = vint (Hashtbl.find symid s) in
|
|
2296
|
+
(* Built post-order and interned on the encoding, so identical subtrees are
|
|
2297
|
+
already one node by the time a parent references them. *)
|
|
2298
|
+
let node = ref [] and count = ref 0 and seen = Hashtbl.create 64 in
|
|
2299
|
+
let intern enc =
|
|
2300
|
+
(* -0 is 0: one JS number, so one node. *)
|
|
2301
|
+
let part = function Num n when n = 0.0 -> "0" | x -> js_string x in
|
|
2302
|
+
let key = String.concat "," (List.map part enc) in
|
|
2303
|
+
match Hashtbl.find_opt seen key with
|
|
2304
|
+
| Some i -> i
|
|
2305
|
+
| None ->
|
|
2306
|
+
let i = !count in
|
|
2307
|
+
node := lst enc :: !node;
|
|
2308
|
+
incr count;
|
|
2309
|
+
Hashtbl.replace seen key i;
|
|
2310
|
+
i
|
|
2311
|
+
in
|
|
2312
|
+
let rec build n =
|
|
2313
|
+
match n with
|
|
2314
|
+
| Map m ->
|
|
2315
|
+
let enc = ref [Num condense_map] in
|
|
2316
|
+
List.iter (fun k ->
|
|
2317
|
+
let child = build (match omap_get m k with Some x -> x | None -> Noval) in
|
|
2318
|
+
enc := vint child :: symref k :: !enc) (keysof n);
|
|
2319
|
+
intern (List.rev !enc)
|
|
2320
|
+
| List r ->
|
|
2321
|
+
let enc = ref [Num condense_list] in
|
|
2322
|
+
List.iter (fun x -> let child = build x in enc := vint child :: !enc) !r;
|
|
2323
|
+
intern (List.rev !enc)
|
|
2324
|
+
| Str s -> intern [Num condense_str; symref s]
|
|
2325
|
+
| Num x -> intern [Num condense_num; Num x]
|
|
2326
|
+
| Bool true -> intern [Num condense_true]
|
|
2327
|
+
| Bool false -> intern [Num condense_false]
|
|
2328
|
+
| _ -> intern [Num condense_null]
|
|
2329
|
+
in
|
|
2330
|
+
let root = build v in
|
|
2331
|
+
Map { entries = [ (s_condense, Num condense_version);
|
|
2332
|
+
(s_condsym, lst (List.map vstr sym));
|
|
2333
|
+
(s_condnode, lst (List.rev !node));
|
|
2334
|
+
(s_condroot, vint root) ] }
|
|
2335
|
+
|
|
2336
|
+
and condense_field cond name =
|
|
2337
|
+
match cond with
|
|
2338
|
+
| Map m -> (match omap_get m name with Some x -> x | None -> Noval)
|
|
2339
|
+
| _ -> Noval
|
|
2340
|
+
|
|
2341
|
+
and condense_items cond name =
|
|
2342
|
+
match condense_field cond name with List r -> Array.of_list !r | _ -> [||]
|
|
2343
|
+
|
|
2344
|
+
and condense_item a i = if i >= 0 && i < Array.length a then a.(i) else Noval
|
|
2345
|
+
|
|
2346
|
+
(* A node or symbol index read out of the structure; -1 when it is not one. *)
|
|
2347
|
+
and condense_index v =
|
|
2348
|
+
match v with
|
|
2349
|
+
| Num n when n >= 0.0 && n < 1e15 && is_integer_f n -> int_of_float n
|
|
2350
|
+
| _ -> -1
|
|
2351
|
+
|
|
2352
|
+
and condense_root cond = condense_index (condense_field cond s_condroot)
|
|
2353
|
+
|
|
2354
|
+
and condense_enc cond idx =
|
|
2355
|
+
match condense_field cond s_condnode with
|
|
2356
|
+
| List r when idx >= 0 -> (match List.nth_opt !r idx with Some e -> e | None -> Noval)
|
|
2357
|
+
| _ -> Noval
|
|
2358
|
+
|
|
2359
|
+
and condense_encoding enc = match enc with List r -> Array.of_list !r | _ -> [||]
|
|
2360
|
+
|
|
2361
|
+
and condense_kind enc =
|
|
2362
|
+
match enc with List r -> (match !r with Num k :: _ -> Some k | _ -> None) | _ -> None
|
|
2363
|
+
|
|
2364
|
+
(* -1 when the string occurs nowhere in the structure: itself a fast miss. *)
|
|
2365
|
+
and condense_symid cond key =
|
|
2366
|
+
let sym = condense_items cond s_condsym in
|
|
2367
|
+
let rec bisect lo hi =
|
|
2368
|
+
if lo > hi then -1
|
|
2369
|
+
else
|
|
2370
|
+
let mid = (lo + hi) / 2 in
|
|
2371
|
+
match sym.(mid) with
|
|
2372
|
+
| Str s when s = key -> mid
|
|
2373
|
+
| Str s when compare s key < 0 -> bisect (mid + 1) hi
|
|
2374
|
+
| _ -> bisect lo (mid - 1)
|
|
2375
|
+
in
|
|
2376
|
+
bisect 0 (Array.length sym - 1)
|
|
2377
|
+
|
|
2378
|
+
(* The node index of key inside node idx, or -1. Touches only this node. *)
|
|
2379
|
+
and condense_child cond idx key =
|
|
2380
|
+
let enc = condense_enc cond idx in
|
|
2381
|
+
let e = condense_encoding enc in
|
|
2382
|
+
let at j = condense_item e j in
|
|
2383
|
+
let kind = condense_kind enc in
|
|
2384
|
+
if (match key with Str _ | Num _ -> false | _ -> true) then -1
|
|
2385
|
+
else if kind = Some condense_map then begin
|
|
2386
|
+
let symid = condense_symid cond (js_string key) in
|
|
2387
|
+
let target = float_of_int symid in
|
|
2388
|
+
(* Pairs live at [1,2], [3,4], ... with keys ascending: bisect them. *)
|
|
2389
|
+
let rec bisect lo hi =
|
|
2390
|
+
if lo > hi then -1
|
|
2391
|
+
else
|
|
2392
|
+
let mid = (lo + hi) / 2 in
|
|
2393
|
+
match at (1 + mid * 2) with
|
|
2394
|
+
| Num k when k = target -> condense_index (at (2 + mid * 2))
|
|
2395
|
+
| Num k when k < target -> bisect (mid + 1) hi
|
|
2396
|
+
| _ -> bisect lo (mid - 1)
|
|
2397
|
+
in
|
|
2398
|
+
if symid < 0 then -1 else bisect 0 ((Array.length e - 1) / 2 - 1)
|
|
2399
|
+
end
|
|
2400
|
+
else if kind = Some condense_list then begin
|
|
2401
|
+
(* A list_key from 0 only, as a JS list lookup: 01, 1e0, " 1", +1 and -1
|
|
2402
|
+
miss, so condensing never changes which value a path selects. *)
|
|
2403
|
+
match list_key key with
|
|
2404
|
+
| Some k when 0.0 <= k && k < float_of_int (Array.length e - 1) ->
|
|
2405
|
+
condense_index (at (1 + int_of_float k))
|
|
2406
|
+
| _ -> -1
|
|
2407
|
+
end
|
|
2408
|
+
else -1
|
|
2409
|
+
|
|
2410
|
+
(* Walk a path from a starting node, returning the node index or -1. *)
|
|
2411
|
+
and condense_resolve cond idx path =
|
|
2412
|
+
let parts =
|
|
2413
|
+
match path with
|
|
2414
|
+
| List r -> !r
|
|
2415
|
+
| Str "" | Noval | Null -> []
|
|
2416
|
+
| Str s -> List.map vstr (String.split_on_char '.' s)
|
|
2417
|
+
| p -> [Str (js_string p)]
|
|
2418
|
+
in
|
|
2419
|
+
List.fold_left (fun at part ->
|
|
2420
|
+
if at < 0 then -1
|
|
2421
|
+
else match part with Str "" -> at | _ -> condense_child cond at part) idx parts
|
|
2422
|
+
|
|
2423
|
+
and condense_materialise cond idx =
|
|
2424
|
+
let sym = condense_items cond s_condsym in
|
|
2425
|
+
let node = condense_items cond s_condnode in
|
|
2426
|
+
let rec rebuild i =
|
|
2427
|
+
let enc = condense_item node i in
|
|
2428
|
+
let e = condense_encoding enc in
|
|
2429
|
+
let at j = condense_item e j in
|
|
2430
|
+
let kind = condense_kind enc in
|
|
2431
|
+
if is_nullish enc then Noval
|
|
2432
|
+
else if kind = Some condense_map then begin
|
|
2433
|
+
let m = { entries = [] } in
|
|
2434
|
+
let rec pairs j =
|
|
2435
|
+
if j < Array.length e then begin
|
|
2436
|
+
omap_set m (js_string (condense_item sym (condense_index (at j))))
|
|
2437
|
+
(rebuild (condense_index (at (j + 1))));
|
|
2438
|
+
pairs (j + 2)
|
|
2439
|
+
end
|
|
2440
|
+
in
|
|
2441
|
+
pairs 1;
|
|
2442
|
+
Map m
|
|
2443
|
+
end
|
|
2444
|
+
else if kind = Some condense_list then
|
|
2445
|
+
lst (List.init (Array.length e - 1) (fun j -> rebuild (condense_index (at (j + 1)))))
|
|
2446
|
+
else if kind = Some condense_str then condense_item sym (condense_index (at 1))
|
|
2447
|
+
else if kind = Some condense_num then at 1
|
|
2448
|
+
else if kind = Some condense_true then Bool true
|
|
2449
|
+
else if kind = Some condense_false then Bool false
|
|
2450
|
+
else Null
|
|
2451
|
+
in
|
|
2452
|
+
if idx < 0 then Noval else rebuild idx
|
|
2453
|
+
|
|
2454
|
+
(* Correct for any caller, but it gives up every benefit of condensing. *)
|
|
2455
|
+
and expand cond =
|
|
2456
|
+
if iscondensed cond then condense_materialise cond (condense_root cond) else cond
|
|
2457
|
+
|
|
2458
|
+
(* The keys of node idx, decoding none of its values. *)
|
|
2459
|
+
and condense_keys cond idx =
|
|
2460
|
+
let enc = condense_enc cond idx in
|
|
2461
|
+
let e = condense_encoding enc in
|
|
2462
|
+
let kind = condense_kind enc in
|
|
2463
|
+
if kind = Some condense_map then begin
|
|
2464
|
+
let sym = condense_items cond s_condsym in
|
|
2465
|
+
let rec pairs j =
|
|
2466
|
+
if j >= Array.length e then []
|
|
2467
|
+
else js_string (condense_item sym (condense_index e.(j))) :: pairs (j + 2)
|
|
2468
|
+
in
|
|
2469
|
+
pairs 1
|
|
2470
|
+
end
|
|
2471
|
+
else if kind = Some condense_list then List.init (Array.length e - 1) string_of_int
|
|
2472
|
+
else []
|
|
2473
|
+
|
|
2474
|
+
and condense_size cond idx =
|
|
2475
|
+
let enc = condense_enc cond idx in
|
|
2476
|
+
let n = Array.length (condense_encoding enc) in
|
|
2477
|
+
let kind = condense_kind enc in
|
|
2478
|
+
if kind = Some condense_map then (n - 1) / 2
|
|
2479
|
+
else if kind = Some condense_list then n - 1
|
|
2480
|
+
else 0
|
|
2481
|
+
|
|
2482
|
+
(* A cursor: reads resolve by node index and touch only the nodes on the
|
|
2483
|
+
path. ref alone hands out shared materialisations, memoised per node and
|
|
2484
|
+
threaded through at, so every cursor into one structure shares them. *)
|
|
2485
|
+
and condenseview ?idx ?memo cond =
|
|
2486
|
+
let start =
|
|
2487
|
+
match idx with Some i -> i | None -> if iscondensed cond then condense_root cond else -1 in
|
|
2488
|
+
let refmemo = match memo with Some m -> m | None -> Hashtbl.create 8 in
|
|
2489
|
+
object
|
|
2490
|
+
method get path = condense_materialise cond (condense_resolve cond start path)
|
|
2491
|
+
method keys path =
|
|
2492
|
+
let at = condense_resolve cond start path in
|
|
2493
|
+
if at < 0 then [] else condense_keys cond at
|
|
2494
|
+
method has path = 0 <= condense_resolve cond start path
|
|
2495
|
+
method at path = condenseview ~idx:(condense_resolve cond start path) ~memo:refmemo cond
|
|
2496
|
+
method value = condense_materialise cond start
|
|
2497
|
+
method size = condense_size cond start
|
|
2498
|
+
method exists = 0 <= start
|
|
2499
|
+
method ref =
|
|
2500
|
+
match Hashtbl.find_opt refmemo start with
|
|
2501
|
+
| Some v -> v
|
|
2502
|
+
| None ->
|
|
2503
|
+
let v = condense_materialise cond start in
|
|
2504
|
+
Hashtbl.replace refmemo start v;
|
|
2505
|
+
v
|
|
2506
|
+
end
|
|
2507
|
+
|
|
1858
2508
|
(* ---------------------------------------------------------------------------
|
|
1859
2509
|
* Finish: set the dummy inj for getelem's function-alt path
|
|
1860
2510
|
* ------------------------------------------------------------------------- *)
|