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
| 1 | /** |
| 2 | * What the plugin reads of the environment once a session to describe it in |
| 3 | * every row, as the CLI's own rows describe theirs. |
| 4 | * |
| 5 | * Each field is one variable as `$.env.get` answers it, undefined when |
| 6 | * unset, or only whether it is set where its value is a secret or names a |
| 7 | * person or a host; context/ reduces each to the value the CLI's column has. |
| 8 | */ |
| 9 | export type Facts = { |
| 10 | readonly entrypoint: string | undefined |
| 11 | readonly agentSdkVersion: string | undefined |
| 12 | readonly hostPlatform: string | undefined |
| 13 | readonly os: string | undefined |
| 14 | readonly processorArchitecture: string | undefined |
| 15 | readonly shellPath: string | undefined |
| 16 | readonly ci: string | undefined |
| 17 | readonly claubbit: string | undefined |
| 18 | readonly githubActions: string | undefined |
| 19 | readonly claudeCodeAction: string | undefined |
| 20 | readonly claudeCodeRemote: string | undefined |
| 21 | readonly remoteEnvironmentType: string | undefined |
| 22 | readonly containerId: string | undefined |
| 23 | readonly remoteSessionId: string | undefined |
| 24 | readonly tags: string | undefined |
| 25 | readonly hasSessionAccessToken: boolean |
| 26 | readonly hasSessionIngressTokenFile: boolean |
| 27 | readonly hasWebsocketAuthFileDescriptor: boolean |
| 28 | readonly githubEventName: string | undefined |
| 29 | readonly runnerEnvironment: string | undefined |
| 30 | readonly runnerOs: string | undefined |
| 31 | readonly githubActionPath: string | undefined |
| 32 | readonly githubActorId: string | undefined |
| 33 | readonly githubRepositoryId: string | undefined |
| 34 | readonly githubRepositoryOwnerId: string | undefined |
| 35 | readonly sweBenchRunId: string | undefined |
| 36 | readonly sweBenchInstanceId: string | undefined |
| 37 | readonly sweBenchTaskId: string | undefined |
| 38 | readonly hasP4Port: boolean |
| 39 | readonly wslDistroName: string | undefined |
| 40 | readonly hasCursorTraceId: boolean |
| 41 | readonly vscodeGitAskpassMain: string | undefined |
| 42 | readonly bundleIdentifier: string | undefined |
| 43 | readonly hasVisualStudioVersion: boolean |
| 44 | readonly terminalEmulator: string | undefined |
| 45 | readonly term: string | undefined |
| 46 | readonly termProgram: string | undefined |
| 47 | readonly hasTmux: boolean |
| 48 | readonly hasSty: boolean |
| 49 | readonly hasKonsoleVersion: boolean |
| 50 | readonly hasGnomeTerminalService: boolean |
| 51 | readonly hasXtermVersion: boolean |
| 52 | readonly hasVteVersion: boolean |
| 53 | readonly hasTerminatorUuid: boolean |
| 54 | readonly hasKittyWindowId: boolean |
| 55 | readonly hasAlacrittyLog: boolean |
| 56 | readonly hasTilixId: boolean |
| 57 | readonly hasWtSession: boolean |
| 58 | readonly hasSessionName: boolean |
| 59 | readonly msystem: string | undefined |
| 60 | readonly hasConEmuAnsi: boolean |
| 61 | readonly hasConEmuPid: boolean |
| 62 | readonly hasConEmuTask: boolean |
| 63 | readonly hasSshConnection: boolean |
| 64 | readonly hasSshClient: boolean |
| 65 | readonly hasSshTty: boolean |
| 66 | } |