@voxgig/sdkgen 4.16.0 → 4.17.1

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 (107) hide show
  1. package/README.md +8 -0
  2. package/bin/voxgig-sdkgen +2 -2
  3. package/dist/action/action.js +2 -2
  4. package/dist/action/action.js.map +1 -1
  5. package/dist/action/check.js +9 -8
  6. package/dist/action/check.js.map +1 -1
  7. package/dist/action/dispatch.js +4 -4
  8. package/dist/action/dispatch.js.map +1 -1
  9. package/dist/action/doctor.js +16 -15
  10. package/dist/action/doctor.js.map +1 -1
  11. package/dist/action/edition.d.ts +4 -0
  12. package/dist/action/{docs.js → edition.js} +57 -54
  13. package/dist/action/edition.js.map +1 -0
  14. package/dist/action/kind.d.ts +1 -2
  15. package/dist/action/kind.js +22 -38
  16. package/dist/action/kind.js.map +1 -1
  17. package/dist/action/package.js +17 -16
  18. package/dist/action/package.js.map +1 -1
  19. package/dist/action/resolve.d.ts +3 -1
  20. package/dist/action/resolve.js +29 -11
  21. package/dist/action/resolve.js.map +1 -1
  22. package/dist/admin/status.d.ts +43 -0
  23. package/dist/admin/status.js +161 -0
  24. package/dist/admin/status.js.map +1 -0
  25. package/dist/cmp/Test.js +11 -0
  26. package/dist/cmp/Test.js.map +1 -1
  27. package/dist/helpers/kindCollection.d.ts +1 -0
  28. package/dist/helpers/kindCollection.js +14 -0
  29. package/dist/helpers/kindCollection.js.map +1 -0
  30. package/dist/helpers/modelcheck.d.ts +1 -1
  31. package/dist/helpers/modelcheck.js +13 -3
  32. package/dist/helpers/modelcheck.js.map +1 -1
  33. package/dist/helpers/shipped.js +2 -3
  34. package/dist/helpers/shipped.js.map +1 -1
  35. package/dist/helpers/testPolicy.d.ts +1 -1
  36. package/dist/helpers/testPolicy.js +6 -37
  37. package/dist/helpers/testPolicy.js.map +1 -1
  38. package/dist/sdkgen.d.ts +1 -1
  39. package/dist/sdkgen.js +22 -89
  40. package/dist/sdkgen.js.map +1 -1
  41. package/dist/tsconfig.tsbuildinfo +1 -1
  42. package/dist/utility.js +9 -1
  43. package/dist/utility.js.map +1 -1
  44. package/model/sdkgen.aon +5 -52
  45. package/package.json +1 -1
  46. package/project/.sdk/src/cmp/go/Config_go.ts +4 -4
  47. package/project/.sdk/src/cmp/go/utility_go.ts +10 -2
  48. package/project/.sdk/src/cmp/js/Package_js.ts +5 -1
  49. package/project/.sdk/src/cmp/js/TestDirect_js.ts +11 -7
  50. package/project/.sdk/src/cmp/js/TestEntity_js.ts +16 -2
  51. package/project/.sdk/src/cmp/js/TestLive_js.ts +32 -0
  52. package/project/.sdk/src/cmp/js/Test_js.ts +2 -0
  53. package/project/.sdk/src/cmp/js/fragment/Direct.test.fragment.js +1 -1
  54. package/project/.sdk/src/cmp/js/fragment/Entity.test.fragment.js +4 -2
  55. package/project/.sdk/src/cmp/php/ReadmeExamplesTest_php.ts +30 -9
  56. package/project/.sdk/src/cmp/php/ReadmeHowto_php.ts +8 -3
  57. package/project/.sdk/src/cmp/php/ReadmeQuick_php.ts +5 -4
  58. package/project/.sdk/src/cmp/php/ReadmeTopQuick_php.ts +2 -2
  59. package/project/.sdk/src/cmp/ts/Package_ts.ts +5 -1
  60. package/project/.sdk/src/cmp/ts/ReadmeHowto_ts.ts +5 -0
  61. package/project/.sdk/src/cmp/ts/TestDirect_ts.ts +15 -11
  62. package/project/.sdk/src/cmp/ts/TestEntity_ts.ts +13 -16
  63. package/project/.sdk/src/cmp/ts/TestLive_ts.ts +32 -0
  64. package/project/.sdk/src/cmp/ts/Test_ts.ts +2 -0
  65. package/project/.sdk/src/cmp/ts/fragment/Direct.test.fragment.ts +1 -0
  66. package/project/.sdk/src/cmp/ts/fragment/Entity.test.fragment.ts +2 -0
  67. package/project/.sdk/tm/c/Makefile +16 -11
  68. package/project/.sdk/tm/c/feature/secrets/sekreto/json.c +3 -3
  69. package/project/.sdk/tm/csharp/test/feature/secrets/SecretsFeatureTest.cs +9 -2
  70. package/project/.sdk/tm/js/test/live-contract.js +183 -0
  71. package/project/.sdk/tm/js/test/live-entity.js +169 -0
  72. package/project/.sdk/tm/js/test/live-runner.js +129 -0
  73. package/project/.sdk/tm/js/test/live-scenarios.js +142 -0
  74. package/project/.sdk/tm/js/test/utility.js +84 -0
  75. package/project/.sdk/tm/php/test/feature/secrets/SecretsTest.php +22 -20
  76. package/project/.sdk/tm/ts/test/live-contract.ts +104 -0
  77. package/project/.sdk/tm/ts/test/live-entity.ts +142 -0
  78. package/project/.sdk/tm/ts/test/live-runner.ts +166 -0
  79. package/project/.sdk/tm/ts/test/live-scenarios.ts +112 -0
  80. package/project/.sdk/tm/ts/test/utility.ts +1 -2
  81. package/project/sdkgen-package.json +1 -1
  82. package/src/action/action.ts +2 -2
  83. package/src/action/check.ts +3 -2
  84. package/src/action/dispatch.ts +4 -4
  85. package/src/action/doctor.ts +10 -9
  86. package/src/action/{docs.ts → edition.ts} +56 -53
  87. package/src/action/kind.ts +12 -33
  88. package/src/action/package.ts +4 -3
  89. package/src/action/resolve.ts +26 -2
  90. package/src/admin/status.ts +124 -0
  91. package/src/cmp/Test.ts +13 -1
  92. package/src/helpers/kindCollection.ts +11 -0
  93. package/src/helpers/modelcheck.ts +10 -3
  94. package/src/helpers/shipped.ts +2 -3
  95. package/src/helpers/testPolicy.ts +7 -45
  96. package/src/sdkgen.ts +15 -94
  97. package/src/utility.ts +8 -2
  98. package/dist/action/docs.d.ts +0 -4
  99. package/dist/action/docs.js.map +0 -1
  100. package/dist/cmp/Docs.d.ts +0 -4
  101. package/dist/cmp/Docs.js +0 -98
  102. package/dist/cmp/Docs.js.map +0 -1
  103. package/dist/cmp/ExternalDocs.d.ts +0 -2
  104. package/dist/cmp/ExternalDocs.js +0 -43
  105. package/dist/cmp/ExternalDocs.js.map +0 -1
  106. package/src/cmp/Docs.ts +0 -125
  107. package/src/cmp/ExternalDocs.ts +0 -54
