@voxgig/sdkgen 4.34.0 → 4.34.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/voxgig-sdkgen +1 -1
- package/dist/action/copies.d.ts +4 -3
- package/dist/action/copies.js +142 -45
- package/dist/action/copies.js.map +1 -1
- package/dist/action/doctor.d.ts +1 -0
- package/dist/action/doctor.js +6 -2
- package/dist/action/doctor.js.map +1 -1
- package/dist/action/package.d.ts +3 -1
- package/dist/action/package.js +12 -5
- package/dist/action/package.js.map +1 -1
- package/dist/action/resolve.d.ts +11 -2
- package/dist/action/resolve.js +27 -0
- package/dist/action/resolve.js.map +1 -1
- package/dist/admin/npm-trust.js +7 -7
- package/dist/admin/npm-trust.js.map +1 -1
- package/dist/cmp/AgentGuide.js +4 -3
- package/dist/cmp/AgentGuide.js.map +1 -1
- package/dist/cmp/AgentGuideFeature.js +3 -2
- package/dist/cmp/AgentGuideFeature.js.map +1 -1
- package/dist/cmp/AgentGuideTop.js +2 -1
- package/dist/cmp/AgentGuideTop.js.map +1 -1
- package/dist/cmp/Changelog.js +2 -1
- package/dist/cmp/Changelog.js.map +1 -1
- package/dist/cmp/Deploy.js +2 -1
- package/dist/cmp/Deploy.js.map +1 -1
- package/dist/cmp/Entity.js +2 -2
- package/dist/cmp/Entity.js.map +1 -1
- package/dist/cmp/ExternalTarget.js +2 -1
- package/dist/cmp/ExternalTarget.js.map +1 -1
- package/dist/cmp/Feature.js +2 -1
- package/dist/cmp/Feature.js.map +1 -1
- package/dist/cmp/FeatureHook.js +2 -1
- package/dist/cmp/FeatureHook.js.map +1 -1
- package/dist/cmp/License.js +6 -4
- package/dist/cmp/License.js.map +1 -1
- package/dist/cmp/Main.js +2 -2
- package/dist/cmp/Main.js.map +1 -1
- package/dist/cmp/PublishWorkflow.js +2 -1
- package/dist/cmp/PublishWorkflow.js.map +1 -1
- package/dist/cmp/Readme.js +2 -1
- package/dist/cmp/Readme.js.map +1 -1
- package/dist/cmp/ReadmeEntity.js +4 -4
- package/dist/cmp/ReadmeEntity.js.map +1 -1
- package/dist/cmp/ReadmeErrors.js +9 -7
- package/dist/cmp/ReadmeErrors.js.map +1 -1
- package/dist/cmp/ReadmeExplanation.js +7 -6
- package/dist/cmp/ReadmeExplanation.js.map +1 -1
- package/dist/cmp/ReadmeFeatures.js +4 -3
- package/dist/cmp/ReadmeFeatures.js.map +1 -1
- package/dist/cmp/ReadmeHowto.js +4 -3
- package/dist/cmp/ReadmeHowto.js.map +1 -1
- package/dist/cmp/ReadmeInstall.js +4 -3
- package/dist/cmp/ReadmeInstall.js.map +1 -1
- package/dist/cmp/ReadmeIntro.js +4 -4
- package/dist/cmp/ReadmeIntro.js.map +1 -1
- package/dist/cmp/ReadmeModel.js +6 -3
- package/dist/cmp/ReadmeModel.js.map +1 -1
- package/dist/cmp/ReadmeOptions.js +4 -4
- package/dist/cmp/ReadmeOptions.js.map +1 -1
- package/dist/cmp/ReadmeQuick.js +6 -3
- package/dist/cmp/ReadmeQuick.js.map +1 -1
- package/dist/cmp/ReadmeRef.js +4 -4
- package/dist/cmp/ReadmeRef.js.map +1 -1
- package/dist/cmp/ReadmeRefFeatures.js +2 -1
- package/dist/cmp/ReadmeRefFeatures.js.map +1 -1
- package/dist/cmp/ReadmeStation.js +2 -1
- package/dist/cmp/ReadmeStation.js.map +1 -1
- package/dist/cmp/ReadmeTop.js +108 -38
- package/dist/cmp/ReadmeTop.js.map +1 -1
- package/dist/cmp/ReadmeUnions.js +2 -1
- package/dist/cmp/ReadmeUnions.js.map +1 -1
- package/dist/cmp/Registered.js +4 -3
- package/dist/cmp/Registered.js.map +1 -1
- package/dist/cmp/Security.js +10 -6
- package/dist/cmp/Security.js.map +1 -1
- package/dist/cmp/Test.js +2 -1
- package/dist/cmp/Test.js.map +1 -1
- package/dist/cmp/TestControl.js +2 -1
- package/dist/cmp/TestControl.js.map +1 -1
- package/dist/helpers/component.d.ts +4 -0
- package/dist/helpers/component.js +54 -0
- package/dist/helpers/component.js.map +1 -0
- package/dist/helpers/definition.js +2 -2
- package/dist/helpers/definition.js.map +1 -1
- package/dist/helpers/definitionPlan.d.ts +16 -0
- package/dist/helpers/definitionPlan.js +120 -12
- package/dist/helpers/definitionPlan.js.map +1 -1
- package/dist/helpers/featureSource.d.ts +2 -1
- package/dist/helpers/featureSource.js +44 -2
- package/dist/helpers/featureSource.js.map +1 -1
- package/dist/helpers/flowGuard.d.ts +8 -0
- package/dist/helpers/flowGuard.js +84 -0
- package/dist/helpers/flowGuard.js.map +1 -0
- package/dist/helpers/generated.d.ts +26 -0
- package/dist/helpers/generated.js +363 -0
- package/dist/helpers/generated.js.map +1 -0
- package/dist/helpers/mcpTools.d.ts +11 -0
- package/dist/helpers/mcpTools.js +28 -0
- package/dist/helpers/mcpTools.js.map +1 -0
- package/dist/helpers/media.d.ts +9 -0
- package/dist/helpers/media.js +61 -0
- package/dist/helpers/media.js.map +1 -0
- package/dist/helpers/modelNames.js +147 -14
- package/dist/helpers/modelNames.js.map +1 -1
- package/dist/helpers/naming.d.ts +12 -1
- package/dist/helpers/naming.js +154 -4
- package/dist/helpers/naming.js.map +1 -1
- package/dist/helpers/npm.d.ts +13 -0
- package/dist/helpers/npm.js +41 -0
- package/dist/helpers/npm.js.map +1 -0
- package/dist/helpers/npmScripts.d.ts +4 -0
- package/dist/helpers/npmScripts.js +30 -0
- package/dist/helpers/npmScripts.js.map +1 -0
- package/dist/helpers/opExample.d.ts +20 -5
- package/dist/helpers/opExample.js +86 -24
- package/dist/helpers/opExample.js.map +1 -1
- package/dist/helpers/opShape.d.ts +22 -4
- package/dist/helpers/opShape.js +218 -38
- package/dist/helpers/opShape.js.map +1 -1
- package/dist/helpers/optional.d.ts +20 -0
- package/dist/helpers/optional.js +51 -0
- package/dist/helpers/optional.js.map +1 -0
- package/dist/helpers/packageMeta.d.ts +9 -1
- package/dist/helpers/packageMeta.js +70 -11
- package/dist/helpers/packageMeta.js.map +1 -1
- package/dist/helpers/stdrep.js +3 -0
- package/dist/helpers/stdrep.js.map +1 -1
- package/dist/helpers/testPolicy.d.ts +9 -1
- package/dist/helpers/testPolicy.js +48 -0
- package/dist/helpers/testPolicy.js.map +1 -1
- package/dist/helpers/text.d.ts +2 -0
- package/dist/helpers/text.js +27 -0
- package/dist/helpers/text.js.map +1 -0
- package/dist/sdkgen.d.ts +17 -10
- package/dist/sdkgen.js +87 -12
- package/dist/sdkgen.js.map +1 -1
- package/dist/testkit.js +2 -1
- package/dist/testkit.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utility.d.ts +3 -1
- package/dist/utility.js +59 -18
- package/dist/utility.js.map +1 -1
- package/model/sdkgen.aontu +24 -1
- package/package.json +8 -2
- package/project/.sdk/model/feature/timeout.aontu +2 -0
- package/project/.sdk/model/target/go-mcp.aontu +2 -0
- package/project/.sdk/src/cmp/c/Config_c.ts +5 -0
- package/project/.sdk/src/cmp/c/EntityTypes_c.ts +1 -1
- package/project/.sdk/src/cmp/c/Entity_c.ts +1 -1
- package/project/.sdk/src/cmp/c/Main_c.ts +4 -20
- package/project/.sdk/src/cmp/c/PrepareAuth_c.ts +169 -51
- package/project/.sdk/src/cmp/c/ReadmeEntity_c.ts +24 -14
- package/project/.sdk/src/cmp/c/ReadmeHowto_c.ts +17 -8
- package/project/.sdk/src/cmp/c/ReadmeInstall_c.ts +2 -2
- package/project/.sdk/src/cmp/c/ReadmeIntro_c.ts +3 -3
- package/project/.sdk/src/cmp/c/ReadmeModel_c.ts +11 -10
- package/project/.sdk/src/cmp/c/ReadmeQuick_c.ts +39 -21
- package/project/.sdk/src/cmp/c/ReadmeRef_c.ts +41 -22
- package/project/.sdk/src/cmp/c/ReadmeTopQuick_c.ts +11 -8
- package/project/.sdk/src/cmp/c/ReadmeTopTest_c.ts +23 -11
- package/project/.sdk/src/cmp/c/TestClean_c.ts +56 -22
- package/project/.sdk/src/cmp/c/TestDirect_c.ts +2 -2
- package/project/.sdk/src/cmp/c/TestEntity_c.ts +77 -4
- package/project/.sdk/src/cmp/c/fragment/Entity.fragment.c +33 -27
- package/project/.sdk/src/cmp/c/fragment/EntityPatchOp.fragment.c +36 -0
- package/project/.sdk/src/cmp/c/fragment/Main.fragment.c +40 -7
- package/project/.sdk/src/cmp/c/utility_c.ts +21 -2
- package/project/.sdk/src/cmp/clojure/Entity_clojure.ts +1 -1
- package/project/.sdk/src/cmp/clojure/Main_clojure.ts +3 -1
- package/project/.sdk/src/cmp/clojure/PrepareAuth_clojure.ts +44 -28
- package/project/.sdk/src/cmp/clojure/ReadmeEntity_clojure.ts +11 -5
- package/project/.sdk/src/cmp/clojure/ReadmeHowto_clojure.ts +18 -7
- package/project/.sdk/src/cmp/clojure/ReadmeInstall_clojure.ts +3 -3
- package/project/.sdk/src/cmp/clojure/ReadmeIntro_clojure.ts +3 -3
- package/project/.sdk/src/cmp/clojure/ReadmeModel_clojure.ts +11 -9
- package/project/.sdk/src/cmp/clojure/ReadmeQuick_clojure.ts +25 -12
- package/project/.sdk/src/cmp/clojure/ReadmeRef_clojure.ts +42 -22
- package/project/.sdk/src/cmp/clojure/ReadmeTopQuick_clojure.ts +8 -5
- package/project/.sdk/src/cmp/clojure/ReadmeTopTest_clojure.ts +17 -10
- package/project/.sdk/src/cmp/clojure/TestClean_clojure.ts +57 -27
- package/project/.sdk/src/cmp/clojure/TestEntity_clojure.ts +64 -5
- package/project/.sdk/src/cmp/clojure/fragment/Entity.fragment.clj +24 -12
- package/project/.sdk/src/cmp/clojure/fragment/EntityListOp.fragment.clj +7 -9
- package/project/.sdk/src/cmp/clojure/fragment/EntityPatchOp.fragment.clj +15 -0
- package/project/.sdk/src/cmp/clojure/utility_clojure.ts +14 -0
- package/project/.sdk/src/cmp/cpp/EntityTypes_cpp.ts +1 -1
- package/project/.sdk/src/cmp/cpp/Entity_cpp.ts +2 -2
- package/project/.sdk/src/cmp/cpp/Main_cpp.ts +3 -19
- package/project/.sdk/src/cmp/cpp/PrepareAuth_cpp.ts +38 -39
- package/project/.sdk/src/cmp/cpp/ReadmeEntity_cpp.ts +21 -13
- package/project/.sdk/src/cmp/cpp/ReadmeHowto_cpp.ts +18 -9
- package/project/.sdk/src/cmp/cpp/ReadmeInstall_cpp.ts +2 -2
- package/project/.sdk/src/cmp/cpp/ReadmeIntro_cpp.ts +3 -3
- package/project/.sdk/src/cmp/cpp/ReadmeModel_cpp.ts +10 -9
- package/project/.sdk/src/cmp/cpp/ReadmeQuick_cpp.ts +28 -19
- package/project/.sdk/src/cmp/cpp/ReadmeRef_cpp.ts +44 -26
- package/project/.sdk/src/cmp/cpp/ReadmeTopQuick_cpp.ts +9 -8
- package/project/.sdk/src/cmp/cpp/ReadmeTopTest_cpp.ts +19 -11
- package/project/.sdk/src/cmp/cpp/TestClean_cpp.ts +69 -21
- package/project/.sdk/src/cmp/cpp/TestEntity_cpp.ts +135 -6
- package/project/.sdk/src/cmp/cpp/fragment/Entity.fragment.cpp +2 -0
- package/project/.sdk/src/cmp/cpp/fragment/EntityPatchOp.fragment.cpp +28 -0
- package/project/.sdk/src/cmp/cpp/utility_cpp.ts +13 -0
- package/project/.sdk/src/cmp/csharp/EntityTypes_csharp.ts +1 -1
- package/project/.sdk/src/cmp/csharp/Entity_csharp.ts +1 -1
- package/project/.sdk/src/cmp/csharp/Main_csharp.ts +3 -1
- package/project/.sdk/src/cmp/csharp/Package_csharp.ts +4 -1
- package/project/.sdk/src/cmp/csharp/PrepareAuth_csharp.ts +69 -23
- package/project/.sdk/src/cmp/csharp/ReadmeEntity_csharp.ts +10 -6
- package/project/.sdk/src/cmp/csharp/ReadmeHowto_csharp.ts +21 -9
- package/project/.sdk/src/cmp/csharp/ReadmeInstall_csharp.ts +3 -3
- package/project/.sdk/src/cmp/csharp/ReadmeIntro_csharp.ts +3 -3
- package/project/.sdk/src/cmp/csharp/ReadmeModel_csharp.ts +11 -9
- package/project/.sdk/src/cmp/csharp/ReadmeQuick_csharp.ts +29 -13
- package/project/.sdk/src/cmp/csharp/ReadmeRef_csharp.ts +41 -19
- package/project/.sdk/src/cmp/csharp/ReadmeTopQuick_csharp.ts +15 -8
- package/project/.sdk/src/cmp/csharp/ReadmeTopTest_csharp.ts +19 -11
- package/project/.sdk/src/cmp/csharp/TestClean_csharp.ts +67 -14
- package/project/.sdk/src/cmp/csharp/TestDirect_csharp.ts +43 -31
- package/project/.sdk/src/cmp/csharp/TestEntity_csharp.ts +187 -15
- package/project/.sdk/src/cmp/csharp/fragment/Entity.fragment.cs +2 -0
- package/project/.sdk/src/cmp/csharp/fragment/EntityBase.fragment.cs +11 -2
- package/project/.sdk/src/cmp/csharp/fragment/EntityPatchOp.fragment.cs +41 -0
- package/project/.sdk/src/cmp/csharp/fragment/Main.fragment.cs +28 -4
- package/project/.sdk/src/cmp/csharp/utility_csharp.ts +19 -0
- package/project/.sdk/src/cmp/elixir/EntityOperation_elixir.ts +5 -0
- package/project/.sdk/src/cmp/elixir/EntityTypes_elixir.ts +3 -3
- package/project/.sdk/src/cmp/elixir/Entity_elixir.ts +22 -1
- package/project/.sdk/src/cmp/elixir/MainEntity_elixir.ts +4 -2
- package/project/.sdk/src/cmp/elixir/Main_elixir.ts +6 -2
- package/project/.sdk/src/cmp/elixir/Package_elixir.ts +7 -0
- package/project/.sdk/src/cmp/elixir/PrepareAuth_elixir.ts +40 -30
- package/project/.sdk/src/cmp/elixir/ReadmeEntity_elixir.ts +17 -13
- package/project/.sdk/src/cmp/elixir/ReadmeExplanation_elixir.ts +2 -1
- package/project/.sdk/src/cmp/elixir/ReadmeHowto_elixir.ts +18 -10
- package/project/.sdk/src/cmp/elixir/ReadmeInstall_elixir.ts +2 -2
- package/project/.sdk/src/cmp/elixir/ReadmeIntro_elixir.ts +4 -4
- package/project/.sdk/src/cmp/elixir/ReadmeModel_elixir.ts +13 -11
- package/project/.sdk/src/cmp/elixir/ReadmeQuick_elixir.ts +36 -20
- package/project/.sdk/src/cmp/elixir/ReadmeRef_elixir.ts +37 -21
- package/project/.sdk/src/cmp/elixir/ReadmeTopQuick_elixir.ts +13 -10
- package/project/.sdk/src/cmp/elixir/ReadmeTopTest_elixir.ts +18 -13
- package/project/.sdk/src/cmp/elixir/TestClean_elixir.ts +41 -12
- package/project/.sdk/src/cmp/elixir/TestEntity_elixir.ts +152 -23
- package/project/.sdk/src/cmp/elixir/fragment/Entity.fragment.ex +4 -4
- package/project/.sdk/src/cmp/elixir/fragment/EntityCreateOp.fragment.ex +4 -3
- package/project/.sdk/src/cmp/elixir/fragment/EntityListOp.fragment.ex +4 -3
- package/project/.sdk/src/cmp/elixir/fragment/EntityLoadOp.fragment.ex +4 -3
- package/project/.sdk/src/cmp/elixir/fragment/EntityPatchOp.fragment.ex +36 -0
- package/project/.sdk/src/cmp/elixir/fragment/EntityRemoveOp.fragment.ex +4 -3
- package/project/.sdk/src/cmp/elixir/fragment/EntityUpdateOp.fragment.ex +4 -3
- package/project/.sdk/src/cmp/elixir/fragment/Main.fragment.ex +29 -5
- package/project/.sdk/src/cmp/elixir/fragment/Pipeline.fragment.ex +23 -16
- package/project/.sdk/src/cmp/elixir/utility_elixir.ts +12 -0
- package/project/.sdk/src/cmp/go/EntityTypes_go.ts +1 -1
- package/project/.sdk/src/cmp/go/Entity_go.ts +1 -1
- package/project/.sdk/src/cmp/go/Main_go.ts +5 -6
- package/project/.sdk/src/cmp/go/PrepareAuth_go.ts +40 -26
- package/project/.sdk/src/cmp/go/ReadmeEntity_go.ts +9 -5
- package/project/.sdk/src/cmp/go/ReadmeExamplesTest_go.ts +6 -1
- package/project/.sdk/src/cmp/go/ReadmeExplanation_go.ts +3 -1
- package/project/.sdk/src/cmp/go/ReadmeHowto_go.ts +21 -9
- package/project/.sdk/src/cmp/go/ReadmeInstall_go.ts +3 -3
- package/project/.sdk/src/cmp/go/ReadmeIntro_go.ts +3 -3
- package/project/.sdk/src/cmp/go/ReadmeModel_go.ts +18 -14
- package/project/.sdk/src/cmp/go/ReadmeQuick_go.ts +27 -12
- package/project/.sdk/src/cmp/go/ReadmeRef_go.ts +40 -17
- package/project/.sdk/src/cmp/go/ReadmeTopQuick_go.ts +10 -8
- package/project/.sdk/src/cmp/go/ReadmeTopTest_go.ts +7 -3
- package/project/.sdk/src/cmp/go/TestClean_go.ts +81 -18
- package/project/.sdk/src/cmp/go/TestDirect_go.ts +47 -53
- package/project/.sdk/src/cmp/go/TestEntity_go.ts +204 -24
- package/project/.sdk/src/cmp/go/fragment/Entity.fragment.go +79 -60
- package/project/.sdk/src/cmp/go/fragment/EntityPatchOp.fragment.go +49 -0
- package/project/.sdk/src/cmp/go/fragment/Main.fragment.go +26 -5
- package/project/.sdk/src/cmp/go/utility_go.ts +1 -1
- package/project/.sdk/src/cmp/go-cli/Main_go-cli.ts +8 -10
- package/project/.sdk/src/cmp/go-mcp/Main_go-mcp.ts +240 -121
- package/project/.sdk/src/cmp/go-mcp/fragment/main.fragment.go +1 -1
- package/project/.sdk/src/cmp/go-mcp/fragment/tools.fragment.go +34 -27
- package/project/.sdk/src/cmp/java/EntityTypes_java.ts +1 -1
- package/project/.sdk/src/cmp/java/Entity_java.ts +1 -1
- package/project/.sdk/src/cmp/java/Main_java.ts +3 -1
- package/project/.sdk/src/cmp/java/PrepareAuth_java.ts +58 -23
- package/project/.sdk/src/cmp/java/ReadmeEntity_java.ts +14 -22
- package/project/.sdk/src/cmp/java/ReadmeHowto_java.ts +20 -23
- package/project/.sdk/src/cmp/java/ReadmeInstall_java.ts +3 -3
- package/project/.sdk/src/cmp/java/ReadmeIntro_java.ts +3 -3
- package/project/.sdk/src/cmp/java/ReadmeModel_java.ts +11 -9
- package/project/.sdk/src/cmp/java/ReadmeQuick_java.ts +33 -28
- package/project/.sdk/src/cmp/java/ReadmeRef_java.ts +45 -36
- package/project/.sdk/src/cmp/java/ReadmeTopQuick_java.ts +22 -25
- package/project/.sdk/src/cmp/java/ReadmeTopTest_java.ts +19 -25
- package/project/.sdk/src/cmp/java/TestClean_java.ts +57 -12
- package/project/.sdk/src/cmp/java/TestDirect_java.ts +50 -36
- package/project/.sdk/src/cmp/java/TestEntity_java.ts +180 -13
- package/project/.sdk/src/cmp/java/fragment/Entity.fragment.java +2 -0
- package/project/.sdk/src/cmp/java/fragment/EntityBase.fragment.java +5 -3
- package/project/.sdk/src/cmp/java/fragment/EntityPatchOp.fragment.java +45 -0
- package/project/.sdk/src/cmp/java/utility_java.ts +25 -0
- package/project/.sdk/src/cmp/js/EntityOperation_js.ts +3 -1
- package/project/.sdk/src/cmp/js/EntityTypes_js.ts +1 -1
- package/project/.sdk/src/cmp/js/Entity_js.ts +1 -1
- package/project/.sdk/src/cmp/js/Main_js.ts +2 -0
- package/project/.sdk/src/cmp/js/Package_js.ts +11 -8
- package/project/.sdk/src/cmp/js/PrepareAuth_js.ts +39 -27
- package/project/.sdk/src/cmp/js/ReadmeEntity_js.ts +8 -11
- package/project/.sdk/src/cmp/js/ReadmeHowto_js.ts +11 -12
- package/project/.sdk/src/cmp/js/ReadmeInstall_js.ts +3 -3
- package/project/.sdk/src/cmp/js/ReadmeIntro_js.ts +3 -3
- package/project/.sdk/src/cmp/js/ReadmeModel_js.ts +12 -11
- package/project/.sdk/src/cmp/js/ReadmeQuick_js.ts +23 -12
- package/project/.sdk/src/cmp/js/ReadmeRef_js.ts +47 -19
- package/project/.sdk/src/cmp/js/ReadmeTopHowto_js.ts +2 -3
- package/project/.sdk/src/cmp/js/ReadmeTopQuick_js.ts +16 -11
- package/project/.sdk/src/cmp/js/ReadmeTopTest_js.ts +12 -8
- package/project/.sdk/src/cmp/js/TestClean_js.ts +52 -8
- package/project/.sdk/src/cmp/js/TestDirect_js.ts +81 -54
- package/project/.sdk/src/cmp/js/TestEntity_js.ts +95 -2
- package/project/.sdk/src/cmp/js/TestLive_js.ts +4 -3
- package/project/.sdk/src/cmp/js/fragment/Direct.test.fragment.js +4 -0
- package/project/.sdk/src/cmp/js/fragment/Entity.fragment.js +2 -0
- package/project/.sdk/src/cmp/js/fragment/Entity.test.fragment.js +2 -0
- package/project/.sdk/src/cmp/js/fragment/EntityBase.fragment.js +51 -25
- package/project/.sdk/src/cmp/js/fragment/EntityCreateOp.fragment.js +1 -1
- package/project/.sdk/src/cmp/js/fragment/EntityListOp.fragment.js +1 -1
- package/project/.sdk/src/cmp/js/fragment/EntityLoadOp.fragment.js +1 -1
- package/project/.sdk/src/cmp/js/fragment/EntityPatchOp.fragment.js +129 -0
- package/project/.sdk/src/cmp/js/fragment/EntityRemoveOp.fragment.js +1 -1
- package/project/.sdk/src/cmp/js/fragment/EntityUpdateOp.fragment.js +1 -1
- package/project/.sdk/src/cmp/js/fragment/Main.fragment.js +39 -15
- package/project/.sdk/src/cmp/js/utility_js.ts +2 -1
- package/project/.sdk/src/cmp/kotlin/Config_kotlin.ts +4 -0
- package/project/.sdk/src/cmp/kotlin/EntityTypes_kotlin.ts +1 -1
- package/project/.sdk/src/cmp/kotlin/Entity_kotlin.ts +1 -1
- package/project/.sdk/src/cmp/kotlin/Main_kotlin.ts +3 -1
- package/project/.sdk/src/cmp/kotlin/PrepareAuth_kotlin.ts +56 -31
- package/project/.sdk/src/cmp/kotlin/ReadmeEntity_kotlin.ts +10 -6
- package/project/.sdk/src/cmp/kotlin/ReadmeHowto_kotlin.ts +20 -10
- package/project/.sdk/src/cmp/kotlin/ReadmeInstall_kotlin.ts +3 -3
- package/project/.sdk/src/cmp/kotlin/ReadmeIntro_kotlin.ts +3 -3
- package/project/.sdk/src/cmp/kotlin/ReadmeModel_kotlin.ts +11 -9
- package/project/.sdk/src/cmp/kotlin/ReadmeQuick_kotlin.ts +24 -10
- package/project/.sdk/src/cmp/kotlin/ReadmeRef_kotlin.ts +38 -18
- package/project/.sdk/src/cmp/kotlin/ReadmeTopQuick_kotlin.ts +14 -8
- package/project/.sdk/src/cmp/kotlin/ReadmeTopTest_kotlin.ts +18 -11
- package/project/.sdk/src/cmp/kotlin/TestClean_kotlin.ts +45 -10
- package/project/.sdk/src/cmp/kotlin/TestDirect_kotlin.ts +49 -26
- package/project/.sdk/src/cmp/kotlin/TestEntity_kotlin.ts +168 -10
- package/project/.sdk/src/cmp/kotlin/fragment/Entity.fragment.kt +2 -0
- package/project/.sdk/src/cmp/kotlin/fragment/EntityBase.fragment.kt +2 -1
- package/project/.sdk/src/cmp/kotlin/fragment/EntityPatchOp.fragment.kt +40 -0
- package/project/.sdk/src/cmp/kotlin/utility_kotlin.ts +21 -1
- package/project/.sdk/src/cmp/lua/EntityTypes_lua.ts +1 -1
- package/project/.sdk/src/cmp/lua/Entity_lua.ts +1 -1
- package/project/.sdk/src/cmp/lua/Main_lua.ts +2 -1
- package/project/.sdk/src/cmp/lua/PrepareAuth_lua.ts +42 -23
- package/project/.sdk/src/cmp/lua/ReadmeEntity_lua.ts +9 -5
- package/project/.sdk/src/cmp/lua/ReadmeExamplesTest_lua.ts +15 -6
- package/project/.sdk/src/cmp/lua/ReadmeHowto_lua.ts +10 -8
- package/project/.sdk/src/cmp/lua/ReadmeInstall_lua.ts +2 -2
- package/project/.sdk/src/cmp/lua/ReadmeIntro_lua.ts +3 -3
- package/project/.sdk/src/cmp/lua/ReadmeModel_lua.ts +15 -14
- package/project/.sdk/src/cmp/lua/ReadmeQuick_lua.ts +29 -10
- package/project/.sdk/src/cmp/lua/ReadmeRef_lua.ts +29 -12
- package/project/.sdk/src/cmp/lua/ReadmeTopQuick_lua.ts +15 -7
- package/project/.sdk/src/cmp/lua/ReadmeTopTest_lua.ts +7 -6
- package/project/.sdk/src/cmp/lua/TestClean_lua.ts +46 -12
- package/project/.sdk/src/cmp/lua/TestDirect_lua.ts +100 -124
- package/project/.sdk/src/cmp/lua/TestEntity_lua.ts +173 -20
- package/project/.sdk/src/cmp/lua/fragment/Entity.fragment.lua +86 -48
- package/project/.sdk/src/cmp/lua/fragment/EntityCreateOp.fragment.lua +1 -1
- package/project/.sdk/src/cmp/lua/fragment/EntityListOp.fragment.lua +1 -1
- package/project/.sdk/src/cmp/lua/fragment/EntityLoadOp.fragment.lua +1 -1
- package/project/.sdk/src/cmp/lua/fragment/EntityPatchOp.fragment.lua +34 -0
- package/project/.sdk/src/cmp/lua/fragment/EntityRemoveOp.fragment.lua +1 -1
- package/project/.sdk/src/cmp/lua/fragment/EntityUpdateOp.fragment.lua +1 -1
- package/project/.sdk/src/cmp/lua/fragment/Main.fragment.lua +28 -6
- package/project/.sdk/src/cmp/ocaml/EntityOperation_ocaml.ts +8 -11
- package/project/.sdk/src/cmp/ocaml/Entity_ocaml.ts +8 -3
- package/project/.sdk/src/cmp/ocaml/Main_ocaml.ts +2 -1
- package/project/.sdk/src/cmp/ocaml/Package_ocaml.ts +7 -5
- package/project/.sdk/src/cmp/ocaml/PrepareAuth_ocaml.ts +39 -34
- package/project/.sdk/src/cmp/ocaml/ReadmeEntity_ocaml.ts +10 -6
- package/project/.sdk/src/cmp/ocaml/ReadmeHowto_ocaml.ts +5 -9
- package/project/.sdk/src/cmp/ocaml/ReadmeInstall_ocaml.ts +2 -2
- package/project/.sdk/src/cmp/ocaml/ReadmeIntro_ocaml.ts +3 -3
- package/project/.sdk/src/cmp/ocaml/ReadmeModel_ocaml.ts +3 -1
- package/project/.sdk/src/cmp/ocaml/ReadmeQuick_ocaml.ts +14 -4
- package/project/.sdk/src/cmp/ocaml/ReadmeRef_ocaml.ts +31 -13
- package/project/.sdk/src/cmp/ocaml/ReadmeTopQuick_ocaml.ts +4 -2
- package/project/.sdk/src/cmp/ocaml/ReadmeTopTest_ocaml.ts +5 -8
- package/project/.sdk/src/cmp/ocaml/TestClean_ocaml.ts +47 -14
- package/project/.sdk/src/cmp/ocaml/TestEntity_ocaml.ts +88 -3
- package/project/.sdk/src/cmp/ocaml/fragment/RunOp.fragment.ml +10 -11
- package/project/.sdk/src/cmp/ocaml/utility_ocaml.ts +20 -1
- package/project/.sdk/src/cmp/perl/Entity_perl.ts +1 -1
- package/project/.sdk/src/cmp/perl/Main_perl.ts +3 -1
- package/project/.sdk/src/cmp/perl/Package_perl.ts +5 -4
- package/project/.sdk/src/cmp/perl/PrepareAuth_perl.ts +48 -33
- package/project/.sdk/src/cmp/perl/ReadmeEntity_perl.ts +13 -5
- package/project/.sdk/src/cmp/perl/ReadmeExamplesTest_perl.ts +2 -2
- package/project/.sdk/src/cmp/perl/ReadmeHowto_perl.ts +11 -6
- package/project/.sdk/src/cmp/perl/ReadmeInstall_perl.ts +9 -3
- package/project/.sdk/src/cmp/perl/ReadmeIntro_perl.ts +3 -3
- package/project/.sdk/src/cmp/perl/ReadmeModel_perl.ts +11 -9
- package/project/.sdk/src/cmp/perl/ReadmeQuick_perl.ts +20 -9
- package/project/.sdk/src/cmp/perl/ReadmeRef_perl.ts +43 -23
- package/project/.sdk/src/cmp/perl/ReadmeTopQuick_perl.ts +8 -5
- package/project/.sdk/src/cmp/perl/ReadmeTopTest_perl.ts +12 -9
- package/project/.sdk/src/cmp/perl/TestClean_perl.ts +42 -11
- package/project/.sdk/src/cmp/perl/TestDirect_perl.ts +121 -149
- package/project/.sdk/src/cmp/perl/TestEntity_perl.ts +178 -17
- package/project/.sdk/src/cmp/perl/fragment/Entity.fragment.pm +17 -3
- package/project/.sdk/src/cmp/perl/fragment/EntityCreateOp.fragment.pm +2 -2
- package/project/.sdk/src/cmp/perl/fragment/EntityListOp.fragment.pm +2 -13
- package/project/.sdk/src/cmp/perl/fragment/EntityLoadOp.fragment.pm +2 -2
- package/project/.sdk/src/cmp/perl/fragment/EntityPatchOp.fragment.pm +32 -0
- package/project/.sdk/src/cmp/perl/fragment/EntityRemoveOp.fragment.pm +1 -1
- package/project/.sdk/src/cmp/perl/fragment/EntityUpdateOp.fragment.pm +2 -2
- package/project/.sdk/src/cmp/perl/fragment/Main.fragment.pm +23 -5
- package/project/.sdk/src/cmp/perl/utility_perl.ts +26 -0
- package/project/.sdk/src/cmp/php/EntityOperation_php.ts +3 -1
- package/project/.sdk/src/cmp/php/EntityTypes_php.ts +3 -3
- package/project/.sdk/src/cmp/php/Entity_php.ts +4 -3
- package/project/.sdk/src/cmp/php/MainEntity_php.ts +1 -1
- package/project/.sdk/src/cmp/php/Main_php.ts +3 -1
- package/project/.sdk/src/cmp/php/Package_php.ts +1 -1
- package/project/.sdk/src/cmp/php/PrepareAuth_php.ts +36 -28
- package/project/.sdk/src/cmp/php/ReadmeEntity_php.ts +10 -6
- package/project/.sdk/src/cmp/php/ReadmeExamplesTest_php.ts +3 -3
- package/project/.sdk/src/cmp/php/ReadmeHowto_php.ts +13 -7
- package/project/.sdk/src/cmp/php/ReadmeInstall_php.ts +2 -2
- package/project/.sdk/src/cmp/php/ReadmeIntro_php.ts +3 -3
- package/project/.sdk/src/cmp/php/ReadmeModel_php.ts +10 -9
- package/project/.sdk/src/cmp/php/ReadmeQuick_php.ts +12 -3
- package/project/.sdk/src/cmp/php/ReadmeRef_php.ts +35 -17
- package/project/.sdk/src/cmp/php/ReadmeTopQuick_php.ts +5 -4
- package/project/.sdk/src/cmp/php/ReadmeTopTest_php.ts +14 -8
- package/project/.sdk/src/cmp/php/TestClean_php.ts +73 -12
- package/project/.sdk/src/cmp/php/TestDirect_php.ts +95 -127
- package/project/.sdk/src/cmp/php/TestEntity_php.ts +219 -20
- package/project/.sdk/src/cmp/php/fragment/Entity.fragment.php +82 -45
- package/project/.sdk/src/cmp/php/fragment/EntityCreateOp.fragment.php +2 -2
- package/project/.sdk/src/cmp/php/fragment/EntityListOp.fragment.php +2 -2
- package/project/.sdk/src/cmp/php/fragment/EntityLoadOp.fragment.php +2 -2
- package/project/.sdk/src/cmp/php/fragment/EntityPatchOp.fragment.php +38 -0
- package/project/.sdk/src/cmp/php/fragment/EntityRemoveOp.fragment.php +2 -2
- package/project/.sdk/src/cmp/php/fragment/EntityUpdateOp.fragment.php +2 -2
- package/project/.sdk/src/cmp/php/fragment/Main.fragment.php +26 -5
- package/project/.sdk/src/cmp/py/EntityOperation_py.ts +3 -1
- package/project/.sdk/src/cmp/py/EntityTypes_py.ts +1 -1
- package/project/.sdk/src/cmp/py/Entity_py.ts +2 -2
- package/project/.sdk/src/cmp/py/Main_py.ts +6 -2
- package/project/.sdk/src/cmp/py/Package_py.ts +7 -0
- package/project/.sdk/src/cmp/py/PrepareAuth_py.ts +52 -26
- package/project/.sdk/src/cmp/py/ReadmeEntity_py.ts +9 -11
- package/project/.sdk/src/cmp/py/ReadmeExamplesTest_py.ts +12 -6
- package/project/.sdk/src/cmp/py/ReadmeHowto_py.ts +10 -10
- package/project/.sdk/src/cmp/py/ReadmeInstall_py.ts +3 -3
- package/project/.sdk/src/cmp/py/ReadmeIntro_py.ts +3 -3
- package/project/.sdk/src/cmp/py/ReadmeModel_py.ts +10 -9
- package/project/.sdk/src/cmp/py/ReadmeQuick_py.ts +18 -15
- package/project/.sdk/src/cmp/py/ReadmeRef_py.ts +42 -32
- package/project/.sdk/src/cmp/py/ReadmeTopQuick_py.ts +7 -12
- package/project/.sdk/src/cmp/py/ReadmeTopTest_py.ts +9 -8
- package/project/.sdk/src/cmp/py/TestClean_py.ts +41 -10
- package/project/.sdk/src/cmp/py/TestDirect_py.ts +91 -121
- package/project/.sdk/src/cmp/py/TestEntity_py.ts +146 -20
- package/project/.sdk/src/cmp/py/fragment/Entity.fragment.py +62 -42
- package/project/.sdk/src/cmp/py/fragment/EntityCreateOp.fragment.py +1 -1
- package/project/.sdk/src/cmp/py/fragment/EntityListOp.fragment.py +1 -1
- package/project/.sdk/src/cmp/py/fragment/EntityLoadOp.fragment.py +1 -1
- package/project/.sdk/src/cmp/py/fragment/EntityPatchOp.fragment.py +27 -0
- package/project/.sdk/src/cmp/py/fragment/EntityRemoveOp.fragment.py +1 -1
- package/project/.sdk/src/cmp/py/fragment/EntityUpdateOp.fragment.py +1 -1
- package/project/.sdk/src/cmp/py/fragment/Main.fragment.py +23 -5
- package/project/.sdk/src/cmp/py-data/Main_py-data.ts +1 -1
- package/project/.sdk/src/cmp/rb/EntityOperation_rb.ts +3 -1
- package/project/.sdk/src/cmp/rb/EntityTypes_rb.ts +5 -4
- package/project/.sdk/src/cmp/rb/Entity_rb.ts +1 -1
- package/project/.sdk/src/cmp/rb/Main_rb.ts +5 -6
- package/project/.sdk/src/cmp/rb/Package_rb.ts +3 -1
- package/project/.sdk/src/cmp/rb/PrepareAuth_rb.ts +30 -28
- package/project/.sdk/src/cmp/rb/ReadmeEntity_rb.ts +13 -6
- package/project/.sdk/src/cmp/rb/ReadmeExamplesTest_rb.ts +19 -10
- package/project/.sdk/src/cmp/rb/ReadmeHowto_rb.ts +21 -11
- package/project/.sdk/src/cmp/rb/ReadmeInstall_rb.ts +2 -2
- package/project/.sdk/src/cmp/rb/ReadmeIntro_rb.ts +3 -3
- package/project/.sdk/src/cmp/rb/ReadmeModel_rb.ts +11 -9
- package/project/.sdk/src/cmp/rb/ReadmeQuick_rb.ts +20 -8
- package/project/.sdk/src/cmp/rb/ReadmeRef_rb.ts +38 -17
- package/project/.sdk/src/cmp/rb/ReadmeTopQuick_rb.ts +8 -5
- package/project/.sdk/src/cmp/rb/ReadmeTopTest_rb.ts +15 -11
- package/project/.sdk/src/cmp/rb/TestClean_rb.ts +36 -10
- package/project/.sdk/src/cmp/rb/TestDirect_rb.ts +95 -126
- package/project/.sdk/src/cmp/rb/TestEntity_rb.ts +177 -21
- package/project/.sdk/src/cmp/rb/fragment/Entity.fragment.rb +49 -29
- package/project/.sdk/src/cmp/rb/fragment/EntityCreateOp.fragment.rb +2 -1
- package/project/.sdk/src/cmp/rb/fragment/EntityListOp.fragment.rb +2 -11
- package/project/.sdk/src/cmp/rb/fragment/EntityLoadOp.fragment.rb +2 -1
- package/project/.sdk/src/cmp/rb/fragment/EntityPatchOp.fragment.rb +32 -0
- package/project/.sdk/src/cmp/rb/fragment/EntityRemoveOp.fragment.rb +2 -1
- package/project/.sdk/src/cmp/rb/fragment/EntityUpdateOp.fragment.rb +2 -1
- package/project/.sdk/src/cmp/rb/fragment/Main.fragment.rb +19 -5
- package/project/.sdk/src/cmp/rb/utility_rb.ts +10 -0
- package/project/.sdk/src/cmp/rust/EntityTypes_rust.ts +1 -1
- package/project/.sdk/src/cmp/rust/Entity_rust.ts +2 -2
- package/project/.sdk/src/cmp/rust/Main_rust.ts +7 -6
- package/project/.sdk/src/cmp/rust/PrepareAuth_rust.ts +56 -29
- package/project/.sdk/src/cmp/rust/ReadmeEntity_rust.ts +19 -11
- package/project/.sdk/src/cmp/rust/ReadmeHowto_rust.ts +17 -6
- package/project/.sdk/src/cmp/rust/ReadmeInstall_rust.ts +3 -3
- package/project/.sdk/src/cmp/rust/ReadmeIntro_rust.ts +3 -3
- package/project/.sdk/src/cmp/rust/ReadmeModel_rust.ts +12 -9
- package/project/.sdk/src/cmp/rust/ReadmeQuick_rust.ts +28 -19
- package/project/.sdk/src/cmp/rust/ReadmeRef_rust.ts +38 -23
- package/project/.sdk/src/cmp/rust/ReadmeTopQuick_rust.ts +9 -10
- package/project/.sdk/src/cmp/rust/ReadmeTopTest_rust.ts +20 -11
- package/project/.sdk/src/cmp/rust/TestClean_rust.ts +80 -21
- package/project/.sdk/src/cmp/rust/TestDirect_rust.ts +124 -79
- package/project/.sdk/src/cmp/rust/TestEntity_rust.ts +164 -17
- package/project/.sdk/src/cmp/rust/fragment/Entity.fragment.rs +44 -23
- package/project/.sdk/src/cmp/rust/fragment/EntityPatchOp.fragment.rs +41 -0
- package/project/.sdk/src/cmp/rust/fragment/Main.fragment.rs +39 -9
- package/project/.sdk/src/cmp/rust/utility_rust.ts +13 -1
- package/project/.sdk/src/cmp/scala/Config_scala.ts +4 -0
- package/project/.sdk/src/cmp/scala/EntityTypes_scala.ts +6 -3
- package/project/.sdk/src/cmp/scala/Entity_scala.ts +1 -1
- package/project/.sdk/src/cmp/scala/Main_scala.ts +4 -20
- package/project/.sdk/src/cmp/scala/PrepareAuth_scala.ts +56 -24
- package/project/.sdk/src/cmp/scala/ReadmeEntity_scala.ts +14 -22
- package/project/.sdk/src/cmp/scala/ReadmeHowto_scala.ts +18 -23
- package/project/.sdk/src/cmp/scala/ReadmeInstall_scala.ts +3 -3
- package/project/.sdk/src/cmp/scala/ReadmeIntro_scala.ts +3 -3
- package/project/.sdk/src/cmp/scala/ReadmeModel_scala.ts +11 -9
- package/project/.sdk/src/cmp/scala/ReadmeQuick_scala.ts +27 -28
- package/project/.sdk/src/cmp/scala/ReadmeRef_scala.ts +43 -36
- package/project/.sdk/src/cmp/scala/ReadmeTopQuick_scala.ts +14 -25
- package/project/.sdk/src/cmp/scala/ReadmeTopTest_scala.ts +17 -25
- package/project/.sdk/src/cmp/scala/TestClean_scala.ts +39 -10
- package/project/.sdk/src/cmp/scala/TestEntity_scala.ts +113 -3
- package/project/.sdk/src/cmp/scala/fragment/Entity.fragment.scala +2 -0
- package/project/.sdk/src/cmp/scala/fragment/EntityBase.fragment.scala +4 -2
- package/project/.sdk/src/cmp/scala/fragment/EntityPatchOp.fragment.scala +33 -0
- package/project/.sdk/src/cmp/scala/utility_scala.ts +25 -0
- package/project/.sdk/src/cmp/swift/EntityTypes_swift.ts +4 -4
- package/project/.sdk/src/cmp/swift/Entity_swift.ts +1 -1
- package/project/.sdk/src/cmp/swift/Main_swift.ts +6 -2
- package/project/.sdk/src/cmp/swift/PrepareAuth_swift.ts +56 -29
- package/project/.sdk/src/cmp/swift/ReadmeEntity_swift.ts +10 -6
- package/project/.sdk/src/cmp/swift/ReadmeHowto_swift.ts +23 -9
- package/project/.sdk/src/cmp/swift/ReadmeInstall_swift.ts +3 -3
- package/project/.sdk/src/cmp/swift/ReadmeIntro_swift.ts +3 -3
- package/project/.sdk/src/cmp/swift/ReadmeModel_swift.ts +11 -9
- package/project/.sdk/src/cmp/swift/ReadmeQuick_swift.ts +26 -9
- package/project/.sdk/src/cmp/swift/ReadmeRef_swift.ts +39 -18
- package/project/.sdk/src/cmp/swift/ReadmeTopQuick_swift.ts +12 -7
- package/project/.sdk/src/cmp/swift/ReadmeTopTest_swift.ts +22 -11
- package/project/.sdk/src/cmp/swift/TestClean_swift.ts +44 -10
- package/project/.sdk/src/cmp/swift/TestEntity_swift.ts +90 -2
- package/project/.sdk/src/cmp/swift/fragment/Entity.fragment.swift +2 -0
- package/project/.sdk/src/cmp/swift/fragment/EntityBase.fragment.swift +9 -1
- package/project/.sdk/src/cmp/swift/fragment/EntityPatchOp.fragment.swift +24 -0
- package/project/.sdk/src/cmp/swift/fragment/Main.fragment.swift +23 -3
- package/project/.sdk/src/cmp/swift/utility_swift.ts +14 -1
- package/project/.sdk/src/cmp/ts/EntityTypes_ts.ts +9 -3
- package/project/.sdk/src/cmp/ts/Entity_ts.ts +5 -5
- package/project/.sdk/src/cmp/ts/Main_ts.ts +4 -3
- package/project/.sdk/src/cmp/ts/Package_ts.ts +18 -10
- package/project/.sdk/src/cmp/ts/PrepareAuth_ts.ts +37 -28
- package/project/.sdk/src/cmp/ts/ReadmeEntity_ts.ts +8 -11
- package/project/.sdk/src/cmp/ts/ReadmeExamplesTest_ts.ts +39 -21
- package/project/.sdk/src/cmp/ts/ReadmeHowto_ts.ts +11 -12
- package/project/.sdk/src/cmp/ts/ReadmeInstall_ts.ts +3 -3
- package/project/.sdk/src/cmp/ts/ReadmeIntro_ts.ts +3 -3
- package/project/.sdk/src/cmp/ts/ReadmeModel_ts.ts +12 -11
- package/project/.sdk/src/cmp/ts/ReadmeQuick_ts.ts +17 -14
- package/project/.sdk/src/cmp/ts/ReadmeRef_ts.ts +47 -27
- package/project/.sdk/src/cmp/ts/ReadmeTopHowto_ts.ts +2 -3
- package/project/.sdk/src/cmp/ts/ReadmeTopQuick_ts.ts +8 -14
- package/project/.sdk/src/cmp/ts/ReadmeTopTest_ts.ts +30 -15
- package/project/.sdk/src/cmp/ts/TestClean_ts.ts +52 -8
- package/project/.sdk/src/cmp/ts/TestDirect_ts.ts +50 -109
- package/project/.sdk/src/cmp/ts/TestEntity_ts.ts +92 -2
- package/project/.sdk/src/cmp/ts/TestLive_ts.ts +4 -3
- package/project/.sdk/src/cmp/ts/fragment/Direct.test.fragment.ts +3 -0
- package/project/.sdk/src/cmp/ts/fragment/Entity.fragment.ts +2 -0
- package/project/.sdk/src/cmp/ts/fragment/Entity.test.fragment.ts +3 -1
- package/project/.sdk/src/cmp/ts/fragment/EntityBase.fragment.ts +49 -24
- package/project/.sdk/src/cmp/ts/fragment/EntityCreateOp.fragment.ts +1 -1
- package/project/.sdk/src/cmp/ts/fragment/EntityListOp.fragment.ts +1 -1
- package/project/.sdk/src/cmp/ts/fragment/EntityLoadOp.fragment.ts +1 -1
- package/project/.sdk/src/cmp/ts/fragment/EntityPatchOp.fragment.ts +126 -0
- package/project/.sdk/src/cmp/ts/fragment/EntityUpdateOp.fragment.ts +1 -1
- package/project/.sdk/src/cmp/ts/fragment/Main.fragment.ts +50 -18
- package/project/.sdk/src/cmp/ts/utility_ts.ts +2 -1
- package/project/.sdk/src/cmp/zig/Entity_zig.ts +2 -2
- package/project/.sdk/src/cmp/zig/Main_zig.ts +5 -22
- package/project/.sdk/src/cmp/zig/Package_zig.ts +11 -2
- package/project/.sdk/src/cmp/zig/PrepareAuth_zig.ts +57 -31
- package/project/.sdk/src/cmp/zig/ReadmeEntity_zig.ts +20 -11
- package/project/.sdk/src/cmp/zig/ReadmeHowto_zig.ts +20 -6
- package/project/.sdk/src/cmp/zig/ReadmeInstall_zig.ts +2 -2
- package/project/.sdk/src/cmp/zig/ReadmeIntro_zig.ts +3 -3
- package/project/.sdk/src/cmp/zig/ReadmeModel_zig.ts +12 -10
- package/project/.sdk/src/cmp/zig/ReadmeQuick_zig.ts +32 -14
- package/project/.sdk/src/cmp/zig/ReadmeRef_zig.ts +48 -24
- package/project/.sdk/src/cmp/zig/ReadmeTopQuick_zig.ts +11 -6
- package/project/.sdk/src/cmp/zig/ReadmeTopTest_zig.ts +17 -9
- package/project/.sdk/src/cmp/zig/TestClean_zig.ts +67 -28
- package/project/.sdk/src/cmp/zig/TestEntity_zig.ts +54 -5
- package/project/.sdk/src/cmp/zig/Test_zig.ts +1 -0
- package/project/.sdk/src/cmp/zig/fragment/Entity.fragment.zig +44 -34
- package/project/.sdk/src/cmp/zig/fragment/EntityPatchOp.fragment.zig +26 -0
- package/project/.sdk/src/cmp/zig/fragment/Main.fragment.zig +30 -6
- package/project/.sdk/src/cmp/zig/fragment/Root.fragment.zig +1 -0
- package/project/.sdk/src/cmp/zig/utility_zig.ts +13 -0
- package/project/.sdk/tm/c/LICENSE +1 -1
- package/project/.sdk/tm/c/core/context.c +2 -1
- package/project/.sdk/tm/c/core/helpers.c +21 -0
- package/project/.sdk/tm/c/core/response.c +103 -0
- package/project/.sdk/tm/c/core/sdk.h +26 -0
- package/project/.sdk/tm/c/core/spec.c +10 -0
- package/project/.sdk/tm/c/feature/test.c +46 -2
- package/project/.sdk/tm/c/feature/validate.c +2 -0
- package/project/.sdk/tm/c/tests/feature_harness.h +1 -1
- package/project/.sdk/tm/c/tests/primary_utility_test.c +9 -5
- package/project/.sdk/tm/c/tests/server_variable_test.c +80 -0
- package/project/.sdk/tm/c/utility/make_fetch_def.c +5 -1
- package/project/.sdk/tm/c/utility/make_options.c +84 -6
- package/project/.sdk/tm/c/utility/make_point.c +100 -8
- package/project/.sdk/tm/c/utility/make_spec.c +17 -1
- package/project/.sdk/tm/c/utility/make_url.c +38 -1
- package/project/.sdk/tm/c/utility/media.c +107 -0
- package/project/.sdk/tm/c/utility/param.c +52 -28
- package/project/.sdk/tm/c/utility/prepare_body.c +1 -0
- package/project/.sdk/tm/c/utility/prepare_headers.c +199 -29
- package/project/.sdk/tm/c/utility/prepare_query.c +24 -2
- package/project/.sdk/tm/c/utility/result_body.c +4 -0
- package/project/.sdk/tm/c/utility/transform_request.c +54 -17
- package/project/.sdk/tm/clojure/LICENSE +1 -1
- package/project/.sdk/tm/clojure/feature/secrets/sdk/feature/secrets.clj +0 -3
- package/project/.sdk/tm/clojure/src/sdk/client.clj +19 -5
- package/project/.sdk/tm/clojure/src/sdk/core.clj +446 -142
- package/project/.sdk/tm/clojure/src/sdk/features.clj +44 -20
- package/project/.sdk/tm/clojure/test/sdk/test/concurrency.clj +136 -0
- package/project/.sdk/tm/clojure/test/sdk/test/feature.clj +21 -1
- package/project/.sdk/tm/clojure/test/sdk/test_runner.clj +13 -3
- package/project/.sdk/tm/cpp/LICENSE +1 -1
- package/project/.sdk/tm/cpp/core/types.hpp +167 -13
- package/project/.sdk/tm/cpp/feature/test.hpp +32 -2
- package/project/.sdk/tm/cpp/feature/timeout.hpp +29 -9
- package/project/.sdk/tm/cpp/feature/validate.hpp +2 -0
- package/project/.sdk/tm/cpp/test/concurrency_test.cpp +348 -0
- package/project/.sdk/tm/cpp/test/feature_test.cpp +37 -0
- package/project/.sdk/tm/cpp/test/harness.hpp +1 -1
- package/project/.sdk/tm/cpp/test/primary_utility_test.cpp +6 -2
- package/project/.sdk/tm/cpp/test/server_variable_test.cpp +57 -0
- package/project/.sdk/tm/cpp/utility/cookie.hpp +36 -0
- package/project/.sdk/tm/cpp/utility/pipeline.hpp +482 -106
- package/project/.sdk/tm/csharp/LICENSE +1 -1
- package/project/.sdk/tm/csharp/core/Context.cs +9 -6
- package/project/.sdk/tm/csharp/core/Helpers.cs +17 -0
- package/project/.sdk/tm/csharp/core/Response.cs +75 -0
- package/project/.sdk/tm/csharp/core/Spec.cs +3 -0
- package/project/.sdk/tm/csharp/feature/TestFeature.cs +41 -3
- package/project/.sdk/tm/csharp/feature/TimeoutFeature.cs +31 -3
- package/project/.sdk/tm/csharp/feature/ValidateFeature.cs +2 -0
- package/project/.sdk/tm/csharp/test/ConcurrencyTest.cs +238 -0
- package/project/.sdk/tm/csharp/test/FeatureHarness.cs +1 -1
- package/project/.sdk/tm/csharp/test/FeatureTest.cs +35 -0
- package/project/.sdk/tm/csharp/test/PipelineTest.cs +28 -0
- package/project/.sdk/tm/csharp/test/Runner.cs +119 -0
- package/project/.sdk/tm/csharp/test/feature/secrets/SecretsFeatureTest.cs +8 -3
- package/project/.sdk/tm/csharp/utility/Clean.cs +12 -10
- package/project/.sdk/tm/csharp/utility/Fetcher.cs +25 -7
- package/project/.sdk/tm/csharp/utility/MakeFetchDef.cs +1 -5
- package/project/.sdk/tm/csharp/utility/MakeOptions.cs +8 -6
- package/project/.sdk/tm/csharp/utility/MakePoint.cs +68 -17
- package/project/.sdk/tm/csharp/utility/MakeSpec.cs +24 -6
- package/project/.sdk/tm/csharp/utility/MakeUrl.cs +21 -1
- package/project/.sdk/tm/csharp/utility/Media.cs +124 -0
- package/project/.sdk/tm/csharp/utility/Param.cs +57 -20
- package/project/.sdk/tm/csharp/utility/PrepareBody.cs +4 -0
- package/project/.sdk/tm/csharp/utility/PrepareHeaders.cs +103 -24
- package/project/.sdk/tm/csharp/utility/PrepareQuery.cs +33 -3
- package/project/.sdk/tm/csharp/utility/ResultBody.cs +5 -0
- package/project/.sdk/tm/csharp/utility/TransformRequest.cs +21 -13
- package/project/.sdk/tm/csharp/utility/struct/Struct.cs +3 -2
- package/project/.sdk/tm/elixir/LICENSE +1 -1
- package/project/.sdk/tm/elixir/lib/projectname/context.ex +4 -1
- package/project/.sdk/tm/elixir/lib/projectname/core.ex +7 -2
- package/project/.sdk/tm/elixir/lib/projectname/entity_base.ex +45 -13
- package/project/.sdk/tm/elixir/lib/projectname/feature/test.ex +47 -21
- package/project/.sdk/tm/elixir/lib/projectname/feature/validate.ex +2 -0
- package/project/.sdk/tm/elixir/lib/projectname/utility.ex +512 -138
- package/project/.sdk/tm/elixir/test/concurrency_test.exs +176 -0
- package/project/.sdk/tm/elixir/test/support/feature_harness.ex +1 -0
- package/project/.sdk/tm/go/LICENSE +1 -1
- package/project/.sdk/tm/go/core/context.go +6 -2
- package/project/.sdk/tm/go/core/helpers.go +19 -1
- package/project/.sdk/tm/go/core/response.go +72 -0
- package/project/.sdk/tm/go/core/spec.go +3 -0
- package/project/.sdk/tm/go/core/types.go +9 -1
- package/project/.sdk/tm/go/feature/test_feature.go +44 -3
- package/project/.sdk/tm/go/feature/timeout_feature.go +39 -22
- package/project/.sdk/tm/go/feature/validate_feature.go +2 -0
- package/project/.sdk/tm/go/test/concurrency_test.go +214 -0
- package/project/.sdk/tm/go/test/feature_corpus_test.go +45 -1
- package/project/.sdk/tm/go/test/feature_harness_test.go +1 -1
- package/project/.sdk/tm/go/test/feature_test.go +86 -0
- package/project/.sdk/tm/go/test/primary_utility_test.go +37 -1
- package/project/.sdk/tm/go/test/testsupport_test.go +106 -0
- package/project/.sdk/tm/go/utility/fetcher.go +20 -6
- package/project/.sdk/tm/go/utility/make_fetch_def.go +1 -7
- package/project/.sdk/tm/go/utility/make_options.go +12 -6
- package/project/.sdk/tm/go/utility/make_point.go +52 -3
- package/project/.sdk/tm/go/utility/make_spec.go +23 -3
- package/project/.sdk/tm/go/utility/make_url.go +23 -1
- package/project/.sdk/tm/go/utility/media.go +111 -0
- package/project/.sdk/tm/go/utility/param.go +61 -20
- package/project/.sdk/tm/go/utility/prepare_body.go +3 -0
- package/project/.sdk/tm/go/utility/prepare_headers.go +108 -22
- package/project/.sdk/tm/go/utility/prepare_query.go +25 -2
- package/project/.sdk/tm/go/utility/result_body.go +8 -0
- package/project/.sdk/tm/go/utility/transform_request.go +20 -9
- package/project/.sdk/tm/java/LICENSE +1 -1
- package/project/.sdk/tm/java/core/Context.java +7 -4
- package/project/.sdk/tm/java/core/Helpers.java +13 -0
- package/project/.sdk/tm/java/core/Response.java +61 -0
- package/project/.sdk/tm/java/core/SdkClient.java +21 -3
- package/project/.sdk/tm/java/core/SdkEntity.java +2 -0
- package/project/.sdk/tm/java/core/Spec.java +4 -0
- package/project/.sdk/tm/java/feature/TestFeature.java +46 -3
- package/project/.sdk/tm/java/feature/TimeoutFeature.java +51 -18
- package/project/.sdk/tm/java/feature/ValidateFeature.java +2 -0
- package/project/.sdk/tm/java/test/ConcurrencyTest.java +221 -0
- package/project/.sdk/tm/java/test/FeatureCorpusTest.java +93 -35
- package/project/.sdk/tm/java/test/FeatureHarness.java +1 -0
- package/project/.sdk/tm/java/test/FeatureTest.java +33 -0
- package/project/.sdk/tm/java/test/PipelineTest.java +4 -1
- package/project/.sdk/tm/java/test/RunnerSupport.java +97 -0
- package/project/.sdk/tm/java/utility/Clean.java +39 -24
- package/project/.sdk/tm/java/utility/Fetcher.java +27 -3
- package/project/.sdk/tm/java/utility/MakeFetchDef.java +1 -7
- package/project/.sdk/tm/java/utility/MakePoint.java +62 -10
- package/project/.sdk/tm/java/utility/MakeSpec.java +26 -1
- package/project/.sdk/tm/java/utility/MakeUrl.java +23 -1
- package/project/.sdk/tm/java/utility/Media.java +117 -0
- package/project/.sdk/tm/java/utility/Param.java +59 -20
- package/project/.sdk/tm/java/utility/PrepareBody.java +3 -0
- package/project/.sdk/tm/java/utility/PrepareHeaders.java +76 -18
- package/project/.sdk/tm/java/utility/PrepareMethod.java +2 -1
- package/project/.sdk/tm/java/utility/PrepareQuery.java +26 -2
- package/project/.sdk/tm/java/utility/ResultBody.java +5 -0
- package/project/.sdk/tm/java/utility/TransformRequest.java +24 -11
- package/project/.sdk/tm/js/LICENSE +1 -1
- package/project/.sdk/tm/js/src/Context.js +1 -1
- package/project/.sdk/tm/js/src/Control.js +1 -0
- package/project/.sdk/tm/js/src/Response.js +10 -1
- package/project/.sdk/tm/js/src/Spec.js +3 -0
- package/project/.sdk/tm/js/src/feature/base/BaseFeature.js +28 -0
- package/project/.sdk/tm/js/src/feature/netsim/NetsimFeature.js +10 -8
- package/project/.sdk/tm/js/src/feature/ratelimit/RatelimitFeature.js +8 -6
- package/project/.sdk/tm/js/src/feature/retry/RetryFeature.js +17 -4
- package/project/.sdk/tm/js/src/feature/test/TestFeature.js +40 -12
- package/project/.sdk/tm/js/src/feature/timeout/TimeoutFeature.js +17 -3
- package/project/.sdk/tm/js/src/feature/validate/ValidateFeature.js +2 -0
- package/project/.sdk/tm/js/src/utility/CleanUtility.js +25 -1
- package/project/.sdk/tm/js/src/utility/FetcherUtility.js +23 -1
- package/project/.sdk/tm/js/src/utility/MakeErrorUtility.js +2 -2
- package/project/.sdk/tm/js/src/utility/MakeFetchDefUtility.js +14 -2
- package/project/.sdk/tm/js/src/utility/MakeOptionsUtility.js +6 -6
- package/project/.sdk/tm/js/src/utility/MakePointUtility.js +39 -2
- package/project/.sdk/tm/js/src/utility/MakeRequestUtility.js +27 -2
- package/project/.sdk/tm/js/src/utility/MakeResponseUtility.js +2 -1
- package/project/.sdk/tm/js/src/utility/MakeSpecUtility.js +14 -1
- package/project/.sdk/tm/js/src/utility/MakeUrlUtility.js +23 -0
- package/project/.sdk/tm/js/src/utility/MediaUtility.js +145 -0
- package/project/.sdk/tm/js/src/utility/ParamUtility.js +46 -18
- package/project/.sdk/tm/js/src/utility/PrepareBodyUtility.js +6 -0
- package/project/.sdk/tm/js/src/utility/PrepareHeadersUtility.js +55 -14
- package/project/.sdk/tm/js/src/utility/PrepareMethodUtility.js +9 -0
- package/project/.sdk/tm/js/src/utility/PrepareQueryUtility.js +23 -6
- package/project/.sdk/tm/js/src/utility/ResultBodyUtility.js +60 -3
- package/project/.sdk/tm/js/src/utility/TransformRequestUtility.js +16 -7
- package/project/.sdk/tm/js/test/definition-runner.js +103 -3
- package/project/.sdk/tm/js/test/feature/Corpus.test.js +47 -16
- package/project/.sdk/tm/js/test/feature/harness.js +4 -1
- package/project/.sdk/tm/js/test/feature/secrets/Secrets.test.js +7 -7
- package/project/.sdk/tm/js/test/feature.test.js +134 -0
- package/project/.sdk/tm/js/test/live-contract.js +73 -3
- package/project/.sdk/tm/js/test/live-entity.js +34 -15
- package/project/.sdk/tm/js/test/live-runner.js +52 -7
- package/project/.sdk/tm/js/test/live-scenarios.js +4 -4
- package/project/.sdk/tm/js/test/pipeline.test.js +52 -1
- package/project/.sdk/tm/js/test/utility.js +30 -4
- package/project/.sdk/tm/kotlin/LICENSE +1 -1
- package/project/.sdk/tm/kotlin/core/Context.kt +6 -4
- package/project/.sdk/tm/kotlin/core/Helpers.kt +8 -0
- package/project/.sdk/tm/kotlin/core/Interfaces.kt +2 -0
- package/project/.sdk/tm/kotlin/core/Response.kt +65 -0
- package/project/.sdk/tm/kotlin/core/SdkClient.kt +20 -3
- package/project/.sdk/tm/kotlin/core/Spec.kt +3 -0
- package/project/.sdk/tm/kotlin/feature/TestFeature.kt +23 -3
- package/project/.sdk/tm/kotlin/feature/TimeoutFeature.kt +42 -15
- package/project/.sdk/tm/kotlin/feature/ValidateFeature.kt +2 -0
- package/project/.sdk/tm/kotlin/test/ConcurrencyTest.kt +193 -0
- package/project/.sdk/tm/kotlin/test/FeatureHarness.kt +1 -1
- package/project/.sdk/tm/kotlin/test/FeatureTest.kt +32 -0
- package/project/.sdk/tm/kotlin/test/RunnerSupport.kt +90 -0
- package/project/.sdk/tm/kotlin/test/ServerVariableTest.kt +50 -0
- package/project/.sdk/tm/kotlin/utility/CoreUtil.kt +9 -7
- package/project/.sdk/tm/kotlin/utility/Fetcher.kt +24 -4
- package/project/.sdk/tm/kotlin/utility/MakeOptions.kt +26 -0
- package/project/.sdk/tm/kotlin/utility/MakePoint.kt +57 -12
- package/project/.sdk/tm/kotlin/utility/MakeSpecUrl.kt +26 -7
- package/project/.sdk/tm/kotlin/utility/Media.kt +83 -0
- package/project/.sdk/tm/kotlin/utility/Prepare.kt +127 -48
- package/project/.sdk/tm/kotlin/utility/ResultTransform.kt +18 -7
- package/project/.sdk/tm/lua/LICENSE +1 -1
- package/project/.sdk/tm/lua/core/context.lua +1 -1
- package/project/.sdk/tm/lua/core/helpers.lua +103 -0
- package/project/.sdk/tm/lua/core/response.lua +3 -0
- package/project/.sdk/tm/lua/core/spec.lua +3 -0
- package/project/.sdk/tm/lua/feature/test_feature.lua +36 -3
- package/project/.sdk/tm/lua/feature/validate_feature.lua +2 -0
- package/project/.sdk/tm/lua/test/feature_test.lua +1 -1
- package/project/.sdk/tm/lua/test/runner.lua +107 -0
- package/project/.sdk/tm/lua/utility/fetcher.lua +9 -2
- package/project/.sdk/tm/lua/utility/make_fetch_def.lua +2 -6
- package/project/.sdk/tm/lua/utility/make_options.lua +10 -7
- package/project/.sdk/tm/lua/utility/make_point.lua +65 -12
- package/project/.sdk/tm/lua/utility/make_spec.lua +19 -4
- package/project/.sdk/tm/lua/utility/make_url.lua +22 -1
- package/project/.sdk/tm/lua/utility/media.lua +106 -0
- package/project/.sdk/tm/lua/utility/param.lua +5 -45
- package/project/.sdk/tm/lua/utility/prepare_body.lua +5 -0
- package/project/.sdk/tm/lua/utility/prepare_headers.lua +71 -21
- package/project/.sdk/tm/lua/utility/prepare_query.lua +28 -6
- package/project/.sdk/tm/lua/utility/result_body.lua +7 -0
- package/project/.sdk/tm/lua/utility/transform_request.lua +23 -10
- package/project/.sdk/tm/lua/utility/unreadable_body.lua +70 -0
- package/project/.sdk/tm/ocaml/LICENSE +1 -1
- package/project/.sdk/tm/ocaml/Makefile +21 -8
- package/project/.sdk/tm/ocaml/sdk_features.ml +56 -10
- package/project/.sdk/tm/ocaml/sdk_helpers.ml +9 -0
- package/project/.sdk/tm/ocaml/sdk_runtime.ml +385 -96
- package/project/.sdk/tm/ocaml/sdk_types.ml +12 -2
- package/project/.sdk/tm/ocaml/test/concurrency_test.ml +148 -0
- package/project/.sdk/tm/ocaml/test/harness.ml +1 -1
- package/project/.sdk/tm/ocaml/test/t_pipeline.ml +2 -1
- package/project/.sdk/tm/perl/LICENSE +1 -1
- package/project/.sdk/tm/perl/core/context.pm +1 -1
- package/project/.sdk/tm/perl/core/response.pm +2 -0
- package/project/.sdk/tm/perl/core/spec.pm +3 -0
- package/project/.sdk/tm/perl/feature/test_feature.pm +26 -3
- package/project/.sdk/tm/perl/feature/validate_feature.pm +2 -0
- package/project/.sdk/tm/perl/t/feature.t +1 -1
- package/project/.sdk/tm/perl/t/feature_corpus.t +72 -33
- package/project/.sdk/tm/perl/t/runner.pm +86 -0
- package/project/.sdk/tm/perl/t/server_variables.t +39 -0
- package/project/.sdk/tm/perl/utility/clean.pm +12 -7
- package/project/.sdk/tm/perl/utility/fetcher.pm +32 -19
- package/project/.sdk/tm/perl/utility/make_fetch_def.pm +4 -4
- package/project/.sdk/tm/perl/utility/make_options.pm +24 -0
- package/project/.sdk/tm/perl/utility/make_point.pm +55 -9
- package/project/.sdk/tm/perl/utility/make_spec.pm +27 -3
- package/project/.sdk/tm/perl/utility/make_url.pm +13 -1
- package/project/.sdk/tm/perl/utility/media.pm +109 -0
- package/project/.sdk/tm/perl/utility/param.pm +50 -24
- package/project/.sdk/tm/perl/utility/prepare_body.pm +11 -3
- package/project/.sdk/tm/perl/utility/prepare_headers.pm +63 -16
- package/project/.sdk/tm/perl/utility/prepare_method.pm +13 -0
- package/project/.sdk/tm/perl/utility/prepare_query.pm +18 -4
- package/project/.sdk/tm/perl/utility/result_body.pm +60 -0
- package/project/.sdk/tm/perl/utility/transform_request.pm +23 -8
- package/project/.sdk/tm/php/LICENSE +1 -1
- package/project/.sdk/tm/php/core/Context.php +1 -1
- package/project/.sdk/tm/php/core/Response.php +3 -0
- package/project/.sdk/tm/php/core/Spec.php +4 -0
- package/project/.sdk/tm/php/feature/CostFeature.php +2 -7
- package/project/.sdk/tm/php/feature/TestFeature.php +42 -12
- package/project/.sdk/tm/php/feature/ValidateFeature.php +14 -12
- package/project/.sdk/tm/php/test/FeatureCorpusTest.php +90 -35
- package/project/.sdk/tm/php/test/FeatureTest.php +4 -5
- package/project/.sdk/tm/php/test/PipelineTest.php +18 -1
- package/project/.sdk/tm/php/test/Runner.php +86 -0
- package/project/.sdk/tm/php/utility/Clean.php +10 -5
- package/project/.sdk/tm/php/utility/Fetcher.php +48 -6
- package/project/.sdk/tm/php/utility/MakeFetchDef.php +2 -1
- package/project/.sdk/tm/php/utility/MakePoint.php +55 -11
- package/project/.sdk/tm/php/utility/MakeSpec.php +21 -4
- package/project/.sdk/tm/php/utility/MakeUrl.php +16 -1
- package/project/.sdk/tm/php/utility/Media.php +111 -0
- package/project/.sdk/tm/php/utility/Param.php +66 -27
- package/project/.sdk/tm/php/utility/PrepareBody.php +5 -0
- package/project/.sdk/tm/php/utility/PrepareHeaders.php +83 -23
- package/project/.sdk/tm/php/utility/PrepareMethod.php +15 -0
- package/project/.sdk/tm/php/utility/PrepareQuery.php +22 -8
- package/project/.sdk/tm/php/utility/ResultBody.php +71 -0
- package/project/.sdk/tm/php/utility/TransformRequest.php +22 -11
- package/project/.sdk/tm/py/LICENSE +1 -1
- package/project/.sdk/tm/py/pkg/core/context.py +3 -3
- package/project/.sdk/tm/py/pkg/core/response.py +3 -0
- package/project/.sdk/tm/py/pkg/core/spec.py +3 -0
- package/project/.sdk/tm/py/pkg/feature/test_feature.py +27 -3
- package/project/.sdk/tm/py/pkg/feature/validate_feature.py +2 -0
- package/project/.sdk/tm/py/pkg/utility/clean.py +12 -8
- package/project/.sdk/tm/py/pkg/utility/fetcher.py +17 -7
- package/project/.sdk/tm/py/pkg/utility/make_fetch_def.py +2 -5
- package/project/.sdk/tm/py/pkg/utility/make_options.py +14 -8
- package/project/.sdk/tm/py/pkg/utility/make_point.py +40 -4
- package/project/.sdk/tm/py/pkg/utility/make_spec.py +12 -4
- package/project/.sdk/tm/py/pkg/utility/make_url.py +19 -1
- package/project/.sdk/tm/py/pkg/utility/media.py +88 -0
- package/project/.sdk/tm/py/pkg/utility/param.py +47 -18
- package/project/.sdk/tm/py/pkg/utility/prepare_body.py +4 -0
- package/project/.sdk/tm/py/pkg/utility/prepare_headers.py +56 -20
- package/project/.sdk/tm/py/pkg/utility/prepare_method.py +7 -0
- package/project/.sdk/tm/py/pkg/utility/prepare_query.py +17 -8
- package/project/.sdk/tm/py/pkg/utility/result_body.py +51 -0
- package/project/.sdk/tm/py/pkg/utility/transform_request.py +18 -9
- package/project/.sdk/tm/py/test/feature_harness.py +1 -1
- package/project/.sdk/tm/py/test/runner.py +77 -2
- package/project/.sdk/tm/py/test/test_concurrency.py +177 -0
- package/project/.sdk/tm/py/test/test_feature_corpus.py +69 -32
- package/project/.sdk/tm/py-data/LICENSE +1 -1
- package/project/.sdk/tm/py-data/Makefile +2 -2
- package/project/.sdk/tm/rb/LICENSE +1 -1
- package/project/.sdk/tm/rb/core/context.rb +9 -4
- package/project/.sdk/tm/rb/core/response.rb +3 -1
- package/project/.sdk/tm/rb/core/spec.rb +4 -1
- package/project/.sdk/tm/rb/feature/test_feature.rb +27 -8
- package/project/.sdk/tm/rb/feature/validate_feature.rb +3 -1
- package/project/.sdk/tm/rb/test/concurrency_test.rb +160 -0
- package/project/.sdk/tm/rb/test/feature_corpus_test.rb +74 -30
- package/project/.sdk/tm/rb/test/feature_test.rb +1 -1
- package/project/.sdk/tm/rb/test/runner.rb +54 -2
- package/project/.sdk/tm/rb/utility/clean.rb +22 -13
- package/project/.sdk/tm/rb/utility/fetcher.rb +22 -14
- package/project/.sdk/tm/rb/utility/make_fetch_def.rb +2 -4
- package/project/.sdk/tm/rb/utility/make_point.rb +44 -8
- package/project/.sdk/tm/rb/utility/make_spec.rb +14 -2
- package/project/.sdk/tm/rb/utility/make_url.rb +13 -1
- package/project/.sdk/tm/rb/utility/media.rb +75 -0
- package/project/.sdk/tm/rb/utility/param.rb +44 -25
- package/project/.sdk/tm/rb/utility/prepare_body.rb +4 -1
- package/project/.sdk/tm/rb/utility/prepare_headers.rb +50 -16
- package/project/.sdk/tm/rb/utility/prepare_method.rb +6 -0
- package/project/.sdk/tm/rb/utility/prepare_query.rb +12 -4
- package/project/.sdk/tm/rb/utility/result_body.rb +45 -0
- package/project/.sdk/tm/rb/utility/transform_request.rb +17 -7
- package/project/.sdk/tm/rust/LICENSE +1 -1
- package/project/.sdk/tm/rust/core/context.rs +1 -1
- package/project/.sdk/tm/rust/core/helpers.rs +10 -0
- package/project/.sdk/tm/rust/core/response.rs +80 -1
- package/project/.sdk/tm/rust/core/spec.rs +4 -0
- package/project/.sdk/tm/rust/core/types.rs +1 -0
- package/project/.sdk/tm/rust/feature/test.rs +29 -2
- package/project/.sdk/tm/rust/feature/validate.rs +2 -0
- package/project/.sdk/tm/rust/tests/common/mod.rs +108 -1
- package/project/.sdk/tm/rust/utility/clean.rs +0 -2
- package/project/.sdk/tm/rust/utility/fetcher.rs +19 -11
- package/project/.sdk/tm/rust/utility/make_fetch_def.rs +12 -1
- package/project/.sdk/tm/rust/utility/make_options.rs +6 -5
- package/project/.sdk/tm/rust/utility/make_point.rs +80 -16
- package/project/.sdk/tm/rust/utility/make_spec.rs +23 -4
- package/project/.sdk/tm/rust/utility/make_url.rs +39 -2
- package/project/.sdk/tm/rust/utility/media.rs +116 -0
- package/project/.sdk/tm/rust/utility/mod.rs +1 -0
- package/project/.sdk/tm/rust/utility/param.rs +66 -19
- package/project/.sdk/tm/rust/utility/prepare_body.rs +4 -0
- package/project/.sdk/tm/rust/utility/prepare_headers.rs +85 -28
- package/project/.sdk/tm/rust/utility/prepare_query.rs +27 -5
- package/project/.sdk/tm/rust/utility/result_body.rs +15 -2
- package/project/.sdk/tm/rust/utility/transform_request.rs +27 -14
- package/project/.sdk/tm/scala/LICENSE +1 -1
- package/project/.sdk/tm/scala/Makefile +5 -1
- package/project/.sdk/tm/scala/core/Context.scala +7 -5
- package/project/.sdk/tm/scala/core/Contracts.scala +1 -0
- package/project/.sdk/tm/scala/core/Helpers.scala +7 -0
- package/project/.sdk/tm/scala/core/Response.scala +55 -0
- package/project/.sdk/tm/scala/core/SdkClient.scala +18 -5
- package/project/.sdk/tm/scala/core/Spec.scala +3 -0
- package/project/.sdk/tm/scala/feature/TestFeature.scala +36 -3
- package/project/.sdk/tm/scala/feature/TimeoutFeature.scala +39 -13
- package/project/.sdk/tm/scala/feature/ValidateFeature.scala +2 -0
- package/project/.sdk/tm/scala/sdktest/ConcurrencyTest.scala +186 -0
- package/project/.sdk/tm/scala/sdktest/SdkTestMain.scala +16 -1
- package/project/.sdk/tm/scala/sdktest/ServerVariableTest.scala +49 -0
- package/project/.sdk/tm/scala/sdktest/feature/secrets/SecretsTestMain.scala +1 -0
- package/project/.sdk/tm/scala/utility/Fetcher.scala +17 -2
- package/project/.sdk/tm/scala/utility/Make.scala +141 -43
- package/project/.sdk/tm/scala/utility/MakeSpec.scala +20 -2
- package/project/.sdk/tm/scala/utility/Media.scala +96 -0
- package/project/.sdk/tm/scala/utility/Misc.scala +56 -23
- package/project/.sdk/tm/scala/utility/Prepare.scala +84 -31
- package/project/.sdk/tm/scala/utility/Results.scala +5 -0
- package/project/.sdk/tm/scala/utility/Transform.scala +15 -19
- package/project/.sdk/tm/swift/LICENSE +1 -1
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/core/Context.swift +3 -1
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/core/Response.swift +57 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/core/Spec.swift +3 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/core/Support.swift +8 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/TestFeature.swift +34 -3
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/TimeoutFeature.swift +19 -3
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/feature/ValidateFeature.swift +2 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/Fetcher.swift +21 -12
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/Make.swift +85 -18
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/MakeOptions.swift +73 -7
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/Media.swift +76 -0
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/Prepare.swift +118 -43
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/ResultUtil.swift +52 -19
- package/project/.sdk/tm/swift/Tests/ProjectNameSDKTests/ConcurrencyTest.swift +214 -0
- package/project/.sdk/tm/swift/Tests/ProjectNameSDKTests/FeatureTest.swift +31 -1
- package/project/.sdk/tm/swift/Tests/ProjectNameSDKTests/PrimaryUtilityTest.swift +6 -0
- package/project/.sdk/tm/swift/Tests/ProjectNameSDKTests/ServerVariableTest.swift +42 -0
- package/project/.sdk/tm/ts/LICENSE +1 -1
- package/project/.sdk/tm/ts/src/Context.ts +1 -1
- package/project/.sdk/tm/ts/src/Control.ts +3 -0
- package/project/.sdk/tm/ts/src/Response.ts +10 -1
- package/project/.sdk/tm/ts/src/Spec.ts +4 -0
- package/project/.sdk/tm/ts/src/feature/base/BaseFeature.ts +28 -0
- package/project/.sdk/tm/ts/src/feature/netsim/NetsimFeature.ts +10 -8
- package/project/.sdk/tm/ts/src/feature/ratelimit/RatelimitFeature.ts +8 -6
- package/project/.sdk/tm/ts/src/feature/retry/RetryFeature.ts +17 -4
- package/project/.sdk/tm/ts/src/feature/test/TestFeature.ts +41 -13
- package/project/.sdk/tm/ts/src/feature/timeout/TimeoutFeature.ts +17 -3
- package/project/.sdk/tm/ts/src/feature/validate/ValidateFeature.ts +2 -0
- package/project/.sdk/tm/ts/src/tsconfig.json +2 -1
- package/project/.sdk/tm/ts/src/utility/CleanUtility.ts +25 -1
- package/project/.sdk/tm/ts/src/utility/FetcherUtility.ts +24 -1
- package/project/.sdk/tm/ts/src/utility/MakeErrorUtility.ts +2 -2
- package/project/.sdk/tm/ts/src/utility/MakeFetchDefUtility.ts +15 -2
- package/project/.sdk/tm/ts/src/utility/MakeOptionsUtility.ts +6 -6
- package/project/.sdk/tm/ts/src/utility/MakePointUtility.ts +38 -2
- package/project/.sdk/tm/ts/src/utility/MakeRequestUtility.ts +29 -2
- package/project/.sdk/tm/ts/src/utility/MakeResponseUtility.ts +3 -1
- package/project/.sdk/tm/ts/src/utility/MakeSpecUtility.ts +16 -6
- package/project/.sdk/tm/ts/src/utility/MakeUrlUtility.ts +16 -2
- package/project/.sdk/tm/ts/src/utility/MediaUtility.ts +143 -0
- package/project/.sdk/tm/ts/src/utility/ParamUtility.ts +50 -18
- package/project/.sdk/tm/ts/src/utility/PrepareBodyUtility.ts +6 -0
- package/project/.sdk/tm/ts/src/utility/PrepareHeadersUtility.ts +53 -11
- package/project/.sdk/tm/ts/src/utility/PrepareMethodUtility.ts +9 -0
- package/project/.sdk/tm/ts/src/utility/PrepareQueryUtility.ts +22 -6
- package/project/.sdk/tm/ts/src/utility/ResultBodyUtility.ts +68 -3
- package/project/.sdk/tm/ts/src/utility/TransformRequestUtility.ts +16 -6
- package/project/.sdk/tm/ts/test/definition-runner.ts +109 -3
- package/project/.sdk/tm/ts/test/feature/Corpus.test.ts +47 -16
- package/project/.sdk/tm/ts/test/feature/harness.ts +4 -1
- package/project/.sdk/tm/ts/test/feature/secrets/Secrets.test.ts +1 -1
- package/project/.sdk/tm/ts/test/feature.test.ts +134 -0
- package/project/.sdk/tm/ts/test/live-contract.ts +60 -2
- package/project/.sdk/tm/ts/test/live-entity.ts +36 -12
- package/project/.sdk/tm/ts/test/live-runner.ts +79 -12
- package/project/.sdk/tm/ts/test/live-scenarios.ts +5 -4
- package/project/.sdk/tm/ts/test/pipeline.test.ts +52 -1
- package/project/.sdk/tm/ts/test/tsconfig.json +2 -1
- package/project/.sdk/tm/ts/test/utility.ts +35 -7
- package/project/.sdk/tm/zig/LICENSE +1 -1
- package/project/.sdk/tm/zig/core/context.zig +2 -1
- package/project/.sdk/tm/zig/core/helpers.zig +33 -0
- package/project/.sdk/tm/zig/core/response.zig +3 -0
- package/project/.sdk/tm/zig/core/spec.zig +27 -0
- package/project/.sdk/tm/zig/core/types.zig +6 -0
- package/project/.sdk/tm/zig/core/utility.zig +456 -84
- package/project/.sdk/tm/zig/feature/test.zig +41 -10
- package/project/.sdk/tm/zig/feature/validate.zig +2 -0
- package/project/.sdk/tm/zig/test/fh.zig +1 -1
- package/project/sdkgen-package.json +1 -1
- package/src/action/copies.ts +179 -46
- package/src/action/doctor.ts +13 -3
- package/src/action/package.ts +17 -9
- package/src/action/resolve.ts +41 -0
- package/src/admin/npm-trust.ts +9 -8
- package/src/cmp/AgentGuide.ts +4 -3
- package/src/cmp/AgentGuideFeature.ts +3 -2
- package/src/cmp/AgentGuideTop.ts +2 -1
- package/src/cmp/Changelog.ts +2 -1
- package/src/cmp/Deploy.ts +2 -1
- package/src/cmp/Entity.ts +1 -3
- package/src/cmp/ExternalTarget.ts +2 -1
- package/src/cmp/Feature.ts +2 -1
- package/src/cmp/FeatureHook.ts +2 -1
- package/src/cmp/License.ts +7 -5
- package/src/cmp/Main.ts +2 -1
- package/src/cmp/PublishWorkflow.ts +2 -1
- package/src/cmp/Readme.ts +2 -1
- package/src/cmp/ReadmeEntity.ts +3 -3
- package/src/cmp/ReadmeErrors.ts +11 -9
- package/src/cmp/ReadmeExplanation.ts +8 -8
- package/src/cmp/ReadmeFeatures.ts +4 -3
- package/src/cmp/ReadmeHowto.ts +4 -3
- package/src/cmp/ReadmeInstall.ts +4 -3
- package/src/cmp/ReadmeIntro.ts +3 -3
- package/src/cmp/ReadmeModel.ts +6 -3
- package/src/cmp/ReadmeOptions.ts +3 -3
- package/src/cmp/ReadmeQuick.ts +7 -4
- package/src/cmp/ReadmeRef.ts +3 -3
- package/src/cmp/ReadmeRefFeatures.ts +2 -1
- package/src/cmp/ReadmeStation.ts +2 -1
- package/src/cmp/ReadmeTop.ts +126 -44
- package/src/cmp/ReadmeUnions.ts +2 -1
- package/src/cmp/Registered.ts +4 -4
- package/src/cmp/Security.ts +14 -7
- package/src/cmp/Test.ts +2 -1
- package/src/cmp/TestControl.ts +1 -1
- package/src/helpers/component.ts +25 -0
- package/src/helpers/definition.ts +2 -2
- package/src/helpers/definitionPlan.ts +139 -13
- package/src/helpers/featureSource.ts +55 -2
- package/src/helpers/flowGuard.ts +111 -0
- package/src/helpers/generated.ts +488 -0
- package/src/helpers/mcpTools.ts +47 -0
- package/src/helpers/media.ts +79 -0
- package/src/helpers/modelNames.ts +186 -16
- package/src/helpers/naming.ts +200 -4
- package/src/helpers/npm.ts +68 -0
- package/src/helpers/npmScripts.ts +37 -0
- package/src/helpers/opExample.ts +111 -31
- package/src/helpers/opShape.ts +259 -37
- package/src/helpers/optional.ts +76 -0
- package/src/helpers/packageMeta.ts +83 -11
- package/src/helpers/stdrep.ts +5 -1
- package/src/helpers/testPolicy.ts +68 -1
- package/src/helpers/text.ts +33 -0
- package/src/sdkgen.ts +110 -16
- package/src/testkit.ts +2 -1
- package/src/utility.ts +68 -19
- package/project/.sdk/src/cmp/go/fragment/SdkError.fragment.go +0 -22
- package/project/.sdk/src/cmp/lua/fragment/SdkError.fragment.lua +0 -38
- package/project/.sdk/src/cmp/perl/fragment/SdkError.fragment.pm +0 -27
- package/project/.sdk/src/cmp/php/fragment/SdkError.fragment.php +0 -35
- package/project/.sdk/src/cmp/py/fragment/SdkError.fragment.py +0 -27
- package/project/.sdk/src/cmp/rb/fragment/SdkError.fragment.rb +0 -25
|
@@ -93,6 +93,24 @@ fn fixIds(_: Allocator, key: ?[]const u8, val: Value, _: Value, path: []const []
|
|
|
93
93
|
return val;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
+
// The key a list's response transform
|
|
97
|
+
// ["`$EACH`", "body", {"`$MERGE`": "`.<key>`"}] reads each item's record
|
|
98
|
+
// under; null for any other transform.
|
|
99
|
+
fn item_envelope_key(restf: Value) ?[]const u8 {
|
|
100
|
+
if (restf != .array) return null;
|
|
101
|
+
const spec = restf.array.data.items;
|
|
102
|
+
if (spec.len != 3) return null;
|
|
103
|
+
if (spec[0] != .string or !std.mem.eql(u8, spec[0].string, "`$EACH`")) return null;
|
|
104
|
+
if (spec[1] != .string or !std.mem.eql(u8, spec[1].string, "body")) return null;
|
|
105
|
+
const merge = h.getp(spec[2], "`$MERGE`");
|
|
106
|
+
if (merge != .string) return null;
|
|
107
|
+
const m = merge.string;
|
|
108
|
+
if (m.len < 4 or !std.mem.startsWith(u8, m, "`.") or !std.mem.endsWith(u8, m, "`")) return null;
|
|
109
|
+
const key = m[2 .. m.len - 1];
|
|
110
|
+
if (std.mem.indexOfAny(u8, key, ".`$") != null) return null;
|
|
111
|
+
return key;
|
|
112
|
+
}
|
|
113
|
+
|
|
96
114
|
// THE MOCK HAS TO AGREE WITH THE MODEL.
|
|
97
115
|
//
|
|
98
116
|
// A point carrying `transform.res: `body.item`` describes an API that answers
|
|
@@ -107,6 +125,13 @@ fn fixIds(_: Allocator, key: ?[]const u8, val: Value, _: Value, path: []const []
|
|
|
107
125
|
fn envelope(ctx: *Context, data: Value) Value {
|
|
108
126
|
if (data == .null) return data;
|
|
109
127
|
const restf = h.getpath(&.{ "transform", "res" }, ctx.point);
|
|
128
|
+
if (item_envelope_key(restf)) |key| {
|
|
129
|
+
if (data == .array) {
|
|
130
|
+
const out = h.olist();
|
|
131
|
+
for (data.array.data.items) |item| out.array.append(h.jo(&.{.{ key, item }})) catch {};
|
|
132
|
+
return out;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
110
135
|
if (restf != .string) return data;
|
|
111
136
|
const spec = restf.string;
|
|
112
137
|
// Rebuild whatever nesting the transform unwraps. Multi-segment on purpose:
|
|
@@ -181,17 +206,19 @@ fn pick_point(points: Value) Value {
|
|
|
181
206
|
return point;
|
|
182
207
|
}
|
|
183
208
|
|
|
209
|
+
// Each name is read from its arg: this struct port's `$EACH` transform answers
|
|
210
|
+
// null for every `$KEY.name`, where the other ports answer the names.
|
|
184
211
|
fn reqd_names(point: Value, kind: []const u8) Value {
|
|
185
212
|
const args_path = h.getpath(&.{ "args", kind }, point);
|
|
186
213
|
const reqd_args = vs.select(h.A(), args_path, h.jo(&.{.{ "reqd", h.vbool(true) }})) catch return h.olist();
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
}
|
|
194
|
-
return
|
|
214
|
+
const names = h.olist();
|
|
215
|
+
if (reqd_args == .array) {
|
|
216
|
+
for (reqd_args.array.data.items) |arg| {
|
|
217
|
+
const name = h.getp(arg, "name");
|
|
218
|
+
if (name == .string) names.array.append(name) catch {};
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
return names;
|
|
195
222
|
}
|
|
196
223
|
|
|
197
224
|
fn build_args(ctx: *Context, args: Value) Value {
|
|
@@ -271,7 +298,7 @@ fn test_fetch(entity: Value, ctx: *Context, _: []const u8, _: Value) err.E!Value
|
|
|
271
298
|
for (found.array.data.items) |item| h.del_prop(item, h.vstr("$KEY"));
|
|
272
299
|
}
|
|
273
300
|
return respond(ctx, 200, h.clone(found), &.{});
|
|
274
|
-
} else if (std.mem.eql(u8, op.name, "update")) {
|
|
301
|
+
} else if (std.mem.eql(u8, op.name, "update") or std.mem.eql(u8, op.name, "patch")) {
|
|
275
302
|
const reqdata = ctx.reqdata;
|
|
276
303
|
var update_match = h.omap();
|
|
277
304
|
if (reqdata == .object) {
|
|
@@ -292,7 +319,10 @@ fn test_fetch(entity: Value, ctx: *Context, _: []const u8, _: Value) err.E!Value
|
|
|
292
319
|
return respond(ctx, 404, h.vnull(), &.{.{ "statusText", h.vstr("Not found") }});
|
|
293
320
|
}
|
|
294
321
|
if (ent == .object and reqdata == .object) {
|
|
295
|
-
|
|
322
|
+
// `$body` travels on the wire alone; the record is the rest.
|
|
323
|
+
const rec = h.clone(reqdata);
|
|
324
|
+
h.del_prop(rec, h.vstr("$body"));
|
|
325
|
+
ent = h.merge(h.ja(&.{ ent, rec }));
|
|
296
326
|
}
|
|
297
327
|
h.del_prop(ent, h.vstr("$KEY"));
|
|
298
328
|
return respond(ctx, 200, h.clone(ent), &.{});
|
|
@@ -319,6 +349,7 @@ fn test_fetch(entity: Value, ctx: *Context, _: []const u8, _: Value) err.E!Value
|
|
|
319
349
|
}
|
|
320
350
|
const ent = h.clone(ctx.reqdata);
|
|
321
351
|
if (ent == .object) {
|
|
352
|
+
h.del_prop(ent, h.vstr("$body"));
|
|
322
353
|
h.setp(ent, "id", id);
|
|
323
354
|
if (id == .string) h.setp(entmap, id.string, ent);
|
|
324
355
|
h.del_prop(ent, h.vstr("$KEY"));
|
|
@@ -125,6 +125,8 @@ pub const ValidateFeature = struct {
|
|
|
125
125
|
// custom-action call would be rejected for the one key that made it
|
|
126
126
|
// reachable.
|
|
127
127
|
_ = out.object.fetchOrderedRemove("$action");
|
|
128
|
+
// Nor is `$body`, the raw request body.
|
|
129
|
+
_ = out.object.fetchOrderedRemove("$body");
|
|
128
130
|
|
|
129
131
|
return out;
|
|
130
132
|
}
|
|
@@ -314,7 +314,7 @@ pub fn fh_err_code(err: ?*SdkError) []const u8 {
|
|
|
314
314
|
|
|
315
315
|
fn fhDefaultMethod(op: []const u8) []const u8 {
|
|
316
316
|
if (std.mem.eql(u8, op, "create")) return "POST";
|
|
317
|
-
if (std.mem.eql(u8, op, "update")) return "PATCH";
|
|
317
|
+
if (std.mem.eql(u8, op, "update") or std.mem.eql(u8, op, "patch")) return "PATCH";
|
|
318
318
|
if (std.mem.eql(u8, op, "remove")) return "DELETE";
|
|
319
319
|
return "GET";
|
|
320
320
|
}
|
package/src/action/copies.ts
CHANGED
|
@@ -13,14 +13,18 @@ import { KINDS } from './kind'
|
|
|
13
13
|
import type { Source } from './resolve'
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
// What every add
|
|
17
|
-
//
|
|
18
|
-
//
|
|
19
|
-
|
|
16
|
+
// What every add wrote into `.sdk`, by fingerprint, and the version of the
|
|
17
|
+
// package each item came from: the only record that tells a copy the project
|
|
18
|
+
// changed from one its source has since moved past. Append-only, one line per
|
|
19
|
+
// add or remove that changed the record, holding just the change.
|
|
20
|
+
const COPY_LOG = 'log/copies.jsonl'
|
|
20
21
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
// Where 4.34.0 kept the whole record, until the next write moves it.
|
|
23
|
+
const LEGACY = 'sdkgen-copies.json'
|
|
24
|
+
|
|
25
|
+
const IGNORED_LOG = '.sdk/.gitignore ignores log/, so .sdk/' + COPY_LOG +
|
|
26
|
+
' is not committed and a fresh clone has no copy record. Delete the ' +
|
|
27
|
+
'log/ line.'
|
|
24
28
|
|
|
25
29
|
|
|
26
30
|
type CopyItem = {
|
|
@@ -33,9 +37,15 @@ type CopyRecord = {
|
|
|
33
37
|
files: Record<string, string>
|
|
34
38
|
}
|
|
35
39
|
|
|
40
|
+
// A null forgets the item or the file.
|
|
41
|
+
type CopyEntry = {
|
|
42
|
+
items?: Record<string, CopyItem | null>
|
|
43
|
+
files?: Record<string, string | null>
|
|
44
|
+
}
|
|
45
|
+
|
|
36
46
|
|
|
37
|
-
function
|
|
38
|
-
return Path.join(folder,
|
|
47
|
+
function logPath(folder: string): string {
|
|
48
|
+
return Path.join(folder, ...COPY_LOG.split('/'))
|
|
39
49
|
}
|
|
40
50
|
|
|
41
51
|
|
|
@@ -53,38 +63,140 @@ function fingerprint(content: any): string {
|
|
|
53
63
|
}
|
|
54
64
|
|
|
55
65
|
|
|
56
|
-
//
|
|
57
|
-
//
|
|
66
|
+
// Unreadable lines are skipped. A copy can then only lose its entry, which
|
|
67
|
+
// leaves it unrecorded, as in a project from before the record existed.
|
|
58
68
|
function readCopies(fs: any, folder: string): CopyRecord {
|
|
59
|
-
const
|
|
60
|
-
const
|
|
69
|
+
const record: CopyRecord = { items: {}, files: {} }
|
|
70
|
+
const log = logPath(folder)
|
|
71
|
+
|
|
72
|
+
const entries = fs.existsSync(log) ?
|
|
73
|
+
String(fs.readFileSync(log, 'utf8')).split('\n').map(parseEntry) :
|
|
74
|
+
[readLegacy(fs, folder)]
|
|
75
|
+
|
|
76
|
+
for (const entry of entries) {
|
|
77
|
+
if (null != entry) {
|
|
78
|
+
apply(record, entry)
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
return record
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
function parseEntry(line: string): CopyEntry | undefined {
|
|
87
|
+
if ('' === line.trim()) {
|
|
88
|
+
return undefined
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
try {
|
|
92
|
+
return JSON.parse(line) ?? undefined
|
|
93
|
+
}
|
|
94
|
+
catch (err: any) {
|
|
95
|
+
return undefined
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
function readLegacy(fs: any, folder: string): CopyEntry | undefined {
|
|
101
|
+
const path = Path.join(folder, LEGACY)
|
|
61
102
|
|
|
62
103
|
if (!fs.existsSync(path)) {
|
|
63
|
-
return
|
|
104
|
+
return undefined
|
|
64
105
|
}
|
|
65
106
|
|
|
66
107
|
try {
|
|
67
108
|
const read = JSON.parse(String(fs.readFileSync(path, 'utf8')))
|
|
68
|
-
return {
|
|
69
|
-
items: { ...(read?.items ?? {}) },
|
|
70
|
-
files: { ...(read?.files ?? {}) },
|
|
71
|
-
}
|
|
109
|
+
return { items: read?.items ?? {}, files: read?.files ?? {} }
|
|
72
110
|
}
|
|
73
111
|
catch (err: any) {
|
|
74
|
-
return
|
|
112
|
+
return undefined
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
function apply(record: CopyRecord, entry: CopyEntry) {
|
|
118
|
+
for (const [key, item] of Object.entries(entry.items ?? {})) {
|
|
119
|
+
if (null == item) {
|
|
120
|
+
delete record.items[key]
|
|
121
|
+
}
|
|
122
|
+
else {
|
|
123
|
+
record.items[key] = item
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
for (const [rel, print] of Object.entries(entry.files ?? {})) {
|
|
128
|
+
if (null == print) {
|
|
129
|
+
delete record.files[rel]
|
|
130
|
+
}
|
|
131
|
+
else {
|
|
132
|
+
record.files[rel] = print
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
// The only writer. An entry that changes nothing is not written, so an add
|
|
139
|
+
// that rewrites identical copies leaves the log, and git, as they were.
|
|
140
|
+
function appendEntry(actx: ActionContext, op: string, entry: CopyEntry) {
|
|
141
|
+
const fs = actx.fs()
|
|
142
|
+
const folder = actx.folder
|
|
143
|
+
const log = logPath(folder)
|
|
144
|
+
const legacy = Path.join(folder, LEGACY)
|
|
145
|
+
const fresh = !fs.existsSync(log)
|
|
146
|
+
const lines: string[] = []
|
|
147
|
+
|
|
148
|
+
if (fresh) {
|
|
149
|
+
const imported = readLegacy(fs, folder)
|
|
150
|
+
if (null != imported && changes(imported)) {
|
|
151
|
+
lines.push(entryLine('import', imported))
|
|
152
|
+
}
|
|
75
153
|
}
|
|
154
|
+
|
|
155
|
+
if (changes(entry)) {
|
|
156
|
+
lines.push(entryLine(op, entry))
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
if (0 < lines.length) {
|
|
160
|
+
fs.mkdirSync(Path.dirname(log), { recursive: true })
|
|
161
|
+
fs.appendFileSync(log, lines.join('\n') + '\n')
|
|
162
|
+
|
|
163
|
+
if (fresh && ignoredLog(fs, folder)) {
|
|
164
|
+
actx.log.warn({ point: 'copies-ignored', note: IGNORED_LOG })
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
if (fs.existsSync(legacy)) {
|
|
169
|
+
fs.unlinkSync(legacy)
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
// The line every create-sdkgen scaffold wrote before the record moved into
|
|
175
|
+
// log/. Only git knows every rule, so this finds that one, not all of them.
|
|
176
|
+
function ignoredLog(fs: any, folder: string): boolean {
|
|
177
|
+
const path = Path.join(folder, '.gitignore')
|
|
178
|
+
|
|
179
|
+
return fs.existsSync(path) && String(fs.readFileSync(path, 'utf8'))
|
|
180
|
+
.split('\n').some((line: string) => /^\/?log(\/\*?)?$/.test(line.trim()))
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
function changes(entry: CopyEntry): boolean {
|
|
185
|
+
return 0 < Object.keys(entry.items ?? {}).length ||
|
|
186
|
+
0 < Object.keys(entry.files ?? {}).length
|
|
76
187
|
}
|
|
77
188
|
|
|
78
189
|
|
|
79
|
-
function
|
|
80
|
-
const sorted = (obj: Record<string, any>) => Object.fromEntries(
|
|
190
|
+
function entryLine(op: string, entry: CopyEntry): string {
|
|
191
|
+
const sorted = (obj: Record<string, any> = {}) => Object.fromEntries(
|
|
81
192
|
Object.keys(obj).sort().map((key: string) => [key, obj[key]]))
|
|
82
193
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
194
|
+
return JSON.stringify({
|
|
195
|
+
at: new Date().toISOString(),
|
|
196
|
+
op,
|
|
197
|
+
items: sorted(entry.items),
|
|
198
|
+
files: sorted(entry.files),
|
|
199
|
+
})
|
|
88
200
|
}
|
|
89
201
|
|
|
90
202
|
|
|
@@ -139,49 +251,69 @@ function recordCopies(
|
|
|
139
251
|
const folder = actx.folder
|
|
140
252
|
const record = readCopies(fs, folder)
|
|
141
253
|
|
|
142
|
-
const
|
|
254
|
+
const items: Record<string, CopyItem> = {}
|
|
255
|
+
const files: Record<string, string | null> = gone(fs, folder, record)
|
|
256
|
+
|
|
257
|
+
for (const source of sources) {
|
|
258
|
+
const key = itemKey(kind, source.name)
|
|
259
|
+
const item = provenanceOf(source)
|
|
260
|
+
const known = record.items[key]
|
|
261
|
+
|
|
262
|
+
if (null == known ||
|
|
263
|
+
known.package !== item.package || known.version !== item.version) {
|
|
264
|
+
items[key] = item
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
const written: string[] = [
|
|
143
269
|
...(jres.files.written ?? []), ...(jres.files.unchanged ?? []),
|
|
144
270
|
]
|
|
145
271
|
|
|
146
|
-
for (const abs of
|
|
272
|
+
for (const abs of written) {
|
|
147
273
|
const rel = relativeTo(folder, abs)
|
|
148
274
|
|
|
149
275
|
if (null != rel && isCopy(rel) && fs.existsSync(abs)) {
|
|
150
|
-
|
|
276
|
+
const print = fingerprint(fs.readFileSync(abs))
|
|
277
|
+
if (print !== record.files[rel]) {
|
|
278
|
+
files[rel] = print
|
|
279
|
+
}
|
|
151
280
|
}
|
|
152
281
|
}
|
|
153
282
|
|
|
154
|
-
|
|
155
|
-
record.items[itemKey(kind, source.name)] = provenanceOf(source)
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
pruneMissing(fs, folder, record)
|
|
159
|
-
writeCopies(fs, folder, record)
|
|
283
|
+
appendEntry(actx, 'add', { items, files })
|
|
160
284
|
}
|
|
161
285
|
|
|
162
286
|
|
|
163
287
|
// After a remove: the item goes, with every file entry nothing holds now.
|
|
164
288
|
function forgetCopies(actx: ActionContext, kind: string, name: string) {
|
|
165
|
-
|
|
166
|
-
const folder = actx.folder
|
|
167
|
-
|
|
168
|
-
if (true === actx.opts?.dryrun || !fs.existsSync(copiesPath(folder))) {
|
|
289
|
+
if (true === actx.opts?.dryrun) {
|
|
169
290
|
return
|
|
170
291
|
}
|
|
171
292
|
|
|
293
|
+
const fs = actx.fs()
|
|
294
|
+
const folder = actx.folder
|
|
172
295
|
const record = readCopies(fs, folder)
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
296
|
+
const key = itemKey(kind, name)
|
|
297
|
+
|
|
298
|
+
appendEntry(actx, 'remove', {
|
|
299
|
+
items: null == record.items[key] ? {} : { [key]: null },
|
|
300
|
+
files: gone(fs, folder, record),
|
|
301
|
+
})
|
|
176
302
|
}
|
|
177
303
|
|
|
178
304
|
|
|
179
|
-
function
|
|
305
|
+
function gone(
|
|
306
|
+
fs: any, folder: string, record: CopyRecord,
|
|
307
|
+
): Record<string, null> {
|
|
308
|
+
const missing: Record<string, null> = {}
|
|
309
|
+
|
|
180
310
|
for (const rel of Object.keys(record.files)) {
|
|
181
311
|
if (!fs.existsSync(Path.join(folder, ...rel.split('/')))) {
|
|
182
|
-
|
|
312
|
+
missing[rel] = null
|
|
183
313
|
}
|
|
184
314
|
}
|
|
315
|
+
|
|
316
|
+
return missing
|
|
185
317
|
}
|
|
186
318
|
|
|
187
319
|
|
|
@@ -207,8 +339,9 @@ export type {
|
|
|
207
339
|
}
|
|
208
340
|
|
|
209
341
|
export {
|
|
210
|
-
|
|
211
|
-
|
|
342
|
+
COPY_LOG,
|
|
343
|
+
IGNORED_LOG,
|
|
344
|
+
ignoredLog,
|
|
212
345
|
itemKey,
|
|
213
346
|
fingerprint,
|
|
214
347
|
readCopies,
|
package/src/action/doctor.ts
CHANGED
|
@@ -37,7 +37,9 @@ import { findFeatureSources } from '../helpers/featureSource'
|
|
|
37
37
|
|
|
38
38
|
import { isJunk } from '../helpers/junk'
|
|
39
39
|
|
|
40
|
-
import {
|
|
40
|
+
import {
|
|
41
|
+
readCopies, untouched, itemKey, ignoredLog, IGNORED_LOG,
|
|
42
|
+
} from './copies'
|
|
41
43
|
import type { CopyRecord } from './copies'
|
|
42
44
|
|
|
43
45
|
|
|
@@ -111,6 +113,9 @@ type DoctorReport = {
|
|
|
111
113
|
// Per item with findings, keyed `<kind>/<name>`.
|
|
112
114
|
byItem: Record<string, ItemDrift>
|
|
113
115
|
|
|
116
|
+
// `.sdk/.gitignore` hides the copy record from git. Informational.
|
|
117
|
+
ignoredLog: boolean
|
|
118
|
+
|
|
114
119
|
ok: boolean
|
|
115
120
|
}
|
|
116
121
|
|
|
@@ -278,11 +283,16 @@ async function doctor(
|
|
|
278
283
|
forked: [], edited: [], stale: [], missing: [], additive: [],
|
|
279
284
|
superseded: [], unwired: [], orphanModel: [],
|
|
280
285
|
resyncPending: [], aliasedDiff: [],
|
|
281
|
-
outdated: [], unrecorded: [], byItem: {}, ok: true,
|
|
286
|
+
outdated: [], unrecorded: [], byItem: {}, ignoredLog: false, ok: true,
|
|
282
287
|
}
|
|
283
288
|
|
|
284
289
|
const copies = readCopies(fs, root)
|
|
285
290
|
|
|
291
|
+
report.ignoredLog = ignoredLog(fs, root)
|
|
292
|
+
if (report.ignoredLog) {
|
|
293
|
+
log.warn({ point: 'doctor-copies-ignored', note: IGNORED_LOG })
|
|
294
|
+
}
|
|
295
|
+
|
|
286
296
|
report.superseded = supersededFiles(actx)
|
|
287
297
|
|
|
288
298
|
report.orphanModel = orphanModelFiles(actx)
|
|
@@ -1074,7 +1084,7 @@ function copyWarnings(report: DoctorReport): string[] {
|
|
|
1074
1084
|
}
|
|
1075
1085
|
}
|
|
1076
1086
|
|
|
1077
|
-
const lines: string[] = []
|
|
1087
|
+
const lines: string[] = report.ignoredLog ? [IGNORED_LOG] : []
|
|
1078
1088
|
|
|
1079
1089
|
for (const [key, group] of groups) {
|
|
1080
1090
|
const [what, command] = key.split('\n')
|
package/src/action/package.ts
CHANGED
|
@@ -23,13 +23,16 @@ import type { Manifest, Finding } from '../helpers/manifest'
|
|
|
23
23
|
|
|
24
24
|
import { satisfies } from '../helpers/semver'
|
|
25
25
|
|
|
26
|
+
import { npmCommand } from '../helpers/npm'
|
|
27
|
+
import type { NpmCommand, NpmHost } from '../helpers/npm'
|
|
28
|
+
|
|
26
29
|
import { KINDS, kindDef } from './kind'
|
|
27
30
|
|
|
28
31
|
import { cmd_package_check } from './check'
|
|
29
32
|
|
|
30
33
|
import { doctor } from './doctor'
|
|
31
34
|
|
|
32
|
-
import {
|
|
35
|
+
import { COPY_LOG } from './copies'
|
|
33
36
|
|
|
34
37
|
import { resolveSource, registerInstalled, nameConflict } from './resolve'
|
|
35
38
|
import type { Source } from './resolve'
|
|
@@ -647,7 +650,8 @@ async function preCheck(
|
|
|
647
650
|
point: 'package-update-outdated', package: pkgname,
|
|
648
651
|
files: report.outdated.length,
|
|
649
652
|
note: pkgname + ': ' + report.outdated.length + ' outdated file(s) ' +
|
|
650
|
-
'will be refreshed; ' +
|
|
653
|
+
'will be refreshed; .sdk/' + COPY_LOG + ' shows nothing in them ' +
|
|
654
|
+
'was changed'
|
|
651
655
|
})
|
|
652
656
|
}
|
|
653
657
|
|
|
@@ -675,10 +679,10 @@ async function preCheck(
|
|
|
675
679
|
'source, so updating would overwrite them:\n ' + changed.join('\n ') +
|
|
676
680
|
(0 === edited.length ? '' :
|
|
677
681
|
'\n\n ' + edited.length + ' of them changed in this project after ' +
|
|
678
|
-
'an add wrote them (' +
|
|
679
|
-
'would discard those edits.') +
|
|
682
|
+
'an add wrote them (.sdk/' + COPY_LOG + ' records what it wrote), so ' +
|
|
683
|
+
'updating would discard those edits.') +
|
|
680
684
|
(0 === unknown.length ? '' :
|
|
681
|
-
'\n\n ' + unknown.length + ' of them predate ' +
|
|
685
|
+
'\n\n ' + unknown.length + ' of them predate .sdk/' + COPY_LOG + ', so ' +
|
|
682
686
|
'nothing tells these two apart:' +
|
|
683
687
|
'\n - they are LOCAL EDITS, and `--force` will discard them;' +
|
|
684
688
|
'\n - or ' + pkgname + ' was already updated out of band (an ' +
|
|
@@ -756,10 +760,8 @@ async function npmFetch(pkgname: string, actx: ActionContext) {
|
|
|
756
760
|
})
|
|
757
761
|
|
|
758
762
|
try {
|
|
759
|
-
const
|
|
760
|
-
|
|
761
|
-
npmFetchArgs(pkgname),
|
|
762
|
-
{ cwd, maxBuffer: 64 * 1024 * 1024 })
|
|
763
|
+
const npm = npmFetchCommand(pkgname)
|
|
764
|
+
const out = await run(npm.file, npm.args, { cwd, maxBuffer: 64 * 1024 * 1024 })
|
|
763
765
|
|
|
764
766
|
actx.log.debug({
|
|
765
767
|
point: 'package-update-fetched', package: pkgname,
|
|
@@ -784,6 +786,11 @@ function npmFetchArgs(pkgname: string): string[] {
|
|
|
784
786
|
}
|
|
785
787
|
|
|
786
788
|
|
|
789
|
+
function npmFetchCommand(pkgname: string, host?: NpmHost): NpmCommand {
|
|
790
|
+
return npmCommand('npm', npmFetchArgs(pkgname), host)
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
|
|
787
794
|
function validateFetched(
|
|
788
795
|
pkgname: string, installed: Installed[], actx: ActionContext,
|
|
789
796
|
) {
|
|
@@ -968,6 +975,7 @@ export {
|
|
|
968
975
|
package_update,
|
|
969
976
|
installedFrom,
|
|
970
977
|
npmFetchArgs,
|
|
978
|
+
npmFetchCommand,
|
|
971
979
|
resolvePackage,
|
|
972
980
|
selectItems,
|
|
973
981
|
parseAliases,
|
package/src/action/resolve.ts
CHANGED
|
@@ -310,6 +310,44 @@ function isBare(ref: string): boolean {
|
|
|
310
310
|
}
|
|
311
311
|
|
|
312
312
|
|
|
313
|
+
// Whether an item's recorded provenance leads back to this package's own
|
|
314
|
+
// scaffold, read the way resolveSource reads the ref recordedRef rebuilds: a
|
|
315
|
+
// bare ref resolves to BUNDLED, any other to the folder its directory names.
|
|
316
|
+
function resolvesBundled(declared: any, name: string): boolean {
|
|
317
|
+
const ref = recordedRef(declared, name) ?? name
|
|
318
|
+
return isBare(ref) ||
|
|
319
|
+
BUNDLED === normaliseBase(Path.join(Path.dirname(ref), '.sdk'))
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
type TargetOrigins = {
|
|
324
|
+
bundled: string[]
|
|
325
|
+
external: { name: string, from: string }[]
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
function targetOrigins(model: any): TargetOrigins {
|
|
330
|
+
const targets = kindCollection(model, 'target')
|
|
331
|
+
const origins: TargetOrigins = { bundled: [], external: [] }
|
|
332
|
+
|
|
333
|
+
for (const name of Object.keys(targets).sort()) {
|
|
334
|
+
const target = targets[name]
|
|
335
|
+
if (null == target || 'object' !== typeof target || false === target.active) {
|
|
336
|
+
continue
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
if (resolvesBundled(target, name)) {
|
|
340
|
+
origins.bundled.push(name)
|
|
341
|
+
}
|
|
342
|
+
else {
|
|
343
|
+
origins.external.push({ name, from: normaliseBase(target.base) })
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
return origins
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
|
|
313
351
|
function normaliseBase(base: string): string {
|
|
314
352
|
return Path.normalize(String(base ?? '')).split(Path.sep).join('/')
|
|
315
353
|
}
|
|
@@ -322,12 +360,15 @@ function capitalise(s: string): string {
|
|
|
322
360
|
|
|
323
361
|
export type {
|
|
324
362
|
Source,
|
|
363
|
+
TargetOrigins,
|
|
325
364
|
}
|
|
326
365
|
|
|
327
366
|
export {
|
|
328
367
|
resolveSource,
|
|
329
368
|
recordedRef,
|
|
330
369
|
isBare,
|
|
370
|
+
resolvesBundled,
|
|
371
|
+
targetOrigins,
|
|
331
372
|
registerInstalled,
|
|
332
373
|
nameConflict,
|
|
333
374
|
lastSegment,
|
package/src/admin/npm-trust.ts
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
import { spawnSync } from 'node:child_process'
|
|
4
4
|
|
|
5
|
+
import { npmCommand } from '../helpers/npm'
|
|
6
|
+
|
|
5
7
|
|
|
6
8
|
type Mode = 'setup' | 'check' | 'dry-run'
|
|
7
9
|
|
|
@@ -282,9 +284,9 @@ function npmFailure(action: string, stderr: string): string {
|
|
|
282
284
|
|
|
283
285
|
// An npm without the command still exits 0 from `npm trust --help`, printing
|
|
284
286
|
// "Unknown command", so only the usage text tells a capable npm apart.
|
|
285
|
-
function trustCapableNpm(): string[] {
|
|
286
|
-
const
|
|
287
|
-
const probe = spawnSync(
|
|
287
|
+
function trustCapableNpm(): ['npm'] | ['npx', ...string[]] {
|
|
288
|
+
const npm = npmCommand('npm', ['trust', '--help'])
|
|
289
|
+
const probe = spawnSync(npm.file, npm.args, { encoding: 'utf8' })
|
|
288
290
|
return /npm trust github/.test(String(probe.stdout || '') + String(probe.stderr || '')) ?
|
|
289
291
|
['npm'] : ['npx', '--yes', 'npm@latest']
|
|
290
292
|
}
|
|
@@ -293,18 +295,17 @@ function trustCapableNpm(): string[] {
|
|
|
293
295
|
// A captured call has no terminal, so npm raises EOTP instead of prompting;
|
|
294
296
|
// the mutating calls keep the terminal and can prompt.
|
|
295
297
|
function npmPort(otp?: string): NpmPort {
|
|
296
|
-
const
|
|
297
|
-
const shell = 'win32' === process.platform
|
|
298
|
+
const [tool, ...lead] = trustCapableNpm()
|
|
298
299
|
const otpArgs = null == otp ? [] : ['--otp', otp]
|
|
299
300
|
|
|
300
301
|
const call = (args: string[], capture: boolean): string => {
|
|
301
|
-
const
|
|
302
|
+
const npm = npmCommand(tool, [...lead, ...args, ...otpArgs])
|
|
303
|
+
const res = spawnSync(npm.file, npm.args, {
|
|
302
304
|
encoding: 'utf8',
|
|
303
305
|
stdio: capture ? ['ignore', 'pipe', 'pipe'] : 'inherit',
|
|
304
|
-
shell,
|
|
305
306
|
})
|
|
306
307
|
if (null != res.error) {
|
|
307
|
-
throw new Error(`could not run ${
|
|
308
|
+
throw new Error(`could not run ${tool}: ${res.error.message}`)
|
|
308
309
|
}
|
|
309
310
|
if (0 !== res.status) {
|
|
310
311
|
throw new Error(npmFailure(`npm ${args.slice(0, 3).join(' ')}`, String(res.stderr || '')))
|
package/src/cmp/AgentGuide.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
2
|
+
import { Content, File } from 'jostraca'
|
|
3
|
+
import { cmp } from '../helpers/component'
|
|
3
4
|
|
|
4
|
-
import {
|
|
5
|
+
import { optionalComponent } from '../helpers/optional'
|
|
5
6
|
|
|
6
7
|
import {
|
|
7
8
|
activeFeatures,
|
|
@@ -108,7 +109,7 @@ the runtime under \`.sdk/tm/${lang}/feature/\` and regenerate.
|
|
|
108
109
|
}
|
|
109
110
|
|
|
110
111
|
const AgentGuide_sdk =
|
|
111
|
-
|
|
112
|
+
optionalComponent(ctx$, target, 'AgentGuide')
|
|
112
113
|
if (AgentGuide_sdk) {
|
|
113
114
|
AgentGuide_sdk['AgentGuide']({ target })
|
|
114
115
|
}
|