@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.
- package/bin/voxgig-sdkgen +1 -1
- package/dist/action/action.js +12 -12
- package/dist/action/action.js.map +1 -1
- package/dist/action/check.js +2 -2
- package/dist/action/check.js.map +1 -1
- package/dist/action/doctor.js +4 -4
- package/dist/action/doctor.js.map +1 -1
- package/dist/action/feature.js +1 -1
- package/dist/action/feature.js.map +1 -1
- package/dist/action/kind.js +5 -5
- package/dist/action/kind.js.map +1 -1
- package/dist/action/package.js +1 -1
- package/dist/action/package.js.map +1 -1
- package/dist/action/resolve.js +2 -2
- package/dist/action/resolve.js.map +1 -1
- package/dist/action/target.js +2 -2
- package/dist/action/target.js.map +1 -1
- package/dist/cmp/AgentGuide.js +2 -2
- package/dist/cmp/AgentGuideContent.js +9 -9
- package/dist/cmp/AgentGuideFeature.js +3 -3
- package/dist/cmp/AgentGuideFeature.js.map +1 -1
- package/dist/cmp/AgentGuideTop.js +1 -1
- package/dist/cmp/Deploy.js +3 -3
- package/dist/cmp/Deploy.js.map +1 -1
- package/dist/helpers/definition.js +7 -7
- package/dist/helpers/definition.js.map +1 -1
- package/dist/helpers/featureSource.js +2 -2
- package/dist/helpers/featureSource.js.map +1 -1
- package/dist/helpers/manifest.js +3 -3
- package/dist/helpers/manifest.js.map +1 -1
- package/dist/helpers/modelcheck.js +1 -1
- package/dist/helpers/modelcheck.js.map +1 -1
- package/dist/helpers/packageMeta.js +1 -1
- package/dist/helpers/packageMeta.js.map +1 -1
- package/dist/helpers/shipped.js +2 -2
- package/dist/helpers/shipped.js.map +1 -1
- package/dist/sdkgen.js +2 -2
- package/dist/sdkgen.js.map +1 -1
- package/dist/testkit.js +7 -7
- package/dist/testkit.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utility.js +1 -1
- package/dist/utility.js.map +1 -1
- package/package.json +3 -3
- package/project/.sdk/model/feature/feature-index.aon +24 -0
- package/project/.sdk/tm/csharp/Makefile +1 -1
- package/project/.sdk/tm/rb/utility/struct/voxgig_struct.rb +31 -11
- package/project/.sdk/tm/swift/Makefile +1 -1
- package/project/sdkgen-package.json +1 -1
- package/src/action/action.ts +12 -12
- package/src/action/check.ts +2 -2
- package/src/action/doctor.ts +5 -5
- package/src/action/feature.ts +1 -1
- package/src/action/kind.ts +5 -5
- package/src/action/package.ts +1 -1
- package/src/action/resolve.ts +2 -2
- package/src/action/target.ts +2 -2
- package/src/cmp/AgentGuide.ts +2 -2
- package/src/cmp/AgentGuideContent.ts +9 -9
- package/src/cmp/AgentGuideFeature.ts +3 -3
- package/src/cmp/AgentGuideTop.ts +1 -1
- package/src/cmp/Deploy.ts +3 -3
- package/src/helpers/definition.ts +7 -7
- package/src/helpers/featureSource.ts +2 -2
- package/src/helpers/manifest.ts +3 -3
- package/src/helpers/modelcheck.ts +1 -1
- package/src/helpers/packageMeta.ts +1 -1
- package/src/helpers/shipped.ts +2 -2
- package/src/sdkgen.ts +2 -2
- package/src/testkit.ts +9 -9
- package/src/utility.ts +1 -1
- package/testkit.js +1 -1
- package/project/.sdk/model/feature/feature-index.aontu +0 -24
- /package/model/{sdkgen.aontu → sdkgen.aon} +0 -0
- /package/project/.sdk/model/feature/{audit.aontu → audit.aon} +0 -0
- /package/project/.sdk/model/feature/{cache.aontu → cache.aon} +0 -0
- /package/project/.sdk/model/feature/{clienttrack.aontu → clienttrack.aon} +0 -0
- /package/project/.sdk/model/feature/{debug.aontu → debug.aon} +0 -0
- /package/project/.sdk/model/feature/{idempotency.aontu → idempotency.aon} +0 -0
- /package/project/.sdk/model/feature/{log.aontu → log.aon} +0 -0
- /package/project/.sdk/model/feature/{metrics.aontu → metrics.aon} +0 -0
- /package/project/.sdk/model/feature/{netsim.aontu → netsim.aon} +0 -0
- /package/project/.sdk/model/feature/{paging.aontu → paging.aon} +0 -0
- /package/project/.sdk/model/feature/{proxy.aontu → proxy.aon} +0 -0
- /package/project/.sdk/model/feature/{ratelimit.aontu → ratelimit.aon} +0 -0
- /package/project/.sdk/model/feature/{rbac.aontu → rbac.aon} +0 -0
- /package/project/.sdk/model/feature/{retry.aontu → retry.aon} +0 -0
- /package/project/.sdk/model/feature/{streaming.aontu → streaming.aon} +0 -0
- /package/project/.sdk/model/feature/{telemetry.aontu → telemetry.aon} +0 -0
- /package/project/.sdk/model/feature/{test.aontu → test.aon} +0 -0
- /package/project/.sdk/model/feature/{timeout.aontu → timeout.aon} +0 -0
- /package/project/.sdk/model/target/{c.aontu → c.aon} +0 -0
- /package/project/.sdk/model/target/{clojure.aontu → clojure.aon} +0 -0
- /package/project/.sdk/model/target/{cpp.aontu → cpp.aon} +0 -0
- /package/project/.sdk/model/target/{csharp.aontu → csharp.aon} +0 -0
- /package/project/.sdk/model/target/{dart.aontu → dart.aon} +0 -0
- /package/project/.sdk/model/target/{elixir.aontu → elixir.aon} +0 -0
- /package/project/.sdk/model/target/{go-cli.aontu → go-cli.aon} +0 -0
- /package/project/.sdk/model/target/{go-mcp.aontu → go-mcp.aon} +0 -0
- /package/project/.sdk/model/target/{go.aontu → go.aon} +0 -0
- /package/project/.sdk/model/target/{java.aontu → java.aon} +0 -0
- /package/project/.sdk/model/target/{js.aontu → js.aon} +0 -0
- /package/project/.sdk/model/target/{kotlin.aontu → kotlin.aon} +0 -0
- /package/project/.sdk/model/target/{lean.aontu → lean.aon} +0 -0
- /package/project/.sdk/model/target/{lua.aontu → lua.aon} +0 -0
- /package/project/.sdk/model/target/{ocaml.aontu → ocaml.aon} +0 -0
- /package/project/.sdk/model/target/{perl.aontu → perl.aon} +0 -0
- /package/project/.sdk/model/target/{php.aontu → php.aon} +0 -0
- /package/project/.sdk/model/target/{py-data.aontu → py-data.aon} +0 -0
- /package/project/.sdk/model/target/{py.aontu → py.aon} +0 -0
- /package/project/.sdk/model/target/{rb.aontu → rb.aon} +0 -0
- /package/project/.sdk/model/target/{rust.aontu → rust.aon} +0 -0
- /package/project/.sdk/model/target/{scala.aontu → scala.aon} +0 -0
- /package/project/.sdk/model/target/{seneca-provider.aontu → seneca-provider.aon} +0 -0
- /package/project/.sdk/model/target/{swift.aontu → swift.aon} +0 -0
- /package/project/.sdk/model/target/{ts.aontu → ts.aon} +0 -0
- /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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
215
|
+
Fs.writeFileSync(Path.join(sdk, 'model', 'sdk.aon'),
|
|
216
216
|
"name: '" + name + "'\n" +
|
|
217
|
-
'@"target/target-index.
|
|
218
|
-
'@"feature/feature-index.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|