@indra.ai/deva 1.1.104 → 1.1.106

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 (3) hide show
  1. package/config.json +15 -5
  2. package/index.js +51 -1
  3. package/package.json +1 -1
package/config.json CHANGED
@@ -119,10 +119,15 @@
119
119
  "mind": "MIND",
120
120
  "Mind": "Mind Feature",
121
121
  "client_data": "client configure",
122
- "invalid": "Invalid",
123
- "finish": "Finished",
124
- "error": "Error",
125
- "done": "Done"
122
+ "invalid": "::agent.name:: invalid",
123
+ "finish": "::agent.name:: finished",
124
+ "error": "::agent.name:: error",
125
+ "done": "::agent.name:: eone",
126
+ "states": "::agent.name:: getting states",
127
+ "actions": "::agent.name:: getting actions",
128
+ "zones": "::agent.name:: getting zones",
129
+ "features": "::agent.name:: Getting features",
130
+ "contexs": "::agent.name:: Getting contexts"
126
131
  },
127
132
  "feature": false,
128
133
  "features": {
@@ -238,7 +243,12 @@
238
243
  "finish": "::agent.name:: has finished the action",
239
244
  "done": "::agent.name:: done",
240
245
  "error": "::agent.name:: error",
241
- "help": "::agent.name:: providing help"
246
+ "help": "::agent.name:: providing help",
247
+ "states": "::agent.name:: is listing the states",
248
+ "actions": "::agent.name:: is listing the actions",
249
+ "zones": "::agent.name:: is listing the zones",
250
+ "features": "::agent.name:: is listing the features",
251
+ "contexts": "::agent.name:: is listing the contexts"
242
252
  },
243
253
  "features": {
244
254
  "security": "::agent.name:: accessing #security feature",
package/index.js CHANGED
@@ -1190,7 +1190,14 @@ class Deva {
1190
1190
  describe: returns the avaiable staets values.
1191
1191
  ***************/
1192
1192
  states() {
1193
- return this._states;
1193
+ this.action('states');
1194
+ return {
1195
+ id: this.uid(true),
1196
+ key: 'states',
1197
+ value: this._states,
1198
+ messages: this._messages.states,
1199
+ created: Date.now(),
1200
+ }
1194
1201
  }
1195
1202
 
1196
1203
  /**************
@@ -1219,6 +1226,16 @@ class Deva {
1219
1226
  }
1220
1227
  }
1221
1228
 
1229
+ zones() {
1230
+ this.action('zones');
1231
+ return {
1232
+ id: this.uid(true),
1233
+ key: 'zones',
1234
+ value: this._zones,
1235
+ messages: this._messages.zones,
1236
+ created: Date.now(),
1237
+ }
1238
+ }
1222
1239
  /**************
1223
1240
  func: action
1224
1241
  params:
@@ -1246,6 +1263,17 @@ class Deva {
1246
1263
  }
1247
1264
  }
1248
1265
 
1266
+ actions() {
1267
+ this.action('actions');
1268
+ return {
1269
+ id: this.uid(true),
1270
+ key: 'actions',
1271
+ value: this._actions,
1272
+ messages: this._messages.actions,
1273
+ created: Date.now(),
1274
+ }
1275
+ }
1276
+
1249
1277
  /**************
1250
1278
  func: feature
1251
1279
  params:
@@ -1272,6 +1300,17 @@ class Deva {
1272
1300
  }
1273
1301
  }
1274
1302
 
1303
+ features() {
1304
+ this.action('features');
1305
+ return {
1306
+ id: this.uid(true),
1307
+ key: 'features',
1308
+ value: this._features,
1309
+ messages: this._messages.features,
1310
+ created: Date.now(),
1311
+ }
1312
+ }
1313
+
1275
1314
  /**************
1276
1315
  func: context
1277
1316
  params:
@@ -1297,6 +1336,17 @@ class Deva {
1297
1336
  }
1298
1337
  }
1299
1338
 
1339
+ contexts() {
1340
+ this.action('contexts');
1341
+ return {
1342
+ id: this.uid(true),
1343
+ key: 'contexts',
1344
+ value: this._contexts,
1345
+ messages: this.vars.context || false,
1346
+ created: Date.now(),
1347
+ }
1348
+ }
1349
+
1300
1350
 
1301
1351
  ///////////////////////////
1302
1352
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indra.ai/deva",
3
- "version": "1.1.104",
3
+ "version": "1.1.106",
4
4
  "description": "The Deva Core",
5
5
  "main": "index.js",
6
6
  "scripts": {