@suveren/gateway 0.16.0 → 0.16.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.
@@ -5238,6 +5238,16 @@ var IntegrationManager = class {
5238
5238
  console.error(`[IntegrationManager] Built-in ${def.id}: ${tools.length} tool(s) under profile ${def.profile}`);
5239
5239
  this.onToolsChanged?.();
5240
5240
  }
5241
+ /** The built-in groups, for the mandate picker — never part of the connector status list. */
5242
+ getBuiltins() {
5243
+ return Array.from(this.builtins.values()).map(({ def }) => ({
5244
+ id: def.id,
5245
+ name: def.name,
5246
+ description: def.description ?? "",
5247
+ profile: def.profile,
5248
+ available: !def.simulationOnly || isSimulationMode()
5249
+ }));
5250
+ }
5241
5251
  /** Whether `id` names a built-in (in-process) integration. */
5242
5252
  isBuiltin(id) {
5243
5253
  return this.builtins.has(id);
@@ -5608,6 +5618,7 @@ function setupBuiltin(_deps) {
5608
5618
  return {
5609
5619
  id: "setup",
5610
5620
  name: "Test setup",
5621
+ description: "Your AI proposes its own setup for a test \u2014 for now its agent brief. Every proposal waits for your approval. Simulation mode only.",
5611
5622
  profile: DELEGATION_PROFILE,
5612
5623
  simulation: true,
5613
5624
  simulationOnly: true,
@@ -6134,7 +6145,10 @@ app.get("/health", (_req, res) => {
6134
6145
  activeSessions: activeSessions.size,
6135
6146
  storedGates: state.gateStore.getAll().length,
6136
6147
  serviceCredentials: Array.from(serviceCredentials.keys()),
6137
- integrations: integrationManager.getStatus(integrationRegistry.getAll())
6148
+ integrations: integrationManager.getStatus(integrationRegistry.getAll()),
6149
+ // The gateway's own tool groups (built-ins) — not connectors; the mandate
6150
+ // picker offers them so a person can give a mandate for them.
6151
+ builtins: integrationManager.getBuiltins()
6138
6152
  });
6139
6153
  });
6140
6154
  app.get("/internal/gate-content", internalOnly, (req, res) => {