@voxgig/sdkgen 3.4.6 → 3.5.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 +78 -10
- package/dist/action/action.d.ts +5 -2
- package/dist/action/action.js +113 -6
- package/dist/action/action.js.map +1 -1
- package/dist/action/check.d.ts +15 -0
- package/dist/action/check.js +347 -0
- package/dist/action/check.js.map +1 -0
- package/dist/action/dispatch.d.ts +8 -0
- package/dist/action/dispatch.js +74 -0
- package/dist/action/dispatch.js.map +1 -0
- package/dist/action/docs.d.ts +4 -0
- package/dist/action/docs.js +236 -0
- package/dist/action/docs.js.map +1 -0
- package/dist/action/doctor.d.ts +5 -2
- package/dist/action/doctor.js +526 -74
- package/dist/action/doctor.js.map +1 -1
- package/dist/action/feature.js +96 -17
- package/dist/action/feature.js.map +1 -1
- package/dist/action/kind.d.ts +30 -0
- package/dist/action/kind.js +258 -0
- package/dist/action/kind.js.map +1 -0
- package/dist/action/package.d.ts +25 -0
- package/dist/action/package.js +852 -0
- package/dist/action/package.js.map +1 -0
- package/dist/action/resolve.d.ts +18 -0
- package/dist/action/resolve.js +280 -0
- package/dist/action/resolve.js.map +1 -0
- package/dist/action/target.d.ts +7 -1
- package/dist/action/target.js +240 -97
- package/dist/action/target.js.map +1 -1
- package/dist/cmp/Docs.d.ts +4 -0
- package/dist/cmp/Docs.js +98 -0
- package/dist/cmp/Docs.js.map +1 -0
- package/dist/cmp/ExternalDocs.d.ts +2 -0
- package/dist/cmp/ExternalDocs.js +43 -0
- package/dist/cmp/ExternalDocs.js.map +1 -0
- package/dist/cmp/ReadmeTop.js +5 -1
- package/dist/cmp/ReadmeTop.js.map +1 -1
- package/dist/helpers/definition.d.ts +5 -0
- package/dist/helpers/definition.js +72 -0
- package/dist/helpers/definition.js.map +1 -0
- package/dist/helpers/featureSource.d.ts +8 -2
- package/dist/helpers/featureSource.js +61 -12
- package/dist/helpers/featureSource.js.map +1 -1
- package/dist/helpers/junk.d.ts +11 -0
- package/dist/helpers/junk.js +149 -0
- package/dist/helpers/junk.js.map +1 -0
- package/dist/helpers/manifest.d.ts +50 -0
- package/dist/helpers/manifest.js +328 -0
- package/dist/helpers/manifest.js.map +1 -0
- package/dist/helpers/modelcheck.d.ts +22 -0
- package/dist/helpers/modelcheck.js +203 -0
- package/dist/helpers/modelcheck.js.map +1 -0
- package/dist/helpers/semver.d.ts +4 -0
- package/dist/helpers/semver.js +174 -0
- package/dist/helpers/semver.js.map +1 -0
- package/dist/helpers/shipped.d.ts +4 -0
- package/dist/helpers/shipped.js +36 -0
- package/dist/helpers/shipped.js.map +1 -0
- package/dist/helpers/stdrep.d.ts +9 -1
- package/dist/helpers/stdrep.js +22 -0
- package/dist/helpers/stdrep.js.map +1 -1
- package/dist/sdkgen.d.ts +15 -3
- package/dist/sdkgen.js +233 -67
- package/dist/sdkgen.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types.d.ts +10 -2
- package/dist/utility.js +17 -0
- package/dist/utility.js.map +1 -1
- package/model/sdkgen.aontu +69 -0
- package/package.json +3 -2
- package/project/.sdk/model/feature/audit.aontu +1 -0
- package/project/.sdk/model/feature/cache.aontu +1 -0
- package/project/.sdk/model/feature/clienttrack.aontu +1 -0
- package/project/.sdk/model/feature/debug.aontu +1 -0
- package/project/.sdk/model/feature/idempotency.aontu +1 -0
- package/project/.sdk/model/feature/log.aontu +1 -0
- package/project/.sdk/model/feature/metrics.aontu +1 -0
- package/project/.sdk/model/feature/netsim.aontu +1 -0
- package/project/.sdk/model/feature/paging.aontu +1 -0
- package/project/.sdk/model/feature/proxy.aontu +1 -0
- package/project/.sdk/model/feature/ratelimit.aontu +1 -0
- package/project/.sdk/model/feature/rbac.aontu +1 -0
- package/project/.sdk/model/feature/retry.aontu +1 -0
- package/project/.sdk/model/feature/streaming.aontu +1 -0
- package/project/.sdk/model/feature/telemetry.aontu +1 -0
- package/project/.sdk/model/feature/test.aontu +1 -0
- package/project/.sdk/model/feature/timeout.aontu +1 -0
- package/project/.sdk/model/target/c.aontu +1 -0
- package/project/.sdk/model/target/clojure.aontu +1 -0
- package/project/.sdk/model/target/cpp.aontu +1 -0
- package/project/.sdk/model/target/dart.aontu +1 -0
- package/project/.sdk/model/target/elixir.aontu +1 -0
- package/project/.sdk/model/target/go-cli.aontu +1 -0
- package/project/.sdk/model/target/go-mcp.aontu +1 -0
- package/project/.sdk/model/target/go.aontu +1 -0
- package/project/.sdk/model/target/haskell.aontu +1 -0
- package/project/.sdk/model/target/java.aontu +1 -0
- package/project/.sdk/model/target/js.aontu +1 -0
- package/project/.sdk/model/target/kotlin.aontu +1 -0
- package/project/.sdk/model/target/lean.aontu +1 -0
- package/project/.sdk/model/target/lua.aontu +1 -0
- package/project/.sdk/model/target/ocaml.aontu +1 -0
- package/project/.sdk/model/target/perl.aontu +1 -0
- package/project/.sdk/model/target/php.aontu +1 -0
- package/project/.sdk/model/target/py-data.aontu +1 -0
- package/project/.sdk/model/target/py.aontu +1 -0
- package/project/.sdk/model/target/rb.aontu +1 -0
- package/project/.sdk/model/target/rust.aontu +1 -0
- package/project/.sdk/model/target/scala.aontu +1 -0
- package/project/.sdk/model/target/seneca-provider.aontu +1 -0
- package/project/.sdk/model/target/zig.aontu +1 -0
- package/project/.sdk/src/cmp/c/Config_c.ts +44 -0
- package/project/.sdk/src/cmp/c/fragment/Main.fragment.c +3 -1
- package/project/.sdk/src/cmp/clojure/Config_clojure.ts +37 -42
- package/project/.sdk/src/cmp/clojure/utility_clojure.ts +42 -0
- package/project/.sdk/src/cmp/cpp/Config_cpp.ts +18 -0
- package/project/.sdk/src/cmp/csharp/Config_csharp.ts +125 -52
- package/project/.sdk/src/cmp/csharp/fragment/Main.fragment.cs +3 -1
- package/project/.sdk/src/cmp/csharp/utility_csharp.ts +94 -6
- package/project/.sdk/src/cmp/dart/Config_dart.ts +56 -3
- package/project/.sdk/src/cmp/dart/fragment/Config.data.fragment.dart +74 -0
- package/project/.sdk/src/cmp/dart/fragment/Config.fragment.dart +6 -9
- package/project/.sdk/src/cmp/dart/fragment/Main.fragment.dart +16 -5
- package/project/.sdk/src/cmp/dart/utility_dart.ts +18 -0
- package/project/.sdk/src/cmp/elixir/Config_elixir.ts +128 -13
- package/project/.sdk/src/cmp/elixir/fragment/Main.fragment.ex +3 -1
- package/project/.sdk/src/cmp/elixir/utility_elixir.ts +6 -0
- package/project/.sdk/src/cmp/haskell/Config_haskell.ts +35 -52
- package/project/.sdk/src/cmp/haskell/Package_haskell.ts +1 -0
- package/project/.sdk/src/cmp/haskell/Test_haskell.ts +1 -1
- package/project/.sdk/src/cmp/haskell/utility_haskell.ts +15 -5
- package/project/.sdk/src/cmp/java/Config_java.ts +21 -0
- package/project/.sdk/src/cmp/kotlin/Config_kotlin.ts +15 -0
- package/project/.sdk/src/cmp/ocaml/Config_ocaml.ts +42 -39
- package/project/.sdk/src/cmp/perl/Config_perl.ts +15 -0
- package/project/.sdk/src/cmp/perl/fragment/Main.fragment.pm +3 -1
- package/project/.sdk/src/cmp/rust/Config_rust.ts +44 -0
- package/project/.sdk/src/cmp/rust/fragment/Main.fragment.rs +4 -2
- package/project/.sdk/src/cmp/scala/Config_scala.ts +15 -0
- package/project/.sdk/src/cmp/swift/Config_swift.ts +17 -0
- package/project/.sdk/src/cmp/swift/fragment/Main.fragment.swift +3 -1
- package/project/.sdk/src/cmp/zig/Config_zig.ts +44 -0
- package/project/.sdk/src/cmp/zig/TestEntity_zig.ts +9 -2
- package/project/.sdk/src/cmp/zig/fragment/Main.fragment.zig +31 -18
- package/project/.sdk/tm/c/core/sdk.h +1 -0
- package/project/.sdk/tm/c/utility/make_options.c +5 -1
- package/project/.sdk/tm/clojure/src/sdk/core.clj +51 -3
- package/project/.sdk/tm/cpp/core/types.hpp +4 -1
- package/project/.sdk/tm/cpp/utility/pipeline.hpp +5 -1
- package/project/.sdk/tm/csharp/test/PipelineTest.cs +15 -0
- package/project/.sdk/tm/csharp/utility/MakeOptions.cs +67 -1
- package/project/.sdk/tm/dart/lib/utility/MakeOptionsUtility.dart +43 -0
- package/project/.sdk/tm/elixir/lib/projectname/utility.ex +58 -2
- package/project/.sdk/tm/haskell/{test/TestJson.hs → src/SdkJson.hs} +8 -4
- package/project/.sdk/tm/haskell/src/SdkRuntime.hs +55 -2
- package/project/.sdk/tm/haskell/test/Runner.hs +1 -1
- package/project/.sdk/tm/haskell/test/StructCorpus.hs +1 -1
- package/project/.sdk/tm/java/core/SdkClient.java +3 -1
- package/project/.sdk/tm/java/utility/MakeOptions.java +5 -1
- package/project/.sdk/tm/kotlin/core/SdkClient.kt +3 -1
- package/project/.sdk/tm/kotlin/utility/MakeOptions.kt +5 -1
- package/project/.sdk/tm/ocaml/Makefile +3 -2
- package/project/.sdk/tm/ocaml/sdk_json.ml +106 -0
- package/project/.sdk/tm/ocaml/sdk_runtime.ml +56 -0
- package/project/.sdk/tm/ocaml/test/struct_corpus.ml +4 -86
- package/project/.sdk/tm/perl/utility/make_options.pm +5 -1
- package/project/.sdk/tm/rust/utility/make_options.rs +79 -1
- package/project/.sdk/tm/scala/core/SdkClient.scala +3 -1
- package/project/.sdk/tm/scala/utility/Make.scala +5 -1
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/MakeOptions.swift +5 -1
- package/project/.sdk/tm/zig/core/utility.zig +85 -1
- package/project/.sdk/tm/zig/test/gotcha_test.zig +8 -8
- package/project/sdkgen-package.json +57 -0
- package/src/action/action.ts +136 -6
- package/src/action/check.ts +495 -0
- package/src/action/dispatch.ts +105 -0
- package/src/action/docs.ts +310 -0
- package/src/action/doctor.ts +692 -81
- package/src/action/feature.ts +109 -17
- package/src/action/kind.ts +375 -0
- package/src/action/package.ts +1173 -0
- package/src/action/resolve.ts +362 -0
- package/src/action/target.ts +290 -108
- package/src/cmp/Docs.ts +125 -0
- package/src/cmp/ExternalDocs.ts +54 -0
- package/src/cmp/ReadmeTop.ts +6 -1
- package/src/helpers/definition.ts +82 -0
- package/src/helpers/featureSource.ts +83 -13
- package/src/helpers/junk.ts +168 -0
- package/src/helpers/manifest.ts +474 -0
- package/src/helpers/modelcheck.ts +262 -0
- package/src/helpers/semver.ts +211 -0
- package/src/helpers/shipped.ts +41 -0
- package/src/helpers/stdrep.ts +70 -0
- package/src/sdkgen.ts +294 -66
- package/src/types.ts +33 -3
- package/src/utility.ts +17 -0
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// A DELIBERATELY SMALL semver range check, for `engines.sdkgen`.
|
|
3
|
+
//
|
|
4
|
+
// WHY NOT node-semver
|
|
5
|
+
//
|
|
6
|
+
// This package has no runtime dependencies (`dependencies: {}`), and adding
|
|
7
|
+
// one to read a single optional manifest field is a poor trade. What the field
|
|
8
|
+
// actually carries is a floor — `">=3.5"` — so the subset below covers the
|
|
9
|
+
// spellings that occur, and REFUSES TO GUESS at anything else.
|
|
10
|
+
//
|
|
11
|
+
// THE FAILURE DIRECTION MATTERS MORE THAN THE COVERAGE
|
|
12
|
+
//
|
|
13
|
+
// Getting this wrong in the strict direction refuses a package that would
|
|
14
|
+
// have worked, which is worse than the incompatibility it is trying to
|
|
15
|
+
// prevent. So `satisfies` has three outcomes, not two: yes, no, and
|
|
16
|
+
// `undefined` for "this range is outside the subset I understand". A caller
|
|
17
|
+
// that gets `undefined` must let the install proceed and say so, never treat
|
|
18
|
+
// it as a failure.
|
|
19
|
+
//
|
|
20
|
+
// SUPPORTED
|
|
21
|
+
// * x X '' any version
|
|
22
|
+
// >=1.2.3 >1.2 <=2 <2 =1.2.3 1.2.3
|
|
23
|
+
// ^1.2.3 ~1.2.3
|
|
24
|
+
// space-separated conjunction: ">=3.5 <4"
|
|
25
|
+
// ||-separated alternatives: "^3 || ^4"
|
|
26
|
+
//
|
|
27
|
+
// NOT SUPPORTED (returns undefined)
|
|
28
|
+
// hyphen ranges (`1.2.3 - 2.3.4`), prerelease/build metadata comparison,
|
|
29
|
+
// and anything else. Prereleases are compared by their numeric core only,
|
|
30
|
+
// which is why a range mentioning one is rejected rather than mishandled.
|
|
31
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
+
exports.satisfies = satisfies;
|
|
33
|
+
exports.parseVersion = parseVersion;
|
|
34
|
+
const COMPARATOR_RE = /^(>=|<=|>|<|=|\^|~)?v?(\d+)(?:\.(\d+))?(?:\.(\d+))?$/;
|
|
35
|
+
const ANY_RE = /^(\*|x|X)$/;
|
|
36
|
+
// A version as three numbers, or undefined if it is not a plain `X.Y.Z`.
|
|
37
|
+
// A prerelease or build suffix returns undefined deliberately: comparing them
|
|
38
|
+
// properly is most of what makes semver hard, and this subset does not.
|
|
39
|
+
function parseVersion(v) {
|
|
40
|
+
const m = /^v?(\d+)\.(\d+)\.(\d+)$/.exec(String(v).trim());
|
|
41
|
+
return null == m ? undefined :
|
|
42
|
+
[Number(m[1]), Number(m[2]), Number(m[3])];
|
|
43
|
+
}
|
|
44
|
+
function compare(a, b) {
|
|
45
|
+
for (let i = 0; i < 3; i++) {
|
|
46
|
+
if (a[i] !== b[i]) {
|
|
47
|
+
return a[i] < b[i] ? -1 : 1;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
return 0;
|
|
51
|
+
}
|
|
52
|
+
// The upper bound `^` and `~` imply, exclusive.
|
|
53
|
+
//
|
|
54
|
+
// ^1.2.3 -> <2.0.0 ^0.2.3 -> <0.3.0 ^0.0.3 -> <0.0.4
|
|
55
|
+
// ~1.2.3 -> <1.3.0 ~1.2 -> <1.3.0 ~1 -> <2.0.0
|
|
56
|
+
//
|
|
57
|
+
// `^0.x` is the case worth stating: npm treats a leading zero as unstable, so
|
|
58
|
+
// the caret narrows to the first NON-ZERO component. Getting that wrong would
|
|
59
|
+
// admit `0.3.0` for `^0.2.3`, which is a breaking change by that convention.
|
|
60
|
+
function caretBound(p) {
|
|
61
|
+
if (0 !== p[0])
|
|
62
|
+
return [p[0] + 1, 0, 0];
|
|
63
|
+
if (0 !== p[1])
|
|
64
|
+
return [0, p[1] + 1, 0];
|
|
65
|
+
return [0, 0, p[2] + 1];
|
|
66
|
+
}
|
|
67
|
+
function tildeBound(p, given) {
|
|
68
|
+
return nextBound(p, given);
|
|
69
|
+
}
|
|
70
|
+
// The version just past everything a PARTIAL version covers: `3.4` covers all
|
|
71
|
+
// of 3.4.x, so the next bound is 3.5.0; `3` covers all of 3.x, so 4.0.0.
|
|
72
|
+
// Shared by `~` and by the two strict comparators that need it, so they
|
|
73
|
+
// cannot disagree about where a partial version ends.
|
|
74
|
+
function nextBound(p, given) {
|
|
75
|
+
return 1 === given ? [p[0] + 1, 0, 0] : [p[0], p[1] + 1, 0];
|
|
76
|
+
}
|
|
77
|
+
// One comparator against one version. `undefined` if the comparator is
|
|
78
|
+
// outside the subset.
|
|
79
|
+
function satisfiesOne(version, comparator) {
|
|
80
|
+
const c = comparator.trim();
|
|
81
|
+
if ('' === c || ANY_RE.test(c)) {
|
|
82
|
+
return true;
|
|
83
|
+
}
|
|
84
|
+
const m = COMPARATOR_RE.exec(c);
|
|
85
|
+
if (null == m) {
|
|
86
|
+
return undefined;
|
|
87
|
+
}
|
|
88
|
+
const op = m[1] ?? '=';
|
|
89
|
+
// How many components were actually written — `~1.2` and `~1` bound
|
|
90
|
+
// differently, and a partial version means "any" in its missing places.
|
|
91
|
+
const given = null != m[4] ? 3 : null != m[3] ? 2 : 1;
|
|
92
|
+
const p = [Number(m[2]), Number(m[3] ?? 0), Number(m[4] ?? 0)];
|
|
93
|
+
const cmp = compare(version, p);
|
|
94
|
+
// A PARTIAL version is a RANGE, not a version with zeroes in it, and two of
|
|
95
|
+
// the four strict comparators have to move their bound to say so:
|
|
96
|
+
//
|
|
97
|
+
// >3.4 means ">= all of 3.4.x" -> >=3.5.0 (not >3.4.0)
|
|
98
|
+
// <=3.4 means "<= all of 3.4.x" -> <3.5.0 (not <=3.4.0)
|
|
99
|
+
// >=3.4 -> >=3.4.0 <3.4 -> <3.4.0 (already right)
|
|
100
|
+
//
|
|
101
|
+
// Read as literal zeroes, `>3.4` admitted 3.4.8 (an incompatible package
|
|
102
|
+
// let through) and `<=3.4` rejected it (a compatible one refused) — the two
|
|
103
|
+
// failures this module's whole shape is meant to avoid, in one comparator.
|
|
104
|
+
const bound = 3 === given ? p : nextBound(p, given);
|
|
105
|
+
if ('>=' === op)
|
|
106
|
+
return 0 <= cmp;
|
|
107
|
+
if ('<' === op)
|
|
108
|
+
return 0 > cmp;
|
|
109
|
+
if ('>' === op)
|
|
110
|
+
return 3 === given ? 0 < cmp : 0 <= compare(version, bound);
|
|
111
|
+
if ('<=' === op)
|
|
112
|
+
return 3 === given ? 0 >= cmp : 0 > compare(version, bound);
|
|
113
|
+
if ('^' === op) {
|
|
114
|
+
return 0 <= cmp && 0 > compare(version, caretBound(p));
|
|
115
|
+
}
|
|
116
|
+
if ('~' === op) {
|
|
117
|
+
return 0 <= cmp && 0 > compare(version, tildeBound(p, given));
|
|
118
|
+
}
|
|
119
|
+
// `=` / bare. A partial version is a PREFIX match: `1.2` admits any 1.2.x,
|
|
120
|
+
// which is what every other tool means by it.
|
|
121
|
+
if (3 === given)
|
|
122
|
+
return 0 === cmp;
|
|
123
|
+
if (2 === given)
|
|
124
|
+
return version[0] === p[0] && version[1] === p[1];
|
|
125
|
+
return version[0] === p[0];
|
|
126
|
+
}
|
|
127
|
+
// Does `version` satisfy `range`?
|
|
128
|
+
//
|
|
129
|
+
// `true` / `false` / `undefined` — see the note at the top: undefined means
|
|
130
|
+
// "not understood", and the caller must not treat it as a failure.
|
|
131
|
+
function satisfies(version, range) {
|
|
132
|
+
const v = parseVersion(version);
|
|
133
|
+
if (null == v) {
|
|
134
|
+
return undefined;
|
|
135
|
+
}
|
|
136
|
+
const text = String(range ?? '').trim();
|
|
137
|
+
if ('' === text || ANY_RE.test(text)) {
|
|
138
|
+
return true;
|
|
139
|
+
}
|
|
140
|
+
// A hyphen range is not supported, and its parts would otherwise be read as
|
|
141
|
+
// a conjunction of two bare versions — which is never satisfiable, i.e. a
|
|
142
|
+
// false REFUSAL. Rejected explicitly rather than by accident.
|
|
143
|
+
if (/\s-\s/.test(text)) {
|
|
144
|
+
return undefined;
|
|
145
|
+
}
|
|
146
|
+
// An alternative that MATCHES wins immediately, whatever the others say.
|
|
147
|
+
// But a `false` is only reportable if every comparator was understood:
|
|
148
|
+
// otherwise the honest answer is "do not know", and refusing on it would be
|
|
149
|
+
// the strict-direction failure this module is shaped to avoid.
|
|
150
|
+
let unknown = false;
|
|
151
|
+
for (const alt of text.split('||')) {
|
|
152
|
+
const comparators = alt.trim().split(/\s+/).filter((s) => '' !== s);
|
|
153
|
+
if (0 === comparators.length) {
|
|
154
|
+
unknown = true;
|
|
155
|
+
continue;
|
|
156
|
+
}
|
|
157
|
+
let all = true;
|
|
158
|
+
for (const c of comparators) {
|
|
159
|
+
const one = satisfiesOne(v, c);
|
|
160
|
+
if (null == one) {
|
|
161
|
+
unknown = true;
|
|
162
|
+
all = false;
|
|
163
|
+
}
|
|
164
|
+
else if (!one) {
|
|
165
|
+
all = false;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
if (all) {
|
|
169
|
+
return true;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
return unknown ? undefined : false;
|
|
173
|
+
}
|
|
174
|
+
//# sourceMappingURL=semver.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"semver.js","sourceRoot":"","sources":["../../src/helpers/semver.ts"],"names":[],"mappings":";AAAA,iEAAiE;AACjE,EAAE;AACF,sBAAsB;AACtB,EAAE;AACF,4EAA4E;AAC5E,+EAA+E;AAC/E,2EAA2E;AAC3E,+DAA+D;AAC/D,EAAE;AACF,uDAAuD;AACvD,EAAE;AACF,0EAA0E;AAC1E,uEAAuE;AACvE,oEAAoE;AACpE,4EAA4E;AAC5E,6EAA6E;AAC7E,mBAAmB;AACnB,EAAE;AACF,YAAY;AACZ,uCAAuC;AACvC,0CAA0C;AAC1C,mBAAmB;AACnB,6CAA6C;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,CAAA;IAClB,CAAC;IAED,yEAAyE;IACzE,uEAAuE;IACvE,4EAA4E;IAC5E,+DAA+D;IAC/D,IAAI,OAAO,GAAG,KAAK,CAAA;IAEnB,KAAK,MAAM,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC;QACnC,MAAM,WAAW,GAAG,GAAG,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC,CAAA;QAEnE,IAAI,CAAC,KAAK,WAAW,CAAC,MAAM,EAAE,CAAC;YAC7B,OAAO,GAAG,IAAI,CAAA;YACd,SAAQ;QACV,CAAC;QAED,IAAI,GAAG,GAAG,IAAI,CAAA;QAEd,KAAK,MAAM,CAAC,IAAI,WAAW,EAAE,CAAC;YAC5B,MAAM,GAAG,GAAG,YAAY,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;YAE9B,IAAI,IAAI,IAAI,GAAG,EAAE,CAAC;gBAChB,OAAO,GAAG,IAAI,CAAA;gBACd,GAAG,GAAG,KAAK,CAAA;YACb,CAAC;iBACI,IAAI,CAAC,GAAG,EAAE,CAAC;gBACd,GAAG,GAAG,KAAK,CAAA;YACb,CAAC;QACH,CAAC;QAED,IAAI,GAAG,EAAE,CAAC;YACR,OAAO,IAAI,CAAA;QACb,CAAC;IACH,CAAC;IAED,OAAO,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAA;AACpC,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// WHERE THIS GENERATOR'S OWN FILES ARE, resolved from the compiled code.
|
|
3
|
+
//
|
|
4
|
+
// Every other path in `action/` is relative to the PROJECT being operated on
|
|
5
|
+
// — `node_modules/@voxgig/sdkgen/project/.sdk` is how a consumer reaches the
|
|
6
|
+
// bundled scaffold, and that is correct there. `package check` has no project:
|
|
7
|
+
// it is run by an AUTHOR against a package that may sit anywhere, and it
|
|
8
|
+
// still needs this generator's base schema (to unify against) and its feature
|
|
9
|
+
// catalogue (to know which names denote features). Those come from the
|
|
10
|
+
// installation doing the checking, which is this one.
|
|
11
|
+
//
|
|
12
|
+
// `__dirname` is `dist/helpers` in the shipped package, so the package root is
|
|
13
|
+
// two levels up. npm can only ship files under that root, which is why the
|
|
14
|
+
// canonical `model/` is mirrored into `ts/model/` (the model-mirror guard
|
|
15
|
+
// fails on drift).
|
|
16
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
|
+
};
|
|
19
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
+
exports.packageRoot = packageRoot;
|
|
21
|
+
exports.schemaFile = schemaFile;
|
|
22
|
+
exports.scaffoldFolder = scaffoldFolder;
|
|
23
|
+
const node_path_1 = __importDefault(require("node:path"));
|
|
24
|
+
function packageRoot() {
|
|
25
|
+
return node_path_1.default.resolve(__dirname, '..', '..');
|
|
26
|
+
}
|
|
27
|
+
// The base model schema — `@voxgig/sdkgen/model/sdkgen.aontu`.
|
|
28
|
+
function schemaFile() {
|
|
29
|
+
return node_path_1.default.join(packageRoot(), 'model', 'sdkgen.aontu');
|
|
30
|
+
}
|
|
31
|
+
// The bundled scaffold — the `.sdk` of `ts/project`, which is itself an
|
|
32
|
+
// sdkgen package.
|
|
33
|
+
function scaffoldFolder() {
|
|
34
|
+
return node_path_1.default.join(packageRoot(), 'project', '.sdk');
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=shipped.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shipped.js","sourceRoot":"","sources":["../../src/helpers/shipped.ts"],"names":[],"mappings":";AAAA,yEAAyE;AACzE,EAAE;AACF,6EAA6E;AAC7E,6EAA6E;AAC7E,+EAA+E;AAC/E,yEAAyE;AACzE,8EAA8E;AAC9E,uEAAuE;AACvE,sDAAsD;AACtD,EAAE;AACF,+EAA+E;AAC/E,2EAA2E;AAC3E,0EAA0E;AAC1E,mBAAmB;;;;;QAwBjB,WAAW;QACX,UAAU;QACV,cAAc;AAxBhB,0DAA4B;AAG5B,SAAS,WAAW;IAClB,OAAO,mBAAI,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;AAC5C,CAAC;AAGD,+DAA+D;AAC/D,SAAS,UAAU;IACjB,OAAO,mBAAI,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,OAAO,EAAE,cAAc,CAAC,CAAA;AAC1D,CAAC;AAGD,wEAAwE;AACxE,kBAAkB;AAClB,SAAS,cAAc;IACrB,OAAO,mBAAI,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,SAAS,EAAE,MAAM,CAAC,CAAA;AACpD,CAAC"}
|
package/dist/helpers/stdrep.d.ts
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
1
|
declare function ensureStdrep(ctx$: any): any;
|
|
2
2
|
declare function templateReplacements(model: any, tname: string): Record<string, string>;
|
|
3
|
-
|
|
3
|
+
type Provenance = {
|
|
4
|
+
base: string;
|
|
5
|
+
origname?: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
package?: string;
|
|
8
|
+
};
|
|
9
|
+
declare function provenanceReplace(prov: Provenance): Record<string, string>;
|
|
10
|
+
export type { Provenance, };
|
|
11
|
+
export { ensureStdrep, templateReplacements, provenanceReplace, };
|
package/dist/helpers/stdrep.js
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
11
|
exports.ensureStdrep = ensureStdrep;
|
|
12
12
|
exports.templateReplacements = templateReplacements;
|
|
13
|
+
exports.provenanceReplace = provenanceReplace;
|
|
13
14
|
const packageMeta_1 = require("./packageMeta");
|
|
14
15
|
// PROJECTENV — the env-var base for this SDK's `<BASE>_TEST_LIVE`,
|
|
15
16
|
// `<BASE>_APIKEY` and friends.
|
|
@@ -44,4 +45,25 @@ function templateReplacements(model, tname) {
|
|
|
44
45
|
PROJECTVERSION: (0, packageMeta_1.packageVersion)(model, tname),
|
|
45
46
|
};
|
|
46
47
|
}
|
|
48
|
+
// Two spaces, matching every shipped model file's indentation for these keys.
|
|
49
|
+
const PROVENANCE_INDENT = ' ';
|
|
50
|
+
// A value as a single-quoted aontu string. These are PATHS and NAMES from the
|
|
51
|
+
// filesystem, so they can legally contain a quote — `/home/o'connor/pkg` is a
|
|
52
|
+
// valid directory — and concatenating one between quotes closes the string
|
|
53
|
+
// early and leaves the copied model unparsable. Aontu accepts a backslash
|
|
54
|
+
// escape, which keeps the quoting style every shipped model already uses.
|
|
55
|
+
function aontuString(value) {
|
|
56
|
+
return "'" + String(value).replace(/\\/g, '\\\\').replace(/'/g, "\\'") + "'";
|
|
57
|
+
}
|
|
58
|
+
function provenanceReplace(prov) {
|
|
59
|
+
const lines = ['base: ' + aontuString(prov.base)];
|
|
60
|
+
if (null != prov.origname && null != prov.name &&
|
|
61
|
+
prov.origname !== prov.name) {
|
|
62
|
+
lines.push('origname: ' + aontuString(prov.origname));
|
|
63
|
+
}
|
|
64
|
+
if (null != prov.package && '' !== prov.package) {
|
|
65
|
+
lines.push('package: ' + aontuString(prov.package));
|
|
66
|
+
}
|
|
67
|
+
return { "base: 'BASE'": lines.join('\n' + PROVENANCE_INDENT) };
|
|
68
|
+
}
|
|
47
69
|
//# sourceMappingURL=stdrep.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stdrep.js","sourceRoot":"","sources":["../../src/helpers/stdrep.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,EAAE;AACF,uDAAuD;AACvD,8EAA8E;AAC9E,8EAA8E;AAC9E,8EAA8E;AAC9E,6EAA6E;AAC7E,qEAAqE;;
|
|
1
|
+
{"version":3,"file":"stdrep.js","sourceRoot":"","sources":["../../src/helpers/stdrep.ts"],"names":[],"mappings":";AAAA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CAAC,IAAI,EAAE,KAAK,CAAC,GAAG,GAAG,CAAA;AAC9E,CAAC;AAGD,SAAS,iBAAiB,CAAC,IAAgB;IACzC,MAAM,KAAK,GAAG,CAAC,QAAQ,GAAG,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAA;IAEjD,IAAI,IAAI,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,IAAI,IAAI,CAAC,IAAI;QAC5C,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAC,IAAI,EAAE,CAAC;QAC9B,KAAK,CAAC,IAAI,CAAC,YAAY,GAAG,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAA;IACvD,CAAC;IAED,IAAI,IAAI,IAAI,IAAI,CAAC,OAAO,IAAI,EAAE,KAAK,IAAI,CAAC,OAAO,EAAE,CAAC;QAChD,KAAK,CAAC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAA;IACrD,CAAC;IAED,OAAO,EAAE,cAAc,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,iBAAiB,CAAC,EAAE,CAAA;AACjE,CAAC"}
|
package/dist/sdkgen.d.ts
CHANGED
|
@@ -40,6 +40,9 @@ import type { ExampleLang } from './helpers/opExample';
|
|
|
40
40
|
import { liveStrict } from './helpers/testPolicy';
|
|
41
41
|
import { featureOf, availableFeatures, findFeatureSources, featureExcludes, fullsetExcludes, srcFeatureExcludes } from './helpers/featureSource';
|
|
42
42
|
import type { FeatureSource } from './helpers/featureSource';
|
|
43
|
+
import { definitionPath, definitionFolder, definitionNames } from './helpers/definition';
|
|
44
|
+
import { MANIFEST, manifestPath, readManifest, validateManifest } from './helpers/manifest';
|
|
45
|
+
import type { Manifest, ManifestRead } from './helpers/manifest';
|
|
43
46
|
import { packageName, installCommand, registryState, isPublished, registryName, vendorCommand, pkgDescription, nonAffiliation, keywords, authorInfo, contributorList, envName, envToken, goModule, goVersion, goPackageIdent, packageVersion, repoInfo, apiName, langLabel, PUBLISHER, PUBLISHER_URL, SECURITY_EMAIL, GENERATOR_URL } from './helpers/packageMeta';
|
|
44
47
|
import type { DoctorReport } from './action/doctor';
|
|
45
48
|
type SdkGenOptions = {
|
|
@@ -70,19 +73,28 @@ declare function SdkGen(opts: SdkGenOptions): {
|
|
|
70
73
|
ok: boolean;
|
|
71
74
|
name: string;
|
|
72
75
|
}>;
|
|
73
|
-
action: (args: string[]) => Promise<any>;
|
|
76
|
+
action: (args: string[], flags?: Record<string, any>) => Promise<any>;
|
|
74
77
|
check: () => Promise<ActionResult>;
|
|
78
|
+
docs: {
|
|
79
|
+
add: (items: string[]) => Promise<ActionResult>;
|
|
80
|
+
};
|
|
75
81
|
target: {
|
|
76
82
|
add: (targets: string[]) => Promise<ActionResult>;
|
|
77
83
|
};
|
|
78
84
|
feature: {
|
|
79
85
|
add: (features: string[]) => Promise<ActionResult>;
|
|
80
86
|
};
|
|
87
|
+
package: {
|
|
88
|
+
add: (refs: string[], flags?: Record<string, any>) => Promise<ActionResult>;
|
|
89
|
+
list: () => Promise<ActionResult>;
|
|
90
|
+
update: (names: string[], flags?: Record<string, any>) => Promise<ActionResult>;
|
|
91
|
+
check: (refs?: string[]) => Promise<ActionResult>;
|
|
92
|
+
};
|
|
81
93
|
};
|
|
82
94
|
declare namespace SdkGen {
|
|
83
95
|
var makeBuild: (opts: SdkGenOptions) => Promise<(model: any, build: any, ctx: any) => Promise<any>>;
|
|
84
96
|
}
|
|
85
|
-
export type { SdkGenOptions, ExampleLang, DepEntry, FeatureSource, DoctorReport, RegisterOptions, };
|
|
97
|
+
export type { SdkGenOptions, ExampleLang, DepEntry, FeatureSource, DoctorReport, RegisterOptions, Manifest, ManifestRead, };
|
|
86
98
|
export type { SdkModel, ModelKit, ModelTarget, ModelFeature, ModelEntity, ModelDep, ModelHook, } from './types';
|
|
87
99
|
type Component = (props: any, children?: any) => void;
|
|
88
100
|
export declare const cmp: (component: Function) => Component;
|
|
@@ -109,4 +121,4 @@ export declare const Inject: Component;
|
|
|
109
121
|
export declare const Line: Component;
|
|
110
122
|
export declare const Slot: Component;
|
|
111
123
|
export declare const List: Component;
|
|
112
|
-
export { Main, Deploy, License, Security, Changelog, Entity, Feature, Test, Readme, ReadmeTop, AgentGuideTop, AgentGuide, AgentGuideFeature, ReadmeInstall, ReadmeQuick, ReadmeErrors, ReadmeIntro, ReadmeModel, ReadmeOptions, ReadmeEntity, ReadmeHowto, ReadmeExplanation, ReadmeRef, FeatureHook, registerComponent, Jostraca, SdkGen, requirePath, isAuthActive, resolveAuthPrefix, CONFIG_DATA_THRESHOLD, CONFIG_REPR_VALUES, isConfigData, configRepr, configReprSetting, configDefinition, clean, rawStringLiteral, SdkGenError, buildIdNames, getMatchEntries, collectDeps, canonToType, canonToDtype, canonKey, OP_SUFFIX, opTypeName, opParams, opActions, entityActions, entityPath, opRequestShape, entityIdField, entityDataIdField, entityOps, entityPrimaryOp, pickExampleEntity, entityClassName, entityTypeCollisions, warnEntityTypeCollisions, deriveEntityNames, entityCollection, isReservedName, safeVarName, exampleVarName, phpEntityAccessor, entityCacheField, isRbCoreConstant, rbSafeTypeName, isSwiftSdkType, swiftSafeTypeName, serverVariables, hasServerVariables, liveStrict, primaryOpCall, idLiteral, matchArg, dataArg, litFor, featureOf, availableFeatures, findFeatureSources, featureExcludes, fullsetExcludes, srcFeatureExcludes, jsProp, jsOptProp, jsKey, packageName, installCommand, registryState, isPublished, registryName, vendorCommand, pkgDescription, nonAffiliation, keywords, authorInfo, contributorList, envName, envToken, goModule, goVersion, goPackageIdent, packageVersion, repoInfo, apiName, langLabel, PUBLISHER, PUBLISHER_URL, SECURITY_EMAIL, GENERATOR_URL, };
|
|
124
|
+
export { Main, Deploy, License, Security, Changelog, Entity, Feature, Test, Readme, ReadmeTop, AgentGuideTop, AgentGuide, AgentGuideFeature, ReadmeInstall, ReadmeQuick, ReadmeErrors, ReadmeIntro, ReadmeModel, ReadmeOptions, ReadmeEntity, ReadmeHowto, ReadmeExplanation, ReadmeRef, FeatureHook, registerComponent, Jostraca, SdkGen, requirePath, isAuthActive, resolveAuthPrefix, CONFIG_DATA_THRESHOLD, CONFIG_REPR_VALUES, isConfigData, configRepr, configReprSetting, configDefinition, clean, rawStringLiteral, SdkGenError, buildIdNames, getMatchEntries, collectDeps, canonToType, canonToDtype, canonKey, OP_SUFFIX, opTypeName, opParams, opActions, entityActions, entityPath, opRequestShape, entityIdField, entityDataIdField, entityOps, entityPrimaryOp, pickExampleEntity, entityClassName, entityTypeCollisions, warnEntityTypeCollisions, deriveEntityNames, entityCollection, isReservedName, safeVarName, exampleVarName, phpEntityAccessor, entityCacheField, isRbCoreConstant, rbSafeTypeName, isSwiftSdkType, swiftSafeTypeName, serverVariables, hasServerVariables, liveStrict, primaryOpCall, idLiteral, matchArg, dataArg, litFor, featureOf, availableFeatures, findFeatureSources, featureExcludes, fullsetExcludes, srcFeatureExcludes, definitionPath, definitionFolder, definitionNames, MANIFEST, manifestPath, readManifest, validateManifest, jsProp, jsOptProp, jsKey, packageName, installCommand, registryState, isPublished, registryName, vendorCommand, pkgDescription, nonAffiliation, keywords, authorInfo, contributorList, envName, envToken, goModule, goVersion, goPackageIdent, packageVersion, repoInfo, apiName, langLabel, PUBLISHER, PUBLISHER_URL, SECURITY_EMAIL, GENERATOR_URL, };
|