Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HKUDS/AgentSpace
/ functions
Functions
5,266 in github.com/HKUDS/AgentSpace
⨍
Functions
5,266
◇
Types & classes
823
↓ 601 callers
Method
get
(...params: unknown[])
packages/db/src/database.ts:404
↓ 512 callers
Method
prepare
(sql: string)
packages/db/src/database.ts:410
↓ 370 callers
Function
getDatabase
()
packages/db/src/database.ts:438
↓ 314 callers
Method
run
(...params: unknown[])
packages/db/src/database.ts:405
↓ 251 callers
Function
sameValue
(left: string, right: string)
packages/services/src/shared/helpers.ts:66
↓ 232 callers
Function
getStringFlag
(flags: Record<string, string | boolean>, key: string)
apps/cli/src/lib/args.ts:33
↓ 216 callers
Function
readWorkspaceStateSync
(workspaceId = DEFAULT_WORKSPACE_ID)
packages/services/src/shared/state-io.ts:70
↓ 200 callers
Function
writeWorkspaceStateSync
( state: AgentSpaceState, workspaceId = DEFAULT_WORKSPACE_ID, options?: { skipVersionCheck?: boolean },
packages/services/src/shared/state-io.ts:74
↓ 192 callers
Function
ensureWorkspaceStateSync
(workspaceId = DEFAULT_WORKSPACE_ID)
packages/services/src/shared/state-io.ts:47
↓ 173 callers
Function
requireCurrentWorkspaceContext
()
apps/web/features/auth/server-workspace.ts:26
↓ 138 callers
Function
buildFeishuEvidenceReport
(input: BuildFeishuEvidenceReportInput)
apps/cli/src/commands/integrations/feishu.ts:4257
↓ 135 callers
Function
asString
(value: unknown)
packages/services/src/integrations/providers/feishu/health.ts:261
↓ 114 callers
Function
buildDataOperationRun
( integrationId: string, operationType: string, providerResourceType: string, status: "pending" | "run
apps/cli/src/commands/integrations.test.ts:10960
↓ 113 callers
Method
now
()
packages/services/src/integrations/providers/feishu/agent-space-sync.ts:165
↓ 112 callers
Function
buildCompleteFeishuEvidenceInput
()
apps/cli/src/commands/integrations.test.ts:9566
↓ 111 callers
Function
hasNonEmptyString
(value: unknown)
apps/cli/src/commands/integrations/feishu.ts:6725
↓ 108 callers
Function
createEmployeeSync
(input: { name: string; role?: string; remarkName?: string; summary?: string; traits?: string[]; f
packages/services/src/employees/employees.ts:240
↓ 94 callers
Function
writeData
(format: OutputFormat, value: unknown)
apps/cli/src/lib/format.ts:30
↓ 90 callers
Function
buildIntegrationRecord
(overrides: Record<string, unknown> = {})
apps/cli/src/commands/integrations.test.ts:10548
↓ 82 callers
Function
createUserSync
(input: { displayName: string; primaryEmail?: string; avatarUrl?: string; })
packages/db/src/user-auth.ts:22
↓ 80 callers
Method
exec
(command: ExecCommand)
packages/sandbox/src/interface.ts:11
↓ 80 callers
Function
tryRecordWorkspaceAuditEventSync
(input: { workspaceId: string; title: string; note: string; code?: string; data?: Record<string, Aud
packages/services/src/shared/audit.ts:27
↓ 79 callers
Function
createWorkspaceSync
(params: { name: string; createdBy: string; id?: string; slug?: string; })
packages/db/src/workspaces.ts:60
↓ 73 callers
Method
all
(...params: unknown[])
packages/db/src/database.ts:403
↓ 73 callers
Function
resetWorkspaceStateSync
(workspaceId = DEFAULT_WORKSPACE_ID)
packages/services/src/shared/state-io.ts:101
↓ 72 callers
Function
createWorkspaceMembershipSync
(params: { workspaceId: string; userId: string; role?: WorkspaceRole; invitedBy?: string; })
packages/db/src/workspace-memberships.ts:5
↓ 70 callers
Function
assertWorkspaceRoleForContext
( context: CurrentWorkspaceContext, minimumRole: WorkspaceRole, message = "Forbidden.", )
apps/web/features/auth/workspace-permissions.ts:24
↓ 65 callers
Function
readUserSync
(userId: string)
packages/db/src/user-auth.ts:38
↓ 62 callers
Function
asRecord
(value: unknown)
packages/services/src/integrations/providers/feishu/health.ts:255
↓ 60 callers
Function
daemonHeaders
(token: string)
apps/web/app/api/daemon/routes.test.ts:160
↓ 58 callers
Function
listQueuedTasksSync
(options?: { workspaceId?: string; runtimeId?: string; })
packages/db/src/task-queue.ts:118
↓ 56 callers
Function
isRecord
(value: unknown)
packages/daemon/src/runtime-output-manifests.ts:2078
↓ 56 callers
Function
normalizeOptionalText
(value: string | undefined | null)
packages/db/src/integrations/external-integrations.ts:2372
↓ 55 callers
Function
useLanguage
()
apps/web/features/i18n/language-provider.tsx:55
↓ 54 callers
Method
exec
(sql: string)
packages/db/src/database.ts:409
↓ 54 callers
Function
normalizeOptionalText
(value: string | undefined)
apps/cli/src/commands/integrations/feishu.ts:4119
↓ 53 callers
Function
countWhere
(db: ReturnType<typeof getDatabase>, tableName: string, columnName: string, value: string)
packages/db/src/workspaces.test.ts:674
↓ 52 callers
Function
buildRequest
( input: Partial<ExternalDataOperationRequest> & Pick<ExternalDataOperationRequest, "operationType" | "provi
packages/services/src/integrations/providers/feishu/__tests__/data-plane.test.ts:2155
↓ 52 callers
Function
readStringParameter
(request: ExternalDataOperationRequest, key: string)
packages/services/src/integrations/providers/feishu/operation-plan.ts:922
↓ 52 callers
Function
translateSettingsActionError
(error: unknown, tx: SettingsTx)
apps/web/features/settings/settings-utils.ts:76
↓ 51 callers
Function
appendTaskMessageSync
(input: { taskId: string; type: string; content?: string; tool?: string; inputJson?: Record<string,
packages/db/src/task-messages.ts:6
↓ 50 callers
Function
asOptionalString
(value: unknown)
packages/db/src/integrations/external-integrations.ts:2448
↓ 49 callers
Function
createExternalIntegrationSync
(input: { workspaceId?: string; provider: ExternalIntegrationProvider; displayName: string; transportM
packages/db/src/integrations/external-integrations.ts:33
↓ 47 callers
Function
parseArgs
(args: string[])
apps/cli/src/lib/args.ts:6
↓ 47 callers
Function
successToast
(zh: string, en: string, durationMs?: number)
apps/web/shared/lib/toast-action.ts:32
↓ 46 callers
Function
randomLikeId
()
packages/db/src/database.ts:501
↓ 46 callers
Function
readString
(value: Record<string, unknown> | undefined, key: string)
packages/services/src/integrations/providers/feishu/approval.ts:1158
↓ 46 callers
Function
readString
(value: Record<string, unknown> | undefined, key: string)
packages/services/src/integrations/providers/feishu/operation-plan.ts:999
↓ 46 callers
Function
revalidateWorkspacePaths
(workspaceSlug: string, paths: string[])
apps/web/features/auth/workspace-revalidation.ts:9
↓ 46 callers
Function
sameValue
(left: string, right: string)
packages/services/src/documents/model.ts:351
↓ 45 callers
Function
assertRequired
(value: string | undefined, label: string)
apps/web/features/channels/actions.ts:1062
↓ 44 callers
Function
actionToastResult
( data: T, toast?: LocalizedToastDescriptor, invalidation?: WorkspaceInvalidationEvent, )
apps/web/shared/lib/toast-action.ts:24
↓ 44 callers
Function
bindEmployeeRuntimeSync
( employeeName: string, runtimeId: string, workspaceId?: string, actorUserId?: string, )
packages/services/src/employees/employees.ts:78
↓ 40 callers
Function
buildOpenApiEvidenceFixture
()
apps/cli/src/commands/integrations.test.ts:10367
↓ 40 callers
Function
normalizeRequiredText
(value: string, message: string)
packages/db/src/integrations/external-integrations.ts:2364
↓ 40 callers
Function
readSmokeEnvEntry
( report: ReturnType<typeof buildFeishuSmokeEnvTemplateReport>, key: string, )
apps/cli/src/commands/integrations.test.ts:10654
↓ 40 callers
Function
refreshWorkspaceModule
(onDataChanged: (() => void) | undefined, router: RefreshRouter)
apps/web/features/dashboard/workspace-module-refresh.ts:9
↓ 37 callers
Function
buildWorkspacePath
(workspaceSlug: string, path = "/")
apps/web/features/auth/workspace-paths.ts:1
↓ 37 callers
Function
createIntegrationProviderError
(input: { provider: ExternalIntegrationProvider; code: string; message: string; cause?: unknown; })
packages/services/src/integrations/core/errors.ts:23
↓ 36 callers
Method
addEventListener
(type: string, listener: EventListener)
apps/web/features/channels/channels-page-client.test.tsx:274
↓ 36 callers
Function
createDaemonApiTokenSync
(input: { workspaceId?: string; label: string; createdBy: string; })
packages/db/src/daemon-tokens.ts:5
↓ 35 callers
Function
buildMessageMapping
( integrationId: string, direction: "inbound" | "outbound", externalMessageId: string, externalThreadI
apps/cli/src/commands/integrations.test.ts:9944
↓ 35 callers
Function
revalidateWorkspacePath
(path: string, workspaceSlug: string)
apps/web/features/auth/workspace-revalidation.ts:4
↓ 34 callers
Function
requireStringFlag
(flags: Record<string, string | boolean>, key: string)
apps/cli/src/commands/output.ts:1066
↓ 34 callers
Function
workspaceHref
(path: string)
apps/web/features/dashboard/workspace-frame.tsx:230
↓ 33 callers
Function
pushWorkspaceMessageToChannel
( state: AgentSpaceState, channel: string, input: { speaker: string; speakerUserId?: string;
packages/services/src/shared/messaging.ts:160
↓ 33 callers
Method
removeEventListener
(type: string, listener: EventListener)
apps/web/features/channels/channels-page-client.test.tsx:278
↓ 33 callers
Function
withTransaction
(db: PostgresSyncDatabase, work: () => T)
packages/db/src/database.ts:479
↓ 32 callers
Function
enqueueNativeTaskSync
(input: EnqueueTaskInput)
packages/db/src/task-queue.ts:20
↓ 32 callers
Function
readWorkspaceSync
(idOrSlug: string)
packages/db/src/workspaces.ts:93
↓ 32 callers
Function
revalidatePermissions
(workspaceSlug: string)
apps/web/features/permissions/actions.ts:372
↓ 32 callers
Function
seedWorkspace
()
packages/services/src/messages/messages.test.ts:57
↓ 32 callers
Function
translateSystemSpeaker
(value: string | undefined, tx: TxFn)
apps/web/features/i18n/presentation.ts:61
↓ 32 callers
Function
withMetadataFields
(record: T, fields: Record<string, unknown>)
apps/cli/src/commands/integrations.test.ts:10071
↓ 31 callers
Function
buildResourceBinding
(integrationId: string, providerResourceType: string, providerResourceToken: string)
apps/cli/src/commands/integrations.test.ts:10600
↓ 31 callers
Function
createChannelDocumentSync
(input: { channelName: string; title: string; kind?: ChannelDocumentKind; storageMode?: ChannelDocumen
packages/services/src/documents/sync.ts:304
↓ 31 callers
Function
formatCompactTimestamp
( value: string | Date | null | undefined, options: { emptyFallback?: string; now?: Date; } = {}
apps/web/shared/lib/time-format.ts:1
↓ 31 callers
Function
processFeishuInboundEventSync
(input: ProcessFeishuInboundEventInput)
packages/services/src/integrations/providers/feishu/inbound.ts:151
↓ 31 callers
Function
readJsonRecord
(value: string)
apps/cli/src/commands/integrations/feishu.ts:6908
↓ 31 callers
Function
readString
(record: Record<string, unknown> | undefined, key: string)
packages/services/src/integrations/providers/feishu/agent-space-sync.ts:960
↓ 31 callers
Function
renderSettingsPage
( props: Partial<ComponentProps<typeof SettingsPageClient>> = {}, )
apps/web/features/settings/settings-page-client.test.tsx:168
↓ 31 callers
Function
runOutputCommand
( subcommand: string | undefined, args: string[], format: OutputFormat, )
apps/cli/src/commands/output.ts:41
↓ 31 callers
Function
runProviderTask
( runtime: ProviderRuntimeRecord, prompt: string, workDir: string, options: ProviderTaskOptions = {},
packages/daemon/src/provider-runtime.ts:180
↓ 31 callers
Function
seedBoundFeishuWorkspace
(input: { agentBot?: boolean; bindChannel?: boolean; bindUser?: boolean; includeOutOfChannelAgent?: bo
packages/services/src/integrations/providers/feishu/__tests__/inbound.test.ts:2098
↓ 30 callers
Function
buildOutboxItem
( integrationId: string, status: "failed" | "pending" | "sent", options: { metadataJson?: string;
apps/cli/src/commands/integrations.test.ts:10661
↓ 29 callers
Function
assertRequired
(value: string | undefined, label: string)
apps/web/features/agents/actions.ts:666
↓ 29 callers
Function
registerDaemonRuntimesSync
(input: { daemonKey: string; deviceName: string; workspaceId?: string; metadata?: Record<string, unkno
packages/db/src/daemons.ts:5
↓ 29 callers
Function
runAgentRouter
( request: AgentRouterRunRequest, observer: AgentRouterObserver = { emit: () => {} }, )
packages/daemon/src/agent-router/router.ts:28
↓ 28 callers
Function
buildFeishuMessagePayload
(input: { eventId: string; messageId: string; chatId?: string; chatType?: string; chatName?: string;
packages/services/src/integrations/providers/feishu/__tests__/inbound.test.ts:2220
↓ 28 callers
Function
buildWorkspaceContext
(role: "owner" | "admin" | "member", userId: string)
apps/web/features/integrations/feishu/feishu-actions.test.ts:1585
↓ 28 callers
Function
readString
(value: unknown)
packages/db/src/task-queue.ts:1041
↓ 28 callers
Function
renderAgentsPage
( pageData: AgentsPageData = data, props?: { onDataChanged?: () => void; onInvalidation?: AgentsPa
apps/web/features/agents/agents-page-client.test.tsx:503
↓ 28 callers
Function
writeExecutable
(path: string, content: string)
packages/daemon/src/agent-router.test.ts:1093
↓ 27 callers
Function
asRecord
(value: unknown)
packages/services/src/integrations/providers/feishu/agent-space-sync.ts:1054
↓ 27 callers
Function
buildAutoProvisionedChannelBinding
( integrationId: string, provisionSource: "bot_added" | "first_message", options: { agentId?: string
apps/cli/src/commands/integrations.test.ts:10281
↓ 27 callers
Function
createDiagnostic
( code: AgentRouterDiagnostic["code"], message: string, options: { severity?: AgentRouterDiagnostic[
packages/daemon/src/agent-router/utils.ts:110
↓ 27 callers
Function
freshFeishuEvidenceTimestamp
(ageMs = 0)
apps/cli/src/commands/integrations.test.ts:61
↓ 27 callers
Function
resolveChannelHumanMemberNames
( state: AgentSpaceState, channel: Pick<ChannelRecord, "humanMemberNames" | "humanMembers">, )
packages/services/src/channels/channels.ts:45
↓ 26 callers
Function
asString
(value: unknown)
packages/services/src/integrations/providers/feishu/events.ts:230
↓ 26 callers
Function
buildIntegrationEvent
( integrationId: string, externalEventId: string, eventType: string, status: "received" | "processed"
apps/cli/src/commands/integrations.test.ts:10754
next →
1–100 of 5,266, ranked by callers