@indra.ai/deva.security 0.0.3 → 0.0.5
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 -16
- package/package.json +6 -5
package/index.js
CHANGED
|
@@ -1,24 +1,31 @@
|
|
|
1
|
-
// Copyright (c)
|
|
1
|
+
// Copyright (c)2025 Quinn Michaels
|
|
2
2
|
// Security Deva
|
|
3
3
|
// Security Deva Manages Security in deva.world.
|
|
4
|
-
|
|
4
|
+
import Deva from '@indra.ai/deva';
|
|
5
|
+
import pkg from './package.json' with {type:'json'};
|
|
6
|
+
|
|
7
|
+
import data from './data.json' with {type:'json'};
|
|
8
|
+
const {agent,vars} = data.DATA;
|
|
9
|
+
|
|
10
|
+
// set the __dirname
|
|
11
|
+
import {dirname} from 'node:path';
|
|
12
|
+
import {fileURLToPath} from 'node:url';
|
|
13
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
14
|
+
|
|
5
15
|
const info = {
|
|
6
|
-
id:
|
|
7
|
-
name:
|
|
8
|
-
describe:
|
|
9
|
-
version:
|
|
10
|
-
url:
|
|
16
|
+
id: pkg.id,
|
|
17
|
+
name: pkg.name,
|
|
18
|
+
describe: pkg.description,
|
|
19
|
+
version: pkg.version,
|
|
20
|
+
url: pkg.homepage,
|
|
11
21
|
dir: __dirname,
|
|
12
|
-
git:
|
|
13
|
-
bugs:
|
|
14
|
-
author:
|
|
15
|
-
license:
|
|
16
|
-
copyright:
|
|
22
|
+
git: pkg.repository.url,
|
|
23
|
+
bugs: pkg.bugs.url,
|
|
24
|
+
author: pkg.author,
|
|
25
|
+
license: pkg.license,
|
|
26
|
+
copyright: pkg.copyright,
|
|
17
27
|
};
|
|
18
28
|
|
|
19
|
-
const {agent,vars} = require('./data.json').DATA;
|
|
20
|
-
|
|
21
|
-
const Deva = require('@indra.ai/deva');
|
|
22
29
|
const SECURITY = new Deva({
|
|
23
30
|
info,
|
|
24
31
|
agent,
|
|
@@ -47,4 +54,4 @@ const SECURITY = new Deva({
|
|
|
47
54
|
},
|
|
48
55
|
methods: {},
|
|
49
56
|
});
|
|
50
|
-
|
|
57
|
+
export default SECURITY
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": 6507120243760,
|
|
3
3
|
"name": "@indra.ai/deva.security",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.5",
|
|
5
5
|
"author": "Quinn Michaels",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"copyright": "2025",
|
|
@@ -17,15 +17,16 @@
|
|
|
17
17
|
"keywords": [
|
|
18
18
|
"Security",
|
|
19
19
|
"Deva",
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
20
|
+
"Indra.ai",
|
|
21
|
+
"Deva.space",
|
|
22
|
+
"Deva.cloud",
|
|
23
|
+
"Deva.world"
|
|
23
24
|
],
|
|
24
25
|
"bugs": {
|
|
25
26
|
"url": "https://github.com/indraai/deva.security/issues"
|
|
26
27
|
},
|
|
27
28
|
"homepage": "https://deva.space/devas/security",
|
|
28
29
|
"dependencies": {
|
|
29
|
-
"@indra.ai/deva": "^1.2.
|
|
30
|
+
"@indra.ai/deva": "^1.2.28"
|
|
30
31
|
}
|
|
31
32
|
}
|