@indra.ai/deva.security 0.0.30 → 0.0.31

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 -7
  2. package/package.json +1 -1
@@ -107,8 +107,11 @@ export default {
107
107
  if (!params[1] || params[1] === 'client') type = `#${meta.key}.${params.join('.')}`;
108
108
  else type = `#${meta.key}.${params.join('.')}`;
109
109
 
110
+
110
111
  const signer = !params[1] || params[1] === 'client' ? this.client() : this.agent();
111
- const created = this.lib.formatDate(Date.now(), 'long', true);
112
+ const signer_type = !params[1] || params[1] === 'client' ? 'client_id' : 'agent_id';
113
+ const timestamp = Date.now();
114
+ const created = this.lib.formatDate(timestamp, 'long', true);
112
115
  const message = packet.q.text || '';
113
116
  const client = this.client();
114
117
  const {profile} = signer;
@@ -121,37 +124,44 @@ export default {
121
124
  type,
122
125
  signer: signer.id,
123
126
  name: profile.name,
127
+ identity: profile.identity || 'not provided',
124
128
  caseid: profile.caseid,
125
129
  message,
126
130
  token: client.profile.token,
127
131
  copyright: profile.copyright,
128
132
  created,
133
+ timestamp,
129
134
  };
130
135
  data.md5 = this.lib.hash(data, 'md5');
131
136
  data.sha256 = this.lib.hash(data, 'sha256');
132
-
137
+ data.sha512 = this.lib.hash(data, 'sha512');
138
+
133
139
  const text = [
134
- '::::::::::::::::::',
140
+ '',
135
141
  `::begin:signature:VectorGuardShield:${data.transport}`,
136
142
  `type: ${type}`,
137
143
  `name: ${data.name}`,
144
+ `identity: ${data.identity}`,
138
145
  `message: ${data.message}`,
139
146
  `token: ${data.token}`,
140
147
  `---`,
141
148
  `id: ${data.uid}`,
142
- `${type}_id: ${data.signer}`,
149
+ `${signer_type}: ${data.signer}`,
143
150
  `transport_id: ${data.transport}`,
144
151
  `case_id: ${data.caseid}`,
145
152
  `copyright: ${data.copyright}`,
146
153
  `created: ${data.created}`,
154
+ `timestamp: ${data.timestamp}`,
147
155
  `md5: ${data.md5}`,
148
156
  `sha256: ${data.sha256}`,
157
+ `sha512: ${data.sha512}`,
149
158
  `::end:signature:VectorGuardShield:${data.transport}`,
150
- '::::::::::::::::::',
159
+ '',
151
160
  ].join('\n').trim();
161
+ const feecting = await this.question(`${this.askChr}feecting parse ${text}`);
152
162
  return {
153
- text,
154
- html: false,
163
+ text: feecting.a.text,
164
+ html: feecting.a.html,
155
165
  data,
156
166
  }
157
167
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": 6507120243760,
3
3
  "name": "@indra.ai/deva.security",
4
- "version": "0.0.30",
4
+ "version": "0.0.31",
5
5
  "author": "Quinn Michaels",
6
6
  "license": "MIT",
7
7
  "copyright": "2025",