@jeffreycao/copilot-api 2.5.9 → 2.5.11
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/README.md +2 -2
- package/README.zh-CN.md +2 -2
- package/dist/{auth-zBY9SQaI.js → auth-WqY8_EZT.js} +26 -9
- package/dist/auth-WqY8_EZT.js.map +1 -0
- package/dist/auth-vYMQMBSa.js +2 -0
- package/dist/{config-2Dli6AI8.js → config-DTZzVvur.js} +2 -2
- package/dist/{config-2Dli6AI8.js.map → config-DTZzVvur.js.map} +1 -1
- package/dist/{debug-DV0aYj65.js → debug-DIQi6mF1.js} +2 -2
- package/dist/{debug-DV0aYj65.js.map → debug-DIQi6mF1.js.map} +1 -1
- package/dist/main.js +3 -3
- package/dist/{models-B1c5UcTP.js → models-DAMOou_f.js} +2 -2
- package/dist/{models-B1c5UcTP.js.map → models-DAMOou_f.js.map} +1 -1
- package/dist/{server-D0Wx-DQF.js → server-CTAJaZn-.js} +4 -4
- package/dist/{server-D0Wx-DQF.js.map → server-CTAJaZn-.js.map} +1 -1
- package/dist/{start-zddonYc0.js → start-DDNVmyLY.js} +7 -7
- package/dist/start-DDNVmyLY.js.map +1 -0
- package/dist/{token-4p5BAEqO.js → token-CGvXQOSn.js} +238 -49
- package/dist/token-CGvXQOSn.js.map +1 -0
- package/package.json +1 -1
- package/dist/auth-CdETqUtu.js +0 -2
- package/dist/auth-zBY9SQaI.js.map +0 -1
- package/dist/start-zddonYc0.js.map +0 -1
- package/dist/token-4p5BAEqO.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { A as isResponsesApiWebSocketEnabled, C as getClaudeTokenMultiplier, D as isAlphaSearchCodexPriorityEnabled, E as getUpstreamTransportConfig,
|
|
2
|
-
import {
|
|
1
|
+
import { A as isResponsesApiWebSocketEnabled, C as getClaudeTokenMultiplier, D as isAlphaSearchCodexPriorityEnabled, E as getUpstreamTransportConfig, O as isMessagesApiEnabled, P as PATHS, S as getClaudeAutoModel, T as getMessageApiWebSearchModel, _ as resolveMappedModel, b as getAlphaSearchModel, d as getModelResponsesApiCompactThreshold$1, f as getReasoningEffortForModel, g as isGpt56OrAbove, h as isContextManagementEnabledForResponses, i as listEnabledProviders, k as isResponsesApiWebSearchEnabled, l as getExtraPromptForModel, m as isContextManagementEnabledForMessages, n as getRawProviderConfig, o as resolveEffectiveProviderType, p as getSmallModel, s as resolveProviderAuthType, t as getProviderConfig, u as getModelMappings, v as setModelMappings, x as getAnthropicApiKey } from "./config-DTZzVvur.js";
|
|
2
|
+
import { $ as forwardError, B as forwardCodexResponses, C as copilotWebSocketHeaders, E as prepareMessageProxyHeaders, G as createResponsesHttpEventStream, H as requestContext, J as isTerminalResponsesStreamChunk, K as createResponsesSafeStream, M as compactTextOnlyGuard, N as createAuthMiddleware, O as compactAutoContinuePromptStarts, P as getConfiguredAdminApiKeys, Q as HTTPError, R as CODEX_API_BASE_URL, T as prepareInteractionHeaders, U as resolveTraceId$1, V as generateTraceId, W as fetchUpstreamWithLifecycle, X as createWebSocketUrl, Y as createPooledWebSocketStream, Z as state, b as copilotBaseUrl, d as getUUID, f as isAsyncIterable, g as getCopilotUsage, h as parseUserIdMetadata, j as compactSystemPromptStarts, k as compactMessageSections, l as generateRequestIdFromPayload, m as isResponsesStream, o as setupCodexToken, p as isNullish, q as encodePoolKeyPart, u as getRootSessionId, w as prepareForCompact, x as copilotHeaders, z as buildCodexRequestHeaders } from "./token-CGvXQOSn.js";
|
|
3
3
|
import { a as isDeferredToolName, c as parseMcpToolSearchSentinel, d as shouldEnableResponsesToolSearch, i as isBridgeToolSearchName, l as resolveBridgeToolSearchName, o as listDeferredToolNames, r as formatToolSearchBridgeArguments, s as normalizeToolSearchBridgeArguments, t as BRIDGE_TOOL_SEARCH_NAME, u as selectDeferredToolsByNames } from "./tool-search-BgFcDbNQ.js";
|
|
4
|
-
import { i as toClientModelId, r as normalizeSdkModelId, t as findEndpointModel } from "./models-
|
|
4
|
+
import { i as toClientModelId, r as normalizeSdkModelId, t as findEndpointModel } from "./models-DAMOou_f.js";
|
|
5
5
|
import consola from "consola";
|
|
6
6
|
import { createHash } from "node:crypto";
|
|
7
7
|
import fs, { createWriteStream, readFileSync, rmSync } from "node:fs";
|
|
@@ -12679,4 +12679,4 @@ createServer();
|
|
|
12679
12679
|
//#endregion
|
|
12680
12680
|
export { createServer };
|
|
12681
12681
|
|
|
12682
|
-
//# sourceMappingURL=server-
|
|
12682
|
+
//# sourceMappingURL=server-CTAJaZn-.js.map
|