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
↓ 453 callers
Function
createTestDatabase
(testFileId: string)
tests/storage/helpers/test-db.ts:12
↓ 265 callers
Method
get
(name: string)
src/tools/core/registry.ts:26
↓ 210 callers
Method
parse
(rawUsage: OpenAICompatibleUsageRaw)
src/agent/llm/upstream-openai.ts:113
↓ 176 callers
Method
resolve
(input: ResolveApprovalInput)
src/storage/repos/approvals.repo.ts:97
↓ 170 callers
Method
info
(message: string, context?: LoggerContext)
src/shared/logger.ts:16
↓ 163 callers
Method
execute
( context: ToolExecutionContext, args: TArgs, )
src/tools/core/types.ts:149
↓ 149 callers
Method
create
(input: CreateAgentInput)
src/storage/repos/agents.repo.ts:26
↓ 144 callers
Function
toolRecoverableError
(message: string, details?: unknown)
src/tools/core/errors.ts:98
↓ 139 callers
Method
publish
(input: { sessionId: string; conversationId: string; messages: unknown; })
src/tools/a2ui-publish.ts:8
↓ 137 callers
Method
debug
(message: string, context?: LoggerContext)
src/shared/logger.ts:15
↓ 136 callers
Method
run
(input: RunAgentLoopInput)
src/agent/loop.ts:505
↓ 121 callers
Method
append
(input: AppendMessageInput)
src/storage/repos/messages.repo.ts:59
↓ 114 callers
Method
has
(name: string)
src/tools/core/registry.ts:25
↓ 108 callers
Method
getById
(id: string)
src/storage/repos/agents.repo.ts:46
↓ 101 callers
Method
register
(tool: ToolDefinition<TArgs, TDetails>)
src/tools/core/registry.ts:51
↓ 94 callers
Function
seedConversationAndAgentFixture
(handle: TestDatabaseHandle)
tests/tools/helpers.ts:4
↓ 90 callers
Function
destroyTestDatabase
(handle: TestDatabaseHandle)
tests/storage/helpers/test-db.ts:20
↓ 88 callers
Method
upsert
(input: UpsertChannelThreadInput)
src/storage/repos/channel-threads.repo.ts:27
↓ 86 callers
Function
toCanonicalUtcIsoTimestamp
(input: Date)
src/shared/time.ts:1
↓ 84 callers
Function
reduceLarkRunState
( previous: LarkRunState | null, envelope: OrchestratedRuntimeEventEnvelope | OrchestratedTaskRunEventEnve
src/channels/lark/run-state.ts:98
↓ 82 callers
Method
listBySession
(sessionId: string, options: ListSessionMessagesOptions = {})
src/storage/repos/messages.repo.ts:89
↓ 80 callers
Function
defineTool
(input: { name: string; description: string; inputSchema: TInputSchema; getInvocationTimeoutMs?: (cont
src/tools/core/types.ts:187
↓ 78 callers
Function
textToolResult
( text: string, details?: TDetails, )
src/tools/core/types.ts:288
↓ 77 callers
Function
makeAssistantResult
(params: { content: AgentAssistantContentBlock[]; stopReason?: "stop" | "length" | "toolUse" | "error" | "
tests/agent/loop.test.ts:108
↓ 75 callers
Method
start
()
src/runtime/bootstrap.ts:75
↓ 69 callers
Method
add
(input: AddCronJobInput)
src/cron/service.ts:135
↓ 68 callers
Method
shutdown
()
src/runtime/bootstrap.ts:76
↓ 64 callers
Function
makeEnvelope
( event: OrchestratedRuntimeEventEnvelope["event"], )
tests/channels/lark/run-state.test.ts:23
↓ 62 callers
Method
warn
(message: string, fields?: Record<string, unknown>)
src/channels/lark/cardkit-mutations.ts:28
↓ 61 callers
Function
makeEnvelope
( event: OrchestratedRuntimeEventEnvelope["event"], )
tests/channels/lark/outbound.test.ts:25
↓ 60 callers
Function
createSubsystemLogger
(subsystem: string)
src/shared/logger.ts:215
↓ 54 callers
Function
buildMeditationFindingId
(bucketId: string, findingIndex: number)
src/meditation/prompts.ts:766
↓ 53 callers
Function
addError
(issues, path, message)
skills/a2ui-author/runtime/v0_8/validate.js:507
↓ 52 callers
Function
createModelConfig
( options: { supportsTools?: boolean } = {}, )
tests/agent/loop.test.ts:54
↓ 50 callers
Method
grantScopes
(input: { ownerAgentId: string; scopes: PermissionScope[]; grantedBy: "user" | "main_agent"; s
src/security/service.ts:226
↓ 48 callers
Function
createBashTool
()
src/tools/bash.ts:87
↓ 48 callers
Function
createLarkOutboundRuntime
( input: CreateLarkOutboundRuntimeInput, )
src/channels/lark/outbound.ts:145
↓ 45 callers
Method
getByInternalObject
(input: { channelInstallationId: string; internalObjectKind: string; internalObjectId: string; }
src/storage/repos/lark-object-bindings.repo.ts:312
↓ 45 callers
Method
warn
(message: string, context?: LoggerContext)
src/shared/logger.ts:17
↓ 40 callers
Function
readString
(value: unknown)
src/channels/lark/inbound.ts:3352
↓ 35 callers
Function
loadConfig
(options?: LoadConfigOptions)
src/config/load.ts:71
↓ 35 callers
Function
resolveExpectedToolAbsolutePath
(targetPath: string)
tests/tools/helpers.ts:20
↓ 34 callers
Function
isRecord
(value)
skills/a2ui-author/runtime/v0_8/json.js:135
↓ 33 callers
Function
createLarkMessageReceiveHandler
(input: { installationId: string; storage: StorageDb; ingress: LarkInboundIngress; control: RuntimeCon
src/channels/lark/inbound.ts:348
↓ 33 callers
Function
isRecord
(value: unknown)
src/channels/lark/inbound.ts:3368
↓ 33 callers
Function
seedConversationFixture
(handle: TestDatabaseHandle)
tests/agent/loop.test.ts:87
↓ 33 callers
Function
withHandle
(fn: (handle: TestDatabaseHandle) => Promise<void>)
tests/channels/lark/inbound/fixtures.ts:7
↓ 32 callers
Method
log
( level: "debug" | "info" | "warn" | "error", message: string, context?: Record<string, unknown>,
src/agent/compaction.ts:528
↓ 32 callers
Function
readString
(value: unknown)
src/channels/lark/render/tool-calls.ts:586
↓ 32 callers
Function
seedFixture
(handle: TestDatabaseHandle)
tests/channels/lark/inbound/fixtures.ts:16
↓ 31 callers
Function
appendFsSubtreeSuffix
(targetPath: string)
src/security/scope.ts:89
↓ 30 callers
Method
close
()
tests/mcp/manager.test.ts:292
↓ 30 callers
Function
isPlainObject
(value: unknown)
src/config/schema.ts:2001
↓ 30 callers
Method
recordEvent
(events: AgentRuntimeEvent[], event: AgentRuntimeEventInput)
src/agent/loop.ts:2003
↓ 26 callers
Function
buildSystemPolicy
(config?: Pick<AppConfig, "security">)
src/security/policy.ts:79
↓ 26 callers
Method
streamTurn
(input: PiBridgeRunTurnInput)
src/agent/llm/pi-bridge.ts:117
↓ 25 callers
Function
buildAgentSystemPrompt
(input: BuildAgentSystemPromptInput = {})
src/agent/system-prompt.ts:209
↓ 25 callers
Method
error
(message: string, context?: LoggerContext)
src/shared/logger.ts:18
↓ 25 callers
Function
toNumber
(value: unknown)
src/agent/llm/upstream-openai.ts:1140
↓ 24 callers
Method
getById
(id: string)
src/storage/repos/sessions.repo.ts:96
↓ 24 callers
Function
isRecord
(value: unknown)
src/channels/lark/a2ui.ts:968
↓ 24 callers
Function
toolInternalError
(message: string, details?: unknown)
src/tools/core/errors.ts:113
↓ 24 callers
Method
update
(input: UpdateCronJobInput)
src/storage/repos/cron-jobs.repo.ts:173
↓ 23 callers
Function
assertAllowedKeys
(input: object, allowedKeys: Set<string>, path: string)
src/config/schema.ts:1648
↓ 23 callers
Method
beginRun
(input: ActiveRunRecord)
src/runtime/control.ts:103
↓ 23 callers
Function
seedFixture
(handle: TestDatabaseHandle)
tests/orchestration/agent-manager.test.ts:92
↓ 23 callers
Function
withHandle
(fn: (handle: TestDatabaseHandle) => Promise<void>)
tests/orchestration/agent-manager.test.ts:57
↓ 22 callers
Function
createRequestPermissionsTool
()
src/tools/request-permissions.ts:79
↓ 22 callers
Function
renderLarkRunCard
(state: LarkRunState)
src/channels/lark/render/run-card.ts:70
↓ 21 callers
Function
buildLarkChatSurfaceKey
(chatId: string)
src/channels/lark/inbound.ts:234
↓ 21 callers
Method
clear
()
src/channels/lark/client.ts:62
↓ 21 callers
Function
readString
(value)
skills/a2ui-author/runtime/v0_8/validate.js:504
↓ 21 callers
Method
submitMessage
(input: SubmitMessageInput)
src/tasks/runner.ts:23
↓ 20 callers
Function
createResolvedModel
(overrides?: Partial<ResolvedModel>)
tests/agent/llm/pi-bridge.test.ts:53
↓ 20 callers
Function
createStoredUserMessage
()
tests/agent/llm/pi-bridge.test.ts:72
↓ 20 callers
Method
getOrCreate
(installationId: string)
src/runtime/back-online.ts:26
↓ 20 callers
Method
getRunObservability
(runId: string, now: Date = new Date())
src/runtime/control.ts:427
↓ 20 callers
Function
readStringValue
(value: unknown)
src/channels/lark/delivery-targets.ts:13
↓ 20 callers
Function
renderSection
(title: string, lines: string[])
src/agent/system-prompt-sections.ts:9
↓ 20 callers
Function
validatePositiveInteger
(value: unknown, path: string)
src/config/schema.ts:1882
↓ 19 callers
Function
seedConversationAndAgentFixture
(handle: TestDatabaseHandle)
tests/agent/loop.test.ts:100
↓ 19 callers
Method
status
()
src/channels/lark/inbound.ts:156
↓ 18 callers
Function
checkFilesystemPermission
(input: { kind: FsPermissionKind; targetPath: string; cwd?: string; permissions: EffectivePermissions;
src/security/permissions.ts:250
↓ 18 callers
Function
isToolAllowedForSession
(input: { purpose: string; agentKind?: string | null; toolName: string; })
src/agent/session-policy.ts:19
↓ 18 callers
Function
openStorageDatabase
(options: OpenStorageDatabaseOptions = {})
src/storage/db/client.ts:33
↓ 18 callers
Function
parseConservativeBashCommandSequence
( command: string, )
src/security/bash-prefix.ts:49
↓ 17 callers
Function
buildAgentPermissionBaseline
(role: AgentRuntimeRole)
src/security/policy.ts:115
↓ 17 callers
Method
listByOwner
(ownerAgentId: string, limit = 50)
src/storage/repos/task-runs.repo.ts:92
↓ 17 callers
Method
update
(id: string, patch: Omit<UpdateCronJobInput, "id" | "updatedAt">)
src/cron/service.ts:162
↓ 16 callers
Function
buildEffectivePermissions
( scopes: PermissionScope[], systemPolicy: SystemPermissionPolicy = DEFAULT_SYSTEM_POLICY, baseline: Age
src/security/permissions.ts:146
↓ 16 callers
Function
readStringField
(value: unknown, path: string[])
src/agent/llm/errors.ts:399
↓ 16 callers
Function
seedAgentFixture
(handle: TestDatabaseHandle)
tests/security/sandbox.test.ts:45
↓ 15 callers
Method
begin
(sessionId: string)
src/runtime/cancel.ts:26
↓ 15 callers
Function
detectRuntimeShellInfo
(input: RuntimeShellDetectionInput = {})
src/runtime/shell-info.ts:34
↓ 15 callers
Method
error
(message: string, fields?: Record<string, unknown>)
src/channels/lark/cardkit-mutations.ts:29
↓ 15 callers
Function
normalizeAgentLlmError
(input: NormalizeAgentLlmErrorInput)
src/agent/llm/errors.ts:83
↓ 15 callers
Function
normalizeFilesystemTargetPath
(value: string, cwd?: string)
src/security/permissions.ts:84
↓ 15 callers
Method
submitApprovalResponse
(input: ApprovalResponseInput)
src/agent/loop.ts:311
↓ 14 callers
Function
createLarkCardActionHandler
(input: { installationId: string; ingress: LarkInboundIngress; control: RuntimeControlService; modelSw
src/channels/lark/inbound.ts:789
↓ 14 callers
Function
createTaskExecution
(input: { db: StorageDb; params: CreateTaskExecutionInput; })
src/orchestration/task-run-factory.ts:42
next →
1–100 of 2,718, ranked by callers