Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cytostack/openwolf
/ functions
Functions
238 in github.com/cytostack/openwolf
⨍
Functions
238
◇
Types & classes
68
↓ 49 callers
Function
cap
(s: string)
src/hooks/shared.ts:146
↓ 38 callers
Function
readJSON
(filePath: string, fallback: T)
src/hooks/shared.ts:22
↓ 27 callers
Function
writeJSON
(filePath: string, data: unknown)
src/hooks/shared.ts:30
↓ 19 callers
Method
error
(msg: string)
src/utils/logger.ts:53
↓ 16 callers
Function
findProjectRoot
(from?: string)
src/scanner/project-root.ts:21
↓ 15 callers
Function
ensureDir
(dir: string)
src/utils/paths.ts:17
↓ 15 callers
Method
write
(level: LogLevel, message: string)
src/utils/logger.ts:37
↓ 12 callers
Method
info
(msg: string)
src/utils/logger.ts:51
↓ 12 callers
Function
normalizePath
(p: string)
src/hooks/shared.ts:590
↓ 11 callers
Function
writeText
(filePath: string, content: string)
src/utils/fs-safe.ts:39
↓ 7 callers
Function
getWolfDir
()
src/hooks/shared.ts:5
↓ 7 callers
Function
readText
(filePath: string, fallback: string = "")
src/utils/fs-safe.ts:31
↓ 6 callers
Function
ensureWolfDir
()
src/hooks/shared.ts:15
↓ 6 callers
Function
isWindows
()
src/utils/platform.ts:3
↓ 5 callers
Function
broadcast
(msg: unknown)
src/daemon/wolf-daemon.ts:218
↓ 5 callers
Function
formatTokens
(n: number)
src/dashboard/app/lib/utils.ts:16
↓ 4 callers
Function
estimateTokens
(text: string, type: "code" | "prose" | "mixed" = "mixed")
src/hooks/shared.ts:565
↓ 4 callers
Function
extractChangedLines
(oldStr: string, newStr: string)
src/hooks/post-write.ts:540
↓ 4 callers
Function
getPm2Name
()
src/cli/daemon-cmd.ts:23
↓ 4 callers
Function
hasPm2
()
src/cli/daemon-cmd.ts:28
↓ 4 callers
Function
normalize
(text: string)
src/buglog/bug-tracker.ts:75
↓ 4 callers
Function
normalizePath
(p: string)
src/utils/paths.ts:4
↓ 4 callers
Function
normalizePath
(p: string)
src/cli/registry.ts:113
↓ 4 callers
Function
readStdin
()
src/hooks/shared.ts:579
↓ 4 callers
Method
runTask
(taskId: string)
src/daemon/cron-engine.ts:92
↓ 4 callers
Method
send
(msg: unknown)
src/dashboard/app/lib/wolf-client.ts:49
↓ 4 callers
Function
toggle
(key: string)
src/dashboard/app/components/panels/CerebrumViewer.tsx:9
↓ 4 callers
Method
warn
(msg: string)
src/utils/logger.ts:52
↓ 3 callers
Function
appendMarkdown
(filePath: string, line: string)
src/hooks/shared.ts:53
↓ 3 callers
Method
connect
()
src/dashboard/app/lib/wolf-client.ts:14
↓ 3 callers
Method
debug
(msg: string)
src/utils/logger.ts:50
↓ 3 callers
Function
detectProjectName
(projectRoot: string)
src/cli/init.ts:507
↓ 3 callers
Function
getBugLogPath
(wolfDir: string)
src/buglog/bug-tracker.ts:23
↓ 3 callers
Function
parseAnatomy
(content: string)
src/hooks/shared.ts:65
↓ 3 callers
Function
probePort
(port: number)
src/designqc/designqc-capture.ts:134
↓ 3 callers
Function
readBugLog
(wolfDir: string)
src/buglog/bug-tracker.ts:27
↓ 3 callers
Function
readLedger
(wolfDir: string)
src/tracker/token-ledger.ts:63
↓ 3 callers
Function
readMarkdown
(filePath: string)
src/hooks/shared.ts:45
↓ 3 callers
Function
readRegistry
()
src/cli/registry.ts:30
↓ 3 callers
Function
relativeTime
(dateStr: string)
src/dashboard/app/lib/utils.ts:5
↓ 3 callers
Function
scanProject
(wolfDir: string, projectRoot: string)
src/scanner/anatomy-scanner.ts:250
↓ 3 callers
Function
timeShort
()
src/hooks/shared.ts:574
↓ 3 callers
Function
writeRegistry
(registry: Registry)
src/cli/registry.ts:40
↓ 2 callers
Function
buildAnatomy
(wolfDir: string, projectRoot: string)
src/scanner/anatomy-scanner.ts:214
↓ 2 callers
Function
capDescription
(desc: string, max: number = MAX_DESC)
src/scanner/description-extractor.ts:998
↓ 2 callers
Function
cn
(...classes: (string | undefined | false | null)[])
src/dashboard/app/lib/utils.ts:1
↓ 2 callers
Function
estimateTokens
(text: string, filePath: string)
src/scanner/anatomy-scanner.ts:49
↓ 2 callers
Method
executeTask
(task: CronTask)
src/daemon/cron-engine.ts:120
↓ 2 callers
Function
extractCSSProps
(code: string)
src/hooks/post-write.ts:565
↓ 2 callers
Function
extractCalls
(code: string)
src/hooks/post-write.ts:276
↓ 2 callers
Function
extractDescription
(filePath: string)
src/scanner/description-extractor.ts:122
↓ 2 callers
Function
findPidOnPort
(port: number)
src/cli/daemon-cmd.ts:38
↓ 2 callers
Function
getDashboardPort
()
src/cli/daemon-cmd.ts:13
↓ 2 callers
Function
getLedgerPath
(wolfDir: string)
src/tracker/token-ledger.ts:59
↓ 2 callers
Function
getRegisteredProjects
(validateExists: boolean = false)
src/cli/registry.ts:88
↓ 2 callers
Function
getRegistryDir
()
src/cli/registry.ts:22
↓ 2 callers
Function
getRegistryPath
()
src/cli/registry.ts:26
↓ 2 callers
Function
isPortOpen
(port: number)
src/cli/dashboard.ts:18
↓ 2 callers
Function
killPid
(pid: number)
src/cli/daemon-cmd.ts:58
↓ 2 callers
Function
methodList
(items: typeof methods, max = 5)
src/scanner/description-extractor.ts:324
↓ 2 callers
Method
onMessage
(handler: MessageHandler)
src/dashboard/app/lib/wolf-client.ts:42
↓ 2 callers
Method
readManifest
()
src/daemon/cron-engine.ts:102
↓ 2 callers
Method
readState
()
src/daemon/cron-engine.ts:109
↓ 2 callers
Function
readTemplateContent
(filename: string, templatesDir: string)
src/cli/update.ts:306
↓ 2 callers
Function
readTemplateContent
(filename: string, templatesDir: string)
src/cli/init.ts:316
↓ 2 callers
Function
registerProject
(projectRoot: string, name: string, version: string)
src/cli/registry.ts:52
↓ 2 callers
Method
scheduleReconnect
()
src/dashboard/app/lib/wolf-client.ts:34
↓ 2 callers
Function
serializeAnatomy
( sections: Map<string, AnatomyEntry[]>, metadata: { lastScanned: string; fileCount: number; hits: number;
src/scanner/anatomy-scanner.ts:153
↓ 2 callers
Function
stripTimestamp
(s: string)
src/cli/scan.ts:27
↓ 2 callers
Function
tokenize
(text: string)
src/buglog/bug-tracker.ts:79
↓ 2 callers
Function
tokenize
(text: string)
src/hooks/pre-write.ts:148
↓ 2 callers
Function
tokenizeCode
(code: string)
src/hooks/post-write.ts:547
↓ 2 callers
Function
writeLedger
(wolfDir: string, ledger: TokenLedger)
src/tracker/token-ledger.ts:84
↓ 2 callers
Method
writeState
(state: CronState)
src/daemon/cron-engine.ts:116
↓ 2 callers
Function
writeTemplateFile
(templatesDir: string, wolfDir: string, file: string)
src/cli/init.ts:306
↓ 1 callers
Function
appendText
(filePath: string, content: string)
src/utils/fs-safe.ts:56
↓ 1 callers
Function
autoDetectBugFix
(wolfDir: string, absolutePath: string, projectRoot: string, oldStr: string, newStr: string)
src/hooks/post-write.ts:286
↓ 1 callers
Function
bugSearch
(term: string)
src/cli/bug-cmd.ts:6
↓ 1 callers
Function
buildTree
(entries: WolfData["anatomy"]["entries"])
src/dashboard/app/components/panels/AnatomyBrowser.tsx:12
↓ 1 callers
Method
calculateDelay
(backoff: string, baseSec: number, attempt: number)
src/daemon/cron-engine.ts:198
↓ 1 callers
Method
capture
()
src/designqc/designqc-engine.ts:26
↓ 1 callers
Function
captureRouteSectioned
( page: import("puppeteer-core").Page, url: string, viewport: Viewport, outputDir: string, quality:
src/designqc/designqc-capture.ts:52
↓ 1 callers
Function
checkBugLog
(wolfDir: string, filePath: string, oldStr: string, newStr: string, content: string)
src/hooks/pre-write.ts:101
↓ 1 callers
Function
checkCerebrum
(wolfDir: string, content: string)
src/hooks/pre-write.ts:54
↓ 1 callers
Function
checkCerebrumFreshness
* Check if cerebrum.md was updated recently. If it hasn't been updated in * a while and there was significant activity, emit a gentle reminder.
src/hooks/stop.ts:209
↓ 1 callers
Function
checkForMissingBugLogs
* Check if files were edited multiple times but buglog.json wasn't updated. * Emit a stderr reminder so Claude sees it in the next turn.
src/hooks/stop.ts:184
↓ 1 callers
Method
consolidateMemory
(olderThanDays: number)
src/daemon/cron-engine.ts:233
↓ 1 callers
Function
copyHookScripts
(wolfDir: string)
src/cli/update.ts:318
↓ 1 callers
Function
copyHookScripts
(wolfDir: string)
src/cli/init.ts:407
↓ 1 callers
Function
countFiles
(node: TreeNode)
src/dashboard/app/components/panels/AnatomyBrowser.tsx:80
↓ 1 callers
Function
createBackup
* Create a timestamped backup of all .wolf files into .wolf/backups/YYYY-MM-DD_HHMMSS/
src/cli/update.ts:243
↓ 1 callers
Function
createProgram
()
src/cli/index.ts:23
↓ 1 callers
Function
cronList
()
src/cli/cron-cmd.ts:27
↓ 1 callers
Function
cronRetry
(id: string)
src/cli/cron-cmd.ts:117
↓ 1 callers
Function
cronRun
(id: string)
src/cli/cron-cmd.ts:72
↓ 1 callers
Function
daemonLogs
()
src/cli/daemon-cmd.ts:169
↓ 1 callers
Function
daemonRestart
()
src/cli/daemon-cmd.ts:138
↓ 1 callers
Function
daemonStart
()
src/cli/daemon-cmd.ts:71
↓ 1 callers
Function
daemonStop
()
src/cli/daemon-cmd.ts:103
↓ 1 callers
Function
designqcCommand
( target?: string, opts?: DesignQCCliOpts, )
src/cli/designqc-cmd.ts:26
next →
1–100 of 238, ranked by callers