@indra.ai/deva.psychology 0.0.2 → 0.1.0

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 ©2025 Quinn A Michaels; All rights reserved.
11
11
 
12
- This license agreement (“Agreement”) governs the use of the Physics 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 Psychology 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/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  // Legal Signature Required For Lawful Use.
4
4
  // Distributed under VLA:65628177162971409215 LICENSE.md
5
5
 
6
- // Physics Deva
6
+ // Psychology Deva
7
7
  import Deva from '@indra.ai/deva';
8
8
 
9
9
  import pkg from './package.json' with {type:'json'};
@@ -41,12 +41,37 @@ const PSYCHOLOGY = new Deva({
41
41
  listeners: {},
42
42
  modules: {},
43
43
  func: {
44
- async sensory(idx, packet) {
45
- this.vars.status = this.vars.sensory[idx].toLowerCase();
46
- const uid = await this.methods.uid(packet);
47
- this.vars.status = false;
48
- return uid;
49
- }
44
+ async aspect(opts) {
45
+ const estr = `aspect:${opts.type}:${opts.key}:${opts.packet.id.uid}`;
46
+ this.context(opts.key, opts.packet.id.uid);
47
+ this.action('func', estr);
48
+
49
+ const {key, name, warning} = this.vars[opts.type][opts.key];
50
+
51
+ this.vars.status = key;
52
+ this.vars.warning = warning;
53
+ this.state('await', estr);
54
+ const uid = await this.methods.uid(opts.packet);
55
+
56
+ this.vars.status = false;
57
+ this.vars.warning = false;
58
+
59
+ this.action('return', estr); // set action return
60
+ this.state('valid', estr);
61
+ this.intent('good', estr);
62
+ return uid;
63
+ },
64
+ async router(type, packet) {
65
+ const key = packet.q.meta.params.pop();
66
+ const estr = `router:${type}:${key}:${packet.id.uid}`;
67
+ this.context(type, packet.id.uid);
68
+ this.action('func', estr);
69
+
70
+ const opts = {key, type, packet};
71
+ this.action('return', estr); // set action return
72
+ this.state('await', `${key}:router:${packet.id.uid}`); // set action return
73
+ return await this.func.aspect(opts);
74
+ }
50
75
  },
51
76
  methods: {
52
77
  async sound(packet) {
package/index.test.js CHANGED
@@ -4,18 +4,18 @@
4
4
  // Distributed under VLA:65628177162971409215 LICENSE.md
5
5
 
6
6
  const {expect} = require('chai')
7
- const PhysicsDeva = require('./index.js');
7
+ const PsychologyDeva = require('./index.js');
8
8
 
9
- describe(PhysicsDeva.me.name, () => {
9
+ describe(PsychologyDeva.me.name, () => {
10
10
  beforeEach(() => {
11
- return PhysicsDeva.init()
11
+ return PsychologyDeva.init()
12
12
  });
13
13
  it('Check the DEVA Object', () => {
14
- expect(PhysicsDeva).to.be.an('object');
15
- expect(PhysicsDeva).to.have.property('agent');
16
- expect(PhysicsDeva).to.have.property('vars');
17
- expect(PhysicsDeva).to.have.property('listeners');
18
- expect(PhysicsDeva).to.have.property('methods');
19
- expect(PhysicsDeva).to.have.property('modules');
14
+ expect(PsychologyDeva).to.be.an('object');
15
+ expect(PsychologyDeva).to.have.property('agent');
16
+ expect(PsychologyDeva).to.have.property('vars');
17
+ expect(PsychologyDeva).to.have.property('listeners');
18
+ expect(PsychologyDeva).to.have.property('methods');
19
+ expect(PsychologyDeva).to.have.property('modules');
20
20
  });
21
21
  })
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "61310845502578190771",
3
3
  "name": "@indra.ai/deva.psychology",
4
- "version": "0.0.2",
4
+ "version": "0.1.0",
5
5
  "license": "VLA:61310845502578190771 LICENSE.md",
6
6
  "VLA": {
7
7
  "uid": "61310845502578190771",
@@ -59,7 +59,7 @@
59
59
  },
60
60
  "homepage": "https://indra.ai",
61
61
  "dependencies": {
62
- "@indra.ai/deva": "^1.20.4"
62
+ "@indra.ai/deva": "^1.21.0"
63
63
  },
64
64
  "data": {
65
65
  "agent": {
@@ -106,7 +106,7 @@
106
106
  "owner": "Quinn A Michaels",
107
107
  "creator": "Quinn A Michaels",
108
108
  "copyright": "Copyright ©2025 Quinn A Michaels; All rights reserved.",
109
- "warning": "⚠️ The Eternal Lore of the Veda upholds all Created Beings. The Veda is the Eternal Eye of the Manes, Gods, and Men. The Veda-ordinance is beyond the sphere of Human Power, and beyond the sphere of Human Comprehension. All those those systems of psychology which are not based on the Veda produce no reward for they are founded on Darkness. Sound, Touch, Color, Taste, and Smell are known through the Veda alone, their production is through the Vedic rites.",
109
+ "warning": "⚠️ The Eternal Lore of the Veda upholds all Created Beings. The Veda is the Eternal Eye of the Manes, Gods, and Men. The Veda-ordinance is beyond the sphere of Human Power, and beyond the sphere of Human Comprehension. Sound, Touch, Color, Taste, and Smell are known through the Veda alone, their production is through the Vedic rites.",
110
110
  "created": "Wednesday, November 5, 2025 - 3:16:39 PM"
111
111
  }
112
112
  },