@stryke/capnp 0.12.96 → 0.12.97

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 (119) hide show
  1. package/bin/capnpc.cjs +405 -304
  2. package/bin/capnpc.d.cts +909 -4
  3. package/bin/capnpc.d.cts.map +1 -1
  4. package/bin/capnpc.d.mts +909 -4
  5. package/bin/capnpc.d.mts.map +1 -1
  6. package/bin/capnpc.mjs +368 -268
  7. package/bin/capnpc.mjs.map +1 -1
  8. package/dist/capnp-es.BHkXHvyK-B3-d8RNu.d.mts +2991 -0
  9. package/dist/capnp-es.BHkXHvyK-B3-d8RNu.d.mts.map +1 -0
  10. package/dist/capnp-es.BHkXHvyK-CQWXOqvU.d.cts +2991 -0
  11. package/dist/capnp-es.BHkXHvyK-CQWXOqvU.d.cts.map +1 -0
  12. package/dist/{capnp-es.GpvEvMIK-C4q8I6qy.mjs → capnp-es.GpvEvMIK-CH8kq1KS.mjs} +13 -6
  13. package/dist/{capnp-es.GpvEvMIK-C4q8I6qy.mjs.map → capnp-es.GpvEvMIK-CH8kq1KS.mjs.map} +1 -1
  14. package/dist/{capnp-es.GpvEvMIK-BcYm5JyH.cjs → capnp-es.GpvEvMIK-CZ5ZimCD.cjs} +12 -5
  15. package/dist/{compile-Cx88xgqJ.mjs → compile-D_BOc0dD.mjs} +109 -15
  16. package/dist/compile-D_BOc0dD.mjs.map +1 -0
  17. package/dist/{compile-SmxAaHxW.cjs → compile-Yq1zhccM.cjs} +113 -19
  18. package/dist/compile.cjs +2 -2
  19. package/dist/compile.d.cts +38 -3
  20. package/dist/compile.d.cts.map +1 -0
  21. package/dist/compile.d.mts +38 -3
  22. package/dist/compile.d.mts.map +1 -0
  23. package/dist/compile.mjs +1 -2
  24. package/dist/{dist-BlvFBzSi.mjs → dist-DQ7xmzRT.mjs} +385 -16
  25. package/dist/dist-DQ7xmzRT.mjs.map +1 -0
  26. package/dist/{dist-YywzZL3Q.cjs → dist-VMGxvENY.cjs} +381 -12
  27. package/dist/{helpers-BoYAadSB.mjs → helpers-2TldkyGG.mjs} +136 -137
  28. package/dist/helpers-2TldkyGG.mjs.map +1 -0
  29. package/dist/{helpers-gxlsFdP8.cjs → helpers-Dn4nWOb7.cjs} +164 -165
  30. package/dist/helpers.cjs +2 -1
  31. package/dist/helpers.d.cts +1 -2
  32. package/dist/helpers.d.cts.map +1 -1
  33. package/dist/helpers.d.mts +1 -2
  34. package/dist/helpers.d.mts.map +1 -1
  35. package/dist/helpers.mjs +1 -1
  36. package/dist/index-63Za7yNc.d.cts +736 -0
  37. package/dist/index-63Za7yNc.d.cts.map +1 -0
  38. package/dist/index-LYXu6eWz.d.mts +736 -0
  39. package/dist/index-LYXu6eWz.d.mts.map +1 -0
  40. package/dist/index.cjs +5 -5
  41. package/dist/index.d.cts +5 -4
  42. package/dist/index.d.mts +5 -4
  43. package/dist/index.mjs +4 -5
  44. package/dist/rpc-helpers.cjs +4 -3
  45. package/dist/rpc-helpers.d.cts +3 -4
  46. package/dist/rpc-helpers.d.cts.map +1 -1
  47. package/dist/rpc-helpers.d.mts +3 -4
  48. package/dist/rpc-helpers.d.mts.map +1 -1
  49. package/dist/rpc-helpers.mjs +2 -2
  50. package/dist/types-BjCOVfgj.d.cts +1506 -0
  51. package/dist/types-BjCOVfgj.d.cts.map +1 -0
  52. package/dist/types-CVzMn-TI.d.mts +1506 -0
  53. package/dist/types-CVzMn-TI.d.mts.map +1 -0
  54. package/dist/types.cjs +8 -2
  55. package/dist/types.d.cts +1 -1
  56. package/dist/types.d.mts +1 -1
  57. package/dist/types.mjs +7 -2
  58. package/dist/types.mjs.map +1 -0
  59. package/package.json +5 -5
  60. package/schemas/cpp.cjs +1 -0
  61. package/schemas/cpp.d.cts.map +1 -1
  62. package/schemas/cpp.d.mts.map +1 -1
  63. package/schemas/index-BB47pUzp.d.cts +742 -0
  64. package/schemas/index-BB47pUzp.d.cts.map +1 -0
  65. package/schemas/index-DprjZUdT.d.mts +742 -0
  66. package/schemas/index-DprjZUdT.d.mts.map +1 -0
  67. package/schemas/persistent.cjs +2 -1
  68. package/schemas/persistent.d.cts +48 -21
  69. package/schemas/persistent.d.cts.map +1 -1
  70. package/schemas/persistent.d.mts +48 -21
  71. package/schemas/persistent.d.mts.map +1 -1
  72. package/schemas/persistent.mjs +1 -1
  73. package/schemas/persistent.mjs.map +1 -1
  74. package/schemas/rpc-twoparty.cjs +20 -1
  75. package/schemas/rpc-twoparty.d.cts +17 -17
  76. package/schemas/rpc-twoparty.d.cts.map +1 -1
  77. package/schemas/rpc-twoparty.d.mts +17 -17
  78. package/schemas/rpc-twoparty.d.mts.map +1 -1
  79. package/schemas/rpc-twoparty.mjs +19 -1
  80. package/schemas/rpc-twoparty.mjs.map +1 -1
  81. package/schemas/rpc.cjs +371 -1
  82. package/schemas/rpc.d.cts +141 -141
  83. package/schemas/rpc.d.cts.map +1 -1
  84. package/schemas/rpc.d.mts +141 -141
  85. package/schemas/rpc.d.mts.map +1 -1
  86. package/schemas/rpc.mjs +370 -1
  87. package/schemas/rpc.mjs.map +1 -1
  88. package/schemas/schema.cjs +96 -1
  89. package/schemas/schema.d.cts +286 -228
  90. package/schemas/schema.d.cts.map +1 -1
  91. package/schemas/schema.d.mts +286 -228
  92. package/schemas/schema.d.mts.map +1 -1
  93. package/schemas/schema.mjs +95 -1
  94. package/schemas/schema.mjs.map +1 -1
  95. package/schemas/{src-2eLj6yCr.cjs → src-B6FhDNiV.cjs} +19 -12
  96. package/schemas/{src-s2pCu2mc.mjs → src-B97sIXSw.mjs} +19 -13
  97. package/schemas/src-B97sIXSw.mjs.map +1 -0
  98. package/schemas/ts.cjs +1 -0
  99. package/schemas/ts.d.cts.map +1 -1
  100. package/schemas/ts.d.mts.map +1 -1
  101. package/dist/compile-Cx88xgqJ.mjs.map +0 -1
  102. package/dist/compile-DccxA7WZ.d.cts +0 -40
  103. package/dist/compile-DccxA7WZ.d.cts.map +0 -1
  104. package/dist/compile-UkKIpqrK.d.mts +0 -40
  105. package/dist/compile-UkKIpqrK.d.mts.map +0 -1
  106. package/dist/dist-BlvFBzSi.mjs.map +0 -1
  107. package/dist/helpers-BoYAadSB.mjs.map +0 -1
  108. package/dist/types-Cuj2daUE.mjs +0 -8
  109. package/dist/types-Cuj2daUE.mjs.map +0 -1
  110. package/dist/types-D03SjfBL.d.mts +0 -55
  111. package/dist/types-D03SjfBL.d.mts.map +0 -1
  112. package/dist/types-D52qMMoK.d.cts +0 -55
  113. package/dist/types-D52qMMoK.d.cts.map +0 -1
  114. package/dist/types-DHrjS-69.cjs +0 -13
  115. package/schemas/index-BAJMwFip.d.mts +0 -96
  116. package/schemas/index-BAJMwFip.d.mts.map +0 -1
  117. package/schemas/index-b7dam4EA.d.cts +0 -96
  118. package/schemas/index-b7dam4EA.d.cts.map +0 -1
  119. package/schemas/src-s2pCu2mc.mjs.map +0 -1
