@indra.ai/deva 1.1.55 → 1.1.56

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.
Files changed (2) hide show
  1. package/index.js +22 -7
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -227,7 +227,7 @@ class Deva {
227
227
  Systems: `👷‍♂️ ${this._features.Systems} ready`,
228
228
  research: `👩‍🔬 ${this._features.research} action`,
229
229
  Research: `👨‍🔬 ${this._features.Research} ready`,
230
- development: `👩‍💻 ${this._features.Development} action`,
230
+ development: `👩‍💻 ${this._features.development} action`,
231
231
  Development: `👨‍💻 ${this._features.Development} ready`,
232
232
  business: `👩‍💼 ${this._features.business} action`,
233
233
  Business: `👨‍💼 ${this._features.Business} ready`,
@@ -1571,11 +1571,13 @@ class Deva {
1571
1571
  describe: basic development features available in a Deva.
1572
1572
  ***************/
1573
1573
  development(opts) {
1574
+ this.feature('development'); // set the development state
1574
1575
  try {
1575
1576
  if (!this._active) return this._messages.states.offline; // chek the active status
1576
- this.feature('development'); // set the development state
1577
+ this.action('development'); // set the development state
1577
1578
  return this._development; // return development feature
1578
1579
  } catch (e) {
1580
+ this.action('error');
1579
1581
  this.feature('error');
1580
1582
  return this.error(e);
1581
1583
  }
@@ -1587,11 +1589,13 @@ class Deva {
1587
1589
  describe: basic assistant features available in a Deva.
1588
1590
  ***************/
1589
1591
  assistant(opts) {
1592
+ this.feature('assistant'); // set the assistant state
1590
1593
  try {
1591
1594
  if (!this._active) return this._messages.states.offline; // chek the active status
1592
- this.feature('assistant'); // set the assistant state
1595
+ this.action('assistant'); // set the assistant state
1593
1596
  return this._assistant; // return assistant feature
1594
1597
  } catch (e) {
1598
+ this.action('error');
1595
1599
  this.feature('error');
1596
1600
  return this.error(e);
1597
1601
  }
@@ -1603,11 +1607,13 @@ class Deva {
1603
1607
  describe: basic business features available in a Deva.
1604
1608
  ***************/
1605
1609
  business(opts) {
1610
+ this.feature('business'); // set the business state
1606
1611
  try {
1607
1612
  if (!this._active) return this._messages.states.offline; // chek the active status
1608
- this.feature('business'); // set the business state
1613
+ this.action('business');
1609
1614
  return this._business; // return business feature
1610
1615
  } catch (e) {
1616
+ this.action('error');
1611
1617
  this.feature('error');
1612
1618
  return this.error('error');
1613
1619
  }
@@ -1619,11 +1625,13 @@ class Deva {
1619
1625
  describe: basic legal features available in a Deva.
1620
1626
  ***************/
1621
1627
  legal(opts) {
1628
+ this.feature('legal'); // set the legal state
1622
1629
  try {
1623
1630
  if (!this._active) return this._messages.states.offline; // chek the active status
1624
- this.feature('legal'); // set the legal state
1631
+ this.action('legal');
1625
1632
  return this._legal; // return legal feature
1626
1633
  } catch (e) {
1634
+ this.action('error');
1627
1635
  this.feature('error');
1628
1636
  return this.error(e);
1629
1637
  }
@@ -1635,9 +1643,16 @@ class Deva {
1635
1643
  describe: basic story features available in a Deva.
1636
1644
  ***************/
1637
1645
  story(opts) {
1638
- if (!this._active) return this._messages.states.offline; // chek the active status
1639
1646
  this.feature('story'); // set the story state
1640
- return this._story; // return story feature
1647
+ try {
1648
+ if (!this._active) return this._messages.states.offline; // chek the active status
1649
+ this.action('story');
1650
+ return this._story; // return story feature
1651
+ } catch (e) {
1652
+ this.action('error');
1653
+ this.feature('error');
1654
+ return this.error(e);
1655
+ }
1641
1656
  }
1642
1657
 
1643
1658
  /**************
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indra.ai/deva",
3
- "version": "1.1.55",
3
+ "version": "1.1.56",
4
4
  "description": "The Deva Core",
5
5
  "main": "index.js",
6
6
  "scripts": {