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 / telemetry / hooks / context / probe / probe.ts
22 lines · 764 BRaw
1import type Deployment from '../../deployment'
2import type { Facts } from '../../facts'
3import type { Identity } from '../identity'
4import type { LinuxDistro } from '../linux-distro-of'
5import type { Machine } from '../machine'
6
7/**
8 * Everything gathered for the session's context before it is shaped: the
9 * variables, the identity, the machine, the Linux files and the directory.
10 */
11export type Probe = {
12 readonly facts: Facts
13 readonly signals: readonly Deployment.DeploymentSignal[]
14 readonly identity: Identity
15 readonly machine: Machine
16 readonly platform: string
17 readonly isInteractive: boolean
18 readonly distro: LinuxDistro
19 readonly wslVersion: string | undefined
20 readonly vcs: string | undefined
21 readonly remoteHash: string | undefined
22}