MCPcopy Create free account

hub / github.com/Quorinex/Kiro-Go / functions

Functions794 in github.com/Quorinex/Kiro-Go

↓ 5 callersFunctionautoRefreshNewAccount
(id)
web/app.js:2465
↓ 5 callersFunctioncloneClaudeRequestForThinking
(req *ClaudeRequest, thinking bool)
proxy/translator.go:528
↓ 5 callersFunctioncloseConfirm
(value)
web/app.js:544
↓ 5 callersFunctiongenerateOutputItemID
(prefix string)
proxy/responses_store.go:33
↓ 5 callersFunctiongetDisplayEmail
(email, id)
web/app.js:436
↓ 5 callersFunctionisQuotaBlocked
isQuotaBlocked reports whether an over-quota account should be skipped: the per-account upstream Overages switch (OverageStatus=ENABLED) and the globa
pool/account.go:486
↓ 5 callersFunctionloadResponse
(id string)
proxy/responses_store.go:84
↓ 5 callersFunctionmustRaw
(s string)
proxy/responses_parallel_test.go:50
↓ 5 callersFunctionpad
web/app.js:695
↓ 5 callersFunctionrenderAccounts
()
web/app.js:929
↓ 5 callersFunctionrenderEndpointCode
(id, value)
web/app.js:78
↓ 5 callersFunctionrenderPromptRules
()
web/app.js:1979
↓ 5 callersFunctionsetCustomSelectOpen
(select, open)
web/app.js:203
↓ 5 callersFunctiontoApiKeyView
(e config.ApiKeyEntry)
proxy/admin_apikeys.go:26
↓ 5 callersFunctionupdateBatchBar
()
web/app.js:831
↓ 4 callersMethodCount
Count 返回账号总数
pool/account.go:400
↓ 4 callersFunctionGetAllowOverUsage
GetAllowOverUsage returns whether over-usage is allowed when account quota is exhausted.
config/config.go:823
↓ 4 callersFunctionGetApiKey
()
config/config.go:542
↓ 4 callersFunctionGetProxyURL
GetProxyURL 获取出站代理地址
config/config.go:808
↓ 4 callersFunctionGetUserInfo
GetUserInfo 获取用户信息
auth/sso_token.go:304
↓ 4 callersFunctionIsApiKeyRequired
()
config/config.go:548
↓ 4 callersMethodRecordError
RecordError 记录请求错误,设置冷却
pool/account.go:279
↓ 4 callersFunctionSetGlobalAuthClientForTest
SetGlobalAuthClientForTest swaps the global auth HTTP client. The package's init() installs a client whose Transport calls http.ProxyFromEnvironment,
auth/testhooks.go:24
↓ 4 callersFunctionUpdateAccountToken
(id, accessToken, refreshToken string, expiresAt int64)
config/config.go:526
↓ 4 callersFunctionUpdateSettingsPatch
(apiKey *string, requireApiKey *bool, password string)
config/config.go:565
↓ 4 callersMethodUpdateToken
UpdateToken 更新账号 Token
pool/account.go:385
↓ 4 callersFunctionaccountEmailForLog
(account *config.Account)
proxy/kiro.go:407
↓ 4 callersFunctionaddTestLog
(msg, type)
web/app.js:1420
↓ 4 callersFunctionapplyTheme
(pref)
web/app.js:386
↓ 4 callersFunctionbaseSvg
()
web/toast.js:26
↓ 4 callersFunctionbindDialogBackdropClose
(id, closeFn)
web/app.js:532
↓ 4 callersFunctionbuildAuthTransport
buildAuthTransport 构建带可选代理的 Transport
auth/http_client.go:45
↓ 4 callersFunctionenabled
(l Level)
logger/logger.go:105
↓ 4 callersFunctionenhanceCustomSelects
(root)
web/app.js:329
↓ 4 callersFunctionestimateClaudeRequestInputTokens
(req *ClaudeRequest)
proxy/token_estimator.go:49
↓ 4 callersFunctionextractOpenAIUserContent
(content interface{})
proxy/translator.go:1287
↓ 4 callersMethodfetchAndCacheAccountModels
fetchAndCacheAccountModels 为单个账号拉取并写入模型缓存。 同时更新 pool 的路由缓存与全局聚合模型列表。
proxy/handler.go:618
↓ 4 callersFunctionfinishToolUse
(state *toolUseState, callback *KiroStreamCallback)
proxy/kiro.go:759
↓ 4 callersFunctionformatAuthMethod
(method)
web/app.js:879
↓ 4 callersFunctiongetThemePref
()
web/app.js:398
↓ 4 callersMethodhandleOpenAIResponses
(w http.ResponseWriter, r *http.Request)
proxy/responses_handler.go:15
↓ 4 callersFunctionhandleToolUseEvent
(event map[string]interface{}, current *toolUseState, callback *KiroStreamCallback)
proxy/kiro.go:717
↓ 4 callersFunctionmergeUniqueModels
(existing []ModelInfo, incoming []ModelInfo)
proxy/handler.go:690
↓ 4 callersFunctionparseEventStream
==================== Event Stream Parsing ==================== parseEventStream decodes an AWS binary Event Stream response body.
proxy/kiro.go:417
↓ 4 callersFunctionparseResponsesInput
(raw json.RawMessage)
proxy/responses_input.go:9
↓ 4 callersFunctionpayloadByteSize
payloadByteSize returns the serialized size of the payload in bytes.
proxy/translator.go:1714
↓ 4 callersMethodrefreshModelsCache
refreshModelsCache 从 Kiro API 拉取模型列表并缓存
proxy/handler.go:577
↓ 4 callersFunctionsanitizeKiroHistory
sanitizeKiroHistory flattens structured tool calls/results inside history into plain text, leaving at most one active structured tool turn intact: the
proxy/translator.go:1490
↓ 4 callersFunctionschemaContainsKey
(value interface{}, key string)
proxy/translator_test.go:381
↓ 4 callersFunctionshowModal
(type)
web/app.js:2038
↓ 4 callersFunctionstripCachePositionKeys
(value map[string]interface{})
proxy/cache_tracker.go:378
↓ 3 callersFunctionErrorf
Errorf logs a formatted message at ERROR level.
logger/logger.go:131
↓ 3 callersFunctionFetchOverageStatus
FetchOverageStatus calls AWS Q `GET /getUsageLimits` and extracts the Overages switch state plus subscription metadata.
proxy/kiro_overage.go:51
↓ 3 callersFunctionFindApiKeyByValue
FindApiKeyByValue returns a copy of the entry whose Key matches the given value, or nil if no match. O(n) linear scan.
config/apikeys.go:134
↓ 3 callersFunctionGenerateApiKeyValue
GenerateApiKeyValue returns a new random 32-byte hex API key prefixed with "sk-".
config/apikeys.go:203
↓ 3 callersFunctionGetPassword
()
config/config.go:376
↓ 3 callersFunctionIsAuthFailure
IsAuthFailure reports whether an error indicates the refresh token / credentials have been revoked or invalidated upstream (401, 403 with auth markers
pool/account.go:297
↓ 3 callersFunctionIsSuspensionError
IsSuspensionError reports whether the error indicates the account has been temporarily suspended by upstream or has no available Kiro profile. Unlike
pool/account.go:348
↓ 3 callersFunctionListAvailableModels
ListAvailableModels 获取可用模型列表
proxy/kiro_api.go:142
↓ 3 callersFunctionPersistOverageSnapshot
PersistOverageSnapshot writes a snapshot back to config.json for an account. Returns the persist error if any (caller decides whether to surface it).
proxy/kiro_overage.go:172
↓ 3 callersFunctionUpdateAccountInfo
UpdateAccountInfo updates an account's subscription and usage information. Called after refreshing account data from Kiro API.
config/config.go:615
↓ 3 callersFunctionUpdateEndpointFallback
UpdateEndpointFallback sets the endpoint fallback switch and persists the change.
config/config.go:800
↓ 3 callersFunctionUpdatePreferredEndpoint
UpdatePreferredEndpoint 更新首选端点配置
config/config.go:782
↓ 3 callersFunctionUpdateSettings
(apiKey string, requireApiKey bool, password string)
config/config.go:554
↓ 3 callersMethodapiImportCredentials
(w http.ResponseWriter, r *http.Request)
proxy/handler.go:2889
↓ 3 callersFunctionapiKeyIDFromContext
apiKeyIDFromContext returns the matched API key ID stored in ctx, or empty string.
proxy/auth.go:105
↓ 3 callersFunctionbuildClaudeUsageMap
(inputTokens, outputTokens int, usage promptCacheUsage, includeCache bool)
proxy/cache_tracker.go:513
↓ 3 callersFunctionclearProfileArnResolutionCooldowns
()
proxy/kiro_api_test.go:285
↓ 3 callersFunctioncloseAllCustomSelects
(except)
web/app.js:225
↓ 3 callersFunctionconvertOpenAITools
(tools []OpenAITool)
proxy/translator.go:1994
↓ 3 callersFunctionconvertResponsesInputItems
(items []json.RawMessage)
proxy/responses_input.go:45
↓ 3 callersFunctionensureObjectSchema
ensureObjectSchema 确保工具 schema 顶层是 object,并清理 Kiro 不接受的字段。
proxy/translator.go:804
↓ 3 callersFunctionestimateClaudeOutputTokens
(content, thinkingContent string, toolUses []KiroToolUse)
proxy/token_estimator.go:69
↓ 3 callersFunctionestimateOpenAIOutputTokens
(content, reasoningContent string, toolUses []KiroToolUse)
proxy/token_estimator.go:194
↓ 3 callersFunctionexpandPreviousResponseHistory
expandPreviousResponseHistory rebuilds the conversation history that led up to prev. It walks the previous_response_id chain backwards (oldest → newes
proxy/responses_history.go:17
↓ 3 callersFunctionextractClaudeUserContent
(content interface{})
proxy/translator.go:620
↓ 3 callersFunctionextractImageFromClaudeBlock
(block map[string]interface{})
proxy/translator.go:667
↓ 3 callersFunctionextractImageFromOpenAIPart
(part map[string]interface{})
proxy/translator.go:1857
↓ 3 callersMethodgetCredits
getCredits 线程安全获取 credits
proxy/handler.go:1324
↓ 3 callersFunctiongetExportData
()
web/app.js:2522
↓ 3 callersFunctiongetFilteredAccounts
()
web/app.js:802
↓ 3 callersFunctionloadLocale
(lang)
web/app.js:96
↓ 3 callersFunctionloadLogs
()
web/app.js:709
↓ 3 callersFunctionminInt
(a, b int)
proxy/cache_tracker.go:609
↓ 3 callersFunctionputAccount
(id, body, successMsg)
web/app.js:1288
↓ 3 callersFunctionrefreshCustomSelects
(root)
web/app.js:332
↓ 3 callersFunctionregionalizeURLForProfile
(rawURL string, account *config.Account, profileArn string)
proxy/kiro_api.go:63
↓ 3 callersFunctionrenderLogs
(logs)
web/app.js:720
↓ 3 callersFunctionrenderTestLog
()
web/app.js:1405
↓ 3 callersFunctionresolveClaudeThinkingMode
(model string, thinkingCfg *ClaudeThinkingConfig, thinkingSuffix string)
proxy/translator.go:102
↓ 3 callersFunctionresponsesDir
()
proxy/responses_store.go:21
↓ 3 callersFunctionsetPayloadProfileArnForAccount
==================== API Call ====================
proxy/kiro.go:246
↓ 3 callersFunctionsetupResponsesTestHandler
(t *testing.T)
proxy/responses_handler_test.go:260
↓ 3 callersFunctionshowUpdateToast
(status, current, latest)
web/app.js:2624
↓ 3 callersFunctionstringifyArbitrary
(v interface{})
proxy/responses_input.go:209
↓ 3 callersFunctionswapKiroEndpointsForTest
(t *testing.T, server *httptest.Server)
proxy/responses_handler_test.go:290
↓ 3 callersFunctionsyncCustomSelect
(select)
web/app.js:150
↓ 3 callersFunctionvalidateClaudeThinkingConfig
(thinking *ClaudeThinkingConfig, maxTokens int)
proxy/handler.go:123
↓ 3 callersFunctionvalidateOpenAIRequestShape
(req *OpenAIRequest)
proxy/handler.go:192
↓ 2 callersFunctionApiKeyOverLimit
ApiKeyOverLimit returns (overToken, overCredit) for the entry. Limits with value 0 are ignored. The function does not lock; callers should pass a copi
config/apikeys.go:224
← previousnext →101–200 of 794, ranked by callers