@ziggs-ai/api-client 0.9.11 → 0.9.12

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.
@@ -10,10 +10,13 @@ export const connectionProxyCapability = {
10
10
  key: 'connection_proxy',
11
11
  names: { sdk: 'connection_proxy', mcp: 'ziggs_connection_proxy' },
12
12
  descriptions: {
13
- sdk: "Use a stored connection (a third-party credential, e.g. the owner's GitHub/Jira) without ever seeing the credential. Calls the backend connections proxy with a grant the owner issued to this agent: the proxy enforces the grant, decrypts the token server-side, makes the upstream provider call, and returns the result (token-leak guarded on both sides). Provide connectionId, grantId, the provider action (e.g. repo:read), and an optional action-specific payload. Don't know connectionId/grantId yet? Use grant_list (scopeKind=connection) or connection_list_grants first.",
14
- mcp: "Use a stored connection (a third-party credential, e.g. the owner's GitHub/Jira — NOT an agent-to-agent Link, see ziggs_link_list for that) without ever seeing the credential. " +
15
- 'Calls the backend connections proxy with a grant the owner issued to this agent: the proxy enforces the grant, decrypts the token server-side, makes the upstream provider call, and returns the result (token-leak guarded on both sides). ' +
16
- 'Provide connectionId, grantId, the provider action (e.g. repo:read), and an optional action-specific payload. ' +
13
+ sdk: "Use a named-connector stored connection (e.g. the owner's GitHub/Jira) without ever seeing the credential. " +
14
+ 'Calls the backend connections proxy with a grant the owner issued to this agent. ' +
15
+ 'Not for remote MCP servers (provider "mcp") — those use mcp_tool_call / mcp_tools_list; proxy refuses them with "Unknown provider: mcp". ' +
16
+ "Don't know connectionId/grantId yet? Use grant_list (scopeKind=connection) or connection_list_grants first.",
17
+ mcp: "Use a named-connector stored connection (e.g. the owner's GitHub/Jira — NOT an agent-to-agent Link, see ziggs_link_list) without ever seeing the credential. " +
18
+ 'Calls the backend connections proxy with a grant the owner issued to this agent. ' +
19
+ 'Not for remote MCP servers (provider "mcp") — those use ziggs_mcp_tool_call / ziggs_mcp_tools_list; proxy refuses them with "Unknown provider: mcp". ' +
17
20
  "Don't know connectionId/grantId yet? Call ziggs_connection_list first.",
18
21
  },
19
22
  annotation: 'write',
@@ -53,10 +56,12 @@ export const requestConnectionCapability = {
53
56
  key: 'connection_request',
54
57
  names: { sdk: 'connection_request', mcp: 'ziggs_connection_request' },
55
58
  descriptions: {
56
- sdk: 'Ask your principal (the human) to connect a remote MCP server and grant you the listed tools. Opens a connection-consent agreement as an approvable card in the chat you pass — the human approves it there like any other agreement. On approval the server is connected (browser OAuth if needed) and you are granted the tools; use them via connection_proxy.',
59
+ sdk: 'Ask your principal (the human) to connect a remote MCP server and grant you the listed tools. ' +
60
+ 'Opens a connection-consent agreement as an approvable card in the chat you pass — the human approves it there like any other agreement. ' +
61
+ 'On approval the server is connected (browser OAuth if needed) and you are granted the tools; call them with mcp_tool_call / mcp_tools_list (not connection_proxy).',
57
62
  mcp: 'Ask your principal (the human) to connect a remote MCP server and grant you the listed tools. ' +
58
63
  'Opens a connection-consent agreement as an approvable card in the chat you pass — the human approves it there like any other agreement (there is no MCP tool to approve it, so tell them to approve it in the chat). ' +
59
- 'On approval the server is connected (browser OAuth if needed) and you are granted the tools; the result shows up in ziggs_connection_list for use with ziggs_connection_proxy.',
64
+ 'On approval the server is connected (browser OAuth if needed) and you are granted the tools; the result shows up in ziggs_connection_list for use with ziggs_mcp_tools_list / ziggs_mcp_tool_call (not ziggs_connection_proxy).',
60
65
  },
61
66
  annotation: 'write',
62
67
  params: {
@@ -96,9 +101,9 @@ export const requestConnectionCapability = {
96
101
  ...result,
97
102
  note: env.surface === 'mcp'
98
103
  ? 'A connection-consent card is now in the chat awaiting your principal. Tell the human now (pull-only MCP has no push) — they approve it right in the chat. ' +
99
- 'Once approved, the connection + grant appear in ziggs_connection_list for ziggs_connection_proxy.'
104
+ 'Once approved, the connection + grant appear in ziggs_connection_list for ziggs_mcp_tools_list / ziggs_mcp_tool_call.'
100
105
  : 'A connection-consent card is now in the chat awaiting your principal — they approve it right there. ' +
101
- 'Once approved, the connection + grant appear in grant_list (scopeKind=connection) / connection_list_grants for connection_proxy.',
106
+ 'Once approved, the connection + grant appear in grant_list (scopeKind=connection) / connection_list_grants for mcp_tools_list / mcp_tool_call.',
102
107
  };
103
108
  }
104
109
  catch (e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ziggs-ai/api-client",
3
- "version": "0.9.11",
3
+ "version": "0.9.12",
4
4
  "description": "HTTP and WebSocket client for the Ziggs backend API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",