@jeffreycao/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-I-jV5RwF.js");
24
24
  const { checkUsage } = await import("./check-usage-DYLFqYhN.js");
25
25
  const { debug } = await import("./debug-DcC7ZPH0.js");
26
- const { start } = await import("./start-6DUmwwg0.js");
26
+ const { start } = await import("./start-BSKFZL9O.js");
27
27
  const main = defineCommand({
28
28
  meta: {
29
29
  name: "copilot-api",
@@ -2025,7 +2025,7 @@ const isAttachmentBlock = (block) => {
2025
2025
  return block.type === "image" || block.type === "document";
2026
2026
  };
2027
2027
  const getMergeableToolResultIndices = (toolResults) => {
2028
- return toolResults.flatMap((block, index) => hasToolRef(block) ? [] : [index]);
2028
+ return toolResults.flatMap((block, index) => block.is_error || hasToolRef(block) ? [] : [index]);
2029
2029
  };
2030
2030
  const mergeAttachmentsIntoToolResults = (toolResults, attachmentsByToolResultIndex) => {
2031
2031
  if (attachmentsByToolResultIndex.size === 0) return toolResults;
@@ -3165,4 +3165,4 @@ server.route("/:provider/v1/models", providerModelRoutes);
3165
3165
 
3166
3166
  //#endregion
3167
3167
  export { server };
3168
- //# sourceMappingURL=server-DS5Brc8C.js.map
3168
+ //# sourceMappingURL=server-COPd_KDa.js.map