@jeffreycao/copilot-api 1.14.12 → 1.14.14
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 +1 -1
- package/dist/{server-DOzOrcZ9.js → server-CZ6w4i5V.js} +5 -4
- package/dist/server-CZ6w4i5V.js.map +1 -0
- package/dist/{start-Dx9iXCno.js → start-DNyTCOsB.js} +2 -2
- package/dist/{start-Dx9iXCno.js.map → start-DNyTCOsB.js.map} +1 -1
- package/package.json +1 -1
- package/dist/server-DOzOrcZ9.js.map +0 -1
package/dist/main.js
CHANGED
|
@@ -25,7 +25,7 @@ bindElectronFetch();
|
|
|
25
25
|
const { auth } = await import("./auth-DvJ8r_tN.js");
|
|
26
26
|
const { debug } = await import("./debug-Bb5hamXX.js");
|
|
27
27
|
const { mcp } = await import("./mcp-BG6fpi6q.js");
|
|
28
|
-
const { start } = await import("./start-
|
|
28
|
+
const { start } = await import("./start-DNyTCOsB.js");
|
|
29
29
|
await runMain(defineCommand({
|
|
30
30
|
meta: {
|
|
31
31
|
name: "copilot-api",
|
|
@@ -3643,7 +3643,8 @@ const MESSAGE_TYPE = "message";
|
|
|
3643
3643
|
const COMPACTION_SIGNATURE_PREFIX = "cm1#";
|
|
3644
3644
|
const COMPACTION_SIGNATURE_SEPARATOR = "@";
|
|
3645
3645
|
const THINKING_TEXT = "Thinking...";
|
|
3646
|
-
const REASONING_SUMMARY_SEPARATOR = "
|
|
3646
|
+
const REASONING_SUMMARY_SEPARATOR = "\xA0\n\n";
|
|
3647
|
+
const REASONING_SUMMARY_SEPARATOR_PATTERN = /\u00a0\n\n|\u2063\n\n/;
|
|
3647
3648
|
const resolveReasoningEffort = (payload) => payload.output_config?.effort ?? getReasoningEffortForModel(payload.model);
|
|
3648
3649
|
const buildPromptCacheKey = (basePromptCacheKey, subagentAgentId) => {
|
|
3649
3650
|
if (!basePromptCacheKey) return null;
|
|
@@ -3840,11 +3841,11 @@ const createReasoningContent = (block) => {
|
|
|
3840
3841
|
};
|
|
3841
3842
|
const createReasoningSummary = (thinking) => {
|
|
3842
3843
|
if (thinking.length === 0) return [];
|
|
3843
|
-
if (!
|
|
3844
|
+
if (!REASONING_SUMMARY_SEPARATOR_PATTERN.test(thinking)) return [{
|
|
3844
3845
|
type: "summary_text",
|
|
3845
3846
|
text: thinking
|
|
3846
3847
|
}];
|
|
3847
|
-
return thinking.split(
|
|
3848
|
+
return thinking.split(REASONING_SUMMARY_SEPARATOR_PATTERN).map((text) => ({
|
|
3848
3849
|
type: "summary_text",
|
|
3849
3850
|
text
|
|
3850
3851
|
}));
|
|
@@ -7106,4 +7107,4 @@ server.route("/:provider/images", providerImageRoutes);
|
|
|
7106
7107
|
//#endregion
|
|
7107
7108
|
export { server };
|
|
7108
7109
|
|
|
7109
|
-
//# sourceMappingURL=server-
|
|
7110
|
+
//# sourceMappingURL=server-CZ6w4i5V.js.map
|