wasm-idle 1.1.2 → 1.3.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.
Files changed (136) hide show
  1. package/README.md +211 -91
  2. package/dist/container/bash-profile.d.ts +80 -0
  3. package/dist/container/bash-profile.js +328 -0
  4. package/dist/{playground/container → container}/binding.d.ts +21 -8
  5. package/dist/{playground/container → container}/binding.js +109 -25
  6. package/dist/{playground/container → container}/clang-runtime.d.ts +11 -7
  7. package/dist/container/clang-runtime.js +561 -0
  8. package/dist/container/client.d.ts +14 -0
  9. package/dist/{playground/container → container}/client.js +2 -6
  10. package/dist/{playground/container → container}/explorer.d.ts +1 -1
  11. package/dist/container/index.d.ts +11 -0
  12. package/dist/container/index.js +11 -0
  13. package/dist/container/owner-worker.d.ts +19 -0
  14. package/dist/container/owner-worker.js +464 -0
  15. package/dist/{playground/container → container}/protocol.d.ts +12 -1
  16. package/dist/{playground/container → container}/runtime-adapter.d.ts +13 -11
  17. package/dist/{playground/container → container}/runtime-adapter.js +104 -41
  18. package/dist/{playground/container → container}/shell-control.d.ts +2 -2
  19. package/dist/{playground/container → container}/shell-control.js +93 -36
  20. package/dist/{playground/container → container}/workspace.d.ts +5 -1
  21. package/dist/index.d.ts +2 -1
  22. package/dist/index.js +1 -0
  23. package/dist/playground/assetBridge.js +5 -2
  24. package/dist/playground/assets.d.ts +8 -0
  25. package/dist/playground/clang.d.ts +5 -1
  26. package/dist/playground/clang.js +61 -5
  27. package/dist/playground/compiledLldb.d.ts +41 -0
  28. package/dist/playground/compiledLldb.js +167 -0
  29. package/dist/playground/d.d.ts +4 -1
  30. package/dist/playground/d.js +78 -9
  31. package/dist/playground/debugDeadline.d.ts +12 -0
  32. package/dist/playground/debugDeadline.js +34 -0
  33. package/dist/playground/debugMailbox.d.ts +12 -0
  34. package/dist/playground/debugMailbox.js +77 -0
  35. package/dist/playground/go.js +9 -4
  36. package/dist/playground/goDebugInstrumentation.js +24 -44
  37. package/dist/playground/java-debug-HUZVAK4F.js +124 -0
  38. package/dist/playground/java-debug-notices.txt +492 -0
  39. package/dist/playground/java.d.ts +17 -1
  40. package/dist/playground/java.js +159 -3
  41. package/dist/playground/javaDebug.d.ts +62 -0
  42. package/dist/playground/javaDebug.js +305 -0
  43. package/dist/playground/javaDebugBridge.d.ts +6 -0
  44. package/dist/playground/javaDebugBridge.js +250 -0
  45. package/dist/playground/javaDebugSource.d.ts +9 -0
  46. package/dist/playground/javaDebugSource.js +4 -0
  47. package/dist/playground/javaRuntimeErrors.js +34 -1
  48. package/dist/playground/lean4Assets.d.ts +1 -25
  49. package/dist/playground/lean4Assets.js +2 -123
  50. package/dist/playground/lfortranAssets.d.ts +2 -2
  51. package/dist/playground/lldbSession.d.ts +24 -2
  52. package/dist/playground/lldbSession.js +322 -59
  53. package/dist/playground/lldbSourcePath.d.ts +2 -0
  54. package/dist/playground/lldbSourcePath.js +9 -0
  55. package/dist/playground/lua.d.ts +20 -1
  56. package/dist/playground/lua.js +190 -8
  57. package/dist/playground/luaDebug.d.ts +1 -0
  58. package/dist/playground/luaDebug.js +1 -0
  59. package/dist/playground/nim.d.ts +1 -0
  60. package/dist/playground/nim.js +8 -0
  61. package/dist/playground/objectivec.d.ts +7 -6
  62. package/dist/playground/objectivec.js +75 -9
  63. package/dist/playground/options.d.ts +10 -4
  64. package/dist/playground/python.d.ts +11 -1
  65. package/dist/playground/python.js +203 -8
  66. package/dist/playground/pythonCompileOptions.d.ts +49 -0
  67. package/dist/playground/pythonCompileOptions.js +40 -0
  68. package/dist/playground/ruby.d.ts +10 -1
  69. package/dist/playground/ruby.js +66 -1
  70. package/dist/playground/rubyDebug.d.ts +21 -0
  71. package/dist/playground/rubyDebug.js +128 -0
  72. package/dist/playground/rust.d.ts +5 -1
  73. package/dist/playground/rust.js +128 -46
  74. package/dist/playground/sandbox.d.ts +8 -1
  75. package/dist/playground/staticRuntimeModuleVersion.d.ts +1 -1
  76. package/dist/playground/staticRuntimeModuleVersion.js +1 -1
  77. package/dist/playground/staticWorkerRuntime.js +8 -2
  78. package/dist/playground/stdinBuffer.d.ts +1 -1
  79. package/dist/playground/stdinBuffer.js +19 -2
  80. package/dist/playground/tinygo.js +7 -0
  81. package/dist/playground/typescript.js +8 -0
  82. package/dist/playground/v.d.ts +3 -2
  83. package/dist/playground/v.js +66 -12
  84. package/dist/playground/wasmC3Version.d.ts +2 -2
  85. package/dist/playground/wasmC3Version.js +2 -2
  86. package/dist/playground/wasmDebugVersion.d.ts +1 -1
  87. package/dist/playground/wasmDebugVersion.js +1 -1
  88. package/dist/playground/wasmLean4Version.d.ts +1 -110
  89. package/dist/playground/wasmLean4Version.js +2 -111
  90. package/dist/playground/wasmLfortranVersion.d.ts +2 -2
  91. package/dist/playground/wasmLfortranVersion.js +2 -2
  92. package/dist/playground/wasmLuaVersion.d.ts +1 -1
  93. package/dist/playground/wasmLuaVersion.js +1 -1
  94. package/dist/playground/wasmPrologVersion.d.ts +17 -17
  95. package/dist/playground/wasmPrologVersion.js +16 -16
  96. package/dist/playground/wasmRustVersion.d.ts +26 -38
  97. package/dist/playground/wasmRustVersion.js +25 -40
  98. package/dist/playground/wasmTypeScriptVersion.d.ts +3 -3
  99. package/dist/playground/wasmTypeScriptVersion.js +3 -3
  100. package/dist/playground/worker/clang.js +1 -1
  101. package/dist/playground/worker/cobol.js +1 -1
  102. package/dist/playground/worker/d.js +51 -2
  103. package/dist/playground/worker/fortran.js +1 -1
  104. package/dist/playground/worker/java.js +188 -35
  105. package/dist/playground/worker/javaDebugEvaluator.d.ts +16 -0
  106. package/dist/playground/worker/javaDebugEvaluator.js +44 -0
  107. package/dist/playground/worker/javaDebugRuntime.d.ts +24 -0
  108. package/dist/playground/worker/javaDebugRuntime.js +315 -0
  109. package/dist/playground/worker/javaOutput.d.ts +11 -0
  110. package/dist/playground/worker/javaOutput.js +54 -0
  111. package/dist/playground/worker/lua.js +13 -0
  112. package/dist/playground/worker/python.js +81 -23
  113. package/dist/playground/worker/pythonCompile.d.ts +4 -0
  114. package/dist/playground/worker/pythonCompile.js +122 -0
  115. package/dist/playground/worker/ruby.js +13 -0
  116. package/dist/playground/worker/rubyDebugPreview.d.ts +2 -0
  117. package/dist/playground/worker/rubyDebugPreview.js +80 -0
  118. package/dist/playground/worker/rubyTracepoint.d.ts +16 -0
  119. package/dist/playground/worker/rubyTracepoint.js +162 -0
  120. package/dist/playground/worker/rust.js +4 -1
  121. package/dist/playground/worker/v.js +30 -5
  122. package/dist/playground/zig.js +4 -0
  123. package/dist/pythonCompiler.d.ts +8 -0
  124. package/dist/pythonCompiler.js +52 -0
  125. package/package.json +76 -28
  126. package/dist/playground/container/ContainerExplorer.svelte +0 -307
  127. package/dist/playground/container/ContainerExplorer.svelte.d.ts +0 -14
  128. package/dist/playground/container/clang-runtime.js +0 -343
  129. package/dist/playground/container/client.d.ts +0 -15
  130. package/dist/playground/container/owner.worker.d.ts +0 -1
  131. package/dist/playground/container/owner.worker.js +0 -390
  132. package/dist/playground/container/release.d.ts +0 -31
  133. package/dist/playground/container/release.js +0 -612
  134. /package/dist/{playground/container → container}/explorer.js +0 -0
  135. /package/dist/{playground/container → container}/protocol.js +0 -0
  136. /package/dist/{playground/container → container}/workspace.js +0 -0
