MCPcopy Create free account

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

Functions794 in github.com/Quorinex/Kiro-Go

↓ 1 callersFunctionwriteCanonicalJSON
(buf *bytes.Buffer, value interface{})
proxy/cache_tracker.go:536
↓ 1 callersFunctionwriteHashChunk
(hasher hashWriter, chunk string)
proxy/cache_tracker.go:596
FunctionGet
()
config/config.go:370
MethodGetNextForModel
GetNextForModel 获取下一个支持指定模型的可用账号。 model 应为去掉 thinking 后缀的实际模型名。 若无账号有该模型列表数据,行为与 GetNext 相同(乐观路由)。
pool/account.go:184
FunctionGetUserInfo
GetUserInfo 获取用户信息
proxy/kiro_api.go:111
FunctionKiroToOpenAIResponse
==================== Kiro -> OpenAI 转换 ====================
proxy/translator.go:2024
MethodMarkOverLimit
MarkOverLimit marks an account as over usage limit (after a 402 / OVERAGE response). With the upstream OverageStatus model, the live status is refresh
pool/account.go:377
MethodRoundTrip
(req *http.Request)
proxy/kiro_api_test.go:294
FunctionSetAccountEnabled
SetAccountEnabled toggles the enabled state of an account and persists the change. Used to disable accounts whose refresh token has been revoked (401
config/config.go:467
FunctionSetOutput
SetOutput redirects all level outputs to w. Useful for tests.
logger/logger.go:86
FunctionTestAccountAllowOverageMigration
TestAccountAllowOverageMigration verifies that a config.json from before the upstream-Overages-switch refactor (which carried `allowOverage: true` per
config/config_test.go:62
FunctionTestAccountFailureClassifiers
(t *testing.T)
proxy/account_failover_test.go:5
FunctionTestApiImportCredentialsRejectsWhenRefreshFails
TestApiImportCredentialsRejectsWhenRefreshFails verifies the regression: previously, when auth.RefreshToken failed and the user supplied an accessToke
proxy/import_credentials_test.go:35
FunctionTestApiImportCredentialsUsesUpstreamExpiresAt
TestApiImportCredentialsUsesUpstreamExpiresAt verifies the happy path: when refresh succeeds, the persisted ExpiresAt reflects the upstream expiresIn,
proxy/import_credentials_test.go:83
FunctionTestApiKeyCRUD
(t *testing.T)
config/apikeys_test.go:103
FunctionTestApiKeyMigrationFromLegacyField
(t *testing.T)
config/apikeys_test.go:12
FunctionTestApiKeyMigrationPublicDeploymentStaysDisabled
Public deployments (RequireApiKey=false) must not silently start enforcing auth after upgrade. The migrated legacy entry is created disabled so the se
config/apikeys_test.go:67
FunctionTestApiKeyOverLimit
(t *testing.T)
config/apikeys_test.go:245
FunctionTestAuthenticateAcceptsEnabledKey
(t *testing.T)
proxy/apikeys_test.go:86
FunctionTestAuthenticateLegacyFallback
(t *testing.T)
proxy/apikeys_test.go:178
FunctionTestAuthenticateMasterSwitchOffPassesThrough
Public deployments (RequireApiKey=false) must keep accepting all requests even after keys exist in the config — e.g. an operator drafted some keys but
proxy/apikeys_test.go:315
FunctionTestAuthenticateNoAuthRequired
(t *testing.T)
proxy/apikeys_test.go:205
FunctionTestAuthenticateRejectsDisabledKey
(t *testing.T)
proxy/apikeys_test.go:62
FunctionTestAuthenticateRejectsMissingKey
(t *testing.T)
proxy/apikeys_test.go:40
FunctionTestAuthenticateRejectsOverCreditLimit
(t *testing.T)
proxy/apikeys_test.go:147
FunctionTestAuthenticateRejectsOverTokenLimit
(t *testing.T)
proxy/apikeys_test.go:116
FunctionTestAuthenticateRequiredWithoutKeysFailsClosed
When auth is required but no keys are configured, every request must be rejected. Previously the legacy fallback returned (nil,nil) and silently let t
proxy/apikeys_test.go:335
FunctionTestBuildAnthropicModelsResponseGeneratesThinkingVariants
(t *testing.T)
proxy/handler_test.go:464
FunctionTestBuildAuthTransportFallsBackToEnvironmentProxy
(t *testing.T)
auth/http_client_test.go:20
FunctionTestBuildAuthTransportUsesExplicitProxyURL
(t *testing.T)
auth/http_client_test.go:9
FunctionTestBuildClaudeUsageMapIncludesCacheFields
(t *testing.T)
proxy/cache_tracker_test.go:49
FunctionTestBuildKiroTransportFallsBackToEnvironmentProxy
(t *testing.T)
proxy/kiro_test.go:180
FunctionTestBuildKiroTransportUsesExplicitProxyURL
(t *testing.T)
proxy/kiro_test.go:169
FunctionTestBuildRuntimeHeaderValuesUsesRuntimeAPIFormat
(t *testing.T)
proxy/kiro_headers_test.go:30
FunctionTestBuildStreamingHeaderValuesAlignsWithKiroIDEFormat
(t *testing.T)
proxy/kiro_headers_test.go:9
FunctionTestCanonicalCacheValueIgnoresPositionKeys
(t *testing.T)
proxy/cache_tracker_test.go:169
FunctionTestCanonicalCacheValuePreservesSemanticPositionKeys
(t *testing.T)
proxy/cache_tracker_test.go:191
FunctionTestClaudeConversationIDStableFromAnchor
(t *testing.T)
proxy/translator_test.go:205
FunctionTestClaudeNonStreamRetriesNextAccountAfterPreResponseFailure
(t *testing.T)
proxy/handler_test.go:28
FunctionTestClaudeToKiroDropsLeadingAssistantHistory
(t *testing.T)
proxy/translator_test.go:250
FunctionTestClaudeToKiroFlattensHistoryToolCyclesForCompaction
TestClaudeToKiroFlattensHistoryToolCyclesForCompaction reproduces the context compaction scenario that triggered upstream HTTP 400 "Improperly formed
proxy/translator_compaction_test.go:14
FunctionTestClaudeToKiroKeepsActiveToolTurnStructured
TestClaudeToKiroKeepsActiveToolTurnStructured verifies the in-progress tool case still works: the last assistant turn issues a tool_use and the final
proxy/translator_compaction_test.go:100
FunctionTestClaudeToKiroSmallPayloadNotTruncated
TestClaudeToKiroSmallPayloadNotTruncated ensures normal-sized conversations are left untouched (no placeholder inserted).
proxy/translator_truncate_test.go:74
FunctionTestClaudeToKiroTruncatesOversizedHistory
TestClaudeToKiroTruncatesOversizedHistory builds a conversation whose history far exceeds the upstream input limit and verifies the converted payload
proxy/translator_truncate_test.go:13
FunctionTestClaudeToolResultImageAttachedToCurrentMessage
(t *testing.T)
proxy/translator_test.go:474
FunctionTestClaudeToolResultMixedTextAndImage
(t *testing.T)
proxy/translator_test.go:524
FunctionTestCloneClaudeRequestForThinkingInjectsPromptWithoutMutatingOriginal
(t *testing.T)
proxy/handler_test.go:260
FunctionTestCloneClaudeRequestForThinkingPreservesStructuredSystemBlocks
(t *testing.T)
proxy/handler_test.go:284
FunctionTestCollapsesConsecutiveIdenticalToolResults
TestCollapsesConsecutiveIdenticalToolResults covers a client retry loop that sends the same failing tool result many times. After hollow assistant tur
proxy/tool_narration_pollution_test.go:81
FunctionTestConvertOpenAIToolsEmitsNonEmptyNames
TestConvertOpenAIToolsEmitsNonEmptyNames ensures the converter never emits a tool spec with an empty name (Kiro rejects those) and preserves valid nam
proxy/openai_tool_format_test.go:45
FunctionTestConvertOpenAIToolsSanitizesSchemaAndDescription
(t *testing.T)
proxy/translator_test.go:355
FunctionTestDisableAccountSetsCooldown
--------------------------------------------------------------------------- DisableAccount -----------------------------------------------------------
pool/account_test.go:216
FunctionTestDropsDotPollutedAssistantTurns
TestDropsDotPollutedAssistantTurns covers the second-order pollution: after stripping "[Called tool ...]" from assistant turns that held only that tex
proxy/tool_narration_pollution_test.go:112
FunctionTestEnsureObjectSchemaRemovesKiroRejectedFieldsRecursively
(t *testing.T)
proxy/translator_test.go:315
FunctionTestExtractOpenAIMessageTextStructured
(t *testing.T)
proxy/translator_test.go:8
FunctionTestGenerateApiKeyValueIsUnique
(t *testing.T)
config/apikeys_test.go:286
FunctionTestGetContextWindowSize
TestGetContextWindowSize verifies models are classified into the correct context window. This drives the input-token count that clients use to decide
proxy/context_window_test.go:9
FunctionTestGetNextExcludingSkipsExcludedAccount
(t *testing.T)
pool/account_test.go:240
FunctionTestGetNextForModelExcludingReturnsNilOnEmptyPool
(t *testing.T)
pool/account_test.go:204
FunctionTestGetNextForModelExcludingReturnsNilWhenAllExcluded
(t *testing.T)
pool/account_test.go:196
FunctionTestGetNextForModelExcludingSkipsExcludedAccount
(t *testing.T)
pool/account_test.go:258
FunctionTestGetNextForModelExcludingSkipsExcludedAccounts
(t *testing.T)
pool/account_test.go:179
FunctionTestGetNextKeepsFiveMinuteTokenAvailable
(t *testing.T)
pool/account_test.go:65
FunctionTestHandleToolUseEventGeneratesMissingToolUseID
(t *testing.T)
proxy/kiro_test.go:110
FunctionTestHandleToolUseEventReplacesGeneratedIDWhenRealIDArrives
(t *testing.T)
proxy/kiro_test.go:136
FunctionTestInitKiroHttpClientKeepsShortRestTimeout
(t *testing.T)
proxy/kiro_test.go:195
FunctionTestIsAuthFailureIgnoresFalsePositives
(t *testing.T)
pool/account_test.go:106
FunctionTestIsAuthFailureNilError
(t *testing.T)
pool/account_test.go:122
FunctionTestIsAuthFailureRecognizes401And403
--------------------------------------------------------------------------- IsAuthFailure ------------------------------------------------------------
pool/account_test.go:88
FunctionTestIsSuspensionErrorDetectsKnownMessages
--------------------------------------------------------------------------- IsSuspensionError --------------------------------------------------------
pool/account_test.go:132
FunctionTestIsSuspensionErrorIgnoresUnrelatedErrors
(t *testing.T)
pool/account_test.go:146
FunctionTestIsSuspensionErrorNilError
(t *testing.T)
pool/account_test.go:159
FunctionTestKiroToClaudeResponseCanEmitEmptyThinkingBlock
(t *testing.T)
proxy/translator_test.go:270
FunctionTestMaskApiKey
(t *testing.T)
config/apikeys_test.go:270
FunctionTestMergeUniqueModelsPreservesUnionAcrossAccounts
(t *testing.T)
proxy/handler_test.go:443
FunctionTestNoToolInvocationTextInAssistantHistory
TestNoToolInvocationTextInAssistantHistory is a regression guard for the few-shot pollution bug: when historical tool calls were narrated as "[Called
proxy/tool_narration_pollution_test.go:16
FunctionTestNormalizeChunkBasicProgression
(t *testing.T)
proxy/kiro_test.go:14
FunctionTestNormalizeChunkOverlapDelta
(t *testing.T)
proxy/kiro_test.go:40
FunctionTestNormalizeChunkPrefixRewindDoesNotReplay
(t *testing.T)
proxy/kiro_test.go:25
FunctionTestOpenAIConversationIDRandomForSyntheticAnchor
(t *testing.T)
proxy/translator_test.go:234
FunctionTestOpenAIConversationIDStableFromAnchor
(t *testing.T)
proxy/translator_test.go:183
FunctionTestOpenAIToKiroAssistantMapContentInHistory
(t *testing.T)
proxy/translator_test.go:114
FunctionTestOpenAIToKiroAssistantToolCallsDoNotInjectPlaceholder
(t *testing.T)
proxy/translator_test.go:138
FunctionTestOpenAIToKiroDoesNotDuplicateToolResultText
TestOpenAIToKiroDoesNotDuplicateToolResultText reproduces the bug where a non-final tool-result history entry was pre-filled with the "Tool results:"
proxy/openai_toolresult_dedup_test.go:13
FunctionTestOpenAIToKiroPreservesStructuredAssistantAndToolContent
(t *testing.T)
proxy/translator_test.go:26
FunctionTestOpenAIToolAcceptsNestedFormat
TestOpenAIToolAcceptsNestedFormat verifies the Chat Completions nested shape still works after adding flat-format support.
proxy/openai_tool_format_test.go:32
FunctionTestOpenAIToolAcceptsResponsesFlatFormat
TestOpenAIToolAcceptsResponsesFlatFormat verifies that the Responses API tool shape (name/description/parameters at the top level) is parsed correctly
proxy/openai_tool_format_test.go:13
FunctionTestOpenAIToolResultImageAttachedToCurrentMessage
(t *testing.T)
proxy/translator_test.go:566
FunctionTestOpenAIToolResultImageCarriedWhenFollowedByUser
(t *testing.T)
proxy/translator_test.go:595
FunctionTestOverLimitAccountsAreSkippedByDefault
(t *testing.T)
pool/account_test.go:11
FunctionTestOverLimitAccountsCanBeSelectedWhenUpstreamOverageEnabled
(t *testing.T)
pool/account_test.go:29
FunctionTestOverLimitAccountsRemainSkippedWhenUpstreamOverageDisabled
(t *testing.T)
pool/account_test.go:49
FunctionTestParseEventStreamFinishesPendingToolUseOnEOF
(t *testing.T)
proxy/kiro_test.go:48
FunctionTestParseEventStreamNilCallbackFieldsAreNoOp
(t *testing.T)
proxy/kiro_test.go:100
FunctionTestParseEventStreamNilCallbackIsNoOp
(t *testing.T)
proxy/kiro_test.go:82
FunctionTestParseModelAndThinking
(t *testing.T)
proxy/translator_test.go:402
FunctionTestParseModelAndThinkingDoesNotRewriteDatedSnapshotMinor
(t *testing.T)
proxy/translator_test.go:461
FunctionTestPromptCacheImplicitBreakpointAtMessageEnd
TestPromptCacheImplicitBreakpointAtMessageEnd verifies that once any explicit cache_control breakpoint has been seen, subsequent message-end boundarie
proxy/cache_tracker_test.go:218
FunctionTestPromptCacheStableAcrossBillingHeaderDrift
TestPromptCacheStableAcrossBillingHeaderDrift verifies that Claude Code's per-request "x-anthropic-billing-header: cc_version=...; cch=...;" system bl
proxy/cache_tracker_test.go:81
FunctionTestPromptCacheStableWhenBillingHeaderAppearsOrDisappears
(t *testing.T)
proxy/cache_tracker_test.go:127
← previousnext →601–700 of 794, ranked by callers