Skip to content

latest

Pre-release
Pre-release

Choose a tag to compare

@collindutter collindutter released this 24 Jun 22:44
aeb8056
feat: add description field to DirectoryDefinition (#4929)

* feat: add description field to DirectoryDefinition

Closes griptape-ai/griptape-nodes-engine#4927.

Project directories previously carried only a name and a path macro, leaving
their purpose implicit. Add an optional human-readable description field,
populate it on the system defaults, and bump the project template schema
version to 0.5.0.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* test: align save-path fixtures with new directory description field

Adding `description` to `DirectoryDefinition` and populating it on the
default directories meant a parent template's `outputs` directory now
inherits a non-null description from `DEFAULT_PROJECT_TEMPLATE`. Four
`TestSaveProjectTemplate` fixtures hand-built a child `outputs` entry
that omitted `description`, causing the per-item atomic diff in
`to_overlay_yaml` to treat the child as divergent and emit tombstones
for the inherited siblings.

Update the fixtures to include the inherited description so they
mirror the merged-template shape the GUI actually sends back. Also
add two new save-path tests that exercise the new field directly:
emitting a custom description while the path stays inherited, and
clearing an inherited parent description with explicit null.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>