@onda-lang/wasm-compiler 0.7.4 → 0.8.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/README.md +47 -0
- package/api.md +407 -0
- package/dist/backend/constants.js +1 -1
- package/dist/backend/index.js +991 -31
- package/dist/build.json +3 -3
- package/dist/frontend/README.md +8 -5
- package/dist/frontend/onda_compiler_web.d.ts +21 -12
- package/dist/frontend/onda_compiler_web.js +118 -10
- package/dist/frontend/onda_compiler_web_bg.wasm +0 -0
- package/dist/frontend/onda_compiler_web_bg.wasm.d.ts +10 -7
- package/dist/frontend/package.json +1 -1
- package/dist/version.js +1 -1
- package/package.json +6 -5
- package/src/index.d.ts +61 -1
- package/src/index.js +307 -24
- package/src/worker.js +31 -0
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# Onda WebAssembly compiler
|
|
2
2
|
|
|
3
|
+
See [api.md](api.md) for the complete public Web API shared with the released package.
|
|
4
|
+
|
|
3
5
|
`@onda-lang/wasm-compiler` compiles Onda source or an in-memory multi-file project to a complete,
|
|
4
6
|
self-contained WebAssembly processor artifact. It runs in modern browsers and Node.js and does not
|
|
5
7
|
require LLVM, a Wasm linker, Rust, or `wasm-pack` after installation.
|
|
@@ -16,6 +18,48 @@ const { artifact, sourceFiles } = await compiler.compileSource(source, {
|
|
|
16
18
|
console.log(artifact.wasm, artifact.metadata, sourceFiles);
|
|
17
19
|
```
|
|
18
20
|
|
|
21
|
+
Source may expose explicitly typed `config const` declarations. Supply optional partial overrides
|
|
22
|
+
on any source, workspace, or project-image compilation:
|
|
23
|
+
|
|
24
|
+
```js
|
|
25
|
+
const { artifact } = await compiler.compileSource(source, {
|
|
26
|
+
constants: {
|
|
27
|
+
Enabled: true,
|
|
28
|
+
Channels: 8,
|
|
29
|
+
Seed: 9_007_199_254_740_993n,
|
|
30
|
+
Window: new Float32Array([0.0, 0.5, 1.0]),
|
|
31
|
+
},
|
|
32
|
+
});
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Inspect the resolved declarations before compilation to build configuration UI or validate a
|
|
36
|
+
selection. Inspection accepts the same context and partial overrides; omitted constants keep their
|
|
37
|
+
authored values:
|
|
38
|
+
|
|
39
|
+
```js
|
|
40
|
+
const constants = await compiler.inspectSourceConstants(`
|
|
41
|
+
config const TEST: f32 = 0.25
|
|
42
|
+
config const YOYO: f32 = 0.75
|
|
43
|
+
`, {
|
|
44
|
+
constants: { TEST: 0.5 },
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
console.log(constants[0].value); // 0.5 (overridden)
|
|
48
|
+
console.log(constants[1].value); // 0.75 (authored value retained)
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
The equivalent `inspectWorkspaceConstants(workspace, options)` and
|
|
52
|
+
`inspectProjectImageConstants(imageBytes, options)` methods use the same resolution semantics.
|
|
53
|
+
Descriptors report scalar/fixed-array/dynamic-array shape, element type, and resolved value. Scalar
|
|
54
|
+
values are ordinary JavaScript values; arrays are typed arrays.
|
|
55
|
+
|
|
56
|
+
Booleans use `boolean`, `i64` uses `bigint`, and arrays use `boolean[]`, `Uint8Array` (0/1),
|
|
57
|
+
`Int32Array`, `BigInt64Array`, `Float32Array`, or `Float64Array`. Plain numbers are checked against
|
|
58
|
+
the declaration's `i32`, `f32`, or `f64` type; `NaN` and infinities are valid only for floating-point
|
|
59
|
+
declarations. Fixed-array lengths are resolved after all inputs are selected, so changing a size
|
|
60
|
+
constant without a matching array value is a compile error. Worker mode forwards bigint and typed
|
|
61
|
+
arrays through structured clone without numeric conversion.
|
|
62
|
+
|
|
19
63
|
The package composes Onda's embedded Rust frontend with its Binaryen backend. The frontend emits
|
|
20
64
|
validated versioned MIR in memory; the backend lowers that trusted producer output to the generic
|
|
21
65
|
Onda WebAssembly processor ABI. The package verifies the MIR schema handshake during startup.
|
|
@@ -112,6 +156,9 @@ const { artifact, sourceFiles } = await compiler.compileSource(source, options);
|
|
|
112
156
|
await compiler.dispose();
|
|
113
157
|
```
|
|
114
158
|
|
|
159
|
+
`dispose()` is idempotent and terminal in both direct and worker modes. Every later compiler
|
|
160
|
+
operation rejects with `OndaCompilerError`.
|
|
161
|
+
|
|
115
162
|
Static hosts and bundlers may provide explicit `workerUrl` and `frontendWasm` URLs. The worker
|
|
116
163
|
receives the frontend URL during initialization, so versioned or content-hashed compiler assets do
|
|
117
164
|
not depend on the package's development directory layout.
|
package/api.md
ADDED
|
@@ -0,0 +1,407 @@
|
|
|
1
|
+
<!-- Generated from docs/web-api.md; do not edit this packaged copy. -->
|
|
2
|
+
|
|
3
|
+
# Web API reference
|
|
4
|
+
|
|
5
|
+
Onda publishes four ECMAScript-module packages for browsers and Node.js:
|
|
6
|
+
|
|
7
|
+
| Package | Purpose |
|
|
8
|
+
| --- | --- |
|
|
9
|
+
| `@onda-lang/wasm-compiler` | Compile Onda source, workspaces, and project images to complete WebAssembly processor artifacts. |
|
|
10
|
+
| `@onda-lang/processor-abi` | Validate artifacts, inspect metadata, prepare parameter controls, and decode raw delegate and print output. |
|
|
11
|
+
| `@onda-lang/binaryen-web` | Lower trusted, version-matched Onda MIR directly to a processor artifact. |
|
|
12
|
+
| `@onda-lang/webaudio` | Host a complete processor artifact in an `AudioWorklet`. |
|
|
13
|
+
|
|
14
|
+
All packages are ESM-only. `@onda-lang/wasm-compiler` and `@onda-lang/binaryen-web` support modern
|
|
15
|
+
browsers and Node.js 20 or newer. Web Audio construction requires a browser environment with
|
|
16
|
+
`AudioWorklet`; the metadata and parameter helpers re-exported by `@onda-lang/webaudio` are ordinary
|
|
17
|
+
synchronous JavaScript.
|
|
18
|
+
|
|
19
|
+
Each published package contains this reference as `api.md`. TypeScript declarations are included
|
|
20
|
+
at every exported module path.
|
|
21
|
+
|
|
22
|
+
## Compile source and start audio
|
|
23
|
+
|
|
24
|
+
```js
|
|
25
|
+
import { createCompiler } from "@onda-lang/wasm-compiler";
|
|
26
|
+
import {
|
|
27
|
+
createOndaAudioProcessorInitialized,
|
|
28
|
+
} from "@onda-lang/webaudio";
|
|
29
|
+
|
|
30
|
+
const compiler = await createCompiler();
|
|
31
|
+
const { artifact } = await compiler.compileSource(source, {
|
|
32
|
+
sampleRate: audioContext.sampleRate,
|
|
33
|
+
blockSize: 128,
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
const print = ({ text }) => console.debug(text);
|
|
37
|
+
const processor = await createOndaAudioProcessorInitialized(
|
|
38
|
+
audioContext,
|
|
39
|
+
artifact,
|
|
40
|
+
{
|
|
41
|
+
params: { gain: 0.5 },
|
|
42
|
+
// A construction-time listener also receives prints emitted by init.
|
|
43
|
+
onPrint: print,
|
|
44
|
+
},
|
|
45
|
+
);
|
|
46
|
+
processor.node.connect(audioContext.destination);
|
|
47
|
+
|
|
48
|
+
const stopDelegates = processor.onDelegates(({ occurrences }) => {
|
|
49
|
+
for (const occurrence of occurrences) {
|
|
50
|
+
console.log(occurrence.name, occurrence.values);
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Compilation is an offline operation and may allocate. Constructing the adapter compiles or accepts
|
|
56
|
+
a reusable `WebAssembly.Module` before the audio node starts. Normal rendering uses preallocated
|
|
57
|
+
storage. Delegate and print callbacks run on the main side after bounded worklet transport; they do
|
|
58
|
+
not call JavaScript from generated DSP execution.
|
|
59
|
+
|
|
60
|
+
## `@onda-lang/wasm-compiler`
|
|
61
|
+
|
|
62
|
+
### `createCompiler(options?)`
|
|
63
|
+
|
|
64
|
+
Creates an `OndaCompilerInstance`. With no options, compilation runs directly on the calling
|
|
65
|
+
JavaScript thread. Pass `{ worker: true }` to run the frontend and backend in a module worker;
|
|
66
|
+
`workerUrl`, `frontendWasm`, and a custom `Worker` constructor are optional integration hooks.
|
|
67
|
+
|
|
68
|
+
The returned instance provides:
|
|
69
|
+
|
|
70
|
+
- `compileSource(source, options?)` and `inspectSourceConstants(source, options?)`.
|
|
71
|
+
- `compileWorkspace(workspace, options?)` and `inspectWorkspaceConstants(workspace, options?)`.
|
|
72
|
+
- `compileProjectImage(bytes, options?)` and `inspectProjectImageConstants(bytes, options?)`.
|
|
73
|
+
- `createProjectImage(sourceGraph, buffers?)`, `inspectProjectImage(bytes)`,
|
|
74
|
+
`loadProjectFiles(files, projectFilePath?)`, and `materializeProjectImage(bytes, names?)`.
|
|
75
|
+
- `encodeBufferAsset(binding)`, `decodeBufferAsset(bytes)`, and `decodeBufferFile(bytes, path?)`.
|
|
76
|
+
- `projectCapabilities()` for supported image, buffer, and standard-library versions.
|
|
77
|
+
- `sendLspMessage(message)` and `setLspAnalysisOptions(options?)` for the embedded language server.
|
|
78
|
+
- `dispose()`, an idempotent terminal release of compiler and worker resources.
|
|
79
|
+
|
|
80
|
+
Compile options accept `sampleRate`, `blockSize`, typed compile-constant overrides, and `codegen`.
|
|
81
|
+
Code generation can select optimization level `0..4`, shrink level `0..2`, strict or fast math,
|
|
82
|
+
SIMD, loop-containing inlining, and optional WAT emission. A successful compilation returns an
|
|
83
|
+
`OndaCompilationResult` containing the artifact, resolved source paths, and the exact source graph
|
|
84
|
+
when one is available.
|
|
85
|
+
|
|
86
|
+
Configuration and lifecycle failures throw `OndaCompilerError`. Authored-source, project, MIR, and
|
|
87
|
+
code-generation failures throw `OndaCompileError`, whose `diagnostics`, `sourceFiles`, and
|
|
88
|
+
`unresolvedSourceFiles` fields support editors and file watchers. `OndaBinaryenError` identifies a
|
|
89
|
+
failure in the MIR-to-Wasm backend.
|
|
90
|
+
|
|
91
|
+
`MIR_SCHEMA_VERSION` is the schema accepted by the bundled backend. `ONDA_VERSION` is the compiler
|
|
92
|
+
version. `createDefaultImports()` returns the imports required by current generated modules; it is
|
|
93
|
+
currently an empty object because artifacts are self-contained.
|
|
94
|
+
|
|
95
|
+
The `@onda-lang/wasm-compiler/artifact` subpath re-exports the complete
|
|
96
|
+
`@onda-lang/processor-abi` surface without loading the compiler. The
|
|
97
|
+
`@onda-lang/wasm-compiler/worker` subpath is a side-effect-only module-worker entry and has no
|
|
98
|
+
named exports.
|
|
99
|
+
|
|
100
|
+
## `@onda-lang/processor-abi`
|
|
101
|
+
|
|
102
|
+
An `OndaProcessorArtifact` contains WebAssembly bytes, an `OndaProcessorMetadata` descriptor, and
|
|
103
|
+
optional WAT. Treat the bytes and descriptor as one integrity-associated pair.
|
|
104
|
+
|
|
105
|
+
### Validation and files
|
|
106
|
+
|
|
107
|
+
- `validateProcessorMetadata(metadata, expectedKind?)` validates and returns the current descriptor.
|
|
108
|
+
- `validateProcessorArtifact(artifact, options?)` normalizes bytes and optionally inspects the module.
|
|
109
|
+
- `validateProcessorModule(module, metadata)` verifies a precompiled module against its descriptor.
|
|
110
|
+
- `parseProcessorMetadata(input, expectedKind?)` parses JSON or validates an object.
|
|
111
|
+
- `serializeProcessorMetadata(metadata, space?)` validates before producing newline-terminated JSON.
|
|
112
|
+
- `createProcessorArtifactFiles(artifact, options?)` creates associated `.wasm` and `.onda.json`
|
|
113
|
+
records, including integrity metadata.
|
|
114
|
+
- `loadProcessorArtifactFiles(wasm, metadata)` validates a loaded pair and its integrity association.
|
|
115
|
+
|
|
116
|
+
Failures throw `OndaArtifactError`. Hosts must reject unsupported artifact-format, ABI, and snapshot
|
|
117
|
+
versions rather than guessing layout compatibility.
|
|
118
|
+
|
|
119
|
+
### Parameter controls
|
|
120
|
+
|
|
121
|
+
`createParamControl(metadata)` validates one scalar parameter descriptor and returns a reusable
|
|
122
|
+
`OndaPreparedParamControl`. `createParamDomain(domain)` does the same from already-decoded values.
|
|
123
|
+
Prepared controls expose `constrainPlain`, `normalizedToPlain`, and `plainToNormalized` methods.
|
|
124
|
+
|
|
125
|
+
The one-shot `constrainParamPlain`, `paramNormalizedToPlain`, and `paramPlainToNormalized`
|
|
126
|
+
functions provide the same behavior. Preparing once is preferable for frequently updated UI:
|
|
127
|
+
validation and decimal descriptor decoding stay off the interaction path. Mappings preserve exact
|
|
128
|
+
endpoints, apply linear, logarithmic, or curved scale, and clamp and snap to the declared grid.
|
|
129
|
+
|
|
130
|
+
### Delegates and print output
|
|
131
|
+
|
|
132
|
+
Complete wasm32 processor exports receive an optional execution-output descriptor containing
|
|
133
|
+
independently nullable delegate and print batches. Allocate all descriptors and storage before
|
|
134
|
+
real-time execution.
|
|
135
|
+
|
|
136
|
+
`writeDelegateBatch` and `writePrintBatch` initialize reusable batch descriptors.
|
|
137
|
+
`writeExecutionOutput` connects their addresses. Call `resetExecutionOutput` immediately before
|
|
138
|
+
every generated init, process, or event entry. After a successful generated call,
|
|
139
|
+
`readDelegateBatch` or `readPrintBatch` validates the result counters.
|
|
140
|
+
`decodeDelegateRecords` converts delegate payloads using `metadata.delegates`.
|
|
141
|
+
`decodePrintRecords` preserves primitive types and source sites; `formatPrintRecords` and
|
|
142
|
+
`formatPrintBatch` add canonical text formatting. Both decoded record types expose a `sequence` from
|
|
143
|
+
the host-reset call-local counter; merge that call's two arrays by this field when presenting one
|
|
144
|
+
chronological output stream.
|
|
145
|
+
|
|
146
|
+
Batch capacity is host policy. `overflowCount` reports whole records that did not fit; it is not a
|
|
147
|
+
byte count. Consume the returned storage before reusing it for another init, process, or event call.
|
|
148
|
+
See the [language guide](https://onda-lang.org/docs/language/#delegates) for authored semantics and
|
|
149
|
+
the [processor API](https://onda-lang.org/docs/processor-api/#call-scoped-execution-output) for
|
|
150
|
+
physical record layout.
|
|
151
|
+
|
|
152
|
+
The metadata interfaces expose target facts, storage sizes, ports, parameters, states, events,
|
|
153
|
+
delegates, print sites, buffers, and integration profiles. Scalar `i64` values decoded from records
|
|
154
|
+
use `bigint`; booleans use `boolean`; fixed arrays and slices become JavaScript arrays.
|
|
155
|
+
|
|
156
|
+
## `@onda-lang/binaryen-web`
|
|
157
|
+
|
|
158
|
+
### `compileTrustedMir(mir, options?)`
|
|
159
|
+
|
|
160
|
+
Lowers MIR emitted by the matching Onda semantic frontend. Input may be compact MessagePack, JSON,
|
|
161
|
+
or an already-decoded object. The function is synchronous and returns an
|
|
162
|
+
`OndaProcessorArtifact`. It is intentionally not a validator for untrusted or hand-authored MIR;
|
|
163
|
+
the producer owns semantic, type, bounds, and resource proofs.
|
|
164
|
+
|
|
165
|
+
`OndaBinaryenOptions` controls the same backend policies exposed through compiler `codegen`.
|
|
166
|
+
`SUPPORTED_MIR_SCHEMA_VERSION` identifies the required producer schema. `createDefaultImports()`
|
|
167
|
+
returns an empty object for current self-contained artifacts. Backend failures throw
|
|
168
|
+
`OndaBinaryenError`.
|
|
169
|
+
|
|
170
|
+
The package root re-exports the common artifact validation and file helpers. The
|
|
171
|
+
`@onda-lang/binaryen-web/artifact` subpath re-exports the complete
|
|
172
|
+
`@onda-lang/processor-abi` module without loading Binaryen.
|
|
173
|
+
|
|
174
|
+
## `@onda-lang/webaudio`
|
|
175
|
+
|
|
176
|
+
### Construction
|
|
177
|
+
|
|
178
|
+
- `registerOndaAudioWorklet(context, workletUrl?)` registers the processor once per context.
|
|
179
|
+
- `compileOndaProcessorModule(artifact)` validates and compiles a reusable module off the render thread.
|
|
180
|
+
- `ondaAudioWorkletNodeOptions(artifact, options?)` builds low-level node options.
|
|
181
|
+
- `createOndaAudioProcessor(context, artifact, options?)` allocates an uninitialized adapter.
|
|
182
|
+
- `createOndaAudioProcessorInitialized(context, artifact, options?)` allocates and fully initializes it.
|
|
183
|
+
- `flattenedAudioChannelCount(ports?)` totals declared physical channels with validation.
|
|
184
|
+
|
|
185
|
+
`OndaAudioProcessorOptions` accepts initial plain parameter values, external buffers, event,
|
|
186
|
+
delegate, and print capacities, an optional construction-time `onPrint` listener, a precompiled
|
|
187
|
+
module, custom node options, and an `AudioWorkletNode` constructor. Pass `onPrint` when using the
|
|
188
|
+
initialized constructor if initialization output must be observed; registering a listener after
|
|
189
|
+
construction cannot replay output from an execution that has already completed. The artifact sample
|
|
190
|
+
rate must equal the context sample rate and it must expose at least one audio input or output.
|
|
191
|
+
Print and delegate delivery uses a bounded `SharedArrayBuffer` ring and requires cross-origin
|
|
192
|
+
isolation in browsers; ordinary audio processing remains available when shared memory is absent.
|
|
193
|
+
Low-level callers that manually pair the returned node options with `OndaAudioProcessor` must pass
|
|
194
|
+
`processorOptions.executionOutputRing` as the adapter constructor's fourth argument.
|
|
195
|
+
|
|
196
|
+
### `OndaAudioProcessor`
|
|
197
|
+
|
|
198
|
+
The adapter exposes its `node` and validated `metadata`, plus these operations:
|
|
199
|
+
|
|
200
|
+
- `setParam(nameOrIndex, plain)` and `setParamNormalized(nameOrIndex, normalized)`.
|
|
201
|
+
- `trigger(nameOrIndex, values?)` for input events.
|
|
202
|
+
- `onDelegates(listener)` and `onPrint(listener)`, each returning an unsubscribe function.
|
|
203
|
+
- `init(mode)`, `snapshot()`, and `restoreSnapshot(bytes)`.
|
|
204
|
+
- `readControlOutputs()` and `readBuffer(nameOrIndex)`.
|
|
205
|
+
- `request(type, fields?, transfer?)` for adapter protocol extensions.
|
|
206
|
+
- `close(reason?)`, an idempotent terminal release of adapter-side resources.
|
|
207
|
+
|
|
208
|
+
Delegate and print batches report `overflowCount` for generated-storage loss and
|
|
209
|
+
`transportDropCount` for bounded worklet-to-main queue loss. Loss-only notifications can arrive
|
|
210
|
+
without occurrences. Collection is enabled only while the corresponding listener set is nonempty;
|
|
211
|
+
setting the capacity to zero disables host delivery even with listeners while preserving language
|
|
212
|
+
evaluation semantics.
|
|
213
|
+
|
|
214
|
+
With both listener types active, the adapter invokes them in call-local sequence order and may split
|
|
215
|
+
a same-stream batch around an intervening occurrence from the other stream. Ordering resets for
|
|
216
|
+
each init, event, or process segment.
|
|
217
|
+
|
|
218
|
+
`ONDA_INIT_FULL` clears and initializes all physical state. `ONDA_INIT_PRESERVE_PINNED` retains
|
|
219
|
+
pinned state according to the processor ABI. The package also re-exports the prepared and one-shot
|
|
220
|
+
parameter conversion helpers.
|
|
221
|
+
|
|
222
|
+
`@onda-lang/webaudio/worklet` is the side-effect-only AudioWorklet registration module and has no
|
|
223
|
+
named exports.
|
|
224
|
+
|
|
225
|
+
## Complete exported surface
|
|
226
|
+
|
|
227
|
+
The following indexes include runtime values and TypeScript-only types from each package root.
|
|
228
|
+
They are checked against the shipped declarations so additions cannot silently escape this
|
|
229
|
+
reference. Artifact subpaths are complete processor-ABI re-exports; worker and worklet subpaths are
|
|
230
|
+
side-effect-only as described above.
|
|
231
|
+
|
|
232
|
+
### `@onda-lang/processor-abi`
|
|
233
|
+
|
|
234
|
+
<!-- BEGIN WEB API onda_processor_abi -->
|
|
235
|
+
DELEGATE_BATCH_SIZE_BYTES
|
|
236
|
+
DELEGATE_RECORD_HEADER_SIZE_BYTES
|
|
237
|
+
EXECUTION_OUTPUT_SIZE_BYTES
|
|
238
|
+
OndaArtifactError
|
|
239
|
+
OndaArtifactKind
|
|
240
|
+
OndaBufferArrayMetadata
|
|
241
|
+
OndaBufferMetadata
|
|
242
|
+
OndaDelegateBatch
|
|
243
|
+
OndaDelegateMetadata
|
|
244
|
+
OndaDelegateOccurrence
|
|
245
|
+
OndaDelegateParamMetadata
|
|
246
|
+
OndaEventMetadata
|
|
247
|
+
OndaEventParamMetadata
|
|
248
|
+
OndaIntegrationProfile
|
|
249
|
+
OndaIoMetadata
|
|
250
|
+
OndaLogSiteMetadata
|
|
251
|
+
OndaParamControlMetadata
|
|
252
|
+
OndaParamDomain
|
|
253
|
+
OndaPreparedParamControl
|
|
254
|
+
OndaPrintBatch
|
|
255
|
+
OndaPrintEntry
|
|
256
|
+
OndaProcessorArtifact
|
|
257
|
+
OndaProcessorInitMode
|
|
258
|
+
OndaProcessorMetadata
|
|
259
|
+
OndaScalarType
|
|
260
|
+
OndaStateMetadata
|
|
261
|
+
OndaTargetInfo
|
|
262
|
+
PRINT_BATCH_SIZE_BYTES
|
|
263
|
+
PRINT_RECORD_HEADER_SIZE_BYTES
|
|
264
|
+
PROCESSOR_ABI_VERSION
|
|
265
|
+
PROCESSOR_ARTIFACT_FORMAT
|
|
266
|
+
PROCESSOR_ARTIFACT_FORMAT_VERSION
|
|
267
|
+
PROCESSOR_EXECUTION_OK
|
|
268
|
+
PROCESSOR_EXECUTION_RUNTIME_SAFETY_FAILURE
|
|
269
|
+
PROCESSOR_INIT_FULL
|
|
270
|
+
PROCESSOR_INIT_PRESERVE_PINNED
|
|
271
|
+
PROCESSOR_SNAPSHOT_FORMAT_VERSION
|
|
272
|
+
constrainParamPlain
|
|
273
|
+
createParamControl
|
|
274
|
+
createParamDomain
|
|
275
|
+
createProcessorArtifactFiles
|
|
276
|
+
decodeDelegateRecords
|
|
277
|
+
decodePrintRecords
|
|
278
|
+
formatPrintBatch
|
|
279
|
+
formatPrintRecords
|
|
280
|
+
loadProcessorArtifactFiles
|
|
281
|
+
paramNormalizedToPlain
|
|
282
|
+
paramPlainToNormalized
|
|
283
|
+
parseProcessorMetadata
|
|
284
|
+
readDelegateBatch
|
|
285
|
+
readPrintBatch
|
|
286
|
+
resetExecutionOutput
|
|
287
|
+
serializeProcessorMetadata
|
|
288
|
+
validateProcessorArtifact
|
|
289
|
+
validateProcessorMetadata
|
|
290
|
+
validateProcessorModule
|
|
291
|
+
writeDelegateBatch
|
|
292
|
+
writeExecutionOutput
|
|
293
|
+
writePrintBatch
|
|
294
|
+
<!-- END WEB API onda_processor_abi -->
|
|
295
|
+
|
|
296
|
+
### `@onda-lang/binaryen-web`
|
|
297
|
+
|
|
298
|
+
<!-- BEGIN WEB API onda_binaryen_web -->
|
|
299
|
+
OndaArtifactError
|
|
300
|
+
OndaBinaryenError
|
|
301
|
+
OndaBinaryenOptions
|
|
302
|
+
OndaProcessorArtifact
|
|
303
|
+
OndaProcessorMetadata
|
|
304
|
+
PROCESSOR_ABI_VERSION
|
|
305
|
+
PROCESSOR_ARTIFACT_FORMAT
|
|
306
|
+
PROCESSOR_ARTIFACT_FORMAT_VERSION
|
|
307
|
+
PROCESSOR_EXECUTION_OK
|
|
308
|
+
PROCESSOR_EXECUTION_RUNTIME_SAFETY_FAILURE
|
|
309
|
+
PROCESSOR_SNAPSHOT_FORMAT_VERSION
|
|
310
|
+
SUPPORTED_MIR_SCHEMA_VERSION
|
|
311
|
+
compileTrustedMir
|
|
312
|
+
createDefaultImports
|
|
313
|
+
createProcessorArtifactFiles
|
|
314
|
+
loadProcessorArtifactFiles
|
|
315
|
+
parseProcessorMetadata
|
|
316
|
+
serializeProcessorMetadata
|
|
317
|
+
validateProcessorArtifact
|
|
318
|
+
validateProcessorMetadata
|
|
319
|
+
validateProcessorModule
|
|
320
|
+
<!-- END WEB API onda_binaryen_web -->
|
|
321
|
+
|
|
322
|
+
### `@onda-lang/wasm-compiler`
|
|
323
|
+
|
|
324
|
+
<!-- BEGIN WEB API onda_wasm_compiler -->
|
|
325
|
+
DirectCompilerOptions
|
|
326
|
+
MIR_SCHEMA_VERSION
|
|
327
|
+
ONDA_VERSION
|
|
328
|
+
OndaArtifactError
|
|
329
|
+
OndaBinaryenError
|
|
330
|
+
OndaBufferAssetBinding
|
|
331
|
+
OndaBufferData
|
|
332
|
+
OndaBufferElement
|
|
333
|
+
OndaCodegenOptions
|
|
334
|
+
OndaCompilationResult
|
|
335
|
+
OndaCompileConstDescriptor
|
|
336
|
+
OndaCompileConstElement
|
|
337
|
+
OndaCompileConstInspectionOptions
|
|
338
|
+
OndaCompileConstKind
|
|
339
|
+
OndaCompileConstValue
|
|
340
|
+
OndaCompileError
|
|
341
|
+
OndaCompileOptions
|
|
342
|
+
OndaCompilerDiagnostic
|
|
343
|
+
OndaCompilerError
|
|
344
|
+
OndaCompilerInstance
|
|
345
|
+
OndaLspAnalysisOptions
|
|
346
|
+
OndaLspMessage
|
|
347
|
+
OndaMaterializedProjectFile
|
|
348
|
+
OndaProcessorArtifact
|
|
349
|
+
OndaProcessorMetadata
|
|
350
|
+
OndaProjectBufferInfo
|
|
351
|
+
OndaProjectCapabilities
|
|
352
|
+
OndaProjectImageInfo
|
|
353
|
+
OndaProjectMaterialization
|
|
354
|
+
OndaResolvedCompileConstValue
|
|
355
|
+
OndaSerializedProjectImage
|
|
356
|
+
OndaSourceDocument
|
|
357
|
+
OndaSourceGraph
|
|
358
|
+
OndaSourceReferenceKind
|
|
359
|
+
OndaSourceResolution
|
|
360
|
+
OndaSourceWorkspace
|
|
361
|
+
OndaWorkerConstructor
|
|
362
|
+
OndaWorkerLike
|
|
363
|
+
PROCESSOR_ABI_VERSION
|
|
364
|
+
PROCESSOR_ARTIFACT_FORMAT
|
|
365
|
+
PROCESSOR_ARTIFACT_FORMAT_VERSION
|
|
366
|
+
PROCESSOR_EXECUTION_OK
|
|
367
|
+
PROCESSOR_EXECUTION_RUNTIME_SAFETY_FAILURE
|
|
368
|
+
PROCESSOR_SNAPSHOT_FORMAT_VERSION
|
|
369
|
+
WorkerCompilerOptions
|
|
370
|
+
createCompiler
|
|
371
|
+
createDefaultImports
|
|
372
|
+
createProcessorArtifactFiles
|
|
373
|
+
loadProcessorArtifactFiles
|
|
374
|
+
parseProcessorMetadata
|
|
375
|
+
serializeProcessorMetadata
|
|
376
|
+
validateProcessorArtifact
|
|
377
|
+
validateProcessorMetadata
|
|
378
|
+
validateProcessorModule
|
|
379
|
+
<!-- END WEB API onda_wasm_compiler -->
|
|
380
|
+
|
|
381
|
+
### `@onda-lang/webaudio`
|
|
382
|
+
|
|
383
|
+
<!-- BEGIN WEB API onda_webaudio -->
|
|
384
|
+
ONDA_AUDIO_WORKLET_PROCESSOR_NAME
|
|
385
|
+
ONDA_INIT_FULL
|
|
386
|
+
ONDA_INIT_PRESERVE_PINNED
|
|
387
|
+
OndaAudioProcessor
|
|
388
|
+
OndaAudioProcessorOptions
|
|
389
|
+
OndaAudioPrintBatch
|
|
390
|
+
OndaAudioPrintListener
|
|
391
|
+
OndaInitMode
|
|
392
|
+
OndaParamDomain
|
|
393
|
+
OndaPreparedParamControl
|
|
394
|
+
OndaProcessorArtifact
|
|
395
|
+
OndaProcessorMetadata
|
|
396
|
+
compileOndaProcessorModule
|
|
397
|
+
constrainParamPlain
|
|
398
|
+
createOndaAudioProcessor
|
|
399
|
+
createOndaAudioProcessorInitialized
|
|
400
|
+
createParamControl
|
|
401
|
+
createParamDomain
|
|
402
|
+
flattenedAudioChannelCount
|
|
403
|
+
ondaAudioWorkletNodeOptions
|
|
404
|
+
paramNormalizedToPlain
|
|
405
|
+
paramPlainToNormalized
|
|
406
|
+
registerOndaAudioWorklet
|
|
407
|
+
<!-- END WEB API onda_webaudio -->
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Synchronized from format-versions.json; do not edit this copy directly.
|
|
2
|
-
export const SUPPORTED_MIR_SCHEMA_VERSION =
|
|
2
|
+
export const SUPPORTED_MIR_SCHEMA_VERSION = 6;
|