MCPcopy Create free account

hub / github.com/mksglu/context-mode / functions

Functions5,006 in github.com/mksglu/context-mode

↓ 2,404 callersFunctiontest
( name: string, fn: () => Promise<void>, )
tests/mcp-integration.ts:81
↓ 1,899 callersFunctionit
(t=process.env)
server.bundle.mjs:153
↓ 1,028 callersMethodincludes
(e,n)
cli.bundle.mjs:459
↓ 1,009 callersMethodok
(e)
cli.bundle.mjs:494
↓ 512 callersMethodparse
(e,n)
cli.bundle.mjs:459
↓ 405 callersMethodtrim
()
cli.bundle.mjs:459
↓ 392 callersMethodget
(...params: unknown[])
src/db-base.ts:33
↓ 355 callersMethodprepare
(sql: string)
src/session/analytics.ts:37
↓ 329 callersMethodclose
()
tests/store.test.ts:1978
↓ 298 callersMethodstartsWith
(e,n)
cli.bundle.mjs:459
↓ 263 callersMethodoptional
()
cli.bundle.mjs:459
↓ 212 callersFunctionextractEvents
(rawInput: HookInput)
src/session/extract.ts:2710
↓ 205 callersMethodoptional
()
server.bundle.mjs:195
↓ 203 callersMethodrun
()
src/runPool.ts:21
↓ 202 callersMethodindex
(e)
cli.bundle.mjs:440
↓ 181 callersMethodall
(...params: unknown[])
src/db-base.ts:34
↓ 174 callersFunctionroutePreToolUse
(toolName, toolInput, projectDir, platform, sessionId, options = {})
hooks/core/routing.mjs:670
↓ 173 callersMethodtoLowerCase
()
cli.bundle.mjs:459
↓ 170 callersMethodhas
(e)
cli.bundle.mjs:484
↓ 167 callersMethodgetSettingsPath
Path to the platform's settings file (e.g., ~/.claude/settings.json).
src/adapters/types.ts:213
↓ 165 callersFunctionx
(t,e)
cli.bundle.mjs:2
↓ 163 callersMethodexecute
(input: { language: "shell"; code: string; timeout: number | undefined; cwd?: string })
src/server.ts:1445
↓ 135 callersFunctionS
(t)
server.bundle.mjs:222
↓ 135 callersMethodcheck
Synchronous check thunk. Returns OK or FAIL with optional detail.
src/adapters/types.ts:355
↓ 135 callersMethodinsertEvent
(e,n,r="PostToolUse",o,s)
cli.bundle.mjs:144
↓ 135 callersFunctionw
(t)
cli.bundle.mjs:486
↓ 132 callersMethodendsWith
(e,n)
cli.bundle.mjs:459
↓ 131 callersMethodmax
(e,n)
cli.bundle.mjs:459
↓ 127 callersMethodtoString
()
cli.bundle.mjs:490
↓ 126 callersMethodon
(event: "session_start", handler: HookHandler<{ type: "session_start" }>)
src/adapters/omp/plugin.ts:235
↓ 123 callersFunctionE
(t,e,n)
cli.bundle.mjs:459
↓ 123 callersFunctionv
(t,e,n)
server.bundle.mjs:195
↓ 118 callersMethodisFinite
()
cli.bundle.mjs:459
↓ 114 callersMethodincludes
(e,n)
server.bundle.mjs:195
↓ 114 callersMethodwrite
(e)
cli.bundle.mjs:459
↓ 107 callersFunctione
(o)
cli.bundle.mjs:459
↓ 106 callersMethoddescribe
(e)
cli.bundle.mjs:459
↓ 104 callersMethodsearch
(e,n=3,r,o="AND",s,i="like")
cli.bundle.mjs:440
↓ 101 callersMethoderror
()
cli.bundle.mjs:459
↓ 100 callersMethodindexPlainText
(e,n,r=20,o,s=Gc)
cli.bundle.mjs:440
↓ 98 callersFunctiondetectPlatform
(clientInfo?: { name: string; version?: string })
src/adapters/detect.ts:367
↓ 96 callersMethodassign
(e,n,r)
cli.bundle.mjs:491
↓ 96 callersMethodensureSession
(e,n)
cli.bundle.mjs:146
↓ 94 callersMethodadd
(e,...n)
cli.bundle.mjs:484
↓ 90 callersMethodassign
(e,n,r)
server.bundle.mjs:3
↓ 84 callersMethodsearchWithFallback
(e,n=3,r,o,s="like",i)
cli.bundle.mjs:440
↓ 82 callersFunctioncreateStore
()
tests/store.test.ts:27
↓ 80 callersMethoddelete
(id: string)
tests/fixtures/source-example.ts:142
↓ 80 callersMethodmin
(e,n)
cli.bundle.mjs:459
↓ 80 callersMethodparse
(e,n)
server.bundle.mjs:195
↓ 76 callersMethodupdate
(id: string, input: UpdateUserInput)
tests/fixtures/source-example.ts:130
↓ 74 callersFunctionC
(t,e)
server.bundle.mjs:195
↓ 74 callersFunctionD
(t,e)
cli.bundle.mjs:459
↓ 73 callersFunctionL
(t,e)
cli.bundle.mjs:2
↓ 73 callersMethodif
(e,n,r)
cli.bundle.mjs:491
↓ 73 callersMethodif
(e,n,r)
server.bundle.mjs:3
↓ 73 callersMethodtrim
()
server.bundle.mjs:195
↓ 72 callersMethodextend
(e)
cli.bundle.mjs:459
↓ 72 callersMethodextend
(e)
server.bundle.mjs:195
↓ 71 callersFunctionI
(t,e)
server.bundle.mjs:2
↓ 71 callersMethodgetSessionDir
* Directory where session data is stored. * * NOTE — C2 narrowing (2026-05): this is the ONLY storage-path concern an * adapter exposes. Per-
src/adapters/types.ts:225
↓ 71 callersFunctiongetSessionId
(input, opts = CLAUDE_OPTS)
hooks/session-helpers.mjs:364
↓ 70 callersFunctionmakeEvent
(overrides: Partial<StoredEvent> & Pick<StoredEvent, "type" | "category">)
tests/session/session-snapshot.test.ts:10
↓ 69 callersFunctionassert
(condition: boolean, msg: string)
tests/mcp-integration.ts:77
↓ 69 callersMethodtoString
()
server.bundle.mjs:2
↓ 68 callersFunctionN
(t,e)
server.bundle.mjs:222
↓ 68 callersFunctionU
(t,e)
cli.bundle.mjs:486
↓ 68 callersFunctioncreateStore
()
tests/core/search.test.ts:30
↓ 68 callersMethodgetConfigDir
* Platform config directory. * * Contract: ALWAYS returns an absolute path. Never returns a relative * segment, never returns an empty string
src/adapters/types.ts:245
↓ 66 callersFunctionformatReport
( report: FullReport, version?: string, latestVersion?: string | null, opts?: { lifetime?: Lifetim
src/session/analytics.ts:2827
↓ 64 callersFunctione
(o)
server.bundle.mjs:195
↓ 64 callersFunctionhashProjectDirCanonical
(projectDir: string)
src/session/db.ts:430
↓ 62 callersFunctionbuildResumeSnapshot
( events: StoredEvent[], opts?: BuildSnapshotOpts, )
src/session/snapshot.ts:472
↓ 61 callersFunctionmakeReport
(overrides: Partial<FullReport> = {})
tests/analytics/format-report.test.ts:22
↓ 60 callersMethodclose
()
hooks/session-db.bundle.mjs:1
↓ 60 callersMethodparsePreToolUseInput
Parse raw PreToolUse input into normalized form.
src/adapters/types.ts:185
↓ 58 callersFunctionmakeEvent
(type: string, data: string, ts = Date.now())
tests/session/project-attribution.test.ts:18
↓ 58 callersFunctionregisterPiExtension
( mockApi: ReturnType<typeof createMockPiApi>, opts?: { projectDir?: string }, )
tests/pi-extension.test.ts:72
↓ 57 callersFunctionU
(t,e)
server.bundle.mjs:222
↓ 57 callersFunctiongetSessionDBPath
(opts = CLAUDE_OPTS, projectDirOverride)
hooks/session-helpers.mjs:408
↓ 57 callersFunctionq
(t,e)
cli.bundle.mjs:486
↓ 56 callersFunctionloadSessionDB
()
hooks/session-loaders.mjs:38
↓ 56 callersFunctionsafeString
Null-safe string coercion — no truncation, preserves full data.
src/session/extract.ts:86
↓ 55 callersFunction_
(t)
hooks/session-extract.bundle.mjs:2
↓ 54 callersFunctionp
()
cli.bundle.mjs:494
↓ 53 callersMethoddirty
()
cli.bundle.mjs:459
↓ 53 callersMethoddirty
()
server.bundle.mjs:195
↓ 52 callersFunctioncreateTestDB
Create a temporary SessionDB that auto-registers for cleanup.
tests/session/session-db.test.ts:30
↓ 52 callersMethodformatPreToolUseResponse
Format a PreToolUse response into platform-specific output.
src/adapters/types.ts:199
↓ 52 callersMethodhas
(e)
server.bundle.mjs:220
↓ 52 callersFunctionreadStdin
()
hooks/core/stdin.mjs:26
↓ 52 callersMethodtoLowerCase
()
server.bundle.mjs:195
↓ 51 callersMethod_getOrReturnCtx
(e,n)
cli.bundle.mjs:459
↓ 51 callersMethod_getOrReturnCtx
(e,n)
server.bundle.mjs:195
↓ 51 callersMethodmax
(e,n)
server.bundle.mjs:195
↓ 50 callersFunctionW
(t,e)
server.bundle.mjs:624
↓ 50 callersFunctionX
(t,e)
cli.bundle.mjs:625
↓ 50 callersMethodgenerateHookConfig
Generate hook registration config for this platform.
src/adapters/types.ts:270
↓ 50 callersFunctiongetInputProjectDir
(input, opts = CLAUDE_OPTS)
hooks/session-helpers.mjs:350
↓ 50 callersFunctiontrackResponse
(toolName: string, response: ToolResult)
src/server.ts:885
next →1–100 of 5,006, ranked by callers