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
↓ 3 callers
Function
supportsUpstreamCostParser
(model: Pick<Model<Api>, "baseUrl">)
src/agent/llm/upstream-openai.ts:173
↓ 3 callers
Method
switchScenarioModel
(input: SwitchScenarioModelInput)
src/config/scenario-model-switch.ts:81
↓ 3 callers
Function
toAgentSnapshot
(agent: Agent | null)
src/runtime/current-running-status.ts:269
↓ 3 callers
Function
toPiModel
(model: ResolvedModel)
src/agent/llm/pi-bridge.ts:753
↓ 3 callers
Function
toPosixPath
(value: string)
src/tools/helpers/fs-helpers.ts:140
↓ 3 callers
Function
toSubtreePath
(targetPath: string)
src/orchestration/subagents.ts:675
↓ 3 callers
Function
truncateLogText
(text: string, maxLength: number)
src/channels/lark/cardkit-mutations.ts:296
↓ 3 callers
Function
truncateText
(value: string, maxLength: number)
src/tools/core/registry.ts:291
↓ 3 callers
Function
truncateText
(text: string, maxLength: number)
src/channels/lark/render/tool-calls.ts:607
↓ 3 callers
Function
truncate_text
(text: str | None, limit: int = 400)
skills/claude-session-observe/scripts/read_session_records.py:17
↓ 3 callers
Method
updateWorkstream
(input: { id: string; workstreamId: string | null; initiatorThreadId?: string | null; threadRo
src/storage/repos/task-runs.repo.ts:175
↓ 3 callers
Method
upsert
(input: UpsertChannelSurfaceInput)
src/storage/repos/channel-surfaces.repo.ts:26
↓ 3 callers
Function
validateChildReferences
(surface, value, ownerId, issues)
skills/a2ui-author/runtime/v0_8/validate.js:384
↓ 3 callers
Function
validateConsolidationEvaluations
(input: { bucketPackets: MeditationConsolidationEvaluationPromptInput["bucketPackets"]; evaluation: Consol
src/meditation/consolidation-context.ts:214
↓ 3 callers
Function
waitFor
( predicate: () => boolean, input: { label: string; timeoutMs?: number; intervalMs?: number;
tests/orchestration/delegated-approval-orchestration.test.ts:278
↓ 3 callers
Function
waitForApprovalRequestCount
( events: Array<{ type: string; approvalId?: string }>, count: number, )
tests/agent/bash-approval.test.ts:123
↓ 3 callers
Function
waitForPromiseResult
( promise: Promise<T>, timeoutMs = 200, )
tests/agent/llm/pi-bridge.test.ts:166
↓ 3 callers
Function
windowsPowerShellShellInfo
()
tests/security/sandbox.windows-timeout.test.ts:215
↓ 3 callers
Function
withHandle
(fn: (handle: TestDatabaseHandle) => Promise<void>)
tests/orchestration/approval-session.test.ts:18
↓ 3 callers
Function
withHandle
(fn: (handle: TestDatabaseHandle) => Promise<void>)
tests/orchestration/main-agent-session.test.ts:11
↓ 3 callers
Function
withOptionalSignal
( input: Omit<CompactionModelRunnerInput, "signal">, signal: AbortSignal | undefined, )
src/agent/compaction.ts:949
↓ 3 callers
Function
writeStoredCodexCredential
(credential: StoredCodexCredential)
src/agent/llm/providers/codex/store.ts:43
↓ 2 callers
Method
activeClientCount
()
src/channels/lark/client.ts:58
↓ 2 callers
Function
addLarkMessageReaction
(input: { client: LarkSdkClient; messageId: string; emojiType: string; })
src/channels/lark/reactions.ts:6
↓ 2 callers
Function
aggregateCounts
(values: string[])
tests/manual/meditation-tool-failure-analysis.ts:464
↓ 2 callers
Function
appendLarkTextNode
(state: LarkInteractiveTextCollection, rawText: string)
src/channels/lark/inbound.ts:2607
↓ 2 callers
Method
appendQueuedSteerMessages
(input: { queuedSteer: SteerInput[]; sessionId: string; conversationId: string; branchId: stri
src/agent/loop.ts:1934
↓ 2 callers
Function
appendReasoningContentWithSeparator
( existing: string, next: string, separator: string, )
src/channels/lark/run-state.ts:663
↓ 2 callers
Method
approveRequestAndGrantScopes
(input: { approvalId: number; grantedBy: "user" | "main_agent"; reasonText?: string | null; de
src/security/service.ts:264
↓ 2 callers
Function
assertExistingDirectoryCwd
(normalizedPath: string)
src/security/sandbox.ts:448
↓ 2 callers
Function
assertNever
(value: never)
src/config/schema.ts:1981
↓ 2 callers
Function
assertObject
(value: unknown, context: string)
src/security/scope.ts:96
↓ 2 callers
Function
assertReferencedType
(surface, componentId, expectedType, ownerId, field, issues)
skills/a2ui-author/runtime/v0_8/validate.js:399
↓ 2 callers
Method
attachCardAnchor
( input: PatchLarkObjectBindingInput & { larkCardId: string; }, )
src/storage/repos/lark-object-bindings.repo.ts:196
↓ 2 callers
Function
attachPublicationIdToCard
(value: unknown, publicationId: string)
src/channels/lark/a2ui.ts:607
↓ 2 callers
Function
basename
(value: string)
src/tools/grep.ts:529
↓ 2 callers
Method
blockTaskExecution
(input: { taskRunId: string; resultSummary?: string | null; resultImages?: TaskCompletionImageAtta
src/orchestration/agent-manager.ts:716
↓ 2 callers
Method
blockTaskExecution
(input: { taskRunId: string; resultSummary?: string | null; resultImages?: TaskCompletionImageAtta
src/tasks/runner.ts:27
↓ 2 callers
Function
buildApprovalAgentIdentitySection
()
src/agent/system-prompt-sections.ts:114
↓ 2 callers
Function
buildApprovalAgentOperatingModelSection
()
src/agent/system-prompt-sections.ts:232
↓ 2 callers
Function
buildApprovalResumePayloadJson
(input: { toolCall: AgentToolCall; turn: number; runId: string; })
src/agent/tool-approval.ts:249
↓ 2 callers
Function
buildApprovalReviewSection
()
src/agent/system-prompt-sections.ts:487
↓ 2 callers
Function
buildBackOnlineUserNotice
(input: { offlineMs: number; missedJobs: MissedCronJobSummary[]; generatedAt: Date; })
src/runtime/back-online.ts:515
↓ 2 callers
Function
buildBackgroundTaskSharedGuidance
()
src/agent/system-prompt-sections.ts:56
↓ 2 callers
Function
buildBashResultTrailingText
(input: { truncated: boolean; hintText?: string | null | undefined; })
src/tools/bash.ts:977
↓ 2 callers
Function
buildBootstrapPrompt
(input: { path: string; content: string })
src/agent/bootstrap.ts:78
↓ 2 callers
Function
buildConsumedActionKey
(sourceComponentId: string, actionName: string)
src/channels/lark/a2ui.ts:794
↓ 2 callers
Function
buildCurrentRunningRuntimeStatus
(input: { storage: StorageDb; now: string; liveRuns: RunLiveObservabilitySnapshot[]; })
src/runtime/current-running-status.ts:102
↓ 2 callers
Method
buildEffectivePermissionsForScopes
( ownerAgentId: string, scopes: PermissionScope[], )
src/security/service.ts:92
↓ 2 callers
Function
buildFilesystemApprovalReason
(scopes: PermissionScope[])
src/tools/helpers/common.ts:208
↓ 2 callers
Function
buildInteractiveUiSection
()
src/agent/system-prompt-sections.ts:657
↓ 2 callers
Method
buildKey
(installationId: string, messageId: string)
src/channels/lark/steer-reaction-state.ts:43
↓ 2 callers
Function
buildLarkMergeForwardMessageNotice
(messageId: string)
src/channels/lark/inbound.ts:2346
↓ 2 callers
Function
buildLarkRenderedModelSwitchCard
( state: LarkModelSwitchCardState, )
src/channels/lark/render/model-switch-card.ts:18
↓ 2 callers
Function
buildMainAgentScheduledTasksSection
()
src/agent/system-prompt-sections.ts:176
↓ 2 callers
Function
buildMainAgentSubagentSection
()
src/agent/system-prompt-sections.ts:141
↓ 2 callers
Function
buildMainAgentSystemPrompt
(input: BuildAgentSystemPromptInput)
src/agent/system-prompt.ts:91
↓ 2 callers
Function
buildMeditationBacktestRunRequest
( input: MeditationBacktestWindowInput, )
src/meditation/backtest.ts:48
↓ 2 callers
Function
buildMeditationBacktestSecurityConfig
( input: BuildMeditationBacktestSecurityConfigInput, )
src/meditation/backtest.ts:110
↓ 2 callers
Function
buildMeditationBucketSystemPrompt
()
src/meditation/prompts.ts:104
↓ 2 callers
Function
buildMeditationBucketUserPrompt
(input: MeditationBucketPromptInput)
src/meditation/prompts.ts:242
↓ 2 callers
Function
buildMeditationConsolidationEvaluationSystemPrompt
()
src/meditation/prompts.ts:264
↓ 2 callers
Function
buildMeditationConsolidationEvaluationUserPrompt
( input: MeditationConsolidationEvaluationPromptInput, )
src/meditation/prompts.ts:332
↓ 2 callers
Function
buildMeditationConsolidationRewriteSystemPrompt
()
src/meditation/prompts.ts:353
↓ 2 callers
Function
buildMeditationConsolidationRewriteUserPrompt
( input: MeditationConsolidationRewritePromptInput, )
src/meditation/prompts.ts:470
↓ 2 callers
Function
buildMeditationDailyNotePath
( localDate: string, workspaceDir = POKOCLAW_WORKSPACE_DIR, )
src/meditation/files.ts:19
↓ 2 callers
Function
buildMeditationDailyRunBlock
(input: BuildMeditationDailyRunBlockInput)
src/meditation/daily-note.ts:52
↓ 2 callers
Function
buildMeditationRunArtifactDir
( localDate: string, runId: string, logsDir = POKOCLAW_LOGS_DIR, )
src/meditation/files.ts:30
↓ 2 callers
Function
buildOversizedRunningState
()
tests/channels/lark/run-card-pagination.test.ts:53
↓ 2 callers
Function
buildPermissionApprovalReason
(scopes: PermissionScope[])
src/security/sandbox.ts:625
↓ 2 callers
Function
buildPiContextMessages
( compactSummary: string | null, messages: Message[], supportsVision: boolean, resolveRuntimeImages?:
src/agent/llm/pi-bridge.ts:583
↓ 2 callers
Function
buildPiTools
( registry: ToolRegistryLike, sessionPurpose?: string, agentKind?: string | null, )
src/agent/llm/pi-bridge.ts:619
↓ 2 callers
Function
buildProjectContextPrompt
(entries: AgentProjectContextEntry[])
src/agent/project-context.ts:253
↓ 2 callers
Function
buildQuizMessages
()
tests/tools/a2ui-publish.test.ts:117
↓ 2 callers
Function
buildRunCardPage
( state: LarkRunState, atoms: RunCardAtom[], options: { pageIndex: number; pageCount: number;
src/channels/lark/render/run-card.ts:367
↓ 2 callers
Function
buildRunningWorkItem
(input: { repos: RuntimeStatusRepos; run: RunLiveObservabilitySnapshot; })
src/runtime/current-running-status.ts:189
↓ 2 callers
Function
buildScheduledTaskSharedGuidance
()
src/agent/system-prompt-sections.ts:40
↓ 2 callers
Function
buildStreamableHttpHeaders
( config: McpStreamableHttpServerConfig, )
src/mcp/transport.ts:33
↓ 2 callers
Function
buildSubagentChatName
(title: string)
src/channels/lark/subagent-provisioner.ts:206
↓ 2 callers
Function
buildSubagentCreationActionToast
(result: ResolveSubagentCreationRequestResult)
src/channels/lark/inbound.ts:1059
↓ 2 callers
Function
buildSubagentProfileSection
(input: SubagentProfilePromptContext = {})
src/agent/system-prompt-sections.ts:499
↓ 2 callers
Function
buildSubagentScheduledTasksSection
()
src/agent/system-prompt-sections.ts:224
↓ 2 callers
Function
buildTaskAgentIdentitySection
()
src/agent/system-prompt-sections.ts:98
↓ 2 callers
Function
buildTaskExecutionSupervisorReminderEnvelope
(input: { runType: string; nextPass: number; maxPasses: number; })
src/tasks/task-session.ts:93
↓ 2 callers
Function
buildToolResultMessage
(input: { seq: number; toolCallId: string; toolName: string; result: ToolResult; isError: boolean;
src/meditation/llm-executor.ts:241
↓ 2 callers
Function
buildUsage
(tokens: TokenBreakdown, cost: Usage["cost"])
src/agent/llm/upstream-openai.ts:863
↓ 2 callers
Function
buildUserMessage
(input: { seq: number; content: string; now: Date; sessionId?: string; })
src/meditation/llm-executor.ts:173
↓ 2 callers
Function
calculateUsageCost
( model: Pick<ResolvedModel, "pricing">, usage: TokenUsage, )
src/agent/llm/models.ts:84
↓ 2 callers
Method
callMcpTool
( context: ToolExecutionContext, connected: NonNullable<ReturnType<McpClientManager["getConnectedServe
src/mcp/tool-source.ts:140
↓ 2 callers
Function
capLarkCardReasoningTail
(value: string, maxChars: number)
src/channels/lark/render/card-truncation.ts:52
↓ 2 callers
Method
checkDatabaseAccess
(input: { ownerAgentId: string; kind: DbPermissionKind; activeAt?: Date; ephemeralScopes?: Per
src/security/service.ts:123
↓ 2 callers
Method
claimRun
(input: { id: string; now: Date; nextRunAt: Date | null | undefined; allowDisabled: boolean;
src/storage/repos/cron-jobs.repo.ts:327
↓ 2 callers
Function
classifyOnlySegment
(command: string)
tests/security/bash-approval-helpers.test.ts:109
↓ 2 callers
Function
classifyRecoverableCardReferenceSendFailure
( error: unknown, )
src/channels/lark/outbound.ts:2488
↓ 2 callers
Method
cleanupProvisionedSubagentSurface
(input: CleanupProvisionedSubagentSurfaceInput)
src/orchestration/subagents.ts:119
↓ 2 callers
Function
cloneJsonContainer
(value)
skills/a2ui-author/runtime/v0_8/json.js:138
↓ 2 callers
Function
cloneMcpConfig
(config: McpConfig)
src/config/schema.ts:1682
↓ 2 callers
Function
cloneMcpServer
(server: McpServerConfig)
src/config/schema.ts:1700
↓ 2 callers
Function
cloneProviderConfig
(provider: ProviderConfig)
src/config/schema.ts:1656
↓ 2 callers
Function
collectAgentToolCalls
(content: AgentAssistantContentBlock[])
src/agent/loop.ts:2308
← previous
next →
801–900 of 2,718, ranked by callers