@indra.ai/deva 1.4.20 → 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/_config.yml CHANGED
@@ -1,7 +1,7 @@
1
- # Copyright 2023 Quinn Michaels.
1
+ # Copyright 2025 Quinn Michaels.
2
2
 
3
3
  author:
4
4
  name: Quinn Michaels
5
- email: "qce@indra.ai"
5
+ email: "quinn@indra.ai"
6
6
 
7
7
  google_analytics: UA-126646842-1
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "AGENT",
3
3
  "describe": "AGENT FILE",
4
- "copyright": "Copyright (c)2023 Quinn Michaels. All rights reserved.",
4
+ "copyright": "Copyright (c)2025 Quinn Michaels. All rights reserved.",
5
5
  "DATA": {
6
6
  "id": 5380514963421,
7
7
  "key": "deva",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "CLIENT",
3
3
  "describe": "CLIENT FILE",
4
- "copyright": "Copyright ©2023 Quinn Michaels. All rights reserved.",
4
+ "copyright": "Copyright ©2025 Quinn Michaels. All rights reserved.",
5
5
  "DATA": {
6
6
  "id": 3123155399059,
7
7
  "key": "test",
@@ -1,4 +1,4 @@
1
- // Copyright (c)2023 Quinn Michaels
1
+ // Copyright (c)2025 Quinn Michaels
2
2
  // Distributed under the MIT software license, see the accompanying
3
3
  // file LICENSE.md or http://www.opensource.org/licenses/mit-license.php.
4
4
  const client = require('./client.json').DATA;
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/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright (c)2025 Quinn Michaels
1
+ // Copyright (c)2025 Quinn Michaels; All rights reserved.
2
2
  // Distributed under the MIT software license, see the accompanying
3
3
  // file LICENSE.md or http://www.opensource.org/licenses/mit-license.php.
4
4
  import path from 'path';
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@indra.ai/deva",
3
- "version": "1.4.20",
3
+ "version": "1.4.22",
4
4
  "description": "The Deva Core",
5
5
  "main": "index.js",
6
- "copyright": "(c) 2025 Quinn Michaels; All rights reserved.",
6
+ "copyright": "(c)2025 Quinn Michaels; All rights reserved.",
7
7
  "type": "module",
8
8
  "scripts": {
9
9
  "test": "node tests"
@@ -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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "AGENT",
3
3
  "describe": "AGENT FILE",
4
- "copyright": "Copyright (c)2023 Quinn Michaels. All rights reserved.",
4
+ "copyright": "Copyright (c)2025 Quinn Michaels. All rights reserved.",
5
5
  "DATA": {
6
6
  "id": 5380514963421,
7
7
  "key": "deva",
@@ -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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "CLIENT",
3
3
  "describe": "CLIENT FILE",
4
- "copyright": "Copyright ©2023 Quinn Michaels. All rights reserved.",
4
+ "copyright": "Copyright ©2025 Quinn Michaels. All rights reserved.",
5
5
  "DATA": {
6
6
  "id": 3123155399059,
7
7
  "key": "test",
@@ -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": [],
package/tests/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict"
2
- // Copyright (c)2024 Quinn Michaels
2
+ // Copyright (c)2025 Quinn Michaels; All rights reserved.
3
3
  // Private License
4
4
  // file LICENSE.md or http://www.opensource.org/licenses/mit-license.php.
5
5
  import Client from './client.json' with {type:'json'};