feat: implement fuzzy search and replace functionality with Levenshtein distance
- Added `applySearchReplace` function to handle search and replace operations with fuzzy matching capabilities. - Introduced tests for various scenarios including fuzzy matching with typos, exact matches, and handling whitespace differences. - Created a parser for search/replace blocks to facilitate the new functionality. - Updated prompts for search-replace operations to clarify usage and examples. - Added utility functions for text normalization and language detection based on file extensions. - Implemented a minimal stdio MCP server for local testing with tools for adding numbers and printing environment variables.
This commit is contained in:
17
README.md
17
README.md
@@ -2,7 +2,9 @@
|
||||
|
||||
Dyad is a local, open-source AI app builder. It's fast, private, and fully under your control — like Lovable, v0, or Bolt, but running right on your machine.
|
||||
|
||||

|
||||
[](https://dyad.sh/)
|
||||
|
||||
More info at: [https://dyad.sh/](https://dyad.sh/)
|
||||
|
||||
## 🚀 Features
|
||||
|
||||
@@ -79,14 +81,19 @@ npm run lint
|
||||
npm run prettier:check
|
||||
```
|
||||
|
||||
|
||||
|
||||
## 🤝 Community
|
||||
|
||||
Join our growing community of AI app builders on **Reddit**: [r/dyadbuilders](https://www.reddit.com/r/dyadbuilders/) — share your projects and get help from the community!
|
||||
Join our growing community of AI app builders on **Reddit**: [r/dyadbuilders](https://www.reddit.com/r/dyadbuilders/) - share your projects and get help from the community!
|
||||
|
||||
## 🛠️ Contributing
|
||||
|
||||
If you're interested in contributing to Dyad, please read our [contributing](./CONTRIBUTING.md) doc.
|
||||
**Dyad** is open-source (Apache 2.0 licensed).
|
||||
|
||||
## 📄 License
|
||||
If you're interested in contributing to dyad, please read our [contributing](./CONTRIBUTING.md) doc.
|
||||
|
||||
MIT License — see [LICENSE](./LICENSE).
|
||||
## License
|
||||
|
||||
- All the code in this repo outside of `src/pro` is open-source and licensed under Apache 2.0 - see [LICENSE](./LICENSE).
|
||||
- All the code in this repo within `src/pro` is fair-source and licensed under [Functional Source License 1.1 Apache 2.0](https://fsl.software/) - see [LICENSE](./src/pro/LICENSE).
|
||||
|
||||
Reference in New Issue
Block a user