@voxgig/sdkgen 3.7.3 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/bin/voxgig-sdkgen +1 -1
  2. package/dist/action/action.js +12 -12
  3. package/dist/action/action.js.map +1 -1
  4. package/dist/action/check.js +2 -2
  5. package/dist/action/check.js.map +1 -1
  6. package/dist/action/doctor.js +4 -4
  7. package/dist/action/doctor.js.map +1 -1
  8. package/dist/action/feature.js +1 -1
  9. package/dist/action/feature.js.map +1 -1
  10. package/dist/action/kind.js +5 -5
  11. package/dist/action/kind.js.map +1 -1
  12. package/dist/action/package.js +1 -1
  13. package/dist/action/package.js.map +1 -1
  14. package/dist/action/resolve.js +2 -2
  15. package/dist/action/resolve.js.map +1 -1
  16. package/dist/action/target.js +2 -2
  17. package/dist/action/target.js.map +1 -1
  18. package/dist/cmp/AgentGuide.js +2 -2
  19. package/dist/cmp/AgentGuideContent.js +9 -9
  20. package/dist/cmp/AgentGuideFeature.js +3 -3
  21. package/dist/cmp/AgentGuideFeature.js.map +1 -1
  22. package/dist/cmp/AgentGuideTop.js +1 -1
  23. package/dist/cmp/Deploy.js +3 -3
  24. package/dist/cmp/Deploy.js.map +1 -1
  25. package/dist/helpers/definition.js +7 -7
  26. package/dist/helpers/definition.js.map +1 -1
  27. package/dist/helpers/featureSource.js +2 -2
  28. package/dist/helpers/featureSource.js.map +1 -1
  29. package/dist/helpers/manifest.js +3 -3
  30. package/dist/helpers/manifest.js.map +1 -1
  31. package/dist/helpers/modelcheck.js +1 -1
  32. package/dist/helpers/modelcheck.js.map +1 -1
  33. package/dist/helpers/packageMeta.js +1 -1
  34. package/dist/helpers/packageMeta.js.map +1 -1
  35. package/dist/helpers/shipped.js +2 -2
  36. package/dist/helpers/shipped.js.map +1 -1
  37. package/dist/sdkgen.js +2 -2
  38. package/dist/sdkgen.js.map +1 -1
  39. package/dist/testkit.js +7 -7
  40. package/dist/testkit.js.map +1 -1
  41. package/dist/tsconfig.tsbuildinfo +1 -1
  42. package/dist/utility.js +1 -1
  43. package/dist/utility.js.map +1 -1
  44. package/package.json +3 -3
  45. package/project/.sdk/model/feature/feature-index.aon +24 -0
  46. package/project/.sdk/tm/csharp/Makefile +1 -1
  47. package/project/.sdk/tm/rb/utility/struct/voxgig_struct.rb +31 -11
  48. package/project/.sdk/tm/swift/Makefile +1 -1
  49. package/project/sdkgen-package.json +1 -1
  50. package/src/action/action.ts +12 -12
  51. package/src/action/check.ts +2 -2
  52. package/src/action/doctor.ts +5 -5
  53. package/src/action/feature.ts +1 -1
  54. package/src/action/kind.ts +5 -5
  55. package/src/action/package.ts +1 -1
  56. package/src/action/resolve.ts +2 -2
  57. package/src/action/target.ts +2 -2
  58. package/src/cmp/AgentGuide.ts +2 -2
  59. package/src/cmp/AgentGuideContent.ts +9 -9
  60. package/src/cmp/AgentGuideFeature.ts +3 -3
  61. package/src/cmp/AgentGuideTop.ts +1 -1
  62. package/src/cmp/Deploy.ts +3 -3
  63. package/src/helpers/definition.ts +7 -7
  64. package/src/helpers/featureSource.ts +2 -2
  65. package/src/helpers/manifest.ts +3 -3
  66. package/src/helpers/modelcheck.ts +1 -1
  67. package/src/helpers/packageMeta.ts +1 -1
  68. package/src/helpers/shipped.ts +2 -2
  69. package/src/sdkgen.ts +2 -2
  70. package/src/testkit.ts +9 -9
  71. package/src/utility.ts +1 -1
  72. package/testkit.js +1 -1
  73. package/project/.sdk/model/feature/feature-index.aontu +0 -24
  74. /package/model/{sdkgen.aontu → sdkgen.aon} +0 -0
  75. /package/project/.sdk/model/feature/{audit.aontu → audit.aon} +0 -0
  76. /package/project/.sdk/model/feature/{cache.aontu → cache.aon} +0 -0
  77. /package/project/.sdk/model/feature/{clienttrack.aontu → clienttrack.aon} +0 -0
  78. /package/project/.sdk/model/feature/{debug.aontu → debug.aon} +0 -0
  79. /package/project/.sdk/model/feature/{idempotency.aontu → idempotency.aon} +0 -0
  80. /package/project/.sdk/model/feature/{log.aontu → log.aon} +0 -0
  81. /package/project/.sdk/model/feature/{metrics.aontu → metrics.aon} +0 -0
  82. /package/project/.sdk/model/feature/{netsim.aontu → netsim.aon} +0 -0
  83. /package/project/.sdk/model/feature/{paging.aontu → paging.aon} +0 -0
  84. /package/project/.sdk/model/feature/{proxy.aontu → proxy.aon} +0 -0
  85. /package/project/.sdk/model/feature/{ratelimit.aontu → ratelimit.aon} +0 -0
  86. /package/project/.sdk/model/feature/{rbac.aontu → rbac.aon} +0 -0
  87. /package/project/.sdk/model/feature/{retry.aontu → retry.aon} +0 -0
  88. /package/project/.sdk/model/feature/{streaming.aontu → streaming.aon} +0 -0
  89. /package/project/.sdk/model/feature/{telemetry.aontu → telemetry.aon} +0 -0
  90. /package/project/.sdk/model/feature/{test.aontu → test.aon} +0 -0
  91. /package/project/.sdk/model/feature/{timeout.aontu → timeout.aon} +0 -0
  92. /package/project/.sdk/model/target/{c.aontu → c.aon} +0 -0
  93. /package/project/.sdk/model/target/{clojure.aontu → clojure.aon} +0 -0
  94. /package/project/.sdk/model/target/{cpp.aontu → cpp.aon} +0 -0
  95. /package/project/.sdk/model/target/{csharp.aontu → csharp.aon} +0 -0
  96. /package/project/.sdk/model/target/{dart.aontu → dart.aon} +0 -0
  97. /package/project/.sdk/model/target/{elixir.aontu → elixir.aon} +0 -0
  98. /package/project/.sdk/model/target/{go-cli.aontu → go-cli.aon} +0 -0
  99. /package/project/.sdk/model/target/{go-mcp.aontu → go-mcp.aon} +0 -0
  100. /package/project/.sdk/model/target/{go.aontu → go.aon} +0 -0
  101. /package/project/.sdk/model/target/{java.aontu → java.aon} +0 -0
  102. /package/project/.sdk/model/target/{js.aontu → js.aon} +0 -0
  103. /package/project/.sdk/model/target/{kotlin.aontu → kotlin.aon} +0 -0
  104. /package/project/.sdk/model/target/{lean.aontu → lean.aon} +0 -0
  105. /package/project/.sdk/model/target/{lua.aontu → lua.aon} +0 -0
  106. /package/project/.sdk/model/target/{ocaml.aontu → ocaml.aon} +0 -0
  107. /package/project/.sdk/model/target/{perl.aontu → perl.aon} +0 -0
  108. /package/project/.sdk/model/target/{php.aontu → php.aon} +0 -0
  109. /package/project/.sdk/model/target/{py-data.aontu → py-data.aon} +0 -0
  110. /package/project/.sdk/model/target/{py.aontu → py.aon} +0 -0
  111. /package/project/.sdk/model/target/{rb.aontu → rb.aon} +0 -0
  112. /package/project/.sdk/model/target/{rust.aontu → rust.aon} +0 -0
  113. /package/project/.sdk/model/target/{scala.aontu → scala.aon} +0 -0
  114. /package/project/.sdk/model/target/{seneca-provider.aontu → seneca-provider.aon} +0 -0
  115. /package/project/.sdk/model/target/{swift.aontu → swift.aon} +0 -0
  116. /package/project/.sdk/model/target/{ts.aontu → ts.aon} +0 -0
  117. /package/project/.sdk/model/target/{zig.aontu → zig.aon} +0 -0
