Skip to content

Conversation

@plx
Copy link
Owner

@plx plx commented Jul 31, 2025

Summary

  • Implements support for placeholder entries (...) in navigation guides
  • Allows indicating the presence of unlisted files without explicit enumeration
  • Adds comprehensive validation and error handling for placeholder rules

Changes

  • Added Placeholder variant to FilesystemItem enum
  • Updated parser to recognize ... as placeholder syntax
  • Implemented syntax validation:
    • Placeholders cannot have children
    • Placeholders cannot be adjacent to each other
  • Implemented semantic validation:
    • Placeholders must refer to at least one unlisted item
    • Cannot be used in empty directories
  • Added comprehensive unit tests for all placeholder functionality
  • Updated README.md with usage examples and rules

Example Usage

<agentic-navigation-guide>
- src/
  - main.rs # Entry point
  - ... # Other source files
- docs/
  - README.md
  - api.md
  - ... # Additional documentation
</agentic-navigation-guide>

Test Plan

  • All existing tests pass
  • New unit tests for placeholder parsing
  • New unit tests for placeholder syntax validation
  • New unit tests for placeholder semantic validation
  • Manual testing with valid and invalid placeholder usage
  • cargo fmt and cargo clippy pass without warnings

🤖 Generated with Claude Code

Implements support for placeholder entries in navigation guides to represent
unlisted files and directories. Placeholders are written as "..." and can
include optional comments.

Key features:
- Parse "..." as placeholder entries
- Validate syntax: no children, no adjacent placeholders
- Validate semantics: must refer to at least one unlisted item
- Comprehensive unit tests for all placeholder rules
- Updated documentation with usage examples

This allows more flexible navigation guides that can indicate the presence
of additional files without listing them all explicitly.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@plx plx merged commit 4937ddb into main Jul 31, 2025
6 checks passed
@plx plx deleted the feat/placeholder-entries branch July 31, 2025 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants