/**
 * SystemPrompt - 系统提示词工具模块
 */

export namespace SystemPrompt {
  /**
   * 获取环境信息提示词
   *
   * @param workdir 工作目录
   * @param isGitRepo 是否为 Git 仓库
   */
  export function environment(workdir: string, isGitRepo: boolean): string {
    return [
      'Here is some useful information about the environment you are running in:',
      '<env>',
      `  Working directory: ${workdir}`,
      `  Is directory a git repo: ${isGitRepo ? 'yes' : 'no'}`,
      `  Platform: ${process.platform}`,
      `  Today's date: ${new Date().toDateString()}`,
      '</env>',
    ].join('\n');
  }
}
