MCPcopy Create free account
hub / github.com/Louisym/MiniCC / _environment_section

Method _environment_section

mini_claude_code/prompt.py:349–362  ·  view source on GitHub ↗

源码: prompt.rs:163-184

(self)

Source from the content-addressed store, hash-verified

347 # --- 动态 section 生成 ---
348
349 def _environment_section(self) -> str:
350 """源码: prompt.rs:163-184"""
351 ctx = self._project_context
352 cwd = str(ctx.cwd) if ctx else "unknown"
353 date = ctx.current_date if ctx else "unknown"
354 os_name = self._os_name or "unknown"
355 os_version = self._os_version or "unknown"
356 items = [
357 f"Model family: {FRONTIER_MODEL_NAME}",
358 f"Working directory: {cwd}",
359 f"Date: {date}",
360 f"Platform: {os_name} {os_version}",
361 ]
362 return "# Environment context\n" + "\n".join(f" - {item}" for item in items)
363
364 def _render_project_context(self) -> str:
365 """源码: prompt.rs:277-301"""

Callers 1

buildMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected