MCPcopy Create free account

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

Functions689 in github.com/anthropics/claude-code

↓ 1 callersFunctioncodeBlocksOf
( hunks: readonly Git.Hunk[], room: Types.BodyRoom, )
mods/diff/hooks/views/detail/code-blocks-of/code-blocks-of.ts:22
↓ 1 callersFunctioncodeOf
(segment: HunkSegment, cut: WindowCut)
mods/diff/hooks/views/body/draw-window.tsx:42
↓ 1 callersFunctioncompile_regex
Compile regex pattern with caching. Args: pattern: Regex pattern string Returns: Compiled regex pattern
plugins/hookify/core/rule_engine.py:15
↓ 1 callersFunctioncompute_v2_review_set
v2 diff strategy: derive the review set from git state alone. review_set = (files dirty vs current HEAD, plus files committed this turn when
plugins/security-guidance/hooks/diffstate.py:353
↓ 1 callersFunctionconsume_stop_state
Atomically snapshot all state the Stop hook needs and clear touched_paths. The Stop hook is asyncRewake — it runs in the background after Claude'
plugins/security-guidance/hooks/diffstate.py:74
↓ 1 callersFunctioncontextOf
(probe: Git.StampProbe, listing: string)
mods/diff/tests/git/probes/datings-of.test.ts:66
↓ 1 callersFunctioncountOf
(counted: PaneState.HeaderTotals)
mods/diff/hooks/views/sections/header-view.tsx:31
↓ 1 callersFunctioncountedRead
()
mods/sec-default/tests/policy/create-policy-memo.test.ts:10
↓ 1 callersFunctioncurrentBranchOf
(run: Types.GitRun)
mods/diff/hooks/git/probes/current-branch-of/current-branch-of.ts:10
↓ 1 callersFunctioncurrentOf
(engine: Host)
mods/diff/hooks/register.ts:71
↓ 1 callersFunctioncurrentOf
()
mods/diff/hooks/pane-state/dialog-title-of.ts:22
↓ 1 callersFunctioncutAtCap
(printed: readonly Fixtures.PrintedFile[])
mods/diff/tests/git/parse/parse-file-diffs.test.ts:14
↓ 1 callersFunctioncutHunks
( hunks: readonly Types.Hunk[], )
mods/diff/hooks/git/cut-hunks/cut-hunks.ts:14
↓ 1 callersFunctiondataIn
( mode: Git.BaseMode, source: Git.DiffSource, )
mods/diff/tests/pane-state/mode-label-of.test.ts:10
↓ 1 callersFunctiondataIn
( mode: Git.BaseMode, overrides: Partial<Git.DiffData> = {}, )
mods/diff/tests/pane-state/empty-state-of.test.ts:10
↓ 1 callersFunctiondataOf
( files: readonly Git.FileStat[], filesCount: number, )
mods/diff/tests/pane-state/header-totals-of.test.ts:10
↓ 1 callersFunctiondataOf
( files: readonly Git.FileStat[], basis: Partial<Git.DiffData> = {}, )
mods/diff/tests/git/fetch-hunks.test.ts:23
↓ 1 callersFunctiondatedBefore
(suffix: string)
mods/diff/tests/git/fetch-diff.test.ts:47
↓ 1 callersFunctiondatingOf
(stamp: Types.Stamp)
mods/diff/hooks/git/probes/datings-of/datings-of.ts:27
↓ 1 callersFunctiondefaultBranchOf
(run: Types.GitRun)
mods/diff/hooks/git/probes/default-branch-of/default-branch-of.ts:14
↓ 1 callersFunctiondepsOf
(run: Git.GitRun, probe: Git.StampProbe)
mods/diff/tests/git/probes/datings-of.test.ts:57
↓ 1 callersFunctiondepsOf
()
mods/diff/tests/git/probes/head-key-of.test.ts:28
↓ 1 callersFunctiondepsOf
(dirty: ReadonlySet<string> | null)
mods/diff/hooks/git/git-backend-of.ts:53
↓ 1 callersFunctiondetailOf
(entry: Entries.BodyEntry)
mods/diff/hooks/views/dialog-pane/dialog-pane.tsx:111
↓ 1 callersFunctiondialogPane
( kit: Kit, model: PaneState.PaneModel, )
mods/diff/hooks/views/dialog-pane/dialog-pane.tsx:29
↓ 1 callersFunctiondistinct
(values: readonly string[])
mods/telemetry/hooks/context/vcs-of/distinct/distinct.ts:7
↓ 1 callersFunctiondocksPane
( $: Engine, on: On, overrides: Partial<Omit<Views.Kit, 'ui'> & Views.PaneSeat> = {}, )
mods/diff/tests/fixtures/pane-view/docks-pane.ts:21
↓ 1 callersFunctiondrawn
()
mods/diff/tests/register.test.ts:31
↓ 1 callersFunctiondrawnFilesOf
( model: PaneState.PaneModel, )
mods/diff/hooks/drawn-files-of/drawn-files-of.ts:17
↓ 1 callersFunctiondrawnRoundMerge
($: Engine, on: On, finishedMs: number)
mods/diff/tests/register.test.ts:13
↓ 1 callersFunctiondrawsPane
( on: On, view: (kit: Views.Kit) => RenderElement, overrides: Partial<Omit<Views.Kit, 'ui'>> = {}, )
mods/diff/tests/fixtures/pane-view/draws-pane.ts:20
↓ 1 callersFunctionedgeOf
(way: 'up' | 'down', count: number)
mods/diff/hooks/views/dialog-pane/dialog-pane.tsx:108
↓ 1 callersFunctionedit
()
mods/diff/tests/register.test.ts:80
↓ 1 callersFunctioneditPatchOf
(lines: string[])
mods/diff/tests/fixtures/edit-patch-of.ts:7
↓ 1 callersFunctionelementOf
(segment: Segment, cut: WindowCut)
mods/diff/hooks/views/body/draw-window.tsx:58
↓ 1 callersFunctionemptyOf
(data: Git.DiffData | null, filesCount: number)
mods/diff/tests/pane-state/empty-state-of.test.ts:26
↓ 1 callersFunctionentrypointOf
(variable: string | undefined)
mods/telemetry/hooks/context/entrypoint-of/entrypoint-of.ts:8
↓ 1 callersFunctionenvironmentFieldsOf
(probe: Probe)
mods/telemetry/hooks/context/environment-fields-of/environment-fields-of.ts:21
↓ 1 callersFunctioneventDataOf
(row: Batching.PendingRow, stamp: BatchStamp)
mods/telemetry/hooks/entries/event-data-of/event-data-of.ts:17
↓ 1 callersFunctionextractDuplicateIssueNumber
(commentBody: string)
scripts/auto-close-duplicates.ts:49
↓ 1 callersFunctionextract_content_from_input
Extract content to check from tool input based on tool type.
plugins/security-guidance/hooks/security_reminder_hook.py:429
↓ 1 callersFunctionfetchBodies
( engine: Host, pinned: Backend.Backend, data: Git.DiffData, )
mods/diff/hooks/register.ts:249
↓ 1 callersFunctionfetchDiff
( deps: Types.GitDeps, mode: Types.BaseMode, )
mods/diff/hooks/git/fetch-diff/fetch-diff.ts:16
↓ 1 callersFunctionfetchHunks
( run: Types.GitRun, data: Types.DiffData, files: readonly Types.FileStat[], )
mods/diff/hooks/git/fetch-hunks/fetch-hunks.ts:22
↓ 1 callersFunctionfetched
()
mods/diff/hooks/register.ts:335
↓ 1 callersFunctionfetchedIn
(gitDir: Listing, applyDir: Listing = [])
mods/diff/tests/git/fetch-diff.test.ts:80
↓ 1 callersFunctionfetches
()
mods/diff/tests/git.test.ts:53
↓ 1 callersFunctionfetchesSince
(read: number)
mods/diff/tests/register.test.ts:168
↓ 1 callersFunctionfieldsOf
(event: string, props: Fields['props'])
mods/telemetry/hooks/entries/fields-of/fields-of.ts:13
↓ 1 callersFunctionfileEditOf
(result: unknown)
mods/diff/hooks/turns/turn-of/file-edit-of/file-edit-of.ts:16
↓ 1 callersFunctionfileOf
(entry: Entries.BodyEntry)
mods/diff/hooks/views/body/plan/segments/segments-of.ts:76
↓ 1 callersFunctionfilter_preexisting_from_diff
Filter out pre-existing content from diff files. When a file is fully rewritten (Write tool replaces entire content), git shows all lines
plugins/security-guidance/hooks/gitutil.py:657
↓ 1 callersFunctionfirstLineCut
(hunk: Git.Hunk, maxChars: number)
mods/diff/hooks/views/detail/sub-hunks-of/first-line-cut/first-line-cut.ts:12
↓ 1 callersFunctionflush
()
mods/telemetry/hooks/telemetry-of/telemetry-of.ts:143
↓ 1 callersFunctionget_baseline_file_content
Get the content of a file at the baseline SHA. Returns None if unavailable.
plugins/security-guidance/hooks/diffstate.py:140
↓ 1 callersFunctionget_git_diff
Get the git diff between the baseline SHA and the current working tree, including untracked (new) files. Uses a temporary copy of the gi
plugins/security-guidance/hooks/gitutil.py:391
↓ 1 callersFunctionget_lock_file
Get session-specific lock file path.
plugins/security-guidance/hooks/session_state.py:43
↓ 1 callersFunctiongitIn
( argv: readonly string[], script: Readonly<Record<string, string>> = REPOSITORY, )
mods/diff/tests/fixtures/git-in.ts:19
↓ 1 callersFunctiongitOf
(answer: Answer = Fixtures.hunksReadOf)
mods/diff/tests/git/fetch-hunks.test.ts:39
↓ 1 callersFunctiongithubActionsFieldsOf
( facts: Facts, )
mods/telemetry/hooks/context/environment-fields-of/github-actions-fields-of/github-actions-fields-of.ts:11
↓ 1 callersFunctionglobalConfigPath
(location: ConfigLocation)
mods/telemetry/hooks/context/identity/global-config-path/global-config-path.ts:10
↓ 1 callersFunctiongutterOf
(hunk: Git.Hunk)
mods/diff/hooks/views/body/plan/segments/segments-of.ts:33
↓ 1 callersFunctionhandle_commit_review_posttooluse
PostToolUse handler for Bash — reviews git commits for security issues. Runs as asyncRewake: detects `git commit` in the Bash command, parses
plugins/security-guidance/hooks/security_reminder_hook.py:901
↓ 1 callersFunctionhandle_push_sweep_posttooluse
Review the just-pushed range as one diff, advancing the base past the contiguous prefix of already-per-commit-reviewed shas. Spec: review `gi
plugins/security-guidance/hooks/security_reminder_hook.py:1378
↓ 1 callersFunctionhandle_stop_hook
Handle the Stop hook — final security check using git diff. Diffs against the baseline SHA captured at UserPromptSubmit to review only co
plugins/security-guidance/hooks/security_reminder_hook.py:1700
↓ 1 callersFunctionhandle_user_prompt_submit
Handle UserPromptSubmit — capture git baseline SHA. Called on every user prompt. Updates the baseline so the stop hook only reviews chang
plugins/security-guidance/hooks/security_reminder_hook.py:446
↓ 1 callersFunctionhasRemoteRef
(branch: string)
mods/diff/hooks/git/probes/default-branch-of/default-branch-of.ts:15
↓ 1 callersFunctionhexOf
(buffer: ArrayBuffer)
mods/telemetry/hooks/context/remote-hash-of/hex-of/hex-of.ts:9
↓ 1 callersFunctionhintOf
(path: string)
mods/diff/tests/views/pane-view.test.ts:332
↓ 1 callersFunctionhomeOf
* The home directory a `~` in a Read's path stands for, read the way the * Read tool reads it. * * The profile directory on a Windows spelling of t
mods/agents-md/hooks/register.ts:294
↓ 1 callersFunctionhunkOf
( starts: Record<string, string> | undefined, lines: readonly string[], )
mods/diff/hooks/git/hunk-of/hunk-of.ts:10
↓ 1 callersFunctionhunkOf
(entry: Entries.BodyEntry, hunk: Git.Hunk)
mods/diff/hooks/views/body/plan/segments/segments-of.ts:42
↓ 1 callersFunctionhunkReads
()
mods/diff/tests/git.test.ts:81
↓ 1 callersFunctionhunkSourceOf
(hunk: Git.Hunk)
mods/diff/hooks/views/detail/hunk-source-of/hunk-source-of.ts:10
↓ 1 callersFunctionhunksAnswerOf
(printed: readonly PrintedFile[])
mods/diff/tests/fixtures/scripted/hunks-answer-of.ts:11
↓ 1 callersFunctionhunksOf
(patch: unknown)
mods/diff/hooks/turns/turn-of/file-edit-of/hunks-of/hunks-of.ts:12
↓ 1 callersFunctionidleOn
(branch: string)
mods/diff/tests/git/probes/head-key-of.test.ts:69
↓ 1 callersFunctioninsertionIndex
( files: readonly InstructionFile[], dir: string, )
mods/agents-md/hooks/files/insertion-index.ts:20
↓ 1 callersFunctioninsetOf
(kit: Kit)
mods/diff/hooks/views/inset-of/inset-of.ts:11
↓ 1 callersFunctionisAnalyticsOff
(environment: Environment, policy: PolicyPins)
mods/telemetry/hooks/is-analytics-off/is-analytics-off.ts:18
↓ 1 callersFunctionisCheckpointing
( settings: Settings, disabling: string | undefined, )
mods/diff/hooks/is-checkpointing/is-checkpointing.ts:15
↓ 1 callersFunctionisEnvSet
(value: string | undefined)
mods/telemetry/hooks/is-analytics-off/is-env-set/is-env-set.ts:8
↓ 1 callersFunctionisEnvTruthy
(value: string | undefined)
mods/telemetry/hooks/is-analytics-off/is-env-truthy/is-env-truthy.ts:8
↓ 1 callersFunctionisGeneratedFile
(path: string)
mods/diff/hooks/classify/is-generated-file/is-generated-file.ts:15
↓ 1 callersFunctionisLastOfDiff
( data: Types.DiffData, file: Types.FileStat, )
mods/diff/hooks/git/fetch-hunks/is-last-of-diff/is-last-of-diff.ts:14
↓ 1 callersFunctionisMarkKind
(value: unknown)
mods/telemetry/hooks/entries/is-mark-kind/is-mark-kind.ts:10
↓ 1 callersFunctionisOrgTool
(policy: Settings, tool: string)
mods/sec-default/hooks/policy/managed-tools-restored/is-org-tool/is-org-tool.ts:13
↓ 1 callersFunctionisPastDetails
(result: Types.NumstatResult)
mods/diff/hooks/git/tiers/is-past-details/is-past-details.ts:11
↓ 1 callersFunctionisPreSessionOf
(path: string, dating: Types.Dating | undefined)
mods/diff/hooks/git/probes/untracked-rows-of/untracked-rows-of.ts:28
↓ 1 callersFunctionisSafeRefName
(ref: string)
mods/diff/hooks/git/probes/is-safe-ref-name/is-safe-ref-name.ts:12
↓ 1 callersFunctionisTaken
()
mods/diff/hooks/register.ts:480
↓ 1 callersFunctionisTestFile
(path: string)
mods/diff/hooks/classify/is-test-file/is-test-file.ts:13
↓ 1 callersFunctionisUnderUtf8Ceiling
(text: string, ceiling: number)
mods/diff/hooks/git/parse/is-whole-listing/is-under-utf8-ceiling/is-under-utf8-ceiling.ts:11
↓ 1 callersFunctionis_commit_review_enabled
Gate for the commit-review PostToolUse[Bash] hook. Commit review is enabled by default; ENABLE_COMMIT_REVIEW=0 remains the unconditional kill
plugins/security-guidance/hooks/security_reminder_hook.py:815
↓ 1 callersFunctionis_push_sweep_enabled
Gate for the push-sweep PostToolUse[Bash] hook. Enabled by default. ENABLE_COMMIT_REVIEW=0 remains the unconditional kill switch (push-sweep
plugins/security-guidance/hooks/security_reminder_hook.py:698
↓ 1 callersFunctionkeeping
()
mods/diff/tests/fixtures/keeping.ts:7
↓ 1 callersFunctionkindWalkOf
( entryKindsOf: Types.GitDeps['entryKindsOf'], root: string, budget: number, )
mods/diff/hooks/git/probes/kind-walk-of/kind-walk-of.ts:16
↓ 1 callersFunctionlabelOf
( mode: Git.BaseMode, requestedMode: Git.BaseMode, data: Git.DiffData | null, )
mods/diff/tests/pane-state/mode-label-of.test.ts:25
↓ 1 callersFunctionlargePast
(extra: number)
mods/diff/tests/git/parse/parse-file-diffs.test.ts:250
↓ 1 callersFunctionleadOf
(prop: string)
mods/diff/tests/fixtures/tree/text-of.ts:23
← previousnext →201–300 of 689, ranked by callers