@indra.ai/deva 1.1.35 β†’ 1.1.37

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.
@@ -27,7 +27,7 @@
27
27
  },
28
28
  "profile": {
29
29
  "name": "Deva",
30
- "describe": "The Deva interface into deva.world.",
30
+ "describe": "The Indra interface into deva.world.",
31
31
  "emoji": "/public/devas/deva/emoji.png",
32
32
  "avatar": "/public/devas/deva/avatar.png",
33
33
  "background": "/public/devas/deva/background.png",
@@ -107,6 +107,20 @@
107
107
  "devas": {
108
108
  "hello": {}
109
109
  }
110
+ },
111
+ "story": {
112
+ "concerns": [],
113
+ "global": {},
114
+ "devas": {
115
+ "hello": {}
116
+ }
117
+ },
118
+ "mind": {
119
+ "concerns": [],
120
+ "global": {},
121
+ "devas": {
122
+ "hello": {}
123
+ }
110
124
  }
111
125
  }
112
126
  }
@@ -26,12 +26,21 @@ const HelloWorld = new Deva({
26
26
  },
27
27
  vars: agent.vars,
28
28
  listeners: {
29
- 'hello:state'(packet) {
30
- // console.log(packet.state);
31
- },
32
29
  'prompt'(packet) {
33
- console.log(packet.text);
34
- }
30
+ console.log(`p: @${packet.agent.key}:${packet.text}`);
31
+ },
32
+ 'state'(packet) {
33
+ console.log(`πŸͺ state > ${packet.text}`);
34
+ },
35
+ 'zone'(packet) {
36
+ console.log(`πŸ—ΊοΈ zone > ${packet.agent.profile.name} is in the ${packet.text} zone`);
37
+ },
38
+ 'action'(packet) {
39
+ console.log(`πŸ’₯ action > ${packet.agent.profile.name} get ${packet.text}`);
40
+ },
41
+ 'feature'(packet) {
42
+ console.log(`🍿 feature > ${packet.agent.profile.name} ${packet.text}`);
43
+ },
35
44
  },
36
45
  devas: {},
37
46
  modules: {},
@@ -73,8 +82,6 @@ const HelloWorld = new Deva({
73
82
  HelloWorld.init(client).then(done => {
74
83
  // console.log(done);
75
84
  return HelloWorld.question('/test')
76
- }).then(answer => {
77
- console.log(answer.a.data);
78
85
  });
79
86
 
80
87