@indra.ai/deva.systems 0.15.0 → 0.15.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/LICENSE.md +1 -1
- package/feature/methods.js +23 -11
- package/help/corpus.feecting +1 -1
- package/help/main.feecting +1 -1
- package/index.test.js +1 -16
- package/package.json +2 -2
package/LICENSE.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
**Link:** https://indra.ai
|
|
10
10
|
**Copyright:** Copyright ©2000-2026 Quinn Michaels; All rights reserved.
|
|
11
11
|
|
|
12
|
-
This license agreement (“Agreement”) governs the use of the
|
|
12
|
+
This license agreement (“Agreement”) governs the use of the Systems Deva (“Software”). By accessing or using the Software, you agree to the terms and conditions set forth below. If you do not agree, you are prohibited from using the Software.
|
|
13
13
|
|
|
14
14
|
## Ownership
|
|
15
15
|
|
package/feature/methods.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Systems Deva Feature Methods
|
|
3
|
-
// Copyright ©2000-2026 Quinn
|
|
3
|
+
// Copyright ©2000-2026 Quinn Michaels; All rights reserved.
|
|
4
4
|
// Owner Signature Required For Lawful Use.
|
|
5
|
-
// Distributed under VLA:
|
|
6
|
-
//
|
|
5
|
+
// Distributed under VLA:24296120490769123430 LICENSE.md
|
|
6
|
+
// Saturday, November 28, 2026 - 6:15:10 AM PST
|
|
7
7
|
|
|
8
8
|
export default {
|
|
9
9
|
/**************
|
|
@@ -12,18 +12,30 @@ export default {
|
|
|
12
12
|
describe: The global systems feature that installs with every agent
|
|
13
13
|
***************/
|
|
14
14
|
systems(packet) {
|
|
15
|
-
this.context('feature');
|
|
16
15
|
return new Promise((resolve, reject) => {
|
|
17
16
|
const systems = this.systems();
|
|
18
17
|
const agent = this.agent();
|
|
19
18
|
const global = [];
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
|
|
20
|
+
const {restricted} = systems.global
|
|
21
|
+
for (let key in systems.global) {
|
|
22
|
+
if (key === 'restricted') continue; // continue if key restricted.
|
|
23
|
+
|
|
24
|
+
const item = systems.global[key];
|
|
25
|
+
if (item && typeof item === 'object') {
|
|
26
|
+
const blockId = item.id || key;
|
|
27
|
+
global.push(`::begin:global:${key}:${blockId}`);
|
|
28
|
+
for (let x in item) {
|
|
29
|
+
const val = restricted.find(r => r === x.toLowerCase()) ? '*******' : item[x];
|
|
30
|
+
global.push(`${x}: ${val}`);
|
|
31
|
+
}
|
|
32
|
+
global.push(`::end:global:${key}:${blockId}`);
|
|
33
|
+
} else {
|
|
34
|
+
const val = restricted.find(r => r === key.toLowerCase()) ? '*******' : item;
|
|
35
|
+
global.push(`${key}: ${val}`);
|
|
24
36
|
}
|
|
25
|
-
|
|
26
|
-
|
|
37
|
+
}
|
|
38
|
+
|
|
27
39
|
const concerns = [];
|
|
28
40
|
systems.concerns.forEach((item, index) => {
|
|
29
41
|
concerns.push(`${index + 1}. ${item}`);
|
|
@@ -49,7 +61,7 @@ export default {
|
|
|
49
61
|
data: systems.concerns,
|
|
50
62
|
});
|
|
51
63
|
}).catch(err => {
|
|
52
|
-
return this.
|
|
64
|
+
return this.err(err, packet, reject);
|
|
53
65
|
});
|
|
54
66
|
});
|
|
55
67
|
},
|
package/help/corpus.feecting
CHANGED
package/help/main.feecting
CHANGED
package/index.test.js
CHANGED
|
@@ -1,22 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
// Systems Deva test file
|
|
2
3
|
// Copyright ©2000-2026 Quinn Michaels; All rights reserved.
|
|
3
4
|
// Owner Signature Required For Lawful Use.
|
|
4
5
|
// Distributed under VLA:24296120490769123430 LICENSE.md
|
|
5
6
|
// Saturday, November 28, 2026 - 6:15:10 AM PST
|
|
6
7
|
|
|
7
|
-
const {expect} = require('chai')
|
|
8
|
-
const SystemsDeva = require('./index.js');
|
|
9
|
-
|
|
10
|
-
describe(SystemsDeva.me.name, () => {
|
|
11
|
-
beforeEach(() => {
|
|
12
|
-
return SystemsDeva.init()
|
|
13
|
-
});
|
|
14
|
-
it('Check the DEVA Object', () => {
|
|
15
|
-
expect(SystemsDeva).to.be.an('object');
|
|
16
|
-
expect(SystemsDeva).to.have.property('agent');
|
|
17
|
-
expect(SystemsDeva).to.have.property('vars');
|
|
18
|
-
expect(SystemsDeva).to.have.property('listeners');
|
|
19
|
-
expect(SystemsDeva).to.have.property('methods');
|
|
20
|
-
expect(SystemsDeva).to.have.property('modules');
|
|
21
|
-
});
|
|
22
|
-
})
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "24296120490769123430",
|
|
3
3
|
"name": "@indra.ai/deva.systems",
|
|
4
|
-
"version": "0.15.
|
|
4
|
+
"version": "0.15.1",
|
|
5
5
|
"license": "VLA:24296120490769123430 LICENSE.md",
|
|
6
6
|
"VLA": {
|
|
7
7
|
"uid": "24296120490769123430",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"bugs": {
|
|
71
71
|
"url": "https://github.com/indraai/deva.systems/issues"
|
|
72
72
|
},
|
|
73
|
-
"homepage": "https://deva.world/devas/
|
|
73
|
+
"homepage": "https://deva.world/devas/systems",
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@indra.ai/deva": "^1.67.26"
|
|
76
76
|
},
|