Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Kilo-Org/cloud
/ functions
Functions
24,362 in github.com/Kilo-Org/cloud
⨍
Functions
24,362
◇
Types & classes
8,480
↓ 13 callers
Function
randomInt
(min: number, max: number)
apps/web/src/scripts/usage/lib/generate-mock-usage.ts:67
↓ 13 callers
Function
recordExaUsage
(params: { userId: string; organizationId: string | undefined; path: string; costMicrodollars: number;
apps/web/src/lib/exa-usage.ts:69
↓ 13 callers
Function
refreshBitbucketWorkspaceAccessTokenRepositories
({ organizationId, kiloUserId, expectedIntegrationId, }: RefreshRepositoriesInput)
apps/web/src/lib/integrations/platforms/bitbucket/workspace-access-token-repository-cache.ts:487
↓ 13 callers
Function
repositoryPayload
(overrides: Record<string, unknown> = {})
services/git-token-service/src/bitbucket-api.test.ts:20
↓ 13 callers
Function
requestReview
(reviewId = REVIEW_ID)
apps/web/src/app/cloud-agent-fork/review/[reviewId]/route.test.ts:159
↓ 13 callers
Function
resolveEffectiveOrganizationSsoPolicy
( organizationId: string, tx?: DrizzleTransaction )
apps/web/src/lib/organizations/organization-sso-policy.ts:99
↓ 13 callers
Function
resolveGitLabRuntimeToken
( params: GetGitLabTokenParams, dependencies: GitLabRuntimeTokenDependencies )
services/git-token-service/src/gitlab-runtime-token-resolver.ts:130
↓ 13 callers
Function
resolveProfileLayers
({ repoBindingProfileId, effectiveDefaultProfileId, explicitOverrideProfileId, }: ResolveProfileLayersIn
packages/cloud-agent-profile/src/profile-resolution.ts:58
↓ 13 callers
Function
routeParam
* Pull a path parameter Hono has already matched. The route only fires when * the param is present, so the `??` is a type-narrowing formality.
services/kiloclaw/controller/src/routes/kilo-chat.ts:114
↓ 13 callers
Function
runCodingPlanBillingLifecycleCron
( database: PostgresJsDatabase<typeof schema> )
apps/web/src/lib/coding-plans/billing-lifecycle-cron.ts:69
↓ 13 callers
Function
runDeciderCheck
(check: DeciderCheck, output: string)
services/auto-routing-benchmark/src/grading.ts:94
↓ 13 callers
Function
sampleStripeCharge
( overrides: Partial<Stripe.Charge> & Pick<Stripe.Charge, 'id'> )
apps/web/src/lib/stripe/index.test.ts:375
↓ 13 callers
Function
sandboxIdFromUserId
(userId: string)
apps/web/src/lib/kiloclaw/sandbox-id.ts:18
↓ 13 callers
Function
sanitizeMetadataValue
(value: string | null | undefined)
apps/web/src/lib/impact/referral-utils.ts:52
↓ 13 callers
Function
seedSubscription
(params: { userId: string; status: 'trialing' | 'canceled' | 'active' | 'past_due' | 'unpaid'; pla
apps/web/src/lib/purchase-emails.test.ts:979
↓ 13 callers
Method
sendBatch
( messages: Iterable<MessageSendRequest<Body>>, options?: QueueSendBatchOptions )
services/ai-attribution/worker-configuration.d.ts:2127
↓ 13 callers
Function
sendMessage
( config: DriverConfig, args: SendMessageArgs, api: ApiVersion = 'unified' )
services/cloud-agent-next/test/e2e/client.ts:259
↓ 13 callers
Function
setExtensionStorage
( page: Page, items: Record<string, unknown> )
apps/extension/tests/e2e/extension-context-fixture.ts:85
↓ 13 callers
Function
setIndicator
(ind: SessionStatusIndicator | null)
apps/web/src/lib/cloud-agent-sdk/session-manager.ts:419
↓ 13 callers
Function
shellQuote
(value: string)
services/cloud-agent-next/src/agent-sandbox/cloudflare/cloudflare-agent-sandbox.ts:74
↓ 13 callers
Function
splitByContiguousPrefix
( items: readonly T[], isComplete: (item: T) => boolean )
apps/web/src/lib/utils/splitByContiguousPrefix.ts:10
↓ 13 callers
Function
syncPromotionsFromBench
( benchDashboard: BenchDashboard, store: PromotionStore, opts: { promotionName?: string } = {} )
services/model-eval-ingest/src/sync.ts:340
↓ 13 callers
Function
trySendEmail
( database: WorkerDb, env: BillingWorkerEnv, context: SweepExecutionContext, userId: string, userEma
services/kiloclaw-billing/src/lifecycle.ts:1303
↓ 13 callers
Function
updateFixTicketStatus
( ticketId: string, status: FixStatus, updates: Partial<UpdateFixTicketStatusParams> = {} )
apps/web/src/lib/auto-fix/db/fix-tickets.ts:177
↓ 13 callers
Method
updateMetadata
* Update session metadata with validation. * Throws an error if validation fails.
services/cloud-agent-next/src/persistence/CloudAgentSession.ts:1273
↓ 13 callers
Method
updateTownConfig
(update: TownConfigUpdate)
services/gastown/src/dos/Town.do.ts:930
↓ 13 callers
Function
updateUserRoleInOrganization
( organizationId: Organization['id'], userId: User['id'], role: OrganizationRole )
apps/web/src/lib/organizations/organizations.ts:380
↓ 13 callers
Function
updateWebhookEvent
( eventId: string, updates: { processed: boolean; processed_at: string; handlers_triggered: st
apps/web/src/lib/integrations/db/webhook-events.ts:56
↓ 13 callers
Function
upsertAgentConfigForOwner
( data: { owner: AgentConfigOwner; agentType: string; platform: string; config: CodeReviewAg
apps/web/src/lib/agent-config/db/agent-configs.ts:198
↓ 13 callers
Function
upsertRemoteMcpServer
( store: RemoteMcpStore, draft: RemoteMcpServerDraft )
apps/extension/src/shared/remote-mcp-storage.ts:248
↓ 13 callers
Function
useBotStatus
( client: KiloChatClient, eventClient: EventServiceClient, sandboxId: string | null )
packages/kilo-chat-hooks/src/use-bot-status.ts:28
↓ 13 callers
Function
userOwnsSandbox
( env: Env, userId: string, sandboxId: string )
services/kilo-chat/src/services/sandbox-ownership.ts:84
↓ 13 callers
Function
withDORetry
( getStub: () => TStub, operation: (stub: TStub) => Promise<TResult>, operationName: string, config?:
services/cloud-agent-next/src/utils/do-retry.ts:4
↓ 13 callers
Function
workerUrlForInstance
(params: { sandboxId: string | null; controllerCapabilitiesVersion: number | null; template: string; f
apps/web/src/lib/kiloclaw/instance-url.ts:41
↓ 13 callers
Function
writeFile
(root: string, relPath: string, content: string)
dev/local/env-sync/plan.test.ts:15
↓ 12 callers
Function
GET
(request: NextRequest)
apps/web/src/app/api/integrations/google/callback/route.ts:103
↓ 12 callers
Function
Ok
(value: T)
services/cloud-agent-next/src/lib/result.ts:23
↓ 12 callers
Method
accept
()
services/ai-attribution/worker-configuration.d.ts:3358
↓ 12 callers
Function
addCacheBreakpoints
(request: GatewayRequest)
apps/web/src/lib/ai-gateway/providers/openrouter/request-helpers.ts:118
↓ 12 callers
Function
allSent
(ws: MockWS)
services/session-ingest/src/dos/UserConnectionDO.test.ts:103
↓ 12 callers
Function
appendEvents
(conversationId: string, nextEvents: AgentConversationEvent[])
apps/extension/entrypoints/sidepanel/agent-chat-panel.tsx:377
↓ 12 callers
Method
approvePairingRequest
(channel: string, code: string)
services/kiloclaw/src/durable-objects/kiloclaw-instance/index.ts:1886
↓ 12 callers
Function
authorizationUrl
(redirectUri = 'http://127.0.0.1:60424/callback')
apps/web/src/app/api/mcp-gateway/oauth/authorize/route.test.ts:128
↓ 12 callers
Function
authorizedRequest
(path: string, init?: RequestInit)
services/deploy-infra/dispatcher/src/routes/api.test.ts:67
↓ 12 callers
Function
badRequest
(message: string)
apps/web/src/routers/admin/model-experiments-router.ts:35
↓ 12 callers
Function
baseParams
( overrides: Partial<SendInstanceLifecycleNotificationParams> = {} )
services/notifications/src/lib/notifications-service.test.ts:13
↓ 12 callers
Function
bindVoid
(raw: T)
apps/web/src/hooks/useOrgKiloClaw.ts:259
↓ 12 callers
Function
bold
(msg)
services/kiloclaw/e2e/google-credentials-integration.mjs:69
↓ 12 callers
Function
bootstrapProvisionSubscriptionWithDb
(params: BootstrapProvisionWithDbParams)
services/kiloclaw-billing/src/provision-bootstrap-shared.ts:1067
↓ 12 callers
Function
buildGitLabCloneUrl
( projectPath: string, instanceUrl: string = DEFAULT_GITLAB_URL )
apps/web/src/lib/cloud-agent/gitlab-integration-helpers.ts:257
↓ 12 callers
Function
buildMessageActionSheetOptions
({ canReact, canReply, canCopy, canEdit, canDelete, isPendingMessage = false, }: BuildMessageActio
apps/mobile/src/components/kilo-chat/message-actions.ts:23
↓ 12 callers
Function
buildPayload
(input: { parentCommentId: number; body: string; authorAssociation?: PullRequestReviewCommentPayload['co
apps/web/src/lib/code-reviews/review-memory/github-feedback.test.ts:309
↓ 12 callers
Function
buildSecurityFindingAuditLogValues
( input: SecurityFindingAuditEventInput )
packages/worker-utils/src/security-finding-audit.ts:295
↓ 12 callers
Function
buildYesterdayChatWindow
(now: Date, timezone: string)
services/kiloclaw/plugins/kiloclaw-morning-briefing/src/chat-summary-utils.ts:94
↓ 12 callers
Function
callWebhook
(integration: PlatformIntegration, request: NextRequest)
apps/web/src/app/api/webhooks/bitbucket/[integrationId]/route.test.ts:227
↓ 12 callers
Method
cancelKiloCliRun
(userId: string, instanceId?: string)
apps/web/src/lib/kiloclaw/kiloclaw-internal-client.ts:828
↓ 12 callers
Function
classifyKiloClawCommitTerm
( evidence: KiloClawCommitRetirementEvidence )
packages/db/src/kiloclaw-commit-retirement.ts:82
↓ 12 callers
Function
cloneRepo
( appId: string, gitUrl: string, parentDir: string, dirName: string )
services/app-builder/src/_integration_tests/git-test-helpers.ts:181
↓ 12 callers
Function
computeRelevantChangesForOrg
( organization: Organization, diff: SnapshotDiff )
apps/web/src/lib/organizations/auto-model-change-log.ts:93
↓ 12 callers
Method
configureRig
(rigConfig: RigConfig)
services/gastown/src/dos/Town.do.ts:1144
↓ 12 callers
Function
convertToCloudMessages
(dbMessages: Array<Record<string, unknown>>)
apps/web/src/components/cloud-agent/store/db-session-atoms.ts:1216
↓ 12 callers
Function
createAttachment
( attachment: Omit<Attachment, 'fetchData'>, contents = 'contents' )
apps/web/src/lib/bot/attachments.test.ts:44
↓ 12 callers
Function
createCloudAgentResolvedSession
(api: CloudAgentApi)
apps/web/src/lib/cloud-agent-sdk/session-transport.test.ts:64
↓ 12 callers
Function
createEvalToolCall
({ code, providerToolCallId, tabId, }: CreateEvalToolCallOptions)
apps/extension/src/shared/agent-conversation.ts:147
↓ 12 callers
Function
createKiloPassChurnkeyCancelFlow
()
apps/web/src/components/profile/kilo-pass/kiloPassChurnkeyCancelFlow.ts:25
↓ 12 callers
Function
createOrg
( label: string, plan: 'teams' | 'enterprise', opts: { seatCount?: number; requireSeats?: boolea
dev/seed/app/org-dashboard.ts:121
↓ 12 callers
Function
createRequest
(notificationId: string, secret = 'security-notification-secret')
apps/web/src/app/api/internal/security-agent/notifications/route.test.ts:36
↓ 12 callers
Function
createSdkClient
()
services/cloud-agent-next/test/unit/wrapper/kilo-api.test.ts:6
↓ 12 callers
Function
createSubscription
()
packages/db/src/kiloclaw-commit-switch-qualification-repository.test.ts:22
↓ 12 callers
Function
createTestPaymentMethod
(userId: string)
apps/web/src/tests/helpers/payment-method.helper.ts:4
↓ 12 callers
Function
createUpsertCTE
(metaDataKindName: SQL, value: string | null)
apps/web/src/lib/ai-gateway/processUsage.ts:389
↓ 12 callers
Function
createUser
(handle: string, displayName: string)
dev/seed/app/org-dashboard.ts:98
↓ 12 callers
Function
deriveBitbucketWebhookSecret
( signingKey: Uint8Array, input: BitbucketWebhookIdentity )
apps/web/src/lib/integrations/platforms/bitbucket/webhook-signing.ts:60
↓ 12 callers
Function
deriveDefaultTownName
(userName: string | null | undefined)
apps/web/src/app/(app)/gastown/onboarding/onboarding.domain.ts:11
↓ 12 callers
Function
emptyWrapperLease
()
services/cloud-agent-next/src/session/wrapper-runtime-state.ts:172
↓ 12 callers
Function
encryptValue
(keyBase64: string, plaintext: string)
services/kiloclaw/controller/src/bootstrap.test.ts:44
↓ 12 callers
Function
ensureStorage
(paths: { rootDir: string; briefingsDir: string })
services/kiloclaw/plugins/kiloclaw-morning-briefing/src/index.ts:313
↓ 12 callers
Function
errorMessage
(error: unknown)
services/kiloclaw-billing/src/lifecycle.ts:718
↓ 12 callers
Function
expectRedirectLocation
(response: Response, expectedPathWithQuery: string)
apps/web/src/app/api/integrations/google/callback/route.test.ts:59
↓ 12 callers
Function
extractNormalizedGitUrlFromItem
( item: IngestBatch[number] )
services/session-ingest/src/dos/session-ingest-extractors.ts:45
↓ 12 callers
Function
fetchWithTimeout
( url: string, options: RequestInit = {}, retryOptions: FetchWithTimeoutOptions = {} )
apps/web/src/lib/user-deployments/fetch-utils.ts:30
↓ 12 callers
Function
findAllGitPlatformUrls
(text: string)
apps/web/src/components/cloud-agent-next/utils/git-utils.ts:143
↓ 12 callers
Function
findLogRecord
(message: string)
services/kiloclaw-billing/src/index.test.ts:45
↓ 12 callers
Function
flushPromises
Flush microtask queue so Promise.all + .then in connect() settles.
apps/web/src/lib/cloud-agent-sdk/cloud-agent-transport.test.ts:53
↓ 12 callers
Function
formatDateCompact
(date: string)
apps/web/src/app/admin/components/UserAdmin/UserAdminKiloClaw.tsx:72
↓ 12 callers
Function
formatEpochTime
(epoch: number | null)
apps/web/src/app/admin/components/KiloclawInstances/KiloclawInstanceDetail.tsx:119
↓ 12 callers
Function
formatNumber
(num: number)
apps/web/src/app/admin/components/FreeModelUsageStats.tsx:49
↓ 12 callers
Method
generateReportStatus
* Generate report-status response for push. * Global errors (pack-size, indexPack failure) mark all refs as ng. * Per-ref errors only mark the s
services/app-builder/src/git/git-receive-pack-service.ts:416
↓ 12 callers
Function
getBitbucketWorkspaceAccessTokenStatus
(organizationId: string)
apps/web/src/lib/integrations/platforms/bitbucket/workspace-access-token-repository-cache.ts:314
↓ 12 callers
Function
getBotUserId
( organizationId: string, botType: BotType )
apps/web/src/lib/bot-users/bot-user-service.ts:21
↓ 12 callers
Function
getClawOnboardingStepProgress
( step: OnboardingStep, hasCalendarStep: boolean = true, hasInterestsStep: boolean = true )
apps/web/src/app/(app)/claw/components/ClawOnboardingFlow.state.ts:139
↓ 12 callers
Function
getCodeReviewById
(reviewId: string)
apps/web/src/lib/code-reviews/db/code-reviews.ts:238
↓ 12 callers
Method
getConfig
(ctx?: RequestContext)
apps/web/src/lib/kiloclaw/kiloclaw-user-client.ts:86
↓ 12 callers
Method
getConvoy
(convoyId: string)
services/gastown/src/dos/Town.do.ts:3916
↓ 12 callers
Function
getDaysRemainingInTrial
( freeTrialEndAt: string | null, createdAt: string, now = new Date() )
packages/organization-entitlement/src/trial.ts:6
↓ 12 callers
Function
getEffectiveKiloPassThreshold
( kiloPassThresholdMicrodollars: number | null )
packages/worker-utils/src/kilo-pass-bonus-projection.ts:54
↓ 12 callers
Function
getGitHubAppCredentials
(appType: GitHubAppType)
apps/web/src/lib/integrations/platforms/github/app-selector.ts:51
↓ 12 callers
Method
getMessageSettlementOutbox
()
services/cloud-agent-next/src/persistence/CloudAgentSession.ts:617
↓ 12 callers
Function
getOrganizationOnboardingState
( organizationId: string )
apps/web/src/lib/organizations/onboarding-checklist.ts:193
↓ 12 callers
Function
getRunningVersionBadge
( runningVersion: string | null | undefined, imageVersion: string | null | undefined )
apps/web/src/lib/kiloclaw/version.ts:25
← previous
next →
1,301–1,400 of 24,362, ranked by callers