@standardagents/code-web 0.14.54-canary.867506 → 0.14.56-canary.067fe1
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/README.md +9 -1
- package/dist/build.json +1 -1
- package/dist/licenses/jco-transpile.txt +220 -0
- package/dist/manifest.json +1 -1
- package/dist/manifest.sig +1 -1
- package/dist/pkg/standard_web.d.ts +57 -12
- package/dist/pkg/standard_web.js +314 -20
- package/dist/pkg/standard_web_bg.wasm +0 -0
- package/dist/pkg/standard_web_bg.wasm.d.ts +18 -12
- package/dist/plugins/clock-cells/clock_cells.core.wasm +0 -0
- package/dist/plugins/clock-cells/clock_cells.wasm +0 -0
- package/dist/plugins/clock-cells/standard-plugin.json +11 -0
- package/dist/plugins/host/transpile.js +51 -0
- package/dist/plugins/host/ui-jspi.js +14851 -0
- package/dist/plugins/host/ui.core2.wasm +0 -0
- package/dist/plugins/host/ui.core3.wasm +0 -0
- package/dist/plugins/host/ui.js +14675 -0
- package/dist/plugins/host/world.js +172 -0
- package/dist/plugins/jco/cli.js +141 -0
- package/dist/plugins/jco/common.js +16 -0
- package/dist/plugins/jco/config.js +7 -0
- package/dist/plugins/jco/environment.js +24 -0
- package/dist/plugins/jco/filesystem.js +339 -0
- package/dist/plugins/jco/in-memory-filesystem.js +620 -0
- package/dist/plugins/jco/io.js +366 -0
- package/dist/plugins/jco/js-component-bindgen-component.core.wasm +0 -0
- package/dist/plugins/jco/js-component-bindgen-component.core2.wasm +0 -0
- package/dist/plugins/jco/js-component-bindgen-component.js +14272 -0
- package/dist/plugins/jco/opfs-filesystem.js +245 -0
- package/dist/plugins/jco/random.js +51 -0
- package/dist/plugins/plasma-pixels/plasma_pixels.core.wasm +0 -0
- package/dist/plugins/plasma-pixels/plasma_pixels.wasm +0 -0
- package/dist/plugins/plasma-pixels/standard-plugin.json +11 -0
- package/dist/plugins/runtime.js +1044 -0
- package/dist/plugins/samples.json +81 -0
- package/dist/plugins/worker.js +411 -0
- package/package.json +8 -2
package/README.md
CHANGED
|
@@ -31,6 +31,8 @@ dist/pkg/standard_web.d.ts its types
|
|
|
31
31
|
dist/pkg/standard_web_bg.wasm the module
|
|
32
32
|
dist/fonts/*.ttf JetBrains Mono Nerd Font (Mono): Regular, Bold, Italic, BoldItalic
|
|
33
33
|
dist/licenses/*.txt font licenses (OFL 1.1; Nerd Fonts patch MIT)
|
|
34
|
+
dist/plugins/ the plugin Worker (worker.js, runtime.js), samples.json, and the
|
|
35
|
+
sample plugins' components and jco-transpiled browser artifacts
|
|
34
36
|
dist/build.json {schema, commit, version} of the native build
|
|
35
37
|
dist/manifest.json signed schema-4 `standard-npm-web-target-v1` manifest: every file above with size and sha256
|
|
36
38
|
dist/manifest.sig its Ed25519 signature
|
|
@@ -92,7 +94,13 @@ connect-src 'self' wss://relay.standardcode.ai; worker-src 'self';
|
|
|
92
94
|
object-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'
|
|
93
95
|
```
|
|
94
96
|
|
|
95
|
-
plus `Cross-Origin-Opener-Policy: same-origin
|
|
97
|
+
plus `Cross-Origin-Opener-Policy: same-origin` and, so plugin surfaces
|
|
98
|
+
share their buffers, `Cross-Origin-Embedder-Policy: require-corp` (the
|
|
99
|
+
runtime falls back to transferring buffers when the page is not
|
|
100
|
+
cross-origin isolated). The plugin Worker scripts under `plugins/` need
|
|
101
|
+
`script-src 'self' 'wasm-unsafe-eval'; connect-src 'self'` and, for an
|
|
102
|
+
isolated page, COEP `require-corp` on their own responses. See
|
|
103
|
+
`docs/plugin-runtime.md`, "The browser runtime". `Session` takes the URL it
|
|
96
104
|
reads the relay issuer keys from; the preview passes `/relay-keys` on its own
|
|
97
105
|
origin and `scripts/serve.mjs` proxies it, so a site proxies that endpoint the
|
|
98
106
|
same way.
|
package/dist/build.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"schema":1,"commit":"
|
|
1
|
+
{"schema":1,"commit":"067fe153ed992200165e0319e7b86c4b71b94951","version":"0.14.56-canary.067fe1"}
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
--- LLVM Exceptions to the Apache 2.0 License ----
|
|
206
|
+
|
|
207
|
+
As an exception, if, as a result of your compiling your source code, portions
|
|
208
|
+
of this Software are embedded into an Object form of such source code, you
|
|
209
|
+
may redistribute such embedded portions in such Object form without complying
|
|
210
|
+
with the conditions of Sections 4(a), 4(b) and 4(d) of the License.
|
|
211
|
+
|
|
212
|
+
In addition, if you combine or link compiled forms of this Software with
|
|
213
|
+
software that is licensed under the GPLv2 ("Combined Software") and if a
|
|
214
|
+
court of competent jurisdiction determines that the patent provision (Section
|
|
215
|
+
3), the indemnity provision (Section 9) or other Section of the License
|
|
216
|
+
conflicts with the conditions of the GPLv2, you may retroactively and
|
|
217
|
+
prospectively choose to deem waived or otherwise exclude such Section(s) of
|
|
218
|
+
the License, but only in their entirety and only with respect to the Combined
|
|
219
|
+
Software.
|
|
220
|
+
|
package/dist/manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"schema":4,"format":"standard-npm-web-target-v1","repository":"standardagents/code-rs","commit":"
|
|
1
|
+
{"schema":4,"format":"standard-npm-web-target-v1","repository":"standardagents/code-rs","commit":"067fe153ed992200165e0319e7b86c4b71b94951","version":"0.14.56-canary.067fe1","target":"wasm32-unknown-unknown","signing":{"algorithm":"ed25519","keyId":"team-2026-1","platformCodeSignature":"ed25519-only"},"files":[{"path":"build.json","size":99,"sha256":"997327fb23360e6d331b3ee5248186ba780acaf5e5534272c9518e444e4489fb"},{"path":"fonts/JetBrainsMonoNerdFontMono-Bold.ttf","size":2473884,"sha256":"5bdd4a873f3cd32f882d2c55545089123926e27707d5880fc9eaf84eb01b6686"},{"path":"fonts/JetBrainsMonoNerdFontMono-BoldItalic.ttf","size":2475144,"sha256":"d931df2928b3216892d35980cddcad9edade1b9c9cd2e09a6c2937139f474742"},{"path":"fonts/JetBrainsMonoNerdFontMono-Italic.ttf","size":2472232,"sha256":"ccd88b36d325e6a905edc8dd3f2522718d9690d9bed3fbb4684c7e746c34f846"},{"path":"fonts/JetBrainsMonoNerdFontMono-Regular.ttf","size":2470116,"sha256":"f01031f40e48dc29e1112e6b0b0450a2c6cd097f3f35cfff05c55cb311f8034c"},{"path":"licenses/JetBrainsMono-OFL.txt","size":4413,"sha256":"add1f8a9fd7ff33c923114eede3a6fb5a6254dc5b59f031fa59feed8a4f0938a"},{"path":"licenses/NerdFonts-MIT.txt","size":1456,"sha256":"b880baeed54757299e39e404743837a8f4d375828cab87b46ac55126160b237d"},{"path":"licenses/jco-transpile.txt","size":12243,"sha256":"268872b9816f90fd8e85db5a28d33f8150ebb8dd016653fb39ef1f94f2686bc5"},{"path":"pkg/standard_web.d.ts","size":9290,"sha256":"323767ba97ac2fe6e3af13e5c7bda870d64e49993ededb6fbafb24c804db7c1a"},{"path":"pkg/standard_web.js","size":69413,"sha256":"719f1e98daafd02cbe438fb86900768d6614b5d01f1101f19bea4116fb0253d0"},{"path":"pkg/standard_web_bg.wasm","size":7628401,"sha256":"7d046d2e4af511e02dc93039e114bf1c1aaf163ad2265d693a58717baf6d97fe"},{"path":"pkg/standard_web_bg.wasm.d.ts","size":3238,"sha256":"998dabdebc2bcdd8d6fe18120b36af05733de4a6f65765a2c9391270ae07147f"},{"path":"plugins/clock-cells/clock_cells.core.wasm","size":66772,"sha256":"0b5a63093b09137d0d3914649918d4ea4c36a0572baed20359a169e585b03c93"},{"path":"plugins/clock-cells/clock_cells.wasm","size":70029,"sha256":"ea10fc63cfd2c511ddaf3e7fc0a9b96f6117c75e35a3486cc344ea11ae48fb8f"},{"path":"plugins/clock-cells/standard-plugin.json","size":230,"sha256":"c0a02a1257bf24af47d1fab5d0dabd74882ec8d7dd07977ec95f15caf406515c"},{"path":"plugins/host/transpile.js","size":2231,"sha256":"b020345ecc9845373583a2e74ea640e8ff2e5cf89429ba3a18dcbd35aa6a3231"},{"path":"plugins/host/ui-jspi.js","size":478587,"sha256":"24e6e96752a139da58b703f6b2ae7551ae011783ed6ca895cf343e1a355da8e9"},{"path":"plugins/host/ui.core2.wasm","size":993,"sha256":"f3b18532f5fa5f5e31522891929d243dd383df225120106933cce6b7b31960c0"},{"path":"plugins/host/ui.core3.wasm","size":703,"sha256":"7ec25df2026c03fdd7c51abe4522e357d5888c0b2ba4b45cf8bf502275da1c60"},{"path":"plugins/host/ui.js","size":473389,"sha256":"24c4ba57a14d27d8fda334210c4b5225f1b196ed43f8680442954f07080294ba"},{"path":"plugins/host/world.js","size":7720,"sha256":"e8d9103d492b46201fb9a3d9344cb372f8bfeb048c97bf9a2682643bfb2a26ed"},{"path":"plugins/jco/cli.js","size":3928,"sha256":"1be414c1be5805417b721d522e20effa58ceb25c6079b930130204974476bc0a"},{"path":"plugins/jco/common.js","size":608,"sha256":"13f126e02c3d50f82a49b132837aa588600fc907321141d535e7c4a7e7ee0290"},{"path":"plugins/jco/config.js","size":112,"sha256":"40c60a11b1841f461436b11a2ff3318feac4a496bb18a0688a3980e15cff181d"},{"path":"plugins/jco/environment.js","size":463,"sha256":"4b9daf18432ded5e09367ead23abcb5e85bb49ae6fa3b25bc24b8d6ddc7bf1e1"},{"path":"plugins/jco/filesystem.js","size":11099,"sha256":"40b57ec8c13c4d7966e29741cf01ddfa3e66aa94c6179d5aadaa4a0b0233ca67"},{"path":"plugins/jco/in-memory-filesystem.js","size":21314,"sha256":"0872da9d62b2a9d3653a30bc56d0065ce2730752411c9a7b39facbbaf8315441"},{"path":"plugins/jco/io.js","size":10836,"sha256":"fd078daff36bf8fa68c03c8de3c06e54b74a62207838f076d8e48c603879606e"},{"path":"plugins/jco/js-component-bindgen-component.core.wasm","size":3479967,"sha256":"aa0681475ab02fa5a9ad05aa1ce5e700f9f8da0a9986b973c968545ad4816fa2"},{"path":"plugins/jco/js-component-bindgen-component.core2.wasm","size":14120,"sha256":"280fbf3d86c902fbf15419b9f95cf92b50778514d50bc0c06c11d3ae012296f6"},{"path":"plugins/jco/js-component-bindgen-component.js","size":452801,"sha256":"6932aca804a3cdeff51c3e747080cea640646b8c08a37c263f204a52447a096c"},{"path":"plugins/jco/opfs-filesystem.js","size":8949,"sha256":"fe98f84947ec9ae9f0a7e1ad6fa88148c44b4801ac7e48d4d17d0ee3814a48d8"},{"path":"plugins/jco/random.js","size":1942,"sha256":"0f70a30c6e57f3b253e3a8c13c6b8b01947e40596266df8406d31bd7989f27cd"},{"path":"plugins/plasma-pixels/plasma_pixels.core.wasm","size":37606,"sha256":"7a1e7f12bab8d134c9afc711aa8049c660e811c014127f9a015efd43a3bbfd0e"},{"path":"plugins/plasma-pixels/plasma_pixels.wasm","size":40863,"sha256":"510bc5da1df0dcfded353884e0b7497edff85a14b89ead19060e22b70ec4871c"},{"path":"plugins/plasma-pixels/standard-plugin.json","size":216,"sha256":"5f1b94853aaa5fd6103d458e391452325e8fd537ad22bf5e1eb439106dc56de1"},{"path":"plugins/runtime.js","size":42091,"sha256":"616052d38a061335c612f6447b232370e2e9e58223da1256e1df606137808aec"},{"path":"plugins/samples.json","size":2116,"sha256":"ec91bda0f2367c4b9a991f4bc257ffc5cee2ab7eda95e1e6a053910e5aedef3b"},{"path":"plugins/worker.js","size":14777,"sha256":"305db7548c1c25ab606dabf8e0831cb6612ea7345d3f63399e2a9da6cbb4944c"}]}
|
package/dist/manifest.sig
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
79eU3ptwfrMXb6Ys8oGeff63RkmAHdXYrJwB83NndeMPxn5KiPrAqPDn1IF8yo/1bh8tZwWufGCqfNPcfCE6AQ==
|
|
@@ -35,6 +35,12 @@ export class Session {
|
|
|
35
35
|
free(): void;
|
|
36
36
|
[Symbol.dispose](): void;
|
|
37
37
|
columns(): number;
|
|
38
|
+
/**
|
|
39
|
+
* Drives the demo's fake account: `install` packs sample `id` as a new
|
|
40
|
+
* version and installs it (an update when it runs already; returns
|
|
41
|
+
* the package hash), `uninstall` removes it.
|
|
42
|
+
*/
|
|
43
|
+
fake_account(op: string, id: string): string;
|
|
38
44
|
focus(focused: boolean): void;
|
|
39
45
|
/**
|
|
40
46
|
* One animation frame. Returns `true` once the session has ended.
|
|
@@ -55,6 +61,12 @@ export class Session {
|
|
|
55
61
|
*/
|
|
56
62
|
constructor(canvas: HTMLCanvasElement, family: string, font_px: number, api_origin?: string | null, token?: string | null, relay_keys_url?: string | null);
|
|
57
63
|
paste(text: string): void;
|
|
64
|
+
/**
|
|
65
|
+
* The plugin counters since the last call, as JSON, for measurements:
|
|
66
|
+
* per plugin its commits, dirty area and `frame()` calls and time, and
|
|
67
|
+
* the viewer's sampling count and cost.
|
|
68
|
+
*/
|
|
69
|
+
plugin_trace(): string | undefined;
|
|
58
70
|
/**
|
|
59
71
|
* `action` is 0 down, 1 up, 2 move; `x` and `y` are device pixels
|
|
60
72
|
* relative to the canvas.
|
|
@@ -66,6 +78,27 @@ export class Session {
|
|
|
66
78
|
*/
|
|
67
79
|
resize(font_px: number): void;
|
|
68
80
|
rows(): number;
|
|
81
|
+
/**
|
|
82
|
+
* The demo's sample plugins (the site's call before account plugins).
|
|
83
|
+
*/
|
|
84
|
+
start_demo_plugins(base: string, stage?: string | null): void;
|
|
85
|
+
/**
|
|
86
|
+
* The demo viewer with a fake account instead of its samples: the
|
|
87
|
+
* installed-plugin path end to end (packages by hash, verification,
|
|
88
|
+
* the in-viewer transpile, sessions, updates) against a stand-in room
|
|
89
|
+
* that installs only packages it packs from this bundle's own samples
|
|
90
|
+
* ([`Self::fake_account`]). A signed-in session refuses.
|
|
91
|
+
*/
|
|
92
|
+
start_fake_account_plugins(base: string): void;
|
|
93
|
+
/**
|
|
94
|
+
* Runs this session's plugins after the first frame: in the demo the
|
|
95
|
+
* sample plugins this bundle carries, signed in the account's
|
|
96
|
+
* installed plugins. `base` is the bundle root the page loaded this
|
|
97
|
+
* runtime from (the site's verified `/terminal/_web/<version>/`); every
|
|
98
|
+
* Worker, and the reference glue it links through, comes from there.
|
|
99
|
+
* `stage` is a plugin whose stage opens once it is loaded.
|
|
100
|
+
*/
|
|
101
|
+
start_plugins(base: string, stage?: string | null): void;
|
|
69
102
|
/**
|
|
70
103
|
* Text copied since the last call. The page writes it to the system
|
|
71
104
|
* clipboard from inside the event handler that produced it.
|
|
@@ -77,6 +110,12 @@ export class Session {
|
|
|
77
110
|
wheel(delta_x: number, delta_y: number, x: number, y: number, ctrl: boolean, alt: boolean, shift: boolean): void;
|
|
78
111
|
}
|
|
79
112
|
|
|
113
|
+
/**
|
|
114
|
+
* The backend profile this build was signed for, as the signed web
|
|
115
|
+
* manifest's `backendProfile` carries it: `null` for production.
|
|
116
|
+
*/
|
|
117
|
+
export function backend_profile(): string;
|
|
118
|
+
|
|
80
119
|
/**
|
|
81
120
|
* Revokes this browser's machine in the account and discards its stored
|
|
82
121
|
* identity. The page clears the credential and reloads afterwards.
|
|
@@ -98,32 +137,38 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
98
137
|
|
|
99
138
|
export interface InitOutput {
|
|
100
139
|
readonly memory: WebAssembly.Memory;
|
|
101
|
-
readonly __wbg_devicelogin_free: (a: number, b: number) => void;
|
|
102
140
|
readonly __wbg_session_free: (a: number, b: number) => void;
|
|
103
|
-
readonly
|
|
104
|
-
readonly devicelogin_intervalMs: (a: number) => number;
|
|
105
|
-
readonly devicelogin_poll: (a: number) => number;
|
|
106
|
-
readonly devicelogin_start: (a: number, b: number) => number;
|
|
107
|
-
readonly devicelogin_verificationUrl: (a: number, b: number) => void;
|
|
108
|
-
readonly forget_browser: (a: number, b: number, c: number, d: number) => number;
|
|
141
|
+
readonly backend_profile: (a: number) => void;
|
|
109
142
|
readonly link_check: (a: number) => void;
|
|
110
143
|
readonly session_columns: (a: number) => number;
|
|
144
|
+
readonly session_fake_account: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
111
145
|
readonly session_focus: (a: number, b: number, c: number) => void;
|
|
112
146
|
readonly session_frame: (a: number, b: number) => void;
|
|
113
147
|
readonly session_key: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => void;
|
|
114
148
|
readonly session_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
|
|
115
149
|
readonly session_paste: (a: number, b: number, c: number, d: number) => void;
|
|
150
|
+
readonly session_plugin_trace: (a: number, b: number) => void;
|
|
116
151
|
readonly session_pointer: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
117
152
|
readonly session_resize: (a: number, b: number, c: number) => void;
|
|
118
153
|
readonly session_rows: (a: number) => number;
|
|
154
|
+
readonly session_start_demo_plugins: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
155
|
+
readonly session_start_fake_account_plugins: (a: number, b: number, c: number, d: number) => void;
|
|
156
|
+
readonly session_start_plugins: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
119
157
|
readonly session_take_clipboard: (a: number, b: number) => void;
|
|
120
158
|
readonly session_wheel: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
121
159
|
readonly start: () => void;
|
|
122
|
-
readonly
|
|
123
|
-
readonly
|
|
124
|
-
readonly
|
|
125
|
-
readonly
|
|
126
|
-
readonly
|
|
160
|
+
readonly forget_browser: (a: number, b: number, c: number, d: number) => number;
|
|
161
|
+
readonly __wbg_devicelogin_free: (a: number, b: number) => void;
|
|
162
|
+
readonly devicelogin_code: (a: number, b: number) => void;
|
|
163
|
+
readonly devicelogin_intervalMs: (a: number) => number;
|
|
164
|
+
readonly devicelogin_poll: (a: number) => number;
|
|
165
|
+
readonly devicelogin_start: (a: number, b: number) => number;
|
|
166
|
+
readonly devicelogin_verificationUrl: (a: number, b: number) => void;
|
|
167
|
+
readonly __wasm_bindgen_func_elem_10779: (a: number, b: number, c: number, d: number) => void;
|
|
168
|
+
readonly __wasm_bindgen_func_elem_10781: (a: number, b: number, c: number, d: number) => void;
|
|
169
|
+
readonly __wasm_bindgen_func_elem_630: (a: number, b: number, c: number) => void;
|
|
170
|
+
readonly __wasm_bindgen_func_elem_630_2: (a: number, b: number, c: number) => void;
|
|
171
|
+
readonly __wasm_bindgen_func_elem_630_3: (a: number, b: number, c: number) => void;
|
|
127
172
|
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
128
173
|
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
129
174
|
readonly __wbindgen_export3: (a: number) => void;
|