@indra.ai/deva.guard 0.0.27 → 0.0.29
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/feature/methods.js +247 -129
- package/package.json +1 -1
package/feature/methods.js
CHANGED
|
@@ -55,15 +55,19 @@ export default {
|
|
|
55
55
|
copyright: ©2025 Quinn A Michaels. All rights reserved.
|
|
56
56
|
**/
|
|
57
57
|
async proxy(packet) {
|
|
58
|
+
this.state('set', `transport:${packet.id}`);
|
|
58
59
|
const transport = packet.id; // set the transport id from the packet id.
|
|
60
|
+
|
|
59
61
|
this.zone('guard', transport); // set the current zone to guard
|
|
60
62
|
this.feature('guard', transport); // set the Guard feature.
|
|
61
63
|
this.context('proxy', transport); // set the agent context to proxy.
|
|
62
64
|
this.action('method', `proxy:${transport}`); // set the action method to proxy.
|
|
63
|
-
|
|
64
|
-
this.state('set', `
|
|
65
|
+
|
|
66
|
+
this.state('set', `uid:${transport}`); //set the uid state for the proxy
|
|
65
67
|
const uid = this.lib.uid(true); // The UID for the proxy
|
|
68
|
+
this.state('set', `time:${transport}`); //set the time state for the proxy
|
|
66
69
|
const time = Date.now(); // current timestamp
|
|
70
|
+
this.state('created', `created:${transport}`); //set the uid state for the proxy
|
|
67
71
|
const created = this.lib.formatDate(time, 'long', true); // Formatted created date.
|
|
68
72
|
|
|
69
73
|
this.state('set', `guard:${transport}`); //set the guard state for the proxy
|
|
@@ -75,79 +79,103 @@ export default {
|
|
|
75
79
|
|
|
76
80
|
this.state('set', `client:${transport}`); //set the client state for the proxy
|
|
77
81
|
const client = this.client(); // the client requesting the proxy
|
|
78
|
-
const {profile} = client; // set the client profile
|
|
79
82
|
|
|
80
83
|
this.state('set', `meta:${transport}`); //set the meta state for the proxy
|
|
81
84
|
const {meta} = packet.q; // set the meta information from the packet question.
|
|
85
|
+
|
|
86
|
+
this.state('set', `params:${transport}`); //set the meta state for the proxy
|
|
82
87
|
const {params} = meta; // set params from the meta information.
|
|
83
88
|
|
|
84
89
|
this.state('set', `opts:${transport}`); //set the opts state for the proxy
|
|
85
90
|
const opts = this.lib.copy(params); // copy the params and set as opts.
|
|
91
|
+
|
|
92
|
+
this.state('set', `command:${transport}`); //set the opts state for the proxy
|
|
86
93
|
const command = opts.shift(); // extract the command first array item out of opts.
|
|
87
94
|
|
|
88
|
-
this.state('set', `message:${transport}`); //set the
|
|
95
|
+
this.state('set', `message:${transport}`); //set the message state for the proxy
|
|
89
96
|
const message = packet.q.text; // set packet.q.text as the message of the proxy.
|
|
90
|
-
|
|
91
|
-
this.state('set', `
|
|
92
|
-
const
|
|
97
|
+
|
|
98
|
+
this.state('set', `write:${transport}`); //set the message state for the proxy
|
|
99
|
+
const write = `OM:${client.profile.write.split(' ').join(':').toUpperCase()}:PROXY`; // set proxy write string.
|
|
93
100
|
|
|
94
101
|
this.state('set', `data:${transport}`); // set the state to set data
|
|
95
102
|
// data packet
|
|
96
103
|
const data = {
|
|
97
104
|
uid,
|
|
98
|
-
|
|
99
|
-
transport,
|
|
105
|
+
message,
|
|
100
106
|
time,
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
107
|
+
transport,
|
|
108
|
+
write,
|
|
109
|
+
case: client.profile.caseid,
|
|
110
|
+
opts: opts.length? `:${opts.join(':')}` : '',
|
|
111
|
+
agent: agent.profile,
|
|
112
|
+
client: client.profile,
|
|
113
|
+
name: client.profile.name,
|
|
114
|
+
fullname: client.profile.fullname,
|
|
115
|
+
nickname: client.profile.nickname,
|
|
116
|
+
birthname: client.profile.birthname,
|
|
117
|
+
gender: client.profile.gender,
|
|
118
|
+
pronouns: client.profile.pronouns,
|
|
119
|
+
emojis: client.profile.emojis,
|
|
120
|
+
company: client.profile.company,
|
|
121
|
+
address: `${client.profile.address} ${client.profile.city} ${client.profile.state} ${client.profile.zipcode}`,
|
|
122
|
+
family: client.profile.family,
|
|
123
|
+
friends: client.profile.friends,
|
|
124
|
+
token: client.profile.token,
|
|
125
|
+
warning: client.profile.warning,
|
|
113
126
|
concerns,
|
|
114
|
-
|
|
127
|
+
meta,
|
|
128
|
+
params,
|
|
129
|
+
command,
|
|
115
130
|
created,
|
|
116
|
-
|
|
131
|
+
copyright: client.profile.copyright,
|
|
132
|
+
};
|
|
117
133
|
|
|
118
|
-
this.state('secure', `
|
|
134
|
+
this.state('secure', `md5:${transport}`); // set state to secure hashing
|
|
119
135
|
data.md5 = this.lib.hash(data, 'md5'); // hash data packet into md5 and inert into data.
|
|
136
|
+
|
|
137
|
+
this.state('secure', `sha256:${transport}`); // set state to secure hashing
|
|
120
138
|
data.sha256 = this.lib.hash(data, 'sha256'); // hash data into sha 256 then set in data.
|
|
121
|
-
data.sha512 = this.lib.hash(data, 'sha512'); // hash data into sha 512 then set in data.
|
|
122
139
|
|
|
140
|
+
this.state('secure', `sha512:${transport}`); // set state to secure hashing
|
|
141
|
+
data.sha512 = this.lib.hash(data, 'sha512'); // hash data into sha 512 then set in data.
|
|
142
|
+
|
|
123
143
|
// Text data that is joined by line breaks and then trimmed.
|
|
124
|
-
|
|
125
144
|
this.state('set', `text:${transport}`); // set state to text for output formatting.
|
|
126
145
|
const text = [
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
146
|
+
`:::`,
|
|
147
|
+
`::BEGIN:${data.write}:${data.transport}`,
|
|
148
|
+
`#VectorGuardProxy${data.opts} ${data.message}`,
|
|
149
|
+
`::begin:vector:guard:proxy:${transport}:${data.emojis}`,
|
|
150
|
+
`time: ${data.time}`,
|
|
130
151
|
`transport: ${data.transport}`,
|
|
131
152
|
`agent: ${data.agent.id}`,
|
|
132
153
|
`client: ${data.client.id}`,
|
|
133
154
|
`name: ${data.name}`,
|
|
134
155
|
`fullname: ${data.fullname}`,
|
|
135
|
-
`
|
|
136
|
-
`
|
|
137
|
-
`
|
|
138
|
-
`
|
|
156
|
+
`nickname: ${data.nickname}`,
|
|
157
|
+
`family: ${data.family}`,
|
|
158
|
+
`friends: ${data.friends}`,
|
|
159
|
+
`gender: ${data.gender}`,
|
|
160
|
+
`pronouns: ${data.pronouns}`,
|
|
161
|
+
`company: ${data.company}`,
|
|
162
|
+
`address: ${data.address}`,
|
|
163
|
+
`token: ${data.token}`,
|
|
164
|
+
`concerns: ${data.concerns}`,
|
|
165
|
+
`warning: ${data.warning}`,
|
|
166
|
+
`caseid: ${data.caseid}`,
|
|
139
167
|
`created: ${data.created}`,
|
|
140
168
|
`md5: ${data.md5}`,
|
|
141
169
|
`sha256: ${data.sha256}`,
|
|
142
170
|
`sha512: ${data.sha512}`,
|
|
143
171
|
`copyright: ${data.copyright}`,
|
|
144
|
-
`::end:vector:guard:proxy:${data.transport}`,
|
|
145
|
-
|
|
172
|
+
`::end:vector:guard:proxy:${data.transport}:${data.emojis}`,
|
|
173
|
+
`::END:${data.write}:${data.transport}`,
|
|
146
174
|
].join('\n').trim();
|
|
147
175
|
|
|
148
176
|
// send the text data to #feecting to parse and return valid text, html, and data.
|
|
149
177
|
this.action('question', `feecting:parse:${transport}`); // action set to feecting parse
|
|
150
|
-
const feecting = await this.question(`${this.askChr}feecting parse ${text}`); // parse with feecting agent.
|
|
178
|
+
const feecting = await this.question(`${this.askChr}feecting parse:${transport} ${text}`); // parse with feecting agent.
|
|
151
179
|
|
|
152
180
|
this.state('return', `proxy:${transport}`); // set the state to return proxy
|
|
153
181
|
return {
|
|
@@ -164,86 +192,129 @@ export default {
|
|
|
164
192
|
copyright: ©2025 Quinn A Michaels. All rights reserved.
|
|
165
193
|
**/
|
|
166
194
|
async shield(packet) {
|
|
167
|
-
this.
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
this.
|
|
171
|
-
|
|
172
|
-
|
|
195
|
+
this.state('set', `transport:${packet.id}`);
|
|
196
|
+
const transport = packet.id; // set the transport from packet.id
|
|
197
|
+
|
|
198
|
+
this.zone('guard', transport); // set the current zone to guard
|
|
199
|
+
this.feature('guard', transport); // set the Guard feature.
|
|
200
|
+
this.context('shield', transport); // set context to shield
|
|
201
|
+
this.action('method', `shield:${transport}`); // action set to shield
|
|
202
|
+
|
|
203
|
+
this.state('set', `uid:${transport}`); //set the uid state for the proxy
|
|
204
|
+
const uid = this.lib.uid(true); // The UID for the proxy
|
|
205
|
+
this.state('set', `time:${transport}`); //set the time state for the proxy
|
|
206
|
+
const time = Date.now(); // current timestamp
|
|
207
|
+
this.state('created', `created:${transport}`); //set the uid state for the proxy
|
|
208
|
+
const created = this.lib.formatDate(time, 'long', true); // Formatted created date.
|
|
173
209
|
|
|
174
|
-
|
|
175
|
-
const
|
|
176
|
-
const
|
|
177
|
-
const {profile} = client;
|
|
210
|
+
this.state('set', `guard:${transport}`); //set the guard state for the proxy
|
|
211
|
+
const guard = this.guard(); // load the Guard profile
|
|
212
|
+
const {concerns} = guard; // load concerns from client guard profile.
|
|
178
213
|
|
|
179
|
-
|
|
180
|
-
const
|
|
181
|
-
const opts = this.lib.copy(params);
|
|
182
|
-
const cmd = opts.shift();
|
|
214
|
+
this.state('set', `agent:${transport}`); //set the agent state for the proxy
|
|
215
|
+
const agent = this.agent(); // the agent processing the proxy
|
|
183
216
|
|
|
184
|
-
|
|
185
|
-
const
|
|
186
|
-
const
|
|
187
|
-
const message = packet.q.text || '';
|
|
188
|
-
|
|
189
|
-
const {computer, hardware, provision, ssn, name, title, fullname, network, caseid, religion, token, warning, copyright} = profile;
|
|
217
|
+
this.state('set', `client:${transport}`); //set the client state for the proxy
|
|
218
|
+
const client = this.client(); // the client requesting the proxy
|
|
219
|
+
const {profile} = client; // set the client profile
|
|
190
220
|
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
}
|
|
221
|
+
this.state('set', `meta:${transport}`); //set the meta state for the proxy
|
|
222
|
+
const {meta} = packet.q; // set the meta information from the packet question.
|
|
223
|
+
const {params} = meta; // set params from the meta information.
|
|
224
|
+
|
|
225
|
+
this.state('set', `opts:${transport}`); //set the opts state for the proxy
|
|
226
|
+
const opts = this.lib.copy(params); // copy the params and set as opts.
|
|
194
227
|
|
|
228
|
+
this.state('set', `command:${transport}`); //set the opts state for the proxy
|
|
229
|
+
const command = opts.shift(); // extract the command first array item out of opts.
|
|
230
|
+
|
|
231
|
+
this.state('set', `message:${transport}`); //set the message state for the proxy
|
|
232
|
+
const message = packet.q.text; // set packet.q.text as the message of the proxy.
|
|
233
|
+
|
|
234
|
+
this.state('set', `writestr:${transport}`);
|
|
235
|
+
const write = `OM:${client.profile.write.split(' ').join(':').toUpperCase()}:SHIELD`;
|
|
236
|
+
|
|
237
|
+
this.state('hash')
|
|
238
|
+
this.state('set', `data:${transport}`); // set the state to set data
|
|
239
|
+
// data packet
|
|
195
240
|
const data = {
|
|
196
241
|
uid,
|
|
242
|
+
message,
|
|
243
|
+
time,
|
|
197
244
|
transport,
|
|
245
|
+
write,
|
|
246
|
+
case: client.profile.caseid,
|
|
198
247
|
opts: opts.length? `:${opts.join(':')}` : '',
|
|
199
248
|
agent: agent.profile,
|
|
200
249
|
client: client.profile,
|
|
201
|
-
name,
|
|
202
|
-
fullname,
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
250
|
+
name: client.profile.name,
|
|
251
|
+
fullname: client.profile.fullname,
|
|
252
|
+
nickname: client.profile.nickname,
|
|
253
|
+
birthname: client.profile.birthname,
|
|
254
|
+
gender: client.profile.gender,
|
|
255
|
+
pronouns: client.profile.pronouns,
|
|
256
|
+
emojis: client.profile.emojis,
|
|
257
|
+
company: client.profile.company,
|
|
258
|
+
address: `${client.profile.address} ${client.profile.city} ${client.profile.state} ${client.profile.zipcode}`,
|
|
259
|
+
family: client.profile.family,
|
|
260
|
+
friends: client.profile.friends,
|
|
261
|
+
token: client.profile.token,
|
|
262
|
+
warning: client.profile.warning,
|
|
263
|
+
concerns,
|
|
264
|
+
meta,
|
|
265
|
+
params,
|
|
266
|
+
command,
|
|
217
267
|
created,
|
|
268
|
+
copyright: client.profile.copyright,
|
|
218
269
|
};
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
data.
|
|
270
|
+
|
|
271
|
+
this.state('secure', `md5:${transport}`); // set state to secure hashing
|
|
272
|
+
data.md5 = this.lib.hash(data, 'md5'); // hash data packet into md5 and inert into data.
|
|
222
273
|
|
|
274
|
+
this.state('secure', `sha256:${transport}`); // set state to secure hashing
|
|
275
|
+
data.sha256 = this.lib.hash(data, 'sha256'); // hash data into sha 256 then set in data.
|
|
276
|
+
|
|
277
|
+
this.state('secure', `sha512:${transport}`); // set state to secure hashing
|
|
278
|
+
data.sha512 = this.lib.hash(data, 'sha512'); // hash data into sha 512 then set in data.
|
|
279
|
+
|
|
280
|
+
this.state('set', `text:${transport}`); // set state to text for output formatting.
|
|
223
281
|
const text = [
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
282
|
+
'::::',
|
|
283
|
+
`::BEGIN:${data.write}:${transport}`,
|
|
284
|
+
`#VectorGuardShield${data.opts} ${data.message}`,
|
|
285
|
+
`::begin:vector:guard:shield:${transport}:${data.emojis}`,
|
|
286
|
+
`time: ${data.time}`,
|
|
227
287
|
`transport: ${data.transport}`,
|
|
228
|
-
`agent: ${agent.
|
|
229
|
-
`client: ${client.
|
|
288
|
+
`agent: ${data.agent.id}`,
|
|
289
|
+
`client: ${data.client.id}`,
|
|
230
290
|
`name: ${data.name}`,
|
|
231
291
|
`fullname: ${data.fullname}`,
|
|
232
|
-
`
|
|
233
|
-
`
|
|
292
|
+
`nickname: ${data.nickname}`,
|
|
293
|
+
`family: ${data.family}`,
|
|
294
|
+
`friends: ${data.friends}`,
|
|
295
|
+
`gender: ${data.gender}`,
|
|
296
|
+
`pronouns: ${data.pronouns}`,
|
|
297
|
+
`company: ${data.company}`,
|
|
298
|
+
`address: ${data.address}`,
|
|
299
|
+
`token: ${data.token}`,
|
|
300
|
+
`concerns: ${data.concerns}`,
|
|
234
301
|
`warning: ${data.warning}`,
|
|
235
|
-
`
|
|
236
|
-
`case: ${data.caseid}`,
|
|
237
|
-
`time: ${data.timestamp}`,
|
|
302
|
+
`caseid: ${data.caseid}`,
|
|
238
303
|
`created: ${data.created}`,
|
|
239
304
|
`md5: ${data.md5}`,
|
|
240
305
|
`sha256: ${data.sha256}`,
|
|
241
306
|
`sha512: ${data.sha512}`,
|
|
242
307
|
`copyright: ${data.copyright}`,
|
|
243
|
-
`::end:vector:guard:shield:${data.transport}`,
|
|
244
|
-
|
|
308
|
+
`::end:vector:guard:shield:${data.transport}:${data.emojis}`,
|
|
309
|
+
`::END:${data.write}:${transport}`,
|
|
310
|
+
'::::',
|
|
245
311
|
].join('\n').trim();
|
|
246
|
-
|
|
312
|
+
|
|
313
|
+
// send the text data to #feecting to parse and return valid text, html, and data.
|
|
314
|
+
this.action('question', `feecting:parse:${transport}`); // action set to feecting parse
|
|
315
|
+
const feecting = await this.question(`${this.askChr}feecting parse:${transport} ${text}`);
|
|
316
|
+
|
|
317
|
+
this.state('return', `shield:${transport}`); // set the state to return proxy
|
|
247
318
|
return {
|
|
248
319
|
text: feecting.a.text,
|
|
249
320
|
html: feecting.a.html,
|
|
@@ -252,70 +323,117 @@ export default {
|
|
|
252
323
|
},
|
|
253
324
|
|
|
254
325
|
async wall(packet) {
|
|
255
|
-
this.
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
const
|
|
265
|
-
|
|
266
|
-
const
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
const
|
|
272
|
-
|
|
273
|
-
|
|
326
|
+
this.state('set', `transport:${packet.id}`);
|
|
327
|
+
const transport = packet.id; // set the transport from packet.id
|
|
328
|
+
|
|
329
|
+
this.zone('wall', transport); // set the current zone to wall
|
|
330
|
+
this.feature('wall', transport); // set the Wall feature.
|
|
331
|
+
this.context('wall', transport); // set context to shield
|
|
332
|
+
this.action('method', `wall:${transport}`); // action set to shield
|
|
333
|
+
|
|
334
|
+
this.state('set', `uid:${transport}`); //set the uid state for the proxy
|
|
335
|
+
const uid = this.lib.uid(true); // The UID for the proxy
|
|
336
|
+
this.state('set', `time:${transport}`); //set the time state for the proxy
|
|
337
|
+
const time = Date.now(); // current timestamp
|
|
338
|
+
this.state('created', `created:${transport}`); //set the uid state for the proxy
|
|
339
|
+
const created = this.lib.formatDate(time, 'long', true); // Formatted created date.
|
|
340
|
+
|
|
341
|
+
this.state('set', `wall:${transport}`); //set the wall state for the proxy
|
|
342
|
+
const guard = this.guard(); // load the Guard profile
|
|
343
|
+
const {concerns} = guard; // load concerns from client guard profile.
|
|
344
|
+
|
|
345
|
+
this.state('set', `agent:${transport}`); //set the agent state for the proxy
|
|
346
|
+
const agent = this.agent(); // the agent processing the proxy
|
|
347
|
+
|
|
348
|
+
this.state('set', `client:${transport}`); //set the client state for the proxy
|
|
349
|
+
const client = this.client(); // the client requesting the proxy
|
|
350
|
+
const {profile} = client; // set the client profile
|
|
274
351
|
|
|
352
|
+
this.state('set', `meta:${transport}`); //set the meta state for the proxy
|
|
353
|
+
const {meta} = packet.q; // set the meta information from the packet question.
|
|
354
|
+
const {params} = meta; // set params from the meta information.
|
|
355
|
+
|
|
356
|
+
this.state('set', `opts:${transport}`); //set the opts state for the proxy
|
|
357
|
+
const opts = this.lib.copy(params); // copy the params and set as opts.
|
|
358
|
+
|
|
359
|
+
this.state('set', `command:${transport}`); //set the opts state for the proxy
|
|
360
|
+
const command = opts.shift(); // extract the command first array item out of opts.
|
|
361
|
+
|
|
362
|
+
this.state('set', `message:${transport}`); //set the message state for the proxy
|
|
363
|
+
const message = packet.q.text; // set packet.q.text as the message of the proxy.
|
|
364
|
+
|
|
365
|
+
this.state('set', `profile:${transport}`); //set the profile constants state for the proxy
|
|
366
|
+
const {name, fullname, nickname, title, write, religion, companies, ssn, emojis, warning, computer, hardware, provision, network, caseid, token, copyright} = profile; // constants saved from profile.
|
|
367
|
+
|
|
368
|
+
this.state('set', `data:${transport}`); // set the state to set data
|
|
369
|
+
// data packet
|
|
275
370
|
const data = {
|
|
276
371
|
uid,
|
|
277
372
|
transport,
|
|
278
373
|
opts: opts.length? `:${opts.join(':')}` : '',
|
|
279
|
-
|
|
280
|
-
agent
|
|
374
|
+
time,
|
|
375
|
+
agent,
|
|
376
|
+
client,
|
|
281
377
|
name,
|
|
282
378
|
fullname,
|
|
283
|
-
|
|
284
|
-
|
|
379
|
+
nickname,
|
|
380
|
+
title,
|
|
381
|
+
write,
|
|
382
|
+
emojis,
|
|
383
|
+
warning,
|
|
384
|
+
religion,
|
|
385
|
+
companies,
|
|
386
|
+
message,
|
|
387
|
+
ssn,
|
|
285
388
|
computer,
|
|
286
|
-
hardware,
|
|
389
|
+
hardware,
|
|
287
390
|
provision,
|
|
288
391
|
network,
|
|
289
|
-
|
|
290
|
-
|
|
392
|
+
caseid,
|
|
393
|
+
concerns,
|
|
291
394
|
token,
|
|
292
395
|
copyright,
|
|
396
|
+
created,
|
|
293
397
|
};
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
data.
|
|
398
|
+
|
|
399
|
+
this.state('secure', `md5:${transport}`); // set state to secure hashing
|
|
400
|
+
data.md5 = this.lib.hash(data, 'md5'); // hash data packet into md5 and inert into data.
|
|
401
|
+
|
|
402
|
+
this.state('secure', `sha256:${transport}`); // set state to secure hashing
|
|
403
|
+
data.sha256 = this.lib.hash(data, 'sha256'); // hash data into sha 256 then set in data.
|
|
297
404
|
|
|
405
|
+
this.state('secure', `sha512:${transport}`); // set state to secure hashing
|
|
406
|
+
data.sha512 = this.lib.hash(data, 'sha512'); // hash data into sha 512 then set in data.
|
|
407
|
+
|
|
408
|
+
this.state('set', `writestr:${transport}`);
|
|
409
|
+
const writestr = data.write.split(' ').join(':').toUpperCase();
|
|
410
|
+
|
|
298
411
|
const text = [
|
|
299
|
-
|
|
412
|
+
'::::',
|
|
413
|
+
`::BEGIN:${writestr}:WALL:${transport}:${data.emojis}`,
|
|
414
|
+
`#VectorGuardWall${data.opts} ${data.message}`,
|
|
300
415
|
`::begin:VectorGuardWall:${data.transport}`,
|
|
301
416
|
`transport: ${data.transport}`,
|
|
302
|
-
`caseid: ${data.caseid}`,
|
|
303
417
|
`agent: ${agent.profile.id}`,
|
|
304
418
|
`client: ${client.profile.id}`,
|
|
305
419
|
`name: ${data.name}`,
|
|
420
|
+
`fullname: ${data.fullname}`,
|
|
421
|
+
`nickname: ${data.nickname}`,
|
|
422
|
+
`title: ${data.title}`,
|
|
306
423
|
`token: ${data.token}`,
|
|
307
|
-
`
|
|
308
|
-
`
|
|
309
|
-
`hardware: ${data.hardware}`,
|
|
310
|
-
`provision: ${data.provision}`,
|
|
311
|
-
`network: ${data.network}`,
|
|
312
|
-
`copyright: ${data.copyright}`,
|
|
424
|
+
`case: ${data.caseid}`,
|
|
425
|
+
`time: ${data.time}`,
|
|
313
426
|
`created: ${data.created}`,
|
|
427
|
+
`copyright: ${data.copyright}`,
|
|
314
428
|
`md5: ${data.md5}`,
|
|
315
429
|
`sha256: ${data.sha256}`,
|
|
316
430
|
`sha512: ${data.sha512}`,
|
|
317
|
-
`::end:
|
|
431
|
+
`::end:VectorGuardWall:${data.transport}`,
|
|
432
|
+
`::END:${writestr}:WALL:${transport}:${data.emojis}`,
|
|
318
433
|
].join('\n').trim();
|
|
434
|
+
|
|
435
|
+
// send the text data to #feecting to parse and return valid text, html, and data.
|
|
436
|
+
this.action('question', `feecting:parse:${transport}`); // action set to feecting parse
|
|
319
437
|
const feecting = await this.question(`${this.askChr}feecting parse ${text}`);
|
|
320
438
|
return {
|
|
321
439
|
text: feecting.a.text,
|