Add a realistic preview mock filesystem and file RPC support#3042
Add a realistic preview mock filesystem and file RPC support#3042
Conversation
Co-authored-by: sawka <2722291+sawka@users.noreply.github.com>
Deploying waveterm with
|
| Latest commit: |
2778364
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://52c6d485.waveterm.pages.dev |
| Branch Preview URL: | https://copilot-improve-preview-mock.waveterm.pages.dev |
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (3 files)
The changes implement a mock filesystem for testing purposes, including:
The implementation is well-structured with proper async generator support for streaming operations. Verification performed: Reviewed all changed files and confirmed no issues found. |
…ew-mocking-ability
The preview environment had no useful filesystem model, which limited FileSystem integration work and made file-oriented previews hard to exercise. This change adds a realistic mock filesystem rooted at
/Users/mikeand teachesmockwaveenvto answer the core file RPCs used by preview flows.Mock filesystem dataset
/Users/mikewith 100+ file entries across common directories likeDocuments,Downloads,Pictures,Projects, andwaveterm..bashrc)meeting-notes.md, repo docs).png,.jpg)Mock file RPC implementations
FileInfoCommandFileReadCommandFileListCommandFileJoinCommandFileListStreamCommandFileReadStreamCommandwsh://...URIs and plain paths~, relative paths,./..)entriesFileListOpts.allPreview behavior improvements
FileJoinCommandwork against a coherent tree.Focused coverage
Example:
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.