@voxgig/sdkgen 1.2.1 → 1.3.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.
Files changed (345) hide show
  1. package/bin/voxgig-sdkgen +2 -2
  2. package/dist/action/action.d.ts +3 -1
  3. package/dist/action/action.js +26 -10
  4. package/dist/action/action.js.map +1 -1
  5. package/dist/action/feature.js +9 -8
  6. package/dist/action/feature.js.map +1 -1
  7. package/dist/action/target.d.ts +7 -1
  8. package/dist/action/target.js +22 -13
  9. package/dist/action/target.js.map +1 -1
  10. package/dist/cmp/Changelog.d.ts +2 -0
  11. package/dist/cmp/Changelog.js +30 -0
  12. package/dist/cmp/Changelog.js.map +1 -0
  13. package/dist/cmp/Deploy.d.ts +2 -0
  14. package/dist/cmp/Deploy.js +227 -0
  15. package/dist/cmp/Deploy.js.map +1 -0
  16. package/dist/cmp/FeatureHook.js +5 -6
  17. package/dist/cmp/FeatureHook.js.map +1 -1
  18. package/dist/cmp/License.d.ts +2 -0
  19. package/dist/cmp/License.js +44 -0
  20. package/dist/cmp/License.js.map +1 -0
  21. package/dist/cmp/Readme.js +2 -0
  22. package/dist/cmp/Readme.js.map +1 -1
  23. package/dist/cmp/ReadmeErrors.d.ts +2 -0
  24. package/dist/cmp/ReadmeErrors.js +210 -0
  25. package/dist/cmp/ReadmeErrors.js.map +1 -0
  26. package/dist/cmp/ReadmeExplanation.js +213 -223
  27. package/dist/cmp/ReadmeExplanation.js.map +1 -1
  28. package/dist/cmp/ReadmeModel.js +6 -1
  29. package/dist/cmp/ReadmeModel.js.map +1 -1
  30. package/dist/cmp/ReadmeTop.js +389 -82
  31. package/dist/cmp/ReadmeTop.js.map +1 -1
  32. package/dist/cmp/Security.d.ts +2 -0
  33. package/dist/cmp/Security.js +36 -0
  34. package/dist/cmp/Security.js.map +1 -0
  35. package/dist/helpers/canonType.d.ts +7 -0
  36. package/dist/helpers/canonType.js +74 -0
  37. package/dist/helpers/canonType.js.map +1 -0
  38. package/dist/helpers/collectDeps.d.ts +3 -2
  39. package/dist/helpers/collectDeps.js.map +1 -1
  40. package/dist/helpers/naming.d.ts +3 -0
  41. package/dist/helpers/naming.js +51 -0
  42. package/dist/helpers/naming.js.map +1 -0
  43. package/dist/helpers/opExample.d.ts +13 -0
  44. package/dist/helpers/opExample.js +149 -0
  45. package/dist/helpers/opExample.js.map +1 -0
  46. package/dist/helpers/opShape.d.ts +18 -0
  47. package/dist/helpers/opShape.js +225 -0
  48. package/dist/helpers/opShape.js.map +1 -0
  49. package/dist/helpers/packageMeta.d.ts +27 -0
  50. package/dist/helpers/packageMeta.js +224 -0
  51. package/dist/helpers/packageMeta.js.map +1 -0
  52. package/dist/sdkgen.d.ts +12 -2
  53. package/dist/sdkgen.js +60 -20
  54. package/dist/sdkgen.js.map +1 -1
  55. package/dist/tsconfig.tsbuildinfo +1 -1
  56. package/dist/types.d.ts +65 -2
  57. package/dist/types.js.map +1 -1
  58. package/dist/utility.d.ts +2 -1
  59. package/dist/utility.js +39 -11
  60. package/dist/utility.js.map +1 -1
  61. package/model/sdkgen.aontu +137 -0
  62. package/package.json +11 -5
  63. package/project/.sdk/model/feature/feature-index.aontu +5 -0
  64. package/project/.sdk/model/target/go-cli.aontu +47 -0
  65. package/project/.sdk/model/target/go-mcp.aontu +41 -0
  66. package/project/.sdk/model/target/go.aontu +28 -0
  67. package/project/.sdk/model/target/{js.jsonic → js.aontu} +13 -0
  68. package/project/.sdk/model/target/{lua.jsonic → lua.aontu} +13 -0
  69. package/project/.sdk/model/target/{php.jsonic → php.aontu} +13 -0
  70. package/project/.sdk/model/target/{py.jsonic → py.aontu} +13 -0
  71. package/project/.sdk/model/target/{rb.jsonic → rb.aontu} +13 -0
  72. package/project/.sdk/model/target/{ts.jsonic → ts.aontu} +13 -0
  73. package/project/.sdk/src/cmp/go/Config_go.ts +3 -2
  74. package/project/.sdk/src/cmp/go/EntityOperation_go.ts +1 -0
  75. package/project/.sdk/src/cmp/go/EntityTypes_go.ts +197 -0
  76. package/project/.sdk/src/cmp/go/Entity_go.ts +2 -1
  77. package/project/.sdk/src/cmp/go/MainEntity_go.ts +6 -0
  78. package/project/.sdk/src/cmp/go/Main_go.ts +23 -3
  79. package/project/.sdk/src/cmp/go/Package_go.ts +1 -1
  80. package/project/.sdk/src/cmp/go/ReadmeEntity_go.ts +48 -10
  81. package/project/.sdk/src/cmp/go/ReadmeExamplesTest_go.ts +688 -0
  82. package/project/.sdk/src/cmp/go/ReadmeExplanation_go.ts +1 -1
  83. package/project/.sdk/src/cmp/go/ReadmeHowto_go.ts +52 -8
  84. package/project/.sdk/src/cmp/go/ReadmeInstall_go.ts +11 -6
  85. package/project/.sdk/src/cmp/go/ReadmeIntro_go.ts +40 -1
  86. package/project/.sdk/src/cmp/go/ReadmeModel_go.ts +67 -17
  87. package/project/.sdk/src/cmp/go/ReadmeOptions_go.ts +4 -3
  88. package/project/.sdk/src/cmp/go/ReadmeQuick_go.ts +146 -116
  89. package/project/.sdk/src/cmp/go/ReadmeRef_go.ts +87 -21
  90. package/project/.sdk/src/cmp/go/ReadmeTopHowto_go.ts +4 -0
  91. package/project/.sdk/src/cmp/go/ReadmeTopQuick_go.ts +75 -16
  92. package/project/.sdk/src/cmp/go/ReadmeTopTest_go.ts +35 -5
  93. package/project/.sdk/src/cmp/go/TestEntity_go.ts +1 -1
  94. package/project/.sdk/src/cmp/go/Test_go.ts +5 -1
  95. package/project/.sdk/src/cmp/go/fragment/Entity.fragment.go +21 -0
  96. package/project/.sdk/src/cmp/go/fragment/EntityCreateOp.fragment.go +11 -0
  97. package/project/.sdk/src/cmp/go/fragment/EntityListOp.fragment.go +11 -0
  98. package/project/.sdk/src/cmp/go/fragment/EntityLoadOp.fragment.go +11 -0
  99. package/project/.sdk/src/cmp/go/fragment/EntityRemoveOp.fragment.go +11 -0
  100. package/project/.sdk/src/cmp/go/fragment/EntityUpdateOp.fragment.go +11 -0
  101. package/project/.sdk/src/cmp/go/utility_go.ts +70 -0
  102. package/project/.sdk/src/cmp/go-cli/Main_go-cli.ts +195 -0
  103. package/project/.sdk/src/cmp/go-cli/fragment/main.fragment.go +106 -0
  104. package/project/.sdk/src/cmp/go-cli/fragment/words.fragment.go +132 -0
  105. package/project/.sdk/src/cmp/go-mcp/Main_go-mcp.ts +184 -0
  106. package/project/.sdk/src/cmp/go-mcp/fragment/main.fragment.go +68 -0
  107. package/project/.sdk/src/cmp/go-mcp/fragment/tools.fragment.go +114 -0
  108. package/project/.sdk/src/cmp/js/Config_js.ts +3 -6
  109. package/project/.sdk/src/cmp/js/EntityTypes_js.ts +111 -0
  110. package/project/.sdk/src/cmp/js/MainEntity_js.ts +1 -0
  111. package/project/.sdk/src/cmp/js/Main_js.ts +3 -0
  112. package/project/.sdk/src/cmp/js/Package_js.ts +16 -7
  113. package/project/.sdk/src/cmp/js/ReadmeEntity_js.ts +33 -10
  114. package/project/.sdk/src/cmp/js/ReadmeExplanation_js.ts +2 -2
  115. package/project/.sdk/src/cmp/js/ReadmeHowto_js.ts +52 -11
  116. package/project/.sdk/src/cmp/js/ReadmeIntro_js.ts +39 -1
  117. package/project/.sdk/src/cmp/js/ReadmeModel_js.ts +50 -18
  118. package/project/.sdk/src/cmp/js/ReadmeOptions_js.ts +4 -3
  119. package/project/.sdk/src/cmp/js/ReadmeQuick_js.ts +70 -20
  120. package/project/.sdk/src/cmp/js/ReadmeRef_js.ts +50 -16
  121. package/project/.sdk/src/cmp/js/ReadmeTopHowto_js.ts +3 -0
  122. package/project/.sdk/src/cmp/js/ReadmeTopQuick_js.ts +45 -19
  123. package/project/.sdk/src/cmp/js/ReadmeTopTest_js.ts +35 -3
  124. package/project/.sdk/src/cmp/js/fragment/EntityCreateOp.fragment.js +5 -0
  125. package/project/.sdk/src/cmp/js/fragment/EntityListOp.fragment.js +5 -0
  126. package/project/.sdk/src/cmp/js/fragment/EntityLoadOp.fragment.js +5 -0
  127. package/project/.sdk/src/cmp/js/fragment/EntityRemoveOp.fragment.js +5 -0
  128. package/project/.sdk/src/cmp/js/fragment/EntityUpdateOp.fragment.js +5 -0
  129. package/project/.sdk/src/cmp/js/utility_js.ts +57 -0
  130. package/project/.sdk/src/cmp/lua/Config_lua.ts +3 -2
  131. package/project/.sdk/src/cmp/lua/EntityTypes_lua.ts +113 -0
  132. package/project/.sdk/src/cmp/lua/MainEntity_lua.ts +8 -0
  133. package/project/.sdk/src/cmp/lua/Main_lua.ts +4 -0
  134. package/project/.sdk/src/cmp/lua/Package_lua.ts +23 -4
  135. package/project/.sdk/src/cmp/lua/ReadmeEntity_lua.ts +50 -13
  136. package/project/.sdk/src/cmp/lua/ReadmeExamplesTest_lua.ts +293 -0
  137. package/project/.sdk/src/cmp/lua/ReadmeHowto_lua.ts +46 -8
  138. package/project/.sdk/src/cmp/lua/ReadmeInstall_lua.ts +19 -3
  139. package/project/.sdk/src/cmp/lua/ReadmeIntro_lua.ts +38 -1
  140. package/project/.sdk/src/cmp/lua/ReadmeModel_lua.ts +51 -16
  141. package/project/.sdk/src/cmp/lua/ReadmeOptions_lua.ts +4 -3
  142. package/project/.sdk/src/cmp/lua/ReadmeQuick_lua.ts +156 -21
  143. package/project/.sdk/src/cmp/lua/ReadmeRef_lua.ts +71 -23
  144. package/project/.sdk/src/cmp/lua/ReadmeTopQuick_lua.ts +46 -9
  145. package/project/.sdk/src/cmp/lua/ReadmeTopTest_lua.ts +43 -5
  146. package/project/.sdk/src/cmp/lua/Test_lua.ts +4 -0
  147. package/project/.sdk/src/cmp/lua/fragment/EntityCreateOp.fragment.lua +4 -0
  148. package/project/.sdk/src/cmp/lua/fragment/EntityListOp.fragment.lua +4 -0
  149. package/project/.sdk/src/cmp/lua/fragment/EntityLoadOp.fragment.lua +4 -0
  150. package/project/.sdk/src/cmp/lua/fragment/EntityRemoveOp.fragment.lua +4 -0
  151. package/project/.sdk/src/cmp/lua/fragment/EntityUpdateOp.fragment.lua +4 -0
  152. package/project/.sdk/src/cmp/php/Config_php.ts +3 -2
  153. package/project/.sdk/src/cmp/php/EntityTypes_php.ts +142 -0
  154. package/project/.sdk/src/cmp/php/MainEntity_php.ts +18 -1
  155. package/project/.sdk/src/cmp/php/Main_php.ts +4 -0
  156. package/project/.sdk/src/cmp/php/Package_php.ts +18 -7
  157. package/project/.sdk/src/cmp/php/ReadmeEntity_php.ts +46 -14
  158. package/project/.sdk/src/cmp/php/ReadmeExamplesTest_php.ts +401 -0
  159. package/project/.sdk/src/cmp/php/ReadmeHowto_php.ts +56 -13
  160. package/project/.sdk/src/cmp/php/ReadmeInstall_php.ts +15 -3
  161. package/project/.sdk/src/cmp/php/ReadmeIntro_php.ts +40 -1
  162. package/project/.sdk/src/cmp/php/ReadmeModel_php.ts +26 -8
  163. package/project/.sdk/src/cmp/php/ReadmeOptions_php.ts +4 -3
  164. package/project/.sdk/src/cmp/php/ReadmeQuick_php.ts +159 -25
  165. package/project/.sdk/src/cmp/php/ReadmeRef_php.ts +90 -45
  166. package/project/.sdk/src/cmp/php/ReadmeTopHowto_php.ts +1 -1
  167. package/project/.sdk/src/cmp/php/ReadmeTopQuick_php.ts +43 -11
  168. package/project/.sdk/src/cmp/php/ReadmeTopTest_php.ts +52 -11
  169. package/project/.sdk/src/cmp/php/TestDirect_php.ts +9 -9
  170. package/project/.sdk/src/cmp/php/TestEntity_php.ts +6 -12
  171. package/project/.sdk/src/cmp/php/Test_php.ts +4 -0
  172. package/project/.sdk/src/cmp/php/fragment/Entity.fragment.php +13 -1
  173. package/project/.sdk/src/cmp/php/fragment/EntityCreateOp.fragment.php +10 -1
  174. package/project/.sdk/src/cmp/php/fragment/EntityListOp.fragment.php +10 -1
  175. package/project/.sdk/src/cmp/php/fragment/EntityLoadOp.fragment.php +10 -1
  176. package/project/.sdk/src/cmp/php/fragment/EntityRemoveOp.fragment.php +10 -1
  177. package/project/.sdk/src/cmp/php/fragment/EntityUpdateOp.fragment.php +10 -1
  178. package/project/.sdk/src/cmp/php/fragment/Main.fragment.php +22 -14
  179. package/project/.sdk/src/cmp/py/Config_py.ts +3 -2
  180. package/project/.sdk/src/cmp/py/EntityTypes_py.ts +184 -0
  181. package/project/.sdk/src/cmp/py/Entity_py.ts +27 -0
  182. package/project/.sdk/src/cmp/py/MainEntity_py.ts +2 -1
  183. package/project/.sdk/src/cmp/py/Main_py.ts +35 -0
  184. package/project/.sdk/src/cmp/py/Package_py.ts +24 -3
  185. package/project/.sdk/src/cmp/py/ReadmeEntity_py.ts +48 -14
  186. package/project/.sdk/src/cmp/py/ReadmeExamplesTest_py.ts +626 -0
  187. package/project/.sdk/src/cmp/py/ReadmeHowto_py.ts +53 -14
  188. package/project/.sdk/src/cmp/py/ReadmeInstall_py.ts +19 -3
  189. package/project/.sdk/src/cmp/py/ReadmeIntro_py.ts +48 -1
  190. package/project/.sdk/src/cmp/py/ReadmeModel_py.ts +28 -10
  191. package/project/.sdk/src/cmp/py/ReadmeOptions_py.ts +4 -3
  192. package/project/.sdk/src/cmp/py/ReadmeQuick_py.ts +150 -27
  193. package/project/.sdk/src/cmp/py/ReadmeRef_py.ts +86 -40
  194. package/project/.sdk/src/cmp/py/ReadmeTopHowto_py.ts +1 -1
  195. package/project/.sdk/src/cmp/py/ReadmeTopQuick_py.ts +45 -11
  196. package/project/.sdk/src/cmp/py/ReadmeTopTest_py.ts +43 -5
  197. package/project/.sdk/src/cmp/py/TestDirect_py.ts +7 -9
  198. package/project/.sdk/src/cmp/py/TestEntity_py.ts +6 -14
  199. package/project/.sdk/src/cmp/py/Test_py.ts +4 -0
  200. package/project/.sdk/src/cmp/py/fragment/Entity.fragment.py +5 -2
  201. package/project/.sdk/src/cmp/py/fragment/EntityCreateOp.fragment.py +1 -1
  202. package/project/.sdk/src/cmp/py/fragment/EntityListOp.fragment.py +5 -1
  203. package/project/.sdk/src/cmp/py/fragment/EntityLoadOp.fragment.py +6 -1
  204. package/project/.sdk/src/cmp/py/fragment/EntityRemoveOp.fragment.py +6 -1
  205. package/project/.sdk/src/cmp/py/fragment/EntityUpdateOp.fragment.py +1 -1
  206. package/project/.sdk/src/cmp/py/fragment/Main.fragment.py +17 -10
  207. package/project/.sdk/src/cmp/rb/Config_rb.ts +3 -2
  208. package/project/.sdk/src/cmp/rb/EntityTypes_rb.ts +136 -0
  209. package/project/.sdk/src/cmp/rb/MainEntity_rb.ts +1 -0
  210. package/project/.sdk/src/cmp/rb/Main_rb.ts +4 -0
  211. package/project/.sdk/src/cmp/rb/Package_rb.ts +34 -7
  212. package/project/.sdk/src/cmp/rb/ReadmeEntity_rb.ts +47 -13
  213. package/project/.sdk/src/cmp/rb/ReadmeExamplesTest_rb.ts +289 -0
  214. package/project/.sdk/src/cmp/rb/ReadmeHowto_rb.ts +72 -21
  215. package/project/.sdk/src/cmp/rb/ReadmeInstall_rb.ts +16 -4
  216. package/project/.sdk/src/cmp/rb/ReadmeIntro_rb.ts +40 -1
  217. package/project/.sdk/src/cmp/rb/ReadmeModel_rb.ts +29 -12
  218. package/project/.sdk/src/cmp/rb/ReadmeOptions_rb.ts +4 -3
  219. package/project/.sdk/src/cmp/rb/ReadmeQuick_rb.ts +163 -25
  220. package/project/.sdk/src/cmp/rb/ReadmeRef_rb.ts +85 -40
  221. package/project/.sdk/src/cmp/rb/ReadmeTopHowto_rb.ts +1 -1
  222. package/project/.sdk/src/cmp/rb/ReadmeTopQuick_rb.ts +45 -11
  223. package/project/.sdk/src/cmp/rb/ReadmeTopTest_rb.ts +54 -11
  224. package/project/.sdk/src/cmp/rb/TestDirect_rb.ts +9 -9
  225. package/project/.sdk/src/cmp/rb/TestEntity_rb.ts +6 -12
  226. package/project/.sdk/src/cmp/rb/Test_rb.ts +4 -0
  227. package/project/.sdk/src/cmp/rb/fragment/Entity.fragment.rb +2 -0
  228. package/project/.sdk/src/cmp/rb/fragment/EntityCreateOp.fragment.rb +5 -0
  229. package/project/.sdk/src/cmp/rb/fragment/EntityListOp.fragment.rb +20 -2
  230. package/project/.sdk/src/cmp/rb/fragment/EntityLoadOp.fragment.rb +8 -1
  231. package/project/.sdk/src/cmp/rb/fragment/EntityRemoveOp.fragment.rb +6 -1
  232. package/project/.sdk/src/cmp/rb/fragment/EntityUpdateOp.fragment.rb +5 -0
  233. package/project/.sdk/src/cmp/rb/fragment/Main.fragment.rb +24 -8
  234. package/project/.sdk/src/cmp/ts/Config_ts.ts +3 -6
  235. package/project/.sdk/src/cmp/ts/EntityTypes_ts.ts +105 -0
  236. package/project/.sdk/src/cmp/ts/Entity_ts.ts +17 -1
  237. package/project/.sdk/src/cmp/ts/MainEntity_ts.ts +1 -0
  238. package/project/.sdk/src/cmp/ts/Main_ts.ts +6 -0
  239. package/project/.sdk/src/cmp/ts/Package_ts.ts +14 -7
  240. package/project/.sdk/src/cmp/ts/ReadmeEntity_ts.ts +32 -10
  241. package/project/.sdk/src/cmp/ts/ReadmeExampleTest_ts.ts +81 -0
  242. package/project/.sdk/src/cmp/ts/ReadmeExamplesTest_ts.ts +446 -0
  243. package/project/.sdk/src/cmp/ts/ReadmeExplanation_ts.ts +2 -2
  244. package/project/.sdk/src/cmp/ts/ReadmeHowto_ts.ts +57 -11
  245. package/project/.sdk/src/cmp/ts/ReadmeInstall_ts.ts +19 -6
  246. package/project/.sdk/src/cmp/ts/ReadmeIntro_ts.ts +39 -1
  247. package/project/.sdk/src/cmp/ts/ReadmeModel_ts.ts +50 -18
  248. package/project/.sdk/src/cmp/ts/ReadmeOptions_ts.ts +4 -3
  249. package/project/.sdk/src/cmp/ts/ReadmeQuick_ts.ts +141 -48
  250. package/project/.sdk/src/cmp/ts/ReadmeRef_ts.ts +50 -16
  251. package/project/.sdk/src/cmp/ts/ReadmeTopHowto_ts.ts +3 -0
  252. package/project/.sdk/src/cmp/ts/ReadmeTopQuick_ts.ts +58 -19
  253. package/project/.sdk/src/cmp/ts/ReadmeTopTest_ts.ts +35 -3
  254. package/project/.sdk/src/cmp/ts/TestEntity_ts.ts +2 -2
  255. package/project/.sdk/src/cmp/ts/Test_ts.ts +5 -0
  256. package/project/.sdk/src/cmp/ts/fragment/Entity.fragment.ts +3 -1
  257. package/project/.sdk/src/cmp/ts/fragment/EntityBase.fragment.ts +10 -5
  258. package/project/.sdk/src/cmp/ts/fragment/EntityCreateOp.fragment.ts +4 -2
  259. package/project/.sdk/src/cmp/ts/fragment/EntityListOp.fragment.ts +4 -2
  260. package/project/.sdk/src/cmp/ts/fragment/EntityLoadOp.fragment.ts +4 -2
  261. package/project/.sdk/src/cmp/ts/fragment/EntityRemoveOp.fragment.ts +4 -2
  262. package/project/.sdk/src/cmp/ts/fragment/EntityUpdateOp.fragment.ts +4 -2
  263. package/project/.sdk/src/cmp/ts/utility_ts.ts +59 -0
  264. package/project/.sdk/tm/go/LICENSE +1 -1
  265. package/project/.sdk/tm/go/Makefile +36 -1
  266. package/project/.sdk/tm/go/VERSION +1 -0
  267. package/project/.sdk/tm/go/core/context.go +12 -7
  268. package/project/.sdk/tm/go-cli/src/feature/README.md +6 -0
  269. package/project/.sdk/tm/go-cli/src/feature/base/.gitkeep +0 -0
  270. package/project/.sdk/tm/go-cli/src/feature/log/.gitkeep +0 -0
  271. package/project/.sdk/tm/go-cli/src/feature/test/.gitkeep +0 -0
  272. package/project/.sdk/tm/go-mcp/src/feature/README.md +6 -0
  273. package/project/.sdk/tm/go-mcp/src/feature/base/.gitkeep +0 -0
  274. package/project/.sdk/tm/go-mcp/src/feature/log/.gitkeep +0 -0
  275. package/project/.sdk/tm/go-mcp/src/feature/test/.gitkeep +0 -0
  276. package/project/.sdk/tm/js/LICENSE +1 -1
  277. package/project/.sdk/tm/js/Makefile +41 -0
  278. package/project/.sdk/tm/lua/LICENSE +1 -1
  279. package/project/.sdk/tm/lua/Makefile +40 -1
  280. package/project/.sdk/tm/lua/core/context.lua +13 -8
  281. package/project/.sdk/tm/php/LICENSE +1 -1
  282. package/project/.sdk/tm/php/Makefile +31 -1
  283. package/project/.sdk/tm/php/VERSION +1 -0
  284. package/project/.sdk/tm/php/core/Context.php +12 -6
  285. package/project/.sdk/tm/php/test/PrimaryUtilityTest.php +13 -4
  286. package/project/.sdk/tm/php/utility/Done.php +2 -2
  287. package/project/.sdk/tm/php/utility/MakeError.php +3 -3
  288. package/project/.sdk/tm/py/LICENSE +1 -1
  289. package/project/.sdk/tm/py/Makefile +34 -1
  290. package/project/.sdk/tm/py/core/context.py +12 -7
  291. package/project/.sdk/tm/py/test/test_primary_utility.py +15 -4
  292. package/project/.sdk/tm/py/test/test_struct_utility.py +1 -1
  293. package/project/.sdk/tm/py/utility/done.py +3 -1
  294. package/project/.sdk/tm/py/utility/make_error.py +2 -2
  295. package/project/.sdk/tm/rb/LICENSE +1 -1
  296. package/project/.sdk/tm/rb/Makefile +36 -2
  297. package/project/.sdk/tm/rb/core/context.rb +8 -3
  298. package/project/.sdk/tm/rb/test/primary_utility_test.rb +2 -2
  299. package/project/.sdk/tm/rb/utility/done.rb +3 -1
  300. package/project/.sdk/tm/rb/utility/make_error.rb +5 -2
  301. package/project/.sdk/tm/ts/LICENSE +1 -1
  302. package/project/.sdk/tm/ts/Makefile +42 -0
  303. package/project/.sdk/tm/ts/src/Context.ts +8 -3
  304. package/src/action/action.ts +30 -11
  305. package/src/action/feature.ts +12 -14
  306. package/src/action/target.ts +28 -17
  307. package/src/cmp/Changelog.ts +34 -0
  308. package/src/cmp/Deploy.ts +258 -0
  309. package/src/cmp/FeatureHook.ts +6 -8
  310. package/src/cmp/License.ts +49 -0
  311. package/src/cmp/Readme.ts +2 -0
  312. package/src/cmp/ReadmeErrors.ts +257 -0
  313. package/src/cmp/ReadmeExplanation.ts +250 -230
  314. package/src/cmp/ReadmeModel.ts +7 -2
  315. package/src/cmp/ReadmeTop.ts +411 -95
  316. package/src/cmp/Security.ts +41 -0
  317. package/src/helpers/canonType.ts +89 -0
  318. package/src/helpers/collectDeps.ts +5 -3
  319. package/src/helpers/naming.ts +59 -0
  320. package/src/helpers/opExample.ts +170 -0
  321. package/src/helpers/opShape.ts +274 -0
  322. package/src/helpers/packageMeta.ts +236 -0
  323. package/src/sdkgen.ts +91 -23
  324. package/src/tsconfig.json +1 -0
  325. package/src/types.ts +85 -2
  326. package/src/utility.ts +45 -11
  327. package/README.md +0 -2
  328. package/dist/action/lang.d.ts +0 -2
  329. package/dist/action/lang.js +0 -68
  330. package/dist/action/lang.js.map +0 -1
  331. package/dist/cmp/Hook.d.ts +0 -2
  332. package/dist/cmp/Hook.js +0 -10
  333. package/dist/cmp/Hook.js.map +0 -1
  334. package/dist/cmp/Top.d.ts +0 -2
  335. package/dist/cmp/Top.js +0 -23
  336. package/dist/cmp/Top.js.map +0 -1
  337. package/dist/prepare-openapi.d.ts +0 -2
  338. package/dist/prepare-openapi.js +0 -37
  339. package/dist/prepare-openapi.js.map +0 -1
  340. package/model/sdkgen.jsonic +0 -74
  341. package/project/.sdk/model/feature/feature-index.jsonic +0 -5
  342. package/project/.sdk/model/target/go.jsonic +0 -22
  343. package/project/.sdk/tm/go/utility/struct/go.mod +0 -3
  344. /package/project/.sdk/model/feature/{log.jsonic → log.aontu} +0 -0
  345. /package/project/.sdk/model/feature/{test.jsonic → test.aontu} +0 -0