@@ -1,54 +0,0 @@
1
- // The Root for a DOCS item that generates outside the SDK repo
2
- // (`main: kit: docs: <n>: output: path`).
3
- //
4
- // Out of tree is the NORMAL case for a docs item, not the exception it is for
5
- // a target: a documentation site usually has its own repo, and in-tree it
6
- // would collide with the SDK repo's own README and CI workflows.
7
- //
8
- // The two facts that make this a separate `generate()` pass rather than a
9
- // folder are the ones `ExternalTarget` documents at length: jostraca's
10
- // `FileHandler.validName` refuses a `..` segment in a folder name (the guard
11
- // that keeps generation inside the tree it was pointed at, not an oversight
12
- // to route around), and the output root is `jopts.folder` PER CALL — so
13
- // writing somewhere else means another call.
14
- //
15
- // No Folder wraps the item: the destination IS the site, so its files go at
16
- // the root of the output path.
17
-
18
- import { cmp, names, Project } from 'jostraca'
19
-
20
- import { KIT } from '../types'
21
-
22
- import { DocsItem, prepareModel } from './Docs'
23
-
24
-
25
- const ExternalDocs = cmp(function ExternalDocs(props: any) {
26
- const { model, item, cmpfolder, sdkrelpath } = props
27
- const ctx$ = props.ctx$
28
-
29
- // Components live in the PROJECT, not in the repo being written to. This
30
- // pass has retargeted jostraca's output folder, which is what requirePath
31
- // otherwise resolves against — see utility.resolvePath. Losing this line
32
- // makes the pass look for components under the DESTINATION.
33
- ctx$.cmpfolder = cmpfolder
34
-
35
- // The path from the destination back to the SDK project, for a site that
36
- // sits beside the SDK in a known layout and needs to name it.
37
- ctx$.sdkrelpath = sdkrelpath
38
-
39
- // The same preamble the in-tree pass performs — one definition, both
40
- // callers, because a project whose ONLY docs item is out of tree must
41
- // generate exactly as one with both.
42
- prepareModel(model, ctx$)
43
-
44
- Project({}, () => {
45
- names(item, item.name ?? item.key$)
46
-
47
- DocsItem({ item })
48
- })
49
- })
50
-
51
-
52
- export {
53
- ExternalDocs
54
- }