@eui/mcp 1.5.0 → 1.5.2
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/dist/main.js +539 -208
- package/package.json +9 -6
- package/dist/config/__tests__/schema.property.test.d.ts +0 -2
- package/dist/config/__tests__/schema.property.test.d.ts.map +0 -1
- package/dist/config/__tests__/schema.property.test.js +0 -203
- package/dist/config/__tests__/schema.property.test.js.map +0 -1
- package/dist/config/__tests__/schema.test.d.ts +0 -2
- package/dist/config/__tests__/schema.test.d.ts.map +0 -1
- package/dist/config/__tests__/schema.test.js +0 -454
- package/dist/config/__tests__/schema.test.js.map +0 -1
- package/dist/config/index.d.ts +0 -6
- package/dist/config/index.d.ts.map +0 -1
- package/dist/config/index.js +0 -6
- package/dist/config/index.js.map +0 -1
- package/dist/config/loader.d.ts +0 -27
- package/dist/config/loader.d.ts.map +0 -1
- package/dist/config/loader.js +0 -224
- package/dist/config/loader.js.map +0 -1
- package/dist/config/schema.d.ts +0 -171
- package/dist/config/schema.d.ts.map +0 -1
- package/dist/config/schema.js +0 -100
- package/dist/config/schema.js.map +0 -1
- package/dist/index.d.ts +0 -3
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -45
- package/dist/index.js.map +0 -1
- package/dist/loader/__tests__/cache-manager.property.test.d.ts +0 -2
- package/dist/loader/__tests__/cache-manager.property.test.d.ts.map +0 -1
- package/dist/loader/__tests__/cache-manager.property.test.js +0 -245
- package/dist/loader/__tests__/cache-manager.property.test.js.map +0 -1
- package/dist/loader/__tests__/cache-manager.test.d.ts +0 -2
- package/dist/loader/__tests__/cache-manager.test.d.ts.map +0 -1
- package/dist/loader/__tests__/cache-manager.test.js +0 -256
- package/dist/loader/__tests__/cache-manager.test.js.map +0 -1
- package/dist/loader/__tests__/documentation-loader.integration.test.d.ts +0 -2
- package/dist/loader/__tests__/documentation-loader.integration.test.d.ts.map +0 -1
- package/dist/loader/__tests__/documentation-loader.integration.test.js +0 -498
- package/dist/loader/__tests__/documentation-loader.integration.test.js.map +0 -1
- package/dist/loader/__tests__/documentation-loader.property.test.d.ts +0 -2
- package/dist/loader/__tests__/documentation-loader.property.test.d.ts.map +0 -1
- package/dist/loader/__tests__/documentation-loader.property.test.js +0 -258
- package/dist/loader/__tests__/documentation-loader.property.test.js.map +0 -1
- package/dist/loader/__tests__/errors.test.d.ts +0 -2
- package/dist/loader/__tests__/errors.test.d.ts.map +0 -1
- package/dist/loader/__tests__/errors.test.js +0 -132
- package/dist/loader/__tests__/errors.test.js.map +0 -1
- package/dist/loader/__tests__/http-client.property.test.d.ts +0 -2
- package/dist/loader/__tests__/http-client.property.test.d.ts.map +0 -1
- package/dist/loader/__tests__/http-client.property.test.js +0 -288
- package/dist/loader/__tests__/http-client.property.test.js.map +0 -1
- package/dist/loader/__tests__/http-client.test.d.ts +0 -2
- package/dist/loader/__tests__/http-client.test.d.ts.map +0 -1
- package/dist/loader/__tests__/http-client.test.js +0 -497
- package/dist/loader/__tests__/http-client.test.js.map +0 -1
- package/dist/loader/__tests__/local-documentation-source.property.test.d.ts +0 -2
- package/dist/loader/__tests__/local-documentation-source.property.test.d.ts.map +0 -1
- package/dist/loader/__tests__/local-documentation-source.property.test.js +0 -373
- package/dist/loader/__tests__/local-documentation-source.property.test.js.map +0 -1
- package/dist/loader/__tests__/local-documentation-source.test.d.ts +0 -2
- package/dist/loader/__tests__/local-documentation-source.test.d.ts.map +0 -1
- package/dist/loader/__tests__/local-documentation-source.test.js +0 -544
- package/dist/loader/__tests__/local-documentation-source.test.js.map +0 -1
- package/dist/loader/__tests__/path-type-detector.property.test.d.ts +0 -2
- package/dist/loader/__tests__/path-type-detector.property.test.d.ts.map +0 -1
- package/dist/loader/__tests__/path-type-detector.property.test.js +0 -245
- package/dist/loader/__tests__/path-type-detector.property.test.js.map +0 -1
- package/dist/loader/__tests__/path-type-detector.test.d.ts +0 -2
- package/dist/loader/__tests__/path-type-detector.test.d.ts.map +0 -1
- package/dist/loader/__tests__/path-type-detector.test.js +0 -390
- package/dist/loader/__tests__/path-type-detector.test.js.map +0 -1
- package/dist/loader/__tests__/remote-documentation-source.property.test.d.ts +0 -2
- package/dist/loader/__tests__/remote-documentation-source.property.test.d.ts.map +0 -1
- package/dist/loader/__tests__/remote-documentation-source.property.test.js +0 -462
- package/dist/loader/__tests__/remote-documentation-source.property.test.js.map +0 -1
- package/dist/loader/__tests__/remote-documentation-source.test.d.ts +0 -2
- package/dist/loader/__tests__/remote-documentation-source.test.d.ts.map +0 -1
- package/dist/loader/__tests__/remote-documentation-source.test.js +0 -707
- package/dist/loader/__tests__/remote-documentation-source.test.js.map +0 -1
- package/dist/loader/cache-manager.d.ts +0 -74
- package/dist/loader/cache-manager.d.ts.map +0 -1
- package/dist/loader/cache-manager.js +0 -107
- package/dist/loader/cache-manager.js.map +0 -1
- package/dist/loader/documentation-loader.d.ts +0 -57
- package/dist/loader/documentation-loader.d.ts.map +0 -1
- package/dist/loader/documentation-loader.js +0 -81
- package/dist/loader/documentation-loader.js.map +0 -1
- package/dist/loader/documentation-source.d.ts +0 -37
- package/dist/loader/documentation-source.d.ts.map +0 -1
- package/dist/loader/documentation-source.js +0 -2
- package/dist/loader/documentation-source.js.map +0 -1
- package/dist/loader/errors.d.ts +0 -34
- package/dist/loader/errors.d.ts.map +0 -1
- package/dist/loader/errors.js +0 -65
- package/dist/loader/errors.js.map +0 -1
- package/dist/loader/http-client.d.ts +0 -43
- package/dist/loader/http-client.d.ts.map +0 -1
- package/dist/loader/http-client.js +0 -144
- package/dist/loader/http-client.js.map +0 -1
- package/dist/loader/index.d.ts +0 -6
- package/dist/loader/index.d.ts.map +0 -1
- package/dist/loader/index.js +0 -5
- package/dist/loader/index.js.map +0 -1
- package/dist/loader/local-documentation-source.d.ts +0 -62
- package/dist/loader/local-documentation-source.d.ts.map +0 -1
- package/dist/loader/local-documentation-source.js +0 -190
- package/dist/loader/local-documentation-source.js.map +0 -1
- package/dist/loader/path-type-detector.d.ts +0 -34
- package/dist/loader/path-type-detector.d.ts.map +0 -1
- package/dist/loader/path-type-detector.js +0 -78
- package/dist/loader/path-type-detector.js.map +0 -1
- package/dist/loader/remote-documentation-source.d.ts +0 -108
- package/dist/loader/remote-documentation-source.d.ts.map +0 -1
- package/dist/loader/remote-documentation-source.js +0 -249
- package/dist/loader/remote-documentation-source.js.map +0 -1
- package/dist/main.d.ts +0 -3
- package/dist/main.d.ts.map +0 -1
- package/dist/main.js.map +0 -1
- package/dist/mcp/__tests__/server.property.test.d.ts +0 -2
- package/dist/mcp/__tests__/server.property.test.d.ts.map +0 -1
- package/dist/mcp/__tests__/server.property.test.js +0 -286
- package/dist/mcp/__tests__/server.property.test.js.map +0 -1
- package/dist/mcp/__tests__/server.test.d.ts +0 -2
- package/dist/mcp/__tests__/server.test.d.ts.map +0 -1
- package/dist/mcp/__tests__/server.test.js +0 -101
- package/dist/mcp/__tests__/server.test.js.map +0 -1
- package/dist/mcp/index.d.ts +0 -5
- package/dist/mcp/index.d.ts.map +0 -1
- package/dist/mcp/index.js +0 -5
- package/dist/mcp/index.js.map +0 -1
- package/dist/mcp/server.d.ts +0 -65
- package/dist/mcp/server.d.ts.map +0 -1
- package/dist/mcp/server.js +0 -242
- package/dist/mcp/server.js.map +0 -1
- package/dist/publish/__tests__/publish-utils.test.d.ts +0 -5
- package/dist/publish/__tests__/publish-utils.test.d.ts.map +0 -1
- package/dist/publish/__tests__/publish-utils.test.js +0 -189
- package/dist/publish/__tests__/publish-utils.test.js.map +0 -1
- package/dist/publish/index.d.ts +0 -8
- package/dist/publish/index.d.ts.map +0 -1
- package/dist/publish/index.js +0 -8
- package/dist/publish/index.js.map +0 -1
- package/dist/publish/publish-utils.d.ts +0 -74
- package/dist/publish/publish-utils.d.ts.map +0 -1
- package/dist/publish/publish-utils.js +0 -170
- package/dist/publish/publish-utils.js.map +0 -1
- package/dist/query/__tests__/deprecation-parser.test.d.ts +0 -2
- package/dist/query/__tests__/deprecation-parser.test.d.ts.map +0 -1
- package/dist/query/__tests__/deprecation-parser.test.js +0 -154
- package/dist/query/__tests__/deprecation-parser.test.js.map +0 -1
- package/dist/query/__tests__/deprecation-query.test.d.ts +0 -2
- package/dist/query/__tests__/deprecation-query.test.d.ts.map +0 -1
- package/dist/query/__tests__/deprecation-query.test.js +0 -199
- package/dist/query/__tests__/deprecation-query.test.js.map +0 -1
- package/dist/query/__tests__/index-builder-debug.test.d.ts +0 -2
- package/dist/query/__tests__/index-builder-debug.test.d.ts.map +0 -1
- package/dist/query/__tests__/index-builder-debug.test.js +0 -34
- package/dist/query/__tests__/index-builder-debug.test.js.map +0 -1
- package/dist/query/__tests__/index-builder.property.test.d.ts +0 -2
- package/dist/query/__tests__/index-builder.property.test.d.ts.map +0 -1
- package/dist/query/__tests__/index-builder.property.test.js +0 -422
- package/dist/query/__tests__/index-builder.property.test.js.map +0 -1
- package/dist/query/__tests__/index-builder.test.d.ts +0 -2
- package/dist/query/__tests__/index-builder.test.d.ts.map +0 -1
- package/dist/query/__tests__/index-builder.test.js +0 -55
- package/dist/query/__tests__/index-builder.test.js.map +0 -1
- package/dist/query/__tests__/result-formatter-deprecation.test.d.ts +0 -2
- package/dist/query/__tests__/result-formatter-deprecation.test.d.ts.map +0 -1
- package/dist/query/__tests__/result-formatter-deprecation.test.js +0 -159
- package/dist/query/__tests__/result-formatter-deprecation.test.js.map +0 -1
- package/dist/query/__tests__/result-formatter.integration.test.d.ts +0 -2
- package/dist/query/__tests__/result-formatter.integration.test.d.ts.map +0 -1
- package/dist/query/__tests__/result-formatter.integration.test.js +0 -140
- package/dist/query/__tests__/result-formatter.integration.test.js.map +0 -1
- package/dist/query/__tests__/result-formatter.property.test.d.ts +0 -2
- package/dist/query/__tests__/result-formatter.property.test.d.ts.map +0 -1
- package/dist/query/__tests__/result-formatter.property.test.js +0 -163
- package/dist/query/__tests__/result-formatter.property.test.js.map +0 -1
- package/dist/query/__tests__/result-formatter.test.d.ts +0 -2
- package/dist/query/__tests__/result-formatter.test.d.ts.map +0 -1
- package/dist/query/__tests__/result-formatter.test.js +0 -85
- package/dist/query/__tests__/result-formatter.test.js.map +0 -1
- package/dist/query/__tests__/search-engine.property.test.d.ts +0 -2
- package/dist/query/__tests__/search-engine.property.test.d.ts.map +0 -1
- package/dist/query/__tests__/search-engine.property.test.js +0 -389
- package/dist/query/__tests__/search-engine.property.test.js.map +0 -1
- package/dist/query/component-query.d.ts +0 -33
- package/dist/query/component-query.d.ts.map +0 -1
- package/dist/query/component-query.js +0 -63
- package/dist/query/component-query.js.map +0 -1
- package/dist/query/deprecation-parser.d.ts +0 -46
- package/dist/query/deprecation-parser.d.ts.map +0 -1
- package/dist/query/deprecation-parser.js +0 -81
- package/dist/query/deprecation-parser.js.map +0 -1
- package/dist/query/deprecation-query.d.ts +0 -19
- package/dist/query/deprecation-query.d.ts.map +0 -1
- package/dist/query/deprecation-query.js +0 -73
- package/dist/query/deprecation-query.js.map +0 -1
- package/dist/query/index-builder.d.ts +0 -79
- package/dist/query/index-builder.d.ts.map +0 -1
- package/dist/query/index-builder.js +0 -217
- package/dist/query/index-builder.js.map +0 -1
- package/dist/query/index.d.ts +0 -5
- package/dist/query/index.d.ts.map +0 -1
- package/dist/query/index.js +0 -6
- package/dist/query/index.js.map +0 -1
- package/dist/query/result-formatter.d.ts +0 -135
- package/dist/query/result-formatter.d.ts.map +0 -1
- package/dist/query/result-formatter.js +0 -224
- package/dist/query/result-formatter.js.map +0 -1
- package/dist/query/search-engine.d.ts +0 -54
- package/dist/query/search-engine.d.ts.map +0 -1
- package/dist/query/search-engine.js +0 -178
- package/dist/query/search-engine.js.map +0 -1
- package/dist/tools/__tests__/deprecation-tools.test.d.ts +0 -2
- package/dist/tools/__tests__/deprecation-tools.test.d.ts.map +0 -1
- package/dist/tools/__tests__/deprecation-tools.test.js +0 -178
- package/dist/tools/__tests__/deprecation-tools.test.js.map +0 -1
- package/dist/tools/__tests__/get-component-docs.property.test.d.ts +0 -2
- package/dist/tools/__tests__/get-component-docs.property.test.d.ts.map +0 -1
- package/dist/tools/__tests__/get-component-docs.property.test.js +0 -594
- package/dist/tools/__tests__/get-component-docs.property.test.js.map +0 -1
- package/dist/tools/__tests__/get-component-docs.test.d.ts +0 -2
- package/dist/tools/__tests__/get-component-docs.test.d.ts.map +0 -1
- package/dist/tools/__tests__/get-component-docs.test.js +0 -137
- package/dist/tools/__tests__/get-component-docs.test.js.map +0 -1
- package/dist/tools/__tests__/get-component-examples.property.test.d.ts +0 -2
- package/dist/tools/__tests__/get-component-examples.property.test.d.ts.map +0 -1
- package/dist/tools/__tests__/get-component-examples.property.test.js +0 -245
- package/dist/tools/__tests__/get-component-examples.property.test.js.map +0 -1
- package/dist/tools/__tests__/get-component-examples.test.d.ts +0 -2
- package/dist/tools/__tests__/get-component-examples.test.d.ts.map +0 -1
- package/dist/tools/__tests__/get-component-examples.test.js +0 -128
- package/dist/tools/__tests__/get-component-examples.test.js.map +0 -1
- package/dist/tools/__tests__/get-component-inputs.property.test.d.ts +0 -2
- package/dist/tools/__tests__/get-component-inputs.property.test.d.ts.map +0 -1
- package/dist/tools/__tests__/get-component-inputs.property.test.js +0 -310
- package/dist/tools/__tests__/get-component-inputs.property.test.js.map +0 -1
- package/dist/tools/__tests__/get-component-inputs.test.d.ts +0 -2
- package/dist/tools/__tests__/get-component-inputs.test.d.ts.map +0 -1
- package/dist/tools/__tests__/get-component-inputs.test.js +0 -245
- package/dist/tools/__tests__/get-component-inputs.test.js.map +0 -1
- package/dist/tools/__tests__/get-component-outputs.property.test.d.ts +0 -2
- package/dist/tools/__tests__/get-component-outputs.property.test.d.ts.map +0 -1
- package/dist/tools/__tests__/get-component-outputs.property.test.js +0 -227
- package/dist/tools/__tests__/get-component-outputs.property.test.js.map +0 -1
- package/dist/tools/__tests__/get-component-outputs.test.d.ts +0 -2
- package/dist/tools/__tests__/get-component-outputs.test.d.ts.map +0 -1
- package/dist/tools/__tests__/get-component-outputs.test.js +0 -189
- package/dist/tools/__tests__/get-component-outputs.test.js.map +0 -1
- package/dist/tools/__tests__/get-library-version.property.test.d.ts +0 -2
- package/dist/tools/__tests__/get-library-version.property.test.d.ts.map +0 -1
- package/dist/tools/__tests__/get-library-version.property.test.js +0 -115
- package/dist/tools/__tests__/get-library-version.property.test.js.map +0 -1
- package/dist/tools/__tests__/get-library-version.test.d.ts +0 -2
- package/dist/tools/__tests__/get-library-version.test.d.ts.map +0 -1
- package/dist/tools/__tests__/get-library-version.test.js +0 -97
- package/dist/tools/__tests__/get-library-version.test.js.map +0 -1
- package/dist/tools/__tests__/list-components.property.test.d.ts +0 -2
- package/dist/tools/__tests__/list-components.property.test.d.ts.map +0 -1
- package/dist/tools/__tests__/list-components.property.test.js +0 -241
- package/dist/tools/__tests__/list-components.property.test.js.map +0 -1
- package/dist/tools/__tests__/list-components.test.d.ts +0 -2
- package/dist/tools/__tests__/list-components.test.d.ts.map +0 -1
- package/dist/tools/__tests__/list-components.test.js +0 -170
- package/dist/tools/__tests__/list-components.test.js.map +0 -1
- package/dist/tools/__tests__/search-components.test.d.ts +0 -2
- package/dist/tools/__tests__/search-components.test.d.ts.map +0 -1
- package/dist/tools/__tests__/search-components.test.js +0 -239
- package/dist/tools/__tests__/search-components.test.js.map +0 -1
- package/dist/tools/get-component-docs.d.ts +0 -43
- package/dist/tools/get-component-docs.d.ts.map +0 -1
- package/dist/tools/get-component-docs.js +0 -55
- package/dist/tools/get-component-docs.js.map +0 -1
- package/dist/tools/get-component-examples.d.ts +0 -45
- package/dist/tools/get-component-examples.d.ts.map +0 -1
- package/dist/tools/get-component-examples.js +0 -56
- package/dist/tools/get-component-examples.js.map +0 -1
- package/dist/tools/get-component-inputs.d.ts +0 -44
- package/dist/tools/get-component-inputs.d.ts.map +0 -1
- package/dist/tools/get-component-inputs.js +0 -55
- package/dist/tools/get-component-inputs.js.map +0 -1
- package/dist/tools/get-component-outputs.d.ts +0 -44
- package/dist/tools/get-component-outputs.d.ts.map +0 -1
- package/dist/tools/get-component-outputs.js +0 -55
- package/dist/tools/get-component-outputs.js.map +0 -1
- package/dist/tools/get-deprecation-info.d.ts +0 -42
- package/dist/tools/get-deprecation-info.d.ts.map +0 -1
- package/dist/tools/get-deprecation-info.js +0 -55
- package/dist/tools/get-deprecation-info.js.map +0 -1
- package/dist/tools/get-eui-cli-guide.d.ts +0 -32
- package/dist/tools/get-eui-cli-guide.d.ts.map +0 -1
- package/dist/tools/get-eui-cli-guide.js +0 -160
- package/dist/tools/get-eui-cli-guide.js.map +0 -1
- package/dist/tools/get-eui-cli-instructions.d.ts +0 -32
- package/dist/tools/get-eui-cli-instructions.d.ts.map +0 -1
- package/dist/tools/get-eui-cli-instructions.js +0 -375
- package/dist/tools/get-eui-cli-instructions.js.map +0 -1
- package/dist/tools/get-library-version.d.ts +0 -33
- package/dist/tools/get-library-version.d.ts.map +0 -1
- package/dist/tools/get-library-version.js +0 -62
- package/dist/tools/get-library-version.js.map +0 -1
- package/dist/tools/index.d.ts +0 -12
- package/dist/tools/index.d.ts.map +0 -1
- package/dist/tools/index.js +0 -13
- package/dist/tools/index.js.map +0 -1
- package/dist/tools/list-components.d.ts +0 -69
- package/dist/tools/list-components.d.ts.map +0 -1
- package/dist/tools/list-components.js +0 -84
- package/dist/tools/list-components.js.map +0 -1
- package/dist/tools/list-deprecated.d.ts +0 -47
- package/dist/tools/list-deprecated.d.ts.map +0 -1
- package/dist/tools/list-deprecated.js +0 -56
- package/dist/tools/list-deprecated.js.map +0 -1
- package/dist/tools/search-components.d.ts +0 -69
- package/dist/tools/search-components.d.ts.map +0 -1
- package/dist/tools/search-components.js +0 -98
- package/dist/tools/search-components.js.map +0 -1
- package/dist/types/compodoc.d.ts +0 -262
- package/dist/types/compodoc.d.ts.map +0 -1
- package/dist/types/compodoc.js +0 -5
- package/dist/types/compodoc.js.map +0 -1
- package/dist/types/deprecation.d.ts +0 -33
- package/dist/types/deprecation.d.ts.map +0 -1
- package/dist/types/deprecation.js +0 -5
- package/dist/types/deprecation.js.map +0 -1
- package/dist/types/index.d.ts +0 -5
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/index.js +0 -5
- package/dist/types/index.js.map +0 -1
- package/dist/utils/__tests__/credential-masking.property.test.d.ts +0 -2
- package/dist/utils/__tests__/credential-masking.property.test.d.ts.map +0 -1
- package/dist/utils/__tests__/credential-masking.property.test.js +0 -145
- package/dist/utils/__tests__/credential-masking.property.test.js.map +0 -1
- package/dist/utils/__tests__/credential-masking.test.d.ts +0 -2
- package/dist/utils/__tests__/credential-masking.test.d.ts.map +0 -1
- package/dist/utils/__tests__/credential-masking.test.js +0 -188
- package/dist/utils/__tests__/credential-masking.test.js.map +0 -1
- package/dist/utils/__tests__/errors.test.d.ts +0 -2
- package/dist/utils/__tests__/errors.test.d.ts.map +0 -1
- package/dist/utils/__tests__/errors.test.js +0 -110
- package/dist/utils/__tests__/errors.test.js.map +0 -1
- package/dist/utils/__tests__/integration.test.d.ts +0 -2
- package/dist/utils/__tests__/integration.test.d.ts.map +0 -1
- package/dist/utils/__tests__/integration.test.js +0 -142
- package/dist/utils/__tests__/integration.test.js.map +0 -1
- package/dist/utils/__tests__/logger.test.d.ts +0 -2
- package/dist/utils/__tests__/logger.test.d.ts.map +0 -1
- package/dist/utils/__tests__/logger.test.js +0 -119
- package/dist/utils/__tests__/logger.test.js.map +0 -1
- package/dist/utils/__tests__/retry.test.d.ts +0 -2
- package/dist/utils/__tests__/retry.test.d.ts.map +0 -1
- package/dist/utils/__tests__/retry.test.js +0 -84
- package/dist/utils/__tests__/retry.test.js.map +0 -1
- package/dist/utils/circuit-breaker.d.ts +0 -91
- package/dist/utils/circuit-breaker.d.ts.map +0 -1
- package/dist/utils/circuit-breaker.js +0 -186
- package/dist/utils/circuit-breaker.js.map +0 -1
- package/dist/utils/credential-masking.d.ts +0 -90
- package/dist/utils/credential-masking.d.ts.map +0 -1
- package/dist/utils/credential-masking.js +0 -202
- package/dist/utils/credential-masking.js.map +0 -1
- package/dist/utils/error-handler.d.ts +0 -68
- package/dist/utils/error-handler.d.ts.map +0 -1
- package/dist/utils/error-handler.js +0 -184
- package/dist/utils/error-handler.js.map +0 -1
- package/dist/utils/errors.d.ts +0 -156
- package/dist/utils/errors.d.ts.map +0 -1
- package/dist/utils/errors.js +0 -242
- package/dist/utils/errors.js.map +0 -1
- package/dist/utils/index.d.ts +0 -10
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/index.js +0 -16
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/logger.d.ts +0 -76
- package/dist/utils/logger.d.ts.map +0 -1
- package/dist/utils/logger.js +0 -150
- package/dist/utils/logger.js.map +0 -1
- package/dist/utils/retry.d.ts +0 -19
- package/dist/utils/retry.d.ts.map +0 -1
- package/dist/utils/retry.js +0 -81
- package/dist/utils/retry.js.map +0 -1
- package/dist/version/__tests__/changelog-commit-grouping.property.test.d.ts +0 -2
- package/dist/version/__tests__/changelog-commit-grouping.property.test.d.ts.map +0 -1
- package/dist/version/__tests__/changelog-commit-grouping.property.test.js +0 -297
- package/dist/version/__tests__/changelog-commit-grouping.property.test.js.map +0 -1
- package/dist/version/__tests__/changelog-commit-parsing.property.test.d.ts +0 -2
- package/dist/version/__tests__/changelog-commit-parsing.property.test.d.ts.map +0 -1
- package/dist/version/__tests__/changelog-commit-parsing.property.test.js +0 -396
- package/dist/version/__tests__/changelog-commit-parsing.property.test.js.map +0 -1
- package/dist/version/__tests__/changelog-file-updates.property.test.d.ts +0 -11
- package/dist/version/__tests__/changelog-file-updates.property.test.d.ts.map +0 -1
- package/dist/version/__tests__/changelog-file-updates.property.test.js +0 -452
- package/dist/version/__tests__/changelog-file-updates.property.test.js.map +0 -1
- package/dist/version/__tests__/dry-run-action.property.test.d.ts +0 -8
- package/dist/version/__tests__/dry-run-action.property.test.d.ts.map +0 -1
- package/dist/version/__tests__/dry-run-action.property.test.js +0 -50
- package/dist/version/__tests__/dry-run-action.property.test.js.map +0 -1
- package/dist/version/__tests__/dry-run-changelog.property.test.d.ts +0 -8
- package/dist/version/__tests__/dry-run-changelog.property.test.d.ts.map +0 -1
- package/dist/version/__tests__/dry-run-changelog.property.test.js +0 -53
- package/dist/version/__tests__/dry-run-changelog.property.test.js.map +0 -1
- package/dist/version/__tests__/dry-run-utils.test.d.ts +0 -7
- package/dist/version/__tests__/dry-run-utils.test.d.ts.map +0 -1
- package/dist/version/__tests__/dry-run-utils.test.js +0 -205
- package/dist/version/__tests__/dry-run-utils.test.js.map +0 -1
- package/dist/version/__tests__/dry-run-version.property.test.d.ts +0 -8
- package/dist/version/__tests__/dry-run-version.property.test.d.ts.map +0 -1
- package/dist/version/__tests__/dry-run-version.property.test.js +0 -59
- package/dist/version/__tests__/dry-run-version.property.test.js.map +0 -1
- package/dist/version/__tests__/git-tag-annotation.property.test.d.ts +0 -11
- package/dist/version/__tests__/git-tag-annotation.property.test.d.ts.map +0 -1
- package/dist/version/__tests__/git-tag-annotation.property.test.js +0 -271
- package/dist/version/__tests__/git-tag-annotation.property.test.js.map +0 -1
- package/dist/version/__tests__/git-tag-format.property.test.d.ts +0 -11
- package/dist/version/__tests__/git-tag-format.property.test.d.ts.map +0 -1
- package/dist/version/__tests__/git-tag-format.property.test.js +0 -411
- package/dist/version/__tests__/git-tag-format.property.test.js.map +0 -1
- package/dist/version/__tests__/git-tag-utils.test.d.ts +0 -2
- package/dist/version/__tests__/git-tag-utils.test.d.ts.map +0 -1
- package/dist/version/__tests__/git-tag-utils.test.js +0 -142
- package/dist/version/__tests__/git-tag-utils.test.js.map +0 -1
- package/dist/version/__tests__/npm-tag-selection.property.test.d.ts +0 -2
- package/dist/version/__tests__/npm-tag-selection.property.test.d.ts.map +0 -1
- package/dist/version/__tests__/npm-tag-selection.property.test.js +0 -79
- package/dist/version/__tests__/npm-tag-selection.property.test.js.map +0 -1
- package/dist/version/__tests__/release-title-format.property.test.d.ts +0 -11
- package/dist/version/__tests__/release-title-format.property.test.d.ts.map +0 -1
- package/dist/version/__tests__/release-title-format.property.test.js +0 -422
- package/dist/version/__tests__/release-title-format.property.test.js.map +0 -1
- package/dist/version/__tests__/release-utils.test.d.ts +0 -7
- package/dist/version/__tests__/release-utils.test.d.ts.map +0 -1
- package/dist/version/__tests__/release-utils.test.js +0 -176
- package/dist/version/__tests__/release-utils.test.js.map +0 -1
- package/dist/version/__tests__/rollback-changelog.property.test.d.ts +0 -8
- package/dist/version/__tests__/rollback-changelog.property.test.d.ts.map +0 -1
- package/dist/version/__tests__/rollback-changelog.property.test.js +0 -61
- package/dist/version/__tests__/rollback-changelog.property.test.js.map +0 -1
- package/dist/version/__tests__/rollback-utils.test.d.ts +0 -7
- package/dist/version/__tests__/rollback-utils.test.d.ts.map +0 -1
- package/dist/version/__tests__/rollback-utils.test.js +0 -74
- package/dist/version/__tests__/rollback-utils.test.js.map +0 -1
- package/dist/version/__tests__/version-manager.property.test.d.ts +0 -2
- package/dist/version/__tests__/version-manager.property.test.d.ts.map +0 -1
- package/dist/version/__tests__/version-manager.property.test.js +0 -143
- package/dist/version/__tests__/version-manager.property.test.js.map +0 -1
- package/dist/version/__tests__/version-manager.test.d.ts +0 -2
- package/dist/version/__tests__/version-manager.test.d.ts.map +0 -1
- package/dist/version/__tests__/version-manager.test.js +0 -203
- package/dist/version/__tests__/version-manager.test.js.map +0 -1
- package/dist/version/changelog-file-utils.d.ts +0 -69
- package/dist/version/changelog-file-utils.d.ts.map +0 -1
- package/dist/version/changelog-file-utils.js +0 -161
- package/dist/version/changelog-file-utils.js.map +0 -1
- package/dist/version/changelog-utils.d.ts +0 -98
- package/dist/version/changelog-utils.d.ts.map +0 -1
- package/dist/version/changelog-utils.js +0 -198
- package/dist/version/changelog-utils.js.map +0 -1
- package/dist/version/dry-run-utils.d.ts +0 -108
- package/dist/version/dry-run-utils.d.ts.map +0 -1
- package/dist/version/dry-run-utils.js +0 -126
- package/dist/version/dry-run-utils.js.map +0 -1
- package/dist/version/git-tag-utils.d.ts +0 -50
- package/dist/version/git-tag-utils.d.ts.map +0 -1
- package/dist/version/git-tag-utils.js +0 -66
- package/dist/version/git-tag-utils.js.map +0 -1
- package/dist/version/index.d.ts +0 -11
- package/dist/version/index.d.ts.map +0 -1
- package/dist/version/index.js +0 -11
- package/dist/version/index.js.map +0 -1
- package/dist/version/release-utils.d.ts +0 -94
- package/dist/version/release-utils.d.ts.map +0 -1
- package/dist/version/release-utils.js +0 -170
- package/dist/version/release-utils.js.map +0 -1
- package/dist/version/rollback-utils.d.ts +0 -47
- package/dist/version/rollback-utils.d.ts.map +0 -1
- package/dist/version/rollback-utils.js +0 -73
- package/dist/version/rollback-utils.js.map +0 -1
- package/dist/version/version-manager.d.ts +0 -98
- package/dist/version/version-manager.d.ts.map +0 -1
- package/dist/version/version-manager.js +0 -154
- package/dist/version/version-manager.js.map +0 -1
package/dist/config/loader.js
DELETED
|
@@ -1,224 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Configuration loader
|
|
3
|
-
* Supports loading configuration from CLI args, environment variables, and config files
|
|
4
|
-
*/
|
|
5
|
-
import * as fs from 'fs';
|
|
6
|
-
import * as path from 'path';
|
|
7
|
-
import { safeValidateConfig, DEFAULT_CONFIG } from './schema.js';
|
|
8
|
-
/**
|
|
9
|
-
* Load configuration from environment variables
|
|
10
|
-
*/
|
|
11
|
-
export function loadFromEnv() {
|
|
12
|
-
const config = {};
|
|
13
|
-
if (process.env.COMPODOC_MCP_DOC_PATH) {
|
|
14
|
-
config.documentation = {
|
|
15
|
-
path: process.env.COMPODOC_MCP_DOC_PATH,
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
if (process.env.COMPODOC_MCP_LOG_LEVEL) {
|
|
19
|
-
config.logging = {
|
|
20
|
-
level: process.env.COMPODOC_MCP_LOG_LEVEL,
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
if (process.env.COMPODOC_MCP_WATCH !== undefined) {
|
|
24
|
-
if (!config.documentation) {
|
|
25
|
-
config.documentation = { path: '' };
|
|
26
|
-
}
|
|
27
|
-
config.documentation.watchForChanges = process.env.COMPODOC_MCP_WATCH === 'true';
|
|
28
|
-
}
|
|
29
|
-
return config;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Load configuration from CLI arguments
|
|
33
|
-
*/
|
|
34
|
-
export function loadFromArgs(args) {
|
|
35
|
-
const config = {};
|
|
36
|
-
for (let i = 0; i < args.length; i++) {
|
|
37
|
-
const arg = args[i];
|
|
38
|
-
switch (arg) {
|
|
39
|
-
case '--doc-path':
|
|
40
|
-
case '--documentation-path':
|
|
41
|
-
if (!config.documentation) {
|
|
42
|
-
config.documentation = { path: '' };
|
|
43
|
-
}
|
|
44
|
-
config.documentation.path = args[++i];
|
|
45
|
-
break;
|
|
46
|
-
case '--watch':
|
|
47
|
-
if (!config.documentation) {
|
|
48
|
-
config.documentation = { path: '' };
|
|
49
|
-
}
|
|
50
|
-
config.documentation.watchForChanges = true;
|
|
51
|
-
break;
|
|
52
|
-
case '--no-watch':
|
|
53
|
-
if (!config.documentation) {
|
|
54
|
-
config.documentation = { path: '' };
|
|
55
|
-
}
|
|
56
|
-
config.documentation.watchForChanges = false;
|
|
57
|
-
break;
|
|
58
|
-
case '--log-level':
|
|
59
|
-
config.logging = {
|
|
60
|
-
level: args[++i],
|
|
61
|
-
};
|
|
62
|
-
break;
|
|
63
|
-
case '--max-results':
|
|
64
|
-
config.search = {
|
|
65
|
-
maxResults: parseInt(args[++i], 10),
|
|
66
|
-
};
|
|
67
|
-
break;
|
|
68
|
-
case '--help':
|
|
69
|
-
case '-h':
|
|
70
|
-
printHelp();
|
|
71
|
-
process.exit(0);
|
|
72
|
-
break;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
return config;
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Load configuration from a JSON file
|
|
79
|
-
*/
|
|
80
|
-
export function loadFromFile(filePath) {
|
|
81
|
-
try {
|
|
82
|
-
if (!fs.existsSync(filePath)) {
|
|
83
|
-
console.warn(`Configuration file not found: ${filePath}`);
|
|
84
|
-
return {};
|
|
85
|
-
}
|
|
86
|
-
const content = fs.readFileSync(filePath, 'utf-8');
|
|
87
|
-
const ext = path.extname(filePath).toLowerCase();
|
|
88
|
-
if (ext === '.json') {
|
|
89
|
-
return JSON.parse(content);
|
|
90
|
-
}
|
|
91
|
-
console.warn(`Unsupported configuration file format: ${ext}`);
|
|
92
|
-
return {};
|
|
93
|
-
}
|
|
94
|
-
catch (error) {
|
|
95
|
-
console.error(`Failed to load config file ${filePath}:`, error);
|
|
96
|
-
return {};
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* Deep merge two objects
|
|
101
|
-
*/
|
|
102
|
-
function deepMerge(target, source) {
|
|
103
|
-
const result = { ...target };
|
|
104
|
-
for (const key in source) {
|
|
105
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
106
|
-
const sourceValue = source[key];
|
|
107
|
-
const targetValue = result[key];
|
|
108
|
-
if (sourceValue &&
|
|
109
|
-
typeof sourceValue === 'object' &&
|
|
110
|
-
!Array.isArray(sourceValue) &&
|
|
111
|
-
targetValue &&
|
|
112
|
-
typeof targetValue === 'object' &&
|
|
113
|
-
!Array.isArray(targetValue)) {
|
|
114
|
-
result[key] = deepMerge(targetValue, sourceValue);
|
|
115
|
-
}
|
|
116
|
-
else if (sourceValue !== undefined) {
|
|
117
|
-
result[key] = sourceValue;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
return result;
|
|
122
|
-
}
|
|
123
|
-
/**
|
|
124
|
-
* Load and merge configuration from all sources
|
|
125
|
-
* Priority: CLI args > Environment variables > Config file > Defaults
|
|
126
|
-
*/
|
|
127
|
-
export function loadConfig(args = process.argv.slice(2)) {
|
|
128
|
-
try {
|
|
129
|
-
// Try to load from config file (if specified)
|
|
130
|
-
const configFileIndex = args.indexOf('--config');
|
|
131
|
-
const configFile = configFileIndex >= 0 ? args[configFileIndex + 1] : undefined;
|
|
132
|
-
const fileConfig = configFile ? loadFromFile(configFile) : {};
|
|
133
|
-
// Load from environment variables
|
|
134
|
-
const envConfig = loadFromEnv();
|
|
135
|
-
// Load from CLI arguments
|
|
136
|
-
const argsConfig = loadFromArgs(args);
|
|
137
|
-
// Start with defaults and merge in order of priority
|
|
138
|
-
let mergedConfig = { ...DEFAULT_CONFIG };
|
|
139
|
-
mergedConfig = deepMerge(mergedConfig, fileConfig);
|
|
140
|
-
mergedConfig = deepMerge(mergedConfig, envConfig);
|
|
141
|
-
mergedConfig = deepMerge(mergedConfig, argsConfig);
|
|
142
|
-
// Validate the merged configuration
|
|
143
|
-
const result = safeValidateConfig(mergedConfig);
|
|
144
|
-
if (!result.success) {
|
|
145
|
-
const errors = formatZodErrors(result.error);
|
|
146
|
-
console.error('Configuration validation failed:');
|
|
147
|
-
errors.forEach((error) => console.error(` - ${error}`));
|
|
148
|
-
return { success: false, errors };
|
|
149
|
-
}
|
|
150
|
-
console.log('Configuration loaded successfully');
|
|
151
|
-
return { success: true, config: result.data };
|
|
152
|
-
}
|
|
153
|
-
catch (error) {
|
|
154
|
-
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
155
|
-
return {
|
|
156
|
-
success: false,
|
|
157
|
-
errors: [`Failed to load configuration: ${errorMessage}`],
|
|
158
|
-
};
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
/**
|
|
162
|
-
* Format Zod validation errors into readable messages
|
|
163
|
-
*/
|
|
164
|
-
function formatZodErrors(error) {
|
|
165
|
-
return error.errors.map((err) => {
|
|
166
|
-
const path = err.path.join('.');
|
|
167
|
-
return `${path}: ${err.message}`;
|
|
168
|
-
});
|
|
169
|
-
}
|
|
170
|
-
/**
|
|
171
|
-
* Print help message
|
|
172
|
-
*/
|
|
173
|
-
function printHelp() {
|
|
174
|
-
console.log(`
|
|
175
|
-
EUI Compodoc MCP Server - Model Context Protocol server for Angular component documentation
|
|
176
|
-
|
|
177
|
-
Usage:
|
|
178
|
-
eui-compodoc-mcp [options]
|
|
179
|
-
|
|
180
|
-
Options:
|
|
181
|
-
--doc-path <path> Path to documentation.json file (required)
|
|
182
|
-
--watch Watch for changes to documentation.json (default: true)
|
|
183
|
-
--no-watch Disable file watching
|
|
184
|
-
--log-level <level> Logging level: debug, info, warn, error (default: info)
|
|
185
|
-
--max-results <number> Maximum search results (default: 50)
|
|
186
|
-
--config <file> Load configuration from JSON file
|
|
187
|
-
--help, -h Show this help message
|
|
188
|
-
|
|
189
|
-
Environment Variables:
|
|
190
|
-
COMPODOC_MCP_DOC_PATH Path to documentation.json file
|
|
191
|
-
COMPODOC_MCP_LOG_LEVEL Logging level
|
|
192
|
-
COMPODOC_MCP_WATCH Enable/disable file watching (true/false)
|
|
193
|
-
|
|
194
|
-
Configuration File Format (JSON):
|
|
195
|
-
{
|
|
196
|
-
"server": {
|
|
197
|
-
"name": "eui-compodoc-mcp",
|
|
198
|
-
"version": "1.0.0"
|
|
199
|
-
},
|
|
200
|
-
"documentation": {
|
|
201
|
-
"path": "./documentation.json",
|
|
202
|
-
"watchForChanges": true,
|
|
203
|
-
"reloadDebounce": 1000
|
|
204
|
-
},
|
|
205
|
-
"search": {
|
|
206
|
-
"maxResults": 50,
|
|
207
|
-
"minQueryLength": 2
|
|
208
|
-
},
|
|
209
|
-
"logging": {
|
|
210
|
-
"level": "info",
|
|
211
|
-
"format": "text"
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
Examples:
|
|
216
|
-
eui-compodoc-mcp --doc-path ./documentation.json
|
|
217
|
-
eui-compodoc-mcp --doc-path ./docs/documentation.json --log-level debug
|
|
218
|
-
eui-compodoc-mcp --config ./config.json
|
|
219
|
-
COMPODOC_MCP_DOC_PATH=./documentation.json eui-compodoc-mcp
|
|
220
|
-
|
|
221
|
-
For more information, visit: https://github.com/your-org/eui-compodoc-mcp
|
|
222
|
-
`);
|
|
223
|
-
}
|
|
224
|
-
//# sourceMappingURL=loader.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"loader.js","source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
|
4
|
-
import { z } from 'zod';
|
|
5
|
-
/**
|
|
6
|
-
* Complete configuration schema
|
|
7
|
-
*/
|
|
8
|
-
export declare const ConfigSchema: z.ZodObject<{
|
|
9
|
-
server: z.ZodDefault<z.ZodObject<{
|
|
10
|
-
name: z.ZodDefault<z.ZodString>;
|
|
11
|
-
version: z.ZodDefault<z.ZodString>;
|
|
12
|
-
}, "strip", z.ZodTypeAny, {
|
|
13
|
-
version: string;
|
|
14
|
-
name: string;
|
|
15
|
-
}, {
|
|
16
|
-
version?: string | undefined;
|
|
17
|
-
name?: string | undefined;
|
|
18
|
-
}>>;
|
|
19
|
-
documentation: z.ZodObject<{
|
|
20
|
-
path: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
21
|
-
watchForChanges: z.ZodDefault<z.ZodBoolean>;
|
|
22
|
-
reloadDebounce: z.ZodDefault<z.ZodNumber>;
|
|
23
|
-
timeout: z.ZodDefault<z.ZodNumber>;
|
|
24
|
-
maxRetries: z.ZodDefault<z.ZodNumber>;
|
|
25
|
-
pollingInterval: z.ZodDefault<z.ZodNumber>;
|
|
26
|
-
}, "strip", z.ZodTypeAny, {
|
|
27
|
-
path: string;
|
|
28
|
-
watchForChanges: boolean;
|
|
29
|
-
reloadDebounce: number;
|
|
30
|
-
timeout: number;
|
|
31
|
-
maxRetries: number;
|
|
32
|
-
pollingInterval: number;
|
|
33
|
-
}, {
|
|
34
|
-
path: string;
|
|
35
|
-
watchForChanges?: boolean | undefined;
|
|
36
|
-
reloadDebounce?: number | undefined;
|
|
37
|
-
timeout?: number | undefined;
|
|
38
|
-
maxRetries?: number | undefined;
|
|
39
|
-
pollingInterval?: number | undefined;
|
|
40
|
-
}>;
|
|
41
|
-
search: z.ZodDefault<z.ZodObject<{
|
|
42
|
-
maxResults: z.ZodDefault<z.ZodNumber>;
|
|
43
|
-
minQueryLength: z.ZodDefault<z.ZodNumber>;
|
|
44
|
-
}, "strip", z.ZodTypeAny, {
|
|
45
|
-
maxResults: number;
|
|
46
|
-
minQueryLength: number;
|
|
47
|
-
}, {
|
|
48
|
-
maxResults?: number | undefined;
|
|
49
|
-
minQueryLength?: number | undefined;
|
|
50
|
-
}>>;
|
|
51
|
-
logging: z.ZodDefault<z.ZodObject<{
|
|
52
|
-
level: z.ZodDefault<z.ZodEnum<["debug", "info", "warn", "error"]>>;
|
|
53
|
-
format: z.ZodDefault<z.ZodEnum<["json", "text"]>>;
|
|
54
|
-
}, "strip", z.ZodTypeAny, {
|
|
55
|
-
level: "error" | "debug" | "info" | "warn";
|
|
56
|
-
format: "text" | "json";
|
|
57
|
-
}, {
|
|
58
|
-
level?: "error" | "debug" | "info" | "warn" | undefined;
|
|
59
|
-
format?: "text" | "json" | undefined;
|
|
60
|
-
}>>;
|
|
61
|
-
}, "strip", z.ZodTypeAny, {
|
|
62
|
-
logging: {
|
|
63
|
-
level: "error" | "debug" | "info" | "warn";
|
|
64
|
-
format: "text" | "json";
|
|
65
|
-
};
|
|
66
|
-
server: {
|
|
67
|
-
version: string;
|
|
68
|
-
name: string;
|
|
69
|
-
};
|
|
70
|
-
documentation: {
|
|
71
|
-
path: string;
|
|
72
|
-
watchForChanges: boolean;
|
|
73
|
-
reloadDebounce: number;
|
|
74
|
-
timeout: number;
|
|
75
|
-
maxRetries: number;
|
|
76
|
-
pollingInterval: number;
|
|
77
|
-
};
|
|
78
|
-
search: {
|
|
79
|
-
maxResults: number;
|
|
80
|
-
minQueryLength: number;
|
|
81
|
-
};
|
|
82
|
-
}, {
|
|
83
|
-
documentation: {
|
|
84
|
-
path: string;
|
|
85
|
-
watchForChanges?: boolean | undefined;
|
|
86
|
-
reloadDebounce?: number | undefined;
|
|
87
|
-
timeout?: number | undefined;
|
|
88
|
-
maxRetries?: number | undefined;
|
|
89
|
-
pollingInterval?: number | undefined;
|
|
90
|
-
};
|
|
91
|
-
logging?: {
|
|
92
|
-
level?: "error" | "debug" | "info" | "warn" | undefined;
|
|
93
|
-
format?: "text" | "json" | undefined;
|
|
94
|
-
} | undefined;
|
|
95
|
-
server?: {
|
|
96
|
-
version?: string | undefined;
|
|
97
|
-
name?: string | undefined;
|
|
98
|
-
} | undefined;
|
|
99
|
-
search?: {
|
|
100
|
-
maxResults?: number | undefined;
|
|
101
|
-
minQueryLength?: number | undefined;
|
|
102
|
-
} | undefined;
|
|
103
|
-
}>;
|
|
104
|
-
/**
|
|
105
|
-
* Inferred TypeScript type from schema
|
|
106
|
-
*/
|
|
107
|
-
export type Config = z.infer<typeof ConfigSchema>;
|
|
108
|
-
/**
|
|
109
|
-
* Partial configuration input (before defaults are applied)
|
|
110
|
-
*/
|
|
111
|
-
export type ConfigInput = z.input<typeof ConfigSchema>;
|
|
112
|
-
/**
|
|
113
|
-
* Default configuration values
|
|
114
|
-
*/
|
|
115
|
-
export declare const DEFAULT_CONFIG: Partial<Config>;
|
|
116
|
-
/**
|
|
117
|
-
* Validates and parses configuration input
|
|
118
|
-
* @param input - Raw configuration input
|
|
119
|
-
* @returns Validated configuration with defaults applied
|
|
120
|
-
* @throws ZodError if validation fails
|
|
121
|
-
*/
|
|
122
|
-
export declare function validateConfig(input: unknown): Config;
|
|
123
|
-
/**
|
|
124
|
-
* Safely validates configuration and returns result with error details
|
|
125
|
-
* @param input - Raw configuration input
|
|
126
|
-
* @returns Validation result with success flag and data or errors
|
|
127
|
-
*/
|
|
128
|
-
export declare function safeValidateConfig(input: unknown): z.SafeParseReturnType<{
|
|
129
|
-
documentation: {
|
|
130
|
-
path: string;
|
|
131
|
-
watchForChanges?: boolean | undefined;
|
|
132
|
-
reloadDebounce?: number | undefined;
|
|
133
|
-
timeout?: number | undefined;
|
|
134
|
-
maxRetries?: number | undefined;
|
|
135
|
-
pollingInterval?: number | undefined;
|
|
136
|
-
};
|
|
137
|
-
logging?: {
|
|
138
|
-
level?: "error" | "debug" | "info" | "warn" | undefined;
|
|
139
|
-
format?: "text" | "json" | undefined;
|
|
140
|
-
} | undefined;
|
|
141
|
-
server?: {
|
|
142
|
-
version?: string | undefined;
|
|
143
|
-
name?: string | undefined;
|
|
144
|
-
} | undefined;
|
|
145
|
-
search?: {
|
|
146
|
-
maxResults?: number | undefined;
|
|
147
|
-
minQueryLength?: number | undefined;
|
|
148
|
-
} | undefined;
|
|
149
|
-
}, {
|
|
150
|
-
logging: {
|
|
151
|
-
level: "error" | "debug" | "info" | "warn";
|
|
152
|
-
format: "text" | "json";
|
|
153
|
-
};
|
|
154
|
-
server: {
|
|
155
|
-
version: string;
|
|
156
|
-
name: string;
|
|
157
|
-
};
|
|
158
|
-
documentation: {
|
|
159
|
-
path: string;
|
|
160
|
-
watchForChanges: boolean;
|
|
161
|
-
reloadDebounce: number;
|
|
162
|
-
timeout: number;
|
|
163
|
-
maxRetries: number;
|
|
164
|
-
pollingInterval: number;
|
|
165
|
-
};
|
|
166
|
-
search: {
|
|
167
|
-
maxResults: number;
|
|
168
|
-
minQueryLength: number;
|
|
169
|
-
};
|
|
170
|
-
}>;
|
|
171
|
-
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/config/schema.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAwDxB;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKvB,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAElD;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAEvD;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,OAAO,CAAC,MAAM,CAqB1C,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAErD;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAEhD"}
|
package/dist/config/schema.js
DELETED
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Configuration schema and validation using Zod
|
|
3
|
-
*/
|
|
4
|
-
import { z } from 'zod';
|
|
5
|
-
import { PathTypeDetector } from '../loader/path-type-detector.js';
|
|
6
|
-
/**
|
|
7
|
-
* Server configuration schema
|
|
8
|
-
*/
|
|
9
|
-
const ServerConfigSchema = z.object({
|
|
10
|
-
name: z.string().default('eui-compodoc-mcp'),
|
|
11
|
-
version: z.string().default('1.0.0'),
|
|
12
|
-
});
|
|
13
|
-
/**
|
|
14
|
-
* Documentation configuration schema
|
|
15
|
-
*/
|
|
16
|
-
const DocumentationConfigSchema = z.object({
|
|
17
|
-
path: z.string()
|
|
18
|
-
.min(1, 'Documentation path cannot be empty')
|
|
19
|
-
.refine((path) => path.trim().length > 0, { message: 'Documentation path cannot be only whitespace' })
|
|
20
|
-
.refine((path) => {
|
|
21
|
-
const trimmedPath = path.trim();
|
|
22
|
-
// If it looks like a URL (starts with http:// or https://), validate as URL
|
|
23
|
-
if (trimmedPath.startsWith('http://') || trimmedPath.startsWith('https://')) {
|
|
24
|
-
return PathTypeDetector.isRemoteUrl(trimmedPath);
|
|
25
|
-
}
|
|
26
|
-
// Otherwise, accept as local path
|
|
27
|
-
return true;
|
|
28
|
-
}, { message: 'Path must be a valid local file path or HTTP/HTTPS URL' }),
|
|
29
|
-
watchForChanges: z.boolean().default(true),
|
|
30
|
-
reloadDebounce: z.number().min(0).default(1000),
|
|
31
|
-
timeout: z.number().min(1000).default(10000),
|
|
32
|
-
maxRetries: z.number().min(0).max(10).default(3),
|
|
33
|
-
pollingInterval: z.number().min(5000).default(60000),
|
|
34
|
-
});
|
|
35
|
-
/**
|
|
36
|
-
* Search configuration schema
|
|
37
|
-
*/
|
|
38
|
-
const SearchConfigSchema = z.object({
|
|
39
|
-
maxResults: z.number().min(1).max(1000).default(50),
|
|
40
|
-
minQueryLength: z.number().min(1).default(2),
|
|
41
|
-
});
|
|
42
|
-
/**
|
|
43
|
-
* Logging configuration schema
|
|
44
|
-
*/
|
|
45
|
-
const LoggingConfigSchema = z.object({
|
|
46
|
-
level: z.enum(['debug', 'info', 'warn', 'error']).default('info'),
|
|
47
|
-
format: z.enum(['json', 'text']).default('text'),
|
|
48
|
-
});
|
|
49
|
-
/**
|
|
50
|
-
* Complete configuration schema
|
|
51
|
-
*/
|
|
52
|
-
export const ConfigSchema = z.object({
|
|
53
|
-
server: ServerConfigSchema.default({}),
|
|
54
|
-
documentation: DocumentationConfigSchema,
|
|
55
|
-
search: SearchConfigSchema.default({}),
|
|
56
|
-
logging: LoggingConfigSchema.default({}),
|
|
57
|
-
});
|
|
58
|
-
/**
|
|
59
|
-
* Default configuration values
|
|
60
|
-
*/
|
|
61
|
-
export const DEFAULT_CONFIG = {
|
|
62
|
-
server: {
|
|
63
|
-
name: 'eui-compodoc-mcp',
|
|
64
|
-
version: '1.0.0',
|
|
65
|
-
},
|
|
66
|
-
documentation: {
|
|
67
|
-
path: './documentation.json',
|
|
68
|
-
watchForChanges: true,
|
|
69
|
-
reloadDebounce: 1000,
|
|
70
|
-
timeout: 10000,
|
|
71
|
-
maxRetries: 3,
|
|
72
|
-
pollingInterval: 60000,
|
|
73
|
-
},
|
|
74
|
-
search: {
|
|
75
|
-
maxResults: 50,
|
|
76
|
-
minQueryLength: 2,
|
|
77
|
-
},
|
|
78
|
-
logging: {
|
|
79
|
-
level: 'info',
|
|
80
|
-
format: 'text',
|
|
81
|
-
},
|
|
82
|
-
};
|
|
83
|
-
/**
|
|
84
|
-
* Validates and parses configuration input
|
|
85
|
-
* @param input - Raw configuration input
|
|
86
|
-
* @returns Validated configuration with defaults applied
|
|
87
|
-
* @throws ZodError if validation fails
|
|
88
|
-
*/
|
|
89
|
-
export function validateConfig(input) {
|
|
90
|
-
return ConfigSchema.parse(input);
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* Safely validates configuration and returns result with error details
|
|
94
|
-
* @param input - Raw configuration input
|
|
95
|
-
* @returns Validation result with success flag and data or errors
|
|
96
|
-
*/
|
|
97
|
-
export function safeValidateConfig(input) {
|
|
98
|
-
return ConfigSchema.safeParse(input);
|
|
99
|
-
}
|
|
100
|
-
//# sourceMappingURL=schema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/config/schema.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEnE;;GAEG;AACH,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,kBAAkB,CAAC;IAC5C,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC;CACrC,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;SACb,GAAG,CAAC,CAAC,EAAE,oCAAoC,CAAC;SAC5C,MAAM,CACL,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,EAChC,EAAE,OAAO,EAAE,8CAA8C,EAAE,CAC5D;SACA,MAAM,CACL,CAAC,IAAI,EAAE,EAAE;QACP,MAAM,WAAW,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;QAChC,4EAA4E;QAC5E,IAAI,WAAW,CAAC,UAAU,CAAC,SAAS,C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","sources":["../src/index.ts"],"names":[],"mappings":""}
|
package/dist/index.js
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import { Server } from "@modelcontextprotocol/sdk/server/index.js";
|
|
3
|
-
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
4
|
-
import { CallToolRequestSchema, ListToolsRequestSchema, } from "@modelcontextprotocol/sdk/types.js";
|
|
5
|
-
const server = new Server({
|
|
6
|
-
name: "simple-mcp-server",
|
|
7
|
-
version: "1.0.0",
|
|
8
|
-
}, {
|
|
9
|
-
capabilities: {
|
|
10
|
-
tools: {},
|
|
11
|
-
},
|
|
12
|
-
});
|
|
13
|
-
server.setRequestHandler(ListToolsRequestSchema, () => ({
|
|
14
|
-
tools: [
|
|
15
|
-
{
|
|
16
|
-
name: "echo",
|
|
17
|
-
description: "Echoes back the provided message",
|
|
18
|
-
inputSchema: {
|
|
19
|
-
type: "object",
|
|
20
|
-
properties: {
|
|
21
|
-
message: {
|
|
22
|
-
type: "string",
|
|
23
|
-
description: "Message to echo",
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
required: ["message"],
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
],
|
|
30
|
-
}));
|
|
31
|
-
server.setRequestHandler(CallToolRequestSchema, (request) => {
|
|
32
|
-
if (request.params.name === "echo") {
|
|
33
|
-
const message = request.params.arguments?.message;
|
|
34
|
-
return {
|
|
35
|
-
content: [{ type: "text", text: `Echo: ${message}` }],
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
throw new Error(`Unknown tool: ${request.params.name}`);
|
|
39
|
-
});
|
|
40
|
-
async function main() {
|
|
41
|
-
const transport = new StdioServerTransport();
|
|
42
|
-
await server.connect(transport);
|
|
43
|
-
}
|
|
44
|
-
main().catch(console.error);
|
|
45
|
-
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|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,IAAI;IACjB,MAAM,SAAS,GAAG,IAAI,oBAAoB,EAAE,CAAC;IAC7C,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;AAClC,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cache-manager.property.test.d.ts","sourceRoot":"","sources":["../../../src/loader/__tests__/cache-manager.property.test.ts"],"names":[],"mappings":""}
|