package/src/testkit.ts CHANGED
@@ -87,7 +87,7 @@ type StageOptions = {
87
87
  // The project's API name, which every derived name comes from.
88
88
  name?: string
89
89
 
90
- // The project's OWN model text, appended to `model/sdk.aontu`.
90
+ // The project's OWN model text, appended to `model/sdk.aon`.
91
91
  //
92
92
  // THIS WRITES A FILE. It does NOT reach the action context — see
93
93
  // `setModel` on the consumer, and use that if an add needs to SEE what is
@@ -125,7 +125,7 @@ type Consumer = {
125
125
  // Install a compiled model as the one the ADD ACTIONS see.
126
126
  //
127
127
  // Needed because an action reads `actx.model`, which is compiled from
128
- // `model/sdk.aontu` BEFORE the run — nothing recompiles mid-process. The
128
+ // `model/sdk.aon` BEFORE the run — nothing recompiles mid-process. The
129
129
  // CLI does that compile per invocation; a kit staging several adds in one
130
130
  // process does not, so a feature declared in the project's model is
131
131
  // invisible to a later `target add` unless it is installed here. That
@@ -201,9 +201,9 @@ function stageConsumer(opts: StageOptions = {}): Consumer {
201
201
  Fs.mkdirSync(Path.join(sdk, 'model', 'target'), { recursive: true })
202
202
  Fs.mkdirSync(Path.join(sdk, 'model', 'feature'), { recursive: true })
203
203
 
204
- Fs.writeFileSync(Path.join(sdk, 'model', 'target', 'target-index.aontu'),
204
+ Fs.writeFileSync(Path.join(sdk, 'model', 'target', 'target-index.aon'),
205
205
  '# Targets\n')
206
- Fs.writeFileSync(Path.join(sdk, 'model', 'feature', 'feature-index.aontu'),
206
+ Fs.writeFileSync(Path.join(sdk, 'model', 'feature', 'feature-index.aon'),
207
207
  '# Features\n')
208
208
 
209
209
  const name = opts.name ?? 'demo'
@@ -212,10 +212,10 @@ function stageConsumer(opts: StageOptions = {}): Consumer {
212
212
  // includes the indexes of the kinds that existed THEN — which is why a
213
213
  // consumer staged here can show what an existing project does when a new
214
214
  // kind arrives, rather than assuming every index is already wired.
215
- Fs.writeFileSync(Path.join(sdk, 'model', 'sdk.aontu'),
215
+ Fs.writeFileSync(Path.join(sdk, 'model', 'sdk.aon'),
216
216
  "name: '" + name + "'\n" +
217
- '@"target/target-index.aontu"\n' +
218
- '@"feature/feature-index.aontu"\n' +
217
+ '@"target/target-index.aon"\n' +
218
+ '@"feature/feature-index.aon"\n' +
219
219
  (opts.extra ? opts.extra + '\n' : ''))
220
220
 
221
221
  // `@voxgig/sdkgen` has to be resolvable FROM THE CONSUMER, because the
@@ -242,7 +242,7 @@ function stageConsumer(opts: StageOptions = {}): Consumer {
242
242
  const links = [linkModule(modules, '@voxgig/sdkgen', SDKGEN_ROOT)]
243
243
 
244
244
  // ...and sdkgen's PEERS, because the base model schema a consumer compiles
245
- // against pulls in `@voxgig/apidef/model/apidef.aontu` by package name. A
245
+ // against pulls in `@voxgig/apidef/model/apidef.aon` by package name. A
246
246
  // consumer that really installed sdkgen has these; a staged one has to be
247
247
  // given them, or every model compile here fails on an include that resolves
248
248
  // fine everywhere else.
@@ -266,7 +266,7 @@ function stageConsumer(opts: StageOptions = {}): Consumer {
266
266
  [KIT]: { feature: {}, entity: {}, target: {} },
267
267
  },
268
268
  },
269
- url: Path.join(sdk, 'model', 'sdk.aontu'),
269
+ url: Path.join(sdk, 'model', 'sdk.aon'),
270
270
  jostraca: Jostraca({ existing: { txt: { write: true, merge: false } } }),
271
271
  opts: { dryrun: false },
272
272
  }
package/src/utility.ts CHANGED
@@ -27,7 +27,7 @@ function resolvePath(ctx$: any, path: string): any {
27
27
  // True unless the model declares auth off. Templates use this to gate
28
28
  // apikey-related code, docs, and examples for public APIs that need no
29
29
  // authentication. Two opt-outs, in priority order:
30
- // 1. main.kit.info.auth: false (user-facing, set in api-info.aontu)
30
+ // 1. main.kit.info.auth: false (user-facing, set in api-info.aon)
31
31
  // 2. main.kit.config.auth.active: false
32
32
  function isAuthActive(model: any): boolean {
33
33
  const info = getModelPath(model, `main.${KIT}.info`,
package/testkit.js CHANGED
@@ -5,7 +5,7 @@
5
5
  // A stub rather than an `exports` map entry, on purpose. A map would name
6
6
  // this subpath and, in doing so, replace the deep-import freedom this package
7
7
  // has without one — and consumers depend on that freedom invisibly (generated
8
- // model files include `@voxgig/sdkgen/model/sdkgen.aontu`; the scaffold is
8
+ // model files include `@voxgig/sdkgen/model/sdkgen.aon`; the scaffold is
9
9
  // reached as `@voxgig/sdkgen/project/<lang>`). See the `_no_exports_comment`
10
10
  // in package.json for what was measured.
11
11
 
@@ -1,24 +0,0 @@
1
- # Features
2
-
3
- # Core
4
- @"test.aontu"
5
- @"log.aontu"
6
-
7
- # Enterprise capabilities
8
- @"retry.aontu"
9
- @"timeout.aontu"
10
- @"ratelimit.aontu"
11
- @"cache.aontu"
12
- @"idempotency.aontu"
13
- @"paging.aontu"
14
- @"streaming.aontu"
15
- @"proxy.aontu"
16
- @"telemetry.aontu"
17
- @"metrics.aontu"
18
- @"debug.aontu"
19
- @"audit.aontu"
20
- @"clienttrack.aontu"
21
- @"rbac.aontu"
22
-
23
- # Test support: network behaviour simulation
24
- @"netsim.aontu"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes