MCPcopy Create free account

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

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

↓ 427 callersMethodpush
Push a fully-formed message line to the readable side (for the peer to consume).
test/acp/jsonrpc.test.ts:79
↓ 132 callersFunctioncreateMockFetch
( responses: Array<{ status?: number; body?: string | MockChatCompletion; headers?: Record<strin
test/helpers/mock-server.ts:122
↓ 130 callersFunctionmakeTextResponse
( content: string, model = "test-model", )
test/helpers/mock-server.ts:31
↓ 124 callersMethodregister
(definition: ToolDefinition)
src/core/tool-registry.ts:27
↓ 119 callersMethodfind
(platform: string, userId: string)
src/gateway/acl.ts:115
↓ 117 callersMethodrun
( userMessage: string, options?: { signal?: AbortSignal }, )
src/core/agent-loop.ts:261
↓ 106 callersFunctioncreateTempDir
(prefix = "purrfect-test-")
test/helpers/fixtures.ts:10
↓ 95 callersFunctionansiColor
(text: string, color: string)
src/cli/formatter.ts:66
↓ 90 callersMethodclose
()
src/core/mcp/client.ts:20
↓ 84 callersMethodadd
Add a new entry with the given tag and content.
src/core/memory/backend.ts:14
↓ 81 callersMethodcreateSession
(options: CreateSessionOptions)
src/core/session-store.ts:480
↓ 79 callersMethodget
(id: string)
src/core/tasks/store.ts:38
↓ 71 callersFunctionmakeToolCall
( name: string, args: Record<string, unknown>, id?: string, )
test/helpers/mock-server.ts:69
↓ 66 callersFunctionmakeToolCallResponse
( toolCalls: ToolCall[], model = "test-model", )
test/helpers/mock-server.ts:50
↓ 62 callersMethodcreate
(name: string)
src/core/profiles.ts:95
↓ 61 callersMethodappendMessage
( sessionId: string, message: { role: string; content: string | null }, )
src/cli/approval.ts:17
↓ 56 callersMethodbuild
* Assemble the system prompt from identity, context files, and memory. * Skills are NOT included — they are injected by AgentLoop at runtime.
src/core/prompt-builder.ts:310
↓ 56 callersMethodcleanup
* Delete cached files older than maxAgeMs (default 24 hours).
src/gateway/media.ts:80
↓ 53 callersFunctionout
(opts: CronCommandOptions)
src/cli/cron.ts:38
↓ 52 callersMethodcheck
(name?: string)
src/core/skills/hub.ts:197
↓ 48 callersFunctiondefaultConfigDir
()
src/cli/config.ts:39
↓ 47 callersFunctionparseArgs
(argv)
benchmarks/trajectory-compressor-benchmark.mjs:65
↓ 43 callersMethodreplace
Replace an existing entry. No-op if tag is missing.
src/core/memory/backend.ts:16
↓ 41 callersMethoddispatch
(method: string, params: unknown)
src/acp/server.ts:89
↓ 41 callersMethodhandle
* Handle an inbound message event from a platform adapter.
src/gateway/handler.ts:192
↓ 40 callersMethodgetAllToolNames
()
src/core/tool-registry.ts:182
↓ 38 callersMethodgetSnapshot
Snapshot used during prompt assembly (may be cached / frozen).
src/core/memory/backend.ts:20
↓ 37 callersMethodon
(event: string, handler: HandlerFn)
test/gateway/adapters/telegram.test.ts:26
↓ 35 callersMethodconnect
(transport: McpTransport)
src/core/mcp/client.ts:19
↓ 30 callersMethodcompress
(messages: Message[], options?: Record<string, unknown>)
src/core/agent-loop.ts:106
↓ 29 callersFunctionmakeTool
(name: string, overrides: Partial<ToolDefinition> = {})
test/core/tool-registry.test.ts:6
↓ 28 callersFunctionmakeStreamChunk
( content?: string, toolCalls?: Array<{ index: number; id?: string; function?: { name?: string
test/helpers/mock-server.ts:91
↓ 26 callersMethodchat
( messages: Message[], tools: ToolSchema[], options?: { signal?: AbortSignal; maxTokens?: number }
src/core/title-generator.ts:42
↓ 25 callersFunctioncollectEvents
(iter: AsyncIterable<AgentEvent>)
test/core/agent-loop.test.ts:40
↓ 24 callersFunctionmakeProvider
(mockFetch: typeof fetch)
test/core/agent-loop.test.ts:21
↓ 24 callersMethodregisterBuiltin
* Register a built-in tool and mark its name as reserved. * Reserved names cannot be overwritten by external tools.
src/core/tool-registry.ts:22
↓ 23 callersMethodclose
()
src/core/session-store.ts:1034
↓ 23 callersMethoddiscover
* Discover all .md skill files in the given directory. * Files are processed in sorted order; later calls overwrite earlier entries * (enabling
src/core/skills/registry.ts:33
↓ 23 callersMethodresolve
(input: string)
src/cli/commands/registry.ts:65
↓ 22 callersFunctioncreateDelegateTool
(options: DelegateToolOptions)
src/core/tools/delegate.ts:85
↓ 22 callersMethodgetSession
Expose live sessions for testing.
src/gateway/handler.ts:506
↓ 21 callersFunctionbuildAgentContext
(options: AgentContextOptions)
src/cli/runtime.ts:29
↓ 21 callersFunctioncleanup
()
test/gateway/adapters/webhook.test.ts:228
↓ 21 callersMethoddelete
(name: string)
src/core/profiles.ts:115
↓ 21 callersMethodregister
(def: CommandDef)
src/cli/commands/registry.ts:58
↓ 20 callersMethodwrite
(file: PairingFile)
src/gateway/acl.ts:103
↓ 19 callersFunctionloadConfigV2
(configDir?: string)
src/cli/config.ts:80
↓ 19 callersMethodpathFor
Resolve absolute path for a profile's config dir.
src/core/profiles.ts:54
↓ 19 callersFunctionregisterBuiltins
(registry: ToolRegistry, options?: RegisterBuiltinsOptions)
src/core/tools/index.ts:97
↓ 19 callersFunctionresolveApiKey
( ref: SecretRef | undefined, providerType?: ProviderType, )
src/core/secrets.ts:82
↓ 19 callersMethodstart
()
src/core/mcp/client.ts:39
↓ 18 callersMethodgetMessages
(sessionId: string)
src/server/routes.ts:15
↓ 18 callersMethodlistSessions
()
src/core/session-store.ts:526
↓ 17 callersFunctioncreateTodoWriteTool
( options: TodoWriteToolOptions, )
src/core/tools/todo-write.ts:86
↓ 17 callersMethodensurePending
* Look up the entry for `(platform, userId)`. If absent, create a * pending entry with a fresh pairing code. Idempotent: existing pending * entr
src/gateway/acl.ts:139
↓ 17 callersMethodgetTodos
Optional — present on real SessionStore. Used to include outstanding todos in the recap.
src/core/session-resume.ts:12
↓ 17 callersFunctionlog
(ctx: McpCommandContext)
src/cli/mcp.ts:30
↓ 16 callersMethodget
(id: string)
src/gateway/webhook-subscriptions.ts:58
↓ 16 callersFunctionsetup
()
test/core/skills/layers-hub.test.ts:16
↓ 16 callersFunctionwriteSkill
( dir: string, filename: string, name: string, description: string, triggers: string[], body = `In
test/core/skills/layers-hub.test.ts:22
↓ 15 callersFunctionfinding
(id: string, severity: SafetyFinding["severity"])
src/core/safety/injection-scan.ts:64
↓ 15 callersFunctionmakeProvider
(mockFetch: typeof fetch)
test/core/delegate.test.ts:16
↓ 15 callersFunctionscanContextContent
(content: string, filename: string)
src/core/prompt-builder.ts:172
↓ 15 callersMethodsend
(msg: object)
test/acp/server.test.ts:32
↓ 14 callersFunctionfindResponse
(pair: StreamPair, id: number | string)
test/acp/server.test.ts:57
↓ 14 callersFunctiongetDbPath
(configDir?: string)
src/cli/sessions.ts:22
↓ 14 callersMethodgetSelected
Return the name of the currently highlighted command, or null.
src/cli/dropdown.ts:79
↓ 14 callersMethodlist
()
src/gateway/acl.ts:111
↓ 14 callersMethodload
()
src/core/tasks/store.ts:57
↓ 14 callersFunctionparseApprovalResponse
(input: string)
src/cli/approval.ts:64
↓ 14 callersMethodsearch
(query: string)
src/core/skills/hub.ts:127
↓ 13 callersMethodcreateCheckpoint
(options: CreateCheckpointOptions)
src/core/session-store.ts:941
↓ 13 callersFunctiongetModelMetadata
( name: string, configOverrides?: ModelMetadataOverrides, )
src/core/model-metadata.ts:130
↓ 13 callersMethodinstall
(name: string, options: { tap?: string } = {})
src/core/skills/hub.ts:148
↓ 13 callersFunctionjsonError
(res: ServerResponse, status: number, message: string)
src/server/index.ts:57
↓ 13 callersFunctionmakeSSEStream
(events: Array<Record<string, unknown>>)
test/helpers/mock-server.ts:85
↓ 13 callersFunctionmakeTool
(name: string, handler?: (args: Record<string, unknown>) => Promise<string>)
test/core/agent-loop.test.ts:28
↓ 13 callersFunctionsanitizeTitle
(raw: string | null | undefined, maxChars = DEFAULT_MAX_CHARS)
src/core/title-generator.ts:61
↓ 13 callersFunctionsetup
()
test/core/skills/registry.test.ts:11
↓ 13 callersMethodstop
()
test/gateway/adapters/telegram.test.ts:34
↓ 13 callersFunctionvalidateConfig
(raw: unknown)
src/core/config-schema.ts:120
↓ 12 callersMethodcreateJob
(cronExpr: string, prompt: string)
src/core/cron/scheduler.ts:36
↓ 12 callersFunctionmakeEvent
(text: string, overrides?: Partial<SessionSource>)
test/gateway/handler.test.ts:72
↓ 12 callersFunctionmakeProvider
(mockFetch: typeof fetch)
test/gateway/handler.test.ts:55
↓ 12 callersMethodremove
Remove an entry by tag. No-op if tag is missing.
src/core/memory/backend.ts:18
↓ 12 callersMethodscan
* Scan one or more directories for plugin subdirectories containing a * valid plugin.json manifest. Invalid or malformed manifests are logged *
src/core/plugins/discovery.ts:12
↓ 12 callersFunctionsetupStore
()
test/gateway/handler.test.ts:100
↓ 12 callersMethodupdate
(name: string)
src/core/skills/hub.ts:176
↓ 11 callersMethodaddTap
(name: string, url: string)
src/core/skills/hub.ts:96
↓ 11 callersFunctioncreateMemoryBackend
(opts: CreateMemoryBackendOptions)
src/core/memory/backend.ts:181
↓ 11 callersMethodcurrentModel
Return the name of the currently active (primary) model.
src/core/router.ts:71
↓ 11 callersFunctionformatToolResult
( name: string, result: string, maxLen = 200, )
src/cli/formatter.ts:89
↓ 11 callersMethodgetDefinitions
* Returns OpenAI function-calling format schemas for the given tools. * Filters by enablement and checkFn availability. Caches shared checkFn *
src/core/tool-registry.ts:114
↓ 11 callersMethodgetLiveSnapshot
Live snapshot — bypass any cache.
src/core/memory/backend.ts:22
↓ 11 callersFunctionisToolAllowed
(toolName: string, platform: Platform)
src/core/toolsets.ts:54
↓ 11 callersMethodlistJobs
()
src/core/cron/store.ts:49
↓ 11 callersFunctionloadConfig
(configDir?: string)
src/cli/config.ts:53
↓ 11 callersFunctionmakeSkill
( name: string, opts: { triggers?: string[]; description?: string } = {}, )
test/core/skills/registry.test.ts:28
↓ 11 callersFunctionparsePairingArgs
(args: string[])
src/cli/pairing-args.ts:39
↓ 11 callersFunctionparseWebhookArgs
(args: string[])
src/cli/webhook.ts:40
next →1–100 of 1,175, ranked by callers