Conversation
| } | ||
|
|
||
| // Rename operations (similar structure but with find/replace logic) | ||
| private async renamePropertyInXml( |
There was a problem hiding this comment.
We probably never want to rename props as it causes major migration issues 🙈 At least till we have a migration API for renaming.
There was a problem hiding this comment.
I think we can modify and keep it as a guardrail, this can trigger a "Don't do it" logic we would like to provide.
That guardrail can also be added into PRD, but doesn't an mcp level intervention sound safer? It is indeed a critical knowledge not to rename properties.
| return group; | ||
| } | ||
|
|
||
| private createPropertyXmlObject(property: PropertyDefinition): any { |
There was a problem hiding this comment.
I think we can benefit from some kind of library that converts properties xml to some sort of json structure/AST and back. Co we can manipulate this simpler tree instead of doing magic on the pure XML tree. I believe @iobuhov already has this as he was experimenting with moving properties between XML and YAML formats.
| ? "customWidget" | ||
| : "module"; | ||
|
|
||
| inspection.packageInfo = { |
There was a problem hiding this comment.
There are already utils for this in automation/utils, better to re-use those ones if we can.
eb8926e to
09c33d4
Compare
dc3e695 to
7ff281a
Compare
1282abd to
0ff0a28
Compare
Major enhancements to the MCP server for better AI assistance: Sampling API (Context Awareness): - Lets AI "preview" widget code before making changes - Provides overview, properties, and runtime samples via Resources API - Think: "Look under the hood before fixing" Prompts API (Guided Workflows): - 7 pre-built "recipes" for common tasks (add property, build, debug, etc.) - Step-by-step guidance prevents AI mistakes - Think: "IKEA instructions for widget development" Architecture Improvements: - Modular structure: sampling.ts, prompts.ts separate from helpers.ts - Better separation of concerns - Cleaner, more maintainable codebase Documentation: - Updated README with clear explanations - Added usage examples for new features - Included project structure overview These changes make the AI smarter and less likely to break widgets by providing context awareness and structured workflows.
0ff0a28 to
734ad93
Compare
It's a WIP.