Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/danielwpz/pokoclaw
/ functions
Functions
2,718 in github.com/danielwpz/pokoclaw
⨍
Functions
2,718
◇
Types & classes
750
↓ 8 callers
Function
describePermissionScope
(scope: PermissionScope)
src/security/scope.ts:255
↓ 8 callers
Function
findFirstToolHeaderContent
(card: Record<string, unknown>)
tests/channels/lark/run-state.test.ts:134
↓ 8 callers
Method
getById
(id: string)
src/storage/repos/task-runs.repo.ts:78
↓ 8 callers
Function
getProductionDatabasePath
()
src/storage/db/paths.ts:7
↓ 8 callers
Method
getServerCatalog
(serverName: string)
src/mcp/catalog.ts:96
↓ 8 callers
Method
handleCardAction
(input: { installationId: string; payload: unknown; })
src/channels/lark/a2ui.ts:205
↓ 8 callers
Function
makeAssistantResult
(params: { content: AgentAssistantContentBlock[]; stopReason?: "stop" | "length" | "toolUse" | "error" | "
tests/agent/runtime.test.ts:74
↓ 8 callers
Function
makeContext
(handle: TestDatabaseHandle, ownerAgentId = "agent_missing")
tests/mcp/tool-source.test.ts:391
↓ 8 callers
Function
makeTaskRuntimeEnvelope
( event: OrchestratedRuntimeEventEnvelope["event"], )
tests/channels/lark/run-state.test.ts:60
↓ 8 callers
Method
markToolStarted
(input: { runId: string; toolCallId: string; toolName: string; at?: Date })
src/runtime/control.ts:321
↓ 8 callers
Function
mockProcessPlatform
(platform: NodeJS.Platform)
tests/tools/bash.test.ts:77
↓ 8 callers
Function
normalizeUsageFromOpenAICompatible
( model: CostedModel, rawUsage: unknown, )
src/agent/llm/upstream-openai.ts:189
↓ 8 callers
Function
parseBindingMetadata
(raw: string | null)
src/channels/lark/inbound.ts:3290
↓ 8 callers
Function
readLarkHttpStatus
(error: unknown)
src/channels/lark/cardkit-mutations.ts:96
↓ 8 callers
Method
resolveApiKey
(provider: ResolvedProvider)
src/agent/llm/pi-bridge.ts:103
↓ 8 callers
Function
resolveApprovalRouteForSession
(input: { db: StorageDb; session: Session; })
src/runtime/approval-routing.ts:33
↓ 8 callers
Method
resolvePlan
(input: { sessionId: string; route: ResolvedApprovalRoute; })
src/runtime/approval-flow.ts:28
↓ 8 callers
Method
runOnce
(input: MeditationRunRequest)
src/meditation/scheduler.ts:23
↓ 8 callers
Function
seedFixture
(handle: TestDatabaseHandle)
tests/tools/cron.test.ts:12
↓ 8 callers
Function
seedLarkSurface
(handle: TestDatabaseHandle)
tests/channels/lark/a2ui.test.ts:799
↓ 8 callers
Function
seedMainAgentFixture
()
tests/orchestration/subagents.test.ts:40
↓ 8 callers
Function
shouldRenderStandaloneTaskCard
(runType: string | null)
src/channels/lark/outbound.ts:2645
↓ 8 callers
Function
toolApprovalRequired
(shape: ToolApprovalRequiredShape)
src/tools/core/errors.ts:107
↓ 8 callers
Function
truncateLarkCardString
( value: string, options: Partial<LarkCardValueTruncationOptions> = {}, )
src/channels/lark/render/card-truncation.ts:13
↓ 8 callers
Function
waitForApprovalRequested
( events: Array<{ type: string; approvalId?: string }>, )
tests/agent/loop.test.ts:144
↓ 7 callers
Function
buildAgentLlmRawErrorPayload
(error: unknown)
src/agent/llm/errors.ts:485
↓ 7 callers
Function
buildBashFullAccessSection
(input: BashFullAccessPromptContext = {})
src/agent/system-prompt-sections.ts:323
↓ 7 callers
Function
buildQuizMessages
(input: { pathContext?: boolean } = {})
tests/channels/lark/a2ui.test.ts:828
↓ 7 callers
Function
buildSkillsCatalogPrompt
(entries: AgentSkillCatalogEntry[])
src/agent/skills.ts:120
↓ 7 callers
Function
cloneWebToolConfig
(config: WebToolConfig)
src/config/schema.ts:1676
↓ 7 callers
Function
createCodexModel
(overrides?: Partial<ResolvedModel>)
tests/agent/llm/pi-bridge.codex-service-tier.test.ts:33
↓ 7 callers
Function
createCreatedCronTaskExecution
( taskRunId: string, executionSessionId: string, )
tests/cron/service.test.ts:133
↓ 7 callers
Function
createDeferred
()
tests/cron/service.test.ts:33
↓ 7 callers
Function
createFilesystemAccessController
( context: ToolExecutionContext, )
src/tools/helpers/common.ts:58
↓ 7 callers
Function
createGetRuntimeStatusTool
()
src/tools/get-runtime-status.ts:33
↓ 7 callers
Function
deliverDelegatedApprovalRequest
(input: { db: StorageDb; ingress: DelegatedApprovalMessageIngress; approvalId: number; })
src/orchestration/delegated-approval.ts:68
↓ 7 callers
Function
describeTaskRunKind
(runType: string | null)
src/channels/lark/render/task-card.ts:65
↓ 7 callers
Function
ensureAgentMemoryFiles
(input: { agentKind?: string | null; workspaceDir?: string | null; privateWorkspaceDir?: string | null;
src/memory/files.ts:116
↓ 7 callers
Function
escapeXmlText
(value: string)
src/orchestration/delegated-approval.ts:626
↓ 7 callers
Function
flush
()
tests/manual/meditation-tool-failure-analysis.ts:158
↓ 7 callers
Function
formatDisplayPath
(targetPath: string, _cwd: string)
src/tools/helpers/common.ts:217
↓ 7 callers
Method
getBySurfaceKey
(input: { channelType: string; channelInstallationId: string; surfaceKey: string; })
src/storage/repos/channel-surfaces.repo.ts:110
↓ 7 callers
Method
getTaskRunLiveState
(taskRunId: string)
src/orchestration/agent-manager.ts:147
↓ 7 callers
Function
invokeSequencedLarkCardkitMutation
(input: { logger: LarkCardkitLogger; operation: LarkSequencedCardMutationOperation; logContext: Record<s
src/channels/lark/cardkit-mutations.ts:166
↓ 7 callers
Function
isAgentLlmError
(error: unknown)
src/agent/llm/errors.ts:112
↓ 7 callers
Function
isFsSubtreeScopePath
(scopePath: string)
src/security/scope.ts:251
↓ 7 callers
Function
isRecord
(value: unknown)
src/channels/lark/render/tool-calls.ts:615
↓ 7 callers
Function
loadAgentProjectContext
(input: { workdir?: string | null; config: ProjectContextConfig; })
src/agent/project-context.ts:68
↓ 7 callers
Function
logResolvedRoute
(input: { sessionId: string; route: ResolvedApprovalRoute; })
src/runtime/approval-routing.ts:124
↓ 7 callers
Function
makeEnvelope
( event: OrchestratedRuntimeEventEnvelope["event"], )
tests/channels/lark/outbound-pagination.test.ts:17
↓ 7 callers
Function
makeSdkTool
(input: Partial<SdkMcpTool> & { name: string })
tests/mcp/tool-source.test.ts:401
↓ 7 callers
Function
makeSdkTool
(input: Partial<SdkMcpTool> & { name: string })
tests/mcp/catalog.test.ts:201
↓ 7 callers
Function
makeStartedRun
(input: { sessionId: string; scenario: "task"; stopSignal?: { reason: string; payload?: unknown } | null
tests/orchestration/task-runner.test.ts:59
↓ 7 callers
Function
normalizeBashCommandPrefix
(command: string)
src/security/bash-prefix.ts:102
↓ 7 callers
Function
normalizeToolFailure
(error: unknown)
src/tools/core/errors.ts:131
↓ 7 callers
Function
reject
()
tests/channels/lark/a2ui.test.ts:1026
↓ 7 callers
Function
renderBashArgsJson
(args: Partial<BashToolArgs>)
src/tools/bash.ts:670
↓ 7 callers
Function
renderSingleLineElement
(tagName: string, value: string, indent = 2)
src/orchestration/delegated-approval.ts:523
↓ 7 callers
Function
renderSingleLineElement
(tagName: string, value: string, indent = 2)
src/tasks/task-session.ts:272
↓ 7 callers
Method
resolveApproval
(input: { approvalId: number; status: "approved" | "denied" | "cancelled"; reasonText?: string | n
src/security/service.ts:208
↓ 7 callers
Function
seedAgentFixture
(handle: TestDatabaseHandle)
tests/security/service.test.ts:10
↓ 7 callers
Function
seedBase
(handle: TestDatabaseHandle)
tests/runtime/approval-routing.test.ts:20
↓ 7 callers
Function
selectBashArgs
( args: BashToolArgs, options: { mode: "sandboxed" | "full_access"; dropPrefix?: boolean; requ
src/tools/bash.ts:633
↓ 7 callers
Function
shortenPathForLog
(value: string)
src/security/sandbox.ts:683
↓ 7 callers
Method
startBackgroundTask
(input: { sourceSessionId: string; description: string; task: string; contextMode?: "isolated"
src/tools/core/types.ts:96
↓ 7 callers
Function
truncateLogText
(text: string, maxLength: number)
src/channels/lark/outbound.ts:2869
↓ 7 callers
Function
truncateText
(value: string, maxLength: number)
src/orchestration/delegated-approval.ts:617
↓ 7 callers
Function
withHandle
(fn: (handle: TestDatabaseHandle) => Promise<void>)
tests/runtime/approval-routing.test.ts:11
↓ 7 callers
Function
writeSkill
( skillDir: string, input: { name: string; description: string; note?: string; }, )
tests/agent/skills.test.ts:213
↓ 6 callers
Function
appendMessageAndHydrate
(input: { repo: MessagesRepo; sessionId: string; messageId: string; seq?: number; role: string; me
src/agent/loop.ts:2111
↓ 6 callers
Function
appendUniqueDetail
(details: string[], candidate: string | null)
src/agent/llm/upstream-openai.ts:974
↓ 6 callers
Function
assertLarkOk
( response: { code?: number | string | undefined; msg?: string | undefined; data?: unknown; },
src/channels/lark/subagent-provisioner.ts:363
↓ 6 callers
Function
assertRipgrepInstalled
()
tests/tools/grep.test.ts:84
↓ 6 callers
Function
buildBootstrapSection
(input: BootstrapPromptSectionContext = {})
src/agent/system-prompt-sections.ts:576
↓ 6 callers
Function
buildLarkAssistantElementId
(messageId: string)
src/channels/lark/run-state.ts:261
↓ 6 callers
Function
buildSandboxConfigForAgent
( input: BuildSandboxConfigForAgentInput, )
src/security/sandbox.ts:105
↓ 6 callers
Function
buildSubsequentToolCallApprovalState
( state: ToolExecutionApprovalState | undefined, )
src/agent/loop.ts:2322
↓ 6 callers
Function
buildWorkspaceRuntimeSection
(input: WorkspaceRuntimePromptContext = {})
src/agent/system-prompt-sections.ts:539
↓ 6 callers
Function
buildWorkspaceSharedMemoryPath
(workspaceDir: string)
src/memory/files.ts:100
↓ 6 callers
Method
checkFilesystemAccess
(input: { ownerAgentId: string; kind: FsPermissionKind; targetPath: string; cwd?: string;
src/security/service.ts:103
↓ 6 callers
Function
compressPermissionScopesToEntries
( scopes: PermissionScope[], )
src/tools/helpers/permission-block.ts:156
↓ 6 callers
Function
createConfig
()
tests/agent/llm/provider-registry.test.ts:5
↓ 6 callers
Method
createCronTaskExecutionFromJob
(input: { cronJobId: string; createdAt?: Date; attempt?: number; })
src/orchestration/agent-manager.ts:491
↓ 6 callers
Function
createFinishTaskTool
()
src/tools/finish-task.ts:67
↓ 6 callers
Function
createHarness
(input: { handle: TestDatabaseHandle; policy: McpToolPolicy; tools: SdkMcpTool[]; serverConfig?: McpCo
tests/mcp/tool-source.test.ts:335
↓ 6 callers
Function
createLsTool
()
src/tools/ls.ts:40
↓ 6 callers
Function
createReadTool
()
src/tools/read.ts:48
↓ 6 callers
Function
createRegistry
(options?: { meditationBucket?: string[]; meditationConsolidation?: string[]; })
tests/meditation/runner.test.ts:23
↓ 6 callers
Function
createWaitTaskTool
()
src/tools/wait-task.ts:34
↓ 6 callers
Function
decideCompaction
(input: DecideCompactionInput)
src/agent/compaction.ts:209
↓ 6 callers
Function
estimateTextTokens
(value: string)
src/agent/compaction.ts:945
↓ 6 callers
Function
executeRealGrep
( rootDir: string, args: Record<string, unknown>, cwd: string = rootDir, )
tests/tools/grep.test.ts:107
↓ 6 callers
Function
finish
(fn: () => void)
src/security/sandbox.ts:731
↓ 6 callers
Method
getByExecutionSessionId
(executionSessionId: string)
src/storage/repos/task-runs.repo.ts:82
↓ 6 callers
Method
getById
(id: string)
src/storage/repos/a2ui-surface-publications.repo.ts:161
↓ 6 callers
Method
getById
(id: string)
src/storage/repos/cron-jobs.repo.ts:108
↓ 6 callers
Method
getEffectivePermissionsWithEphemeralScopes
(input: { ownerAgentId: string; activeAt?: Date; ephemeralScopes?: PermissionScope[]; })
src/security/service.ts:79
↓ 6 callers
Function
getNextCardkitSequence
(binding: { lastSequence?: number | null; metadataJson?: string | null; })
src/channels/lark/cardkit-mutations.ts:86
↓ 6 callers
Method
getOrCreateDefault
(now: Date = new Date())
src/storage/repos/meditation-state.repo.ts:35
↓ 6 callers
Function
getRequiredIntegrationEnv
(env: Record<string, string>, key: string)
tests/integration/llm/helpers/fixture.ts:299
← previous
next →
201–300 of 2,718, ranked by callers