@@ -0,0 +1,492 @@
1
+ Bundled Java debugger parser dependencies
2
+
3
+ The pinned upstream packages below are bundled and tree-shaken by esbuild. Their complete LICENSE/NOTICE texts follow; identical texts are listed once for all corresponding packages.
4
+
5
+ @chevrotain/gast@11.0.3: LICENSE.txt
6
+ @chevrotain/regexp-to-ast@11.0.3: LICENSE.txt
7
+ @chevrotain/utils@11.0.3: LICENSE.txt
8
+ chevrotain@11.0.3: LICENSE.txt
9
+
10
+
11
+ Apache License
12
+ Version 2.0, January 2004
13
+ http://www.apache.org/licenses/
14
+
15
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
16
+
17
+ 1. Definitions.
18
+
19
+ "License" shall mean the terms and conditions for use, reproduction,
20
+ and distribution as defined by Sections 1 through 9 of this document.
21
+
22
+ "Licensor" shall mean the copyright owner or entity authorized by
23
+ the copyright owner that is granting the License.
24
+
25
+ "Legal Entity" shall mean the union of the acting entity and all
26
+ other entities that control, are controlled by, or are under common
27
+ control with that entity. For the purposes of this definition,
28
+ "control" means (i) the power, direct or indirect, to cause the
29
+ direction or management of such entity, whether by contract or
30
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
31
+ outstanding shares, or (iii) beneficial ownership of such entity.
32
+
33
+ "You" (or "Your") shall mean an individual or Legal Entity
34
+ exercising permissions granted by this License.
35
+
36
+ "Source" form shall mean the preferred form for making modifications,
37
+ including but not limited to software source code, documentation
38
+ source, and configuration files.
39
+
40
+ "Object" form shall mean any form resulting from mechanical
41
+ transformation or translation of a Source form, including but
42
+ not limited to compiled object code, generated documentation,
43
+ and conversions to other media types.
44
+
45
+ "Work" shall mean the work of authorship, whether in Source or
46
+ Object form, made available under the License, as indicated by a
47
+ copyright notice that is included in or attached to the work
48
+ (an example is provided in the Appendix below).
49
+
50
+ "Derivative Works" shall mean any work, whether in Source or Object
51
+ form, that is based on (or derived from) the Work and for which the
52
+ editorial revisions, annotations, elaborations, or other modifications
53
+ represent, as a whole, an original work of authorship. For the purposes
54
+ of this License, Derivative Works shall not include works that remain
55
+ separable from, or merely link (or bind by name) to the interfaces of,
56
+ the Work and Derivative Works thereof.
57
+
58
+ "Contribution" shall mean any work of authorship, including
59
+ the original version of the Work and any modifications or additions
60
+ to that Work or Derivative Works thereof, that is intentionally
61
+ submitted to Licensor for inclusion in the Work by the copyright owner
62
+ or by an individual or Legal Entity authorized to submit on behalf of
63
+ the copyright owner. For the purposes of this definition, "submitted"
64
+ means any form of electronic, verbal, or written communication sent
65
+ to the Licensor or its representatives, including but not limited to
66
+ communication on electronic mailing lists, source code control systems,
67
+ and issue tracking systems that are managed by, or on behalf of, the
68
+ Licensor for the purpose of discussing and improving the Work, but
69
+ excluding communication that is conspicuously marked or otherwise
70
+ designated in writing by the copyright owner as "Not a Contribution."
71
+
72
+ "Contributor" shall mean Licensor and any individual or Legal Entity
73
+ on behalf of whom a Contribution has been received by Licensor and
74
+ subsequently incorporated within the Work.
75
+
76
+ 2. Grant of Copyright License. Subject to the terms and conditions of
77
+ this License, each Contributor hereby grants to You a perpetual,
78
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
79
+ copyright license to reproduce, prepare Derivative Works of,
80
+ publicly display, publicly perform, sublicense, and distribute the
81
+ Work and such Derivative Works in Source or Object form.
82
+
83
+ 3. Grant of Patent License. Subject to the terms and conditions of
84
+ this License, each Contributor hereby grants to You a perpetual,
85
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
86
+ (except as stated in this section) patent license to make, have made,
87
+ use, offer to sell, sell, import, and otherwise transfer the Work,
88
+ where such license applies only to those patent claims licensable
89
+ by such Contributor that are necessarily infringed by their
90
+ Contribution(s) alone or by combination of their Contribution(s)
91
+ with the Work to which such Contribution(s) was submitted. If You
92
+ institute patent litigation against any entity (including a
93
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
94
+ or a Contribution incorporated within the Work constitutes direct
95
+ or contributory patent infringement, then any patent licenses
96
+ granted to You under this License for that Work shall terminate
97
+ as of the date such litigation is filed.
98
+
99
+ 4. Redistribution. You may reproduce and distribute copies of the
100
+ Work or Derivative Works thereof in any medium, with or without
101
+ modifications, and in Source or Object form, provided that You
102
+ meet the following conditions:
103
+
104
+ (a) You must give any other recipients of the Work or
105
+ Derivative Works a copy of this License; and
106
+
107
+ (b) You must cause any modified files to carry prominent notices
108
+ stating that You changed the files; and
109
+
110
+ (c) You must retain, in the Source form of any Derivative Works
111
+ that You distribute, all copyright, patent, trademark, and
112
+ attribution notices from the Source form of the Work,
113
+ excluding those notices that do not pertain to any part of
114
+ the Derivative Works; and
115
+
116
+ (d) If the Work includes a "NOTICE" text file as part of its
117
+ distribution, then any Derivative Works that You distribute must
118
+ include a readable copy of the attribution notices contained
119
+ within such NOTICE file, excluding those notices that do not
120
+ pertain to any part of the Derivative Works, in at least one
121
+ of the following places: within a NOTICE text file distributed
122
+ as part of the Derivative Works; within the Source form or
123
+ documentation, if provided along with the Derivative Works; or,
124
+ within a display generated by the Derivative Works, if and
125
+ wherever such third-party notices normally appear. The contents
126
+ of the NOTICE file are for informational purposes only and
127
+ do not modify the License. You may add Your own attribution
128
+ notices within Derivative Works that You distribute, alongside
129
+ or as an addendum to the NOTICE text from the Work, provided
130
+ that such additional attribution notices cannot be construed
131
+ as modifying the License.
132
+
133
+ You may add Your own copyright statement to Your modifications and
134
+ may provide additional or different license terms and conditions
135
+ for use, reproduction, or distribution of Your modifications, or
136
+ for any such Derivative Works as a whole, provided Your use,
137
+ reproduction, and distribution of the Work otherwise complies with
138
+ the conditions stated in this License.
139
+
140
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
141
+ any Contribution intentionally submitted for inclusion in the Work
142
+ by You to the Licensor shall be under the terms and conditions of
143
+ this License, without any additional terms or conditions.
144
+ Notwithstanding the above, nothing herein shall supersede or modify
145
+ the terms of any separate license agreement you may have executed
146
+ with Licensor regarding such Contributions.
147
+
148
+ 6. Trademarks. This License does not grant permission to use the trade
149
+ names, trademarks, service marks, or product names of the Licensor,
150
+ except as required for reasonable and customary use in describing the
151
+ origin of the Work and reproducing the content of the NOTICE file.
152
+
153
+ 7. Disclaimer of Warranty. Unless required by applicable law or
154
+ agreed to in writing, Licensor provides the Work (and each
155
+ Contributor provides its Contributions) on an "AS IS" BASIS,
156
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
157
+ implied, including, without limitation, any warranties or conditions
158
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
159
+ PARTICULAR PURPOSE. You are solely responsible for determining the
160
+ appropriateness of using or redistributing the Work and assume any
161
+ risks associated with Your exercise of permissions under this License.
162
+
163
+ 8. Limitation of Liability. In no event and under no legal theory,
164
+ whether in tort (including negligence), contract, or otherwise,
165
+ unless required by applicable law (such as deliberate and grossly
166
+ negligent acts) or agreed to in writing, shall any Contributor be
167
+ liable to You for damages, including any direct, indirect, special,
168
+ incidental, or consequential damages of any character arising as a
169
+ result of this License or out of the use or inability to use the
170
+ Work (including but not limited to damages for loss of goodwill,
171
+ work stoppage, computer failure or malfunction, or any and all
172
+ other commercial damages or losses), even if such Contributor
173
+ has been advised of the possibility of such damages.
174
+
175
+ 9. Accepting Warranty or Additional Liability. While redistributing
176
+ the Work or Derivative Works thereof, You may choose to offer,
177
+ and charge a fee for, acceptance of support, warranty, indemnity,
178
+ or other liability obligations and/or rights consistent with this
179
+ License. However, in accepting such obligations, You may act only
180
+ on Your own behalf and on Your sole responsibility, not on behalf
181
+ of any other Contributor, and only if You agree to indemnify,
182
+ defend, and hold each Contributor harmless for any liability
183
+ incurred by, or claims asserted against, such Contributor by reason
184
+ of your accepting any such warranty or additional liability.
185
+
186
+ END OF TERMS AND CONDITIONS
187
+
188
+ APPENDIX: How to apply the Apache License to your work.
189
+
190
+ To apply the Apache License to your work, attach the following
191
+ boilerplate notice, with the fields enclosed by brackets "[]"
192
+ replaced with your own identifying information. (Don't include
193
+ the brackets!) The text should be enclosed in the appropriate
194
+ comment syntax for the file format. We also recommend that a
195
+ file or class name and description of purpose be included on the
196
+ same "printed page" as the copyright notice for easier
197
+ identification within third-party archives.
198
+
199
+ Copyright [yyyy] [name of copyright owner]
200
+
201
+ Licensed under the Apache License, Version 2.0 (the "License");
202
+ you may not use this file except in compliance with the License.
203
+ You may obtain a copy of the License at
204
+
205
+ http://www.apache.org/licenses/LICENSE-2.0
206
+
207
+ Unless required by applicable law or agreed to in writing, software
208
+ distributed under the License is distributed on an "AS IS" BASIS,
209
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
210
+ See the License for the specific language governing permissions and
211
+ limitations under the License.
212
+
213
+
214
+ chevrotain-allstar@0.3.1: LICENSE
215
+
216
+ Copyright 2022 TypeFox GmbH
217
+
218
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
219
+ associated documentation files (the "Software"), to deal in the Software without restriction,
220
+ including without limitation the rights to use, copy, modify, merge, publish, distribute,
221
+ sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
222
+ furnished to do so, subject to the following conditions:
223
+
224
+ The above copyright notice and this permission notice shall be included in all copies or
225
+ substantial portions of the Software.
226
+
227
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
228
+ BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
229
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
230
+ DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
231
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
232
+
233
+
234
+ java-parser@3.0.1: LICENSE
235
+
236
+
237
+ Copyright 2018-2025 the original author or authors from the JHipster project
238
+
239
+ Apache License
240
+ Version 2.0, January 2004
241
+ http://www.apache.org/licenses/
242
+
243
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
244
+
245
+ 1. Definitions.
246
+
247
+ "License" shall mean the terms and conditions for use, reproduction,
248
+ and distribution as defined by Sections 1 through 9 of this document.
249
+
250
+ "Licensor" shall mean the copyright owner or entity authorized by
251
+ the copyright owner that is granting the License.
252
+
253
+ "Legal Entity" shall mean the union of the acting entity and all
254
+ other entities that control, are controlled by, or are under common
255
+ control with that entity. For the purposes of this definition,
256
+ "control" means (i) the power, direct or indirect, to cause the
257
+ direction or management of such entity, whether by contract or
258
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
259
+ outstanding shares, or (iii) beneficial ownership of such entity.
260
+
261
+ "You" (or "Your") shall mean an individual or Legal Entity
262
+ exercising permissions granted by this License.
263
+
264
+ "Source" form shall mean the preferred form for making modifications,
265
+ including but not limited to software source code, documentation
266
+ source, and configuration files.
267
+
268
+ "Object" form shall mean any form resulting from mechanical
269
+ transformation or translation of a Source form, including but
270
+ not limited to compiled object code, generated documentation,
271
+ and conversions to other media types.
272
+
273
+ "Work" shall mean the work of authorship, whether in Source or
274
+ Object form, made available under the License, as indicated by a
275
+ copyright notice that is included in or attached to the work
276
+ (an example is provided in the Appendix below).
277
+
278
+ "Derivative Works" shall mean any work, whether in Source or Object
279
+ form, that is based on (or derived from) the Work and for which the
280
+ editorial revisions, annotations, elaborations, or other modifications
281
+ represent, as a whole, an original work of authorship. For the purposes
282
+ of this License, Derivative Works shall not include works that remain
283
+ separable from, or merely link (or bind by name) to the interfaces of,
284
+ the Work and Derivative Works thereof.
285
+
286
+ "Contribution" shall mean any work of authorship, including
287
+ the original version of the Work and any modifications or additions
288
+ to that Work or Derivative Works thereof, that is intentionally
289
+ submitted to Licensor for inclusion in the Work by the copyright owner
290
+ or by an individual or Legal Entity authorized to submit on behalf of
291
+ the copyright owner. For the purposes of this definition, "submitted"
292
+ means any form of electronic, verbal, or written communication sent
293
+ to the Licensor or its representatives, including but not limited to
294
+ communication on electronic mailing lists, source code control systems,
295
+ and issue tracking systems that are managed by, or on behalf of, the
296
+ Licensor for the purpose of discussing and improving the Work, but
297
+ excluding communication that is conspicuously marked or otherwise
298
+ designated in writing by the copyright owner as "Not a Contribution."
299
+
300
+ "Contributor" shall mean Licensor and any individual or Legal Entity
301
+ on behalf of whom a Contribution has been received by Licensor and
302
+ subsequently incorporated within the Work.
303
+
304
+ 2. Grant of Copyright License. Subject to the terms and conditions of
305
+ this License, each Contributor hereby grants to You a perpetual,
306
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
307
+ copyright license to reproduce, prepare Derivative Works of,
308
+ publicly display, publicly perform, sublicense, and distribute the
309
+ Work and such Derivative Works in Source or Object form.
310
+
311
+ 3. Grant of Patent License. Subject to the terms and conditions of
312
+ this License, each Contributor hereby grants to You a perpetual,
313
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
314
+ (except as stated in this section) patent license to make, have made,
315
+ use, offer to sell, sell, import, and otherwise transfer the Work,
316
+ where such license applies only to those patent claims licensable
317
+ by such Contributor that are necessarily infringed by their
318
+ Contribution(s) alone or by combination of their Contribution(s)
319
+ with the Work to which such Contribution(s) was submitted. If You
320
+ institute patent litigation against any entity (including a
321
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
322
+ or a Contribution incorporated within the Work constitutes direct
323
+ or contributory patent infringement, then any patent licenses
324
+ granted to You under this License for that Work shall terminate
325
+ as of the date such litigation is filed.
326
+
327
+ 4. Redistribution. You may reproduce and distribute copies of the
328
+ Work or Derivative Works thereof in any medium, with or without
329
+ modifications, and in Source or Object form, provided that You
330
+ meet the following conditions:
331
+
332
+ (a) You must give any other recipients of the Work or
333
+ Derivative Works a copy of this License; and
334
+
335
+ (b) You must cause any modified files to carry prominent notices
336
+ stating that You changed the files; and
337
+
338
+ (c) You must retain, in the Source form of any Derivative Works
339
+ that You distribute, all copyright, patent, trademark, and
340
+ attribution notices from the Source form of the Work,
341
+ excluding those notices that do not pertain to any part of
342
+ the Derivative Works; and
343
+
344
+ (d) If the Work includes a "NOTICE" text file as part of its
345
+ distribution, then any Derivative Works that You distribute must
346
+ include a readable copy of the attribution notices contained
347
+ within such NOTICE file, excluding those notices that do not
348
+ pertain to any part of the Derivative Works, in at least one
349
+ of the following places: within a NOTICE text file distributed
350
+ as part of the Derivative Works; within the Source form or
351
+ documentation, if provided along with the Derivative Works; or,
352
+ within a display generated by the Derivative Works, if and
353
+ wherever such third-party notices normally appear. The contents
354
+ of the NOTICE file are for informational purposes only and
355
+ do not modify the License. You may add Your own attribution
356
+ notices within Derivative Works that You distribute, alongside
357
+ or as an addendum to the NOTICE text from the Work, provided
358
+ that such additional attribution notices cannot be construed
359
+ as modifying the License.
360
+
361
+ You may add Your own copyright statement to Your modifications and
362
+ may provide additional or different license terms and conditions
363
+ for use, reproduction, or distribution of Your modifications, or
364
+ for any such Derivative Works as a whole, provided Your use,
365
+ reproduction, and distribution of the Work otherwise complies with
366
+ the conditions stated in this License.
367
+
368
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
369
+ any Contribution intentionally submitted for inclusion in the Work
370
+ by You to the Licensor shall be under the terms and conditions of
371
+ this License, without any additional terms or conditions.
372
+ Notwithstanding the above, nothing herein shall supersede or modify
373
+ the terms of any separate license agreement you may have executed
374
+ with Licensor regarding such Contributions.
375
+
376
+ 6. Trademarks. This License does not grant permission to use the trade
377
+ names, trademarks, service marks, or product names of the Licensor,
378
+ except as required for reasonable and customary use in describing the
379
+ origin of the Work and reproducing the content of the NOTICE file.
380
+
381
+ 7. Disclaimer of Warranty. Unless required by applicable law or
382
+ agreed to in writing, Licensor provides the Work (and each
383
+ Contributor provides its Contributions) on an "AS IS" BASIS,
384
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
385
+ implied, including, without limitation, any warranties or conditions
386
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
387
+ PARTICULAR PURPOSE. You are solely responsible for determining the
388
+ appropriateness of using or redistributing the Work and assume any
389
+ risks associated with Your exercise of permissions under this License.
390
+
391
+ 8. Limitation of Liability. In no event and under no legal theory,
392
+ whether in tort (including negligence), contract, or otherwise,
393
+ unless required by applicable law (such as deliberate and grossly
394
+ negligent acts) or agreed to in writing, shall any Contributor be
395
+ liable to You for damages, including any direct, indirect, special,
396
+ incidental, or consequential damages of any character arising as a
397
+ result of this License or out of the use or inability to use the
398
+ Work (including but not limited to damages for loss of goodwill,
399
+ work stoppage, computer failure or malfunction, or any and all
400
+ other commercial damages or losses), even if such Contributor
401
+ has been advised of the possibility of such damages.
402
+
403
+ 9. Accepting Warranty or Additional Liability. While redistributing
404
+ the Work or Derivative Works thereof, You may choose to offer,
405
+ and charge a fee for, acceptance of support, warranty, indemnity,
406
+ or other liability obligations and/or rights consistent with this
407
+ License. However, in accepting such obligations, You may act only
408
+ on Your own behalf and on Your sole responsibility, not on behalf
409
+ of any other Contributor, and only if You agree to indemnify,
410
+ defend, and hold each Contributor harmless for any liability
411
+ incurred by, or claims asserted against, such Contributor by reason
412
+ of your accepting any such warranty or additional liability.
413
+
414
+ END OF TERMS AND CONDITIONS
415
+
416
+ APPENDIX: How to apply the Apache License to your work.
417
+
418
+ To apply the Apache License to your work, attach the following
419
+ boilerplate notice, with the fields enclosed by brackets "[]"
420
+ replaced with your own identifying information. (Don't include
421
+ the brackets!) The text should be enclosed in the appropriate
422
+ comment syntax for the file format. We also recommend that a
423
+ file or class name and description of purpose be included on the
424
+ same "printed page" as the copyright notice for easier
425
+ identification within third-party archives.
426
+
427
+ Copyright [yyyy] [name of copyright owner]
428
+
429
+ Licensed under the Apache License, Version 2.0 (the "License");
430
+ you may not use this file except in compliance with the License.
431
+ You may obtain a copy of the License at
432
+
433
+ http://www.apache.org/licenses/LICENSE-2.0
434
+
435
+ Unless required by applicable law or agreed to in writing, software
436
+ distributed under the License is distributed on an "AS IS" BASIS,
437
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
438
+ See the License for the specific language governing permissions and
439
+ limitations under the License.
440
+
441
+
442
+ lodash-es@4.17.21: LICENSE
443
+ lodash-es@4.18.1: LICENSE
444
+ lodash@4.17.21: LICENSE
445
+
446
+ Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
447
+
448
+ Based on Underscore.js, copyright Jeremy Ashkenas,
449
+ DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
450
+
451
+ This software consists of voluntary contributions made by many
452
+ individuals. For exact contribution history, see the revision history
453
+ available at https://github.com/lodash/lodash
454
+
455
+ The following license applies to all parts of this software except as
456
+ documented below:
457
+
458
+ ====
459
+
460
+ Permission is hereby granted, free of charge, to any person obtaining
461
+ a copy of this software and associated documentation files (the
462
+ "Software"), to deal in the Software without restriction, including
463
+ without limitation the rights to use, copy, modify, merge, publish,
464
+ distribute, sublicense, and/or sell copies of the Software, and to
465
+ permit persons to whom the Software is furnished to do so, subject to
466
+ the following conditions:
467
+
468
+ The above copyright notice and this permission notice shall be
469
+ included in all copies or substantial portions of the Software.
470
+
471
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
472
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
473
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
474
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
475
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
476
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
477
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
478
+
479
+ ====
480
+
481
+ Copyright and related rights for sample code are waived via CC0. Sample
482
+ code is defined as all source code displayed within the prose of the
483
+ documentation.
484
+
485
+ CC0: http://creativecommons.org/publicdomain/zero/1.0/
486
+
487
+ ====
488
+
489
+ Files located in the node_modules and vendor directories are externally
490
+ maintained libraries used by this software which have their own
491
+ licenses; we recommend you read them, as their terms may differ from the
492
+ terms above.
@@ -1,4 +1,4 @@
1
- import { type CompilerDiagnostic, type SandboxExecutionOptions } from './options';
1
+ import { type DebugCommand, type DebugSessionEvent, type CompilerDiagnostic, type SandboxExecutionOptions } from './options';
2
2
  import { WorkerAssetBridge } from './assetBridge';
3
3
  import { type PlaygroundRuntimeAssets } from './assets';
4
4
  import type { Sandbox, SandboxProgress } from './sandbox';
@@ -13,6 +13,13 @@ declare class Java implements Sandbox {
13
13
  exit: boolean;
14
14
  baseUrl: string;
15
15
  oncompilerdiagnostic?: (diagnostic: CompilerDiagnostic) => void;
16
+ ondebug?: (event: DebugSessionEvent) => void;
17
+ private debugSession?;
18
+ private evaluationAssets?;
19
+ private evaluationLimits?;
20
+ private evaluationSandbox?;
21
+ private cacheEvaluationArtifacts;
22
+ private evaluationQueue;
16
23
  waitingForInput: boolean;
17
24
  pendingEof: boolean;
18
25
  assetBridge: WorkerAssetBridge | null;
@@ -39,6 +46,15 @@ declare class Java implements Sandbox {
39
46
  private flushPendingInput;
40
47
  run(code: string, prepare: boolean, _log?: boolean, _prog?: SandboxProgress, args?: string[], options?: SandboxExecutionOptions): Promise<boolean | string>;
41
48
  private cancelOperation;
49
+ debugCommand(command: DebugCommand): void | undefined;
50
+ debugPause(): void | undefined;
51
+ setBreakpoints(lines: number[], sourcePath?: string): void | undefined;
52
+ debugEvaluate(expression: string): Promise<string>;
53
+ debugVariables(reference: number, start?: number, count?: number): Promise<never[] | import("@wasm-idle/core").DebugVariable[]>;
54
+ debugScopes(frameId: number): Promise<never[] | import("@wasm-idle/core").DebugScope[]>;
55
+ debugFrameScopes(frameId: number): Promise<never[] | import("@wasm-idle/core").DebugScope[]>;
56
+ private evaluateSnapshot;
57
+ private disposeEvaluationSandbox;
42
58
  kill(): void;
43
59
  terminate(reason?: unknown): void;
44
60
  clear(): Promise<void>;