inspect_repository#

Let a model keep its own tools and notes in a repository on disk. See the guide.

zett_agent.jit_harness.manifest.inspect_repository(directory, *, tools=None)[源代码]#

Read the repository's raw declarations and report every problem with them.

Nothing is imported: this is file work, so it answers for a directory no session has opened.

参数:
  • directory (str | Path) -- Repository root, the directory holding __init__.py.

  • tools (Iterable[str] | None) -- Names the repository defines. None means they are not known yet, so only the rules that depend on the files are checked; pass the names — an empty iterable included — to check them against the bans and to compare them with the declaration.

返回:

A RepositoryPolicy holding the parsed manifest, the ban list, and one message per problem. RepositoryPolicy.ok is false when there are any.

返回类型:

RepositoryPolicy