File tree Expand file tree Collapse file tree
src/specify_cli/integrations Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments