Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anthropics/claude-code
/ functions
Functions
727 in github.com/anthropics/claude-code
⨍
Functions
727
◇
Types & classes
47
↓ 1 callers
Function
parseFileDiff
(stdout: string)
mods/diff/hooks/git/parse/parse-file-diff.ts:19
↓ 1 callers
Function
pastUsers
( e: E, next: Provided.ProvidedNext<E, R>, )
mods/sec-default/hooks/past-users/past-users.ts:16
↓ 1 callers
Function
pickedTurnOf
(model: PaneModel)
mods/diff/hooks/pane-state/picked-turn-of/picked-turn-of.ts:11
↓ 1 callers
Function
pickerOf
* What the picker offers, in the order drawn, over a fresh drawing: * inRepository answers `ui.invalidate`, so none comes by itself.
mods/diff/tests/views/source-picker.test.ts:47
↓ 1 callers
Function
pinnedNames
(policy: Settings)
mods/sec-default/hooks/policy/pinned-names.ts:17
↓ 1 callers
Function
pinnedVariableRefusal
(name: string)
mods/sec-default/hooks/pinned-variable-refusal/pinned-variable-refusal.ts:11
↓ 1 callers
Function
placeholderOf
(detail: DetailModel)
mods/diff/hooks/views/detail/placeholder-of/placeholder-of.ts:15
↓ 1 callers
Function
plain
(text: string)
mods/sec-default/hooks/early-run/names-settings-file.ts:45
↓ 1 callers
Function
plainPath
(path: string)
mods/sec-default/hooks/early-run/process-repeats.ts:102
↓ 1 callers
Function
plausibleUuid
(value: unknown)
mods/telemetry/hooks/context/identity/plausible-uuid/plausible-uuid.ts:11
↓ 1 callers
Function
policyOf
(value: boolean | number | string)
mods/sec-default/tests/policy/is-hot-reload-prompt-forced.test.ts:7
↓ 1 callers
Function
post
(body: string, auth: string)
mods/telemetry/hooks/telemetry-of/telemetry-of.ts:72
↓ 1 callers
Function
postedWithRetry
( body: string, auth: string, )
mods/telemetry/hooks/telemetry-of/telemetry-of.ts:83
↓ 1 callers
Function
present
( children: readonly (RenderElement | null)[], )
mods/diff/hooks/views/sections/present/present.ts:12
↓ 1 callers
Function
primed
()
mods/telemetry/hooks/telemetry-of/telemetry-of.ts:64
↓ 1 callers
Function
probeBackend
(engine: Host)
mods/diff/hooks/register.ts:132
↓ 1 callers
Function
probeOf
( deps: TelemetryDeps, isInteractive: boolean, )
mods/telemetry/hooks/context/probe-of/probe-of.ts:21
↓ 1 callers
Function
probeOf
(budget: number)
mods/diff/tests/git/probes/datings-of.test.ts:33
↓ 1 callers
Function
probesOf
()
mods/diff/tests/register.test.ts:2583
↓ 1 callers
Function
queued
(fields: Entries.Fields)
mods/telemetry/hooks/telemetry-of/telemetry-of.ts:167
↓ 1 callers
Function
rawRecordOf
(path: string)
mods/diff/tests/fixtures/scripted/raw-record-of.ts:8
↓ 1 callers
Function
readHeadKey
()
mods/diff/hooks/register.ts:312
↓ 1 callers
Function
recordingBackendHostOf
( script: Readonly<Record<string, ProcessRunResult>>, )
mods/diff/tests/fixtures/backend-of/recording-backend-host-of.ts:14
↓ 1 callers
Function
refusalFor
(entry: unknown)
mods/telemetry/tests/register.test.ts:394
↓ 1 callers
Function
refusalOf
( $: EngineInterface, readPolicy: ReturnType<typeof Policy.createPolicyMemo>, repeated: readonly Call[],
mods/sec-default/hooks/early-run/refusal-of.ts:22
↓ 1 callers
Function
registerRefusalOf
( policy: Settings, plugin: string, tool: string, id?: string, )
mods/sec-default/hooks/tool-register-refusal/register-refusal-of.ts:21
↓ 1 callers
Function
registeredToolOf
(plugin: string, name: string)
mods/sec-default/tests/fixtures/registered-tool-of.ts:8
↓ 1 callers
Function
registering
(name: string, tier?: Plugin['tier'])
mods/sec-default/tests/fixtures/registering.ts:11
↓ 1 callers
Function
remoteHashOf
( remote: string | null | undefined, )
mods/telemetry/hooks/context/remote-hash-of/remote-hash-of.ts:12
↓ 1 callers
Function
renameDisplayOf
(oldPath: string, newPath: string)
mods/diff/hooks/git/rename-display-of/rename-display-of.ts:13
↓ 1 callers
Function
rest
* Starts the wait after a read (refreshRestOf). A failed git run does not say * why, so a read that got nothing counts as timed out once it ran for
mods/diff/hooks/register.ts:475
↓ 1 callers
Function
rowOf
(path: string, kind: Partial<Git.FileStat> = {})
mods/diff/tests/git/fetch-hunks.test.ts:12
↓ 1 callers
Function
runOf
(script: Script)
mods/diff/tests/git/probes/branch-base-of.test.ts:12
↓ 1 callers
Function
runOf
(pinned: Types.Repository | null)
mods/diff/hooks/git/git-backend-of.ts:27
↓ 1 callers
Function
safely
(send: () => Promise<void>)
mods/diff/hooks/record/safely/safely.ts:7
↓ 1 callers
Function
sanitizeLine
(text: string)
mods/diff/hooks/views/layout/sanitize-line/sanitize-line.ts:14
↓ 1 callers
Function
scriptedGitOf
( script: Readonly<Record<string, ProcessRunResult>>, )
mods/diff/tests/fixtures/scripted/scripted-git-of.ts:13
↓ 1 callers
Function
separatorOf
(dir: string)
mods/agents-md/hooks/frames/absolute-of.ts:33
↓ 1 callers
Function
serverNameRefusal
(plugin: string)
mods/sec-default/hooks/tool-register-refusal/server-name-refusal.ts:8
↓ 1 callers
Function
sessionFieldsOf
(facts: Facts)
mods/telemetry/hooks/context/session-fields-of/session-fields-of.ts:14
↓ 1 callers
Function
settle
()
mods/diff/hooks/register.ts:371
↓ 1 callers
Function
shellOf
(shellPath: string | undefined)
mods/telemetry/hooks/context/shell-of/shell-of.ts:12
↓ 1 callers
Function
shortened
($: EngineInterface, path: string)
mods/sec-default/hooks/early-run/placed.ts:59
↓ 1 callers
Function
showKept
( engine: Host, trigger: (typeof Record.SHOWN_TRIGGERS)[number], )
mods/diff/hooks/register.ts:598
↓ 1 callers
Function
sidebarPane
( kit: Kit, model: PaneState.PaneModel, )
mods/diff/hooks/views/sidebar-pane/sidebar-pane.tsx:26
↓ 1 callers
Function
slowGitWorld
* A fake session. Each git run answers from the script as it is when the * run starts; once `slow.isOn`, each `diff` run takes SLOW_DIFF_MS. * `
mods/diff/tests/register.test.ts:61
↓ 1 callers
Function
sortedJson
(input: object)
mods/sec-default/hooks/early-run/is-same-call.ts:27
↓ 1 callers
Function
spaced
(text: string)
mods/sec-default/hooks/early-run/handed-calls.ts:69
↓ 1 callers
Function
spawnedSince
()
mods/diff/tests/register.test.ts:161
↓ 1 callers
Function
stampProbeOf
( deps: Pick<Types.GitDeps, 'entryKindsOf' | 'mtimeOf'>, base: string, budget: number, )
mods/diff/hooks/git/probes/stamp-probe-of/stamp-probe-of.ts:13
↓ 1 callers
Function
startPoll
(engine: Host, pinned: Backend.Backend)
mods/diff/hooks/register.ts:311
↓ 1 callers
Function
startsSession
(on: On, now = 0)
mods/diff/tests/fixtures/starts-session.ts:13
↓ 1 callers
Function
statTextOf
(added: number, removed: number)
mods/diff/hooks/views/sections/stat-text-of/stat-text-of.ts:11
↓ 1 callers
Function
stubBackendOf
(toplevel: string)
mods/diff/tests/fixtures/backend-of/stub-backend-of.ts:11
↓ 1 callers
Function
subHunksOf
( hunk: Git.Hunk, maxChars: number, )
mods/diff/hooks/views/detail/sub-hunks-of/sub-hunks-of.ts:16
↓ 1 callers
Function
tagsOf
(variable: string | undefined)
mods/telemetry/hooks/context/environment-fields-of/tags-of/tags-of.ts:8
↓ 1 callers
Function
telemetryOf
(deps: TelemetryDeps)
mods/telemetry/hooks/telemetry-of/telemetry-of.ts:23
↓ 1 callers
Function
terminalOf
( facts: Facts, platform: string, isInteractive: boolean, )
mods/telemetry/hooks/context/terminal-of/terminal-of.ts:17
↓ 1 callers
Function
togglePane
( engine: Host, presentation: Args<'command.run'>['presentation'], )
mods/diff/hooks/register.ts:1093
↓ 1 callers
Function
toolRepeats
(remembered: readonly Call[], own: Call)
mods/sec-default/hooks/early-run/tool-repeats.ts:15
↓ 1 callers
Function
triggerDedupeWorkflow
( owner: string, repo: string, issueNumber: number, token: string, dryRun: boolean = true )
scripts/backfill-duplicate-comments.ts:47
↓ 1 callers
Function
turnTitleOf
( turn: Pick<Turns.TurnDiff, 'index' | 'preview'>, )
mods/diff/hooks/pane-state/turn-title-of/turn-title-of.ts:11
↓ 1 callers
Function
unbornNoUntrackedOf
()
mods/diff/tests/git/fetch-diff.test.ts:74
↓ 1 callers
Function
unpin
()
mods/diff/hooks/register.ts:182
↓ 1 callers
Function
unreadCeilingRefusal
( tool: string, origin: NextOrigin, )
mods/hipaa-default/hooks/rules/unread-ceiling.ts:11
↓ 1 callers
Function
untrackedRowsOf
( context: Types.DatingContext, paths: readonly string[], place: UntrackedPlace, )
mods/diff/hooks/git/probes/untracked-rows-of/untracked-rows-of.ts:20
↓ 1 callers
Function
unwrapped
(value: unknown)
mods/sec-default/hooks/early-run/bounded.ts:58
↓ 1 callers
Function
usesNothing
({ events, calls }: PluginRegisterInput['uses'])
mods/sec-default/hooks/uses-nothing/uses-nothing.ts:11
↓ 1 callers
Function
vcsOf
( list: (path: string) => Promise<readonly FsEntry[]>, cwd: string, hasP4Port: boolean, )
mods/telemetry/hooks/context/vcs-of/vcs-of.ts:15
↓ 1 callers
Function
versionOf
(version: string | undefined)
mods/telemetry/hooks/context/version-of/version-of.ts:8
↓ 1 callers
Function
viaGit
()
mods/diff/hooks/git/probes/head-key-of/head-key-of.ts:36
↓ 1 callers
Function
walkOf
(budget: number)
mods/diff/tests/git/probes/kind-walk-of.test.ts:13
↓ 1 callers
Function
walks
()
mods/diff/tests/git.test.ts:50
↓ 1 callers
Function
windowsMachine
* The Windows answer: the architecture from what names it, and nothing the * rows take from a Unix machine. * * @param architecture PROCESSOR_ARCHI
mods/telemetry/hooks/context/machine/machine-of.ts:56
↓ 1 callers
Function
wireOf
(value: unknown)
mods/telemetry/hooks/entries/wire-of/wire-of.ts:10
↓ 1 callers
Function
withClosingLine
(body: Types.FileHunks)
mods/diff/hooks/git/fetch-hunks/with-closing-line/with-closing-line.ts:14
↓ 1 callers
Function
withoutModules
(e: PluginRegisterInput)
mods/sec-default/hooks/without-modules/without-modules.ts:10
↓ 1 callers
Function
write
()
mods/diff/tests/register.test.ts:613
↓ 1 callers
Function
wslVersionOf
( readProcVersion: () => Promise<string>, )
mods/telemetry/hooks/context/wsl-version-of/wsl-version-of.ts:8
Method
abort
(reason?: unknown)
mods/types/claude-code.d.ts:19422
Function
absoluteOf
(path: string, root: string, home?: string)
mods/agents-md/hooks/frames/absolute-of.ts:13
Method
addEventListener
( type: 'abort', listener: () => void, options?: { once?: boolean }, )
mods/types/claude-code.d.ts:19407
Function
afterFetch
(model: PaneModel, fetched: Fetched)
mods/diff/hooks/pane-state/after-fetch/after-fetch.ts:14
Function
afterNewSession
(model: PaneModel)
mods/diff/hooks/pane-state/after-new-session/after-new-session.ts:11
Function
agentOffered
( agent: string, provider: Origin, )
mods/sec-default/tests/fixtures/agent-offered.ts:11
Function
agentSpawned
(provider: Origin)
mods/sec-default/tests/fixtures/agent-spawned.ts:10
Function
allowed
* The call is allowed, in each form the engine told it, and so is each * earlier one like it. What the model sent before a rewrite took an argument
mods/sec-default/hooks/early-run/create-call-memory.ts:90
Function
allowing
(name: string, tier?: Plugin['tier'])
mods/sec-default/tests/fixtures/tool-check/allowing.ts:11
Function
ancestorOf
( dir: string, name: string, content: string, )
mods/agents-md/tests/fixtures/ancestor-of.ts:11
Function
answeringListing
(json: string)
mods/sec-default/tests/fixtures/answering-listing.ts:10
Function
areContiguous
(parts: readonly ParsedHunk[])
mods/diff/tests/fixtures/code-blocks-of/are-contiguous.ts:10
Function
armedAskOf
(path: string, hunks: readonly Git.Hunk[])
mods/diff/hooks/ask/armed-ask-of.ts:16
Function
asking
(name: string)
mods/sec-default/tests/fixtures/tool-check/asking.ts:10
Function
backendOf
( host: BackendHost, probes: Iterable<BackendProbe>, )
mods/diff/hooks/backend/backend-of.ts:17
Function
baseModeOf
(value: unknown)
mods/diff/hooks/pane-state/base-mode-of/base-mode-of.ts:9
Function
baseStoreKeyOf
(toplevel: string)
mods/diff/hooks/names/keys/base-store-key-of.ts:8
Function
batchOf
( rows: readonly Batching.PendingRow[], stamp: BatchStamp, )
mods/telemetry/hooks/entries/batch-of.ts:14
Function
bigBodyOf
()
mods/diff/tests/fixtures/pane-view/big-body-of.ts:11
Function
bodiesOf
( body: Git.FileHunks, ...paths: readonly string[] )
mods/diff/tests/fixtures/pane-view/bodies-of.ts:11
Function
bodyEntryOf
( file: Git.FileStat, model: Pick<PaneState.PaneModel, 'bodies'>, )
mods/diff/hooks/views/entries/body-entry-of/body-entry-of.ts:13
← previous
next →
301–400 of 727, ranked by callers