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 +1 -1
- package/src/configHelpers.js +8 -0
package/package.json
CHANGED
package/src/configHelpers.js
CHANGED
|
@@ -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 {
|