@unyt/datex 0.0.13 → 0.0.15

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 (147) hide show
  1. package/esm/datex-web/datex_web.d.ts +93 -2
  2. package/esm/datex-web/datex_web.internal.d.ts +221 -188
  3. package/esm/datex-web/datex_web.internal.d.ts.map +1 -1
  4. package/esm/datex-web/datex_web.internal.js +453 -385
  5. package/esm/datex-web/datex_web.wasm +0 -0
  6. package/esm/datex-web/types/decompiler/options.d.ts +17 -0
  7. package/esm/datex-web/types/decompiler/options.d.ts.map +1 -0
  8. package/esm/datex-web/types/decompiler/options.js +4 -0
  9. package/esm/datex-web/types/disassembler/options.d.ts +6 -0
  10. package/esm/datex-web/types/disassembler/options.d.ts.map +1 -0
  11. package/esm/datex-web/types/disassembler/options.js +4 -0
  12. package/esm/datex-web/types/network/com_hub/managers/socket_manager.d.ts +9 -0
  13. package/esm/datex-web/types/network/com_hub/managers/socket_manager.d.ts.map +1 -0
  14. package/esm/datex-web/types/network/com_hub/managers/socket_manager.js +4 -0
  15. package/esm/datex-web/types/network/com_hub/metadata.d.ts +20 -0
  16. package/esm/datex-web/types/network/com_hub/metadata.d.ts.map +1 -0
  17. package/esm/datex-web/types/network/com_hub/metadata.js +4 -0
  18. package/esm/datex-web/types/network/com_hub/mod.d.ts +6 -0
  19. package/esm/datex-web/types/network/com_hub/mod.d.ts.map +1 -0
  20. package/esm/datex-web/types/network/com_hub/mod.js +4 -0
  21. package/esm/datex-web/types/network/com_hub/network_tracing.d.ts +23 -0
  22. package/esm/datex-web/types/network/com_hub/network_tracing.d.ts.map +1 -0
  23. package/esm/datex-web/types/network/com_hub/network_tracing.js +4 -0
  24. package/esm/datex-web/types/network/com_hub.d.ts +8 -0
  25. package/esm/datex-web/types/network/com_hub.d.ts.map +1 -0
  26. package/esm/datex-web/types/network/com_hub.js +4 -0
  27. package/esm/datex-web/types/network/com_interfaces/com_interface/properties.d.ts +27 -0
  28. package/esm/datex-web/types/network/com_interfaces/com_interface/properties.d.ts.map +1 -0
  29. package/esm/datex-web/types/network/com_interfaces/com_interface/properties.js +4 -0
  30. package/esm/datex-web/types/network/com_interfaces/default_setup_data/http_common.d.ts +10 -0
  31. package/esm/datex-web/types/network/com_interfaces/default_setup_data/http_common.d.ts.map +1 -0
  32. package/esm/datex-web/types/network/com_interfaces/default_setup_data/http_common.js +4 -0
  33. package/esm/datex-web/types/network/com_interfaces/default_setup_data/websocket/websocket_server.d.ts +6 -0
  34. package/esm/datex-web/types/network/com_interfaces/default_setup_data/websocket/websocket_server.d.ts.map +1 -0
  35. package/esm/datex-web/types/network/com_interfaces/default_setup_data/websocket/websocket_server.js +4 -0
  36. package/esm/datex-web/types/runtime/config.d.ts +16 -0
  37. package/esm/datex-web/types/runtime/config.d.ts.map +1 -0
  38. package/esm/datex-web/types/runtime/config.js +4 -0
  39. package/esm/default.d.ts.map +1 -1
  40. package/esm/default.js +2 -0
  41. package/esm/deno.json +73 -17
  42. package/esm/dif/core.d.ts +36 -39
  43. package/esm/dif/core.d.ts.map +1 -1
  44. package/esm/dif/core.js +33 -53
  45. package/esm/dif/dif-handler.d.ts +58 -101
  46. package/esm/dif/dif-handler.d.ts.map +1 -1
  47. package/esm/dif/dif-handler.js +417 -345
  48. package/esm/dif/display.d.ts +14 -5
  49. package/esm/dif/display.d.ts.map +1 -1
  50. package/esm/dif/display.js +89 -39
  51. package/esm/dif/helpers/mod.d.ts +6 -0
  52. package/esm/dif/helpers/mod.d.ts.map +1 -0
  53. package/esm/dif/helpers/mod.js +5 -0
  54. package/esm/dif/helpers/typed-integer.d.ts +14 -0
  55. package/esm/dif/helpers/typed-integer.d.ts.map +1 -0
  56. package/esm/dif/helpers/typed-integer.js +37 -0
  57. package/esm/dif/js-lib.d.ts +14 -1
  58. package/esm/dif/js-lib.d.ts.map +1 -1
  59. package/esm/dif/js-lib.js +19 -1
  60. package/esm/dif/mod.d.ts +2 -2
  61. package/esm/dif/mod.d.ts.map +1 -1
  62. package/esm/dif/mod.js +2 -2
  63. package/esm/dif/type-registry.d.ts +30 -21
  64. package/esm/dif/type-registry.d.ts.map +1 -1
  65. package/esm/dif/type-registry.js +45 -33
  66. package/esm/dif/types/mod.d.ts +9 -0
  67. package/esm/dif/types/mod.d.ts.map +1 -0
  68. package/esm/dif/types/mod.js +8 -0
  69. package/esm/dif/types/type.d.ts +91 -0
  70. package/esm/dif/types/type.d.ts.map +1 -0
  71. package/esm/dif/types/type.js +33 -0
  72. package/esm/dif/types/update.d.ts +63 -0
  73. package/esm/dif/types/update.d.ts.map +1 -0
  74. package/esm/dif/types/update.js +16 -0
  75. package/esm/dif/types/value.d.ts +62 -0
  76. package/esm/dif/types/value.d.ts.map +1 -0
  77. package/esm/dif/types/value.js +1 -0
  78. package/esm/dif/update.d.ts +20 -0
  79. package/esm/dif/update.d.ts.map +1 -0
  80. package/esm/dif/update.js +41 -0
  81. package/esm/dif/utils.d.ts +8 -0
  82. package/esm/dif/utils.d.ts.map +1 -0
  83. package/esm/dif/utils.js +67 -0
  84. package/esm/lib/js-core-types/array.d.ts +3 -0
  85. package/esm/lib/js-core-types/array.d.ts.map +1 -0
  86. package/esm/lib/js-core-types/array.js +175 -0
  87. package/esm/lib/js-core-types/map.d.ts +15 -0
  88. package/esm/lib/js-core-types/map.d.ts.map +1 -0
  89. package/esm/lib/js-core-types/map.js +88 -0
  90. package/esm/lib/js-core-types/mod.d.ts +8 -0
  91. package/esm/lib/js-core-types/mod.d.ts.map +1 -0
  92. package/esm/lib/js-core-types/mod.js +7 -0
  93. package/esm/lib/mod.d.ts +8 -0
  94. package/esm/lib/mod.d.ts.map +1 -0
  95. package/esm/lib/mod.js +7 -0
  96. package/esm/lib/special-core-types/endpoint.d.ts.map +1 -1
  97. package/esm/lib/special-core-types/mod.d.ts +9 -0
  98. package/esm/lib/special-core-types/mod.d.ts.map +1 -0
  99. package/esm/lib/special-core-types/mod.js +8 -0
  100. package/esm/lib/special-core-types/range.d.ts +26 -0
  101. package/esm/lib/special-core-types/range.d.ts.map +1 -0
  102. package/esm/lib/special-core-types/range.js +46 -0
  103. package/esm/lib/special-core-types/tagged.d.ts +17 -0
  104. package/esm/lib/special-core-types/tagged.d.ts.map +1 -0
  105. package/esm/lib/special-core-types/tagged.js +37 -0
  106. package/esm/lib/special-core-types/undefined.d.ts +7 -0
  107. package/esm/lib/special-core-types/undefined.d.ts.map +1 -0
  108. package/esm/lib/special-core-types/undefined.js +28 -0
  109. package/esm/mod.d.ts +3 -1
  110. package/esm/mod.d.ts.map +1 -1
  111. package/esm/mod.js +3 -1
  112. package/esm/network/com-hub.d.ts +28 -1
  113. package/esm/network/com-hub.d.ts.map +1 -1
  114. package/esm/network/com-hub.js +6 -2
  115. package/esm/network/interfaces/websocket-server-base.d.ts +1 -1
  116. package/esm/network/interfaces/websocket-server-base.d.ts.map +1 -1
  117. package/esm/network/interfaces/websocket-server-base.js +8 -7
  118. package/esm/network/interfaces/websocket-server-deno.d.ts +1 -1
  119. package/esm/network/interfaces/websocket-server-deno.d.ts.map +1 -1
  120. package/esm/repl/mod.d.ts +8 -0
  121. package/esm/repl/mod.d.ts.map +1 -0
  122. package/esm/repl/mod.js +31 -0
  123. package/esm/runtime/runtime.d.ts +43 -18
  124. package/esm/runtime/runtime.d.ts.map +1 -1
  125. package/esm/runtime/runtime.js +55 -32
  126. package/esm/{refs/ref.d.ts → shared-container/base-shared-container.d.ts} +13 -5
  127. package/esm/shared-container/base-shared-container.d.ts.map +1 -0
  128. package/esm/shared-container/base-shared-container.js +95 -0
  129. package/esm/shared-container/mod.d.ts +36 -0
  130. package/esm/shared-container/mod.d.ts.map +1 -0
  131. package/esm/shared-container/mod.js +29 -0
  132. package/esm/shared-container/owned.d.ts +33 -0
  133. package/esm/shared-container/owned.d.ts.map +1 -0
  134. package/esm/shared-container/owned.js +60 -0
  135. package/esm/shared-container/reference.d.ts +31 -0
  136. package/esm/shared-container/reference.d.ts.map +1 -0
  137. package/esm/shared-container/reference.js +64 -0
  138. package/esm/utils/devtools-formatter.js +24 -2
  139. package/esm/utils/option.d.ts +17 -0
  140. package/esm/utils/option.d.ts.map +1 -0
  141. package/esm/utils/option.js +54 -0
  142. package/package.json +1 -1
  143. package/esm/dif/definitions.d.ts +0 -134
  144. package/esm/dif/definitions.d.ts.map +0 -1
  145. package/esm/dif/definitions.js +0 -38
  146. package/esm/refs/ref.d.ts.map +0 -1
  147. package/esm/refs/ref.js +0 -60
