@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
|
@@ -1,375 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* get-eui-cli-instructions tool handler
|
|
3
|
-
* Returns complete EUI CLI instructions and options
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* GetEuiCliInstructionsTool class
|
|
7
|
-
* Returns complete instructions for EUI CLI usage
|
|
8
|
-
*/
|
|
9
|
-
export class GetEuiCliInstructionsTool {
|
|
10
|
-
/**
|
|
11
|
-
* Execute the get-eui-cli-instructions tool
|
|
12
|
-
*/
|
|
13
|
-
execute(_params = {}) {
|
|
14
|
-
return Promise.resolve({
|
|
15
|
-
content: INSTRUCTIONS_CONTENT,
|
|
16
|
-
format: 'markdown',
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Get the tool definition for MCP registration
|
|
21
|
-
*/
|
|
22
|
-
static getToolDefinition() {
|
|
23
|
-
return {
|
|
24
|
-
name: 'get-eui-cli-instructions',
|
|
25
|
-
description: 'Returns complete EUI CLI instructions including all commands, options, headless mode configuration, ' +
|
|
26
|
-
'CI/CD usage, and best practices for automated scaffolding and building.',
|
|
27
|
-
inputSchema: {
|
|
28
|
-
type: 'object',
|
|
29
|
-
properties: {},
|
|
30
|
-
},
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
const INSTRUCTIONS_CONTENT = `# eUI CLI - Complete Options Report
|
|
35
|
-
|
|
36
|
-
## Overview
|
|
37
|
-
|
|
38
|
-
The @eui/cli is a command-line tool for scaffolding and managing eUI Angular applications. It supports both interactive and headless (automated) modes for CI/CD pipelines and scripting.
|
|
39
|
-
|
|
40
|
-
## Installation
|
|
41
|
-
|
|
42
|
-
\`\`\`bash
|
|
43
|
-
npm install -g @eui/cli@latest
|
|
44
|
-
\`\`\`
|
|
45
|
-
|
|
46
|
-
## Available Commands
|
|
47
|
-
|
|
48
|
-
### 1. new (default command)
|
|
49
|
-
|
|
50
|
-
Generates a new eUI application with interactive prompts or automated configuration.
|
|
51
|
-
|
|
52
|
-
**Usage:**
|
|
53
|
-
|
|
54
|
-
\`\`\`bash
|
|
55
|
-
eui-cli new [options]
|
|
56
|
-
eui-cli [options] # 'new' is default
|
|
57
|
-
\`\`\`
|
|
58
|
-
|
|
59
|
-
**Interactive Options:**
|
|
60
|
-
|
|
61
|
-
**Application Type:**
|
|
62
|
-
- \`angular\` - eUI Angular Desktop
|
|
63
|
-
- \`mobile\` - eUI Angular Mobile (Ionic)
|
|
64
|
-
- \`web-spring-boot\` - eUI Angular + Spring Boot (requires JDK + Maven)
|
|
65
|
-
- \`web-maven\` - eUI Angular + Maven web module (requires JDK + Maven)
|
|
66
|
-
|
|
67
|
-
**Additional Configuration:**
|
|
68
|
-
- \`ecl\` - ECL app-shell template for ec.europa.eu apps
|
|
69
|
-
- ECL Theme: \`ecl-ec\` or \`ecl-eu\`
|
|
70
|
-
|
|
71
|
-
**Package Manager:**
|
|
72
|
-
- \`yarn\` (default)
|
|
73
|
-
- \`pnpm\` (experimental)
|
|
74
|
-
|
|
75
|
-
**Maven Options (for web-spring-boot):**
|
|
76
|
-
- \`groupId\` - Default: ec.europa.digit
|
|
77
|
-
- \`artifactId\` - Default: myapp
|
|
78
|
-
|
|
79
|
-
### 2. build-app
|
|
80
|
-
|
|
81
|
-
Builds the Angular application with linting, testing, and compilation.
|
|
82
|
-
|
|
83
|
-
**Usage:**
|
|
84
|
-
|
|
85
|
-
\`\`\`bash
|
|
86
|
-
eui-cli build-app [options]
|
|
87
|
-
\`\`\`
|
|
88
|
-
|
|
89
|
-
**Options:**
|
|
90
|
-
|
|
91
|
-
| Option | Type | Description |
|
|
92
|
-
|--------|------|-------------|
|
|
93
|
-
| \`--skipLint\` | boolean | Skip linting phase |
|
|
94
|
-
| \`--skipTest\` | boolean | Skip unit testing phase |
|
|
95
|
-
| \`--skipCompile\` | boolean | Skip compilation phase |
|
|
96
|
-
| \`--configuration\` | string | Build configuration (e.g., production, development) |
|
|
97
|
-
| \`--baseHref\` | string | Base URL for the application |
|
|
98
|
-
| \`--servePath\` | string | Path where files are served |
|
|
99
|
-
| \`--deployUrl\` | string | URL where files will be deployed |
|
|
100
|
-
| \`--watch\` | boolean | Enable watch mode for tests |
|
|
101
|
-
| \`--dryRun\` | boolean | Run without executing build |
|
|
102
|
-
| \`--maxSpaceSize\` | boolean | Increase Node memory (8096MB) |
|
|
103
|
-
| \`--statsJson\` | boolean | Generate stats.json for bundle analysis |
|
|
104
|
-
| \`--ci\` | boolean | CI mode (disables progress output) |
|
|
105
|
-
| \`--sourceMap\` | boolean | Generate source maps |
|
|
106
|
-
| \`--configEnvTarget\` | string | Inject environment-specific config |
|
|
107
|
-
| \`--project\` | string | Project name (default: 'app') |
|
|
108
|
-
|
|
109
|
-
**Example:**
|
|
110
|
-
|
|
111
|
-
\`\`\`bash
|
|
112
|
-
eui-cli build-app --configuration=production --baseHref=/myapp/ --skipTest
|
|
113
|
-
\`\`\`
|
|
114
|
-
|
|
115
|
-
### 3. serve-app
|
|
116
|
-
|
|
117
|
-
Serves the Angular application locally with development server.
|
|
118
|
-
|
|
119
|
-
**Usage:**
|
|
120
|
-
|
|
121
|
-
\`\`\`bash
|
|
122
|
-
eui-cli serve-app [options]
|
|
123
|
-
\`\`\`
|
|
124
|
-
|
|
125
|
-
**Options:**
|
|
126
|
-
|
|
127
|
-
| Option | Type | Description |
|
|
128
|
-
|--------|------|-------------|
|
|
129
|
-
| \`--configuration\` | string | Serve configuration |
|
|
130
|
-
| \`--baseHref\` | string | Base URL for the application |
|
|
131
|
-
| \`--servePath\` | string | Path where files are served |
|
|
132
|
-
| \`--host\` | string | Host to listen on (default: localhost) |
|
|
133
|
-
| \`--port\` | number | Port to listen on (default: 4200) |
|
|
134
|
-
| \`--proxyConfig\` | string | Proxy configuration file |
|
|
135
|
-
| \`--disableHostCheck\` | boolean | Disable host check |
|
|
136
|
-
| \`--open\` | string | Open browser (default: true, use 'false' to disable) |
|
|
137
|
-
| \`--maxSpaceSize\` | boolean | Increase Node memory (8192MB) |
|
|
138
|
-
| \`--noLiveReload\` | boolean | Disable live reload |
|
|
139
|
-
| \`--configEnvTarget\` | string | Inject environment-specific config |
|
|
140
|
-
| \`--project\` | string | Project name (default: 'app') |
|
|
141
|
-
| \`--debug\` | boolean | Enable debug logging |
|
|
142
|
-
|
|
143
|
-
**Example:**
|
|
144
|
-
|
|
145
|
-
\`\`\`bash
|
|
146
|
-
eui-cli serve-app --port=4300 --host=0.0.0.0 --proxyConfig=proxy.conf.json
|
|
147
|
-
\`\`\`
|
|
148
|
-
|
|
149
|
-
### 4. lint-app
|
|
150
|
-
|
|
151
|
-
Runs linting on the application.
|
|
152
|
-
|
|
153
|
-
**Usage:**
|
|
154
|
-
|
|
155
|
-
\`\`\`bash
|
|
156
|
-
eui-cli lint-app
|
|
157
|
-
\`\`\`
|
|
158
|
-
|
|
159
|
-
### 5. inject-config-app
|
|
160
|
-
|
|
161
|
-
Injects environment-specific configuration into the application.
|
|
162
|
-
|
|
163
|
-
**Usage:**
|
|
164
|
-
|
|
165
|
-
\`\`\`bash
|
|
166
|
-
eui-cli inject-config-app --configEnvTarget=<env>
|
|
167
|
-
\`\`\`
|
|
168
|
-
|
|
169
|
-
**Options:**
|
|
170
|
-
|
|
171
|
-
| Option | Type | Description |
|
|
172
|
-
|--------|------|-------------|
|
|
173
|
-
| \`--configEnvTarget\` | string | Target environment (dev, tst, acc, prd) |
|
|
174
|
-
|
|
175
|
-
**How it works:**
|
|
176
|
-
- Copies \`src/assets/config/env-json-config-<env>.json\` to \`src/assets/env-json-config.json\`
|
|
177
|
-
- Used for environment-specific OpenID/configuration injection
|
|
178
|
-
|
|
179
|
-
**Example:**
|
|
180
|
-
|
|
181
|
-
\`\`\`bash
|
|
182
|
-
eui-cli inject-config-app --configEnvTarget=production
|
|
183
|
-
\`\`\`
|
|
184
|
-
|
|
185
|
-
### 6. generate-sprite
|
|
186
|
-
|
|
187
|
-
Generates SVG sprite from individual SVG files.
|
|
188
|
-
|
|
189
|
-
**Usage:**
|
|
190
|
-
|
|
191
|
-
\`\`\`bash
|
|
192
|
-
eui-cli generate-sprite --inFolder=<path> --outFile=<filename.svg>
|
|
193
|
-
\`\`\`
|
|
194
|
-
|
|
195
|
-
**Options:**
|
|
196
|
-
|
|
197
|
-
| Option | Type | Description |
|
|
198
|
-
|--------|------|-------------|
|
|
199
|
-
| \`--inFolder\` | string | Input folder containing SVG files (required) |
|
|
200
|
-
| \`--outFile\` | string | Output sprite filename (required, must end with .svg) |
|
|
201
|
-
|
|
202
|
-
**Features:**
|
|
203
|
-
- Optimizes SVG files using imagemin-svgo
|
|
204
|
-
- Generates sprite file and JSON list of icons
|
|
205
|
-
- Cleans up IDs, removes styles and titles
|
|
206
|
-
|
|
207
|
-
**Example:**
|
|
208
|
-
|
|
209
|
-
\`\`\`bash
|
|
210
|
-
eui-cli generate-sprite --inFolder=src/assets/icons --outFile=sprite.svg
|
|
211
|
-
\`\`\`
|
|
212
|
-
|
|
213
|
-
## Headless Mode (Automated/CI Usage)
|
|
214
|
-
|
|
215
|
-
### Using --config Parameter
|
|
216
|
-
|
|
217
|
-
The CLI supports headless operation via the \`--config\` parameter for automated scaffolding without interactive prompts.
|
|
218
|
-
|
|
219
|
-
**Syntax:**
|
|
220
|
-
|
|
221
|
-
\`\`\`bash
|
|
222
|
-
eui-cli --config <key1>:<value1>,<key2>:<value2> --targetPath <path>
|
|
223
|
-
\`\`\`
|
|
224
|
-
|
|
225
|
-
### Configuration Options
|
|
226
|
-
|
|
227
|
-
| Key | Type | Values | Description |
|
|
228
|
-
|-----|------|--------|-------------|
|
|
229
|
-
| \`appType\` | string | angular, mobile, web-maven, web-spring-boot | Application type |
|
|
230
|
-
| \`appName\` | string | any | Application name (default: 'my-app') |
|
|
231
|
-
| \`appScope\` | string | any | NPM scope (default: '@app') |
|
|
232
|
-
| \`appOptions\` | array | ecl | Additional options (use underscore for multiple: ecl_option2) |
|
|
233
|
-
| \`appOptionsEclTheme\` | string | ecl-ec, ecl-eu | ECL theme flavor |
|
|
234
|
-
| \`groupId\` | string | any | Maven groupId (default: 'ec.europa.digit') |
|
|
235
|
-
| \`artifactId\` | string | any | Maven artifactId (default: 'myapp') |
|
|
236
|
-
| \`packageManager\` | string | yarn, pnpm | Package manager |
|
|
237
|
-
| \`npmInstall\` | boolean | true, false | Install dependencies |
|
|
238
|
-
| \`appStart\` | boolean | true, false | Start app after generation |
|
|
239
|
-
|
|
240
|
-
### Headless Examples
|
|
241
|
-
|
|
242
|
-
**1. Basic Angular App (no installation):**
|
|
243
|
-
|
|
244
|
-
\`\`\`bash
|
|
245
|
-
eui-cli --config appType:angular,npmInstall:false --targetPath my-angular-app
|
|
246
|
-
\`\`\`
|
|
247
|
-
|
|
248
|
-
**2. Angular App with ECL EC Theme:**
|
|
249
|
-
|
|
250
|
-
\`\`\`bash
|
|
251
|
-
eui-cli --config appType:angular,appOptions:ecl,appOptionsEclTheme:ecl-ec,npmInstall:true,packageManager:yarn --targetPath my-ecl-app
|
|
252
|
-
\`\`\`
|
|
253
|
-
|
|
254
|
-
**3. Mobile Ionic App:**
|
|
255
|
-
|
|
256
|
-
\`\`\`bash
|
|
257
|
-
eui-cli --config appType:mobile,npmInstall:true --targetPath my-mobile-app
|
|
258
|
-
\`\`\`
|
|
259
|
-
|
|
260
|
-
**4. Spring Boot Web App:**
|
|
261
|
-
|
|
262
|
-
\`\`\`bash
|
|
263
|
-
eui-cli --config appType:web-spring-boot,groupId:com.mycompany,artifactId:myproject,npmInstall:false --targetPath my-spring-app
|
|
264
|
-
\`\`\`
|
|
265
|
-
|
|
266
|
-
**5. CI/CD Pipeline Example:**
|
|
267
|
-
|
|
268
|
-
\`\`\`bash
|
|
269
|
-
# Generate app without installation
|
|
270
|
-
eui-cli --config appType:angular,appOptions:ecl,npmInstall:false --targetPath ./build/app
|
|
271
|
-
|
|
272
|
-
# Build for production
|
|
273
|
-
cd ./build/app
|
|
274
|
-
eui-cli build-app --configuration=production --ci --skipTest --baseHref=/app/
|
|
275
|
-
\`\`\`
|
|
276
|
-
|
|
277
|
-
## Environment Variables
|
|
278
|
-
|
|
279
|
-
### _CSDR_ARGS
|
|
280
|
-
|
|
281
|
-
Alternative method for passing arguments (used in CSDR pipelines).
|
|
282
|
-
|
|
283
|
-
**Format:**
|
|
284
|
-
|
|
285
|
-
\`\`\`bash
|
|
286
|
-
export _CSDR_ARGS="key1:value1,key2:value2"
|
|
287
|
-
eui-cli
|
|
288
|
-
\`\`\`
|
|
289
|
-
|
|
290
|
-
**Array Format:**
|
|
291
|
-
|
|
292
|
-
\`\`\`bash
|
|
293
|
-
export _CSDR_ARGS="itemsArray:key1=value1|key2=value2"
|
|
294
|
-
\`\`\`
|
|
295
|
-
|
|
296
|
-
## Advanced Usage
|
|
297
|
-
|
|
298
|
-
### Version Check
|
|
299
|
-
|
|
300
|
-
\`\`\`bash
|
|
301
|
-
eui-cli -v
|
|
302
|
-
eui-cli --version
|
|
303
|
-
\`\`\`
|
|
304
|
-
|
|
305
|
-
### Debug Mode
|
|
306
|
-
|
|
307
|
-
Enable verbose logging for troubleshooting:
|
|
308
|
-
|
|
309
|
-
\`\`\`bash
|
|
310
|
-
eui-cli serve-app --debug
|
|
311
|
-
eui-cli build-app --debug
|
|
312
|
-
\`\`\`
|
|
313
|
-
|
|
314
|
-
### CI/CD Build Pipeline
|
|
315
|
-
|
|
316
|
-
\`\`\`bash
|
|
317
|
-
# 1. Inject environment config
|
|
318
|
-
eui-cli inject-config-app --configEnvTarget=production
|
|
319
|
-
|
|
320
|
-
# 2. Build with optimizations
|
|
321
|
-
eui-cli build-app \\
|
|
322
|
-
--configuration=production \\
|
|
323
|
-
--baseHref=/myapp/ \\
|
|
324
|
-
--deployUrl=https://cdn.example.com/ \\
|
|
325
|
-
--ci \\
|
|
326
|
-
--statsJson \\
|
|
327
|
-
--skipTest
|
|
328
|
-
|
|
329
|
-
# 3. Output in dist/ folder
|
|
330
|
-
\`\`\`
|
|
331
|
-
|
|
332
|
-
### Memory-Intensive Builds
|
|
333
|
-
|
|
334
|
-
\`\`\`bash
|
|
335
|
-
eui-cli build-app --maxSpaceSize --configuration=production
|
|
336
|
-
eui-cli serve-app --maxSpaceSize
|
|
337
|
-
\`\`\`
|
|
338
|
-
|
|
339
|
-
## Default Configuration Values
|
|
340
|
-
|
|
341
|
-
\`\`\`javascript
|
|
342
|
-
{
|
|
343
|
-
appName: 'my-app',
|
|
344
|
-
appScope: '@app',
|
|
345
|
-
appType: 'angular',
|
|
346
|
-
appOptions: [],
|
|
347
|
-
appOptionsEclTheme: 'ecl-ec',
|
|
348
|
-
appFeatures: [],
|
|
349
|
-
groupId: 'ec.europa.digit',
|
|
350
|
-
artifactId: 'myapp',
|
|
351
|
-
packageManager: 'yarn',
|
|
352
|
-
npmInstall: true,
|
|
353
|
-
appStart: true
|
|
354
|
-
}
|
|
355
|
-
\`\`\`
|
|
356
|
-
|
|
357
|
-
## Exit Codes
|
|
358
|
-
|
|
359
|
-
- \`0\` - Success
|
|
360
|
-
- \`1\` - Error (build failure, missing arguments, etc.)
|
|
361
|
-
|
|
362
|
-
## Best Practices
|
|
363
|
-
|
|
364
|
-
1. **Headless Generation**: Always use \`--config\` with \`npmInstall:false\` in CI, then install separately
|
|
365
|
-
2. **Build Optimization**: Use \`--ci\` flag in pipelines to disable progress output
|
|
366
|
-
3. **Memory Management**: Use \`--maxSpaceSize\` for large applications
|
|
367
|
-
4. **Environment Config**: Use \`inject-config-app\` before builds for environment-specific settings
|
|
368
|
-
5. **Testing**: Skip tests in CI with \`--skipTest\` if running separately
|
|
369
|
-
|
|
370
|
-
## Supported Node Versions
|
|
371
|
-
|
|
372
|
-
- **Node.js**: >=24.0.0
|
|
373
|
-
- **Yarn**: >=1.22.4 <2
|
|
374
|
-
`;
|
|
375
|
-
//# sourceMappingURL=get-eui-cli-instructions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-eui-cli-instructions.js","sourceRoot":"","sources":["../../src/tools/get-eui-cli-instructions.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAWH;;;GAGG;AACH,MAAM,OAAO,yBAAyB;IACpC;;OAEG;IACH,OAAO,CAAC,UAAuC,EAAE;QAC/C,OAAO,OAAO,CAAC,OAAO,CAAC;YACrB,OAAO,EAAE,oBAAoB;YAC7B,MAAM,EAAE,UAAU;SACnB,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,iBAAiB;QACtB,OAAO;YACL,IAAI,EAAE,0BAA0B;YAChC,WAAW,EACT,sGAAsG;gBACtG,yEAAyE;YAC3E,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE,EAAE;aACf;SACF,CAAC;IACJ,CAAC;CACF;AAED,MAAM,oBAAoB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoV5B,CAAC"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* get-library-version tool handler
|
|
3
|
-
* Queries npm registry for @eui/components version information
|
|
4
|
-
*/
|
|
5
|
-
export interface GetLibraryVersionParams {
|
|
6
|
-
}
|
|
7
|
-
export interface GetLibraryVersionResult {
|
|
8
|
-
packageName: string;
|
|
9
|
-
version: string;
|
|
10
|
-
publishDate: string;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* GetLibraryVersionTool class
|
|
14
|
-
* Queries npm registry for package version information
|
|
15
|
-
*/
|
|
16
|
-
export declare class GetLibraryVersionTool {
|
|
17
|
-
/**
|
|
18
|
-
* Execute the get-library-version tool
|
|
19
|
-
*/
|
|
20
|
-
execute(_params?: GetLibraryVersionParams): Promise<GetLibraryVersionResult>;
|
|
21
|
-
/**
|
|
22
|
-
* Get the tool definition for MCP registration
|
|
23
|
-
*/
|
|
24
|
-
static getToolDefinition(): {
|
|
25
|
-
name: string;
|
|
26
|
-
description: string;
|
|
27
|
-
inputSchema: {
|
|
28
|
-
type: string;
|
|
29
|
-
properties: {};
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
//# sourceMappingURL=get-library-version.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-library-version.d.ts","sourceRoot":"","sources":["../../src/tools/get-library-version.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,uBAAuB;CAEvC;AAED,MAAM,WAAW,uBAAuB;IACtC,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;CACrB;AAeD;;;GAGG;AACH,qBAAa,qBAAqB;IAChC;;OAEG;IACG,OAAO,CAAC,OAAO,GAAE,uBAA4B,GAAG,OAAO,CAAC,uBAAuB,CAAC;IAyCtF;;OAEG;IACH,MAAM,CAAC,iBAAiB;;;;;;;;CAYzB"}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* get-library-version tool handler
|
|
3
|
-
* Queries npm registry for @eui/components version information
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* GetLibraryVersionTool class
|
|
7
|
-
* Queries npm registry for package version information
|
|
8
|
-
*/
|
|
9
|
-
export class GetLibraryVersionTool {
|
|
10
|
-
/**
|
|
11
|
-
* Execute the get-library-version tool
|
|
12
|
-
*/
|
|
13
|
-
async execute(_params = {}) {
|
|
14
|
-
try {
|
|
15
|
-
const response = await fetch('https://registry.npmjs.org/@eui/components');
|
|
16
|
-
if (!response.ok) {
|
|
17
|
-
if (response.status === 404) {
|
|
18
|
-
throw new Error('Package "@eui/components" not found in npm registry');
|
|
19
|
-
}
|
|
20
|
-
throw new Error(`npm registry returned status ${response.status}`);
|
|
21
|
-
}
|
|
22
|
-
const data = (await response.json());
|
|
23
|
-
if (!data['dist-tags'] || !data['dist-tags'].latest) {
|
|
24
|
-
throw new Error('Invalid response: missing dist-tags.latest');
|
|
25
|
-
}
|
|
26
|
-
if (!data.time) {
|
|
27
|
-
throw new Error('Invalid response: missing time field');
|
|
28
|
-
}
|
|
29
|
-
const version = data['dist-tags'].latest;
|
|
30
|
-
const publishDate = data.time[version];
|
|
31
|
-
if (!publishDate) {
|
|
32
|
-
throw new Error(`Invalid response: no publish date for version ${version}`);
|
|
33
|
-
}
|
|
34
|
-
return {
|
|
35
|
-
packageName: '@eui/components',
|
|
36
|
-
version,
|
|
37
|
-
publishDate,
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
catch (error) {
|
|
41
|
-
if (error instanceof Error) {
|
|
42
|
-
throw error;
|
|
43
|
-
}
|
|
44
|
-
throw new Error(`Unexpected error querying npm registry: ${String(error)}`);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Get the tool definition for MCP registration
|
|
49
|
-
*/
|
|
50
|
-
static getToolDefinition() {
|
|
51
|
-
return {
|
|
52
|
-
name: 'get-library-version',
|
|
53
|
-
description: 'Queries the npm registry to retrieve the latest version information for the @eui/components package, ' +
|
|
54
|
-
'including the version number and publish date.',
|
|
55
|
-
inputSchema: {
|
|
56
|
-
type: 'object',
|
|
57
|
-
properties: {},
|
|
58
|
-
},
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
//# sourceMappingURL=get-library-version.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-library-version.js","sourceRoot":"","sources":["../../src/tools/get-library-version.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAyBH;;;GAGG;AACH,MAAM,OAAO,qBAAqB;IAChC;;OAEG;IACH,KAAK,CAAC,OAAO,CAAC,UAAmC,EAAE;QACjD,IAAI,CAAC;YACH,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,4CAA4C,CAAC,CAAC;YAE3E,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;gBACjB,IAAI,QAAQ,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;oBAC5B,MAAM,IAAI,KAAK,CAAC,qDAAqD,CAAC,CAAC;gBACzE,CAAC;gBACD,MAAM,IAAI,KAAK,CAAC,gCAAgC,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC;YACrE,CAAC;YAED,MAAM,IAAI,GAAG,CAAC,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAwB,CAAC;YAE5D,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,MAAM,EAAE,CAAC;gBACpD,MAAM,IAAI,KAAK,CAAC,4CAA4C,CAAC,CAAC;YAChE,CAAC;YAED,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;gBACf,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;YAC1D,CAAC;YAED,MAAM,OAAO,GAAG,IAAI,CAAC,WAAW,CAAC,CAAC,MAAM,CAAC;YACzC,MAAM,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YAEvC,IAAI,CAAC,WAAW,EAAE,CAAC;gBACjB,MAAM,IAAI,KAAK,CAAC,iDAAiD,OAAO,EAAE,CAAC,CAAC;YAC9E,CAAC;YAED,OAAO;gBACL,WAAW,EAAE,iBAAiB;gBAC9B,OAAO;gBACP,WAAW;aACZ,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,KAAK,YAAY,KAAK,EAAE,CAAC;gBAC3B,MAAM,KAAK,CAAC;YACd,CAAC;YACD,MAAM,IAAI,KAAK,CAAC,2CAA2C,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QAC9E,CAAC;IACH,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,iBAAiB;QACtB,OAAO;YACL,IAAI,EAAE,qBAAqB;YAC3B,WAAW,EACT,uGAAuG;gBACvG,gDAAgD;YAClD,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE,EAAE;aACf;SACF,CAAC;IACJ,CAAC;CACF"}
|
package/dist/tools/index.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export { ListComponentsTool, ListComponentsParams, ListComponentsResult, } from './list-components.js';
|
|
2
|
-
export { GetComponentDocsTool, GetComponentDocsParams, GetComponentDocsResult, } from './get-component-docs.js';
|
|
3
|
-
export { SearchComponentsTool, SearchComponentsParams, SearchComponentsResult, } from './search-components.js';
|
|
4
|
-
export { GetComponentInputsTool, GetComponentInputsParams, GetComponentInputsResult, } from './get-component-inputs.js';
|
|
5
|
-
export { GetComponentOutputsTool, GetComponentOutputsParams, GetComponentOutputsResult, } from './get-component-outputs.js';
|
|
6
|
-
export { GetComponentExamplesTool, GetComponentExamplesParams, GetComponentExamplesResult, } from './get-component-examples.js';
|
|
7
|
-
export { GetLibraryVersionTool, GetLibraryVersionParams, GetLibraryVersionResult, } from './get-library-version.js';
|
|
8
|
-
export { ListDeprecatedTool } from './list-deprecated.js';
|
|
9
|
-
export { GetDeprecationInfoTool } from './get-deprecation-info.js';
|
|
10
|
-
export { GetEuiCliGuideTool, GetEuiCliGuideParams, GetEuiCliGuideResult, } from './get-eui-cli-guide.js';
|
|
11
|
-
export { GetEuiCliInstructionsTool, GetEuiCliInstructionsParams, GetEuiCliInstructionsResult, } from './get-eui-cli-instructions.js';
|
|
12
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACL,oBAAoB,EACpB,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EACL,oBAAoB,EACpB,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACL,sBAAsB,EACtB,wBAAwB,EACxB,wBAAwB,GACzB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EACL,uBAAuB,EACvB,yBAAyB,EACzB,yBAAyB,GAC1B,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EACL,wBAAwB,EACxB,0BAA0B,EAC1B,0BAA0B,GAC3B,MAAM,6BAA6B,CAAC;AAErC,OAAO,EACL,qBAAqB,EACrB,uBAAuB,EACvB,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAEnE,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACL,yBAAyB,EACzB,2BAA2B,EAC3B,2BAA2B,GAC5B,MAAM,+BAA+B,CAAC"}
|
package/dist/tools/index.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// Tool handlers exports
|
|
2
|
-
export { ListComponentsTool, } from './list-components.js';
|
|
3
|
-
export { GetComponentDocsTool, } from './get-component-docs.js';
|
|
4
|
-
export { SearchComponentsTool, } from './search-components.js';
|
|
5
|
-
export { GetComponentInputsTool, } from './get-component-inputs.js';
|
|
6
|
-
export { GetComponentOutputsTool, } from './get-component-outputs.js';
|
|
7
|
-
export { GetComponentExamplesTool, } from './get-component-examples.js';
|
|
8
|
-
export { GetLibraryVersionTool, } from './get-library-version.js';
|
|
9
|
-
export { ListDeprecatedTool } from './list-deprecated.js';
|
|
10
|
-
export { GetDeprecationInfoTool } from './get-deprecation-info.js';
|
|
11
|
-
export { GetEuiCliGuideTool, } from './get-eui-cli-guide.js';
|
|
12
|
-
export { GetEuiCliInstructionsTool, } from './get-eui-cli-instructions.js';
|
|
13
|
-
//# sourceMappingURL=index.js.map
|
package/dist/tools/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA,wBAAwB;AACxB,OAAO,EACL,kBAAkB,GAGnB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACL,oBAAoB,GAGrB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EACL,oBAAoB,GAGrB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACL,sBAAsB,GAGvB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EACL,uBAAuB,GAGxB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EACL,wBAAwB,GAGzB,MAAM,6BAA6B,CAAC;AAErC,OAAO,EACL,qBAAqB,GAGtB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAEnE,OAAO,EACL,kBAAkB,GAGnB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACL,yBAAyB,GAG1B,MAAM,+BAA+B,CAAC"}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* list-components tool handler
|
|
3
|
-
* Lists all available components with basic information
|
|
4
|
-
*/
|
|
5
|
-
import { ComponentQuery } from '../query/component-query.js';
|
|
6
|
-
import { ResultFormatter, ComponentSummary } from '../query/result-formatter.js';
|
|
7
|
-
export interface ListComponentsParams {
|
|
8
|
-
includeDeprecated?: boolean;
|
|
9
|
-
type?: 'component' | 'directive' | 'pipe' | 'service' | 'all';
|
|
10
|
-
limit?: number;
|
|
11
|
-
offset?: number;
|
|
12
|
-
}
|
|
13
|
-
export interface ListComponentsResult {
|
|
14
|
-
items: ComponentSummary[];
|
|
15
|
-
total: number;
|
|
16
|
-
hasMore: boolean;
|
|
17
|
-
offset: number;
|
|
18
|
-
limit: number;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* ListComponentsTool class
|
|
22
|
-
* Handles listing components with filtering and pagination
|
|
23
|
-
*/
|
|
24
|
-
export declare class ListComponentsTool {
|
|
25
|
-
private query;
|
|
26
|
-
private formatter;
|
|
27
|
-
constructor(query: ComponentQuery, formatter: ResultFormatter);
|
|
28
|
-
/**
|
|
29
|
-
* Execute the list-components tool
|
|
30
|
-
*/
|
|
31
|
-
execute(params?: ListComponentsParams): ListComponentsResult;
|
|
32
|
-
/**
|
|
33
|
-
* Get the tool definition for MCP registration
|
|
34
|
-
*/
|
|
35
|
-
static getToolDefinition(): {
|
|
36
|
-
name: string;
|
|
37
|
-
description: string;
|
|
38
|
-
inputSchema: {
|
|
39
|
-
type: string;
|
|
40
|
-
properties: {
|
|
41
|
-
includeDeprecated: {
|
|
42
|
-
type: string;
|
|
43
|
-
description: string;
|
|
44
|
-
default: boolean;
|
|
45
|
-
};
|
|
46
|
-
type: {
|
|
47
|
-
type: string;
|
|
48
|
-
enum: string[];
|
|
49
|
-
description: string;
|
|
50
|
-
default: string;
|
|
51
|
-
};
|
|
52
|
-
limit: {
|
|
53
|
-
type: string;
|
|
54
|
-
description: string;
|
|
55
|
-
default: number;
|
|
56
|
-
minimum: number;
|
|
57
|
-
maximum: number;
|
|
58
|
-
};
|
|
59
|
-
offset: {
|
|
60
|
-
type: string;
|
|
61
|
-
description: string;
|
|
62
|
-
default: number;
|
|
63
|
-
minimum: number;
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
//# sourceMappingURL=list-components.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list-components.d.ts","sourceRoot":"","sources":["../../src/tools/list-components.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEjF,MAAM,WAAW,oBAAoB;IACnC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,IAAI,CAAC,EAAE,WAAW,GAAG,WAAW,GAAG,MAAM,GAAG,SAAS,GAAG,KAAK,CAAC;IAC9D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,gBAAgB,EAAE,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,KAAK,CAAiB;IAC9B,OAAO,CAAC,SAAS,CAAkB;gBAEvB,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,eAAe;IAK7D;;OAEG;IACH,OAAO,CAAC,MAAM,GAAE,oBAAyB,GAAG,oBAAoB;IA0ChE;;OAEG;IACH,MAAM,CAAC,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqCzB"}
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ListComponentsTool class
|
|
3
|
-
* Handles listing components with filtering and pagination
|
|
4
|
-
*/
|
|
5
|
-
export class ListComponentsTool {
|
|
6
|
-
query;
|
|
7
|
-
formatter;
|
|
8
|
-
constructor(query, formatter) {
|
|
9
|
-
this.query = query;
|
|
10
|
-
this.formatter = formatter;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Execute the list-components tool
|
|
14
|
-
*/
|
|
15
|
-
execute(params = {}) {
|
|
16
|
-
const { includeDeprecated = false, type = 'all', limit = 50, offset = 0, } = params;
|
|
17
|
-
// Validate parameters
|
|
18
|
-
if (limit < 1 || limit > 1000) {
|
|
19
|
-
throw new Error('Limit must be between 1 and 1000');
|
|
20
|
-
}
|
|
21
|
-
if (offset < 0) {
|
|
22
|
-
throw new Error('Offset must be non-negative');
|
|
23
|
-
}
|
|
24
|
-
// Get components by type
|
|
25
|
-
const allComponents = this.query.getByType(type);
|
|
26
|
-
// Filter deprecated if needed
|
|
27
|
-
const filteredComponents = includeDeprecated
|
|
28
|
-
? allComponents
|
|
29
|
-
: allComponents.filter((doc) => !doc.deprecated);
|
|
30
|
-
// Apply pagination
|
|
31
|
-
const total = filteredComponents.length;
|
|
32
|
-
const paginatedComponents = filteredComponents.slice(offset, offset + limit);
|
|
33
|
-
const hasMore = offset + limit < total;
|
|
34
|
-
// Format results
|
|
35
|
-
const items = this.formatter.formatList(paginatedComponents, true); // Already filtered, so pass true
|
|
36
|
-
return {
|
|
37
|
-
items,
|
|
38
|
-
total,
|
|
39
|
-
hasMore,
|
|
40
|
-
offset,
|
|
41
|
-
limit,
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Get the tool definition for MCP registration
|
|
46
|
-
*/
|
|
47
|
-
static getToolDefinition() {
|
|
48
|
-
return {
|
|
49
|
-
name: 'list-components',
|
|
50
|
-
description: 'Lists all available components, directives, pipes, and services from the EUI component library. ' +
|
|
51
|
-
'Supports filtering by type and deprecated status, with pagination for large result sets.',
|
|
52
|
-
inputSchema: {
|
|
53
|
-
type: 'object',
|
|
54
|
-
properties: {
|
|
55
|
-
includeDeprecated: {
|
|
56
|
-
type: 'boolean',
|
|
57
|
-
description: 'Whether to include deprecated components in the results (default: false)',
|
|
58
|
-
default: false,
|
|
59
|
-
},
|
|
60
|
-
type: {
|
|
61
|
-
type: 'string',
|
|
62
|
-
enum: ['component', 'directive', 'pipe', 'service', 'all'],
|
|
63
|
-
description: 'Filter by type (default: all)',
|
|
64
|
-
default: 'all',
|
|
65
|
-
},
|
|
66
|
-
limit: {
|
|
67
|
-
type: 'number',
|
|
68
|
-
description: 'Maximum number of results to return (default: 50, max: 1000)',
|
|
69
|
-
default: 50,
|
|
70
|
-
minimum: 1,
|
|
71
|
-
maximum: 1000,
|
|
72
|
-
},
|
|
73
|
-
offset: {
|
|
74
|
-
type: 'number',
|
|
75
|
-
description: 'Number of results to skip for pagination (default: 0)',
|
|
76
|
-
default: 0,
|
|
77
|
-
minimum: 0,
|
|
78
|
-
},
|
|
79
|
-
},
|
|
80
|
-
},
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
//# sourceMappingURL=list-components.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list-components.js","sourceRoot":"","sources":["../../src/tools/list-components.ts"],"names":[],"mappings":"AAsBA;;;GAGG;AACH,MAAM,OAAO,kBAAkB;IACrB,KAAK,CAAiB;IACtB,SAAS,CAAkB;IAEnC,YAAY,KAAqB,EAAE,SAA0B;QAC3D,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC7B,CAAC;IAED;;OAEG;IACH,OAAO,CAAC,SAA+B,EAAE;QACvC,MAAM,EACJ,iBAAiB,GAAG,KAAK,EACzB,IAAI,GAAG,KAAK,EACZ,KAAK,GAAG,EAAE,EACV,MAAM,GAAG,CAAC,GACX,GAAG,MAAM,CAAC;QAEX,sBAAsB;QACtB,IAAI,KAAK,GAAG,CAAC,IAAI,KAAK,GAAG,IAAI,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;QACtD,CAAC;QAED,IAAI,MAAM,GAAG,CAAC,EAAE,CAAC;YACf,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;QACjD,CAAC;QAED,yBAAyB;QACzB,MAAM,aAAa,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;QAEjD,8BAA8B;QAC9B,MAAM,kBAAkB,GAAG,iBAAiB;YAC1C,CAAC,CAAC,aAAa;YACf,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;QAEnD,mBAAmB;QACnB,MAAM,KAAK,GAAG,kBAAkB,CAAC,MAAM,CAAC;QACxC,MAAM,mBAAmB,GAAG,kBAAkB,CAAC,KAAK,CAAC,MAAM,EAAE,MAAM,GAAG,KAAK,CAAC,CAAC;QAC7E,MAAM,OAAO,GAAG,MAAM,GAAG,KAAK,GAAG,KAAK,CAAC;QAEvC,iBAAiB;QACjB,MAAM,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,mBAAmB,EAAE,IAAI,CAAC,CAAC,CAAC,iCAAiC;QAErG,OAAO;YACL,KAAK;YACL,KAAK;YACL,OAAO;YACP,MAAM;YACN,KAAK;SACN,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,iBAAiB;QACtB,OAAO;YACL,IAAI,EAAE,iBAAiB;YACvB,WAAW,EACT,kGAAkG;gBAClG,0FAA0F;YAC5F,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,iBAAiB,EAAE;wBACjB,IAAI,EAAE,SAAS;wBACf,WAAW,EAAE,0EAA0E;wBACvF,OAAO,EAAE,KAAK;qBACf;oBACD,IAAI,EAAE;wBACJ,IAAI,EAAE,QAAQ;wBACd,IAAI,EAAE,CAAC,WAAW,EAAE,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,CAAC;wBAC1D,WAAW,EAAE,+BAA+B;wBAC5C,OAAO,EAAE,KAAK;qBACf;oBACD,KAAK,EAAE;wBACL,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,8DAA8D;wBAC3E,OAAO,EAAE,EAAE;wBACX,OAAO,EAAE,CAAC;wBACV,OAAO,EAAE,IAAI;qBACd;oBACD,MAAM,EAAE;wBACN,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,uDAAuD;wBACpE,OAAO,EAAE,CAAC;wBACV,OAAO,EAAE,CAAC;qBACX;iBACF;aACF;SACF,CAAC;IACJ,CAAC;CACF"}
|