@jeffreycao/copilot-api 2.7.7 → 2.7.8
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-CClOz6YS.js → server-VyniyKln.js} +3 -3
- package/dist/server-VyniyKln.js.map +1 -0
- package/dist/{start-y2hlYweN.js → start-B2NhKxEK.js} +2 -2
- package/dist/{start-y2hlYweN.js.map → start-B2NhKxEK.js.map} +1 -1
- package/package.json +1 -1
- package/dist/server-CClOz6YS.js.map +0 -1
package/dist/main.js
CHANGED
|
@@ -30,7 +30,7 @@ if (isMcpFastPath(process.argv)) {
|
|
|
30
30
|
const { auth } = await import("./auth-BzYvzeW0.js");
|
|
31
31
|
const { debug } = await import("./debug-CmL-V7Ov.js");
|
|
32
32
|
const { mcp } = await import("./mcp-Dd_hxxuG.js");
|
|
33
|
-
const { start } = await import("./start-
|
|
33
|
+
const { start } = await import("./start-B2NhKxEK.js");
|
|
34
34
|
const { provider } = await import("./provider-CzziTLqX.js");
|
|
35
35
|
await runMain(defineCommand({
|
|
36
36
|
meta: {
|
|
@@ -30,7 +30,7 @@ const traceIdMiddleware = async (c, next) => {
|
|
|
30
30
|
traceId,
|
|
31
31
|
startTime: Date.now(),
|
|
32
32
|
userAgent: c.req.header("user-agent") || "",
|
|
33
|
-
sessionAffinity: c.req.header("x-session-affinity") ?? c.req.header("x-client-request-id"),
|
|
33
|
+
sessionAffinity: c.req.header("x-opencode-session-id") ?? c.req.header("x-session-affinity") ?? c.req.header("x-client-request-id"),
|
|
34
34
|
parentSessionId: c.req.header("x-parent-session-id")
|
|
35
35
|
};
|
|
36
36
|
await requestContext.run(context, async () => {
|
|
@@ -13063,7 +13063,7 @@ const handleResponses = async (c) => {
|
|
|
13063
13063
|
if (subagentMarker) debugJson(logger$1, "Detected Codex subagent headers:", subagentMarker);
|
|
13064
13064
|
const incomingSessionId = getIncomingResponsesSessionId(c);
|
|
13065
13065
|
const sessionId = incomingSessionId ? getUUID(incomingSessionId) : void 0;
|
|
13066
|
-
const threadId = c.req.header("thread-id");
|
|
13066
|
+
const threadId = c.req.header("thread-id") ?? c.req.header("x-opencode-session-id");
|
|
13067
13067
|
const requestId = threadId ? getUUID(threadId + "_") : generateRequestIdFromPayload({ messages: payload.input }, sessionId);
|
|
13068
13068
|
logger$1.debug("Generated request ID:", requestId);
|
|
13069
13069
|
const fallbackSessionId = sessionId ?? getUUID(requestId);
|
|
@@ -13370,4 +13370,4 @@ createServer();
|
|
|
13370
13370
|
//#endregion
|
|
13371
13371
|
export { createServer };
|
|
13372
13372
|
|
|
13373
|
-
//# sourceMappingURL=server-
|
|
13373
|
+
//# sourceMappingURL=server-VyniyKln.js.map
|