poe-code 3.0.424-beta.2 → 3.0.424

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": "poe-code",
3
- "version": "3.0.424-beta.2",
3
+ "version": "3.0.424",
4
4
  "description": "CLI tool to configure Poe API for developer workflows.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -151,7 +151,7 @@ export class StreamableHttpTransport {
151
151
  }
152
152
  async handlePost(req, res) {
153
153
  if (!this.isJsonRequest(req)) {
154
- this.respondWithJsonRpcError(res, 400, JSON_RPC_ERROR_CODES.INVALID_REQUEST, "Invalid Request");
154
+ this.respondWithJsonRpcError(res, 415, JSON_RPC_ERROR_CODES.INVALID_REQUEST, "Invalid Request");
155
155
  return;
156
156
  }
157
157
  if (!this.acceptsConfiguredResponse(req)) {
@@ -740,12 +740,13 @@ export class StreamableHttpTransport {
740
740
  const baseHeaders = {
741
741
  "X-Content-Type-Options": "nosniff",
742
742
  "Referrer-Policy": "no-referrer",
743
+ Vary: "Origin",
743
744
  ...(requestId === undefined ? {} : { "X-Request-Id": requestId }),
744
745
  ...(origin === undefined
745
746
  ? {}
746
747
  : {
747
748
  "Access-Control-Allow-Origin": origin,
748
- Vary: "Origin",
749
+ "Access-Control-Expose-Headers": "Mcp-Session-Id, X-Request-Id",
749
750
  }),
750
751
  };
751
752
  if (sessionId === undefined) {