@indra.ai/deva.treasury 0.0.2

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 ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Quinn A Michaels
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,5 @@
1
+ # deva.treasury
2
+ The Treasury Deva
3
+
4
+
5
+ (c) Copyright Quinn A Michaels. All rights reserved.
@@ -0,0 +1,11 @@
1
+ export default {
2
+ /**************
3
+ method: wall
4
+ params: packet
5
+ describe: The global wall feature that installs with every agent
6
+ ***************/
7
+ async wall(packet) {
8
+ const wall = await this.methods.sign('wall', 'default', packet);
9
+ return wall;
10
+ },
11
+ };
@@ -0,0 +1,7 @@
1
+ ::BEGIN:MAIN
2
+ # {{agent.name}}
3
+
4
+ {{profile}}
5
+
6
+ copyright: ©2025 Quinn Michaels
7
+ ::END:MAIN
@@ -0,0 +1,14 @@
1
+ ::BEGIN:MAIN
2
+ # {{profil.ename}}
3
+
4
+ {{profile}}
5
+
6
+ talk: #justice justice
7
+
8
+ ::begin:hidden
9
+ #color = {{profile.color}}
10
+ #bgcolor = {{profile.bgcolor}}
11
+ #bg = {{profile.bg}}
12
+ copyright: (c)2025 Quinn Michaels
13
+ ::end:hidden
14
+ ::END:MAIN
package/index.js ADDED
@@ -0,0 +1,58 @@
1
+ // Copyright (c)2025 Quinn A Michaels
2
+ // Treasury Deva
3
+
4
+ import Deva from '@indra.ai/deva';
5
+ import pkg from './package.json' with {type:'json'};
6
+ const {agent,vars} = pkg.data;
7
+
8
+ // set the __dirname
9
+ import {dirname} from 'node:path';
10
+ import {fileURLToPath} from 'node:url';
11
+ const __dirname = dirname(fileURLToPath(import.meta.url));
12
+
13
+ const info = {
14
+ id: pkg.id,
15
+ name: pkg.name,
16
+ version: pkg.version,
17
+ author: pkg.author,
18
+ describe: pkg.description,
19
+ dir: __dirname,
20
+ url: pkg.homepage,
21
+ git: pkg.repository.url,
22
+ bugs: pkg.bugs.url,
23
+ license: pkg.license,
24
+ copyright: pkg.copyright
25
+ };
26
+
27
+ const TREASURY = new Deva({
28
+ info,
29
+ agent,
30
+ vars,
31
+ utils: {
32
+ translate(input) {return input.trim();},
33
+ parse(input) {return input.trim();},
34
+ process(input) {return input.trim();},
35
+ },
36
+ listeners: {
37
+ 'devacore:question'(packet) {
38
+ const echo = this.methods.echo('treasury', 'q', packet);
39
+ },
40
+ 'devacore:answer'(packet) {
41
+ const echo = this.methods.echo('treasury', 'a', packet);
42
+ }
43
+ },
44
+ modules: {},
45
+ devas: {},
46
+ func: {},
47
+ methods: {},
48
+ onReady(data, resolve) {
49
+ this.prompt(this.vars.messages.ready);
50
+ },
51
+ onError(data, err, reject) {
52
+ this.prompt(this.vars.messages.error);
53
+ console.log(err);
54
+ return reject(err);
55
+ },
56
+ });
57
+ export default TREASURY
58
+
package/index.test.js ADDED
@@ -0,0 +1,19 @@
1
+ // Copyright (c)2025 Quinn A Michaels
2
+ // Indra Deva test file
3
+
4
+ const {expect} = require('chai')
5
+ const :key: = require('./index.js');
6
+
7
+ describe(indra.me.name, () => {
8
+ beforeEach(() => {
9
+ return indra.init()
10
+ });
11
+ it('Check the DEVA Object', () => {
12
+ expect(indra).to.be.an('object');
13
+ expect(indra).to.have.property('agent');
14
+ expect(indra).to.have.property('vars');
15
+ expect(indra).to.have.property('listeners');
16
+ expect(indra).to.have.property('methods');
17
+ expect(indra).to.have.property('modules');
18
+ });
19
+ })
package/package.json ADDED
@@ -0,0 +1,108 @@
1
+ {
2
+ "id": "a083e0d7-acb3-4f59-9094-92a828e96030",
3
+ "name": "@indra.ai/deva.treasury",
4
+ "version": "0.0.2",
5
+ "author": "Quinn A Michaels",
6
+ "license": "MIT",
7
+ "copyright": "2025",
8
+ "description": "The Treasury Deva.",
9
+ "main": "index.js",
10
+ "type": "module",
11
+ "scripts": {
12
+ "test": "echo \"Error: no test specified\" && exit 1"
13
+ },
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://github.com/indraai/deva.treasury.git"
17
+ },
18
+ "keywords": [
19
+ "Treasury",
20
+ "Deva",
21
+ "Indra.ai",
22
+ "Deva.space",
23
+ "Deva.cloud",
24
+ "Deva.world"
25
+ ],
26
+ "bugs": {
27
+ "url": "https://github.com/indraai/deva.treasury/issues"
28
+ },
29
+ "homepage": "https://deva.space/devas/treasury",
30
+ "dependencies": {
31
+ "@indra.ai/deva": "^1.5.50"
32
+ },
33
+ "data": {
34
+ "agent": {
35
+ "id": "e0173d62-4f3e-4e87-b62f-66d758365f6b",
36
+ "key": "wall",
37
+ "prompt": {
38
+ "emoji": "🏦",
39
+ "text": "treasury",
40
+ "colors": {
41
+ "label": {
42
+ "R": 0,
43
+ "G": 150,
44
+ "B": 255
45
+ },
46
+ "text": {
47
+ "R": 101,
48
+ "G": 192,
49
+ "B": 255
50
+ }
51
+ }
52
+ },
53
+ "profile": {
54
+ "name": "Treasury Deva",
55
+ "hashtag": "#Treasury",
56
+ "title": "Treasury Deva",
57
+ "subtitle": "Treasury Deva for the VectorGuardTreasury.",
58
+ "describe": "",
59
+ "post": "Treasury.",
60
+ "hashtags": "QuinnMichaels,IndraAI,DevaWorld,TreasuryDeva",
61
+ "pronouns": "He, Him",
62
+ "gender": "DEVA",
63
+ "voice": "ash",
64
+ "style": "A Cyber Security Treasury.",
65
+ "system": "Deva.world.treasury",
66
+ "layout": "default",
67
+ "emoji": "/assets/devas/treasury/emoji.png",
68
+ "avatar": "/assets/devas/treasury/avatar.png",
69
+ "image": "/assets/devas/treasury/image.png",
70
+ "background": "/assets/devas/treasury/background.png",
71
+ "creator": "Quinn Michaels",
72
+ "owner": "Quinn Michaels",
73
+ "caseid": "none",
74
+ "copyright": "©2025 Quinn Michaels. All rights reserved.",
75
+ "created": "Tuesday, September 2, 2025 - 7:05:05 PM",
76
+ "modified": "Tuesday, September 2, 2025 - 7:05:05 PM"
77
+ }
78
+ },
79
+ "vars": {
80
+ "messages": {
81
+ "init": "🟠 INIT",
82
+ "start": "🔵 START",
83
+ "enter": "🟢 ENTER",
84
+ "stop": "🔴 STOP",
85
+ "exit": "🟡 EXIT",
86
+ "done": "🟣 DONE",
87
+ "error": "💣 ERROR!",
88
+ "ready": "⭐️ Ready!"
89
+ },
90
+ "ask": {
91
+ "history": []
92
+ },
93
+ "art": {
94
+ "history": []
95
+ },
96
+ "context": {
97
+ "uid": "Treasury is creating a uid",
98
+ "status": "Treasury is viewing the status",
99
+ "help": "Treasury is viewing the help",
100
+ "artist": "Treasury creating",
101
+ "live": "Treasury livechat",
102
+ "ask": "Treasury asking",
103
+ "reply": "Treasury reply",
104
+ "comment": "Treasury comment"
105
+ }
106
+ }
107
+ }
108
+ }