MCPcopy Create free account

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

Functions794 in github.com/Quorinex/Kiro-Go

↓ 2 callersMethodAvailableCount
AvailableCount 返回可用账号数
pool/account.go:415
↓ 2 callersFunctionDeleteApiKey
DeleteApiKey removes the API key entry with the given ID. Returns nil even if the ID is unknown (idempotent), matching the existing DeleteAccount styl
config/apikeys.go:117
↓ 2 callersMethodGetAllAccounts
GetAllAccounts 获取所有账号副本
pool/account.go:471
↓ 2 callersMethodGetByID
GetByID 根据 ID 获取账号
pool/account.go:259
↓ 2 callersFunctionGetEnabledAccounts
()
config/config.go:408
↓ 2 callersFunctionGetEndpointFallback
GetEndpointFallback returns whether endpoint fallback is enabled. Defaults to true.
config/config.go:790
↓ 2 callersFunctionGetHost
()
config/config.go:391
↓ 2 callersMethodGetModelList
GetModelList 返回该账号缓存的模型 ID 列表(供 admin API 使用)。 若尚无缓存则返回空切片。
pool/account.go:157
↓ 2 callersMethodGetNextExcluding
GetNextExcluding 获取下一个可用账号(加权轮询),并跳过指定账号。
pool/account.go:74
↓ 2 callersFunctionGetOIDCTokenURLForTest
GetOIDCTokenURLForTest returns the current OIDC token URL builder so tests can restore it after replacement.
auth/testhooks.go:15
↓ 2 callersFunctionGetPool
GetPool 获取全局账号池单例
pool/account.go:32
↓ 2 callersFunctionGetPort
()
config/config.go:382
↓ 2 callersFunctionGetPreferredEndpoint
GetPreferredEndpoint 获取首选端点配置
config/config.go:772
↓ 2 callersFunctionGetPromptFilterConfig
GetPromptFilterConfig returns all prompt filter settings.
config/config.go:685
↓ 2 callersFunctionHasApiKeys
HasApiKeys returns true when at least one API key entry is configured.
config/apikeys.go:150
↓ 2 callersFunctionInitHttpClient
InitHttpClient 初始化(或重新初始化)auth 模块的全局 HTTP 客户端
auth/http_client.go:65
↓ 2 callersFunctionKiroToClaudeResponse
==================== Kiro -> Claude 转换 ====================
proxy/translator.go:932
↓ 2 callersFunctionMapModel
(model string)
proxy/translator.go:115
↓ 2 callersFunctionMaskApiKey
MaskApiKey produces a display-friendly masked version: keeps first 6 and last 4 characters, replaces the middle with "****". Returns "" for empty inpu
config/apikeys.go:212
↓ 2 callersFunctionResetApiKeyUsage
ResetApiKeyUsage clears TokensUsed/CreditsUsed/RequestsCount for the entry. LastUsedAt is preserved so operators can still see when the key was last u
config/apikeys.go:185
↓ 2 callersMethodServeHTTP
ServeHTTP 路由分发
proxy/handler.go:357
↓ 2 callersFunctionUpdateAllowOverUsage
UpdateAllowOverUsage sets the over-usage setting and persists the change.
config/config.go:833
↓ 2 callersFunctionUpdateApiKey
UpdateApiKey applies a patch to an existing API key. Patch semantics: - Name, Key are overwritten when non-empty in patch. - Enabled, TokenLimit, Cred
config/apikeys.go:77
↓ 2 callersFunctionUpdateStats
(totalReq, successReq, failedReq, totalTokens int, totalCredits float64)
config/config.go:580
↓ 2 callersMethodaccountHasModel
accountHasModel 检查账号是否支持指定模型。 若该账号尚无模型列表(冷启动),视为支持所有模型。
pool/account.go:173
↓ 2 callersFunctionaddPromptRule
(type)
web/app.js:2013
↓ 2 callersMethodappendRequestLog
(entry RequestLog)
proxy/handler.go:1399
↓ 2 callersFunctionapplyKiroBaseHeaders
(req *http.Request, account *config.Account, values kiroHeaderValues)
proxy/kiro_headers.go:58
↓ 2 callersFunctionapplyProxyConfig
applyProxyConfig 将代理配置应用到所有出站 HTTP 客户端(Kiro API + auth 模块)
proxy/handler.go:3529
↓ 2 callersFunctionapplyTranslations
()
web/app.js:113
↓ 2 callersFunctionassertProxyURL
(t *testing.T, got *url.URL, want string)
auth/http_client_test.go:44
↓ 2 callersFunctionassertProxyURL
(t *testing.T, got *url.URL, want string)
proxy/kiro_test.go:237
↓ 2 callersFunctionauthOidcURL
authOidcURL captures the current oidc URL builder so the test can restore it.
proxy/import_credentials_test.go:139
↓ 2 callersMethodauthenticateForClaude
authenticateForClaude runs authenticate and writes a Claude-style error on failure. Returns the request with the matched API key injected into context
proxy/handler.go:329
↓ 2 callersMethodauthenticateForOpenAI
authenticateForOpenAI runs authenticate and writes an OpenAI-style error on failure.
proxy/handler.go:343
↓ 2 callersFunctionbilledClaudeInputTokens
(inputTokens int, usage promptCacheUsage)
proxy/cache_tracker.go:509
↓ 2 callersFunctionbuildAnthropicModelsResponse
(cached []ModelInfo, thinkingSuffix string)
proxy/handler.go:497
↓ 2 callersFunctionbuildConversationID
(modelID, systemPrompt, anchor string)
proxy/translator.go:1818
↓ 2 callersFunctionbuildKiroHeaderValues
(account *config.Account, host, apiName, sdkVersion, mode string)
proxy/kiro_headers.go:28
↓ 2 callersFunctionbuildMessageFromInputItem
(obj map[string]interface{}, role string)
proxy/responses_input.go:153
↓ 2 callersFunctionbuildModelsGroupedHtml
(models, thinkingSuffix)
web/app.js:3022
↓ 2 callersFunctionbuildResponsesObject
( id, model, content string, toolUses []KiroToolUse, inputTokens, outputTokens int, req *ResponsesRequest, )
proxy/responses_handler.go:217
↓ 2 callersFunctionbuildRuntimeHeaderValues
(account *config.Account, host string)
proxy/kiro_headers.go:24
↓ 2 callersFunctionbuildStreamingHeaderValues
(account *config.Account, host string)
proxy/kiro_headers.go:20
↓ 2 callersFunctionbuildToolResultsContinuation
(toolResults []KiroToolResult)
proxy/translator.go:1745
↓ 2 callersFunctioncheckUpdate
(manual)
web/app.js:2601
↓ 2 callersFunctionchooseCustomSelectOption
(select, index)
web/app.js:230
↓ 2 callersFunctionclearActivePassword
()
web/app.js:587
↓ 2 callersFunctioncloneSchemaMap
(m map[string]interface{})
proxy/translator.go:817
↓ 2 callersFunctioncloseApiKeyModal
()
web/app.js:1792
↓ 2 callersFunctioncollapseBlankLines
collapseBlankLines reduces runs of consecutive blank lines to a single blank line.
proxy/translator.go:510
↓ 2 callersFunctioncollectToolResultIDs
collectToolResultIDs returns the set of toolUseId values referenced by the given tool results.
proxy/translator.go:1375
↓ 2 callersFunctioncomputePromptCacheTTLBreakdown
(profile *promptCacheProfile, matchedTokens int)
proxy/cache_tracker.go:485
↓ 2 callersFunctioncurrentToolResultsMatchLastAssistant
currentToolResultsMatchLastAssistant reports whether the current message's tool results answer the structured tool calls of the final history assistan
proxy/translator.go:1391
↓ 2 callersMethoddisableAccount
(account *config.Account, banStatus, banReason string)
proxy/account_failover.go:48
↓ 2 callersFunctionensureRestProfileArn
(account *config.Account)
proxy/kiro_api.go:292
↓ 2 callersFunctionestimateClaudeValueTokens
(v interface{})
proxy/token_estimator.go:81
↓ 2 callersFunctionestimateOpenAIRequestInputTokens
(req *OpenAIRequest)
proxy/token_estimator.go:154
↓ 2 callersFunctionextractOpenAITextPart
(part map[string]interface{})
proxy/translator.go:1841
↓ 2 callersFunctionextractPromptCacheTTL
(value interface{})
proxy/cache_tracker.go:409
↓ 2 callersFunctionextractSystemPrompt
(system interface{})
proxy/translator.go:599
↓ 2 callersFunctionfirstStringField
(m map[string]interface{}, keys ...string)
proxy/kiro.go:780
↓ 2 callersFunctionfocusDialog
(modal)
web/app.js:483
↓ 2 callersFunctionfocusSiblingCustomOption
(current, dir)
web/app.js:241
↓ 2 callersFunctiongetCustomSelectLabel
(select)
web/app.js:146
↓ 2 callersFunctiongetModalFocusable
(modal)
web/app.js:468
↓ 2 callersFunctiongetTestModelValue
()
web/app.js:1401
↓ 2 callersMethodhandleClaudeNonStream
handleClaudeNonStream Claude 非流式响应
proxy/handler.go:1444
↓ 2 callersFunctionhasStatusToken
hasStatusToken returns true when status appears in s with non-digit boundaries on both sides, so "401" matches "HTTP 401 from ..." but not "request_40
pool/account.go:324
↓ 2 callersFunctionhistoryEntryByteSize
historyEntryByteSize returns the serialized size of a single history entry, including the surrounding JSON array delimiter overhead (1 byte for the co
proxy/translator.go:1696
↓ 2 callersFunctioninstallCleanAuthClient
installCleanAuthClient replaces the global auth HTTP client with one whose Transport does not consult http.ProxyFromEnvironment — that function caches
proxy/import_credentials_test.go:21
↓ 2 callersFunctionisAuthErrorMessage
(msg string)
proxy/account_failover.go:34
↓ 2 callersFunctionisDigit
(b byte)
pool/account.go:340
↓ 2 callersFunctionisOverageErrorMessage
(msg string)
proxy/account_failover.go:17
↓ 2 callersFunctionisProfileArnResolutionSkippedError
(err error)
proxy/kiro_api.go:280
↓ 2 callersFunctionisProfileArnResolutionSoftError
(err error)
proxy/kiro_api.go:288
↓ 2 callersFunctionisProfileArnResolutionSuppressed
(account *config.Account)
proxy/kiro_api.go:263
↓ 2 callersFunctionisProfileArnResolutionUnsupportedError
(err error)
proxy/kiro_api.go:284
↓ 2 callersFunctionisProfileUnavailableErrorMessage
(msg string)
proxy/account_failover.go:29
↓ 2 callersFunctionisQuotaErrorMessage
(msg string)
proxy/account_failover.go:12
↓ 2 callersFunctionisSuspensionErrorMessage
(msg string)
proxy/account_failover.go:22
↓ 2 callersFunctionkiroRegionForProfile
(account *config.Account, profileArn string)
proxy/kiro_api.go:39
↓ 2 callersFunctionlabelCustomSelect
(select, trigger, content, id)
web/app.js:253
↓ 2 callersFunctionloadData
()
web/app.js:662
↓ 2 callersFunctionloadLocalFile
(input, targetId)
web/app.js:2228
↓ 2 callersFunctionloadVersion
()
web/app.js:2572
↓ 2 callersFunctionlogResponsesPersistFailure
(id string, err error)
proxy/responses_store.go:144
↓ 2 callersFunctionmaskEmail
(email)
web/app.js:422
↓ 2 callersFunctionmaxInt
(a, b int)
proxy/cache_tracker.go:616
↓ 2 callersFunctionminCacheableTokensForModel
(model string)
proxy/cache_tracker.go:42
↓ 2 callersFunctionmodelSupportsImage
(inputTypes []string)
proxy/handler.go:533
↓ 2 callersFunctionmustParseURL
(t *testing.T, raw string)
auth/http_client_test.go:35
↓ 2 callersFunctionmustParseURL
(t *testing.T, raw string)
proxy/kiro_test.go:228
↓ 2 callersFunctionmustTool
(t *testing.T, s string)
proxy/openai_tool_format_test.go:67
↓ 2 callersFunctionnewPollToolCall
(id, name, args string)
proxy/tool_narration_pollution_test.go:70
↓ 2 callersFunctionnewUUID
newUUID returns a UUID v4 string. Defined here to avoid pulling extra deps in this file.
config/config.go:330
↓ 2 callersFunctionnormalizePromptCacheTTL
(ttl time.Duration)
proxy/cache_tracker.go:472
↓ 2 callersFunctionnormalizeToolDesc
(desc, name string)
proxy/translator.go:876
↓ 2 callersFunctionopenApiKeyModal
(entry)
web/app.js:1771
↓ 2 callersFunctionplaceCustomSelectContent
(select)
web/app.js:184
← previousnext →201–300 of 794, ranked by callers