Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DingyangLyu/MatClaw
/ functions
Functions
478 in github.com/DingyangLyu/MatClaw
⨍
Functions
478
◇
Types & classes
88
↓ 2 callers
Function
getEntry
( chatJid: string, cfg: SenderAllowlistConfig, )
src/sender-allowlist.ts:91
↓ 2 callers
Method
getGroupFolder
* Get the group folder name for a given JID.
src/channels/feishu.ts:805
↓ 2 callers
Function
getNodeVersion
()
setup/platform.ts:118
↓ 2 callers
Function
getRealPath
* Get the real path, resolving symlinks. * Returns null if the path doesn't exist.
src/mount-security.ts:139
↓ 2 callers
Function
getRecentMessages
( chatJid: string, limit = 100, threadId?: string, )
src/db.ts:401
↓ 2 callers
Function
getRegisteredGroup
( jid: string, )
src/db.ts:764
↓ 2 callers
Function
getStatePath
()
skills-engine/state.ts:14
↓ 2 callers
Function
handleWebChatMessage
( text: string, opts: ChannelOpts, threadId = activeThreadId, )
src/channels/web.ts:219
↓ 2 callers
Function
isHeadless
()
setup/platform.ts:32
↓ 2 callers
Function
isProcessAlive
(pid: number)
skills-engine/lock.ts:21
↓ 2 callers
Method
isSessionCleared
* Check if the session was cleared by /new (dying container should not * re-save its session ID).
src/group-queue.ts:212
↓ 2 callers
Function
isStale
(lock: LockInfo)
skills-engine/lock.ts:17
↓ 2 callers
Function
isValidEntry
(entry: unknown)
src/sender-allowlist.ts:23
↓ 2 callers
Function
isWithinRoot
(rootPath: string, targetPath: string)
skills-engine/file-ops.ts:5
↓ 2 callers
Function
listWebChatThreads
()
src/db.ts:604
↓ 2 callers
Method
pollForMessages
()
src/channels/gmail.ts:197
↓ 2 callers
Function
providerDesc
(p: ProviderConfig)
setup/configure-api.ts:43
↓ 2 callers
Function
quoteValue
* Quote value if it contains spaces or special characters.
setup/env-writer.ts:84
↓ 2 callers
Function
readonlyMountArgs
( hostPath: string, containerPath: string, )
src/container-runtime.ts:14
↓ 2 callers
Function
resetWorkingTree
Restore tracked files and remove untracked skill artifacts.
scripts/validate-all-skills.ts:61
↓ 2 callers
Function
runNpmInstall
()
skills-engine/structured.ts:196
↓ 2 callers
Method
scheduleRetry
(groupJid: string, state: GroupState)
src/group-queue.ts:327
↓ 2 callers
Function
setupNohupFallback
( projectRoot: string, nodePath: string, homeDir: string, )
setup/service.ts:308
↓ 2 callers
Function
shouldSkipSymlinkTests
(err: unknown)
skills-engine/__tests__/file-ops.test.ts:7
↓ 2 callers
Function
shutdown
(signal: string)
src/index.ts:1243
↓ 2 callers
Method
shutdown
(_gracePeriodMs: number)
src/group-queue.ts:411
↓ 2 callers
Function
startSchedulerLoop
(deps: SchedulerDependencies)
src/task-scheduler.ts:242
↓ 2 callers
Function
stringWidth
(s: string)
setup/ui.ts:59
↓ 2 callers
Function
testConnection
( creds: FeishuCredentials, )
src/feishu-auth.ts:33
↓ 2 callers
Function
testConnection
( creds: DingTalkCredentials, )
src/dingtalk-auth.ts:30
↓ 2 callers
Function
touchWebChatThread
( threadId: string, preview: string, timestamp: string, )
src/db.ts:671
↓ 2 callers
Function
writeGroupsSnapshot
( groupFolder: string, isMain: boolean, groups: AvailableGroup[], registeredJids: Set<string>, )
src/container-runner.ts:870
↓ 2 callers
Function
writeTasksSnapshot
( groupFolder: string, isMain: boolean, tasks: Array<{ id: string; groupFolder: string; prom
src/container-runner.ts:832
↓ 1 callers
Function
_resetSchedulerLoopForTests
()
src/task-scheduler.ts:279
↓ 1 callers
Function
abortCustomize
()
skills-engine/customize.ts:147
↓ 1 callers
Method
autoRegisterGroup
( jid: string, conversationId: string, isGroup: boolean, )
src/channels/dingtalk.ts:443
↓ 1 callers
Method
autoRegisterGroup
* Auto-register a Feishu chat as a group. * Creates the group folder, CLAUDE.md, and database entry automatically.
src/channels/feishu.ts:535
↓ 1 callers
Function
bBot
()
src/index.ts:1021
↓ 1 callers
Function
bTop
(t?: string)
src/index.ts:1007
↓ 1 callers
Function
buildContainerArgs
( mounts: VolumeMount[], containerName: string, )
src/container-runner.ts:291
↓ 1 callers
Method
buildPostContent
* Build Feishu post content from text, replacing markdown images with * uploaded Feishu images. Supports  syntax. * Container paths
src/channels/feishu.ts:586
↓ 1 callers
Function
buildVolumeMounts
( group: RegisteredGroup, isMain: boolean, )
src/container-runner.ts:62
↓ 1 callers
Function
checkDockerGroupStale
* Detect stale docker group membership in the user systemd session. * * When a user is added to the docker group mid-session, the user systemd * da
setup/service.ts:186
↓ 1 callers
Method
collectAttachmentParts
Recursively collect parts that have a filename (attachments).
src/channels/gmail.ts:431
↓ 1 callers
Function
collectTrackedFiles
(state: ReturnType<typeof readState>)
skills-engine/rebase.ts:30
↓ 1 callers
Function
copyDirFiltered
(src: string, dest: string, excludes: string[])
skills-engine/init.ts:76
↓ 1 callers
Function
createEngine
* Create the appropriate engine based on AGENT_ENGINE env var. * Uses dynamic import so only the selected engine's dependencies are loaded.
container/agent-runner/src/index.ts:176
↓ 1 callers
Function
createFakeProcess
()
src/container-runner.test.ts:56
↓ 1 callers
Function
createPreCompactHook
(assistantName?: string)
container/agent-runner/src/engines/claude.ts:134
↓ 1 callers
Function
createSanitizeBashHook
()
container/agent-runner/src/engines/claude.ts:158
↓ 1 callers
Method
createSession
()
src/web/server.ts:52
↓ 1 callers
Function
createTestDb
* Tests for the register step. * * Verifies: parameterized SQL (no injection), file templating, * apostrophe in names, .env updates.
setup/register.test.ts:12
↓ 1 callers
Function
deleteAndReplaceWebChatThread
(threadId: string)
src/index.ts:158
↓ 1 callers
Method
deleteSession
(threadId: string)
src/web/server.ts:55
↓ 1 callers
Function
deleteWebChatThread
(threadId: string)
src/db.ts:724
↓ 1 callers
Function
discoverSkills
( skillsDir: string, )
scripts/validate-all-skills.ts:37
↓ 1 callers
Function
dockerRunning
()
setup/wizard.ts:30
↓ 1 callers
Method
downloadAttachment
* Download a message attachment (image/file) and save to group uploads folder. * Returns the relative path (e.g., "uploads/123_photo.png") or null
src/channels/feishu.ts:814
↓ 1 callers
Method
downloadAttachments
* Download email attachments and save to the group's uploads folder. * Returns an array of "[Attached file: uploads/filename]" strings.
src/channels/gmail.ts:383
↓ 1 callers
Method
downloadMedia
* Download a media file from DingTalk using downloadCode. * Returns the relative path (e.g., "uploads/123_photo.png") or null.
src/channels/dingtalk.ts:265
↓ 1 callers
Method
drainWaiting
()
src/group-queue.ts:382
↓ 1 callers
Function
ensureContainerSystemRunning
()
src/index.ts:1229
↓ 1 callers
Function
ensureDefaultWebChatThread
(database: Database.Database)
src/db.ts:174
↓ 1 callers
Function
escapeRegex
(str: string)
src/config.ts:93
↓ 1 callers
Function
extractArtifactRefs
( text: string, )
src/web/server.ts:77
↓ 1 callers
Method
extractTextBody
( payload: gmail_v1.Schema$MessagePart | undefined, )
src/channels/gmail.ts:351
↓ 1 callers
Function
factory
()
src/channels/registry.test.ts:23
↓ 1 callers
Function
findAllowedRoot
* Check if a real path is under an allowed root
src/mount-security.ts:176
↓ 1 callers
Function
findFileRecursive
Recursively search for a file by basename within a directory (max 3 levels deep).
src/web/server.ts:21
↓ 1 callers
Function
fixSkill
(skillName: string, projectRoot: string)
scripts/fix-skill-drift.ts:44
↓ 1 callers
Function
formatTime
(ts?: string)
src/web/transcript-parser.ts:50
↓ 1 callers
Function
formatTranscriptMarkdown
(messages: ParsedMessage[], title?: string | null, assistantName?: string)
container/agent-runner/src/engines/claude.ts:115
↓ 1 callers
Function
generateFallbackName
()
container/agent-runner/src/engines/claude.ts:88
↓ 1 callers
Function
getAllSessions
()
src/db.ts:751
↓ 1 callers
Function
getChatArtifacts
(threadId?: string)
src/web/server.ts:157
↓ 1 callers
Method
getChatName
(chatId: string)
src/channels/feishu.ts:955
↓ 1 callers
Function
getCoreVersion
(projectRoot: string)
skills-engine/init.ts:93
↓ 1 callers
Function
getDueTasks
()
src/db.ts:543
↓ 1 callers
Function
getGroupsInfo
List available groups with their log files and transcript count
src/web/server.ts:201
↓ 1 callers
Function
getNodeMajorVersion
()
setup/platform.ts:127
↓ 1 callers
Function
getNodePath
()
setup/platform.ts:101
↓ 1 callers
Function
getSessionSummary
(sessionId: string, transcriptPath: string)
container/agent-runner/src/engines/claude.ts:72
↓ 1 callers
Function
getTranscriptEntries
Parse a transcript file and return structured JSON entries
src/web/server.ts:325
↓ 1 callers
Function
getTranscriptLog
Parse a transcript file and return formatted log
src/web/server.ts:304
↓ 1 callers
Function
grad
(text: string)
src/index.ts:995
↓ 1 callers
Function
handleControlCommand
* Handle control commands (/stop, /new, /watch, /status, /help, /sessions) * that should work even while the agent container is running. * Returns t
src/index.ts:736
↓ 1 callers
Method
handleMessage
(data: any)
src/channels/dingtalk.ts:316
↓ 1 callers
Method
handleMessageEvent
(event: FeishuMessageEvent)
src/channels/feishu.ts:443
↓ 1 callers
Function
hasAuth
(authDir: string)
setup/environment.test.ts:109
↓ 1 callers
Function
initDatabase
()
src/db.ts:206
↓ 1 callers
Function
initNanoclaw
()
scripts/validate-all-skills.ts:72
↓ 1 callers
Function
isValidContainerPath
* Validate the container path to prevent escaping /workspace/extra/
src/mount-security.ts:202
↓ 1 callers
Function
isWithinRoot
(rootPath: string, targetPath: string)
skills-engine/path-remap.ts:6
↓ 1 callers
Function
killOrphanedProcesses
* Kill any orphaned matclaw node processes left from previous runs or debugging. * Prevents connection conflicts when two instances connect to the sa
setup/service.ts:166
↓ 1 callers
Function
listGroups
(limit: number)
setup/groups.ts:42
↓ 1 callers
Function
listLogs
List log files for a group
src/web/server.ts:264
↓ 1 callers
Method
listSessions
()
src/web/server.ts:50
↓ 1 callers
Function
listTranscripts
List transcript files for a group
src/web/server.ts:276
↓ 1 callers
Function
listWorkspaceArtifacts
(groupFolder: string)
src/web/server.ts:102
↓ 1 callers
Function
loadMountAllowlist
()
src/mount-security.ts:54
← previous
next →
201–300 of 478, ranked by callers