feat: add initial debug node

This commit is contained in:
release-bot
2026-02-12 14:00:18 +01:00
parent e23cad254d
commit 072ab9063b
2 changed files with 24 additions and 3 deletions

View File

@@ -32,7 +32,21 @@
const { data } = $props();
const registryCache = new IndexDBCache('node-registry');
const nodeRegistry = new RemoteNodeRegistry('', registryCache);
const debugNode = {
id: 'max/plantarium/debug',
inputs: {
a: {
type: '*'
}
},
execute(data: Int32Array) {
console.log({ data });
return data;
}
} as const;
const nodeRegistry = new RemoteNodeRegistry('', registryCache, [debugNode]);
const workerRuntime = new WorkerRuntimeExecutor();
const runtimeCache = new MemoryRuntimeCache();
const memoryRuntime = new MemoryRuntimeExecutor(nodeRegistry, runtimeCache);