@adapt-toolkit/sdk 0.5.15 → 0.6.1
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/LICENSE +105 -0
- package/LICENSE.aefl +172 -0
- package/NOTICE +18 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/mufl_files/794F6D9EE08C05F2A5768F0E71512120A559D3FC83B106F792FFBAFDA7C016A4.muflo +0 -0
- package/dist/utilities/broker/broker.d.ts +8 -1
- package/dist/utilities/broker/broker.d.ts.map +1 -1
- package/dist/utilities/broker/broker.js +147 -97
- package/dist/utilities/broker/broker.js.map +1 -1
- package/dist/utilities/broker/broker_client.d.ts +6 -3
- package/dist/utilities/broker/broker_client.d.ts.map +1 -1
- package/dist/utilities/broker/broker_client.js +79 -12
- package/dist/utilities/broker/broker_client.js.map +1 -1
- package/dist/utilities/broker/pending_message_store.d.ts +2 -3
- package/dist/utilities/broker/pending_message_store.d.ts.map +1 -1
- package/dist/utilities/broker/pending_message_store.js +3 -21
- package/dist/utilities/broker/pending_message_store.js.map +1 -1
- package/dist/utilities/common/errors/adapt_protocol_error.d.ts +3 -2
- package/dist/utilities/common/errors/adapt_protocol_error.d.ts.map +1 -1
- package/dist/utilities/common/errors/adapt_protocol_error.js +3 -2
- package/dist/utilities/common/errors/adapt_protocol_error.js.map +1 -1
- package/dist/utilities/common/index.d.ts +1 -0
- package/dist/utilities/common/index.d.ts.map +1 -1
- package/dist/utilities/common/index.js.map +1 -1
- package/dist/utilities/common/web_socket_client.d.ts +2 -3
- package/dist/utilities/common/web_socket_client.d.ts.map +1 -1
- package/dist/utilities/common/web_socket_client.js.map +1 -1
- package/dist/utilities/common/web_socket_connection.d.ts +23 -5
- package/dist/utilities/common/web_socket_connection.d.ts.map +1 -1
- package/dist/utilities/common/web_socket_connection.js +44 -14
- package/dist/utilities/common/web_socket_connection.js.map +1 -1
- package/dist/utilities/storage/data_storage.d.ts.map +1 -1
- package/dist/utilities/storage/data_storage.js +10 -5
- package/dist/utilities/storage/data_storage.js.map +1 -1
- package/dist/utilities/storage/storage_client.d.ts +2 -2
- package/dist/utilities/storage/storage_client.d.ts.map +1 -1
- package/dist/utilities/storage/storage_client.js +7 -9
- package/dist/utilities/storage/storage_client.js.map +1 -1
- package/dist/utilities/wrappers/wrappers/adapt_packet_wrapper.d.ts +1 -1
- package/dist/utilities/wrappers/wrappers/adapt_packet_wrapper.d.ts.map +1 -1
- package/dist/utilities/wrappers/wrappers/adapt_packet_wrapper.js +2 -2
- package/dist/utilities/wrappers/wrappers/adapt_packet_wrapper.js.map +1 -1
- package/dist/utilities/wrappers/wrappers/adapt_wrapper.d.ts +4 -1
- package/dist/utilities/wrappers/wrappers/adapt_wrapper.d.ts.map +1 -1
- package/dist/utilities/wrappers/wrappers/adapt_wrapper.js +27 -20
- package/dist/utilities/wrappers/wrappers/adapt_wrapper.js.map +1 -1
- package/dist/utilities/wrappers/wrappers/impl/adapt_packet_wrapper_impl.d.ts +1 -1
- package/dist/utilities/wrappers/wrappers/impl/adapt_packet_wrapper_impl.d.ts.map +1 -1
- package/dist/utilities/wrappers/wrappers/impl/adapt_packet_wrapper_impl.js +19 -23
- package/dist/utilities/wrappers/wrappers/impl/adapt_packet_wrapper_impl.js.map +1 -1
- package/dist/wasm/LICENSE.aefl +172 -0
- package/dist/wasm/mufl-bindings.d.ts.map +1 -1
- package/dist/wasm/mufl-bindings.js +221 -25
- package/dist/wasm/mufl-bindings.js.map +1 -1
- package/dist/wasm/mufl-bindings.wasm +0 -0
- package/dist/wrapper/index.d.ts +1 -0
- package/dist/wrapper/index.d.ts.map +1 -1
- package/dist/wrapper/index.js +1 -0
- package/dist/wrapper/index.js.map +1 -1
- package/dist/wrapper/protocol/broker_frame.d.ts +20 -0
- package/dist/wrapper/protocol/broker_frame.d.ts.map +1 -0
- package/dist/wrapper/protocol/broker_frame.js +102 -0
- package/dist/wrapper/protocol/broker_frame.js.map +1 -0
- package/dist/wrapper/protocol/protocol.d.ts +3 -0
- package/dist/wrapper/protocol/protocol.d.ts.map +1 -1
- package/dist/wrapper/protocol/protocol.js +23 -1
- package/dist/wrapper/protocol/protocol.js.map +1 -1
- package/package.json +7 -4
- package/dist/mufl_files/BF38C2D4E98F56F473F78121CF9EAAC3492364F1A11A3B0F1F04C12D24285596.muflo +0 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
# Functional Source License, Version 1.1, ALv2 Future License
|
|
2
|
+
|
|
3
|
+
## Abbreviation
|
|
4
|
+
|
|
5
|
+
FSL-1.1-ALv2
|
|
6
|
+
|
|
7
|
+
## Notice
|
|
8
|
+
|
|
9
|
+
Copyright 2026 ADAPT FRAMEWORK SOLUTIONS LTD
|
|
10
|
+
|
|
11
|
+
## Terms and Conditions
|
|
12
|
+
|
|
13
|
+
### Licensor ("We")
|
|
14
|
+
|
|
15
|
+
The party offering the Software under these Terms and Conditions.
|
|
16
|
+
|
|
17
|
+
### The Software
|
|
18
|
+
|
|
19
|
+
The "Software" is each version of the software that we make available under
|
|
20
|
+
these Terms and Conditions, as indicated by our inclusion of these Terms and
|
|
21
|
+
Conditions with the Software.
|
|
22
|
+
|
|
23
|
+
### License Grant
|
|
24
|
+
|
|
25
|
+
Subject to your compliance with this License Grant and the Patents,
|
|
26
|
+
Redistribution and Trademark clauses below, we hereby grant you the right to
|
|
27
|
+
use, copy, modify, create derivative works, publicly perform, publicly display
|
|
28
|
+
and redistribute the Software for any Permitted Purpose identified below.
|
|
29
|
+
|
|
30
|
+
### Permitted Purpose
|
|
31
|
+
|
|
32
|
+
A Permitted Purpose is any purpose other than a Competing Use. A Competing Use
|
|
33
|
+
means making the Software available to others in a commercial product or
|
|
34
|
+
service that:
|
|
35
|
+
|
|
36
|
+
1. substitutes for the Software;
|
|
37
|
+
|
|
38
|
+
2. substitutes for any other product or service we offer using the Software
|
|
39
|
+
that exists as of the date we make the Software available; or
|
|
40
|
+
|
|
41
|
+
3. offers the same or substantially similar functionality as the Software.
|
|
42
|
+
|
|
43
|
+
Permitted Purposes specifically include using the Software:
|
|
44
|
+
|
|
45
|
+
1. for your internal use and access;
|
|
46
|
+
|
|
47
|
+
2. for non-commercial education;
|
|
48
|
+
|
|
49
|
+
3. for non-commercial research; and
|
|
50
|
+
|
|
51
|
+
4. in connection with professional services that you provide to a licensee
|
|
52
|
+
using the Software in accordance with these Terms and Conditions.
|
|
53
|
+
|
|
54
|
+
### Patents
|
|
55
|
+
|
|
56
|
+
To the extent your use for a Permitted Purpose would necessarily infringe our
|
|
57
|
+
patents, the license grant above includes a license under our patents. If you
|
|
58
|
+
make a claim against any party that the Software infringes or contributes to
|
|
59
|
+
the infringement of any patent, then your patent license to the Software ends
|
|
60
|
+
immediately.
|
|
61
|
+
|
|
62
|
+
### Redistribution
|
|
63
|
+
|
|
64
|
+
The Terms and Conditions apply to all copies, modifications and derivatives of
|
|
65
|
+
the Software.
|
|
66
|
+
|
|
67
|
+
If you redistribute any copies, modifications or derivatives of the Software,
|
|
68
|
+
you must include a copy of or a link to these Terms and Conditions and not
|
|
69
|
+
remove any copyright notices provided in or with the Software.
|
|
70
|
+
|
|
71
|
+
### Disclaimer
|
|
72
|
+
|
|
73
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR
|
|
74
|
+
IMPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR
|
|
75
|
+
PURPOSE, MERCHANTABILITY, TITLE OR NON-INFRINGEMENT.
|
|
76
|
+
|
|
77
|
+
IN NO EVENT WILL WE HAVE ANY LIABILITY TO YOU ARISING OUT OF OR RELATED TO THE
|
|
78
|
+
SOFTWARE, INCLUDING INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES,
|
|
79
|
+
EVEN IF WE HAVE BEEN INFORMED OF THEIR POSSIBILITY IN ADVANCE.
|
|
80
|
+
|
|
81
|
+
### Trademarks
|
|
82
|
+
|
|
83
|
+
Except for displaying the License Details and identifying us as the origin of
|
|
84
|
+
the Software, you have no right under these Terms and Conditions to use our
|
|
85
|
+
trademarks, trade names, service marks or product names.
|
|
86
|
+
|
|
87
|
+
## Grant of Future License
|
|
88
|
+
|
|
89
|
+
We hereby irrevocably grant you an additional license to use the Software under
|
|
90
|
+
the Apache License, Version 2.0 that is effective on the second anniversary of
|
|
91
|
+
the date we make the Software available. On or after that date, you may use the
|
|
92
|
+
Software under the Apache License, Version 2.0, in which case the following
|
|
93
|
+
will apply:
|
|
94
|
+
|
|
95
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
96
|
+
this file except in compliance with the License.
|
|
97
|
+
|
|
98
|
+
You may obtain a copy of the License at
|
|
99
|
+
|
|
100
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
101
|
+
|
|
102
|
+
Unless required by applicable law or agreed to in writing, software distributed
|
|
103
|
+
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
|
104
|
+
CONDITIONS OF ANY KIND, either express or implied. See the License for the
|
|
105
|
+
specific language governing permissions and limitations under the License.
|
package/LICENSE.aefl
ADDED
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
ADAPT ENGINE FREE-USE LICENSE (AEFL)
|
|
2
|
+
Version 1.0 — 2026-06-29
|
|
3
|
+
|
|
4
|
+
Covers the MUFL compiler, the MUFL REPL, and the adapt evaluator binaries
|
|
5
|
+
(together, the "Software").
|
|
6
|
+
|
|
7
|
+
Copyright (c) 2026 ADAPT FRAMEWORK SOLUTIONS LTD. All rights reserved.
|
|
8
|
+
ADAPT FRAMEWORK SOLUTIONS LTD, a company registered in England and Wales
|
|
9
|
+
(company no. 12371061), registered office: Steward House, 14 Commercial Way,
|
|
10
|
+
Woking, England, GU21 6ET.
|
|
11
|
+
|
|
12
|
+
PREAMBLE (non-binding)
|
|
13
|
+
This license lets anyone download and use the MUFL compiler, REPL, and adapt
|
|
14
|
+
evaluator at no charge, for any purpose including commercial, and keep full
|
|
15
|
+
ownership of everything they build with them. The binaries are free to use and
|
|
16
|
+
to redistribute unchanged; the underlying source code remains proprietary and
|
|
17
|
+
may not be reverse engineered. If a term and the binding text below disagree,
|
|
18
|
+
the binding text controls.
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
1. DEFINITIONS
|
|
22
|
+
|
|
23
|
+
1.1 "Software" means the MUFL compiler, the MUFL REPL, and the adapt evaluator
|
|
24
|
+
binaries distributed under this license, in any form (native executable,
|
|
25
|
+
archive, WebAssembly module, or N-API module), including any updates the
|
|
26
|
+
Licensor distributes under this license, but excluding any source code.
|
|
27
|
+
|
|
28
|
+
1.2 "Licensor" means the copyright holder identified above and its successors
|
|
29
|
+
and assigns.
|
|
30
|
+
|
|
31
|
+
1.3 "You" (or "Your") means the individual or legal entity exercising rights
|
|
32
|
+
under this license.
|
|
33
|
+
|
|
34
|
+
1.4 "Your Programs" means source code, configuration, and data that You author
|
|
35
|
+
or supply for processing by the Software.
|
|
36
|
+
|
|
37
|
+
1.5 "Output" means any artifact the Software produces from Your Programs,
|
|
38
|
+
including compiled modules, intermediate representations, and the results
|
|
39
|
+
of evaluation or execution.
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
2. GRANT OF RIGHTS
|
|
43
|
+
|
|
44
|
+
Subject to Your compliance with this license, the Licensor grants You a
|
|
45
|
+
worldwide, royalty-free, non-exclusive, perpetual (subject to Section 8)
|
|
46
|
+
license to:
|
|
47
|
+
|
|
48
|
+
(a) install and run the Software, on any number of machines, for any purpose,
|
|
49
|
+
including commercial use, at no charge;
|
|
50
|
+
|
|
51
|
+
(b) use the Software to author, compile, evaluate, execute, debug, and test
|
|
52
|
+
Your Programs; and
|
|
53
|
+
|
|
54
|
+
(c) redistribute the Software to third parties, provided that each copy is
|
|
55
|
+
complete and unmodified and that a verbatim copy of this license
|
|
56
|
+
accompanies it.
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
3. YOUR PROGRAMS AND OUTPUT
|
|
60
|
+
|
|
61
|
+
The Licensor claims no ownership of, and asserts no rights over, Your Programs
|
|
62
|
+
or the Output. You may use, reproduce, distribute, sublicense, sell, and
|
|
63
|
+
otherwise commercialize Your Programs and the Output without restriction and
|
|
64
|
+
without any obligation, attribution, or fee under this license. Authoring,
|
|
65
|
+
compiling, evaluating, or executing Your Programs with the Software does not
|
|
66
|
+
place Your Programs or the Output under this license or any obligation arising
|
|
67
|
+
from it.
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
4. RESTRICTIONS
|
|
71
|
+
|
|
72
|
+
You may not:
|
|
73
|
+
|
|
74
|
+
(a) reverse engineer, decompile, disassemble, or otherwise attempt to derive
|
|
75
|
+
the source code, internal design, structure, or algorithms of the
|
|
76
|
+
Software, except, and only to the limited extent, that applicable law
|
|
77
|
+
expressly forbids restricting such acts notwithstanding this limitation;
|
|
78
|
+
|
|
79
|
+
(b) modify, adapt, translate, or create derivative works of the Software, or
|
|
80
|
+
distribute any modified copy of the Software;
|
|
81
|
+
|
|
82
|
+
(c) remove, alter, or obscure any copyright, trademark, license, or other
|
|
83
|
+
proprietary notice contained in or accompanying the Software;
|
|
84
|
+
|
|
85
|
+
(d) use the Software, or any knowledge, measurement, or observation obtained
|
|
86
|
+
from it, to design, develop, train, or distribute a competing compiler,
|
|
87
|
+
REPL, evaluator, language runtime, or substantially similar product or
|
|
88
|
+
service; or
|
|
89
|
+
|
|
90
|
+
(e) use any name, logo, or trademark of the Licensor, except as strictly
|
|
91
|
+
necessary to identify unmodified redistributions of the Software, and
|
|
92
|
+
never in a manner that suggests endorsement, sponsorship, or affiliation
|
|
93
|
+
without the Licensor's prior written permission.
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
5. RESERVATION OF RIGHTS
|
|
97
|
+
|
|
98
|
+
The Software is licensed, not sold. The Licensor and its licensors retain all
|
|
99
|
+
right, title, and interest in and to the Software, including all intellectual
|
|
100
|
+
property rights and all rights in the Software's source code. All rights not
|
|
101
|
+
expressly granted to You in this license are reserved.
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
6. NO WARRANTY
|
|
105
|
+
|
|
106
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND "AS AVAILABLE", WITHOUT WARRANTY OF ANY
|
|
107
|
+
KIND, WHETHER EXPRESS, IMPLIED, STATUTORY, OR OTHERWISE, INCLUDING WITHOUT
|
|
108
|
+
LIMITATION THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
|
109
|
+
PURPOSE, TITLE, AND NON-INFRINGEMENT. THE LICENSOR DOES NOT WARRANT THAT THE
|
|
110
|
+
SOFTWARE WILL BE UNINTERRUPTED, ERROR-FREE, OR FREE OF HARMFUL COMPONENTS, OR
|
|
111
|
+
THAT ITS OUTPUT WILL BE ACCURATE OR RELIABLE.
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
7. LIMITATION OF LIABILITY
|
|
115
|
+
|
|
116
|
+
TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT SHALL THE
|
|
117
|
+
LICENSOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
|
|
118
|
+
OR CONSEQUENTIAL DAMAGES, OR FOR ANY LOSS OF PROFITS, REVENUE, DATA, OR
|
|
119
|
+
GOODWILL, ARISING OUT OF OR IN CONNECTION WITH THE SOFTWARE OR ITS USE OR
|
|
120
|
+
INABILITY TO BE USED, WHETHER IN CONTRACT, TORT (INCLUDING NEGLIGENCE),
|
|
121
|
+
STRICT LIABILITY, OR ANY OTHER THEORY, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
122
|
+
SUCH DAMAGES. THIS SOFTWARE IS PROVIDED FREE OF CHARGE, AND THIS ALLOCATION OF
|
|
123
|
+
RISK IS AN ESSENTIAL BASIS OF THE LICENSOR'S DECISION TO PROVIDE IT.
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
8. TERM AND TERMINATION
|
|
127
|
+
|
|
128
|
+
This license takes effect when You first download, install, or use the
|
|
129
|
+
Software and continues until terminated. It terminates automatically and
|
|
130
|
+
immediately if You breach any of its terms. Upon termination You must cease
|
|
131
|
+
all use of the Software and destroy all copies in Your possession or control.
|
|
132
|
+
Sections 3, 5, 6, 7, 9, and 10 survive termination. Termination does not
|
|
133
|
+
affect Your Programs or Output created before termination, nor any rights of
|
|
134
|
+
third parties who received the Software from You in compliance with this
|
|
135
|
+
license.
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
9. GOVERNING LAW
|
|
139
|
+
|
|
140
|
+
This license is governed by and construed in accordance with the laws of
|
|
141
|
+
England and Wales, excluding its conflict-of-laws rules and excluding the
|
|
142
|
+
United Nations Convention on Contracts for the International Sale of Goods. The
|
|
143
|
+
courts of England and Wales shall have exclusive jurisdiction over any dispute
|
|
144
|
+
arising out of or relating to this license.
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
10. GENERAL
|
|
148
|
+
|
|
149
|
+
10.1 Entire Agreement. This license is the entire agreement between You and the
|
|
150
|
+
Licensor regarding the Software and supersedes any prior or contemporaneous
|
|
151
|
+
understandings.
|
|
152
|
+
|
|
153
|
+
10.2 Severability. If any provision is held unenforceable, it shall be modified
|
|
154
|
+
to the minimum extent necessary to make it enforceable, and the remaining
|
|
155
|
+
provisions shall remain in full force.
|
|
156
|
+
|
|
157
|
+
10.3 No Waiver. The Licensor's failure to enforce any provision is not a waiver
|
|
158
|
+
of its right to do so later.
|
|
159
|
+
|
|
160
|
+
10.4 Assignment. You may not assign or transfer this license except as part of
|
|
161
|
+
a permitted, unmodified redistribution of the Software under Section 2(c).
|
|
162
|
+
The Licensor may assign this license freely.
|
|
163
|
+
|
|
164
|
+
10.5 Reservation for Separate Terms. The Licensor may make the Software, or
|
|
165
|
+
additional rights to it, available to You or others under separate written
|
|
166
|
+
terms (for example, a commercial or source license). Those terms govern
|
|
167
|
+
only where expressly agreed and do not limit the rights granted here.
|
|
168
|
+
|
|
169
|
+
END OF TERMS
|
|
170
|
+
|
|
171
|
+
To request rights beyond this license (including commercial source licensing),
|
|
172
|
+
contact: alex@adaptframework.solutions.
|
package/NOTICE
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
NOTICE — Bundled proprietary components (@adapt-toolkit/sdk)
|
|
2
|
+
|
|
3
|
+
This package is licensed under the Functional Source License, Version 1.1,
|
|
4
|
+
Apache 2.0 Future License (FSL-1.1-Apache-2.0). See the LICENSE file.
|
|
5
|
+
|
|
6
|
+
EXCEPTION — the adapt evaluator WebAssembly module distributed with this package
|
|
7
|
+
(dist/wasm/mufl-bindings.wasm, and any other native/WASM/N-API evaluator binary
|
|
8
|
+
shipped herein) is NOT licensed under the FSL. It is proprietary software of
|
|
9
|
+
ADAPT FRAMEWORK SOLUTIONS LTD, licensed separately under the Adapt Engine
|
|
10
|
+
Free-Use License (AEFL); a copy is at LICENSE.aefl (also placed next to the
|
|
11
|
+
binary at dist/wasm/LICENSE.aefl).
|
|
12
|
+
|
|
13
|
+
For the avoidance of doubt, that binary is EXCLUDED from the FSL grant AND from
|
|
14
|
+
the FSL "Future License" conversion: it does NOT become available under
|
|
15
|
+
Apache-2.0 (or any other license) on the Change Date or at any other time. All
|
|
16
|
+
rights in it are reserved except as expressly granted by the AEFL.
|
|
17
|
+
|
|
18
|
+
Source-access / commercial licensing: alex@adaptframework.solutions
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,mBAAmB,CAAC;AAClC,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC"}
|
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,gGAAgG;AAChG,cAAc,mBAAmB,CAAC"}
|
package/dist/mufl_files/794F6D9EE08C05F2A5768F0E71512120A559D3FC83B106F792FFBAFDA7C016A4.muflo
ADDED
|
Binary file
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { AdaptValue } from '@adapt-toolkit/sdk/backend';
|
|
2
2
|
import { HttpServer, AsyncQueueAdapter, NetworkComponentI } from '../common/index.js';
|
|
3
|
+
import { Protocol } from '../../wrapper/index.js';
|
|
3
4
|
import { BrokerConfigurator } from './broker_configurator.js';
|
|
4
5
|
declare namespace Broker {
|
|
5
6
|
type EventKind = 'incoming_message' | 'outgoing_message';
|
|
6
7
|
type Event = {
|
|
7
8
|
kind: EventKind;
|
|
8
9
|
connection_id: number;
|
|
9
|
-
|
|
10
|
+
frame: Uint8Array;
|
|
11
|
+
type?: Protocol.MessageName;
|
|
12
|
+
to_hex?: string;
|
|
13
|
+
parse_payload?: () => AdaptValue;
|
|
10
14
|
to_cid?: string;
|
|
11
15
|
pending_row_id?: number;
|
|
12
16
|
};
|
|
@@ -17,7 +21,10 @@ export declare class Broker extends HttpServer implements NetworkComponentI<Brok
|
|
|
17
21
|
config: BrokerConfigurator;
|
|
18
22
|
constructor(broker_configuration: BrokerConfigurator);
|
|
19
23
|
connection_closed(connection_id: number): void;
|
|
24
|
+
last_reg_nonce_for_test(): string;
|
|
25
|
+
is_cid_registered_for_test(cid: string): boolean;
|
|
20
26
|
start: () => void;
|
|
27
|
+
maybe_apply_backpressure(): void;
|
|
21
28
|
}
|
|
22
29
|
export {};
|
|
23
30
|
//# sourceMappingURL=broker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"broker.d.ts","sourceRoot":"","sources":["../../../src/utilities/broker/broker.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"broker.d.ts","sourceRoot":"","sources":["../../../src/utilities/broker/broker.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,UAAU,EAAyC,MAAM,UAAU,CAAA;AAG5E,OAAO,EAA4C,UAAU,EAAE,iBAAiB,EAAiG,iBAAiB,EAAkD,MAAM,oBAAoB,CAAA;AAC9Q,OAAO,EAAsB,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AAErE,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AAiQ7D,kBAAO,MAAM,CAAC;IACV,KAAY,SAAS,GAAG,kBAAkB,GAAG,kBAAkB,CAAA;IAI/D,KAAY,KAAK,GAAG;QAChB,IAAI,EAAE,SAAS,CAAC;QAChB,aAAa,EAAE,MAAM,CAAC;QACtB,KAAK,EAAE,UAAU,CAAC;QAClB,IAAI,CAAC,EAAE,QAAQ,CAAC,WAAW,CAAC;QAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,aAAa,CAAC,EAAE,MAAM,UAAU,CAAC;QACjC,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,cAAc,CAAC,EAAE,MAAM,CAAC;KAC3B,CAAA;CACJ;AACD,qBAAa,MAAO,SAAQ,UAAW,YAAW,iBAAiB,CAAC,kBAAkB,CAAC;;IACnF,KAAK,EAAE,iBAAiB,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;IA4BtC,MAAM,EAAE,kBAAkB,CAAA;gBAEd,oBAAoB,EAAE,kBAAkB;IAmDpD,iBAAiB,CAAC,aAAa,EAAE,MAAM;IAsBvC,uBAAuB,IAAI,MAAM;IAMjC,0BAA0B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;IA4HhD,KAAK,aA2DJ;IAsCD,wBAAwB;CAyI3B"}
|