@indra.ai/deva.systems 0.0.6 → 0.0.8
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/data.json +13 -4
- package/feature/methods.js +33 -18
- package/index.js +7 -8
- package/package.json +2 -2
package/data.json
CHANGED
|
@@ -28,11 +28,16 @@
|
|
|
28
28
|
},
|
|
29
29
|
"profile": {
|
|
30
30
|
"name": "Systems Deva",
|
|
31
|
-
"
|
|
31
|
+
"gender": "DEVA",
|
|
32
|
+
"pronouns": "He, Him",
|
|
33
|
+
"owner": "Quinn Michaels",
|
|
34
|
+
"creator": "Quinn Michaels",
|
|
35
|
+
"created": "Monday, May 22, 2023 at 9:49 AM",
|
|
36
|
+
"system": "Deva.world.systems",
|
|
37
|
+
"describe": "Systems Deva provides essential management and access to the various systems within Deva.world",
|
|
32
38
|
"emoji": "/public/devas/deva/emoji.png",
|
|
33
39
|
"avatar": "/public/devas/deva/avatar.png",
|
|
34
|
-
"background": "/public/devas/deva/background.png"
|
|
35
|
-
"gender": "male"
|
|
40
|
+
"background": "/public/devas/deva/background.png"
|
|
36
41
|
}
|
|
37
42
|
},
|
|
38
43
|
"vars": {
|
|
@@ -40,6 +45,7 @@
|
|
|
40
45
|
"init": "🟠 INIT",
|
|
41
46
|
"start": "🔵 START",
|
|
42
47
|
"enter": "🟢 ENTER",
|
|
48
|
+
"ready": "⭐️ Systems Deva Ready!",
|
|
43
49
|
"stop": "🔴 STOP",
|
|
44
50
|
"exit": "🟡 EXIT",
|
|
45
51
|
"done": "🟣 DONE",
|
|
@@ -53,7 +59,10 @@
|
|
|
53
59
|
"feature": "accessing feature",
|
|
54
60
|
"issue": "has issues",
|
|
55
61
|
"help": "asking for help"
|
|
56
|
-
}
|
|
62
|
+
},
|
|
63
|
+
"ask": {
|
|
64
|
+
"history": []
|
|
65
|
+
}
|
|
57
66
|
}
|
|
58
67
|
}
|
|
59
68
|
}
|
package/feature/methods.js
CHANGED
|
@@ -1,34 +1,49 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
/**************
|
|
3
|
-
method:
|
|
3
|
+
method: systems
|
|
4
4
|
params: packet
|
|
5
|
-
describe: The global
|
|
5
|
+
describe: The global systems feature that installs with every agent
|
|
6
6
|
***************/
|
|
7
7
|
systems(packet) {
|
|
8
8
|
this.context('feature');
|
|
9
|
-
const systems = this.systems();
|
|
10
|
-
const data = {};
|
|
11
9
|
return new Promise((resolve, reject) => {
|
|
12
|
-
this.
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
10
|
+
const systems = this.systems();
|
|
11
|
+
const agent = this.agent();
|
|
12
|
+
const global = [];
|
|
13
|
+
systems.global.forEach((item,index) => {
|
|
14
|
+
global.push(`::begin:global:${item.key}:${item.id}`);
|
|
15
|
+
for (let x in item) {
|
|
16
|
+
global.push(`${x}: ${item[x]}`);
|
|
17
|
+
}
|
|
18
|
+
global.push(`::end:global:${item.key}:${this.lib.hash(item)}`);
|
|
19
|
+
});
|
|
20
|
+
const concerns = [];
|
|
21
|
+
systems.concerns.forEach((item, index) => {
|
|
22
|
+
concerns.push(`${index + 1}. ${item}`);
|
|
23
|
+
})
|
|
24
|
+
|
|
25
|
+
const info = [
|
|
26
|
+
'::BEGIN:SYSTEMS',
|
|
27
|
+
'### Client',
|
|
28
|
+
`::begin:client:${systems.client_id}`,
|
|
29
|
+
`id: ${systems.client_id}`,
|
|
30
|
+
`client: ${systems.client_name}`,
|
|
31
|
+
'**concerns**',
|
|
32
|
+
concerns.join('\n'),
|
|
33
|
+
`::end:client:${this.lib.hash(systems)}`,
|
|
34
|
+
'### Global',
|
|
35
|
+
global.join('\n'),
|
|
36
|
+
'::END:SYSTEMS',
|
|
37
|
+
].join('\n');
|
|
38
|
+
this.question(`${this.askChr}feecting parse ${info}`).then(feecting => {
|
|
24
39
|
return resolve({
|
|
25
40
|
text: feecting.a.text,
|
|
26
41
|
html: feecting.a.html,
|
|
27
|
-
data: systems
|
|
42
|
+
data: systems.concerns,
|
|
28
43
|
});
|
|
29
44
|
}).catch(err => {
|
|
30
45
|
return this.error(err, packet, reject);
|
|
31
|
-
})
|
|
46
|
+
});
|
|
32
47
|
});
|
|
33
48
|
},
|
|
34
49
|
};
|
package/index.js
CHANGED
|
@@ -38,17 +38,16 @@ const SYSTEMS = new Deva({
|
|
|
38
38
|
listeners: {},
|
|
39
39
|
modules: {},
|
|
40
40
|
deva: {},
|
|
41
|
-
func: {
|
|
42
|
-
sys_question(packet) {return;},
|
|
43
|
-
sys_answer(packet) {return;},
|
|
44
|
-
},
|
|
41
|
+
func: {},
|
|
45
42
|
methods: {},
|
|
46
43
|
onReady(data, resolve) {
|
|
47
|
-
this.prompt(
|
|
44
|
+
this.prompt(this.vars.messages.ready);
|
|
48
45
|
return resolve(data);
|
|
49
46
|
},
|
|
50
|
-
onError(err) {
|
|
51
|
-
|
|
52
|
-
|
|
47
|
+
onError(err, data, reject) {
|
|
48
|
+
this.prompt(this.vars.messages.error);
|
|
49
|
+
console.log(err);
|
|
50
|
+
return reject(err);
|
|
51
|
+
},
|
|
53
52
|
});
|
|
54
53
|
export default SYSTEMS
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": 3605038032151,
|
|
3
3
|
"name": "@indra.ai/deva.systems",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.8",
|
|
5
5
|
"author": "Quinn Michaels",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"copyright": "2025",
|
|
@@ -28,6 +28,6 @@
|
|
|
28
28
|
},
|
|
29
29
|
"homepage": "https://deva.space/devas/systems",
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@indra.ai/deva": "^1.
|
|
31
|
+
"@indra.ai/deva": "^1.4.10"
|
|
32
32
|
}
|
|
33
33
|
}
|