@indra.ai/deva.log 0.0.154 → 0.0.156

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.
Files changed (2) hide show
  1. package/index.js +15 -1
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -29,7 +29,6 @@ const info = {
29
29
  copyright: pkg.copyright,
30
30
  };
31
31
 
32
-
33
32
  const LOG = new Deva({
34
33
  info,
35
34
  agent,
@@ -40,17 +39,32 @@ const LOG = new Deva({
40
39
  process(input) {return input.trim();}
41
40
  },
42
41
  listeners: {
42
+ // log the question
43
43
  'devacore:question'(packet) {
44
44
  this.methods.echo(agent.key, 'q', packet);
45
45
  this.func.log_write('question', packet);
46
46
  },
47
+ // log the answer
47
48
  'devacore:answer'(packet) {
48
49
  this.methods.echo(agent.key, 'a', packet);
49
50
  this.func.log_write('answer', packet);
50
51
  },
52
+
53
+ // log deva sking another deva
51
54
  'devacore:ask'(packet) {
52
55
  this.func.log_write('ask', packet);
53
56
  },
57
+
58
+ // log the answer on finish
59
+ 'devacore:finish'(packet) {
60
+ this.func.log_write('finish', packet);
61
+ },
62
+ // log the answer on complete
63
+ 'devacore:complete'(packet) {
64
+ this.func.log_write('complete', packet);
65
+ },
66
+
67
+ // log all errors
54
68
  'devacore:error'(packet) {
55
69
  this.func.log_write('error', packet);
56
70
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "46605441065773246919",
3
3
  "name": "@indra.ai/deva.log",
4
- "version": "0.0.154",
4
+ "version": "0.0.156",
5
5
  "license": "VLA:46605441065773246919 LICENSE.md",
6
6
  "VLA": {
7
7
  "uid": "46605441065773246919",
@@ -57,7 +57,7 @@
57
57
  "url": "https://github.com/indraai/deva.log/issues"
58
58
  },
59
59
  "dependencies": {
60
- "@indra.ai/deva": "^1.6.99",
60
+ "@indra.ai/deva": "^1.6.100",
61
61
  "mongodb": "^6.1.0"
62
62
  },
63
63
  "data": {