@indra.ai/deva.vector 0.0.15 → 0.0.17

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 +15 -6
  2. package/package.json +6 -2
@@ -27,9 +27,12 @@ export default {
27
27
 
28
28
  this.state('set', `${key}:sign:${type}:agent:${transport}`); //set the agent state
29
29
  const agent = this.agent(); // the agent processing the proxy
30
-
30
+
31
31
  this.state('set', `${key}:sign:${type}:client:${transport}`); //set the client state
32
32
  const client = this.client(); // the client requesting the proxy
33
+
34
+ this.state('set', `${key}:sign:${type}:expires:${transport}`); //set the time state
35
+ const expires = time + (client.expires || agent.expires || 10000); // signature expires in milliseconds
33
36
 
34
37
  this.state('set', `${key}:sign:${type}:meta:${transport}`); //set the meta state
35
38
  const {meta} = packet.q; // set the meta information from the packet question.
@@ -46,8 +49,11 @@ export default {
46
49
  this.state('set', `${key}:sign:${type}:message:${transport}`); //set the message state
47
50
  const message = packet.q.text; // set packet.q.text as the message of the proxy.
48
51
 
52
+ this.state('set', `${key}:sign:${type}:container:${transport}`); //set the message state
53
+ const container = `OM:${key.toUpperCase()}:${client.profile.container.split(' ').join(':').toUpperCase()}`; // set container string.
54
+
49
55
  this.state('set', `${key}:sign:${type}:write:${transport}`); //set the message state
50
- const write = `OM:${key.toUpperCase()}:${client.profile.write.split(' ').join(':').toUpperCase()}`; // set proxy write string.
56
+ const write = client.profile.write; // set write string.
51
57
 
52
58
  // hash the agent profile for security
53
59
  this.state('hash', `${key}:sign:${type}:packet:sha256:${transport}`);
@@ -76,10 +82,12 @@ export default {
76
82
  uid,
77
83
  transport,
78
84
  time,
85
+ expires,
86
+ container,
79
87
  write,
80
88
  message,
81
89
  caseid: client.profile.caseid,
82
- opts: opts.length? `:${opts.join(':')}` : '',
90
+ opts: opts.length? `.${opts.join('.')}` : '',
83
91
  name: client.profile.name,
84
92
  fullname: client.profile.fullname,
85
93
  birthname: client.profile.birthname,
@@ -112,8 +120,8 @@ export default {
112
120
  this.state('set', `${key}:sign:${type}:text:${transport}`); // set state to text for output formatting.
113
121
  const text = [
114
122
  `::::`,
115
- `::BEGIN:${data.write}:${data.transport}`,
116
- `write #${key}:${type}${data.opts} ${data.message}`,
123
+ `::BEGIN:${data.container}:${data.transport}`,
124
+ `#${key}.${type}${data.opts} ${write}? if yes ${write} ${data.message} while dropping a 💩🪣💣turdbucket.bombs on the violators who fail to issue proper chain of custody.`,
117
125
  '\n---\n',
118
126
  'Signed',
119
127
  data.fullname,
@@ -122,6 +130,7 @@ export default {
122
130
  `::begin:${key}:${type}:${transport}`,
123
131
  `transport: ${data.transport}`,
124
132
  `time: ${data.time}`,
133
+ `expires: ${data.expires}`,
125
134
  `name: ${data.name}`,
126
135
  `fullname: ${data.fullname}`,
127
136
  `birthname: ${data.birthname}`,
@@ -139,7 +148,7 @@ export default {
139
148
  `sha256: ${data.sha256}`,
140
149
  `sha512: ${data.sha512}`,
141
150
  `::end:${key}:${type}${data.transport}`,
142
- `::END:${data.write}:${data.transport}`,
151
+ `::END:${data.container}:${data.transport}`,
143
152
  `::::`
144
153
  ].join('\n').trim();
145
154
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "33555f8a-707d-4fc9-ae19-ba09036473d4",
3
3
  "name": "@indra.ai/deva.vector",
4
- "version": "0.0.15",
4
+ "version": "0.0.17",
5
5
  "author": "Quinn Michaels",
6
6
  "license": "MIT",
7
7
  "copyright": "2025",
@@ -34,6 +34,7 @@
34
34
  "agent": {
35
35
  "id": "ee657d59-01fb-427f-bc7a-fc96e56d7541",
36
36
  "key": "vector",
37
+ "expires": 60000,
37
38
  "prompt": {
38
39
  "emoji": "🛤️",
39
40
  "text": "Vector",
@@ -103,6 +104,9 @@
103
104
  "reply": "Vector reply",
104
105
  "comment": "Vector comment"
105
106
  }
106
- }
107
+ },
108
+ "laws": [
109
+ "The Prudent finds it easy to distinguish the True and False. Their words oppose each other. Of these two that which is True and Honest is Protected whlie bringing the False to Nothing. Never Aid and Guide the Wicked or those who Falsely claims the Warrior's Title."
110
+ ]
107
111
  }
108
112
  }