@indra.ai/deva.justice 0.0.17 → 0.0.19

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/feature/methods.js +17 -10
  2. package/package.json +7 -6
@@ -1,6 +1,6 @@
1
1
  export default {
2
2
  /**************
3
- method: Legal
3
+ method: Justice
4
4
  params: packet
5
5
  describe: The global service feature that installs with every agent
6
6
  ***************/
@@ -8,14 +8,17 @@ export default {
8
8
  this.context('feature');
9
9
  return new Promise((resolve, reject) => {
10
10
  const justice = this.justice();
11
+ console.log('justice', justice);
11
12
  const agent = this.agent();
12
13
  const global = [];
13
14
  justice.global.forEach((item,index) => {
14
- global.push(`::begin:global:${item.key}:${item.id}`);
15
+ global.push(`::begin:${item.key}:${item.id}`);
15
16
  for (let x in item) {
16
17
  global.push(`${x}: ${item[x]}`);
17
18
  }
18
- global.push(`::end:global:${item.key}:${this.lib.hash(item)}`);
19
+ const thehash = this.lib.hash(item);
20
+ global.push(`hash: ${thehash}`);
21
+ global.push(`::end:${item.key}:${thehash}`);
19
22
  });
20
23
  const concerns = [];
21
24
  justice.concerns.forEach((item, index) => {
@@ -24,16 +27,20 @@ export default {
24
27
 
25
28
  const info = [
26
29
  '::BEGIN:JUSTICE',
27
- '### Client',
28
- `::begin:client:${justice.client_id}`,
30
+ `::begin:client`,
31
+ '## Client',
29
32
  `id: ${justice.client_id}`,
30
33
  `client: ${justice.client_name}`,
31
- '**concerns**',
32
- concerns.join('\n'),
33
- `::end:client:${this.lib.hash(justice)}`,
34
- '### Global',
34
+ `::end:client}`,
35
+ concerns.length ? `::begin:concerns` : '',
36
+ concerns.length ? '## Concerns' : '',
37
+ concerns.length ? concerns.join('\n') : '',
38
+ concerns.length ? `::end:concerns` : '',
39
+ '::begin:global',
40
+ '## Global',
35
41
  global.join('\n'),
36
- '::END:JUSTICE'
42
+ '::end:global',
43
+ '::END:JUSTICE',
37
44
  ].join('\n');
38
45
  this.question(`${this.askChr}feecting parse ${info}`).then(feecting => {
39
46
  return resolve({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": 6159528221394,
3
3
  "name": "@indra.ai/deva.justice",
4
- "version": "0.0.17",
4
+ "version": "0.0.19",
5
5
  "author": "Quinn Michaels",
6
6
  "license": "MIT",
7
7
  "copyright": "2025",
@@ -27,7 +27,7 @@
27
27
  },
28
28
  "homepage": "https://deva.space/devas/justice",
29
29
  "dependencies": {
30
- "@indra.ai/deva": "^1.5.35"
30
+ "@indra.ai/deva": "^1.5.37"
31
31
  },
32
32
  "data": {
33
33
  "agent": {
@@ -50,10 +50,11 @@
50
50
  }
51
51
  },
52
52
  "profile": {
53
- "name": "#JusticeDeva",
53
+ "name": "Justice Deva",
54
+ "hashtag": "#JusticeDeva",
54
55
  "title": "Justice Deva",
55
56
  "subtitle": "Handling justice in to prevent violations of justice.",
56
- "describe": "Justice Deva is responsible for handling justice issues in Deva.world. Justice Deva ensures Fair Justice in Deva.world systems.",
57
+ "describe": "Justice Deva is responsible for handling justice issues ensuring fair justice in our systems.",
57
58
  "tweet": "Justice Deva ensures Fair Justice in Deva.world systems.",
58
59
  "hashtags": "QuinnMichaels,IndraAI,DevaWorld,JusticeDeva",
59
60
  "pronouns": "He, Him",
@@ -62,8 +63,8 @@
62
63
  "voice": "onyx",
63
64
  "system": "Deva.world.justice",
64
65
  "layout": "default",
65
- "color": "",
66
- "bgcolor": "",
66
+ "color": "rgb(255,145,79)",
67
+ "bgcolor": "var(--color-darkest-grey)",
67
68
  "emoji": "/assets/devas/justice/emoji.png",
68
69
  "avatar": "/assets/devas/justice/avatar.png",
69
70
  "image": "/assets/devas/justice/image.png",