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
↓ 30 callers
Function
createAssistantMessage
(text: string)
apps/extension/src/shared/agent-conversation.ts:132
↓ 30 callers
Function
createCodeReview
(params: CreateReviewParams)
apps/web/src/lib/code-reviews/db/code-reviews.ts:216
↓ 30 callers
Function
createFakeDOContext
()
services/cloud-agent-next/src/websocket/ingest.test.ts:39
↓ 30 callers
Function
createOrganizationUsage
( cost: number, kilo_user_id: string, organization_id: string )
apps/web/src/tests/helpers/microdollar-usage.helper.ts:131
↓ 30 callers
Function
flushMicrotasks
()
services/kiloclaw/controller/src/supervisor.test.ts:32
↓ 30 callers
Function
formatMicrodollars
(microdollars: number, fractionDigits: number = 2)
apps/web/src/lib/admin-utils.ts:7
↓ 30 callers
Function
formatMicrodollars
(microdollars: number)
apps/web/src/app/(app)/claw/components/billing/billing-types.ts:18
↓ 30 callers
Function
publicCloudAgentDirectory
(kiloSessionId: string)
services/cloud-agent-next/src/kilo-facade/public-sdk-projection.ts:13
↓ 30 callers
Function
transitionQueueBacklogState
( state: QueueBacklogState, backlogCount: number )
services/o11y/src/alerting/queue-backlog-state.ts:153
↓ 30 callers
Method
updateExecutionStatus
( params: UpdateExecutionStatusParams, opts?: { suppressCallback?: boolean } )
services/cloud-agent-next/src/persistence/CloudAgentSession.ts:2690
↓ 30 callers
Function
writeFile
()
services/kiloclaw/controller/src/routes/files.ts:948
↓ 29 callers
Function
allocateWrapperRuntimeState
( storage: DurableObjectStorage, now = Date.now() )
services/cloud-agent-next/src/session/wrapper-runtime-state.ts:540
↓ 29 callers
Function
createActiveOrgInstance
(userId: string, organizationId: string)
apps/web/src/routers/organizations/organization-kiloclaw-router.test.ts:156
↓ 29 callers
Function
createConversation
* Creates a fresh conversation for each test context. * Returns { conversationId, userId, botId, userApp, botApp }
services/kilo-chat/src/__tests__/messages-routes.test.ts:54
↓ 29 callers
Function
createKiloClawAdminAuditLog
({ action, actor_id, actor_email, actor_name, target_user_id, message, metadata, tx, }: Omit<K
apps/web/src/lib/kiloclaw/admin-audit-log.ts:10
↓ 29 callers
Function
createMemoryStorage
(initialEntries?: Array<[string, unknown]>)
services/cloud-agent-next/src/session/pending-messages.test.ts:26
↓ 29 callers
Function
createMockKiloClient
(overrides: Partial<WrapperKiloClient> = {})
services/cloud-agent-next/test/unit/wrapper/reconnection.test.ts:154
↓ 29 callers
Function
createTestConnection
(overrides: Partial<BaseConnectionConfig> = {})
apps/web/src/lib/cloud-agent-sdk/base-connection.test.ts:89
↓ 29 callers
Method
emitEvent
(data: Omit<GastownEventData, 'userId' | 'delivery'>)
services/gastown/src/dos/Town.do.ts:259
↓ 29 callers
Function
extractRepoFromGitUrl
(gitUrl: string | null | undefined)
apps/web/src/components/cloud-agent-next/utils/git-utils.ts:28
↓ 29 callers
Function
getAgentConfigForOwner
( owner: AgentConfigOwner, agentType: string, platform: string )
apps/web/src/lib/agent-config/db/agent-configs.ts:168
↓ 29 callers
Function
getFlyConfig
(env: KiloClawEnv, state: InstanceMutableState)
services/kiloclaw/src/durable-objects/kiloclaw-instance/types.ts:192
↓ 29 callers
Function
getKiloClawPricingCatalogEntry
(priceVersion: string)
packages/db/src/kiloclaw-pricing-catalog.ts:59
↓ 29 callers
Function
getOwner
* Helper to determine owner from input. * If organizationId is provided, returns org owner; otherwise returns user owner.
apps/web/src/routers/agent-profiles-router.ts:160
↓ 29 callers
Function
isStripeSubscriptionEnded
(status: string)
apps/web/src/lib/kilo-pass/stripe-subscription-status.ts:1
↓ 29 callers
Function
legacySessionMetadata
(input: Record<string, unknown>)
services/cloud-agent-next/src/router.test.ts:116
↓ 29 callers
Function
listNonTerminalAcceptedMessages
( storage: SessionMessageStorage, wrapperRunId?: string )
services/cloud-agent-next/src/session/session-message-state.ts:593
↓ 29 callers
Function
log
(level: 'info' | 'warn' | 'error', message: string, fields: BillingLogFields)
services/kiloclaw-billing/src/index.ts:211
↓ 29 callers
Function
makeDbFakes
(rows: MappingRow[])
services/session-ingest/src/session-ingest-rpc.test.ts:93
↓ 29 callers
Function
makePart
(id: string, messageId: string, text = '')
apps/web/src/lib/cloud-agent-sdk/storage/jotai.test.ts:17
↓ 29 callers
Function
makeRpc
(db: ReturnType<typeof makeDbFakes>['db'])
services/session-ingest/src/session-ingest-rpc.test.ts:109
↓ 29 callers
Function
markdownToSlackMrkdwn
(text: string)
apps/web/src/lib/slack/markdownToSlackMrkdwn.ts:54
↓ 29 callers
Function
minutesAgo
(minutes: number)
apps/web/src/lib/code-reviews/alerting/detectors.test.ts:10
↓ 29 callers
Function
readFile
( state: InstanceMutableState, env: KiloClawEnv, filePath: string )
services/kiloclaw/src/durable-objects/kiloclaw-instance/gateway.ts:791
↓ 29 callers
Function
sendSubscribe
Send a subscribe from a web ws
services/session-ingest/src/dos/UserConnectionDO.test.ts:190
↓ 29 callers
Function
signKiloToken
(params: { userId: string; pepper: string | null; secret: string; expiresInSeconds: number; audience
packages/worker-utils/src/kilo-token.ts:58
↓ 29 callers
Function
syncWriteOk
()
packages/wl-sdk/src/ops/test-helpers.ts:61
↓ 29 callers
Function
useOrganizationWithMembers
(id: string, options?: { enabled?: boolean })
apps/web/src/app/api/organizations/hooks.ts:9
↓ 29 callers
Function
writeEvent
( env: { KILOCLAW_AE?: AnalyticsEngineDataset }, data: KiloClawEventData )
services/kiloclaw/src/utils/analytics.ts:110
↓ 28 callers
Function
acceptOrganizationInvite
( userId: User['id'], inviteToken: string, authentication: InvitationAuthenticationContext = {} )
apps/web/src/lib/organizations/organizations.ts:615
↓ 28 callers
Function
baseInput
(over: Partial<DispatchPushInput> = {})
services/notifications/src/__tests__/dispatch-push.test.ts:51
↓ 28 callers
Function
classifyCodeReviewActionRequiredFailure
( errorMessage?: string | null )
apps/web/src/lib/code-reviews/action-required.ts:105
↓ 28 callers
Function
cleanVersion
(version: string | null | undefined)
apps/web/src/lib/kiloclaw/version.ts:10
↓ 28 callers
Function
confirm
(question: string)
dev/local/setup-env.ts:179
↓ 28 callers
Function
createReview
({ headSha, prNumber = 42, repoFullName = repo, platform = 'github' as const, platformProj
apps/web/src/lib/code-reviews/db/code-reviews.test.ts:877
↓ 28 callers
Function
createTestConfig
()
apps/web/src/lib/mcp-gateway/oauth-flow.test.ts:31
↓ 28 callers
Method
deleteSession
* Delete session after physical wrapper absence is verified or cleanup is quarantined.
services/cloud-agent-next/src/persistence/CloudAgentSession.ts:1850
↓ 28 callers
Function
exec
(cmd: string, args: string[], cwd?: string)
services/gastown/container/src/git-manager.ts:413
↓ 28 callers
Function
filterInput
(overrides: Partial<FilterInput> = {})
apps/web/src/routers/admin-code-reviews-router.test.ts:28
↓ 28 callers
Function
formatBillingDate
(iso: string)
apps/web/src/app/(app)/claw/components/billing/billing-types.ts:10
↓ 28 callers
Function
formatError
(err: unknown)
apps/web/src/lib/cloud-agent-sdk/session-manager.ts:234
↓ 28 callers
Function
getOrgTrialStatusFromDays
(daysRemaining: number)
packages/organization-entitlement/src/trial.ts:20
↓ 28 callers
Function
hasFetchCall
(fetchMock: ReturnType<typeof vi.fn>, path: string)
services/code-review-infra/test/integration/code-review-orchestrator.test.ts:168
↓ 28 callers
Method
listAgents
(filter?: AgentFilter)
services/gastown/src/dos/Town.do.ts:1685
↓ 28 callers
Function
log
(message: string, data?: unknown)
services/app-builder/src/_integration_tests/git-test-helpers.ts:37
↓ 28 callers
Function
makeDraftWithTwoVariants
(publicId: string)
apps/web/src/routers/admin/model-experiments-router.test.ts:38
↓ 28 callers
Function
makeFinding
(overrides: Partial<ParsedSecurityFinding> = {})
apps/web/src/lib/security-agent/db/security-findings.test.ts:55
↓ 28 callers
Function
parseSent
(ws: MockWS, callIndex = 0)
services/session-ingest/src/dos/UserConnectionDO.test.ts:93
↓ 28 callers
Function
parseSessionMetadata
(raw: unknown)
services/cloud-agent-next/src/persistence/session-metadata.ts:426
↓ 28 callers
Method
provision
( userId: string, config: InstanceConfig, opts?: { orgId?: string | null; instanceId?:
services/kiloclaw/src/durable-objects/kiloclaw-instance/index.ts:849
↓ 28 callers
Function
seedDir
(fs: InMemoryFs, dir: string)
services/kiloclaw/controller/src/auth-profiles-migration.test.ts:27
↓ 28 callers
Function
sendRaw
(event: CloudAgentEvent)
apps/web/src/lib/cloud-agent-sdk/session-phase.test.ts:54
↓ 28 callers
Function
setState
(partial: Partial<ProjectState>)
apps/web/src/components/app-builder/project-manager/store.ts:82
↓ 28 callers
Function
timingSafeEqual
(a: string, b: string)
packages/encryption/src/timing-safe-equal.ts:13
↓ 28 callers
Function
upsertSecurityFinding
( params: CreateFindingParams )
apps/web/src/lib/security-agent/db/security-findings.ts:125
↓ 28 callers
Function
verifyProfileOwnership
(db: WorkerDb, profileId: string, owner: ProfileOwner)
packages/cloud-agent-profile/src/profile-utils.ts:20
↓ 27 callers
Function
addVar
( profileId: string, key: string, value: string, isSecret = false )
apps/web/src/tests/cloud-agent-profile/profile-session-config.test.ts:58
↓ 27 callers
Function
applePurchase
( overrides: Partial<ValidatedStoreKiloPassPurchase> = {} )
apps/web/src/lib/kilo-pass/store-subscription-completion.test.ts:22
↓ 27 callers
Function
atomicWrite
( filePath: string, data: string, deps: AtomicWriteDeps = defaultDeps, options: AtomicWriteOptions = {
services/kiloclaw/controller/src/atomic-write.ts:52
↓ 27 callers
Function
calverAtLeast
(version: string | null | undefined, minVersion: string)
apps/web/src/lib/kiloclaw/version.ts:36
↓ 27 callers
Function
computeExpiration
( transactions: ExpiringTransaction[], entity: EntityForExpiration, now: Date, kilo_user_id: string )
apps/web/src/lib/creditExpiration.ts:64
↓ 27 callers
Function
computePlan
(repoRoot: string, serviceFilter?: Set<string>)
dev/local/env-sync/plan.ts:480
↓ 27 callers
Function
computeSessionMetrics
( items: Array<{ item_type: string; item_data: string }>, closeReason: TerminationReason )
services/session-ingest/src/dos/session-metrics.ts:249
↓ 27 callers
Function
createCloudAgentNextClient
( authToken: string, options?: CloudAgentNextClientOptions )
apps/web/src/lib/cloud-agent-next/cloud-agent-client.ts:797
↓ 27 callers
Function
createHarness
(options?: { sendCallback?: (job: CallbackJob) => Promise<void>; sendPush?: ( params: SendCloudAgentSe
services/cloud-agent-next/src/session/message-settlement-outbox.test.ts:105
↓ 27 callers
Method
delete
(key: Key)
services/ai-attribution/worker-configuration.d.ts:2103
↓ 27 callers
Function
event
(overrides: Partial<CalendarEvent> & { id: string })
services/kiloclaw/plugins/kiloclaw-morning-briefing/src/calendar-utils.test.ts:15
↓ 27 callers
Method
getConvoyStatus
* Detailed convoy status with per-bead breakdown and DAG edges.
services/gastown/src/dos/Town.do.ts:3856
↓ 27 callers
Method
getMessageResult
(messageId: string)
services/cloud-agent-next/src/persistence/CloudAgentSession.ts:1220
↓ 27 callers
Function
getRuntimeId
( source: Pick<InstanceMutableState, 'providerState' | 'flyMachineId'> )
services/kiloclaw/src/durable-objects/kiloclaw-instance/state.ts:125
↓ 27 callers
Function
getWastelandDOStub
(env: Env, wastelandId: string)
services/wasteland/src/dos/Wasteland.do.ts:202
↓ 27 callers
Function
giveUserCredits
(userId: string, microdollars: number)
apps/web/src/routers/kiloclaw-billing-router.test.ts:6577
↓ 27 callers
Function
isAllowed
(id: string, allowed: Set<string> | null)
apps/web/src/routers/model-preferences-router.ts:42
↓ 27 callers
Function
isErrorUnknownRoute
(error: unknown)
services/kiloclaw/src/durable-objects/kiloclaw-instance/gateway.ts:375
↓ 27 callers
Function
jsonRequest
(body: unknown)
services/cloud-agent-next/test/unit/wrapper/server.test.ts:74
↓ 27 callers
Function
makeCredit
( userId: string, amount: number, opts: { category?: string; description?: string | null; is
apps/web/src/scripts/d2026-03-18_expire-free-credits.test.ts:81
↓ 27 callers
Function
makeEnv
(opts?: { flyApiToken?: string | null; debugState?: unknown; appName?: string | null; })
services/kiloclaw/src/routes/platform-orphan-volume.test.ts:131
↓ 27 callers
Function
makeValidInput
(overrides: Partial<Record<string, unknown>> = {})
apps/web/src/routers/admin/credit-campaigns-router.test.ts:23
↓ 27 callers
Function
message
(overrides: Partial<Message>)
packages/kilo-chat-hooks/src/use-messages.test.ts:25
↓ 27 callers
Function
notify
(subscribers: Map<string, Set<() => void>>, key: string)
apps/web/src/lib/cloud-agent-sdk/storage/helpers.ts:96
↓ 27 callers
Function
prepareWrapperBootstrapWorkspace
( request: WrapperSessionReadyRequest, progress?: BootstrapProgress, deps: WrapperBootstrapDeps = {},
services/cloud-agent-next/wrapper/src/session-bootstrap.ts:867
↓ 27 callers
Function
recordTerminalRenewalFailure
( database: TerminalRenewalFailureRepository, input: RecordTerminalRenewalFailureInput )
packages/db/src/kiloclaw-terminal-renewal-failure-repository.ts:104
↓ 27 callers
Function
resolveInstance
* Resolve the target instance for admin operations. * When instanceId is provided, look it up directly and throw NOT_FOUND if missing. * Otherwise f
apps/web/src/routers/admin-kiloclaw-instances-router.ts:360
↓ 27 callers
Function
resolveWastelandOwnership
( env: Env, ctx: TRPCContext, wastelandId: string )
services/wasteland/src/trpc/ownership.ts:10
↓ 27 callers
Function
run
(...args: string[])
apps/web/src/scripts/db/kiloclaw-subscription-alignment.ts:4363
↓ 27 callers
Method
sendMessage
* Send a message to an existing session using the V2 WebSocket-based API. * * Returns immediately with execution info and a WebSocket URL for st
apps/web/src/lib/cloud-agent-next/cloud-agent-client.ts:702
↓ 27 callers
Function
trpcError
( status: number, message: string, code = 'INTERNAL_SERVER_ERROR', data: Record<string, unknown> = {}
services/code-review-infra/test/integration/code-review-orchestrator.test.ts:122
↓ 27 callers
Function
useUser
()
apps/web/src/hooks/useUser.ts:15
↓ 26 callers
Function
authHeaders
(token = 'test-token')
services/kiloclaw/controller/src/routes/config.test.ts:62
↓ 26 callers
Function
buildAffiliateEventLogFields
(event: AffiliateEventRow)
apps/web/src/lib/impact/affiliate-events.ts:173
← previous
next →
401–500 of 24,362, ranked by callers