@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.
Files changed (29) hide show
  1. package/bin/voxgig-sdkgen +1 -1
  2. package/dist/helpers/opShape.js +3 -6
  3. package/dist/helpers/opShape.js.map +1 -1
  4. package/dist/tsconfig.tsbuildinfo +1 -1
  5. package/package.json +1 -1
  6. package/project/.sdk/src/cmp/go-cli/Main_go-cli.ts +3 -3
  7. package/project/.sdk/src/cmp/go-mcp/Main_go-mcp.ts +3 -3
  8. package/project/.sdk/tm/c/utility/make_point.c +9 -5
  9. package/project/.sdk/tm/clojure/src/sdk/core.clj +7 -1
  10. package/project/.sdk/tm/cpp/utility/pipeline.hpp +15 -11
  11. package/project/.sdk/tm/csharp/utility/MakePoint.cs +19 -15
  12. package/project/.sdk/tm/elixir/lib/projectname/utility.ex +13 -1
  13. package/project/.sdk/tm/go/utility/make_point.go +16 -12
  14. package/project/.sdk/tm/java/utility/MakePoint.java +18 -13
  15. package/project/.sdk/tm/js/src/utility/MakePointUtility.js +13 -6
  16. package/project/.sdk/tm/kotlin/utility/MakePoint.kt +17 -12
  17. package/project/.sdk/tm/lua/utility/make_point.lua +14 -10
  18. package/project/.sdk/tm/ocaml/sdk_runtime.ml +8 -4
  19. package/project/.sdk/tm/perl/utility/make_point.pm +8 -4
  20. package/project/.sdk/tm/php/utility/MakePoint.php +9 -4
  21. package/project/.sdk/tm/py/pkg/utility/make_point.py +12 -8
  22. package/project/.sdk/tm/rb/utility/make_point.rb +8 -4
  23. package/project/.sdk/tm/rust/utility/make_point.rs +12 -8
  24. package/project/.sdk/tm/scala/utility/Make.scala +8 -4
  25. package/project/.sdk/tm/swift/Sources/ProjectNameSDK/utility/Make.swift +14 -11
  26. package/project/.sdk/tm/ts/src/utility/MakePointUtility.ts +13 -6
  27. package/project/.sdk/tm/zig/core/utility.zig +8 -5
  28. package/project/sdkgen-package.json +1 -1
  29. 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 (plen == 1) {
987
- ctx.point = h.get_elem(points, h.vnum(0), h.vnull());
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;
@@ -3,7 +3,7 @@
3
3
  "package": 1
4
4
  },
5
5
  "name": "@voxgig/sdkgen",
6
- "version": "4.44.1",
6
+ "version": "4.44.3",
7
7
  "provides": {
8
8
  "target": [
9
9
  "c",
@@ -140,24 +140,20 @@ function samePath(points: any[]): boolean {
140
140
  }
141
141
 
142
142
 
143
- // The rule makePoint applies: a lone point is taken as it is, otherwise only
144
- // a point without an action, and one the call fills.
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 1 < points.length &&
156
+ return 0 < points.length &&
161
157
  points.every((pt: any) => null != (pt && pt.q && pt.q['$action']))
162
158
  }
163
159