@virtue-ai/gateway-connect 0.3.8 → 0.3.9

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.
@@ -60,7 +60,12 @@ function loadConfig() {
60
60
  DEFAULT_GUARD_UUID;
61
61
 
62
62
  const trajectoryBase = apiUrl || gatewayUrl;
63
- const trajectoryEndpoint = trajectoryBase + "/prompt-guard/topic_guard";
63
+ // Platform-hosted gateways have /api/gateways/ in the path → /prompt-guard/topic_guard
64
+ // Standalone gateways (e.g. agentgateway1.virtueai.io) → /api/prompt-guard/topic_guard
65
+ const guardPath = trajectoryBase.includes("/api/gateways/")
66
+ ? "/prompt-guard/topic_guard"
67
+ : "/api/prompt-guard/topic_guard";
68
+ const trajectoryEndpoint = trajectoryBase + guardPath;
64
69
 
65
70
  if (!gatewayUrl || !token) return null;
66
71
  return { gatewayUrl, gatewayId, token, guardUuid, trajectoryEndpoint };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@virtue-ai/gateway-connect",
3
- "version": "0.3.8",
3
+ "version": "0.3.9",
4
4
  "description": "One-command setup to connect OpenClaw to VirtueAI MCP gateway",
5
5
  "type": "module",
6
6
  "files": [