reactor-effect-client 0.0.0-reserved.0 → 0.3.0-rc.0
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 +201 -0
- package/NOTICE +29 -0
- package/README.md +180 -2
- package/dist/FetchHttp.d.ts +9 -0
- package/dist/FetchHttp.d.ts.map +1 -0
- package/dist/FetchHttp.js +63 -0
- package/dist/FetchHttp.js.map +1 -0
- package/dist/PeerFactory.d.ts +26 -0
- package/dist/PeerFactory.d.ts.map +1 -0
- package/dist/PeerFactory.js +4 -0
- package/dist/PeerFactory.js.map +1 -0
- package/dist/PeerTypes.d.ts +64 -0
- package/dist/PeerTypes.d.ts.map +1 -0
- package/dist/PeerTypes.js +2 -0
- package/dist/PeerTypes.js.map +1 -0
- package/dist/Sequence.d.ts +85 -0
- package/dist/Sequence.d.ts.map +1 -0
- package/dist/Sequence.js +210 -0
- package/dist/Sequence.js.map +1 -0
- package/dist/SessionTypes.d.ts +317 -0
- package/dist/SessionTypes.d.ts.map +1 -0
- package/dist/SessionTypes.js +19 -0
- package/dist/SessionTypes.js.map +1 -0
- package/dist/Submission.d.ts +42 -0
- package/dist/Submission.d.ts.map +1 -0
- package/dist/Submission.js +52 -0
- package/dist/Submission.js.map +1 -0
- package/dist/bytes.d.ts +6 -0
- package/dist/bytes.d.ts.map +1 -0
- package/dist/bytes.js +32 -0
- package/dist/bytes.js.map +1 -0
- package/dist/contract.d.ts +149 -0
- package/dist/contract.d.ts.map +1 -0
- package/dist/contract.js +119 -0
- package/dist/contract.js.map +1 -0
- package/dist/coordinator/_internal/client.d.ts +221 -0
- package/dist/coordinator/_internal/client.d.ts.map +1 -0
- package/dist/coordinator/_internal/client.js +563 -0
- package/dist/coordinator/_internal/client.js.map +1 -0
- package/dist/coordinator/_internal/recording.d.ts +33 -0
- package/dist/coordinator/_internal/recording.d.ts.map +1 -0
- package/dist/coordinator/_internal/recording.js +123 -0
- package/dist/coordinator/_internal/recording.js.map +1 -0
- package/dist/coordinator/_internal/response.d.ts +15 -0
- package/dist/coordinator/_internal/response.d.ts.map +1 -0
- package/dist/coordinator/_internal/response.js +55 -0
- package/dist/coordinator/_internal/response.js.map +1 -0
- package/dist/coordinator/_internal/schemas.d.ts +85 -0
- package/dist/coordinator/_internal/schemas.d.ts.map +1 -0
- package/dist/coordinator/_internal/schemas.js +200 -0
- package/dist/coordinator/_internal/schemas.js.map +1 -0
- package/dist/coordinator/index.d.ts +40 -0
- package/dist/coordinator/index.d.ts.map +1 -0
- package/dist/coordinator/index.js +21 -0
- package/dist/coordinator/index.js.map +1 -0
- package/dist/correlation.d.ts +47 -0
- package/dist/correlation.d.ts.map +1 -0
- package/dist/correlation.js +131 -0
- package/dist/correlation.js.map +1 -0
- package/dist/duration.d.ts +25 -0
- package/dist/duration.d.ts.map +1 -0
- package/dist/duration.js +47 -0
- package/dist/duration.js.map +1 -0
- package/dist/errors.d.ts +1303 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +745 -0
- package/dist/errors.js.map +1 -0
- package/dist/h3/_internal/client.d.ts +9 -0
- package/dist/h3/_internal/client.d.ts.map +1 -0
- package/dist/h3/_internal/client.js +595 -0
- package/dist/h3/_internal/client.js.map +1 -0
- package/dist/h3/_internal/contracts.d.ts +123 -0
- package/dist/h3/_internal/contracts.d.ts.map +1 -0
- package/dist/h3/_internal/contracts.js +113 -0
- package/dist/h3/_internal/contracts.js.map +1 -0
- package/dist/h3/_internal/deployment.d.ts +8 -0
- package/dist/h3/_internal/deployment.d.ts.map +1 -0
- package/dist/h3/_internal/deployment.js +133 -0
- package/dist/h3/_internal/deployment.js.map +1 -0
- package/dist/h3/_internal/evidence.d.ts +17 -0
- package/dist/h3/_internal/evidence.d.ts.map +1 -0
- package/dist/h3/_internal/evidence.js +48 -0
- package/dist/h3/_internal/evidence.js.map +1 -0
- package/dist/h3/_internal/operations.d.ts +48 -0
- package/dist/h3/_internal/operations.d.ts.map +1 -0
- package/dist/h3/_internal/operations.js +230 -0
- package/dist/h3/_internal/operations.js.map +1 -0
- package/dist/h3/_internal/references.d.ts +18 -0
- package/dist/h3/_internal/references.d.ts.map +1 -0
- package/dist/h3/_internal/references.js +181 -0
- package/dist/h3/_internal/references.js.map +1 -0
- package/dist/h3/_internal/request.d.ts +16 -0
- package/dist/h3/_internal/request.d.ts.map +1 -0
- package/dist/h3/_internal/request.js +79 -0
- package/dist/h3/_internal/request.js.map +1 -0
- package/dist/h3/_internal/retained.d.ts +22 -0
- package/dist/h3/_internal/retained.d.ts.map +1 -0
- package/dist/h3/_internal/retained.js +89 -0
- package/dist/h3/_internal/retained.js.map +1 -0
- package/dist/h3/_internal/state.d.ts +44 -0
- package/dist/h3/_internal/state.d.ts.map +1 -0
- package/dist/h3/_internal/state.js +283 -0
- package/dist/h3/_internal/state.js.map +1 -0
- package/dist/h3/index.d.ts +10 -0
- package/dist/h3/index.d.ts.map +1 -0
- package/dist/h3/index.js +7 -0
- package/dist/h3/index.js.map +1 -0
- package/dist/h3/messages.d.ts +319 -0
- package/dist/h3/messages.d.ts.map +1 -0
- package/dist/h3/messages.js +136 -0
- package/dist/h3/messages.js.map +1 -0
- package/dist/h3/profile.d.ts +109 -0
- package/dist/h3/profile.d.ts.map +1 -0
- package/dist/h3/profile.js +70 -0
- package/dist/h3/profile.js.map +1 -0
- package/dist/h3/types.d.ts +268 -0
- package/dist/h3/types.d.ts.map +1 -0
- package/dist/h3/types.js +2 -0
- package/dist/h3/types.js.map +1 -0
- package/dist/host.d.ts +25 -0
- package/dist/host.d.ts.map +1 -0
- package/dist/host.js +19 -0
- package/dist/host.js.map +1 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -0
- package/dist/json.d.ts +25 -0
- package/dist/json.d.ts.map +1 -0
- package/dist/json.js +143 -0
- package/dist/json.js.map +1 -0
- package/dist/media-stream.d.ts +10 -0
- package/dist/media-stream.d.ts.map +1 -0
- package/dist/media-stream.js +18 -0
- package/dist/media-stream.js.map +1 -0
- package/dist/observation.d.ts +35 -0
- package/dist/observation.d.ts.map +1 -0
- package/dist/observation.js +108 -0
- package/dist/observation.js.map +1 -0
- package/dist/orchestration/h3-source.d.ts +58 -0
- package/dist/orchestration/h3-source.d.ts.map +1 -0
- package/dist/orchestration/h3-source.js +336 -0
- package/dist/orchestration/h3-source.js.map +1 -0
- package/dist/orchestration/index.d.ts +15 -0
- package/dist/orchestration/index.d.ts.map +1 -0
- package/dist/orchestration/index.js +11 -0
- package/dist/orchestration/index.js.map +1 -0
- package/dist/orchestration/media-buffer.d.ts +31 -0
- package/dist/orchestration/media-buffer.d.ts.map +1 -0
- package/dist/orchestration/media-buffer.js +93 -0
- package/dist/orchestration/media-buffer.js.map +1 -0
- package/dist/orchestration/open-h3.d.ts +65 -0
- package/dist/orchestration/open-h3.d.ts.map +1 -0
- package/dist/orchestration/open-h3.js +65 -0
- package/dist/orchestration/open-h3.js.map +1 -0
- package/dist/orchestration/queries.d.ts +10 -0
- package/dist/orchestration/queries.d.ts.map +1 -0
- package/dist/orchestration/queries.js +40 -0
- package/dist/orchestration/queries.js.map +1 -0
- package/dist/orchestration/references.d.ts +20 -0
- package/dist/orchestration/references.d.ts.map +1 -0
- package/dist/orchestration/references.js +79 -0
- package/dist/orchestration/references.js.map +1 -0
- package/dist/orchestration/renewal-state.d.ts +58 -0
- package/dist/orchestration/renewal-state.d.ts.map +1 -0
- package/dist/orchestration/renewal-state.js +60 -0
- package/dist/orchestration/renewal-state.js.map +1 -0
- package/dist/orchestration/renewal.d.ts +76 -0
- package/dist/orchestration/renewal.d.ts.map +1 -0
- package/dist/orchestration/renewal.js +694 -0
- package/dist/orchestration/renewal.js.map +1 -0
- package/dist/orchestration/request.d.ts +52 -0
- package/dist/orchestration/request.d.ts.map +1 -0
- package/dist/orchestration/request.js +119 -0
- package/dist/orchestration/request.js.map +1 -0
- package/dist/orchestration/routing.d.ts +21 -0
- package/dist/orchestration/routing.d.ts.map +1 -0
- package/dist/orchestration/routing.js +93 -0
- package/dist/orchestration/routing.js.map +1 -0
- package/dist/orchestration/source-slot.d.ts +109 -0
- package/dist/orchestration/source-slot.d.ts.map +1 -0
- package/dist/orchestration/source-slot.js +225 -0
- package/dist/orchestration/source-slot.js.map +1 -0
- package/dist/orchestration/types.d.ts +889 -0
- package/dist/orchestration/types.d.ts.map +1 -0
- package/dist/orchestration/types.js +31 -0
- package/dist/orchestration/types.js.map +1 -0
- package/dist/protobuf.d.ts +63 -0
- package/dist/protobuf.d.ts.map +1 -0
- package/dist/protobuf.js +252 -0
- package/dist/protobuf.js.map +1 -0
- package/dist/session/_internal/acquire.d.ts +21 -0
- package/dist/session/_internal/acquire.d.ts.map +1 -0
- package/dist/session/_internal/acquire.js +157 -0
- package/dist/session/_internal/acquire.js.map +1 -0
- package/dist/session/_internal/cleanup.d.ts +19 -0
- package/dist/session/_internal/cleanup.d.ts.map +1 -0
- package/dist/session/_internal/cleanup.js +102 -0
- package/dist/session/_internal/cleanup.js.map +1 -0
- package/dist/session/_internal/lifecycle.d.ts +67 -0
- package/dist/session/_internal/lifecycle.d.ts.map +1 -0
- package/dist/session/_internal/lifecycle.js +142 -0
- package/dist/session/_internal/lifecycle.js.map +1 -0
- package/dist/session/_internal/remote.d.ts +28 -0
- package/dist/session/_internal/remote.d.ts.map +1 -0
- package/dist/session/_internal/remote.js +70 -0
- package/dist/session/_internal/remote.js.map +1 -0
- package/dist/session/_internal/uploads.d.ts +7 -0
- package/dist/session/_internal/uploads.d.ts.map +1 -0
- package/dist/session/_internal/uploads.js +31 -0
- package/dist/session/_internal/uploads.js.map +1 -0
- package/dist/session/commands.d.ts +2 -0
- package/dist/session/commands.d.ts.map +1 -0
- package/dist/session/commands.js +2 -0
- package/dist/session/commands.js.map +1 -0
- package/dist/session/files.d.ts +23 -0
- package/dist/session/files.d.ts.map +1 -0
- package/dist/session/files.js +49 -0
- package/dist/session/files.js.map +1 -0
- package/dist/session/index.d.ts +76 -0
- package/dist/session/index.d.ts.map +1 -0
- package/dist/session/index.js +16 -0
- package/dist/session/index.js.map +1 -0
- package/dist/session/media.d.ts +114 -0
- package/dist/session/media.d.ts.map +1 -0
- package/dist/session/media.js +2 -0
- package/dist/session/media.js.map +1 -0
- package/dist/session/recorder.d.ts +24 -0
- package/dist/session/recorder.d.ts.map +1 -0
- package/dist/session/recorder.js +19 -0
- package/dist/session/recorder.js.map +1 -0
- package/dist/session.d.ts +105 -0
- package/dist/session.d.ts.map +1 -0
- package/dist/session.js +971 -0
- package/dist/session.js.map +1 -0
- package/dist/simulation/_internal/source.d.ts +12 -0
- package/dist/simulation/_internal/source.d.ts.map +1 -0
- package/dist/simulation/_internal/source.js +486 -0
- package/dist/simulation/_internal/source.js.map +1 -0
- package/dist/simulation/index.d.ts +13 -0
- package/dist/simulation/index.d.ts.map +1 -0
- package/dist/simulation/index.js +12 -0
- package/dist/simulation/index.js.map +1 -0
- package/dist/simulation/types.d.ts +43 -0
- package/dist/simulation/types.d.ts.map +1 -0
- package/dist/simulation/types.js +2 -0
- package/dist/simulation/types.js.map +1 -0
- package/dist/stats.d.ts +33 -0
- package/dist/stats.d.ts.map +1 -0
- package/dist/stats.js +133 -0
- package/dist/stats.js.map +1 -0
- package/dist/testing/Faults.d.ts +4 -0
- package/dist/testing/Faults.d.ts.map +1 -0
- package/dist/testing/Faults.js +7 -0
- package/dist/testing/Faults.js.map +1 -0
- package/dist/testing/Png.d.ts +3 -0
- package/dist/testing/Png.d.ts.map +1 -0
- package/dist/testing/Png.js +68 -0
- package/dist/testing/Png.js.map +1 -0
- package/dist/testing/index.d.ts +3 -0
- package/dist/testing/index.d.ts.map +1 -0
- package/dist/testing/index.js +3 -0
- package/dist/testing/index.js.map +1 -0
- package/dist/wire.d.ts +7 -0
- package/dist/wire.d.ts.map +1 -0
- package/dist/wire.generated.d.ts +305 -0
- package/dist/wire.generated.d.ts.map +1 -0
- package/dist/wire.generated.js +1257 -0
- package/dist/wire.generated.js.map +1 -0
- package/dist/wire.js +5 -0
- package/dist/wire.js.map +1 -0
- package/notices/effect-LICENSE +21 -0
- package/notices/google-protobuf-LICENSE +32 -0
- package/notices/owned-webrtc-LICENSE +21 -0
- package/notices/reactor-runtime-LICENSE +201 -0
- package/notices/reactor-runtime-NOTICE +5 -0
- package/notices/reactor-sdk-LICENSE +201 -0
- package/package.json +63 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2026 Reactor Technologies, Inc.
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/NOTICE
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
reactor-effect-client
|
|
2
|
+
|
|
3
|
+
This independent SDK is not an official Reactor SDK.
|
|
4
|
+
|
|
5
|
+
The canonical wire definitions and selected protocol behavior derive from:
|
|
6
|
+
- reactor-client-sdks, commit 24f1865b48f03354b15402731f1b92e90ceee92a
|
|
7
|
+
- reactor-runtime, commit 8e98536c6daedca298700dc45cbb5fd9e3676f16
|
|
8
|
+
Their upstream licenses and notices are retained under notices/.
|
|
9
|
+
The repository's packages/client/wire/proto directory contains the selected
|
|
10
|
+
canonical protocol sources. The generated wire module also incorporates
|
|
11
|
+
Google's protobuf Struct descriptor; see notices/google-protobuf-LICENSE.
|
|
12
|
+
|
|
13
|
+
Session, correlation and observation implementations incorporate the
|
|
14
|
+
user-supplied reactor-effect-client reference source. Reusable H3, coordinator,
|
|
15
|
+
reference and engine behavior is extracted from the user's the-show source.
|
|
16
|
+
The extracted package does not depend on the-show or ship its application policy.
|
|
17
|
+
|
|
18
|
+
Effect is MIT-licensed. The package declares Effect as a peer dependency; its
|
|
19
|
+
license is retained in notices/effect-LICENSE. Development tooling and
|
|
20
|
+
node_modules are excluded from the npm package.
|
|
21
|
+
|
|
22
|
+
The reference archive's limited TypeScript WebRTC/codec implementation is not
|
|
23
|
+
part of this package's production graph. Retained owned-webrtc notices document
|
|
24
|
+
the supplied reference and vector provenance; they do not indicate that a second
|
|
25
|
+
WebRTC engine is shipped or supported.
|
|
26
|
+
|
|
27
|
+
Host transports are separate packages: reactor-effect-browser uses the browser's
|
|
28
|
+
built-in WebRTC implementation, and reactor-effect-native carries the Rust
|
|
29
|
+
bridge and its libwebrtc attribution.
|
package/README.md
CHANGED
|
@@ -1,5 +1,183 @@
|
|
|
1
1
|
# reactor-effect-client
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
An independent Effect SDK for scoped Reactor sessions, H3 provider state and explicit orchestration. This is the portable core of the [reactor-effect workspace](https://github.com/mannyc2/reactor-effect-client); browser and native transports are the separate `reactor-effect-browser` and `reactor-effect-native` packages.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
One canonical `Session` owns each allocation or attachment, its commands, connection generations, and cleanup evidence. Host packages select transport capabilities. H3 consumes that same session and exposes provider state. Applications opt into the separate orchestration and simulation modules when they need scheduling, sequence affinity, or renewal.
|
|
6
|
+
|
|
7
|
+
This is not an official Reactor SDK. Protocol material is attributed in [NOTICE](./NOTICE) and [`notices/`](./notices/).
|
|
8
|
+
|
|
9
|
+
## Install
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
npm install reactor-effect-client effect@4.0.0-rc.115
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Effect `4.0.0-rc.115` is an exact peer dependency. Every module in this package is portable: importing it selects no host and loads no native code. Add `reactor-effect-browser` or `reactor-effect-native` for a transport.
|
|
16
|
+
|
|
17
|
+
## Modules
|
|
18
|
+
|
|
19
|
+
| Import | Purpose |
|
|
20
|
+
| ------------------------------------- | ---------------------------------------------------------------------------------------------- |
|
|
21
|
+
| `reactor-effect-client` | Canonical `Client`, `Session`, `make`/`layer`, errors, `Coordinator`, `Peers`, and `FetchHttp` |
|
|
22
|
+
| `reactor-effect-client/h3` | H3 provider contract, state/queue/clip evidence, controls, and image validation |
|
|
23
|
+
| `reactor-effect-client/orchestration` | Scheduling, renewal, source adaptation, references, submissions, and sequences |
|
|
24
|
+
| `reactor-effect-client/simulation` | Production simulation source, factory, and Effect service layer |
|
|
25
|
+
| `reactor-effect-client/testing` | Reusable fault and PNG fixtures |
|
|
26
|
+
| `reactor-effect-client/wire` | Generated protocol messages and wire encoding/decoding |
|
|
27
|
+
| `reactor-effect-client/host` | Host transport extension surface used by the first-party host packages |
|
|
28
|
+
|
|
29
|
+
These seven paths are the complete public export map. Internal file layout does not create additional supported deep imports. `/host` is published for `reactor-effect-browser` and `reactor-effect-native`, which pin this exact version; applications compose hosts through those packages and never need it.
|
|
30
|
+
|
|
31
|
+
## Session ownership
|
|
32
|
+
|
|
33
|
+
The root exports the `Client` service and its `make` and `layer` constructors. They require Effect HTTP and crypto services plus a `PeerFactory`. `create` allocates a remote session; `attach` identifies an existing session without taking ownership of its remote lifetime. Both return the same scope-owned `Session` contract, and `session.connect` starts WebRTC. `createConnected` and `attachConnected` combine those steps and clean up a partial acquisition before reporting failure.
|
|
34
|
+
|
|
35
|
+
Releasing an owned session attempts and independently confirms remote termination. Releasing an attached session closes its local resources and publication claims. `session.close` returns a `CloseReport` that retains local cleanup errors and remote termination uncertainty. Supervisors can inspect that evidence without allocating another owner.
|
|
36
|
+
|
|
37
|
+
```ts
|
|
38
|
+
import { Effect, Redacted } from "effect";
|
|
39
|
+
import * as Reactor from "reactor-effect-client";
|
|
40
|
+
|
|
41
|
+
const useSession = Effect.gen(function* () {
|
|
42
|
+
const client = yield* Reactor.Client;
|
|
43
|
+
const session = yield* client.create({
|
|
44
|
+
model: "your-model",
|
|
45
|
+
jwt: Redacted.make("session-token"),
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
yield* session.connect;
|
|
49
|
+
return yield* session.current;
|
|
50
|
+
});
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
The surrounding application supplies the `Client` layer and Effect platform services. Credentials, HTTP policy, scopes, and host transport selection stay visible in composition. A host package supplies the `PeerFactory`:
|
|
54
|
+
|
|
55
|
+
```ts
|
|
56
|
+
import { Effect, Layer } from "effect";
|
|
57
|
+
import * as NodeServices from "@effect/platform-node/NodeServices";
|
|
58
|
+
import * as Reactor from "reactor-effect-client";
|
|
59
|
+
import * as Native from "reactor-effect-native";
|
|
60
|
+
|
|
61
|
+
const clientLayer = Reactor.layer().pipe(
|
|
62
|
+
Layer.provide(Layer.mergeAll(Reactor.FetchHttp.layer, NodeServices.layer, Native.layer())),
|
|
63
|
+
);
|
|
64
|
+
|
|
65
|
+
// useSession is the operation above. Acquiring a real session can be billable;
|
|
66
|
+
// the repository's ordinary verification uses controlled local peers instead.
|
|
67
|
+
const main = Effect.scoped(useSession).pipe(Effect.provide(clientLayer));
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
Building a host layer is its preflight: `Native.layer()` loads and verifies the native library, and `Browser.layer` detects WebRTC, so an unsupported host fails while the layer is built, before any `Client` exists to allocate a remote session. Constructing a factory makes no allocation. HTTP and crypto services remain explicit. The root session constructor has no filesystem or path requirement. A custom host provides `PeerFactory` itself: `make` returns a fresh `Peer` for each connection generation, and an optional `check` fails when the host cannot create one right now; the factory runs it before every remote allocation.
|
|
71
|
+
|
|
72
|
+
Browser and native media values stay bound to their negotiated generation. A reconnect creates a new generation; existing readers end or fail with their source. Applications obtain the new media generation explicitly, or opt into orchestration's recovering media streams. Each `VideoFrame` declares its pixel `format` (`"BGRA"` from the native host); nothing converts between formats implicitly. A recorder reads a track directly and sees loss before admission as a rise in `pressure`'s `droppedVideo`/`droppedAudio`, and a reader that falls behind its bound fails with `Overflow` and counts in `readerOverflows`. Every frame carries its admission `sequence` on its track, so `recorder(stream)` yields each frame plus a `Lost { after, count }` wherever the host dropped frames, at their position. A preview keeps only the newest frame with `Stream.buffer({ capacity: 1, strategy: "sliding" })`.
|
|
73
|
+
|
|
74
|
+
## Errors
|
|
75
|
+
|
|
76
|
+
Every failure the client raises is one of four classes, each with its own `_tag`, so `Effect.catchTag` and a Schema union tell them apart:
|
|
77
|
+
|
|
78
|
+
- `ReactorError`: a session, coordinator or host failure;
|
|
79
|
+
- `CommandFailure`: a failed command, with the dispatch evidence its owner established;
|
|
80
|
+
- `AcquisitionFailure`: a failed acquisition, with the `cleanup` report of its partial lease, kept by reference;
|
|
81
|
+
- `PolicyFailure`, from `/orchestration`: a local refusal, which was never dispatched.
|
|
82
|
+
|
|
83
|
+
`isReactorFailure` recognizes any of them, and each class has an `is` guard. Re-raise a known failure through a guard rather than `instanceof ReactorError`, which none of the other three satisfies.
|
|
84
|
+
|
|
85
|
+
Each carries a tagged `reason`: route on `reason._tag`, with `Effect.catchReason`, `catchReasons` or `unwrapReason`. A `ReactorError`, `CommandFailure` or `AcquisitionFailure` reason is `Failure`, whose tag is a code such as `Timeout`, `Disconnected` or `InvalidInput`, or one of the reasons with fields of their own: `Http` (`status`, `retryAfter`, `body`), `Remote` and `RecorderDisabled` (`remoteCode`, `body`), `Native` (`status`, a Redacted `backendMessage`), `IceFailed` (`pairs`, `candidateTypes`) and `TransportFailed` (`pairs`). `ErrorCode` is the union of those tags. A `PolicyFailure` reason is a `Refusal` such as `QueueFull`, `SessionRecovering` or `Busy`, `Missing` with the request field whose clip has no known owner, or `Sequence` with the sequence's code.
|
|
86
|
+
|
|
87
|
+
`context.outcome` says whether the remote may have applied the request: `not-submitted`, `unknown` or `replied`. A `PolicyFailure`'s outcome is always `not-submitted`, so an `EngineError = CommandFailure | PolicyFailure` is read without narrowing. `isRetryable` is true for local backpressure, a connection lost before dispatch, an HTTP refusal that names a delay, and the `QueueFull` and `SessionRecovering` refusals, and never when the outcome is `unknown`; `retryAfter` is the delay an `Http` reason named.
|
|
88
|
+
|
|
89
|
+
```ts
|
|
90
|
+
const admission = (failure: EngineError) =>
|
|
91
|
+
failure.context.outcome === "unknown" ? "reconcile" : failure.isRetryable ? "defer" : "reject";
|
|
92
|
+
|
|
93
|
+
const enqueued = engine.enqueue(request).pipe(
|
|
94
|
+
Effect.catchReasons("PolicyFailure", {
|
|
95
|
+
QueueFull: () => Effect.succeed("wait for a free generation slot"),
|
|
96
|
+
SessionRecovering: () => Effect.succeed("wait for the session to recover"),
|
|
97
|
+
}),
|
|
98
|
+
);
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
`message` is written by the library and never contains provider or payload text, so spans and logs that record it stay payload-free. Provider and backend text is kept only for explicit inspection: `Http.body`, `Remote.body`, the Redacted `Native.backendMessage` and `context.detail`. Diagnostic JSON leaves all of them out, and none of them is part of the cause chain that exporters render.
|
|
102
|
+
|
|
103
|
+
## Tracing
|
|
104
|
+
|
|
105
|
+
The client traces through Effect's `Tracer`, so any tracer the application provides, such as `OtlpTracer`, receives its spans. An operation a caller can cancel has a client span at the call: `reactor.session.create` and `reactor.session.attach`, `reactor.session.connect` and `reactor.session.reconnect` (with an event per phase, from `reactor.connect.described` to `reactor.connect.ready`), `reactor.session.upload` and `reactor.session.close`, and in orchestration `reactor.orchestration.renewal.open`, `recover`, `replace` and `switch`. A request the session owns past its caller's wait, a command or control request (`reactor.session.command`, `reactor.session.control`) or an H3 enqueue (`reactor.h3.enqueue`, with `reactor.h3.reconcile`), has its span on its own execution, so the span ends with the request's outcome even after the caller stopped waiting. Termination returns a verdict rather than failing, so `reactor.coordinator.terminate` and `reactor.session.close` carry it as `reactor.termination.attempted`, `confirmed` and `evidence`: a span that ended without error does not mean a paid session stopped. Spans name identity and outcome only: never a credential, command input, a reply, an upload's name or bytes, or provider text. The renewal tick, frames, streams and heartbeats are not traced.
|
|
106
|
+
|
|
107
|
+
## Time options
|
|
108
|
+
|
|
109
|
+
Every time option is an Effect `Duration.Input` named by its role:
|
|
110
|
+
|
|
111
|
+
- on the session, `connectTimeout`, `readyTimeout`, `heartbeatInterval`, `replyTimeout` and `uploadTimeout`;
|
|
112
|
+
- on the coordinator, `requestTimeout` and the poll's `initialDelay` and `maxDelay`, and on a token, `maxSessionDuration` and `expiresAfter`, which must be whole seconds;
|
|
113
|
+
- on H3, `replyTimeout`, `uploadTimeout`, `setupTimeout`, `reconcileWindow` and `resultHookTimeout`;
|
|
114
|
+
- in orchestration, `lead`, `reconnectTimeout` and the `lifetime` that `open` returns.
|
|
115
|
+
|
|
116
|
+
A bare number is milliseconds, as everywhere in Effect, so write the unit: `lead: "30 seconds"`, because `lead: 30` is 30 milliseconds. `"Infinity"` disables the heartbeat and marks a source that never expires. A value that is NaN, negative, zero where zero means nothing, or longer than the option's maximum fails with `InvalidInput`, not submitted. Measurements, instants and media lengths stay numbers in the unit their name carries: `requestRecordingClip(seconds)`, `ClipRequest.durationSeconds`, a renewal's `ageSeconds`.
|
|
117
|
+
|
|
118
|
+
`replyTimeout` is the session's own deadline for a reply. The session's default and a command's override share the key: `session.command(name, data, { uploads, replyTimeout })`. It is not a caller's wait. After dispatch it fails with `Timeout`, outcome `unknown`, and the command's `requestId`, and the request's slot stays held until a late reply or the connection generation retires. To stop waiting without abandoning the command, fork it and bound only the join:
|
|
119
|
+
|
|
120
|
+
```ts
|
|
121
|
+
const fiber = yield * Effect.forkScoped(session.command("set_seed", { seed: 1 }));
|
|
122
|
+
const reply = yield * Fiber.join(fiber).pipe(Effect.timeout("2 seconds"));
|
|
123
|
+
// Later, Fiber.await(fiber) still reads the command's own outcome.
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
When the command must be replayed rather than awaited, prepare it as an `Orchestration.Submission`.
|
|
127
|
+
|
|
128
|
+
## Coordinator helpers
|
|
129
|
+
|
|
130
|
+
`Coordinator` is a namespace on the root export. `Coordinator.make(configuration)` provides pricing, bounded token minting, session inspection, termination reports, and `downloadClip` for a prepared recording (`clip_ready`), which polls its HLS playlist and concatenates its segments within a caller wall deadline, through Effect HTTP services. Constructing this client makes no network request and requires no peer implementation. The root exports the Schemas the client decodes a session descriptor with, `SessionDescriptor`, `Capabilities`, `Track` and `Mapping`, and derives their types from them.
|
|
131
|
+
|
|
132
|
+
## H3 provider
|
|
133
|
+
|
|
134
|
+
`H3.make(session, options)` consumes an already connected canonical `Session`. It checks the deployment contract and exposes provider state, queue and clip messages, observations, command replies, and locally correlated acceptance evidence. Provider facts remain visible even when another client authored the clip. A command ACK establishes receipt; state changes require the corresponding model evidence.
|
|
135
|
+
|
|
136
|
+
```ts
|
|
137
|
+
import { Effect } from "effect";
|
|
138
|
+
import type { Session } from "reactor-effect-client";
|
|
139
|
+
import * as H3 from "reactor-effect-client/h3";
|
|
140
|
+
|
|
141
|
+
const enqueueClip = (session: Session) =>
|
|
142
|
+
Effect.gen(function* () {
|
|
143
|
+
const provider = yield* H3.make(session);
|
|
144
|
+
return yield* provider.enqueue({
|
|
145
|
+
prompt: "A slow camera move through a sunlit garden",
|
|
146
|
+
seconds: 5,
|
|
147
|
+
});
|
|
148
|
+
});
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
Use a session created with `H3.modelName`. The adapter targets the documented `0.5.5` prompt-and-images subset of `reactor/h3-reference-to-video-turbo-realtime`. Prompt-only requests are supported. Image references accept owned bytes or explicit upload references; H3 itself requires no filesystem or path services. Reference-audio input is unsupported, and FastH3 `startingFrame`/`endingFrame` fields are absent from this contract.
|
|
152
|
+
|
|
153
|
+
`provider.operation(submission)` keeps a committed clip's facts for as long as its scope holds them: `accepted`, `reached("generated" | "started")` and `ended` each resolve once, every fact naming the transport generation of its evidence, and a clip that fails or is popped first fails the phases it never reached with `ClipEnded`. Evidence arriving after the reconcile window, or in a later transport generation of the same session, still attributes an unknown enqueue. A commit reserves the operation's slot before it sends, so a table full of unresolved operations refuses new commits with `Overflow` instead of discarding evidence; releasing the scope frees the slot.
|
|
154
|
+
|
|
155
|
+
The adapter exposes autoplay, flush, playback, reset, and other model controls as explicit operations. Creating it does not change those policies or initiate reconnect. Request `metadata` is a provider string; orchestration keeps its richer application annotation separately.
|
|
156
|
+
|
|
157
|
+
## Orchestration and simulation
|
|
158
|
+
|
|
159
|
+
`reactor-effect-client/orchestration` owns opt-in scheduling, sequence routing, renewal, and recovering media. `fromH3Session(session, options)` builds a physical source from one connected session, deriving its H3 provider view (exposed as `source.provider`) and its decoded media from that session, so a source cannot pair one session's commands with another's media; it needs a host with decoded media (the native host), and `make({ open, ...options })` returns a handle with `engine`, `media`, `mediaState`, sequence operations, and joined cleanup reports. The `open` effect supplies each source and its lifetime budget. `openH3({ mint, onAllocated })` is that effect for paid H3 sessions: it mints the token, allocates the session, runs `onAllocated({ session, grant })` before connecting so the owner can be recorded durably, then connects and derives the source, with the granted length as its lifetime. `Orchestration.layer(options)` provides the handle's `Engine`, `Media` and `Handle` services from one orchestration; each build opens its own paid chain, so bind the layer to a `const`. `engine.observe(options)` is the engine's gap-free observation, as `session.observe` and `provider.observe` are for theirs: it subscribes before reading, returning the current `EngineState` with a stream of every later event (apply events idempotently by `clipId`; after an `Overflow`, observe again). `handle.observe(options)` extends it to the whole handle: the engine and media state, then engine events, renewals and media-state transitions in the one order they happened. `onRenewal` runs on its own reader and never holds the handle's command permit, and the orchestration logs through Effect's logger at debug level. Application scheduling, pricing, persona, and show policy stay outside the session and H3 layers.
|
|
160
|
+
|
|
161
|
+
`ClipRequest.sameSessionAs` targets the physical session that owns a known clip, including one already ready or playing, while leaving queue position unchanged. `before` requests insertion ahead of a clip still in the generation queue. Source affinity, insertion anchors, continuation, and sequence ownership must agree; missing, conflicting, retired, or recovering ownership fails locally with a `not-submitted` outcome. This keeps a dependent request on its required session during renewal without inventing an insertion point.
|
|
162
|
+
|
|
163
|
+
`Orchestration.Submission` models an inert prepared operation. Preparation may be interrupted before commit; once execution commits, callers joining or abandoning the result do not replay the dispatch. `CommandFailure.context` distinguishes `not-submitted`, `unknown`, and `replied` outcomes independently of the transport error category, and an engine command fails with `EngineError`, a `CommandFailure` or a local `PolicyFailure`.
|
|
164
|
+
|
|
165
|
+
`Orchestration.Sequences` owns bounded sequence affinity and explicit member outcomes. Partial admission is represented member-by-member as accepted, rejected, or indeterminate, and a sequence remains bound to one owner until it is sealed/retired and explicitly released.
|
|
166
|
+
|
|
167
|
+
`reactor-effect-client/simulation` provides `make` and `layerSim` over the same orchestration engine and media contracts. Its source and renderer hooks support unpaid local execution and controlled failures. Reusable fault and image fixtures are available through the separate `reactor-effect-client/testing` entry point.
|
|
168
|
+
|
|
169
|
+
## Wire module
|
|
170
|
+
|
|
171
|
+
`reactor-effect-client/wire` is generated from the tracked canonical protocol sources under [`wire/`](./wire/README.md) by `wire/generate.py` (CPython 3.13, standard library only). `bun run generate:check` fails on any byte difference; `bun run generate:wire` rewrites the module. Do not format the generated file or edit it independently of its inputs.
|
|
172
|
+
|
|
173
|
+
## Declarations without DOM types
|
|
174
|
+
|
|
175
|
+
Effect `4.0.0-rc.115` itself references the global `TextDecoderOptions` type in its channel declarations. A strict Node project that deliberately omits DOM types may need to declare that standard interface. The workspace's installed-package check first proves this is the sole upstream diagnostic, then applies a test-only declaration; it does not enable `skipLibCheck` or hide SDK declaration errors.
|
|
176
|
+
|
|
177
|
+
## Development
|
|
178
|
+
|
|
179
|
+
This package is built and tested from the workspace root; see the repository [CONTRIBUTING](https://github.com/mannyc2/reactor-effect-client/blob/main/CONTRIBUTING.md). Inside `packages/client`, `bun run test` runs the portable suite under Vitest and `bun run typecheck` checks the source closure both with browser types and with Node types.
|
|
180
|
+
|
|
181
|
+
## License
|
|
182
|
+
|
|
183
|
+
Apache-2.0. Third-party and derived-source notices are retained in [NOTICE](./NOTICE) and [`notices/`](./notices/).
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as Layer from "effect/Layer";
|
|
2
|
+
import * as HttpClient from "effect/unstable/http/HttpClient";
|
|
3
|
+
/**
|
|
4
|
+
* A Fetch implementation of Effect's HttpClient. The small response adaptation
|
|
5
|
+
* owns both cancellation and reader-lock release, and preserves an empty body
|
|
6
|
+
* as zero bytes. Applications may supply another HttpClient implementation.
|
|
7
|
+
*/
|
|
8
|
+
export declare const layer: Layer.Layer<HttpClient.HttpClient, never, never>;
|
|
9
|
+
//# sourceMappingURL=FetchHttp.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FetchHttp.d.ts","sourceRoot":"","sources":["../src/FetchHttp.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAEtC,OAAO,KAAK,UAAU,MAAM,iCAAiC,CAAC;AAO9D;;;;GAIG;AACH,eAAO,MAAM,KAAK,kDA+DjB,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import * as Effect from "effect/Effect";
|
|
2
|
+
import * as Layer from "effect/Layer";
|
|
3
|
+
import * as Stream from "effect/Stream";
|
|
4
|
+
import * as HttpClient from "effect/unstable/http/HttpClient";
|
|
5
|
+
import * as HttpClientError from "effect/unstable/http/HttpClientError";
|
|
6
|
+
import * as HttpClientResponse from "effect/unstable/http/HttpClientResponse";
|
|
7
|
+
import * as FetchHttpClient from "effect/unstable/http/FetchHttpClient";
|
|
8
|
+
import { fromOwnedReadableStream } from "./media-stream.js";
|
|
9
|
+
import { ReactorError } from "./errors.js";
|
|
10
|
+
/**
|
|
11
|
+
* A Fetch implementation of Effect's HttpClient. The small response adaptation
|
|
12
|
+
* owns both cancellation and reader-lock release, and preserves an empty body
|
|
13
|
+
* as zero bytes. Applications may supply another HttpClient implementation.
|
|
14
|
+
*/
|
|
15
|
+
export const layer = Layer.effect(HttpClient.HttpClient, Effect.gen(function* () {
|
|
16
|
+
const fetch = yield* FetchHttpClient.Fetch;
|
|
17
|
+
return HttpClient.make((request, url, signal) => {
|
|
18
|
+
const send = (body) => Effect.tryPromise({
|
|
19
|
+
try: () => fetch(url, {
|
|
20
|
+
method: request.method,
|
|
21
|
+
headers: request.headers,
|
|
22
|
+
...(body === undefined ? {} : { body }),
|
|
23
|
+
signal,
|
|
24
|
+
credentials: "omit",
|
|
25
|
+
redirect: "error",
|
|
26
|
+
// Node requires this option for streaming request bodies. It is ignored
|
|
27
|
+
// by browsers, and is not part of the portable coordinator contract.
|
|
28
|
+
...(body instanceof ReadableStream ? { duplex: "half" } : {}),
|
|
29
|
+
}),
|
|
30
|
+
catch: (cause) => new HttpClientError.HttpClientError({
|
|
31
|
+
reason: new HttpClientError.TransportError({ request, cause }),
|
|
32
|
+
}),
|
|
33
|
+
}).pipe(Effect.map((source) => {
|
|
34
|
+
const response = HttpClientResponse.fromWeb(request, source);
|
|
35
|
+
const stream = source.body === null
|
|
36
|
+
? Stream.empty
|
|
37
|
+
: fromOwnedReadableStream({
|
|
38
|
+
evaluate: () => source.body,
|
|
39
|
+
onError: (cause) => ReactorError.fromCode("Http", "HTTP response body failed", { detail: cause }),
|
|
40
|
+
}).pipe(Stream.mapError((cause) => new HttpClientError.HttpClientError({
|
|
41
|
+
reason: new HttpClientError.DecodeError({ request, response, cause }),
|
|
42
|
+
})));
|
|
43
|
+
// Retain the official response's public accessors and identity; only its
|
|
44
|
+
// stream owns the additional reader-release contract.
|
|
45
|
+
return Object.create(response, {
|
|
46
|
+
stream: { get: () => stream },
|
|
47
|
+
});
|
|
48
|
+
}));
|
|
49
|
+
switch (request.body._tag) {
|
|
50
|
+
case "Raw":
|
|
51
|
+
return send(request.body.body);
|
|
52
|
+
case "Uint8Array":
|
|
53
|
+
return send(new Uint8Array(request.body.body));
|
|
54
|
+
case "FormData":
|
|
55
|
+
return send(request.body.formData);
|
|
56
|
+
case "Stream":
|
|
57
|
+
return Stream.toReadableStreamEffect(request.body.stream).pipe(Effect.flatMap(send));
|
|
58
|
+
default:
|
|
59
|
+
return send(undefined);
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
}));
|
|
63
|
+
//# sourceMappingURL=FetchHttp.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FetchHttp.js","sourceRoot":"","sources":["../src/FetchHttp.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,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ACf,OAAO,IAAI,CAAC,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;YACjD,KAAK,UAAU;gBACb,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YACrC,KAAK,QAAQ;gBACX,OAAO,MAAM,CAAC,sBAAsB,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;YACvF;gBACE,OAAO,IAAI,CAAC,SAAS,CAAC,CAAC;QAC3B,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CACH,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as Context from "effect/Context";
|
|
2
|
+
import type * as Effect from "effect/Effect";
|
|
3
|
+
import type { Peer } from "./PeerTypes.js";
|
|
4
|
+
import type { ReactorError } from "./errors.js";
|
|
5
|
+
/**
|
|
6
|
+
* A host's transport capability. A host resolves and validates what it needs
|
|
7
|
+
* while its layer is built, so building the layer is the host preflight and
|
|
8
|
+
* `make` never depends on another call having run first.
|
|
9
|
+
*/
|
|
10
|
+
export interface PeerFactoryShape {
|
|
11
|
+
/** A fresh transport for each connection generation. No Reactor orchestration. */
|
|
12
|
+
readonly make: () => Peer;
|
|
13
|
+
/**
|
|
14
|
+
* Fails when the host cannot create a peer right now, for example while a
|
|
15
|
+
* native runtime still holds an owner that did not join. The session factory
|
|
16
|
+
* runs it before every remote allocation, so a paid session is never
|
|
17
|
+
* allocated for a peer that cannot be made. It must not change what `make`
|
|
18
|
+
* does; a host with nothing to check omits it.
|
|
19
|
+
*/
|
|
20
|
+
readonly check?: Effect.Effect<void, ReactorError> | undefined;
|
|
21
|
+
}
|
|
22
|
+
declare const PeerFactory_base: Context.ServiceClass<PeerFactory, "reactor-effect-client/PeerFactory", PeerFactoryShape>;
|
|
23
|
+
export declare class PeerFactory extends PeerFactory_base {
|
|
24
|
+
}
|
|
25
|
+
export type { Peer, PeerEvent, Prepared, Channel } from "./PeerTypes.js";
|
|
26
|
+
//# sourceMappingURL=PeerFactory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PeerFactory.d.ts","sourceRoot":"","sources":["../src/PeerFactory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,KAAK,MAAM,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B,kFAAkF;IAClF,QAAQ,CAAC,IAAI,EAAE,MAAM,IAAI,CAAC;IAC1B;;;;;;OAMG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,YAAY,CAAC,GAAG,SAAS,CAAC;CAChE;;AAED,qBAAa,WAAY,SAAQ,gBAEhC;CAAG;AAEJ,YAAY,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PeerFactory.js","sourceRoot":"","sources":["../src/PeerFactory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAuB1C,MAAM,OAAO,WAAY,SAAQ,OAAO,CAAC,OAAO,EAAiC,CAC/E,mCAAmC,CACpC;CAAG"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import type * as Effect from "effect/Effect";
|
|
2
|
+
import type * as Scope from "effect/Scope";
|
|
3
|
+
import type { ReactorError } from "./errors.js";
|
|
4
|
+
import type { IceCandidate, IceServer, Mapping, Track } from "./contract.js";
|
|
5
|
+
import type { RawMedia } from "./session/media.js";
|
|
6
|
+
export type Channel = "control" | "data";
|
|
7
|
+
export type PeerState = "new" | "connecting" | "connected" | "disconnected" | "failed" | "closed";
|
|
8
|
+
/** Minimal track lifetime contract. Native peers expose owned frames instead. */
|
|
9
|
+
export interface MediaTrack {
|
|
10
|
+
readonly kind: string;
|
|
11
|
+
readonly readyState: "live" | "ended";
|
|
12
|
+
clone(): MediaTrack;
|
|
13
|
+
stop(): void;
|
|
14
|
+
}
|
|
15
|
+
export type PeerEvent = {
|
|
16
|
+
readonly type: "state";
|
|
17
|
+
readonly state: PeerState;
|
|
18
|
+
} | {
|
|
19
|
+
readonly type: "channel";
|
|
20
|
+
readonly channel: Channel;
|
|
21
|
+
readonly open: boolean;
|
|
22
|
+
} | {
|
|
23
|
+
readonly type: "message";
|
|
24
|
+
readonly channel: Channel;
|
|
25
|
+
readonly bytes: Uint8Array;
|
|
26
|
+
} | {
|
|
27
|
+
readonly type: "ice";
|
|
28
|
+
readonly candidate?: IceCandidate;
|
|
29
|
+
} | {
|
|
30
|
+
readonly type: "track";
|
|
31
|
+
readonly name: string;
|
|
32
|
+
readonly mid: string;
|
|
33
|
+
} | {
|
|
34
|
+
readonly type: "decoded";
|
|
35
|
+
readonly kind: "video" | "audio";
|
|
36
|
+
readonly name: string;
|
|
37
|
+
readonly mid: string;
|
|
38
|
+
} | {
|
|
39
|
+
readonly type: "error";
|
|
40
|
+
readonly error: ReactorError;
|
|
41
|
+
};
|
|
42
|
+
export interface Prepared {
|
|
43
|
+
readonly sdp: string;
|
|
44
|
+
readonly mapping: readonly Mapping[];
|
|
45
|
+
}
|
|
46
|
+
/** Transport only. Coordinator allocation and Reactor protocol state remain session-owned. */
|
|
47
|
+
export interface Peer {
|
|
48
|
+
readonly rawMedia?: RawMedia;
|
|
49
|
+
readonly shutdown?: Effect.Effect<void, ReactorError>;
|
|
50
|
+
readonly nativeTracks?: boolean;
|
|
51
|
+
readonly mediaSupported?: boolean;
|
|
52
|
+
prepare(servers: readonly IceServer[], tracks: readonly Track[], emit: (event: PeerEvent) => void): Effect.Effect<Prepared, ReactorError, Scope.Scope>;
|
|
53
|
+
answer(sdp: string): Effect.Effect<void, ReactorError>;
|
|
54
|
+
/** Local submission/transport acknowledgement is never a Reactor application reply. */
|
|
55
|
+
send(channel: Channel, bytes: Uint8Array<ArrayBuffer>): Effect.Effect<void, ReactorError>;
|
|
56
|
+
close(): void;
|
|
57
|
+
lease(name: string): MediaTrack;
|
|
58
|
+
release(track: MediaTrack): void;
|
|
59
|
+
direction(name: string, active: boolean): Effect.Effect<void, ReactorError>;
|
|
60
|
+
replace(name: string, track: MediaTrack | null): Effect.Effect<void, ReactorError>;
|
|
61
|
+
maxBitrate(name: string, bitsPerSecond: number): Effect.Effect<void, ReactorError>;
|
|
62
|
+
readonly stats: Effect.Effect<readonly unknown[], ReactorError>;
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=PeerTypes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PeerTypes.d.ts","sourceRoot":"","sources":["../src/PeerTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAK,KAAK,KAAK,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC7E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEnD,MAAM,MAAM,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;AACzC,MAAM,MAAM,SAAS,GAAG,KAAK,GAAG,YAAY,GAAG,WAAW,GAAG,cAAc,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAElG,iFAAiF;AACjF,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,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