Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/mksglu/context-mode
/ functions
Functions
5,006 in github.com/mksglu/context-mode
⨍
Functions
5,006
◇
Types & classes
292
↓ 26 callers
Function
makeTmp
(prefix = "ctx-heal-ip-")
tests/util/heal-installed-plugins.test.ts:58
↓ 26 callers
Function
resolveClaudeConfigDir
()
start.mjs:19
↓ 26 callers
Function
searchAutoMemory
( queries: string[], limit: number = 5, projectDir?: string, configDir?: string, adapter?: AutoMemor
src/search/auto-memory.ts:57
↓ 26 callers
Method
upsertResume
(e,n,r)
cli.bundle.mjs:146
↓ 26 callers
Method
var
(e,n,r)
cli.bundle.mjs:491
↓ 26 callers
Method
var
(e,n,r)
server.bundle.mjs:3
↓ 26 callers
Function
withRetry
(fn: () => T, delays: number[] = [100, 500, 2000])
src/db-base.ts:432
↓ 25 callers
Function
Ut
(t,e=["--version"])
server.bundle.mjs:9
↓ 25 callers
Method
catch
(e)
cli.bundle.mjs:459
↓ 25 callers
Method
formatPostToolUseResponse
Format a PostToolUse response into platform-specific output.
src/adapters/types.ts:202
↓ 25 callers
Function
kb
(b: number)
src/session/analytics.ts:1808
↓ 25 callers
Function
kt
(t)
server.bundle.mjs:195
↓ 25 callers
Function
loadProjectAttribution
()
hooks/session-loaders.mjs:41
↓ 25 callers
Function
runBatchCommands
( commands: BatchCommand[], opts: BatchRunOptions, executor: BatchExecutor, )
src/server.ts:1560
↓ 25 callers
Method
setRequestHandler
(e,n)
cli.bundle.mjs:490
↓ 25 callers
Function
ve
(t,e,n)
server.bundle.mjs:222
↓ 24 callers
Function
$e
(t,e,n)
cli.bundle.mjs:459
↓ 24 callers
Function
Ae
(n)
hooks/session-db.bundle.mjs:3
↓ 24 callers
Function
Oe
(t,e)
cli.bundle.mjs:486
↓ 24 callers
Function
Se
(t,e,n)
server.bundle.mjs:195
↓ 24 callers
Function
createToolNamer
(platform)
hooks/core/tool-naming.mjs:52
↓ 24 callers
Method
exec
(e)
hooks/session-db.bundle.mjs:1
↓ 24 callers
Method
getProjectDir
(e)
cli.bundle.mjs:150
↓ 24 callers
Method
getProjectDir
(e)
server.bundle.mjs:157
↓ 24 callers
Function
getWorktreeSuffix
(projectDir = process.cwd())
hooks/session-helpers.mjs:78
↓ 24 callers
Method
insertEvent
* Insert a session event with deduplication and FIFO eviction. * * Deduplication: skips if the same type + data_hash appears in the * last DE
src/session/db.ts:1137
↓ 24 callers
Function
ke
(t,e)
server.bundle.mjs:222
↓ 24 callers
Function
loadDatabase
()
src/db-base.ts:252
↓ 24 callers
Function
makeRepo
(prefix: string)
tests/session/purge-session.test.ts:23
↓ 24 callers
Function
makeTaskEvent
(data: string)
tests/session/continuity.test.ts:39
↓ 24 callers
Function
purgeSession
(opts: PurgeOpts)
src/session/purge.ts:178
↓ 23 callers
Function
Ce
(t)
server.bundle.mjs:222
↓ 23 callers
Function
De
(t)
cli.bundle.mjs:486
↓ 23 callers
Function
Me
()
cli.bundle.mjs:486
↓ 23 callers
Function
Pt
(t,e,n)
server.bundle.mjs:195
↓ 23 callers
Function
Re
()
server.bundle.mjs:222
↓ 23 callers
Function
buildFakeLayout
(version = "1.0.150")
tests/core/cli.test.ts:1485
↓ 23 callers
Function
buildScriptFilename
( language: Language, platform: NodeJS.Platform, shellPath?: string | null, )
src/executor.ts:39
↓ 23 callers
Function
buildSessionDirective
(source, eventMeta, toolNamer)
hooks/session-directive.mjs:275
↓ 23 callers
Method
code
(e)
cli.bundle.mjs:491
↓ 23 callers
Method
code
(e)
server.bundle.mjs:3
↓ 23 callers
Function
getSessionEventsPath
(opts = CLAUDE_OPTS, projectDirOverride)
hooks/session-helpers.mjs:417
↓ 23 callers
Function
hashProjectDirLegacy
(projectDir: string)
src/session/db.ts:414
↓ 23 callers
Function
healPartialInstallFromMarketplace
(opts = {})
hooks/heal-partial-install.mjs:472
↓ 23 callers
Function
l
(d)
cli.bundle.mjs:494
↓ 23 callers
Method
name
()
cli.bundle.mjs:153
↓ 23 callers
Method
name
(e)
server.bundle.mjs:2
↓ 23 callers
Function
parsePiUsage
(payload: unknown)
src/session/extract.ts:1627
↓ 23 callers
Function
zod3ShapeToV4
(shape: Record<string, unknown>, depth = 0)
src/adapters/opencode/zod3tov4.ts:14
↓ 22 callers
Function
Le
(n)
hooks/session-db.bundle.mjs:2
↓ 22 callers
Function
cleanup
* Close the connection and delete all associated DB files (main, WAL, SHM). * Call on process exit or at end of session lifecycle.
src/db-base.ts:612
↓ 22 callers
Function
i
(a)
cli.bundle.mjs:459
↓ 22 callers
Function
i
(a=Y.nil)
server.bundle.mjs:6
↓ 22 callers
Function
l
(d)
server.bundle.mjs:6
↓ 22 callers
Function
parseJsonc
(raw: string)
src/util/jsonc.ts:61
↓ 22 callers
Function
rewriteShellSnapshots
({ snapshotsDir, currentVersion })
hooks/cache-heal-utils.mjs:262
↓ 22 callers
Function
runHook
(hookFile: string, input: Record<string, unknown>, cwd?: string)
tests/hooks/kimi-hooks.test.ts:31
↓ 22 callers
Function
s
cli.bundle.mjs:455
↓ 22 callers
Function
s
server.bundle.mjs:570
↓ 22 callers
Function
startLifecycleGuard
(opts: LifecycleGuardOptions)
src/lifecycle.ts:222
↓ 22 callers
Function
un
(t,e="unknown")
server.bundle.mjs:626
↓ 22 callers
Method
writeSettings
Write platform settings.
src/adapters/types.ts:276
↓ 21 callers
Function
Ke
(n)
hooks/session-db.bundle.mjs:2
↓ 21 callers
Function
Me
(t,e)
server.bundle.mjs:2
↓ 21 callers
Function
We
()
cli.bundle.mjs:625
↓ 21 callers
Method
array
()
cli.bundle.mjs:459
↓ 21 callers
Function
classifyError
(message)
hooks/session-loaders.mjs:243
↓ 21 callers
Method
close
()
server.bundle.mjs:10
↓ 21 callers
Method
int
(e)
cli.bundle.mjs:459
↓ 21 callers
Function
loadExtract
()
hooks/session-loaders.mjs:54
↓ 21 callers
Function
makeEvent
(category: string, data: string, type: string = category)
tests/session/continuity.test.ts:43
↓ 21 callers
Method
pragma
(e)
cli.bundle.mjs:3
↓ 21 callers
Function
ze
()
server.bundle.mjs:624
↓ 20 callers
Method
checkPluginRegistration
Check if the plugin is registered/enabled on this platform.
src/adapters/types.ts:300
↓ 20 callers
Method
enum
()
cli.bundle.mjs:459
↓ 20 callers
Function
getSessionDir
()
src/server.ts:582
↓ 20 callers
Function
makeCodexHome
()
tests/util/codex-session-cwd-resolution.test.ts:31
↓ 20 callers
Function
makeRunner
( responses: Array<FakeReturn | ((cmd: string, args: readonly string[]) => FakeReturn)>, )
tests/core/server.test.ts:4413
↓ 20 callers
Function
mkMockExecutor
( handler: (code: string, timeout: number | undefined, cwd: string | undefined) => Promise<MockResult> | Moc
tests/core/server.test.ts:3043
↓ 20 callers
Function
registerOmpPlugin
( mockApi: ReturnType<typeof createMockOmpApi>, opts?: { projectDir?: string }, )
tests/adapters/omp-plugin.test.ts:56
↓ 20 callers
Method
request
(e,n,r)
cli.bundle.mjs:490
↓ 20 callers
Method
setRequestHandler
(e,n)
server.bundle.mjs:226
↓ 20 callers
Method
shutdown
()
src/adapters/pi/mcp-bridge.ts:733
↓ 20 callers
Method
toUpperCase
()
cli.bundle.mjs:459
↓ 19 callers
Function
Ge
(t)
cli.bundle.mjs:2
↓ 19 callers
Function
Je
()
hooks/session-db.bundle.mjs:2
↓ 19 callers
Function
Jt
(t,e,n)
server.bundle.mjs:195
↓ 19 callers
Function
buildHookRuntimeCommand
( scriptPath: string, opts?: { platform?: string; jsRuntime?: string }, )
src/adapters/types.ts:418
↓ 19 callers
Function
commandExists
(cmd: string)
src/runtime.ts:78
↓ 19 callers
Method
getInstructionFiles
* Names of platform-native instruction/rule files that act as the * project's "user CLAUDE.md equivalent" (e.g., ["CLAUDE.md"], * ["AGENTS.md"],
src/adapters/types.ts:254
↓ 19 callers
Function
getRealBytesStats
(opts: { sessionId?: string; sessionsDir?: string; worktreeHash?: string; /** * v1.0.148 follow-up
src/session/analytics.ts:1168
↓ 19 callers
Function
getSessionDirSegments
(platform: string)
src/adapters/detect.ts:337
↓ 19 callers
Function
parseOpencodeUsage
(payload: unknown)
src/session/extract.ts:1811
↓ 19 callers
Function
runHook
(hookFile: string, input: Record<string, unknown>, env?: Record<string, string>, { bom = false } = {})
tests/hooks/cursor-hooks.test.ts:29
↓ 19 callers
Method
write
(e)
server.bundle.mjs:195
↓ 18 callers
Function
In
(t)
cli.bundle.mjs:175
↓ 18 callers
Function
a
()
cli.bundle.mjs:580
↓ 18 callers
Function
a
()
server.bundle.mjs:576
↓ 18 callers
Function
a
(t)
hooks/session-snapshot.bundle.mjs:1
↓ 18 callers
Function
buildCommand
( runtimes: RuntimeMap, language: Language, filePath: string, )
src/runtime.ts:644
← previous
next →
201–300 of 5,006, ranked by callers