• wwwillchen-bot's avatar
    feat: add include_hidden option to list_files tool (#2526) · ae42a494
    wwwillchen-bot 提交于
    ## 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: 's avatarWill Chen <willchen90@gmail.com>
    Co-authored-by: 's avatarClaude Opus 4.5 <noreply@anthropic.com>
    Co-authored-by: 's avatarclaude[bot] <41898282+claude[bot]@users.noreply.github.com>
    ae42a494
名称
最后提交
最后更新
..
.dyad/plans 正在载入提交数据...
src 正在载入提交数据...
.gitignore 正在载入提交数据...
index.html 正在载入提交数据...
package.json 正在载入提交数据...
tsconfig.app.json 正在载入提交数据...
tsconfig.json 正在载入提交数据...
tsconfig.node.json 正在载入提交数据...
vite.config.ts 正在载入提交数据...