The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
chore(ci): record the manage_connections schema in the prompt surface
Siddharth Balyan08c049a0c019
diff --git a/tests/fixtures/prompt_surface/surfaces.json b/tests/fixtures/prompt_surface/surfaces.jsonindex 6c6e9457b77..38393cb9669 100644--- a/tests/fixtures/prompt_surface/surfaces.json+++ b/tests/fixtures/prompt_surface/surfaces.json@@ -5,7 +5,7 @@"stable": 2057,"volatile": 1813},- "tool_tokens": 15083,+ "tool_tokens": 15232,"tools": ["browser_back","browser_cdp",@@ -53,7 +53,7 @@"stable": 1567,"volatile": 1813},- "tool_tokens": 15083,+ "tool_tokens": 15232,"tools": ["browser_back","browser_cdp",@@ -101,7 +101,7 @@"stable": 1989,"volatile": 1811},- "tool_tokens": 15083,+ "tool_tokens": 15232,"tools": ["browser_back","browser_cdp",@@ -149,7 +149,7 @@"stable": 2762,"volatile": 1809},- "tool_tokens": 15239,+ "tool_tokens": 15388,"tools": ["browser_back","browser_cdp",@@ -197,7 +197,7 @@"stable": 1567,"volatile": 1813},- "tool_tokens": 15083,+ "tool_tokens": 15232,"tools": ["browser_back","browser_cdp",@@ -245,7 +245,7 @@"stable": 1439,"volatile": 1813},- "tool_tokens": 15083,+ "tool_tokens": 15232,"tools": ["browser_back","browser_cdp",@@ -293,7 +293,7 @@"stable": 1701,"volatile": 1814},- "tool_tokens": 15720,+ "tool_tokens": 15868,"tools": ["browser_back","browser_cdp",@@ -342,7 +342,7 @@"stable": 1472,"volatile": 1814},- "tool_tokens": 15083,+ "tool_tokens": 15232,"tools": ["browser_back","browser_cdp",@@ -390,7 +390,7 @@"stable": 1504,"volatile": 1814},- "tool_tokens": 15083,+ "tool_tokens": 15232,"tools": ["browser_back","browser_cdp",diff --git a/tests/fixtures/prompt_surface/tools/manage_connections.json b/tests/fixtures/prompt_surface/tools/manage_connections.jsonindex b75a3ec379c..0ee29ee7b57 100644--- a/tests/fixtures/prompt_surface/tools/manage_connections.json+++ b/tests/fixtures/prompt_surface/tools/manage_connections.json@@ -1,14 +1,15 @@{- "description": "Connect the user to apps. Two kinds: a hosted connector account (Gmail, Notion, ...) served through the tool gateway, and a local MCP server from the bundled catalog. Targets go in 'connectors': a bare slug or {\"name\": \"gmail\"} is a hosted connector account; {\"name\": \"linear\", \"mcp\": true} is a local MCP server. Many names exist on both sides, so the user's own words decide. Pass \"mcp\": true only when the user asks for an MCP server, a local server or an install, or when the name exists only as a catalog entry; otherwise the target is hosted. 'connect' and 'reconnect' are hosted actions; 'install', 'enable' and 'authorize' are MCP actions. A target the other side owns is refused with the call that does work. Hosted actions: 'status' lists connectors and whether each is connected; 'connect' starts an authorization for the given connectors; 'reconnect' checks each one and repairs only what is not connected ('force': true restarts even a working one, for an account switch). Pass SEVERAL slugs in one call. In the desktop app, the terminal UI and the interactive CLI the call shows the user a card and blocks until every app is connected, skipped, or the deadline passes; the result lists each target as connected / skipped / not_connected and never carries a link. Where no card exists (a one-shot run, a scheduled job, a messaging platform) the result carries a connect_url per app for the USER to open in a browser (never open it yourself); ask them to say when they are done, then use 'status'. When a hosted connector tool call returns CONNECTION_REQUIRED, use 'connect'. MCP actions (every target must carry \"mcp\": true): 'install' adds a catalog entry, 'enable' re-enables a disabled configured server, 'authorize' runs its OAuth. They show the user an approval card and block until it settles. Never hand-edit mcp_servers config — always use this tool. After a skip or a timeout, do not re-ask on your own: continue without the app or ask in chat. A later request from the USER for that same app is not a re-ask — run it. A connected server's tools are named in the result and are callable at once through tool_describe/tool_call. Where no card exists an MCP target runs at once and the result says what happened, with a link for the user to open when one is needed. This tool can NOT disconnect, delete, or revoke an account — that is deliberately user-only. When asked, say so and direct the user to the Nous Portal (their org's Connectors page) or the desktop app.",+ "description": "Connect the user to apps. Two kinds: a hosted connector account (Gmail, Notion, ...) served through the tool gateway, and a local MCP server from the bundled catalog. Targets go in 'connectors': a bare slug or {\"name\": \"gmail\"} is a hosted connector account; {\"name\": \"linear\", \"mcp\": true} is a local MCP server. Many names exist on both sides, so the user's own words decide. Pass \"mcp\": true only when the user asks for an MCP server, a local server or an install, or when the name exists only as a catalog entry; otherwise the target is hosted. 'connect' and 'reconnect' are hosted actions; 'install', 'enable' and 'authorize' are MCP actions. A target the other side owns is refused with the call that does work. Hosted actions: 'status' lists connectors and whether each is connected; 'connect' starts an authorization for the given connectors; 'reconnect' checks each one and repairs only what is not connected ('force': true restarts even a working one, for an account switch). A second account of one app is 'connect' with a new 'alias': pick a short lowercase name from the user's words (e.g. 'work'), and ask the user if unsure. 'status' lists each connector's accounts; 'rename' names or renames one. Pass SEVERAL slugs in one call. In the desktop app, the terminal UI and the interactive CLI the call shows the user a card and blocks until every app is connected, skipped, or the deadline passes; the result lists each target as connected / skipped / not_connected and never carries a link. Where no card exists (a one-shot run, a scheduled job, a messaging platform) the result carries a connect_url per app for the USER to open in a browser (never open it yourself); ask them to say when they are done, then use 'status'. When a hosted connector tool call returns CONNECTION_REQUIRED, use 'connect'. MCP actions (every target must carry \"mcp\": true): 'install' adds a catalog entry, 'enable' re-enables a disabled configured server, 'authorize' runs its OAuth. They show the user an approval card and block until it settles. Never hand-edit mcp_servers config — always use this tool. After a skip or a timeout, do not re-ask on your own: continue without the app or ask in chat. A later request from the USER for that same app is not a re-ask — run it. A connected server's tools are named in the result and are callable at once through tool_describe/tool_call. Where no card exists an MCP target runs at once and the result says what happened, with a link for the user to open when one is needed. This tool can NOT disconnect, delete, or revoke an account — that is deliberately user-only. When asked, say so and direct the user to the Nous Portal (their org's Connectors page) or the desktop app.","name": "manage_connections","parameters": {"properties": {"action": {- "description": "Defaults to status. connect and reconnect take hosted connector slugs only. install, enable and authorize take mcp:true targets only.",+ "description": "Defaults to status. connect, reconnect and rename take hosted connector slugs only. install, enable and authorize take mcp:true targets only.","enum": ["status","connect","reconnect",+ "rename","install","enable","authorize"@@ -25,12 +26,21 @@{"additionalProperties": false,"properties": {+ "alias": {+ "description": "Hosted only: the account's name. connect: a new name adds another account; reconnect: repairs that account; rename: its current name (or its label when unnamed). One aliased target per call.",+ "type": "string"+ },"mcp": {"description": "true = a local MCP server from the catalog; absent or false = a hosted connector account.","type": "boolean"},"name": {"type": "string"+ },+ "to": {+ "description": "rename only: the new name.",+ "pattern": "^[a-z0-9][a-z0-9-]{0,31}$",+ "type": "string"}},"required": [