feat: add include_hidden option to list_files tool (#2526)
## Summary
- Add `include_hidden` parameter to the `list_files` tool schema that
allows including .dyad files (normally git-ignored) in results
- Update UI components (`DyadListFiles`, `DyadMarkdownParser`) to
display "(include hidden)" indicator when the option is used
- Add E2E test to verify the new functionality works correctly
## Test plan
- [x] E2E test for `list_files` with `include_hidden=true` added
- [x] All existing tests pass
- [x] Lint and type checks pass
🤖 Generated with [Claude Code](https://claude.com/claude-code)
<!-- devin-review-badge-begin -->
---
<a href="https://app.devin.ai/review/dyad-sh/dyad/pull/2526"
target="_blank">
<picture>
<source media="(prefers-color-scheme: dark)"
srcset="https://static.devin.ai/assets/gh-open-in-devin-review-dark.svg?v=1">
<img
src="https://static.devin.ai/assets/gh-open-in-devin-review-light.svg?v=1"
alt="Open with Devin">
</picture>
</a>
<!-- devin-review-badge-end -->
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Adds an include_hidden option to the list_files tool so the agent can
include .dyad files in results when needed. Updates the UI label and
consent preview, and adds an e2e test to cover the behavior.
- **New Features**
- Tool: include_hidden boolean (default false). When true, includes
.dyad files from the app root (regardless of directory filter), expands
the ignore list, dedupes/sorts results, and updates consent preview and
counts.
- UI: DyadListFiles shows “(include hidden)” when used; Markdown parser
passes the attribute through.
- Tests: Adds minimal-with-dyad fixture and e2e to verify .dyad files
appear in the list and snapshot.
<sup>Written for commit a60579274594888e75fd9cb9d4d6ce5437255b16.
Summary will update on new commits.</sup>
<!-- End of auto-generated description by cubic. -->
---------
Co-authored-by:
Will Chen <willchen90@gmail.com>
Co-authored-by:
Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by:
claude[bot] <41898282+claude[bot]@users.noreply.github.com>
正在显示
请
注册
或者
登录
后发表评论