@indra.ai/deva 1.29.3 → 1.29.5
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 +10 -14
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -355,22 +355,18 @@ class Deva {
|
|
|
355
355
|
// determine if there is an onComplete function for the entity.
|
|
356
356
|
const hasOnFunc = this[onfunc] && typeof this[onfunc] === 'function';
|
|
357
357
|
if (hasOnFunc) {
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
return this[onfunc](data, resolve);
|
|
365
|
-
});
|
|
358
|
+
this.action('onfunc', `${key}:has:${onfunc}:${data.id.uid}`); // action onfunc
|
|
359
|
+
this.state('onfunc', `${key}:has:${onfunc}:${data.id.uid}`); // state onfunc
|
|
360
|
+
this.action('return', `${onfunc}:${data.id.uid}`); // action return
|
|
361
|
+
this.state('valid', `${onfunc}:${data.id.uid}`); // state valid
|
|
362
|
+
this.intent('good', `${onfunc}:${data.id.uid}`); // intent good
|
|
363
|
+
return this[onfunc](data, resolve);
|
|
366
364
|
}
|
|
367
365
|
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
return next_key ? this[next_key](data, resolve) : resolve(data);
|
|
373
|
-
});
|
|
366
|
+
this.action('return', `${key}:${data.id.uid}`); // return action complete
|
|
367
|
+
this.state('valid', `${key}:${data.id.uid}`); // return state valid
|
|
368
|
+
this.intent('good', `${key}:${data.id.uid}`); // return intent good
|
|
369
|
+
return next_key ? this[next_key](data, resolve) : resolve(data);
|
|
374
370
|
}
|
|
375
371
|
|
|
376
372
|
/**************
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "38159520729793885324",
|
|
3
3
|
"name": "@indra.ai/deva",
|
|
4
|
-
"version": "1.29.
|
|
4
|
+
"version": "1.29.5",
|
|
5
5
|
"description": "Deva Core a Vedic-inspired Event Based Context Aware Feature, Zone, Action, and State Machine integrated Artificial Intelligence Framework",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"license": "VLA:38159520729793885324 LICENSE.md",
|