mirror of
https://github.com/czlonkowski/n8n-mcp.git
synced 2026-02-06 05:23:08 +00:00
feat: implement comprehensive expression format validation system
- Add universal expression validator with 100% reliable detection - Implement confidence-based scoring for node-specific recommendations - Add resource locator format detection and validation - Fix pattern matching precision (exact/prefix instead of includes) - Add recursion depth protection (MAX_RECURSION_DEPTH = 100) - Validate resource locator modes (id, url, expression, name, list) - Separate universal rules from node-specific intelligence - Add comprehensive test coverage (94%+ statements) - Prevent common AI agent mistakes with expressions Addresses code review feedback with critical fixes and enhancements. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,16 @@
|
||||
// n8n API Types - Ported from n8n-manager-for-ai-agents
|
||||
// These types define the structure of n8n API requests and responses
|
||||
|
||||
// Resource Locator Types
|
||||
export interface ResourceLocatorValue {
|
||||
__rl: true;
|
||||
value: string;
|
||||
mode: 'id' | 'url' | 'expression' | string;
|
||||
}
|
||||
|
||||
// Expression Format Types
|
||||
export type ExpressionValue = string | ResourceLocatorValue;
|
||||
|
||||
// Workflow Node Types
|
||||
export interface WorkflowNode {
|
||||
id: string;
|
||||
|
||||
Reference in New Issue
Block a user