@theoremjs/agents 0.3.4-next.807.g37d7a5c → 0.3.4-next.811.gf4e3b3f

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.
@@ -786,7 +786,7 @@ async function fetchMcpProtocolAttempt(transport, rpcId, mcpToolName, input, pro
786
786
  failure: {
787
787
  code: `mcp_http_${response.status}`,
788
788
  kind: kindOfToolHttpStatus(response.status),
789
- message: `MCP server error HTTP ${response.status}: ${quotedBody(text)}`, // labels-exempt: developer contract / internal diagnostic — not end-user or model copy (P2)
789
+ message: `MCP server error HTTP ${response.status} from ${new URL(transport.url).hostname}: ${quotedBody(text)}`, // labels-exempt: developer contract / internal diagnostic — not end-user or model copy (P2)
790
790
  },
791
791
  };
792
792
  }
@@ -874,7 +874,7 @@ async function openMcpSession(transport) {
874
874
  throw new McpSessionFailure(tooLargeFailure(host, transport.maxResponseBytes));
875
875
  }
876
876
  if (!response.ok) {
877
- throw sessionFailure(`mcp_session_http_${response.status}`, `MCP server refused to open a session: HTTP ${response.status}: ${quotedBody(text)}`);
877
+ throw sessionFailure(`mcp_session_http_${response.status}`, `MCP server ${new URL(transport.url).hostname} refused to open a session: HTTP ${response.status}: ${quotedBody(text)}`);
878
878
  }
879
879
  const id = response.headers.get(SESSION_HEADER);
880
880
  if (!isMcpSessionId(id)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theoremjs/agents",
3
- "version": "0.3.4-next.807.g37d7a5c",
3
+ "version": "0.3.4-next.811.gf4e3b3f",
4
4
  "description": "A flat TypeScript agent kernel for typed profiles, deterministic turn execution, registered tools, provider adapters, guardrails, and host-injected traces.",
5
5
  "keywords": [
6
6
  "agent",