Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Pieverse-Eng/purrfect-agent
/ functions
Functions
1,175 in github.com/Pieverse-Eng/purrfect-agent
⨍
Functions
1,175
◇
Types & classes
398
↓ 6 callers
Method
deleteSession
(id: string)
src/core/session-store.ts:569
↓ 6 callers
Method
exists
(name: string)
src/core/profiles.ts:59
↓ 6 callers
Function
formatCost
(cost: number)
src/cli/insights.ts:49
↓ 6 callers
Function
formatTokenDisplay
( promptTokens: number, completionTokens: number, cacheStats?: CacheStats, )
src/cli/formatter.ts:9
↓ 6 callers
Function
formatTokens
(n: number)
src/cli/insights.ts:45
↓ 6 callers
Function
generateSessionRecap
( sessionStore: SessionStoreLike, sessionId: string, maxMessages: number = DEFAULT_MAX_MESSAGES, )
src/core/session-resume.ts:23
↓ 6 callers
Method
getAdapter
Get a registered adapter by platform name.
src/gateway/runner.ts:66
↓ 6 callers
Method
getCommands
()
src/core/plugins/capability-registry.ts:84
↓ 6 callers
Method
hitRate
* Cache hit rate: cacheRead / (cacheRead + cacheCreation). * Returns 0 when no tokens have been tracked.
src/core/cache-stats.ts:25
↓ 6 callers
Function
jsonResponse
(res: ServerResponse, status: number, body: unknown)
src/server/routes.ts:23
↓ 6 callers
Method
listCheckpoints
(sessionId: string)
src/core/session-store.ts:984
↓ 6 callers
Method
listSessionSummaries
* 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 callers
Method
load
( manifest: PluginManifest, toolRegistry: ToolRegistry, hookRegistry: HookRegistry, )
src/core/plugins/loader.ts:26
↓ 6 callers
Method
load
* 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 callers
Function
loadGatewayConfig
( configDir: string = join(homedir(), ".purrfect"), )
src/gateway/config.ts:137
↓ 6 callers
Method
loadJobs
()
src/core/cron/store.ts:21
↓ 6 callers
Function
loadRaw
(configDir?: string)
src/cli/toggles.ts:22
↓ 6 callers
Function
loadRuntimeSkills
(options: SkillLayerOptions)
src/core/skills/layers.ts:43
↓ 6 callers
Function
makeConfig
(overrides: Partial<Config> = {})
test/cli/runtime-context.test.ts:5
↓ 6 callers
Function
makeEvent
(text: string, source: SessionSource)
test/integration/multi-adapter.test.ts:52
↓ 6 callers
Function
makeEvent
(text: string, sourceOverrides: Partial<SessionSource> = {})
test/integration/gateway.test.ts:79
↓ 6 callers
Function
makeProvider
(responses: Array<{ content?: string; toolCall?: { name: string; args: object } }>)
test/core/checkpoint-auto-trigger.test.ts:18
↓ 6 callers
Function
makeProvider
(mockFetch: typeof fetch)
test/core/agent-loop-approval.test.ts:23
↓ 6 callers
Function
makeRouterConfig
( overrides?: Partial<ModelRouterConfig>, )
test/core/router.test.ts:6
↓ 6 callers
Function
makeRunner
(behavior: PurrfectAgentRunner["runTurn"])
test/acp/server.test.ts:53
↓ 6 callers
Function
makeTool
( name: string, handler?: (args: Record<string, unknown>) => Promise<string>, )
test/core/agent-loop-approval.test.ts:30
↓ 6 callers
Method
moveDown
Move selection down. Wraps within visible range.
src/cli/dropdown.ts:71
↓ 6 callers
Method
next
()
test/acp/server.test.ts:36
↓ 6 callers
Function
parseSlashCommand
( input: string, )
src/cli/commands/registry.ts:44
↓ 6 callers
Function
readConfig
(dir: string)
test/cli/mcp.test.ts:28
↓ 6 callers
Function
registerAllCommands
(registry: CommandRegistry)
src/cli/commands/index.ts:16
↓ 6 callers
Method
resolve
(uri: string)
src/core/context-references.ts:76
↓ 6 callers
Method
save
()
src/core/credential-pool.ts:167
↓ 6 callers
Method
saveJob
(job: CronJob)
src/core/cron/store.ts:33
↓ 6 callers
Method
setPaused
Set paused flag on an existing job. Returns the updated job, or null if not found.
src/core/cron/store.ts:54
↓ 6 callers
Function
stubCommand
(overrides: Partial<CommandDef> = {})
test/cli/commands.test.ts:13
↓ 6 callers
Method
switchModel
Switch the primary model to one already in the chain by name.
src/core/router.ts:76
↓ 6 callers
Function
toolCallForResult
( msg: Message, callIndex: Map<string, IndexedToolCall>, )
src/core/trajectory-compressor.ts:436
↓ 6 callers
Method
track
Track a resolved secret value for redaction.
src/core/secrets.ts:113
↓ 6 callers
Method
write
(msg: JsonRpcMessage)
src/acp/jsonrpc.ts:166
↓ 5 callers
Function
applyAnthropicPromptCaching
( payload: T, options?: PromptCachingOptions, )
src/core/prompt-caching.ts:36
↓ 5 callers
Function
applyEnabledTools
( server: McpServerConfig, tools: string[] | undefined, )
src/cli/mcp.ts:165
↓ 5 callers
Method
approveForSession
* Approve a specific tool+command combination for the current session.
src/core/permissions.ts:198
↓ 5 callers
Function
autoInstallDefaultSkills
( options: AutoInstallSkillsOptions, )
src/cli/setup.ts:127
↓ 5 callers
Function
blocked
(id: string, reason: string)
src/core/safety/url-policy.ts:47
↓ 5 callers
Method
browse
()
src/core/skills/hub.ts:123
↓ 5 callers
Function
buildBanner
(options: BannerOptions)
src/cli/banner.ts:76
↓ 5 callers
Function
buildPermissionModel
(config: Config)
src/cli/runtime.ts:86
↓ 5 callers
Function
buildRegistry
()
test/cli/commands-handlers.test.ts:33
↓ 5 callers
Method
calculateBackoff
* Calculate exponential backoff delay for reconnection. * @param attempts Number of consecutive failed attempts. * @param baseMs Base dela
src/gateway/health.ts:97
↓ 5 callers
Method
chatStream
* 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 callers
Function
compressTrajectory
( messages: Message[], options: TrajectoryCompressionOptions = {}, )
src/core/trajectory-compressor.ts:343
↓ 5 callers
Method
connect
()
src/core/mcp/client.ts:72
↓ 5 callers
Method
consume
()
src/core/agent-loop.ts:64
↓ 5 callers
Function
createExitPlanModeTool
( options: PlanModeToolOptions, )
src/core/tools/plan-mode.ts:61
↓ 5 callers
Function
createMockContext
(overrides: Partial<CommandContext> = {})
test/cli/commands-handlers.test.ts:10
↓ 5 callers
Function
createMockContext
(memoriesDir?: string)
test/cli/commands-memory.test.ts:7
↓ 5 callers
Function
createServer
(options: ServerOptions)
src/server/index.ts:119
↓ 5 callers
Function
defaultConfig
()
src/cli/config.ts:28
↓ 5 callers
Method
deliver
(line: string)
test/acp/server.test.ts:46
↓ 5 callers
Method
deregister
(name: string)
src/core/tool-registry.ts:40
↓ 5 callers
Method
disable
Mark a tool as disabled. Returns false when no such tool exists.
src/core/tool-registry.ts:65
↓ 5 callers
Function
evaluatePairing
( store: PairingStore, platform: string, userId: string, options: { requireApproval: boolean; userName
src/gateway/acl.ts:279
↓ 5 callers
Function
extractProfileFlag
(args: string[])
src/cli/index.ts:90
↓ 5 callers
Function
fakeProvider
(content: string | null)
test/core/title-generator.test.ts:8
↓ 5 callers
Method
fire
(event: string, data: unknown)
src/core/plugins/hooks.ts:28
↓ 5 callers
Function
formatError
(message: string)
src/cli/formatter.ts:103
↓ 5 callers
Function
formatToolCall
( name: string, args: Record<string, unknown>, )
src/cli/formatter.ts:76
↓ 5 callers
Method
freezeSnapshot
* 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 callers
Method
getDefinition
(name: string)
src/core/tool-registry.ts:83
↓ 5 callers
Method
getPreviousSummary
Last structured summary generated by this compressor, without the prefix banner.
src/core/compressor.ts:246
↓ 5 callers
Method
getTokenUsage
(sessionId: string)
src/core/session-store.ts:735
↓ 5 callers
Function
loadServers
(configDir: string)
src/cli/mcp.ts:33
↓ 5 callers
Function
makeAnthropicSSE
( events: Array<{ event: string; data: Record<string, unknown> }>, )
test/core/anthropic-stream-parser.test.ts:14
↓ 5 callers
Function
makeCheckpointManager
()
test/core/checkpoint-auto-trigger.test.ts:61
↓ 5 callers
Function
makeEvent
(text: string, overrides?: Partial<SessionSource>)
test/gateway/clarify.test.ts:58
↓ 5 callers
Function
makeMessage
(overrides: Record<string, unknown> = {})
test/gateway/adapters/discord.test.ts:51
↓ 5 callers
Function
makeSkill
( name: string, opts: { triggers?: string[]; description?: string } = {}, )
test/cli/skills-runtime.test.ts:28
↓ 5 callers
Function
makeTempTree
Create a temp directory tree and return cleanup function
test/core/prompt-builder-v4.test.ts:8
↓ 5 callers
Function
makeTool
(name: string, handler?: (args: Record<string, unknown>) => Promise<string>)
test/core/agent-loop-plan-mode.test.ts:20
↓ 5 callers
Function
mcpConfigure
( action: Extract<McpAction, { kind: "configure" }>, ctx: McpCommandContext = {}, )
src/cli/mcp.ts:176
↓ 5 callers
Method
next
Wait for the next line written by the peer to the writable side.
test/acp/jsonrpc.test.ts:84
↓ 5 callers
Function
parseAnthropicSSEStream
( body: ReadableStream<Uint8Array>, )
src/core/anthropic-stream-parser.ts:11
↓ 5 callers
Function
parseFrames
(buffer: { value: string }, chunk: string)
src/acp/jsonrpc.ts:73
↓ 5 callers
Function
parseLastWindowSeconds
(value: string | undefined)
src/core/insights.ts:45
↓ 5 callers
Function
persist
(config: Config, servers: McpServerConfig[], configDir: string)
src/cli/mcp.ts:42
↓ 5 callers
Method
recordTurn
(turn: { session_id: string; model?: string | null; model_tier?: string | null; input_tokens:
src/core/agent-loop.ts:81
↓ 5 callers
Method
register
(event: string, handler: HookHandler)
src/core/plugins/hooks.ts:19
↓ 5 callers
Function
required
(value: string | undefined, name: string)
src/cli/auth.ts:73
↓ 5 callers
Function
resolveProfileDir
(opts: { baseDir?: string; profileOverride?: string; } = {})
src/core/profiles.ts:179
↓ 5 callers
Function
retryOnBusy
(fn: () => T, options: RetryBusyOptions = {})
src/core/session-store.ts:360
↓ 5 callers
Function
setup
()
test/core/plugins/discovery.test.ts:12
↓ 5 callers
Function
setup
()
test/core/skills/loader.test.ts:11
↓ 5 callers
Function
setup
()
test/gateway/delivery.test.ts:31
↓ 5 callers
Function
stripProfileFlag
(argv: string[])
src/cli/index.ts:105
↓ 5 callers
Function
tempPath
()
test/core/context-references.test.ts:18
↓ 5 callers
Function
toReadableStream
(text: string)
test/core/stream-parser.test.ts:6
↓ 5 callers
Function
toolCall
(id, name, args)
benchmarks/trajectory-compressor-benchmark.mjs:220
↓ 5 callers
Function
validateSafeName
(name: string, label: string)
src/core/skills/hub.ts:511
↓ 5 callers
Function
writeSkillFile
(name: string, content: string)
test/core/skills/loader.test.ts:22
← previous
next →
201–300 of 1,175, ranked by callers