spacehub

surshar / claude-code

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

Built by Anthropic · github.com/anthropics

claude-code / mods / diff / hooks / backend / installed-backend-probes.ts
12 lines · 777 BRaw
1import type { BackendProbe } from './types'
2
3/**
4 * Where a host adds backends: probes for version-control systems other than
5 * git, asked in insertion order before git (backendOf). Empty as shipped.
6 *
7 * A host compiling the module in adds a probe once, before the plugin
8 * registers: the module runs natively, and there is no other channel (the
9 * options are the manifest's userConfig; the scan wants a plain function).
10 */
11// module-state-allow: module-evaluation code wiring — a compiling host adds its probe functions (code references, not runtime input) once before registration and never removes or rebinds them; tests pass probes to backendOf directly; a per-Host copy would hold the same functions
12export const INSTALLED_BACKEND_PROBES = new Set<BackendProbe>()