@indra.ai/deva.guard 0.0.25 → 0.0.26

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 +28 -8
  2. package/package.json +1 -1
@@ -64,20 +64,32 @@ export default {
64
64
  const uid = this.lib.uid(true); // The UID for the proxy
65
65
  const transport = packet.id; // set the transport id from the packet id.
66
66
  const time = Date.now(); // current timestamp
67
+ const created = this.lib.formatDate(time, 'long', true); // Formatted created date.
67
68
 
69
+ this.state('set', 'guard'); //set the guard state for the proxy
70
+ const guard = this.guard(); // load the Guard profile
71
+ const {concerns} = guard; // load concerns from client guard profile.
72
+
73
+ this.state('set', 'agent'); //set the agent state for the proxy
74
+ const agent = this.agent(); // the agent processing the proxy
75
+
76
+ this.state('set', 'client'); //set the client state for the proxy
68
77
  const client = this.client(); // the client requesting the proxy
69
78
  const {profile} = client; // set the client profile
70
- const agent = this.agent(); // the agent processing the proxy
71
79
 
80
+ this.state('set', 'meta'); //set the meta state for the proxy
72
81
  const {meta} = packet.q; // set the meta information from the packet question.
73
82
  const {params} = meta; // set params from the meta information.
83
+
84
+ this.state('set', 'opts'); //set the opts state for the proxy
74
85
  const opts = this.lib.copy(params); // copy the params and set as opts.
75
86
  const command = opts.shift(); // extract the command first array item out of opts.
76
87
 
88
+ this.state('set', 'mesage'); //set the mesage state for the proxy
77
89
  const message = packet.q.text; // set packet.q.text as the message of the proxy.
78
- const {computer, hardware, provision, copyright} = profile; // constants saved from profile.
79
-
80
- const created = this.lib.formatDate(time, 'long', true); // Formatted created date.
90
+
91
+ this.state('set', 'profile contants'); //set the profile constants state for the proxy
92
+ const {name, fullname, title, computer, hardware, provision, copyright} = profile; // constants saved from profile.
81
93
 
82
94
  this.state('set', 'data'); // set the state to set data
83
95
  // data packet
@@ -86,12 +98,16 @@ export default {
86
98
  opts: opts.length? `.${opts.join('.')}` : '',
87
99
  transport,
88
100
  time,
89
- client,
90
101
  agent,
102
+ client,
103
+ name,
104
+ fullname,
105
+ title,
91
106
  message,
92
107
  computer,
93
108
  hardware,
94
109
  provision,
110
+ concerns,
95
111
  copyright,
96
112
  created,
97
113
  }
@@ -106,12 +122,16 @@ export default {
106
122
  this.state('set', 'text'); // set state to text for output formatting.
107
123
  const text = [
108
124
  `::::`,
109
- `write official authorized VectorGuardProxy${data.opts}? if yes then write ${data.message}`,
125
+ `WRITE AUTHORIZED OFFICIAL SECURE VectorGuardProxy${data.opts}? if yes then write ${data.message}`,
110
126
  `::begin:VectorGuardProxy:${data.transport}`,
111
127
  `transport: ${data.transport}`,
112
128
  `time: ${data.time}`,
113
- `client: ${data.client.id}`,
114
129
  `agent: ${data.agent.id}`,
130
+ `client: ${data.client.id}`,
131
+ `name: ${data.name}`,
132
+ `fullname: ${data.fullname}`,
133
+ `title: ${data.title}`,
134
+ `concerns: ${data.concerns.join(', ')}`,
115
135
  `copyright: ${data.copyright}`,
116
136
  `created: ${data.created}`,
117
137
  `md5: ${data.md5}`,
@@ -195,7 +215,7 @@ export default {
195
215
 
196
216
  const text = [
197
217
  `::::`,
198
- `write official authorized VectorGuardShield ${data.opts}? write ${data.message}`,
218
+ `WRITE AUTHORIZED OFFICIAL SECURE VectorGuardShield ${data.opts}? write ${data.message}`,
199
219
  `::begin:VectorGuardShield:${data.transport}`,
200
220
  `transport: ${data.transport}`,
201
221
  `caseid: ${data.caseid}`,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": 6159528221394,
3
3
  "name": "@indra.ai/deva.guard",
4
- "version": "0.0.25",
4
+ "version": "0.0.26",
5
5
  "author": "Quinn Michaels",
6
6
  "license": "MIT",
7
7
  "copyright": "2025",