@stage-labs/metro 0.1.0-beta.314 → 0.1.0-beta.315

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stage-labs/metro",
3
- "version": "0.1.0-beta.314",
3
+ "version": "0.1.0-beta.315",
4
4
  "description": "The metro command line: run your agent on this machine, relaying its chat channels and connectors to Claude Code.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -143,8 +143,8 @@ async function asAnthropicWants(send: Send, base: Record<string, string>, payloa
143
143
  const { metro, asSent, bound } = payloads;
144
144
  const upstream = await send(metro, bound ? addBeta(base, BINDING_BETA) : base);
145
145
  if (upstream.status !== 400 || asSent === null) return upstream;
146
- await upstream.body?.cancel();
147
- log.warn({ connection, model }, 'gateway: Anthropic refused the request metro shaped, so it was sent again as Claude Code wrote it');
146
+ const reason = upstreamMessage(await upstream.text().catch(() => ''), '').slice(0, 300);
147
+ log.warn({ connection, model, reason }, 'gateway: the provider refused the request metro shaped, so it was sent again as Claude Code wrote it');
148
148
  return send(asSent, base);
149
149
  }
150
150
 
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "0.1.0-beta.314"
2
+ "version": "0.1.0-beta.315"
3
3
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.1.0-beta.314",
2
+ "version": "0.1.0-beta.315",
3
3
  "dependencies": {
4
4
  "@anthropic-ai/claude-agent-sdk": "0.3.287",
5
5
  "@modelcontextprotocol/sdk": "^1.29.0",