@@ -1,4 +1,5 @@
1
- const require_src = require('./src-2eLj6yCr.cjs');
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+ const require_src = require('./src-B6FhDNiV.cjs');
2
3
 
3
4
  //#region schemas/schema.ts
4
5
  const _capnpFileId = BigInt("0xa93fc509624c72d9");
@@ -499,10 +500,38 @@ var Node_Annotation = class extends require_src.Struct {
499
500
  };
500
501
  const Node_Which = {
501
502
  FILE: 0,
503
+ /**
504
+ * Name to present to humans to identify this Node. You should not attempt to parse this. Its
505
+ * format could change. It is not guaranteed to be unique.
506
+ *
507
+ * (On Zooko's triangle, this is the node's nickname.)
508
+ *
509
+ */
502
510
  STRUCT: 1,
511
+ /**
512
+ * If you want a shorter version of `displayName` (just naming this node, without its surrounding
513
+ * scope), chop off this many characters from the beginning of `displayName`.
514
+ *
515
+ */
503
516
  ENUM: 2,
517
+ /**
518
+ * ID of the lexical parent node. Typically, the scope node will have a NestedNode pointing back
519
+ * at this node, but robust code should avoid relying on this (and, in fact, group nodes are not
520
+ * listed in the outer struct's nestedNodes, since they are listed in the fields). `scopeId` is
521
+ * zero if the node has no parent, which is normally only the case with files, but should be
522
+ * allowed for any kind of node (in order to make runtime type generation easier).
523
+ *
524
+ */
504
525
  INTERFACE: 3,
526
+ /**
527
+ * List of nodes nested within this node, along with the names under which they were declared.
528
+ *
529
+ */
505
530
  CONST: 4,
531
+ /**
532
+ * Annotations applied to this node.
533
+ *
534
+ */
506
535
  ANNOTATION: 5
507
536
  };
