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
↓ 40 callers
Function
isValidCustomSecretKey
(key: string)
packages/kiloclaw-secret-catalog/src/catalog.ts:395
↓ 40 callers
Function
makeItem
(item_type: string, data: Record<string, unknown>)
services/session-ingest/src/dos/session-metrics.test.ts:4
↓ 39 callers
Function
buildPromptWrapperRequests
( metadata: CloudAgentSessionState, customizeEnv?: (env: PersistenceEnv) => void )
services/cloud-agent-next/src/session-service.test.ts:1544
↓ 39 callers
Function
createIntent
( messageId: string, prompt: string, options?: Pick<SessionMessageIntent, 'agent' | 'finalization'> )
services/cloud-agent-next/src/session/session-message-state.test.ts:51
↓ 39 callers
Function
deriveCallbackToken
(params: CallbackTokenParams)
packages/worker-utils/src/callback-token.ts:42
↓ 39 callers
Function
getTownContainerStub
(env: Env, townId: string)
services/gastown/src/dos/TownContainer.do.ts:122
↓ 39 callers
Method
initAttachment
(rawParams: InitAttachmentParams)
services/kilo-chat/src/do/conversation-do.ts:1419
↓ 39 callers
Method
onError
(error: unknown)
services/gastown/src/dos/TownContainer.do.ts:112
↓ 39 callers
Method
slingConvoy
* Atomic batch sling: create N beads + 1 convoy, assign polecats, dispatch. * Used by the Mayor's gt_sling_batch tool.
services/gastown/src/dos/Town.do.ts:3489
↓ 38 callers
Method
append
(content: string | ReadableStream | Response, options?: ContentOptions)
services/ai-attribution/worker-configuration.d.ts:1660
↓ 38 callers
Function
baseStripeEvent
()
apps/web/src/lib/stripe/index.test.ts:205
↓ 38 callers
Method
cleanup
()
packages/kilo-chat/src/client.ts:122
↓ 38 callers
Function
codeReview
(overrides: Partial<CodeReview> = {})
services/code-review-infra/test/integration/code-review-orchestrator.test.ts:72
↓ 38 callers
Function
createEnvWithQueueMocks
(fetchImpl: BillingWorkerEnv['KILOCLAW']['fetch'])
services/kiloclaw-billing/src/lifecycle.test.ts:449
↓ 38 callers
Function
execute
( args: string[], fetch: (url: string, init: RequestInit) => Promise<Response>, input?: unknown, env:
services/cloud-agent-next/wrapper/src/bitbucket-review-cli.test.ts:148
↓ 38 callers
Function
fixtureWantedRow
(overrides: Record<string, unknown> = {})
services/wasteland/src/wanted-board/wanted-board-ops-sdk.test.ts:92
↓ 38 callers
Function
formatIsoDateString_UsaDateOnlyFormat
(dateString: string | Date | null)
apps/web/src/lib/utils.ts:100
↓ 38 callers
Method
listBeads
(filter: BeadFilter)
services/gastown/src/dos/Town.do.ts:1295
↓ 38 callers
Method
queue
(batch: MessageBatch<SnapshotRestoreMessage>)
services/kiloclaw/src/index.ts:1138
↓ 37 callers
Function
createEnv
( redeemGitHubSessionCapability: ReturnType<typeof vi.fn> = vi.fn(), redeemGitLabSessionCapability: Return
services/cloud-agent-next/src/sandbox-outbound.test.ts:51
↓ 37 callers
Function
createFakeStorage
()
services/cloud-agent-next/src/session/session-message-state.test.ts:21
↓ 37 callers
Method
getBead
(beadId: string)
services/gastown/container/plugin/client.ts:201
↓ 37 callers
Function
handleOutbound
(request: Request, env: Cloudflare.Env)
services/cloud-agent-next/src/sandbox-outbound.test.ts:60
↓ 37 callers
Function
parseGitUrl
(gitUrl: string, gitlabInstanceUrl?: string)
packages/worker-utils/src/git-url.ts:86
↓ 37 callers
Function
queueUserMessageInput
( input: QueueSessionUserMessageInput )
services/cloud-agent-next/test/helpers/session-setup.ts:165
↓ 37 callers
Function
seedSession
* The upsert short-circuits unless a `cli_sessions_v2` row exists in the * delivering tenant for the same `(git_url, git_branch)`. Tests that want
apps/web/src/lib/integrations/platforms/github/webhook-handlers/upsert-cli-session-pull-requests.test.ts:112
↓ 36 callers
Method
addRig
(input: { rigId: string; name: string; gitUrl: string; defaultBranch: string; })
services/gastown/src/dos/Town.do.ts:1082
↓ 36 callers
Function
createMessage
(overrides: Partial<PendingSessionMessage>)
services/cloud-agent-next/test/integration/session/pending-messages.test.ts:34
↓ 36 callers
Function
createMutableState
()
services/kiloclaw/src/durable-objects/kiloclaw-instance/state.ts:464
↓ 36 callers
Function
fetch
(request: Request, env: TestEnv)
services/cloud-agent-next/test/test-worker.ts:83
↓ 36 callers
Function
generateReviewPrompt
( config: CodeReviewAgentConfig, repository: string, prNumber?: number, options: GenerateReviewPromptO
apps/web/src/lib/code-reviews/prompts/generate-prompt.ts:143
↓ 36 callers
Function
kiloPassMetadata
(params: { kiloUserId: string; tier: KiloPassTier; cadence: KiloPassCadence; kiloPassScheduledChangeId
apps/web/src/lib/kilo-pass/stripe-handlers-invoice-paid.test.ts:232
↓ 36 callers
Function
makeStripeSubscription
(params: { id: string; start_date_seconds: number; metadata: Stripe.Metadata; status?: Stripe.Subscrip
apps/web/src/lib/kilo-pass/stripe-handlers-invoice-paid.test.ts:58
↓ 36 callers
Function
maybeNull
(value: T, nullPct: number)
apps/web/src/scripts/usage/benchmark-insert-usage.ts:34
↓ 35 callers
Function
buildWorkspaceBackupCandidate
( request: WorkspaceBackupCandidateRequest )
services/cloud-agent-next/src/workspace-backup-cache.ts:172
↓ 35 callers
Function
createProfile
( owner: ProfileOwner, name: string, opts: { isDefault?: boolean } = {} )
apps/web/src/tests/cloud-agent-profile/profile-session-config.test.ts:41
↓ 35 callers
Function
getKiloPassPriceId
(params: { tier: KiloPassTier; cadence: KiloPassCadence; })
apps/web/src/lib/kilo-pass/stripe-handlers-invoice-paid.test.ts:49
↓ 35 callers
Function
getKiloPassStateForUser
( db: DbOrTx, kiloUserId: string, options: { forUpdate?: boolean } = {} )
apps/web/src/lib/kilo-pass/state.ts:123
↓ 35 callers
Function
makeMessage
(overrides: Partial<LegacyPendingSessionMessage> = {})
services/cloud-agent-next/src/session/pending-messages.test.ts:51
↓ 35 callers
Function
metadata
(options?: { devcontainer?: boolean; githubRepo?: string; sandboxId?: TestSandboxId; withProfile?: boo
services/cloud-agent-next/src/agent-sandbox/cloudflare/cloudflare-agent-sandbox.test.ts:35
↓ 35 callers
Function
processTopupForOrganization
( kiloUserId: User['id'], organizationId: Organization['id'], amountInCents: number, config: Config,
apps/web/src/lib/organizations/organization-billing.ts:330
↓ 35 callers
Function
readStringParam
( args: Record<string, unknown>, key: string, options?: { required?: boolean } )
services/kiloclaw/plugins/kiloclaw-customizer/test/stubs/provider-web-search.ts:100
↓ 34 callers
Function
buildGitLabUrl
( instanceUrl: string | undefined, path: string, query?: Record<string, string | number | boolean> )
apps/web/src/lib/integrations/platforms/gitlab/instance-url.ts:64
↓ 34 callers
Function
computeMonthlyCadenceBonusPercent
(params: { tier: KiloPassTier; streakMonths: number; isFirstTimeSubscriberEver: boolean; subscriptionS
apps/web/src/lib/kilo-pass/bonus.ts:27
↓ 34 callers
Function
fromMicrodollars
(microdollars: number)
apps/web/src/lib/utils.ts:160
↓ 34 callers
Function
normalizeModelId
(modelId: string)
apps/web/src/lib/ai-gateway/model-utils.ts:21
↓ 34 callers
Function
reject
()
apps/web/src/lib/code-reviews/dispatch/dispatch-pending-reviews.test.ts:77
↓ 34 callers
Method
writeFile
(path: string, data: string | Uint8Array)
services/app-builder/src/git/memfs.ts:21
↓ 33 callers
Method
deleteAll
(options?: DurableObjectPutOptions)
services/ai-attribution/worker-configuration.d.ts:635
↓ 33 callers
Method
emit
(event: string)
packages/kilo-chat-hooks/src/xhr-perform-upload.test.ts:44
↓ 33 callers
Function
getClawOnboardingFlowState
({ status, mode, createSetupStarted, setupFailed = false, onboardingStep, hasBotIdentity, gatewa
apps/web/src/app/(app)/claw/components/ClawOnboardingFlow.state.ts:162
↓ 33 callers
Function
grantCreditForCategory
( user: User, options: GrantCreditOptions )
apps/web/src/lib/promotionalCredits.ts:86
↓ 33 callers
Function
jsonBody
(res: Response)
services/kiloclaw/src/routes/platform-sanitize-error.test.ts:62
↓ 33 callers
Function
logCallback
(message: string, extra?: Record<string, unknown>)
apps/web/src/app/api/internal/bot-session-callback/[botRequestId]/route.ts:55
↓ 33 callers
Function
mergeProfileConfiguration
( db: WorkerDb, args: MergeProfileConfigurationArgs )
packages/cloud-agent-profile/src/profile-session-config.ts:290
↓ 33 callers
Function
processCreditRenewalItem
( env: BillingWorkerEnv, message: CreditRenewalItemQueueMessage, attempt = 1 )
services/kiloclaw-billing/src/lifecycle.ts:2668
↓ 33 callers
Function
readUserRow
(args: { userId: string; gitUrl?: string; branch: string })
apps/web/src/lib/integrations/platforms/github/webhook-handlers/upsert-cli-session-pull-requests.test.ts:71
↓ 33 callers
Function
resolveModel
( townConfig: TownConfig, rigOverride: RigOverrideConfig | null | undefined, role: string )
services/gastown/src/dos/town/config.ts:178
↓ 33 callers
Function
restoreSession
( kiloSessionId: string, workspacePath: string, filePath?: string, options: RestoreSessionOptions = {}
services/cloud-agent-next/wrapper/src/restore-session.ts:544
↓ 33 callers
Function
throwKiloclawAdminError
( err: unknown, fallbackMessage: string, options?: { statusCodeOverrides?: Partial<Record<number, Ki
apps/web/src/routers/admin-kiloclaw-instances-router.ts:261
↓ 33 callers
Function
timedExec
( executor: Executable, command: string, operation: string, options?: { timeoutMs?: number; cw
services/cloud-agent-next/src/sandbox-timeout-logging.ts:85
↓ 33 callers
Function
updateCodeReviewStatus
( reviewId: string, status: CodeReviewStatus, updates: { sessionId?: string; cliSessionId?: stri
apps/web/src/lib/code-reviews/db/code-reviews.ts:886
↓ 32 callers
Function
acceptedMessageState
( messageId: string, callbackTarget?: SessionMessageState['callbackTarget'] )
services/cloud-agent-next/src/session/message-settlement-outbox.test.ts:89
↓ 32 callers
Function
createConnectionManager
( state: WrapperState, config: ConnectionConfig, callbacks: ConnectionCallbacks )
services/cloud-agent-next/wrapper/src/connection.ts:412
↓ 32 callers
Function
createEnv
(metadata?: CloudAgentSessionState | null)
services/cloud-agent-next/src/session-service.test.ts:308
↓ 32 callers
Function
createPendingSessionMessage
(params: { messageId: string; clientRequestId?: string; role: 'user'; content: string; turn?: z.infe
services/cloud-agent-next/src/session/pending-messages.ts:317
↓ 32 callers
Function
deriveGatewayToken
(sandboxId: string, secret: string)
services/kiloclaw/src/auth/gateway-token.ts:8
↓ 32 callers
Function
encryptWithSymmetricKey
(value: string, keyBase64: string)
packages/encryption/src/encryption.ts:186
↓ 32 callers
Function
extractRepoFromGitUrl
(gitUrl: string | null | undefined)
apps/web/src/components/cloud-agent/utils/git-utils.ts:26
↓ 32 callers
Function
fetchGitLab
(url: string, init?: RequestInit, redirectCount = 0)
apps/web/src/lib/integrations/platforms/gitlab/adapter.ts:35
↓ 32 callers
Method
getAgentAsync
(agentId: string)
services/gastown/src/dos/Town.do.ts:1677
↓ 32 callers
Function
getSeedDb
()
dev/seed/lib/db.ts:9
↓ 32 callers
Method
getWebSockets
(tag?: string)
services/ai-attribution/worker-configuration.d.ts:605
↓ 32 callers
Function
ingestOrganizationTokenUsage
(usage: MicrodollarUsage)
apps/web/src/lib/organizations/organization-usage.ts:209
↓ 32 callers
Function
insertActivePersonalSubscription
( userId: string, overrides?: Partial<typeof kiloclaw_subscriptions.$inferInsert> & { organizationId?:
apps/web/src/lib/impact/kiloclaw-referrals.test.ts:146
↓ 32 callers
Function
log
(msg: string)
services/cloud-agent-next/wrapper/src/restore-session.ts:54
↓ 32 callers
Function
makeRow
(overrides: Partial<CaseResultRow> = {})
services/auto-routing-benchmark/src/run.test.ts:16
↓ 32 callers
Function
makeStripeSubscription
(params: { id: string; metadata: Stripe.Metadata; status: Stripe.Subscription.Status; cancel_at_period
apps/web/src/routers/kiloclaw-billing-router.test.ts:323
↓ 32 callers
Method
prepareSession
( input: PrepareSessionInput, ticketId: string )
services/auto-fix-infra/src/services/cloud-agent-next-client.ts:40
↓ 32 callers
Function
query
( sql: SqlStorage, query: Query, params: SqliteParams<Query> & unknown[] )
services/wasteland/src/util/query.util.ts:23
↓ 32 callers
Method
remove
()
services/ai-attribution/worker-configuration.d.ts:1688
↓ 32 callers
Function
request
(path: string, method = 'GET')
services/mcp-gateway/src/mcp-gateway.worker.test.ts:49
↓ 32 callers
Function
runValues
(session: SessionInsert, overrides: Partial<RunInsert> = {})
apps/web/src/lib/cloud-agent/dispatch-health/detector.test.ts:32
↓ 32 callers
Method
updateAgentStatus
(agentId: string, status: string)
services/gastown/src/dos/Town.do.ts:1689
↓ 31 callers
Function
completeStoreKiloPassPurchase
(params: { dbOrTx?: DrizzleTransaction; user: User; purchase: ValidatedStoreKiloPassPurchase; })
apps/web/src/lib/kilo-pass/store-subscription-completion.ts:431
↓ 31 callers
Function
createAppDO
( storage = createFakeStorage(), env = createFakeEnv() )
services/kiloclaw/src/durable-objects/kiloclaw-app.test.ts:93
↓ 31 callers
Function
createEnv
()
services/kiloclaw-billing/src/index.test.ts:59
↓ 31 callers
Function
createEvent
( streamEventType: string, data: unknown, sessionId = 'ses-1' )
apps/web/src/lib/cloud-agent-sdk/__fixtures__/helpers.ts:10
↓ 31 callers
Function
createInput
( overrides: Partial<ClawOnboardingFlowStateInput> = {} )
apps/web/src/app/(app)/claw/components/ClawOnboardingFlow.state.test.ts:62
↓ 31 callers
Function
fakeDirective
(conversation: ConversationScenario)
services/cloud-agent-next/test/e2e/lifecycle.ts:61
↓ 31 callers
Function
fetch
(req, server)
services/gastown/container/src/control-server.ts:1012
↓ 31 callers
Function
formatError
(error: unknown)
packages/worker-utils/src/format-error.ts:4
↓ 31 callers
Method
getInfo
()
services/kilo-chat/src/do/conversation-do.ts:515
↓ 31 callers
Function
insertPersonalSubscriptionFixture
(params: PersonalSubscriptionFixtureInput)
apps/web/src/routers/kiloclaw-billing-router.test.ts:387
↓ 31 callers
Function
makeUser
(overrides: Partial<User> = {})
apps/web/src/tests/account-verification-redirect.test.ts:81
↓ 31 callers
Function
renderPage
(searchParams: Record<string, string> = {})
apps/web/src/tests/account-verification-redirect.test.ts:119
↓ 31 callers
Function
useClawContext
()
apps/web/src/app/(app)/claw/components/ClawContext.tsx:26
↓ 31 callers
Function
userIdFromSandboxId
(sandboxId: string)
packages/worker-utils/src/sandbox-id.ts:41
↓ 30 callers
Method
acceptMessage
(messageId: string, config: FinalizationConfig)
services/cloud-agent-next/wrapper/src/state.ts:244
↓ 30 callers
Function
bead
(overrides: Partial<ReporterBead>)
services/gastown/src/dos/town/wasteland-reporter.test.ts:24
← previous
next →
301–400 of 24,362, ranked by callers