@voxgig/create-sdkgen 0.16.0 → 0.16.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.
- package/README.md +48 -1
- package/bin/create-sdkgen +4 -0
- package/dist/project/standard/ModelSdk.js +2 -2
- package/dist/project/standard/ModelSdk.js.map +1 -1
- package/package.json +3 -3
- package/project/standard/.github/workflows/ci.yml +5 -0
- package/project/standard/.sdk/model/.model-config/{model-config.jsonic → model-config.aontu} +1 -1
- package/project/standard/.sdk/model/config.aontu +16 -0
- package/project/standard/.sdk/model/guide/guide.aontu +8 -0
- package/project/standard/.sdk/model/{sdk.fragment.jsonic → sdk.fragment.aontu} +6 -6
- package/project/standard/.sdk/package.json +6 -6
- package/project/standard/.sdk/src/Root.ts +1 -1
- package/project/standard/.sdk/src/Top.ts +10 -0
- package/project/standard/.sdk/test/.model-config/model-config.aontu +4 -0
- package/project/standard/.sdk/test/primary/primary-test-index.aontu +30 -0
- package/project/standard/.sdk/test/struct/test.aontu +25 -0
- package/project/standard/.sdk/test/test.aontu +3 -0
- package/src/project/standard/ModelSdk.ts +2 -2
- package/project/standard/.sdk/model/config.jsonic +0 -15
- package/project/standard/.sdk/model/guide/guide.jsonic +0 -8
- package/project/standard/.sdk/test/.model-config/model-config.jsonic +0 -4
- package/project/standard/.sdk/test/primary/primary-test-index.jsonic +0 -30
- package/project/standard/.sdk/test/struct/test.jsonic +0 -25
- package/project/standard/.sdk/test/test.jsonic +0 -3
- /package/project/standard/.sdk/model/api/{api-info.jsonic → api-info.aontu} +0 -0
- /package/project/standard/.sdk/model/entity/{entity-index.jsonic → entity-index.aontu} +0 -0
- /package/project/standard/.sdk/model/feature/{feature-index.jsonic → feature-index.aontu} +0 -0
- /package/project/standard/.sdk/model/flow/{flow-index.jsonic → flow-index.aontu} +0 -0
- /package/project/standard/.sdk/model/target/{target-index.jsonic → target-index.aontu} +0 -0
- /package/project/standard/.sdk/test/primary/{clean.jsonic → clean.aontu} +0 -0
- /package/project/standard/.sdk/test/primary/{done.jsonic → done.aontu} +0 -0
- /package/project/standard/.sdk/test/primary/{featureAdd.jsonic → featureAdd.aontu} +0 -0
- /package/project/standard/.sdk/test/primary/{featureHook.jsonic → featureHook.aontu} +0 -0
- /package/project/standard/.sdk/test/primary/{featureInit.jsonic → featureInit.aontu} +0 -0
- /package/project/standard/.sdk/test/primary/{fetcher.jsonic → fetcher.aontu} +0 -0
- /package/project/standard/.sdk/test/primary/{makeContext.jsonic → makeContext.aontu} +0 -0
- /package/project/standard/.sdk/test/primary/{makeError.jsonic → makeError.aontu} +0 -0
- /package/project/standard/.sdk/test/primary/{makeFetchDef.jsonic → makeFetchDef.aontu} +0 -0
- /package/project/standard/.sdk/test/primary/{makeOptions.jsonic → makeOptions.aontu} +0 -0
- /package/project/standard/.sdk/test/primary/{makePoint.jsonic → makePoint.aontu} +0 -0
- /package/project/standard/.sdk/test/primary/{makeRequest.jsonic → makeRequest.aontu} +0 -0
- /package/project/standard/.sdk/test/primary/{makeResponse.jsonic → makeResponse.aontu} +0 -0
- /package/project/standard/.sdk/test/primary/{makeResult.jsonic → makeResult.aontu} +0 -0
- /package/project/standard/.sdk/test/primary/{makeSpec.jsonic → makeSpec.aontu} +0 -0
- /package/project/standard/.sdk/test/primary/{makeUrl.jsonic → makeUrl.aontu} +0 -0
- /package/project/standard/.sdk/test/primary/{operator.jsonic → operator.aontu} +0 -0
- /package/project/standard/.sdk/test/primary/{param.jsonic → param.aontu} +0 -0
- /package/project/standard/.sdk/test/primary/{prepareAuth.jsonic → prepareAuth.aontu} +0 -0
- /package/project/standard/.sdk/test/primary/{prepareBody.jsonic → prepareBody.aontu} +0 -0
- /package/project/standard/.sdk/test/primary/{prepareHeaders.jsonic → prepareHeaders.aontu} +0 -0
- /package/project/standard/.sdk/test/primary/{prepareMethod.jsonic → prepareMethod.aontu} +0 -0
- /package/project/standard/.sdk/test/primary/{prepareParams.jsonic → prepareParams.aontu} +0 -0
- /package/project/standard/.sdk/test/primary/{preparePath.jsonic → preparePath.aontu} +0 -0
- /package/project/standard/.sdk/test/primary/{prepareQuery.jsonic → prepareQuery.aontu} +0 -0
- /package/project/standard/.sdk/test/primary/{resultBasic.jsonic → resultBasic.aontu} +0 -0
- /package/project/standard/.sdk/test/primary/{resultBody.jsonic → resultBody.aontu} +0 -0
- /package/project/standard/.sdk/test/primary/{resultHeaders.jsonic → resultHeaders.aontu} +0 -0
- /package/project/standard/.sdk/test/primary/{transformRequest.jsonic → transformRequest.aontu} +0 -0
- /package/project/standard/.sdk/test/primary/{transformResponse.jsonic → transformResponse.aontu} +0 -0
- /package/project/standard/.sdk/test/struct/{getpath.jsonic → getpath.aontu} +0 -0
- /package/project/standard/.sdk/test/struct/{inject.jsonic → inject.aontu} +0 -0
- /package/project/standard/.sdk/test/struct/{merge.jsonic → merge.aontu} +0 -0
- /package/project/standard/.sdk/test/struct/{minor.jsonic → minor.aontu} +0 -0
- /package/project/standard/.sdk/test/struct/{select.jsonic → select.aontu} +0 -0
- /package/project/standard/.sdk/test/struct/{transform.jsonic → transform.aontu} +0 -0
- /package/project/standard/.sdk/test/struct/{validate.jsonic → validate.aontu} +0 -0
- /package/project/standard/.sdk/test/struct/{walk.jsonic → walk.aontu} +0 -0
package/README.md
CHANGED
|
@@ -1,4 +1,51 @@
|
|
|
1
1
|
# create-sdkgen
|
|
2
|
-
Create a Voxgig SDK Generator project
|
|
3
2
|
|
|
3
|
+
Scaffold a new **Voxgig SDK Generator** project — turn an OpenAPI spec into
|
|
4
|
+
idiomatic, tested, multi-language client SDKs (TypeScript, Python, Go, PHP,
|
|
5
|
+
Ruby, Lua, plus a CLI and MCP server).
|
|
4
6
|
|
|
7
|
+
## Quickstart
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
# 1. Scaffold a project from your OpenAPI 3 spec
|
|
11
|
+
create-sdkgen my-api -d ./openapi.yaml -o ./my-api-sdk
|
|
12
|
+
|
|
13
|
+
# 2. Add the languages you want + offline test mode
|
|
14
|
+
cd my-api-sdk/.sdk
|
|
15
|
+
npx voxgig-sdkgen target add ts py go
|
|
16
|
+
npx voxgig-sdkgen feature add test
|
|
17
|
+
|
|
18
|
+
# 3. Generate the SDKs (builds the .sdk sources, then runs the generator)
|
|
19
|
+
npm run generate
|
|
20
|
+
|
|
21
|
+
# 4. Verify
|
|
22
|
+
cd ../ts && npm install && npm run build && npm test
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
You shape the SDK by editing the **model** in `.sdk/model/` (entities, ops,
|
|
26
|
+
fields); everything under the language directories (`ts/`, `py/`, …) is
|
|
27
|
+
generated output and is overwritten on each regenerate.
|
|
28
|
+
|
|
29
|
+
## Options
|
|
30
|
+
|
|
31
|
+
| Flag | Meaning |
|
|
32
|
+
| --- | --- |
|
|
33
|
+
| `<name>` | SDK name (kebab-case), the package base name |
|
|
34
|
+
| `-d, --def <spec>` | OpenAPI 3 spec file (`.yaml`/`.json`) |
|
|
35
|
+
| `-o, --folder <dir>` | output directory |
|
|
36
|
+
| `-t, --target <langs>` | targets to add during scaffold (e.g. `ts,py,go`) |
|
|
37
|
+
| `-f, --feature <feats>` | features to add (e.g. `test`) |
|
|
38
|
+
| `--no-install` | skip `npm install` |
|
|
39
|
+
| `-h`, `-v` | help, version |
|
|
40
|
+
|
|
41
|
+
## Building an SDK with an AI agent?
|
|
42
|
+
|
|
43
|
+
Point your agent at **[`AGENTS.md`](./AGENTS.md)** — the full end-to-end guide
|
|
44
|
+
(spec → scaffold → generate → test → publish), what to edit vs. what is
|
|
45
|
+
generated, the doc-example test guarantee, and the real-world shape gotchas.
|
|
46
|
+
|
|
47
|
+
## The toolchain
|
|
48
|
+
|
|
49
|
+
- **create-sdkgen** (this package) — scaffolds the project.
|
|
50
|
+
- **[@voxgig/apidef](https://github.com/voxgig/apidef)** — parses your OpenAPI spec into the model.
|
|
51
|
+
- **[@voxgig/sdkgen](https://github.com/voxgig/sdkgen)** — generates the SDKs from the model.
|
package/bin/create-sdkgen
CHANGED
|
@@ -249,6 +249,10 @@ Usage: npm create @voxgig/sdkgen@latest <name> <args>
|
|
|
249
249
|
--folder Target output folder. Default: ./<name>-sdk.
|
|
250
250
|
-o
|
|
251
251
|
|
|
252
|
+
--target Language targets to add (e.g. ts, py, go, rb). Can be
|
|
253
|
+
-t specified multiple times; extra positional arguments
|
|
254
|
+
after <name> are also treated as targets.
|
|
255
|
+
|
|
252
256
|
--feature Features to add. Can be specified multiple times.
|
|
253
257
|
-f
|
|
254
258
|
|
|
@@ -9,9 +9,9 @@ const jostraca_1 = require("jostraca");
|
|
|
9
9
|
const ModelSdk = (0, jostraca_1.cmp)(function ModelSdk(props) {
|
|
10
10
|
const { spec } = props;
|
|
11
11
|
const from = node_path_1.default.resolve(node_path_1.default.join(__dirname + '..', '..', '..', '..', 'project', 'standard'));
|
|
12
|
-
(0, jostraca_1.File)({ name: 'sdk.
|
|
12
|
+
(0, jostraca_1.File)({ name: 'sdk.aontu' }, () => {
|
|
13
13
|
(0, jostraca_1.Fragment)({
|
|
14
|
-
from: node_path_1.default.join(from, spec.sdk_folder, 'model', 'sdk.fragment.
|
|
14
|
+
from: node_path_1.default.join(from, spec.sdk_folder, 'model', 'sdk.fragment.aontu'),
|
|
15
15
|
replace: {
|
|
16
16
|
ProjectName: spec.name,
|
|
17
17
|
NAME: spec.name,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModelSdk.js","sourceRoot":"","sources":["../../../src/project/standard/ModelSdk.ts"],"names":[],"mappings":";;;;;;AACA,0DAA4B;AAG5B,uCAKiB;AAIjB,MAAM,QAAQ,GAAG,IAAA,cAAG,EAAC,SAAS,QAAQ,CAAC,KAAU;IAC/C,MAAM,EAAE,IAAI,EAAE,GAAG,KAAK,CAAA;IAEtB,MAAM,IAAI,GACR,mBAAI,CAAC,OAAO,CAAC,mBAAI,CAAC,IAAI,CAAC,SAAS,GAAG,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC,CAAA;IAEpF,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"ModelSdk.js","sourceRoot":"","sources":["../../../src/project/standard/ModelSdk.ts"],"names":[],"mappings":";;;;;;AACA,0DAA4B;AAG5B,uCAKiB;AAIjB,MAAM,QAAQ,GAAG,IAAA,cAAG,EAAC,SAAS,QAAQ,CAAC,KAAU;IAC/C,MAAM,EAAE,IAAI,EAAE,GAAG,KAAK,CAAA;IAEtB,MAAM,IAAI,GACR,mBAAI,CAAC,OAAO,CAAC,mBAAI,CAAC,IAAI,CAAC,SAAS,GAAG,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC,CAAA;IAEpF,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,GAAG,EAAE;QAC/B,IAAA,mBAAQ,EAAC;YACP,IAAI,EAAE,mBAAI,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,UAAU,EAAE,OAAO,EAAE,oBAAoB,CAAC;YACrE,OAAO,EAAE;gBACP,WAAW,EAAE,IAAI,CAAC,IAAI;gBACtB,IAAI,EAAE,IAAI,CAAC,IAAI;gBACf,GAAG,EAAE,IAAI,CAAC,GAAG;aACd;SACF,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AAEJ,CAAC,CAAC,CAAA;AAIA,4BAAQ"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voxgig/create-sdkgen",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.1",
|
|
4
4
|
"main": "dist/create-sdkgen.js",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"types": "dist/create-sdkgen.d.ts",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"test-some": "node --enable-source-maps --test-name-pattern=\"$npm_config_pattern\" --test dist-test/**/*.test.js",
|
|
25
25
|
"watch": "tsc --build src test -w",
|
|
26
26
|
"build": "tsc --build src test",
|
|
27
|
-
"test-model": "voxgig-model project/.sdk/test/test.
|
|
28
|
-
"test-model-watch": "voxgig-model -w project/.sdk/test/test.
|
|
27
|
+
"test-model": "voxgig-model project/.sdk/test/test.aontu",
|
|
28
|
+
"test-model-watch": "voxgig-model -w project/.sdk/test/test.aontu",
|
|
29
29
|
"clean": "rm -rf dist dist-test node_modules yarn.lock package-lock.json",
|
|
30
30
|
"reset": "npm run clean && npm i && npm run build && npm test",
|
|
31
31
|
"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)')\"",
|
|
@@ -79,6 +79,11 @@ jobs:
|
|
|
79
79
|
node-version: '24'
|
|
80
80
|
- if: hashFiles('ts/package.json') != ''
|
|
81
81
|
run: cd ts && npm install --no-audit --no-fund
|
|
82
|
+
# npm test runs the compiled dist-test/ suite, which is gitignored —
|
|
83
|
+
# without a build first, node --test matches zero files and exits 0,
|
|
84
|
+
# leaving CI green while testing nothing.
|
|
85
|
+
- if: hashFiles('ts/package.json') != ''
|
|
86
|
+
run: cd ts && npm run build
|
|
82
87
|
- if: hashFiles('ts/package.json') != ''
|
|
83
88
|
run: cd ts && npm test
|
|
84
89
|
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# SDK Configuration
|
|
2
|
+
|
|
3
|
+
main: kit: config: {
|
|
4
|
+
|
|
5
|
+
# The Authorization credential prefix is derived from the OpenAPI
|
|
6
|
+
# security scheme (see api/api-info.aontu: main.kit.info.security,
|
|
7
|
+
# set by apidef) and defaults to 'Bearer' when the spec gives no
|
|
8
|
+
# signal. Uncomment to override per-SDK:
|
|
9
|
+
# auth: prefix: 'Bearer'
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
headers: {
|
|
13
|
+
'content-type': 'application/json'
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
}
|
|
@@ -11,25 +11,25 @@ def: 'DEF'
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
# API Information
|
|
14
|
-
@"api/api-info.
|
|
14
|
+
@"api/api-info.aontu"
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
# SDK Configuration.
|
|
18
|
-
@"config.
|
|
18
|
+
@"config.aontu"
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
# SDK Entities
|
|
22
|
-
@"entity/entity-index.
|
|
22
|
+
@"entity/entity-index.aontu"
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
# SDK Features.
|
|
26
|
-
@"feature/feature-index.
|
|
26
|
+
@"feature/feature-index.aontu"
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
# SDK Targets.
|
|
30
|
-
@"target/target-index.
|
|
30
|
+
@"target/target-index.aontu"
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
# Operation workflows.
|
|
34
|
-
@"flow/flow-index.
|
|
34
|
+
@"flow/flow-index.aontu"
|
|
35
35
|
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
"version": "0.0.1",
|
|
4
4
|
"description": "$$const.Name$$ SDK Project",
|
|
5
5
|
"scripts": {
|
|
6
|
-
"generate": "voxgig-model model/sdk.
|
|
7
|
-
"watch-generate": "voxgig-model -w model/sdk.
|
|
8
|
-
"dry-generate": "voxgig-model -y model/sdk.
|
|
9
|
-
"watch-dry-generate": "voxgig-model -w -y model/sdk.
|
|
10
|
-
"test-model": "voxgig-model test/test.
|
|
11
|
-
"watch-test-model": "voxgig-model -w test/test.
|
|
6
|
+
"generate": "tsc --build src && voxgig-model model/sdk.aontu",
|
|
7
|
+
"watch-generate": "voxgig-model -w model/sdk.aontu",
|
|
8
|
+
"dry-generate": "tsc --build src && voxgig-model -y model/sdk.aontu",
|
|
9
|
+
"watch-dry-generate": "voxgig-model -w -y model/sdk.aontu",
|
|
10
|
+
"test-model": "voxgig-model test/test.aontu",
|
|
11
|
+
"watch-test-model": "voxgig-model -w test/test.aontu",
|
|
12
12
|
"watch": "tsc --build src -w",
|
|
13
13
|
"build": "tsc --build src",
|
|
14
14
|
"test": "echo no-test",
|
|
@@ -83,7 +83,7 @@ const Root = cmp(function Root(props: any) {
|
|
|
83
83
|
|
|
84
84
|
Folder({ name: target.name }, () => {
|
|
85
85
|
|
|
86
|
-
// Per-generation-phase activation. A target's
|
|
86
|
+
// Per-generation-phase activation. A target's aontu model carries
|
|
87
87
|
// a `phase` map mirroring the feature pattern:
|
|
88
88
|
//
|
|
89
89
|
// phase: {
|
|
@@ -4,12 +4,22 @@ import {
|
|
|
4
4
|
cmp,
|
|
5
5
|
Deploy,
|
|
6
6
|
ReadmeTop,
|
|
7
|
+
License,
|
|
8
|
+
Security,
|
|
9
|
+
Changelog,
|
|
7
10
|
} from '@voxgig/sdkgen'
|
|
8
11
|
|
|
9
12
|
|
|
10
13
|
const Top = cmp(function Top(props: any) {
|
|
11
14
|
ReadmeTop({})
|
|
12
15
|
|
|
16
|
+
// Root governance files for a publishable, unofficial generated SDK:
|
|
17
|
+
// an MIT LICENSE (held by Voxgig), a SECURITY.md disclosure policy, and a
|
|
18
|
+
// seed CHANGELOG. Emitted at repo root, before the per-target folders.
|
|
19
|
+
License({})
|
|
20
|
+
Security({})
|
|
21
|
+
Changelog({})
|
|
22
|
+
|
|
13
23
|
// Root deployment Makefile: per-target `make deploy-<t>` (publish with
|
|
14
24
|
// credentials injected by the aql key vault) plus an all-targets
|
|
15
25
|
// `make deploy-dry` rehearsal.
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
primary: clean: @"clean.aontu"
|
|
2
|
+
primary: done: @"done.aontu"
|
|
3
|
+
primary: featureAdd: @"featureAdd.aontu"
|
|
4
|
+
primary: featureHook: @"featureHook.aontu"
|
|
5
|
+
primary: featureInit: @"featureInit.aontu"
|
|
6
|
+
primary: fetcher: @"fetcher.aontu"
|
|
7
|
+
primary: makeContext: @"makeContext.aontu"
|
|
8
|
+
primary: makeError: @"makeError.aontu"
|
|
9
|
+
primary: makeFetchDef: @"makeFetchDef.aontu"
|
|
10
|
+
primary: makeOptions: @"makeOptions.aontu"
|
|
11
|
+
primary: makeRequest: @"makeRequest.aontu"
|
|
12
|
+
primary: makeResponse: @"makeResponse.aontu"
|
|
13
|
+
primary: makeResult: @"makeResult.aontu"
|
|
14
|
+
primary: makeSpec: @"makeSpec.aontu"
|
|
15
|
+
primary: makePoint: @"makePoint.aontu"
|
|
16
|
+
primary: makeUrl: @"makeUrl.aontu"
|
|
17
|
+
primary: operator: @"operator.aontu"
|
|
18
|
+
primary: param: @"param.aontu"
|
|
19
|
+
primary: prepareAuth: @"prepareAuth.aontu"
|
|
20
|
+
primary: prepareBody: @"prepareBody.aontu"
|
|
21
|
+
primary: prepareHeaders: @"prepareHeaders.aontu"
|
|
22
|
+
primary: prepareMethod: @"prepareMethod.aontu"
|
|
23
|
+
primary: prepareParams: @"prepareParams.aontu"
|
|
24
|
+
primary: preparePath: @"preparePath.aontu"
|
|
25
|
+
primary: prepareQuery: @"prepareQuery.aontu"
|
|
26
|
+
primary: resultBasic: @"resultBasic.aontu"
|
|
27
|
+
primary: resultBody: @"resultBody.aontu"
|
|
28
|
+
primary: resultHeaders: @"resultHeaders.aontu"
|
|
29
|
+
primary: transformRequest: @"transformRequest.aontu"
|
|
30
|
+
primary: transformResponse: @"transformResponse.aontu"
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
|
|
2
|
+
struct: &: {
|
|
3
|
+
name: .$KEY
|
|
4
|
+
set: []
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
struct: minor: @"minor.aontu"
|
|
8
|
+
struct: getpath: @"getpath.aontu"
|
|
9
|
+
struct: inject: @"inject.aontu"
|
|
10
|
+
struct: merge: @"merge.aontu"
|
|
11
|
+
struct: transform: @"transform.aontu"
|
|
12
|
+
struct: walk: @"walk.aontu"
|
|
13
|
+
struct: validate: @"validate.aontu"
|
|
14
|
+
struct: select: @"select.aontu"
|
|
15
|
+
|
|
16
|
+
primary: check: {
|
|
17
|
+
DEF: {
|
|
18
|
+
client:a:test:options:foo:1
|
|
19
|
+
}
|
|
20
|
+
basic: set: [
|
|
21
|
+
{ ctx:meta:bar:BAR0, out:zed:ZED_BAR0 }
|
|
22
|
+
{ ctx:meta:bar:BAR1, client:a, out:zed:ZED1_BAR1 }
|
|
23
|
+
]
|
|
24
|
+
}
|
|
25
|
+
|
|
@@ -17,9 +17,9 @@ const ModelSdk = cmp(function ModelSdk(props: any) {
|
|
|
17
17
|
const from =
|
|
18
18
|
Path.resolve(Path.join(__dirname + '..', '..', '..', '..', 'project', 'standard'))
|
|
19
19
|
|
|
20
|
-
File({ name: 'sdk.
|
|
20
|
+
File({ name: 'sdk.aontu' }, () => {
|
|
21
21
|
Fragment({
|
|
22
|
-
from: Path.join(from, spec.sdk_folder, 'model', 'sdk.fragment.
|
|
22
|
+
from: Path.join(from, spec.sdk_folder, 'model', 'sdk.fragment.aontu'),
|
|
23
23
|
replace: {
|
|
24
24
|
ProjectName: spec.name,
|
|
25
25
|
NAME: spec.name,
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
primary: clean: @"clean.jsonic"
|
|
2
|
-
primary: done: @"done.jsonic"
|
|
3
|
-
primary: featureAdd: @"featureAdd.jsonic"
|
|
4
|
-
primary: featureHook: @"featureHook.jsonic"
|
|
5
|
-
primary: featureInit: @"featureInit.jsonic"
|
|
6
|
-
primary: fetcher: @"fetcher.jsonic"
|
|
7
|
-
primary: makeContext: @"makeContext.jsonic"
|
|
8
|
-
primary: makeError: @"makeError.jsonic"
|
|
9
|
-
primary: makeFetchDef: @"makeFetchDef.jsonic"
|
|
10
|
-
primary: makeOptions: @"makeOptions.jsonic"
|
|
11
|
-
primary: makeRequest: @"makeRequest.jsonic"
|
|
12
|
-
primary: makeResponse: @"makeResponse.jsonic"
|
|
13
|
-
primary: makeResult: @"makeResult.jsonic"
|
|
14
|
-
primary: makeSpec: @"makeSpec.jsonic"
|
|
15
|
-
primary: makePoint: @"makePoint.jsonic"
|
|
16
|
-
primary: makeUrl: @"makeUrl.jsonic"
|
|
17
|
-
primary: operator: @"operator.jsonic"
|
|
18
|
-
primary: param: @"param.jsonic"
|
|
19
|
-
primary: prepareAuth: @"prepareAuth.jsonic"
|
|
20
|
-
primary: prepareBody: @"prepareBody.jsonic"
|
|
21
|
-
primary: prepareHeaders: @"prepareHeaders.jsonic"
|
|
22
|
-
primary: prepareMethod: @"prepareMethod.jsonic"
|
|
23
|
-
primary: prepareParams: @"prepareParams.jsonic"
|
|
24
|
-
primary: preparePath: @"preparePath.jsonic"
|
|
25
|
-
primary: prepareQuery: @"prepareQuery.jsonic"
|
|
26
|
-
primary: resultBasic: @"resultBasic.jsonic"
|
|
27
|
-
primary: resultBody: @"resultBody.jsonic"
|
|
28
|
-
primary: resultHeaders: @"resultHeaders.jsonic"
|
|
29
|
-
primary: transformRequest: @"transformRequest.jsonic"
|
|
30
|
-
primary: transformResponse: @"transformResponse.jsonic"
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
struct: &: {
|
|
3
|
-
name: .$KEY
|
|
4
|
-
set: []
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
struct: minor: @"minor.jsonic"
|
|
8
|
-
struct: getpath: @"getpath.jsonic"
|
|
9
|
-
struct: inject: @"inject.jsonic"
|
|
10
|
-
struct: merge: @"merge.jsonic"
|
|
11
|
-
struct: transform: @"transform.jsonic"
|
|
12
|
-
struct: walk: @"walk.jsonic"
|
|
13
|
-
struct: validate: @"validate.jsonic"
|
|
14
|
-
struct: select: @"select.jsonic"
|
|
15
|
-
|
|
16
|
-
primary: check: {
|
|
17
|
-
DEF: {
|
|
18
|
-
client:a:test:options:foo:1
|
|
19
|
-
}
|
|
20
|
-
basic: set: [
|
|
21
|
-
{ ctx:meta:bar:BAR0, out:zed:ZED_BAR0 }
|
|
22
|
-
{ ctx:meta:bar:BAR1, client:a, out:zed:ZED1_BAR1 }
|
|
23
|
-
]
|
|
24
|
-
}
|
|
25
|
-
|
|
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
|
/package/project/standard/.sdk/test/primary/{transformRequest.jsonic → transformRequest.aontu}
RENAMED
|
File without changes
|
/package/project/standard/.sdk/test/primary/{transformResponse.jsonic → transformResponse.aontu}
RENAMED
|
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
|