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 / machine / machine / machine.ts
15 lines · 516 BRaw
1/**
2 * What one probe of the machine answers for the rows' `env` block: the
3 * system's own name, the architecture, the kernel, and what is on the PATH.
4 *
5 * `platformRaw` is the system's name lowercased (`darwin`, `linux`,
6 * `freebsd`, `win32`); the package managers and runtimes are comma-joined,
7 * an empty string for none.
8 */
9export type Machine = {
10 readonly platformRaw: string
11 readonly arch: string
12 readonly kernel: string | undefined
13 readonly packageManagers: string
14 readonly runtimes: string
15}