@suveren/gateway 0.3.6 → 0.3.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.
@@ -2017,6 +2017,15 @@ app.post("/gate-content", jsonParser, authGuard, async (req, res) => {
2017
2017
  res.status(500).json({ error: "Failed to forward gate content to MCP server" });
2018
2018
  }
2019
2019
  });
2020
+ app.post("/resync-gates", authGuard, async (_req, res) => {
2021
+ try {
2022
+ const data = await resyncGates();
2023
+ res.json(data);
2024
+ } catch (err) {
2025
+ console.error("[Control Plane] Gate resync error:", err);
2026
+ res.status(500).json({ error: "Failed to resync gates with MCP server" });
2027
+ }
2028
+ });
2020
2029
  var AGENT_CONTEXT_MAX_BYTES = 16 * 1024;
2021
2030
  var SUVEREN_DATA_DIR2 = process.env.SUVEREN_DATA_DIR ?? join3(homedir3(), ".suveren");
2022
2031
  app.get("/agent-brief/context", authGuard, async (_req, res) => {