@indra.ai/deva 1.64.23 → 1.64.25

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/_data/msgs.json CHANGED
@@ -23,7 +23,7 @@
23
23
  "asktimeout": "⛔️ ASK TIMEOUT",
24
24
  "noask": "⛔️ ASK TARGET NOT FOUND",
25
25
  "method_not_found": "⛔️ METHOD NOT FOUND",
26
- "help_not_found": "⛔️ HELP NOT FOUND",
26
+ "help_not_found": "⛔️ HELP FILE NOT FOUND",
27
27
  "invalid_agent": "⛔️ Agent Hash Invalid",
28
28
  "invalid_client": "⛔️ Client Hash Invalid",
29
29
  "personalVLA": "❌ Bad Personal VLA",
package/index.js CHANGED
@@ -1967,13 +1967,14 @@ class Deva {
1967
1967
 
1968
1968
  const helpPath = this.lib.path.join(help_dir, key, `${helpFile}.feecting`);
1969
1969
 
1970
+ this.state('try', `${key}:${id.uid}`);
1970
1971
  try {
1971
- this.state('try', `${key}:${id.uid}`);
1972
-
1973
1972
  // check if help file exists first and resolve if no file
1974
1973
  const helpExists = this.lib.fs.existsSync(helpPath); // check if help file exists
1975
1974
  if (!helpExists) {
1976
- this.action('resolve', `${key}:not:found:${id.uid}`);
1975
+ this.action('resolve', `${key}:not:exists:${id.uid}`);
1976
+ this.state('invalid', `${key}:not:exists:${id.uid}`);
1977
+ this.intent('bad', `${key}:not:exists:${id.uid}`);
1977
1978
  return resolve(this._messages.help_not_found);
1978
1979
  }
1979
1980
 
@@ -1981,24 +1982,25 @@ class Deva {
1981
1982
  const helpFile = this.lib.fs.readFileSync(helpPath, 'utf8');
1982
1983
  const helpPart = helpFile.split(`${this.container.begin}:${part}`);
1983
1984
  if (!helpPart[1]) {
1984
- this.action('resolve', `${this._messages.help_not_found}:${id.uid}`);
1985
- resolve(this._messages.help_not_found);
1985
+ this.action('resolve', `${key}:not:found:${id.uid}`);
1986
+ this.state('invalid', `${key}:not:found:${id.uid}`);
1987
+ this.intent('bad', `${key}:not:found:${id.uid}`);
1988
+ return resolve(this._messages.help_not_found);
1986
1989
  }
1987
1990
 
1988
1991
  // last set the help doc and split out the selected part.
1989
1992
  helpDoc = helpFile.split(`${this.container.begin}:${part}`)[1].split(`${this.container.end}:${part}`)[0];
1993
+
1994
+ this.action('resolve', `${key}:${id.uid}`);
1995
+ this.state('valid', `${key}:${id.uid}`);
1996
+ this.intent('good', `${key}:${id.uid}`);
1997
+ return resolve(helpDoc);
1990
1998
  }
1991
1999
  catch(e) {
1992
2000
  this.state('catch', `${key}:${id.uid}`);
1993
2001
  this.intent('bad', `${key}:${id.uid}`);
1994
2002
  return this.err(e, msg, reject);
1995
2003
  }
1996
- finally {
1997
- this.action('resolve', `${key}:${id.uid}`);
1998
- this.state('valid', `${key}:${id.uid}`);
1999
- this.intent('good', `${key}:${id.uid}`);
2000
- return resolve(helpDoc);
2001
- }
2002
2004
  });
2003
2005
  }
2004
2006
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "31711622713594414221",
3
3
  "name": "@indra.ai/deva",
4
- "version": "1.64.23",
4
+ "version": "1.64.25",
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:31711622713594414221 LICENSE.md",