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
↓ 51 callers
Method
get
(index: number)
mods/types/claude-code.d.ts:19531
↓ 31 callers
Method
has
(name: string)
mods/types/claude-code.d.ts:19443
↓ 25 callers
Method
set
(index: number, value?: any)
mods/types/claude-code.d.ts:19533
↓ 12 callers
Function
run
mods/diff/tests/git/fetch-hunks.test.ts:43
↓ 9 callers
Method
delete
(name: string)
mods/types/claude-code.d.ts:19440
↓ 6 callers
Function
answersOf
( numstat: string, bodies: Readonly<Record<string, string>>, dirty: readonly string[] = Object.keys(bodi
mods/diff/tests/fixtures/answers-of.ts:14
↓ 6 callers
Function
redraw
(engine: Host)
mods/diff/hooks/register.ts:220
↓ 5 callers
Function
countOf
(items: readonly T[], passes: (item: T) => boolean)
mods/diff/hooks/count-of/count-of.ts:9
↓ 5 callers
Function
isRecord
(value: unknown)
mods/telemetry/hooks/entries/is-record/is-record.ts:7
↓ 5 callers
Function
keptOf
(items: readonly (T | null)[])
mods/diff/hooks/kept-of/kept-of.ts:8
↓ 5 callers
Function
refresh
* One read of the diff, covering every change seen before it starts. A call * made during a read is kept as one later read. So is a call made durin
mods/diff/hooks/register.ts:355
↓ 5 callers
Function
refusal
(what: string, method: Method = 'log')
mods/telemetry/hooks/entries/refusal/refusal.ts:16
↓ 5 callers
Function
stringsOf
(value: unknown)
mods/sec-default/hooks/early-run/strings-of.ts:7
↓ 4 callers
Function
diffStat
( kit: Kit, added: number, removed: number, )
mods/diff/hooks/views/sections/diff-stat/diff-stat.tsx:17
↓ 4 callers
Function
foldedName
(name: string)
mods/sec-default/hooks/policy/managed-tools-restored/is-org-tool/tool-prefix-of/folded-name/folded-name.ts:12
↓ 4 callers
Function
isRecord
(value: unknown)
mods/diff/hooks/is-record/is-record.ts:7
↓ 4 callers
Function
isScript
({ tool }: Call)
mods/sec-default/hooks/early-run/is-script.ts:11
↓ 4 callers
Function
openOnFirstEdit
(engine: Host)
mods/diff/hooks/register.ts:723
↓ 4 callers
Function
writtenPathOf
({ tool, input }: Call)
mods/sec-default/hooks/early-run/written-path-of.ts:9
↓ 3 callers
Method
append
(name: string, value: string)
mods/types/claude-code.d.ts:19439
↓ 3 callers
Function
arrayOf
(value: unknown)
mods/diff/hooks/array-of/array-of.ts:8
↓ 3 callers
Function
bounded
(call: Call)
mods/sec-default/hooks/early-run/bounded.ts:15
↓ 3 callers
Function
dialogEntriesOf
( model: PaneState.PaneModel, )
mods/diff/hooks/views/dialog-pane/dialog-entries-of/dialog-entries-of.ts:12
↓ 3 callers
Function
dialogPane
()
mods/diff/hooks/register.ts:199
↓ 3 callers
Function
dialogWindowOf
( model: Pick<PaneState.PaneModel, 'selectedPath'>, paths: readonly string[], )
mods/diff/hooks/views/dialog-pane/dialog-window-of/dialog-window-of.ts:12
↓ 3 callers
Function
diffDataOf
( context: Types.FetchContext, result: Types.MergedResult, basis: DiffBasis, )
mods/diff/hooks/git/tiers/diff-data-of/diff-data-of.ts:13
↓ 3 callers
Function
endOverdueRest
* Ends a wait whose time has passed but whose timer never fired because the * host refused it, so a refused timer cannot hold reads for the whole
mods/diff/hooks/register.ts:525
↓ 3 callers
Function
entryKindsOf
(engine: Host)
mods/diff/hooks/entry-kinds-of/entry-kinds-of.ts:12
↓ 3 callers
Function
hunkHeaderOf
(hunk: Git.Hunk)
mods/diff/hooks/views/detail/hunk-header-of/hunk-header-of.ts:14
↓ 3 callers
Function
isPaneSeen
()
mods/diff/hooks/register.ts:84
↓ 3 callers
Function
isSameCall
(one: Call, other: Call)
mods/sec-default/hooks/early-run/is-same-call.ts:12
↓ 3 callers
Function
isSameVerdict
( one: EventResult<'tool.check'>, other: EventResult<'tool.check'> | undefined, )
mods/sec-default/hooks/held-verdict/verdicts/is-same-verdict.ts:11
↓ 3 callers
Function
joinedName
(name: string)
mods/sec-default/hooks/policy/managed-tools-restored/joined-name.ts:11
↓ 3 callers
Function
listingOf
(entries: Listing)
mods/diff/tests/git/fetch-diff.test.ts:19
↓ 3 callers
Function
loadBodies
(engine: Host)
mods/diff/hooks/register.ts:236
↓ 3 callers
Function
modeChoiceOf
(mode: Modes.Mode)
mods/agents-md/hooks/telemetry/mode-choice-of.ts:10
↓ 3 callers
Function
ownOption
(policy: Settings, name: string)
mods/sec-default/hooks/policy/own-option/own-option.ts:16
↓ 3 callers
Function
pinBackend
(engine: Host)
mods/diff/hooks/register.ts:120
↓ 3 callers
Function
projectDirOf
(path: string)
mods/agents-md/hooks/files/project-dir-of.ts:10
↓ 3 callers
Function
scheduleRefresh
(engine: Host)
mods/diff/hooks/register.ts:571
↓ 3 callers
Method
toString
()
mods/types/claude-code.d.ts:19465
↓ 3 callers
Function
withUntracked
( context: Types.FetchContext, result: Types.NumstatResult, scope: Types.UntrackedScope, )
mods/diff/hooks/git/tiers/with-untracked/with-untracked.ts:20
↓ 2 callers
Function
archOf
(machine: string)
mods/telemetry/hooks/context/machine/arch-of/arch-of.ts:8
↓ 2 callers
Function
askKeptOpen
(engine: Host)
mods/diff/hooks/register.ts:511
↓ 2 callers
Function
bareNameReadsUnder
(name: string, prefix: string)
mods/sec-default/hooks/policy/managed-tools-restored/bare-name-reads-under.ts:14
↓ 2 callers
Function
baseNameOf
(path: string)
mods/diff/hooks/classify/base-name-of/base-name-of.ts:7
↓ 2 callers
Function
bodyStampOf
(data: Git.DiffData)
mods/diff/hooks/register.ts:266
↓ 2 callers
Function
cellWidth
(text: string)
mods/diff/hooks/views/layout/cell-width/cell-width.ts:15
↓ 2 callers
Function
chainRootOf
( file: InstructionFile, byPath: ReadonlyMap<string, InstructionFile>, )
mods/agents-md/hooks/files/chain-root-of.ts:13
↓ 2 callers
Function
chargedWidth
(text: string)
mods/diff/hooks/views/layout/charged-width/charged-width.ts:14
↓ 2 callers
Function
checkedProps
( props: unknown, method: Method, )
mods/telemetry/hooks/entries/checked-props/checked-props.ts:16
↓ 2 callers
Function
closePane
(engine: Host)
mods/diff/hooks/register.ts:710
↓ 2 callers
Function
command
()
mods/diff/tests/register.test.ts:354
↓ 2 callers
Function
configFolders
( $: EngineInterface, first: FirstFolder, )
mods/sec-default/hooks/early-run/config-folders.ts:14
↓ 2 callers
Function
dataOf
( files: readonly Git.FileStat[], overrides: Partial<Git.DiffData> = {}, )
mods/diff/tests/views/pane-view.test.ts:13
↓ 2 callers
Function
datingsOf
( context: Types.DatingContext, paths: readonly string[], )
mods/diff/hooks/git/probes/datings-of/datings-of.ts:17
↓ 2 callers
Function
depsOf
( script: Script, overrides: Partial<Git.GitDeps> = {}, )
mods/diff/tests/git/fetch-diff.test.ts:22
↓ 2 callers
Function
disarm
(engine: Host)
mods/diff/hooks/register.ts:816
↓ 2 callers
Function
editPatchOf
(lines: string[])
mods/diff/tests/fixtures/edit-patch-of.ts:7
↓ 2 callers
Method
encode
(input?: string)
mods/types/claude-code.d.ts:19430
↓ 2 callers
Function
endRest
(engine: Host)
mods/diff/hooks/register.ts:505
↓ 2 callers
Function
fieldText
( input: unknown, field: string, without?: RegExp, )
mods/privacy/hooks/outbound/outgoing-text.ts:36
↓ 2 callers
Function
fitDialog
(engine: Host)
mods/diff/hooks/register.ts:208
↓ 2 callers
Function
foldedId
(id: string)
mods/sec-default/hooks/policy/managed-tools-restored/is-org-tool/org-plugin-names/folded-id.ts:10
↓ 2 callers
Function
forged
* A tool a person's plugin added. * * @param name the tool's name * @returns the tool
mods/sec-default/tests/policy/managed-tools-restored.test.ts:26
↓ 2 callers
Function
gathered
()
mods/telemetry/hooks/telemetry-of/telemetry-of.ts:30
↓ 2 callers
Function
githubRequest
( endpoint: string, method = "GET", body?: unknown )
scripts/sweep.ts:15
↓ 2 callers
Function
githubRequest
(endpoint: string, token: string, method: string = 'GET', body?: any)
scripts/backfill-duplicate-comments.ts:26
↓ 2 callers
Function
githubRequest
(endpoint: string, token: string, method: string = 'GET', body?: any)
scripts/auto-close-duplicates.ts:28
↓ 2 callers
Function
handedCalls
( remembered: readonly Call[], texts: readonly string[], into?: string, )
mods/sec-default/hooks/early-run/handed-calls.ts:21
↓ 2 callers
Function
heldKind
(held: EventResult<'tool.check'>)
mods/sec-default/hooks/held-verdict/held-kind.ts:15
↓ 2 callers
Function
holdsAddress
( text: string, email: string | undefined, )
mods/privacy/hooks/outbound/names-user-agent.ts:85
↓ 2 callers
Method
is
(tag: Tag)
mods/types/claude-code.d.ts:19559
↓ 2 callers
Function
isEnabledEntry
(value: unknown)
mods/sec-default/hooks/policy/managed-tools-restored/is-org-tool/org-plugin-names/is-enabled-entry.ts:8
↓ 2 callers
Function
isLike
(one: Noted)
mods/sec-default/hooks/early-run/create-call-memory.ts:93
↓ 2 callers
Function
isOnPaneSurface
( e: E, )
mods/diff/hooks/is-on-pane-surface/is-on-pane-surface.ts:10
↓ 2 callers
Function
isProjectOwn
(file: InstructionFile)
mods/agents-md/hooks/files/is-project-own.ts:10
↓ 2 callers
Function
isServerFileUnreadable
(policy: Settings)
mods/sec-default/hooks/policy/managed-tools-restored/is-org-tool/is-server-file-unreadable/is-server-file-unreadable.ts:10
↓ 2 callers
Function
isSettingsFile
( $: EngineInterface, path: string, first: FirstFolder, )
mods/sec-default/hooks/early-run/is-settings-file.ts:21
↓ 2 callers
Function
isWholeListing
(stdout: string, terminator = '\0')
mods/diff/hooks/git/parse/is-whole-listing/is-whole-listing.ts:16
↓ 2 callers
Function
keepBaseline
()
mods/diff/hooks/register.ts:292
↓ 2 callers
Function
leadingHunkOf
(hunk: Git.Hunk, maxChars: number)
mods/diff/hooks/views/detail/leading-hunk-of/leading-hunk-of.ts:12
↓ 2 callers
Function
linesOf
(texts: readonly string[])
mods/sec-default/hooks/early-run/handed-calls.ts:74
↓ 2 callers
Function
listRow
( kit: Kit, row: KeyedPressable, tail: RenderElement, )
mods/diff/hooks/views/sections/list-row/list-row.tsx:18
↓ 2 callers
Function
markShown
( engine: Host, trigger: (typeof Record.SHOWN_TRIGGERS)[number], )
mods/diff/hooks/register.ts:586
↓ 2 callers
Function
markTabSwitch
(engine: Host, tab: (typeof Record.TABS)[number])
mods/diff/hooks/register.ts:716
↓ 2 callers
Function
mergedResultOf
( result: Types.NumstatResult, mark: Pick<Types.MergedResult, 'isUntrackedWithheld'>, )
mods/diff/hooks/git/tiers/with-untracked/merged-result-of/merged-result-of.ts:10
↓ 2 callers
Function
messageOf
(error: unknown)
mods/diff/hooks/message-of/message-of.ts:8
↓ 2 callers
Function
modelOf
( overrides: Partial<PaneState.PaneModel>, )
mods/diff/tests/views/pane-view.test.ts:29
↓ 2 callers
Function
namesSettingsFile
( $: EngineInterface, texts: readonly string[], served: readonly string[], )
mods/sec-default/hooks/early-run/names-settings-file.ts:17
↓ 2 callers
Function
normalSpellingOf
(path: string)
mods/agents-md/hooks/frames/normal-spelling-of.ts:8
↓ 2 callers
Function
note
( id: Noted['id'], whole: Call, isAsSent: boolean, maker?: string, )
mods/sec-default/hooks/early-run/create-call-memory.ts:42
↓ 2 callers
Function
ok
(stdout = '')
mods/diff/tests/fixtures/scripted/ok.ts:10
↓ 2 callers
Function
oneAddedOf
(text: string)
mods/diff/tests/fixtures/scripted/one-added-of.ts:8
↓ 2 callers
Function
openPane
( engine: Host, trigger: (typeof Record.SHOWN_TRIGGERS)[number], closesBefore = personCloses, )
mods/diff/hooks/register.ts:608
↓ 2 callers
Function
orgPluginNames
(policy: Settings, own?: string)
mods/sec-default/hooks/policy/managed-tools-restored/is-org-tool/org-plugin-names/org-plugin-names.ts:26
↓ 2 callers
Function
orgServerNames
(policy: Settings)
mods/sec-default/hooks/policy/managed-tools-restored/is-org-tool/org-server-names/org-server-names.ts:13
↓ 2 callers
Function
placed
( $: EngineInterface, path: string, steps?: number, )
mods/sec-default/hooks/early-run/placed.ts:18
↓ 2 callers
Function
plainLine
(line: string)
mods/sec-default/hooks/early-run/process-repeats.ts:117
↓ 2 callers
Function
pluginOf
(verdict: StampedVerdict)
mods/sec-default/hooks/held-verdict/verdicts/plugin-of.ts:12
next →
1–100 of 727, ranked by callers