Binary file
@@ -0,0 +1,17 @@
1
+ import type { Tagged } from "../../../lib/mod.js";
2
+ export type IndentType = Tagged<"Spaces"> | Tagged<"Tabs">;
3
+ export type FormattingMode = Tagged<"Compact"> | Tagged<"Pretty", {
4
+ indent: number;
5
+ indent_type: IndentType;
6
+ }>;
7
+ export type FormattingOptions = {
8
+ mode: FormattingMode;
9
+ json_compat: boolean;
10
+ colorized: boolean;
11
+ add_variant_suffix: boolean;
12
+ };
13
+ export type DecompileOptions = {
14
+ formatting_options: FormattingOptions;
15
+ resolve_slots: boolean;
16
+ };
17
+ //# sourceMappingURL=options.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../src/datex-web/types/decompiler/options.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAElD,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;AAE3D,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,SAAS,CAAC,GAAG,MAAM,CAAC,QAAQ,EAAE;IAC9D,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,UAAU,CAAC;CAC3B,CAAC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG;IAC5B,IAAI,EAAE,cAAc,CAAC;IACrB,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;IACnB,kBAAkB,EAAE,OAAO,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC3B,kBAAkB,EAAE,iBAAiB,CAAC;IACtC,aAAa,EAAE,OAAO,CAAC;CAC1B,CAAC"}
@@ -0,0 +1,4 @@
1
+ // @generated file -- do not edit
2
+ // deno-lint-ignore-file
3
+ // deno-fmt-ignore-file
4
+ export {};
@@ -0,0 +1,6 @@
1
+ export type DisassemblerOptions = {
2
+ tree: boolean;
3
+ colorized: boolean;
4
+ recursive: boolean;
5
+ };
6
+ //# sourceMappingURL=options.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../src/datex-web/types/disassembler/options.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,mBAAmB,GAAG;IAC9B,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;CACtB,CAAC"}
@@ -0,0 +1,4 @@
1
+ // @generated file -- do not edit
2
+ // deno-lint-ignore-file
3
+ // deno-fmt-ignore-file
4
+ export {};
@@ -0,0 +1,9 @@
1
+ import type { InterfaceDirection } from "../../com_interfaces/com_interface/properties.js";
2
+ export type DynamicEndpointProperties = {
3
+ known_since: number;
4
+ distance: number;
5
+ is_direct: boolean;
6
+ channel_factor: number;
7
+ direction: InterfaceDirection;
8
+ };
9
+ //# sourceMappingURL=socket_manager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"socket_manager.d.ts","sourceRoot":"","sources":["../../../../../../src/datex-web/types/network/com_hub/managers/socket_manager.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kDAAkD,CAAC;AAE3F,MAAM,MAAM,yBAAyB,GAAG;IACpC,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,kBAAkB,CAAC;CACjC,CAAC"}
@@ -0,0 +1,4 @@
1
+ // @generated file -- do not edit
2
+ // deno-lint-ignore-file
3
+ // deno-fmt-ignore-file
4
+ export {};
@@ -0,0 +1,20 @@
1
+ import type { Endpoint } from "../../../../lib/mod.js";
2
+ import type { ComInterfaceProperties, InterfaceDirection } from "../com_interfaces/com_interface/properties.js";
3
+ import type { DynamicEndpointProperties } from "./managers/socket_manager.js";
4
+ export type ComHubMetadataInterfaceSocket = {
5
+ uuid: string;
6
+ direction: InterfaceDirection;
7
+ endpoint: null | Endpoint;
8
+ properties: null | DynamicEndpointProperties;
9
+ };
10
+ export type ComHubMetadataInterface = {
11
+ uuid: string;
12
+ properties: ComInterfaceProperties;
13
+ sockets: ComHubMetadataInterfaceSocket[];
14
+ is_waiting_for_socket_connections: boolean;
15
+ };
16
+ export type ComHubMetadata = {
17
+ endpoint: Endpoint;
18
+ interfaces: ComHubMetadataInterface[];
19
+ };
20
+ //# sourceMappingURL=metadata.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metadata.d.ts","sourceRoot":"","sources":["../../../../../src/datex-web/types/network/com_hub/metadata.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,KAAK,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,+CAA+C,CAAC;AAChH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AAE9E,MAAM,MAAM,6BAA6B,GAAG;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,kBAAkB,CAAC;IAC9B,QAAQ,EAAE,IAAI,GAAG,QAAQ,CAAC;IAC1B,UAAU,EAAE,IAAI,GAAG,yBAAyB,CAAC;CAChD,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,sBAAsB,CAAC;IACnC,OAAO,EAAE,6BAA6B,EAAE,CAAC;IACzC,iCAAiC,EAAE,OAAO,CAAC;CAC9C,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IACzB,QAAQ,EAAE,QAAQ,CAAC;IACnB,UAAU,EAAE,uBAAuB,EAAE,CAAC;CACzC,CAAC"}
@@ -0,0 +1,4 @@
1
+ // @generated file -- do not edit
2
+ // deno-lint-ignore-file
3
+ // deno-fmt-ignore-file
4
+ export {};
@@ -0,0 +1,6 @@
1
+ import type { Tagged } from "../../../../lib/mod.js";
2
+ /**
3
+ * The priority of an interface, which determines the order in which interfaces are used for routing fallback logic.
4
+ */
5
+ export type InterfacePriority = Tagged<"None"> | Tagged<"Priority", number>;
6
+ //# sourceMappingURL=mod.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../../src/datex-web/types/network/com_hub/mod.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAErD;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ // @generated file -- do not edit
2
+ // deno-lint-ignore-file
3
+ // deno-fmt-ignore-file
4
+ export {};
@@ -0,0 +1,23 @@
1
+ import type { Endpoint, Tagged } from "../../../../lib/mod.js";
2
+ export type NetworkTraceHopSocket = {
3
+ interface_type: string;
4
+ interface_name: null | string;
5
+ channel: string;
6
+ socket_uuid: string;
7
+ };
8
+ export type NetworkTraceHopDirection = Tagged<"Outgoing"> | Tagged<"Incoming">;
9
+ export type NetworkTraceHop = {
10
+ endpoint: Endpoint;
11
+ distance: number;
12
+ socket: NetworkTraceHopSocket;
13
+ direction: NetworkTraceHopDirection;
14
+ fork_nr: string;
15
+ bounce_back: boolean;
16
+ };
17
+ export type NetworkTraceResult = {
18
+ sender: Endpoint;
19
+ receiver: Endpoint;
20
+ hops: NetworkTraceHop[];
21
+ round_trip_time: unknown;
22
+ };
23
+ //# sourceMappingURL=network_tracing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"network_tracing.d.ts","sourceRoot":"","sources":["../../../../../src/datex-web/types/network/com_hub/network_tracing.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAE/D,MAAM,MAAM,qBAAqB,GAAG;IAChC,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,IAAI,GAAG,MAAM,CAAC;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,MAAM,CAAC,UAAU,CAAC,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;AAE/E,MAAM,MAAM,eAAe,GAAG;IAC1B,QAAQ,EAAE,QAAQ,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,qBAAqB,CAAC;IAC9B,SAAS,EAAE,wBAAwB,CAAC;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC7B,MAAM,EAAE,QAAQ,CAAC;IACjB,QAAQ,EAAE,QAAQ,CAAC;IACnB,IAAI,EAAE,eAAe,EAAE,CAAC;IACxB,eAAe,EAAE,OAAO,CAAC;CAC5B,CAAC"}
@@ -0,0 +1,4 @@
1
+ // @generated file -- do not edit
2
+ // deno-lint-ignore-file
3
+ // deno-fmt-ignore-file
4
+ export {};
@@ -0,0 +1,8 @@
1
+ import type { Endpoint } from "../../../lib/mod.js";
2
+ import type { InterfaceDirection } from "./com_interfaces/com_interface/properties.js";
3
+ export type SocketPropertiesPartial = {
4
+ direction: InterfaceDirection;
5
+ channel_factor: number;
6
+ direct_endpoint: null | Endpoint;
7
+ };
8
+ //# sourceMappingURL=com_hub.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"com_hub.d.ts","sourceRoot":"","sources":["../../../../src/datex-web/types/network/com_hub.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,8CAA8C,CAAC;AAEvF,MAAM,MAAM,uBAAuB,GAAG;IAClC,SAAS,EAAE,kBAAkB,CAAC;IAC9B,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,IAAI,GAAG,QAAQ,CAAC;CACpC,CAAC"}
@@ -0,0 +1,4 @@
1
+ // @generated file -- do not edit
2
+ // deno-lint-ignore-file
3
+ // deno-fmt-ignore-file
4
+ export {};
@@ -0,0 +1,27 @@
1
+ import type { Tagged } from "../../../../../lib/mod.js";
2
+ import type { RuntimeConfigInterface } from "../../../runtime/config.js";
3
+ export type InterfaceDirection = Tagged<"In"> | Tagged<"Out"> | Tagged<"InOut">;
4
+ export type ReconnectionConfig = Tagged<"NoReconnect"> | Tagged<"InstantReconnect"> | Tagged<"ReconnectWithTimeout", {
5
+ timeout: number;
6
+ }> | Tagged<"ReconnectWithTimeoutAndAttempts", {
7
+ timeout: number;
8
+ attempts: number;
9
+ }>;
10
+ /**
11
+ * The properties of a communication interface, which are used to describe the capabilities and characteristics of the interface.
12
+ */
13
+ export type ComInterfaceProperties = {
14
+ interface_type: string;
15
+ channel: string;
16
+ name: null | string;
17
+ direction: InterfaceDirection;
18
+ round_trip_time: number;
19
+ max_bandwidth: number;
20
+ continuous_connection: boolean;
21
+ allow_redirects: boolean;
22
+ is_secure_channel: boolean;
23
+ reconnection_config: ReconnectionConfig;
24
+ auto_identify: boolean;
25
+ connectable_interfaces: null | RuntimeConfigInterface[];
26
+ };
27
+ //# sourceMappingURL=properties.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"properties.d.ts","sourceRoot":"","sources":["../../../../../../src/datex-web/types/network/com_interfaces/com_interface/properties.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAEzE,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC;AAEhF,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,aAAa,CAAC,GAAG,MAAM,CAAC,kBAAkB,CAAC,GAAG,MAAM,CAAC,sBAAsB,EAAE;IACjH,OAAO,EAAE,MAAM,CAAC;CACnB,CAAC,GAAG,MAAM,CAAC,iCAAiC,EAAE;IAC3C,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACjC,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,IAAI,GAAG,MAAM,CAAC;IACpB,SAAS,EAAE,kBAAkB,CAAC;IAC9B,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,qBAAqB,EAAE,OAAO,CAAC;IAC/B,eAAe,EAAE,OAAO,CAAC;IACzB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,mBAAmB,EAAE,kBAAkB,CAAC;IACxC,aAAa,EAAE,OAAO,CAAC;IACvB,sBAAsB,EAAE,IAAI,GAAG,sBAAsB,EAAE,CAAC;CAC3D,CAAC"}
@@ -0,0 +1,4 @@
1
+ // @generated file -- do not edit
2
+ // deno-lint-ignore-file
3
+ // deno-fmt-ignore-file
4
+ export {};
@@ -0,0 +1,10 @@
1
+ import type { Tagged } from "../../../../../lib/mod.js";
2
+ export type TLSMode = Tagged<"HandledExternally"> | Tagged<"WithCertificate", {
3
+ private_key: number[];
4
+ certificate: number[];
5
+ }>;
6
+ export type AcceptAddress = {
7
+ address: string;
8
+ tls_mode: null | TLSMode;
9
+ };
10
+ //# sourceMappingURL=http_common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http_common.d.ts","sourceRoot":"","sources":["../../../../../../src/datex-web/types/network/com_interfaces/default_setup_data/http_common.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AAExD,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,mBAAmB,CAAC,GAAG,MAAM,CAAC,iBAAiB,EAAE;IAC1E,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,WAAW,EAAE,MAAM,EAAE,CAAC;CACzB,CAAC,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,IAAI,GAAG,OAAO,CAAC;CAC5B,CAAC"}
@@ -0,0 +1,4 @@
1
+ // @generated file -- do not edit
2
+ // deno-lint-ignore-file
3
+ // deno-fmt-ignore-file
4
+ export {};
@@ -0,0 +1,6 @@
1
+ import type { AcceptAddress } from "../http_common.js";
2
+ export type WebSocketServerInterfaceSetupData = {
3
+ bind_address: string;
4
+ accept_addresses: null | AcceptAddress[];
5
+ };
6
+ //# sourceMappingURL=websocket_server.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"websocket_server.d.ts","sourceRoot":"","sources":["../../../../../../../src/datex-web/types/network/com_interfaces/default_setup_data/websocket/websocket_server.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEvD,MAAM,MAAM,iCAAiC,GAAG;IAC5C,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,IAAI,GAAG,aAAa,EAAE,CAAC;CAC5C,CAAC"}
@@ -0,0 +1,4 @@
1
+ // @generated file -- do not edit
2
+ // deno-lint-ignore-file
3
+ // deno-fmt-ignore-file
4
+ export {};
@@ -0,0 +1,16 @@
1
+ import type { Endpoint } from "../../../lib/mod.js";
2
+ import type { InterfacePriority } from "../network/com_hub/mod.js";
3
+ /**
4
+ * A generic interface configuration to setup a runtime interface.
5
+ */
6
+ export type RuntimeConfigInterface = {
7
+ type: string;
8
+ config: unknown;
9
+ priority: InterfacePriority;
10
+ };
11
+ export type RuntimeConfig = {
12
+ endpoint: Endpoint;
13
+ interfaces: null | RuntimeConfigInterface[];
14
+ env: null | Record<string, string>;
15
+ };
16
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../src/datex-web/types/runtime/config.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAEnE;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,iBAAiB,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IACxB,QAAQ,EAAE,QAAQ,CAAC;IACnB,UAAU,EAAE,IAAI,GAAG,sBAAsB,EAAE,CAAC;IAC5C,GAAG,EAAE,IAAI,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACtC,CAAC"}
@@ -0,0 +1,4 @@
1
+ // @generated file -- do not edit
2
+ // deno-lint-ignore-file
3
+ // deno-fmt-ignore-file
4
+ export {};
@@ -1 +1 @@
1
- {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../src/default.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,qBAAqB,CAAC;AAG7B,OAAO,EAAE,OAAO,EAAsB,MAAM,sBAAsB,CAAC;AAYnE;;GAEG;AACH,eAAO,MAAM,KAAK,EAAE,OAElB,CAAC"}
1
+ {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../src/default.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,qBAAqB,CAAC;AAI7B,OAAO,EAAE,OAAO,EAAsB,MAAM,sBAAsB,CAAC;AAanE;;GAEG;AACH,eAAO,MAAM,KAAK,EAAE,OAElB,CAAC"}
package/esm/default.js CHANGED
@@ -11,11 +11,13 @@
11
11
  * const result = await Datex.execute("@example :: 1 + 2");
12
12
  * ```
13
13
  */
14
+ import { Endpoint } from "./lib/mod.js";
14
15
  import { Runtime } from "./runtime/runtime.js";
15
16
  /**
16
17
  * The default configuration for the Datex runtime.
17
18
  */
18
19
  const defaultConfig = {
20
+ endpoint: Endpoint.get("@unyt"),
19
21
  interfaces: [{
20
22
  type: "websocket-client",
21
23
  config: { url: "wss://example.unyt.land" },
package/esm/deno.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unyt/datex",
3
- "version": "0.0.13",
3
+ "version": "0.0.15",
4
4
  "license": "MIT",
5
5
  "exports": {
6
6
  ".": "./src/mod.ts",
@@ -16,22 +16,77 @@
16
16
  ]
17
17
  },
18
18
  "tasks": {
19
- "debug": "deno run -A scripts/build-wasm.ts --profile debug --features debug",
20
- "release": "deno run -A scripts/build-wasm.ts --profile release",
21
- "debug-unsecure": "deno run -A scripts/build-wasm.ts --profile debug --features debug,allow_unsigned_blocks",
22
-
23
- "debug-no-opt": "deno task debug --no-opt",
24
- "test": "deno task debug-no-opt && deno test -A",
25
- "test-no-build": "deno test -A",
26
-
27
- "build-npm": "deno run -A scripts/build-npm.ts",
28
- "build-bundle": "deno run -A scripts/build-bundle.ts",
29
-
30
- "browser-demo": "deno task debug-no-opt && deno task build-npm && cd datex-browser-demo && npm install && npm run dev",
31
- "browser-demo-no-build": "deno task build-npm && cd datex-browser-demo && npm install && npm run dev",
32
-
33
- "fmt": "deno fmt && cargo fmt",
34
- "lint": "deno lint --fix && cargo clippy --fix --features debug"
19
+ "build": {
20
+ "description": "Build the default debug WASM artifact.",
21
+ "dependencies": ["build:debug"]
22
+ },
23
+ "build:debug": {
24
+ "description": "Build the WASM package with the debug profile.",
25
+ "command": "deno run -A scripts/build-wasm.ts --profile debug"
26
+ },
27
+ "build:release": {
28
+ "description": "Build the WASM package with the release profile.",
29
+ "command": "deno run -A scripts/build-wasm.ts --profile release"
30
+ },
31
+ "build:debug:unsecure": {
32
+ "description": "Build debug WASM with unsigned block support enabled.",
33
+ "command": "deno run -A scripts/build-wasm.ts --profile debug --features allow_unsigned_blocks"
34
+ },
35
+ "build:debug:no-opt": {
36
+ "description": "Build debug WASM without optimization.",
37
+ "command": "deno run -A scripts/build-wasm.ts --profile debug --no-opt"
38
+ },
39
+ "types": {
40
+ "description": "Generate TypeScript declarations from the Rust type registry.",
41
+ "command": "cargo run -p rs-lib-generate -- ./src/datex-web/types"
42
+ },
43
+ "test": {
44
+ "description": "Build debug WASM without optimization, then run Deno tests.",
45
+ "dependencies": ["build:debug:no-opt"],
46
+ "command": "deno test -A --no-check"
47
+ },
48
+ "test:no-build": {
49
+ "description": "Run Deno tests without rebuilding WASM.",
50
+ "command": "deno test -A --no-check"
51
+ },
52
+ "build:npm": {
53
+ "description": "Build the npm package output.",
54
+ "command": "deno run -A scripts/build-npm.ts"
55
+ },
56
+ "build:bundle": {
57
+ "description": "Build the browser bundle.",
58
+ "command": "deno run -A scripts/build-bundle.ts"
59
+ },
60
+ "build:all:release": {
61
+ "description": "Build release WASM, npm package, and browser bundle.",
62
+ "dependencies": ["build:release"],
63
+ "command": "deno task build:npm && deno task build:bundle"
64
+ },
65
+ "browser-demo": {
66
+ "description": "Build debug WASM and npm package, then start the browser demo.",
67
+ "dependencies": ["build:debug:no-opt"],
68
+ "command": "deno task build:npm && cd datex-browser-demo && npm install && npm run dev"
69
+ },
70
+ "browser-demo:no-build": {
71
+ "description": "Build the npm package only, then start the browser demo.",
72
+ "command": "deno task build:npm && cd datex-browser-demo && npm install && npm run dev"
73
+ },
74
+ "fmt": {
75
+ "description": "Format Deno and Rust sources.",
76
+ "command": "deno fmt && cargo fmt"
77
+ },
78
+ "lint": {
79
+ "description": "Report Deno lint and Rust clippy issues without applying fixes.",
80
+ "command": "deno lint && cargo clippy --all-targets --all-features"
81
+ },
82
+ "check": {
83
+ "description": "Type-check TypeScript sources and tests.",
84
+ "command": "deno check -I ./src ./test"
85
+ },
86
+ "fix": {
87
+ "description": "Apply automatic formatting and lint fixes for Deno and Rust.",
88
+ "command": "deno fmt && cargo fmt && deno lint --fix && cargo clippy --fix --all-features --allow-dirty --allow-staged"
89
+ }
35
90
  },
36
91
  "fmt": {
37
92
  "indentWidth": 4,
@@ -74,6 +129,7 @@
74
129
  "scripts",
75
130
  "test",
76
131
  "rs-lib",
132
+ "rs-lib-generate",
77
133
  "!src/datex-web/datex_web.wasm",
78
134
  "!src/datex-web/datex_web.internal.js"
79
135
  ]
package/esm/dif/core.d.ts CHANGED
@@ -1,46 +1,43 @@
1
1
  /**
2
- * Mapping of core type names to their unique pointer addresses.
2
+ * @module DIF Core
3
+ * @description
4
+ * This module contains core library specific mappings of core type ids.
3
5
  */
4
- export declare const CoreTypeAddress: {
5
- readonly null: "010000";
6
- readonly type: "020000";
7
- readonly boolean: "030000";
8
- readonly callable: "050000";
9
- readonly endpoint: "070000";
10
- readonly text: "080000";
11
- readonly list: "090000";
12
- readonly unit: "0b0000";
13
- readonly map: "0c0000";
14
- readonly never: "0d0000";
15
- readonly unknown: "0e0000";
16
- readonly decimal: "2c0100";
17
- readonly decimal_f32: "2d0100";
18
- readonly decimal_f64: "2e0100";
19
- readonly decimal_dbig: "2f0100";
20
- readonly integer: "640000";
21
- readonly integer_u8: "650000";
22
- readonly integer_u16: "660000";
23
- readonly integer_u32: "670000";
24
- readonly integer_u64: "680000";
25
- readonly integer_u128: "690000";
26
- readonly integer_i8: "6a0000";
27
- readonly integer_i16: "6b0000";
28
- readonly integer_i32: "6c0000";
29
- readonly integer_i64: "6d0000";
30
- readonly integer_i128: "6e0000";
31
- readonly integer_ibig: "6f0000";
32
- };
33
6
  /**
34
- * Type representing the unique pointer addresses of core types.
7
+ * Mapping of core types to their respective type id.
35
8
  */
36
- export type CoreTypeAddress = typeof CoreTypeAddress[keyof typeof CoreTypeAddress];
9
+ export declare const CoreLibTypeId: {
10
+ readonly null: 1;
11
+ readonly boolean: 2;
12
+ readonly integer: 3;
13
+ readonly integer_u8: 500;
14
+ readonly integer_u16: 501;
15
+ readonly integer_u32: 502;
16
+ readonly integer_u64: 503;
17
+ readonly integer_u128: 504;
18
+ readonly integer_i8: 505;
19
+ readonly integer_i16: 506;
20
+ readonly integer_i32: 507;
21
+ readonly integer_i64: 508;
22
+ readonly integer_i128: 509;
23
+ readonly integer_ibig: 510;
24
+ readonly decimal: 4;
25
+ readonly decimal_f32: 511;
26
+ readonly decimal_f64: 512;
27
+ readonly decimal_dbig: 513;
28
+ readonly text: 5;
29
+ readonly endpoint: 6;
30
+ readonly Unit: 7;
31
+ readonly Never: 8;
32
+ readonly Unknown: 9;
33
+ readonly List: 10;
34
+ readonly Map: 11;
35
+ readonly Callable: 12;
36
+ readonly Range: 13;
37
+ readonly Type: 14;
38
+ };
37
39
  /**
38
- * Mapping of core type address ranges for categorization.
40
+ * Type representing the core library type ids.
39
41
  */
40
- export declare const CoreTypeAddressRanges: {
41
- readonly small_unsigned_integers: Set<"650000" | "660000" | "670000" | "680000" | "690000">;
42
- readonly small_signed_integers: Set<"6a0000" | "6b0000" | "6c0000" | "6d0000" | "6e0000">;
43
- readonly big_signed_integers: Set<"6f0000">;
44
- readonly decimals: Set<"2c0100" | "2d0100" | "2e0100" | "2f0100">;
45
- };
42
+ export type CoreLibTypeId = typeof CoreLibTypeId[keyof typeof CoreLibTypeId];
46
43
  //# sourceMappingURL=core.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../src/dif/core.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4BlB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,OAAO,eAAe,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC;AAEnF;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;CAsBxB,CAAC"}
1
+ {"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../src/dif/core.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BhB,CAAC;AAEX;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,aAAa,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC"}
package/esm/dif/core.js CHANGED
@@ -1,58 +1,38 @@
1
1
  /**
2
- * Mapping of core type names to their unique pointer addresses.
2
+ * @module DIF Core
3
+ * @description
4
+ * This module contains core library specific mappings of core type ids.
3
5
  */
4
- export const CoreTypeAddress = {
5
- null: "010000",
6
- type: "020000",
7
- boolean: "030000",
8
- callable: "050000",
9
- endpoint: "070000",
10
- text: "080000",
11
- list: "090000",
12
- unit: "0b0000",
13
- map: "0c0000",
14
- never: "0d0000",
15
- unknown: "0e0000",
16
- decimal: "2c0100",
17
- decimal_f32: "2d0100",
18
- decimal_f64: "2e0100",
19
- decimal_dbig: "2f0100",
20
- integer: "640000",
21
- integer_u8: "650000",
22
- integer_u16: "660000",
23
- integer_u32: "670000",
24
- integer_u64: "680000",
25
- integer_u128: "690000",
26
- integer_i8: "6a0000",
27
- integer_i16: "6b0000",
28
- integer_i32: "6c0000",
29
- integer_i64: "6d0000",
30
- integer_i128: "6e0000",
31
- integer_ibig: "6f0000",
32
- };
33
6
  /**
34
- * Mapping of core type address ranges for categorization.
7
+ * Mapping of core types to their respective type id.
35
8
  */
36
- export const CoreTypeAddressRanges = {
37
- small_unsigned_integers: new Set([
38
- CoreTypeAddress.integer_u8,
39
- CoreTypeAddress.integer_u16,
40
- CoreTypeAddress.integer_u32,
41
- CoreTypeAddress.integer_u64,
42
- CoreTypeAddress.integer_u128,
43
- ]),
44
- small_signed_integers: new Set([
45
- CoreTypeAddress.integer_i8,
46
- CoreTypeAddress.integer_i16,
47
- CoreTypeAddress.integer_i32,
48
- CoreTypeAddress.integer_i64,
49
- CoreTypeAddress.integer_i128,
50
- ]),
51
- big_signed_integers: new Set([CoreTypeAddress.integer_ibig]),
52
- decimals: new Set([
53
- CoreTypeAddress.decimal,
54
- CoreTypeAddress.decimal_f32,
55
- CoreTypeAddress.decimal_f64,
56
- CoreTypeAddress.decimal_dbig,
57
- ]),
9
+ export const CoreLibTypeId = {
10
+ null: 1,
11
+ boolean: 2,
12
+ integer: 3,
13
+ integer_u8: 500,
14
+ integer_u16: 501,
15
+ integer_u32: 502,
16
+ integer_u64: 503,
17
+ integer_u128: 504,
18
+ integer_i8: 505,
19
+ integer_i16: 506,
20
+ integer_i32: 507,
21
+ integer_i64: 508,
22
+ integer_i128: 509,
23
+ integer_ibig: 510,
24
+ decimal: 4,
25
+ decimal_f32: 511,
26
+ decimal_f64: 512,
27
+ decimal_dbig: 513,
28
+ text: 5,
29
+ endpoint: 6,
30
+ Unit: 7,
31
+ Never: 8,
32
+ Unknown: 9,
33
+ List: 10,
34
+ Map: 11,
35
+ Callable: 12,
36
+ Range: 13,
37
+ Type: 14,
58
38
  };