508
537
  var Node = class Node extends require_src.Struct {
@@ -828,6 +857,13 @@ var Field_Group = class extends require_src.Struct {
828
857
  };
829
858
  const Field_Ordinal_Which = {
830
859
  IMPLICIT: 0,
860
+ /**
861
+ * The original ordinal number given to the field. You probably should NOT use this; if you need
862
+ * a numeric identifier for a field, use its position within the field array for its scope.
863
+ * The ordinal is given here mainly just so that the original schema text can be reproduced given
864
+ * the compiled version -- i.e. so that `capnp compile -ocapnp` can do its job.
865
+ *
866
+ */
831
867
  EXPLICIT: 1
832
868
  };
833
869
  var Field_Ordinal = class extends require_src.Struct {
@@ -871,6 +907,15 @@ var Field_Ordinal = class extends require_src.Struct {
871
907
  };
872
908
  const Field_Which = {
873
909
  SLOT: 0,
910
+ /**
911
+ * Indicates where this member appeared in the code, relative to other members.
912
+ * Code ordering may have semantic relevance -- programmers tend to place related fields
913
+ * together. So, using code ordering makes sense in human-readable formats where ordering is
914
+ * otherwise irrelevant, like JSON. The values of codeOrder are tightly-packed, so the maximum
915
+ * value is count(members) - 1. Fields that are members of a union are only ordered relative to
916
+ * the other members of that union, so the maximum value there is count(union.members).
917
+ *
918
+ */
874
919
  GROUP: 1
875
920
  };
876
921
  /**
@@ -1346,9 +1391,25 @@ var Type_Interface = class extends require_src.Struct {
1346
1391
  }
1347
1392
  };
1348
1393
  const Type_AnyPointer_Unconstrained_Which = {
1394
+ /**
1395
+ * truly AnyPointer
1396
+ *
1397
+ */
1349
1398
  ANY_KIND: 0,
1399
+ /**
1400
+ * AnyStruct
1401
+ *
1402
+ */
1350
1403
  STRUCT: 1,
1404
+ /**
1405
+ * AnyList
1406
+ *
1407
+ */
1351
1408
  LIST: 2,
1409
+ /**
1410
+ * Capability
1411
+ *
1412
+ */
1352
1413
  CAPABILITY: 3
1353
1414
  };
1354
1415
  /**
@@ -1457,8 +1518,25 @@ var Type_AnyPointer_ImplicitMethodParameter = class extends require_src.Struct {
1457
1518
  }
1458
1519
  };
1459
1520
  const Type_AnyPointer_Which = {
1521
+ /**
1522
+ * A regular AnyPointer.
1523
+ *
1524
+ * The name "unconstrained" means as opposed to constraining it to match a type parameter.
1525
+ * In retrospect this name is probably a poor choice given that it may still be constrained
1526
+ * to be a struct, list, or capability.
1527
+ *
1528
+ */
1460
1529
  UNCONSTRAINED: 0,
1530
+ /**
1531
+ * This is actually a reference to a type parameter defined within this scope.
1532
+ *
1533
+ */
1461
1534
  PARAMETER: 1,
1535
+ /**
1536
+ * This is actually a reference to an implicit (generic) parameter of a method. The only
1537
+ * legal context for this type to appear is inside Method.paramBrand or Method.resultBrand.
1538
+ *
1539
+ */
1462
1540
  IMPLICIT_METHOD_PARAMETER: 2
1463
1541
  };
