@indra.ai/deva 1.64.105 → 1.64.108
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/index.js +6 -6
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1400,7 +1400,6 @@ class Deva {
|
|
|
1400
1400
|
describe:
|
|
1401
1401
|
The shutdown state function is triggered when the Deva is shutting down.
|
|
1402
1402
|
The return will check for a custom onShutdown function.
|
|
1403
|
-
function.
|
|
1404
1403
|
***************/
|
|
1405
1404
|
shutdown(data, resolve) {
|
|
1406
1405
|
if (!this._active) return resolve(this._messages.offline);
|
|
@@ -1409,16 +1408,12 @@ class Deva {
|
|
|
1409
1408
|
return this._invoke({key, data, resolve})
|
|
1410
1409
|
}
|
|
1411
1410
|
|
|
1412
|
-
|
|
1413
|
-
////////////////////////////
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
1411
|
/**************
|
|
1417
1412
|
func: context
|
|
1418
1413
|
params:
|
|
1419
1414
|
- value: The context flag to set for the Deva that matches to this._contexts
|
|
1420
1415
|
- extra: Any extra text that is sent with the context value.
|
|
1421
|
-
describe
|
|
1416
|
+
describe: sets the context for the deva.
|
|
1422
1417
|
***************/
|
|
1423
1418
|
context(value=false, extra=false) {
|
|
1424
1419
|
if (!this._active) return this._messages.offline; // check the active status
|
|
@@ -1449,6 +1444,11 @@ class Deva {
|
|
|
1449
1444
|
}
|
|
1450
1445
|
}
|
|
1451
1446
|
|
|
1447
|
+
/**************
|
|
1448
|
+
func: contexts
|
|
1449
|
+
params: none
|
|
1450
|
+
describe: returns a list of active contexts.
|
|
1451
|
+
***************/
|
|
1452
1452
|
contexts() {
|
|
1453
1453
|
if (!this._active) return this._messages.offline; // check the active status
|
|
1454
1454
|
const id = this.uid();
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "31711622713594414221",
|
|
3
3
|
"name": "@indra.ai/deva",
|
|
4
|
-
"version": "1.64.
|
|
4
|
+
"version": "1.64.108",
|
|
5
5
|
"description": "Deva Core a Vedic-based Event Driven Context Aware Feature, Zone, Action, and State Machine integrated Artificial Intelligence Framework",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"license": "VLA:31711622713594414221 LICENSE.md",
|