MCPcopy Create free account

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

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

↓ 6 callersMethoddeleteSession
(id: string)
src/core/session-store.ts:569
↓ 6 callersMethodexists
(name: string)
src/core/profiles.ts:59
↓ 6 callersFunctionformatCost
(cost: number)
src/cli/insights.ts:49
↓ 6 callersFunctionformatTokenDisplay
( promptTokens: number, completionTokens: number, cacheStats?: CacheStats, )
src/cli/formatter.ts:9
↓ 6 callersFunctionformatTokens
(n: number)
src/cli/insights.ts:45
↓ 6 callersFunctiongenerateSessionRecap
( sessionStore: SessionStoreLike, sessionId: string, maxMessages: number = DEFAULT_MAX_MESSAGES, )
src/core/session-resume.ts:23
↓ 6 callersMethodgetAdapter
Get a registered adapter by platform name.
src/gateway/runner.ts:66
↓ 6 callersMethodgetCommands
()
src/core/plugins/capability-registry.ts:84
↓ 6 callersMethodhitRate
* Cache hit rate: cacheRead / (cacheRead + cacheCreation). * Returns 0 when no tokens have been tracked.
src/core/cache-stats.ts:25
↓ 6 callersFunctionjsonResponse
(res: ServerResponse, status: number, body: unknown)
src/server/routes.ts:23
↓ 6 callersMethodlistCheckpoints
(sessionId: string)
src/core/session-store.ts:984
↓ 6 callersMethodlistSessionSummaries
* Like {@link listSessions} but also joins in message/tool-call counts and * aggregated token usage. Used by the `/sessions` CLI listing so operato
src/core/session-store.ts:537
↓ 6 callersMethodload
( manifest: PluginManifest, toolRegistry: ToolRegistry, hookRegistry: HookRegistry, )
src/core/plugins/loader.ts:26
↓ 6 callersMethodload
* Parse a markdown skill file and return a SkillDefinition. * Returns null if the file is malformed or missing required fields.
src/core/skills/loader.ts:29
↓ 6 callersFunctionloadGatewayConfig
( configDir: string = join(homedir(), ".purrfect"), )
src/gateway/config.ts:137
↓ 6 callersMethodloadJobs
()
src/core/cron/store.ts:21
↓ 6 callersFunctionloadRaw
(configDir?: string)
src/cli/toggles.ts:22
↓ 6 callersFunctionloadRuntimeSkills
(options: SkillLayerOptions)
src/core/skills/layers.ts:43
↓ 6 callersFunctionmakeConfig
(overrides: Partial<Config> = {})
test/cli/runtime-context.test.ts:5
↓ 6 callersFunctionmakeEvent
(text: string, source: SessionSource)
test/integration/multi-adapter.test.ts:52
↓ 6 callersFunctionmakeEvent
(text: string, sourceOverrides: Partial<SessionSource> = {})
test/integration/gateway.test.ts:79
↓ 6 callersFunctionmakeProvider
(responses: Array<{ content?: string; toolCall?: { name: string; args: object } }>)
test/core/checkpoint-auto-trigger.test.ts:18
↓ 6 callersFunctionmakeProvider
(mockFetch: typeof fetch)
test/core/agent-loop-approval.test.ts:23
↓ 6 callersFunctionmakeRouterConfig
( overrides?: Partial<ModelRouterConfig>, )
test/core/router.test.ts:6
↓ 6 callersFunctionmakeRunner
(behavior: PurrfectAgentRunner["runTurn"])
test/acp/server.test.ts:53
↓ 6 callersFunctionmakeTool
( name: string, handler?: (args: Record<string, unknown>) => Promise<string>, )
test/core/agent-loop-approval.test.ts:30
↓ 6 callersMethodmoveDown
Move selection down. Wraps within visible range.
src/cli/dropdown.ts:71
↓ 6 callersMethodnext
()
test/acp/server.test.ts:36
↓ 6 callersFunctionparseSlashCommand
( input: string, )
src/cli/commands/registry.ts:44
↓ 6 callersFunctionreadConfig
(dir: string)
test/cli/mcp.test.ts:28
↓ 6 callersFunctionregisterAllCommands
(registry: CommandRegistry)
src/cli/commands/index.ts:16
↓ 6 callersMethodresolve
(uri: string)
src/core/context-references.ts:76
↓ 6 callersMethodsave
()
src/core/credential-pool.ts:167
↓ 6 callersMethodsaveJob
(job: CronJob)
src/core/cron/store.ts:33
↓ 6 callersMethodsetPaused
Set paused flag on an existing job. Returns the updated job, or null if not found.
src/core/cron/store.ts:54
↓ 6 callersFunctionstubCommand
(overrides: Partial<CommandDef> = {})
test/cli/commands.test.ts:13
↓ 6 callersMethodswitchModel
Switch the primary model to one already in the chain by name.
src/core/router.ts:76
↓ 6 callersFunctiontoolCallForResult
( msg: Message, callIndex: Map<string, IndexedToolCall>, )
src/core/trajectory-compressor.ts:436
↓ 6 callersMethodtrack
Track a resolved secret value for redaction.
src/core/secrets.ts:113
↓ 6 callersMethodwrite
(msg: JsonRpcMessage)
src/acp/jsonrpc.ts:166
↓ 5 callersFunctionapplyAnthropicPromptCaching
( payload: T, options?: PromptCachingOptions, )
src/core/prompt-caching.ts:36
↓ 5 callersFunctionapplyEnabledTools
( server: McpServerConfig, tools: string[] | undefined, )
src/cli/mcp.ts:165
↓ 5 callersMethodapproveForSession
* Approve a specific tool+command combination for the current session.
src/core/permissions.ts:198
↓ 5 callersFunctionautoInstallDefaultSkills
( options: AutoInstallSkillsOptions, )
src/cli/setup.ts:127
↓ 5 callersFunctionblocked
(id: string, reason: string)
src/core/safety/url-policy.ts:47
↓ 5 callersMethodbrowse
()
src/core/skills/hub.ts:123
↓ 5 callersFunctionbuildBanner
(options: BannerOptions)
src/cli/banner.ts:76
↓ 5 callersFunctionbuildPermissionModel
(config: Config)
src/cli/runtime.ts:86
↓ 5 callersFunctionbuildRegistry
()
test/cli/commands-handlers.test.ts:33
↓ 5 callersMethodcalculateBackoff
* Calculate exponential backoff delay for reconnection. * @param attempts Number of consecutive failed attempts. * @param baseMs Base dela
src/gateway/health.ts:97
↓ 5 callersMethodchatStream
* Send a streaming chat request with fallback. * Note: fallback only kicks in if the initial request errors * (i.e., before streaming begins). M
src/core/router.ts:100
↓ 5 callersFunctioncompressTrajectory
( messages: Message[], options: TrajectoryCompressionOptions = {}, )
src/core/trajectory-compressor.ts:343
↓ 5 callersMethodconnect
()
src/core/mcp/client.ts:72
↓ 5 callersMethodconsume
()
src/core/agent-loop.ts:64
↓ 5 callersFunctioncreateExitPlanModeTool
( options: PlanModeToolOptions, )
src/core/tools/plan-mode.ts:61
↓ 5 callersFunctioncreateMockContext
(overrides: Partial<CommandContext> = {})
test/cli/commands-handlers.test.ts:10
↓ 5 callersFunctioncreateMockContext
(memoriesDir?: string)
test/cli/commands-memory.test.ts:7
↓ 5 callersFunctioncreateServer
(options: ServerOptions)
src/server/index.ts:119
↓ 5 callersFunctiondefaultConfig
()
src/cli/config.ts:28
↓ 5 callersMethoddeliver
(line: string)
test/acp/server.test.ts:46
↓ 5 callersMethodderegister
(name: string)
src/core/tool-registry.ts:40
↓ 5 callersMethoddisable
Mark a tool as disabled. Returns false when no such tool exists.
src/core/tool-registry.ts:65
↓ 5 callersFunctionevaluatePairing
( store: PairingStore, platform: string, userId: string, options: { requireApproval: boolean; userName
src/gateway/acl.ts:279
↓ 5 callersFunctionextractProfileFlag
(args: string[])
src/cli/index.ts:90
↓ 5 callersFunctionfakeProvider
(content: string | null)
test/core/title-generator.test.ts:8
↓ 5 callersMethodfire
(event: string, data: unknown)
src/core/plugins/hooks.ts:28
↓ 5 callersFunctionformatError
(message: string)
src/cli/formatter.ts:103
↓ 5 callersFunctionformatToolCall
( name: string, args: Record<string, unknown>, )
src/cli/formatter.ts:76
↓ 5 callersMethodfreezeSnapshot
* Freeze the current memory state. After calling this, getSnapshot() * returns the frozen version to keep the system prompt stable for * Anthrop
src/core/memory/store.ts:55
↓ 5 callersMethodgetDefinition
(name: string)
src/core/tool-registry.ts:83
↓ 5 callersMethodgetPreviousSummary
Last structured summary generated by this compressor, without the prefix banner.
src/core/compressor.ts:246
↓ 5 callersMethodgetTokenUsage
(sessionId: string)
src/core/session-store.ts:735
↓ 5 callersFunctionloadServers
(configDir: string)
src/cli/mcp.ts:33
↓ 5 callersFunctionmakeAnthropicSSE
( events: Array<{ event: string; data: Record<string, unknown> }>, )
test/core/anthropic-stream-parser.test.ts:14
↓ 5 callersFunctionmakeCheckpointManager
()
test/core/checkpoint-auto-trigger.test.ts:61
↓ 5 callersFunctionmakeEvent
(text: string, overrides?: Partial<SessionSource>)
test/gateway/clarify.test.ts:58
↓ 5 callersFunctionmakeMessage
(overrides: Record<string, unknown> = {})
test/gateway/adapters/discord.test.ts:51
↓ 5 callersFunctionmakeSkill
( name: string, opts: { triggers?: string[]; description?: string } = {}, )
test/cli/skills-runtime.test.ts:28
↓ 5 callersFunctionmakeTempTree
Create a temp directory tree and return cleanup function
test/core/prompt-builder-v4.test.ts:8
↓ 5 callersFunctionmakeTool
(name: string, handler?: (args: Record<string, unknown>) => Promise<string>)
test/core/agent-loop-plan-mode.test.ts:20
↓ 5 callersFunctionmcpConfigure
( action: Extract<McpAction, { kind: "configure" }>, ctx: McpCommandContext = {}, )
src/cli/mcp.ts:176
↓ 5 callersMethodnext
Wait for the next line written by the peer to the writable side.
test/acp/jsonrpc.test.ts:84
↓ 5 callersFunctionparseAnthropicSSEStream
( body: ReadableStream<Uint8Array>, )
src/core/anthropic-stream-parser.ts:11
↓ 5 callersFunctionparseFrames
(buffer: { value: string }, chunk: string)
src/acp/jsonrpc.ts:73
↓ 5 callersFunctionparseLastWindowSeconds
(value: string | undefined)
src/core/insights.ts:45
↓ 5 callersFunctionpersist
(config: Config, servers: McpServerConfig[], configDir: string)
src/cli/mcp.ts:42
↓ 5 callersMethodrecordTurn
(turn: { session_id: string; model?: string | null; model_tier?: string | null; input_tokens:
src/core/agent-loop.ts:81
↓ 5 callersMethodregister
(event: string, handler: HookHandler)
src/core/plugins/hooks.ts:19
↓ 5 callersFunctionrequired
(value: string | undefined, name: string)
src/cli/auth.ts:73
↓ 5 callersFunctionresolveProfileDir
(opts: { baseDir?: string; profileOverride?: string; } = {})
src/core/profiles.ts:179
↓ 5 callersFunctionretryOnBusy
(fn: () => T, options: RetryBusyOptions = {})
src/core/session-store.ts:360
↓ 5 callersFunctionsetup
()
test/core/plugins/discovery.test.ts:12
↓ 5 callersFunctionsetup
()
test/core/skills/loader.test.ts:11
↓ 5 callersFunctionsetup
()
test/gateway/delivery.test.ts:31
↓ 5 callersFunctionstripProfileFlag
(argv: string[])
src/cli/index.ts:105
↓ 5 callersFunctiontempPath
()
test/core/context-references.test.ts:18
↓ 5 callersFunctiontoReadableStream
(text: string)
test/core/stream-parser.test.ts:6
↓ 5 callersFunctiontoolCall
(id, name, args)
benchmarks/trajectory-compressor-benchmark.mjs:220
↓ 5 callersFunctionvalidateSafeName
(name: string, label: string)
src/core/skills/hub.ts:511
↓ 5 callersFunctionwriteSkillFile
(name: string, content: string)
test/core/skills/loader.test.ts:22
← previousnext →201–300 of 1,175, ranked by callers