n8n-atom-mcp 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.example +220 -0
- package/LICENSE +21 -0
- package/README.md +78 -0
- package/data/nodes.db +0 -0
- package/dist/community/community-node-fetcher.d.ts +118 -0
- package/dist/community/community-node-fetcher.d.ts.map +1 -0
- package/dist/community/community-node-fetcher.js +239 -0
- package/dist/community/community-node-fetcher.js.map +1 -0
- package/dist/community/community-node-service.d.ts +42 -0
- package/dist/community/community-node-service.d.ts.map +1 -0
- package/dist/community/community-node-service.js +210 -0
- package/dist/community/community-node-service.js.map +1 -0
- package/dist/community/documentation-batch-processor.d.ts +33 -0
- package/dist/community/documentation-batch-processor.d.ts.map +1 -0
- package/dist/community/documentation-batch-processor.js +156 -0
- package/dist/community/documentation-batch-processor.js.map +1 -0
- package/dist/community/documentation-generator.d.ts +65 -0
- package/dist/community/documentation-generator.d.ts.map +1 -0
- package/dist/community/documentation-generator.js +220 -0
- package/dist/community/documentation-generator.js.map +1 -0
- package/dist/community/index.d.ts +5 -0
- package/dist/community/index.d.ts.map +1 -0
- package/dist/community/index.js +14 -0
- package/dist/community/index.js.map +1 -0
- package/dist/config/n8n-api.d.ts +15 -0
- package/dist/config/n8n-api.d.ts.map +1 -0
- package/dist/config/n8n-api.js +53 -0
- package/dist/config/n8n-api.js.map +1 -0
- package/dist/constants/type-structures.d.ts +123 -0
- package/dist/constants/type-structures.d.ts.map +1 -0
- package/dist/constants/type-structures.js +654 -0
- package/dist/constants/type-structures.js.map +1 -0
- package/dist/database/database-adapter.d.ts +33 -0
- package/dist/database/database-adapter.d.ts.map +1 -0
- package/dist/database/database-adapter.js +420 -0
- package/dist/database/database-adapter.js.map +1 -0
- package/dist/database/node-repository.d.ts +152 -0
- package/dist/database/node-repository.d.ts.map +1 -0
- package/dist/database/node-repository.js +791 -0
- package/dist/database/node-repository.js.map +1 -0
- package/dist/errors/validation-service-error.d.ts +10 -0
- package/dist/errors/validation-service-error.d.ts.map +1 -0
- package/dist/errors/validation-service-error.js +26 -0
- package/dist/errors/validation-service-error.js.map +1 -0
- package/dist/http-server-single-session.d.ts +52 -0
- package/dist/http-server-single-session.d.ts.map +1 -0
- package/dist/http-server-single-session.js +1180 -0
- package/dist/http-server-single-session.js.map +1 -0
- package/dist/http-server.d.ts +9 -0
- package/dist/http-server.d.ts.map +1 -0
- package/dist/http-server.js +481 -0
- package/dist/http-server.js.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +20 -0
- package/dist/index.js.map +1 -0
- package/dist/loaders/node-loader.d.ts +11 -0
- package/dist/loaders/node-loader.d.ts.map +1 -0
- package/dist/loaders/node-loader.js +79 -0
- package/dist/loaders/node-loader.js.map +1 -0
- package/dist/mappers/docs-mapper.d.ts +7 -0
- package/dist/mappers/docs-mapper.d.ts.map +1 -0
- package/dist/mappers/docs-mapper.js +106 -0
- package/dist/mappers/docs-mapper.js.map +1 -0
- package/dist/mcp/handlers-n8n-manager.d.ts +58 -0
- package/dist/mcp/handlers-n8n-manager.d.ts.map +1 -0
- package/dist/mcp/handlers-n8n-manager.js +3299 -0
- package/dist/mcp/handlers-n8n-manager.js.map +1 -0
- package/dist/mcp/handlers-workflow-diff.d.ts +5 -0
- package/dist/mcp/handlers-workflow-diff.d.ts.map +1 -0
- package/dist/mcp/handlers-workflow-diff.js +461 -0
- package/dist/mcp/handlers-workflow-diff.js.map +1 -0
- package/dist/mcp/index.d.ts +3 -0
- package/dist/mcp/index.d.ts.map +1 -0
- package/dist/mcp/index.js +228 -0
- package/dist/mcp/index.js.map +1 -0
- package/dist/mcp/server.d.ts +82 -0
- package/dist/mcp/server.d.ts.map +1 -0
- package/dist/mcp/server.js +3006 -0
- package/dist/mcp/server.js.map +1 -0
- package/dist/mcp/stdio-wrapper.d.ts +3 -0
- package/dist/mcp/stdio-wrapper.d.ts.map +1 -0
- package/dist/mcp/stdio-wrapper.js +81 -0
- package/dist/mcp/stdio-wrapper.js.map +1 -0
- package/dist/mcp/tool-docs/configuration/get-node.d.ts +3 -0
- package/dist/mcp/tool-docs/configuration/get-node.d.ts.map +1 -0
- package/dist/mcp/tool-docs/configuration/get-node.js +90 -0
- package/dist/mcp/tool-docs/configuration/get-node.js.map +1 -0
- package/dist/mcp/tool-docs/configuration/index.d.ts +2 -0
- package/dist/mcp/tool-docs/configuration/index.d.ts.map +1 -0
- package/dist/mcp/tool-docs/configuration/index.js +6 -0
- package/dist/mcp/tool-docs/configuration/index.js.map +1 -0
- package/dist/mcp/tool-docs/discovery/index.d.ts +2 -0
- package/dist/mcp/tool-docs/discovery/index.d.ts.map +1 -0
- package/dist/mcp/tool-docs/discovery/index.js +6 -0
- package/dist/mcp/tool-docs/discovery/index.js.map +1 -0
- package/dist/mcp/tool-docs/discovery/search-nodes.d.ts +3 -0
- package/dist/mcp/tool-docs/discovery/search-nodes.d.ts.map +1 -0
- package/dist/mcp/tool-docs/discovery/search-nodes.js +70 -0
- package/dist/mcp/tool-docs/discovery/search-nodes.js.map +1 -0
- package/dist/mcp/tool-docs/guides/ai-agents-guide.d.ts +3 -0
- package/dist/mcp/tool-docs/guides/ai-agents-guide.d.ts.map +1 -0
- package/dist/mcp/tool-docs/guides/ai-agents-guide.js +739 -0
- package/dist/mcp/tool-docs/guides/ai-agents-guide.js.map +1 -0
- package/dist/mcp/tool-docs/guides/index.d.ts +2 -0
- package/dist/mcp/tool-docs/guides/index.d.ts.map +1 -0
- package/dist/mcp/tool-docs/guides/index.js +6 -0
- package/dist/mcp/tool-docs/guides/index.js.map +1 -0
- package/dist/mcp/tool-docs/index.d.ts +4 -0
- package/dist/mcp/tool-docs/index.d.ts.map +1 -0
- package/dist/mcp/tool-docs/index.js +34 -0
- package/dist/mcp/tool-docs/index.js.map +1 -0
- package/dist/mcp/tool-docs/system/index.d.ts +3 -0
- package/dist/mcp/tool-docs/system/index.d.ts.map +1 -0
- package/dist/mcp/tool-docs/system/index.js +8 -0
- package/dist/mcp/tool-docs/system/index.js.map +1 -0
- package/dist/mcp/tool-docs/system/n8n-diagnostic.d.ts +3 -0
- package/dist/mcp/tool-docs/system/n8n-diagnostic.d.ts.map +1 -0
- package/dist/mcp/tool-docs/system/n8n-diagnostic.js +99 -0
- package/dist/mcp/tool-docs/system/n8n-diagnostic.js.map +1 -0
- package/dist/mcp/tool-docs/system/n8n-health-check.d.ts +3 -0
- package/dist/mcp/tool-docs/system/n8n-health-check.d.ts.map +1 -0
- package/dist/mcp/tool-docs/system/n8n-health-check.js +102 -0
- package/dist/mcp/tool-docs/system/n8n-health-check.js.map +1 -0
- package/dist/mcp/tool-docs/system/n8n-list-available-tools.d.ts +3 -0
- package/dist/mcp/tool-docs/system/n8n-list-available-tools.d.ts.map +1 -0
- package/dist/mcp/tool-docs/system/n8n-list-available-tools.js +75 -0
- package/dist/mcp/tool-docs/system/n8n-list-available-tools.js.map +1 -0
- package/dist/mcp/tool-docs/system/tools-documentation.d.ts +3 -0
- package/dist/mcp/tool-docs/system/tools-documentation.d.ts.map +1 -0
- package/dist/mcp/tool-docs/system/tools-documentation.js +65 -0
- package/dist/mcp/tool-docs/system/tools-documentation.js.map +1 -0
- package/dist/mcp/tool-docs/templates/get-template.d.ts +3 -0
- package/dist/mcp/tool-docs/templates/get-template.d.ts.map +1 -0
- package/dist/mcp/tool-docs/templates/get-template.js +84 -0
- package/dist/mcp/tool-docs/templates/get-template.js.map +1 -0
- package/dist/mcp/tool-docs/templates/index.d.ts +3 -0
- package/dist/mcp/tool-docs/templates/index.d.ts.map +1 -0
- package/dist/mcp/tool-docs/templates/index.js +8 -0
- package/dist/mcp/tool-docs/templates/index.js.map +1 -0
- package/dist/mcp/tool-docs/templates/search-templates.d.ts +3 -0
- package/dist/mcp/tool-docs/templates/search-templates.d.ts.map +1 -0
- package/dist/mcp/tool-docs/templates/search-templates.js +143 -0
- package/dist/mcp/tool-docs/templates/search-templates.js.map +1 -0
- package/dist/mcp/tool-docs/types.d.ts +32 -0
- package/dist/mcp/tool-docs/types.d.ts.map +1 -0
- package/dist/mcp/tool-docs/types.js +3 -0
- package/dist/mcp/tool-docs/types.js.map +1 -0
- package/dist/mcp/tool-docs/validation/index.d.ts +3 -0
- package/dist/mcp/tool-docs/validation/index.d.ts.map +1 -0
- package/dist/mcp/tool-docs/validation/index.js +8 -0
- package/dist/mcp/tool-docs/validation/index.js.map +1 -0
- package/dist/mcp/tool-docs/validation/validate-node.d.ts +3 -0
- package/dist/mcp/tool-docs/validation/validate-node.d.ts.map +1 -0
- package/dist/mcp/tool-docs/validation/validate-node.js +82 -0
- package/dist/mcp/tool-docs/validation/validate-node.js.map +1 -0
- package/dist/mcp/tool-docs/validation/validate-workflow.d.ts +3 -0
- package/dist/mcp/tool-docs/validation/validate-workflow.d.ts.map +1 -0
- package/dist/mcp/tool-docs/validation/validate-workflow.js +86 -0
- package/dist/mcp/tool-docs/validation/validate-workflow.js.map +1 -0
- package/dist/mcp/tool-docs/workflow_management/index.d.ts +13 -0
- package/dist/mcp/tool-docs/workflow_management/index.d.ts.map +1 -0
- package/dist/mcp/tool-docs/workflow_management/index.js +28 -0
- package/dist/mcp/tool-docs/workflow_management/index.js.map +1 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-autofix-workflow.d.ts +3 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-autofix-workflow.d.ts.map +1 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-autofix-workflow.js +162 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-autofix-workflow.js.map +1 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-create-workflow.d.ts +3 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-create-workflow.d.ts.map +1 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-create-workflow.js +102 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-create-workflow.js.map +1 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-delete-workflow.d.ts +3 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-delete-workflow.d.ts.map +1 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-delete-workflow.js +52 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-delete-workflow.js.map +1 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-deploy-template.d.ts +3 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-deploy-template.d.ts.map +1 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-deploy-template.js +73 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-deploy-template.js.map +1 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-executions.d.ts +3 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-executions.d.ts.map +1 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-executions.js +109 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-executions.js.map +1 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-get-workflow.d.ts +3 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-get-workflow.d.ts.map +1 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-get-workflow.js +68 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-get-workflow.js.map +1 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-list-workflows.d.ts +3 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-list-workflows.d.ts.map +1 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-list-workflows.js +57 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-list-workflows.js.map +1 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-test-workflow.d.ts +3 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-test-workflow.d.ts.map +1 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-test-workflow.js +140 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-test-workflow.js.map +1 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-update-full-workflow.d.ts +3 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-update-full-workflow.d.ts.map +1 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-update-full-workflow.js +61 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-update-full-workflow.js.map +1 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-update-partial-workflow.d.ts +3 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-update-partial-workflow.d.ts.map +1 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-update-partial-workflow.js +420 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-update-partial-workflow.js.map +1 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-validate-workflow.d.ts +3 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-validate-workflow.d.ts.map +1 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-validate-workflow.js +73 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-validate-workflow.js.map +1 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-workflow-versions.d.ts +3 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-workflow-versions.d.ts.map +1 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-workflow-versions.js +170 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-workflow-versions.js.map +1 -0
- package/dist/mcp/tools-documentation.d.ts +6 -0
- package/dist/mcp/tools-documentation.d.ts.map +1 -0
- package/dist/mcp/tools-documentation.js +682 -0
- package/dist/mcp/tools-documentation.js.map +1 -0
- package/dist/mcp/tools-file-operations.d.ts +154 -0
- package/dist/mcp/tools-file-operations.d.ts.map +1 -0
- package/dist/mcp/tools-file-operations.js +213 -0
- package/dist/mcp/tools-file-operations.js.map +1 -0
- package/dist/mcp/tools-n8n-friendly.d.ts +6 -0
- package/dist/mcp/tools-n8n-friendly.d.ts.map +1 -0
- package/dist/mcp/tools-n8n-friendly.js +89 -0
- package/dist/mcp/tools-n8n-friendly.js.map +1 -0
- package/dist/mcp/tools-n8n-manager.d.ts +3 -0
- package/dist/mcp/tools-n8n-manager.d.ts.map +1 -0
- package/dist/mcp/tools-n8n-manager.js +1320 -0
- package/dist/mcp/tools-n8n-manager.js.map +1 -0
- package/dist/mcp/tools.d.ts +3 -0
- package/dist/mcp/tools.d.ts.map +1 -0
- package/dist/mcp/tools.js +424 -0
- package/dist/mcp/tools.js.map +1 -0
- package/dist/mcp/workflow-examples.d.ts +76 -0
- package/dist/mcp/workflow-examples.d.ts.map +1 -0
- package/dist/mcp/workflow-examples.js +111 -0
- package/dist/mcp/workflow-examples.js.map +1 -0
- package/dist/mcp-engine.d.ts +36 -0
- package/dist/mcp-engine.d.ts.map +1 -0
- package/dist/mcp-engine.js +77 -0
- package/dist/mcp-engine.js.map +1 -0
- package/dist/mcp-tools-engine.d.ts +47 -0
- package/dist/mcp-tools-engine.d.ts.map +1 -0
- package/dist/mcp-tools-engine.js +89 -0
- package/dist/mcp-tools-engine.js.map +1 -0
- package/dist/n8n/MCPApi.credentials.d.ts +8 -0
- package/dist/n8n/MCPApi.credentials.d.ts.map +1 -0
- package/dist/n8n/MCPApi.credentials.js +53 -0
- package/dist/n8n/MCPApi.credentials.js.map +1 -0
- package/dist/n8n/MCPNode.node.d.ts +13 -0
- package/dist/n8n/MCPNode.node.d.ts.map +1 -0
- package/dist/n8n/MCPNode.node.js +260 -0
- package/dist/n8n/MCPNode.node.js.map +1 -0
- package/dist/parsers/node-parser.d.ts +38 -0
- package/dist/parsers/node-parser.d.ts.map +1 -0
- package/dist/parsers/node-parser.js +250 -0
- package/dist/parsers/node-parser.js.map +1 -0
- package/dist/parsers/property-extractor.d.ts +11 -0
- package/dist/parsers/property-extractor.d.ts.map +1 -0
- package/dist/parsers/property-extractor.js +172 -0
- package/dist/parsers/property-extractor.js.map +1 -0
- package/dist/parsers/simple-parser.d.ts +25 -0
- package/dist/parsers/simple-parser.d.ts.map +1 -0
- package/dist/parsers/simple-parser.js +212 -0
- package/dist/parsers/simple-parser.js.map +1 -0
- package/dist/scripts/debug-http-search.d.ts +3 -0
- package/dist/scripts/debug-http-search.d.ts.map +1 -0
- package/dist/scripts/debug-http-search.js +57 -0
- package/dist/scripts/debug-http-search.js.map +1 -0
- package/dist/scripts/extract-from-docker.d.ts +3 -0
- package/dist/scripts/extract-from-docker.d.ts.map +1 -0
- package/dist/scripts/extract-from-docker.js +210 -0
- package/dist/scripts/extract-from-docker.js.map +1 -0
- package/dist/scripts/fetch-community-nodes.d.ts +3 -0
- package/dist/scripts/fetch-community-nodes.d.ts.map +1 -0
- package/dist/scripts/fetch-community-nodes.js +114 -0
- package/dist/scripts/fetch-community-nodes.js.map +1 -0
- package/dist/scripts/fetch-templates-robust.d.ts +4 -0
- package/dist/scripts/fetch-templates-robust.d.ts.map +1 -0
- package/dist/scripts/fetch-templates-robust.js +132 -0
- package/dist/scripts/fetch-templates-robust.js.map +1 -0
- package/dist/scripts/fetch-templates.d.ts +4 -0
- package/dist/scripts/fetch-templates.d.ts.map +1 -0
- package/dist/scripts/fetch-templates.js +411 -0
- package/dist/scripts/fetch-templates.js.map +1 -0
- package/dist/scripts/generate-community-docs.d.ts +3 -0
- package/dist/scripts/generate-community-docs.d.ts.map +1 -0
- package/dist/scripts/generate-community-docs.js +183 -0
- package/dist/scripts/generate-community-docs.js.map +1 -0
- package/dist/scripts/migrate-readme-columns.d.ts +2 -0
- package/dist/scripts/migrate-readme-columns.d.ts.map +1 -0
- package/dist/scripts/migrate-readme-columns.js +62 -0
- package/dist/scripts/migrate-readme-columns.js.map +1 -0
- package/dist/scripts/rebuild-database.d.ts +4 -0
- package/dist/scripts/rebuild-database.d.ts.map +1 -0
- package/dist/scripts/rebuild-database.js +95 -0
- package/dist/scripts/rebuild-database.js.map +1 -0
- package/dist/scripts/rebuild-optimized.d.ts +3 -0
- package/dist/scripts/rebuild-optimized.d.ts.map +1 -0
- package/dist/scripts/rebuild-optimized.js +198 -0
- package/dist/scripts/rebuild-optimized.js.map +1 -0
- package/dist/scripts/rebuild.d.ts +3 -0
- package/dist/scripts/rebuild.d.ts.map +1 -0
- package/dist/scripts/rebuild.js +258 -0
- package/dist/scripts/rebuild.js.map +1 -0
- package/dist/scripts/sanitize-templates.d.ts +3 -0
- package/dist/scripts/sanitize-templates.d.ts.map +1 -0
- package/dist/scripts/sanitize-templates.js +88 -0
- package/dist/scripts/sanitize-templates.js.map +1 -0
- package/dist/scripts/seed-canonical-ai-examples.d.ts +4 -0
- package/dist/scripts/seed-canonical-ai-examples.d.ts.map +1 -0
- package/dist/scripts/seed-canonical-ai-examples.js +121 -0
- package/dist/scripts/seed-canonical-ai-examples.js.map +1 -0
- package/dist/scripts/test-autofix-documentation.d.ts +3 -0
- package/dist/scripts/test-autofix-documentation.d.ts.map +1 -0
- package/dist/scripts/test-autofix-documentation.js +103 -0
- package/dist/scripts/test-autofix-documentation.js.map +1 -0
- package/dist/scripts/test-autofix-workflow.d.ts +2 -0
- package/dist/scripts/test-autofix-workflow.d.ts.map +1 -0
- package/dist/scripts/test-autofix-workflow.js +223 -0
- package/dist/scripts/test-autofix-workflow.js.map +1 -0
- package/dist/scripts/test-execution-filtering.d.ts +3 -0
- package/dist/scripts/test-execution-filtering.d.ts.map +1 -0
- package/dist/scripts/test-execution-filtering.js +206 -0
- package/dist/scripts/test-execution-filtering.js.map +1 -0
- package/dist/scripts/test-node-suggestions.d.ts +3 -0
- package/dist/scripts/test-node-suggestions.d.ts.map +1 -0
- package/dist/scripts/test-node-suggestions.js +165 -0
- package/dist/scripts/test-node-suggestions.js.map +1 -0
- package/dist/scripts/test-protocol-negotiation.d.ts +3 -0
- package/dist/scripts/test-protocol-negotiation.d.ts.map +1 -0
- package/dist/scripts/test-protocol-negotiation.js +154 -0
- package/dist/scripts/test-protocol-negotiation.js.map +1 -0
- package/dist/scripts/test-summary.d.ts +3 -0
- package/dist/scripts/test-summary.d.ts.map +1 -0
- package/dist/scripts/test-summary.js +77 -0
- package/dist/scripts/test-summary.js.map +1 -0
- package/dist/scripts/test-telemetry-mutations-verbose.d.ts +2 -0
- package/dist/scripts/test-telemetry-mutations-verbose.d.ts.map +1 -0
- package/dist/scripts/test-telemetry-mutations-verbose.js +133 -0
- package/dist/scripts/test-telemetry-mutations-verbose.js.map +1 -0
- package/dist/scripts/test-telemetry-mutations.d.ts +2 -0
- package/dist/scripts/test-telemetry-mutations.d.ts.map +1 -0
- package/dist/scripts/test-telemetry-mutations.js +129 -0
- package/dist/scripts/test-telemetry-mutations.js.map +1 -0
- package/dist/scripts/test-webhook-autofix.d.ts +3 -0
- package/dist/scripts/test-webhook-autofix.d.ts.map +1 -0
- package/dist/scripts/test-webhook-autofix.js +117 -0
- package/dist/scripts/test-webhook-autofix.js.map +1 -0
- package/dist/scripts/validate.d.ts +3 -0
- package/dist/scripts/validate.d.ts.map +1 -0
- package/dist/scripts/validate.js +121 -0
- package/dist/scripts/validate.js.map +1 -0
- package/dist/scripts/validation-summary.d.ts +3 -0
- package/dist/scripts/validation-summary.d.ts.map +1 -0
- package/dist/scripts/validation-summary.js +135 -0
- package/dist/scripts/validation-summary.js.map +1 -0
- package/dist/services/ai-node-validator.d.ts +12 -0
- package/dist/services/ai-node-validator.d.ts.map +1 -0
- package/dist/services/ai-node-validator.js +429 -0
- package/dist/services/ai-node-validator.js.map +1 -0
- package/dist/services/ai-tool-validators.d.ts +58 -0
- package/dist/services/ai-tool-validators.d.ts.map +1 -0
- package/dist/services/ai-tool-validators.js +438 -0
- package/dist/services/ai-tool-validators.js.map +1 -0
- package/dist/services/breaking-change-detector.d.ts +38 -0
- package/dist/services/breaking-change-detector.d.ts.map +1 -0
- package/dist/services/breaking-change-detector.js +184 -0
- package/dist/services/breaking-change-detector.js.map +1 -0
- package/dist/services/breaking-changes-registry.d.ts +28 -0
- package/dist/services/breaking-changes-registry.d.ts.map +1 -0
- package/dist/services/breaking-changes-registry.js +200 -0
- package/dist/services/breaking-changes-registry.js.map +1 -0
- package/dist/services/community-package-service.d.ts +69 -0
- package/dist/services/community-package-service.d.ts.map +1 -0
- package/dist/services/community-package-service.js +202 -0
- package/dist/services/community-package-service.js.map +1 -0
- package/dist/services/confidence-scorer.d.ts +24 -0
- package/dist/services/confidence-scorer.d.ts.map +1 -0
- package/dist/services/confidence-scorer.js +139 -0
- package/dist/services/confidence-scorer.js.map +1 -0
- package/dist/services/config-validator.d.ts +49 -0
- package/dist/services/config-validator.d.ts.map +1 -0
- package/dist/services/config-validator.js +724 -0
- package/dist/services/config-validator.js.map +1 -0
- package/dist/services/enhanced-config-validator.d.ts +54 -0
- package/dist/services/enhanced-config-validator.d.ts.map +1 -0
- package/dist/services/enhanced-config-validator.js +789 -0
- package/dist/services/enhanced-config-validator.js.map +1 -0
- package/dist/services/error-execution-processor.d.ts +9 -0
- package/dist/services/error-execution-processor.d.ts.map +1 -0
- package/dist/services/error-execution-processor.js +380 -0
- package/dist/services/error-execution-processor.js.map +1 -0
- package/dist/services/example-generator.d.ts +14 -0
- package/dist/services/example-generator.d.ts.map +1 -0
- package/dist/services/example-generator.js +970 -0
- package/dist/services/example-generator.js.map +1 -0
- package/dist/services/execution-processor.d.ts +8 -0
- package/dist/services/execution-processor.d.ts.map +1 -0
- package/dist/services/execution-processor.js +381 -0
- package/dist/services/execution-processor.js.map +1 -0
- package/dist/services/expression-format-validator.d.ts +33 -0
- package/dist/services/expression-format-validator.d.ts.map +1 -0
- package/dist/services/expression-format-validator.js +209 -0
- package/dist/services/expression-format-validator.js.map +1 -0
- package/dist/services/expression-validator.d.ts +27 -0
- package/dist/services/expression-validator.d.ts.map +1 -0
- package/dist/services/expression-validator.js +187 -0
- package/dist/services/expression-validator.js.map +1 -0
- package/dist/services/installed-node-sync-service.d.ts +32 -0
- package/dist/services/installed-node-sync-service.d.ts.map +1 -0
- package/dist/services/installed-node-sync-service.js +190 -0
- package/dist/services/installed-node-sync-service.js.map +1 -0
- package/dist/services/n8n-api-client.d.ts +48 -0
- package/dist/services/n8n-api-client.d.ts.map +1 -0
- package/dist/services/n8n-api-client.js +458 -0
- package/dist/services/n8n-api-client.js.map +1 -0
- package/dist/services/n8n-file-format.d.ts +58 -0
- package/dist/services/n8n-file-format.d.ts.map +1 -0
- package/dist/services/n8n-file-format.js +203 -0
- package/dist/services/n8n-file-format.js.map +1 -0
- package/dist/services/n8n-validation.d.ts +273 -0
- package/dist/services/n8n-validation.d.ts.map +1 -0
- package/dist/services/n8n-validation.js +491 -0
- package/dist/services/n8n-validation.js.map +1 -0
- package/dist/services/n8n-version.d.ts +23 -0
- package/dist/services/n8n-version.d.ts.map +1 -0
- package/dist/services/n8n-version.js +151 -0
- package/dist/services/n8n-version.js.map +1 -0
- package/dist/services/node-documentation-service.d.ts +70 -0
- package/dist/services/node-documentation-service.d.ts.map +1 -0
- package/dist/services/node-documentation-service.js +518 -0
- package/dist/services/node-documentation-service.js.map +1 -0
- package/dist/services/node-migration-service.d.ts +44 -0
- package/dist/services/node-migration-service.d.ts.map +1 -0
- package/dist/services/node-migration-service.js +231 -0
- package/dist/services/node-migration-service.js.map +1 -0
- package/dist/services/node-sanitizer.d.ts +5 -0
- package/dist/services/node-sanitizer.d.ts.map +1 -0
- package/dist/services/node-sanitizer.js +225 -0
- package/dist/services/node-sanitizer.js.map +1 -0
- package/dist/services/node-similarity-service.d.ts +51 -0
- package/dist/services/node-similarity-service.d.ts.map +1 -0
- package/dist/services/node-similarity-service.js +352 -0
- package/dist/services/node-similarity-service.js.map +1 -0
- package/dist/services/node-specific-validators.d.ts +37 -0
- package/dist/services/node-specific-validators.d.ts.map +1 -0
- package/dist/services/node-specific-validators.js +1331 -0
- package/dist/services/node-specific-validators.js.map +1 -0
- package/dist/services/node-version-service.d.ts +63 -0
- package/dist/services/node-version-service.d.ts.map +1 -0
- package/dist/services/node-version-service.js +215 -0
- package/dist/services/node-version-service.js.map +1 -0
- package/dist/services/operation-similarity-service.d.ts +32 -0
- package/dist/services/operation-similarity-service.d.ts.map +1 -0
- package/dist/services/operation-similarity-service.js +341 -0
- package/dist/services/operation-similarity-service.js.map +1 -0
- package/dist/services/post-update-validator.d.ts +59 -0
- package/dist/services/post-update-validator.d.ts.map +1 -0
- package/dist/services/post-update-validator.js +231 -0
- package/dist/services/post-update-validator.js.map +1 -0
- package/dist/services/property-dependencies.d.ts +36 -0
- package/dist/services/property-dependencies.d.ts.map +1 -0
- package/dist/services/property-dependencies.js +168 -0
- package/dist/services/property-dependencies.js.map +1 -0
- package/dist/services/property-filter.d.ts +44 -0
- package/dist/services/property-filter.d.ts.map +1 -0
- package/dist/services/property-filter.js +395 -0
- package/dist/services/property-filter.js.map +1 -0
- package/dist/services/resource-similarity-service.d.ts +33 -0
- package/dist/services/resource-similarity-service.d.ts.map +1 -0
- package/dist/services/resource-similarity-service.js +358 -0
- package/dist/services/resource-similarity-service.js.map +1 -0
- package/dist/services/sqlite-storage-service.d.ts +11 -0
- package/dist/services/sqlite-storage-service.d.ts.map +1 -0
- package/dist/services/sqlite-storage-service.js +74 -0
- package/dist/services/sqlite-storage-service.js.map +1 -0
- package/dist/services/task-templates.d.ts +27 -0
- package/dist/services/task-templates.d.ts.map +1 -0
- package/dist/services/task-templates.js +1397 -0
- package/dist/services/task-templates.js.map +1 -0
- package/dist/services/tool-variant-generator.d.ts +10 -0
- package/dist/services/tool-variant-generator.d.ts.map +1 -0
- package/dist/services/tool-variant-generator.js +93 -0
- package/dist/services/tool-variant-generator.js.map +1 -0
- package/dist/services/type-structure-service.d.ts +23 -0
- package/dist/services/type-structure-service.d.ts.map +1 -0
- package/dist/services/type-structure-service.js +109 -0
- package/dist/services/type-structure-service.js.map +1 -0
- package/dist/services/universal-expression-validator.d.ts +20 -0
- package/dist/services/universal-expression-validator.d.ts.map +1 -0
- package/dist/services/universal-expression-validator.js +192 -0
- package/dist/services/universal-expression-validator.js.map +1 -0
- package/dist/services/workflow-analytics-service.d.ts +34 -0
- package/dist/services/workflow-analytics-service.d.ts.map +1 -0
- package/dist/services/workflow-analytics-service.js +144 -0
- package/dist/services/workflow-analytics-service.js.map +1 -0
- package/dist/services/workflow-auto-fixer.d.ts +74 -0
- package/dist/services/workflow-auto-fixer.d.ts.map +1 -0
- package/dist/services/workflow-auto-fixer.js +557 -0
- package/dist/services/workflow-auto-fixer.js.map +1 -0
- package/dist/services/workflow-comparison.d.ts +13 -0
- package/dist/services/workflow-comparison.d.ts.map +1 -0
- package/dist/services/workflow-comparison.js +306 -0
- package/dist/services/workflow-comparison.js.map +1 -0
- package/dist/services/workflow-debugging-service.d.ts +62 -0
- package/dist/services/workflow-debugging-service.d.ts.map +1 -0
- package/dist/services/workflow-debugging-service.js +153 -0
- package/dist/services/workflow-debugging-service.js.map +1 -0
- package/dist/services/workflow-diff-engine.d.ts +45 -0
- package/dist/services/workflow-diff-engine.d.ts.map +1 -0
- package/dist/services/workflow-diff-engine.js +830 -0
- package/dist/services/workflow-diff-engine.js.map +1 -0
- package/dist/services/workflow-validator.d.ts +112 -0
- package/dist/services/workflow-validator.d.ts.map +1 -0
- package/dist/services/workflow-validator.js +1328 -0
- package/dist/services/workflow-validator.js.map +1 -0
- package/dist/services/workflow-versioning-service.d.ts +102 -0
- package/dist/services/workflow-versioning-service.d.ts.map +1 -0
- package/dist/services/workflow-versioning-service.js +264 -0
- package/dist/services/workflow-versioning-service.js.map +1 -0
- package/dist/telemetry/batch-processor.d.ts +34 -0
- package/dist/telemetry/batch-processor.d.ts.map +1 -0
- package/dist/telemetry/batch-processor.js +337 -0
- package/dist/telemetry/batch-processor.js.map +1 -0
- package/dist/telemetry/config-manager.d.ts +32 -0
- package/dist/telemetry/config-manager.d.ts.map +1 -0
- package/dist/telemetry/config-manager.js +289 -0
- package/dist/telemetry/config-manager.js.map +1 -0
- package/dist/telemetry/early-error-logger.d.ts +26 -0
- package/dist/telemetry/early-error-logger.d.ts.map +1 -0
- package/dist/telemetry/early-error-logger.js +187 -0
- package/dist/telemetry/early-error-logger.js.map +1 -0
- package/dist/telemetry/error-sanitization-utils.d.ts +2 -0
- package/dist/telemetry/error-sanitization-utils.d.ts.map +1 -0
- package/dist/telemetry/error-sanitization-utils.js +37 -0
- package/dist/telemetry/error-sanitization-utils.js.map +1 -0
- package/dist/telemetry/error-sanitizer.d.ts +4 -0
- package/dist/telemetry/error-sanitizer.d.ts.map +1 -0
- package/dist/telemetry/error-sanitizer.js +45 -0
- package/dist/telemetry/error-sanitizer.js.map +1 -0
- package/dist/telemetry/event-tracker.d.ts +71 -0
- package/dist/telemetry/event-tracker.d.ts.map +1 -0
- package/dist/telemetry/event-tracker.js +356 -0
- package/dist/telemetry/event-tracker.js.map +1 -0
- package/dist/telemetry/event-validator.d.ts +78 -0
- package/dist/telemetry/event-validator.d.ts.map +1 -0
- package/dist/telemetry/event-validator.js +227 -0
- package/dist/telemetry/event-validator.js.map +1 -0
- package/dist/telemetry/index.d.ts +5 -0
- package/dist/telemetry/index.d.ts.map +1 -0
- package/dist/telemetry/index.js +11 -0
- package/dist/telemetry/index.js.map +1 -0
- package/dist/telemetry/intent-classifier.d.ts +11 -0
- package/dist/telemetry/intent-classifier.d.ts.map +1 -0
- package/dist/telemetry/intent-classifier.js +141 -0
- package/dist/telemetry/intent-classifier.js.map +1 -0
- package/dist/telemetry/intent-sanitizer.d.ts +9 -0
- package/dist/telemetry/intent-sanitizer.d.ts.map +1 -0
- package/dist/telemetry/intent-sanitizer.js +103 -0
- package/dist/telemetry/intent-sanitizer.js.map +1 -0
- package/dist/telemetry/mutation-tracker.d.ts +15 -0
- package/dist/telemetry/mutation-tracker.d.ts.map +1 -0
- package/dist/telemetry/mutation-tracker.js +177 -0
- package/dist/telemetry/mutation-tracker.js.map +1 -0
- package/dist/telemetry/mutation-types.d.ts +106 -0
- package/dist/telemetry/mutation-types.d.ts.map +1 -0
- package/dist/telemetry/mutation-types.js +18 -0
- package/dist/telemetry/mutation-types.js.map +1 -0
- package/dist/telemetry/mutation-validator.d.ts +20 -0
- package/dist/telemetry/mutation-validator.d.ts.map +1 -0
- package/dist/telemetry/mutation-validator.js +144 -0
- package/dist/telemetry/mutation-validator.js.map +1 -0
- package/dist/telemetry/performance-monitor.d.ts +113 -0
- package/dist/telemetry/performance-monitor.d.ts.map +1 -0
- package/dist/telemetry/performance-monitor.js +208 -0
- package/dist/telemetry/performance-monitor.js.map +1 -0
- package/dist/telemetry/rate-limiter.d.ts +30 -0
- package/dist/telemetry/rate-limiter.d.ts.map +1 -0
- package/dist/telemetry/rate-limiter.js +103 -0
- package/dist/telemetry/rate-limiter.js.map +1 -0
- package/dist/telemetry/startup-checkpoints.d.ts +26 -0
- package/dist/telemetry/startup-checkpoints.d.ts.map +1 -0
- package/dist/telemetry/startup-checkpoints.js +65 -0
- package/dist/telemetry/startup-checkpoints.js.map +1 -0
- package/dist/telemetry/telemetry-error.d.ts +44 -0
- package/dist/telemetry/telemetry-error.d.ts.map +1 -0
- package/dist/telemetry/telemetry-error.js +153 -0
- package/dist/telemetry/telemetry-error.js.map +1 -0
- package/dist/telemetry/telemetry-manager.d.ts +130 -0
- package/dist/telemetry/telemetry-manager.d.ts.map +1 -0
- package/dist/telemetry/telemetry-manager.js +257 -0
- package/dist/telemetry/telemetry-manager.js.map +1 -0
- package/dist/telemetry/telemetry-types.d.ts +103 -0
- package/dist/telemetry/telemetry-types.d.ts.map +1 -0
- package/dist/telemetry/telemetry-types.js +29 -0
- package/dist/telemetry/telemetry-types.js.map +1 -0
- package/dist/telemetry/workflow-sanitizer.d.ts +34 -0
- package/dist/telemetry/workflow-sanitizer.d.ts.map +1 -0
- package/dist/telemetry/workflow-sanitizer.js +242 -0
- package/dist/telemetry/workflow-sanitizer.js.map +1 -0
- package/dist/templates/batch-processor.d.ts +35 -0
- package/dist/templates/batch-processor.d.ts.map +1 -0
- package/dist/templates/batch-processor.js +320 -0
- package/dist/templates/batch-processor.js.map +1 -0
- package/dist/templates/metadata-generator.d.ts +52 -0
- package/dist/templates/metadata-generator.d.ts.map +1 -0
- package/dist/templates/metadata-generator.js +252 -0
- package/dist/templates/metadata-generator.js.map +1 -0
- package/dist/templates/template-fetcher.d.ts +45 -0
- package/dist/templates/template-fetcher.d.ts.map +1 -0
- package/dist/templates/template-fetcher.js +122 -0
- package/dist/templates/template-fetcher.js.map +1 -0
- package/dist/templates/template-repository.d.ts +93 -0
- package/dist/templates/template-repository.d.ts.map +1 -0
- package/dist/templates/template-repository.js +644 -0
- package/dist/templates/template-repository.js.map +1 -0
- package/dist/templates/template-service.d.ts +79 -0
- package/dist/templates/template-service.d.ts.map +1 -0
- package/dist/templates/template-service.js +300 -0
- package/dist/templates/template-service.js.map +1 -0
- package/dist/triggers/handlers/base-handler.d.ts +21 -0
- package/dist/triggers/handlers/base-handler.d.ts.map +1 -0
- package/dist/triggers/handlers/base-handler.js +60 -0
- package/dist/triggers/handlers/base-handler.js.map +1 -0
- package/dist/triggers/handlers/chat-handler.d.ts +38 -0
- package/dist/triggers/handlers/chat-handler.d.ts.map +1 -0
- package/dist/triggers/handlers/chat-handler.js +129 -0
- package/dist/triggers/handlers/chat-handler.js.map +1 -0
- package/dist/triggers/handlers/form-handler.d.ts +35 -0
- package/dist/triggers/handlers/form-handler.d.ts.map +1 -0
- package/dist/triggers/handlers/form-handler.js +362 -0
- package/dist/triggers/handlers/form-handler.js.map +1 -0
- package/dist/triggers/handlers/webhook-handler.d.ts +38 -0
- package/dist/triggers/handlers/webhook-handler.d.ts.map +1 -0
- package/dist/triggers/handlers/webhook-handler.js +115 -0
- package/dist/triggers/handlers/webhook-handler.js.map +1 -0
- package/dist/triggers/index.d.ts +5 -0
- package/dist/triggers/index.d.ts.map +1 -0
- package/dist/triggers/index.js +14 -0
- package/dist/triggers/index.js.map +1 -0
- package/dist/triggers/trigger-detector.d.ts +6 -0
- package/dist/triggers/trigger-detector.d.ts.map +1 -0
- package/dist/triggers/trigger-detector.js +201 -0
- package/dist/triggers/trigger-detector.js.map +1 -0
- package/dist/triggers/trigger-registry.d.ts +18 -0
- package/dist/triggers/trigger-registry.d.ts.map +1 -0
- package/dist/triggers/trigger-registry.js +87 -0
- package/dist/triggers/trigger-registry.js.map +1 -0
- package/dist/triggers/types.d.ts +76 -0
- package/dist/triggers/types.d.ts.map +1 -0
- package/dist/triggers/types.js +3 -0
- package/dist/triggers/types.js.map +1 -0
- package/dist/types/index.d.ts +49 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +21 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/instance-context.d.ts +20 -0
- package/dist/types/instance-context.d.ts.map +1 -0
- package/dist/types/instance-context.js +153 -0
- package/dist/types/instance-context.js.map +1 -0
- package/dist/types/n8n-api.d.ts +376 -0
- package/dist/types/n8n-api.d.ts.map +1 -0
- package/dist/types/n8n-api.js +10 -0
- package/dist/types/n8n-api.js.map +1 -0
- package/dist/types/node-types.d.ts +19 -0
- package/dist/types/node-types.d.ts.map +1 -0
- package/dist/types/node-types.js +62 -0
- package/dist/types/node-types.js.map +1 -0
- package/dist/types/session-state.d.ts +15 -0
- package/dist/types/session-state.d.ts.map +1 -0
- package/dist/types/session-state.js +3 -0
- package/dist/types/session-state.js.map +1 -0
- package/dist/types/type-structures.d.ts +42 -0
- package/dist/types/type-structures.d.ts.map +1 -0
- package/dist/types/type-structures.js +32 -0
- package/dist/types/type-structures.js.map +1 -0
- package/dist/types/workflow-comparison.d.ts +51 -0
- package/dist/types/workflow-comparison.d.ts.map +1 -0
- package/dist/types/workflow-comparison.js +3 -0
- package/dist/types/workflow-comparison.js.map +1 -0
- package/dist/types/workflow-diff.d.ts +148 -0
- package/dist/types/workflow-diff.d.ts.map +1 -0
- package/dist/types/workflow-diff.js +15 -0
- package/dist/types/workflow-diff.js.map +1 -0
- package/dist/utils/auth.d.ts +13 -0
- package/dist/utils/auth.d.ts.map +1 -0
- package/dist/utils/auth.js +82 -0
- package/dist/utils/auth.js.map +1 -0
- package/dist/utils/bridge.d.ts +12 -0
- package/dist/utils/bridge.d.ts.map +1 -0
- package/dist/utils/bridge.js +127 -0
- package/dist/utils/bridge.js.map +1 -0
- package/dist/utils/cache-utils.d.ts +58 -0
- package/dist/utils/cache-utils.d.ts.map +1 -0
- package/dist/utils/cache-utils.js +243 -0
- package/dist/utils/cache-utils.js.map +1 -0
- package/dist/utils/console-manager.d.ts +10 -0
- package/dist/utils/console-manager.d.ts.map +1 -0
- package/dist/utils/console-manager.js +63 -0
- package/dist/utils/console-manager.js.map +1 -0
- package/dist/utils/documentation-fetcher.d.ts +2 -0
- package/dist/utils/documentation-fetcher.d.ts.map +1 -0
- package/dist/utils/documentation-fetcher.js +18 -0
- package/dist/utils/documentation-fetcher.js.map +1 -0
- package/dist/utils/enhanced-documentation-fetcher.d.ts +74 -0
- package/dist/utils/enhanced-documentation-fetcher.d.ts.map +1 -0
- package/dist/utils/enhanced-documentation-fetcher.js +521 -0
- package/dist/utils/enhanced-documentation-fetcher.js.map +1 -0
- package/dist/utils/error-handler.d.ts +24 -0
- package/dist/utils/error-handler.d.ts.map +1 -0
- package/dist/utils/error-handler.js +84 -0
- package/dist/utils/error-handler.js.map +1 -0
- package/dist/utils/example-generator.d.ts +8 -0
- package/dist/utils/example-generator.d.ts.map +1 -0
- package/dist/utils/example-generator.js +106 -0
- package/dist/utils/example-generator.js.map +1 -0
- package/dist/utils/expression-utils.d.ts +6 -0
- package/dist/utils/expression-utils.d.ts.map +1 -0
- package/dist/utils/expression-utils.js +47 -0
- package/dist/utils/expression-utils.js.map +1 -0
- package/dist/utils/fixed-collection-validator.d.ts +35 -0
- package/dist/utils/fixed-collection-validator.d.ts.map +1 -0
- package/dist/utils/fixed-collection-validator.js +358 -0
- package/dist/utils/fixed-collection-validator.js.map +1 -0
- package/dist/utils/logger.d.ts +33 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/logger.js +101 -0
- package/dist/utils/logger.js.map +1 -0
- package/dist/utils/mcp-client.d.ts +21 -0
- package/dist/utils/mcp-client.d.ts.map +1 -0
- package/dist/utils/mcp-client.js +96 -0
- package/dist/utils/mcp-client.js.map +1 -0
- package/dist/utils/n8n-errors.d.ts +27 -0
- package/dist/utils/n8n-errors.d.ts.map +1 -0
- package/dist/utils/n8n-errors.js +138 -0
- package/dist/utils/n8n-errors.js.map +1 -0
- package/dist/utils/node-classification.d.ts +5 -0
- package/dist/utils/node-classification.d.ts.map +1 -0
- package/dist/utils/node-classification.js +31 -0
- package/dist/utils/node-classification.js.map +1 -0
- package/dist/utils/node-source-extractor.d.ts +21 -0
- package/dist/utils/node-source-extractor.d.ts.map +1 -0
- package/dist/utils/node-source-extractor.js +377 -0
- package/dist/utils/node-source-extractor.js.map +1 -0
- package/dist/utils/node-type-normalizer.d.ts +17 -0
- package/dist/utils/node-type-normalizer.d.ts.map +1 -0
- package/dist/utils/node-type-normalizer.js +87 -0
- package/dist/utils/node-type-normalizer.js.map +1 -0
- package/dist/utils/node-type-utils.d.ts +12 -0
- package/dist/utils/node-type-utils.d.ts.map +1 -0
- package/dist/utils/node-type-utils.js +126 -0
- package/dist/utils/node-type-utils.js.map +1 -0
- package/dist/utils/node-utils.d.ts +4 -0
- package/dist/utils/node-utils.d.ts.map +1 -0
- package/dist/utils/node-utils.js +81 -0
- package/dist/utils/node-utils.js.map +1 -0
- package/dist/utils/npm-version-checker.d.ts +14 -0
- package/dist/utils/npm-version-checker.d.ts.map +1 -0
- package/dist/utils/npm-version-checker.js +125 -0
- package/dist/utils/npm-version-checker.js.map +1 -0
- package/dist/utils/protocol-version.d.ts +19 -0
- package/dist/utils/protocol-version.d.ts.map +1 -0
- package/dist/utils/protocol-version.js +95 -0
- package/dist/utils/protocol-version.js.map +1 -0
- package/dist/utils/simple-cache.d.ts +10 -0
- package/dist/utils/simple-cache.d.ts.map +1 -0
- package/dist/utils/simple-cache.js +42 -0
- package/dist/utils/simple-cache.js.map +1 -0
- package/dist/utils/ssrf-protection.d.ts +7 -0
- package/dist/utils/ssrf-protection.d.ts.map +1 -0
- package/dist/utils/ssrf-protection.js +118 -0
- package/dist/utils/ssrf-protection.js.map +1 -0
- package/dist/utils/template-node-resolver.d.ts +2 -0
- package/dist/utils/template-node-resolver.d.ts.map +1 -0
- package/dist/utils/template-node-resolver.js +161 -0
- package/dist/utils/template-node-resolver.js.map +1 -0
- package/dist/utils/template-sanitizer.d.ts +21 -0
- package/dist/utils/template-sanitizer.d.ts.map +1 -0
- package/dist/utils/template-sanitizer.js +126 -0
- package/dist/utils/template-sanitizer.js.map +1 -0
- package/dist/utils/url-detector.d.ts +9 -0
- package/dist/utils/url-detector.d.ts.map +1 -0
- package/dist/utils/url-detector.js +79 -0
- package/dist/utils/url-detector.js.map +1 -0
- package/dist/utils/validation-schemas.d.ts +32 -0
- package/dist/utils/validation-schemas.d.ts.map +1 -0
- package/dist/utils/validation-schemas.js +219 -0
- package/dist/utils/validation-schemas.js.map +1 -0
- package/dist/utils/version.d.ts +2 -0
- package/dist/utils/version.d.ts.map +1 -0
- package/dist/utils/version.js +18 -0
- package/dist/utils/version.js.map +1 -0
- package/package.json +178 -0
- package/package.runtime.json +24 -0
|
@@ -0,0 +1,789 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EnhancedConfigValidator = void 0;
|
|
4
|
+
const config_validator_1 = require("./config-validator");
|
|
5
|
+
const node_specific_validators_1 = require("./node-specific-validators");
|
|
6
|
+
const fixed_collection_validator_1 = require("../utils/fixed-collection-validator");
|
|
7
|
+
const operation_similarity_service_1 = require("./operation-similarity-service");
|
|
8
|
+
const resource_similarity_service_1 = require("./resource-similarity-service");
|
|
9
|
+
const node_type_normalizer_1 = require("../utils/node-type-normalizer");
|
|
10
|
+
const type_structure_service_1 = require("./type-structure-service");
|
|
11
|
+
class EnhancedConfigValidator extends config_validator_1.ConfigValidator {
|
|
12
|
+
static initializeSimilarityServices(repository) {
|
|
13
|
+
this.nodeRepository = repository;
|
|
14
|
+
this.operationSimilarityService = new operation_similarity_service_1.OperationSimilarityService(repository);
|
|
15
|
+
this.resourceSimilarityService = new resource_similarity_service_1.ResourceSimilarityService(repository);
|
|
16
|
+
}
|
|
17
|
+
static validateWithMode(nodeType, config, properties, mode = 'operation', profile = 'ai-friendly') {
|
|
18
|
+
if (typeof nodeType !== 'string') {
|
|
19
|
+
throw new Error(`Invalid nodeType: expected string, got ${typeof nodeType}`);
|
|
20
|
+
}
|
|
21
|
+
if (!config || typeof config !== 'object') {
|
|
22
|
+
throw new Error(`Invalid config: expected object, got ${typeof config}`);
|
|
23
|
+
}
|
|
24
|
+
if (!Array.isArray(properties)) {
|
|
25
|
+
throw new Error(`Invalid properties: expected array, got ${typeof properties}`);
|
|
26
|
+
}
|
|
27
|
+
const operationContext = this.extractOperationContext(config);
|
|
28
|
+
const userProvidedKeys = new Set(Object.keys(config));
|
|
29
|
+
const { properties: filteredProperties, configWithDefaults } = this.filterPropertiesByMode(properties, config, mode, operationContext);
|
|
30
|
+
const baseResult = super.validate(nodeType, configWithDefaults, filteredProperties, userProvidedKeys);
|
|
31
|
+
const enhancedResult = {
|
|
32
|
+
...baseResult,
|
|
33
|
+
mode,
|
|
34
|
+
profile,
|
|
35
|
+
operation: operationContext,
|
|
36
|
+
examples: [],
|
|
37
|
+
nextSteps: [],
|
|
38
|
+
errors: baseResult.errors || [],
|
|
39
|
+
warnings: baseResult.warnings || [],
|
|
40
|
+
suggestions: baseResult.suggestions || []
|
|
41
|
+
};
|
|
42
|
+
this.applyProfileFilters(enhancedResult, profile);
|
|
43
|
+
this.addOperationSpecificEnhancements(nodeType, config, filteredProperties, enhancedResult);
|
|
44
|
+
enhancedResult.errors = this.deduplicateErrors(enhancedResult.errors);
|
|
45
|
+
enhancedResult.nextSteps = this.generateNextSteps(enhancedResult);
|
|
46
|
+
enhancedResult.valid = enhancedResult.errors.length === 0;
|
|
47
|
+
return enhancedResult;
|
|
48
|
+
}
|
|
49
|
+
static extractOperationContext(config) {
|
|
50
|
+
return {
|
|
51
|
+
resource: config.resource,
|
|
52
|
+
operation: config.operation,
|
|
53
|
+
action: config.action,
|
|
54
|
+
mode: config.mode
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
static filterPropertiesByMode(properties, config, mode, operation) {
|
|
58
|
+
const configWithDefaults = this.applyNodeDefaults(properties, config);
|
|
59
|
+
let filteredProperties;
|
|
60
|
+
switch (mode) {
|
|
61
|
+
case 'minimal':
|
|
62
|
+
filteredProperties = properties.filter(prop => prop.required && this.isPropertyVisible(prop, configWithDefaults));
|
|
63
|
+
break;
|
|
64
|
+
case 'operation':
|
|
65
|
+
filteredProperties = properties.filter(prop => this.isPropertyRelevantToOperation(prop, configWithDefaults, operation));
|
|
66
|
+
break;
|
|
67
|
+
case 'full':
|
|
68
|
+
default:
|
|
69
|
+
filteredProperties = properties;
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
return { properties: filteredProperties, configWithDefaults };
|
|
73
|
+
}
|
|
74
|
+
static applyNodeDefaults(properties, config) {
|
|
75
|
+
const result = { ...config };
|
|
76
|
+
for (const prop of properties) {
|
|
77
|
+
if (prop.name && prop.default !== undefined && result[prop.name] === undefined) {
|
|
78
|
+
result[prop.name] = prop.default;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
return result;
|
|
82
|
+
}
|
|
83
|
+
static isPropertyRelevantToOperation(prop, config, operation) {
|
|
84
|
+
if (!this.isPropertyVisible(prop, config)) {
|
|
85
|
+
return false;
|
|
86
|
+
}
|
|
87
|
+
if (!operation.resource && !operation.operation && !operation.action) {
|
|
88
|
+
return true;
|
|
89
|
+
}
|
|
90
|
+
if (prop.displayOptions?.show) {
|
|
91
|
+
const show = prop.displayOptions.show;
|
|
92
|
+
if (operation.resource && show.resource) {
|
|
93
|
+
const expectedResources = Array.isArray(show.resource) ? show.resource : [show.resource];
|
|
94
|
+
if (!expectedResources.includes(operation.resource)) {
|
|
95
|
+
return false;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
if (operation.operation && show.operation) {
|
|
99
|
+
const expectedOps = Array.isArray(show.operation) ? show.operation : [show.operation];
|
|
100
|
+
if (!expectedOps.includes(operation.operation)) {
|
|
101
|
+
return false;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
if (operation.action && show.action) {
|
|
105
|
+
const expectedActions = Array.isArray(show.action) ? show.action : [show.action];
|
|
106
|
+
if (!expectedActions.includes(operation.action)) {
|
|
107
|
+
return false;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
return true;
|
|
112
|
+
}
|
|
113
|
+
static addOperationSpecificEnhancements(nodeType, config, properties, result) {
|
|
114
|
+
if (typeof nodeType !== 'string') {
|
|
115
|
+
result.errors.push({
|
|
116
|
+
type: 'invalid_type',
|
|
117
|
+
property: 'nodeType',
|
|
118
|
+
message: `Invalid nodeType: expected string, got ${typeof nodeType}`,
|
|
119
|
+
fix: 'Provide a valid node type string (e.g., "nodes-base.webhook")'
|
|
120
|
+
});
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
123
|
+
this.validateResourceAndOperation(nodeType, config, result);
|
|
124
|
+
this.validateSpecialTypeStructures(config, properties, result);
|
|
125
|
+
this.validateFixedCollectionStructures(nodeType, config, result);
|
|
126
|
+
const context = {
|
|
127
|
+
config,
|
|
128
|
+
errors: result.errors,
|
|
129
|
+
warnings: result.warnings,
|
|
130
|
+
suggestions: result.suggestions,
|
|
131
|
+
autofix: result.autofix || {}
|
|
132
|
+
};
|
|
133
|
+
const normalizedNodeType = nodeType.replace('n8n-nodes-base.', 'nodes-base.');
|
|
134
|
+
switch (normalizedNodeType) {
|
|
135
|
+
case 'nodes-base.slack':
|
|
136
|
+
node_specific_validators_1.NodeSpecificValidators.validateSlack(context);
|
|
137
|
+
this.enhanceSlackValidation(config, result);
|
|
138
|
+
break;
|
|
139
|
+
case 'nodes-base.googleSheets':
|
|
140
|
+
node_specific_validators_1.NodeSpecificValidators.validateGoogleSheets(context);
|
|
141
|
+
this.enhanceGoogleSheetsValidation(config, result);
|
|
142
|
+
break;
|
|
143
|
+
case 'nodes-base.httpRequest':
|
|
144
|
+
this.enhanceHttpRequestValidation(config, result);
|
|
145
|
+
break;
|
|
146
|
+
case 'nodes-base.code':
|
|
147
|
+
node_specific_validators_1.NodeSpecificValidators.validateCode(context);
|
|
148
|
+
break;
|
|
149
|
+
case 'nodes-base.openAi':
|
|
150
|
+
node_specific_validators_1.NodeSpecificValidators.validateOpenAI(context);
|
|
151
|
+
break;
|
|
152
|
+
case 'nodes-base.mongoDb':
|
|
153
|
+
node_specific_validators_1.NodeSpecificValidators.validateMongoDB(context);
|
|
154
|
+
break;
|
|
155
|
+
case 'nodes-base.webhook':
|
|
156
|
+
node_specific_validators_1.NodeSpecificValidators.validateWebhook(context);
|
|
157
|
+
break;
|
|
158
|
+
case 'nodes-base.postgres':
|
|
159
|
+
node_specific_validators_1.NodeSpecificValidators.validatePostgres(context);
|
|
160
|
+
break;
|
|
161
|
+
case 'nodes-base.mysql':
|
|
162
|
+
node_specific_validators_1.NodeSpecificValidators.validateMySQL(context);
|
|
163
|
+
break;
|
|
164
|
+
case 'nodes-langchain.agent':
|
|
165
|
+
node_specific_validators_1.NodeSpecificValidators.validateAIAgent(context);
|
|
166
|
+
break;
|
|
167
|
+
case 'nodes-base.set':
|
|
168
|
+
node_specific_validators_1.NodeSpecificValidators.validateSet(context);
|
|
169
|
+
break;
|
|
170
|
+
case 'nodes-base.switch':
|
|
171
|
+
this.validateSwitchNodeStructure(config, result);
|
|
172
|
+
break;
|
|
173
|
+
case 'nodes-base.if':
|
|
174
|
+
this.validateIfNodeStructure(config, result);
|
|
175
|
+
break;
|
|
176
|
+
case 'nodes-base.filter':
|
|
177
|
+
this.validateFilterNodeStructure(config, result);
|
|
178
|
+
break;
|
|
179
|
+
}
|
|
180
|
+
if (Object.keys(context.autofix).length > 0) {
|
|
181
|
+
result.autofix = context.autofix;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
static enhanceSlackValidation(config, result) {
|
|
185
|
+
const { resource, operation } = result.operation || {};
|
|
186
|
+
if (resource === 'message' && operation === 'send') {
|
|
187
|
+
if (!config.channel && !config.channelId) {
|
|
188
|
+
const channelError = result.errors.find(e => e.property === 'channel' || e.property === 'channelId');
|
|
189
|
+
if (channelError) {
|
|
190
|
+
channelError.message = 'To send a Slack message, specify either a channel name (e.g., "#general") or channel ID';
|
|
191
|
+
channelError.fix = 'Add channel: "#general" or use a channel ID like "C1234567890"';
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
static enhanceGoogleSheetsValidation(config, result) {
|
|
197
|
+
const { operation } = result.operation || {};
|
|
198
|
+
if (operation === 'append') {
|
|
199
|
+
if (config.range && !config.range.includes('!')) {
|
|
200
|
+
result.warnings.push({
|
|
201
|
+
type: 'inefficient',
|
|
202
|
+
property: 'range',
|
|
203
|
+
message: 'Range should include sheet name (e.g., "Sheet1!A:B")',
|
|
204
|
+
suggestion: 'Format: "SheetName!A1:B10" or "SheetName!A:B" for entire columns'
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
static enhanceHttpRequestValidation(config, result) {
|
|
210
|
+
const url = String(config.url || '');
|
|
211
|
+
const options = config.options || {};
|
|
212
|
+
if (!result.suggestions.some(s => typeof s === 'string' && s.includes('alwaysOutputData'))) {
|
|
213
|
+
result.suggestions.push('Consider adding alwaysOutputData: true at node level (not in parameters) for better error handling. ' +
|
|
214
|
+
'This ensures the node produces output even when HTTP requests fail, allowing downstream error handling.');
|
|
215
|
+
}
|
|
216
|
+
const lowerUrl = url.toLowerCase();
|
|
217
|
+
const isApiEndpoint = /^https?:\/\/api\./i.test(url) ||
|
|
218
|
+
/\/api[\/\?]|\/api$/i.test(url) ||
|
|
219
|
+
/\/rest[\/\?]|\/rest$/i.test(url) ||
|
|
220
|
+
lowerUrl.includes('supabase.co') ||
|
|
221
|
+
lowerUrl.includes('firebase') ||
|
|
222
|
+
lowerUrl.includes('googleapis.com') ||
|
|
223
|
+
/\.com\/v\d+/i.test(url);
|
|
224
|
+
if (isApiEndpoint && !options.response?.response?.responseFormat) {
|
|
225
|
+
result.suggestions.push('API endpoints should explicitly set options.response.response.responseFormat to "json" or "text" ' +
|
|
226
|
+
'to prevent confusion about response parsing. Example: ' +
|
|
227
|
+
'{ "options": { "response": { "response": { "responseFormat": "json" } } } }');
|
|
228
|
+
}
|
|
229
|
+
if (url && url.startsWith('=')) {
|
|
230
|
+
const expressionContent = url.slice(1);
|
|
231
|
+
const lowerExpression = expressionContent.toLowerCase();
|
|
232
|
+
if (expressionContent.startsWith('www.') ||
|
|
233
|
+
(expressionContent.includes('{{') && !lowerExpression.includes('http'))) {
|
|
234
|
+
result.warnings.push({
|
|
235
|
+
type: 'invalid_value',
|
|
236
|
+
property: 'url',
|
|
237
|
+
message: 'URL expression appears to be missing http:// or https:// protocol',
|
|
238
|
+
suggestion: 'Include protocol in your expression. Example: ={{ "https://" + $json.domain + ".com" }}'
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
static generateNextSteps(result) {
|
|
244
|
+
const steps = [];
|
|
245
|
+
const requiredErrors = result.errors.filter(e => e.type === 'missing_required');
|
|
246
|
+
const typeErrors = result.errors.filter(e => e.type === 'invalid_type');
|
|
247
|
+
const valueErrors = result.errors.filter(e => e.type === 'invalid_value');
|
|
248
|
+
if (requiredErrors.length > 0) {
|
|
249
|
+
steps.push(`Add required fields: ${requiredErrors.map(e => e.property).join(', ')}`);
|
|
250
|
+
}
|
|
251
|
+
if (typeErrors.length > 0) {
|
|
252
|
+
steps.push(`Fix type mismatches: ${typeErrors.map(e => `${e.property} should be ${e.fix}`).join(', ')}`);
|
|
253
|
+
}
|
|
254
|
+
if (valueErrors.length > 0) {
|
|
255
|
+
steps.push(`Correct invalid values: ${valueErrors.map(e => e.property).join(', ')}`);
|
|
256
|
+
}
|
|
257
|
+
if (result.warnings.length > 0 && result.errors.length === 0) {
|
|
258
|
+
steps.push('Consider addressing warnings for better reliability');
|
|
259
|
+
}
|
|
260
|
+
if (result.errors.length > 0) {
|
|
261
|
+
steps.push('Fix the errors above following the provided suggestions');
|
|
262
|
+
}
|
|
263
|
+
return steps;
|
|
264
|
+
}
|
|
265
|
+
static deduplicateErrors(errors) {
|
|
266
|
+
const seen = new Map();
|
|
267
|
+
for (const error of errors) {
|
|
268
|
+
const key = `${error.property}-${error.type}`;
|
|
269
|
+
const existing = seen.get(key);
|
|
270
|
+
if (!existing) {
|
|
271
|
+
seen.set(key, error);
|
|
272
|
+
}
|
|
273
|
+
else {
|
|
274
|
+
const existingLength = (existing.message?.length || 0) + (existing.fix?.length || 0);
|
|
275
|
+
const newLength = (error.message?.length || 0) + (error.fix?.length || 0);
|
|
276
|
+
if (newLength > existingLength) {
|
|
277
|
+
seen.set(key, error);
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
return Array.from(seen.values());
|
|
282
|
+
}
|
|
283
|
+
static shouldFilterCredentialWarning(warning) {
|
|
284
|
+
return warning.type === 'security' &&
|
|
285
|
+
warning.message !== undefined &&
|
|
286
|
+
warning.message.includes('Hardcoded nodeCredentialType');
|
|
287
|
+
}
|
|
288
|
+
static applyProfileFilters(result, profile) {
|
|
289
|
+
switch (profile) {
|
|
290
|
+
case 'minimal':
|
|
291
|
+
result.errors = result.errors.filter(e => e.type === 'missing_required');
|
|
292
|
+
result.warnings = result.warnings.filter(w => {
|
|
293
|
+
if (this.shouldFilterCredentialWarning(w)) {
|
|
294
|
+
return false;
|
|
295
|
+
}
|
|
296
|
+
return w.type === 'security' || w.type === 'deprecated';
|
|
297
|
+
});
|
|
298
|
+
result.suggestions = [];
|
|
299
|
+
break;
|
|
300
|
+
case 'runtime':
|
|
301
|
+
result.errors = result.errors.filter(e => e.type === 'missing_required' ||
|
|
302
|
+
e.type === 'invalid_value' ||
|
|
303
|
+
(e.type === 'invalid_type' && e.message.includes('undefined')));
|
|
304
|
+
result.warnings = result.warnings.filter(w => {
|
|
305
|
+
if (this.shouldFilterCredentialWarning(w)) {
|
|
306
|
+
return false;
|
|
307
|
+
}
|
|
308
|
+
if (w.type === 'security' || w.type === 'deprecated')
|
|
309
|
+
return true;
|
|
310
|
+
if (w.type === 'inefficient' && w.message && w.message.includes('not visible')) {
|
|
311
|
+
return false;
|
|
312
|
+
}
|
|
313
|
+
return false;
|
|
314
|
+
});
|
|
315
|
+
result.suggestions = [];
|
|
316
|
+
break;
|
|
317
|
+
case 'strict':
|
|
318
|
+
if (result.warnings.length === 0 && result.errors.length === 0) {
|
|
319
|
+
result.suggestions.push('Consider adding error handling with onError property and timeout configuration');
|
|
320
|
+
result.suggestions.push('Add authentication if connecting to external services');
|
|
321
|
+
}
|
|
322
|
+
this.enforceErrorHandlingForProfile(result, profile);
|
|
323
|
+
break;
|
|
324
|
+
case 'ai-friendly':
|
|
325
|
+
default:
|
|
326
|
+
result.warnings = result.warnings.filter(w => {
|
|
327
|
+
if (this.shouldFilterCredentialWarning(w)) {
|
|
328
|
+
return false;
|
|
329
|
+
}
|
|
330
|
+
if (w.type === 'security' || w.type === 'deprecated')
|
|
331
|
+
return true;
|
|
332
|
+
if (w.type === 'missing_common')
|
|
333
|
+
return true;
|
|
334
|
+
if (w.type === 'best_practice')
|
|
335
|
+
return true;
|
|
336
|
+
if (w.type === 'inefficient' && w.message && w.message.includes('not visible')) {
|
|
337
|
+
return false;
|
|
338
|
+
}
|
|
339
|
+
if (w.type === 'inefficient' && w.property?.startsWith('_')) {
|
|
340
|
+
return false;
|
|
341
|
+
}
|
|
342
|
+
return true;
|
|
343
|
+
});
|
|
344
|
+
this.addErrorHandlingSuggestions(result);
|
|
345
|
+
break;
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
static enforceErrorHandlingForProfile(result, profile) {
|
|
349
|
+
if (profile !== 'strict')
|
|
350
|
+
return;
|
|
351
|
+
const nodeType = result.operation?.resource || '';
|
|
352
|
+
const errorProneTypes = ['httpRequest', 'webhook', 'database', 'api', 'slack', 'email', 'openai'];
|
|
353
|
+
if (errorProneTypes.some(type => nodeType.toLowerCase().includes(type))) {
|
|
354
|
+
result.warnings.push({
|
|
355
|
+
type: 'best_practice',
|
|
356
|
+
property: 'errorHandling',
|
|
357
|
+
message: 'External service nodes should have error handling configured',
|
|
358
|
+
suggestion: 'Add onError: "continueRegularOutput" or "stopWorkflow" with retryOnFail: true for resilience'
|
|
359
|
+
});
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
static addErrorHandlingSuggestions(result) {
|
|
363
|
+
const hasNetworkErrors = result.errors.some(e => e.message.toLowerCase().includes('url') ||
|
|
364
|
+
e.message.toLowerCase().includes('endpoint') ||
|
|
365
|
+
e.message.toLowerCase().includes('api'));
|
|
366
|
+
if (hasNetworkErrors) {
|
|
367
|
+
result.suggestions.push('For API calls, consider adding onError: "continueRegularOutput" with retryOnFail: true and maxTries: 3');
|
|
368
|
+
}
|
|
369
|
+
const isWebhook = result.operation?.resource === 'webhook' ||
|
|
370
|
+
result.errors.some(e => e.message.toLowerCase().includes('webhook'));
|
|
371
|
+
if (isWebhook) {
|
|
372
|
+
result.suggestions.push('Webhooks should use onError: "continueRegularOutput" to ensure responses are always sent');
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
static validateFixedCollectionStructures(nodeType, config, result) {
|
|
376
|
+
const validationResult = fixed_collection_validator_1.FixedCollectionValidator.validate(nodeType, config);
|
|
377
|
+
if (!validationResult.isValid) {
|
|
378
|
+
for (const error of validationResult.errors) {
|
|
379
|
+
result.errors.push({
|
|
380
|
+
type: 'invalid_value',
|
|
381
|
+
property: error.pattern.split('.')[0],
|
|
382
|
+
message: error.message,
|
|
383
|
+
fix: error.fix
|
|
384
|
+
});
|
|
385
|
+
}
|
|
386
|
+
if (validationResult.autofix) {
|
|
387
|
+
if (typeof validationResult.autofix === 'object' && !Array.isArray(validationResult.autofix)) {
|
|
388
|
+
result.autofix = {
|
|
389
|
+
...result.autofix,
|
|
390
|
+
...validationResult.autofix
|
|
391
|
+
};
|
|
392
|
+
}
|
|
393
|
+
else {
|
|
394
|
+
const firstError = validationResult.errors[0];
|
|
395
|
+
if (firstError) {
|
|
396
|
+
const rootProperty = firstError.pattern.split('.')[0];
|
|
397
|
+
result.autofix = {
|
|
398
|
+
...result.autofix,
|
|
399
|
+
[rootProperty]: validationResult.autofix
|
|
400
|
+
};
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
static validateSwitchNodeStructure(config, result) {
|
|
407
|
+
if (!config.rules)
|
|
408
|
+
return;
|
|
409
|
+
const hasFixedCollectionError = result.errors.some(e => e.property === 'rules' && e.message.includes('propertyValues[itemName] is not iterable'));
|
|
410
|
+
if (hasFixedCollectionError)
|
|
411
|
+
return;
|
|
412
|
+
if (config.rules.values && Array.isArray(config.rules.values)) {
|
|
413
|
+
config.rules.values.forEach((rule, index) => {
|
|
414
|
+
if (!rule.conditions) {
|
|
415
|
+
result.warnings.push({
|
|
416
|
+
type: 'missing_common',
|
|
417
|
+
property: 'rules',
|
|
418
|
+
message: `Switch rule ${index + 1} is missing "conditions" property`,
|
|
419
|
+
suggestion: 'Each rule in the values array should have a "conditions" property'
|
|
420
|
+
});
|
|
421
|
+
}
|
|
422
|
+
if (!rule.outputKey && rule.renameOutput !== false) {
|
|
423
|
+
result.warnings.push({
|
|
424
|
+
type: 'missing_common',
|
|
425
|
+
property: 'rules',
|
|
426
|
+
message: `Switch rule ${index + 1} is missing "outputKey" property`,
|
|
427
|
+
suggestion: 'Add "outputKey" to specify which output to use when this rule matches'
|
|
428
|
+
});
|
|
429
|
+
}
|
|
430
|
+
});
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
static validateIfNodeStructure(config, result) {
|
|
434
|
+
if (!config.conditions)
|
|
435
|
+
return;
|
|
436
|
+
const hasFixedCollectionError = result.errors.some(e => e.property === 'conditions' && e.message.includes('propertyValues[itemName] is not iterable'));
|
|
437
|
+
if (hasFixedCollectionError)
|
|
438
|
+
return;
|
|
439
|
+
}
|
|
440
|
+
static validateFilterNodeStructure(config, result) {
|
|
441
|
+
if (!config.conditions)
|
|
442
|
+
return;
|
|
443
|
+
const hasFixedCollectionError = result.errors.some(e => e.property === 'conditions' && e.message.includes('propertyValues[itemName] is not iterable'));
|
|
444
|
+
if (hasFixedCollectionError)
|
|
445
|
+
return;
|
|
446
|
+
}
|
|
447
|
+
static validateResourceAndOperation(nodeType, config, result) {
|
|
448
|
+
if (!this.operationSimilarityService || !this.resourceSimilarityService || !this.nodeRepository) {
|
|
449
|
+
return;
|
|
450
|
+
}
|
|
451
|
+
const normalizedNodeType = node_type_normalizer_1.NodeTypeNormalizer.normalizeToFullForm(nodeType);
|
|
452
|
+
const configWithDefaults = { ...config };
|
|
453
|
+
if (configWithDefaults.operation === undefined && configWithDefaults.resource !== undefined) {
|
|
454
|
+
const defaultOperation = this.nodeRepository.getDefaultOperationForResource(normalizedNodeType, configWithDefaults.resource);
|
|
455
|
+
if (defaultOperation !== undefined) {
|
|
456
|
+
configWithDefaults.operation = defaultOperation;
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
if (config.resource !== undefined) {
|
|
460
|
+
result.errors = result.errors.filter(e => e.property !== 'resource');
|
|
461
|
+
const validResources = this.nodeRepository.getNodeResources(normalizedNodeType);
|
|
462
|
+
const resourceIsValid = validResources.some(r => {
|
|
463
|
+
const resourceValue = typeof r === 'string' ? r : r.value;
|
|
464
|
+
return resourceValue === config.resource;
|
|
465
|
+
});
|
|
466
|
+
if (!resourceIsValid && config.resource !== '') {
|
|
467
|
+
let suggestions = [];
|
|
468
|
+
try {
|
|
469
|
+
suggestions = this.resourceSimilarityService.findSimilarResources(normalizedNodeType, config.resource, 3);
|
|
470
|
+
}
|
|
471
|
+
catch (error) {
|
|
472
|
+
console.error('Resource similarity service error:', error);
|
|
473
|
+
}
|
|
474
|
+
let errorMessage = `Invalid resource "${config.resource}" for node ${nodeType}.`;
|
|
475
|
+
let fix = '';
|
|
476
|
+
if (suggestions.length > 0) {
|
|
477
|
+
const topSuggestion = suggestions[0];
|
|
478
|
+
errorMessage += ` Did you mean "${topSuggestion.value}"?`;
|
|
479
|
+
if (topSuggestion.confidence >= 0.8) {
|
|
480
|
+
fix = `Change resource to "${topSuggestion.value}". ${topSuggestion.reason}`;
|
|
481
|
+
}
|
|
482
|
+
else {
|
|
483
|
+
fix = `Valid resources: ${validResources.slice(0, 5).map(r => {
|
|
484
|
+
const val = typeof r === 'string' ? r : r.value;
|
|
485
|
+
return `"${val}"`;
|
|
486
|
+
}).join(', ')}${validResources.length > 5 ? '...' : ''}`;
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
else {
|
|
490
|
+
fix = `Valid resources: ${validResources.slice(0, 5).map(r => {
|
|
491
|
+
const val = typeof r === 'string' ? r : r.value;
|
|
492
|
+
return `"${val}"`;
|
|
493
|
+
}).join(', ')}${validResources.length > 5 ? '...' : ''}`;
|
|
494
|
+
}
|
|
495
|
+
const error = {
|
|
496
|
+
type: 'invalid_value',
|
|
497
|
+
property: 'resource',
|
|
498
|
+
message: errorMessage,
|
|
499
|
+
fix
|
|
500
|
+
};
|
|
501
|
+
if (suggestions.length > 0 && suggestions[0].confidence >= 0.5) {
|
|
502
|
+
error.suggestion = `Did you mean "${suggestions[0].value}"? ${suggestions[0].reason}`;
|
|
503
|
+
}
|
|
504
|
+
result.errors.push(error);
|
|
505
|
+
if (suggestions.length > 0) {
|
|
506
|
+
for (const suggestion of suggestions) {
|
|
507
|
+
result.suggestions.push(`Resource "${config.resource}" not found. Did you mean "${suggestion.value}"? ${suggestion.reason}`);
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
if (config.operation !== undefined || configWithDefaults.operation !== undefined) {
|
|
513
|
+
result.errors = result.errors.filter(e => e.property !== 'operation');
|
|
514
|
+
const operationToValidate = configWithDefaults.operation || config.operation;
|
|
515
|
+
const validOperations = this.nodeRepository.getNodeOperations(normalizedNodeType, config.resource);
|
|
516
|
+
const operationIsValid = validOperations.some(op => {
|
|
517
|
+
const opValue = op.operation || op.value || op;
|
|
518
|
+
return opValue === operationToValidate;
|
|
519
|
+
});
|
|
520
|
+
if (!operationIsValid && config.operation !== undefined && config.operation !== '') {
|
|
521
|
+
let suggestions = [];
|
|
522
|
+
try {
|
|
523
|
+
suggestions = this.operationSimilarityService.findSimilarOperations(normalizedNodeType, config.operation, config.resource, 3);
|
|
524
|
+
}
|
|
525
|
+
catch (error) {
|
|
526
|
+
console.error('Operation similarity service error:', error);
|
|
527
|
+
}
|
|
528
|
+
let errorMessage = `Invalid operation "${config.operation}" for node ${nodeType}`;
|
|
529
|
+
if (config.resource) {
|
|
530
|
+
errorMessage += ` with resource "${config.resource}"`;
|
|
531
|
+
}
|
|
532
|
+
errorMessage += '.';
|
|
533
|
+
let fix = '';
|
|
534
|
+
if (suggestions.length > 0) {
|
|
535
|
+
const topSuggestion = suggestions[0];
|
|
536
|
+
if (topSuggestion.confidence >= 0.8) {
|
|
537
|
+
errorMessage += ` Did you mean "${topSuggestion.value}"?`;
|
|
538
|
+
fix = `Change operation to "${topSuggestion.value}". ${topSuggestion.reason}`;
|
|
539
|
+
}
|
|
540
|
+
else {
|
|
541
|
+
errorMessage += ` Similar operations: ${suggestions.map(s => `"${s.value}"`).join(', ')}`;
|
|
542
|
+
fix = `Valid operations${config.resource ? ` for resource "${config.resource}"` : ''}: ${validOperations.slice(0, 5).map(op => {
|
|
543
|
+
const val = op.operation || op.value || op;
|
|
544
|
+
return `"${val}"`;
|
|
545
|
+
}).join(', ')}${validOperations.length > 5 ? '...' : ''}`;
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
else {
|
|
549
|
+
fix = `Valid operations${config.resource ? ` for resource "${config.resource}"` : ''}: ${validOperations.slice(0, 5).map(op => {
|
|
550
|
+
const val = op.operation || op.value || op;
|
|
551
|
+
return `"${val}"`;
|
|
552
|
+
}).join(', ')}${validOperations.length > 5 ? '...' : ''}`;
|
|
553
|
+
}
|
|
554
|
+
const error = {
|
|
555
|
+
type: 'invalid_value',
|
|
556
|
+
property: 'operation',
|
|
557
|
+
message: errorMessage,
|
|
558
|
+
fix
|
|
559
|
+
};
|
|
560
|
+
if (suggestions.length > 0 && suggestions[0].confidence >= 0.5) {
|
|
561
|
+
error.suggestion = `Did you mean "${suggestions[0].value}"? ${suggestions[0].reason}`;
|
|
562
|
+
}
|
|
563
|
+
result.errors.push(error);
|
|
564
|
+
if (suggestions.length > 0) {
|
|
565
|
+
for (const suggestion of suggestions) {
|
|
566
|
+
result.suggestions.push(`Operation "${config.operation}" not found. Did you mean "${suggestion.value}"? ${suggestion.reason}`);
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
static validateSpecialTypeStructures(config, properties, result) {
|
|
573
|
+
for (const [key, value] of Object.entries(config)) {
|
|
574
|
+
if (value === undefined || value === null)
|
|
575
|
+
continue;
|
|
576
|
+
const propDef = properties.find(p => p.name === key);
|
|
577
|
+
if (!propDef)
|
|
578
|
+
continue;
|
|
579
|
+
let structureType = null;
|
|
580
|
+
if (propDef.type === 'filter') {
|
|
581
|
+
structureType = 'filter';
|
|
582
|
+
}
|
|
583
|
+
else if (propDef.type === 'resourceMapper') {
|
|
584
|
+
structureType = 'resourceMapper';
|
|
585
|
+
}
|
|
586
|
+
else if (propDef.type === 'assignmentCollection') {
|
|
587
|
+
structureType = 'assignmentCollection';
|
|
588
|
+
}
|
|
589
|
+
else if (propDef.type === 'resourceLocator') {
|
|
590
|
+
structureType = 'resourceLocator';
|
|
591
|
+
}
|
|
592
|
+
if (!structureType)
|
|
593
|
+
continue;
|
|
594
|
+
const structure = type_structure_service_1.TypeStructureService.getStructure(structureType);
|
|
595
|
+
if (!structure) {
|
|
596
|
+
console.warn(`No structure definition found for type: ${structureType}`);
|
|
597
|
+
continue;
|
|
598
|
+
}
|
|
599
|
+
const validationResult = type_structure_service_1.TypeStructureService.validateTypeCompatibility(value, structureType);
|
|
600
|
+
if (!validationResult.valid) {
|
|
601
|
+
for (const error of validationResult.errors) {
|
|
602
|
+
result.errors.push({
|
|
603
|
+
type: 'invalid_configuration',
|
|
604
|
+
property: key,
|
|
605
|
+
message: error,
|
|
606
|
+
fix: `Ensure ${key} follows the expected structure for ${structureType} type. Example: ${JSON.stringify(structure.example)}`
|
|
607
|
+
});
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
for (const warning of validationResult.warnings) {
|
|
611
|
+
result.warnings.push({
|
|
612
|
+
type: 'best_practice',
|
|
613
|
+
property: key,
|
|
614
|
+
message: warning
|
|
615
|
+
});
|
|
616
|
+
}
|
|
617
|
+
if (typeof value === 'object' && value !== null) {
|
|
618
|
+
this.validateComplexTypeStructure(key, value, structureType, structure, result);
|
|
619
|
+
}
|
|
620
|
+
if (structureType === 'filter' && value.conditions) {
|
|
621
|
+
this.validateFilterOperations(value.conditions, key, result);
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
static validateComplexTypeStructure(propertyName, value, type, structure, result) {
|
|
626
|
+
switch (type) {
|
|
627
|
+
case 'filter':
|
|
628
|
+
if (!value.combinator) {
|
|
629
|
+
result.errors.push({
|
|
630
|
+
type: 'invalid_configuration',
|
|
631
|
+
property: `${propertyName}.combinator`,
|
|
632
|
+
message: 'Filter must have a combinator field',
|
|
633
|
+
fix: 'Add combinator: "and" or combinator: "or" to the filter configuration'
|
|
634
|
+
});
|
|
635
|
+
}
|
|
636
|
+
else if (value.combinator !== 'and' && value.combinator !== 'or') {
|
|
637
|
+
result.errors.push({
|
|
638
|
+
type: 'invalid_configuration',
|
|
639
|
+
property: `${propertyName}.combinator`,
|
|
640
|
+
message: `Invalid combinator value: ${value.combinator}. Must be "and" or "or"`,
|
|
641
|
+
fix: 'Set combinator to either "and" or "or"'
|
|
642
|
+
});
|
|
643
|
+
}
|
|
644
|
+
if (!value.conditions) {
|
|
645
|
+
result.errors.push({
|
|
646
|
+
type: 'invalid_configuration',
|
|
647
|
+
property: `${propertyName}.conditions`,
|
|
648
|
+
message: 'Filter must have a conditions field',
|
|
649
|
+
fix: 'Add conditions array to the filter configuration'
|
|
650
|
+
});
|
|
651
|
+
}
|
|
652
|
+
else if (!Array.isArray(value.conditions)) {
|
|
653
|
+
result.errors.push({
|
|
654
|
+
type: 'invalid_configuration',
|
|
655
|
+
property: `${propertyName}.conditions`,
|
|
656
|
+
message: 'Filter conditions must be an array',
|
|
657
|
+
fix: 'Ensure conditions is an array of condition objects'
|
|
658
|
+
});
|
|
659
|
+
}
|
|
660
|
+
break;
|
|
661
|
+
case 'resourceLocator':
|
|
662
|
+
if (!value.mode) {
|
|
663
|
+
result.errors.push({
|
|
664
|
+
type: 'invalid_configuration',
|
|
665
|
+
property: `${propertyName}.mode`,
|
|
666
|
+
message: 'ResourceLocator must have a mode field',
|
|
667
|
+
fix: 'Add mode: "id", mode: "url", or mode: "list" to the resourceLocator configuration'
|
|
668
|
+
});
|
|
669
|
+
}
|
|
670
|
+
else if (!['id', 'url', 'list', 'name'].includes(value.mode)) {
|
|
671
|
+
result.errors.push({
|
|
672
|
+
type: 'invalid_configuration',
|
|
673
|
+
property: `${propertyName}.mode`,
|
|
674
|
+
message: `Invalid mode value: ${value.mode}. Must be "id", "url", "list", or "name"`,
|
|
675
|
+
fix: 'Set mode to one of: "id", "url", "list", "name"'
|
|
676
|
+
});
|
|
677
|
+
}
|
|
678
|
+
if (!value.hasOwnProperty('value')) {
|
|
679
|
+
result.errors.push({
|
|
680
|
+
type: 'invalid_configuration',
|
|
681
|
+
property: `${propertyName}.value`,
|
|
682
|
+
message: 'ResourceLocator must have a value field',
|
|
683
|
+
fix: 'Add value field to the resourceLocator configuration'
|
|
684
|
+
});
|
|
685
|
+
}
|
|
686
|
+
break;
|
|
687
|
+
case 'assignmentCollection':
|
|
688
|
+
if (!value.assignments) {
|
|
689
|
+
result.errors.push({
|
|
690
|
+
type: 'invalid_configuration',
|
|
691
|
+
property: `${propertyName}.assignments`,
|
|
692
|
+
message: 'AssignmentCollection must have an assignments field',
|
|
693
|
+
fix: 'Add assignments array to the assignmentCollection configuration'
|
|
694
|
+
});
|
|
695
|
+
}
|
|
696
|
+
else if (!Array.isArray(value.assignments)) {
|
|
697
|
+
result.errors.push({
|
|
698
|
+
type: 'invalid_configuration',
|
|
699
|
+
property: `${propertyName}.assignments`,
|
|
700
|
+
message: 'AssignmentCollection assignments must be an array',
|
|
701
|
+
fix: 'Ensure assignments is an array of assignment objects'
|
|
702
|
+
});
|
|
703
|
+
}
|
|
704
|
+
break;
|
|
705
|
+
case 'resourceMapper':
|
|
706
|
+
if (!value.mappingMode) {
|
|
707
|
+
result.errors.push({
|
|
708
|
+
type: 'invalid_configuration',
|
|
709
|
+
property: `${propertyName}.mappingMode`,
|
|
710
|
+
message: 'ResourceMapper must have a mappingMode field',
|
|
711
|
+
fix: 'Add mappingMode: "defineBelow" or mappingMode: "autoMapInputData"'
|
|
712
|
+
});
|
|
713
|
+
}
|
|
714
|
+
else if (!['defineBelow', 'autoMapInputData'].includes(value.mappingMode)) {
|
|
715
|
+
result.errors.push({
|
|
716
|
+
type: 'invalid_configuration',
|
|
717
|
+
property: `${propertyName}.mappingMode`,
|
|
718
|
+
message: `Invalid mappingMode: ${value.mappingMode}. Must be "defineBelow" or "autoMapInputData"`,
|
|
719
|
+
fix: 'Set mappingMode to either "defineBelow" or "autoMapInputData"'
|
|
720
|
+
});
|
|
721
|
+
}
|
|
722
|
+
break;
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
static validateFilterOperations(conditions, propertyName, result) {
|
|
726
|
+
if (!Array.isArray(conditions))
|
|
727
|
+
return;
|
|
728
|
+
const VALID_OPERATIONS_BY_TYPE = {
|
|
729
|
+
string: [
|
|
730
|
+
'empty', 'notEmpty', 'equals', 'notEquals',
|
|
731
|
+
'contains', 'notContains', 'startsWith', 'notStartsWith',
|
|
732
|
+
'endsWith', 'notEndsWith', 'regex', 'notRegex',
|
|
733
|
+
'exists', 'notExists', 'isNotEmpty'
|
|
734
|
+
],
|
|
735
|
+
number: [
|
|
736
|
+
'empty', 'notEmpty', 'equals', 'notEquals', 'gt', 'lt', 'gte', 'lte',
|
|
737
|
+
'exists', 'notExists', 'isNotEmpty'
|
|
738
|
+
],
|
|
739
|
+
dateTime: [
|
|
740
|
+
'empty', 'notEmpty', 'equals', 'notEquals', 'after', 'before', 'afterOrEquals', 'beforeOrEquals',
|
|
741
|
+
'exists', 'notExists', 'isNotEmpty'
|
|
742
|
+
],
|
|
743
|
+
boolean: [
|
|
744
|
+
'empty', 'notEmpty', 'true', 'false', 'equals', 'notEquals',
|
|
745
|
+
'exists', 'notExists', 'isNotEmpty'
|
|
746
|
+
],
|
|
747
|
+
array: [
|
|
748
|
+
'contains', 'notContains', 'lengthEquals', 'lengthNotEquals',
|
|
749
|
+
'lengthGt', 'lengthLt', 'lengthGte', 'lengthLte', 'empty', 'notEmpty',
|
|
750
|
+
'exists', 'notExists', 'isNotEmpty'
|
|
751
|
+
],
|
|
752
|
+
object: [
|
|
753
|
+
'empty', 'notEmpty',
|
|
754
|
+
'exists', 'notExists', 'isNotEmpty'
|
|
755
|
+
],
|
|
756
|
+
any: ['exists', 'notExists', 'isNotEmpty']
|
|
757
|
+
};
|
|
758
|
+
for (let i = 0; i < conditions.length; i++) {
|
|
759
|
+
const condition = conditions[i];
|
|
760
|
+
if (!condition.operator || typeof condition.operator !== 'object')
|
|
761
|
+
continue;
|
|
762
|
+
const { type, operation } = condition.operator;
|
|
763
|
+
if (!type || !operation)
|
|
764
|
+
continue;
|
|
765
|
+
const validOperations = VALID_OPERATIONS_BY_TYPE[type];
|
|
766
|
+
if (!validOperations) {
|
|
767
|
+
result.warnings.push({
|
|
768
|
+
type: 'best_practice',
|
|
769
|
+
property: `${propertyName}.conditions[${i}].operator.type`,
|
|
770
|
+
message: `Unknown operator type: ${type}`
|
|
771
|
+
});
|
|
772
|
+
continue;
|
|
773
|
+
}
|
|
774
|
+
if (!validOperations.includes(operation)) {
|
|
775
|
+
result.errors.push({
|
|
776
|
+
type: 'invalid_value',
|
|
777
|
+
property: `${propertyName}.conditions[${i}].operator.operation`,
|
|
778
|
+
message: `Operation '${operation}' is not valid for type '${type}'`,
|
|
779
|
+
fix: `Use one of the valid operations for ${type}: ${validOperations.join(', ')}`
|
|
780
|
+
});
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
exports.EnhancedConfigValidator = EnhancedConfigValidator;
|
|
786
|
+
EnhancedConfigValidator.operationSimilarityService = null;
|
|
787
|
+
EnhancedConfigValidator.resourceSimilarityService = null;
|
|
788
|
+
EnhancedConfigValidator.nodeRepository = null;
|
|
789
|
+
//# sourceMappingURL=enhanced-config-validator.js.map
|