@hew-lang/sandbox-vm 0.6.1 → 0.6.3

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 (52) hide show
  1. package/README.md +48 -4
  2. package/cli/test-runner.mjs +4 -1
  3. package/dist/interpreter/interpreter.d.ts +1 -1
  4. package/dist/interpreter/interpreter.js +1 -1
  5. package/dist/interpreter/parity-runner.js +1 -1
  6. package/dist/interpreter/run-program.d.ts +3 -2
  7. package/dist/interpreter/run-program.js +5 -3
  8. package/dist/interpreter/schema-validator.d.ts +9 -4
  9. package/dist/interpreter/schema-validator.js +15 -49
  10. package/dist/interpreter/strings.d.ts +21 -0
  11. package/dist/interpreter/strings.js +191 -0
  12. package/dist/interpreter/types.d.ts +6 -0
  13. package/dist/interpreter/unicode-data.d.ts +4 -0
  14. package/dist/interpreter/unicode-data.js +1673 -0
  15. package/dist/interpreter/unicode.d.ts +3 -0
  16. package/dist/interpreter/unicode.js +35 -0
  17. package/dist/interpreter/v1/actor-identity.d.ts +3 -0
  18. package/dist/interpreter/v1/actor-identity.js +7 -0
  19. package/dist/interpreter/v1/actor-waits.d.ts +6 -0
  20. package/dist/interpreter/v1/actor-waits.js +33 -0
  21. package/dist/interpreter/v1/browser-directory.d.ts +107 -0
  22. package/dist/interpreter/v1/browser-directory.js +288 -0
  23. package/dist/interpreter/v1/calendar.d.ts +4 -0
  24. package/dist/interpreter/v1/calendar.js +64 -0
  25. package/dist/interpreter/v1/codecs.js +8 -11
  26. package/dist/interpreter/v1/exec.d.ts +2 -2
  27. package/dist/interpreter/v1/exec.js +1761 -489
  28. package/dist/interpreter/v1/instructions.generated.d.ts +1135 -0
  29. package/dist/interpreter/v1/instructions.generated.js +106 -0
  30. package/dist/interpreter/v1/package-graph.d.ts +2 -0
  31. package/dist/interpreter/v1/package-graph.js +729 -0
  32. package/dist/interpreter/v1/package-validator.generated.d.ts +3 -0
  33. package/dist/interpreter/v1/package-validator.generated.js +75902 -0
  34. package/dist/interpreter/v1/package.d.ts +5 -645
  35. package/dist/interpreter/v1/package.js +0 -12
  36. package/dist/interpreter/v1/pipes.d.ts +1 -0
  37. package/dist/interpreter/v1/pipes.js +9 -6
  38. package/dist/interpreter/v1/scheduler.d.ts +8 -1
  39. package/dist/interpreter/v1/scheduler.js +50 -11
  40. package/dist/interpreter/v1/shims.d.ts +260 -7
  41. package/dist/interpreter/v1/shims.js +647 -175
  42. package/dist/interpreter/v1/structural.d.ts +2 -28
  43. package/dist/interpreter/v1/timestamp.d.ts +7 -0
  44. package/dist/interpreter/v1/timestamp.js +54 -0
  45. package/dist/interpreter/v1/validate.d.ts +8 -2
  46. package/dist/interpreter/v1/validate.js +284 -200
  47. package/dist/interpreter/v1/value-operations.d.ts +11 -3
  48. package/dist/interpreter/v1/value-operations.js +70 -18
  49. package/dist/interpreter/values.d.ts +30 -8
  50. package/dist/interpreter/values.js +31 -5
  51. package/dist/interpreter/worker.js +4 -3
  52. package/package.json +4 -4
@@ -0,0 +1,106 @@
1
+ export const OP_NAMES = [
2
+ "coverage.hit",
3
+ "const.int",
4
+ "const.bool",
5
+ "const.float",
6
+ "const.char",
7
+ "const.unit",
8
+ "const.duration",
9
+ "const.str",
10
+ "const.bytes",
11
+ "copy_value",
12
+ "move",
13
+ "fork",
14
+ "destroy_value",
15
+ "begin_borrow",
16
+ "end_borrow",
17
+ "finish_linear_receiver",
18
+ "alloc_place",
19
+ "store.init",
20
+ "store.assign",
21
+ "load.copy",
22
+ "load.take",
23
+ "load.borrow",
24
+ "end_lifetime",
25
+ "tuple.make",
26
+ "tuple.get",
27
+ "aggregate.make",
28
+ "aggregate.project_copy",
29
+ "aggregate.project_borrow",
30
+ "destructure",
31
+ "array.make",
32
+ "array.repeat",
33
+ "variant.make",
34
+ "variant.is",
35
+ "variant.project_copy",
36
+ "variant.project_borrow",
37
+ "variant.destructure",
38
+ "unary",
39
+ "binary",
40
+ "cast",
41
+ "str.eq",
42
+ "bytes.eq",
43
+ "function.make",
44
+ "closure.make",
45
+ "callable.coerce",
46
+ "dyn.make",
47
+ "register_defer",
48
+ "generator.make",
49
+ "actor.ingress_adapter",
50
+ "stream.pipe",
51
+ "task_scope.enter",
52
+ "task_scope.close",
53
+ "task.race",
54
+ "task.spawn",
55
+ "task.invoke",
56
+ ];
57
+ export const TERM_NAMES = [
58
+ "return",
59
+ "goto",
60
+ "branch",
61
+ "switch.variant",
62
+ "checked.binary",
63
+ "timestamp.binary",
64
+ "unreachable",
65
+ "call",
66
+ "indirect.call",
67
+ "dyn.call",
68
+ "value.call",
69
+ "wire.codec",
70
+ "runtime.call",
71
+ "extern.call",
72
+ "actor.call",
73
+ "panic",
74
+ "trap",
75
+ "checked_raise",
76
+ "cleanup.dispatch",
77
+ "resume_unwind",
78
+ "enter_defer",
79
+ "finish_defer",
80
+ "recover_fault",
81
+ "suspend",
82
+ ];
83
+ export const SUSPENSION_NAMES = [
84
+ "Sleep",
85
+ "SleepUntil",
86
+ "Await",
87
+ "ActorSend",
88
+ "RestartWait",
89
+ "Read",
90
+ "Accept",
91
+ "CallClosure",
92
+ "Timeout",
93
+ "ScopeDeadline",
94
+ "Yield",
95
+ "GeneratorNext",
96
+ "Safepoint",
97
+ "ServiceAcquire",
98
+ "SemaphoreAcquire",
99
+ "NativeIo",
100
+ "Offload",
101
+ "Ask",
102
+ "Join",
103
+ "StreamSend",
104
+ "StreamNext",
105
+ "Select",
106
+ ];
@@ -0,0 +1,2 @@
1
+ import type { PackageV1 } from "./package.js";
2
+ export declare function validatePackageGraph(pkg: PackageV1): void;