@next-vibe/checker 1.0.52 → 3.0.0
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/LICENSE +669 -5
- package/README.md +179 -200
- package/check.config.ts +85 -16
- package/generated/alias-map.ts +30 -0
- package/generated/endpoint.ts +75 -0
- package/{src/app/api/[locale]/system/check/oxlint/plugins/i18n/src/index.ts → oxlint-plugins/i18n.ts} +45 -9
- package/{src/app/api/[locale]/system/check/oxlint/plugins/jsx-capitalization/src/index.ts → oxlint-plugins/jsx-capitalization.ts} +84 -17
- package/{src/app/api/[locale]/system/check/oxlint/plugins/restricted-syntax/src/index.ts → oxlint-plugins/restricted-syntax.ts} +40 -14
- package/package.json +28 -132
- package/.dist/LICENSE +0 -674
- package/.dist/README.md +0 -257
- package/.dist/bin/vibe-runtime.js +0 -58166
- package/.dist/bin/vibe-runtime.js.map +0 -451
- package/.dist/oxlint-plugins/i18n.js +0 -381
- package/.dist/oxlint-plugins/jsx-capitalization.js +0 -436
- package/.dist/oxlint-plugins/restricted-syntax.js +0 -409
- package/src/app/api/[locale]/LICENSE +0 -674
- package/src/app/api/[locale]/i18n/de/index.ts +0 -15
- package/src/app/api/[locale]/i18n/en/index.ts +0 -14
- package/src/app/api/[locale]/i18n/pl/index.ts +0 -13
- package/src/app/api/[locale]/shared/i18n/de/index.ts +0 -85
- package/src/app/api/[locale]/shared/i18n/en/index.ts +0 -83
- package/src/app/api/[locale]/shared/i18n/pl/index.ts +0 -85
- package/src/app/api/[locale]/shared/stats-filtering.ts +0 -174
- package/src/app/api/[locale]/shared/types/common.schema.ts +0 -55
- package/src/app/api/[locale]/shared/types/response.schema.ts +0 -411
- package/src/app/api/[locale]/shared/types/stats-filtering.schema.ts +0 -315
- package/src/app/api/[locale]/shared/types/utils.ts +0 -187
- package/src/app/api/[locale]/shared/utils/base64.ts +0 -46
- package/src/app/api/[locale]/shared/utils/env-util.ts +0 -36
- package/src/app/api/[locale]/shared/utils/i18n/de/index.ts +0 -21
- package/src/app/api/[locale]/shared/utils/i18n/en/index.ts +0 -19
- package/src/app/api/[locale]/shared/utils/i18n/pl/index.ts +0 -21
- package/src/app/api/[locale]/shared/utils/index.ts +0 -11
- package/src/app/api/[locale]/shared/utils/object-path.ts +0 -41
- package/src/app/api/[locale]/shared/utils/object.test.ts +0 -82
- package/src/app/api/[locale]/shared/utils/object.ts +0 -73
- package/src/app/api/[locale]/shared/utils/parse-error.ts +0 -134
- package/src/app/api/[locale]/shared/utils/parse-json.ts +0 -62
- package/src/app/api/[locale]/shared/utils/time.ts +0 -46
- package/src/app/api/[locale]/shared/utils/validation.ts +0 -117
- package/src/app/api/[locale]/shared/utils/zod-required-fields.ts +0 -115
- package/src/app/api/[locale]/system/builder/definition.ts +0 -1750
- package/src/app/api/[locale]/system/builder/enum.ts +0 -78
- package/src/app/api/[locale]/system/builder/i18n/de/index.ts +0 -645
- package/src/app/api/[locale]/system/builder/i18n/en/index.ts +0 -653
- package/src/app/api/[locale]/system/builder/i18n/pl/index.ts +0 -643
- package/src/app/api/[locale]/system/builder/repository/build-executor.test.ts +0 -178
- package/src/app/api/[locale]/system/builder/repository/build-executor.ts +0 -538
- package/src/app/api/[locale]/system/builder/repository/bun-compiler.ts +0 -250
- package/src/app/api/[locale]/system/builder/repository/bundle-analyzer.ts +0 -170
- package/src/app/api/[locale]/system/builder/repository/config-loader.ts +0 -146
- package/src/app/api/[locale]/system/builder/repository/config-validator.ts +0 -97
- package/src/app/api/[locale]/system/builder/repository/constants.ts +0 -125
- package/src/app/api/[locale]/system/builder/repository/error-suggester.ts +0 -67
- package/src/app/api/[locale]/system/builder/repository/file-copier.ts +0 -90
- package/src/app/api/[locale]/system/builder/repository/folder-cleaner.ts +0 -75
- package/src/app/api/[locale]/system/builder/repository/index.ts +0 -2
- package/src/app/api/[locale]/system/builder/repository/npm-package-generator.ts +0 -143
- package/src/app/api/[locale]/system/builder/repository/output-formatter.ts +0 -104
- package/src/app/api/[locale]/system/builder/repository/profile-service.ts +0 -79
- package/src/app/api/[locale]/system/builder/repository/report-generator.ts +0 -109
- package/src/app/api/[locale]/system/builder/repository/vite-compiler.ts +0 -277
- package/src/app/api/[locale]/system/builder/route.ts +0 -21
- package/src/app/api/[locale]/system/builder/test-files/file1.ts +0 -2
- package/src/app/api/[locale]/system/builder/test-files/file2.tsx +0 -10
- package/src/app/api/[locale]/system/builder/test-files/file3.tsx +0 -16
- package/src/app/api/[locale]/system/builder/test-files/folderToCopy/fileInFolder.ts +0 -2
- package/src/app/api/[locale]/system/builder/test-files/test-config.ts +0 -38
- package/src/app/api/[locale]/system/builder/test-files/test-delete-config.ts +0 -8
- package/src/app/api/[locale]/system/builder/test-files/test-project/package.json +0 -24
- package/src/app/api/[locale]/system/builder/test-files/test-project/src/constants.ts +0 -6
- package/src/app/api/[locale]/system/builder/test-files/test-project/src/greet.ts +0 -18
- package/src/app/api/[locale]/system/builder/test-files/test-project/src/index.ts +0 -7
- package/src/app/api/[locale]/system/builder/test-files/test-project/src/utils/calculate.ts +0 -27
- package/src/app/api/[locale]/system/builder/test-files/test-project/tsconfig.json +0 -19
- package/src/app/api/[locale]/system/builder/test-files/test-project/tsconfig.tsbuildinfo +0 -1
- package/src/app/api/[locale]/system/builder/test-files/test3.css +0 -1
- package/src/app/api/[locale]/system/check/config/create/definition.ts +0 -266
- package/src/app/api/[locale]/system/check/config/create/i18n/de/index.ts +0 -151
- package/src/app/api/[locale]/system/check/config/create/i18n/en/index.ts +0 -146
- package/src/app/api/[locale]/system/check/config/create/i18n/pl/index.ts +0 -148
- package/src/app/api/[locale]/system/check/config/create/repository.ts +0 -269
- package/src/app/api/[locale]/system/check/config/create/route.ts +0 -21
- package/src/app/api/[locale]/system/check/config/repository.ts +0 -846
- package/src/app/api/[locale]/system/check/config/shared.ts +0 -364
- package/src/app/api/[locale]/system/check/config/types.ts +0 -610
- package/src/app/api/[locale]/system/check/config/utils.ts +0 -155
- package/src/app/api/[locale]/system/check/i18n/de/index.ts +0 -19
- package/src/app/api/[locale]/system/check/i18n/en/index.ts +0 -18
- package/src/app/api/[locale]/system/check/i18n/pl/index.ts +0 -19
- package/src/app/api/[locale]/system/check/lint/definition.ts +0 -383
- package/src/app/api/[locale]/system/check/lint/enum.ts +0 -34
- package/src/app/api/[locale]/system/check/lint/i18n/de/index.ts +0 -160
- package/src/app/api/[locale]/system/check/lint/i18n/en/index.ts +0 -158
- package/src/app/api/[locale]/system/check/lint/i18n/pl/index.ts +0 -160
- package/src/app/api/[locale]/system/check/lint/repository.ts +0 -844
- package/src/app/api/[locale]/system/check/lint/route.ts +0 -21
- package/src/app/api/[locale]/system/check/oxlint/README.md +0 -190
- package/src/app/api/[locale]/system/check/oxlint/definition.ts +0 -375
- package/src/app/api/[locale]/system/check/oxlint/enum.ts +0 -34
- package/src/app/api/[locale]/system/check/oxlint/i18n/de/index.ts +0 -166
- package/src/app/api/[locale]/system/check/oxlint/i18n/en/index.ts +0 -164
- package/src/app/api/[locale]/system/check/oxlint/i18n/pl/index.ts +0 -166
- package/src/app/api/[locale]/system/check/oxlint/plugins/jsx-capitalization/README.md +0 -269
- package/src/app/api/[locale]/system/check/oxlint/plugins/restricted-syntax/test.tsx +0 -74
- package/src/app/api/[locale]/system/check/oxlint/plugins/shared/config-loader.ts +0 -283
- package/src/app/api/[locale]/system/check/oxlint/repository.ts +0 -553
- package/src/app/api/[locale]/system/check/oxlint/route.ts +0 -21
- package/src/app/api/[locale]/system/check/oxlint/types.ts +0 -191
- package/src/app/api/[locale]/system/check/test-project/.vscode/settings.json +0 -48
- package/src/app/api/[locale]/system/check/test-project/bun.lock +0 -640
- package/src/app/api/[locale]/system/check/test-project/check.config.ts +0 -955
- package/src/app/api/[locale]/system/check/test-project/package.json +0 -17
- package/src/app/api/[locale]/system/check/test-project/src/constants.ts +0 -6
- package/src/app/api/[locale]/system/check/test-project/src/greet.ts +0 -18
- package/src/app/api/[locale]/system/check/test-project/src/test-issues/a11y-issues.tsx +0 -107
- package/src/app/api/[locale]/system/check/test-project/src/test-issues/eslint-issues.tsx +0 -37
- package/src/app/api/[locale]/system/check/test-project/src/test-issues/general-issues.ts +0 -135
- package/src/app/api/[locale]/system/check/test-project/src/test-issues/i18n-issues.tsx +0 -113
- package/src/app/api/[locale]/system/check/test-project/src/test-issues/jsx-capitalization-issues.tsx +0 -127
- package/src/app/api/[locale]/system/check/test-project/src/test-issues/nextjs-issues.tsx +0 -92
- package/src/app/api/[locale]/system/check/test-project/src/test-issues/promise-issues.ts +0 -73
- package/src/app/api/[locale]/system/check/test-project/src/test-issues/react-issues.tsx +0 -95
- package/src/app/api/[locale]/system/check/test-project/src/test-issues/restricted-syntax-issues.tsx +0 -61
- package/src/app/api/[locale]/system/check/test-project/src/test-issues/typescript-issues.ts +0 -78
- package/src/app/api/[locale]/system/check/test-project/src/utils/calculate.ts +0 -27
- package/src/app/api/[locale]/system/check/test-project/tsconfig.json +0 -22
- package/src/app/api/[locale]/system/check/test-project/tsconfig.tsbuildinfo +0 -1
- package/src/app/api/[locale]/system/check/typecheck/definition.ts +0 -328
- package/src/app/api/[locale]/system/check/typecheck/enum.ts +0 -34
- package/src/app/api/[locale]/system/check/typecheck/i18n/de/index.ts +0 -148
- package/src/app/api/[locale]/system/check/typecheck/i18n/en/index.ts +0 -145
- package/src/app/api/[locale]/system/check/typecheck/i18n/pl/index.ts +0 -148
- package/src/app/api/[locale]/system/check/typecheck/repository.ts +0 -863
- package/src/app/api/[locale]/system/check/typecheck/route.ts +0 -21
- package/src/app/api/[locale]/system/check/typecheck/utils.ts +0 -160
- package/src/app/api/[locale]/system/check/vibe-check/definition.ts +0 -448
- package/src/app/api/[locale]/system/check/vibe-check/enum.ts +0 -63
- package/src/app/api/[locale]/system/check/vibe-check/i18n/de/index.ts +0 -164
- package/src/app/api/[locale]/system/check/vibe-check/i18n/en/index.ts +0 -161
- package/src/app/api/[locale]/system/check/vibe-check/i18n/pl/index.ts +0 -163
- package/src/app/api/[locale]/system/check/vibe-check/repository.ts +0 -516
- package/src/app/api/[locale]/system/check/vibe-check/route.test.ts +0 -1010
- package/src/app/api/[locale]/system/check/vibe-check/route.ts +0 -21
- package/src/app/api/[locale]/system/generated/endpoint.ts +0 -274
- package/src/app/api/[locale]/system/generated/endpoints.ts +0 -138
- package/src/app/api/[locale]/system/generated/route-handlers.ts +0 -213
- package/src/app/api/[locale]/system/generators/endpoint/definition.ts +0 -167
- package/src/app/api/[locale]/system/generators/endpoint/i18n/de/index.ts +0 -48
- package/src/app/api/[locale]/system/generators/endpoint/i18n/en/index.ts +0 -48
- package/src/app/api/[locale]/system/generators/endpoint/i18n/pl/index.ts +0 -50
- package/src/app/api/[locale]/system/generators/endpoint/repository.ts +0 -286
- package/src/app/api/[locale]/system/generators/endpoint/route.ts +0 -18
- package/src/app/api/[locale]/system/generators/endpoints/definition.ts +0 -246
- package/src/app/api/[locale]/system/generators/endpoints/i18n/de/index.ts +0 -54
- package/src/app/api/[locale]/system/generators/endpoints/i18n/en/index.ts +0 -52
- package/src/app/api/[locale]/system/generators/endpoints/i18n/pl/index.ts +0 -54
- package/src/app/api/[locale]/system/generators/endpoints/options-repository.ts +0 -425
- package/src/app/api/[locale]/system/generators/endpoints/repository.ts +0 -368
- package/src/app/api/[locale]/system/generators/endpoints/route.ts +0 -17
- package/src/app/api/[locale]/system/generators/endpoints-index/definition.ts +0 -166
- package/src/app/api/[locale]/system/generators/endpoints-index/i18n/de/index.ts +0 -71
- package/src/app/api/[locale]/system/generators/endpoints-index/i18n/en/index.ts +0 -69
- package/src/app/api/[locale]/system/generators/endpoints-index/i18n/pl/index.ts +0 -71
- package/src/app/api/[locale]/system/generators/endpoints-index/repository.ts +0 -279
- package/src/app/api/[locale]/system/generators/endpoints-index/route.ts +0 -18
- package/src/app/api/[locale]/system/generators/generate-all/definition.ts +0 -327
- package/src/app/api/[locale]/system/generators/generate-all/i18n/de/index.ts +0 -96
- package/src/app/api/[locale]/system/generators/generate-all/i18n/en/index.ts +0 -94
- package/src/app/api/[locale]/system/generators/generate-all/i18n/pl/index.ts +0 -96
- package/src/app/api/[locale]/system/generators/generate-all/repository.ts +0 -240
- package/src/app/api/[locale]/system/generators/generate-all/route.ts +0 -19
- package/src/app/api/[locale]/system/generators/i18n/de/index.ts +0 -15
- package/src/app/api/[locale]/system/generators/i18n/en/index.ts +0 -14
- package/src/app/api/[locale]/system/generators/i18n/pl/index.ts +0 -15
- package/src/app/api/[locale]/system/generators/route-handlers/definition.ts +0 -178
- package/src/app/api/[locale]/system/generators/route-handlers/i18n/de/index.ts +0 -48
- package/src/app/api/[locale]/system/generators/route-handlers/i18n/en/index.ts +0 -48
- package/src/app/api/[locale]/system/generators/route-handlers/i18n/pl/index.ts +0 -50
- package/src/app/api/[locale]/system/generators/route-handlers/repository.ts +0 -267
- package/src/app/api/[locale]/system/generators/route-handlers/route.ts +0 -14
- package/src/app/api/[locale]/system/generators/shared/utils.ts +0 -215
- package/src/app/api/[locale]/system/help/definition.ts +0 -433
- package/src/app/api/[locale]/system/help/i18n/de/index.ts +0 -263
- package/src/app/api/[locale]/system/help/i18n/en/index.ts +0 -259
- package/src/app/api/[locale]/system/help/i18n/pl/index.ts +0 -262
- package/src/app/api/[locale]/system/help/interactive/definition.ts +0 -122
- package/src/app/api/[locale]/system/help/interactive/i18n/de/index.ts +0 -21
- package/src/app/api/[locale]/system/help/interactive/i18n/en/index.ts +0 -19
- package/src/app/api/[locale]/system/help/interactive/i18n/pl/index.ts +0 -21
- package/src/app/api/[locale]/system/help/interactive/repository.ts +0 -1131
- package/src/app/api/[locale]/system/help/interactive/route.ts +0 -43
- package/src/app/api/[locale]/system/help/list/definition.ts +0 -362
- package/src/app/api/[locale]/system/help/list/repository.ts +0 -99
- package/src/app/api/[locale]/system/help/list/route.ts +0 -21
- package/src/app/api/[locale]/system/help/repository.ts +0 -238
- package/src/app/api/[locale]/system/help/route.ts +0 -16
- package/src/app/api/[locale]/system/i18n/de/index.ts +0 -67
- package/src/app/api/[locale]/system/i18n/en/index.ts +0 -66
- package/src/app/api/[locale]/system/i18n/pl/index.ts +0 -67
- package/src/app/api/[locale]/system/release-tool/definition.ts +0 -2925
- package/src/app/api/[locale]/system/release-tool/i18n/de/index.ts +0 -782
- package/src/app/api/[locale]/system/release-tool/i18n/en/index.ts +0 -779
- package/src/app/api/[locale]/system/release-tool/i18n/pl/index.ts +0 -781
- package/src/app/api/[locale]/system/release-tool/repository/asset-zipper.ts +0 -122
- package/src/app/api/[locale]/system/release-tool/repository/changelog-generator.ts +0 -205
- package/src/app/api/[locale]/system/release-tool/repository/ci-detector.ts +0 -540
- package/src/app/api/[locale]/system/release-tool/repository/config.ts +0 -106
- package/src/app/api/[locale]/system/release-tool/repository/constants.ts +0 -406
- package/src/app/api/[locale]/system/release-tool/repository/dependency-manager.ts +0 -496
- package/src/app/api/[locale]/system/release-tool/repository/git-service.ts +0 -378
- package/src/app/api/[locale]/system/release-tool/repository/hook-runner.ts +0 -96
- package/src/app/api/[locale]/system/release-tool/repository/index.ts +0 -1
- package/src/app/api/[locale]/system/release-tool/repository/notification-service.ts +0 -575
- package/src/app/api/[locale]/system/release-tool/repository/package-service.ts +0 -150
- package/src/app/api/[locale]/system/release-tool/repository/publisher.ts +0 -241
- package/src/app/api/[locale]/system/release-tool/repository/quality-runner.ts +0 -413
- package/src/app/api/[locale]/system/release-tool/repository/release-creator.ts +0 -283
- package/src/app/api/[locale]/system/release-tool/repository/release-executor.ts +0 -1084
- package/src/app/api/[locale]/system/release-tool/repository/snyk-service.ts +0 -132
- package/src/app/api/[locale]/system/release-tool/repository/utils.ts +0 -603
- package/src/app/api/[locale]/system/release-tool/repository/validation.ts +0 -265
- package/src/app/api/[locale]/system/release-tool/repository/version-service.ts +0 -275
- package/src/app/api/[locale]/system/release-tool/route.ts +0 -21
- package/src/app/api/[locale]/system/unified-interface/README.md +0 -328
- package/src/app/api/[locale]/system/unified-interface/cli/README.md +0 -349
- package/src/app/api/[locale]/system/unified-interface/cli/auth/cli-handler.ts +0 -82
- package/src/app/api/[locale]/system/unified-interface/cli/auth/cli-user.ts +0 -120
- package/src/app/api/[locale]/system/unified-interface/cli/auth/session-file.ts +0 -244
- package/src/app/api/[locale]/system/unified-interface/cli/env.ts +0 -24
- package/src/app/api/[locale]/system/unified-interface/cli/i18n/de/index.ts +0 -159
- package/src/app/api/[locale]/system/unified-interface/cli/i18n/en/index.ts +0 -158
- package/src/app/api/[locale]/system/unified-interface/cli/i18n/pl/index.ts +0 -159
- package/src/app/api/[locale]/system/unified-interface/cli/runtime/debug.ts +0 -573
- package/src/app/api/[locale]/system/unified-interface/cli/runtime/entry-point.ts +0 -128
- package/src/app/api/[locale]/system/unified-interface/cli/runtime/environment.ts +0 -155
- package/src/app/api/[locale]/system/unified-interface/cli/runtime/execution-errors.ts +0 -423
- package/src/app/api/[locale]/system/unified-interface/cli/runtime/parsing.ts +0 -252
- package/src/app/api/[locale]/system/unified-interface/cli/runtime/route-executor.ts +0 -901
- package/src/app/api/[locale]/system/unified-interface/cli/setup/i18n/de/index.ts +0 -12
- package/src/app/api/[locale]/system/unified-interface/cli/setup/i18n/en/index.ts +0 -11
- package/src/app/api/[locale]/system/unified-interface/cli/setup/i18n/pl/index.ts +0 -12
- package/src/app/api/[locale]/system/unified-interface/cli/setup/install/definition.ts +0 -235
- package/src/app/api/[locale]/system/unified-interface/cli/setup/install/i18n/de/index.ts +0 -54
- package/src/app/api/[locale]/system/unified-interface/cli/setup/install/i18n/en/index.ts +0 -52
- package/src/app/api/[locale]/system/unified-interface/cli/setup/install/i18n/pl/index.ts +0 -54
- package/src/app/api/[locale]/system/unified-interface/cli/setup/install/repository.ts +0 -444
- package/src/app/api/[locale]/system/unified-interface/cli/setup/install/route.ts +0 -25
- package/src/app/api/[locale]/system/unified-interface/cli/setup/status/definition.ts +0 -159
- package/src/app/api/[locale]/system/unified-interface/cli/setup/status/i18n/de/index.ts +0 -61
- package/src/app/api/[locale]/system/unified-interface/cli/setup/status/i18n/en/index.ts +0 -59
- package/src/app/api/[locale]/system/unified-interface/cli/setup/status/i18n/pl/index.ts +0 -61
- package/src/app/api/[locale]/system/unified-interface/cli/setup/status/repository.ts +0 -181
- package/src/app/api/[locale]/system/unified-interface/cli/setup/status/route.ts +0 -22
- package/src/app/api/[locale]/system/unified-interface/cli/setup/uninstall/definition.ts +0 -164
- package/src/app/api/[locale]/system/unified-interface/cli/setup/uninstall/i18n/de/index.ts +0 -54
- package/src/app/api/[locale]/system/unified-interface/cli/setup/uninstall/i18n/en/index.ts +0 -52
- package/src/app/api/[locale]/system/unified-interface/cli/setup/uninstall/i18n/pl/index.ts +0 -54
- package/src/app/api/[locale]/system/unified-interface/cli/setup/uninstall/repository.ts +0 -195
- package/src/app/api/[locale]/system/unified-interface/cli/setup/uninstall/route.ts +0 -24
- package/src/app/api/[locale]/system/unified-interface/cli/setup/update/definition.ts +0 -180
- package/src/app/api/[locale]/system/unified-interface/cli/setup/update/i18n/de/index.ts +0 -54
- package/src/app/api/[locale]/system/unified-interface/cli/setup/update/i18n/en/index.ts +0 -52
- package/src/app/api/[locale]/system/unified-interface/cli/setup/update/i18n/pl/index.ts +0 -54
- package/src/app/api/[locale]/system/unified-interface/cli/setup/update/repository.ts +0 -105
- package/src/app/api/[locale]/system/unified-interface/cli/setup/update/route.ts +0 -22
- package/src/app/api/[locale]/system/unified-interface/cli/vibe-runtime.ts +0 -264
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/core/base-renderer.ts +0 -246
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/core/registry.ts +0 -305
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/core/types.ts +0 -116
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/i18n/de/index.ts +0 -67
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/i18n/en/index.ts +0 -65
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/i18n/pl/index.ts +0 -67
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/implementations/accordion.ts +0 -70
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/implementations/avatar.ts +0 -37
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/implementations/badge.ts +0 -52
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/implementations/code-output.ts +0 -285
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/implementations/code-quality-files.ts +0 -71
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/implementations/code-quality-list.ts +0 -281
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/implementations/code-quality-summary.ts +0 -83
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/implementations/container.ts +0 -175
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/implementations/data-card.ts +0 -61
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/implementations/data-cards.ts +0 -518
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/implementations/data-list.ts +0 -75
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/implementations/data-table.ts +0 -357
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/implementations/editable-text.ts +0 -93
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/implementations/empty-state.ts +0 -49
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/implementations/errors.ts +0 -63
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/implementations/grouped-list.ts +0 -667
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/implementations/link-card.ts +0 -78
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/implementations/link-list.ts +0 -99
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/implementations/link.ts +0 -54
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/implementations/loading.ts +0 -46
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/implementations/markdown.ts +0 -123
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/implementations/metric.ts +0 -269
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/implementations/section.ts +0 -114
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/implementations/stats-grid.ts +0 -138
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/implementations/tabs.ts +0 -59
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/implementations/text.ts +0 -76
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/implementations/title.ts +0 -37
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/renderers/response-renderer.ts +0 -403
- package/src/app/api/[locale]/system/unified-interface/cli/widgets/renderers/schema-handler.ts +0 -504
- package/src/app/api/[locale]/system/unified-interface/i18n/de/index.ts +0 -39
- package/src/app/api/[locale]/system/unified-interface/i18n/en/index.ts +0 -37
- package/src/app/api/[locale]/system/unified-interface/i18n/pl/index.ts +0 -39
- package/src/app/api/[locale]/system/unified-interface/mcp/README.md +0 -114
- package/src/app/api/[locale]/system/unified-interface/mcp/converter.ts +0 -136
- package/src/app/api/[locale]/system/unified-interface/mcp/i18n/de/index.ts +0 -180
- package/src/app/api/[locale]/system/unified-interface/mcp/i18n/en/index.ts +0 -178
- package/src/app/api/[locale]/system/unified-interface/mcp/i18n/pl/index.ts +0 -180
- package/src/app/api/[locale]/system/unified-interface/mcp/registry.ts +0 -305
- package/src/app/api/[locale]/system/unified-interface/mcp/serve/definition.ts +0 -124
- package/src/app/api/[locale]/system/unified-interface/mcp/serve/repository.ts +0 -44
- package/src/app/api/[locale]/system/unified-interface/mcp/serve/route.ts +0 -14
- package/src/app/api/[locale]/system/unified-interface/mcp/server/protocol-handler.ts +0 -291
- package/src/app/api/[locale]/system/unified-interface/mcp/server/server.ts +0 -155
- package/src/app/api/[locale]/system/unified-interface/mcp/server/stdio-transport.ts +0 -191
- package/src/app/api/[locale]/system/unified-interface/mcp/types.ts +0 -247
- package/src/app/api/[locale]/system/unified-interface/react/icons.tsx +0 -346
- package/src/app/api/[locale]/system/unified-interface/shared/endpoints/definition/create-form.ts +0 -1413
- package/src/app/api/[locale]/system/unified-interface/shared/endpoints/definition/create.ts +0 -525
- package/src/app/api/[locale]/system/unified-interface/shared/endpoints/definition/endpoint-to-metadata.ts +0 -52
- package/src/app/api/[locale]/system/unified-interface/shared/endpoints/definition/loader.ts +0 -144
- package/src/app/api/[locale]/system/unified-interface/shared/endpoints/definitions/registry.ts +0 -262
- package/src/app/api/[locale]/system/unified-interface/shared/endpoints/permissions/registry.ts +0 -656
- package/src/app/api/[locale]/system/unified-interface/shared/endpoints/route/executor.ts +0 -220
- package/src/app/api/[locale]/system/unified-interface/shared/endpoints/route/handler.ts +0 -313
- package/src/app/api/[locale]/system/unified-interface/shared/endpoints/route/multi.ts +0 -182
- package/src/app/api/[locale]/system/unified-interface/shared/endpoints/route/request-validator.ts +0 -173
- package/src/app/api/[locale]/system/unified-interface/shared/endpoints/route/single.ts +0 -58
- package/src/app/api/[locale]/system/unified-interface/shared/env/define-env-client.ts +0 -45
- package/src/app/api/[locale]/system/unified-interface/shared/env/define-env.ts +0 -43
- package/src/app/api/[locale]/system/unified-interface/shared/env/validation-logger.ts +0 -58
- package/src/app/api/[locale]/system/unified-interface/shared/field/enum.ts +0 -107
- package/src/app/api/[locale]/system/unified-interface/shared/field/specialized.ts +0 -336
- package/src/app/api/[locale]/system/unified-interface/shared/field/utils.test.ts +0 -385
- package/src/app/api/[locale]/system/unified-interface/shared/field/utils.ts +0 -1827
- package/src/app/api/[locale]/system/unified-interface/shared/field-config/endpoint-field-types.ts +0 -108
- package/src/app/api/[locale]/system/unified-interface/shared/field-config/field-config-types.ts +0 -288
- package/src/app/api/[locale]/system/unified-interface/shared/logger/colors.ts +0 -114
- package/src/app/api/[locale]/system/unified-interface/shared/logger/endpoint.ts +0 -155
- package/src/app/api/[locale]/system/unified-interface/shared/logger/file-logger.ts +0 -85
- package/src/app/api/[locale]/system/unified-interface/shared/logger/formatters.ts +0 -167
- package/src/app/api/[locale]/system/unified-interface/shared/server-only/auth/base-auth-handler.ts +0 -82
- package/src/app/api/[locale]/system/unified-interface/shared/server-only/auth/factory.ts +0 -34
- package/src/app/api/[locale]/system/unified-interface/shared/server-only/server-only.ts +0 -1
- package/src/app/api/[locale]/system/unified-interface/shared/types/actions.ts +0 -284
- package/src/app/api/[locale]/system/unified-interface/shared/types/endpoint.ts +0 -1101
- package/src/app/api/[locale]/system/unified-interface/shared/types/enums.ts +0 -383
- package/src/app/api/[locale]/system/unified-interface/shared/types/platform.ts +0 -34
- package/src/app/api/[locale]/system/unified-interface/shared/types/types.ts +0 -76
- package/src/app/api/[locale]/system/unified-interface/shared/types/ui-config.ts +0 -72
- package/src/app/api/[locale]/system/unified-interface/shared/utils/error-types.ts +0 -27
- package/src/app/api/[locale]/system/unified-interface/shared/utils/path.ts +0 -80
- package/src/app/api/[locale]/system/unified-interface/shared/utils/scanner.ts +0 -225
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/actions.ts +0 -251
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/configs.ts +0 -1060
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/helpers.ts +0 -70
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/logic/accordion.ts +0 -75
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/logic/avatar.ts +0 -69
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/logic/badge.ts +0 -86
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/logic/code-output.ts +0 -283
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/logic/code-quality-list.ts +0 -190
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/logic/container.ts +0 -114
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/logic/data-card.ts +0 -71
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/logic/data-cards.ts +0 -228
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/logic/data-list.ts +0 -119
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/logic/data-table.ts +0 -367
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/logic/editable-text.ts +0 -81
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/logic/empty-state.ts +0 -71
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/logic/errors.ts +0 -79
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/logic/grouped-list.ts +0 -426
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/logic/index.ts +0 -38
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/logic/link-card.ts +0 -112
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/logic/link-list.ts +0 -110
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/logic/link.ts +0 -66
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/logic/loading.ts +0 -79
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/logic/markdown.ts +0 -159
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/logic/metric-card.ts +0 -225
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/logic/section.ts +0 -85
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/logic/stats-grid.ts +0 -63
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/logic/tabs.ts +0 -73
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/logic/text.ts +0 -96
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/logic/title.ts +0 -57
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/types.ts +0 -236
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/utils/field-helpers.ts +0 -120
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/utils/formatting.ts +0 -414
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/utils/url.ts +0 -37
- package/src/app/api/[locale]/system/unified-interface/shared/widgets/utils/widget-helpers.ts +0 -427
- package/src/app/api/[locale]/user/auth/i18n/de/index.ts +0 -204
- package/src/app/api/[locale]/user/auth/i18n/en/index.ts +0 -199
- package/src/app/api/[locale]/user/auth/i18n/pl/index.ts +0 -203
- package/src/app/api/[locale]/user/auth/types.ts +0 -45
- package/src/app/api/[locale]/user/enum.ts +0 -64
- package/src/app/api/[locale]/user/i18n/de/index.ts +0 -75
- package/src/app/api/[locale]/user/i18n/en/index.ts +0 -74
- package/src/app/api/[locale]/user/i18n/pl/index.ts +0 -75
- package/src/app/api/[locale]/user/types.ts +0 -111
- package/src/app/api/[locale]/user/user-roles/enum.ts +0 -103
- package/src/app/api/[locale]/user/user-roles/i18n/de/index.ts +0 -85
- package/src/app/api/[locale]/user/user-roles/i18n/en/index.ts +0 -83
- package/src/app/api/[locale]/user/user-roles/i18n/pl/index.ts +0 -85
- package/src/app/api/[locale]/user/user-roles/types.ts +0 -32
- package/src/app/api/i18n/de/index.ts +0 -6
- package/src/app/api/i18n/en/index.ts +0 -5
- package/src/app/api/i18n/pl/index.ts +0 -5
- package/src/app/i18n/de/index.ts +0 -18
- package/src/app/i18n/en/index.ts +0 -18
- package/src/app/i18n/pl/index.ts +0 -17
- package/src/config/constants.ts +0 -8
- package/src/config/debug.ts +0 -30
- package/src/config/env-client.ts +0 -57
- package/src/config/env.ts +0 -56
- package/src/config/i18n/de/index.ts +0 -3
- package/src/config/i18n/en/index.ts +0 -51
- package/src/config/i18n/pl/index.ts +0 -3
- package/src/i18n/core/config.ts +0 -225
- package/src/i18n/core/language-utils.ts +0 -226
- package/src/i18n/core/localization-utils.ts +0 -394
- package/src/i18n/core/scoped-translation.ts +0 -104
- package/src/i18n/core/shared-component.tsx +0 -28
- package/src/i18n/core/shared-translation-utils.ts +0 -97
- package/src/i18n/core/shared.ts +0 -44
- package/src/i18n/core/static-types.ts +0 -64
- package/src/i18n/core/translation-utils.ts +0 -186
- package/src/i18n/de/index.ts +0 -8
- package/src/i18n/en/index.ts +0 -7
- package/src/i18n/index.ts +0 -100
- package/src/i18n/pl/index.ts +0 -7
package/src/app/api/[locale]/system/unified-interface/cli/widgets/implementations/grouped-list.ts
DELETED
|
@@ -1,667 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Grouped List Widget Renderer
|
|
3
|
-
* Specialized renderer for grouped lists with beautiful CLI output
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import { WidgetType } from "@/app/api/[locale]/system/unified-interface/shared/types/enums";
|
|
7
|
-
|
|
8
|
-
import type { IconKey } from "../../../react/icons";
|
|
9
|
-
import { BaseWidgetRenderer } from "../core/base-renderer";
|
|
10
|
-
import type { CLIWidgetProps, WidgetRenderContext } from "../core/types";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Configuration for grouped list rendering
|
|
14
|
-
*/
|
|
15
|
-
interface GroupedListConfig {
|
|
16
|
-
groupBy: string;
|
|
17
|
-
sortBy: string;
|
|
18
|
-
showGroupSummary: boolean;
|
|
19
|
-
maxItemsPerGroup: number;
|
|
20
|
-
summaryTitle?: string;
|
|
21
|
-
summaryStats?: StatConfig[];
|
|
22
|
-
renderMode?: "code-quality" | "simple"; // Data-driven mode selection
|
|
23
|
-
hierarchical?: boolean; // Enable hierarchical/tree rendering for nested paths
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Individual item in a grouped list
|
|
28
|
-
*/
|
|
29
|
-
interface GroupedListItem {
|
|
30
|
-
[key: string]: string | number | boolean | null | undefined | GroupedListItem | GroupedListItem[];
|
|
31
|
-
line?: number;
|
|
32
|
-
column?: number;
|
|
33
|
-
severity?: string;
|
|
34
|
-
message?: string;
|
|
35
|
-
rule?: string;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Configuration for summary statistics
|
|
40
|
-
*/
|
|
41
|
-
interface StatConfig {
|
|
42
|
-
field: string;
|
|
43
|
-
value: string;
|
|
44
|
-
label?: string;
|
|
45
|
-
icon?: IconKey;
|
|
46
|
-
color?: string;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Tree node for hierarchical rendering
|
|
51
|
-
*/
|
|
52
|
-
interface TreeNode {
|
|
53
|
-
name: string;
|
|
54
|
-
fullPath: string;
|
|
55
|
-
items: GroupedListItem[];
|
|
56
|
-
children: Map<string, TreeNode>;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export class GroupedListWidgetRenderer extends BaseWidgetRenderer<typeof WidgetType.GROUPED_LIST> {
|
|
60
|
-
readonly widgetType = WidgetType.GROUPED_LIST;
|
|
61
|
-
|
|
62
|
-
render(props: CLIWidgetProps<typeof WidgetType.GROUPED_LIST, string>): string {
|
|
63
|
-
const { value: data, context } = props;
|
|
64
|
-
const t = context.t;
|
|
65
|
-
|
|
66
|
-
if (!Array.isArray(data) || data.length === 0) {
|
|
67
|
-
return context.renderEmptyState(
|
|
68
|
-
t(
|
|
69
|
-
"app.api.system.unifiedInterface.cli.vibe.endpoints.renderers.cliUi.widgets.common.noDataAvailable",
|
|
70
|
-
),
|
|
71
|
-
);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
// Type narrow the array items to GroupedListItem
|
|
75
|
-
const typedData: GroupedListItem[] = data.filter(
|
|
76
|
-
(item): item is GroupedListItem =>
|
|
77
|
-
typeof item === "object" && item !== null && !Array.isArray(item),
|
|
78
|
-
) as GroupedListItem[];
|
|
79
|
-
const config = this.getGroupedListConfig();
|
|
80
|
-
|
|
81
|
-
let output = "";
|
|
82
|
-
|
|
83
|
-
// Use hierarchical rendering if configured
|
|
84
|
-
if (config.hierarchical) {
|
|
85
|
-
output = this.renderHierarchical(typedData, config, context);
|
|
86
|
-
} else {
|
|
87
|
-
// Group data by the specified field
|
|
88
|
-
const groups = this.groupData(typedData, config.groupBy, context);
|
|
89
|
-
|
|
90
|
-
// Render each group
|
|
91
|
-
for (const [groupKey, items] of groups) {
|
|
92
|
-
output += this.renderGroup(groupKey, items, config, context);
|
|
93
|
-
output += "\n";
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
// Add summary if requested
|
|
97
|
-
if (config.showGroupSummary) {
|
|
98
|
-
output += this.renderSummary(typedData, groups, config, context);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
return output.trim();
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
private getGroupedListConfig(): GroupedListConfig {
|
|
106
|
-
return {
|
|
107
|
-
groupBy: "file",
|
|
108
|
-
sortBy: "severity",
|
|
109
|
-
showGroupSummary: true,
|
|
110
|
-
maxItemsPerGroup: 50,
|
|
111
|
-
};
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* Group data by specified field
|
|
116
|
-
*/
|
|
117
|
-
private groupData(
|
|
118
|
-
data: GroupedListItem[],
|
|
119
|
-
groupBy: string,
|
|
120
|
-
context: WidgetRenderContext,
|
|
121
|
-
): Map<string, GroupedListItem[]> {
|
|
122
|
-
const t = context.t;
|
|
123
|
-
const groups = new Map<string, GroupedListItem[]>();
|
|
124
|
-
const otherLabel = t(
|
|
125
|
-
"app.api.system.unifiedInterface.cli.vibe.endpoints.renderers.cliUi.widgets.common.other",
|
|
126
|
-
);
|
|
127
|
-
|
|
128
|
-
for (const item of data) {
|
|
129
|
-
const groupValue = item[groupBy];
|
|
130
|
-
let groupKey = otherLabel;
|
|
131
|
-
if (typeof groupValue === "string") {
|
|
132
|
-
groupKey = groupValue;
|
|
133
|
-
} else if (typeof groupValue === "number") {
|
|
134
|
-
groupKey = String(groupValue);
|
|
135
|
-
} else if (typeof groupValue === "boolean") {
|
|
136
|
-
groupKey = groupValue ? "true" : "false";
|
|
137
|
-
} else if (groupValue !== null && groupValue !== undefined) {
|
|
138
|
-
groupKey = otherLabel;
|
|
139
|
-
}
|
|
140
|
-
if (!groups.has(groupKey)) {
|
|
141
|
-
groups.set(groupKey, []);
|
|
142
|
-
}
|
|
143
|
-
groups.get(groupKey)!.push(item);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
// Sort groups by filename (alphabetically)
|
|
147
|
-
return new Map([...groups.entries()].toSorted((a, b) => a[0].localeCompare(b[0])));
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* Render a single group
|
|
152
|
-
*/
|
|
153
|
-
private renderGroup(
|
|
154
|
-
groupKey: string,
|
|
155
|
-
items: GroupedListItem[],
|
|
156
|
-
config: GroupedListConfig,
|
|
157
|
-
context: WidgetRenderContext,
|
|
158
|
-
): string {
|
|
159
|
-
let output = "";
|
|
160
|
-
|
|
161
|
-
// Group header with file path and count
|
|
162
|
-
const groupHeader = this.renderGroupHeader(groupKey, items.length, context);
|
|
163
|
-
output += `${groupHeader}${String.fromCodePoint(10)}`;
|
|
164
|
-
|
|
165
|
-
// Sort items within group
|
|
166
|
-
const sortedItems = this.sortItems(items, config.sortBy);
|
|
167
|
-
|
|
168
|
-
// Render each item
|
|
169
|
-
for (const item of sortedItems.slice(0, config.maxItemsPerGroup)) {
|
|
170
|
-
const itemLine = this.renderGroupItem(item, context, config);
|
|
171
|
-
output += ` ${itemLine}${String.fromCodePoint(10)}`;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
// Show truncation message if needed
|
|
175
|
-
if (items.length > config.maxItemsPerGroup) {
|
|
176
|
-
const t = context.t;
|
|
177
|
-
const remaining = items.length - config.maxItemsPerGroup;
|
|
178
|
-
const truncationMsg = this.styleText(
|
|
179
|
-
t(
|
|
180
|
-
"app.api.system.unifiedInterface.cli.vibe.endpoints.renderers.cliUi.widgets.common.andMoreItems",
|
|
181
|
-
{ count: remaining.toString() },
|
|
182
|
-
),
|
|
183
|
-
"dim",
|
|
184
|
-
context,
|
|
185
|
-
);
|
|
186
|
-
output += ` ${truncationMsg}${String.fromCodePoint(10)}`;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
return output;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
/**
|
|
193
|
-
* Render group header
|
|
194
|
-
*/
|
|
195
|
-
private renderGroupHeader(
|
|
196
|
-
groupKey: string,
|
|
197
|
-
itemCount: number,
|
|
198
|
-
context: WidgetRenderContext,
|
|
199
|
-
): string {
|
|
200
|
-
// Clean up file path for display
|
|
201
|
-
const displayPath = this.formatFilePath(groupKey);
|
|
202
|
-
const countText = `${itemCount} item${itemCount !== 1 ? "s" : ""}`;
|
|
203
|
-
|
|
204
|
-
const pathText = this.styleText(displayPath, "underline", context);
|
|
205
|
-
const countTextStyled = this.styleText(
|
|
206
|
-
String.fromCodePoint(40) + countText + String.fromCodePoint(41),
|
|
207
|
-
"dim",
|
|
208
|
-
context,
|
|
209
|
-
);
|
|
210
|
-
|
|
211
|
-
const fileIcon = context.options.useEmojis ? `${String.fromCodePoint(128196)} ` : "";
|
|
212
|
-
return `${fileIcon}${pathText} ${countTextStyled}`;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
/**
|
|
216
|
-
* Render individual group item (lint issue or command)
|
|
217
|
-
*/
|
|
218
|
-
private renderGroupItem(
|
|
219
|
-
item: GroupedListItem,
|
|
220
|
-
context: WidgetRenderContext,
|
|
221
|
-
config: GroupedListConfig,
|
|
222
|
-
): string {
|
|
223
|
-
const parts: string[] = [];
|
|
224
|
-
|
|
225
|
-
// Use renderMode from config to determine rendering style
|
|
226
|
-
const isCodeQualityMode = config.renderMode === "code-quality";
|
|
227
|
-
|
|
228
|
-
if (isCodeQualityMode) {
|
|
229
|
-
// Render as lint issue with line/column/severity
|
|
230
|
-
// Location (line:column)
|
|
231
|
-
if (item.line || item.column) {
|
|
232
|
-
const location = this.formatLocation(item.line, item.column);
|
|
233
|
-
parts.push(this.styleText(location.padEnd(8), "blue", context));
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
// Severity with icon and color
|
|
237
|
-
if (item.severity) {
|
|
238
|
-
const severity = this.formatSeverity(item.severity, context);
|
|
239
|
-
parts.push(severity.padEnd(12));
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
// Message
|
|
243
|
-
if (item.message) {
|
|
244
|
-
parts.push(item.message);
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
// Rule (if available)
|
|
248
|
-
if (item.rule && typeof item.rule === "string" && item.rule !== "unknown") {
|
|
249
|
-
const ruleText = this.styleText(`[${item.rule}]`, "dim", context);
|
|
250
|
-
parts.push(ruleText);
|
|
251
|
-
}
|
|
252
|
-
} else {
|
|
253
|
-
// Render as command or general item (simple mode)
|
|
254
|
-
// Rule (command name) first - styled and padded
|
|
255
|
-
if (item.rule && typeof item.rule === "string" && item.rule !== "unknown") {
|
|
256
|
-
const commandName = this.styleText(item.rule.padEnd(20), "bold", context);
|
|
257
|
-
parts.push(commandName);
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
// Message (description) second
|
|
261
|
-
if (item.message) {
|
|
262
|
-
parts.push(item.message);
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
return parts.join(" ");
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
/**
|
|
270
|
-
* Sort items within a group
|
|
271
|
-
*/
|
|
272
|
-
private sortItems(items: GroupedListItem[], sortBy: string): GroupedListItem[] {
|
|
273
|
-
return items.toSorted((a, b) => {
|
|
274
|
-
if (sortBy === "severity") {
|
|
275
|
-
const severityOrder = { error: 0, warning: 1, info: 2 };
|
|
276
|
-
const aOrder = severityOrder[a.severity as keyof typeof severityOrder] ?? 3;
|
|
277
|
-
const bOrder = severityOrder[b.severity as keyof typeof severityOrder] ?? 3;
|
|
278
|
-
if (aOrder !== bOrder) {
|
|
279
|
-
return aOrder - bOrder;
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
// Secondary sort by line number
|
|
284
|
-
if (typeof a.line === "number" && typeof b.line === "number") {
|
|
285
|
-
return a.line - b.line;
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
return 0;
|
|
289
|
-
});
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
/**
|
|
293
|
-
* Format file path for display
|
|
294
|
-
*/
|
|
295
|
-
private formatFilePath(filePath: string): string {
|
|
296
|
-
// Return file path as-is - CWD stripping not available without process
|
|
297
|
-
return filePath;
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
/**
|
|
301
|
-
* Format location (line:column)
|
|
302
|
-
*/
|
|
303
|
-
private formatLocation(line?: number, column?: number): string {
|
|
304
|
-
if (typeof line === "number" && typeof column === "number") {
|
|
305
|
-
return `${line}:${column}`;
|
|
306
|
-
} else if (typeof line === "number") {
|
|
307
|
-
return `${line}:${0}`;
|
|
308
|
-
}
|
|
309
|
-
return `${0}:${0}`;
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
/**
|
|
313
|
-
* Format severity with icon and color
|
|
314
|
-
*/
|
|
315
|
-
private formatSeverity(severity: string, context: WidgetRenderContext): string {
|
|
316
|
-
const icons = context.options.useEmojis;
|
|
317
|
-
|
|
318
|
-
switch (severity) {
|
|
319
|
-
case "error": {
|
|
320
|
-
const errorIcon = icons
|
|
321
|
-
? `${String.fromCodePoint(10060)} `
|
|
322
|
-
: `${String.fromCodePoint(10007)} `;
|
|
323
|
-
const errorText = this.styleText("error", "red", context);
|
|
324
|
-
return `${errorIcon}${errorText}`;
|
|
325
|
-
}
|
|
326
|
-
case "warning": {
|
|
327
|
-
const warnIcon = icons
|
|
328
|
-
? `${String.fromCodePoint(9888)}${String.fromCodePoint(65039)} `
|
|
329
|
-
: `${String.fromCodePoint(33)} `;
|
|
330
|
-
const warnText = this.styleText("warn", "yellow", context);
|
|
331
|
-
return `${warnIcon}${warnText}`;
|
|
332
|
-
}
|
|
333
|
-
case "info": {
|
|
334
|
-
const infoIcon = icons
|
|
335
|
-
? `${String.fromCodePoint(8505)}${String.fromCodePoint(65039)} `
|
|
336
|
-
: `${String.fromCodePoint(105)} `;
|
|
337
|
-
const infoText = this.styleText("info", "blue", context);
|
|
338
|
-
return `${infoIcon}${infoText}`;
|
|
339
|
-
}
|
|
340
|
-
default:
|
|
341
|
-
return severity;
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
/**
|
|
346
|
-
* Render summary statistics with beautiful formatting
|
|
347
|
-
*/
|
|
348
|
-
|
|
349
|
-
private renderSummary(
|
|
350
|
-
data: GroupedListItem[],
|
|
351
|
-
groups: Map<string, GroupedListItem[]>,
|
|
352
|
-
config: GroupedListConfig,
|
|
353
|
-
context: WidgetRenderContext,
|
|
354
|
-
): string {
|
|
355
|
-
const t = context.t;
|
|
356
|
-
// Skip summary if not configured
|
|
357
|
-
if (!config.showGroupSummary) {
|
|
358
|
-
return "";
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
// Only show affected files list and detailed summary for code quality mode
|
|
362
|
-
if (config.renderMode !== "code-quality") {
|
|
363
|
-
return "";
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
let output = "";
|
|
367
|
-
|
|
368
|
-
// Add affected files list first
|
|
369
|
-
output += this.renderAffectedFilesList(groups, context);
|
|
370
|
-
|
|
371
|
-
// Then add summary section
|
|
372
|
-
output += String.fromCodePoint(10) + String.fromCodePoint(10);
|
|
373
|
-
|
|
374
|
-
// Beautiful header with separator
|
|
375
|
-
const headerIcon = context.options.useEmojis ? `${String.fromCodePoint(128202)} ` : "";
|
|
376
|
-
const summaryTitle =
|
|
377
|
-
config.summaryTitle ||
|
|
378
|
-
t(
|
|
379
|
-
"app.api.system.unifiedInterface.cli.vibe.endpoints.renderers.cliUi.widgets.common.summary",
|
|
380
|
-
);
|
|
381
|
-
const headerText = this.styleText(`${headerIcon}${summaryTitle}`, "bold", context);
|
|
382
|
-
output += `${headerText}${String.fromCodePoint(10)}`;
|
|
383
|
-
|
|
384
|
-
// Add subtle separator line
|
|
385
|
-
const separatorLength = 50;
|
|
386
|
-
const separator = String.fromCodePoint(9472).repeat(separatorLength);
|
|
387
|
-
output += `${this.styleText(separator, "dim", context)}${String.fromCodePoint(10)}`;
|
|
388
|
-
|
|
389
|
-
// Meaningful summary stats for code quality tools
|
|
390
|
-
const totalIssues = data.length;
|
|
391
|
-
const totalFiles = groups.size;
|
|
392
|
-
const errors = data.filter((item) => item.severity === "error").length;
|
|
393
|
-
const warnings = data.filter((item) => item.severity === "warning").length;
|
|
394
|
-
|
|
395
|
-
// Show meaningful metrics
|
|
396
|
-
const filesLabel = t(
|
|
397
|
-
"app.api.system.unifiedInterface.cli.vibe.endpoints.renderers.cliUi.widgets.common.files",
|
|
398
|
-
);
|
|
399
|
-
const issuesLabel = t(
|
|
400
|
-
"app.api.system.unifiedInterface.cli.vibe.endpoints.renderers.cliUi.widgets.common.issues",
|
|
401
|
-
);
|
|
402
|
-
output += ` ${this.styleText(`${filesLabel}:`, "dim", context).padEnd(12)} ${totalFiles}${String.fromCodePoint(10)}`;
|
|
403
|
-
output += ` ${this.styleText(`${issuesLabel}:`, "dim", context).padEnd(12)} ${totalIssues}${String.fromCodePoint(10)}`;
|
|
404
|
-
|
|
405
|
-
if (errors > 0) {
|
|
406
|
-
const errorIcon = context.options.useEmojis ? `${String.fromCodePoint(10060)} ` : "";
|
|
407
|
-
const errorText = this.styleText(`${errors} error${errors !== 1 ? "s" : ""}`, "red", context);
|
|
408
|
-
output += ` ${errorIcon}${errorText}${String.fromCodePoint(10)}`;
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
if (warnings > 0) {
|
|
412
|
-
const warnIcon = context.options.useEmojis
|
|
413
|
-
? `${String.fromCodePoint(9888)}${String.fromCodePoint(65039)} `
|
|
414
|
-
: "";
|
|
415
|
-
const warnText = this.styleText(
|
|
416
|
-
`${warnings} warning${warnings !== 1 ? "s" : ""}`,
|
|
417
|
-
"yellow",
|
|
418
|
-
context,
|
|
419
|
-
);
|
|
420
|
-
output += ` ${warnIcon}${warnText}${String.fromCodePoint(10)}`;
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
// Custom summary stats if configured
|
|
424
|
-
if (config.summaryStats && Array.isArray(config.summaryStats)) {
|
|
425
|
-
for (const stat of config.summaryStats) {
|
|
426
|
-
const count = this.calculateStatCount(data, stat);
|
|
427
|
-
if (count > 0) {
|
|
428
|
-
const icon = context.options.useEmojis && stat.icon ? `${stat.icon} ` : "";
|
|
429
|
-
const label = stat.label || stat.field;
|
|
430
|
-
const color = stat.color || "dim";
|
|
431
|
-
const validColor =
|
|
432
|
-
color === "red" ||
|
|
433
|
-
color === "yellow" ||
|
|
434
|
-
color === "blue" ||
|
|
435
|
-
color === "green" ||
|
|
436
|
-
color === "dim" ||
|
|
437
|
-
color === "bold" ||
|
|
438
|
-
color === "underline"
|
|
439
|
-
? color
|
|
440
|
-
: "dim";
|
|
441
|
-
const statText = this.styleText(`${count} ${label}`, validColor, context);
|
|
442
|
-
output += ` ${icon}${statText}${String.fromCodePoint(10)}`;
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
|
-
}
|
|
446
|
-
|
|
447
|
-
return output;
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
/**
|
|
451
|
-
* Render a clean list of affected files with error counts
|
|
452
|
-
*/
|
|
453
|
-
private renderAffectedFilesList(
|
|
454
|
-
groups: Map<string, GroupedListItem[]>,
|
|
455
|
-
context: WidgetRenderContext,
|
|
456
|
-
): string {
|
|
457
|
-
const t = context.t;
|
|
458
|
-
if (groups.size === 0) {
|
|
459
|
-
return "";
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
let output = `${String.fromCodePoint(10)}${String.fromCodePoint(10)}`;
|
|
463
|
-
|
|
464
|
-
// Header
|
|
465
|
-
const headerIcon = context.options.useEmojis ? `${String.fromCodePoint(128203)} ` : "";
|
|
466
|
-
const headerText = this.styleText(
|
|
467
|
-
`${headerIcon}${t("app.api.system.unifiedInterface.cli.vibe.endpoints.renderers.cliUi.widgets.common.affectedFiles")}`,
|
|
468
|
-
"bold",
|
|
469
|
-
context,
|
|
470
|
-
);
|
|
471
|
-
output += `${headerText}${String.fromCodePoint(10)}`;
|
|
472
|
-
|
|
473
|
-
// Separator
|
|
474
|
-
const separator = String.fromCodePoint(9472).repeat(50);
|
|
475
|
-
output += `${this.styleText(separator, "dim", context)}${String.fromCodePoint(10)}`;
|
|
476
|
-
|
|
477
|
-
// Sort files by filename (alphabetically)
|
|
478
|
-
const sortedFiles = [...groups.entries()].toSorted(([aKey], [bKey]) =>
|
|
479
|
-
aKey.localeCompare(bKey),
|
|
480
|
-
);
|
|
481
|
-
|
|
482
|
-
// List each file with its error count
|
|
483
|
-
for (const [fileName, issues] of sortedFiles) {
|
|
484
|
-
const errorCount = issues.filter((item) => item.severity === "error").length;
|
|
485
|
-
const warningCount = issues.filter((item) => item.severity === "warning").length;
|
|
486
|
-
|
|
487
|
-
let countText = "";
|
|
488
|
-
if (errorCount > 0 && warningCount > 0) {
|
|
489
|
-
const errorText = `${errorCount} ${t(`app.api.system.unifiedInterface.cli.vibe.endpoints.renderers.cliUi.widgets.common.${errorCount === 1 ? "error" : "errors"}`)}`;
|
|
490
|
-
const warningText = `${warningCount} ${t(`app.api.system.unifiedInterface.cli.vibe.endpoints.renderers.cliUi.widgets.common.${warningCount === 1 ? "warning" : "warnings"}`)}`;
|
|
491
|
-
countText = this.styleText(`${errorText}, ${warningText}`, "red", context);
|
|
492
|
-
} else if (errorCount > 0) {
|
|
493
|
-
countText = this.styleText(
|
|
494
|
-
`${errorCount} error${errorCount !== 1 ? "s" : ""}`,
|
|
495
|
-
"red",
|
|
496
|
-
context,
|
|
497
|
-
);
|
|
498
|
-
} else if (warningCount > 0) {
|
|
499
|
-
countText = this.styleText(
|
|
500
|
-
`${warningCount} warning${warningCount !== 1 ? "s" : ""}`,
|
|
501
|
-
"yellow",
|
|
502
|
-
context,
|
|
503
|
-
);
|
|
504
|
-
} else {
|
|
505
|
-
countText = this.styleText(
|
|
506
|
-
`${issues.length} item${issues.length !== 1 ? "s" : ""}`,
|
|
507
|
-
"dim",
|
|
508
|
-
context,
|
|
509
|
-
);
|
|
510
|
-
}
|
|
511
|
-
|
|
512
|
-
const fileIcon = context.options.useEmojis ? `${String.fromCodePoint(128196)} ` : "";
|
|
513
|
-
const fileText = fileName; // No styling for file names
|
|
514
|
-
|
|
515
|
-
const fileEntry = ` ${fileIcon}${fileText} ${String.fromCodePoint(40)}${countText}${String.fromCodePoint(41)}`;
|
|
516
|
-
output += `${fileEntry}${String.fromCodePoint(10)}`;
|
|
517
|
-
}
|
|
518
|
-
|
|
519
|
-
return output;
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
/**
|
|
523
|
-
* Calculate count for a specific stat configuration
|
|
524
|
-
*/
|
|
525
|
-
private calculateStatCount(data: GroupedListItem[], stat: StatConfig): number {
|
|
526
|
-
if (!stat.field || !stat.value) {
|
|
527
|
-
return 0;
|
|
528
|
-
}
|
|
529
|
-
|
|
530
|
-
return data.filter((item) => {
|
|
531
|
-
const fieldValue = item[stat.field];
|
|
532
|
-
return fieldValue === stat.value;
|
|
533
|
-
}).length;
|
|
534
|
-
}
|
|
535
|
-
|
|
536
|
-
/**
|
|
537
|
-
* Render hierarchical tree structure for nested paths
|
|
538
|
-
*/
|
|
539
|
-
private renderHierarchical(
|
|
540
|
-
data: GroupedListItem[],
|
|
541
|
-
config: GroupedListConfig,
|
|
542
|
-
context: WidgetRenderContext,
|
|
543
|
-
): string {
|
|
544
|
-
// Build tree structure from flat data
|
|
545
|
-
const root: TreeNode = {
|
|
546
|
-
name: "",
|
|
547
|
-
fullPath: "",
|
|
548
|
-
items: [],
|
|
549
|
-
children: new Map(),
|
|
550
|
-
};
|
|
551
|
-
|
|
552
|
-
// Group items by category path
|
|
553
|
-
for (const item of data) {
|
|
554
|
-
const categoryPath = item[config.groupBy];
|
|
555
|
-
if (typeof categoryPath !== "string") {
|
|
556
|
-
continue;
|
|
557
|
-
}
|
|
558
|
-
|
|
559
|
-
const parts = categoryPath.split("/").filter((p) => p.length);
|
|
560
|
-
let currentNode = root;
|
|
561
|
-
|
|
562
|
-
// Build/traverse tree
|
|
563
|
-
for (let i = 0; i < parts.length; i++) {
|
|
564
|
-
const part = parts[i];
|
|
565
|
-
const fullPath = parts.slice(0, i + 1).join("/");
|
|
566
|
-
|
|
567
|
-
if (!currentNode.children.has(part)) {
|
|
568
|
-
currentNode.children.set(part, {
|
|
569
|
-
name: part,
|
|
570
|
-
fullPath,
|
|
571
|
-
items: [],
|
|
572
|
-
children: new Map(),
|
|
573
|
-
});
|
|
574
|
-
}
|
|
575
|
-
currentNode = currentNode.children.get(part)!;
|
|
576
|
-
}
|
|
577
|
-
|
|
578
|
-
// Add item to leaf node
|
|
579
|
-
currentNode.items.push(item);
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
// Render tree recursively
|
|
583
|
-
return this.renderTreeNode(root, 0, config, context);
|
|
584
|
-
}
|
|
585
|
-
|
|
586
|
-
/**
|
|
587
|
-
* Render a single tree node and its children
|
|
588
|
-
*/
|
|
589
|
-
private renderTreeNode(
|
|
590
|
-
node: TreeNode,
|
|
591
|
-
depth: number,
|
|
592
|
-
config: GroupedListConfig,
|
|
593
|
-
context: WidgetRenderContext,
|
|
594
|
-
): string {
|
|
595
|
-
const result: string[] = [];
|
|
596
|
-
const indent = " ".repeat(depth);
|
|
597
|
-
|
|
598
|
-
// Sort children alphabetically
|
|
599
|
-
const sortedChildren = [...node.children.entries()].toSorted((a, b) =>
|
|
600
|
-
a[0].localeCompare(b[0]),
|
|
601
|
-
);
|
|
602
|
-
|
|
603
|
-
// Render this node's items first if any
|
|
604
|
-
if (node.items.length > 0 && depth > 0) {
|
|
605
|
-
// Calculate total count including children
|
|
606
|
-
const totalCount = this.countItemsRecursive(node);
|
|
607
|
-
const itemText = `${totalCount} item${totalCount !== 1 ? "s" : ""}`;
|
|
608
|
-
|
|
609
|
-
const pathText = node.fullPath;
|
|
610
|
-
const styledPath = this.styleText(pathText, "underline", context);
|
|
611
|
-
const countStyled = this.styleText(`(${itemText})`, "dim", context);
|
|
612
|
-
|
|
613
|
-
result.push(`${indent}${styledPath} ${countStyled}`);
|
|
614
|
-
|
|
615
|
-
// Render items
|
|
616
|
-
const sortedItems = this.sortItems(node.items, config.sortBy);
|
|
617
|
-
for (const item of sortedItems.slice(0, config.maxItemsPerGroup)) {
|
|
618
|
-
const itemLine = this.renderGroupItem(item, context, config);
|
|
619
|
-
result.push(`${indent} ${itemLine}`);
|
|
620
|
-
}
|
|
621
|
-
|
|
622
|
-
if (node.items.length > config.maxItemsPerGroup) {
|
|
623
|
-
const remaining = node.items.length - config.maxItemsPerGroup;
|
|
624
|
-
const t = context.t;
|
|
625
|
-
const truncationMsg = this.styleText(
|
|
626
|
-
t(
|
|
627
|
-
"app.api.system.unifiedInterface.cli.vibe.endpoints.renderers.cliUi.widgets.common.andMoreItems",
|
|
628
|
-
{ count: remaining.toString() },
|
|
629
|
-
),
|
|
630
|
-
"dim",
|
|
631
|
-
context,
|
|
632
|
-
);
|
|
633
|
-
result.push(`${indent} ${truncationMsg}`);
|
|
634
|
-
}
|
|
635
|
-
|
|
636
|
-
result.push("");
|
|
637
|
-
}
|
|
638
|
-
|
|
639
|
-
// Render children
|
|
640
|
-
for (const childEntry of sortedChildren) {
|
|
641
|
-
const childNode = childEntry[1];
|
|
642
|
-
const childOutput = this.renderTreeNode(
|
|
643
|
-
childNode,
|
|
644
|
-
depth + (node.items.length > 0 ? 1 : 0),
|
|
645
|
-
config,
|
|
646
|
-
context,
|
|
647
|
-
);
|
|
648
|
-
if (childOutput) {
|
|
649
|
-
result.push(childOutput);
|
|
650
|
-
}
|
|
651
|
-
}
|
|
652
|
-
|
|
653
|
-
return result.join("\n");
|
|
654
|
-
}
|
|
655
|
-
|
|
656
|
-
/**
|
|
657
|
-
* Count items recursively including all children
|
|
658
|
-
*/
|
|
659
|
-
private countItemsRecursive(node: TreeNode): number {
|
|
660
|
-
let count = node.items.length;
|
|
661
|
-
for (const childEntry of node.children) {
|
|
662
|
-
const child = childEntry[1];
|
|
663
|
-
count += this.countItemsRecursive(child);
|
|
664
|
-
}
|
|
665
|
-
return count;
|
|
666
|
-
}
|
|
667
|
-
}
|