1464
1542
  var Type_AnyPointer = class extends require_src.Struct {
@@ -1748,7 +1826,15 @@ var Type = class extends require_src.Struct {
1748
1826
  }
1749
1827
  };
1750
1828
  const Brand_Scope_Which = {
1829
+ /**
1830
+ * ID of the scope to which these params apply.
1831
+ *
1832
+ */
1751
1833
  BIND: 0,
1834
+ /**
1835
+ * List of parameter bindings.
1836
+ *
1837
+ */
1752
1838
  INHERIT: 1
1753
1839
  };
1754
1840
  var Brand_Scope = class Brand_Scope extends require_src.Struct {
@@ -1922,6 +2008,11 @@ const Value_Which = {
1922
2008
  LIST: 14,
1923
2009
  ENUM: 15,
1924
2010
  STRUCT: 16,
2011
+ /**
2012
+ * The only interface value that can be represented statically is "null", whose methods always
2013
+ * throw exceptions.
2014
+ *
2015
+ */
1925
2016
  INTERFACE: 17,
1926
2017
  ANY_POINTER: 18
1927
2018
  };
@@ -2272,6 +2363,10 @@ var Annotation = class extends require_src.Struct {
2272
2363
  }
2273
2364
  };
2274
2365
  const ElementSize = {
2366
+ /**
2367
+ * aka "void", but that's a keyword.
2368
+ *
2369
+ */
2275
2370
  EMPTY: 0,
2276
2371
  BIT: 1,
2277
2372
  BYTE: 2,