@voxgig/sdkgen 4.8.3 → 4.9.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/package.json +1 -1
- package/project/.sdk/model/target/zig.aon +9 -0
- package/project/.sdk/src/cmp/zig/Package_zig.ts +15 -11
- package/project/.sdk/src/cmp/zig/fragment/Entity.fragment.zig +3 -3
- package/project/.sdk/src/cmp/zig/fragment/EntityListOp.fragment.zig +3 -3
- package/project/.sdk/src/cmp/zig/fragment/Main.fragment.zig +3 -3
- package/project/.sdk/src/cmp/zig/utility_zig.ts +50 -1
- package/project/.sdk/tm/c/tests/vendor/omni/json.c +2 -2
- package/project/.sdk/tm/c/tests/vendor/omni/omni.h +2 -2
- package/project/.sdk/tm/c/tests/vendor/omni/runner.c +2 -2
- package/project/.sdk/tm/c/tests/vendor/omni/util.c +2 -2
- package/project/.sdk/tm/clojure/test/vendor/omni/voxgig/omni/json.clj +2 -2
- package/project/.sdk/tm/clojure/test/vendor/omni/voxgig/omni/runner.clj +2 -2
- package/project/.sdk/tm/clojure/test/vendor/omni/voxgig/omni/util.clj +2 -2
- package/project/.sdk/tm/cpp/test/vendor/omni/json.hpp +2 -2
- package/project/.sdk/tm/cpp/test/vendor/omni/omni.hpp +2 -2
- package/project/.sdk/tm/cpp/test/vendor/omni/util.hpp +2 -2
- package/project/.sdk/tm/csharp/test/vendor/omni/Runner.cs +2 -2
- package/project/.sdk/tm/csharp/test/vendor/omni/Util.cs +2 -2
- package/project/.sdk/tm/csharp/utility/struct/Struct.cs +1 -1
- package/project/.sdk/tm/dart/test/vendor/omni/omni.dart +2 -2
- package/project/.sdk/tm/dart/test/vendor/omni/runner.dart +2 -2
- package/project/.sdk/tm/dart/test/vendor/omni/util.dart +2 -2
- package/project/.sdk/tm/elixir/test/vendor/omni/json.ex +2 -2
- package/project/.sdk/tm/elixir/test/vendor/omni/runner.ex +2 -2
- package/project/.sdk/tm/elixir/test/vendor/omni/util.ex +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugin/capability.go +1 -1
- package/project/.sdk/tm/go/feature/secrets/plugin/catalog.go +1 -1
- package/project/.sdk/tm/go/feature/secrets/plugin/config.go +1 -1
- package/project/.sdk/tm/go/feature/secrets/plugin/depend.go +1 -1
- package/project/.sdk/tm/go/feature/secrets/plugin/env.go +1 -1
- package/project/.sdk/tm/go/feature/secrets/plugin/export.go +1 -1
- package/project/.sdk/tm/go/feature/secrets/plugin/graph.go +1 -1
- package/project/.sdk/tm/go/feature/secrets/plugin/host.go +1 -1
- package/project/.sdk/tm/go/feature/secrets/plugin/order.go +1 -1
- package/project/.sdk/tm/go/feature/secrets/plugin/point.go +1 -1
- package/project/.sdk/tm/go/feature/secrets/plugin/ref.go +1 -1
- package/project/.sdk/tm/go/feature/secrets/plugin/resolve.go +1 -1
- package/project/.sdk/tm/go/feature/secrets/plugin/types.go +1 -1
- package/project/.sdk/tm/go/feature/secrets/plugin/util.go +1 -1
- package/project/.sdk/tm/go/feature/secrets/plugin/version.go +1 -1
- package/project/.sdk/tm/go/feature/secrets/plugins/aws/aws.go +4 -4
- package/project/.sdk/tm/go/feature/secrets/plugins/aws/sigv4.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugins/azuresecrets/azuresecrets.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugins/boru/boru.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugins/doppler/doppler.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugins/gcpsecrets/gcpsecrets.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugins/hashicorp/hashicorp.go +4 -5
- package/project/.sdk/tm/go/feature/secrets/plugins/httpjson/httpjson.go +3 -3
- package/project/.sdk/tm/go/feature/secrets/plugins/infisical/infisical.go +3 -4
- package/project/.sdk/tm/go/feature/secrets/plugins/onepassword/onepassword.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/plugins/secretspec/secretspec.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/sekreto/addr.go +2 -2
- package/project/.sdk/tm/go/feature/secrets/sekreto/providers.go +5 -2
- package/project/.sdk/tm/go/feature/secrets/sekreto/sekreto.go +31 -2
- package/project/.sdk/tm/go/test/omni/omni.go +8 -3
- package/project/.sdk/tm/go/test/omni/util.go +25 -4
- package/project/.sdk/tm/go/utility/struct/voxgigstruct.go +1 -1
- package/project/.sdk/tm/java/test/vendor/omni/Json.java +2 -2
- package/project/.sdk/tm/java/test/vendor/omni/Runner.java +2 -2
- package/project/.sdk/tm/java/test/vendor/omni/Util.java +2 -2
- package/project/.sdk/tm/java/utility/struct/Struct.java +1 -1
- package/project/.sdk/tm/js/src/utility/StructUtility.js +2 -2
- package/project/.sdk/tm/js/test/vendor/omni/index.js +1 -1
- package/project/.sdk/tm/js/test/vendor/omni/runner.js +18 -3
- package/project/.sdk/tm/js/test/vendor/omni/util.js +25 -8
- package/project/.sdk/tm/kotlin/test/vendor/omni/Json.kt +2 -2
- package/project/.sdk/tm/kotlin/test/vendor/omni/Runner.kt +2 -2
- package/project/.sdk/tm/kotlin/test/vendor/omni/Util.kt +2 -2
- package/project/.sdk/tm/kotlin/utility/struct/Struct.kt +1 -1
- package/project/.sdk/tm/lean/test/vendor/omni/Omni.lean +2 -2
- package/project/.sdk/tm/lua/test/vendor/omni/json.lua +2 -2
- package/project/.sdk/tm/lua/test/vendor/omni/regex.lua +2 -2
- package/project/.sdk/tm/lua/test/vendor/omni/runner.lua +2 -2
- package/project/.sdk/tm/lua/test/vendor/omni/util.lua +2 -2
- package/project/.sdk/tm/lua/utility/struct/regex.lua +1 -1
- package/project/.sdk/tm/lua/utility/struct/struct.lua +1 -1
- package/project/.sdk/tm/ocaml/test/vendor/omni/omni.ml +2 -2
- package/project/.sdk/tm/perl/lib/Voxgig/Struct.pm +1 -1
- package/project/.sdk/tm/perl/t/vendor/omni/Voxgig/Omni/Runner.pm +1 -1
- package/project/.sdk/tm/perl/t/vendor/omni/Voxgig/Omni/Util.pm +1 -1
- package/project/.sdk/tm/perl/t/vendor/omni/Voxgig/Omni.pm +1 -1
- package/project/.sdk/tm/php/test/vendor/omni/Runner.php +2 -2
- package/project/.sdk/tm/php/test/vendor/omni/Util.php +2 -2
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/__init__.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/capability.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/catalog.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/config.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/depend.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/env.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/export.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/graph.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/host.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/order.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/point.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/ref.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/resolve.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/types.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_plugin/version.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/__init__.py +3 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/addr.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/plugins/aws.py +3 -3
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/plugins/azuresecrets.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/plugins/boru.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/plugins/doppler.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/plugins/gcpsecrets.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/plugins/hashicorp.py +3 -4
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/plugins/httpjson.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/plugins/infisical.py +4 -6
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/plugins/onepassword.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/plugins/secretspec.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/plugins/sigv4.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/providers.py +1 -1
- package/project/.sdk/tm/py/pkg/feature/secrets/voxgig_sekreto/sekreto.py +21 -1
- package/project/.sdk/tm/py/pkg/utility/voxgig_struct/voxgig_struct.py +1 -1
- package/project/.sdk/tm/py/test/voxgig_omni/__init__.py +1 -1
- package/project/.sdk/tm/py/test/voxgig_omni/runner.py +16 -2
- package/project/.sdk/tm/py/test/voxgig_omni/util.py +27 -12
- package/project/.sdk/tm/rb/test/vendor/omni/runner.rb +2 -2
- package/project/.sdk/tm/rb/test/vendor/omni/util.rb +2 -2
- package/project/.sdk/tm/rb/test/vendor/omni/voxgig_omni.rb +2 -2
- package/project/.sdk/tm/rust/tests/vendor/omni/json.rs +2 -2
- package/project/.sdk/tm/rust/tests/vendor/omni/mod.rs +2 -2
- package/project/.sdk/tm/rust/tests/vendor/omni/regex.rs +2 -2
- package/project/.sdk/tm/rust/tests/vendor/omni/runner.rs +2 -2
- package/project/.sdk/tm/rust/tests/vendor/omni/util.rs +2 -2
- package/project/.sdk/tm/scala/sdktest/vendor/omni/Json.scala +2 -2
- package/project/.sdk/tm/scala/sdktest/vendor/omni/Runner.scala +2 -2
- package/project/.sdk/tm/scala/sdktest/vendor/omni/Util.scala +2 -2
- package/project/.sdk/tm/swift/Tests/vendor/omni/Json.swift +2 -2
- package/project/.sdk/tm/swift/Tests/vendor/omni/Runner.swift +2 -2
- package/project/.sdk/tm/swift/Tests/vendor/omni/Util.swift +2 -2
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/Capability.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/Catalog.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/Config.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/Depend.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/Env.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/Export.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/FeatureHost.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/Graph.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/Host.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/Order.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/Point.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/Ref.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/Resolve.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/Types.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/Version.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/plugin/index.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/Sekreto.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/index.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/plugins/aws.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/plugins/azuresecrets.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/plugins/boru.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/plugins/doppler.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/plugins/gcpsecrets.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/plugins/hashicorp.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/plugins/httpjson.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/plugins/infisical.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/plugins/onepassword.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/plugins/secretspec.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/plugins/sigv4.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/provider/addr.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/provider/builtin.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/provider/dotenv.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/provider/env.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/provider/file.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/provider/memory.ts +1 -1
- package/project/.sdk/tm/ts/src/feature/secrets/sekreto/provider/support.ts +1 -1
- package/project/.sdk/tm/ts/src/utility/StructUtility.ts +2 -2
- package/project/.sdk/tm/ts/test/vendor/omni/Runner.ts +1 -1
- package/project/.sdk/tm/ts/test/vendor/omni/Util.ts +1 -1
- package/project/.sdk/tm/ts/test/vendor/omni/index.ts +1 -1
- package/project/.sdk/tm/zig/Makefile +15 -1
- package/project/.sdk/tm/zig/build.zig +23 -5
- package/project/.sdk/tm/zig/core/helpers.zig +52 -11
- package/project/.sdk/tm/zig/core/mem.zig +17 -1
- package/project/.sdk/tm/zig/core/utility.zig +23 -19
- package/project/.sdk/tm/zig/feature/audit.zig +2 -2
- package/project/.sdk/tm/zig/feature/cache.zig +2 -2
- package/project/.sdk/tm/zig/feature/debug.zig +5 -5
- package/project/.sdk/tm/zig/feature/netsim.zig +2 -2
- package/project/.sdk/tm/zig/feature/paging.zig +2 -2
- package/project/.sdk/tm/zig/feature/proxy.zig +15 -8
- package/project/.sdk/tm/zig/feature/streaming.zig +5 -5
- package/project/.sdk/tm/zig/feature/support.zig +3 -3
- package/project/.sdk/tm/zig/feature/telemetry.zig +5 -5
- package/project/.sdk/tm/zig/feature/test.zig +10 -5
- package/project/.sdk/tm/zig/test/fh.zig +10 -10
- package/project/.sdk/tm/zig/test/gotcha_test.zig +5 -5
- package/project/.sdk/tm/zig/test/omniresolver.zig +515 -0
- package/project/.sdk/tm/zig/test/omnismoke_test.zig +284 -0
- package/project/.sdk/tm/zig/test/pipeline_test.zig +8 -8
- package/project/.sdk/tm/zig/test/primary_utility_test.zig +144 -154
- package/project/.sdk/tm/zig/test/struct_corpus.zig +264 -187
- package/project/.sdk/tm/zig/test/vendor/omni/omni.zig +1314 -0
- package/project/.sdk/tm/zig/test/vendor/omni/regex.zig +446 -0
- package/project/.sdk/tm/zig/utility/voxgigstruct/regex.zig +7 -4
- package/project/.sdk/tm/zig/utility/voxgigstruct/struct.zig +356 -157
- package/project/sdkgen-package.json +1 -1
- package/project/.sdk/tm/zig/test/struct_runner.zig +0 -465
package/bin/voxgig-sdkgen
CHANGED
package/package.json
CHANGED
|
@@ -8,6 +8,15 @@ main: kit: target: zig: {
|
|
|
8
8
|
base: 'BASE'
|
|
9
9
|
srcfeature: false
|
|
10
10
|
|
|
11
|
+
# Files earlier toolchains generated that this target has RETIRED
|
|
12
|
+
# (vendor-tag rollout): the hand-written struct runner, whose engine half
|
|
13
|
+
# AND assertion half are now the vendored omni port driven through
|
|
14
|
+
# test/omniresolver.zig. `doctor` reports leftovers; `doctor prune`
|
|
15
|
+
# deletes them.
|
|
16
|
+
superseded: [
|
|
17
|
+
'test/struct_runner.zig'
|
|
18
|
+
]
|
|
19
|
+
|
|
11
20
|
# The vendored voxgig struct port is in-tree (utility/voxgigstruct) — Zig
|
|
12
21
|
# has no package registry to depend on, so there are no external deps.
|
|
13
22
|
deps: &: {
|
|
@@ -12,7 +12,7 @@ import type {
|
|
|
12
12
|
} from '@voxgig/apidef'
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
import { zigModuleName } from './utility_zig'
|
|
15
|
+
import { zigModuleName, zigPackageFingerprint } from './utility_zig'
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
// build.zig.zon — the Zig package manifest. Zig has no central package
|
|
@@ -24,16 +24,19 @@ import { zigModuleName } from './utility_zig'
|
|
|
24
24
|
//
|
|
25
25
|
// The `.paths` allow-list mirrors the (registry-less) template: it only
|
|
26
26
|
// matters when packaging for a registry, which zig does not do, so it is kept
|
|
27
|
-
// stable.
|
|
28
|
-
// fingerprint form.
|
|
27
|
+
// stable.
|
|
29
28
|
//
|
|
30
|
-
// TOOLCHAIN
|
|
31
|
-
//
|
|
32
|
-
//
|
|
33
|
-
//
|
|
34
|
-
//
|
|
35
|
-
//
|
|
36
|
-
//
|
|
29
|
+
// TOOLCHAIN: zig 0.16. `.name` is an ENUM LITERAL (`.solar_sdk`), and a
|
|
30
|
+
// `.fingerprint` is required beside it. That pairing is what a modern zig
|
|
31
|
+
// wants: 0.14 rejects the older plain-string form outright —
|
|
32
|
+
// `build.zig.zon:2:13: error: expected enum literal` — and 0.13 rejects the
|
|
33
|
+
// enum-literal form, so the two cannot both be supported from one generator.
|
|
34
|
+
// A move BACK to 0.13 would mean reverting both fields here and the CI pin in
|
|
35
|
+
// create-sdkgen project/standard/.github/workflows/ci.yml together.
|
|
36
|
+
//
|
|
37
|
+
// The fingerprint is derived from the package name, not random, so
|
|
38
|
+
// regenerating the same model does not rewrite this file — see
|
|
39
|
+
// zigPackageFingerprint for why, and for what zig checks.
|
|
37
40
|
const Package = cmp(async function Package(props: any) {
|
|
38
41
|
const ctx$ = props.ctx$
|
|
39
42
|
const target = props.target
|
|
@@ -43,8 +46,9 @@ const Package = cmp(async function Package(props: any) {
|
|
|
43
46
|
|
|
44
47
|
File({ name: 'build.zig.zon' }, () => {
|
|
45
48
|
Content(`.{
|
|
46
|
-
.name =
|
|
49
|
+
.name = .${name},
|
|
47
50
|
.version = "${packageVersion(model, target.name)}",
|
|
51
|
+
.fingerprint = ${zigPackageFingerprint(name)},
|
|
48
52
|
.dependencies = .{},
|
|
49
53
|
.paths = .{
|
|
50
54
|
"src",
|
|
@@ -231,9 +231,9 @@ pub const EntyClass = struct {
|
|
|
231
231
|
if (data == .array) {
|
|
232
232
|
return data.array.data.items;
|
|
233
233
|
} else if (!h.is_noval(data)) {
|
|
234
|
-
var out
|
|
235
|
-
out.append(data) catch {};
|
|
236
|
-
return out.toOwnedSlice() catch &.{};
|
|
234
|
+
var out: std.ArrayList(Value) = .empty;
|
|
235
|
+
out.append(h.A(), data) catch {};
|
|
236
|
+
return out.toOwnedSlice(h.A()) catch &.{};
|
|
237
237
|
}
|
|
238
238
|
return &.{};
|
|
239
239
|
}
|
|
@@ -16,18 +16,18 @@ pub fn list(self: *EntyClass, reqmatch: Value, ctrl: Value) EntListResult {
|
|
|
16
16
|
// `list` resolves to one ENTITY per record. make_result cannot build them
|
|
17
17
|
// here — it works in Value, which has no slot for an entity — so the op
|
|
18
18
|
// does, mirroring what the dynamic targets get from make_result.
|
|
19
|
-
var items
|
|
19
|
+
var items: std.ArrayList(*EntyClass) = .empty;
|
|
20
20
|
if (out == .array) {
|
|
21
21
|
for (out.array.data.items) |entry| {
|
|
22
22
|
const ent = EntyClass.new(self.client, h.clone(self.entopts));
|
|
23
23
|
if (entry == .object) {
|
|
24
24
|
_ = ent.data_impl(entry);
|
|
25
25
|
}
|
|
26
|
-
items.append(ent) catch {};
|
|
26
|
+
items.append(h.A(), ent) catch {};
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
return EntListResult{ .ok = items.toOwnedSlice() catch &[_]*EntyClass{} };
|
|
30
|
+
return EntListResult{ .ok = items.toOwnedSlice(h.A()) catch &[_]*EntyClass{} };
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
fn list_post_done(self: *EntyClass, ctx: *Context) void {
|
|
@@ -45,7 +45,7 @@ pub const ProjectNameSDK = struct {
|
|
|
45
45
|
.mode = "live",
|
|
46
46
|
.options = h.vnull(),
|
|
47
47
|
.sdkUtility = Utility.new(),
|
|
48
|
-
.features =
|
|
48
|
+
.features = .empty,
|
|
49
49
|
.rootctx = null,
|
|
50
50
|
};
|
|
51
51
|
|
|
@@ -93,8 +93,8 @@ pub const ProjectNameSDK = struct {
|
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
// Initialize features.
|
|
96
|
-
var snap
|
|
97
|
-
for (sdk.features.items) |f| snap.append(f) catch {};
|
|
96
|
+
var snap: std.ArrayList(Feature) = .empty;
|
|
97
|
+
for (sdk.features.items) |f| snap.append(h.A(), f) catch {};
|
|
98
98
|
for (snap.items) |f| sdk.sdkUtility.feature_init(rootctx, f);
|
|
99
99
|
|
|
100
100
|
sdk.sdkUtility.feature_hook(rootctx, "PostConstruct");
|
|
@@ -26,8 +26,56 @@ function zigVarName(name: string): string {
|
|
|
26
26
|
|
|
27
27
|
// The zig module identifier, e.g. solar_sdk (informational; the build module
|
|
28
28
|
// is named "sdk").
|
|
29
|
+
//
|
|
30
|
+
// It is also the `.name` of build.zig.zon, which zig 0.16 reads as an enum
|
|
31
|
+
// literal and requires to be a BARE identifier — `.@"2fa_sdk"` is rejected as
|
|
32
|
+
// firmly as `.2fa_sdk` is — so a model name starting with a digit is given a
|
|
33
|
+
// leading underscore. Nothing else in the target derives an identifier from
|
|
34
|
+
// this, and the alternative for such a model is a package that does not build.
|
|
29
35
|
function zigModuleName(model: any): string {
|
|
30
|
-
|
|
36
|
+
const name = `${model.name}_sdk`.toLowerCase().replace(/[^a-z0-9_]/g, '_')
|
|
37
|
+
return /^[0-9]/.test(name) ? '_' + name : name
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
// The `.fingerprint` zig 0.14+ requires in build.zig.zon, as a 0x-prefixed
|
|
42
|
+
// 16-digit hex literal.
|
|
43
|
+
//
|
|
44
|
+
// Zig reads the field as a packed struct of two u32s: the LOW half is a free
|
|
45
|
+
// `id`, and the HIGH half is a `checksum` that must equal the CRC-32 (IEEE, as
|
|
46
|
+
// zlib computes it) of the package name. Get the checksum wrong and zig
|
|
47
|
+
// refuses to build, printing the value it wanted; get it right and any id in
|
|
48
|
+
// [1, 0xfffffffe] is accepted.
|
|
49
|
+
//
|
|
50
|
+
// The id exists so a fork can be told apart from what it forked. A generated
|
|
51
|
+
// SDK gets a DERIVED one — FNV-1a over the same name — rather than a random
|
|
52
|
+
// one, because this file is regenerated on every run: a random id would
|
|
53
|
+
// rewrite build.zig.zon each time and churn the consumer's diff, and a package
|
|
54
|
+
// that changes identity between two generations of the same model is worse
|
|
55
|
+
// than one that shares an id with a fork of itself. Distinct names still get
|
|
56
|
+
// distinct ids.
|
|
57
|
+
function zigPackageFingerprint(name: string): string {
|
|
58
|
+
// CRC-32 (IEEE 802.3, reflected, poly 0xEDB88320) — the one zig's
|
|
59
|
+
// std.hash.Crc32 and zlib both compute.
|
|
60
|
+
let crc = 0xffffffff
|
|
61
|
+
for (let i = 0; i < name.length; i++) {
|
|
62
|
+
crc ^= name.charCodeAt(i) & 0xff
|
|
63
|
+
for (let b = 0; b < 8; b++) {
|
|
64
|
+
crc = (crc >>> 1) ^ (0xedb88320 & -(crc & 1))
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
const checksum = (crc ^ 0xffffffff) >>> 0
|
|
68
|
+
|
|
69
|
+
// FNV-1a 32-bit, folded into the 1..0xfffffffe zig accepts.
|
|
70
|
+
let fnv = 0x811c9dc5
|
|
71
|
+
for (let i = 0; i < name.length; i++) {
|
|
72
|
+
fnv ^= name.charCodeAt(i) & 0xff
|
|
73
|
+
fnv = Math.imul(fnv, 0x01000193) >>> 0
|
|
74
|
+
}
|
|
75
|
+
const id = (fnv % 0xfffffffd) + 1
|
|
76
|
+
|
|
77
|
+
const hex = (n: number) => n.toString(16).padStart(8, '0')
|
|
78
|
+
return `0x${hex(checksum)}${hex(id)}`
|
|
31
79
|
}
|
|
32
80
|
|
|
33
81
|
|
|
@@ -142,5 +190,6 @@ export {
|
|
|
142
190
|
clean,
|
|
143
191
|
formatZigValue,
|
|
144
192
|
zigModuleName,
|
|
193
|
+
zigPackageFingerprint,
|
|
145
194
|
zigVarName,
|
|
146
195
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// VENDORED: @voxgig/omni sdk-
|
|
2
|
-
// Source: https://github.com/voxgig/omni @
|
|
1
|
+
// VENDORED: @voxgig/omni sdk-20260907-0029-0 (c/src/json.c)
|
|
2
|
+
// Source: https://github.com/voxgig/omni @ 274708cc2d12b21707d975543953f845f8444be0 [tag: sdk-20260907-0029-0]
|
|
3
3
|
// License: MIT (c) voxgig - see repository LICENSE. Do not edit: resync from upstream.
|
|
4
4
|
/* The omni JSON value model, pool allocator, parser and printer.
|
|
5
5
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// VENDORED: @voxgig/omni sdk-
|
|
2
|
-
// Source: https://github.com/voxgig/omni @
|
|
1
|
+
// VENDORED: @voxgig/omni sdk-20260907-0029-0 (c/src/omni.h)
|
|
2
|
+
// Source: https://github.com/voxgig/omni @ 274708cc2d12b21707d975543953f845f8444be0 [tag: sdk-20260907-0029-0]
|
|
3
3
|
// License: MIT (c) voxgig - see repository LICENSE. Do not edit: resync from upstream.
|
|
4
4
|
/* Omni: the shared multi-language test runner (C port).
|
|
5
5
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// VENDORED: @voxgig/omni sdk-
|
|
2
|
-
// Source: https://github.com/voxgig/omni @
|
|
1
|
+
// VENDORED: @voxgig/omni sdk-20260907-0029-0 (c/src/runner.c)
|
|
2
|
+
// Source: https://github.com/voxgig/omni @ 274708cc2d12b21707d975543953f845f8444be0 [tag: sdk-20260907-0029-0]
|
|
3
3
|
// License: MIT (c) voxgig - see repository LICENSE. Do not edit: resync from upstream.
|
|
4
4
|
/* Omni: the shared multi-language test runner (C port).
|
|
5
5
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// VENDORED: @voxgig/omni sdk-
|
|
2
|
-
// Source: https://github.com/voxgig/omni @
|
|
1
|
+
// VENDORED: @voxgig/omni sdk-20260907-0029-0 (c/src/util.c)
|
|
2
|
+
// Source: https://github.com/voxgig/omni @ 274708cc2d12b21707d975543953f845f8444be0 [tag: sdk-20260907-0029-0]
|
|
3
3
|
// License: MIT (c) voxgig - see repository LICENSE. Do not edit: resync from upstream.
|
|
4
4
|
/* Omni internal JSON utilities: clone, path lookup, deep equality, and
|
|
5
5
|
* the regex bridge.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
;; VENDORED: @voxgig/omni sdk-
|
|
2
|
-
;; Source: https://github.com/voxgig/omni @
|
|
1
|
+
;; VENDORED: @voxgig/omni sdk-20260907-0029-0 (clojure/src/voxgig/omni/json.clj)
|
|
2
|
+
;; Source: https://github.com/voxgig/omni @ 274708cc2d12b21707d975543953f845f8444be0 [tag: sdk-20260907-0029-0]
|
|
3
3
|
;; License: MIT (c) voxgig - see repository LICENSE. Do not edit: resync from upstream.
|
|
4
4
|
;; The omni JSON parser.
|
|
5
5
|
;;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
;; VENDORED: @voxgig/omni sdk-
|
|
2
|
-
;; Source: https://github.com/voxgig/omni @
|
|
1
|
+
;; VENDORED: @voxgig/omni sdk-20260907-0029-0 (clojure/src/voxgig/omni/runner.clj)
|
|
2
|
+
;; Source: https://github.com/voxgig/omni @ 274708cc2d12b21707d975543953f845f8444be0 [tag: sdk-20260907-0029-0]
|
|
3
3
|
;; License: MIT (c) voxgig - see repository LICENSE. Do not edit: resync from upstream.
|
|
4
4
|
;; Omni: the shared multi-language test runner (Clojure port).
|
|
5
5
|
;;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
;; VENDORED: @voxgig/omni sdk-
|
|
2
|
-
;; Source: https://github.com/voxgig/omni @
|
|
1
|
+
;; VENDORED: @voxgig/omni sdk-20260907-0029-0 (clojure/src/voxgig/omni/util.clj)
|
|
2
|
+
;; Source: https://github.com/voxgig/omni @ 274708cc2d12b21707d975543953f845f8444be0 [tag: sdk-20260907-0029-0]
|
|
3
3
|
;; License: MIT (c) voxgig - see repository LICENSE. Do not edit: resync from upstream.
|
|
4
4
|
;; Omni internal JSON utilities.
|
|
5
5
|
;;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// VENDORED: @voxgig/omni sdk-
|
|
2
|
-
// Source: https://github.com/voxgig/omni @
|
|
1
|
+
// VENDORED: @voxgig/omni sdk-20260907-0029-0 (cpp/src/json.hpp)
|
|
2
|
+
// Source: https://github.com/voxgig/omni @ 274708cc2d12b21707d975543953f845f8444be0 [tag: sdk-20260907-0029-0]
|
|
3
3
|
// License: MIT (c) voxgig - see repository LICENSE. Do not edit: resync from upstream.
|
|
4
4
|
// The omni JSON value model, with a small in-tree parser.
|
|
5
5
|
//
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// VENDORED: @voxgig/omni sdk-
|
|
2
|
-
// Source: https://github.com/voxgig/omni @
|
|
1
|
+
// VENDORED: @voxgig/omni sdk-20260907-0029-0 (cpp/src/omni.hpp)
|
|
2
|
+
// Source: https://github.com/voxgig/omni @ 274708cc2d12b21707d975543953f845f8444be0 [tag: sdk-20260907-0029-0]
|
|
3
3
|
// License: MIT (c) voxgig - see repository LICENSE. Do not edit: resync from upstream.
|
|
4
4
|
// Omni: the shared multi-language test runner (C++ port).
|
|
5
5
|
//
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// VENDORED: @voxgig/omni sdk-
|
|
2
|
-
// Source: https://github.com/voxgig/omni @
|
|
1
|
+
// VENDORED: @voxgig/omni sdk-20260907-0029-0 (cpp/src/util.hpp)
|
|
2
|
+
// Source: https://github.com/voxgig/omni @ 274708cc2d12b21707d975543953f845f8444be0 [tag: sdk-20260907-0029-0]
|
|
3
3
|
// License: MIT (c) voxgig - see repository LICENSE. Do not edit: resync from upstream.
|
|
4
4
|
// Omni internal JSON utilities.
|
|
5
5
|
//
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// VENDORED: @voxgig/omni sdk-
|
|
2
|
-
// Source: https://github.com/voxgig/omni @
|
|
1
|
+
// VENDORED: @voxgig/omni sdk-20260907-0029-0 (csharp/src/Runner.cs)
|
|
2
|
+
// Source: https://github.com/voxgig/omni @ 274708cc2d12b21707d975543953f845f8444be0 [tag: sdk-20260907-0029-0]
|
|
3
3
|
// License: MIT (c) voxgig - see repository LICENSE. Do not edit: resync from upstream.
|
|
4
4
|
// Omni: the shared multi-language test runner (C# port).
|
|
5
5
|
//
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// VENDORED: @voxgig/omni sdk-
|
|
2
|
-
// Source: https://github.com/voxgig/omni @
|
|
1
|
+
// VENDORED: @voxgig/omni sdk-20260907-0029-0 (csharp/src/Util.cs)
|
|
2
|
+
// Source: https://github.com/voxgig/omni @ 274708cc2d12b21707d975543953f845f8444be0 [tag: sdk-20260907-0029-0]
|
|
3
3
|
// License: MIT (c) voxgig - see repository LICENSE. Do not edit: resync from upstream.
|
|
4
4
|
// Omni internal JSON utilities.
|
|
5
5
|
//
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// VENDORED: @voxgig/struct 0.1.1 (csharp/Struct.cs)
|
|
2
|
-
// Source: https://github.com/voxgig/struct @
|
|
2
|
+
// Source: https://github.com/voxgig/struct @ adda9521c828147573df5a8878408a3f2193ddf4 [tag: sdk-20260907-0029-0]
|
|
3
3
|
// License: MIT (c) voxgig - see repository LICENSE. Do not edit: resync from upstream.
|
|
4
4
|
/* Copyright (c) 2025-2026 Voxgig Ltd. MIT LICENSE. */
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// VENDORED: @voxgig/omni sdk-
|
|
2
|
-
// Source: https://github.com/voxgig/omni @
|
|
1
|
+
// VENDORED: @voxgig/omni sdk-20260907-0029-0 (dart/lib/omni.dart)
|
|
2
|
+
// Source: https://github.com/voxgig/omni @ 274708cc2d12b21707d975543953f845f8444be0 [tag: sdk-20260907-0029-0]
|
|
3
3
|
// License: MIT (c) voxgig - see repository LICENSE. Do not edit: resync from upstream.
|
|
4
4
|
// voxgig_omni - shared multi-language test runner.
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// VENDORED: @voxgig/omni sdk-
|
|
2
|
-
// Source: https://github.com/voxgig/omni @
|
|
1
|
+
// VENDORED: @voxgig/omni sdk-20260907-0029-0 (dart/lib/runner.dart)
|
|
2
|
+
// Source: https://github.com/voxgig/omni @ 274708cc2d12b21707d975543953f845f8444be0 [tag: sdk-20260907-0029-0]
|
|
3
3
|
// License: MIT (c) voxgig - see repository LICENSE. Do not edit: resync from upstream.
|
|
4
4
|
// Omni: the shared multi-language test runner (Dart port).
|
|
5
5
|
//
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// VENDORED: @voxgig/omni sdk-
|
|
2
|
-
// Source: https://github.com/voxgig/omni @
|
|
1
|
+
// VENDORED: @voxgig/omni sdk-20260907-0029-0 (dart/lib/util.dart)
|
|
2
|
+
// Source: https://github.com/voxgig/omni @ 274708cc2d12b21707d975543953f845f8444be0 [tag: sdk-20260907-0029-0]
|
|
3
3
|
// License: MIT (c) voxgig - see repository LICENSE. Do not edit: resync from upstream.
|
|
4
4
|
// Omni internal JSON utilities.
|
|
5
5
|
//
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
# VENDORED: @voxgig/omni sdk-
|
|
2
|
-
# Source: https://github.com/voxgig/omni @
|
|
1
|
+
# VENDORED: @voxgig/omni sdk-20260907-0029-0 (elixir/lib/json.ex)
|
|
2
|
+
# Source: https://github.com/voxgig/omni @ 274708cc2d12b21707d975543953f845f8444be0 [tag: sdk-20260907-0029-0]
|
|
3
3
|
# License: MIT (c) voxgig - see repository LICENSE. Do not edit: resync from upstream.
|
|
4
4
|
# The omni JSON parser.
|
|
5
5
|
#
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
# VENDORED: @voxgig/omni sdk-
|
|
2
|
-
# Source: https://github.com/voxgig/omni @
|
|
1
|
+
# VENDORED: @voxgig/omni sdk-20260907-0029-0 (elixir/lib/runner.ex)
|
|
2
|
+
# Source: https://github.com/voxgig/omni @ 274708cc2d12b21707d975543953f845f8444be0 [tag: sdk-20260907-0029-0]
|
|
3
3
|
# License: MIT (c) voxgig - see repository LICENSE. Do not edit: resync from upstream.
|
|
4
4
|
# Omni: the shared multi-language test runner (Elixir port).
|
|
5
5
|
#
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
# VENDORED: @voxgig/omni sdk-
|
|
2
|
-
# Source: https://github.com/voxgig/omni @
|
|
1
|
+
# VENDORED: @voxgig/omni sdk-20260907-0029-0 (elixir/lib/util.ex)
|
|
2
|
+
# Source: https://github.com/voxgig/omni @ 274708cc2d12b21707d975543953f845f8444be0 [tag: sdk-20260907-0029-0]
|
|
3
3
|
# License: MIT (c) voxgig - see repository LICENSE. Do not edit: resync from upstream.
|
|
4
4
|
# Omni internal JSON utilities.
|
|
5
5
|
#
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// VENDORED: @voxgig/plugin 0.1.6 (go/plugin/capability.go)
|
|
2
|
-
// Source: https://github.com/voxgig/plugin @
|
|
2
|
+
// Source: https://github.com/voxgig/plugin @ b48ae643eb0eb56c5ebe3198da98cecdf6a7f7fc [tag: sdk-20260907-0029-0]
|
|
3
3
|
// License: MIT (c) voxgig - see repository LICENSE. Do not edit: resync from upstream.
|
|
4
4
|
/* Capabilities (§11.1).
|
|
5
5
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// VENDORED: @voxgig/plugin 0.1.6 (go/plugin/catalog.go)
|
|
2
|
-
// Source: https://github.com/voxgig/plugin @
|
|
2
|
+
// Source: https://github.com/voxgig/plugin @ b48ae643eb0eb56c5ebe3198da98cecdf6a7f7fc [tag: sdk-20260907-0029-0]
|
|
3
3
|
// License: MIT (c) voxgig - see repository LICENSE. Do not edit: resync from upstream.
|
|
4
4
|
/* The definition catalog (§10.1).
|
|
5
5
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// VENDORED: @voxgig/plugin 0.1.6 (go/plugin/config.go)
|
|
2
|
-
// Source: https://github.com/voxgig/plugin @
|
|
2
|
+
// Source: https://github.com/voxgig/plugin @ b48ae643eb0eb56c5ebe3198da98cecdf6a7f7fc [tag: sdk-20260907-0029-0]
|
|
3
3
|
// License: MIT (c) voxgig - see repository LICENSE. Do not edit: resync from upstream.
|
|
4
4
|
/* The declarative document (§9): normalization, and the ten-level
|
|
5
5
|
* precedence ladder.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// VENDORED: @voxgig/plugin 0.1.6 (go/plugin/depend.go)
|
|
2
|
-
// Source: https://github.com/voxgig/plugin @
|
|
2
|
+
// Source: https://github.com/voxgig/plugin @ b48ae643eb0eb56c5ebe3198da98cecdf6a7f7fc [tag: sdk-20260907-0029-0]
|
|
3
3
|
// License: MIT (c) voxgig - see repository LICENSE. Do not edit: resync from upstream.
|
|
4
4
|
/* Dependency cardinality, policy, and the restart graph (§11.3).
|
|
5
5
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// VENDORED: @voxgig/plugin 0.1.6 (go/plugin/env.go)
|
|
2
|
-
// Source: https://github.com/voxgig/plugin @
|
|
2
|
+
// Source: https://github.com/voxgig/plugin @ b48ae643eb0eb56c5ebe3198da98cecdf6a7f7fc [tag: sdk-20260907-0029-0]
|
|
3
3
|
// License: MIT (c) voxgig - see repository LICENSE. Do not edit: resync from upstream.
|
|
4
4
|
/* Environment overrides (§9.5) — level 7 of the ladder.
|
|
5
5
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// VENDORED: @voxgig/plugin 0.1.6 (go/plugin/export.go)
|
|
2
|
-
// Source: https://github.com/voxgig/plugin @
|
|
2
|
+
// Source: https://github.com/voxgig/plugin @ b48ae643eb0eb56c5ebe3198da98cecdf6a7f7fc [tag: sdk-20260907-0029-0]
|
|
3
3
|
// License: MIT (c) voxgig - see repository LICENSE. Do not edit: resync from upstream.
|
|
4
4
|
/* Exports (§11).
|
|
5
5
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// VENDORED: @voxgig/plugin 0.1.6 (go/plugin/graph.go)
|
|
2
|
-
// Source: https://github.com/voxgig/plugin @
|
|
2
|
+
// Source: https://github.com/voxgig/plugin @ b48ae643eb0eb56c5ebe3198da98cecdf6a7f7fc [tag: sdk-20260907-0029-0]
|
|
3
3
|
// License: MIT (c) voxgig - see repository LICENSE. Do not edit: resync from upstream.
|
|
4
4
|
/* Whole-graph resolution (§11.4) — a phase, not a discovery.
|
|
5
5
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// VENDORED: @voxgig/plugin 0.1.6 (go/plugin/host.go)
|
|
2
|
-
// Source: https://github.com/voxgig/plugin @
|
|
2
|
+
// Source: https://github.com/voxgig/plugin @ b48ae643eb0eb56c5ebe3198da98cecdf6a7f7fc [tag: sdk-20260907-0029-0]
|
|
3
3
|
// License: MIT (c) voxgig - see repository LICENSE. Do not edit: resync from upstream.
|
|
4
4
|
/* The host: the lifecycle state machine (§5), extension points (§6), and
|
|
5
5
|
* resource capture (§8).
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// VENDORED: @voxgig/plugin 0.1.6 (go/plugin/order.go)
|
|
2
|
-
// Source: https://github.com/voxgig/plugin @
|
|
2
|
+
// Source: https://github.com/voxgig/plugin @ b48ae643eb0eb56c5ebe3198da98cecdf6a7f7fc [tag: sdk-20260907-0029-0]
|
|
3
3
|
// License: MIT (c) voxgig - see repository LICENSE. Do not edit: resync from upstream.
|
|
4
4
|
/* Ordering (§7) — one rule, one place.
|
|
5
5
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// VENDORED: @voxgig/plugin 0.1.6 (go/plugin/point.go)
|
|
2
|
-
// Source: https://github.com/voxgig/plugin @
|
|
2
|
+
// Source: https://github.com/voxgig/plugin @ b48ae643eb0eb56c5ebe3198da98cecdf6a7f7fc [tag: sdk-20260907-0029-0]
|
|
3
3
|
// License: MIT (c) voxgig - see repository LICENSE. Do not edit: resync from upstream.
|
|
4
4
|
/* Extension points (§6). Three kinds, chosen because they are what the
|
|
5
5
|
* two existing systems actually needed, and no more.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// VENDORED: @voxgig/plugin 0.1.6 (go/plugin/ref.go)
|
|
2
|
-
// Source: https://github.com/voxgig/plugin @
|
|
2
|
+
// Source: https://github.com/voxgig/plugin @ b48ae643eb0eb56c5ebe3198da98cecdf6a7f7fc [tag: sdk-20260907-0029-0]
|
|
3
3
|
// License: MIT (c) voxgig - see repository LICENSE. Do not edit: resync from upstream.
|
|
4
4
|
/* Identity: name+tag, written `name$tag` (§4).
|
|
5
5
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// VENDORED: @voxgig/plugin 0.1.6 (go/plugin/resolve.go)
|
|
2
|
-
// Source: https://github.com/voxgig/plugin @
|
|
2
|
+
// Source: https://github.com/voxgig/plugin @ b48ae643eb0eb56c5ebe3198da98cecdf6a7f7fc [tag: sdk-20260907-0029-0]
|
|
3
3
|
// License: MIT (c) voxgig - see repository LICENSE. Do not edit: resync from upstream.
|
|
4
4
|
/* Dynamic resolution (§10.2) — name to candidate module ids.
|
|
5
5
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// VENDORED: @voxgig/plugin 0.1.6 (go/plugin/types.go)
|
|
2
|
-
// Source: https://github.com/voxgig/plugin @
|
|
2
|
+
// Source: https://github.com/voxgig/plugin @ b48ae643eb0eb56c5ebe3198da98cecdf6a7f7fc [tag: sdk-20260907-0029-0]
|
|
3
3
|
// License: MIT (c) voxgig - see repository LICENSE. Do not edit: resync from upstream.
|
|
4
4
|
/* Shared types. Deliberately small: the design's §19 budget says the
|
|
5
5
|
* library owns naming, configuration, lifecycle, ordering, binding and
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// VENDORED: @voxgig/plugin 0.1.6 (go/plugin/util.go)
|
|
2
|
-
// Source: https://github.com/voxgig/plugin @
|
|
2
|
+
// Source: https://github.com/voxgig/plugin @ b48ae643eb0eb56c5ebe3198da98cecdf6a7f7fc [tag: sdk-20260907-0029-0]
|
|
3
3
|
// License: MIT (c) voxgig - see repository LICENSE. Do not edit: resync from upstream.
|
|
4
4
|
/* The handful of helpers the port needs that the canonical gets from
|
|
5
5
|
* JavaScript for free: sorted map keys (Object.keys(x).sort()), a
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// VENDORED: @voxgig/plugin 0.1.6 (go/plugin/version.go)
|
|
2
|
-
// Source: https://github.com/voxgig/plugin @
|
|
2
|
+
// Source: https://github.com/voxgig/plugin @ b48ae643eb0eb56c5ebe3198da98cecdf6a7f7fc [tag: sdk-20260907-0029-0]
|
|
3
3
|
// License: MIT (c) voxgig - see repository LICENSE. Do not edit: resync from upstream.
|
|
4
4
|
/* Versions and ranges (§11.2).
|
|
5
5
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// VENDORED: @voxgig/sekreto sdk-
|
|
2
|
-
// Source: https://github.com/voxgig/sekreto @
|
|
1
|
+
// VENDORED: @voxgig/sekreto sdk-20260907-0029-0 (go/plugins/aws/aws.go)
|
|
2
|
+
// Source: https://github.com/voxgig/sekreto @ 86ba35a646e68a311bdece43cd5689369ca62e9d [tag: sdk-20260907-0029-0]
|
|
3
3
|
// License: MIT (c) voxgig - see repository LICENSE. Do not edit: resync from upstream.
|
|
4
4
|
// The aws plugin: Secrets Manager and SSM Parameter Store, with requests
|
|
5
5
|
// SigV4-signed in-tree (sigv4.go, beside this file). Needs HTTPS and
|
|
@@ -155,7 +155,7 @@ func (provider *SecretsProvider) Lookup(name string) (string, bool, error) {
|
|
|
155
155
|
return "", false, err
|
|
156
156
|
}
|
|
157
157
|
|
|
158
|
-
payload, _ :=
|
|
158
|
+
payload, _ := sekreto.WriteJSON(struct {
|
|
159
159
|
SecretID string `json:"SecretId"`
|
|
160
160
|
}{SecretID: ref.Path})
|
|
161
161
|
|
|
@@ -236,7 +236,7 @@ func (provider *ParamsProvider) Lookup(name string) (string, bool, error) {
|
|
|
236
236
|
return "", false, err
|
|
237
237
|
}
|
|
238
238
|
|
|
239
|
-
payload, _ :=
|
|
239
|
+
payload, _ := sekreto.WriteJSON(struct {
|
|
240
240
|
Name string `json:"Name"`
|
|
241
241
|
WithDecryption bool `json:"WithDecryption"`
|
|
242
242
|
}{Name: param, WithDecryption: true})
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// VENDORED: @voxgig/sekreto sdk-
|
|
2
|
-
// Source: https://github.com/voxgig/sekreto @
|
|
1
|
+
// VENDORED: @voxgig/sekreto sdk-20260907-0029-0 (go/plugins/aws/sigv4.go)
|
|
2
|
+
// Source: https://github.com/voxgig/sekreto @ 86ba35a646e68a311bdece43cd5689369ca62e9d [tag: sdk-20260907-0029-0]
|
|
3
3
|
// License: MIT (c) voxgig - see repository LICENSE. Do not edit: resync from upstream.
|
|
4
4
|
// AWS Signature Version 4, hand-rolled.
|
|
5
5
|
//
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// VENDORED: @voxgig/sekreto sdk-
|
|
2
|
-
// Source: https://github.com/voxgig/sekreto @
|
|
1
|
+
// VENDORED: @voxgig/sekreto sdk-20260907-0029-0 (go/plugins/azuresecrets/azuresecrets.go)
|
|
2
|
+
// Source: https://github.com/voxgig/sekreto @ 86ba35a646e68a311bdece43cd5689369ca62e9d [tag: sdk-20260907-0029-0]
|
|
3
3
|
// License: MIT (c) voxgig - see repository LICENSE. Do not edit: resync from upstream.
|
|
4
4
|
// The azuresecrets plugin: Azure Key Vault. Needs HTTPS. A port of
|
|
5
5
|
// typescript/plugins/azuresecrets.ts.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// VENDORED: @voxgig/sekreto sdk-
|
|
2
|
-
// Source: https://github.com/voxgig/sekreto @
|
|
1
|
+
// VENDORED: @voxgig/sekreto sdk-20260907-0029-0 (go/plugins/boru/boru.go)
|
|
2
|
+
// Source: https://github.com/voxgig/sekreto @ 86ba35a646e68a311bdece43cd5689369ca62e9d [tag: sdk-20260907-0029-0]
|
|
3
3
|
// License: MIT (c) voxgig - see repository LICENSE. Do not edit: resync from upstream.
|
|
4
4
|
// The boru plugin: a boru vault through its CLI, or over `boru vault
|
|
5
5
|
// serve`. Needs a child process, or HTTPS in wire mode. A port of
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// VENDORED: @voxgig/sekreto sdk-
|
|
2
|
-
// Source: https://github.com/voxgig/sekreto @
|
|
1
|
+
// VENDORED: @voxgig/sekreto sdk-20260907-0029-0 (go/plugins/doppler/doppler.go)
|
|
2
|
+
// Source: https://github.com/voxgig/sekreto @ 86ba35a646e68a311bdece43cd5689369ca62e9d [tag: sdk-20260907-0029-0]
|
|
3
3
|
// License: MIT (c) voxgig - see repository LICENSE. Do not edit: resync from upstream.
|
|
4
4
|
// The doppler plugin: Doppler, one bulk download per config. Needs
|
|
5
5
|
// HTTPS. A port of typescript/plugins/doppler.ts.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// VENDORED: @voxgig/sekreto sdk-
|
|
2
|
-
// Source: https://github.com/voxgig/sekreto @
|
|
1
|
+
// VENDORED: @voxgig/sekreto sdk-20260907-0029-0 (go/plugins/gcpsecrets/gcpsecrets.go)
|
|
2
|
+
// Source: https://github.com/voxgig/sekreto @ 86ba35a646e68a311bdece43cd5689369ca62e9d [tag: sdk-20260907-0029-0]
|
|
3
3
|
// License: MIT (c) voxgig - see repository LICENSE. Do not edit: resync from upstream.
|
|
4
4
|
// The gcpsecrets plugin: GCP Secret Manager. Needs HTTPS. A port of
|
|
5
5
|
// typescript/plugins/gcpsecrets.ts.
|