@indra.ai/deva 1.4.21 β†’ 1.4.22

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
@@ -724,6 +735,8 @@ class Deva {
724
735
  return this.Client(client, resolve, reject);
725
736
  }).then(() => {
726
737
  return this.Security(resolve, reject);
738
+ }).then(() => {
739
+ return this.Guard(resolve, reject);
727
740
  }).then(() => {
728
741
  return this.Defense(resolve, reject);
729
742
  }).then(() => {
@@ -1247,6 +1260,16 @@ class Deva {
1247
1260
  return this._getFeature('security', this._security);
1248
1261
  }
1249
1262
 
1263
+ /**************
1264
+ func: guard
1265
+ params: none
1266
+ describe: basic guard features available in a Deva.
1267
+ usage: this.guard()
1268
+ ***************/
1269
+ guard() {
1270
+ return this._getFeature('guard', this._guard);
1271
+ }
1272
+
1250
1273
  /**************
1251
1274
  func: defense
1252
1275
  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.22",
4
4
  "description": "The Deva Core",
5
5
  "main": "index.js",
6
6
  "copyright": "(c)2025 Quinn Michaels; All rights reserved.",
@@ -103,6 +103,7 @@
103
103
  "authority": "πŸš” Authority",
104
104
  "justice": "βš–οΈ Justice",
105
105
  "defense": "πŸͺ– Defense",
106
+ "guard": "πŸ’‚ Guard",
106
107
  "help": "πŸ’š Help",
107
108
  "error": "❌ Error!"
108
109
  },
@@ -260,28 +261,15 @@
260
261
  "client": "πŸ‘¨ Client",
261
262
  "init": "πŸš€ Init",
262
263
  "security": "πŸ” Security",
263
- "support": "πŸ’Ό Support",
264
- "services": "πŸ› οΈ Services",
265
- "systems": "πŸ–₯️️ Systems",
266
- "networks": "πŸ›œοΈοΈ Networks",
264
+ "defense": "πŸͺ–️️ Defense",
265
+ "guard": "πŸ’‚ Guard",
267
266
  "legal": "πŸ—‚οΈοΈοΈ Legal",
268
267
  "justice": "πŸ›οΈοΈ Justice",
269
268
  "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"
269
+ "support": "πŸ’Ό Support",
270
+ "services": "πŸ› οΈ Services",
271
+ "systems": "πŸ–₯️️ Systems",
272
+ "networks": "πŸ›œοΈοΈ Networks"
285
273
  },
286
274
  "message": "offline",
287
275
  "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": [],