MCPcopy Create free account

hub / github.com/anthropics/claude-code / functions

Functions727 in github.com/anthropics/claude-code

↓ 51 callersMethodget
(index: number)
mods/types/claude-code.d.ts:19531
↓ 31 callersMethodhas
(name: string)
mods/types/claude-code.d.ts:19443
↓ 25 callersMethodset
(index: number, value?: any)
mods/types/claude-code.d.ts:19533
↓ 12 callersFunctionrun
mods/diff/tests/git/fetch-hunks.test.ts:43
↓ 9 callersMethoddelete
(name: string)
mods/types/claude-code.d.ts:19440
↓ 6 callersFunctionanswersOf
( numstat: string, bodies: Readonly<Record<string, string>>, dirty: readonly string[] = Object.keys(bodi
mods/diff/tests/fixtures/answers-of.ts:14
↓ 6 callersFunctionredraw
(engine: Host)
mods/diff/hooks/register.ts:220
↓ 5 callersFunctioncountOf
(items: readonly T[], passes: (item: T) => boolean)
mods/diff/hooks/count-of/count-of.ts:9
↓ 5 callersFunctionisRecord
(value: unknown)
mods/telemetry/hooks/entries/is-record/is-record.ts:7
↓ 5 callersFunctionkeptOf
(items: readonly (T | null)[])
mods/diff/hooks/kept-of/kept-of.ts:8
↓ 5 callersFunctionrefresh
* 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 callersFunctionrefusal
(what: string, method: Method = 'log')
mods/telemetry/hooks/entries/refusal/refusal.ts:16
↓ 5 callersFunctionstringsOf
(value: unknown)
mods/sec-default/hooks/early-run/strings-of.ts:7
↓ 4 callersFunctiondiffStat
( kit: Kit, added: number, removed: number, )
mods/diff/hooks/views/sections/diff-stat/diff-stat.tsx:17
↓ 4 callersFunctionfoldedName
(name: string)
mods/sec-default/hooks/policy/managed-tools-restored/is-org-tool/tool-prefix-of/folded-name/folded-name.ts:12
↓ 4 callersFunctionisRecord
(value: unknown)
mods/diff/hooks/is-record/is-record.ts:7
↓ 4 callersFunctionisScript
({ tool }: Call)
mods/sec-default/hooks/early-run/is-script.ts:11
↓ 4 callersFunctionopenOnFirstEdit
(engine: Host)
mods/diff/hooks/register.ts:723
↓ 4 callersFunctionwrittenPathOf
({ tool, input }: Call)
mods/sec-default/hooks/early-run/written-path-of.ts:9
↓ 3 callersMethodappend
(name: string, value: string)
mods/types/claude-code.d.ts:19439
↓ 3 callersFunctionarrayOf
(value: unknown)
mods/diff/hooks/array-of/array-of.ts:8
↓ 3 callersFunctionbounded
(call: Call)
mods/sec-default/hooks/early-run/bounded.ts:15
↓ 3 callersFunctiondialogEntriesOf
( model: PaneState.PaneModel, )
mods/diff/hooks/views/dialog-pane/dialog-entries-of/dialog-entries-of.ts:12
↓ 3 callersFunctiondialogPane
()
mods/diff/hooks/register.ts:199
↓ 3 callersFunctiondialogWindowOf
( model: Pick<PaneState.PaneModel, 'selectedPath'>, paths: readonly string[], )
mods/diff/hooks/views/dialog-pane/dialog-window-of/dialog-window-of.ts:12
↓ 3 callersFunctiondiffDataOf
( context: Types.FetchContext, result: Types.MergedResult, basis: DiffBasis, )
mods/diff/hooks/git/tiers/diff-data-of/diff-data-of.ts:13
↓ 3 callersFunctionendOverdueRest
* 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 callersFunctionentryKindsOf
(engine: Host)
mods/diff/hooks/entry-kinds-of/entry-kinds-of.ts:12
↓ 3 callersFunctionhunkHeaderOf
(hunk: Git.Hunk)
mods/diff/hooks/views/detail/hunk-header-of/hunk-header-of.ts:14
↓ 3 callersFunctionisPaneSeen
()
mods/diff/hooks/register.ts:84
↓ 3 callersFunctionisSameCall
(one: Call, other: Call)
mods/sec-default/hooks/early-run/is-same-call.ts:12
↓ 3 callersFunctionisSameVerdict
( one: EventResult<'tool.check'>, other: EventResult<'tool.check'> | undefined, )
mods/sec-default/hooks/held-verdict/verdicts/is-same-verdict.ts:11
↓ 3 callersFunctionjoinedName
(name: string)
mods/sec-default/hooks/policy/managed-tools-restored/joined-name.ts:11
↓ 3 callersFunctionlistingOf
(entries: Listing)
mods/diff/tests/git/fetch-diff.test.ts:19
↓ 3 callersFunctionloadBodies
(engine: Host)
mods/diff/hooks/register.ts:236
↓ 3 callersFunctionmodeChoiceOf
(mode: Modes.Mode)
mods/agents-md/hooks/telemetry/mode-choice-of.ts:10
↓ 3 callersFunctionownOption
(policy: Settings, name: string)
mods/sec-default/hooks/policy/own-option/own-option.ts:16
↓ 3 callersFunctionpinBackend
(engine: Host)
mods/diff/hooks/register.ts:120
↓ 3 callersFunctionprojectDirOf
(path: string)
mods/agents-md/hooks/files/project-dir-of.ts:10
↓ 3 callersFunctionscheduleRefresh
(engine: Host)
mods/diff/hooks/register.ts:571
↓ 3 callersMethodtoString
()
mods/types/claude-code.d.ts:19465
↓ 3 callersFunctionwithUntracked
( context: Types.FetchContext, result: Types.NumstatResult, scope: Types.UntrackedScope, )
mods/diff/hooks/git/tiers/with-untracked/with-untracked.ts:20
↓ 2 callersFunctionarchOf
(machine: string)
mods/telemetry/hooks/context/machine/arch-of/arch-of.ts:8
↓ 2 callersFunctionaskKeptOpen
(engine: Host)
mods/diff/hooks/register.ts:511
↓ 2 callersFunctionbareNameReadsUnder
(name: string, prefix: string)
mods/sec-default/hooks/policy/managed-tools-restored/bare-name-reads-under.ts:14
↓ 2 callersFunctionbaseNameOf
(path: string)
mods/diff/hooks/classify/base-name-of/base-name-of.ts:7
↓ 2 callersFunctionbodyStampOf
(data: Git.DiffData)
mods/diff/hooks/register.ts:266
↓ 2 callersFunctioncellWidth
(text: string)
mods/diff/hooks/views/layout/cell-width/cell-width.ts:15
↓ 2 callersFunctionchainRootOf
( file: InstructionFile, byPath: ReadonlyMap<string, InstructionFile>, )
mods/agents-md/hooks/files/chain-root-of.ts:13
↓ 2 callersFunctionchargedWidth
(text: string)
mods/diff/hooks/views/layout/charged-width/charged-width.ts:14
↓ 2 callersFunctioncheckedProps
( props: unknown, method: Method, )
mods/telemetry/hooks/entries/checked-props/checked-props.ts:16
↓ 2 callersFunctionclosePane
(engine: Host)
mods/diff/hooks/register.ts:710
↓ 2 callersFunctioncommand
()
mods/diff/tests/register.test.ts:354
↓ 2 callersFunctionconfigFolders
( $: EngineInterface, first: FirstFolder, )
mods/sec-default/hooks/early-run/config-folders.ts:14
↓ 2 callersFunctiondataOf
( files: readonly Git.FileStat[], overrides: Partial<Git.DiffData> = {}, )
mods/diff/tests/views/pane-view.test.ts:13
↓ 2 callersFunctiondatingsOf
( context: Types.DatingContext, paths: readonly string[], )
mods/diff/hooks/git/probes/datings-of/datings-of.ts:17
↓ 2 callersFunctiondepsOf
( script: Script, overrides: Partial<Git.GitDeps> = {}, )
mods/diff/tests/git/fetch-diff.test.ts:22
↓ 2 callersFunctiondisarm
(engine: Host)
mods/diff/hooks/register.ts:816
↓ 2 callersFunctioneditPatchOf
(lines: string[])
mods/diff/tests/fixtures/edit-patch-of.ts:7
↓ 2 callersMethodencode
(input?: string)
mods/types/claude-code.d.ts:19430
↓ 2 callersFunctionendRest
(engine: Host)
mods/diff/hooks/register.ts:505
↓ 2 callersFunctionfieldText
( input: unknown, field: string, without?: RegExp, )
mods/privacy/hooks/outbound/outgoing-text.ts:36
↓ 2 callersFunctionfitDialog
(engine: Host)
mods/diff/hooks/register.ts:208
↓ 2 callersFunctionfoldedId
(id: string)
mods/sec-default/hooks/policy/managed-tools-restored/is-org-tool/org-plugin-names/folded-id.ts:10
↓ 2 callersFunctionforged
* 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 callersFunctiongathered
()
mods/telemetry/hooks/telemetry-of/telemetry-of.ts:30
↓ 2 callersFunctiongithubRequest
( endpoint: string, method = "GET", body?: unknown )
scripts/sweep.ts:15
↓ 2 callersFunctiongithubRequest
(endpoint: string, token: string, method: string = 'GET', body?: any)
scripts/backfill-duplicate-comments.ts:26
↓ 2 callersFunctiongithubRequest
(endpoint: string, token: string, method: string = 'GET', body?: any)
scripts/auto-close-duplicates.ts:28
↓ 2 callersFunctionhandedCalls
( remembered: readonly Call[], texts: readonly string[], into?: string, )
mods/sec-default/hooks/early-run/handed-calls.ts:21
↓ 2 callersFunctionheldKind
(held: EventResult<'tool.check'>)
mods/sec-default/hooks/held-verdict/held-kind.ts:15
↓ 2 callersFunctionholdsAddress
( text: string, email: string | undefined, )
mods/privacy/hooks/outbound/names-user-agent.ts:85
↓ 2 callersMethodis
(tag: Tag)
mods/types/claude-code.d.ts:19559
↓ 2 callersFunctionisEnabledEntry
(value: unknown)
mods/sec-default/hooks/policy/managed-tools-restored/is-org-tool/org-plugin-names/is-enabled-entry.ts:8
↓ 2 callersFunctionisLike
(one: Noted)
mods/sec-default/hooks/early-run/create-call-memory.ts:93
↓ 2 callersFunctionisOnPaneSurface
( e: E, )
mods/diff/hooks/is-on-pane-surface/is-on-pane-surface.ts:10
↓ 2 callersFunctionisProjectOwn
(file: InstructionFile)
mods/agents-md/hooks/files/is-project-own.ts:10
↓ 2 callersFunctionisServerFileUnreadable
(policy: Settings)
mods/sec-default/hooks/policy/managed-tools-restored/is-org-tool/is-server-file-unreadable/is-server-file-unreadable.ts:10
↓ 2 callersFunctionisSettingsFile
( $: EngineInterface, path: string, first: FirstFolder, )
mods/sec-default/hooks/early-run/is-settings-file.ts:21
↓ 2 callersFunctionisWholeListing
(stdout: string, terminator = '\0')
mods/diff/hooks/git/parse/is-whole-listing/is-whole-listing.ts:16
↓ 2 callersFunctionkeepBaseline
()
mods/diff/hooks/register.ts:292
↓ 2 callersFunctionleadingHunkOf
(hunk: Git.Hunk, maxChars: number)
mods/diff/hooks/views/detail/leading-hunk-of/leading-hunk-of.ts:12
↓ 2 callersFunctionlinesOf
(texts: readonly string[])
mods/sec-default/hooks/early-run/handed-calls.ts:74
↓ 2 callersFunctionlistRow
( kit: Kit, row: KeyedPressable, tail: RenderElement, )
mods/diff/hooks/views/sections/list-row/list-row.tsx:18
↓ 2 callersFunctionmarkShown
( engine: Host, trigger: (typeof Record.SHOWN_TRIGGERS)[number], )
mods/diff/hooks/register.ts:586
↓ 2 callersFunctionmarkTabSwitch
(engine: Host, tab: (typeof Record.TABS)[number])
mods/diff/hooks/register.ts:716
↓ 2 callersFunctionmergedResultOf
( result: Types.NumstatResult, mark: Pick<Types.MergedResult, 'isUntrackedWithheld'>, )
mods/diff/hooks/git/tiers/with-untracked/merged-result-of/merged-result-of.ts:10
↓ 2 callersFunctionmessageOf
(error: unknown)
mods/diff/hooks/message-of/message-of.ts:8
↓ 2 callersFunctionmodelOf
( overrides: Partial<PaneState.PaneModel>, )
mods/diff/tests/views/pane-view.test.ts:29
↓ 2 callersFunctionnamesSettingsFile
( $: EngineInterface, texts: readonly string[], served: readonly string[], )
mods/sec-default/hooks/early-run/names-settings-file.ts:17
↓ 2 callersFunctionnormalSpellingOf
(path: string)
mods/agents-md/hooks/frames/normal-spelling-of.ts:8
↓ 2 callersFunctionnote
( id: Noted['id'], whole: Call, isAsSent: boolean, maker?: string, )
mods/sec-default/hooks/early-run/create-call-memory.ts:42
↓ 2 callersFunctionok
(stdout = '')
mods/diff/tests/fixtures/scripted/ok.ts:10
↓ 2 callersFunctiononeAddedOf
(text: string)
mods/diff/tests/fixtures/scripted/one-added-of.ts:8
↓ 2 callersFunctionopenPane
( engine: Host, trigger: (typeof Record.SHOWN_TRIGGERS)[number], closesBefore = personCloses, )
mods/diff/hooks/register.ts:608
↓ 2 callersFunctionorgPluginNames
(policy: Settings, own?: string)
mods/sec-default/hooks/policy/managed-tools-restored/is-org-tool/org-plugin-names/org-plugin-names.ts:26
↓ 2 callersFunctionorgServerNames
(policy: Settings)
mods/sec-default/hooks/policy/managed-tools-restored/is-org-tool/org-server-names/org-server-names.ts:13
↓ 2 callersFunctionplaced
( $: EngineInterface, path: string, steps?: number, )
mods/sec-default/hooks/early-run/placed.ts:18
↓ 2 callersFunctionplainLine
(line: string)
mods/sec-default/hooks/early-run/process-repeats.ts:117
↓ 2 callersFunctionpluginOf
(verdict: StampedVerdict)
mods/sec-default/hooks/held-verdict/verdicts/plugin-of.ts:12
next →1–100 of 727, ranked by callers