node-red-contrib-vectorprime 0.1.6 → 0.1.8

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/package.json +1 -1
  2. package/vectorprime.html +31 -45
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-red-contrib-vectorprime",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "description": "VectorPrime Decision Kernel node for Node-RED",
5
5
  "main": "vectorprime.js",
6
6
  "license": "MIT",
package/vectorprime.html CHANGED
@@ -1,3 +1,7 @@
1
+ <!-- ========================= -->
2
+ <!-- VectorPrime Config Node UI -->
3
+ <!-- ========================= -->
4
+
1
5
  <script type="text/html" data-template-name="vectorprime-config">
2
6
  <div class="form-row">
3
7
  <label for="node-config-input-baseUrl">
@@ -22,30 +26,25 @@
22
26
 
23
27
  <div class="form-row">
24
28
  <div style="font-size:12px; color:#666;">
25
- Key is stored securely in Node-RED credentials (not exported with flows).
29
+ API key is stored securely in Node-RED credentials (not exported with flows).
26
30
  </div>
27
31
  </div>
28
32
  </script>
29
33
 
30
- <!-- ✅ HELP TEXT (this fixes "no information available" for config node) -->
31
34
  <script type="text/html" data-help-name="vectorprime-config">
32
- <p><b>VectorPrime Config</b></p>
33
-
34
35
  <p>
35
- Stores the VectorPrime backend URL and your API key securely using Node-RED credentials.
36
- This is shared across VectorPrime nodes so you only configure it once.
36
+ Stores your VectorPrime connection details securely.
37
+ Use this once, then reuse it across multiple VectorPrime nodes.
37
38
  </p>
38
39
 
39
- <p><b>Quick Start</b></p>
40
+ <h3>Setup</h3>
40
41
  <ol>
41
- <li>Leave <b>Base URL</b> as default unless you self-host VectorPrime.</li>
42
- <li>Click <b>Get Free Key</b> to generate a key instantly.</li>
43
- <li>Hit <b>Done</b> to save.</li>
42
+ <li>Leave Base URL default (recommended)</li>
43
+ <li>Click <b>Get Free Key</b> to generate a starter key</li>
44
+ <li>Select this config in your VectorPrime nodes</li>
44
45
  </ol>
45
46
 
46
- <p style="margin-top:8px; font-size:12px; color:#666;">
47
- Tip: Your API key is not exported in flow JSON and stays encrypted inside Node-RED credentials.
48
- </p>
47
+ <p><b>Default Base URL:</b> <code>https://vectorprime-kernel-backend.onrender.com</code></p>
49
48
  </script>
50
49
 
51
50
  <script type="text/javascript">
@@ -112,7 +111,7 @@
112
111
  }
113
112
 
114
113
  apiKeyInput.value = data.api_key;
115
- statusEl.textContent = "✅ Free key generated + saved";
114
+ statusEl.textContent = "✅ Free key saved";
116
115
  statusEl.style.color = "green";
117
116
  } catch (err) {
118
117
  statusEl.textContent = `❌ Error: ${err.message}`;
@@ -125,7 +124,7 @@
125
124
  </script>
126
125
 
127
126
  <!-- ========================= -->
128
- <!-- VectorPrime Rank Node -->
127
+ <!-- VectorPrime Rank Node UI -->
129
128
  <!-- ========================= -->
130
129
 
131
130
  <script type="text/html" data-template-name="vectorprime-rank">
@@ -146,54 +145,40 @@
146
145
 
147
146
  <div class="form-row">
148
147
  <div style="font-size:12px; color:#666;">
149
- ✅ Sends <code>msg.payload</code> to VectorPrime and returns results in <code>msg.payload</code>.
148
+ ✅ Sends <code>msg.payload</code> to VectorPrime and returns ranked results in <code>msg.payload</code>.
150
149
  </div>
151
150
  </div>
152
151
  </script>
153
152
 
154
- <!-- ✅ HELP TEXT (this fixes your tooltip + makes it MARKETABLE) -->
153
+ <!-- ✅ THIS is the exact text that should show when you hover in the palette -->
155
154
  <script type="text/html" data-help-name="vectorprime-rank">
156
- <p><b>Rank Decision (VectorPrime)</b></p>
157
-
158
155
  <p>
159
- Instantly ranks options by <b>best next action</b> using the VectorPrime Decision Kernel.
160
- Use this when your flow needs to choose the best outcome from multiple choices — fast and deterministically.
156
+ Automatically ranks tasks, alerts, or choices in <code>msg.payload</code> so your flow can pick the <b>best next action</b>.
161
157
  </p>
162
158
 
163
- <p><b>Most valuable use-cases (why developers install this)</b></p>
159
+ <h3>Why developers install this</h3>
164
160
  <ul>
165
- <li><b>Automation routing:</b> pick which workflow runs next based on priority + risk</li>
166
- <li><b>Incident response:</b> rank mitigation steps during outages (fastest safe fix)</li>
167
- <li><b>Agent coordination:</b> choose the best tool/action from multiple agent outputs</li>
168
- <li><b>Ops decisioning:</b> prioritize tickets/tasks using a deterministic decision score</li>
161
+ <li><b>Incident response:</b> rank alerts and fix the highest-impact issue first</li>
162
+ <li><b>Automation & ops:</b> choose what job runs next when time/resources are limited</li>
163
+ <li><b>AI agents:</b> pick the safest + highest-outcome tool/action automatically</li>
164
+ <li><b>Queues & tickets:</b> prioritize support tickets, work orders, escalations</li>
165
+ <li><b>Workflow routing:</b> route incoming events by urgency + risk</li>
169
166
  </ul>
170
167
 
171
- <p><b>Input</b></p>
172
- <pre>{
173
- "decision_id": "any-string",
174
- "prompt": "What should we do next?",
175
- "options": [
176
- {"id":"a","label":"Option A"},
177
- {"id":"b","label":"Option B"}
178
- ],
179
- "engine": "classical",
180
- "seed": 123
181
- }</pre>
182
-
183
- <p><b>Output</b></p>
184
- <p>
185
- Returns the ranking result in <code>msg.payload</code> (ordered options + scores/probabilities depending on engine).
186
- </p>
168
+ <h3>Input</h3>
169
+ <p><code>msg.payload</code> = your decisions/tasks object (JSON)</p>
170
+
171
+ <h3>Output</h3>
172
+ <p><code>msg.payload</code> = ranked decision result (JSON)</p>
187
173
 
188
- <p style="margin-top:8px; font-size:12px; color:#666;">
189
- Tip: If the free tier limit is reached, the response includes an upgrade URL so flows can upgrade cleanly.
174
+ <p>
175
+ If you hit a free-tier limit, the response may include an upgrade URL so the flow can continue.
190
176
  </p>
191
177
  </script>
192
178
 
193
179
  <script type="text/javascript">
194
180
  RED.nodes.registerType("vectorprime-rank", {
195
181
  category: "network",
196
- paletteLabel: "Rank Decision (VectorPrime)",
197
182
  color: "#2563EB",
198
183
  defaults: {
199
184
  name: { value: "" },
@@ -203,6 +188,7 @@
203
188
  inputs: 1,
204
189
  outputs: 1,
205
190
  icon: "font-awesome/fa-bolt",
191
+ paletteLabel: "Rank Decision (VectorPrime)",
206
192
  label: function () {
207
193
  return this.name || "Rank Decision (VectorPrime)";
208
194
  }