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

Method discover

tutorials/06_system_prompt_builder.py:252–259  ·  view source on GitHub ↗

自动发现项目上下文

(cls, cwd: str, current_date: str)

Source from the content-addressed store, hash-verified

250
251 @classmethod
252 def discover(cls, cwd: str, current_date: str) -> "ProjectContext":
253 """自动发现项目上下文"""
254 instruction_files = discover_instruction_files(cwd)
255 return cls(
256 cwd=cwd,
257 current_date=current_date,
258 instruction_files=instruction_files,
259 )
260
261 @classmethod
262 def discover_with_git(cls, cwd: str, current_date: str) -> "ProjectContext":

Callers 1

discover_with_gitMethod · 0.45

Calls 1

Tested by

no test coverage detected