Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anthropics/claude-code
/ functions
Functions
1,317 in github.com/anthropics/claude-code
⨍
Functions
1,317
◇
Types & classes
60
↓ 90 callers
Method
get
(index: number)
mods/types/claude-code.d.ts:23853
↓ 47 callers
Method
has
(name: string)
mods/types/claude-code.d.ts:23765
↓ 44 callers
Method
set
(index: number, value?: any)
mods/types/claude-code.d.ts:23855
↓ 15 callers
Method
delete
(name: string)
mods/types/claude-code.d.ts:23762
↓ 12 callers
Function
run
mods/diff/tests/git/fetch-hunks.test.ts:43
↓ 10 callers
Function
fold
(text: string)
mods/sec-default/hooks/early-run/placed.ts:15
↓ 9 callers
Function
calendarFieldsAt
( ms: number, zone: string, )
mods/easel/hooks/core/calendar/calendar-fields-at/calendar-fields-at.ts:15
↓ 8 callers
Function
redraw
(engine: Host)
mods/diff/hooks/register.ts:240
↓ 8 callers
Function
textShapesOf
(toLay: Types.TextToLay)
mods/easel/hooks/core/layout/text-shapes-of/text-shapes-of.ts:11
↓ 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
refusal
(what: string, method: Method = 'log')
mods/telemetry/hooks/entries/refusal/refusal.ts:16
↓ 6 callers
Function
storedTextOf
(storedResult: unknown, fallback = '')
mods/easel/hooks/shell/stored-text-of/stored-text-of.ts:10
↓ 6 callers
Function
stringsOf
(value: unknown)
mods/sec-default/hooks/early-run/strings-of.ts:7
↓ 6 callers
Function
unitOf
(seriesToRead: Reading.Series[])
mods/easel/hooks/core/charting/unit-of/unit-of.ts:9
↓ 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
maxWidthOf
(texts: string[])
mods/easel/hooks/core/layout/max-width-of/max-width-of.ts:9
↓ 5 callers
Function
messageOf
(error: unknown)
mods/diff/hooks/message-of/message-of.ts:8
↓ 5 callers
Function
pixelsAcross
(columns: number)
mods/easel/hooks/core/svg/pixels-across/pixels-across.ts:9
↓ 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:639
↓ 5 callers
Function
showSource
* Draws a source once its files, and the rows already held, are answered * for again. A refresh under way is waited out: it lays its own rows. *
mods/diff/hooks/register.ts:437
↓ 5 callers
Function
unread
(why: string)
mods/easel/hooks/core/cells/unread/unread.ts:9
↓ 5 callers
Function
writtenPathOf
({ tool, input }: Call, none?: string)
mods/sec-default/hooks/early-run/written-path-of.ts:10
↓ 4 callers
Function
ask
( mode: Git.BaseMode, narrowed: Pick<VcsDiffInput, 'paths' | 'isStatOnly'>, )
mods/diff/hooks/backend/vcs-backend-of/vcs-backend-of.ts:33
↓ 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
legendOf
(needs: Types.LegendNeeds)
mods/easel/hooks/core/layout/legend-of/legend-of.ts:23
↓ 4 callers
Function
legendRowOf
( legend: Types.Legend, row: Charting.LegendRow, top: number, )
mods/easel/hooks/core/layout/legend-row-of/legend-row-of.ts:19
↓ 4 callers
Function
loadBodies
( engine: Host, isScreened = false, )
mods/diff/hooks/register.ts:469
↓ 4 callers
Function
namedTable
( source: string, columns: string[], rows: Cells.Cell[][], )
mods/easel/hooks/core/tables/named-table/named-table.ts:12
↓ 4 callers
Function
openOnFirstEdit
(engine: Host)
mods/diff/hooks/register.ts:1034
↓ 4 callers
Function
ownOption
(policy: Settings, name: string)
mods/sec-default/hooks/policy/own-option/own-option.ts:16
↓ 4 callers
Function
pixelsDown
(rows: number)
mods/easel/hooks/core/svg/pixels-down/pixels-down.ts:10
↓ 4 callers
Function
placed
( $: EngineInterface, path: string, steps?: number, )
mods/sec-default/hooks/early-run/placed.ts:29
↓ 4 callers
Function
stopPoll
()
mods/diff/hooks/register.ts:594
↓ 4 callers
Method
toString
()
mods/types/claude-code.d.ts:23787
↓ 4 callers
Function
wallClockMs
(fields: readonly number[])
mods/easel/hooks/core/calendar/wall-clock-ms/wall-clock-ms.ts:7
↓ 3 callers
Method
append
(name: string, value: string)
mods/types/claude-code.d.ts:23761
↓ 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
cellOf
(node: unknown)
mods/easel/hooks/core/tables/cell-of/cell-of.ts:9
↓ 3 callers
Function
checkedMagnitude
( value: number, unit: string | null, )
mods/easel/hooks/core/cells/checked-magnitude/checked-magnitude.ts:16
↓ 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:219
↓ 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
disarm
(engine: Host)
mods/diff/hooks/register.ts:1126
↓ 3 callers
Function
drawnChartOf
( data: Reading.Data, request: CoreCall.ChartRequest, usage: Usage, )
mods/easel/hooks/core/easel/drawn-chart-of/drawn-chart-of.ts:22
↓ 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:824
↓ 3 callers
Function
entriesAt
( node: unknown, path: string, )
mods/easel/hooks/core/wire/entries-at/entries-at.ts:13
↓ 3 callers
Function
entriesOf
(engine: Host)
mods/diff/hooks/entries-of/entries-of.ts:12
↓ 3 callers
Function
formatAll
( format: Types.NumberFormat, values: number[], )
mods/easel/hooks/core/numbers/format-all/format-all.ts:16
↓ 3 callers
Function
graphemesOf
(text: string)
mods/easel/hooks/core/texts/graphemes-of/graphemes-of.ts:10
↓ 3 callers
Function
hostOf
( landings: Readonly<Record<string, string | undefined>>, listings: Readonly<Record<string, readon
mods/diff/tests/access.test.ts:944
↓ 3 callers
Function
hunkHeaderOf
(hunk: Git.Hunk)
mods/diff/hooks/views/detail/hunk-header-of/hunk-header-of.ts:14
↓ 3 callers
Method
is
(tag: Tag)
mods/types/claude-code.d.ts:23881
↓ 3 callers
Function
isPaneSeen
()
mods/diff/hooks/register.ts:96
↓ 3 callers
Function
isRowAsKept
( drawn: Types.DrawnRow, call: Types.FinishedCall, )
mods/easel/hooks/shell/outcome-of-row/is-row-as-kept/is-row-as-kept.ts:14
↓ 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
isWeekend
(ms: number, zone: string)
mods/easel/hooks/core/calendar/is-weekend/is-weekend.ts:12
↓ 3 callers
Function
isWindows
($: EngineInterface, path: string)
mods/sec-default/hooks/early-run/placed.ts:103
↓ 3 callers
Function
joinedName
(name: string)
mods/sec-default/hooks/policy/managed-tools-restored/joined-name.ts:11
↓ 3 callers
Function
listingOf
( kinds: Iterable<readonly [string, Git.EntryKind]>, mtimeOf: (name: string) => number = () => 0, )
mods/diff/tests/fixtures/listing-of.ts:11
↓ 3 callers
Function
modeChoiceOf
(mode: Modes.Mode)
mods/agents-md/hooks/telemetry/mode-choice-of.ts:10
↓ 3 callers
Function
namesSettingsFile
( $: EngineInterface, texts: readonly string[], served: readonly string[], )
mods/sec-default/hooks/early-run/names-settings-file.ts:19
↓ 3 callers
Function
pinBackend
(engine: Host, isAsked = false)
mods/diff/hooks/register.ts:137
↓ 3 callers
Function
pixelPoint
(column: number, row: number)
mods/easel/hooks/core/svg/pixel-point/pixel-point.ts:11
↓ 3 callers
Function
pollWhileSeen
(engine: Host)
mods/diff/hooks/register.ts:599
↓ 3 callers
Function
projectDirOf
(path: string)
mods/agents-md/hooks/files/project-dir-of.ts:10
↓ 3 callers
Function
queryOf
(input: unknown)
mods/easel/hooks/shell/query-of/query-of.ts:10
↓ 3 callers
Function
scheduleRefresh
(engine: Host)
mods/diff/hooks/register.ts:870
↓ 3 callers
Function
shortened
($: EngineInterface, path: string)
mods/sec-default/hooks/early-run/placed.ts:114
↓ 3 callers
Function
summedSeries
( seriesToAdd: Types.SizedSeries[], name: string, )
mods/easel/hooks/core/charting/summed-series/summed-series.ts:14
↓ 3 callers
Function
textOf
(input: unknown)
mods/privacy/hooks/outbound/text-of.ts:16
↓ 3 callers
Function
textsIn
(lines: string[], field: Types.Field)
mods/easel/hooks/core/tables/tables-of-text/tables-of-plain-text/aligned-reading/cells-by-position/columns-of-fields/texts-in/texts-in.ts:10
↓ 3 callers
Function
timeAt
(ms: number, isZoned: boolean)
mods/easel/hooks/core/cells/read-time/time-at/time-at.ts:10
↓ 3 callers
Function
truncateMiddle
(text: string, maxWidth: number)
mods/easel/hooks/core/texts/truncate-middle/truncate-middle.ts:16
↓ 3 callers
Function
typicalStepMs
(step: Types.Step)
mods/easel/hooks/core/calendar/typical-step-ms/typical-step-ms.ts:9
↓ 3 callers
Function
widthOf
(text: string)
mods/easel/hooks/core/texts/width-of/width-of.ts:11
↓ 3 callers
Function
withUntracked
( context: Types.FetchContext, result: Types.NumstatResult, scope: Types.UntrackedScope, )
mods/diff/hooks/git/tiers/with-untracked/with-untracked.ts:20
↓ 3 callers
Function
wrappedTextOf
( room: Types.Room, texts: string[], ink: Shapes.Ink, )
mods/easel/hooks/core/layout/wrapped-text-of/wrapped-text-of.ts:15
↓ 2 callers
Function
archOf
(machine: string)
mods/telemetry/hooks/context/machine/arch-of/arch-of.ts:8
↓ 2 callers
Function
asBars
( request: CoreCall.ChartRequest, )
mods/easel/hooks/core/easel/chart-from-call/as-bars/as-bars.ts:10
↓ 2 callers
Function
askAgain
* Veils the pane and waits a bounded time for its answers, never for a * refresh under way, which lays its own rows. * * @param engine the bo
mods/diff/hooks/register.ts:422
↓ 2 callers
Function
askKeptOpen
(engine: Host)
mods/diff/hooks/register.ts:810
↓ 2 callers
Function
autoChartOf
( cache: Types.ChartCache, call: Types.ShownResult, )
mods/easel/hooks/shell/outcome-of-row/auto-chart-of/auto-chart-of.ts:13
↓ 2 callers
Function
barRowsOf
( shownBars: Types.SizedSeries[], allValues: number[], options: Types.BarRowsOptions, )
mods/easel/hooks/core/charting/chart-of/bar-rows-of/bar-rows-of.ts:25
↓ 2 callers
Function
barValueOf
(barSeries: Types.SizedSeries)
mods/easel/hooks/core/charting/bar-value-of/bar-value-of.ts:9
↓ 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:502
↓ 2 callers
Function
bySlug
(...probes: Backend.BackendProbe[])
mods/diff/tests/backend/backend-of.test.ts:11
↓ 2 callers
Function
cacheOutcome
( cache: Types.ChartCache, id: string, kept: Types.KeptChart, )
mods/easel/hooks/shell/cache-outcome/cache-outcome.ts:16
↓ 2 callers
Function
cellOfSpans
( spans: Types.Span[], start: number, partialBlocks: readonly string[], )
mods/easel/hooks/core/raster/cell-of-spans/cell-of-spans.ts:18
↓ 2 callers
Function
cellWidth
(text: string)
mods/diff/hooks/views/layout/cell-width/cell-width.ts:15
↓ 2 callers
Function
cellsUnder
( columns: string[], cells: Map<string, Cells.Cell>, )
mods/easel/hooks/core/tables/cells-under/cells-under.ts:11
next →
1–100 of 1,317, ranked by callers