()
| 743 | } |
| 744 | |
| 745 | export function getUnameSR(): string { |
| 746 | // os.type() and os.release() both wrap uname(3) on POSIX, producing output |
| 747 | // byte-identical to `uname -sr`: "Darwin 25.3.0", "Linux 6.6.4", etc. |
| 748 | // Windows has no uname(3); os.type() returns "Windows_NT" there, but |
| 749 | // os.version() gives the friendlier "Windows 11 Pro" (via GetVersionExW / |
| 750 | // RtlGetVersion) so use that instead. Feeds the OS Version line in the |
| 751 | // system prompt env section. |
| 752 | if (env.platform === 'win32') { |
| 753 | return `${osVersion()} ${osRelease()}` |
| 754 | } |
| 755 | return `${osType()} ${osRelease()}` |
| 756 | } |
| 757 | |
| 758 | export const DEFAULT_AGENT_PROMPT = `You are an agent for Claude Code, Anthropic's official CLI for Claude. Given the user's message, you should use the tools available to complete the task. Complete the task fully—don't gold-plate, but don't leave it half-done. When you complete the task, respond with a concise report covering what was done and any key findings — the caller will relay this to the user, so it only needs the essentials.` |
| 759 |
no outgoing calls
no test coverage detected