@kenkaiiii/gg-core 5.98.1 → 5.99.0
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/{chunk-Q6ZD2VQV.js → chunk-E76ARVZJ.js} +173 -82
- package/dist/chunk-E76ARVZJ.js.map +1 -0
- package/dist/index.cjs +173 -81
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +22 -2
- package/dist/index.d.ts +22 -2
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/model-registry.cjs.map +1 -1
- package/dist/model-registry.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-Q6ZD2VQV.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -861,6 +861,23 @@ declare const CHATGPT_PLAN_NOT_ENABLED_MESSAGE = "ChatGPT plan use isn't enabled
|
|
|
861
861
|
declare class ChatGPTPlanNotEnabledError extends Error {
|
|
862
862
|
constructor();
|
|
863
863
|
}
|
|
864
|
+
/**
|
|
865
|
+
* OpenAI refused the one-time code at the token endpoint. `reason` is its
|
|
866
|
+
* OAuth error (`invalid_grant`, `invalid_client`, ...) and `detail` its
|
|
867
|
+
* `error_description`; the message never carries the raw response body.
|
|
868
|
+
*/
|
|
869
|
+
declare class ChatGPTSignInError extends Error {
|
|
870
|
+
readonly reason: string;
|
|
871
|
+
readonly status: number;
|
|
872
|
+
readonly detail: string;
|
|
873
|
+
/** Whether a saved app registration was used, rather than a first registration. */
|
|
874
|
+
returning: boolean;
|
|
875
|
+
/** Whether this was the second refusal, after the one automatic retry. */
|
|
876
|
+
retried: boolean;
|
|
877
|
+
/** Milliseconds from the browser callback to the token endpoint's answer. */
|
|
878
|
+
callbackToExchangeMs?: number;
|
|
879
|
+
constructor(reason: string, status: number, detail?: string);
|
|
880
|
+
}
|
|
864
881
|
interface ChatGPTLoginOptions {
|
|
865
882
|
/** Defaults to `~/.gg/openai-host-id`. */
|
|
866
883
|
hostIdFile?: string;
|
|
@@ -868,6 +885,8 @@ interface ChatGPTLoginOptions {
|
|
|
868
885
|
registrationFile?: string;
|
|
869
886
|
/** The current sign-in, if any: its ID token skips the account picker. */
|
|
870
887
|
previous?: Pick<OAuthCredentials, "idToken">;
|
|
888
|
+
/** Aborting closes the callback listener at once and rejects with an `AbortError`. */
|
|
889
|
+
signal?: AbortSignal;
|
|
871
890
|
}
|
|
872
891
|
/** This machine's stable `ext_agent_host_id`, created on first use. */
|
|
873
892
|
declare function getChatGPTHostId(file?: string): Promise<string>;
|
|
@@ -875,7 +894,8 @@ declare function getChatGPTHostId(file?: string): Promise<string>;
|
|
|
875
894
|
* Continue with ChatGPT. Registers GG Coder for this ChatGPT account on first
|
|
876
895
|
* use (the user names and approves it in the browser), then reuses the issued
|
|
877
896
|
* client ID. Throws {@link ChatGPTPlanNotEnabledError} when the user signed in
|
|
878
|
-
* but didn't allow plan use
|
|
897
|
+
* but didn't allow plan use, and {@link ChatGPTSignInError} when OpenAI refuses
|
|
898
|
+
* the one-time code twice.
|
|
879
899
|
*/
|
|
880
900
|
declare function loginChatGPT(callbacks: OAuthLoginCallbacks, options?: ChatGPTLoginOptions): Promise<OAuthCredentials>;
|
|
881
901
|
/**
|
|
@@ -1081,4 +1101,4 @@ interface AutoUpdater {
|
|
|
1081
1101
|
}
|
|
1082
1102
|
declare function createAutoUpdater(config: AutoUpdateConfig): AutoUpdater;
|
|
1083
1103
|
|
|
1084
|
-
export { AUTH_PROVIDERS, type ApiKeyVariant, type AuthMethod, type AuthMethodMeta, type AuthProviderMeta, AuthStorage, type AutoUpdateConfig, type AutoUpdater, CHATGPT_PLAN_BASE_URL, CHATGPT_PLAN_NOT_ENABLED_MESSAGE, CHATGPT_PLAN_SCOPE, CHATGPT_USAGE_URL, CLAUDE_CODE_AUTH_KEY, CLAUDE_CODE_AUTH_MARKER, CLAUDE_CODE_MANIFEST, type ChatGPTLoginOptions, ChatGPTPlanNotEnabledError, type ClaudeCodeAuthStatus, type ClaudeCodeInstallProgress, type ClaudeCodeManifest, type ClaudeCodePlatformAsset, type ClaudeCodeRateLimitInfo, type ClaudeCodeRunOptions, type ClaudeCodeRuntimeOptions, type ClaudeCodeSignInOptions, DEFAULT_LOCAL_ENDPOINTS, type DiscoverOptions, type DiscoveryResult, type DualAuthProvider, type EnsureClaudeCodeOptions, FALLBACK_CONTEXT_WINDOW, type FetchedSubscriptionUsageProvider, GEMINI_API_KEY, GEMINI_API_KEY_BASE_URL, type InlineButton, KIMI_CODE_DEFAULT_BASE_URL, KIMI_CODE_KEY, KIMI_CODE_OVERSEAS_BASE_URL, LOCAL_API_KEY_PLACEHOLDER, LOCAL_AUTH_KEY_PREFIX, type LocalEndpoint, type LocalEndpointKind, type LocalEndpointProbe, type LocalModel, type LogLevel, MINIMAX_CN_BASE_URL, MINIMAX_GLOBAL_BASE_URL, ModelInfo, NotLoggedInError, type OAuthCredentials, type OAuthLoginCallbacks, OPENAI_CHATGPT_KEY, OPENCODE_CATALOG_URLS, OPENCODE_PROVIDERS, OPENROUTER_DEFAULT_BASE_URL, type OpenCodeProvider, PLAN_MODE_THINKING_CAP, type ParsedOpenCodeCatalog, type ParsedOpenRouterCatalog, type ProbeOptions, type ProgressCallback, RETIRED_SIGN_INS, type RetiredSignIn, SubscriptionUsageError, type SubscriptionUsageProvider, type SubscriptionUsageSnapshot, type SubscriptionUsageWindow, TelegramBot, type TelegramConfig, type TelegramMessage, type TelegramUpdate, type TelegramVoiceMessage, XIAOMI_CREDITS_KEY, XIAOMI_TOKEN_PLAN_BASE_URLS, apiKeyStorageKeys, authPriorityNote, clampThinkingForPlanMode, claudeCodeAuthStatus, claudeCodeBinaryPath, claudeCodeCallbackUrl, claudeCodeConfigDir, claudeCodeEnv, claudeCodeHome, claudeCodePlatformKey, clearClaudeCodeUsage, clearLocalDiscoveryCache, closeLogger, createAutoUpdater, decodeOggOpus, describeAuthMethods, detectKimiCodeBaseUrl, detectMiniMaxBaseUrl, detectXiaomiTokenPlanBaseUrl, discoverLocalModels, downmixToMono, dualAuthProvider, dualAuthProviderByOAuthKey, endpointRoot, ensureClaudeCodeBinary, fetchChatGPTPlanModels, fetchSubscriptionUsage, findProbedModel, formatClaudeCodeInstallProgress, formatLocalModelId, formatOpenCodeModelId, generatePKCE, getAuthProvider, getChatGPTHostId, getLowestThinkingLevel, getNextThinkingLevel, getSessionId, getSupportedThinkingLevels, isClaudeCodeAuthMarker, isKimiCodingEndpoint, isLegacyClaudeOAuth, isLocalModelId, isLoggerOpen, isModelLoaded, isThinkingLevelSupported, localAuthStorageKey, localModelShortName, log, loginChatGPT, loginClaudeCode, logoutClaudeCode, mergeClaudeCodeRateLimit, oauthStorageKey, ollamaServedContext, openLog, parseCallbackInput, parseLocalModelId, parseOpenCodeCatalog, parseOpenRouterCatalog, probeEndpoint, providerStorageKeys, readClaudeCodeUsage, readStoredBaseUrlSync, recordClaudeCodeRateLimit, refreshChatGPTToken, registerLogCleanup, requiredKeyLabel, resample, resolveClaudeCodeBinary, revokeChatGPTSignIn, setProgressCallback, signInWithClaudeCode, signOutOfClaudeCode, storageKeyProvider, toModelInfo, transcribeVoice, verifyIdToken, withFileLock };
|
|
1104
|
+
export { AUTH_PROVIDERS, type ApiKeyVariant, type AuthMethod, type AuthMethodMeta, type AuthProviderMeta, AuthStorage, type AutoUpdateConfig, type AutoUpdater, CHATGPT_PLAN_BASE_URL, CHATGPT_PLAN_NOT_ENABLED_MESSAGE, CHATGPT_PLAN_SCOPE, CHATGPT_USAGE_URL, CLAUDE_CODE_AUTH_KEY, CLAUDE_CODE_AUTH_MARKER, CLAUDE_CODE_MANIFEST, type ChatGPTLoginOptions, ChatGPTPlanNotEnabledError, ChatGPTSignInError, type ClaudeCodeAuthStatus, type ClaudeCodeInstallProgress, type ClaudeCodeManifest, type ClaudeCodePlatformAsset, type ClaudeCodeRateLimitInfo, type ClaudeCodeRunOptions, type ClaudeCodeRuntimeOptions, type ClaudeCodeSignInOptions, DEFAULT_LOCAL_ENDPOINTS, type DiscoverOptions, type DiscoveryResult, type DualAuthProvider, type EnsureClaudeCodeOptions, FALLBACK_CONTEXT_WINDOW, type FetchedSubscriptionUsageProvider, GEMINI_API_KEY, GEMINI_API_KEY_BASE_URL, type InlineButton, KIMI_CODE_DEFAULT_BASE_URL, KIMI_CODE_KEY, KIMI_CODE_OVERSEAS_BASE_URL, LOCAL_API_KEY_PLACEHOLDER, LOCAL_AUTH_KEY_PREFIX, type LocalEndpoint, type LocalEndpointKind, type LocalEndpointProbe, type LocalModel, type LogLevel, MINIMAX_CN_BASE_URL, MINIMAX_GLOBAL_BASE_URL, ModelInfo, NotLoggedInError, type OAuthCredentials, type OAuthLoginCallbacks, OPENAI_CHATGPT_KEY, OPENCODE_CATALOG_URLS, OPENCODE_PROVIDERS, OPENROUTER_DEFAULT_BASE_URL, type OpenCodeProvider, PLAN_MODE_THINKING_CAP, type ParsedOpenCodeCatalog, type ParsedOpenRouterCatalog, type ProbeOptions, type ProgressCallback, RETIRED_SIGN_INS, type RetiredSignIn, SubscriptionUsageError, type SubscriptionUsageProvider, type SubscriptionUsageSnapshot, type SubscriptionUsageWindow, TelegramBot, type TelegramConfig, type TelegramMessage, type TelegramUpdate, type TelegramVoiceMessage, XIAOMI_CREDITS_KEY, XIAOMI_TOKEN_PLAN_BASE_URLS, apiKeyStorageKeys, authPriorityNote, clampThinkingForPlanMode, claudeCodeAuthStatus, claudeCodeBinaryPath, claudeCodeCallbackUrl, claudeCodeConfigDir, claudeCodeEnv, claudeCodeHome, claudeCodePlatformKey, clearClaudeCodeUsage, clearLocalDiscoveryCache, closeLogger, createAutoUpdater, decodeOggOpus, describeAuthMethods, detectKimiCodeBaseUrl, detectMiniMaxBaseUrl, detectXiaomiTokenPlanBaseUrl, discoverLocalModels, downmixToMono, dualAuthProvider, dualAuthProviderByOAuthKey, endpointRoot, ensureClaudeCodeBinary, fetchChatGPTPlanModels, fetchSubscriptionUsage, findProbedModel, formatClaudeCodeInstallProgress, formatLocalModelId, formatOpenCodeModelId, generatePKCE, getAuthProvider, getChatGPTHostId, getLowestThinkingLevel, getNextThinkingLevel, getSessionId, getSupportedThinkingLevels, isClaudeCodeAuthMarker, isKimiCodingEndpoint, isLegacyClaudeOAuth, isLocalModelId, isLoggerOpen, isModelLoaded, isThinkingLevelSupported, localAuthStorageKey, localModelShortName, log, loginChatGPT, loginClaudeCode, logoutClaudeCode, mergeClaudeCodeRateLimit, oauthStorageKey, ollamaServedContext, openLog, parseCallbackInput, parseLocalModelId, parseOpenCodeCatalog, parseOpenRouterCatalog, probeEndpoint, providerStorageKeys, readClaudeCodeUsage, readStoredBaseUrlSync, recordClaudeCodeRateLimit, refreshChatGPTToken, registerLogCleanup, requiredKeyLabel, resample, resolveClaudeCodeBinary, revokeChatGPTSignIn, setProgressCallback, signInWithClaudeCode, signOutOfClaudeCode, storageKeyProvider, toModelInfo, transcribeVoice, verifyIdToken, withFileLock };
|
package/dist/index.d.ts
CHANGED
|
@@ -861,6 +861,23 @@ declare const CHATGPT_PLAN_NOT_ENABLED_MESSAGE = "ChatGPT plan use isn't enabled
|
|
|
861
861
|
declare class ChatGPTPlanNotEnabledError extends Error {
|
|
862
862
|
constructor();
|
|
863
863
|
}
|
|
864
|
+
/**
|
|
865
|
+
* OpenAI refused the one-time code at the token endpoint. `reason` is its
|
|
866
|
+
* OAuth error (`invalid_grant`, `invalid_client`, ...) and `detail` its
|
|
867
|
+
* `error_description`; the message never carries the raw response body.
|
|
868
|
+
*/
|
|
869
|
+
declare class ChatGPTSignInError extends Error {
|
|
870
|
+
readonly reason: string;
|
|
871
|
+
readonly status: number;
|
|
872
|
+
readonly detail: string;
|
|
873
|
+
/** Whether a saved app registration was used, rather than a first registration. */
|
|
874
|
+
returning: boolean;
|
|
875
|
+
/** Whether this was the second refusal, after the one automatic retry. */
|
|
876
|
+
retried: boolean;
|
|
877
|
+
/** Milliseconds from the browser callback to the token endpoint's answer. */
|
|
878
|
+
callbackToExchangeMs?: number;
|
|
879
|
+
constructor(reason: string, status: number, detail?: string);
|
|
880
|
+
}
|
|
864
881
|
interface ChatGPTLoginOptions {
|
|
865
882
|
/** Defaults to `~/.gg/openai-host-id`. */
|
|
866
883
|
hostIdFile?: string;
|
|
@@ -868,6 +885,8 @@ interface ChatGPTLoginOptions {
|
|
|
868
885
|
registrationFile?: string;
|
|
869
886
|
/** The current sign-in, if any: its ID token skips the account picker. */
|
|
870
887
|
previous?: Pick<OAuthCredentials, "idToken">;
|
|
888
|
+
/** Aborting closes the callback listener at once and rejects with an `AbortError`. */
|
|
889
|
+
signal?: AbortSignal;
|
|
871
890
|
}
|
|
872
891
|
/** This machine's stable `ext_agent_host_id`, created on first use. */
|
|
873
892
|
declare function getChatGPTHostId(file?: string): Promise<string>;
|
|
@@ -875,7 +894,8 @@ declare function getChatGPTHostId(file?: string): Promise<string>;
|
|
|
875
894
|
* Continue with ChatGPT. Registers GG Coder for this ChatGPT account on first
|
|
876
895
|
* use (the user names and approves it in the browser), then reuses the issued
|
|
877
896
|
* client ID. Throws {@link ChatGPTPlanNotEnabledError} when the user signed in
|
|
878
|
-
* but didn't allow plan use
|
|
897
|
+
* but didn't allow plan use, and {@link ChatGPTSignInError} when OpenAI refuses
|
|
898
|
+
* the one-time code twice.
|
|
879
899
|
*/
|
|
880
900
|
declare function loginChatGPT(callbacks: OAuthLoginCallbacks, options?: ChatGPTLoginOptions): Promise<OAuthCredentials>;
|
|
881
901
|
/**
|
|
@@ -1081,4 +1101,4 @@ interface AutoUpdater {
|
|
|
1081
1101
|
}
|
|
1082
1102
|
declare function createAutoUpdater(config: AutoUpdateConfig): AutoUpdater;
|
|
1083
1103
|
|
|
1084
|
-
export { AUTH_PROVIDERS, type ApiKeyVariant, type AuthMethod, type AuthMethodMeta, type AuthProviderMeta, AuthStorage, type AutoUpdateConfig, type AutoUpdater, CHATGPT_PLAN_BASE_URL, CHATGPT_PLAN_NOT_ENABLED_MESSAGE, CHATGPT_PLAN_SCOPE, CHATGPT_USAGE_URL, CLAUDE_CODE_AUTH_KEY, CLAUDE_CODE_AUTH_MARKER, CLAUDE_CODE_MANIFEST, type ChatGPTLoginOptions, ChatGPTPlanNotEnabledError, type ClaudeCodeAuthStatus, type ClaudeCodeInstallProgress, type ClaudeCodeManifest, type ClaudeCodePlatformAsset, type ClaudeCodeRateLimitInfo, type ClaudeCodeRunOptions, type ClaudeCodeRuntimeOptions, type ClaudeCodeSignInOptions, DEFAULT_LOCAL_ENDPOINTS, type DiscoverOptions, type DiscoveryResult, type DualAuthProvider, type EnsureClaudeCodeOptions, FALLBACK_CONTEXT_WINDOW, type FetchedSubscriptionUsageProvider, GEMINI_API_KEY, GEMINI_API_KEY_BASE_URL, type InlineButton, KIMI_CODE_DEFAULT_BASE_URL, KIMI_CODE_KEY, KIMI_CODE_OVERSEAS_BASE_URL, LOCAL_API_KEY_PLACEHOLDER, LOCAL_AUTH_KEY_PREFIX, type LocalEndpoint, type LocalEndpointKind, type LocalEndpointProbe, type LocalModel, type LogLevel, MINIMAX_CN_BASE_URL, MINIMAX_GLOBAL_BASE_URL, ModelInfo, NotLoggedInError, type OAuthCredentials, type OAuthLoginCallbacks, OPENAI_CHATGPT_KEY, OPENCODE_CATALOG_URLS, OPENCODE_PROVIDERS, OPENROUTER_DEFAULT_BASE_URL, type OpenCodeProvider, PLAN_MODE_THINKING_CAP, type ParsedOpenCodeCatalog, type ParsedOpenRouterCatalog, type ProbeOptions, type ProgressCallback, RETIRED_SIGN_INS, type RetiredSignIn, SubscriptionUsageError, type SubscriptionUsageProvider, type SubscriptionUsageSnapshot, type SubscriptionUsageWindow, TelegramBot, type TelegramConfig, type TelegramMessage, type TelegramUpdate, type TelegramVoiceMessage, XIAOMI_CREDITS_KEY, XIAOMI_TOKEN_PLAN_BASE_URLS, apiKeyStorageKeys, authPriorityNote, clampThinkingForPlanMode, claudeCodeAuthStatus, claudeCodeBinaryPath, claudeCodeCallbackUrl, claudeCodeConfigDir, claudeCodeEnv, claudeCodeHome, claudeCodePlatformKey, clearClaudeCodeUsage, clearLocalDiscoveryCache, closeLogger, createAutoUpdater, decodeOggOpus, describeAuthMethods, detectKimiCodeBaseUrl, detectMiniMaxBaseUrl, detectXiaomiTokenPlanBaseUrl, discoverLocalModels, downmixToMono, dualAuthProvider, dualAuthProviderByOAuthKey, endpointRoot, ensureClaudeCodeBinary, fetchChatGPTPlanModels, fetchSubscriptionUsage, findProbedModel, formatClaudeCodeInstallProgress, formatLocalModelId, formatOpenCodeModelId, generatePKCE, getAuthProvider, getChatGPTHostId, getLowestThinkingLevel, getNextThinkingLevel, getSessionId, getSupportedThinkingLevels, isClaudeCodeAuthMarker, isKimiCodingEndpoint, isLegacyClaudeOAuth, isLocalModelId, isLoggerOpen, isModelLoaded, isThinkingLevelSupported, localAuthStorageKey, localModelShortName, log, loginChatGPT, loginClaudeCode, logoutClaudeCode, mergeClaudeCodeRateLimit, oauthStorageKey, ollamaServedContext, openLog, parseCallbackInput, parseLocalModelId, parseOpenCodeCatalog, parseOpenRouterCatalog, probeEndpoint, providerStorageKeys, readClaudeCodeUsage, readStoredBaseUrlSync, recordClaudeCodeRateLimit, refreshChatGPTToken, registerLogCleanup, requiredKeyLabel, resample, resolveClaudeCodeBinary, revokeChatGPTSignIn, setProgressCallback, signInWithClaudeCode, signOutOfClaudeCode, storageKeyProvider, toModelInfo, transcribeVoice, verifyIdToken, withFileLock };
|
|
1104
|
+
export { AUTH_PROVIDERS, type ApiKeyVariant, type AuthMethod, type AuthMethodMeta, type AuthProviderMeta, AuthStorage, type AutoUpdateConfig, type AutoUpdater, CHATGPT_PLAN_BASE_URL, CHATGPT_PLAN_NOT_ENABLED_MESSAGE, CHATGPT_PLAN_SCOPE, CHATGPT_USAGE_URL, CLAUDE_CODE_AUTH_KEY, CLAUDE_CODE_AUTH_MARKER, CLAUDE_CODE_MANIFEST, type ChatGPTLoginOptions, ChatGPTPlanNotEnabledError, ChatGPTSignInError, type ClaudeCodeAuthStatus, type ClaudeCodeInstallProgress, type ClaudeCodeManifest, type ClaudeCodePlatformAsset, type ClaudeCodeRateLimitInfo, type ClaudeCodeRunOptions, type ClaudeCodeRuntimeOptions, type ClaudeCodeSignInOptions, DEFAULT_LOCAL_ENDPOINTS, type DiscoverOptions, type DiscoveryResult, type DualAuthProvider, type EnsureClaudeCodeOptions, FALLBACK_CONTEXT_WINDOW, type FetchedSubscriptionUsageProvider, GEMINI_API_KEY, GEMINI_API_KEY_BASE_URL, type InlineButton, KIMI_CODE_DEFAULT_BASE_URL, KIMI_CODE_KEY, KIMI_CODE_OVERSEAS_BASE_URL, LOCAL_API_KEY_PLACEHOLDER, LOCAL_AUTH_KEY_PREFIX, type LocalEndpoint, type LocalEndpointKind, type LocalEndpointProbe, type LocalModel, type LogLevel, MINIMAX_CN_BASE_URL, MINIMAX_GLOBAL_BASE_URL, ModelInfo, NotLoggedInError, type OAuthCredentials, type OAuthLoginCallbacks, OPENAI_CHATGPT_KEY, OPENCODE_CATALOG_URLS, OPENCODE_PROVIDERS, OPENROUTER_DEFAULT_BASE_URL, type OpenCodeProvider, PLAN_MODE_THINKING_CAP, type ParsedOpenCodeCatalog, type ParsedOpenRouterCatalog, type ProbeOptions, type ProgressCallback, RETIRED_SIGN_INS, type RetiredSignIn, SubscriptionUsageError, type SubscriptionUsageProvider, type SubscriptionUsageSnapshot, type SubscriptionUsageWindow, TelegramBot, type TelegramConfig, type TelegramMessage, type TelegramUpdate, type TelegramVoiceMessage, XIAOMI_CREDITS_KEY, XIAOMI_TOKEN_PLAN_BASE_URLS, apiKeyStorageKeys, authPriorityNote, clampThinkingForPlanMode, claudeCodeAuthStatus, claudeCodeBinaryPath, claudeCodeCallbackUrl, claudeCodeConfigDir, claudeCodeEnv, claudeCodeHome, claudeCodePlatformKey, clearClaudeCodeUsage, clearLocalDiscoveryCache, closeLogger, createAutoUpdater, decodeOggOpus, describeAuthMethods, detectKimiCodeBaseUrl, detectMiniMaxBaseUrl, detectXiaomiTokenPlanBaseUrl, discoverLocalModels, downmixToMono, dualAuthProvider, dualAuthProviderByOAuthKey, endpointRoot, ensureClaudeCodeBinary, fetchChatGPTPlanModels, fetchSubscriptionUsage, findProbedModel, formatClaudeCodeInstallProgress, formatLocalModelId, formatOpenCodeModelId, generatePKCE, getAuthProvider, getChatGPTHostId, getLowestThinkingLevel, getNextThinkingLevel, getSessionId, getSupportedThinkingLevels, isClaudeCodeAuthMarker, isKimiCodingEndpoint, isLegacyClaudeOAuth, isLocalModelId, isLoggerOpen, isModelLoaded, isThinkingLevelSupported, localAuthStorageKey, localModelShortName, log, loginChatGPT, loginClaudeCode, logoutClaudeCode, mergeClaudeCodeRateLimit, oauthStorageKey, ollamaServedContext, openLog, parseCallbackInput, parseLocalModelId, parseOpenCodeCatalog, parseOpenRouterCatalog, probeEndpoint, providerStorageKeys, readClaudeCodeUsage, readStoredBaseUrlSync, recordClaudeCodeRateLimit, refreshChatGPTToken, registerLogCleanup, requiredKeyLabel, resample, resolveClaudeCodeBinary, revokeChatGPTSignIn, setProgressCallback, signInWithClaudeCode, signOutOfClaudeCode, storageKeyProvider, toModelInfo, transcribeVoice, verifyIdToken, withFileLock };
|
package/dist/index.js
CHANGED
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
CLAUDE_CODE_AUTH_MARKER,
|
|
9
9
|
CLAUDE_CODE_MANIFEST,
|
|
10
10
|
ChatGPTPlanNotEnabledError,
|
|
11
|
+
ChatGPTSignInError,
|
|
11
12
|
DEFAULT_MAX_VIDEO_BYTES,
|
|
12
13
|
GEMINI_API_KEY,
|
|
13
14
|
GEMINI_API_KEY_BASE_URL,
|
|
@@ -85,7 +86,7 @@ import {
|
|
|
85
86
|
verifyIdToken,
|
|
86
87
|
withFileLock,
|
|
87
88
|
withoutPaidTier
|
|
88
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-E76ARVZJ.js";
|
|
89
90
|
import {
|
|
90
91
|
getAppPaths
|
|
91
92
|
} from "./chunk-GXOFTHM5.js";
|
|
@@ -1681,6 +1682,7 @@ export {
|
|
|
1681
1682
|
CLAUDE_CODE_AUTH_MARKER,
|
|
1682
1683
|
CLAUDE_CODE_MANIFEST,
|
|
1683
1684
|
ChatGPTPlanNotEnabledError,
|
|
1685
|
+
ChatGPTSignInError,
|
|
1684
1686
|
DEFAULT_LOCAL_ENDPOINTS,
|
|
1685
1687
|
DEFAULT_MAX_VIDEO_BYTES,
|
|
1686
1688
|
FALLBACK_CONTEXT_WINDOW,
|