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 / probe-script / probe-script.ts
17 lines · 572 BRaw
1/**
2 * The one shell script the plugin runs, once a session, anywhere but
3 * Windows; five lines come back.
4 *
5 * `uname -s`, `uname -r`, `uname -m`, then the package managers found of
6 * npm, yarn and pnpm comma-joined, then the runtimes found of bun, deno and
7 * node.
8 */
9export const PROBE_SCRIPT = [
10 'uname -s',
11 'uname -r',
12 'uname -m',
13 'for c in npm yarn pnpm; do command -v "$c" >/dev/null 2>&1 && ' +
14 'printf "%s," "$c"; done; echo',
15 'for c in bun deno node; do command -v "$c" >/dev/null 2>&1 && ' +
16 'printf "%s," "$c"; done; echo',
17].join('\n')