@suveren/gateway 0.9.0 → 0.10.1

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 (238) hide show
  1. package/README.md +33 -1
  2. package/bin/suveren-gateway.js +203 -5
  3. package/content/integrations/crm.json +47 -3
  4. package/content/integrations/erp.json +231 -0
  5. package/content/integrations/index.json +3 -1
  6. package/content/integrations/mail.json +147 -0
  7. package/dist/control-plane/index.mjs +688 -179
  8. package/dist/mcp-server/http.mjs +483 -259
  9. package/dist/ui/assets/index-CV9Mbbkd.css +1 -0
  10. package/dist/ui/assets/{index-CIiOCgjJ.js → index-sq564t5H.js} +23 -23
  11. package/dist/ui/index.html +2 -2
  12. package/lib/as-pairing.mjs +77 -0
  13. package/lib/config.mjs +48 -0
  14. package/node_modules/@types/node/README.md +1 -1
  15. package/node_modules/@types/node/package.json +2 -2
  16. package/node_modules/@types/node/zlib.d.ts +6 -0
  17. package/node_modules/follow-redirects/index.js +10 -1
  18. package/node_modules/follow-redirects/package.json +1 -1
  19. package/node_modules/ip-address/README.md +34 -34
  20. package/node_modules/ip-address/dist/ipv4.js +7 -0
  21. package/node_modules/ip-address/dist/ipv4.js.map +1 -1
  22. package/node_modules/ip-address/package.json +1 -1
  23. package/node_modules/undici/LICENSE +21 -0
  24. package/node_modules/undici/README.md +741 -0
  25. package/node_modules/undici/docs/docs/api/Agent.md +84 -0
  26. package/node_modules/undici/docs/docs/api/BalancedPool.md +99 -0
  27. package/node_modules/undici/docs/docs/api/CacheStorage.md +30 -0
  28. package/node_modules/undici/docs/docs/api/CacheStore.md +164 -0
  29. package/node_modules/undici/docs/docs/api/Client.md +288 -0
  30. package/node_modules/undici/docs/docs/api/ClientStats.md +27 -0
  31. package/node_modules/undici/docs/docs/api/Connector.md +115 -0
  32. package/node_modules/undici/docs/docs/api/ContentType.md +57 -0
  33. package/node_modules/undici/docs/docs/api/Cookies.md +128 -0
  34. package/node_modules/undici/docs/docs/api/Debug.md +62 -0
  35. package/node_modules/undici/docs/docs/api/DiagnosticsChannel.md +317 -0
  36. package/node_modules/undici/docs/docs/api/Dispatcher.md +1393 -0
  37. package/node_modules/undici/docs/docs/api/EnvHttpProxyAgent.md +159 -0
  38. package/node_modules/undici/docs/docs/api/Errors.md +49 -0
  39. package/node_modules/undici/docs/docs/api/EventSource.md +45 -0
  40. package/node_modules/undici/docs/docs/api/Fetch.md +60 -0
  41. package/node_modules/undici/docs/docs/api/GlobalInstallation.md +139 -0
  42. package/node_modules/undici/docs/docs/api/H2CClient.md +263 -0
  43. package/node_modules/undici/docs/docs/api/MockAgent.md +603 -0
  44. package/node_modules/undici/docs/docs/api/MockCallHistory.md +197 -0
  45. package/node_modules/undici/docs/docs/api/MockCallHistoryLog.md +43 -0
  46. package/node_modules/undici/docs/docs/api/MockClient.md +81 -0
  47. package/node_modules/undici/docs/docs/api/MockErrors.md +12 -0
  48. package/node_modules/undici/docs/docs/api/MockPool.md +555 -0
  49. package/node_modules/undici/docs/docs/api/Pool.md +84 -0
  50. package/node_modules/undici/docs/docs/api/PoolStats.md +35 -0
  51. package/node_modules/undici/docs/docs/api/ProxyAgent.md +229 -0
  52. package/node_modules/undici/docs/docs/api/RedirectHandler.md +93 -0
  53. package/node_modules/undici/docs/docs/api/RetryAgent.md +50 -0
  54. package/node_modules/undici/docs/docs/api/RetryHandler.md +118 -0
  55. package/node_modules/undici/docs/docs/api/RoundRobinPool.md +145 -0
  56. package/node_modules/undici/docs/docs/api/SnapshotAgent.md +616 -0
  57. package/node_modules/undici/docs/docs/api/Socks5ProxyAgent.md +275 -0
  58. package/node_modules/undici/docs/docs/api/Util.md +25 -0
  59. package/node_modules/undici/docs/docs/api/WebSocket.md +141 -0
  60. package/node_modules/undici/docs/docs/api/api-lifecycle.md +91 -0
  61. package/node_modules/undici/docs/docs/best-practices/client-certificate.md +64 -0
  62. package/node_modules/undici/docs/docs/best-practices/crawling.md +58 -0
  63. package/node_modules/undici/docs/docs/best-practices/mocking-request.md +190 -0
  64. package/node_modules/undici/docs/docs/best-practices/proxy.md +127 -0
  65. package/node_modules/undici/docs/docs/best-practices/undici-vs-builtin-fetch.md +224 -0
  66. package/node_modules/undici/docs/docs/best-practices/writing-tests.md +63 -0
  67. package/node_modules/undici/index-fetch.js +65 -0
  68. package/node_modules/undici/index.d.ts +3 -0
  69. package/node_modules/undici/index.js +234 -0
  70. package/node_modules/undici/lib/api/abort-signal.js +59 -0
  71. package/node_modules/undici/lib/api/api-connect.js +110 -0
  72. package/node_modules/undici/lib/api/api-pipeline.js +252 -0
  73. package/node_modules/undici/lib/api/api-request.js +214 -0
  74. package/node_modules/undici/lib/api/api-stream.js +209 -0
  75. package/node_modules/undici/lib/api/api-upgrade.js +111 -0
  76. package/node_modules/undici/lib/api/index.js +7 -0
  77. package/node_modules/undici/lib/api/readable.js +580 -0
  78. package/node_modules/undici/lib/cache/memory-cache-store.js +279 -0
  79. package/node_modules/undici/lib/cache/sqlite-cache-store.js +467 -0
  80. package/node_modules/undici/lib/core/connect.js +153 -0
  81. package/node_modules/undici/lib/core/constants.js +143 -0
  82. package/node_modules/undici/lib/core/diagnostics.js +227 -0
  83. package/node_modules/undici/lib/core/errors.js +477 -0
  84. package/node_modules/undici/lib/core/request.js +485 -0
  85. package/node_modules/undici/lib/core/socks5-client.js +422 -0
  86. package/node_modules/undici/lib/core/socks5-utils.js +212 -0
  87. package/node_modules/undici/lib/core/symbols.js +75 -0
  88. package/node_modules/undici/lib/core/tree.js +160 -0
  89. package/node_modules/undici/lib/core/util.js +992 -0
  90. package/node_modules/undici/lib/dispatcher/agent.js +158 -0
  91. package/node_modules/undici/lib/dispatcher/balanced-pool.js +221 -0
  92. package/node_modules/undici/lib/dispatcher/client-h1.js +1746 -0
  93. package/node_modules/undici/lib/dispatcher/client-h2.js +1060 -0
  94. package/node_modules/undici/lib/dispatcher/client.js +668 -0
  95. package/node_modules/undici/lib/dispatcher/dispatcher-base.js +184 -0
  96. package/node_modules/undici/lib/dispatcher/dispatcher.js +48 -0
  97. package/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +146 -0
  98. package/node_modules/undici/lib/dispatcher/fixed-queue.js +135 -0
  99. package/node_modules/undici/lib/dispatcher/h2c-client.js +51 -0
  100. package/node_modules/undici/lib/dispatcher/pool-base.js +214 -0
  101. package/node_modules/undici/lib/dispatcher/pool.js +118 -0
  102. package/node_modules/undici/lib/dispatcher/proxy-agent.js +319 -0
  103. package/node_modules/undici/lib/dispatcher/retry-agent.js +35 -0
  104. package/node_modules/undici/lib/dispatcher/round-robin-pool.js +137 -0
  105. package/node_modules/undici/lib/dispatcher/socks5-proxy-agent.js +260 -0
  106. package/node_modules/undici/lib/encoding/index.js +33 -0
  107. package/node_modules/undici/lib/global.js +59 -0
  108. package/node_modules/undici/lib/handler/cache-handler.js +776 -0
  109. package/node_modules/undici/lib/handler/cache-revalidation-handler.js +124 -0
  110. package/node_modules/undici/lib/handler/decorator-handler.js +67 -0
  111. package/node_modules/undici/lib/handler/deduplication-handler.js +460 -0
  112. package/node_modules/undici/lib/handler/redirect-handler.js +238 -0
  113. package/node_modules/undici/lib/handler/retry-handler.js +504 -0
  114. package/node_modules/undici/lib/handler/unwrap-handler.js +106 -0
  115. package/node_modules/undici/lib/handler/wrap-handler.js +105 -0
  116. package/node_modules/undici/lib/interceptor/cache.js +621 -0
  117. package/node_modules/undici/lib/interceptor/decompress.js +551 -0
  118. package/node_modules/undici/lib/interceptor/deduplicate.js +117 -0
  119. package/node_modules/undici/lib/interceptor/dns.js +571 -0
  120. package/node_modules/undici/lib/interceptor/dump.js +99 -0
  121. package/node_modules/undici/lib/interceptor/redirect.js +21 -0
  122. package/node_modules/undici/lib/interceptor/response-error.js +95 -0
  123. package/node_modules/undici/lib/interceptor/retry.js +19 -0
  124. package/node_modules/undici/lib/llhttp/.gitkeep +0 -0
  125. package/node_modules/undici/lib/llhttp/constants.d.ts +195 -0
  126. package/node_modules/undici/lib/llhttp/constants.js +531 -0
  127. package/node_modules/undici/lib/llhttp/llhttp-wasm.js +15 -0
  128. package/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js +15 -0
  129. package/node_modules/undici/lib/llhttp/utils.d.ts +2 -0
  130. package/node_modules/undici/lib/llhttp/utils.js +12 -0
  131. package/node_modules/undici/lib/mock/mock-agent.js +232 -0
  132. package/node_modules/undici/lib/mock/mock-call-history.js +248 -0
  133. package/node_modules/undici/lib/mock/mock-client.js +68 -0
  134. package/node_modules/undici/lib/mock/mock-errors.js +29 -0
  135. package/node_modules/undici/lib/mock/mock-interceptor.js +209 -0
  136. package/node_modules/undici/lib/mock/mock-pool.js +68 -0
  137. package/node_modules/undici/lib/mock/mock-symbols.js +32 -0
  138. package/node_modules/undici/lib/mock/mock-utils.js +486 -0
  139. package/node_modules/undici/lib/mock/pending-interceptors-formatter.js +43 -0
  140. package/node_modules/undici/lib/mock/snapshot-agent.js +353 -0
  141. package/node_modules/undici/lib/mock/snapshot-recorder.js +588 -0
  142. package/node_modules/undici/lib/mock/snapshot-utils.js +158 -0
  143. package/node_modules/undici/lib/util/cache.js +676 -0
  144. package/node_modules/undici/lib/util/date.js +670 -0
  145. package/node_modules/undici/lib/util/promise.js +28 -0
  146. package/node_modules/undici/lib/util/runtime-features.js +124 -0
  147. package/node_modules/undici/lib/util/stats.js +32 -0
  148. package/node_modules/undici/lib/util/timers.js +425 -0
  149. package/node_modules/undici/lib/web/cache/cache.js +864 -0
  150. package/node_modules/undici/lib/web/cache/cachestorage.js +152 -0
  151. package/node_modules/undici/lib/web/cache/util.js +45 -0
  152. package/node_modules/undici/lib/web/cookies/constants.js +12 -0
  153. package/node_modules/undici/lib/web/cookies/index.js +199 -0
  154. package/node_modules/undici/lib/web/cookies/parse.js +314 -0
  155. package/node_modules/undici/lib/web/cookies/util.js +352 -0
  156. package/node_modules/undici/lib/web/eventsource/eventsource-stream.js +494 -0
  157. package/node_modules/undici/lib/web/eventsource/eventsource.js +501 -0
  158. package/node_modules/undici/lib/web/eventsource/util.js +29 -0
  159. package/node_modules/undici/lib/web/fetch/LICENSE +21 -0
  160. package/node_modules/undici/lib/web/fetch/body.js +509 -0
  161. package/node_modules/undici/lib/web/fetch/constants.js +131 -0
  162. package/node_modules/undici/lib/web/fetch/data-url.js +596 -0
  163. package/node_modules/undici/lib/web/fetch/formdata-parser.js +586 -0
  164. package/node_modules/undici/lib/web/fetch/formdata.js +259 -0
  165. package/node_modules/undici/lib/web/fetch/global.js +40 -0
  166. package/node_modules/undici/lib/web/fetch/headers.js +719 -0
  167. package/node_modules/undici/lib/web/fetch/index.js +2413 -0
  168. package/node_modules/undici/lib/web/fetch/request.js +1115 -0
  169. package/node_modules/undici/lib/web/fetch/response.js +641 -0
  170. package/node_modules/undici/lib/web/fetch/util.js +1522 -0
  171. package/node_modules/undici/lib/web/infra/index.js +229 -0
  172. package/node_modules/undici/lib/web/subresource-integrity/Readme.md +9 -0
  173. package/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.js +307 -0
  174. package/node_modules/undici/lib/web/webidl/index.js +1006 -0
  175. package/node_modules/undici/lib/web/websocket/connection.js +339 -0
  176. package/node_modules/undici/lib/web/websocket/constants.js +126 -0
  177. package/node_modules/undici/lib/web/websocket/events.js +331 -0
  178. package/node_modules/undici/lib/web/websocket/frame.js +133 -0
  179. package/node_modules/undici/lib/web/websocket/permessage-deflate.js +105 -0
  180. package/node_modules/undici/lib/web/websocket/receiver.js +507 -0
  181. package/node_modules/undici/lib/web/websocket/sender.js +109 -0
  182. package/node_modules/undici/lib/web/websocket/stream/websocketerror.js +104 -0
  183. package/node_modules/undici/lib/web/websocket/stream/websocketstream.js +496 -0
  184. package/node_modules/undici/lib/web/websocket/util.js +347 -0
  185. package/node_modules/undici/lib/web/websocket/websocket.js +758 -0
  186. package/node_modules/undici/package.json +152 -0
  187. package/node_modules/undici/scripts/strip-comments.js +10 -0
  188. package/node_modules/undici/types/README.md +6 -0
  189. package/node_modules/undici/types/agent.d.ts +32 -0
  190. package/node_modules/undici/types/api.d.ts +43 -0
  191. package/node_modules/undici/types/balanced-pool.d.ts +30 -0
  192. package/node_modules/undici/types/cache-interceptor.d.ts +179 -0
  193. package/node_modules/undici/types/cache.d.ts +36 -0
  194. package/node_modules/undici/types/client-stats.d.ts +15 -0
  195. package/node_modules/undici/types/client.d.ts +139 -0
  196. package/node_modules/undici/types/connector.d.ts +36 -0
  197. package/node_modules/undici/types/content-type.d.ts +21 -0
  198. package/node_modules/undici/types/cookies.d.ts +30 -0
  199. package/node_modules/undici/types/diagnostics-channel.d.ts +74 -0
  200. package/node_modules/undici/types/dispatcher.d.ts +275 -0
  201. package/node_modules/undici/types/env-http-proxy-agent.d.ts +22 -0
  202. package/node_modules/undici/types/errors.d.ts +177 -0
  203. package/node_modules/undici/types/eventsource.d.ts +66 -0
  204. package/node_modules/undici/types/fetch.d.ts +231 -0
  205. package/node_modules/undici/types/formdata.d.ts +114 -0
  206. package/node_modules/undici/types/global-dispatcher.d.ts +9 -0
  207. package/node_modules/undici/types/global-origin.d.ts +7 -0
  208. package/node_modules/undici/types/h2c-client.d.ts +73 -0
  209. package/node_modules/undici/types/handlers.d.ts +14 -0
  210. package/node_modules/undici/types/header.d.ts +160 -0
  211. package/node_modules/undici/types/index.d.ts +91 -0
  212. package/node_modules/undici/types/interceptors.d.ts +82 -0
  213. package/node_modules/undici/types/mock-agent.d.ts +68 -0
  214. package/node_modules/undici/types/mock-call-history.d.ts +111 -0
  215. package/node_modules/undici/types/mock-client.d.ts +27 -0
  216. package/node_modules/undici/types/mock-errors.d.ts +12 -0
  217. package/node_modules/undici/types/mock-interceptor.d.ts +94 -0
  218. package/node_modules/undici/types/mock-pool.d.ts +27 -0
  219. package/node_modules/undici/types/patch.d.ts +29 -0
  220. package/node_modules/undici/types/pool-stats.d.ts +19 -0
  221. package/node_modules/undici/types/pool.d.ts +41 -0
  222. package/node_modules/undici/types/proxy-agent.d.ts +29 -0
  223. package/node_modules/undici/types/readable.d.ts +68 -0
  224. package/node_modules/undici/types/retry-agent.d.ts +8 -0
  225. package/node_modules/undici/types/retry-handler.d.ts +125 -0
  226. package/node_modules/undici/types/round-robin-pool.d.ts +41 -0
  227. package/node_modules/undici/types/snapshot-agent.d.ts +109 -0
  228. package/node_modules/undici/types/socks5-proxy-agent.d.ts +25 -0
  229. package/node_modules/undici/types/util.d.ts +18 -0
  230. package/node_modules/undici/types/utility.d.ts +7 -0
  231. package/node_modules/undici/types/webidl.d.ts +347 -0
  232. package/node_modules/undici/types/websocket.d.ts +188 -0
  233. package/package.json +4 -2
  234. package/profiles/customers/0.8.profile.json +187 -0
  235. package/profiles/email/0.7.profile.json +254 -0
  236. package/profiles/index.json +4 -1
  237. package/profiles/sales/0.2.profile.json +282 -0
  238. package/dist/ui/assets/index-BJqF5rmx.css +0 -1
