Skip to content

Commit b9fd10d

Browse files
mnriemCopilot
andauthored
Update src/specify_cli/integrations/base.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent b798ab5 commit b9fd10d

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

  • src/specify_cli/integrations

src/specify_cli/integrations/base.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,15 @@ def ensure_context_file(
9494
project_root: Path,
9595
manifest: "IntegrationManifest",
9696
) -> Path | None:
97-
"""Post-constitution hook: create the agent's root context file.
97+
"""Post-constitution-setup hook: create the agent's root context file.
9898
9999
Called from ``init()`` after ``ensure_constitution_from_template``
100-
has run, so the constitution is guaranteed to exist when this is
101-
invoked. Default: no-op. Integrations that need a root file
102-
(e.g. ``CLAUDE.md``) should override this. Returns the created
103-
path (to be recorded in the manifest) or ``None``.
100+
has run. Integrations that depend on the constitution should still
101+
verify that it exists before using it, since the setup step may
102+
complete without creating the file. Default: no-op. Integrations
103+
that need a root file (e.g. ``CLAUDE.md``) should override this.
104+
Returns the created path (to be recorded in the manifest) or
105+
``None``.
104106
"""
105107
return None
106108

0 commit comments

Comments
 (0)