theprogrammablemind 9.1.1-beta.33 → 9.1.1-beta.35

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/client.js CHANGED
@@ -1186,6 +1186,7 @@ const knowledgeModuleImpl = async ({
1186
1186
  initializer,
1187
1187
  terminator,
1188
1188
  multiApiInitializer,
1189
+ sendObjectsToServer,
1189
1190
 
1190
1191
  module: moduleFromJSFile,
1191
1192
  description,
@@ -1237,6 +1238,9 @@ const knowledgeModuleImpl = async ({
1237
1238
 
1238
1239
  const createConfig = async () => {
1239
1240
  const config = new Config(configStruct, moduleFromJSFile, _process, apiKMs)
1241
+ if (sendObjectsToServer) {
1242
+ config.setSendObjectsToServer()
1243
+ }
1240
1244
  setupConfig(config)
1241
1245
  config.expect_template = !!template
1242
1246
  config.setTerminator(terminator)
package/package.json CHANGED
@@ -69,6 +69,6 @@
69
69
  "sort-json": "^2.0.0",
70
70
  "uuid": "^8.3.2"
71
71
  },
72
- "version": "9.1.1-beta.33",
72
+ "version": "9.1.1-beta.35",
73
73
  "license": "UNLICENSED"
74
74
  }
package/src/config.js CHANGED
@@ -1332,7 +1332,9 @@ class Config {
1332
1332
  Object.assign(data, this.config)
1333
1333
  // greg99 delete data.objects
1334
1334
  data.objects = {...this.config.objects}
1335
- delete data.objects.namespaced
1335
+ if (!this.sendObjectsToServer) {
1336
+ delete data.objects.namespaced
1337
+ }
1336
1338
  config_toServer(data)
1337
1339
  }
1338
1340
 
@@ -2006,6 +2008,7 @@ class Config {
2006
2008
  this.wasInitialized = false
2007
2009
  this.configs = []
2008
2010
  this._api = undefined
2011
+ this.sendObjectsToServer = false
2009
2012
  this._namespace = []
2010
2013
  this._eqClasses = []
2011
2014
  // this._uuid = uuidv4()
@@ -2030,6 +2033,10 @@ class Config {
2030
2033
  debugConfigProps(this.config)
2031
2034
  }
2032
2035
 
2036
+ setSendObjectsToServer() {
2037
+ this.sendObjectsToServer = true
2038
+ }
2039
+
2033
2040
  addArgs (moreArgs) {
2034
2041
  this.addedArgss.push(moreArgs)
2035
2042
  }
@@ -2276,6 +2283,7 @@ class Config {
2276
2283
  cp.testConfig = this.testConfig
2277
2284
  cp._server = this._server
2278
2285
  cp.hierarchy = new DigraphInternal(this.config.hierarchy)
2286
+ cp.sendObjectsToServer = this.sendObjectsToServer
2279
2287
 
2280
2288
  cp.initConfig = _.cloneDeep(this.initConfig)
2281
2289
  cp.defaultConfig()