node-red-contrib-vectorprime 0.1.21 → 0.1.22
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/LICENSE +21 -0
- package/README.md +17 -8
- package/examples/text-only-demo.json +84 -0
- package/package.json +1 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Faisal Khan
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
# node-red-contrib-vectorprime
|
|
2
2
|
|
|
3
|
-
**VectorPrime Rank** — automatically rank tasks, alerts, or decisions using the VectorPrime Decision Kernel.
|
|
3
|
+
**VectorPrime Rank** — automatically rank tasks, alerts, or decisions using the VectorPrime Decision Kernel (**Contract v1**).
|
|
4
4
|
|
|
5
|
-
This node helps you pick the **best next action** when you have multiple choices
|
|
5
|
+
This node helps you pick the **best next action** when you have multiple choices — **without faking certainty**.
|
|
6
6
|
|
|
7
7
|
✅ Prioritize tasks
|
|
8
8
|
✅ Rank alerts by urgency
|
|
9
9
|
✅ Choose the best option from multiple choices
|
|
10
|
-
✅ Turn “too many choices” into a
|
|
11
|
-
✅ Works inside Node-RED flows with 1 click
|
|
10
|
+
✅ Turn “too many choices” into a safe automation decision state
|
|
11
|
+
✅ Works inside Node-RED flows with 1 click
|
|
12
12
|
|
|
13
13
|
---
|
|
14
14
|
|
|
15
15
|
## What it does (in 1 sentence)
|
|
16
16
|
|
|
17
|
-
**Send a list of options → get them ranked best-to-worst with
|
|
17
|
+
**Send a list of options → get them ranked best-to-worst with probabilities + metadata you can branch on.**
|
|
18
18
|
|
|
19
19
|
---
|
|
20
20
|
|
|
@@ -32,13 +32,22 @@ VectorPrime solves that by turning this:
|
|
|
32
32
|
|
|
33
33
|
Into:
|
|
34
34
|
|
|
35
|
-
✅ **
|
|
35
|
+
✅ A **ranked result** when the input supports a winner
|
|
36
|
+
✅ Or a **tie / no-dominant outcome** (so your flow can branch safely)
|
|
36
37
|
|
|
37
38
|
---
|
|
38
39
|
|
|
39
|
-
##
|
|
40
|
+
## Install
|
|
40
41
|
|
|
41
|
-
###
|
|
42
|
+
### Option A: Install from the Node-RED palette (recommended)
|
|
43
|
+
1) Open Node-RED in your browser
|
|
44
|
+
2) Click the menu (top-right) ☰
|
|
45
|
+
3) Click **Manage palette**
|
|
46
|
+
4) Click the **Install** tab
|
|
47
|
+
5) Search: `node-red-contrib-vectorprime`
|
|
48
|
+
6) Click **Install**
|
|
49
|
+
|
|
50
|
+
### Option B: Install from terminal (Node-RED user directory)
|
|
42
51
|
In your Node-RED user directory (usually `C:\Users\mxz\.node-red`):
|
|
43
52
|
|
|
44
53
|
```bash
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"id": "6b4ebf01a82e093f",
|
|
4
|
+
"type": "tab",
|
|
5
|
+
"label": "VectorPrime — Text-Only Demo",
|
|
6
|
+
"disabled": false,
|
|
7
|
+
"info": "",
|
|
8
|
+
"env": []
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"id": "3176afe5e7648773",
|
|
12
|
+
"type": "inject",
|
|
13
|
+
"z": "6b4ebf01a82e093f",
|
|
14
|
+
"name": "",
|
|
15
|
+
"props": [
|
|
16
|
+
{
|
|
17
|
+
"p": "payload"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"p": "topic",
|
|
21
|
+
"vt": "str"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"repeat": "",
|
|
25
|
+
"crontab": "",
|
|
26
|
+
"once": false,
|
|
27
|
+
"onceDelay": 0.1,
|
|
28
|
+
"topic": "",
|
|
29
|
+
"payload": "{ \"decision_id\": \"nodered-test-text-only\", \"prompt\": \"Rank these options\", \"options\": [ { \"id\": \"A\", \"label\": \"Pay down highest-interest cards\" }, { \"id\": \"B\", \"label\": \"Split between debt + emergency fund\" }, { \"id\": \"C\", \"label\": \"Keep cash buffer and pay minimums\" } ] }",
|
|
30
|
+
"payloadType": "json",
|
|
31
|
+
"x": 310,
|
|
32
|
+
"y": 360,
|
|
33
|
+
"wires": [
|
|
34
|
+
[
|
|
35
|
+
"de664cfdaa6f92ff"
|
|
36
|
+
]
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"id": "ee3fbcba46047364",
|
|
41
|
+
"type": "debug",
|
|
42
|
+
"z": "6b4ebf01a82e093f",
|
|
43
|
+
"name": "debug 4",
|
|
44
|
+
"active": true,
|
|
45
|
+
"tosidebar": true,
|
|
46
|
+
"console": false,
|
|
47
|
+
"tostatus": false,
|
|
48
|
+
"complete": "true",
|
|
49
|
+
"targetType": "full",
|
|
50
|
+
"statusVal": "",
|
|
51
|
+
"statusType": "auto",
|
|
52
|
+
"x": 1300,
|
|
53
|
+
"y": 360,
|
|
54
|
+
"wires": []
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"id": "de664cfdaa6f92ff",
|
|
58
|
+
"type": "vectorprime-rank",
|
|
59
|
+
"z": "6b4ebf01a82e093f",
|
|
60
|
+
"name": "",
|
|
61
|
+
"config": "093afe8dfa255aef",
|
|
62
|
+
"endpoint": "/v1/kernel/rank",
|
|
63
|
+
"x": 800,
|
|
64
|
+
"y": 360,
|
|
65
|
+
"wires": [
|
|
66
|
+
[
|
|
67
|
+
"ee3fbcba46047364"
|
|
68
|
+
]
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"id": "093afe8dfa255aef",
|
|
73
|
+
"type": "vectorprime-config",
|
|
74
|
+
"baseUrl": "https://vectorprime-kernel-backend.onrender.com"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"id": "f97b2de3fce3ce4e",
|
|
78
|
+
"type": "global-config",
|
|
79
|
+
"env": [],
|
|
80
|
+
"modules": {
|
|
81
|
+
"node-red-contrib-vectorprime": "0.1.20"
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
]
|