MCPcopy Create free account

hub / github.com/Pieverse-Eng/purrfect-agent / functions

Functions1,175 in github.com/Pieverse-Eng/purrfect-agent

↓ 11 callersMethodrecordTokenUsage
(sessionId: string, usage: { input_tokens: number; output_tokens: number; cache_read_input_tokens?
src/core/agent-loop.ts:75
↓ 11 callersFunctionrunUserHooks
( cfg: UserHooksConfig | undefined, phase: UserHookPhase, ctx: HookRunContext, )
src/core/user-hooks.ts:102
↓ 11 callersFunctionskillsCommand
( args: string, context: SkillsCommandContext = {}, )
src/cli/skills.ts:11
↓ 11 callersMethodstop
Stop all scheduled tasks.
src/core/cron/scheduler.ts:137
↓ 11 callersFunctionwriteSkillFile
(dir: string, name: string, content: string)
test/core/skills/registry.test.ts:22
↓ 10 callersMethodapprove
* Approve a pending entry by its code. Returns the updated entry on * success; throws when the code does not match a pending entry. The * caller
src/gateway/acl.ts:178
↓ 10 callersFunctioncheckUrlPolicy
(url: string, options: UrlPolicyOptions = {})
src/core/safety/url-policy.ts:16
↓ 10 callersFunctioncollectEvents
(iter: AsyncIterable<AgentEvent>)
test/core/delegate.test.ts:23
↓ 10 callersFunctioncreateMemoryTool
(opts: MemoryToolOptions = {})
src/core/tools/memory.ts:44
↓ 10 callersFunctioncreateSessionAdapter
( opts: CreateSessionAdapterOptions, )
src/acp/session-adapter.ts:100
↓ 10 callersFunctioncreateSkillManageTool
(options: SkillManageToolOptions)
src/core/tools/skill-manage.ts:9
↓ 10 callersFunctionestimateCostUsd
( model: string | null | undefined, usage: UsageBreakdown, )
src/core/model-metadata.ts:171
↓ 10 callersMethodgetAllSkillNames
Return all registered skill names.
src/core/skills/registry.ts:75
↓ 10 callersMethodgetAllSkills
Return all registered skill definitions.
src/core/skills/registry.ts:80
↓ 10 callersMethodhasBeenRead
Check whether a file has been read in this session.
src/core/tools/file-state-cache.ts:38
↓ 10 callersMethodlistTaps
()
src/core/skills/hub.ts:119
↓ 10 callersFunctionmakeMessages
Helper: build alternating user/assistant messages.
test/core/compressor.test.ts:11
↓ 10 callersFunctionmakeProvider
(mockFetch: typeof fetch)
test/integration/todo-write-e2e.test.ts:28
↓ 10 callersFunctionparseMcpArgs
(args: string[])
src/cli/mcp-args.ts:26
↓ 10 callersMethodread
()
src/gateway/acl.ts:83
↓ 10 callersFunctionrunProfileCommand
( action: ProfileAction, deps: ProfileCommandDeps = {}, )
src/cli/profiles.ts:54
↓ 10 callersFunctionrunWebhookCommand
( action: WebhookAction, deps: WebhookCommandDeps = {}, )
src/cli/webhook.ts:138
↓ 10 callersMethodsend
(msg: object)
test/integration/acp-runner-e2e.test.ts:71
↓ 10 callersMethodsetTodos
(sessionId: string, todos: TodoItem[])
src/core/session-store.ts:597
↓ 10 callersMethodspawn
Spawn a pending task — transitions to running and invokes spawnFn.
src/core/tasks/runner.ts:108
↓ 10 callersFunctiontempConfigDir
(seed?: { mcpServers?: any[] })
test/cli/mcp.test.ts:16
↓ 9 callersMethoddownload
* Download a URL to `cacheDir/{hash}.{ext}`. * Returns the local file path, or null on failure. * If the file is already cached, returns the cac
src/gateway/media.ts:54
↓ 9 callersFunctionestimateTotalTokens
(messages: Message[])
src/core/compressor.ts:130
↓ 9 callersFunctionexecSandboxed
( command: string, options: SandboxOptions & { timeout: number }, )
src/core/sandbox/index.ts:90
↓ 9 callersMethodgetCheckpoint
(id: string)
src/core/session-store.ts:976
↓ 9 callersMethodisVisible
Whether the menu is currently displayed.
src/cli/dropdown.ts:85
↓ 9 callersMethodnoteWrite
()
src/core/session-store.ts:441
↓ 9 callersMethodrecordRead
Record that a file was read (or just written) with the given state.
src/core/tools/file-state-cache.ts:25
↓ 9 callersFunctionrequired
(value: string | undefined, name: string)
src/cli/skills.ts:166
↓ 9 callersMethodsend
(chatId: string, content: string)
src/gateway/adapters/line.ts:103
↓ 9 callersMethodshutdown
For tests / lifecycle management.
src/acp/server.ts:187
↓ 9 callersFunctiontempStore
(opts: { generateCode?: () => string; now?: () => number; } = {})
test/gateway/acl.test.ts:12
↓ 9 callersFunctiontoolCall
(id: string, name: string, args: Record<string, unknown>)
test/core/trajectory-compressor.test.ts:9
↓ 9 callersFunctiontoolResult
(id: string, content: unknown)
test/core/trajectory-compressor.test.ts:24
↓ 9 callersMethodupdate
(id: string, patch: Partial<Pick<TaskRecord, "status" | "completedAt">>)
src/core/tasks/store.ts:42
↓ 8 callersMethodacquire
(provider: CredentialProvider)
src/core/credential-pool.ts:70
↓ 8 callersFunctionagentEnvPath
(configDir?: string)
src/cli/onboard.ts:69
↓ 8 callersFunctionassistantCall
(...calls: ToolCall[])
test/core/trajectory-compressor.test.ts:20
↓ 8 callersFunctionauthCommand
( args: string, context: AuthCommandContext = {}, )
src/cli/auth.ts:10
↓ 8 callersFunctionbuildSdkModule
Build a fake SDK module for dynamic import mocking
test/core/mcp/client.test.ts:34
↓ 8 callersFunctionbuildSessionKey
( source: SessionSource, groupPerUser: boolean = true, )
src/gateway/session-keys.ts:19
↓ 8 callersMethodclear
Clear all entries (useful for testing).
src/core/tools/file-state-cache.ts:43
↓ 8 callersFunctioncreateGatewayPermissions
( options?: { allowedPaths?: string[] }, )
src/core/permissions.ts:242
↓ 8 callersFunctionentryKey
(platform: string, userId: string)
src/gateway/acl.ts:44
↓ 8 callersFunctionfakeTool
(name: string)
test/core/tool-registry-enable.test.ts:5
↓ 8 callersFunctionfindResponse
(pair: StreamPair, id: number | string)
test/integration/acp-runner-e2e.test.ts:89
↓ 8 callersMethodgetActive
Read the persisted active profile, falling back to env / default.
src/core/profiles.ts:130
↓ 8 callersFunctiongetStorePath
(configDir?: string)
src/cli/cron.ts:21
↓ 8 callersFunctionmakeFetchMock
(handler: (input: Request) => Response | Promise<Response>)
test/core/memory/backend.test.ts:49
↓ 8 callersFunctionmakeMockClient
(tools: Array<{ name: string; description?: string; inputSchema: Record<string, unknown> }> = [])
test/core/mcp/client.test.ts:20
↓ 8 callersFunctionmakeMockTransport
* We mock the MCP SDK so tests never spawn real servers. * The McpClient uses dynamic import internally — we intercept that.
test/core/mcp/client.test.ts:9
↓ 8 callersFunctionmakeProvider
(mockFetch: typeof fetch)
test/integration/full-loop.test.ts:25
↓ 8 callersFunctionmatchesMatcher
(toolName: string, matcher: string)
src/core/user-hooks.ts:51
↓ 8 callersFunctionmaybeRegister
(tool: { name: string } & Parameters<ToolRegistry["registerBuiltin"]>[0])
src/core/tools/index.ts:100
↓ 8 callersFunctionparseProfileArgs
(args: string[])
src/cli/profiles.ts:28
↓ 8 callersMethodrecordUsage
Record token usage from a single API response.
src/core/cache-stats.ts:15
↓ 8 callersFunctionrunOnboard
(options: OnboardOptions = {})
src/cli/onboard.ts:88
↓ 8 callersFunctionsanitizeToolResultObject
( result: T, options: { scanKeys?: string[]; redactKeys?: string[]; action?: SafetyAction; }
src/core/safety/redact.ts:56
↓ 8 callersFunctionseedSession
(id: string, opts?: { ageDays?: number; messages?: number })
test/cli/sessions-ops.test.ts:26
↓ 8 callersMethodsend
(chatId: string, content: string)
test/gateway/clarify.test.ts:27
↓ 8 callersMethodshow
* Filter commands matching `partial` (without the leading "/") and show the menu. * If no matches, hides the menu instead.
src/cli/dropdown.ts:38
↓ 8 callersFunctionsimulatePost
* Simulates a POST that is expected to complete synchronously (e.g. error responses).
test/gateway/adapters/webhook.test.ts:84
↓ 7 callersFunctionask
(rl: readline.Interface, question: string, defaultValue: string)
src/cli/setup.ts:12
↓ 7 callersFunctioncollectEvents
(iter: AsyncIterable<AgentEvent>)
test/integration/full-loop.test.ts:32
↓ 7 callersFunctioncreateCheckpointCreateTool
( options: CheckpointCreateToolOptions, )
src/core/tools/checkpoint-create.ts:24
↓ 7 callersFunctioncreatePurrfectRunner
(opts: CreatePurrfectRunnerOptions)
src/cli/acp.ts:94
↓ 7 callersFunctioncreateSendMessageTool
( routerOrOptions: DeliveryRouter | SendMessageToolOptions, )
src/core/tools/send-message.ts:28
↓ 7 callersFunctioncreateSessionSearchTool
(store: SessionStore)
src/core/tools/session-search.ts:10
↓ 7 callersMethodemit
Expose emitMessage so tests can inject inbound events.
test/integration/gateway.test.ts:53
↓ 7 callersMethodendSession
(id: string)
src/core/session-store.ts:509
↓ 7 callersFunctiongenerateSessionTitle
( options: GenerateTitleOptions, )
src/core/title-generator.ts:94
↓ 7 callersMethodhide
Clear the rendered menu lines and reset visibility.
src/cli/dropdown.ts:53
↓ 7 callersMethodinterrupt
* Handle a SIGINT. * * - First call: aborts the current controller and sets the interrupted marker. * - Second call within `FORCE_EXIT_WINDOW
src/cli/interrupt.ts:37
↓ 7 callersFunctionisSqliteBusyError
(err: unknown)
src/core/session-store.ts:332
↓ 7 callersFunctionmakeProvider
(mockFetch: typeof fetch)
test/core/agent-loop-plan-mode.test.ts:13
↓ 7 callersFunctionmakeRegistry
(toolName = "noop", result = "ok")
test/core/checkpoint-auto-trigger.test.ts:50
↓ 7 callersFunctionmakeTempTree
Create a temp directory tree and return cleanup function
test/core/prompt-builder.test.ts:8
↓ 7 callersFunctionparseDuration
(input: string)
src/cli/sessions.ts:322
↓ 7 callersFunctionparseSSEStream
( body: ReadableStream<Uint8Array>, )
src/core/stream-parser.ts:10
↓ 7 callersFunctionpruneToolResults
( messages: Message[], opts: PruneToolResultsOptions = {}, )
src/core/compressor.ts:152
↓ 7 callersMethodregisterCapabilities
(pluginName: string, capabilities: PluginCapabilities)
src/core/plugins/capability-registry.ts:49
↓ 7 callersFunctionrequired
(flag: string, value: string | undefined)
src/cli/webhook.ts:126
↓ 7 callersFunctionresolveSecret
(ref: SecretRef)
src/core/secrets.ts:31
↓ 7 callersFunctionrunPairingCommand
( action: PairingAction, ctx: PairingCommandContext = {}, )
src/cli/pairing.ts:39
↓ 7 callersMethodrunTurn
* Run a single conversation turn. Implementations call `onUpdate` for each * incremental delta (assistant text, tool call lifecycle) and resolve wh
src/acp/session-adapter.ts:82
↓ 7 callersFunctionsaveConfig
(config: CliConfig, configDir?: string)
src/cli/config.ts:93
↓ 7 callersMethodsetActive
(name: string | undefined)
src/core/profiles.ts:136
↓ 7 callersFunctionshortId
(id: string)
src/cli/cron.ts:42
↓ 7 callersMethodwithRetry
(fn: () => T)
src/core/session-store.ts:420
↓ 6 callersMethodaddAdapter
* Register an adapter for a platform name. * Must be called before `start()`.
src/gateway/runner.ts:28
↓ 6 callersFunctionbuildInsights
( store: Pick<SessionStore, "listTurns" | "listTurnsSince">, options: InsightsOptions = {}, )
src/core/insights.ts:156
↓ 6 callersFunctioncollectEvents
( iter: AsyncIterable<AgentEvent>, )
test/integration/todo-write-e2e.test.ts:35
↓ 6 callersFunctioncollectEvents
(iter: AsyncIterable<AgentEvent>)
test/core/agent-loop-plan-mode.test.ts:32
↓ 6 callersFunctioncollectEvents
( iter: AsyncIterable<AgentEvent>, )
test/core/agent-loop-approval.test.ts:49
↓ 6 callersFunctioncreateClarifyTool
(options?: ClarifyToolOptions)
src/core/tools/clarify.ts:33
← previousnext →101–200 of 1,175, ranked by callers