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