@jeffreycao/copilot-api 2.1.3 → 2.1.4

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/dist/main.js CHANGED
@@ -25,7 +25,7 @@ bindElectronFetch();
25
25
  const { auth } = await import("./auth-DH-ThnhJ.js");
26
26
  const { debug } = await import("./debug-D2giR-Kj.js");
27
27
  const { mcp } = await import("./mcp-BG6fpi6q.js");
28
- const { start } = await import("./start-CfqpNRSH.js");
28
+ const { start } = await import("./start-B5CJA1Cx.js");
29
29
  await runMain(defineCommand({
30
30
  meta: {
31
31
  name: "copilot-api",
@@ -9076,9 +9076,9 @@ var CustomToolInputStreamDecoder = class {
9076
9076
  this.encodedInput = this.encodedInput.slice(this.safeInputLength);
9077
9077
  this.safeInputLength = 0;
9078
9078
  }
9079
- fail(reason) {
9079
+ fail(_reason) {
9080
9080
  this.failed = true;
9081
- throw new ResponsesMessagesTranslationError(`Messages API returned invalid custom tool input JSON at offset ${this.offset}: ${reason}`, 502);
9081
+ throw new ResponsesMessagesTranslationError(`Invalid tool input JSON. Expected format: {"input":"..."}`, 502);
9082
9082
  }
9083
9083
  };
9084
9084
  function isJsonWhitespace(char) {
@@ -10305,4 +10305,4 @@ server.route("/:provider/images", providerImageRoutes);
10305
10305
  //#endregion
10306
10306
  export { server };
10307
10307
 
10308
- //# sourceMappingURL=server-CF6ryUB1.js.map
10308
+ //# sourceMappingURL=server-BwT9agIL.js.map