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
↓ 14 callers
Method
getContext
(sessionId: string)
src/agent/session.ts:30
↓ 14 callers
Method
isActive
(sessionId: string)
src/runtime/cancel.ts:52
↓ 13 callers
Function
buildLarkRenderedApprovalCard
(state: LarkApprovalState)
src/channels/lark/render.ts:108
↓ 13 callers
Function
buildLarkRenderedRunCard
(state: LarkRunState)
src/channels/lark/render/run-card.ts:74
↓ 13 callers
Function
createGrepTool
()
src/tools/grep.ts:84
↓ 13 callers
Function
createMainAgentApprovalSessionId
(input: { sourceSessionId: string; approvalId: number; })
src/orchestration/approval-session.ts:26
↓ 13 callers
Function
jsonToolResult
( json: unknown, details?: TDetails, )
src/tools/core/types.ts:303
↓ 13 callers
Method
listByRunId
(runId: string, limit = 50)
src/storage/repos/harness-events.repo.ts:55
↓ 13 callers
Function
makeTextEvent
(text: string)
tests/channels/lark/inbound/fixtures.ts:52
↓ 13 callers
Method
recordApprovalRequestForYoloSuggestion
( input: RecordApprovalRequestForYoloSuggestionInput, )
src/runtime/runtime-modes.ts:91
↓ 13 callers
Function
requireStringField
( value: Record<string, unknown>, key: string, eventType: string, path: string, )
src/agent/llm/providers/codex/stream.ts:511
↓ 13 callers
Function
seedFixture
(handle: TestDatabaseHandle)
tests/cron/service.test.ts:17
↓ 12 callers
Method
createTaskExecution
(params: CreateTaskExecutionInput)
src/orchestration/agent-manager.ts:198
↓ 12 callers
Method
getConnectedServer
(name: string)
src/mcp/manager.ts:118
↓ 12 callers
Method
getStatusSnapshot
()
src/mcp/manager.ts:108
↓ 12 callers
Function
invalidCodexEvent
(eventType: string, message: string)
src/agent/llm/providers/codex/stream.ts:524
↓ 12 callers
Function
makeAssistantResult
(params: { content: AgentAssistantContentBlock[]; stopReason?: "stop" | "length" | "toolUse" | "error" | "
tests/agent/yolo-autopilot.test.ts:111
↓ 12 callers
Function
makeTaskEnvelope
( event: OrchestratedTaskRunEventEnvelope["event"], )
tests/channels/lark/outbound.test.ts:188
↓ 12 callers
Method
recordStreamDelta
(input: { runId: string; kind: "text" | "reasoning"; deltaText?: string; })
src/agent/loop.ts:471
↓ 12 callers
Function
resolve
()
tests/channels/lark/a2ui.test.ts:1025
↓ 12 callers
Method
scanOnce
()
src/cron/service.ts:265
↓ 12 callers
Function
summarizeParts
(...parts: Array<string | null | undefined>)
src/channels/lark/render/tool-calls.ts:484
↓ 12 callers
Method
toggleYolo
(input: ToggleYoloRuntimeModeInput)
src/runtime/runtime-modes.ts:81
↓ 12 callers
Method
updateStatus
( status: MutableMcpServerStatus, patch: Partial<Omit<MutableMcpServerStatus, "name">>, )
src/mcp/manager.ts:503
↓ 11 callers
Function
blockIndex
()
src/agent/llm/pi-ai-openai-responses-shared.ts:570
↓ 11 callers
Function
buildAppConfigFromInputs
( rawConfigInput: unknown | undefined, rawSecretsInput: unknown | undefined, env: NodeJS.ProcessEnv = pr
src/config/load.ts:46
↓ 11 callers
Function
buildSubagentWorkspaceDir
( agentId: string, subagentWorkspacesDir = POKOCLAW_SUBAGENT_WORKSPACES_DIR, )
src/shared/paths.ts:19
↓ 11 callers
Function
bumpVersionAndSchedule
( deliveryId: string, options?: { immediate?: boolean; delayMs?: number }, )
src/channels/lark/outbound.ts:207
↓ 11 callers
Function
createAssistantEventStream
(events: AssistantMessageEvent[], result: AssistantMessage)
tests/agent/llm/pi-bridge.test.ts:99
↓ 11 callers
Function
createDbPath
(testFileId: string)
tests/storage/migrations.test.ts:322
↓ 11 callers
Function
createLarkApprovalStateFromRequest
(input: { event: ApprovalRequestedEvent; taskRunId?: string | null; taskRunType?: string | null; sourc
src/channels/lark/approval-state.ts:63
↓ 11 callers
Function
createScheduleTaskTool
()
src/tools/cron.ts:72
↓ 11 callers
Method
emitRuntimeEvent
(event: AgentRuntimeEvent)
src/orchestration/agent-manager.ts:780
↓ 11 callers
Function
escapeXmlText
(value: string)
src/tools/helpers/permission-block.ts:298
↓ 11 callers
Function
flushMicrotasks
()
tests/orchestration/agent-manager.test.ts:66
↓ 11 callers
Function
getEnv
( env: NodeJS.ProcessEnv, name: string, options: { maxLength?: number | null } = {}, )
src/runtime/shell-info.ts:219
↓ 11 callers
Method
getNextSeq
(sessionId: string)
src/storage/repos/messages.repo.ts:125
↓ 11 callers
Function
grantFilesystemScope
( handle: TestDatabaseHandle, ownerAgentId: string, scope: { kind: "fs.read" | "fs.write"; path: string
tests/security/sandbox.test.ts:65
↓ 11 callers
Method
markLlmRequestStarted
(input: { runId: string; assistantMessageId: string; at?: Date })
src/runtime/control.ts:229
↓ 11 callers
Function
readComponentRef
(surface, componentId)
skills/a2ui-author/runtime/v0_8/surface.js:80
↓ 11 callers
Function
readNumericField
(value: unknown, path: string[])
src/agent/llm/errors.ts:383
↓ 11 callers
Method
recordUserTimeout
(sessionId: string)
src/runtime/approval-flow.ts:64
↓ 11 callers
Method
runCreatedTaskExecution
(input: { created: CreatedTaskExecution; createdAt?: Date; })
src/tasks/runner.ts:88
↓ 11 callers
Function
streamWithNormalizedUpstreamUsage
( model: Model<Api>, context: Context, options?: SimpleStreamOptions, )
src/agent/llm/upstream-openai.ts:223
↓ 11 callers
Function
validateNonEmptyString
(value: unknown, path: string)
src/config/schema.ts:1831
↓ 11 callers
Function
writeJsonArtifact
(filePath: string, payload: unknown)
src/meditation/runner.ts:764
↓ 11 callers
Function
writeMeditationTextFileAtomic
( filePath: string, content: string, )
src/meditation/files.ts:54
↓ 10 callers
Function
appendUniqueMessage
(messages: string[], candidate: string | undefined)
src/agent/llm/errors.ts:415
↓ 10 callers
Function
createCompletedRunResult
(taskRunId: string)
tests/cron/service.test.ts:45
↓ 10 callers
Function
createLifecycle
(db: TestDatabaseHandle["storage"]["db"])
tests/orchestration/task-runner.test.ts:117
↓ 10 callers
Function
createMockCronAgentManager
( runCreatedTaskExecutionImpl: () => Promise<TaskExecutionRunResult>, createdExecution: CreatedTaskExecuti
tests/cron/service.test.ts:185
↓ 10 callers
Function
createSubmitTurnResult
(args: Record<string, unknown>)
tests/meditation/runner.test.ts:1057
↓ 10 callers
Function
executeSandboxedBash
( input: ExecuteSandboxedBashInput, )
src/security/sandbox.ts:159
↓ 10 callers
Function
flushMicrotasks
()
tests/cron/service.test.ts:211
↓ 10 callers
Function
formatCount
(value: number)
src/runtime/status.ts:642
↓ 10 callers
Method
getRequiredScenarioModel
(scenario: ModelScenario)
src/agent/llm/provider-registry.ts:99
↓ 10 callers
Method
listActiveByOwner
(ownerAgentId: string, activeAt: Date = new Date())
src/storage/repos/permission-grants.repo.ts:53
↓ 10 callers
Function
makeAssistantResult
(params: { content: AgentAssistantContentBlock[]; stopReason?: "stop" | "length" | "toolUse" | "error" | "
tests/agent/bash-approval.test.ts:90
↓ 10 callers
Function
makeMessageEvent
(messageType: string, content: unknown)
tests/channels/lark/inbound/fixtures.ts:35
↓ 10 callers
Function
makeStoredMessage
(overrides: Partial<Message>)
tests/agent/pi-history.test.ts:5
↓ 10 callers
Function
parsePermissionScopeJson
(input: string)
src/security/scope.ts:203
↓ 10 callers
Function
requireHandle
(handle: TestDatabaseHandle | null)
tests/orchestration/task-runner.test.ts:51
↓ 10 callers
Function
seedFixture
(handle: TestDatabaseHandle)
tests/orchestration/task-runner.test.ts:27
↓ 10 callers
Function
truncateLogText
(text: string, maxLength: number)
src/channels/lark/inbound.ts:2691
↓ 10 callers
Method
updateObservability
( runId: string, updater: (state: RunLiveObservabilityState) => RunLiveObservabilityState, )
src/runtime/control.ts:447
↓ 9 callers
Function
bucketIdForAgent
(agentId: string | null)
src/meditation/clustering.ts:281
↓ 9 callers
Function
createMigrationDir
(files: Record<string, string>)
tests/storage/migrations.test.ts:306
↓ 9 callers
Function
executeUnsandboxedBash
( input: ExecuteUnsandboxedBashInput, )
src/security/sandbox.ts:191
↓ 9 callers
Method
findLatestByConversationBranch
( conversationId: string, branchId: string, options: FindLatestSessionByConversationBranchOptions
src/storage/repos/sessions.repo.ts:150
↓ 9 callers
Method
getByIdIncludingDeleted
(id: string)
src/storage/repos/cron-jobs.repo.ts:118
↓ 9 callers
Method
getByOwnerAgentId
(ownerAgentId: string)
src/storage/repos/agent-runtime-modes.repo.ts:38
↓ 9 callers
Method
list
()
src/tools/core/source.ts:12
↓ 9 callers
Function
makeConfig
( servers: Record<string, McpServerConfig>, overrides: Partial<Omit<McpConfig, "servers">> = {}, )
tests/mcp/manager.test.ts:299
↓ 9 callers
Function
makeStoredMessage
(overrides: Partial<Message>)
tests/agent/llm/pi-ai-openai-responses-shared.test.ts:10
↓ 9 callers
Method
markFinished
(input: MarkMeditationFinishedInput)
src/storage/repos/meditation-state.repo.ts:70
↓ 9 callers
Function
normalizeLarkTextMessage
( data: unknown, )
src/channels/lark/inbound.ts:254
↓ 9 callers
Function
readNestedString
(value: unknown, path: string[])
src/agent/llm/upstream-openai.ts:987
↓ 9 callers
Function
renderSingleLineElement
(tagName: string, value: string, indent = 2)
src/tools/helpers/permission-block.ts:226
↓ 9 callers
Method
repo
()
src/cron/service.ts:475
↓ 9 callers
Function
resolveSessionLiveState
(input: { db: StorageDb; sessionId: string; })
src/runtime/live-state.ts:38
↓ 9 callers
Function
resolveString
(value, dataModel)
skills/a2ui-author/runtime/v0_8/json.js:125
↓ 9 callers
Method
submitCreateRequest
(input: CreateSubagentInput)
src/orchestration/subagents.ts:154
↓ 9 callers
Method
subscribe
(listener: RuntimeEventBusListener<TEvent>)
src/runtime/event-bus.ts:25
↓ 9 callers
Function
toTomlString
(value: string)
tests/integration/llm/helpers/fixture.ts:350
↓ 9 callers
Function
truncateLogText
(text: string, maxLength: number = 80)
src/agent/loop.ts:2406
↓ 9 callers
Method
updateDeliveryState
(input: { channelInstallationId: string; internalObjectKind: string; internalObjectId: string;
src/storage/repos/lark-object-bindings.repo.ts:413
↓ 9 callers
Function
validateOptionalBoolean
(value: unknown, fallback: boolean, path: string)
src/config/schema.ts:1847
↓ 8 callers
Function
assertString
(value: unknown, context: string)
src/security/scope.ts:104
↓ 8 callers
Function
buildEffectivePermissionsForRole
( scopes: PermissionScope[], role: AgentRuntimeRole, systemPolicy: SystemPermissionPolicy = DEFAULT_SYST
src/security/permissions.ts:344
↓ 8 callers
Function
buildPermissionDeniedDetails
( payload: PermissionBlockPayload, )
src/tools/helpers/permission-block.ts:70
↓ 8 callers
Function
buildPiMessage
(message: Message, options?: BuildPiMessageOptions)
src/agent/llm/messages.ts:93
↓ 8 callers
Function
collectMappedEvents
(events: Array<Record<string, unknown>>)
tests/agent/llm/providers.codex-stream.test.ts:8
↓ 8 callers
Method
completeTurn
(input: { model: ResolvedModel; systemPrompt?: string; compactSummary: string | null; messages
src/meditation/llm-executor.ts:29
↓ 8 callers
Method
create
(input: CreateSessionInput)
src/storage/repos/sessions.repo.ts:66
↓ 8 callers
Function
createListDirTool
()
src/tools/list-dir.ts:58
↓ 8 callers
Function
createPrivateWorkspaceManager
()
tests/orchestration/subagents.test.ts:25
↓ 8 callers
Function
createReviewPermissionRequestTool
()
src/tools/review-permission-request.ts:30
↓ 8 callers
Function
createStartedTaskRunResult
(input: { sessionId: string; scenario: "task"; completionStatus?: "completed" | "blocked" | "failed";
tests/orchestration/agent-manager.test.ts:18
↓ 8 callers
Function
createStoredUserMessage
(input: { sessionId: string; id: string; seq: number; content: string; createdAt: string; })
tests/integration/llm/helpers/fixture.ts:71
↓ 8 callers
Function
createStoredUserMessage
()
tests/agent/llm/pi-bridge.codex-service-tier.test.ts:52
← previous
next →
101–200 of 2,718, ranked by callers