@fudrouter/fsrouter 0.6.62 → 0.6.64
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/bin/copyJs.js +0 -4
- package/bin/rewriteSseImports.js +5 -1
- package/dist/lib/oauth/constants/oauth.js +2 -2
- package/dist/lib/oauth/providers.js +1 -1
- package/dist/open-sse/executors/cliproxyapi.js +2 -2
- package/dist/open-sse/services/rateLimitManager.js +4 -4
- package/dist/routes/providers/[id]/test/testUtils.js +3 -3
- package/dist/shared/constants/models.js +2 -2
- package/dist/sse/handlers/chat.js +10 -10
- package/dist/sse/handlers/embeddings.js +3 -3
- package/dist/sse/handlers/fetch.js +4 -4
- package/dist/sse/handlers/imageGeneration.js +5 -5
- package/dist/sse/handlers/search.js +4 -4
- package/dist/sse/handlers/stt.js +3 -3
- package/dist/sse/handlers/tts.js +4 -4
- package/dist/sse/handlers/videoGeneration.js +4 -4
- package/dist/sse/services/auth.js +2 -2
- package/dist/sse/services/model.js +1 -1
- package/dist/sse/services/tokenRefresh.js +3 -3
- package/package.json +1 -1
package/bin/copyJs.js
CHANGED
|
@@ -46,19 +46,15 @@ function rewriteImports(content, filePath, isJsCopy = false) {
|
|
|
46
46
|
const relToPkgRoot = relToRoot;
|
|
47
47
|
|
|
48
48
|
updated = updated.replace(/from\s+['"]open-sse\/([^'"]+)['"]/g, (m, impPath) => {
|
|
49
|
-
if (isJsCopy) return `from './dist/open-sse/${impPath}'`;
|
|
50
49
|
return `from '${relToPkgRoot}/open-sse/${impPath}'`;
|
|
51
50
|
});
|
|
52
51
|
updated = updated.replace(/from\s+['"]open-sse['"]/g, (m) => {
|
|
53
|
-
if (isJsCopy) return `from './dist/open-sse/index.js'`;
|
|
54
52
|
return `from '${relToPkgRoot}/open-sse/index.js'`;
|
|
55
53
|
});
|
|
56
54
|
updated = updated.replace(/import\s+['"]open-sse\/([^'"]+)['"]/g, (m, impPath) => {
|
|
57
|
-
if (isJsCopy) return `import './dist/open-sse/${impPath}'`;
|
|
58
55
|
return `import '${relToPkgRoot}/open-sse/${impPath}'`;
|
|
59
56
|
});
|
|
60
57
|
updated = updated.replace(/import\s+['"]open-sse['"]/g, (m) => {
|
|
61
|
-
if (isJsCopy) return `import './dist/open-sse/index.js'`;
|
|
62
58
|
return `import '${relToPkgRoot}/open-sse/index.js'`;
|
|
63
59
|
});
|
|
64
60
|
|
package/bin/rewriteSseImports.js
CHANGED
|
@@ -39,10 +39,14 @@ function rewrite(file) {
|
|
|
39
39
|
const resolved = imp.endsWith(".js") ? imp : imp + ".js";
|
|
40
40
|
return `from '${prefix}services/${resolved}'`;
|
|
41
41
|
})
|
|
42
|
-
.replace(/import\s+['
|
|
42
|
+
.replace(/import\s+['"]@\/lib\/([^'"]+)['"]/g, (m, imp) => {
|
|
43
43
|
const resolved = imp.endsWith(".js") ? imp : imp + ".js";
|
|
44
44
|
return `import '${prefix}lib/${resolved}'`;
|
|
45
45
|
})
|
|
46
|
+
.replace(/import\(\s*['"]@\/lib\/([^'"]+)['"]\s*\)/g, (m, imp) => {
|
|
47
|
+
const resolved = imp.endsWith(".js") ? imp : imp + ".js";
|
|
48
|
+
return `import('${prefix}lib/${resolved}')`;
|
|
49
|
+
})
|
|
46
50
|
// Fix relative imports pointing to ../../../src/lib → ../../dist/lib
|
|
47
51
|
// For open-sse/services/*.js (depth=2): ../../../src/lib/ = open-sse/src/lib/ (wrong)
|
|
48
52
|
// correct: ../../dist/lib/
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* OAuth Configuration Constants — static data lives in registry, re-exported here for consumers.
|
|
3
3
|
*/
|
|
4
4
|
import { platform, arch } from "os";
|
|
5
|
-
import { ANTIGRAVITY_OAUTH_CLIENT, GOOGLE_OAUTH_CLIENT } from '
|
|
6
|
-
import { PROVIDER_OAUTH, PROVIDERS as REGISTRY_PROVIDERS } from '
|
|
5
|
+
import { ANTIGRAVITY_OAUTH_CLIENT, GOOGLE_OAUTH_CLIENT } from '../../../../open-sse/providers/shared.js';
|
|
6
|
+
import { PROVIDER_OAUTH, PROVIDERS as REGISTRY_PROVIDERS } from '../../../../open-sse/providers/index.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Get the platform enum value based on the current OS.
|
|
@@ -79,7 +79,7 @@ function clearCliproxyapiUrlCache() {
|
|
|
79
79
|
}
|
|
80
80
|
(async () => {
|
|
81
81
|
try {
|
|
82
|
-
const { getSettings } = await import(
|
|
82
|
+
const { getSettings } = await import('../../../dist/lib/db/settings.js');
|
|
83
83
|
const settings = await getSettings();
|
|
84
84
|
if (typeof settings.cliproxyapi_url === "string" && settings.cliproxyapi_url.trim()) {
|
|
85
85
|
_cachedSettingsUrl = { url: settings.cliproxyapi_url.trim(), ts: Date.now() };
|
|
@@ -92,7 +92,7 @@ async function resolveCliproxyapiBaseUrl() {
|
|
|
92
92
|
return _cachedSettingsUrl.url;
|
|
93
93
|
}
|
|
94
94
|
try {
|
|
95
|
-
const { getSettings } = await import(
|
|
95
|
+
const { getSettings } = await import('../../../dist/lib/db/settings.js');
|
|
96
96
|
const settings = await getSettings();
|
|
97
97
|
if (typeof settings.cliproxyapi_url === "string" && settings.cliproxyapi_url.trim()) {
|
|
98
98
|
const url2 = settings.cliproxyapi_url.trim();
|
|
@@ -192,7 +192,7 @@ async function initializeRateLimits() {
|
|
|
192
192
|
if (initialized) return;
|
|
193
193
|
initialized = true;
|
|
194
194
|
try {
|
|
195
|
-
const { getProviderConnections, getSettings } = await import(
|
|
195
|
+
const { getProviderConnections, getSettings } = await import('../../../dist/lib/localDb.js');
|
|
196
196
|
const [connections, settings] = await Promise.all([getProviderConnections(), getSettings()]);
|
|
197
197
|
const resilience = resolveResilienceSettings(settings);
|
|
198
198
|
currentRequestQueueSettings = { ...resilience.requestQueue };
|
|
@@ -221,7 +221,7 @@ async function initializeRateLimits() {
|
|
|
221
221
|
}
|
|
222
222
|
async function applyRequestQueueSettings(nextSettings) {
|
|
223
223
|
currentRequestQueueSettings = { ...nextSettings };
|
|
224
|
-
const { getProviderConnections } = await import(
|
|
224
|
+
const { getProviderConnections } = await import('../../../dist/lib/localDb.js');
|
|
225
225
|
const connections = await getProviderConnections();
|
|
226
226
|
reconcileEnabledConnections(connections, currentRequestQueueSettings);
|
|
227
227
|
updateAllLimiterSettings();
|
|
@@ -465,7 +465,7 @@ function getLearnedLimits() {
|
|
|
465
465
|
}
|
|
466
466
|
async function persistLearnedLimitsNow() {
|
|
467
467
|
try {
|
|
468
|
-
const { updateSettings } = await import(
|
|
468
|
+
const { updateSettings } = await import('../../../dist/lib/db/settings.js');
|
|
469
469
|
await updateSettings({ learnedRateLimits: JSON.stringify(learnedLimits) });
|
|
470
470
|
logRateLimit(
|
|
471
471
|
`\u{1F4BE} [RATE-LIMIT] Persisted learned limits for ${Object.keys(learnedLimits).length} provider(s)`
|
|
@@ -541,7 +541,7 @@ async function __getLimiterStateForTests(provider, connectionId, model = null) {
|
|
|
541
541
|
}
|
|
542
542
|
async function loadPersistedLimits() {
|
|
543
543
|
try {
|
|
544
|
-
const { getSettings } = await import(
|
|
544
|
+
const { getSettings } = await import('../../../dist/lib/db/settings.js');
|
|
545
545
|
const settings = await getSettings();
|
|
546
546
|
const raw = settings?.learnedRateLimits;
|
|
547
547
|
if (typeof raw !== "string" || raw.trim().length === 0) return;
|
|
@@ -3,12 +3,12 @@ import { resolveConnectionProxyConfig } from '../../../../lib/network/connection
|
|
|
3
3
|
import { testProxyUrl } from '../../../../lib/network/proxyTest.js';
|
|
4
4
|
import { isOpenAICompatibleProvider, isAnthropicCompatibleProvider } from '../../../../shared/constants/providers.js';
|
|
5
5
|
import { PROVIDER_ENDPOINTS } from '../../../../shared/constants/config.js';
|
|
6
|
-
import { getDefaultModel } from '
|
|
7
|
-
import { resolveOllamaLocalHost } from '
|
|
6
|
+
import { getDefaultModel } from '../../../../../open-sse/config/providerModels.js';
|
|
7
|
+
import { resolveOllamaLocalHost } from '../../../../../open-sse/config/providers.js';
|
|
8
8
|
import {
|
|
9
9
|
refreshProviderCredentials,
|
|
10
10
|
shouldRefreshCredentials,
|
|
11
|
-
} from '
|
|
11
|
+
} from '../../../../../open-sse/services/oauthCredentialManager.js';
|
|
12
12
|
import {
|
|
13
13
|
GEMINI_CONFIG,
|
|
14
14
|
ANTIGRAVITY_CONFIG,
|
|
@@ -11,10 +11,10 @@ export {
|
|
|
11
11
|
getModelsByProviderId,
|
|
12
12
|
getModelUpstreamId,
|
|
13
13
|
getModelQuotaFamily
|
|
14
|
-
} from '
|
|
14
|
+
} from '../../../open-sse/config/providerModels.js';
|
|
15
15
|
|
|
16
16
|
import { AI_PROVIDERS, isOpenAICompatibleProvider } from "./providers.js";
|
|
17
|
-
import { PROVIDER_MODELS as MODELS } from '
|
|
17
|
+
import { PROVIDER_MODELS as MODELS } from '../../../open-sse/config/providerModels.js';
|
|
18
18
|
|
|
19
19
|
// Providers that accept any model (passthrough)
|
|
20
20
|
const PASSTHROUGH_PROVIDERS = new Set(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '
|
|
1
|
+
import '../../../open-sse/index.js';
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
getProviderCredentials,
|
|
@@ -7,20 +7,20 @@ import {
|
|
|
7
7
|
extractApiKey,
|
|
8
8
|
isValidApiKey,
|
|
9
9
|
} from "../services/auth.js";
|
|
10
|
-
import { cacheClaudeHeaders } from '
|
|
10
|
+
import { cacheClaudeHeaders } from '../../../open-sse/utils/claudeHeaderCache.js';
|
|
11
11
|
import { getSettings } from "../../lib/localDb.js";
|
|
12
12
|
import { getModelInfo, getComboModels } from "../services/model.js";
|
|
13
|
-
import { getModelType } from '
|
|
13
|
+
import { getModelType } from '../../../open-sse/config/providerModels.js';
|
|
14
14
|
import { handleImageGeneration } from "./imageGeneration.js";
|
|
15
|
-
import { handleChatCore } from '
|
|
16
|
-
import { errorResponse, unavailableResponse } from '
|
|
17
|
-
import { handleComboChat, handleFusionChat } from '
|
|
18
|
-
import { handleBypassRequest } from '
|
|
19
|
-
import { HTTP_STATUS } from '
|
|
20
|
-
import { detectFormatByEndpoint } from '
|
|
15
|
+
import { handleChatCore } from '../../../open-sse/handlers/chatCore.js';
|
|
16
|
+
import { errorResponse, unavailableResponse } from '../../../open-sse/utils/error.js';
|
|
17
|
+
import { handleComboChat, handleFusionChat } from '../../../open-sse/services/combo.js';
|
|
18
|
+
import { handleBypassRequest } from '../../../open-sse/utils/bypassHandler.js';
|
|
19
|
+
import { HTTP_STATUS } from '../../../open-sse/config/runtimeConfig.js';
|
|
20
|
+
import { detectFormatByEndpoint } from '../../../open-sse/translator/formats.js';
|
|
21
21
|
import * as log from "../utils/logger.js";
|
|
22
22
|
import { updateProviderCredentials, checkAndRefreshToken } from "../services/tokenRefresh.js";
|
|
23
|
-
import { getProjectIdForConnection } from '
|
|
23
|
+
import { getProjectIdForConnection } from '../../../open-sse/services/projectId.js';
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
* Handle chat completion request
|
|
@@ -7,9 +7,9 @@ import {
|
|
|
7
7
|
} from "../services/auth.js";
|
|
8
8
|
import { getSettings } from "../../lib/localDb.js";
|
|
9
9
|
import { getModelInfo } from "../services/model.js";
|
|
10
|
-
import { handleEmbeddingsCore } from '
|
|
11
|
-
import { errorResponse, unavailableResponse } from '
|
|
12
|
-
import { HTTP_STATUS } from '
|
|
10
|
+
import { handleEmbeddingsCore } from '../../../open-sse/handlers/embeddingsCore.js';
|
|
11
|
+
import { errorResponse, unavailableResponse } from '../../../open-sse/utils/error.js';
|
|
12
|
+
import { HTTP_STATUS } from '../../../open-sse/config/runtimeConfig.js';
|
|
13
13
|
import * as log from "../utils/logger.js";
|
|
14
14
|
import { updateProviderCredentials, checkAndRefreshToken } from "../services/tokenRefresh.js";
|
|
15
15
|
|
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
} from "../services/auth.js";
|
|
8
8
|
import { getSettings, getCombos } from "../../lib/localDb.js";
|
|
9
9
|
import { AI_PROVIDERS, resolveProviderId } from "../../shared/constants/providers.js";
|
|
10
|
-
import { handleFetchCore } from '
|
|
11
|
-
import { errorResponse, unavailableResponse } from '
|
|
12
|
-
import { HTTP_STATUS } from '
|
|
10
|
+
import { handleFetchCore } from '../../../open-sse/handlers/fetch/index.js';
|
|
11
|
+
import { errorResponse, unavailableResponse } from '../../../open-sse/utils/error.js';
|
|
12
|
+
import { HTTP_STATUS } from '../../../open-sse/config/runtimeConfig.js';
|
|
13
13
|
import * as log from "../utils/logger.js";
|
|
14
14
|
import { updateProviderCredentials, checkAndRefreshToken } from "../services/tokenRefresh.js";
|
|
15
|
-
import { handleComboChat, getComboModelsFromData } from '
|
|
15
|
+
import { handleComboChat, getComboModelsFromData } from '../../../open-sse/services/combo.js';
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Handle web fetch (URL extraction) request for the SSE/Next.js server.
|
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
} from "../services/auth.js";
|
|
8
8
|
import { getSettings } from "../../lib/localDb.js";
|
|
9
9
|
import { getModelInfo, getComboModels } from "../services/model.js";
|
|
10
|
-
import { handleImageGenerationCore } from '
|
|
11
|
-
import { errorResponse, unavailableResponse } from '
|
|
12
|
-
import { HTTP_STATUS } from '
|
|
10
|
+
import { handleImageGenerationCore } from '../../../open-sse/handlers/imageGenerationCore.js';
|
|
11
|
+
import { errorResponse, unavailableResponse } from '../../../open-sse/utils/error.js';
|
|
12
|
+
import { HTTP_STATUS } from '../../../open-sse/config/runtimeConfig.js';
|
|
13
13
|
import { updateProviderCredentials, checkAndRefreshToken } from "../services/tokenRefresh.js";
|
|
14
|
-
import { handleComboChat } from '
|
|
15
|
-
import { saveUsageStats, buildRequestDetail } from '
|
|
14
|
+
import { handleComboChat } from '../../../open-sse/services/combo.js';
|
|
15
|
+
import { saveUsageStats, buildRequestDetail } from '../../../open-sse/handlers/chatCore/requestDetail.js';
|
|
16
16
|
import { saveRequestDetail } from "../../lib/usageDb.js";
|
|
17
17
|
import * as log from "../utils/logger.js";
|
|
18
18
|
|
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
} from "../services/auth.js";
|
|
8
8
|
import { getSettings, getCombos } from "../../lib/localDb.js";
|
|
9
9
|
import { AI_PROVIDERS, resolveProviderId } from "../../shared/constants/providers.js";
|
|
10
|
-
import { handleSearchCore } from '
|
|
11
|
-
import { errorResponse, unavailableResponse } from '
|
|
12
|
-
import { HTTP_STATUS } from '
|
|
10
|
+
import { handleSearchCore } from '../../../open-sse/handlers/search/index.js';
|
|
11
|
+
import { errorResponse, unavailableResponse } from '../../../open-sse/utils/error.js';
|
|
12
|
+
import { HTTP_STATUS } from '../../../open-sse/config/runtimeConfig.js';
|
|
13
13
|
import * as log from "../utils/logger.js";
|
|
14
14
|
import { updateProviderCredentials, checkAndRefreshToken } from "../services/tokenRefresh.js";
|
|
15
|
-
import { handleComboChat, getComboModelsFromData } from '
|
|
15
|
+
import { handleComboChat, getComboModelsFromData } from '../../../open-sse/services/combo.js';
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Handle web search request for the SSE/Next.js server.
|
package/dist/sse/handlers/stt.js
CHANGED
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
} from "../services/auth.js";
|
|
5
5
|
import { getSettings } from "../../lib/localDb.js";
|
|
6
6
|
import { getModelInfo } from "../services/model.js";
|
|
7
|
-
import { handleSttCore } from '
|
|
8
|
-
import { errorResponse, unavailableResponse } from '
|
|
9
|
-
import { HTTP_STATUS } from '
|
|
7
|
+
import { handleSttCore } from '../../../open-sse/handlers/sttCore.js';
|
|
8
|
+
import { errorResponse, unavailableResponse } from '../../../open-sse/utils/error.js';
|
|
9
|
+
import { HTTP_STATUS } from '../../../open-sse/config/runtimeConfig.js';
|
|
10
10
|
import { AI_PROVIDERS } from "../../shared/constants/providers.js";
|
|
11
11
|
import * as log from "../utils/logger.js";
|
|
12
12
|
|
package/dist/sse/handlers/tts.js
CHANGED
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
} from "../services/auth.js";
|
|
5
5
|
import { getSettings } from "../../lib/localDb.js";
|
|
6
6
|
import { getModelInfo, getComboModels } from "../services/model.js";
|
|
7
|
-
import { handleTtsCore } from '
|
|
8
|
-
import { errorResponse, unavailableResponse } from '
|
|
9
|
-
import { HTTP_STATUS } from '
|
|
7
|
+
import { handleTtsCore } from '../../../open-sse/handlers/ttsCore.js';
|
|
8
|
+
import { errorResponse, unavailableResponse } from '../../../open-sse/utils/error.js';
|
|
9
|
+
import { HTTP_STATUS } from '../../../open-sse/config/runtimeConfig.js';
|
|
10
10
|
import { AI_PROVIDERS } from "../../shared/constants/providers.js";
|
|
11
|
-
import { handleComboChat } from '
|
|
11
|
+
import { handleComboChat } from '../../../open-sse/services/combo.js';
|
|
12
12
|
import * as log from "../utils/logger.js";
|
|
13
13
|
|
|
14
14
|
// Derived from providers.js: any TTS provider not noAuth requires stored credentials
|
|
@@ -7,11 +7,11 @@ import {
|
|
|
7
7
|
} from "../services/auth.js";
|
|
8
8
|
import { getSettings } from "../../lib/localDb.js";
|
|
9
9
|
import { getModelInfo } from "../services/model.js";
|
|
10
|
-
import { handleVideoGenerationCore } from '
|
|
11
|
-
import { errorResponse, unavailableResponse } from '
|
|
12
|
-
import { HTTP_STATUS } from '
|
|
10
|
+
import { handleVideoGenerationCore } from '../../../open-sse/handlers/videoGenerationCore.js';
|
|
11
|
+
import { errorResponse, unavailableResponse } from '../../../open-sse/utils/error.js';
|
|
12
|
+
import { HTTP_STATUS } from '../../../open-sse/config/runtimeConfig.js';
|
|
13
13
|
import { checkAndRefreshToken, updateProviderCredentials } from "../services/tokenRefresh.js";
|
|
14
|
-
import { saveUsageStats, buildRequestDetail } from '
|
|
14
|
+
import { saveUsageStats, buildRequestDetail } from '../../../open-sse/handlers/chatCore/requestDetail.js';
|
|
15
15
|
import { saveRequestDetail } from "../../lib/usageDb.js";
|
|
16
16
|
import * as log from "../utils/logger.js";
|
|
17
17
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getProviderConnections, validateApiKey, updateProviderConnection, getSettings } from "../../lib/localDb.js";
|
|
2
2
|
import { resolveConnectionProxyConfig } from "../../lib/network/connectionProxy.js";
|
|
3
|
-
import { formatRetryAfter, checkFallbackError, isModelLockActive, buildModelLockUpdate, getEarliestModelLockUntil } from '
|
|
4
|
-
import { MAX_RATE_LIMIT_COOLDOWN_MS } from '
|
|
3
|
+
import { formatRetryAfter, checkFallbackError, isModelLockActive, buildModelLockUpdate, getEarliestModelLockUntil } from '../../../open-sse/services/accountFallback.js';
|
|
4
|
+
import { MAX_RATE_LIMIT_COOLDOWN_MS } from '../../../open-sse/config/errorConfig.js';
|
|
5
5
|
import { resolveProviderId, FREE_PROVIDERS } from "../../shared/constants/providers.js";
|
|
6
6
|
import * as log from "../utils/logger.js";
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Re-export from open-sse with localDb integration
|
|
2
2
|
import { getModelAliases, getComboByName, getProviderNodes } from "../../lib/localDb.js";
|
|
3
|
-
import { parseModel as parseModelCore, resolveModelAliasFromMap, getModelInfoCore } from '
|
|
3
|
+
import { parseModel as parseModelCore, resolveModelAliasFromMap, getModelInfoCore } from '../../../open-sse/services/model.js';
|
|
4
4
|
|
|
5
5
|
// Local provider alias overrides (HMR-friendly, applied on top of open-sse map)
|
|
6
6
|
const LOCAL_PROVIDER_ALIASES = {
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
getProjectIdForConnection,
|
|
6
6
|
invalidateProjectId,
|
|
7
7
|
removeConnection,
|
|
8
|
-
} from '
|
|
8
|
+
} from '../../../open-sse/services/projectId.js';
|
|
9
9
|
import {
|
|
10
10
|
TOKEN_EXPIRY_BUFFER_MS as BUFFER_MS,
|
|
11
11
|
refreshAccessToken as _refreshAccessToken,
|
|
@@ -22,11 +22,11 @@ import {
|
|
|
22
22
|
getAllAccessTokens as _getAllAccessTokens,
|
|
23
23
|
refreshKiroToken as _refreshKiroToken,
|
|
24
24
|
getRefreshLeadMs as _getRefreshLeadMs
|
|
25
|
-
} from '
|
|
25
|
+
} from '../../../open-sse/services/tokenRefresh.js';
|
|
26
26
|
import {
|
|
27
27
|
refreshProviderCredentials as _refreshProviderCredentials,
|
|
28
28
|
shouldRefreshCredentials as _shouldRefreshCredentials,
|
|
29
|
-
} from '
|
|
29
|
+
} from '../../../open-sse/services/oauthCredentialManager.js';
|
|
30
30
|
|
|
31
31
|
export const TOKEN_EXPIRY_BUFFER_MS = BUFFER_MS;
|
|
32
32
|
|