@remix_labs/machine-starter 2.2739.0-dev → 2.2741.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 +17 -0
- package/groovebox_build.js +1 -1
- package/package.json +2 -2
package/common.js
CHANGED
|
@@ -82,6 +82,10 @@ async function StartWASM2(hub, config) {
|
|
|
82
82
|
console.log("Mixcore (starter)", mixcore, ffiNames, mixcore.registerDebugObject);
|
|
83
83
|
localFFIs = {...localFFIs, ...mixcoreLocalFFIs(mixcore, ffiNames)};
|
|
84
84
|
config.mixcore = {};
|
|
85
|
+
if (mixcore.registerDebugObject) {
|
|
86
|
+
config.mixcore.publishDebugObjects = true;
|
|
87
|
+
subscribeDebugObjects(mixcore, hub, config);
|
|
88
|
+
}
|
|
85
89
|
}
|
|
86
90
|
let localFFIkind = {};
|
|
87
91
|
let localFFIfuns = {};
|
|
@@ -304,6 +308,19 @@ async function setupLocalFFIs(hub, config, localFFIs) {
|
|
|
304
308
|
}
|
|
305
309
|
}
|
|
306
310
|
|
|
311
|
+
async function subscribeDebugObjects(mixcore, hub, config) {
|
|
312
|
+
let channel = await hub.newChannel();
|
|
313
|
+
let vmID = config.vmID;
|
|
314
|
+
await channel.setLocalSubTopic(`/debug-objects/${vmID}`);
|
|
315
|
+
let sub = await channel.subscribe(`/debug-objects/${vmID}`);
|
|
316
|
+
while (true) {
|
|
317
|
+
let msg = await sub.next();
|
|
318
|
+
let id = msg.payload.id;
|
|
319
|
+
let code = msg.payload.code;
|
|
320
|
+
mixcore.registerDebugObject(id, code);
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
|
|
307
324
|
class FFIComm {
|
|
308
325
|
constructor(vmID, hub, channel) {
|
|
309
326
|
this.vmID = vmID;
|
package/groovebox_build.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var GROOVEBOX_BUILD = "
|
|
1
|
+
var GROOVEBOX_BUILD = "2987";
|
|
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.2741.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.2741.0-dev",
|
|
15
15
|
"nanoid": "^5.0.2",
|
|
16
16
|
"web-worker": "^1.2.0"
|
|
17
17
|
},
|