ekms 9.6.0-beta.10 → 9.6.0-beta.14
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/common/characters.js +10 -12
- package/common/comparable.instance.json +4778 -398
- package/common/comparable.js +10 -17
- package/common/comparable.test.json +6010 -1153
- package/common/dimension.instance.json +2826 -126
- package/common/dimension.js +2 -1
- package/common/dimension.test.json +30 -54
- package/common/drone.instance.json +8888 -110
- package/common/drone.js +130 -31
- package/common/drone.test.json +65974 -21
- package/common/drone_v1.instance.json +1631 -56
- package/common/drone_v1.test.json +47547 -7239
- package/common/evaluate.js +17 -5
- package/common/formulas.instance.json +227 -2
- package/common/length.instance.json +5221 -46
- package/common/length.test.json +51709 -15799
- package/common/math.instance.json +227 -2
- package/common/menus.instance.json +1633 -58
- package/common/pipboy.instance.json +4000 -175
- package/common/pipboy.js +3 -2
- package/common/pipboy.test.json +185 -70
- package/common/pressure.instance.json +935 -35
- package/common/pressure.test.json +602 -154
- package/common/rates.instance.json +2 -2
- package/common/rates.js +9 -4
- package/common/rates.test.json +18840 -5979
- package/common/reports.instance.json +454 -4
- package/common/sdefaults.js +2 -1
- package/common/temperature.instance.json +935 -35
- package/common/temperature.test.json +1483 -155
- package/common/time.instance.json +2139 -88
- package/common/time.js +7 -1
- package/common/time.test.json +7004 -272
- package/common/ui.instance.json +227 -2
- package/common/weight.instance.json +2822 -122
- package/common/weight.test.json +4680 -118
- package/common/wp.instance.json +3178 -28
- package/main.js +2 -0
- package/package.json +3 -2
package/common/characters.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const { knowledgeModule, where, process:clientProcess } = require('./runtime').theprogrammablemind
|
|
1
|
+
const { debug, knowledgeModule, where, process:clientProcess } = require('./runtime').theprogrammablemind
|
|
2
2
|
const { defaultContextCheck } = require('./helpers')
|
|
3
3
|
const gdefaults = require('./gdefaults.js')
|
|
4
4
|
const createCurrencyKM = require('./currency.js')
|
|
@@ -173,22 +173,20 @@ function initializeApi(config, api) {
|
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
|
|
176
|
-
async function
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
await config.setApi(() => api2)
|
|
184
|
-
await config.setApi(() => api)
|
|
185
|
-
}
|
|
176
|
+
async function demoInitializer(config) {
|
|
177
|
+
const timeKM = await createTimeKM()
|
|
178
|
+
const currencyKM = await createCurrencyKM()
|
|
179
|
+
const api = new Sally(timeKM)
|
|
180
|
+
const api2 = new Bob(currencyKM)
|
|
181
|
+
await config.setApi(() => api2)
|
|
182
|
+
await config.setApi(() => api)
|
|
186
183
|
}
|
|
184
|
+
|
|
187
185
|
// mode this to non-module init only
|
|
188
186
|
knowledgeModule({
|
|
189
187
|
config,
|
|
190
188
|
includes: [gdefaults],
|
|
191
|
-
|
|
189
|
+
demoInitializer,
|
|
192
190
|
multiApiInitializer: initializeApi,
|
|
193
191
|
|
|
194
192
|
module,
|