package/dist/utility.js CHANGED
@@ -7,33 +7,61 @@ exports.SdkGenError = void 0;
7
7
  exports.resolvePath = resolvePath;
8
8
  exports.requirePath = requirePath;
9
9
  exports.isAuthActive = isAuthActive;
10
+ exports.resolveAuthPrefix = resolveAuthPrefix;
10
11
  const node_path_1 = __importDefault(require("node:path"));
11
12
  const apidef_1 = require("@voxgig/apidef");
12
13
  function resolvePath(ctx$, path) {
13
14
  const fullpath = node_path_1.default.join(ctx$.folder, '.sdk', 'dist', path);
14
15
  return fullpath;
15
16
  }
16
- // True unless the model explicitly declares main.kit.config.auth.active: false.
17
- // Used by templates to gate apikey-related code, docs, and examples for
18
- // public APIs that need no authentication.
17
+ // True unless the model declares auth off. Templates use this to gate
18
+ // apikey-related code, docs, and examples for public APIs that need no
19
+ // authentication. Two opt-outs, in priority order:
20
+ // 1. main.kit.info.auth: false (user-facing, set in api-info.aontu)
21
+ // 2. main.kit.config.auth.active: false
19
22
  function isAuthActive(model) {
23
+ const info = (0, apidef_1.getModelPath)(model, `main.${apidef_1.KIT}.info`, { only_active: false, required: false });
24
+ if (info && false === info.auth)
25
+ return false;
20
26
  const auth = (0, apidef_1.getModelPath)(model, `main.${apidef_1.KIT}.config.auth`, { only_active: false, required: false });
21
27
  return null == auth || false !== auth.active;
22
28
  }
