@indra.ai/deva.systems 0.15.0 → 0.15.2

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 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 Services 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.
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
 
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  // Systems Deva Feature Methods
3
- // Copyright ©2000-2026 Quinn Arjuna America Michaels; All rights reserved.
3
+ // Copyright ©2000-2026 Quinn Michaels; All rights reserved.
4
4
  // Owner Signature Required For Lawful Use.
5
- // Distributed under VLA:52239398612144738303 LICENSE.md
6
- // Monday, September 14, 2026 - 3:02:54 PM PST
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
- systems.global.forEach((item,index) => {
21
- global.push(`::begin:global:${item.key}:${item.id}`);
22
- for (let x in item) {
23
- global.push(`${x}: ${item[x]}`);
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
- global.push(`::end:global:${item.key}:${this.lib.hash(item)}`);
26
- });
37
+ }
38
+
27
39
  const concerns = [];
28
40
  systems.concerns.forEach((item, index) => {
29
41
  concerns.push(`${index + 1}. ${item}`);
@@ -37,7 +49,7 @@ export default {
37
49
  `client: ${systems.client_name}`,
38
50
  '**concerns**',
39
51
  concerns.join('\n'),
40
- `::end:client:${this.lib.hash(systems)}`,
52
+ `::end:client:${systems.client_id}`,
41
53
  '### Global',
42
54
  global.join('\n'),
43
55
  '::END:SYSTEMS',
@@ -49,7 +61,7 @@ export default {
49
61
  data: systems.concerns,
50
62
  });
51
63
  }).catch(err => {
52
- return this.error(err, packet, reject);
64
+ return this.err(err, packet, reject);
53
65
  });
54
66
  });
55
67
  },
@@ -5,7 +5,7 @@
5
5
  // Saturday, November 28, 2026 - 6:15:10 AM PST
6
6
 
7
7
  ::BEGIN:MAIN
8
- # {{agent.name}}
8
+ # {{profile.name}}
9
9
 
10
10
  {{profile}}
11
11
 
@@ -5,14 +5,14 @@
5
5
  // Saturday, November 28, 2026 - 6:15:10 AM PST
6
6
 
7
7
  ::BEGIN:MAIN
8
- # {{profil.ename}}
8
+ # {{profile.name}}
9
9
 
10
10
  {{profile}}
11
11
 
12
12
  ::begin:hidden
13
13
  #color = {{profile.color}}
14
14
  #bgcolor = {{profile.bgcolor}}
15
- #bg = {{profile.bg}}
15
+ #bg = {{profile.background}}
16
16
  ::end:hidden
17
17
  copyright: {{profile.copyright}}
18
18
  ::END:MAIN
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.0",
4
+ "version": "0.15.2",
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/sysatems",
73
+ "homepage": "https://deva.world/devas/systems",
74
74
  "devDependencies": {
75
75
  "@indra.ai/deva": "^1.67.26"
76
76
  },