@voxgig/sdkgen 4.44.1 → 4.44.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/voxgig-sdkgen +1 -1
- package/dist/helpers/opShape.js +3 -6
- package/dist/helpers/opShape.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/project/.sdk/src/cmp/go-cli/Main_go-cli.ts +3 -3
- package/project/.sdk/src/cmp/go-mcp/Main_go-mcp.ts +3 -3
- package/project/.sdk/tm/c/utility/make_point.c +9 -5
- package/project/.sdk/tm/clojure/src/sdk/core.clj +7 -1
- package/project/.sdk/tm/cpp/utility/pipeline.hpp +15 -11
- package/project/.sdk/tm/csharp/utility/MakePoint.cs +19 -15
- package/project/.sdk/tm/elixir/lib/projectname/utility.ex +13 -1
- package/project/.sdk/tm/go/utility/make_point.go +16 -12
- package/project/.sdk/tm/java/utility/MakePoint.java +18 -13
- package/project/.sdk/tm/js/src/utility/MakePointUtility.js +13 -6
- package/project/.sdk/tm/kotlin/utility/MakePoint.kt +17 -12
- package/project/.sdk/tm/lua/utility/make_point.lua +14 -10
- package/project/.sdk/tm/ocaml/sdk_runtime.ml +8 -4
- package/project/.sdk/tm/perl/utility/make_point.pm +8 -4
- package/project/.sdk/tm/php/utility/MakePoint.php +9 -4
- package/project/.sdk/tm/py/pkg/utility/make_point.py +12 -8
- package/project/.sdk/tm/rb/utility/make_point.rb +8 -4
- package/project/.sdk/tm/rust/utility/make_point.rs +12 -8
- package/project/.sdk/tm/scala/utility/Make.scala +8 -4
- package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/Make.swift +14 -11
- package/project/.sdk/tm/ts/src/utility/MakePointUtility.ts +13 -6
- package/project/.sdk/tm/zig/core/utility.zig +8 -5
- package/project/sdkgen-package.json +1 -1
- package/src/helpers/opShape.ts +3 -7
|
@@ -983,12 +983,15 @@ pub fn make_point_util(ctx: *Context) E!Value {
|
|
|
983
983
|
return ctx.fail("point_no_points", fmt("Operation \"{s}\" has no endpoint definitions.", .{op.name}));
|
|
984
984
|
}
|
|
985
985
|
|
|
986
|
-
if (
|
|
987
|
-
|
|
986
|
+
const reqselector: Value = if (std.mem.eql(u8, op.input, "data")) ctx.reqdata else ctx.reqmatch;
|
|
987
|
+
const selector: Value = if (std.mem.eql(u8, op.input, "data")) ctx.data else ctx.mtch;
|
|
988
|
+
|
|
989
|
+
// A lone point still needs the call's action to agree with its own; the
|
|
990
|
+
// selection below refuses a mismatch either way.
|
|
991
|
+
const lone = h.get_elem(points, h.vnum(0), h.vnull());
|
|
992
|
+
if (plen == 1 and h.veq(h.getp(reqselector, "$action"), h.getp(h.to_map(h.getp(lone, "select")), "$action"))) {
|
|
993
|
+
ctx.point = lone;
|
|
988
994
|
} else {
|
|
989
|
-
const reqselector: Value = if (std.mem.eql(u8, op.input, "data")) ctx.reqdata else ctx.reqmatch;
|
|
990
|
-
const selector: Value = if (std.mem.eql(u8, op.input, "data")) ctx.data else ctx.mtch;
|
|
991
|
-
|
|
992
995
|
var point: Value = h.vnull();
|
|
993
996
|
var matched = false;
|
|
994
997
|
var i: i64 = 0;
|
package/src/helpers/opShape.ts
CHANGED
|
@@ -140,24 +140,20 @@ function samePath(points: any[]): boolean {
|
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
|
|
143
|
-
// The rule makePoint applies
|
|
144
|
-
//
|
|
143
|
+
// The rule makePoint applies to a call without an action: only a point
|
|
144
|
+
// without one, and one the call fills.
|
|
145
145
|
function opReachable(op: any, given: string[]): boolean {
|
|
146
146
|
const points: any[] = op && op.points ? each(op.points) : []
|
|
147
147
|
const have = new Set(given)
|
|
148
148
|
const fills = (pt: any) => pointPlaceholders(pt).every((name) => have.has(name))
|
|
149
149
|
|
|
150
|
-
if (1 === points.length) {
|
|
151
|
-
return fills(points[0])
|
|
152
|
-
}
|
|
153
|
-
|
|
154
150
|
return points.some((pt: any) => null == (pt && pt.q && pt.q['$action']) && fills(pt))
|
|
155
151
|
}
|
|
156
152
|
|
|
157
153
|
|
|
158
154
|
function opNeedsAction(op: any): boolean {
|
|
159
155
|
const points: any[] = op && op.points ? each(op.points) : []
|
|
160
|
-
return
|
|
156
|
+
return 0 < points.length &&
|
|
161
157
|
points.every((pt: any) => null != (pt && pt.q && pt.q['$action']))
|
|
162
158
|
}
|
|
163
159
|
|