@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 +23 -0
- package/package.json +8 -20
- package/tests/agent.json +6 -0
- package/tests/client.json +5 -0
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.
|
|
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
|
-
"
|
|
264
|
-
"
|
|
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
|
-
"
|
|
271
|
-
"
|
|
272
|
-
"
|
|
273
|
-
"
|
|
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