@indra.ai/deva.security 0.12.6 → 0.13.1
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 +19 -4
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -10,6 +10,13 @@ import { MongoClient, ObjectId } from 'mongodb';
|
|
|
10
10
|
import pkg from './package.json' with {type:'json'};
|
|
11
11
|
const {agent,vars} = pkg.data;
|
|
12
12
|
|
|
13
|
+
import vector from '/Users/quinnmichaels/Dev/deva.space/devas/deva.vector/index.js';
|
|
14
|
+
import guard from '/Users/quinnmichaels/Dev/deva.space/devas/deva.guard/index.js';
|
|
15
|
+
import wall from '/Users/quinnmichaels/Dev/deva.space/devas/deva.wall/index.js';
|
|
16
|
+
import defense from '/Users/quinnmichaels/Dev/deva.space/devas/deva.defense/index.js';
|
|
17
|
+
import shield from '/Users/quinnmichaels/Dev/deva.space/devas/deva.shield/index.js';
|
|
18
|
+
import proxy from '/Users/quinnmichaels/Dev/deva.space/devas/deva.proxy/index.js';
|
|
19
|
+
|
|
13
20
|
// set the __dirname
|
|
14
21
|
import {dirname} from 'node:path';
|
|
15
22
|
import {fileURLToPath} from 'node:url';
|
|
@@ -30,7 +37,7 @@ const info = {
|
|
|
30
37
|
copyright: pkg.copyright,
|
|
31
38
|
};
|
|
32
39
|
|
|
33
|
-
const
|
|
40
|
+
const SecurityDeva = new Deva({
|
|
34
41
|
info,
|
|
35
42
|
agent,
|
|
36
43
|
vars,
|
|
@@ -68,7 +75,14 @@ const SECURITY = new Deva({
|
|
|
68
75
|
},
|
|
69
76
|
},
|
|
70
77
|
modules: {},
|
|
71
|
-
devas: {
|
|
78
|
+
devas: {
|
|
79
|
+
vector,
|
|
80
|
+
// guard,
|
|
81
|
+
// wall,
|
|
82
|
+
// defense,
|
|
83
|
+
// shield,
|
|
84
|
+
// proxy,
|
|
85
|
+
},
|
|
72
86
|
func: {
|
|
73
87
|
/**************
|
|
74
88
|
func: write_log
|
|
@@ -99,7 +113,7 @@ const SECURITY = new Deva({
|
|
|
99
113
|
this.action('return', `onInit:${data.id.uid}`);
|
|
100
114
|
return license_check ? this.start(data, resolve) : this.stop(data, resolve);
|
|
101
115
|
},
|
|
102
|
-
onReady(data, resolve) {
|
|
116
|
+
async onReady(data, resolve) {
|
|
103
117
|
const {VLA} = this.info();
|
|
104
118
|
|
|
105
119
|
this.state('get', `mongo:global:${data.id.uid}`);
|
|
@@ -114,6 +128,7 @@ const SECURITY = new Deva({
|
|
|
114
128
|
this.prompt(`${this.vars.messages.ready} > VLA:${VLA.uid}`);
|
|
115
129
|
|
|
116
130
|
this.action('resolve', `onReady:${data.id.uid}`);
|
|
131
|
+
this.prompt(`this is the main security`)
|
|
117
132
|
return resolve(data);
|
|
118
133
|
},
|
|
119
134
|
onError(err, data, reject) {
|
|
@@ -122,4 +137,4 @@ const SECURITY = new Deva({
|
|
|
122
137
|
return reject(err);
|
|
123
138
|
}
|
|
124
139
|
});
|
|
125
|
-
export default
|
|
140
|
+
export default SecurityDeva
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "40899039373337698066",
|
|
3
3
|
"name": "@indra.ai/deva.security",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.13.1",
|
|
5
5
|
"license": "VLA:40899039373337698066 LICENSE.md",
|
|
6
6
|
"VLA": {
|
|
7
7
|
"uid": "40899039373337698066",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
},
|
|
59
59
|
"homepage": "https://deva.space/devas/security",
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@indra.ai/deva": "^1.
|
|
61
|
+
"@indra.ai/deva": "^1.29.1",
|
|
62
62
|
"mongodb": "^6.20.0"
|
|
63
63
|
},
|
|
64
64
|
"data": {
|