29
+ // The credential prefix for the Authorization header value, resolved in
30
+ // priority order:
31
+ // 1. main.kit.config.auth.prefix (per-SDK user override)
32
+ // 2. main.kit.info.security.prefix (spec-derived, set by apidef from the
33
+ // API's securityScheme — e.g. 'OAuth' for Statuspage)
34
+ // 3. 'Bearer' (conventional fallback)
35
+ // '' is a valid resolved value: it means a raw credential with no prefix
36
+ // (e.g. an apiKey scheme in a custom header). Config generators for every
37
+ // language target must use this instead of hardcoding 'Bearer'.
38
+ function resolveAuthPrefix(model) {
39
+ const auth = (0, apidef_1.getModelPath)(model, `main.${apidef_1.KIT}.config.auth`, { only_active: false, required: false });
40
+ if (null != auth && null != auth.prefix)
41
+ return String(auth.prefix);
42
+ const security = (0, apidef_1.getModelPath)(model, `main.${apidef_1.KIT}.info.security`, { only_active: false, required: false });
43
+ if (null != security && null != security.prefix)
44
+ return String(security.prefix);
45
+ return 'Bearer';
46
+ }
23
47
  function requirePath(ctx$, path, flags) {
24
48
  const fullpath = resolvePath(ctx$, path);
25
49
  const ignore = null == flags?.ignore ? false : flags.ignore;
26
- try {
27
- return require(fullpath);
28
- }
29
- catch (err) {
30
- if (ignore) {
31
- ctx$.log.warn({ point: 'require-missing', path, note: path });
50
+ // When `ignore` is set, only swallow a genuine "module not found"
51
+ // resolution failure. A module that resolves but throws while loading
52
+ // (syntax error, runtime bug, or a missing *nested* dependency) must
53
+ // propagate — otherwise the optional component silently renders nothing
54
+ // and the real failure is invisible.
55
+ if (ignore) {
56
+ try {
57
+ require.resolve(fullpath);
32
58
  }
33
- else {
34
- throw err;
59
+ catch (err) {
60
+ ctx$.log.warn({ point: 'require-missing', path, note: path });
61
+ return undefined;
35
62
  }
36
63
  }
64
+ return require(fullpath);
37
65
  }
38
66
  class SdkGenError extends Error {
39
67
  constructor(...args) {
@@ -1 +1 @@
1
- {"version":3,"file":"utility.js","sourceRoot":"","sources":["../src/utility.ts"],"names":[],"mappings":";;;;;;AAmDE,kCAAW;AACX,kCAAW;AACX,oCAAY;AApDd,0DAA4B;AAI5B,2CAAkD;AAGlD,SAAS,WAAW,CAAC,IAAS,EAAE,IAAY;IAC1C,MAAM,QAAQ,GAAG,mBAAI,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,CAAA;IAC7D,OAAO,QAAQ,CAAA;AACjB,CAAC;AAGD,gFAAgF;AAChF,wEAAwE;AACxE,2CAA2C;AAC3C,SAAS,YAAY,CAAC,KAAU;IAC9B,MAAM,IAAI,GAAG,IAAA,qBAAY,EAAC,KAAK,EAAE,QAAQ,YAAG,cAAc,EACxD,EAAE,WAAW,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAA;IAC1C,OAAO,IAAI,IAAI,IAAI,IAAI,KAAK,KAAK,IAAI,CAAC,MAAM,CAAA;AAC9C,CAAC;AAGD,SAAS,WAAW,CAAC,IAAS,EAAE,IAAY,EAAE,KAA4B;IACxE,MAAM,QAAQ,GAAG,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;IACxC,MAAM,MAAM,GAAG,IAAI,IAAI,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAA;IAE3D,IAAI,CAAC;QACH,OAAO,OAAO,CAAC,QAAQ,CAAC,CAAA;IAC1B,CAAC;IACD,OAAO,GAAQ,EAAE,CAAC;QAChB,IAAI,MAAM,EAAE,CAAC;YACX,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,iBAAiB,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAA;QAC/D,CAAC;aACI,CAAC;YACJ,MAAM,GAAG,CAAA;QACX,CAAC;IACH,CAAC;AACH,CAAC;AAGD,MAAM,WAAY,SAAQ,KAAK;IAC7B,YAAY,GAAG,IAAW;QACxB,KAAK,CAAC,GAAG,IAAI,CAAC,CAAA;QACd,IAAI,CAAC,IAAI,GAAG,aAAa,CAAA;IAC3B,CAAC;CACF;AAOC,kCAAW"}
1
+ {"version":3,"file":"utility.js","sourceRoot":"","sources":["../src/utility.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,137 @@
1
+
2
+
3
+ main: def: {
4
+ desc: *'' | string
5
+ }
6
+
7
+
8
+ # Canonical order for language targets in generated documentation
9
+ # (top-level README, per-language docs links). Targets present in the
10
+ # SDK but not listed here are appended afterwards in spec-defined
11
+ # order. Override per-SDK by setting
12
+ # `main.kit.config.docs_order: ['py','ts',...]` in
13
+ # `<sdk>/.sdk/model/config.aontu`.
14
+ main: kit: config: docs_order: *['ts','py','php','go','rb','lua'] | [&: string]
15
+
16
+ main: kit: target: &: {
17
+ name: key()
18
+ active: *true | boolean
19
+ ext: string
20
+ comment: line: string
21
+ module: {
22
+ name: string
23
+ }
24
+ deps: &: {
25
+ active: *false | boolean
26
+ version: *'*' | string
27
+ }
28
+
29
+ # Publication: how (and whether) this port is released. Credentials are
30
+ # always injected by the aql key vault (never on disk or argv).
31
+ #
32
+ # Every port gets a git release tag `<prefix>/vX.Y.Z` (prefix defaults
33
+ # to the target name). Ports with a `registry` entry also publish a
34
+ # package to that registry — but only when the registry is active
35
+ # (`registry.state === 'active'`): registries are activated one at a
36
+ # time as each ecosystem is ready. Until then a port is 'pending'
37
+ # (declared + git-tag-published, but not yet uploaded to the registry).
38
+ # Tag-only ports (the go family: the Go proxy resolves from GitHub
39
+ # tags) simply leave `registry` unset — they are implicitly pending
40
+ # until their `<target>/vX.Y.Z` tag exists.
41
+ publish: {
42
+ # Git release tag (all ports).
43
+ tag: {
44
+ active: *true | boolean
45
+ prefix: *'' | string # '' -> target name
46
+ # Who implements the tag publish: 'port' delegates to the port's
47
+ # own Makefile publish recipe (which may do more, e.g. go proxy
48
+ # priming); 'root' uses the generated root tag-push recipe (for
49
+ # ports without a Makefile, e.g. go-cli / go-mcp).
50
+ via: *'port' | string
51
+ vault: {
52
+ recipe: *'github' | string # aql `vault exec --for=<recipe>=<alias>`
53
+ alias: *'github' | string # default vault alias for the token
54
+ }
55
+ }
56
+
57
+ # Package registry (omit for tag-only ports).
58
+ registry: {
59
+ # Publication state (tri-state):
60
+ # 'pending' — declared + git-tag-published, NOT yet on the
61
+ # registry (the default: READMEs point at the git
62
+ # tag, deploy publishes the tag only).
63
+ # 'active' — package is uploaded to the registry; READMEs show
64
+ # the real `npm install`/`pip install`/... command.
65
+ # 'inactive' — registry deliberately disabled (also tag-only).
66
+ # Kept as a plain string (default 'pending') rather than a literal
67
+ # disjunction to sidestep aontu's literal-disjunction fragility;
68
+ # code (packageMeta.registryState / Deploy) enforces the tri-state.
69
+ state: *'pending' | string
70
+ # Back-compat alias: `active: true` still means state === 'active'.
71
+ active: *false | boolean # real publishes refuse when not active
72
+ name: *'' | string # npm | pypi | packagist | rubygems | luarocks
73
+ url: *'' | string
74
+ package: *'' | string # registry package name ('' -> derived)
75
+ vault: {
76
+ recipe: *'' | string # aql --for preset (npm, pypi, gem, ...)
77
+ alias: *'' | string # vault alias ('' -> registry name)
78
+ env: *'' | string # raw env var to inject when no preset exists
79
+ }
80
+ }
81
+ }
82
+ }
83
+
84
+
85
+ main: kit: entity: &: {
86
+ name: key()
87
+ active: *true | boolean
88
+
89
+ alias: {}
90
+ }
91
+
92
+
93
+ main: kit: feature: &: {
94
+ name: key()
95
+ active: *false | boolean
96
+ title: string
97
+
98
+ # TODO: version '0.0.1' | semver # where semver is a string format type as per semver.org
99
+ version: *'0.0.1' | string
100
+
101
+ hook: &: {
102
+ active: *false | boolean
103
+ await: *false | boolean
104
+ }
105
+
106
+ hook: {
107
+ PostConstruct: {}
108
+ PostConstructEntity: {}
109
+ SetData: {}
110
+ GetData: {}
111
+ GetMatch: {}
112
+
113
+ PreTarget: {}
114
+ PreSpec: {}
115
+ PreRequest: {}
116
+ PreResponse: {}
117
+ PreResult: {}
118
+ PostOperation: {}
119
+ }
120
+
121
+ # Target specific structures
122
+ target: &: deps: &: {
123
+ active: *false | boolean
124
+ version: *'*' | string
125
+ }
126
+ }
127
+
128
+
129
+ main: kit: option: &: {
130
+ name: key()
131
+ active: *true | boolean
132
+ }
133
+
134
+
135
+
136
+
137
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voxgig/sdkgen",
3
- "version": "1.2.1",
3
+ "version": "1.3.2",
4
4
  "main": "dist/sdkgen.js",
5
5
  "type": "commonjs",
6
6
  "types": "dist/sdkgen.d.ts",
@@ -23,12 +23,18 @@
23
23
  "test-some": "node --enable-source-maps --test-name-pattern=\"$npm_config_pattern\" --test dist-test/**/*.test.js",
24
24
  "watch": "tsc --build src test -w",
25
25
  "build": "tsc --build src test",
26
- "clean": "rm -rf node_modules yarn.lock package-lock.json",
26
+ "clean": "rm -rf dist dist-test node_modules yarn.lock package-lock.json",
27
27
  "reset": "npm run clean && npm i && npm run build && npm test",
28
28
  "embed-version": "node build/version.js",
29
+ "repo-bump": "npm version patch --no-git-tag-version && node -e \"console.log('bumped to v' + require('./package.json').version + ' (package.json only - commit via repo-tag / repo-release)')\"",
29
30
  "repo-tag": "REPO_VERSION=`node -e \"console.log(require('./package').version)\"` && echo TAG: v$REPO_VERSION && git commit -a -m v$REPO_VERSION && git push && git tag v$REPO_VERSION && git push --tags;",
31
+ "repo-tag-dry": "REPO_VERSION=`node -e \"console.log(require('./package').version)\"` && echo \"[dry-run] TAG: v$REPO_VERSION\" && if git rev-parse -q --verify refs/tags/v$REPO_VERSION >/dev/null; then echo \"[dry-run] WARNING: tag v$REPO_VERSION already exists - bump the version first\"; else echo \"[dry-run] would commit -a, push, tag v$REPO_VERSION and push --tags; nothing done\"; fi && git status --short",
30
32
  "repo-publish": "npm run clean && npm i && npm run repo-publish-quick",
31
- "repo-publish-quick": "npm run embed-version && npm run build && npm run test && npm run repo-tag && npm publish --registry https://registry.npmjs.org --access=public"
33
+ "repo-publish-dry": "npm run clean && npm i && npm run repo-publish-quick-dry",
34
+ "repo-publish-quick": "npm run embed-version && npm run build && npm run test && npm run repo-tag && npm publish --registry https://registry.npmjs.org --access=public",
35
+ "repo-publish-quick-dry": "npm run build && npm run test && ( npm publish --dry-run --registry https://registry.npmjs.org --access=public || echo \"[dry-run] npm publish refused (see npm error above) - usually the version is already published; bump package.json before a real release\" )",
36
+ "repo-release": "npm run repo-publish && npm run repo-tag",
37
+ "repo-release-dry": "npm run repo-publish-quick-dry && npm run repo-tag-dry"
32
38
  },
33
39
  "license": "MIT",
34
40
  "files": [
@@ -41,9 +47,9 @@
41
47
  ],
42
48
  "devDependencies": {
43
49
  "@types/js-yaml": "4.0.9",
44
- "@types/node": "25.8.0",
50
+ "@types/node": "26.1.0",
45
51
  "json-schema-to-ts": "3.1.1",
46
- "memfs": "4.57.2",
52
+ "memfs": "4.62.0",
47
53
  "typescript": "6.0.3"
48
54
  },
49
55
  "peerDependencies": {
@@ -0,0 +1,5 @@
1
+ # Features
2
+
3
+
4
+ @"test.aontu"
5
+ @"log.aontu"
@@ -0,0 +1,47 @@
1
+
2
+ // Go CLI target — a Go program that *consumes* the sibling Go SDK
3
+ // (generated by the `go` target into the same SDK repo). It is not a
4
+ // language SDK in its own right, so the standard per-entity /
5
+ // per-feature / readme / test generation phases are switched off via
6
+ // the `phase` map below.
7
+
8
+ main: kit: target: 'go-cli': {
9
+
10
+ title: 'Go CLI'
11
+ ext: go
12
+ comment: line: "//"
13
+ module: name: '$$name$$'
14
+
15
+ // Per-generation-phase activation. Mirrors the feature pattern
16
+ // (`main.kit.feature.<name>: { active: true }`). Root.ts inspects
17
+ // `target.phase.<name>.active` — defaults to true (active) when
18
+ // the entry is missing, so existing standard targets need no
19
+ // changes. A CLI-style target switches the standard phases off
20
+ // and runs only Main.
21
+ phase: {
22
+ entity: { active: false }
23
+ feature: { active: false }
24
+ readme: { active: false }
25
+ test: { active: false }
26
+ }
27
+
28
+ // No external module deps declared here; the generated go.mod uses
29
+ // a relative replace to the sibling SDK at ../go and (until
30
+ // aql/eng is published with a subdir tag) a local replace for the
31
+ // AQL engine. See Main_go-cli.ts.
32
+ deps: {}
33
+ }
34
+
35
+
36
+ // Feature-deps map slot — every target carries this so the same
37
+ // feature can specify per-target dep variants.
38
+ main: kit: feature: &: target: 'go-cli': deps: &: {
39
+ kind: *'prod' | string
40
+ }
41
+
42
+
43
+ # Publication: tag-only — the Go module proxy resolves versions from the
44
+ # go-cli/vX.Y.Z GitHub tag; there is no package registry to upload to.
45
+ main: kit: target: 'go-cli': publish: {
46
+ tag: { active: true, via: 'root' }
47
+ }
@@ -0,0 +1,41 @@
1
+
2
+ // Go MCP server target — a Go program that *consumes* the sibling Go
3
+ // SDK and exposes it as MCP tools. Like go-cli, it is not a language
4
+ // SDK in its own right, so the standard per-entity / per-feature /
5
+ // readme / test generation phases are switched off via the `phase`
6
+ // map below.
7
+
8
+ main: kit: target: 'go-mcp': {
9
+
10
+ title: 'Go MCP server'
11
+ ext: go
12
+ comment: line: "//"
13
+ module: name: '$$name$$'
14
+
15
+ // Per-generation-phase activation. Mirrors go-cli — only Main runs.
16
+ phase: {
17
+ entity: { active: false }
18
+ feature: { active: false }
19
+ readme: { active: false }
20
+ test: { active: false }
21
+ }
22
+
23
+ // No external module deps declared here. The generated go.mod uses
24
+ // a relative replace to the sibling SDK at ../go and declares the
25
+ // MCP Go SDK as a direct dep. See Main_go-mcp.ts.
26
+ deps: {}
27
+ }
28
+
29
+
30
+ // Feature-deps map slot — every target carries this so the same
31
+ // feature can specify per-target dep variants.
32
+ main: kit: feature: &: target: 'go-mcp': deps: &: {
33
+ kind: *'prod' | string
34
+ }
35
+
36
+
37
+ # Publication: tag-only — the Go module proxy resolves versions from the
38
+ # go-mcp/vX.Y.Z GitHub tag; there is no package registry to upload to.
39
+ main: kit: target: 'go-mcp': publish: {
40
+ tag: { active: true, via: 'root' }
41
+ }
@@ -0,0 +1,28 @@
1
+
2
+ main: kit: target: go: {
3
+
4
+ title: Golang
5
+ ext: go
6
+ comment: line: "//"
7
+ module: name: '$$name$$'
8
+ srcfeature: false
9
+
10
+ deps: &: {
11
+ kind: *'prod' | string
12
+ }
13
+
14
+ // struct is inlined under <gomodule>/utility/struct — no external dep.
15
+ deps: {}
16
+ }
17
+
18
+
19
+ main: kit: feature: &: target: go: deps: &: {
20
+ kind: *'prod' | string
21
+ }
22
+
23
+
24
+ # Publication: tag-only — the Go module proxy resolves versions from the
25
+ # go/vX.Y.Z GitHub tag; there is no package registry to upload to.
26
+ main: kit: target: go: publish: {
27
+ tag: { active: true }
28
+ }
@@ -21,3 +21,16 @@ main: kit: feature: &: target: js: deps: &: {
21
21
  # TODO: fix aontu disjunctions!
22
22
  kind: *'prod' | string # 'peer' |'dev'
23
23
  }
24
+
25
+
26
+ # Publication: npm registry (declared, publish pending — git-tag only).
27
+ main: kit: target: js: publish: {
28
+ tag: { active: true }
29
+ registry: {
30
+ state: 'pending'
31
+ active: false
32
+ name: 'npm'
33
+ url: 'https://registry.npmjs.org'
34
+ vault: { recipe: 'npm', alias: 'npm' }
35
+ }
36
+ }
@@ -21,3 +21,16 @@ main: kit: target: lua: {
21
21
  main: kit: feature: &: target: lua: deps: &: {
22
22
  kind: *'prod' | string
23
23
  }
24
+
25
+
26
+ # Publication: luarocks registry (declared, publish pending — git-tag only).
27
+ main: kit: target: lua: publish: {
28
+ tag: { active: true }
29
+ registry: {
30
+ state: 'pending'
31
+ active: false
32
+ name: 'luarocks'
33
+ url: 'https://luarocks.org'
34
+ vault: { alias: 'luarocks', env: 'LUAROCKS_API_KEY' }
35
+ }
36
+ }
@@ -19,3 +19,16 @@ main: kit: target: php: {
19
19
  main: kit: feature: &: target: php: deps: &: {
20
20
  kind: *'prod' | string
21
21
  }
22
+
23
+
24
+ # Publication: packagist registry (declared, publish pending — git-tag only).
25
+ main: kit: target: php: publish: {
26
+ tag: { active: true }
27
+ registry: {
28
+ state: 'pending'
29
+ active: false
30
+ name: 'packagist'
31
+ url: 'https://packagist.org'
32
+ vault: { alias: 'packagist', env: 'PACKAGIST_API_TOKEN' }
33
+ }
34
+ }
@@ -21,3 +21,16 @@ main: kit: target: py: {
21
21
  main: kit: feature: &: target: py: deps: &: {
22
22
  kind: *'prod' | string
23
23
  }
24
+
25
+
26
+ # Publication: pypi registry (declared, publish pending — git-tag only).
27
+ main: kit: target: py: publish: {
28
+ tag: { active: true }
29
+ registry: {
30
+ state: 'pending'
31
+ active: false
32
+ name: 'pypi'
33
+ url: 'https://pypi.org'
34
+ vault: { recipe: 'pypi', alias: 'pypi' }
35
+ }
36
+ }
@@ -21,3 +21,16 @@ main: kit: target: rb: {
21
21
  main: kit: feature: &: target: rb: deps: &: {
22
22
  kind: *'prod' | string
23
23
  }
24
+
25
+
26
+ # Publication: rubygems registry (declared, publish pending — git-tag only).
27
+ main: kit: target: rb: publish: {
28
+ tag: { active: true }
29
+ registry: {
30
+ state: 'pending'
31
+ active: false
32
+ name: 'rubygems'
33
+ url: 'https://rubygems.org'
34
+ vault: { recipe: 'gem', alias: 'gem' }
35
+ }
36
+ }
@@ -24,3 +24,16 @@ main: kit: feature: &: target: ts: deps: &: {
24
24
  # TODO: fix aontu disjunctions!
25
25
  kind: *'prod' | string # 'peer' |'dev'
26
26
  }
27
+
28
+
29
+ # Publication: npm registry (declared, publish pending — git-tag only).
30
+ main: kit: target: ts: publish: {
31
+ tag: { active: true }
32
+ registry: {
33
+ state: 'pending'
34
+ active: false
35
+ name: 'npm'
36
+ url: 'https://registry.npmjs.org'
37
+ vault: { recipe: 'npm', alias: 'npm' }
38
+ }
39
+ }
@@ -10,6 +10,7 @@ import {
10
10
  cmp,
11
11
  each,
12
12
  isAuthActive,
13
+ resolveAuthPrefix,
13
14
  } from '@voxgig/sdkgen'
14
15
 
15
16
 
@@ -39,8 +40,8 @@ const Config = cmp(async function Config(props: any) {
39
40
  const headers = getModelPath(model, `main.${KIT}.config.headers`) || {}
40
41
 
41
42
  const authActive = isAuthActive(model)
42
- let authPrefix = ''
43
- try { authPrefix = getModelPath(model, `main.${KIT}.config.auth.prefix`) } catch (_e) { }
43
+ // config.auth.prefix override -> spec-derived info.security.prefix -> 'Bearer'
44
+ const authPrefix = resolveAuthPrefix(model)
44
45
 
45
46
  let baseUrl = ''
46
47
  try { baseUrl = getModelPath(model, `main.${KIT}.info.servers.0.url`) } catch (_e) { }
@@ -30,6 +30,7 @@ const EntityOperation = cmp(function Operation(props: any) {
30
30
  replace: {
31
31
  ...entrep,
32
32
  'GOMODULE': gomodule,
33
+ '"github.com/voxgig/struct"': `"${gomodule}/utility/struct"`,
33
34
  ProjectName: model.const.Name,
34
35
  EntityName: entity.Name,
35
36
  entityname: entity.name,