@@ -0,0 +1,147 @@
1
+ {
2
+ "id": "mail",
3
+ "name": "Email (simulation)",
4
+ "version": "1.0.0",
5
+ "description": "Simulated inbox for testing an agent's email replies — nothing leaves the laptop",
6
+ "icon": "mail",
7
+ "profile": "email",
8
+ "npmPackage": "@humanagencyp/email-mcp",
9
+ "mcp": {
10
+ "command": "email-mcp",
11
+ "args": []
12
+ },
13
+ "credentials": {
14
+ "fields": [
15
+ {
16
+ "key": "mode",
17
+ "label": "Mode (optional)",
18
+ "type": "text",
19
+ "placeholder": "simulation (default) — live needs a mailbox adapter",
20
+ "optional": true
21
+ },
22
+ {
23
+ "key": "databaseUrl",
24
+ "label": "Database URL (optional)",
25
+ "type": "text",
26
+ "placeholder": "Leave empty for local SQLite",
27
+ "optional": true
28
+ }
29
+ ],
30
+ "envMapping": {
31
+ "EMAIL_MODE": "mode",
32
+ "DATABASE_URL": "databaseUrl"
33
+ }
34
+ },
35
+ "simulation": {
36
+ "field": "mode",
37
+ "default": "simulation"
38
+ },
39
+ "personalDefault": false,
40
+ "oauth": null,
41
+ "toolGating": {
42
+ "default": {
43
+ "executionMapping": {},
44
+ "staticExecution": {}
45
+ },
46
+ "overrides": {
47
+ "list_messages": {
48
+ "category": "read",
49
+ "boundField": "read_access",
50
+ "requiredValue": "unlimited"
51
+ },
52
+ "get_message": {
53
+ "category": "read",
54
+ "boundField": "read_access",
55
+ "requiredValue": "unlimited"
56
+ },
57
+ "send_message": {
58
+ "executionMapping": {
59
+ "to": [
60
+ {
61
+ "field": "recipient_count",
62
+ "transform": "length"
63
+ },
64
+ {
65
+ "field": "allowed_recipients",
66
+ "transform": "join"
67
+ },
68
+ {
69
+ "field": "allowed_domains",
70
+ "transform": "join_domains"
71
+ }
72
+ ]
73
+ },
74
+ "staticExecution": {
75
+ "action_type": "send"
76
+ },
77
+ "actionLabel": "Email sent"
78
+ },
79
+ "load_simulation": {
80
+ "executionMapping": {},
81
+ "staticExecution": {
82
+ "action_type": "setup"
83
+ },
84
+ "actionLabel": "Test data loaded"
85
+ }
86
+ }
87
+ },
88
+ "templates": [
89
+ {
90
+ "name": "Work the inbox",
91
+ "description": "Read the simulated inbox and send replies. Cannot load or replace test data.",
92
+ "risk": "low",
93
+ "mode": "automatic",
94
+ "bounds": {
95
+ "read_access": "unlimited",
96
+ "recipient_max": "1",
97
+ "send_daily_max": "50",
98
+ "setup_daily_max": "0"
99
+ },
100
+ "context": {
101
+ "allowed_recipients": "",
102
+ "allowed_domains": ""
103
+ },
104
+ "intent": "Allow the agent to read the simulated inbox and reply to messages on its own. It cannot load or replace the test data the inbox was seeded with.",
105
+ "ttl": 2592000,
106
+ "tags": [
107
+ "read + reply",
108
+ "automatic",
109
+ "no setup"
110
+ ]
111
+ },
112
+ {
113
+ "name": "Load test data (with approval)",
114
+ "description": "Load a simulation package into an empty inbox. No reading or sending — a separate, one-time setup mandate.",
115
+ "risk": "high",
116
+ "mode": "review",
117
+ "bounds": {
118
+ "read_access": "none",
119
+ "recipient_max": "0",
120
+ "send_daily_max": "0",
121
+ "setup_daily_max": "1"
122
+ },
123
+ "context": {
124
+ "allowed_recipients": "",
125
+ "allowed_domains": ""
126
+ },
127
+ "intent": "Allow the agent to load one simulation package into an empty inbox, with my review before it happens. No reading or sending under this mandate — grant it separately from the mandate the agent uses for its daily work.",
128
+ "ttl": 2592000,
129
+ "tags": [
130
+ "setup only",
131
+ "review mode",
132
+ "1 load/day"
133
+ ]
134
+ }
135
+ ],
136
+ "setupHint": "No configuration needed — works out of the box, in simulation mode.",
137
+ "setupGuide": [
138
+ {
139
+ "title": "Ready to use",
140
+ "description": "This connector stores a simulated inbox locally on your machine. Nothing is sent anywhere until you load test data with a separate, reviewed setup mandate."
141
+ },
142
+ {
143
+ "title": "Optional: use a shared database",
144
+ "description": "For team use, provide a PostgreSQL connection string in the Database URL field. Otherwise, leave it empty to use local SQLite storage."
145
+ }
146
+ ]
147
+ }