@suveren/gateway 0.28.1 → 0.29.0
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/content/integrations/crm.json +33 -1
- package/content/integrations/erp.json +16 -0
- package/content/integrations/gmail.json +14 -0
- package/content/integrations/mail.json +16 -1
- package/dist/control-plane/index.mjs +363 -195
- package/dist/mcp-server/http.mjs +926 -221
- package/dist/ui/assets/index-C3vTF2Ye.js +123 -0
- package/dist/ui/assets/{index-RX5juZkm.css → index-DUIlMVlP.css} +1 -1
- package/dist/ui/index.html +2 -2
- package/package.json +1 -1
- package/dist/ui/assets/index-I9WCdLMY.js +0 -120
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"icon": "users",
|
|
7
7
|
"profile": "customers",
|
|
8
8
|
"npmPackage": "@humanagencyp/crm-mcp",
|
|
9
|
-
"npmVersion": "1.
|
|
9
|
+
"npmVersion": "1.5.0",
|
|
10
10
|
"mcp": {
|
|
11
11
|
"command": "crm-mcp",
|
|
12
12
|
"args": []
|
|
@@ -39,6 +39,32 @@
|
|
|
39
39
|
},
|
|
40
40
|
"personalDefault": true,
|
|
41
41
|
"oauth": null,
|
|
42
|
+
"context": {
|
|
43
|
+
"sources": {
|
|
44
|
+
"activity": {
|
|
45
|
+
"read": { "tool": "get_activity", "args": { "id": "$id" } },
|
|
46
|
+
"title": "summary",
|
|
47
|
+
"author": "created_by",
|
|
48
|
+
"at": "date",
|
|
49
|
+
"body": "detail"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"history": {
|
|
53
|
+
"byKey": ["email_domain", "email"],
|
|
54
|
+
"read": { "tool": "get_timeline", "args": { "$keyType": "$key", "since": "$since", "limit": "$limit" } },
|
|
55
|
+
"limit": 5,
|
|
56
|
+
"maxAgeDays": 14,
|
|
57
|
+
"item": {
|
|
58
|
+
"kind": "activity",
|
|
59
|
+
"title": "summary",
|
|
60
|
+
"body": "detail",
|
|
61
|
+
"at": "date",
|
|
62
|
+
"author": "created_by",
|
|
63
|
+
"type": "type",
|
|
64
|
+
"ticket": "ticket_id"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
},
|
|
42
68
|
"toolGating": {
|
|
43
69
|
"default": {
|
|
44
70
|
"executionMapping": {
|
|
@@ -55,6 +81,7 @@
|
|
|
55
81
|
"action_type": "write"
|
|
56
82
|
},
|
|
57
83
|
"actionLabel": "Contact created",
|
|
84
|
+
"contextKeys": { "email": "email" },
|
|
58
85
|
"preview": [
|
|
59
86
|
{ "tool": "find_contacts", "args": { "query": "email" } }
|
|
60
87
|
],
|
|
@@ -308,6 +335,11 @@
|
|
|
308
335
|
"boundField": "read_access",
|
|
309
336
|
"requiredValue": "unlimited"
|
|
310
337
|
},
|
|
338
|
+
"get_activity": {
|
|
339
|
+
"category": "read",
|
|
340
|
+
"boundField": "read_access",
|
|
341
|
+
"requiredValue": "unlimited"
|
|
342
|
+
},
|
|
311
343
|
"get_pipeline": {
|
|
312
344
|
"category": "read",
|
|
313
345
|
"boundField": "read_access",
|
|
@@ -40,6 +40,18 @@
|
|
|
40
40
|
},
|
|
41
41
|
"personalDefault": true,
|
|
42
42
|
"oauth": null,
|
|
43
|
+
"context": {
|
|
44
|
+
"recordKeys": {
|
|
45
|
+
"customer": {
|
|
46
|
+
"read": { "tool": "get_customer", "args": { "id": "$id" } },
|
|
47
|
+
"keys": { "email": "email" }
|
|
48
|
+
},
|
|
49
|
+
"quote": {
|
|
50
|
+
"read": { "tool": "get_quote", "args": { "id": "$id" } },
|
|
51
|
+
"next": { "recordKey": "customer", "field": "customer_id" }
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
},
|
|
43
55
|
"toolGating": {
|
|
44
56
|
"default": {
|
|
45
57
|
"executionMapping": {},
|
|
@@ -96,6 +108,7 @@
|
|
|
96
108
|
"action_type": "quote"
|
|
97
109
|
},
|
|
98
110
|
"actionLabel": "Quote drafted",
|
|
111
|
+
"contextKeys": { "customer": "customer_id" },
|
|
99
112
|
"preview": [
|
|
100
113
|
{ "tool": "get_customer", "args": { "id": "customer_id" }, "attach": "customer_id" },
|
|
101
114
|
{ "tool": "get_item", "forEach": "lines", "args": { "id": "item_id" }, "attach": "item" }
|
|
@@ -129,6 +142,7 @@
|
|
|
129
142
|
"action_type": "quote"
|
|
130
143
|
},
|
|
131
144
|
"actionLabel": "Quote updated",
|
|
145
|
+
"contextKeys": { "quote": "id" },
|
|
132
146
|
"preview": [
|
|
133
147
|
{ "tool": "get_item", "forEach": "lines", "args": { "id": "item_id" }, "attach": "item" }
|
|
134
148
|
],
|
|
@@ -156,6 +170,7 @@
|
|
|
156
170
|
"action_type": "send"
|
|
157
171
|
},
|
|
158
172
|
"actionLabel": "Quote sent",
|
|
173
|
+
"contextKeys": { "quote": "id" },
|
|
159
174
|
"preview": {
|
|
160
175
|
"tool": "get_quote",
|
|
161
176
|
"args": { "id": "id", "revision": "revision" },
|
|
@@ -173,6 +188,7 @@
|
|
|
173
188
|
"action_type": "order"
|
|
174
189
|
},
|
|
175
190
|
"actionLabel": "Quote converted to order",
|
|
191
|
+
"contextKeys": { "quote": "id" },
|
|
176
192
|
"preview": {
|
|
177
193
|
"tool": "get_quote",
|
|
178
194
|
"args": { "id": "id", "revision": "revision" },
|
|
@@ -38,6 +38,20 @@
|
|
|
38
38
|
"REFRESH_TOKEN": "refreshToken"
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
|
+
"context": {
|
|
42
|
+
"sources": {
|
|
43
|
+
"message": {
|
|
44
|
+
"read": { "tool": "get_message", "args": { "id": "$id" } },
|
|
45
|
+
"keys": {
|
|
46
|
+
"email": { "path": "payload.headers", "where": { "name": "From" }, "pick": "value", "parse": "address.email" }
|
|
47
|
+
},
|
|
48
|
+
"title": { "path": "payload.headers", "where": { "name": "Subject" }, "pick": "value" },
|
|
49
|
+
"author": { "path": "payload.headers", "where": { "name": "From" }, "pick": "value", "parse": "address.name" },
|
|
50
|
+
"at": { "path": "internalDate", "parse": "epoch-ms" },
|
|
51
|
+
"body": "snippet"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
},
|
|
41
55
|
"oauth": {
|
|
42
56
|
"authUrl": "https://accounts.google.com/o/oauth2/v2/auth",
|
|
43
57
|
"tokenUrl": "https://oauth2.googleapis.com/token",
|
|
@@ -39,6 +39,19 @@
|
|
|
39
39
|
},
|
|
40
40
|
"personalDefault": false,
|
|
41
41
|
"oauth": null,
|
|
42
|
+
"context": {
|
|
43
|
+
"sources": {
|
|
44
|
+
"message": {
|
|
45
|
+
"read": { "tool": "get_message", "args": { "id": "$id" } },
|
|
46
|
+
"keys": { "email": "from.email" },
|
|
47
|
+
"title": "subject",
|
|
48
|
+
"author": "from.name",
|
|
49
|
+
"at": "received_at",
|
|
50
|
+
"body": "body",
|
|
51
|
+
"chain": { "field": "in_reply_to", "max": 5 }
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
},
|
|
42
55
|
"toolGating": {
|
|
43
56
|
"default": {
|
|
44
57
|
"executionMapping": {},
|
|
@@ -75,7 +88,9 @@
|
|
|
75
88
|
"staticExecution": {
|
|
76
89
|
"action_type": "send"
|
|
77
90
|
},
|
|
78
|
-
"actionLabel": "Email sent"
|
|
91
|
+
"actionLabel": "Email sent",
|
|
92
|
+
"sourceFromArg": { "kind": "message", "arg": "in_reply_to" },
|
|
93
|
+
"contextKeys": { "email": "to" }
|
|
79
94
|
},
|
|
80
95
|
"load_simulation": {
|
|
81
96
|
"executionMapping": {},
|