@remix_labs/machine-starter 2.2817.0-dev → 2.2822.0-dev
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/common.js +10 -9
- package/groovebox_build.js +1 -1
- package/package.json +2 -2
package/common.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GROOVEBOX_BUILD } from "./groovebox_build.js";
|
|
2
2
|
import { nanoid } from "nanoid";
|
|
3
|
-
import { MixcoreTauri } from "./mixcore.lib.mjs";
|
|
3
|
+
import { MixcoreTauri, filterFFINames } from "./mixcore.lib.mjs";
|
|
4
4
|
|
|
5
5
|
let workers = {};
|
|
6
6
|
let children = {};
|
|
@@ -64,9 +64,9 @@ async function StartWASM2(hub, config) {
|
|
|
64
64
|
let worker = globalThis.GetMachineWASMWorker();
|
|
65
65
|
workers[config.vmID] = worker;
|
|
66
66
|
let localFFIs = config.localFFIs || {};
|
|
67
|
-
let
|
|
68
|
-
if (
|
|
69
|
-
Object.assign(localFFIs,
|
|
67
|
+
let mixcoreFFIs = await getMixcoreFFIs(config.mixcore);
|
|
68
|
+
if (mixcoreFFIs) {
|
|
69
|
+
Object.assign(localFFIs, mixcoreFFIs);
|
|
70
70
|
delete config.mixcore;
|
|
71
71
|
}
|
|
72
72
|
let localFFIkind = {};
|
|
@@ -346,20 +346,20 @@ class FFIComm {
|
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
348
|
|
|
349
|
-
async function
|
|
349
|
+
async function getMixcoreFFIs(config) {
|
|
350
350
|
let mixcore;
|
|
351
351
|
switch (config?.kind) {
|
|
352
352
|
case 'mixcore':
|
|
353
|
-
|
|
353
|
+
mixcore = config.mixcore;
|
|
354
354
|
case 'tauri':
|
|
355
|
-
|
|
355
|
+
mixcore = await MixcoreTauri.create(config.workspace, config.app);
|
|
356
356
|
default:
|
|
357
357
|
return;
|
|
358
358
|
}
|
|
359
|
-
}
|
|
360
359
|
|
|
361
|
-
async function mixcoreLocalFFIs(mixcore) {
|
|
362
360
|
let names = await mixcore.ffiNames();
|
|
361
|
+
names = filterFFINames(names, enableFFIs, disableFFIs);
|
|
362
|
+
|
|
363
363
|
let localFFIs = {};
|
|
364
364
|
for (let name of names) {
|
|
365
365
|
localFFIs[name] = {
|
|
@@ -367,6 +367,7 @@ async function mixcoreLocalFFIs(mixcore) {
|
|
|
367
367
|
run: (conn, argsBuf) => mixcore.ffiDispatch(conn.call_id, name, argsBuf),
|
|
368
368
|
};
|
|
369
369
|
}
|
|
370
|
+
|
|
370
371
|
return localFFIs;
|
|
371
372
|
}
|
|
372
373
|
|
package/groovebox_build.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var GROOVEBOX_BUILD = "
|
|
1
|
+
var GROOVEBOX_BUILD = "3101";
|
|
2
2
|
export { GROOVEBOX_BUILD }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remix_labs/machine-starter",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2822.0-dev",
|
|
4
4
|
"description": "start the groove",
|
|
5
5
|
"main": "node.js",
|
|
6
6
|
"browser": "index.js",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"author": "Remixlabs staff",
|
|
12
12
|
"license": "ISC",
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@remix_labs/hub-client": "2.
|
|
14
|
+
"@remix_labs/hub-client": "2.2822.0-dev",
|
|
15
15
|
"nanoid": "^5.0.2",
|
|
16
16
|
"web-worker": "^1.2.0"
|
|
17
17
|
},
|