@nick3/copilot-api 1.6.4 → 1.6.5

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
@@ -23,7 +23,7 @@ if (typeof args["enterprise-url"] === "string") process.env.COPILOT_API_ENTERPRI
23
23
  const { auth } = await import("./auth-Ba8K-1aX.js");
24
24
  const { checkUsage } = await import("./check-usage-ChbkyMqB.js");
25
25
  const { debug } = await import("./debug-BJfZVBB7.js");
26
- const { start } = await import("./start-BuNkVXB6.js");
26
+ const { start } = await import("./start-CXd89Ylu.js");
27
27
  await runMain(defineCommand({
28
28
  meta: {
29
29
  name: "copilot-api",
@@ -708,7 +708,7 @@ const isAttachmentBlock = (block) => {
708
708
  return block.type === "image" || block.type === "document";
709
709
  };
710
710
  const getMergeableToolResultIndices = (toolResults) => {
711
- return toolResults.flatMap((block, index) => hasToolRef(block) ? [] : [index]);
711
+ return toolResults.flatMap((block, index) => block.is_error || hasToolRef(block) ? [] : [index]);
712
712
  };
713
713
  const mergeAttachmentsIntoToolResults = (toolResults, attachmentsByToolResultIndex) => {
714
714
  if (attachmentsByToolResultIndex.size === 0) return toolResults;
@@ -7470,4 +7470,4 @@ server.route("/:provider/v1/models", providerModelRoutes);
7470
7470
 
7471
7471
  //#endregion
7472
7472
  export { server };
7473
- //# sourceMappingURL=server-CtWBypBd.js.map
7473
+ //# sourceMappingURL=server-kG7N_-Aj.js.map