@bian-womp/spark-workbench 0.3.80 → 0.3.81

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/lib/cjs/index.cjs CHANGED
@@ -1570,10 +1570,10 @@ class RemoteGraphRunner extends AbstractGraphRunner {
1570
1570
  isRecord(value) {
1571
1571
  return typeof value === "object" && value !== null;
1572
1572
  }
1573
- isRegistryDescriptorEvent(message) {
1573
+ isRegistryEvent(message) {
1574
1574
  if (!this.isRecord(message))
1575
1575
  return false;
1576
- if (message.type !== "registry-descriptor")
1576
+ if (message.type !== "registry")
1577
1577
  return false;
1578
1578
  if (!this.isRecord(message.payload))
1579
1579
  return false;
@@ -1677,7 +1677,7 @@ class RemoteGraphRunner extends AbstractGraphRunner {
1677
1677
  const reason = msg.payload.reason;
1678
1678
  console.warn(`[RemoteGraphRunner] Flow closed (runner=${this.runnerId}, reason=${typeof reason === "string" ? reason : "unknown"})`);
1679
1679
  }
1680
- else if (this.isRegistryDescriptorEvent(msg)) {
1680
+ else if (this.isRegistryEvent(msg)) {
1681
1681
  this.applyRegistryDescriptor(msg.payload.registry);
1682
1682
  }
1683
1683
  // Call original handler if provided
@@ -1697,7 +1697,7 @@ class RemoteGraphRunner extends AbstractGraphRunner {
1697
1697
  this.client = client;
1698
1698
  this.valueCache.clear();
1699
1699
  this.listenersBound = false;
1700
- // Wait for registry descriptor pushed by backend on flow-open.
1700
+ // Wait for registry runtime event pushed by backend on flow-open.
1701
1701
  if (!this.registryFetched) {
1702
1702
  console.info("[RemoteGraphRunner] Waiting for registry bootstrap event...");
1703
1703
  await this.waitForRegistryBootstrap();