theprogrammablemind 9.4.5-beta.5 → 9.4.5-beta.6

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/package.json CHANGED
@@ -71,6 +71,6 @@
71
71
  "sort-json": "^2.0.0",
72
72
  "uuid": "^8.3.2"
73
73
  },
74
- "version": "9.4.5-beta.5",
74
+ "version": "9.4.5-beta.6",
75
75
  "license": "UNLICENSED"
76
76
  }
@@ -471,6 +471,14 @@ const loadInstance = async (config, instance) => {
471
471
 
472
472
  const uuid = config.nameToUUID(instance.name)
473
473
  setupArgs(args, config, config.logs, hierarchy, uuid)
474
+ if (config.name == instance.name) {
475
+ args.isModule = !!config.isModule
476
+ args.isProcess = !config.isModule
477
+ } else {
478
+ // only main can load as process
479
+ args.isModule = true
480
+ args.isProcess = false
481
+ }
474
482
  await results.apply(args)
475
483
  } else if (results.isFragment) {
476
484
  } else {