@indra.ai/deva 1.4.21 β†’ 1.4.23

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 CHANGED
@@ -282,6 +282,17 @@ class Deva {
282
282
  return this.Feature('security', resolve, reject);
283
283
  }
284
284
 
285
+ /**************
286
+ func: Guard
287
+ params: client: false
288
+ describe:
289
+ The Guard feature sets the correct variables and necessary rules for the
290
+ client presented data.
291
+ ***************/
292
+ Guard(resolve, reject) {
293
+ return this.Feature('guard', resolve, reject);
294
+ }
295
+
285
296
  /**************
286
297
  func: Defense
287
298
  params: client: false
@@ -519,6 +530,7 @@ class Deva {
519
530
 
520
531
  if (isAsk) { // isAsk check if the question isAsk and talk
521
532
  // if: isAsk wait for the once event which is key'd to the packet ID for specified responses
533
+ this.zone('ask', key);
522
534
  this.action('talk', `${key}:ask`);
523
535
  this.talk(`${key}:ask`, packet);
524
536
  this.once(`${key}:ask:${packet.id}`, answer => {
@@ -724,6 +736,8 @@ class Deva {
724
736
  return this.Client(client, resolve, reject);
725
737
  }).then(() => {
726
738
  return this.Security(resolve, reject);
739
+ }).then(() => {
740
+ return this.Guard(resolve, reject);
727
741
  }).then(() => {
728
742
  return this.Defense(resolve, reject);
729
743
  }).then(() => {
@@ -1247,6 +1261,16 @@ class Deva {
1247
1261
  return this._getFeature('security', this._security);
1248
1262
  }
1249
1263
 
1264
+ /**************
1265
+ func: guard
1266
+ params: none
1267
+ describe: basic guard features available in a Deva.
1268
+ usage: this.guard()
1269
+ ***************/
1270
+ guard() {
1271
+ return this._getFeature('guard', this._guard);
1272
+ }
1273
+
1250
1274
  /**************
1251
1275
  func: defense
1252
1276
  params: none
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indra.ai/deva",
3
- "version": "1.4.21",
3
+ "version": "1.4.23",
4
4
  "description": "The Deva Core",
5
5
  "main": "index.js",
6
6
  "copyright": "(c)2025 Quinn Michaels; All rights reserved.",
@@ -82,7 +82,8 @@
82
82
  "zone": "deva",
83
83
  "zones": {
84
84
  "question": "πŸ™‹β€β™‚οΈ Question",
85
- "answer": "πŸ‘¨β€πŸ« Teacher",
85
+ "answer": "πŸ‘¨β€πŸ« Answer",
86
+ "ask": "πŸ“£ Ask",
86
87
  "load": "πŸš› Load",
87
88
  "unload": "πŸ›» Unload",
88
89
  "init": "πŸš€ Init",
@@ -103,6 +104,7 @@
103
104
  "authority": "πŸš” Authority",
104
105
  "justice": "βš–οΈ Justice",
105
106
  "defense": "πŸͺ– Defense",
107
+ "guard": "πŸ’‚ Guard",
106
108
  "help": "πŸ’š Help",
107
109
  "error": "❌ Error!"
108
110
  },
@@ -260,28 +262,15 @@
260
262
  "client": "πŸ‘¨ Client",
261
263
  "init": "πŸš€ Init",
262
264
  "security": "πŸ” Security",
263
- "support": "πŸ’Ό Support",
264
- "services": "πŸ› οΈ Services",
265
- "systems": "πŸ–₯️️ Systems",
266
- "networks": "πŸ›œοΈοΈ Networks",
265
+ "defense": "πŸͺ–️️ Defense",
266
+ "guard": "πŸ’‚ Guard",
267
267
  "legal": "πŸ—‚οΈοΈοΈ Legal",
268
268
  "justice": "πŸ›οΈοΈ Justice",
269
269
  "authority": "πŸš“οΈοΈ Authority",
270
- "defense": "πŸͺ–️️ Defense",
271
- "cipher": "πŸ”’ Cipher",
272
- "decipher": "πŸ”“ Decipher",
273
- "promp": "πŸͺ΅ Prompt",
274
- "getToday": "πŸ“† Get Today",
275
- "formatDate": "πŸ“… Format Date",
276
- "formatTime": "πŸ•°οΈ Format Time",
277
- "formatCurrency": "πŸ’° Format Currency",
278
- "formatPercent": "% Format Percent",
279
- "formatNumbert": "# Format Number",
280
- "trimWords": "πŸ™Š Trim Words",
281
- "dupes": "πŸ“‹ Duplicates",
282
- "info": "πŸ’β€β™‚οΈ Info",
283
- "status": "❀️ Status",
284
- "help": "🌈 Help"
270
+ "support": "πŸ’Ό Support",
271
+ "services": "πŸ› οΈ Services",
272
+ "systems": "πŸ–₯️️ Systems",
273
+ "networks": "πŸ›œοΈοΈ Networks"
285
274
  },
286
275
  "message": "offline",
287
276
  "messages": {
package/tests/agent.json CHANGED
@@ -77,6 +77,12 @@
77
77
  "name": "@DEFENSE",
78
78
  "tag": "#DEFENSE",
79
79
  "loc": "$DEFENSE"
80
+ },
81
+ "defense": {
82
+ "label": "πŸ’‚GUARD",
83
+ "name": "@GUARD",
84
+ "tag": "#GUARD",
85
+ "loc": "$GUARD"
80
86
  }
81
87
  },
82
88
  "vars": {
package/tests/client.json CHANGED
@@ -45,6 +45,11 @@
45
45
  "global": [],
46
46
  "devas": {}
47
47
  },
48
+ "guard": {
49
+ "concerns": [],
50
+ "global": [],
51
+ "devas": {}
52
+ },
48
53
  "support": {
49
54
  "concerns": [],
50
55
  "global": [],